gm-skill 2.0.1490 → 2.0.1492
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 +2 -2
- package/bin/gm-shell-validate.js +1 -1
- package/gm-plugkit/package.json +1 -1
- package/gm-plugkit/supervisor.js +6 -3
- package/gm.json +1 -1
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -26,7 +26,7 @@ This repo IS the published `gm-skill` npm package. The repo root is the package
|
|
|
26
26
|
|
|
27
27
|
## WASM-only
|
|
28
28
|
|
|
29
|
-
The plugkit stack runs as a wasm cdylib loaded by `plugkit-wasm-wrapper.js` under Node/bun. No native binaries are built, downloaded, or published. The
|
|
29
|
+
The plugkit stack runs as a wasm cdylib loaded by `plugkit-wasm-wrapper.js` under Node/bun. No native binaries are built, downloaded, or published. The shipped `plugkit.wasm` (~149MB, embeds bge-small-en-v1.5 for offline in-wasm embeddings) is fetched at bootstrap from `plugkit-wasm` npm / `plugkit-bin` gh-releases, sha256-pinned, not bundled in `gm-skill`. Full size/embedding mechanics in rs-learn (`recall: WASM-only plugkit size mechanics`).
|
|
30
30
|
|
|
31
31
|
## Spool dispatch ABI
|
|
32
32
|
|
|
@@ -34,7 +34,7 @@ Agents dispatch verbs by writing to `.gm/exec-spool/in/<verb>/<N>.txt` (request
|
|
|
34
34
|
|
|
35
35
|
**Orchestrator verbs**: `instruction`, `transition`, `phase-status`, `mutable-resolve`, `memorize-fire`, `residual-scan`, `auto-recall`.
|
|
36
36
|
|
|
37
|
-
**Wasm-direct verbs**:
|
|
37
|
+
**Wasm-direct verbs**: fs/kv/exec/fetch/env, recall, codesearch, memorize(+prune), health, filter, and the full git verb family. Complete enumeration in rs-learn (`recall: wasm-direct plugkit verbs full list`).
|
|
38
38
|
|
|
39
39
|
**memorize-prune verb**: deletes bad/superseded memories, pruning bad memory matters more than preserving good memory, since a wrong recall hit is worse than a miss. Two modes: explicit `{key}`/`{keys:[...]}` deletes exactly those mem keys (text + `-vec` embedding sibling) via the `host_kv_delete` host import; `{query}` returns review-only candidates (vector_top_k hits with keys) for the agent to judge, then re-dispatch with the stale `{keys:[...]}`. Query mode never auto-deletes by similarity, a blind similarity-delete is itself a bad-memory generator; the destructive step stays under agent judgment. Emits `memory.pruned` per deletion.
|
|
40
40
|
|
package/bin/gm-shell-validate.js
CHANGED
|
@@ -33,7 +33,7 @@ async function renderPreview() {
|
|
|
33
33
|
const mod = await import('file:///C:/dev/gm/site/theme.mjs');
|
|
34
34
|
const ctx = {
|
|
35
35
|
readGlobal: (k) => {
|
|
36
|
-
if (k === 'site') return { title: 'gm', tagline: "more coushin' for the pushin'", description: 'local browser OS surface', glyph: '
|
|
36
|
+
if (k === 'site') return { title: 'gm', tagline: "more coushin' for the pushin'", description: 'local browser OS surface', glyph: 'g', accent_from: '#7ee787', accent_to: '#56d364' };
|
|
37
37
|
if (k === 'navigation') return { links: [{ label: 'Home', href: '/' }, { label: 'Paper', href: '/paper/' }, { label: 'Stats', href: '/stats/' }, { label: 'Crates', href: '/crates/' }, { label: 'Skills', href: '/skills/' }] };
|
|
38
38
|
return null;
|
|
39
39
|
},
|
package/gm-plugkit/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gm-plugkit",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1492",
|
|
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/gm-plugkit/supervisor.js
CHANGED
|
@@ -145,15 +145,18 @@ function spawnWatcher(bootReason) {
|
|
|
145
145
|
const reason = shutdownReason && shutdownReason.reason;
|
|
146
146
|
const idleClean = reason === 'idle';
|
|
147
147
|
const lockRejected = code === 75;
|
|
148
|
-
const
|
|
149
|
-
const
|
|
148
|
+
const cleanExit = code === 0;
|
|
149
|
+
const plannedReasons = new Set(['idle', 'sigterm', 'version-change', 'wrapper-change', 'peer-stale-takeover', 'external-planned', 'process-exit']);
|
|
150
|
+
const isPlanned = plannedReasons.has(reason) || lockRejected || cleanExit;
|
|
150
151
|
const eventName = idleClean
|
|
151
152
|
? 'supervisor.watcher-exited-idle'
|
|
152
153
|
: reason === 'version-change'
|
|
153
154
|
? 'supervisor.watcher-exited-for-update'
|
|
154
155
|
: lockRejected
|
|
155
156
|
? 'supervisor.watcher-exited-lock-rejected'
|
|
156
|
-
:
|
|
157
|
+
: cleanExit
|
|
158
|
+
? 'supervisor.watcher-exited-clean'
|
|
159
|
+
: 'supervisor.watcher-exited-unexpectedly';
|
|
157
160
|
logEvent(eventName, {
|
|
158
161
|
watcher_pid: currentChildPid,
|
|
159
162
|
exit_code: code,
|
package/gm.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gm-skill",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1492",
|
|
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",
|