trinity-method-sdk 2.0.7 → 2.0.8

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 CHANGED
@@ -1,218 +1,232 @@
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
- ### Added
11
-
12
- ### Changed
13
-
14
- ### Deprecated
15
-
16
- ### Removed
17
-
18
- ### Fixed
19
-
20
- ### Security
21
-
22
- ## [2.0.7] - 2026-01-06
23
-
24
- ### Fixed
25
-
26
- - **CRITICAL: Agent file extension handling** - Fixed agent updates to strip `.template` extension
27
- - Agents were being copied with `.md.template` extension, creating duplicates alongside old `.md` files
28
- - Now correctly strips `.template` extension during deployment to `.claude/agents/` subdirectories
29
- - Each agent file copied individually with proper extension handling
30
-
31
- - **CRITICAL: Template directory structure** - Fixed template updates to use correct directory structure
32
- - Work order templates were being deployed to wrong directory (`trinity/templates/` instead of `trinity/templates/work-orders/`)
33
- - Documentation templates (`trinity/templates/documentation/`) were not being updated at all
34
- - Investigation templates (`trinity/templates/investigations/`) were not being updated at all
35
- - Now correctly deploys all 3 template types to their proper subdirectories with `.template` extension stripped
36
- - Total templates updated: 13 files (6 work-orders + 2 documentation + 5 investigations)
37
-
38
- ## [2.0.6] - 2026-01-06
39
-
40
- ### Fixed
41
-
42
- - **CRITICAL: Command categorization logic** - Fixed `trinity update` to correctly categorize slash commands
43
- - Execution commands (`audit`, `changelog`, `docs`, `readme`) were falling through to utility category
44
- - Investigation commands containing `investigate` were not being matched properly
45
- - Commands now deploy to correct category directories (session, planning, execution, investigation, infrastructure, infrastructure, utility)
46
- - Prevents duplicate commands in wrong directories during updates
47
-
48
- ## [2.0.5] - 2026-01-06
49
-
50
- ### Fixed
51
-
52
- - **CRITICAL: Slash command file updates** - Fixed `trinity update` command file extension handling
53
- - Update commands module was looking for `.md` files but templates use `.md.template` extension
54
- - Now correctly processes `.md.template` files and strips extension for deployed files
55
- - Slash commands now update properly (20 command files) when running `trinity update`
56
- - Matches the pattern used by knowledge-base update module
57
-
58
- ## [2.0.4] - 2026-01-06
59
-
60
- ### Fixed
61
-
62
- - **CRITICAL: Update command path resolution** - Fixed `trinity update` to use centralized SDK path resolution
63
- - Update command was using hardcoded `@trinity-method/sdk` path instead of `trinity-method-sdk`
64
- - Commands, agents, templates, and knowledge base files now update correctly with global installations
65
- - Fixed "Commands template path not found, skipping" warning
66
-
67
- ## [2.0.3] - 2026-01-06
68
-
69
- ### Fixed
70
-
71
- - **CRITICAL: Global install support** - Fixed SDK path resolution to work with global installations
72
- - Changed package name from incorrect `@trinity-method/sdk` to `trinity-method-sdk` in path resolution
73
- - Added `import.meta.url` support for resolving SDK location in global installs
74
- - `trinity update` command now works correctly when SDK is installed globally
75
- - Fixed "ENOENT: no such file or directory" error when running update command
76
-
77
- ## [2.0.2] - 2026-01-02
78
-
79
- ### Added
80
-
81
- - **DOCUMENTATION RULES** section to all APO documentation commands (`/trinity-docs`, `/trinity-readme`, `/trinity-changelog`)
82
- - Rule 1: No Self-Serving Trinity Documentation - Prevents APO from including Trinity Method information in user project documentation
83
- - Provides clear ✅/❌ examples and rationale for focusing exclusively on user's codebase
84
- - Explicit **Write tool execution commands** throughout `/trinity-docs` Phase 2
85
- - Added 🚨 CRITICAL EXECUTION REQUIREMENT section at Phase 2 start
86
- - Added **EXECUTION REQUIRED** code blocks for each seeding step
87
- - Added **Phase 2 Execution Summary** with mandatory file creation checklist
88
- - Ensures APO creates actual documentation files instead of just showing templates
89
-
90
- ### Changed
91
-
92
- - **`/trinity-docs` command:** Enhanced Phase 2 with explicit Write tool requirements
93
- - Step 2 (Guides): Added execution requirements for getting-started.md and framework-specific guides
94
- - Step 3 (API): Added execution requirements for api/README.md
95
- - Step 4 (Architecture): Added execution requirements for architecture/overview.md
96
- - Step 5 (Reference): Added execution requirements for reference/README.md
97
- - Phase now requires minimum 4 files to be created: getting-started.md, api/README.md, architecture/overview.md, reference/README.md
98
-
99
- ### Fixed
100
-
101
- - **APO file creation issue:** `/trinity-docs` now explicitly commands APO to use Write tool, preventing scenario where directory structure is created but documentation files are not written
102
-
103
- ## [2.0.1] - 2025-12-29
104
-
105
- ### Added
106
-
107
- - Installation instructions in README.md with npx and global install options
108
- - Automatic npm deployment on every push to main branch via GitHub Actions CD workflow
109
-
110
- ### Changed
111
-
112
- - **CD Workflow:** Modified to deploy to npm on all main branch pushes (not just version tags)
113
- - **CD Workflow:** GitHub releases now only created for version tags, not regular commits
114
- - Updated all package references from `@trinity-method/cli` to `trinity-method-sdk`
115
-
116
- ### Fixed
117
-
118
- - Removed redundant `node_modules/` from Trinity's .gitignore additions
119
-
120
- ## [2.0.0] - 2025-12-21
121
-
122
- ### Added
123
-
124
- - **Agent System Expansion:** Grew from 7 to 19 specialized agents
125
- - **Planning Layer (4 agents):** MON (Requirements Analyst), ROR (Design Architect), TRA (Work Planner), EUS (Task Decomposer)
126
- - **Execution Layer (3 agents):** KIL (Task Executor), BAS (Quality Gate), DRA (Code Reviewer)
127
- - **Support Layer (4 agents):** APO (Documentation Specialist), BON (Dependency Manager), CAP (Configuration Specialist), URO (Refactoring Specialist)
128
- - **Leadership & Audit (2 agents):** ALY (Chief Technology Officer), JUNO (Quality Auditor)
129
- - **Infrastructure (5 agents):** TAN, ZEN, INO, EIN, AJ MAESTRO (legacy)
130
- - Increased deployment from 49 to 64 production-ready components
131
- - Expanded slash commands from 8 to 20 commands across 6 categories
132
- - Session Management: `/trinity-start`, `/trinity-continue`, `/trinity-end`
133
- - Planning: `/trinity-requirements`, `/trinity-design`, `/trinity-decompose`, `/trinity-plan`
134
- - Execution: `/trinity-orchestrate`, `/trinity-audit`, `/trinity-readme`, `/trinity-docs`, `/trinity-changelog`
135
- - Investigation: `/trinity-create-investigation`, `/trinity-plan-investigation`, `/trinity-investigate-templates`
136
- - Infrastructure: `/trinity-init`
137
- - Utility: `/trinity-verify`, `/trinity-agents`, `/trinity-workorder`
138
- - Enhanced `/trinity-readme` command template to v2.0.0 with comprehensive validation phases
139
- - Phase 2h: Command/Script/CLI Validation - Verifies all documented commands exist in codebase
140
- - Phase 2i: Code Example Validation - Checks code examples match current API signatures
141
- - Phase 2j: API/Function Reference Validation - Verifies documented functions/classes exist
142
- - Phase 2k: Dependency Claims Validation - Cross-references README with package manifests
143
- - Phase 2l: Stale Content Detection - Finds TODO markers, outdated dates, placeholder text
144
-
145
- ### Changed
146
-
147
- - **BREAKING:** Updated Trinity Method to v2.0.0 architecture
148
- - **Agent System:** Complete agent architecture redesign with specialized layers
149
- - **Documentation System:** Enhanced APO capabilities with comprehensive audit phases
150
- - Refactored 7 functions to reduce cyclomatic complexity (all ≤15)
151
- - Improved code maintainability and readability across codebase
152
- - Enhanced test coverage and reliability (405 tests, 100% passing)
153
-
154
- ### Deprecated
155
-
156
- - AJ MAESTRO orchestrator (v1.0) replaced by ALY in v2.0
157
-
158
- ### Fixed
159
-
160
- - Template path resolution in integration tests
161
- - Linting deployment tests now correctly locate template files
162
- - **Documentation Accuracy:** Fixed 6 critical inaccuracies in README.md
163
- - Removed 24+ non-existent CLI commands (`npx trinity investigate`, `crisis`, `analytics`, etc.)
164
- - Fixed 13 broken documentation links (docs/methodology/, docs/adr/, docs/workflows/)
165
- - Corrected agent count inconsistencies throughout documentation (unified to 19 agents)
166
- - Updated deployment examples to reflect actual CLI (`npx @trinity-method/cli deploy/update`)
167
- - Fixed broken ADR links in src/README.md (replaced with design principles summary)
168
- - Fixed broken ADR links in docs/README.md (removed non-existent file references)
169
-
170
- ---
171
-
172
- ## [1.0.1] - 2025-10-02 (Legacy - @trinity-method/cli)
173
-
174
- ### Fixed
175
-
176
- - **Critical:** Missing template files in npm package (only 9 of 36 were included)
177
- - Fixed file paths to use bundled templates instead of workspace structure
178
- - All `.md.template` files now properly included in published package
179
- - Updated `deploy.js` and `update.js` to reference correct template locations
180
- - Bundled agents and hooks directly into CLI package for standalone operation
181
-
182
- ### Changed
183
-
184
- - Reorganized package structure to be self-contained when published to npm
185
- - Templates, agents, and hooks now bundled in `packages/cli/templates/`
186
-
187
- **Note:** This version was published as `@trinity-method/cli`. Starting with v2.0.0, the package was renamed to `trinity-method-sdk`.
188
-
189
- ---
190
-
191
- ## [1.0.0] - 2025-10-01 (Legacy - @trinity-method/cli)
192
-
193
- ### Added
194
-
195
- - Initial release of Trinity Method SDK for Claude Code
196
- - 7 specialized Trinity agents (Aly, AJ, TAN, ZEN, INO, Ein, JUNO)
197
- - Claude Code-exclusive deployment
198
- - Interactive deployment with linting and CI/CD configuration
199
- - Linting configuration (ESLint, Prettier, etc.)
200
- - CI/CD automation (GitHub Actions, GitLab CI)
201
- - Matrix testing support
202
- - Coverage integration (Codecov, Coveralls)
203
- - Employee Directory with agent documentation
204
- - Trinity structure (knowledge-base, templates)
205
- - CLAUDE.md context file deployment
206
- - README injection for Trinity Method section
207
- - 8 slash commands (/trinity-init, /trinity-verify, /trinity-docs, /trinity-start, /trinity-continue, /trinity-end, /trinity-workorder, /trinity-agents)
208
- - Session management with archival system
209
- - Comprehensive CLI documentation
210
-
211
- ### Strategic Decision
212
-
213
- - Focused exclusively on Claude Code for exceptional user experience
214
- - Community contributions welcome for other coding agents
215
-
216
- **Note:** This version was published as `@trinity-method/cli`. Starting with v2.0.0, the package was renamed to `trinity-method-sdk`.
217
-
218
- [1.0.0]: https://github.com/lukadfagundes/trinity-method-sdk/releases/tag/v1.0.0
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
+ ### Added
11
+
12
+ ### Changed
13
+
14
+ ### Deprecated
15
+
16
+ ### Removed
17
+
18
+ ### Fixed
19
+
20
+ ### Security
21
+
22
+ ## [2.0.8] - 2026-01-08
23
+
24
+ ### Added
25
+
26
+ - **Bot directory support** - Added `bot/` as a recognized source directory
27
+ - `bot/` directory now detected during deployment
28
+ - Framework-specific CLAUDE.md automatically deployed to `bot/` directory
29
+ - Supports nested patterns: `bot/src`, `bot/lib`, `bot/app`, `src/bot`
30
+
31
+ - **Force update flag** - Added `--force` flag to `trinity update` command
32
+ - Allows forcing re-update even when already at latest version
33
+ - Useful for repairing corrupted deployments or applying template fixes
34
+ - Usage: `trinity update --force`
35
+
36
+ ## [2.0.7] - 2026-01-06
37
+
38
+ ### Fixed
39
+
40
+ - **CRITICAL: Agent file extension handling** - Fixed agent updates to strip `.template` extension
41
+ - Agents were being copied with `.md.template` extension, creating duplicates alongside old `.md` files
42
+ - Now correctly strips `.template` extension during deployment to `.claude/agents/` subdirectories
43
+ - Each agent file copied individually with proper extension handling
44
+
45
+ - **CRITICAL: Template directory structure** - Fixed template updates to use correct directory structure
46
+ - Work order templates were being deployed to wrong directory (`trinity/templates/` instead of `trinity/templates/work-orders/`)
47
+ - Documentation templates (`trinity/templates/documentation/`) were not being updated at all
48
+ - Investigation templates (`trinity/templates/investigations/`) were not being updated at all
49
+ - Now correctly deploys all 3 template types to their proper subdirectories with `.template` extension stripped
50
+ - Total templates updated: 13 files (6 work-orders + 2 documentation + 5 investigations)
51
+
52
+ ## [2.0.6] - 2026-01-06
53
+
54
+ ### Fixed
55
+
56
+ - **CRITICAL: Command categorization logic** - Fixed `trinity update` to correctly categorize slash commands
57
+ - Execution commands (`audit`, `changelog`, `docs`, `readme`) were falling through to utility category
58
+ - Investigation commands containing `investigate` were not being matched properly
59
+ - Commands now deploy to correct category directories (session, planning, execution, investigation, infrastructure, infrastructure, utility)
60
+ - Prevents duplicate commands in wrong directories during updates
61
+
62
+ ## [2.0.5] - 2026-01-06
63
+
64
+ ### Fixed
65
+
66
+ - **CRITICAL: Slash command file updates** - Fixed `trinity update` command file extension handling
67
+ - Update commands module was looking for `.md` files but templates use `.md.template` extension
68
+ - Now correctly processes `.md.template` files and strips extension for deployed files
69
+ - Slash commands now update properly (20 command files) when running `trinity update`
70
+ - Matches the pattern used by knowledge-base update module
71
+
72
+ ## [2.0.4] - 2026-01-06
73
+
74
+ ### Fixed
75
+
76
+ - **CRITICAL: Update command path resolution** - Fixed `trinity update` to use centralized SDK path resolution
77
+ - Update command was using hardcoded `@trinity-method/sdk` path instead of `trinity-method-sdk`
78
+ - Commands, agents, templates, and knowledge base files now update correctly with global installations
79
+ - Fixed "Commands template path not found, skipping" warning
80
+
81
+ ## [2.0.3] - 2026-01-06
82
+
83
+ ### Fixed
84
+
85
+ - **CRITICAL: Global install support** - Fixed SDK path resolution to work with global installations
86
+ - Changed package name from incorrect `@trinity-method/sdk` to `trinity-method-sdk` in path resolution
87
+ - Added `import.meta.url` support for resolving SDK location in global installs
88
+ - `trinity update` command now works correctly when SDK is installed globally
89
+ - Fixed "ENOENT: no such file or directory" error when running update command
90
+
91
+ ## [2.0.2] - 2026-01-02
92
+
93
+ ### Added
94
+
95
+ - **DOCUMENTATION RULES** section to all APO documentation commands (`/trinity-docs`, `/trinity-readme`, `/trinity-changelog`)
96
+ - Rule 1: No Self-Serving Trinity Documentation - Prevents APO from including Trinity Method information in user project documentation
97
+ - Provides clear ✅/❌ examples and rationale for focusing exclusively on user's codebase
98
+ - Explicit **Write tool execution commands** throughout `/trinity-docs` Phase 2
99
+ - Added 🚨 CRITICAL EXECUTION REQUIREMENT section at Phase 2 start
100
+ - Added **EXECUTION REQUIRED** code blocks for each seeding step
101
+ - Added **Phase 2 Execution Summary** with mandatory file creation checklist
102
+ - Ensures APO creates actual documentation files instead of just showing templates
103
+
104
+ ### Changed
105
+
106
+ - **`/trinity-docs` command:** Enhanced Phase 2 with explicit Write tool requirements
107
+ - Step 2 (Guides): Added execution requirements for getting-started.md and framework-specific guides
108
+ - Step 3 (API): Added execution requirements for api/README.md
109
+ - Step 4 (Architecture): Added execution requirements for architecture/overview.md
110
+ - Step 5 (Reference): Added execution requirements for reference/README.md
111
+ - Phase now requires minimum 4 files to be created: getting-started.md, api/README.md, architecture/overview.md, reference/README.md
112
+
113
+ ### Fixed
114
+
115
+ - **APO file creation issue:** `/trinity-docs` now explicitly commands APO to use Write tool, preventing scenario where directory structure is created but documentation files are not written
116
+
117
+ ## [2.0.1] - 2025-12-29
118
+
119
+ ### Added
120
+
121
+ - Installation instructions in README.md with npx and global install options
122
+ - Automatic npm deployment on every push to main branch via GitHub Actions CD workflow
123
+
124
+ ### Changed
125
+
126
+ - **CD Workflow:** Modified to deploy to npm on all main branch pushes (not just version tags)
127
+ - **CD Workflow:** GitHub releases now only created for version tags, not regular commits
128
+ - Updated all package references from `@trinity-method/cli` to `trinity-method-sdk`
129
+
130
+ ### Fixed
131
+
132
+ - Removed redundant `node_modules/` from Trinity's .gitignore additions
133
+
134
+ ## [2.0.0] - 2025-12-21
135
+
136
+ ### Added
137
+
138
+ - **Agent System Expansion:** Grew from 7 to 19 specialized agents
139
+ - **Planning Layer (4 agents):** MON (Requirements Analyst), ROR (Design Architect), TRA (Work Planner), EUS (Task Decomposer)
140
+ - **Execution Layer (3 agents):** KIL (Task Executor), BAS (Quality Gate), DRA (Code Reviewer)
141
+ - **Support Layer (4 agents):** APO (Documentation Specialist), BON (Dependency Manager), CAP (Configuration Specialist), URO (Refactoring Specialist)
142
+ - **Leadership & Audit (2 agents):** ALY (Chief Technology Officer), JUNO (Quality Auditor)
143
+ - **Infrastructure (5 agents):** TAN, ZEN, INO, EIN, AJ MAESTRO (legacy)
144
+ - Increased deployment from 49 to 64 production-ready components
145
+ - Expanded slash commands from 8 to 20 commands across 6 categories
146
+ - Session Management: `/trinity-start`, `/trinity-continue`, `/trinity-end`
147
+ - Planning: `/trinity-requirements`, `/trinity-design`, `/trinity-decompose`, `/trinity-plan`
148
+ - Execution: `/trinity-orchestrate`, `/trinity-audit`, `/trinity-readme`, `/trinity-docs`, `/trinity-changelog`
149
+ - Investigation: `/trinity-create-investigation`, `/trinity-plan-investigation`, `/trinity-investigate-templates`
150
+ - Infrastructure: `/trinity-init`
151
+ - Utility: `/trinity-verify`, `/trinity-agents`, `/trinity-workorder`
152
+ - Enhanced `/trinity-readme` command template to v2.0.0 with comprehensive validation phases
153
+ - Phase 2h: Command/Script/CLI Validation - Verifies all documented commands exist in codebase
154
+ - Phase 2i: Code Example Validation - Checks code examples match current API signatures
155
+ - Phase 2j: API/Function Reference Validation - Verifies documented functions/classes exist
156
+ - Phase 2k: Dependency Claims Validation - Cross-references README with package manifests
157
+ - Phase 2l: Stale Content Detection - Finds TODO markers, outdated dates, placeholder text
158
+
159
+ ### Changed
160
+
161
+ - **BREAKING:** Updated Trinity Method to v2.0.0 architecture
162
+ - **Agent System:** Complete agent architecture redesign with specialized layers
163
+ - **Documentation System:** Enhanced APO capabilities with comprehensive audit phases
164
+ - Refactored 7 functions to reduce cyclomatic complexity (all ≤15)
165
+ - Improved code maintainability and readability across codebase
166
+ - Enhanced test coverage and reliability (405 tests, 100% passing)
167
+
168
+ ### Deprecated
169
+
170
+ - AJ MAESTRO orchestrator (v1.0) replaced by ALY in v2.0
171
+
172
+ ### Fixed
173
+
174
+ - Template path resolution in integration tests
175
+ - Linting deployment tests now correctly locate template files
176
+ - **Documentation Accuracy:** Fixed 6 critical inaccuracies in README.md
177
+ - Removed 24+ non-existent CLI commands (`npx trinity investigate`, `crisis`, `analytics`, etc.)
178
+ - Fixed 13 broken documentation links (docs/methodology/, docs/adr/, docs/workflows/)
179
+ - Corrected agent count inconsistencies throughout documentation (unified to 19 agents)
180
+ - Updated deployment examples to reflect actual CLI (`npx @trinity-method/cli deploy/update`)
181
+ - Fixed broken ADR links in src/README.md (replaced with design principles summary)
182
+ - Fixed broken ADR links in docs/README.md (removed non-existent file references)
183
+
184
+ ---
185
+
186
+ ## [1.0.1] - 2025-10-02 (Legacy - @trinity-method/cli)
187
+
188
+ ### Fixed
189
+
190
+ - **Critical:** Missing template files in npm package (only 9 of 36 were included)
191
+ - Fixed file paths to use bundled templates instead of workspace structure
192
+ - All `.md.template` files now properly included in published package
193
+ - Updated `deploy.js` and `update.js` to reference correct template locations
194
+ - Bundled agents and hooks directly into CLI package for standalone operation
195
+
196
+ ### Changed
197
+
198
+ - Reorganized package structure to be self-contained when published to npm
199
+ - Templates, agents, and hooks now bundled in `packages/cli/templates/`
200
+
201
+ **Note:** This version was published as `@trinity-method/cli`. Starting with v2.0.0, the package was renamed to `trinity-method-sdk`.
202
+
203
+ ---
204
+
205
+ ## [1.0.0] - 2025-10-01 (Legacy - @trinity-method/cli)
206
+
207
+ ### Added
208
+
209
+ - Initial release of Trinity Method SDK for Claude Code
210
+ - 7 specialized Trinity agents (Aly, AJ, TAN, ZEN, INO, Ein, JUNO)
211
+ - Claude Code-exclusive deployment
212
+ - Interactive deployment with linting and CI/CD configuration
213
+ - Linting configuration (ESLint, Prettier, etc.)
214
+ - CI/CD automation (GitHub Actions, GitLab CI)
215
+ - Matrix testing support
216
+ - Coverage integration (Codecov, Coveralls)
217
+ - Employee Directory with agent documentation
218
+ - Trinity structure (knowledge-base, templates)
219
+ - CLAUDE.md context file deployment
220
+ - README injection for Trinity Method section
221
+ - 8 slash commands (/trinity-init, /trinity-verify, /trinity-docs, /trinity-start, /trinity-continue, /trinity-end, /trinity-workorder, /trinity-agents)
222
+ - Session management with archival system
223
+ - Comprehensive CLI documentation
224
+
225
+ ### Strategic Decision
226
+
227
+ - Focused exclusively on Claude Code for exceptional user experience
228
+ - Community contributions welcome for other coding agents
229
+
230
+ **Note:** This version was published as `@trinity-method/cli`. Starting with v2.0.0, the package was renamed to `trinity-method-sdk`.
231
+
232
+ [1.0.0]: https://github.com/lukadfagundes/trinity-method-sdk/releases/tag/v1.0.0