Commit Graph

8 Commits

Author SHA1 Message Date
q792602257 6ade6e8fa9 bugfix 2026-06-22 08:55:57 +08:00
q792602257 4ea4adfd8e ACP / MCP 2026-06-12 11:44:19 +08:00
q792602257 0561e126cd ACP / MCP 完善 2026-06-11 12:43:18 +08:00
q792602257 b20435c027 主流程 2026-06-10 17:53:09 +08:00
q792602257 0484e79978 修改 2026-06-09 21:22:28 +08:00
q792602257 d44ffc851f feat(acp): Supervisor.Spawn extraEnv parameter
- extraEnv overrides agent_kinds.encrypted_env same-name keys (spec §6.1 #11)
- Prevents admin from hard-coding ACW_MCP_TOKEN in agent_kinds
- SessionService passes nil for now; system token wiring lands in I4
- BuildSpawnEnv exported for testing the override priority
- Fix app.go NewSupervisor call to match updated signature (from I5)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-08 12:46:50 +08:00
q792602257 be8d5e3a1b feat(mcp,acp): Repository.WithTx + acp.Repository.InTx
Cross-module transactional support for spec §6.1: ACP CreateSession must
atomically insert acp_sessions row + mcp_tokens row (FK NOT NULL).

- mcp.Repository.WithTx(tx) -> Repository (tx-bound, no pool)
- acp.Repository.InTx(ctx, fn) -> error (pgx.BeginFunc wrapper)
- acp.Repository.WithTx(tx) -> Repository (tx-bound)
- Update fakeRepos in test files to satisfy new interface methods

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-08 12:40:54 +08:00
q792602257 79480b32f8 feat(acp): AgentKindService + unit tests (fake repo + real encryptor) 2026-05-07 11:28:15 +08:00