@odarino/haren 1.3.0 → 1.3.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/content/skills/decompose/SKILL.md +13 -1
- package/dist/index.js +12 -1
- package/package.json +1 -1
|
@@ -47,7 +47,19 @@ These decisions affect ALL modules and must be resolved first.
|
|
|
47
47
|
- `artifacts/03-modules/module-map.md` (use create-artifact skill)
|
|
48
48
|
- `artifacts/03-modules/{module}/module.md` for each module (use create-artifact skill) — each module gets its own folder so that `spec.md` (BA-owned) can sit alongside it later
|
|
49
49
|
9. Validate with validate-artifact skill (checks for cycles, missing interfaces)
|
|
50
|
-
10. Update progress.json — each module gets "decomposed" status
|
|
50
|
+
10. Update progress.json — each module gets "decomposed" status. Write every module with this shape:
|
|
51
|
+
```json
|
|
52
|
+
"<module>": {
|
|
53
|
+
"status": "decomposed",
|
|
54
|
+
"currentPhase": "decompose",
|
|
55
|
+
"features": {},
|
|
56
|
+
"lastCommit": {},
|
|
57
|
+
"branch": "feat/<module>",
|
|
58
|
+
"repos": ["<repo key from manifest>"],
|
|
59
|
+
"lastUpdated": "<ISO 8601 timestamp>"
|
|
60
|
+
}
|
|
61
|
+
```
|
|
62
|
+
`features` stays `{}` until the plan phase adds tasks. `branch` and `repos` are optional. Without `branch`, haren uses `feat/<module>`.
|
|
51
63
|
|
|
52
64
|
## Module Map Format
|
|
53
65
|
|
package/dist/index.js
CHANGED
|
@@ -1182,7 +1182,18 @@ var init_plan = __esm(() => {
|
|
|
1182
1182
|
import { readFile as readFile5, writeFile as writeFile4 } from "fs/promises";
|
|
1183
1183
|
async function readProgress(path) {
|
|
1184
1184
|
const raw = await readFile5(path, "utf-8");
|
|
1185
|
-
|
|
1185
|
+
const progress = JSON.parse(raw);
|
|
1186
|
+
progress.modules ??= {};
|
|
1187
|
+
for (const mod of Object.values(progress.modules)) {
|
|
1188
|
+
if (!isObject(mod.features))
|
|
1189
|
+
mod.features = {};
|
|
1190
|
+
if (!isObject(mod.lastCommit))
|
|
1191
|
+
mod.lastCommit = {};
|
|
1192
|
+
}
|
|
1193
|
+
return progress;
|
|
1194
|
+
}
|
|
1195
|
+
function isObject(value) {
|
|
1196
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
1186
1197
|
}
|
|
1187
1198
|
async function writeProgress(path, progress) {
|
|
1188
1199
|
await writeFile4(path, JSON.stringify(progress, null, 2));
|