chatlab-cli 0.26.0 → 0.26.1
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-ZP4WJVWC.mjs → chat-command-T3Z4O4M5.mjs} +4 -4
- package/dist/{chunk-WXC6RZCX.mjs → chunk-3APSMVOM.mjs} +2 -2
- package/dist/{chunk-ILGSSXOG.mjs → chunk-6O2SW5GL.mjs} +5 -4
- package/dist/chunk-6O2SW5GL.mjs.map +1 -0
- package/dist/{chunk-SJIOPSMM.mjs → chunk-AZZYKUBR.mjs} +17 -39
- package/dist/chunk-AZZYKUBR.mjs.map +1 -0
- package/dist/{chunk-IRZRIHIT.mjs → chunk-FACKH2BR.mjs} +2 -2
- package/dist/{chunk-TC74HESZ.mjs → chunk-FAOZNMPK.mjs} +2 -2
- package/dist/{chunk-QY67NN65.mjs → chunk-GUGKY2GV.mjs} +329 -250
- package/dist/chunk-GUGKY2GV.mjs.map +1 -0
- package/dist/{chunk-UB4XBM4R.mjs → chunk-MZG2GLJR.mjs} +2 -2
- package/dist/{chunk-6G7AIF7I.mjs → chunk-SC77N66X.mjs} +9 -9
- package/dist/cli.mjs +3 -3
- package/dist/{http-J3IOFFIA.mjs → http-6LQUOYQ6.mjs} +8 -8
- package/dist/{import-POYG5LOX.mjs → import-B2MAIBAK.mjs} +4 -4
- package/dist/index.mjs +8 -8
- package/dist/{mcp-7HH7UMXT.mjs → mcp-ZMMYW46I.mjs} +4 -4
- package/dist/{stream-import-O3H3FGV2.mjs → stream-import-FHFBCEDV.mjs} +3 -3
- package/dist-web/assets/DebugToolsPanel.vue_vue_type_script_setup_true_lang-CgtTQTfN.js +182 -0
- package/dist-web/assets/MessageExportModal-B8DKeSAH.js +1 -0
- package/dist-web/assets/{electron-B3DFm1cC.js → electron-C-aMus7e.js} +1 -1
- package/dist-web/assets/{electron-BMM4Nfty.js → electron-dBbXcMDB.js} +1 -1
- package/dist-web/assets/{fetch-BGfaAqO9.js → fetch-B-LdQP9s.js} +1 -1
- package/dist-web/assets/{fetch-BaJDB31c.js → fetch-B26JuD67.js} +1 -1
- package/dist-web/assets/{fetch-BjDJgdN0.js → fetch-BLKibnXa.js} +1 -1
- package/dist-web/assets/{fetch-BFtuJaa1.js → fetch-BNNqdS2B.js} +1 -1
- package/dist-web/assets/fetch-BSJY7tRo.js +1 -0
- package/dist-web/assets/{fetch-C5CLcpQW.js → fetch-CV8jezsM.js} +1 -1
- package/dist-web/assets/{fetch-DQZvdHnG.js → fetch-CvnJ4Jgf.js} +1 -1
- package/dist-web/assets/{fetch-ArMjdMcy.js → fetch-DP3yNfJM.js} +1 -1
- package/dist-web/assets/{fetch-SYrb-sZe.js → fetch-phbrO2bY.js} +1 -1
- package/dist-web/assets/{fetch-Dhfbt1BQ.js → fetch-xB6cl_1L.js} +1 -1
- package/dist-web/assets/index-8Zcs8peI.css +1 -0
- package/dist-web/assets/index-B_lOzUD8.js +2 -0
- package/dist-web/assets/index-BvWcJc3c.js +173 -0
- package/dist-web/assets/{index-D7_ch4zf.js → index-CSDI5pAA.js} +2 -2
- package/dist-web/assets/{index-CGNgUIT-.css → index-CX2FucK5.css} +1 -1
- package/dist-web/assets/{index-DK9LEEzT.js → index-DJQFNVUJ.js} +1 -1
- package/dist-web/assets/index-DZ6Szt_y.js +163 -0
- package/dist-web/assets/index-DhpclWeF.js +11 -0
- package/dist-web/assets/index-Dhql4DJr.css +1 -0
- package/dist-web/assets/{web-zEXsvoZW.js → web-DUQU-v8U.js} +1 -1
- package/dist-web/index.html +2 -2
- package/package.json +1 -1
- package/dist/chunk-ILGSSXOG.mjs.map +0 -1
- package/dist/chunk-QY67NN65.mjs.map +0 -1
- package/dist/chunk-SJIOPSMM.mjs.map +0 -1
- package/dist-web/assets/DebugToolsPanel.vue_vue_type_script_setup_true_lang-BTJxEma5.js +0 -182
- package/dist-web/assets/MessageExportModal-C7NgEL8T.js +0 -1
- package/dist-web/assets/fetch-DnEP0uyF.js +0 -1
- package/dist-web/assets/index-C3A_Rjh-.css +0 -1
- package/dist-web/assets/index-CWfkrx37.js +0 -173
- package/dist-web/assets/index-D3N4NDFx.css +0 -1
- package/dist-web/assets/index-DqDa_on9.js +0 -9
- package/dist-web/assets/index-DrN1G9bl.js +0 -2
- package/dist-web/assets/index-MdYeovYo.js +0 -163
- /package/dist/{chat-command-ZP4WJVWC.mjs.map → chat-command-T3Z4O4M5.mjs.map} +0 -0
- /package/dist/{chunk-WXC6RZCX.mjs.map → chunk-3APSMVOM.mjs.map} +0 -0
- /package/dist/{chunk-IRZRIHIT.mjs.map → chunk-FACKH2BR.mjs.map} +0 -0
- /package/dist/{chunk-TC74HESZ.mjs.map → chunk-FAOZNMPK.mjs.map} +0 -0
- /package/dist/{chunk-UB4XBM4R.mjs.map → chunk-MZG2GLJR.mjs.map} +0 -0
- /package/dist/{chunk-6G7AIF7I.mjs.map → chunk-SC77N66X.mjs.map} +0 -0
- /package/dist/{http-J3IOFFIA.mjs.map → http-6LQUOYQ6.mjs.map} +0 -0
- /package/dist/{import-POYG5LOX.mjs.map → import-B2MAIBAK.mjs.map} +0 -0
- /package/dist/{mcp-7HH7UMXT.mjs.map → mcp-ZMMYW46I.mjs.map} +0 -0
- /package/dist/{stream-import-O3H3FGV2.mjs.map → stream-import-FHFBCEDV.mjs.map} +0 -0
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
DataDirCompatibilityError,
|
|
12
12
|
assertDataDirCompatible
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-GUGKY2GV.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-MZG2GLJR.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-MZG2GLJR.mjs";
|
|
10
10
|
import {
|
|
11
11
|
getVersion
|
|
12
12
|
} from "./chunk-5ADKYYNA.mjs";
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
loadConfig,
|
|
27
27
|
searchMessagesLike,
|
|
28
28
|
verifyCliDataPath
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-GUGKY2GV.mjs";
|
|
30
30
|
import {
|
|
31
31
|
resolveCliPath
|
|
32
32
|
} from "./chunk-FJ35V3TE.mjs";
|
|
@@ -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-B2MAIBAK.mjs");
|
|
227
227
|
const { dbManager } = initRuntime();
|
|
228
228
|
const nativeBinding = resolveNativeBinding();
|
|
229
229
|
const format = detectFormat(file);
|
|
@@ -265,7 +265,7 @@ Import error: ${err instanceof Error ? err.message : err}`);
|
|
|
265
265
|
}
|
|
266
266
|
});
|
|
267
267
|
program.command("formats").description("List all supported chat history formats").action(async () => {
|
|
268
|
-
const { getSupportedFormats } = await import("./import-
|
|
268
|
+
const { getSupportedFormats } = await import("./import-B2MAIBAK.mjs");
|
|
269
269
|
const formats = getSupportedFormats();
|
|
270
270
|
console.log(`${formats.length} supported format(s):
|
|
271
271
|
`);
|
|
@@ -274,11 +274,11 @@ program.command("formats").description("List all supported chat history formats"
|
|
|
274
274
|
}
|
|
275
275
|
});
|
|
276
276
|
program.command("mcp").description("Start MCP Server (stdio transport, for ClaudeCode / Cursor / AI agents)").action(async () => {
|
|
277
|
-
const { startCliMcpServer } = await import("./mcp-
|
|
277
|
+
const { startCliMcpServer } = await import("./mcp-ZMMYW46I.mjs");
|
|
278
278
|
await startCliMcpServer();
|
|
279
279
|
});
|
|
280
280
|
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) => {
|
|
281
|
-
const { runChatCommand } = await import("./chat-command-
|
|
281
|
+
const { runChatCommand } = await import("./chat-command-T3Z4O4M5.mjs");
|
|
282
282
|
const { dbManager, pathProvider } = initRuntime();
|
|
283
283
|
const aiChatManager = new AIChatManager(pathProvider.getAiDataDir(), { nativeBinding: resolveNativeBinding() });
|
|
284
284
|
try {
|
|
@@ -314,7 +314,7 @@ program.command("start").description("Start ChatLab (HTTP API + Web UI)").option
|
|
|
314
314
|
});
|
|
315
315
|
return;
|
|
316
316
|
}
|
|
317
|
-
const { startHttpServer } = await import("./http-
|
|
317
|
+
const { startHttpServer } = await import("./http-6LQUOYQ6.mjs");
|
|
318
318
|
const port = parseInt(options.port, 10);
|
|
319
319
|
let webRoot;
|
|
320
320
|
if (!options.headless) {
|
|
@@ -361,7 +361,7 @@ Press Ctrl+C to stop.
|
|
|
361
361
|
}
|
|
362
362
|
const shutdown = async () => {
|
|
363
363
|
console.log("\nShutting down...");
|
|
364
|
-
const { stopHttpServer } = await import("./http-
|
|
364
|
+
const { stopHttpServer } = await import("./http-6LQUOYQ6.mjs");
|
|
365
365
|
await stopHttpServer();
|
|
366
366
|
process.exit(0);
|
|
367
367
|
};
|
|
@@ -505,4 +505,4 @@ if (isDirectRun) {
|
|
|
505
505
|
export {
|
|
506
506
|
run
|
|
507
507
|
};
|
|
508
|
-
//# sourceMappingURL=chunk-
|
|
508
|
+
//# sourceMappingURL=chunk-SC77N66X.mjs.map
|
package/dist/cli.mjs
CHANGED
|
@@ -6,10 +6,10 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __pathDirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
run
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-SC77N66X.mjs";
|
|
10
|
+
import "./chunk-MZG2GLJR.mjs";
|
|
11
11
|
import "./chunk-5ADKYYNA.mjs";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-GUGKY2GV.mjs";
|
|
13
13
|
import "./chunk-FJ35V3TE.mjs";
|
|
14
14
|
import "./chunk-VSOWNKPA.mjs";
|
|
15
15
|
export {
|
|
@@ -9,14 +9,14 @@ import {
|
|
|
9
9
|
registerWebRoutes,
|
|
10
10
|
startHttpServer,
|
|
11
11
|
stopHttpServer
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-AZZYKUBR.mjs";
|
|
13
|
+
import "./chunk-3APSMVOM.mjs";
|
|
14
|
+
import "./chunk-FAOZNMPK.mjs";
|
|
15
|
+
import "./chunk-MZG2GLJR.mjs";
|
|
16
16
|
import "./chunk-5ADKYYNA.mjs";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-6O2SW5GL.mjs";
|
|
18
|
+
import "./chunk-FACKH2BR.mjs";
|
|
19
|
+
import "./chunk-GUGKY2GV.mjs";
|
|
20
20
|
import "./chunk-FJ35V3TE.mjs";
|
|
21
21
|
import "./chunk-VSOWNKPA.mjs";
|
|
22
22
|
export {
|
|
@@ -25,4 +25,4 @@ export {
|
|
|
25
25
|
startHttpServer,
|
|
26
26
|
stopHttpServer
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=http-
|
|
28
|
+
//# sourceMappingURL=http-6LQUOYQ6.mjs.map
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
detectFormat as detectFormat2,
|
|
9
9
|
importData,
|
|
10
10
|
parseFile
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-3APSMVOM.mjs";
|
|
12
12
|
import {
|
|
13
13
|
analyzeIncrementalImport,
|
|
14
14
|
analyzeNewImport,
|
|
15
15
|
incrementalImport,
|
|
16
16
|
streamImport
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-FAOZNMPK.mjs";
|
|
18
18
|
import {
|
|
19
19
|
detectAllFormats,
|
|
20
20
|
detectFormat,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
getFormatFeatureById,
|
|
23
23
|
getSupportedFormats,
|
|
24
24
|
scanMultiChatFile
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-GUGKY2GV.mjs";
|
|
26
26
|
import "./chunk-VSOWNKPA.mjs";
|
|
27
27
|
export {
|
|
28
28
|
analyzeIncrementalImport,
|
|
@@ -39,4 +39,4 @@ export {
|
|
|
39
39
|
scanMultiChatFile,
|
|
40
40
|
streamImport
|
|
41
41
|
};
|
|
42
|
-
//# sourceMappingURL=import-
|
|
42
|
+
//# sourceMappingURL=import-B2MAIBAK.mjs.map
|
package/dist/index.mjs
CHANGED
|
@@ -7,17 +7,17 @@ const __dirname = __pathDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
startHttpServer,
|
|
9
9
|
stopHttpServer
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-AZZYKUBR.mjs";
|
|
11
11
|
import {
|
|
12
12
|
run
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-SC77N66X.mjs";
|
|
14
|
+
import "./chunk-3APSMVOM.mjs";
|
|
15
|
+
import "./chunk-FAOZNMPK.mjs";
|
|
16
|
+
import "./chunk-MZG2GLJR.mjs";
|
|
17
17
|
import "./chunk-5ADKYYNA.mjs";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-6O2SW5GL.mjs";
|
|
19
|
+
import "./chunk-FACKH2BR.mjs";
|
|
20
|
+
import "./chunk-GUGKY2GV.mjs";
|
|
21
21
|
import "./chunk-FJ35V3TE.mjs";
|
|
22
22
|
import "./chunk-VSOWNKPA.mjs";
|
|
23
23
|
export {
|
|
@@ -6,14 +6,14 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __pathDirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
assertCliDataDirCompatible
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MZG2GLJR.mjs";
|
|
10
10
|
import {
|
|
11
11
|
getVersion
|
|
12
12
|
} from "./chunk-5ADKYYNA.mjs";
|
|
13
13
|
import {
|
|
14
14
|
CoreDataProvider,
|
|
15
15
|
MCP_TOOL_REGISTRY
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-FACKH2BR.mjs";
|
|
17
17
|
import {
|
|
18
18
|
DatabaseManager,
|
|
19
19
|
NodePathProvider,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
hasPendingElectronDataWarning,
|
|
24
24
|
loadConfig,
|
|
25
25
|
verifyCliDataPath
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-GUGKY2GV.mjs";
|
|
27
27
|
import {
|
|
28
28
|
resolveCliPath
|
|
29
29
|
} from "./chunk-FJ35V3TE.mjs";
|
|
@@ -410,4 +410,4 @@ export {
|
|
|
410
410
|
initMcpRuntime,
|
|
411
411
|
startCliMcpServer
|
|
412
412
|
};
|
|
413
|
-
//# sourceMappingURL=mcp-
|
|
413
|
+
//# sourceMappingURL=mcp-ZMMYW46I.mjs.map
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
analyzeNewImport,
|
|
10
10
|
incrementalImport,
|
|
11
11
|
streamImport
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-FAOZNMPK.mjs";
|
|
13
13
|
import {
|
|
14
14
|
detectAllFormats,
|
|
15
15
|
detectFormat,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
getFormatFeatureById,
|
|
18
18
|
getSupportedFormats,
|
|
19
19
|
scanMultiChatFile
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-GUGKY2GV.mjs";
|
|
21
21
|
import "./chunk-VSOWNKPA.mjs";
|
|
22
22
|
export {
|
|
23
23
|
analyzeIncrementalImport,
|
|
@@ -31,4 +31,4 @@ export {
|
|
|
31
31
|
scanMultiChatFile,
|
|
32
32
|
streamImport
|
|
33
33
|
};
|
|
34
|
-
//# sourceMappingURL=stream-import-
|
|
34
|
+
//# sourceMappingURL=stream-import-FHFBCEDV.mjs.map
|