@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.
- package/adapters/dist/core.mjs +9 -7
- package/dist/chunks/{chunk-BCYTEJK4.mjs → chunk-FQXPEVHB.mjs} +2 -2
- package/dist/chunks/{src-ATORVJMK.mjs → src-NKVNQ2RI.mjs} +1 -1
- package/dist/cli.mjs +3 -3
- package/package.json +1 -1
- package/web/assets/{index-DNxAghVd.js → index-BqtWjy33.js} +2 -2
- package/web/assets/index-P_OV048r.css +2 -0
- package/web/index.html +2 -2
- package/web/manifest.webmanifest +17 -17
- package/web/sw.js +1 -1
- package/web/assets/index-CLf7fqy0.css +0 -2
package/adapters/dist/core.mjs
CHANGED
|
@@ -467,7 +467,7 @@ function readCloudConfig(home = bitlHome()) {
|
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
469
|
function clientVersionHeader() {
|
|
470
|
-
const v = "0.1.
|
|
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
|
|
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
|
|
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)
|
|
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
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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;
|
package/dist/cli.mjs
CHANGED
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
unwrapMasterKey,
|
|
22
22
|
verifyPublicKey,
|
|
23
23
|
wrapMasterKey
|
|
24
|
-
} from "./chunks/chunk-
|
|
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.
|
|
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-
|
|
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