aios-core 2.1.4 → 2.1.6

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.
Files changed (27) hide show
  1. package/.aios-core/development/tasks/analyze-brownfield.md +456 -456
  2. package/.aios-core/development/tasks/setup-project-docs.md +440 -444
  3. package/.aios-core/infrastructure/scripts/documentation-integrity/brownfield-analyzer.js +501 -501
  4. package/.aios-core/infrastructure/scripts/documentation-integrity/config-generator.js +368 -329
  5. package/.aios-core/infrastructure/scripts/documentation-integrity/deployment-config-loader.js +308 -282
  6. package/.aios-core/infrastructure/scripts/documentation-integrity/doc-generator.js +331 -331
  7. package/.aios-core/infrastructure/scripts/documentation-integrity/gitignore-generator.js +312 -312
  8. package/.aios-core/infrastructure/scripts/documentation-integrity/index.js +74 -74
  9. package/.aios-core/infrastructure/scripts/documentation-integrity/mode-detector.js +389 -358
  10. package/.aios-core/infrastructure/scripts/llm-routing/install-llm-routing.js +6 -6
  11. package/.aios-core/infrastructure/templates/core-config/core-config-brownfield.tmpl.yaml +176 -182
  12. package/.aios-core/infrastructure/templates/core-config/core-config-greenfield.tmpl.yaml +127 -127
  13. package/.aios-core/infrastructure/templates/project-docs/coding-standards-tmpl.md +346 -346
  14. package/.aios-core/infrastructure/templates/project-docs/source-tree-tmpl.md +177 -177
  15. package/.aios-core/infrastructure/templates/project-docs/tech-stack-tmpl.md +267 -267
  16. package/package.json +1 -1
  17. package/packages/installer/src/config/templates/env-template.js +2 -2
  18. package/packages/installer/src/wizard/wizard.js +1 -1
  19. package/packages/installer/tests/integration/environment-configuration.test.js +2 -1
  20. package/packages/installer/tests/unit/env-template.test.js +3 -2
  21. package/src/wizard/index.js +2 -2
  22. package/.aios-core/development/tasks/validate-structure.md +0 -243
  23. package/.aios-core/infrastructure/scripts/source-tree-guardian/index.js +0 -375
  24. package/.aios-core/infrastructure/scripts/source-tree-guardian/manifest-generator.js +0 -410
  25. package/.aios-core/infrastructure/scripts/source-tree-guardian/rules/naming-rules.yaml +0 -285
  26. package/.aios-core/infrastructure/scripts/source-tree-guardian/rules/placement-rules.yaml +0 -262
  27. package/.aios-core/infrastructure/scripts/source-tree-guardian/validator.js +0 -468
