singularity-forge/packages/pi-coding-agent/src/modes
TÂCHES cc2c887948 Refactor GSD command and bootstrap modules (#1634)
* Refactor GSD command/bootstrap modules

* fix: resolve TypeScript build errors in refactored db-tools and catalog

- db-tools.ts: add missing execute callback params (signal, onUpdate, ctx),
  remove isError from return objects (not in AgentToolResult type), cast
  details as any to avoid union type mismatch across error/success paths
- catalog.ts: use Object.entries() on TemplateRegistry.templates Record
  instead of treating it as an array, use Record key as template id

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: update source-contract tests to reference refactored file locations

The god-file refactor moved code from index.ts and commands.ts into
bootstrap/agent-end-recovery.ts, bootstrap/register-hooks.ts, and
commands/handlers/core.ts. Update three test files to read from the
correct paths and adjust pattern assertions to match the new code
structure.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 15:19:16 -06:00
..
interactive Refactor GSD command and bootstrap modules (#1634) 2026-03-20 15:19:16 -06:00
rpc refactor: deduplicate RPC mode shared patterns 2026-03-19 16:38:51 -03:00
shared refactor: deduplicate RPC mode shared patterns 2026-03-19 16:38:51 -03:00
index.ts feat: vendor Pi source into workspace monorepo 2026-03-12 21:55:17 -06:00
print-mode.ts refactor: deduplicate RPC mode shared patterns 2026-03-19 16:38:51 -03:00