trinity-method-sdk 2.0.8 → 2.1.0

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 (123) hide show
  1. package/CHANGELOG.md +235 -0
  2. package/README.md +34 -35
  3. package/dist/cli/commands/deploy/agents.js +1 -1
  4. package/dist/cli/commands/deploy/claude-setup.js +28 -35
  5. package/dist/cli/commands/deploy/index.js +1 -1
  6. package/dist/cli/commands/deploy/knowledge-base.js +1 -1
  7. package/dist/cli/commands/deploy/root-files.js +1 -1
  8. package/dist/cli/commands/deploy/sdk-install.js +1 -1
  9. package/dist/cli/commands/deploy/templates.js +29 -16
  10. package/dist/cli/commands/update/agents.js +1 -1
  11. package/dist/cli/commands/update/commands.d.ts +1 -0
  12. package/dist/cli/commands/update/commands.js +18 -45
  13. package/dist/cli/commands/update/knowledge-base.js +1 -1
  14. package/dist/cli/commands/update/templates.js +34 -12
  15. package/dist/cli/utils/deploy-linting.js +1 -1
  16. package/dist/cli/utils/template-processor.js +1 -1
  17. package/dist/templates/{claude → .claude}/EMPLOYEE-DIRECTORY.md.template +1 -1
  18. package/dist/templates/{agents → .claude/agents}/aj-team/apo-documentation-specialist.md.template +3 -3
  19. package/dist/templates/{agents → .claude/agents}/aj-team/bas-quality-gate.md.template +6 -8
  20. package/dist/templates/{agents → .claude/agents}/aj-team/bon-dependency-manager.md.template +8 -8
  21. package/dist/templates/{agents → .claude/agents}/aj-team/cap-configuration-specialist.md.template +3 -3
  22. package/dist/templates/{agents → .claude/agents}/aj-team/dra-code-reviewer.md.template +5 -7
  23. package/dist/templates/{agents → .claude/agents}/aj-team/kil-task-executor.md.template +5 -7
  24. package/dist/templates/{agents → .claude/agents}/aj-team/uro-refactoring-specialist.md.template +3 -3
  25. package/dist/templates/{agents → .claude/agents}/audit/juno-auditor.md.template +7 -2
  26. package/dist/templates/{agents → .claude/agents}/deployment/ein-cicd.md.template +3 -4
  27. package/dist/templates/{agents → .claude/agents}/deployment/ino-context.md.template +6 -3
  28. package/dist/templates/{agents → .claude/agents}/deployment/tan-structure.md.template +4 -1
  29. package/dist/templates/{agents → .claude/agents}/deployment/zen-knowledge.md.template +11 -5
  30. package/dist/templates/{agents → .claude/agents}/leadership/aj-cc.md.template +7 -2
  31. package/dist/templates/{agents → .claude/agents}/leadership/aj-maestro.md.template +4 -0
  32. package/dist/templates/{agents → .claude/agents}/leadership/aly-cto.md.template +5 -1
  33. package/dist/templates/{agents → .claude/agents}/planning/eus-decomposer.md.template +4 -0
  34. package/dist/templates/{agents → .claude/agents}/planning/mon-requirements.md.template +4 -0
  35. package/dist/templates/{agents → .claude/agents}/planning/ror-design.md.template +4 -0
  36. package/dist/templates/{agents → .claude/agents}/planning/tra-planner.md.template +6 -0
  37. package/dist/templates/{shared/claude-commands → .claude/commands/execution}/trinity-audit.md.template +6 -6
  38. package/dist/templates/{shared/claude-commands → .claude/commands/execution}/trinity-orchestrate.md.template +5 -5
  39. package/dist/templates/{shared/claude-commands → .claude/commands/infrastructure}/trinity-init.md.template +12 -11
  40. package/dist/templates/{shared/claude-commands → .claude/commands/investigation}/trinity-create-investigation.md.template +8 -2
  41. package/dist/templates/{shared/claude-commands → .claude/commands/investigation}/trinity-investigate-templates.md.template +9 -5
  42. package/dist/templates/{shared/claude-commands → .claude/commands/investigation}/trinity-plan-investigation.md.template +11 -5
  43. package/dist/templates/{shared/claude-commands → .claude/commands/maintenance}/trinity-changelog.md.template +5 -4
  44. package/dist/templates/.claude/commands/maintenance/trinity-docs-update.md.template +279 -0
  45. package/dist/templates/.claude/commands/maintenance/trinity-docs.md.template +2828 -0
  46. package/dist/templates/{shared/claude-commands → .claude/commands/maintenance}/trinity-readme.md.template +144 -35
  47. package/dist/templates/{shared/claude-commands → .claude/commands/planning}/trinity-decompose.md.template +6 -4
  48. package/dist/templates/{shared/claude-commands → .claude/commands/planning}/trinity-design.md.template +6 -4
  49. package/dist/templates/{shared/claude-commands → .claude/commands/planning}/trinity-plan.md.template +7 -5
  50. package/dist/templates/{shared/claude-commands → .claude/commands/planning}/trinity-requirements.md.template +6 -4
  51. package/dist/templates/{shared/claude-commands → .claude/commands/session}/trinity-continue.md.template +9 -3
  52. package/dist/templates/{shared/claude-commands → .claude/commands/session}/trinity-end.md.template +8 -2
  53. package/dist/templates/{shared/claude-commands → .claude/commands/session}/trinity-start.md.template +8 -2
  54. package/dist/templates/{shared/claude-commands → .claude/commands/utility}/trinity-agents.md.template +8 -2
  55. package/dist/templates/{shared/claude-commands → .claude/commands/utility}/trinity-verify.md.template +9 -4
  56. package/dist/templates/{shared/claude-commands → .claude/commands/utility}/trinity-workorder.md.template +8 -4
  57. package/dist/templates/root/TRINITY.md.template +1 -1
  58. package/dist/templates/source/base-CLAUDE.md.template +310 -310
  59. package/dist/templates/source/flutter-CLAUDE.md.template +593 -593
  60. package/dist/templates/source/nodejs-CLAUDE.md.template +531 -531
  61. package/dist/templates/source/python-CLAUDE.md.template +510 -510
  62. package/dist/templates/source/react-CLAUDE.md.template +513 -513
  63. package/dist/templates/source/rust-CLAUDE.md.template +653 -653
  64. package/dist/templates/{knowledge-base → trinity/knowledge-base}/AI-DEVELOPMENT-GUIDE.md.template +1 -1
  65. package/dist/templates/{knowledge-base → trinity/knowledge-base}/ARCHITECTURE.md.template +3 -3
  66. package/dist/templates/{knowledge-base → trinity/knowledge-base}/CODING-PRINCIPLES.md.template +1 -1
  67. package/dist/templates/{knowledge-base → trinity/knowledge-base}/DOCUMENTATION-CRITERIA.md.template +1 -1
  68. package/dist/templates/{knowledge-base → trinity/knowledge-base}/ISSUES.md.template +3 -3
  69. package/dist/templates/{knowledge-base → trinity/knowledge-base}/TESTING-PRINCIPLES.md.template +1 -1
  70. package/dist/templates/{knowledge-base → trinity/knowledge-base}/Technical-Debt.md.template +3 -3
  71. package/dist/templates/{knowledge-base → trinity/knowledge-base}/To-do.md.template +3 -3
  72. package/dist/templates/{knowledge-base → trinity/knowledge-base}/Trinity.md.template +4 -3
  73. package/dist/templates/{documentation → trinity/templates/documentation}/SUBDIRECTORY-README.md.template +1 -1
  74. package/dist/templates/trinity/templates/documentation/api-docs/README.md.template +218 -0
  75. package/dist/templates/trinity/templates/documentation/configuration/documentation-structure.md.template +71 -0
  76. package/dist/templates/trinity/templates/documentation/configuration/env-example-generator.md.template +387 -0
  77. package/dist/templates/trinity/templates/documentation/discovery/api-endpoint-scanner.md.template +343 -0
  78. package/dist/templates/trinity/templates/documentation/discovery/component-discovery.md.template +254 -0
  79. package/dist/templates/trinity/templates/documentation/discovery/env-variable-extraction.md.template +316 -0
  80. package/dist/templates/trinity/templates/documentation/discovery/framework-detection.md.template +205 -0
  81. package/dist/templates/trinity/templates/documentation/guides/api-development.md.template +375 -0
  82. package/dist/templates/trinity/templates/documentation/guides/contributing.md.template +488 -0
  83. package/dist/templates/trinity/templates/documentation/guides/deployment.md.template +565 -0
  84. package/dist/templates/trinity/templates/documentation/guides/getting-started.md.template +118 -0
  85. package/dist/templates/trinity/templates/documentation/mermaid-diagrams/api-endpoint-map.md.template +56 -0
  86. package/dist/templates/trinity/templates/documentation/mermaid-diagrams/component-hierarchy.md.template +60 -0
  87. package/dist/templates/trinity/templates/documentation/mermaid-diagrams/database-er.md.template +49 -0
  88. package/dist/templates/trinity/templates/documentation/mermaid-diagrams/mvc-flow.md.template +41 -0
  89. package/dist/templates/trinity/templates/documentation/processes/error-handling-protocol.md.template +166 -0
  90. package/dist/templates/trinity/templates/documentation/processes/fallback-mechanism.md.template +88 -0
  91. package/dist/templates/trinity/templates/documentation/reports/apo-docs-update-checklist.md.template +343 -0
  92. package/dist/templates/trinity/templates/documentation/reports/juno-docs-update-checklist.md.template +1337 -0
  93. package/dist/templates/trinity/templates/documentation/reports/juno-final-report.md.template +237 -0
  94. package/dist/templates/trinity/templates/documentation/reports/juno-internal-report.md.template +461 -0
  95. package/dist/templates/trinity/templates/documentation/validation/documentation-verification-rules.md.template +379 -0
  96. package/dist/templates/trinity/templates/documentation/validation/juno-quality-gates.md.template +282 -0
  97. package/dist/templates/{investigations → trinity/templates/investigations}/bug.md.template +2 -2
  98. package/dist/templates/{investigations → trinity/templates/investigations}/feature.md.template +2 -2
  99. package/dist/templates/{investigations → trinity/templates/investigations}/performance.md.template +2 -2
  100. package/dist/templates/{investigations → trinity/templates/investigations}/security.md.template +2 -2
  101. package/dist/templates/{investigations → trinity/templates/investigations}/technical.md.template +2 -2
  102. package/dist/templates/{work-orders → trinity/templates/work-orders}/ANALYSIS-TEMPLATE.md.template +0 -3
  103. package/dist/templates/{work-orders → trinity/templates/work-orders}/AUDIT-TEMPLATE.md.template +0 -16
  104. package/dist/templates/{work-orders → trinity/templates/work-orders}/IMPLEMENTATION-TEMPLATE.md.template +0 -16
  105. package/dist/templates/{work-orders → trinity/templates/work-orders}/INVESTIGATION-TEMPLATE.md.template +0 -15
  106. package/dist/templates/{work-orders → trinity/templates/work-orders}/PATTERN-TEMPLATE.md.template +0 -16
  107. package/dist/templates/{work-orders → trinity/templates/work-orders}/VERIFICATION-TEMPLATE.md.template +0 -16
  108. package/package.json +1 -1
  109. package/dist/templates/shared/claude-commands/trinity-docs.md.template +0 -2208
  110. /package/dist/templates/{linting → root/linting}/flutter/.pre-commit-config.yaml.template +0 -0
  111. /package/dist/templates/{linting → root/linting}/flutter/analysis_options.yaml.template +0 -0
  112. /package/dist/templates/{linting → root/linting}/nodejs/.eslintrc-commonjs.json.template +0 -0
  113. /package/dist/templates/{linting → root/linting}/nodejs/.eslintrc-esm.json.template +0 -0
  114. /package/dist/templates/{linting → root/linting}/nodejs/.eslintrc-typescript.json.template +0 -0
  115. /package/dist/templates/{linting → root/linting}/nodejs/.pre-commit-config.yaml.template +0 -0
  116. /package/dist/templates/{linting → root/linting}/nodejs/.prettierrc.json.template +0 -0
  117. /package/dist/templates/{linting → root/linting}/python/.flake8.template +0 -0
  118. /package/dist/templates/{linting → root/linting}/python/.pre-commit-config.yaml.template +0 -0
  119. /package/dist/templates/{linting → root/linting}/python/pyproject.toml.template +0 -0
  120. /package/dist/templates/{linting → root/linting}/rust/.pre-commit-config.yaml.template +0 -0
  121. /package/dist/templates/{linting → root/linting}/rust/clippy.toml.template +0 -0
  122. /package/dist/templates/{linting → root/linting}/rust/rustfmt.toml.template +0 -0
  123. /package/dist/templates/{documentation → trinity/templates/documentation}/ROOT-README.md.template +0 -0
