olympus-ai 4.4.6 → 4.4.7
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.
|
@@ -24,7 +24,7 @@ export declare const HOOKS_DIR: string;
|
|
|
24
24
|
export declare const SETTINGS_FILE: string;
|
|
25
25
|
export declare const VERSION_FILE: string;
|
|
26
26
|
/** Current version - MUST match package.json */
|
|
27
|
-
export declare const VERSION = "4.4.
|
|
27
|
+
export declare const VERSION = "4.4.7";
|
|
28
28
|
/** Installation result */
|
|
29
29
|
export interface InstallResult {
|
|
30
30
|
success: boolean;
|
package/dist/installer/index.js
CHANGED
|
@@ -40,7 +40,7 @@ export const HOOKS_DIR = join(CLAUDE_CONFIG_DIR, 'hooks');
|
|
|
40
40
|
export const SETTINGS_FILE = join(CLAUDE_CONFIG_DIR, 'settings.json');
|
|
41
41
|
export const VERSION_FILE = join(CLAUDE_CONFIG_DIR, '.olympus-version.json');
|
|
42
42
|
/** Current version - MUST match package.json */
|
|
43
|
-
export const VERSION = '4.4.
|
|
43
|
+
export const VERSION = '4.4.7';
|
|
44
44
|
/**
|
|
45
45
|
* Read a content file from the resources/ directory.
|
|
46
46
|
*
|
package/package.json
CHANGED
|
@@ -31,6 +31,12 @@ B) Review a previous stage ([Show available stages])
|
|
|
31
31
|
- **Application Design**: Read application-design artifacts (components.md, component-methods.md, services.md)
|
|
32
32
|
- **Design (Units)**: Read unit-of-work.md, unit-of-work-dependency.md, unit-of-work-story-map.md
|
|
33
33
|
- **Per-Unit Design**: Read functional-design.md, nfr-requirements.md, nfr-design.md, infrastructure-design.md
|
|
34
|
+
- **Construction In-Progress Artifacts**: Before creating any new construction artifacts, scan for existing ones:
|
|
35
|
+
- Check `construction/plans/` for code generation plans
|
|
36
|
+
- Check `construction/u-*-{unit-name}/` for legacy per-unit artifacts
|
|
37
|
+
- Check for partially-generated code files referenced in any existing plan
|
|
38
|
+
- Present an inventory of found artifacts to the user: "Found N existing construction artifacts: [list]. These will be loaded as the starting point."
|
|
39
|
+
- Do NOT create new artifacts that duplicate existing ones — always check first
|
|
34
40
|
- **Code Stages**: Read all code files, plans, AND all previous artifacts
|
|
35
41
|
4. **Smart Context Loading by Stage**:
|
|
36
42
|
- **Early Stages (Workspace Detection, Reverse Engineering)**: Load workspace analysis
|
|
@@ -51,6 +51,19 @@ When managing code generation, the orchestrator MUST leverage Olympus capabiliti
|
|
|
51
51
|
|
|
52
52
|
# PART 1: PLANNING
|
|
53
53
|
|
|
54
|
+
## Step 0: Check for Existing Artifacts (Idempotency Gate)
|
|
55
|
+
- [ ] Scan `aidlc-docs/{workflow-id}/construction/` for any existing code generation plan for this unit
|
|
56
|
+
- Check canonical path: `construction/plans/{unit-name}-code-generation-plan.md`
|
|
57
|
+
- Check legacy paths: `construction/u-*-{unit-name}/code-generation-plan*`, `construction/{unit-name}/code-generation-plan*`
|
|
58
|
+
- [ ] If a plan exists:
|
|
59
|
+
- Read it and present a summary to the user
|
|
60
|
+
- Ask: "An existing code generation plan was found at `{path}`. Would you like to (A) reuse it as-is, (B) update it, or (C) replace it with a new plan?"
|
|
61
|
+
- If at a non-canonical path, migrate it to the canonical location: `construction/plans/{unit-name}-code-generation-plan.md`
|
|
62
|
+
- If reusing (A): skip to Step 7 (approval) with the existing plan
|
|
63
|
+
- If updating (B): load it as the starting point for Steps 1-6
|
|
64
|
+
- If replacing (C): proceed to Step 1 as normal
|
|
65
|
+
- [ ] If no plan exists: proceed to Step 1
|
|
66
|
+
|
|
54
67
|
## Step 1: Analyze Unit Context
|
|
55
68
|
- [ ] Read unit design artifacts from Unit Design Generation
|
|
56
69
|
- [ ] Read unit story map to understand assigned stories
|
|
@@ -92,7 +105,7 @@ When managing code generation, the orchestrator MUST leverage Olympus capabiliti
|
|
|
92
105
|
- Service boundaries and responsibilities
|
|
93
106
|
|
|
94
107
|
## Step 4: Create Unit Plan Document
|
|
95
|
-
- [ ] Save complete plan as `aidlc-docs/construction/plans/{unit-name}-code-generation-plan.md`
|
|
108
|
+
- [ ] Save complete plan as `aidlc-docs/{workflow-id}/construction/plans/{unit-name}-code-generation-plan.md` (CANONICAL PATH — do not use any other location)
|
|
96
109
|
- [ ] Include step numbering (Step 1, Step 2, etc.)
|
|
97
110
|
- [ ] Include unit context and dependencies
|
|
98
111
|
- [ ] Include story traceability
|
|
@@ -239,6 +252,12 @@ When managing code generation, the orchestrator MUST leverage Olympus capabiliti
|
|
|
239
252
|
- **STORY TRACEABILITY**: Mark unit stories [x] when functionality is implemented
|
|
240
253
|
- **RESPECT DEPENDENCIES**: Only implement when unit dependencies are satisfied
|
|
241
254
|
|
|
255
|
+
### Canonical Path Rules
|
|
256
|
+
- **Code generation plans MUST be saved at**: `aidlc-docs/{workflow-id}/construction/plans/{unit-name}-code-generation-plan.md`
|
|
257
|
+
- Do NOT create code generation plans at any other path (e.g., `construction/u-nnn-{name}/`, `construction/{name}/`)
|
|
258
|
+
- If a plan is found at a non-canonical path during Step 0, migrate it to the canonical location before proceeding
|
|
259
|
+
- Per-unit directories (`construction/u-nnn-{name}/`) are reserved for construction output artifacts (code summaries, documentation), NOT plans
|
|
260
|
+
|
|
242
261
|
### Automation Friendly Code Rules
|
|
243
262
|
When generating UI code (web, mobile, desktop), ensure elements are automation-friendly:
|
|
244
263
|
- Add `data-testid` attributes to interactive elements (buttons, inputs, links, forms)
|