olympus-ai 3.4.1 → 3.6.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 (94) hide show
  1. package/README.md +640 -630
  2. package/dist/__tests__/workflow-engine/checkpoint.test.d.ts +7 -0
  3. package/dist/__tests__/workflow-engine/checkpoint.test.d.ts.map +1 -0
  4. package/dist/__tests__/workflow-engine/checkpoint.test.js +373 -0
  5. package/dist/__tests__/workflow-engine/checkpoint.test.js.map +1 -0
  6. package/dist/agents/definitions.d.ts.map +1 -1
  7. package/dist/agents/definitions.js +8 -0
  8. package/dist/agents/definitions.js.map +1 -1
  9. package/dist/agents/idea-intake.d.ts +20 -0
  10. package/dist/agents/idea-intake.d.ts.map +1 -0
  11. package/dist/agents/idea-intake.js +255 -0
  12. package/dist/agents/idea-intake.js.map +1 -0
  13. package/dist/agents/index.d.ts +4 -0
  14. package/dist/agents/index.d.ts.map +1 -1
  15. package/dist/agents/index.js +4 -0
  16. package/dist/agents/index.js.map +1 -1
  17. package/dist/agents/intent-generator.d.ts +19 -0
  18. package/dist/agents/intent-generator.d.ts.map +1 -0
  19. package/dist/agents/intent-generator.js +303 -0
  20. package/dist/agents/intent-generator.js.map +1 -0
  21. package/dist/agents/prd-writer.d.ts +19 -0
  22. package/dist/agents/prd-writer.d.ts.map +1 -0
  23. package/dist/agents/prd-writer.js +236 -0
  24. package/dist/agents/prd-writer.js.map +1 -0
  25. package/dist/agents/prometheus.d.ts.map +1 -1
  26. package/dist/agents/prometheus.js +96 -2
  27. package/dist/agents/prometheus.js.map +1 -1
  28. package/dist/agents/spec-writer.d.ts +19 -0
  29. package/dist/agents/spec-writer.d.ts.map +1 -0
  30. package/dist/agents/spec-writer.js +528 -0
  31. package/dist/agents/spec-writer.js.map +1 -0
  32. package/dist/config/loader.d.ts +1 -1
  33. package/dist/config/loader.d.ts.map +1 -1
  34. package/dist/config/loader.js +2 -3
  35. package/dist/config/loader.js.map +1 -1
  36. package/dist/features/index.d.ts +1 -0
  37. package/dist/features/index.d.ts.map +1 -1
  38. package/dist/features/index.js +6 -0
  39. package/dist/features/index.js.map +1 -1
  40. package/dist/features/workflow-engine/artifacts.d.ts +96 -0
  41. package/dist/features/workflow-engine/artifacts.d.ts.map +1 -0
  42. package/dist/features/workflow-engine/artifacts.js +399 -0
  43. package/dist/features/workflow-engine/artifacts.js.map +1 -0
  44. package/dist/features/workflow-engine/checkpoint.d.ts +67 -0
  45. package/dist/features/workflow-engine/checkpoint.d.ts.map +1 -0
  46. package/dist/features/workflow-engine/checkpoint.js +249 -0
  47. package/dist/features/workflow-engine/checkpoint.js.map +1 -0
  48. package/dist/features/workflow-engine/engine.d.ts +125 -0
  49. package/dist/features/workflow-engine/engine.d.ts.map +1 -0
  50. package/dist/features/workflow-engine/engine.js +1354 -0
  51. package/dist/features/workflow-engine/engine.js.map +1 -0
  52. package/dist/features/workflow-engine/execution.d.ts +99 -0
  53. package/dist/features/workflow-engine/execution.d.ts.map +1 -0
  54. package/dist/features/workflow-engine/execution.js +493 -0
  55. package/dist/features/workflow-engine/execution.js.map +1 -0
  56. package/dist/features/workflow-engine/hooks.d.ts +78 -0
  57. package/dist/features/workflow-engine/hooks.d.ts.map +1 -0
  58. package/dist/features/workflow-engine/hooks.js +188 -0
  59. package/dist/features/workflow-engine/hooks.js.map +1 -0
  60. package/dist/features/workflow-engine/index.d.ts +17 -0
  61. package/dist/features/workflow-engine/index.d.ts.map +1 -0
  62. package/dist/features/workflow-engine/index.js +19 -0
  63. package/dist/features/workflow-engine/index.js.map +1 -0
  64. package/dist/features/workflow-engine/types.d.ts +220 -0
  65. package/dist/features/workflow-engine/types.d.ts.map +1 -0
  66. package/dist/features/workflow-engine/types.js +8 -0
  67. package/dist/features/workflow-engine/types.js.map +1 -0
  68. package/dist/features/workflow-engine/validation.d.ts +128 -0
  69. package/dist/features/workflow-engine/validation.d.ts.map +1 -0
  70. package/dist/features/workflow-engine/validation.js +746 -0
  71. package/dist/features/workflow-engine/validation.js.map +1 -0
  72. package/dist/hooks/ascent-verifier/index.d.ts +52 -0
  73. package/dist/hooks/ascent-verifier/index.d.ts.map +1 -1
  74. package/dist/hooks/ascent-verifier/index.js +146 -0
  75. package/dist/hooks/ascent-verifier/index.js.map +1 -1
  76. package/dist/hooks/registrations/learning-capture.d.ts.map +1 -1
  77. package/dist/hooks/registrations/learning-capture.js +32 -9
  78. package/dist/hooks/registrations/learning-capture.js.map +1 -1
  79. package/dist/hooks/registrations/user-prompt-submit.d.ts.map +1 -1
  80. package/dist/hooks/registrations/user-prompt-submit.js +85 -0
  81. package/dist/hooks/registrations/user-prompt-submit.js.map +1 -1
  82. package/dist/installer/index.d.ts.map +1 -1
  83. package/dist/installer/index.js +310 -1
  84. package/dist/installer/index.js.map +1 -1
  85. package/dist/learning/session-state.d.ts.map +1 -1
  86. package/dist/learning/session-state.js +17 -0
  87. package/dist/learning/session-state.js.map +1 -1
  88. package/dist/learning/types.d.ts +3 -0
  89. package/dist/learning/types.d.ts.map +1 -1
  90. package/dist/shared/types.d.ts +17 -0
  91. package/dist/shared/types.d.ts.map +1 -1
  92. package/package.json +3 -1
  93. package/scripts/dist/hooks/olympus-hooks.cjs +762 -97
  94. package/scripts/rebrand.mjs +0 -206
