chatlab-cli 0.26.1 → 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.
Files changed (76) hide show
  1. package/dist/{chat-command-T3Z4O4M5.mjs → chat-command-D37MMEJ7.mjs} +4 -4
  2. package/dist/{chunk-MZG2GLJR.mjs → chunk-742TAKEP.mjs} +2 -2
  3. package/dist/{chunk-3APSMVOM.mjs → chunk-D5MWER7N.mjs} +2 -2
  4. package/dist/{chunk-6O2SW5GL.mjs → chunk-GNGZHBKM.mjs} +3 -3
  5. package/dist/{chunk-SC77N66X.mjs → chunk-K5SGXTVJ.mjs} +31 -16
  6. package/dist/chunk-K5SGXTVJ.mjs.map +1 -0
  7. package/dist/{chunk-AZZYKUBR.mjs → chunk-QMXNJRTT.mjs} +448 -209
  8. package/dist/chunk-QMXNJRTT.mjs.map +1 -0
  9. package/dist/{chunk-FACKH2BR.mjs → chunk-RMITK4IC.mjs} +8 -4
  10. package/dist/chunk-RMITK4IC.mjs.map +1 -0
  11. package/dist/{chunk-FAOZNMPK.mjs → chunk-VCN64OD6.mjs} +2 -2
  12. package/dist/{chunk-GUGKY2GV.mjs → chunk-YPTJVTVJ.mjs} +9213 -6374
  13. package/dist/chunk-YPTJVTVJ.mjs.map +1 -0
  14. package/dist/cli.mjs +3 -3
  15. package/dist/{http-6LQUOYQ6.mjs → http-6F6TYWCI.mjs} +8 -8
  16. package/dist/{import-B2MAIBAK.mjs → import-VYPOMSSA.mjs} +4 -4
  17. package/dist/index.mjs +8 -8
  18. package/dist/{mcp-ZMMYW46I.mjs → mcp-AR7L5FA3.mjs} +7 -7
  19. package/dist/src-6S7JPKHX.mjs +443 -0
  20. package/dist/{stream-import-FHFBCEDV.mjs → stream-import-KZFC3XT2.mjs} +3 -3
  21. package/dist/stream-import-KZFC3XT2.mjs.map +1 -0
  22. package/dist/{update-checker-JIBA7T4U.mjs → update-checker-3N7HQEP2.mjs} +36 -12
  23. package/dist/update-checker-3N7HQEP2.mjs.map +1 -0
  24. package/dist-web/assets/{DebugToolsPanel-CrqULdXp.css → DebugToolsPanel-DzZmSzIU.css} +1 -1
  25. package/dist-web/assets/DebugToolsPanel.vue_vue_type_script_setup_true_lang-BTdqmm0y.js +107 -0
  26. package/dist-web/assets/{MessageExportModal-B8DKeSAH.js → MessageExportModal-CF6yaor7.js} +1 -1
  27. package/dist-web/assets/{electron-C-aMus7e.js → electron-DKVw61Ww.js} +1 -1
  28. package/dist-web/assets/{fetch-xB6cl_1L.js → fetch-BC8jyJ_U.js} +1 -1
  29. package/dist-web/assets/{fetch-B26JuD67.js → fetch-BMdgfBVS.js} +1 -1
  30. package/dist-web/assets/fetch-BQlEQsqi.js +5 -0
  31. package/dist-web/assets/{fetch-CvnJ4Jgf.js → fetch-Bh6HC-IR.js} +1 -1
  32. package/dist-web/assets/{fetch-phbrO2bY.js → fetch-BvVfWR-P.js} +1 -1
  33. package/dist-web/assets/{fetch-BLKibnXa.js → fetch-CPeSfqsU.js} +1 -1
  34. package/dist-web/assets/fetch-CUw-PUYP.js +1 -0
  35. package/dist-web/assets/{fetch-CV8jezsM.js → fetch-CpYSD089.js} +1 -1
  36. package/dist-web/assets/{fetch-DP3yNfJM.js → fetch-D2jNBqs8.js} +1 -1
  37. package/dist-web/assets/{fetch-BSJY7tRo.js → fetch-DqEMAea3.js} +1 -1
  38. package/dist-web/assets/{index-DJQFNVUJ.js → index-BHQnAj6l.js} +1 -1
  39. package/dist-web/assets/index-BwzuCu5R.js +2 -0
  40. package/dist-web/assets/index-CG746E15.js +64 -0
  41. package/dist-web/assets/index-CXoQ_U22.js +173 -0
  42. package/dist-web/assets/index-DqybGdJH.css +1 -0
  43. package/dist-web/assets/index-HgIuP1Td.css +1 -0
  44. package/dist-web/assets/index-Qh0XLt3R.js +24 -0
  45. package/dist-web/assets/index-R82N2_0b.css +1 -0
  46. package/dist-web/assets/index-wPAmuQZY.js +11 -0
  47. package/dist-web/assets/{web-DUQU-v8U.js → web-Bx2TiHDk.js} +1 -1
  48. package/dist-web/favicon.ico +0 -0
  49. package/dist-web/index.html +3 -3
  50. package/package.json +1 -1
  51. package/dist/chunk-AZZYKUBR.mjs.map +0 -1
  52. package/dist/chunk-FACKH2BR.mjs.map +0 -1
  53. package/dist/chunk-GUGKY2GV.mjs.map +0 -1
  54. package/dist/chunk-SC77N66X.mjs.map +0 -1
  55. package/dist/update-checker-JIBA7T4U.mjs.map +0 -1
  56. package/dist-web/assets/DebugToolsPanel.vue_vue_type_script_setup_true_lang-CgtTQTfN.js +0 -182
  57. package/dist-web/assets/electron-dBbXcMDB.js +0 -1
  58. package/dist-web/assets/fetch-B-LdQP9s.js +0 -1
  59. package/dist-web/assets/fetch-BNNqdS2B.js +0 -1
  60. package/dist-web/assets/index-8Zcs8peI.css +0 -1
  61. package/dist-web/assets/index-B_lOzUD8.js +0 -2
  62. package/dist-web/assets/index-BvWcJc3c.js +0 -173
  63. package/dist-web/assets/index-CSDI5pAA.js +0 -24
  64. package/dist-web/assets/index-CX2FucK5.css +0 -1
  65. package/dist-web/assets/index-DZ6Szt_y.js +0 -163
  66. package/dist-web/assets/index-DhpclWeF.js +0 -11
  67. package/dist-web/assets/index-Dhql4DJr.css +0 -1
  68. /package/dist/{chat-command-T3Z4O4M5.mjs.map → chat-command-D37MMEJ7.mjs.map} +0 -0
  69. /package/dist/{chunk-MZG2GLJR.mjs.map → chunk-742TAKEP.mjs.map} +0 -0
  70. /package/dist/{chunk-3APSMVOM.mjs.map → chunk-D5MWER7N.mjs.map} +0 -0
  71. /package/dist/{chunk-6O2SW5GL.mjs.map → chunk-GNGZHBKM.mjs.map} +0 -0
  72. /package/dist/{chunk-FAOZNMPK.mjs.map → chunk-VCN64OD6.mjs.map} +0 -0
  73. /package/dist/{http-6LQUOYQ6.mjs.map → http-6F6TYWCI.mjs.map} +0 -0
  74. /package/dist/{import-B2MAIBAK.mjs.map → import-VYPOMSSA.mjs.map} +0 -0
  75. /package/dist/{mcp-ZMMYW46I.mjs.map → mcp-AR7L5FA3.mjs.map} +0 -0
  76. /package/dist/{stream-import-FHFBCEDV.mjs.map → src-6S7JPKHX.mjs.map} +0 -0
