gm-plugkit 2.0.1693 → 2.0.1695
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/package.json +1 -1
- package/plugkit-wasm-wrapper.js +17 -0
- package/plugkit.version +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gm-plugkit",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1695",
|
|
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": {
|
package/plugkit-wasm-wrapper.js
CHANGED
|
@@ -3814,6 +3814,23 @@ async function runSpoolWatcher(instance, spoolDir) {
|
|
|
3814
3814
|
setInterval(() => { try { scanStalledTurns(); } catch (_) {} }, 30000);
|
|
3815
3815
|
writeStatus();
|
|
3816
3816
|
|
|
3817
|
+
setTimeout(() => {
|
|
3818
|
+
try {
|
|
3819
|
+
_writeStatusBusy(360000);
|
|
3820
|
+
const vb = new TextEncoder().encode('codesearch');
|
|
3821
|
+
const bb = new TextEncoder().encode(JSON.stringify({ query: 'index warmup', k: 1 }));
|
|
3822
|
+
const vp = writeWasmInput(instance, vb, 'boot-warmup:codesearch.verb');
|
|
3823
|
+
const bp = writeWasmInput(instance, bb, 'boot-warmup:codesearch.body');
|
|
3824
|
+
const t0 = Date.now();
|
|
3825
|
+
const r = dispatch(vp, vb.length, bp, bb.length);
|
|
3826
|
+
decodeWasmResult(instance, r, 'boot-warmup:codesearch');
|
|
3827
|
+
writeStatus();
|
|
3828
|
+
logEvent('plugkit', 'boot.index-warmup', { ms: Date.now() - t0 });
|
|
3829
|
+
} catch (e) {
|
|
3830
|
+
try { logEvent('plugkit', 'boot.index-warmup-failed', { error: String(e && e.message || e) }); } catch (_) {}
|
|
3831
|
+
}
|
|
3832
|
+
}, 3000);
|
|
3833
|
+
|
|
3817
3834
|
const TURN_SUMMARY_PATH = path.join(spoolDir, '.turn-summary.json');
|
|
3818
3835
|
function writeTurnSummary() {
|
|
3819
3836
|
try {
|
package/plugkit.version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.741
|