@jaimevalasek/aioson 1.3.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/CHANGELOG.md +456 -0
- package/CODE_OF_CONDUCT.md +12 -0
- package/CONTRIBUTING.md +13 -0
- package/LICENSE +21 -0
- package/README.md +254 -0
- package/bin/aioson.js +4 -0
- package/docs/en/cli-reference.md +398 -0
- package/docs/en/i18n.md +52 -0
- package/docs/en/json-schemas.md +41 -0
- package/docs/en/mcp.md +56 -0
- package/docs/en/parallel.md +82 -0
- package/docs/en/qa-browser.md +339 -0
- package/docs/en/release-flow.md +22 -0
- package/docs/en/release-notes-template.md +41 -0
- package/docs/en/release.md +28 -0
- package/docs/en/schemas/agent-prompt.schema.json +17 -0
- package/docs/en/schemas/agents.schema.json +32 -0
- package/docs/en/schemas/context-validate.schema.json +36 -0
- package/docs/en/schemas/doctor.schema.json +89 -0
- package/docs/en/schemas/error.schema.json +24 -0
- package/docs/en/schemas/i18n-add.schema.json +15 -0
- package/docs/en/schemas/index.json +116 -0
- package/docs/en/schemas/info.schema.json +39 -0
- package/docs/en/schemas/init.schema.json +48 -0
- package/docs/en/schemas/install.schema.json +60 -0
- package/docs/en/schemas/locale-apply.schema.json +30 -0
- package/docs/en/schemas/mcp-doctor.schema.json +95 -0
- package/docs/en/schemas/mcp-init.schema.json +122 -0
- package/docs/en/schemas/package-test.schema.json +24 -0
- package/docs/en/schemas/parallel-assign.schema.json +57 -0
- package/docs/en/schemas/parallel-doctor.schema.json +86 -0
- package/docs/en/schemas/parallel-init.schema.json +53 -0
- package/docs/en/schemas/parallel-status.schema.json +94 -0
- package/docs/en/schemas/setup-context.schema.json +39 -0
- package/docs/en/schemas/smoke.schema.json +23 -0
- package/docs/en/schemas/update.schema.json +48 -0
- package/docs/en/schemas/workflow-plan.schema.json +30 -0
- package/docs/en/web3.md +54 -0
- package/docs/pt/README.md +46 -0
- package/docs/pt/advisor-spec.md +335 -0
- package/docs/pt/agentes.md +453 -0
- package/docs/pt/cenarios.md +1230 -0
- package/docs/pt/clientes-ai.md +224 -0
- package/docs/pt/comandos-cli.md +511 -0
- package/docs/pt/genome-3.0-spec.md +296 -0
- package/docs/pt/guia-engineer.md +226 -0
- package/docs/pt/inicio-rapido.md +138 -0
- package/docs/pt/profiler-system.md +214 -0
- package/docs/pt/runtime-observability.md +72 -0
- package/docs/pt/squad-genoma.md +777 -0
- package/docs/pt/web3.md +797 -0
- package/docs/testing/genome-2.0-manual-regression.md +23 -0
- package/docs/testing/genome-2.0-matrix.md +36 -0
- package/docs/testing/genome-2.0-rollout.md +184 -0
- package/package.json +50 -0
- package/src/agents.js +56 -0
- package/src/cli.js +497 -0
- package/src/commands/agents.js +142 -0
- package/src/commands/cloud.js +1767 -0
- package/src/commands/config.js +90 -0
- package/src/commands/context-validate.js +91 -0
- package/src/commands/doctor.js +123 -0
- package/src/commands/genome-doctor.js +41 -0
- package/src/commands/genome-migrate.js +49 -0
- package/src/commands/i18n-add.js +56 -0
- package/src/commands/info.js +41 -0
- package/src/commands/init.js +75 -0
- package/src/commands/install.js +68 -0
- package/src/commands/locale-apply.js +51 -0
- package/src/commands/locale-diff.js +126 -0
- package/src/commands/mcp-doctor.js +406 -0
- package/src/commands/mcp-init.js +379 -0
- package/src/commands/package-e2e.js +273 -0
- package/src/commands/parallel-assign.js +403 -0
- package/src/commands/parallel-doctor.js +437 -0
- package/src/commands/parallel-init.js +249 -0
- package/src/commands/parallel-status.js +290 -0
- package/src/commands/qa-doctor.js +185 -0
- package/src/commands/qa-init.js +161 -0
- package/src/commands/qa-report.js +58 -0
- package/src/commands/qa-run.js +873 -0
- package/src/commands/qa-scan.js +337 -0
- package/src/commands/runtime.js +948 -0
- package/src/commands/scan-project.js +1107 -0
- package/src/commands/setup-context.js +650 -0
- package/src/commands/smoke.js +426 -0
- package/src/commands/squad-doctor.js +358 -0
- package/src/commands/squad-export.js +46 -0
- package/src/commands/squad-pipeline.js +97 -0
- package/src/commands/squad-repair-genomes.js +39 -0
- package/src/commands/squad-status.js +424 -0
- package/src/commands/squad-validate.js +230 -0
- package/src/commands/test-agents.js +194 -0
- package/src/commands/update.js +55 -0
- package/src/commands/workflow-next.js +594 -0
- package/src/commands/workflow-plan.js +108 -0
- package/src/constants.js +314 -0
- package/src/context-parse-reason.js +22 -0
- package/src/context-writer.js +150 -0
- package/src/context.js +217 -0
- package/src/detector.js +261 -0
- package/src/doctor.js +289 -0
- package/src/execution-gateway.js +461 -0
- package/src/genome-files.js +198 -0
- package/src/genome-format.js +442 -0
- package/src/genome-schema.js +215 -0
- package/src/genomes/bindings.js +281 -0
- package/src/genomes.js +467 -0
- package/src/i18n/index.js +103 -0
- package/src/i18n/messages/en.js +784 -0
- package/src/i18n/messages/es.js +718 -0
- package/src/i18n/messages/fr.js +725 -0
- package/src/i18n/messages/pt-BR.js +818 -0
- package/src/i18n/scaffold.js +64 -0
- package/src/installer.js +232 -0
- package/src/lib/genomes/compat.js +206 -0
- package/src/lib/genomes/migrate.js +90 -0
- package/src/lib/squads/genome-repair.js +49 -0
- package/src/locales.js +84 -0
- package/src/onboarding.js +305 -0
- package/src/parser.js +53 -0
- package/src/prompt-tool.js +20 -0
- package/src/qa-html-report.js +472 -0
- package/src/runtime-store.js +1527 -0
- package/src/squads/apply-genome.js +21 -0
- package/src/squads/genome-binding-service.js +154 -0
- package/src/updater.js +32 -0
- package/src/utils.js +46 -0
- package/src/version.js +50 -0
- package/template/.aioson/advisors/.gitkeep +1 -0
- package/template/.aioson/agents/analyst.md +225 -0
- package/template/.aioson/agents/architect.md +221 -0
- package/template/.aioson/agents/dev.md +201 -0
- package/template/.aioson/agents/discovery-design-doc.md +196 -0
- package/template/.aioson/agents/genoma.md +300 -0
- package/template/.aioson/agents/orchestrator.md +107 -0
- package/template/.aioson/agents/pm.md +89 -0
- package/template/.aioson/agents/product.md +361 -0
- package/template/.aioson/agents/profiler-enricher.md +266 -0
- package/template/.aioson/agents/profiler-forge.md +188 -0
- package/template/.aioson/agents/profiler-researcher.md +245 -0
- package/template/.aioson/agents/qa.md +344 -0
- package/template/.aioson/agents/setup.md +381 -0
- package/template/.aioson/agents/squad.md +837 -0
- package/template/.aioson/agents/ux-ui.md +416 -0
- package/template/.aioson/config.md +56 -0
- package/template/.aioson/context/.gitkeep +0 -0
- package/template/.aioson/context/parallel/.gitkeep +0 -0
- package/template/.aioson/context/spec.md.template +37 -0
- package/template/.aioson/genomas/.gitkeep +0 -0
- package/template/.aioson/locales/en/agents/analyst.md +214 -0
- package/template/.aioson/locales/en/agents/architect.md +210 -0
- package/template/.aioson/locales/en/agents/dev.md +187 -0
- package/template/.aioson/locales/en/agents/discovery-design-doc.md +27 -0
- package/template/.aioson/locales/en/agents/genoma.md +212 -0
- package/template/.aioson/locales/en/agents/orchestrator.md +105 -0
- package/template/.aioson/locales/en/agents/pm.md +77 -0
- package/template/.aioson/locales/en/agents/product.md +310 -0
- package/template/.aioson/locales/en/agents/profiler-enricher.md +5 -0
- package/template/.aioson/locales/en/agents/profiler-forge.md +5 -0
- package/template/.aioson/locales/en/agents/profiler-researcher.md +5 -0
- package/template/.aioson/locales/en/agents/qa.md +214 -0
- package/template/.aioson/locales/en/agents/setup.md +342 -0
- package/template/.aioson/locales/en/agents/squad.md +247 -0
- package/template/.aioson/locales/en/agents/ux-ui.md +320 -0
- package/template/.aioson/locales/es/agents/analyst.md +203 -0
- package/template/.aioson/locales/es/agents/architect.md +208 -0
- package/template/.aioson/locales/es/agents/dev.md +183 -0
- package/template/.aioson/locales/es/agents/discovery-design-doc.md +19 -0
- package/template/.aioson/locales/es/agents/genoma.md +102 -0
- package/template/.aioson/locales/es/agents/orchestrator.md +108 -0
- package/template/.aioson/locales/es/agents/pm.md +81 -0
- package/template/.aioson/locales/es/agents/product.md +310 -0
- package/template/.aioson/locales/es/agents/profiler-enricher.md +5 -0
- package/template/.aioson/locales/es/agents/profiler-forge.md +5 -0
- package/template/.aioson/locales/es/agents/profiler-researcher.md +5 -0
- package/template/.aioson/locales/es/agents/qa.md +163 -0
- package/template/.aioson/locales/es/agents/setup.md +347 -0
- package/template/.aioson/locales/es/agents/squad.md +247 -0
- package/template/.aioson/locales/es/agents/ux-ui.md +201 -0
- package/template/.aioson/locales/fr/agents/analyst.md +203 -0
- package/template/.aioson/locales/fr/agents/architect.md +208 -0
- package/template/.aioson/locales/fr/agents/dev.md +183 -0
- package/template/.aioson/locales/fr/agents/discovery-design-doc.md +19 -0
- package/template/.aioson/locales/fr/agents/genoma.md +102 -0
- package/template/.aioson/locales/fr/agents/orchestrator.md +108 -0
- package/template/.aioson/locales/fr/agents/pm.md +81 -0
- package/template/.aioson/locales/fr/agents/product.md +310 -0
- package/template/.aioson/locales/fr/agents/profiler-enricher.md +5 -0
- package/template/.aioson/locales/fr/agents/profiler-forge.md +5 -0
- package/template/.aioson/locales/fr/agents/profiler-researcher.md +5 -0
- package/template/.aioson/locales/fr/agents/qa.md +163 -0
- package/template/.aioson/locales/fr/agents/setup.md +347 -0
- package/template/.aioson/locales/fr/agents/squad.md +247 -0
- package/template/.aioson/locales/fr/agents/ux-ui.md +201 -0
- package/template/.aioson/locales/pt-BR/agents/analyst.md +217 -0
- package/template/.aioson/locales/pt-BR/agents/architect.md +213 -0
- package/template/.aioson/locales/pt-BR/agents/dev.md +198 -0
- package/template/.aioson/locales/pt-BR/agents/discovery-design-doc.md +198 -0
- package/template/.aioson/locales/pt-BR/agents/genoma.md +297 -0
- package/template/.aioson/locales/pt-BR/agents/orchestrator.md +108 -0
- package/template/.aioson/locales/pt-BR/agents/pm.md +81 -0
- package/template/.aioson/locales/pt-BR/agents/product.md +316 -0
- package/template/.aioson/locales/pt-BR/agents/profiler-enricher.md +5 -0
- package/template/.aioson/locales/pt-BR/agents/profiler-forge.md +5 -0
- package/template/.aioson/locales/pt-BR/agents/profiler-researcher.md +5 -0
- package/template/.aioson/locales/pt-BR/agents/qa.md +217 -0
- package/template/.aioson/locales/pt-BR/agents/setup.md +371 -0
- package/template/.aioson/locales/pt-BR/agents/squad.md +772 -0
- package/template/.aioson/locales/pt-BR/agents/ux-ui.md +322 -0
- package/template/.aioson/mcp/servers.md +24 -0
- package/template/.aioson/profiler-reports/.gitkeep +1 -0
- package/template/.aioson/schemas/content-blueprint.schema.json +30 -0
- package/template/.aioson/schemas/genome-meta.schema.json +150 -0
- package/template/.aioson/schemas/genome.schema.json +115 -0
- package/template/.aioson/schemas/readiness.schema.json +27 -0
- package/template/.aioson/schemas/squad-blueprint.schema.json +172 -0
- package/template/.aioson/schemas/squad-manifest.schema.json +276 -0
- package/template/.aioson/skills/dynamic/README.md +30 -0
- package/template/.aioson/skills/dynamic/cardano-docs.md +16 -0
- package/template/.aioson/skills/dynamic/ethereum-docs.md +17 -0
- package/template/.aioson/skills/dynamic/flux-ui-docs.md +13 -0
- package/template/.aioson/skills/dynamic/laravel-docs.md +41 -0
- package/template/.aioson/skills/dynamic/npm-packages.md +16 -0
- package/template/.aioson/skills/dynamic/solana-docs.md +16 -0
- package/template/.aioson/skills/references/premium-command-center-ui/master-application-prompt.md +79 -0
- package/template/.aioson/skills/references/premium-command-center-ui/operational-ux-playbook.md +253 -0
- package/template/.aioson/skills/references/premium-command-center-ui/quality-validation-checklist.md +82 -0
- package/template/.aioson/skills/references/premium-command-center-ui/visual-system-and-component-patterns.md +270 -0
- package/template/.aioson/skills/static/django-patterns.md +342 -0
- package/template/.aioson/skills/static/fastapi-patterns.md +344 -0
- package/template/.aioson/skills/static/filament-patterns.md +267 -0
- package/template/.aioson/skills/static/flux-ui-components.md +262 -0
- package/template/.aioson/skills/static/git-conventions.md +227 -0
- package/template/.aioson/skills/static/interface-design.md +372 -0
- package/template/.aioson/skills/static/jetstream-setup.md +200 -0
- package/template/.aioson/skills/static/laravel-conventions.md +491 -0
- package/template/.aioson/skills/static/nextjs-patterns.md +321 -0
- package/template/.aioson/skills/static/node-express-patterns.md +317 -0
- package/template/.aioson/skills/static/node-typescript-patterns.md +282 -0
- package/template/.aioson/skills/static/premium-command-center-ui.md +190 -0
- package/template/.aioson/skills/static/rails-conventions.md +307 -0
- package/template/.aioson/skills/static/react-motion-patterns.md +577 -0
- package/template/.aioson/skills/static/static-html-patterns.md +1935 -0
- package/template/.aioson/skills/static/tall-stack-patterns.md +286 -0
- package/template/.aioson/skills/static/ui-ux-modern.md +75 -0
- package/template/.aioson/skills/static/web3-cardano-patterns.md +337 -0
- package/template/.aioson/skills/static/web3-ethereum-patterns.md +310 -0
- package/template/.aioson/skills/static/web3-security-checklist.md +284 -0
- package/template/.aioson/skills/static/web3-solana-patterns.md +324 -0
- package/template/.aioson/squads/.artisan/.gitkeep +0 -0
- package/template/.aioson/squads/.gitkeep +0 -0
- package/template/.aioson/squads/memory.md +5 -0
- package/template/.aioson/tasks/squad-analyze.md +83 -0
- package/template/.aioson/tasks/squad-create.md +99 -0
- package/template/.aioson/tasks/squad-design.md +100 -0
- package/template/.aioson/tasks/squad-export.md +20 -0
- package/template/.aioson/tasks/squad-extend.md +68 -0
- package/template/.aioson/tasks/squad-pipeline.md +122 -0
- package/template/.aioson/tasks/squad-repair.md +85 -0
- package/template/.aioson/tasks/squad-validate.md +58 -0
- package/template/.aioson/templates/squads/content-basic/template.json +21 -0
- package/template/.aioson/templates/squads/media-channel/template.json +24 -0
- package/template/.aioson/templates/squads/research-analysis/template.json +22 -0
- package/template/.aioson/templates/squads/software-delivery/template.json +21 -0
- package/template/.claude/commands/aioson/analyst.md +5 -0
- package/template/.claude/commands/aioson/architect.md +5 -0
- package/template/.claude/commands/aioson/dev.md +5 -0
- package/template/.claude/commands/aioson/orchestrator.md +5 -0
- package/template/.claude/commands/aioson/pm.md +5 -0
- package/template/.claude/commands/aioson/qa.md +5 -0
- package/template/.claude/commands/aioson/setup.md +5 -0
- package/template/.claude/commands/aioson/ux-ui.md +5 -0
- package/template/.gemini/GEMINI.md +10 -0
- package/template/.gemini/commands/aios-analyst.toml +4 -0
- package/template/.gemini/commands/aios-architect.toml +7 -0
- package/template/.gemini/commands/aios-dev.toml +8 -0
- package/template/.gemini/commands/aios-discovery-design-doc.toml +4 -0
- package/template/.gemini/commands/aios-orchestrator.toml +8 -0
- package/template/.gemini/commands/aios-pm.toml +8 -0
- package/template/.gemini/commands/aios-product.toml +4 -0
- package/template/.gemini/commands/aios-qa.toml +6 -0
- package/template/.gemini/commands/aios-setup.toml +3 -0
- package/template/.gemini/commands/aios-ux-ui.toml +8 -0
- package/template/AGENTS.md +67 -0
- package/template/CLAUDE.md +31 -0
- package/template/OPENCODE.md +24 -0
- package/template/aioson-models.json +40 -0
package/src/constants.js
ADDED
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const MANAGED_FILES = [
|
|
4
|
+
'CLAUDE.md',
|
|
5
|
+
'AGENTS.md',
|
|
6
|
+
'OPENCODE.md',
|
|
7
|
+
'.gemini/GEMINI.md',
|
|
8
|
+
'.gemini/commands/aios-setup.toml',
|
|
9
|
+
'.gemini/commands/aios-discovery-design-doc.toml',
|
|
10
|
+
'.gemini/commands/aios-analyst.toml',
|
|
11
|
+
'.gemini/commands/aios-architect.toml',
|
|
12
|
+
'.gemini/commands/aios-ux-ui.toml',
|
|
13
|
+
'.gemini/commands/aios-pm.toml',
|
|
14
|
+
'.gemini/commands/aios-dev.toml',
|
|
15
|
+
'.gemini/commands/aios-qa.toml',
|
|
16
|
+
'.gemini/commands/aios-orchestrator.toml',
|
|
17
|
+
'.aioson/config.md',
|
|
18
|
+
'.aioson/agents/setup.md',
|
|
19
|
+
'.aioson/agents/discovery-design-doc.md',
|
|
20
|
+
'.aioson/agents/analyst.md',
|
|
21
|
+
'.aioson/agents/architect.md',
|
|
22
|
+
'.aioson/agents/ux-ui.md',
|
|
23
|
+
'.aioson/agents/product.md',
|
|
24
|
+
'.aioson/agents/pm.md',
|
|
25
|
+
'.aioson/agents/dev.md',
|
|
26
|
+
'.aioson/agents/qa.md',
|
|
27
|
+
'.aioson/agents/orchestrator.md',
|
|
28
|
+
'.aioson/agents/squad.md',
|
|
29
|
+
'.aioson/agents/genoma.md',
|
|
30
|
+
'.aioson/agents/profiler-researcher.md',
|
|
31
|
+
'.aioson/agents/profiler-enricher.md',
|
|
32
|
+
'.aioson/agents/profiler-forge.md',
|
|
33
|
+
'.aioson/locales/en/agents/setup.md',
|
|
34
|
+
'.aioson/locales/en/agents/discovery-design-doc.md',
|
|
35
|
+
'.aioson/locales/en/agents/analyst.md',
|
|
36
|
+
'.aioson/locales/en/agents/architect.md',
|
|
37
|
+
'.aioson/locales/en/agents/ux-ui.md',
|
|
38
|
+
'.aioson/locales/en/agents/product.md',
|
|
39
|
+
'.aioson/locales/en/agents/pm.md',
|
|
40
|
+
'.aioson/locales/en/agents/dev.md',
|
|
41
|
+
'.aioson/locales/en/agents/qa.md',
|
|
42
|
+
'.aioson/locales/en/agents/orchestrator.md',
|
|
43
|
+
'.aioson/locales/en/agents/squad.md',
|
|
44
|
+
'.aioson/locales/en/agents/genoma.md',
|
|
45
|
+
'.aioson/locales/en/agents/profiler-researcher.md',
|
|
46
|
+
'.aioson/locales/en/agents/profiler-enricher.md',
|
|
47
|
+
'.aioson/locales/en/agents/profiler-forge.md',
|
|
48
|
+
'.aioson/locales/pt-BR/agents/setup.md',
|
|
49
|
+
'.aioson/locales/pt-BR/agents/discovery-design-doc.md',
|
|
50
|
+
'.aioson/locales/pt-BR/agents/analyst.md',
|
|
51
|
+
'.aioson/locales/pt-BR/agents/architect.md',
|
|
52
|
+
'.aioson/locales/pt-BR/agents/ux-ui.md',
|
|
53
|
+
'.aioson/locales/pt-BR/agents/product.md',
|
|
54
|
+
'.aioson/locales/pt-BR/agents/pm.md',
|
|
55
|
+
'.aioson/locales/pt-BR/agents/dev.md',
|
|
56
|
+
'.aioson/locales/pt-BR/agents/qa.md',
|
|
57
|
+
'.aioson/locales/pt-BR/agents/orchestrator.md',
|
|
58
|
+
'.aioson/locales/pt-BR/agents/squad.md',
|
|
59
|
+
'.aioson/locales/pt-BR/agents/genoma.md',
|
|
60
|
+
'.aioson/locales/pt-BR/agents/profiler-researcher.md',
|
|
61
|
+
'.aioson/locales/pt-BR/agents/profiler-enricher.md',
|
|
62
|
+
'.aioson/locales/pt-BR/agents/profiler-forge.md',
|
|
63
|
+
'.aioson/locales/es/agents/setup.md',
|
|
64
|
+
'.aioson/locales/es/agents/discovery-design-doc.md',
|
|
65
|
+
'.aioson/locales/es/agents/analyst.md',
|
|
66
|
+
'.aioson/locales/es/agents/architect.md',
|
|
67
|
+
'.aioson/locales/es/agents/ux-ui.md',
|
|
68
|
+
'.aioson/locales/es/agents/product.md',
|
|
69
|
+
'.aioson/locales/es/agents/pm.md',
|
|
70
|
+
'.aioson/locales/es/agents/dev.md',
|
|
71
|
+
'.aioson/locales/es/agents/qa.md',
|
|
72
|
+
'.aioson/locales/es/agents/orchestrator.md',
|
|
73
|
+
'.aioson/locales/es/agents/squad.md',
|
|
74
|
+
'.aioson/locales/es/agents/genoma.md',
|
|
75
|
+
'.aioson/locales/es/agents/profiler-researcher.md',
|
|
76
|
+
'.aioson/locales/es/agents/profiler-enricher.md',
|
|
77
|
+
'.aioson/locales/es/agents/profiler-forge.md',
|
|
78
|
+
'.aioson/locales/fr/agents/setup.md',
|
|
79
|
+
'.aioson/locales/fr/agents/discovery-design-doc.md',
|
|
80
|
+
'.aioson/locales/fr/agents/analyst.md',
|
|
81
|
+
'.aioson/locales/fr/agents/architect.md',
|
|
82
|
+
'.aioson/locales/fr/agents/ux-ui.md',
|
|
83
|
+
'.aioson/locales/fr/agents/product.md',
|
|
84
|
+
'.aioson/locales/fr/agents/pm.md',
|
|
85
|
+
'.aioson/locales/fr/agents/dev.md',
|
|
86
|
+
'.aioson/locales/fr/agents/qa.md',
|
|
87
|
+
'.aioson/locales/fr/agents/orchestrator.md',
|
|
88
|
+
'.aioson/locales/fr/agents/squad.md',
|
|
89
|
+
'.aioson/locales/fr/agents/genoma.md',
|
|
90
|
+
'.aioson/locales/fr/agents/profiler-researcher.md',
|
|
91
|
+
'.aioson/locales/fr/agents/profiler-enricher.md',
|
|
92
|
+
'.aioson/locales/fr/agents/profiler-forge.md',
|
|
93
|
+
'.aioson/skills/static/laravel-conventions.md',
|
|
94
|
+
'.aioson/skills/static/tall-stack-patterns.md',
|
|
95
|
+
'.aioson/skills/static/jetstream-setup.md',
|
|
96
|
+
'.aioson/skills/static/rails-conventions.md',
|
|
97
|
+
'.aioson/skills/static/node-express-patterns.md',
|
|
98
|
+
'.aioson/skills/static/node-typescript-patterns.md',
|
|
99
|
+
'.aioson/skills/static/nextjs-patterns.md',
|
|
100
|
+
'.aioson/skills/static/ui-ux-modern.md',
|
|
101
|
+
'.aioson/skills/static/web3-ethereum-patterns.md',
|
|
102
|
+
'.aioson/skills/static/web3-solana-patterns.md',
|
|
103
|
+
'.aioson/skills/static/web3-cardano-patterns.md',
|
|
104
|
+
'.aioson/skills/static/web3-security-checklist.md',
|
|
105
|
+
'.aioson/skills/static/git-conventions.md',
|
|
106
|
+
'.aioson/skills/static/premium-command-center-ui.md',
|
|
107
|
+
'.aioson/skills/references/premium-command-center-ui/visual-system-and-component-patterns.md',
|
|
108
|
+
'.aioson/skills/references/premium-command-center-ui/operational-ux-playbook.md',
|
|
109
|
+
'.aioson/skills/references/premium-command-center-ui/master-application-prompt.md',
|
|
110
|
+
'.aioson/skills/references/premium-command-center-ui/quality-validation-checklist.md',
|
|
111
|
+
'.aioson/skills/dynamic/laravel-docs.md',
|
|
112
|
+
'.aioson/skills/dynamic/flux-ui-docs.md',
|
|
113
|
+
'.aioson/skills/dynamic/npm-packages.md',
|
|
114
|
+
'.aioson/skills/dynamic/ethereum-docs.md',
|
|
115
|
+
'.aioson/skills/dynamic/solana-docs.md',
|
|
116
|
+
'.aioson/skills/dynamic/cardano-docs.md',
|
|
117
|
+
'.aioson/mcp/servers.md',
|
|
118
|
+
'.aioson/schemas/genome.schema.json',
|
|
119
|
+
'.aioson/schemas/genome-meta.schema.json',
|
|
120
|
+
'.aioson/schemas/squad-manifest.schema.json',
|
|
121
|
+
'.aioson/schemas/squad-blueprint.schema.json',
|
|
122
|
+
'.aioson/schemas/readiness.schema.json',
|
|
123
|
+
'.aioson/schemas/content-blueprint.schema.json',
|
|
124
|
+
'.aioson/schemas/genome.schema.json',
|
|
125
|
+
'.aioson/schemas/genome-meta.schema.json',
|
|
126
|
+
'.aioson/tasks/squad-design.md',
|
|
127
|
+
'.aioson/tasks/squad-create.md',
|
|
128
|
+
'.aioson/tasks/squad-validate.md',
|
|
129
|
+
'.aioson/tasks/squad-analyze.md',
|
|
130
|
+
'.aioson/tasks/squad-extend.md',
|
|
131
|
+
'.aioson/tasks/squad-export.md',
|
|
132
|
+
'.aioson/tasks/squad-repair.md',
|
|
133
|
+
'.aioson/tasks/squad-pipeline.md',
|
|
134
|
+
'.aioson/profiler-reports/.gitkeep',
|
|
135
|
+
'.aioson/advisors/.gitkeep'
|
|
136
|
+
];
|
|
137
|
+
|
|
138
|
+
const REQUIRED_FILES = [
|
|
139
|
+
'CLAUDE.md',
|
|
140
|
+
'AGENTS.md',
|
|
141
|
+
'OPENCODE.md',
|
|
142
|
+
'.gemini/GEMINI.md',
|
|
143
|
+
'.gemini/commands/aios-setup.toml',
|
|
144
|
+
'.gemini/commands/aios-discovery-design-doc.toml',
|
|
145
|
+
'.gemini/commands/aios-analyst.toml',
|
|
146
|
+
'.gemini/commands/aios-architect.toml',
|
|
147
|
+
'.gemini/commands/aios-ux-ui.toml',
|
|
148
|
+
'.gemini/commands/aios-pm.toml',
|
|
149
|
+
'.gemini/commands/aios-dev.toml',
|
|
150
|
+
'.gemini/commands/aios-qa.toml',
|
|
151
|
+
'.gemini/commands/aios-orchestrator.toml',
|
|
152
|
+
'.aioson/config.md',
|
|
153
|
+
'.aioson/agents/setup.md',
|
|
154
|
+
'.aioson/agents/discovery-design-doc.md',
|
|
155
|
+
'.aioson/agents/analyst.md',
|
|
156
|
+
'.aioson/agents/ux-ui.md',
|
|
157
|
+
'.aioson/agents/dev.md',
|
|
158
|
+
'.aioson/context/.gitkeep'
|
|
159
|
+
];
|
|
160
|
+
|
|
161
|
+
const CONTEXT_REQUIRED_FIELDS = [
|
|
162
|
+
'project_name',
|
|
163
|
+
'project_type',
|
|
164
|
+
'profile',
|
|
165
|
+
'framework',
|
|
166
|
+
'framework_installed',
|
|
167
|
+
'classification',
|
|
168
|
+
'conversation_language',
|
|
169
|
+
'aioson_version'
|
|
170
|
+
];
|
|
171
|
+
|
|
172
|
+
const CONTEXT_ALLOWED_CLASSIFICATIONS = ['MICRO', 'SMALL', 'MEDIUM'];
|
|
173
|
+
const CONTEXT_ALLOWED_PROJECT_TYPES = ['web_app', 'api', 'site', 'script', 'dapp'];
|
|
174
|
+
const CONTEXT_ALLOWED_PROFILES = ['developer', 'beginner', 'team'];
|
|
175
|
+
|
|
176
|
+
const AGENT_DEFINITIONS = [
|
|
177
|
+
{
|
|
178
|
+
id: 'setup',
|
|
179
|
+
command: '@setup',
|
|
180
|
+
path: '.aioson/agents/setup.md',
|
|
181
|
+
dependsOn: [],
|
|
182
|
+
output: '.aioson/context/project.context.md'
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
id: 'discovery-design-doc',
|
|
186
|
+
command: '@discovery-design-doc',
|
|
187
|
+
path: '.aioson/agents/discovery-design-doc.md',
|
|
188
|
+
dependsOn: ['.aioson/context/project.context.md'],
|
|
189
|
+
output: '.aioson/context/design-doc.md + .aioson/context/readiness.md'
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
id: 'product',
|
|
193
|
+
command: '@product',
|
|
194
|
+
path: '.aioson/agents/product.md',
|
|
195
|
+
dependsOn: ['.aioson/context/project.context.md'],
|
|
196
|
+
output: '.aioson/context/prd.md or .aioson/context/prd-{slug}.md (PRD base)'
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
id: 'analyst',
|
|
200
|
+
command: '@analyst',
|
|
201
|
+
path: '.aioson/agents/analyst.md',
|
|
202
|
+
dependsOn: ['.aioson/context/project.context.md'],
|
|
203
|
+
output: '.aioson/context/discovery.md'
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
id: 'architect',
|
|
207
|
+
command: '@architect',
|
|
208
|
+
path: '.aioson/agents/architect.md',
|
|
209
|
+
dependsOn: [
|
|
210
|
+
'.aioson/context/project.context.md',
|
|
211
|
+
'.aioson/context/discovery.md'
|
|
212
|
+
],
|
|
213
|
+
output: '.aioson/context/architecture.md'
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
id: 'ux-ui',
|
|
217
|
+
command: '@ux-ui',
|
|
218
|
+
path: '.aioson/agents/ux-ui.md',
|
|
219
|
+
dependsOn: [
|
|
220
|
+
'.aioson/context/project.context.md',
|
|
221
|
+
'.aioson/context/prd.md or .aioson/context/prd-{slug}.md',
|
|
222
|
+
'.aioson/context/discovery.md',
|
|
223
|
+
'.aioson/context/architecture.md'
|
|
224
|
+
],
|
|
225
|
+
output: '.aioson/context/ui-spec.md + Visual identity enrichment in prd.md or prd-{slug}.md'
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
id: 'pm',
|
|
229
|
+
command: '@pm',
|
|
230
|
+
path: '.aioson/agents/pm.md',
|
|
231
|
+
dependsOn: [
|
|
232
|
+
'.aioson/context/project.context.md',
|
|
233
|
+
'.aioson/context/prd.md or .aioson/context/prd-{slug}.md',
|
|
234
|
+
'.aioson/context/discovery.md',
|
|
235
|
+
'.aioson/context/architecture.md'
|
|
236
|
+
],
|
|
237
|
+
output: '.aioson/context/prd.md or prd-{slug}.md (enriched with delivery plan and acceptance criteria)'
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
id: 'dev',
|
|
241
|
+
command: '@dev',
|
|
242
|
+
path: '.aioson/agents/dev.md',
|
|
243
|
+
dependsOn: [
|
|
244
|
+
'.aioson/context/project.context.md',
|
|
245
|
+
'.aioson/context/discovery.md',
|
|
246
|
+
'.aioson/context/architecture.md'
|
|
247
|
+
],
|
|
248
|
+
output: 'code changes'
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
id: 'qa',
|
|
252
|
+
command: '@qa',
|
|
253
|
+
path: '.aioson/agents/qa.md',
|
|
254
|
+
dependsOn: ['.aioson/context/discovery.md'],
|
|
255
|
+
output: 'QA report'
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
id: 'orchestrator',
|
|
259
|
+
command: '@orchestrator',
|
|
260
|
+
path: '.aioson/agents/orchestrator.md',
|
|
261
|
+
dependsOn: [
|
|
262
|
+
'.aioson/context/discovery.md',
|
|
263
|
+
'.aioson/context/architecture.md',
|
|
264
|
+
'.aioson/context/prd.md'
|
|
265
|
+
],
|
|
266
|
+
output: '.aioson/context/parallel/*.status.md'
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
id: 'squad',
|
|
270
|
+
command: '@squad',
|
|
271
|
+
path: '.aioson/agents/squad.md',
|
|
272
|
+
dependsOn: [],
|
|
273
|
+
output:
|
|
274
|
+
'.aioson/squads/{slug}/squad.manifest.json + .aioson/squads/{slug}/squad.md + .aioson/squads/{slug}/agents/ + .aioson/squads/{slug}/skills/ + .aioson/squads/{slug}/templates/ + .aioson/squads/{slug}/docs/ + output/{slug}/{session-id}.html + output/{slug}/{content-key}/content.json + output/{slug}/{content-key}/index.html + output/{slug}/latest.html + aios-logs/{slug}/ + media/{slug}/'
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
id: 'genoma',
|
|
278
|
+
command: '@genoma',
|
|
279
|
+
path: '.aioson/agents/genoma.md',
|
|
280
|
+
dependsOn: [],
|
|
281
|
+
output: '.aioson/genomas/[slug].md + .aioson/genomas/[slug].meta.json + optional binding in .aioson/squads/{slug}/squad.md or .aioson/squads/{slug}/squad.manifest.json'
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
id: 'profiler-researcher',
|
|
285
|
+
command: '@profiler-researcher',
|
|
286
|
+
path: '.aioson/agents/profiler-researcher.md',
|
|
287
|
+
dependsOn: [],
|
|
288
|
+
output: '.aioson/profiler-reports/{person-slug}/research-report.md'
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
id: 'profiler-enricher',
|
|
292
|
+
command: '@profiler-enricher',
|
|
293
|
+
path: '.aioson/agents/profiler-enricher.md',
|
|
294
|
+
dependsOn: ['.aioson/profiler-reports/{person-slug}/research-report.md'],
|
|
295
|
+
output: '.aioson/profiler-reports/{person-slug}/enriched-profile.md'
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
id: 'profiler-forge',
|
|
299
|
+
command: '@profiler-forge',
|
|
300
|
+
path: '.aioson/agents/profiler-forge.md',
|
|
301
|
+
dependsOn: ['.aioson/profiler-reports/{person-slug}/enriched-profile.md'],
|
|
302
|
+
output: '.aioson/genomas/{person-slug}-{domain-slug}.md + .aioson/genomas/{person-slug}-{domain-slug}.meta.json + .aioson/advisors/{person-slug}-advisor.md'
|
|
303
|
+
}
|
|
304
|
+
];
|
|
305
|
+
|
|
306
|
+
module.exports = {
|
|
307
|
+
MANAGED_FILES,
|
|
308
|
+
REQUIRED_FILES,
|
|
309
|
+
CONTEXT_REQUIRED_FIELDS,
|
|
310
|
+
CONTEXT_ALLOWED_CLASSIFICATIONS,
|
|
311
|
+
CONTEXT_ALLOWED_PROJECT_TYPES,
|
|
312
|
+
CONTEXT_ALLOWED_PROFILES,
|
|
313
|
+
AGENT_DEFINITIONS
|
|
314
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
function localizeContextParseReason(reason, t) {
|
|
4
|
+
const normalized = String(reason || '')
|
|
5
|
+
.trim()
|
|
6
|
+
.toLowerCase();
|
|
7
|
+
if (!normalized) return t('context_validate.parse_reason_unknown');
|
|
8
|
+
if (normalized === 'missing_frontmatter') {
|
|
9
|
+
return t('context_validate.parse_reason_missing_frontmatter');
|
|
10
|
+
}
|
|
11
|
+
if (normalized === 'unclosed_frontmatter') {
|
|
12
|
+
return t('context_validate.parse_reason_unclosed_frontmatter');
|
|
13
|
+
}
|
|
14
|
+
if (normalized === 'invalid_frontmatter_line') {
|
|
15
|
+
return t('context_validate.parse_reason_invalid_frontmatter_line');
|
|
16
|
+
}
|
|
17
|
+
return normalized;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
module.exports = {
|
|
21
|
+
localizeContextParseReason
|
|
22
|
+
};
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const fs = require('node:fs/promises');
|
|
4
|
+
const path = require('node:path');
|
|
5
|
+
const { ensureDir } = require('./utils');
|
|
6
|
+
|
|
7
|
+
function toPositiveInt(value, fallback = 0) {
|
|
8
|
+
const num = Number(value);
|
|
9
|
+
if (!Number.isFinite(num)) return fallback;
|
|
10
|
+
return Math.max(0, Math.floor(num));
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function scoreUserTypes(userTypesCount) {
|
|
14
|
+
const n = toPositiveInt(userTypesCount, 1);
|
|
15
|
+
if (n <= 1) return 0;
|
|
16
|
+
if (n === 2) return 1;
|
|
17
|
+
return 2;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function scoreIntegrations(integrationsCount) {
|
|
21
|
+
const n = toPositiveInt(integrationsCount, 0);
|
|
22
|
+
if (n === 0) return 0;
|
|
23
|
+
if (n <= 2) return 1;
|
|
24
|
+
return 2;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function scoreRulesComplexity(rulesComplexity) {
|
|
28
|
+
const value = String(rulesComplexity || 'none').trim().toLowerCase();
|
|
29
|
+
if (value === 'none') return 0;
|
|
30
|
+
if (value === 'some') return 1;
|
|
31
|
+
if (value === 'complex') return 2;
|
|
32
|
+
return 0;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function classificationFromScore(score) {
|
|
36
|
+
if (score <= 1) return 'MICRO';
|
|
37
|
+
if (score <= 3) return 'SMALL';
|
|
38
|
+
return 'MEDIUM';
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function calculateClassification(input) {
|
|
42
|
+
const score =
|
|
43
|
+
scoreUserTypes(input.userTypesCount) +
|
|
44
|
+
scoreIntegrations(input.integrationsCount) +
|
|
45
|
+
scoreRulesComplexity(input.rulesComplexity);
|
|
46
|
+
|
|
47
|
+
return {
|
|
48
|
+
score,
|
|
49
|
+
classification: classificationFromScore(score)
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
function normalizeBoolean(value, fallback = false) {
|
|
54
|
+
if (typeof value === 'boolean') return value;
|
|
55
|
+
if (value === undefined || value === null) return fallback;
|
|
56
|
+
const text = String(value).trim().toLowerCase();
|
|
57
|
+
if (['true', 'yes', 'y', '1'].includes(text)) return true;
|
|
58
|
+
if (['false', 'no', 'n', '0'].includes(text)) return false;
|
|
59
|
+
return fallback;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
function renderProjectContext(data) {
|
|
63
|
+
const language = data.conversationLanguage || 'en';
|
|
64
|
+
const codeCommentLanguage = data.codeCommentLanguage || language;
|
|
65
|
+
const generatedAt = data.generatedAt || new Date().toISOString();
|
|
66
|
+
const web3Enabled = Boolean(data.web3Enabled);
|
|
67
|
+
const web3Networks = data.web3Networks || '';
|
|
68
|
+
const contractFramework = data.contractFramework || '';
|
|
69
|
+
const walletProvider = data.walletProvider || '';
|
|
70
|
+
const indexer = data.indexer || '';
|
|
71
|
+
const rpcProvider = data.rpcProvider || '';
|
|
72
|
+
const notes = Array.isArray(data.notes) ? data.notes.filter(Boolean) : [];
|
|
73
|
+
|
|
74
|
+
return `---
|
|
75
|
+
project_name: "${data.projectName}"
|
|
76
|
+
project_type: "${data.projectType}"
|
|
77
|
+
profile: "${data.profile}"
|
|
78
|
+
framework: "${data.framework}"
|
|
79
|
+
framework_installed: ${data.frameworkInstalled ? 'true' : 'false'}
|
|
80
|
+
classification: "${data.classification}"
|
|
81
|
+
conversation_language: "${language}"
|
|
82
|
+
web3_enabled: ${web3Enabled ? 'true' : 'false'}
|
|
83
|
+
web3_networks: "${web3Networks}"
|
|
84
|
+
contract_framework: "${contractFramework}"
|
|
85
|
+
wallet_provider: "${walletProvider}"
|
|
86
|
+
indexer: "${indexer}"
|
|
87
|
+
rpc_provider: "${rpcProvider}"
|
|
88
|
+
aioson_version: "${data.aiosonVersion}"
|
|
89
|
+
generated_at: "${generatedAt}"
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
# Project Context
|
|
93
|
+
|
|
94
|
+
## Stack
|
|
95
|
+
- Backend: ${data.backend || ''}
|
|
96
|
+
- Frontend: ${data.frontend || ''}
|
|
97
|
+
- Database: ${data.database || ''}
|
|
98
|
+
- Auth: ${data.auth || ''}
|
|
99
|
+
- UI/UX: ${data.uiux || ''}
|
|
100
|
+
|
|
101
|
+
## Services
|
|
102
|
+
- Queues: ${data.queues || ''}
|
|
103
|
+
- Storage: ${data.storage || ''}
|
|
104
|
+
- WebSockets: ${data.websockets || ''}
|
|
105
|
+
- Email: ${data.email || ''}
|
|
106
|
+
- Payments: ${data.payments || ''}
|
|
107
|
+
- Cache: ${data.cache || ''}
|
|
108
|
+
- Search: ${data.search || ''}
|
|
109
|
+
|
|
110
|
+
## Web3
|
|
111
|
+
- Enabled: ${web3Enabled ? 'yes' : 'no'}
|
|
112
|
+
- Networks: ${web3Networks || '[not applicable]'}
|
|
113
|
+
- Contract framework: ${contractFramework || '[not applicable]'}
|
|
114
|
+
- Wallet provider: ${walletProvider || '[not applicable]'}
|
|
115
|
+
- Indexer: ${indexer || '[not applicable]'}
|
|
116
|
+
- RPC provider: ${rpcProvider || '[not applicable]'}
|
|
117
|
+
|
|
118
|
+
## Installation commands
|
|
119
|
+
${data.installCommands || (data.frameworkInstalled ? '[already installed]' : '[add commands here]')}
|
|
120
|
+
|
|
121
|
+
## Notes
|
|
122
|
+
${notes.length > 0 ? notes.map((note) => `- ${note}`).join('\n') : '- [none]'}
|
|
123
|
+
|
|
124
|
+
## Conventions
|
|
125
|
+
- Language: ${language}
|
|
126
|
+
- Code comments language: ${codeCommentLanguage}
|
|
127
|
+
- DB naming: snake_case
|
|
128
|
+
- JS/TS naming: camelCase
|
|
129
|
+
`;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
async function writeProjectContext(targetDir, content) {
|
|
133
|
+
const contextDir = path.join(targetDir, '.aioson/context');
|
|
134
|
+
await ensureDir(contextDir);
|
|
135
|
+
const filePath = path.join(contextDir, 'project.context.md');
|
|
136
|
+
await fs.writeFile(filePath, content, 'utf8');
|
|
137
|
+
return filePath;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
module.exports = {
|
|
141
|
+
toPositiveInt,
|
|
142
|
+
scoreUserTypes,
|
|
143
|
+
scoreIntegrations,
|
|
144
|
+
scoreRulesComplexity,
|
|
145
|
+
calculateClassification,
|
|
146
|
+
classificationFromScore,
|
|
147
|
+
normalizeBoolean,
|
|
148
|
+
renderProjectContext,
|
|
149
|
+
writeProjectContext
|
|
150
|
+
};
|