skydive-cli 0.1.0-beta.65 → 0.1.0-beta.73

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/js/bin.mjs CHANGED
@@ -13,7 +13,7 @@ import fs from "node:fs";
13
13
  import zlib from "node:zlib";
14
14
 
15
15
  //#region package.json
16
- var version$1 = "0.1.0-beta.65";
16
+ var version$1 = "0.1.0-beta.73";
17
17
 
18
18
  //#endregion
19
19
  //#region src/types.ts
@@ -2046,7 +2046,7 @@ const chatCommand = {
2046
2046
  printError(`Unknown theme "${themeId}". Valid themes: ${themes.map((t) => t.id).join(", ")}`);
2047
2047
  process.exit(1);
2048
2048
  }
2049
- const { runChat } = await import("./boot-BUk9yMvA.mjs");
2049
+ const { runChat } = await import("./boot-VqbPkft1.mjs");
2050
2050
  await runChat({
2051
2051
  appUrl,
2052
2052
  sessionToken: session.value.sessionToken,
@@ -2163,7 +2163,7 @@ const switchCommand = {
2163
2163
  printError("The workspace picker needs the Bun runtime and it could not be set up automatically. Pass a workspace slug instead, or install Bun and retry.");
2164
2164
  process.exit(1);
2165
2165
  }
2166
- const { runWorkspacePicker } = await import("./boot-BUk9yMvA.mjs");
2166
+ const { runWorkspacePicker } = await import("./boot-VqbPkft1.mjs");
2167
2167
  await runWorkspacePicker(session);
2168
2168
  return;
2169
2169
  }
@@ -3231,6 +3231,28 @@ function ToolItem({ item }) {
3231
3231
  }
3232
3232
  }
3233
3233
 
3234
+ //#endregion
3235
+ //#region src/chat/tui/format-elapsed.ts
3236
+ /**
3237
+ * Human-readable elapsed time for live counters (e.g. the ActivityRow's
3238
+ * "working · 29m 40s"). Raw seconds get unreadable on long runs — `1780s`
3239
+ * says nothing at a glance — so roll up into minutes and hours:
3240
+ *
3241
+ * 45 → "45s"
3242
+ * 1780 → "29m 40s"
3243
+ * 3600 → "1h 0m"
3244
+ * 5025 → "1h 23m"
3245
+ *
3246
+ * Past the hour mark the seconds digit is noise, so it's dropped.
3247
+ */
3248
+ function formatElapsed(totalSeconds) {
3249
+ const seconds = Math.max(0, Math.floor(totalSeconds));
3250
+ if (seconds < 60) return `${seconds}s`;
3251
+ const minutes = Math.floor(seconds / 60);
3252
+ if (minutes < 60) return `${minutes}m ${seconds % 60}s`;
3253
+ return `${Math.floor(minutes / 60)}h ${minutes % 60}m`;
3254
+ }
3255
+
3234
3256
  //#endregion
3235
3257
  //#region src/chat/tui/chat/card.ts
3236
3258
  const urlActionKinds = [
@@ -5883,7 +5905,7 @@ function ActivityRow({ label }) {
5883
5905
  " ",
5884
5906
  /* @__PURE__ */ jsxs("span", {
5885
5907
  fg: theme.muted,
5886
- children: [label, elapsed > 0 ? ` · ${elapsed}s` : ""]
5908
+ children: [label, elapsed > 0 ? ` · ${formatElapsed(elapsed)}` : ""]
5887
5909
  })
5888
5910
  ]
5889
5911
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skydive-cli",
3
- "version": "0.1.0-beta.65",
3
+ "version": "0.1.0-beta.73",
4
4
  "description": "Skydive CLI — manage AI agents from the command line",
5
5
  "homepage": "https://skydive.com",
6
6
  "license": "MIT",