qualia-framework 4.3.0 → 4.4.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/README.md +15 -11
- package/bin/agent-runs.js +233 -0
- package/bin/cli.js +218 -19
- package/bin/install.js +19 -5
- package/bin/plan-contract.js +220 -0
- package/bin/state.js +15 -9
- package/docs/agent-runs.md +273 -0
- package/docs/plan-contract.md +321 -0
- package/hooks/auto-update.js +3 -7
- package/hooks/pre-compact.js +22 -11
- package/hooks/pre-deploy-gate.js +16 -2
- package/hooks/pre-push.js +22 -2
- package/hooks/stop-session-log.js +1 -1
- package/package.json +8 -2
- package/skills/qualia-build/SKILL.md +5 -5
- package/skills/qualia-flush/SKILL.md +1 -1
- package/skills/qualia-quick/SKILL.md +1 -1
- package/skills/qualia-report/SKILL.md +1 -1
- package/skills/qualia-ship/SKILL.md +12 -10
- package/templates/help.html +13 -7
- package/tests/bin.test.sh +6 -3
- package/tests/hooks.test.sh +9 -20
- package/tests/lib.test.sh +217 -0
- package/tests/runner.js +96 -75
- package/tests/state.test.sh +4 -3
package/tests/state.test.sh
CHANGED
|
@@ -788,7 +788,7 @@ echo "close-milestone:"
|
|
|
788
788
|
|
|
789
789
|
# 44. close-milestone increments counters and bumps milestone number
|
|
790
790
|
TMP=$(make_project)
|
|
791
|
-
OUT=$(cd "$TMP" && $NODE "$STATE_JS" close-milestone 2>&1)
|
|
791
|
+
OUT=$(cd "$TMP" && $NODE "$STATE_JS" close-milestone --force 2>&1)
|
|
792
792
|
EXIT=$?
|
|
793
793
|
if [ "$EXIT" -eq 0 ] \
|
|
794
794
|
&& echo "$OUT" | grep -q '"action": "close-milestone"' \
|
|
@@ -803,7 +803,7 @@ fi
|
|
|
803
803
|
|
|
804
804
|
# 45. close-milestone adds total_phases to lifetime.total_phases
|
|
805
805
|
TMP=$(make_project)
|
|
806
|
-
(cd "$TMP" && $NODE "$STATE_JS" close-milestone >/dev/null 2>&1)
|
|
806
|
+
(cd "$TMP" && $NODE "$STATE_JS" close-milestone --force >/dev/null 2>&1)
|
|
807
807
|
# Project had 2 phases. lifetime.total_phases should now be 2.
|
|
808
808
|
if grep -q '"total_phases": 2' "$TMP/.planning/tracking.json" | head -1; then
|
|
809
809
|
# More precise check with node
|
|
@@ -829,11 +829,12 @@ touch "$TMP/.planning/phase-1-verification.md"
|
|
|
829
829
|
(cd "$TMP" && $NODE "$STATE_JS" transition --to built --tasks-done 4 --tasks-total 4 >/dev/null 2>&1)
|
|
830
830
|
(cd "$TMP" && $NODE "$STATE_JS" transition --to verified --verification pass >/dev/null 2>&1)
|
|
831
831
|
# Now close milestone
|
|
832
|
-
(cd "$TMP" && $NODE "$STATE_JS" close-milestone >/dev/null 2>&1)
|
|
832
|
+
(cd "$TMP" && $NODE "$STATE_JS" close-milestone --force >/dev/null 2>&1)
|
|
833
833
|
# Re-init with new phases
|
|
834
834
|
(cd "$TMP" && $NODE "$STATE_JS" init \
|
|
835
835
|
--project "TestProject" \
|
|
836
836
|
--phases '[{"name":"M2P1","goal":"G1"}]' \
|
|
837
|
+
--force \
|
|
837
838
|
>/dev/null 2>&1)
|
|
838
839
|
# Verify: milestone=2, lifetime preserved, current phase reset
|
|
839
840
|
RESULT=$($NODE -e "
|