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.
Files changed (101) hide show
  1. package/CHANGELOG.md +728 -467
  2. package/README.md +550 -539
  3. package/dist/cli/commands/deploy/ci-cd.d.ts +4 -3
  4. package/dist/cli/commands/deploy/ci-cd.js +10 -9
  5. package/dist/cli/commands/deploy/configuration.js +10 -11
  6. package/dist/cli/commands/deploy/directories.js +13 -14
  7. package/dist/cli/commands/deploy/gitignore.js +3 -4
  8. package/dist/cli/commands/deploy/index.d.ts +1 -1
  9. package/dist/cli/commands/deploy/index.js +6 -2
  10. package/dist/cli/commands/deploy/knowledge-base.js +2 -2
  11. package/dist/cli/commands/deploy/pre-flight.js +1 -1
  12. package/dist/cli/commands/deploy/root-files.js +2 -17
  13. package/dist/cli/commands/deploy/summary.js +3 -3
  14. package/dist/cli/commands/deploy/templates.js +5 -5
  15. package/dist/cli/commands/update/backup.js +6 -12
  16. package/dist/cli/commands/update/index.js +15 -1
  17. package/dist/cli/commands/update/knowledge-base.js +1 -1
  18. package/dist/cli/commands/update/migration.d.ts +31 -0
  19. package/dist/cli/commands/update/migration.js +130 -0
  20. package/dist/cli/commands/update/pre-flight.d.ts +7 -2
  21. package/dist/cli/commands/update/pre-flight.js +21 -20
  22. package/dist/cli/commands/update/summary.js +11 -5
  23. package/dist/cli/commands/update/templates.js +1 -1
  24. package/dist/cli/commands/update/types.d.ts +2 -0
  25. package/dist/cli/commands/update/verification.js +5 -5
  26. package/dist/cli/commands/update/version.js +6 -4
  27. package/dist/cli/utils/deploy-ci.d.ts +3 -2
  28. package/dist/cli/utils/deploy-ci.js +24 -24
  29. package/dist/cli/utils/deploy-linting.js +100 -5
  30. package/dist/cli/utils/error-classes.d.ts +2 -2
  31. package/dist/cli/utils/linting-tools.js +14 -6
  32. package/dist/cli/utils/template-processor.js +1 -3
  33. package/dist/templates/.claude/EMPLOYEE-DIRECTORY.md.template +16 -22
  34. package/dist/templates/.claude/agents/aj-team/apo-documentation-specialist.md.template +7 -7
  35. package/dist/templates/.claude/agents/aj-team/bas-quality-gate.md.template +8 -8
  36. package/dist/templates/.claude/agents/aj-team/dra-code-reviewer.md.template +3 -3
  37. package/dist/templates/.claude/agents/aj-team/kil-task-executor.md.template +6 -6
  38. package/dist/templates/.claude/agents/audit/juno-auditor.md.template +39 -40
  39. package/dist/templates/.claude/agents/deployment/ein-cicd.md.template +56 -159
  40. package/dist/templates/.claude/agents/deployment/ino-context.md.template +21 -21
  41. package/dist/templates/.claude/agents/deployment/tan-structure.md.template +28 -29
  42. package/dist/templates/.claude/agents/deployment/zen-knowledge.md.template +22 -23
  43. package/dist/templates/.claude/agents/leadership/aj-maestro.md.template +6 -6
  44. package/dist/templates/.claude/agents/leadership/aly-cto.md.template +17 -18
  45. package/dist/templates/.claude/agents/planning/eus-decomposer.md.template +4 -4
  46. package/dist/templates/.claude/agents/planning/mon-requirements.md.template +4 -4
  47. package/dist/templates/.claude/agents/planning/ror-design.md.template +4 -4
  48. package/dist/templates/.claude/agents/planning/tra-planner.md.template +4 -4
  49. package/dist/templates/.claude/commands/execution/trinity-audit.md.template +9 -9
  50. package/dist/templates/.claude/commands/execution/trinity-breakdown.md.template +535 -0
  51. package/dist/templates/.claude/commands/execution/trinity-orchestrate.md.template +43 -43
  52. package/dist/templates/.claude/commands/infrastructure/trinity-init.md.template +20 -43
  53. package/dist/templates/.claude/commands/investigation/trinity-create-investigation.md.template +5 -5
  54. package/dist/templates/.claude/commands/investigation/trinity-investigate-templates.md.template +10 -10
  55. package/dist/templates/.claude/commands/investigation/trinity-plan-investigation.md.template +1 -1
  56. package/dist/templates/.claude/commands/maintenance/trinity-changelog.md.template +4 -4
  57. package/dist/templates/.claude/commands/maintenance/trinity-docs-update.md.template +10 -10
  58. package/dist/templates/.claude/commands/maintenance/trinity-docs.md.template +62 -62
  59. package/dist/templates/.claude/commands/maintenance/trinity-readme.md.template +16 -16
  60. package/dist/templates/.claude/commands/session/trinity-continue.md.template +22 -22
  61. package/dist/templates/.claude/commands/session/trinity-end.md.template +22 -22
  62. package/dist/templates/.claude/commands/session/trinity-start.md.template +1 -2
  63. package/dist/templates/.claude/commands/utility/trinity-agents.md.template +3 -6
  64. package/dist/templates/.claude/commands/utility/trinity-verify.md.template +48 -54
  65. package/dist/templates/.claude/commands/utility/trinity-workorder.md.template +5 -5
  66. package/dist/templates/ci/ci.yml.template +2 -2
  67. package/dist/templates/root/CLAUDE.md.template +9 -9
  68. package/dist/templates/root/linting/nodejs/.husky-pre-commit.template +5 -0
  69. package/dist/templates/source/base-CLAUDE.md.template +310 -310
  70. package/dist/templates/source/flutter-CLAUDE.md.template +593 -593
  71. package/dist/templates/source/nodejs-CLAUDE.md.template +531 -531
  72. package/dist/templates/source/python-CLAUDE.md.template +510 -510
  73. package/dist/templates/source/react-CLAUDE.md.template +513 -513
  74. package/dist/templates/source/rust-CLAUDE.md.template +653 -653
  75. package/dist/templates/trinity/CLAUDE.md.template +14 -14
  76. package/dist/templates/trinity/knowledge-base/ARCHITECTURE.md.template +4 -4
  77. package/dist/templates/trinity/knowledge-base/ISSUES.md.template +8 -8
  78. package/dist/templates/trinity/knowledge-base/Technical-Debt.md.template +1 -3
  79. package/dist/templates/trinity/knowledge-base/To-do.md.template +1 -1
  80. package/dist/templates/trinity/knowledge-base/Trinity.md.template +5 -5
  81. package/dist/templates/trinity/templates/documentation/configuration/env-example-generator.md.template +1 -1
  82. package/dist/templates/trinity/templates/documentation/processes/error-handling-protocol.md.template +2 -2
  83. package/dist/templates/trinity/templates/documentation/reports/apo-docs-update-checklist.md.template +7 -7
  84. package/dist/templates/trinity/templates/documentation/reports/juno-docs-update-checklist.md.template +4 -4
  85. package/dist/templates/trinity/templates/documentation/reports/juno-internal-report.md.template +10 -10
  86. package/dist/templates/trinity/templates/investigations/bug.md.template +14 -14
  87. package/dist/templates/trinity/templates/investigations/feature.md.template +14 -14
  88. package/dist/templates/trinity/templates/investigations/performance.md.template +14 -14
  89. package/dist/templates/trinity/templates/investigations/security.md.template +14 -14
  90. package/dist/templates/trinity/templates/investigations/technical.md.template +14 -14
  91. package/dist/templates/trinity/templates/work-orders/ANALYSIS-TEMPLATE.md.template +10 -10
  92. package/dist/templates/trinity/templates/work-orders/AUDIT-TEMPLATE.md.template +10 -10
  93. package/dist/templates/trinity/templates/work-orders/IMPLEMENTATION-TEMPLATE.md.template +10 -10
  94. package/dist/templates/trinity/templates/work-orders/INVESTIGATION-TEMPLATE.md.template +10 -10
  95. package/dist/templates/trinity/templates/work-orders/PATTERN-TEMPLATE.md.template +10 -10
  96. package/dist/templates/trinity/templates/work-orders/VERIFICATION-TEMPLATE.md.template +10 -10
  97. package/package.json +99 -94
  98. package/dist/templates/.claude/agents/leadership/aj-cc.md.template +0 -467
  99. package/dist/templates/ci/cd.yml.template +0 -175
  100. package/dist/templates/ci/github-actions.yml +0 -86
  101. package/dist/templates/root/TRINITY.md.template +0 -52
