gm-skill 2.0.1500 → 2.0.1501
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/gm-plugkit/package.json +1 -1
- package/gm-plugkit/plugkit-wasm-wrapper.js +4 -4
- package/gm.json +1 -1
- package/package.json +1 -1
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.1501",
|
|
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": {
|
|
@@ -1004,7 +1004,7 @@ function getOrCreateBrowserSession(cwd, claudeSessionId, pw) {
|
|
|
1004
1004
|
if (pidOk && profileOk && cdpOk) {
|
|
1005
1005
|
const pwIds = sessions[claudeSessionId] || [];
|
|
1006
1006
|
if (pwIds.length > 0 && existing.pwSessionId) return existing.pwSessionId;
|
|
1007
|
-
const r = runBrowserRunner(pw, ['session', 'new', '--direct', existing.wsEndpoint], 30000);
|
|
1007
|
+
const r = runBrowserRunner(pw, ['session', 'new', '--direct', existing.wsEndpoint], 30000, cwd, claudeSessionId);
|
|
1008
1008
|
if (r && r.status === 0) {
|
|
1009
1009
|
const sid = parseSessionId(r.stdout || '');
|
|
1010
1010
|
if (sid) {
|
|
@@ -1070,7 +1070,7 @@ function getOrCreateBrowserSession(cwd, claudeSessionId, pw) {
|
|
|
1070
1070
|
logEvent('plugkit', 'browser.start', { profileDir });
|
|
1071
1071
|
({ pid: browserPid, port, wsEndpoint } = startManagedBrowser(pw, profileDir));
|
|
1072
1072
|
}
|
|
1073
|
-
const r = runBrowserRunner(pw, ['session', 'new', '--direct', wsEndpoint], 30000);
|
|
1073
|
+
const r = runBrowserRunner(pw, ['session', 'new', '--direct', wsEndpoint], 30000, cwd, claudeSessionId);
|
|
1074
1074
|
if (!r || r.status !== 0) {
|
|
1075
1075
|
const errTxt = scrubBrowserRunnerText((r && (r.stderr || r.stdout)) || 'unknown');
|
|
1076
1076
|
logEvent('plugkit', 'browser.launch-failed', { reason: 'session-attach-failed', pid: browserPid, port, error: errTxt });
|
|
@@ -1839,7 +1839,7 @@ function makeHostFunctions(instanceRef) {
|
|
|
1839
1839
|
// and pass list/new/delete/reset through verbatim. Anything else is rejected
|
|
1840
1840
|
// by playwriter with its own usage text, which is the correct surface.
|
|
1841
1841
|
if (parts[0] === 'close' || parts[0] === 'kill') parts[0] = 'delete';
|
|
1842
|
-
const r = runBrowserRunner(pw, ['session', ...parts], 30000);
|
|
1842
|
+
const r = runBrowserRunner(pw, ['session', ...parts], 30000, cwd, sessionId);
|
|
1843
1843
|
return writeWasmJson(instanceRef.value, {
|
|
1844
1844
|
ok: r.status === 0,
|
|
1845
1845
|
stdout: scrubBrowserRunnerText(r.stdout || ''),
|
|
@@ -1861,7 +1861,7 @@ function makeHostFunctions(instanceRef) {
|
|
|
1861
1861
|
}
|
|
1862
1862
|
}
|
|
1863
1863
|
const outerTimeoutMs = Math.min(timeoutMs + 6000, 60000);
|
|
1864
|
-
const r = runBrowserRunner(pw, ['-s', pwSessionId, '--timeout', String(timeoutMs), '-e', evalBody], outerTimeoutMs);
|
|
1864
|
+
const r = runBrowserRunner(pw, ['-s', pwSessionId, '--timeout', String(timeoutMs), '-e', evalBody], outerTimeoutMs, cwd, sessionId);
|
|
1865
1865
|
const ok = r.status === 0;
|
|
1866
1866
|
if (!ok && r.status === null) {
|
|
1867
1867
|
logEvent('plugkit', 'browser.runner-timeout', { session_id: pwSessionId, timeout_ms: timeoutMs, body_bytes: evalBody.length });
|
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.1501",
|
|
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",
|