wkappbot-code 0.3.14 → 0.3.17
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/wkappbot-code.js +4 -1
- package/lib/update.js +1 -1
- package/lib/wk-bin-acquire.sh +2 -2
- package/package.json +1 -1
package/bin/wkappbot-code.js
CHANGED
|
@@ -236,7 +236,7 @@ function isSymlink(p) { try { return lstatSync(p).isSymbolicLink(); } catch { re
|
|
|
236
236
|
|
|
237
237
|
// ---- part: harness --------------------------------------------------------------------------------
|
|
238
238
|
function curl(url, out) {
|
|
239
|
-
const r = spawnSync("curl", ["-fsSL", "--retry", "
|
|
239
|
+
const r = spawnSync("curl", ["-fsSL", "--retry", "6", "--retry-delay", "5", "-m", "300", url, "-o", out], { encoding: "utf8" });
|
|
240
240
|
return r.status === 0 ? "" : ("curl " + url + " rc " + r.status + " " + (r.stderr || "").trim());
|
|
241
241
|
}
|
|
242
242
|
function installHarness(o) {
|
|
@@ -499,6 +499,9 @@ export function stripOurHooks(d, harnessDir) {
|
|
|
499
499
|
}
|
|
500
500
|
const sortKeys = (v) => Array.isArray(v) ? v.map(sortKeys) : v && typeof v === "object" ? Object.fromEntries(Object.keys(v).sort().map((k) => [k, sortKeys(v[k])])) : v;
|
|
501
501
|
function uninstall(o) {
|
|
502
|
+
// A live background setup worker keeps its log in STATE_HOME open; on Windows the final rmTree then gets EBUSY and the
|
|
503
|
+
// uninstall exits 1 with the machine already clean (SDK run 42575266851 win-x64, and once on 0.3.12). Wait as install does.
|
|
504
|
+
waitForSetupWorker();
|
|
502
505
|
const st = readState(o);
|
|
503
506
|
const pr = st.prior || {};
|
|
504
507
|
let rc = 0;
|
package/lib/update.js
CHANGED
|
@@ -23,7 +23,7 @@ export function cmpVer(a, b) {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
function curl(url, out, secs) {
|
|
26
|
-
const r = spawnSync("curl", ["-fsSL", "--retry", "
|
|
26
|
+
const r = spawnSync("curl", ["-fsSL", "--retry", "6", "--retry-delay", "5", "-m", String(secs), url, "-o", out], { encoding: "utf8" });
|
|
27
27
|
return r.status === 0 ? "" : "curl " + url + " rc " + r.status + (r.stderr ? " " + r.stderr.trim() : "");
|
|
28
28
|
}
|
|
29
29
|
const rel = (base, p) => { try { return new URL(p, base).href; } catch { return p; } };
|
package/lib/wk-bin-acquire.sh
CHANGED
|
@@ -111,8 +111,8 @@ sdk_fetch_asset() {
|
|
|
111
111
|
command -v wk_stopwatch_lap >/dev/null 2>&1 && wk_stopwatch_lap "sdk_fetch_asset" || true
|
|
112
112
|
local asset="$1" dir="$2" base want got
|
|
113
113
|
base="${WK_BIN_BASE:-https://github.com/kiexpert/wkappbot-sdk/releases/latest/download}"
|
|
114
|
-
curl -fsSL --retry
|
|
115
|
-
curl -fsSL --retry
|
|
114
|
+
curl -fsSL --retry 6 --retry-delay 5 -m "${WK_BIN_TIMEOUT:-120}" "$base/$asset" -o "$dir/$asset" || return 3
|
|
115
|
+
curl -fsSL --retry 6 --retry-delay 5 -m "${WK_BIN_TIMEOUT:-120}" "$base/SHA256SUMS" -o "$dir/SHA256SUMS" || return 3
|
|
116
116
|
want="$(awk -v f="$asset" '{ n = $2; sub(/^\*/, "", n); if (n == f) { print $1; exit } }' "$dir/SHA256SUMS")"
|
|
117
117
|
[ -n "$want" ] || return 4
|
|
118
118
|
got="$(sha_of "$dir/$asset" || true)"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wkappbot-code",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.17",
|
|
4
4
|
"description": "wkappbot-code -- Wisdom Kernel: the pinned OpenCode bridge plus the reflex harness plugin, the wkappbot core, the web harness and the latest public skills in one install",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|