@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,127 +0,0 @@
|
|
|
1
|
-
// Curated provider/model registry — FORGE-S16-T16 (issue #17).
|
|
2
|
-
//
|
|
3
|
-
// Loads forgecli's bundled registry/models.json (or a `FORGE_MODEL_REGISTRY`
|
|
4
|
-
// override), seeds project-scope `enabledModels` exactly once into
|
|
5
|
-
// `<projectRoot>/.forge/pi-settings.json`, and emits a missing-credentials
|
|
6
|
-
// banner naming the env vars the user can set. Global pi settings
|
|
7
|
-
// (`~/.pi/agent/settings.json`) are never read or written.
|
|
8
|
-
import { promises as fs, readFileSync } from "node:fs";
|
|
9
|
-
import * as path from "node:path";
|
|
10
|
-
import { fileURLToPath } from "node:url";
|
|
11
|
-
import { Type } from "typebox";
|
|
12
|
-
import { Value } from "typebox/value";
|
|
13
|
-
const ProviderSchema = Type.Object({
|
|
14
|
-
id: Type.String({ minLength: 1 }),
|
|
15
|
-
label: Type.String({ minLength: 1 }),
|
|
16
|
-
enabled: Type.Boolean(),
|
|
17
|
-
deferredTo: Type.Optional(Type.String()),
|
|
18
|
-
modelGlobs: Type.Array(Type.String()),
|
|
19
|
-
credentialEnvAny: Type.Array(Type.String()),
|
|
20
|
-
});
|
|
21
|
-
const RegistrySchema = Type.Object({
|
|
22
|
-
version: Type.Literal(1),
|
|
23
|
-
providers: Type.Array(ProviderSchema, { minItems: 1 }),
|
|
24
|
-
});
|
|
25
|
-
const PKG_ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..", "..", "..");
|
|
26
|
-
const BUNDLED_PATH = path.join(PKG_ROOT, "registry", "models.json");
|
|
27
|
-
function resolveRegistryPath(opts) {
|
|
28
|
-
const env = opts.env ?? process.env;
|
|
29
|
-
if (opts.registryPath && opts.registryPath.length > 0)
|
|
30
|
-
return opts.registryPath;
|
|
31
|
-
const envOverride = env.FORGE_MODEL_REGISTRY;
|
|
32
|
-
if (typeof envOverride === "string" && envOverride.length > 0)
|
|
33
|
-
return envOverride;
|
|
34
|
-
return BUNDLED_PATH;
|
|
35
|
-
}
|
|
36
|
-
export function loadRegistry(opts = {}) {
|
|
37
|
-
const target = resolveRegistryPath(opts);
|
|
38
|
-
const raw = readFileSync(target, "utf8");
|
|
39
|
-
const parsed = JSON.parse(raw);
|
|
40
|
-
if (!Value.Check(RegistrySchema, parsed)) {
|
|
41
|
-
const errors = [...Value.Errors(RegistrySchema, parsed)]
|
|
42
|
-
.slice(0, 3)
|
|
43
|
-
.map((e) => e.message)
|
|
44
|
-
.join("; ");
|
|
45
|
-
throw new Error(`Invalid model registry at ${target}: ${errors || "schema check failed"}`);
|
|
46
|
-
}
|
|
47
|
-
return parsed;
|
|
48
|
-
}
|
|
49
|
-
function seededModelGlobs(registry) {
|
|
50
|
-
const out = [];
|
|
51
|
-
for (const p of registry.providers) {
|
|
52
|
-
if (!p.enabled)
|
|
53
|
-
continue;
|
|
54
|
-
for (const g of p.modelGlobs) {
|
|
55
|
-
if (!out.includes(g))
|
|
56
|
-
out.push(g);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
return out;
|
|
60
|
-
}
|
|
61
|
-
function defaultGlob(registry) {
|
|
62
|
-
for (const p of registry.providers) {
|
|
63
|
-
if (p.enabled && p.modelGlobs.length > 0)
|
|
64
|
-
return p.modelGlobs[0];
|
|
65
|
-
}
|
|
66
|
-
return "claude-*";
|
|
67
|
-
}
|
|
68
|
-
function seedFilePath(projectRoot) {
|
|
69
|
-
return path.join(projectRoot, ".forge", "pi-settings.json");
|
|
70
|
-
}
|
|
71
|
-
async function pathExists(p) {
|
|
72
|
-
try {
|
|
73
|
-
await fs.access(p);
|
|
74
|
-
return true;
|
|
75
|
-
}
|
|
76
|
-
catch {
|
|
77
|
-
return false;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
export async function seedEnabledModels(opts) {
|
|
81
|
-
const target = seedFilePath(opts.projectRoot);
|
|
82
|
-
if (await pathExists(target)) {
|
|
83
|
-
return { seeded: false, path: target };
|
|
84
|
-
}
|
|
85
|
-
const now = opts.now ?? (() => Date.now());
|
|
86
|
-
const payload = {
|
|
87
|
-
schemaVersion: 1,
|
|
88
|
-
seededAt: now(),
|
|
89
|
-
seedSource: "@entelligentsia/forgecli registry v1",
|
|
90
|
-
enabledModels: seededModelGlobs(opts.registry),
|
|
91
|
-
defaultModelGlob: defaultGlob(opts.registry),
|
|
92
|
-
};
|
|
93
|
-
await fs.mkdir(path.dirname(target), { recursive: true });
|
|
94
|
-
const tmp = `${target}.${process.pid}.${Date.now()}.tmp`;
|
|
95
|
-
await fs.writeFile(tmp, JSON.stringify(payload, null, 2), "utf8");
|
|
96
|
-
await fs.rename(tmp, target);
|
|
97
|
-
return { seeded: true, path: target };
|
|
98
|
-
}
|
|
99
|
-
const PRIMARY_ENV_KEYS = ["ANTHROPIC_API_KEY", "OPENAI_API_KEY", "GEMINI_API_KEY", "OPENROUTER_API_KEY"];
|
|
100
|
-
export function detectMissingCredentials(registry, env = process.env) {
|
|
101
|
-
const requiring = registry.providers.filter((p) => p.enabled && p.credentialEnvAny.length > 0);
|
|
102
|
-
if (requiring.length === 0)
|
|
103
|
-
return null;
|
|
104
|
-
for (const p of requiring) {
|
|
105
|
-
for (const key of p.credentialEnvAny) {
|
|
106
|
-
const v = env[key];
|
|
107
|
-
if (typeof v === "string" && v.length > 0) {
|
|
108
|
-
return null;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
const lines = [
|
|
113
|
-
"forge — no provider credentials configured. Set one of:",
|
|
114
|
-
` ${PRIMARY_ENV_KEYS.join(", ")}`,
|
|
115
|
-
"(or run pi /login for OAuth providers).",
|
|
116
|
-
];
|
|
117
|
-
return lines.join("\n");
|
|
118
|
-
}
|
|
119
|
-
export const __test__ = {
|
|
120
|
-
BUNDLED_PATH,
|
|
121
|
-
resolveRegistryPath,
|
|
122
|
-
seedFilePath,
|
|
123
|
-
seededModelGlobs,
|
|
124
|
-
defaultGlob,
|
|
125
|
-
RegistrySchema,
|
|
126
|
-
};
|
|
127
|
-
//# sourceMappingURL=model-registry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"model-registry.js","sourceRoot":"","sources":["../../../src/extensions/forgecli/model-registry.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,EAAE;AACF,6EAA6E;AAC7E,mEAAmE;AACnE,2EAA2E;AAC3E,kEAAkE;AAClE,2DAA2D;AAE3D,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvD,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAe,IAAI,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEtC,MAAM,cAAc,GAAG,IAAI,CAAC,MAAM,CAAC;IAClC,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;IACjC,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;IACpC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE;IACvB,UAAU,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;IACxC,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;IACrC,gBAAgB,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;CAC3C,CAAC,CAAC;AAEH,MAAM,cAAc,GAAG,IAAI,CAAC,MAAM,CAAC;IAClC,OAAO,EAAE,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AoB,CAAC,CAAC;AAEzG,MAAM,UAAU,wBAAwB,CACvC,QAAyB,EACzB,MAAyB,OAAO,CAAC,GAAG;IAEpC,MAAM,SAAS,GAAG,QAAQ,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,IAAI,CAAC,CAAC,gBAAgB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAC/F,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IACxC,KAAK,MAAM,CAAC,IAAI,SAAS,EAAE,CAAC;QAC3B,KAAK,MAAM,GAAG,IAAI,CAAC,CAAC,gBAAgB,EAAE,CAAC;YACtC,MAAM,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC;YACnB,IAAI,OAAO,CAAC,KAAK,QAAQ,IAAI,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAC3C,OAAO,IAAI,CAAC;YACb,CAAC;QACF,CAAC;IACF,CAAC;IACD,MAAM,KAAK,GAAG;QACb,yDAAyD;QACzD,KAAK,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;QAClC,yCAAyC;KACzC,CAAC;IACF,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACzB,CAAC;AAED,MAAM,CAAC,MAAM,QAAQ,GAAG;IACvB,YAAY;IACZ,mBAAmB;IACnB,YAAY;IACZ,gBAAgB;IAChB,WAAW;IACX,cAAc;CACd,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { MergedConfig } from "./config-layer.js";
|
|
2
|
-
export type { MergedConfig } from "./config-layer.js";
|
|
3
|
-
export type ResolveSource = "L4-inline" | "L4-name" | "L3" | "L2" | "L1" | "default" | "inherit";
|
|
4
|
-
export type LookupSource = "L3" | "L2" | "L1" | "default" | "missing";
|
|
5
|
-
export interface ResolveResult {
|
|
6
|
-
model: {
|
|
7
|
-
provider: string;
|
|
8
|
-
model: string;
|
|
9
|
-
} | undefined;
|
|
10
|
-
source: ResolveSource;
|
|
11
|
-
}
|
|
12
|
-
export interface LookupResult {
|
|
13
|
-
model: {
|
|
14
|
-
provider: string;
|
|
15
|
-
model: string;
|
|
16
|
-
} | undefined;
|
|
17
|
-
source: LookupSource;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Look up a persona-model name through L3 → L2 → L1 → default → missing.
|
|
21
|
-
* Used by resolveModelForPhase for L4-name resolution and direct persona lookups.
|
|
22
|
-
*/
|
|
23
|
-
export declare function lookupPersonaModel(personaName: string, pipelineName: string, merged: MergedConfig): LookupResult;
|
|
24
|
-
/**
|
|
25
|
-
* Resolve the {provider, model} pair for a specific phase invocation.
|
|
26
|
-
*
|
|
27
|
-
* Cascade order:
|
|
28
|
-
* L4-inline → L4-name → L3 → L2 → L1 → default persona-model → inherit
|
|
29
|
-
*
|
|
30
|
-
* When source is "inherit", model is undefined — caller must skip setModel.
|
|
31
|
-
*/
|
|
32
|
-
export declare function resolveModelForPhase(pipelineName: string, phaseRole: string, personaNoun: string, merged: MergedConfig): ResolveResult;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
function toModel(pm) {
|
|
2
|
-
return { provider: pm.provider, model: pm.model };
|
|
3
|
-
}
|
|
4
|
-
/**
|
|
5
|
-
* Look up a persona-model name through L3 → L2 → L1 → default → missing.
|
|
6
|
-
* Used by resolveModelForPhase for L4-name resolution and direct persona lookups.
|
|
7
|
-
*/
|
|
8
|
-
export function lookupPersonaModel(personaName, pipelineName, merged) {
|
|
9
|
-
// L3 — pipeline-level persona-models
|
|
10
|
-
const l3 = merged.pipelines?.[pipelineName]?.["persona-models"]?.[personaName];
|
|
11
|
-
if (l3)
|
|
12
|
-
return { model: toModel(l3), source: "L3" };
|
|
13
|
-
// L2 — project persona-models
|
|
14
|
-
const l2 = merged._project?.["persona-models"]?.[personaName];
|
|
15
|
-
if (l2)
|
|
16
|
-
return { model: toModel(l2), source: "L2" };
|
|
17
|
-
// L1 — global persona-models
|
|
18
|
-
const l1 = merged._global?.["persona-models"]?.[personaName];
|
|
19
|
-
if (l1)
|
|
20
|
-
return { model: toModel(l1), source: "L1" };
|
|
21
|
-
// default persona-model (same L3→L2→L1 walk with key="default")
|
|
22
|
-
if (personaName !== "default") {
|
|
23
|
-
const defL3 = merged.pipelines?.[pipelineName]?.["persona-models"]?.["default"];
|
|
24
|
-
if (defL3)
|
|
25
|
-
return { model: toModel(defL3), source: "default" };
|
|
26
|
-
const defL2 = merged._project?.["persona-models"]?.["default"];
|
|
27
|
-
if (defL2)
|
|
28
|
-
return { model: toModel(defL2), source: "default" };
|
|
29
|
-
const defL1 = merged._global?.["persona-models"]?.["default"];
|
|
30
|
-
if (defL1)
|
|
31
|
-
return { model: toModel(defL1), source: "default" };
|
|
32
|
-
}
|
|
33
|
-
return { model: undefined, source: "missing" };
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Resolve the {provider, model} pair for a specific phase invocation.
|
|
37
|
-
*
|
|
38
|
-
* Cascade order:
|
|
39
|
-
* L4-inline → L4-name → L3 → L2 → L1 → default persona-model → inherit
|
|
40
|
-
*
|
|
41
|
-
* When source is "inherit", model is undefined — caller must skip setModel.
|
|
42
|
-
*/
|
|
43
|
-
export function resolveModelForPhase(pipelineName, phaseRole, personaNoun, merged) {
|
|
44
|
-
const phase = merged.pipelines?.[pipelineName]?.phases?.[phaseRole];
|
|
45
|
-
const override = phase?.["model-override"];
|
|
46
|
-
if (override !== undefined) {
|
|
47
|
-
// L4-inline: override is an inline {provider, model} object
|
|
48
|
-
if (typeof override === "object") {
|
|
49
|
-
return { model: toModel(override), source: "L4-inline" };
|
|
50
|
-
}
|
|
51
|
-
// L4-name: override is a persona-model key string
|
|
52
|
-
const named = lookupPersonaModel(override, pipelineName, merged);
|
|
53
|
-
if (named.source !== "missing") {
|
|
54
|
-
return { model: named.model, source: "L4-name" };
|
|
55
|
-
}
|
|
56
|
-
// L4-name miss: fall through with original personaNoun
|
|
57
|
-
}
|
|
58
|
-
// L3 → L2 → L1 → default → missing
|
|
59
|
-
const lookup = lookupPersonaModel(personaNoun, pipelineName, merged);
|
|
60
|
-
if (lookup.source === "missing") {
|
|
61
|
-
return { model: undefined, source: "inherit" };
|
|
62
|
-
}
|
|
63
|
-
return { model: lookup.model, source: lookup.source };
|
|
64
|
-
}
|
|
65
|
-
//# sourceMappingURL=model-resolver.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"model-resolver.js","sourceRoot":"","sources":["../../../src/extensions/forgecli/model-resolver.ts"],"names":[],"mappings":"AAkBA,SAAS,OAAO,CAAC,EAAgB;IAChC,OAAO,EAAE,QAAQ,EAAE,EAAE,CAAC,QAAQ,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,EAAE,CAAC;AACnD,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,kBAAkB,CAAC,WAAmB,EAAE,YAAoB,EAAE,MAAoB;IACjG,qCAAqC;IACrC,MAAM,EAAE,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC,gBAAgB,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC;IAC/E,IAAI,EAAE;QAAE,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAEpD,8BAA8B;IAC9B,MAAM,EAAE,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC,gBAAgB,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC;IAC9D,IAAI,EAAE;QAAE,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAEpD,6BAA6B;IAC7B,MAAM,EAAE,GAAG,MAAM,CAAC,OAAO,EAAE,CAAC,gBAAgB,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC;IAC7D,IAAI,EAAE;QAAE,O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AAO,QAAQ,KAAK,QAAQ,EAAE,CAAC;YAClC,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC;QAC1D,CAAC;QAED,kDAAkD;QAClD,MAAM,KAAK,GAAG,kBAAkB,CAAC,QAAQ,EAAE,YAAY,EAAE,MAAM,CAAC,CAAC;QACjE,IAAI,KAAK,CAAC,MAAM,KAAK,SAAS,EAAE,CAAC;YAChC,OAAO,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;QAClD,CAAC;QACD,uDAAuD;IACxD,CAAC;IAED,mCAAmC;IACnC,MAAM,MAAM,GAAG,kBAAkB,CAAC,WAAW,EAAE,YAAY,EAAE,MAAM,CAAC,CAAC;IACrE,IAAI,MAAM,CAAC,MAAM,KAAK,SAAS,EAAE,CAAC;QACjC,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;IAChD,CAAC;IACD,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,MAAuB,EAAE,CAAC;AACxE,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { MergedConfig } from "./config-layer.js";
|
|
2
|
-
export type ValidationCode = "UNKNOWN_PERSONA" | "MODEL_UNAVAILABLE" | "UNKNOWN_PIPELINE" | "UNRESOLVABLE_OVERRIDE";
|
|
3
|
-
export interface ValidationIssue {
|
|
4
|
-
code: ValidationCode;
|
|
5
|
-
message: string;
|
|
6
|
-
/** JSON-pointer-style path to the offending config value */
|
|
7
|
-
path?: string;
|
|
8
|
-
}
|
|
9
|
-
export interface ValidationReport {
|
|
10
|
-
errors: ValidationIssue[];
|
|
11
|
-
warnings: ValidationIssue[];
|
|
12
|
-
}
|
|
13
|
-
type AvailableModel = {
|
|
14
|
-
provider: string;
|
|
15
|
-
id: string;
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* Validate the merged forge-cli model config against runtime catalogues.
|
|
19
|
-
*
|
|
20
|
-
* - strict=false: unavailability and unknown persona names are warnings.
|
|
21
|
-
* - strict=true: those warnings become errors.
|
|
22
|
-
* - Unknown pipeline names are always errors when pipelineCatalogue is non-null;
|
|
23
|
-
* warnings when pipelineCatalogue is null (no .forge/config.json found).
|
|
24
|
-
* - Unresolvable model-override strings are always errors.
|
|
25
|
-
*
|
|
26
|
-
* The function is pure — no I/O. Callers pass in the pre-built catalogues.
|
|
27
|
-
*/
|
|
28
|
-
export declare function validateModelConfig(personaCatalogue: string[], pipelineCatalogue: string[] | null, merged: MergedConfig, availableModels: AvailableModel[], strict: boolean): ValidationReport;
|
|
29
|
-
export {};
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { lookupPersonaModel } from "./model-resolver.js";
|
|
2
|
-
function isAvailable(pair, available) {
|
|
3
|
-
return available.some((m) => m.provider === pair.provider && m.id === pair.model);
|
|
4
|
-
}
|
|
5
|
-
function modelKey(pair) {
|
|
6
|
-
return `${pair.provider}:${pair.model}`;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Validate the merged forge-cli model config against runtime catalogues.
|
|
10
|
-
*
|
|
11
|
-
* - strict=false: unavailability and unknown persona names are warnings.
|
|
12
|
-
* - strict=true: those warnings become errors.
|
|
13
|
-
* - Unknown pipeline names are always errors when pipelineCatalogue is non-null;
|
|
14
|
-
* warnings when pipelineCatalogue is null (no .forge/config.json found).
|
|
15
|
-
* - Unresolvable model-override strings are always errors.
|
|
16
|
-
*
|
|
17
|
-
* The function is pure — no I/O. Callers pass in the pre-built catalogues.
|
|
18
|
-
*/
|
|
19
|
-
export function validateModelConfig(personaCatalogue, pipelineCatalogue, merged, availableModels, strict) {
|
|
20
|
-
const errors = [];
|
|
21
|
-
const warnings = [];
|
|
22
|
-
function issue(isError, code, message, path) {
|
|
23
|
-
(isError ? errors : warnings).push({ code, message, path });
|
|
24
|
-
}
|
|
25
|
-
// ── 1. Validate top-level and per-layer persona-models entries ────────────
|
|
26
|
-
const allPersonaEntries = collectPersonaEntries(merged);
|
|
27
|
-
for (const { key, value, path } of allPersonaEntries) {
|
|
28
|
-
if (key !== "default" && !personaCatalogue.includes(key)) {
|
|
29
|
-
issue(strict, "UNKNOWN_PERSONA", `Unknown persona name "${key}" — not in persona catalogue`, path);
|
|
30
|
-
}
|
|
31
|
-
if (!isAvailable(value, availableModels)) {
|
|
32
|
-
issue(strict, "MODEL_UNAVAILABLE", `${modelKey(value)} (persona "${key}") is not available in ModelRegistry`, path);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
// ── 2. Validate pipeline names + per-pipeline phases ─────────────────────
|
|
36
|
-
const pipelines = merged.pipelines ?? {};
|
|
37
|
-
for (const [pipelineName, pipelineConfig] of Object.entries(pipelines)) {
|
|
38
|
-
const pipelinePath = `pipelines.${pipelineName}`;
|
|
39
|
-
// Unknown pipeline name
|
|
40
|
-
if (pipelineCatalogue !== null && !pipelineCatalogue.includes(pipelineName)) {
|
|
41
|
-
issue(true, "UNKNOWN_PIPELINE", `Unknown pipeline name "${pipelineName}" — not in .forge/config.json`, pipelinePath);
|
|
42
|
-
}
|
|
43
|
-
else if (pipelineCatalogue === null) {
|
|
44
|
-
issue(false, "UNKNOWN_PIPELINE", `Pipeline name "${pipelineName}" could not be verified — no .forge/config.json found`, pipelinePath);
|
|
45
|
-
}
|
|
46
|
-
// Per-pipeline persona-models entries
|
|
47
|
-
const pipelinePersonaModels = pipelineConfig["persona-models"] ?? {};
|
|
48
|
-
for (const [key, value] of Object.entries(pipelinePersonaModels)) {
|
|
49
|
-
const entryPath = `${pipelinePath}.persona-models.${key}`;
|
|
50
|
-
if (key !== "default" && !personaCatalogue.includes(key)) {
|
|
51
|
-
issue(strict, "UNKNOWN_PERSONA", `Unknown persona name "${key}" in pipeline "${pipelineName}"`, entryPath);
|
|
52
|
-
}
|
|
53
|
-
if (!isAvailable(value, availableModels)) {
|
|
54
|
-
issue(strict, "MODEL_UNAVAILABLE", `${modelKey(value)} (pipeline "${pipelineName}", persona "${key}") is not available`, entryPath);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
// Per-phase model-override validation
|
|
58
|
-
const phases = pipelineConfig.phases ?? {};
|
|
59
|
-
for (const [role, phase] of Object.entries(phases)) {
|
|
60
|
-
const override = phase["model-override"];
|
|
61
|
-
if (override === undefined)
|
|
62
|
-
continue;
|
|
63
|
-
const phasePath = `${pipelinePath}.phases.${role}.model-override`;
|
|
64
|
-
if (typeof override === "string") {
|
|
65
|
-
// Named persona-model key — must resolve via the cascade
|
|
66
|
-
const resolved = lookupPersonaModel(override, pipelineName, merged);
|
|
67
|
-
if (resolved.source === "missing") {
|
|
68
|
-
issue(true, "UNRESOLVABLE_OVERRIDE", `phases.${role}.model-override "${override}" in pipeline "${pipelineName}" does not resolve to any persona-model`, phasePath);
|
|
69
|
-
}
|
|
70
|
-
else if (resolved.model && !isAvailable(resolved.model, availableModels)) {
|
|
71
|
-
issue(strict, "MODEL_UNAVAILABLE", `${modelKey(resolved.model)} (override "${override}" in pipeline "${pipelineName}", phase "${role}") is not available`, phasePath);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
else {
|
|
75
|
-
// Inline {provider, model} object — check availability only
|
|
76
|
-
if (!isAvailable(override, availableModels)) {
|
|
77
|
-
issue(strict, "MODEL_UNAVAILABLE", `${modelKey(override)} (inline override in pipeline "${pipelineName}", phase "${role}") is not available`, phasePath);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
return { errors, warnings };
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* Collect all persona-model entries across global and project layers,
|
|
86
|
-
* deduplicating by key (project wins, same as the merge in config-layer.ts).
|
|
87
|
-
* Returns one entry per unique key, with the winning layer's path annotation.
|
|
88
|
-
*/
|
|
89
|
-
function collectPersonaEntries(merged) {
|
|
90
|
-
const seen = new Map();
|
|
91
|
-
function add(key, value, layer) {
|
|
92
|
-
// project layer overwrites global layer (project wins)
|
|
93
|
-
if (!seen.has(key) || layer.startsWith("project")) {
|
|
94
|
-
seen.set(key, { key, value, path: `${layer}.persona-models.${key}` });
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
const global = merged._global?.["persona-models"] ?? {};
|
|
98
|
-
for (const [key, value] of Object.entries(global)) {
|
|
99
|
-
add(key, value, "global");
|
|
100
|
-
}
|
|
101
|
-
const project = merged._project?.["persona-models"] ?? {};
|
|
102
|
-
for (const [key, value] of Object.entries(project)) {
|
|
103
|
-
add(key, value, "project");
|
|
104
|
-
}
|
|
105
|
-
return Array.from(seen.values());
|
|
106
|
-
}
|
|
107
|
-
//# sourceMappingURL=model-validator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"model-validator.js","sourceRoot":"","sources":["../../../src/extensions/forgecli/model-validator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAkBzD,SAAS,WAAW,CAAC,IAAkB,EAAE,SAA2B;IACnE,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,IAAI,CAAC,QAAQ,IAAI,CAAC,CAAC,EAAE,KAAK,IAAI,CAAC,KAAK,CAAC,CAAC;AACnF,CAAC;AAED,SAAS,QAAQ,CAAC,IAAkB;IACnC,OAAO,GAAG,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;AACzC,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,mBAAmB,CAClC,gBAA0B,EAC1B,iBAAkC,EAClC,MAAoB,EACpB,eAAiC,EACjC,MAAe;IAEf,MAAM,MAAM,GAAsB,EAAE,CAAC;IACrC,MAAM,QAAQ,GAAsB,EAAE,CAAC;IAEvC,SAAS,KAAK,CAA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,EAAE,IAAI,EAAE,GAAG,KAAK,mBAAmB,GAAG,EAAE,EAAE,CAAC,CAAC;QACvE,CAAC;IACF,CAAC;IAED,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO,EAAE,CAAC,gBAAgB,CAAC,IAAI,EAAE,CAAC;IACxD,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;QACnD,GAAG,CAAC,GAAG,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;IAC3B,CAAC;IAED,MAAM,OAAO,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC,gBAAgB,CAAC,IAAI,EAAE,CAAC;IAC1D,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;QACpD,GAAG,CAAC,GAAG,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC;IAC5B,CAAC;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;AAClC,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { Theme } from "@earendil-works/pi-coding-agent";
|
|
2
|
-
import type { Component } from "@earendil-works/pi-tui";
|
|
3
|
-
import type { OrchestratorTree } from "./orchestrator-tree.js";
|
|
4
|
-
export declare class OrchestratorStatusBar implements Component {
|
|
5
|
-
private tree;
|
|
6
|
-
private theme;
|
|
7
|
-
private active;
|
|
8
|
-
private disposed;
|
|
9
|
-
private invalidationCb?;
|
|
10
|
-
private spinnerTimer?;
|
|
11
|
-
private spinnerIdx;
|
|
12
|
-
private onAction?;
|
|
13
|
-
private disposeFns;
|
|
14
|
-
constructor(tree: OrchestratorTree, theme: Theme);
|
|
15
|
-
setInvalidationCallback(cb: () => void): void;
|
|
16
|
-
setOnAction(cb: () => void): void;
|
|
17
|
-
setActive(active: boolean): void;
|
|
18
|
-
isActive(): boolean;
|
|
19
|
-
private ensureSpinnerTimer;
|
|
20
|
-
private stopSpinnerTimer;
|
|
21
|
-
render(width: number): string[];
|
|
22
|
-
invalidate(): void;
|
|
23
|
-
dispose(): void;
|
|
24
|
-
/** Walk depth-first to find the deepest running/cancelling leaf. */
|
|
25
|
-
private findDeepestRunningLeaf;
|
|
26
|
-
}
|
|
@@ -1,213 +0,0 @@
|
|
|
1
|
-
// orchestrator-status-bar.ts — One-line status bar for running orchestrations.
|
|
2
|
-
//
|
|
3
|
-
// Two render modes, distinguished by focus indicator:
|
|
4
|
-
//
|
|
5
|
-
// INACTIVE (outline ○ prefix — navigation hint):
|
|
6
|
-
// ○ [CART-S03-T01 · writeback:1 ⠋] "preview…" ↓ dashboard
|
|
7
|
-
//
|
|
8
|
-
// ○ signals "you can ↓ here". Colour carries status: green=completed,
|
|
9
|
-
// red=failed, accent=running, muted=other terminal.
|
|
10
|
-
//
|
|
11
|
-
// ACTIVE (filled ● prefix — focus confirmation):
|
|
12
|
-
// ● [CART-S03-T01 · writeback:1 ⠋] "preview…" ⏎ open · esc back
|
|
13
|
-
//
|
|
14
|
-
// ● signals "you're here". ↑/Esc returns focus to the prompt.
|
|
15
|
-
//
|
|
16
|
-
// Visual semantics (two dimensions on one circle):
|
|
17
|
-
// Shape: ○ = not focused, ● = focused
|
|
18
|
-
// Colour: accent=running, success=completed, error=failed, muted=terminal
|
|
19
|
-
// ⠋ spinner: shows activity (only for running/cancelling nodes)
|
|
20
|
-
//
|
|
21
|
-
// Focus lifecycle: ↓ activates → ↑/Esc deactivates → prompt gets focus.
|
|
22
|
-
// All activation/deactivation is handled by the ForgeInputRouter listener
|
|
23
|
-
// in thread-switcher.ts (not by this widget's handleInput, which is dead
|
|
24
|
-
// code for setWidget components since pi-tui routes input to the prompt
|
|
25
|
-
// editor before setWidget components).
|
|
26
|
-
//
|
|
27
|
-
// Iron Laws conformance:
|
|
28
|
-
// IL1 — All visible strings route through theme.fg()/bg()/bold(). No raw glyphs.
|
|
29
|
-
// IL7 — Spinner timer guarded by disposed flag to prevent stale callbacks.
|
|
30
|
-
import { truncateToWidth } from "@earendil-works/pi-tui";
|
|
31
|
-
import { fmtTokenMeter } from "./viewport-renderer.js";
|
|
32
|
-
// ── Braille spinner ────────────────────────────────────────────────────────
|
|
33
|
-
const SPINNER_FRAMES = ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"];
|
|
34
|
-
const SPINNER_INTERVAL_MS = 100;
|
|
35
|
-
// ── Focus indicator colour: derives the theme colour from the root's
|
|
36
|
-
// aggregate status. The shape (○/●) carries focus; the colour carries
|
|
37
|
-
// status. Both dimensions on the same circle glyph.
|
|
38
|
-
//
|
|
39
|
-
// ○ green = not focused, completed ● green = focused, completed
|
|
40
|
-
// ○ red = not focused, failed ● red = focused, failed
|
|
41
|
-
// ○ dim = not focused, terminal ● dim = focused, terminal
|
|
42
|
-
// ○ accent = not focused, running ● accent = focused, running
|
|
43
|
-
function focusIndicatorColour(roots, theme) {
|
|
44
|
-
// Derive the aggregate status from all visible roots.
|
|
45
|
-
// Running/cancelling wins over terminal; failed wins over completed.
|
|
46
|
-
const hasRunning = roots.some((r) => r.status === "running" || r.status === "cancelling");
|
|
47
|
-
if (hasRunning)
|
|
48
|
-
return "accent";
|
|
49
|
-
const hasFailed = roots.some((r) => r.status === "failed" || r.status === "escalated");
|
|
50
|
-
if (hasFailed)
|
|
51
|
-
return "error";
|
|
52
|
-
const hasCompleted = roots.some((r) => r.status === "completed");
|
|
53
|
-
if (hasCompleted)
|
|
54
|
-
return "success";
|
|
55
|
-
// Terminal but not failed/completed (cancelled, pending, etc.).
|
|
56
|
-
return "muted";
|
|
57
|
-
}
|
|
58
|
-
// ── OrchestratorStatusBar ──────────────────────────────────────────────────
|
|
59
|
-
export class OrchestratorStatusBar {
|
|
60
|
-
tree;
|
|
61
|
-
theme;
|
|
62
|
-
active = false;
|
|
63
|
-
disposed = false; // IL7: guards interval callbacks after dispose
|
|
64
|
-
invalidationCb;
|
|
65
|
-
spinnerTimer;
|
|
66
|
-
spinnerIdx = 0;
|
|
67
|
-
onAction; // callback to open dashboard
|
|
68
|
-
disposeFns = [];
|
|
69
|
-
constructor(tree, theme) {
|
|
70
|
-
this.tree = tree;
|
|
71
|
-
this.theme = theme;
|
|
72
|
-
const onChange = () => {
|
|
73
|
-
if (!this.disposed) {
|
|
74
|
-
this.ensureSpinnerTimer(); // restart spinner if roots became active
|
|
75
|
-
this.invalidationCb?.();
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
this.tree.on("change", onChange);
|
|
79
|
-
this.tree.on("tree", onChange);
|
|
80
|
-
this.tree.on("tail", onChange);
|
|
81
|
-
this.tree.on("preview", onChange);
|
|
82
|
-
this.disposeFns.push(() => { this.tree.off("change", onChange); this.tree.off("tree", onChange); this.tree.off("tail", onChange); this.tree.off("preview", onChange); });
|
|
83
|
-
}
|
|
84
|
-
setInvalidationCallback(cb) {
|
|
85
|
-
this.invalidationCb = cb;
|
|
86
|
-
this.ensureSpinnerTimer();
|
|
87
|
-
}
|
|
88
|
-
setOnAction(cb) {
|
|
89
|
-
this.onAction = cb;
|
|
90
|
-
}
|
|
91
|
-
setActive(active) {
|
|
92
|
-
this.active = active;
|
|
93
|
-
if (!this.disposed) {
|
|
94
|
-
this.ensureSpinnerTimer(); // restart spinner if needed
|
|
95
|
-
this.invalidationCb?.();
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
isActive() {
|
|
99
|
-
return this.active;
|
|
100
|
-
}
|
|
101
|
-
ensureSpinnerTimer() {
|
|
102
|
-
if (this.spinnerTimer)
|
|
103
|
-
return;
|
|
104
|
-
// Only start the timer when there are running/cancelling roots to animate.
|
|
105
|
-
const anyActive = this.tree.getActiveRoots().some((r) => r.status === "running" || r.status === "cancelling");
|
|
106
|
-
if (!anyActive)
|
|
107
|
-
return; // no spinner needed yet
|
|
108
|
-
this.spinnerTimer = setInterval(() => {
|
|
109
|
-
// IL7: guard against firing after dispose.
|
|
110
|
-
if (this.disposed) {
|
|
111
|
-
this.stopSpinnerTimer();
|
|
112
|
-
return;
|
|
113
|
-
}
|
|
114
|
-
const anyActive = this.tree.getActiveRoots().some((r) => r.status === "running" || r.status === "cancelling");
|
|
115
|
-
if (!anyActive) {
|
|
116
|
-
// One last render to settle spinner, then stop.
|
|
117
|
-
this.invalidationCb?.();
|
|
118
|
-
this.stopSpinnerTimer();
|
|
119
|
-
return;
|
|
120
|
-
}
|
|
121
|
-
this.spinnerIdx = (this.spinnerIdx + 1) % SPINNER_FRAMES.length;
|
|
122
|
-
this.invalidationCb?.();
|
|
123
|
-
}, SPINNER_INTERVAL_MS);
|
|
124
|
-
}
|
|
125
|
-
stopSpinnerTimer() {
|
|
126
|
-
if (this.spinnerTimer) {
|
|
127
|
-
clearInterval(this.spinnerTimer);
|
|
128
|
-
this.spinnerTimer = undefined;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
render(width) {
|
|
132
|
-
const roots = this.tree.getActiveRoots();
|
|
133
|
-
if (roots.length === 0)
|
|
134
|
-
return []; // Hidden when nothing is running.
|
|
135
|
-
const dim = (s) => this.theme.fg("dim", s);
|
|
136
|
-
const bold = (s) => this.theme.bold(this.theme.fg("accent", s));
|
|
137
|
-
// Build a segment for each active root.
|
|
138
|
-
const segments = [];
|
|
139
|
-
for (const root of roots) {
|
|
140
|
-
// Find the deepest running leaf or the root itself.
|
|
141
|
-
const leaf = this.findDeepestRunningLeaf(root.id);
|
|
142
|
-
const displayNode = leaf ?? root;
|
|
143
|
-
// Label: root label, with current phase as suffix if different.
|
|
144
|
-
let label = root.label;
|
|
145
|
-
if (leaf && leaf.id !== root.id) {
|
|
146
|
-
const shortRole = leaf.id.includes(":") ? leaf.id.split(":").slice(1).join(":") : leaf.label;
|
|
147
|
-
label = `${root.label} · ${shortRole}`;
|
|
148
|
-
}
|
|
149
|
-
// Usage footer (right-aligned within segment).
|
|
150
|
-
const usage = this.tree.getSubtreeUsage(root.id);
|
|
151
|
-
const meter = fmtTokenMeter(usage);
|
|
152
|
-
const meterPart = meter ? dim(` ${meter}`) : "";
|
|
153
|
-
// IL1: spinner (worm) shows activity — only for running/cancelling.
|
|
154
|
-
// Not shown for terminal states (completed, failed, etc.).
|
|
155
|
-
const spin = (displayNode.status === "running" || displayNode.status === "cancelling")
|
|
156
|
-
? ` ${this.theme.fg("accent", SPINNER_FRAMES[this.spinnerIdx])}`
|
|
157
|
-
: "";
|
|
158
|
-
// Turn preview (truncated).
|
|
159
|
-
const preview = displayNode.lastTurnPreview
|
|
160
|
-
? dim(` "${truncateToWidth(displayNode.lastTurnPreview, 60)}"`)
|
|
161
|
-
: "";
|
|
162
|
-
const segment = `${bold(`[${label}]`)}${spin}${preview}${meterPart}`;
|
|
163
|
-
segments.push(segment);
|
|
164
|
-
}
|
|
165
|
-
// Right-side hint depends on active state.
|
|
166
|
-
const hint = this.active
|
|
167
|
-
? dim(" ⏎ open · esc back")
|
|
168
|
-
: dim(" ↓ dashboard");
|
|
169
|
-
// Focus indicator: ○/● coloured by aggregate status.
|
|
170
|
-
// Shape: ○ when inactive ("↓ here"), ● when active ("you're here").
|
|
171
|
-
// Colour: accent=running, success=completed, error=failed, muted=terminal.
|
|
172
|
-
const indicatorColour = focusIndicatorColour(roots, this.theme);
|
|
173
|
-
const indicatorGlyph = this.active ? "●" : "○";
|
|
174
|
-
const prefix = this.theme.fg(indicatorColour, indicatorGlyph) + " ";
|
|
175
|
-
const joined = segments.join(dim(" │ "));
|
|
176
|
-
const line = `${prefix}${joined}${hint}`;
|
|
177
|
-
return [truncateToWidth(line, width)];
|
|
178
|
-
}
|
|
179
|
-
invalidate() {
|
|
180
|
-
// Re-render driven by external invalidationCb → tui.requestRender().
|
|
181
|
-
}
|
|
182
|
-
// Note: handleInput is dead code for setWidget("belowEditor") components —
|
|
183
|
-
// pi-tui routes input to the prompt editor, not to belowEditor widgets.
|
|
184
|
-
// All key handling (↓ focus, ↑/Esc unfocus, Enter open dashboard) is in
|
|
185
|
-
// the ForgeInputRouter listener in thread-switcher.ts.
|
|
186
|
-
// Keeping the method for Component interface conformance; it does nothing.
|
|
187
|
-
dispose() {
|
|
188
|
-
this.disposed = true; // IL7: set before clearing timer so callback sees it
|
|
189
|
-
this.stopSpinnerTimer();
|
|
190
|
-
for (const fn of this.disposeFns)
|
|
191
|
-
fn();
|
|
192
|
-
this.disposeFns = [];
|
|
193
|
-
}
|
|
194
|
-
/** Walk depth-first to find the deepest running/cancelling leaf. */
|
|
195
|
-
findDeepestRunningLeaf(id) {
|
|
196
|
-
const node = this.tree.getNode(id);
|
|
197
|
-
if (!node)
|
|
198
|
-
return undefined;
|
|
199
|
-
if (node.kind === "leaf" && (node.status === "running" || node.status === "cancelling")) {
|
|
200
|
-
return node;
|
|
201
|
-
}
|
|
202
|
-
for (const childId of node.children) {
|
|
203
|
-
const found = this.findDeepestRunningLeaf(childId);
|
|
204
|
-
if (found)
|
|
205
|
-
return found;
|
|
206
|
-
}
|
|
207
|
-
// If no running leaf, return the root if it's running.
|
|
208
|
-
if (node.status === "running" || node.status === "cancelling")
|
|
209
|
-
return node;
|
|
210
|
-
return undefined;
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
//# sourceMappingURL=orchestrator-status-bar.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrator-status-bar.js","sourceRoot":"","sources":["../../../src/extensions/forgecli/orchestrator-status-bar.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,EAAE;AACF,sDAAsD;AACtD,EAAE;AACF,mDAAmD;AACnD,+DAA+D;AAC/D,EAAE;AACF,0EAA0E;AAC1E,wDAAwD;AACxD,EAAE;AACF,mDAAmD;AACnD,qEAAqE;AACrE,EAAE;AACF,kEAAkE;AAClE,EAAE;AACF,mDAAmD;AACnD,0CAA0C;AAC1C,4EAA4E;AAC5E,kEAAkE;AAClE,EAAE;AACF,yEAAyE;AACzE,0EAA0E;AAC1E,y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