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,177 +1,177 @@
1
- # {{PROJECT_NAME}} Source Tree Standard
2
-
3
- > **Auto-generated by AIOS** on {{GENERATED_DATE}}
4
- > **Mode:** {{INSTALLATION_MODE}}
5
- > **Tech Stack:** {{TECH_STACK}}
6
-
7
- ## Overview
8
-
9
- This document defines the directory structure and file organization standards for **{{PROJECT_NAME}}**.
10
-
11
- ## Directory Structure
12
-
13
- ```
14
- {{PROJECT_NAME}}/
15
- ├── .aios-core/ # AIOS configuration
16
- │ └── core-config.yaml # Project configuration
17
-
18
- ├── .github/ # GitHub configuration
19
- │ └── workflows/ # CI/CD workflows
20
- │ ├── quality-gates.yml # Quality checks
21
- │ └── deploy.yml # Deployment automation
22
-
23
- ├── docs/ # Documentation
24
- │ ├── architecture/ # Project architecture docs
25
- │ │ ├── source-tree.md # THIS FILE
26
- │ │ ├── coding-standards.md # Coding conventions
27
- │ │ └── tech-stack.md # Technology decisions
28
- │ ├── guides/ # User guides
29
- │ └── api/ # API documentation
30
-
31
- {{#if IS_NODE}}
32
- ├── src/ # Source code
33
- │ ├── index.{{FILE_EXT}} # Entry point
34
- │ ├── config/ # Configuration modules
35
- │ ├── services/ # Business logic
36
- │ ├── utils/ # Utility functions
37
- │ └── types/ # TypeScript types (if applicable)
38
-
39
- ├── tests/ # Test files
40
- │ ├── unit/ # Unit tests
41
- │ ├── integration/ # Integration tests
42
- │ └── fixtures/ # Test fixtures
43
-
44
- ├── scripts/ # Build and utility scripts
45
-
46
- ├── package.json # Node.js dependencies
47
- ├── tsconfig.json # TypeScript config (if applicable)
48
- {{/if}}
49
- {{#if IS_PYTHON}}
50
- ├── {{PYTHON_PACKAGE_NAME}}/ # Python package
51
- │ ├── __init__.py # Package init
52
- │ ├── main.py # Entry point
53
- │ ├── config/ # Configuration
54
- │ ├── services/ # Business logic
55
- │ └── utils/ # Utilities
56
-
57
- ├── tests/ # Test files
58
- │ ├── unit/ # Unit tests
59
- │ ├── integration/ # Integration tests
60
- │ └── conftest.py # Pytest configuration
61
-
62
- ├── requirements.txt # Python dependencies
63
- ├── pyproject.toml # Project configuration
64
- {{/if}}
65
- {{#if IS_GO}}
66
- ├── cmd/ # Command entry points
67
- │ └── {{PROJECT_NAME}}/
68
- │ └── main.go # Main entry point
69
-
70
- ├── internal/ # Private packages
71
- │ ├── config/ # Configuration
72
- │ ├── services/ # Business logic
73
- │ └── utils/ # Utilities
74
-
75
- ├── pkg/ # Public packages
76
-
77
- ├── go.mod # Go modules
78
- ├── go.sum # Dependency checksums
79
- {{/if}}
80
-
81
- ├── .gitignore # Git ignore rules
82
- ├── .env.example # Environment template
83
- └── README.md # Project documentation
84
- ```
85
-
86
- ## File Placement Rules
87
-
88
- ### Documentation Files
89
-
90
- | File Pattern | Location | Purpose |
91
- |--------------|----------|---------|
92
- | `*.md` (project docs) | `docs/` | Project documentation |
93
- | Architecture docs | `docs/architecture/` | Technical standards |
94
- | User guides | `docs/guides/` | How-to documentation |
95
- | API docs | `docs/api/` | API reference |
96
-
97
- ### Source Code
98
-
99
- | File Pattern | Location | Purpose |
100
- |--------------|----------|---------|
101
- {{#if IS_NODE}}
102
- | `*.js`, `*.ts` | `src/` | Application source code |
103
- | `*.test.js`, `*.test.ts` | `tests/` | Test files |
104
- | `*.d.ts` | `src/types/` | TypeScript declarations |
105
- {{/if}}
106
- {{#if IS_PYTHON}}
107
- | `*.py` | `{{PYTHON_PACKAGE_NAME}}/` | Application source code |
108
- | `test_*.py` | `tests/` | Test files |
109
- {{/if}}
110
- {{#if IS_GO}}
111
- | `*.go` | `cmd/`, `internal/`, `pkg/` | Go source files |
112
- | `*_test.go` | Same as source | Test files |
113
- {{/if}}
114
-
115
- ### Configuration Files
116
-
117
- | File | Location | Purpose |
118
- |------|----------|---------|
119
- | `.aios-core/core-config.yaml` | Root | AIOS configuration |
120
- | `.env`, `.env.*` | Root | Environment variables |
121
- | `.gitignore` | Root | Git ignore rules |
122
- {{#if IS_NODE}}
123
- | `package.json` | Root | Node.js dependencies |
124
- | `tsconfig.json` | Root | TypeScript configuration |
125
- | `.eslintrc.*` | Root | ESLint configuration |
126
- | `.prettierrc` | Root | Prettier configuration |
127
- {{/if}}
128
- {{#if IS_PYTHON}}
129
- | `pyproject.toml` | Root | Python project config |
130
- | `requirements.txt` | Root | Python dependencies |
131
- | `.flake8` | Root | Flake8 configuration |
132
- {{/if}}
133
-
134
- ## Anti-Patterns (Files NOT Allowed at Root)
135
-
136
- The following files should NOT be placed at the project root:
137
-
138
- | Pattern | Correct Location | Reason |
139
- |---------|------------------|--------|
140
- | `*.md` (except README) | `docs/` | Documentation belongs in docs |
141
- {{#if IS_NODE}}
142
- | `*.js`, `*.ts` (source) | `src/` | Source code belongs in src |
143
- | `*.test.js` | `tests/` | Tests belong in tests |
144
- {{/if}}
145
- {{#if IS_PYTHON}}
146
- | `*.py` (source) | `{{PYTHON_PACKAGE_NAME}}/` | Source code belongs in package |
147
- | `test_*.py` | `tests/` | Tests belong in tests |
148
- {{/if}}
149
- | Temporary files | N/A | Should not be committed |
150
-
151
- ## Naming Conventions
152
-
153
- ### Directories
154
-
155
- - Use **kebab-case** for directory names: `my-feature/`
156
- - Use lowercase: `services/` not `Services/`
157
-
158
- ### Files
159
-
160
- {{#if IS_NODE}}
161
- - Source files: **kebab-case** - `user-service.js`
162
- - Test files: **kebab-case** with `.test` suffix - `user-service.test.js`
163
- - React components: **PascalCase** - `UserProfile.tsx`
164
- {{/if}}
165
- {{#if IS_PYTHON}}
166
- - Source files: **snake_case** - `user_service.py`
167
- - Test files: **snake_case** with `test_` prefix - `test_user_service.py`
168
- {{/if}}
169
- {{#if IS_GO}}
170
- - Source files: **snake_case** - `user_service.go`
171
- - Test files: **snake_case** with `_test` suffix - `user_service_test.go`
172
- {{/if}}
173
-
174
- ---
175
-
176
- *Generated by AIOS Documentation Integrity System*
177
- *Template Version: 1.0.0*
1
+ # {{PROJECT_NAME}} Source Tree Standard
2
+
3
+ > **Auto-generated by AIOS** on {{GENERATED_DATE}}
4
+ > **Mode:** {{INSTALLATION_MODE}}
5
+ > **Tech Stack:** {{TECH_STACK}}
6
+
7
+ ## Overview
8
+
9
+ This document defines the directory structure and file organization standards for **{{PROJECT_NAME}}**.
10
+
11
+ ## Directory Structure
12
+
13
+ ```
14
+ {{PROJECT_NAME}}/
15
+ ├── .aios-core/ # AIOS configuration
16
+ │ └── core-config.yaml # Project configuration
17
+
18
+ ├── .github/ # GitHub configuration
19
+ │ └── workflows/ # CI/CD workflows
20
+ │ ├── quality-gates.yml # Quality checks
21
+ │ └── deploy.yml # Deployment automation
22
+
23
+ ├── docs/ # Documentation
24
+ │ ├── architecture/ # Project architecture docs
25
+ │ │ ├── source-tree.md # THIS FILE
26
+ │ │ ├── coding-standards.md # Coding conventions
27
+ │ │ └── tech-stack.md # Technology decisions
28
+ │ ├── guides/ # User guides
29
+ │ └── api/ # API documentation
30
+
31
+ {{#if IS_NODE}}
32
+ ├── src/ # Source code
33
+ │ ├── index.{{FILE_EXT}} # Entry point
34
+ │ ├── config/ # Configuration modules
35
+ │ ├── services/ # Business logic
36
+ │ ├── utils/ # Utility functions
37
+ │ └── types/ # TypeScript types (if applicable)
38
+
39
+ ├── tests/ # Test files
40
+ │ ├── unit/ # Unit tests
41
+ │ ├── integration/ # Integration tests
42
+ │ └── fixtures/ # Test fixtures
43
+
44
+ ├── scripts/ # Build and utility scripts
45
+
46
+ ├── package.json # Node.js dependencies
47
+ ├── tsconfig.json # TypeScript config (if applicable)
48
+ {{/if}}
49
+ {{#if IS_PYTHON}}
50
+ ├── {{PYTHON_PACKAGE_NAME}}/ # Python package
51
+ │ ├── __init__.py # Package init
52
+ │ ├── main.py # Entry point
53
+ │ ├── config/ # Configuration
54
+ │ ├── services/ # Business logic
55
+ │ └── utils/ # Utilities
56
+
57
+ ├── tests/ # Test files
58
+ │ ├── unit/ # Unit tests
59
+ │ ├── integration/ # Integration tests
60
+ │ └── conftest.py # Pytest configuration
61
+
62
+ ├── requirements.txt # Python dependencies
63
+ ├── pyproject.toml # Project configuration
64
+ {{/if}}
65
+ {{#if IS_GO}}
66
+ ├── cmd/ # Command entry points
67
+ │ └── {{PROJECT_NAME}}/
68
+ │ └── main.go # Main entry point
69
+
70
+ ├── internal/ # Private packages
71
+ │ ├── config/ # Configuration
72
+ │ ├── services/ # Business logic
73
+ │ └── utils/ # Utilities
74
+
75
+ ├── pkg/ # Public packages
76
+
77
+ ├── go.mod # Go modules
78
+ ├── go.sum # Dependency checksums
79
+ {{/if}}
80
+
81
+ ├── .gitignore # Git ignore rules
82
+ ├── .env.example # Environment template
83
+ └── README.md # Project documentation
84
+ ```
85
+
86
+ ## File Placement Rules
87
+
88
+ ### Documentation Files
89
+
90
+ | File Pattern | Location | Purpose |
91
+ |--------------|----------|---------|
92
+ | `*.md` (project docs) | `docs/` | Project documentation |
93
+ | Architecture docs | `docs/architecture/` | Technical standards |
94
+ | User guides | `docs/guides/` | How-to documentation |
95
+ | API docs | `docs/api/` | API reference |
96
+
97
+ ### Source Code
98
+
99
+ | File Pattern | Location | Purpose |
100
+ |--------------|----------|---------|
101
+ {{#if IS_NODE}}
102
+ | `*.js`, `*.ts` | `src/` | Application source code |
103
+ | `*.test.js`, `*.test.ts` | `tests/` | Test files |
104
+ | `*.d.ts` | `src/types/` | TypeScript declarations |
105
+ {{/if}}
106
+ {{#if IS_PYTHON}}
107
+ | `*.py` | `{{PYTHON_PACKAGE_NAME}}/` | Application source code |
108
+ | `test_*.py` | `tests/` | Test files |
109
+ {{/if}}
110
+ {{#if IS_GO}}
111
+ | `*.go` | `cmd/`, `internal/`, `pkg/` | Go source files |
112
+ | `*_test.go` | Same as source | Test files |
113
+ {{/if}}
114
+
115
+ ### Configuration Files
116
+
117
+ | File | Location | Purpose |
118
+ |------|----------|---------|
119
+ | `.aios-core/core-config.yaml` | Root | AIOS configuration |
120
+ | `.env`, `.env.*` | Root | Environment variables |
121
+ | `.gitignore` | Root | Git ignore rules |
122
+ {{#if IS_NODE}}
123
+ | `package.json` | Root | Node.js dependencies |
124
+ | `tsconfig.json` | Root | TypeScript configuration |
125
+ | `.eslintrc.*` | Root | ESLint configuration |
126
+ | `.prettierrc` | Root | Prettier configuration |
127
+ {{/if}}
128
+ {{#if IS_PYTHON}}
129
+ | `pyproject.toml` | Root | Python project config |
130
+ | `requirements.txt` | Root | Python dependencies |
131
+ | `.flake8` | Root | Flake8 configuration |
132
+ {{/if}}
133
+
134
+ ## Anti-Patterns (Files NOT Allowed at Root)
135
+
136
+ The following files should NOT be placed at the project root:
137
+
138
+ | Pattern | Correct Location | Reason |
139
+ |---------|------------------|--------|
140
+ | `*.md` (except README) | `docs/` | Documentation belongs in docs |
141
+ {{#if IS_NODE}}
142
+ | `*.js`, `*.ts` (source) | `src/` | Source code belongs in src |
143
+ | `*.test.js` | `tests/` | Tests belong in tests |
144
+ {{/if}}
145
+ {{#if IS_PYTHON}}
146
+ | `*.py` (source) | `{{PYTHON_PACKAGE_NAME}}/` | Source code belongs in package |
147
+ | `test_*.py` | `tests/` | Tests belong in tests |
148
+ {{/if}}
149
+ | Temporary files | N/A | Should not be committed |
150
+
151
+ ## Naming Conventions
152
+
153
+ ### Directories
154
+
155
+ - Use **kebab-case** for directory names: `my-feature/`
156
+ - Use lowercase: `services/` not `Services/`
157
+
158
+ ### Files
159
+
160
+ {{#if IS_NODE}}
161
+ - Source files: **kebab-case** - `user-service.js`
162
+ - Test files: **kebab-case** with `.test` suffix - `user-service.test.js`
163
+ - React components: **PascalCase** - `UserProfile.tsx`
164
+ {{/if}}
165
+ {{#if IS_PYTHON}}
166
+ - Source files: **snake_case** - `user_service.py`
167
+ - Test files: **snake_case** with `test_` prefix - `test_user_service.py`
168
+ {{/if}}
169
+ {{#if IS_GO}}
170
+ - Source files: **snake_case** - `user_service.go`
171
+ - Test files: **snake_case** with `_test` suffix - `user_service_test.go`
172
+ {{/if}}
173
+
174
+ ---
175
+
176
+ *Generated by AIOS Documentation Integrity System*
177
+ *Template Version: 1.0.0*