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
package/dist/index.js
ADDED
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* eai — Enterprise AI Platform CLI
|
|
4
|
+
*
|
|
5
|
+
* Scaffold, seed, deploy, and manage applications.
|
|
6
|
+
* Every command wraps platform API calls — developers work with resources,
|
|
7
|
+
* types, tenants, and chat using simple commands.
|
|
8
|
+
*/
|
|
9
|
+
import { createRequire } from 'node:module';
|
|
10
|
+
import { Command } from 'commander';
|
|
11
|
+
import chalk from 'chalk';
|
|
12
|
+
const require = createRequire(import.meta.url);
|
|
13
|
+
const pkg = require('../package.json');
|
|
14
|
+
if (process.argv.length === 3 && process.argv[2] === '--version') {
|
|
15
|
+
console.log(pkg.version);
|
|
16
|
+
process.exit(0);
|
|
17
|
+
}
|
|
18
|
+
// Commands
|
|
19
|
+
import { initCommand } from './commands/init.js';
|
|
20
|
+
import { devCommand } from './commands/dev.js';
|
|
21
|
+
import { loginCommand, logoutCommand } from './commands/login.js';
|
|
22
|
+
import { envCommand } from './commands/env.js';
|
|
23
|
+
import { typesCommand } from './commands/types.js';
|
|
24
|
+
import { tenantCommand } from './commands/tenant.js';
|
|
25
|
+
import { userCommand } from './commands/user.js';
|
|
26
|
+
import { resourcesCommand } from './commands/resources.js';
|
|
27
|
+
import { appCommand } from './commands/vertical.js';
|
|
28
|
+
import { chatCommand } from './commands/chat.js';
|
|
29
|
+
import { workflowCommand } from './commands/workflow.js';
|
|
30
|
+
import { docsCommand } from './commands/docs.js';
|
|
31
|
+
import { deployCommand } from './commands/deploy.js';
|
|
32
|
+
import { runtimeCommand } from './commands/runtime.js';
|
|
33
|
+
import { verifyCommand, doctorCommand } from './commands/verify.js';
|
|
34
|
+
import { whoamiCommand } from './commands/whoami.js';
|
|
35
|
+
import { updateCommand } from './commands/update.js';
|
|
36
|
+
import { provisionCommand } from './commands/provision.js';
|
|
37
|
+
import { goferCommand } from './commands/gofer.js';
|
|
38
|
+
import { templateCommand } from './commands/template.js';
|
|
39
|
+
import { blocksCommand } from './commands/blocks.js';
|
|
40
|
+
import { publicApiCommand } from './commands/publicapi.js';
|
|
41
|
+
import { errorsCommand } from './commands/errors.js';
|
|
42
|
+
import { agentCommand } from './commands/agent.js';
|
|
43
|
+
import { checkForUpdate, isMachineReadableInvocation, notifyIfUpdateAvailable, notifyIfUpdateAvailableForDiscovery, } from './lib/update-check.js';
|
|
44
|
+
import { setSimpleMode } from './lib/output.js';
|
|
45
|
+
import { setActiveProfile } from './lib/profile.js';
|
|
46
|
+
import { describeProgram } from './lib/schema-builder.js';
|
|
47
|
+
const program = new Command();
|
|
48
|
+
program
|
|
49
|
+
.name('eai')
|
|
50
|
+
.description('Enterprise AI Platform CLI — scaffold, seed, deploy, and manage applications')
|
|
51
|
+
.version(pkg.version, '-V, --cli-version')
|
|
52
|
+
.option('--simple', 'Plain text output without colors or symbols (for screen readers)')
|
|
53
|
+
.option('--no-color', 'Disable colored output')
|
|
54
|
+
.option('--color', 'Force colored output')
|
|
55
|
+
.option('--profile <name>', 'Use a locally configured private profile')
|
|
56
|
+
.option('--describe', 'Output JSON schema of all commands')
|
|
57
|
+
.hook('preAction', async (thisCommand) => {
|
|
58
|
+
const opts = thisCommand.opts();
|
|
59
|
+
// Handle --simple flag
|
|
60
|
+
if (opts.simple) {
|
|
61
|
+
setSimpleMode(true);
|
|
62
|
+
}
|
|
63
|
+
// Handle --no-color flag
|
|
64
|
+
if (opts.noColor) {
|
|
65
|
+
process.env.NO_COLOR = '1';
|
|
66
|
+
}
|
|
67
|
+
// Handle --color flag (force colors)
|
|
68
|
+
if (opts.color) {
|
|
69
|
+
process.env.FORCE_COLOR = '1';
|
|
70
|
+
}
|
|
71
|
+
// Handle --profile flag or EAI_PROFILE env var. Plain `eai ...`
|
|
72
|
+
// intentionally stays on the public production default profile.
|
|
73
|
+
const profileName = opts.profile || process.env.EAI_PROFILE;
|
|
74
|
+
if (profileName) {
|
|
75
|
+
setActiveProfile(profileName);
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
setActiveProfile('default');
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
// Register all commands
|
|
82
|
+
program.addCommand(initCommand);
|
|
83
|
+
program.addCommand(devCommand);
|
|
84
|
+
program.addCommand(loginCommand);
|
|
85
|
+
program.addCommand(logoutCommand);
|
|
86
|
+
program.addCommand(envCommand);
|
|
87
|
+
program.addCommand(typesCommand);
|
|
88
|
+
program.addCommand(tenantCommand);
|
|
89
|
+
program.addCommand(userCommand);
|
|
90
|
+
program.addCommand(resourcesCommand);
|
|
91
|
+
program.addCommand(appCommand);
|
|
92
|
+
program.addCommand(chatCommand);
|
|
93
|
+
program.addCommand(workflowCommand);
|
|
94
|
+
program.addCommand(docsCommand);
|
|
95
|
+
program.addCommand(deployCommand);
|
|
96
|
+
program.addCommand(runtimeCommand);
|
|
97
|
+
program.addCommand(verifyCommand);
|
|
98
|
+
program.addCommand(doctorCommand);
|
|
99
|
+
program.addCommand(whoamiCommand);
|
|
100
|
+
program.addCommand(updateCommand);
|
|
101
|
+
program.addCommand(provisionCommand);
|
|
102
|
+
program.addCommand(goferCommand);
|
|
103
|
+
program.addCommand(templateCommand);
|
|
104
|
+
program.addCommand(blocksCommand);
|
|
105
|
+
program.addCommand(publicApiCommand);
|
|
106
|
+
program.addCommand(errorsCommand);
|
|
107
|
+
program.addCommand(agentCommand);
|
|
108
|
+
// Custom help footer
|
|
109
|
+
program.addHelpText('after', `
|
|
110
|
+
${chalk.bold('Getting Started:')}
|
|
111
|
+
${chalk.cyan('eai init my-app')} Scaffold an app with Gofer AI CLI assets
|
|
112
|
+
${chalk.cyan('eai login')} Authenticate with Entra CIAM
|
|
113
|
+
${chalk.cyan('eai provision entra')} Create Entra app registration for end-user auth
|
|
114
|
+
${chalk.cyan('eai provision entra --deauthorize --force')} Clean up app auth registration
|
|
115
|
+
${chalk.cyan('eai env pull')} Sync app config from cloud
|
|
116
|
+
${chalk.cyan('eai types seed')} Publish Object Types to the platform
|
|
117
|
+
${chalk.cyan('eai dev')} Start local development server
|
|
118
|
+
|
|
119
|
+
${chalk.bold('Development Workflows:')}
|
|
120
|
+
${chalk.dim('# Define your types, validate them, then publish them')}
|
|
121
|
+
${chalk.cyan('eai types validate && eai types seed')}
|
|
122
|
+
|
|
123
|
+
${chalk.dim('# See what is published for the active tenant')}
|
|
124
|
+
${chalk.cyan('eai resources schema')}
|
|
125
|
+
${chalk.cyan('eai app create "My App" --template eai-app-template')}
|
|
126
|
+
|
|
127
|
+
${chalk.dim('# Query resources and inspect data')}
|
|
128
|
+
${chalk.cyan('eai resources list User --limit 10')}
|
|
129
|
+
${chalk.cyan('eai resources get User <id>')}
|
|
130
|
+
|
|
131
|
+
${chalk.dim('# Check AI runtime workflow readiness before using chat')}
|
|
132
|
+
${chalk.cyan('eai workflow readiness strategy-monitor')}
|
|
133
|
+
${chalk.cyan('eai workflow status strategy-monitor')}
|
|
134
|
+
${chalk.cyan('eai workflow request strategy-monitor --reason "CEO strategy cockpit"')}
|
|
135
|
+
|
|
136
|
+
${chalk.dim('# Check login, tenant, and API connectivity')}
|
|
137
|
+
${chalk.cyan('eai verify && eai doctor')}
|
|
138
|
+
|
|
139
|
+
${chalk.bold('Deployment:')}
|
|
140
|
+
${chalk.dim('# Validate the host-neutral runtime contract before deploying')}
|
|
141
|
+
${chalk.cyan('eai runtime validate')}
|
|
142
|
+
${chalk.cyan('eai deploy env --provider generic')}
|
|
143
|
+
|
|
144
|
+
${chalk.dim('# Set up GitHub Actions deployment')}
|
|
145
|
+
${chalk.cyan('eai deploy setup --repo org/name')}
|
|
146
|
+
|
|
147
|
+
${chalk.dim('# Trigger deployment, check status, then doctor the deployed runtime')}
|
|
148
|
+
${chalk.cyan('eai deploy trigger && eai deploy status')}
|
|
149
|
+
${chalk.cyan('eai deploy doctor --url <deployed-url>')}
|
|
150
|
+
|
|
151
|
+
${chalk.bold('Machine-Readable Output:')}
|
|
152
|
+
${chalk.dim('# Get structured JSON output for automation')}
|
|
153
|
+
${chalk.cyan('eai resources list User --format json')}
|
|
154
|
+
${chalk.cyan('eai tenant list --format json | jq')}
|
|
155
|
+
${chalk.cyan('eai verify calls --format json')}
|
|
156
|
+
${chalk.cyan('eai errors explain E101 --format json')}
|
|
157
|
+
|
|
158
|
+
${chalk.dim('# Discover CLI structure for AI agents')}
|
|
159
|
+
${chalk.cyan('eai --describe')}
|
|
160
|
+
${chalk.cyan('eai agent guide --format json')}
|
|
161
|
+
|
|
162
|
+
${chalk.bold('AI Terminal Workflows:')}
|
|
163
|
+
${chalk.dim('# New projects include Gofer commands, agents, scripts, hooks, and skills')}
|
|
164
|
+
${chalk.cyan('claude')} ${chalk.dim('then run /0_gofer_start')}
|
|
165
|
+
${chalk.cyan('codex')} ${chalk.dim('then ask Codex to use the 1_gofer_research skill')}
|
|
166
|
+
${chalk.cyan('gemini')} ${chalk.dim('then run /gofer:1_gofer_research')}
|
|
167
|
+
${chalk.cyan('copilot')} ${chalk.dim('uses .github/prompts and .github/skills')}
|
|
168
|
+
|
|
169
|
+
${chalk.bold('Updates:')}
|
|
170
|
+
${chalk.dim('# Check/update the CLI, then maintain safe repo-local assets')}
|
|
171
|
+
${chalk.cyan('eai update --check')} ${chalk.dim('preview CLI, Gofer, and template status')}
|
|
172
|
+
${chalk.cyan('eai update')} ${chalk.dim('update the CLI and refresh safe Gofer assets')}
|
|
173
|
+
|
|
174
|
+
${chalk.dim('# Preview repo-local Gofer asset updates before writing files')}
|
|
175
|
+
${chalk.cyan('eai gofer refresh --check')} ${chalk.dim('preview managed Gofer asset updates for this repo')}
|
|
176
|
+
${chalk.cyan('eai gofer refresh')} ${chalk.dim('apply safe Gofer-managed asset updates with backups')}
|
|
177
|
+
|
|
178
|
+
${chalk.dim('# Preview app-template and UI component drift before copying changes')}
|
|
179
|
+
${chalk.cyan('eai template check')} ${chalk.dim('review potential app or UI file updates without overwriting local work')}
|
|
180
|
+
|
|
181
|
+
${chalk.dim('# Discover AI-readable UI blocks for Gofer and apps')}
|
|
182
|
+
${chalk.cyan('eai blocks list --readiness public-ready')}
|
|
183
|
+
${chalk.dim('list foundation, product, addon, and demo block IDs')}
|
|
184
|
+
${chalk.cyan('eai blocks describe core.button')}
|
|
185
|
+
${chalk.cyan('eai blocks readiness')} ${chalk.dim('summarize public readiness and package-profile compatibility')}
|
|
186
|
+
|
|
187
|
+
${chalk.dim('# Call any authorized PublicAPI V4 interface')}
|
|
188
|
+
${chalk.cyan('eai publicapi get /v4/identity/me --format json')}
|
|
189
|
+
${chalk.cyan("eai publicapi post /v4/geo/resolve-location --data '{\"query\":\"Copenhagen\"}'")}
|
|
190
|
+
|
|
191
|
+
${chalk.dim('# Explain known errors for humans and AI agents')}
|
|
192
|
+
${chalk.cyan('eai errors list')}
|
|
193
|
+
${chalk.cyan('eai errors explain tenant_authorization_incomplete --format json')}
|
|
194
|
+
|
|
195
|
+
${chalk.dim('# Follow the built-in AI-agent recovery loop')}
|
|
196
|
+
${chalk.cyan('eai agent guide')}
|
|
197
|
+
|
|
198
|
+
${chalk.bold('Accessibility:')}
|
|
199
|
+
${chalk.dim('# Screen reader friendly output')}
|
|
200
|
+
${chalk.cyan('eai --simple <command>')}
|
|
201
|
+
${chalk.cyan('eai --no-color <command>')}
|
|
202
|
+
`);
|
|
203
|
+
function readTopLevelCommandName(args) {
|
|
204
|
+
const flagsWithValues = new Set(['--profile']);
|
|
205
|
+
for (let i = 0; i < args.length; i += 1) {
|
|
206
|
+
const arg = args[i];
|
|
207
|
+
if (!arg) {
|
|
208
|
+
continue;
|
|
209
|
+
}
|
|
210
|
+
if (arg === '--') {
|
|
211
|
+
return args[i + 1] ?? null;
|
|
212
|
+
}
|
|
213
|
+
if (arg.startsWith('--profile=')) {
|
|
214
|
+
continue;
|
|
215
|
+
}
|
|
216
|
+
if (flagsWithValues.has(arg)) {
|
|
217
|
+
i += 1;
|
|
218
|
+
continue;
|
|
219
|
+
}
|
|
220
|
+
if (arg.startsWith('-')) {
|
|
221
|
+
continue;
|
|
222
|
+
}
|
|
223
|
+
return arg;
|
|
224
|
+
}
|
|
225
|
+
return null;
|
|
226
|
+
}
|
|
227
|
+
function isHelpInvocation(args) {
|
|
228
|
+
return (args.length === 0 ||
|
|
229
|
+
args.includes('--help') ||
|
|
230
|
+
args.includes('-h') ||
|
|
231
|
+
readTopLevelCommandName(args) === 'help');
|
|
232
|
+
}
|
|
233
|
+
function isUnknownTopLevelCommand(args) {
|
|
234
|
+
const commandName = readTopLevelCommandName(args);
|
|
235
|
+
if (!commandName || commandName === 'help') {
|
|
236
|
+
return false;
|
|
237
|
+
}
|
|
238
|
+
const knownCommands = new Set();
|
|
239
|
+
for (const command of program.commands) {
|
|
240
|
+
knownCommands.add(command.name());
|
|
241
|
+
for (const alias of command.aliases()) {
|
|
242
|
+
knownCommands.add(alias);
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
return !knownCommands.has(commandName);
|
|
246
|
+
}
|
|
247
|
+
// Handle --describe before parsing (needs to work without command)
|
|
248
|
+
const cliArgs = process.argv.slice(2);
|
|
249
|
+
if (cliArgs.includes('--describe')) {
|
|
250
|
+
console.log(JSON.stringify(describeProgram(program), null, 2));
|
|
251
|
+
}
|
|
252
|
+
else {
|
|
253
|
+
const topLevelCommandName = readTopLevelCommandName(cliArgs);
|
|
254
|
+
const shouldForegroundCheckForUpdate = isHelpInvocation(cliArgs) || isUnknownTopLevelCommand(cliArgs);
|
|
255
|
+
const shouldSuppressPostCommandNotice = topLevelCommandName === 'update' ||
|
|
256
|
+
isMachineReadableInvocation(cliArgs);
|
|
257
|
+
if (shouldForegroundCheckForUpdate) {
|
|
258
|
+
await notifyIfUpdateAvailableForDiscovery(pkg.version);
|
|
259
|
+
}
|
|
260
|
+
else if (!shouldSuppressPostCommandNotice) {
|
|
261
|
+
checkForUpdate(pkg.version);
|
|
262
|
+
}
|
|
263
|
+
if (cliArgs.length === 0) {
|
|
264
|
+
program.outputHelp();
|
|
265
|
+
process.exit(0);
|
|
266
|
+
}
|
|
267
|
+
await program.parseAsync();
|
|
268
|
+
if (!shouldForegroundCheckForUpdate && !shouldSuppressPostCommandNotice) {
|
|
269
|
+
await notifyIfUpdateAvailable(pkg.version, { args: cliArgs });
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC/C,MAAM,GAAG,GAAG,OAAO,CAAC,iBAAiB,CAAwB,CAAC;AAE9D,IAAI,OAAO,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,WAAW,EAAE,CAAC;IACjE,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACzB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC;AAED,WAAW;AACX,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO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C5C,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAC9B,CAAC;IAED,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACzB,OAAO,CAAC,UAAU,EAAE,CAAC;QACrB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;IAED,MAAM,OAAO,CAAC,UAAU,EAAE,CAAC;IAE3B,IAAI,CAAC,8BAA8B,IAAI,CAAC,+BAA+B,EAAE,CAAC;QACxE,MAAM,uBAAuB,CAAC,GAAG,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface AgentGuideCommand {
|
|
2
|
+
command: string;
|
|
3
|
+
mutates: boolean;
|
|
4
|
+
purpose: string;
|
|
5
|
+
when?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface AgentGuideStep {
|
|
8
|
+
step: number;
|
|
9
|
+
title: string;
|
|
10
|
+
instruction: string;
|
|
11
|
+
commands?: AgentGuideCommand[];
|
|
12
|
+
}
|
|
13
|
+
export interface AgentGuide {
|
|
14
|
+
schemaVersion: 1;
|
|
15
|
+
audience: 'ai-agents';
|
|
16
|
+
purpose: string;
|
|
17
|
+
firstCommands: AgentGuideCommand[];
|
|
18
|
+
operatingRules: string[];
|
|
19
|
+
recoveryLoop: AgentGuideStep[];
|
|
20
|
+
commonWorkflows: AgentGuideStep[];
|
|
21
|
+
stopConditions: string[];
|
|
22
|
+
}
|
|
23
|
+
export declare function getAgentGuide(): AgentGuide;
|
|
24
|
+
//# sourceMappingURL=agent-guide.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-guide.d.ts","sourceRoot":"","sources":["../../src/lib/agent-guide.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,iBAAiB,EAAE,CAAC;CAChC;AAED,MAAM,WAAW,UAAU;IACzB,aAAa,EAAE,CAAC,CAAC;IACjB,QAAQ,EAAE,WAAW,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,iBAAiB,EAAE,CAAC;IACnC,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,YAAY,EAAE,cAAc,EAAE,CAAC;IAC/B,eAAe,EAAE,cAAc,EAAE,CAAC;IAClC,cAAc,EAAE,MAAM,EAAE,CAAC;CAC1B;AA0JD,wBAAgB,aAAa,IAAI,UAAU,CAE1C"}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
const guide = {
|
|
2
|
+
schemaVersion: 1,
|
|
3
|
+
audience: 'ai-agents',
|
|
4
|
+
purpose: 'Help an AI agent discover EAI CLI capabilities, prefer structured output, and recover from known errors without private platform knowledge.',
|
|
5
|
+
firstCommands: [
|
|
6
|
+
{
|
|
7
|
+
command: 'eai --describe',
|
|
8
|
+
mutates: false,
|
|
9
|
+
purpose: 'Discover commands, options, and the built-in agent operating guide.',
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
command: 'eai agent guide --format json',
|
|
13
|
+
mutates: false,
|
|
14
|
+
purpose: 'Read the agent operating guide directly as JSON.',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
command: 'eai update --check',
|
|
18
|
+
mutates: false,
|
|
19
|
+
purpose: 'Check whether the installed CLI, Gofer assets, or app-template snapshot need attention.',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
command: 'eai whoami',
|
|
23
|
+
mutates: false,
|
|
24
|
+
purpose: 'Check login status and active tenant before tenant-scoped operations.',
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
operatingRules: [
|
|
28
|
+
'Prefer commands that advertise --format json in eai --describe or command help.',
|
|
29
|
+
'Run read-only diagnostics before mutating fixes.',
|
|
30
|
+
'Use named eai commands before calling eai publicapi directly.',
|
|
31
|
+
'When calling eai publicapi directly, only use /v4 paths.',
|
|
32
|
+
'For normal tenant user/admin addition, use eai user invite --email <email> --tenant <tenant-id> --role <role>; do not use tenant bootstrap-admin.',
|
|
33
|
+
'If user invite fails with a 5xx or EXTERNAL_SERVICE_ERROR, run eai errors explain user_invite_external_service_existing_member --format json, check for an existing member with eai user list, and only then use eai user role set by member ID when approved.',
|
|
34
|
+
'Use eai tenant bootstrap-admin only for first-admin repair on an immediate child tenant.',
|
|
35
|
+
'Do not loop indefinitely; follow retry and stop conditions from eai errors explain.',
|
|
36
|
+
'Do not expose tokens, secrets, local env files, tenant identifiers, or request IDs unless the user explicitly asks to collect escalation evidence.',
|
|
37
|
+
],
|
|
38
|
+
recoveryLoop: [
|
|
39
|
+
{
|
|
40
|
+
step: 1,
|
|
41
|
+
title: 'Capture the failure',
|
|
42
|
+
instruction: 'Read the exit code, stderr, stdout, and any EAI error code such as E101 or reasonCode such as not_logged_in.',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
step: 2,
|
|
46
|
+
title: 'Explain the error',
|
|
47
|
+
instruction: 'If an EAI code or reasonCode is present, query the release-aligned guidance catalog.',
|
|
48
|
+
commands: [
|
|
49
|
+
{
|
|
50
|
+
command: 'eai errors explain <code-or-reason> --format json',
|
|
51
|
+
mutates: false,
|
|
52
|
+
purpose: 'Return structured why, diagnostics, fixes, retry guidance, and stop conditions.',
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
step: 3,
|
|
58
|
+
title: 'Run diagnostics first',
|
|
59
|
+
instruction: 'Execute only read-only diagnostic commands from the guidance entry before changing state.',
|
|
60
|
+
commands: [
|
|
61
|
+
{
|
|
62
|
+
command: 'eai whoami',
|
|
63
|
+
mutates: false,
|
|
64
|
+
purpose: 'Check login and selected tenant.',
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
command: 'eai verify calls --format json',
|
|
68
|
+
mutates: false,
|
|
69
|
+
purpose: 'Check platform-facing API contracts used by the CLI.',
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
command: 'eai doctor --check-updates',
|
|
73
|
+
mutates: false,
|
|
74
|
+
purpose: 'Check CLI, Gofer, and template drift without changing files.',
|
|
75
|
+
},
|
|
76
|
+
],
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
step: 4,
|
|
80
|
+
title: 'Apply listed fixes only',
|
|
81
|
+
instruction: 'Run mutating commands only when they are listed in the guidance entry and fit the current project state.',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
step: 5,
|
|
85
|
+
title: 'Verify and stop',
|
|
86
|
+
instruction: 'Re-run the failed command or a read-only verification command. Stop when guidance stop conditions match or the same failure repeats after the listed retry limit.',
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
commonWorkflows: [
|
|
90
|
+
{
|
|
91
|
+
step: 1,
|
|
92
|
+
title: 'New project',
|
|
93
|
+
instruction: 'Initialize, authenticate, provision app auth, seed types, then start development.',
|
|
94
|
+
commands: [
|
|
95
|
+
{ command: 'eai init', mutates: true, purpose: 'Scaffold a new app.' },
|
|
96
|
+
{ command: 'eai login', mutates: true, purpose: 'Authenticate with the EAI identity flow.' },
|
|
97
|
+
{ command: 'eai provision entra', mutates: true, purpose: 'Provision app sign-in configuration.' },
|
|
98
|
+
{ command: 'eai types seed', mutates: true, purpose: 'Publish object types for the selected tenant.' },
|
|
99
|
+
{ command: 'eai dev', mutates: true, purpose: 'Start local development.' },
|
|
100
|
+
],
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
step: 2,
|
|
104
|
+
title: 'Existing project health',
|
|
105
|
+
instruction: 'Check login, tenant, CLI release, project assets, and platform-facing contracts.',
|
|
106
|
+
commands: [
|
|
107
|
+
{ command: 'eai whoami', mutates: false, purpose: 'Show current user and tenant context.' },
|
|
108
|
+
{ command: 'eai update --check', mutates: false, purpose: 'Check CLI release plus Gofer/template currency.' },
|
|
109
|
+
{ command: 'eai doctor --check-updates', mutates: false, purpose: 'Check CLI, Gofer, and template drift.' },
|
|
110
|
+
{ command: 'eai verify calls --format json', mutates: false, purpose: 'Audit platform-facing contracts.' },
|
|
111
|
+
],
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
step: 3,
|
|
115
|
+
title: 'Type and resource readiness',
|
|
116
|
+
instruction: 'Validate local type definitions, compare with the selected tenant, and seed only when needed.',
|
|
117
|
+
commands: [
|
|
118
|
+
{ command: 'eai types validate', mutates: false, purpose: 'Validate local object type files.' },
|
|
119
|
+
{ command: 'eai types diff', mutates: false, purpose: 'Compare local and published object types.' },
|
|
120
|
+
{ command: 'eai types seed', mutates: true, purpose: 'Publish object types when validation and diff show it is needed.' },
|
|
121
|
+
{ command: 'eai resources schema --format json', mutates: false, purpose: 'Inspect published resource schema.' },
|
|
122
|
+
],
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
step: 4,
|
|
126
|
+
title: 'Tenant member management',
|
|
127
|
+
instruction: 'List available roles, invite or refresh the user by email with the intended role, and verify membership. This is the correct path for "add this person as tenant admin/member" requests.',
|
|
128
|
+
commands: [
|
|
129
|
+
{ command: 'eai user roles --tenant <tenant-id> --format json', mutates: false, purpose: 'Discover assignable tenant roles before choosing a role.' },
|
|
130
|
+
{ command: 'eai user invite --email <email> --tenant <tenant-id> --role tenant-admin --format json', mutates: true, purpose: 'Add or refresh a user membership and assign tenant-admin.' },
|
|
131
|
+
{ command: 'eai user list --tenant <tenant-id> --search <email> --format json', mutates: false, purpose: 'Verify the user membership and role after invite.' },
|
|
132
|
+
{ command: 'eai user role set --tenant <tenant-id> --member-id <member-id> --role tenant-admin --format json', mutates: true, purpose: 'Repair the role on an existing direct member when invite/add fails and the member ID has been verified.' },
|
|
133
|
+
],
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
step: 5,
|
|
137
|
+
title: 'App auth cleanup',
|
|
138
|
+
instruction: 'When a smoke or test app created an Entra registration that should be removed, deauthorize it explicitly and verify local credentials are gone.',
|
|
139
|
+
commands: [
|
|
140
|
+
{ command: 'eai provision entra --deauthorize --client-id <client-id> --force', mutates: true, purpose: 'Remove tenant authorization, delete the app registration, and remove local Entra credentials.' },
|
|
141
|
+
{ command: 'eai env list', mutates: false, purpose: 'Confirm local project env no longer contains the removed Entra credential keys.' },
|
|
142
|
+
],
|
|
143
|
+
},
|
|
144
|
+
],
|
|
145
|
+
stopConditions: [
|
|
146
|
+
'The same error repeats after the guidance retry limit.',
|
|
147
|
+
'A command reports a paid plan, tenant role, or platform-side server blocker that the current user cannot change.',
|
|
148
|
+
'A mutating command is not listed in the guidance entry for this error.',
|
|
149
|
+
'The command would require editing secrets or local env files without explicit user approval.',
|
|
150
|
+
],
|
|
151
|
+
};
|
|
152
|
+
export function getAgentGuide() {
|
|
153
|
+
return guide;
|
|
154
|
+
}
|
|
155
|
+
//# sourceMappingURL=agent-guide.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-guide.js","sourceRoot":"","sources":["../../src/lib/agent-guide.ts"],"names":[],"mappings":"AAyBA,MAAM,KAAK,GAAe;IACxB,aAAa,EAAE,CAAC;IAChB,QAAQ,EAAE,WAAW;IACrB,OAAO,EAAE,6IAA6I;IACtJ,aAAa,EAAE;QACb;YACE,OAAO,EAAE,gBAAgB;YACzB,OAAO,EAAE,KAAK;YACd,OAAO,EAAE,qEAAqE;SAC/E;QACD;YACE,OAAO,EAAE,+BAA+B;YACxC,OAAO,EAAE,KAAK;YACd,OAAO,EAAE,kDAAkD;SAC5D;QACD;YACE,OAAO,EAAE,oBAAoB;YAC7B,OAAO,EAAE,KAA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