@sleds/cli 0.1.61 → 0.1.62

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.
Files changed (2) hide show
  1. package/dist/sleds.mjs +21 -16
  2. package/package.json +1 -1
package/dist/sleds.mjs CHANGED
@@ -3632,7 +3632,7 @@ An engine (or you) takes a ready node with \`sled {take: "${key}/<key>"}\`; Run
3632
3632
  text: "Show the person the graph as text and ask for a yes; then call route again with the same nodes and confirm: true. With nobody to ask (a planning session), call again with propose: true instead.",
3633
3633
  isError: true
3634
3634
  };
3635
- const r = await ctx.client.get(`/proxy/route?q=${encodeURIComponent(q)}`);
3635
+ const r = await ctx.client.get(`/proxy/route?q=${encodeURIComponent(q)}&draft=1`);
3636
3636
  if (!r)
3637
3637
  return UNREACHABLE;
3638
3638
  if (r.ok === false)
@@ -11781,7 +11781,7 @@ function beatBody(state, flags, host = {}, cap = {}) {
11781
11781
  name: flags.name,
11782
11782
  os: host.os ?? process.platform,
11783
11783
  runner: flags.runner,
11784
- version: host.version ?? "0.1.61" ?? "dev",
11784
+ version: host.version ?? "0.1.62" ?? "dev",
11785
11785
  running: live.length,
11786
11786
  items: live.slice(0, BEAT_ITEMS).map((r) => `${r.item}/${r.node}`),
11787
11787
  ...cap.atOnce !== undefined ? { atOnce: cap.atOnce } : {},
@@ -13339,7 +13339,7 @@ function sledsSource(client, o) {
13339
13339
  let pack = "";
13340
13340
  let brief = null;
13341
13341
  try {
13342
- brief = await routeOf(project);
13342
+ brief = await client.get(`/proxy/route?q=${encodeURIComponent(project)}&draft=1`);
13343
13343
  pack = (isObject8(brief?.draft) ? str6(brief.draft.pack) : undefined) ?? "";
13344
13344
  } catch {
13345
13345
  pack = "";
@@ -18592,7 +18592,7 @@ async function fetchVersion(o) {
18592
18592
  const platform = o.platform ?? process.platform;
18593
18593
  const arch = o.arch ?? process.arch;
18594
18594
  const publicKey = o.publicKey ?? RELEASE_PUBLIC_KEY;
18595
- const running = o.running ?? "0.1.61";
18595
+ const running = o.running ?? "0.1.62";
18596
18596
  if (!publicKey)
18597
18597
  return { ok: false, why: "no release key yet" };
18598
18598
  if (!VERSION_RE2.test(o.version))
@@ -19816,6 +19816,11 @@ function engineUpdater(o) {
19816
19816
  };
19817
19817
  }
19818
19818
 
19819
+ // src/version.ts
19820
+ function cliVersion(env) {
19821
+ return "0.1.62";
19822
+ }
19823
+
19819
19824
  // src/commands/update.ts
19820
19825
  init_server();
19821
19826
  init_config();
@@ -20199,7 +20204,7 @@ function engineClient(o, org, breaker) {
20199
20204
  ...src,
20200
20205
  ...breaker ? { fetchFn: breaker.fetch } : {},
20201
20206
  timeoutMs: ENGINE_TIMEOUT_MS,
20202
- version: "0.1.61"
20207
+ version: "0.1.62"
20203
20208
  });
20204
20209
  const asked = org?.trim() || env.SLEDS_ORG?.trim();
20205
20210
  if (asked && !selectOrg(readConfig(o.home), org, env).seat)
@@ -20505,7 +20510,7 @@ async function driveEngine(o, flags, deps, until = {}) {
20505
20510
  runner: deps.runner.name,
20506
20511
  atOnce: flags.atOnce,
20507
20512
  interval: flags.interval,
20508
- cliVersion: "0.1.61"
20513
+ cliVersion: "0.1.62"
20509
20514
  };
20510
20515
  const beat = (checkedAt) => {
20511
20516
  const m = deps.machine;
@@ -22374,7 +22379,7 @@ function engineClient2(o, org, breaker) {
22374
22379
  ...src,
22375
22380
  ...breaker ? { fetchFn: breaker.fetch } : {},
22376
22381
  timeoutMs: ENGINE_TIMEOUT_MS2,
22377
- version: "0.1.61"
22382
+ version: "0.1.62"
22378
22383
  });
22379
22384
  const asked = org?.trim() || env.SLEDS_ORG?.trim();
22380
22385
  if (asked && !selectOrg(readConfig(o.home), org, env).seat)
@@ -22715,7 +22720,7 @@ async function driveEngine2(o, flags, deps, until = {}) {
22715
22720
  runner: deps.runner.name,
22716
22721
  atOnce: flags.atOnce,
22717
22722
  interval: flags.interval,
22718
- cliVersion: "0.1.61"
22723
+ cliVersion: "0.1.62"
22719
22724
  };
22720
22725
  const beat = (checkedAt) => {
22721
22726
  const m = deps.machine;
@@ -22921,7 +22926,7 @@ function engineRunner2(o, flags) {
22921
22926
  });
22922
22927
  }
22923
22928
  function engineStartGuard(home, env, now) {
22924
- return startGuard({ home, version: env.SLEDS_CLI_VERSION, now });
22929
+ return startGuard({ home, version: cliVersion(env), now });
22925
22930
  }
22926
22931
  var engineCmd = async (o) => {
22927
22932
  const log = o.log ?? console.log;
@@ -23072,7 +23077,7 @@ var engineCmd = async (o) => {
23072
23077
  log(terminalOf2(o).c.dim(n));
23073
23078
  const watch = firstBeatWatchdog({
23074
23079
  home: o.home,
23075
- version: (o.env ?? process.env).SLEDS_CLI_VERSION,
23080
+ version: cliVersion(o.env),
23076
23081
  say: error,
23077
23082
  ...o.updates?.stateFiles ? { stateFiles: o.updates.stateFiles() } : {},
23078
23083
  ...o.watchdog
@@ -23153,7 +23158,7 @@ function engineUpdaterFor(o, flags, deps, client) {
23153
23158
  return engineUpdater({
23154
23159
  home: o.home,
23155
23160
  engine: statePath(engineStateDir2(o, flags.org, flags.seat), deps.engine),
23156
- version: env.SLEDS_CLI_VERSION,
23161
+ version: cliVersion(env),
23157
23162
  compiled: o.updates?.compiled ?? isCompiled(),
23158
23163
  tokens: () => {
23159
23164
  try {
@@ -24825,7 +24830,7 @@ function contextFor(deps) {
24825
24830
  ...src,
24826
24831
  fetchFn: deps.fetchFn,
24827
24832
  timeoutMs: deps.timeoutMs,
24828
- version: "0.1.61"
24833
+ version: "0.1.62"
24829
24834
  }), deps.home, now) : null;
24830
24835
  return {
24831
24836
  channel: "code",
@@ -29086,7 +29091,7 @@ var realPidAlive4 = (pid) => {
29086
29091
  };
29087
29092
  function machineClient(home, env) {
29088
29093
  const src = meterSource(home, undefined, { env });
29089
- return src ? fetchClient({ ...src, version: "0.1.61" }) : null;
29094
+ return src ? fetchClient({ ...src, version: "0.1.62" }) : null;
29090
29095
  }
29091
29096
  async function noteAnswer2(home, a, now) {
29092
29097
  try {
@@ -29120,7 +29125,7 @@ async function updateCmd(o) {
29120
29125
  error(UPDATE_USAGE);
29121
29126
  return 2;
29122
29127
  }
29123
- const version = o.version ?? env.SLEDS_CLI_VERSION;
29128
+ const version = o.version ?? cliVersion(env);
29124
29129
  if (parsed.mode === "off" || parsed.mode === "on") {
29125
29130
  const off = parsed.mode === "off";
29126
29131
  await withUpdateLock(home, (s) => {
@@ -29956,7 +29961,7 @@ var main = async (argv) => {
29956
29961
  now: Date.now(),
29957
29962
  stderr: (line) => console.error(line),
29958
29963
  isTTY: !!process.stderr.isTTY,
29959
- version: "0.1.61"
29964
+ version: "0.1.62"
29960
29965
  });
29961
29966
  switch (cmd) {
29962
29967
  case "update":
@@ -30189,7 +30194,7 @@ ${renderHelpText(argv[1])}`);
30189
30194
  case "version":
30190
30195
  case "--version":
30191
30196
  case "-v":
30192
- console.log("sleds 0.1.61");
30197
+ console.log("sleds 0.1.62");
30193
30198
  return 0;
30194
30199
  default:
30195
30200
  console.error(`unknown command: ${cmd}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sleds/cli",
3
- "version": "0.1.61",
3
+ "version": "0.1.62",
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",