@entelligentsia/forgecli 1.0.25 → 1.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +341 -0
- package/README.md +2 -0
- package/dist/CHANGELOG-forge-plugin.md +264 -0
- package/dist/CHANGELOG-pi.md +143 -0
- package/dist/bin/argv.d.ts +2 -2
- package/dist/bin/argv.js +37 -0
- package/dist/bin/argv.js.map +1 -1
- package/dist/bin/forge.js +30 -16
- package/dist/bin/forge.js.map +1 -1
- package/dist/bin/init.d.ts +23 -0
- package/dist/bin/init.js +123 -0
- package/dist/bin/init.js.map +1 -0
- package/dist/bin/reset.d.ts +39 -0
- package/dist/bin/reset.js +101 -0
- package/dist/bin/reset.js.map +1 -0
- package/dist/bin/uninstall.d.ts +20 -0
- package/dist/bin/uninstall.js +141 -0
- package/dist/bin/uninstall.js.map +1 -0
- package/dist/extensions/forgecli/claude-bootstrap/bootstrap.d.ts +40 -0
- package/dist/extensions/forgecli/claude-bootstrap/bootstrap.js +384 -0
- package/dist/extensions/forgecli/claude-bootstrap/bootstrap.js.map +1 -0
- package/dist/extensions/forgecli/claude-bootstrap/settings-merge.d.ts +46 -0
- package/dist/extensions/forgecli/claude-bootstrap/settings-merge.js +245 -0
- package/dist/extensions/forgecli/claude-bootstrap/settings-merge.js.map +1 -0
- package/dist/extensions/forgecli/claude-bootstrap/uninstall.d.ts +23 -0
- package/dist/extensions/forgecli/claude-bootstrap/uninstall.js +235 -0
- package/dist/extensions/forgecli/claude-bootstrap/uninstall.js.map +1 -0
- package/dist/extensions/forgecli/commands/reset.d.ts +16 -0
- package/dist/extensions/forgecli/commands/reset.js +83 -0
- package/dist/extensions/forgecli/commands/reset.js.map +1 -0
- package/dist/extensions/forgecli/dashboard/component.js +10 -7
- package/dist/extensions/forgecli/dashboard/component.js.map +1 -1
- package/dist/extensions/forgecli/forge-commands.d.ts +7 -2
- package/dist/extensions/forgecli/forge-commands.js +19 -5
- package/dist/extensions/forgecli/forge-commands.js.map +1 -1
- package/dist/extensions/forgecli/forge-subagent.d.ts +4 -4
- package/dist/extensions/forgecli/hooks/forge-permissions.js +20 -6
- package/dist/extensions/forgecli/hooks/forge-permissions.js.map +1 -1
- package/dist/extensions/forgecli/index.js +6 -3
- package/dist/extensions/forgecli/index.js.map +1 -1
- package/dist/extensions/forgecli/lib/forge-root.d.ts +6 -0
- package/dist/extensions/forgecli/lib/forge-root.js +52 -0
- package/dist/extensions/forgecli/lib/forge-root.js.map +1 -1
- package/dist/extensions/forgecli/lib/payload-manifest.d.ts +62 -0
- package/dist/extensions/forgecli/lib/payload-manifest.js +151 -0
- package/dist/extensions/forgecli/lib/payload-manifest.js.map +1 -0
- package/dist/extensions/forgecli/orchestrators/advisory-render.d.ts +9 -0
- package/dist/extensions/forgecli/orchestrators/advisory-render.js +107 -0
- package/dist/extensions/forgecli/orchestrators/advisory-render.js.map +1 -0
- package/dist/extensions/forgecli/orchestrators/bug/bug-body.d.ts +1 -0
- package/dist/extensions/forgecli/orchestrators/bug/bug-body.js +65 -0
- package/dist/extensions/forgecli/orchestrators/bug/bug-body.js.map +1 -0
- package/dist/extensions/forgecli/orchestrators/bug/bug-id.d.ts +23 -0
- package/dist/extensions/forgecli/orchestrators/bug/bug-id.js +140 -0
- package/dist/extensions/forgecli/orchestrators/bug/bug-id.js.map +1 -0
- package/dist/extensions/forgecli/orchestrators/bug/bug-phase-dispatch.d.ts +54 -0
- package/dist/extensions/forgecli/orchestrators/bug/bug-phase-dispatch.js +349 -0
- package/dist/extensions/forgecli/orchestrators/bug/bug-phase-dispatch.js.map +1 -0
- package/dist/extensions/forgecli/orchestrators/bug/bug-phases.d.ts +11 -0
- package/dist/extensions/forgecli/orchestrators/bug/bug-phases.js +82 -0
- package/dist/extensions/forgecli/orchestrators/bug/bug-phases.js.map +1 -0
- package/dist/extensions/forgecli/orchestrators/bug/bug-state.d.ts +14 -0
- package/dist/extensions/forgecli/orchestrators/bug/bug-state.js +100 -0
- package/dist/extensions/forgecli/orchestrators/bug/bug-state.js.map +1 -0
- package/dist/extensions/forgecli/orchestrators/bug/bug-triage-routing.d.ts +72 -0
- package/dist/extensions/forgecli/orchestrators/bug/bug-triage-routing.js +204 -0
- package/dist/extensions/forgecli/orchestrators/bug/bug-triage-routing.js.map +1 -0
- package/dist/extensions/forgecli/orchestrators/bug/bug-verdict-loop.d.ts +38 -0
- package/dist/extensions/forgecli/orchestrators/bug/bug-verdict-loop.js +198 -0
- package/dist/extensions/forgecli/orchestrators/bug/bug-verdict-loop.js.map +1 -0
- package/dist/extensions/forgecli/orchestrators/bug/bug-verdict.d.ts +3 -0
- package/dist/extensions/forgecli/orchestrators/bug/bug-verdict.js +55 -0
- package/dist/extensions/forgecli/orchestrators/bug/bug-verdict.js.map +1 -0
- package/dist/extensions/forgecli/orchestrators/bug/run-bug-command.d.ts +7 -0
- package/dist/extensions/forgecli/orchestrators/bug/run-bug-command.js +293 -0
- package/dist/extensions/forgecli/orchestrators/bug/run-bug-command.js.map +1 -0
- package/dist/extensions/forgecli/orchestrators/bug/run-bug-pipeline.d.ts +2 -0
- package/dist/extensions/forgecli/orchestrators/bug/run-bug-pipeline.js +501 -0
- package/dist/extensions/forgecli/orchestrators/bug/run-bug-pipeline.js.map +1 -0
- package/dist/extensions/forgecli/orchestrators/bug/run-bug-types.d.ts +41 -0
- package/dist/extensions/forgecli/orchestrators/bug/run-bug-types.js +5 -0
- package/dist/extensions/forgecli/orchestrators/bug/run-bug-types.js.map +1 -0
- package/dist/extensions/forgecli/orchestrators/common/orchestrator-entry.d.ts +43 -0
- package/dist/extensions/forgecli/orchestrators/common/orchestrator-entry.js +85 -0
- package/dist/extensions/forgecli/orchestrators/common/orchestrator-entry.js.map +1 -0
- package/dist/extensions/forgecli/orchestrators/common/orchestrator-misc.d.ts +8 -0
- package/dist/extensions/forgecli/orchestrators/common/orchestrator-misc.js +37 -0
- package/dist/extensions/forgecli/orchestrators/common/orchestrator-misc.js.map +1 -0
- package/dist/extensions/forgecli/orchestrators/common/orchestrator-notify.d.ts +28 -0
- package/dist/extensions/forgecli/orchestrators/common/orchestrator-notify.js +45 -0
- package/dist/extensions/forgecli/orchestrators/common/orchestrator-notify.js.map +1 -0
- package/dist/extensions/forgecli/orchestrators/common/orchestrator-transcript-session.d.ts +26 -0
- package/dist/extensions/forgecli/orchestrators/common/orchestrator-transcript-session.js +75 -0
- package/dist/extensions/forgecli/orchestrators/common/orchestrator-transcript-session.js.map +1 -0
- package/dist/extensions/forgecli/orchestrators/common/recovery-menu.d.ts +24 -0
- package/dist/extensions/forgecli/orchestrators/common/recovery-menu.js +58 -0
- package/dist/extensions/forgecli/orchestrators/common/recovery-menu.js.map +1 -0
- package/dist/extensions/forgecli/orchestrators/common/reset-pipeline.d.ts +53 -0
- package/dist/extensions/forgecli/orchestrators/common/reset-pipeline.js +131 -0
- package/dist/extensions/forgecli/orchestrators/common/reset-pipeline.js.map +1 -0
- package/dist/extensions/forgecli/orchestrators/common/summary-recovery.d.ts +24 -0
- package/dist/extensions/forgecli/orchestrators/common/summary-recovery.js +37 -0
- package/dist/extensions/forgecli/orchestrators/common/summary-recovery.js.map +1 -0
- package/dist/extensions/forgecli/orchestrators/fix-bug.d.ts +9 -93
- package/dist/extensions/forgecli/orchestrators/fix-bug.js +23 -1721
- package/dist/extensions/forgecli/orchestrators/fix-bug.js.map +1 -1
- package/dist/extensions/forgecli/orchestrators/halt-advisor.js +25 -3
- package/dist/extensions/forgecli/orchestrators/halt-advisor.js.map +1 -1
- package/dist/extensions/forgecli/orchestrators/run-sprint.d.ts +3 -12
- package/dist/extensions/forgecli/orchestrators/run-sprint.js +48 -270
- package/dist/extensions/forgecli/orchestrators/run-sprint.js.map +1 -1
- package/dist/extensions/forgecli/orchestrators/run-task.d.ts +10 -214
- package/dist/extensions/forgecli/orchestrators/run-task.js +31 -1481
- package/dist/extensions/forgecli/orchestrators/run-task.js.map +1 -1
- package/dist/extensions/forgecli/orchestrators/sprint/sprint-ceremony.d.ts +33 -0
- package/dist/extensions/forgecli/orchestrators/sprint/sprint-ceremony.js +135 -0
- package/dist/extensions/forgecli/orchestrators/sprint/sprint-ceremony.js.map +1 -0
- package/dist/extensions/forgecli/orchestrators/sprint/sprint-state.d.ts +18 -0
- package/dist/extensions/forgecli/orchestrators/sprint/sprint-state.js +55 -0
- package/dist/extensions/forgecli/orchestrators/sprint/sprint-state.js.map +1 -0
- package/dist/extensions/forgecli/orchestrators/task/run-task-command.d.ts +9 -0
- package/dist/extensions/forgecli/orchestrators/task/run-task-command.js +174 -0
- package/dist/extensions/forgecli/orchestrators/task/run-task-command.js.map +1 -0
- package/dist/extensions/forgecli/orchestrators/task/run-task-pipeline.d.ts +2 -0
- package/dist/extensions/forgecli/orchestrators/task/run-task-pipeline.js +494 -0
- package/dist/extensions/forgecli/orchestrators/task/run-task-pipeline.js.map +1 -0
- package/dist/extensions/forgecli/orchestrators/task/run-task-types.d.ts +62 -0
- package/dist/extensions/forgecli/orchestrators/task/run-task-types.js +5 -0
- package/dist/extensions/forgecli/orchestrators/task/run-task-types.js.map +1 -0
- package/dist/extensions/forgecli/orchestrators/task/task-body.d.ts +4 -0
- package/dist/extensions/forgecli/orchestrators/task/task-body.js +48 -0
- package/dist/extensions/forgecli/orchestrators/task/task-body.js.map +1 -0
- package/dist/extensions/forgecli/orchestrators/task/task-events.d.ts +63 -0
- package/dist/extensions/forgecli/orchestrators/task/task-events.js +185 -0
- package/dist/extensions/forgecli/orchestrators/task/task-events.js.map +1 -0
- package/dist/extensions/forgecli/orchestrators/task/task-gates.d.ts +34 -0
- package/dist/extensions/forgecli/orchestrators/task/task-gates.js +78 -0
- package/dist/extensions/forgecli/orchestrators/task/task-gates.js.map +1 -0
- package/dist/extensions/forgecli/orchestrators/task/task-phase-dispatch.d.ts +42 -0
- package/dist/extensions/forgecli/orchestrators/task/task-phase-dispatch.js +370 -0
- package/dist/extensions/forgecli/orchestrators/task/task-phase-dispatch.js.map +1 -0
- package/dist/extensions/forgecli/orchestrators/task/task-phases.d.ts +17 -0
- package/dist/extensions/forgecli/orchestrators/task/task-phases.js +48 -0
- package/dist/extensions/forgecli/orchestrators/task/task-phases.js.map +1 -0
- package/dist/extensions/forgecli/orchestrators/task/task-record.d.ts +9 -0
- package/dist/extensions/forgecli/orchestrators/task/task-record.js +58 -0
- package/dist/extensions/forgecli/orchestrators/task/task-record.js.map +1 -0
- package/dist/extensions/forgecli/orchestrators/task/task-state.d.ts +14 -0
- package/dist/extensions/forgecli/orchestrators/task/task-state.js +35 -0
- package/dist/extensions/forgecli/orchestrators/task/task-state.js.map +1 -0
- package/dist/extensions/forgecli/orchestrators/task/task-verdict-loop.d.ts +36 -0
- package/dist/extensions/forgecli/orchestrators/task/task-verdict-loop.js +187 -0
- package/dist/extensions/forgecli/orchestrators/task/task-verdict-loop.js.map +1 -0
- package/dist/extensions/forgecli/store/store-resolver.d.ts +15 -0
- package/dist/extensions/forgecli/store/store-resolver.js +118 -18
- package/dist/extensions/forgecli/store/store-resolver.js.map +1 -1
- package/dist/extensions/forgecli/update/forge-update-command.js +10 -7
- package/dist/extensions/forgecli/update/forge-update-command.js.map +1 -1
- package/dist/forge-payload/.base-pack/workflows/collator_agent.md +5 -6
- package/dist/forge-payload/.base-pack/workflows/migrate_structural.md +1 -1
- package/dist/forge-payload/.base-pack/workflows-js/wfl-init.js +449 -0
- package/dist/forge-payload/.claude-plugin/plugin.json +1 -1
- package/dist/forge-payload/.schemas/enum-catalog.json +2 -2
- package/dist/forge-payload/.schemas/migrations.json +170 -0
- package/dist/forge-payload/.schemas/payload-manifest.schema.json +100 -0
- package/dist/forge-payload/commands/add-pipeline.md +1 -1
- package/dist/forge-payload/commands/add-task.md +3 -3
- package/dist/forge-payload/{.base-pack/commands → commands}/approve.md +2 -2
- package/dist/forge-payload/commands/ask.md +1 -1
- package/dist/forge-payload/commands/check-agent.md +8 -24
- package/dist/forge-payload/{.base-pack/commands → commands}/collate.md +2 -2
- package/dist/forge-payload/{.base-pack/commands → commands}/commit.md +2 -2
- package/dist/forge-payload/commands/config.md +1 -1
- package/dist/forge-payload/commands/enhance.md +31 -5
- package/dist/forge-payload/{.base-pack/commands → commands}/fix-bug.md +2 -2
- package/dist/forge-payload/commands/health.md +1 -1
- package/dist/forge-payload/{.base-pack/commands → commands}/implement.md +2 -2
- package/dist/forge-payload/commands/init.md +186 -67
- package/dist/forge-payload/{.base-pack/commands → commands}/new-sprint.md +2 -2
- package/dist/forge-payload/{.base-pack/commands → commands}/plan-sprint.md +2 -2
- package/dist/forge-payload/{.base-pack/commands → commands}/plan.md +2 -2
- package/dist/forge-payload/commands/rebuild.md +3 -3
- package/dist/forge-payload/commands/remove.md +1 -1
- package/dist/forge-payload/commands/repair.md +1 -1
- package/dist/forge-payload/commands/report-bug.md +1 -1
- package/dist/forge-payload/commands/reset.md +117 -0
- package/dist/forge-payload/{.base-pack/commands → commands}/retro.md +2 -2
- package/dist/forge-payload/{.base-pack/commands → commands}/review-code.md +2 -2
- package/dist/forge-payload/{.base-pack/commands → commands}/review-plan.md +2 -2
- package/dist/forge-payload/{.base-pack/commands → commands}/run-sprint.md +2 -2
- package/dist/forge-payload/{.base-pack/commands → commands}/run-task.md +2 -2
- package/dist/forge-payload/commands/status.md +1 -1
- package/dist/forge-payload/commands/update.md +3 -3
- package/dist/forge-payload/{.base-pack/commands → commands}/validate.md +2 -2
- package/dist/forge-payload/hooks/forge-permissions.cjs +29 -6
- package/dist/forge-payload/hooks/lib/common.cjs +228 -0
- package/dist/forge-payload/hooks/lib/plugin-detection.cjs +106 -0
- package/dist/forge-payload/hooks/lib/update-msg.cjs +23 -0
- package/dist/forge-payload/hooks/lib/update-url.cjs +46 -0
- package/dist/forge-payload/hooks/lib/write-registry.js +53 -0
- package/dist/forge-payload/init/discovery/discover-database.md +32 -0
- package/dist/forge-payload/init/discovery/discover-processes.md +31 -0
- package/dist/forge-payload/init/discovery/discover-routing.md +31 -0
- package/dist/forge-payload/init/discovery/discover-stack.md +33 -0
- package/dist/forge-payload/init/discovery/discover-testing.md +34 -0
- package/dist/forge-payload/init/generation/generate-commands.md +171 -0
- package/dist/forge-payload/init/generation/generate-kb-doc.md +60 -0
- package/dist/forge-payload/init/generation/generate-persona.md +73 -0
- package/dist/forge-payload/init/generation/generate-skill.md +66 -0
- package/dist/forge-payload/init/generation/generate-template.md +60 -0
- package/dist/forge-payload/init/generation/generate-tools.md +133 -0
- package/dist/forge-payload/init/generation/generate-workflows.md +78 -0
- package/dist/forge-payload/init/phases/phase-1-collect.md +10 -2
- package/dist/forge-payload/init/phases/phase-3-materialize.md +5 -1
- package/dist/forge-payload/init/phases/phase-4-register.md +8 -0
- package/dist/forge-payload/init/workflow-gen-plan.json +17 -0
- package/dist/forge-payload/integrity.json +33 -18
- package/dist/forge-payload/meta/workflows/meta-collate.md +5 -6
- package/dist/forge-payload/meta/workflows/meta-migrate.md +1 -1
- package/dist/forge-payload/payload-manifest.json +314 -0
- package/dist/forge-payload/schemas/enum-catalog.json +2 -2
- package/dist/forge-payload/schemas/payload-manifest.schema.json +100 -0
- package/dist/forge-payload/schemas/structure-manifest.json +5 -12
- package/dist/forge-payload/tools/forge-preflight.cjs +268 -0
- package/dist/forge-payload/tools/lib/paths.cjs +12 -11
- package/dist/forge-payload/tools/lib/pricing.cjs +31 -11
- package/dist/forge-payload/tools/query-logger.cjs +34 -0
- package/dist/forge-payload/tools/reset-plan.cjs +210 -0
- package/dist/forge-payload/tools/store.cjs +4 -1
- package/dist/forge-payload/tools/substitute-placeholders.cjs +14 -7
- package/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.js +8 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.d.ts +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.js +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/execution-env.d.ts +4 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/execution-env.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/execution-env.js +3 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/execution-env.js.map +1 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo/jsonl.d.ts +20 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo/jsonl.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo/jsonl.js +92 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo/jsonl.js.map +1 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo/memory.d.ts +18 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo/memory.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo/memory.js +42 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo/memory.js.map +1 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo/shared.d.ts +10 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo/shared.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo/shared.js +31 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo/shared.js.map +1 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/storage/jsonl.d.ts +30 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/storage/jsonl.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/storage/jsonl.js +170 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/storage/jsonl.js.map +1 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/storage/memory.d.ts +26 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/storage/memory.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/storage/memory.js +90 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/storage/memory.js.map +1 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/types.d.ts +6 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/types.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/types.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/package.json +2 -2
- package/node_modules/@earendil-works/pi-ai/README.md +12 -4
- package/node_modules/@earendil-works/pi-ai/dist/env-api-keys.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/env-api-keys.js +3 -0
- package/node_modules/@earendil-works/pi-ai/dist/env-api-keys.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/image-models.generated.d.ts +45 -0
- package/node_modules/@earendil-works/pi-ai/dist/image-models.generated.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/image-models.generated.js +45 -0
- package/node_modules/@earendil-works/pi-ai/dist/image-models.generated.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/models.generated.d.ts +1804 -815
- package/node_modules/@earendil-works/pi-ai/dist/models.generated.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/models.generated.js +2031 -1384
- package/node_modules/@earendil-works/pi-ai/dist/models.generated.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.js +71 -27
- package/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.d.ts +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.js +24 -16
- package/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.js +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex-responses.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex-responses.js +3 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex-responses.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-completions.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-completions.js +35 -13
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-completions.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-responses-shared.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-responses-shared.js +2 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-responses-shared.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-responses.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-responses.js +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-responses.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/types.d.ts +12 -4
- package/node_modules/@earendil-works/pi-ai/dist/types.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/types.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/github-copilot.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/github-copilot.js +13 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/github-copilot.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/openai-codex.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/openai-codex.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/openai-codex.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.d.ts +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.js +3 -2
- package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/package.json +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/CHANGELOG.md +143 -0
- package/node_modules/@earendil-works/pi-coding-agent/README.md +26 -4
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/args.d.ts +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/args.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/args.js +11 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/args.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/project-trust.d.ts +10 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/project-trust.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/project-trust.js +48 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/project-trust.js.map +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/startup-ui.d.ts +17 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/startup-ui.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/startup-ui.js +128 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/startup-ui.js.map +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/config.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/config.js +9 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/config.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session-runtime.d.ts +3 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session-runtime.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session-runtime.js +4 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session-runtime.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session-services.d.ts +2 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session-services.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session-services.js +2 -2
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session-services.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session.d.ts +4 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session.js +16 -3
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/auth-storage.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/auth-storage.js +4 -3
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/auth-storage.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/branch-summarization.d.ts +3 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/branch-summarization.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/branch-summarization.js +9 -3
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/branch-summarization.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/utils.d.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/utils.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/utils.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/utils.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/experimental.d.ts +2 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/experimental.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/experimental.js +4 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/experimental.js.map +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/export-html/template.js +19 -6
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/index.d.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/index.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/index.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/loader.d.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/loader.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/loader.js +4 -4
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/loader.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/runner.d.ts +10 -3
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/runner.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/runner.js +47 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/runner.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/types.d.ts +28 -2
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/types.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/types.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/footer-data-provider.d.ts +2 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/footer-data-provider.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/footer-data-provider.js +29 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/footer-data-provider.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/index.d.ts +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/index.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/index.js +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/index.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/model-registry.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/model-registry.js +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/model-registry.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/model-resolver.d.ts +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/model-resolver.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/model-resolver.js +44 -5
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/model-resolver.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/package-manager.d.ts +3 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/package-manager.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/package-manager.js +47 -13
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/package-manager.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/project-trust.d.ts +15 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/project-trust.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/project-trust.js +58 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/project-trust.js.map +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/prompt-templates.d.ts +2 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/prompt-templates.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/prompt-templates.js +24 -26
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/prompt-templates.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/provider-attribution.d.ts +4 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/provider-attribution.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/provider-attribution.js +72 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/provider-attribution.js.map +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/provider-display-names.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/provider-display-names.js +3 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/provider-display-names.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/resource-loader.d.ts +13 -2
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/resource-loader.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/resource-loader.js +112 -37
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/resource-loader.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/sdk.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/sdk.js +7 -33
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/sdk.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/session-manager.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/session-manager.js +103 -70
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/session-manager.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/settings-manager.d.ts +20 -2
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/settings-manager.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/settings-manager.js +97 -30
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/settings-manager.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/slash-commands.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/slash-commands.js +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/slash-commands.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/bash.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/bash.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/bash.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/find.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/find.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/find.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/grep.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/grep.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/grep.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/ls.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/ls.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/ls.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/read.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/read.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/read.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/write.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/write.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/write.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/trust-manager.d.ts +36 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/trust-manager.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/trust-manager.js +202 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/trust-manager.js.map +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/index.d.ts +5 -4
- package/node_modules/@earendil-works/pi-coding-agent/dist/index.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/index.js +2 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/index.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/main.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/main.js +72 -32
- package/node_modules/@earendil-works/pi-coding-agent/dist/main.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/migrations.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/migrations.js +39 -34
- package/node_modules/@earendil-works/pi-coding-agent/dist/migrations.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/index.d.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/index.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/index.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/bash-execution.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/bash-execution.js +2 -2
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/bash-execution.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/first-time-setup.d.ts +25 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/first-time-setup.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/first-time-setup.js +103 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/first-time-setup.js.map +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/footer.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/footer.js +7 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/footer.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/index.d.ts +2 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/index.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/index.js +2 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/index.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/login-dialog.d.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/login-dialog.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/login-dialog.js +10 -13
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/login-dialog.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/settings-selector.d.ts +3 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/settings-selector.js +20 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/settings-selector.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/tool-execution.js +22 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/tool-execution.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/trust-selector.d.ts +23 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/trust-selector.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/trust-selector.js +91 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/trust-selector.js.map +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/interactive-mode.d.ts +7 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/interactive-mode.js +101 -5
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/print-mode.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/print-mode.js +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/print-mode.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/rpc/rpc-mode.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/rpc/rpc-mode.js +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/rpc/rpc-mode.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/package-manager-cli.d.ts +6 -2
- package/node_modules/@earendil-works/pi-coding-agent/dist/package-manager-cli.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/package-manager-cli.js +111 -10
- package/node_modules/@earendil-works/pi-coding-agent/dist/package-manager-cli.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/changelog.d.ts +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/changelog.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/changelog.js +78 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/changelog.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/git.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/git.js +54 -22
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/git.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/open-browser.d.ts +9 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/open-browser.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/open-browser.js +22 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/open-browser.js.map +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/containerization.md +111 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/docs.json +8 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/extensions.md +67 -13
- package/node_modules/@earendil-works/pi-coding-agent/docs/index.md +2 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/models.md +4 -3
- package/node_modules/@earendil-works/pi-coding-agent/docs/packages.md +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/docs/prompt-templates.md +9 -2
- package/node_modules/@earendil-works/pi-coding-agent/docs/providers.md +5 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/rpc.md +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/docs/sdk.md +5 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/security.md +59 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/settings.md +15 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/skills.md +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/docs/terminal-setup.md +36 -2
- package/node_modules/@earendil-works/pi-coding-agent/docs/themes.md +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/docs/tmux.md +4 -2
- package/node_modules/@earendil-works/pi-coding-agent/docs/tui.md +10 -1
- package/node_modules/@earendil-works/pi-coding-agent/docs/usage.md +19 -2
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/README.md +2 -0
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/custom-header.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/doom-overlay/index.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/gondolin/index.ts +531 -0
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/gondolin/package-lock.json +185 -0
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/gondolin/package.json +19 -0
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/handoff.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/interactive-shell.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/overlay-qa-tests.ts +152 -81
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/project-trust.ts +64 -0
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/qna.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/question.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/questionnaire.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/sandbox/package.json +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/snake.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/space-invaders.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/summarize.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/tic-tac-toe.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/todo.ts +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/tools.ts +5 -0
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/with-deps/package.json +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/npm-shrinkwrap.json +12 -419
- package/node_modules/@earendil-works/pi-coding-agent/package.json +5 -8
- package/node_modules/@earendil-works/pi-tui/README.md +13 -1
- package/node_modules/@earendil-works/pi-tui/dist/autocomplete.d.ts +2 -0
- package/node_modules/@earendil-works/pi-tui/dist/autocomplete.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/autocomplete.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/editor.d.ts +6 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/editor.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/editor.js +102 -43
- package/node_modules/@earendil-works/pi-tui/dist/components/editor.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/markdown.d.ts +2 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/markdown.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/markdown.js +11 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/markdown.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/fuzzy.d.ts +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/fuzzy.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/fuzzy.js +2 -2
- package/node_modules/@earendil-works/pi-tui/dist/fuzzy.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/index.d.ts +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/index.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/index.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/terminal.d.ts +4 -7
- package/node_modules/@earendil-works/pi-tui/dist/terminal.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/terminal.js +38 -77
- package/node_modules/@earendil-works/pi-tui/dist/terminal.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/tui.d.ts +20 -4
- package/node_modules/@earendil-works/pi-tui/dist/tui.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/tui.js +244 -42
- package/node_modules/@earendil-works/pi-tui/dist/tui.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/utils.d.ts +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/utils.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/utils.js +46 -15
- package/node_modules/@earendil-works/pi-tui/dist/utils.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/package.json +1 -1
- package/package.json +8 -7
- package/dist/forge-payload/.base-pack/commands/check-agent.md +0 -22
- package/dist/forge-payload/.base-pack/commands/enhance.md +0 -37
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reset.js","sourceRoot":"","sources":["../../src/bin/reset.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,EAAE;AACF,2EAA2E;AAC3E,4EAA4E;AAC5E,0EAA0E;AAC1E,gFAAgF;AAChF,oEAAoE;AACpE,EAAE;AACF,wEAAwE;AACxE,mEAAmE;AACnE,+BAA+B;AAC/B,EAAE;AACF,wDAAwD;AACxD,4CAA4C;AAC5C,4DAA4D;AAC5D,EAAE;AACF,6EAA6E;AAC7E,yCAAyC;AAEzC,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC,OAAO,EAGN,kBAAkB,GAClB,MAAM,+DAA+D,CAAC;AAEvE,MAAM,KAAK,GACV,wDAAwD;IACxD,qEAAqE;IACrE,uCAAuC;IACvC,kHAAkH;IAClH,wGAAwG;IACxG,mEAAmE,CAAC;AAYrE,6EAA6E;AAC7E,MAAM,UAAU,SAAS,CAAC,EAAU;IACnC,OAAO,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;AAC3C,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,cAAc,CAAC,IAAuB;IACrD,IAAI,EAAsB,CAAC;IAC3B,IAAI,OAA2B,CAAC;IAChC,IAAI,IAAiC,CAAC;IAEtC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACtC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,IAAI,CAAC,KAAK,MAAM,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;YAChC,OAAO,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;QACrB,CAAC;aAAM,IAAI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;QAC1D,aAAa,MAAM,CAAC,SAAS,WAAW,MAAM,CAAC,UAAU,MAAM;QAC/D,kBAAkB,SAAS,EAAE,CAC9B,CAAC;IACF,OAAO,CAAC,CAAC;AACV,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface UninstallArgs {
|
|
2
|
+
platform: "claude";
|
|
3
|
+
dir: string;
|
|
4
|
+
purge: boolean;
|
|
5
|
+
yes: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface UninstallArgsError {
|
|
8
|
+
error: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Parse subcommand args for `forge uninstall`.
|
|
12
|
+
*
|
|
13
|
+
* Expected forms:
|
|
14
|
+
* forge uninstall claude → dir = cwd
|
|
15
|
+
* forge uninstall claude <dir> → dir = <dir>
|
|
16
|
+
* forge uninstall claude [dir] --purge → also remove config + store
|
|
17
|
+
* forge uninstall claude [dir] --yes|-y → skip the [y/N] confirm
|
|
18
|
+
*/
|
|
19
|
+
export declare function parseUninstallArgs(args: readonly string[]): UninstallArgs | UninstallArgsError;
|
|
20
|
+
export declare function runUninstall(args: readonly string[]): Promise<number>;
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
// forge uninstall — deterministic reverse of `4ge init claude` (counterpart to init.ts).
|
|
2
|
+
//
|
|
3
|
+
// `4ge uninstall claude [dir] [--purge] [--yes]` removes the Forge scaffold a
|
|
4
|
+
// prior `4ge init claude` placed in a project. By default it preserves user
|
|
5
|
+
// data (.forge/config.json, .forge/store/**, the KB folder); --purge also
|
|
6
|
+
// removes the config + store. A [y/N] confirmation guards the destructive op
|
|
7
|
+
// unless --yes / -y or FORGE_NON_INTERACTIVE=1.
|
|
8
|
+
//
|
|
9
|
+
// Structural convention mirrors init.ts / update-cli.ts:
|
|
10
|
+
// - parseUninstallArgs(args): pure arg parser
|
|
11
|
+
// - runUninstall(args): async entry point, returns exit code
|
|
12
|
+
//
|
|
13
|
+
// Iron-Law boundary (IL6): no shell-string interpolation; pure fs in the core.
|
|
14
|
+
import * as path from "node:path";
|
|
15
|
+
import * as readline from "node:readline";
|
|
16
|
+
import { fileURLToPath } from "node:url";
|
|
17
|
+
import { uninstallClaudeProject } from "../extensions/forgecli/claude-bootstrap/uninstall.js";
|
|
18
|
+
// ── Payload root resolution (same logic as init.ts) ───────────────────────────
|
|
19
|
+
const _BIN_DIR = path.dirname(fileURLToPath(import.meta.url));
|
|
20
|
+
const _DIST_DIR = path.resolve(_BIN_DIR, "..");
|
|
21
|
+
const _PKG_ROOT = path.resolve(_DIST_DIR, "..");
|
|
22
|
+
function getBundledPayloadRoot() {
|
|
23
|
+
return path.join(_PKG_ROOT, "dist", "forge-payload");
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Parse subcommand args for `forge uninstall`.
|
|
27
|
+
*
|
|
28
|
+
* Expected forms:
|
|
29
|
+
* forge uninstall claude → dir = cwd
|
|
30
|
+
* forge uninstall claude <dir> → dir = <dir>
|
|
31
|
+
* forge uninstall claude [dir] --purge → also remove config + store
|
|
32
|
+
* forge uninstall claude [dir] --yes|-y → skip the [y/N] confirm
|
|
33
|
+
*/
|
|
34
|
+
export function parseUninstallArgs(args) {
|
|
35
|
+
if (args.length === 0) {
|
|
36
|
+
return {
|
|
37
|
+
error: "forge uninstall: platform argument required.\n" +
|
|
38
|
+
"Usage: forge uninstall claude [dir] [--purge] [--yes]\n" +
|
|
39
|
+
" claude Remove the Forge scaffold from a Claude Code (.claude/) project",
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
const platform = args[0];
|
|
43
|
+
if (platform !== "claude") {
|
|
44
|
+
return {
|
|
45
|
+
error: `forge uninstall: unknown platform '${platform}'.\n` +
|
|
46
|
+
"Supported platforms: claude\n" +
|
|
47
|
+
"Usage: forge uninstall claude [dir] [--purge] [--yes]",
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
let dir;
|
|
51
|
+
let purge = false;
|
|
52
|
+
let yes = false;
|
|
53
|
+
for (const t of args.slice(1)) {
|
|
54
|
+
if (t === "--purge") {
|
|
55
|
+
purge = true;
|
|
56
|
+
}
|
|
57
|
+
else if (t === "--yes" || t === "-y") {
|
|
58
|
+
yes = true;
|
|
59
|
+
}
|
|
60
|
+
else if (t.startsWith("-")) {
|
|
61
|
+
return {
|
|
62
|
+
error: `forge uninstall: unknown option ${t}. Valid options: --purge, --yes`,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
else if (dir === undefined) {
|
|
66
|
+
dir = path.resolve(t);
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
return { error: `forge uninstall: unexpected extra argument '${t}'.` };
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return { platform: "claude", dir: dir ?? process.cwd(), purge, yes };
|
|
73
|
+
}
|
|
74
|
+
// ── Confirmation prompt (mirrors update-cli.ts) ───────────────────────────────
|
|
75
|
+
async function askConfirm(question) {
|
|
76
|
+
const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
|
|
77
|
+
return new Promise((resolve) => {
|
|
78
|
+
rl.question(`${question} [y/N] `, (answer) => {
|
|
79
|
+
rl.close();
|
|
80
|
+
resolve(/^y(es)?$/i.test(answer.trim()));
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
// ── Entry point ───────────────────────────────────────────────────────────────
|
|
85
|
+
export async function runUninstall(args) {
|
|
86
|
+
const parsed = parseUninstallArgs(args);
|
|
87
|
+
if ("error" in parsed) {
|
|
88
|
+
process.stderr.write(`${parsed.error}\n`);
|
|
89
|
+
return 1;
|
|
90
|
+
}
|
|
91
|
+
const { dir, purge, yes } = parsed;
|
|
92
|
+
const payloadRoot = getBundledPayloadRoot();
|
|
93
|
+
// Confirmation gate (skipped by --yes / -y / FORGE_NON_INTERACTIVE=1).
|
|
94
|
+
const autoYes = yes || process.env.FORGE_NON_INTERACTIVE === "1";
|
|
95
|
+
if (!autoYes) {
|
|
96
|
+
const scope = purge
|
|
97
|
+
? "the Forge scaffold AND your .forge/config.json + .forge/store/** (sprints, tasks, bugs, events)"
|
|
98
|
+
: "the Forge scaffold (config.json, store, and the KB folder are preserved)";
|
|
99
|
+
process.stdout.write(`forge uninstall claude — this will remove ${scope} from:\n ${dir}\n`);
|
|
100
|
+
const proceed = await askConfirm("Proceed?");
|
|
101
|
+
if (!proceed) {
|
|
102
|
+
process.stdout.write("forge uninstall: aborted — nothing was removed.\n");
|
|
103
|
+
return 0;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
let result;
|
|
107
|
+
try {
|
|
108
|
+
result = uninstallClaudeProject({ dir, payloadRoot, purge });
|
|
109
|
+
}
|
|
110
|
+
catch (err) {
|
|
111
|
+
const e = err;
|
|
112
|
+
process.stderr.write(`forge uninstall: failed: ${e.message ?? String(err)}\n`);
|
|
113
|
+
return 1;
|
|
114
|
+
}
|
|
115
|
+
if (!result.bootstrapped) {
|
|
116
|
+
for (const w of result.warnings)
|
|
117
|
+
process.stderr.write(` ✗ ${w}\n`);
|
|
118
|
+
return 1;
|
|
119
|
+
}
|
|
120
|
+
if (result.removed.length > 0) {
|
|
121
|
+
process.stdout.write(`\nRemoved (${result.removed.length}):\n`);
|
|
122
|
+
for (const p of result.removed)
|
|
123
|
+
process.stdout.write(` - ${p}\n`);
|
|
124
|
+
}
|
|
125
|
+
else {
|
|
126
|
+
process.stdout.write("\nNothing to remove — project already clean of the Forge scaffold.\n");
|
|
127
|
+
}
|
|
128
|
+
if (result.kept.length > 0) {
|
|
129
|
+
process.stdout.write(`\nPreserved (user data — use --purge to remove):\n`);
|
|
130
|
+
for (const p of result.kept)
|
|
131
|
+
process.stdout.write(` ○ ${p}\n`);
|
|
132
|
+
}
|
|
133
|
+
if (result.warnings.length > 0) {
|
|
134
|
+
process.stdout.write(`\nWarnings:\n`);
|
|
135
|
+
for (const w of result.warnings)
|
|
136
|
+
process.stdout.write(` △ ${w}\n`);
|
|
137
|
+
}
|
|
138
|
+
process.stdout.write(`\n✓ forge uninstall complete — ${dir}\n`);
|
|
139
|
+
return result.ok ? 0 : 1;
|
|
140
|
+
}
|
|
141
|
+
//# sourceMappingURL=uninstall.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uninstall.js","sourceRoot":"","sources":["../../src/bin/uninstall.ts"],"names":[],"mappings":"AAAA,yFAAyF;AACzF,EAAE;AACF,8EAA8E;AAC9E,4EAA4E;AAC5E,0EAA0E;AAC1E,6EAA6E;AAC7E,gDAAgD;AAChD,EAAE;AACF,yDAAyD;AACzD,gDAAgD;AAChD,+DAA+D;AAC/D,EAAE;AACF,+EAA+E;AAE/E,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,sBAAsB,EAAE,MAAM,sDAAsD,CAAC;AAE9F,iFAAiF;AAEjF,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAC9D,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;AAC/C,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAEhD,SAAS,qBAAqB;IAC7B,OAAO,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,eAAe,CAAC,CAAC;AACtD,CAAC;AAeD;;;;;;;;GAQG;AACH,MAAM,UAAU,kBAAkB,CAAC,IAAuB;IACzD,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACvB,OAAO;YACN,KAAK,EACJ,gDAAgD;gBAChD,yDAAyD;gBACzD,6EAA6E;SAC9E,CAAC;IACH,CAAC;IAED,MAAM,QAAQ,GAAG,IAAI,CAAC,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AC,MAAM,GAAG,CAAC,EAAE,CAAC;QAChC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;QACtC,KAAK,MAAM,CAAC,IAAI,MAAM,CAAC,QAAQ;YAAE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACrE,CAAC;IAED,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,kCAAkC,GAAG,IAAI,CAAC,CAAC;IAChE,OAAO,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1B,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export interface BootstrapOptions {
|
|
2
|
+
/** Target project root (absolute path). */
|
|
3
|
+
dir: string;
|
|
4
|
+
/** Absolute path to the dist/forge-payload/ directory. */
|
|
5
|
+
payloadRoot: string;
|
|
6
|
+
}
|
|
7
|
+
/** Preflight check results (Step 9). */
|
|
8
|
+
export interface BootstrapPreflight {
|
|
9
|
+
/** True if the claude binary was found on PATH and responded to --version. */
|
|
10
|
+
claudeAvailable: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Always false in T03 — no reliable offline check for workflow-tool support.
|
|
13
|
+
* Confirmed at runtime on first /forge:init.
|
|
14
|
+
*/
|
|
15
|
+
workflowToolChecked: boolean;
|
|
16
|
+
/** Non-fatal preflight warnings. */
|
|
17
|
+
warnings: string[];
|
|
18
|
+
}
|
|
19
|
+
export interface BootstrapResult {
|
|
20
|
+
ok: boolean;
|
|
21
|
+
/** Paths created this run (dirs and files). */
|
|
22
|
+
created: string[];
|
|
23
|
+
/** Paths already present and unchanged (idempotent skip). */
|
|
24
|
+
skipped: string[];
|
|
25
|
+
/** Non-fatal issues encountered. */
|
|
26
|
+
warnings: string[];
|
|
27
|
+
/** Preflight check results (Step 9, FORGE-S31-T03). */
|
|
28
|
+
preflight: BootstrapPreflight;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Bootstrap a Claude Code project from the bundled forge-payload.
|
|
32
|
+
*
|
|
33
|
+
* This function is deterministic and idempotent:
|
|
34
|
+
* - Running against a fresh dir scaffolds everything.
|
|
35
|
+
* - Running against a partially-bootstrapped dir repairs only missing items.
|
|
36
|
+
* - Running against a fully-bootstrapped dir is a no-op (byte-identical).
|
|
37
|
+
*
|
|
38
|
+
* .forge/config.json and .forge/store/** are never touched.
|
|
39
|
+
*/
|
|
40
|
+
export declare function bootstrapClaudeProject(opts: BootstrapOptions): BootstrapResult;
|
|
@@ -0,0 +1,384 @@
|
|
|
1
|
+
// claude-bootstrap/bootstrap.ts — deterministic Claude Code project bootstrap (FORGE-S31-T02 + T03)
|
|
2
|
+
//
|
|
3
|
+
// Scaffolds a Claude Code project from the bundled forge-payload in seconds.
|
|
4
|
+
// Zero LLM tokens, zero network access, pure fs operations.
|
|
5
|
+
//
|
|
6
|
+
// Grep-negative ACs (enforced by test):
|
|
7
|
+
// - No fetch/https/network imports
|
|
8
|
+
// - No writes to .forge/store/
|
|
9
|
+
// - No sendUserMessage, no ctx.ui.*
|
|
10
|
+
//
|
|
11
|
+
// Idempotency contract:
|
|
12
|
+
// - Running against a fully-bootstrapped dir → all paths exist → all skipped →
|
|
13
|
+
// dir tree byte-identical to previous run.
|
|
14
|
+
// - Running against a partial bootstrap → only missing files/dirs created.
|
|
15
|
+
// - .forge/config.json, .forge/store/**, KB folder are NEVER touched.
|
|
16
|
+
import * as child_process from "node:child_process";
|
|
17
|
+
import * as crypto from "node:crypto";
|
|
18
|
+
import * as fs from "node:fs";
|
|
19
|
+
import * as path from "node:path";
|
|
20
|
+
import { applySelect, installEntries, loadManifest } from "../lib/payload-manifest.js";
|
|
21
|
+
import { mergeForgeHooks } from "./settings-merge.js";
|
|
22
|
+
// ── Private helpers ───────────────────────────────────────────────────────────
|
|
23
|
+
// ── Gitignore patterns (mirrors phase4-register.ts) ──────────────────────────
|
|
24
|
+
const GITIGNORE_FORGE_PATTERNS = [".forge/store/events/", ".forge/store/events", ".forge/store/", ".forge/"];
|
|
25
|
+
const GITIGNORE_APPEND_BLOCK = "\n# Forge — transient agent event logs (one file per phase, do not commit)\n.forge/store/events/\n";
|
|
26
|
+
/**
|
|
27
|
+
* Idempotent .gitignore update. Pure function — returns outcome string.
|
|
28
|
+
* Does not create .gitignore if absent.
|
|
29
|
+
*/
|
|
30
|
+
function updateGitignorePure(gitignorePath) {
|
|
31
|
+
if (!fs.existsSync(gitignorePath))
|
|
32
|
+
return "absent";
|
|
33
|
+
let content;
|
|
34
|
+
try {
|
|
35
|
+
content = fs.readFileSync(gitignorePath, "utf8");
|
|
36
|
+
}
|
|
37
|
+
catch {
|
|
38
|
+
return "error";
|
|
39
|
+
}
|
|
40
|
+
const lines = content.split("\n");
|
|
41
|
+
const alreadyIgnored = lines.some((line) => {
|
|
42
|
+
const trimmed = line.trim();
|
|
43
|
+
if (!trimmed || trimmed.startsWith("#"))
|
|
44
|
+
return false;
|
|
45
|
+
return GITIGNORE_FORGE_PATTERNS.some((pat) => trimmed.includes(pat));
|
|
46
|
+
});
|
|
47
|
+
if (alreadyIgnored)
|
|
48
|
+
return "already-present";
|
|
49
|
+
try {
|
|
50
|
+
fs.appendFileSync(gitignorePath, GITIGNORE_APPEND_BLOCK, "utf8");
|
|
51
|
+
return "appended";
|
|
52
|
+
}
|
|
53
|
+
catch {
|
|
54
|
+
return "error";
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Preflight check for claude binary reachability (Step 9).
|
|
59
|
+
* Non-fatal — returns result rather than throwing.
|
|
60
|
+
*/
|
|
61
|
+
function runPreflight() {
|
|
62
|
+
const preflight = {
|
|
63
|
+
claudeAvailable: false,
|
|
64
|
+
workflowToolChecked: false,
|
|
65
|
+
warnings: [],
|
|
66
|
+
};
|
|
67
|
+
try {
|
|
68
|
+
child_process.execFileSync("claude", ["--version"], { timeout: 5000, stdio: "pipe" });
|
|
69
|
+
preflight.claudeAvailable = true;
|
|
70
|
+
}
|
|
71
|
+
catch {
|
|
72
|
+
preflight.claudeAvailable = false;
|
|
73
|
+
preflight.warnings.push("Claude Code not found on PATH — install Claude Code (https://code.claude.com) " +
|
|
74
|
+
"and ensure 'claude' is on your PATH before opening the project.");
|
|
75
|
+
}
|
|
76
|
+
// workflowToolChecked is always false — no reliable offline check exists.
|
|
77
|
+
// Confirmed at runtime on first /forge:init.
|
|
78
|
+
preflight.workflowToolChecked = false;
|
|
79
|
+
return preflight;
|
|
80
|
+
}
|
|
81
|
+
/** Read the bundled forge version from .claude-plugin/plugin.json */
|
|
82
|
+
function readPayloadVersion(payloadRoot) {
|
|
83
|
+
try {
|
|
84
|
+
const pluginPath = path.join(payloadRoot, ".claude-plugin", "plugin.json");
|
|
85
|
+
const raw = fs.readFileSync(pluginPath, "utf8");
|
|
86
|
+
const plugin = JSON.parse(raw);
|
|
87
|
+
return typeof plugin.version === "string" ? plugin.version : "0.0.0";
|
|
88
|
+
}
|
|
89
|
+
catch {
|
|
90
|
+
return "0.0.0";
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
/** Compute SHA-256 of a file, or empty string if unreadable. */
|
|
94
|
+
function fileSha256(filePath) {
|
|
95
|
+
try {
|
|
96
|
+
const content = fs.readFileSync(filePath);
|
|
97
|
+
return crypto.createHash("sha256").update(content).digest("hex");
|
|
98
|
+
}
|
|
99
|
+
catch {
|
|
100
|
+
return "";
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Ensure a directory exists. Returns "created" if it was new, "skipped" if it
|
|
105
|
+
* already existed, or throws on permission error.
|
|
106
|
+
*/
|
|
107
|
+
function ensureDir(dirPath) {
|
|
108
|
+
if (fs.existsSync(dirPath)) {
|
|
109
|
+
return "skipped";
|
|
110
|
+
}
|
|
111
|
+
fs.mkdirSync(dirPath, { recursive: true });
|
|
112
|
+
return "created";
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Copy a file from src to dst.
|
|
116
|
+
* If dst is byte-identical to src → "skipped".
|
|
117
|
+
* Otherwise → overwrite and return "created".
|
|
118
|
+
*/
|
|
119
|
+
function copyFile(src, dst) {
|
|
120
|
+
if (fs.existsSync(dst) && fileSha256(src) === fileSha256(dst)) {
|
|
121
|
+
return "skipped";
|
|
122
|
+
}
|
|
123
|
+
fs.copyFileSync(src, dst);
|
|
124
|
+
return "created";
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Write a JSON file. If dst already contains the same content → "skipped".
|
|
128
|
+
* Otherwise → overwrite and return "created".
|
|
129
|
+
*/
|
|
130
|
+
function writeJsonFile(dst, content) {
|
|
131
|
+
const serialized = JSON.stringify(content, null, 2) + "\n";
|
|
132
|
+
if (fs.existsSync(dst)) {
|
|
133
|
+
try {
|
|
134
|
+
const existing = fs.readFileSync(dst, "utf8");
|
|
135
|
+
if (existing === serialized)
|
|
136
|
+
return "skipped";
|
|
137
|
+
}
|
|
138
|
+
catch {
|
|
139
|
+
// fall through to overwrite
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
fs.writeFileSync(dst, serialized, "utf8");
|
|
143
|
+
return "created";
|
|
144
|
+
}
|
|
145
|
+
// ── Main export ───────────────────────────────────────────────────────────────
|
|
146
|
+
/**
|
|
147
|
+
* Bootstrap a Claude Code project from the bundled forge-payload.
|
|
148
|
+
*
|
|
149
|
+
* This function is deterministic and idempotent:
|
|
150
|
+
* - Running against a fresh dir scaffolds everything.
|
|
151
|
+
* - Running against a partially-bootstrapped dir repairs only missing items.
|
|
152
|
+
* - Running against a fully-bootstrapped dir is a no-op (byte-identical).
|
|
153
|
+
*
|
|
154
|
+
* .forge/config.json and .forge/store/** are never touched.
|
|
155
|
+
*/
|
|
156
|
+
export function bootstrapClaudeProject(opts) {
|
|
157
|
+
const { dir, payloadRoot } = opts;
|
|
158
|
+
const created = [];
|
|
159
|
+
const skipped = [];
|
|
160
|
+
const warnings = [];
|
|
161
|
+
const preflight = { claudeAvailable: false, workflowToolChecked: false, warnings: [] };
|
|
162
|
+
// ── Step 1: Validate payload root ─────────────────────────────────────────
|
|
163
|
+
const storeCli = path.join(payloadRoot, "tools", "store-cli.cjs");
|
|
164
|
+
if (!fs.existsSync(storeCli)) {
|
|
165
|
+
warnings.push(`Payload validation failed: store-cli.cjs missing from ${path.join(payloadRoot, "tools")}. ` +
|
|
166
|
+
"Run 'npm run build' to populate dist/forge-payload/tools/.");
|
|
167
|
+
return { ok: false, created, skipped, warnings, preflight };
|
|
168
|
+
}
|
|
169
|
+
// ── Step 2: Scaffold .forge/ skeleton + store dirs ────────────────────────
|
|
170
|
+
const dirsToScaffold = [
|
|
171
|
+
path.join(dir, ".forge"),
|
|
172
|
+
path.join(dir, ".forge", "store", "sprints"),
|
|
173
|
+
path.join(dir, ".forge", "store", "tasks"),
|
|
174
|
+
path.join(dir, ".forge", "store", "bugs"),
|
|
175
|
+
path.join(dir, ".forge", "store", "events"),
|
|
176
|
+
path.join(dir, ".forge", "cache"),
|
|
177
|
+
path.join(dir, ".forge", "schemas"),
|
|
178
|
+
path.join(dir, ".forge", "tools"),
|
|
179
|
+
path.join(dir, ".claude", "commands", "forge"),
|
|
180
|
+
path.join(dir, ".claude", "workflows"),
|
|
181
|
+
];
|
|
182
|
+
try {
|
|
183
|
+
for (const d of dirsToScaffold) {
|
|
184
|
+
const outcome = ensureDir(d);
|
|
185
|
+
if (outcome === "created") {
|
|
186
|
+
created.push(d);
|
|
187
|
+
// Write .gitkeep into store dirs only
|
|
188
|
+
if (d.includes(path.join(".forge", "store"))) {
|
|
189
|
+
const gitkeep = path.join(d, ".gitkeep");
|
|
190
|
+
if (!fs.existsSync(gitkeep)) {
|
|
191
|
+
fs.writeFileSync(gitkeep, "", "utf8");
|
|
192
|
+
created.push(gitkeep);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
else {
|
|
197
|
+
skipped.push(d);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
catch (err) {
|
|
202
|
+
const e = err;
|
|
203
|
+
warnings.push(`Failed to scaffold directory structure in ${dir}: ${e.message ?? String(err)}. ` +
|
|
204
|
+
"Check directory permissions.");
|
|
205
|
+
return { ok: false, created, skipped, warnings, preflight };
|
|
206
|
+
}
|
|
207
|
+
const toolsDest = path.join(dir, ".forge", "tools");
|
|
208
|
+
// ── Step 3: Manifest-driven vendor loop (single source of truth) ──────────
|
|
209
|
+
// Every vendored payload artifact is declared in payload-manifest.json
|
|
210
|
+
// (FORGE-S32-T03). bootstrap copies payloadRoot/<entry.bundle> →
|
|
211
|
+
// dir/<entry.install>, applying entry.select for dir entries. The manifest
|
|
212
|
+
// is the curated set, so there is NO second consumer-side allowlist or
|
|
213
|
+
// skip-list — a file that must NOT be vendored is marked bundleOnly in the
|
|
214
|
+
// manifest (FORGE-BUG-044/045: transitions, migrations.json, integrity.json),
|
|
215
|
+
// excluded here by installEntries(). FORGE-S32-T06 collapsed the former
|
|
216
|
+
// two-tree command model into a single unified `commands/` entry, so there is
|
|
217
|
+
// no longer a commands-union precedence or name-collision ordering to honour:
|
|
218
|
+
// the lone `commands/` entry installs the full /forge:* surface verbatim to
|
|
219
|
+
// .claude/commands/forge/.
|
|
220
|
+
try {
|
|
221
|
+
const manifest = loadManifest(payloadRoot);
|
|
222
|
+
for (const entry of installEntries(manifest)) {
|
|
223
|
+
const installRoot = path.join(dir, entry.install);
|
|
224
|
+
if (entry.kind === "file") {
|
|
225
|
+
const src = path.join(payloadRoot, entry.bundle);
|
|
226
|
+
if (!fs.existsSync(src)) {
|
|
227
|
+
warnings.push(`payload entry ${entry.source} missing from bundle at ${src} — not vendored.`);
|
|
228
|
+
continue;
|
|
229
|
+
}
|
|
230
|
+
const dirOutcome = ensureDir(installRoot);
|
|
231
|
+
if (dirOutcome === "created")
|
|
232
|
+
created.push(installRoot);
|
|
233
|
+
const destPath = path.join(installRoot, path.basename(entry.bundle));
|
|
234
|
+
const outcome = copyFile(src, destPath);
|
|
235
|
+
if (outcome === "created")
|
|
236
|
+
created.push(destPath);
|
|
237
|
+
else
|
|
238
|
+
skipped.push(destPath);
|
|
239
|
+
continue;
|
|
240
|
+
}
|
|
241
|
+
// dir entry — select bundled files and copy preserving relative paths.
|
|
242
|
+
const bundleDir = path.join(payloadRoot, entry.bundle);
|
|
243
|
+
if (!fs.existsSync(bundleDir)) {
|
|
244
|
+
warnings.push(`payload entry ${entry.source} missing from bundle at ${bundleDir} — not vendored.`);
|
|
245
|
+
continue;
|
|
246
|
+
}
|
|
247
|
+
const dirOutcome = ensureDir(installRoot);
|
|
248
|
+
if (dirOutcome === "created")
|
|
249
|
+
created.push(installRoot);
|
|
250
|
+
else
|
|
251
|
+
skipped.push(installRoot);
|
|
252
|
+
for (const rel of applySelect(bundleDir, entry.select)) {
|
|
253
|
+
const destPath = path.join(installRoot, rel);
|
|
254
|
+
ensureDir(path.dirname(destPath));
|
|
255
|
+
const outcome = copyFile(path.join(bundleDir, rel), destPath);
|
|
256
|
+
if (outcome === "created")
|
|
257
|
+
created.push(destPath);
|
|
258
|
+
else
|
|
259
|
+
skipped.push(destPath);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
catch (err) {
|
|
264
|
+
const e = err;
|
|
265
|
+
warnings.push(`vendor-payload non-fatal: ${e.message ?? String(err)}`);
|
|
266
|
+
}
|
|
267
|
+
// ── Step 3b: .forge-tools-version marker (not a payload entry) ─────────────
|
|
268
|
+
// Written by bootstrap, not declared in the manifest — records the bundled
|
|
269
|
+
// forge version so project-orientation.ts can detect a stale vendored toolset.
|
|
270
|
+
try {
|
|
271
|
+
const payloadVersion = readPayloadVersion(payloadRoot);
|
|
272
|
+
const markerPath = path.join(toolsDest, ".forge-tools-version");
|
|
273
|
+
const markerOutcome = writeJsonFile(markerPath, { version: payloadVersion });
|
|
274
|
+
if (markerOutcome === "created")
|
|
275
|
+
created.push(markerPath);
|
|
276
|
+
else
|
|
277
|
+
skipped.push(markerPath);
|
|
278
|
+
}
|
|
279
|
+
catch (err) {
|
|
280
|
+
const e = err;
|
|
281
|
+
warnings.push(`tools-version-marker non-fatal: ${e.message ?? String(err)}`);
|
|
282
|
+
}
|
|
283
|
+
// ── Step 6: Write bootstrap manifest ──────────────────────────────────────
|
|
284
|
+
const manifestPath = path.join(dir, ".forge", ".bootstrap-manifest.json");
|
|
285
|
+
const payloadVersion = readPayloadVersion(payloadRoot);
|
|
286
|
+
// Compute payload integrity hash
|
|
287
|
+
let payloadIntegrityHash = "";
|
|
288
|
+
try {
|
|
289
|
+
const integrityPath = path.join(payloadRoot, "integrity.json");
|
|
290
|
+
if (fs.existsSync(integrityPath)) {
|
|
291
|
+
payloadIntegrityHash = crypto.createHash("sha256").update(fs.readFileSync(integrityPath)).digest("hex");
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
catch {
|
|
295
|
+
// non-fatal
|
|
296
|
+
}
|
|
297
|
+
try {
|
|
298
|
+
// Preserve existing bootstrappedAt if manifest already exists (idempotency: stable hash)
|
|
299
|
+
let bootstrappedAt = new Date().toISOString();
|
|
300
|
+
if (fs.existsSync(manifestPath)) {
|
|
301
|
+
try {
|
|
302
|
+
const existing = JSON.parse(fs.readFileSync(manifestPath, "utf8"));
|
|
303
|
+
// If payload version matches, keep existing timestamp for hash stability
|
|
304
|
+
if (existing.bootstrappedAt && existing.payloadVersion === payloadVersion) {
|
|
305
|
+
bootstrappedAt = existing.bootstrappedAt;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
catch {
|
|
309
|
+
// fall through to overwrite with current timestamp
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
const manifest = {
|
|
313
|
+
bootstrappedAt,
|
|
314
|
+
payloadVersion,
|
|
315
|
+
payloadIntegrityHash,
|
|
316
|
+
steps: [
|
|
317
|
+
"scaffold",
|
|
318
|
+
"vendor-tools",
|
|
319
|
+
"vendor-hooks",
|
|
320
|
+
"vendor-schemas",
|
|
321
|
+
"vendor-commands",
|
|
322
|
+
"vendor-forge-root",
|
|
323
|
+
"vendor-claude-assets",
|
|
324
|
+
"install-workflows",
|
|
325
|
+
],
|
|
326
|
+
};
|
|
327
|
+
const manifestOutcome = writeJsonFile(manifestPath, manifest);
|
|
328
|
+
if (manifestOutcome === "created")
|
|
329
|
+
created.push(manifestPath);
|
|
330
|
+
else
|
|
331
|
+
skipped.push(manifestPath);
|
|
332
|
+
}
|
|
333
|
+
catch (err) {
|
|
334
|
+
const e = err;
|
|
335
|
+
warnings.push(`manifest write non-fatal: ${e.message ?? String(err)}`);
|
|
336
|
+
}
|
|
337
|
+
// ── Step 7: Settings hooks wiring ─────────────────────────────────────────
|
|
338
|
+
const settingsPath = path.join(dir, ".claude", "settings.json");
|
|
339
|
+
try {
|
|
340
|
+
const mergeResult = mergeForgeHooks(settingsPath);
|
|
341
|
+
if (mergeResult.outcome === "created" || mergeResult.outcome === "merged") {
|
|
342
|
+
created.push(settingsPath);
|
|
343
|
+
}
|
|
344
|
+
else if (mergeResult.outcome === "already-present") {
|
|
345
|
+
skipped.push(settingsPath);
|
|
346
|
+
}
|
|
347
|
+
else if (mergeResult.outcome === "error") {
|
|
348
|
+
warnings.push(`settings-merge non-fatal: ${mergeResult.warning ?? "unknown error"}`);
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
catch (err) {
|
|
352
|
+
const e = err;
|
|
353
|
+
warnings.push(`settings-merge non-fatal: ${e.message ?? String(err)}`);
|
|
354
|
+
}
|
|
355
|
+
// ── Step 8: .gitignore append ─────────────────────────────────────────────
|
|
356
|
+
const gitignorePath = path.join(dir, ".gitignore");
|
|
357
|
+
try {
|
|
358
|
+
const gitignoreOutcome = updateGitignorePure(gitignorePath);
|
|
359
|
+
if (gitignoreOutcome === "appended") {
|
|
360
|
+
created.push(gitignorePath);
|
|
361
|
+
}
|
|
362
|
+
else if (gitignoreOutcome === "already-present" || gitignoreOutcome === "absent") {
|
|
363
|
+
// absent = no .gitignore, skipped silently; already-present = idempotent skip
|
|
364
|
+
}
|
|
365
|
+
else if (gitignoreOutcome === "error") {
|
|
366
|
+
warnings.push("gitignore-update non-fatal: could not update .gitignore — update manually.");
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
catch (err) {
|
|
370
|
+
const e = err;
|
|
371
|
+
warnings.push(`gitignore-update non-fatal: ${e.message ?? String(err)}`);
|
|
372
|
+
}
|
|
373
|
+
// ── Step 9: Preflight check ───────────────────────────────────────────────
|
|
374
|
+
const preflightResult = runPreflight();
|
|
375
|
+
preflight.claudeAvailable = preflightResult.claudeAvailable;
|
|
376
|
+
preflight.workflowToolChecked = preflightResult.workflowToolChecked;
|
|
377
|
+
preflight.warnings = preflightResult.warnings;
|
|
378
|
+
// Propagate preflight warnings to top-level warnings (non-fatal)
|
|
379
|
+
for (const w of preflightResult.warnings) {
|
|
380
|
+
warnings.push(w);
|
|
381
|
+
}
|
|
382
|
+
return { ok: true, created, skipped, warnings, preflight };
|
|
383
|
+
}
|
|
384
|
+
//# sourceMappingURL=bootstrap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bootstrap.js","sourceRoot":"","sources":["../../../../src/extensions/forgecli/claude-bootstrap/bootstrap.ts"],"names":[],"mappings":"AAAA,oGAAoG;AACpG,EAAE;AACF,6EAA6E;AAC7E,4DAA4D;AAC5D,EAAE;AACF,wCAAwC;AACxC,qCAAqC;AACrC,iCAAiC;AACjC,sCAAsC;AACtC,EAAE;AACF,wBAAwB;AACxB,iFAAiF;AACjF,+CAA+C;AAC/C,6EAA6E;AAC7E,wEAAwE;AAExE,OAAO,KAAK,aAAa,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,4BAA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