gm-plugkit 2.0.2541 → 2.0.2542
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/bootstrap.js +10 -4
- package/package.json +1 -1
package/bootstrap.js
CHANGED
|
@@ -735,14 +735,20 @@ async function resolveLatestRemoteVersionViaGit(timeoutMs) {
|
|
|
735
735
|
tags.sort(compareDottedSemverAscending);
|
|
736
736
|
for (let i = tags.length - 1; i >= 0; i--) {
|
|
737
737
|
const version = tags[i];
|
|
738
|
-
|
|
739
|
-
await httpHeadOk(`https://github.com/AnEntrypoint/plugkit-bin/releases/download/v${version}/plugkit.wasm`, timeoutMs || 3000);
|
|
740
|
-
return version;
|
|
741
|
-
} catch (_) { /* asset missing for this tag, try the next-newest */ }
|
|
738
|
+
if (await assetExistsForTag(version, timeoutMs)) return version;
|
|
742
739
|
}
|
|
743
740
|
return null;
|
|
744
741
|
}
|
|
745
742
|
|
|
743
|
+
async function assetExistsForTag(version, timeoutMs) {
|
|
744
|
+
try {
|
|
745
|
+
await httpHeadOk(`https://github.com/AnEntrypoint/plugkit-bin/releases/download/v${version}/plugkit.wasm`, timeoutMs || 3000);
|
|
746
|
+
return true;
|
|
747
|
+
} catch (_) {
|
|
748
|
+
return false;
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
|
|
746
752
|
async function resolveLatestRemoteVersion(timeoutMs) {
|
|
747
753
|
try {
|
|
748
754
|
const buf = await httpGetBuffer('https://api.github.com/repos/AnEntrypoint/plugkit-bin/releases?per_page=50', timeoutMs || 3000);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gm-plugkit",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2542",
|
|
4
4
|
"description": "Bootstrap and daemon-spawn tool for gm plugkit binary. Downloads the correct platform wasm, verifies SHA256, and launches agentplug-runner (the native wasm host) as the spool watcher daemon.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|