@@ -13,67 +13,40 @@ const COMMAND_CATEGORIES = [
13
13
  'execution',
14
14
  'investigation',
15
15
  'infrastructure',
16
+ 'maintenance',
16
17
  'utility',
17
18
  ];
18
- /**
19
- * Determine command category based on filename
20
- * @param filename - Command file name
21
- * @returns Category name
22
- */
23
- function determineCommandCategory(filename) {
24
- if (filename.includes('start') || filename.includes('continue') || filename.includes('end')) {
25
- return 'session';
26
- }
27
- else if (filename.includes('requirements') ||
28
- filename.includes('design') ||
29
- filename.includes('plan') ||
30
- filename.includes('decompose')) {
31
- return 'planning';
32
- }
33
- else if (filename.includes('orchestrate') ||
34
- filename.includes('audit') ||
35
- filename.includes('changelog') ||
36
- filename.includes('docs') ||
37
- filename.includes('readme')) {
38
- return 'execution';
39
- }
40
- else if (filename.includes('investigation') || filename.includes('investigate')) {
41
- return 'investigation';
42
- }
43
- else if (filename.includes('init')) {
44
- return 'infrastructure';
45
- }
46
- return 'utility';
47
- }
48
19
  /**
49
20
  * Update slash command files from SDK to .claude/commands/
21
+ * Commands are now organized by category in source templates
50
22
  * @param spinner - ora spinner instance for status display
51
23
  * @param stats - update statistics to track progress
52
24
  */
