aios-core 2.2.1 → 2.3.1
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/.aios-core/.session/current-session.json +14 -14
- package/.aios-core/cli/commands/migrate/validate.js +1 -1
- package/.aios-core/core/docs/session-update-pattern.md +17 -10
- package/.aios-core/core/elicitation/elicitation-engine.js +11 -6
- package/.aios-core/core/elicitation/session-manager.js +2 -1
- package/.aios-core/core/registry/registry-schema.json +166 -166
- package/.aios-core/core/registry/service-registry.json +6585 -6585
- package/.aios-core/core-config.yaml +12 -1
- package/.aios-core/data/agent-config-requirements.yaml +5 -5
- package/.aios-core/development/agents/devops.md +12 -0
- package/.aios-core/development/scripts/squad/README.md +112 -0
- package/.aios-core/development/scripts/squad/index.js +41 -0
- package/.aios-core/development/scripts/squad/squad-loader.js +359 -0
- package/.aios-core/development/scripts/squad/squad-validator.js +685 -0
- package/.aios-core/development/tasks/add-mcp.md +11 -5
- package/.aios-core/development/tasks/search-mcp.md +309 -0
- package/.aios-core/development/tasks/setup-mcp-docker.md +11 -8
- package/.aios-core/development/tasks/squad-creator-validate.md +151 -0
- package/.aios-core/docs/standards/AGENT-PERSONALIZATION-STANDARD-V1.md +3 -3
- package/.aios-core/index.d.ts +7 -7
- package/.aios-core/index.js +1 -1
- package/.aios-core/infrastructure/scripts/batch-creator.js +1 -1
- package/.aios-core/infrastructure/scripts/component-generator.js +1 -1
- package/.aios-core/infrastructure/templates/coderabbit.yaml.template +279 -279
- package/.aios-core/infrastructure/templates/github-workflows/ci.yml.template +169 -169
- package/.aios-core/infrastructure/templates/github-workflows/pr-automation.yml.template +330 -330
- package/.aios-core/infrastructure/templates/github-workflows/release.yml.template +196 -196
- package/.aios-core/infrastructure/templates/gitignore/gitignore-aios-base.tmpl +63 -63
- package/.aios-core/infrastructure/templates/gitignore/gitignore-brownfield-merge.tmpl +18 -18
- package/.aios-core/infrastructure/templates/gitignore/gitignore-node.tmpl +85 -85
- package/.aios-core/infrastructure/templates/gitignore/gitignore-python.tmpl +145 -145
- package/.aios-core/infrastructure/tests/utilities-audit-results.json +500 -500
- package/.aios-core/infrastructure/tools/README.md +1 -1
- package/.aios-core/install-manifest.yaml +4 -1
- package/.aios-core/manifests/schema/manifest-schema.json +190 -190
- package/.aios-core/manifests/workers.csv +203 -203
- package/.aios-core/package.json +102 -102
- package/.aios-core/product/templates/activation-instructions-template.md +7 -7
- package/.aios-core/product/templates/adr.hbs +125 -125
- package/.aios-core/product/templates/component-react-tmpl.tsx +98 -98
- package/.aios-core/product/templates/dbdr.hbs +241 -241
- package/.aios-core/product/templates/engine/schemas/adr.schema.json +102 -102
- package/.aios-core/product/templates/engine/schemas/dbdr.schema.json +205 -205
- package/.aios-core/product/templates/engine/schemas/epic.schema.json +175 -175
- package/.aios-core/product/templates/engine/schemas/pmdr.schema.json +175 -175
- package/.aios-core/product/templates/engine/schemas/prd-v2.schema.json +300 -300
- package/.aios-core/product/templates/engine/schemas/prd.schema.json +152 -152
- package/.aios-core/product/templates/engine/schemas/story.schema.json +222 -222
- package/.aios-core/product/templates/engine/schemas/task.schema.json +154 -154
- package/.aios-core/product/templates/epic.hbs +212 -212
- package/.aios-core/product/templates/eslintrc-security.json +32 -32
- package/.aios-core/product/templates/github-actions-cd.yml +212 -212
- package/.aios-core/product/templates/github-actions-ci.yml +172 -172
- package/.aios-core/product/templates/pmdr.hbs +186 -186
- package/.aios-core/product/templates/prd-v2.0.hbs +216 -216
- package/.aios-core/product/templates/prd.hbs +201 -201
- package/.aios-core/product/templates/shock-report-tmpl.html +502 -502
- package/.aios-core/product/templates/story.hbs +263 -263
- package/.aios-core/product/templates/task.hbs +170 -170
- package/.aios-core/product/templates/tmpl-comment-on-examples.sql +158 -158
- package/.aios-core/product/templates/tmpl-migration-script.sql +91 -91
- package/.aios-core/product/templates/tmpl-rls-granular-policies.sql +104 -104
- package/.aios-core/product/templates/tmpl-rls-kiss-policy.sql +10 -10
- package/.aios-core/product/templates/tmpl-rls-roles.sql +135 -135
- package/.aios-core/product/templates/tmpl-rls-simple.sql +77 -77
- package/.aios-core/product/templates/tmpl-rls-tenant.sql +152 -152
- package/.aios-core/product/templates/tmpl-rollback-script.sql +77 -77
- package/.aios-core/product/templates/tmpl-seed-data.sql +140 -140
- package/.aios-core/product/templates/tmpl-smoke-test.sql +16 -16
- package/.aios-core/product/templates/tmpl-staging-copy-merge.sql +139 -139
- package/.aios-core/product/templates/tmpl-stored-proc.sql +140 -140
- package/.aios-core/product/templates/tmpl-trigger.sql +152 -152
- package/.aios-core/product/templates/tmpl-view-materialized.sql +133 -133
- package/.aios-core/product/templates/tmpl-view.sql +177 -177
- package/.aios-core/product/templates/token-exports-css-tmpl.css +240 -240
- package/.aios-core/quality/schemas/quality-metrics.schema.json +233 -233
- package/.aios-core/schemas/squad-schema.json +185 -0
- package/.aios-core/scripts/README.md +90 -322
- package/.aios-core/scripts/migrate-framework-docs.sh +300 -300
- package/.claude/rules/mcp-usage.md +116 -100
- package/LICENSE +48 -48
- package/README.md +3 -4
- package/bin/aios-init.js +11 -6
- package/bin/aios.js +2 -1
- package/package.json +2 -3
- package/packages/installer/package.json +39 -39
- package/packages/installer/tests/integration/environment-configuration.test.js +2 -2
- package/packages/installer/tests/unit/env-template.test.js +4 -3
- package/templates/squad/LICENSE +21 -21
- package/templates/squad/README.md +37 -37
- package/templates/squad/agents/example-agent.yaml +36 -36
- package/templates/squad/package.json +19 -19
- package/templates/squad/squad.yaml +25 -25
- package/templates/squad/tasks/example-task.yaml +46 -46
- package/templates/squad/templates/example-template.md +24 -24
- package/templates/squad/tests/example-agent.test.js +53 -53
- package/templates/squad/workflows/example-workflow.yaml +54 -54
- package/tools/diagnose-npx-issue.ps1 +96 -96
- package/tools/quick-diagnose.cmd +85 -85
- package/tools/quick-diagnose.ps1 +117 -117
- package/.aios-core/core/data/agent-config-requirements.yaml +0 -368
- package/.aios-core/core/data/aios-kb.md +0 -924
- package/.aios-core/core/data/workflow-patterns.yaml +0 -267
- package/.aios-core/product/templates/1mcp-config.yaml +0 -225
- package/.aios-core/scripts/context-detector.js +0 -226
- package/.aios-core/scripts/elicitation-engine.js +0 -385
- package/.aios-core/scripts/elicitation-session-manager.js +0 -300
- package/.claude/CLAUDE.md +0 -221
|
@@ -1,233 +1,233 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "https://aios.dev/schemas/quality-metrics.schema.json",
|
|
4
|
-
"title": "Quality Metrics",
|
|
5
|
-
"description": "Schema for quality gate metrics data",
|
|
6
|
-
"type": "object",
|
|
7
|
-
"required": ["version", "lastUpdated", "layers", "trends", "history"],
|
|
8
|
-
"properties": {
|
|
9
|
-
"version": {
|
|
10
|
-
"type": "string",
|
|
11
|
-
"const": "1.0",
|
|
12
|
-
"description": "Schema version"
|
|
13
|
-
},
|
|
14
|
-
"lastUpdated": {
|
|
15
|
-
"type": "string",
|
|
16
|
-
"format": "date-time",
|
|
17
|
-
"description": "Last time metrics were updated"
|
|
18
|
-
},
|
|
19
|
-
"retentionDays": {
|
|
20
|
-
"type": "integer",
|
|
21
|
-
"default": 30,
|
|
22
|
-
"minimum": 1,
|
|
23
|
-
"maximum": 365,
|
|
24
|
-
"description": "Number of days to retain history"
|
|
25
|
-
},
|
|
26
|
-
"layers": {
|
|
27
|
-
"type": "object",
|
|
28
|
-
"description": "Aggregated metrics per layer",
|
|
29
|
-
"properties": {
|
|
30
|
-
"layer1": { "$ref": "#/definitions/layerMetrics" },
|
|
31
|
-
"layer2": { "$ref": "#/definitions/layer2Metrics" },
|
|
32
|
-
"layer3": { "$ref": "#/definitions/layerMetrics" }
|
|
33
|
-
},
|
|
34
|
-
"additionalProperties": false
|
|
35
|
-
},
|
|
36
|
-
"trends": {
|
|
37
|
-
"type": "object",
|
|
38
|
-
"description": "Trend data over time",
|
|
39
|
-
"properties": {
|
|
40
|
-
"autoCatchRate": {
|
|
41
|
-
"type": "array",
|
|
42
|
-
"items": { "$ref": "#/definitions/trendPoint" },
|
|
43
|
-
"description": "Auto-catch rate trend (Layer 2 automated detection)"
|
|
44
|
-
},
|
|
45
|
-
"passRates": {
|
|
46
|
-
"type": "array",
|
|
47
|
-
"items": { "$ref": "#/definitions/trendPoint" },
|
|
48
|
-
"description": "Overall pass rate trend"
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
"additionalProperties": false
|
|
52
|
-
},
|
|
53
|
-
"history": {
|
|
54
|
-
"type": "array",
|
|
55
|
-
"items": { "$ref": "#/definitions/runRecord" },
|
|
56
|
-
"description": "Historical run records"
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
"definitions": {
|
|
60
|
-
"layerMetrics": {
|
|
61
|
-
"type": "object",
|
|
62
|
-
"description": "Aggregated metrics for a layer",
|
|
63
|
-
"properties": {
|
|
64
|
-
"passRate": {
|
|
65
|
-
"type": "number",
|
|
66
|
-
"minimum": 0,
|
|
67
|
-
"maximum": 1,
|
|
68
|
-
"description": "Pass rate (0-1)"
|
|
69
|
-
},
|
|
70
|
-
"avgTimeMs": {
|
|
71
|
-
"type": "integer",
|
|
72
|
-
"minimum": 0,
|
|
73
|
-
"description": "Average execution time in milliseconds"
|
|
74
|
-
},
|
|
75
|
-
"totalRuns": {
|
|
76
|
-
"type": "integer",
|
|
77
|
-
"minimum": 0,
|
|
78
|
-
"description": "Total number of runs"
|
|
79
|
-
},
|
|
80
|
-
"lastRun": {
|
|
81
|
-
"type": ["string", "null"],
|
|
82
|
-
"description": "Timestamp of last run (null if never run)"
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
"additionalProperties": false
|
|
86
|
-
},
|
|
87
|
-
"layer2Metrics": {
|
|
88
|
-
"type": "object",
|
|
89
|
-
"description": "Extended metrics for Layer 2 (PR automation)",
|
|
90
|
-
"properties": {
|
|
91
|
-
"passRate": {
|
|
92
|
-
"type": "number",
|
|
93
|
-
"minimum": 0,
|
|
94
|
-
"maximum": 1,
|
|
95
|
-
"description": "Pass rate (0-1)"
|
|
96
|
-
},
|
|
97
|
-
"avgTimeMs": {
|
|
98
|
-
"type": "integer",
|
|
99
|
-
"minimum": 0,
|
|
100
|
-
"description": "Average execution time in milliseconds"
|
|
101
|
-
},
|
|
102
|
-
"totalRuns": {
|
|
103
|
-
"type": "integer",
|
|
104
|
-
"minimum": 0,
|
|
105
|
-
"description": "Total number of runs"
|
|
106
|
-
},
|
|
107
|
-
"lastRun": {
|
|
108
|
-
"type": ["string", "null"],
|
|
109
|
-
"description": "Timestamp of last run (null if never run)"
|
|
110
|
-
},
|
|
111
|
-
"autoCatchRate": {
|
|
112
|
-
"type": "number",
|
|
113
|
-
"minimum": 0,
|
|
114
|
-
"description": "Rate of issues caught automatically"
|
|
115
|
-
},
|
|
116
|
-
"coderabbit": {
|
|
117
|
-
"type": "object",
|
|
118
|
-
"description": "CodeRabbit specific metrics",
|
|
119
|
-
"properties": {
|
|
120
|
-
"active": {
|
|
121
|
-
"type": "boolean",
|
|
122
|
-
"description": "Whether CodeRabbit is active"
|
|
123
|
-
},
|
|
124
|
-
"findingsCount": {
|
|
125
|
-
"type": "integer",
|
|
126
|
-
"minimum": 0,
|
|
127
|
-
"description": "Total findings count"
|
|
128
|
-
},
|
|
129
|
-
"severityBreakdown": {
|
|
130
|
-
"type": "object",
|
|
131
|
-
"properties": {
|
|
132
|
-
"critical": { "type": "integer", "minimum": 0 },
|
|
133
|
-
"high": { "type": "integer", "minimum": 0 },
|
|
134
|
-
"medium": { "type": "integer", "minimum": 0 },
|
|
135
|
-
"low": { "type": "integer", "minimum": 0 }
|
|
136
|
-
},
|
|
137
|
-
"additionalProperties": false
|
|
138
|
-
}
|
|
139
|
-
},
|
|
140
|
-
"additionalProperties": false
|
|
141
|
-
},
|
|
142
|
-
"quinn": {
|
|
143
|
-
"type": "object",
|
|
144
|
-
"description": "Quinn (QA agent) specific metrics",
|
|
145
|
-
"properties": {
|
|
146
|
-
"findingsCount": {
|
|
147
|
-
"type": "integer",
|
|
148
|
-
"minimum": 0,
|
|
149
|
-
"description": "Total findings count"
|
|
150
|
-
},
|
|
151
|
-
"topCategories": {
|
|
152
|
-
"type": "array",
|
|
153
|
-
"items": { "type": "string" },
|
|
154
|
-
"description": "Top issue categories"
|
|
155
|
-
}
|
|
156
|
-
},
|
|
157
|
-
"additionalProperties": false
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
"additionalProperties": false
|
|
161
|
-
},
|
|
162
|
-
"trendPoint": {
|
|
163
|
-
"type": "object",
|
|
164
|
-
"description": "A single point in a trend",
|
|
165
|
-
"required": ["date", "value"],
|
|
166
|
-
"properties": {
|
|
167
|
-
"date": {
|
|
168
|
-
"type": "string",
|
|
169
|
-
"format": "date",
|
|
170
|
-
"description": "Date of the data point (YYYY-MM-DD)"
|
|
171
|
-
},
|
|
172
|
-
"value": {
|
|
173
|
-
"type": "number",
|
|
174
|
-
"description": "Value at this point"
|
|
175
|
-
}
|
|
176
|
-
},
|
|
177
|
-
"additionalProperties": false
|
|
178
|
-
},
|
|
179
|
-
"runRecord": {
|
|
180
|
-
"type": "object",
|
|
181
|
-
"description": "Record of a single run",
|
|
182
|
-
"required": ["timestamp", "layer", "passed"],
|
|
183
|
-
"properties": {
|
|
184
|
-
"timestamp": {
|
|
185
|
-
"type": "string",
|
|
186
|
-
"format": "date-time",
|
|
187
|
-
"description": "When the run occurred"
|
|
188
|
-
},
|
|
189
|
-
"layer": {
|
|
190
|
-
"type": "integer",
|
|
191
|
-
"enum": [1, 2, 3],
|
|
192
|
-
"description": "Which layer was run"
|
|
193
|
-
},
|
|
194
|
-
"passed": {
|
|
195
|
-
"type": "boolean",
|
|
196
|
-
"description": "Whether the run passed"
|
|
197
|
-
},
|
|
198
|
-
"durationMs": {
|
|
199
|
-
"type": "integer",
|
|
200
|
-
"minimum": 0,
|
|
201
|
-
"description": "Duration in milliseconds"
|
|
202
|
-
},
|
|
203
|
-
"findingsCount": {
|
|
204
|
-
"type": "integer",
|
|
205
|
-
"minimum": 0,
|
|
206
|
-
"description": "Number of findings/issues"
|
|
207
|
-
},
|
|
208
|
-
"metadata": {
|
|
209
|
-
"type": "object",
|
|
210
|
-
"description": "Additional metadata for the run",
|
|
211
|
-
"properties": {
|
|
212
|
-
"storyId": { "type": "string" },
|
|
213
|
-
"branchName": { "type": "string" },
|
|
214
|
-
"commitHash": { "type": "string" },
|
|
215
|
-
"triggeredBy": { "type": "string" },
|
|
216
|
-
"severityBreakdown": {
|
|
217
|
-
"type": "object",
|
|
218
|
-
"properties": {
|
|
219
|
-
"critical": { "type": "integer" },
|
|
220
|
-
"high": { "type": "integer" },
|
|
221
|
-
"medium": { "type": "integer" },
|
|
222
|
-
"low": { "type": "integer" }
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
},
|
|
226
|
-
"additionalProperties": true
|
|
227
|
-
}
|
|
228
|
-
},
|
|
229
|
-
"additionalProperties": false
|
|
230
|
-
}
|
|
231
|
-
},
|
|
232
|
-
"additionalProperties": false
|
|
233
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://aios.dev/schemas/quality-metrics.schema.json",
|
|
4
|
+
"title": "Quality Metrics",
|
|
5
|
+
"description": "Schema for quality gate metrics data",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["version", "lastUpdated", "layers", "trends", "history"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"version": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"const": "1.0",
|
|
12
|
+
"description": "Schema version"
|
|
13
|
+
},
|
|
14
|
+
"lastUpdated": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"format": "date-time",
|
|
17
|
+
"description": "Last time metrics were updated"
|
|
18
|
+
},
|
|
19
|
+
"retentionDays": {
|
|
20
|
+
"type": "integer",
|
|
21
|
+
"default": 30,
|
|
22
|
+
"minimum": 1,
|
|
23
|
+
"maximum": 365,
|
|
24
|
+
"description": "Number of days to retain history"
|
|
25
|
+
},
|
|
26
|
+
"layers": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"description": "Aggregated metrics per layer",
|
|
29
|
+
"properties": {
|
|
30
|
+
"layer1": { "$ref": "#/definitions/layerMetrics" },
|
|
31
|
+
"layer2": { "$ref": "#/definitions/layer2Metrics" },
|
|
32
|
+
"layer3": { "$ref": "#/definitions/layerMetrics" }
|
|
33
|
+
},
|
|
34
|
+
"additionalProperties": false
|
|
35
|
+
},
|
|
36
|
+
"trends": {
|
|
37
|
+
"type": "object",
|
|
38
|
+
"description": "Trend data over time",
|
|
39
|
+
"properties": {
|
|
40
|
+
"autoCatchRate": {
|
|
41
|
+
"type": "array",
|
|
42
|
+
"items": { "$ref": "#/definitions/trendPoint" },
|
|
43
|
+
"description": "Auto-catch rate trend (Layer 2 automated detection)"
|
|
44
|
+
},
|
|
45
|
+
"passRates": {
|
|
46
|
+
"type": "array",
|
|
47
|
+
"items": { "$ref": "#/definitions/trendPoint" },
|
|
48
|
+
"description": "Overall pass rate trend"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"additionalProperties": false
|
|
52
|
+
},
|
|
53
|
+
"history": {
|
|
54
|
+
"type": "array",
|
|
55
|
+
"items": { "$ref": "#/definitions/runRecord" },
|
|
56
|
+
"description": "Historical run records"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"definitions": {
|
|
60
|
+
"layerMetrics": {
|
|
61
|
+
"type": "object",
|
|
62
|
+
"description": "Aggregated metrics for a layer",
|
|
63
|
+
"properties": {
|
|
64
|
+
"passRate": {
|
|
65
|
+
"type": "number",
|
|
66
|
+
"minimum": 0,
|
|
67
|
+
"maximum": 1,
|
|
68
|
+
"description": "Pass rate (0-1)"
|
|
69
|
+
},
|
|
70
|
+
"avgTimeMs": {
|
|
71
|
+
"type": "integer",
|
|
72
|
+
"minimum": 0,
|
|
73
|
+
"description": "Average execution time in milliseconds"
|
|
74
|
+
},
|
|
75
|
+
"totalRuns": {
|
|
76
|
+
"type": "integer",
|
|
77
|
+
"minimum": 0,
|
|
78
|
+
"description": "Total number of runs"
|
|
79
|
+
},
|
|
80
|
+
"lastRun": {
|
|
81
|
+
"type": ["string", "null"],
|
|
82
|
+
"description": "Timestamp of last run (null if never run)"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"additionalProperties": false
|
|
86
|
+
},
|
|
87
|
+
"layer2Metrics": {
|
|
88
|
+
"type": "object",
|
|
89
|
+
"description": "Extended metrics for Layer 2 (PR automation)",
|
|
90
|
+
"properties": {
|
|
91
|
+
"passRate": {
|
|
92
|
+
"type": "number",
|
|
93
|
+
"minimum": 0,
|
|
94
|
+
"maximum": 1,
|
|
95
|
+
"description": "Pass rate (0-1)"
|
|
96
|
+
},
|
|
97
|
+
"avgTimeMs": {
|
|
98
|
+
"type": "integer",
|
|
99
|
+
"minimum": 0,
|
|
100
|
+
"description": "Average execution time in milliseconds"
|
|
101
|
+
},
|
|
102
|
+
"totalRuns": {
|
|
103
|
+
"type": "integer",
|
|
104
|
+
"minimum": 0,
|
|
105
|
+
"description": "Total number of runs"
|
|
106
|
+
},
|
|
107
|
+
"lastRun": {
|
|
108
|
+
"type": ["string", "null"],
|
|
109
|
+
"description": "Timestamp of last run (null if never run)"
|
|
110
|
+
},
|
|
111
|
+
"autoCatchRate": {
|
|
112
|
+
"type": "number",
|
|
113
|
+
"minimum": 0,
|
|
114
|
+
"description": "Rate of issues caught automatically"
|
|
115
|
+
},
|
|
116
|
+
"coderabbit": {
|
|
117
|
+
"type": "object",
|
|
118
|
+
"description": "CodeRabbit specific metrics",
|
|
119
|
+
"properties": {
|
|
120
|
+
"active": {
|
|
121
|
+
"type": "boolean",
|
|
122
|
+
"description": "Whether CodeRabbit is active"
|
|
123
|
+
},
|
|
124
|
+
"findingsCount": {
|
|
125
|
+
"type": "integer",
|
|
126
|
+
"minimum": 0,
|
|
127
|
+
"description": "Total findings count"
|
|
128
|
+
},
|
|
129
|
+
"severityBreakdown": {
|
|
130
|
+
"type": "object",
|
|
131
|
+
"properties": {
|
|
132
|
+
"critical": { "type": "integer", "minimum": 0 },
|
|
133
|
+
"high": { "type": "integer", "minimum": 0 },
|
|
134
|
+
"medium": { "type": "integer", "minimum": 0 },
|
|
135
|
+
"low": { "type": "integer", "minimum": 0 }
|
|
136
|
+
},
|
|
137
|
+
"additionalProperties": false
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"additionalProperties": false
|
|
141
|
+
},
|
|
142
|
+
"quinn": {
|
|
143
|
+
"type": "object",
|
|
144
|
+
"description": "Quinn (QA agent) specific metrics",
|
|
145
|
+
"properties": {
|
|
146
|
+
"findingsCount": {
|
|
147
|
+
"type": "integer",
|
|
148
|
+
"minimum": 0,
|
|
149
|
+
"description": "Total findings count"
|
|
150
|
+
},
|
|
151
|
+
"topCategories": {
|
|
152
|
+
"type": "array",
|
|
153
|
+
"items": { "type": "string" },
|
|
154
|
+
"description": "Top issue categories"
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
"additionalProperties": false
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"additionalProperties": false
|
|
161
|
+
},
|
|
162
|
+
"trendPoint": {
|
|
163
|
+
"type": "object",
|
|
164
|
+
"description": "A single point in a trend",
|
|
165
|
+
"required": ["date", "value"],
|
|
166
|
+
"properties": {
|
|
167
|
+
"date": {
|
|
168
|
+
"type": "string",
|
|
169
|
+
"format": "date",
|
|
170
|
+
"description": "Date of the data point (YYYY-MM-DD)"
|
|
171
|
+
},
|
|
172
|
+
"value": {
|
|
173
|
+
"type": "number",
|
|
174
|
+
"description": "Value at this point"
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
"additionalProperties": false
|
|
178
|
+
},
|
|
179
|
+
"runRecord": {
|
|
180
|
+
"type": "object",
|
|
181
|
+
"description": "Record of a single run",
|
|
182
|
+
"required": ["timestamp", "layer", "passed"],
|
|
183
|
+
"properties": {
|
|
184
|
+
"timestamp": {
|
|
185
|
+
"type": "string",
|
|
186
|
+
"format": "date-time",
|
|
187
|
+
"description": "When the run occurred"
|
|
188
|
+
},
|
|
189
|
+
"layer": {
|
|
190
|
+
"type": "integer",
|
|
191
|
+
"enum": [1, 2, 3],
|
|
192
|
+
"description": "Which layer was run"
|
|
193
|
+
},
|
|
194
|
+
"passed": {
|
|
195
|
+
"type": "boolean",
|
|
196
|
+
"description": "Whether the run passed"
|
|
197
|
+
},
|
|
198
|
+
"durationMs": {
|
|
199
|
+
"type": "integer",
|
|
200
|
+
"minimum": 0,
|
|
201
|
+
"description": "Duration in milliseconds"
|
|
202
|
+
},
|
|
203
|
+
"findingsCount": {
|
|
204
|
+
"type": "integer",
|
|
205
|
+
"minimum": 0,
|
|
206
|
+
"description": "Number of findings/issues"
|
|
207
|
+
},
|
|
208
|
+
"metadata": {
|
|
209
|
+
"type": "object",
|
|
210
|
+
"description": "Additional metadata for the run",
|
|
211
|
+
"properties": {
|
|
212
|
+
"storyId": { "type": "string" },
|
|
213
|
+
"branchName": { "type": "string" },
|
|
214
|
+
"commitHash": { "type": "string" },
|
|
215
|
+
"triggeredBy": { "type": "string" },
|
|
216
|
+
"severityBreakdown": {
|
|
217
|
+
"type": "object",
|
|
218
|
+
"properties": {
|
|
219
|
+
"critical": { "type": "integer" },
|
|
220
|
+
"high": { "type": "integer" },
|
|
221
|
+
"medium": { "type": "integer" },
|
|
222
|
+
"low": { "type": "integer" }
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
"additionalProperties": true
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
"additionalProperties": false
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
"additionalProperties": false
|
|
233
|
+
}
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://github.com/SynkraAI/aios-core/schemas/squad-schema.json",
|
|
4
|
+
"title": "AIOS Squad Manifest",
|
|
5
|
+
"description": "Schema for squad.yaml manifest files (Task-First Architecture)",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["name", "version"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"name": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"pattern": "^[a-z0-9-]+$",
|
|
12
|
+
"description": "Squad name in kebab-case (e.g., my-squad-name)",
|
|
13
|
+
"minLength": 2,
|
|
14
|
+
"maxLength": 50
|
|
15
|
+
},
|
|
16
|
+
"version": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"pattern": "^\\d+\\.\\d+\\.\\d+$",
|
|
19
|
+
"description": "Semantic version (e.g., 1.0.0)"
|
|
20
|
+
},
|
|
21
|
+
"short-title": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"maxLength": 100,
|
|
24
|
+
"description": "Short title for the squad"
|
|
25
|
+
},
|
|
26
|
+
"description": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"maxLength": 500,
|
|
29
|
+
"description": "Brief description of the squad's purpose"
|
|
30
|
+
},
|
|
31
|
+
"author": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"description": "Author name or organization"
|
|
34
|
+
},
|
|
35
|
+
"license": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"enum": ["MIT", "Apache-2.0", "ISC", "GPL-3.0", "UNLICENSED"],
|
|
38
|
+
"default": "MIT",
|
|
39
|
+
"description": "License type"
|
|
40
|
+
},
|
|
41
|
+
"slashPrefix": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"pattern": "^[a-z0-9-]+$",
|
|
44
|
+
"description": "Prefix for slash commands (e.g., 'etl' for /etl-*)"
|
|
45
|
+
},
|
|
46
|
+
"aios": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"properties": {
|
|
49
|
+
"minVersion": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"pattern": "^\\d+\\.\\d+\\.\\d+$",
|
|
52
|
+
"description": "Minimum AIOS version required"
|
|
53
|
+
},
|
|
54
|
+
"type": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"enum": ["squad"],
|
|
57
|
+
"description": "Must be 'squad'"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"requires": {
|
|
62
|
+
"type": "object",
|
|
63
|
+
"description": "Runtime requirements",
|
|
64
|
+
"properties": {
|
|
65
|
+
"node": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"description": "Node.js version requirement (e.g., >=18.0.0)"
|
|
68
|
+
},
|
|
69
|
+
"aios": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"description": "AIOS version requirement (e.g., >=2.0.0)"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"tags": {
|
|
76
|
+
"type": "array",
|
|
77
|
+
"items": { "type": "string" },
|
|
78
|
+
"description": "Keywords for discovery"
|
|
79
|
+
},
|
|
80
|
+
"components": {
|
|
81
|
+
"type": "object",
|
|
82
|
+
"description": "Task-first: tasks are primary entry point",
|
|
83
|
+
"properties": {
|
|
84
|
+
"tasks": {
|
|
85
|
+
"type": "array",
|
|
86
|
+
"items": { "type": "string" },
|
|
87
|
+
"description": "List of task files (primary - task-first!)"
|
|
88
|
+
},
|
|
89
|
+
"agents": {
|
|
90
|
+
"type": "array",
|
|
91
|
+
"items": { "type": "string" },
|
|
92
|
+
"description": "List of agent definition files"
|
|
93
|
+
},
|
|
94
|
+
"workflows": {
|
|
95
|
+
"type": "array",
|
|
96
|
+
"items": { "type": "string" },
|
|
97
|
+
"description": "List of workflow files"
|
|
98
|
+
},
|
|
99
|
+
"checklists": {
|
|
100
|
+
"type": "array",
|
|
101
|
+
"items": { "type": "string" },
|
|
102
|
+
"description": "List of checklist files"
|
|
103
|
+
},
|
|
104
|
+
"templates": {
|
|
105
|
+
"type": "array",
|
|
106
|
+
"items": { "type": "string" },
|
|
107
|
+
"description": "List of template files"
|
|
108
|
+
},
|
|
109
|
+
"tools": {
|
|
110
|
+
"type": "array",
|
|
111
|
+
"items": { "type": "string" },
|
|
112
|
+
"description": "List of tool scripts"
|
|
113
|
+
},
|
|
114
|
+
"scripts": {
|
|
115
|
+
"type": "array",
|
|
116
|
+
"items": { "type": "string" },
|
|
117
|
+
"description": "List of automation scripts"
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"scripts": {
|
|
122
|
+
"type": "object",
|
|
123
|
+
"description": "Script definitions organized by category",
|
|
124
|
+
"additionalProperties": {
|
|
125
|
+
"type": "array",
|
|
126
|
+
"items": { "type": "string" }
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"config": {
|
|
130
|
+
"type": "object",
|
|
131
|
+
"description": "Configuration inheritance from aios-core",
|
|
132
|
+
"properties": {
|
|
133
|
+
"extends": {
|
|
134
|
+
"type": "string",
|
|
135
|
+
"enum": ["extend", "override", "none"],
|
|
136
|
+
"default": "extend",
|
|
137
|
+
"description": "How to handle core config (extend adds rules, override replaces)"
|
|
138
|
+
},
|
|
139
|
+
"coding-standards": {
|
|
140
|
+
"type": "string",
|
|
141
|
+
"description": "Path to squad-specific coding standards (relative to squad root)"
|
|
142
|
+
},
|
|
143
|
+
"tech-stack": {
|
|
144
|
+
"type": "string",
|
|
145
|
+
"description": "Path to squad-specific tech stack doc"
|
|
146
|
+
},
|
|
147
|
+
"source-tree": {
|
|
148
|
+
"type": "string",
|
|
149
|
+
"description": "Path to squad-specific source tree doc"
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"dependencies": {
|
|
154
|
+
"type": "object",
|
|
155
|
+
"properties": {
|
|
156
|
+
"node": {
|
|
157
|
+
"type": "array",
|
|
158
|
+
"items": { "type": "string" },
|
|
159
|
+
"description": "Node.js package dependencies"
|
|
160
|
+
},
|
|
161
|
+
"python": {
|
|
162
|
+
"type": "array",
|
|
163
|
+
"items": { "type": "string" },
|
|
164
|
+
"description": "Python package dependencies"
|
|
165
|
+
},
|
|
166
|
+
"squads": {
|
|
167
|
+
"type": "array",
|
|
168
|
+
"items": { "type": "string" },
|
|
169
|
+
"description": "Other squads this depends on"
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
"mcps": {
|
|
174
|
+
"type": "object",
|
|
175
|
+
"description": "MCP server configurations",
|
|
176
|
+
"additionalProperties": true
|
|
177
|
+
},
|
|
178
|
+
"integration": {
|
|
179
|
+
"type": "object",
|
|
180
|
+
"description": "Integration configurations",
|
|
181
|
+
"additionalProperties": true
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
"additionalProperties": true
|
|
185
|
+
}
|