@symerian/symi 2.0.24 → 2.1.0
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/{agents-2Slv_WIp.js → agents-BNF3OUDd.js} +4 -4
- package/dist/{agents.config-aKHTUjVK.js → agents.config-B_qhQi0f.js} +1 -1
- package/dist/{agents.config-3GYBGFRy.js → agents.config-t7FdJujr.js} +1 -1
- package/dist/{audio-preflight-jaMIMdV3.js → audio-preflight-CdZ7aXUT.js} +4 -4
- package/dist/{auth-choice-CkEtpUvW.js → auth-choice-DZTkXFl-.js} +1 -1
- package/dist/{auth-choice-BzuGX2ET.js → auth-choice-iZB4sGvl.js} +1 -1
- package/dist/{banner-Cetc-uA0.js → banner-BsCs2JGc.js} +1 -1
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +2 -2
- package/dist/bundled/session-memory/handler.js +2 -2
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-options-ayY8htYG.js → channel-options-BYCPesaD.js} +1 -1
- package/dist/{channel-options-BvRRt5lE.js → channel-options-CHF9c6FY.js} +1 -1
- package/dist/{channel-web-CA7NCnAU.js → channel-web-Kt_j1QOj.js} +1 -1
- package/dist/{channels-cli-B8_Hn_JG.js → channels-cli-ClwM5weH.js} +6 -6
- package/dist/{channels-cli-Cr2ND5Ck.js → channels-cli-DT1qfmcb.js} +6 -6
- package/dist/{chrome-CTcnKcDU.js → chrome-Ccn3teyk.js} +7 -7
- package/dist/{cli-C9H2cgZa.js → cli-CUPKVz7g.js} +3 -3
- package/dist/{cli-BONgNtI6.js → cli-D_td9hk-.js} +3 -3
- package/dist/{command-registry-CYkmIRSj.js → command-registry-S9Fhf4c1.js} +10 -10
- package/dist/{completion-cli-Bqdcg5hp.js → completion-cli-CDN_tdvo.js} +1 -1
- package/dist/{completion-cli-Qv8_Vnw3.js → completion-cli-CnLexFdC.js} +2 -2
- package/dist/{config-cli-dO3O4PE6.js → config-cli-B9MuT7ra.js} +1 -1
- package/dist/{config-cli--iVUJOKB.js → config-cli-C-Hf7pJY.js} +1 -1
- package/dist/{configure-CJXXqp0t.js → configure-BVJX5jHt.js} +3 -3
- package/dist/{configure-7GGtnxAx.js → configure-mQsIxCGj.js} +3 -3
- package/dist/control-ui/js/app.js +16 -41
- package/dist/control-ui/js/render.js +9 -3
- package/dist/{deliver-BklTO2jq.js → deliver-CTLClsFg.js} +1 -1
- package/dist/{doctor-completion-2pOgfi5X.js → doctor-completion-AOqgLS4U.js} +1 -1
- package/dist/{doctor-completion-BXZ8aBWN.js → doctor-completion-BG8Cg9mp.js} +1 -1
- package/dist/entry.js +1 -1
- package/dist/extensionAPI.js +7 -7
- package/dist/{gateway-cli-DdfE-Qud.js → gateway-cli-3xIbQUvB.js} +11 -11
- package/dist/{gateway-cli-BzScglLB.js → gateway-cli-Bpze8UCK.js} +11 -11
- package/dist/{glass-ui-ws-CMkw5YM1.js → glass-ui-ws-BlIbIFja.js} +9 -9
- package/dist/{glass-ui-ws-r9Xzs77h.js → glass-ui-ws-kaPdOFQ1.js} +9 -9
- package/dist/{health-DQ3XEpzi.js → health-DBwSpMeO.js} +1 -1
- package/dist/{health-5ZtemgeO.js → health-Dp4Q9nXE.js} +1 -1
- package/dist/{hooks-cli-DZwzWt2B.js → hooks-cli-BaGV9nsK.js} +4 -4
- package/dist/{hooks-cli-D-FNhrKU.js → hooks-cli-CRn_j55j.js} +4 -4
- package/dist/{image-CUYqZhvS.js → image-DbrwHH9b.js} +1 -1
- package/dist/index.js +8 -8
- package/dist/llm-slug-generator.js +2 -2
- package/dist/{manager-DVVFabIj.js → manager-CL7MzOkQ.js} +76 -11
- package/dist/{manager-Dv2cMdMo.js → manager-DrSOlqpk.js} +76 -11
- package/dist/{manager-Ctbgi2K4.js → manager-M83fJMDC.js} +76 -11
- package/dist/{manager-DeLmBZ39.js → manager-RThEiATX.js} +76 -11
- package/dist/{memory-cli-lgXFdWSf.js → memory-cli-Bt9d248V.js} +3 -3
- package/dist/{memory-cli-CskGK36B.js → memory-cli-Cfckrobf.js} +3 -3
- package/dist/{models-Duhwal5Q.js → models-DOEuOTkj.js} +2 -2
- package/dist/{models-cli-DSYSRqhX.js → models-cli-DJzcRyPn.js} +4 -4
- package/dist/{models-cli-Fruesavk.js → models-cli-Da_ycT4E.js} +5 -5
- package/dist/{onboard-Deo_T2AR.js → onboard-Cj-BNQ8q.js} +2 -2
- package/dist/{onboard-kwm7Bshh.js → onboard-D62AfYak.js} +2 -2
- package/dist/{onboard-channels-BbhoZWuh.js → onboard-channels-BJY5FrhC.js} +1 -1
- package/dist/{onboard-channels-CCiFhk1N.js → onboard-channels-DqvkgA44.js} +1 -1
- package/dist/{onboarding-CIEiNfre.js → onboarding-BVBk-a0N.js} +3 -3
- package/dist/{onboarding-_YqH1Wmc.js → onboarding-DZr7frCp.js} +3 -3
- package/dist/{onboarding.finalize-DHa8QCea.js → onboarding.finalize-ClGudWHI.js} +7 -7
- package/dist/{onboarding.finalize-CQ-uVQ6r.js → onboarding.finalize-DjWsLgGj.js} +8 -8
- package/dist/{pi-embedded-DyCO1o5V.js → pi-embedded-6aosCkCE.js} +5 -5
- package/dist/{pi-embedded-BFWNnHTw.js → pi-embedded-BmhXyBan.js} +19 -19
- package/dist/{pi-embedded-helpers-DZ3Lcixd.js → pi-embedded-helpers-Co6u9rYt.js} +4 -4
- package/dist/{plugin-registry-DmxC3a3G.js → plugin-registry-B9o0EnWk.js} +1 -1
- package/dist/{plugin-registry-7OViua2f.js → plugin-registry-DqfOHgSY.js} +1 -1
- package/dist/plugin-sdk/{accounts-BToL3HlP.js → accounts-BtaOa4z_.js} +1 -1
- package/dist/plugin-sdk/{accounts-D9zGZU5t.js → accounts-Ddm33hQm.js} +3 -3
- package/dist/plugin-sdk/{accounts-Dtszw3Zn.js → accounts-s-AdhXVR.js} +1 -1
- package/dist/plugin-sdk/{active-listener-bEk__wbB.js → active-listener-BXYeALs0.js} +1 -1
- package/dist/plugin-sdk/{agent-scope-C3gMMKCU.js → agent-scope-CYYpcO9W.js} +2 -2
- package/dist/plugin-sdk/{api-key-rotation-B7wX2cS9.js → api-key-rotation-BNN7DLRF.js} +1 -1
- package/dist/plugin-sdk/{audio-preflight-DmO-qZO9.js → audio-preflight-BzbpDAkS.js} +24 -24
- package/dist/plugin-sdk/{bindings-BbwoUGPx.js → bindings-C7hRtgYW.js} +2 -2
- package/dist/plugin-sdk/{channel-activity-Ji7f0gqq.js → channel-activity-DoC1xtDu.js} +1 -1
- package/dist/plugin-sdk/{channel-web-D3JZoBCW.js → channel-web-DiO1WsXm.js} +22 -22
- package/dist/plugin-sdk/{chrome-D3HqV4lE.js → chrome-BIOpja0y.js} +3 -3
- package/dist/plugin-sdk/{chunk-jvk9axTQ.js → chunk-Dw2XBYXv.js} +1 -1
- package/dist/plugin-sdk/{command-format-DSdvQ_M5.js → command-format-GKSevep4.js} +1 -1
- package/dist/plugin-sdk/{commands-registry-DFVoW5Za.js → commands-registry-B6QKgH1z.js} +4 -4
- package/dist/plugin-sdk/{config-DGdT3hiT.js → config-lc09wRnM.js} +9 -9
- package/dist/plugin-sdk/{deliver-CRVsC0d1.js → deliver-Bk381_qd.js} +10 -10
- package/dist/plugin-sdk/{diagnostic-mFf4i4G9.js → diagnostic-05pm5Rxi.js} +1 -1
- package/dist/plugin-sdk/{image-Cou87v78.js → image-DB8curb-.js} +4 -4
- package/dist/plugin-sdk/{image-ops-Bnp6LXEx.js → image-ops-BlQR__MN.js} +1 -1
- package/dist/plugin-sdk/index.js +53 -53
- package/dist/plugin-sdk/{ir-Fb3qpcis.js → ir-BJ6BHE5b.js} +4 -4
- package/dist/plugin-sdk/{local-roots-Ckk1QfzI.js → local-roots-BHLNSI8U.js} +3 -3
- package/dist/plugin-sdk/{login-J97Xs3mQ.js → login-hNMO63Eg.js} +7 -7
- package/dist/plugin-sdk/{login-qr-CYoaQJNf.js → login-qr-CJsU7ocT.js} +9 -9
- package/dist/plugin-sdk/{manager-Co0ZGhG7.js → manager-Cn2S7u-y.js} +84 -19
- package/dist/plugin-sdk/{manifest-registry-B3ugY9-f.js → manifest-registry-CPnHl_K3.js} +1 -1
- package/dist/plugin-sdk/{markdown-tables-Dfaqilz6.js → markdown-tables-BoYFajMu.js} +1 -1
- package/dist/plugin-sdk/memory/hybrid.d.ts +2 -0
- package/dist/plugin-sdk/memory/manager-embedding-ops.d.ts +1 -0
- package/dist/plugin-sdk/memory/manager-search.d.ts +1 -0
- package/dist/plugin-sdk/memory/manager-sync-ops.d.ts +1 -0
- package/dist/plugin-sdk/memory/manager.d.ts +1 -0
- package/dist/plugin-sdk/memory/types.d.ts +8 -0
- package/dist/plugin-sdk/{message-channel-BdI5Ra9S.js → message-channel-COTAJzHd.js} +1 -1
- package/dist/plugin-sdk/{model-selection-UQwTqGSw.js → model-selection-CPEL3Uc_.js} +4 -4
- package/dist/plugin-sdk/{outbound-CyzXQ9GA.js → outbound-NgBi-sk8.js} +7 -7
- package/dist/plugin-sdk/{outbound-attachment-DnVQfTG2.js → outbound-attachment-CnslKL38.js} +2 -2
- package/dist/plugin-sdk/{pi-auth-json-DAttpBPg.js → pi-auth-json-D4gyc_V3.js} +5 -5
- package/dist/plugin-sdk/{pi-embedded-helpers-DcxJ_dCv.js → pi-embedded-helpers-DcxGeorG.js} +17 -17
- package/dist/plugin-sdk/{plugins-BbAvhC25.js → plugins-BNByVCIH.js} +4 -4
- package/dist/plugin-sdk/{pw-ai-DqBUVw9D.js → pw-ai-B0VzayDJ.js} +8 -8
- package/dist/plugin-sdk/{qmd-manager-mjKcdwVr.js → qmd-manager-CH0XbIHf.js} +4 -4
- package/dist/plugin-sdk/{registry--_pGht6S.js → registry-D0xTnUWt.js} +2 -2
- package/dist/plugin-sdk/{replies-Bt_4rkga.js → replies-BCsVYl4o.js} +3 -3
- package/dist/plugin-sdk/{reply-BHdxuPym.js → reply-4kNYrpaI.js} +78 -78
- package/dist/plugin-sdk/{reply-prefix-BHuV5t70.js → reply-prefix-uxfMZW4p.js} +1 -1
- package/dist/plugin-sdk/{resolve-outbound-target-BkCUbYGV.js → resolve-outbound-target-BiyAyTWz.js} +2 -2
- package/dist/plugin-sdk/{resolve-route-D3JH_D2N.js → resolve-route-B3CCBumQ.js} +3 -3
- package/dist/plugin-sdk/{retry-ilSJqnz9.js → retry-CwQ_iIj8.js} +1 -1
- package/dist/plugin-sdk/{runner-DOK4nOOu.js → runner-wiQcSC_Z.js} +9 -9
- package/dist/plugin-sdk/{send-DoeU6JH3.js → send-BBo0F5E0.js} +10 -10
- package/dist/plugin-sdk/{send-BUTL8LgP.js → send-BopyAy0U.js} +6 -6
- package/dist/plugin-sdk/{send-BWZEL5Hm.js → send-CNfeWYOl.js} +10 -10
- package/dist/plugin-sdk/{send-U4QnHFuL.js → send-LFxvkq5t.js} +6 -6
- package/dist/plugin-sdk/{send-_XHCj2iv.js → send-XSeiJkB-.js} +7 -7
- package/dist/plugin-sdk/{session-dNI_CU-U.js → session-Dkqq0dEe.js} +4 -4
- package/dist/plugin-sdk/{skill-commands-27tIhSRP.js → skill-commands-BUVE0jBL.js} +5 -5
- package/dist/plugin-sdk/{skills-B1GeRYlu.js → skills-_yTP47Cd.js} +7 -7
- package/dist/plugin-sdk/{sqlite-Cq_7Cg4E.js → sqlite-CxAR5ttJ.js} +1 -1
- package/dist/plugin-sdk/{store-Do3t33-c.js → store-BdrNabcU.js} +2 -2
- package/dist/plugin-sdk/{subsystem-Coz2AgU8.js → subsystem-B2uDN3TV.js} +1 -1
- package/dist/plugin-sdk/{tables-DR0NmBeH.js → tables-DNwXwNFa.js} +1 -1
- package/dist/plugin-sdk/{target-errors-B7YyMnIi.js → target-errors-Paro1BjP.js} +2 -2
- package/dist/plugin-sdk/{thinking-DCNUIAHY.js → thinking-CXqf7WTe.js} +5 -5
- package/dist/plugin-sdk/{tokens-CWMflosr.js → tokens-bC3UVmVH.js} +1 -1
- package/dist/plugin-sdk/{tool-images-D7Lno-TE.js → tool-images-HJ2sfZDV.js} +2 -2
- package/dist/plugin-sdk/{tool-loop-detection-edmW8ZiF.js → tool-loop-detection-BVA6fax-.js} +2 -2
- package/dist/plugin-sdk/web-BxGmATPU.js +65 -0
- package/dist/plugin-sdk/{whatsapp-actions-U4dJ5DZZ.js → whatsapp-actions-DZyGHiN8.js} +21 -21
- package/dist/{plugins-cli-CDY9bX9F.js → plugins-cli-B8xVmAuR.js} +4 -4
- package/dist/{plugins-cli-Ca-2s0mB.js → plugins-cli-DREF5Y06.js} +4 -4
- package/dist/{program-context-DkHjT7p8.js → program-context-Qr4P_3lt.js} +18 -18
- package/dist/{program-BnymHVbq.js → program-q-ZGnun7.js} +9 -9
- package/dist/{prompt-select-styled-gd8Q7kTk.js → prompt-select-styled-BGN9e74V.js} +6 -6
- package/dist/{prompt-select-styled-C40kayHq.js → prompt-select-styled-BO2fAMkR.js} +6 -6
- package/dist/{provider-auth-helpers-BQZmtboq.js → provider-auth-helpers-B3J64Jh2.js} +1 -1
- package/dist/{provider-auth-helpers-2ZFybTSC.js → provider-auth-helpers-DsbN2XiG.js} +1 -1
- package/dist/{push-apns-BTOgWzu3.js → push-apns-Ba9C9T6a.js} +1 -1
- package/dist/{push-apns-DcwJLjj4.js → push-apns-CeICANgd.js} +1 -1
- package/dist/{pw-ai-DY2vHEE2.js → pw-ai-BSTzJb4x.js} +1 -1
- package/dist/{register.agent-DRlHunj4.js → register.agent-BZBDrxwe.js} +8 -8
- package/dist/{register.agent-CUzSAFLR.js → register.agent-DDqJWohA.js} +7 -7
- package/dist/{register.configure-C8AOCj2z.js → register.configure-B27lkird.js} +8 -8
- package/dist/{register.configure-DxmZflTV.js → register.configure-xDJRQslK.js} +8 -8
- package/dist/{register.maintenance-C2yYpGsB.js → register.maintenance-C7KqQS56.js} +10 -10
- package/dist/{register.maintenance-BOHzvNEv.js → register.maintenance-CCo66MmS.js} +9 -9
- package/dist/{register.message-BwHXPTdE.js → register.message-CTb856sp.js} +4 -4
- package/dist/{register.message-BjVTvD18.js → register.message-mqY_8nFj.js} +4 -4
- package/dist/{register.onboard-1J-md52-.js → register.onboard-B_62CoFF.js} +6 -6
- package/dist/{register.onboard-pa2gAtlr.js → register.onboard-DCadPRqN.js} +6 -6
- package/dist/{register.setup-08AvEje_.js → register.setup-CetgUu6b.js} +6 -6
- package/dist/{register.setup-Cw8AS2ct.js → register.setup-D4vceMjW.js} +6 -6
- package/dist/{register.status-health-sessions-D11MHrrN.js → register.status-health-sessions-DFVOAFGc.js} +5 -5
- package/dist/{register.status-health-sessions-Blye9Exm.js → register.status-health-sessions-oREONKrQ.js} +5 -5
- package/dist/{register.subclis-b7zkQpHC.js → register.subclis-Ch7CsZP4.js} +9 -9
- package/dist/{reply-IIs7TFkU.js → reply-BZn2Smlt.js} +4 -4
- package/dist/{run-main-B_IHY4_P.js → run-main-L9-PmGcv.js} +17 -17
- package/dist/{runner-mzKdroBs.js → runner-RWwoIsld.js} +1 -1
- package/dist/{server-methods-ly9rxYy9.js → server-methods-Cr4xi0KV.js} +7 -7
- package/dist/{server-methods-f8mvUGBY.js → server-methods-UzcnQvxB.js} +7 -7
- package/dist/{server-node-events-Dn29YyKb.js → server-node-events-B8gQNWfX.js} +4 -4
- package/dist/{server-node-events-Ci6Vl3GE.js → server-node-events-Cj5CSKH2.js} +4 -4
- package/dist/{status-DAosaOZ9.js → status-3kOYUAe6.js} +3 -3
- package/dist/{status-CL_BV-5C.js → status-Bpz3T9tk.js} +1 -1
- package/dist/{status-DBfu3QLG.js → status-C3zEYCNx.js} +3 -3
- package/dist/{status-DJuKDk_J.js → status-JZ1tEKrI.js} +1 -1
- package/dist/{subagent-registry-C-4sylAS.js → subagent-registry-BmqDNBQA.js} +4 -4
- package/dist/{update-cli-Ds-rcfCm.js → update-cli-CcMqLG-F.js} +10 -10
- package/dist/{update-cli-eFRvF4NY.js → update-cli-YIILU6BZ.js} +9 -9
- package/dist/{update-runner-Z_RJvKCC.js → update-runner-BZ8CU4YI.js} +1 -1
- package/dist/{update-runner-DP-qIkLO.js → update-runner-DeRhiJkE.js} +1 -1
- package/dist/{web-AqZCRhcz.js → web-BD8iPNff.js} +4 -4
- package/dist/{web-CYKQL396.js → web-BXaT5obz.js} +7 -7
- package/dist/{web-Dd-yg3ar.js → web-DbjazvT5.js} +2 -2
- package/dist/{web-DoQWiQnO.js → web-Dx7mFsKF.js} +3 -3
- package/package.json +1 -1
- package/dist/plugin-sdk/web-DB8ZqlXs.js +0 -65
package/dist/plugin-sdk/index.js
CHANGED
|
@@ -1,68 +1,68 @@
|
|
|
1
1
|
import { f as DEFAULT_ACCOUNT_ID, p as normalizeAccountId } from "./session-key-C_0eELjb.js";
|
|
2
|
-
import { _ as createAccountListHelpers, i as resolveWhatsAppAuthDir, n as resolveDefaultWhatsAppAccountId, r as resolveWhatsAppAccount, t as listWhatsAppAccountIds } from "./accounts-
|
|
3
|
-
import { $ as clearHistoryEntriesIfEnabled, A as resolveDiscordUserAllowlist, B as logTypingFailure, C as stripMarkdown, Ct as unbindThreadBindingsBySessionKey, D as resolveSlackUserAllowlist, Dt as BLUEBUBBLES_ACTION_NAMES, Et as BLUEBUBBLES_ACTIONS, F as stringEnum, G as resolveMentionGating, H as removeAckReactionAfterReply, I as recordInboundSession, J as summarizeMapping, K as resolveMentionGatingWithBypass, L as resolveControlCommandGate, M as collectDiscordAuditChannelIds, N as formatDocsLink, O as resolveSlackChannelAllowlist, Ot as BLUEBUBBLES_GROUP_ACTIONS, P as optionalStringEnum, Q as clearHistoryEntries, R as logAckFailure, S as processLineMessage, St as listThreadBindingsBySessionKey, T as attachFooterText, Tt as resolveAllowlistMatchSimple, U as shouldAckReaction, V as createTypingCallbacks, W as shouldAckReactionForWhatsApp, Y as DEFAULT_GROUP_HISTORY_LIMIT, Z as buildPendingHistoryContextFromMap, _t as listDevicePairing, a as normalizeAccountId$1, at as isWSLEnv, bt as registerPluginHttpRoute, ct as DEFAULT_WEBHOOK_MAX_BODY_BYTES, dt as isRequestBodyLimitError, et as recordPendingHistoryEntry, ft as readJsonBodyWithLimit, gt as approveDevicePairing, ht as createDedupeCache, i as listLineAccountIds, it as isWSL2Sync, j as resolveDiscordChannelAllowlist, k as detectBinary, kt as CHANNEL_MESSAGE_ACTION_NAMES, lt as RequestBodyLimitError, mt as requestBodyErrorToText, o as resolveDefaultLineAccountId, ot as isWSLSync, pt as readRequestBodyWithLimit, q as mergeAllowlist, s as resolveLineAccount, st as DEFAULT_WEBHOOK_BODY_TIMEOUT_MS, tt as recordPendingHistoryEntryIfEnabled, ut as installRequestBodyLimitGuard, vt as rejectDevicePairing, w as createReceiptCard, wt as formatAllowlistMatchMeta, x as hasMarkdownToConvert, xt as autoBindSpawnedDiscordSubagent, yt as extractToolSend, z as logInboundDrop } from "./reply-
|
|
2
|
+
import { _ as createAccountListHelpers, i as resolveWhatsAppAuthDir, n as resolveDefaultWhatsAppAccountId, r as resolveWhatsAppAccount, t as listWhatsAppAccountIds } from "./accounts-Ddm33hQm.js";
|
|
3
|
+
import { $ as clearHistoryEntriesIfEnabled, A as resolveDiscordUserAllowlist, B as logTypingFailure, C as stripMarkdown, Ct as unbindThreadBindingsBySessionKey, D as resolveSlackUserAllowlist, Dt as BLUEBUBBLES_ACTION_NAMES, Et as BLUEBUBBLES_ACTIONS, F as stringEnum, G as resolveMentionGating, H as removeAckReactionAfterReply, I as recordInboundSession, J as summarizeMapping, K as resolveMentionGatingWithBypass, L as resolveControlCommandGate, M as collectDiscordAuditChannelIds, N as formatDocsLink, O as resolveSlackChannelAllowlist, Ot as BLUEBUBBLES_GROUP_ACTIONS, P as optionalStringEnum, Q as clearHistoryEntries, R as logAckFailure, S as processLineMessage, St as listThreadBindingsBySessionKey, T as attachFooterText, Tt as resolveAllowlistMatchSimple, U as shouldAckReaction, V as createTypingCallbacks, W as shouldAckReactionForWhatsApp, Y as DEFAULT_GROUP_HISTORY_LIMIT, Z as buildPendingHistoryContextFromMap, _t as listDevicePairing, a as normalizeAccountId$1, at as isWSLEnv, bt as registerPluginHttpRoute, ct as DEFAULT_WEBHOOK_MAX_BODY_BYTES, dt as isRequestBodyLimitError, et as recordPendingHistoryEntry, ft as readJsonBodyWithLimit, gt as approveDevicePairing, ht as createDedupeCache, i as listLineAccountIds, it as isWSL2Sync, j as resolveDiscordChannelAllowlist, k as detectBinary, kt as CHANNEL_MESSAGE_ACTION_NAMES, lt as RequestBodyLimitError, mt as requestBodyErrorToText, o as resolveDefaultLineAccountId, ot as isWSLSync, pt as readRequestBodyWithLimit, q as mergeAllowlist, s as resolveLineAccount, st as DEFAULT_WEBHOOK_BODY_TIMEOUT_MS, tt as recordPendingHistoryEntryIfEnabled, ut as installRequestBodyLimitGuard, vt as rejectDevicePairing, w as createReceiptCard, wt as formatAllowlistMatchMeta, x as hasMarkdownToConvert, xt as autoBindSpawnedDiscordSubagent, yt as extractToolSend, z as logInboundDrop } from "./reply-4kNYrpaI.js";
|
|
4
4
|
import "./paths-DR2yt_mP.js";
|
|
5
5
|
import "./github-copilot-token-D9X2phUj.js";
|
|
6
|
-
import { D as resolveSlackAccount, E as resolveDefaultSlackAccountId, F as resolveDiscordAccount, M as listDiscordAccountIds, O as resolveSlackReplyToMode, P as resolveDefaultDiscordAccountId, S as resolveTelegramAccount, T as listSlackAccountIds, _ as normalizeWhatsAppTarget, a as listDiscordDirectoryPeersFromConfig, b as listTelegramAccountIds, c as listTelegramDirectoryGroupsFromConfig, d as listWhatsAppDirectoryPeersFromConfig, f as looksLikeSlackTargetId, g as isWhatsAppGroupJid, i as listDiscordDirectoryGroupsFromConfig, l as listTelegramDirectoryPeersFromConfig, o as listSlackDirectoryGroupsFromConfig, p as normalizeSlackMessagingTarget, s as listSlackDirectoryPeersFromConfig, u as listWhatsAppDirectoryGroupsFromConfig, w as listEnabledSlackAccounts, x as resolveDefaultTelegramAccountId } from "./plugins-
|
|
6
|
+
import { D as resolveSlackAccount, E as resolveDefaultSlackAccountId, F as resolveDiscordAccount, M as listDiscordAccountIds, O as resolveSlackReplyToMode, P as resolveDefaultDiscordAccountId, S as resolveTelegramAccount, T as listSlackAccountIds, _ as normalizeWhatsAppTarget, a as listDiscordDirectoryPeersFromConfig, b as listTelegramAccountIds, c as listTelegramDirectoryGroupsFromConfig, d as listWhatsAppDirectoryPeersFromConfig, f as looksLikeSlackTargetId, g as isWhatsAppGroupJid, i as listDiscordDirectoryGroupsFromConfig, l as listTelegramDirectoryPeersFromConfig, o as listSlackDirectoryGroupsFromConfig, p as normalizeSlackMessagingTarget, s as listSlackDirectoryPeersFromConfig, u as listWhatsAppDirectoryGroupsFromConfig, w as listEnabledSlackAccounts, x as resolveDefaultTelegramAccountId } from "./plugins-BNByVCIH.js";
|
|
7
7
|
import "./fetch-CUNoPTKm.js";
|
|
8
|
-
import { A as normalizeE164, D as isRecord, F as safeParseJson, R as sleep, T as escapeRegExp, b as CONFIG_DIR, f as normalizePluginHttpPath, i as getChatChannelMeta, it as registerLogTransport, j as pathExists, x as clamp } from "./registry
|
|
9
|
-
import "./retry-
|
|
10
|
-
import { Dt as resolveChannelEntryMatch, Et as normalizeChannelSlug, Ot as resolveChannelEntryMatchWithFallback, Tt as buildChannelKeyCandidates, dt as normalizeDiscordSlug, it as parseDiscordTarget, kt as resolveNestedAllowlistDecision } from "./send-
|
|
11
|
-
import { A as MarkdownConfigSchema, D as DmConfigSchema, E as BlockStreamingCoalesceSchema, F as TtsProviderSchema, I as normalizeAllowFrom, L as requireOpenAllowFrom, M as TtsAutoSchema, N as TtsConfigSchema, O as DmPolicySchema, P as TtsModeSchema, T as ToolPolicySchema, c as WhatsAppConfigSchema, d as IMessageConfigSchema, f as MSTeamsConfigSchema, h as TelegramConfigSchema, j as MarkdownTableModeSchema, k as GroupPolicySchema, l as DiscordConfigSchema, m as SlackConfigSchema, p as SignalConfigSchema, u as GoogleChatConfigSchema } from "./config-
|
|
12
|
-
import { n as stripAnsi } from "./subsystem-
|
|
13
|
-
import { r as isTruthyEnvValue, t as formatCliCommand } from "./command-format-
|
|
14
|
-
import { H as withFileLock, V as acquireFileLock } from "./model-selection-
|
|
15
|
-
import { T as runCommandWithTimeout } from "./agent-scope-
|
|
16
|
-
import "./manifest-registry-
|
|
8
|
+
import { A as normalizeE164, D as isRecord, F as safeParseJson, R as sleep, T as escapeRegExp, b as CONFIG_DIR, f as normalizePluginHttpPath, i as getChatChannelMeta, it as registerLogTransport, j as pathExists, x as clamp } from "./registry-D0xTnUWt.js";
|
|
9
|
+
import "./retry-CwQ_iIj8.js";
|
|
10
|
+
import { Dt as resolveChannelEntryMatch, Et as normalizeChannelSlug, Ot as resolveChannelEntryMatchWithFallback, Tt as buildChannelKeyCandidates, dt as normalizeDiscordSlug, it as parseDiscordTarget, kt as resolveNestedAllowlistDecision } from "./send-BBo0F5E0.js";
|
|
11
|
+
import { A as MarkdownConfigSchema, D as DmConfigSchema, E as BlockStreamingCoalesceSchema, F as TtsProviderSchema, I as normalizeAllowFrom, L as requireOpenAllowFrom, M as TtsAutoSchema, N as TtsConfigSchema, O as DmPolicySchema, P as TtsModeSchema, T as ToolPolicySchema, c as WhatsAppConfigSchema, d as IMessageConfigSchema, f as MSTeamsConfigSchema, h as TelegramConfigSchema, j as MarkdownTableModeSchema, k as GroupPolicySchema, l as DiscordConfigSchema, m as SlackConfigSchema, p as SignalConfigSchema, u as GoogleChatConfigSchema } from "./config-lc09wRnM.js";
|
|
12
|
+
import { n as stripAnsi } from "./subsystem-B2uDN3TV.js";
|
|
13
|
+
import { r as isTruthyEnvValue, t as formatCliCommand } from "./command-format-GKSevep4.js";
|
|
14
|
+
import { H as withFileLock, V as acquireFileLock } from "./model-selection-CPEL3Uc_.js";
|
|
15
|
+
import { T as runCommandWithTimeout } from "./agent-scope-CYYpcO9W.js";
|
|
16
|
+
import "./manifest-registry-CPnHl_K3.js";
|
|
17
17
|
import "./redact-DPnDWsnT.js";
|
|
18
18
|
import { n as formatErrorMessage } from "./errors-Bv8oZiTO.js";
|
|
19
|
-
import "./channel-activity-
|
|
20
|
-
import { c as detectMime, l as extensionForMime, u as getFileExtension } from "./image-ops-
|
|
19
|
+
import "./channel-activity-DoC1xtDu.js";
|
|
20
|
+
import { c as detectMime, l as extensionForMime, u as getFileExtension } from "./image-ops-BlQR__MN.js";
|
|
21
21
|
import { a as isBlockedHostnameOrIp, i as isBlockedHostname, o as isPrivateIpAddress, t as SsrFBlockedError } from "./ssrf-DKZ8eBrk.js";
|
|
22
|
-
import { o as fetchWithSsrFGuard } from "./local-roots-
|
|
23
|
-
import { a as loadWebMedia } from "./ir-
|
|
24
|
-
import { u as chunkTextByBreakResolver } from "./chunk-
|
|
25
|
-
import "./message-channel-
|
|
26
|
-
import "./bindings-
|
|
27
|
-
import "./markdown-tables-
|
|
22
|
+
import { o as fetchWithSsrFGuard } from "./local-roots-BHLNSI8U.js";
|
|
23
|
+
import { a as loadWebMedia } from "./ir-BJ6BHE5b.js";
|
|
24
|
+
import { u as chunkTextByBreakResolver } from "./chunk-Dw2XBYXv.js";
|
|
25
|
+
import "./message-channel-COTAJzHd.js";
|
|
26
|
+
import "./bindings-C7hRtgYW.js";
|
|
27
|
+
import "./markdown-tables-BoYFajMu.js";
|
|
28
28
|
import "./render-BiJZ5W4Z.js";
|
|
29
|
-
import "./tables-
|
|
30
|
-
import { d as resolveServicePrefixedAllowTarget, f as resolveServicePrefixedTarget, l as parseChatAllowTargetPrefixes, m as isAllowedParsedChatSender, p as formatAllowFromLowercase, s as normalizeIMessageHandle, u as parseChatTargetPrefixesOrThrow } from "./send-
|
|
31
|
-
import "./tool-images-
|
|
32
|
-
import { a as createActionGate, c as jsonResult, d as readReactionParams, m as readStringParam, n as missingTargetError, u as readNumberParam } from "./target-errors-
|
|
33
|
-
import { s as parseSlackBlocksInput } from "./send-
|
|
34
|
-
import { it as writeJsonFileAtomically, nt as toLocationContext, rt as readJsonFileWithFallback, tt as formatLocationText } from "./send-
|
|
35
|
-
import { b as withTempDownloadPath, y as buildRandomTempFilePath } from "./runner-
|
|
36
|
-
import { a as resolveAckReaction, n as createReplyPrefixOptions, t as createReplyPrefixContext } from "./reply-prefix-
|
|
37
|
-
import { a as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-
|
|
38
|
-
import "./skill-commands-
|
|
39
|
-
import "./skills-
|
|
40
|
-
import { N as rawDataToString } from "./chrome-
|
|
41
|
-
import { C as resolveSlackGroupRequireMention, D as resolveWhatsAppGroupRequireMention, E as resolveTelegramGroupToolPolicy, L as resolveToolsBySender, N as buildSlackThreadingToolContext, O as resolveWhatsAppGroupToolPolicy, S as resolveIMessageGroupToolPolicy, T as resolveTelegramGroupRequireMention, _ as resolveDiscordGroupRequireMention, b as resolveGoogleChatGroupToolPolicy, g as resolveBlueBubblesGroupToolPolicy, h as resolveBlueBubblesGroupRequireMention, m as normalizeSignalMessagingTarget, p as looksLikeSignalTargetId, v as resolveDiscordGroupToolPolicy, w as resolveSlackGroupToolPolicy, x as resolveIMessageGroupRequireMention, y as resolveGoogleChatGroupRequireMention } from "./thinking-
|
|
42
|
-
import { n as resolveDefaultIMessageAccountId, r as resolveIMessageAccount, t as listIMessageAccountIds } from "./accounts-
|
|
43
|
-
import { i as resolveSignalAccount, n as listSignalAccountIds, r as resolveDefaultSignalAccountId } from "./accounts-
|
|
44
|
-
import { T as resolveChannelMediaMaxBytes } from "./deliver-
|
|
45
|
-
import "./pi-embedded-helpers-
|
|
29
|
+
import "./tables-DNwXwNFa.js";
|
|
30
|
+
import { d as resolveServicePrefixedAllowTarget, f as resolveServicePrefixedTarget, l as parseChatAllowTargetPrefixes, m as isAllowedParsedChatSender, p as formatAllowFromLowercase, s as normalizeIMessageHandle, u as parseChatTargetPrefixesOrThrow } from "./send-XSeiJkB-.js";
|
|
31
|
+
import "./tool-images-HJ2sfZDV.js";
|
|
32
|
+
import { a as createActionGate, c as jsonResult, d as readReactionParams, m as readStringParam, n as missingTargetError, u as readNumberParam } from "./target-errors-Paro1BjP.js";
|
|
33
|
+
import { s as parseSlackBlocksInput } from "./send-BopyAy0U.js";
|
|
34
|
+
import { it as writeJsonFileAtomically, nt as toLocationContext, rt as readJsonFileWithFallback, tt as formatLocationText } from "./send-CNfeWYOl.js";
|
|
35
|
+
import { b as withTempDownloadPath, y as buildRandomTempFilePath } from "./runner-wiQcSC_Z.js";
|
|
36
|
+
import { a as resolveAckReaction, n as createReplyPrefixOptions, t as createReplyPrefixContext } from "./reply-prefix-uxfMZW4p.js";
|
|
37
|
+
import { a as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-bC3UVmVH.js";
|
|
38
|
+
import "./skill-commands-BUVE0jBL.js";
|
|
39
|
+
import "./skills-_yTP47Cd.js";
|
|
40
|
+
import { N as rawDataToString } from "./chrome-BIOpja0y.js";
|
|
41
|
+
import { C as resolveSlackGroupRequireMention, D as resolveWhatsAppGroupRequireMention, E as resolveTelegramGroupToolPolicy, L as resolveToolsBySender, N as buildSlackThreadingToolContext, O as resolveWhatsAppGroupToolPolicy, S as resolveIMessageGroupToolPolicy, T as resolveTelegramGroupRequireMention, _ as resolveDiscordGroupRequireMention, b as resolveGoogleChatGroupToolPolicy, g as resolveBlueBubblesGroupToolPolicy, h as resolveBlueBubblesGroupRequireMention, m as normalizeSignalMessagingTarget, p as looksLikeSignalTargetId, v as resolveDiscordGroupToolPolicy, w as resolveSlackGroupToolPolicy, x as resolveIMessageGroupRequireMention, y as resolveGoogleChatGroupRequireMention } from "./thinking-CXqf7WTe.js";
|
|
42
|
+
import { n as resolveDefaultIMessageAccountId, r as resolveIMessageAccount, t as listIMessageAccountIds } from "./accounts-s-AdhXVR.js";
|
|
43
|
+
import { i as resolveSignalAccount, n as listSignalAccountIds, r as resolveDefaultSignalAccountId } from "./accounts-BtaOa4z_.js";
|
|
44
|
+
import { T as resolveChannelMediaMaxBytes } from "./deliver-Bk381_qd.js";
|
|
45
|
+
import "./pi-embedded-helpers-DcxGeorG.js";
|
|
46
46
|
import "./paths-A0xdf3yk.js";
|
|
47
|
-
import { h as onDiagnosticEvent, m as isDiagnosticsEnabled, p as emitDiagnosticEvent } from "./diagnostic-
|
|
48
|
-
import { n as extractOriginalFilename } from "./store-
|
|
49
|
-
import { t as resolveWhatsAppOutboundTarget } from "./resolve-outbound-target-
|
|
50
|
-
import { r as resolveWhatsAppHeartbeatRecipients } from "./channel-web-
|
|
51
|
-
import "./image-
|
|
47
|
+
import { h as onDiagnosticEvent, m as isDiagnosticsEnabled, p as emitDiagnosticEvent } from "./diagnostic-05pm5Rxi.js";
|
|
48
|
+
import { n as extractOriginalFilename } from "./store-BdrNabcU.js";
|
|
49
|
+
import { t as resolveWhatsAppOutboundTarget } from "./resolve-outbound-target-BiyAyTWz.js";
|
|
50
|
+
import { r as resolveWhatsAppHeartbeatRecipients } from "./channel-web-DiO1WsXm.js";
|
|
51
|
+
import "./image-DB8curb-.js";
|
|
52
52
|
import "./pi-model-discovery-LbcEa65a.js";
|
|
53
|
-
import "./api-key-rotation-
|
|
54
|
-
import "./sqlite-
|
|
53
|
+
import "./api-key-rotation-BNN7DLRF.js";
|
|
54
|
+
import "./sqlite-CxAR5ttJ.js";
|
|
55
55
|
import "./diagnostic-session-state-Wd5tNeQG.js";
|
|
56
|
-
import "./manager-
|
|
57
|
-
import "./commands-registry-
|
|
58
|
-
import "./send-
|
|
56
|
+
import "./manager-Cn2S7u-y.js";
|
|
57
|
+
import "./commands-registry-B6QKgH1z.js";
|
|
58
|
+
import "./send-LFxvkq5t.js";
|
|
59
59
|
import "./proxy-MquBDehr.js";
|
|
60
|
-
import "./resolve-route-
|
|
61
|
-
import "./replies-
|
|
62
|
-
import "./outbound-attachment-
|
|
63
|
-
import "./outbound-
|
|
64
|
-
import "./session-
|
|
65
|
-
import { t as loginWeb } from "./login-
|
|
60
|
+
import "./resolve-route-B3CCBumQ.js";
|
|
61
|
+
import "./replies-BCsVYl4o.js";
|
|
62
|
+
import "./outbound-attachment-CnslKL38.js";
|
|
63
|
+
import "./outbound-NgBi-sk8.js";
|
|
64
|
+
import "./session-Dkqq0dEe.js";
|
|
65
|
+
import { t as loginWeb } from "./login-hNMO63Eg.js";
|
|
66
66
|
import fs, { createWriteStream } from "node:fs";
|
|
67
67
|
import path from "node:path";
|
|
68
68
|
import os from "node:os";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { K as logVerbose, P as resolveUserPath, Y as shouldLogVerbose } from "./registry
|
|
2
|
-
import { _ as maxBytesForKind, a as hasAlphaChannel, c as detectMime, l as extensionForMime, o as optimizeImageToPng, r as convertHeicToJpeg, s as resizeToJpeg, v as mediaKindFromMime, x as readLocalFileSafely, y as SafeOpenError } from "./image-ops-
|
|
3
|
-
import { i as fetchRemoteMedia, n as getDefaultMediaLocalRoots } from "./local-roots-
|
|
4
|
-
import { a as chunkText } from "./chunk-
|
|
1
|
+
import { K as logVerbose, P as resolveUserPath, Y as shouldLogVerbose } from "./registry-D0xTnUWt.js";
|
|
2
|
+
import { _ as maxBytesForKind, a as hasAlphaChannel, c as detectMime, l as extensionForMime, o as optimizeImageToPng, r as convertHeicToJpeg, s as resizeToJpeg, v as mediaKindFromMime, x as readLocalFileSafely, y as SafeOpenError } from "./image-ops-BlQR__MN.js";
|
|
3
|
+
import { i as fetchRemoteMedia, n as getDefaultMediaLocalRoots } from "./local-roots-BHLNSI8U.js";
|
|
4
|
+
import { a as chunkText } from "./chunk-Dw2XBYXv.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import fs from "node:fs/promises";
|
|
7
7
|
import { fileURLToPath } from "node:url";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { s as resolveStateDir } from "./paths-DR2yt_mP.js";
|
|
2
2
|
import { t as bindAbortRelay } from "./fetch-timeout-ChYuW7LE.js";
|
|
3
|
-
import { ut as resolvePreferredSymiTmpDir } from "./registry
|
|
4
|
-
import { j as logWarn, s as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
5
|
-
import { c as detectMime, l as extensionForMime } from "./image-ops-
|
|
3
|
+
import { ut as resolvePreferredSymiTmpDir } from "./registry-D0xTnUWt.js";
|
|
4
|
+
import { j as logWarn, s as resolveAgentWorkspaceDir } from "./agent-scope-CYYpcO9W.js";
|
|
5
|
+
import { c as detectMime, l as extensionForMime } from "./image-ops-BlQR__MN.js";
|
|
6
6
|
import { n as closeDispatcher, r as createPinnedDispatcher, s as resolvePinnedHostnameWithPolicy, t as SsrFBlockedError } from "./ssrf-DKZ8eBrk.js";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { c as logoutWeb, r as resolveWhatsAppAccount } from "./accounts-
|
|
3
|
-
import { U as danger, W as info, X as success } from "./registry
|
|
4
|
-
import { n as loadConfig } from "./config-
|
|
5
|
-
import { i as defaultRuntime } from "./subsystem-
|
|
6
|
-
import { t as formatCliCommand } from "./command-format-
|
|
7
|
-
import { A as logInfo } from "./agent-scope-
|
|
8
|
-
import { i as waitForWaConnection, n as formatError, t as createWaSocket } from "./session-
|
|
2
|
+
import { c as logoutWeb, r as resolveWhatsAppAccount } from "./accounts-Ddm33hQm.js";
|
|
3
|
+
import { U as danger, W as info, X as success } from "./registry-D0xTnUWt.js";
|
|
4
|
+
import { n as loadConfig } from "./config-lc09wRnM.js";
|
|
5
|
+
import { i as defaultRuntime } from "./subsystem-B2uDN3TV.js";
|
|
6
|
+
import { t as formatCliCommand } from "./command-format-GKSevep4.js";
|
|
7
|
+
import { A as logInfo } from "./agent-scope-CYYpcO9W.js";
|
|
8
|
+
import { i as waitForWaConnection, n as formatError, t as createWaSocket } from "./session-Dkqq0dEe.js";
|
|
9
9
|
import { DisconnectReason } from "@whiskeysockets/baileys";
|
|
10
10
|
|
|
11
11
|
//#region src/web/login.ts
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { c as logoutWeb, f as readWebSelfId, g as webAuthExists, r as resolveWhatsAppAccount } from "./accounts-
|
|
1
|
+
import { c as logoutWeb, f as readWebSelfId, g as webAuthExists, r as resolveWhatsAppAccount } from "./accounts-Ddm33hQm.js";
|
|
2
2
|
import "./paths-DR2yt_mP.js";
|
|
3
3
|
import "./github-copilot-token-D9X2phUj.js";
|
|
4
|
-
import { U as danger, W as info, X as success } from "./registry
|
|
5
|
-
import { n as loadConfig } from "./config-
|
|
6
|
-
import { i as defaultRuntime } from "./subsystem-
|
|
7
|
-
import "./command-format-
|
|
8
|
-
import "./model-selection-
|
|
9
|
-
import { A as logInfo } from "./agent-scope-
|
|
10
|
-
import "./manifest-registry-
|
|
11
|
-
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-
|
|
4
|
+
import { U as danger, W as info, X as success } from "./registry-D0xTnUWt.js";
|
|
5
|
+
import { n as loadConfig } from "./config-lc09wRnM.js";
|
|
6
|
+
import { i as defaultRuntime } from "./subsystem-B2uDN3TV.js";
|
|
7
|
+
import "./command-format-GKSevep4.js";
|
|
8
|
+
import "./model-selection-CPEL3Uc_.js";
|
|
9
|
+
import { A as logInfo } from "./agent-scope-CYYpcO9W.js";
|
|
10
|
+
import "./manifest-registry-CPnHl_K3.js";
|
|
11
|
+
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-Dkqq0dEe.js";
|
|
12
12
|
import { randomUUID } from "node:crypto";
|
|
13
13
|
import { DisconnectReason } from "@whiskeysockets/baileys";
|
|
14
14
|
import QRCodeModule from "qrcode-terminal/vendor/QRCode/index.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { s as resolveStateDir } from "./paths-DR2yt_mP.js";
|
|
3
|
-
import { C as clampNumber, P as resolveUserPath, S as clampInt, V as truncateUtf16Safe } from "./registry
|
|
4
|
-
import { n as retryAsync } from "./retry-
|
|
5
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
6
|
-
import { r as isTruthyEnvValue } from "./command-format-
|
|
7
|
-
import { T as resolveApiKeyForProvider, w as requireApiKey } from "./model-selection-
|
|
8
|
-
import { n as resolveAgentConfig, r as resolveAgentDir, s as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
3
|
+
import { C as clampNumber, P as resolveUserPath, S as clampInt, V as truncateUtf16Safe } from "./registry-D0xTnUWt.js";
|
|
4
|
+
import { n as retryAsync } from "./retry-CwQ_iIj8.js";
|
|
5
|
+
import { t as createSubsystemLogger } from "./subsystem-B2uDN3TV.js";
|
|
6
|
+
import { r as isTruthyEnvValue } from "./command-format-GKSevep4.js";
|
|
7
|
+
import { T as resolveApiKeyForProvider, w as requireApiKey } from "./model-selection-CPEL3Uc_.js";
|
|
8
|
+
import { n as resolveAgentConfig, r as resolveAgentDir, s as resolveAgentWorkspaceDir } from "./agent-scope-CYYpcO9W.js";
|
|
9
9
|
import { n as formatErrorMessage } from "./errors-Bv8oZiTO.js";
|
|
10
10
|
import { o as resolveSessionTranscriptsDirForAgent } from "./paths-A0xdf3yk.js";
|
|
11
11
|
import { n as onSessionTranscriptUpdate } from "./transcript-events-x1D4Vniz.js";
|
|
12
|
-
import { n as executeWithApiKeyRotation, r as parseGeminiAuth, t as collectProviderApiKeysForExecution } from "./api-key-rotation-
|
|
13
|
-
import { _ as statRegularFile, a as buildFileEntry, c as ensureDir, d as listMemoryFiles, f as normalizeExtraMemoryPaths, g as isFileMissingError, h as runWithConcurrency, i as sessionPathForFile, l as hashText, m as remapChunkLines, n as buildSessionEntry, o as chunkMarkdown, p as parseEmbedding, r as listSessionFilesForAgent, s as cosineSimilarity, t as requireNodeSqlite, u as isMemoryPath } from "./sqlite-
|
|
12
|
+
import { n as executeWithApiKeyRotation, r as parseGeminiAuth, t as collectProviderApiKeysForExecution } from "./api-key-rotation-BNN7DLRF.js";
|
|
13
|
+
import { _ as statRegularFile, a as buildFileEntry, c as ensureDir, d as listMemoryFiles, f as normalizeExtraMemoryPaths, g as isFileMissingError, h as runWithConcurrency, i as sessionPathForFile, l as hashText, m as remapChunkLines, n as buildSessionEntry, o as chunkMarkdown, p as parseEmbedding, r as listSessionFilesForAgent, s as cosineSimilarity, t as requireNodeSqlite, u as isMemoryPath } from "./sqlite-CxAR5ttJ.js";
|
|
14
14
|
import fs from "node:fs";
|
|
15
15
|
import path from "node:path";
|
|
16
16
|
import os from "node:os";
|
|
@@ -999,12 +999,14 @@ async function mergeHybridResults(params) {
|
|
|
999
999
|
source: r.source,
|
|
1000
1000
|
snippet: r.snippet,
|
|
1001
1001
|
vectorScore: r.vectorScore,
|
|
1002
|
-
textScore: 0
|
|
1002
|
+
textScore: 0,
|
|
1003
|
+
weight: r.weight ?? 1
|
|
1003
1004
|
});
|
|
1004
1005
|
for (const r of params.keyword) {
|
|
1005
1006
|
const existing = byId.get(r.id);
|
|
1006
1007
|
if (existing) {
|
|
1007
1008
|
existing.textScore = r.textScore;
|
|
1009
|
+
if (r.weight != null && r.weight > existing.weight) existing.weight = r.weight;
|
|
1008
1010
|
if (r.snippet && r.snippet.length > 0) existing.snippet = r.snippet;
|
|
1009
1011
|
} else byId.set(r.id, {
|
|
1010
1012
|
id: r.id,
|
|
@@ -1014,12 +1016,13 @@ async function mergeHybridResults(params) {
|
|
|
1014
1016
|
source: r.source,
|
|
1015
1017
|
snippet: r.snippet,
|
|
1016
1018
|
vectorScore: 0,
|
|
1017
|
-
textScore: r.textScore
|
|
1019
|
+
textScore: r.textScore,
|
|
1020
|
+
weight: r.weight ?? 1
|
|
1018
1021
|
});
|
|
1019
1022
|
}
|
|
1020
1023
|
const sorted = (await applyTemporalDecayToHybridResults({
|
|
1021
1024
|
results: Array.from(byId.values()).map((entry) => {
|
|
1022
|
-
const score = params.vectorWeight * entry.vectorScore + params.textWeight * entry.textScore;
|
|
1025
|
+
const score = (params.vectorWeight * entry.vectorScore + params.textWeight * entry.textScore) * entry.weight;
|
|
1023
1026
|
return {
|
|
1024
1027
|
path: entry.path,
|
|
1025
1028
|
startLine: entry.startLine,
|
|
@@ -1799,10 +1802,23 @@ function ensureMemoryIndexSchema(params) {
|
|
|
1799
1802
|
model TEXT NOT NULL,
|
|
1800
1803
|
text TEXT NOT NULL,
|
|
1801
1804
|
embedding TEXT NOT NULL,
|
|
1802
|
-
updated_at INTEGER NOT NULL
|
|
1805
|
+
updated_at INTEGER NOT NULL,
|
|
1806
|
+
weight REAL NOT NULL DEFAULT 1.0
|
|
1803
1807
|
);
|
|
1804
1808
|
`);
|
|
1805
1809
|
params.db.exec(`
|
|
1810
|
+
CREATE TABLE IF NOT EXISTS edges (
|
|
1811
|
+
source_chunk_id TEXT NOT NULL,
|
|
1812
|
+
target_chunk_id TEXT NOT NULL,
|
|
1813
|
+
relation TEXT NOT NULL DEFAULT 'co_occurrence',
|
|
1814
|
+
weight REAL NOT NULL DEFAULT 1.0,
|
|
1815
|
+
created_at TEXT NOT NULL DEFAULT (datetime('now')),
|
|
1816
|
+
PRIMARY KEY (source_chunk_id, target_chunk_id, relation)
|
|
1817
|
+
);
|
|
1818
|
+
`);
|
|
1819
|
+
params.db.exec(`CREATE INDEX IF NOT EXISTS idx_edges_source ON edges(source_chunk_id);`);
|
|
1820
|
+
params.db.exec(`CREATE INDEX IF NOT EXISTS idx_edges_target ON edges(target_chunk_id);`);
|
|
1821
|
+
params.db.exec(`
|
|
1806
1822
|
CREATE TABLE IF NOT EXISTS ${params.embeddingCacheTable} (
|
|
1807
1823
|
provider TEXT NOT NULL,
|
|
1808
1824
|
model TEXT NOT NULL,
|
|
@@ -1827,6 +1843,7 @@ function ensureMemoryIndexSchema(params) {
|
|
|
1827
1843
|
}
|
|
1828
1844
|
ensureColumn(params.db, "files", "source", "TEXT NOT NULL DEFAULT 'memory'");
|
|
1829
1845
|
ensureColumn(params.db, "chunks", "source", "TEXT NOT NULL DEFAULT 'memory'");
|
|
1846
|
+
ensureColumn(params.db, "chunks", "weight", "REAL NOT NULL DEFAULT 1.0");
|
|
1830
1847
|
params.db.exec(`CREATE INDEX IF NOT EXISTS idx_chunks_path ON chunks(path);`);
|
|
1831
1848
|
params.db.exec(`CREATE INDEX IF NOT EXISTS idx_chunks_source ON chunks(source);`);
|
|
1832
1849
|
return {
|
|
@@ -2430,6 +2447,7 @@ var MemoryManagerSyncOps = class {
|
|
|
2430
2447
|
this.sessionsDirtyFiles.clear();
|
|
2431
2448
|
} else if (this.sessionsDirtyFiles.size > 0) this.sessionsDirty = true;
|
|
2432
2449
|
else this.sessionsDirty = false;
|
|
2450
|
+
this.normalizeChunkWeights();
|
|
2433
2451
|
} catch (err) {
|
|
2434
2452
|
const reason = err instanceof Error ? err.message : String(err);
|
|
2435
2453
|
if (this.shouldFallbackOnError(reason) && await this.activateFallbackProvider(reason)) {
|
|
@@ -2443,6 +2461,21 @@ var MemoryManagerSyncOps = class {
|
|
|
2443
2461
|
throw err;
|
|
2444
2462
|
}
|
|
2445
2463
|
}
|
|
2464
|
+
normalizeChunkWeights() {
|
|
2465
|
+
try {
|
|
2466
|
+
const rows = this.db.prepare(`SELECT id, weight FROM chunks`).all();
|
|
2467
|
+
if (rows.length < 2) return;
|
|
2468
|
+
const weights = rows.map((r) => r.weight);
|
|
2469
|
+
const maxW = Math.max(...weights);
|
|
2470
|
+
const exps = weights.map((w) => Math.exp(w - maxW));
|
|
2471
|
+
const sumExp = exps.reduce((a, b) => a + b, 0);
|
|
2472
|
+
const normalized = exps.map((e) => e / sumExp * rows.length);
|
|
2473
|
+
const stmt = this.db.prepare(`UPDATE chunks SET weight = ? WHERE id = ?`);
|
|
2474
|
+
this.db.exec("BEGIN");
|
|
2475
|
+
for (let i = 0; i < rows.length; i++) stmt.run(normalized[i], rows[i].id);
|
|
2476
|
+
this.db.exec("COMMIT");
|
|
2477
|
+
} catch {}
|
|
2478
|
+
}
|
|
2446
2479
|
shouldFallbackOnError(message) {
|
|
2447
2480
|
return /embedding|embeddings|batch/i.test(message);
|
|
2448
2481
|
}
|
|
@@ -3098,6 +3131,10 @@ var MemoryManagerEmbeddingOps = class extends MemoryManagerSyncOps {
|
|
|
3098
3131
|
if (this.fts.enabled && this.fts.available) try {
|
|
3099
3132
|
this.db.prepare(`DELETE FROM ${FTS_TABLE$1} WHERE path = ? AND source = ? AND model = ?`).run(entry.path, options.source, this.provider.model);
|
|
3100
3133
|
} catch {}
|
|
3134
|
+
try {
|
|
3135
|
+
this.db.prepare(`DELETE FROM edges WHERE source_chunk_id IN (SELECT id FROM chunks WHERE path = ? AND source = ?)
|
|
3136
|
+
OR target_chunk_id IN (SELECT id FROM chunks WHERE path = ? AND source = ?)`).run(entry.path, options.source, entry.path, options.source);
|
|
3137
|
+
} catch {}
|
|
3101
3138
|
this.db.prepare(`DELETE FROM chunks WHERE path = ? AND source = ?`).run(entry.path, options.source);
|
|
3102
3139
|
for (let i = 0; i < chunks.length; i++) {
|
|
3103
3140
|
const chunk = chunks[i];
|
|
@@ -3119,6 +3156,7 @@ var MemoryManagerEmbeddingOps = class extends MemoryManagerSyncOps {
|
|
|
3119
3156
|
}
|
|
3120
3157
|
if (this.fts.enabled && this.fts.available) this.db.prepare(`INSERT INTO ${FTS_TABLE$1} (text, id, path, source, model, start_line, end_line)\n VALUES (?, ?, ?, ?, ?, ?, ?)`).run(chunk.text, id, entry.path, options.source, this.provider.model, chunk.startLine, chunk.endLine);
|
|
3121
3158
|
}
|
|
3159
|
+
this.buildCoOccurrenceEdges(chunks, entry, options.source);
|
|
3122
3160
|
this.db.prepare(`INSERT INTO files (path, source, hash, mtime, size) VALUES (?, ?, ?, ?, ?)
|
|
3123
3161
|
ON CONFLICT(path) DO UPDATE SET
|
|
3124
3162
|
source=excluded.source,
|
|
@@ -3126,6 +3164,18 @@ var MemoryManagerEmbeddingOps = class extends MemoryManagerSyncOps {
|
|
|
3126
3164
|
mtime=excluded.mtime,
|
|
3127
3165
|
size=excluded.size`).run(entry.path, options.source, entry.hash, entry.mtimeMs, entry.size);
|
|
3128
3166
|
}
|
|
3167
|
+
buildCoOccurrenceEdges(chunks, entry, source) {
|
|
3168
|
+
if (chunks.length < 2 || !this.provider) return;
|
|
3169
|
+
try {
|
|
3170
|
+
const ids = chunks.map((chunk) => hashText(`${source}:${entry.path}:${chunk.startLine}:${chunk.endLine}:${chunk.hash}:${this.provider.model}`));
|
|
3171
|
+
const stmt = this.db.prepare(`INSERT OR REPLACE INTO edges (source_chunk_id, target_chunk_id, relation, weight, created_at)
|
|
3172
|
+
VALUES (?, ?, 'co_occurrence', 1.0, datetime('now'))`);
|
|
3173
|
+
for (let i = 0; i < ids.length; i++) {
|
|
3174
|
+
if (i + 1 < ids.length) stmt.run(ids[i], ids[i + 1]);
|
|
3175
|
+
if (i + 2 < ids.length) stmt.run(ids[i], ids[i + 2]);
|
|
3176
|
+
}
|
|
3177
|
+
} catch {}
|
|
3178
|
+
}
|
|
3129
3179
|
};
|
|
3130
3180
|
|
|
3131
3181
|
//#endregion
|
|
@@ -3134,7 +3184,7 @@ const vectorToBlob = (embedding) => Buffer.from(new Float32Array(embedding).buff
|
|
|
3134
3184
|
async function searchVector(params) {
|
|
3135
3185
|
if (params.queryVec.length === 0 || params.limit <= 0) return [];
|
|
3136
3186
|
if (await params.ensureVectorReady(params.queryVec.length)) return params.db.prepare(`SELECT c.id, c.path, c.start_line, c.end_line, c.text,
|
|
3137
|
-
c.source,
|
|
3187
|
+
c.source, c.weight,
|
|
3138
3188
|
vec_distance_cosine(v.embedding, ?) AS dist
|
|
3139
3189
|
FROM ${params.vectorTable} v\n JOIN chunks c ON c.id = v.id\n WHERE c.model = ?${params.sourceFilterVec.sql}\n ORDER BY dist ASC\n LIMIT ?`).all(vectorToBlob(params.queryVec), params.providerModel, ...params.sourceFilterVec.params, params.limit).map((row) => ({
|
|
3140
3190
|
id: row.id,
|
|
@@ -3143,7 +3193,8 @@ async function searchVector(params) {
|
|
|
3143
3193
|
endLine: row.end_line,
|
|
3144
3194
|
score: 1 - row.dist,
|
|
3145
3195
|
snippet: truncateUtf16Safe(row.text, params.snippetMaxChars),
|
|
3146
|
-
source: row.source
|
|
3196
|
+
source: row.source,
|
|
3197
|
+
weight: row.weight
|
|
3147
3198
|
}));
|
|
3148
3199
|
return listChunks({
|
|
3149
3200
|
db: params.db,
|
|
@@ -3163,7 +3214,7 @@ async function searchVector(params) {
|
|
|
3163
3214
|
}));
|
|
3164
3215
|
}
|
|
3165
3216
|
function listChunks(params) {
|
|
3166
|
-
return params.db.prepare(`SELECT id, path, start_line, end_line, text, embedding, source
|
|
3217
|
+
return params.db.prepare(`SELECT id, path, start_line, end_line, text, embedding, source, weight
|
|
3167
3218
|
FROM chunks
|
|
3168
3219
|
WHERE model = ?${params.sourceFilter.sql}`).all(params.providerModel, ...params.sourceFilter.params).map((row) => ({
|
|
3169
3220
|
id: row.id,
|
|
@@ -3172,7 +3223,8 @@ function listChunks(params) {
|
|
|
3172
3223
|
endLine: row.end_line,
|
|
3173
3224
|
text: row.text,
|
|
3174
3225
|
embedding: parseEmbedding(row.embedding),
|
|
3175
|
-
source: row.source
|
|
3226
|
+
source: row.source,
|
|
3227
|
+
weight: row.weight
|
|
3176
3228
|
}));
|
|
3177
3229
|
}
|
|
3178
3230
|
async function searchKeyword(params) {
|
|
@@ -3181,7 +3233,7 @@ async function searchKeyword(params) {
|
|
|
3181
3233
|
if (!ftsQuery) return [];
|
|
3182
3234
|
const modelClause = params.providerModel ? " AND model = ?" : "";
|
|
3183
3235
|
const modelParams = params.providerModel ? [params.providerModel] : [];
|
|
3184
|
-
return params.db.prepare(`SELECT id, path, source, start_line, end_line, text,\n bm25(${params.ftsTable}) AS rank\n FROM ${params.ftsTable}\n WHERE ${params.ftsTable} MATCH ?${modelClause}${params.sourceFilter.sql}\n ORDER BY rank ASC\n LIMIT ?`).all(ftsQuery, ...modelParams, ...params.sourceFilter.params, params.limit).map((row) => {
|
|
3236
|
+
return params.db.prepare(`SELECT f.id, f.path, f.source, f.start_line, f.end_line, f.text,\n bm25(${params.ftsTable}) AS rank,\n c.weight\n FROM ${params.ftsTable} f\n JOIN chunks c ON c.id = f.id\n WHERE ${params.ftsTable} MATCH ?${modelClause}${params.sourceFilter.sql}\n ORDER BY rank ASC\n LIMIT ?`).all(ftsQuery, ...modelParams, ...params.sourceFilter.params, params.limit).map((row) => {
|
|
3185
3237
|
const textScore = params.bm25RankToScore(row.rank);
|
|
3186
3238
|
return {
|
|
3187
3239
|
id: row.id,
|
|
@@ -3191,7 +3243,8 @@ async function searchKeyword(params) {
|
|
|
3191
3243
|
score: textScore,
|
|
3192
3244
|
textScore,
|
|
3193
3245
|
snippet: truncateUtf16Safe(row.text, params.snippetMaxChars),
|
|
3194
|
-
source: row.source
|
|
3246
|
+
source: row.source,
|
|
3247
|
+
weight: row.weight
|
|
3195
3248
|
};
|
|
3196
3249
|
});
|
|
3197
3250
|
}
|
|
@@ -3580,7 +3633,7 @@ var MemoryIndexManager = class MemoryIndexManager extends MemoryManagerEmbedding
|
|
|
3580
3633
|
const queryVec = await this.embedQueryWithTimeout(cleaned);
|
|
3581
3634
|
const vectorResults = queryVec.some((v) => v !== 0) ? await this.searchVector(queryVec, candidates).catch(() => []) : [];
|
|
3582
3635
|
if (!hybrid.enabled) return vectorResults.filter((entry) => entry.score >= minScore).slice(0, maxResults);
|
|
3583
|
-
|
|
3636
|
+
const results = (await this.mergeHybridResults({
|
|
3584
3637
|
vector: vectorResults,
|
|
3585
3638
|
keyword: keywordResults,
|
|
3586
3639
|
vectorWeight: hybrid.vectorWeight,
|
|
@@ -3588,6 +3641,18 @@ var MemoryIndexManager = class MemoryIndexManager extends MemoryManagerEmbedding
|
|
|
3588
3641
|
mmr: hybrid.mmr,
|
|
3589
3642
|
temporalDecay: hybrid.temporalDecay
|
|
3590
3643
|
})).filter((entry) => entry.score >= minScore).slice(0, maxResults);
|
|
3644
|
+
this.incrementChunkWeights(results);
|
|
3645
|
+
return results;
|
|
3646
|
+
}
|
|
3647
|
+
incrementChunkWeights(results) {
|
|
3648
|
+
if (results.length === 0) return;
|
|
3649
|
+
try {
|
|
3650
|
+
const stmt = this.db.prepare(`UPDATE chunks SET weight = weight + ? WHERE path = ? AND start_line = ? AND end_line = ?`);
|
|
3651
|
+
for (const r of results) {
|
|
3652
|
+
const boost = Math.min(r.score * .1, .2);
|
|
3653
|
+
stmt.run(boost, r.path, r.startLine, r.endLine);
|
|
3654
|
+
}
|
|
3655
|
+
} catch {}
|
|
3591
3656
|
}
|
|
3592
3657
|
async searchVector(queryVec, limit) {
|
|
3593
3658
|
if (!this.provider) return [];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as isRecord, M as resolveConfigDir, P as resolveUserPath } from "./registry
|
|
1
|
+
import { D as isRecord, M as resolveConfigDir, P as resolveUserPath } from "./registry-D0xTnUWt.js";
|
|
2
2
|
import fs from "node:fs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { p as normalizeAccountId } from "./session-key-C_0eELjb.js";
|
|
3
|
-
import { r as normalizeChannelId } from "./plugins-
|
|
3
|
+
import { r as normalizeChannelId } from "./plugins-BNByVCIH.js";
|
|
4
4
|
|
|
5
5
|
//#region src/config/markdown-tables.ts
|
|
6
6
|
var markdown_tables_exports = /* @__PURE__ */ __exportAll({ resolveMarkdownTableMode: () => resolveMarkdownTableMode });
|
|
@@ -11,6 +11,7 @@ export type HybridVectorResult = {
|
|
|
11
11
|
source: HybridSource;
|
|
12
12
|
snippet: string;
|
|
13
13
|
vectorScore: number;
|
|
14
|
+
weight?: number;
|
|
14
15
|
};
|
|
15
16
|
export type HybridKeywordResult = {
|
|
16
17
|
id: string;
|
|
@@ -20,6 +21,7 @@ export type HybridKeywordResult = {
|
|
|
20
21
|
source: HybridSource;
|
|
21
22
|
snippet: string;
|
|
22
23
|
textScore: number;
|
|
24
|
+
weight?: number;
|
|
23
25
|
};
|
|
24
26
|
export declare function buildFtsQuery(raw: string): string | null;
|
|
25
27
|
export declare function bm25RankToScore(rank: number): number;
|
|
@@ -114,6 +114,7 @@ export declare abstract class MemoryManagerSyncOps {
|
|
|
114
114
|
force?: boolean;
|
|
115
115
|
progress?: (update: MemorySyncProgressUpdate) => void;
|
|
116
116
|
}): Promise<void>;
|
|
117
|
+
protected normalizeChunkWeights(): void;
|
|
117
118
|
private shouldFallbackOnError;
|
|
118
119
|
protected resolveBatchConfig(): {
|
|
119
120
|
enabled: boolean;
|
|
@@ -79,6 +79,7 @@ export declare class MemoryIndexManager extends MemoryManagerEmbeddingOps implem
|
|
|
79
79
|
minScore?: number;
|
|
80
80
|
sessionKey?: string;
|
|
81
81
|
}): Promise<MemorySearchResult[]>;
|
|
82
|
+
private incrementChunkWeights;
|
|
82
83
|
private searchVector;
|
|
83
84
|
private buildFtsQuery;
|
|
84
85
|
private searchKeyword;
|
|
@@ -4,10 +4,18 @@ export type MemorySearchResult = {
|
|
|
4
4
|
startLine: number;
|
|
5
5
|
endLine: number;
|
|
6
6
|
score: number;
|
|
7
|
+
weight?: number;
|
|
7
8
|
snippet: string;
|
|
8
9
|
source: MemorySource;
|
|
9
10
|
citation?: string;
|
|
10
11
|
};
|
|
12
|
+
export type MemoryEdge = {
|
|
13
|
+
sourceChunkId: string;
|
|
14
|
+
targetChunkId: string;
|
|
15
|
+
relation: string;
|
|
16
|
+
weight: number;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
};
|
|
11
19
|
export type MemoryEmbeddingProbeResult = {
|
|
12
20
|
ok: boolean;
|
|
13
21
|
error?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as getActivePluginRegistry, s as normalizeChatChannelId, t as CHANNEL_IDS } from "./registry
|
|
1
|
+
import { c as getActivePluginRegistry, s as normalizeChatChannelId, t as CHANNEL_IDS } from "./registry-D0xTnUWt.js";
|
|
2
2
|
|
|
3
3
|
//#region src/gateway/protocol/client-info.ts
|
|
4
4
|
const GATEWAY_CLIENT_IDS = {
|
|
@@ -2,10 +2,10 @@ import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
|
2
2
|
import { t as DEFAULT_AGENT_ID } from "./session-key-C_0eELjb.js";
|
|
3
3
|
import { o as resolveOAuthPath, s as resolveStateDir } from "./paths-DR2yt_mP.js";
|
|
4
4
|
import { a as saveJsonFile, i as loadJsonFile, r as resolveCopilotApiToken, t as DEFAULT_COPILOT_API_BASE_URL } from "./github-copilot-token-D9X2phUj.js";
|
|
5
|
-
import { P as resolveUserPath } from "./registry
|
|
6
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
7
|
-
import { r as isTruthyEnvValue, t as formatCliCommand } from "./command-format-
|
|
8
|
-
import { a as resolveAgentModelPrimary, n as resolveAgentConfig } from "./agent-scope-
|
|
5
|
+
import { P as resolveUserPath } from "./registry-D0xTnUWt.js";
|
|
6
|
+
import { t as createSubsystemLogger } from "./subsystem-B2uDN3TV.js";
|
|
7
|
+
import { r as isTruthyEnvValue, t as formatCliCommand } from "./command-format-GKSevep4.js";
|
|
8
|
+
import { a as resolveAgentModelPrimary, n as resolveAgentConfig } from "./agent-scope-CYYpcO9W.js";
|
|
9
9
|
import fs from "node:fs";
|
|
10
10
|
import path from "node:path";
|
|
11
11
|
import { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { B as toWhatsappJid, T as escapeRegExp, tt as getChildLogger } from "./registry
|
|
3
|
-
import { n as loadConfig } from "./config-
|
|
4
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
2
|
+
import { B as toWhatsappJid, T as escapeRegExp, tt as getChildLogger } from "./registry-D0xTnUWt.js";
|
|
3
|
+
import { n as loadConfig } from "./config-lc09wRnM.js";
|
|
4
|
+
import { t as createSubsystemLogger } from "./subsystem-B2uDN3TV.js";
|
|
5
5
|
import { n as normalizePollInput } from "./polls-3WJMd-G-.js";
|
|
6
|
-
import { a as loadWebMedia } from "./ir-
|
|
7
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
8
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
9
|
-
import { n as requireActiveWebListener } from "./active-listener-
|
|
6
|
+
import { a as loadWebMedia } from "./ir-BJ6BHE5b.js";
|
|
7
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-BoYFajMu.js";
|
|
8
|
+
import { t as convertMarkdownTables } from "./tables-DNwXwNFa.js";
|
|
9
|
+
import { n as requireActiveWebListener } from "./active-listener-BXYeALs0.js";
|
|
10
10
|
import { randomUUID } from "node:crypto";
|
|
11
11
|
|
|
12
12
|
//#region src/markdown/whatsapp.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as loadWebMedia } from "./ir-
|
|
2
|
-
import { i as saveMediaBuffer } from "./store-
|
|
1
|
+
import { a as loadWebMedia } from "./ir-BJ6BHE5b.js";
|
|
2
|
+
import { i as saveMediaBuffer } from "./store-BdrNabcU.js";
|
|
3
3
|
|
|
4
4
|
//#region src/media/outbound-attachment.ts
|
|
5
5
|
async function resolveOutboundAttachmentFromUrl(mediaUrl, maxBytes, options) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./paths-DR2yt_mP.js";
|
|
2
2
|
import "./github-copilot-token-D9X2phUj.js";
|
|
3
|
-
import "./registry
|
|
4
|
-
import "./subsystem-
|
|
5
|
-
import "./command-format-
|
|
6
|
-
import { R as ensureAuthProfileStore, c as normalizeProviderId } from "./model-selection-
|
|
7
|
-
import "./agent-scope-
|
|
3
|
+
import "./registry-D0xTnUWt.js";
|
|
4
|
+
import "./subsystem-B2uDN3TV.js";
|
|
5
|
+
import "./command-format-GKSevep4.js";
|
|
6
|
+
import { R as ensureAuthProfileStore, c as normalizeProviderId } from "./model-selection-CPEL3Uc_.js";
|
|
7
|
+
import "./agent-scope-CYYpcO9W.js";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import fs from "node:fs/promises";
|
|
10
10
|
|