Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(web): import individual Claude sessions from a project #10631

Closedmimen(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/10631/headopened View on GitHub

Showing 27 changed files with 17 additions and 0 deletions (loading 24).

x
0 of 27 viewed, 27 left
9 additions and 0 deletionsapps/server/src/auth/RpcAuthorization.test.tsModified
View file
@@ -44,6 +44,15 @@
});
​
it("requires write access to import agent session history", () => {
+ expect(requiredScopeForRpcMethod(WS_METHODS.agentSessionsList)).toBe(
+ AuthOrchestrationReadScope,
+ );
+ expect(requiredScopeForRpcMethod(WS_METHODS.agentSessionsPreview)).toBe(
+ AuthOrchestrationReadScope,
+ );
+ expect(requiredScopeForRpcMethod(WS_METHODS.agentSessionsAttach)).toBe(
+ AuthOrchestrationOperateScope,
+ );
expect(requiredScopeForRpcMethod(WS_METHODS.agentSessionsScan)).toBe(
AuthOrchestrationReadScope,
);
3 additions and 0 deletionsapps/server/src/auth/RpcAuthorization.tsModified
View file
@@ -102,6 +102,9 @@
[WS_METHODS.filesystemBrowse]: AuthOrchestrationReadScope,
[WS_METHODS.agentSessionsScan]: AuthOrchestrationReadScope,
[WS_METHODS.agentSessionsImport]: AuthOrchestrationOperateScope,
+ [WS_METHODS.agentSessionsList]: AuthOrchestrationReadScope,
+ [WS_METHODS.agentSessionsPreview]: AuthOrchestrationReadScope,
+ [WS_METHODS.agentSessionsAttach]: AuthOrchestrationOperateScope,
[WS_METHODS.assetsCreateUrl]: AuthOrchestrationReadScope,
[WS_METHODS.attachmentsCreateUploadUrl]: AuthOrchestrationOperateScope,
[WS_METHODS.attachmentsDelete]: AuthOrchestrationOperateScope,