@usebitl/cli 0.1.8 → 0.1.10

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.
@@ -467,7 +467,7 @@ function readCloudConfig(home = bitlHome()) {
467
467
  }
468
468
  }
469
469
  function clientVersionHeader() {
470
- const v = "0.1.8";
470
+ const v = "0.1.10";
471
471
  return v ? { "x-bitl-client": v } : {};
472
472
  }
473
473
  function resolveTarget(home = bitlHome()) {
@@ -506,20 +506,22 @@ function gitBranch(cwd) {
506
506
  });
507
507
  });
508
508
  }
509
- async function aiTitleFromTranscript(path) {
509
+ async function titleFromTranscript(path) {
510
510
  try {
511
511
  if ((await stat2(path)).size > MAX_TRANSCRIPT_BYTES2) return void 0;
512
512
  const text = await readFile2(path, "utf8");
513
- let title;
513
+ let aiTitle;
514
+ let customTitle;
514
515
  for (const line of text.split("\n")) {
515
- if (!line.includes('"ai-title"')) continue;
516
+ if (!line.includes('"ai-title"') && !line.includes('"custom-title"')) continue;
516
517
  try {
517
518
  const rec = JSON.parse(line);
518
- if (rec.type === "ai-title" && rec.aiTitle) title = rec.aiTitle;
519
+ if (rec.type === "ai-title" && rec.aiTitle) aiTitle = rec.aiTitle;
520
+ if (rec.type === "custom-title" && rec.customTitle?.trim()) customTitle = rec.customTitle.trim();
519
521
  } catch {
520
522
  }
521
523
  }
522
- return title;
524
+ return customTitle ?? aiTitle;
523
525
  } catch {
524
526
  return void 0;
525
527
  }
@@ -555,7 +557,7 @@ async function enrichEvent(e) {
555
557
  }
556
558
  if (e.source === "claude-code" && e.transcriptPath && (e.type === "prompt" || e.type === "turn_end")) {
557
559
  tasks.push(
558
- aiTitleFromTranscript(e.transcriptPath).then((title) => {
560
+ titleFromTranscript(e.transcriptPath).then((title) => {
559
561
  if (title) extra.aiTitle = title;
560
562
  })
561
563
  );
@@ -20060,7 +20060,7 @@ function removeCloudLogin(home = bitlHome()) {
20060
20060
  rmSync(cloudKeyPath(home), { force: true });
20061
20061
  }
20062
20062
  function clientVersionHeader() {
20063
- const v = "0.1.8";
20063
+ const v = "0.1.10";
20064
20064
  return v ? { "x-bitl-client": v } : {};
20065
20065
  }
20066
20066
  function resolveTarget(home = bitlHome()) {
@@ -20117,7 +20117,7 @@ async function latestVersion(home, now) {
20117
20117
  return latest;
20118
20118
  }
20119
20119
  var updateCommand = (install = process.env.BITL_INSTALL) => install === "npx" ? "npx @usebitl/cli@latest start" : "npm i -g @usebitl/cli";
20120
- async function checkCliUpdate(current = "0.1.8", opts = {}) {
20120
+ async function checkCliUpdate(current = "0.1.10", opts = {}) {
20121
20121
  if (!current || process.env.BITL_NO_UPDATE_CHECK === "1") return void 0;
20122
20122
  const latest = await latestVersion(opts.home ?? bitlHome(), opts.now ?? Date.now());
20123
20123
  if (!latest || compareVersions(latest, current) <= 0) return void 0;
@@ -10,7 +10,7 @@ import {
10
10
  checkCliUpdate,
11
11
  parseWireRecord,
12
12
  sessionKey
13
- } from "./chunk-BCYTEJK4.mjs";
13
+ } from "./chunk-FQXPEVHB.mjs";
14
14
 
15
15
  // ../../../node_modules/.pnpm/bn.js@4.12.5/node_modules/bn.js/lib/bn.js
16
16
  var require_bn = __commonJS({
package/dist/cli.mjs CHANGED
@@ -21,7 +21,7 @@ import {
21
21
  unwrapMasterKey,
22
22
  verifyPublicKey,
23
23
  wrapMasterKey
24
- } from "./chunks/chunk-BCYTEJK4.mjs";
24
+ } from "./chunks/chunk-FQXPEVHB.mjs";
25
25
 
26
26
  // ../src/index.ts
27
27
  import { homedir as homedir2 } from "node:os";
@@ -451,7 +451,7 @@ async function logout() {
451
451
  }
452
452
 
453
453
  // ../src/update.ts
454
- async function updateNotice(current = "0.1.8") {
454
+ async function updateNotice(current = "0.1.10") {
455
455
  const u = await checkCliUpdate(current);
456
456
  return u && `${t("update.available", { ...u })}
457
457
  ${t("update.changelog")}`;
@@ -605,7 +605,7 @@ async function main(argv) {
605
605
  if (String(typeof warning === "string" ? warning : warning.message).startsWith("SQLite is an experimental feature")) return;
606
606
  emitWarning(warning, ...rest2);
607
607
  });
608
- const { startServer } = await import("./chunks/src-ATORVJMK.mjs");
608
+ const { startServer } = await import("./chunks/src-NKVNQ2RI.mjs");
609
609
  await startServer();
610
610
  console.log(t("start.pair", { url: localPairUrl() }));
611
611
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usebitl/cli",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "description": "BITL — see which of your AI coding agents (Claude Code, Codex, Antigravity) are waiting for you. Local board or usebitl.com",
5
5
  "type": "module",
6
6
  "bin": {