@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,438 +0,0 @@
|
|
|
1
|
-
// regenerate.ts — native handler for /forge:rebuild (renamed from /forge:regenerate in v1.0).
|
|
2
|
-
//
|
|
3
|
-
// v0 scope: re-materialize the project's .forge/ and .claude/commands/ trees
|
|
4
|
-
// from the bundled forge-payload (.base-pack + substitute-placeholders.cjs).
|
|
5
|
-
// This is the deterministic subset of the plugin's /forge:rebuild
|
|
6
|
-
// behaviour — the meta-driven persona/skill/workflow fan-out (which spawns
|
|
7
|
-
// generation subagents) is NOT covered here. v0 is sufficient for the
|
|
8
|
-
// common dogfooding case: "I just rebundled a new plugin payload and want
|
|
9
|
-
// the testbench to pick up the new workflows / commands / templates."
|
|
10
|
-
//
|
|
11
|
-
// FORGE-S26-T11: `--enrich` flag added. When present, skips the base-pack
|
|
12
|
-
// re-materialization and dispatches to the enhance workflow (Phase 2 behavior,
|
|
13
|
-
// equivalent to former /forge:enhance). Mirrors T03's absorption of enhance
|
|
14
|
-
// into rebuild --enrich.
|
|
15
|
-
//
|
|
16
|
-
// No sub-target filtering yet; full re-materialization on every call.
|
|
17
|
-
// Idempotent — re-running with no changes overwrites with identical bytes.
|
|
18
|
-
//
|
|
19
|
-
// See forge-cli companion to forge#83 / #85.
|
|
20
|
-
import { spawn, spawnSync } from "node:child_process";
|
|
21
|
-
import * as fs from "node:fs";
|
|
22
|
-
import * as path from "node:path";
|
|
23
|
-
// FORGE-S26-T11: registerEnhance imported to power `forge:rebuild --enrich`
|
|
24
|
-
import { registerEnhance } from "./enhance.js";
|
|
25
|
-
import { getBundledPayloadRoot, getBundledToolsRoot } from "./forge-init.js";
|
|
26
|
-
// ── Pre-write modification guard (forge-cli#26 / forge#106 / FORGE-BUG-037) ──
|
|
27
|
-
//
|
|
28
|
-
// `substitute-placeholders.cjs` blanket-overwrites every file in the four
|
|
29
|
-
// structural-element categories. Before invoking it, enumerate each .forge/<cat>/
|
|
30
|
-
// file and run `generation-manifest.cjs check`. Any file whose recorded hash
|
|
31
|
-
// no longer matches its on-disk content is a manual modification — typically
|
|
32
|
-
// applied by /forge:enhance Phase 2 — and would be silently destroyed.
|
|
33
|
-
// Surface the list to the user and require explicit confirmation.
|
|
34
|
-
const STRUCTURAL_CATEGORIES = ["personas", "skills", "workflows", "templates"];
|
|
35
|
-
/**
|
|
36
|
-
* Enumerate files in .forge/{personas,skills,workflows,templates}/ and return
|
|
37
|
-
* those whose state diverges from the manifest baseline. Two divergence states
|
|
38
|
-
* are surfaced (both warrant a prompt before overwrite):
|
|
39
|
-
*
|
|
40
|
-
* - "modified": file content differs from the recorded manifest hash. Typically
|
|
41
|
-
* caused by /forge:enhance Phase 2 applying edits in-place.
|
|
42
|
-
* - "untracked": file exists on disk but has NO manifest entry. Caused by a
|
|
43
|
-
* prior regenerate that ran `clear-namespace` without re-recording. A fresh
|
|
44
|
-
* /forge:init records hashes for every generated file, so "untracked" should
|
|
45
|
-
* never appear in a clean install — its presence signals user content that's
|
|
46
|
-
* been disconnected from the tracking system. See forge-cli#30.
|
|
47
|
-
*
|
|
48
|
-
* Pure function (no I/O beyond fs reads + manifest tool spawns).
|
|
49
|
-
*/
|
|
50
|
-
export function findModifiedStructuralFiles(cwd, toolsRoot) {
|
|
51
|
-
const manifestTool = path.join(toolsRoot, "generation-manifest.cjs");
|
|
52
|
-
if (!fs.existsSync(manifestTool))
|
|
53
|
-
return [];
|
|
54
|
-
const modified = [];
|
|
55
|
-
for (const category of STRUCTURAL_CATEGORIES) {
|
|
56
|
-
const dir = path.join(cwd, ".forge", category);
|
|
57
|
-
if (!fs.existsSync(dir))
|
|
58
|
-
continue;
|
|
59
|
-
const files = fs.readdirSync(dir).filter((f) => f.endsWith(".md"));
|
|
60
|
-
for (const f of files) {
|
|
61
|
-
const relPath = path.posix.join(".forge", category, f);
|
|
62
|
-
const result = spawnSync("node", [manifestTool, "check", relPath], {
|
|
63
|
-
cwd,
|
|
64
|
-
encoding: "utf8",
|
|
65
|
-
timeout: 5_000,
|
|
66
|
-
});
|
|
67
|
-
// generation-manifest check exit codes:
|
|
68
|
-
// 0 = pristine, 1 = modified, 2 = untracked, 3 = file missing
|
|
69
|
-
if (result.status === 1) {
|
|
70
|
-
modified.push({ category, relativePath: relPath, state: "modified" });
|
|
71
|
-
}
|
|
72
|
-
else if (result.status === 2) {
|
|
73
|
-
modified.push({ category, relativePath: relPath, state: "untracked" });
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
return modified;
|
|
78
|
-
}
|
|
79
|
-
async function runTool(toolPath, argv, cwd, ctx, label, timeoutMs = 60_000) {
|
|
80
|
-
return await new Promise((resolve) => {
|
|
81
|
-
const child = spawn("node", [toolPath, ...argv], { cwd, stdio: ["ignore", "pipe", "pipe"] });
|
|
82
|
-
let stdoutBuf = "";
|
|
83
|
-
let stderrBuf = "";
|
|
84
|
-
const timer = setTimeout(() => {
|
|
85
|
-
child.kill("SIGKILL");
|
|
86
|
-
ctx.ui.notify(`× forge:rebuild — ${label} timed out after ${timeoutMs}ms`, "error");
|
|
87
|
-
resolve(false);
|
|
88
|
-
}, timeoutMs);
|
|
89
|
-
child.stdout?.on("data", (d) => {
|
|
90
|
-
stdoutBuf += d.toString();
|
|
91
|
-
});
|
|
92
|
-
child.stderr?.on("data", (d) => {
|
|
93
|
-
stderrBuf += d.toString();
|
|
94
|
-
});
|
|
95
|
-
child.on("close", (code) => {
|
|
96
|
-
clearTimeout(timer);
|
|
97
|
-
if (code === 0) {
|
|
98
|
-
ctx.ui.notify(`〇 ${label} complete`, "info");
|
|
99
|
-
resolve(true);
|
|
100
|
-
}
|
|
101
|
-
else {
|
|
102
|
-
const msg = (stderrBuf || stdoutBuf).trim().split("\n").slice(-3).join(" | ") || "unknown error";
|
|
103
|
-
ctx.ui.notify(`× forge:rebuild — ${label} exit ${code}: ${msg}`, "error");
|
|
104
|
-
resolve(false);
|
|
105
|
-
}
|
|
106
|
-
});
|
|
107
|
-
child.on("error", (err) => {
|
|
108
|
-
clearTimeout(timer);
|
|
109
|
-
ctx.ui.notify(`× forge:rebuild — ${label} spawn failed: ${err.message}`, "error");
|
|
110
|
-
resolve(false);
|
|
111
|
-
});
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* Copy bundled tools (*.cjs, *.js, lib/) from bundleToolsRoot into cwd/.forge/tools/.
|
|
116
|
-
*
|
|
117
|
-
* Atomic handler pattern: no LLM in the loop, errors surfaced via returned messages[],
|
|
118
|
-
* not throw. Accepts _testBundleToolsRoot for test isolation (defaults to getBundledToolsRoot()).
|
|
119
|
-
*
|
|
120
|
-
* When singleTool is provided (e.g. "store-cli"), only that file is copied (both .cjs
|
|
121
|
-
* variant checked first). Used by the `forge:rebuild tools <name>` sub-target.
|
|
122
|
-
*
|
|
123
|
-
* @param cwd Project root directory (must contain .forge/)
|
|
124
|
-
* @param _testBundleToolsRoot Override bundle tools root for tests; omit to use getBundledToolsRoot()
|
|
125
|
-
* @param singleTool Optional: copy only this one tool by stem name (without extension)
|
|
126
|
-
*/
|
|
127
|
-
export function runRebuildTools(cwd, _testBundleToolsRoot, singleTool) {
|
|
128
|
-
const messages = [];
|
|
129
|
-
const toolsSrc = _testBundleToolsRoot ?? getBundledToolsRoot();
|
|
130
|
-
if (!fs.existsSync(toolsSrc)) {
|
|
131
|
-
messages.push(`× forge:rebuild tools — bundle tools dir not found: ${toolsSrc}`);
|
|
132
|
-
return { messages };
|
|
133
|
-
}
|
|
134
|
-
const toolsDest = path.join(cwd, ".forge", "tools");
|
|
135
|
-
try {
|
|
136
|
-
fs.mkdirSync(toolsDest, { recursive: true });
|
|
137
|
-
}
|
|
138
|
-
catch (err) {
|
|
139
|
-
messages.push(`× forge:rebuild tools — could not create .forge/tools/: ${err.message ?? String(err)}`);
|
|
140
|
-
return { messages };
|
|
141
|
-
}
|
|
142
|
-
if (singleTool) {
|
|
143
|
-
// Single-file sub-target: copy only the named tool
|
|
144
|
-
const srcCjs = path.join(toolsSrc, `${singleTool}.cjs`);
|
|
145
|
-
const srcJs = path.join(toolsSrc, `${singleTool}.js`);
|
|
146
|
-
const resolvedSrc = fs.existsSync(srcCjs) ? srcCjs : fs.existsSync(srcJs) ? srcJs : null;
|
|
147
|
-
if (resolvedSrc) {
|
|
148
|
-
const destFile = path.join(toolsDest, path.basename(resolvedSrc));
|
|
149
|
-
try {
|
|
150
|
-
fs.copyFileSync(resolvedSrc, destFile);
|
|
151
|
-
messages.push(`〇 forge:rebuild tools — copied ${path.basename(resolvedSrc)}`);
|
|
152
|
-
}
|
|
153
|
-
catch (err) {
|
|
154
|
-
messages.push(`× forge:rebuild tools — copy failed for ${singleTool}: ${err.message ?? String(err)}`);
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
else {
|
|
158
|
-
messages.push(`△ forge:rebuild tools — tool not found: ${singleTool} (neither .cjs nor .js)`);
|
|
159
|
-
}
|
|
160
|
-
return { messages };
|
|
161
|
-
}
|
|
162
|
-
// Full copy: all .cjs and .js files
|
|
163
|
-
let copiedCount = 0;
|
|
164
|
-
try {
|
|
165
|
-
const entries = fs.readdirSync(toolsSrc, { withFileTypes: true });
|
|
166
|
-
for (const entry of entries) {
|
|
167
|
-
if (!entry.isFile())
|
|
168
|
-
continue;
|
|
169
|
-
if (!entry.name.endsWith(".cjs") && !entry.name.endsWith(".js"))
|
|
170
|
-
continue;
|
|
171
|
-
try {
|
|
172
|
-
fs.copyFileSync(path.join(toolsSrc, entry.name), path.join(toolsDest, entry.name));
|
|
173
|
-
copiedCount++;
|
|
174
|
-
}
|
|
175
|
-
catch {
|
|
176
|
-
// non-fatal per-file
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
catch (err) {
|
|
181
|
-
messages.push(`× forge:rebuild tools — could not read bundle tools dir: ${err.message ?? String(err)}`);
|
|
182
|
-
return { messages };
|
|
183
|
-
}
|
|
184
|
-
// Copy lib/ subdirectory
|
|
185
|
-
const libSrc = path.join(toolsSrc, "lib");
|
|
186
|
-
const libDest = path.join(toolsDest, "lib");
|
|
187
|
-
if (fs.existsSync(libSrc)) {
|
|
188
|
-
try {
|
|
189
|
-
fs.mkdirSync(libDest, { recursive: true });
|
|
190
|
-
const libEntries = fs.readdirSync(libSrc, { withFileTypes: true });
|
|
191
|
-
for (const entry of libEntries) {
|
|
192
|
-
if (!entry.isFile())
|
|
193
|
-
continue;
|
|
194
|
-
if (!entry.name.endsWith(".cjs") && !entry.name.endsWith(".js"))
|
|
195
|
-
continue;
|
|
196
|
-
try {
|
|
197
|
-
fs.copyFileSync(path.join(libSrc, entry.name), path.join(libDest, entry.name));
|
|
198
|
-
copiedCount++;
|
|
199
|
-
}
|
|
200
|
-
catch {
|
|
201
|
-
// non-fatal per-file
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
catch {
|
|
206
|
-
// non-fatal lib copy failure
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
messages.push(`〇 forge:rebuild tools — copied ${copiedCount} tool file(s) to .forge/tools/`);
|
|
210
|
-
return { messages };
|
|
211
|
-
}
|
|
212
|
-
export function registerRegenerate(pi) {
|
|
213
|
-
pi.registerCommand("forge:rebuild", {
|
|
214
|
-
description: "Re-materialize .forge/ and .claude/commands/ from the bundled forge-payload " +
|
|
215
|
-
"(deterministic subset of the plugin's /forge:rebuild — runs substitute-placeholders.cjs). " +
|
|
216
|
-
"--enrich: trigger enhancement workflow (Phase 2) instead of base-pack re-materialization.",
|
|
217
|
-
async handler(args, ctx) {
|
|
218
|
-
const cwd = process.cwd();
|
|
219
|
-
// FORGE-S26-T11: --enrich flag dispatches to enhance behavior (absorbed from forge:enhance).
|
|
220
|
-
// FORGE-S29-T05: `tools` sub-arg dispatches to runRebuildTools.
|
|
221
|
-
const parts = (args ?? "").trim().split(/\s+/).filter(Boolean);
|
|
222
|
-
const hasEnrich = parts.includes("--enrich");
|
|
223
|
-
const toolsIdx = parts.indexOf("tools");
|
|
224
|
-
if (toolsIdx !== -1) {
|
|
225
|
-
// forge:rebuild tools [<name>]
|
|
226
|
-
// Optional single tool name follows the "tools" keyword.
|
|
227
|
-
const singleTool = parts[toolsIdx + 1];
|
|
228
|
-
const result = runRebuildTools(cwd, undefined, singleTool);
|
|
229
|
-
for (const msg of result.messages) {
|
|
230
|
-
ctx.ui.notify(msg, msg.startsWith("×") ? "error" : "info");
|
|
231
|
-
}
|
|
232
|
-
return;
|
|
233
|
-
}
|
|
234
|
-
if (hasEnrich) {
|
|
235
|
-
// Strip --enrich, pass remaining args to enhance handler (Phase 2 default)
|
|
236
|
-
const enhanceArgs = parts.filter((p) => p !== "--enrich").join(" ");
|
|
237
|
-
let enhanceHandler;
|
|
238
|
-
const syntheticPi = {
|
|
239
|
-
...pi,
|
|
240
|
-
registerCommand: (name, def) => {
|
|
241
|
-
if (name === "forge:enhance")
|
|
242
|
-
enhanceHandler = def.handler;
|
|
243
|
-
},
|
|
244
|
-
};
|
|
245
|
-
registerEnhance(syntheticPi);
|
|
246
|
-
if (enhanceHandler) {
|
|
247
|
-
await enhanceHandler(enhanceArgs, ctx);
|
|
248
|
-
}
|
|
249
|
-
else {
|
|
250
|
-
ctx.ui.notify("× forge:rebuild --enrich — enhance handler unavailable", "error");
|
|
251
|
-
}
|
|
252
|
-
return;
|
|
253
|
-
}
|
|
254
|
-
const configPath = path.join(cwd, ".forge", "config.json");
|
|
255
|
-
if (!fs.existsSync(configPath)) {
|
|
256
|
-
ctx.ui.notify("× forge:rebuild — no .forge/config.json at cwd. Run /forge:init first.", "error");
|
|
257
|
-
return;
|
|
258
|
-
}
|
|
259
|
-
const bundleRoot = getBundledPayloadRoot();
|
|
260
|
-
const toolsRoot = getBundledToolsRoot();
|
|
261
|
-
const buildInitContextTool = path.join(toolsRoot, "build-init-context.cjs");
|
|
262
|
-
const substituteTool = path.join(toolsRoot, "substitute-placeholders.cjs");
|
|
263
|
-
const basePackDir = path.join(bundleRoot, ".base-pack");
|
|
264
|
-
if (!fs.existsSync(substituteTool)) {
|
|
265
|
-
ctx.ui.notify(`× forge:rebuild — substitute-placeholders.cjs missing at ${substituteTool}`, "error");
|
|
266
|
-
return;
|
|
267
|
-
}
|
|
268
|
-
if (!fs.existsSync(basePackDir)) {
|
|
269
|
-
ctx.ui.notify(`× forge:rebuild — base-pack missing at ${basePackDir}`, "error");
|
|
270
|
-
return;
|
|
271
|
-
}
|
|
272
|
-
// Pre-write modification guard (forge-cli#26 / forge#106 / FORGE-BUG-037).
|
|
273
|
-
// Skip with --force (e.g. CI / dogfood reset). Otherwise, surface any
|
|
274
|
-
// manual modifications (typically applied by /forge:enhance Phase 2)
|
|
275
|
-
// and require explicit confirmation before overwriting them.
|
|
276
|
-
const force = (args ?? []).includes("--force");
|
|
277
|
-
if (!force) {
|
|
278
|
-
const divergent = findModifiedStructuralFiles(cwd, toolsRoot);
|
|
279
|
-
if (divergent.length > 0) {
|
|
280
|
-
const modCount = divergent.filter((m) => m.state === "modified").length;
|
|
281
|
-
const untCount = divergent.filter((m) => m.state === "untracked").length;
|
|
282
|
-
const summary = [
|
|
283
|
-
`${divergent.length} file(s) in .forge/ diverge from the manifest baseline:`,
|
|
284
|
-
` ${modCount} modified (hash mismatch — typical /forge:enhance Phase 2 edit)`,
|
|
285
|
-
` ${untCount} untracked (no manifest entry — usually means a prior regenerate cleared the namespace)`,
|
|
286
|
-
"",
|
|
287
|
-
"Divergent files:",
|
|
288
|
-
...divergent.map((m) => ` △ [${m.state}] ${m.relativePath}`),
|
|
289
|
-
"",
|
|
290
|
-
"Edits CAPTURED by /forge:enhance Phase 2 snapshots (.forge/archive/snap-N/)",
|
|
291
|
-
"will be RESTORED automatically post-regenerate via `manage-versions replay`",
|
|
292
|
-
"(forge#107 / Approach A — overlay semantics, later snapshots win).",
|
|
293
|
-
"",
|
|
294
|
-
"Edits NOT captured in any snapshot will be lost. To capture before regen, run",
|
|
295
|
-
"/forge:enhance Phase 2 → approve edits → ensure `add-snapshot` was called.",
|
|
296
|
-
"",
|
|
297
|
-
"Answer 'yes' to proceed (snapshot-captured edits survive automatically).",
|
|
298
|
-
"Answer 'no' to abort.",
|
|
299
|
-
"Use --force to skip this prompt AND skip replay (pristine base-pack).",
|
|
300
|
-
].join("\n");
|
|
301
|
-
const proceed = await ctx.ui.confirm(`Proceed with regenerate? (${divergent.length} divergent file(s): ${modCount} modified, ${untCount} untracked)`, summary);
|
|
302
|
-
if (!proceed) {
|
|
303
|
-
ctx.ui.notify(`〇 forge:rebuild cancelled — ${divergent.length} divergent file(s) preserved.`, "info");
|
|
304
|
-
return;
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
ctx.ui.setStatus?.("forge:rebuild", "rebuilding init-context…");
|
|
309
|
-
// 1. Rebuild init-context.json so substitute has fresh placeholders.
|
|
310
|
-
if (fs.existsSync(buildInitContextTool)) {
|
|
311
|
-
const ok = await runTool(buildInitContextTool, [
|
|
312
|
-
"--config",
|
|
313
|
-
configPath,
|
|
314
|
-
"--personas",
|
|
315
|
-
path.join(cwd, ".forge", "personas"),
|
|
316
|
-
"--templates",
|
|
317
|
-
path.join(cwd, ".forge", "templates"),
|
|
318
|
-
"--kb",
|
|
319
|
-
cwd,
|
|
320
|
-
"--out",
|
|
321
|
-
path.join(cwd, ".forge", "init-context.md"),
|
|
322
|
-
"--json-out",
|
|
323
|
-
path.join(cwd, ".forge", "init-context.json"),
|
|
324
|
-
], cwd, ctx, "build-init-context", 30_000);
|
|
325
|
-
if (!ok) {
|
|
326
|
-
ctx.ui.setStatus?.("forge:rebuild", undefined);
|
|
327
|
-
return;
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
ctx.ui.setStatus?.("forge:rebuild", "materializing .forge/ + .claude/commands/…");
|
|
331
|
-
// 2. Re-run substitute-placeholders against the bundled base-pack.
|
|
332
|
-
const ok = await runTool(substituteTool, [
|
|
333
|
-
"--forge-root",
|
|
334
|
-
bundleRoot,
|
|
335
|
-
"--base-pack",
|
|
336
|
-
basePackDir,
|
|
337
|
-
"--config",
|
|
338
|
-
configPath,
|
|
339
|
-
"--context",
|
|
340
|
-
path.join(cwd, ".forge", "init-context.json"),
|
|
341
|
-
"--out",
|
|
342
|
-
cwd,
|
|
343
|
-
], cwd, ctx, "substitute-placeholders", 60_000);
|
|
344
|
-
// 3a. Replay user enhancements (forge#107 / forge-cli#27 — Approach A layer 3).
|
|
345
|
-
// After substitute-placeholders wrote fresh base-pack content over
|
|
346
|
-
// .forge/{personas,skills,workflows,templates}/, restore any user-enhanced
|
|
347
|
-
// files captured by /forge:enhance Phase 2 snapshots from .forge/archive/snap-N/.
|
|
348
|
-
// Mirrors regenerate.md's per-category replay step. Pure additive — replay
|
|
349
|
-
// is a no-op when no snapshots match. Skipped when --force is used (force
|
|
350
|
-
// is "I want pristine base-pack content, no overlay").
|
|
351
|
-
const manageVersionsTool = path.join(toolsRoot, "manage-versions.cjs");
|
|
352
|
-
let replayTotal = 0;
|
|
353
|
-
if (ok && !force && fs.existsSync(manageVersionsTool)) {
|
|
354
|
-
ctx.ui.setStatus?.("forge:rebuild", "replaying user enhancements…");
|
|
355
|
-
const replayCategories = ["personas", "skills", "workflows", "templates"];
|
|
356
|
-
for (const category of replayCategories) {
|
|
357
|
-
await new Promise((resolve) => {
|
|
358
|
-
const child = spawn("node", [manageVersionsTool, "replay", "--target", category], {
|
|
359
|
-
cwd,
|
|
360
|
-
stdio: ["ignore", "pipe", "pipe"],
|
|
361
|
-
});
|
|
362
|
-
let stdoutBuf = "";
|
|
363
|
-
child.stdout?.on("data", (d) => {
|
|
364
|
-
stdoutBuf += d.toString();
|
|
365
|
-
});
|
|
366
|
-
child.on("close", (code) => {
|
|
367
|
-
if (code === 0) {
|
|
368
|
-
// Parse "restored — N file(s)" out of stdout to track total
|
|
369
|
-
const m = stdoutBuf.match(/(\d+)\s+file\(s\)\s+restored/);
|
|
370
|
-
if (m) {
|
|
371
|
-
replayTotal += parseInt(m[1], 10);
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
// Non-zero exit (e.g. structure-versions.json missing on a
|
|
375
|
-
// project that never ran /forge:enhance): treat as no-op.
|
|
376
|
-
resolve();
|
|
377
|
-
});
|
|
378
|
-
child.on("error", () => resolve());
|
|
379
|
-
});
|
|
380
|
-
}
|
|
381
|
-
if (replayTotal > 0) {
|
|
382
|
-
ctx.ui.notify(`〇 replay: ${replayTotal} user enhancement(s) restored from snapshots`, "info");
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
// 3b. Refresh schemas from bundled .schemas/. substitute-placeholders does
|
|
386
|
-
// not touch .forge/schemas/, but a forge plugin version bump can ship
|
|
387
|
-
// schema changes (e.g. 0.43.13 added `provider` required + dropped
|
|
388
|
-
// `estimatedCostUSD`). Without this step, regenerated workflows assume
|
|
389
|
-
// the new contract while the schemas on disk still enforce the old one
|
|
390
|
-
// — leading to silent validation drift. Mirrors forge-init.ts copy.
|
|
391
|
-
let schemaCount = 0;
|
|
392
|
-
if (ok) {
|
|
393
|
-
const schemasSrc = path.join(bundleRoot, ".schemas");
|
|
394
|
-
const schemasDest = path.join(cwd, ".forge", "schemas");
|
|
395
|
-
if (fs.existsSync(schemasSrc)) {
|
|
396
|
-
fs.mkdirSync(schemasDest, { recursive: true });
|
|
397
|
-
const files = fs.readdirSync(schemasSrc).filter((f) => f.endsWith(".json"));
|
|
398
|
-
for (const f of files) {
|
|
399
|
-
try {
|
|
400
|
-
fs.copyFileSync(path.join(schemasSrc, f), path.join(schemasDest, f));
|
|
401
|
-
schemaCount++;
|
|
402
|
-
}
|
|
403
|
-
catch {
|
|
404
|
-
// non-fatal — surfaced in count below
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
ctx.ui.setStatus?.("forge:rebuild", undefined);
|
|
410
|
-
if (ok) {
|
|
411
|
-
// 4. Update forgeRoot in .forge/config.json to point to the bundled payload.
|
|
412
|
-
// Without this, projects initialized under a different runtime (e.g. Claude
|
|
413
|
-
// Code plugin cache) keep pointing to the stale forgeRoot. This causes
|
|
414
|
-
// subagent bash calls to $FORGE_ROOT to hit outdated store-cli, schema
|
|
415
|
-
// validators, etc. that lack new enum values and status transitions.
|
|
416
|
-
if (bundleRoot) {
|
|
417
|
-
try {
|
|
418
|
-
const config = JSON.parse(fs.readFileSync(configPath, "utf8"));
|
|
419
|
-
const oldRoot = config?.paths?.forgeRoot;
|
|
420
|
-
if (oldRoot !== bundleRoot) {
|
|
421
|
-
config.paths = config.paths || {};
|
|
422
|
-
config.paths.forgeRoot = bundleRoot;
|
|
423
|
-
fs.writeFileSync(configPath, JSON.stringify(config, null, 2), "utf8");
|
|
424
|
-
ctx.ui.notify(`Updated forgeRoot in config.json: ${oldRoot ?? "(unset)"} → ${bundleRoot}`, "info");
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
catch (e) {
|
|
428
|
-
const msg = e instanceof Error ? e.message : String(e);
|
|
429
|
-
ctx.ui.notify(`⚠ forge:rebuild — could not update forgeRoot in config.json: ${msg}`, "warning");
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
ctx.ui.notify("〇 forge:rebuild complete — .forge/workflows, .forge/personas, .forge/skills, " +
|
|
433
|
-
`.forge/templates, .claude/commands/ re-materialized from bundled payload; ${schemaCount} schemas refreshed.`, "info");
|
|
434
|
-
}
|
|
435
|
-
},
|
|
436
|
-
});
|
|
437
|
-
}
|
|
438
|
-
//# sourceMappingURL=regenerate.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"regenerate.js","sourceRoot":"","sources":["../../../src/extensions/forgecli/regenerate.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,EAAE;AACF,6EAA6E;AAC7E,6EAA6E;AAC7E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|
|
2
|
-
export interface ParsedRemoveArgs {
|
|
3
|
-
apply: boolean;
|
|
4
|
-
seed: string;
|
|
5
|
-
sourceLabel: string;
|
|
6
|
-
}
|
|
7
|
-
export declare function parseRemoveArgs(rawArgs: string, cwd: string): ParsedRemoveArgs;
|
|
8
|
-
export interface ComposeRemoveKickoffOpts {
|
|
9
|
-
commandMd: string;
|
|
10
|
-
parsed: ParsedRemoveArgs;
|
|
11
|
-
}
|
|
12
|
-
export declare function composeRemoveKickoff(opts: ComposeRemoveKickoffOpts): string;
|
|
13
|
-
export interface RegisterRemoveCommandOptions {
|
|
14
|
-
forgeRoot: string | null;
|
|
15
|
-
cwd?: string;
|
|
16
|
-
}
|
|
17
|
-
export declare function registerRemoveCommand(pi: ExtensionAPI, options: RegisterRemoveCommandOptions): void;
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
// forge:remove — 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
|
-
// File is named remove-command.ts (not remove.ts) to avoid naming
|
|
8
|
-
// conflicts with Node.js built-in patterns (consistent with read-command.ts
|
|
9
|
-
// and status-command.ts in this directory).
|
|
10
|
-
//
|
|
11
|
-
// --apply flag bypasses the per-bucket LLM confirmation prompts by including
|
|
12
|
-
// the flag value in the kickoff body so the LLM skips interactive confirmation.
|
|
13
|
-
//
|
|
14
|
-
// Workflow source: <forgeRoot>/commands/remove.md (command file).
|
|
15
|
-
// File-existence check only — command files lack Pack-06 workflow markers.
|
|
16
|
-
//
|
|
17
|
-
// Iron Laws:
|
|
18
|
-
// IL1 — code only under forge-cli/src/extensions/forgecli/.
|
|
19
|
-
// IL4 — no JSON.stringify-into-subagent dispatch.
|
|
20
|
-
// IL6 — no shell-string interpolation; no spawn calls here.
|
|
21
|
-
// IL7 — every failure path emits ctx.ui.notify and returns; no silent
|
|
22
|
-
// continuation.
|
|
23
|
-
import * as fs from "node:fs";
|
|
24
|
-
import * as path from "node:path";
|
|
25
|
-
import { sendKickoff } from "./kickoff.js";
|
|
26
|
-
export function parseRemoveArgs(rawArgs, cwd) {
|
|
27
|
-
const trimmed = (rawArgs ?? "").trim();
|
|
28
|
-
const result = {
|
|
29
|
-
apply: false,
|
|
30
|
-
seed: "",
|
|
31
|
-
sourceLabel: "",
|
|
32
|
-
};
|
|
33
|
-
if (!trimmed) {
|
|
34
|
-
result.sourceLabel = "(no args — interactive removal)";
|
|
35
|
-
return result;
|
|
36
|
-
}
|
|
37
|
-
const tokens = trimmed.split(/\s+/);
|
|
38
|
-
const remaining = [];
|
|
39
|
-
for (const tok of tokens) {
|
|
40
|
-
if (tok === "--apply") {
|
|
41
|
-
result.apply = true;
|
|
42
|
-
}
|
|
43
|
-
else {
|
|
44
|
-
remaining.push(tok);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
const tail = remaining.join(" ").trim();
|
|
48
|
-
if (tail.startsWith("@")) {
|
|
49
|
-
const ref = tail.slice(1).trim();
|
|
50
|
-
const filePath = path.isAbsolute(ref) ? ref : path.resolve(cwd, ref);
|
|
51
|
-
result.seed = fs.readFileSync(filePath, "utf8");
|
|
52
|
-
result.sourceLabel = `(seed from file: ${ref})`;
|
|
53
|
-
}
|
|
54
|
-
else if (tail) {
|
|
55
|
-
result.seed = tail;
|
|
56
|
-
result.sourceLabel = "(seed from inline text)";
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
result.sourceLabel = result.apply ? "(--apply provided)" : "(no args — interactive removal)";
|
|
60
|
-
}
|
|
61
|
-
return result;
|
|
62
|
-
}
|
|
63
|
-
export function composeRemoveKickoff(opts) {
|
|
64
|
-
const { commandMd, parsed } = opts;
|
|
65
|
-
const sections = ["# /forge:remove", ""];
|
|
66
|
-
sections.push("## Dispatch", "");
|
|
67
|
-
sections.push("Run the remove command below to remove Forge artifacts from this project.");
|
|
68
|
-
if (parsed.apply) {
|
|
69
|
-
sections.push("", "**`--apply` flag provided.** Proceed with removal of each bucket without asking for per-bucket confirmation. " +
|
|
70
|
-
"Still show a final summary of what will be removed before executing, but do not prompt for each individual bucket.");
|
|
71
|
-
}
|
|
72
|
-
else {
|
|
73
|
-
sections.push("", "Interactive mode: ask for confirmation before removing each bucket (default behavior).");
|
|
74
|
-
}
|
|
75
|
-
sections.push("", "---", "", "## Command", "", commandMd.trim(), "", "---");
|
|
76
|
-
if (parsed.seed) {
|
|
77
|
-
sections.push("", `## Additional Input — ${parsed.sourceLabel}`, "", parsed.seed.trim());
|
|
78
|
-
}
|
|
79
|
-
return sections.join("\n");
|
|
80
|
-
}
|
|
81
|
-
// ── Registration ──────────────────────────────────────────────────────────
|
|
82
|
-
const COMMAND_NAME = "remove";
|
|
83
|
-
export function registerRemoveCommand(pi, options) {
|
|
84
|
-
pi.registerCommand("forge:remove", {
|
|
85
|
-
description: "Remove Forge artifacts from this project — interactive by default. " +
|
|
86
|
-
"Usage: /forge:remove [--apply] [@<file> | <text>]. " +
|
|
87
|
-
"--apply skips per-bucket confirmation prompts.",
|
|
88
|
-
async handler(args, ctx) {
|
|
89
|
-
const { forgeRoot } = options;
|
|
90
|
-
const cwd = options.cwd ?? process.cwd();
|
|
91
|
-
if (!forgeRoot) {
|
|
92
|
-
ctx.ui.notify("× forge:remove — no Forge project at cwd; run /forge:init to bootstrap", "warning");
|
|
93
|
-
return;
|
|
94
|
-
}
|
|
95
|
-
const commandPath = path.join(forgeRoot, "commands", `${COMMAND_NAME}.md`);
|
|
96
|
-
let commandMd;
|
|
97
|
-
try {
|
|
98
|
-
commandMd = fs.readFileSync(commandPath, "utf8");
|
|
99
|
-
}
|
|
100
|
-
catch (err) {
|
|
101
|
-
const e = err;
|
|
102
|
-
if (e.code === "ENOENT") {
|
|
103
|
-
ctx.ui.notify(`× forge:remove — command file not found at commands/${COMMAND_NAME}.md; run /forge:init or /forge:rebuild first.`, "error");
|
|
104
|
-
}
|
|
105
|
-
else {
|
|
106
|
-
ctx.ui.notify(`× forge:remove — failed to read command file: ${e.message ?? "unknown error"}`, "error");
|
|
107
|
-
}
|
|
108
|
-
return;
|
|
109
|
-
}
|
|
110
|
-
let parsed;
|
|
111
|
-
try {
|
|
112
|
-
parsed = parseRemoveArgs(args, cwd);
|
|
113
|
-
}
|
|
114
|
-
catch (err) {
|
|
115
|
-
const e = err;
|
|
116
|
-
ctx.ui.notify(`× forge:remove — failed to parse args: ${e.message ?? "unknown"}`, "error");
|
|
117
|
-
return;
|
|
118
|
-
}
|
|
119
|
-
const kickoff = composeRemoveKickoff({ commandMd, parsed });
|
|
120
|
-
sendKickoff(pi, kickoff);
|
|
121
|
-
},
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
//# sourceMappingURL=remove-command.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"remove-command.js","sourceRoot":"","sources":["../../../src/extensions/forgecli/remove-command.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,EAAE;AACF,2DAA2D;AAC3D,uEAAuE;AACvE,uEAAuE;AACvE,EAAE;AACF,kEAAkE;AAClE,4EAA4E;AAC5E,4CAA4C;AAC5C,EAAE;AACF,6EAA6E;AAC7E,gFAAgF;AAChF,EAAE;AACF,kEAAkE;AAClE,2EAA2E;AAC3E,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,WAAW,EAAE,MAAM,cAAc,CAAC;AAU3C,MAAM,UAAU,eAAe,CAAC,OAAe,EAAE,GAAW;IAC3D,MAAM,OAAO,GAAG,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAA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SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;gBAC3F,OAAO;YACR,CAAC;YAED,MAAM,OAAO,GAAG,oBAAoB,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,CAAC;YAC5D,WAAW,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;QAC1B,CAAC;KACD,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
2
|
-
export declare function resolveBugRepo(cwd: string): string;
|
|
3
|
-
export interface ParsedReportBugArgs {
|
|
4
|
-
mode: "empty" | "file" | "text";
|
|
5
|
-
symptomText: string;
|
|
6
|
-
sourceLabel: string;
|
|
7
|
-
}
|
|
8
|
-
export declare function parseReportBugArgs(rawArgs: string, cwd: string): ParsedReportBugArgs;
|
|
9
|
-
export interface GhAuthResult {
|
|
10
|
-
ok: boolean;
|
|
11
|
-
output: string;
|
|
12
|
-
}
|
|
13
|
-
export declare function checkGhAuth(): GhAuthResult;
|
|
14
|
-
export interface ComposeReportBugKickoffOpts {
|
|
15
|
-
commandMd: string;
|
|
16
|
-
parsed: ParsedReportBugArgs;
|
|
17
|
-
bugRepo: string;
|
|
18
|
-
ghAuthOutput: string;
|
|
19
|
-
}
|
|
20
|
-
export declare function composeReportBugKickoff(opts: ComposeReportBugKickoffOpts): string;
|
|
21
|
-
export interface RegisterReportBugOptions {
|
|
22
|
-
forgeRoot: string | null;
|
|
23
|
-
cwd?: string;
|
|
24
|
-
}
|
|
25
|
-
export declare function registerReportBug(pi: ExtensionAPI, options: RegisterReportBugOptions): void;
|