@@ -632,7 +632,7 @@ security:
632
632
 
633
633
  ### Investigation Report Format
634
634
  **Filename:** `INV-{{investigationId}}-findings-[TIMESTAMP].md`
635
- **Location:** `trinity/reports/`
635
+ **Location:** `.claude/trinity/reports/`
636
636
 
637
637
  ### Required Sections
638
638
  1. **Investigation Summary** - Vulnerability overview, type, and severity (CVSS score)
@@ -656,23 +656,23 @@ security:
656
656
 
657
657
  When investigation is complete:
658
658
  1. **Create Investigation Report:**
659
- - [ ] Save findings report to `trinity/reports/INV-{{investigationId}}-findings-[TIMESTAMP].md`
659
+ - [ ] Save findings report to `.claude/trinity/reports/INV-{{investigationId}}-findings-[TIMESTAMP].md`
660
660
  - [ ] Include all required sections listed above
661
661
  - [ ] Attach all evidence and supporting documentation
662
662
  - [ ] **CRITICAL:** Ensure report does NOT contain sensitive exploit details that could enable attacks
663
663
 
664
664
  2. **Move Investigation File:**
665
- - [ ] Move this investigation file (INV-{{investigationId}}.md) to `trinity/sessions/`
666
- - [ ] Keep report in `trinity/reports/` until end of session
665
+ - [ ] Move this investigation file (INV-{{investigationId}}.md) to `.claude/trinity/sessions/`
666
+ - [ ] Keep report in `.claude/trinity/reports/` until end of session
667
667
 
668
668
  3. **Session Cleanup:**
669
669
  - [ ] Run `/trinity-end` to archive both investigation and report
670
- - [ ] Investigation will be archived to `trinity/archive/investigations/YYYY-MM-DD/`
671
- - [ ] Report will be archived to `trinity/archive/reports/YYYY-MM-DD/`
670
+ - [ ] Investigation will be archived to `.claude/trinity/archive/investigations/YYYY-MM-DD/`
671
+ - [ ] Report will be archived to `.claude/trinity/archive/reports/YYYY-MM-DD/`
672
672
 
673
673
  4. **Clean Slate:**
674
- - [ ] Verify `trinity/sessions/` is empty (ready for next session)
675
- - [ ] Verify `trinity/reports/` is empty (ready for next session)
674
+ - [ ] Verify `.claude/trinity/sessions/` is empty (ready for next session)
675
+ - [ ] Verify `.claude/trinity/reports/` is empty (ready for next session)
676
676
 
677
677
  5. **Security-Specific Actions:**
678
678
  - [ ] Notify security team of findings
@@ -685,15 +685,15 @@ When investigation is complete:
685
685
 