package/dist/cli.mjs CHANGED
@@ -6,11 +6,11 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __pathDirname(__filename);
7
7
  import {
8
8
  run
9
- } from "./chunk-SC77N66X.mjs";
10
- import "./chunk-MZG2GLJR.mjs";
9
+ } from "./chunk-K5SGXTVJ.mjs";
10
+ import "./chunk-742TAKEP.mjs";
11
11
  import "./chunk-5ADKYYNA.mjs";
12
- import "./chunk-GUGKY2GV.mjs";
13
12
  import "./chunk-FJ35V3TE.mjs";
13
+ import "./chunk-YPTJVTVJ.mjs";
14
14
  import "./chunk-VSOWNKPA.mjs";
15
15
  export {
16
16
  run
@@ -9,15 +9,15 @@ import {
9
9
  registerWebRoutes,
10
10
  startHttpServer,
11
11
  stopHttpServer
12
- } from "./chunk-AZZYKUBR.mjs";
13
- import "./chunk-3APSMVOM.mjs";
14
- import "./chunk-FAOZNMPK.mjs";
15
- import "./chunk-MZG2GLJR.mjs";
12
+ } from "./chunk-QMXNJRTT.mjs";
13
+ import "./chunk-D5MWER7N.mjs";
14
+ import "./chunk-VCN64OD6.mjs";
15
+ import "./chunk-742TAKEP.mjs";
16
16
  import "./chunk-5ADKYYNA.mjs";