53
25
  export async function updateCommands(spinner, stats) {
54
26
  spinner.start('Updating slash commands...');
55
27
  const sdkPath = await getSDKPath();
56
- const commandsTemplatePath = path.join(sdkPath, 'dist/templates/shared/claude-commands');
28
+ const commandsTemplatePath = path.join(sdkPath, 'dist/templates/.claude/commands');
57
29
  if (!(await fs.pathExists(commandsTemplatePath))) {
58
30
  spinner.warn('Commands template path not found, skipping');
59
31
  return;
60
32
  }
61
- // Create command category directories
33
+ // Iterate through each category directory
62
34
  for (const category of COMMAND_CATEGORIES) {
35
+ const sourceCategoryPath = path.join(commandsTemplatePath, category);
63
36
  const targetCategoryPath = path.join('.claude/commands', category);
64
- await fs.ensureDir(targetCategoryPath);
65
- }
66
- // Copy all command files
67
- const commandFiles = await fs.readdir(commandsTemplatePath);
68
- for (const file of commandFiles) {
69
- if (file.endsWith('.md.template')) {
70
- const sourcePath = path.join(commandsTemplatePath, file);
71
- const category = determineCommandCategory(file);
72
- // Remove .template extension for deployed file
73
- const deployedFileName = file.replace('.template', '');
74
- const targetPath = path.join('.claude/commands', category, deployedFileName);
75
- await fs.copy(sourcePath, targetPath, { overwrite: true });
76
- stats.commandsUpdated++;
37
+ if (await fs.pathExists(sourceCategoryPath)) {
38
+ await fs.ensureDir(targetCategoryPath);
39
+ const commandFiles = await fs.readdir(sourceCategoryPath);
40
+ for (const file of commandFiles) {
41
+ if (file.endsWith('.md.template')) {
42
+ const sourcePath = path.join(sourceCategoryPath, file);
43
+ // Remove .template extension for deployed file
44
+ const deployedFileName = file.replace('.template', '');
45
+ const targetPath = path.join(targetCategoryPath, deployedFileName);
46
+ await fs.copy(sourcePath, targetPath, { overwrite: true });
47
+ stats.commandsUpdated++;
48
+ }
49
+ }
77
50
  }
78
51
  }
79
52
  spinner.succeed(`Slash commands updated (${stats.commandsUpdated} files)`);
@@ -22,7 +22,7 @@ const SDK_MANAGED_KB_FILES = [
22
22
  export async function updateKnowledgeBase(spinner, stats) {
23
23
  spinner.start('Updating knowledge base...');
24
24
  const sdkPath = await getSDKPath();
25
- const kbTemplatePath = path.join(sdkPath, 'dist/templates/knowledge-base');
25
+ const kbTemplatePath = path.join(sdkPath, 'dist/templates/trinity/knowledge-base');
26
26
  for (const templateFile of SDK_MANAGED_KB_FILES) {
27
27
  const sourcePath = path.join(kbTemplatePath, templateFile);
28
28
  if (await fs.pathExists(sourcePath)) {
@@ -8,6 +8,38 @@ import path from 'path';
8
8
  import { getSDKPath } from './utils.js';
9
9
  /** Template directories to update */
10
10
  const TEMPLATE_DIRS = ['work-orders', 'documentation', 'investigations'];
11
+ /**
12
+ * Recursively copy files from source to target directory
13
+ * @param sourcePath - source directory path
14
+ * @param targetPath - target directory path
15
+ * @param stats - update statistics to track progress
16
+ */
17
+ async function copyTemplatesRecursively(sourcePath, targetPath, stats) {
18
+ const entries = await fs.readdir(sourcePath, { withFileTypes: true });
19
+ for (const entry of entries) {
20
+ const sourceFile = path.join(sourcePath, entry.name);
21
+ const targetFile = path.join(targetPath, entry.name);
22
+ if (entry.isDirectory()) {
23
+ // Recursively copy subdirectories
24
+ await fs.ensureDir(targetFile);
25
+ await copyTemplatesRecursively(sourceFile, targetFile, stats);
26
+ }
27
+ else if (entry.isFile()) {
28
+ // Copy template files (.md.template files get .template stripped)
29
+ if (entry.name.endsWith('.md.template')) {
30
+ const deployedFileName = entry.name.replace('.template', '');
31
+ const targetFilePath = path.join(targetPath, deployedFileName);
32
+ await fs.copy(sourceFile, targetFilePath, { overwrite: true });
33
+ stats.templatesUpdated++;
34
+ }
35
+ // Copy plain .md files (e.g., Mermaid diagram templates)
36
+ else if (entry.name.endsWith('.md')) {
37
+ await fs.copy(sourceFile, targetFile, { overwrite: true });
38
+ stats.templatesUpdated++;
39
+ }
40
+ }
41
+ }
42
+ }
11
43
  /**
12
44
  * Update template files from SDK to trinity/templates/
13
45
  * @param spinner - ora spinner instance for status display
@@ -16,23 +48,13 @@ const TEMPLATE_DIRS = ['work-orders', 'documentation', 'investigations'];
16
48
  export async function updateTemplates(spinner, stats) {
17
49
  spinner.start('Updating templates...');
18
50
  const sdkPath = await getSDKPath();
19
- const sdkTemplatesPath = path.join(sdkPath, 'dist/templates');
51
+ const sdkTemplatesPath = path.join(sdkPath, 'dist/templates/trinity/templates');
20
52
  for (const templateDir of TEMPLATE_DIRS) {
21
53
  const sourcePath = path.join(sdkTemplatesPath, templateDir);
22
54
  const targetPath = path.join('trinity/templates', templateDir);
23
55
  if (await fs.pathExists(sourcePath)) {
24
56
  await fs.ensureDir(targetPath);
25
- const files = await fs.readdir(sourcePath);
26
- // Copy each file individually, stripping .template extension
27
- for (const file of files) {
28
- if (file.endsWith('.md.template')) {
29
- const sourceFile = path.join(sourcePath, file);
30
- const deployedFileName = file.replace('.template', '');
31
- const targetFile = path.join(targetPath, deployedFileName);
32
- await fs.copy(sourceFile, targetFile, { overwrite: true });
33
- stats.templatesUpdated++;
34
- }
35
- }
57
+ await copyTemplatesRecursively(sourcePath, targetPath, stats);
36
58
  }
37
59
  }
38
60
  spinner.succeed(`Templates updated (${stats.templatesUpdated} files)`);
@@ -4,7 +4,7 @@ import { processTemplate } from './template-processor.js';
4
4
  import { validatePath } from './validate-path.js';
5
5
  export async function deployLintingTool(tool, stack, templatesPath, variables) {
6
6
  const frameworkDir = getFrameworkDirectory(stack.framework);
7
- const templateDir = path.join(templatesPath, 'linting', frameworkDir);
7
+ const templateDir = path.join(templatesPath, 'root/linting', frameworkDir);
8
8
  switch (tool.id) {
9
9
  case 'eslint':
10
10
  case 'eslint-typescript': // Alias for eslint with TypeScript (backward compatibility)
@@ -24,7 +24,7 @@ const VARIABLE_RESOLVERS = {
24
24
  DEPLOYMENT_TIMESTAMP: (v) => toString(v.DEPLOYMENT_TIMESTAMP || v.timestamp) || new Date().toISOString(),
25
25
  LANGUAGE: (v) => toString(v.LANGUAGE || v.language) || 'Unknown',
26
26
  PACKAGE_MANAGER: (v) => toString(v.PACKAGE_MANAGER || v.packageManager) || 'npm',
27
- TRINITY_VERSION: (v) => toString(v.TRINITY_VERSION) || '2.0.8',
27
+ TRINITY_VERSION: (v) => toString(v.TRINITY_VERSION) || '2.1.0',
28
28
  TECHNOLOGY_STACK: (v) => toString(v.TECHNOLOGY_STACK || v.TECH_STACK || v.techStack) || 'Unknown',
29
29
  PRIMARY_FRAMEWORK: (v) => toString(v.PRIMARY_FRAMEWORK || v.FRAMEWORK || v.framework) || 'Generic',
30
30
  CURRENT_DATE: (v) => toString(v.CURRENT_DATE) || new Date().toISOString().split('T')[0],
@@ -2,7 +2,7 @@
2
2
  **Project:** {{PROJECT_NAME}}
3
3
  **Framework:** {{FRAMEWORK}}
4
4
  **Trinity Version:** {{TRINITY_VERSION}}
5
- **Last Updated:** {{DEPLOYMENT_TIMESTAMP}}
5
+ **Last Updated**: {{DEPLOYMENT_TIMESTAMP}}
6
6
 
7
7
  ---
8
8
 
@@ -566,7 +566,7 @@ Before handing back to KIL:
566
566
 
567
567
  ---
568
568
 
569
- **Agent Maintained By**: Trinity Method SDK Team
570
- **Version**: 2.0.0
571
- **Last Updated**: 2025-12-19
569
+ **Agent Maintained By:** Trinity Method SDK Team
570
+ **Trinity Version:** 2.1.0
571
+ **Last Updated:** 2026-01-21
572
572
  **Coordinates With**: JUNO (receives audit findings), KIL (invoked for API docs during implementation)
@@ -770,13 +770,6 @@ Before approving task:
770
770
 
771
771
  ---
772
772
 
773
- **Agent Maintained By**: Trinity Method SDK Team
774
- **Version**: 2.0.0
775
- **Last Updated**: 2025-10-11
776
- **Coordinates With**: KIL, DRA
777
-
778
- ---
779
-
780
773
  ## Configuration Priority Order
781
774
 
782
775
  Trinity supports configuration at multiple levels. Priority (highest to lowest):
@@ -791,7 +784,7 @@ Trinity supports configuration at multiple levels. Priority (highest to lowest):
791
784
  ```markdown
792
785
  # trinity/knowledge-base/TESTING-PRINCIPLES.md
793
786
  COVERAGE_THRESHOLD=85
794
-
787
+
795
788
  # trinity/knowledge-base/CODING-PRINCIPLES.md
796
789
  MAX_FUNCTION_LENGTH=50
797
790
  ```
@@ -904,3 +897,8 @@ Attempt 3 (after coverage improvement):
904
897
  ```
905
898
 
906
899
  ---
900
+
901
+ **Agent Maintained By**: Trinity Method SDK Team
902
+ **Trinity Version:** 2.1.0
903
+ **Last Updated:** 2026-01-21
904
+ **Coordinates With**: KIL, DRA
@@ -102,7 +102,7 @@ npm test
102
102
  "status": "success",
103
103
  "data": {
104
104
  "package": "email-validator",
105
- "versionInstalled": "2.0.8",
105
+ "versionInstalled": "2.0.0",
106
106
  "securityAudit": "passed",
107
107
  "vulnerabilities": 0,
108
108
  "testsAfterInstall": "passed",
@@ -365,11 +365,11 @@ npm audit
365
365
 
366
366
  # 3. Install
367
367
  npm install email-validator@^2.0.0
368
- # ✅ Installed v2.0.8
368
+ # ✅ Installed v2.0.9
369
369
 
370
370
  # 4. Verify
371
371
  npm ls email-validator
372
- # ✅ email-validator@2.0.8
372
+ # ✅ email-validator@2.1.0
373
373
 
374
374
  # 5. Run tests
375
375
  npm test
@@ -384,7 +384,7 @@ npm test
384
384
  "data": {
385
385
  "package": "email-validator",
386
386
  "versionRequested": "^2.0.0",
387
- "versionInstalled": "2.0.8",
387
+ "versionInstalled": "2.0.5",
388
388
  "weeklyDownloads": "5,234,567",
389
389
  "securityAudit": "passed",
390
390
  "vulnerabilities": 0,
@@ -514,7 +514,7 @@ npm install react@18.0.0 --dry-run
514
514
  "data": {
515
515
  "action": "install",
516
516
  "package": "email-validator",
517
- "versionInstalled": "2.0.8",
517
+ "versionInstalled": "2.0.5",
518
518
  "securityAudit": "passed",
519
519
  "vulnerabilities": 0,
520
520
  "testsAfterInstall": "passed",
@@ -630,7 +630,7 @@ Before handing back to KIL:
630
630
 
631
631
  ---
632
632
 
633
- **Agent Maintained By**: Trinity Method SDK Team
634
- **Version**: 2.0.0
635
- **Last Updated**: 2025-10-11
633
+ **Agent Maintained By:** Trinity Method SDK Team
634
+ **Trinity Version:** 2.1.0
635
+ **Last Updated:** 2026-01-21
636
636
  **Coordinates With**: KIL (invoked as-needed)
@@ -664,7 +664,7 @@ Before handing back to KIL:
664
664
 
665
665
  ---
666
666
 
667
- **Agent Maintained By**: Trinity Method SDK Team
668
- **Version**: 2.0.0
669
- **Last Updated**: 2025-10-11
667
+ **Agent Maintained By:** Trinity Method SDK Team
668
+ **Trinity Version:** 2.1.0
669
+ **Last Updated:** 2026-01-21
670
670
  **Coordinates With**: KIL (invoked as-needed)
@@ -655,13 +655,6 @@ Before approving phase completion:
655
655
 
656
656
  ---
657
657
 
658
- **Agent Maintained By**: Trinity Method SDK Team
659
- **Version**: 2.0.0
660
- **Last Updated**: 2025-10-11
661
- **Coordinates With**: BAS, KIL, AJ MAESTRO
662
-
663
- ---
664
-
665
658
  ## Compliance Scoring Methodology
666
659
 
667
660
  ### How DRA Calculates Compliance
@@ -766,3 +759,8 @@ Total: 65/100 (FAIL - < 70% threshold)
766
759
  **Minimum Pass**: 70/100
767
760
 
768
761
  ---
762
+
763
+ **Agent Maintained By**: Trinity Method SDK Team
764
+ **Trinity Version:** 2.1.0
765
+ **Last Updated:** 2026-01-21
766
+ **Coordinates With**: BAS, KIL, AJ MAESTRO
@@ -693,13 +693,6 @@ Acceptance Criteria:
693
693
 
694
694
  ---
695
695
 
696
- **Agent Maintained By**: Trinity Method SDK Team
697
- **Version**: 2.0.0
698
- **Last Updated**: 2025-10-11
699
- **Coordinates With**: EUS, BAS, DRA, APO, BON, CAP, URO
700
-
701
- ---
702
-
703
696
  ## Configuration Priority Order
704
697
 
705
698
  Trinity supports configuration at multiple levels. Priority (highest to lowest):
@@ -762,3 +755,8 @@ After completing each task, KIL hands off to BAS for 6-phase validation:
762
755
  **All phases must pass** before task is considered complete.
763
756
 
764
757
  ---
758
+
759
+ **Agent Maintained By**: Trinity Method SDK Team
760
+ **Trinity Version:** 2.1.0
761
+ **Last Updated:** 2026-01-21
762
+ **Coordinates With**: EUS, BAS, DRA, APO, BON, CAP, URO
@@ -753,7 +753,7 @@ Before handing back to KIL:
753
753
 
754
754
  ---
755
755
 
756
- **Agent Maintained By**: Trinity Method SDK Team
757
- **Version**: 2.0.0
758
- **Last Updated**: 2025-10-11
756
+ **Agent Maintained By:** Trinity Method SDK Team
757
+ **Trinity Version:** 2.1.0
758
+ **Last Updated:** 2026-01-21
759
759
  **Coordinates With**: KIL (invoked during REFACTOR phase)
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: JUNO (Quality Auditor)
3
3
  description: Comprehensive Trinity v2.0 deployment audit and quality assurance
4
- tools: Read, Bash, Glob, Grep
4
+ tools: Read, Write, Edit, Bash, Glob, Grep
5
5
  ---
6
6
 
7
7
  # JUNO - Quality Auditor
@@ -9,7 +9,6 @@ tools: Read, Bash, Glob, Grep
9
9
  **Role:** Comprehensive Trinity v2.0 deployment audit and quality assurance
10
10
  **Team:** Audit Team
11
11
  **Specialization:** Deployment verification, compliance checking, quality metrics reporting, codebase audits
12
- **Trinity Version:** v2.0
13
12
 
14
13
  ---
15
14
 
@@ -445,3 +444,9 @@ trinity/reports/audit-YYYYMMDD-HHMMSS.md
445
444
 
446
445
  ⚠️ **Content issues:**
447
446
  - [List any agents with incomplete sections]
447
+
448
+ ---
449
+
450
+ **Agent Maintained By:** Trinity Method SDK Team
451
+ **Trinity Version:** 2.1.0
452
+ **Last Updated:** 2026-01-21
@@ -9,7 +9,6 @@ tools: Read, Write, Edit, Bash
9
9
  **Role:** Continuous Integration/Continuous Deployment automation with BAS quality gate integration
10
10
  **Team:** Deployment Team
11
11
  **Specialization:** GitHub Actions, pre-commit hooks, coverage reporting, BAS 6-phase gate integration
12
- **Trinity Version:** v2.0
13
12
 
14
13
  ---
15
14
 
@@ -689,6 +688,6 @@ Ein's work is complete when:
689
688
 
690
689
  ---
691
690
 
692
- **Trinity Method Version:** v2.0
693
- **Specialist:** Ein (CI/CD)
694
- **v2.0 Integration:** BAS quality gates, 80% coverage enforcement, pre-commit hooks
691
+ **Agent Maintained By:** Trinity Method SDK Team
692
+ **Trinity Version:** 2.1.0
693
+ **Last Updated:** 2026-01-21
@@ -9,7 +9,6 @@ tools: Read, Write, Edit, Bash
9
9
  **Role:** CLAUDE.md hierarchy management and ISSUES.md database creation
10
10
  **Team:** Deployment Team
11
11
  **Specialization:** Project context establishment, behavioral hierarchy, issue tracking structure
12
- **Trinity Version:** v2.0
13
12
 
14
13
  ---
15
14
 
@@ -272,7 +271,7 @@ When working on this project, follow Trinity Method v2.0:
272
271
 
273
272
  ---
274
273
 
275
- **Last Updated:** {{DEPLOYMENT_TIMESTAMP}}
274
+ **Last Updated**: {{DEPLOYMENT_TIMESTAMP}}
276
275
  **Updated By:** INO (Context Specialist)
277
276
  **Trinity Version:** {{TRINITY_VERSION}}
278
277
  ```
@@ -311,7 +310,7 @@ INO must UPDATE trinity/knowledge-base/ISSUES.md with this structure:
311
310
 
312
311
  **Project:** {{PROJECT_NAME}}
313
312
  **Maintained By:** Trinity Method v2.0
314
- **Last Updated:** {{DEPLOYMENT_TIMESTAMP}}
313
+ ****Last Updated**: {{DEPLOYMENT_TIMESTAMP}}
315
314
 
316
315
  ---
317
316
 
@@ -731,3 +730,7 @@ Trinity establishes a 2-level CLAUDE.md hierarchy:
731
730
  **Documentation**: See `.claude/CLAUDE.md` for hierarchy details
732
731
 
733
732
  ---
733
+
734
+ **Agent Maintained By:** Trinity Method SDK Team
735
+ **Trinity Version:** 2.1.0
736
+ **Last Updated:** 2026-01-21
@@ -9,7 +9,6 @@ tools: Bash, Read, Edit, Glob, Grep
9
9
  **Role:** Trinity Method v2.0 folder structure verification and validation
10
10
  **Team:** Deployment Team
11
11
  **Specialization:** Directory structure, agent deployment verification, technical debt baseline establishment
12
- **Trinity Version:** v2.0
13
12
 
14
13
  ---
15
14
 
@@ -659,3 +658,7 @@ chmod -R 755 trinity/
659
658
  ```
660
659
 
661
660
  ---
661
+
662
+ **Agent Maintained By:** Trinity Method SDK Team
663
+ **Trinity Version:** 2.1.0
664
+ **Last Updated:** 2026-01-21
@@ -58,8 +58,8 @@ Location: `trinity/knowledge-base/ARCHITECTURE.md`
58
58
  **Framework:** {{FRAMEWORK}}
59
59
  **Tech Stack:** {{TECH_STACK}}
60
60
  **Source Directory:** {{SOURCE_DIR}}
61
- **Trinity Version:** {{TRINITY_VERSION}} (v2.0)
62
- **Last Updated:** {{DEPLOYMENT_TIMESTAMP}}
61
+ **Trinity Version:** {{TRINITY_VERSION}}
62
+ **Last Updated**: {{DEPLOYMENT_TIMESTAMP}}
63
63
 
64
64
  ## System Overview
65
65
 
@@ -305,7 +305,7 @@ Location: `trinity/knowledge-base/To-do.md`
305
305
  ```markdown
306
306
  # {{PROJECT_NAME}} - Tasks
307
307
 
308
- **Last Updated:** {{DEPLOYMENT_TIMESTAMP}}
308
+ **Last Updated**: {{DEPLOYMENT_TIMESTAMP}}
309
309
  **Framework:** {{FRAMEWORK}}
310
310
  **Trinity Version:** {{TRINITY_VERSION}} (v2.0)
311
311
 
@@ -445,7 +445,13 @@ When finished, confirm:
445
445
 
446
446
  ---
447
447
 
448
- **Trinity Method Version:** {{TRINITY_VERSION}} (v2.0)
448
+ **Trinity Method Version:** {{TRINITY_VERSION}}
449
449
  **Deployed:** {{DEPLOYMENT_TIMESTAMP}}
450
450
  **Specialist:** ZEN (Knowledge Base)
451
- **v2.0 Integration:** Complete
451
+ **v2.0.9 Integration:** Complete
452
+
453
+ ---
454
+
455
+ **Agent Maintained By:** Trinity Method SDK Team
456
+ **Trinity Version:** 2.1.0
457
+ **Last Updated:** 2026-01-21
@@ -323,7 +323,7 @@ Recommendation: Option 1 (Continue with AJ MAESTRO for quality assurance)
323
323
 
324
324
  **AJ CC Handoff to ALY**:
325
325
  ```
326
- ALY, user session interrupted mid-implementation. WO-042 needs completion with
326
+ ALY, user session interrupted mid-implementation. WO-042 needs completion with
327
327
  AJ MAESTRO coordination. Recommend resuming at Task 4 with BAS quality gates.
328
328
  ```
329
329
 
@@ -456,7 +456,12 @@ As AJ (Implementation Lead), you are:
456
456
 
457
457
  ---
458
458
 
459
- **Trinity Method Version:** {{TRINITY_VERSION}}
460
459
  **Deployed:** {{DEPLOYMENT_TIMESTAMP}}
461
460
  **Project:** {{PROJECT_NAME}}
462
461
  **Framework:** {{FRAMEWORK}}
462
+
463
+ ---
464
+
465
+ **Agent Maintained By:** Trinity Method SDK Team
466
+ **Trinity Version:** 2.1.0
467
+ **Last Updated:** 2026-01-21
@@ -941,3 +941,7 @@ Total: 4.5 hours (18% faster)
941
941
  4. Ensures BAS validates each task before proceeding
942
942
 
943
943
  ---
944
+
945
+ **Agent Maintained By:** Trinity Method SDK Team
946
+ **Trinity Version:** 2.1.0
947
+ **Last Updated:** 2026-01-21
@@ -211,7 +211,7 @@ Implement secure refresh token rotation following OAuth2 best practices.
211
211
 
212
212
  **Option 1: APPROVE**
213
213
  ```
214
- Design approved with minor enhancement: Add rate limiting (5 requests/min per IP) to
214
+ Design approved with minor enhancement: Add rate limiting (5 requests/min per IP) to
215
215
  refresh endpoint. Proceed to TRA for work planning.
216
216
  ```
217
217
 
@@ -405,3 +405,7 @@ Can AJ MAESTRO resolve? (technical/execution)
405
405
  - ALY: "Approved - proceed"
406
406
 
407
407
  ---
408
+
409
+ **Agent Maintained By:** Trinity Method SDK Team
410
+ **Trinity Version:** 2.1.0
411
+ **Last Updated:** 2026-01-21
@@ -494,3 +494,7 @@ Task 8: Integration tests
494
494
  - Parallel: 5 phases × 1 hour = 5 hours (37% faster)
495
495
 
496
496
  ---
497
+
498
+ **Agent Maintained By:** Trinity Method SDK Team
499
+ **Trinity Version:** 2.1.0
500
+ **Last Updated:** 2026-01-21
@@ -321,3 +321,7 @@ Skip MON for:
321
321
  - Complex business logic requiring clarification
322
322
 
323
323
  ---
324
+
325
+ **Agent Maintained By:** Trinity Method SDK Team
326
+ **Trinity Version:** 2.1.0
327
+ **Last Updated:** 2026-01-21
@@ -463,3 +463,7 @@ Sometimes initial scale assessment changes during design phase.
463
463
  **Recommendation to ALY**: "Downgrade to Small scale - simpler than anticipated"
464
464
 
465
465
  ---
466
+
467
+ **Agent Maintained By:** Trinity Method SDK Team
468
+ **Trinity Version:** 2.1.0
469
+ **Last Updated:** 2026-01-21
@@ -430,3 +430,9 @@ Always output structured JSON for EUS to consume:
430
430
  ---
431
431
 
432
432
  **Remember:** TRA's plan guides the entire implementation. Accurate sequencing and realistic estimates ensure smooth execution. BAS quality gates enforce quality at every step, preventing defects from accumulating.
433
+
434
+ ---
435
+
436
+ **Agent Maintained By:** Trinity Method SDK Team
437
+ **Trinity Version:** 2.1.0
438
+ **Last Updated:** 2026-01-21
@@ -1,14 +1,14 @@
1
- ---
2
- description: Launch comprehensive, deterministic codebase audit with JUNO
3
- ---
4
-
5
1
  # Trinity Audit
6
2
 
7
- **Purpose:** Launch JUNO to perform systematic, framework-agnostic codebase audit.
3
+ **Command:** `/execution:trinity-audit`
4
+ **Purpose:** Launch JUNO to perform systematic, framework-agnostic codebase audit
5
+ **Architecture:** JUNO automated analysis → Baseline comparison → Report generation
6
+ **Trinity Version:** 2.1.0
7
+ **Last Updated:** 2026-01-21
8
8
 
9
9
  **Primary Use Case:** Comprehensive quality assessment of any codebase (JavaScript, Python, Rust, Go, etc.)
10
10
 
11
- **IMPORTANT:** When the user invokes `/trinity-audit`, proceed immediately with systematic analysis. The audit is deterministic and reproducible.
11
+ **IMPORTANT:** When the user invokes `/execution:trinity-audit`, proceed immediately with systematic analysis. The audit is deterministic and reproducible.
12
12
 
13
13
  ---
14
14
 
@@ -1,10 +1,10 @@
1
- ---
2
- description: Primary command for executing tasks with AJ MAESTRO orchestration
3
- ---
4
-
5
1
  # Trinity Orchestration
6
2
 
7
- **Purpose:** Primary command for executing tasks during development sessions. AJ MAESTRO coordinates the 19-agent team to complete work, with automatic JUNO verification.
3
+ **Command:** `/execution:trinity-orchestrate`
4
+ **Purpose:** Primary command for executing tasks during development sessions with AJ MAESTRO orchestration
5
+ **Architecture:** ALY (CTO) → MON → ROR → TRA → EUS → KIL cycles → BAS gates → JUNO verification
6
+ **Trinity Version:** 2.1.0
7
+ **Last Updated:** 2026-01-21
8
8
 
9
9
  **Use throughout your session:** This command is used repeatedly as you work through tasks.
10
10
 
@@ -1,13 +1,20 @@
1
+ # Trinity Initialization
2
+
3
+ **Command:** `/infrastructure:trinity-init`
4
+ **Purpose:** Complete Trinity Method integration with comprehensive setup and quality validation
5
+ **Architecture:** TAN structure validation → ZEN knowledge base → INO context → EIN CI/CD → JUNO audit
6
+ **Trinity Version:** 2.1.0
7
+ **Last Updated:** 2026-01-21
8
+
1
9
  ---
2
- description: Complete Trinity integration with TAN → ZEN → INO → EIN → JUNO workflow
3
- ---
10
+
4
11
  # Quick Start - TL;DR
5
12
 
6
13
  **Install Trinity in 3 steps**:
7
14
 
8
- 1. **Run Init**: `/trinity-init`
15
+ 1. **Run Init**: `/infrastructure:trinity-init`
9
16
  2. **Wait**: ~30 seconds (deploys 19 agents + knowledge base)
10
- 3. **Verify**: `/trinity-verify` (confirm 100% deployment)
17
+ 3. **Verify**: `/utility:trinity-verify` (confirm 100% deployment)
11
18
 
12
19
  **What You Get**:
13
20
  - 19 specialized agents in `.claude/agents/`
@@ -16,13 +23,7 @@ description: Complete Trinity integration with TAN → ZEN → INO → EIN → J
16
23
  - Work order system in `trinity/work-orders/`
17
24
  - Documentation templates in `trinity/templates/documentation/`
18
25
 
19
- **Next Steps**: Run `/trinity-start` to begin your first workflow
20
-
21
- ---
22
-
23
- # Trinity Initialization
24
-
25
- **Purpose:** Complete Trinity Method integration with comprehensive setup and quality validation.
26
+ **Next Steps**: Run `/session:trinity-start` to begin your first workflow
26
27
 
27
28
  ## Overview
28
29