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,47 @@
|
|
|
1
|
+
import { type BackendCoupling, type BlockCatalogEntry, type BlockSource, type DiscoveredManifest, type GroupBy, type PackageLane, type PackageProfile, type PublicReadiness } from './block-catalog-types.js';
|
|
2
|
+
export declare const BUILTIN_BLOCKS: BlockCatalogEntry[];
|
|
3
|
+
export declare function normalizeManifestBlocks(discovered: DiscoveredManifest): BlockCatalogEntry[];
|
|
4
|
+
export declare function normalizeBlockEntry(rawBlock: unknown, context: {
|
|
5
|
+
packageName: string;
|
|
6
|
+
packageVersion?: string;
|
|
7
|
+
packageLane?: PackageLane;
|
|
8
|
+
packageProfiles?: PackageProfile[];
|
|
9
|
+
source: BlockSource;
|
|
10
|
+
catalogMetadata?: Record<string, unknown>;
|
|
11
|
+
index: number;
|
|
12
|
+
}): BlockCatalogEntry | null;
|
|
13
|
+
export declare function filterBlocks(blocks: BlockCatalogEntry[], options: {
|
|
14
|
+
lane?: PackageLane;
|
|
15
|
+
coupling?: BackendCoupling;
|
|
16
|
+
readiness?: PublicReadiness;
|
|
17
|
+
packageProfile?: PackageProfile;
|
|
18
|
+
custom?: boolean;
|
|
19
|
+
}): BlockCatalogEntry[];
|
|
20
|
+
export declare function groupBlocks(blocks: BlockCatalogEntry[], groupBy: GroupBy): Array<{
|
|
21
|
+
key: string;
|
|
22
|
+
blocks: BlockCatalogEntry[];
|
|
23
|
+
}>;
|
|
24
|
+
export declare function buildReadinessSummary(blocks: BlockCatalogEntry[], packageProfile: PackageProfile): {
|
|
25
|
+
total: number;
|
|
26
|
+
byReadiness: {
|
|
27
|
+
'public-ready': number;
|
|
28
|
+
preview: number;
|
|
29
|
+
internal: number;
|
|
30
|
+
blocked: number;
|
|
31
|
+
};
|
|
32
|
+
byLane: {
|
|
33
|
+
foundation: number;
|
|
34
|
+
product: number;
|
|
35
|
+
addon: number;
|
|
36
|
+
dev: number;
|
|
37
|
+
};
|
|
38
|
+
compatibleBlocks: string[];
|
|
39
|
+
incompatibleBlocks: string[];
|
|
40
|
+
customExtensionBlocks: string[];
|
|
41
|
+
};
|
|
42
|
+
export declare function readPackageLane(value: unknown): PackageLane | undefined;
|
|
43
|
+
export declare function readBackendCoupling(value: unknown): BackendCoupling | undefined;
|
|
44
|
+
export declare function readPublicReadiness(value: unknown): PublicReadiness | undefined;
|
|
45
|
+
export declare function readPackageProfile(value: unknown): PackageProfile | undefined;
|
|
46
|
+
export declare function readPackageProfiles(value: unknown): PackageProfile[] | undefined;
|
|
47
|
+
//# sourceMappingURL=block-catalog-normalize.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"block-catalog-normalize.d.ts","sourceRoot":"","sources":["../../src/lib/block-catalog-normalize.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,eAAe,EAEpB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,KAAK,OAAO,EAEZ,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,eAAe,EAErB,MAAM,0BAA0B,CAAC;AAGlC,eAAO,MAAM,cAAc,EAAE,iBAAiB,EA0E7C,CAAC;AAEF,wBAAgB,uBAAuB,CAAC,UAAU,EAAE,kBAAkB,GAAG,iBAAiB,EAAE,CAwB3F;AAED,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE;IAC9D,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,eAAe,CAAC,EAAE,cAAc,EAAE,CAAC;IACnC,MAAM,EAAE,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|
|
2
|
+
import { asRecord, readBoolean, readString, readStringArray } from './block-catalog-utils.js';
|
|
3
|
+
export const BUILTIN_BLOCKS = [
|
|
4
|
+
block('core.button', 'Button', '@enterpriseaigroup/core', 'Button', 'foundation', 'external-safe', ['ui', 'action'], {
|
|
5
|
+
description: 'Primitive button for client-side actions and form submits.',
|
|
6
|
+
actionBindings: [{ name: 'onClick', action: 'client-handler', required: false }],
|
|
7
|
+
overridePoints: [
|
|
8
|
+
{ name: 'label', path: 'presentationConfig.label', kind: 'copy', required: false },
|
|
9
|
+
{ name: 'variant', path: 'presentationConfig.variant', kind: 'presentation', required: false },
|
|
10
|
+
],
|
|
11
|
+
}),
|
|
12
|
+
block('core.input', 'Input', '@enterpriseaigroup/core', 'Input', 'foundation', 'external-safe', ['ui', 'form'], {
|
|
13
|
+
description: 'Primitive input bound to a form field or resource field.',
|
|
14
|
+
dataBindings: [{ name: 'value', field: 'value', required: false }],
|
|
15
|
+
overridePoints: [
|
|
16
|
+
{ name: 'label', path: 'presentationConfig.label', kind: 'copy', required: false },
|
|
17
|
+
{ name: 'validation', path: 'dataConfig.validation', kind: 'schema', required: false },
|
|
18
|
+
],
|
|
19
|
+
}),
|
|
20
|
+
block('core.card', 'Card', '@enterpriseaigroup/core', 'Card', 'foundation', 'external-safe', ['ui', 'layout'], {
|
|
21
|
+
description: 'Container block for grouped content and actions.',
|
|
22
|
+
overridePoints: [
|
|
23
|
+
{ name: 'header', path: 'presentationConfig.header', kind: 'slot', required: false },
|
|
24
|
+
{ name: 'actions', path: 'actionsConfig', kind: 'actions', required: false },
|
|
25
|
+
],
|
|
26
|
+
}),
|
|
27
|
+
block('design.hero', 'Hero', '@enterpriseaigroup/blocks', 'Hero', 'foundation', 'external-safe', ['marketing', 'layout'], {
|
|
28
|
+
description: 'Public-safe hero section for product and app entry pages.',
|
|
29
|
+
overridePoints: [
|
|
30
|
+
{ name: 'headline', path: 'presentationConfig.headline', kind: 'copy', required: true },
|
|
31
|
+
{ name: 'cta', path: 'actionsConfig.primary', kind: 'actions', required: false },
|
|
32
|
+
],
|
|
33
|
+
}),
|
|
34
|
+
block('design.feature-grid', 'FeatureGrid', '@enterpriseaigroup/blocks', 'FeatureGrid', 'foundation', 'external-safe', ['marketing', 'layout'], {
|
|
35
|
+
description: 'Public-safe feature grid for explaining capabilities.',
|
|
36
|
+
dataBindings: [{ name: 'features', field: 'features', required: false }],
|
|
37
|
+
overridePoints: [{ name: 'items', path: 'presentationConfig.items', kind: 'copy', required: true }],
|
|
38
|
+
}),
|
|
39
|
+
block('design.form-builder', 'FormBuilder', '@enterpriseaigroup/blocks', 'FormBuilder', 'foundation', 'external-safe', ['form'], {
|
|
40
|
+
description: 'Schema-driven form renderer for Object Type backed intake flows.',
|
|
41
|
+
requiredResources: [{ type: 'ObjectType', fields: ['fields'], actions: ['create'], events: [], required: true }],
|
|
42
|
+
dataBindings: [{ name: 'schema', resource: 'ObjectType', field: 'fields', required: true }],
|
|
43
|
+
actionBindings: [{ name: 'submit', resource: 'Resource', action: 'create', required: true }],
|
|
44
|
+
overridePoints: [
|
|
45
|
+
{ name: 'fieldLayout', path: 'presentationConfig.fieldLayout', kind: 'presentation', required: false },
|
|
46
|
+
{ name: 'submitAction', path: 'actionsConfig.submit', kind: 'actions', required: true },
|
|
47
|
+
],
|
|
48
|
+
}),
|
|
49
|
+
block('daisy.stage-progress', 'StageProgress', '@enterpriseaigroup/daisy', 'StageProgress', 'product', 'external-with-adapter', ['workflow'], {
|
|
50
|
+
description: 'Workflow stage tracker for DAISY-backed journeys.',
|
|
51
|
+
requiredResources: [{ type: 'WorkflowRun', fields: ['stage', 'status'], actions: [], events: ['stage.changed'], required: true }],
|
|
52
|
+
dataBindings: [{ name: 'stage', resource: 'WorkflowRun', field: 'stage', required: true }],
|
|
53
|
+
}),
|
|
54
|
+
block('daisy.chatbot', 'Chatbot', '@enterpriseaigroup/daisy', 'Chatbot', 'product', 'external-with-adapter', ['chat', 'ai'], {
|
|
55
|
+
description: 'Chat surface that requires an adapter-backed runtime workflow.',
|
|
56
|
+
requiredResources: [{ type: 'Conversation', fields: ['messages'], actions: ['sendMessage'], events: ['message.received'], required: true }],
|
|
57
|
+
dataBindings: [{ name: 'messages', resource: 'Conversation', field: 'messages', required: true }],
|
|
58
|
+
actionBindings: [{ name: 'sendMessage', resource: 'Conversation', action: 'sendMessage', required: true }],
|
|
59
|
+
}),
|
|
60
|
+
block('daisy.address-lookup', 'AddressLookup', '@enterpriseaigroup/daisy', 'AddressLookup', 'product', 'external-with-adapter', ['address', 'form'], {
|
|
61
|
+
description: 'Address search and selection block that uses an adapter-backed lookup service.',
|
|
62
|
+
requiredResources: [{ type: 'AddressSuggestion', fields: ['label', 'addressId'], actions: ['search'], events: [], required: true }],
|
|
63
|
+
dataBindings: [{ name: 'suggestions', resource: 'AddressSuggestion', field: 'label', required: true }],
|
|
64
|
+
actionBindings: [{ name: 'search', resource: 'AddressSuggestion', action: 'search', required: true }],
|
|
65
|
+
}),
|
|
66
|
+
block('assess.workflow-navigator', 'WorkflowNavigator', '@enterpriseaigroup/assess', 'WorkflowNavigator', 'product', 'external-with-adapter', ['workflow', 'navigation'], {
|
|
67
|
+
description: 'Assessment workflow navigation block for guided review journeys.',
|
|
68
|
+
requiredResources: [{ type: 'AssessmentWorkflow', fields: ['steps', 'currentStep'], actions: ['advance'], events: [], required: true }],
|
|
69
|
+
dataBindings: [{ name: 'currentStep', resource: 'AssessmentWorkflow', field: 'currentStep', required: true }],
|
|
70
|
+
actionBindings: [{ name: 'advance', resource: 'AssessmentWorkflow', action: 'advance', required: true }],
|
|
71
|
+
}),
|
|
72
|
+
block('demo.example-card', 'ExampleCard', '@enterpriseaigroup/demo', 'ExampleCard', 'dev', 'external-safe', ['demo', 'layout'], {
|
|
73
|
+
description: 'Demo-only example block for local prototypes and docs.',
|
|
74
|
+
publicReadiness: 'preview',
|
|
75
|
+
packageProfiles: ['external', 'hybrid'],
|
|
76
|
+
}),
|
|
77
|
+
];
|
|
78
|
+
export function normalizeManifestBlocks(discovered) {
|
|
79
|
+
const manifestRecord = asRecord(discovered.manifest) ?? {};
|
|
80
|
+
const packageName = readString(manifestRecord, 'packageName') ?? discovered.source.packageName ?? 'workspace';
|
|
81
|
+
const packageVersion = readString(manifestRecord, 'packageVersion') ?? discovered.source.packageVersion;
|
|
82
|
+
const manifestLane = readPackageLane(manifestRecord.packageLane);
|
|
83
|
+
const manifestProfiles = readPackageProfiles(manifestRecord.packageProfiles ?? manifestRecord.packageProfile);
|
|
84
|
+
const catalogMetadata = {
|
|
85
|
+
...(asRecord(manifestRecord.catalog) ?? {}),
|
|
86
|
+
...(discovered.catalogMetadata ?? {}),
|
|
87
|
+
};
|
|
88
|
+
return Array.isArray(discovered.manifest.blocks)
|
|
89
|
+
? discovered.manifest.blocks
|
|
90
|
+
.map((rawBlock, index) => normalizeBlockEntry(rawBlock, {
|
|
91
|
+
packageName,
|
|
92
|
+
packageVersion,
|
|
93
|
+
packageLane: manifestLane,
|
|
94
|
+
packageProfiles: manifestProfiles,
|
|
95
|
+
source: discovered.source,
|
|
96
|
+
catalogMetadata,
|
|
97
|
+
index,
|
|
98
|
+
}))
|
|
99
|
+
.filter((entry) => Boolean(entry))
|
|
100
|
+
: [];
|
|
101
|
+
}
|
|
102
|
+
export function normalizeBlockEntry(rawBlock, context) {
|
|
103
|
+
const blockRecord = asRecord(rawBlock);
|
|
104
|
+
const id = readString(blockRecord, 'id', 'blockId');
|
|
105
|
+
if (!blockRecord || !id) {
|
|
106
|
+
return null;
|
|
107
|
+
}
|
|
108
|
+
const packageName = readString(blockRecord, 'packageName', 'package') ?? context.packageName;
|
|
109
|
+
const backendCoupling = readBackendCoupling(blockRecord.backendCoupling ?? blockRecord.coupling)
|
|
110
|
+
?? inferCouplingFromPackage(packageName);
|
|
111
|
+
const bindings = asRecord(blockRecord.bindings);
|
|
112
|
+
return {
|
|
113
|
+
id,
|
|
114
|
+
title: readString(blockRecord, 'title', 'displayName', 'name') ?? id,
|
|
115
|
+
description: readString(blockRecord, 'description', 'summary'),
|
|
116
|
+
packageName,
|
|
117
|
+
importPath: readString(blockRecord, 'importPath', 'import', 'module') ?? packageName,
|
|
118
|
+
exportName: readString(blockRecord, 'exportName', 'export') ?? toExportName(id),
|
|
119
|
+
packageLane: readPackageLane(blockRecord.packageLane ?? blockRecord.lane ?? blockRecord.category)
|
|
120
|
+
?? context.packageLane
|
|
121
|
+
?? inferLaneFromPackage(packageName),
|
|
122
|
+
packageProfiles: readPackageProfiles(blockRecord.packageProfiles ?? blockRecord.packageProfile ?? blockRecord.profiles ?? blockRecord.profile)
|
|
123
|
+
?? context.packageProfiles
|
|
124
|
+
?? inferProfilesForCoupling(backendCoupling),
|
|
125
|
+
publicReadiness: readPublicReadiness(blockRecord.publicReadiness ?? blockRecord.readiness)
|
|
126
|
+
?? inferReadinessForCoupling(backendCoupling),
|
|
127
|
+
backendCoupling,
|
|
128
|
+
capabilities: readStringArray(blockRecord.capabilities),
|
|
129
|
+
slots: readStringArray(blockRecord.slots),
|
|
130
|
+
themeTokens: readStringArray(blockRecord.themeTokens ?? blockRecord.tokens),
|
|
131
|
+
requiredResources: readResources(blockRecord.requiredResources ?? blockRecord.resources),
|
|
132
|
+
dataBindings: readBindings(blockRecord.dataBindings ?? bindings?.data),
|
|
133
|
+
actionBindings: readBindings(blockRecord.actionBindings ?? bindings?.actions),
|
|
134
|
+
overridePoints: readOverridePoints(blockRecord.overridePoints ?? blockRecord.overrides),
|
|
135
|
+
customExtension: readBoolean(blockRecord.customExtension ?? blockRecord.customExtensionBlock ?? asRecord(blockRecord.extension)?.custom) ?? false,
|
|
136
|
+
source: { ...context.source, packageName, packageVersion: context.packageVersion },
|
|
137
|
+
catalogMetadata: Object.keys(context.catalogMetadata ?? {}).length > 0 ? context.catalogMetadata : undefined,
|
|
138
|
+
storybook: readStorybook(blockRecord.storybook),
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
export function filterBlocks(blocks, options) {
|
|
142
|
+
return blocks.filter((entry) => {
|
|
143
|
+
if (options.lane && entry.packageLane !== options.lane)
|
|
144
|
+
return false;
|
|
145
|
+
if (options.coupling && entry.backendCoupling !== options.coupling)
|
|
146
|
+
return false;
|
|
147
|
+
if (options.readiness && entry.publicReadiness !== options.readiness)
|
|
148
|
+
return false;
|
|
149
|
+
if (options.packageProfile && !entry.packageProfiles.includes(options.packageProfile))
|
|
150
|
+
return false;
|
|
151
|
+
if (options.custom && !entry.customExtension)
|
|
152
|
+
return false;
|
|
153
|
+
return true;
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
export function groupBlocks(blocks, groupBy) {
|
|
157
|
+
const grouped = new Map();
|
|
158
|
+
for (const entry of blocks) {
|
|
159
|
+
for (const key of groupKeys(entry, groupBy)) {
|
|
160
|
+
grouped.set(key, [...(grouped.get(key) ?? []), entry]);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
const order = groupBy === 'package' ? Array.from(grouped.keys()).sort() : groupOrder(groupBy);
|
|
164
|
+
return order
|
|
165
|
+
.filter((key) => grouped.has(key))
|
|
166
|
+
.map((key) => ({ key, blocks: grouped.get(key) ?? [] }));
|
|
167
|
+
}
|
|
168
|
+
export function buildReadinessSummary(blocks, packageProfile) {
|
|
169
|
+
const byReadiness = { 'public-ready': 0, preview: 0, internal: 0, blocked: 0 };
|
|
170
|
+
const byLane = { foundation: 0, product: 0, addon: 0, dev: 0 };
|
|
171
|
+
const compatibleBlocks = [];
|
|
172
|
+
const incompatibleBlocks = [];
|
|
173
|
+
const customExtensionBlocks = [];
|
|
174
|
+
for (const entry of blocks) {
|
|
175
|
+
byReadiness[entry.publicReadiness] += 1;
|
|
176
|
+
byLane[entry.packageLane] += 1;
|
|
177
|
+
if (entry.packageProfiles.includes(packageProfile)) {
|
|
178
|
+
compatibleBlocks.push(entry.id);
|
|
179
|
+
}
|
|
180
|
+
else {
|
|
181
|
+
incompatibleBlocks.push(entry.id);
|
|
182
|
+
}
|
|
183
|
+
if (entry.customExtension) {
|
|
184
|
+
customExtensionBlocks.push(entry.id);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
return { total: blocks.length, byReadiness, byLane, compatibleBlocks, incompatibleBlocks, customExtensionBlocks };
|
|
188
|
+
}
|
|
189
|
+
export function readPackageLane(value) {
|
|
190
|
+
return readEnum(value, PACKAGE_LANES);
|
|
191
|
+
}
|
|
192
|
+
export function readBackendCoupling(value) {
|
|
193
|
+
return readEnum(value, BACKEND_COUPLINGS);
|
|
194
|
+
}
|
|
195
|
+
export function readPublicReadiness(value) {
|
|
196
|
+
if (value === 'ready') {
|
|
197
|
+
return 'public-ready';
|
|
198
|
+
}
|
|
199
|
+
return readEnum(value, PUBLIC_READINESS);
|
|
200
|
+
}
|
|
201
|
+
export function readPackageProfile(value) {
|
|
202
|
+
return readEnum(value, PACKAGE_PROFILES);
|
|
203
|
+
}
|
|
204
|
+
export function readPackageProfiles(value) {
|
|
205
|
+
const values = readStringArray(value)
|
|
206
|
+
.map((entry) => readPackageProfile(entry))
|
|
207
|
+
.filter((entry) => Boolean(entry));
|
|
208
|
+
return values.length > 0 ? Array.from(new Set(values)) : undefined;
|
|
209
|
+
}
|
|
210
|
+
function block(id, title, packageName, exportName, packageLane, backendCoupling, capabilities, metadata = {}) {
|
|
211
|
+
return {
|
|
212
|
+
id,
|
|
213
|
+
title,
|
|
214
|
+
description: metadata.description,
|
|
215
|
+
packageName,
|
|
216
|
+
importPath: packageName,
|
|
217
|
+
exportName,
|
|
218
|
+
packageLane,
|
|
219
|
+
backendCoupling,
|
|
220
|
+
capabilities,
|
|
221
|
+
slots: metadata.slots ?? ['page', 'inline'],
|
|
222
|
+
themeTokens: metadata.themeTokens ?? ['color', 'radius', 'spacing', 'typography'],
|
|
223
|
+
packageProfiles: metadata.packageProfiles ?? inferProfilesForCoupling(backendCoupling),
|
|
224
|
+
publicReadiness: metadata.publicReadiness ?? inferReadinessForCoupling(backendCoupling),
|
|
225
|
+
requiredResources: metadata.requiredResources ?? [],
|
|
226
|
+
dataBindings: metadata.dataBindings ?? [],
|
|
227
|
+
actionBindings: metadata.actionBindings ?? [],
|
|
228
|
+
overridePoints: metadata.overridePoints ?? [
|
|
229
|
+
{ name: 'theme', path: 'themeTokens', kind: 'theme', required: false },
|
|
230
|
+
{ name: 'presentationConfig', path: 'presentationConfig', kind: 'presentation', required: false },
|
|
231
|
+
],
|
|
232
|
+
customExtension: metadata.customExtension ?? false,
|
|
233
|
+
source: { type: 'builtin', packageName },
|
|
234
|
+
storybook: metadata.storybook,
|
|
235
|
+
catalogMetadata: metadata.catalogMetadata,
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
function readResources(value) {
|
|
239
|
+
const values = Array.isArray(value) ? value : value ? [value] : [];
|
|
240
|
+
return values.map(readResource).filter((entry) => Boolean(entry));
|
|
241
|
+
}
|
|
242
|
+
function readResource(value) {
|
|
243
|
+
if (typeof value === 'string')
|
|
244
|
+
return { type: value, fields: [], actions: [], events: [], required: true };
|
|
245
|
+
const record = asRecord(value);
|
|
246
|
+
const type = readString(record, 'type', 'resource', 'objectType', 'name');
|
|
247
|
+
if (!record || !type)
|
|
248
|
+
return null;
|
|
249
|
+
return {
|
|
250
|
+
type,
|
|
251
|
+
fields: readStringArray(record.fields ?? record.requiredFields),
|
|
252
|
+
actions: readStringArray(record.actions ?? record.requiredActions),
|
|
253
|
+
events: readStringArray(record.events ?? record.requiredEvents),
|
|
254
|
+
purpose: readString(record, 'purpose', 'description'),
|
|
255
|
+
required: readBoolean(record.required) ?? true,
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
function readBindings(value) {
|
|
259
|
+
const values = Array.isArray(value) ? value : value ? [value] : [];
|
|
260
|
+
return values.map(readBinding).filter((entry) => Boolean(entry));
|
|
261
|
+
}
|
|
262
|
+
function readBinding(value) {
|
|
263
|
+
if (typeof value === 'string')
|
|
264
|
+
return { name: value, required: false };
|
|
265
|
+
const record = asRecord(value);
|
|
266
|
+
const name = readString(record, 'name', 'id', 'binding');
|
|
267
|
+
if (!record || !name)
|
|
268
|
+
return null;
|
|
269
|
+
return {
|
|
270
|
+
name,
|
|
271
|
+
resource: readString(record, 'resource', 'objectType'),
|
|
272
|
+
field: readString(record, 'field', 'path'),
|
|
273
|
+
action: readString(record, 'action'),
|
|
274
|
+
event: readString(record, 'event'),
|
|
275
|
+
description: readString(record, 'description', 'purpose'),
|
|
276
|
+
required: readBoolean(record.required) ?? false,
|
|
277
|
+
};
|
|
278
|
+
}
|
|
279
|
+
function readOverridePoints(value) {
|
|
280
|
+
const values = Array.isArray(value) ? value : value ? [value] : [];
|
|
281
|
+
return values.map(readOverridePoint).filter((entry) => Boolean(entry));
|
|
282
|
+
}
|
|
283
|
+
function readOverridePoint(value) {
|
|
284
|
+
if (typeof value === 'string')
|
|
285
|
+
return { name: value, required: false };
|
|
286
|
+
const record = asRecord(value);
|
|
287
|
+
const name = readString(record, 'name', 'id', 'path');
|
|
288
|
+
if (!record || !name)
|
|
289
|
+
return null;
|
|
290
|
+
return {
|
|
291
|
+
name,
|
|
292
|
+
path: readString(record, 'path'),
|
|
293
|
+
kind: readString(record, 'kind', 'type'),
|
|
294
|
+
description: readString(record, 'description', 'purpose'),
|
|
295
|
+
required: readBoolean(record.required) ?? false,
|
|
296
|
+
};
|
|
297
|
+
}
|
|
298
|
+
function readStorybook(value) {
|
|
299
|
+
const record = asRecord(value);
|
|
300
|
+
const title = readString(record, 'title');
|
|
301
|
+
return record && title ? { title, storyId: readString(record, 'storyId', 'id') } : undefined;
|
|
302
|
+
}
|
|
303
|
+
function groupKeys(entry, groupBy) {
|
|
304
|
+
if (groupBy === 'lane')
|
|
305
|
+
return [entry.packageLane];
|
|
306
|
+
if (groupBy === 'package')
|
|
307
|
+
return [entry.packageName];
|
|
308
|
+
if (groupBy === 'coupling')
|
|
309
|
+
return [entry.backendCoupling];
|
|
310
|
+
if (groupBy === 'readiness')
|
|
311
|
+
return [entry.publicReadiness];
|
|
312
|
+
return entry.packageProfiles;
|
|
313
|
+
}
|
|
314
|
+
function groupOrder(groupBy) {
|
|
315
|
+
if (groupBy === 'lane')
|
|
316
|
+
return [...PACKAGE_LANES];
|
|
317
|
+
if (groupBy === 'coupling')
|
|
318
|
+
return [...BACKEND_COUPLINGS];
|
|
319
|
+
if (groupBy === 'profile')
|
|
320
|
+
return [...PACKAGE_PROFILES];
|
|
321
|
+
if (groupBy === 'readiness')
|
|
322
|
+
return [...PUBLIC_READINESS];
|
|
323
|
+
return [];
|
|
324
|
+
}
|
|
325
|
+
function readEnum(value, allowed) {
|
|
326
|
+
return typeof value === 'string' && allowed.includes(value) ? value : undefined;
|
|
327
|
+
}
|
|
328
|
+
function inferLaneFromPackage(packageName) {
|
|
329
|
+
if (packageName.includes('/daisy') || packageName.includes('/assess'))
|
|
330
|
+
return 'product';
|
|
331
|
+
if (packageName.includes('/demo'))
|
|
332
|
+
return 'dev';
|
|
333
|
+
if (packageName.includes('/addon') || packageName.includes('/plugin'))
|
|
334
|
+
return 'addon';
|
|
335
|
+
return 'foundation';
|
|
336
|
+
}
|
|
337
|
+
function inferCouplingFromPackage(packageName) {
|
|
338
|
+
return packageName.includes('/daisy') || packageName.includes('/assess') ? 'external-with-adapter' : 'external-safe';
|
|
339
|
+
}
|
|
340
|
+
function inferProfilesForCoupling(coupling) {
|
|
341
|
+
if (coupling === 'internal-only')
|
|
342
|
+
return ['internal'];
|
|
343
|
+
if (coupling === 'external-with-adapter')
|
|
344
|
+
return ['hybrid', 'internal'];
|
|
345
|
+
return ['external', 'hybrid', 'internal'];
|
|
346
|
+
}
|
|
347
|
+
function inferReadinessForCoupling(coupling) {
|
|
348
|
+
return coupling === 'internal-only' ? 'internal' : 'public-ready';
|
|
349
|
+
}
|
|
350
|
+
function toExportName(id) {
|
|
351
|
+
const parts = id.split(/[.\-_]/).filter(Boolean);
|
|
352
|
+
const pascal = parts.map((part) => part.charAt(0).toUpperCase() + part.slice(1)).join('');
|
|
353
|
+
return pascal || 'Block';
|
|
354
|
+
}
|
|
355
|
+
//# sourceMappingURL=block-catalog-normalize.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"block-catalog-normalize.js","sourceRoot":"","sources":["../../src/lib/block-catalog-normalize.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,gBAAgB,EAChB,gBAAgB,GAYjB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE9F,MAAM,CAAC,MAAM,cAAc,GAAwB;IACjD,KAAK,CAAC,aAAa,EAAE,QAAQ,EAAE,yBAAyB,EAAE,QAAQ,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,EAAE;QACnH,WAAW,EAAE,4DAA4D;QACzE,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,gBAAgB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;QAChF,cAAc,EAAE;YACd,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,0BAA0B,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE;YAClF,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,4BAA4B,EAAE,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,KAAK,EAAE;SAC/F;KACF,CAAC;IACF,KAAK,CAAC,YAAY,EAAE,OAAO,EAAE,yBAAyB,EAAE,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,EAAE;QAC9G,WAAW,EAAE,0DAA0D;QACvE,YAAY,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;QAClE,cAAc,EAAE;YACd,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE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AAC,IAAI,WAAW,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,eAAe,CAAC;AACvH,CAAC;AAED,SAAS,wBAAwB,CAAC,QAAyB;IACzD,IAAI,QAAQ,KAAK,eAAe;QAAE,OAAO,CAAC,UAAU,CAAC,CAAC;IACtD,IAAI,QAAQ,KAAK,uBAAuB;QAAE,OAAO,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;IACxE,OAAO,CAAC,UAAU,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC;AAC5C,CAAC;AAED,SAAS,yBAAyB,CAAC,QAAyB;IAC1D,OAAO,QAAQ,KAAK,eAAe,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,cAAc,CAAC;AACpE,CAAC;AAED,SAAS,YAAY,CAAC,EAAU;IAC9B,MAAM,KAAK,GAAG,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACjD,MAAM,MAAM,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC1F,OAAO,MAAM,IAAI,OAAO,CAAC;AAC3B,CAAC"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
export type PackageLane = 'foundation' | 'product' | 'addon' | 'dev';
|
|
2
|
+
export type BackendCoupling = 'external-safe' | 'external-with-adapter' | 'internal-only';
|
|
3
|
+
export type PublicReadiness = 'public-ready' | 'preview' | 'internal' | 'blocked';
|
|
4
|
+
export type PackageProfile = 'external' | 'internal' | 'hybrid';
|
|
5
|
+
export type BlockSourceType = 'builtin' | 'installed-package' | 'workspace' | 'pinned';
|
|
6
|
+
export type GroupBy = 'lane' | 'package' | 'coupling' | 'profile' | 'readiness';
|
|
7
|
+
export interface RequiredResource {
|
|
8
|
+
type: string;
|
|
9
|
+
fields: string[];
|
|
10
|
+
actions: string[];
|
|
11
|
+
events: string[];
|
|
12
|
+
purpose?: string;
|
|
13
|
+
required: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface BlockBinding {
|
|
16
|
+
name: string;
|
|
17
|
+
resource?: string;
|
|
18
|
+
field?: string;
|
|
19
|
+
action?: string;
|
|
20
|
+
event?: string;
|
|
21
|
+
description?: string;
|
|
22
|
+
required: boolean;
|
|
23
|
+
}
|
|
24
|
+
export interface OverridePoint {
|
|
25
|
+
name: string;
|
|
26
|
+
path?: string;
|
|
27
|
+
kind?: string;
|
|
28
|
+
description?: string;
|
|
29
|
+
required: boolean;
|
|
30
|
+
}
|
|
31
|
+
export interface BlockSource {
|
|
32
|
+
type: BlockSourceType;
|
|
33
|
+
manifestPath?: string;
|
|
34
|
+
packageName?: string;
|
|
35
|
+
packageVersion?: string;
|
|
36
|
+
}
|
|
37
|
+
export interface BlockCatalogEntry {
|
|
38
|
+
id: string;
|
|
39
|
+
title: string;
|
|
40
|
+
description?: string;
|
|
41
|
+
packageName: string;
|
|
42
|
+
importPath: string;
|
|
43
|
+
exportName: string;
|
|
44
|
+
packageLane: PackageLane;
|
|
45
|
+
packageProfiles: PackageProfile[];
|
|
46
|
+
publicReadiness: PublicReadiness;
|
|
47
|
+
backendCoupling: BackendCoupling;
|
|
48
|
+
capabilities: string[];
|
|
49
|
+
slots: string[];
|
|
50
|
+
themeTokens: string[];
|
|
51
|
+
requiredResources: RequiredResource[];
|
|
52
|
+
dataBindings: BlockBinding[];
|
|
53
|
+
actionBindings: BlockBinding[];
|
|
54
|
+
overridePoints: OverridePoint[];
|
|
55
|
+
customExtension: boolean;
|
|
56
|
+
source: BlockSource;
|
|
57
|
+
catalogMetadata?: Record<string, unknown>;
|
|
58
|
+
storybook?: {
|
|
59
|
+
title: string;
|
|
60
|
+
storyId?: string;
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
export interface RawBlockManifest {
|
|
64
|
+
schemaVersion?: unknown;
|
|
65
|
+
packageName?: unknown;
|
|
66
|
+
packageVersion?: unknown;
|
|
67
|
+
packageLane?: unknown;
|
|
68
|
+
packageProfile?: unknown;
|
|
69
|
+
packageProfiles?: unknown;
|
|
70
|
+
catalog?: unknown;
|
|
71
|
+
blocks?: unknown;
|
|
72
|
+
}
|
|
73
|
+
export interface DiscoveredManifest {
|
|
74
|
+
manifest: RawBlockManifest;
|
|
75
|
+
source: BlockSource;
|
|
76
|
+
catalogMetadata?: Record<string, unknown>;
|
|
77
|
+
}
|
|
78
|
+
export interface CatalogManifestSummary {
|
|
79
|
+
source: BlockSourceType;
|
|
80
|
+
packageName: string;
|
|
81
|
+
packageVersion?: string;
|
|
82
|
+
manifestPath?: string;
|
|
83
|
+
blockCount: number;
|
|
84
|
+
catalogMetadata?: Record<string, unknown>;
|
|
85
|
+
}
|
|
86
|
+
export interface ProjectPackageMetadata {
|
|
87
|
+
profile: PackageProfile;
|
|
88
|
+
source?: string;
|
|
89
|
+
recordedAt?: string;
|
|
90
|
+
}
|
|
91
|
+
export interface ValidationResult {
|
|
92
|
+
valid: boolean;
|
|
93
|
+
errors: string[];
|
|
94
|
+
warnings: string[];
|
|
95
|
+
}
|
|
96
|
+
export interface BlockCatalog {
|
|
97
|
+
blocks: BlockCatalogEntry[];
|
|
98
|
+
manifests: CatalogManifestSummary[];
|
|
99
|
+
packageMetadata: ProjectPackageMetadata;
|
|
100
|
+
validation: ValidationResult;
|
|
101
|
+
}
|
|
102
|
+
export declare const PACKAGE_LANES: readonly ["foundation", "product", "addon", "dev"];
|
|
103
|
+
export declare const BACKEND_COUPLINGS: readonly ["external-safe", "external-with-adapter", "internal-only"];
|
|
104
|
+
export declare const PUBLIC_READINESS: readonly ["public-ready", "preview", "internal", "blocked"];
|
|
105
|
+
export declare const PACKAGE_PROFILES: readonly ["external", "internal", "hybrid"];
|
|
106
|
+
export declare const DEFAULT_GROUP_BY: GroupBy;
|
|
107
|
+
export declare const KNOWN_MANIFEST_PACKAGES: string[];
|
|
108
|
+
export declare const WORKSPACE_MANIFEST_PATHS: string[];
|
|
109
|
+
export declare const PACKAGE_MANIFEST_EXPORTS: string[];
|
|
110
|
+
export declare const PACKAGE_MANIFEST_FILES: string[];
|
|
111
|
+
//# sourceMappingURL=block-catalog-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"block-catalog-types.d.ts","sourceRoot":"","sources":["../../src/lib/block-catalog-types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,YAAY,GAAG,SAAS,GAAG,OAAO,GAAG,KAAK,CAAC;AACrE,MAAM,MAAM,eAAe,GAAG,eAAe,GAAG,uBAAuB,GAAG,eAAe,CAAC;AAC1F,MAAM,MAAM,eAAe,GAAG,cAAc,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;AAClF,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,UAAU,GAAG,QAAQ,CAAC;AAChE,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,mBAAmB,GAAG,WAAW,GAAG,QAAQ,CAAC;AACvF,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,WAAW,CAAC;AAEhF,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,M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xC,UAAU,EAAE,gBAAgB,CAAC;CAC9B;AAED,eAAO,MAAM,aAAa,oDAAqD,CAAC;AAChF,eAAO,MAAM,iBAAiB,sEAAuE,CAAC;AACtG,eAAO,MAAM,gBAAgB,6DAA8D,CAAC;AAC5F,eAAO,MAAM,gBAAgB,6CAA8C,CAAC;AAC5E,eAAO,MAAM,gBAAgB,EAAE,OAAgB,CAAC;AAEhD,eAAO,MAAM,uBAAuB,UAOnC,CAAC;AAEF,eAAO,MAAM,wBAAwB,UASpC,CAAC;AAEF,eAAO,MAAM,wBAAwB,UAMpC,CAAC;AAEF,eAAO,MAAM,sBAAsB,UASlC,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export const PACKAGE_LANES = ['foundation', 'product', 'addon', 'dev'];
|
|
2
|
+
export const BACKEND_COUPLINGS = ['external-safe', 'external-with-adapter', 'internal-only'];
|
|
3
|
+
export const PUBLIC_READINESS = ['public-ready', 'preview', 'internal', 'blocked'];
|
|
4
|
+
export const PACKAGE_PROFILES = ['external', 'internal', 'hybrid'];
|
|
5
|
+
export const DEFAULT_GROUP_BY = 'lane';
|
|
6
|
+
export const KNOWN_MANIFEST_PACKAGES = [
|
|
7
|
+
'@enterpriseaigroup/ui',
|
|
8
|
+
'@enterpriseaigroup/blocks',
|
|
9
|
+
'@enterpriseaigroup/core',
|
|
10
|
+
'@enterpriseaigroup/daisy',
|
|
11
|
+
'@enterpriseaigroup/assess',
|
|
12
|
+
'@enterpriseaigroup/demo',
|
|
13
|
+
];
|
|
14
|
+
export const WORKSPACE_MANIFEST_PATHS = [
|
|
15
|
+
'eai.blocks.json',
|
|
16
|
+
'eai-blocks.json',
|
|
17
|
+
'block-manifest.json',
|
|
18
|
+
'blocks.manifest.json',
|
|
19
|
+
'.eai/blocks.json',
|
|
20
|
+
'.eai/block-catalog.json',
|
|
21
|
+
'src/eai.blocks.json',
|
|
22
|
+
'src/eai.config/blocks.json',
|
|
23
|
+
];
|
|
24
|
+
export const PACKAGE_MANIFEST_EXPORTS = [
|
|
25
|
+
'./manifest',
|
|
26
|
+
'./block-manifest',
|
|
27
|
+
'./blocks/manifest',
|
|
28
|
+
'./ui-blocks/manifest',
|
|
29
|
+
'./ui-blocks',
|
|
30
|
+
];
|
|
31
|
+
export const PACKAGE_MANIFEST_FILES = [
|
|
32
|
+
'eai-blocks.json',
|
|
33
|
+
'block-manifest.json',
|
|
34
|
+
'blocks.manifest.json',
|
|
35
|
+
'manifest.json',
|
|
36
|
+
'dist/eai-blocks.json',
|
|
37
|
+
'dist/block-manifest.json',
|
|
38
|
+
'dist/blocks.manifest.json',
|
|
39
|
+
'dist/manifest.js',
|
|
40
|
+
];
|
|
41
|
+
//# sourceMappingURL=block-catalog-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"block-catalog-types.js","sourceRoot":"","sources":["../../src/lib/block-catalog-types.ts"],"names":[],"mappings":"AAiHA,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,CAAU,CAAC;AAChF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,eAAe,EAAE,uBAAuB,EAAE,eAAe,CAAU,CAAC;AACtG,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,cAAc,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,CAAU,CAAC;AAC5F,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,UAAU,EAAE,UAAU,EAAE,QAAQ,CAAU,CAAC;AAC5E,MAAM,CAAC,MAAM,gBAAgB,GAAY,MAAM,CAAC;AAEhD,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,uBAAuB;IACvB,2BAA2B;IAC3B,yBAAyB;IACzB,0BAA0B;IAC1B,2BAA2B;IAC3B,yBAAyB;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,iBAAiB;IACjB,iBAAiB;IACjB,qBAAqB;IACrB,sBAAsB;IACtB,kBAAkB;IAClB,yBAAyB;IACzB,qBAAqB;IACrB,4BAA4B;CAC7B,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,YAAY;IACZ,kBAAkB;IAClB,mBAAmB;IACnB,sBAAsB;IACtB,aAAa;CACd,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,iBAAiB;IACjB,qBAAqB;IACrB,sBAAsB;IACtB,eAAe;IACf,sBAAsB;IACtB,0BAA0B;IAC1B,2BAA2B;IAC3B,kBAAkB;CACnB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare function readJsonFile(path: string): Promise<unknown>;
|
|
2
|
+
export declare function asRecord(value: unknown): Record<string, unknown> | null;
|
|
3
|
+
export declare function readString(record: Record<string, unknown> | null | undefined, ...keys: string[]): string | undefined;
|
|
4
|
+
export declare function readStringArray(value: unknown): string[];
|
|
5
|
+
export declare function readBoolean(value: unknown): boolean | undefined;
|
|
6
|
+
export declare function compactRecord(value: Record<string, unknown>): Record<string, unknown>;
|
|
7
|
+
//# sourceMappingURL=block-catalog-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"block-catalog-utils.d.ts","sourceRoot":"","sources":["../../src/lib/block-catalog-utils.ts"],"names":[],"mappings":"AAEA,wBAAsB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAMjE;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAIvE;AAED,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CAWpH;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,EAAE,CAQxD;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,GAAG,SAAS,CAE/D;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAOrF"}
|