gm-skill 2.0.1488 → 2.0.1489

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.md CHANGED
@@ -40,7 +40,7 @@ Agents dispatch verbs by writing to `.gm/exec-spool/in/<verb>/<N>.txt` (request
40
40
 
41
41
  **git verbs**: git is a first-class spool surface, never a shell command; `git_finalize {message}` is the bundled COMPLETE-phase push surface and `git_push` is the only admissible raw push (porcelain-gated, rebase-retry). A git-dominant `bash`/`powershell` body is gated (`deviation.bash-git-bypass`). Full per-verb shapes, host_git `.exe` resolution, and the gate detail live in rs-learn (`recall: git verbs rs-plugkit spool surface`).
42
42
 
43
- **filter verb**: pure stdout → compact-stdout transformation. Body `{kind, input, ...opts}` where kind is one of `grep`, `ls`, `tree`, `json`, `diff`, `git-status`, `log`. Returns `{output, stats:{bytes_in, bytes_out, saved_pct, ...}}`. Pipe raw command output through filter before letting it enter context, in-wasm, no subprocess. The bootstrap fetches only `plugkit.wasm`, there is no separate filter/rtk binary download.
43
+ **filter verb**: pure stdout → compact-stdout transformation, in-wasm, no subprocess; pipe raw command output through it before it enters context. Full per-kind spec in rs-learn (`recall: filter verb rs-plugkit spool spec`).
44
44
 
45
45
  ## Documentation Policy
46
46
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-plugkit",
3
- "version": "2.0.1488",
3
+ "version": "2.0.1489",
4
4
  "description": "Bootstrap and daemon-spawn tool for gm plugkit binary. Downloads the correct platform binary, verifies SHA256, and starts the spool watcher daemon. Includes plugkit-wasm-wrapper for WASM-based spool watching.",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -144,13 +144,16 @@ function spawnWatcher(bootReason) {
144
144
  const shutdownReason = readShutdownReason();
145
145
  const reason = shutdownReason && shutdownReason.reason;
146
146
  const idleClean = reason === 'idle';
147
+ const lockRejected = code === 75;
147
148
  const plannedReasons = new Set(['idle', 'sigterm', 'version-change', 'wrapper-change', 'peer-stale-takeover', 'external-planned']);
148
- const isPlanned = plannedReasons.has(reason);
149
+ const isPlanned = plannedReasons.has(reason) || lockRejected;
149
150
  const eventName = idleClean
150
151
  ? 'supervisor.watcher-exited-idle'
151
152
  : reason === 'version-change'
152
153
  ? 'supervisor.watcher-exited-for-update'
153
- : 'supervisor.watcher-exited-unexpectedly';
154
+ : lockRejected
155
+ ? 'supervisor.watcher-exited-lock-rejected'
156
+ : 'supervisor.watcher-exited-unexpectedly';
154
157
  logEvent(eventName, {
155
158
  watcher_pid: currentChildPid,
156
159
  exit_code: code,
@@ -166,6 +169,11 @@ function spawnWatcher(bootReason) {
166
169
  try { fs.unlinkSync(SUPERVISOR_PATH); } catch (_) {}
167
170
  process.exit(0);
168
171
  }
172
+ if (lockRejected) {
173
+ writeSupervisorStatus('exited-lock-rejected', { watcher_pid: currentChildPid });
174
+ try { fs.unlinkSync(SUPERVISOR_PATH); } catch (_) {}
175
+ process.exit(0);
176
+ }
169
177
  const respawnReason = reason === 'version-change' ? 'planned-restart-version-change' : 'unplanned-restart-after-exit';
170
178
  writeSupervisorStatus('restarting', {
171
179
  prior_watcher_pid: currentChildPid,
package/gm.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm",
3
- "version": "2.0.1488",
3
+ "version": "2.0.1489",
4
4
  "description": "Spool-dispatch orchestration engine with unified state machine, skills, and automated git enforcement",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-skill",
3
- "version": "2.0.1488",
3
+ "version": "2.0.1489",
4
4
  "description": "Canonical universal harness — AI-native software engineering via skill-driven orchestration; bootstraps plugkit for task execution and session isolation. Install in any AI coding agent host.",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",