wednesdayai 0.6.1-dev.32 → 0.6.1-dev.33
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/README.md +1 -1
- package/dist/{agent-3FzVgs63.js → agent-2N9tEN3b.js} +26 -26
- package/dist/{agent-BRCd10MY.js → agent-B9sehkTT.js} +33 -33
- package/dist/{agent-DWnmq11O.js → agent-C31FKy1u.js} +11 -11
- package/dist/{agent-turn-execute-BFxbgU1N.js → agent-turn-execute-VfgfznZ9.js} +46 -46
- package/dist/{agent-turn-runner-T5NCMyJ_.js → agent-turn-runner-BUl_5WBC.js} +5 -5
- package/dist/{agent-turn-runner-CSA2LtLh.js → agent-turn-runner-D6au_ann.js} +6 -6
- package/dist/{agent-turn-runner-B4cl3TsM.js → agent-turn-runner-Pc5bI_FG.js} +6 -6
- package/dist/{auth-5so61ncT.js → auth-kjIpJLfy.js} +1 -1
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +32 -32
- 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 +31 -31
- package/dist/bundled/session-memory/handler.js +32 -32
- package/dist/{call-DVys4c4T.js → call-CrRxRh7U.js} +4 -4
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{plugin-sdk/chrome-BqXrH3aN.js → chrome-B_WMQAhO.js} +32 -32
- package/dist/{chrome-CQUZm4YB.js → chrome-Dhi-l6wT.js} +6 -6
- package/dist/{chrome-DqTgSmFm.js → chrome-DnhfF77Z.js} +6 -6
- package/dist/{command-queue-BSbitNdP.js → command-queue-AIWqKnVD.js} +1 -1
- package/dist/{command-queue-DogAVmq_.js → command-queue-CYUdNrXN.js} +1 -1
- package/dist/{command-queue-D3kWdijx.js → command-queue-Ctuw0Dti.js} +1 -1
- package/dist/control-ui-v2/assets/{AgentsView-BHoDo1L_.js → AgentsView-BykJAM_R.js} +1 -1
- package/dist/control-ui-v2/assets/{AutomationsView-CkkUCwky.js → AutomationsView-DC7X5Cuq.js} +1 -1
- package/dist/control-ui-v2/assets/Badge-BThfbCAq.js +1 -0
- package/dist/control-ui-v2/assets/{Button-CAmVftjk.js → Button-sKbvzDVv.js} +1 -1
- package/dist/control-ui-v2/assets/{ChannelsView-C9mkTqc6.js → ChannelsView-HkWy9hsS.js} +1 -1
- package/dist/control-ui-v2/assets/{ConfigForm-LRLk4KUb.js → ConfigForm-BJ2kFOXh.js} +1 -1
- package/dist/control-ui-v2/assets/{ConfirmDialog-F2xUWFqq.js → ConfirmDialog-CdyUa20w.js} +1 -1
- package/dist/control-ui-v2/assets/{DataTable-DOMUEHUS.js → DataTable-DYjiiFEO.js} +1 -1
- package/dist/control-ui-v2/assets/{DebugView-Brby9otE.js → DebugView-BBnZon9I.js} +1 -1
- package/dist/control-ui-v2/assets/{Dialog-GhMZjPwr.js → Dialog-C3D58UYL.js} +1 -1
- package/dist/control-ui-v2/assets/{DreamsView-DY7ted1D.js → DreamsView-DrwwXxFE.js} +1 -1
- package/dist/control-ui-v2/assets/{EntityLink-CrtCt-Qs.js → EntityLink-Z9K13Z04.js} +1 -1
- package/dist/control-ui-v2/assets/{FilterPills-CkHzGD5G.js → FilterPills-KLG4v-tl.js} +1 -1
- package/dist/control-ui-v2/assets/{InstancesView-CFs-ov6N.js → InstancesView-LuIMblfp.js} +1 -1
- package/dist/control-ui-v2/assets/{LearningView-BTIvp31K.js → LearningView-C2puhMj4.js} +1 -1
- package/dist/control-ui-v2/assets/{LogsView-BuFHneew.js → LogsView-Dy215edw.js} +1 -1
- package/dist/control-ui-v2/assets/{NodesView-7y8z5Q_T.js → NodesView-B71zmfhs.js} +1 -1
- package/dist/control-ui-v2/assets/{OverviewView-CIhAnOeN.js → OverviewView-JLhTfCru.js} +1 -1
- package/dist/control-ui-v2/assets/{Panel-BSfoMFU-.js → Panel-D78gp_RZ.js} +1 -1
- package/dist/control-ui-v2/assets/{PluginMount-Cr2vPF1o.js → PluginMount-DYlgGaMj.js} +1 -1
- package/dist/control-ui-v2/assets/{PluginPageView-BM2wjaCs.js → PluginPageView-Bg02Y5T6.js} +1 -1
- package/dist/control-ui-v2/assets/{PluginPanels-CrZnLVxd.js → PluginPanels-BleAmjiK.js} +1 -1
- package/dist/control-ui-v2/assets/{RunsView-B3eXHaoR.js → RunsView-BSGqEHKy.js} +1 -1
- package/dist/control-ui-v2/assets/{SessionsView-Bg4wx4lK.js → SessionsView-CMPY9Hgt.js} +1 -1
- package/dist/control-ui-v2/assets/{SettingsView-DGF7hzQG.js → SettingsView-D4QcuA0E.js} +1 -1
- package/dist/control-ui-v2/assets/{SkillsView-Cg7pJC7c.js → SkillsView-BWwsXZqF.js} +1 -1
- package/dist/control-ui-v2/assets/{Stat-lXrvX_LU.js → Stat-CXVUEU8q.js} +1 -1
- package/dist/control-ui-v2/assets/{StatusDot-mq9dIxHu.js → StatusDot-BOn9P0HR.js} +1 -1
- package/dist/control-ui-v2/assets/{StorageView-DwpkJ4z3.js → StorageView-Bn5jFxV6.js} +1 -1
- package/dist/control-ui-v2/assets/{UpdatedAgo-C4M24VEo.js → UpdatedAgo-CGh7wGn5.js} +1 -1
- package/dist/control-ui-v2/assets/{UsageView-Chdv6FaY.js → UsageView-D8N9_FXE.js} +1 -1
- package/dist/control-ui-v2/assets/{config-store-Cl6ZDEWe.js → config-store-CvkpUhCj.js} +1 -1
- package/dist/control-ui-v2/assets/{format-B5-CxWkB.js → format-CDdlmhUx.js} +1 -1
- package/dist/control-ui-v2/assets/{gateway-features-cO4oPTtR.js → gateway-features-BO759ssE.js} +1 -1
- package/dist/control-ui-v2/assets/{index-CJgogGns.js → index-DbvFKOkE.js} +1 -1
- package/dist/control-ui-v2/assets/{links-Cc4kr7jc.js → links-CQf0Dstl.js} +2 -2
- package/dist/control-ui-v2/assets/{run-rows-B5xQqo0g.js → run-rows-B7a70RYo.js} +1 -1
- package/dist/control-ui-v2/assets/runs-store-CBxmiHic.js +1 -0
- package/dist/control-ui-v2/assets/{use-gateway-query-DkXhPwE7.js → use-gateway-query-Dd6G1xB1.js} +1 -1
- package/dist/control-ui-v2/index.html +7 -7
- package/dist/{credentials-BwbcjFrG.js → credentials-By3Y4AcL.js} +3 -3
- package/dist/daemon-cli.js +10 -10
- package/dist/{deliver-D5-592ul.js → deliver-BNwRhCqc.js} +28 -28
- package/dist/{deliver-uol2d4WF.js → deliver-CZ0gpdcA.js} +6 -6
- package/dist/{deliver-DI3pbsEG.js → deliver-lAcWrtsj.js} +8 -8
- package/dist/{diagnostic-BZYYYnMx.js → diagnostic-DJ11ZJIJ.js} +3 -3
- package/dist/{diagnostic-CjNtSJJy.js → diagnostic-Dlx1Uind.js} +3 -3
- package/dist/{diagnostic-DutvZ2o1.js → diagnostic-dKeDyhIs.js} +1 -1
- package/dist/{plugin-sdk/errors-CVfTQSbb.js → errors-0-at0aYV.js} +1 -1
- package/dist/{errors-BRYMqzPb.js → errors-7NHaEHOi.js} +1 -1
- package/dist/extensionAPI.js +24 -24
- package/dist/{fences-DdMLzXvz.js → fences-BXndK9rN.js} +2 -2
- package/dist/{fences-Dtk43Q2a.js → fences-Z8d1dj8p.js} +16 -16
- package/dist/{fences-DxsYNv6D.js → fences-qAryzYhN.js} +1 -1
- package/dist/{fetch-guard-CIElogmD.js → fetch-guard-C1e2uLCm.js} +2 -2
- package/dist/{fetch-guard-huDqYgcZ.js → fetch-guard-DVq681NM.js} +2 -2
- package/dist/{fetch-guard-BfFAgAdL.js → fetch-guard-jXOgaL7k.js} +2 -2
- package/dist/{frontmatter-DHBTRDiB.js → frontmatter-CzhUc9Ri.js} +5 -5
- package/dist/{fs-safe-BXAFIPNF.js → fs-safe-B9UKPVRL.js} +2 -2
- package/dist/{fs-safe-QppbBgli.js → fs-safe-BFMvT9d3.js} +1 -1
- package/dist/{fs-safe-CyG0wflg.js → fs-safe-DMWtsz4J.js} +26 -26
- package/dist/{group-DNWpfMve.js → group-Dvl8dfJ2.js} +6 -6
- package/dist/{legacy-names-6uH6aLhq.js → legacy-names-chsmo2vs.js} +26 -26
- package/dist/llm-slug-generator.js +31 -31
- package/dist/{manager-DEELDila.js → manager-CIl1uCF4.js} +5 -5
- package/dist/{manager-Dv0046Wp.js → manager-Cd7Dgpw3.js} +16 -16
- package/dist/{manager-BNDUt5V7.js → manager-Edt-T8Bi.js} +3 -3
- package/dist/{model-selection-DfBJgjil.js → model-selection-BkyEkRcd.js} +1 -1
- package/dist/{model-selection-BKz1FEg5.js → model-selection-ik2bHbgK.js} +82 -82
- package/dist/{net-B0Jtxfrs.js → net-DJsykMK1.js} +1 -1
- package/dist/{nudge-D6njZF1b.js → nudge-D3beOdMV.js} +6 -6
- package/dist/{nudge-iXg_oCkW.js → nudge-Dg8Pe_sD.js} +9 -9
- package/dist/{nudge-D6LqS1z9.js → nudge-DyQYIOed.js} +32 -32
- package/dist/{outbound-attachment-DkplciK0.js → outbound-attachment-C3f9uSt-.js} +4 -4
- package/dist/{outbound-attachment-6hHA3eSm.js → outbound-attachment-DQtDt9Ne.js} +9 -9
- package/dist/{outbound-attachment-DFE9e7Dz.js → outbound-attachment-DwgRvpkl.js} +7 -7
- package/dist/{pi-embedded-CM4cbQEb.js → pi-embedded-BUj1tpxL.js} +40 -40
- package/dist/{pi-embedded-BJeshpuP.js → pi-embedded-DRpnAuxu.js} +229 -229
- package/dist/{pi-model-discovery-CEEWv-kw.js → pi-model-discovery-DnTVd1y8.js} +1 -1
- package/dist/{pi-model-discovery-Dy1iZEn3.js → pi-model-discovery-MJKT8QcH.js} +1 -1
- package/dist/{pi-model-discovery-BzUe_TlM.js → pi-model-discovery-ihTZFn93.js} +7 -7
- package/dist/plugin-sdk/{agent-CUhnjg2h.js → agent-CACbclxE.js} +33 -33
- package/dist/plugin-sdk/{agent-turn-execute-0wNK8kb-.js → agent-turn-execute-BKMaKZMH.js} +52 -52
- package/dist/plugin-sdk/{agent-turn-runner-Bc1Wdfjl.js → agent-turn-runner-Dfbuq8sa.js} +6 -6
- package/dist/{chrome-D5VU16Pm.js → plugin-sdk/chrome-CRKazKtD.js} +7 -7
- package/dist/plugin-sdk/{command-queue-BuyhMwmf.js → command-queue-CYthkMHd.js} +1 -1
- package/dist/plugin-sdk/{deliver-BbYD9jbj.js → deliver-Bh_zU4gN.js} +10 -10
- package/dist/plugin-sdk/{diagnostic-YH_V803S.js → diagnostic-DUBIUJLy.js} +3 -3
- package/dist/{errors-CK3mNfUZ.js → plugin-sdk/errors-BYlk21G9.js} +1 -1
- package/dist/plugin-sdk/{fetch-guard-BiQARj-q.js → fetch-guard-tC95Od8D.js} +2 -2
- package/dist/plugin-sdk/{fs-safe-CGzRyGpY.js → fs-safe-DkRYPO9h.js} +2 -2
- package/dist/plugin-sdk/{image-ops-BrERoy-B.js → image-ops-BwFCJNka.js} +2 -2
- package/dist/plugin-sdk/{manager-DPJBcR4V.js → manager-BFK04-sl.js} +5 -5
- package/dist/plugin-sdk/{model-auth-BtSCt2Us.js → model-auth-5dizn5pk.js} +6 -6
- package/dist/plugin-sdk/{models-config-GBg5F8hJ.js → models-config-Q1RpJb2l.js} +2 -2
- package/dist/plugin-sdk/{nudge-DRCem0PL.js → nudge-RygJmKvJ.js} +10 -10
- package/dist/plugin-sdk/{openai-compatible-video-5WcKNGBU.js → openai-compatible-video-Dcy2Li9N.js} +6 -6
- package/dist/plugin-sdk/{outbound-attachment-DTKZLRZQ.js → outbound-attachment-BzyByi-v.js} +7 -7
- package/dist/plugin-sdk/{pi-embedded-helpers-CuwPxkvz.js → pi-embedded-helpers-BFhpUeAU.js} +13 -13
- package/dist/plugin-sdk/{pi-embedded-utils-C8Mld73X.js → pi-embedded-utils-DwU_Dm_t.js} +3 -3
- package/dist/plugin-sdk/{pi-model-discovery-DF78NwCY.js → pi-model-discovery-JhPOgHc2.js} +1 -1
- package/dist/plugin-sdk/provider-media-understanding.js +16 -16
- package/dist/plugin-sdk/{pw-ai-DE9_F3UT.js → pw-ai-CetM9Gvn.js} +8 -8
- package/dist/plugin-sdk/{qmd-manager-Be0AD8g6.js → qmd-manager-D-4-ofwq.js} +6 -6
- package/dist/plugin-sdk/{qmd-scope-ChYVD8_V.js → qmd-scope-C2Q-gYkx.js} +1 -1
- package/dist/plugin-sdk/{query-expansion-D7KVLAEI.js → query-expansion-WqJIYjMY.js} +2 -2
- package/dist/plugin-sdk/{recorder-CYbCMbkp.js → recorder-Buet60MM.js} +2 -2
- package/dist/{redact-DU9QXIsh.js → plugin-sdk/redact-BsmP2_ML.js} +1 -1
- package/dist/plugin-sdk/{reply-directives-C8nS86oo.js → reply-directives-vq-0__VY.js} +2 -2
- package/dist/plugin-sdk/{runs-DaXWESgL.js → runs-Bo9ZU_tS.js} +7 -7
- package/dist/plugin-sdk/{send-DNtB7RqD.js → send-C7mdLoxn.js} +5 -5
- package/dist/plugin-sdk/{send-A18Yldb9.js → send-O0_QKrFT.js} +4 -4
- package/dist/plugin-sdk/{sessions-CaOQHLR9.js → sessions-DBkZJFck.js} +3 -3
- package/dist/plugin-sdk/{ssrf-BUsxUAWv.js → ssrf-DwUheH8N.js} +1 -1
- package/dist/{subsystem-DoQFckDJ.js → plugin-sdk/subsystem-DGPv0F8I.js} +5 -5
- package/dist/plugin-sdk/{tool-loop-detection-CofD0zz1.js → tool-loop-detection-CJnz5pAZ.js} +1 -1
- package/dist/plugin-sdk/{user-run-recording-BHcbX_ct.js → user-run-recording-CcRIjxcn.js} +2 -2
- package/dist/plugin-sdk/{ws-fpqheALb.js → ws-BmHfUkZI.js} +1 -1
- package/dist/{ports-B3BTfmE-.js → ports-af3jAFGh.js} +2 -2
- package/dist/{progress-CuNmfDlK.js → progress-CmedxTqJ.js} +3 -3
- package/dist/{proxy-env-CHdvLB3R.js → proxy-env-B9kcG28B.js} +1 -1
- package/dist/{proxy-env-E2mZELS1.js → proxy-env-Catj9Viz.js} +1 -1
- package/dist/{proxy-env-Dayk9Sh-.js → proxy-env-DQFy-pBt.js} +1 -1
- package/dist/{pw-ai-mN-uQx62.js → pw-ai-BWm3mCae.js} +9 -9
- package/dist/{pw-ai-BV3I_k2z.js → pw-ai-CDg9EuQp.js} +5 -5
- package/dist/{pw-ai--9RsLl-I.js → pw-ai-DoQ300T0.js} +11 -11
- package/dist/{qmd-manager-IBVkRbDA.js → qmd-manager-DFBcLXne.js} +6 -6
- package/dist/{qmd-manager-B4bmSWg6.js → qmd-manager-DbHyIFsT.js} +4 -4
- package/dist/{qmd-manager-pXzVcStZ.js → qmd-manager-jGcc2exw.js} +9 -9
- package/dist/{qmd-scope-C-qiTyK0.js → qmd-scope-D25aU1jR.js} +1 -1
- package/dist/{qmd-scope-CyWbQgiS.js → qmd-scope-DMUA3Vq9.js} +1 -1
- package/dist/{qmd-scope-C3LDIy_f.js → qmd-scope-DxmwIijL.js} +1 -1
- package/dist/{query-expansion-DUYY60_G.js → query-expansion-BC9pRVpQ.js} +1 -1
- package/dist/{query-expansion-BfJwCH-1.js → query-expansion-DJ7rNitK.js} +2 -2
- package/dist/{query-expansion-DOdiE1jh.js → query-expansion-Dji7d64T.js} +13 -13
- package/dist/{recorder-BaUTigy-.js → recorder-CBd8Sa3f.js} +2 -2
- package/dist/{recorder-DbOS8cq-.js → recorder-ciEoXXwJ.js} +2 -2
- package/dist/{recorder-tm_DPmVq.js → recorder-jtfym7ix.js} +1 -1
- package/dist/{plugin-sdk/redact-SduMExGO.js → redact-BvO7EAk7.js} +1 -1
- package/dist/{redact-C4XKILzo.js → redact-LOuk7TRy.js} +1 -1
- package/dist/{reply-directives-lb54XxBO.js → reply-directives-BZPLXOax.js} +14 -14
- package/dist/{reply-directives-Cjv6usSI.js → reply-directives-CD8SVo0d.js} +49 -49
- package/dist/{reply-directives-DQdLCsf7.js → reply-directives-CzQd7ai4.js} +9 -9
- package/dist/{runs-C6ZLA3dQ.js → runs-CKVgIXbm.js} +7 -7
- package/dist/{runs-Bfh4gXhE.js → runs-CW-qjeWY.js} +8 -8
- package/dist/{runs-CRfwfxl9.js → runs-CX5t6UjO.js} +5 -5
- package/dist/{send-DhxoS0EQ.js → send-BClohEtC.js} +5 -5
- package/dist/{send-x0brK-7B.js → send-Bb4J4QPH.js} +4 -4
- package/dist/{send-DdufVWN0.js → send-Bn1WCNeb.js} +4 -4
- package/dist/{send-CQXAcrXk.js → send-C9EWa4Gn.js} +3 -3
- package/dist/{send-DgX5MIBr.js → send-CpXb_hwQ.js} +5 -5
- package/dist/{send-CDE-Y46D.js → send-DkfdQWGD.js} +4 -4
- package/dist/{sessions-DFfMZLkJ.js → sessions-C98njXHy.js} +1 -1
- package/dist/{sessions-CoqAntnj.js → sessions-Dwd5H-eS.js} +5 -5
- package/dist/{subsystem-DY5Ww-lX.js → subsystem-BntNuBAj.js} +4 -4
- package/dist/{plugin-sdk/subsystem-Btq0amiz.js → subsystem-cFv2jJm-.js} +70 -70
- package/dist/{tool-loop-detection-CtOkwPJY.js → tool-loop-detection-9fAxiikd.js} +2 -2
- package/dist/{tool-loop-detection-C8jnlLQJ.js → tool-loop-detection-BMpeJ2DE.js} +1 -1
- package/dist/{user-run-recording-Dw1uyV3d.js → user-run-recording-BsWiQH6f.js} +1 -1
- package/dist/{user-run-recording-D-qMoYVy.js → user-run-recording-CisdKSzW.js} +2 -2
- package/dist/{user-run-recording-UvvXT13r.js → user-run-recording-DBqvoOPn.js} +2 -2
- package/dist/web-client/assets/{hast-util-from-dom-SbSARCyf.js → hast-util-from-dom-CUZ3hAh_.js} +1 -1
- package/dist/web-client/assets/{hast-util-to-mdast-C1n0gLxk.js → hast-util-to-mdast-DsCIyZ_Y.js} +1 -1
- package/dist/web-client/assets/{index-UZef_CpP.js → index-BvHk50NK.js} +2 -2
- package/dist/web-client/index.html +1 -1
- package/dist/{ws-kGFg1v4B.js → ws-B4SUb9f_.js} +1 -1
- package/dist/{ws-BJ7VU-8f.js → ws-BOnegOZK.js} +1 -1
- package/extensions/a2a/package.json +1 -1
- 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/identity-oidc/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 +3 -1
- package/dist/control-ui-v2/assets/Badge-Ckq3aEJa.js +0 -1
- package/dist/control-ui-v2/assets/runs-store-D8Ckq4AP.js +0 -1
- package/dist/github-copilot-token-Bm6yG6tw.js +0 -106
- package/dist/paths-BIDPYPVC.js +0 -233
- package/docs/reference/templates/BOOT.md +0 -11
- /package/dist/{config-1om7Pwz0.js → config-CM9p9U7m.js} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { f as resolveRequiredHomeDir } from "./paths-
|
|
2
|
-
import { P as openBoundaryFile, at as pathExists, d as info, g as warn, h as shouldLogVerbose, j as isBlockedObjectKey, o as defaultRuntime, p as logVerboseConsole, st as resolveUserPath, t as createSubsystemLogger, u as danger, x as getLogger } from "./subsystem-
|
|
1
|
+
import { f as resolveRequiredHomeDir } from "./paths-B_gs59ga.js";
|
|
2
|
+
import { P as openBoundaryFile, at as pathExists, d as info, g as warn, h as shouldLogVerbose, j as isBlockedObjectKey, o as defaultRuntime, p as logVerboseConsole, st as resolveUserPath, t as createSubsystemLogger, u as danger, x as getLogger } from "./subsystem-cFv2jJm-.js";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import syncFs from "node:fs";
|
|
5
5
|
import os from "node:os";
|
|
6
|
-
import fs
|
|
6
|
+
import fs from "node:fs/promises";
|
|
7
7
|
import { promisify } from "node:util";
|
|
8
8
|
import { execFile, spawn } from "node:child_process";
|
|
9
9
|
import process$1 from "node:process";
|
|
@@ -512,7 +512,7 @@ function resolveNpmArgvForWindows(argv) {
|
|
|
512
512
|
if (!cliName) return null;
|
|
513
513
|
const nodeDir = path.dirname(process$1.execPath);
|
|
514
514
|
const cliPath = path.join(nodeDir, "node_modules", "npm", "bin", cliName);
|
|
515
|
-
if (!
|
|
515
|
+
if (!syncFs.existsSync(cliPath)) return null;
|
|
516
516
|
return [
|
|
517
517
|
process$1.execPath,
|
|
518
518
|
cliPath,
|
|
@@ -708,7 +708,7 @@ function isCorePackageName(name) {
|
|
|
708
708
|
}
|
|
709
709
|
async function readPackageName(dir) {
|
|
710
710
|
try {
|
|
711
|
-
const raw = await fs
|
|
711
|
+
const raw = await fs.readFile(path.join(dir, "package.json"), "utf-8");
|
|
712
712
|
const parsed = JSON.parse(raw);
|
|
713
713
|
return typeof parsed.name === "string" ? parsed.name : null;
|
|
714
714
|
} catch {
|
|
@@ -717,7 +717,7 @@ async function readPackageName(dir) {
|
|
|
717
717
|
}
|
|
718
718
|
function readPackageNameSync(dir) {
|
|
719
719
|
try {
|
|
720
|
-
const raw =
|
|
720
|
+
const raw = syncFs.readFileSync(path.join(dir, "package.json"), "utf-8");
|
|
721
721
|
const parsed = JSON.parse(raw);
|
|
722
722
|
return typeof parsed.name === "string" ? parsed.name : null;
|
|
723
723
|
} catch {
|
|
@@ -745,7 +745,7 @@ function candidateDirsFromArgv1(argv1) {
|
|
|
745
745
|
const normalized = path.resolve(argv1);
|
|
746
746
|
const candidates = [path.dirname(normalized)];
|
|
747
747
|
try {
|
|
748
|
-
const resolved =
|
|
748
|
+
const resolved = syncFs.realpathSync(normalized);
|
|
749
749
|
if (resolved !== normalized) candidates.push(path.dirname(resolved));
|
|
750
750
|
} catch {}
|
|
751
751
|
const parts = normalized.split(path.sep);
|
|
@@ -845,7 +845,7 @@ function workspaceFileIdentity(stat, canonicalPath) {
|
|
|
845
845
|
}
|
|
846
846
|
function closeFileQuietlySync(fd) {
|
|
847
847
|
try {
|
|
848
|
-
|
|
848
|
+
syncFs.closeSync(fd);
|
|
849
849
|
} catch {}
|
|
850
850
|
}
|
|
851
851
|
async function readWorkspaceFileWithGuards(params) {
|
|
@@ -870,7 +870,7 @@ async function readWorkspaceFileWithGuards(params) {
|
|
|
870
870
|
};
|
|
871
871
|
}
|
|
872
872
|
try {
|
|
873
|
-
const content =
|
|
873
|
+
const content = syncFs.readFileSync(opened.fd, "utf-8");
|
|
874
874
|
workspaceFileCache.set(params.filePath, {
|
|
875
875
|
content,
|
|
876
876
|
identity
|
|
@@ -921,7 +921,7 @@ async function loadTemplate(name) {
|
|
|
921
921
|
const templateDir = await resolveWorkspaceTemplateDir();
|
|
922
922
|
const templatePath = path.join(templateDir, name);
|
|
923
923
|
try {
|
|
924
|
-
return stripFrontMatter(await fs
|
|
924
|
+
return stripFrontMatter(await fs.readFile(templatePath, "utf-8"));
|
|
925
925
|
} catch {
|
|
926
926
|
throw new Error(`Missing workspace template: ${name} (${templatePath}). Ensure docs/reference/templates are packaged.`);
|
|
927
927
|
}
|
|
@@ -961,7 +961,7 @@ const VALID_BOOTSTRAP_NAMES = new Set([
|
|
|
961
961
|
]);
|
|
962
962
|
async function writeFileIfMissing(filePath, content) {
|
|
963
963
|
try {
|
|
964
|
-
await fs
|
|
964
|
+
await fs.writeFile(filePath, content, {
|
|
965
965
|
encoding: "utf-8",
|
|
966
966
|
flag: "wx"
|
|
967
967
|
});
|
|
@@ -973,7 +973,7 @@ async function writeFileIfMissing(filePath, content) {
|
|
|
973
973
|
}
|
|
974
974
|
async function fileExists(filePath) {
|
|
975
975
|
try {
|
|
976
|
-
await fs
|
|
976
|
+
await fs.access(filePath);
|
|
977
977
|
return true;
|
|
978
978
|
} catch {
|
|
979
979
|
return false;
|
|
@@ -997,27 +997,27 @@ function parseWorkspaceOnboardingState(raw) {
|
|
|
997
997
|
}
|
|
998
998
|
async function readWorkspaceOnboardingState(statePath) {
|
|
999
999
|
try {
|
|
1000
|
-
return parseWorkspaceOnboardingState(await fs
|
|
1000
|
+
return parseWorkspaceOnboardingState(await fs.readFile(statePath, "utf-8")) ?? { version: WORKSPACE_STATE_VERSION };
|
|
1001
1001
|
} catch (err) {
|
|
1002
1002
|
if (err.code !== "ENOENT") throw err;
|
|
1003
1003
|
return { version: WORKSPACE_STATE_VERSION };
|
|
1004
1004
|
}
|
|
1005
1005
|
}
|
|
1006
1006
|
async function writeWorkspaceOnboardingState(statePath, state) {
|
|
1007
|
-
await fs
|
|
1007
|
+
await fs.mkdir(path.dirname(statePath), { recursive: true });
|
|
1008
1008
|
const payload = `${JSON.stringify(state, null, 2)}\n`;
|
|
1009
1009
|
const tmpPath = `${statePath}.tmp-${process.pid}-${Date.now().toString(36)}`;
|
|
1010
1010
|
try {
|
|
1011
|
-
await fs
|
|
1012
|
-
await fs
|
|
1011
|
+
await fs.writeFile(tmpPath, payload, { encoding: "utf-8" });
|
|
1012
|
+
await fs.rename(tmpPath, statePath);
|
|
1013
1013
|
} catch (err) {
|
|
1014
|
-
await fs
|
|
1014
|
+
await fs.unlink(tmpPath).catch(() => {});
|
|
1015
1015
|
throw err;
|
|
1016
1016
|
}
|
|
1017
1017
|
}
|
|
1018
1018
|
async function hasGitRepo(dir) {
|
|
1019
1019
|
try {
|
|
1020
|
-
await fs
|
|
1020
|
+
await fs.stat(path.join(dir, ".git"));
|
|
1021
1021
|
return true;
|
|
1022
1022
|
} catch {
|
|
1023
1023
|
return false;
|
|
@@ -1047,7 +1047,7 @@ async function ensureGitRepo(dir, isBrandNewWorkspace) {
|
|
|
1047
1047
|
}
|
|
1048
1048
|
async function ensureAgentWorkspace(params) {
|
|
1049
1049
|
const dir = resolveUserPath(params?.dir?.trim() ? params.dir.trim() : DEFAULT_AGENT_WORKSPACE_DIR);
|
|
1050
|
-
await fs
|
|
1050
|
+
await fs.mkdir(dir, { recursive: true });
|
|
1051
1051
|
if (!params?.ensureBootstrapFiles) return { dir };
|
|
1052
1052
|
const agentsPath = path.join(dir, DEFAULT_AGENTS_FILENAME);
|
|
1053
1053
|
const soulPath = path.join(dir, DEFAULT_SOUL_FILENAME);
|
|
@@ -1074,7 +1074,7 @@ async function ensureAgentWorkspace(params) {
|
|
|
1074
1074
|
const paths = [...templatePaths, ...userContentPaths];
|
|
1075
1075
|
return (await Promise.all(paths.map(async (p) => {
|
|
1076
1076
|
try {
|
|
1077
|
-
await fs
|
|
1077
|
+
await fs.access(p);
|
|
1078
1078
|
return true;
|
|
1079
1079
|
} catch {
|
|
1080
1080
|
return false;
|
|
@@ -1107,7 +1107,7 @@ async function ensureAgentWorkspace(params) {
|
|
|
1107
1107
|
if (!state.bootstrapSeededAt && bootstrapExists) markState({ bootstrapSeededAt: nowIso() });
|
|
1108
1108
|
if (!state.onboardingCompletedAt && state.bootstrapSeededAt && !bootstrapExists) markState({ onboardingCompletedAt: nowIso() });
|
|
1109
1109
|
if (!state.bootstrapSeededAt && !state.onboardingCompletedAt && !bootstrapExists) {
|
|
1110
|
-
const [identityContent, userContent] = await Promise.all([fs
|
|
1110
|
+
const [identityContent, userContent] = await Promise.all([fs.readFile(identityPath, "utf-8"), fs.readFile(userPath, "utf-8")]);
|
|
1111
1111
|
const hasUserContent = await (async () => {
|
|
1112
1112
|
const indicators = [
|
|
1113
1113
|
path.join(dir, "memory"),
|
|
@@ -1115,7 +1115,7 @@ async function ensureAgentWorkspace(params) {
|
|
|
1115
1115
|
path.join(dir, ".git")
|
|
1116
1116
|
];
|
|
1117
1117
|
for (const indicator of indicators) try {
|
|
1118
|
-
await fs
|
|
1118
|
+
await fs.access(indicator);
|
|
1119
1119
|
return true;
|
|
1120
1120
|
} catch {}
|
|
1121
1121
|
return false;
|
|
@@ -1146,7 +1146,7 @@ async function resolveMemoryBootstrapEntries(resolvedDir) {
|
|
|
1146
1146
|
for (const name of candidates) {
|
|
1147
1147
|
const filePath = path.join(resolvedDir, name);
|
|
1148
1148
|
try {
|
|
1149
|
-
await fs
|
|
1149
|
+
await fs.access(filePath);
|
|
1150
1150
|
entries.push({
|
|
1151
1151
|
name,
|
|
1152
1152
|
filePath
|
|
@@ -1159,7 +1159,7 @@ async function resolveMemoryBootstrapEntries(resolvedDir) {
|
|
|
1159
1159
|
for (const entry of entries) {
|
|
1160
1160
|
let key = entry.filePath;
|
|
1161
1161
|
try {
|
|
1162
|
-
key = await fs
|
|
1162
|
+
key = await fs.realpath(entry.filePath);
|
|
1163
1163
|
} catch {}
|
|
1164
1164
|
if (seen.has(key)) continue;
|
|
1165
1165
|
seen.add(key);
|
|
@@ -1329,7 +1329,7 @@ async function loadExtraBootstrapFilesWithDiagnostics(dir, extraPatterns) {
|
|
|
1329
1329
|
const resolvedDir = resolveUserPath(dir);
|
|
1330
1330
|
const resolvedPaths = /* @__PURE__ */ new Set();
|
|
1331
1331
|
for (const pattern of extraPatterns) if (pattern.includes("*") || pattern.includes("?") || pattern.includes("{")) try {
|
|
1332
|
-
const matches = fs
|
|
1332
|
+
const matches = fs.glob(pattern, { cwd: resolvedDir });
|
|
1333
1333
|
for await (const m of matches) resolvedPaths.add(m);
|
|
1334
1334
|
} catch {
|
|
1335
1335
|
resolvedPaths.add(pattern);
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { Ta as resolveDefaultAgentId, ba as resolveAgentDir, da as DEFAULT_MODEL, fa as DEFAULT_PROVIDER, l as parseModelRef, wa as resolveAgentWorkspaceDir, xa as resolveAgentEffectiveModelPrimary } from "./model-selection-
|
|
2
|
-
import "./paths-
|
|
3
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
4
|
-
import "./legacy-names-
|
|
5
|
-
import "./github-copilot-token-
|
|
6
|
-
import { t as runEmbeddedPiAgent } from "./pi-embedded-
|
|
7
|
-
import "./reply-directives-
|
|
1
|
+
import { Ta as resolveDefaultAgentId, ba as resolveAgentDir, da as DEFAULT_MODEL, fa as DEFAULT_PROVIDER, l as parseModelRef, wa as resolveAgentWorkspaceDir, xa as resolveAgentEffectiveModelPrimary } from "./model-selection-ik2bHbgK.js";
|
|
2
|
+
import "./paths-B_gs59ga.js";
|
|
3
|
+
import { t as createSubsystemLogger } from "./subsystem-cFv2jJm-.js";
|
|
4
|
+
import "./legacy-names-chsmo2vs.js";
|
|
5
|
+
import "./github-copilot-token-C-29TbW-.js";
|
|
6
|
+
import { t as runEmbeddedPiAgent } from "./pi-embedded-DRpnAuxu.js";
|
|
7
|
+
import "./reply-directives-CD8SVo0d.js";
|
|
8
8
|
import "./diagnostic-events-RfJYFlJM.js";
|
|
9
|
-
import "./sessions-
|
|
10
|
-
import "./diagnostic-
|
|
9
|
+
import "./sessions-Dwd5H-eS.js";
|
|
10
|
+
import "./diagnostic-DJ11ZJIJ.js";
|
|
11
11
|
import "./diagnostic-session-state-Di8oqY0E.js";
|
|
12
|
-
import "./redact-
|
|
13
|
-
import "./command-queue-
|
|
14
|
-
import "./fences-
|
|
15
|
-
import "./pi-model-discovery-
|
|
16
|
-
import "./deliver-
|
|
17
|
-
import "./chrome-
|
|
18
|
-
import "./ws-
|
|
19
|
-
import "./frontmatter-
|
|
20
|
-
import "./fs-safe-
|
|
21
|
-
import "./errors-
|
|
22
|
-
import "./proxy-env-
|
|
23
|
-
import "./nudge-
|
|
24
|
-
import "./runs-
|
|
25
|
-
import "./outbound-attachment-
|
|
26
|
-
import "./fetch-guard-
|
|
27
|
-
import "./manager-
|
|
28
|
-
import "./user-run-recording-
|
|
29
|
-
import "./recorder-
|
|
30
|
-
import "./agent-turn-runner-
|
|
31
|
-
import "./send-
|
|
32
|
-
import "./send-
|
|
33
|
-
import "./query-expansion-
|
|
12
|
+
import "./redact-LOuk7TRy.js";
|
|
13
|
+
import "./command-queue-AIWqKnVD.js";
|
|
14
|
+
import "./fences-Z8d1dj8p.js";
|
|
15
|
+
import "./pi-model-discovery-ihTZFn93.js";
|
|
16
|
+
import "./deliver-BNwRhCqc.js";
|
|
17
|
+
import "./chrome-Dhi-l6wT.js";
|
|
18
|
+
import "./ws-BOnegOZK.js";
|
|
19
|
+
import "./frontmatter-CzhUc9Ri.js";
|
|
20
|
+
import "./fs-safe-DMWtsz4J.js";
|
|
21
|
+
import "./errors-0-at0aYV.js";
|
|
22
|
+
import "./proxy-env-Catj9Viz.js";
|
|
23
|
+
import "./nudge-DyQYIOed.js";
|
|
24
|
+
import "./runs-CW-qjeWY.js";
|
|
25
|
+
import "./outbound-attachment-DQtDt9Ne.js";
|
|
26
|
+
import "./fetch-guard-jXOgaL7k.js";
|
|
27
|
+
import "./manager-Cd7Dgpw3.js";
|
|
28
|
+
import "./user-run-recording-DBqvoOPn.js";
|
|
29
|
+
import "./recorder-ciEoXXwJ.js";
|
|
30
|
+
import "./agent-turn-runner-Pc5bI_FG.js";
|
|
31
|
+
import "./send-BClohEtC.js";
|
|
32
|
+
import "./send-DkfdQWGD.js";
|
|
33
|
+
import "./query-expansion-Dji7d64T.js";
|
|
34
34
|
|
|
35
35
|
//#region src/hooks/llm-slug-generator.ts
|
|
36
36
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { $n as resolveEnvApiKey, An as normalizeProviderId, Hn as retryAsync, Ii as normalizeResolvedSecretInputString, Ki as resolveAgentConfig, Mi as normalizeOptionalSecretInput, Qn as resolveApiKeyForProvider, St as resolveSessionTranscriptsDirForAgent, Yi as resolveAgentWorkspaceDir, Zn as requireApiKey, in as loadConfig, qi as resolveAgentDir, sa as isTruthyEnvValue } from "./group-
|
|
2
|
+
import { $n as resolveEnvApiKey, An as normalizeProviderId, Hn as retryAsync, Ii as normalizeResolvedSecretInputString, Ki as resolveAgentConfig, Mi as normalizeOptionalSecretInput, Qn as resolveApiKeyForProvider, St as resolveSessionTranscriptsDirForAgent, Yi as resolveAgentWorkspaceDir, Zn as requireApiKey, in as loadConfig, qi as resolveAgentDir, sa as isTruthyEnvValue } from "./group-Dvl8dfJ2.js";
|
|
3
3
|
import { u as resolveStateDir } from "./paths-2qlGWRjc.js";
|
|
4
|
-
import { E as truncateUtf16Safe, b as resolveUserPath, d as clampInt, f as clampNumber, t as createSubsystemLogger } from "./subsystem-
|
|
5
|
-
import { r as formatErrorMessage } from "./errors-
|
|
4
|
+
import { E as truncateUtf16Safe, b as resolveUserPath, d as clampInt, f as clampNumber, t as createSubsystemLogger } from "./subsystem-BntNuBAj.js";
|
|
5
|
+
import { r as formatErrorMessage } from "./errors-7NHaEHOi.js";
|
|
6
6
|
import { n as onSessionTranscriptUpdate } from "./transcript-events-YVxlGEnI.js";
|
|
7
7
|
import { t as resolveNetworkSsrFPolicy } from "./ssrf-config-CGwuoZjW.js";
|
|
8
|
-
import { t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
9
|
-
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-
|
|
8
|
+
import { t as fetchWithSsrFGuard } from "./fetch-guard-DVq681NM.js";
|
|
9
|
+
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-DJ7rNitK.js";
|
|
10
10
|
import fs from "node:fs";
|
|
11
11
|
import os from "node:os";
|
|
12
12
|
import path from "node:path";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { A as resolveApiKeyForProvider, Gn as resolveSessionTranscriptsDirForAgent, H as loadConfig, Hi as isTruthyEnvValue, b as retryAsync, ba as resolveAgentDir, c as normalizeProviderId, j as resolveEnvApiKey, k as requireApiKey, ra as normalizeOptionalSecretInput, sa as normalizeResolvedSecretInputString, wa as resolveAgentWorkspaceDir, ya as resolveAgentConfig } from "./model-selection-
|
|
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-
|
|
2
|
+
import { A as resolveApiKeyForProvider, Gn as resolveSessionTranscriptsDirForAgent, H as loadConfig, Hi as isTruthyEnvValue, b as retryAsync, ba as resolveAgentDir, c as normalizeProviderId, j as resolveEnvApiKey, k as requireApiKey, ra as normalizeOptionalSecretInput, sa as normalizeResolvedSecretInputString, wa as resolveAgentWorkspaceDir, ya as resolveAgentConfig } from "./model-selection-ik2bHbgK.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-cFv2jJm-.js";
|
|
5
5
|
import { n as onSessionTranscriptUpdate } from "./transcript-events-k21fdARq.js";
|
|
6
|
-
import { r as formatErrorMessage } from "./errors-
|
|
6
|
+
import { r as formatErrorMessage } from "./errors-0-at0aYV.js";
|
|
7
7
|
import { t as resolveNetworkSsrFPolicy } from "./ssrf-config-CIKAlvUL.js";
|
|
8
|
-
import { t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
9
|
-
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-
|
|
8
|
+
import { t as fetchWithSsrFGuard } from "./fetch-guard-jXOgaL7k.js";
|
|
9
|
+
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-Dji7d64T.js";
|
|
10
10
|
import path from "node:path";
|
|
11
|
-
import
|
|
11
|
+
import syncFs from "node:fs";
|
|
12
12
|
import os from "node:os";
|
|
13
|
-
import fs
|
|
13
|
+
import fs from "node:fs/promises";
|
|
14
14
|
import { randomUUID } from "node:crypto";
|
|
15
15
|
import chokidar from "chokidar";
|
|
16
16
|
import { createInterface } from "node:readline";
|
|
@@ -894,7 +894,7 @@ function canAutoSelectLocal(options) {
|
|
|
894
894
|
if (/^(hf:|https?:)/i.test(modelPath)) return false;
|
|
895
895
|
const resolved = resolveUserPath(modelPath);
|
|
896
896
|
try {
|
|
897
|
-
return
|
|
897
|
+
return syncFs.statSync(resolved).isFile();
|
|
898
898
|
} catch {
|
|
899
899
|
return false;
|
|
900
900
|
}
|
|
@@ -1222,7 +1222,7 @@ async function extractTimestamp(params) {
|
|
|
1222
1222
|
if (!params.workspaceDir) return null;
|
|
1223
1223
|
const absolutePath = path.isAbsolute(params.filePath) ? params.filePath : path.resolve(params.workspaceDir, params.filePath);
|
|
1224
1224
|
try {
|
|
1225
|
-
const stat = await fs
|
|
1225
|
+
const stat = await fs.stat(absolutePath);
|
|
1226
1226
|
if (!Number.isFinite(stat.mtimeMs)) return null;
|
|
1227
1227
|
return new Date(stat.mtimeMs);
|
|
1228
1228
|
} catch {
|
|
@@ -2393,7 +2393,7 @@ var MemoryManagerSyncOps = class {
|
|
|
2393
2393
|
const source = `${sourceBase}${suffix}`;
|
|
2394
2394
|
const target = `${targetBase}${suffix}`;
|
|
2395
2395
|
try {
|
|
2396
|
-
await fs
|
|
2396
|
+
await fs.rename(source, target);
|
|
2397
2397
|
} catch (err) {
|
|
2398
2398
|
if (err.code !== "ENOENT") throw err;
|
|
2399
2399
|
}
|
|
@@ -2404,7 +2404,7 @@ var MemoryManagerSyncOps = class {
|
|
|
2404
2404
|
"",
|
|
2405
2405
|
"-wal",
|
|
2406
2406
|
"-shm"
|
|
2407
|
-
].map((suffix) => fs
|
|
2407
|
+
].map((suffix) => fs.rm(`${basePath}${suffix}`, { force: true })));
|
|
2408
2408
|
}
|
|
2409
2409
|
ensureSchema() {
|
|
2410
2410
|
const result = ensureMemoryIndexSchema({
|
|
@@ -2428,7 +2428,7 @@ var MemoryManagerSyncOps = class {
|
|
|
2428
2428
|
]);
|
|
2429
2429
|
const additionalPaths = normalizeExtraMemoryPaths(this.workspaceDir, this.settings.extraPaths);
|
|
2430
2430
|
for (const entry of additionalPaths) try {
|
|
2431
|
-
const stat =
|
|
2431
|
+
const stat = syncFs.lstatSync(entry);
|
|
2432
2432
|
if (stat.isSymbolicLink()) continue;
|
|
2433
2433
|
if (stat.isDirectory()) {
|
|
2434
2434
|
watchPaths.add(path.join(entry, "**", "*.md"));
|
|
@@ -3451,7 +3451,7 @@ var MemoryManagerEmbeddingOps = class extends MemoryManagerSyncOps {
|
|
|
3451
3451
|
});
|
|
3452
3452
|
return;
|
|
3453
3453
|
}
|
|
3454
|
-
const content = options.content ?? ("absPath" in entry ? await fs
|
|
3454
|
+
const content = options.content ?? ("absPath" in entry ? await fs.readFile(entry.absPath, "utf-8") : void 0);
|
|
3455
3455
|
if (content === void 0) throw new Error(`memory index: session source ${entry.path} produced no content`);
|
|
3456
3456
|
const chunks = enforceEmbeddingMaxInputTokens(this.provider, chunkMarkdown(content, this.settings.chunking).filter((chunk) => chunk.text.trim().length > 0), EMBEDDING_BATCH_MAX_TOKENS);
|
|
3457
3457
|
if (options.source === "sessions" && "lineMap" in entry) remapChunkLines(chunks, entry.lineMap);
|
|
@@ -3891,7 +3891,7 @@ var MemoryIndexManager = class MemoryIndexManager extends MemoryManagerEmbedding
|
|
|
3891
3891
|
if (!allowedWorkspace && this.settings.extraPaths.length > 0) {
|
|
3892
3892
|
const additionalPaths = normalizeExtraMemoryPaths(this.workspaceDir, this.settings.extraPaths);
|
|
3893
3893
|
for (const additionalPath of additionalPaths) try {
|
|
3894
|
-
const stat = await fs
|
|
3894
|
+
const stat = await fs.lstat(additionalPath);
|
|
3895
3895
|
if (stat.isSymbolicLink()) continue;
|
|
3896
3896
|
if (stat.isDirectory()) {
|
|
3897
3897
|
if (absPath === additionalPath || absPath.startsWith(`${additionalPath}${path.sep}`)) {
|
|
@@ -3916,7 +3916,7 @@ var MemoryIndexManager = class MemoryIndexManager extends MemoryManagerEmbedding
|
|
|
3916
3916
|
};
|
|
3917
3917
|
let content;
|
|
3918
3918
|
try {
|
|
3919
|
-
content = await fs
|
|
3919
|
+
content = await fs.readFile(absPath, "utf-8");
|
|
3920
3920
|
} catch (err) {
|
|
3921
3921
|
if (isFileMissingError(err)) return {
|
|
3922
3922
|
text: "",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { A as resolveApiKeyForProvider, Da as resolveAgentWorkspaceDir, H as loadConfig, Ki as isTruthyEnvValue, Ta as resolveAgentDir, Yn as resolveSessionTranscriptsDirForAgent, b as retryAsync, c as normalizeProviderId, ca as normalizeOptionalSecretInput, fa as normalizeResolvedSecretInputString, j as resolveEnvApiKey, k as requireApiKey, wa as resolveAgentConfig } from "./model-selection-
|
|
2
|
+
import { A as resolveApiKeyForProvider, Da as resolveAgentWorkspaceDir, H as loadConfig, Ki as isTruthyEnvValue, Ta as resolveAgentDir, Yn as resolveSessionTranscriptsDirForAgent, b as retryAsync, c as normalizeProviderId, ca as normalizeOptionalSecretInput, fa as normalizeResolvedSecretInputString, j as resolveEnvApiKey, k as requireApiKey, wa as resolveAgentConfig } from "./model-selection-BkyEkRcd.js";
|
|
3
3
|
import { l as resolveStateDir } from "./paths-B_gs59ga.js";
|
|
4
4
|
import { $ as clampNumber, Q as clampInt, pt as truncateUtf16Safe, st as resolveUserPath, t as createSubsystemLogger } from "./subsystem-DynBFcQj.js";
|
|
5
5
|
import { n as onSessionTranscriptUpdate } from "./transcript-events-DGL7W2cG.js";
|
|
6
6
|
import { r as formatErrorMessage } from "./errors-yyPKpoXR.js";
|
|
7
7
|
import { t as resolveNetworkSsrFPolicy } from "./ssrf-config-DYF6dHGu.js";
|
|
8
|
-
import { t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
9
|
-
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-
|
|
8
|
+
import { t as fetchWithSsrFGuard } from "./fetch-guard-C1e2uLCm.js";
|
|
9
|
+
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-BC9pRVpQ.js";
|
|
10
10
|
import path from "node:path";
|
|
11
11
|
import syncFs from "node:fs";
|
|
12
12
|
import os from "node:os";
|
|
@@ -13584,7 +13584,7 @@ function createPluginRegistry(registryParams) {
|
|
|
13584
13584
|
configurable: true,
|
|
13585
13585
|
value: {
|
|
13586
13586
|
...registryParams.runtime.signals,
|
|
13587
|
-
nudge: async (input) => (await import("./nudge-
|
|
13587
|
+
nudge: async (input) => (await import("./nudge-Dg8Pe_sD.js").then((n) => n.t)).requestAuthorizedNudge({
|
|
13588
13588
|
kind: "plugin",
|
|
13589
13589
|
pluginId: record.id
|
|
13590
13590
|
}, input)
|