q792602257
665d029d2b
feat(workspace): add ListBranches method to WorkspaceService
...
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-06-10 18:05:18 +08:00
q792602257
0484e79978
修改
2026-06-09 21:22:28 +08:00
q792602257
18f6c8bd2e
feat(acp): SessionService.Create issues system MCP token in tx
...
- InTx wraps InsertSession + IssueSystemTokenWithTx (spec §6.1 atomic guarantee)
- Tx failure -> releaseOnFailure (worktree rollback)
- Spawn called with extraEnv = ACW_MCP_TOKEN + ACW_MCP_URL
- Spawn failure -> RevokeBySession (idempotent) + releaseOnFailure
- app.go SessionService construction updated with mcpTokens + config
- Unit tests: token issuance happy path + rollback on token failure
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-05-08 13:01:16 +08:00
q792602257
702daced7d
feat(acp): Supervisor.onExit revokes system MCP token (spec §6.3)
...
- mcpTokens dep added to Supervisor; nil-safe (test fixtures may skip)
- RevokeBySession called after audit Record in onExit
- app.go wires mcpTokenSvc (was nil placeholder)
- Integration test: fakeSupMCPTokens verifies onExit calls RevokeBySession
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-05-08 12:52:25 +08:00
q792602257
70ffddb76c
test(acp): handler integration e2e (POST session + WS state event + DELETE)
2026-05-07 17:20:33 +08:00