gm-skill 2.0.1976 → 2.0.1977

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-plugkit",
3
- "version": "2.0.1976",
3
+ "version": "2.0.1977",
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": {
@@ -2573,11 +2573,29 @@ function hostPluginCallViaAgentplugRunner(plugin, verb, body) {
2573
2573
  const bin = resolveAgentplugRunnerBin();
2574
2574
  if (!bin) return null;
2575
2575
  try {
2576
+ // agentplug-runner's `dispatch` one-shot resolves relative paths (e.g.
2577
+ // libsql's "path":"gm.db") against its OWN process cwd -- without an
2578
+ // explicit cwd here it inherits whatever directory spawned the watcher
2579
+ // process itself (which need not be the project root, e.g. a bunx temp
2580
+ // resolution dir), silently opening/creating the wrong gm.db instead of
2581
+ // the real one. Same CLAUDE_PROJECT_DIR-first resolution the rest of
2582
+ // this file already uses for the spool dir.
2583
+ const projectCwd = process.env.CLAUDE_PROJECT_DIR || process.cwd();
2584
+ // 90s, not 30s: `dispatch` now routes through agentplug-runner's shared
2585
+ // daemon when reachable (see agentplug's own daemon.rs) -- a COLD daemon
2586
+ // spawn (no daemon alive yet) plus a plugin that hasn't been downloaded
2587
+ // to this machine yet (first libsql/bert/treesitter call ever) can
2588
+ // genuinely exceed 30s combined, live-witnessed this session as a
2589
+ // real not_implemented_js_wrapper fallback on an otherwise-correct
2590
+ // call. A warm daemon with an already-cached plugin answers in
2591
+ // milliseconds regardless of this ceiling; the higher bound only
2592
+ // matters for the one-time cold path.
2576
2593
  const r = spawnSync(bin, ['dispatch', plugin, verb, body], {
2577
2594
  encoding: 'utf-8',
2578
2595
  windowsHide: true,
2579
- timeout: 30000,
2596
+ timeout: 90000,
2580
2597
  maxBuffer: 64 * 1024 * 1024,
2598
+ cwd: projectCwd,
2581
2599
  });
2582
2600
  if (r.error || r.status !== 0) return null;
2583
2601
  return r.stdout;
package/gm.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm",
3
- "version": "2.0.1976",
3
+ "version": "2.0.1977",
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.1976",
3
+ "version": "2.0.1977",
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",