@sleds/cli 0.1.5 → 0.1.6
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/dist/sleds.mjs +4 -4
- package/package.json +1 -1
package/dist/sleds.mjs
CHANGED
|
@@ -1478,7 +1478,7 @@ async function probeProxy(url, fetchFn = fetch, opts = {}) {
|
|
|
1478
1478
|
const timeoutMs = opts.timeoutMs ?? 1e4;
|
|
1479
1479
|
for (let i = 0;i < tries; i++) {
|
|
1480
1480
|
try {
|
|
1481
|
-
const res = await fetchFn(`${url}/
|
|
1481
|
+
const res = await fetchFn(`${url}/healthz`, { signal: AbortSignal.timeout(timeoutMs) });
|
|
1482
1482
|
if (res.ok)
|
|
1483
1483
|
return true;
|
|
1484
1484
|
} catch {}
|
|
@@ -1541,7 +1541,7 @@ var init = async (o) => {
|
|
|
1541
1541
|
return 2;
|
|
1542
1542
|
}
|
|
1543
1543
|
if (!o.noProbe && !await probeProxy(url, o.fetchFn)) {
|
|
1544
|
-
error(`No SLEDS proxy answered at ${url}/
|
|
1544
|
+
error(`No SLEDS proxy answered at ${url}/healthz. Check the URL (or pass --no-probe to save it anyway).`);
|
|
1545
1545
|
return 2;
|
|
1546
1546
|
}
|
|
1547
1547
|
const wrote = [];
|
|
@@ -3242,7 +3242,7 @@ commands:
|
|
|
3242
3242
|
init Point Claude Code at a SLEDS proxy, install the /sled skill and the status line.
|
|
3243
3243
|
--token <sled_\u2026> seat token (else SLEDS_TOKEN, ~/.sleds-token, or prompt)
|
|
3244
3244
|
--url <proxy-url> proxy base URL (else SLEDS_PROXY_URL, default ${DEFAULT_PROXY_URL})
|
|
3245
|
-
--no-probe skip the /
|
|
3245
|
+
--no-probe skip the /healthz check of the proxy URL
|
|
3246
3246
|
--non-interactive never prompt; exit 2 if no token is available
|
|
3247
3247
|
--signup no org? create an individual seat: your email + your own
|
|
3248
3248
|
Anthropic API key (validated, stored encrypted, the only key it spends)
|
|
@@ -3384,7 +3384,7 @@ var main = async (argv) => {
|
|
|
3384
3384
|
case "version":
|
|
3385
3385
|
case "--version":
|
|
3386
3386
|
case "-v":
|
|
3387
|
-
console.log(`sleds ${"0.1.
|
|
3387
|
+
console.log(`sleds ${"0.1.6"}`);
|
|
3388
3388
|
return 0;
|
|
3389
3389
|
default:
|
|
3390
3390
|
console.error(`unknown command: ${cmd}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sleds/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "SLEDS CLI — the cost and limits of AI agent work, decided at the wall. Point Claude Code at a SLEDS proxy; estimate before you run; hold, switch model, or run overnight when you hit a limit.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|