@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,182 +0,0 @@
|
|
|
1
|
-
// test-orchestrate.ts — /test-orchestrate slash command for subagent harness e2e.
|
|
2
|
-
//
|
|
3
|
-
// Spawns a forge subagent via runForgeSubagent() and delegates the user-provided
|
|
4
|
-
// prompt to it. Multi-turn allowed (subagent loops until no more tool calls).
|
|
5
|
-
// Streams live updates back to UI via setStatus + ctx.ui.notify.
|
|
6
|
-
//
|
|
7
|
-
// Usage:
|
|
8
|
-
// /test-orchestrate <prompt>
|
|
9
|
-
// /test-orchestrate @path/to/prompt-file.md
|
|
10
|
-
//
|
|
11
|
-
// Persona: inline minimal generic-assistant persona. Replace with
|
|
12
|
-
// loadForgePersona("engineer", cwd) once persona frontmatter is backfilled.
|
|
13
|
-
import * as fs from "node:fs";
|
|
14
|
-
import * as path from "node:path";
|
|
15
|
-
import { getFinalOutput, loadForgePersona, runForgeSubagent } from "./forge-subagent.js";
|
|
16
|
-
const STATUS_KEY = "test-orchestrate";
|
|
17
|
-
const GENERIC_PERSONA = {
|
|
18
|
-
name: "test-scribe",
|
|
19
|
-
description: "Generic assistant for /test-orchestrate harness",
|
|
20
|
-
systemPrompt: [
|
|
21
|
-
"You are a test subagent invoked through the Forge subagent harness.",
|
|
22
|
-
"Use the available tools (read, write, edit, bash) as needed to fulfill the user's request.",
|
|
23
|
-
"Be terse. Show evidence (file paths, command output) over narration.",
|
|
24
|
-
"If the task asks for a file, write it. If it asks for analysis, summarize in <200 words.",
|
|
25
|
-
].join(" "),
|
|
26
|
-
filePath: "<inline>",
|
|
27
|
-
};
|
|
28
|
-
function parseArgs(args, cwd) {
|
|
29
|
-
const trimmed = args.trim();
|
|
30
|
-
if (!trimmed) {
|
|
31
|
-
return { mode: "text", text: "", persona: GENERIC_PERSONA, cwd };
|
|
32
|
-
}
|
|
33
|
-
// @path/to/file → read file as task body
|
|
34
|
-
if (trimmed.startsWith("@")) {
|
|
35
|
-
const rel = trimmed.slice(1);
|
|
36
|
-
const abs = path.isAbsolute(rel) ? rel : path.resolve(cwd, rel);
|
|
37
|
-
const text = fs.readFileSync(abs, "utf-8");
|
|
38
|
-
return { mode: "file", text, persona: GENERIC_PERSONA, cwd };
|
|
39
|
-
}
|
|
40
|
-
// --persona <name> <task>
|
|
41
|
-
const personaMatch = trimmed.match(/^--persona\s+(\S+)\s+(.+)$/s);
|
|
42
|
-
if (personaMatch) {
|
|
43
|
-
const personaName = personaMatch[1];
|
|
44
|
-
const text = personaMatch[2];
|
|
45
|
-
const persona = loadForgePersona(personaName, cwd);
|
|
46
|
-
return { mode: "persona-file", text, persona, cwd };
|
|
47
|
-
}
|
|
48
|
-
return { mode: "text", text: trimmed, persona: GENERIC_PERSONA, cwd };
|
|
49
|
-
}
|
|
50
|
-
export function registerTestOrchestrate(pi) {
|
|
51
|
-
pi.registerCommand("test-orchestrate", {
|
|
52
|
-
description: "Spawn a forge subagent via the SDK harness and delegate a prompt. " +
|
|
53
|
-
"Usage: /test-orchestrate <prompt> | @<file> | --persona <name> <prompt>",
|
|
54
|
-
async handler(args, ctx) {
|
|
55
|
-
const cwd = process.cwd();
|
|
56
|
-
let parsed;
|
|
57
|
-
try {
|
|
58
|
-
parsed = parseArgs(args, cwd);
|
|
59
|
-
}
|
|
60
|
-
catch (err) {
|
|
61
|
-
const e = err;
|
|
62
|
-
ctx.ui.notify(`× /test-orchestrate — ${e.message ?? "arg parse failed"}`, "error");
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
if (!parsed.text.trim()) {
|
|
66
|
-
ctx.ui.notify("× /test-orchestrate — prompt required (usage: /test-orchestrate <prompt> | @<file> | --persona <name> <prompt>)", "error");
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
|
-
const ac = new AbortController();
|
|
70
|
-
ctx.ui.setStatus?.(STATUS_KEY, `subagent: ${parsed.persona.name} starting…`);
|
|
71
|
-
// Rolling tail of recent events for the live monitor widget.
|
|
72
|
-
const TAIL_MAX = 12;
|
|
73
|
-
const TEXT_WINDOW = 80; // chars of streaming text shown
|
|
74
|
-
const tail = [];
|
|
75
|
-
let turn = 0;
|
|
76
|
-
let lastToolName = "";
|
|
77
|
-
let textBuffer = ""; // accumulator for current message_update text_delta
|
|
78
|
-
const refreshWidget = () => {
|
|
79
|
-
const header = `▶ subagent ${parsed.persona.name} · turn ${turn}`;
|
|
80
|
-
const lines = [header, ...tail.slice(-TAIL_MAX)];
|
|
81
|
-
if (textBuffer) {
|
|
82
|
-
const tailText = textBuffer.slice(-TEXT_WINDOW).replace(/\n/g, " ⏎ ");
|
|
83
|
-
lines.push(`▌ ${tailText}`);
|
|
84
|
-
}
|
|
85
|
-
ctx.ui.setWidget?.(STATUS_KEY, lines);
|
|
86
|
-
};
|
|
87
|
-
const push = (line) => {
|
|
88
|
-
tail.push(line);
|
|
89
|
-
if (tail.length > TAIL_MAX * 2)
|
|
90
|
-
tail.splice(0, tail.length - TAIL_MAX);
|
|
91
|
-
refreshWidget();
|
|
92
|
-
};
|
|
93
|
-
try {
|
|
94
|
-
const result = await runForgeSubagent({
|
|
95
|
-
persona: parsed.persona,
|
|
96
|
-
task: parsed.text,
|
|
97
|
-
cwd,
|
|
98
|
-
signal: ac.signal,
|
|
99
|
-
modelRegistry: ctx.modelRegistry,
|
|
100
|
-
onEvent: (event) => {
|
|
101
|
-
switch (event.type) {
|
|
102
|
-
case "agent_start":
|
|
103
|
-
push("◉ agent_start");
|
|
104
|
-
break;
|
|
105
|
-
case "message_start":
|
|
106
|
-
textBuffer = "";
|
|
107
|
-
push("▸ message_start");
|
|
108
|
-
break;
|
|
109
|
-
case "message_update": {
|
|
110
|
-
const ame = event.assistantMessageEvent;
|
|
111
|
-
if (ame?.type === "text_delta" && typeof ame.delta === "string") {
|
|
112
|
-
textBuffer += ame.delta;
|
|
113
|
-
refreshWidget();
|
|
114
|
-
}
|
|
115
|
-
else if (ame?.type === "thinking_delta") {
|
|
116
|
-
push("💭 thinking…");
|
|
117
|
-
}
|
|
118
|
-
break;
|
|
119
|
-
}
|
|
120
|
-
case "tool_execution_start":
|
|
121
|
-
lastToolName = event.toolName;
|
|
122
|
-
push(`🔧 tool_call · ${lastToolName}`);
|
|
123
|
-
ctx.ui.setStatus?.(STATUS_KEY, `subagent: ${parsed.persona.name} · turn ${turn} · tool: ${lastToolName}`);
|
|
124
|
-
break;
|
|
125
|
-
case "tool_execution_update":
|
|
126
|
-
refreshWidget();
|
|
127
|
-
break;
|
|
128
|
-
case "tool_execution_end": {
|
|
129
|
-
const verdict = event.isError ? "✗" : "✓";
|
|
130
|
-
push(`${verdict} tool_end · ${lastToolName}`);
|
|
131
|
-
break;
|
|
132
|
-
}
|
|
133
|
-
case "message_end":
|
|
134
|
-
push("◼ message_end");
|
|
135
|
-
break;
|
|
136
|
-
case "turn_end": {
|
|
137
|
-
turn++;
|
|
138
|
-
const u = event.message?.usage;
|
|
139
|
-
const usageStr = u
|
|
140
|
-
? ` · ↑${u.input ?? 0} ↓${u.output ?? 0}` +
|
|
141
|
-
(u.cost?.total ? ` $${u.cost.total.toFixed(4)}` : "")
|
|
142
|
-
: "";
|
|
143
|
-
push(`── turn ${turn}${usageStr} ──`);
|
|
144
|
-
textBuffer = "";
|
|
145
|
-
break;
|
|
146
|
-
}
|
|
147
|
-
case "agent_end":
|
|
148
|
-
push("◉ agent_end");
|
|
149
|
-
break;
|
|
150
|
-
}
|
|
151
|
-
},
|
|
152
|
-
});
|
|
153
|
-
ctx.ui.setStatus?.(STATUS_KEY, undefined);
|
|
154
|
-
ctx.ui.setWidget?.(STATUS_KEY, undefined);
|
|
155
|
-
if (result.exitCode !== 0) {
|
|
156
|
-
ctx.ui.notify(`× /test-orchestrate — subagent exited ${result.exitCode}` +
|
|
157
|
-
(result.errorMessage ? `: ${result.errorMessage}` : "") +
|
|
158
|
-
(result.stopReason ? ` [${result.stopReason}]` : ""), "error");
|
|
159
|
-
return;
|
|
160
|
-
}
|
|
161
|
-
const finalOutput = getFinalOutput(result.messages);
|
|
162
|
-
const usage = result.usage;
|
|
163
|
-
const summary = [
|
|
164
|
-
`〇 /test-orchestrate — ${parsed.persona.name} done.`,
|
|
165
|
-
`Turns: ${usage.turns} ↑${usage.input} ↓${usage.output} R${usage.cacheRead} W${usage.cacheWrite} $${usage.cost.toFixed(4)}`,
|
|
166
|
-
`Model: ${result.model ?? "unknown"}`,
|
|
167
|
-
"",
|
|
168
|
-
"── Output ──",
|
|
169
|
-
finalOutput || "(no assistant text returned)",
|
|
170
|
-
].join("\n");
|
|
171
|
-
ctx.ui.notify(summary, "info");
|
|
172
|
-
}
|
|
173
|
-
catch (err) {
|
|
174
|
-
const e = err;
|
|
175
|
-
ctx.ui.setStatus?.(STATUS_KEY, undefined);
|
|
176
|
-
ctx.ui.setWidget?.(STATUS_KEY, undefined);
|
|
177
|
-
ctx.ui.notify(`× /test-orchestrate — harness error: ${e.message ?? "unknown"}`, "error");
|
|
178
|
-
}
|
|
179
|
-
},
|
|
180
|
-
});
|
|
181
|
-
}
|
|
182
|
-
//# sourceMappingURL=test-orchestrate.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test-orchestrate.js","sourceRoot":"","sources":["../../../src/extensions/forgecli/test-orchestrate.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,EAAE;AACF,iFAAiF;AACjF,8EAA8E;AAC9E,iEAAiE;AACjE,EAAE;AACF,SAAS;AACT,+BAA+B;AAC/B,8CAA8C;AAC9C,EAAE;AACF,kEAAkE;AAClE,4EAA4E;AAE5E,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAGlC,OAAO,EAAqB,cAAc,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,qBAA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U,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EACrD,OAAO,CACP,CAAC;oBACF,OAAO;gBACR,CAAC;gBAED,MAAM,WAAW,GAAG,cAAc,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;gBACpD,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;gBAC3B,MAAM,OAAO,GAAG;oBACf,yBAAyB,MAAM,CAAC,OAAO,CAAC,IAAI,QAAQ;oBACpD,UAAU,KAAK,CAAC,KAAK,MAAM,KAAK,CAAC,KAAK,MAAM,KAAK,CAAC,MAAM,MAAM,KAAK,CAAC,SAAS,MAAM,KAAK,CAAC,UAAU,MAAM,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;oBAChI,UAAU,MAAM,CAAC,KAAK,IAAI,SAAS,EAAE;oBACrC,EAAE;oBACF,cAAc;oBACd,WAAW,IAAI,8BAA8B;iBAC7C,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBAEb,GAAG,CAAC,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;YAChC,CAAC;YAAC,OAAO,GAAY,EAAE,CAAC;gBACvB,MAAM,CAAC,GAAG,GAA2B,CAAC;gBACtC,GAAG,CAAC,EAAE,CAAC,SAAS,EAAE,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;gBAC1C,GAAG,CAAC,EAAE,CAAC,SAAS,EAAE,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;gBAC1C,GAAG,CAAC,EAAE,CAAC,MAAM,CAAC,wCAAwC,CAAC,CAAC,OAAO,IAAI,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;YAC1F,CAAC;QACF,CAAC;KACD,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { ExtensionAPI, ExtensionContext } from "@earendil-works/pi-coding-agent";
|
|
2
|
-
/** Open the dashboard overlay. Shared by /forge:threads, /forge:dashboard,
|
|
3
|
-
* and the status bar Enter action. */
|
|
4
|
-
export declare function openDashboardTui(ctx: ExtensionContext): void;
|
|
5
|
-
export declare function registerThreadSwitcher(pi: ExtensionAPI): void;
|
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
// thread-switcher.ts — orchestrator status bar + dashboard overlay for forge.
|
|
2
|
-
//
|
|
3
|
-
// Two elements:
|
|
4
|
-
// 1. OrchestratorStatusBar (belowEditor widget): a one-line summary of
|
|
5
|
-
// running orchestrations — label, current phase, status glyph, spinner,
|
|
6
|
-
// turn preview, token meter. Press ↓ to open the dashboard overlay.
|
|
7
|
-
// Hidden when no orchestration is running.
|
|
8
|
-
//
|
|
9
|
-
// 2. Dashboard overlay (/forge:dashboard command or ↓ from status bar):
|
|
10
|
-
// full-screen two-panel tree browser + detail view. See dashboard/.
|
|
11
|
-
//
|
|
12
|
-
// The chip strip and TailViewComponent have been retired — the dashboard
|
|
13
|
-
// replaces them for all orchestration visualization. The main viewport
|
|
14
|
-
// stays clean for user prompts and new tasks.
|
|
15
|
-
import { getInputRouter } from "./input-router.js";
|
|
16
|
-
import { matchesKey, Key } from "@earendil-works/pi-tui";
|
|
17
|
-
import { getOrchestratorTree } from "./orchestrator-tree.js";
|
|
18
|
-
import { DashboardComponent, DashboardController } from "./dashboard/component.js";
|
|
19
|
-
import { OrchestratorStatusBar } from "./orchestrator-status-bar.js";
|
|
20
|
-
import { getSessionRegistry, } from "./session-registry.js";
|
|
21
|
-
import { fmtModelLabel, fmtTokenFooter } from "./viewport-renderer.js";
|
|
22
|
-
import { paintFooterLine } from "./viewport-theme.js";
|
|
23
|
-
const STATUS_BAR_WIDGET_KEY = "forge:orchestrator-status-bar";
|
|
24
|
-
const FOOTER_WIDGET_KEY = "forge:viewport-footer";
|
|
25
|
-
// ── Aggregate token footer ──────────────────────────────────────────────────
|
|
26
|
-
// Mirrors the per-phase footer rendered inside TailView when a subagent chip
|
|
27
|
-
// was focused. Now shown at the bottom of the main viewport whenever an
|
|
28
|
-
// orchestration is active.
|
|
29
|
-
class ViewportFooterComponent {
|
|
30
|
-
registry;
|
|
31
|
-
theme;
|
|
32
|
-
getOrchestratorModel;
|
|
33
|
-
invalidationCb;
|
|
34
|
-
constructor(registry, theme, getOrchestratorModel) {
|
|
35
|
-
this.registry = registry;
|
|
36
|
-
this.theme = theme;
|
|
37
|
-
this.getOrchestratorModel = getOrchestratorModel;
|
|
38
|
-
const onChange = () => this.invalidationCb?.();
|
|
39
|
-
registry.on("change", onChange);
|
|
40
|
-
registry.on("tail", onChange);
|
|
41
|
-
registry.on("turn", onChange);
|
|
42
|
-
this.dispose = () => {
|
|
43
|
-
registry.off("change", onChange);
|
|
44
|
-
registry.off("tail", onChange);
|
|
45
|
-
registry.off("turn", onChange);
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
render(width) {
|
|
49
|
-
const sessions = this.registry.listSessions();
|
|
50
|
-
const hasActive = sessions.some((s) => s.status === "running" || s.status === "cancelling");
|
|
51
|
-
if (!hasActive)
|
|
52
|
-
return [];
|
|
53
|
-
const tokens = fmtTokenFooter(this.registry.getAggregateUsage(), this.registry.getAggregateCompression());
|
|
54
|
-
const orchModel = fmtModelLabel(this.getOrchestratorModel?.());
|
|
55
|
-
if (!tokens && !orchModel)
|
|
56
|
-
return [];
|
|
57
|
-
const left = orchModel ? `⌂ ${orchModel}` : "";
|
|
58
|
-
const right = tokens ? `Σ ${tokens}` : "";
|
|
59
|
-
const text = left && right ? `${left} ${right}` : left || right;
|
|
60
|
-
return [paintFooterLine(text, width, this.theme)];
|
|
61
|
-
}
|
|
62
|
-
invalidate() { }
|
|
63
|
-
setInvalidationCallback(cb) {
|
|
64
|
-
this.invalidationCb = cb;
|
|
65
|
-
}
|
|
66
|
-
dispose;
|
|
67
|
-
}
|
|
68
|
-
// ── Registration ─────────────────────────────────────────────────────────────
|
|
69
|
-
function isDownArrow(data) {
|
|
70
|
-
return data === "\x1b[B" || data === "\x1bOB";
|
|
71
|
-
}
|
|
72
|
-
let statusBarRef;
|
|
73
|
-
let statusBarTui;
|
|
74
|
-
// Module-level tree reference so openDashboardTui can access the singleton
|
|
75
|
-
// without being nested inside registerThreadSwitcher.
|
|
76
|
-
let treeRef;
|
|
77
|
-
/** Open the dashboard overlay. Shared by /forge:threads, /forge:dashboard,
|
|
78
|
-
* and the status bar Enter action. */
|
|
79
|
-
export function openDashboardTui(ctx) {
|
|
80
|
-
const tree = treeRef ?? getOrchestratorTree();
|
|
81
|
-
if (!treeRef)
|
|
82
|
-
treeRef = tree;
|
|
83
|
-
const controller = new DashboardController(tree);
|
|
84
|
-
const router = getInputRouter();
|
|
85
|
-
router.pushOverlay();
|
|
86
|
-
ctx.ui.custom((tui, theme, _kb, done) => {
|
|
87
|
-
const component = new DashboardComponent(controller, tui, theme, done);
|
|
88
|
-
return component;
|
|
89
|
-
}, {
|
|
90
|
-
overlay: true,
|
|
91
|
-
overlayOptions: {
|
|
92
|
-
width: "100%",
|
|
93
|
-
anchor: "center",
|
|
94
|
-
margin: 0,
|
|
95
|
-
},
|
|
96
|
-
}).finally(() => {
|
|
97
|
-
router.popOverlay();
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
export function registerThreadSwitcher(pi) {
|
|
101
|
-
const registry = getSessionRegistry();
|
|
102
|
-
const tree = getOrchestratorTree();
|
|
103
|
-
treeRef = tree;
|
|
104
|
-
let mounted = false;
|
|
105
|
-
let currentCtx;
|
|
106
|
-
function mount(ctx) {
|
|
107
|
-
currentCtx = ctx;
|
|
108
|
-
if (mounted)
|
|
109
|
-
return;
|
|
110
|
-
// ── Orchestrator status bar (belowEditor) ────────────────────────
|
|
111
|
-
ctx.ui.setWidget(STATUS_BAR_WIDGET_KEY, (tui, theme) => {
|
|
112
|
-
statusBarTui = tui;
|
|
113
|
-
const bar = new OrchestratorStatusBar(tree, theme);
|
|
114
|
-
bar.setInvalidationCallback(() => tui.requestRender());
|
|
115
|
-
bar.setOnAction(() => {
|
|
116
|
-
// Enter on focused status bar → open dashboard.
|
|
117
|
-
const live = currentCtx;
|
|
118
|
-
if (live)
|
|
119
|
-
openDashboardTui(live);
|
|
120
|
-
});
|
|
121
|
-
statusBarRef = bar;
|
|
122
|
-
return bar;
|
|
123
|
-
}, { placement: "belowEditor" });
|
|
124
|
-
// ── Aggregate token footer (aboveEditor) ─────────────────────────
|
|
125
|
-
ctx.ui.setWidget(FOOTER_WIDGET_KEY, (tui, theme) => {
|
|
126
|
-
const getOrchestratorModel = () => {
|
|
127
|
-
try {
|
|
128
|
-
const m = ctx.model;
|
|
129
|
-
if (!m)
|
|
130
|
-
return undefined;
|
|
131
|
-
return { provider: m.provider, model: m.id };
|
|
132
|
-
}
|
|
133
|
-
catch {
|
|
134
|
-
return undefined;
|
|
135
|
-
}
|
|
136
|
-
};
|
|
137
|
-
const footer = new ViewportFooterComponent(registry, theme, getOrchestratorModel);
|
|
138
|
-
footer.setInvalidationCallback(() => tui.requestRender());
|
|
139
|
-
return footer;
|
|
140
|
-
}, { placement: "aboveEditor" });
|
|
141
|
-
// ── Input routing: ↓ focuses status bar; Enter opens dashboard ────────
|
|
142
|
-
getInputRouter().register((data) => {
|
|
143
|
-
if (!statusBarRef || !statusBarTui)
|
|
144
|
-
return undefined;
|
|
145
|
-
// Allow ↓ navigation whenever orchestration roots are visible —
|
|
146
|
-
// this includes completed/failed/escalated roots so the user
|
|
147
|
-
// can review results even after execution ends.
|
|
148
|
-
const activeRoots = tree.getActiveRoots();
|
|
149
|
-
if (activeRoots.length === 0)
|
|
150
|
-
return undefined;
|
|
151
|
-
// ↓ focuses the status bar (makes it active).
|
|
152
|
-
if (isDownArrow(data)) {
|
|
153
|
-
statusBarRef.setActive(true);
|
|
154
|
-
return { consume: true };
|
|
155
|
-
}
|
|
156
|
-
// When the status bar is focused, ↑ / Esc return focus to the prompt.
|
|
157
|
-
if (statusBarRef.isActive() && (matchesKey(data, Key.up) || matchesKey(data, Key.escape))) {
|
|
158
|
-
statusBarRef.setActive(false);
|
|
159
|
-
return { consume: true };
|
|
160
|
-
}
|
|
161
|
-
// When the status bar is focused, Enter opens the dashboard.
|
|
162
|
-
if (statusBarRef.isActive() && matchesKey(data, Key.enter)) {
|
|
163
|
-
statusBarRef.setActive(false);
|
|
164
|
-
const live = currentCtx;
|
|
165
|
-
if (live)
|
|
166
|
-
openDashboardTui(live);
|
|
167
|
-
return { consume: true };
|
|
168
|
-
}
|
|
169
|
-
return undefined;
|
|
170
|
-
}, { name: "orchestrator-status-bar", skipWhenOverlayActive: true });
|
|
171
|
-
mounted = true;
|
|
172
|
-
}
|
|
173
|
-
pi.registerCommand("forge:threads", {
|
|
174
|
-
description: "Open the Forge orchestrator dashboard. " +
|
|
175
|
-
"Shows a two-panel view of sprint/task/phase tree with status, " +
|
|
176
|
-
"metrics, and live activity. You can also press ↓ from the prompt " +
|
|
177
|
-
"when an orchestration is running.",
|
|
178
|
-
async handler(_args, ctx) {
|
|
179
|
-
mount(ctx);
|
|
180
|
-
openDashboardTui(ctx);
|
|
181
|
-
},
|
|
182
|
-
});
|
|
183
|
-
// Mount at session_start so the status bar + ↓ listener are live from
|
|
184
|
-
// the first keystroke. mount() is idempotent.
|
|
185
|
-
pi.on("session_start", async (_event, ctx) => {
|
|
186
|
-
mount(ctx);
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
//# sourceMappingURL=thread-switcher.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"thread-switcher.js","sourceRoot":"","sources":["../../../src/extensions/forgecli/thread-switcher.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,EAAE;AACF,gBAAgB;AAChB,yEAAyE;AACzE,6EAA6E;AAC7E,yEAAyE;AACzE,gDAAgD;AAChD,EAAE;AACF,0EAA0E;AAC1E,yEAAyE;AACzE,EAAE;AACF,yEAAyE;AACzE,uEAAuE;AACvE,8CAA8C;AAK9C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,UAAU,E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EACD,EAAE,IAAI,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,IAAI,EAAE,CAChE,CAAC;QAEF,OAAO,GAAG,IAAI,CAAC;IAChB,CAAC;IAED,EAAE,CAAC,eAAe,CAAC,eAAe,EAAE;QACnC,WAAW,EACV,yCAAyC;YACzC,gEAAgE;YAChE,mEAAmE;YACnE,mCAAmC;QACpC,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG;YACvB,KAAK,CAAC,GAAG,CAAC,CAAC;YACX,gBAAgB,CAAC,GAAG,CAAC,CAAC;QACvB,CAAC;KACD,CAAC,CAAC;IAEH,sEAAsE;IACtE,8CAA8C;IAC9C,EAAE,CAAC,EAAE,CAAC,eAAe,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE;QAC5C,KAAK,CAAC,GAAG,CAAC,CAAC;IACZ,CAAC,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export interface TransitionGuardResult {
|
|
2
|
-
allowed: boolean;
|
|
3
|
-
reason: string;
|
|
4
|
-
}
|
|
5
|
-
export interface TransitionGuardInput {
|
|
6
|
-
entity: string;
|
|
7
|
-
entityId: string;
|
|
8
|
-
toStatus: string;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Check whether a status transition is legal.
|
|
12
|
-
*
|
|
13
|
-
* Fail-open: if the current status cannot be read, returns
|
|
14
|
-
* `{ allowed: true, reason: "lookup-failed" }`. The caller
|
|
15
|
-
* should audit-log this outcome but MUST NOT block the operation.
|
|
16
|
-
*
|
|
17
|
-
* @param input Entity, entity ID, and target status.
|
|
18
|
-
* @param forgeRoot Absolute path to the Forge plugin root.
|
|
19
|
-
*/
|
|
20
|
-
export declare function checkTransition(input: TransitionGuardInput, forgeRoot: string): TransitionGuardResult;
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
// Status-transition guard — FORGE-S18-T03
|
|
2
|
-
//
|
|
3
|
-
// Checks whether a proposed status transition is legal for a given entity.
|
|
4
|
-
//
|
|
5
|
-
// The guard reads the current status from disk via `store-cli read` (spawnSync).
|
|
6
|
-
// Fail-open: if the current-status lookup fails for any reason, the guard returns
|
|
7
|
-
// { allowed: true } and sets reason="lookup-failed". The caller (hook-dispatcher)
|
|
8
|
-
// logs this as "lookup-failed" under FORGE_HOOK_AUDIT=1 but never blocks the
|
|
9
|
-
// operation — a lookup failure must not block a valid operation.
|
|
10
|
-
//
|
|
11
|
-
// FORGE-S25-T17: spawnSync replaced with spawnStoreCliRead from lib/spawn-store-cli.ts.
|
|
12
|
-
// FORGE-S25-T27: inline TASK/SPRINT/BUG_TRANSITIONS tables replaced with catalog-loader
|
|
13
|
-
// constants derived from T26 enum-catalog.json + transitions/*.json. Tables now match
|
|
14
|
-
// the T25 ADR-canonical FSM (doc/decisions/state-machine-reconciliation.md):
|
|
15
|
-
// - terminal states (committed, blocked, escalated, abandoned) are truly terminal (Set [])
|
|
16
|
-
// - plan-revision-required and code-revision-required reachable from more states
|
|
17
|
-
// Closes finding N-E-2 (forge-cli side), round-2-validation.md findings 36, 40.
|
|
18
|
-
import * as path from "node:path";
|
|
19
|
-
import { BUG_TRANSITIONS, SPRINT_TRANSITIONS, TASK_TRANSITIONS } from "./lib/catalog-loader.js";
|
|
20
|
-
import { spawnStoreCliRead } from "./lib/spawn-store-cli.js";
|
|
21
|
-
// ── Legal transition tables ───────────────────────────────────────────────────
|
|
22
|
-
//
|
|
23
|
-
// Loaded from enum-catalog.json / transitions/*.json (T25 ADR-canonical).
|
|
24
|
-
// Source: build-enum-catalog.cjs (FORGE-S25-T26) → bundled by build-payload.cjs (FORGE-S25-T27).
|
|
25
|
-
// Do NOT inline transition tables here — edit forge/forge/tools/build-enum-catalog.cjs instead.
|
|
26
|
-
const ENTITY_TABLES = {
|
|
27
|
-
task: TASK_TRANSITIONS,
|
|
28
|
-
sprint: SPRINT_TRANSITIONS,
|
|
29
|
-
bug: BUG_TRANSITIONS,
|
|
30
|
-
};
|
|
31
|
-
function legalNextStates(entity, fromStatus) {
|
|
32
|
-
const table = ENTITY_TABLES[entity];
|
|
33
|
-
if (!table)
|
|
34
|
-
return [];
|
|
35
|
-
const allowed = table[fromStatus];
|
|
36
|
-
return allowed ? [...allowed] : [];
|
|
37
|
-
}
|
|
38
|
-
// ── Current-status lookup (fail-open) ────────────────────────────────────────
|
|
39
|
-
/**
|
|
40
|
-
* Read the current status of an entity from the store via `store-cli read`.
|
|
41
|
-
* Returns the status string on success, or null on any failure (fail-open).
|
|
42
|
-
*/
|
|
43
|
-
function readCurrentStatus(entity, entityId, forgeRoot) {
|
|
44
|
-
const storeCliPath = path.join(forgeRoot, "tools", "store-cli.cjs");
|
|
45
|
-
// Use the shared wrapper from lib/spawn-store-cli.ts (FORGE-S25-T17).
|
|
46
|
-
// Fail-open: spawnStoreCliRead returns null on any error — matches prior behaviour.
|
|
47
|
-
const record = spawnStoreCliRead(storeCliPath, entity, entityId, forgeRoot);
|
|
48
|
-
if (record === null)
|
|
49
|
-
return null;
|
|
50
|
-
const status = record["status"];
|
|
51
|
-
return typeof status === "string" ? status : null;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Check whether a status transition is legal.
|
|
55
|
-
*
|
|
56
|
-
* Fail-open: if the current status cannot be read, returns
|
|
57
|
-
* `{ allowed: true, reason: "lookup-failed" }`. The caller
|
|
58
|
-
* should audit-log this outcome but MUST NOT block the operation.
|
|
59
|
-
*
|
|
60
|
-
* @param input Entity, entity ID, and target status.
|
|
61
|
-
* @param forgeRoot Absolute path to the Forge plugin root.
|
|
62
|
-
*/
|
|
63
|
-
export function checkTransition(input, forgeRoot) {
|
|
64
|
-
const { entity, entityId, toStatus } = input;
|
|
65
|
-
// Lookup current status — fail-open on any error.
|
|
66
|
-
const fromStatus = readCurrentStatus(entity, entityId, forgeRoot);
|
|
67
|
-
if (fromStatus === null) {
|
|
68
|
-
return {
|
|
69
|
-
allowed: true,
|
|
70
|
-
reason: "lookup-failed",
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
const table = ENTITY_TABLES[entity];
|
|
74
|
-
if (!table) {
|
|
75
|
-
// Unknown entity type — allow through (future-proofing).
|
|
76
|
-
return { allowed: true, reason: "" };
|
|
77
|
-
}
|
|
78
|
-
const allowed = table[fromStatus]?.has(toStatus) ?? false;
|
|
79
|
-
if (allowed) {
|
|
80
|
-
return { allowed: true, reason: "" };
|
|
81
|
-
}
|
|
82
|
-
const legal = legalNextStates(entity, fromStatus);
|
|
83
|
-
const legalStr = legal.length > 0 ? legal.join(", ") : "(none)";
|
|
84
|
-
return {
|
|
85
|
-
allowed: false,
|
|
86
|
-
reason: `${fromStatus} → ${toStatus} is not a legal transition for ${entity}. Legal next states from ${fromStatus}: ${legalStr}.`,
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
//# sourceMappingURL=transition-guard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transition-guard.js","sourceRoot":"","sources":["../../../src/extensions/forgecli/transition-guard.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,EAAE;AACF,2EAA2E;AAC3E,EAAE;AACF,iFAAiF;AACjF,kFAAkF;AAClF,kFAAkF;AAClF,6EAA6E;AAC7E,iEAAiE;AACjE,EAAE;AACF,wFAAwF;AACxF,wFAAwF;AACxF,wFAAwF;AACxF,+EAA+E;AAC/E,+FAA+F;AAC/F,qFAAqF;AACrF,kFAAkF;AAElF,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChG,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAO7D,iFAAiF;AACjF,EAAE;AACF,0EAA0E;AAC1E,iGAAiG;AACjG,gGAAgG;AAEhG,MAAM,aAAa,GAAgD;IAClE,IAAI,EAAE,gBAAgB;IACtB,MAAM,EAAE,kBAAkB;IA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AK,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC;IACpC,IAAI,CAAC,KAAK,EAAE,CAAC;QACZ,yDAAyD;QACzD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;IACtC,CAAC;IAED,MAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CAAC,EAAE,GAAG,CAAC,QAAQ,CAAC,IAAI,KAAK,CAAC;IAC1D,IAAI,OAAO,EAAE,CAAC;QACb,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;IACtC,CAAC;IAED,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAClD,MAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC;IAChE,OAAO;QACN,OAAO,EAAE,KAAK;QACd,MAAM,EAAE,GAAG,UAAU,MAAM,QAAQ,kCAAkC,MAAM,4BAA4B,UAAU,KAAK,QAAQ,GAAG;KACjI,CAAC;AACH,CAAC"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export declare const CACHE_TTL_MS: number;
|
|
2
|
-
export interface UpdateCheckOptions {
|
|
3
|
-
notify(message: string, level: "info" | "warning" | "error"): void;
|
|
4
|
-
currentCliVersion: string;
|
|
5
|
-
currentBundledForgeVersion: string;
|
|
6
|
-
now?: () => number;
|
|
7
|
-
fetchImpl?: typeof fetch;
|
|
8
|
-
cacheDir?: string;
|
|
9
|
-
}
|
|
10
|
-
export interface UpdateBannerCache {
|
|
11
|
-
lastProbeAt: number;
|
|
12
|
-
latestNpmVersion: string | null;
|
|
13
|
-
latestForgeVersion: string | null;
|
|
14
|
-
dismissedNpmVersions: string[];
|
|
15
|
-
dismissedForgeVersions: string[];
|
|
16
|
-
}
|
|
17
|
-
declare function cachePath(cacheDir: string): string;
|
|
18
|
-
declare function readCache(cacheDir: string): Promise<UpdateBannerCache | null>;
|
|
19
|
-
declare function writeCache(cacheDir: string, cache: UpdateBannerCache): Promise<void>;
|
|
20
|
-
declare function semverGt(a: string, b: string): boolean;
|
|
21
|
-
declare function composeBanner(npm: {
|
|
22
|
-
current: string;
|
|
23
|
-
latest: string;
|
|
24
|
-
} | null, forge: {
|
|
25
|
-
current: string;
|
|
26
|
-
latest: string;
|
|
27
|
-
} | null): string | null;
|
|
28
|
-
export declare function triggerUpdateCheck(opts: UpdateCheckOptions): Promise<void>;
|
|
29
|
-
export declare const __test__: {
|
|
30
|
-
CACHE_TTL_MS: number;
|
|
31
|
-
cachePath: typeof cachePath;
|
|
32
|
-
readCache: typeof readCache;
|
|
33
|
-
writeCache: typeof writeCache;
|
|
34
|
-
semverGt: typeof semverGt;
|
|
35
|
-
composeBanner: typeof composeBanner;
|
|
36
|
-
};
|
|
37
|
-
export {};
|