Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/server/src/auth/RpcAuthorization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ type WsRpcMethod = RpcGroup.Rpcs<typeof WsRpcGroup>["_tag"];
*/
export const RPC_REQUIRED_SCOPES = {
[WS_METHODS.memoryGetState]: AuthOrchestrationReadScope,
[WS_METHODS.memoryGetRecommendations]: AuthOrchestrationReadScope,
[WS_METHODS.memoryUpsert]: AuthOrchestrationOperateScope,
[WS_METHODS.memoryForget]: AuthOrchestrationOperateScope,
[WS_METHODS.memorySetThreadPolicy]: AuthOrchestrationOperateScope,
Expand Down
1 change: 1 addition & 0 deletions apps/server/src/environment/ServerEnvironment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ export const make = Effect.gen(function* () {
threadSettlement: true,
threadAutoSettlement: true,
memory: true,
memoryRecommendations: true,
threadSnooze: true,
environmentThemes: true,
threadPinning: true,
Expand Down
4 changes: 4 additions & 0 deletions apps/server/src/git/GitManager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,8 @@ function createTextGeneration(
): TextGeneration.TextGeneration["Service"] {
const implementation: FakeGitTextGeneration = {
generateMemory: () => Effect.die("Memory generation is not used by git workflows"),
generateMemoryRecommendations: () =>
Effect.die("Memory recommendation generation is not used by git workflows"),
generateCommitMessage: (input) =>
Effect.succeed({
subject: "Implement stacked git actions",
Expand All @@ -301,6 +303,8 @@ function createTextGeneration(

return {
generateMemory: () => Effect.die("Memory generation is not used by git workflows"),
generateMemoryRecommendations: () =>
Effect.die("Memory recommendation generation is not used by git workflows"),
generateCommitMessage: (input) =>
implementation.generateCommitMessage(input).pipe(
Effect.mapError(
Expand Down
Loading
Loading