wednesdayai 0.5.1-dev.36 → 0.5.1-dev.37
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/{agent-scope-cTY4-zRz.js → agent-scope-CoIdVzmg.js} +3 -3
- package/dist/{agent-turn-runner-JxDS9bU_.js → agent-turn-runner-CiEPY6RO.js} +2 -2
- package/dist/{agent-turn-runner-7LQU6Fut.js → agent-turn-runner-DKwd_tAc.js} +6 -6
- package/dist/{api-key-rotation-BCh_J5f6.js → api-key-rotation-CoKWzuyV.js} +2 -2
- package/dist/{audio-preflight-C9EHsVrE.js → audio-preflight-BV83ctbI.js} +23 -23
- package/dist/{audio-preflight-Cxyte-N3.js → audio-preflight-CKFGJslr.js} +3 -3
- package/dist/{audio-transcription-runner-CoyogVcx.js → audio-transcription-runner-B-MEt_yD.js} +1 -1
- package/dist/{audio-transcription-runner-DXlkPfwW.js → audio-transcription-runner-DRUTJgZh.js} +25 -25
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +50 -50
- package/dist/bundled/bootstrap-extra-files/handler.js +5 -5
- package/dist/bundled/command-logger/handler.js +2 -2
- package/dist/bundled/session-journal/handler.js +50 -50
- package/dist/bundled/session-memory/handler.js +50 -50
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{chat-content-Cafge7N8.js → chat-content-01nUeO9I.js} +3 -3
- package/dist/{chat-content-Csm95kDY.js → chat-content-B2kNxQ3a.js} +39 -39
- package/dist/{chrome-H5-7mQ4m.js → chrome-DgDNUC2A.js} +4 -4
- package/dist/{chrome-D-DfD0Cv.js → chrome-kwiyU0Mr.js} +31 -31
- package/dist/{chunk-zortZzCP.js → chunk-BRJHaAd6.js} +3 -3
- package/dist/{command-queue-DfL4YmGb.js → command-queue-CRm1AADE.js} +1 -1
- package/dist/{commands-registry-Vo5C1XbD.js → commands-registry-D3lOVOa7.js} +2 -2
- package/dist/{deliver-BKt_OVTK.js → deliver-BoOCdGXY.js} +28 -28
- package/dist/{deliver-x22mTRDq.js → deliver-CgFkiA4Z.js} +1 -1
- package/dist/{diagnostic-8jsvSbYs.js → diagnostic-BSnQ1U_E.js} +3 -3
- package/dist/{errors-muW4vMSB.js → errors-CgPgYfWg.js} +1 -1
- package/dist/extensionAPI.js +6 -6
- package/dist/{fetch-Ciq99DHJ.js → fetch-BBi5dEoV.js} +8 -8
- package/dist/{fetch-B9Tca1cY.js → fetch-BrwJHFZR.js} +1 -1
- package/dist/{fetch-guard-DaJwMbcY.js → fetch-guard-BcLYPGi1.js} +2 -2
- package/dist/{frontmatter-BzlMEBkz.js → frontmatter-DQTIIgFI.js} +5 -5
- package/dist/{fs-safe-CDfp5e8Q.js → fs-safe-CRbowDkj.js} +26 -26
- package/dist/{ir-BczXO28b.js → ir-D___VWlp.js} +4 -4
- package/dist/{json-files-CNVg1Wi5.js → json-files-CurKd8gy.js} +28 -28
- package/dist/{legacy-names-CRCLZarD.js → legacy-names-D7ywm6_7.js} +1 -1
- package/dist/llm-slug-generator.js +50 -50
- package/dist/{manager-ywiQQ5nv.js → manager-yAtdyPwQ.js} +18 -18
- package/dist/{markdown-tables-CmGUH7Wy.js → markdown-tables-DfqPFbkZ.js} +2 -2
- package/dist/{model-selection-BJZFC8fA.js → model-selection-B7FYf8Fo.js} +83 -83
- package/dist/{outbound-attachment-BXAhY7Q6.js → outbound-attachment-BJq1brbB.js} +2 -2
- package/dist/{outbound-message-hooks-CjfNIFcN.js → outbound-message-hooks-Dl2zci3u.js} +5 -5
- package/dist/{path-alias-guards-BV6CR8H3.js → path-alias-guards-nWrE5acE.js} +1 -1
- package/dist/{pi-embedded-BzjQS2tl.js → pi-embedded-BAKd4NmP.js} +18 -18
- package/dist/{pi-embedded-D6Ti_RiY.js → pi-embedded-_YhHvi3M.js} +258 -258
- package/dist/{pi-model-discovery-PH-bhX7g.js → pi-model-discovery-CusLASy5.js} +7 -7
- package/dist/plugin-sdk/provider-media-understanding.js +7 -7
- package/dist/{proxy-env-DXcKRnns.js → proxy-env-DrmTb0QW.js} +1 -1
- package/dist/{pw-ai-ByUzz5o2.js → pw-ai-BKN66RLi.js} +13 -13
- package/dist/{pw-ai-qlENNDHC.js → pw-ai-CPIjXEgJ.js} +1 -1
- package/dist/{qmd-manager-CPPURYfg.js → qmd-manager-BYC9bX-E.js} +12 -12
- package/dist/{qmd-scope-dd_YbPG-.js → qmd-scope-D6tMcgqR.js} +1 -1
- package/dist/{query-expansion-0S2l-J2-.js → query-expansion-CnQI0IeV.js} +13 -13
- package/dist/{recorder-CrrhLZt5.js → recorder-B7dhxQ62.js} +2 -2
- package/dist/{redact-BkE4uRXu.js → redact-CysJDryP.js} +1 -1
- package/dist/{replies-j6q2EArA.js → replies-CP8xbTSR.js} +5 -5
- package/dist/{reply-prefix-BCu_i91I.js → reply-prefix-C7r81KLS.js} +1 -1
- package/dist/{resolve-route-WUZ7lH6L.js → resolve-route-BvD1w4_v.js} +4 -4
- package/dist/{send-lY0a6iA2.js → send-4WdiWuFu.js} +8 -8
- package/dist/{send-CFG2EYja.js → send-BZv91SjC.js} +6 -6
- package/dist/{send-80rMjd6V.js → send-CjR30q4U.js} +8 -8
- package/dist/{send-D1aXT71a.js → send-bmlVFiBl.js} +7 -7
- package/dist/{session-meta-BjRAI6ON.js → session-meta-BeqTuIFU.js} +1 -1
- package/dist/{sessions-B6iaKddN.js → sessions-BjSGNjb0.js} +5 -5
- package/dist/{skill-commands-BG0ravVA.js → skill-commands-CcrQquVr.js} +8 -8
- package/dist/{store-BXWb__DD.js → store-DniD8E6a.js} +7 -7
- package/dist/{tables-CBpS5G91.js → tables-BbmkAuhA.js} +1 -1
- package/dist/{tokens-Q7TMdIpT.js → tokens-C2ll8wSq.js} +1 -1
- package/dist/{tool-loop-detection-CVIDnpv_.js → tool-loop-detection-B0Jj6y2H.js} +2 -2
- package/dist/{user-run-recording-DNsWtMOn.js → user-run-recording-COpooN64.js} +2 -2
- package/dist/{workspace-D8z8s1Xz.js → workspace-xnzx7wEV.js} +26 -26
- package/extensions/acpx/package.json +1 -1
- package/extensions/anthropic/package.json +1 -1
- package/extensions/bifrost/package.json +1 -1
- package/extensions/bluebubbles/package.json +1 -1
- package/extensions/copilot-proxy/package.json +1 -1
- package/extensions/deepgram/package.json +1 -1
- package/extensions/deepinfra/package.json +1 -1
- package/extensions/diagnostics-otel/package.json +1 -1
- package/extensions/diffs/package.json +1 -1
- package/extensions/discord/package.json +1 -1
- package/extensions/dream-cycle/package.json +1 -1
- package/extensions/elevenlabs/package.json +1 -1
- package/extensions/feishu/package.json +1 -1
- package/extensions/gemini-search/package.json +1 -1
- package/extensions/google/package.json +1 -1
- package/extensions/google-gemini-cli-auth/package.json +1 -1
- package/extensions/googlechat/package.json +1 -1
- package/extensions/grok-search/package.json +1 -1
- package/extensions/groq/package.json +1 -1
- package/extensions/imessage/package.json +1 -1
- package/extensions/irc/package.json +1 -1
- package/extensions/kimi-search/package.json +1 -1
- package/extensions/kokoro/package.json +1 -1
- package/extensions/learning-core/package.json +1 -1
- package/extensions/line/package.json +1 -1
- package/extensions/llm-task/package.json +1 -1
- package/extensions/lobster/package.json +1 -1
- package/extensions/matrix/CHANGELOG.md +1 -1
- package/extensions/matrix/package.json +1 -1
- package/extensions/mattermost/package.json +1 -1
- package/extensions/memory-core/package.json +1 -1
- package/extensions/memory-lancedb/package.json +1 -1
- package/extensions/minimax/package.json +1 -1
- package/extensions/minimax-portal-auth/package.json +1 -1
- package/extensions/mistral/package.json +1 -1
- package/extensions/moonshot/package.json +1 -1
- package/extensions/msteams/CHANGELOG.md +1 -1
- package/extensions/msteams/package.json +1 -1
- package/extensions/nextcloud-talk/package.json +1 -1
- package/extensions/nostr/CHANGELOG.md +1 -1
- package/extensions/nostr/package.json +1 -1
- package/extensions/open-prose/package.json +1 -1
- package/extensions/openai/package.json +1 -1
- package/extensions/openai-realtime/package.json +1 -1
- package/extensions/openrouter/package.json +1 -1
- package/extensions/perplexity-search/package.json +1 -1
- package/extensions/searxng-search/package.json +1 -1
- package/extensions/signal/package.json +1 -1
- package/extensions/slack/package.json +1 -1
- package/extensions/synology-chat/package.json +1 -1
- package/extensions/telegram/package.json +1 -1
- package/extensions/tlon/package.json +1 -1
- package/extensions/twitch/CHANGELOG.md +1 -1
- package/extensions/twitch/package.json +1 -1
- package/extensions/ui-surfaces/package.json +1 -1
- package/extensions/voice-call/CHANGELOG.md +1 -1
- package/extensions/voice-call/package.json +1 -1
- package/extensions/whatsapp/package.json +1 -1
- package/extensions/zai/package.json +1 -1
- package/extensions/zalo/CHANGELOG.md +1 -1
- package/extensions/zalo/package.json +1 -1
- package/extensions/zalouser/CHANGELOG.md +1 -1
- package/extensions/zalouser/package.json +1 -1
- package/package.json +1 -1
- package/dist/github-copilot-token-DrVydgnY.js +0 -106
- package/dist/paths-BIDPYPVC.js +0 -233
- package/dist/subsystem-BOg9wqSC.js +0 -2777
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import { a as resolveAgentEffectiveModelPrimary, c as resolveAgentWorkspaceDir, i as resolveAgentDir, l as resolveDefaultAgentId } from "./agent-scope-
|
|
2
|
-
import "./paths-
|
|
3
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
4
|
-
import "./workspace-
|
|
5
|
-
import { Da as DEFAULT_PROVIDER, Ea as DEFAULT_MODEL, l as parseModelRef } from "./model-selection-
|
|
6
|
-
import "./github-copilot-token-
|
|
7
|
-
import "./legacy-names-
|
|
8
|
-
import "./send-
|
|
9
|
-
import "./send-
|
|
10
|
-
import "./tokens-
|
|
11
|
-
import { t as runEmbeddedPiAgent } from "./pi-embedded-
|
|
12
|
-
import "./sessions-
|
|
1
|
+
import { a as resolveAgentEffectiveModelPrimary, c as resolveAgentWorkspaceDir, i as resolveAgentDir, l as resolveDefaultAgentId } from "./agent-scope-CoIdVzmg.js";
|
|
2
|
+
import "./paths-B_gs59ga.js";
|
|
3
|
+
import { t as createSubsystemLogger } from "./subsystem-DynBFcQj.js";
|
|
4
|
+
import "./workspace-xnzx7wEV.js";
|
|
5
|
+
import { Da as DEFAULT_PROVIDER, Ea as DEFAULT_MODEL, l as parseModelRef } from "./model-selection-B7FYf8Fo.js";
|
|
6
|
+
import "./github-copilot-token-BJeEWDJb.js";
|
|
7
|
+
import "./legacy-names-D7ywm6_7.js";
|
|
8
|
+
import "./send-bmlVFiBl.js";
|
|
9
|
+
import "./send-4WdiWuFu.js";
|
|
10
|
+
import "./tokens-C2ll8wSq.js";
|
|
11
|
+
import { t as runEmbeddedPiAgent } from "./pi-embedded-_YhHvi3M.js";
|
|
12
|
+
import "./sessions-BjSGNjb0.js";
|
|
13
13
|
import "./diagnostic-events-BTSwhIfk.js";
|
|
14
|
-
import "./diagnostic-
|
|
14
|
+
import "./diagnostic-BSnQ1U_E.js";
|
|
15
15
|
import "./diagnostic-session-state-DJQj3Ka7.js";
|
|
16
|
-
import "./redact-
|
|
17
|
-
import "./command-queue-
|
|
18
|
-
import "./fetch-
|
|
19
|
-
import "./pi-model-discovery-
|
|
20
|
-
import "./chat-content-
|
|
21
|
-
import "./chrome-
|
|
22
|
-
import "./frontmatter-
|
|
23
|
-
import "./json-files-
|
|
24
|
-
import "./path-alias-guards-
|
|
25
|
-
import "./errors-
|
|
26
|
-
import "./fs-safe-
|
|
27
|
-
import "./proxy-env-
|
|
28
|
-
import "./store-
|
|
29
|
-
import "./fetch-guard-
|
|
16
|
+
import "./redact-CysJDryP.js";
|
|
17
|
+
import "./command-queue-CRm1AADE.js";
|
|
18
|
+
import "./fetch-BBi5dEoV.js";
|
|
19
|
+
import "./pi-model-discovery-CusLASy5.js";
|
|
20
|
+
import "./chat-content-B2kNxQ3a.js";
|
|
21
|
+
import "./chrome-DgDNUC2A.js";
|
|
22
|
+
import "./frontmatter-DQTIIgFI.js";
|
|
23
|
+
import "./json-files-CurKd8gy.js";
|
|
24
|
+
import "./path-alias-guards-nWrE5acE.js";
|
|
25
|
+
import "./errors-CgPgYfWg.js";
|
|
26
|
+
import "./fs-safe-CRbowDkj.js";
|
|
27
|
+
import "./proxy-env-DrmTb0QW.js";
|
|
28
|
+
import "./store-DniD8E6a.js";
|
|
29
|
+
import "./fetch-guard-BcLYPGi1.js";
|
|
30
30
|
import "./thinking-CwmtMy_H.js";
|
|
31
|
-
import "./audio-transcription-runner-
|
|
32
|
-
import "./api-key-rotation-
|
|
33
|
-
import "./reply-prefix-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./markdown-tables-
|
|
36
|
-
import "./ir-
|
|
31
|
+
import "./audio-transcription-runner-DRUTJgZh.js";
|
|
32
|
+
import "./api-key-rotation-CoKWzuyV.js";
|
|
33
|
+
import "./reply-prefix-C7r81KLS.js";
|
|
34
|
+
import "./chunk-BRJHaAd6.js";
|
|
35
|
+
import "./markdown-tables-DfqPFbkZ.js";
|
|
36
|
+
import "./ir-D___VWlp.js";
|
|
37
37
|
import "./render-TpKSK5RV.js";
|
|
38
|
-
import "./commands-registry-
|
|
39
|
-
import "./user-run-recording-
|
|
40
|
-
import "./recorder-
|
|
41
|
-
import "./agent-turn-runner-
|
|
42
|
-
import "./skill-commands-
|
|
43
|
-
import "./outbound-message-hooks-
|
|
44
|
-
import "./deliver-
|
|
45
|
-
import "./fetch-
|
|
46
|
-
import "./tables-
|
|
47
|
-
import "./send-
|
|
48
|
-
import "./outbound-attachment-
|
|
49
|
-
import "./send-
|
|
50
|
-
import "./resolve-route-
|
|
51
|
-
import "./session-meta-
|
|
52
|
-
import "./replies-
|
|
53
|
-
import "./manager-
|
|
54
|
-
import "./query-expansion-
|
|
38
|
+
import "./commands-registry-D3lOVOa7.js";
|
|
39
|
+
import "./user-run-recording-COpooN64.js";
|
|
40
|
+
import "./recorder-B7dhxQ62.js";
|
|
41
|
+
import "./agent-turn-runner-DKwd_tAc.js";
|
|
42
|
+
import "./skill-commands-CcrQquVr.js";
|
|
43
|
+
import "./outbound-message-hooks-Dl2zci3u.js";
|
|
44
|
+
import "./deliver-BoOCdGXY.js";
|
|
45
|
+
import "./fetch-BrwJHFZR.js";
|
|
46
|
+
import "./tables-BbmkAuhA.js";
|
|
47
|
+
import "./send-CjR30q4U.js";
|
|
48
|
+
import "./outbound-attachment-BJq1brbB.js";
|
|
49
|
+
import "./send-BZv91SjC.js";
|
|
50
|
+
import "./resolve-route-BvD1w4_v.js";
|
|
51
|
+
import "./session-meta-BeqTuIFU.js";
|
|
52
|
+
import "./replies-CP8xbTSR.js";
|
|
53
|
+
import "./manager-yAtdyPwQ.js";
|
|
54
|
+
import "./query-expansion-CnQI0IeV.js";
|
|
55
55
|
|
|
56
56
|
//#region src/hooks/llm-slug-generator.ts
|
|
57
57
|
/**
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { c as resolveAgentWorkspaceDir, i as resolveAgentDir, r as resolveAgentConfig } from "./agent-scope-
|
|
3
|
-
import { l as resolveStateDir } from "./paths-
|
|
4
|
-
import { $ as clampNumber, Q as clampInt, pt as truncateUtf16Safe, st as resolveUserPath, t as createSubsystemLogger } from "./subsystem-
|
|
5
|
-
import { A as requireApiKey, Gn as resolveSessionTranscriptsDirForAgent, M as resolveEnvApiKey, Sa as normalizeResolvedSecretInputString, U as loadConfig, j as resolveApiKeyForProvider, oa as isTruthyEnvValue, va as normalizeOptionalSecretInput, x as retryAsync } from "./model-selection-
|
|
2
|
+
import { c as resolveAgentWorkspaceDir, i as resolveAgentDir, r as resolveAgentConfig } from "./agent-scope-CoIdVzmg.js";
|
|
3
|
+
import { l as resolveStateDir } from "./paths-B_gs59ga.js";
|
|
4
|
+
import { $ as clampNumber, Q as clampInt, pt as truncateUtf16Safe, st as resolveUserPath, t as createSubsystemLogger } from "./subsystem-DynBFcQj.js";
|
|
5
|
+
import { A as requireApiKey, Gn as resolveSessionTranscriptsDirForAgent, M as resolveEnvApiKey, Sa as normalizeResolvedSecretInputString, U as loadConfig, j as resolveApiKeyForProvider, oa as isTruthyEnvValue, va as normalizeOptionalSecretInput, x as retryAsync } from "./model-selection-B7FYf8Fo.js";
|
|
6
6
|
import { n as onSessionTranscriptUpdate } from "./transcript-events-C2lcxc6-.js";
|
|
7
|
-
import { r as formatErrorMessage } from "./errors-
|
|
8
|
-
import { s as resolveNetworkSsrFPolicy, t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
9
|
-
import { n as executeWithApiKeyRotation, t as collectProviderApiKeysForExecution } from "./api-key-rotation-
|
|
10
|
-
import { _ as runWithConcurrency, a as resolveSessionMemoryStores, c as chunkMarkdown, d as hashText, f as isMemoryPath, g as remapChunkLines, h as parseEmbedding, i as listSessionMemoryRows, l as cosineSimilarity, m as normalizeExtraMemoryPaths, n as requireNodeSqlite, o as sessionMemorySourceId, p as listMemoryFiles, r as buildSessionMemoryEntry, s as buildFileEntry, t as extractKeywords, u as ensureDir, v as isFileMissingError, y as statRegularFile } from "./query-expansion-
|
|
7
|
+
import { r as formatErrorMessage } from "./errors-CgPgYfWg.js";
|
|
8
|
+
import { s as resolveNetworkSsrFPolicy, t as fetchWithSsrFGuard } from "./fetch-guard-BcLYPGi1.js";
|
|
9
|
+
import { n as executeWithApiKeyRotation, t as collectProviderApiKeysForExecution } from "./api-key-rotation-CoKWzuyV.js";
|
|
10
|
+
import { _ as runWithConcurrency, a as resolveSessionMemoryStores, c as chunkMarkdown, d as hashText, f as isMemoryPath, g as remapChunkLines, h as parseEmbedding, i as listSessionMemoryRows, l as cosineSimilarity, m as normalizeExtraMemoryPaths, n as requireNodeSqlite, o as sessionMemorySourceId, p as listMemoryFiles, r as buildSessionMemoryEntry, s as buildFileEntry, t as extractKeywords, u as ensureDir, v as isFileMissingError, y as statRegularFile } from "./query-expansion-CnQI0IeV.js";
|
|
11
11
|
import path from "node:path";
|
|
12
|
-
import
|
|
12
|
+
import syncFs from "node:fs";
|
|
13
13
|
import os from "node:os";
|
|
14
|
-
import fs
|
|
14
|
+
import fs from "node:fs/promises";
|
|
15
15
|
import { randomUUID } from "node:crypto";
|
|
16
16
|
import chokidar from "chokidar";
|
|
17
17
|
import { createInterface } from "node:readline";
|
|
@@ -747,7 +747,7 @@ function canAutoSelectLocal(options) {
|
|
|
747
747
|
if (/^(hf:|https?:)/i.test(modelPath)) return false;
|
|
748
748
|
const resolved = resolveUserPath(modelPath);
|
|
749
749
|
try {
|
|
750
|
-
return
|
|
750
|
+
return syncFs.statSync(resolved).isFile();
|
|
751
751
|
} catch {
|
|
752
752
|
return false;
|
|
753
753
|
}
|
|
@@ -1075,7 +1075,7 @@ async function extractTimestamp(params) {
|
|
|
1075
1075
|
if (!params.workspaceDir) return null;
|
|
1076
1076
|
const absolutePath = path.isAbsolute(params.filePath) ? params.filePath : path.resolve(params.workspaceDir, params.filePath);
|
|
1077
1077
|
try {
|
|
1078
|
-
const stat = await fs
|
|
1078
|
+
const stat = await fs.stat(absolutePath);
|
|
1079
1079
|
if (!Number.isFinite(stat.mtimeMs)) return null;
|
|
1080
1080
|
return new Date(stat.mtimeMs);
|
|
1081
1081
|
} catch {
|
|
@@ -2246,7 +2246,7 @@ var MemoryManagerSyncOps = class {
|
|
|
2246
2246
|
const source = `${sourceBase}${suffix}`;
|
|
2247
2247
|
const target = `${targetBase}${suffix}`;
|
|
2248
2248
|
try {
|
|
2249
|
-
await fs
|
|
2249
|
+
await fs.rename(source, target);
|
|
2250
2250
|
} catch (err) {
|
|
2251
2251
|
if (err.code !== "ENOENT") throw err;
|
|
2252
2252
|
}
|
|
@@ -2257,7 +2257,7 @@ var MemoryManagerSyncOps = class {
|
|
|
2257
2257
|
"",
|
|
2258
2258
|
"-wal",
|
|
2259
2259
|
"-shm"
|
|
2260
|
-
].map((suffix) => fs
|
|
2260
|
+
].map((suffix) => fs.rm(`${basePath}${suffix}`, { force: true })));
|
|
2261
2261
|
}
|
|
2262
2262
|
ensureSchema() {
|
|
2263
2263
|
const result = ensureMemoryIndexSchema({
|
|
@@ -2281,7 +2281,7 @@ var MemoryManagerSyncOps = class {
|
|
|
2281
2281
|
]);
|
|
2282
2282
|
const additionalPaths = normalizeExtraMemoryPaths(this.workspaceDir, this.settings.extraPaths);
|
|
2283
2283
|
for (const entry of additionalPaths) try {
|
|
2284
|
-
const stat =
|
|
2284
|
+
const stat = syncFs.lstatSync(entry);
|
|
2285
2285
|
if (stat.isSymbolicLink()) continue;
|
|
2286
2286
|
if (stat.isDirectory()) {
|
|
2287
2287
|
watchPaths.add(path.join(entry, "**", "*.md"));
|
|
@@ -3304,7 +3304,7 @@ var MemoryManagerEmbeddingOps = class extends MemoryManagerSyncOps {
|
|
|
3304
3304
|
});
|
|
3305
3305
|
return;
|
|
3306
3306
|
}
|
|
3307
|
-
const content = options.content ?? ("absPath" in entry ? await fs
|
|
3307
|
+
const content = options.content ?? ("absPath" in entry ? await fs.readFile(entry.absPath, "utf-8") : void 0);
|
|
3308
3308
|
if (content === void 0) throw new Error(`memory index: session source ${entry.path} produced no content`);
|
|
3309
3309
|
const chunks = enforceEmbeddingMaxInputTokens(this.provider, chunkMarkdown(content, this.settings.chunking).filter((chunk) => chunk.text.trim().length > 0), EMBEDDING_BATCH_MAX_TOKENS);
|
|
3310
3310
|
if (options.source === "sessions" && "lineMap" in entry) remapChunkLines(chunks, entry.lineMap);
|
|
@@ -3744,7 +3744,7 @@ var MemoryIndexManager = class MemoryIndexManager extends MemoryManagerEmbedding
|
|
|
3744
3744
|
if (!allowedWorkspace && this.settings.extraPaths.length > 0) {
|
|
3745
3745
|
const additionalPaths = normalizeExtraMemoryPaths(this.workspaceDir, this.settings.extraPaths);
|
|
3746
3746
|
for (const additionalPath of additionalPaths) try {
|
|
3747
|
-
const stat = await fs
|
|
3747
|
+
const stat = await fs.lstat(additionalPath);
|
|
3748
3748
|
if (stat.isSymbolicLink()) continue;
|
|
3749
3749
|
if (stat.isDirectory()) {
|
|
3750
3750
|
if (absPath === additionalPath || absPath.startsWith(`${additionalPath}${path.sep}`)) {
|
|
@@ -3769,7 +3769,7 @@ var MemoryIndexManager = class MemoryIndexManager extends MemoryManagerEmbedding
|
|
|
3769
3769
|
};
|
|
3770
3770
|
let content;
|
|
3771
3771
|
try {
|
|
3772
|
-
content = await fs
|
|
3772
|
+
content = await fs.readFile(absPath, "utf-8");
|
|
3773
3773
|
} catch (err) {
|
|
3774
3774
|
if (isFileMissingError(err)) return {
|
|
3775
3775
|
text: "",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { G as normalizeAccountId } from "./workspace-
|
|
3
|
-
import { Or as resolveAccountEntry, tr as normalizeChannelId } from "./model-selection-
|
|
2
|
+
import { G as normalizeAccountId } from "./workspace-xnzx7wEV.js";
|
|
3
|
+
import { Or as resolveAccountEntry, tr as normalizeChannelId } from "./model-selection-B7FYf8Fo.js";
|
|
4
4
|
|
|
5
5
|
//#region src/config/markdown-tables.ts
|
|
6
6
|
var markdown_tables_exports = /* @__PURE__ */ __exportAll({ resolveMarkdownTableMode: () => resolveMarkdownTableMode });
|