gm-skill 2.0.1501 → 2.0.1502
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 +13 -2
- 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.1502",
|
|
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": {
|
|
@@ -787,11 +787,22 @@ function sleepSync(ms) {
|
|
|
787
787
|
spawnSync(process.execPath, ['-e', `setTimeout(()=>{}, ${ms})`], { timeout: ms + 2000 });
|
|
788
788
|
}
|
|
789
789
|
|
|
790
|
-
function
|
|
790
|
+
function playwriterHomeFor(cwd, claudeSessionId) {
|
|
791
|
+
if (process.env.PLAYWRITER_HOME) return process.env.PLAYWRITER_HOME;
|
|
792
|
+
if (!cwd) return path.join(GM_TOOLS_ROOT, `pw-sock-${sessionProfileSlug(claudeSessionId)}`);
|
|
793
|
+
try { ensureGitignored(cwd, '.gm/pw-sock-*/'); } catch (_) {}
|
|
794
|
+
return path.join(cwd, '.gm', `pw-sock-${sessionProfileSlug(claudeSessionId)}`);
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
function runBrowserRunner(pw, args, timeoutMs, cwd, claudeSessionId) {
|
|
791
798
|
const allArgs = [...pw.baseArgs, ...args];
|
|
792
799
|
const useShell = !!pw.shell;
|
|
793
800
|
const spawnCmd = useShell && /\s/.test(pw.cmd) ? `"${pw.cmd}"` : pw.cmd;
|
|
794
801
|
const spawnArgs = useShell ? allArgs.map(a => /[\s"]/.test(String(a)) ? `"${String(a).replace(/"/g, '\\"')}"` : a) : allArgs;
|
|
802
|
+
const env = { ...process.env };
|
|
803
|
+
const sockDir = playwriterHomeFor(cwd, claudeSessionId);
|
|
804
|
+
try { fs.mkdirSync(sockDir, { recursive: true }); } catch (_) {}
|
|
805
|
+
env.PLAYWRITER_HOME = sockDir;
|
|
795
806
|
// Stamp a busy window before the synchronous spawn so the blocked event loop's stale heartbeat
|
|
796
807
|
// is not misread as a dead watcher. Pad past the spawn timeout for teardown.
|
|
797
808
|
_writeStatusBusy((timeoutMs || 30000) + 5000);
|
|
@@ -800,7 +811,7 @@ function runBrowserRunner(pw, args, timeoutMs) {
|
|
|
800
811
|
timeout: timeoutMs,
|
|
801
812
|
shell: useShell,
|
|
802
813
|
windowsHide: true,
|
|
803
|
-
env
|
|
814
|
+
env,
|
|
804
815
|
});
|
|
805
816
|
}
|
|
806
817
|
|
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.1502",
|
|
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",
|