@@ -0,0 +1,128 @@
1
+ /**
2
+ * IDEA Artifact Validation
3
+ *
4
+ * Validates completeness of IDEA stage artifacts against required criteria.
5
+ * An IDEA artifact must contain all essential sections for progression to PRD stage.
6
+ *
7
+ * Performance optimizations:
8
+ * - Parallel validation where possible
9
+ * - Cached file reads within validation session
10
+ * - Optimized regex patterns
11
+ */
12
+ import { ValidationResult } from './types.js';
13
+ /**
14
+ * Clear the file cache
15
+ */
16
+ export declare function clearFileCache(): void;
17
+ /**
18
+ * Validates an IDEA artifact for completeness.
19
+ *
20
+ * Checks 6 criteria:
21
+ * 1. Problem statement present (non-empty ## Problem Statement section)
22
+ * 2. Business context present (non-empty ## Business Context section)
23
+ * 3. At least 2 success metrics (check ## Success Metrics section has 2+ bullet points)
24
+ * 4. Constraints documented (## Constraints section present with content)
25
+ * 5. Risk tier assessed (YAML frontmatter has risk_tier field)
26
+ * 6. All required sections present (all 5 sections exist in document)
27
+ *
28
+ * @param artifactPath - Absolute path to the IDEA artifact file
29
+ * @returns ValidationResult with pass/fail status, coverage percentage, and any blocking issues
30
+ *
31
+ * @example
32
+ * const result = await validateIdea('.olympus/workflows/feature-x/idea.md');
33
+ * if (result.passed) {
34
+ * console.log('IDEA artifact is complete!');
35
+ * } else {
36
+ * console.log('Issues found:', result.blocking_issues);
37
+ * }
38
+ */
39
+ export declare function validateIdea(artifactPath: string): Promise<ValidationResult>;
40
+ /**
41
+ * Validates a PRD artifact for coverage against IDEA constraints.
42
+ *
43
+ * **Phase 2 MVP Stub Implementation**
44
+ * This is a simplified implementation that calculates coverage but does not
45
+ * invoke the Momus agent for critical review. Full Momus integration is
46
+ * deferred to Phase 3.
47
+ *
48
+ * Checks:
49
+ * - PRD addresses >= 90% of IDEA constraints
50
+ * - User stories are present
51
+ * - Requirement coverage section exists
52
+ *
53
+ * TODO (Phase 3): Integrate Momus agent for:
54
+ * - Scope drift detection
55
+ * - Acceptance criteria completeness check
56
+ * - Risk alignment verification
57
+ *
58
+ * @param artifactPath - Absolute path to the PRD artifact file
59
+ * @param ideaPath - Absolute path to the IDEA artifact file
60
+ * @returns ValidationResult with coverage percentage and Momus placeholder
61
+ *
62
+ * @example
63
+ * const result = await validatePrd(
64
+ * '.olympus/workflows/feature-x/prd.md',
65
+ * '.olympus/workflows/feature-x/idea.md'
66
+ * );
67
+ * if (result.coverage_percentage >= 90) {
68
+ * console.log('PRD has sufficient coverage');
69
+ * }
70
+ */
71
+ export declare function validatePrd(artifactPath: string, ideaPath: string): Promise<ValidationResult>;
72
+ /**
73
+ * Validates a SPEC artifact for coverage against PRD user stories.
74
+ *
75
+ * **Phase 2 MVP Stub Implementation**
76
+ * This is a simplified implementation that calculates coverage but does not
77
+ * invoke the Metis agent for critical review. Full Metis integration is
78
+ * deferred to Phase 3.
79
+ *
80
+ * Checks:
81
+ * - SPEC implements >= 95% of PRD user stories
82
+ * - Requirement coverage section exists
83
+ * - All components documented
84
+ *
85
+ * TODO (Phase 3): Integrate Metis agent for:
86
+ * - Hidden requirements analysis
87
+ * - Dependency mapping completeness
88
+ * - Security considerations adequacy
89
+ * - Performance requirements coverage
90
+ *
91
+ * @param specPath - Absolute path to the SPEC artifact file
92
+ * @param prdPath - Absolute path to the PRD artifact file
93
+ * @returns ValidationResult with coverage percentage and Metis placeholder
94
+ *
95
+ * @example
96
+ * const result = await validateSpec(
97
+ * '.olympus/workflows/feature-x/spec.md',
98
+ * '.olympus/workflows/feature-x/prd.md'
99
+ * );
100
+ * if (result.coverage_percentage >= 95) {
101
+ * console.log('SPEC has sufficient PRD coverage');
102
+ * }
103
+ */
104
+ export declare function validateSpec(specPath: string, prdPath: string): Promise<ValidationResult>;
105
+ /**
106
+ * Validates TASKS artifacts for coverage against SPEC components.
107
+ *
108
+ * Checks:
109
+ * - 100% of SPEC components have tasks
110
+ * - Dependency graph is valid (no circular dependencies)
111
+ * - All tasks have effort estimates
112
+ * - Effort estimates are reasonable (1, 2, 4, 8, or 16 hours)
113
+ *
114
+ * @param tasksDir - Absolute path to the tasks directory (contains INTENT files)
115
+ * @param specPath - Absolute path to the SPEC artifact file
116
+ * @returns ValidationResult with coverage percentage and validation details
117
+ *
118
+ * @example
119
+ * const result = await validateTasks(
120
+ * '.olympus/workflows/feature-x/intents/',
121
+ * '.olympus/workflows/feature-x/spec.md'
122
+ * );
123
+ * if (result.passed) {
124
+ * console.log('All SPEC components have task coverage');
125
+ * }
126
+ */
127
+ export declare function validateTasks(tasksDir: string, specPath: string): Promise<ValidationResult>;
128
+ //# sourceMappingURL=validation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../src/features/workflow-engine/validation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAsB9C;;GAEG;AACH,wBAAgB,cAAc,IAAI,IAAI,CAErC;AAaD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,YAAY,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CA2HlF;AAkGD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAsB,WAAW,CAC/B,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,gBAAgB,CAAC,CA6G3B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAsB,YAAY,CAChC,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,gBAAgB,CAAC,CAsH3B;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,aAAa,CACjC,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,gBAAgB,CAAC,CAqL3B"}