@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,243 +0,0 @@
|
|
|
1
|
-
// viewport-events.ts
|
|
2
|
-
//
|
|
3
|
-
// Reusable subagent event observer. Wires `runForgeSubagent.onEvent` to:
|
|
4
|
-
// 1. Append per-event tail lines (with tree connectors, glyphs, risky tag,
|
|
5
|
-
// thinking one-liners, batch markers) into SessionRegistry.
|
|
6
|
-
// 2. Maintain cumulative phase token usage and push it to the registry on
|
|
7
|
-
// every turn_end — drives the sticky footer in the tail view AND the
|
|
8
|
-
// aggregate Σ meter in the chip strip.
|
|
9
|
-
// 3. Surface counts (turn / tools / errors) so the orchestrator can render
|
|
10
|
-
// its end-of-phase summary.
|
|
11
|
-
//
|
|
12
|
-
// Used by run-task, fix-bug, and run-sprint (ceremony) so every subagent
|
|
13
|
-
// "bubbles" usage up the same way. Top-level viewports read aggregate usage
|
|
14
|
-
// via SessionRegistry.getAggregateUsage().
|
|
15
|
-
import { getOrchestratorTree } from "./orchestrator-tree.js";
|
|
16
|
-
import { extractThinkingOneLiner, extractTurnPreview, argHint as fmtArgHint, RISKY_TAG, readUsage, resultShape, toolGlyph, } from "./viewport-renderer.js";
|
|
17
|
-
function extractCompression(result) {
|
|
18
|
-
if (!result || typeof result !== "object")
|
|
19
|
-
return undefined;
|
|
20
|
-
const r = result;
|
|
21
|
-
const c = r.details?.compression;
|
|
22
|
-
if (!c || typeof c.before !== "number" || typeof c.after !== "number")
|
|
23
|
-
return undefined;
|
|
24
|
-
return { tool: c.tool ?? "", before: c.before, after: c.after, saved: c.saved ?? 0 };
|
|
25
|
-
}
|
|
26
|
-
export function attachViewportObserver(opts) {
|
|
27
|
-
const { registry, sessionId, phaseRole, displayRole, beginHeader, writeDebug, setStatusVerbose, notify, verboseKeys, afterEach, } = opts;
|
|
28
|
-
const role = displayRole ?? phaseRole;
|
|
29
|
-
const tree = getOrchestratorTree();
|
|
30
|
-
// Helper to resolve the correct active node ID in the OrchestratorTree.
|
|
31
|
-
const resolveNodeId = () => {
|
|
32
|
-
const exactId = `${sessionId}:${phaseRole}`;
|
|
33
|
-
const exactNode = tree.getNode(exactId);
|
|
34
|
-
if (exactNode && exactNode.status === "running")
|
|
35
|
-
return exactId;
|
|
36
|
-
const parentNode = tree.getNode(sessionId);
|
|
37
|
-
if (parentNode) {
|
|
38
|
-
const prefix = `${sessionId}:${phaseRole}:`;
|
|
39
|
-
for (const cid of parentNode.children) {
|
|
40
|
-
if (cid.startsWith(prefix)) {
|
|
41
|
-
const child = tree.getNode(cid);
|
|
42
|
-
if (child && child.status === "running") {
|
|
43
|
-
return cid;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
return exactId;
|
|
49
|
-
};
|
|
50
|
-
const state = {
|
|
51
|
-
turn: 0,
|
|
52
|
-
toolCount: 0,
|
|
53
|
-
errCount: 0,
|
|
54
|
-
lastTool: "",
|
|
55
|
-
cumUsage: { input: 0, output: 0, cacheRead: 0 },
|
|
56
|
-
cumCompression: { calls: 0, tokensSaved: 0 },
|
|
57
|
-
};
|
|
58
|
-
// Per-turn tree-connector state.
|
|
59
|
-
let toolsThisTurn = 0;
|
|
60
|
-
let firstLineOfTurn = true;
|
|
61
|
-
let currentTurnPrefixWidth = 0;
|
|
62
|
-
const argsByCallId = new Map();
|
|
63
|
-
const formatTime = (ms) => {
|
|
64
|
-
const d = new Date(ms);
|
|
65
|
-
const pad = (n) => String(n).padStart(2, "0");
|
|
66
|
-
return `${pad(d.getHours())}:${pad(d.getMinutes())}:${pad(d.getSeconds())}`;
|
|
67
|
-
};
|
|
68
|
-
const tailPrefix = () => `[${role} ${formatTime(Date.now())} t${state.turn}]`;
|
|
69
|
-
const appendTail = (line, opts) => {
|
|
70
|
-
registry.appendTail(sessionId, phaseRole, line, opts);
|
|
71
|
-
tree.appendTail(resolveNodeId(), line, opts);
|
|
72
|
-
};
|
|
73
|
-
const extractErrorSummary = (result) => {
|
|
74
|
-
const raw = typeof result === "string"
|
|
75
|
-
? result
|
|
76
|
-
: typeof result === "object" && result !== null
|
|
77
|
-
? JSON.stringify(result)
|
|
78
|
-
: String(result);
|
|
79
|
-
const firstLine = raw.split(/\r?\n/).find((l) => l.trim().length > 0) ?? raw;
|
|
80
|
-
return firstLine.length > 160 ? `${firstLine.slice(0, 160)}…` : firstLine;
|
|
81
|
-
};
|
|
82
|
-
const emitTurnLine = (body, lineOpts) => {
|
|
83
|
-
const isFirst = firstLineOfTurn;
|
|
84
|
-
const isClosing = lineOpts?.closing === true;
|
|
85
|
-
let branch;
|
|
86
|
-
if (isFirst && isClosing)
|
|
87
|
-
branch = "─";
|
|
88
|
-
else if (isFirst)
|
|
89
|
-
branch = "╭";
|
|
90
|
-
else if (isClosing)
|
|
91
|
-
branch = "╰";
|
|
92
|
-
else
|
|
93
|
-
branch = "│";
|
|
94
|
-
let prefix;
|
|
95
|
-
if (isFirst) {
|
|
96
|
-
prefix = tailPrefix();
|
|
97
|
-
currentTurnPrefixWidth = prefix.length;
|
|
98
|
-
}
|
|
99
|
-
else {
|
|
100
|
-
prefix = " ".repeat(currentTurnPrefixWidth);
|
|
101
|
-
}
|
|
102
|
-
firstLineOfTurn = false;
|
|
103
|
-
appendTail(`${prefix} ${branch} ${body}`, lineOpts?.warning ? { warning: true } : undefined);
|
|
104
|
-
};
|
|
105
|
-
if (beginHeader)
|
|
106
|
-
appendTail(`${tailPrefix()} ${beginHeader}`);
|
|
107
|
-
const onEvent = (event) => {
|
|
108
|
-
switch (event.type) {
|
|
109
|
-
case "turn_start": {
|
|
110
|
-
state.turn++;
|
|
111
|
-
state.lastTool = "";
|
|
112
|
-
toolsThisTurn = 0;
|
|
113
|
-
firstLineOfTurn = true;
|
|
114
|
-
registry.bumpTurn(sessionId);
|
|
115
|
-
tree.bumpNodeTurn(resolveNodeId());
|
|
116
|
-
break;
|
|
117
|
-
}
|
|
118
|
-
case "turn_end": {
|
|
119
|
-
const e = event;
|
|
120
|
-
const delta = readUsage(e.message);
|
|
121
|
-
state.cumUsage.input += delta.input;
|
|
122
|
-
state.cumUsage.output += delta.output;
|
|
123
|
-
state.cumUsage.cacheRead += delta.cacheRead;
|
|
124
|
-
registry.setPhaseUsage(sessionId, phaseRole, state.cumUsage);
|
|
125
|
-
const nodeId = resolveNodeId();
|
|
126
|
-
tree.setNodeUsage(nodeId, state.cumUsage);
|
|
127
|
-
// Capture which (provider, model) actually served this turn so
|
|
128
|
-
// the per-phase tail-view footer can display it. Cheap; the
|
|
129
|
-
// registry no-ops when the value hasn't changed.
|
|
130
|
-
const msg = e.message;
|
|
131
|
-
if (msg && (msg.provider || msg.model)) {
|
|
132
|
-
registry.setPhaseModel(sessionId, phaseRole, {
|
|
133
|
-
provider: msg.provider,
|
|
134
|
-
model: msg.model,
|
|
135
|
-
});
|
|
136
|
-
tree.setNodeModel(nodeId, msg.model ?? "", msg.provider ?? "");
|
|
137
|
-
}
|
|
138
|
-
const closingBodies = [];
|
|
139
|
-
const thinking = extractThinkingOneLiner(e.message);
|
|
140
|
-
if (thinking)
|
|
141
|
-
closingBodies.push(`✱ ${thinking}`);
|
|
142
|
-
const preview = extractTurnPreview(e.message);
|
|
143
|
-
if (preview) {
|
|
144
|
-
registry.setTurnPreview(sessionId, preview);
|
|
145
|
-
tree.setTurnPreview(nodeId, preview);
|
|
146
|
-
if (setStatusVerbose && verboseKeys?.messageKey) {
|
|
147
|
-
setStatusVerbose(verboseKeys.messageKey, ` "${preview}"`);
|
|
148
|
-
}
|
|
149
|
-
closingBodies.push(`» "${preview}"`);
|
|
150
|
-
}
|
|
151
|
-
if (toolsThisTurn > 1) {
|
|
152
|
-
closingBodies.push(`⇉ batched ${toolsThisTurn} tool calls in turn ${state.turn}`);
|
|
153
|
-
}
|
|
154
|
-
for (let i = 0; i < closingBodies.length; i++) {
|
|
155
|
-
const isLast = i === closingBodies.length - 1;
|
|
156
|
-
emitTurnLine(closingBodies[i], { closing: isLast });
|
|
157
|
-
}
|
|
158
|
-
// Bubble one consolidated event up to the registry so the
|
|
159
|
-
// top-level viewport can surface activity from any subagent
|
|
160
|
-
// with subagent-identified attribution.
|
|
161
|
-
registry.recordTurnEvent({
|
|
162
|
-
sessionId,
|
|
163
|
-
phaseRole,
|
|
164
|
-
displayRole: role,
|
|
165
|
-
turn: state.turn,
|
|
166
|
-
preview: preview ?? "",
|
|
167
|
-
thinking: thinking ?? "",
|
|
168
|
-
deltaUsage: { ...delta },
|
|
169
|
-
cumUsage: { ...state.cumUsage },
|
|
170
|
-
timestamp: Date.now(),
|
|
171
|
-
});
|
|
172
|
-
break;
|
|
173
|
-
}
|
|
174
|
-
case "tool_execution_start": {
|
|
175
|
-
const e = event;
|
|
176
|
-
state.toolCount++;
|
|
177
|
-
toolsThisTurn++;
|
|
178
|
-
argsByCallId.set(e.toolCallId, e.args);
|
|
179
|
-
const hint = fmtArgHint(e.toolName, e.args);
|
|
180
|
-
const { glyph, risky } = toolGlyph(e.toolName, e.args);
|
|
181
|
-
state.lastTool = `${e.toolName}${hint ? ` ${hint}` : ""}`;
|
|
182
|
-
writeDebug?.({
|
|
183
|
-
kind: "tool_start",
|
|
184
|
-
toolName: e.toolName,
|
|
185
|
-
toolCallId: e.toolCallId,
|
|
186
|
-
args: e.args,
|
|
187
|
-
});
|
|
188
|
-
registry.recordToolStart(sessionId, e.toolCallId, e.toolName, e.args);
|
|
189
|
-
tree.incrementNodeToolCount(resolveNodeId());
|
|
190
|
-
const riskPrefix = risky ? `${RISKY_TAG} ` : "";
|
|
191
|
-
emitTurnLine(`${riskPrefix}${glyph} ${e.toolName}${hint ? ` ${hint}` : ""}`, risky ? { warning: true } : undefined);
|
|
192
|
-
break;
|
|
193
|
-
}
|
|
194
|
-
case "tool_execution_end": {
|
|
195
|
-
const e = event;
|
|
196
|
-
argsByCallId.delete(e.toolCallId);
|
|
197
|
-
writeDebug?.({
|
|
198
|
-
kind: "tool_end",
|
|
199
|
-
toolName: e.toolName,
|
|
200
|
-
toolCallId: e.toolCallId,
|
|
201
|
-
isError: e.isError,
|
|
202
|
-
result: e.result,
|
|
203
|
-
});
|
|
204
|
-
registry.recordToolEnd(sessionId, e.toolCallId, e.toolName, e.isError, e.result);
|
|
205
|
-
const nodeId = resolveNodeId();
|
|
206
|
-
if (e.isError) {
|
|
207
|
-
state.errCount++;
|
|
208
|
-
tree.incrementNodeErrCount(nodeId);
|
|
209
|
-
emitTurnLine(`⚠ ${e.toolName} failed: ${extractErrorSummary(e.result)}`, { warning: true });
|
|
210
|
-
}
|
|
211
|
-
else {
|
|
212
|
-
const shape = resultShape(e.toolName, e.result);
|
|
213
|
-
const comp = extractCompression(e.result);
|
|
214
|
-
const compHint = comp ? ` ⇌${comp.saved}%` : "";
|
|
215
|
-
emitTurnLine(`← ${e.toolName} ok${shape ? ` ${shape}` : ""}${compHint}`);
|
|
216
|
-
if (comp) {
|
|
217
|
-
state.cumCompression.calls++;
|
|
218
|
-
state.cumCompression.tokensSaved += comp.before - comp.after;
|
|
219
|
-
registry.setPhaseCompression(sessionId, phaseRole, state.cumCompression);
|
|
220
|
-
tree.setNodeCompression(nodeId, state.cumCompression);
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
break;
|
|
224
|
-
}
|
|
225
|
-
case "compaction_start": {
|
|
226
|
-
const e = event;
|
|
227
|
-
notify?.(`◌ ${role}: context compacting (${e.reason})…`, "info");
|
|
228
|
-
appendTail(`${tailPrefix()} ◌ compacting (${e.reason})`);
|
|
229
|
-
break;
|
|
230
|
-
}
|
|
231
|
-
case "auto_retry_start": {
|
|
232
|
-
const e = event;
|
|
233
|
-
const err = e.errorMessage ?? "";
|
|
234
|
-
notify?.(`↻ ${role}: model retry ${e.attempt}/${e.maxAttempts}${err ? `\n${err}` : ""}`, "warning");
|
|
235
|
-
appendTail(`${tailPrefix()} ↻ retry ${e.attempt}/${e.maxAttempts}${err ? `: ${extractErrorSummary(err)}` : ""}`, { warning: true });
|
|
236
|
-
break;
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
afterEach?.();
|
|
240
|
-
};
|
|
241
|
-
return { onEvent, state };
|
|
242
|
-
}
|
|
243
|
-
//# sourceMappingURL=viewport-events.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"viewport-events.js","sourceRoot":"","sources":["../../../src/extensions/forgecli/viewport-events.ts"],"names":[],"mappings":"AAAA,qBAAqB;AACrB,EAAE;AACF,yEAAyE;AACzE,6EAA6E;AAC7E,iEAAiE;AACjE,4EAA4E;AAC5E,0EAA0E;AAC1E,4CAA4C;AAC5C,6EAA6E;AAC7E,iCAAiC;AACjC,EAAE;AACF,yEAAyE;AACzE,4EAA4E;AAC5E,2CAA2C;AAG3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EACN,uBAAuB,EACvB,kBAAkB,EAClB,OAAO,IAAI,UAAU,EACrB,SAAS,EACT,SAAS,EACT,WAAW,EACX,SAAS,GAET,MAAM,wBAAwB,CAAC;AAchC,SAAS,kBAAkB,CAAC,MAAe;IAC1C,IAAI,CAAC,MAAM,IAAI,OAAO,MAAM,KAAK,QAAQ;QAAE,OAAO,SAAS,CAAC;IAC5D,MAAM,CAAC,GAAG,MAA4G,CAAC;IACvH,MAAM,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,WAAW,CAAC;IACjC,IAAI,CAAC,CAAC,IAAI,OAAO,CAAC,CAAC,MAAM,KAAK,QAAQ,IAAI,OAAO,CAAC,CAAC,KAAK,KAAK,QAAQ;QAAE,OAAO,SAAS,CAAC;IACxF,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,IAAI,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,EAA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BACvD,CAAC;gBACF,CAAC;gBACD,MAAM;YACP,CAAC;YACD,KAAK,kBAAkB,CAAC,CAAC,CAAC;gBACzB,MAAM,CAAC,GAAG,KAA2B,CAAC;gBACtC,MAAM,EAAE,CAAC,KAAK,IAAI,yBAAyB,CAAC,CAAC,MAAM,IAAI,EAAE,MAAM,CAAC,CAAC;gBACjE,UAAU,CAAC,GAAG,UAAU,EAAE,kBAAkB,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;gBACzD,MAAM;YACP,CAAC;YACD,KAAK,kBAAkB,CAAC,CAAC,CAAC;gBACzB,MAAM,CAAC,GAAG,KAAwE,CAAC;gBACnF,MAAM,GAAG,GAAG,CAAC,CAAC,YAAY,IAAI,EAAE,CAAC;gBACjC,MAAM,EAAE,CAAC,KAAK,IAAI,iBAAiB,CAAC,CAAC,OAAO,IAAI,CAAC,CAAC,WAAW,GAAG,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,SAAS,CAAC,CAAC;gBACpG,UAAU,CACT,GAAG,UAAU,EAAE,YAAY,CAAC,CAAC,OAAO,IAAI,CAAC,CAAC,WAAW,GAAG,GAAG,CAAC,CAAC,CAAC,KAAK,mBAAmB,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,EACpG,EAAE,OAAO,EAAE,IAAI,EAAE,CACjB,CAAC;gBACF,MAAM;YACP,CAAC;QACF,CAAC;QACD,SAAS,EAAE,EAAE,CAAC;IACf,CAAC,CAAC;IAEF,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;AAC3B,CAAC"}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import type { AgentMessage } from "@earendil-works/pi-agent-core";
|
|
2
|
-
export declare const RISKY_TAG = "\uD83D\uDD12";
|
|
3
|
-
export interface GlyphInfo {
|
|
4
|
-
glyph: string;
|
|
5
|
-
risky: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare function toolGlyph(toolName: string, args: unknown): GlyphInfo;
|
|
8
|
-
export declare function argHint(toolName: string, args: unknown, maxLen?: number): string;
|
|
9
|
-
/**
|
|
10
|
-
* Truncate at a whitespace boundary when possible so we don't slice mid-token
|
|
11
|
-
* (e.g. `FORGE_ROOT=$(node -e` cut at the open paren). Appends `…(+Nc)` so the
|
|
12
|
-
* user knows there's more.
|
|
13
|
-
*/
|
|
14
|
-
export declare function truncateAtBoundary(s: string, max: number): string;
|
|
15
|
-
/**
|
|
16
|
-
* Extract a small "shape" hint from a tool result so users see `read ok 247L`
|
|
17
|
-
* instead of `read ok`. Defensive: result shapes vary across tools and providers.
|
|
18
|
-
*/
|
|
19
|
-
export declare function resultShape(_toolName: string, result: unknown): string;
|
|
20
|
-
/**
|
|
21
|
-
* Pull the first sentence (or first 100 chars) from any `thinking` block on an
|
|
22
|
-
* assistant message. Returns `undefined` if no thinking content present.
|
|
23
|
-
*/
|
|
24
|
-
export declare function extractThinkingOneLiner(message: AgentMessage | undefined): string | undefined;
|
|
25
|
-
export interface UsageDelta {
|
|
26
|
-
input: number;
|
|
27
|
-
output: number;
|
|
28
|
-
cacheRead: number;
|
|
29
|
-
}
|
|
30
|
-
/** Extract usage from an assistant message; returns zeros if missing. */
|
|
31
|
-
export declare function readUsage(message: AgentMessage | undefined): UsageDelta;
|
|
32
|
-
/**
|
|
33
|
-
* Extract the last assistant-authored text from a turn_end message and
|
|
34
|
-
* collapse to a single-line preview (max 120 chars). Returns "" if the
|
|
35
|
-
* message has no text content (e.g. all-tool-call turn).
|
|
36
|
-
*/
|
|
37
|
-
export declare function extractTurnPreview(message: unknown): string;
|
|
38
|
-
export declare function fmtTokenMeter(u: UsageDelta): string;
|
|
39
|
-
/** Format a one-shot phase-completion line for the tail buffer. */
|
|
40
|
-
export declare function fmtPhaseSummary(opts: {
|
|
41
|
-
role: string;
|
|
42
|
-
turns: number;
|
|
43
|
-
tools: number;
|
|
44
|
-
errors: number;
|
|
45
|
-
wallSeconds: number;
|
|
46
|
-
usage: UsageDelta;
|
|
47
|
-
model?: string;
|
|
48
|
-
provider?: string;
|
|
49
|
-
compression?: {
|
|
50
|
-
calls: number;
|
|
51
|
-
tokensSaved: number;
|
|
52
|
-
};
|
|
53
|
-
}): string;
|
|
54
|
-
/**
|
|
55
|
-
* Build the sticky footer line shown at the bottom of the tail view.
|
|
56
|
-
* Includes cacheRead only when nonzero — most non-Anthropic providers (ollama,
|
|
57
|
-
* glm, etc.) return 0 for cache fields and we don't want the noise.
|
|
58
|
-
*/
|
|
59
|
-
export declare function fmtTokenFooter(usage: UsageDelta | undefined, compression?: {
|
|
60
|
-
calls: number;
|
|
61
|
-
tokensSaved: number;
|
|
62
|
-
}): string;
|
|
63
|
-
/**
|
|
64
|
-
* Compact `(provider) model` label used to annotate token footers so users
|
|
65
|
-
* can see which model a phase ran with. Returns "" when neither field is
|
|
66
|
-
* populated.
|
|
67
|
-
*/
|
|
68
|
-
export declare function fmtModelLabel(info: {
|
|
69
|
-
provider?: string;
|
|
70
|
-
model?: string;
|
|
71
|
-
} | undefined): string;
|
|
72
|
-
/**
|
|
73
|
-
* Combine a model label with a token footer, separated by ` · `. Either
|
|
74
|
-
* half may be empty — the separator is only inserted when both halves are
|
|
75
|
-
* present. Returns "" when both are empty.
|
|
76
|
-
*/
|
|
77
|
-
export declare function fmtModelAndTokenFooter(info: {
|
|
78
|
-
provider?: string;
|
|
79
|
-
model?: string;
|
|
80
|
-
} | undefined, usage: UsageDelta | undefined, compression?: {
|
|
81
|
-
calls: number;
|
|
82
|
-
tokensSaved: number;
|
|
83
|
-
}): string;
|
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
// viewport-renderer.ts
|
|
2
|
-
//
|
|
3
|
-
// Pure-string helpers for the subagent viewport tail buffer.
|
|
4
|
-
// Centralises glyph selection, arg/result shape extraction, thinking one-liners,
|
|
5
|
-
// and running-usage formatting so run-task / run-sprint / fix-bug can share
|
|
6
|
-
// rendering without diverging.
|
|
7
|
-
import path from "node:path";
|
|
8
|
-
/** Per-tool glyph. Falls back to a generic arrow when unknown. */
|
|
9
|
-
const TOOL_GLYPHS = {
|
|
10
|
-
bash: "$",
|
|
11
|
-
read: "⌕",
|
|
12
|
-
write: "✎",
|
|
13
|
-
edit: "✎",
|
|
14
|
-
glob: "⌕",
|
|
15
|
-
grep: "⌕",
|
|
16
|
-
notebookedit: "✎",
|
|
17
|
-
};
|
|
18
|
-
/** Bash patterns we want users to see flagged even when auto-approved. */
|
|
19
|
-
const RISKY_BASH = /\b(rm\s+-rf|git\s+push\s+--force|chmod\s+777|sudo\s|curl\s+[^|]*\|\s*sh\b|npm\s+publish\b)/;
|
|
20
|
-
export const RISKY_TAG = "🔒";
|
|
21
|
-
export function toolGlyph(toolName, args) {
|
|
22
|
-
const a = (args && typeof args === "object" ? args : {});
|
|
23
|
-
const lower = toolName.toLowerCase();
|
|
24
|
-
let glyph = TOOL_GLYPHS[lower];
|
|
25
|
-
if (!glyph) {
|
|
26
|
-
if (/store[-_]?cli|forge[-_]?store/i.test(toolName))
|
|
27
|
-
glyph = "⚙";
|
|
28
|
-
else
|
|
29
|
-
glyph = "→";
|
|
30
|
-
}
|
|
31
|
-
let risky = false;
|
|
32
|
-
if (lower === "bash" && typeof a.command === "string" && RISKY_BASH.test(a.command)) {
|
|
33
|
-
risky = true;
|
|
34
|
-
}
|
|
35
|
-
return { glyph, risky };
|
|
36
|
-
}
|
|
37
|
-
export function argHint(toolName, args, maxLen = 60) {
|
|
38
|
-
if (!args || typeof args !== "object")
|
|
39
|
-
return "";
|
|
40
|
-
const a = args;
|
|
41
|
-
const fp = (a.file_path ?? a.path);
|
|
42
|
-
if (typeof fp === "string")
|
|
43
|
-
return path.basename(fp);
|
|
44
|
-
if (typeof a.command === "string")
|
|
45
|
-
return truncateAtBoundary(a.command, maxLen);
|
|
46
|
-
if (typeof a.pattern === "string")
|
|
47
|
-
return truncateAtBoundary(a.pattern, maxLen);
|
|
48
|
-
if (typeof a.query === "string")
|
|
49
|
-
return truncateAtBoundary(a.query, maxLen);
|
|
50
|
-
return "";
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Truncate at a whitespace boundary when possible so we don't slice mid-token
|
|
54
|
-
* (e.g. `FORGE_ROOT=$(node -e` cut at the open paren). Appends `…(+Nc)` so the
|
|
55
|
-
* user knows there's more.
|
|
56
|
-
*/
|
|
57
|
-
export function truncateAtBoundary(s, max) {
|
|
58
|
-
if (s.length <= max)
|
|
59
|
-
return s;
|
|
60
|
-
const head = s.slice(0, max);
|
|
61
|
-
const lastSpace = head.lastIndexOf(" ");
|
|
62
|
-
const cut = lastSpace > Math.floor(max * 0.6) ? lastSpace : max;
|
|
63
|
-
const extra = s.length - cut;
|
|
64
|
-
// Strip trailing whitespace before the ellipsis so the body is visually
|
|
65
|
-
// clean and downstream string checks (`endsWith` / regex) behave predictably.
|
|
66
|
-
return `${s.slice(0, cut).replace(/\s+$/, "")}…(+${extra}c)`;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Extract a small "shape" hint from a tool result so users see `read ok 247L`
|
|
70
|
-
* instead of `read ok`. Defensive: result shapes vary across tools and providers.
|
|
71
|
-
*/
|
|
72
|
-
export function resultShape(_toolName, result) {
|
|
73
|
-
try {
|
|
74
|
-
if (typeof result === "string") {
|
|
75
|
-
if (result.length === 0)
|
|
76
|
-
return "empty";
|
|
77
|
-
const lines = result.split(/\r?\n/).length;
|
|
78
|
-
return lines > 1 ? `${lines}L` : `${result.length}c`;
|
|
79
|
-
}
|
|
80
|
-
if (result && typeof result === "object") {
|
|
81
|
-
const r = result;
|
|
82
|
-
if (typeof r.stdout === "string") {
|
|
83
|
-
const out = r.stdout;
|
|
84
|
-
if (out.length === 0)
|
|
85
|
-
return "empty";
|
|
86
|
-
const lines = out.split(/\r?\n/).length;
|
|
87
|
-
return `${lines}L`;
|
|
88
|
-
}
|
|
89
|
-
if (typeof r.content === "string") {
|
|
90
|
-
const lines = r.content.split(/\r?\n/).length;
|
|
91
|
-
return `${lines}L`;
|
|
92
|
-
}
|
|
93
|
-
if (Array.isArray(r.content)) {
|
|
94
|
-
let total = 0;
|
|
95
|
-
for (const item of r.content) {
|
|
96
|
-
const t = item?.text;
|
|
97
|
-
if (typeof t === "string")
|
|
98
|
-
total += t.split(/\r?\n/).length;
|
|
99
|
-
}
|
|
100
|
-
if (total > 0)
|
|
101
|
-
return `${total}L`;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
catch {
|
|
106
|
-
// fall through to no hint
|
|
107
|
-
}
|
|
108
|
-
return "";
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* Pull the first sentence (or first 100 chars) from any `thinking` block on an
|
|
112
|
-
* assistant message. Returns `undefined` if no thinking content present.
|
|
113
|
-
*/
|
|
114
|
-
export function extractThinkingOneLiner(message) {
|
|
115
|
-
if (!message || message.role !== "assistant")
|
|
116
|
-
return undefined;
|
|
117
|
-
const content = message.content;
|
|
118
|
-
if (!Array.isArray(content))
|
|
119
|
-
return undefined;
|
|
120
|
-
for (const block of content) {
|
|
121
|
-
const b = block;
|
|
122
|
-
if (b?.type !== "thinking" || typeof b.thinking !== "string")
|
|
123
|
-
continue;
|
|
124
|
-
const text = b.thinking.trim();
|
|
125
|
-
if (!text)
|
|
126
|
-
continue;
|
|
127
|
-
const m = text.match(/^[^\n.!?]+/);
|
|
128
|
-
const first = (m ? m[0] : text).trim();
|
|
129
|
-
return first.length > 100 ? `${first.slice(0, 100)}…` : first;
|
|
130
|
-
}
|
|
131
|
-
return undefined;
|
|
132
|
-
}
|
|
133
|
-
/** Extract usage from an assistant message; returns zeros if missing. */
|
|
134
|
-
export function readUsage(message) {
|
|
135
|
-
const u = message?.usage;
|
|
136
|
-
return {
|
|
137
|
-
input: u?.input ?? 0,
|
|
138
|
-
output: u?.output ?? 0,
|
|
139
|
-
cacheRead: u?.cacheRead ?? 0,
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
/**
|
|
143
|
-
* Extract the last assistant-authored text from a turn_end message and
|
|
144
|
-
* collapse to a single-line preview (max 120 chars). Returns "" if the
|
|
145
|
-
* message has no text content (e.g. all-tool-call turn).
|
|
146
|
-
*/
|
|
147
|
-
export function extractTurnPreview(message) {
|
|
148
|
-
if (!message || typeof message !== "object")
|
|
149
|
-
return "";
|
|
150
|
-
const msg = message;
|
|
151
|
-
if (msg.role !== "assistant")
|
|
152
|
-
return "";
|
|
153
|
-
const content = msg.content;
|
|
154
|
-
if (!Array.isArray(content))
|
|
155
|
-
return "";
|
|
156
|
-
for (const c of content) {
|
|
157
|
-
if (!c || typeof c !== "object")
|
|
158
|
-
continue;
|
|
159
|
-
const part = c;
|
|
160
|
-
if (part.type === "text" && typeof part.text === "string" && part.text.trim()) {
|
|
161
|
-
const flat = part.text.replace(/\s+/g, " ").trim();
|
|
162
|
-
return flat.length > 120 ? `${flat.slice(0, 117)}…` : flat;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
return "";
|
|
166
|
-
}
|
|
167
|
-
export function fmtTokenMeter(u) {
|
|
168
|
-
return `↑${humanTokens(u.input)}↓${humanTokens(u.output)}`;
|
|
169
|
-
}
|
|
170
|
-
function humanTokens(n) {
|
|
171
|
-
if (n < 1000)
|
|
172
|
-
return String(n);
|
|
173
|
-
if (n < 10_000)
|
|
174
|
-
return `${(n / 1000).toFixed(1)}k`;
|
|
175
|
-
if (n < 1_000_000)
|
|
176
|
-
return `${Math.round(n / 1000)}k`;
|
|
177
|
-
return `${(n / 1_000_000).toFixed(2)}M`;
|
|
178
|
-
}
|
|
179
|
-
/** Format a one-shot phase-completion line for the tail buffer. */
|
|
180
|
-
export function fmtPhaseSummary(opts) {
|
|
181
|
-
const { role, turns, tools, errors, wallSeconds, usage, model, provider, compression } = opts;
|
|
182
|
-
const errPart = errors > 0 ? ` err=${errors}` : "";
|
|
183
|
-
const modelPart = model ? ` model=${model}${provider ? `/${provider}` : ""}` : "";
|
|
184
|
-
const compPart = compression && compression.tokensSaved > 0 ? ` ⇌${humanTokens(compression.tokensSaved)}` : "";
|
|
185
|
-
return `▣ ${role}: turns=${turns} tools=${tools}${errPart} ${fmtTokenMeter(usage)}${compPart} wall=${fmtWall(wallSeconds)}${modelPart}`;
|
|
186
|
-
}
|
|
187
|
-
/**
|
|
188
|
-
* Build the sticky footer line shown at the bottom of the tail view.
|
|
189
|
-
* Includes cacheRead only when nonzero — most non-Anthropic providers (ollama,
|
|
190
|
-
* glm, etc.) return 0 for cache fields and we don't want the noise.
|
|
191
|
-
*/
|
|
192
|
-
export function fmtTokenFooter(usage, compression) {
|
|
193
|
-
if (!usage)
|
|
194
|
-
return "";
|
|
195
|
-
const cache = usage.cacheRead > 0 ? ` ⇪${humanTokens(usage.cacheRead)}` : "";
|
|
196
|
-
const comp = compression && compression.tokensSaved > 0 ? ` ⇌${humanTokens(compression.tokensSaved)}` : "";
|
|
197
|
-
return `↑${humanTokens(usage.input)} ↓${humanTokens(usage.output)}${cache}${comp}`;
|
|
198
|
-
}
|
|
199
|
-
/**
|
|
200
|
-
* Compact `(provider) model` label used to annotate token footers so users
|
|
201
|
-
* can see which model a phase ran with. Returns "" when neither field is
|
|
202
|
-
* populated.
|
|
203
|
-
*/
|
|
204
|
-
export function fmtModelLabel(info) {
|
|
205
|
-
if (!info)
|
|
206
|
-
return "";
|
|
207
|
-
const { provider, model } = info;
|
|
208
|
-
if (!provider && !model)
|
|
209
|
-
return "";
|
|
210
|
-
if (provider && model)
|
|
211
|
-
return `(${provider}) ${model}`;
|
|
212
|
-
return provider ?? model ?? "";
|
|
213
|
-
}
|
|
214
|
-
/**
|
|
215
|
-
* Combine a model label with a token footer, separated by ` · `. Either
|
|
216
|
-
* half may be empty — the separator is only inserted when both halves are
|
|
217
|
-
* present. Returns "" when both are empty.
|
|
218
|
-
*/
|
|
219
|
-
export function fmtModelAndTokenFooter(info, usage, compression) {
|
|
220
|
-
const left = fmtModelLabel(info);
|
|
221
|
-
const right = fmtTokenFooter(usage, compression);
|
|
222
|
-
if (left && right)
|
|
223
|
-
return `${left} · ${right}`;
|
|
224
|
-
return left || right;
|
|
225
|
-
}
|
|
226
|
-
function fmtWall(seconds) {
|
|
227
|
-
if (seconds < 60)
|
|
228
|
-
return `${seconds}s`;
|
|
229
|
-
const m = Math.floor(seconds / 60);
|
|
230
|
-
const s = seconds % 60;
|
|
231
|
-
return `${m}m${String(s).padStart(2, "0")}s`;
|
|
232
|
-
}
|
|
233
|
-
//# sourceMappingURL=viewport-renderer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"viewport-renderer.js","sourceRoot":"","sources":["../../../src/extensions/forgecli/viewport-renderer.ts"],"names":[],"mappings":"AAAA,uBAAuB;AACvB,EAAE;AACF,6DAA6D;AAC7D,iFAAiF;AACjF,4EAA4E;AAC5E,+BAA+B;AAE/B,OAAO,IAAI,MAAM,WAAW,CAAC;AAI7B,kEAAkE;AAClE,MAAM,WAAW,GAA2B;IAC3C,IAAI,EAAE,GAAG;IACT,IAAI,EAAE,GAAG;IACT,KAAK,EAAE,GAAG;IACV,IAAI,EAAE,GAAG;IACT,IAAI,EAAE,GAAG;IACT,IAAI,EAAE,GAAG;IACT,YAAY,EAAE,GAAG;CACjB,CAAC;AAEF,0EAA0E;AAC1E,MAAM,UAAU,GAAG,4FAA4F,CAAC;AAEhH,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,CAAC;AAO9B,MAAM,UAAU,SAAS,CAAC,QAAgB,EAAE,IAAa;IACxD,MAAM,CAAC,GAAG,CAAC,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAA4B,CAAC;IACpF,MAAM,KAAK,GAAG,QAAQ,CAAC,WAAW,EAAE,CAAC;IACrC,IAAI,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC;IAC/B,IAAI,CAAC,KAAK,EAAE,CAAC;QACZ,IAAI,gCAA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} from "@earendil-works/pi-coding-agent";
|
|
2
|
-
/**
|
|
3
|
-
* Parse one tail line into prefix + body, then colour both halves.
|
|
4
|
-
* Returns the line unchanged if no theme is available.
|
|
5
|
-
*/
|
|
6
|
-
export declare function paintTailLine(line: string, theme: Theme | undefined): string;
|
|
7
|
-
/**
|
|
8
|
-
* Build the sticky token-meter footer. Right-aligned to the viewport width,
|
|
9
|
-
* preceded by a thin separator line so it visually anchors to the prompt.
|
|
10
|
-
*/
|
|
11
|
-
export declare function paintFooterLine(text: string, width: number, theme: Theme | undefined): string;
|