@@ -1,262 +0,0 @@
1
- # Placement Rules for AIOS Source Tree
2
- # Version: 1.0.0
3
- # Last Updated: 2025-12-14
4
- # Story: 6.8 - Source-Tree Guardian
5
-
6
- version: "1.0"
7
- last_updated: "2025-12-14"
8
-
9
- # =============================================================================
10
- # PLACEMENT RULES
11
- # Rules define where specific file types should be placed based on context
12
- # =============================================================================
13
-
14
- rules:
15
- # ---------------------------------------------------------------------------
16
- # AGENT DEFINITIONS
17
- # ---------------------------------------------------------------------------
18
- - id: agent-definition
19
- pattern: "*.md"
20
- context: "agent definition"
21
- location: ".aios-core/development/agents/"
22
- naming: "{agent-name}.md"
23
- naming_convention: kebab-case
24
- description: "Agent persona definitions with YAML frontmatter"
25
- examples:
26
- - "dev.md"
27
- - "qa.md"
28
- - "architect.md"
29
-
30
- # ---------------------------------------------------------------------------
31
- # INFRASTRUCTURE SCRIPTS
32
- # ---------------------------------------------------------------------------
33
- - id: infrastructure-script
34
- pattern: "*.js"
35
- context: "infrastructure script"
36
- location: ".aios-core/infrastructure/scripts/"
37
- naming: "{script-name}.js"
38
- naming_convention: kebab-case
39
- description: "Framework infrastructure utilities and automation scripts"
40
- examples:
41
- - "greeting-builder.js"
42
- - "backlog-manager.js"
43
- - "validator.js"
44
-
45
- # ---------------------------------------------------------------------------
46
- # DEVELOPMENT TASKS
47
- # ---------------------------------------------------------------------------
48
- - id: task-definition
49
- pattern: "*.md"
50
- context: "task definition"
51
- location: ".aios-core/development/tasks/"
52
- naming: "{task-name}.md"
53
- naming_convention: kebab-case
54
- description: "Executable task workflows for agents"
55
- examples:
56
- - "develop-story.md"
57
- - "validate-structure.md"
58
- - "apply-qa-fixes.md"
59
-
60
- # ---------------------------------------------------------------------------
61
- # TOOL DEFINITIONS
62
- # ---------------------------------------------------------------------------
63
- - id: cli-tool
64
- pattern: "*.yaml"
65
- context: "CLI tool"
66
- location: ".aios-core/infrastructure/tools/cli/"
67
- naming: "{tool-name}.yaml"
68
- naming_convention: kebab-case
69
- description: "CLI tool wrapper configurations"
70
- examples:
71
- - "github-cli.yaml"
72
- - "railway-cli.yaml"
73
-
74
- - id: mcp-tool
75
- pattern: "*.yaml"
76
- context: "MCP tool"
77
- location: ".aios-core/infrastructure/tools/mcp/"
78
- naming: "{tool-name}.yaml"
79
- naming_convention: kebab-case
80
- description: "MCP server configurations"
81
- examples:
82
- - "context7.yaml"
83
- - "desktop-commander.yaml"
84
-
85
- # ---------------------------------------------------------------------------
86
- # TEMPLATES
87
- # ---------------------------------------------------------------------------
88
- - id: template-yaml
89
- pattern: "*-tmpl.yaml"
90
- context: "template"
91
- location: ".aios-core/product/templates/"
92
- naming: "{template-name}-tmpl.yaml"
93
- naming_convention: kebab-case
94
- description: "YAML document templates"
95
- examples:
96
- - "story-tmpl.yaml"
97
- - "prd-tmpl.yaml"
98
-
99
- - id: template-md
100
- pattern: "*-tmpl.md"
101
- context: "template"
102
- location: ".aios-core/product/templates/"
103
- naming: "{template-name}-tmpl.md"
104
- naming_convention: kebab-case
105
- description: "Markdown document templates"
106
- examples:
107
- - "epic-tmpl.md"
108
-
109
- # ---------------------------------------------------------------------------
110
- # CHECKLISTS
111
- # ---------------------------------------------------------------------------
112
- - id: checklist
113
- pattern: "*-checklist.md"
114
- context: "checklist"
115
- location: ".aios-core/product/checklists/"
116
- naming: "{checklist-name}-checklist.md"
117
- naming_convention: kebab-case
118
- description: "Validation and review checklists"
119
- examples:
120
- - "po-master-checklist.md"
121
- - "story-draft-checklist.md"
122
-
123
- # ---------------------------------------------------------------------------
124
- # DOCUMENTATION
125
- # ---------------------------------------------------------------------------
126
- - id: user-guide
127
- pattern: "*.md"
128
- context: "user guide"
129
- location: "docs/guides/"
130
- naming: "{guide-name}.md"
131
- naming_convention: kebab-case
132
- description: "User-facing how-to guides"
133
-
134
- - id: architecture-doc
135
- pattern: "*.md"
136
- context: "architecture document"
137
- location: "docs/architecture/"
138
- naming: "{doc-name}.md"
139
- naming_convention: kebab-case
140
- description: "Architecture documentation and standards"
141
-
142
- # ---------------------------------------------------------------------------
143
- # STORIES
144
- # ---------------------------------------------------------------------------
145
- - id: story
146
- pattern: "story-*.md"
147
- context: "development story"
148
- location: "docs/stories/"
149
- naming: "story-{id}.md"
150
- naming_convention: kebab-case
151
- description: "Development story files"
152
- notes: "Stories should be organized by version/sprint subdirectories"
153
-
154
- # ---------------------------------------------------------------------------
155
- # TESTS
156
- # ---------------------------------------------------------------------------
157
- - id: unit-test
158
- pattern: "*.test.js"
159
- context: "unit test"
160
- location: "tests/unit/"
161
- naming: "{module-name}.test.js"
162
- naming_convention: kebab-case
163
- description: "Unit test files"
164
-
165
- - id: integration-test
166
- pattern: "*.test.js"
167
- context: "integration test"
168
- location: "tests/integration/"
169
- naming: "{feature-name}.test.js"
170
- naming_convention: kebab-case
171
- description: "Integration test files"
172
-
173
- # ---------------------------------------------------------------------------
174
- # UTILITIES
175
- # ---------------------------------------------------------------------------
176
- - id: utility-script
177
- pattern: "*.js"
178
- context: "utility script"
179
- location: ".aios-core/core/utils/"
180
- naming: "{utility-name}.js"
181
- naming_convention: kebab-case
182
- description: "Core utility functions"
183
-
184
- # =============================================================================
185
- # VIOLATION RULES
186
- # Anti-patterns that should be flagged as errors
187
- # =============================================================================
188
-
189
- violations:
190
- - id: scripts-at-root
191
- pattern: "scripts/**/*"
192
- at_root: true
193
- message: "Scripts at root level are not allowed. Use .aios-core/infrastructure/scripts/ instead."
194
- severity: error
195
- suggested_location: ".aios-core/infrastructure/scripts/"
196
-
197
- - id: tools-at-root
198
- pattern: "tools/**/*"
199
- at_root: true
200
- exclude_patterns:
201
- - "tools/cli.js"
202
- - "tools/package-builder.js"
203
- - "tools/installer/**"
204
- message: "Tool definitions at root level are not allowed. Use .aios-core/infrastructure/tools/ instead."
205
- severity: error
206
- suggested_location: ".aios-core/infrastructure/tools/"
207
-
208
- - id: agents-wrong-location
209
- pattern: "agents/**/*.md"
210
- at_root: true
211
- message: "Agent files at root level are not allowed. Use .aios-core/development/agents/ instead."
212
- severity: error
213
- suggested_location: ".aios-core/development/agents/"
214
-
215
- - id: tasks-wrong-location
216
- pattern: "tasks/**/*.md"
217
- at_root: true
218
- message: "Task files at root level are not allowed. Use .aios-core/development/tasks/ instead."
219
- severity: error
220
- suggested_location: ".aios-core/development/tasks/"
221
-
222
- - id: templates-wrong-location
223
- pattern: "templates/**/*"
224
- at_root: true
225
- message: "Template files at root level are not allowed. Use .aios-core/product/templates/ instead."
226
- severity: error
227
- suggested_location: ".aios-core/product/templates/"
228
-
229
- # =============================================================================
230
- # EXCLUSIONS
231
- # Paths that should be ignored during validation
232
- # =============================================================================
233
-
234
- exclusions:
235
- directories:
236
- - node_modules
237
- - .git
238
- - dist
239
- - build
240
- - coverage
241
- - .cache
242
- - .vscode
243
- - .cursor
244
- - outputs
245
- - .ai
246
- files:
247
- - "*.log"
248
- - "*.tmp"
249
- - ".DS_Store"
250
- - "Thumbs.db"
251
- patterns:
252
- - "**/*.min.js"
253
- - "**/*.bundle.js"
254
-
255
- # =============================================================================
256
- # CONFIGURATION
257
- # =============================================================================
258
-
259
- config:
260
- strict_mode: false # If true, all files must match a rule
261
- allow_custom_locations: true # Allow approved deviations with documentation
262
- report_format: "detailed" # minimal, detailed, json