17
- import "./chunk-6O2SW5GL.mjs";
18
- import "./chunk-FACKH2BR.mjs";
19
- import "./chunk-GUGKY2GV.mjs";
20
17
  import "./chunk-FJ35V3TE.mjs";
18
+ import "./chunk-GNGZHBKM.mjs";
19
+ import "./chunk-RMITK4IC.mjs";
20
+ import "./chunk-YPTJVTVJ.mjs";
21
21
  import "./chunk-VSOWNKPA.mjs";
22
22
  export {
23
23
  createServer,
@@ -25,4 +25,4 @@ export {
25
25
  startHttpServer,
26
26
  stopHttpServer
27
27
  };
28
- //# sourceMappingURL=http-6LQUOYQ6.mjs.map
28
+ //# sourceMappingURL=http-6F6TYWCI.mjs.map
@@ -8,13 +8,13 @@ import {
8
8
  detectFormat as detectFormat2,
9
9
  importData,
10
10
  parseFile
11
- } from "./chunk-3APSMVOM.mjs";
11
+ } from "./chunk-D5MWER7N.mjs";
12
12
  import {
13
13
  analyzeIncrementalImport,
14
14
  analyzeNewImport,
15
15
  incrementalImport,
16
16
  streamImport
17
- } from "./chunk-FAOZNMPK.mjs";
17
+ } from "./chunk-VCN64OD6.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-GUGKY2GV.mjs";
25
+ } from "./chunk-YPTJVTVJ.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-B2MAIBAK.mjs.map
42
+ //# sourceMappingURL=import-VYPOMSSA.mjs.map
package/dist/index.mjs CHANGED
@@ -7,18 +7,18 @@ const __dirname = __pathDirname(__filename);
7
7
  import {
8
8
  startHttpServer,
9
9
  stopHttpServer
10
- } from "./chunk-AZZYKUBR.mjs";
10
+ } from "./chunk-QMXNJRTT.mjs";
11
11
  import {
12
12
  run
13
- } from "./chunk-SC77N66X.mjs";
14
- import "./chunk-3APSMVOM.mjs";
15
- import "./chunk-FAOZNMPK.mjs";
16
- import "./chunk-MZG2GLJR.mjs";
13
+ } from "./chunk-K5SGXTVJ.mjs";
14
+ import "./chunk-D5MWER7N.mjs";
15
+ import "./chunk-VCN64OD6.mjs";
16
+ import "./chunk-742TAKEP.mjs";
17
17
  import "./chunk-5ADKYYNA.mjs";
18
- import "./chunk-6O2SW5GL.mjs";
19
- import "./chunk-FACKH2BR.mjs";
20
- import "./chunk-GUGKY2GV.mjs";
21
18
  import "./chunk-FJ35V3TE.mjs";
19
+ import "./chunk-GNGZHBKM.mjs";
20
+ import "./chunk-RMITK4IC.mjs";
21
+ import "./chunk-YPTJVTVJ.mjs";
22
22
  import "./chunk-VSOWNKPA.mjs";
23
23
  export {
24
24
  run,
@@ -6,14 +6,17 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __pathDirname(__filename);
7
7
  import {
8
8
  assertCliDataDirCompatible
9
- } from "./chunk-MZG2GLJR.mjs";
9
+ } from "./chunk-742TAKEP.mjs";
10
10
  import {
11
11
  getVersion
12
12
  } from "./chunk-5ADKYYNA.mjs";
13
+ import {
14
+ resolveCliPath
15
+ } from "./chunk-FJ35V3TE.mjs";
13
16
  import {
14
17
  CoreDataProvider,
15
18
  MCP_TOOL_REGISTRY
16
- } from "./chunk-FACKH2BR.mjs";
19
+ } from "./chunk-RMITK4IC.mjs";
17
20
  import {
18
21
  DatabaseManager,
19
22
  NodePathProvider,
@@ -23,10 +26,7 @@ import {
23
26
  hasPendingElectronDataWarning,
24
27
  loadConfig,
25
28
  verifyCliDataPath
26
- } from "./chunk-GUGKY2GV.mjs";
27
- import {
28
- resolveCliPath
29
- } from "./chunk-FJ35V3TE.mjs";
29
+ } from "./chunk-YPTJVTVJ.mjs";
30
30
  import "./chunk-VSOWNKPA.mjs";
