gm-skill 2.0.1965 → 2.0.1967
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/bootstrap.js +2 -8
- package/gm-plugkit/gm-process.js +16 -0
- package/gm-plugkit/package.json +2 -1
- package/gm-plugkit/plugkit-wasm-wrapper.js +3 -8
- package/gm-plugkit/plugkit.version +1 -1
- package/gm-plugkit/supervisor.js +2 -8
- package/gm.json +2 -2
- package/package.json +2 -1
package/bin/plugkit.version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.902
|
package/bin/plugkit.wasm.sha256
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
5d932cdaf88e7af13623f9a316bce5019982df812691302e61e68c0c2b176df7 plugkit.wasm
|
package/gm-plugkit/bootstrap.js
CHANGED
|
@@ -7,6 +7,7 @@ const os = require('os');
|
|
|
7
7
|
const crypto = require('crypto');
|
|
8
8
|
const { spawn, spawnSync } = require('child_process');
|
|
9
9
|
const { logEvent: _sharedLogEvent } = require('./gm-log');
|
|
10
|
+
const { pidCommandLineForKillGuard: _sharedPidCommandLine } = require('./gm-process');
|
|
10
11
|
|
|
11
12
|
function resolveWindowsExe(cmd) {
|
|
12
13
|
if (process.platform !== 'win32') return cmd;
|
|
@@ -490,14 +491,7 @@ function writeDaemonVersion(v) {
|
|
|
490
491
|
}
|
|
491
492
|
|
|
492
493
|
function pidCommandLineForKillGuard(pid) {
|
|
493
|
-
|
|
494
|
-
if (process.platform === 'win32') {
|
|
495
|
-
const r = spawnSync('powershell.exe', ['-NoProfile', '-NonInteractive', '-Command', `(Get-CimInstance Win32_Process -Filter "ProcessId=${Number(pid)}").CommandLine`], { encoding: 'utf8', windowsHide: true, timeout: 5000 });
|
|
496
|
-
return String((r && r.stdout) || '');
|
|
497
|
-
}
|
|
498
|
-
const r = spawnSync('ps', ['-p', String(pid), '-o', 'args='], { encoding: 'utf8', timeout: 5000 });
|
|
499
|
-
return String((r && r.stdout) || '');
|
|
500
|
-
} catch (_) { return ''; }
|
|
494
|
+
return _sharedPidCommandLine(pid);
|
|
501
495
|
}
|
|
502
496
|
|
|
503
497
|
function pidIsPlugkitProcess(pid) {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const { spawnSync } = require('child_process');
|
|
4
|
+
|
|
5
|
+
function pidCommandLineForKillGuard(pid) {
|
|
6
|
+
try {
|
|
7
|
+
if (process.platform === 'win32') {
|
|
8
|
+
const r = spawnSync('powershell.exe', ['-NoProfile', '-NonInteractive', '-Command', `(Get-CimInstance Win32_Process -Filter "ProcessId=${Number(pid)}").CommandLine`], { encoding: 'utf8', windowsHide: true, timeout: 5000 });
|
|
9
|
+
return String((r && r.stdout) || '');
|
|
10
|
+
}
|
|
11
|
+
const r = spawnSync('ps', ['-p', String(pid), '-o', 'args='], { encoding: 'utf8', timeout: 5000 });
|
|
12
|
+
return String((r && r.stdout) || '');
|
|
13
|
+
} catch (_) { return ''; }
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
module.exports = { pidCommandLineForKillGuard };
|
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.1967",
|
|
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": {
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"supervisor.js",
|
|
15
15
|
"plugkit-wasm-wrapper.js",
|
|
16
16
|
"gm-log.js",
|
|
17
|
+
"gm-process.js",
|
|
17
18
|
"plugkit.version",
|
|
18
19
|
"plugkit.sha256",
|
|
19
20
|
"instructions/"
|
|
@@ -15,6 +15,8 @@ import { fileURLToPath } from 'url';
|
|
|
15
15
|
import _gmLog from './gm-log.js';
|
|
16
16
|
const _sharedLogEvent = _gmLog.logEvent;
|
|
17
17
|
const _sharedGmLogRoot = _gmLog.GM_LOG_ROOT;
|
|
18
|
+
import _gmProcess from './gm-process.js';
|
|
19
|
+
const _sharedPidCommandLine = _gmProcess.pidCommandLineForKillGuard;
|
|
18
20
|
|
|
19
21
|
let _writeStatusBusy = () => {};
|
|
20
22
|
let _lastBusyUntil = 0;
|
|
@@ -78,14 +80,7 @@ function emitShutdownReason(reason, err) {
|
|
|
78
80
|
}
|
|
79
81
|
|
|
80
82
|
function pidCommandLineForKillGuard(pid) {
|
|
81
|
-
|
|
82
|
-
if (process.platform === 'win32') {
|
|
83
|
-
const r = spawnSync('powershell.exe', ['-NoProfile', '-NonInteractive', '-Command', `(Get-CimInstance Win32_Process -Filter "ProcessId=${Number(pid)}").CommandLine`], { encoding: 'utf8', windowsHide: true, timeout: 5000 });
|
|
84
|
-
return String((r && r.stdout) || '');
|
|
85
|
-
}
|
|
86
|
-
const r = spawnSync('ps', ['-p', String(pid), '-o', 'args='], { encoding: 'utf8', timeout: 5000 });
|
|
87
|
-
return String((r && r.stdout) || '');
|
|
88
|
-
} catch (_) { return ''; }
|
|
83
|
+
return _sharedPidCommandLine(pid);
|
|
89
84
|
}
|
|
90
85
|
|
|
91
86
|
function pidIsPlugkitProcess(pid) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.902
|
package/gm-plugkit/supervisor.js
CHANGED
|
@@ -8,6 +8,7 @@ const crypto = require('crypto');
|
|
|
8
8
|
const { spawn, spawnSync } = require('child_process');
|
|
9
9
|
const { gmToolsDir } = require('./bootstrap');
|
|
10
10
|
const { logEvent: _sharedLogEvent, GM_LOG_ROOT: _sharedGmLogRoot } = require('./gm-log');
|
|
11
|
+
const { pidCommandLineForKillGuard: _sharedPidCommandLine } = require('./gm-process');
|
|
11
12
|
|
|
12
13
|
function wrapperSha12OnDisk() {
|
|
13
14
|
try {
|
|
@@ -50,14 +51,7 @@ function writeSupervisorStatus(state, extra) {
|
|
|
50
51
|
}
|
|
51
52
|
|
|
52
53
|
function pidCommandLineForKillGuard(pid) {
|
|
53
|
-
|
|
54
|
-
if (process.platform === 'win32') {
|
|
55
|
-
const r = spawnSync('powershell.exe', ['-NoProfile', '-NonInteractive', '-Command', `(Get-CimInstance Win32_Process -Filter "ProcessId=${Number(pid)}").CommandLine`], { encoding: 'utf8', windowsHide: true, timeout: 5000 });
|
|
56
|
-
return String((r && r.stdout) || '');
|
|
57
|
-
}
|
|
58
|
-
const r = spawnSync('ps', ['-p', String(pid), '-o', 'args='], { encoding: 'utf8', timeout: 5000 });
|
|
59
|
-
return String((r && r.stdout) || '');
|
|
60
|
-
} catch (_) { return ''; }
|
|
54
|
+
return _sharedPidCommandLine(pid);
|
|
61
55
|
}
|
|
62
56
|
|
|
63
57
|
function pidIsPlugkitProcess(pid) {
|
package/gm.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gm",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1967",
|
|
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.902"
|
|
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.1967",
|
|
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",
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
"gm-plugkit/plugkit-wasm-wrapper.js",
|
|
45
45
|
"gm-plugkit/supervisor.js",
|
|
46
46
|
"gm-plugkit/gm-log.js",
|
|
47
|
+
"gm-plugkit/gm-process.js",
|
|
47
48
|
"gm-plugkit/plugkit.version",
|
|
48
49
|
"gm-plugkit/plugkit.sha256",
|
|
49
50
|
"gm-plugkit/instructions/",
|