eai-cli 0.0.0-bootstrap.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/LICENSE +183 -0
- package/NOTICE +4 -0
- package/README.md +14 -0
- package/dist/commands/agent.d.ts +3 -0
- package/dist/commands/agent.d.ts.map +1 -0
- package/dist/commands/agent.js +69 -0
- package/dist/commands/agent.js.map +1 -0
- package/dist/commands/blocks.d.ts +3 -0
- package/dist/commands/blocks.d.ts.map +1 -0
- package/dist/commands/blocks.js +249 -0
- package/dist/commands/blocks.js.map +1 -0
- package/dist/commands/chat.d.ts +6 -0
- package/dist/commands/chat.d.ts.map +1 -0
- package/dist/commands/chat.js +105 -0
- package/dist/commands/chat.js.map +1 -0
- package/dist/commands/deploy.d.ts +36 -0
- package/dist/commands/deploy.d.ts.map +1 -0
- package/dist/commands/deploy.js +712 -0
- package/dist/commands/deploy.js.map +1 -0
- package/dist/commands/dev.d.ts +15 -0
- package/dist/commands/dev.d.ts.map +1 -0
- package/dist/commands/dev.js +133 -0
- package/dist/commands/dev.js.map +1 -0
- package/dist/commands/docs.d.ts +6 -0
- package/dist/commands/docs.d.ts.map +1 -0
- package/dist/commands/docs.js +118 -0
- package/dist/commands/docs.js.map +1 -0
- package/dist/commands/env.d.ts +10 -0
- package/dist/commands/env.d.ts.map +1 -0
- package/dist/commands/env.js +200 -0
- package/dist/commands/env.js.map +1 -0
- package/dist/commands/errors.d.ts +3 -0
- package/dist/commands/errors.d.ts.map +1 -0
- package/dist/commands/errors.js +72 -0
- package/dist/commands/errors.js.map +1 -0
- package/dist/commands/gofer.d.ts +3 -0
- package/dist/commands/gofer.d.ts.map +1 -0
- package/dist/commands/gofer.js +134 -0
- package/dist/commands/gofer.js.map +1 -0
- package/dist/commands/init.d.ts +14 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +1437 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/login.d.ts +7 -0
- package/dist/commands/login.d.ts.map +1 -0
- package/dist/commands/login.js +117 -0
- package/dist/commands/login.js.map +1 -0
- package/dist/commands/provision.d.ts +6 -0
- package/dist/commands/provision.d.ts.map +1 -0
- package/dist/commands/provision.js +855 -0
- package/dist/commands/provision.js.map +1 -0
- package/dist/commands/publicapi.d.ts +6 -0
- package/dist/commands/publicapi.d.ts.map +1 -0
- package/dist/commands/publicapi.js +184 -0
- package/dist/commands/publicapi.js.map +1 -0
- package/dist/commands/resources.d.ts +38 -0
- package/dist/commands/resources.d.ts.map +1 -0
- package/dist/commands/resources.js +1010 -0
- package/dist/commands/resources.js.map +1 -0
- package/dist/commands/runtime.d.ts +3 -0
- package/dist/commands/runtime.d.ts.map +1 -0
- package/dist/commands/runtime.js +78 -0
- package/dist/commands/runtime.js.map +1 -0
- package/dist/commands/template.d.ts +3 -0
- package/dist/commands/template.d.ts.map +1 -0
- package/dist/commands/template.js +365 -0
- package/dist/commands/template.js.map +1 -0
- package/dist/commands/tenant.d.ts +45 -0
- package/dist/commands/tenant.d.ts.map +1 -0
- package/dist/commands/tenant.js +1036 -0
- package/dist/commands/tenant.js.map +1 -0
- package/dist/commands/types.d.ts +130 -0
- package/dist/commands/types.d.ts.map +1 -0
- package/dist/commands/types.js +1636 -0
- package/dist/commands/types.js.map +1 -0
- package/dist/commands/update.d.ts +13 -0
- package/dist/commands/update.d.ts.map +1 -0
- package/dist/commands/update.js +163 -0
- package/dist/commands/update.js.map +1 -0
- package/dist/commands/user.d.ts +6 -0
- package/dist/commands/user.d.ts.map +1 -0
- package/dist/commands/user.js +359 -0
- package/dist/commands/user.js.map +1 -0
- package/dist/commands/verify.d.ts +40 -0
- package/dist/commands/verify.d.ts.map +1 -0
- package/dist/commands/verify.js +1442 -0
- package/dist/commands/verify.js.map +1 -0
- package/dist/commands/vertical.d.ts +24 -0
- package/dist/commands/vertical.d.ts.map +1 -0
- package/dist/commands/vertical.js +301 -0
- package/dist/commands/vertical.js.map +1 -0
- package/dist/commands/whoami.d.ts +6 -0
- package/dist/commands/whoami.d.ts.map +1 -0
- package/dist/commands/whoami.js +73 -0
- package/dist/commands/whoami.js.map +1 -0
- package/dist/commands/workflow.d.ts +6 -0
- package/dist/commands/workflow.d.ts.map +1 -0
- package/dist/commands/workflow.js +400 -0
- package/dist/commands/workflow.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +272 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/agent-guide.d.ts +24 -0
- package/dist/lib/agent-guide.d.ts.map +1 -0
- package/dist/lib/agent-guide.js +155 -0
- package/dist/lib/agent-guide.js.map +1 -0
- package/dist/lib/api.d.ts +338 -0
- package/dist/lib/api.d.ts.map +1 -0
- package/dist/lib/api.js +991 -0
- package/dist/lib/api.js.map +1 -0
- package/dist/lib/auth.d.ts +65 -0
- package/dist/lib/auth.d.ts.map +1 -0
- package/dist/lib/auth.js +592 -0
- package/dist/lib/auth.js.map +1 -0
- package/dist/lib/azure-cli.d.ts +6 -0
- package/dist/lib/azure-cli.d.ts.map +1 -0
- package/dist/lib/azure-cli.js +13 -0
- package/dist/lib/azure-cli.js.map +1 -0
- package/dist/lib/block-catalog-normalize.d.ts +47 -0
- package/dist/lib/block-catalog-normalize.d.ts.map +1 -0
- package/dist/lib/block-catalog-normalize.js +355 -0
- package/dist/lib/block-catalog-normalize.js.map +1 -0
- package/dist/lib/block-catalog-types.d.ts +111 -0
- package/dist/lib/block-catalog-types.d.ts.map +1 -0
- package/dist/lib/block-catalog-types.js +41 -0
- package/dist/lib/block-catalog-types.js.map +1 -0
- package/dist/lib/block-catalog-utils.d.ts +7 -0
- package/dist/lib/block-catalog-utils.d.ts.map +1 -0
- package/dist/lib/block-catalog-utils.js +47 -0
- package/dist/lib/block-catalog-utils.js.map +1 -0
- package/dist/lib/block-catalog-validation.d.ts +5 -0
- package/dist/lib/block-catalog-validation.d.ts.map +1 -0
- package/dist/lib/block-catalog-validation.js +112 -0
- package/dist/lib/block-catalog-validation.js.map +1 -0
- package/dist/lib/block-catalog.d.ts +3 -0
- package/dist/lib/block-catalog.d.ts.map +1 -0
- package/dist/lib/block-catalog.js +284 -0
- package/dist/lib/block-catalog.js.map +1 -0
- package/dist/lib/cloud-env.d.ts +25 -0
- package/dist/lib/cloud-env.d.ts.map +1 -0
- package/dist/lib/cloud-env.js +79 -0
- package/dist/lib/cloud-env.js.map +1 -0
- package/dist/lib/config.d.ts +116 -0
- package/dist/lib/config.d.ts.map +1 -0
- package/dist/lib/config.js +195 -0
- package/dist/lib/config.js.map +1 -0
- package/dist/lib/context.d.ts +43 -0
- package/dist/lib/context.d.ts.map +1 -0
- package/dist/lib/context.js +68 -0
- package/dist/lib/context.js.map +1 -0
- package/dist/lib/error-codes.d.ts +56 -0
- package/dist/lib/error-codes.d.ts.map +1 -0
- package/dist/lib/error-codes.js +211 -0
- package/dist/lib/error-codes.js.map +1 -0
- package/dist/lib/error-guidance/catalog.d.ts +648 -0
- package/dist/lib/error-guidance/catalog.d.ts.map +1 -0
- package/dist/lib/error-guidance/catalog.js +940 -0
- package/dist/lib/error-guidance/catalog.js.map +1 -0
- package/dist/lib/error-guidance/match.d.ts +3 -0
- package/dist/lib/error-guidance/match.d.ts.map +1 -0
- package/dist/lib/error-guidance/match.js +46 -0
- package/dist/lib/error-guidance/match.js.map +1 -0
- package/dist/lib/error-guidance/render.d.ts +5 -0
- package/dist/lib/error-guidance/render.d.ts.map +1 -0
- package/dist/lib/error-guidance/render.js +92 -0
- package/dist/lib/error-guidance/render.js.map +1 -0
- package/dist/lib/error-guidance/types.d.ts +76 -0
- package/dist/lib/error-guidance/types.d.ts.map +1 -0
- package/dist/lib/error-guidance/types.js +2 -0
- package/dist/lib/error-guidance/types.js.map +1 -0
- package/dist/lib/error-guidance/validate.d.ts +3 -0
- package/dist/lib/error-guidance/validate.d.ts.map +1 -0
- package/dist/lib/error-guidance/validate.js +59 -0
- package/dist/lib/error-guidance/validate.js.map +1 -0
- package/dist/lib/gofer-installer.d.ts +32 -0
- package/dist/lib/gofer-installer.d.ts.map +1 -0
- package/dist/lib/gofer-installer.js +589 -0
- package/dist/lib/gofer-installer.js.map +1 -0
- package/dist/lib/gofer-refresh.d.ts +46 -0
- package/dist/lib/gofer-refresh.d.ts.map +1 -0
- package/dist/lib/gofer-refresh.js +536 -0
- package/dist/lib/gofer-refresh.js.map +1 -0
- package/dist/lib/next-route-exports.d.ts +6 -0
- package/dist/lib/next-route-exports.d.ts.map +1 -0
- package/dist/lib/next-route-exports.js +127 -0
- package/dist/lib/next-route-exports.js.map +1 -0
- package/dist/lib/npm.d.ts +2 -0
- package/dist/lib/npm.d.ts.map +1 -0
- package/dist/lib/npm.js +4 -0
- package/dist/lib/npm.js.map +1 -0
- package/dist/lib/object-type-defaults.d.ts +4 -0
- package/dist/lib/object-type-defaults.d.ts.map +1 -0
- package/dist/lib/object-type-defaults.js +72 -0
- package/dist/lib/object-type-defaults.js.map +1 -0
- package/dist/lib/output.d.ts +35 -0
- package/dist/lib/output.d.ts.map +1 -0
- package/dist/lib/output.js +166 -0
- package/dist/lib/output.js.map +1 -0
- package/dist/lib/profile.d.ts +52 -0
- package/dist/lib/profile.d.ts.map +1 -0
- package/dist/lib/profile.js +116 -0
- package/dist/lib/profile.js.map +1 -0
- package/dist/lib/project-manifest.d.ts +42 -0
- package/dist/lib/project-manifest.d.ts.map +1 -0
- package/dist/lib/project-manifest.js +191 -0
- package/dist/lib/project-manifest.js.map +1 -0
- package/dist/lib/resourceapi-bundle.d.ts +33 -0
- package/dist/lib/resourceapi-bundle.d.ts.map +1 -0
- package/dist/lib/resourceapi-bundle.js +79 -0
- package/dist/lib/resourceapi-bundle.js.map +1 -0
- package/dist/lib/runtime-contract.d.ts +84 -0
- package/dist/lib/runtime-contract.d.ts.map +1 -0
- package/dist/lib/runtime-contract.js +318 -0
- package/dist/lib/runtime-contract.js.map +1 -0
- package/dist/lib/schema-builder.d.ts +28 -0
- package/dist/lib/schema-builder.d.ts.map +1 -0
- package/dist/lib/schema-builder.js +69 -0
- package/dist/lib/schema-builder.js.map +1 -0
- package/dist/lib/tenant-context.d.ts +127 -0
- package/dist/lib/tenant-context.d.ts.map +1 -0
- package/dist/lib/tenant-context.js +573 -0
- package/dist/lib/tenant-context.js.map +1 -0
- package/dist/lib/update-check.d.ts +52 -0
- package/dist/lib/update-check.d.ts.map +1 -0
- package/dist/lib/update-check.js +271 -0
- package/dist/lib/update-check.js.map +1 -0
- package/dist/lib/update-maintenance.d.ts +15 -0
- package/dist/lib/update-maintenance.d.ts.map +1 -0
- package/dist/lib/update-maintenance.js +187 -0
- package/dist/lib/update-maintenance.js.map +1 -0
- package/dist/lib/utils.d.ts +23 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +48 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/lib/workflow-provisioning.d.ts +54 -0
- package/dist/lib/workflow-provisioning.d.ts.map +1 -0
- package/dist/lib/workflow-provisioning.js +281 -0
- package/dist/lib/workflow-provisioning.js.map +1 -0
- package/package.json +51 -0
- package/resources/gofer/.gofer-version +7 -0
- package/resources/gofer/agents-skills/0_gofer_start/SKILL.md +1287 -0
- package/resources/gofer/agents-skills/0a_problem_validation/SKILL.md +429 -0
- package/resources/gofer/agents-skills/10_gofer_cloud/SKILL.md +635 -0
- package/resources/gofer/agents-skills/1_gofer_research/SKILL.md +1159 -0
- package/resources/gofer/agents-skills/2_gofer_specify/SKILL.md +860 -0
- package/resources/gofer/agents-skills/3_gofer_plan/SKILL.md +886 -0
- package/resources/gofer/agents-skills/4_gofer_tasks/SKILL.md +748 -0
- package/resources/gofer/agents-skills/5_gofer_implement/SKILL.md +924 -0
- package/resources/gofer/agents-skills/6_gofer_validate/SKILL.md +2269 -0
- package/resources/gofer/agents-skills/7_gofer_save/SKILL.md +423 -0
- package/resources/gofer/agents-skills/7a_stakeholder_comms/SKILL.md +508 -0
- package/resources/gofer/agents-skills/8_gofer_branding/SKILL.md +315 -0
- package/resources/gofer/agents-skills/9_gofer_tests/SKILL.md +558 -0
- package/resources/gofer/agents-skills/gofer_bootstrap_workspace/SKILL.md +148 -0
- package/resources/gofer/agents-skills/gofer_check_workspace/SKILL.md +119 -0
- package/resources/gofer/agents-skills/gofer_constitution/SKILL.md +612 -0
- package/resources/gofer/agents-skills/gofer_diagnose/SKILL.md +114 -0
- package/resources/gofer/agents-skills/gofer_eai_first_run/SKILL.md +397 -0
- package/resources/gofer/agents-skills/gofer_hydrate/SKILL.md +561 -0
- package/resources/gofer/agents-skills/gofer_personality/SKILL.md +44 -0
- package/resources/gofer/agents-skills/gofer_plan/SKILL.md +40 -0
- package/resources/gofer/agents-skills/gofer_side/SKILL.md +45 -0
- package/resources/gofer/agents-skills/gofer_spec_summary/SKILL.md +112 -0
- package/resources/gofer/agents-skills/gofer_tdd/SKILL.md +112 -0
- package/resources/gofer/agents-skills/gofer_vocabulary/SKILL.md +112 -0
- package/resources/gofer/agents-skills/gofer_zoom_out/SKILL.md +112 -0
- package/resources/gofer/bash-scripts/check-context-health.sh +365 -0
- package/resources/gofer/bash-scripts/check-persona-pack.sh +81 -0
- package/resources/gofer/bash-scripts/check-prerequisites.sh +168 -0
- package/resources/gofer/bash-scripts/common.sh +192 -0
- package/resources/gofer/bash-scripts/create-new-feature.sh +260 -0
- package/resources/gofer/bash-scripts/install-optional-tools.sh +270 -0
- package/resources/gofer/bash-scripts/log-stage.sh +224 -0
- package/resources/gofer/bash-scripts/mark-task-complete.sh +74 -0
- package/resources/gofer/bash-scripts/pipeline-state.sh +306 -0
- package/resources/gofer/bash-scripts/read-failed-approaches.sh +114 -0
- package/resources/gofer/bash-scripts/read-session-memories.sh +96 -0
- package/resources/gofer/bash-scripts/save-checkpoint.sh +407 -0
- package/resources/gofer/bash-scripts/setup-plan.sh +62 -0
- package/resources/gofer/bash-scripts/sync-implementation-status.sh +47 -0
- package/resources/gofer/bash-scripts/update-agent-context.sh +772 -0
- package/resources/gofer/bash-scripts/validate-artifact.sh +335 -0
- package/resources/gofer/bash-scripts/verify-task.sh +384 -0
- package/resources/gofer/bash-scripts/write-failed-approach.sh +110 -0
- package/resources/gofer/bash-scripts/write-periodic-checkpoint.sh +128 -0
- package/resources/gofer/bash-scripts/write-session-memory.sh +118 -0
- package/resources/gofer/claude-agents/assumption-tracker.md +168 -0
- package/resources/gofer/claude-agents/business-metrics-analyzer.md +169 -0
- package/resources/gofer/claude-agents/business-problem-validator.md +168 -0
- package/resources/gofer/claude-agents/codebase-analyzer.md +124 -0
- package/resources/gofer/claude-agents/codebase-locator.md +95 -0
- package/resources/gofer/claude-agents/codebase-pattern-finder.md +180 -0
- package/resources/gofer/claude-agents/comms-writer.md +158 -0
- package/resources/gofer/claude-agents/engineer-review.md +169 -0
- package/resources/gofer/claude-agents/implement-bug-triangulator.md +94 -0
- package/resources/gofer/claude-agents/implement-code-review-council.md +89 -0
- package/resources/gofer/claude-agents/implement-doc-writer.md +89 -0
- package/resources/gofer/claude-agents/implement-error-hardener.md +84 -0
- package/resources/gofer/claude-agents/implement-performance-explorer.md +95 -0
- package/resources/gofer/claude-agents/implement-test-diversifier.md +82 -0
- package/resources/gofer/claude-agents/implement-variant-generator.md +80 -0
- package/resources/gofer/claude-agents/multi-perspective-judge.md +114 -0
- package/resources/gofer/claude-agents/plan-api-comparator.md +90 -0
- package/resources/gofer/claude-agents/plan-architecture-diverger.md +100 -0
- package/resources/gofer/claude-agents/plan-data-model-stress-tester.md +95 -0
- package/resources/gofer/claude-agents/plan-migration-path-finder.md +95 -0
- package/resources/gofer/claude-agents/plan-refactor-rewrite-advisor.md +97 -0
- package/resources/gofer/claude-agents/research-dependency-evaluator.md +106 -0
- package/resources/gofer/claude-agents/research-horizon-scanner.md +100 -0
- package/resources/gofer/claude-agents/research-market-scanner.md +137 -0
- package/resources/gofer/claude-agents/research-perspective-multiplier.md +102 -0
- package/resources/gofer/claude-agents/scope-creep-detector.md +152 -0
- package/resources/gofer/claude-agents/specify-ambiguity-detector.md +95 -0
- package/resources/gofer/claude-agents/specify-journey-stress-tester.md +92 -0
- package/resources/gofer/claude-agents/tasks-cross-cutting-scanner.md +91 -0
- package/resources/gofer/claude-agents/tasks-rollback-planner.md +89 -0
- package/resources/gofer/claude-agents/validate-security-red-team.md +102 -0
- package/resources/gofer/claude-agents/validation-correctness.md +103 -0
- package/resources/gofer/claude-agents/validation-integration.md +129 -0
- package/resources/gofer/claude-agents/validation-performance.md +120 -0
- package/resources/gofer/claude-agents/validation-security.md +115 -0
- package/resources/gofer/claude-agents/validation-standards.md +151 -0
- package/resources/gofer/claude-agents/validation-test-quality.md +146 -0
- package/resources/gofer/claude-agents/visual-bounded-context-writer.md +40 -0
- package/resources/gofer/claude-agents/visual-c4-writer.md +45 -0
- package/resources/gofer/claude-agents/visual-erd-writer.md +34 -0
- package/resources/gofer/claude-agents/visual-heatmap-writer.md +63 -0
- package/resources/gofer/claude-agents/visual-risk-writer.md +64 -0
- package/resources/gofer/claude-commands/0_gofer_start.md +1282 -0
- package/resources/gofer/claude-commands/0a_problem_validation.md +424 -0
- package/resources/gofer/claude-commands/10_gofer_cloud.md +630 -0
- package/resources/gofer/claude-commands/1_gofer_research.md +1154 -0
- package/resources/gofer/claude-commands/2_gofer_specify.md +855 -0
- package/resources/gofer/claude-commands/3_gofer_plan.md +881 -0
- package/resources/gofer/claude-commands/4_gofer_tasks.md +743 -0
- package/resources/gofer/claude-commands/5_gofer_implement.md +919 -0
- package/resources/gofer/claude-commands/6_gofer_validate.md +2264 -0
- package/resources/gofer/claude-commands/7_gofer_save.md +418 -0
- package/resources/gofer/claude-commands/7a_stakeholder_comms.md +503 -0
- package/resources/gofer/claude-commands/8_gofer_branding.md +310 -0
- package/resources/gofer/claude-commands/9_gofer_tests.md +553 -0
- package/resources/gofer/claude-commands/gofer_bootstrap_workspace.md +143 -0
- package/resources/gofer/claude-commands/gofer_check_workspace.md +114 -0
- package/resources/gofer/claude-commands/gofer_constitution.md +607 -0
- package/resources/gofer/claude-commands/gofer_diagnose.md +109 -0
- package/resources/gofer/claude-commands/gofer_eai_first_run.md +392 -0
- package/resources/gofer/claude-commands/gofer_hydrate.md +556 -0
- package/resources/gofer/claude-commands/gofer_personality.md +39 -0
- package/resources/gofer/claude-commands/gofer_plan.md +35 -0
- package/resources/gofer/claude-commands/gofer_side.md +40 -0
- package/resources/gofer/claude-commands/gofer_spec_summary.md +107 -0
- package/resources/gofer/claude-commands/gofer_tdd.md +107 -0
- package/resources/gofer/claude-commands/gofer_vocabulary.md +107 -0
- package/resources/gofer/claude-commands/gofer_zoom_out.md +107 -0
- package/resources/gofer/claude-skills/eai-gofer/SKILL.md +56 -0
- package/resources/gofer/commands/.gitkeep +0 -0
- package/resources/gofer/commands/0_gofer_start.md +1299 -0
- package/resources/gofer/commands/0a_problem_validation.md +405 -0
- package/resources/gofer/commands/10_gofer_cloud.md +611 -0
- package/resources/gofer/commands/1_gofer_research.md +1135 -0
- package/resources/gofer/commands/2_gofer_specify.md +836 -0
- package/resources/gofer/commands/3_gofer_plan.md +862 -0
- package/resources/gofer/commands/4_gofer_tasks.md +724 -0
- package/resources/gofer/commands/5_gofer_implement.md +900 -0
- package/resources/gofer/commands/6_gofer_validate.md +2245 -0
- package/resources/gofer/commands/7_gofer_save.md +399 -0
- package/resources/gofer/commands/7a_stakeholder_comms.md +484 -0
- package/resources/gofer/commands/8_gofer_branding.md +291 -0
- package/resources/gofer/commands/9_gofer_tests.md +534 -0
- package/resources/gofer/commands/gofer_bootstrap_workspace.md +159 -0
- package/resources/gofer/commands/gofer_check_workspace.md +130 -0
- package/resources/gofer/commands/gofer_constitution.md +588 -0
- package/resources/gofer/commands/gofer_diagnose.md +89 -0
- package/resources/gofer/commands/gofer_eai_first_run.md +392 -0
- package/resources/gofer/commands/gofer_hydrate.md +537 -0
- package/resources/gofer/commands/gofer_personality.md +61 -0
- package/resources/gofer/commands/gofer_plan.md +51 -0
- package/resources/gofer/commands/gofer_side.md +56 -0
- package/resources/gofer/commands/gofer_spec_summary.md +87 -0
- package/resources/gofer/commands/gofer_tdd.md +87 -0
- package/resources/gofer/commands/gofer_vocabulary.md +87 -0
- package/resources/gofer/commands/gofer_zoom_out.md +87 -0
- package/resources/gofer/copilot-instructions/gofer-cost.instructions.md +13 -0
- package/resources/gofer/copilot-instructions/language-server.instructions.md +49 -0
- package/resources/gofer/copilot-instructions/typescript.instructions.md +47 -0
- package/resources/gofer/copilot-instructions/vscode-extension.instructions.md +46 -0
- package/resources/gofer/copilot-prompts/0_gofer_start.prompt.md +1308 -0
- package/resources/gofer/copilot-prompts/0a_problem_validation.prompt.md +429 -0
- package/resources/gofer/copilot-prompts/10_gofer_cloud.prompt.md +644 -0
- package/resources/gofer/copilot-prompts/1_gofer_research.prompt.md +1177 -0
- package/resources/gofer/copilot-prompts/2_gofer_specify.prompt.md +878 -0
- package/resources/gofer/copilot-prompts/3_gofer_plan.prompt.md +904 -0
- package/resources/gofer/copilot-prompts/4_gofer_tasks.prompt.md +766 -0
- package/resources/gofer/copilot-prompts/5_gofer_implement.prompt.md +942 -0
- package/resources/gofer/copilot-prompts/6_gofer_validate.prompt.md +2277 -0
- package/resources/gofer/copilot-prompts/7_gofer_save.prompt.md +433 -0
- package/resources/gofer/copilot-prompts/7a_stakeholder_comms.prompt.md +516 -0
- package/resources/gofer/copilot-prompts/8_gofer_branding.prompt.md +323 -0
- package/resources/gofer/copilot-prompts/9_gofer_tests.prompt.md +566 -0
- package/resources/gofer/copilot-prompts/gofer_bootstrap_workspace.prompt.md +161 -0
- package/resources/gofer/copilot-prompts/gofer_check_workspace.prompt.md +132 -0
- package/resources/gofer/copilot-prompts/gofer_constitution.prompt.md +621 -0
- package/resources/gofer/copilot-prompts/gofer_diagnose.prompt.md +127 -0
- package/resources/gofer/copilot-prompts/gofer_eai_first_run.prompt.md +410 -0
- package/resources/gofer/copilot-prompts/gofer_hydrate.prompt.md +571 -0
- package/resources/gofer/copilot-prompts/gofer_personality.prompt.md +57 -0
- package/resources/gofer/copilot-prompts/gofer_plan.prompt.md +53 -0
- package/resources/gofer/copilot-prompts/gofer_side.prompt.md +58 -0
- package/resources/gofer/copilot-prompts/gofer_spec_summary.prompt.md +125 -0
- package/resources/gofer/copilot-prompts/gofer_tdd.prompt.md +125 -0
- package/resources/gofer/copilot-prompts/gofer_vocabulary.prompt.md +125 -0
- package/resources/gofer/copilot-prompts/gofer_zoom_out.prompt.md +125 -0
- package/resources/gofer/gemini/agents/assumption-tracker.md +171 -0
- package/resources/gofer/gemini/agents/business-metrics-analyzer.md +172 -0
- package/resources/gofer/gemini/agents/business-problem-validator.md +171 -0
- package/resources/gofer/gemini/agents/codebase-analyzer.md +127 -0
- package/resources/gofer/gemini/agents/codebase-locator.md +98 -0
- package/resources/gofer/gemini/agents/codebase-pattern-finder.md +183 -0
- package/resources/gofer/gemini/agents/comms-writer.md +161 -0
- package/resources/gofer/gemini/agents/engineer-review.md +172 -0
- package/resources/gofer/gemini/agents/implement-bug-triangulator.md +97 -0
- package/resources/gofer/gemini/agents/implement-code-review-council.md +92 -0
- package/resources/gofer/gemini/agents/implement-doc-writer.md +92 -0
- package/resources/gofer/gemini/agents/implement-error-hardener.md +87 -0
- package/resources/gofer/gemini/agents/implement-performance-explorer.md +98 -0
- package/resources/gofer/gemini/agents/implement-test-diversifier.md +85 -0
- package/resources/gofer/gemini/agents/implement-variant-generator.md +83 -0
- package/resources/gofer/gemini/agents/multi-perspective-judge.md +117 -0
- package/resources/gofer/gemini/agents/plan-api-comparator.md +93 -0
- package/resources/gofer/gemini/agents/plan-architecture-diverger.md +103 -0
- package/resources/gofer/gemini/agents/plan-data-model-stress-tester.md +98 -0
- package/resources/gofer/gemini/agents/plan-migration-path-finder.md +98 -0
- package/resources/gofer/gemini/agents/plan-refactor-rewrite-advisor.md +100 -0
- package/resources/gofer/gemini/agents/research-dependency-evaluator.md +109 -0
- package/resources/gofer/gemini/agents/research-horizon-scanner.md +103 -0
- package/resources/gofer/gemini/agents/research-market-scanner.md +140 -0
- package/resources/gofer/gemini/agents/research-perspective-multiplier.md +105 -0
- package/resources/gofer/gemini/agents/scope-creep-detector.md +155 -0
- package/resources/gofer/gemini/agents/specify-ambiguity-detector.md +98 -0
- package/resources/gofer/gemini/agents/specify-journey-stress-tester.md +95 -0
- package/resources/gofer/gemini/agents/tasks-cross-cutting-scanner.md +94 -0
- package/resources/gofer/gemini/agents/tasks-rollback-planner.md +92 -0
- package/resources/gofer/gemini/agents/validate-security-red-team.md +105 -0
- package/resources/gofer/gemini/agents/validation-correctness.md +106 -0
- package/resources/gofer/gemini/agents/validation-integration.md +132 -0
- package/resources/gofer/gemini/agents/validation-performance.md +123 -0
- package/resources/gofer/gemini/agents/validation-security.md +118 -0
- package/resources/gofer/gemini/agents/validation-standards.md +154 -0
- package/resources/gofer/gemini/agents/validation-test-quality.md +149 -0
- package/resources/gofer/gemini/agents/visual-bounded-context-writer.md +40 -0
- package/resources/gofer/gemini/agents/visual-c4-writer.md +44 -0
- package/resources/gofer/gemini/agents/visual-erd-writer.md +36 -0
- package/resources/gofer/gemini/agents/visual-heatmap-writer.md +63 -0
- package/resources/gofer/gemini/agents/visual-risk-writer.md +64 -0
- package/resources/gofer/gemini/commands/gofer/.gitkeep +0 -0
- package/resources/gofer/gemini/commands/gofer/0_gofer_start.md +1282 -0
- package/resources/gofer/gemini/commands/gofer/0_gofer_start.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/0a_problem_validation.md +424 -0
- package/resources/gofer/gemini/commands/gofer/0a_problem_validation.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/10_gofer_cloud.md +630 -0
- package/resources/gofer/gemini/commands/gofer/10_gofer_cloud.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/1_gofer_research.md +1154 -0
- package/resources/gofer/gemini/commands/gofer/1_gofer_research.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/2_gofer_specify.md +855 -0
- package/resources/gofer/gemini/commands/gofer/2_gofer_specify.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/3_gofer_plan.md +881 -0
- package/resources/gofer/gemini/commands/gofer/3_gofer_plan.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/4_gofer_tasks.md +743 -0
- package/resources/gofer/gemini/commands/gofer/4_gofer_tasks.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/5_gofer_implement.md +919 -0
- package/resources/gofer/gemini/commands/gofer/5_gofer_implement.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/6_gofer_validate.md +2264 -0
- package/resources/gofer/gemini/commands/gofer/6_gofer_validate.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/7_gofer_save.md +418 -0
- package/resources/gofer/gemini/commands/gofer/7_gofer_save.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/7a_stakeholder_comms.md +503 -0
- package/resources/gofer/gemini/commands/gofer/7a_stakeholder_comms.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/8_gofer_branding.md +310 -0
- package/resources/gofer/gemini/commands/gofer/8_gofer_branding.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/9_gofer_tests.md +553 -0
- package/resources/gofer/gemini/commands/gofer/9_gofer_tests.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/gofer_bootstrap_workspace.md +143 -0
- package/resources/gofer/gemini/commands/gofer/gofer_bootstrap_workspace.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/gofer_check_workspace.md +114 -0
- package/resources/gofer/gemini/commands/gofer/gofer_check_workspace.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/gofer_constitution.md +607 -0
- package/resources/gofer/gemini/commands/gofer/gofer_constitution.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/gofer_diagnose.md +109 -0
- package/resources/gofer/gemini/commands/gofer/gofer_diagnose.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/gofer_eai_first_run.md +392 -0
- package/resources/gofer/gemini/commands/gofer/gofer_eai_first_run.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/gofer_hydrate.md +556 -0
- package/resources/gofer/gemini/commands/gofer/gofer_hydrate.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/gofer_personality.md +39 -0
- package/resources/gofer/gemini/commands/gofer/gofer_personality.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/gofer_plan.md +35 -0
- package/resources/gofer/gemini/commands/gofer/gofer_plan.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/gofer_side.md +40 -0
- package/resources/gofer/gemini/commands/gofer/gofer_side.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/gofer_spec_summary.md +107 -0
- package/resources/gofer/gemini/commands/gofer/gofer_spec_summary.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/gofer_tdd.md +107 -0
- package/resources/gofer/gemini/commands/gofer/gofer_tdd.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/gofer_vocabulary.md +107 -0
- package/resources/gofer/gemini/commands/gofer/gofer_vocabulary.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/gofer_zoom_out.md +107 -0
- package/resources/gofer/gemini/commands/gofer/gofer_zoom_out.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/manifest.json +32 -0
- package/resources/gofer/gemini/extension.json +16 -0
- package/resources/gofer/github-agents/gofer-business.agent.md +20 -0
- package/resources/gofer/github-agents/gofer-implement.agent.md +15 -0
- package/resources/gofer/github-agents/gofer-plan.agent.md +15 -0
- package/resources/gofer/github-agents/gofer-research.agent.md +15 -0
- package/resources/gofer/github-agents/gofer-validate.agent.md +10 -0
- package/resources/gofer/github-skills/eai-gofer/SKILL.md +56 -0
- package/resources/gofer/hook-scripts/agent-stop.mjs +655 -0
- package/resources/gofer/hook-scripts/log-stage-launch-time.mjs +77 -0
- package/resources/gofer/hook-scripts/post-tool-use.mjs +333 -0
- package/resources/gofer/hook-scripts/queued-input.mjs +188 -0
- package/resources/gofer/hook-scripts/session-lifecycle.mjs +93 -0
- package/resources/gofer/hook-scripts/user-prompt-submit.mjs +228 -0
- package/resources/gofer/instruction-templates/base/agents-base.md +37 -0
- package/resources/gofer/instruction-templates/base/claude-base.md +7 -0
- package/resources/gofer/instruction-templates/base/copilot-base.md +26 -0
- package/resources/gofer/instruction-templates/gofer/gofer-claude.md +5 -0
- package/resources/gofer/instruction-templates/gofer/gofer-copilot.md +9 -0
- package/resources/gofer/instruction-templates/languages/generic.md +7 -0
- package/resources/gofer/instruction-templates/languages/go.md +8 -0
- package/resources/gofer/instruction-templates/languages/java.md +8 -0
- package/resources/gofer/instruction-templates/languages/python.md +9 -0
- package/resources/gofer/instruction-templates/languages/rust.md +9 -0
- package/resources/gofer/instruction-templates/languages/typescript.md +19 -0
- package/resources/gofer/instruction-templates/workflow/principles.md +52 -0
- package/resources/gofer/memory/constitution.md +391 -0
- package/resources/gofer/memory/context-profiles.yaml +74 -0
- package/resources/gofer/memory/decisions/000-use-adr-for-decisions.md +67 -0
- package/resources/gofer/memory/decisions/001-di-framework.md +190 -0
- package/resources/gofer/memory/decisions/002-module-extraction.md +305 -0
- package/resources/gofer/memory/decisions/003-error-handling.md +368 -0
- package/resources/gofer/memory/decisions/004-cache-eviction.md +436 -0
- package/resources/gofer/memory/decisions/005-constants-management.md +520 -0
- package/resources/gofer/memory/decisions/README.md +129 -0
- package/resources/gofer/memory/diagrams/di-container.mmd +321 -0
- package/resources/gofer/memory/diagrams/extension-activation.mmd +184 -0
- package/resources/gofer/memory/diagrams/module-dependencies.mmd +264 -0
- package/resources/gofer/memory/gofer-model-policy.yaml +97 -0
- package/resources/gofer/memory/lessons.md +46 -0
- package/resources/gofer/node-scripts/canonical-descriptions.mjs +86 -0
- package/resources/gofer/node-scripts/check-version-alignment.mjs +131 -0
- package/resources/gofer/node-scripts/codex-doctor.mjs +425 -0
- package/resources/gofer/node-scripts/generate-commands.mjs +1366 -0
- package/resources/gofer/node-scripts/generate-issues.js +563 -0
- package/resources/gofer/node-scripts/gofer-closed-loop-audit.mjs +893 -0
- package/resources/gofer/node-scripts/gofer-loop-audit.mjs +541 -0
- package/resources/gofer/node-scripts/gofer-performance-report.mjs +306 -0
- package/resources/gofer/node-scripts/gofer-workspace-bootstrap.mjs +56 -0
- package/resources/gofer/node-scripts/gofer-workspace-check.mjs +56 -0
- package/resources/gofer/node-scripts/lib/ai-leverage-tagger.mjs +103 -0
- package/resources/gofer/node-scripts/lib/assemble-stakeholder-pack.mjs +114 -0
- package/resources/gofer/node-scripts/lib/marp-deck.mjs +87 -0
- package/resources/gofer/node-scripts/lib/mermaid-tabular-fallback.mjs +264 -0
- package/resources/gofer/node-scripts/lib/render-visual.mjs +54 -0
- package/resources/gofer/node-scripts/lib/validate-aliases.mjs +85 -0
- package/resources/gofer/node-scripts/lib/visual-counts.mjs +44 -0
- package/resources/gofer/node-scripts/lib/visual-pass-pipeline.mjs +134 -0
- package/resources/gofer/node-scripts/mermaid-export.mjs +72 -0
- package/resources/gofer/node-scripts/package-agent-plugin.mjs +940 -0
- package/resources/gofer/node-scripts/parse-stage-command.mjs +211 -0
- package/resources/gofer/node-scripts/schemas/.gitkeep +0 -0
- package/resources/gofer/node-scripts/schemas/stage-command.schema.json +72 -0
- package/resources/gofer/node-scripts/sync-extension-resources.mjs +110 -0
- package/resources/gofer/node-scripts/workspace-bootstrap-lib.mjs +1166 -0
- package/resources/gofer/powershell-scripts/install-optional-tools.ps1 +214 -0
- package/resources/gofer/references/platform/README.md +17 -0
- package/resources/gofer/references/platform/deployment-repo.md +9 -0
- package/resources/gofer/references/platform/eai-app-template.md +45 -0
- package/resources/gofer/references/platform/eai-config-driven-ui.md +156 -0
- package/resources/gofer/references/platform/eai-error-catalog.yaml +197 -0
- package/resources/gofer/references/platform/eai-repo-contract.md +134 -0
- package/resources/gofer/references/platform/eai-service-patterns.md +56 -0
- package/resources/gofer/references/platform/eai.md +85 -0
- package/resources/gofer/references/platform/vertical-template.md +49 -0
- package/resources/gofer/specify-commands/.gitkeep +0 -0
- package/resources/gofer/specify-commands/0_gofer_start.md +1299 -0
- package/resources/gofer/specify-commands/0a_problem_validation.md +405 -0
- package/resources/gofer/specify-commands/10_gofer_cloud.md +611 -0
- package/resources/gofer/specify-commands/1_gofer_research.md +1135 -0
- package/resources/gofer/specify-commands/2_gofer_specify.md +836 -0
- package/resources/gofer/specify-commands/3_gofer_plan.md +862 -0
- package/resources/gofer/specify-commands/4_gofer_tasks.md +724 -0
- package/resources/gofer/specify-commands/5_gofer_implement.md +900 -0
- package/resources/gofer/specify-commands/6_gofer_validate.md +2245 -0
- package/resources/gofer/specify-commands/7_gofer_save.md +399 -0
- package/resources/gofer/specify-commands/7a_stakeholder_comms.md +484 -0
- package/resources/gofer/specify-commands/8_gofer_branding.md +291 -0
- package/resources/gofer/specify-commands/9_gofer_tests.md +534 -0
- package/resources/gofer/specify-commands/gofer_bootstrap_workspace.md +159 -0
- package/resources/gofer/specify-commands/gofer_check_workspace.md +130 -0
- package/resources/gofer/specify-commands/gofer_constitution.md +588 -0
- package/resources/gofer/specify-commands/gofer_diagnose.md +89 -0
- package/resources/gofer/specify-commands/gofer_eai_first_run.md +392 -0
- package/resources/gofer/specify-commands/gofer_hydrate.md +537 -0
- package/resources/gofer/specify-commands/gofer_personality.md +61 -0
- package/resources/gofer/specify-commands/gofer_plan.md +51 -0
- package/resources/gofer/specify-commands/gofer_side.md +56 -0
- package/resources/gofer/specify-commands/gofer_spec_summary.md +87 -0
- package/resources/gofer/specify-commands/gofer_tdd.md +87 -0
- package/resources/gofer/specify-commands/gofer_vocabulary.md +87 -0
- package/resources/gofer/specify-commands/gofer_zoom_out.md +87 -0
- package/resources/gofer/system-skills/0_gofer_start/SKILL.md +1287 -0
- package/resources/gofer/system-skills/0a_problem_validation/SKILL.md +429 -0
- package/resources/gofer/system-skills/10_gofer_cloud/SKILL.md +635 -0
- package/resources/gofer/system-skills/1_gofer_research/SKILL.md +1159 -0
- package/resources/gofer/system-skills/2_gofer_specify/SKILL.md +860 -0
- package/resources/gofer/system-skills/3_gofer_plan/SKILL.md +886 -0
- package/resources/gofer/system-skills/4_gofer_tasks/SKILL.md +748 -0
- package/resources/gofer/system-skills/5_gofer_implement/SKILL.md +924 -0
- package/resources/gofer/system-skills/6_gofer_validate/SKILL.md +2269 -0
- package/resources/gofer/system-skills/7_gofer_save/SKILL.md +423 -0
- package/resources/gofer/system-skills/7a_stakeholder_comms/SKILL.md +508 -0
- package/resources/gofer/system-skills/8_gofer_branding/SKILL.md +315 -0
- package/resources/gofer/system-skills/9_gofer_tests/SKILL.md +558 -0
- package/resources/gofer/system-skills/gofer_bootstrap_workspace/SKILL.md +148 -0
- package/resources/gofer/system-skills/gofer_check_workspace/SKILL.md +119 -0
- package/resources/gofer/system-skills/gofer_constitution/SKILL.md +612 -0
- package/resources/gofer/system-skills/gofer_diagnose/SKILL.md +114 -0
- package/resources/gofer/system-skills/gofer_eai_first_run/SKILL.md +397 -0
- package/resources/gofer/system-skills/gofer_hydrate/SKILL.md +561 -0
- package/resources/gofer/system-skills/gofer_personality/SKILL.md +44 -0
- package/resources/gofer/system-skills/gofer_plan/SKILL.md +40 -0
- package/resources/gofer/system-skills/gofer_side/SKILL.md +45 -0
- package/resources/gofer/system-skills/gofer_spec_summary/SKILL.md +112 -0
- package/resources/gofer/system-skills/gofer_tdd/SKILL.md +112 -0
- package/resources/gofer/system-skills/gofer_vocabulary/SKILL.md +112 -0
- package/resources/gofer/system-skills/gofer_zoom_out/SKILL.md +112 -0
- package/resources/gofer/templates/agent-file-template.md +28 -0
- package/resources/gofer/templates/assumptions-template.md +94 -0
- package/resources/gofer/templates/audit-history-template.md +35 -0
- package/resources/gofer/templates/brand/brand-profile-template.json +45 -0
- package/resources/gofer/templates/brand/document-style-template.md +50 -0
- package/resources/gofer/templates/brand/marp-theme-template.css +58 -0
- package/resources/gofer/templates/brownfield-analysis.md +44 -0
- package/resources/gofer/templates/business-metrics-template.md +120 -0
- package/resources/gofer/templates/business-owner-summary-template.md +83 -0
- package/resources/gofer/templates/checklist-template.md +40 -0
- package/resources/gofer/templates/ciso-security-summary-template.md +70 -0
- package/resources/gofer/templates/context-bundle-template.md +76 -0
- package/resources/gofer/templates/contract-pack-template.md +109 -0
- package/resources/gofer/templates/cto-architecture-summary-template.md +83 -0
- package/resources/gofer/templates/discovery-template.md +92 -0
- package/resources/gofer/templates/eai-preflight-template.md +144 -0
- package/resources/gofer/templates/goal-ledger-template.json +69 -0
- package/resources/gofer/templates/gofer-model-policy.yaml +97 -0
- package/resources/gofer/templates/issues-template.md +106 -0
- package/resources/gofer/templates/journey/base-journey.md +95 -0
- package/resources/gofer/templates/journey/industry-variants.yaml +277 -0
- package/resources/gofer/templates/loop-contract-template.json +68 -0
- package/resources/gofer/templates/plan-template.md +215 -0
- package/resources/gofer/templates/problem-brief-template.md +85 -0
- package/resources/gofer/templates/proposal-review-template.md +79 -0
- package/resources/gofer/templates/research-template.md +222 -0
- package/resources/gofer/templates/reuse-scan-template.md +43 -0
- package/resources/gofer/templates/sequence-diagrams/option-spectrum.yaml +178 -0
- package/resources/gofer/templates/service-fit-matrix-template.md +29 -0
- package/resources/gofer/templates/session-handoff-template.md +172 -0
- package/resources/gofer/templates/spec-summary-template.md +118 -0
- package/resources/gofer/templates/spec-template.md +196 -0
- package/resources/gofer/templates/stakeholder-comms-template.md +330 -0
- package/resources/gofer/templates/stakeholder-review-index-template.md +54 -0
- package/resources/gofer/templates/tasks-template.md +323 -0
- package/resources/gofer/templates/ui-approval-template.md +32 -0
- package/resources/gofer/templates/ui-preview-brief-template.md +65 -0
- package/resources/gofer/templates/ui-review-log-template.md +11 -0
- package/resources/gofer/templates/visuals/.gitkeep +0 -0
- package/resources/gofer/templates/visuals/bounded-context-map.md +19 -0
- package/resources/gofer/templates/visuals/bounded-context-template.md +47 -0
- package/resources/gofer/templates/visuals/c4-container-template.md +38 -0
- package/resources/gofer/templates/visuals/c4-container.md +20 -0
- package/resources/gofer/templates/visuals/c4-context-template.md +46 -0
- package/resources/gofer/templates/visuals/capability-heatmap-template.md +54 -0
- package/resources/gofer/templates/visuals/data-model-erd-template.md +41 -0
- package/resources/gofer/templates/visuals/erd.md +19 -0
- package/resources/gofer/templates/visuals/impact-canvas.md +40 -0
- package/resources/gofer/templates/visuals/risk-heatmap-template.md +51 -0
- package/resources/gofer/templates/visuals/roi-projection.md +17 -0
- package/resources/gofer/templates/visuals/value-stream-asis.md +16 -0
- package/resources/gofer/templates/visuals/value-stream-tobe.md +18 -0
- package/resources/gofer/templates/working-backwards-prfaq-template.md +165 -0
- package/resources/linked-sources.json +25 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { GoferInstallOptions } from './gofer-installer.js';
|
|
2
|
+
import type { ProjectManifest } from './project-manifest.js';
|
|
3
|
+
interface GoferBundleMetadata {
|
|
4
|
+
readonly commit?: string;
|
|
5
|
+
readonly describe?: string;
|
|
6
|
+
readonly syncedAt?: string;
|
|
7
|
+
readonly source?: 'latest' | 'bundled';
|
|
8
|
+
readonly warning?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GoferRefreshSummary {
|
|
11
|
+
added: number;
|
|
12
|
+
updated: number;
|
|
13
|
+
deleted: number;
|
|
14
|
+
unchanged: number;
|
|
15
|
+
conflicted: number;
|
|
16
|
+
backedUp: number;
|
|
17
|
+
}
|
|
18
|
+
export interface GoferRefreshPlanItem {
|
|
19
|
+
readonly relativePath: string;
|
|
20
|
+
readonly action: 'add' | 'update' | 'adopt-update' | 'delete' | 'unchanged' | 'conflict' | 'conflict-delete';
|
|
21
|
+
readonly source: 'bundled' | 'generated';
|
|
22
|
+
readonly desiredHash?: string;
|
|
23
|
+
readonly currentHash?: string;
|
|
24
|
+
readonly executable: boolean;
|
|
25
|
+
readonly contents?: Buffer;
|
|
26
|
+
}
|
|
27
|
+
export interface GoferRefreshPlan {
|
|
28
|
+
readonly projectRoot: string;
|
|
29
|
+
readonly manifest: ProjectManifest | null;
|
|
30
|
+
readonly bundle: GoferBundleMetadata;
|
|
31
|
+
readonly items: readonly GoferRefreshPlanItem[];
|
|
32
|
+
readonly summary: GoferRefreshSummary;
|
|
33
|
+
readonly firstRefresh: boolean;
|
|
34
|
+
}
|
|
35
|
+
export declare function readGoferBundleMetadata(): Promise<GoferBundleMetadata>;
|
|
36
|
+
export declare function planGoferRefresh(projectRoot: string, manifest: ProjectManifest | null, options?: GoferInstallOptions): Promise<GoferRefreshPlan>;
|
|
37
|
+
export declare function applyGoferRefresh(plan: GoferRefreshPlan, options?: {
|
|
38
|
+
readonly force?: boolean;
|
|
39
|
+
}): Promise<{
|
|
40
|
+
summary: GoferRefreshSummary;
|
|
41
|
+
backupDirectory: string | null;
|
|
42
|
+
manifest: ProjectManifest;
|
|
43
|
+
}>;
|
|
44
|
+
export declare function isDirectoryPath(path: string): Promise<boolean>;
|
|
45
|
+
export {};
|
|
46
|
+
//# sourceMappingURL=gofer-refresh.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gofer-refresh.d.ts","sourceRoot":"","sources":["../../src/lib/gofer-refresh.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,KAAK,EAAyB,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAiBpF,UAAU,mBAAmB;IAC3B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IACvC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B;AAOD,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,YAAY,EAAE,MAAM,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AAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAMpE"}
|
|
@@ -0,0 +1,536 @@
|
|
|
1
|
+
import { createHash } from 'node:crypto';
|
|
2
|
+
import { execFile } from 'node:child_process';
|
|
3
|
+
import { access, chmod, copyFile, cp, mkdir, readFile, readdir, rm, stat, writeFile } from 'node:fs/promises';
|
|
4
|
+
import { homedir } from 'node:os';
|
|
5
|
+
import { dirname, join, relative, resolve } from 'node:path';
|
|
6
|
+
import { promisify } from 'node:util';
|
|
7
|
+
import { GOFER_RESOURCE_MAPPINGS, installClaudeHooks, renderGoferManagedTextFiles, resolveGoferResourcesPath, updateGitignore, updateVSCodeSettings, } from './gofer-installer.js';
|
|
8
|
+
import { saveProjectManifest } from './project-manifest.js';
|
|
9
|
+
const execFileAsync = promisify(execFile);
|
|
10
|
+
const GOFER_REPO_URL = 'https://github.com/eai-tools/eai-gofer.git';
|
|
11
|
+
const GOFER_RELEASE_MANIFEST_URL = 'https://eai-tools.github.io/eai-gofer/releases/plugins/eai-gofer/gemini-extension.json';
|
|
12
|
+
const GOFER_FETCH_TIMEOUT_MS = 5000;
|
|
13
|
+
const GOFER_CACHE_ROOT = join(homedir(), '.eai', 'gofer-cache');
|
|
14
|
+
const GOFER_BASE_RESOURCE_DIR = join('extension', 'resources');
|
|
15
|
+
const GOFER_EXTRA_RESOURCE_MAPPINGS = [
|
|
16
|
+
['.specify/commands', 'commands'],
|
|
17
|
+
['.specify/memory', 'memory'],
|
|
18
|
+
['.specify/references', 'references'],
|
|
19
|
+
['.system/skills', 'system-skills'],
|
|
20
|
+
['.agents/skills', 'agents-skills'],
|
|
21
|
+
];
|
|
22
|
+
function normalizeRelativePath(path) {
|
|
23
|
+
return path.replace(/\\/g, '/');
|
|
24
|
+
}
|
|
25
|
+
function hashContents(contents) {
|
|
26
|
+
return createHash('sha256').update(contents).digest('hex');
|
|
27
|
+
}
|
|
28
|
+
async function fileExists(path) {
|
|
29
|
+
try {
|
|
30
|
+
await access(path);
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
catch {
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
async function readCurrentHash(path) {
|
|
38
|
+
if (!(await fileExists(path))) {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
return hashContents(await readFile(path));
|
|
42
|
+
}
|
|
43
|
+
async function readResourcesMetadata(root) {
|
|
44
|
+
const metadataPath = join(root, '.gofer-version');
|
|
45
|
+
try {
|
|
46
|
+
const raw = JSON.parse(await readFile(metadataPath, 'utf-8'));
|
|
47
|
+
return {
|
|
48
|
+
commit: raw.commit,
|
|
49
|
+
describe: raw.describe,
|
|
50
|
+
syncedAt: raw.synced_at ?? raw.syncedAt,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
catch {
|
|
54
|
+
return {};
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
function shouldUseLatestGoferSource() {
|
|
58
|
+
const mode = (process.env['EAI_GOFER_REFRESH_SOURCE'] || '').trim().toLowerCase();
|
|
59
|
+
if (mode === 'bundled') {
|
|
60
|
+
return false;
|
|
61
|
+
}
|
|
62
|
+
if (mode === 'latest') {
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
if (process.env['EAI_GOFER_REFRESH_BUNDLED_ONLY'] === '1') {
|
|
66
|
+
return false;
|
|
67
|
+
}
|
|
68
|
+
if (process.env['EAI_GOFER_REFRESH_RESOURCES_PATH']) {
|
|
69
|
+
return true;
|
|
70
|
+
}
|
|
71
|
+
return process.env['NODE_ENV'] !== 'test';
|
|
72
|
+
}
|
|
73
|
+
function getLatestManifestUrl() {
|
|
74
|
+
return process.env['EAI_GOFER_REFRESH_MANIFEST_URL'] || GOFER_RELEASE_MANIFEST_URL;
|
|
75
|
+
}
|
|
76
|
+
function getGoferRepoUrl() {
|
|
77
|
+
return process.env['EAI_GOFER_REFRESH_REPO_URL'] || GOFER_REPO_URL;
|
|
78
|
+
}
|
|
79
|
+
function getGoferCacheRoot() {
|
|
80
|
+
return process.env['EAI_GOFER_REFRESH_CACHE_DIR'] || GOFER_CACHE_ROOT;
|
|
81
|
+
}
|
|
82
|
+
function sanitizeCacheSegment(value) {
|
|
83
|
+
return value.replace(/[^A-Za-z0-9._-]/g, '-');
|
|
84
|
+
}
|
|
85
|
+
async function fetchLatestGoferVersion() {
|
|
86
|
+
let timeout;
|
|
87
|
+
try {
|
|
88
|
+
const controller = new AbortController();
|
|
89
|
+
timeout = setTimeout(() => controller.abort(), GOFER_FETCH_TIMEOUT_MS);
|
|
90
|
+
const response = await fetch(getLatestManifestUrl(), { signal: controller.signal });
|
|
91
|
+
if (!response.ok) {
|
|
92
|
+
return null;
|
|
93
|
+
}
|
|
94
|
+
const data = await response.json();
|
|
95
|
+
if (typeof data.version !== 'string' || !/^\d+\.\d+\.\d+(?:[-+][A-Za-z0-9._-]+)?$/.test(data.version)) {
|
|
96
|
+
return null;
|
|
97
|
+
}
|
|
98
|
+
return {
|
|
99
|
+
version: data.version,
|
|
100
|
+
generated: typeof data.generated === 'string' ? data.generated : undefined,
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
catch {
|
|
104
|
+
return null;
|
|
105
|
+
}
|
|
106
|
+
finally {
|
|
107
|
+
if (timeout) {
|
|
108
|
+
clearTimeout(timeout);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
async function runGit(args, cwd) {
|
|
113
|
+
const { stdout } = await execFileAsync('git', [...args], {
|
|
114
|
+
cwd,
|
|
115
|
+
maxBuffer: 10 * 1024 * 1024,
|
|
116
|
+
});
|
|
117
|
+
return stdout.trim();
|
|
118
|
+
}
|
|
119
|
+
async function ensureLatestGoferCheckout(version) {
|
|
120
|
+
const tag = `v${version}`;
|
|
121
|
+
const checkoutRoot = join(getGoferCacheRoot(), sanitizeCacheSegment(tag), 'repo');
|
|
122
|
+
if (await fileExists(join(checkoutRoot, '.git')) &&
|
|
123
|
+
await isDirectoryPath(join(checkoutRoot, GOFER_BASE_RESOURCE_DIR))) {
|
|
124
|
+
return checkoutRoot;
|
|
125
|
+
}
|
|
126
|
+
await rm(checkoutRoot, { recursive: true, force: true });
|
|
127
|
+
await mkdir(dirname(checkoutRoot), { recursive: true });
|
|
128
|
+
await runGit([
|
|
129
|
+
'clone',
|
|
130
|
+
'--depth',
|
|
131
|
+
'1',
|
|
132
|
+
'--branch',
|
|
133
|
+
tag,
|
|
134
|
+
getGoferRepoUrl(),
|
|
135
|
+
checkoutRoot,
|
|
136
|
+
]);
|
|
137
|
+
return checkoutRoot;
|
|
138
|
+
}
|
|
139
|
+
async function copyDirectoryIfPresent(source, target) {
|
|
140
|
+
if (!(await isDirectoryPath(source))) {
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
await mkdir(target, { recursive: true });
|
|
144
|
+
await cp(source, target, { recursive: true, force: true });
|
|
145
|
+
}
|
|
146
|
+
async function writeResourcesMetadata(root, metadata) {
|
|
147
|
+
await writeFile(join(root, '.gofer-version'), JSON.stringify({
|
|
148
|
+
commit: metadata.commit,
|
|
149
|
+
describe: metadata.describe,
|
|
150
|
+
synced_at: metadata.syncedAt,
|
|
151
|
+
}, null, 2) + '\n');
|
|
152
|
+
}
|
|
153
|
+
async function normalizeGoferResourcesCheckout(checkoutRoot, metadata) {
|
|
154
|
+
const resourcesRoot = join(dirname(checkoutRoot), 'resources');
|
|
155
|
+
const currentMetadata = await readResourcesMetadata(resourcesRoot);
|
|
156
|
+
if (currentMetadata.commit && metadata.commit && currentMetadata.commit === metadata.commit) {
|
|
157
|
+
return resourcesRoot;
|
|
158
|
+
}
|
|
159
|
+
const baseResources = join(checkoutRoot, GOFER_BASE_RESOURCE_DIR);
|
|
160
|
+
if (!(await isDirectoryPath(baseResources))) {
|
|
161
|
+
throw new Error(`eai-gofer checkout is missing ${GOFER_BASE_RESOURCE_DIR}`);
|
|
162
|
+
}
|
|
163
|
+
await rm(resourcesRoot, { recursive: true, force: true });
|
|
164
|
+
await mkdir(resourcesRoot, { recursive: true });
|
|
165
|
+
await cp(baseResources, resourcesRoot, { recursive: true, force: true });
|
|
166
|
+
for (const [sourceRelative, targetRelative] of GOFER_EXTRA_RESOURCE_MAPPINGS) {
|
|
167
|
+
await copyDirectoryIfPresent(join(checkoutRoot, sourceRelative), join(resourcesRoot, targetRelative));
|
|
168
|
+
}
|
|
169
|
+
await writeResourcesMetadata(resourcesRoot, metadata);
|
|
170
|
+
return resourcesRoot;
|
|
171
|
+
}
|
|
172
|
+
async function resolveBundledGoferResourcesSource(warning) {
|
|
173
|
+
const root = resolveGoferResourcesPath();
|
|
174
|
+
return {
|
|
175
|
+
root,
|
|
176
|
+
metadata: {
|
|
177
|
+
...await readResourcesMetadata(root),
|
|
178
|
+
source: 'bundled',
|
|
179
|
+
warning,
|
|
180
|
+
},
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
async function resolveLatestGoferResourcesSource() {
|
|
184
|
+
const overridePath = process.env['EAI_GOFER_REFRESH_RESOURCES_PATH'];
|
|
185
|
+
if (overridePath) {
|
|
186
|
+
const root = resolve(overridePath);
|
|
187
|
+
return {
|
|
188
|
+
root,
|
|
189
|
+
metadata: {
|
|
190
|
+
...await readResourcesMetadata(root),
|
|
191
|
+
source: 'latest',
|
|
192
|
+
},
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
const latest = await fetchLatestGoferVersion();
|
|
196
|
+
if (!latest) {
|
|
197
|
+
return null;
|
|
198
|
+
}
|
|
199
|
+
const checkoutRoot = await ensureLatestGoferCheckout(latest.version);
|
|
200
|
+
const commit = await runGit(['rev-parse', 'HEAD'], checkoutRoot).catch(() => undefined);
|
|
201
|
+
const metadata = {
|
|
202
|
+
commit,
|
|
203
|
+
describe: `v${latest.version}`,
|
|
204
|
+
syncedAt: latest.generated,
|
|
205
|
+
source: 'latest',
|
|
206
|
+
};
|
|
207
|
+
return {
|
|
208
|
+
root: await normalizeGoferResourcesCheckout(checkoutRoot, metadata),
|
|
209
|
+
metadata,
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
async function resolveGoferResourcesSource() {
|
|
213
|
+
if (!shouldUseLatestGoferSource()) {
|
|
214
|
+
return resolveBundledGoferResourcesSource();
|
|
215
|
+
}
|
|
216
|
+
try {
|
|
217
|
+
const latest = await resolveLatestGoferResourcesSource();
|
|
218
|
+
if (latest) {
|
|
219
|
+
return latest;
|
|
220
|
+
}
|
|
221
|
+
return resolveBundledGoferResourcesSource('Could not resolve the latest eai-gofer release; using bundled assets.');
|
|
222
|
+
}
|
|
223
|
+
catch (err) {
|
|
224
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
225
|
+
return resolveBundledGoferResourcesSource(`Could not prepare the latest eai-gofer release (${message}); using bundled assets.`);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
export async function readGoferBundleMetadata() {
|
|
229
|
+
return (await resolveGoferResourcesSource()).metadata;
|
|
230
|
+
}
|
|
231
|
+
async function collectBundledCandidates(resourcesRoot) {
|
|
232
|
+
const candidates = [];
|
|
233
|
+
for (const mapping of GOFER_RESOURCE_MAPPINGS) {
|
|
234
|
+
const sourceRoot = join(resourcesRoot, mapping.sourceSubdirectory);
|
|
235
|
+
const files = await collectDirectoryFiles(sourceRoot);
|
|
236
|
+
for (const sourcePath of files) {
|
|
237
|
+
const relativeSource = normalizeRelativePath(relative(sourceRoot, sourcePath));
|
|
238
|
+
candidates.push({
|
|
239
|
+
relativePath: normalizeRelativePath(join(...mapping.targetSegments, relativeSource)),
|
|
240
|
+
contents: await readFile(sourcePath),
|
|
241
|
+
source: 'bundled',
|
|
242
|
+
executable: mapping.makeExecutable ?? false,
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
return candidates;
|
|
247
|
+
}
|
|
248
|
+
async function collectDirectoryFiles(root) {
|
|
249
|
+
const results = [];
|
|
250
|
+
const entries = await readdir(root, { withFileTypes: true });
|
|
251
|
+
for (const entry of entries) {
|
|
252
|
+
const entryPath = join(root, entry.name);
|
|
253
|
+
if (entry.isDirectory()) {
|
|
254
|
+
results.push(...await collectDirectoryFiles(entryPath));
|
|
255
|
+
continue;
|
|
256
|
+
}
|
|
257
|
+
if (entry.isFile()) {
|
|
258
|
+
results.push(entryPath);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
return results;
|
|
262
|
+
}
|
|
263
|
+
async function collectGeneratedCandidates(projectRoot, options) {
|
|
264
|
+
const generated = await renderGoferManagedTextFiles(projectRoot, options);
|
|
265
|
+
return generated
|
|
266
|
+
.filter((file) => file.relativePath !== 'AGENTS.md')
|
|
267
|
+
.map((file) => ({
|
|
268
|
+
relativePath: normalizeRelativePath(file.relativePath),
|
|
269
|
+
contents: Buffer.from(file.content, 'utf-8'),
|
|
270
|
+
source: 'generated',
|
|
271
|
+
executable: false,
|
|
272
|
+
}));
|
|
273
|
+
}
|
|
274
|
+
function buildSummary(items) {
|
|
275
|
+
return items.reduce((summary, item) => {
|
|
276
|
+
switch (item.action) {
|
|
277
|
+
case 'add':
|
|
278
|
+
summary.added += 1;
|
|
279
|
+
break;
|
|
280
|
+
case 'update':
|
|
281
|
+
case 'adopt-update':
|
|
282
|
+
summary.updated += 1;
|
|
283
|
+
break;
|
|
284
|
+
case 'delete':
|
|
285
|
+
summary.deleted += 1;
|
|
286
|
+
break;
|
|
287
|
+
case 'unchanged':
|
|
288
|
+
summary.unchanged += 1;
|
|
289
|
+
break;
|
|
290
|
+
case 'conflict':
|
|
291
|
+
case 'conflict-delete':
|
|
292
|
+
summary.conflicted += 1;
|
|
293
|
+
break;
|
|
294
|
+
}
|
|
295
|
+
return summary;
|
|
296
|
+
}, {
|
|
297
|
+
added: 0,
|
|
298
|
+
updated: 0,
|
|
299
|
+
deleted: 0,
|
|
300
|
+
unchanged: 0,
|
|
301
|
+
conflicted: 0,
|
|
302
|
+
backedUp: 0,
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
export async function planGoferRefresh(projectRoot, manifest, options = {}) {
|
|
306
|
+
const resourcesSource = await resolveGoferResourcesSource();
|
|
307
|
+
const bundle = resourcesSource.metadata;
|
|
308
|
+
const desiredFiles = new Map();
|
|
309
|
+
for (const candidate of [
|
|
310
|
+
...await collectBundledCandidates(resourcesSource.root),
|
|
311
|
+
...await collectGeneratedCandidates(projectRoot, options),
|
|
312
|
+
]) {
|
|
313
|
+
desiredFiles.set(candidate.relativePath, candidate);
|
|
314
|
+
}
|
|
315
|
+
const trackedFiles = manifest?.gofer?.managedFiles ?? {};
|
|
316
|
+
const items = [];
|
|
317
|
+
const firstRefresh = !manifest?.gofer;
|
|
318
|
+
for (const candidate of [...desiredFiles.values()].sort((left, right) => left.relativePath.localeCompare(right.relativePath))) {
|
|
319
|
+
const absolutePath = join(projectRoot, candidate.relativePath);
|
|
320
|
+
const currentHash = await readCurrentHash(absolutePath);
|
|
321
|
+
const desiredHash = hashContents(candidate.contents);
|
|
322
|
+
const tracked = trackedFiles[candidate.relativePath];
|
|
323
|
+
if (currentHash === null) {
|
|
324
|
+
items.push({
|
|
325
|
+
relativePath: candidate.relativePath,
|
|
326
|
+
action: 'add',
|
|
327
|
+
source: candidate.source,
|
|
328
|
+
desiredHash,
|
|
329
|
+
executable: candidate.executable,
|
|
330
|
+
contents: candidate.contents,
|
|
331
|
+
});
|
|
332
|
+
continue;
|
|
333
|
+
}
|
|
334
|
+
if (currentHash === desiredHash) {
|
|
335
|
+
items.push({
|
|
336
|
+
relativePath: candidate.relativePath,
|
|
337
|
+
action: 'unchanged',
|
|
338
|
+
source: candidate.source,
|
|
339
|
+
currentHash,
|
|
340
|
+
desiredHash,
|
|
341
|
+
executable: candidate.executable,
|
|
342
|
+
});
|
|
343
|
+
continue;
|
|
344
|
+
}
|
|
345
|
+
if (!tracked) {
|
|
346
|
+
items.push({
|
|
347
|
+
relativePath: candidate.relativePath,
|
|
348
|
+
action: 'adopt-update',
|
|
349
|
+
source: candidate.source,
|
|
350
|
+
currentHash,
|
|
351
|
+
desiredHash,
|
|
352
|
+
executable: candidate.executable,
|
|
353
|
+
contents: candidate.contents,
|
|
354
|
+
});
|
|
355
|
+
continue;
|
|
356
|
+
}
|
|
357
|
+
if (tracked.sha256 === currentHash) {
|
|
358
|
+
items.push({
|
|
359
|
+
relativePath: candidate.relativePath,
|
|
360
|
+
action: 'update',
|
|
361
|
+
source: candidate.source,
|
|
362
|
+
currentHash,
|
|
363
|
+
desiredHash,
|
|
364
|
+
executable: candidate.executable,
|
|
365
|
+
contents: candidate.contents,
|
|
366
|
+
});
|
|
367
|
+
continue;
|
|
368
|
+
}
|
|
369
|
+
items.push({
|
|
370
|
+
relativePath: candidate.relativePath,
|
|
371
|
+
action: 'conflict',
|
|
372
|
+
source: candidate.source,
|
|
373
|
+
currentHash,
|
|
374
|
+
desiredHash,
|
|
375
|
+
executable: candidate.executable,
|
|
376
|
+
contents: candidate.contents,
|
|
377
|
+
});
|
|
378
|
+
}
|
|
379
|
+
for (const relativePath of Object.keys(trackedFiles).sort()) {
|
|
380
|
+
if (desiredFiles.has(relativePath)) {
|
|
381
|
+
continue;
|
|
382
|
+
}
|
|
383
|
+
const absolutePath = join(projectRoot, relativePath);
|
|
384
|
+
const currentHash = await readCurrentHash(absolutePath);
|
|
385
|
+
if (!currentHash) {
|
|
386
|
+
continue;
|
|
387
|
+
}
|
|
388
|
+
items.push({
|
|
389
|
+
relativePath,
|
|
390
|
+
action: trackedFiles[relativePath]?.sha256 === currentHash ? 'delete' : 'conflict-delete',
|
|
391
|
+
source: trackedFiles[relativePath]?.source ?? 'generated',
|
|
392
|
+
currentHash,
|
|
393
|
+
executable: false,
|
|
394
|
+
});
|
|
395
|
+
}
|
|
396
|
+
return {
|
|
397
|
+
projectRoot,
|
|
398
|
+
manifest,
|
|
399
|
+
bundle,
|
|
400
|
+
items,
|
|
401
|
+
summary: buildSummary(items),
|
|
402
|
+
firstRefresh,
|
|
403
|
+
};
|
|
404
|
+
}
|
|
405
|
+
async function backupFile(projectRoot, backupRoot, relativePath) {
|
|
406
|
+
const sourcePath = join(projectRoot, relativePath);
|
|
407
|
+
if (!(await fileExists(sourcePath))) {
|
|
408
|
+
return;
|
|
409
|
+
}
|
|
410
|
+
const backupPath = join(backupRoot, relativePath);
|
|
411
|
+
await mkdir(dirname(backupPath), { recursive: true });
|
|
412
|
+
await copyFile(sourcePath, backupPath);
|
|
413
|
+
}
|
|
414
|
+
function createManifestFromPlan(plan, appliedItems) {
|
|
415
|
+
const nextManagedFiles = {
|
|
416
|
+
...(plan.manifest?.gofer?.managedFiles ?? {}),
|
|
417
|
+
};
|
|
418
|
+
for (const item of appliedItems) {
|
|
419
|
+
if (item.action === 'delete') {
|
|
420
|
+
delete nextManagedFiles[item.relativePath];
|
|
421
|
+
continue;
|
|
422
|
+
}
|
|
423
|
+
if (item.action === 'add' || item.action === 'update' || item.action === 'adopt-update' || item.action === 'unchanged') {
|
|
424
|
+
if (!item.desiredHash) {
|
|
425
|
+
continue;
|
|
426
|
+
}
|
|
427
|
+
nextManagedFiles[item.relativePath] = {
|
|
428
|
+
sha256: item.desiredHash,
|
|
429
|
+
source: item.source,
|
|
430
|
+
};
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
return {
|
|
434
|
+
schemaVersion: 1,
|
|
435
|
+
cli: plan.manifest?.cli,
|
|
436
|
+
packages: plan.manifest?.packages,
|
|
437
|
+
template: plan.manifest?.template,
|
|
438
|
+
gofer: {
|
|
439
|
+
bundle: {
|
|
440
|
+
commit: plan.bundle.commit,
|
|
441
|
+
describe: plan.bundle.describe,
|
|
442
|
+
syncedAt: plan.bundle.syncedAt,
|
|
443
|
+
},
|
|
444
|
+
managedFiles: nextManagedFiles,
|
|
445
|
+
refreshedAt: new Date().toISOString(),
|
|
446
|
+
},
|
|
447
|
+
};
|
|
448
|
+
}
|
|
449
|
+
export async function applyGoferRefresh(plan, options = {}) {
|
|
450
|
+
const force = options.force ?? false;
|
|
451
|
+
const timestamp = new Date().toISOString().replace(/[:.]/g, '-');
|
|
452
|
+
const backupRoot = join(plan.projectRoot, '.specify', '_backup', 'gofer-refresh', timestamp);
|
|
453
|
+
let backupCount = 0;
|
|
454
|
+
const appliedItems = [];
|
|
455
|
+
for (const item of plan.items) {
|
|
456
|
+
const absolutePath = join(plan.projectRoot, item.relativePath);
|
|
457
|
+
if (item.action === 'conflict' || item.action === 'conflict-delete') {
|
|
458
|
+
if (!force) {
|
|
459
|
+
continue;
|
|
460
|
+
}
|
|
461
|
+
await backupFile(plan.projectRoot, backupRoot, item.relativePath);
|
|
462
|
+
backupCount += 1;
|
|
463
|
+
if (item.action === 'conflict-delete') {
|
|
464
|
+
await rm(absolutePath, { force: true });
|
|
465
|
+
appliedItems.push({ ...item, action: 'delete' });
|
|
466
|
+
continue;
|
|
467
|
+
}
|
|
468
|
+
if (!item.contents) {
|
|
469
|
+
continue;
|
|
470
|
+
}
|
|
471
|
+
await mkdir(dirname(absolutePath), { recursive: true });
|
|
472
|
+
await writeFile(absolutePath, item.contents);
|
|
473
|
+
if (item.executable) {
|
|
474
|
+
await chmod(absolutePath, 0o755);
|
|
475
|
+
}
|
|
476
|
+
appliedItems.push({ ...item, action: 'update' });
|
|
477
|
+
continue;
|
|
478
|
+
}
|
|
479
|
+
if (item.action === 'delete') {
|
|
480
|
+
await backupFile(plan.projectRoot, backupRoot, item.relativePath);
|
|
481
|
+
backupCount += 1;
|
|
482
|
+
await rm(absolutePath, { force: true });
|
|
483
|
+
appliedItems.push(item);
|
|
484
|
+
continue;
|
|
485
|
+
}
|
|
486
|
+
if (item.action === 'unchanged') {
|
|
487
|
+
appliedItems.push(item);
|
|
488
|
+
continue;
|
|
489
|
+
}
|
|
490
|
+
if (!item.contents) {
|
|
491
|
+
continue;
|
|
492
|
+
}
|
|
493
|
+
if (item.action === 'adopt-update') {
|
|
494
|
+
await backupFile(plan.projectRoot, backupRoot, item.relativePath);
|
|
495
|
+
backupCount += 1;
|
|
496
|
+
}
|
|
497
|
+
await mkdir(dirname(absolutePath), { recursive: true });
|
|
498
|
+
await writeFile(absolutePath, item.contents);
|
|
499
|
+
if (item.executable) {
|
|
500
|
+
await chmod(absolutePath, 0o755);
|
|
501
|
+
}
|
|
502
|
+
appliedItems.push(item);
|
|
503
|
+
}
|
|
504
|
+
await installClaudeHooks(plan.projectRoot);
|
|
505
|
+
await updateVSCodeSettings(plan.projectRoot);
|
|
506
|
+
await updateGitignore(plan.projectRoot);
|
|
507
|
+
const manifest = createManifestFromPlan(plan, appliedItems);
|
|
508
|
+
await saveProjectManifest(plan.projectRoot, manifest);
|
|
509
|
+
const summary = buildSummary([
|
|
510
|
+
...appliedItems,
|
|
511
|
+
...plan.items.filter((item) => {
|
|
512
|
+
if (item.action !== 'conflict' && item.action !== 'conflict-delete') {
|
|
513
|
+
return false;
|
|
514
|
+
}
|
|
515
|
+
return !force;
|
|
516
|
+
}),
|
|
517
|
+
]);
|
|
518
|
+
const finalSummary = {
|
|
519
|
+
...summary,
|
|
520
|
+
backedUp: backupCount,
|
|
521
|
+
};
|
|
522
|
+
return {
|
|
523
|
+
summary: finalSummary,
|
|
524
|
+
backupDirectory: backupCount > 0 ? backupRoot : null,
|
|
525
|
+
manifest,
|
|
526
|
+
};
|
|
527
|
+
}
|
|
528
|
+
export async function isDirectoryPath(path) {
|
|
529
|
+
try {
|
|
530
|
+
return (await stat(path)).isDirectory();
|
|
531
|
+
}
|
|
532
|
+
catch {
|
|
533
|
+
return false;
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
//# sourceMappingURL=gofer-refresh.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gofer-refresh.js","sourceRoot":"","sources":["../../src/lib/gofer-refresh.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE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,KAAK,CAAC;QAChB,CAAC,CAAC;KACH,CAAC,CAAC;IAEH,MAAM,YAAY,GAAwB;QACxC,GAAG,OAAO;QACV,QAAQ,EAAE,WAAW;KACtB,CAAC;IAEF,OAAO;QACL,OAAO,EAAE,YAAY;QACrB,eAAe,EAAE,WAAW,GAAG,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI;QACpD,QAAQ;KACT,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,IAAY;IAChD,IAAI,CAAC;QACH,OAAO,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IAC1C,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export interface RouteExportViolation {
|
|
2
|
+
readonly routeFile: string;
|
|
3
|
+
readonly invalidExports: readonly string[];
|
|
4
|
+
}
|
|
5
|
+
export declare function scanAppRouterRouteExports(projectRoot: string): Promise<readonly RouteExportViolation[]>;
|
|
6
|
+
//# sourceMappingURL=next-route-exports.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"next-route-exports.d.ts","sourceRoot":"","sources":["../../src/lib/next-route-exports.ts"],"names":[],"mappings":"AAuBA,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,cAAc,EAAE,SAAS,MAAM,EAAE,CAAC;CAC5C;AAuHD,wBAAsB,yBAAyB,CAC7C,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,SAAS,oBAAoB,EAAE,CAAC,CA8B1C"}
|