aios-core 2.1.5 → 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 (29) hide show
  1. package/.aios-core/development/tasks/analyze-brownfield.md +456 -0
  2. package/.aios-core/development/tasks/setup-project-docs.md +440 -0
  3. package/.aios-core/infrastructure/scripts/documentation-integrity/brownfield-analyzer.js +501 -0
  4. package/.aios-core/infrastructure/scripts/documentation-integrity/config-generator.js +368 -0
  5. package/.aios-core/infrastructure/scripts/documentation-integrity/deployment-config-loader.js +308 -0
  6. package/.aios-core/infrastructure/scripts/documentation-integrity/doc-generator.js +331 -0
  7. package/.aios-core/infrastructure/scripts/documentation-integrity/gitignore-generator.js +312 -0
  8. package/.aios-core/infrastructure/scripts/documentation-integrity/index.js +74 -0
  9. package/.aios-core/infrastructure/scripts/documentation-integrity/mode-detector.js +389 -0
  10. package/.aios-core/infrastructure/templates/core-config/core-config-brownfield.tmpl.yaml +176 -0
  11. package/.aios-core/infrastructure/templates/core-config/core-config-greenfield.tmpl.yaml +127 -0
  12. package/.aios-core/infrastructure/templates/gitignore/gitignore-aios-base.tmpl +63 -0
  13. package/.aios-core/infrastructure/templates/gitignore/gitignore-brownfield-merge.tmpl +18 -0
  14. package/.aios-core/infrastructure/templates/gitignore/gitignore-node.tmpl +85 -0
  15. package/.aios-core/infrastructure/templates/gitignore/gitignore-python.tmpl +145 -0
  16. package/.aios-core/infrastructure/templates/project-docs/coding-standards-tmpl.md +346 -0
  17. package/.aios-core/infrastructure/templates/project-docs/source-tree-tmpl.md +177 -0
  18. package/.aios-core/infrastructure/templates/project-docs/tech-stack-tmpl.md +267 -0
  19. package/package.json +1 -1
  20. package/packages/installer/src/config/templates/env-template.js +2 -2
  21. package/packages/installer/src/wizard/wizard.js +185 -34
  22. package/packages/installer/tests/integration/environment-configuration.test.js +2 -1
  23. package/packages/installer/tests/unit/env-template.test.js +3 -2
  24. package/.aios-core/development/tasks/validate-structure.md +0 -243
  25. package/.aios-core/infrastructure/scripts/source-tree-guardian/index.js +0 -375
  26. package/.aios-core/infrastructure/scripts/source-tree-guardian/manifest-generator.js +0 -410
  27. package/.aios-core/infrastructure/scripts/source-tree-guardian/rules/naming-rules.yaml +0 -285
  28. package/.aios-core/infrastructure/scripts/source-tree-guardian/rules/placement-rules.yaml +0 -262
  29. package/.aios-core/infrastructure/scripts/source-tree-guardian/validator.js +0 -468
