gm-plugkit 2.0.2021 → 2.0.2022
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/cli.js +16 -18
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -230,27 +230,25 @@ function writeCliError(phase, err) {
|
|
|
230
230
|
} catch (_) {}
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
-
//
|
|
234
|
-
// entire bun/node boot path -- when it's installed,
|
|
235
|
-
// immediately and exit, before any bun/node
|
|
236
|
-
//
|
|
237
|
-
//
|
|
238
|
-
//
|
|
239
|
-
//
|
|
240
|
-
//
|
|
241
|
-
//
|
|
242
|
-
//
|
|
243
|
-
// serves the identical spool ABI (same in/out layout, same verb names;
|
|
244
|
-
// gm.wasm is just one of its loadable plugins now) so it's a strict
|
|
245
|
-
// superset, not an alternative; gm-runner stays as the fallback for any
|
|
246
|
-
// install that has it but hasn't picked up agentplug-runner yet (installer
|
|
247
|
-
// re-run pending, or a platform agentplug-bin hasn't published for yet
|
|
248
|
-
// while gm-runner-bin already has).
|
|
233
|
+
// agentplug-runner is the sole native host and a sha256-verified drop-in
|
|
234
|
+
// replacement for this entire bun/node boot path -- when it's installed,
|
|
235
|
+
// delegate to it immediately and exit, before any bun/node bootstrap runs.
|
|
236
|
+
// It serves the identical spool ABI (same in/out layout, same verb names;
|
|
237
|
+
// gm.wasm is one of its loadable plugins alongside libsql/bert/treesitter),
|
|
238
|
+
// so bun/node are only ever exercised as the pure-JS fallback on a platform
|
|
239
|
+
// agentplug-bin has no published binary for, or during the one-time install
|
|
240
|
+
// before the runner lands on disk. (gm-runner, a strictly-inferior
|
|
241
|
+
// single-module duplicate, was retired once agentplug-runner reached full
|
|
242
|
+
// 6-platform parity.)
|
|
249
243
|
function tryDelegateToRunner(args) {
|
|
250
244
|
if (process.env.GM_PLUGKIT_NO_RUNNER_DELEGATE === '1') return false;
|
|
245
|
+
// agentplug-runner is the sole native host now -- gm-runner (a strictly
|
|
246
|
+
// inferior single-module duplicate) was retired once agentplug-runner had
|
|
247
|
+
// full 6-platform parity published to agentplug-bin. The JS wasm-host below
|
|
248
|
+
// is the only fallback, for a platform with no published native binary.
|
|
251
249
|
const candidates = process.platform === 'win32'
|
|
252
|
-
? ['agentplug-runner.exe'
|
|
253
|
-
: ['agentplug-runner'
|
|
250
|
+
? ['agentplug-runner.exe']
|
|
251
|
+
: ['agentplug-runner'];
|
|
254
252
|
for (const exeName of candidates) {
|
|
255
253
|
const runnerPath = path.join(gmToolsDir(), exeName);
|
|
256
254
|
if (!fs.existsSync(runnerPath)) continue;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gm-plugkit",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2022",
|
|
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": {
|