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
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
name: Trinity Method CI
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [main, dev, develop]
|
|
6
|
-
pull_request:
|
|
7
|
-
branches: [main, dev, develop]
|
|
8
|
-
workflow_dispatch:
|
|
9
|
-
|
|
10
|
-
jobs:
|
|
11
|
-
test:
|
|
12
|
-
runs-on: ubuntu-latest
|
|
13
|
-
|
|
14
|
-
strategy:
|
|
15
|
-
matrix:
|
|
16
|
-
node-version: [18.x, 20.x]
|
|
17
|
-
|
|
18
|
-
steps:
|
|
19
|
-
- name: Checkout code
|
|
20
|
-
uses: actions/checkout@v4
|
|
21
|
-
|
|
22
|
-
- name: Setup Node.js ${{ matrix.node-version }}
|
|
23
|
-
uses: actions/setup-node@v4
|
|
24
|
-
with:
|
|
25
|
-
node-version: ${{ matrix.node-version }}
|
|
26
|
-
cache: 'npm'
|
|
27
|
-
|
|
28
|
-
- name: Install dependencies
|
|
29
|
-
run: npm ci
|
|
30
|
-
|
|
31
|
-
- name: Run linting
|
|
32
|
-
run: npm run lint
|
|
33
|
-
continue-on-error: true
|
|
34
|
-
|
|
35
|
-
- name: Run tests
|
|
36
|
-
run: npm test
|
|
37
|
-
|
|
38
|
-
- name: Run tests with coverage
|
|
39
|
-
run: npm run test:coverage
|
|
40
|
-
if: matrix.node-version == '20.x'
|
|
41
|
-
|
|
42
|
-
- name: Upload coverage reports
|
|
43
|
-
uses: codecov/codecov-action@v3
|
|
44
|
-
if: matrix.node-version == '20.x'
|
|
45
|
-
with:
|
|
46
|
-
files: ./coverage/lcov.info
|
|
47
|
-
flags: unittests
|
|
48
|
-
name: codecov-umbrella
|
|
49
|
-
fail_ci_if_error: false
|
|
50
|
-
|
|
51
|
-
- name: Deploy Trinity Method structure
|
|
52
|
-
if: success() && matrix.node-version == '20.x'
|
|
53
|
-
run: npx trinity deploy --agent claude --ci-deploy --yes
|
|
54
|
-
env:
|
|
55
|
-
CI: true
|
|
56
|
-
|
|
57
|
-
build:
|
|
58
|
-
runs-on: ubuntu-latest
|
|
59
|
-
needs: test
|
|
60
|
-
|
|
61
|
-
steps:
|
|
62
|
-
- name: Checkout code
|
|
63
|
-
uses: actions/checkout@v4
|
|
64
|
-
|
|
65
|
-
- name: Setup Node.js
|
|
66
|
-
uses: actions/setup-node@v4
|
|
67
|
-
with:
|
|
68
|
-
node-version: '20.x'
|
|
69
|
-
cache: 'npm'
|
|
70
|
-
|
|
71
|
-
- name: Install dependencies
|
|
72
|
-
run: npm ci
|
|
73
|
-
|
|
74
|
-
- name: Build project
|
|
75
|
-
run: npm run build
|
|
76
|
-
continue-on-error: true
|
|
77
|
-
|
|
78
|
-
- name: Archive build artifacts
|
|
79
|
-
uses: actions/upload-artifact@v3
|
|
80
|
-
if: success()
|
|
81
|
-
with:
|
|
82
|
-
name: build-artifacts
|
|
83
|
-
path: |
|
|
84
|
-
dist/
|
|
85
|
-
build/
|
|
86
|
-
retention-days: 7
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
# {{PROJECT_NAME}} - Trinity Method
|
|
2
|
-
|
|
3
|
-
** Trinity Version:** {{TRINITY_VERSION}}
|
|
4
|
-
**Deployed:** {{DEPLOYMENT_TIMESTAMP}}
|
|
5
|
-
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
## What is Trinity Method?
|
|
9
|
-
|
|
10
|
-
Trinity Method is an investigation-first development methodology that emphasizes:
|
|
11
|
-
- Understanding before implementing
|
|
12
|
-
- Strategic planning over reactive coding
|
|
13
|
-
- Quality and maintainability from the start
|
|
14
|
-
|
|
15
|
-
## Trinity Structure
|
|
16
|
-
|
|
17
|
-
```
|
|
18
|
-
{{PROJECT_NAME}}/
|
|
19
|
-
├── trinity/
|
|
20
|
-
│ ├── knowledge-base/
|
|
21
|
-
│ │ ├── ARCHITECTURE.md # System architecture
|
|
22
|
-
│ │ ├── Trinity.md # Trinity guidelines
|
|
23
|
-
│ │ ├── To-do.md # Task management
|
|
24
|
-
│ │ ├── ISSUES.md # Known issues
|
|
25
|
-
│ │ └── Technical-Debt.md # Tech debt tracking
|
|
26
|
-
│ └── sessions/ # Session archives
|
|
27
|
-
├── .claude/
|
|
28
|
-
│ └── agents/ # AI agent configurations
|
|
29
|
-
├── CLAUDE.md # Claude Code memory
|
|
30
|
-
└── TRINITY.md # This file
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
## Starting a Session
|
|
34
|
-
|
|
35
|
-
To start working with Trinity Method, use Claude Code:
|
|
36
|
-
|
|
37
|
-
```bash
|
|
38
|
-
claude
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
Then reference this TRINITY.md file to understand the project structure.
|
|
42
|
-
|
|
43
|
-
## Core Principles
|
|
44
|
-
|
|
45
|
-
1. **Investigate First:** Understand before implementing
|
|
46
|
-
2. **Document Thoroughly:** Keep knowledge-base updated
|
|
47
|
-
3. **Archive Sessions:** Track progress in trinity/sessions/
|
|
48
|
-
4. **Quality Focus:** Maintainability over speed
|
|
49
|
-
|
|
50
|
-
---
|
|
51
|
-
|
|
52
|
-
For more information, see: [trinity/knowledge-base/Trinity.md](trinity/knowledge-base/Trinity.md)
|