chatlab-cli 0.25.1 → 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-5XMRLXZM.mjs → chat-command-T3Z4O4M5.mjs} +144 -6
- package/dist/chat-command-T3Z4O4M5.mjs.map +1 -0
- package/dist/{chunk-CUCDRAY6.mjs → chunk-3APSMVOM.mjs} +2 -2
- package/dist/{chunk-WYHGWTA4.mjs → chunk-6O2SW5GL.mjs} +94 -29
- package/dist/chunk-6O2SW5GL.mjs.map +1 -0
- package/dist/{chunk-GTCTDD2Z.mjs → chunk-AZZYKUBR.mjs} +17 -39
- package/dist/chunk-AZZYKUBR.mjs.map +1 -0
- package/dist/{chunk-JE3FOFF7.mjs → chunk-FACKH2BR.mjs} +49 -12
- package/dist/chunk-FACKH2BR.mjs.map +1 -0
- package/dist/{chunk-PDQFSQO6.mjs → chunk-FAOZNMPK.mjs} +2 -2
- package/dist/{chunk-7VG6QGQ2.mjs → chunk-GUGKY2GV.mjs} +1169 -328
- package/dist/chunk-GUGKY2GV.mjs.map +1 -0
- package/dist/{chunk-FDK6SPCG.mjs → chunk-MZG2GLJR.mjs} +2 -2
- package/dist/{chunk-YZYP5ST6.mjs → chunk-SC77N66X.mjs} +12 -11
- package/dist/chunk-SC77N66X.mjs.map +1 -0
- package/dist/cli.mjs +3 -3
- package/dist/{http-C3CGXUBU.mjs → http-6LQUOYQ6.mjs} +8 -8
- package/dist/{import-VS7L5JDX.mjs → import-B2MAIBAK.mjs} +4 -4
- package/dist/index.mjs +8 -8
- package/dist/{mcp-6VXDPUQK.mjs → mcp-ZMMYW46I.mjs} +4 -4
- package/dist/{stream-import-TFDBNVIW.mjs → stream-import-FHFBCEDV.mjs} +3 -3
- package/dist-web/assets/{DebugToolsPanel-vn-bnUxn.css → DebugToolsPanel-CrqULdXp.css} +1 -1
- package/dist-web/assets/DebugToolsPanel.vue_vue_type_script_setup_true_lang-CgtTQTfN.js +182 -0
- package/dist-web/assets/{EChartWordcloud-CzhfrEF_.js → EChartWordcloud-B_YisOW5.js} +1 -1
- package/dist-web/assets/MessageExportModal-B8DKeSAH.js +1 -0
- package/dist-web/assets/{electron-DRkrjeIl.js → electron-C-aMus7e.js} +1 -1
- package/dist-web/assets/electron-dBbXcMDB.js +1 -0
- package/dist-web/assets/{fetch-CDamdvtb.js → fetch-B-LdQP9s.js} +1 -1
- package/dist-web/assets/{fetch-Drk9dLaF.js → fetch-B26JuD67.js} +1 -1
- package/dist-web/assets/{fetch-BmZIm6mS.js → fetch-BLKibnXa.js} +1 -1
- package/dist-web/assets/{fetch-BqLy63aj.js → fetch-BNNqdS2B.js} +1 -1
- package/dist-web/assets/fetch-BSJY7tRo.js +1 -0
- package/dist-web/assets/{fetch-DWg-2kOp.js → fetch-CV8jezsM.js} +1 -1
- package/dist-web/assets/{fetch-ph2_d79v.js → fetch-CvnJ4Jgf.js} +1 -1
- package/dist-web/assets/{fetch-DfgdagMN.js → fetch-DP3yNfJM.js} +1 -1
- package/dist-web/assets/{fetch-Bvcxe5PI.js → fetch-phbrO2bY.js} +1 -1
- package/dist-web/assets/{fetch-Y-_WsCuk.js → fetch-xB6cl_1L.js} +3 -3
- 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-DMWf5On7.js → index-CSDI5pAA.js} +2 -2
- package/dist-web/assets/{index-CGNgUIT-.css → index-CX2FucK5.css} +1 -1
- package/dist-web/assets/{index-9urfJP1r.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/{vendor-nuxt-ui-C_8CsH6e.js → vendor-nuxt-ui-Zy8txNdC.js} +1 -1
- package/dist-web/assets/{vendor-reka-ui-CIMXwvEp.js → vendor-reka-ui-mMvma1EP.js} +1 -1
- package/dist-web/assets/{web-XJV6Vj5t.js → web-DUQU-v8U.js} +1 -1
- package/dist-web/index.html +4 -4
- package/package.json +1 -1
- package/dist/chat-command-5XMRLXZM.mjs.map +0 -1
- package/dist/chunk-7VG6QGQ2.mjs.map +0 -1
- package/dist/chunk-GTCTDD2Z.mjs.map +0 -1
- package/dist/chunk-JE3FOFF7.mjs.map +0 -1
- package/dist/chunk-WYHGWTA4.mjs.map +0 -1
- package/dist/chunk-YZYP5ST6.mjs.map +0 -1
- package/dist-web/assets/DebugToolsPanel.vue_vue_type_script_setup_true_lang-B1xZmp9r.js +0 -161
- package/dist-web/assets/MessageExportModal-B79pPBL9.js +0 -1
- package/dist-web/assets/electron-Dv8jdn_2.js +0 -1
- package/dist-web/assets/fetch-BstX-wd4.js +0 -1
- package/dist-web/assets/index-C3A_Rjh-.css +0 -1
- package/dist-web/assets/index-CfKjh0Jr.js +0 -9
- package/dist-web/assets/index-CprJOAB1.css +0 -1
- package/dist-web/assets/index-D_hHm7bQ.js +0 -2
- package/dist-web/assets/index-MCdpiX_O.js +0 -173
- package/dist-web/assets/index-deYDOVUa.js +0 -163
- /package/dist/{chunk-CUCDRAY6.mjs.map → chunk-3APSMVOM.mjs.map} +0 -0
- /package/dist/{chunk-PDQFSQO6.mjs.map → chunk-FAOZNMPK.mjs.map} +0 -0
- /package/dist/{chunk-FDK6SPCG.mjs.map → chunk-MZG2GLJR.mjs.map} +0 -0
- /package/dist/{http-C3CGXUBU.mjs.map → http-6LQUOYQ6.mjs.map} +0 -0
- /package/dist/{import-VS7L5JDX.mjs.map → import-B2MAIBAK.mjs.map} +0 -0
- /package/dist/{mcp-6VXDPUQK.mjs.map → mcp-ZMMYW46I.mjs.map} +0 -0
- /package/dist/{stream-import-TFDBNVIW.mjs.map → stream-import-FHFBCEDV.mjs.map} +0 -0
|
@@ -7,16 +7,16 @@ const __dirname = __pathDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
importData,
|
|
9
9
|
parseFile
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3APSMVOM.mjs";
|
|
11
11
|
import {
|
|
12
12
|
analyzeIncrementalImport,
|
|
13
13
|
analyzeNewImport,
|
|
14
14
|
incrementalImport,
|
|
15
15
|
streamImport
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-FAOZNMPK.mjs";
|
|
17
17
|
import {
|
|
18
18
|
assertCliDataDirCompatible
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-MZG2GLJR.mjs";
|
|
20
20
|
import {
|
|
21
21
|
getVersion
|
|
22
22
|
} from "./chunk-5ADKYYNA.mjs";
|
|
@@ -24,11 +24,11 @@ import {
|
|
|
24
24
|
closeServerAiLogger,
|
|
25
25
|
createCliRunAgentStream,
|
|
26
26
|
initServerAiLogger
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-6O2SW5GL.mjs";
|
|
28
28
|
import {
|
|
29
29
|
AGENT_TOOL_REGISTRY,
|
|
30
30
|
CoreDataProvider
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-FACKH2BR.mjs";
|
|
32
32
|
import {
|
|
33
33
|
AIChatManager,
|
|
34
34
|
ALL_MIGRATIONS,
|
|
@@ -67,7 +67,6 @@ import {
|
|
|
67
67
|
exportSessionToJson,
|
|
68
68
|
export_service_exports,
|
|
69
69
|
fetchRemoteModels,
|
|
70
|
-
filterMessagesWithContext,
|
|
71
70
|
findEntryFileInDirectory,
|
|
72
71
|
getAvailableYears,
|
|
73
72
|
getBuiltinModelsByProvider,
|
|
@@ -88,7 +87,6 @@ import {
|
|
|
88
87
|
getMessageLengthDistribution,
|
|
89
88
|
getMessageTypeStats,
|
|
90
89
|
getMonthlyActivity,
|
|
91
|
-
getMultipleSessionsMessages,
|
|
92
90
|
getPendingNodeDataDirMigration,
|
|
93
91
|
getRelationshipStats,
|
|
94
92
|
getSchemaDetailed,
|
|
@@ -121,7 +119,7 @@ import {
|
|
|
121
119
|
verifyCliDataPath,
|
|
122
120
|
writeAuthProfile,
|
|
123
121
|
writeConfigField
|
|
124
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-GUGKY2GV.mjs";
|
|
125
123
|
import {
|
|
126
124
|
resolveCliPath
|
|
127
125
|
} from "./chunk-FJ35V3TE.mjs";
|
|
@@ -780,26 +778,23 @@ function registerSessionIndexRoutes(server2, ctx) {
|
|
|
780
778
|
// ../../packages/http-routes/src/routes/web/export.ts
|
|
781
779
|
function registerExportRoutes(server2, ctx) {
|
|
782
780
|
const { sessionAdapter: adapter } = ctx;
|
|
783
|
-
server2.post("/_web/sessions/:id/export
|
|
781
|
+
server2.post("/_web/sessions/:id/export", async (request, reply) => {
|
|
784
782
|
const { id } = request.params;
|
|
785
783
|
const body = request.body;
|
|
786
784
|
const sessionName = body?.sessionName || id;
|
|
787
|
-
const
|
|
785
|
+
const format = body?.format || "txt";
|
|
786
|
+
const result = export_service_exports.exportFormatted(adapter, {
|
|
788
787
|
sessionId: id,
|
|
789
788
|
sessionName,
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
timeFilter: body.timeFilter,
|
|
793
|
-
senderIds: body.senderIds,
|
|
794
|
-
contextSize: body.contextSize,
|
|
795
|
-
segmentIds: body.segmentIds
|
|
789
|
+
format,
|
|
790
|
+
timeFilter: body.timeFilter
|
|
796
791
|
});
|
|
797
792
|
if (!result.success) {
|
|
798
|
-
return reply.code(500).send({ error: result.error });
|
|
793
|
+
return reply.code(result.totalMessages === 0 ? 404 : 500).send({ error: result.error });
|
|
799
794
|
}
|
|
800
|
-
reply.header("Content-Type",
|
|
801
|
-
reply.header("Content-Disposition", `attachment; filename="${encodeURIComponent(
|
|
802
|
-
return reply.send(content);
|
|
795
|
+
reply.header("Content-Type", result.mimeType);
|
|
796
|
+
reply.header("Content-Disposition", `attachment; filename="${encodeURIComponent(result.filename)}"`);
|
|
797
|
+
return reply.send(result.content);
|
|
803
798
|
});
|
|
804
799
|
}
|
|
805
800
|
|
|
@@ -1165,22 +1160,6 @@ data: ${JSON.stringify(data)}
|
|
|
1165
1160
|
});
|
|
1166
1161
|
}
|
|
1167
1162
|
|
|
1168
|
-
// ../../packages/http-routes/src/routes/web/ai-filter.ts
|
|
1169
|
-
function registerAiFilterRoutes(server2, ctx) {
|
|
1170
|
-
server2.post("/_web/ai/filter-messages", async (request, reply) => {
|
|
1171
|
-
const { sessionId, keywords, timeFilter, senderIds, contextSize, page, pageSize } = request.body;
|
|
1172
|
-
const db = ctx.dbManager.open(sessionId);
|
|
1173
|
-
if (!db) return reply.code(404).send({ error: `Session not found: ${sessionId}` });
|
|
1174
|
-
return filterMessagesWithContext(db, { keywords, timeFilter, senderIds, contextSize, page, pageSize });
|
|
1175
|
-
});
|
|
1176
|
-
server2.post("/_web/ai/multiple-sessions-messages", async (request, reply) => {
|
|
1177
|
-
const { sessionId, segmentIds, page, pageSize } = request.body;
|
|
1178
|
-
const db = ctx.dbManager.open(sessionId);
|
|
1179
|
-
if (!db) return reply.code(404).send({ error: `Session not found: ${sessionId}` });
|
|
1180
|
-
return getMultipleSessionsMessages(db, segmentIds, page, pageSize);
|
|
1181
|
-
});
|
|
1182
|
-
}
|
|
1183
|
-
|
|
1184
1163
|
// ../../packages/http-routes/src/routes/web/ai-tools.ts
|
|
1185
1164
|
var MAX_RESULT_CHARS = 5e5;
|
|
1186
1165
|
var activeToolTests = /* @__PURE__ */ new Map();
|
|
@@ -1862,7 +1841,6 @@ function registerSharedRoutes(server2, ctx, options) {
|
|
|
1862
1841
|
registerAiLlmRoutes(server2, ctx);
|
|
1863
1842
|
registerAiLlmStreamRoutes(server2, ctx);
|
|
1864
1843
|
registerAiAgentStreamRoutes(server2, ctx);
|
|
1865
|
-
registerAiFilterRoutes(server2, ctx);
|
|
1866
1844
|
registerAiToolRoutes(server2, ctx);
|
|
1867
1845
|
registerAiChatRoutes(server2, ctx);
|
|
1868
1846
|
registerAiSummaryRoutes(server2, ctx);
|
|
@@ -2340,7 +2318,7 @@ function registerWebRoutes(server2, dbManager2, options) {
|
|
|
2340
2318
|
const resolvedPathProvider = options?.pathProvider ?? fallbackPathProvider;
|
|
2341
2319
|
const ai = options?.aiContext;
|
|
2342
2320
|
const cliStreamImport = async (dm, filePath) => {
|
|
2343
|
-
const { streamImport: streamImport2 } = await import("./stream-import-
|
|
2321
|
+
const { streamImport: streamImport2 } = await import("./stream-import-FHFBCEDV.mjs");
|
|
2344
2322
|
const result = await streamImport2(dm, filePath);
|
|
2345
2323
|
if (!result.sessionId) throw new Error("Import succeeded but no sessionId returned");
|
|
2346
2324
|
return { sessionId: result.sessionId };
|
|
@@ -3505,4 +3483,4 @@ export {
|
|
|
3505
3483
|
startHttpServer,
|
|
3506
3484
|
stopHttpServer
|
|
3507
3485
|
};
|
|
3508
|
-
//# sourceMappingURL=chunk-
|
|
3486
|
+
//# sourceMappingURL=chunk-AZZYKUBR.mjs.map
|