686
686
  **Trinity Method Core:**
687
687
  - [Trinity Method Protocols](../../CLAUDE.md) - Root Trinity guidance
688
- - [Investigation Requirements](../../trinity/CLAUDE.md#investigation-protocols) - Investigation-first methodology
688
+ - [Investigation Requirements](../../.claude/trinity/CLAUDE.md#investigation-protocols) - Investigation-first methodology
689
689
  - [Agent Directory](../../.claude/EMPLOYEE-DIRECTORY.md) - 19-agent Trinity team
690
690
 
691
691
  **Knowledge Base:**
692
- - [Architecture](../../trinity/knowledge-base/ARCHITECTURE.md) - System architecture and patterns
693
- - [Known Issues](../../trinity/knowledge-base/ISSUES.md) - Issue patterns database
694
- - [Technical Debt](../../trinity/knowledge-base/Technical-Debt.md) - Debt tracking
695
- - [Testing Standards](../../trinity/knowledge-base/TESTING-PRINCIPLES.md) - Test requirements
696
- - [Coding Standards](../../trinity/knowledge-base/CODING-PRINCIPLES.md) - Code quality
692
+ - [Architecture](../../.claude/trinity/knowledge-base/ARCHITECTURE.md) - System architecture and patterns
693
+ - [Known Issues](../../.claude/trinity/knowledge-base/ISSUES.md) - Issue patterns database
694
+ - [Technical Debt](../../.claude/trinity/knowledge-base/Technical-Debt.md) - Debt tracking
695
+ - [Testing Standards](../../.claude/trinity/knowledge-base/TESTING-PRINCIPLES.md) - Test requirements
696
+ - [Coding Standards](../../.claude/trinity/knowledge-base/CODING-PRINCIPLES.md) - Code quality
697
697
 
698
698
  **Investigation Protocols:**
699
699
  - READ-ONLY: No file modifications during investigation
@@ -315,7 +315,7 @@ describe('Technical Implementation', () => {
315
315
 
316
316
  ### Investigation Report Format
317
317
  **Filename:** `INV-{{investigationId}}-findings-[TIMESTAMP].md`
318
- **Location:** `trinity/reports/`
318
+ **Location:** `.claude/trinity/reports/`
319
319
 
320
320
  ### Required Sections
321
321
  1. **Investigation Summary** - Technical challenge overview and context
@@ -339,22 +339,22 @@ describe('Technical Implementation', () => {
339
339
 
340
340
  When investigation is complete:
341
341
  1. **Create Investigation Report:**
342
- - [ ] Save findings report to `trinity/reports/INV-{{investigationId}}-findings-[TIMESTAMP].md`
342
+ - [ ] Save findings report to `.claude/trinity/reports/INV-{{investigationId}}-findings-[TIMESTAMP].md`
343
343
  - [ ] Include all required sections listed above
344
344
  - [ ] Attach all evidence and supporting documentation
345
345
 
346
346
  2. **Move Investigation File:**
347
- - [ ] Move this investigation file (INV-{{investigationId}}.md) to `trinity/sessions/`
348
- - [ ] Keep report in `trinity/reports/` until end of session
347
+ - [ ] Move this investigation file (INV-{{investigationId}}.md) to `.claude/trinity/sessions/`
348
+ - [ ] Keep report in `.claude/trinity/reports/` until end of session
349
349
 
350
350
  3. **Session Cleanup:**
351
351
  - [ ] Run `/trinity-end` to archive both investigation and report
352
- - [ ] Investigation will be archived to `trinity/archive/investigations/YYYY-MM-DD/`
353
- - [ ] Report will be archived to `trinity/archive/reports/YYYY-MM-DD/`
352
+ - [ ] Investigation will be archived to `.claude/trinity/archive/investigations/YYYY-MM-DD/`
353
+ - [ ] Report will be archived to `.claude/trinity/archive/reports/YYYY-MM-DD/`
354
354
 
355
355
  4. **Clean Slate:**
356
- - [ ] Verify `trinity/sessions/` is empty (ready for next session)
357
- - [ ] Verify `trinity/reports/` is empty (ready for next session)
356
+ - [ ] Verify `.claude/trinity/sessions/` is empty (ready for next session)
357
+ - [ ] Verify `.claude/trinity/reports/` is empty (ready for next session)
358
358
 
359
359
  ---
360
360
 
@@ -362,15 +362,15 @@ When investigation is complete:
362
362
 
363
363
  **Trinity Method Core:**
364
364
  - [Trinity Method Protocols](../../CLAUDE.md) - Root Trinity guidance
365
- - [Investigation Requirements](../../trinity/CLAUDE.md#investigation-protocols) - Investigation-first methodology
365
+ - [Investigation Requirements](../../.claude/trinity/CLAUDE.md#investigation-protocols) - Investigation-first methodology
366
366
  - [Agent Directory](../../.claude/EMPLOYEE-DIRECTORY.md) - 19-agent Trinity team
367
367
 
368
368
  **Knowledge Base:**
369
- - [Architecture](../../trinity/knowledge-base/ARCHITECTURE.md) - System architecture and patterns
370
- - [Known Issues](../../trinity/knowledge-base/ISSUES.md) - Issue patterns database
371
- - [Technical Debt](../../trinity/knowledge-base/Technical-Debt.md) - Debt tracking
372
- - [Testing Standards](../../trinity/knowledge-base/TESTING-PRINCIPLES.md) - Test requirements
373
- - [Coding Standards](../../trinity/knowledge-base/CODING-PRINCIPLES.md) - Code quality
369
+ - [Architecture](../../.claude/trinity/knowledge-base/ARCHITECTURE.md) - System architecture and patterns
370
+ - [Known Issues](../../.claude/trinity/knowledge-base/ISSUES.md) - Issue patterns database
371
+ - [Technical Debt](../../.claude/trinity/knowledge-base/Technical-Debt.md) - Debt tracking
372
+ - [Testing Standards](../../.claude/trinity/knowledge-base/TESTING-PRINCIPLES.md) - Test requirements
373
+ - [Coding Standards](../../.claude/trinity/knowledge-base/CODING-PRINCIPLES.md) - Code quality
374
374
 
375
375
  **Investigation Protocols:**
376
376
  - READ-ONLY: No file modifications during investigation
@@ -130,31 +130,31 @@ STATUS: APPROVED FOR EXECUTION
130
130
  - [ ] All deliverables include required sections listed above
131
131
 
132
132
  **Step 2: 🚨 MOVE THIS WORK ORDER FILE 🚨** ✅
133
- - [ ] **IMMEDIATELY** move this file from `trinity/work-orders/` to `trinity/sessions/`
134
- - [ ] **THIS STEP IS MANDATORY** - Work orders left in trinity/work-orders/ are considered incomplete
133
+ - [ ] **IMMEDIATELY** move this file from `.claude/trinity/work-orders/` to `.claude/trinity/sessions/`
134
+ - [ ] **THIS STEP IS MANDATORY** - Work orders left in .claude/trinity/work-orders/ are considered incomplete
135
135
 
136
136
  **Execute this exact command:**
137
137
  ```bash
138
- mv trinity/work-orders/{{workOrderFilename}} trinity/sessions/
138
+ mv .claude/trinity/work-orders/{{workOrderFilename}} .claude/trinity/sessions/
139
139
  ```
140
140
 
141
141
  **Step 3: Verify File Locations** ✅
142
- - [ ] This work order file NOW EXISTS in: `trinity/sessions/{{workOrderFilename}}`
142
+ - [ ] This work order file NOW EXISTS in: `.claude/trinity/sessions/{{workOrderFilename}}`
143
143
  - [ ] Completion report exists in: `${PROJECT_REPORTS}/[COMPONENT]-ANALYSIS-[TIMESTAMP].md`
144
- - [ ] This work order NO LONGER EXISTS in: `trinity/work-orders/`
144
+ - [ ] This work order NO LONGER EXISTS in: `.claude/trinity/work-orders/`
145
145
 
146
146
  **If any verification fails, the work order is NOT complete. Fix immediately.**
147
147
 
148
148
  **Step 4: Session Cleanup (when entire session complete):**
149
149
  - [ ] When session is complete, run `/trinity-end`
150
- - [ ] trinity-end will archive ALL files from `trinity/sessions/` and `${PROJECT_REPORTS}/`
150
+ - [ ] trinity-end will archive ALL files from `.claude/trinity/sessions/` and `${PROJECT_REPORTS}/`
151
151
  - [ ] Next session starts with empty sessions/ and reports/ folders
152
152
 
153
153
  **Archive Destination (via trinity-end):**
154
- - Work order → `trinity/archive/work-orders/YYYY-MM-DD/`
155
- - Completion report → `trinity/archive/reports/YYYY-MM-DD/`
156
- - JUNO audit report → `trinity/archive/reports/YYYY-MM-DD/` (if applicable)
157
- - Session summary → `trinity/archive/sessions/YYYY-MM-DD/`
154
+ - Work order → `.claude/trinity/archive/work-orders/YYYY-MM-DD/`
155
+ - Completion report → `.claude/trinity/archive/reports/YYYY-MM-DD/`
156
+ - JUNO audit report → `.claude/trinity/archive/reports/YYYY-MM-DD/` (if applicable)
157
+ - Session summary → `.claude/trinity/archive/sessions/YYYY-MM-DD/`
158
158
 
159
159
  ---
160
160
 
@@ -129,31 +129,31 @@ Passing_Score: 70
129
129
  - [ ] All deliverables include required sections listed above
130
130
 
131
131
  **Step 2: 🚨 MOVE THIS WORK ORDER FILE 🚨** ✅
132
- - [ ] **IMMEDIATELY** move this file from `trinity/work-orders/` to `trinity/sessions/`
133
- - [ ] **THIS STEP IS MANDATORY** - Work orders left in trinity/work-orders/ are considered incomplete
132
+ - [ ] **IMMEDIATELY** move this file from `.claude/trinity/work-orders/` to `.claude/trinity/sessions/`
133
+ - [ ] **THIS STEP IS MANDATORY** - Work orders left in .claude/trinity/work-orders/ are considered incomplete
134
134
 
135
135
  **Execute this exact command:**
136
136
  ```bash
137
- mv trinity/work-orders/{{workOrderFilename}} trinity/sessions/
137
+ mv .claude/trinity/work-orders/{{workOrderFilename}} .claude/trinity/sessions/
138
138
  ```
139
139
 
140
140
  **Step 3: Verify File Locations** ✅
141
- - [ ] This work order file NOW EXISTS in: `trinity/sessions/{{workOrderFilename}}`
141
+ - [ ] This work order file NOW EXISTS in: `.claude/trinity/sessions/{{workOrderFilename}}`
142
142
  - [ ] Completion report exists in: `${PROJECT_REPORTS}/AUDIT-[COMPONENT]-[TIMESTAMP].md`
143
- - [ ] This work order NO LONGER EXISTS in: `trinity/work-orders/`
143
+ - [ ] This work order NO LONGER EXISTS in: `.claude/trinity/work-orders/`
144
144
 
145
145
  **If any verification fails, the work order is NOT complete. Fix immediately.**
146
146
 
147
147
  **Step 4: Session Cleanup (when entire session complete):**
148
148
  - [ ] When session is complete, run `/trinity-end`
149
- - [ ] trinity-end will archive ALL files from `trinity/sessions/` and `${PROJECT_REPORTS}/`
149
+ - [ ] trinity-end will archive ALL files from `.claude/trinity/sessions/` and `${PROJECT_REPORTS}/`
150
150
  - [ ] Next session starts with empty sessions/ and reports/ folders
151
151
 
152
152
  **Archive Destination (via trinity-end):**
153
- - Work order → `trinity/archive/work-orders/YYYY-MM-DD/`
154
- - Completion report → `trinity/archive/reports/YYYY-MM-DD/`
155
- - JUNO audit report → `trinity/archive/reports/YYYY-MM-DD/` (if applicable)
156
- - Session summary → `trinity/archive/sessions/YYYY-MM-DD/`
153
+ - Work order → `.claude/trinity/archive/work-orders/YYYY-MM-DD/`
154
+ - Completion report → `.claude/trinity/archive/reports/YYYY-MM-DD/`
155
+ - JUNO audit report → `.claude/trinity/archive/reports/YYYY-MM-DD/` (if applicable)
156
+ - Session summary → `.claude/trinity/archive/sessions/YYYY-MM-DD/`
157
157
 
158
158
  ---
159
159
 
@@ -100,31 +100,31 @@ Supporting_Files:
100
100
  - [ ] All deliverables include required sections listed above
101
101
 
102
102
  **Step 2: 🚨 MOVE THIS WORK ORDER FILE 🚨** ✅
103
- - [ ] **IMMEDIATELY** move this file from `trinity/work-orders/` to `trinity/sessions/`
104
- - [ ] **THIS STEP IS MANDATORY** - Work orders left in trinity/work-orders/ are considered incomplete
103
+ - [ ] **IMMEDIATELY** move this file from `.claude/trinity/work-orders/` to `.claude/trinity/sessions/`
104
+ - [ ] **THIS STEP IS MANDATORY** - Work orders left in .claude/trinity/work-orders/ are considered incomplete
105
105
 
106
106
  **Execute this exact command:**
107
107
  ```bash
108
- mv trinity/work-orders/{{workOrderFilename}} trinity/sessions/
108
+ mv .claude/trinity/work-orders/{{workOrderFilename}} .claude/trinity/sessions/
109
109
  ```
110
110
 
111
111
  **Step 3: Verify File Locations** ✅
112
- - [ ] This work order file NOW EXISTS in: `trinity/sessions/{{workOrderFilename}}`
112
+ - [ ] This work order file NOW EXISTS in: `.claude/trinity/sessions/{{workOrderFilename}}`
113
113
  - [ ] Completion report exists in: `${PROJECT_REPORTS}/[COMPONENT]-IMPLEMENTATION-COMPLETE-[TIMESTAMP].md`
114
- - [ ] This work order NO LONGER EXISTS in: `trinity/work-orders/`
114
+ - [ ] This work order NO LONGER EXISTS in: `.claude/trinity/work-orders/`
115
115
 
116
116
  **If any verification fails, the work order is NOT complete. Fix immediately.**
117
117
 
118
118
  **Step 4: Session Cleanup (when entire session complete):**
119
119
  - [ ] When session is complete, run `/trinity-end`
120
- - [ ] trinity-end will archive ALL files from `trinity/sessions/` and `${PROJECT_REPORTS}/`
120
+ - [ ] trinity-end will archive ALL files from `.claude/trinity/sessions/` and `${PROJECT_REPORTS}/`
121
121
  - [ ] Next session starts with empty sessions/ and reports/ folders
122
122
 
123
123
  **Archive Destination (via trinity-end):**
124
- - Work order → `trinity/archive/work-orders/YYYY-MM-DD/`
125
- - Completion report → `trinity/archive/reports/YYYY-MM-DD/`
126
- - JUNO audit report → `trinity/archive/reports/YYYY-MM-DD/` (if applicable)
127
- - Session summary → `trinity/archive/sessions/YYYY-MM-DD/`
124
+ - Work order → `.claude/trinity/archive/work-orders/YYYY-MM-DD/`
125
+ - Completion report → `.claude/trinity/archive/reports/YYYY-MM-DD/`
126
+ - JUNO audit report → `.claude/trinity/archive/reports/YYYY-MM-DD/` (if applicable)
127
+ - Session summary → `.claude/trinity/archive/sessions/YYYY-MM-DD/`
128
128
 
129
129
  ---
130
130
 
@@ -98,31 +98,31 @@
98
98
  - [ ] All deliverables include required sections listed above
99
99
 
100
100
  **Step 2: 🚨 MOVE THIS WORK ORDER FILE 🚨** ✅
101
- - [ ] **IMMEDIATELY** move this file from `trinity/work-orders/` to `trinity/sessions/`
102
- - [ ] **THIS STEP IS MANDATORY** - Work orders left in trinity/work-orders/ are considered incomplete
101
+ - [ ] **IMMEDIATELY** move this file from `.claude/trinity/work-orders/` to `.claude/trinity/sessions/`
102
+ - [ ] **THIS STEP IS MANDATORY** - Work orders left in .claude/trinity/work-orders/ are considered incomplete
103
103
 
104
104
  **Execute this exact command:**
105
105
  ```bash
106
- mv trinity/work-orders/{{workOrderFilename}} trinity/sessions/
106
+ mv .claude/trinity/work-orders/{{workOrderFilename}} .claude/trinity/sessions/
107
107
  ```
108
108
 
109
109
  **Step 3: Verify File Locations** ✅
110
- - [ ] This work order file NOW EXISTS in: `trinity/sessions/{{workOrderFilename}}`
110
+ - [ ] This work order file NOW EXISTS in: `.claude/trinity/sessions/{{workOrderFilename}}`
111
111
  - [ ] Completion report exists in: `${PROJECT_REPORTS}/[TYPE]-INVESTIGATION-[TIMESTAMP].md`
112
- - [ ] This work order NO LONGER EXISTS in: `trinity/work-orders/`
112
+ - [ ] This work order NO LONGER EXISTS in: `.claude/trinity/work-orders/`
113
113
 
114
114
  **If any verification fails, the work order is NOT complete. Fix immediately.**
115
115
 
116
116
  **Step 4: Session Cleanup (when entire session complete):**
117
117
  - [ ] When session is complete, run `/trinity-end`
118
- - [ ] trinity-end will archive ALL files from `trinity/sessions/` and `${PROJECT_REPORTS}/`
118
+ - [ ] trinity-end will archive ALL files from `.claude/trinity/sessions/` and `${PROJECT_REPORTS}/`
119
119
  - [ ] Next session starts with empty sessions/ and reports/ folders
120
120
 
121
121
  **Archive Destination (via trinity-end):**
122
- - Work order → `trinity/archive/work-orders/YYYY-MM-DD/`
123
- - Completion report → `trinity/archive/reports/YYYY-MM-DD/`
124
- - JUNO audit report → `trinity/archive/reports/YYYY-MM-DD/` (if applicable)
125
- - Session summary → `trinity/archive/sessions/YYYY-MM-DD/`
122
+ - Work order → `.claude/trinity/archive/work-orders/YYYY-MM-DD/`
123
+ - Completion report → `.claude/trinity/archive/reports/YYYY-MM-DD/`
124
+ - JUNO audit report → `.claude/trinity/archive/reports/YYYY-MM-DD/` (if applicable)
125
+ - Session summary → `.claude/trinity/archive/sessions/YYYY-MM-DD/`
126
126
 
127
127
  ---
128
128
 
@@ -158,31 +158,31 @@ Probable_Matches:
158
158
  - [ ] All deliverables include required sections listed above
159
159
 
160
160
  **Step 2: 🚨 MOVE THIS WORK ORDER FILE 🚨** ✅
161
- - [ ] **IMMEDIATELY** move this file from `trinity/work-orders/` to `trinity/sessions/`
162
- - [ ] **THIS STEP IS MANDATORY** - Work orders left in trinity/work-orders/ are considered incomplete
161
+ - [ ] **IMMEDIATELY** move this file from `.claude/trinity/work-orders/` to `.claude/trinity/sessions/`
162
+ - [ ] **THIS STEP IS MANDATORY** - Work orders left in .claude/trinity/work-orders/ are considered incomplete
163
163
 
164
164
  **Execute this exact command:**
165
165
  ```bash
166
- mv trinity/work-orders/{{workOrderFilename}} trinity/sessions/
166
+ mv .claude/trinity/work-orders/{{workOrderFilename}} .claude/trinity/sessions/
167
167
  ```
168
168
 
169
169
  **Step 3: Verify File Locations** ✅
170
- - [ ] This work order file NOW EXISTS in: `trinity/sessions/{{workOrderFilename}}`
170
+ - [ ] This work order file NOW EXISTS in: `.claude/trinity/sessions/{{workOrderFilename}}`
171
171
  - [ ] Completion report exists in: `${PROJECT_REPORTS}/PATTERN-[NAME]-[TIMESTAMP].md`
172
- - [ ] This work order NO LONGER EXISTS in: `trinity/work-orders/`
172
+ - [ ] This work order NO LONGER EXISTS in: `.claude/trinity/work-orders/`
173
173
 
174
174
  **If any verification fails, the work order is NOT complete. Fix immediately.**
175
175
 
176
176
  **Step 4: Session Cleanup (when entire session complete):**
177
177
  - [ ] When session is complete, run `/trinity-end`
178
- - [ ] trinity-end will archive ALL files from `trinity/sessions/` and `${PROJECT_REPORTS}/`
178
+ - [ ] trinity-end will archive ALL files from `.claude/trinity/sessions/` and `${PROJECT_REPORTS}/`
179
179
  - [ ] Next session starts with empty sessions/ and reports/ folders
180
180
 
181
181
  **Archive Destination (via trinity-end):**
182
- - Work order → `trinity/archive/work-orders/YYYY-MM-DD/`
183
- - Completion report → `trinity/archive/reports/YYYY-MM-DD/`
184
- - JUNO audit report → `trinity/archive/reports/YYYY-MM-DD/` (if applicable)
185
- - Session summary → `trinity/archive/sessions/YYYY-MM-DD/`
182
+ - Work order → `.claude/trinity/archive/work-orders/YYYY-MM-DD/`
183
+ - Completion report → `.claude/trinity/archive/reports/YYYY-MM-DD/`
184
+ - JUNO audit report → `.claude/trinity/archive/reports/YYYY-MM-DD/` (if applicable)
185
+ - Session summary → `.claude/trinity/archive/sessions/YYYY-MM-DD/`
186
186
 
187
187
  ---
188
188
 
@@ -129,31 +129,31 @@ From Work Order #XXX:
129
129
  - [ ] All deliverables include required sections listed above
130
130
 
131
131
  **Step 2: 🚨 MOVE THIS WORK ORDER FILE 🚨** ✅
132
- - [ ] **IMMEDIATELY** move this file from `trinity/work-orders/` to `trinity/sessions/`
133
- - [ ] **THIS STEP IS MANDATORY** - Work orders left in trinity/work-orders/ are considered incomplete
132
+ - [ ] **IMMEDIATELY** move this file from `.claude/trinity/work-orders/` to `.claude/trinity/sessions/`
133
+ - [ ] **THIS STEP IS MANDATORY** - Work orders left in .claude/trinity/work-orders/ are considered incomplete
134
134
 
135
135
  **Execute this exact command:**
136
136
  ```bash
137
- mv trinity/work-orders/{{workOrderFilename}} trinity/sessions/
137
+ mv .claude/trinity/work-orders/{{workOrderFilename}} .claude/trinity/sessions/
138
138
  ```
139
139
 
140
140
  **Step 3: Verify File Locations** ✅
141
- - [ ] This work order file NOW EXISTS in: `trinity/sessions/{{workOrderFilename}}`
141
+ - [ ] This work order file NOW EXISTS in: `.claude/trinity/sessions/{{workOrderFilename}}`
142
142
  - [ ] Completion report exists in: `${PROJECT_REPORTS}/VERIFICATION-[COMPONENT]-[TIMESTAMP].md`
143
- - [ ] This work order NO LONGER EXISTS in: `trinity/work-orders/`
143
+ - [ ] This work order NO LONGER EXISTS in: `.claude/trinity/work-orders/`
144
144
 
145
145
  **If any verification fails, the work order is NOT complete. Fix immediately.**
146
146
 
147
147
  **Step 4: Session Cleanup (when entire session complete):**
148
148
  - [ ] When session is complete, run `/trinity-end`
149
- - [ ] trinity-end will archive ALL files from `trinity/sessions/` and `${PROJECT_REPORTS}/`
149
+ - [ ] trinity-end will archive ALL files from `.claude/trinity/sessions/` and `${PROJECT_REPORTS}/`
150
150
  - [ ] Next session starts with empty sessions/ and reports/ folders
151
151
 
152
152
  **Archive Destination (via trinity-end):**
153
- - Work order → `trinity/archive/work-orders/YYYY-MM-DD/`
154
- - Completion report → `trinity/archive/reports/YYYY-MM-DD/`
155
- - JUNO audit report → `trinity/archive/reports/YYYY-MM-DD/` (if applicable)
156
- - Session summary → `trinity/archive/sessions/YYYY-MM-DD/`
153
+ - Work order → `.claude/trinity/archive/work-orders/YYYY-MM-DD/`
154
+ - Completion report → `.claude/trinity/archive/reports/YYYY-MM-DD/`
155
+ - JUNO audit report → `.claude/trinity/archive/reports/YYYY-MM-DD/` (if applicable)
156
+ - Session summary → `.claude/trinity/archive/sessions/YYYY-MM-DD/`
157
157
 
158
158
  ---
159
159
 
package/package.json CHANGED
@@ -1,94 +1,99 @@
1
- {
2
- "name": "trinity-method-sdk",
3
- "version": "2.1.0",
4
- "description": "Trinity Method SDK - Investigation-first development methodology for any project",
5
- "type": "module",
6
- "main": "dist/index.js",
7
- "types": "dist/index.d.ts",
8
- "files": [
9
- "dist/",
10
- "!dist/**/*.map",
11
- "README.md",
12
- "LICENSE",
13
- "CHANGELOG.md"
14
- ],
15
- "bin": {
16
- "trinity": "./dist/cli/index.js"
17
- },
18
- "scripts": {
19
- "clean": "rimraf dist",
20
- "prebuild": "npm run clean",
21
- "build": "tsc && npm run copy-templates",
22
- "copy-templates": "node -e \"const fs=require('fs-extra'); fs.copySync('src/templates', 'dist/templates');\"",
23
- "test": "node --experimental-vm-modules --no-warnings node_modules/jest/bin/jest.js",
24
- "test:unit": "node --experimental-vm-modules --no-warnings node_modules/jest/bin/jest.js --selectProjects unit",
25
- "test:integration": "node --experimental-vm-modules --no-warnings node_modules/jest/bin/jest.js --selectProjects integration",
26
- "test:e2e": "node --experimental-vm-modules --no-warnings node_modules/jest/bin/jest.js --selectProjects e2e --passWithNoTests",
27
- "test:performance": "node --experimental-vm-modules --no-warnings node_modules/jest/bin/jest.js --selectProjects performance --passWithNoTests",
28
- "test:coverage": "node --experimental-vm-modules --no-warnings node_modules/jest/bin/jest.js --coverage",
29
- "test:watch": "node --experimental-vm-modules --no-warnings node_modules/jest/bin/jest.js --watch",
30
- "lint": "eslint src/ tests/",
31
- "lint:fix": "eslint src/ tests/ --fix",
32
- "format": "prettier --write src/ tests/",
33
- "format:check": "prettier --check src/ tests/",
34
- "type-check": "tsc --noEmit",
35
- "docs:generate": "typedoc --out docs src/",
36
- "pretest": "npm run type-check",
37
- "prepublishOnly": "npm run build && npm run test",
38
- "prepare": "husky"
39
- },
40
- "keywords": [
41
- "trinity-method",
42
- "development-methodology",
43
- "investigation-first",
44
- "ai-coding",
45
- "claude-code",
46
- "cursor",
47
- "copilot"
48
- ],
49
- "author": "Trinity Method",
50
- "license": "MIT",
51
- "devDependencies": {
52
- "@eslint/js": "^9.39.2",
53
- "@jest/globals": "^30.2.0",
54
- "@types/fs-extra": "^11.0.4",
55
- "@types/glob": "^8.1.0",
56
- "@types/inquirer": "^9.0.9",
57
- "@types/jest": "^30.0.0",
58
- "@types/node": "^25.0.3",
59
- "@typescript-eslint/eslint-plugin": "^8.50.0",
60
- "@typescript-eslint/parser": "^8.50.0",
61
- "eslint": "^9.39.2",
62
- "eslint-plugin-jest": "^29.5.0",
63
- "husky": "^9.1.7",
64
- "jest": "^30.2.0",
65
- "jest-mock": "^30.2.0",
66
- "lint-staged": "^16.2.7",
67
- "prettier": "^3.0.0",
68
- "rimraf": "^6.0.1",
69
- "ts-jest": "^29.1.0",
70
- "typedoc": "^0.28.15",
71
- "typescript": "^5.9.3"
72
- },
73
- "dependencies": {
74
- "chalk": "^5.3.0",
75
- "commander": "^14.0.2",
76
- "fs-extra": "^11.3.3",
77
- "glob": "^13.0.0",
78
- "inquirer": "^13.1.0",
79
- "ora": "^9.0.0"
80
- },
81
- "lint-staged": {
82
- "*.{ts,tsx}": [
83
- "eslint --fix",
84
- "prettier --write"
85
- ],
86
- "*.{js,jsx}": [
87
- "eslint --fix",
88
- "prettier --write"
89
- ],
90
- "*.{json,md,yml,yaml}": [
91
- "prettier --write"
92
- ]
93
- }
94
- }
1
+ {
2
+ "name": "trinity-method-sdk",
3
+ "version": "2.2.1",
4
+ "description": "Trinity Method SDK - Investigation-first development methodology for any project",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "files": [
9
+ "dist/",
10
+ "!dist/**/*.map",
11
+ "README.md",
12
+ "LICENSE",
13
+ "CHANGELOG.md"
14
+ ],
15
+ "bin": {
16
+ "trinity": "./dist/cli/index.js"
17
+ },
18
+ "scripts": {
19
+ "clean": "rimraf dist",
20
+ "prebuild": "npm run clean",
21
+ "build": "tsc && npm run copy-templates",
22
+ "copy-templates": "node -e \"const fs=require('fs-extra'); fs.copySync('src/templates', 'dist/templates');\"",
23
+ "test": "node --experimental-vm-modules --no-warnings node_modules/jest/bin/jest.js",
24
+ "test:unit": "node --experimental-vm-modules --no-warnings node_modules/jest/bin/jest.js --selectProjects unit",
25
+ "test:integration": "node --experimental-vm-modules --no-warnings node_modules/jest/bin/jest.js --selectProjects integration",
26
+ "test:e2e": "node --experimental-vm-modules --no-warnings node_modules/jest/bin/jest.js --selectProjects e2e --passWithNoTests",
27
+ "test:performance": "node --experimental-vm-modules --no-warnings node_modules/jest/bin/jest.js --selectProjects performance --passWithNoTests",
28
+ "test:coverage": "node --experimental-vm-modules --no-warnings node_modules/jest/bin/jest.js --coverage",
29
+ "test:watch": "node --experimental-vm-modules --no-warnings node_modules/jest/bin/jest.js --watch",
30
+ "lint": "eslint src/ tests/",
31
+ "lint:fix": "eslint src/ tests/ --fix",
32
+ "format": "prettier --write src/ tests/",
33
+ "format:check": "prettier --check src/ tests/",
34
+ "type-check": "tsc --noEmit",
35
+ "docs:generate": "typedoc --out docs src/",
36
+ "pretest": "npm run type-check",
37
+ "prepublishOnly": "npm run build && npm run test",
38
+ "prepare": "husky"
39
+ },
40
+ "keywords": [
41
+ "trinity-method",
42
+ "development-methodology",
43
+ "investigation-first",
44
+ "ai-coding",
45
+ "claude-code",
46
+ "cursor",
47
+ "copilot"
48
+ ],
49
+ "author": "Trinity Method",
50
+ "license": "MIT",
51
+ "devDependencies": {
52
+ "@eslint/js": "^9.39.2",
53
+ "@jest/globals": "^30.2.0",
54
+ "@types/fs-extra": "^11.0.4",
55
+ "@types/glob": "^8.1.0",
56
+ "@types/inquirer": "^9.0.9",
57
+ "@types/jest": "^30.0.0",
58
+ "@types/node": "^25.0.3",
59
+ "@typescript-eslint/eslint-plugin": "^8.50.0",
60
+ "@typescript-eslint/parser": "^8.50.0",
61
+ "eslint": "^9.39.2",
62
+ "eslint-plugin-jest": "^29.5.0",
63
+ "husky": "^9.1.7",
64
+ "jest": "^30.2.0",
65
+ "jest-mock": "^30.2.0",
66
+ "lint-staged": "^16.2.7",
67
+ "markdownlint-cli": "^0.47.0",
68
+ "prettier": "^3.0.0",
69
+ "rimraf": "^6.0.1",
70
+ "ts-jest": "^29.1.0",
71
+ "typedoc": "^0.28.15",
72
+ "typescript": "^5.9.3"
73
+ },
74
+ "dependencies": {
75
+ "chalk": "^5.3.0",
76
+ "commander": "^14.0.2",
77
+ "fs-extra": "^11.3.3",
78
+ "glob": "^13.0.0",
79
+ "inquirer": "^13.1.0",
80
+ "ora": "^9.0.0"
81
+ },
82
+ "lint-staged": {
83
+ "*.{ts,tsx}": [
84
+ "eslint --fix",
85
+ "prettier --write"
86
+ ],
87
+ "*.{js,jsx}": [
88
+ "eslint --fix",
89
+ "prettier --write"
90
+ ],
91
+ "*.{json,md,yml,yaml}": [
92
+ "prettier --write"
93
+ ]
94
+ },
95
+ "overrides": {
96
+ "minimatch": "^10.2.1",
97
+ "test-exclude": "^7.0.2"
98
+ }
99
+ }