31
31
 
32
32
  // src/mcp.ts
@@ -410,4 +410,4 @@ export {
410
410
  initMcpRuntime,
411
411
  startCliMcpServer
412
412
  };
413
- //# sourceMappingURL=mcp-ZMMYW46I.mjs.map
413
+ //# sourceMappingURL=mcp-AR7L5FA3.mjs.map
@@ -0,0 +1,443 @@
1
+ import { createRequire as __createRequire } from 'module';
2
+ import { dirname as __pathDirname } from 'path';
3
+ import { fileURLToPath as __fileURLToPath } from 'url';
4
+ const require = __createRequire(import.meta.url);
5
+ const __filename = __fileURLToPath(import.meta.url);
6
+ const __dirname = __pathDirname(__filename);
7
+ import {
8
+ AIChatManager,
9
+ AgentEventHandler,
10
+ AiLogger,
11
+ AssistantManager,
12
+ BUILTIN_DESENSITIZE_RULES,
13
+ BetterSqliteAdapter,
14
+ CACHE_KEY_MEMBERS,
15
+ CACHE_KEY_OVERVIEW,
16
+ CHART_CAPABILITY_ANALYSIS_TOOLS,
17
+ CHART_CAPABILITY_CORE_TOOLS,
18
+ CHART_CAPABILITY_SKILL_ID,
19
+ CHART_SCHEMA_REQUIRED_MESSAGE,
20
+ CustomModelStore,
21
+ CustomProviderStore,
22
+ DEFAULT_EMBEDDING_CONFIG_STORE,
23
+ DEFAULT_MAX_TOOL_ROUNDS,
24
+ DEFAULT_RAG_CONFIG,
25
+ DESENSITIZE_RULES_SCHEMA_VERSION,
26
+ DataDirCompatibilityError,
27
+ DatabaseManager,
28
+ LLMConfigStore,
29
+ LogLevel,
30
+ MAX_CONFIG_COUNT,
31
+ MAX_EMBEDDING_CONFIG_COUNT,
32
+ MemoryVectorStore,
33
+ MergeSessionCache,
34
+ NodePathProvider,
35
+ PreferencesManager,
36
+ SQLiteVectorStore,
37
+ SkillManager,
38
+ SkillManagerCore,
39
+ TEMP_DB_SCHEMA,
40
+ TempDbReader,
41
+ TempDbWriter,
42
+ Type,
43
+ addEmbeddingConfig,
44
+ aiLocales,
45
+ analyzeIncrementalImport,
46
+ analyzeNewImport,
47
+ anonymizeMessageNames,
48
+ applyDesensitizeRuleOverrides,
49
+ applyPendingNodeDataDirMigration,
50
+ applyPendingNodeDataDirMigrationIfNeeded,
51
+ applyPreprocessingPipeline,
52
+ assertDataDirCompatible,
53
+ batchSegmentWithFrequency,
54
+ buildFtsIndex,
55
+ buildMergedOutput,
56
+ buildPiModel,
57
+ buildPlanGuidance,
58
+ buildSkillMenuWithBuiltinChart,
59
+ buildSystemPrompt,
60
+ checkAndCompress,
61
+ checkConflictsFromSources,
62
+ checkSessionsCanGenerateSummary,
63
+ cleanupTempDatabases,
64
+ clearJiebaInstance,
65
+ clearPendingNodeDataDirMigration,
66
+ collectPosTagStats,
67
+ completeSimple,
68
+ computeAndSetMembersCache,
69
+ computeAndSetOverviewCache,
70
+ computeWordFrequency,
71
+ copyDirMerge,
72
+ cosineSimilarity,
73
+ countMessagesTokens,
74
+ countTokens,
75
+ createActivateSkillTool,
76
+ createAiTranslate,
77
+ createAnalysisPlanner,
78
+ createChartSchemaGateState,
79
+ createCompressionLlmAdapter,
80
+ createDataSnapshotFromOverview,
81
+ createDatabaseManagerAdapter,
82
+ createFtsTable,
83
+ createJiebaNlpProvider,
84
+ createLlmRouteDecider,
85
+ createNodeDataDirSwitch,
86
+ createPendingDataDirMigration,
87
+ createPlanContentBlock,
88
+ decideRequestRoute,
89
+ deleteDict,
90
+ deleteEmbeddingConfig,
91
+ deleteSessionCache,
92
+ deleteTempDatabase,
93
+ downloadDict,
94
+ ensureDefaultDict,
95
+ estimateTokensFromText,
96
+ executeSemanticPipeline,
97
+ exportFilterResultToMarkdown,
98
+ exportSessionToJson,
99
+ exportWithFormat,
100
+ export_service_exports,
101
+ extractErrorInfo,
102
+ extractErrorStack,
103
+ extractSkillId,
104
+ fetchRemoteModels,
105
+ filterValidMessages,
106
+ formatAIError,
107
+ formatMessageCompact,
108
+ formatSessionChunk,
109
+ formatTimeRange,
110
+ formatToolResultAsText,
111
+ generateSessionSummaries,
112
+ generateSessionSummary,
113
+ getActiveEmbeddingConfig,
114
+ getActiveEmbeddingConfigId,
115
+ getAllEmbeddingConfigs,
116
+ getAllowedBuiltinToolsForChartAutoSkill,
117
+ getCache,
118
+ getCachePath,
119
+ getChartCapabilityAllowedBuiltinTools,
120
+ getChartCapabilitySkill,
121
+ getChartPlannerCapabilityForMessage,
122
+ getChatDbMigrations,
123
+ getCurrentLogFile,
124
+ getDbFileVersion,
125
+ getDefaultNodeUserDataDir,
126
+ getDefaultRulesForLocale,
127
+ getDictList,
128
+ getEmbeddingConfigById,
129
+ getEmbeddingService,
130
+ getErrorCount,
131
+ getJieba,
132
+ getNlpDir,
133
+ getOrComputeAnalysisCache,
134
+ getPendingNodeDataDirMigration,
135
+ getPosTagDefinitions,
136
+ getRuleGroupsForLocale,
137
+ getSessionChunk,
138
+ getSessionChunks,
139
+ getSkillConfigWithBuiltinChart,
140
+ getValidatedOverviewCache,
141
+ getVectorStore,
142
+ getVectorStoreDir,
143
+ getVectorStoreStats,
144
+ hasFtsTable,
145
+ hasPendingElectronDataWarning,
146
+ i18nTexts,
147
+ incrementalImport,
148
+ initNlpDir,
149
+ initPerfLog,
150
+ initRag,
151
+ initRagConfig,
152
+ initTokenizer,
153
+ insertFtsEntries,
154
+ invalidateCache,
155
+ isChineseLocale,
156
+ isDictDownloaded,
157
+ isDirectoryEmptyOrMissing,
158
+ isEmbeddingEnabled,
159
+ isExistingUserDataDir,
160
+ isUserDataDirSafeToUse,
161
+ isValidMessage,
162
+ loadDictBuffer,
163
+ loadEmbeddingConfigStore,
164
+ loadRAGConfig,
165
+ logError,
166
+ logInfo,
167
+ logPerf,
168
+ logPerfDetail,
169
+ logSummary,
170
+ manualCompress,
171
+ member_service_exports,
172
+ mergeRulesForLocale,
173
+ migrateFromElectronIfNeeded,
174
+ normalizeAnthropicBaseUrl,
175
+ normalizeOpenAICompatibleBaseUrl,
176
+ openBetterSqliteDatabase,
177
+ owner_profile_service_exports,
178
+ parseAssistantFile,
179
+ parseSkillFile,
180
+ preprocessMessages,
181
+ raiseChatDbCompatibilityGate,
182
+ raiseDataDirMinRuntimeVersion,
183
+ readDataDirCompatibilityMeta,
184
+ rebuildFtsIndex,
185
+ resetEmbeddingService,
186
+ resetPerfLog,
187
+ resetRAGConfig,
188
+ resetVectorStore,
189
+ resolveChartRuntimeForRequest,
190
+ runAgentCore,
191
+ runPendingDataDirMigration,
192
+ runSimpleLlmStream,
193
+ saveEmbeddingConfigStore,
194
+ saveRAGConfig,
195
+ searchByFts,
196
+ segment,
197
+ segmentText,
198
+ serializeAssistant,
199
+ serializeChatLabToJsonl,
200
+ session_index_service_exports,
201
+ session_service_exports,
202
+ setActiveEmbeddingConfig,
203
+ setCache,
204
+ shouldOfferChartCapabilityForAnalyticalMessage,
205
+ shouldUseChartCapabilityForMessage,
206
+ splitIntoSegments,
207
+ streamParseFileInfo,
208
+ streamSimple,
209
+ streamingImport,
210
+ summary_service_exports,
211
+ t,
212
+ tokenizeForFts,
213
+ tokenizeQueryForFts,
214
+ truncateFormattedMessages,
215
+ updateEmbeddingConfig,
216
+ updateRAGConfig,
217
+ validateApiKey,
218
+ validateEmbeddingConfig,
219
+ verifyCliDataPath,
220
+ wasElectronUsed,
221
+ wrapWithChartSchemaGate,
222
+ writeParseResultToDb
223
+ } from "./chunk-YPTJVTVJ.mjs";
224
+ import "./chunk-VSOWNKPA.mjs";
225
+ export {
226
+ AIChatManager,
227
+ AgentEventHandler,
228
+ AiLogger,
229
+ AssistantManager,
230
+ BUILTIN_DESENSITIZE_RULES,
231
+ BetterSqliteAdapter,
232
+ CACHE_KEY_MEMBERS,
233
+ CACHE_KEY_OVERVIEW,
234
+ CHART_CAPABILITY_ANALYSIS_TOOLS,
235
+ CHART_CAPABILITY_CORE_TOOLS,
236
+ CHART_CAPABILITY_SKILL_ID,
237
+ CHART_SCHEMA_REQUIRED_MESSAGE,
238
+ CustomModelStore,
239
+ CustomProviderStore,
240
+ DEFAULT_EMBEDDING_CONFIG_STORE,
241
+ DEFAULT_MAX_TOOL_ROUNDS,
242
+ DEFAULT_RAG_CONFIG,
243
+ DESENSITIZE_RULES_SCHEMA_VERSION,
244
+ DataDirCompatibilityError,
245
+ DatabaseManager,
246
+ LLMConfigStore,
247
+ LogLevel,
248
+ MAX_CONFIG_COUNT,
249
+ MAX_EMBEDDING_CONFIG_COUNT,
250
+ MemoryVectorStore,
251
+ MergeSessionCache,
252
+ NodePathProvider,
253
+ PreferencesManager,
254
+ SQLiteVectorStore,
255
+ SkillManager,
256
+ SkillManagerCore,
257
+ TEMP_DB_SCHEMA,
258
+ TempDbReader,
259
+ TempDbWriter,
260
+ Type,
261
+ addEmbeddingConfig,
262
+ aiLocales,
263
+ analyzeIncrementalImport,
264
+ analyzeNewImport,
265
+ anonymizeMessageNames,
266
+ applyDesensitizeRuleOverrides,
267
+ applyPendingNodeDataDirMigration,
268
+ applyPendingNodeDataDirMigrationIfNeeded,
269
+ applyPreprocessingPipeline,
270
+ assertDataDirCompatible,
271
+ batchSegmentWithFrequency,
272
+ buildFtsIndex,
273
+ buildMergedOutput,
274
+ buildPiModel,
275
+ buildPlanGuidance,
276
+ buildSkillMenuWithBuiltinChart,
277
+ buildSystemPrompt,
278
+ checkAndCompress,
279
+ checkConflictsFromSources,
280
+ checkSessionsCanGenerateSummary,
281
+ cleanupTempDatabases,
282
+ clearJiebaInstance,
283
+ clearPendingNodeDataDirMigration,
284
+ collectPosTagStats,
285
+ completeSimple,
286
+ computeAndSetMembersCache,
287
+ computeAndSetOverviewCache,
288
+ computeWordFrequency,
289
+ copyDirMerge as copyDataDirMerge,
290
+ cosineSimilarity,
291
+ countMessagesTokens,
292
+ countTokens,
293
+ createActivateSkillTool,
294
+ createAiTranslate,
295
+ createAnalysisPlanner,
296
+ createChartSchemaGateState,
297
+ createCompressionLlmAdapter,
298
+ createDataSnapshotFromOverview,
299
+ createDatabaseManagerAdapter,
300
+ createFtsTable,
301
+ createJiebaNlpProvider,
302
+ createLlmRouteDecider,
303
+ createNodeDataDirSwitch,
304
+ createPendingDataDirMigration,
305
+ createPlanContentBlock,
306
+ decideRequestRoute,
307
+ deleteDict,
308
+ deleteEmbeddingConfig,
309
+ deleteSessionCache,
310
+ deleteTempDatabase,
311
+ downloadDict,
312
+ ensureDefaultDict,
313
+ estimateTokensFromText,
314
+ executeSemanticPipeline,
315
+ exportFilterResultToMarkdown,
316
+ export_service_exports as exportService,
317
+ exportSessionToJson,
318
+ exportWithFormat,
319
+ extractErrorInfo,
320
+ extractErrorStack,
321
+ extractSkillId,
322
+ fetchRemoteModels,
323
+ filterValidMessages,
324
+ formatAIError,
325
+ formatMessageCompact,
326
+ formatSessionChunk,
327
+ formatTimeRange,
328
+ formatToolResultAsText,
329
+ generateSessionSummaries,
330
+ generateSessionSummary,
331
+ getActiveEmbeddingConfig,
332
+ getActiveEmbeddingConfigId,
333
+ getAllEmbeddingConfigs,
334
+ getAllowedBuiltinToolsForChartAutoSkill,
335
+ getChartCapabilitySkill as getBuiltinChartSkill,
336
+ getCache,
337
+ getCachePath,
338
+ getChartCapabilityAllowedBuiltinTools,
339
+ getChartCapabilitySkill,
340
+ getChartPlannerCapabilityForMessage,
341
+ getChatDbMigrations,
342
+ getCurrentLogFile,
343
+ getDbFileVersion,
344
+ getDefaultNodeUserDataDir,
345
+ getDefaultRulesForLocale,
346
+ getDictList,
347
+ getEmbeddingConfigById,
348
+ getEmbeddingService,
349
+ getErrorCount,
350
+ getJieba,
351
+ getNlpDir,
352
+ getOrComputeAnalysisCache,
353
+ getPendingNodeDataDirMigration,
354
+ getPosTagDefinitions,
355
+ getRuleGroupsForLocale,
356
+ getSessionChunk,
357
+ getSessionChunks,
358
+ getSkillConfigWithBuiltinChart,
359
+ getValidatedOverviewCache,
360
+ getVectorStore,
361
+ getVectorStoreDir,
362
+ getVectorStoreStats,
363
+ hasFtsTable,
364
+ hasPendingElectronDataWarning,
365
+ i18nTexts,
366
+ incrementalImport,
367
+ initNlpDir,
368
+ initPerfLog,
369
+ initRag,
370
+ initRagConfig,
371
+ initTokenizer,
372
+ insertFtsEntries,
373
+ invalidateCache,
374
+ isChineseLocale,
375
+ isDictDownloaded,
376
+ isDirectoryEmptyOrMissing,
377
+ isEmbeddingEnabled,
378
+ isExistingUserDataDir,
379
+ isUserDataDirSafeToUse,
380
+ isValidMessage,
381
+ loadDictBuffer,
382
+ loadEmbeddingConfigStore,
383
+ loadRAGConfig,
384
+ logError,
385
+ logInfo,
386
+ logPerf,
387
+ logPerfDetail,
388
+ logSummary,
389
+ manualCompress,
390
+ member_service_exports as memberService,
391
+ mergeRulesForLocale,
392
+ migrateFromElectronIfNeeded,
393
+ normalizeAnthropicBaseUrl,
394
+ normalizeOpenAICompatibleBaseUrl,
395
+ openBetterSqliteDatabase,
396
+ owner_profile_service_exports as ownerProfileService,
397
+ parseAssistantFile,
398
+ parseSkillFile,
399
+ preprocessMessages,
400
+ raiseChatDbCompatibilityGate,
401
+ raiseDataDirMinRuntimeVersion,
402
+ readDataDirCompatibilityMeta,
403
+ rebuildFtsIndex,
404
+ resetEmbeddingService,
405
+ resetPerfLog,
406
+ resetRAGConfig,
407
+ resetVectorStore,
408
+ resolveChartRuntimeForRequest,
409
+ runAgentCore,
410
+ runPendingDataDirMigration,
411
+ runSimpleLlmStream,
412
+ saveEmbeddingConfigStore,
413
+ saveRAGConfig,
414
+ searchByFts,
415
+ segment,
416
+ segmentText,
417
+ serializeAssistant,
418
+ serializeChatLabToJsonl,
419
+ session_index_service_exports as sessionIndexService,
420
+ session_service_exports as sessionService,
421
+ setActiveEmbeddingConfig,
422
+ setCache,
423
+ shouldOfferChartCapabilityForAnalyticalMessage,
424
+ shouldUseChartCapabilityForMessage,
425
+ splitIntoSegments,
426
+ streamParseFileInfo,
427
+ streamSimple,
428
+ streamingImport,
429
+ summary_service_exports as summaryService,
430
+ t,
431
+ tokenizeForFts,
432
+ tokenizeQueryForFts,
433
+ truncateFormattedMessages,
434
+ updateEmbeddingConfig,
435
+ updateRAGConfig,
436
+ validateApiKey,
437
+ validateEmbeddingConfig,
438
+ verifyCliDataPath,
439
+ wasElectronUsed,
440
+ wrapWithChartSchemaGate,
441
+ writeParseResultToDb
442
+ };
443
+ //# sourceMappingURL=src-6S7JPKHX.mjs.map
@@ -9,7 +9,7 @@ import {
9
9
  analyzeNewImport,
10
10
  incrementalImport,
11
11
  streamImport
12
- } from "./chunk-FAOZNMPK.mjs";
12
+ } from "./chunk-VCN64OD6.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-GUGKY2GV.mjs";
20
+ } from "./chunk-YPTJVTVJ.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-FHFBCEDV.mjs.map
34
+ //# sourceMappingURL=stream-import-KZFC3XT2.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -65,34 +65,58 @@ async function fetchLatestVersion() {
65
65
  }
