@esoteric-logic/praxis-harness 1.2.0 → 1.2.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.
@@ -0,0 +1,15 @@
1
+ ---
2
+ description: Post-implementation code cleanup. Launches a subagent to find and
3
+ simplify over-abstraction, dead paths, verbosity, and missed idioms in the
4
+ recent diff. Run after implementation, before /verify-app or /ship.
5
+ ---
6
+
7
+ Invoke the code-simplifier skill on the current project's recent changes.
8
+
9
+ Accept an optional scope argument:
10
+ - No argument → `git diff HEAD~1` (default)
11
+ - `staged` → staged changes only
12
+ - `HEAD~N` or SHA → specific range
13
+
14
+ The code-simplifier skill handles all phases: scope detection, subagent launch,
15
+ finding presentation, user-approved edits, and optional [LEARN:simplify] capture.
@@ -25,6 +25,23 @@ BRANCH=$(git --no-pager rev-parse --abbrev-ref HEAD 2>/dev/null || echo "unknown
25
25
  LAST_COMMIT=$(git --no-pager log --oneline -1 2>/dev/null || echo "no commits")
26
26
  PROJECT_DIR=$(basename "$PWD")
27
27
 
28
+ STATUS_FILE="$VAULT_PATH/status.md"
29
+ PROGRESS_FILE="$VAULT_PATH/claude-progress.json"
30
+
31
+ CURRENT_PLAN="none"
32
+ LOOP_POSITION="unknown"
33
+ if [[ -f "$STATUS_FILE" ]]; then
34
+ CURRENT_PLAN=$(grep "^current_plan:" "$STATUS_FILE" | sed 's/current_plan: *//' | head -1)
35
+ LOOP_POSITION=$(grep "^loop_position:" "$STATUS_FILE" | sed 's/loop_position: *//' | head -1)
36
+ [[ -z "$CURRENT_PLAN" ]] && CURRENT_PLAN="none"
37
+ [[ -z "$LOOP_POSITION" ]] && LOOP_POSITION="unknown"
38
+ fi
39
+
40
+ RALPH_STORY="inactive"
41
+ if [[ -f "$PROGRESS_FILE" ]]; then
42
+ RALPH_STORY=$(jq -r '.ralph_state.current_story // "inactive"' "$PROGRESS_FILE" 2>/dev/null)
43
+ fi
44
+
28
45
  cat > "$CHECKPOINT_FILE" <<EOF
29
46
  ---
30
47
  tags: [checkpoint, compact]
@@ -40,6 +57,15 @@ $PWD
40
57
  - Branch: $BRANCH
41
58
  - Last commit: $LAST_COMMIT
42
59
 
60
+ ## Active Plan
61
+ $CURRENT_PLAN
62
+
63
+ ## GSD Phase
64
+ $LOOP_POSITION
65
+
66
+ ## Ralph State
67
+ $RALPH_STORY
68
+
43
69
  ## Note
44
70
  This checkpoint was auto-written by the PreCompact hook.
45
71
  Read this file after compaction to restore context.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esoteric-logic/praxis-harness",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Layered Claude Code harness — workflow discipline, AI-Kits, persistent vault integration",
5
5
  "bin": {
6
6
  "praxis-harness": "./bin/praxis.js"