chatlab-cli 0.21.0 → 0.21.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/{chunk-3DIWXYMJ.mjs → chunk-4GI2UPCS.mjs} +2 -2
- package/dist/{chunk-EIRLEPXP.mjs → chunk-7HQWGLX6.mjs} +6 -1
- package/dist/{chunk-EIRLEPXP.mjs.map → chunk-7HQWGLX6.mjs.map} +1 -1
- package/dist/{chunk-EWCSGYVT.mjs → chunk-AIR7EAF4.mjs} +2 -2
- package/dist/{chunk-FBTHZU55.mjs → chunk-LI4X52E7.mjs} +190 -29
- package/dist/chunk-LI4X52E7.mjs.map +1 -0
- package/dist/{chunk-XUHPCRVT.mjs → chunk-OQVKZTVD.mjs} +2 -2
- package/dist/{chunk-NB4BIAYM.mjs → chunk-OZWXLRJL.mjs} +9 -9
- package/dist/cli.mjs +2 -2
- package/dist/{http-QVYJ5HER.mjs → http-DHQI4G5J.mjs} +6 -6
- package/dist/{import-AJKL6JPR.mjs → import-CQWGIMZQ.mjs} +4 -4
- package/dist/index.mjs +6 -6
- package/dist/{mcp-FRF3YAN5.mjs → mcp-7Q3FEI3Z.mjs} +3 -3
- package/dist/{src-KOIGBZJX.mjs → src-QBT5SYW5.mjs} +2 -2
- package/dist/{stream-import-URGOCXUH.mjs → stream-import-VG7RP6KJ.mjs} +3 -3
- package/dist-web/assets/{DebugToolsPanel-dUV6pVqD.css → DebugToolsPanel-CoBtqb--.css} +1 -1
- package/dist-web/assets/DebugToolsPanel.vue_vue_type_script_setup_true_lang-CpFGhsl5.js +147 -0
- package/dist-web/assets/{MessageExportModal-BAf68-wB.js → MessageExportModal-DTgxz1eQ.js} +1 -1
- package/dist-web/assets/electron-H65bUnhW.js +1 -0
- package/dist-web/assets/{fetch-Ayp337Ng.js → fetch-C2vUkdnA.js} +1 -1
- package/dist-web/assets/fetch-CTZXLLcn.js +1 -0
- package/dist-web/assets/index-B8867dX7.css +1 -0
- package/dist-web/assets/{index-CmU6x-uJ.css → index-BE64tUWq.css} +1 -1
- package/dist-web/assets/{index-Bd5r2oFG.js → index-C4B0hv6C.js} +3 -3
- package/dist-web/assets/index-CbQMfheg.css +1 -0
- package/dist-web/assets/index-DUXf21MT.js +173 -0
- package/dist-web/assets/index-DZiH2cC1.js +7 -0
- package/dist-web/assets/index-DeG0EHOT.js +24 -0
- package/dist-web/assets/index-DuhN8jAf.js +2 -0
- package/dist-web/assets/{web-C5yfcwjn.js → web-DImo6Kjz.js} +1 -1
- package/dist-web/index.html +2 -2
- package/package.json +1 -7
- package/dist/chunk-FBTHZU55.mjs.map +0 -1
- package/dist-web/assets/DebugToolsPanel.vue_vue_type_script_setup_true_lang-DFN1Co1H.js +0 -155
- package/dist-web/assets/electron-BHjOx6B6.js +0 -1
- package/dist-web/assets/fetch-BWtpQwBZ.js +0 -1
- package/dist-web/assets/index-BfZM-q0T.js +0 -7
- package/dist-web/assets/index-CLGv8Den.css +0 -1
- package/dist-web/assets/index-CLYHD_f4.js +0 -2
- package/dist-web/assets/index-CaTRpNBK.js +0 -16
- package/dist-web/assets/index-CzR1sElx.css +0 -1
- package/dist-web/assets/index-Ksa--o23.js +0 -173
- /package/dist/{chunk-3DIWXYMJ.mjs.map → chunk-4GI2UPCS.mjs.map} +0 -0
- /package/dist/{chunk-EWCSGYVT.mjs.map → chunk-AIR7EAF4.mjs.map} +0 -0
- /package/dist/{chunk-XUHPCRVT.mjs.map → chunk-OQVKZTVD.mjs.map} +0 -0
- /package/dist/{chunk-NB4BIAYM.mjs.map → chunk-OZWXLRJL.mjs.map} +0 -0
- /package/dist/{http-QVYJ5HER.mjs.map → http-DHQI4G5J.mjs.map} +0 -0
- /package/dist/{import-AJKL6JPR.mjs.map → import-CQWGIMZQ.mjs.map} +0 -0
- /package/dist/{mcp-FRF3YAN5.mjs.map → mcp-7Q3FEI3Z.mjs.map} +0 -0
- /package/dist/{src-KOIGBZJX.mjs.map → src-QBT5SYW5.mjs.map} +0 -0
- /package/dist/{stream-import-URGOCXUH.mjs.map → stream-import-VG7RP6KJ.mjs.map} +0 -0
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
generateMessageKey,
|
|
12
12
|
openBetterSqliteDatabase,
|
|
13
13
|
writeParseResultToDb
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-7HQWGLX6.mjs";
|
|
15
15
|
|
|
16
16
|
// src/import/chatlab-reader.ts
|
|
17
17
|
import * as fs from "fs";
|
|
@@ -392,4 +392,4 @@ export {
|
|
|
392
392
|
parseFile,
|
|
393
393
|
importData
|
|
394
394
|
};
|
|
395
|
-
//# sourceMappingURL=chunk-
|
|
395
|
+
//# sourceMappingURL=chunk-OQVKZTVD.mjs.map
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
loadConfig,
|
|
22
22
|
searchMessagesLike,
|
|
23
23
|
verifyCliDataPath
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-7HQWGLX6.mjs";
|
|
25
25
|
|
|
26
26
|
// src/cli.ts
|
|
27
27
|
import * as fs from "fs";
|
|
@@ -168,7 +168,7 @@ program.command("import <file>").description("Import a chat history file (14+ fo
|
|
|
168
168
|
console.error(`File not found: ${file}`);
|
|
169
169
|
process.exit(1);
|
|
170
170
|
}
|
|
171
|
-
const { streamImport, detectFormat } = await import("./import-
|
|
171
|
+
const { streamImport, detectFormat } = await import("./import-CQWGIMZQ.mjs");
|
|
172
172
|
const { dbManager } = initRuntime();
|
|
173
173
|
const nativeBinding = resolveNativeBinding();
|
|
174
174
|
const format = detectFormat(file);
|
|
@@ -210,7 +210,7 @@ Import error: ${err instanceof Error ? err.message : err}`);
|
|
|
210
210
|
}
|
|
211
211
|
});
|
|
212
212
|
program.command("formats").description("List all supported chat history formats").action(async () => {
|
|
213
|
-
const { getSupportedFormats } = await import("./import-
|
|
213
|
+
const { getSupportedFormats } = await import("./import-CQWGIMZQ.mjs");
|
|
214
214
|
const formats = getSupportedFormats();
|
|
215
215
|
console.log(`${formats.length} supported format(s):
|
|
216
216
|
`);
|
|
@@ -219,11 +219,11 @@ program.command("formats").description("List all supported chat history formats"
|
|
|
219
219
|
}
|
|
220
220
|
});
|
|
221
221
|
program.command("mcp").description("Start MCP Server (stdio transport, for ClaudeCode / Cursor / AI agents)").action(async () => {
|
|
222
|
-
const { startCliMcpServer } = await import("./mcp-
|
|
222
|
+
const { startCliMcpServer } = await import("./mcp-7Q3FEI3Z.mjs");
|
|
223
223
|
await startCliMcpServer();
|
|
224
224
|
});
|
|
225
225
|
program.command("serve").description("Start the HTTP API server").option("--port <port>", "Server port", String(DEFAULT_API_PORT)).option("--host <host>", "Listen address", "127.0.0.1").option("--token <token>", "Custom Bearer Token (reads from config or auto-generates if omitted)").option("--web [dir]", "Serve Web frontend static assets (defaults to dist-web/)").action(async (options) => {
|
|
226
|
-
const { startHttpServer } = await import("./http-
|
|
226
|
+
const { startHttpServer } = await import("./http-DHQI4G5J.mjs");
|
|
227
227
|
const port = parseInt(options.port, 10);
|
|
228
228
|
let webRoot;
|
|
229
229
|
if (options.web !== void 0) {
|
|
@@ -256,7 +256,7 @@ Press Ctrl+C to stop.
|
|
|
256
256
|
`);
|
|
257
257
|
const shutdown = async () => {
|
|
258
258
|
console.log("\nShutting down...");
|
|
259
|
-
const { stopHttpServer } = await import("./http-
|
|
259
|
+
const { stopHttpServer } = await import("./http-DHQI4G5J.mjs");
|
|
260
260
|
await stopHttpServer();
|
|
261
261
|
process.exit(0);
|
|
262
262
|
};
|
|
@@ -273,7 +273,7 @@ Press Ctrl+C to stop.
|
|
|
273
273
|
}
|
|
274
274
|
});
|
|
275
275
|
program.command("web").description("Launch Web UI with one click (HTTP API + browser auto-open)").option("--port <port>", "Server port", String(DEFAULT_API_PORT)).option("--host <host>", "Listen address", "127.0.0.1").option("--no-open", "Do not auto-open browser").action(async (options) => {
|
|
276
|
-
const { startHttpServer } = await import("./http-
|
|
276
|
+
const { startHttpServer } = await import("./http-DHQI4G5J.mjs");
|
|
277
277
|
const port = parseInt(options.port, 10);
|
|
278
278
|
const webDir = path.resolve(__dirname, "../dist-web");
|
|
279
279
|
let webRoot;
|
|
@@ -299,7 +299,7 @@ Press Ctrl+C to stop.`);
|
|
|
299
299
|
}
|
|
300
300
|
const shutdown = async () => {
|
|
301
301
|
console.log("\nShutting down...");
|
|
302
|
-
const { stopHttpServer } = await import("./http-
|
|
302
|
+
const { stopHttpServer } = await import("./http-DHQI4G5J.mjs");
|
|
303
303
|
await stopHttpServer();
|
|
304
304
|
process.exit(0);
|
|
305
305
|
};
|
|
@@ -408,4 +408,4 @@ if (isDirectRun) {
|
|
|
408
408
|
export {
|
|
409
409
|
run
|
|
410
410
|
};
|
|
411
|
-
//# sourceMappingURL=chunk-
|
|
411
|
+
//# sourceMappingURL=chunk-OZWXLRJL.mjs.map
|
package/dist/cli.mjs
CHANGED
|
@@ -6,9 +6,9 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __pathDirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
run
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OZWXLRJL.mjs";
|
|
10
10
|
import "./chunk-2AIOU3PW.mjs";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-7HQWGLX6.mjs";
|
|
12
12
|
export {
|
|
13
13
|
run
|
|
14
14
|
};
|
|
@@ -13,12 +13,12 @@ import {
|
|
|
13
13
|
registerWebRoutes,
|
|
14
14
|
startHttpServer,
|
|
15
15
|
stopHttpServer
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-LI4X52E7.mjs";
|
|
17
|
+
import "./chunk-OQVKZTVD.mjs";
|
|
18
|
+
import "./chunk-AIR7EAF4.mjs";
|
|
19
|
+
import "./chunk-4GI2UPCS.mjs";
|
|
20
20
|
import "./chunk-2AIOU3PW.mjs";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-7HQWGLX6.mjs";
|
|
22
22
|
export {
|
|
23
23
|
createServer,
|
|
24
24
|
registerAiRoutes,
|
|
@@ -29,4 +29,4 @@ export {
|
|
|
29
29
|
startHttpServer,
|
|
30
30
|
stopHttpServer
|
|
31
31
|
};
|
|
32
|
-
//# sourceMappingURL=http-
|
|
32
|
+
//# sourceMappingURL=http-DHQI4G5J.mjs.map
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
detectFormat as detectFormat2,
|
|
9
9
|
importData,
|
|
10
10
|
parseFile
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-OQVKZTVD.mjs";
|
|
12
12
|
import {
|
|
13
13
|
analyzeIncrementalImport,
|
|
14
14
|
analyzeNewImport,
|
|
15
15
|
incrementalImport,
|
|
16
16
|
streamImport
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-AIR7EAF4.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-7HQWGLX6.mjs";
|
|
26
26
|
export {
|
|
27
27
|
analyzeIncrementalImport,
|
|
28
28
|
analyzeNewImport,
|
|
@@ -38,4 +38,4 @@ export {
|
|
|
38
38
|
scanMultiChatFile,
|
|
39
39
|
streamImport
|
|
40
40
|
};
|
|
41
|
-
//# sourceMappingURL=import-
|
|
41
|
+
//# sourceMappingURL=import-CQWGIMZQ.mjs.map
|
package/dist/index.mjs
CHANGED
|
@@ -6,16 +6,16 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __pathDirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
run
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OZWXLRJL.mjs";
|
|
10
10
|
import {
|
|
11
11
|
startHttpServer,
|
|
12
12
|
stopHttpServer
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-LI4X52E7.mjs";
|
|
14
|
+
import "./chunk-OQVKZTVD.mjs";
|
|
15
|
+
import "./chunk-AIR7EAF4.mjs";
|
|
16
|
+
import "./chunk-4GI2UPCS.mjs";
|
|
17
17
|
import "./chunk-2AIOU3PW.mjs";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-7HQWGLX6.mjs";
|
|
19
19
|
export {
|
|
20
20
|
run,
|
|
21
21
|
startHttpServer,
|
|
@@ -7,7 +7,7 @@ const __dirname = __pathDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
CoreDataProvider,
|
|
9
9
|
MCP_TOOL_REGISTRY
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4GI2UPCS.mjs";
|
|
11
11
|
import {
|
|
12
12
|
getVersion
|
|
13
13
|
} from "./chunk-2AIOU3PW.mjs";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
hasPendingElectronDataWarning,
|
|
21
21
|
loadConfig,
|
|
22
22
|
verifyCliDataPath
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-7HQWGLX6.mjs";
|
|
24
24
|
|
|
25
25
|
// src/mcp.ts
|
|
26
26
|
import fs from "fs";
|
|
@@ -402,4 +402,4 @@ async function startCliMcpServer() {
|
|
|
402
402
|
export {
|
|
403
403
|
startCliMcpServer
|
|
404
404
|
};
|
|
405
|
-
//# sourceMappingURL=mcp-
|
|
405
|
+
//# sourceMappingURL=mcp-7Q3FEI3Z.mjs.map
|
|
@@ -169,7 +169,7 @@ import {
|
|
|
169
169
|
verifyCliDataPath,
|
|
170
170
|
wasElectronUsed,
|
|
171
171
|
writeParseResultToDb
|
|
172
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-7HQWGLX6.mjs";
|
|
173
173
|
export {
|
|
174
174
|
AIConversationManager,
|
|
175
175
|
AgentEventHandler,
|
|
@@ -336,4 +336,4 @@ export {
|
|
|
336
336
|
wasElectronUsed,
|
|
337
337
|
writeParseResultToDb
|
|
338
338
|
};
|
|
339
|
-
//# sourceMappingURL=src-
|
|
339
|
+
//# sourceMappingURL=src-QBT5SYW5.mjs.map
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
analyzeNewImport,
|
|
10
10
|
incrementalImport,
|
|
11
11
|
streamImport
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-AIR7EAF4.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-7HQWGLX6.mjs";
|
|
21
21
|
export {
|
|
22
22
|
analyzeIncrementalImport,
|
|
23
23
|
analyzeNewImport,
|
|
@@ -30,4 +30,4 @@ export {
|
|
|
30
30
|
scanMultiChatFile,
|
|
31
31
|
streamImport
|
|
32
32
|
};
|
|
33
|
-
//# sourceMappingURL=stream-import-
|
|
33
|
+
//# sourceMappingURL=stream-import-VG7RP6KJ.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.writing-vertical[data-v-19a25590]{writing-mode:vertical-rl;text-orientation:mixed}.data-flow-bg[data-v-19a25590]{background:repeating-linear-gradient(0deg,transparent,transparent 20px,currentColor 20px,currentColor 21px);animation:dataFlow-19a25590 20s linear infinite}@keyframes dataFlow-19a25590{0%{transform:translateY(0)}to{transform:translateY(-100px)}}.mention-menu-enter-active[data-v-0262c6da],.mention-menu-leave-active[data-v-0262c6da]{transition:opacity .16s ease,transform .16s ease}.mention-menu-enter-from[data-v-0262c6da],.mention-menu-leave-to[data-v-0262c6da]{transform:translateY(8px);opacity:0}.slash-menu-enter-active[data-v-0853b251],.slash-menu-leave-active[data-v-0853b251]{transition:opacity .16s ease,transform .16s ease}.slash-menu-enter-from[data-v-0853b251],.slash-menu-leave-to[data-v-0853b251]{transform:translateY(8px);opacity:0}.custom-scrollbar[data-v-4776dd3d]::-webkit-scrollbar{width:4px}.custom-scrollbar[data-v-4776dd3d]::-webkit-scrollbar-track{background:transparent}.custom-scrollbar[data-v-4776dd3d]::-webkit-scrollbar-thumb{border-radius:4px;background-color:#9ca3af4d}.dark .custom-scrollbar[data-v-4776dd3d]::-webkit-scrollbar-thumb{background-color:#9ca3af26}.slide-fade-enter-active[data-v-
|
|
1
|
+
.writing-vertical[data-v-19a25590]{writing-mode:vertical-rl;text-orientation:mixed}.data-flow-bg[data-v-19a25590]{background:repeating-linear-gradient(0deg,transparent,transparent 20px,currentColor 20px,currentColor 21px);animation:dataFlow-19a25590 20s linear infinite}@keyframes dataFlow-19a25590{0%{transform:translateY(0)}to{transform:translateY(-100px)}}.mention-menu-enter-active[data-v-0262c6da],.mention-menu-leave-active[data-v-0262c6da]{transition:opacity .16s ease,transform .16s ease}.mention-menu-enter-from[data-v-0262c6da],.mention-menu-leave-to[data-v-0262c6da]{transform:translateY(8px);opacity:0}.slash-menu-enter-active[data-v-0853b251],.slash-menu-leave-active[data-v-0853b251]{transition:opacity .16s ease,transform .16s ease}.slash-menu-enter-from[data-v-0853b251],.slash-menu-leave-to[data-v-0853b251]{transform:translateY(8px);opacity:0}.custom-scrollbar[data-v-4776dd3d]::-webkit-scrollbar{width:4px}.custom-scrollbar[data-v-4776dd3d]::-webkit-scrollbar-track{background:transparent}.custom-scrollbar[data-v-4776dd3d]::-webkit-scrollbar-thumb{border-radius:4px;background-color:#9ca3af4d}.dark .custom-scrollbar[data-v-4776dd3d]::-webkit-scrollbar-thumb{background-color:#9ca3af26}.slide-fade-enter-active[data-v-04240f9d],.slide-fade-leave-active[data-v-04240f9d]{transition:all .3s ease-out}.slide-fade-enter-from[data-v-04240f9d],.slide-fade-leave-to[data-v-04240f9d]{transform:translate(20px);opacity:0}.slide-up-enter-active[data-v-04240f9d],.slide-up-leave-active[data-v-04240f9d]{transition:all .3s ease-out}.slide-up-enter-from[data-v-04240f9d],.slide-up-leave-to[data-v-04240f9d]{transform:translateY(10px);opacity:0}.fade-up-enter-active[data-v-04240f9d],.fade-up-leave-active[data-v-04240f9d]{transition:opacity .2s ease-out}.fade-up-enter-from[data-v-04240f9d],.fade-up-leave-to[data-v-04240f9d]{opacity:0}.fade-enter-active[data-v-0df46b7b],.fade-leave-active[data-v-0df46b7b]{transition:opacity .15s ease}.fade-enter-from[data-v-0df46b7b],.fade-leave-to[data-v-0df46b7b]{opacity:0}.fade-enter-active[data-v-d712cb76],.fade-leave-active[data-v-d712cb76]{transition:opacity .15s ease}.fade-enter-from[data-v-d712cb76],.fade-leave-to[data-v-d712cb76]{opacity:0}.titlebar-drag-cover[data-v-b3d2cc85]{position:absolute;left:0;right:0;z-index:50;top:calc(-1 * var(--titlebar-area-height));height:calc(var(--titlebar-area-height) + 1rem);-webkit-app-region:drag}
|