66
66
  function promptUser(question, choices) {
67
67
  return new Promise((resolve) => {
68
+ let selected = 0;
69
+ const render = () => {
70
+ if (rendered) process.stderr.write(`\x1B[${choices.length}A`);
71
+ choices.forEach((c, i) => {
72
+ process.stderr.write(`\x1B[2K${i === selected ? "\u203A " : " "}${i + 1}. ${c}
73
+ `);
74
+ });
75
+ };
68
76
  process.stderr.write(`${question}
69
77
 
70
78
  `);
71
- choices.forEach((c, i) => {
72
- process.stderr.write(i === 0 ? `\u203A ${i + 1}. ${c}
73
- ` : ` ${i + 1}. ${c}
74
- `);
75
- });
76
- process.stderr.write("\n");
77
79
  if (!process.stdin.isTTY || !process.stdin.setRawMode) {
78
80
  resolve(2);
79
81
  return;
80
82
  }
83
+ let rendered = false;
84
+ render();
85
+ rendered = true;
86
+ process.stderr.write("\n");
81
87
  process.stdin.setRawMode(true);
82
88
  process.stdin.resume();
89
+ const cleanup = () => {
90
+ process.stdin.removeListener("data", onData);
91
+ process.stdin.setRawMode(false);
92
+ process.stdin.pause();
93
+ };
83
94
  const onData = (data) => {
84
95
  const key = data.toString();
85
96
  if (key === "") {
86
- process.stdin.setRawMode(false);
87
- process.stdin.pause();
97
+ cleanup();
88
98
  process.exit(0);
89
99
  }
100
+ if (key === "\x1B[A" || key === "k") {
101
+ selected = (selected - 1 + choices.length) % choices.length;
102
+ render();
103
+ return;
104
+ }
105
+ if (key === "\x1B[B" || key === "j") {
106
+ selected = (selected + 1) % choices.length;
107
+ render();
108
+ return;
109
+ }
110
+ if (key === "\r" || key === "\n") {
111
+ cleanup();
112
+ process.stderr.write("\n");
113
+ resolve(selected + 1);
114
+ return;
115
+ }
90
116
  if (key.length === 1) {
91
117
  const num = parseInt(key);
92
118
  if (num >= 1 && num <= choices.length) {
93
- process.stdin.removeListener("data", onData);
94
- process.stdin.setRawMode(false);
95
- process.stdin.pause();
119
+ cleanup();
96
120
  process.stderr.write("\n");
97
121
  resolve(num);
98
122
  }
@@ -192,4 +216,4 @@ export {
192
216
  performCliSelfUpdate,
193
217
  startPeriodicUpdateCheck
194
218
  };
195
- //# sourceMappingURL=update-checker-JIBA7T4U.mjs.map
219
+ //# sourceMappingURL=update-checker-3N7HQEP2.mjs.map