@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,159 +0,0 @@
|
|
|
1
|
-
// forge:report-bug — native kickoff handler (FORGE-S23-T11).
|
|
2
|
-
//
|
|
3
|
-
// Replaces the auto-generated stub previously installed by
|
|
4
|
-
// registerAllForgeCommands (forge-commands.ts). Kickoff Shim archetype
|
|
5
|
-
// (Pack-04 + Pack-06): single LLM handoff in current context, no fork.
|
|
6
|
-
//
|
|
7
|
-
// Pre-flights: gh auth status (spawnSync, argv-array, IL6). On failure,
|
|
8
|
-
// notifies and returns — no kickoff sent.
|
|
9
|
-
//
|
|
10
|
-
// Bug repo is configurable (AC#5):
|
|
11
|
-
// 1. FORGE_BUG_REPO env var
|
|
12
|
-
// 2. config.json bugs.repo field (if present)
|
|
13
|
-
// 3. default: "Entelligentsia/forge"
|
|
14
|
-
//
|
|
15
|
-
// Workflow source: <forgeRoot>/commands/report-bug.md (command file).
|
|
16
|
-
// File-existence check only — command files lack Pack-06 workflow markers.
|
|
17
|
-
//
|
|
18
|
-
// Iron Laws:
|
|
19
|
-
// IL1 — code only under forge-cli/src/extensions/forgecli/.
|
|
20
|
-
// IL4 — no JSON.stringify-into-subagent dispatch.
|
|
21
|
-
// IL6 — no shell-string interpolation; spawnSync uses argv arrays.
|
|
22
|
-
// IL7 — every failure path emits ctx.ui.notify and returns; no silent
|
|
23
|
-
// continuation.
|
|
24
|
-
import { spawnSync } from "node:child_process";
|
|
25
|
-
import * as fs from "node:fs";
|
|
26
|
-
import * as path from "node:path";
|
|
27
|
-
import { sendKickoff } from "./kickoff.js";
|
|
28
|
-
// ── Repo resolution ───────────────────────────────────────────────────────
|
|
29
|
-
const DEFAULT_BUG_REPO = "Entelligentsia/forge";
|
|
30
|
-
export function resolveBugRepo(cwd) {
|
|
31
|
-
// 1. FORGE_BUG_REPO env var
|
|
32
|
-
const fromEnv = process.env["FORGE_BUG_REPO"];
|
|
33
|
-
if (fromEnv?.trim())
|
|
34
|
-
return fromEnv.trim();
|
|
35
|
-
// 2. config.json bugs.repo field
|
|
36
|
-
try {
|
|
37
|
-
const configPath = path.join(cwd, ".forge", "config.json");
|
|
38
|
-
const raw = fs.readFileSync(configPath, "utf8");
|
|
39
|
-
const config = JSON.parse(raw);
|
|
40
|
-
const bugs = config["bugs"];
|
|
41
|
-
const repo = bugs?.["repo"];
|
|
42
|
-
if (typeof repo === "string" && repo.trim())
|
|
43
|
-
return repo.trim();
|
|
44
|
-
}
|
|
45
|
-
catch {
|
|
46
|
-
// config absent or unreadable — fall through to default
|
|
47
|
-
}
|
|
48
|
-
// 3. default
|
|
49
|
-
return DEFAULT_BUG_REPO;
|
|
50
|
-
}
|
|
51
|
-
export function parseReportBugArgs(rawArgs, cwd) {
|
|
52
|
-
const trimmed = (rawArgs ?? "").trim();
|
|
53
|
-
if (!trimmed) {
|
|
54
|
-
return { mode: "empty", symptomText: "", sourceLabel: "(no symptom — LLM will ask)" };
|
|
55
|
-
}
|
|
56
|
-
if (trimmed.startsWith("@")) {
|
|
57
|
-
const ref = trimmed.slice(1).trim();
|
|
58
|
-
const filePath = path.isAbsolute(ref) ? ref : path.resolve(cwd, ref);
|
|
59
|
-
const symptomText = fs.readFileSync(filePath, "utf8");
|
|
60
|
-
return { mode: "file", symptomText, sourceLabel: `(symptom from file: ${ref})` };
|
|
61
|
-
}
|
|
62
|
-
return { mode: "text", symptomText: trimmed, sourceLabel: "(symptom from inline text)" };
|
|
63
|
-
}
|
|
64
|
-
export function checkGhAuth() {
|
|
65
|
-
// IL6: argv-array, no shell interpolation
|
|
66
|
-
const result = spawnSync("gh", ["auth", "status"], {
|
|
67
|
-
encoding: "utf8",
|
|
68
|
-
timeout: 10_000,
|
|
69
|
-
});
|
|
70
|
-
const ok = result.status === 0 && !result.error;
|
|
71
|
-
const output = ((result.stdout ?? "") + (result.stderr ?? "")).trim();
|
|
72
|
-
return { ok, output: output.slice(0, 300) }; // cap for kickoff body
|
|
73
|
-
}
|
|
74
|
-
export function composeReportBugKickoff(opts) {
|
|
75
|
-
const { commandMd, parsed, bugRepo, ghAuthOutput } = opts;
|
|
76
|
-
const sections = ["# /forge:report-bug", ""];
|
|
77
|
-
sections.push("## Dispatch", "");
|
|
78
|
-
sections.push("File a bug report against Forge (not your project). Follow the command steps below. Specifically:");
|
|
79
|
-
sections.push("");
|
|
80
|
-
sections.push(`1. File the issue to: \`${bugRepo}\` (override via \`FORGE_BUG_REPO\` env or \`config.json\` \`bugs.repo\` field).`);
|
|
81
|
-
sections.push("2. `gh` is authenticated (pre-flight passed). Use it to file the issue.");
|
|
82
|
-
if (ghAuthOutput) {
|
|
83
|
-
sections.push(`3. Auth context: \`${ghAuthOutput.replace(/\n/g, " ").slice(0, 200)}\``);
|
|
84
|
-
}
|
|
85
|
-
sections.push("4. Gather automatic context (forge version, node version, OS) per Step 2 in the command.");
|
|
86
|
-
sections.push("5. Draft the issue body, show it to the user for review, then file with `gh issue create`.");
|
|
87
|
-
sections.push("", "---", "", "## Command", "", commandMd.trim(), "", "---");
|
|
88
|
-
if (parsed.mode === "empty") {
|
|
89
|
-
sections.push("", "## Input", "", "(no symptom provided — ask the user to describe the bug)");
|
|
90
|
-
}
|
|
91
|
-
else {
|
|
92
|
-
sections.push("", `## Input — ${parsed.sourceLabel}`, "", parsed.symptomText.trim());
|
|
93
|
-
}
|
|
94
|
-
return sections.join("\n");
|
|
95
|
-
}
|
|
96
|
-
// ── Registration ──────────────────────────────────────────────────────────
|
|
97
|
-
const COMMAND_NAME = "report-bug";
|
|
98
|
-
export function registerReportBug(pi, options) {
|
|
99
|
-
pi.registerCommand("forge:report-bug", {
|
|
100
|
-
description: "File a bug against Forge itself as a GitHub issue. " +
|
|
101
|
-
"Usage: /forge:report-bug [@<file> | <symptom description>]. " +
|
|
102
|
-
"Requires `gh` to be installed and authenticated. " +
|
|
103
|
-
"Target repo: FORGE_BUG_REPO env | config.json bugs.repo | Entelligentsia/forge.",
|
|
104
|
-
async handler(args, ctx) {
|
|
105
|
-
const { forgeRoot } = options;
|
|
106
|
-
const cwd = options.cwd ?? process.cwd();
|
|
107
|
-
// gh auth pre-flight (IL6: argv-array)
|
|
108
|
-
const ghAuth = checkGhAuth();
|
|
109
|
-
if (!ghAuth.ok) {
|
|
110
|
-
ctx.ui.notify("× forge:report-bug — gh is not authenticated. Install gh (https://cli.github.com) and run `gh auth login` first.", "error");
|
|
111
|
-
return;
|
|
112
|
-
}
|
|
113
|
-
if (!forgeRoot) {
|
|
114
|
-
// report-bug works outside a Forge project (reporting bugs in Forge itself)
|
|
115
|
-
// but we still need the command file from the bundled payload
|
|
116
|
-
}
|
|
117
|
-
// Resolve command file from forgeRoot (bundled payload) or fall back to graceful error
|
|
118
|
-
let commandMd;
|
|
119
|
-
if (forgeRoot) {
|
|
120
|
-
const commandPath = path.join(forgeRoot, "commands", `${COMMAND_NAME}.md`);
|
|
121
|
-
try {
|
|
122
|
-
commandMd = fs.readFileSync(commandPath, "utf8");
|
|
123
|
-
}
|
|
124
|
-
catch (err) {
|
|
125
|
-
const e = err;
|
|
126
|
-
if (e.code === "ENOENT") {
|
|
127
|
-
ctx.ui.notify(`× forge:report-bug — command file not found at commands/${COMMAND_NAME}.md; run /forge:init or /forge:rebuild first.`, "error");
|
|
128
|
-
}
|
|
129
|
-
else {
|
|
130
|
-
ctx.ui.notify(`× forge:report-bug — failed to read command file: ${e.message ?? "unknown error"}`, "error");
|
|
131
|
-
}
|
|
132
|
-
return;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
else {
|
|
136
|
-
ctx.ui.notify("× forge:report-bug — no Forge project at cwd; run /forge:init to bootstrap before reporting bugs.", "warning");
|
|
137
|
-
return;
|
|
138
|
-
}
|
|
139
|
-
let parsed;
|
|
140
|
-
try {
|
|
141
|
-
parsed = parseReportBugArgs(args, cwd);
|
|
142
|
-
}
|
|
143
|
-
catch (err) {
|
|
144
|
-
const e = err;
|
|
145
|
-
ctx.ui.notify(`× forge:report-bug — failed to parse args: ${e.message ?? "unknown"}`, "error");
|
|
146
|
-
return;
|
|
147
|
-
}
|
|
148
|
-
const bugRepo = resolveBugRepo(cwd);
|
|
149
|
-
const kickoff = composeReportBugKickoff({
|
|
150
|
-
commandMd,
|
|
151
|
-
parsed,
|
|
152
|
-
bugRepo,
|
|
153
|
-
ghAuthOutput: ghAuth.output,
|
|
154
|
-
});
|
|
155
|
-
sendKickoff(pi, kickoff);
|
|
156
|
-
},
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
//# sourceMappingURL=report-bug.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"report-bug.js","sourceRoot":"","sources":["../../../src/extensions/forgecli/report-bug.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,EAAE;AACF,2DAA2D;AAC3D,uEAAuE;AACvE,uEAAuE;AACvE,EAAE;AACF,wEAAwE;AACxE,0CAA0C;AAC1C,EAAE;AACF,mCAAmC;AACnC,8BAA8B;AAC9B,gDAAgD;AAChD,uCAAuC;AACvC,EAAE;AACF,sEAAsE;AACtE,2EAA2E;AAC3E,EAAE;AACF,aAAa;AACb,8DAA8D;AAC9D,oDAAoD;AACpD,qEAAqE;AACrE,wEAAwE;AACxE,wBAAwB;AAExB,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAGlC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,6EAA6E;AAE7E,MAAM,gBAAgB,GAAG,sBAAsB,CAAC;AAEhD,MAAM,UAAU,cAAc,CAAC,GAAW;IACzC,4BAA4B;IAC5B,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,gB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;YAChC,IAAI,CAAC;gBACJ,MAAM,GAAG,kBAAkB,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;YACxC,CAAC;YAAC,OAAO,GAAY,EAAE,CAAC;gBACvB,MAAM,CAAC,GAAG,GAA2B,CAAC;gBACtC,GAAG,CAAC,EAAE,CAAC,MAAM,CAAC,8CAA8C,CAAC,CAAC,OAAO,IAAI,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;gBAC/F,OAAO;YACR,CAAC;YAED,MAAM,OAAO,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC;YACpC,MAAM,OAAO,GAAG,uBAAuB,CAAC;gBACvC,SAAS;gBACT,MAAM;gBACN,OAAO;gBACP,YAAY,EAAE,MAAM,CAAC,MAAM;aAC3B,CAAC,CAAC;YACH,WAAW,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;QAC1B,CAAC;KACD,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
2
|
-
import { extractPersonaNames } from "./lib/frontmatter-parser.js";
|
|
3
|
-
export { extractPersonaNames };
|
|
4
|
-
export type ArgMode = "empty" | "file" | "text";
|
|
5
|
-
export interface ParsedArgs {
|
|
6
|
-
mode: ArgMode;
|
|
7
|
-
sprintRef: string;
|
|
8
|
-
sourceLabel: string;
|
|
9
|
-
}
|
|
10
|
-
export declare function parseRetroArgs(rawArgs: string, cwd: string): ParsedArgs;
|
|
11
|
-
export interface ComposeKickoffOpts {
|
|
12
|
-
workflowMd: string;
|
|
13
|
-
personaIdentity: string;
|
|
14
|
-
parsed: ParsedArgs;
|
|
15
|
-
}
|
|
16
|
-
export declare function composeKickoff(opts: ComposeKickoffOpts): string;
|
|
17
|
-
export interface RegisterRetrospectiveOptions {
|
|
18
|
-
cwd?: string;
|
|
19
|
-
}
|
|
20
|
-
export declare function registerRetrospective(pi: ExtensionAPI, options?: RegisterRetrospectiveOptions): void;
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
// forge:retrospective — native kickoff handler (FORGE-S23-T06).
|
|
2
|
-
//
|
|
3
|
-
// Replaces the auto-generated stub previously installed by
|
|
4
|
-
// registerAllForgeCommands (forge-commands.ts). Kickoff Shim archetype
|
|
5
|
-
// (Pack-04 + Pack-06): single LLM handoff in current context, no fork.
|
|
6
|
-
//
|
|
7
|
-
// The retrospective workflow (sprint_retrospective.md) is LLM-driven:
|
|
8
|
-
// the handler reads the materialized workflow, composes a kickoff message
|
|
9
|
-
// citing the persona path and workflow path, then dispatches via
|
|
10
|
-
// pi.sendUserMessage with { deliverAs: "steer" }.
|
|
11
|
-
//
|
|
12
|
-
// Iron Laws:
|
|
13
|
-
// IL1 — code only under forge-cli/src/extensions/forgecli/.
|
|
14
|
-
// IL4 — no JSON.stringify-into-subagent dispatch.
|
|
15
|
-
// IL6 — no shell-string interpolation; no spawn calls here.
|
|
16
|
-
// IL7 — every failure path emits ctx.ui.notify and returns; no silent
|
|
17
|
-
// continuation.
|
|
18
|
-
import * as fs from "node:fs";
|
|
19
|
-
import * as path from "node:path";
|
|
20
|
-
import { assertAudience } from "./audience-gate.js";
|
|
21
|
-
import { sendKickoff } from "./kickoff.js";
|
|
22
|
-
// FORGE-S25-T16: extracted to lib module (H-1). Re-exported here for
|
|
23
|
-
// backward compatibility with existing test and consumer imports.
|
|
24
|
-
import { extractPersonaNames } from "./lib/frontmatter-parser.js";
|
|
25
|
-
import { loadPersona, PersonaSkillLoaderError } from "./parsers/persona-skill-loader.js";
|
|
26
|
-
import { loadWorkflow, WorkflowLoaderError } from "./parsers/workflow-loader.js";
|
|
27
|
-
export { extractPersonaNames };
|
|
28
|
-
export function parseRetroArgs(rawArgs, cwd) {
|
|
29
|
-
const trimmed = (rawArgs ?? "").trim();
|
|
30
|
-
if (trimmed === "") {
|
|
31
|
-
return { mode: "empty", sprintRef: "", sourceLabel: "(no sprint specified — will prompt)" };
|
|
32
|
-
}
|
|
33
|
-
if (trimmed.startsWith("@")) {
|
|
34
|
-
const ref = trimmed.slice(1).trim();
|
|
35
|
-
const filePath = path.isAbsolute(ref) ? ref : path.resolve(cwd, ref);
|
|
36
|
-
const seed = fs.readFileSync(filePath, "utf8");
|
|
37
|
-
return { mode: "file", sprintRef: seed, sourceLabel: `(seed from file: ${ref})` };
|
|
38
|
-
}
|
|
39
|
-
return { mode: "text", sprintRef: trimmed, sourceLabel: "(seed from inline text)" };
|
|
40
|
-
}
|
|
41
|
-
export function composeKickoff(opts) {
|
|
42
|
-
const { workflowMd, personaIdentity, parsed } = opts;
|
|
43
|
-
const sections = ["# /forge:retro", ""];
|
|
44
|
-
if (personaIdentity.trim().length > 0) {
|
|
45
|
-
sections.push(personaIdentity.trim(), "");
|
|
46
|
-
}
|
|
47
|
-
sections.push("## Dispatch", "", "Run the retrospective workflow below. Specifically:", "", "1. Identify the sprint to retrospect: if a sprint ID was provided (e.g. FORGE-SNN) use it directly; otherwise ask the user which sprint to retrospect before proceeding.", "2. Load the architect persona from `.forge/personas/architect.md` for full identity context.", "3. Follow the workflow at `.forge/workflows/sprint_retrospective.md` verbatim: load all sprint task manifests, event logs, and retrospective notes; compute cost and bottlenecks; write RETROSPECTIVE.md.", "4. Use `forge_store_query` for all store reads — do NOT raw-read `.forge/store/`.", "5. Write retrospective artifacts using the `write` tool.", "6. Honour Pack-06 Read/Write/Ask/Store discipline: in-conversation clarifications use `forge_ask_user`.");
|
|
48
|
-
sections.push("", "---", "", "## Workflow", "", workflowMd.trim(), "", "---");
|
|
49
|
-
if (parsed.mode === "empty") {
|
|
50
|
-
sections.push("", "## Input", "", "(no sprint specified — ask the user which sprint to retrospect before proceeding)");
|
|
51
|
-
}
|
|
52
|
-
else {
|
|
53
|
-
sections.push("", `## Input — ${parsed.sourceLabel}`, "", parsed.sprintRef.trim());
|
|
54
|
-
}
|
|
55
|
-
return sections.join("\n");
|
|
56
|
-
}
|
|
57
|
-
// Registration -------------------------------------------------------------
|
|
58
|
-
const WORKFLOW_REL_PATH = path.join(".forge", "workflows", "sprint_retrospective.md");
|
|
59
|
-
export function registerRetrospective(pi, options = {}) {
|
|
60
|
-
pi.registerCommand("forge:retro", {
|
|
61
|
-
description: "Run the retrospective workflow for a Forge sprint. " +
|
|
62
|
-
"Usage: /forge:retro [FORGE-SNN | @<file> | <free-form text>]. " +
|
|
63
|
-
"Empty args — the LLM will prompt you for the sprint to retrospect.",
|
|
64
|
-
async handler(args, ctx) {
|
|
65
|
-
const cwd = options.cwd ?? process.cwd();
|
|
66
|
-
const workflowPath = path.join(cwd, WORKFLOW_REL_PATH);
|
|
67
|
-
let workflowMd;
|
|
68
|
-
let workflowAudience;
|
|
69
|
-
try {
|
|
70
|
-
const loaded = loadWorkflow(workflowPath);
|
|
71
|
-
workflowMd = loaded.rawMarkdown;
|
|
72
|
-
workflowAudience = loaded.audience;
|
|
73
|
-
}
|
|
74
|
-
catch (err) {
|
|
75
|
-
if (err instanceof WorkflowLoaderError) {
|
|
76
|
-
if (err.code === "missing_file") {
|
|
77
|
-
ctx.ui.notify(`× forge:retro — workflow not found at ${WORKFLOW_REL_PATH}; run /forge:init or /forge:rebuild first.`, "error");
|
|
78
|
-
}
|
|
79
|
-
else {
|
|
80
|
-
ctx.ui.notify(`× forge:retro — workflow load failed (${err.code}): ${err.message}`, "error");
|
|
81
|
-
}
|
|
82
|
-
return;
|
|
83
|
-
}
|
|
84
|
-
const e = err;
|
|
85
|
-
ctx.ui.notify(`× forge:retro — failed to read workflow: ${e.message ?? "unknown"}`, "error");
|
|
86
|
-
return;
|
|
87
|
-
}
|
|
88
|
-
let parsed;
|
|
89
|
-
try {
|
|
90
|
-
parsed = parseRetroArgs(args, cwd);
|
|
91
|
-
}
|
|
92
|
-
catch (err) {
|
|
93
|
-
const e = err;
|
|
94
|
-
ctx.ui.notify(`× forge:retro — failed to read seed: ${e.message ?? "unknown"}`, "error");
|
|
95
|
-
return;
|
|
96
|
-
}
|
|
97
|
-
const personas = extractPersonaNames(workflowMd);
|
|
98
|
-
let personaIdentity = "";
|
|
99
|
-
if (personas.length > 0) {
|
|
100
|
-
try {
|
|
101
|
-
const persona = loadPersona(personas[0], { cwd });
|
|
102
|
-
personaIdentity = persona.identity;
|
|
103
|
-
}
|
|
104
|
-
catch (err) {
|
|
105
|
-
if (err instanceof PersonaSkillLoaderError) {
|
|
106
|
-
ctx.ui.notify(`× forge:retro — persona '${personas[0]}' load failed (${err.code}): ${err.message}`, "error");
|
|
107
|
-
return;
|
|
108
|
-
}
|
|
109
|
-
const e = err;
|
|
110
|
-
ctx.ui.notify(`× forge:retro — persona load error: ${e.message ?? "unknown"}`, "error");
|
|
111
|
-
return;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
if (!assertAudience({ workflowName: "sprint_retrospective", audience: workflowAudience }, ctx)) {
|
|
115
|
-
return;
|
|
116
|
-
}
|
|
117
|
-
const kickoff = composeKickoff({
|
|
118
|
-
workflowMd,
|
|
119
|
-
personaIdentity,
|
|
120
|
-
parsed,
|
|
121
|
-
});
|
|
122
|
-
sendKickoff(pi, kickoff);
|
|
123
|
-
},
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
//# sourceMappingURL=retrospective.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"retrospective.js","sourceRoot":"","sources":["../../../src/extensions/forgecli/retrospective.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,EAAE;AACF,2DAA2D;AAC3D,uEAAuE;AACvE,uEAAuE;AACvE,EAAE;AACF,sEAAsE;AACtE,0EAA0E;AAC1E,iEAAiE;AACjE,kDAAkD;AAClD,EAAE;AACF,aAAa;AACb,8DAA8D;AAC9D,oDAAoD;AACpD,8DAA8D;AAC9D,wEAAwE;AACxE,wBAAwB;AAExB,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAGlC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,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AAC,CAAC;AACJ,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
2
|
-
import { extractPersonaNames } from "./lib/frontmatter-parser.js";
|
|
3
|
-
export { extractPersonaNames };
|
|
4
|
-
import { checkMaterialization, type MaterializationCheck } from "./lib/manifest-checker.js";
|
|
5
|
-
export { checkMaterialization, type MaterializationCheck };
|
|
6
|
-
export type ArgMode = "empty" | "file" | "text";
|
|
7
|
-
export interface ParsedArgs {
|
|
8
|
-
mode: ArgMode;
|
|
9
|
-
taskRef: string;
|
|
10
|
-
sourceLabel: string;
|
|
11
|
-
}
|
|
12
|
-
export declare function parseReviewCodeArgs(rawArgs: string, cwd: string): ParsedArgs;
|
|
13
|
-
export interface ComposeKickoffOpts {
|
|
14
|
-
workflowMd: string;
|
|
15
|
-
personaIdentity: string;
|
|
16
|
-
parsed: ParsedArgs;
|
|
17
|
-
/** Revision loop context block (FORGE-S26-T11). Injected before the workflow body. */
|
|
18
|
-
reviewLoopContext?: string;
|
|
19
|
-
}
|
|
20
|
-
export declare function composeKickoff(opts: ComposeKickoffOpts): string;
|
|
21
|
-
/**
|
|
22
|
-
* Build the `### Review Loop Context` block for user-invoked (non-orchestrated)
|
|
23
|
-
* review-code calls. Matches the T07 graceful-fallback spec:
|
|
24
|
-
* "iteration 1 of M" where M is config.maxReviewIterations (default 3).
|
|
25
|
-
*/
|
|
26
|
-
export declare function buildReviewLoopContext(maxIterations: number): string;
|
|
27
|
-
/**
|
|
28
|
-
* Read maxReviewIterations from .forge/config.json. Returns default 3 on any
|
|
29
|
-
* error (missing file, missing field, non-integer value).
|
|
30
|
-
*/
|
|
31
|
-
export declare function readMaxReviewIterations(cwd: string): number;
|
|
32
|
-
export interface RegisterReviewCodeOptions {
|
|
33
|
-
cwd?: string;
|
|
34
|
-
}
|
|
35
|
-
export declare function registerReviewCode(pi: ExtensionAPI, options?: RegisterReviewCodeOptions): void;
|
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
// forge:review-code — native kickoff handler (FORGE-S21-T10).
|
|
2
|
-
//
|
|
3
|
-
// Replaces the auto-generated stub previously installed by
|
|
4
|
-
// registerAllForgeCommands (forge-commands.ts). Kickoff Shim archetype
|
|
5
|
-
// (Pack-04 + Pack-06): single LLM handoff in current context, no fork.
|
|
6
|
-
//
|
|
7
|
-
// Note: The materialized workflow (review_code.md) declares
|
|
8
|
-
// `audience: subagent` — advisory only. Users may invoke this command
|
|
9
|
-
// manually from the CLI; assertAudience never refuses subagent-audience
|
|
10
|
-
// workflows. Orchestrator chains still dispatch via runForgeSubagent
|
|
11
|
-
// directly and do NOT route through this handler.
|
|
12
|
-
//
|
|
13
|
-
// FORGE-S26-T11:
|
|
14
|
-
// - Pipeline step guard added (checks task state via store-cli; --force bypasses).
|
|
15
|
-
// - Revision loop context injected into kickoff: `### Review Loop Context` block
|
|
16
|
-
// with `Iteration: 1 of M` (user-invoked default).
|
|
17
|
-
//
|
|
18
|
-
// Iron Laws:
|
|
19
|
-
// IL1 — code only under forge-cli/src/extensions/forgecli/.
|
|
20
|
-
// IL4 — no JSON.stringify-into-subagent dispatch.
|
|
21
|
-
// IL6 — no shell-string interpolation; no spawn calls here.
|
|
22
|
-
// IL7 — every failure path emits ctx.ui.notify and returns; no silent
|
|
23
|
-
// continuation.
|
|
24
|
-
import * as fs from "node:fs";
|
|
25
|
-
import * as path from "node:path";
|
|
26
|
-
import { assertAudience } from "./audience-gate.js";
|
|
27
|
-
import { discoverForgeConfig } from "./forge-root.js";
|
|
28
|
-
import { sendKickoff } from "./kickoff.js";
|
|
29
|
-
// FORGE-S25-T16: extracted to lib modules (H-1, H-2). Re-exported here for
|
|
30
|
-
// backward compatibility with existing test and consumer imports.
|
|
31
|
-
import { extractPersonaNames } from "./lib/frontmatter-parser.js";
|
|
32
|
-
import { parseGuardArgs, runPipelineGuard } from "./lib/pipeline-guard.js";
|
|
33
|
-
import { loadPersona, PersonaSkillLoaderError } from "./parsers/persona-skill-loader.js";
|
|
34
|
-
import { loadWorkflow, WorkflowLoaderError } from "./parsers/workflow-loader.js";
|
|
35
|
-
export { extractPersonaNames };
|
|
36
|
-
import { checkMaterialization } from "./lib/manifest-checker.js";
|
|
37
|
-
export { checkMaterialization };
|
|
38
|
-
export function parseReviewCodeArgs(rawArgs, cwd) {
|
|
39
|
-
const trimmed = (rawArgs ?? "").trim();
|
|
40
|
-
if (trimmed === "") {
|
|
41
|
-
return { mode: "empty", taskRef: "", sourceLabel: "(no input — supervisor infers task from store/context)" };
|
|
42
|
-
}
|
|
43
|
-
if (trimmed.startsWith("@")) {
|
|
44
|
-
const ref = trimmed.slice(1).trim();
|
|
45
|
-
const filePath = path.isAbsolute(ref) ? ref : path.resolve(cwd, ref);
|
|
46
|
-
const seed = fs.readFileSync(filePath, "utf8");
|
|
47
|
-
return { mode: "file", taskRef: seed, sourceLabel: `(seed from file: ${ref})` };
|
|
48
|
-
}
|
|
49
|
-
return { mode: "text", taskRef: trimmed, sourceLabel: "(seed from inline text)" };
|
|
50
|
-
}
|
|
51
|
-
export function composeKickoff(opts) {
|
|
52
|
-
const { workflowMd, personaIdentity, parsed, reviewLoopContext } = opts;
|
|
53
|
-
const sections = ["# /forge:review-code", ""];
|
|
54
|
-
if (personaIdentity.trim().length > 0) {
|
|
55
|
-
sections.push(personaIdentity.trim(), "");
|
|
56
|
-
}
|
|
57
|
-
// Inject review loop context before workflow body (FORGE-S26-T11 / T07).
|
|
58
|
-
if (reviewLoopContext) {
|
|
59
|
-
sections.push(reviewLoopContext.trim(), "");
|
|
60
|
-
}
|
|
61
|
-
sections.push("## Dispatch", "", "Run the workflow below. Specifically:", "", "1. Read the implementation diff and PROGRESS.md for `engineering/sprints/<SPRINT_ID>/<TASK_ID>/` (the source of truth).", "2. Query the store for the task and its sprint/feature context via `forge_store_query` — do NOT raw-read `.forge/store/`.", "3. Follow the workflow Algorithm verbatim: review code for correctness, test coverage, security, and architecture compliance.", "4. Write `CODE_REVIEW.md` and `CODE-REVIEW-SUMMARY.json` to the task directory using the `write` tool.", "5. Update task status by calling the `forge_store` MCP tool: `{command:'update-status', args:['task','<TASK_ID>','status','<new-status>']}`. Never raw-write `.forge/store/`. Do NOT bash-shell `forge store ...`.", "6. Honour Pack-06 Read/Write/Ask/Store discipline: writes go via the `forge_store` MCP tool; in-conversation clarifications use `forge_ask_user`.");
|
|
62
|
-
sections.push("", "---", "", "## Workflow", "", workflowMd.trim(), "", "---");
|
|
63
|
-
if (parsed.mode === "empty") {
|
|
64
|
-
sections.push("", "## Input", "", "(no seed — infer task from sprint context and store)");
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
sections.push("", `## Input — ${parsed.sourceLabel}`, "", parsed.taskRef.trim());
|
|
68
|
-
}
|
|
69
|
-
return sections.join("\n");
|
|
70
|
-
}
|
|
71
|
-
// Iteration context builder (FORGE-S26-T11) ------------------------------------
|
|
72
|
-
/**
|
|
73
|
-
* Build the `### Review Loop Context` block for user-invoked (non-orchestrated)
|
|
74
|
-
* review-code calls. Matches the T07 graceful-fallback spec:
|
|
75
|
-
* "iteration 1 of M" where M is config.maxReviewIterations (default 3).
|
|
76
|
-
*/
|
|
77
|
-
export function buildReviewLoopContext(maxIterations) {
|
|
78
|
-
return [
|
|
79
|
-
"### Review Loop Context",
|
|
80
|
-
`- Iteration: 1 of ${maxIterations}`,
|
|
81
|
-
`- Is final iteration: ${maxIterations === 1 ? "true" : "false"}`,
|
|
82
|
-
].join("\n");
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* Read maxReviewIterations from .forge/config.json. Returns default 3 on any
|
|
86
|
-
* error (missing file, missing field, non-integer value).
|
|
87
|
-
*/
|
|
88
|
-
export function readMaxReviewIterations(cwd) {
|
|
89
|
-
const configPath = path.join(cwd, ".forge", "config.json");
|
|
90
|
-
try {
|
|
91
|
-
const raw = fs.readFileSync(configPath, "utf8");
|
|
92
|
-
const cfg = JSON.parse(raw);
|
|
93
|
-
const v = cfg["maxReviewIterations"];
|
|
94
|
-
if (typeof v === "number" && Number.isInteger(v) && v >= 1)
|
|
95
|
-
return v;
|
|
96
|
-
}
|
|
97
|
-
catch {
|
|
98
|
-
// fail-open
|
|
99
|
-
}
|
|
100
|
-
return 3;
|
|
101
|
-
}
|
|
102
|
-
// Registration -------------------------------------------------------------
|
|
103
|
-
const WORKFLOW_REL_PATH = path.join(".forge", "workflows", "review_code.md");
|
|
104
|
-
export function registerReviewCode(pi, options = {}) {
|
|
105
|
-
pi.registerCommand("forge:review-code", {
|
|
106
|
-
description: "Run the review-code workflow for a Forge task. " +
|
|
107
|
-
"Usage: /forge:review-code [@<file> | <free-form text>]. " +
|
|
108
|
-
"Note: this workflow is subagent-only; standalone invocations are refused. " +
|
|
109
|
-
"Orchestrator chains dispatch directly via runForgeSubagent.",
|
|
110
|
-
async handler(args, ctx) {
|
|
111
|
-
const cwd = options.cwd ?? process.cwd();
|
|
112
|
-
const workflowPath = path.join(cwd, WORKFLOW_REL_PATH);
|
|
113
|
-
// Pipeline step guard (FORGE-S26-T11): check task state before dispatching.
|
|
114
|
-
const guardParsed = parseGuardArgs(args);
|
|
115
|
-
if (!guardParsed.force) {
|
|
116
|
-
const forgeConfig = discoverForgeConfig(cwd);
|
|
117
|
-
if (forgeConfig) {
|
|
118
|
-
const guard = runPipelineGuard("review-code", guardParsed.taskIdHint, forgeConfig.forgeRoot, cwd);
|
|
119
|
-
if (guard.blocked) {
|
|
120
|
-
ctx.ui.notify(guard.message, "error");
|
|
121
|
-
return;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
const effectiveArgs = guardParsed.cleanArgs;
|
|
126
|
-
let workflowMd;
|
|
127
|
-
let workflowAudience;
|
|
128
|
-
try {
|
|
129
|
-
const loaded = loadWorkflow(workflowPath);
|
|
130
|
-
workflowMd = loaded.rawMarkdown;
|
|
131
|
-
workflowAudience = loaded.audience;
|
|
132
|
-
}
|
|
133
|
-
catch (err) {
|
|
134
|
-
if (err instanceof WorkflowLoaderError) {
|
|
135
|
-
if (err.code === "missing_file") {
|
|
136
|
-
ctx.ui.notify(`× forge:review-code — workflow not found at ${WORKFLOW_REL_PATH}; run /forge:init or /forge:rebuild first.`, "error");
|
|
137
|
-
}
|
|
138
|
-
else {
|
|
139
|
-
ctx.ui.notify(`× forge:review-code — workflow load failed (${err.code}): ${err.message}`, "error");
|
|
140
|
-
}
|
|
141
|
-
return;
|
|
142
|
-
}
|
|
143
|
-
const e = err;
|
|
144
|
-
ctx.ui.notify(`× forge:review-code — failed to read workflow: ${e.message ?? "unknown"}`, "error");
|
|
145
|
-
return;
|
|
146
|
-
}
|
|
147
|
-
let parsed;
|
|
148
|
-
try {
|
|
149
|
-
parsed = parseReviewCodeArgs(effectiveArgs, cwd);
|
|
150
|
-
}
|
|
151
|
-
catch (err) {
|
|
152
|
-
const e = err;
|
|
153
|
-
ctx.ui.notify(`× forge:review-code — failed to read seed: ${e.message ?? "unknown"}`, "error");
|
|
154
|
-
return;
|
|
155
|
-
}
|
|
156
|
-
// Build revision loop context (FORGE-S26-T11 / T07)
|
|
157
|
-
const maxIter = readMaxReviewIterations(cwd);
|
|
158
|
-
const reviewLoopContext = buildReviewLoopContext(maxIter);
|
|
159
|
-
const check = checkMaterialization(workflowPath, workflowMd);
|
|
160
|
-
if (!check.ok) {
|
|
161
|
-
for (const marker of check.missing) {
|
|
162
|
-
ctx.ui.notify(`× workflow regression: ${marker} not found in ${workflowPath}`, "error");
|
|
163
|
-
}
|
|
164
|
-
return;
|
|
165
|
-
}
|
|
166
|
-
const personas = extractPersonaNames(workflowMd);
|
|
167
|
-
let personaIdentity = "";
|
|
168
|
-
if (personas.length > 0) {
|
|
169
|
-
try {
|
|
170
|
-
const persona = loadPersona(personas[0], { cwd });
|
|
171
|
-
personaIdentity = persona.identity;
|
|
172
|
-
}
|
|
173
|
-
catch (err) {
|
|
174
|
-
if (err instanceof PersonaSkillLoaderError) {
|
|
175
|
-
ctx.ui.notify(`× forge:review-code — persona '${personas[0]}' load failed (${err.code}): ${err.message}`, "error");
|
|
176
|
-
return;
|
|
177
|
-
}
|
|
178
|
-
const e = err;
|
|
179
|
-
ctx.ui.notify(`× forge:review-code — persona load error: ${e.message ?? "unknown"}`, "error");
|
|
180
|
-
return;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
if (!assertAudience({ workflowName: "review_code", audience: workflowAudience }, ctx)) {
|
|
184
|
-
return;
|
|
185
|
-
}
|
|
186
|
-
const kickoff = composeKickoff({
|
|
187
|
-
workflowMd,
|
|
188
|
-
personaIdentity,
|
|
189
|
-
parsed,
|
|
190
|
-
reviewLoopContext,
|
|
191
|
-
});
|
|
192
|
-
sendKickoff(pi, kickoff);
|
|
193
|
-
},
|
|
194
|
-
});
|
|
195
|
-
}
|
|
196
|
-
//# sourceMappingURL=review-code.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"review-code.js","sourceRoot":"","sources":["../../../src/extensions/forgecli/review-code.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,EAAE;AACF,2DAA2D;AAC3D,uEAAuE;AACvE,uEAAuE;AACvE,EAAE;AACF,4DAA4D;AAC5D,sEAAsE;AACtE,wEAAwE;AACxE,qEAAqE;AACrE,kDAAkD;AAClD,EAAE;AACF,iBAAiB;AACjB,qFAAqF;AACrF,mFAAmF;AACnF,uDAAuD;AACvD,EAAE;AACF,aAAa;AACb,8DAA8D;AAC9D,oDAAoD;AACpD,8DAA8D;AAC9D,wEAAwE;AACxE,wBAAwB;AAExB,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAGlC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,2EAA2E;AAC3E,kEAA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AW,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;oBAClD,eAAe,GAAG,OAAO,CAAC,QAAQ,CAAC;gBACpC,CAAC;gBAAC,OAAO,GAAY,EAAE,CAAC;oBACvB,IAAI,GAAG,YAAY,uBAAuB,EAAE,CAAC;wBAC5C,GAAG,CAAC,EAAE,CAAC,MAAM,CACZ,kCAAkC,QAAQ,CAAC,CAAC,CAAC,kBAAkB,GAAG,CAAC,IAAI,MAAM,GAAG,CAAC,OAAO,EAAE,EAC1F,OAAO,CACP,CAAC;wBACF,OAAO;oBACR,CAAC;oBACD,MAAM,CAAC,GAAG,GAA2B,CAAC;oBACtC,GAAG,CAAC,EAAE,CAAC,MAAM,CAAC,6CAA6C,CAAC,CAAC,OAAO,IAAI,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;oBAC9F,OAAO;gBACR,CAAC;YACF,CAAC;YAED,IAAI,CAAC,cAAc,CAAC,EAAE,YAAY,EAAE,aAAa,EAAE,QAAQ,EAAE,gBAAgB,EAAE,EAAE,GAAG,CAAC,EAAE,CAAC;gBACvF,OAAO;YACR,CAAC;YAED,MAAM,OAAO,GAAG,cAAc,CAAC;gBAC9B,UAAU;gBACV,eAAe;gBACf,MAAM;gBACN,iBAAiB;aACjB,CAAC,CAAC;YAEH,WAAW,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;QAC1B,CAAC;KACD,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
2
|
-
import { extractPersonaNames } from "./lib/frontmatter-parser.js";
|
|
3
|
-
export { extractPersonaNames };
|
|
4
|
-
import { checkMaterialization, type MaterializationCheck } from "./lib/manifest-checker.js";
|
|
5
|
-
export { checkMaterialization, type MaterializationCheck };
|
|
6
|
-
export type ArgMode = "empty" | "file" | "text";
|
|
7
|
-
export interface ParsedArgs {
|
|
8
|
-
mode: ArgMode;
|
|
9
|
-
taskRef: string;
|
|
10
|
-
sourceLabel: string;
|
|
11
|
-
}
|
|
12
|
-
export declare function parseReviewPlanArgs(rawArgs: string, cwd: string): ParsedArgs;
|
|
13
|
-
export interface ComposeKickoffOpts {
|
|
14
|
-
workflowMd: string;
|
|
15
|
-
personaIdentity: string;
|
|
16
|
-
parsed: ParsedArgs;
|
|
17
|
-
/** Revision loop context block (FORGE-S26-T11). Injected before the workflow body. */
|
|
18
|
-
reviewLoopContext?: string;
|
|
19
|
-
}
|
|
20
|
-
export declare function composeKickoff(opts: ComposeKickoffOpts): string;
|
|
21
|
-
/**
|
|
22
|
-
* Build the `### Review Loop Context` block for user-invoked (non-orchestrated)
|
|
23
|
-
* review-plan calls. Matches the T07 graceful-fallback spec:
|
|
24
|
-
* "iteration 1 of M" where M is config.maxReviewIterations (default 3).
|
|
25
|
-
*/
|
|
26
|
-
export declare function buildReviewLoopContext(maxIterations: number): string;
|
|
27
|
-
/**
|
|
28
|
-
* Read maxReviewIterations from .forge/config.json. Returns default 3 on any
|
|
29
|
-
* error (missing file, missing field, non-integer value).
|
|
30
|
-
*/
|
|
31
|
-
export declare function readMaxReviewIterations(cwd: string): number;
|
|
32
|
-
export interface RegisterReviewPlanOptions {
|
|
33
|
-
cwd?: string;
|
|
34
|
-
}
|
|
35
|
-
export declare function registerReviewPlan(pi: ExtensionAPI, options?: RegisterReviewPlanOptions): void;
|