gm-skill 2.0.1320 → 2.0.1322
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/bin/plugkit.version +1 -1
- package/bin/plugkit.wasm.sha256 +1 -1
- package/gm-plugkit/package.json +1 -1
- package/gm-plugkit/plugkit-wasm-wrapper.js +21 -3
- package/gm.json +2 -2
- package/package.json +1 -1
package/bin/plugkit.version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.496
|
package/bin/plugkit.wasm.sha256
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
295786f3710b0257e70b88e3865677c626000bafd60a264ea107e702461641b3 plugkit.wasm
|
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.1322",
|
|
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": {
|
|
@@ -1648,9 +1648,26 @@ function makeHostFunctions(instanceRef) {
|
|
|
1648
1648
|
const cwd = readWasmStr(instanceRef.value, cwdPtr, cwdLen) || process.cwd();
|
|
1649
1649
|
const sessionId = readWasmStr(instanceRef.value, sidPtr, sidLen) || 'default';
|
|
1650
1650
|
const pw = findBrowserRunner();
|
|
1651
|
-
if (!pw)
|
|
1652
|
-
|
|
1653
|
-
|
|
1651
|
+
if (!pw) {
|
|
1652
|
+
throw new Error(`managed browser session runner '${BROWSER_RUNNER_BIN}' not found on PATH or in npm-global; install with 'bun add -g ${BROWSER_RUNNER_BIN}' or 'npm i -g ${BROWSER_RUNNER_BIN}'`);
|
|
1653
|
+
}
|
|
1654
|
+
|
|
1655
|
+
const trimmed = body.trim();
|
|
1656
|
+
|
|
1657
|
+
if (trimmed === 'session new' || trimmed === '') {
|
|
1658
|
+
const pwSessionId = getOrCreateBrowserSession(cwd, sessionId, pw);
|
|
1659
|
+
try { lastBrowserActivityMs = Date.now(); } catch (_) {}
|
|
1660
|
+
return writeWasmJson(instanceRef.value, {
|
|
1661
|
+
ok: true,
|
|
1662
|
+
stdout: `Session ${pwSessionId} attached to locally-profiled chromium at ${path.join(cwd, '.gm', 'browser-profile')}`,
|
|
1663
|
+
stderr: '',
|
|
1664
|
+
exit_code: 0,
|
|
1665
|
+
session_id: pwSessionId,
|
|
1666
|
+
});
|
|
1667
|
+
}
|
|
1668
|
+
|
|
1669
|
+
if (trimmed.startsWith('session list') || trimmed.startsWith('session kill') || trimmed.startsWith('session close')) {
|
|
1670
|
+
const parts = trimmed.slice(8).trim().split(/\s+/);
|
|
1654
1671
|
const r = runBrowserRunner(pw, ['session', ...parts], 30000);
|
|
1655
1672
|
return writeWasmJson(instanceRef.value, {
|
|
1656
1673
|
ok: r.status === 0,
|
|
@@ -1659,6 +1676,7 @@ function makeHostFunctions(instanceRef) {
|
|
|
1659
1676
|
exit_code: r.status === null ? -1 : r.status,
|
|
1660
1677
|
});
|
|
1661
1678
|
}
|
|
1679
|
+
|
|
1662
1680
|
const pwSessionId = getOrCreateBrowserSession(cwd, sessionId, pw);
|
|
1663
1681
|
try { lastBrowserActivityMs = Date.now(); } catch (_) {}
|
|
1664
1682
|
const r = runBrowserRunner(pw, ['-s', pwSessionId, '--timeout', '14000', '-e', body], 60000);
|
package/gm.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gm",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1322",
|
|
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.
|
|
20
|
+
"plugkitVersion": "0.1.496"
|
|
21
21
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gm-skill",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1322",
|
|
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",
|