trinity-method-sdk 2.1.0 → 2.2.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/CHANGELOG.md +728 -467
- package/README.md +550 -539
- package/dist/cli/commands/deploy/ci-cd.d.ts +4 -3
- package/dist/cli/commands/deploy/ci-cd.js +10 -9
- package/dist/cli/commands/deploy/configuration.js +10 -11
- package/dist/cli/commands/deploy/directories.js +13 -14
- package/dist/cli/commands/deploy/gitignore.js +3 -4
- package/dist/cli/commands/deploy/index.d.ts +1 -1
- package/dist/cli/commands/deploy/index.js +6 -2
- package/dist/cli/commands/deploy/knowledge-base.js +2 -2
- package/dist/cli/commands/deploy/pre-flight.js +1 -1
- package/dist/cli/commands/deploy/root-files.js +2 -17
- package/dist/cli/commands/deploy/summary.js +3 -3
- package/dist/cli/commands/deploy/templates.js +5 -5
- package/dist/cli/commands/update/backup.js +6 -12
- package/dist/cli/commands/update/index.js +15 -1
- package/dist/cli/commands/update/knowledge-base.js +1 -1
- package/dist/cli/commands/update/migration.d.ts +31 -0
- package/dist/cli/commands/update/migration.js +130 -0
- package/dist/cli/commands/update/pre-flight.d.ts +7 -2
- package/dist/cli/commands/update/pre-flight.js +21 -20
- package/dist/cli/commands/update/summary.js +11 -5
- package/dist/cli/commands/update/templates.js +1 -1
- package/dist/cli/commands/update/types.d.ts +2 -0
- package/dist/cli/commands/update/verification.js +5 -5
- package/dist/cli/commands/update/version.js +6 -4
- package/dist/cli/utils/deploy-ci.d.ts +3 -2
- package/dist/cli/utils/deploy-ci.js +24 -24
- package/dist/cli/utils/deploy-linting.js +100 -5
- package/dist/cli/utils/error-classes.d.ts +2 -2
- package/dist/cli/utils/linting-tools.js +14 -6
- package/dist/cli/utils/template-processor.js +1 -3
- package/dist/templates/.claude/EMPLOYEE-DIRECTORY.md.template +16 -22
- package/dist/templates/.claude/agents/aj-team/apo-documentation-specialist.md.template +7 -7
- package/dist/templates/.claude/agents/aj-team/bas-quality-gate.md.template +8 -8
- package/dist/templates/.claude/agents/aj-team/dra-code-reviewer.md.template +3 -3
- package/dist/templates/.claude/agents/aj-team/kil-task-executor.md.template +6 -6
- package/dist/templates/.claude/agents/audit/juno-auditor.md.template +39 -40
- package/dist/templates/.claude/agents/deployment/ein-cicd.md.template +56 -159
- package/dist/templates/.claude/agents/deployment/ino-context.md.template +21 -21
- package/dist/templates/.claude/agents/deployment/tan-structure.md.template +28 -29
- package/dist/templates/.claude/agents/deployment/zen-knowledge.md.template +22 -23
- package/dist/templates/.claude/agents/leadership/aj-maestro.md.template +6 -6
- package/dist/templates/.claude/agents/leadership/aly-cto.md.template +17 -18
- package/dist/templates/.claude/agents/planning/eus-decomposer.md.template +4 -4
- package/dist/templates/.claude/agents/planning/mon-requirements.md.template +4 -4
- package/dist/templates/.claude/agents/planning/ror-design.md.template +4 -4
- package/dist/templates/.claude/agents/planning/tra-planner.md.template +4 -4
- package/dist/templates/.claude/commands/execution/trinity-audit.md.template +9 -9
- package/dist/templates/.claude/commands/execution/trinity-breakdown.md.template +535 -0
- package/dist/templates/.claude/commands/execution/trinity-orchestrate.md.template +43 -43
- package/dist/templates/.claude/commands/infrastructure/trinity-init.md.template +20 -43
- package/dist/templates/.claude/commands/investigation/trinity-create-investigation.md.template +5 -5
- package/dist/templates/.claude/commands/investigation/trinity-investigate-templates.md.template +10 -10
- package/dist/templates/.claude/commands/investigation/trinity-plan-investigation.md.template +1 -1
- package/dist/templates/.claude/commands/maintenance/trinity-changelog.md.template +4 -4
- package/dist/templates/.claude/commands/maintenance/trinity-docs-update.md.template +10 -10
- package/dist/templates/.claude/commands/maintenance/trinity-docs.md.template +62 -62
- package/dist/templates/.claude/commands/maintenance/trinity-readme.md.template +16 -16
- package/dist/templates/.claude/commands/session/trinity-continue.md.template +22 -22
- package/dist/templates/.claude/commands/session/trinity-end.md.template +22 -22
- package/dist/templates/.claude/commands/session/trinity-start.md.template +1 -2
- package/dist/templates/.claude/commands/utility/trinity-agents.md.template +3 -6
- package/dist/templates/.claude/commands/utility/trinity-verify.md.template +48 -54
- package/dist/templates/.claude/commands/utility/trinity-workorder.md.template +5 -5
- package/dist/templates/ci/ci.yml.template +2 -2
- package/dist/templates/root/CLAUDE.md.template +9 -9
- package/dist/templates/root/linting/nodejs/.husky-pre-commit.template +5 -0
- package/dist/templates/source/base-CLAUDE.md.template +310 -310
- package/dist/templates/source/flutter-CLAUDE.md.template +593 -593
- package/dist/templates/source/nodejs-CLAUDE.md.template +531 -531
- package/dist/templates/source/python-CLAUDE.md.template +510 -510
- package/dist/templates/source/react-CLAUDE.md.template +513 -513
- package/dist/templates/source/rust-CLAUDE.md.template +653 -653
- package/dist/templates/trinity/CLAUDE.md.template +14 -14
- package/dist/templates/trinity/knowledge-base/ARCHITECTURE.md.template +4 -4
- package/dist/templates/trinity/knowledge-base/ISSUES.md.template +8 -8
- package/dist/templates/trinity/knowledge-base/Technical-Debt.md.template +1 -3
- package/dist/templates/trinity/knowledge-base/To-do.md.template +1 -1
- package/dist/templates/trinity/knowledge-base/Trinity.md.template +5 -5
- package/dist/templates/trinity/templates/documentation/configuration/env-example-generator.md.template +1 -1
- package/dist/templates/trinity/templates/documentation/processes/error-handling-protocol.md.template +2 -2
- package/dist/templates/trinity/templates/documentation/reports/apo-docs-update-checklist.md.template +7 -7
- package/dist/templates/trinity/templates/documentation/reports/juno-docs-update-checklist.md.template +4 -4
- package/dist/templates/trinity/templates/documentation/reports/juno-internal-report.md.template +10 -10
- package/dist/templates/trinity/templates/investigations/bug.md.template +14 -14
- package/dist/templates/trinity/templates/investigations/feature.md.template +14 -14
- package/dist/templates/trinity/templates/investigations/performance.md.template +14 -14
- package/dist/templates/trinity/templates/investigations/security.md.template +14 -14
- package/dist/templates/trinity/templates/investigations/technical.md.template +14 -14
- package/dist/templates/trinity/templates/work-orders/ANALYSIS-TEMPLATE.md.template +10 -10
- package/dist/templates/trinity/templates/work-orders/AUDIT-TEMPLATE.md.template +10 -10
- package/dist/templates/trinity/templates/work-orders/IMPLEMENTATION-TEMPLATE.md.template +10 -10
- package/dist/templates/trinity/templates/work-orders/INVESTIGATION-TEMPLATE.md.template +10 -10
- package/dist/templates/trinity/templates/work-orders/PATTERN-TEMPLATE.md.template +10 -10
- package/dist/templates/trinity/templates/work-orders/VERIFICATION-TEMPLATE.md.template +10 -10
- package/package.json +99 -94
- package/dist/templates/.claude/agents/leadership/aj-cc.md.template +0 -467
- package/dist/templates/ci/cd.yml.template +0 -175
- package/dist/templates/ci/github-actions.yml +0 -86
- package/dist/templates/root/TRINITY.md.template +0 -52
package/CHANGELOG.md
CHANGED
|
@@ -1,467 +1,728 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to Trinity Method SDK will be documented in this file.
|
|
4
|
-
|
|
5
|
-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
-
|
|
8
|
-
## [Unreleased]
|
|
9
|
-
|
|
10
|
-
## [2.1
|
|
11
|
-
|
|
12
|
-
### Added
|
|
13
|
-
|
|
14
|
-
- **
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
-
|
|
18
|
-
|
|
19
|
-
-
|
|
20
|
-
|
|
21
|
-
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
-
|
|
54
|
-
-
|
|
55
|
-
|
|
56
|
-
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
-
|
|
69
|
-
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
-
|
|
83
|
-
|
|
84
|
-
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
-
|
|
121
|
-
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
-
|
|
126
|
-
-
|
|
127
|
-
|
|
128
|
-
-
|
|
129
|
-
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
-
|
|
135
|
-
|
|
136
|
-
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
-
|
|
141
|
-
|
|
142
|
-
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
-
|
|
148
|
-
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
-
|
|
162
|
-
|
|
163
|
-
- **
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
-
|
|
181
|
-
-
|
|
182
|
-
|
|
183
|
-
- **Trinity-docs
|
|
184
|
-
|
|
185
|
-
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
-
|
|
193
|
-
|
|
194
|
-
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
-
|
|
209
|
-
-
|
|
210
|
-
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
-
|
|
234
|
-
|
|
235
|
-
-
|
|
236
|
-
-
|
|
237
|
-
-
|
|
238
|
-
-
|
|
239
|
-
-
|
|
240
|
-
|
|
241
|
-
- **Trinity-
|
|
242
|
-
|
|
243
|
-
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
- **
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
-
|
|
292
|
-
|
|
293
|
-
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
-
|
|
304
|
-
-
|
|
305
|
-
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
- **
|
|
321
|
-
-
|
|
322
|
-
|
|
323
|
-
-
|
|
324
|
-
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
- **
|
|
331
|
-
|
|
332
|
-
-
|
|
333
|
-
-
|
|
334
|
-
-
|
|
335
|
-
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
-
|
|
345
|
-
|
|
346
|
-
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
- **
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
-
|
|
362
|
-
-
|
|
363
|
-
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
-
|
|
377
|
-
-
|
|
378
|
-
-
|
|
379
|
-
-
|
|
380
|
-
-
|
|
381
|
-
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
-
|
|
387
|
-
|
|
388
|
-
-
|
|
389
|
-
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
- **
|
|
398
|
-
|
|
399
|
-
-
|
|
400
|
-
-
|
|
401
|
-
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
-
|
|
411
|
-
-
|
|
412
|
-
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
-
|
|
427
|
-
|
|
428
|
-
-
|
|
429
|
-
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
-
|
|
445
|
-
-
|
|
446
|
-
-
|
|
447
|
-
|
|
448
|
-
-
|
|
449
|
-
-
|
|
450
|
-
-
|
|
451
|
-
-
|
|
452
|
-
-
|
|
453
|
-
-
|
|
454
|
-
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
-
|
|
458
|
-
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
-
|
|
463
|
-
-
|
|
464
|
-
|
|
465
|
-
**
|
|
466
|
-
|
|
467
|
-
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to Trinity Method SDK will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
## [2.2.1] - 2026-02-24
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- **Legacy deployment migration in update command** - `trinity update` now detects pre-2.2.0
|
|
15
|
+
`trinity/` deployments at project root and automatically migrates them to `.claude/trinity/`
|
|
16
|
+
(Issue #14)
|
|
17
|
+
- New `migration.ts` module with `detectLegacyDeployment()`, `migrateLegacyDeployment()`,
|
|
18
|
+
and `updateGitignoreForMigration()`
|
|
19
|
+
- Pre-flight checks updated to recognize legacy layouts instead of failing
|
|
20
|
+
- Version detection falls back to `trinity/VERSION` for legacy deployments
|
|
21
|
+
- User knowledge base files preserved during migration
|
|
22
|
+
- **Gitignore migration in update command** - `trinity update` now updates `.gitignore`
|
|
23
|
+
patterns on every run, replacing old `trinity/` entries with current `.claude/trinity/`
|
|
24
|
+
patterns (Issue #14)
|
|
25
|
+
|
|
26
|
+
### Fixed
|
|
27
|
+
|
|
28
|
+
- **Restored `*CLAUDE.md` to deploy gitignore patterns** - `trinity deploy` now adds
|
|
29
|
+
`*CLAUDE.md` back to `.gitignore`, preventing project-specific CLAUDE.md files from being
|
|
30
|
+
committed to version control (Issue #14)
|
|
31
|
+
- **depcheck false positive for `markdownlint-cli`** - Added `markdownlint-cli` to depcheck
|
|
32
|
+
ignores in CI workflow since it is used by npm scripts, not imported in code
|
|
33
|
+
- **Integration test timeout on Windows CI** - Bumped integration test timeout from 60s to
|
|
34
|
+
120s in `jest.config.js` for slow Windows runners
|
|
35
|
+
|
|
36
|
+
## [2.2.0] - 2026-02-24
|
|
37
|
+
|
|
38
|
+
### Added
|
|
39
|
+
|
|
40
|
+
- **Markdown linting in CI pipeline and pre-commit hook** - Added blocking `markdownlint-cli2`
|
|
41
|
+
validation for `*.md`, `docs/**/*.md`, and `src/**/*.md` in both CI and pre-commit
|
|
42
|
+
- CI: Added lint step to `docs` job in `.github/workflows/ci.yml`
|
|
43
|
+
- Pre-commit: Added Stage 4 to `.husky/pre-commit` running markdownlint on all tracked
|
|
44
|
+
markdown directories
|
|
45
|
+
- Enforces markdown syntax standards across all 78 markdown files using
|
|
46
|
+
`.markdownlint.json` config
|
|
47
|
+
- **New `/trinity-breakdown` slash command** - Guided, user-driven implementations where CC
|
|
48
|
+
acts as an instructor walking users through changes step-by-step instead of executing them
|
|
49
|
+
directly (Issue #11)
|
|
50
|
+
- **GitHub Releases workflow** - Automated draft release creation on version tags (`v*.*.*`)
|
|
51
|
+
via `.github/workflows/release.yml` (Issue #5)
|
|
52
|
+
- 5-job pipeline: version extraction, CHANGELOG release notes extraction,
|
|
53
|
+
tag-vs-package.json version validation, full CI quality gates, and draft GitHub release
|
|
54
|
+
- Uses `softprops/action-gh-release@v2` with `draft: true` — releases require manual
|
|
55
|
+
publishing
|
|
56
|
+
- CHANGELOG extraction uses Node.js script (not sed) matching `## [X.Y.Z]` Keep a
|
|
57
|
+
Changelog format
|
|
58
|
+
- Fails fast on version mismatch or missing/empty CHANGELOG section
|
|
59
|
+
- Coverage thresholds mirror CI pipeline: lines >= 75%, branches >= 65%,
|
|
60
|
+
functions >= 80%, statements >= 75%
|
|
61
|
+
- No `npm publish` automation — publishing remains manual via `npm publish`
|
|
62
|
+
|
|
63
|
+
### Changed
|
|
64
|
+
|
|
65
|
+
- **Enabled all TypeScript strict mode flags** - Turned on `strictNullChecks`,
|
|
66
|
+
`strictPropertyInitialization`, `noUnusedLocals`, and `noUnusedParameters` in
|
|
67
|
+
tsconfig.json (Issue #6)
|
|
68
|
+
- All four flags were previously disabled, weakening compile-time type safety
|
|
69
|
+
- Codebase required zero changes for `strictNullChecks` and
|
|
70
|
+
`strictPropertyInitialization` (already null-safe)
|
|
71
|
+
- Prefixed 6 unused parameters with `_` to satisfy `noUnusedParameters`
|
|
72
|
+
(5 in `deploy-linting.ts`, 1 in `summary.ts`)
|
|
73
|
+
- All 417 tests pass, 0 type errors, lint clean
|
|
74
|
+
- **Added metrics module test coverage** - Created comprehensive test suites for
|
|
75
|
+
`dependency-parser.ts` and `framework-detector.ts` (Issue #6)
|
|
76
|
+
- `dependency-parser.ts` coverage: 9.37% → 100% (23 tests covering Node.js, Python,
|
|
77
|
+
Rust, Flutter, Go, and error paths)
|
|
78
|
+
- `framework-detector.ts` coverage: 36.36% → 95.23% (24 tests covering all version
|
|
79
|
+
detectors and package manager detection)
|
|
80
|
+
- Overall project coverage improved from 83% → 89% (464 tests total)
|
|
81
|
+
- **Fixed all 32 devDependency vulnerabilities** - Resolved minimatch ReDoS, ajv ReDoS,
|
|
82
|
+
and markdown-it ReDoS via `npm audit fix` and `overrides` in package.json (Issue #6)
|
|
83
|
+
- `npm audit fix` resolved ajv (<6.14.0), markdown-it (13.0.0-14.1.0), and
|
|
84
|
+
@isaacs/brace-expansion (5.0.0) — 9 vulnerabilities
|
|
85
|
+
- Added `overrides` for `minimatch@^10.2.1` to force resolution of 23 remaining
|
|
86
|
+
transitive dependency vulnerabilities through eslint, jest, and typedoc
|
|
87
|
+
- `npm audit` now reports 0 vulnerabilities (was 32: 30 high, 2 moderate)
|
|
88
|
+
- **Restructured `trinity/` into `.claude/trinity/`** - Consolidated deployment footprint
|
|
89
|
+
from two top-level directories to one (Issue #3)
|
|
90
|
+
- `trinity deploy` now creates `.claude/trinity/` instead of a separate `trinity/`
|
|
91
|
+
directory
|
|
92
|
+
- `trinity update` manages `.claude/trinity/` with consolidated backup (single `.claude/`
|
|
93
|
+
backup covers everything)
|
|
94
|
+
- All 50+ template files updated with new deployment target paths
|
|
95
|
+
- All relative paths recalculated for new directory depth
|
|
96
|
+
- 417 tests pass with restructured paths
|
|
97
|
+
- **Updated `.gitignore` entries** - Trinity deployment now only ignores
|
|
98
|
+
`.claude/trinity/archive/` and `.claude/trinity/templates/` instead of all `.claude/`,
|
|
99
|
+
`*CLAUDE.md`, `TRINITY.md`, and `trinity/` allowing agents, commands, and context files
|
|
100
|
+
to be tracked in version control
|
|
101
|
+
- **Removed `.claude/trinity/patterns/` directory** - No longer deployed as an empty
|
|
102
|
+
placeholder; directory structure reduced from 17 to 16 directories
|
|
103
|
+
|
|
104
|
+
### Fixed
|
|
105
|
+
|
|
106
|
+
- **Resolved ~600 markdownlint violations across 78 markdown files** - Fixed all markdown
|
|
107
|
+
syntax errors in `docs/`, root (`*.md`), and `src/` directories (Issue #6)
|
|
108
|
+
- `docs/` (72 files): ~580 violations fixed (MD013 line length, MD022 blanks around
|
|
109
|
+
headings, MD031/MD032 blanks around fences/lists, MD040 code fence languages, MD009
|
|
110
|
+
trailing spaces, MD036 emphasis as heading, MD026 trailing punctuation)
|
|
111
|
+
- `README.md`: 16 violations fixed (MD013, MD022, MD026, MD036, MD040)
|
|
112
|
+
- `CONTRIBUTING.md`: 6 violations fixed (MD013, MD009, MD031, MD032, MD040)
|
|
113
|
+
- `CLAUDE.md`: 4 violations fixed (MD022 blanks around headings)
|
|
114
|
+
- `src/CLAUDE.md`: 42 violations fixed (MD022, MD031, MD032, MD040, MD013)
|
|
115
|
+
- `src/README.md`: 3 violations fixed (MD013, MD040)
|
|
116
|
+
- Updated `.markdownlint.json` config: added `siblings_only: true` to MD024 for Keep a
|
|
117
|
+
Changelog duplicate heading compatibility
|
|
118
|
+
|
|
119
|
+
- **CRITICAL: Pre-commit hooks non-functional for Node.js** - Switched from Python's
|
|
120
|
+
pre-commit framework to husky + lint-staged for Node.js/React projects (Issue #4)
|
|
121
|
+
- Node.js/React projects now deploy `.husky/pre-commit` with `npx lint-staged` instead
|
|
122
|
+
of `.pre-commit-config.yaml`
|
|
123
|
+
- Added `husky@^9.1.7` and `lint-staged@^16.2.0` as devDependencies with
|
|
124
|
+
`prepare: 'husky'` script
|
|
125
|
+
- Hooks activate automatically on `npm install` — no manual setup required
|
|
126
|
+
- `lint-staged` configuration injected into `package.json` (eslint + prettier for TS/JS,
|
|
127
|
+
prettier for JSON/MD/YAML)
|
|
128
|
+
- Python/Flutter/Rust projects continue to use `.pre-commit-config.yaml` (unchanged)
|
|
129
|
+
- Existing pre-commit configurations detected and preserved (`.husky/`,
|
|
130
|
+
`.pre-commit-config.yaml`, or husky/lint-staged in package.json)
|
|
131
|
+
|
|
132
|
+
- **CRITICAL: CI/CD workflow templates never deployed** - Fixed `enableCICD` from
|
|
133
|
+
interactive config never bridging to `ciDeploy` deployment flag
|
|
134
|
+
- Added bridge in deploy orchestrator:
|
|
135
|
+
`if (config.enableCICD) { options.ciDeploy = true; }`
|
|
136
|
+
- CI templates now correctly deploy when user selects CI/CD during `trinity deploy`
|
|
137
|
+
|
|
138
|
+
- **CI template variables not processed** - Added `processTemplate()` call to CI workflow
|
|
139
|
+
deployment
|
|
140
|
+
- `{{PROJECT_NAME}}`, `{{FRAMEWORK}}`, and other template variables now resolve in
|
|
141
|
+
deployed `ci.yml`
|
|
142
|
+
- Passes variables from deploy orchestrator through `deployCICD()` to
|
|
143
|
+
`deployCITemplates()`
|
|
144
|
+
|
|
145
|
+
- **No --force protection for GitHub Actions templates** - Added existence check matching
|
|
146
|
+
GitLab's pattern
|
|
147
|
+
- `.github/workflows/ci.yml` now skipped if it already exists (unless `--force` is used)
|
|
148
|
+
- Both GitHub and GitLab platforms now have consistent `--force` flag protection
|
|
149
|
+
|
|
150
|
+
- **Configuration display showed wrong filename** - Changed `trinity-ci.yml` to `ci.yml`
|
|
151
|
+
in interactive prompt output
|
|
152
|
+
- Both detected-platform and unknown-platform display now show correct filename
|
|
153
|
+
|
|
154
|
+
- **CI workflow template header** - Changed `CI/CD Pipeline` to `CI Pipeline` in
|
|
155
|
+
`ci.yml.template`
|
|
156
|
+
|
|
157
|
+
### Removed
|
|
158
|
+
|
|
159
|
+
- **`TRINITY.md` root file** - No longer deployed; Trinity context is now at
|
|
160
|
+
`.claude/trinity/CLAUDE.md`
|
|
161
|
+
- Deleted `src/templates/root/TRINITY.md.template`
|
|
162
|
+
- Removed `deployTrinityMarkdown()` function from deploy pipeline
|
|
163
|
+
- **Dead template files** - Deleted `cd.yml.template` (used undefined `{{DOMAIN}}`
|
|
164
|
+
variable) and `github-actions.yml` (orphaned, never referenced)
|
|
165
|
+
- **CD workflow references** - Removed all Continuous Deployment workflow references from
|
|
166
|
+
source code, templates (EIN, TAN, init, verify), CI workflow, tests, and documentation
|
|
167
|
+
|
|
168
|
+
## [2.1.0] - 2026-01-21
|
|
169
|
+
|
|
170
|
+
### Added
|
|
171
|
+
|
|
172
|
+
- **NEW: Trinity-docs-update command** - Comprehensive documentation update system for
|
|
173
|
+
maintaining existing docs
|
|
174
|
+
- **Command:** `/maintenance:trinity-docs-update` - Updates existing documentation to
|
|
175
|
+
reflect codebase changes
|
|
176
|
+
- **Architecture:** JUNO audit → 3 parallel APO instances → JUNO verification loop →
|
|
177
|
+
Final quality audit
|
|
178
|
+
- **Autonomous Execution:** Runs from start to finish without user intervention unless
|
|
179
|
+
errors occur
|
|
180
|
+
- **Version:** 2.0.9
|
|
181
|
+
- **Last Updated:** 2026-01-19
|
|
182
|
+
|
|
183
|
+
- **Trinity-docs-update - JUNO audit system** - Phase 1 comprehensive codebase analysis
|
|
184
|
+
with mandatory verification protocols
|
|
185
|
+
- **Database Verification Protocol (Mandatory):**
|
|
186
|
+
- Step 1: Detect database presence via bash detection script
|
|
187
|
+
- Step 2: **MANDATORY** production database connection attempt if database detected
|
|
188
|
+
- Documents connection info search (.env, docker-compose.yml, config files)
|
|
189
|
+
- Documents connection attempt method and result (success/failure with reason)
|
|
190
|
+
- Falls back to schema files ONLY after documented connection failure
|
|
191
|
+
- Prevents documentation based on outdated schema files
|
|
192
|
+
- **Environment Configuration Verification Protocol (All Projects):**
|
|
193
|
+
- Priority 1: Check actual environment files (.env, .env.local) FIRST
|
|
194
|
+
- Priority 2: Check template files (.env.example)
|
|
195
|
+
- Priority 3: Check code defaults (|| fallback values)
|
|
196
|
+
- Documents all findings and discrepancies
|
|
197
|
+
- Source of truth order: Actual config > Template > Code defaults
|
|
198
|
+
- **Prevents false positives:** Won't flag correct docs as wrong by verifying against
|
|
199
|
+
actual config
|
|
200
|
+
- **Business Logic Discovery:** Scans controllers, services, models, utilities at
|
|
201
|
+
function-level granularity
|
|
202
|
+
- **Output:** `trinity/reports/DOCS-UPDATE-AUDIT-{{DATE}}.md` with APO work assignments
|
|
203
|
+
|
|
204
|
+
- **Trinity-docs-update - Configuration false positive prevention** - Resolution rules
|
|
205
|
+
prevent incorrect audit findings
|
|
206
|
+
- **Resolution Rule 1:** If .env sets value X, then X is correct (docs showing X are
|
|
207
|
+
correct)
|
|
208
|
+
- **Resolution Rule 2:** Code defaults contradicting .env should be fixed (not docs)
|
|
209
|
+
- **Resolution Rule 3:** Documentation showing actual config value is NEVER wrong
|
|
210
|
+
- **Example:** Port 3001 in docs + .env, but code shows `|| 4000` → docs are correct,
|
|
211
|
+
code default needs fixing
|
|
212
|
+
- **Impact:** Eliminates false positives where JUNO would flag correct documentation as
|
|
213
|
+
wrong
|
|
214
|
+
|
|
215
|
+
- **Trinity-docs-update - Scope boundary with consistency exceptions** - Defines strict
|
|
216
|
+
boundaries with limited exceptions
|
|
217
|
+
- **ALLOWED:** Read any file, write/edit files in docs/ directory only
|
|
218
|
+
- **FORBIDDEN:** Modify source code, database schemas, config files, build files, tests
|
|
219
|
+
- **EXCEPTIONS (APO-1 only):**
|
|
220
|
+
- Fix hardcoded default values contradicting documented standards
|
|
221
|
+
(e.g., `|| 4000` → `|| 3001`)
|
|
222
|
+
- Update .env.example template values to match actual standards
|
|
223
|
+
- ONLY simple constant/default changes (no logic modifications)
|
|
224
|
+
- MUST verify against actual .env first
|
|
225
|
+
- **Scenario C Example:** Docs show port 3001, .env has 3001, code default is 4000 →
|
|
226
|
+
Fix code default to 3001
|
|
227
|
+
|
|
228
|
+
- **Trinity-docs-update - APO parallel execution system** - Phase 2 launches three
|
|
229
|
+
documentation specialists concurrently
|
|
230
|
+
- **APO-1:** Base documentation updates (architecture, setup, guides)
|
|
231
|
+
- **NEW:** Configuration consistency fixes (simple defaults that contradict standards)
|
|
232
|
+
- Update .env.example to match actual standards
|
|
233
|
+
- Align configuration values across codebase and docs
|
|
234
|
+
- Restriction: Only simple constants (no logic changes)
|
|
235
|
+
- **APO-2:** Update existing business logic documentation OR new docs (first half)
|
|
236
|
+
- **APO-3:** New business logic documentation (second half)
|
|
237
|
+
- Each APO creates personal checklist from JUNO's audit report
|
|
238
|
+
- All APOs verify changes against actual codebase (not assumptions)
|
|
239
|
+
- Output: Updated/new documentation files in docs/
|
|
240
|
+
|
|
241
|
+
- **Trinity-docs-update - APO verification requirements** - Mandatory codebase
|
|
242
|
+
verification for all documentation changes
|
|
243
|
+
- **For EVERY change, APO must:**
|
|
244
|
+
1. Identify what needs to change (from JUNO's assignment)
|
|
245
|
+
2. Verify correct value in codebase (read .env, source files, config)
|
|
246
|
+
3. Document verification in task (which files read, what found)
|
|
247
|
+
4. Use Read tool BEFORE making changes
|
|
248
|
+
5. Use Edit tool with verified information only
|
|
249
|
+
6. DO NOT make assumptions or guesses
|
|
250
|
+
- **Verification examples:**
|
|
251
|
+
- API ports → Read .env, server.js, app.js
|
|
252
|
+
- Table names → Read init.sql or check production database
|
|
253
|
+
- Endpoint URLs → Read route files
|
|
254
|
+
- Method signatures → Read actual source file
|
|
255
|
+
- Configuration values → Read config files
|
|
256
|
+
- **Documentation format:**
|
|
257
|
+
|
|
258
|
+
```markdown
|
|
259
|
+
- [x] docs/api/README.md
|
|
260
|
+
- Verification: Read backend/.env - confirmed port is 3001
|
|
261
|
+
- Changes made: Updated 49 instances of port number to 3001
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
- **Trinity-docs-update - JUNO verification loop** - Phase 3 ensures 100% completion
|
|
265
|
+
before final audit
|
|
266
|
+
- **Step 3.1:** JUNO checks all three APO checklists for completion status
|
|
267
|
+
- Counts total tasks vs completed tasks per APO
|
|
268
|
+
- Calculates completion percentage
|
|
269
|
+
- Determines next action (PROCEED or RESTART)
|
|
270
|
+
- **Step 3.1A:** Re-launch incomplete APOs automatically
|
|
271
|
+
- Identifies incomplete APOs from JUNO's report
|
|
272
|
+
- Restarts only incomplete APOs with resume instructions
|
|
273
|
+
- Loops until all APOs reach 100%
|
|
274
|
+
- **Step 3.2:** JUNO final quality audit (only when all APOs 100% complete)
|
|
275
|
+
- Verifies files created/updated
|
|
276
|
+
- Checks content accuracy against codebase
|
|
277
|
+
- Validates no hallucinated components
|
|
278
|
+
- Generates verification report with pass/fail status
|
|
279
|
+
- **Output:** `trinity/reports/DOCS-UPDATE-VERIFICATION-{{DATE}}.md`
|
|
280
|
+
|
|
281
|
+
- **Trinity-docs-update - Three template files** - Command template and two checklist
|
|
282
|
+
templates deployed via CLI
|
|
283
|
+
- **Command Template:**
|
|
284
|
+
`src/templates/.claude/commands/maintenance/trinity-docs-update.md.template`
|
|
285
|
+
- Deployed to: `.claude/commands/maintenance/trinity-docs-update.md`
|
|
286
|
+
- Updated by: `trinity update` command via `updateCommands()` function
|
|
287
|
+
- **JUNO Checklist:**
|
|
288
|
+
`src/templates/trinity/templates/documentation/reports/juno-docs-update-checklist.md.template`
|
|
289
|
+
- Deployed to:
|
|
290
|
+
`trinity/templates/documentation/reports/juno-docs-update-checklist.md`
|
|
291
|
+
- Updated by: `trinity update` command via `updateTemplates()` function (recursively
|
|
292
|
+
copies all documentation templates)
|
|
293
|
+
- **APO Checklist:**
|
|
294
|
+
`src/templates/trinity/templates/documentation/reports/apo-docs-update-checklist.md.template`
|
|
295
|
+
- Deployed to:
|
|
296
|
+
`trinity/templates/documentation/reports/apo-docs-update-checklist.md`
|
|
297
|
+
- Updated by: `trinity update` command via `updateTemplates()` function (recursively
|
|
298
|
+
copies all documentation templates)
|
|
299
|
+
- All templates automatically deployed during `trinity deploy` and updated during
|
|
300
|
+
`trinity update`
|
|
301
|
+
|
|
302
|
+
- **Trinity-docs command - Complete architectural overhaul** - Transformed from
|
|
303
|
+
single-agent to multi-agent orchestration
|
|
304
|
+
- **New Architecture:** JUNO audit → 3 parallel APO instances → Verification
|
|
305
|
+
- **JUNO Agent Integration:** Read-only codebase audit creates documentation checklist
|
|
306
|
+
before generation
|
|
307
|
+
- **Parallel APO Execution:** APO-1 (diagrams), APO-2 (guides/API), APO-3 (config) run
|
|
308
|
+
concurrently
|
|
309
|
+
- **Performance:** 3x faster execution via parallel agent orchestration
|
|
310
|
+
- **Context Efficiency:** Each agent receives focused instructions (<100 lines) vs
|
|
311
|
+
single 2,577-line spec
|
|
312
|
+
|
|
313
|
+
- **Trinity-docs command - External template system** - Created 28 reusable documentation
|
|
314
|
+
templates
|
|
315
|
+
- **Template Directory:** `trinity/templates/documentation/` with 8 categories
|
|
316
|
+
- **Mermaid Diagrams (4 templates):** MVC flow, database ER, API endpoint map,
|
|
317
|
+
component hierarchy
|
|
318
|
+
- **Guides (4 templates):** Getting started, API development, deployment, contributing
|
|
319
|
+
- **API Documentation (1 template):** API README with endpoint structure
|
|
320
|
+
- **Configuration (2 templates):** Documentation structure, env-example generator
|
|
321
|
+
- **Discovery (4 templates):** Framework detection, component discovery, API endpoint
|
|
322
|
+
scanner, env variable extraction
|
|
323
|
+
- **Validation (3 templates):** APO self-validation checklists for all 3 agents
|
|
324
|
+
- **Processes (6 templates):** APO workflows (common, diagram-specific,
|
|
325
|
+
guide-specific, config-specific), error handling, fallback mechanisms
|
|
326
|
+
- **Reports (2 templates):** JUNO internal report, ROOT-README for template organization
|
|
327
|
+
- **Template Variables:** All templates use `{{UPPERCASE_UNDERSCORE}}` syntax for
|
|
328
|
+
dynamic content replacement
|
|
329
|
+
|
|
330
|
+
- **Trinity-docs command - Template validation phase** - Optional Phase 0.2 validates
|
|
331
|
+
template syntax
|
|
332
|
+
- Validates `{{VARIABLE}}` syntax (must be UPPERCASE_UNDERSCORE)
|
|
333
|
+
- Detects nested variables (not supported)
|
|
334
|
+
- Checks balanced braces
|
|
335
|
+
- Non-blocking warnings for template issues
|
|
336
|
+
|
|
337
|
+
- **Trinity-docs command - Retry mechanism** - Phase 0.25 handles transient failures
|
|
338
|
+
- Retries operations up to 3 times with 500ms delay
|
|
339
|
+
- Handles filesystem delays and race conditions
|
|
340
|
+
- Graceful degradation for non-critical operations
|
|
341
|
+
|
|
342
|
+
- **Trinity-docs command - JUNO documentation audit** - Phase 1 performs comprehensive
|
|
343
|
+
codebase analysis
|
|
344
|
+
- **Framework Detection:** Analyzes package.json for Express, NestJS, React, Next.js,
|
|
345
|
+
Django, Flask, FastAPI
|
|
346
|
+
- **Component Discovery:** Scans for React/Vue/Angular/Svelte components with
|
|
347
|
+
zero-tolerance for fake components
|
|
348
|
+
- **API Endpoint Scanning:** Detects Express/Fastify/NestJS/Koa routes with enhanced
|
|
349
|
+
patterns
|
|
350
|
+
- **Database Detection:** PostgreSQL, MySQL, MongoDB, SQLite, Redis via dependency
|
|
351
|
+
analysis
|
|
352
|
+
- **Environment Variables:** Extracts from .env and process.env usage patterns
|
|
353
|
+
- **Checklist Report:** Generates
|
|
354
|
+
`trinity/templates/documentation/reports/juno-internal-report.md` with all discovered
|
|
355
|
+
metadata
|
|
356
|
+
|
|
357
|
+
- **Trinity-docs command - Fallback mechanism** - Handles missing JUNO data gracefully
|
|
358
|
+
- Uses discovery templates when JUNO variables missing
|
|
359
|
+
- Framework detection fallback via package.json analysis
|
|
360
|
+
- Component discovery fallback for frontend frameworks
|
|
361
|
+
- API endpoint scanner fallback for backend frameworks
|
|
362
|
+
- Environment variable extraction fallback
|
|
363
|
+
- Default template paths when discovery fails
|
|
364
|
+
|
|
365
|
+
- **Trinity-docs command - APO self-validation** - Each APO validates its own work before
|
|
366
|
+
completion
|
|
367
|
+
- APO-1 validates: 4 diagram files created, correct paths, no placeholders, proper
|
|
368
|
+
Mermaid syntax
|
|
369
|
+
- APO-2 validates: Guide completeness, API documentation accuracy, no fake examples
|
|
370
|
+
- APO-3 validates: Config files exist, no hardcoded secrets, proper .env.example format
|
|
371
|
+
- Security checks for APO-3: No API keys, passwords, tokens, or sensitive data in
|
|
372
|
+
generated files
|
|
373
|
+
|
|
374
|
+
- **Trinity-docs command - Enhanced verification phase** - Phase 4 performs comprehensive
|
|
375
|
+
quality checks
|
|
376
|
+
- Verifies all JUNO checklist items completed
|
|
377
|
+
- Validates file existence and content quality
|
|
378
|
+
- Checks for placeholders and fake data
|
|
379
|
+
- Ensures proper Mermaid syntax in diagrams
|
|
380
|
+
- Validates security (no secrets in config files)
|
|
381
|
+
- Generates final completion report with pass/fail status
|
|
382
|
+
|
|
383
|
+
### Changed
|
|
384
|
+
|
|
385
|
+
- **Trinity-docs command - File relocation** - Moved from
|
|
386
|
+
`src/templates/shared/claude-commands/` to
|
|
387
|
+
`src/templates/.claude/commands/execution/`
|
|
388
|
+
- Aligns with new command categorization structure
|
|
389
|
+
- Distinguishes execution commands from utility/session/planning commands
|
|
390
|
+
|
|
391
|
+
- **Trinity-docs command - Diagram output path** - Changed from
|
|
392
|
+
`docs/architecture/diagrams/` to `docs/architecture/`
|
|
393
|
+
- Simplified directory structure
|
|
394
|
+
- All architecture files (diagrams, overview, ADRs) now in single directory
|
|
395
|
+
- Updated all references throughout command specification (lines 1079, 1205-1208)
|
|
396
|
+
|
|
397
|
+
- **Trinity-docs command - API endpoint scanner enhancement** - Added 3 missing route
|
|
398
|
+
detection patterns
|
|
399
|
+
- Added `router.route('...').get|post|put|patch|delete()` pattern
|
|
400
|
+
- Added `app.route('...').get|post|put|patch|delete()` pattern
|
|
401
|
+
- Added `router.all('...')` wildcard route pattern
|
|
402
|
+
- Fixes endpoint count variance (33 vs 34 detected endpoints)
|
|
403
|
+
|
|
404
|
+
- **Trinity-docs command - Configuration directory consolidation** - Merged `config/` into
|
|
405
|
+
`configuration/`
|
|
406
|
+
- Moved `env-example-generator.md.template` from `config/` to `configuration/`
|
|
407
|
+
- Removed duplicate directory structure
|
|
408
|
+
- Now single `configuration/` directory with 2 templates
|
|
409
|
+
|
|
410
|
+
- **Trinity-docs command - Version update** - Updated to v2.0.9
|
|
411
|
+
- Reflects architectural overhaul and template externalization
|
|
412
|
+
- Command now references 28 external templates vs inline logic
|
|
413
|
+
|
|
414
|
+
### Deprecated
|
|
415
|
+
|
|
416
|
+
### Removed
|
|
417
|
+
|
|
418
|
+
- **Trinity-docs command - Inline documentation logic** - Removed 808+ lines of inline
|
|
419
|
+
instructions (WO-004)
|
|
420
|
+
- Phase 1 codebase analysis logic → `trinity/templates/documentation/discovery/`
|
|
421
|
+
templates
|
|
422
|
+
- Phase 2 content seeding → `trinity/templates/documentation/guides/` templates
|
|
423
|
+
- Diagram generation → `trinity/templates/documentation/mermaid-diagrams/` templates
|
|
424
|
+
- Validation logic → `trinity/templates/documentation/validation/` templates
|
|
425
|
+
|
|
426
|
+
- **Trinity-docs command - Single-agent architecture** - Replaced with multi-agent
|
|
427
|
+
orchestration
|
|
428
|
+
- Old: Single APO reads 2,577-line spec and performs all work
|
|
429
|
+
- New: JUNO audit + 3 parallel APO instances with focused instructions
|
|
430
|
+
- Reduces context fatigue and improves reliability
|
|
431
|
+
|
|
432
|
+
### Fixed
|
|
433
|
+
|
|
434
|
+
### Security
|
|
435
|
+
|
|
436
|
+
## [2.0.9] - 2026-01-12
|
|
437
|
+
|
|
438
|
+
### Changed
|
|
439
|
+
|
|
440
|
+
- **Trinity-docs command specification** - Added evidence-based documentation verification
|
|
441
|
+
- Added Rule 2: Evidence-Based Documentation Only - prevents documenting uninstalled
|
|
442
|
+
tools
|
|
443
|
+
- Added Phase 1 Step 6: Tool & Feature Verification for all project types
|
|
444
|
+
- Added tool verification report to Phase 5 output
|
|
445
|
+
- Prevents aspirational/best-practice content that doesn't exist in codebase
|
|
446
|
+
- Addresses incident where Lighthouse was documented without being installed
|
|
447
|
+
|
|
448
|
+
- **Trinity-readme command specification** - Removed Trinity self-documentation conflicts
|
|
449
|
+
- Deleted Type C Template that documented Trinity infrastructure (violated Rule 1)
|
|
450
|
+
- Added Rule 1 Enforcement Checklist with verification commands
|
|
451
|
+
- Added Phase 1 Step 4.5: Filter Gitignored and Trinity Directories
|
|
452
|
+
- Added Trinity Detection Warning to explicitly skip trinity/ and .claude/
|
|
453
|
+
- Removed trinity/ from glob patterns and project structure examples
|
|
454
|
+
- Addresses incident where trinity/ was included in README file tree despite being
|
|
455
|
+
gitignored
|
|
456
|
+
|
|
457
|
+
- **Trinity-readme command specification** - Added LICENSE file verification for badges
|
|
458
|
+
- Added Phase 1 Step 7: License Verification - reads actual LICENSE file
|
|
459
|
+
- LICENSE file is now source of truth (priority over package.json)
|
|
460
|
+
- Detects license type from file header (MIT, ISC, Apache, GPL, BSD, etc.)
|
|
461
|
+
- Warns when package.json license field doesn't match LICENSE file
|
|
462
|
+
- Falls back to package.json only if LICENSE file doesn't exist
|
|
463
|
+
- Addresses incident where ISC badge was generated despite MIT LICENSE file
|
|
464
|
+
|
|
465
|
+
- **Trinity-docs command specification** - Added Trinity reference sanitization enforcement
|
|
466
|
+
- Added Rule 1 Forbidden Patterns - explicit list of patterns that must not appear in
|
|
467
|
+
docs/
|
|
468
|
+
- Added Phase 4.5: Trinity Reference Sanitization - scans and removes Trinity references
|
|
469
|
+
- Added Rule 1 Compliance verification to Phase 5 report with pass/fail status
|
|
470
|
+
- Removed Trinity report link from docs/README.md template footer
|
|
471
|
+
- Prevents Trinity Method, agent names, commands, and infrastructure references in user
|
|
472
|
+
docs
|
|
473
|
+
- Addresses incident where 7 documentation files contained Trinity Method references
|
|
474
|
+
|
|
475
|
+
## [2.0.8] - 2026-01-08
|
|
476
|
+
|
|
477
|
+
### Added
|
|
478
|
+
|
|
479
|
+
- **Bot directory support** - Added `bot/` as a recognized source directory
|
|
480
|
+
- `bot/` directory now detected during deployment
|
|
481
|
+
- Framework-specific CLAUDE.md automatically deployed to `bot/` directory
|
|
482
|
+
- Supports nested patterns: `bot/src`, `bot/lib`, `bot/app`, `src/bot`
|
|
483
|
+
|
|
484
|
+
- **Force update flag** - Added `--force` flag to `trinity update` command
|
|
485
|
+
- Allows forcing re-update even when already at latest version
|
|
486
|
+
- Useful for repairing corrupted deployments or applying template fixes
|
|
487
|
+
- Usage: `trinity update --force`
|
|
488
|
+
|
|
489
|
+
## [2.0.7] - 2026-01-06
|
|
490
|
+
|
|
491
|
+
### Fixed
|
|
492
|
+
|
|
493
|
+
- **CRITICAL: Agent file extension handling** - Fixed agent updates to strip `.template`
|
|
494
|
+
extension
|
|
495
|
+
- Agents were being copied with `.md.template` extension, creating duplicates alongside
|
|
496
|
+
old `.md` files
|
|
497
|
+
- Now correctly strips `.template` extension during deployment to `.claude/agents/`
|
|
498
|
+
subdirectories
|
|
499
|
+
- Each agent file copied individually with proper extension handling
|
|
500
|
+
|
|
501
|
+
- **CRITICAL: Template directory structure** - Fixed template updates to use correct
|
|
502
|
+
directory structure
|
|
503
|
+
- Work order templates were being deployed to wrong directory (`trinity/templates/`
|
|
504
|
+
instead of `trinity/templates/work-orders/`)
|
|
505
|
+
- Documentation templates (`trinity/templates/documentation/`) were not being updated at
|
|
506
|
+
all
|
|
507
|
+
- Investigation templates (`trinity/templates/investigations/`) were not being updated
|
|
508
|
+
at all
|
|
509
|
+
- Now correctly deploys all 3 template types to their proper subdirectories with
|
|
510
|
+
`.template` extension stripped
|
|
511
|
+
- Total templates updated: 13 files (6 work-orders + 2 documentation + 5 investigations)
|
|
512
|
+
|
|
513
|
+
## [2.0.6] - 2026-01-06
|
|
514
|
+
|
|
515
|
+
### Fixed
|
|
516
|
+
|
|
517
|
+
- **CRITICAL: Command categorization logic** - Fixed `trinity update` to correctly
|
|
518
|
+
categorize slash commands
|
|
519
|
+
- Execution commands (`audit`, `changelog`, `docs`, `readme`) were falling through to
|
|
520
|
+
utility category
|
|
521
|
+
- Investigation commands containing `investigate` were not being matched properly
|
|
522
|
+
- Commands now deploy to correct category directories (session, planning, execution,
|
|
523
|
+
investigation, infrastructure, infrastructure, utility)
|
|
524
|
+
- Prevents duplicate commands in wrong directories during updates
|
|
525
|
+
|
|
526
|
+
## [2.0.5] - 2026-01-06
|
|
527
|
+
|
|
528
|
+
### Fixed
|
|
529
|
+
|
|
530
|
+
- **CRITICAL: Slash command file updates** - Fixed `trinity update` command file extension
|
|
531
|
+
handling
|
|
532
|
+
- Update commands module was looking for `.md` files but templates use `.md.template`
|
|
533
|
+
extension
|
|
534
|
+
- Now correctly processes `.md.template` files and strips extension for deployed files
|
|
535
|
+
- Slash commands now update properly (20 command files) when running `trinity update`
|
|
536
|
+
- Matches the pattern used by knowledge-base update module
|
|
537
|
+
|
|
538
|
+
## [2.0.4] - 2026-01-06
|
|
539
|
+
|
|
540
|
+
### Fixed
|
|
541
|
+
|
|
542
|
+
- **CRITICAL: Update command path resolution** - Fixed `trinity update` to use centralized
|
|
543
|
+
SDK path resolution
|
|
544
|
+
- Update command was using hardcoded `@trinity-method/sdk` path instead of
|
|
545
|
+
`trinity-method-sdk`
|
|
546
|
+
- Commands, agents, templates, and knowledge base files now update correctly with global
|
|
547
|
+
installations
|
|
548
|
+
- Fixed "Commands template path not found, skipping" warning
|
|
549
|
+
|
|
550
|
+
## [2.0.3] - 2026-01-06
|
|
551
|
+
|
|
552
|
+
### Fixed
|
|
553
|
+
|
|
554
|
+
- **CRITICAL: Global install support** - Fixed SDK path resolution to work with global
|
|
555
|
+
installations
|
|
556
|
+
- Changed package name from incorrect `@trinity-method/sdk` to `trinity-method-sdk` in
|
|
557
|
+
path resolution
|
|
558
|
+
- Added `import.meta.url` support for resolving SDK location in global installs
|
|
559
|
+
- `trinity update` command now works correctly when SDK is installed globally
|
|
560
|
+
- Fixed "ENOENT: no such file or directory" error when running update command
|
|
561
|
+
|
|
562
|
+
## [2.0.2] - 2026-01-02
|
|
563
|
+
|
|
564
|
+
### Added
|
|
565
|
+
|
|
566
|
+
- **DOCUMENTATION RULES** section to all APO documentation commands (`/trinity-docs`,
|
|
567
|
+
`/trinity-readme`, `/trinity-changelog`)
|
|
568
|
+
- Rule 1: No Self-Serving Trinity Documentation - Prevents APO from including Trinity
|
|
569
|
+
Method information in user project documentation
|
|
570
|
+
- Provides clear examples and rationale for focusing exclusively on user's codebase
|
|
571
|
+
- Explicit **Write tool execution commands** throughout `/trinity-docs` Phase 2
|
|
572
|
+
- Added CRITICAL EXECUTION REQUIREMENT section at Phase 2 start
|
|
573
|
+
- Added **EXECUTION REQUIRED** code blocks for each seeding step
|
|
574
|
+
- Added **Phase 2 Execution Summary** with mandatory file creation checklist
|
|
575
|
+
- Ensures APO creates actual documentation files instead of just showing templates
|
|
576
|
+
|
|
577
|
+
### Changed
|
|
578
|
+
|
|
579
|
+
- **`/trinity-docs` command:** Enhanced Phase 2 with explicit Write tool requirements
|
|
580
|
+
- Step 2 (Guides): Added execution requirements for getting-started.md and
|
|
581
|
+
framework-specific guides
|
|
582
|
+
- Step 3 (API): Added execution requirements for api/README.md
|
|
583
|
+
- Step 4 (Architecture): Added execution requirements for architecture/overview.md
|
|
584
|
+
- Step 5 (Reference): Added execution requirements for reference/README.md
|
|
585
|
+
- Phase now requires minimum 4 files to be created: getting-started.md, api/README.md,
|
|
586
|
+
architecture/overview.md, reference/README.md
|
|
587
|
+
|
|
588
|
+
### Fixed
|
|
589
|
+
|
|
590
|
+
- **APO file creation issue:** `/trinity-docs` now explicitly commands APO to use Write
|
|
591
|
+
tool, preventing scenario where directory structure is created but documentation files
|
|
592
|
+
are not written
|
|
593
|
+
|
|
594
|
+
## [2.0.1] - 2025-12-29
|
|
595
|
+
|
|
596
|
+
### Added
|
|
597
|
+
|
|
598
|
+
- Installation instructions in README.md with npx and global install options
|
|
599
|
+
- Automatic npm deployment on every push to main branch via GitHub Actions CD workflow
|
|
600
|
+
|
|
601
|
+
### Changed
|
|
602
|
+
|
|
603
|
+
- **CD Workflow:** Modified to deploy to npm on all main branch pushes (not just version
|
|
604
|
+
tags)
|
|
605
|
+
- **CD Workflow:** GitHub releases now only created for version tags, not regular commits
|
|
606
|
+
- Updated all package references from `@trinity-method/cli` to `trinity-method-sdk`
|
|
607
|
+
|
|
608
|
+
### Fixed
|
|
609
|
+
|
|
610
|
+
- Removed redundant `node_modules/` from Trinity's .gitignore additions
|
|
611
|
+
|
|
612
|
+
## [2.0.0] - 2025-12-21
|
|
613
|
+
|
|
614
|
+
### Added
|
|
615
|
+
|
|
616
|
+
- **Agent System Expansion:** Grew from 7 to 19 specialized agents
|
|
617
|
+
- **Planning Layer (4 agents):** MON (Requirements Analyst), ROR (Design Architect),
|
|
618
|
+
TRA (Work Planner), EUS (Task Decomposer)
|
|
619
|
+
- **Execution Layer (3 agents):** KIL (Task Executor), BAS (Quality Gate),
|
|
620
|
+
DRA (Code Reviewer)
|
|
621
|
+
- **Support Layer (4 agents):** APO (Documentation Specialist),
|
|
622
|
+
BON (Dependency Manager), CAP (Configuration Specialist),
|
|
623
|
+
URO (Refactoring Specialist)
|
|
624
|
+
- **Leadership & Audit (2 agents):** ALY (Chief Technology Officer),
|
|
625
|
+
JUNO (Quality Auditor)
|
|
626
|
+
- **Infrastructure (5 agents):** TAN, ZEN, INO, EIN, AJ MAESTRO (legacy)
|
|
627
|
+
- Increased deployment from 49 to 64 production-ready components
|
|
628
|
+
- Expanded slash commands from 8 to 20 commands across 6 categories
|
|
629
|
+
- Session Management: `/trinity-start`, `/trinity-continue`, `/trinity-end`
|
|
630
|
+
- Planning: `/trinity-requirements`, `/trinity-design`, `/trinity-decompose`,
|
|
631
|
+
`/trinity-plan`
|
|
632
|
+
- Execution: `/trinity-orchestrate`, `/trinity-audit`, `/trinity-readme`,
|
|
633
|
+
`/trinity-docs`, `/trinity-changelog`
|
|
634
|
+
- Investigation: `/trinity-create-investigation`, `/trinity-plan-investigation`,
|
|
635
|
+
`/trinity-investigate-templates`
|
|
636
|
+
- Infrastructure: `/trinity-init`
|
|
637
|
+
- Utility: `/trinity-verify`, `/trinity-agents`, `/trinity-workorder`
|
|
638
|
+
- Enhanced `/trinity-readme` command template to v2.0.0 with comprehensive validation
|
|
639
|
+
phases
|
|
640
|
+
- Phase 2h: Command/Script/CLI Validation - Verifies all documented commands exist in
|
|
641
|
+
codebase
|
|
642
|
+
- Phase 2i: Code Example Validation - Checks code examples match current API signatures
|
|
643
|
+
- Phase 2j: API/Function Reference Validation - Verifies documented functions/classes
|
|
644
|
+
exist
|
|
645
|
+
- Phase 2k: Dependency Claims Validation - Cross-references README with package
|
|
646
|
+
manifests
|
|
647
|
+
- Phase 2l: Stale Content Detection - Finds TODO markers, outdated dates, placeholder
|
|
648
|
+
text
|
|
649
|
+
|
|
650
|
+
### Changed
|
|
651
|
+
|
|
652
|
+
- **BREAKING:** Updated Trinity Method to v2.0.0 architecture
|
|
653
|
+
- **Agent System:** Complete agent architecture redesign with specialized layers
|
|
654
|
+
- **Documentation System:** Enhanced APO capabilities with comprehensive audit phases
|
|
655
|
+
- Refactored 7 functions to reduce cyclomatic complexity (all ≤15)
|
|
656
|
+
- Improved code maintainability and readability across codebase
|
|
657
|
+
- Enhanced test coverage and reliability (405 tests, 100% passing)
|
|
658
|
+
|
|
659
|
+
### Deprecated
|
|
660
|
+
|
|
661
|
+
- AJ MAESTRO orchestrator (v1.0) replaced by ALY in v2.0
|
|
662
|
+
|
|
663
|
+
### Fixed
|
|
664
|
+
|
|
665
|
+
- Template path resolution in integration tests
|
|
666
|
+
- Linting deployment tests now correctly locate template files
|
|
667
|
+
- **Documentation Accuracy:** Fixed 6 critical inaccuracies in README.md
|
|
668
|
+
- Removed 24+ non-existent CLI commands (`npx trinity investigate`, `crisis`,
|
|
669
|
+
`analytics`, etc.)
|
|
670
|
+
- Fixed 13 broken documentation links (docs/methodology/, docs/adr/, docs/workflows/)
|
|
671
|
+
- Corrected agent count inconsistencies throughout documentation (unified to 18 agents)
|
|
672
|
+
- Updated deployment examples to reflect actual CLI
|
|
673
|
+
(`npx @trinity-method/cli deploy/update`)
|
|
674
|
+
- Fixed broken ADR links in src/README.md (replaced with design principles summary)
|
|
675
|
+
- Fixed broken ADR links in docs/README.md (removed non-existent file references)
|
|
676
|
+
|
|
677
|
+
---
|
|
678
|
+
|
|
679
|
+
## [1.0.1] - 2025-10-02 (Legacy - @trinity-method/cli)
|
|
680
|
+
|
|
681
|
+
### Fixed
|
|
682
|
+
|
|
683
|
+
- **Critical:** Missing template files in npm package (only 9 of 36 were included)
|
|
684
|
+
- Fixed file paths to use bundled templates instead of workspace structure
|
|
685
|
+
- All `.md.template` files now properly included in published package
|
|
686
|
+
- Updated `deploy.js` and `update.js` to reference correct template locations
|
|
687
|
+
- Bundled agents and hooks directly into CLI package for standalone operation
|
|
688
|
+
|
|
689
|
+
### Changed
|
|
690
|
+
|
|
691
|
+
- Reorganized package structure to be self-contained when published to npm
|
|
692
|
+
- Templates, agents, and hooks now bundled in `packages/cli/templates/`
|
|
693
|
+
|
|
694
|
+
**Note:** This version was published as `@trinity-method/cli`. Starting with v2.0.0,
|
|
695
|
+
the package was renamed to `trinity-method-sdk`.
|
|
696
|
+
|
|
697
|
+
---
|
|
698
|
+
|
|
699
|
+
## [1.0.0] - 2025-10-01 (Legacy - @trinity-method/cli)
|
|
700
|
+
|
|
701
|
+
### Added
|
|
702
|
+
|
|
703
|
+
- Initial release of Trinity Method SDK for Claude Code
|
|
704
|
+
- 7 specialized Trinity agents (Aly, AJ, TAN, ZEN, INO, Ein, JUNO)
|
|
705
|
+
- Claude Code-exclusive deployment
|
|
706
|
+
- Interactive deployment with linting and CI/CD configuration
|
|
707
|
+
- Linting configuration (ESLint, Prettier, etc.)
|
|
708
|
+
- CI/CD automation (GitHub Actions, GitLab CI)
|
|
709
|
+
- Matrix testing support
|
|
710
|
+
- Coverage integration (Codecov, Coveralls)
|
|
711
|
+
- Employee Directory with agent documentation
|
|
712
|
+
- Trinity structure (knowledge-base, templates)
|
|
713
|
+
- CLAUDE.md context file deployment
|
|
714
|
+
- README injection for Trinity Method section
|
|
715
|
+
- 8 slash commands (/trinity-init, /trinity-verify, /trinity-docs, /trinity-start,
|
|
716
|
+
/trinity-continue, /trinity-end, /trinity-workorder, /trinity-agents)
|
|
717
|
+
- Session management with archival system
|
|
718
|
+
- Comprehensive CLI documentation
|
|
719
|
+
|
|
720
|
+
### Strategic Decision
|
|
721
|
+
|
|
722
|
+
- Focused exclusively on Claude Code for exceptional user experience
|
|
723
|
+
- Community contributions welcome for other coding agents
|
|
724
|
+
|
|
725
|
+
**Note:** This version was published as `@trinity-method/cli`. Starting with v2.0.0,
|
|
726
|
+
the package was renamed to `trinity-method-sdk`.
|
|
727
|
+
|
|
728
|
+
[1.0.0]: https://github.com/lukadfagundes/trinity-method-sdk/releases/tag/v1.0.0
|