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