gm-skill 2.0.1188 → 2.0.1190

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/README.md CHANGED
@@ -35,7 +35,7 @@ An earlier generation fanned out fifteen per-platform downstream repos (gm-cc, g
35
35
 
36
36
  ## Version
37
37
 
38
- `2.0.1188` — auto-bumped from the canonical `gm` repo. Every push to `AnEntrypoint/gm` (or any cascading sibling crate) republishes this package.
38
+ `2.0.1190` — auto-bumped from the canonical `gm` repo. Every push to `AnEntrypoint/gm` (or any cascading sibling crate) republishes this package.
39
39
 
40
40
  ## Source of truth
41
41
 
@@ -1 +1 @@
1
- 0.1.431
1
+ 0.1.432
package/bin/plugkit.wasm CHANGED
Binary file
@@ -1 +1 @@
1
- cce5625d938fff3d9c726b7ae3bb8b96a3ee6b0ecc616a2854fddbca4c4e464e plugkit.wasm
1
+ 050833026344535a3fb991bd49de3a11d0fce8ef21b192f2b1c40e9660723e01 plugkit.wasm
@@ -27,6 +27,23 @@ const ORCHESTRATOR_VERBS = new Set(['instruction', 'transition', 'phase-status',
27
27
  const TURN_IDLE_MS = 30_000;
28
28
  const _turns = new Map();
29
29
 
30
+ function applyDisciplineSigil(rawBody) {
31
+ let parsed;
32
+ try { parsed = JSON.parse(rawBody); } catch (_) { return rawBody; }
33
+ if (!parsed || typeof parsed !== 'object') return rawBody;
34
+ const SIGIL = /^@([A-Za-z0-9][A-Za-z0-9_-]{0,63})\s+/;
35
+ for (const key of ['query', 'text']) {
36
+ const v = parsed[key];
37
+ if (typeof v !== 'string') continue;
38
+ const m = v.match(SIGIL);
39
+ if (!m) continue;
40
+ if (!parsed.namespace) parsed.namespace = m[1];
41
+ parsed[key] = v.slice(m[0].length);
42
+ break;
43
+ }
44
+ return JSON.stringify(parsed);
45
+ }
46
+
30
47
  function turnTick(sess, verb, taskBase, phase) {
31
48
  const key = sess || '(no-session)';
32
49
  const now = Date.now();
@@ -1344,9 +1361,13 @@ async function runSpoolWatcher(instance, spoolDir) {
1344
1361
  const relPath = path.relative(inDir, filePath);
1345
1362
  const dir = path.dirname(relPath);
1346
1363
  const verb = dir === '.' ? path.basename(filePath, path.extname(filePath)) : dir;
1347
- const body = content.trim() || '{}';
1364
+ let body = content.trim() || '{}';
1348
1365
  const taskBase = path.basename(filePath, path.extname(filePath));
1349
1366
 
1367
+ if (verb === 'recall' || verb === 'memorize' || verb === 'codesearch' || verb === 'memorize-fire') {
1368
+ body = applyDisciplineSigil(body);
1369
+ }
1370
+
1350
1371
  const verbBytes = new TextEncoder().encode(verb);
1351
1372
  const bodyBytes = new TextEncoder().encode(body);
1352
1373
 
package/gm.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm",
3
- "version": "2.0.1188",
3
+ "version": "2.0.1190",
4
4
  "description": "Spool-dispatch orchestration engine with unified state machine, skills, and automated git enforcement",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",
@@ -17,5 +17,5 @@
17
17
  "publishConfig": {
18
18
  "access": "public"
19
19
  },
20
- "plugkitVersion": "0.1.431"
20
+ "plugkitVersion": "0.1.432"
21
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-skill",
3
- "version": "2.0.1188",
3
+ "version": "2.0.1190",
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",
@@ -39,7 +39,7 @@
39
39
  "gm.json"
40
40
  ],
41
41
  "dependencies": {
42
- "gm-plugkit": "^2.0.1188"
42
+ "gm-plugkit": "^2.0.1190"
43
43
  },
44
44
  "engines": {
45
45
  "node": ">=16.0.0"