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
|
@@ -632,7 +632,7 @@ security:
|
|
|
632
632
|
|
|
633
633
|
### Investigation Report Format
|
|
634
634
|
**Filename:** `INV-{{investigationId}}-findings-[TIMESTAMP].md`
|
|
635
|
-
**Location:**
|
|
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
|
|
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
|
|
666
|
-
- [ ] Keep report in
|
|
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
|
|
671
|
-
- [ ] Report will be archived to
|
|
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
|
|
675
|
-
- [ ] Verify
|
|
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](
|
|
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](
|
|
693
|
-
- [Known Issues](
|
|
694
|
-
- [Technical Debt](
|
|
695
|
-
- [Testing Standards](
|
|
696
|
-
- [Coding Standards](
|
|
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:**
|
|
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
|
|
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
|
|
348
|
-
- [ ] Keep report in
|
|
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
|
|
353
|
-
- [ ] Report will be archived to
|
|
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
|
|
357
|
-
- [ ] Verify
|
|
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](
|
|
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](
|
|
370
|
-
- [Known Issues](
|
|
371
|
-
- [Technical Debt](
|
|
372
|
-
- [Testing Standards](
|
|
373
|
-
- [Coding Standards](
|
|
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
|
|
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:
|
|
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:
|
|
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
|
|
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 →
|
|
155
|
-
- Completion report →
|
|
156
|
-
- JUNO audit report →
|
|
157
|
-
- Session summary →
|
|
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
|
|
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:
|
|
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:
|
|
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
|
|
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 →
|
|
154
|
-
- Completion report →
|
|
155
|
-
- JUNO audit report →
|
|
156
|
-
- Session summary →
|
|
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
|
|
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:
|
|
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:
|
|
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
|
|
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 →
|
|
125
|
-
- Completion report →
|
|
126
|
-
- JUNO audit report →
|
|
127
|
-
- Session summary →
|
|
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
|
|
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:
|
|
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:
|
|
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
|
|
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 →
|
|
123
|
-
- Completion report →
|
|
124
|
-
- JUNO audit report →
|
|
125
|
-
- Session summary →
|
|
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
|
|
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:
|
|
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:
|
|
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
|
|
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 →
|
|
183
|
-
- Completion report →
|
|
184
|
-
- JUNO audit report →
|
|
185
|
-
- Session summary →
|
|
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
|
|
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:
|
|
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:
|
|
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
|
|
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 →
|
|
154
|
-
- Completion report →
|
|
155
|
-
- JUNO audit report →
|
|
156
|
-
- Session summary →
|
|
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
|
|
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
|
-
"
|
|
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
|
-
}
|
|
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
|
+
}
|