@@ -0,0 +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*
@@ -0,0 +1,267 @@
1
+ # {{PROJECT_NAME}} Tech Stack
2
+
3
+ > **Auto-generated by AIOS** on {{GENERATED_DATE}}
4
+ > **Mode:** {{INSTALLATION_MODE}}
5
+
6
+ ## Overview
7
+
8
+ This document describes the technology stack and tooling decisions for **{{PROJECT_NAME}}**.
9
+
10
+ ---
11
+
12
+ ## Core Technologies
13
+
14
+ ### Runtime & Language
15
+
16
+ | Technology | Version | Purpose |
17
+ |------------|---------|---------|
18
+ {{#if IS_NODE}}
19
+ | Node.js | {{NODE_VERSION}} | JavaScript runtime |
20
+ {{#if IS_TYPESCRIPT}}
21
+ | TypeScript | {{TYPESCRIPT_VERSION}} | Type-safe JavaScript |
22
+ {{/if}}
23
+ {{/if}}
24
+ {{#if IS_PYTHON}}
25
+ | Python | {{PYTHON_VERSION}} | Programming language |
26
+ {{/if}}
27
+ {{#if IS_GO}}
28
+ | Go | {{GO_VERSION}} | Programming language |
29
+ {{/if}}
30
+ {{#if IS_RUST}}
31
+ | Rust | {{RUST_VERSION}} | Programming language |
32
+ {{/if}}
33
+
34
+ ### Package Management
35
+
36
+ | Tool | Version | Purpose |
37
+ |------|---------|---------|
38
+ {{#if IS_NODE}}
39
+ | npm | {{NPM_VERSION}} | Package manager |
40
+ {{/if}}
41
+ {{#if IS_PYTHON}}
42
+ | pip | Latest | Package installer |
43
+ | poetry | {{POETRY_VERSION}} | Dependency management (optional) |
44
+ {{/if}}
45
+ {{#if IS_GO}}
46
+ | Go Modules | Built-in | Dependency management |
47
+ {{/if}}
48
+
49
+ ---
50
+
51
+ ## Development Tools
52
+
53
+ ### Code Quality
54
+
55
+ | Tool | Purpose | Configuration |
56
+ |------|---------|---------------|
57
+ {{#if IS_NODE}}
58
+ | ESLint | Linting | `.eslintrc.js` |
59
+ | Prettier | Formatting | `.prettierrc` |
60
+ {{#if IS_TYPESCRIPT}}
61
+ | TypeScript | Type checking | `tsconfig.json` |
62
+ {{/if}}
63
+ {{/if}}
64
+ {{#if IS_PYTHON}}
65
+ | Black | Formatting | `pyproject.toml` |
66
+ | Flake8 | Linting | `.flake8` |
67
+ | mypy | Type checking | `mypy.ini` |
68
+ {{/if}}
69
+ {{#if IS_GO}}
70
+ | gofmt | Formatting | Built-in |
71
+ | golint | Linting | N/A |
72
+ | go vet | Static analysis | Built-in |
73
+ {{/if}}
74
+
75
+ ### Testing
76
+
77
+ | Tool | Purpose | Location |
78
+ |------|---------|----------|
79
+ {{#if IS_NODE}}
80
+ | Jest | Unit testing | `tests/unit/` |
81
+ | Supertest | API testing | `tests/integration/` |
82
+ {{/if}}
83
+ {{#if IS_PYTHON}}
84
+ | pytest | Testing framework | `tests/` |
85
+ | pytest-cov | Coverage | `pytest.ini` |
86
+ {{/if}}
87
+ {{#if IS_GO}}
88
+ | go test | Testing framework | `*_test.go` files |
89
+ {{/if}}
90
+
91
+ ### Build Tools
92
+
93
+ | Tool | Purpose |
94
+ |------|---------|
95
+ {{#if IS_NODE}}
96
+ {{#if IS_TYPESCRIPT}}
97
+ | tsc | TypeScript compilation |
98
+ {{/if}}
99
+ | esbuild / rollup | Bundling (if needed) |
100
+ {{/if}}
101
+ {{#if IS_PYTHON}}
102
+ | setuptools | Package building |
103
+ | wheel | Distribution format |
104
+ {{/if}}
105
+ {{#if IS_GO}}
106
+ | go build | Compilation |
107
+ {{/if}}
108
+
109
+ ---
110
+
111
+ ## Infrastructure
112
+
113
+ ### Version Control
114
+
115
+ | Service | Purpose |
116
+ |---------|---------|
117
+ | Git | Version control |
118
+ | GitHub | Repository hosting |
119
+ | GitHub Actions | CI/CD |
120
+
121
+ ### Deployment
122
+
123
+ | Platform | Environment | Branch |
124
+ |----------|-------------|--------|
125
+ {{#if DEPLOYMENT_PLATFORM}}
126
+ | {{DEPLOYMENT_PLATFORM}} | Production | `{{PRODUCTION_BRANCH}}` |
127
+ {{#if HAS_STAGING}}
128
+ | {{DEPLOYMENT_PLATFORM}} | Staging | `{{STAGING_BRANCH}}` |
129
+ {{/if}}
130
+ {{else}}
131
+ | TBD | Production | `main` |
132
+ {{/if}}
133
+
134
+ ### Database (if applicable)
135
+
136
+ | Technology | Purpose | Environment |
137
+ |------------|---------|-------------|
138
+ {{#if DATABASE}}
139
+ | {{DATABASE}} | Primary database | All |
140
+ {{/if}}
141
+ {{#if CACHE}}
142
+ | {{CACHE}} | Caching layer | All |
143
+ {{/if}}
144
+
145
+ ---
146
+
147
+ ## Dependencies
148
+
149
+ ### Production Dependencies
150
+
151
+ {{#if IS_NODE}}
152
+ Key dependencies from `package.json`:
153
+
154
+ | Package | Version | Purpose |
155
+ |---------|---------|---------|
156
+ {{#each DEPENDENCIES}}
157
+ | {{this.name}} | {{this.version}} | {{this.purpose}} |
158
+ {{/each}}
159
+ {{/if}}
160
+
161
+ {{#if IS_PYTHON}}
162
+ Key dependencies from `requirements.txt`:
163
+
164
+ | Package | Version | Purpose |
165
+ |---------|---------|---------|
166
+ {{#each DEPENDENCIES}}
167
+ | {{this.name}} | {{this.version}} | {{this.purpose}} |
168
+ {{/each}}
169
+ {{/if}}
170
+
171
+ ### Development Dependencies
172
+
173
+ | Package | Purpose |
174
+ |---------|---------|
175
+ {{#each DEV_DEPENDENCIES}}
176
+ | {{this.name}} | {{this.purpose}} |
177
+ {{/each}}
178
+
179
+ ---
180
+
181
+ ## Configuration Files
182
+
183
+ | File | Purpose |
184
+ |------|---------|
185
+ | `.aios-core/core-config.yaml` | AIOS configuration |
186
+ | `.env.example` | Environment template |
187
+ | `.gitignore` | Git ignore rules |
188
+ {{#if IS_NODE}}
189
+ | `package.json` | Node.js project config |
190
+ {{#if IS_TYPESCRIPT}}
191
+ | `tsconfig.json` | TypeScript config |
192
+ {{/if}}
193
+ | `.eslintrc.js` | ESLint rules |
194
+ | `.prettierrc` | Prettier config |
195
+ {{/if}}
196
+ {{#if IS_PYTHON}}
197
+ | `pyproject.toml` | Python project config |
198
+ | `requirements.txt` | Dependencies |
199
+ | `.flake8` | Flake8 config |
200
+ {{/if}}
201
+ {{#if IS_GO}}
202
+ | `go.mod` | Go modules |
203
+ | `go.sum` | Dependency checksums |
204
+ {{/if}}
205
+
206
+ ---
207
+
208
+ ## Environment Variables
209
+
210
+ | Variable | Description | Required |
211
+ |----------|-------------|----------|
212
+ | `NODE_ENV` / `ENV` | Environment name | Yes |
213
+ {{#each ENV_VARS}}
214
+ | `{{this.name}}` | {{this.description}} | {{this.required}} |
215
+ {{/each}}
216
+
217
+ See `.env.example` for a complete list.
218
+
219
+ ---
220
+
221
+ ## Upgrade Guidelines
222
+
223
+ ### Language/Runtime Updates
224
+
225
+ 1. Check release notes for breaking changes
226
+ 2. Update version in configuration files
227
+ 3. Run full test suite
228
+ 4. Update CI/CD configuration
229
+ 5. Document changes in CHANGELOG
230
+
231
+ ### Dependency Updates
232
+
233
+ 1. Review changelogs for security fixes
234
+ 2. Update one dependency at a time
235
+ 3. Run tests after each update
236
+ 4. Commit with clear message
237
+
238
+ ```bash
239
+ {{#if IS_NODE}}
240
+ # Check for updates
241
+ npm outdated
242
+
243
+ # Update specific package
244
+ npm update <package-name>
245
+ {{/if}}
246
+ {{#if IS_PYTHON}}
247
+ # Check for updates
248
+ pip list --outdated
249
+
250
+ # Update specific package
251
+ pip install --upgrade <package-name>
252
+ {{/if}}
253
+ ```
254
+
255
+ ---
256
+
257
+ ## Security Considerations
258
+
259
+ - [ ] Dependencies scanned for vulnerabilities
260
+ - [ ] Environment variables not committed
261
+ - [ ] Secrets stored securely
262
+ - [ ] HTTPS enforced in production
263
+
264
+ ---
265
+
266
+ *Generated by AIOS Documentation Integrity System*
267
+ *Template Version: 1.0.0*
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aios-core",
3
- "version": "2.1.5",
3
+ "version": "2.1.6",
4
4
  "description": "AIOS: AI-Orchestrated System for Full Stack Development - Core Framework",
5
5
  "main": "index.js",
6
6
  "module": "index.esm.js",
@@ -118,7 +118,7 @@ VERCEL_TOKEN=
118
118
  # AIOS Core Configuration
119
119
  # --------------------------------------------
120
120
  NODE_ENV=development
121
- AIOS_VERSION=2.1.5
121
+ AIOS_VERSION=2.1.6
122
122
 
123
123
  # --------------------------------------------
124
124
  # Custom Configuration
@@ -230,7 +230,7 @@ VERCEL_TOKEN=
230
230
  # AIOS Core Configuration
231
231
  # --------------------------------------------
232
232
  NODE_ENV=development
233
- AIOS_VERSION=2.1.5
233
+ AIOS_VERSION=2.1.6
234
234
 
235
235
  # --------------------------------------------
236
236
  # Custom Configuration