@entelligentsia/forgecli 1.0.36 → 1.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +83 -0
- package/dist/CHANGELOG-forge-plugin.md +101 -0
- package/dist/CHANGELOG-pi.md +143 -0
- package/dist/bin/argv.d.ts +1 -1
- package/dist/bin/argv.js +12 -0
- package/dist/bin/argv.js.map +1 -1
- package/dist/bin/forge.js +18 -16
- package/dist/bin/forge.js.map +1 -1
- package/dist/bin/reset.d.ts +39 -0
- package/dist/bin/reset.js +101 -0
- package/dist/bin/reset.js.map +1 -0
- package/dist/extensions/forgecli/claude-bootstrap/bootstrap.js +56 -265
- package/dist/extensions/forgecli/claude-bootstrap/bootstrap.js.map +1 -1
- package/dist/extensions/forgecli/claude-bootstrap/uninstall.js +52 -32
- package/dist/extensions/forgecli/claude-bootstrap/uninstall.js.map +1 -1
- package/dist/extensions/forgecli/commands/reset.d.ts +16 -0
- package/dist/extensions/forgecli/commands/reset.js +83 -0
- package/dist/extensions/forgecli/commands/reset.js.map +1 -0
- package/dist/extensions/forgecli/forge-commands.d.ts +7 -2
- package/dist/extensions/forgecli/forge-commands.js +19 -5
- package/dist/extensions/forgecli/forge-commands.js.map +1 -1
- package/dist/extensions/forgecli/forge-subagent.d.ts +4 -4
- package/dist/extensions/forgecli/hooks/forge-permissions.js +20 -6
- package/dist/extensions/forgecli/hooks/forge-permissions.js.map +1 -1
- package/dist/extensions/forgecli/index.js +6 -3
- package/dist/extensions/forgecli/index.js.map +1 -1
- package/dist/extensions/forgecli/lib/forge-root.d.ts +6 -0
- package/dist/extensions/forgecli/lib/forge-root.js +52 -0
- package/dist/extensions/forgecli/lib/forge-root.js.map +1 -1
- package/dist/extensions/forgecli/lib/payload-manifest.d.ts +62 -0
- package/dist/extensions/forgecli/lib/payload-manifest.js +151 -0
- package/dist/extensions/forgecli/lib/payload-manifest.js.map +1 -0
- package/dist/extensions/forgecli/orchestrators/advisory-render.d.ts +9 -0
- package/dist/extensions/forgecli/orchestrators/advisory-render.js +107 -0
- package/dist/extensions/forgecli/orchestrators/advisory-render.js.map +1 -0
- package/dist/extensions/forgecli/orchestrators/bug/bug-phases.d.ts +3 -0
- package/dist/extensions/forgecli/orchestrators/bug/bug-phases.js +22 -0
- package/dist/extensions/forgecli/orchestrators/bug/bug-phases.js.map +1 -1
- package/dist/extensions/forgecli/orchestrators/bug/bug-verdict-loop.d.ts +1 -1
- package/dist/extensions/forgecli/orchestrators/bug/bug-verdict-loop.js +34 -2
- package/dist/extensions/forgecli/orchestrators/bug/bug-verdict-loop.js.map +1 -1
- package/dist/extensions/forgecli/orchestrators/bug/run-bug-pipeline.js +2 -2
- package/dist/extensions/forgecli/orchestrators/bug/run-bug-pipeline.js.map +1 -1
- package/dist/extensions/forgecli/orchestrators/common/recovery-menu.d.ts +24 -0
- package/dist/extensions/forgecli/orchestrators/common/recovery-menu.js +58 -0
- package/dist/extensions/forgecli/orchestrators/common/recovery-menu.js.map +1 -0
- package/dist/extensions/forgecli/orchestrators/common/reset-pipeline.d.ts +53 -0
- package/dist/extensions/forgecli/orchestrators/common/reset-pipeline.js +131 -0
- package/dist/extensions/forgecli/orchestrators/common/reset-pipeline.js.map +1 -0
- package/dist/extensions/forgecli/orchestrators/halt-advisor.js +25 -3
- package/dist/extensions/forgecli/orchestrators/halt-advisor.js.map +1 -1
- package/dist/extensions/forgecli/orchestrators/task/run-task-pipeline.js +3 -3
- package/dist/extensions/forgecli/orchestrators/task/run-task-pipeline.js.map +1 -1
- package/dist/extensions/forgecli/orchestrators/task/task-phases.d.ts +3 -0
- package/dist/extensions/forgecli/orchestrators/task/task-phases.js +22 -0
- package/dist/extensions/forgecli/orchestrators/task/task-phases.js.map +1 -1
- package/dist/extensions/forgecli/orchestrators/task/task-verdict-loop.d.ts +1 -1
- package/dist/extensions/forgecli/orchestrators/task/task-verdict-loop.js +37 -2
- package/dist/extensions/forgecli/orchestrators/task/task-verdict-loop.js.map +1 -1
- package/dist/extensions/forgecli/store/store-resolver.d.ts +15 -0
- package/dist/extensions/forgecli/store/store-resolver.js +118 -18
- package/dist/extensions/forgecli/store/store-resolver.js.map +1 -1
- package/dist/forge-payload/.claude-plugin/plugin.json +1 -1
- package/dist/forge-payload/.schemas/enum-catalog.json +2 -2
- package/dist/forge-payload/.schemas/migrations.json +85 -0
- package/dist/forge-payload/.schemas/payload-manifest.schema.json +100 -0
- package/dist/forge-payload/commands/check-agent.md +7 -23
- package/dist/forge-payload/commands/enhance.md +31 -5
- package/dist/forge-payload/commands/init.md +161 -97
- package/dist/forge-payload/commands/reset.md +117 -0
- package/dist/forge-payload/hooks/forge-permissions.cjs +29 -6
- package/dist/forge-payload/init/phases/phase-3-materialize.md +5 -1
- package/dist/forge-payload/integrity.json +22 -7
- package/dist/forge-payload/payload-manifest.json +314 -0
- package/dist/forge-payload/schemas/enum-catalog.json +2 -2
- package/dist/forge-payload/schemas/payload-manifest.schema.json +100 -0
- package/dist/forge-payload/schemas/structure-manifest.json +4 -2
- package/dist/forge-payload/tools/reset-plan.cjs +210 -0
- package/dist/forge-payload/tools/store.cjs +4 -1
- package/dist/forge-payload/tools/substitute-placeholders.cjs +10 -2
- package/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.js +8 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.d.ts +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.js +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/execution-env.d.ts +4 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/execution-env.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/execution-env.js +3 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/execution-env.js.map +1 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo/jsonl.d.ts +20 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo/jsonl.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo/jsonl.js +92 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo/jsonl.js.map +1 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo/memory.d.ts +18 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo/memory.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo/memory.js +42 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo/memory.js.map +1 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo/shared.d.ts +10 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo/shared.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo/shared.js +31 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo/shared.js.map +1 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/storage/jsonl.d.ts +30 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/storage/jsonl.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/storage/jsonl.js +170 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/storage/jsonl.js.map +1 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/storage/memory.d.ts +26 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/storage/memory.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/storage/memory.js +90 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/storage/memory.js.map +1 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/types.d.ts +6 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/types.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/types.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/package.json +2 -2
- package/node_modules/@earendil-works/pi-ai/README.md +12 -4
- package/node_modules/@earendil-works/pi-ai/dist/env-api-keys.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/env-api-keys.js +3 -0
- package/node_modules/@earendil-works/pi-ai/dist/env-api-keys.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/image-models.generated.d.ts +45 -0
- package/node_modules/@earendil-works/pi-ai/dist/image-models.generated.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/image-models.generated.js +45 -0
- package/node_modules/@earendil-works/pi-ai/dist/image-models.generated.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/models.generated.d.ts +1804 -815
- package/node_modules/@earendil-works/pi-ai/dist/models.generated.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/models.generated.js +2031 -1384
- package/node_modules/@earendil-works/pi-ai/dist/models.generated.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.js +71 -27
- package/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.d.ts +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.js +24 -16
- package/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.js +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex-responses.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex-responses.js +3 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex-responses.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-completions.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-completions.js +35 -13
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-completions.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-responses-shared.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-responses-shared.js +2 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-responses-shared.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-responses.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-responses.js +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-responses.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/types.d.ts +12 -4
- package/node_modules/@earendil-works/pi-ai/dist/types.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/types.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/github-copilot.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/github-copilot.js +13 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/github-copilot.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/openai-codex.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/openai-codex.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/openai-codex.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.d.ts +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.js +3 -2
- package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/package.json +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/CHANGELOG.md +143 -0
- package/node_modules/@earendil-works/pi-coding-agent/README.md +26 -4
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/args.d.ts +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/args.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/args.js +11 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/args.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/project-trust.d.ts +10 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/project-trust.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/project-trust.js +48 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/project-trust.js.map +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/startup-ui.d.ts +17 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/startup-ui.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/startup-ui.js +128 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/startup-ui.js.map +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/config.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/config.js +9 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/config.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session-runtime.d.ts +3 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session-runtime.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session-runtime.js +4 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session-runtime.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session-services.d.ts +2 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session-services.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session-services.js +2 -2
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session-services.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session.d.ts +4 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session.js +16 -3
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/auth-storage.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/auth-storage.js +4 -3
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/auth-storage.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/branch-summarization.d.ts +3 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/branch-summarization.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/branch-summarization.js +9 -3
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/branch-summarization.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/utils.d.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/utils.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/utils.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/utils.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/experimental.d.ts +2 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/experimental.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/experimental.js +4 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/experimental.js.map +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/export-html/template.js +19 -6
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/index.d.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/index.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/index.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/loader.d.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/loader.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/loader.js +4 -4
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/loader.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/runner.d.ts +10 -3
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/runner.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/runner.js +47 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/runner.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/types.d.ts +28 -2
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/types.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/types.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/footer-data-provider.d.ts +2 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/footer-data-provider.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/footer-data-provider.js +29 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/footer-data-provider.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/index.d.ts +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/index.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/index.js +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/index.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/model-registry.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/model-registry.js +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/model-registry.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/model-resolver.d.ts +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/model-resolver.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/model-resolver.js +44 -5
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/model-resolver.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/package-manager.d.ts +3 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/package-manager.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/package-manager.js +47 -13
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/package-manager.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/project-trust.d.ts +15 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/project-trust.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/project-trust.js +58 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/project-trust.js.map +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/prompt-templates.d.ts +2 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/prompt-templates.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/prompt-templates.js +24 -26
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/prompt-templates.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/provider-attribution.d.ts +4 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/provider-attribution.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/provider-attribution.js +72 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/provider-attribution.js.map +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/provider-display-names.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/provider-display-names.js +3 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/provider-display-names.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/resource-loader.d.ts +13 -2
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/resource-loader.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/resource-loader.js +112 -37
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/resource-loader.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/sdk.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/sdk.js +7 -33
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/sdk.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/session-manager.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/session-manager.js +103 -70
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/session-manager.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/settings-manager.d.ts +20 -2
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/settings-manager.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/settings-manager.js +97 -30
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/settings-manager.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/slash-commands.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/slash-commands.js +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/slash-commands.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/bash.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/bash.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/bash.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/find.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/find.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/find.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/grep.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/grep.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/grep.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/ls.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/ls.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/ls.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/read.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/read.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/read.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/write.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/write.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/write.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/trust-manager.d.ts +36 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/trust-manager.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/trust-manager.js +202 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/trust-manager.js.map +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/index.d.ts +5 -4
- package/node_modules/@earendil-works/pi-coding-agent/dist/index.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/index.js +2 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/index.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/main.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/main.js +72 -32
- package/node_modules/@earendil-works/pi-coding-agent/dist/main.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/migrations.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/migrations.js +39 -34
- package/node_modules/@earendil-works/pi-coding-agent/dist/migrations.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/index.d.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/index.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/index.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/bash-execution.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/bash-execution.js +2 -2
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/bash-execution.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/first-time-setup.d.ts +25 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/first-time-setup.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/first-time-setup.js +103 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/first-time-setup.js.map +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/footer.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/footer.js +7 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/footer.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/index.d.ts +2 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/index.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/index.js +2 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/index.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/login-dialog.d.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/login-dialog.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/login-dialog.js +10 -13
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/login-dialog.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/settings-selector.d.ts +3 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/settings-selector.js +20 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/settings-selector.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/tool-execution.js +22 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/tool-execution.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/trust-selector.d.ts +23 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/trust-selector.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/trust-selector.js +91 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/trust-selector.js.map +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/interactive-mode.d.ts +7 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/interactive-mode.js +101 -5
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/print-mode.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/print-mode.js +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/print-mode.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/rpc/rpc-mode.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/rpc/rpc-mode.js +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/rpc/rpc-mode.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/package-manager-cli.d.ts +6 -2
- package/node_modules/@earendil-works/pi-coding-agent/dist/package-manager-cli.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/package-manager-cli.js +111 -10
- package/node_modules/@earendil-works/pi-coding-agent/dist/package-manager-cli.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/changelog.d.ts +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/changelog.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/changelog.js +78 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/changelog.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/git.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/git.js +54 -22
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/git.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/open-browser.d.ts +9 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/open-browser.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/open-browser.js +22 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/open-browser.js.map +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/containerization.md +111 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/docs.json +8 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/extensions.md +67 -13
- package/node_modules/@earendil-works/pi-coding-agent/docs/index.md +2 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/models.md +4 -3
- package/node_modules/@earendil-works/pi-coding-agent/docs/packages.md +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/docs/prompt-templates.md +9 -2
- package/node_modules/@earendil-works/pi-coding-agent/docs/providers.md +5 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/rpc.md +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/docs/sdk.md +5 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/security.md +59 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/settings.md +15 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/skills.md +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/docs/terminal-setup.md +36 -2
- package/node_modules/@earendil-works/pi-coding-agent/docs/themes.md +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/docs/tmux.md +4 -2
- package/node_modules/@earendil-works/pi-coding-agent/docs/tui.md +10 -1
- package/node_modules/@earendil-works/pi-coding-agent/docs/usage.md +19 -2
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/README.md +2 -0
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/custom-header.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/doom-overlay/index.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/gondolin/index.ts +531 -0
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/gondolin/package-lock.json +185 -0
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/gondolin/package.json +19 -0
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/handoff.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/interactive-shell.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/overlay-qa-tests.ts +152 -81
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/project-trust.ts +64 -0
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/qna.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/question.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/questionnaire.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/sandbox/package.json +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/snake.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/space-invaders.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/summarize.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/tic-tac-toe.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/todo.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/tools.ts +5 -0
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/with-deps/package.json +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/npm-shrinkwrap.json +12 -419
- package/node_modules/@earendil-works/pi-coding-agent/package.json +5 -8
- package/node_modules/@earendil-works/pi-tui/README.md +13 -1
- package/node_modules/@earendil-works/pi-tui/dist/autocomplete.d.ts +2 -0
- package/node_modules/@earendil-works/pi-tui/dist/autocomplete.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/autocomplete.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/editor.d.ts +6 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/editor.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/editor.js +102 -43
- package/node_modules/@earendil-works/pi-tui/dist/components/editor.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/markdown.d.ts +2 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/markdown.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/markdown.js +11 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/markdown.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/fuzzy.d.ts +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/fuzzy.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/fuzzy.js +2 -2
- package/node_modules/@earendil-works/pi-tui/dist/fuzzy.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/index.d.ts +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/index.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/index.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/terminal.d.ts +4 -7
- package/node_modules/@earendil-works/pi-tui/dist/terminal.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/terminal.js +38 -77
- package/node_modules/@earendil-works/pi-tui/dist/terminal.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/tui.d.ts +20 -4
- package/node_modules/@earendil-works/pi-tui/dist/tui.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/tui.js +244 -42
- package/node_modules/@earendil-works/pi-tui/dist/tui.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/utils.d.ts +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/utils.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/utils.js +46 -15
- package/node_modules/@earendil-works/pi-tui/dist/utils.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/package.json +1 -1
- package/node_modules/@mariozechner/clipboard/package.json +2 -1
- package/node_modules/@mariozechner/clipboard-linux-x64-musl/README.md +3 -0
- package/node_modules/@mariozechner/clipboard-linux-x64-musl/package.json +25 -0
- package/package.json +7 -6
- package/dist/extensions/forgecli/add-pipeline.d.ts +0 -19
- package/dist/extensions/forgecli/add-pipeline.js +0 -143
- package/dist/extensions/forgecli/add-pipeline.js.map +0 -1
- package/dist/extensions/forgecli/add-task.d.ts +0 -20
- package/dist/extensions/forgecli/add-task.js +0 -154
- package/dist/extensions/forgecli/add-task.js.map +0 -1
- package/dist/extensions/forgecli/approve.d.ts +0 -22
- package/dist/extensions/forgecli/approve.js +0 -152
- package/dist/extensions/forgecli/approve.js.map +0 -1
- package/dist/extensions/forgecli/banner.d.ts +0 -10
- package/dist/extensions/forgecli/banner.js +0 -36
- package/dist/extensions/forgecli/banner.js.map +0 -1
- package/dist/extensions/forgecli/calibrate.d.ts +0 -64
- package/dist/extensions/forgecli/calibrate.js +0 -481
- package/dist/extensions/forgecli/calibrate.js.map +0 -1
- package/dist/extensions/forgecli/collate.d.ts +0 -22
- package/dist/extensions/forgecli/collate.js +0 -134
- package/dist/extensions/forgecli/collate.js.map +0 -1
- package/dist/extensions/forgecli/commit.d.ts +0 -22
- package/dist/extensions/forgecli/commit.js +0 -152
- package/dist/extensions/forgecli/commit.js.map +0 -1
- package/dist/extensions/forgecli/config-command.d.ts +0 -8
- package/dist/extensions/forgecli/config-command.js +0 -67
- package/dist/extensions/forgecli/config-command.js.map +0 -1
- package/dist/extensions/forgecli/config-layer.d.ts +0 -53
- package/dist/extensions/forgecli/config-layer.js +0 -72
- package/dist/extensions/forgecli/config-layer.js.map +0 -1
- package/dist/extensions/forgecli/config-writer.d.ts +0 -16
- package/dist/extensions/forgecli/config-writer.js +0 -69
- package/dist/extensions/forgecli/config-writer.js.map +0 -1
- package/dist/extensions/forgecli/enhance.d.ts +0 -27
- package/dist/extensions/forgecli/enhance.js +0 -199
- package/dist/extensions/forgecli/enhance.js.map +0 -1
- package/dist/extensions/forgecli/fix-bug.d.ts +0 -85
- package/dist/extensions/forgecli/fix-bug.js +0 -1580
- package/dist/extensions/forgecli/fix-bug.js.map +0 -1
- package/dist/extensions/forgecli/forge-header.d.ts +0 -12
- package/dist/extensions/forgecli/forge-header.js +0 -114
- package/dist/extensions/forgecli/forge-header.js.map +0 -1
- package/dist/extensions/forgecli/forge-init.d.ts +0 -26
- package/dist/extensions/forgecli/forge-init.js +0 -514
- package/dist/extensions/forgecli/forge-init.js.map +0 -1
- package/dist/extensions/forgecli/forge-root.d.ts +0 -10
- package/dist/extensions/forgecli/forge-root.js +0 -62
- package/dist/extensions/forgecli/forge-root.js.map +0 -1
- package/dist/extensions/forgecli/forge-update-command.d.ts +0 -100
- package/dist/extensions/forgecli/forge-update-command.js +0 -435
- package/dist/extensions/forgecli/forge-update-command.js.map +0 -1
- package/dist/extensions/forgecli/friction-emit.d.ts +0 -99
- package/dist/extensions/forgecli/friction-emit.js +0 -245
- package/dist/extensions/forgecli/friction-emit.js.map +0 -1
- package/dist/extensions/forgecli/implement.d.ts +0 -22
- package/dist/extensions/forgecli/implement.js +0 -170
- package/dist/extensions/forgecli/implement.js.map +0 -1
- package/dist/extensions/forgecli/init-context.d.ts +0 -99
- package/dist/extensions/forgecli/init-context.js +0 -178
- package/dist/extensions/forgecli/init-context.js.map +0 -1
- package/dist/extensions/forgecli/init-progress.d.ts +0 -39
- package/dist/extensions/forgecli/init-progress.js +0 -117
- package/dist/extensions/forgecli/init-progress.js.map +0 -1
- package/dist/extensions/forgecli/input-router.d.ts +0 -33
- package/dist/extensions/forgecli/input-router.js +0 -136
- package/dist/extensions/forgecli/input-router.js.map +0 -1
- package/dist/extensions/forgecli/lib/halt-advisor.d.ts +0 -59
- package/dist/extensions/forgecli/lib/halt-advisor.js +0 -113
- package/dist/extensions/forgecli/lib/halt-advisor.js.map +0 -1
- package/dist/extensions/forgecli/lib/orchestrator-preflight.d.ts +0 -46
- package/dist/extensions/forgecli/lib/orchestrator-preflight.js +0 -64
- package/dist/extensions/forgecli/lib/orchestrator-preflight.js.map +0 -1
- package/dist/extensions/forgecli/materialize.d.ts +0 -16
- package/dist/extensions/forgecli/materialize.js +0 -195
- package/dist/extensions/forgecli/materialize.js.map +0 -1
- package/dist/extensions/forgecli/migrate.d.ts +0 -22
- package/dist/extensions/forgecli/migrate.js +0 -260
- package/dist/extensions/forgecli/migrate.js.map +0 -1
- package/dist/extensions/forgecli/migration-engine.d.ts +0 -117
- package/dist/extensions/forgecli/migration-engine.js +0 -563
- package/dist/extensions/forgecli/migration-engine.js.map +0 -1
- package/dist/extensions/forgecli/model-registry.d.ts +0 -61
- package/dist/extensions/forgecli/model-registry.js +0 -127
- package/dist/extensions/forgecli/model-registry.js.map +0 -1
- package/dist/extensions/forgecli/model-resolver.d.ts +0 -32
- package/dist/extensions/forgecli/model-resolver.js +0 -65
- package/dist/extensions/forgecli/model-resolver.js.map +0 -1
- package/dist/extensions/forgecli/model-validator.d.ts +0 -29
- package/dist/extensions/forgecli/model-validator.js +0 -107
- package/dist/extensions/forgecli/model-validator.js.map +0 -1
- package/dist/extensions/forgecli/orchestrator-status-bar.d.ts +0 -26
- package/dist/extensions/forgecli/orchestrator-status-bar.js +0 -213
- package/dist/extensions/forgecli/orchestrator-status-bar.js.map +0 -1
- package/dist/extensions/forgecli/plan.d.ts +0 -22
- package/dist/extensions/forgecli/plan.js +0 -167
- package/dist/extensions/forgecli/plan.js.map +0 -1
- package/dist/extensions/forgecli/quiz-agent.d.ts +0 -17
- package/dist/extensions/forgecli/quiz-agent.js +0 -98
- package/dist/extensions/forgecli/quiz-agent.js.map +0 -1
- package/dist/extensions/forgecli/read-command.d.ts +0 -2
- package/dist/extensions/forgecli/read-command.js +0 -100
- package/dist/extensions/forgecli/read-command.js.map +0 -1
- package/dist/extensions/forgecli/regenerate.d.ts +0 -40
- package/dist/extensions/forgecli/regenerate.js +0 -438
- package/dist/extensions/forgecli/regenerate.js.map +0 -1
- package/dist/extensions/forgecli/remove-command.d.ts +0 -17
- package/dist/extensions/forgecli/remove-command.js +0 -124
- package/dist/extensions/forgecli/remove-command.js.map +0 -1
- package/dist/extensions/forgecli/report-bug.d.ts +0 -25
- package/dist/extensions/forgecli/report-bug.js +0 -159
- package/dist/extensions/forgecli/report-bug.js.map +0 -1
- package/dist/extensions/forgecli/retrospective.d.ts +0 -20
- package/dist/extensions/forgecli/retrospective.js +0 -126
- package/dist/extensions/forgecli/retrospective.js.map +0 -1
- package/dist/extensions/forgecli/review-code.d.ts +0 -35
- package/dist/extensions/forgecli/review-code.js +0 -196
- package/dist/extensions/forgecli/review-code.js.map +0 -1
- package/dist/extensions/forgecli/review-plan.d.ts +0 -35
- package/dist/extensions/forgecli/review-plan.js +0 -200
- package/dist/extensions/forgecli/review-plan.js.map +0 -1
- package/dist/extensions/forgecli/run-sprint.d.ts +0 -27
- package/dist/extensions/forgecli/run-sprint.js +0 -716
- package/dist/extensions/forgecli/run-sprint.js.map +0 -1
- package/dist/extensions/forgecli/run-task.d.ts +0 -204
- package/dist/extensions/forgecli/run-task.js +0 -1403
- package/dist/extensions/forgecli/run-task.js.map +0 -1
- package/dist/extensions/forgecli/skill-curation-flag.d.ts +0 -21
- package/dist/extensions/forgecli/skill-curation-flag.js +0 -71
- package/dist/extensions/forgecli/skill-curation-flag.js.map +0 -1
- package/dist/extensions/forgecli/skill-curator-subagent.d.ts +0 -102
- package/dist/extensions/forgecli/skill-curator-subagent.js +0 -339
- package/dist/extensions/forgecli/skill-curator-subagent.js.map +0 -1
- package/dist/extensions/forgecli/skill-retriever.d.ts +0 -84
- package/dist/extensions/forgecli/skill-retriever.js +0 -246
- package/dist/extensions/forgecli/skill-retriever.js.map +0 -1
- package/dist/extensions/forgecli/skill-usage-tracker.d.ts +0 -91
- package/dist/extensions/forgecli/skill-usage-tracker.js +0 -224
- package/dist/extensions/forgecli/skill-usage-tracker.js.map +0 -1
- package/dist/extensions/forgecli/sprint-intake.d.ts +0 -10
- package/dist/extensions/forgecli/sprint-intake.js +0 -91
- package/dist/extensions/forgecli/sprint-intake.js.map +0 -1
- package/dist/extensions/forgecli/sprint-plan.d.ts +0 -14
- package/dist/extensions/forgecli/sprint-plan.js +0 -122
- package/dist/extensions/forgecli/sprint-plan.js.map +0 -1
- package/dist/extensions/forgecli/status-command.d.ts +0 -19
- package/dist/extensions/forgecli/status-command.js +0 -140
- package/dist/extensions/forgecli/status-command.js.map +0 -1
- package/dist/extensions/forgecli/store-error-remediation.d.ts +0 -65
- package/dist/extensions/forgecli/store-error-remediation.js +0 -307
- package/dist/extensions/forgecli/store-error-remediation.js.map +0 -1
- package/dist/extensions/forgecli/store-query.d.ts +0 -22
- package/dist/extensions/forgecli/store-query.js +0 -107
- package/dist/extensions/forgecli/store-query.js.map +0 -1
- package/dist/extensions/forgecli/store-repair.d.ts +0 -17
- package/dist/extensions/forgecli/store-repair.js +0 -123
- package/dist/extensions/forgecli/store-repair.js.map +0 -1
- package/dist/extensions/forgecli/store-resolver.d.ts +0 -56
- package/dist/extensions/forgecli/store-resolver.js +0 -263
- package/dist/extensions/forgecli/store-resolver.js.map +0 -1
- package/dist/extensions/forgecli/store-validator.d.ts +0 -16
- package/dist/extensions/forgecli/store-validator.js +0 -32
- package/dist/extensions/forgecli/store-validator.js.map +0 -1
- package/dist/extensions/forgecli/test-orchestrate.d.ts +0 -2
- package/dist/extensions/forgecli/test-orchestrate.js +0 -182
- package/dist/extensions/forgecli/test-orchestrate.js.map +0 -1
- package/dist/extensions/forgecli/thread-switcher.d.ts +0 -5
- package/dist/extensions/forgecli/thread-switcher.js +0 -189
- package/dist/extensions/forgecli/thread-switcher.js.map +0 -1
- package/dist/extensions/forgecli/transition-guard.d.ts +0 -20
- package/dist/extensions/forgecli/transition-guard.js +0 -89
- package/dist/extensions/forgecli/transition-guard.js.map +0 -1
- package/dist/extensions/forgecli/update-check.d.ts +0 -37
- package/dist/extensions/forgecli/update-check.js +0 -185
- package/dist/extensions/forgecli/update-check.js.map +0 -1
- package/dist/extensions/forgecli/update-tools.d.ts +0 -23
- package/dist/extensions/forgecli/update-tools.js +0 -135
- package/dist/extensions/forgecli/update-tools.js.map +0 -1
- package/dist/extensions/forgecli/validate.d.ts +0 -22
- package/dist/extensions/forgecli/validate.js +0 -152
- package/dist/extensions/forgecli/validate.js.map +0 -1
- package/dist/extensions/forgecli/viewport-events.d.ts +0 -78
- package/dist/extensions/forgecli/viewport-events.js +0 -243
- package/dist/extensions/forgecli/viewport-events.js.map +0 -1
- package/dist/extensions/forgecli/viewport-renderer.d.ts +0 -83
- package/dist/extensions/forgecli/viewport-renderer.js +0 -233
- package/dist/extensions/forgecli/viewport-renderer.js.map +0 -1
- package/dist/extensions/forgecli/viewport-theme.d.ts +0 -11
- package/dist/extensions/forgecli/viewport-theme.js +0 -128
- package/dist/extensions/forgecli/viewport-theme.js.map +0 -1
- package/dist/extensions/forgecli/whats-new-widget.d.ts +0 -26
- package/dist/extensions/forgecli/whats-new-widget.js +0 -376
- package/dist/extensions/forgecli/whats-new-widget.js.map +0 -1
- package/dist/extensions/forgecli/whats-new.d.ts +0 -120
- package/dist/extensions/forgecli/whats-new.js +0 -470
- package/dist/extensions/forgecli/whats-new.js.map +0 -1
- package/dist/forge-payload/.base-pack/commands/check-agent.md +0 -22
- package/dist/forge-payload/.base-pack/commands/enhance.md +0 -37
- package/dist/forge-payload/.base-pack/commands/init.md +0 -278
- package/dist/forge-payload/init/generation/generate-knowledge-base.md +0 -56
- package/dist/forge-payload/init/generation/generate-personas.md +0 -54
- package/dist/forge-payload/init/generation/generate-skills.md +0 -36
- package/dist/forge-payload/init/generation/generate-templates.md +0 -39
- /package/dist/forge-payload/{.base-pack/commands → commands}/approve.md +0 -0
- /package/dist/forge-payload/{.base-pack/commands → commands}/collate.md +0 -0
- /package/dist/forge-payload/{.base-pack/commands → commands}/commit.md +0 -0
- /package/dist/forge-payload/{.base-pack/commands → commands}/fix-bug.md +0 -0
- /package/dist/forge-payload/{.base-pack/commands → commands}/implement.md +0 -0
- /package/dist/forge-payload/{.base-pack/commands → commands}/new-sprint.md +0 -0
- /package/dist/forge-payload/{.base-pack/commands → commands}/plan-sprint.md +0 -0
- /package/dist/forge-payload/{.base-pack/commands → commands}/plan.md +0 -0
- /package/dist/forge-payload/{.base-pack/commands → commands}/retro.md +0 -0
- /package/dist/forge-payload/{.base-pack/commands → commands}/review-code.md +0 -0
- /package/dist/forge-payload/{.base-pack/commands → commands}/review-plan.md +0 -0
- /package/dist/forge-payload/{.base-pack/commands → commands}/run-sprint.md +0 -0
- /package/dist/forge-payload/{.base-pack/commands → commands}/run-task.md +0 -0
- /package/dist/forge-payload/{.base-pack/commands → commands}/validate.md +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"run-task.js","sourceRoot":"","sources":["../../../src/extensions/forgecli/run-task.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,EAAE;AACF,gFAAgF;AAChF,8EAA8E;AAC9E,uEAAuE;AACvE,6EAA6E;AAC7E,EAAE;AACF,2BAA2B;AAC3B,8DAA8D;AAC9D,uFAAuF;AACvF,sFAAsF;AACtF,sFAAsF;AACtF,EAAE;AACF,8CAA8C;AAC9C,oEAAoE;AAEpE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAMzC,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAExE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACzE,OAAO,EAAsB,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7E,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5E,OAAO,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kB,EAAE,OAAO,CAAC,kBAAkB;aAC9C,CAAC,CAAC;YAEH,oEAAoE;YACpE,IAAI,cAAc,CAAC,MAAM,KAAK,WAAW,EAAE,CAAC;gBAC3C,QAAQ,CAAC,eAAe,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;gBAC9C,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;gBACvC,GAAG,CAAC,EAAE,CAAC,MAAM,CAAC,sBAAsB,MAAM,uBAAuB,MAAM,CAAC,MAAM,WAAW,EAAE,MAAM,CAAC,CAAC;YACpG,CAAC;iBAAM,IAAI,cAAc,CAAC,MAAM,KAAK,WAAW,EAAE,CAAC;gBAClD,2DAA2D;gBAC3D,iEAAiE;gBACjE,QAAQ,CAAC,eAAe,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;gBAC9C,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;YACxC,CAAC;iBAAM,CAAC;gBACP,QAAQ,CAAC,eAAe,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;gBAC3C,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;YACrC,CAAC;YAED,GAAG,CAAC,EAAE,CAAC,SAAS,EAAE,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;YAC1C,GAAG,CAAC,EAAE,CAAC,SAAS,EAAE,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;QAC5C,CAAC;KACD,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Parse an env flag value to a tri-state: true / false / null (absent or
|
|
3
|
-
* unrecognised). Unrecognised values fall through to the disk layers — we
|
|
4
|
-
* do NOT throw or coerce to false silently.
|
|
5
|
-
*/
|
|
6
|
-
declare function parseEnvFlag(raw: string | undefined): boolean | null;
|
|
7
|
-
/**
|
|
8
|
-
* Resolve the SKILL-CURATION feature flag for the given working directory.
|
|
9
|
-
*
|
|
10
|
-
* Default OFF — the helper returns true only when an explicit `true` value
|
|
11
|
-
* is found in the env override or one of the config layers.
|
|
12
|
-
*
|
|
13
|
-
* `cwd` defaults to `process.cwd()` for production call sites; tests pass
|
|
14
|
-
* a temp dir to isolate filesystem state.
|
|
15
|
-
*/
|
|
16
|
-
export declare function isSkillCurationEnabled(cwd?: string): boolean;
|
|
17
|
-
export declare const _internal: {
|
|
18
|
-
parseEnvFlag: typeof parseEnvFlag;
|
|
19
|
-
ENV_FLAG: string;
|
|
20
|
-
};
|
|
21
|
-
export {};
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
// Skill-curation feature flag — FORGE-S24-T12.
|
|
2
|
-
//
|
|
3
|
-
// Single source of truth for resolving `forgeCli.skillCuration.enabled`
|
|
4
|
-
// from the layered config. The four SKILL-CURATION emission modules
|
|
5
|
-
// (T08 skill-retriever, T09 skill-usage-tracker, T10 skill-curator-subagent,
|
|
6
|
-
// T11 friction-emit) call `isSkillCurationEnabled()` at the top of their
|
|
7
|
-
// public emission / dispatch entry points and no-op when it returns false.
|
|
8
|
-
//
|
|
9
|
-
// Resolution order (first match wins):
|
|
10
|
-
// 1. Env override `FORGE_CLI_SKILL_CURATION_ENABLED` — accepts "1"/"true"
|
|
11
|
-
// (case-insensitive) for on, "0"/"false" for off. Provided primarily
|
|
12
|
-
// for unit tests and one-shot operator overrides; takes precedence
|
|
13
|
-
// over disk config so a poisoned config never blocks an operator
|
|
14
|
-
// from turning the flag on or off for a single session.
|
|
15
|
-
// 2. Project config (`<cwd>/.pi/forge-cli/config.json`): `forgeCli.skillCuration.enabled`.
|
|
16
|
-
// 3. Global config (`~/.pi/forge-cli/config.json`): `forgeCli.skillCuration.enabled`.
|
|
17
|
-
// 4. Default: false (Iron Law — gated rollout per FORGE-S24-T12 AC2).
|
|
18
|
-
//
|
|
19
|
-
// Iron Laws (forge-cli-engineer):
|
|
20
|
-
// IL1 — code only under forge-cli/src/extensions/forgecli/
|
|
21
|
-
// IL2 — TypeScript; no runtime cast. The layered loader has already
|
|
22
|
-
// Ajv-validated the JSON against forge-cli-schema.json before
|
|
23
|
-
// we read it.
|
|
24
|
-
// IL7 — no silent continuation past failures: schema errors at the
|
|
25
|
-
// layered-config level are surfaced by orchestrator and TUI callers
|
|
26
|
-
// upstream of this helper (see doc/decisions/layered-config-error-policy.md).
|
|
27
|
-
// This function only reads `.project`/`.global` layers; its resilience
|
|
28
|
-
// to absent layers is intentional — missing means "no opinion".
|
|
29
|
-
import { loadLayeredConfig } from "./config-layer.js";
|
|
30
|
-
const ENV_FLAG = "FORGE_CLI_SKILL_CURATION_ENABLED";
|
|
31
|
-
/**
|
|
32
|
-
* Parse an env flag value to a tri-state: true / false / null (absent or
|
|
33
|
-
* unrecognised). Unrecognised values fall through to the disk layers — we
|
|
34
|
-
* do NOT throw or coerce to false silently.
|
|
35
|
-
*/
|
|
36
|
-
function parseEnvFlag(raw) {
|
|
37
|
-
if (raw === undefined)
|
|
38
|
-
return null;
|
|
39
|
-
const normalised = raw.trim().toLowerCase();
|
|
40
|
-
if (normalised === "1" || normalised === "true")
|
|
41
|
-
return true;
|
|
42
|
-
if (normalised === "0" || normalised === "false")
|
|
43
|
-
return false;
|
|
44
|
-
return null;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Resolve the SKILL-CURATION feature flag for the given working directory.
|
|
48
|
-
*
|
|
49
|
-
* Default OFF — the helper returns true only when an explicit `true` value
|
|
50
|
-
* is found in the env override or one of the config layers.
|
|
51
|
-
*
|
|
52
|
-
* `cwd` defaults to `process.cwd()` for production call sites; tests pass
|
|
53
|
-
* a temp dir to isolate filesystem state.
|
|
54
|
-
*/
|
|
55
|
-
export function isSkillCurationEnabled(cwd = process.cwd()) {
|
|
56
|
-
const envValue = parseEnvFlag(process.env[ENV_FLAG]);
|
|
57
|
-
if (envValue !== null)
|
|
58
|
-
return envValue;
|
|
59
|
-
const layered = loadLayeredConfig(cwd);
|
|
60
|
-
const projectFlag = layered.project?.forgeCli?.skillCuration?.enabled;
|
|
61
|
-
if (typeof projectFlag === "boolean")
|
|
62
|
-
return projectFlag;
|
|
63
|
-
const globalFlag = layered.global?.forgeCli?.skillCuration?.enabled;
|
|
64
|
-
if (typeof globalFlag === "boolean")
|
|
65
|
-
return globalFlag;
|
|
66
|
-
return false;
|
|
67
|
-
}
|
|
68
|
-
// Exposed for unit tests that want to assert env-parsing behaviour
|
|
69
|
-
// without touching the disk layers.
|
|
70
|
-
export const _internal = { parseEnvFlag, ENV_FLAG };
|
|
71
|
-
//# sourceMappingURL=skill-curation-flag.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"skill-curation-flag.js","sourceRoot":"","sources":["../../../src/extensions/forgecli/skill-curation-flag.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,EAAE;AACF,wEAAwE;AACxE,oEAAoE;AACpE,6EAA6E;AAC7E,yEAAyE;AACzE,2EAA2E;AAC3E,EAAE;AACF,uCAAuC;AACvC,4EAA4E;AAC5E,0EAA0E;AAC1E,wEAAwE;AACxE,sEAAsE;AACtE,6DAA6D;AAC7D,6FAA6F;AAC7F,wFAAwF;AACxF,wEAAwE;AACxE,EAAE;AACF,kCAAkC;AAClC,8DAA8D;AAC9D,uEAAuE;AACvE,uEAAuE;AACvE,uBAAuB;AACvB,sEAAsE;AACtE,6EAA6E;AAC7E,uFAAuF;AACvF,gFAAgF;AAChF,yEAAyE;AAEzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,QAAQ,GAAG,kCAAkC,CAAC;AAEpD;;;;GAIG;AACH,SAAS,YAAY,CAAC,GAAuB;IAC5C,IAAI,GAAG,KAAK,SAAS;QAAE,OAAO,IAAI,CAAC;IACnC,MAAM,UAAU,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;IAC5C,IAAI,UAAU,KAAK,GAAG,IAAI,UAAU,KAAK,MAAM;QAAE,OAAO,IAAI,CAAC;IAC7D,IAAI,UAAU,KAAK,GAAG,IAAI,UAAU,KAAK,OAAO;QAAE,OAAO,KAAK,CAAC;IAC/D,OAAO,IAAI,CAAC;AACb,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,sBAAsB,CAAC,MAAc,OAAO,CAAC,GAAG,EAAE;IACjE,MAAM,QAAQ,GAAG,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC;IACrD,IAAI,QAAQ,KAAK,IAAI;QAAE,OAAO,QAAQ,CAAC;IAEvC,MAAM,OAAO,GAAG,iBAAiB,CAAC,GAAG,CAAC,CAAC;IAEvC,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,OAAO,CAAC;IACtE,IAAI,OAAO,WAAW,KAAK,SAAS;QAAE,OAAO,WAAW,CAAC;IAEzD,MAAM,UAAU,GAAG,OAAO,CAAC,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,OAAO,CAAC;IACpE,IAAI,OAAO,UAAU,KAAK,SAAS;QAAE,OAAO,UAAU,CAAC;IAEvD,OAAO,KAAK,CAAC;AACd,CAAC;AAED,mEAAmE;AACnE,oCAAoC;AACpC,MAAM,CAAC,MAAM,SAAS,GAAG,EAAE,YAAY,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { type Static, Type } from "typebox";
|
|
2
|
-
import { type ForgePersona } from "./forge-subagent.js";
|
|
3
|
-
import type { ForgeToolDefs } from "./forge-tools.js";
|
|
4
|
-
/**
|
|
5
|
-
* One retrieved skill (T08 output) supplied to the curator as context.
|
|
6
|
-
* `body` is the actual SKILL.md text the agent was shown during the task —
|
|
7
|
-
* the curator reads it to decide whether the skill needs updating.
|
|
8
|
-
*/
|
|
9
|
-
export declare const RetrievedSkillBodySchema: Type.TObject<{
|
|
10
|
-
skillId: Type.TString;
|
|
11
|
-
name: Type.TString;
|
|
12
|
-
body: Type.TString;
|
|
13
|
-
}>;
|
|
14
|
-
export type RetrievedSkillBody = Static<typeof RetrievedSkillBodySchema>;
|
|
15
|
-
export declare const TaskOutcomeSchema: Type.TObject<{
|
|
16
|
-
verdict: Type.TUnion<[Type.TLiteral<"approved">, Type.TLiteral<"revision">, Type.TLiteral<"failed">, Type.TLiteral<"aborted">]>;
|
|
17
|
-
notes: Type.TOptional<Type.TString>;
|
|
18
|
-
}>;
|
|
19
|
-
export type TaskOutcome = Static<typeof TaskOutcomeSchema>;
|
|
20
|
-
export declare const CuratorInputSchema: Type.TObject<{
|
|
21
|
-
sprintId: Type.TString;
|
|
22
|
-
taskId: Type.TString;
|
|
23
|
-
cwd: Type.TString;
|
|
24
|
-
ts: Type.TString;
|
|
25
|
-
trajectorySummary: Type.TString;
|
|
26
|
-
retrievedSkills: Type.TArray<Type.TObject<{
|
|
27
|
-
skillId: Type.TString;
|
|
28
|
-
name: Type.TString;
|
|
29
|
-
body: Type.TString;
|
|
30
|
-
}>>;
|
|
31
|
-
outcome: Type.TObject<{
|
|
32
|
-
verdict: Type.TUnion<[Type.TLiteral<"approved">, Type.TLiteral<"revision">, Type.TLiteral<"failed">, Type.TLiteral<"aborted">]>;
|
|
33
|
-
notes: Type.TOptional<Type.TString>;
|
|
34
|
-
}>;
|
|
35
|
-
}>;
|
|
36
|
-
export type CuratorInput = Static<typeof CuratorInputSchema>;
|
|
37
|
-
/**
|
|
38
|
-
* The enhancement proposal schema accepted by this module — mirrors
|
|
39
|
-
* `forge/forge/schemas/proposal.schema.json` (the queue-drain contract).
|
|
40
|
-
* `op` is restricted to the canonical three-op enum; other fields are
|
|
41
|
-
* passed through verbatim if present.
|
|
42
|
-
*
|
|
43
|
-
* Strict on required keys (so malformed items are dropped), permissive on
|
|
44
|
-
* optional keys (so the curator can supply rationale, sourceFrictionIds,
|
|
45
|
-
* generated_at, etc., without us re-enumerating the entire schema here).
|
|
46
|
-
*/
|
|
47
|
-
declare const ProposalSchema: Type.TObject<{
|
|
48
|
-
op: Type.TUnion<[Type.TLiteral<"insert_skill">, Type.TLiteral<"update_skill">, Type.TLiteral<"delete_skill">]>;
|
|
49
|
-
target_path: Type.TString;
|
|
50
|
-
diff_body: Type.TString;
|
|
51
|
-
rationale: Type.TOptional<Type.TString>;
|
|
52
|
-
sourceFrictionIds: Type.TOptional<Type.TArray<Type.TString>>;
|
|
53
|
-
generated_at: Type.TOptional<Type.TString>;
|
|
54
|
-
sprintId: Type.TOptional<Type.TString>;
|
|
55
|
-
proposalId: Type.TOptional<Type.TString>;
|
|
56
|
-
}>;
|
|
57
|
-
export type Proposal = Static<typeof ProposalSchema>;
|
|
58
|
-
export interface CuratorResult {
|
|
59
|
-
exitCode: 0 | 1;
|
|
60
|
-
written: number;
|
|
61
|
-
queueFile?: string;
|
|
62
|
-
errorMessage?: string;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Compose the first user message for the curator subagent. The body embeds
|
|
66
|
-
* the trajectory summary, retrieved-skill bodies, and task outcome, and
|
|
67
|
-
* instructs the curator to return zero or more proposals in a fenced JSON
|
|
68
|
-
* block. The schema is described inline so the curator does not need to
|
|
69
|
-
* read an external file.
|
|
70
|
-
*/
|
|
71
|
-
export declare function composeCuratorTask(input: CuratorInput): string;
|
|
72
|
-
/**
|
|
73
|
-
* Pull zero or more proposals from the curator's final assistant text.
|
|
74
|
-
* Strategy: try fenced ```json blocks first (the requested format), then
|
|
75
|
-
* fall back to a bare JSON array scan. Items that fail TypeBox validation
|
|
76
|
-
* are dropped — the failure mode for ill-formed proposals is silent
|
|
77
|
-
* exclusion, not exception, because the curator's output is best-effort.
|
|
78
|
-
*/
|
|
79
|
-
export declare function parseProposalsFromOutput(text: string): Proposal[];
|
|
80
|
-
/**
|
|
81
|
-
* Inline curator persona. We do NOT add a file under
|
|
82
|
-
* `forge/forge/meta/personas/` (Iron Law 1 — forge-cli only). The persona
|
|
83
|
-
* system prompt is small and self-contained; it tells the LLM to act as a
|
|
84
|
-
* skill curator and reiterates the output format and the no-write rule.
|
|
85
|
-
*
|
|
86
|
-
* The persona is exported so tests can introspect it; in production the
|
|
87
|
-
* defaultCuratorPersona() factory is consumed by runSkillCurator.
|
|
88
|
-
*/
|
|
89
|
-
export declare function defaultCuratorPersona(): ForgePersona;
|
|
90
|
-
/**
|
|
91
|
-
* Run the per-task curator subagent and write its proposals to the
|
|
92
|
-
* enhancement-proposals queue. Always returns a typed result; never throws
|
|
93
|
-
* on subagent failure (IL7).
|
|
94
|
-
*
|
|
95
|
-
* Caller (orchestrator) is responsible for:
|
|
96
|
-
* - assembling `retrievedSkills` from the T08 retriever's output;
|
|
97
|
-
* - assembling `trajectorySummary` from the task transcript;
|
|
98
|
-
* - emitting the canonical phase event AFTER this call returns,
|
|
99
|
-
* using its own captured runtime telemetry (Slice 2 contract).
|
|
100
|
-
*/
|
|
101
|
-
export declare function runSkillCurator(input: CuratorInput, forgeToolDefs?: ForgeToolDefs): Promise<CuratorResult>;
|
|
102
|
-
export {};
|
|
@@ -1,339 +0,0 @@
|
|
|
1
|
-
// Per-task curator subagent — FORGE-S24-T10.
|
|
2
|
-
//
|
|
3
|
-
// At task close, the orchestrator hands a trajectory summary, the retrieved
|
|
4
|
-
// skills' bodies (from T08), and the task outcome to a curator subagent. The
|
|
5
|
-
// curator returns zero or more enhancement proposals (insert / update / delete
|
|
6
|
-
// of skill artifacts). This module:
|
|
7
|
-
//
|
|
8
|
-
// 1. Composes a task body that explicitly asks for proposals in a fenced
|
|
9
|
-
// ```json [...] block, with the canonical proposal schema embedded.
|
|
10
|
-
// 2. Dispatches via `runForgeSubagent` (Iron Law 10 — fresh in-process pi
|
|
11
|
-
// session, isolated context, persona-only context loader).
|
|
12
|
-
// 3. Parses zero or more proposals from the final assistant output, dropping
|
|
13
|
-
// any item that fails TypeBox schema validation.
|
|
14
|
-
// 4. Dedupes by `{op, target_path, sha256(diff_body)}` (mirrors T07's drain
|
|
15
|
-
// key — collisions never reach the sprint-close batch).
|
|
16
|
-
// 5. Writes the deduped batch to `.forge/enhancement-proposals/queue/<sprintId>/<taskId>-<ts>.json`
|
|
17
|
-
// (T07 layout) only when there is at least one proposal — zero noise on
|
|
18
|
-
// empty curator runs. If the canonical path already exists, the curator
|
|
19
|
-
// retries with a fresh `-N` suffix on the ts (append-only invariant —
|
|
20
|
-
// queue files are never overwritten).
|
|
21
|
-
//
|
|
22
|
-
// What this module DOES NOT do:
|
|
23
|
-
// - Emit phase events. The orchestrator (caller — `run-task.ts`,
|
|
24
|
-
// `fix-bug.ts`, gated behind FORGE-S24-T12 feature flag) is responsible
|
|
25
|
-
// for the Slice 2 contract: composing & emitting the canonical phase
|
|
26
|
-
// event from runtime telemetry. The curator subagent NEVER calls
|
|
27
|
-
// `store-cli emit` (IL10 / telemetry-actor-split).
|
|
28
|
-
// - Write to `forge/forge/meta/skills/` or `.forge/skills/`. The queue
|
|
29
|
-
// file is the sole sink. (TASK_PROMPT Acceptance Criterion 5.)
|
|
30
|
-
// - Decide WHEN task-close is. The caller invokes this at task close.
|
|
31
|
-
//
|
|
32
|
-
// Iron Laws (forge-cli-engineer):
|
|
33
|
-
// IL1 — code only under forge-cli/src/extensions/forgecli/
|
|
34
|
-
// IL2 — TypeScript + TypeBox; runtime input validated by Value.Parse.
|
|
35
|
-
// IL6 — no shell-string interpolation (no subprocess here; runForgeSubagent
|
|
36
|
-
// owns its spawn discipline).
|
|
37
|
-
// IL7 — failures return a typed result; subagent error surfaces in the
|
|
38
|
-
// returned record.
|
|
39
|
-
// IL10 — orchestrator dispatch via runForgeSubagent; this module emits
|
|
40
|
-
// ZERO phase events; the orchestrator owns runtime attribution and
|
|
41
|
-
// event emission after this function returns.
|
|
42
|
-
import * as crypto from "node:crypto";
|
|
43
|
-
import * as fs from "node:fs";
|
|
44
|
-
import * as path from "node:path";
|
|
45
|
-
import { Type } from "typebox";
|
|
46
|
-
import { Value } from "typebox/value";
|
|
47
|
-
import { getFinalOutput, runForgeSubagent } from "./forge-subagent.js";
|
|
48
|
-
import { isSkillCurationEnabled } from "./skill-curation-flag.js";
|
|
49
|
-
// ── Public schemas ────────────────────────────────────────────────────────
|
|
50
|
-
/**
|
|
51
|
-
* One retrieved skill (T08 output) supplied to the curator as context.
|
|
52
|
-
* `body` is the actual SKILL.md text the agent was shown during the task —
|
|
53
|
-
* the curator reads it to decide whether the skill needs updating.
|
|
54
|
-
*/
|
|
55
|
-
export const RetrievedSkillBodySchema = Type.Object({
|
|
56
|
-
skillId: Type.String({ minLength: 1 }),
|
|
57
|
-
name: Type.String({ minLength: 1 }),
|
|
58
|
-
body: Type.String(),
|
|
59
|
-
});
|
|
60
|
-
export const TaskOutcomeSchema = Type.Object({
|
|
61
|
-
verdict: Type.Union([
|
|
62
|
-
Type.Literal("approved"),
|
|
63
|
-
Type.Literal("revision"),
|
|
64
|
-
Type.Literal("failed"),
|
|
65
|
-
Type.Literal("aborted"),
|
|
66
|
-
]),
|
|
67
|
-
notes: Type.Optional(Type.String()),
|
|
68
|
-
});
|
|
69
|
-
export const CuratorInputSchema = Type.Object({
|
|
70
|
-
sprintId: Type.String({ minLength: 1 }),
|
|
71
|
-
taskId: Type.String({ minLength: 1 }),
|
|
72
|
-
cwd: Type.String({ minLength: 1 }),
|
|
73
|
-
ts: Type.String({ minLength: 1 }),
|
|
74
|
-
trajectorySummary: Type.String(),
|
|
75
|
-
retrievedSkills: Type.Array(RetrievedSkillBodySchema),
|
|
76
|
-
outcome: TaskOutcomeSchema,
|
|
77
|
-
});
|
|
78
|
-
/**
|
|
79
|
-
* The enhancement proposal schema accepted by this module — mirrors
|
|
80
|
-
* `forge/forge/schemas/proposal.schema.json` (the queue-drain contract).
|
|
81
|
-
* `op` is restricted to the canonical three-op enum; other fields are
|
|
82
|
-
* passed through verbatim if present.
|
|
83
|
-
*
|
|
84
|
-
* Strict on required keys (so malformed items are dropped), permissive on
|
|
85
|
-
* optional keys (so the curator can supply rationale, sourceFrictionIds,
|
|
86
|
-
* generated_at, etc., without us re-enumerating the entire schema here).
|
|
87
|
-
*/
|
|
88
|
-
const ProposalSchema = Type.Object({
|
|
89
|
-
op: Type.Union([Type.Literal("insert_skill"), Type.Literal("update_skill"), Type.Literal("delete_skill")]),
|
|
90
|
-
target_path: Type.String({ minLength: 1 }),
|
|
91
|
-
diff_body: Type.String(),
|
|
92
|
-
// Optional pass-through fields (kept minimal — extra unknown keys are
|
|
93
|
-
// also allowed; we use additionalProperties: true to let the curator
|
|
94
|
-
// supply rationale / sourceFrictionIds / generated_at / sprintId).
|
|
95
|
-
rationale: Type.Optional(Type.String()),
|
|
96
|
-
sourceFrictionIds: Type.Optional(Type.Array(Type.String())),
|
|
97
|
-
generated_at: Type.Optional(Type.String()),
|
|
98
|
-
sprintId: Type.Optional(Type.String()),
|
|
99
|
-
proposalId: Type.Optional(Type.String()),
|
|
100
|
-
}, { additionalProperties: true });
|
|
101
|
-
// ── Task-body composition ─────────────────────────────────────────────────
|
|
102
|
-
/**
|
|
103
|
-
* Compose the first user message for the curator subagent. The body embeds
|
|
104
|
-
* the trajectory summary, retrieved-skill bodies, and task outcome, and
|
|
105
|
-
* instructs the curator to return zero or more proposals in a fenced JSON
|
|
106
|
-
* block. The schema is described inline so the curator does not need to
|
|
107
|
-
* read an external file.
|
|
108
|
-
*/
|
|
109
|
-
export function composeCuratorTask(input) {
|
|
110
|
-
const lines = [];
|
|
111
|
-
lines.push(`# Skill-curator task — ${input.taskId}`);
|
|
112
|
-
lines.push("");
|
|
113
|
-
lines.push("You are reviewing one closed Forge task to decide whether any retrieved", "skill should be inserted, updated, or deleted based on what the agent", "actually did. Output zero or more enhancement proposals — empty is fine", "when nothing useful was learned.", "");
|
|
114
|
-
lines.push("## Sprint / Task");
|
|
115
|
-
lines.push(`- sprintId: ${input.sprintId}`);
|
|
116
|
-
lines.push(`- taskId: ${input.taskId}`);
|
|
117
|
-
lines.push(`- verdict: ${input.outcome.verdict}`);
|
|
118
|
-
if (input.outcome.notes) {
|
|
119
|
-
lines.push(`- notes: ${input.outcome.notes}`);
|
|
120
|
-
}
|
|
121
|
-
lines.push("");
|
|
122
|
-
lines.push("## Trajectory summary");
|
|
123
|
-
lines.push(input.trajectorySummary || "(none)");
|
|
124
|
-
lines.push("");
|
|
125
|
-
lines.push("## Retrieved skills (the agent was shown these)");
|
|
126
|
-
if (input.retrievedSkills.length === 0) {
|
|
127
|
-
lines.push("(none)");
|
|
128
|
-
}
|
|
129
|
-
else {
|
|
130
|
-
for (const s of input.retrievedSkills) {
|
|
131
|
-
lines.push(`### ${s.name} (skillId: ${s.skillId})`);
|
|
132
|
-
lines.push("```");
|
|
133
|
-
lines.push(s.body);
|
|
134
|
-
lines.push("```");
|
|
135
|
-
lines.push("");
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
lines.push("## Output format");
|
|
139
|
-
lines.push("Return a single fenced ```json``` block containing a JSON array.", "Each array element is one proposal with these required keys:", ' - op: one of "insert_skill" | "update_skill" | "delete_skill"', " - target_path: repository-relative path (e.g. forge/skills/engineer-skills.md)", " - diff_body: unified-diff body, or full file body for inserts;", " may be empty string for delete_skill", "Optional keys: rationale, sourceFrictionIds, generated_at, sprintId.", "", "If there is nothing to propose, emit an empty array `[]`.", "Do NOT write any file yourself. Do NOT call store-cli or emit events.", "Your output is consumed by the orchestrator, which writes the queue file.");
|
|
140
|
-
return lines.join("\n");
|
|
141
|
-
}
|
|
142
|
-
// ── Output parsing ────────────────────────────────────────────────────────
|
|
143
|
-
/**
|
|
144
|
-
* Pull zero or more proposals from the curator's final assistant text.
|
|
145
|
-
* Strategy: try fenced ```json blocks first (the requested format), then
|
|
146
|
-
* fall back to a bare JSON array scan. Items that fail TypeBox validation
|
|
147
|
-
* are dropped — the failure mode for ill-formed proposals is silent
|
|
148
|
-
* exclusion, not exception, because the curator's output is best-effort.
|
|
149
|
-
*/
|
|
150
|
-
export function parseProposalsFromOutput(text) {
|
|
151
|
-
if (typeof text !== "string" || text.length === 0)
|
|
152
|
-
return [];
|
|
153
|
-
const candidates = [];
|
|
154
|
-
// 1. Fenced ```json blocks (preferred).
|
|
155
|
-
const fenceRe = /```(?:json|JSON)\s*([\s\S]*?)```/g;
|
|
156
|
-
let m;
|
|
157
|
-
while ((m = fenceRe.exec(text)) !== null) {
|
|
158
|
-
const inner = m[1].trim();
|
|
159
|
-
const parsed = tryParseJsonArray(inner);
|
|
160
|
-
if (parsed)
|
|
161
|
-
candidates.push(...parsed);
|
|
162
|
-
}
|
|
163
|
-
// 2. Fallback: scan for a bare JSON array if no fenced block produced
|
|
164
|
-
// items. Cheap heuristic — find the first `[` and try to parse from
|
|
165
|
-
// there to the matching `]`.
|
|
166
|
-
if (candidates.length === 0) {
|
|
167
|
-
const start = text.indexOf("[");
|
|
168
|
-
if (start >= 0) {
|
|
169
|
-
// Greedy: try the substring from `[` to the last `]`.
|
|
170
|
-
const end = text.lastIndexOf("]");
|
|
171
|
-
if (end > start) {
|
|
172
|
-
const inner = text.slice(start, end + 1);
|
|
173
|
-
const parsed = tryParseJsonArray(inner);
|
|
174
|
-
if (parsed)
|
|
175
|
-
candidates.push(...parsed);
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
const out = [];
|
|
180
|
-
for (const c of candidates) {
|
|
181
|
-
if (Value.Check(ProposalSchema, c)) {
|
|
182
|
-
out.push(c);
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
return out;
|
|
186
|
-
}
|
|
187
|
-
function tryParseJsonArray(s) {
|
|
188
|
-
try {
|
|
189
|
-
const v = JSON.parse(s);
|
|
190
|
-
return Array.isArray(v) ? v : null;
|
|
191
|
-
}
|
|
192
|
-
catch {
|
|
193
|
-
return null;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
// ── Dedupe ────────────────────────────────────────────────────────────────
|
|
197
|
-
/**
|
|
198
|
-
* Mirror T07's `dedupeKey`: composite of op, target_path, sha256(diff_body).
|
|
199
|
-
* First-seen-wins.
|
|
200
|
-
*/
|
|
201
|
-
function dedupeKey(p) {
|
|
202
|
-
const h = crypto
|
|
203
|
-
.createHash("sha256")
|
|
204
|
-
.update(p.diff_body ?? "", "utf8")
|
|
205
|
-
.digest("hex");
|
|
206
|
-
return `${p.op}|${p.target_path}|${h}`;
|
|
207
|
-
}
|
|
208
|
-
function dedupeProposals(items) {
|
|
209
|
-
const seen = new Set();
|
|
210
|
-
const out = [];
|
|
211
|
-
for (const p of items) {
|
|
212
|
-
const k = dedupeKey(p);
|
|
213
|
-
if (seen.has(k))
|
|
214
|
-
continue;
|
|
215
|
-
seen.add(k);
|
|
216
|
-
out.push(p);
|
|
217
|
-
}
|
|
218
|
-
return out;
|
|
219
|
-
}
|
|
220
|
-
// ── Queue write ───────────────────────────────────────────────────────────
|
|
221
|
-
/**
|
|
222
|
-
* Compute the canonical queue file path. T07 layout:
|
|
223
|
-
* <cwd>/.forge/enhancement-proposals/queue/<sprintId>/<taskId>-<ts>.json
|
|
224
|
-
*
|
|
225
|
-
* If the canonical path already exists, suffix `-1`, `-2`, … until a free
|
|
226
|
-
* slot is found. Caller never overwrites an existing file (append-only).
|
|
227
|
-
*/
|
|
228
|
-
function chooseQueuePath(input) {
|
|
229
|
-
const dir = path.join(input.cwd, ".forge", "enhancement-proposals", "queue", input.sprintId);
|
|
230
|
-
const base = `${input.taskId}-${input.ts}`;
|
|
231
|
-
let candidate = path.join(dir, `${base}.json`);
|
|
232
|
-
let n = 1;
|
|
233
|
-
while (fs.existsSync(candidate)) {
|
|
234
|
-
candidate = path.join(dir, `${base}-${n}.json`);
|
|
235
|
-
n++;
|
|
236
|
-
}
|
|
237
|
-
return candidate;
|
|
238
|
-
}
|
|
239
|
-
function writeQueueFile(filePath, proposals) {
|
|
240
|
-
fs.mkdirSync(path.dirname(filePath), { recursive: true });
|
|
241
|
-
fs.writeFileSync(filePath, JSON.stringify(proposals, null, 2), "utf8");
|
|
242
|
-
}
|
|
243
|
-
// ── Curator persona ───────────────────────────────────────────────────────
|
|
244
|
-
/**
|
|
245
|
-
* Inline curator persona. We do NOT add a file under
|
|
246
|
-
* `forge/forge/meta/personas/` (Iron Law 1 — forge-cli only). The persona
|
|
247
|
-
* system prompt is small and self-contained; it tells the LLM to act as a
|
|
248
|
-
* skill curator and reiterates the output format and the no-write rule.
|
|
249
|
-
*
|
|
250
|
-
* The persona is exported so tests can introspect it; in production the
|
|
251
|
-
* defaultCuratorPersona() factory is consumed by runSkillCurator.
|
|
252
|
-
*/
|
|
253
|
-
export function defaultCuratorPersona() {
|
|
254
|
-
const systemPrompt = [
|
|
255
|
-
"You are the Forge **skill curator**.",
|
|
256
|
-
"",
|
|
257
|
-
"Your sole job is to look at one closed task — the trajectory summary,",
|
|
258
|
-
"the skills the agent was shown, and the outcome — and propose zero or",
|
|
259
|
-
"more enhancement proposals (insert / update / delete of skill artifacts).",
|
|
260
|
-
"",
|
|
261
|
-
"Hard rules:",
|
|
262
|
-
" - You NEVER write files yourself. Output proposals only.",
|
|
263
|
-
" - You NEVER call store-cli, emit events, or invoke tools that mutate",
|
|
264
|
-
" `.forge/store/`, `forge/skills/`, or `forge/meta/`.",
|
|
265
|
-
" - You return your proposals as a single fenced ```json``` block",
|
|
266
|
-
" containing a JSON array. Empty array `[]` is a valid answer.",
|
|
267
|
-
" - Each proposal MUST have: op, target_path, diff_body.",
|
|
268
|
-
" op ∈ { insert_skill, update_skill, delete_skill }.",
|
|
269
|
-
" - Be conservative: empty array beats a noisy or speculative proposal.",
|
|
270
|
-
].join("\n");
|
|
271
|
-
return {
|
|
272
|
-
name: "skill-curator",
|
|
273
|
-
description: "Forge per-task skill curator",
|
|
274
|
-
// Persona-only context (no extensions/skills/prompts) — read & write are
|
|
275
|
-
// not needed; we don't pass `tools` so pi's defaults apply, but the
|
|
276
|
-
// system prompt forbids writes. Caller may override.
|
|
277
|
-
systemPrompt,
|
|
278
|
-
filePath: "<inline:skill-curator>",
|
|
279
|
-
};
|
|
280
|
-
}
|
|
281
|
-
// ── Main entry ────────────────────────────────────────────────────────────
|
|
282
|
-
/**
|
|
283
|
-
* Run the per-task curator subagent and write its proposals to the
|
|
284
|
-
* enhancement-proposals queue. Always returns a typed result; never throws
|
|
285
|
-
* on subagent failure (IL7).
|
|
286
|
-
*
|
|
287
|
-
* Caller (orchestrator) is responsible for:
|
|
288
|
-
* - assembling `retrievedSkills` from the T08 retriever's output;
|
|
289
|
-
* - assembling `trajectorySummary` from the task transcript;
|
|
290
|
-
* - emitting the canonical phase event AFTER this call returns,
|
|
291
|
-
* using its own captured runtime telemetry (Slice 2 contract).
|
|
292
|
-
*/
|
|
293
|
-
export async function runSkillCurator(input, forgeToolDefs) {
|
|
294
|
-
// FORGE-S24-T12 — gated rollout. Default off ⇒ no subagent dispatch,
|
|
295
|
-
// no queue file write. Returns success with `written: 0` so the
|
|
296
|
-
// orchestrator's caller sees the same "no proposals" outcome as a
|
|
297
|
-
// flag-on run that produced an empty proposal list.
|
|
298
|
-
if (!isSkillCurationEnabled(input.cwd)) {
|
|
299
|
-
return { exitCode: 0, written: 0 };
|
|
300
|
-
}
|
|
301
|
-
Value.Parse(CuratorInputSchema, input);
|
|
302
|
-
const persona = defaultCuratorPersona();
|
|
303
|
-
const task = composeCuratorTask(input);
|
|
304
|
-
let subResult;
|
|
305
|
-
try {
|
|
306
|
-
subResult = await runForgeSubagent({
|
|
307
|
-
persona,
|
|
308
|
-
task,
|
|
309
|
-
cwd: input.cwd,
|
|
310
|
-
exportTag: `${input.taskId}__skill-curator`,
|
|
311
|
-
customTools: forgeToolDefs ? Object.values(forgeToolDefs) : undefined,
|
|
312
|
-
});
|
|
313
|
-
}
|
|
314
|
-
catch (err) {
|
|
315
|
-
const e = err;
|
|
316
|
-
return {
|
|
317
|
-
exitCode: 1,
|
|
318
|
-
written: 0,
|
|
319
|
-
errorMessage: e.message ?? "runForgeSubagent threw",
|
|
320
|
-
};
|
|
321
|
-
}
|
|
322
|
-
if (subResult.exitCode !== 0) {
|
|
323
|
-
return {
|
|
324
|
-
exitCode: 1,
|
|
325
|
-
written: 0,
|
|
326
|
-
errorMessage: subResult.errorMessage ?? subResult.stopReason ?? "subagent failed",
|
|
327
|
-
};
|
|
328
|
-
}
|
|
329
|
-
const finalText = getFinalOutput(subResult.messages);
|
|
330
|
-
const proposals = parseProposalsFromOutput(finalText);
|
|
331
|
-
const deduped = dedupeProposals(proposals);
|
|
332
|
-
if (deduped.length === 0) {
|
|
333
|
-
return { exitCode: 0, written: 0 };
|
|
334
|
-
}
|
|
335
|
-
const queueFile = chooseQueuePath(input);
|
|
336
|
-
writeQueueFile(queueFile, deduped);
|
|
337
|
-
return { exitCode: 0, written: deduped.length, queueFile };
|
|
338
|
-
}
|
|
339
|
-
//# sourceMappingURL=skill-curator-subagent.js.map
|