@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,10 +0,0 @@
|
|
|
1
|
-
export interface ProjectMeta {
|
|
2
|
-
name: string;
|
|
3
|
-
prefix: string;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* Read project.name and project.prefix from a `.forge/config.json` path.
|
|
7
|
-
* Returns null when the file is missing, unreadable, malformed, or lacks
|
|
8
|
-
* the required fields. Never throws.
|
|
9
|
-
*/
|
|
10
|
-
export declare function readProjectMeta(configPath: string): ProjectMeta | null;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
// Banner helpers — reads .forge/config.json for project metadata.
|
|
2
|
-
//
|
|
3
|
-
// Pure utility module; no side effects on import.
|
|
4
|
-
import * as fs from "node:fs";
|
|
5
|
-
/**
|
|
6
|
-
* Read project.name and project.prefix from a `.forge/config.json` path.
|
|
7
|
-
* Returns null when the file is missing, unreadable, malformed, or lacks
|
|
8
|
-
* the required fields. Never throws.
|
|
9
|
-
*/
|
|
10
|
-
export function readProjectMeta(configPath) {
|
|
11
|
-
let raw;
|
|
12
|
-
try {
|
|
13
|
-
raw = fs.readFileSync(configPath, "utf8");
|
|
14
|
-
}
|
|
15
|
-
catch {
|
|
16
|
-
return null;
|
|
17
|
-
}
|
|
18
|
-
let config;
|
|
19
|
-
try {
|
|
20
|
-
config = JSON.parse(raw);
|
|
21
|
-
}
|
|
22
|
-
catch {
|
|
23
|
-
return null;
|
|
24
|
-
}
|
|
25
|
-
if (!config || typeof config !== "object")
|
|
26
|
-
return null;
|
|
27
|
-
const cfg = config;
|
|
28
|
-
const name = cfg.project?.name;
|
|
29
|
-
const prefix = cfg.project?.prefix;
|
|
30
|
-
if (typeof name !== "string" || name.length === 0)
|
|
31
|
-
return null;
|
|
32
|
-
if (typeof prefix !== "string" || prefix.length === 0)
|
|
33
|
-
return null;
|
|
34
|
-
return { name, prefix };
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=banner.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"banner.js","sourceRoot":"","sources":["../../../src/extensions/forgecli/banner.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,EAAE;AACF,kDAAkD;AAElD,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAc9B;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,UAAkB;IACjD,IAAI,GAAW,CAAC;IAChB,IAAI,CAAC;QACJ,GAAG,GAAG,EAAE,CAAC,YAAY,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;IAC3C,CAAC;IAAC,MAAM,CAAC;QACR,OAAO,IAAI,CAAC;IACb,CAAC;IAED,IAAI,MAAe,CAAC;IACpB,IAAI,CAAC;QACJ,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC1B,CAAC;IAAC,MAAM,CAAC;QACR,OAAO,IAAI,CAAC;IACb,CAAC;IAED,IAAI,CAAC,MAAM,IAAI,OAAO,MAAM,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAC;IAEvD,MAAM,GAAG,GAAG,MAAqB,CAAC;IAClC,MAAM,IAAI,GAAG,GAAG,CAAC,OAAO,EAAE,IAAI,CAAC;IAC/B,MAAM,MAAM,GAAG,GAAG,CAAC,OAAO,EAAE,MAAM,CAAC;IAEnC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IAC/D,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IAEnE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;AACzB,CAAC"}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
2
|
-
import { type ForgeToolDefs } from "./forge-tools.js";
|
|
3
|
-
import { type CalibrationBaseline } from "./init-context.js";
|
|
4
|
-
export interface ParsedCalibrateFlags {
|
|
5
|
-
/** Override project directory (from --path <dir>). Null = use cwd. */
|
|
6
|
-
path: string | null;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Parse /forge:calibrate arguments.
|
|
10
|
-
* Supports: --path <dir>
|
|
11
|
-
*/
|
|
12
|
-
export declare function parseCalibrateFlags(args: string): ParsedCalibrateFlags;
|
|
13
|
-
export interface ForgeConfig {
|
|
14
|
-
paths?: {
|
|
15
|
-
engineering?: string;
|
|
16
|
-
forgeRoot?: string;
|
|
17
|
-
store?: string;
|
|
18
|
-
};
|
|
19
|
-
calibrationBaseline?: Partial<CalibrationBaseline> & {
|
|
20
|
-
masterIndexHash?: string | null;
|
|
21
|
-
};
|
|
22
|
-
calibrationHistory?: CalibrationHistoryEntry[];
|
|
23
|
-
[key: string]: unknown;
|
|
24
|
-
}
|
|
25
|
-
/** Read and parse .forge/config.json from projectRoot. Returns null on any error. */
|
|
26
|
-
export declare function readForgeConfig(projectRoot: string): ForgeConfig | null;
|
|
27
|
-
/**
|
|
28
|
-
* Compute SHA-256 of MASTER_INDEX.md, stripping blank lines and HTML comment lines.
|
|
29
|
-
* Returns null if the file does not exist.
|
|
30
|
-
*/
|
|
31
|
-
export declare function computeCurrentHash(projectRoot: string, kbPath: string): string | null;
|
|
32
|
-
export interface DriftCategory {
|
|
33
|
-
category: "technical" | "business" | "retrospective" | "acceptance criteria";
|
|
34
|
-
evidence: string;
|
|
35
|
-
targets: string[];
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Categorize drift by scanning MASTER_INDEX.md content for section keywords
|
|
39
|
-
* and identifying new sprints since last calibration.
|
|
40
|
-
*/
|
|
41
|
-
export declare function categorizeDrift(projectRoot: string, kbPath: string, baseline: Partial<CalibrationBaseline> & {
|
|
42
|
-
masterIndexHash?: string | null;
|
|
43
|
-
}): DriftCategory[];
|
|
44
|
-
export interface PatchProposal {
|
|
45
|
-
target: string;
|
|
46
|
-
type: "regenerate";
|
|
47
|
-
rationale: string;
|
|
48
|
-
}
|
|
49
|
-
/** Extract PatchProposal objects from the architect's free-form response text. */
|
|
50
|
-
export declare function extractPatchProposals(text: string): PatchProposal[];
|
|
51
|
-
export interface CalibrationHistoryPatch {
|
|
52
|
-
target: string;
|
|
53
|
-
type: "regenerate";
|
|
54
|
-
applied: boolean;
|
|
55
|
-
}
|
|
56
|
-
export interface CalibrationHistoryEntry {
|
|
57
|
-
date: string;
|
|
58
|
-
version: string;
|
|
59
|
-
categories: string[];
|
|
60
|
-
patches: CalibrationHistoryPatch[];
|
|
61
|
-
}
|
|
62
|
-
export declare function registerCalibrate(pi: ExtensionAPI, options?: {
|
|
63
|
-
forgeToolDefs?: ForgeToolDefs;
|
|
64
|
-
}): void;
|
|
@@ -1,481 +0,0 @@
|
|
|
1
|
-
// calibrate.ts — /forge:calibrate orchestrator handler (FORGE-S23-T08).
|
|
2
|
-
//
|
|
3
|
-
// 4-phase flow matching calibrate.md:
|
|
4
|
-
// Phase 1 — Structural-element readiness check (advisory, never blocks)
|
|
5
|
-
// Phase 2 — Hash drift detection (deterministic). Auto-initializes baseline if absent.
|
|
6
|
-
// Phase 3 — Architect patch proposal via runForgeSubagent
|
|
7
|
-
// Phase 4 — Approval gate (ctx.ui.confirm) + patch application + calibration history write
|
|
8
|
-
//
|
|
9
|
-
// Non-interactive mode (FORGE_YES=1 or FORGE_NON_INTERACTIVE=1): auto-apply all patches.
|
|
10
|
-
//
|
|
11
|
-
// Iron Laws:
|
|
12
|
-
// IL1 — code only under forge-cli/src/extensions/forgecli/
|
|
13
|
-
// IL6 — no shell-string interpolation
|
|
14
|
-
// IL7 — every failure path emits ctx.ui.notify and returns; no silent continuation
|
|
15
|
-
// IL10 — LLM dispatch for patch-proposal phase goes through runForgeSubagent
|
|
16
|
-
import * as crypto from "node:crypto";
|
|
17
|
-
import * as fs from "node:fs";
|
|
18
|
-
import * as path from "node:path";
|
|
19
|
-
import { getBundledPayloadRoot } from "./forge-init.js";
|
|
20
|
-
import { getFinalOutput, loadForgePersona, runForgeSubagent } from "./forge-subagent.js";
|
|
21
|
-
import { getSubagentTools } from "./forge-tools.js";
|
|
22
|
-
import { computeCalibrationBaseline } from "./init-context.js";
|
|
23
|
-
import { isNonInteractive } from "./run-task.js";
|
|
24
|
-
// ── Bundled forge version ─────────────────────────────────────────────────
|
|
25
|
-
/**
|
|
26
|
-
* Read the bundled forge version from .claude-plugin/plugin.json inside the
|
|
27
|
-
* bundled payload root. Falls back to "0.0.0" on any error.
|
|
28
|
-
* Mirrors the private getBundledForgeVersion() in forge-init.ts.
|
|
29
|
-
*/
|
|
30
|
-
function getBundledForgeVersion() {
|
|
31
|
-
try {
|
|
32
|
-
const pluginPath = path.join(getBundledPayloadRoot(), ".claude-plugin", "plugin.json");
|
|
33
|
-
const raw = fs.readFileSync(pluginPath, "utf8");
|
|
34
|
-
const plugin = JSON.parse(raw);
|
|
35
|
-
return typeof plugin.version === "string" ? plugin.version : "0.0.0";
|
|
36
|
-
}
|
|
37
|
-
catch {
|
|
38
|
-
return "0.0.0";
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Parse /forge:calibrate arguments.
|
|
43
|
-
* Supports: --path <dir>
|
|
44
|
-
*/
|
|
45
|
-
export function parseCalibrateFlags(args) {
|
|
46
|
-
const parts = args.trim().split(/\s+/).filter(Boolean);
|
|
47
|
-
let customPath = null;
|
|
48
|
-
for (let i = 0; i < parts.length; i++) {
|
|
49
|
-
if (parts[i] === "--path" && i + 1 < parts.length) {
|
|
50
|
-
customPath = parts[i + 1];
|
|
51
|
-
i++;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
return { path: customPath };
|
|
55
|
-
}
|
|
56
|
-
/** Read and parse .forge/config.json from projectRoot. Returns null on any error. */
|
|
57
|
-
export function readForgeConfig(projectRoot) {
|
|
58
|
-
const cfgPath = path.join(projectRoot, ".forge", "config.json");
|
|
59
|
-
try {
|
|
60
|
-
const raw = fs.readFileSync(cfgPath, "utf8");
|
|
61
|
-
return JSON.parse(raw);
|
|
62
|
-
}
|
|
63
|
-
catch {
|
|
64
|
-
return null;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
/** Write ForgeConfig to .forge/config.json. */
|
|
68
|
-
function writeForgeConfig(projectRoot, cfg) {
|
|
69
|
-
const cfgPath = path.join(projectRoot, ".forge", "config.json");
|
|
70
|
-
fs.writeFileSync(cfgPath, JSON.stringify(cfg, null, 2) + "\n", "utf8");
|
|
71
|
-
}
|
|
72
|
-
// ── Hash computation ──────────────────────────────────────────────────────
|
|
73
|
-
/**
|
|
74
|
-
* Compute SHA-256 of MASTER_INDEX.md, stripping blank lines and HTML comment lines.
|
|
75
|
-
* Returns null if the file does not exist.
|
|
76
|
-
*/
|
|
77
|
-
export function computeCurrentHash(projectRoot, kbPath) {
|
|
78
|
-
const masterIndexPath = path.join(projectRoot, kbPath, "MASTER_INDEX.md");
|
|
79
|
-
try {
|
|
80
|
-
const content = fs.readFileSync(masterIndexPath, "utf8");
|
|
81
|
-
const lines = content.split("\n").filter((l) => l.trim() && !l.trim().startsWith("<!--"));
|
|
82
|
-
return crypto.createHash("sha256").update(lines.join("\n")).digest("hex");
|
|
83
|
-
}
|
|
84
|
-
catch {
|
|
85
|
-
return null;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
const SECTION_CATEGORY_MAP = [
|
|
89
|
-
{
|
|
90
|
-
keywords: [
|
|
91
|
-
"stack",
|
|
92
|
-
"architecture",
|
|
93
|
-
"routing",
|
|
94
|
-
"database",
|
|
95
|
-
"deployment",
|
|
96
|
-
"processes",
|
|
97
|
-
"schema",
|
|
98
|
-
"checklist",
|
|
99
|
-
"convention",
|
|
100
|
-
],
|
|
101
|
-
category: "technical",
|
|
102
|
-
targets: ["personas:engineer", "skills:engineer-skills", "skills:supervisor-skills"],
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
keywords: ["entity", "domain", "feature", "business", "model"],
|
|
106
|
-
category: "business",
|
|
107
|
-
targets: ["personas:all"],
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
keywords: ["retrospective", "iron law", "lesson", "learning"],
|
|
111
|
-
category: "retrospective",
|
|
112
|
-
targets: ["personas:all"],
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
keywords: ["acceptance", "criteria", "validation", "qa"],
|
|
116
|
-
category: "acceptance criteria",
|
|
117
|
-
targets: ["personas:product-manager", "skills:qa-engineer"],
|
|
118
|
-
},
|
|
119
|
-
];
|
|
120
|
-
/**
|
|
121
|
-
* Categorize drift by scanning MASTER_INDEX.md content for section keywords
|
|
122
|
-
* and identifying new sprints since last calibration.
|
|
123
|
-
*/
|
|
124
|
-
export function categorizeDrift(projectRoot, kbPath, baseline) {
|
|
125
|
-
const found = new Map();
|
|
126
|
-
// Read MASTER_INDEX.md for keyword-based section categorization
|
|
127
|
-
const masterIndexPath = path.join(projectRoot, kbPath, "MASTER_INDEX.md");
|
|
128
|
-
let masterIndexContent = "";
|
|
129
|
-
try {
|
|
130
|
-
masterIndexContent = fs.readFileSync(masterIndexPath, "utf8").toLowerCase();
|
|
131
|
-
}
|
|
132
|
-
catch {
|
|
133
|
-
// If we cannot read it, report generic technical drift
|
|
134
|
-
found.set("technical", {
|
|
135
|
-
category: "technical",
|
|
136
|
-
evidence: "MASTER_INDEX.md changed (content unreadable)",
|
|
137
|
-
targets: ["personas:engineer", "skills:engineer-skills", "skills:supervisor-skills"],
|
|
138
|
-
});
|
|
139
|
-
return [...found.values()];
|
|
140
|
-
}
|
|
141
|
-
// Check each category's keywords against content
|
|
142
|
-
for (const mapping of SECTION_CATEGORY_MAP) {
|
|
143
|
-
const matched = mapping.keywords.filter((kw) => masterIndexContent.includes(kw));
|
|
144
|
-
if (matched.length > 0) {
|
|
145
|
-
if (!found.has(mapping.category)) {
|
|
146
|
-
found.set(mapping.category, {
|
|
147
|
-
category: mapping.category,
|
|
148
|
-
evidence: `MASTER_INDEX.md contains ${mapping.category} content (keywords: ${matched.slice(0, 3).join(", ")})`,
|
|
149
|
-
targets: [...mapping.targets],
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
// Identify new sprints since last calibration
|
|
155
|
-
const coveredIds = new Set(Array.isArray(baseline.sprintsCovered) ? baseline.sprintsCovered : []);
|
|
156
|
-
const storeSprintsDir = path.join(projectRoot, ".forge", "store", "sprints");
|
|
157
|
-
let newSprintCount = 0;
|
|
158
|
-
try {
|
|
159
|
-
const files = fs.readdirSync(storeSprintsDir).filter((f) => f.endsWith(".json"));
|
|
160
|
-
for (const f of files) {
|
|
161
|
-
try {
|
|
162
|
-
const raw = fs.readFileSync(path.join(storeSprintsDir, f), "utf8");
|
|
163
|
-
const sprint = JSON.parse(raw);
|
|
164
|
-
if (typeof sprint.sprintId === "string" &&
|
|
165
|
-
(sprint.status === "done" || sprint.status === "retrospective-done") &&
|
|
166
|
-
!coveredIds.has(sprint.sprintId)) {
|
|
167
|
-
newSprintCount++;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
catch {
|
|
171
|
-
// Skip malformed sprint file
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
catch {
|
|
176
|
-
// Store not accessible
|
|
177
|
-
}
|
|
178
|
-
if (newSprintCount > 0) {
|
|
179
|
-
if (!found.has("retrospective")) {
|
|
180
|
-
found.set("retrospective", {
|
|
181
|
-
category: "retrospective",
|
|
182
|
-
evidence: `${newSprintCount} new completed sprint(s) since last calibration`,
|
|
183
|
-
targets: ["personas:all"],
|
|
184
|
-
});
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
// If nothing found but hash changed, report generic technical drift
|
|
188
|
-
if (found.size === 0) {
|
|
189
|
-
found.set("technical", {
|
|
190
|
-
category: "technical",
|
|
191
|
-
evidence: "MASTER_INDEX.md hash changed — specific section changes not identified",
|
|
192
|
-
targets: ["personas:engineer", "skills:engineer-skills", "skills:supervisor-skills"],
|
|
193
|
-
});
|
|
194
|
-
}
|
|
195
|
-
return [...found.values()];
|
|
196
|
-
}
|
|
197
|
-
function buildPatchProposalPrompt(categories) {
|
|
198
|
-
const lines = [
|
|
199
|
-
"# Forge Calibration — Patch Proposal Request",
|
|
200
|
-
"",
|
|
201
|
-
"You are the Forge Architect. Drift has been detected in the project knowledge base.",
|
|
202
|
-
"Review the drift categories below and propose surgical regeneration patches.",
|
|
203
|
-
"",
|
|
204
|
-
"## Drift Report",
|
|
205
|
-
"",
|
|
206
|
-
];
|
|
207
|
-
for (let i = 0; i < categories.length; i++) {
|
|
208
|
-
const cat = categories[i];
|
|
209
|
-
lines.push(`### Category ${i + 1}: ${cat.category.charAt(0).toUpperCase() + cat.category.slice(1)}`, `Evidence: ${cat.evidence}`, `Suggested targets: ${cat.targets.join(", ")}`, "");
|
|
210
|
-
}
|
|
211
|
-
lines.push("## Instructions", "", "For each drift category, output a JSON block (one per patch) with this exact structure:", "", "```json", "{", ' "target": "<target string e.g. personas:engineer or skills:engineer-skills>",', ' "type": "regenerate",', ' "rationale": "<brief explanation of why this target needs regeneration>"', "}", "```", "", "Output one json block per proposed patch. Add prose analysis before or after the blocks.", "If a suggested target is redundant or not needed, omit it and explain why.", "", "Targets must be from this set:", "- personas:engineer", "- personas:product-manager", "- personas:all (full persona rebuild)", "- skills:engineer-skills", "- skills:supervisor-skills", "- skills:qa-engineer", "- skills:all (full skills rebuild)");
|
|
212
|
-
return lines.join("\n");
|
|
213
|
-
}
|
|
214
|
-
/** Extract PatchProposal objects from the architect's free-form response text. */
|
|
215
|
-
export function extractPatchProposals(text) {
|
|
216
|
-
const proposals = [];
|
|
217
|
-
const blockRegex = /```json\s*([\s\S]+?)\s*```/g;
|
|
218
|
-
let match;
|
|
219
|
-
while ((match = blockRegex.exec(text)) !== null) {
|
|
220
|
-
try {
|
|
221
|
-
const obj = JSON.parse(match[1]);
|
|
222
|
-
if (typeof obj.target === "string" && obj.type === "regenerate" && typeof obj.rationale === "string") {
|
|
223
|
-
proposals.push({ target: obj.target, type: "regenerate", rationale: obj.rationale });
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
catch {
|
|
227
|
-
// Skip malformed JSON blocks
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
return proposals;
|
|
231
|
-
}
|
|
232
|
-
// ── Structural readiness check ────────────────────────────────────────────
|
|
233
|
-
function runStructuralReadinessCheck(projectRoot, bundledVersion, ctx) {
|
|
234
|
-
const versionsPath = path.join(projectRoot, ".forge", "structure-versions.json");
|
|
235
|
-
try {
|
|
236
|
-
const raw = fs.readFileSync(versionsPath, "utf8");
|
|
237
|
-
const versionsData = JSON.parse(raw);
|
|
238
|
-
const { basePackVersion, currentSnapshot } = versionsData;
|
|
239
|
-
if (basePackVersion === bundledVersion) {
|
|
240
|
-
ctx.ui.notify(`○ Structural elements current — snapshot ${currentSnapshot ?? "?"} (plugin v${basePackVersion})`, "info");
|
|
241
|
-
}
|
|
242
|
-
else {
|
|
243
|
-
ctx.ui.notify(`△ Structural element drift detected — installed elements were generated from plugin v${basePackVersion ?? "?"}; ` +
|
|
244
|
-
`current plugin is v${bundledVersion}. Run /forge:update to refresh structural elements.`, "warning");
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
catch (err) {
|
|
248
|
-
const e = err;
|
|
249
|
-
if (e.code === "ENOENT") {
|
|
250
|
-
ctx.ui.notify(`◇ structure-versions.json absent — project predates snapshot versioning. Run /forge:update to install the versioning system.`, "info");
|
|
251
|
-
}
|
|
252
|
-
// Other errors: silently skip (advisory only)
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
// ── Registration ──────────────────────────────────────────────────────────
|
|
256
|
-
export function registerCalibrate(pi, options = {}) {
|
|
257
|
-
const sendToAgent = async (text) => {
|
|
258
|
-
await pi.sendUserMessage(text, { deliverAs: "steer" });
|
|
259
|
-
};
|
|
260
|
-
pi.registerCommand("forge:calibrate", {
|
|
261
|
-
description: "Detect drift between the knowledge base and agent definitions, propose surgical regeneration patches, and apply approved patches.",
|
|
262
|
-
async handler(args, ctx) {
|
|
263
|
-
const rawCwd = process.cwd();
|
|
264
|
-
const flags = parseCalibrateFlags(args);
|
|
265
|
-
// Resolve projectRoot from --path flag or cwd
|
|
266
|
-
let projectRoot = rawCwd;
|
|
267
|
-
if (flags.path !== null) {
|
|
268
|
-
projectRoot = path.isAbsolute(flags.path) ? flags.path : path.resolve(rawCwd, flags.path);
|
|
269
|
-
}
|
|
270
|
-
const bundleRoot = getBundledPayloadRoot();
|
|
271
|
-
const bundledVersion = getBundledForgeVersion();
|
|
272
|
-
// ── Step 0 — Structural-element readiness check (advisory) ──────────
|
|
273
|
-
runStructuralReadinessCheck(projectRoot, bundledVersion, ctx);
|
|
274
|
-
// ── Step 1 — Read config ─────────────────────────────────────────────
|
|
275
|
-
const cfg = readForgeConfig(projectRoot);
|
|
276
|
-
if (!cfg) {
|
|
277
|
-
ctx.ui.notify("△ No Forge instance found — run /forge:init to create one.", "error");
|
|
278
|
-
return;
|
|
279
|
-
}
|
|
280
|
-
const kbPath = cfg.paths?.engineering ?? "engineering";
|
|
281
|
-
const forgeRoot = cfg.paths?.forgeRoot ?? bundleRoot;
|
|
282
|
-
// ── Step 2 — Establish or verify calibration baseline ────────────────
|
|
283
|
-
const baseline = cfg.calibrationBaseline;
|
|
284
|
-
if (!baseline || !baseline.masterIndexHash) {
|
|
285
|
-
// Auto-initialize baseline
|
|
286
|
-
ctx.ui.notify("○ No calibration baseline found — initializing...", "info");
|
|
287
|
-
const newBaseline = computeCalibrationBaseline(projectRoot, kbPath, bundledVersion);
|
|
288
|
-
cfg.calibrationBaseline = newBaseline;
|
|
289
|
-
try {
|
|
290
|
-
writeForgeConfig(projectRoot, cfg);
|
|
291
|
-
ctx.ui.notify(`○ Baseline established — calibration baseline written to config ` +
|
|
292
|
-
`(version: ${bundledVersion}, sprints covered: ${newBaseline.sprintsCovered.length})`, "info");
|
|
293
|
-
}
|
|
294
|
-
catch (err) {
|
|
295
|
-
const e = err;
|
|
296
|
-
ctx.ui.notify(`× Failed to write calibration baseline: ${e.message ?? "unknown"}`, "error");
|
|
297
|
-
}
|
|
298
|
-
return;
|
|
299
|
-
}
|
|
300
|
-
// ── Step 3 — Detect drift ────────────────────────────────────────────
|
|
301
|
-
const currentHash = computeCurrentHash(projectRoot, kbPath);
|
|
302
|
-
if (currentHash !== null && currentHash === baseline.masterIndexHash) {
|
|
303
|
-
ctx.ui.notify(`○ KB calibrated — no drift since last calibration ` +
|
|
304
|
-
`(last: ${baseline.lastCalibrated ?? "unknown"}, version: ${baseline.version ?? "unknown"})`, "info");
|
|
305
|
-
return;
|
|
306
|
-
}
|
|
307
|
-
ctx.ui.notify("△ Drift detected in MASTER_INDEX.md — analyzing...", "warning");
|
|
308
|
-
// ── Step 4 — Categorize drift ────────────────────────────────────────
|
|
309
|
-
const driftCategories = categorizeDrift(projectRoot, kbPath, baseline);
|
|
310
|
-
if (driftCategories.length === 0) {
|
|
311
|
-
ctx.ui.notify("△ Drift detected in MASTER_INDEX.md but no specific category changes identified. " +
|
|
312
|
-
"Run /forge:rebuild to do a full rebuild.", "warning");
|
|
313
|
-
return;
|
|
314
|
-
}
|
|
315
|
-
// ── Step 5 — Propose patches via architect subagent ──────────────────
|
|
316
|
-
ctx.ui.setStatus?.("forge:health", "Generating patch proposals...");
|
|
317
|
-
let proposals = [];
|
|
318
|
-
try {
|
|
319
|
-
const architectPersona = loadForgePersona("architect", projectRoot);
|
|
320
|
-
const patchPrompt = buildPatchProposalPrompt(driftCategories);
|
|
321
|
-
const result = await runForgeSubagent({
|
|
322
|
-
persona: architectPersona,
|
|
323
|
-
task: patchPrompt,
|
|
324
|
-
cwd: projectRoot,
|
|
325
|
-
forgeRoot,
|
|
326
|
-
signal: ctx.signal,
|
|
327
|
-
customTools: options.forgeToolDefs
|
|
328
|
-
? getSubagentTools(options.forgeToolDefs, architectPersona.name)
|
|
329
|
-
: undefined,
|
|
330
|
-
});
|
|
331
|
-
if (result.exitCode !== 0) {
|
|
332
|
-
ctx.ui.notify(`△ Architect subagent returned non-zero: ${result.errorMessage ?? "unknown error"}. ` +
|
|
333
|
-
"Using drift categories directly as patch targets.", "warning");
|
|
334
|
-
proposals = driftCategories.flatMap((cat) => cat.targets.map((t) => ({
|
|
335
|
-
target: t,
|
|
336
|
-
type: "regenerate",
|
|
337
|
-
rationale: cat.evidence,
|
|
338
|
-
})));
|
|
339
|
-
}
|
|
340
|
-
else {
|
|
341
|
-
const proposalText = getFinalOutput(result.messages);
|
|
342
|
-
proposals = extractPatchProposals(proposalText);
|
|
343
|
-
if (proposals.length === 0) {
|
|
344
|
-
ctx.ui.notify("△ Patch proposal parsing yielded no structured patches — using drift categories as targets.", "warning");
|
|
345
|
-
proposals = driftCategories.flatMap((cat) => cat.targets.map((t) => ({
|
|
346
|
-
target: t,
|
|
347
|
-
type: "regenerate",
|
|
348
|
-
rationale: cat.evidence,
|
|
349
|
-
})));
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
catch (err) {
|
|
354
|
-
const e = err;
|
|
355
|
-
ctx.ui.notify(`△ Architect subagent failed: ${e.message ?? "unknown"}. Using drift categories as targets.`, "warning");
|
|
356
|
-
proposals = driftCategories.flatMap((cat) => cat.targets.map((t) => ({
|
|
357
|
-
target: t,
|
|
358
|
-
type: "regenerate",
|
|
359
|
-
rationale: cat.evidence,
|
|
360
|
-
})));
|
|
361
|
-
}
|
|
362
|
-
ctx.ui.setStatus?.("forge:health", undefined);
|
|
363
|
-
// ── Step 6 — Approval gate ───────────────────────────────────────────
|
|
364
|
-
const driftLines = [
|
|
365
|
-
"",
|
|
366
|
-
`## Calibration Drift Report`,
|
|
367
|
-
"",
|
|
368
|
-
`△ Drift detected — ${driftCategories.length} categories since last calibration ` +
|
|
369
|
-
`(${baseline.lastCalibrated ?? "unknown"})`,
|
|
370
|
-
"",
|
|
371
|
-
];
|
|
372
|
-
for (let i = 0; i < driftCategories.length; i++) {
|
|
373
|
-
const cat = driftCategories[i];
|
|
374
|
-
const catProposals = proposals.filter((p) => cat.targets.includes(p.target));
|
|
375
|
-
driftLines.push(`### Category ${i + 1}: ${cat.category.charAt(0).toUpperCase() + cat.category.slice(1)}`, ` Evidence: ${cat.evidence}`, ` Proposed regeneration:`, ...catProposals.map((p) => ` · ${p.target}`), "");
|
|
376
|
-
}
|
|
377
|
-
ctx.ui.notify(driftLines.join("\n"), "info");
|
|
378
|
-
const approvedPatches = [];
|
|
379
|
-
const skippedPatches = [];
|
|
380
|
-
if (isNonInteractive()) {
|
|
381
|
-
ctx.ui.notify(`○ Non-interactive mode — auto-applying all ${proposals.length} patch(es).`, "info");
|
|
382
|
-
for (const p of proposals) {
|
|
383
|
-
approvedPatches.push({ ...p, applied: false });
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
else {
|
|
387
|
-
const proposalSummary = proposals.map((p, i) => `${i + 1}. ${p.target} — ${p.rationale}`).join("\n");
|
|
388
|
-
const applyAll = await ctx.ui.confirm("Apply all calibration patches?", `${proposals.length} patch(es) proposed:\n\n${proposalSummary}\n\nYes = apply all | No = skip all`);
|
|
389
|
-
if (!applyAll) {
|
|
390
|
-
ctx.ui.notify("○ Calibration patches skipped — run /forge:health --fix again to apply.", "info");
|
|
391
|
-
skippedPatches.push(...proposals);
|
|
392
|
-
}
|
|
393
|
-
else {
|
|
394
|
-
for (const p of proposals) {
|
|
395
|
-
approvedPatches.push({ ...p, applied: false });
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
// ── Step 7 — Execute approved patches ────────────────────────────────
|
|
400
|
-
for (const patch of approvedPatches) {
|
|
401
|
-
ctx.ui.notify(` → Regenerating ${patch.target}...`, "info");
|
|
402
|
-
try {
|
|
403
|
-
// Delegate to LLM via steer channel. sendToAgent is awaited (resolves after
|
|
404
|
-
// agent completes when idle; enqueues steer when streaming). waitForIdle covers
|
|
405
|
-
// the streaming case and is a no-op when idle (F2 from plan review).
|
|
406
|
-
await sendToAgent(`Run /forge:regenerate for target: ${patch.target}\n\n` +
|
|
407
|
-
`Regenerate the Forge knowledge base target: ${patch.target}\n` +
|
|
408
|
-
`Project root: ${projectRoot}`);
|
|
409
|
-
await ctx.waitForIdle();
|
|
410
|
-
patch.applied = true;
|
|
411
|
-
ctx.ui.notify(` ○ ${patch.target} regenerated.`, "info");
|
|
412
|
-
}
|
|
413
|
-
catch (err) {
|
|
414
|
-
const e = err;
|
|
415
|
-
ctx.ui.notify(` △ Regeneration failed for ${patch.target}: ${e.message ?? "unknown"} — skipping.`, "warning");
|
|
416
|
-
patch.applied = false;
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
// ── Step 8 — Update calibration state ────────────────────────────────
|
|
420
|
-
const newHash = computeCurrentHash(projectRoot, kbPath);
|
|
421
|
-
const newBaseline = computeCalibrationBaseline(projectRoot, kbPath, bundledVersion);
|
|
422
|
-
if (newHash !== null) {
|
|
423
|
-
newBaseline.masterIndexHash = newHash;
|
|
424
|
-
}
|
|
425
|
-
const historyPatches = [
|
|
426
|
-
...approvedPatches.map((p) => ({
|
|
427
|
-
target: p.target,
|
|
428
|
-
type: "regenerate",
|
|
429
|
-
applied: p.applied,
|
|
430
|
-
})),
|
|
431
|
-
...skippedPatches.map((p) => ({
|
|
432
|
-
target: p.target,
|
|
433
|
-
type: "regenerate",
|
|
434
|
-
applied: false,
|
|
435
|
-
})),
|
|
436
|
-
];
|
|
437
|
-
const historyEntry = {
|
|
438
|
-
date: new Date().toISOString(),
|
|
439
|
-
version: bundledVersion,
|
|
440
|
-
categories: driftCategories.map((c) => c.category),
|
|
441
|
-
patches: historyPatches,
|
|
442
|
-
};
|
|
443
|
-
cfg.calibrationBaseline = newBaseline;
|
|
444
|
-
if (!Array.isArray(cfg.calibrationHistory)) {
|
|
445
|
-
cfg.calibrationHistory = [];
|
|
446
|
-
}
|
|
447
|
-
cfg.calibrationHistory.push(historyEntry);
|
|
448
|
-
try {
|
|
449
|
-
writeForgeConfig(projectRoot, cfg);
|
|
450
|
-
}
|
|
451
|
-
catch (err) {
|
|
452
|
-
const e = err;
|
|
453
|
-
ctx.ui.notify(`△ Failed to update calibration state: ${e.message ?? "unknown"} — baseline may be stale.`, "warning");
|
|
454
|
-
}
|
|
455
|
-
// ── Step 9 — Summary ─────────────────────────────────────────────────
|
|
456
|
-
const appliedCount = approvedPatches.filter((p) => p.applied).length;
|
|
457
|
-
const totalCount = approvedPatches.length + skippedPatches.length;
|
|
458
|
-
const appliedTargets = approvedPatches
|
|
459
|
-
.filter((p) => p.applied)
|
|
460
|
-
.map((p) => p.target)
|
|
461
|
-
.join(", ");
|
|
462
|
-
const summaryLines = [
|
|
463
|
-
"",
|
|
464
|
-
"## ○ Calibration Complete",
|
|
465
|
-
"",
|
|
466
|
-
` Patches applied: ${appliedCount} of ${totalCount}`,
|
|
467
|
-
` Regenerated: ${appliedTargets || "(none)"}`,
|
|
468
|
-
` Baseline updated: ${newBaseline.lastCalibrated}`,
|
|
469
|
-
"",
|
|
470
|
-
"── Run /forge:health to verify knowledge base currency.",
|
|
471
|
-
];
|
|
472
|
-
const failedPatches = approvedPatches.filter((p) => !p.applied);
|
|
473
|
-
if (failedPatches.length > 0) {
|
|
474
|
-
const failedTargets = failedPatches.map((p) => p.target).join(", ");
|
|
475
|
-
summaryLines.push("", `△ Failed patches: ${failedTargets}`, "── Re-run /forge:calibrate or manually /forge:regenerate the failed targets.");
|
|
476
|
-
}
|
|
477
|
-
ctx.ui.notify(summaryLines.join("\n"), "info");
|
|
478
|
-
},
|
|
479
|
-
});
|
|
480
|
-
}
|
|
481
|
-
//# sourceMappingURL=calibrate.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{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AkB,cAAc,IAAI,QAAQ,EAAE;gBAC9C,uBAAuB,WAAW,CAAC,cAAc,EAAE;gBACnD,EAAE;gBACF,yDAAyD;aACzD,CAAC;YAEF,MAAM,aAAa,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;YAChE,IAAI,aAAa,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAC9B,MAAM,aAAa,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBACpE,YAAY,CAAC,IAAI,CAChB,EAAE,EACF,qBAAqB,aAAa,EAAE,EACpC,8EAA8E,CAC9E,CAAC;YACH,CAAC;YAED,GAAG,CAAC,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,CAAC;QAChD,CAAC;KACD,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -1,22 +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 parseCollateArgs(rawArgs: string, cwd: string): ParsedArgs;
|
|
13
|
-
export interface ComposeKickoffOpts {
|
|
14
|
-
workflowMd: string;
|
|
15
|
-
personaIdentity: string;
|
|
16
|
-
parsed: ParsedArgs;
|
|
17
|
-
}
|
|
18
|
-
export declare function composeKickoff(opts: ComposeKickoffOpts): string;
|
|
19
|
-
export interface RegisterCollateOptions {
|
|
20
|
-
cwd?: string;
|
|
21
|
-
}
|
|
22
|
-
export declare function registerCollate(pi: ExtensionAPI, options?: RegisterCollateOptions): void;
|