@entelligentsia/forgecli 0.11.3 → 0.19.0
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 +380 -0
- package/README.md +2 -1
- package/dist/CHANGELOG-forge-plugin.md +183 -0
- package/dist/CHANGELOG-pi.md +55 -0
- package/dist/bin/argv.d.ts +2 -0
- package/dist/bin/argv.js +3 -1
- package/dist/bin/argv.js.map +1 -1
- package/dist/bin/config.d.ts +5 -0
- package/dist/bin/config.js +25 -4
- package/dist/bin/config.js.map +1 -1
- package/dist/bin/forge.js +12 -37
- package/dist/bin/forge.js.map +1 -1
- package/dist/bin/shared-parser.d.ts +23 -0
- package/dist/bin/shared-parser.js +12 -0
- package/dist/bin/shared-parser.js.map +1 -0
- package/dist/bin/update-cli.js +5 -0
- package/dist/bin/update-cli.js.map +1 -1
- package/dist/extensions/forgecli/approve.d.ts +4 -6
- package/dist/extensions/forgecli/approve.js +8 -73
- package/dist/extensions/forgecli/approve.js.map +1 -1
- package/dist/extensions/forgecli/audience-gate.d.ts +1 -1
- package/dist/extensions/forgecli/calibrate.d.ts +4 -1
- package/dist/extensions/forgecli/calibrate.js +4 -12
- package/dist/extensions/forgecli/calibrate.js.map +1 -1
- package/dist/extensions/forgecli/collate.d.ts +4 -6
- package/dist/extensions/forgecli/collate.js +8 -73
- package/dist/extensions/forgecli/collate.js.map +1 -1
- package/dist/extensions/forgecli/commit.d.ts +4 -6
- package/dist/extensions/forgecli/commit.js +8 -73
- package/dist/extensions/forgecli/commit.js.map +1 -1
- package/dist/extensions/forgecli/config-layer.d.ts +15 -0
- package/dist/extensions/forgecli/config-layer.js.map +1 -1
- package/dist/extensions/forgecli/config-tui/handler.js +1 -0
- package/dist/extensions/forgecli/config-tui/handler.js.map +1 -1
- package/dist/extensions/forgecli/config-tui/screens/tier-menu.js +8 -1
- package/dist/extensions/forgecli/config-tui/screens/tier-menu.js.map +1 -1
- package/dist/extensions/forgecli/config-tui/state/init.js +1 -0
- package/dist/extensions/forgecli/config-tui/state/init.js.map +1 -1
- package/dist/extensions/forgecli/config-tui/state/model.d.ts +4 -0
- package/dist/extensions/forgecli/enhance.d.ts +4 -6
- package/dist/extensions/forgecli/enhance.js +9 -74
- package/dist/extensions/forgecli/enhance.js.map +1 -1
- package/dist/extensions/forgecli/fix-bug.d.ts +3 -0
- package/dist/extensions/forgecli/fix-bug.js +58 -46
- package/dist/extensions/forgecli/fix-bug.js.map +1 -1
- package/dist/extensions/forgecli/forge-artifact-tool.d.ts +2 -0
- package/dist/extensions/forgecli/forge-artifact-tool.js +185 -0
- package/dist/extensions/forgecli/forge-artifact-tool.js.map +1 -0
- package/dist/extensions/forgecli/forge-cli-schema.json +19 -0
- package/dist/extensions/forgecli/forge-init/phase-descriptors.d.ts +72 -0
- package/dist/extensions/forgecli/forge-init/phase-descriptors.js +350 -0
- package/dist/extensions/forgecli/forge-init/phase-descriptors.js.map +1 -0
- package/dist/extensions/forgecli/forge-init/phase4-register.d.ts +20 -0
- package/dist/extensions/forgecli/forge-init/phase4-register.js +353 -0
- package/dist/extensions/forgecli/forge-init/phase4-register.js.map +1 -0
- package/dist/extensions/forgecli/forge-init/prompts.d.ts +10 -0
- package/dist/extensions/forgecli/forge-init/prompts.js +91 -0
- package/dist/extensions/forgecli/forge-init/prompts.js.map +1 -0
- package/dist/extensions/forgecli/forge-init/verifiers.d.ts +20 -0
- package/dist/extensions/forgecli/forge-init/verifiers.js +81 -0
- package/dist/extensions/forgecli/forge-init/verifiers.js.map +1 -0
- package/dist/extensions/forgecli/forge-init.js +106 -748
- package/dist/extensions/forgecli/forge-init.js.map +1 -1
- package/dist/extensions/forgecli/forge-root.d.ts +0 -1
- package/dist/extensions/forgecli/forge-root.js +1 -11
- package/dist/extensions/forgecli/forge-root.js.map +1 -1
- package/dist/extensions/forgecli/forge-subagent.d.ts +11 -1
- package/dist/extensions/forgecli/forge-subagent.js +6 -1
- package/dist/extensions/forgecli/forge-subagent.js.map +1 -1
- package/dist/extensions/forgecli/forge-tools.d.ts +27 -7
- package/dist/extensions/forgecli/forge-tools.js +183 -64
- package/dist/extensions/forgecli/forge-tools.js.map +1 -1
- package/dist/extensions/forgecli/forge-update-command.js +29 -18
- package/dist/extensions/forgecli/forge-update-command.js.map +1 -1
- package/dist/extensions/forgecli/friction-emit.d.ts +99 -0
- package/dist/extensions/forgecli/friction-emit.js +247 -0
- package/dist/extensions/forgecli/friction-emit.js.map +1 -0
- package/dist/extensions/forgecli/health-check.js +1 -1
- package/dist/extensions/forgecli/health-check.js.map +1 -1
- package/dist/extensions/forgecli/hook-dispatcher.d.ts +1 -0
- package/dist/extensions/forgecli/hook-dispatcher.js +25 -0
- package/dist/extensions/forgecli/hook-dispatcher.js.map +1 -1
- package/dist/extensions/forgecli/hooks/post-init-hook.js +1 -1
- package/dist/extensions/forgecli/hooks/post-sprint-hook.js +1 -1
- package/dist/extensions/forgecli/hooks/write-guard.js +1 -1
- package/dist/extensions/forgecli/hooks/write-guard.js.map +1 -1
- package/dist/extensions/forgecli/implement.d.ts +4 -6
- package/dist/extensions/forgecli/implement.js +8 -73
- package/dist/extensions/forgecli/implement.js.map +1 -1
- package/dist/extensions/forgecli/index.js +27 -26
- package/dist/extensions/forgecli/index.js.map +1 -1
- package/dist/extensions/forgecli/lib/catalog-helpers.d.ts +13 -0
- package/dist/extensions/forgecli/lib/catalog-helpers.js +51 -0
- package/dist/extensions/forgecli/lib/catalog-helpers.js.map +1 -0
- package/dist/extensions/forgecli/lib/catalog-loader.d.ts +46 -0
- package/dist/extensions/forgecli/lib/catalog-loader.js +176 -0
- package/dist/extensions/forgecli/lib/catalog-loader.js.map +1 -0
- package/dist/extensions/forgecli/lib/catalog-types.d.ts +16 -0
- package/dist/extensions/forgecli/lib/catalog-types.js +161 -0
- package/dist/extensions/forgecli/lib/catalog-types.js.map +1 -0
- package/dist/extensions/forgecli/lib/exec-helpers.d.ts +25 -0
- package/dist/extensions/forgecli/lib/exec-helpers.js +52 -0
- package/dist/extensions/forgecli/lib/exec-helpers.js.map +1 -0
- package/dist/extensions/forgecli/lib/forge-config.d.ts +20 -0
- package/dist/extensions/forgecli/lib/forge-config.js +43 -0
- package/dist/extensions/forgecli/lib/forge-config.js.map +1 -0
- package/dist/extensions/forgecli/lib/frontmatter-parser.d.ts +13 -0
- package/dist/extensions/forgecli/lib/frontmatter-parser.js +56 -0
- package/dist/extensions/forgecli/lib/frontmatter-parser.js.map +1 -0
- package/dist/extensions/forgecli/lib/manifest-checker.d.ts +22 -0
- package/dist/extensions/forgecli/lib/manifest-checker.js +64 -0
- package/dist/extensions/forgecli/lib/manifest-checker.js.map +1 -0
- package/dist/extensions/forgecli/lib/orchestrator-preflight.d.ts +46 -0
- package/dist/extensions/forgecli/lib/orchestrator-preflight.js +64 -0
- package/dist/extensions/forgecli/lib/orchestrator-preflight.js.map +1 -0
- package/dist/extensions/forgecli/lib/orchestrator-types.d.ts +20 -0
- package/dist/extensions/forgecli/lib/orchestrator-types.js +14 -0
- package/dist/extensions/forgecli/lib/orchestrator-types.js.map +1 -0
- package/dist/extensions/forgecli/lib/parsers.d.ts +25 -0
- package/dist/extensions/forgecli/lib/parsers.js +164 -0
- package/dist/extensions/forgecli/lib/parsers.js.map +1 -0
- package/dist/extensions/forgecli/lib/shared-fs-utils.d.ts +12 -0
- package/dist/extensions/forgecli/lib/shared-fs-utils.js +37 -0
- package/dist/extensions/forgecli/lib/shared-fs-utils.js.map +1 -0
- package/dist/extensions/forgecli/lib/spawn-store-cli.d.ts +44 -0
- package/dist/extensions/forgecli/lib/spawn-store-cli.js +93 -0
- package/dist/extensions/forgecli/lib/spawn-store-cli.js.map +1 -0
- package/dist/extensions/forgecli/lib/state-helpers.d.ts +33 -0
- package/dist/extensions/forgecli/lib/state-helpers.js +69 -0
- package/dist/extensions/forgecli/lib/state-helpers.js.map +1 -0
- package/dist/extensions/forgecli/lib/store-cli-timeouts.d.ts +4 -0
- package/dist/extensions/forgecli/lib/store-cli-timeouts.js +10 -0
- package/dist/extensions/forgecli/lib/store-cli-timeouts.js.map +1 -0
- package/dist/extensions/forgecli/lib/versions.d.ts +56 -0
- package/dist/extensions/forgecli/lib/versions.js +116 -0
- package/dist/extensions/forgecli/lib/versions.js.map +1 -0
- package/dist/extensions/forgecli/loaders/persona-skill-loader.js +2 -2
- package/dist/extensions/forgecli/loaders/persona-skill-loader.js.map +1 -1
- package/dist/extensions/forgecli/migration-engine.d.ts +6 -0
- package/dist/extensions/forgecli/migration-engine.js +59 -39
- package/dist/extensions/forgecli/migration-engine.js.map +1 -1
- package/dist/extensions/forgecli/parsers/persona-skill-loader.d.ts +45 -0
- package/dist/extensions/forgecli/parsers/persona-skill-loader.js +201 -0
- package/dist/extensions/forgecli/parsers/persona-skill-loader.js.map +1 -0
- package/dist/extensions/forgecli/parsers/workflow-loader.d.ts +41 -0
- package/dist/extensions/forgecli/parsers/workflow-loader.js +87 -0
- package/dist/extensions/forgecli/parsers/workflow-loader.js.map +1 -0
- package/dist/extensions/forgecli/plan.d.ts +4 -6
- package/dist/extensions/forgecli/plan.js +9 -73
- package/dist/extensions/forgecli/plan.js.map +1 -1
- package/dist/extensions/forgecli/regenerate.d.ts +22 -0
- package/dist/extensions/forgecli/regenerate.js +133 -3
- package/dist/extensions/forgecli/regenerate.js.map +1 -1
- package/dist/extensions/forgecli/retrospective.d.ts +2 -1
- package/dist/extensions/forgecli/retrospective.js +6 -36
- package/dist/extensions/forgecli/retrospective.js.map +1 -1
- package/dist/extensions/forgecli/review-code.d.ts +4 -6
- package/dist/extensions/forgecli/review-code.js +8 -73
- package/dist/extensions/forgecli/review-code.js.map +1 -1
- package/dist/extensions/forgecli/review-plan.d.ts +4 -6
- package/dist/extensions/forgecli/review-plan.js +8 -73
- package/dist/extensions/forgecli/review-plan.js.map +1 -1
- package/dist/extensions/forgecli/run-sprint.d.ts +2 -0
- package/dist/extensions/forgecli/run-sprint.js +53 -52
- package/dist/extensions/forgecli/run-sprint.js.map +1 -1
- package/dist/extensions/forgecli/run-task.d.ts +3 -0
- package/dist/extensions/forgecli/run-task.js +39 -68
- package/dist/extensions/forgecli/run-task.js.map +1 -1
- package/dist/extensions/forgecli/skill-curation-flag.d.ts +21 -0
- package/dist/extensions/forgecli/skill-curation-flag.js +71 -0
- package/dist/extensions/forgecli/skill-curation-flag.js.map +1 -0
- package/dist/extensions/forgecli/skill-curator-subagent.d.ts +101 -0
- package/dist/extensions/forgecli/skill-curator-subagent.js +342 -0
- package/dist/extensions/forgecli/skill-curator-subagent.js.map +1 -0
- package/dist/extensions/forgecli/skill-retriever.d.ts +84 -0
- package/dist/extensions/forgecli/skill-retriever.js +246 -0
- package/dist/extensions/forgecli/skill-retriever.js.map +1 -0
- package/dist/extensions/forgecli/skill-usage-tracker.d.ts +91 -0
- package/dist/extensions/forgecli/skill-usage-tracker.js +224 -0
- package/dist/extensions/forgecli/skill-usage-tracker.js.map +1 -0
- package/dist/extensions/forgecli/store-error-remediation.d.ts +65 -0
- package/dist/extensions/forgecli/store-error-remediation.js +299 -0
- package/dist/extensions/forgecli/store-error-remediation.js.map +1 -0
- package/dist/extensions/forgecli/store-resolver.js +3 -12
- package/dist/extensions/forgecli/store-resolver.js.map +1 -1
- package/dist/extensions/forgecli/store-validator.js +6 -11
- package/dist/extensions/forgecli/store-validator.js.map +1 -1
- package/dist/extensions/forgecli/subagent/agents.d.ts +4 -0
- package/dist/extensions/forgecli/subagent/agents.js +5 -8
- package/dist/extensions/forgecli/subagent/agents.js.map +1 -1
- package/dist/extensions/forgecli/transition-guard.js +20 -61
- package/dist/extensions/forgecli/transition-guard.js.map +1 -1
- package/dist/extensions/forgecli/validate.d.ts +4 -6
- package/dist/extensions/forgecli/validate.js +8 -73
- package/dist/extensions/forgecli/validate.js.map +1 -1
- package/dist/extensions/forgecli/wf-engine/engine.js +2 -2
- package/dist/extensions/forgecli/wf-engine/engine.js.map +1 -1
- package/dist/extensions/forgecli/wf-engine/loader.d.ts +1 -1
- package/dist/extensions/forgecli/wf-engine/loader.js +1 -1
- package/dist/extensions/forgecli/wf-engine/loader.js.map +1 -1
- package/dist/forge-payload/.base-pack/skills/architect-skills.md +1 -0
- package/dist/forge-payload/.base-pack/skills/bug-fixer-skills.md +1 -0
- package/dist/forge-payload/.base-pack/skills/collator-skills.md +1 -0
- package/dist/forge-payload/.base-pack/skills/engineer-skills.md +1 -0
- package/dist/forge-payload/.base-pack/skills/generic-skills.md +1 -0
- package/dist/forge-payload/.base-pack/skills/qa-engineer-skills.md +1 -0
- package/dist/forge-payload/.base-pack/skills/supervisor-skills.md +1 -0
- package/dist/forge-payload/.base-pack/workflows/_fragments/generation-instructions.md +81 -0
- package/dist/forge-payload/.base-pack/workflows/_fragments/iron-laws.md +72 -0
- package/dist/forge-payload/.base-pack/workflows/_fragments/store-cli-verbs.md +11 -1
- package/dist/forge-payload/.base-pack/workflows/_fragments/store-write-verification.md +11 -0
- package/dist/forge-payload/.base-pack/workflows/architect_approve.md +11 -12
- package/dist/forge-payload/.base-pack/workflows/architect_review_sprint_completion.md +4 -1
- package/dist/forge-payload/.base-pack/workflows/architect_sprint_intake.md +10 -1
- package/dist/forge-payload/.base-pack/workflows/architect_sprint_plan.md +8 -1
- package/dist/forge-payload/.base-pack/workflows/collator_agent.md +18 -1
- package/dist/forge-payload/.base-pack/workflows/commit_task.md +5 -10
- package/dist/forge-payload/.base-pack/workflows/enhance.md +338 -11
- package/dist/forge-payload/.base-pack/workflows/fix_bug.md +9 -2
- package/dist/forge-payload/.base-pack/workflows/implement_plan.md +22 -35
- package/dist/forge-payload/.base-pack/workflows/migrate_structural.md +9 -0
- package/dist/forge-payload/.base-pack/workflows/orchestrate_task.md +4 -0
- package/dist/forge-payload/.base-pack/workflows/plan_task.md +17 -21
- package/dist/forge-payload/.base-pack/workflows/review_code.md +13 -20
- package/dist/forge-payload/.base-pack/workflows/review_plan.md +10 -21
- package/dist/forge-payload/.base-pack/workflows/sprint_retrospective.md +10 -1
- package/dist/forge-payload/.base-pack/workflows/update_implementation.md +5 -10
- package/dist/forge-payload/.base-pack/workflows/update_plan.md +5 -10
- package/dist/forge-payload/.base-pack/workflows/validate_task.md +11 -12
- package/dist/forge-payload/.claude-plugin/plugin.json +5 -5
- package/dist/forge-payload/.schemas/_defs/phaseSummary.schema.json +18 -0
- package/dist/forge-payload/.schemas/bug.schema.json +8 -24
- package/dist/forge-payload/.schemas/config.schema.json +165 -33
- package/dist/forge-payload/.schemas/enum-catalog.json +71 -0
- package/dist/forge-payload/.schemas/event.schema.json +20 -2
- package/dist/forge-payload/.schemas/migrations.json +452 -134
- package/dist/forge-payload/.schemas/proposal.schema.json +40 -0
- package/dist/forge-payload/.schemas/task.schema.json +6 -21
- package/dist/forge-payload/.schemas/transitions/bug.json +31 -0
- package/dist/forge-payload/.schemas/transitions/sprint.json +46 -0
- package/dist/forge-payload/.schemas/transitions/task.json +109 -0
- package/dist/forge-payload/agents/store-query-validator.md +103 -0
- package/dist/forge-payload/agents/tomoshibi.md +185 -0
- package/dist/forge-payload/commands/health.md +3 -3
- package/dist/forge-payload/commands/regenerate.md +109 -20
- package/dist/forge-payload/hooks/check-update.cjs +255 -0
- package/dist/forge-payload/hooks/check-update.js +378 -0
- package/dist/forge-payload/hooks/forge-permissions.cjs +171 -0
- package/dist/forge-payload/hooks/forge-permissions.js +164 -0
- package/dist/forge-payload/hooks/post-init.cjs +120 -0
- package/dist/forge-payload/hooks/post-sprint.cjs +108 -0
- package/dist/forge-payload/hooks/triage-error.cjs +104 -0
- package/dist/forge-payload/hooks/triage-error.js +77 -0
- package/dist/forge-payload/hooks/validate-write.cjs +250 -0
- package/dist/forge-payload/hooks/validate-write.js +250 -0
- package/dist/forge-payload/integrity.json +38 -0
- package/dist/forge-payload/meta/workflows/_fragments/generation-instructions.md +81 -0
- package/dist/forge-payload/meta/workflows/_fragments/iron-laws.md +72 -0
- package/dist/forge-payload/meta/workflows/_fragments/store-cli-verbs.md +11 -1
- package/dist/forge-payload/meta/workflows/_fragments/store-write-verification.md +11 -0
- package/dist/forge-payload/meta/workflows/meta-approve.md +9 -11
- package/dist/forge-payload/meta/workflows/meta-collate.md +16 -0
- package/dist/forge-payload/meta/workflows/meta-commit.md +3 -9
- package/dist/forge-payload/meta/workflows/meta-enhance.md +347 -12
- package/dist/forge-payload/meta/workflows/meta-fix-bug.md +8 -2
- package/dist/forge-payload/meta/workflows/meta-implement.md +20 -35
- package/dist/forge-payload/meta/workflows/meta-migrate.md +18 -0
- package/dist/forge-payload/meta/workflows/meta-orchestrate.md +2 -0
- package/dist/forge-payload/meta/workflows/meta-plan-task.md +15 -21
- package/dist/forge-payload/meta/workflows/meta-quiz-agent.md +4 -1
- package/dist/forge-payload/meta/workflows/meta-retrospective.md +8 -0
- package/dist/forge-payload/meta/workflows/meta-review-implementation.md +11 -19
- package/dist/forge-payload/meta/workflows/meta-review-plan.md +10 -16
- package/dist/forge-payload/meta/workflows/meta-review-sprint-completion.md +3 -0
- package/dist/forge-payload/meta/workflows/meta-sprint-intake.md +8 -0
- package/dist/forge-payload/meta/workflows/meta-sprint-plan.md +5 -0
- package/dist/forge-payload/meta/workflows/meta-update-implementation.md +3 -9
- package/dist/forge-payload/meta/workflows/meta-update-plan.md +3 -9
- package/dist/forge-payload/meta/workflows/meta-validate.md +9 -11
- package/dist/forge-payload/schemas/structure-manifest.json +513 -0
- package/dist/forge-payload/tools/build-context-pack.cjs +3 -2
- package/dist/forge-payload/tools/compression-gate.cjs +192 -0
- package/dist/forge-payload/tools/delete-candidate-detector.cjs +114 -0
- package/dist/forge-payload/tools/friction-emit.cjs +2 -1
- package/dist/forge-payload/tools/judge-proposal.cjs +177 -0
- package/dist/forge-payload/tools/lib/frontmatter.cjs +62 -0
- package/dist/forge-payload/tools/lib/fsutil.cjs +61 -0
- package/dist/forge-payload/tools/lib/json-io.cjs +43 -0
- package/dist/forge-payload/tools/lib/schema-loader.cjs +139 -0
- package/dist/forge-payload/tools/lib/slug.cjs +39 -0
- package/dist/forge-payload/tools/lib/store-facade.cjs +6 -5
- package/dist/forge-payload/tools/manage-versions.cjs +132 -4
- package/dist/forge-payload/tools/preflight-gate.cjs +55 -7
- package/dist/forge-payload/tools/queue-drain.cjs +152 -0
- package/dist/forge-payload/tools/replay-scoring.cjs +117 -0
- package/dist/forge-payload/tools/seed-store.cjs +1 -13
- package/dist/forge-payload/tools/store-cli.cjs +55 -108
- package/dist/forge-payload/tools/store.cjs +26 -37
- package/dist/forge-payload/tools/substitute-placeholders.cjs +74 -35
- package/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.d.ts +1 -1
- 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 +23 -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/agent.d.ts +2 -2
- package/node_modules/@earendil-works/pi-agent-core/dist/agent.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/agent.js +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/agent.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/agent-harness.d.ts +2 -2
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/agent-harness.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/agent-harness.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/branch-summarization.d.ts +5 -5
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/branch-summarization.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/branch-summarization.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.d.ts +4 -4
- 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.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/utils.d.ts +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/utils.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/utils.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/env/nodejs.d.ts +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/env/nodejs.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/env/nodejs.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/messages.d.ts +2 -2
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/messages.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/messages.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/prompt-templates.d.ts +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/prompt-templates.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/prompt-templates.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-repo.d.ts +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-repo.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-repo.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-storage.d.ts +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-storage.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-storage.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-repo.d.ts +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-repo.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-repo.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-storage.d.ts +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-storage.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-storage.js.map +1 -1
- 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/repo-utils.d.ts +2 -2
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo-utils.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo-utils.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/session.d.ts +2 -2
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/session.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/session.js.map +1 -1
- 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/harness/skills.d.ts +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/skills.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/skills.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/system-prompt.d.ts +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/system-prompt.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/system-prompt.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/types.d.ts +10 -22
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/types.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/types.js +17 -23
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/types.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/shell-output.d.ts +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/shell-output.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/shell-output.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/index.d.ts +19 -19
- package/node_modules/@earendil-works/pi-agent-core/dist/index.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/index.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/node.d.ts +2 -2
- package/node_modules/@earendil-works/pi-agent-core/dist/node.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/node.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/package.json +9 -10
- package/node_modules/@earendil-works/pi-ai/dist/api-registry.d.ts +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api-registry.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api-registry.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/bedrock-provider.d.ts +2 -2
- package/node_modules/@earendil-works/pi-ai/dist/bedrock-provider.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/bedrock-provider.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/cli.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/cli.js +14 -0
- package/node_modules/@earendil-works/pi-ai/dist/cli.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/env-api-keys.d.ts +1 -1
- 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 +10 -2
- 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.d.ts +2 -2
- package/node_modules/@earendil-works/pi-ai/dist/image-models.d.ts.map +1 -1
- 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.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/image-models.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/images-api-registry.d.ts +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/images-api-registry.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/images-api-registry.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/images.d.ts +2 -2
- package/node_modules/@earendil-works/pi-ai/dist/images.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/images.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/index.d.ts +29 -29
- package/node_modules/@earendil-works/pi-ai/dist/index.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/index.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/models.d.ts +2 -2
- package/node_modules/@earendil-works/pi-ai/dist/models.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/models.generated.d.ts +317 -509
- 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 +400 -620
- package/node_modules/@earendil-works/pi-ai/dist/models.generated.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/models.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/oauth.d.ts +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/oauth.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/oauth.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.d.ts +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 +5 -2
- 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 +23 -6
- 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 +11 -23
- 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 +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 +2 -1
- 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/cloudflare.d.ts +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/faux.d.ts +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/faux.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/faux.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot-headers.d.ts +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot-headers.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot-headers.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/google-shared.d.ts +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/google-shared.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/google-shared.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.d.ts +2 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/google.d.ts +2 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/google.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/google.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/images/openrouter.d.ts +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/images/openrouter.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/images/openrouter.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/images/register-builtins.d.ts +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/images/register-builtins.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/images/register-builtins.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/mistral.d.ts +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/mistral.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/mistral.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex-responses.d.ts +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 +12 -3
- 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 +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 +2 -1
- 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-prompt-cache.d.ts +3 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-prompt-cache.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-prompt-cache.js +10 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-prompt-cache.js.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-responses-shared.d.ts +2 -2
- 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.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-responses.d.ts +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 +2 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-responses.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/register-builtins.d.ts +10 -10
- package/node_modules/@earendil-works/pi-ai/dist/providers/register-builtins.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/register-builtins.js +13 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/register-builtins.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/simple-options.d.ts +3 -3
- package/node_modules/@earendil-works/pi-ai/dist/providers/simple-options.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/simple-options.js +6 -11
- package/node_modules/@earendil-works/pi-ai/dist/providers/simple-options.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/transform-messages.d.ts +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/transform-messages.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/transform-messages.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/stream.d.ts +3 -3
- package/node_modules/@earendil-works/pi-ai/dist/stream.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/stream.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/types.d.ts +13 -3
- 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/event-stream.d.ts +3 -3
- package/node_modules/@earendil-works/pi-ai/dist/utils/event-stream.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/event-stream.js +2 -2
- package/node_modules/@earendil-works/pi-ai/dist/utils/event-stream.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/anthropic.d.ts +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/anthropic.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/anthropic.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/device-code.d.ts +19 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/device-code.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/device-code.js +55 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/device-code.js.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/github-copilot.d.ts +3 -3
- 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 +45 -69
- 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/index.d.ts +6 -5
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/index.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/index.js +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/index.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/openai-codex.d.ts +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 +1 -1
- 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/oauth/types.d.ts +9 -2
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/types.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/types.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.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/validation.d.ts +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/validation.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/validation.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/package.json +15 -16
- package/node_modules/@earendil-works/pi-coding-agent/CHANGELOG.md +55 -0
- package/node_modules/@earendil-works/pi-coding-agent/README.md +6 -4
- package/node_modules/@earendil-works/pi-coding-agent/dist/bun/cli.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/bun/cli.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/args.d.ts +1 -1
- 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.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/config-selector.d.ts +2 -2
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/config-selector.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/config-selector.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/file-processor.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/file-processor.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/initial-message.d.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/initial-message.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/initial-message.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/list-models.d.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/list-models.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/list-models.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/session-picker.d.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/session-picker.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/session-picker.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli.js +4 -10
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli.js.map +1 -1
- 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 +13 -14
- 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 +9 -9
- 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 +6 -6
- 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 +7 -7
- 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 +3 -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 +23 -21
- 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 +99 -137
- 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-guidance.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/auth-guidance.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/auth-storage.d.ts +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 +3 -2
- 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/bash-executor.d.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/bash-executor.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/bash-executor.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/branch-summarization.d.ts +3 -3
- 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.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/compaction.d.ts +2 -2
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/compaction.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/compaction.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/index.d.ts +3 -3
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/index.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/index.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/exec.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/exec.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/export-html/index.d.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/export-html/index.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/export-html/index.js +8 -6
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/export-html/index.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/export-html/template.js +6 -3
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/export-html/tool-renderer.d.ts +2 -2
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/export-html/tool-renderer.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/export-html/tool-renderer.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/index.d.ts +8 -8
- 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 +2 -2
- 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 +12 -29
- 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 +6 -6
- 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.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/types.d.ts +19 -19
- 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/extensions/wrapper.d.ts +2 -2
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/wrapper.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/wrapper.js.map +1 -1
- 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.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/http-dispatcher.d.ts +21 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/http-dispatcher.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/http-dispatcher.js +48 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/http-dispatcher.js.map +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/index.d.ts +8 -8
- 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.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/keybindings.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/keybindings.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/model-registry.d.ts +4 -4
- 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 +7 -3
- 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 -1
- 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.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/package-manager.d.ts +2 -1
- 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 +48 -32
- 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/prompt-templates.d.ts +1 -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 +6 -20
- 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/resolve-config-value.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/resolve-config-value.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/resource-loader.d.ts +9 -9
- 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 +38 -31
- 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 +13 -13
- 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 +9 -4
- 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 +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 +32 -24
- 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 +3 -0
- 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 +26 -13
- 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/skills.d.ts +2 -2
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/skills.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/skills.js +8 -22
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/skills.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/slash-commands.d.ts +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.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/source-info.d.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/source-info.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/source-info.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/system-prompt.d.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/system-prompt.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/system-prompt.js +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/system-prompt.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/telemetry.d.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/telemetry.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/telemetry.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/bash.d.ts +2 -2
- 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 +9 -3
- 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/edit-diff.d.ts +3 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/edit-diff.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/edit-diff.js +8 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/edit-diff.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/edit.d.ts +5 -3
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/edit.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/edit.js +3 -2
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/edit.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/find.d.ts +2 -2
- 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.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/grep.d.ts +2 -2
- 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.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/index.d.ts +17 -17
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/index.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/index.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/ls.d.ts +2 -2
- 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.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/output-accumulator.d.ts +3 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/output-accumulator.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/output-accumulator.js +9 -3
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/output-accumulator.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/path-utils.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/path-utils.js +3 -22
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/path-utils.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/read.d.ts +2 -2
- 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.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/render-utils.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/render-utils.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/tool-definition-wrapper.d.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/tool-definition-wrapper.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/tool-definition-wrapper.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/truncate.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/truncate.js +12 -2
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/truncate.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/write.d.ts +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.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/index.d.ts +30 -29
- 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 +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 +7 -6
- 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.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/index.d.ts +5 -5
- 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/armin.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/armin.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/assistant-message.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/assistant-message.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/bash-execution.d.ts +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.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/bordered-loader.d.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/bordered-loader.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/bordered-loader.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/branch-summary-message.d.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/branch-summary-message.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/branch-summary-message.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/compaction-summary-message.d.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/compaction-summary-message.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/compaction-summary-message.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/config-selector.d.ts +2 -2
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/config-selector.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/config-selector.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/config-selector.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/countdown-timer.d.ts +2 -2
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/countdown-timer.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/countdown-timer.js +2 -2
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/countdown-timer.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/custom-editor.d.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/custom-editor.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/custom-editor.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/custom-message.d.ts +2 -2
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/custom-message.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/custom-message.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/daxnuts.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/daxnuts.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/diff.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/diff.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/dynamic-border.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/dynamic-border.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/earendil-announcement.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/earendil-announcement.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/extension-editor.d.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/extension-editor.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/extension-editor.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/extension-input.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/extension-input.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/extension-selector.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/extension-selector.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/footer.d.ts +4 -3
- 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 +16 -7
- 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 +31 -31
- 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.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/keybinding-hints.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/keybinding-hints.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/login-dialog.d.ts +10 -2
- 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 +31 -6
- 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/model-selector.d.ts +2 -2
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/model-selector.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/model-selector.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/oauth-selector.d.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/oauth-selector.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/oauth-selector.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/scoped-models-selector.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/scoped-models-selector.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/session-selector-search.d.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/session-selector-search.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/session-selector-search.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/session-selector.d.ts +3 -3
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/session-selector.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/session-selector.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 +15 -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/show-images-selector.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/show-images-selector.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/skill-invocation-message.d.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/skill-invocation-message.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/skill-invocation-message.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/theme-selector.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/theme-selector.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/thinking-selector.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/thinking-selector.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/tool-execution.d.ts +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.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/tree-selector.d.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/tree-selector.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/tree-selector.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/user-message-selector.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/user-message-selector.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/user-message.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/user-message.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/interactive-mode.d.ts +4 -3
- 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 +37 -14
- 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/interactive/theme/theme.d.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/theme/theme.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/theme/theme.js +37 -28
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/theme/theme.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/print-mode.d.ts +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.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/rpc/rpc-client.d.ts +5 -5
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/rpc/rpc-client.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/rpc/rpc-client.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/rpc/rpc-client.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/rpc/rpc-mode.d.ts +2 -2
- 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.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/rpc/rpc-types.d.ts +4 -4
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/rpc/rpc-types.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/rpc/rpc-types.js.map +1 -1
- 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 +40 -1
- 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 -1
- 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.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/clipboard-image.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/clipboard-image.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/clipboard.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/clipboard.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/exif-orientation.d.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/exif-orientation.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/exif-orientation.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/image-convert.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/image-convert.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/image-resize.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/image-resize.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/paths.d.ts +16 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/paths.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/paths.js +49 -7
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/paths.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/shell.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/shell.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/syntax-highlight.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/syntax-highlight.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/tools-manager.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/tools-manager.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/version-check.d.ts +2 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/version-check.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/version-check.js +9 -4
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/version-check.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/windows-self-update.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/windows-self-update.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/docs/custom-provider.md +44 -12
- package/node_modules/@earendil-works/pi-coding-agent/docs/index.md +6 -4
- package/node_modules/@earendil-works/pi-coding-agent/docs/models.md +8 -2
- package/node_modules/@earendil-works/pi-coding-agent/docs/packages.md +5 -4
- package/node_modules/@earendil-works/pi-coding-agent/docs/quickstart.md +3 -1
- package/node_modules/@earendil-works/pi-coding-agent/docs/sdk.md +2 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/termux.md +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/docs/usage.md +2 -2
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/custom-provider-anthropic/package.json +2 -2
- 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/custom-provider-gitlab-duo/test.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/doom-overlay/doom-component.ts +2 -2
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/doom-overlay/index.ts +3 -3
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/overlay-qa-tests.ts +97 -66
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/overlay-test.ts +7 -4
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/plan-mode/index.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/sandbox/package.json +2 -2
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/subagent/index.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/with-deps/package.json +3 -3
- package/node_modules/@earendil-works/pi-coding-agent/npm-shrinkwrap.json +1425 -0
- package/node_modules/@earendil-works/pi-coding-agent/package.json +32 -31
- 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/box.d.ts +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/box.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/box.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/cancellable-loader.d.ts +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/cancellable-loader.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/cancellable-loader.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/editor.d.ts +3 -3
- 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.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/image.d.ts +2 -2
- package/node_modules/@earendil-works/pi-tui/dist/components/image.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/image.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/input.d.ts +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/input.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/input.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/loader.d.ts +5 -5
- package/node_modules/@earendil-works/pi-tui/dist/components/loader.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/loader.js +4 -4
- package/node_modules/@earendil-works/pi-tui/dist/components/loader.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/markdown.d.ts +1 -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.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/select-list.d.ts +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/select-list.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/select-list.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/settings-list.d.ts +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/settings-list.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/settings-list.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/spacer.d.ts +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/spacer.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/spacer.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/text.d.ts +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/text.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/text.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/truncated-text.d.ts +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/truncated-text.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/truncated-text.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/editor-component.d.ts +2 -2
- package/node_modules/@earendil-works/pi-tui/dist/editor-component.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/editor-component.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/index.d.ts +22 -22
- 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/keybindings.d.ts +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/keybindings.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/keybindings.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/terminal.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/terminal.js +25 -15
- package/node_modules/@earendil-works/pi-tui/dist/terminal.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/tui.d.ts +2 -2
- package/node_modules/@earendil-works/pi-tui/dist/tui.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/tui.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/native/win32/prebuilds/win32-arm64/win32-console-mode.node +0 -0
- package/node_modules/@earendil-works/pi-tui/native/win32/prebuilds/win32-x64/win32-console-mode.node +0 -0
- package/node_modules/@earendil-works/pi-tui/package.json +8 -11
- 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/clipboard.linux-x64-musl.node +0 -0
- package/node_modules/@mariozechner/clipboard-linux-x64-musl/package.json +25 -0
- package/package.json +15 -8
- package/dist/bin/forgecli.d.ts +0 -2
- package/dist/bin/forgecli.js +0 -6
- package/dist/bin/forgecli.js.map +0 -1
- package/node_modules/koffi/CHANGELOG.md +0 -1093
- package/node_modules/koffi/LICENSE.txt +0 -22
- package/node_modules/koffi/README.md +0 -43
- package/node_modules/koffi/build/koffi/darwin_arm64/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/darwin_x64/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/freebsd_arm64/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/freebsd_ia32/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/freebsd_x64/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/linux_arm64/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/linux_armhf/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/linux_ia32/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/linux_loong64/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/linux_riscv64d/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/linux_x64/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/musl_arm64/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/musl_x64/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/openbsd_ia32/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/openbsd_x64/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/win32_arm64/koffi.exp +0 -0
- package/node_modules/koffi/build/koffi/win32_arm64/koffi.lib +0 -0
- package/node_modules/koffi/build/koffi/win32_arm64/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/win32_ia32/koffi.exp +0 -0
- package/node_modules/koffi/build/koffi/win32_ia32/koffi.lib +0 -0
- package/node_modules/koffi/build/koffi/win32_ia32/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/win32_x64/koffi.exp +0 -0
- package/node_modules/koffi/build/koffi/win32_x64/koffi.lib +0 -0
- package/node_modules/koffi/build/koffi/win32_x64/koffi.node +0 -0
- package/node_modules/koffi/doc/benchmarks.md +0 -126
- package/node_modules/koffi/doc/callbacks.md +0 -210
- package/node_modules/koffi/doc/contribute.md +0 -148
- package/node_modules/koffi/doc/functions.md +0 -250
- package/node_modules/koffi/doc/index.md +0 -61
- package/node_modules/koffi/doc/input.md +0 -471
- package/node_modules/koffi/doc/migration.md +0 -159
- package/node_modules/koffi/doc/misc.md +0 -180
- package/node_modules/koffi/doc/output.md +0 -305
- package/node_modules/koffi/doc/packaging.md +0 -88
- package/node_modules/koffi/doc/platforms.md +0 -36
- package/node_modules/koffi/doc/pointers.md +0 -328
- package/node_modules/koffi/doc/start.md +0 -118
- package/node_modules/koffi/doc/unions.md +0 -186
- package/node_modules/koffi/doc/variables.md +0 -102
- package/node_modules/koffi/index.d.ts +0 -288
- package/node_modules/koffi/index.js +0 -634
- package/node_modules/koffi/indirect.js +0 -533
- package/node_modules/koffi/lib/native/base/base.cc +0 -11015
- package/node_modules/koffi/lib/native/base/base.hh +0 -6003
- package/node_modules/koffi/lib/native/base/crc.inc +0 -2214
- package/node_modules/koffi/lib/native/base/crc_gen.py +0 -72
- package/node_modules/koffi/lib/native/base/mimetypes.inc +0 -1248
- package/node_modules/koffi/lib/native/base/mimetypes_gen.py +0 -58
- package/node_modules/koffi/lib/native/base/tower.cc +0 -821
- package/node_modules/koffi/lib/native/base/tower.hh +0 -81
- package/node_modules/koffi/lib/native/base/unicode.inc +0 -408
- package/node_modules/koffi/lib/native/base/unicode_gen.py +0 -152
- package/node_modules/koffi/package.json +0 -38
- package/node_modules/koffi/src/cnoke/LICENSE.txt +0 -22
- package/node_modules/koffi/src/cnoke/README.md +0 -99
- package/node_modules/koffi/src/cnoke/assets/FindCNoke.cmake +0 -127
- package/node_modules/koffi/src/cnoke/assets/toolchains.json +0 -126
- package/node_modules/koffi/src/cnoke/assets/win_delay_hook.c +0 -36
- package/node_modules/koffi/src/cnoke/cnoke.js +0 -170
- package/node_modules/koffi/src/cnoke/package.json +0 -24
- package/node_modules/koffi/src/cnoke/src/builder.js +0 -511
- package/node_modules/koffi/src/cnoke/src/index.js +0 -10
- package/node_modules/koffi/src/cnoke/src/tools.js +0 -407
- package/node_modules/koffi/src/koffi/CMakeLists.txt +0 -182
- package/node_modules/koffi/src/koffi/src/abi_arm32.cc +0 -1018
- package/node_modules/koffi/src/koffi/src/abi_arm32_asm.S +0 -169
- package/node_modules/koffi/src/koffi/src/abi_arm64.cc +0 -1295
- package/node_modules/koffi/src/koffi/src/abi_arm64_asm.S +0 -195
- package/node_modules/koffi/src/koffi/src/abi_arm64_asm.asm +0 -174
- package/node_modules/koffi/src/koffi/src/abi_loong64.cc +0 -5
- package/node_modules/koffi/src/koffi/src/abi_loong64_asm.S +0 -204
- package/node_modules/koffi/src/koffi/src/abi_riscv64.cc +0 -915
- package/node_modules/koffi/src/koffi/src/abi_riscv64_asm.S +0 -203
- package/node_modules/koffi/src/koffi/src/abi_x64_sysv.cc +0 -939
- package/node_modules/koffi/src/koffi/src/abi_x64_sysv_asm.S +0 -231
- package/node_modules/koffi/src/koffi/src/abi_x64_win.cc +0 -715
- package/node_modules/koffi/src/koffi/src/abi_x64_win_asm.S +0 -166
- package/node_modules/koffi/src/koffi/src/abi_x64_win_asm.asm +0 -192
- package/node_modules/koffi/src/koffi/src/abi_x86.cc +0 -860
- package/node_modules/koffi/src/koffi/src/abi_x86_asm.S +0 -193
- package/node_modules/koffi/src/koffi/src/abi_x86_asm.asm +0 -177
- package/node_modules/koffi/src/koffi/src/call.cc +0 -1326
- package/node_modules/koffi/src/koffi/src/call.hh +0 -179
- package/node_modules/koffi/src/koffi/src/errno.inc +0 -462
- package/node_modules/koffi/src/koffi/src/ffi.cc +0 -2702
- package/node_modules/koffi/src/koffi/src/ffi.hh +0 -354
- package/node_modules/koffi/src/koffi/src/init.js +0 -105
- package/node_modules/koffi/src/koffi/src/parser.cc +0 -220
- package/node_modules/koffi/src/koffi/src/parser.hh +0 -54
- package/node_modules/koffi/src/koffi/src/util.cc +0 -1807
- package/node_modules/koffi/src/koffi/src/util.hh +0 -221
- package/node_modules/koffi/src/koffi/src/uv.cc +0 -193
- package/node_modules/koffi/src/koffi/src/uv.def +0 -10
- package/node_modules/koffi/src/koffi/src/uv.hh +0 -40
- package/node_modules/koffi/src/koffi/src/win32.cc +0 -198
- package/node_modules/koffi/src/koffi/src/win32.hh +0 -119
- package/node_modules/koffi/src/koffi/tools/write_trampolines.js +0 -77
- package/node_modules/koffi/vendor/node-addon-api/LICENSE.md +0 -9
- package/node_modules/koffi/vendor/node-addon-api/README.md +0 -95
- package/node_modules/koffi/vendor/node-addon-api/napi-inl.deprecated.h +0 -186
- package/node_modules/koffi/vendor/node-addon-api/napi-inl.h +0 -7033
- package/node_modules/koffi/vendor/node-addon-api/napi.h +0 -3309
- package/node_modules/koffi/vendor/node-api-headers/LICENSE +0 -21
- package/node_modules/koffi/vendor/node-api-headers/README.md +0 -95
- package/node_modules/koffi/vendor/node-api-headers/def/js_native_api.def +0 -125
- package/node_modules/koffi/vendor/node-api-headers/def/node_api.def +0 -157
- package/node_modules/koffi/vendor/node-api-headers/include/js_native_api.h +0 -591
- package/node_modules/koffi/vendor/node-api-headers/include/js_native_api_types.h +0 -210
- package/node_modules/koffi/vendor/node-api-headers/include/node_api.h +0 -265
- package/node_modules/koffi/vendor/node-api-headers/include/node_api_types.h +0 -58
- package/node_modules/koffi/vendor/node-api-headers/include/uv/aix.h +0 -32
- package/node_modules/koffi/vendor/node-api-headers/include/uv/bsd.h +0 -34
- package/node_modules/koffi/vendor/node-api-headers/include/uv/darwin.h +0 -61
- package/node_modules/koffi/vendor/node-api-headers/include/uv/errno.h +0 -483
- package/node_modules/koffi/vendor/node-api-headers/include/uv/linux.h +0 -34
- package/node_modules/koffi/vendor/node-api-headers/include/uv/os390.h +0 -33
- package/node_modules/koffi/vendor/node-api-headers/include/uv/posix.h +0 -31
- package/node_modules/koffi/vendor/node-api-headers/include/uv/sunos.h +0 -44
- package/node_modules/koffi/vendor/node-api-headers/include/uv/threadpool.h +0 -37
- package/node_modules/koffi/vendor/node-api-headers/include/uv/tree.h +0 -521
- package/node_modules/koffi/vendor/node-api-headers/include/uv/unix.h +0 -512
- package/node_modules/koffi/vendor/node-api-headers/include/uv/version.h +0 -43
- package/node_modules/koffi/vendor/node-api-headers/include/uv/win.h +0 -698
- package/node_modules/koffi/vendor/node-api-headers/include/uv.h +0 -1990
|
@@ -8,6 +8,19 @@
|
|
|
8
8
|
//
|
|
9
9
|
// Per INIT_PARITY_SPEC.md and PLAN.md (rev 2) phases A–G.
|
|
10
10
|
//
|
|
11
|
+
// ── Descriptor model (FORGE-S25-T24, B-5) ────────────────────────────────
|
|
12
|
+
//
|
|
13
|
+
// Phases 1–3 are driven by LlmPhaseDescriptor records (forge-init/phase-descriptors.ts).
|
|
14
|
+
// The generic runLlmPhase() runner executes the shared skeleton:
|
|
15
|
+
// banner → [LLM dispatch + waitForIdle (Phases 1–2)] | [tool calls (Phase 3)]
|
|
16
|
+
// → verify → [retry steer (Phases 1–2)] → [user confirm] → postVerify → progress
|
|
17
|
+
//
|
|
18
|
+
// Phase 4 (11 deterministic steps) is too heterogeneous for the generic runner and is
|
|
19
|
+
// extracted into forge-init/phase4-register.ts → runPhase4().
|
|
20
|
+
//
|
|
21
|
+
// This file is the orchestrator: flag parsing, resume detection, configCache population
|
|
22
|
+
// (between Phase 1 and Phase 2), phase loop, post-init report.
|
|
23
|
+
//
|
|
11
24
|
// Iron Laws:
|
|
12
25
|
// - Iron Law 1: no edits to forge/ or pi-mono/
|
|
13
26
|
// - Iron Law 6: execFile with argv arrays — no shell-string interpolation
|
|
@@ -19,17 +32,44 @@
|
|
|
19
32
|
// #4: /forge:enhance — sentinel + advisory only; no sendUserMessage dispatch
|
|
20
33
|
// #5: Tomoshibi — runRefreshKbLinks() native TS port; no shell-out
|
|
21
34
|
// #9: Health check — runHealthCheck() direct call; NOT via sendUserMessage
|
|
22
|
-
|
|
35
|
+
//
|
|
36
|
+
// ── Async/sync contract (N-B-C) ─────────────────────────────────────────────
|
|
37
|
+
//
|
|
38
|
+
// `sendToAgent(text)` is SYNCHRONOUS — it wraps `pi.sendUserMessage(text, { deliverAs: "steer" })`
|
|
39
|
+
// which enqueues the steer message and returns immediately. The agent does NOT start running
|
|
40
|
+
// until the current handler yields (awaits).
|
|
41
|
+
//
|
|
42
|
+
// `await ctx.waitForIdle()` is the SOLE synchronisation primitive. It suspends the handler
|
|
43
|
+
// until the agent has finished processing all pending steer messages and has reached an
|
|
44
|
+
// idle state. All reads of phase deliverables (e.g. `.forge/config.json` for Phase 1,
|
|
45
|
+
// KB docs for Phase 2, `.forge/workflows/` for Phase 3) MUST occur AFTER a `waitForIdle`.
|
|
46
|
+
//
|
|
47
|
+
// Pattern for every phase:
|
|
48
|
+
// sendToAgent(promptText); // enqueue — synchronous
|
|
49
|
+
// await ctx.waitForIdle(); // suspend until agent completes — asynchronous
|
|
50
|
+
// const result = verifyPhaseN(); // read deliverable — synchronous
|
|
51
|
+
//
|
|
52
|
+
// ── Config cache boundary (B-4, N-B-A) ──────────────────────────────────────
|
|
53
|
+
//
|
|
54
|
+
// `.forge/config.json` is WRITTEN by the Phase-1 agent. Any read before Phase 1's
|
|
55
|
+
// `waitForIdle` returns stale or absent data. `configCache` is populated once,
|
|
56
|
+
// immediately after Phase 1 completes, and reused throughout Phase 2, Phase 4,
|
|
57
|
+
// the post-init hook, and the report section — reducing 8 fs.readFileSync calls to 1.
|
|
58
|
+
//
|
|
59
|
+
// `verifyPhase1` inside `forge-init/verifiers.ts` intentionally reads config.json
|
|
60
|
+
// directly rather than using `configCache` — it validates the Phase-1 deliverable
|
|
61
|
+
// and must see the freshly written file.
|
|
23
62
|
import * as fs from "node:fs";
|
|
24
63
|
import * as path from "node:path";
|
|
25
64
|
import { fileURLToPath } from "node:url";
|
|
26
|
-
import { promisify } from "node:util";
|
|
27
65
|
import { runHealthCheck } from "./health-check.js";
|
|
28
|
-
import {
|
|
29
|
-
import { deleteInitProgress, readInitProgress
|
|
30
|
-
import { getRefreshKbLinksHandler } from "./refresh-kb-links.js";
|
|
66
|
+
import { discoverProjectName } from "./init-context.js";
|
|
67
|
+
import { deleteInitProgress, readInitProgress } from "./init-progress.js";
|
|
31
68
|
import { emitSyntheticEvent } from "./hook-dispatcher.js";
|
|
32
|
-
|
|
69
|
+
import { execFileAsync } from "./lib/exec-helpers.js";
|
|
70
|
+
import { runLlmPhase, PHASE_1, PHASE_2, PHASE_3 } from "./forge-init/phase-descriptors.js";
|
|
71
|
+
import { runPhase4 } from "./forge-init/phase4-register.js";
|
|
72
|
+
import { verifyPhase1, verifyPhase3 } from "./forge-init/verifiers.js";
|
|
33
73
|
// ── Bundle path resolution ─────────────────────────────────────────────────
|
|
34
74
|
const _EXTENSION_DIR = path.dirname(fileURLToPath(import.meta.url));
|
|
35
75
|
// dist/extensions/forgecli/ → dist/ → <pkg-root>/
|
|
@@ -134,260 +174,6 @@ function parseInitFlags(args) {
|
|
|
134
174
|
invalidPhase,
|
|
135
175
|
};
|
|
136
176
|
}
|
|
137
|
-
// ── Tool invocation helpers ────────────────────────────────────────────────
|
|
138
|
-
async function runTool(toolPath, argv, cwd, timeout = 30000) {
|
|
139
|
-
try {
|
|
140
|
-
await execFileAsync("node", [toolPath, ...argv], {
|
|
141
|
-
cwd,
|
|
142
|
-
timeout,
|
|
143
|
-
encoding: "utf8",
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
catch (err) {
|
|
147
|
-
const e = err;
|
|
148
|
-
throw new Error(`Tool ${path.basename(toolPath)} failed: ${e.stderr?.trim() || e.message || "unknown error"}`);
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
async function runToolAdvisory(toolPath, argv, cwd, ctx, label, timeout = 30000) {
|
|
152
|
-
try {
|
|
153
|
-
await runTool(toolPath, argv, cwd, timeout);
|
|
154
|
-
return true;
|
|
155
|
-
}
|
|
156
|
-
catch (err) {
|
|
157
|
-
const e = err;
|
|
158
|
-
ctx.ui.notify(`△ ${label}: ${e.message ?? "failed"} — proceeding.`, "warning");
|
|
159
|
-
return false;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
function verifyPhase1(cwd) {
|
|
163
|
-
const configPath = path.join(cwd, ".forge", "config.json");
|
|
164
|
-
if (!fs.existsSync(configPath)) {
|
|
165
|
-
return { ok: false, missing: [".forge/config.json"], reason: "config file not written" };
|
|
166
|
-
}
|
|
167
|
-
let cfg;
|
|
168
|
-
try {
|
|
169
|
-
cfg = JSON.parse(fs.readFileSync(configPath, "utf8"));
|
|
170
|
-
}
|
|
171
|
-
catch (err) {
|
|
172
|
-
const e = err;
|
|
173
|
-
return { ok: false, missing: [".forge/config.json"], reason: `JSON parse failed: ${e.message ?? "?"}` };
|
|
174
|
-
}
|
|
175
|
-
const missing = [];
|
|
176
|
-
if (!cfg.version)
|
|
177
|
-
missing.push("version");
|
|
178
|
-
const proj = cfg.project;
|
|
179
|
-
if (!proj?.name)
|
|
180
|
-
missing.push("project.name");
|
|
181
|
-
if (!proj?.prefix)
|
|
182
|
-
missing.push("project.prefix");
|
|
183
|
-
if (!cfg.stack)
|
|
184
|
-
missing.push("stack");
|
|
185
|
-
if (!cfg.commands)
|
|
186
|
-
missing.push("commands");
|
|
187
|
-
const paths = cfg.paths;
|
|
188
|
-
if (!paths?.engineering)
|
|
189
|
-
missing.push("paths.engineering");
|
|
190
|
-
if (!paths?.store)
|
|
191
|
-
missing.push("paths.store");
|
|
192
|
-
if (!paths?.workflows)
|
|
193
|
-
missing.push("paths.workflows");
|
|
194
|
-
return { ok: missing.length === 0, missing };
|
|
195
|
-
}
|
|
196
|
-
function verifyPhase2(cwd, kbPath) {
|
|
197
|
-
const archDocs = ["stack", "processes", "database", "routing", "deployment", "entity-model", "stack-checklist"];
|
|
198
|
-
const missing = [];
|
|
199
|
-
for (const d of archDocs) {
|
|
200
|
-
if (!fs.existsSync(path.join(cwd, kbPath, "architecture", `${d}.md`))) {
|
|
201
|
-
missing.push(`${kbPath}/architecture/${d}.md`);
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
return { ok: missing.length === 0, missing };
|
|
205
|
-
}
|
|
206
|
-
function verifyPhase3(cwd) {
|
|
207
|
-
const dirs = ["workflows", "personas", "skills", "templates"];
|
|
208
|
-
const missing = [];
|
|
209
|
-
for (const d of dirs) {
|
|
210
|
-
const dir = path.join(cwd, ".forge", d);
|
|
211
|
-
let count = 0;
|
|
212
|
-
try {
|
|
213
|
-
count = fs.readdirSync(dir).filter((f) => f.endsWith(".md") || f.endsWith(".json")).length;
|
|
214
|
-
}
|
|
215
|
-
catch {
|
|
216
|
-
count = 0;
|
|
217
|
-
}
|
|
218
|
-
if (count === 0)
|
|
219
|
-
missing.push(`.forge/${d}/ (empty)`);
|
|
220
|
-
}
|
|
221
|
-
return { ok: missing.length === 0, missing };
|
|
222
|
-
}
|
|
223
|
-
// ── Discovery prompt text ──────────────────────────────────────────────────
|
|
224
|
-
function buildPhase1PromptText(bundleRoot, projectName) {
|
|
225
|
-
const discoveryDir = path.join(bundleRoot, ".init", "discovery");
|
|
226
|
-
const topics = ["stack", "processes", "database", "routing", "testing"];
|
|
227
|
-
const topicLines = topics.map((t) => ` • ${path.join(discoveryDir, `discover-${t}.md`)}`).join("\n");
|
|
228
|
-
return `## /forge:init Phase 1 — Collect: 5 parallel discovery scans
|
|
229
|
-
|
|
230
|
-
Project: ${projectName}
|
|
231
|
-
|
|
232
|
-
Run 5 discovery scans concurrently. In a single response, issue 5 parallel tool
|
|
233
|
-
calls — one per discovery topic — using whatever read/search tools you have
|
|
234
|
-
available (Read, Glob, Grep, Bash). If a \`subagent\` tool is exposed in your
|
|
235
|
-
toolset, you MAY dispatch via it (mode: "parallel"); otherwise execute the
|
|
236
|
-
scans inline. Do NOT preface with "I don't have a subagent tool" — either path
|
|
237
|
-
is acceptable, what matters is concurrency and the resulting deliverable.
|
|
238
|
-
|
|
239
|
-
For each topic:
|
|
240
|
-
1. Read the discovery prompt file at its assigned path (shown below)
|
|
241
|
-
2. Analyze the current project codebase
|
|
242
|
-
3. Capture structured findings
|
|
243
|
-
|
|
244
|
-
Discovery prompt files:
|
|
245
|
-
${topicLines}
|
|
246
|
-
|
|
247
|
-
After all 5 complete, synthesize the findings into a unified config and write .forge/config.json.
|
|
248
|
-
|
|
249
|
-
Required .forge/config.json structure:
|
|
250
|
-
{
|
|
251
|
-
"version": "1",
|
|
252
|
-
"project": { "name": "${projectName}", "prefix": "<UPPERCASE_ABBREV>" },
|
|
253
|
-
"stack": { "primary": [...], "test": <framework>, "build": <tool>, "lint": <tool> },
|
|
254
|
-
"commands": { "test": "<test cmd>", "build": "<build cmd>", "lint": "<lint cmd>" },
|
|
255
|
-
"paths": {
|
|
256
|
-
"engineering": "engineering",
|
|
257
|
-
"store": ".forge/store",
|
|
258
|
-
"workflows": ".forge/workflows",
|
|
259
|
-
"commands": ".claude/commands/forge",
|
|
260
|
-
"templates": ".forge/templates"
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
Write the config with: node "${path.join(bundleRoot, "tools/manage-config.cjs")}" set <key> <value>
|
|
265
|
-
Or write .forge/config.json directly as valid JSON.`;
|
|
266
|
-
}
|
|
267
|
-
function buildPhase2PromptText(bundleRoot, kbPath, projectName) {
|
|
268
|
-
const generateKbDocPath = path.join(bundleRoot, ".init", "generation", "generate-kb-doc.md");
|
|
269
|
-
const docs = ["stack", "processes", "database", "routing", "deployment", "entity-model", "stack-checklist"];
|
|
270
|
-
const docLines = docs.map((d) => ` • ${kbPath}/architecture/${d}.md`).join("\n");
|
|
271
|
-
return `## /forge:init Phase 2 — Discover: 7 parallel KB doc generation
|
|
272
|
-
|
|
273
|
-
Project: ${projectName}
|
|
274
|
-
KB path: ${kbPath}/
|
|
275
|
-
Rulebook: ${generateKbDocPath}
|
|
276
|
-
|
|
277
|
-
Generate 7 knowledge-base documents concurrently. In a single response, issue
|
|
278
|
-
7 parallel tool calls — one per document — using whatever read/search/write
|
|
279
|
-
tools you have available (Read, Glob, Grep, Bash, Write). If a \`subagent\`
|
|
280
|
-
tool is exposed in your toolset, you MAY dispatch via it (mode: "parallel");
|
|
281
|
-
otherwise execute the generation inline. Do NOT preface with "I don't have a
|
|
282
|
-
subagent tool" — either path is acceptable, what matters is concurrency and
|
|
283
|
-
the 7 output files.
|
|
284
|
-
|
|
285
|
-
For each document:
|
|
286
|
-
1. Read the rulebook at: ${generateKbDocPath}
|
|
287
|
-
2. Analyze the project codebase for its assigned topic
|
|
288
|
-
3. Write the resulting document to its assigned output file
|
|
289
|
-
|
|
290
|
-
Documents to generate:
|
|
291
|
-
${docLines}
|
|
292
|
-
|
|
293
|
-
After all complete, check for any that returned "FAILED:" in their output — retry those once.
|
|
294
|
-
|
|
295
|
-
Also create these index files after generation:
|
|
296
|
-
- ${kbPath}/architecture/INDEX.md
|
|
297
|
-
- ${kbPath}/business-domain/INDEX.md
|
|
298
|
-
- ${kbPath}/MASTER_INDEX.md (scaffold)`;
|
|
299
|
-
}
|
|
300
|
-
// ── Phase 4 helper — .gitignore update ────────────────────────────────────
|
|
301
|
-
function updateGitignore(cwd, ctx) {
|
|
302
|
-
const gitignorePath = path.join(cwd, ".gitignore");
|
|
303
|
-
if (!fs.existsSync(gitignorePath)) {
|
|
304
|
-
// No gitignore — skip
|
|
305
|
-
return;
|
|
306
|
-
}
|
|
307
|
-
let content;
|
|
308
|
-
try {
|
|
309
|
-
content = fs.readFileSync(gitignorePath, "utf8");
|
|
310
|
-
}
|
|
311
|
-
catch {
|
|
312
|
-
return;
|
|
313
|
-
}
|
|
314
|
-
const IGNORE_PATTERNS = [".forge/store/events/", ".forge/store/events", ".forge/store/", ".forge/"];
|
|
315
|
-
const lines = content.split("\n");
|
|
316
|
-
const alreadyIgnored = lines.some((line) => {
|
|
317
|
-
const trimmed = line.trim();
|
|
318
|
-
if (!trimmed || trimmed.startsWith("#"))
|
|
319
|
-
return false;
|
|
320
|
-
return IGNORE_PATTERNS.some((pat) => trimmed.includes(pat));
|
|
321
|
-
});
|
|
322
|
-
if (alreadyIgnored) {
|
|
323
|
-
ctx.ui.notify("〇 .forge/store/events/ already gitignored — skipped.", "info");
|
|
324
|
-
return;
|
|
325
|
-
}
|
|
326
|
-
const toAppend = "\n# Forge — transient agent event logs (one file per phase, do not commit)\n.forge/store/events/\n";
|
|
327
|
-
try {
|
|
328
|
-
fs.appendFileSync(gitignorePath, toAppend, "utf8");
|
|
329
|
-
ctx.ui.notify("〇 Appended .forge/store/events/ to .gitignore.", "info");
|
|
330
|
-
}
|
|
331
|
-
catch {
|
|
332
|
-
ctx.ui.notify("△ Could not update .gitignore — update manually.", "warning");
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
// ── Phase 4 helper — agent instruction file linking ────────────────────────
|
|
336
|
-
async function linkAgentInstructionFile(cwd, kbPath, projectName, ctx) {
|
|
337
|
-
const INSTRUCTION_FILES = ["CLAUDE.md", "AGENTS.md", "CLAUDE.local.md", ".cursorrules"];
|
|
338
|
-
const existing = INSTRUCTION_FILES.filter((f) => fs.existsSync(path.join(cwd, f)));
|
|
339
|
-
if (existing.length > 0) {
|
|
340
|
-
// Already exists — do NOT modify (per spec step 4-11: avoid KB-link bloat)
|
|
341
|
-
return;
|
|
342
|
-
}
|
|
343
|
-
// None exist — prompt to create minimal CLAUDE.md (G4: bypassed in non-interactive mode)
|
|
344
|
-
const ok = isNonInteractive()
|
|
345
|
-
? true
|
|
346
|
-
: await ctx.ui.confirm("Create CLAUDE.md?", `No agent instruction file found at project root.\nCreate a minimal CLAUDE.md with links to the Forge knowledge base? [Y/n]`);
|
|
347
|
-
if (!ok) {
|
|
348
|
-
ctx.ui.notify("〇 KB not linked — run /forge:refresh-kb-links after creating CLAUDE.md.", "info");
|
|
349
|
-
return;
|
|
350
|
-
}
|
|
351
|
-
const claudeMdPath = path.join(cwd, "CLAUDE.md");
|
|
352
|
-
const content = [
|
|
353
|
-
`# ${projectName}`,
|
|
354
|
-
``,
|
|
355
|
-
`## Forge Knowledge Base`,
|
|
356
|
-
``,
|
|
357
|
-
`| Index | Contents |`,
|
|
358
|
-
`|-------|----------|`,
|
|
359
|
-
`| [MASTER_INDEX](${kbPath}/MASTER_INDEX.md) | All sprints, tasks, bugs, and features |`,
|
|
360
|
-
`| [Architecture](${kbPath}/architecture/INDEX.md) | Stack, processes, database, routing, deployment |`,
|
|
361
|
-
`| [Business Domain](${kbPath}/business-domain/INDEX.md) | Entity model and domain concepts |`,
|
|
362
|
-
``,
|
|
363
|
-
`## Forge Workflows`,
|
|
364
|
-
``,
|
|
365
|
-
`| Workflow | Purpose |`,
|
|
366
|
-
`|----------|---------|`,
|
|
367
|
-
`| /forge:plan | Research codebase, produce implementation plan |`,
|
|
368
|
-
`| /forge:implement | Execute approved plan, make code changes |`,
|
|
369
|
-
`| /forge:validate | Validate task implementation against acceptance criteria |`,
|
|
370
|
-
`| /forge:approve | Final architect approval gate |`,
|
|
371
|
-
`| /forge:commit | Stage and commit completed task artifacts |`,
|
|
372
|
-
`| /forge:fix-bug | Triage, diagnose, and fix a bug |`,
|
|
373
|
-
`| /forge:run-task | Full plan-implement-review-commit pipeline |`,
|
|
374
|
-
`| /forge:run-sprint | Execute all tasks in a sprint |`,
|
|
375
|
-
`| /forge:sprint-plan | Decompose sprint requirements into tasks |`,
|
|
376
|
-
`| /forge:sprint-intake | Elicit and structure requirements for a new sprint |`,
|
|
377
|
-
``,
|
|
378
|
-
`---`,
|
|
379
|
-
`_Generated by /forge:init. Run /forge:refresh-kb-links to update._`,
|
|
380
|
-
``,
|
|
381
|
-
].join("\n");
|
|
382
|
-
try {
|
|
383
|
-
fs.writeFileSync(claudeMdPath, content, "utf8");
|
|
384
|
-
ctx.ui.notify("〇 Created CLAUDE.md with KB links.", "info");
|
|
385
|
-
}
|
|
386
|
-
catch (err) {
|
|
387
|
-
const e = err;
|
|
388
|
-
ctx.ui.notify(`△ Could not create CLAUDE.md: ${e.message ?? "unknown"}`, "warning");
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
177
|
// ── Main command registration ──────────────────────────────────────────────
|
|
392
178
|
export function registerForgeInit(pi) {
|
|
393
179
|
// Capture pi.sendUserMessage in closure — ExtensionCommandContext does not
|
|
@@ -494,483 +280,63 @@ export function registerForgeInit(pi) {
|
|
|
494
280
|
}
|
|
495
281
|
}
|
|
496
282
|
}
|
|
497
|
-
// ──
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
});
|
|
508
|
-
}
|
|
509
|
-
ctx.ui.notify("Running 5 discovery scans in parallel...", "info");
|
|
510
|
-
// Dispatch 5 discovery subagents via sendUserMessage instruction.
|
|
511
|
-
// If the agent doesn't have a `subagent` tool, it must fall back to
|
|
512
|
-
// running the 5 scans inline — Phase 1's deliverable is non-negotiable.
|
|
513
|
-
const phase1Prompt = buildPhase1PromptText(bundleRoot, projectName);
|
|
514
|
-
sendToAgent(phase1Prompt);
|
|
515
|
-
await ctx.waitForIdle();
|
|
516
|
-
// Verify deliverable. If missing, retry once with a corrective steer;
|
|
517
|
-
// if still missing, prompt the user to abort or continue with partial.
|
|
518
|
-
let phase1 = verifyPhase1(cwd);
|
|
519
|
-
if (!phase1.ok) {
|
|
520
|
-
ctx.ui.notify(`△ Phase 1 deliverable missing: ${phase1.missing.join(", ")} — retrying with corrective steer.`, "warning");
|
|
521
|
-
sendToAgent(`Phase 1 verification failed. .forge/config.json is missing the following required fields: ${phase1.missing.join(", ")}.\n\n` +
|
|
522
|
-
`Write a complete .forge/config.json now using the \`write\` tool. Do NOT call subagents — analyze the project codebase yourself if needed. ` +
|
|
523
|
-
`Use the schema from the original Phase 1 prompt: version, project.{name,prefix}, stack, commands, and paths.{engineering,store,workflows,commands,templates} are all required.`);
|
|
524
|
-
await ctx.waitForIdle();
|
|
525
|
-
phase1 = verifyPhase1(cwd);
|
|
526
|
-
}
|
|
527
|
-
if (!phase1.ok) {
|
|
528
|
-
if (isNonInteractive()) {
|
|
529
|
-
ctx.ui.notify(`× Phase 1 failed: ${phase1.missing.join(", ")}. Aborting init in non-interactive mode.`, "error");
|
|
530
|
-
return;
|
|
531
|
-
}
|
|
532
|
-
const proceed = await ctx.ui.confirm("Phase 1 failed twice — continue with partial init?", `.forge/config.json is still missing: ${phase1.missing.join(", ")}.\n\n` +
|
|
533
|
-
`Yes = continue (you'll need to /forge:regenerate later).\n` +
|
|
534
|
-
`No = abort. Inspect the file manually and re-run /forge:init.`);
|
|
535
|
-
if (!proceed) {
|
|
536
|
-
ctx.ui.notify("× /forge:init aborted at Phase 1 verify.", "error");
|
|
537
|
-
return;
|
|
538
|
-
}
|
|
539
|
-
ctx.ui.notify("△ Continuing with partial Phase 1 — downstream phases may fail.", "warning");
|
|
540
|
-
}
|
|
541
|
-
// KB folder prompt (spec §7, F2) — G3: skipped in non-interactive mode (default: "engineering")
|
|
542
|
-
// Phrasing chosen so the default-Yes affirmative ("use engineering/") is the
|
|
543
|
-
// safe path. Pi's ctx.ui.confirm has no defaultValue option, so the question
|
|
544
|
-
// has to align with the highlighted default — earlier "does this conflict?"
|
|
545
|
-
// phrasing made the unsafe answer the default.
|
|
546
|
-
if (!isNonInteractive()) {
|
|
547
|
-
const kbDescription = `Forge will create a folder for architecture docs, sprints, bugs, and features.\n\n` +
|
|
548
|
-
`Use "engineering" as the folder name? (Pick No only if your project already has an "engineering/" folder you don't want Forge to touch.)`;
|
|
549
|
-
const useDefault = await ctx.ui.confirm("Engineering folder name?", kbDescription);
|
|
550
|
-
if (!useDefault) {
|
|
551
|
-
const customName = await ctx.ui.input("Engineering folder name? Enter preferred folder name", "e.g. ai-docs, .forge-kb, docs/ai");
|
|
552
|
-
if (customName && customName.trim()) {
|
|
553
|
-
const manageConfigToolEarly = path.join(toolsRoot, "manage-config.cjs");
|
|
554
|
-
if (fs.existsSync(manageConfigToolEarly)) {
|
|
555
|
-
await runToolAdvisory(manageConfigToolEarly, ["set", "paths.engineering", customName.trim()], cwd, ctx, "manage-config paths.engineering");
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
// Marketplace skills advisory (sub-decision #1)
|
|
561
|
-
ctx.ui.notify("〇 Marketplace skills auto-recommendation is Claude-Code-only. " +
|
|
562
|
-
"Pi users install extensions manually. Writing installedSkills: []", "info");
|
|
563
|
-
// Write installedSkills: []
|
|
564
|
-
const manageConfigTool = path.join(toolsRoot, "manage-config.cjs");
|
|
565
|
-
if (fs.existsSync(manageConfigTool)) {
|
|
566
|
-
await runToolAdvisory(manageConfigTool, ["set", "installedSkills", "[]"], cwd, ctx, "manage-config installedSkills");
|
|
567
|
-
// Write mode = "full"
|
|
568
|
-
await runToolAdvisory(manageConfigTool, ["set", "mode", "full"], cwd, ctx, "manage-config mode");
|
|
569
|
-
}
|
|
570
|
-
writeInitProgress(cwd, 1);
|
|
571
|
-
ctx.ui.notify("〇 Phase 1 complete.", "info");
|
|
283
|
+
// ── Config cache (B-4, N-B-A) ─────────────────────────────────────
|
|
284
|
+
// Populated unconditionally before the loop so that resume paths
|
|
285
|
+
// (startPhase > 1) read the config.json that Phase 1 wrote in a prior
|
|
286
|
+
// session. Falls back to {} when config.json does not exist yet (first-run
|
|
287
|
+
// Phase 1 will create it). Refreshed after Phase 1 completes in the loop
|
|
288
|
+
// to pick up values the Phase-1 agent just wrote. See file-header comment
|
|
289
|
+
// §Config cache boundary for the full rationale.
|
|
290
|
+
let configCache = {};
|
|
291
|
+
try {
|
|
292
|
+
configCache = JSON.parse(fs.readFileSync(path.join(cwd, ".forge", "config.json"), "utf8"));
|
|
572
293
|
}
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
ctx.ui.setStatus?.("forge:init", "Phase 2/4: Discover");
|
|
576
|
-
const bannersTool = path.join(toolsRoot, "banners.cjs");
|
|
577
|
-
if (fs.existsSync(bannersTool)) {
|
|
578
|
-
await execFileAsync("node", [bannersTool, "--phase", "2", "4", "Discover", "oracle"], {
|
|
579
|
-
cwd,
|
|
580
|
-
timeout: 5000,
|
|
581
|
-
}).catch(() => {
|
|
582
|
-
/* non-fatal */
|
|
583
|
-
});
|
|
584
|
-
}
|
|
585
|
-
// Read KB_PATH from config
|
|
586
|
-
let kbPath = "engineering";
|
|
587
|
-
try {
|
|
588
|
-
const configRaw = fs.readFileSync(path.join(cwd, ".forge", "config.json"), "utf8");
|
|
589
|
-
const config = JSON.parse(configRaw);
|
|
590
|
-
const paths = config.paths;
|
|
591
|
-
if (paths && typeof paths.engineering === "string" && paths.engineering) {
|
|
592
|
-
kbPath = paths.engineering;
|
|
593
|
-
}
|
|
594
|
-
}
|
|
595
|
-
catch {
|
|
596
|
-
// Use default
|
|
597
|
-
}
|
|
598
|
-
// Directory scaffolding
|
|
599
|
-
const dirs = [
|
|
600
|
-
path.join(cwd, kbPath),
|
|
601
|
-
path.join(cwd, kbPath, "architecture"),
|
|
602
|
-
path.join(cwd, kbPath, "business-domain"),
|
|
603
|
-
path.join(cwd, kbPath, "sprints"),
|
|
604
|
-
path.join(cwd, ".forge", "store"),
|
|
605
|
-
path.join(cwd, ".forge", "cache"),
|
|
606
|
-
];
|
|
607
|
-
for (const dir of dirs) {
|
|
608
|
-
try {
|
|
609
|
-
fs.mkdirSync(dir, { recursive: true });
|
|
610
|
-
// Write .gitkeep for empty dirs
|
|
611
|
-
const keepPath = path.join(dir, ".gitkeep");
|
|
612
|
-
if (!fs.existsSync(keepPath)) {
|
|
613
|
-
fs.writeFileSync(keepPath, "", "utf8");
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
catch {
|
|
617
|
-
// Non-fatal
|
|
618
|
-
}
|
|
619
|
-
}
|
|
620
|
-
// Dispatch 7 parallel KB doc subagents
|
|
621
|
-
const phase2Prompt = buildPhase2PromptText(bundleRoot, kbPath, projectName);
|
|
622
|
-
sendToAgent(phase2Prompt);
|
|
623
|
-
await ctx.waitForIdle();
|
|
624
|
-
// Verify Phase 2 deliverables.
|
|
625
|
-
let phase2 = verifyPhase2(cwd, kbPath);
|
|
626
|
-
if (!phase2.ok) {
|
|
627
|
-
ctx.ui.notify(`△ Phase 2 deliverable incomplete: ${phase2.missing.length} doc(s) missing — retrying.`, "warning");
|
|
628
|
-
sendToAgent(`Phase 2 verification failed. The following architecture docs are missing:\n${phase2.missing.map((m) => ` - ${m}`).join("\n")}\n\n` +
|
|
629
|
-
`Write the missing files now using the \`write\` tool. Do NOT call subagents — analyze the project codebase yourself. ` +
|
|
630
|
-
`Use the rulebook at ${path.join(bundleRoot, ".init", "generation", "generate-kb-doc.md")} for the per-doc shape and confidence-header format.`);
|
|
631
|
-
await ctx.waitForIdle();
|
|
632
|
-
phase2 = verifyPhase2(cwd, kbPath);
|
|
633
|
-
}
|
|
634
|
-
if (!phase2.ok) {
|
|
635
|
-
if (isNonInteractive()) {
|
|
636
|
-
ctx.ui.notify(`× Phase 2 failed: ${phase2.missing.length} doc(s) still missing. Aborting init in non-interactive mode.`, "error");
|
|
637
|
-
return;
|
|
638
|
-
}
|
|
639
|
-
const proceed = await ctx.ui.confirm("Phase 2 failed twice — continue with partial init?", `Missing docs:\n${phase2.missing.map((m) => ` - ${m}`).join("\n")}\n\n` +
|
|
640
|
-
`Yes = continue (you'll need to fill these manually).\n` +
|
|
641
|
-
`No = abort. Inspect the project and re-run /forge:init.`);
|
|
642
|
-
if (!proceed) {
|
|
643
|
-
ctx.ui.notify("× /forge:init aborted at Phase 2 verify.", "error");
|
|
644
|
-
return;
|
|
645
|
-
}
|
|
646
|
-
ctx.ui.notify("△ Continuing with partial Phase 2.", "warning");
|
|
647
|
-
}
|
|
648
|
-
// Construct project-context.json
|
|
649
|
-
let kbPathResolved = kbPath;
|
|
650
|
-
let prefix = "";
|
|
651
|
-
try {
|
|
652
|
-
const configRaw = fs.readFileSync(path.join(cwd, ".forge", "config.json"), "utf8");
|
|
653
|
-
const config = JSON.parse(configRaw);
|
|
654
|
-
const proj = config.project;
|
|
655
|
-
if (proj && typeof proj.prefix === "string")
|
|
656
|
-
prefix = proj.prefix;
|
|
657
|
-
const paths = config.paths;
|
|
658
|
-
if (paths && typeof paths.engineering === "string")
|
|
659
|
-
kbPathResolved = paths.engineering;
|
|
660
|
-
}
|
|
661
|
-
catch {
|
|
662
|
-
// Use defaults
|
|
663
|
-
}
|
|
664
|
-
// Read config for full project context construction
|
|
665
|
-
let configForContext = {};
|
|
666
|
-
try {
|
|
667
|
-
const raw = fs.readFileSync(path.join(cwd, ".forge", "config.json"), "utf8");
|
|
668
|
-
configForContext = JSON.parse(raw);
|
|
669
|
-
}
|
|
670
|
-
catch {
|
|
671
|
-
// empty config
|
|
672
|
-
}
|
|
673
|
-
const projectCtx = buildProjectContext({
|
|
674
|
-
projectName: configForContext.project?.name ?? projectName,
|
|
675
|
-
prefix,
|
|
676
|
-
kbPath: kbPathResolved,
|
|
677
|
-
}, configForContext);
|
|
678
|
-
try {
|
|
679
|
-
validateProjectContext(projectCtx);
|
|
680
|
-
writeProjectContext(cwd, projectCtx);
|
|
681
|
-
ctx.ui.notify("〇 project-context.json written.", "info");
|
|
682
|
-
}
|
|
683
|
-
catch (err) {
|
|
684
|
-
const e = err;
|
|
685
|
-
ctx.ui.notify(`△ project-context.json validation failed: ${e.message ?? "unknown"} — proceeding.`, "warning");
|
|
686
|
-
}
|
|
687
|
-
// Calibration baseline
|
|
688
|
-
const baseline = computeCalibrationBaseline(cwd, kbPathResolved, bundledVersion);
|
|
689
|
-
const manageConfigTool = path.join(toolsRoot, "manage-config.cjs");
|
|
690
|
-
if (fs.existsSync(manageConfigTool)) {
|
|
691
|
-
await runToolAdvisory(manageConfigTool, ["set", "calibrationBaseline", JSON.stringify(baseline)], cwd, ctx, "manage-config calibrationBaseline");
|
|
692
|
-
}
|
|
693
|
-
writeInitProgress(cwd, 2);
|
|
694
|
-
ctx.ui.notify("〇 Phase 2 complete.", "info");
|
|
294
|
+
catch {
|
|
295
|
+
// File not yet present — Phase 1 will create it
|
|
695
296
|
}
|
|
696
|
-
// ──
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
const buildInitContextTool = path.join(toolsRoot, "build-init-context.cjs");
|
|
709
|
-
const substituteTool = path.join(toolsRoot, "substitute-placeholders.cjs");
|
|
710
|
-
const buildOverlayTool = path.join(toolsRoot, "build-overlay.cjs");
|
|
711
|
-
const basePackDir = path.join(bundleRoot, ".base-pack");
|
|
712
|
-
// 3a: build-init-context.cjs first build
|
|
713
|
-
if (fs.existsSync(buildInitContextTool)) {
|
|
714
|
-
await runToolAdvisory(buildInitContextTool, [
|
|
715
|
-
"--config",
|
|
716
|
-
path.join(cwd, ".forge", "config.json"),
|
|
717
|
-
"--personas",
|
|
718
|
-
path.join(cwd, ".forge", "personas"),
|
|
719
|
-
"--templates",
|
|
720
|
-
path.join(cwd, ".forge", "templates"),
|
|
721
|
-
"--kb",
|
|
722
|
-
cwd,
|
|
723
|
-
"--out",
|
|
724
|
-
path.join(cwd, ".forge", "init-context.md"),
|
|
725
|
-
"--json-out",
|
|
726
|
-
path.join(cwd, ".forge", "init-context.json"),
|
|
727
|
-
], cwd, ctx, "build-init-context", 30000);
|
|
728
|
-
}
|
|
729
|
-
// 3b: substitute-placeholders.cjs — base-pack materialisation
|
|
730
|
-
if (fs.existsSync(substituteTool) && fs.existsSync(basePackDir)) {
|
|
731
|
-
await runToolAdvisory(substituteTool, [
|
|
732
|
-
"--forge-root",
|
|
733
|
-
bundleRoot,
|
|
734
|
-
"--base-pack",
|
|
735
|
-
basePackDir,
|
|
736
|
-
"--config",
|
|
737
|
-
path.join(cwd, ".forge", "config.json"),
|
|
738
|
-
"--context",
|
|
739
|
-
path.join(cwd, ".forge", "init-context.json"),
|
|
740
|
-
"--out",
|
|
741
|
-
cwd,
|
|
742
|
-
], cwd, ctx, "substitute-placeholders", 60000);
|
|
743
|
-
}
|
|
744
|
-
// 3c: build-overlay.cjs smoke test (exit 1 is advisory)
|
|
745
|
-
if (fs.existsSync(buildOverlayTool)) {
|
|
746
|
-
await runToolAdvisory(buildOverlayTool, ["--task", "INIT-SMOKE-TEST", "--format", "json"], cwd, ctx, "build-overlay smoke (advisory)", 15000);
|
|
747
|
-
}
|
|
748
|
-
// Verify Phase 3 deliverables. substitute-placeholders.cjs is invoked
|
|
749
|
-
// via runToolAdvisory, so a missing/invalid config produces zero
|
|
750
|
-
// output and no exception. Hard-fail here.
|
|
751
|
-
const phase3 = verifyPhase3(cwd);
|
|
752
|
-
if (!phase3.ok) {
|
|
753
|
-
ctx.ui.notify(`× Phase 3 failed: ${phase3.missing.join(", ")}. ` +
|
|
754
|
-
`This usually means substitute-placeholders.cjs ran against an incomplete config. ` +
|
|
755
|
-
`Fix .forge/config.json and run /forge:regenerate, or restart /forge:init from scratch (delete .forge/init-progress.json).`, "error");
|
|
297
|
+
// ── Phases 1–3: descriptor-driven loop ──────────────────────────────
|
|
298
|
+
// Each phase is described by an LlmPhaseDescriptor (forge-init/phase-descriptors.ts).
|
|
299
|
+
// The generic runLlmPhase() runner handles: banner, LLM dispatch / deterministic
|
|
300
|
+
// tool execution, verify, retry steer, user confirm, postVerify, writeInitProgress.
|
|
301
|
+
const PHASES = [PHASE_1, PHASE_2, PHASE_3];
|
|
302
|
+
for (const desc of PHASES) {
|
|
303
|
+
if (startPhase > desc.phaseNum) {
|
|
304
|
+
// Resume path: skip phases already completed
|
|
305
|
+
continue;
|
|
306
|
+
}
|
|
307
|
+
const phaseResult = await runLlmPhase(desc, ctx, cwd, bundleRoot, toolsRoot, projectName, configCache, sendToAgent, () => ctx.waitForIdle(), isNonInteractive);
|
|
308
|
+
if (phaseResult === "abort") {
|
|
756
309
|
return;
|
|
757
310
|
}
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
if (startPhase <= 4) {
|
|
763
|
-
ctx.ui.setStatus?.("forge:init", "Phase 4/4: Register");
|
|
764
|
-
const bannersTool = path.join(toolsRoot, "banners.cjs");
|
|
765
|
-
if (fs.existsSync(bannersTool)) {
|
|
766
|
-
await execFileAsync("node", [bannersTool, "--phase", "4", "4", "Register", "forge"], {
|
|
767
|
-
cwd,
|
|
768
|
-
timeout: 5000,
|
|
769
|
-
}).catch(() => {
|
|
770
|
-
/* non-fatal */
|
|
771
|
-
});
|
|
772
|
-
}
|
|
773
|
-
const manageConfigTool = path.join(toolsRoot, "manage-config.cjs");
|
|
774
|
-
const manageVersionsTool = path.join(toolsRoot, "manage-versions.cjs");
|
|
775
|
-
const generationManifestTool = path.join(toolsRoot, "generation-manifest.cjs");
|
|
776
|
-
const buildPersonaPackTool = path.join(toolsRoot, "build-persona-pack.cjs");
|
|
777
|
-
const buildContextPackTool = path.join(toolsRoot, "build-context-pack.cjs");
|
|
778
|
-
const buildInitContextTool = path.join(toolsRoot, "build-init-context.cjs");
|
|
779
|
-
const seedStoreTool = path.join(toolsRoot, "seed-store.cjs");
|
|
780
|
-
// Step 4-1: write paths.forgeRoot + copy schemas
|
|
781
|
-
// Stamp paths.forgeRoot to the bundle root (dist/forge-payload/) so
|
|
782
|
-
// that the canonical Forge convention "$FORGE_ROOT/tools/<tool>.cjs"
|
|
783
|
-
// resolves correctly. The bundled tools live at
|
|
784
|
-
// dist/forge-payload/tools/ (renamed from .tools/ — the dot prefix
|
|
785
|
-
// broke the convention and forced consumers/workflows to special-case
|
|
786
|
-
// the layout).
|
|
787
|
-
if (fs.existsSync(manageConfigTool)) {
|
|
788
|
-
// Validate that store-cli.cjs is present in the bundled tools dir
|
|
789
|
-
// before stamping. Guards against half-built dist trees.
|
|
790
|
-
let forgeRootToStamp;
|
|
791
|
-
if (isPiRuntime()) {
|
|
792
|
-
const toolsRoot = getBundledToolsRoot();
|
|
793
|
-
const storeCli = path.join(toolsRoot, "store-cli.cjs");
|
|
794
|
-
if (!fs.existsSync(storeCli)) {
|
|
795
|
-
ctx.ui.notify(`× step 4-1 paths.forgeRoot: store-cli.cjs missing from bundled tools (expected: ${storeCli}). ` +
|
|
796
|
-
"Run 'npm run build' to populate dist/forge-payload/tools/. Aborting Phase 4.", "error");
|
|
797
|
-
return;
|
|
798
|
-
}
|
|
799
|
-
forgeRootToStamp = bundleRoot;
|
|
800
|
-
}
|
|
801
|
-
else {
|
|
802
|
-
// Claude Code path (not active today — preserved for future use)
|
|
803
|
-
forgeRootToStamp = bundleRoot;
|
|
804
|
-
}
|
|
805
|
-
await runToolAdvisory(manageConfigTool, ["set", "paths.forgeRoot", forgeRootToStamp], cwd, ctx, "step 4-1 paths.forgeRoot");
|
|
806
|
-
}
|
|
807
|
-
const schemasSrc = path.join(bundleRoot, ".schemas");
|
|
808
|
-
const schemasDest = path.join(cwd, ".forge", "schemas");
|
|
809
|
-
fs.mkdirSync(schemasDest, { recursive: true });
|
|
810
|
-
if (fs.existsSync(schemasSrc)) {
|
|
811
|
-
const schemaFiles = fs.readdirSync(schemasSrc).filter((f) => f.endsWith(".json"));
|
|
812
|
-
for (const f of schemaFiles) {
|
|
813
|
-
try {
|
|
814
|
-
fs.copyFileSync(path.join(schemasSrc, f), path.join(schemasDest, f));
|
|
815
|
-
}
|
|
816
|
-
catch {
|
|
817
|
-
// non-fatal
|
|
818
|
-
}
|
|
819
|
-
}
|
|
820
|
-
ctx.ui.notify(`〇 Copied ${schemaFiles.length} schema files to .forge/schemas/.`, "info");
|
|
821
|
-
}
|
|
822
|
-
// Step 4-1b: enhancement substrate
|
|
823
|
-
const enhancementsDir = path.join(cwd, ".forge", "enhancements");
|
|
824
|
-
fs.mkdirSync(enhancementsDir, { recursive: true });
|
|
825
|
-
const overlaySchemaPath = path.join(schemasSrc, "project-overlay.schema.json");
|
|
826
|
-
if (fs.existsSync(overlaySchemaPath)) {
|
|
311
|
+
// Refresh configCache after Phase 1 writes .forge/config.json so
|
|
312
|
+
// Phase 2, Phase 4, and the post-init report see the values the
|
|
313
|
+
// Phase-1 agent just produced.
|
|
314
|
+
if (desc.phaseNum === 1) {
|
|
827
315
|
try {
|
|
828
|
-
fs.
|
|
316
|
+
configCache = JSON.parse(fs.readFileSync(path.join(cwd, ".forge", "config.json"), "utf8"));
|
|
829
317
|
}
|
|
830
318
|
catch {
|
|
831
|
-
//
|
|
832
|
-
}
|
|
833
|
-
}
|
|
834
|
-
// Step 4-2: manage-versions init
|
|
835
|
-
if (fs.existsSync(manageVersionsTool)) {
|
|
836
|
-
await runToolAdvisory(manageVersionsTool, ["init"], cwd, ctx, "step 4-2 manage-versions");
|
|
837
|
-
}
|
|
838
|
-
// Step 4-3: generation-manifest record-all
|
|
839
|
-
if (fs.existsSync(generationManifestTool)) {
|
|
840
|
-
await runToolAdvisory(generationManifestTool, ["record-all"], cwd, ctx, "step 4-3 generation-manifest", 30000);
|
|
841
|
-
}
|
|
842
|
-
// Step 4-4: build-persona-pack
|
|
843
|
-
if (fs.existsSync(buildPersonaPackTool)) {
|
|
844
|
-
await runToolAdvisory(buildPersonaPackTool, ["--out", path.join(cwd, ".forge", "cache", "persona-pack.json")], cwd, ctx, "step 4-4 build-persona-pack", 30000);
|
|
845
|
-
}
|
|
846
|
-
// Step 4-5: build-context-pack
|
|
847
|
-
try {
|
|
848
|
-
const raw = fs.readFileSync(path.join(cwd, ".forge", "config.json"), "utf8");
|
|
849
|
-
const cfg = JSON.parse(raw);
|
|
850
|
-
const p = cfg.paths;
|
|
851
|
-
if (p && typeof p.engineering === "string")
|
|
852
|
-
kbPathFinal = p.engineering;
|
|
853
|
-
}
|
|
854
|
-
catch {
|
|
855
|
-
// use default "engineering"
|
|
856
|
-
}
|
|
857
|
-
if (fs.existsSync(buildContextPackTool)) {
|
|
858
|
-
await runToolAdvisory(buildContextPackTool, [
|
|
859
|
-
"--arch-dir",
|
|
860
|
-
path.join(cwd, kbPathFinal, "architecture"),
|
|
861
|
-
"--out-md",
|
|
862
|
-
path.join(cwd, ".forge", "cache", "context-pack.md"),
|
|
863
|
-
"--out-json",
|
|
864
|
-
path.join(cwd, ".forge", "cache", "context-pack.json"),
|
|
865
|
-
], cwd, ctx, "step 4-5 build-context-pack", 30000);
|
|
866
|
-
}
|
|
867
|
-
// Step 4-6: build-init-context final rebuild
|
|
868
|
-
if (fs.existsSync(buildInitContextTool)) {
|
|
869
|
-
await runToolAdvisory(buildInitContextTool, [
|
|
870
|
-
"--config",
|
|
871
|
-
path.join(cwd, ".forge", "config.json"),
|
|
872
|
-
"--personas",
|
|
873
|
-
path.join(cwd, ".forge", "personas"),
|
|
874
|
-
"--templates",
|
|
875
|
-
path.join(cwd, ".forge", "templates"),
|
|
876
|
-
"--kb",
|
|
877
|
-
cwd,
|
|
878
|
-
"--out",
|
|
879
|
-
path.join(cwd, ".forge", "init-context.md"),
|
|
880
|
-
"--json-out",
|
|
881
|
-
path.join(cwd, ".forge", "init-context.json"),
|
|
882
|
-
], cwd, ctx, "step 4-6 build-init-context final", 30000);
|
|
883
|
-
}
|
|
884
|
-
// Step 4-7: seed-store
|
|
885
|
-
if (fs.existsSync(seedStoreTool)) {
|
|
886
|
-
await runToolAdvisory(seedStoreTool, [], cwd, ctx, "step 4-7 seed-store", 30000);
|
|
887
|
-
}
|
|
888
|
-
// Step 4-8: update-check cache baseline
|
|
889
|
-
const updateCachePath = path.join(cwd, ".forge", "update-check-cache.json");
|
|
890
|
-
try {
|
|
891
|
-
const pluginPath = path.join(bundleRoot, ".claude-plugin", "plugin.json");
|
|
892
|
-
const pluginRaw = fs.readFileSync(pluginPath, "utf8");
|
|
893
|
-
const plugin = JSON.parse(pluginRaw);
|
|
894
|
-
const cache = {
|
|
895
|
-
lastChecked: new Date().toISOString(),
|
|
896
|
-
installedVersion: plugin.version ?? bundledVersion,
|
|
897
|
-
latestVersion: plugin.version ?? bundledVersion,
|
|
898
|
-
upToDate: true,
|
|
899
|
-
};
|
|
900
|
-
fs.writeFileSync(updateCachePath, JSON.stringify(cache, null, 2) + "\n", "utf8");
|
|
901
|
-
ctx.ui.notify("〇 Update-check cache baseline written.", "info");
|
|
902
|
-
}
|
|
903
|
-
catch {
|
|
904
|
-
ctx.ui.notify("△ Could not write update-check cache — non-fatal.", "warning");
|
|
905
|
-
}
|
|
906
|
-
// Step 4-9: Tomoshibi — invoke refresh-kb-links handler directly
|
|
907
|
-
try {
|
|
908
|
-
const refreshHandler = getRefreshKbLinksHandler();
|
|
909
|
-
const refreshResult = await refreshHandler(cwd);
|
|
910
|
-
for (const msg of refreshResult.messages) {
|
|
911
|
-
ctx.ui.notify(msg, "info");
|
|
912
|
-
}
|
|
913
|
-
if (refreshResult.filesUpdated === 0) {
|
|
914
|
-
ctx.ui.notify("△ Run /forge:refresh-kb-links manually after init completes " +
|
|
915
|
-
"(no agent instruction files found).", "info");
|
|
319
|
+
// Fall back to existing cache — all downstream reads have their own defaults
|
|
916
320
|
}
|
|
917
321
|
}
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
let commandsPrefix = "forge";
|
|
934
|
-
try {
|
|
935
|
-
const cfgRaw = fs.readFileSync(path.join(cwd, ".forge", "config.json"), "utf8");
|
|
936
|
-
const cfg = JSON.parse(cfgRaw);
|
|
937
|
-
const proj = cfg.project;
|
|
938
|
-
if (proj && typeof proj.prefix === "string" && proj.prefix) {
|
|
939
|
-
commandsPrefix = proj.prefix.toLowerCase();
|
|
940
|
-
}
|
|
941
|
-
}
|
|
942
|
-
catch {
|
|
943
|
-
// fall back to "forge"
|
|
944
|
-
}
|
|
945
|
-
const claudeCommandsDir = path.join(cwd, ".claude", "commands", commandsPrefix);
|
|
946
|
-
if (fs.existsSync(claudeCommandsDir)) {
|
|
947
|
-
try {
|
|
948
|
-
fs.rmSync(claudeCommandsDir, { recursive: true, force: true });
|
|
949
|
-
// Remove empty ancestor dirs best-effort
|
|
950
|
-
const parentDir = path.join(cwd, ".claude", "commands");
|
|
951
|
-
try {
|
|
952
|
-
if (fs.readdirSync(parentDir).length === 0) {
|
|
953
|
-
fs.rmdirSync(parentDir);
|
|
954
|
-
const grandparent = path.join(cwd, ".claude");
|
|
955
|
-
if (fs.readdirSync(grandparent).length === 0)
|
|
956
|
-
fs.rmdirSync(grandparent);
|
|
957
|
-
}
|
|
958
|
-
}
|
|
959
|
-
catch {
|
|
960
|
-
// best-effort
|
|
961
|
-
}
|
|
962
|
-
}
|
|
963
|
-
catch (err) {
|
|
964
|
-
const e = err;
|
|
965
|
-
ctx.ui.notify(`△ Could not remove .claude/commands/${commandsPrefix}/: ${e.message ?? "unknown"} — non-fatal.`, "warning");
|
|
966
|
-
}
|
|
967
|
-
}
|
|
322
|
+
}
|
|
323
|
+
// ── Phase 4 — Register (runPhase4) ────────────────────────────────
|
|
324
|
+
if (startPhase <= 4) {
|
|
325
|
+
const phase4Result = await runPhase4({
|
|
326
|
+
cwd,
|
|
327
|
+
bundleRoot,
|
|
328
|
+
toolsRoot,
|
|
329
|
+
projectName,
|
|
330
|
+
configCache,
|
|
331
|
+
ctx,
|
|
332
|
+
isPiRuntime,
|
|
333
|
+
getBundledToolsRoot,
|
|
334
|
+
});
|
|
335
|
+
if (phase4Result === "abort") {
|
|
336
|
+
return;
|
|
968
337
|
}
|
|
969
|
-
//
|
|
970
|
-
|
|
971
|
-
// Completion — delete init-progress
|
|
972
|
-
deleteInitProgress(cwd);
|
|
973
|
-
ctx.ui.notify("〇 Phase 4 complete — /forge:init done.", "info");
|
|
338
|
+
// phase4Result.kbPathFinal is used in the post-init report below
|
|
339
|
+
kbPathFinal = phase4Result.kbPathFinal;
|
|
974
340
|
}
|
|
975
341
|
// ── Post-Phase-4: health check ────────────────────────────────────
|
|
976
342
|
ctx.ui.setStatus?.("forge:init", "Post-init: health check");
|
|
@@ -990,36 +356,28 @@ export function registerForgeInit(pi) {
|
|
|
990
356
|
// materialization-marker checks, audience gates, and dispatch.
|
|
991
357
|
// Errors inside hooks are caught by emitSyntheticEvent — fail-open.
|
|
992
358
|
{
|
|
359
|
+
// Use configCache — valid for both full-run and resumed-init paths.
|
|
360
|
+
// configCache is populated once (after Phase 1 completes or from pre-existing
|
|
361
|
+
// config.json for resumed inits). Non-fatal if cache is empty (empty prefix
|
|
362
|
+
// causes hook to write sentinel under post-init-fired-.json).
|
|
993
363
|
let projectPrefixForHook = "";
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
const proj = cfg.project;
|
|
998
|
-
if (proj && typeof proj.prefix === "string")
|
|
999
|
-
projectPrefixForHook = proj.prefix;
|
|
1000
|
-
}
|
|
1001
|
-
catch {
|
|
1002
|
-
// Non-fatal: if config read fails, emit with empty prefix
|
|
1003
|
-
// (hook will write sentinel under post-init-fired-.json)
|
|
364
|
+
const projForHook = configCache.project;
|
|
365
|
+
if (projForHook && typeof projForHook.prefix === "string") {
|
|
366
|
+
projectPrefixForHook = projForHook.prefix;
|
|
1004
367
|
}
|
|
1005
368
|
await emitSyntheticEvent({ type: "init-complete", projectPrefix: projectPrefixForHook, cwd }, ctx);
|
|
1006
369
|
}
|
|
1007
370
|
// ── Report ────────────────────────────────────────────────────────
|
|
1008
|
-
// FIX BUG-020:
|
|
1009
|
-
//
|
|
1010
|
-
// is
|
|
1011
|
-
//
|
|
1012
|
-
|
|
1013
|
-
const
|
|
1014
|
-
const cfg = JSON.parse(cfgRaw);
|
|
1015
|
-
const p = cfg.paths;
|
|
371
|
+
// FIX BUG-020: use configCache here (populated from config.json after Phase 1
|
|
372
|
+
// or from pre-existing config.json for resumed inits starting at Phase 2+).
|
|
373
|
+
// kbPathFinal is updated inside the Phase-4 block; for Phase-1-3 resumes
|
|
374
|
+
// configCache captures the correct value that Phase 4 would have stamped.
|
|
375
|
+
{
|
|
376
|
+
const p = configCache.paths;
|
|
1016
377
|
if (p && typeof p.engineering === "string" && p.engineering) {
|
|
1017
378
|
kbPathFinal = p.engineering;
|
|
1018
379
|
}
|
|
1019
380
|
}
|
|
1020
|
-
catch {
|
|
1021
|
-
// use default "engineering" already set
|
|
1022
|
-
}
|
|
1023
381
|
ctx.ui.setStatus?.("forge:init", undefined);
|
|
1024
382
|
const kbPath_ = kbPathFinal;
|
|
1025
383
|
// FIX BUG-022 (product call): surface gap details in Report.
|