mindsystem-cc 3.16.1 → 3.16.2
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/agents/ms-plan-writer.md
CHANGED
|
@@ -294,11 +294,11 @@ Create `.planning/phases/{phase_dir}/EXECUTION-ORDER.md`:
|
|
|
294
294
|
# Execution Order
|
|
295
295
|
|
|
296
296
|
## Wave 1 (parallel)
|
|
297
|
-
- 01-PLAN.md — {description}
|
|
298
|
-
- 02-PLAN.md — {description}
|
|
297
|
+
- {phase}-01-PLAN.md — {description}
|
|
298
|
+
- {phase}-02-PLAN.md — {description}
|
|
299
299
|
|
|
300
300
|
## Wave 2 (parallel)
|
|
301
|
-
- 03-PLAN.md — {description} (depends on 01 for {reason})
|
|
301
|
+
- {phase}-03-PLAN.md — {description} (depends on 01 for {reason})
|
|
302
302
|
```
|
|
303
303
|
|
|
304
304
|
Rules:
|
|
@@ -160,15 +160,15 @@ Execution order lives in a single `EXECUTION-ORDER.md` file alongside the plans.
|
|
|
160
160
|
# Execution Order
|
|
161
161
|
|
|
162
162
|
## Wave 1 (parallel)
|
|
163
|
-
- 01-PLAN.md — Database schema and Prisma client
|
|
164
|
-
- 02-PLAN.md — Environment configuration
|
|
163
|
+
- 03-01-PLAN.md — Database schema and Prisma client
|
|
164
|
+
- 03-02-PLAN.md — Environment configuration
|
|
165
165
|
|
|
166
166
|
## Wave 2 (parallel)
|
|
167
|
-
- 03-PLAN.md — Auth endpoints (depends on schema from 01)
|
|
168
|
-
- 04-PLAN.md — User profile CRUD (depends on schema from 01)
|
|
167
|
+
- 03-03-PLAN.md — Auth endpoints (depends on schema from 01)
|
|
168
|
+
- 03-04-PLAN.md — User profile CRUD (depends on schema from 01)
|
|
169
169
|
|
|
170
170
|
## Wave 3
|
|
171
|
-
- 05-PLAN.md — Protected route middleware (depends on auth from 03)
|
|
171
|
+
- 03-05-PLAN.md — Protected route middleware (depends on auth from 03)
|
|
172
172
|
```
|
|
173
173
|
|
|
174
174
|
**Rules:**
|
|
@@ -91,7 +91,7 @@ If validation passes, proceed with wave execution.
|
|
|
91
91
|
<step name="read_execution_order">
|
|
92
92
|
Read EXECUTION-ORDER.md and parse wave structure:
|
|
93
93
|
|
|
94
|
-
Parse `## Wave N` headers with `- XX-PLAN.md` items under each. Build wave groups:
|
|
94
|
+
Parse `## Wave N` headers with `- {phase}-XX-PLAN.md` items under each. Build wave groups:
|
|
95
95
|
|
|
96
96
|
```
|
|
97
97
|
waves = {
|
package/package.json
CHANGED
|
@@ -40,12 +40,14 @@ if [ "$DISK_COUNT" -eq 0 ]; then
|
|
|
40
40
|
fi
|
|
41
41
|
|
|
42
42
|
# --- Parse EXECUTION-ORDER.md for plan filenames ---
|
|
43
|
-
|
|
43
|
+
# Pattern matches phase-prefixed names like 03-01-PLAN.md, 16-01-PLAN.md, 72.1-01-PLAN.md
|
|
44
|
+
ORDER_PLANS=$(grep -oE '[0-9][0-9.]*-[0-9]+-PLAN\.md' "$EXEC_ORDER" | sort -u)
|
|
44
45
|
ORDER_COUNT=$(echo "$ORDER_PLANS" | grep -c . 2>/dev/null || echo 0)
|
|
45
46
|
|
|
46
47
|
# --- Check 1: Every disk plan is listed in EXECUTION-ORDER.md ---
|
|
47
48
|
ERRORS=""
|
|
48
49
|
while IFS= read -r plan; do
|
|
50
|
+
[ -z "$plan" ] && continue
|
|
49
51
|
if ! echo "$ORDER_PLANS" | grep -qx "$plan"; then
|
|
50
52
|
ERRORS="${ERRORS} Missing from EXECUTION-ORDER.md: $plan\n"
|
|
51
53
|
fi
|
|
@@ -53,6 +55,7 @@ done <<< "$DISK_PLANS"
|
|
|
53
55
|
|
|
54
56
|
# --- Check 2: Every plan in EXECUTION-ORDER.md exists on disk ---
|
|
55
57
|
while IFS= read -r plan; do
|
|
58
|
+
[ -z "$plan" ] && continue
|
|
56
59
|
if ! echo "$DISK_PLANS" | grep -qx "$plan"; then
|
|
57
60
|
ERRORS="${ERRORS} Listed in EXECUTION-ORDER.md but file missing: $plan\n"
|
|
58
61
|
fi
|
|
@@ -75,7 +78,7 @@ while IFS= read -r line; do
|
|
|
75
78
|
WAVE_COUNT=$((WAVE_COUNT + 1))
|
|
76
79
|
WAVE_FILES[$CURRENT_WAVE]=""
|
|
77
80
|
elif [ -n "$CURRENT_WAVE" ]; then
|
|
78
|
-
PLAN_FILE=$(echo "$line" | grep -oE '[0-9]+-PLAN\.md' || true)
|
|
81
|
+
PLAN_FILE=$(echo "$line" | grep -oE '[0-9][0-9.]*-[0-9]+-PLAN\.md' || true)
|
|
79
82
|
if [ -n "$PLAN_FILE" ] && [ -f "$PHASE_DIR/$PLAN_FILE" ]; then
|
|
80
83
|
# Extract **Files:** lines from plan
|
|
81
84
|
FILE_PATHS=$(grep -E '^\*\*Files:\*\*' "$PHASE_DIR/$PLAN_FILE" | sed 's/\*\*Files:\*\*//g' | tr ',' '\n' | sed 's/`//g; s/^[[:space:]]*//; s/[[:space:]]*$//' | grep -v '^$' || true)
|