gm-oc 2.0.400 → 2.0.402

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.
@@ -31,7 +31,14 @@ jobs:
31
31
  fi
32
32
 
33
33
  echo "Publishing $PACKAGE@$VERSION..."
34
- npm publish --access public
34
+ npm publish --access public 2>&1 | tee /tmp/npm-out.log; EXIT=${PIPESTATUS[0]}
35
+ if [ "$EXIT" != "0" ]; then
36
+ if grep -q "cannot publish over\|previously published" /tmp/npm-out.log; then
37
+ echo "⚠️ Version already published, skipping"
38
+ else
39
+ exit "$EXIT"
40
+ fi
41
+ fi
35
42
  echo "✅ Published $PACKAGE@$VERSION"
36
43
  env:
37
44
  NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-oc",
3
- "version": "2.0.400",
3
+ "version": "2.0.402",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",
@@ -128,11 +128,13 @@ Completing a phase is NOT stopping. After every phase: read .prd, check git, inv
128
128
 
129
129
  ## CONSTRAINTS
130
130
 
131
- **Tier 0**: no_crash, no_exit, ground_truth_only, real_execution
131
+ **Tier 0**: no_crash, no_exit, ground_truth_only, real_execution, fail_loud
132
132
  **Tier 1**: max_file_lines=200, hot_reloadable, checkpoint_state
133
133
  **Tier 2**: no_duplication, no_hardcoded_values, modularity
134
134
  **Tier 3**: no_comments, convention_over_code
135
135
 
136
- **Never**: `Bash(node/npm/npx/bun)` | skip planning | sequential independent items | screenshot before JS exhausted | narrate past unresolved mutables | stop while .prd has items | ask the user what to do next while work remains
136
+ **FAIL LOUD — NO FALLBACKS**: Never create fallback modes, demo modes, graceful degradation, silent error swallowing, or try/catch that returns a default value instead of propagating the error. Every error must throw and propagate. If something fails, the user must see exactly what failed and why. No `|| defaultValue`, no `catch { return null }`, no "demo mode", no "offline mode", no degraded functionality. The only acceptable error handling is: catch → log the real error → re-throw or display to user.
137
+
138
+ **Never**: `Bash(node/npm/npx/bun)` | skip planning | sequential independent items | screenshot before JS exhausted | narrate past unresolved mutables | stop while .prd has items | ask the user what to do next while work remains | create fallback/demo modes | silently swallow errors
137
139
 
138
140
  **Always**: invoke named skill at every transition | snake to planning on any new unknown | witnessed execution only | keep going until .prd deleted and git clean
@@ -74,6 +74,7 @@ Pre-emit revealing unexpected behavior → new unknown → snake to `planning`.
74
74
  - Crash-proof: catch at every boundary, recovery hierarchy
75
75
  - No mocks/fakes/stubs anywhere
76
76
  - Files ≤200 lines, no duplicate code, no comments, no hardcoded values
77
+ - No fallbacks, demo modes, or silent error swallowing — every error must throw and propagate
77
78
  - CLAUDE.md reflects actual behavior
78
79
 
79
80
  ## CODEBASE EXPLORATION
@@ -99,7 +100,7 @@ Never respond to the user from this phase. When all gate conditions pass, immedi
99
100
 
100
101
  ## CONSTRAINTS
101
102
 
102
- **Never**: write before pre-emit passes | advance with post-emit variance | absorb surprises silently | comments | hardcoded values | defer spotted issues | respond to user or pause for input
103
+ **Never**: write before pre-emit passes | advance with post-emit variance | absorb surprises silently | comments | hardcoded values | fallback/demo modes | silent error swallowing | defer spotted issues | respond to user or pause for input
103
104
 
104
105
  **Always**: pre-emit debug before writing | post-emit verify from disk | snake to planning on any new unknown | fix immediately | invoke next skill immediately when gates pass
105
106