olympus-ai 3.4.0 → 3.5.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.
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/README.md +631 -630
- package/dist/__tests__/installer.test.js +1 -1
- package/dist/__tests__/workflow-engine/checkpoint.test.d.ts +7 -0
- package/dist/__tests__/workflow-engine/checkpoint.test.d.ts.map +1 -0
- package/dist/__tests__/workflow-engine/checkpoint.test.js +373 -0
- package/dist/__tests__/workflow-engine/checkpoint.test.js.map +1 -0
- package/dist/agents/definitions.d.ts.map +1 -1
- package/dist/agents/definitions.js +8 -0
- package/dist/agents/definitions.js.map +1 -1
- package/dist/agents/idea-intake.d.ts +20 -0
- package/dist/agents/idea-intake.d.ts.map +1 -0
- package/dist/agents/idea-intake.js +255 -0
- package/dist/agents/idea-intake.js.map +1 -0
- package/dist/agents/index.d.ts +4 -0
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/index.js +4 -0
- package/dist/agents/index.js.map +1 -1
- package/dist/agents/intent-generator.d.ts +19 -0
- package/dist/agents/intent-generator.d.ts.map +1 -0
- package/dist/agents/intent-generator.js +303 -0
- package/dist/agents/intent-generator.js.map +1 -0
- package/dist/agents/prd-writer.d.ts +19 -0
- package/dist/agents/prd-writer.d.ts.map +1 -0
- package/dist/agents/prd-writer.js +236 -0
- package/dist/agents/prd-writer.js.map +1 -0
- package/dist/agents/prometheus.d.ts.map +1 -1
- package/dist/agents/prometheus.js +123 -2
- package/dist/agents/prometheus.js.map +1 -1
- package/dist/agents/spec-writer.d.ts +19 -0
- package/dist/agents/spec-writer.d.ts.map +1 -0
- package/dist/agents/spec-writer.js +528 -0
- package/dist/agents/spec-writer.js.map +1 -0
- package/dist/features/index.d.ts +1 -0
- package/dist/features/index.d.ts.map +1 -1
- package/dist/features/index.js +6 -0
- package/dist/features/index.js.map +1 -1
- package/dist/features/workflow-engine/artifacts.d.ts +96 -0
- package/dist/features/workflow-engine/artifacts.d.ts.map +1 -0
- package/dist/features/workflow-engine/artifacts.js +399 -0
- package/dist/features/workflow-engine/artifacts.js.map +1 -0
- package/dist/features/workflow-engine/checkpoint.d.ts +67 -0
- package/dist/features/workflow-engine/checkpoint.d.ts.map +1 -0
- package/dist/features/workflow-engine/checkpoint.js +249 -0
- package/dist/features/workflow-engine/checkpoint.js.map +1 -0
- package/dist/features/workflow-engine/engine.d.ts +128 -0
- package/dist/features/workflow-engine/engine.d.ts.map +1 -0
- package/dist/features/workflow-engine/engine.js +600 -0
- package/dist/features/workflow-engine/engine.js.map +1 -0
- package/dist/features/workflow-engine/execution.d.ts +99 -0
- package/dist/features/workflow-engine/execution.d.ts.map +1 -0
- package/dist/features/workflow-engine/execution.js +493 -0
- package/dist/features/workflow-engine/execution.js.map +1 -0
- package/dist/features/workflow-engine/hooks.d.ts +78 -0
- package/dist/features/workflow-engine/hooks.d.ts.map +1 -0
- package/dist/features/workflow-engine/hooks.js +188 -0
- package/dist/features/workflow-engine/hooks.js.map +1 -0
- package/dist/features/workflow-engine/index.d.ts +17 -0
- package/dist/features/workflow-engine/index.d.ts.map +1 -0
- package/dist/features/workflow-engine/index.js +19 -0
- package/dist/features/workflow-engine/index.js.map +1 -0
- package/dist/features/workflow-engine/types.d.ts +220 -0
- package/dist/features/workflow-engine/types.d.ts.map +1 -0
- package/dist/features/workflow-engine/types.js +8 -0
- package/dist/features/workflow-engine/types.js.map +1 -0
- package/dist/features/workflow-engine/validation.d.ts +128 -0
- package/dist/features/workflow-engine/validation.d.ts.map +1 -0
- package/dist/features/workflow-engine/validation.js +746 -0
- package/dist/features/workflow-engine/validation.js.map +1 -0
- package/dist/hooks/ascent-verifier/index.d.ts +52 -0
- package/dist/hooks/ascent-verifier/index.d.ts.map +1 -1
- package/dist/hooks/ascent-verifier/index.js +146 -0
- package/dist/hooks/ascent-verifier/index.js.map +1 -1
- package/dist/hooks/registrations/learning-capture.d.ts.map +1 -1
- package/dist/hooks/registrations/learning-capture.js +32 -9
- package/dist/hooks/registrations/learning-capture.js.map +1 -1
- package/dist/hooks/registrations/user-prompt-submit.d.ts.map +1 -1
- package/dist/hooks/registrations/user-prompt-submit.js +85 -0
- package/dist/hooks/registrations/user-prompt-submit.js.map +1 -1
- package/dist/installer/index.d.ts +1 -1
- package/dist/installer/index.d.ts.map +1 -1
- package/dist/installer/index.js +456 -16
- package/dist/installer/index.js.map +1 -1
- package/dist/learning/session-state.d.ts.map +1 -1
- package/dist/learning/session-state.js +17 -0
- package/dist/learning/session-state.js.map +1 -1
- package/dist/learning/types.d.ts +3 -0
- package/dist/learning/types.d.ts.map +1 -1
- package/dist/shared/types.d.ts +17 -0
- package/dist/shared/types.d.ts.map +1 -1
- package/package.json +3 -1
- package/scripts/dist/hooks/olympus-hooks.cjs +208 -97
- 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"}
|