aiox-core 5.0.4 → 5.0.5
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/.aiox-core/core/config/config-cache.js +10 -1
- package/.aiox-core/core/config/config-loader.js +2 -2
- package/.aiox-core/core/execution/build-state-manager.js +1 -1
- package/.aiox-core/core/synapse/runtime/hook-runtime.js +11 -2
- package/.aiox-core/core/utils/yaml-validator.js +1 -1
- package/.aiox-core/data/entity-registry.yaml +761 -796
- package/.aiox-core/development/scripts/workflow-validator.js +92 -18
- package/.aiox-core/development/tasks/create-workflow.md +44 -42
- package/.aiox-core/development/tasks/project-status.md +280 -0
- package/.aiox-core/development/tasks/validate-workflow.md +2 -2
- package/.aiox-core/development/templates/squad/workflow-template.yaml +106 -91
- package/.aiox-core/development/templates/squad-template/workflows/example-workflow.yaml +72 -51
- package/.aiox-core/development/workflows/README.md +12 -5
- package/.aiox-core/development/workflows/development-cycle.yaml +90 -0
- package/.aiox-core/infrastructure/scripts/config-cache.js +10 -1
- package/.aiox-core/install-manifest.yaml +35 -39
- package/.aiox-core/lib/build.json +1 -0
- package/.claude/hooks/precompact-session-digest.cjs +47 -12
- package/.claude/hooks/synapse-engine.cjs +13 -13
- package/README.en.md +23 -37
- package/README.md +26 -38
- package/package.json +1 -1
- package/packages/installer/src/wizard/i18n.js +18 -15
- package/packages/installer/src/wizard/pro-setup.js +302 -68
- package/.aiox-core/core/execution/predictive-pipeline.js +0 -1283
- package/.aiox-core/core/memory/decision-memory.js +0 -564
- package/.aiox-core/data/registry-update-log.jsonl +0 -2
- package/pro/README.md +0 -66
- package/pro/feature-registry.yaml +0 -225
- package/pro/license/degradation.js +0 -220
- package/pro/license/errors.js +0 -450
- package/pro/license/feature-gate.js +0 -354
- package/pro/license/index.js +0 -181
- package/pro/license/license-api.js +0 -701
- package/pro/license/license-cache.js +0 -523
- package/pro/license/license-crypto.js +0 -303
- package/pro/package.json +0 -39
- package/pro/pro-config.yaml +0 -63
- package/pro/squads/README.md +0 -24
- package/pro/squads/design/HEADLINE.md +0 -3
- package/pro/squads/design/README.md +0 -109
- package/pro/squads/design/agents/brad-frost.md +0 -1097
- package/pro/squads/design/agents/dan-mall.md +0 -857
- package/pro/squads/design/agents/dave-malouf.md +0 -2272
- package/pro/squads/design/agents/design-chief.md +0 -114
- package/pro/squads/design/agents/ds-foundations-lead.md +0 -194
- package/pro/squads/design/agents/ds-token-architect.md +0 -361
- package/pro/squads/design/agents/nano-banana-generator.md +0 -162
- package/pro/squads/design/agents/storybook-expert.md +0 -809
- package/pro/squads/design/checklists/atomic-refactor-checklist.md +0 -299
- package/pro/squads/design/checklists/component-adaptation-checklist.md +0 -81
- package/pro/squads/design/checklists/design-fidelity-checklist.md +0 -283
- package/pro/squads/design/checklists/design-handoff-checklist.md +0 -55
- package/pro/squads/design/checklists/design-team-health-checklist.md +0 -454
- package/pro/squads/design/checklists/designops-maturity-checklist.md +0 -518
- package/pro/squads/design/checklists/ds-a11y-release-gate-checklist.md +0 -45
- package/pro/squads/design/checklists/ds-accessibility-wcag-checklist.md +0 -147
- package/pro/squads/design/checklists/ds-component-quality-checklist.md +0 -150
- package/pro/squads/design/checklists/ds-critical-eye-review-checklist.md +0 -147
- package/pro/squads/design/checklists/ds-migration-readiness-checklist.md +0 -99
- package/pro/squads/design/checklists/ds-pattern-audit-checklist.md +0 -164
- package/pro/squads/design/checklists/reading-accessibility-checklist.md +0 -275
- package/pro/squads/design/checklists/token-mapping-checklist.md +0 -107
- package/pro/squads/design/config/coding-standards.md +0 -286
- package/pro/squads/design/config/source-tree.md +0 -59
- package/pro/squads/design/config/tech-stack.md +0 -48
- package/pro/squads/design/config.yaml +0 -204
- package/pro/squads/design/data/agentic-design-systems-guide.md +0 -46
- package/pro/squads/design/data/agentic-ds-principles.md +0 -100
- package/pro/squads/design/data/atomic-design-principles.md +0 -108
- package/pro/squads/design/data/atomic-refactor-rules.md +0 -582
- package/pro/squads/design/data/base-component-specs.md +0 -972
- package/pro/squads/design/data/brad-frost-analysis-extract-implicit.yaml +0 -270
- package/pro/squads/design/data/brad-frost-analysis-find-0.8.yaml +0 -176
- package/pro/squads/design/data/brad-frost-analysis-qa-report.yaml +0 -168
- package/pro/squads/design/data/brad-frost-dna.yaml +0 -713
- package/pro/squads/design/data/capability-tools.yaml +0 -124
- package/pro/squads/design/data/component-adaptation-changelog.md +0 -318
- package/pro/squads/design/data/consolidation-algorithms.md +0 -168
- package/pro/squads/design/data/critical-eye-scoring-rules.yaml +0 -240
- package/pro/squads/design/data/design-token-best-practices.md +0 -107
- package/pro/squads/design/data/design-tokens-spec.yaml +0 -418
- package/pro/squads/design/data/ds-reference-architectures.md +0 -93
- package/pro/squads/design/data/f2-qa-report.md +0 -168
- package/pro/squads/design/data/f3-derived-components-changelog.md +0 -100
- package/pro/squads/design/data/f3-qa-report.md +0 -208
- package/pro/squads/design/data/figma-base-components-raw.md +0 -102
- package/pro/squads/design/data/figma-tokens-raw.md +0 -1549
- package/pro/squads/design/data/fluent2-design-principles.md +0 -114
- package/pro/squads/design/data/high-retention-reading-guide.md +0 -349
- package/pro/squads/design/data/integration-patterns.md +0 -207
- package/pro/squads/design/data/internal-quality-chain.yaml +0 -48
- package/pro/squads/design/data/motion-tokens-guide.md +0 -202
- package/pro/squads/design/data/roi-calculation-guide.md +0 -142
- package/pro/squads/design/data/token-mapping-reference.md +0 -213
- package/pro/squads/design/data/w3c-dtcg-spec-reference.md +0 -149
- package/pro/squads/design/data/wcag-compliance-guide.md +0 -267
- package/pro/squads/design/docs/AUDIT_REPORT.md +0 -97
- package/pro/squads/design/docs/DS-CURATION-PIPELINE-PROPOSAL.md +0 -577
- package/pro/squads/design/docs/UPGRADE_PLAN.md +0 -618
- package/pro/squads/design/docs/brad-frost-research-validation.md +0 -372
- package/pro/squads/design/docs/dave-malouf-research-validation.md +0 -391
- package/pro/squads/design/docs/tool-discovery-report.md +0 -87
- package/pro/squads/design/docs/tool-integration-plan.md +0 -44
- package/pro/squads/design/protocols/ai-first-governance.md +0 -56
- package/pro/squads/design/protocols/governance-execution-boundary.md +0 -59
- package/pro/squads/design/protocols/handoff.md +0 -60
- package/pro/squads/design/rules/.claude-rules.md +0 -88
- package/pro/squads/design/scripts/design-system/curate_colors.cjs +0 -447
- package/pro/squads/design/scripts/design-system/curate_components.cjs +0 -217
- package/pro/squads/design/scripts/design-system/curate_radius.cjs +0 -190
- package/pro/squads/design/scripts/design-system/curate_shadows.cjs +0 -208
- package/pro/squads/design/scripts/design-system/curate_spacing.cjs +0 -243
- package/pro/squads/design/scripts/design-system/curate_typography.cjs +0 -404
- package/pro/squads/design/scripts/design-system/design-system-metadata.test.js +0 -49
- package/pro/squads/design/scripts/design-system/design_manifest_lib.cjs +0 -142
- package/pro/squads/design/scripts/design-system/fetch_page_images.cjs +0 -195
- package/pro/squads/design/scripts/design-system/generate_components_metadata.cjs +0 -114
- package/pro/squads/design/scripts/design-system/generate_curation_report.cjs +0 -258
- package/pro/squads/design/scripts/design-system/generate_tokens.cjs +0 -342
- package/pro/squads/design/scripts/design-system/sync_design_manifest.cjs +0 -27
- package/pro/squads/design/scripts/design-system/test_mcp_tools.cjs +0 -232
- package/pro/squads/design/scripts/design-system/validate_components_metadata.cjs +0 -96
- package/pro/squads/design/scripts/design-system/validate_curation.cjs +0 -226
- package/pro/squads/design/scripts/design-system/validate_design_manifest_drift.cjs +0 -72
- package/pro/squads/design/scripts/design-system/validate_mcp_skeleton.cjs +0 -38
- package/pro/squads/design/scripts/design-system/validate_registry.cjs +0 -186
- package/pro/squads/design/scripts/design-system/validate_task_checklist_bindings.cjs +0 -78
- package/pro/squads/design/scripts/dissect-artifact.cjs +0 -806
- package/pro/squads/design/scripts/validate-a11y-integration.cjs +0 -40
- package/pro/squads/design/scripts/validate-design-squad.py +0 -411
- package/pro/squads/design/squad.yaml +0 -714
- package/pro/squads/design/tasks/a11y-audit.md +0 -340
- package/pro/squads/design/tasks/aria-audit.md +0 -525
- package/pro/squads/design/tasks/atomic-refactor-execute.md +0 -391
- package/pro/squads/design/tasks/atomic-refactor-plan.md +0 -262
- package/pro/squads/design/tasks/audit-reading-experience.md +0 -350
- package/pro/squads/design/tasks/audit-tailwind-config.md +0 -101
- package/pro/squads/design/tasks/bootstrap-shadcn-library.md +0 -96
- package/pro/squads/design/tasks/bundle-audit.md +0 -245
- package/pro/squads/design/tasks/contrast-matrix.md +0 -373
- package/pro/squads/design/tasks/create-doc.md +0 -135
- package/pro/squads/design/tasks/dead-code-detection.md +0 -329
- package/pro/squads/design/tasks/design-compare.md +0 -414
- package/pro/squads/design/tasks/design-process-optimization.md +0 -407
- package/pro/squads/design/tasks/design-review-orchestration.md +0 -99
- package/pro/squads/design/tasks/design-team-scaling.md +0 -407
- package/pro/squads/design/tasks/design-tooling-audit.md +0 -404
- package/pro/squads/design/tasks/design-triage.md +0 -89
- package/pro/squads/design/tasks/designops-maturity-assessment.md +0 -364
- package/pro/squads/design/tasks/designops-metrics-setup.md +0 -465
- package/pro/squads/design/tasks/ds-agentic-audit.md +0 -100
- package/pro/squads/design/tasks/ds-agentic-setup.md +0 -103
- package/pro/squads/design/tasks/ds-audit-codebase.md +0 -273
- package/pro/squads/design/tasks/ds-build-component.md +0 -349
- package/pro/squads/design/tasks/ds-build-mcp-server.md +0 -84
- package/pro/squads/design/tasks/ds-calculate-roi.md +0 -282
- package/pro/squads/design/tasks/ds-compose-molecule.md +0 -106
- package/pro/squads/design/tasks/ds-consolidate-patterns.md +0 -253
- package/pro/squads/design/tasks/ds-context-contract.md +0 -194
- package/pro/squads/design/tasks/ds-critical-eye-compare.md +0 -130
- package/pro/squads/design/tasks/ds-critical-eye-decide.md +0 -139
- package/pro/squads/design/tasks/ds-critical-eye-inventory.md +0 -111
- package/pro/squads/design/tasks/ds-critical-eye-report.md +0 -101
- package/pro/squads/design/tasks/ds-critical-eye-score.md +0 -109
- package/pro/squads/design/tasks/ds-designops.md +0 -99
- package/pro/squads/design/tasks/ds-extend-pattern.md +0 -91
- package/pro/squads/design/tasks/ds-extract-tokens.md +0 -312
- package/pro/squads/design/tasks/ds-figma-pipeline.md +0 -95
- package/pro/squads/design/tasks/ds-fluent-audit.md +0 -105
- package/pro/squads/design/tasks/ds-fluent-build.md +0 -110
- package/pro/squads/design/tasks/ds-generate-ai-metadata.md +0 -81
- package/pro/squads/design/tasks/ds-generate-cursor-rules.md +0 -74
- package/pro/squads/design/tasks/ds-generate-documentation.md +0 -101
- package/pro/squads/design/tasks/ds-generate-migration-strategy.md +0 -331
- package/pro/squads/design/tasks/ds-generate-shock-report.md +0 -323
- package/pro/squads/design/tasks/ds-govern-a11y-compliance.md +0 -93
- package/pro/squads/design/tasks/ds-governance.md +0 -187
- package/pro/squads/design/tasks/ds-health-metrics.md +0 -278
- package/pro/squads/design/tasks/ds-integrate-squad.md +0 -130
- package/pro/squads/design/tasks/ds-integrate-workspace.md +0 -100
- package/pro/squads/design/tasks/ds-legacy-modernization.md +0 -302
- package/pro/squads/design/tasks/ds-mcp-status.md +0 -65
- package/pro/squads/design/tasks/ds-motion-audit.md +0 -118
- package/pro/squads/design/tasks/ds-multi-framework.md +0 -96
- package/pro/squads/design/tasks/ds-parallelization-gate.md +0 -246
- package/pro/squads/design/tasks/ds-query.md +0 -90
- package/pro/squads/design/tasks/ds-rebuild-artifact.md +0 -369
- package/pro/squads/design/tasks/ds-reverse-engineer.md +0 -194
- package/pro/squads/design/tasks/ds-scan-artifact.md +0 -131
- package/pro/squads/design/tasks/ds-setup-design-system.md +0 -297
- package/pro/squads/design/tasks/ds-sync-registry.md +0 -287
- package/pro/squads/design/tasks/ds-theme-multi-brand.md +0 -90
- package/pro/squads/design/tasks/ds-token-modes.md +0 -108
- package/pro/squads/design/tasks/ds-token-w3c-extract.md +0 -105
- package/pro/squads/design/tasks/ds-validate-ai-readiness.md +0 -69
- package/pro/squads/design/tasks/ds-visual-regression.md +0 -130
- package/pro/squads/design/tasks/execute-checklist.md +0 -141
- package/pro/squads/design/tasks/export-design-tokens-dtcg.md +0 -97
- package/pro/squads/design/tasks/f1-apply-foundations.md +0 -154
- package/pro/squads/design/tasks/f1-ingest-figma-tokens.md +0 -130
- package/pro/squads/design/tasks/f1-map-tokens-to-shadcn.md +0 -145
- package/pro/squads/design/tasks/f1-qa-foundations.md +0 -95
- package/pro/squads/design/tasks/f2-adapt-shadcn-components.md +0 -155
- package/pro/squads/design/tasks/f2-ingest-base-components.md +0 -148
- package/pro/squads/design/tasks/f2-qa-base-components.md +0 -98
- package/pro/squads/design/tasks/f3-derive-components.md +0 -145
- package/pro/squads/design/tasks/f3-qa-derived-components.md +0 -101
- package/pro/squads/design/tasks/focus-order-audit.md +0 -450
- package/pro/squads/design/tasks/sb-brownfield-migrate.md +0 -367
- package/pro/squads/design/tasks/sb-brownfield-scan.md +0 -318
- package/pro/squads/design/tasks/sb-configure.md +0 -230
- package/pro/squads/design/tasks/sb-expand-shadcn.md +0 -213
- package/pro/squads/design/tasks/sb-generate-all-stories.md +0 -288
- package/pro/squads/design/tasks/sb-install.md +0 -152
- package/pro/squads/design/tasks/sb-sync-workspace.md +0 -239
- package/pro/squads/design/tasks/sb-verify.md +0 -203
- package/pro/squads/design/tasks/tailwind-upgrade.md +0 -117
- package/pro/squads/design/tasks/token-usage-analytics.md +0 -262
- package/pro/squads/design/tasks/ux-rewrite-sixth-grade.md +0 -82
- package/pro/squads/design/tasks/validate-design-fidelity.md +0 -222
- package/pro/squads/design/templates/agent-template.yaml +0 -46
- package/pro/squads/design/templates/clone-mind-template.md +0 -352
- package/pro/squads/design/templates/component-prompt-injection-tmpl.md +0 -236
- package/pro/squads/design/templates/component-visual-spec-tmpl.md +0 -378
- package/pro/squads/design/templates/critical-eye-cycle-report-tmpl.md +0 -165
- package/pro/squads/design/templates/design-fidelity-report-tmpl.md +0 -155
- package/pro/squads/design/templates/ds-ai-component-metadata-schema-tmpl.json +0 -138
- package/pro/squads/design/templates/ds-artifact-analysis.md +0 -70
- package/pro/squads/design/templates/ds-health-report-tmpl.md +0 -236
- package/pro/squads/design/templates/ds-migration-strategy-tmpl.md +0 -524
- package/pro/squads/design/templates/ds-state-persistence-tmpl.yaml +0 -194
- package/pro/squads/design/templates/ds-tokens-schema-tmpl.yaml +0 -139
- package/pro/squads/design/templates/migration-strategy-tmpl.md +0 -524
- package/pro/squads/design/templates/reading-design-tokens.css +0 -26
- package/pro/squads/design/templates/state-persistence-tmpl.yaml +0 -219
- package/pro/squads/design/templates/tokens-schema-tmpl.yaml +0 -305
- package/pro/squads/design/workflows/agentic-readiness.yaml +0 -83
- package/pro/squads/design/workflows/audit-only.yaml +0 -198
- package/pro/squads/design/workflows/brownfield-complete.yaml +0 -257
- package/pro/squads/design/workflows/critical-eye.yaml +0 -184
- package/pro/squads/design/workflows/dtcg-tokens-governance.yaml +0 -64
- package/pro/squads/design/workflows/foundations-pipeline.yaml +0 -192
- package/pro/squads/design/workflows/greenfield-new.yaml +0 -192
- package/pro/squads/design/workflows/motion-quality.yaml +0 -65
- package/pro/squads/design/workflows/self-healing-workflow.yaml +0 -237
- package/pro/squads/design/workflows/storybook-brownfield-migration.yaml +0 -400
- package/pro/squads/design/workflows/storybook-full-setup.yaml +0 -280
- package/pro/squads/index.js +0 -145
- package/pro/squads/mmos-squad/minds/alex_hormozi/artifacts/ARQUITETURA_COGNITIVA_DE_ALEX_HORMOZI_EXTRA/303/207/303/203O_COMPLETA.md +0 -215
- package/pro/squads/mmos-squad/minds/alex_hormozi/artifacts/A_Rotina_de_Alta_Performance_de_Alex_Hormozi_Arquitetura,_Motiva/303/247/303/265es_e_Replica/303/247/303/243o.md +0 -309
- package/pro/squads/mmos-squad/minds/alex_hormozi/artifacts/O_sistema_completo_de_cria/303/247/303/243o_de_conte/303/272do_de_Alex_Hormozi.md +0 -416
- package/pro/squads/mmos-squad/minds/alex_hormozi/artifacts/Processo_Cria/303/247/303/243o_Conte/303/272do_Hormozi.md +0 -0
- package/pro/squads/mmos-squad/minds/brad_frost/.backup/2026-01-13/artifacts/DECIS/303/225ES_ESTRAT/303/211GICAS_DE_DESIGN_SYSTEMS_(2022_2025).md +0 -1038
- package/pro/squads/mmos-squad/minds/brad_frost/.backup/2026-01-13/artifacts/FRAMEWORK_COMPLETO_DE_IMPLEMENTA/303/207/303/203O_ATOMIC_DESIGN.md +0 -797
- package/pro/squads/mmos-squad/minds/brad_frost/.backup/2026-01-13/artifacts/O_Cemit/303/251rio_de_Design_Systems.md +0 -447
- package/pro/squads/mmos-squad/minds/brad_frost/.backup/2026-01-13/artifacts/PRINC/303/215PIOS_DE_RACIOC/303/215NIO.md +0 -190
- package/pro/squads/mmos-squad/minds/brad_frost/artifacts/DECIS/303/225ES_ESTRAT/303/211GICAS_DE_DESIGN_SYSTEMS_(2022_2025).md +0 -1038
- package/pro/squads/mmos-squad/minds/brad_frost/artifacts/FRAMEWORK_COMPLETO_DE_IMPLEMENTA/303/207/303/203O_ATOMIC_DESIGN.md +0 -797
- package/pro/squads/mmos-squad/minds/brad_frost/artifacts/O_Cemit/303/251rio_de_Design_Systems.md +0 -447
- package/pro/squads/mmos-squad/minds/brad_frost/artifacts/PRINC/303/215PIOS_DE_RACIOC/303/215NIO.md +0 -190
- package/pro/squads/mmos-squad/minds/elon_musk/artifacts/AN/303/201LISE_PSICOM/303/211TRICA_PROFUNDA_ELON_MUSK.md +0 -291
- package/pro/squads/mmos-squad/minds/elon_musk/artifacts/ASSINATURA_LINGU/303/215STICA_ELON_MUSK.md +0 -485
- package/pro/squads/mmos-squad/minds/elon_musk/artifacts/A_Arquitetura_Mental_de_Elon_Musk_Uma_An/303/241lise_Sistem/303/241tica_dos_Frameworks_de_Pensamento.md +0 -907
- package/pro/squads/mmos-squad/minds/elon_musk/artifacts/Dossi/303/252_Estrat/303/251gico_A_Arquitetura_Psicol/303/263gica_de_Elon_Musk.md +0 -252
- package/pro/squads/mmos-squad/minds/elon_musk/artifacts/Os_Padr/303/265es_de_Leitura_de_Elon_Musk_e_Sua_Influ/303/252ncia_Sistem/303/241tica.md +0 -287
- package/pro/squads/mmos-squad/minds/elon_musk/artifacts/Uma_an/303/241lise_psicol/303/263gica_abrangente.md +0 -187
- package/pro/squads/mmos-squad/minds/eugene_schwartz/artifacts/AN/303/201LISE_PSICOM/303/211TRICA_PROFUNDA_EUGENE_M._SCHWARTZ.md +0 -790
- package/pro/squads/mmos-squad/minds/eugene_schwartz/artifacts/An/303/241lise_Completa_Eugene_Schwartz_Arquitetura_Cognitiva_DEEP.md +0 -210
- package/pro/squads/mmos-squad/minds/pedro_valerio/sources/artifacts_v1.6/5H_EXTRA/303/207/303/203O_COGNITIVA_COMPLETA_PEDRO_VAL/303/211RIO_LOPEZ.md +0 -226
- package/pro/squads/mmos-squad/minds/pedro_valerio/sources/artifacts_v1.6/AN/303/201LISE_COMPARATIVA_REVISADA_PEDRO_VAL/303/211RIO_LOPEZ.md +0 -246
- package/pro/squads/mmos-squad/minds/pedro_valerio/sources/artifacts_v1.6/AN/303/201LISE_LINGU/303/215STICA_CARIOCA_PEDRO_VAL/303/211RIO_LOPEZ.md +0 -274
- package/pro/squads/mmos-squad/minds/pedro_valerio/sources/artifacts_v1.6/AN/303/201LISE_PSICOM/303/211TRICA_DEFINITIVA_PEDRO_VAL/303/211RIO_LOPEZ.md +0 -821
- package/pro/squads/mmos-squad/minds/pedro_valerio/sources/artifacts_v1.6/AN/303/201LISE_PSICOM/303/211TRICA_PROFUNDA_PEDRO_VAL/303/211RIO.md +0 -1844
- package/pro/squads/mmos-squad/minds/pedro_valerio/sources/artifacts_v1.6/C/303/201LCULO_DE_RARIDADE_ESTAT/303/215STICA_PEDRO_VAL/303/211RIO_LOPEZ.md +0 -154
- package/pro/squads/mmos-squad/minds/pedro_valerio/sources/artifacts_v1.6/EXTRA/303/207/303/203O_PEDRO_VAL/303/211RIO.md +0 -237
- package/pro/squads/mmos-squad/minds/pedro_valerio/sources/artifacts_v1.6/MAPEAMENTO_LINGU/303/215STICO_PROFUNDO.md +0 -161
- package/pro/squads/mmos-squad/minds/pedro_valerio/sources/artifacts_v1.6/META_AXIOMAS_DE_PEDRO_VAL/303/211RIO.md +0 -256
- package/pro/squads/mmos-squad/minds/pedro_valerio/sources/artifacts_v1.6/SISTEMA_IMUNOL/303/223GICO_COGNITIVO_PEDRO_VAL/303/211RIO_LOPEZ.md +0 -586
- package/pro/squads/mmos-squad/minds/pedro_valerio/sources/artifacts_v1.6/SISTEMA_IMUNOL/303/223GICO_COGNITIVO_V2_/342/200/224_CLONE_IA.md +0 -452
- package/pro/squads/mmos-squad/minds/pedro_valerio/sources/artifacts_v1.6/TABELA_COMPARATIVA_AN/303/201LISE_COMPLETA_DOS_CLONES_IA.md +0 -102
- package/pro/squads/mmos-squad/minds/pedro_valerio/sources/artifacts_v1.6/WHATSAPP_PADR/303/225ES_LINGU/303/215STICOS_PEDRO_VAL/303/211RIO_LOPEZ.md +0 -286
- package/pro/squads/mmos-squad/minds/pedro_valerio/sources/artifacts_v1.6/heur/303/255sticas_de_decis/303/243o_e_algoritmos_mentais_/303/272nicos.md +0 -268
- package/pro/squads/mmos-squad/minds/ray_kurzweil/sources/books/PROTOCOLO_COMPLETO_DE_INTERROGA/303/207/303/203O_-_NAVAL_RAVIKANT.md +0 -3624
- package/pro/squads/mmos-squad/minds/steve_jobs/artifacts/FRAMEWORK_COMPLETO_DE_IMPLEMENTA/303/207/303/203O_JOBS.md +0 -488
- package/pro/squads/mmos-squad/minds/steve_jobs/artifacts/Framework_Cabe/303/247a_Steve.md +0 -257
- package/pro/squads/mmos-squad/minds/steve_jobs/artifacts/Relat/303/263rio_Abrangente_sobre_Steve_Jobs_para_Cria/303/247/303/243o_de_Clone_de_IA.md +0 -370
- package/pro/squads/mmos-squad/minds/steve_jobs/artifacts/Steve_Jobs_An/303/241lise_Psicol/303/263gica_Profunda_e_Valida/303/247/303/243o_Comportamental.md +0 -65
- package/pro/squads/squad-creator-pro/.state.json +0 -32
- package/pro/squads/squad-creator-pro/CHANGELOG.md +0 -275
- package/pro/squads/squad-creator-pro/HEADLINE.md +0 -3
- package/pro/squads/squad-creator-pro/README.md +0 -1059
- package/pro/squads/squad-creator-pro/agents/oalanicolas.md +0 -438
- package/pro/squads/squad-creator-pro/agents/pedro-valerio.md +0 -449
- package/pro/squads/squad-creator-pro/agents/squad-chief.md +0 -1651
- package/pro/squads/squad-creator-pro/agents/thiago_finch.md +0 -976
- package/pro/squads/squad-creator-pro/assessments/axioma-assessment-wf-create-squad.yaml +0 -325
- package/pro/squads/squad-creator-pro/checklists/.gitkeep +0 -1
- package/pro/squads/squad-creator-pro/checklists/agent-depth-checklist.md +0 -244
- package/pro/squads/squad-creator-pro/checklists/agent-quality-gate.md +0 -434
- package/pro/squads/squad-creator-pro/checklists/create-agent-checklist.md +0 -184
- package/pro/squads/squad-creator-pro/checklists/create-squad-checklist.md +0 -219
- package/pro/squads/squad-creator-pro/checklists/create-workflow-checklist.md +0 -224
- package/pro/squads/squad-creator-pro/checklists/deep-research-quality.md +0 -506
- package/pro/squads/squad-creator-pro/checklists/executor-matrix-checklist.md +0 -260
- package/pro/squads/squad-creator-pro/checklists/mental-model-integration-checklist.md +0 -95
- package/pro/squads/squad-creator-pro/checklists/mind-validation.md +0 -374
- package/pro/squads/squad-creator-pro/checklists/quality-gate-checklist.md +0 -385
- package/pro/squads/squad-creator-pro/checklists/smoke-test-agent.md +0 -313
- package/pro/squads/squad-creator-pro/checklists/sop-validation.md +0 -250
- package/pro/squads/squad-creator-pro/checklists/squad-checklist.md +0 -1014
- package/pro/squads/squad-creator-pro/checklists/squad-overview-checklist.md +0 -393
- package/pro/squads/squad-creator-pro/checklists/task-anatomy-checklist.md +0 -626
- package/pro/squads/squad-creator-pro/config/.gitkeep +0 -1
- package/pro/squads/squad-creator-pro/config/axioma-validator.yaml +0 -371
- package/pro/squads/squad-creator-pro/config/heuristics.yaml +0 -753
- package/pro/squads/squad-creator-pro/config/model-routing.yaml +0 -693
- package/pro/squads/squad-creator-pro/config/quality-gates.yaml +0 -415
- package/pro/squads/squad-creator-pro/config/scoring-rubric.yaml +0 -199
- package/pro/squads/squad-creator-pro/config/squad-config.yaml +0 -165
- package/pro/squads/squad-creator-pro/config/task-anatomy.yaml +0 -263
- package/pro/squads/squad-creator-pro/config/veto-conditions.yaml +0 -455
- package/pro/squads/squad-creator-pro/config.yaml +0 -35
- package/pro/squads/squad-creator-pro/data/.gitkeep +0 -1
- package/pro/squads/squad-creator-pro/data/an-anchor-words.yaml +0 -78
- package/pro/squads/squad-creator-pro/data/an-clone-anti-patterns.yaml +0 -148
- package/pro/squads/squad-creator-pro/data/an-clone-validation.yaml +0 -190
- package/pro/squads/squad-creator-pro/data/an-diagnostic-framework.yaml +0 -164
- package/pro/squads/squad-creator-pro/data/an-output-examples.yaml +0 -102
- package/pro/squads/squad-creator-pro/data/an-source-signals.yaml +0 -98
- package/pro/squads/squad-creator-pro/data/an-source-tiers.yaml +0 -119
- package/pro/squads/squad-creator-pro/data/best-practices.md +0 -986
- package/pro/squads/squad-creator-pro/data/core-heuristics.md +0 -510
- package/pro/squads/squad-creator-pro/data/decision-heuristics-framework.md +0 -620
- package/pro/squads/squad-creator-pro/data/executor-decision-tree.md +0 -774
- package/pro/squads/squad-creator-pro/data/executor-matrix-framework.md +0 -441
- package/pro/squads/squad-creator-pro/data/fusion-decision-points-analysis.md +0 -397
- package/pro/squads/squad-creator-pro/data/fusion-executor-analysis.md +0 -677
- package/pro/squads/squad-creator-pro/data/hybridops-patterns.md +0 -1351
- package/pro/squads/squad-creator-pro/data/internal-infrastructure-library.yaml +0 -99
- package/pro/squads/squad-creator-pro/data/mental-model-task-matrix.yaml +0 -692
- package/pro/squads/squad-creator-pro/data/pipeline-patterns.md +0 -352
- package/pro/squads/squad-creator-pro/data/pm-best-practices.md +0 -440
- package/pro/squads/squad-creator-pro/data/pv-anchor-words.yaml +0 -64
- package/pro/squads/squad-creator-pro/data/pv-authenticity-markers.yaml +0 -200
- package/pro/squads/squad-creator-pro/data/pv-meta-axiomas.yaml +0 -162
- package/pro/squads/squad-creator-pro/data/pv-output-examples.yaml +0 -342
- package/pro/squads/squad-creator-pro/data/pv-workflow-validation.yaml +0 -318
- package/pro/squads/squad-creator-pro/data/quality-dimensions-framework.md +0 -405
- package/pro/squads/squad-creator-pro/data/squad-analytics-guide.md +0 -252
- package/pro/squads/squad-creator-pro/data/squad-kb.md +0 -987
- package/pro/squads/squad-creator-pro/data/squad-registry.yaml +0 -841
- package/pro/squads/squad-creator-pro/data/squad-type-definitions.yaml +0 -578
- package/pro/squads/squad-creator-pro/data/tier-system-framework.md +0 -475
- package/pro/squads/squad-creator-pro/data/tool-evaluation-framework.md +0 -847
- package/pro/squads/squad-creator-pro/data/tool-registry.yaml +0 -700
- package/pro/squads/squad-creator-pro/docs/ADR-001-model-tier-qualification.md +0 -344
- package/pro/squads/squad-creator-pro/docs/AGENT-COLLABORATION.md +0 -609
- package/pro/squads/squad-creator-pro/docs/ARCHITECTURE-DIAGRAMS.md +0 -1466
- package/pro/squads/squad-creator-pro/docs/COMMANDS.md +0 -544
- package/pro/squads/squad-creator-pro/docs/CONCEPTS.md +0 -584
- package/pro/squads/squad-creator-pro/docs/FAQ.md +0 -731
- package/pro/squads/squad-creator-pro/docs/HITL-FLOW.md +0 -255
- package/pro/squads/squad-creator-pro/docs/MIGRATION-PLAN-AGENT-CONFORMITY.md +0 -861
- package/pro/squads/squad-creator-pro/docs/MIGRATION-ROADMAP-HYBRIDOPS.md +0 -1161
- package/pro/squads/squad-creator-pro/docs/MODEL-TIER-QUALIFICATION.md +0 -337
- package/pro/squads/squad-creator-pro/docs/PATTERN-LIBRARY.md +0 -333
- package/pro/squads/squad-creator-pro/docs/PEDRO-VALERIO-ARCHITECTURE.md +0 -456
- package/pro/squads/squad-creator-pro/docs/POR-ONDE-COMECAR.md +0 -210
- package/pro/squads/squad-creator-pro/docs/QUICK-START.md +0 -205
- package/pro/squads/squad-creator-pro/docs/RFC-001-deterministic-refactoring.md +0 -463
- package/pro/squads/squad-creator-pro/docs/TOOL-RECOMMENDATIONS.md +0 -379
- package/pro/squads/squad-creator-pro/docs/TROUBLESHOOTING.md +0 -412
- package/pro/squads/squad-creator-pro/docs/TUTORIAL-COMPLETO.md +0 -458
- package/pro/squads/squad-creator-pro/docs/optimize-v4-proposal.md +0 -354
- package/pro/squads/squad-creator-pro/docs/session-report-2026-02-01.md +0 -411
- package/pro/squads/squad-creator-pro/docs/sop-extraction-process.md +0 -674
- package/pro/squads/squad-creator-pro/docs/squad-chief-agent-flow.md +0 -981
- package/pro/squads/squad-creator-pro/docs/squad-creation-pipeline-workflow.md +0 -937
- package/pro/squads/squad-creator-pro/docs/task-optimization-framework.md +0 -229
- package/pro/squads/squad-creator-pro/docs/validation-report-2026-02-01.md +0 -439
- package/pro/squads/squad-creator-pro/minds/oalanicolas/artifacts/HANDOFF_PROTOCOL.md +0 -269
- package/pro/squads/squad-creator-pro/minds/oalanicolas/artifacts/SOURCE_CLASSIFICATION.md +0 -258
- package/pro/squads/squad-creator-pro/minds/oalanicolas/heuristics/AN_KE_001.md +0 -166
- package/pro/squads/squad-creator-pro/minds/oalanicolas/heuristics/AN_KE_002.md +0 -206
- package/pro/squads/squad-creator-pro/minds/oalanicolas/heuristics/AN_KE_003.md +0 -239
- package/pro/squads/squad-creator-pro/minds/oalanicolas/heuristics/AN_KE_004.md +0 -153
- package/pro/squads/squad-creator-pro/minds/oalanicolas/heuristics/AN_KE_005.md +0 -161
- package/pro/squads/squad-creator-pro/minds/oalanicolas/heuristics/AN_KE_006.md +0 -166
- package/pro/squads/squad-creator-pro/minds/oalanicolas/heuristics/AN_KE_007.md +0 -190
- package/pro/squads/squad-creator-pro/minds/oalanicolas/heuristics/AN_KE_008.md +0 -191
- package/pro/squads/squad-creator-pro/minds/oalanicolas/heuristics/AN_KE_009.md +0 -234
- package/pro/squads/squad-creator-pro/minds/oalanicolas/heuristics/AN_KE_010.md +0 -240
- package/pro/squads/squad-creator-pro/minds/pedro_valerio/artifacts/Assinatura_Linguistica.md +0 -355
- package/pro/squads/squad-creator-pro/minds/pedro_valerio/artifacts/META_AXIOMAS.md +0 -277
- package/pro/squads/squad-creator-pro/minds/pedro_valerio/heuristics/PV_BS_001.md +0 -144
- package/pro/squads/squad-creator-pro/minds/pedro_valerio/heuristics/PV_PA_001.md +0 -174
- package/pro/squads/squad-creator-pro/minds/pedro_valerio/heuristics/PV_PM_001.md +0 -191
- package/pro/squads/squad-creator-pro/package.json +0 -26
- package/pro/squads/squad-creator-pro/protocols/ai-first-governance.md +0 -63
- package/pro/squads/squad-creator-pro/scripts/README.md +0 -246
- package/pro/squads/squad-creator-pro/scripts/__pycache__/dependency_check.cpython-314.pyc +0 -0
- package/pro/squads/squad-creator-pro/scripts/__pycache__/inventory.cpython-314.pyc +0 -0
- package/pro/squads/squad-creator-pro/scripts/__pycache__/naming_validator.cpython-314.pyc +0 -0
- package/pro/squads/squad-creator-pro/scripts/__pycache__/quality_gate.cpython-314.pyc +0 -0
- package/pro/squads/squad-creator-pro/scripts/__pycache__/scoring.cpython-314.pyc +0 -0
- package/pro/squads/squad-creator-pro/scripts/__pycache__/yaml_validator.cpython-314.pyc +0 -0
- package/pro/squads/squad-creator-pro/scripts/assess-sources.sh +0 -443
- package/pro/squads/squad-creator-pro/scripts/checklist_validator.py +0 -451
- package/pro/squads/squad-creator-pro/scripts/clone-review.sh +0 -394
- package/pro/squads/squad-creator-pro/scripts/coherence-validator.py +0 -836
- package/pro/squads/squad-creator-pro/scripts/create-agent-preflight.py +0 -243
- package/pro/squads/squad-creator-pro/scripts/cross-provider/compare-results.js +0 -281
- package/pro/squads/squad-creator-pro/scripts/cross-provider/cross-provider-runner.js +0 -462
- package/pro/squads/squad-creator-pro/scripts/dependency_check.py +0 -333
- package/pro/squads/squad-creator-pro/scripts/fidelity-score.sh +0 -519
- package/pro/squads/squad-creator-pro/scripts/generate-squad-greeting.js +0 -426
- package/pro/squads/squad-creator-pro/scripts/generate-squad-guide.js +0 -558
- package/pro/squads/squad-creator-pro/scripts/inventory.py +0 -269
- package/pro/squads/squad-creator-pro/scripts/lib/config-loader.js +0 -151
- package/pro/squads/squad-creator-pro/scripts/model-tier-validator.cjs +0 -369
- package/pro/squads/squad-creator-pro/scripts/model-usage-logger.cjs +0 -245
- package/pro/squads/squad-creator-pro/scripts/modernization-score.sh +0 -308
- package/pro/squads/squad-creator-pro/scripts/naming_validator.py +0 -299
- package/pro/squads/squad-creator-pro/scripts/on-specialist-complete.py +0 -98
- package/pro/squads/squad-creator-pro/scripts/quality_gate.py +0 -413
- package/pro/squads/squad-creator-pro/scripts/refresh-registry.py +0 -270
- package/pro/squads/squad-creator-pro/scripts/save-session-metrics.py +0 -136
- package/pro/squads/squad-creator-pro/scripts/scaffold-squad.cjs +0 -281
- package/pro/squads/squad-creator-pro/scripts/scoring.py +0 -395
- package/pro/squads/squad-creator-pro/scripts/security_scanner.py +0 -378
- package/pro/squads/squad-creator-pro/scripts/squad-analytics.py +0 -585
- package/pro/squads/squad-creator-pro/scripts/squad-context-loader.cjs +0 -205
- package/pro/squads/squad-creator-pro/scripts/squad-state-manager.cjs +0 -451
- package/pro/squads/squad-creator-pro/scripts/squad-workflow-runner.cjs +0 -471
- package/pro/squads/squad-creator-pro/scripts/squad_utils.py +0 -261
- package/pro/squads/squad-creator-pro/scripts/sync-ide-command.py +0 -590
- package/pro/squads/squad-creator-pro/scripts/tests/__init__.py +0 -1
- package/pro/squads/squad-creator-pro/scripts/tests/conftest.py +0 -309
- package/pro/squads/squad-creator-pro/scripts/tests/run_bash_tests.sh +0 -29
- package/pro/squads/squad-creator-pro/scripts/tests/test_assess_sources.sh +0 -216
- package/pro/squads/squad-creator-pro/scripts/tests/test_checklist_validator.py +0 -396
- package/pro/squads/squad-creator-pro/scripts/tests/test_clone_review.sh +0 -239
- package/pro/squads/squad-creator-pro/scripts/tests/test_coherence_validator.py +0 -212
- package/pro/squads/squad-creator-pro/scripts/tests/test_dependency_check.py +0 -361
- package/pro/squads/squad-creator-pro/scripts/tests/test_fidelity_score.sh +0 -298
- package/pro/squads/squad-creator-pro/scripts/tests/test_inventory.py +0 -307
- package/pro/squads/squad-creator-pro/scripts/tests/test_modernization_score.sh +0 -211
- package/pro/squads/squad-creator-pro/scripts/tests/test_naming_validator.py +0 -373
- package/pro/squads/squad-creator-pro/scripts/tests/test_quality_gate.py +0 -280
- package/pro/squads/squad-creator-pro/scripts/tests/test_refresh_registry.py +0 -338
- package/pro/squads/squad-creator-pro/scripts/tests/test_scoring.py +0 -366
- package/pro/squads/squad-creator-pro/scripts/tests/test_security_scanner.py +0 -354
- package/pro/squads/squad-creator-pro/scripts/tests/test_squad_analytics.py +0 -450
- package/pro/squads/squad-creator-pro/scripts/tests/test_validate_clone.sh +0 -252
- package/pro/squads/squad-creator-pro/scripts/tests/test_yaml_validator.py +0 -412
- package/pro/squads/squad-creator-pro/scripts/validate-agent-output.py +0 -115
- package/pro/squads/squad-creator-pro/scripts/validate-all.sh +0 -49
- package/pro/squads/squad-creator-pro/scripts/validate-squad-structure.py +0 -535
- package/pro/squads/squad-creator-pro/scripts/validate-squad.sh +0 -944
- package/pro/squads/squad-creator-pro/scripts/yaml_validator.py +0 -528
- package/pro/squads/squad-creator-pro/skills/squad.md +0 -301
- package/pro/squads/squad-creator-pro/squad.yaml +0 -36
- package/pro/squads/squad-creator-pro/tasks/CHANGELOG.md +0 -80
- package/pro/squads/squad-creator-pro/tasks/an-assess-sources.md +0 -78
- package/pro/squads/squad-creator-pro/tasks/an-clone-review.md +0 -104
- package/pro/squads/squad-creator-pro/tasks/an-compare-outputs.md +0 -354
- package/pro/squads/squad-creator-pro/tasks/an-design-clone.md +0 -79
- package/pro/squads/squad-creator-pro/tasks/an-diagnose-clone.md +0 -87
- package/pro/squads/squad-creator-pro/tasks/an-extract-dna.md +0 -90
- package/pro/squads/squad-creator-pro/tasks/an-extract-framework.md +0 -100
- package/pro/squads/squad-creator-pro/tasks/an-fidelity-score.md +0 -108
- package/pro/squads/squad-creator-pro/tasks/an-validate-clone.md +0 -96
- package/pro/squads/squad-creator-pro/tasks/auto-acquire-sources.md +0 -349
- package/pro/squads/squad-creator-pro/tasks/collect-sources.md +0 -533
- package/pro/squads/squad-creator-pro/tasks/create-agent.md +0 -768
- package/pro/squads/squad-creator-pro/tasks/create-documentation.md +0 -258
- package/pro/squads/squad-creator-pro/tasks/create-pipeline.md +0 -296
- package/pro/squads/squad-creator-pro/tasks/create-squad.md +0 -933
- package/pro/squads/squad-creator-pro/tasks/create-task.md +0 -1148
- package/pro/squads/squad-creator-pro/tasks/create-template.md +0 -474
- package/pro/squads/squad-creator-pro/tasks/create-workflow.md +0 -720
- package/pro/squads/squad-creator-pro/tasks/deconstruct.md +0 -167
- package/pro/squads/squad-creator-pro/tasks/deep-research-pre-agent.md +0 -566
- package/pro/squads/squad-creator-pro/tasks/detect-squad-context.md +0 -81
- package/pro/squads/squad-creator-pro/tasks/discover-tools.md +0 -944
- package/pro/squads/squad-creator-pro/tasks/extract-implicit.md +0 -352
- package/pro/squads/squad-creator-pro/tasks/extract-knowledge.md +0 -577
- package/pro/squads/squad-creator-pro/tasks/extract-sop.md +0 -320
- package/pro/squads/squad-creator-pro/tasks/extract-thinking-dna.md +0 -653
- package/pro/squads/squad-creator-pro/tasks/extract-voice-dna.md +0 -619
- package/pro/squads/squad-creator-pro/tasks/find-0.8.md +0 -222
- package/pro/squads/squad-creator-pro/tasks/install-commands.md +0 -373
- package/pro/squads/squad-creator-pro/tasks/lookup-model.md +0 -78
- package/pro/squads/squad-creator-pro/tasks/migrate-workflows-to-yaml.md +0 -259
- package/pro/squads/squad-creator-pro/tasks/next-squad.md +0 -487
- package/pro/squads/squad-creator-pro/tasks/optimize-workflow.md +0 -851
- package/pro/squads/squad-creator-pro/tasks/optimize.md +0 -1082
- package/pro/squads/squad-creator-pro/tasks/parallel-discovery.md +0 -58
- package/pro/squads/squad-creator-pro/tasks/pv-audit.md +0 -244
- package/pro/squads/squad-creator-pro/tasks/pv-axioma-assessment-wf-clone-mind.yaml +0 -256
- package/pro/squads/squad-creator-pro/tasks/pv-axioma-assessment.md +0 -83
- package/pro/squads/squad-creator-pro/tasks/pv-modernization-score.md +0 -83
- package/pro/squads/squad-creator-pro/tasks/qa-after-creation.md +0 -475
- package/pro/squads/squad-creator-pro/tasks/qualify-task.md +0 -265
- package/pro/squads/squad-creator-pro/tasks/reexecute-squad-phase.md +0 -64
- package/pro/squads/squad-creator-pro/tasks/refresh-registry.md +0 -403
- package/pro/squads/squad-creator-pro/tasks/smoke-test-model-routing.md +0 -167
- package/pro/squads/squad-creator-pro/tasks/squad-analytics.md +0 -265
- package/pro/squads/squad-creator-pro/tasks/squad-fusion.md +0 -817
- package/pro/squads/squad-creator-pro/tasks/squad-overview.md +0 -683
- package/pro/squads/squad-creator-pro/tasks/sync-ide-command.md +0 -392
- package/pro/squads/squad-creator-pro/tasks/update-mind.md +0 -428
- package/pro/squads/squad-creator-pro/tasks/upgrade-squad.md +0 -919
- package/pro/squads/squad-creator-pro/tasks/validate-extraction.md +0 -209
- package/pro/squads/squad-creator-pro/tasks/validate-final-artifacts.md +0 -80
- package/pro/squads/squad-creator-pro/tasks/validate-squad.md +0 -1385
- package/pro/squads/squad-creator-pro/templates/.gitkeep +0 -1
- package/pro/squads/squad-creator-pro/templates/agent-flow-doc-tmpl.md +0 -512
- package/pro/squads/squad-creator-pro/templates/agent-tmpl.md +0 -697
- package/pro/squads/squad-creator-pro/templates/config-tmpl.yaml +0 -352
- package/pro/squads/squad-creator-pro/templates/handoff-insumos-tmpl.yaml +0 -112
- package/pro/squads/squad-creator-pro/templates/orchestrator-tmpl.md +0 -74
- package/pro/squads/squad-creator-pro/templates/pipeline-progress-tmpl.py +0 -373
- package/pro/squads/squad-creator-pro/templates/pipeline-runner-tmpl.py +0 -444
- package/pro/squads/squad-creator-pro/templates/pipeline-state-tmpl.py +0 -413
- package/pro/squads/squad-creator-pro/templates/pop-extractor-prompt.md +0 -549
- package/pro/squads/squad-creator-pro/templates/quality-dashboard-tmpl.md +0 -286
- package/pro/squads/squad-creator-pro/templates/quality-gate-tmpl.yaml +0 -589
- package/pro/squads/squad-creator-pro/templates/readme-tmpl.md +0 -231
- package/pro/squads/squad-creator-pro/templates/research-output-tmpl.md +0 -625
- package/pro/squads/squad-creator-pro/templates/research-prompt-tmpl.md +0 -479
- package/pro/squads/squad-creator-pro/templates/squad-prd-tmpl.md +0 -464
- package/pro/squads/squad-creator-pro/templates/squad-readme-tmpl.md +0 -170
- package/pro/squads/squad-creator-pro/templates/story-create-agent-tmpl.md +0 -284
- package/pro/squads/squad-creator-pro/templates/task-tmpl.md +0 -461
- package/pro/squads/squad-creator-pro/templates/template-tmpl.yaml +0 -227
- package/pro/squads/squad-creator-pro/templates/workflow-doc-tmpl.md +0 -860
- package/pro/squads/squad-creator-pro/templates/workflow-tmpl.yaml +0 -394
- package/pro/squads/squad-creator-pro/test-cases/BATCH-PROGRESS.md +0 -268
- package/pro/squads/squad-creator-pro/test-cases/QUALIFICATION-DASHBOARD.yaml +0 -13
- package/pro/squads/squad-creator-pro/test-cases/_template.yaml +0 -147
- package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/ASSESSMENT-SUMMARY.md +0 -275
- package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/ASSESSMENT_SUMMARY.md +0 -140
- package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/CHECKPOINT_MATRIX.md +0 -202
- package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/EXECUTION-REPORT.md +0 -413
- package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/EXECUTION_NOTES.md +0 -358
- package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/README-v2.2.2.md +0 -299
- package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/README.md +0 -320
- package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/TEST-REPORT-v2.1.md +0 -351
- package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/VERIFICATION-CHECKLIST.txt +0 -247
- package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/formal-qualification-report.yaml +0 -389
- package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/haiku-output.yaml +0 -366
- package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/haiku-v2.1-output.yaml +0 -452
- package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/haiku-v2.2.1-output.yaml +0 -281
- package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/haiku-v2.2.2-output.yaml +0 -332
- package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/opus-baseline.yaml +0 -517
- package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/qualification-report.yaml +0 -213
- package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/test-case.yaml +0 -69
- package/pro/squads/squad-creator-pro/test-cases/an-clone-review/haiku-round-1.yaml +0 -213
- package/pro/squads/squad-creator-pro/test-cases/an-clone-review/opus-baseline.yaml +0 -566
- package/pro/squads/squad-creator-pro/test-cases/an-clone-review/qualification-report.yaml +0 -82
- package/pro/squads/squad-creator-pro/test-cases/an-design-clone/test-case.yaml +0 -102
- package/pro/squads/squad-creator-pro/test-cases/an-extract-dna/test-case.yaml +0 -105
- package/pro/squads/squad-creator-pro/test-cases/an-fidelity-score/haiku-round-1.yaml +0 -262
- package/pro/squads/squad-creator-pro/test-cases/an-fidelity-score/opus-baseline.yaml +0 -266
- package/pro/squads/squad-creator-pro/test-cases/an-fidelity-score/qualification-report.yaml +0 -94
- package/pro/squads/squad-creator-pro/test-cases/an-validate-clone/haiku-round-1.yaml +0 -282
- package/pro/squads/squad-creator-pro/test-cases/an-validate-clone/opus-baseline.yaml +0 -470
- package/pro/squads/squad-creator-pro/test-cases/an-validate-clone/qualification-report.yaml +0 -106
- package/pro/squads/squad-creator-pro/test-cases/collect-sources/test-case.yaml +0 -105
- package/pro/squads/squad-creator-pro/test-cases/create-task/test-case.yaml +0 -104
- package/pro/squads/squad-creator-pro/test-cases/cross-provider/DASHBOARD.yaml +0 -11
- package/pro/squads/squad-creator-pro/test-cases/pv-audit/test-case.yaml +0 -106
- package/pro/squads/squad-creator-pro/test-cases/pv-axioma-assessment/haiku-output.yaml +0 -209
- package/pro/squads/squad-creator-pro/test-cases/pv-axioma-assessment/opus-baseline.yaml +0 -96
- package/pro/squads/squad-creator-pro/test-cases/pv-axioma-assessment/sonnet-output.yaml +0 -30
- package/pro/squads/squad-creator-pro/test-cases/pv-axioma-assessment/test-case.yaml +0 -129
- package/pro/squads/squad-creator-pro/test-cases/pv-modernization-score/comparison-round-1.yaml +0 -242
- package/pro/squads/squad-creator-pro/test-cases/pv-modernization-score/haiku-round-1.yaml +0 -393
- package/pro/squads/squad-creator-pro/test-cases/pv-modernization-score/opus-baseline.yaml +0 -488
- package/pro/squads/squad-creator-pro/test-cases/pv-modernization-score/qualification-report.yaml +0 -74
- package/pro/squads/squad-creator-pro/test-cases/qa-after-creation/haiku-round-1.yaml +0 -292
- package/pro/squads/squad-creator-pro/test-cases/qa-after-creation/opus-baseline.yaml +0 -603
- package/pro/squads/squad-creator-pro/test-cases/qa-after-creation/qualification-report.yaml +0 -97
- package/pro/squads/squad-creator-pro/test-cases/smoke-test-model-routing/test-case.yaml +0 -100
- package/pro/squads/squad-creator-pro/test-cases/upgrade-squad/test-case.yaml +0 -106
- package/pro/squads/squad-creator-pro/test-cases/validate-squad/comparison-round-1.yaml +0 -223
- package/pro/squads/squad-creator-pro/test-cases/validate-squad/haiku-round-1-MINE.yaml +0 -36
- package/pro/squads/squad-creator-pro/test-cases/validate-squad/haiku-round-1.yaml +0 -193
- package/pro/squads/squad-creator-pro/test-cases/validate-squad/haiku-round-2.yaml +0 -303
- package/pro/squads/squad-creator-pro/test-cases/validate-squad/haiku-round-3-v4-task.yaml +0 -149
- package/pro/squads/squad-creator-pro/test-cases/validate-squad/opus-baseline.yaml +0 -529
- package/pro/squads/squad-creator-pro/test-cases/validate-squad/opus-round-3-v4-task.yaml +0 -132
- package/pro/squads/squad-creator-pro/test-cases/validate-squad/qualification-report.yaml +0 -104
- package/pro/squads/squad-creator-pro/test-cases/wf-clone-mind/haiku-output-v2-calibrated.yaml +0 -200
- package/pro/squads/squad-creator-pro/test-cases/wf-clone-mind/haiku-output.yaml +0 -183
- package/pro/squads/squad-creator-pro/test-cases/wf-clone-mind/opus-baseline.yaml +0 -112
- package/pro/squads/squad-creator-pro/utils/.gitkeep +0 -1
- package/pro/squads/squad-creator-pro/workflows/.gitkeep +0 -1
- package/pro/squads/squad-creator-pro/workflows/create-squad.yaml +0 -348
- package/pro/squads/squad-creator-pro/workflows/modules/module-discovery.yaml +0 -16
- package/pro/squads/squad-creator-pro/workflows/modules/module-integration.yaml +0 -16
- package/pro/squads/squad-creator-pro/workflows/modules/module-quality-gates.yaml +0 -15
- package/pro/squads/squad-creator-pro/workflows/validate-squad.yaml +0 -582
- package/pro/squads/squad-creator-pro/workflows/wf-auto-acquire-sources.yaml +0 -518
- package/pro/squads/squad-creator-pro/workflows/wf-brownfield-upgrade-squad.yaml +0 -46
- package/pro/squads/squad-creator-pro/workflows/wf-clone-mind.yaml +0 -521
- package/pro/squads/squad-creator-pro/workflows/wf-context-aware-create-squad.yaml +0 -47
- package/pro/squads/squad-creator-pro/workflows/wf-create-squad.yaml +0 -1619
- package/pro/squads/squad-creator-pro/workflows/wf-cross-provider-qualification.yaml +0 -711
- package/pro/squads/squad-creator-pro/workflows/wf-discover-tools.yaml +0 -1439
- package/pro/squads/squad-creator-pro/workflows/wf-extraction-pipeline.yaml +0 -486
- package/pro/squads/squad-creator-pro/workflows/wf-mind-research-loop.yaml +0 -668
- package/pro/squads/squad-creator-pro/workflows/wf-model-tier-qualification.yaml +0 -800
- package/pro/squads/squad-creator-pro/workflows/wf-optimize-squad.yaml +0 -684
- package/pro/squads/squad-creator-pro/workflows/wf-research-then-create-agent.yaml +0 -921
- package/pro/squads/squad-creator-pro/workflows/wf-squad-fusion.yaml +0 -1684
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env python3
|
|
2
|
-
"""
|
|
3
|
-
Hook: SubagentStop
|
|
4
|
-
Triggered when a specialist subagent completes.
|
|
5
|
-
|
|
6
|
-
Actions:
|
|
7
|
-
1. Check for <promise>COMPLETE</promise> signal
|
|
8
|
-
2. Extract learnings from output
|
|
9
|
-
3. Update .state.json with results
|
|
10
|
-
4. Append to orchestrator's MEMORY.md
|
|
11
|
-
"""
|
|
12
|
-
|
|
13
|
-
import json
|
|
14
|
-
import sys
|
|
15
|
-
from datetime import datetime
|
|
16
|
-
from pathlib import Path
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
STATE_FILE = Path("squads/squad-creator-pro/.state.json")
|
|
20
|
-
MEMORY_FILE = Path(".claude/agent-memory/squad/MEMORY.md")
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
def load_state() -> dict:
|
|
24
|
-
"""Load current workflow state."""
|
|
25
|
-
if STATE_FILE.exists():
|
|
26
|
-
return json.loads(STATE_FILE.read_text())
|
|
27
|
-
return {}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
def save_state(state: dict):
|
|
31
|
-
"""Save workflow state."""
|
|
32
|
-
STATE_FILE.parent.mkdir(parents=True, exist_ok=True)
|
|
33
|
-
STATE_FILE.write_text(json.dumps(state, indent=2))
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
def append_to_memory(entry: str):
|
|
37
|
-
"""Append entry to orchestrator's memory."""
|
|
38
|
-
if MEMORY_FILE.exists():
|
|
39
|
-
content = MEMORY_FILE.read_text()
|
|
40
|
-
|
|
41
|
-
# Find "Notas Recentes" section and append
|
|
42
|
-
if "## Notas Recentes" in content:
|
|
43
|
-
parts = content.split("## Notas Recentes")
|
|
44
|
-
new_content = parts[0] + "## Notas Recentes\n" + entry + "\n" + parts[1].lstrip()
|
|
45
|
-
MEMORY_FILE.write_text(new_content)
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
def main():
|
|
49
|
-
try:
|
|
50
|
-
# Read input from stdin
|
|
51
|
-
input_data = json.loads(sys.stdin.read())
|
|
52
|
-
|
|
53
|
-
agent_name = input_data.get('agent_name', 'unknown')
|
|
54
|
-
output = input_data.get('output', '')
|
|
55
|
-
|
|
56
|
-
# Check for completion signal
|
|
57
|
-
completed = '<promise>COMPLETE</promise>' in output
|
|
58
|
-
|
|
59
|
-
# Load current state
|
|
60
|
-
state = load_state()
|
|
61
|
-
|
|
62
|
-
# Update state with subagent result
|
|
63
|
-
if 'subagent_results' not in state:
|
|
64
|
-
state['subagent_results'] = {}
|
|
65
|
-
|
|
66
|
-
if agent_name not in state['subagent_results']:
|
|
67
|
-
state['subagent_results'][agent_name] = {}
|
|
68
|
-
|
|
69
|
-
timestamp = datetime.now().isoformat()
|
|
70
|
-
state['subagent_results'][agent_name][timestamp] = {
|
|
71
|
-
"completed": completed,
|
|
72
|
-
"output_length": len(output)
|
|
73
|
-
}
|
|
74
|
-
state['last_updated'] = timestamp
|
|
75
|
-
|
|
76
|
-
# Save state
|
|
77
|
-
save_state(state)
|
|
78
|
-
|
|
79
|
-
# Append to memory
|
|
80
|
-
status = "✅" if completed else "❌"
|
|
81
|
-
append_to_memory(f"- [{timestamp[:10]}] {agent_name}: {status} (output: {len(output)} chars)")
|
|
82
|
-
|
|
83
|
-
# Always allow (logging only)
|
|
84
|
-
print(json.dumps({
|
|
85
|
-
"decision": "allow",
|
|
86
|
-
"additionalContext": f"Subagent {agent_name} {'completed' if completed else 'did not complete'}"
|
|
87
|
-
}))
|
|
88
|
-
|
|
89
|
-
except Exception as e:
|
|
90
|
-
# On error, allow (fail open)
|
|
91
|
-
print(json.dumps({
|
|
92
|
-
"decision": "allow",
|
|
93
|
-
"additionalContext": f"Hook error (allowing): {str(e)}"
|
|
94
|
-
}))
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
if __name__ == "__main__":
|
|
98
|
-
main()
|
|
@@ -1,413 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env python3
|
|
2
|
-
"""
|
|
3
|
-
Script: quality_gate.py
|
|
4
|
-
Purpose: Check quantitative thresholds for squad quality
|
|
5
|
-
Operations: 15+ deterministic checks
|
|
6
|
-
|
|
7
|
-
Thresholds:
|
|
8
|
-
- Agents: min 300 lines for complex agents
|
|
9
|
-
- Tasks: min 100 lines
|
|
10
|
-
- voice_dna.vocabulary.always_use: min 5 items
|
|
11
|
-
- output_examples: min 3 items
|
|
12
|
-
- objection_algorithms: min 3 items
|
|
13
|
-
|
|
14
|
-
Usage:
|
|
15
|
-
python scripts/quality_gate.py squads/{squad-name}/
|
|
16
|
-
python scripts/quality_gate.py squads/{squad-name}/ --output json
|
|
17
|
-
python scripts/quality_gate.py squads/{squad-name}/ --strict
|
|
18
|
-
"""
|
|
19
|
-
|
|
20
|
-
import argparse
|
|
21
|
-
import json
|
|
22
|
-
import os
|
|
23
|
-
import sys
|
|
24
|
-
from pathlib import Path
|
|
25
|
-
from typing import Dict, List, Any
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
# Quality thresholds
|
|
29
|
-
THRESHOLDS = {
|
|
30
|
-
"agent": {
|
|
31
|
-
"min_lines": 300,
|
|
32
|
-
"min_vocabulary_always": 5,
|
|
33
|
-
"min_vocabulary_never": 3,
|
|
34
|
-
"min_output_examples": 3,
|
|
35
|
-
"min_objection_algorithms": 3,
|
|
36
|
-
"min_anti_patterns_never": 5,
|
|
37
|
-
"min_anti_patterns_always": 3,
|
|
38
|
-
},
|
|
39
|
-
"task": {
|
|
40
|
-
"min_lines": 100,
|
|
41
|
-
"min_steps": 3,
|
|
42
|
-
},
|
|
43
|
-
"squad": {
|
|
44
|
-
"min_agents": 1,
|
|
45
|
-
"min_tasks": 1,
|
|
46
|
-
"required_files": ["config.yaml", "README.md"],
|
|
47
|
-
"recommended_files": ["CHANGELOG.md"],
|
|
48
|
-
"required_dirs": ["agents", "tasks"],
|
|
49
|
-
"recommended_dirs": ["templates", "checklists", "data"],
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
def count_lines(file_path: str) -> int:
|
|
55
|
-
"""Count lines in a file."""
|
|
56
|
-
try:
|
|
57
|
-
with open(file_path, 'r', encoding='utf-8') as f:
|
|
58
|
-
return sum(1 for _ in f)
|
|
59
|
-
except Exception:
|
|
60
|
-
return 0
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
def count_yaml_items(file_path: str, key_path: str) -> int:
|
|
64
|
-
"""Count items in a YAML array at given path."""
|
|
65
|
-
try:
|
|
66
|
-
import yaml
|
|
67
|
-
with open(file_path, 'r', encoding='utf-8') as f:
|
|
68
|
-
content = yaml.safe_load(f.read())
|
|
69
|
-
|
|
70
|
-
if content is None:
|
|
71
|
-
return 0
|
|
72
|
-
|
|
73
|
-
# Navigate to key path
|
|
74
|
-
keys = key_path.split('.')
|
|
75
|
-
current = content
|
|
76
|
-
for key in keys:
|
|
77
|
-
if isinstance(current, dict) and key in current:
|
|
78
|
-
current = current[key]
|
|
79
|
-
else:
|
|
80
|
-
return 0
|
|
81
|
-
|
|
82
|
-
if isinstance(current, list):
|
|
83
|
-
return len(current)
|
|
84
|
-
return 0
|
|
85
|
-
except Exception:
|
|
86
|
-
return 0
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
def check_agent_quality(file_path: str) -> Dict[str, Any]:
|
|
90
|
-
"""Check quality metrics for an agent file."""
|
|
91
|
-
filename = os.path.basename(file_path)
|
|
92
|
-
result = {
|
|
93
|
-
"file": filename,
|
|
94
|
-
"type": "agent",
|
|
95
|
-
"metrics": {},
|
|
96
|
-
"issues": [],
|
|
97
|
-
"passed": True
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
# Line count
|
|
101
|
-
lines = count_lines(file_path)
|
|
102
|
-
result["metrics"]["lines"] = lines
|
|
103
|
-
if lines < THRESHOLDS["agent"]["min_lines"]:
|
|
104
|
-
result["issues"].append({
|
|
105
|
-
"code": "QG-AGT-LINES",
|
|
106
|
-
"severity": "warning",
|
|
107
|
-
"metric": "lines",
|
|
108
|
-
"actual": lines,
|
|
109
|
-
"threshold": THRESHOLDS["agent"]["min_lines"],
|
|
110
|
-
"message": f"Agent has {lines} lines (min: {THRESHOLDS['agent']['min_lines']})"
|
|
111
|
-
})
|
|
112
|
-
|
|
113
|
-
# Vocabulary counts (check markdown file for YAML content)
|
|
114
|
-
try:
|
|
115
|
-
import yaml
|
|
116
|
-
with open(file_path, 'r', encoding='utf-8') as f:
|
|
117
|
-
content = f.read()
|
|
118
|
-
|
|
119
|
-
# Try to parse YAML blocks in markdown
|
|
120
|
-
yaml_blocks = []
|
|
121
|
-
in_yaml = False
|
|
122
|
-
yaml_content = []
|
|
123
|
-
|
|
124
|
-
for line in content.split('\n'):
|
|
125
|
-
if line.strip() == '```yaml':
|
|
126
|
-
in_yaml = True
|
|
127
|
-
yaml_content = []
|
|
128
|
-
elif line.strip() == '```' and in_yaml:
|
|
129
|
-
in_yaml = False
|
|
130
|
-
if yaml_content:
|
|
131
|
-
yaml_blocks.append('\n'.join(yaml_content))
|
|
132
|
-
elif in_yaml:
|
|
133
|
-
yaml_content.append(line)
|
|
134
|
-
|
|
135
|
-
# Parse each YAML block
|
|
136
|
-
for block in yaml_blocks:
|
|
137
|
-
try:
|
|
138
|
-
data = yaml.safe_load(block)
|
|
139
|
-
if isinstance(data, dict):
|
|
140
|
-
# Check voice_dna
|
|
141
|
-
voice_dna = data.get('voice_dna', {})
|
|
142
|
-
if isinstance(voice_dna, dict):
|
|
143
|
-
vocab = voice_dna.get('vocabulary', {})
|
|
144
|
-
if isinstance(vocab, dict):
|
|
145
|
-
always = len(vocab.get('always_use', []))
|
|
146
|
-
never = len(vocab.get('never_use', []))
|
|
147
|
-
result["metrics"]["vocabulary_always"] = always
|
|
148
|
-
result["metrics"]["vocabulary_never"] = never
|
|
149
|
-
|
|
150
|
-
# Check output_examples
|
|
151
|
-
examples = data.get('output_examples', [])
|
|
152
|
-
if isinstance(examples, list):
|
|
153
|
-
result["metrics"]["output_examples"] = len(examples)
|
|
154
|
-
|
|
155
|
-
# Check objection_algorithms
|
|
156
|
-
objections = data.get('objection_algorithms', [])
|
|
157
|
-
if isinstance(objections, list):
|
|
158
|
-
result["metrics"]["objection_algorithms"] = len(objections)
|
|
159
|
-
|
|
160
|
-
# Check anti_patterns
|
|
161
|
-
anti = data.get('anti_patterns', {})
|
|
162
|
-
if isinstance(anti, dict):
|
|
163
|
-
result["metrics"]["anti_patterns_never"] = len(anti.get('never_do', []))
|
|
164
|
-
result["metrics"]["anti_patterns_always"] = len(anti.get('always_do', []))
|
|
165
|
-
|
|
166
|
-
except Exception:
|
|
167
|
-
continue
|
|
168
|
-
|
|
169
|
-
except Exception:
|
|
170
|
-
pass
|
|
171
|
-
|
|
172
|
-
return result
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
def check_task_quality(file_path: str) -> Dict[str, Any]:
|
|
176
|
-
"""Check quality metrics for a task file."""
|
|
177
|
-
filename = os.path.basename(file_path)
|
|
178
|
-
result = {
|
|
179
|
-
"file": filename,
|
|
180
|
-
"type": "task",
|
|
181
|
-
"metrics": {},
|
|
182
|
-
"issues": [],
|
|
183
|
-
"passed": True
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
# Line count
|
|
187
|
-
lines = count_lines(file_path)
|
|
188
|
-
result["metrics"]["lines"] = lines
|
|
189
|
-
if lines < THRESHOLDS["task"]["min_lines"]:
|
|
190
|
-
result["issues"].append({
|
|
191
|
-
"code": "QG-TSK-LINES",
|
|
192
|
-
"severity": "warning",
|
|
193
|
-
"metric": "lines",
|
|
194
|
-
"actual": lines,
|
|
195
|
-
"threshold": THRESHOLDS["task"]["min_lines"],
|
|
196
|
-
"message": f"Task has {lines} lines (min: {THRESHOLDS['task']['min_lines']})"
|
|
197
|
-
})
|
|
198
|
-
|
|
199
|
-
return result
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
def check_squad_quality(squad_path: str) -> Dict[str, Any]:
|
|
203
|
-
"""Check overall squad quality."""
|
|
204
|
-
squad_name = os.path.basename(squad_path.rstrip('/'))
|
|
205
|
-
result = {
|
|
206
|
-
"squad_name": squad_name,
|
|
207
|
-
"type": "squad",
|
|
208
|
-
"metrics": {},
|
|
209
|
-
"issues": [],
|
|
210
|
-
"passed": True
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
# Check required files
|
|
214
|
-
for file in THRESHOLDS["squad"]["required_files"]:
|
|
215
|
-
exists = os.path.exists(os.path.join(squad_path, file))
|
|
216
|
-
result["metrics"][f"has_{file.replace('.', '_')}"] = exists
|
|
217
|
-
if not exists:
|
|
218
|
-
result["issues"].append({
|
|
219
|
-
"code": "QG-SQD-REQFILE",
|
|
220
|
-
"severity": "error",
|
|
221
|
-
"file": file,
|
|
222
|
-
"message": f"Missing required file: {file}"
|
|
223
|
-
})
|
|
224
|
-
result["passed"] = False
|
|
225
|
-
|
|
226
|
-
# Check recommended files
|
|
227
|
-
for file in THRESHOLDS["squad"]["recommended_files"]:
|
|
228
|
-
exists = os.path.exists(os.path.join(squad_path, file))
|
|
229
|
-
result["metrics"][f"has_{file.replace('.', '_')}"] = exists
|
|
230
|
-
if not exists:
|
|
231
|
-
result["issues"].append({
|
|
232
|
-
"code": "QG-SQD-RECFILE",
|
|
233
|
-
"severity": "info",
|
|
234
|
-
"file": file,
|
|
235
|
-
"message": f"Missing recommended file: {file}"
|
|
236
|
-
})
|
|
237
|
-
|
|
238
|
-
# Check required directories
|
|
239
|
-
for dir_name in THRESHOLDS["squad"]["required_dirs"]:
|
|
240
|
-
dir_path = os.path.join(squad_path, dir_name)
|
|
241
|
-
exists = os.path.exists(dir_path) and os.path.isdir(dir_path)
|
|
242
|
-
result["metrics"][f"has_{dir_name}"] = exists
|
|
243
|
-
if not exists:
|
|
244
|
-
result["issues"].append({
|
|
245
|
-
"code": "QG-SQD-REQDIR",
|
|
246
|
-
"severity": "error",
|
|
247
|
-
"directory": dir_name,
|
|
248
|
-
"message": f"Missing required directory: {dir_name}"
|
|
249
|
-
})
|
|
250
|
-
result["passed"] = False
|
|
251
|
-
|
|
252
|
-
# Count agents
|
|
253
|
-
agents_dir = os.path.join(squad_path, "agents")
|
|
254
|
-
if os.path.exists(agents_dir):
|
|
255
|
-
agents = [f for f in os.listdir(agents_dir) if f.endswith('.md')]
|
|
256
|
-
result["metrics"]["agent_count"] = len(agents)
|
|
257
|
-
if len(agents) < THRESHOLDS["squad"]["min_agents"]:
|
|
258
|
-
result["issues"].append({
|
|
259
|
-
"code": "QG-SQD-AGENTS",
|
|
260
|
-
"severity": "error",
|
|
261
|
-
"actual": len(agents),
|
|
262
|
-
"threshold": THRESHOLDS["squad"]["min_agents"],
|
|
263
|
-
"message": f"Squad has {len(agents)} agents (min: {THRESHOLDS['squad']['min_agents']})"
|
|
264
|
-
})
|
|
265
|
-
result["passed"] = False
|
|
266
|
-
|
|
267
|
-
# Count tasks
|
|
268
|
-
tasks_dir = os.path.join(squad_path, "tasks")
|
|
269
|
-
if os.path.exists(tasks_dir):
|
|
270
|
-
tasks = [f for f in os.listdir(tasks_dir) if f.endswith('.md')]
|
|
271
|
-
result["metrics"]["task_count"] = len(tasks)
|
|
272
|
-
if len(tasks) < THRESHOLDS["squad"]["min_tasks"]:
|
|
273
|
-
result["issues"].append({
|
|
274
|
-
"code": "QG-SQD-TASKS",
|
|
275
|
-
"severity": "error",
|
|
276
|
-
"actual": len(tasks),
|
|
277
|
-
"threshold": THRESHOLDS["squad"]["min_tasks"],
|
|
278
|
-
"message": f"Squad has {len(tasks)} tasks (min: {THRESHOLDS['squad']['min_tasks']})"
|
|
279
|
-
})
|
|
280
|
-
result["passed"] = False
|
|
281
|
-
|
|
282
|
-
return result
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
def scan_squad(squad_path: str, strict: bool = False) -> Dict[str, Any]:
|
|
286
|
-
"""Run quality gate checks on entire squad."""
|
|
287
|
-
squad_path = squad_path.rstrip('/')
|
|
288
|
-
squad_name = os.path.basename(squad_path)
|
|
289
|
-
|
|
290
|
-
if not os.path.exists(squad_path):
|
|
291
|
-
return {
|
|
292
|
-
"squad_name": squad_name,
|
|
293
|
-
"exists": False,
|
|
294
|
-
"error": f"Squad path not found: {squad_path}"
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
results = {
|
|
298
|
-
"squad_name": squad_name,
|
|
299
|
-
"squad_path": squad_path,
|
|
300
|
-
"exists": True,
|
|
301
|
-
"strict_mode": strict,
|
|
302
|
-
"thresholds": THRESHOLDS,
|
|
303
|
-
"squad_check": None,
|
|
304
|
-
"agent_checks": [],
|
|
305
|
-
"task_checks": [],
|
|
306
|
-
"summary": {
|
|
307
|
-
"total_issues": 0,
|
|
308
|
-
"errors": 0,
|
|
309
|
-
"warnings": 0,
|
|
310
|
-
"passed": True
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
# Check squad-level quality
|
|
315
|
-
squad_result = check_squad_quality(squad_path)
|
|
316
|
-
results["squad_check"] = squad_result
|
|
317
|
-
results["summary"]["total_issues"] += len(squad_result["issues"])
|
|
318
|
-
results["summary"]["errors"] += len([i for i in squad_result["issues"] if i["severity"] == "error"])
|
|
319
|
-
if not squad_result["passed"]:
|
|
320
|
-
results["summary"]["passed"] = False
|
|
321
|
-
|
|
322
|
-
# Check each agent
|
|
323
|
-
agents_dir = os.path.join(squad_path, "agents")
|
|
324
|
-
if os.path.exists(agents_dir):
|
|
325
|
-
for file in sorted(os.listdir(agents_dir)):
|
|
326
|
-
if file.endswith('.md'):
|
|
327
|
-
agent_result = check_agent_quality(os.path.join(agents_dir, file))
|
|
328
|
-
results["agent_checks"].append(agent_result)
|
|
329
|
-
results["summary"]["total_issues"] += len(agent_result["issues"])
|
|
330
|
-
|
|
331
|
-
# Check each task
|
|
332
|
-
tasks_dir = os.path.join(squad_path, "tasks")
|
|
333
|
-
if os.path.exists(tasks_dir):
|
|
334
|
-
for file in sorted(os.listdir(tasks_dir)):
|
|
335
|
-
if file.endswith('.md'):
|
|
336
|
-
task_result = check_task_quality(os.path.join(tasks_dir, file))
|
|
337
|
-
results["task_checks"].append(task_result)
|
|
338
|
-
results["summary"]["total_issues"] += len(task_result["issues"])
|
|
339
|
-
|
|
340
|
-
results["summary"]["warnings"] = results["summary"]["total_issues"] - results["summary"]["errors"]
|
|
341
|
-
results["status"] = "PASS" if results["summary"]["passed"] else "FAIL"
|
|
342
|
-
|
|
343
|
-
return results
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
def print_report(results: Dict[str, Any]) -> None:
|
|
347
|
-
"""Print human-readable report."""
|
|
348
|
-
print(f"\nQuality Gate: {results['squad_name']}")
|
|
349
|
-
print("=" * 50)
|
|
350
|
-
|
|
351
|
-
if not results.get("exists"):
|
|
352
|
-
print(f"ERROR: {results.get('error', 'Squad not found')}")
|
|
353
|
-
return
|
|
354
|
-
|
|
355
|
-
print(f"Status: {'✓ PASSED' if results['status'] == 'PASS' else '✗ FAILED'}")
|
|
356
|
-
print(f"Errors: {results['summary']['errors']}")
|
|
357
|
-
print(f"Warnings: {results['summary']['warnings']}")
|
|
358
|
-
|
|
359
|
-
# Squad-level issues
|
|
360
|
-
if results["squad_check"]["issues"]:
|
|
361
|
-
print("\nSquad Issues:")
|
|
362
|
-
for issue in results["squad_check"]["issues"]:
|
|
363
|
-
icon = "✗" if issue["severity"] == "error" else "⚠️"
|
|
364
|
-
print(f" {icon} [{issue['code']}] {issue['message']}")
|
|
365
|
-
|
|
366
|
-
# Agent issues
|
|
367
|
-
agent_issues = [a for a in results["agent_checks"] if a["issues"]]
|
|
368
|
-
if agent_issues:
|
|
369
|
-
print("\nAgent Issues:")
|
|
370
|
-
for agent in agent_issues:
|
|
371
|
-
print(f" {agent['file']}:")
|
|
372
|
-
for issue in agent["issues"]:
|
|
373
|
-
print(f" ⚠️ [{issue['code']}] {issue['message']}")
|
|
374
|
-
|
|
375
|
-
# Task issues
|
|
376
|
-
task_issues = [t for t in results["task_checks"] if t["issues"]]
|
|
377
|
-
if task_issues:
|
|
378
|
-
print("\nTask Issues:")
|
|
379
|
-
for task in task_issues:
|
|
380
|
-
print(f" {task['file']}:")
|
|
381
|
-
for issue in task["issues"]:
|
|
382
|
-
print(f" ⚠️ [{issue['code']}] {issue['message']}")
|
|
383
|
-
|
|
384
|
-
# Summary metrics
|
|
385
|
-
print("\nMetrics:")
|
|
386
|
-
if results["squad_check"]["metrics"]:
|
|
387
|
-
print(f" Agents: {results['squad_check']['metrics'].get('agent_count', 0)}")
|
|
388
|
-
print(f" Tasks: {results['squad_check']['metrics'].get('task_count', 0)}")
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
def main():
|
|
392
|
-
parser = argparse.ArgumentParser(description="Check squad quality thresholds")
|
|
393
|
-
parser.add_argument("squad_path", help="Path to squad directory")
|
|
394
|
-
parser.add_argument("--output", choices=["text", "json"], default="text",
|
|
395
|
-
help="Output format")
|
|
396
|
-
parser.add_argument("--strict", action="store_true",
|
|
397
|
-
help="Treat warnings as errors")
|
|
398
|
-
|
|
399
|
-
args = parser.parse_args()
|
|
400
|
-
|
|
401
|
-
results = scan_squad(args.squad_path, args.strict)
|
|
402
|
-
|
|
403
|
-
if args.output == "json":
|
|
404
|
-
print(json.dumps(results, indent=2))
|
|
405
|
-
else:
|
|
406
|
-
print_report(results)
|
|
407
|
-
|
|
408
|
-
# Exit with error code if failed
|
|
409
|
-
sys.exit(0 if results.get("status") == "PASS" else 1)
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
if __name__ == "__main__":
|
|
413
|
-
main()
|