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,318 @@
|
|
|
1
|
+
import { execFile } from 'node:child_process';
|
|
2
|
+
import { readFile } from 'node:fs/promises';
|
|
3
|
+
import { join } from 'node:path';
|
|
4
|
+
import { promisify } from 'node:util';
|
|
5
|
+
import { findProjectRoot } from './config.js';
|
|
6
|
+
const exec = promisify(execFile);
|
|
7
|
+
export const RUNTIME_CONTRACT_FILE = 'eai.runtime.json';
|
|
8
|
+
function isRecord(value) {
|
|
9
|
+
return typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
10
|
+
}
|
|
11
|
+
function stringArray(value) {
|
|
12
|
+
if (!Array.isArray(value))
|
|
13
|
+
return [];
|
|
14
|
+
return value.filter((entry) => typeof entry === 'string' && entry.trim() !== '');
|
|
15
|
+
}
|
|
16
|
+
function readPath(value) {
|
|
17
|
+
return typeof value === 'string' && value.trim() ? value.trim() : undefined;
|
|
18
|
+
}
|
|
19
|
+
function startsWithSlash(pathValue) {
|
|
20
|
+
return typeof pathValue === 'string' && pathValue.startsWith('/');
|
|
21
|
+
}
|
|
22
|
+
function normalizeSmokeTest(value) {
|
|
23
|
+
if (!isRecord(value))
|
|
24
|
+
return null;
|
|
25
|
+
const name = typeof value.name === 'string' && value.name.trim() ? value.name.trim() : '';
|
|
26
|
+
const method = typeof value.method === 'string' && value.method.trim() ? value.method.trim().toUpperCase() : 'GET';
|
|
27
|
+
const path = readPath(value.path);
|
|
28
|
+
const expectedStatus = typeof value.expectedStatus === 'number' ||
|
|
29
|
+
(Array.isArray(value.expectedStatus) && value.expectedStatus.every((status) => typeof status === 'number'))
|
|
30
|
+
? value.expectedStatus
|
|
31
|
+
: 200;
|
|
32
|
+
if (!name || !path)
|
|
33
|
+
return null;
|
|
34
|
+
return {
|
|
35
|
+
name,
|
|
36
|
+
method,
|
|
37
|
+
path,
|
|
38
|
+
expectedStatus,
|
|
39
|
+
category: typeof value.category === 'string' ? value.category : undefined,
|
|
40
|
+
optional: value.optional === true,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function normalizePublicEndpoint(value) {
|
|
44
|
+
if (!isRecord(value))
|
|
45
|
+
return null;
|
|
46
|
+
const path = readPath(value.path);
|
|
47
|
+
if (!path)
|
|
48
|
+
return null;
|
|
49
|
+
return {
|
|
50
|
+
method: typeof value.method === 'string' ? value.method.toUpperCase() : 'GET',
|
|
51
|
+
path,
|
|
52
|
+
serverSidePlatformAccess: value.serverSidePlatformAccess === true,
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export function normalizeRuntimeContract(raw) {
|
|
56
|
+
const environment = isRecord(raw.environment) ? raw.environment : {};
|
|
57
|
+
const tenantKeyPattern = isRecord(environment.tenantKeyPattern)
|
|
58
|
+
? {
|
|
59
|
+
keysEnv: readPath(environment.tenantKeyPattern.keysEnv),
|
|
60
|
+
tenantIdEnv: readPath(environment.tenantKeyPattern.tenantIdEnv),
|
|
61
|
+
workflowIdEnv: readPath(environment.tenantKeyPattern.workflowIdEnv),
|
|
62
|
+
}
|
|
63
|
+
: undefined;
|
|
64
|
+
const secrets = isRecord(raw.secrets) ? raw.secrets : {};
|
|
65
|
+
const auth = isRecord(raw.auth) ? raw.auth : {};
|
|
66
|
+
const endpoints = isRecord(raw.endpoints) ? raw.endpoints : {};
|
|
67
|
+
return {
|
|
68
|
+
raw,
|
|
69
|
+
environment: {
|
|
70
|
+
required: stringArray(environment.required),
|
|
71
|
+
tenantKeyPattern,
|
|
72
|
+
},
|
|
73
|
+
secrets: {
|
|
74
|
+
required: stringArray(secrets.required),
|
|
75
|
+
optional: stringArray(secrets.optional),
|
|
76
|
+
},
|
|
77
|
+
auth: {
|
|
78
|
+
callbackPath: readPath(auth.callbackPath),
|
|
79
|
+
},
|
|
80
|
+
endpoints: {
|
|
81
|
+
health: readPath(endpoints.health),
|
|
82
|
+
authProviders: readPath(endpoints.authProviders),
|
|
83
|
+
runtimeConfig: readPath(endpoints.runtimeConfig),
|
|
84
|
+
bffBasePath: readPath(endpoints.bffBasePath),
|
|
85
|
+
public: Array.isArray(endpoints.public)
|
|
86
|
+
? endpoints.public
|
|
87
|
+
.map((endpoint) => normalizePublicEndpoint(endpoint))
|
|
88
|
+
.filter((endpoint) => endpoint !== null)
|
|
89
|
+
: [],
|
|
90
|
+
smokeTests: Array.isArray(endpoints.smokeTests)
|
|
91
|
+
? endpoints.smokeTests
|
|
92
|
+
.map((test) => normalizeSmokeTest(test))
|
|
93
|
+
.filter((test) => test !== null)
|
|
94
|
+
: [],
|
|
95
|
+
},
|
|
96
|
+
serviceIdentityExplicit: isRecord(raw.serviceIdentity),
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
async function readJsonFile(path) {
|
|
100
|
+
const content = await readFile(path, 'utf8');
|
|
101
|
+
return JSON.parse(content);
|
|
102
|
+
}
|
|
103
|
+
async function readEnvFile(projectRoot, fileName) {
|
|
104
|
+
try {
|
|
105
|
+
const content = await readFile(join(projectRoot, fileName), 'utf8');
|
|
106
|
+
const env = {};
|
|
107
|
+
for (const line of content.split(/\r?\n/)) {
|
|
108
|
+
const trimmed = line.trim();
|
|
109
|
+
if (!trimmed || trimmed.startsWith('#'))
|
|
110
|
+
continue;
|
|
111
|
+
const separator = trimmed.indexOf('=');
|
|
112
|
+
if (separator < 1)
|
|
113
|
+
continue;
|
|
114
|
+
const key = trimmed.slice(0, separator).trim();
|
|
115
|
+
let value = trimmed.slice(separator + 1).trim();
|
|
116
|
+
if ((value.startsWith('"') && value.endsWith('"')) ||
|
|
117
|
+
(value.startsWith("'") && value.endsWith("'"))) {
|
|
118
|
+
value = value.slice(1, -1);
|
|
119
|
+
}
|
|
120
|
+
env[key] = value;
|
|
121
|
+
}
|
|
122
|
+
return env;
|
|
123
|
+
}
|
|
124
|
+
catch {
|
|
125
|
+
return {};
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
function normalizeTenantEnvKey(key) {
|
|
129
|
+
return key.trim().toUpperCase().replace(/-/g, '_');
|
|
130
|
+
}
|
|
131
|
+
function interpolatePattern(pattern, key) {
|
|
132
|
+
if (!pattern || !pattern.includes('{KEY}'))
|
|
133
|
+
return null;
|
|
134
|
+
return pattern.replace('{KEY}', normalizeTenantEnvKey(key));
|
|
135
|
+
}
|
|
136
|
+
async function findTrackedSecretFiles(projectRoot) {
|
|
137
|
+
const candidateFiles = ['.env', '.env.local', '.env.production', '.env.test'];
|
|
138
|
+
try {
|
|
139
|
+
const { stdout } = await exec('git', ['ls-files', ...candidateFiles], { cwd: projectRoot });
|
|
140
|
+
return stdout
|
|
141
|
+
.split(/\r?\n/)
|
|
142
|
+
.map((line) => line.trim())
|
|
143
|
+
.filter(Boolean);
|
|
144
|
+
}
|
|
145
|
+
catch {
|
|
146
|
+
return [];
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
export async function loadRuntimeContract(projectRoot) {
|
|
150
|
+
const root = projectRoot ?? (await findProjectRoot());
|
|
151
|
+
if (!root) {
|
|
152
|
+
throw new Error(`Could not find an EAI project root containing ${RUNTIME_CONTRACT_FILE}`);
|
|
153
|
+
}
|
|
154
|
+
const contractPath = join(root, RUNTIME_CONTRACT_FILE);
|
|
155
|
+
const raw = await readJsonFile(contractPath);
|
|
156
|
+
if (!isRecord(raw)) {
|
|
157
|
+
throw new Error(`${RUNTIME_CONTRACT_FILE} must contain a JSON object`);
|
|
158
|
+
}
|
|
159
|
+
return {
|
|
160
|
+
projectRoot: root,
|
|
161
|
+
contractPath,
|
|
162
|
+
contract: normalizeRuntimeContract(raw),
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
export async function validateRuntimeContract(projectRoot) {
|
|
166
|
+
const findings = [];
|
|
167
|
+
let loaded;
|
|
168
|
+
try {
|
|
169
|
+
loaded = await loadRuntimeContract(projectRoot);
|
|
170
|
+
}
|
|
171
|
+
catch (error) {
|
|
172
|
+
const root = projectRoot ?? process.cwd();
|
|
173
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
174
|
+
return {
|
|
175
|
+
projectRoot: root,
|
|
176
|
+
contractPath: join(root, RUNTIME_CONTRACT_FILE),
|
|
177
|
+
status: 'fail',
|
|
178
|
+
findings: [
|
|
179
|
+
{
|
|
180
|
+
code: 'runtime_contract_missing_or_invalid',
|
|
181
|
+
severity: 'error',
|
|
182
|
+
message,
|
|
183
|
+
fix: `Create ${RUNTIME_CONTRACT_FILE} or run eai init with the latest template.`,
|
|
184
|
+
},
|
|
185
|
+
],
|
|
186
|
+
summary: {
|
|
187
|
+
requiredEnv: [],
|
|
188
|
+
requiredSecrets: [],
|
|
189
|
+
optionalSecrets: [],
|
|
190
|
+
smokeTests: [],
|
|
191
|
+
},
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
const { projectRoot: root, contractPath, contract } = loaded;
|
|
195
|
+
const raw = contract.raw;
|
|
196
|
+
if (raw.schemaVersion !== 1) {
|
|
197
|
+
findings.push({
|
|
198
|
+
code: 'runtime_schema_version',
|
|
199
|
+
severity: 'error',
|
|
200
|
+
message: `${RUNTIME_CONTRACT_FILE} must declare schemaVersion: 1.`,
|
|
201
|
+
fix: 'Update the runtime contract to the current schema before deploying.',
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
if (contract.environment.required.length === 0) {
|
|
205
|
+
findings.push({
|
|
206
|
+
code: 'runtime_env_required_empty',
|
|
207
|
+
severity: 'error',
|
|
208
|
+
message: 'The runtime contract does not declare any required environment variables.',
|
|
209
|
+
fix: 'Add environment.required entries for Auth.js, PublicAPI, tenant, and workflow settings.',
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
if (contract.secrets.required.length === 0) {
|
|
213
|
+
findings.push({
|
|
214
|
+
code: 'runtime_secrets_required_empty',
|
|
215
|
+
severity: 'error',
|
|
216
|
+
message: 'The runtime contract does not declare any required secrets.',
|
|
217
|
+
fix: 'Add secrets.required entries such as AUTH_SECRET and ENTRA_CLIENT_SECRET.',
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
if (!startsWithSlash(contract.auth.callbackPath) || !contract.auth.callbackPath?.includes('/api/auth/callback/')) {
|
|
221
|
+
findings.push({
|
|
222
|
+
code: 'runtime_auth_callback_invalid',
|
|
223
|
+
severity: 'error',
|
|
224
|
+
message: 'The Auth.js callback path must be a relative /api/auth/callback/... path.',
|
|
225
|
+
fix: 'Set auth.callbackPath to a route such as /api/auth/callback/microsoft-entra-id.',
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
const endpointChecks = [
|
|
229
|
+
['health', contract.endpoints.health],
|
|
230
|
+
['authProviders', contract.endpoints.authProviders],
|
|
231
|
+
['runtimeConfig', contract.endpoints.runtimeConfig],
|
|
232
|
+
['bffBasePath', contract.endpoints.bffBasePath],
|
|
233
|
+
];
|
|
234
|
+
for (const [name, pathValue] of endpointChecks) {
|
|
235
|
+
if (!startsWithSlash(pathValue)) {
|
|
236
|
+
findings.push({
|
|
237
|
+
code: `runtime_endpoint_${name}_invalid`,
|
|
238
|
+
severity: 'error',
|
|
239
|
+
message: `endpoints.${name} must be declared as a relative path starting with /.`,
|
|
240
|
+
fix: `Add endpoints.${name} to ${RUNTIME_CONTRACT_FILE}.`,
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
const serverSidePublicEndpoints = contract.endpoints.public.filter((endpoint) => endpoint.serverSidePlatformAccess === true);
|
|
245
|
+
if (serverSidePublicEndpoints.length > 0 && !contract.serviceIdentityExplicit) {
|
|
246
|
+
findings.push({
|
|
247
|
+
code: 'runtime_service_identity_missing',
|
|
248
|
+
severity: 'error',
|
|
249
|
+
message: 'Public anonymous endpoints declare server-side platform access, but serviceIdentity is not explicit.',
|
|
250
|
+
fix: 'Add serviceIdentity preferred env names and legacy aliases to the runtime contract.',
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
const env = {
|
|
254
|
+
...(await readEnvFile(root, '.env.example')),
|
|
255
|
+
...(await readEnvFile(root, '.env.local')),
|
|
256
|
+
};
|
|
257
|
+
const tenantKeysEnvName = contract.environment.tenantKeyPattern?.keysEnv || 'TENANT_KEYS';
|
|
258
|
+
const tenantKeys = env[tenantKeysEnvName]
|
|
259
|
+
?.split(',')
|
|
260
|
+
.map((key) => key.trim())
|
|
261
|
+
.filter(Boolean);
|
|
262
|
+
if (tenantKeys && tenantKeys.length > 0) {
|
|
263
|
+
for (const key of tenantKeys) {
|
|
264
|
+
const tenantEnv = interpolatePattern(contract.environment.tenantKeyPattern?.tenantIdEnv, key);
|
|
265
|
+
const workflowEnv = interpolatePattern(contract.environment.tenantKeyPattern?.workflowIdEnv, key);
|
|
266
|
+
if (tenantEnv && !(tenantEnv in env)) {
|
|
267
|
+
findings.push({
|
|
268
|
+
code: 'runtime_tenant_key_missing_tenant_id',
|
|
269
|
+
severity: 'error',
|
|
270
|
+
message: `${tenantKeysEnvName} includes ${key}, but ${tenantEnv} is not present in .env.example or .env.local.`,
|
|
271
|
+
fix: `Declare ${tenantEnv} for tenant key ${key}.`,
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
if (workflowEnv && !(workflowEnv in env)) {
|
|
275
|
+
findings.push({
|
|
276
|
+
code: 'runtime_tenant_key_missing_workflow_id',
|
|
277
|
+
severity: 'error',
|
|
278
|
+
message: `${tenantKeysEnvName} includes ${key}, but ${workflowEnv} is not present in .env.example or .env.local.`,
|
|
279
|
+
fix: `Declare ${workflowEnv} for tenant key ${key}.`,
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
const trackedSecretFiles = await findTrackedSecretFiles(root);
|
|
285
|
+
if (trackedSecretFiles.length > 0) {
|
|
286
|
+
findings.push({
|
|
287
|
+
code: 'runtime_secret_file_tracked',
|
|
288
|
+
severity: 'error',
|
|
289
|
+
message: `Secret-bearing env files are tracked by git: ${trackedSecretFiles.join(', ')}.`,
|
|
290
|
+
fix: 'Remove runtime secret files from git and keep only safe examples committed.',
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
if (contract.endpoints.smokeTests.length === 0) {
|
|
294
|
+
findings.push({
|
|
295
|
+
code: 'runtime_smoke_tests_missing',
|
|
296
|
+
severity: 'error',
|
|
297
|
+
message: 'The runtime contract does not declare post-deploy smoke tests.',
|
|
298
|
+
fix: 'Add endpoints.smokeTests for /health, /api/auth/providers, /api/eai/config, and any public endpoints.',
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
const status = findings.some((finding) => finding.severity === 'error') ? 'fail' : 'pass';
|
|
302
|
+
return {
|
|
303
|
+
projectRoot: root,
|
|
304
|
+
contractPath,
|
|
305
|
+
status,
|
|
306
|
+
findings,
|
|
307
|
+
summary: {
|
|
308
|
+
requiredEnv: contract.environment.required,
|
|
309
|
+
requiredSecrets: contract.secrets.required,
|
|
310
|
+
optionalSecrets: contract.secrets.optional,
|
|
311
|
+
smokeTests: contract.endpoints.smokeTests,
|
|
312
|
+
},
|
|
313
|
+
};
|
|
314
|
+
}
|
|
315
|
+
export function expectedStatuses(test) {
|
|
316
|
+
return Array.isArray(test.expectedStatus) ? test.expectedStatus : [test.expectedStatus];
|
|
317
|
+
}
|
|
318
|
+
//# sourceMappingURL=runtime-contract.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime-contract.js","sourceRoot":"","sources":["../../src/lib/runtime-contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,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YACzF,GAAG,EAAE,6EAA6E;SACnF,CAAC,CAAC;IACL,CAAC;IAED,IAAI,QAAQ,CAAC,SAAS,CAAC,UAAU,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC/C,QAAQ,CAAC,IAAI,CAAC;YACZ,IAAI,EAAE,6BAA6B;YACnC,QAAQ,EAAE,OAAO;YACjB,OAAO,EAAE,gEAAgE;YACzE,GAAG,EAAE,uGAAuG;SAC7G,CAAC,CAAC;IACL,CAAC;IAED,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC;IAC1F,OAAO;QACL,WAAW,EAAE,IAAI;QACjB,YAAY;QACZ,MAAM;QACN,QAAQ;QACR,OAAO,EAAE;YACP,WAAW,EAAE,QAAQ,CAAC,WAAW,CAAC,QAAQ;YAC1C,eAAe,EAAE,QAAQ,CAAC,OAAO,CAAC,QAAQ;YAC1C,eAAe,EAAE,QAAQ,CAAC,OAAO,CAAC,QAAQ;YAC1C,UAAU,EAAE,QAAQ,CAAC,SAAS,CAAC,UAAU;SAC1C;KACF,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,IAAsB;IACrD,OAAO,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;AAC1F,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Schema builder for --describe flag
|
|
3
|
+
* Introspects Commander.js commands to generate JSON schema
|
|
4
|
+
*/
|
|
5
|
+
import type { Command } from 'commander';
|
|
6
|
+
export interface CommandSchema {
|
|
7
|
+
command: string;
|
|
8
|
+
description: string;
|
|
9
|
+
aliases: string[];
|
|
10
|
+
options: OptionSchema[];
|
|
11
|
+
subcommands?: CommandSchema[];
|
|
12
|
+
}
|
|
13
|
+
export interface OptionSchema {
|
|
14
|
+
name: string;
|
|
15
|
+
type: string;
|
|
16
|
+
default?: unknown;
|
|
17
|
+
description: string;
|
|
18
|
+
values?: string[];
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Build schema for a single command
|
|
22
|
+
*/
|
|
23
|
+
export declare function buildCommandSchema(command: Command): CommandSchema;
|
|
24
|
+
/**
|
|
25
|
+
* Build schema for entire CLI program
|
|
26
|
+
*/
|
|
27
|
+
export declare function describeProgram(program: Command): object;
|
|
28
|
+
//# sourceMappingURL=schema-builder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-builder.d.ts","sourceRoot":"","sources":["../../src/lib/schema-builder.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAU,MAAM,WAAW,CAAC;AAGjD,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,WAAW,CAAC,EAAE,aAAa,EAAE,CAAC;CAC/B;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB;AAsBD;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,aAAa,CAyClE;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAKxD"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Schema builder for --describe flag
|
|
3
|
+
* Introspects Commander.js commands to generate JSON schema
|
|
4
|
+
*/
|
|
5
|
+
import { getAgentGuide } from './agent-guide.js';
|
|
6
|
+
/**
|
|
7
|
+
* Infer option type from Commander.js Option object
|
|
8
|
+
*/
|
|
9
|
+
function inferOptionType(option) {
|
|
10
|
+
const flags = option.flags;
|
|
11
|
+
// Check if it's a boolean flag (no argument)
|
|
12
|
+
if (!flags.includes('<') && !flags.includes('[')) {
|
|
13
|
+
return 'boolean';
|
|
14
|
+
}
|
|
15
|
+
// Check if it has choices (enum type)
|
|
16
|
+
if (option.argChoices && option.argChoices.length > 0) {
|
|
17
|
+
return 'enum';
|
|
18
|
+
}
|
|
19
|
+
// Default to string for arguments
|
|
20
|
+
return 'string';
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Build schema for a single command
|
|
24
|
+
*/
|
|
25
|
+
export function buildCommandSchema(command) {
|
|
26
|
+
const name = command.name();
|
|
27
|
+
const description = command.description();
|
|
28
|
+
const options = command.options.filter((opt) => !opt.hidden).map((opt) => {
|
|
29
|
+
const type = inferOptionType(opt);
|
|
30
|
+
const schema = {
|
|
31
|
+
name: opt.flags.split(' ')[0],
|
|
32
|
+
type,
|
|
33
|
+
description: opt.description,
|
|
34
|
+
};
|
|
35
|
+
// Add default value if present
|
|
36
|
+
if (opt.defaultValue !== undefined) {
|
|
37
|
+
schema.default = opt.defaultValue;
|
|
38
|
+
}
|
|
39
|
+
// Add enum values if present
|
|
40
|
+
if (type === 'enum' && opt.argChoices) {
|
|
41
|
+
schema.values = opt.argChoices;
|
|
42
|
+
}
|
|
43
|
+
return schema;
|
|
44
|
+
});
|
|
45
|
+
const schema = {
|
|
46
|
+
command: name,
|
|
47
|
+
description,
|
|
48
|
+
aliases: command.aliases(),
|
|
49
|
+
options,
|
|
50
|
+
};
|
|
51
|
+
// Recursively process subcommands
|
|
52
|
+
const subcommands = command.commands;
|
|
53
|
+
if (subcommands && subcommands.length > 0) {
|
|
54
|
+
schema.subcommands = subcommands
|
|
55
|
+
.filter(cmd => !cmd.name().includes('help')) // Exclude help commands
|
|
56
|
+
.map(cmd => buildCommandSchema(cmd));
|
|
57
|
+
}
|
|
58
|
+
return schema;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Build schema for entire CLI program
|
|
62
|
+
*/
|
|
63
|
+
export function describeProgram(program) {
|
|
64
|
+
return {
|
|
65
|
+
...buildCommandSchema(program),
|
|
66
|
+
agentGuide: getAgentGuide(),
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=schema-builder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-builder.js","sourceRoot":"","sources":["../../src/lib/schema-builder.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAkBjD;;GAEG;AACH,SAAS,eAAe,CAAC,MAAc;IACrC,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;IAE3B,6CAA6C;IAC7C,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;QACjD,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,sCAAsC;IACtC,IAAI,MAAM,CAAC,UAAU,IAAI,MAAM,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACtD,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,kCAAkC;IAClC,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,kBAAkB,CAAC,OAAgB;IACjD,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;IAC5B,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IAE1C,MAAM,OAAO,GAAmB,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,C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,eAAe,CAAC,OAAgB;IAC9C,OAAO;QACL,GAAG,kBAAkB,CAAC,OAAO,CAAC;QAC9B,UAAU,EAAE,aAAa,EAAE;KAC5B,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { type StoredTokens } from "./auth.js";
|
|
2
|
+
export declare const DEFAULT_PUBLIC_API_URL = "https://api.au.myenterprise.ai/public";
|
|
3
|
+
declare const REGION_PUBLIC_API_URLS: {
|
|
4
|
+
readonly au: "https://api.au.myenterprise.ai/public";
|
|
5
|
+
readonly ca: "https://api.ca.myenterprise.ai/public";
|
|
6
|
+
readonly eu: "https://api.eu.myenterprise.ai/public";
|
|
7
|
+
};
|
|
8
|
+
export type HomeRegion = keyof typeof REGION_PUBLIC_API_URLS;
|
|
9
|
+
export declare class TenantMembershipAuthError extends Error {
|
|
10
|
+
readonly status?: number;
|
|
11
|
+
constructor(status?: number);
|
|
12
|
+
}
|
|
13
|
+
export interface TenantRoleAssignment {
|
|
14
|
+
baseRole?: string;
|
|
15
|
+
displayName?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface TenantEntry {
|
|
18
|
+
tenant: {
|
|
19
|
+
id: string;
|
|
20
|
+
displayName: string;
|
|
21
|
+
slug: string;
|
|
22
|
+
domain?: string;
|
|
23
|
+
isActive: boolean;
|
|
24
|
+
parent?: {
|
|
25
|
+
id?: string;
|
|
26
|
+
} | string | null;
|
|
27
|
+
parentId?: string | null;
|
|
28
|
+
homeRegion?: string | null;
|
|
29
|
+
hqCountryCode?: string | null;
|
|
30
|
+
};
|
|
31
|
+
roleAssignments?: TenantRoleAssignment[];
|
|
32
|
+
isTenantAdmin?: boolean;
|
|
33
|
+
role?: string;
|
|
34
|
+
roles?: string[];
|
|
35
|
+
}
|
|
36
|
+
export interface TenantMembership {
|
|
37
|
+
id: string;
|
|
38
|
+
displayName: string;
|
|
39
|
+
slug: string;
|
|
40
|
+
domain?: string;
|
|
41
|
+
isActive: boolean;
|
|
42
|
+
roles: string[];
|
|
43
|
+
homeRegion?: string | null;
|
|
44
|
+
hqCountryCode?: string | null;
|
|
45
|
+
}
|
|
46
|
+
export interface ActiveTenantContext {
|
|
47
|
+
publicApiUrl: string;
|
|
48
|
+
tokens: StoredTokens;
|
|
49
|
+
activeTenant: TenantMembership;
|
|
50
|
+
memberships: TenantMembership[];
|
|
51
|
+
publicApiEnvSync?: PublicApiEnvSyncResult;
|
|
52
|
+
}
|
|
53
|
+
export type PublicApiEnvSyncResult = {
|
|
54
|
+
status: "updated";
|
|
55
|
+
projectRoot: string;
|
|
56
|
+
publicApiUrl: string;
|
|
57
|
+
previousPublicApiUrl?: string;
|
|
58
|
+
homeRegion: HomeRegion;
|
|
59
|
+
} | {
|
|
60
|
+
status: "already-current";
|
|
61
|
+
projectRoot: string;
|
|
62
|
+
publicApiUrl: string;
|
|
63
|
+
homeRegion: HomeRegion;
|
|
64
|
+
} | {
|
|
65
|
+
status: "skipped";
|
|
66
|
+
reason: "no-project-root" | "unresolved-home-region";
|
|
67
|
+
homeRegion?: string | null;
|
|
68
|
+
};
|
|
69
|
+
export interface PublicApiEnvSyncNotice {
|
|
70
|
+
level: "success" | "warn";
|
|
71
|
+
message: string;
|
|
72
|
+
}
|
|
73
|
+
export interface TenantUsabilityStatus {
|
|
74
|
+
tenantId: string;
|
|
75
|
+
created: boolean;
|
|
76
|
+
bootstrapped: boolean;
|
|
77
|
+
membershipConfirmed: boolean;
|
|
78
|
+
adminConfirmed: boolean;
|
|
79
|
+
usable: boolean;
|
|
80
|
+
autoSelected: boolean;
|
|
81
|
+
}
|
|
82
|
+
export declare function normalizeHomeRegion(value: string | null | undefined): HomeRegion | null;
|
|
83
|
+
export declare function publicApiUrlForHomeRegion(value: string | null | undefined): string | null;
|
|
84
|
+
export declare function syncProjectPublicApiUrlForTenant(tenant: Pick<TenantMembership, "homeRegion">, projectRoot?: string | null): Promise<PublicApiEnvSyncResult>;
|
|
85
|
+
export declare function buildPublicApiEnvSyncNotice(result: PublicApiEnvSyncResult | undefined): PublicApiEnvSyncNotice | null;
|
|
86
|
+
export declare function resolveMainCompanyTenantId(publicApiUrl: string, tenantId: string): Promise<string>;
|
|
87
|
+
export declare function getTenantRoles(entry: TenantEntry): string[];
|
|
88
|
+
export declare function tenantEntryHasTenantAdminRole(entry: TenantEntry): boolean;
|
|
89
|
+
export declare function filterTenantAdminEntries(entries: TenantEntry[]): TenantEntry[];
|
|
90
|
+
export declare function normalizeTenantEntries(payload: unknown): TenantEntry[];
|
|
91
|
+
export declare function toTenantMembership(entry: TenantEntry): TenantMembership;
|
|
92
|
+
export declare function findTenantMembership(memberships: TenantMembership[], tenantId: string): TenantMembership | undefined;
|
|
93
|
+
export declare function evaluateTenantUsability(tenantId: string, memberships: TenantMembership[], options?: {
|
|
94
|
+
created?: boolean;
|
|
95
|
+
bootstrapped?: boolean;
|
|
96
|
+
autoSelected?: boolean;
|
|
97
|
+
}): TenantUsabilityStatus;
|
|
98
|
+
export declare function resolvePublicApiUrl(projectRoot?: string): Promise<string>;
|
|
99
|
+
export declare function getStoredActiveTenant(tokens: StoredTokens): TenantMembership | null;
|
|
100
|
+
export declare function fetchTenantAdminMemberships(publicApiUrl?: string): Promise<{
|
|
101
|
+
publicApiUrl: string;
|
|
102
|
+
tokens: StoredTokens;
|
|
103
|
+
memberships: TenantMembership[];
|
|
104
|
+
}>;
|
|
105
|
+
export declare function saveActiveTenantSelection(tenant: TenantMembership, publicApiUrl?: string, existingTokens?: StoredTokens): Promise<StoredTokens>;
|
|
106
|
+
export declare function refreshTenantUsabilityStatus(tenantId: string, options?: {
|
|
107
|
+
publicApiUrl?: string;
|
|
108
|
+
created?: boolean;
|
|
109
|
+
bootstrapped?: boolean;
|
|
110
|
+
autoSelect?: boolean;
|
|
111
|
+
}): Promise<{
|
|
112
|
+
publicApiUrl: string;
|
|
113
|
+
tokens: StoredTokens;
|
|
114
|
+
memberships: TenantMembership[];
|
|
115
|
+
membership?: TenantMembership;
|
|
116
|
+
status: TenantUsabilityStatus;
|
|
117
|
+
}>;
|
|
118
|
+
export declare function resolveActiveTenantContext(options?: {
|
|
119
|
+
projectRoot?: string;
|
|
120
|
+
publicApiUrl?: string;
|
|
121
|
+
interactive?: boolean;
|
|
122
|
+
forcePrompt?: boolean;
|
|
123
|
+
forceRefresh?: boolean;
|
|
124
|
+
tenantId?: string;
|
|
125
|
+
}): Promise<ActiveTenantContext>;
|
|
126
|
+
export {};
|
|
127
|
+
//# sourceMappingURL=tenant-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tenant-context.d.ts","sourceRoot":"","sources":["../../src/lib/tenant-context.ts"],"names":[],"mappings":"AAEA,OAAO,EAKL,KAAK,YAAY,EAClB,MAAM,WAAW,CAAC;AAKnB,eAAO,MAAM,sBAAsB,0CAA0C,CAAC;AAE9E,QAAA,MAAM,sBAAsB;;;;CAIlB,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,sBAAsB,CAAC;AAa7D,qBAAa,yBAA0B,SAAQ,KAAK;IAClD,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;gBAEb,MAAM,CAAC,EAAE,MAAM;CAK5B;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE;QACN,EAAE,EAAE,MAAM,CAAC;QACX,WAAW,EAAE,MAAM,CAAC;QACpB,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,QAAQ,EAAE,OAAO,CAAC;QAClB,MAAM,CAAC,EAAE;YAAE,EAAE,CAAC,EAAE,MAAM,CAAA;SAAE,GAAG,MAAM,GAAG,IAAI,CAAC;QACzC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QACzB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CA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