wednesdayai 0.5.1-dev.25 → 0.5.1-dev.27
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-BKsGMXqc.js → agent-scope-DCgndASv.js} +3 -3
- package/dist/{agent-turn-runner-LKV3FMwQ.js → agent-turn-runner-CX7rX8by.js} +6 -6
- package/dist/{api-key-rotation-DZNFm4xG.js → api-key-rotation-dv2YbGr8.js} +2 -2
- package/dist/{audio-preflight-DQous9JR.js → audio-preflight-Qwb3oAbc.js} +29 -29
- package/dist/{audio-transcription-runner-BK3cV_ad.js → audio-transcription-runner-C4eHWIy0.js} +26 -26
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +60 -60
- package/dist/bundled/bootstrap-extra-files/handler.js +6 -6
- package/dist/bundled/command-logger/handler.js +2 -2
- package/dist/bundled/session-journal/handler.js +60 -60
- package/dist/bundled/session-memory/handler.js +60 -60
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-activity-BAxUpg5h.js → channel-activity-Kn1_ykXE.js} +3 -3
- package/dist/{chat-content-BWkiC3u3.js → chat-content-CX7Bfpgy.js} +34 -34
- package/dist/{chrome-Dzgbe0zH.js → chrome-Bukcguhv.js} +31 -31
- package/dist/{chunk-Bvf22vTh.js → chunk-CEygNI3g.js} +3 -3
- package/dist/{command-queue-BOMFLCHM.js → command-queue-DOzYI9q4.js} +1 -1
- package/dist/{commands-registry-Da3c0MbL.js → commands-registry-Cof4HjvY.js} +2 -2
- package/dist/config.js +9 -9
- package/dist/{deliver-CJjQbaJE.js → deliver-BaTG7V5x.js} +29 -29
- package/dist/{diagnostic-Dn_o8RGN.js → diagnostic-DMrDenZI.js} +5 -5
- package/dist/{errors-1FTZDNVR.js → errors-COs_vQr3.js} +1 -1
- package/dist/{fetch-CnDdghbc.js → fetch-B1ohBh6A.js} +8 -8
- package/dist/{fetch-guard-B6BYdjiQ.js → fetch-guard-BXzVwvnJ.js} +3 -3
- package/dist/{frontmatter-DvbDhvt1.js → frontmatter-Cw_6jMAR.js} +3 -3
- package/dist/{fs-safe-IYMDplSg.js → fs-safe-BK5ALzKD.js} +26 -26
- package/dist/github-copilot-token-DYYKoDuV.js +106 -0
- package/dist/{image-ops-BuzZGoUm.js → image-ops-C-5VgbLB.js} +1 -1
- package/dist/{ir-CBsM7qoP.js → ir-DioI2VyB.js} +5 -5
- package/dist/{legacy-names-Ckds5WWe.js → legacy-names-CghFcfry.js} +1 -1
- package/dist/llm-slug-generator.js +60 -60
- package/dist/{logger-BeXVb5cn.js → logger-J4xjy-6D.js} +1 -1
- package/dist/{manager-BujYLKny.js → manager-D728Thsn.js} +18 -18
- package/dist/{markdown-tables-WuCFdPlC.js → markdown-tables-DfLMw9ti.js} +2 -2
- package/dist/{model-selection-CHi8o17y.js → model-selection-BHGpQSa9.js} +83 -83
- package/dist/{models-config-CAlyknIh.js → models-config-CJUMccZW.js} +2 -2
- package/dist/{outbound-attachment-C6mfyze2.js → outbound-attachment-DtVXUXnX.js} +2 -2
- package/dist/{outbound-message-hooks-jUzcd2OQ.js → outbound-message-hooks-7ErHCBLv.js} +5 -5
- package/dist/{path-alias-guards-BgOxr6f8.js → path-alias-guards-E9ntDORB.js} +1 -1
- package/dist/paths-BIDPYPVC.js +233 -0
- package/dist/{pi-embedded-aOKwlbog.js → pi-embedded-DpTacVAX.js} +277 -277
- package/dist/{pi-embedded-utils-BGvDJMAA.js → pi-embedded-utils-BAaHvb5G.js} +3 -3
- package/dist/{pi-model-discovery-CYfRyzsD.js → pi-model-discovery-BaH_6win.js} +7 -7
- package/dist/plugin-sdk/{agent-turn-execute-C6g1y27e.js → agent-turn-execute-Dg4sVJSk.js} +12 -12
- package/dist/plugin-sdk/{agent-turn-runner-BkP71ySA.js → agent-turn-runner-CD9Y0Gsf.js} +4 -4
- package/dist/plugin-sdk/{audio-preflight-CsMLbzm_.js → audio-preflight-GgmY1Zte.js} +5 -5
- package/dist/plugin-sdk/{audio-transcription-runner-2bpzZm3F.js → audio-transcription-runner-0gef4Ef0.js} +1 -1
- package/dist/plugin-sdk/{chat-content-CCOQCwrz.js → chat-content-Dpzf2nbZ.js} +3 -3
- package/dist/plugin-sdk/{chrome-C2bUQR0d.js → chrome-D9DwZOSC.js} +8 -8
- package/dist/plugin-sdk/{command-queue-J0ZpvnYU.js → command-queue-Cm8QKC0F.js} +1 -1
- package/dist/plugin-sdk/{deliver-CT3Lk2kq.js → deliver-CZVPDUrt.js} +1 -1
- package/dist/plugin-sdk/{deliver-dkNTCb3Z.js → deliver-D6hs0zDt.js} +3 -3
- package/dist/plugin-sdk/{diagnostic-C-Clqb63.js → diagnostic-Bi52EuT5.js} +1 -1
- package/dist/plugin-sdk/{monitor-BHeL2-is.js → monitor-BrUwRgsT.js} +32 -32
- package/dist/plugin-sdk/{pi-embedded-utils-BmeLQMRx.js → pi-embedded-utils-CeNVVYT3.js} +1 -1
- package/dist/plugin-sdk/{provider-dispatcher-BkEWKVLB.js → provider-dispatcher-Bx_RMlu-.js} +12 -12
- package/dist/plugin-sdk/{provider-image-QDVfXKph.js → provider-image-CBXOs7yQ.js} +4 -4
- package/dist/plugin-sdk/{provider-image-BSV8WjkR.js → provider-image-DH8Jro3J.js} +1 -1
- package/dist/plugin-sdk/{pw-ai-QlS2E2LB.js → pw-ai-BP4Kwaqc.js} +1 -1
- package/dist/plugin-sdk/{runs-8iACp6xv.js → runs-C1Lvxfri.js} +3 -3
- package/dist/plugin-sdk/{runs-D0UdtKVI.js → runs-DG49eFuR.js} +5 -5
- package/dist/plugin-sdk/{send-BP8o2l4w.js → send-BguPpGBL.js} +2 -2
- package/dist/plugin-sdk/{send-CYZi6dwK.js → send-CcEF6VcP.js} +1 -1
- package/dist/plugin-sdk/{subagent-registry-DA50ITkO.js → subagent-registry-B4EmS6cu.js} +12 -12
- package/dist/plugin-sdk/testing.js +12 -12
- package/dist/{provider-image-CNBkTbhu.js → provider-image-BSkZoSBN.js} +6 -6
- package/dist/{proxy-Ds4gxPy8.js → proxy-CrSpy5Aw.js} +1 -1
- package/dist/{proxy-env-DAf-b2bM.js → proxy-env-BxR4m86L.js} +1 -1
- package/dist/{proxy-fetch-M3YAp_Kv.js → proxy-fetch-g109vqdt.js} +1 -1
- package/dist/{pw-ai-BcibeG9a.js → pw-ai-CNTt9O_x.js} +14 -14
- package/dist/{qmd-manager-C3UBJiCk.js → qmd-manager-CU9iEql0.js} +12 -12
- package/dist/{query-expansion-BT5lS0um.js → query-expansion-B_2rETEo.js} +13 -13
- package/dist/{recorder-B08vNxya.js → recorder-Clg9Kbqu.js} +2 -2
- package/dist/{redact-CKI6SufO.js → redact-DpE5Tg36.js} +1 -1
- package/dist/{replies-BHkXhmOj.js → replies-Cty02S3t.js} +5 -5
- package/dist/{reply-directives-DkfwzHl4.js → reply-directives-BIh2AkNd.js} +2 -2
- package/dist/{reply-prefix-DS2s69iC.js → reply-prefix-C-DjHvQK.js} +1 -1
- package/dist/{resolve-route-DxuZn3_M.js → resolve-route-DKZiteo6.js} +5 -5
- package/dist/{runs-DFvW_PVw.js → runs-6Q7RU60m.js} +9 -9
- package/dist/{send-D2WSE41A.js → send-Bf4geLyV.js} +8 -8
- package/dist/{send-mILKKt54.js → send-CsDSBjFo.js} +6 -6
- package/dist/{send-yIxOvEiz.js → send-DQvfLvpJ.js} +6 -6
- package/dist/{send-2aTk7PU-.js → send-VDe5tGbO.js} +28 -28
- package/dist/{send-odd2G3DX.js → send-bwKTbNlJ.js} +7 -7
- package/dist/{session-meta-B8B6RwSE.js → session-meta-5XI6vLtM.js} +1 -1
- package/dist/{sessions-DC7A0bw-.js → sessions-DF9biCmh.js} +5 -5
- package/dist/{skill-commands-DdVSQNce.js → skill-commands-CAOvM2sb.js} +8 -8
- package/dist/{skills-BXMjgvRl.js → skills-VN1CJK6W.js} +21 -21
- package/dist/{store-BVdeIl7N.js → store-HgGweM4u.js} +7 -7
- package/dist/subsystem-BZy3aWdW.js +2761 -0
- package/dist/{tables-yHwb0GsI.js → tables-DkwNUhx1.js} +1 -1
- package/dist/{tokens-CXBau-U0.js → tokens-PMai9bNL.js} +1 -1
- package/dist/{tool-loop-detection-Bw8B0hV3.js → tool-loop-detection-BqyMjpvr.js} +2 -2
- package/dist/{user-run-recording-8MZq1Us4.js → user-run-recording-B1HujJiT.js} +2 -2
- package/dist/{workspace-DK2ZEkpT.js → workspace-Bj1Jegt-.js} +27 -27
- 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/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 +6 -3
- package/scripts/install.ps1 +329 -0
- package/scripts/install.sh +2479 -0
|
@@ -1,68 +1,68 @@
|
|
|
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 "./logger-
|
|
6
|
-
import { Aa as DEFAULT_MODEL, ja as DEFAULT_PROVIDER, l as parseModelRef } from "./model-selection-
|
|
7
|
-
import "./github-copilot-token-
|
|
8
|
-
import "./legacy-names-
|
|
9
|
-
import "./send-
|
|
10
|
-
import "./send-
|
|
11
|
-
import { t as runEmbeddedPiAgent } from "./pi-embedded-
|
|
12
|
-
import "./tokens-
|
|
13
|
-
import "./sessions-
|
|
1
|
+
import { a as resolveAgentEffectiveModelPrimary, c as resolveAgentWorkspaceDir, i as resolveAgentDir, l as resolveDefaultAgentId } from "./agent-scope-DCgndASv.js";
|
|
2
|
+
import "./paths-BIDPYPVC.js";
|
|
3
|
+
import { t as createSubsystemLogger } from "./subsystem-BZy3aWdW.js";
|
|
4
|
+
import "./workspace-Bj1Jegt-.js";
|
|
5
|
+
import "./logger-J4xjy-6D.js";
|
|
6
|
+
import { Aa as DEFAULT_MODEL, ja as DEFAULT_PROVIDER, l as parseModelRef } from "./model-selection-BHGpQSa9.js";
|
|
7
|
+
import "./github-copilot-token-DYYKoDuV.js";
|
|
8
|
+
import "./legacy-names-CghFcfry.js";
|
|
9
|
+
import "./send-bwKTbNlJ.js";
|
|
10
|
+
import "./send-Bf4geLyV.js";
|
|
11
|
+
import { t as runEmbeddedPiAgent } from "./pi-embedded-DpTacVAX.js";
|
|
12
|
+
import "./tokens-PMai9bNL.js";
|
|
13
|
+
import "./sessions-DF9biCmh.js";
|
|
14
14
|
import "./diagnostic-events-DGRcTqIH.js";
|
|
15
|
-
import "./diagnostic-
|
|
15
|
+
import "./diagnostic-DMrDenZI.js";
|
|
16
16
|
import "./diagnostic-session-state-Bnyx-w0F.js";
|
|
17
|
-
import "./redact-
|
|
18
|
-
import "./command-queue-
|
|
19
|
-
import "./send-
|
|
20
|
-
import "./image-ops-
|
|
21
|
-
import "./pi-model-discovery-
|
|
22
|
-
import "./chat-content-
|
|
23
|
-
import "./chrome-
|
|
24
|
-
import "./frontmatter-
|
|
25
|
-
import "./skills-
|
|
26
|
-
import "./path-alias-guards-
|
|
27
|
-
import "./errors-
|
|
28
|
-
import "./fs-safe-
|
|
29
|
-
import "./proxy-env-
|
|
30
|
-
import "./store-
|
|
17
|
+
import "./redact-DpE5Tg36.js";
|
|
18
|
+
import "./command-queue-DOzYI9q4.js";
|
|
19
|
+
import "./send-VDe5tGbO.js";
|
|
20
|
+
import "./image-ops-C-5VgbLB.js";
|
|
21
|
+
import "./pi-model-discovery-BaH_6win.js";
|
|
22
|
+
import "./chat-content-CX7Bfpgy.js";
|
|
23
|
+
import "./chrome-Bukcguhv.js";
|
|
24
|
+
import "./frontmatter-Cw_6jMAR.js";
|
|
25
|
+
import "./skills-VN1CJK6W.js";
|
|
26
|
+
import "./path-alias-guards-E9ntDORB.js";
|
|
27
|
+
import "./errors-COs_vQr3.js";
|
|
28
|
+
import "./fs-safe-BK5ALzKD.js";
|
|
29
|
+
import "./proxy-env-BxR4m86L.js";
|
|
30
|
+
import "./store-HgGweM4u.js";
|
|
31
31
|
import "./thinking-CcoiS9V4.js";
|
|
32
|
-
import "./models-config-
|
|
33
|
-
import "./audio-transcription-runner-
|
|
34
|
-
import "./pi-embedded-utils-
|
|
35
|
-
import "./provider-image-
|
|
36
|
-
import "./fetch-
|
|
37
|
-
import "./fetch-guard-
|
|
38
|
-
import "./proxy-fetch-
|
|
39
|
-
import "./api-key-rotation-
|
|
40
|
-
import "./reply-prefix-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./markdown-tables-
|
|
43
|
-
import "./ir-
|
|
32
|
+
import "./models-config-CJUMccZW.js";
|
|
33
|
+
import "./audio-transcription-runner-C4eHWIy0.js";
|
|
34
|
+
import "./pi-embedded-utils-BAaHvb5G.js";
|
|
35
|
+
import "./provider-image-BSkZoSBN.js";
|
|
36
|
+
import "./fetch-B1ohBh6A.js";
|
|
37
|
+
import "./fetch-guard-BXzVwvnJ.js";
|
|
38
|
+
import "./proxy-fetch-g109vqdt.js";
|
|
39
|
+
import "./api-key-rotation-dv2YbGr8.js";
|
|
40
|
+
import "./reply-prefix-C-DjHvQK.js";
|
|
41
|
+
import "./chunk-CEygNI3g.js";
|
|
42
|
+
import "./markdown-tables-DfLMw9ti.js";
|
|
43
|
+
import "./ir-DioI2VyB.js";
|
|
44
44
|
import "./render-2Ztmr_V0.js";
|
|
45
|
-
import "./commands-registry-
|
|
46
|
-
import "./user-run-recording-
|
|
47
|
-
import "./recorder-
|
|
48
|
-
import "./agent-turn-runner-
|
|
49
|
-
import "./skill-commands-
|
|
50
|
-
import "./runs-
|
|
51
|
-
import "./outbound-message-hooks-
|
|
52
|
-
import "./deliver-
|
|
45
|
+
import "./commands-registry-Cof4HjvY.js";
|
|
46
|
+
import "./user-run-recording-B1HujJiT.js";
|
|
47
|
+
import "./recorder-Clg9Kbqu.js";
|
|
48
|
+
import "./agent-turn-runner-CX7rX8by.js";
|
|
49
|
+
import "./skill-commands-CAOvM2sb.js";
|
|
50
|
+
import "./runs-6Q7RU60m.js";
|
|
51
|
+
import "./outbound-message-hooks-7ErHCBLv.js";
|
|
52
|
+
import "./deliver-BaTG7V5x.js";
|
|
53
53
|
import "./fetch-BVyUaG_D.js";
|
|
54
|
-
import "./channel-activity-
|
|
55
|
-
import "./tables-
|
|
56
|
-
import "./reply-directives-
|
|
57
|
-
import "./send-
|
|
58
|
-
import "./outbound-attachment-
|
|
59
|
-
import "./send-
|
|
60
|
-
import "./resolve-route-
|
|
61
|
-
import "./proxy-
|
|
62
|
-
import "./replies-
|
|
63
|
-
import "./session-meta-
|
|
64
|
-
import "./manager-
|
|
65
|
-
import "./query-expansion-
|
|
54
|
+
import "./channel-activity-Kn1_ykXE.js";
|
|
55
|
+
import "./tables-DkwNUhx1.js";
|
|
56
|
+
import "./reply-directives-BIh2AkNd.js";
|
|
57
|
+
import "./send-CsDSBjFo.js";
|
|
58
|
+
import "./outbound-attachment-DtVXUXnX.js";
|
|
59
|
+
import "./send-DQvfLvpJ.js";
|
|
60
|
+
import "./resolve-route-DKZiteo6.js";
|
|
61
|
+
import "./proxy-CrSpy5Aw.js";
|
|
62
|
+
import "./replies-Cty02S3t.js";
|
|
63
|
+
import "./session-meta-5XI6vLtM.js";
|
|
64
|
+
import "./manager-D728Thsn.js";
|
|
65
|
+
import "./query-expansion-B_2rETEo.js";
|
|
66
66
|
|
|
67
67
|
//#region src/hooks/llm-slug-generator.ts
|
|
68
68
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as info, g as warn, o as defaultRuntime, p as logVerboseConsole, t as createSubsystemLogger, u as danger, x as getLogger } from "./subsystem-
|
|
1
|
+
import { d as info, g as warn, o as defaultRuntime, p as logVerboseConsole, t as createSubsystemLogger, u as danger, x as getLogger } from "./subsystem-BZy3aWdW.js";
|
|
2
2
|
|
|
3
3
|
//#region src/logger.ts
|
|
4
4
|
const subsystemPrefixRe = /^([a-z][a-z0-9-]{1,20}):\s+(.*)$/i;
|
|
@@ -1,18 +1,18 @@
|
|
|
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, Ea as normalizeResolvedSecretInputString, Hn as resolveSessionTranscriptsDirForAgent, M as resolveEnvApiKey, Sa as normalizeOptionalSecretInput, U as loadConfig, j as resolveApiKeyForProvider, la as isTruthyEnvValue, x as retryAsync } from "./model-selection-
|
|
2
|
+
import { c as resolveAgentWorkspaceDir, i as resolveAgentDir, r as resolveAgentConfig } from "./agent-scope-DCgndASv.js";
|
|
3
|
+
import { l as resolveStateDir } from "./paths-BIDPYPVC.js";
|
|
4
|
+
import { $ as clampNumber, Q as clampInt, pt as truncateUtf16Safe, st as resolveUserPath, t as createSubsystemLogger } from "./subsystem-BZy3aWdW.js";
|
|
5
|
+
import { A as requireApiKey, Ea as normalizeResolvedSecretInputString, Hn as resolveSessionTranscriptsDirForAgent, M as resolveEnvApiKey, Sa as normalizeOptionalSecretInput, U as loadConfig, j as resolveApiKeyForProvider, la as isTruthyEnvValue, x as retryAsync } from "./model-selection-BHGpQSa9.js";
|
|
6
6
|
import { n as onSessionTranscriptUpdate } from "./transcript-events-C9cNWasT.js";
|
|
7
|
-
import { i as formatErrorMessage } from "./errors-
|
|
7
|
+
import { i as formatErrorMessage } from "./errors-COs_vQr3.js";
|
|
8
8
|
import { t as resolveNetworkSsrFPolicy } from "./ssrf-config-Cj-XaaTu.js";
|
|
9
|
-
import { t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
10
|
-
import { n as executeWithApiKeyRotation, t as collectProviderApiKeysForExecution } from "./api-key-rotation-
|
|
11
|
-
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-
|
|
9
|
+
import { t as fetchWithSsrFGuard } from "./fetch-guard-BXzVwvnJ.js";
|
|
10
|
+
import { n as executeWithApiKeyRotation, t as collectProviderApiKeysForExecution } from "./api-key-rotation-dv2YbGr8.js";
|
|
11
|
+
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-B_2rETEo.js";
|
|
12
12
|
import path from "node:path";
|
|
13
|
-
import
|
|
13
|
+
import fs from "node:fs";
|
|
14
14
|
import os from "node:os";
|
|
15
|
-
import fs from "node:fs/promises";
|
|
15
|
+
import fs$1 from "node:fs/promises";
|
|
16
16
|
import { randomUUID } from "node:crypto";
|
|
17
17
|
import chokidar from "chokidar";
|
|
18
18
|
import { createInterface } from "node:readline";
|
|
@@ -748,7 +748,7 @@ function canAutoSelectLocal(options) {
|
|
|
748
748
|
if (/^(hf:|https?:)/i.test(modelPath)) return false;
|
|
749
749
|
const resolved = resolveUserPath(modelPath);
|
|
750
750
|
try {
|
|
751
|
-
return
|
|
751
|
+
return fs.statSync(resolved).isFile();
|
|
752
752
|
} catch {
|
|
753
753
|
return false;
|
|
754
754
|
}
|
|
@@ -1076,7 +1076,7 @@ async function extractTimestamp(params) {
|
|
|
1076
1076
|
if (!params.workspaceDir) return null;
|
|
1077
1077
|
const absolutePath = path.isAbsolute(params.filePath) ? params.filePath : path.resolve(params.workspaceDir, params.filePath);
|
|
1078
1078
|
try {
|
|
1079
|
-
const stat = await fs.stat(absolutePath);
|
|
1079
|
+
const stat = await fs$1.stat(absolutePath);
|
|
1080
1080
|
if (!Number.isFinite(stat.mtimeMs)) return null;
|
|
1081
1081
|
return new Date(stat.mtimeMs);
|
|
1082
1082
|
} catch {
|
|
@@ -2247,7 +2247,7 @@ var MemoryManagerSyncOps = class {
|
|
|
2247
2247
|
const source = `${sourceBase}${suffix}`;
|
|
2248
2248
|
const target = `${targetBase}${suffix}`;
|
|
2249
2249
|
try {
|
|
2250
|
-
await fs.rename(source, target);
|
|
2250
|
+
await fs$1.rename(source, target);
|
|
2251
2251
|
} catch (err) {
|
|
2252
2252
|
if (err.code !== "ENOENT") throw err;
|
|
2253
2253
|
}
|
|
@@ -2258,7 +2258,7 @@ var MemoryManagerSyncOps = class {
|
|
|
2258
2258
|
"",
|
|
2259
2259
|
"-wal",
|
|
2260
2260
|
"-shm"
|
|
2261
|
-
].map((suffix) => fs.rm(`${basePath}${suffix}`, { force: true })));
|
|
2261
|
+
].map((suffix) => fs$1.rm(`${basePath}${suffix}`, { force: true })));
|
|
2262
2262
|
}
|
|
2263
2263
|
ensureSchema() {
|
|
2264
2264
|
const result = ensureMemoryIndexSchema({
|
|
@@ -2282,7 +2282,7 @@ var MemoryManagerSyncOps = class {
|
|
|
2282
2282
|
]);
|
|
2283
2283
|
const additionalPaths = normalizeExtraMemoryPaths(this.workspaceDir, this.settings.extraPaths);
|
|
2284
2284
|
for (const entry of additionalPaths) try {
|
|
2285
|
-
const stat =
|
|
2285
|
+
const stat = fs.lstatSync(entry);
|
|
2286
2286
|
if (stat.isSymbolicLink()) continue;
|
|
2287
2287
|
if (stat.isDirectory()) {
|
|
2288
2288
|
watchPaths.add(path.join(entry, "**", "*.md"));
|
|
@@ -3305,7 +3305,7 @@ var MemoryManagerEmbeddingOps = class extends MemoryManagerSyncOps {
|
|
|
3305
3305
|
});
|
|
3306
3306
|
return;
|
|
3307
3307
|
}
|
|
3308
|
-
const content = options.content ?? ("absPath" in entry ? await fs.readFile(entry.absPath, "utf-8") : void 0);
|
|
3308
|
+
const content = options.content ?? ("absPath" in entry ? await fs$1.readFile(entry.absPath, "utf-8") : void 0);
|
|
3309
3309
|
if (content === void 0) throw new Error(`memory index: session source ${entry.path} produced no content`);
|
|
3310
3310
|
const chunks = enforceEmbeddingMaxInputTokens(this.provider, chunkMarkdown(content, this.settings.chunking).filter((chunk) => chunk.text.trim().length > 0), EMBEDDING_BATCH_MAX_TOKENS);
|
|
3311
3311
|
if (options.source === "sessions" && "lineMap" in entry) remapChunkLines(chunks, entry.lineMap);
|
|
@@ -3745,7 +3745,7 @@ var MemoryIndexManager = class MemoryIndexManager extends MemoryManagerEmbedding
|
|
|
3745
3745
|
if (!allowedWorkspace && this.settings.extraPaths.length > 0) {
|
|
3746
3746
|
const additionalPaths = normalizeExtraMemoryPaths(this.workspaceDir, this.settings.extraPaths);
|
|
3747
3747
|
for (const additionalPath of additionalPaths) try {
|
|
3748
|
-
const stat = await fs.lstat(additionalPath);
|
|
3748
|
+
const stat = await fs$1.lstat(additionalPath);
|
|
3749
3749
|
if (stat.isSymbolicLink()) continue;
|
|
3750
3750
|
if (stat.isDirectory()) {
|
|
3751
3751
|
if (absPath === additionalPath || absPath.startsWith(`${additionalPath}${path.sep}`)) {
|
|
@@ -3770,7 +3770,7 @@ var MemoryIndexManager = class MemoryIndexManager extends MemoryManagerEmbedding
|
|
|
3770
3770
|
};
|
|
3771
3771
|
let content;
|
|
3772
3772
|
try {
|
|
3773
|
-
content = await fs.readFile(absPath, "utf-8");
|
|
3773
|
+
content = await fs$1.readFile(absPath, "utf-8");
|
|
3774
3774
|
} catch (err) {
|
|
3775
3775
|
if (isFileMissingError(err)) return {
|
|
3776
3776
|
text: "",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { V as normalizeAccountId } from "./workspace-
|
|
3
|
-
import { Jn as normalizeChannelId, kr as resolveAccountEntry } from "./model-selection-
|
|
2
|
+
import { V as normalizeAccountId } from "./workspace-Bj1Jegt-.js";
|
|
3
|
+
import { Jn as normalizeChannelId, kr as resolveAccountEntry } from "./model-selection-BHGpQSa9.js";
|
|
4
4
|
|
|
5
5
|
//#region src/config/markdown-tables.ts
|
|
6
6
|
var markdown_tables_exports = /* @__PURE__ */ __exportAll({ resolveMarkdownTableMode: () => resolveMarkdownTableMode });
|