gm-plugkit 2.0.1214 → 2.0.1216
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/package.json +1 -1
- package/plugkit-wasm-wrapper.js +13 -2
- package/plugkit.sha256 +1 -1
- package/plugkit.version +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gm-plugkit",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1216",
|
|
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": {
|
package/plugkit-wasm-wrapper.js
CHANGED
|
@@ -100,7 +100,7 @@ process.stdin.on('end', () => {
|
|
|
100
100
|
sub: 'hook',
|
|
101
101
|
event: 'deviation.spool-poll',
|
|
102
102
|
pid: process.pid,
|
|
103
|
-
sess: process.env.CLAUDE_SESSION_ID || process.env.GM_SESSION_ID || '',
|
|
103
|
+
sess: event.session_id || process.env.CLAUDE_SESSION_ID || process.env.GM_SESSION_ID || '',
|
|
104
104
|
cwd: process.cwd(),
|
|
105
105
|
operation: 'bash',
|
|
106
106
|
pattern,
|
|
@@ -256,6 +256,13 @@ function emitOrchestratorEvents(verb, taskBase, resultStr) {
|
|
|
256
256
|
let parsed;
|
|
257
257
|
try { parsed = JSON.parse(resultStr); } catch (_) { return; }
|
|
258
258
|
if (!parsed || parsed.ok !== true) {
|
|
259
|
+
let errData = null;
|
|
260
|
+
if (parsed && typeof parsed.stdout === 'string' && parsed.stdout.length > 0) {
|
|
261
|
+
try { errData = JSON.parse(parsed.stdout); } catch (_) {}
|
|
262
|
+
}
|
|
263
|
+
if (verb === 'prd-resolve' && errData && errData.deviation_kind === 'prd-resolve-unknown-id') {
|
|
264
|
+
logEvent('hook', 'deviation.prd-resolve-unknown-id', { task: taskBase, prd_id: errData.prd_id, reason: errData.error });
|
|
265
|
+
}
|
|
259
266
|
logEvent('plugkit', 'orchestrator.error', { verb, task: taskBase, error: parsed && parsed.error ? String(parsed.error) : 'unknown' });
|
|
260
267
|
return;
|
|
261
268
|
}
|
|
@@ -276,7 +283,11 @@ function emitOrchestratorEvents(verb, taskBase, resultStr) {
|
|
|
276
283
|
logEvent('plugkit', 'prd.added', { task: taskBase, id: data.added });
|
|
277
284
|
break;
|
|
278
285
|
case 'prd-resolve':
|
|
279
|
-
|
|
286
|
+
if (data && data.deviation_kind === 'prd-resolve-unknown-id') {
|
|
287
|
+
logEvent('hook', 'deviation.prd-resolve-unknown-id', { task: taskBase, prd_id: data.prd_id, reason: data.error });
|
|
288
|
+
} else {
|
|
289
|
+
logEvent('plugkit', 'prd.resolved', { task: taskBase, id: data.resolved });
|
|
290
|
+
}
|
|
280
291
|
break;
|
|
281
292
|
case 'mutable-add':
|
|
282
293
|
logEvent('plugkit', 'mutable.added', { task: taskBase, id: data.added });
|
package/plugkit.sha256
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"plugkit.wasm":"
|
|
1
|
+
{"plugkit.wasm":"f47f68684b3860078e10698ca188c302968eb99fbc6608a2851eb3ded4b55df8"}
|
package/plugkit.version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.446
|