chatlab-cli 0.31.1 → 0.31.2
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-MOETAGU5.mjs → chat-command-QPL4GNHP.mjs} +8 -8
- package/dist/{chunk-VOVLPSG6.mjs → chunk-3SZWD7UM.mjs} +4 -4
- package/dist/{chunk-2IXPWPLR.mjs → chunk-64FKPYPJ.mjs} +11 -11
- package/dist/{chunk-3VMKS7PU.mjs → chunk-6JKKHPXY.mjs} +2 -2
- package/dist/{chunk-SZEBCNBB.mjs → chunk-BSSR4ZYW.mjs} +10 -10
- package/dist/{chunk-7HBVGVOB.mjs → chunk-F2NZ7HAY.mjs} +2 -2
- package/dist/{chunk-KCPGEILH.mjs → chunk-GYPBWKAU.mjs} +4 -4
- package/dist/{chunk-DQ45LDKZ.mjs → chunk-IK7GJTGY.mjs} +9 -6
- package/dist/chunk-IK7GJTGY.mjs.map +1 -0
- package/dist/{chunk-LJXSUN25.mjs → chunk-OAXVKNPN.mjs} +2 -2
- package/dist/{chunk-ZVWUR7ET.mjs → chunk-OQ6N4PDD.mjs} +2 -2
- package/dist/{chunk-E6W2RURS.mjs → chunk-S5PQM5J4.mjs} +3 -3
- package/dist/{chunk-N5AGDT7I.mjs → chunk-ZCXCHKQV.mjs} +3 -3
- package/dist/cli.mjs +8 -8
- package/dist/contacts-worker.mjs +2 -2
- package/dist/global-insight-worker.mjs +1 -1
- package/dist/{http-M6NHWJZD.mjs → http-NOEWVWCP.mjs} +11 -11
- package/dist/{import-SEYHFXS5.mjs → import-RS3HW7ZM.mjs} +7 -7
- package/dist/index.mjs +11 -11
- package/dist/{mcp-MIPFYRLV.mjs → mcp-7F3G47Z4.mjs} +8 -8
- package/dist/people-relationships-worker.mjs +2 -2
- package/dist/semantic-index-worker.mjs +1 -1
- package/dist/{src-7OD6RD5V.mjs → src-MNH5S423.mjs} +6 -6
- package/dist/{stream-import-AWEHGQJY.mjs → stream-import-BPCHGRAN.mjs} +7 -7
- package/dist/{worker-runtime-TGYMASIE.mjs → worker-runtime-TTAXGQ5R.mjs} +5 -5
- package/dist-web/assets/{ActionToolsPanel-fAio70bI.css → ActionToolsPanel-CbWhu_Uv.css} +1 -1
- package/dist-web/assets/ActionToolsPanel.vue_vue_type_script_setup_true_lang-CvvNqXuh.js +110 -0
- package/dist-web/assets/{BufferResource-CHI62pIA.js → BufferResource-Dh2kaMuP.js} +1 -1
- package/dist-web/assets/{CanvasRenderer-OZRoiF0j.js → CanvasRenderer-B8hHywwz.js} +1 -1
- package/dist-web/assets/EChartWordcloud-BXC_4nUP.js +1 -0
- package/dist-web/assets/{Filter-DNb5VErW.js → Filter-Bap1KMW6.js} +1 -1
- package/dist-web/assets/LoadingState.vue_vue_type_script_setup_true_lang-B2KAoiMG.js +1 -0
- package/dist-web/assets/MessageExportModal-H3-LAaXY.js +1 -0
- package/dist-web/assets/PageHeader-CzTV_lyM.js +1 -0
- package/dist-web/assets/{RelationshipGalaxyCanvas-ioRNObb5.js → RelationshipGalaxyCanvas-C6ZoUZNc.js} +4 -4
- package/dist-web/assets/{RelationshipGalaxyThreeCanvas-L1Y43p1A.js → RelationshipGalaxyThreeCanvas-DV6B-7XB.js} +1 -1
- package/dist-web/assets/{RenderTargetSystem-fJ7D7Chv.js → RenderTargetSystem-Dpgyoac_.js} +1 -1
- package/dist-web/assets/ThemeCard.vue_vue_type_script_setup_true_lang-BWJ6kuSC.js +1 -0
- package/dist-web/assets/TimeSelect.vue_vue_type_script_setup_true_lang--Tbo7p-l.js +1 -0
- package/dist-web/assets/{WebGLRenderer-BD3ZUtxH.js → WebGLRenderer-DICnsAm5.js} +1 -1
- package/dist-web/assets/{WebGPURenderer-DZXYsT6D.js → WebGPURenderer-Bf0gkRK9.js} +1 -1
- package/dist-web/assets/annual-summary-time-range-CK0IIPsY.js +1 -0
- package/dist-web/assets/{base-DTElkJcC.js → base-D5T8QZ8b.js} +1 -1
- package/dist-web/assets/{browserAll-ChT6N6a9.js → browserAll-DcoCy7xY.js} +1 -1
- package/dist-web/assets/dateFormat-BDOkdsCR.js +1 -0
- package/dist-web/assets/{electron-CIzyGxH_.js → electron-CmhzSjaH.js} +1 -1
- package/dist-web/assets/{fetch-DnGx-1_t.js → fetch-BJka-sCN.js} +1 -1
- package/dist-web/assets/{fetch-wSSfDBdV.js → fetch-BddgpyKJ.js} +1 -1
- package/dist-web/assets/{fetch-C9rx2isC.js → fetch-C1mlq5VY.js} +1 -1
- package/dist-web/assets/{fetch-BFnrBahy.js → fetch-CNz28Lv5.js} +1 -1
- package/dist-web/assets/{fetch-CyKILLnB.js → fetch-D71bG6Fc.js} +1 -1
- package/dist-web/assets/{fetch-qC7om4QG.js → fetch-D8xv4lgE.js} +1 -1
- package/dist-web/assets/{fetch-CuiQUcO_.js → fetch-DfTM4Dah.js} +1 -1
- package/dist-web/assets/{fetch-Avtnh8cJ.js → fetch-DtcNaN3d.js} +1 -1
- package/dist-web/assets/{fetch-Ccq_0ecb.js → fetch-TATpgXht.js} +1 -1
- package/dist-web/assets/{fetch-Dd6t3p1r.js → fetch-dI5w8lYN.js} +1 -1
- package/dist-web/assets/index-Bs4ZX2-v.js +24 -0
- package/dist-web/assets/index-CAjUCtGD.css +1 -0
- package/dist-web/assets/index-CF59LLOG.js +25 -0
- package/dist-web/assets/index-CJ3WtSLo.js +173 -0
- package/dist-web/assets/index-CJS6FVuj.js +64 -0
- package/dist-web/assets/index-CY5yJhCJ.js +1 -0
- package/dist-web/assets/{index-y7cxH1Et.css → index-CsqMIyA9.css} +1 -1
- package/dist-web/assets/index-CtmXho1w.css +1 -0
- package/dist-web/assets/index-DClxj4T2.js +2 -0
- package/dist-web/assets/index-De3ImZb9.js +1 -0
- package/dist-web/assets/{index-DXHYzIIj.js → index-Dp3gCHpK.js} +1 -1
- package/dist-web/assets/index-DphjBwbA.js +1 -0
- package/dist-web/assets/index-Dtbu8m1o.js +1 -0
- package/dist-web/assets/index-a1ZrlsKo.js +1 -0
- package/dist-web/assets/index-qZ7jnIna.js +2 -0
- package/dist-web/assets/index-soX5gDgh.js +1 -0
- package/dist-web/assets/people-page-header-D93GTPBO.js +1 -0
- package/dist-web/assets/vendor-nuxt-ui-DUpPmItD.js +15 -0
- package/dist-web/assets/vendor-reka-ui-BLnO2MqY.js +15 -0
- package/dist-web/assets/vendor-snapdom--nZvo8Sg.js +8 -0
- package/dist-web/assets/web-H9T1dZys.js +1 -0
- package/dist-web/assets/{webworkerAll-C3dAOQj4.js → webworkerAll-D1Kui8G8.js} +1 -1
- package/dist-web/index.html +5 -5
- package/package.json +1 -1
- package/dist/chunk-DQ45LDKZ.mjs.map +0 -1
- package/dist-web/assets/ActionToolsPanel.vue_vue_type_script_setup_true_lang-CkDGVRXe.js +0 -110
- package/dist-web/assets/EChartWordcloud-DU3ZYdgz.js +0 -1
- package/dist-web/assets/LoadingState.vue_vue_type_script_setup_true_lang-DACMroOe.js +0 -1
- package/dist-web/assets/MessageExportModal-CqP-w7HP.js +0 -1
- package/dist-web/assets/PageHeader-Ck8ULyZH.js +0 -1
- package/dist-web/assets/ThemeCard.vue_vue_type_script_setup_true_lang-BoZyssJF.js +0 -1
- package/dist-web/assets/TimeSelect.vue_vue_type_script_setup_true_lang-7SEaCxDL.js +0 -1
- package/dist-web/assets/annual-summary-time-range-DVLXK1r4.js +0 -1
- package/dist-web/assets/dateFormat-D9WibwOu.js +0 -1
- package/dist-web/assets/index-BH9jI5kV.js +0 -173
- package/dist-web/assets/index-BWtNqcYK.js +0 -22
- package/dist-web/assets/index-Bkq7-GBp.js +0 -1
- package/dist-web/assets/index-Bqr-LkS1.css +0 -1
- package/dist-web/assets/index-C6qtsaP7.js +0 -1
- package/dist-web/assets/index-C_0GHEcb.css +0 -1
- package/dist-web/assets/index-ChFGuu70.js +0 -1
- package/dist-web/assets/index-CiS20iAR.js +0 -24
- package/dist-web/assets/index-CqD6u57u.js +0 -1
- package/dist-web/assets/index-CzDG8LVr.js +0 -2
- package/dist-web/assets/index-D0Euk-vQ.js +0 -1
- package/dist-web/assets/index-D26BWhHz.js +0 -1
- package/dist-web/assets/index-Dq8u7gMb.js +0 -2
- package/dist-web/assets/index-u_UH6rDY.js +0 -64
- package/dist-web/assets/people-page-header-BdKM1qhX.js +0 -1
- package/dist-web/assets/vendor-nuxt-ui-CS1uxE9C.js +0 -15
- package/dist-web/assets/vendor-reka-ui-Cta6JPvN.js +0 -11
- package/dist-web/assets/vendor-snapdom-XnBoh1gd.js +0 -8
- package/dist-web/assets/web-BDBdpdK7.js +0 -1
- /package/dist/{chat-command-MOETAGU5.mjs.map → chat-command-QPL4GNHP.mjs.map} +0 -0
- /package/dist/{chunk-VOVLPSG6.mjs.map → chunk-3SZWD7UM.mjs.map} +0 -0
- /package/dist/{chunk-2IXPWPLR.mjs.map → chunk-64FKPYPJ.mjs.map} +0 -0
- /package/dist/{chunk-3VMKS7PU.mjs.map → chunk-6JKKHPXY.mjs.map} +0 -0
- /package/dist/{chunk-SZEBCNBB.mjs.map → chunk-BSSR4ZYW.mjs.map} +0 -0
- /package/dist/{chunk-7HBVGVOB.mjs.map → chunk-F2NZ7HAY.mjs.map} +0 -0
- /package/dist/{chunk-KCPGEILH.mjs.map → chunk-GYPBWKAU.mjs.map} +0 -0
- /package/dist/{chunk-LJXSUN25.mjs.map → chunk-OAXVKNPN.mjs.map} +0 -0
- /package/dist/{chunk-ZVWUR7ET.mjs.map → chunk-OQ6N4PDD.mjs.map} +0 -0
- /package/dist/{chunk-E6W2RURS.mjs.map → chunk-S5PQM5J4.mjs.map} +0 -0
- /package/dist/{chunk-N5AGDT7I.mjs.map → chunk-ZCXCHKQV.mjs.map} +0 -0
- /package/dist/{http-M6NHWJZD.mjs.map → http-NOEWVWCP.mjs.map} +0 -0
- /package/dist/{import-SEYHFXS5.mjs.map → import-RS3HW7ZM.mjs.map} +0 -0
- /package/dist/{mcp-MIPFYRLV.mjs.map → mcp-7F3G47Z4.mjs.map} +0 -0
- /package/dist/{src-7OD6RD5V.mjs.map → src-MNH5S423.mjs.map} +0 -0
- /package/dist/{stream-import-AWEHGQJY.mjs.map → stream-import-BPCHGRAN.mjs.map} +0 -0
- /package/dist/{worker-runtime-TGYMASIE.mjs.map → worker-runtime-TTAXGQ5R.mjs.map} +0 -0
|
@@ -6,14 +6,14 @@ 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-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-3SZWD7UM.mjs";
|
|
10
|
+
import "./chunk-6JKKHPXY.mjs";
|
|
11
|
+
import "./chunk-S5PQM5J4.mjs";
|
|
12
|
+
import "./chunk-GYPBWKAU.mjs";
|
|
13
|
+
import "./chunk-F2NZ7HAY.mjs";
|
|
14
|
+
import "./chunk-OAXVKNPN.mjs";
|
|
15
15
|
import "./chunk-YAQLYL52.mjs";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-IK7GJTGY.mjs";
|
|
17
17
|
import "./chunk-GFHSSCCR.mjs";
|
|
18
18
|
|
|
19
19
|
// src/ai/chat-command.ts
|
|
@@ -306,4 +306,4 @@ export {
|
|
|
306
306
|
runChatCommand,
|
|
307
307
|
runChatTurn
|
|
308
308
|
};
|
|
309
|
-
//# sourceMappingURL=chat-command-
|
|
309
|
+
//# sourceMappingURL=chat-command-QPL4GNHP.mjs.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
SEMANTIC_SEARCH_TOOL_NAME,
|
|
11
11
|
executeToolForAgent,
|
|
12
12
|
toAgentToolParameters
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-6JKKHPXY.mjs";
|
|
14
14
|
import {
|
|
15
15
|
AgentEventHandler,
|
|
16
16
|
CHART_CAPABILITY_CORE_TOOLS,
|
|
@@ -44,14 +44,14 @@ import {
|
|
|
44
44
|
runAgentCore,
|
|
45
45
|
shouldUseChartCapabilityForMessage,
|
|
46
46
|
wrapWithChartSchemaGate
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-GYPBWKAU.mjs";
|
|
48
48
|
import {
|
|
49
49
|
AiLogger,
|
|
50
50
|
batchSegmentWithFrequency,
|
|
51
51
|
getChatOverview,
|
|
52
52
|
normalizeBuiltinToolNames,
|
|
53
53
|
resolveApiKey
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-IK7GJTGY.mjs";
|
|
55
55
|
|
|
56
56
|
// src/ai/logger.ts
|
|
57
57
|
var logger = null;
|
|
@@ -562,4 +562,4 @@ export {
|
|
|
562
562
|
closeServerAiLogger,
|
|
563
563
|
createCliRunAgentStream
|
|
564
564
|
};
|
|
565
|
-
//# sourceMappingURL=chunk-
|
|
565
|
+
//# sourceMappingURL=chunk-3SZWD7UM.mjs.map
|
|
@@ -7,10 +7,10 @@ const __dirname = __pathDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
analyzeAutoImport,
|
|
9
9
|
autoImport
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZCXCHKQV.mjs";
|
|
11
11
|
import {
|
|
12
12
|
assertCliDataDirCompatible
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-OQ6N4PDD.mjs";
|
|
14
14
|
import {
|
|
15
15
|
getVersion
|
|
16
16
|
} from "./chunk-5ADKYYNA.mjs";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
applyPendingNodeDataDirMigrationIfNeeded,
|
|
21
21
|
getSystemLogsDir,
|
|
22
22
|
hasPendingElectronDataWarning
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-S5PQM5J4.mjs";
|
|
24
24
|
import {
|
|
25
25
|
AIChatManager,
|
|
26
26
|
IMPORT_IN_PROGRESS_ERROR_KEY,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
mergeRulesForLocale,
|
|
34
34
|
owner_profile_service_exports,
|
|
35
35
|
preprocessMessages
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-GYPBWKAU.mjs";
|
|
37
37
|
import {
|
|
38
38
|
resolveCliPath
|
|
39
39
|
} from "./chunk-FJ35V3TE.mjs";
|
|
@@ -73,7 +73,7 @@ import {
|
|
|
73
73
|
searchMessagesLike,
|
|
74
74
|
setConfigField,
|
|
75
75
|
verifyCliDataPath
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-IK7GJTGY.mjs";
|
|
77
77
|
|
|
78
78
|
// src/cli.ts
|
|
79
79
|
import * as fs3 from "fs";
|
|
@@ -2224,7 +2224,7 @@ registerQueryCommands(program);
|
|
|
2224
2224
|
registerManifestCommand(program, getVersion());
|
|
2225
2225
|
registerImportCommand(program);
|
|
2226
2226
|
program.command("formats").description("List all supported chat history formats").action(async () => {
|
|
2227
|
-
const { getSupportedFormats } = await import("./import-
|
|
2227
|
+
const { getSupportedFormats } = await import("./import-RS3HW7ZM.mjs");
|
|
2228
2228
|
const formats = getSupportedFormats();
|
|
2229
2229
|
console.log(`${formats.length} supported format(s):
|
|
2230
2230
|
`);
|
|
@@ -2233,11 +2233,11 @@ program.command("formats").description("List all supported chat history formats"
|
|
|
2233
2233
|
}
|
|
2234
2234
|
});
|
|
2235
2235
|
program.command("mcp").description("Start MCP Server (stdio transport, for ClaudeCode / Cursor / AI agents)").action(async () => {
|
|
2236
|
-
const { startCliMcpServer } = await import("./mcp-
|
|
2236
|
+
const { startCliMcpServer } = await import("./mcp-7F3G47Z4.mjs");
|
|
2237
2237
|
await startCliMcpServer();
|
|
2238
2238
|
});
|
|
2239
2239
|
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) => {
|
|
2240
|
-
const { runChatCommand } = await import("./chat-command-
|
|
2240
|
+
const { runChatCommand } = await import("./chat-command-QPL4GNHP.mjs");
|
|
2241
2241
|
const { dbManager, pathProvider } = initRuntime();
|
|
2242
2242
|
const aiChatManager = new AIChatManager(pathProvider.getAiDataDir(), { nativeBinding: resolveNativeBinding() });
|
|
2243
2243
|
try {
|
|
@@ -2273,7 +2273,7 @@ program.command("start").description("Start ChatLab (HTTP API + Web UI)").option
|
|
|
2273
2273
|
});
|
|
2274
2274
|
return;
|
|
2275
2275
|
}
|
|
2276
|
-
const { startHttpServer } = await import("./http-
|
|
2276
|
+
const { startHttpServer } = await import("./http-NOEWVWCP.mjs");
|
|
2277
2277
|
const port = parseInt(options.port, 10);
|
|
2278
2278
|
let webRoot;
|
|
2279
2279
|
if (!options.headless) {
|
|
@@ -2320,7 +2320,7 @@ Press Ctrl+C to stop.
|
|
|
2320
2320
|
}
|
|
2321
2321
|
const shutdown = async () => {
|
|
2322
2322
|
console.log("\nShutting down...");
|
|
2323
|
-
const { stopHttpServer } = await import("./http-
|
|
2323
|
+
const { stopHttpServer } = await import("./http-NOEWVWCP.mjs");
|
|
2324
2324
|
await stopHttpServer();
|
|
2325
2325
|
process.exit(0);
|
|
2326
2326
|
};
|
|
@@ -2413,4 +2413,4 @@ if (isDirectRun) {
|
|
|
2413
2413
|
export {
|
|
2414
2414
|
run
|
|
2415
2415
|
};
|
|
2416
|
-
//# sourceMappingURL=chunk-
|
|
2416
|
+
//# sourceMappingURL=chunk-64FKPYPJ.mjs.map
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
getWeekdayActivity,
|
|
29
29
|
queryMessages,
|
|
30
30
|
searchMessagesByKeywords
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-IK7GJTGY.mjs";
|
|
32
32
|
|
|
33
33
|
// ../../packages/tools/src/utils/limits.ts
|
|
34
34
|
function resolveMessageLimit(requestedLimit, defaultLimit, maxMessagesLimit) {
|
|
@@ -1927,4 +1927,4 @@ export {
|
|
|
1927
1927
|
toAgentToolParameters,
|
|
1928
1928
|
executeToolForAgent
|
|
1929
1929
|
};
|
|
1930
|
-
//# sourceMappingURL=chunk-
|
|
1930
|
+
//# sourceMappingURL=chunk-6JKKHPXY.mjs.map
|
|
@@ -9,21 +9,21 @@ import {
|
|
|
9
9
|
createCliRunAgentStream,
|
|
10
10
|
getServerAiLogger,
|
|
11
11
|
initServerAiLogger
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-3SZWD7UM.mjs";
|
|
13
13
|
import {
|
|
14
14
|
AGENT_TOOL_REGISTRY,
|
|
15
15
|
CoreDataProvider
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-6JKKHPXY.mjs";
|
|
17
17
|
import {
|
|
18
18
|
analyzeIncrementalImport,
|
|
19
19
|
analyzeNewImport,
|
|
20
20
|
autoImport,
|
|
21
21
|
incrementalImport,
|
|
22
22
|
streamImport
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-ZCXCHKQV.mjs";
|
|
24
24
|
import {
|
|
25
25
|
assertCliDataDirCompatible
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-OQ6N4PDD.mjs";
|
|
27
27
|
import {
|
|
28
28
|
getVersion
|
|
29
29
|
} from "./chunk-5ADKYYNA.mjs";
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
getPendingNodeDataDirMigration,
|
|
42
42
|
hasPendingElectronDataWarning,
|
|
43
43
|
serializeChatLabToJsonl
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-S5PQM5J4.mjs";
|
|
45
45
|
import {
|
|
46
46
|
AIChatManager,
|
|
47
47
|
ArchiveImportError,
|
|
@@ -94,7 +94,7 @@ import {
|
|
|
94
94
|
streamParseFileInfo,
|
|
95
95
|
summary_service_exports,
|
|
96
96
|
validateApiKey
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-GYPBWKAU.mjs";
|
|
98
98
|
import {
|
|
99
99
|
resolveCliPath
|
|
100
100
|
} from "./chunk-FJ35V3TE.mjs";
|
|
@@ -160,7 +160,7 @@ import {
|
|
|
160
160
|
verifyCliDataPath,
|
|
161
161
|
writeAuthProfile,
|
|
162
162
|
writeConfigField
|
|
163
|
-
} from "./chunk-
|
|
163
|
+
} from "./chunk-IK7GJTGY.mjs";
|
|
164
164
|
|
|
165
165
|
// src/http/index.ts
|
|
166
166
|
import * as fs12 from "fs";
|
|
@@ -3250,10 +3250,10 @@ function registerWebRoutes(server2, dbManager2, options) {
|
|
|
3250
3250
|
const resolvedPathProvider = options?.pathProvider ?? fallbackPathProvider;
|
|
3251
3251
|
const ai = options?.aiContext;
|
|
3252
3252
|
const cliStreamImport = async (dm, filePath) => {
|
|
3253
|
-
const { streamImport: streamImport2 } = await import("./stream-import-
|
|
3253
|
+
const { streamImport: streamImport2 } = await import("./stream-import-BPCHGRAN.mjs");
|
|
3254
3254
|
const result = await streamImport2(dm, filePath);
|
|
3255
3255
|
if (!result.success) {
|
|
3256
|
-
const { IMPORT_IN_PROGRESS_ERROR_KEY: IMPORT_IN_PROGRESS_ERROR_KEY2, ImportInProgressError: ImportInProgressError2 } = await import("./src-
|
|
3256
|
+
const { IMPORT_IN_PROGRESS_ERROR_KEY: IMPORT_IN_PROGRESS_ERROR_KEY2, ImportInProgressError: ImportInProgressError2 } = await import("./src-MNH5S423.mjs");
|
|
3257
3257
|
if (result.error === IMPORT_IN_PROGRESS_ERROR_KEY2) throw new ImportInProgressError2();
|
|
3258
3258
|
throw new Error(result.error || "Import failed");
|
|
3259
3259
|
}
|
|
@@ -4497,4 +4497,4 @@ export {
|
|
|
4497
4497
|
startHttpServer,
|
|
4498
4498
|
stopHttpServer
|
|
4499
4499
|
};
|
|
4500
|
-
//# sourceMappingURL=chunk-
|
|
4500
|
+
//# sourceMappingURL=chunk-BSSR4ZYW.mjs.map
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
setCache,
|
|
22
22
|
shouldEnableContactsEntry,
|
|
23
23
|
shouldScopeContactToSession
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-IK7GJTGY.mjs";
|
|
25
25
|
|
|
26
26
|
// ../../packages/node-runtime/src/services/contacts/facts-cache.ts
|
|
27
27
|
var CONTACTS_FACTS_FORMAT_VERSION = 1;
|
|
@@ -517,4 +517,4 @@ export {
|
|
|
517
517
|
computeContactsSnapshot,
|
|
518
518
|
createEmptyContactsDiagnostics
|
|
519
519
|
};
|
|
520
|
-
//# sourceMappingURL=chunk-
|
|
520
|
+
//# sourceMappingURL=chunk-F2NZ7HAY.mjs.map
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
createEmptyContactsDiagnostics,
|
|
10
10
|
normalizeContactsTimeRangePreset,
|
|
11
11
|
resolveContactsTimeRange
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-F2NZ7HAY.mjs";
|
|
13
13
|
import {
|
|
14
14
|
PEOPLE_RELATIONSHIPS_ALGORITHM_VERSION,
|
|
15
15
|
buildPeopleRelationshipsNeighborhoodGraph,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
computePeopleRelationshipsSnapshot,
|
|
19
19
|
normalizePeopleRelationshipsTimeRangePreset,
|
|
20
20
|
resolvePeopleRelationshipsTimeRange
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-OAXVKNPN.mjs";
|
|
22
22
|
import {
|
|
23
23
|
ANNUAL_SUMMARY_ALGORITHM_VERSION
|
|
24
24
|
} from "./chunk-YAQLYL52.mjs";
|
|
@@ -93,7 +93,7 @@ import {
|
|
|
93
93
|
updateSessionOwnerId,
|
|
94
94
|
writeAnnualSummarySnapshot,
|
|
95
95
|
writeAuthProfile
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-IK7GJTGY.mjs";
|
|
97
97
|
import {
|
|
98
98
|
__commonJS,
|
|
99
99
|
__export,
|
|
@@ -20841,4 +20841,4 @@ export {
|
|
|
20841
20841
|
hashImportBody,
|
|
20842
20842
|
ImportIdempotencyCache
|
|
20843
20843
|
};
|
|
20844
|
-
//# sourceMappingURL=chunk-
|
|
20844
|
+
//# sourceMappingURL=chunk-GYPBWKAU.mjs.map
|
|
@@ -4858,11 +4858,12 @@ function getMembersWithAliases(db) {
|
|
|
4858
4858
|
m.id, m.platform_id as platformId,
|
|
4859
4859
|
m.account_name as accountName, m.group_nickname as groupNickname,
|
|
4860
4860
|
${aliasesSelect}, ${avatarSelect},
|
|
4861
|
-
COUNT(msg.id) as messageCount
|
|
4861
|
+
COUNT(msg.id) as messageCount,
|
|
4862
|
+
MAX(msg.ts) as lastMessageTs
|
|
4862
4863
|
FROM member m
|
|
4863
4864
|
LEFT JOIN message msg ON m.id = msg.sender_id
|
|
4864
4865
|
WHERE COALESCE(m.group_nickname, m.account_name, m.platform_id) != '\u7CFB\u7EDF\u6D88\u606F'
|
|
4865
|
-
GROUP BY m.id ORDER BY messageCount DESC`
|
|
4866
|
+
GROUP BY m.id ORDER BY messageCount DESC, m.id ASC`
|
|
4866
4867
|
).all();
|
|
4867
4868
|
return rows.map(mapMemberRow);
|
|
4868
4869
|
}
|
|
@@ -4904,12 +4905,13 @@ function getMembersPaginated(db, params) {
|
|
|
4904
4905
|
m.id, m.platform_id as platformId,
|
|
4905
4906
|
m.account_name as accountName, m.group_nickname as groupNickname,
|
|
4906
4907
|
${aliasesSelect}, ${avatarSelect},
|
|
4907
|
-
COUNT(msg.id) as messageCount
|
|
4908
|
+
COUNT(msg.id) as messageCount,
|
|
4909
|
+
MAX(msg.ts) as lastMessageTs
|
|
4908
4910
|
FROM member m
|
|
4909
4911
|
LEFT JOIN message msg ON m.id = msg.sender_id
|
|
4910
4912
|
WHERE ${systemFilter} ${searchClause}
|
|
4911
4913
|
GROUP BY m.id
|
|
4912
|
-
ORDER BY messageCount ${sortDirection}
|
|
4914
|
+
ORDER BY messageCount ${sortDirection}, m.id ASC
|
|
4913
4915
|
LIMIT ? OFFSET ?`
|
|
4914
4916
|
).all(...searchParams, pageSize, offset);
|
|
4915
4917
|
return { members: rows.map(mapMemberRow), total, page, pageSize, totalPages };
|
|
@@ -4922,7 +4924,8 @@ function mapMemberRow(row) {
|
|
|
4922
4924
|
groupNickname: row.groupNickname,
|
|
4923
4925
|
aliases: row.aliases ? JSON.parse(row.aliases) : [],
|
|
4924
4926
|
avatar: row.avatar ?? null,
|
|
4925
|
-
messageCount: row.messageCount
|
|
4927
|
+
messageCount: row.messageCount,
|
|
4928
|
+
lastMessageTs: row.lastMessageTs == null ? null : Number(row.lastMessageTs)
|
|
4926
4929
|
};
|
|
4927
4930
|
}
|
|
4928
4931
|
function executeParameterizedSql(db, query, params = {}) {
|
|
@@ -9382,4 +9385,4 @@ export {
|
|
|
9382
9385
|
StaticPathProvider,
|
|
9383
9386
|
createDatabaseManagerAdapter
|
|
9384
9387
|
};
|
|
9385
|
-
//# sourceMappingURL=chunk-
|
|
9388
|
+
//# sourceMappingURL=chunk-IK7GJTGY.mjs.map
|