@vpxa/aikit 0.1.65 → 0.1.66

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.
@@ -1,281 +1,281 @@
1
- # Project Knowledge Templates
2
-
3
- Templates for the seven project knowledge documents in `docs/architecture/`. Use these to ensure consistent structure across projects.
4
-
5
- ## stack.md
6
-
7
- ```markdown
8
- # Stack
9
-
10
- ## Language and Runtime
11
-
12
- | Item | Version | Notes |
13
- |------|---------|-------|
14
- | {language} | {version} | {notes} |
15
-
16
- ## Frameworks
17
-
18
- | Framework | Version | Role |
19
- |-----------|---------|------|
20
- | {name} | {version} | {role} |
21
-
22
- ## Production Dependencies
23
-
24
- | Package | Version | Purpose |
25
- |---------|---------|---------|
26
- | {name} | {version} | {purpose} |
27
-
28
- ## Dev Tooling
29
-
30
- | Tool | Version | Purpose |
31
- |------|---------|---------|
32
- | {name} | {version} | {purpose} |
33
-
34
- ## Evidence
35
-
36
- - `package.json` / `requirements.txt` / `go.mod` — dependency versions
37
- - `tsconfig.json` / `pyproject.toml` — language configuration
38
- ```
39
-
40
- ## structure.md
41
-
42
- ```markdown
43
- # Structure
44
-
45
- ## Directory Layout
46
-
47
- ```
48
- {root}/
49
- ├── {dir}/ ← {purpose}
50
- │ └── ...
51
- └── {dir}/ ← {purpose}
52
- ```
53
-
54
- ## Entry Points
55
-
56
- | Entry Point | Path | Type |
57
- |-------------|------|------|
58
- | {name} | `{path}` | CLI / HTTP / Library |
59
-
60
- ## Key Files
61
-
62
- | File | Purpose |
63
- |------|---------|
64
- | `{path}` | {purpose} |
65
-
66
- ## Packages (monorepo only)
67
-
68
- | Package | Path | Purpose |
69
- |---------|------|---------|
70
- | {name} | `{path}` | {purpose} |
71
-
72
- ## Evidence
73
-
74
- - `analyze_structure` output — directory tree
75
- - `analyze_entry_points` output — entry points
76
- ```
77
-
78
- ## design.md
79
-
80
- ```markdown
81
- # Design
82
-
83
- ## Architectural Pattern
84
-
85
- {Pattern name} — {one-sentence description of how it applies here}.
86
-
87
- ## Layers
88
-
89
- | Layer | Directory | Responsibility |
90
- |-------|-----------|----------------|
91
- | {name} | `{path}` | {responsibility} |
92
-
93
- ## Data Flow
94
-
95
- ```
96
- {source} → {transform} → {destination}
97
- ```
98
-
99
- {Brief description of primary data paths.}
100
-
101
- ## Component Boundaries
102
-
103
- | Component | Owns | Depends On |
104
- |-----------|------|------------|
105
- | {name} | {responsibility} | {dependencies} |
106
-
107
- ## Key Patterns
108
-
109
- | Pattern | Where Used | Purpose |
110
- |---------|-----------|---------|
111
- | {name} | `{path}` | {purpose} |
112
-
113
- ## Evidence
114
-
115
- - `analyze_structure` output — layers
116
- - `analyze_patterns` output — design patterns
117
- - `analyze_diagram` output — component diagrams
118
- ```
119
-
120
- ## conventions.md
121
-
122
- ```markdown
123
- # Conventions
124
-
125
- ## Naming
126
-
127
- | Element | Convention | Example |
128
- |---------|-----------|---------|
129
- | Files | {convention} | `{example}` |
130
- | Functions | {convention} | `{example}` |
131
- | Types/Interfaces | {convention} | `{example}` |
132
- | Constants | {convention} | `{example}` |
133
-
134
- ## Formatting
135
-
136
- - Formatter: {tool} with {config file}
137
- - Linter: {tool} with {config file}
138
- - Line length: {limit}
139
- - Indentation: {style}
140
-
141
- ## Error Handling
142
-
143
- {Describe the project's error handling pattern: throw/catch, Result type, error codes, etc.}
144
-
145
- ## Import Conventions
146
-
147
- | Import Type | Convention | Example |
148
- |-------------|-----------|---------|
149
- | Internal | {pattern} | `{example}` |
150
- | External | {pattern} | `{example}` |
151
- | Type-only | {pattern} | `{example}` |
152
-
153
- ## Evidence
154
-
155
- - `analyze_patterns` output — detected conventions
156
- - Linter/formatter config files — enforced rules
157
- ```
158
-
159
- ## integrations.md
160
-
161
- ```markdown
162
- # Integrations
163
-
164
- ## External APIs
165
-
166
- | Service | Protocol | Auth | Config |
167
- |---------|----------|------|--------|
168
- | {name} | REST / gRPC / GraphQL | {auth method} | `{env var or config}` |
169
-
170
- ## Databases
171
-
172
- | Database | Driver | Connection | Usage |
173
- |----------|--------|------------|-------|
174
- | {name} | {driver package} | `{env var}` | {what it stores} |
175
-
176
- ## Authentication
177
-
178
- {Describe auth mechanism: JWT, OAuth, API keys, sessions, etc.}
179
-
180
- ## Monitoring and Observability
181
-
182
- | Tool | Purpose | Config |
183
- |------|---------|--------|
184
- | {name} | Logging / Metrics / Tracing | `{config}` |
185
-
186
- ## CI/CD
187
-
188
- | Platform | Config | Stages |
189
- |----------|--------|--------|
190
- | {name} | `{config file}` | {stages} |
191
-
192
- ## Evidence
193
-
194
- - `analyze_dependencies` output — external packages
195
- - `.env.example` — required environment variables
196
- - CI config files — pipeline definitions
197
- ```
198
-
199
- ## testing.md
200
-
201
- ```markdown
202
- # Testing
203
-
204
- ## Framework
205
-
206
- | Tool | Version | Purpose |
207
- |------|---------|---------|
208
- | {name} | {version} | Unit / Integration / E2E |
209
-
210
- ## File Organization
211
-
212
- | Pattern | Location | Example |
213
- |---------|----------|---------|
214
- | {convention} | `{path}` | `{example file}` |
215
-
216
- ## Mocking Strategy
217
-
218
- {Describe how mocks are created and used: manual, library, DI, etc.}
219
-
220
- ## Coverage
221
-
222
- - Target: {percentage or policy}
223
- - Tool: {coverage tool}
224
- - Config: `{config file}`
225
-
226
- ## Running Tests
227
-
228
- ```bash
229
- {command to run all tests}
230
- {command to run specific tests}
231
- {command to run with coverage}
232
- ```
233
-
234
- ## Evidence
235
-
236
- - `analyze_patterns` output — test patterns
237
- - `test_run({})` output — test health
238
- - Test config files — framework configuration
239
- ```
240
-
241
- ## concerns.md
242
-
243
- ```markdown
244
- # Concerns
245
-
246
- ## Tech Debt
247
-
248
- | Area | Description | Severity | Evidence |
249
- |------|-------------|----------|----------|
250
- | {area} | {description} | High / Medium / Low | `{file or tool}` |
251
-
252
- ## Known Issues
253
-
254
- | Issue | Impact | Workaround |
255
- |-------|--------|------------|
256
- | {issue} | {impact} | {workaround or "None"} |
257
-
258
- ## Security Risks
259
-
260
- | Risk | Severity | Mitigation |
261
- |------|----------|------------|
262
- | {risk} | {severity} | {mitigation} |
263
-
264
- ## Performance Bottlenecks
265
-
266
- | Area | Symptom | Evidence |
267
- |------|---------|----------|
268
- | {area} | {symptom} | `{file or metric}` |
269
-
270
- ## High-Churn Files
271
-
272
- | File | Recent Changes | Why |
273
- |------|---------------|-----|
274
- | `{path}` | {change count} | {reason} |
275
-
276
- ## Evidence
277
-
278
- - `audit()` output — health issues
279
- - `dead_symbols({})` output — dead code
280
- - `git_context({})` output — high-churn files
1
+ # Project Knowledge Templates
2
+
3
+ Templates for the seven project knowledge documents in `docs/architecture/`. Use these to ensure consistent structure across projects.
4
+
5
+ ## stack.md
6
+
7
+ ```markdown
8
+ # Stack
9
+
10
+ ## Language and Runtime
11
+
12
+ | Item | Version | Notes |
13
+ |------|---------|-------|
14
+ | {language} | {version} | {notes} |
15
+
16
+ ## Frameworks
17
+
18
+ | Framework | Version | Role |
19
+ |-----------|---------|------|
20
+ | {name} | {version} | {role} |
21
+
22
+ ## Production Dependencies
23
+
24
+ | Package | Version | Purpose |
25
+ |---------|---------|---------|
26
+ | {name} | {version} | {purpose} |
27
+
28
+ ## Dev Tooling
29
+
30
+ | Tool | Version | Purpose |
31
+ |------|---------|---------|
32
+ | {name} | {version} | {purpose} |
33
+
34
+ ## Evidence
35
+
36
+ - `package.json` / `requirements.txt` / `go.mod` — dependency versions
37
+ - `tsconfig.json` / `pyproject.toml` — language configuration
38
+ ```
39
+
40
+ ## structure.md
41
+
42
+ ```markdown
43
+ # Structure
44
+
45
+ ## Directory Layout
46
+
47
+ ```
48
+ {root}/
49
+ ├── {dir}/ ← {purpose}
50
+ │ └── ...
51
+ └── {dir}/ ← {purpose}
52
+ ```
53
+
54
+ ## Entry Points
55
+
56
+ | Entry Point | Path | Type |
57
+ |-------------|------|------|
58
+ | {name} | `{path}` | CLI / HTTP / Library |
59
+
60
+ ## Key Files
61
+
62
+ | File | Purpose |
63
+ |------|---------|
64
+ | `{path}` | {purpose} |
65
+
66
+ ## Packages (monorepo only)
67
+
68
+ | Package | Path | Purpose |
69
+ |---------|------|---------|
70
+ | {name} | `{path}` | {purpose} |
71
+
72
+ ## Evidence
73
+
74
+ - `analyze_structure` output — directory tree
75
+ - `analyze_entry_points` output — entry points
76
+ ```
77
+
78
+ ## design.md
79
+
80
+ ```markdown
81
+ # Design
82
+
83
+ ## Architectural Pattern
84
+
85
+ {Pattern name} — {one-sentence description of how it applies here}.
86
+
87
+ ## Layers
88
+
89
+ | Layer | Directory | Responsibility |
90
+ |-------|-----------|----------------|
91
+ | {name} | `{path}` | {responsibility} |
92
+
93
+ ## Data Flow
94
+
95
+ ```
96
+ {source} → {transform} → {destination}
97
+ ```
98
+
99
+ {Brief description of primary data paths.}
100
+
101
+ ## Component Boundaries
102
+
103
+ | Component | Owns | Depends On |
104
+ |-----------|------|------------|
105
+ | {name} | {responsibility} | {dependencies} |
106
+
107
+ ## Key Patterns
108
+
109
+ | Pattern | Where Used | Purpose |
110
+ |---------|-----------|---------|
111
+ | {name} | `{path}` | {purpose} |
112
+
113
+ ## Evidence
114
+
115
+ - `analyze_structure` output — layers
116
+ - `analyze_patterns` output — design patterns
117
+ - `analyze_diagram` output — component diagrams
118
+ ```
119
+
120
+ ## conventions.md
121
+
122
+ ```markdown
123
+ # Conventions
124
+
125
+ ## Naming
126
+
127
+ | Element | Convention | Example |
128
+ |---------|-----------|---------|
129
+ | Files | {convention} | `{example}` |
130
+ | Functions | {convention} | `{example}` |
131
+ | Types/Interfaces | {convention} | `{example}` |
132
+ | Constants | {convention} | `{example}` |
133
+
134
+ ## Formatting
135
+
136
+ - Formatter: {tool} with {config file}
137
+ - Linter: {tool} with {config file}
138
+ - Line length: {limit}
139
+ - Indentation: {style}
140
+
141
+ ## Error Handling
142
+
143
+ {Describe the project's error handling pattern: throw/catch, Result type, error codes, etc.}
144
+
145
+ ## Import Conventions
146
+
147
+ | Import Type | Convention | Example |
148
+ |-------------|-----------|---------|
149
+ | Internal | {pattern} | `{example}` |
150
+ | External | {pattern} | `{example}` |
151
+ | Type-only | {pattern} | `{example}` |
152
+
153
+ ## Evidence
154
+
155
+ - `analyze_patterns` output — detected conventions
156
+ - Linter/formatter config files — enforced rules
157
+ ```
158
+
159
+ ## integrations.md
160
+
161
+ ```markdown
162
+ # Integrations
163
+
164
+ ## External APIs
165
+
166
+ | Service | Protocol | Auth | Config |
167
+ |---------|----------|------|--------|
168
+ | {name} | REST / gRPC / GraphQL | {auth method} | `{env var or config}` |
169
+
170
+ ## Databases
171
+
172
+ | Database | Driver | Connection | Usage |
173
+ |----------|--------|------------|-------|
174
+ | {name} | {driver package} | `{env var}` | {what it stores} |
175
+
176
+ ## Authentication
177
+
178
+ {Describe auth mechanism: JWT, OAuth, API keys, sessions, etc.}
179
+
180
+ ## Monitoring and Observability
181
+
182
+ | Tool | Purpose | Config |
183
+ |------|---------|--------|
184
+ | {name} | Logging / Metrics / Tracing | `{config}` |
185
+
186
+ ## CI/CD
187
+
188
+ | Platform | Config | Stages |
189
+ |----------|--------|--------|
190
+ | {name} | `{config file}` | {stages} |
191
+
192
+ ## Evidence
193
+
194
+ - `analyze_dependencies` output — external packages
195
+ - `.env.example` — required environment variables
196
+ - CI config files — pipeline definitions
197
+ ```
198
+
199
+ ## testing.md
200
+
201
+ ```markdown
202
+ # Testing
203
+
204
+ ## Framework
205
+
206
+ | Tool | Version | Purpose |
207
+ |------|---------|---------|
208
+ | {name} | {version} | Unit / Integration / E2E |
209
+
210
+ ## File Organization
211
+
212
+ | Pattern | Location | Example |
213
+ |---------|----------|---------|
214
+ | {convention} | `{path}` | `{example file}` |
215
+
216
+ ## Mocking Strategy
217
+
218
+ {Describe how mocks are created and used: manual, library, DI, etc.}
219
+
220
+ ## Coverage
221
+
222
+ - Target: {percentage or policy}
223
+ - Tool: {coverage tool}
224
+ - Config: `{config file}`
225
+
226
+ ## Running Tests
227
+
228
+ ```bash
229
+ {command to run all tests}
230
+ {command to run specific tests}
231
+ {command to run with coverage}
232
+ ```
233
+
234
+ ## Evidence
235
+
236
+ - `analyze_patterns` output — test patterns
237
+ - `test_run({})` output — test health
238
+ - Test config files — framework configuration
239
+ ```
240
+
241
+ ## concerns.md
242
+
243
+ ```markdown
244
+ # Concerns
245
+
246
+ ## Tech Debt
247
+
248
+ | Area | Description | Severity | Evidence |
249
+ |------|-------------|----------|----------|
250
+ | {area} | {description} | High / Medium / Low | `{file or tool}` |
251
+
252
+ ## Known Issues
253
+
254
+ | Issue | Impact | Workaround |
255
+ |-------|--------|------------|
256
+ | {issue} | {impact} | {workaround or "None"} |
257
+
258
+ ## Security Risks
259
+
260
+ | Risk | Severity | Mitigation |
261
+ |------|----------|------------|
262
+ | {risk} | {severity} | {mitigation} |
263
+
264
+ ## Performance Bottlenecks
265
+
266
+ | Area | Symptom | Evidence |
267
+ |------|---------|----------|
268
+ | {area} | {symptom} | `{file or metric}` |
269
+
270
+ ## High-Churn Files
271
+
272
+ | File | Recent Changes | Why |
273
+ |------|---------------|-----|
274
+ | `{path}` | {change count} | {reason} |
275
+
276
+ ## Evidence
277
+
278
+ - `audit()` output — health issues
279
+ - `dead_symbols({})` output — dead code
280
+ - `git_context({})` output — high-churn files
281
281
  ```