chatlab-cli 0.26.2 → 0.26.3
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/{chat-command-BVIG2LCO.mjs → chat-command-D37MMEJ7.mjs} +4 -4
- package/dist/{chunk-6AOEMUCM.mjs → chunk-742TAKEP.mjs} +2 -2
- package/dist/{chunk-3XFHIQIW.mjs → chunk-D5MWER7N.mjs} +2 -2
- package/dist/{chunk-JFSTXSX2.mjs → chunk-GNGZHBKM.mjs} +3 -3
- package/dist/{chunk-GTXX72AQ.mjs → chunk-K5SGXTVJ.mjs} +13 -13
- package/dist/{chunk-GBQQJJKK.mjs → chunk-QMXNJRTT.mjs} +372 -173
- package/dist/chunk-QMXNJRTT.mjs.map +1 -0
- package/dist/{chunk-SCE4YL3M.mjs → chunk-RMITK4IC.mjs} +2 -2
- package/dist/{chunk-QKQRV7RV.mjs → chunk-VCN64OD6.mjs} +2 -2
- package/dist/{chunk-TMZC3SNX.mjs → chunk-YPTJVTVJ.mjs} +1037 -49
- package/dist/chunk-YPTJVTVJ.mjs.map +1 -0
- package/dist/cli.mjs +3 -3
- package/dist/{http-NLFLQDI7.mjs → http-6F6TYWCI.mjs} +8 -8
- package/dist/{import-ILK6MGYR.mjs → import-VYPOMSSA.mjs} +4 -4
- package/dist/index.mjs +8 -8
- package/dist/{mcp-FOLR5XJL.mjs → mcp-AR7L5FA3.mjs} +4 -4
- package/dist/{src-OQN3VE73.mjs → src-6S7JPKHX.mjs} +6 -2
- package/dist/{stream-import-F5QI2HTO.mjs → stream-import-KZFC3XT2.mjs} +3 -3
- package/dist/{update-checker-JIBA7T4U.mjs → update-checker-3N7HQEP2.mjs} +36 -12
- package/dist/update-checker-3N7HQEP2.mjs.map +1 -0
- package/dist-web/assets/{DebugToolsPanel-CrqULdXp.css → DebugToolsPanel-DzZmSzIU.css} +1 -1
- package/dist-web/assets/DebugToolsPanel.vue_vue_type_script_setup_true_lang-BTdqmm0y.js +107 -0
- package/dist-web/assets/{MessageExportModal-ttP_JPqO.js → MessageExportModal-CF6yaor7.js} +1 -1
- package/dist-web/assets/{electron-BeJHY587.js → electron-DKVw61Ww.js} +1 -1
- package/dist-web/assets/{fetch-H4B1CK_T.js → fetch-BC8jyJ_U.js} +1 -1
- package/dist-web/assets/{fetch-4s20GRbb.js → fetch-BMdgfBVS.js} +1 -1
- package/dist-web/assets/fetch-BQlEQsqi.js +5 -0
- package/dist-web/assets/{fetch-DtXUkazy.js → fetch-Bh6HC-IR.js} +1 -1
- package/dist-web/assets/{fetch-DBJ7Xkjt.js → fetch-BvVfWR-P.js} +1 -1
- package/dist-web/assets/{fetch-DW8r_JmP.js → fetch-CPeSfqsU.js} +1 -1
- package/dist-web/assets/fetch-CUw-PUYP.js +1 -0
- package/dist-web/assets/{fetch-B7USXx9R.js → fetch-CpYSD089.js} +1 -1
- package/dist-web/assets/{fetch-rtQEc8Bu.js → fetch-D2jNBqs8.js} +1 -1
- package/dist-web/assets/{fetch-BETFYYe1.js → fetch-DqEMAea3.js} +1 -1
- package/dist-web/assets/{index-Dov-rTKE.js → index-BHQnAj6l.js} +1 -1
- package/dist-web/assets/{index-CsxrXMkt.js → index-BwzuCu5R.js} +2 -2
- package/dist-web/assets/index-CG746E15.js +64 -0
- package/dist-web/assets/index-CXoQ_U22.js +173 -0
- package/dist-web/assets/index-DqybGdJH.css +1 -0
- package/dist-web/assets/{index-CjnMyejM.css → index-HgIuP1Td.css} +1 -1
- package/dist-web/assets/{index-CYMTvtEI.js → index-Qh0XLt3R.js} +1 -1
- package/dist-web/assets/{index-Dtm2oajn.css → index-R82N2_0b.css} +1 -1
- package/dist-web/assets/index-wPAmuQZY.js +11 -0
- package/dist-web/assets/{web-1-WNRDnP.js → web-Bx2TiHDk.js} +1 -1
- package/dist-web/favicon.ico +0 -0
- package/dist-web/index.html +3 -3
- package/package.json +1 -1
- package/dist/chunk-GBQQJJKK.mjs.map +0 -1
- package/dist/chunk-TMZC3SNX.mjs.map +0 -1
- package/dist/update-checker-JIBA7T4U.mjs.map +0 -1
- package/dist-web/assets/DebugToolsPanel.vue_vue_type_script_setup_true_lang-D9mCNaYM.js +0 -182
- package/dist-web/assets/electron-Dbml-SPN.js +0 -1
- package/dist-web/assets/fetch-DcEBAz_3.js +0 -1
- package/dist-web/assets/fetch-DsCNr_M0.js +0 -1
- package/dist-web/assets/index-C2ts-hTr.js +0 -173
- package/dist-web/assets/index-DkownpUj.js +0 -163
- package/dist-web/assets/index-LCedyGl2.css +0 -1
- package/dist-web/assets/index-m7v4PP7r.js +0 -11
- /package/dist/{chat-command-BVIG2LCO.mjs.map → chat-command-D37MMEJ7.mjs.map} +0 -0
- /package/dist/{chunk-6AOEMUCM.mjs.map → chunk-742TAKEP.mjs.map} +0 -0
- /package/dist/{chunk-3XFHIQIW.mjs.map → chunk-D5MWER7N.mjs.map} +0 -0
- /package/dist/{chunk-JFSTXSX2.mjs.map → chunk-GNGZHBKM.mjs.map} +0 -0
- /package/dist/{chunk-GTXX72AQ.mjs.map → chunk-K5SGXTVJ.mjs.map} +0 -0
- /package/dist/{chunk-SCE4YL3M.mjs.map → chunk-RMITK4IC.mjs.map} +0 -0
- /package/dist/{chunk-QKQRV7RV.mjs.map → chunk-VCN64OD6.mjs.map} +0 -0
- /package/dist/{http-NLFLQDI7.mjs.map → http-6F6TYWCI.mjs.map} +0 -0
- /package/dist/{import-ILK6MGYR.mjs.map → import-VYPOMSSA.mjs.map} +0 -0
- /package/dist/{mcp-FOLR5XJL.mjs.map → mcp-AR7L5FA3.mjs.map} +0 -0
- /package/dist/{src-OQN3VE73.mjs.map → src-6S7JPKHX.mjs.map} +0 -0
- /package/dist/{stream-import-F5QI2HTO.mjs.map → stream-import-KZFC3XT2.mjs.map} +0 -0
|
@@ -6,9 +6,9 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __pathDirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
createCliRunAgentStream
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-GNGZHBKM.mjs";
|
|
10
|
+
import "./chunk-RMITK4IC.mjs";
|
|
11
|
+
import "./chunk-YPTJVTVJ.mjs";
|
|
12
12
|
import "./chunk-VSOWNKPA.mjs";
|
|
13
13
|
|
|
14
14
|
// src/ai/chat-command.ts
|
|
@@ -301,4 +301,4 @@ export {
|
|
|
301
301
|
runChatCommand,
|
|
302
302
|
runChatTurn
|
|
303
303
|
};
|
|
304
|
-
//# sourceMappingURL=chat-command-
|
|
304
|
+
//# sourceMappingURL=chat-command-D37MMEJ7.mjs.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
DataDirCompatibilityError,
|
|
12
12
|
assertDataDirCompatible
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-YPTJVTVJ.mjs";
|
|
14
14
|
|
|
15
15
|
// src/runtime-compat.ts
|
|
16
16
|
function assertCliDataDirCompatible(pathProvider, kind, options) {
|
|
@@ -37,4 +37,4 @@ function formatCliDataDirCompatibilityError(error, runtime) {
|
|
|
37
37
|
export {
|
|
38
38
|
assertCliDataDirCompatible
|
|
39
39
|
};
|
|
40
|
-
//# sourceMappingURL=chunk-
|
|
40
|
+
//# sourceMappingURL=chunk-742TAKEP.mjs.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
buildMemberIdMap,
|
|
11
11
|
generateMessageKey,
|
|
12
12
|
writeParseResultToDb
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-YPTJVTVJ.mjs";
|
|
14
14
|
|
|
15
15
|
// src/import/chatlab-reader.ts
|
|
16
16
|
import * as fs from "fs";
|
|
@@ -384,4 +384,4 @@ export {
|
|
|
384
384
|
parseFile,
|
|
385
385
|
importData
|
|
386
386
|
};
|
|
387
|
-
//# sourceMappingURL=chunk-
|
|
387
|
+
//# sourceMappingURL=chunk-D5MWER7N.mjs.map
|
|
@@ -7,7 +7,7 @@ const __dirname = __pathDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
AGENT_TOOL_REGISTRY,
|
|
9
9
|
CoreDataProvider
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RMITK4IC.mjs";
|
|
11
11
|
import {
|
|
12
12
|
AgentEventHandler,
|
|
13
13
|
AiLogger,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
runAgentCore,
|
|
45
45
|
shouldUseChartCapabilityForMessage,
|
|
46
46
|
wrapWithChartSchemaGate
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-YPTJVTVJ.mjs";
|
|
48
48
|
|
|
49
49
|
// src/ai/logger.ts
|
|
50
50
|
var logger = null;
|
|
@@ -547,4 +547,4 @@ export {
|
|
|
547
547
|
closeServerAiLogger,
|
|
548
548
|
createCliRunAgentStream
|
|
549
549
|
};
|
|
550
|
-
//# sourceMappingURL=chunk-
|
|
550
|
+
//# sourceMappingURL=chunk-GNGZHBKM.mjs.map
|
|
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __pathDirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
assertCliDataDirCompatible
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-742TAKEP.mjs";
|
|
10
10
|
import {
|
|
11
11
|
getVersion
|
|
12
12
|
} from "./chunk-5ADKYYNA.mjs";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
loadConfig,
|
|
30
30
|
searchMessagesLike,
|
|
31
31
|
verifyCliDataPath
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-YPTJVTVJ.mjs";
|
|
33
33
|
|
|
34
34
|
// src/cli.ts
|
|
35
35
|
import * as fs from "fs";
|
|
@@ -69,11 +69,11 @@ var program = new Command();
|
|
|
69
69
|
program.name("chatlab").description("ChatLab - Chat history analysis tool").version(getVersion(), "-v, --version");
|
|
70
70
|
program.hook("preAction", async (_thisCommand, actionCommand) => {
|
|
71
71
|
if (actionCommand.name() === "update") return;
|
|
72
|
-
const { checkForUpdatesInteractive } = await import("./update-checker-
|
|
72
|
+
const { checkForUpdatesInteractive } = await import("./update-checker-3N7HQEP2.mjs");
|
|
73
73
|
await checkForUpdatesInteractive();
|
|
74
74
|
});
|
|
75
75
|
program.command("update").description("Update ChatLab CLI to the latest version").action(async () => {
|
|
76
|
-
const { performCliSelfUpdate } = await import("./update-checker-
|
|
76
|
+
const { performCliSelfUpdate } = await import("./update-checker-3N7HQEP2.mjs");
|
|
77
77
|
const result = await performCliSelfUpdate({
|
|
78
78
|
write: (text) => process.stderr.write(text)
|
|
79
79
|
});
|
|
@@ -223,7 +223,7 @@ program.command("import <file>").description("Import a chat history file (14+ fo
|
|
|
223
223
|
console.error(`File not found: ${file}`);
|
|
224
224
|
process.exit(1);
|
|
225
225
|
}
|
|
226
|
-
const { streamImport, detectFormat } = await import("./import-
|
|
226
|
+
const { streamImport, detectFormat } = await import("./import-VYPOMSSA.mjs");
|
|
227
227
|
const { dbManager, pathProvider } = initRuntime();
|
|
228
228
|
const nativeBinding = resolveNativeBinding();
|
|
229
229
|
const format = detectFormat(file);
|
|
@@ -251,7 +251,7 @@ Import succeeded!`);
|
|
|
251
251
|
console.log(` Messages skipped: ${result.diagnostics?.messagesSkipped ?? 0}`);
|
|
252
252
|
if (result.sessionId) {
|
|
253
253
|
try {
|
|
254
|
-
const { PreferencesManager, createDatabaseManagerAdapter, ownerProfileService } = await import("./src-
|
|
254
|
+
const { PreferencesManager, createDatabaseManagerAdapter, ownerProfileService } = await import("./src-6S7JPKHX.mjs");
|
|
255
255
|
const applied = ownerProfileService.tryApplyOwnerProfile(
|
|
256
256
|
createDatabaseManagerAdapter(dbManager),
|
|
257
257
|
new PreferencesManager(pathProvider.getSystemDir()),
|
|
@@ -280,7 +280,7 @@ Import error: ${err instanceof Error ? err.message : err}`);
|
|
|
280
280
|
}
|
|
281
281
|
});
|
|
282
282
|
program.command("formats").description("List all supported chat history formats").action(async () => {
|
|
283
|
-
const { getSupportedFormats } = await import("./import-
|
|
283
|
+
const { getSupportedFormats } = await import("./import-VYPOMSSA.mjs");
|
|
284
284
|
const formats = getSupportedFormats();
|
|
285
285
|
console.log(`${formats.length} supported format(s):
|
|
286
286
|
`);
|
|
@@ -289,11 +289,11 @@ program.command("formats").description("List all supported chat history formats"
|
|
|
289
289
|
}
|
|
290
290
|
});
|
|
291
291
|
program.command("mcp").description("Start MCP Server (stdio transport, for ClaudeCode / Cursor / AI agents)").action(async () => {
|
|
292
|
-
const { startCliMcpServer } = await import("./mcp-
|
|
292
|
+
const { startCliMcpServer } = await import("./mcp-AR7L5FA3.mjs");
|
|
293
293
|
await startCliMcpServer();
|
|
294
294
|
});
|
|
295
295
|
program.command("chat").description("Ask ChatLab AI about an imported chat session").option("--session-id <id>", "Source chat session ID").option("--ai-chat-id <id>", "Existing AI chat ID to continue").option("-q, --question <text>", "Question to ask").option("--json", "Output structured JSON").option("--include-events", "Include all agent stream chunks in JSON output").option("--no-stream", "Disable streaming output").option("--locale <locale>", "AI response locale", "zh-CN").action(async (options) => {
|
|
296
|
-
const { runChatCommand } = await import("./chat-command-
|
|
296
|
+
const { runChatCommand } = await import("./chat-command-D37MMEJ7.mjs");
|
|
297
297
|
const { dbManager, pathProvider } = initRuntime();
|
|
298
298
|
const aiChatManager = new AIChatManager(pathProvider.getAiDataDir(), { nativeBinding: resolveNativeBinding() });
|
|
299
299
|
try {
|
|
@@ -329,7 +329,7 @@ program.command("start").description("Start ChatLab (HTTP API + Web UI)").option
|
|
|
329
329
|
});
|
|
330
330
|
return;
|
|
331
331
|
}
|
|
332
|
-
const { startHttpServer } = await import("./http-
|
|
332
|
+
const { startHttpServer } = await import("./http-6F6TYWCI.mjs");
|
|
333
333
|
const port = parseInt(options.port, 10);
|
|
334
334
|
let webRoot;
|
|
335
335
|
if (!options.headless) {
|
|
@@ -352,7 +352,7 @@ program.command("start").description("Start ChatLab (HTTP API + Web UI)").option
|
|
|
352
352
|
webRoot,
|
|
353
353
|
requireAuth: options.requireAuth || void 0
|
|
354
354
|
});
|
|
355
|
-
const { startPeriodicUpdateCheck } = await import("./update-checker-
|
|
355
|
+
const { startPeriodicUpdateCheck } = await import("./update-checker-3N7HQEP2.mjs");
|
|
356
356
|
startPeriodicUpdateCheck();
|
|
357
357
|
const displayHost = info.host === "0.0.0.0" ? "127.0.0.1" : info.host;
|
|
358
358
|
const url = `http://${displayHost}:${info.port}`;
|
|
@@ -376,7 +376,7 @@ Press Ctrl+C to stop.
|
|
|
376
376
|
}
|
|
377
377
|
const shutdown = async () => {
|
|
378
378
|
console.log("\nShutting down...");
|
|
379
|
-
const { stopHttpServer } = await import("./http-
|
|
379
|
+
const { stopHttpServer } = await import("./http-6F6TYWCI.mjs");
|
|
380
380
|
await stopHttpServer();
|
|
381
381
|
process.exit(0);
|
|
382
382
|
};
|
|
@@ -520,4 +520,4 @@ if (isDirectRun) {
|
|
|
520
520
|
export {
|
|
521
521
|
run
|
|
522
522
|
};
|
|
523
|
-
//# sourceMappingURL=chunk-
|
|
523
|
+
//# sourceMappingURL=chunk-K5SGXTVJ.mjs.map
|