squidclaw 3.3.2 → 3.3.6

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.
Files changed (222) hide show
  1. package/dist/build-info.json +3 -3
  2. package/dist/canvas-host/a2ui/a2ui.bundle.js +1 -1
  3. package/dist/{command-registry-DU59Zys9.js → command-registry-D-1yrjO5.js} +4 -4
  4. package/dist/{completion-cli-B58zTxLB.js → completion-cli-DDG6rQHB.js} +2 -2
  5. package/dist/{completion-cli-BLY0f3DS.js → completion-cli-YquOT8ke.js} +1 -1
  6. package/dist/control-ui/assets/{index-BqxuPQOl.js → index-Bb5MB8jH.js} +358 -358
  7. package/dist/control-ui/assets/index-Bb5MB8jH.js.map +1 -0
  8. package/dist/control-ui/index.html +1 -1
  9. package/dist/daemon-cli.js +6 -6
  10. package/dist/{doctor-completion-DRCOGhwS.js → doctor-completion-B63lREru.js} +1 -1
  11. package/dist/{doctor-completion-kjDYgxZk.js → doctor-completion-CoKUBmAB.js} +1 -1
  12. package/dist/entry.js +2 -2
  13. package/dist/{gateway-cli-DvWNtJxy.js → gateway-cli-BP1USKKw.js} +1 -1
  14. package/dist/{gateway-cli-lvhI_G2p.js → gateway-cli-CIhENRqY.js} +1 -1
  15. package/dist/index.js +1 -1
  16. package/dist/{onboard-BP7rTtCO.js → onboard-BYwFqDe-.js} +1 -1
  17. package/dist/{onboard-BwVAkxW0.js → onboard-gmbrf0mc.js} +1 -1
  18. package/dist/{onboarding-LbGi6oDz.js → onboarding-C7eyvBep.js} +1 -1
  19. package/dist/{onboarding-D_ImwR9D.js → onboarding-OrcdwciM.js} +1 -1
  20. package/dist/{onboarding.finalize-ClTc_ghC.js → onboarding.finalize-Bf3EExjS.js} +56 -13
  21. package/dist/{onboarding.finalize-CWcaxeIO.js → onboarding.finalize-DZBXbwYe.js} +55 -12
  22. package/dist/plugin-sdk/accounts-B9RVtSwn.js +35 -0
  23. package/dist/plugin-sdk/{accounts-BhCAa-05.js → accounts-BLOLIF6Q.js} +2 -2
  24. package/dist/plugin-sdk/{accounts-DKXGC2Vu.js → accounts-BvzvDHNx.js} +3 -3
  25. package/dist/plugin-sdk/{accounts-BChIl5as.js → accounts-ByCKM_Y3.js} +2 -2
  26. package/dist/plugin-sdk/accounts-Cnpikxly.js +288 -0
  27. package/dist/plugin-sdk/accounts-ZkT4ovw_.js +46 -0
  28. package/dist/plugin-sdk/{active-listener-TTbK9PGk.js → active-listener-CKD9GljM.js} +2 -2
  29. package/dist/plugin-sdk/active-listener-Ccj2fSCa.js +50 -0
  30. package/dist/plugin-sdk/{api-key-rotation-BqhYVBBK.js → api-key-rotation--boE2y8I.js} +2 -2
  31. package/dist/plugin-sdk/api-key-rotation-0Xm0okk5.js +181 -0
  32. package/dist/plugin-sdk/{audio-preflight-DAf0ptAM.js → audio-preflight-B_pcDw8d.js} +26 -26
  33. package/dist/plugin-sdk/audio-preflight-DQZ2WSG4.js +69 -0
  34. package/dist/plugin-sdk/audio-transcription-runner-C4aP5aYG.js +2176 -0
  35. package/dist/plugin-sdk/{audio-transcription-runner-CBASOlbc.js → audio-transcription-runner-u6tijzUS.js} +11 -11
  36. package/dist/plugin-sdk/{audit-membership-runtime-Xl20kCBe.js → audit-membership-runtime-DHQDvH4u.js} +2 -2
  37. package/dist/plugin-sdk/audit-membership-runtime-DPTwvWpd.js +58 -0
  38. package/dist/plugin-sdk/{channel-activity-95JVLzNY.js → channel-activity-BVUdxSNs.js} +3 -3
  39. package/dist/plugin-sdk/channel-activity-DAX5uVAX.js +94 -0
  40. package/dist/plugin-sdk/{channel-web-DCkC6Ydu.js → channel-web-BX2s-JXF.js} +18 -18
  41. package/dist/plugin-sdk/channel-web-CgS5ek7s.js +2256 -0
  42. package/dist/plugin-sdk/{chrome-BlXpNOQu.js → chrome-6EkqVcyR.js} +6 -6
  43. package/dist/plugin-sdk/chrome-BHzykCQ9.js +2415 -0
  44. package/dist/plugin-sdk/{commands-registry-C9y_w3eW.js → commands-registry-CDHo6SSs.js} +4 -4
  45. package/dist/plugin-sdk/commands-registry-CRVdcP1W.js +1125 -0
  46. package/dist/plugin-sdk/{common-CEwMUbms.js → common-Emz6EPQM.js} +2 -2
  47. package/dist/plugin-sdk/compat.js +50 -50
  48. package/dist/plugin-sdk/{config-sMifxgre.js → config-CMjn_DSB.js} +7 -7
  49. package/dist/plugin-sdk/config-DMdJidZc.js +17912 -0
  50. package/dist/plugin-sdk/{deliver-2zt3NeFA.js → deliver-Cz6GluMN.js} +10 -10
  51. package/dist/plugin-sdk/deliver-DMb_cOF7.js +1694 -0
  52. package/dist/plugin-sdk/deliver-runtime-CjCJkoFM.js +32 -0
  53. package/dist/plugin-sdk/deliver-runtime-D0qfBG05.js +32 -0
  54. package/dist/plugin-sdk/deps-send-discord.runtime-9igTHMx2.js +23 -0
  55. package/dist/plugin-sdk/deps-send-discord.runtime-C4AEwjGl.js +23 -0
  56. package/dist/plugin-sdk/deps-send-imessage.runtime-BFpdfthT.js +22 -0
  57. package/dist/plugin-sdk/deps-send-imessage.runtime-DCdEe-_E.js +22 -0
  58. package/dist/plugin-sdk/deps-send-signal.runtime-BNO6SPmR.js +21 -0
  59. package/dist/plugin-sdk/deps-send-signal.runtime-BqB_Ilh-.js +21 -0
  60. package/dist/plugin-sdk/deps-send-slack.runtime-BChVBURL.js +19 -0
  61. package/dist/plugin-sdk/deps-send-slack.runtime-o7IR7Ynh.js +19 -0
  62. package/dist/plugin-sdk/deps-send-telegram.runtime-7Xdhax8B.js +24 -0
  63. package/dist/plugin-sdk/deps-send-telegram.runtime-DyCorUw2.js +24 -0
  64. package/dist/plugin-sdk/deps-send-whatsapp.runtime-D6gMTFom.js +57 -0
  65. package/dist/plugin-sdk/deps-send-whatsapp.runtime-DoOYrpKa.js +57 -0
  66. package/dist/plugin-sdk/diagnostic-BidLPPBm.js +319 -0
  67. package/dist/plugin-sdk/{diagnostic-CU_mni6m.js → diagnostic-DhO2TqL_.js} +2 -2
  68. package/dist/plugin-sdk/{errors-CgRPdp3o.js → errors-9oVz7reJ.js} +1 -1
  69. package/dist/plugin-sdk/errors-s9jrwzSl.js +54 -0
  70. package/dist/plugin-sdk/fetch-guard-CEd4HUIR.js +156 -0
  71. package/dist/plugin-sdk/{fetch-guard-BxMLJbqt.js → fetch-guard-CGQ35-A_.js} +2 -2
  72. package/dist/plugin-sdk/{fs-safe-5aQcM_qM.js → fs-safe-B26UxJny.js} +3 -3
  73. package/dist/plugin-sdk/fs-safe-CZ2NvCjz.js +352 -0
  74. package/dist/plugin-sdk/image-BKaDODzM.js +2310 -0
  75. package/dist/plugin-sdk/{image-BJXV9IMV.js → image-DPgEp54d.js} +6 -6
  76. package/dist/plugin-sdk/{image-ops-DovJMvdf.js → image-ops-CbKrfi-N.js} +2 -2
  77. package/dist/plugin-sdk/image-ops-D0YKZqPy.js +584 -0
  78. package/dist/plugin-sdk/image-runtime-DN6PHT8G.js +25 -0
  79. package/dist/plugin-sdk/image-runtime-DxJgD-YS.js +25 -0
  80. package/dist/plugin-sdk/{ir-DE2ewdq5.js → ir-4JdLS2Hz.js} +7 -7
  81. package/dist/plugin-sdk/ir-D9fxXkgD.js +1296 -0
  82. package/dist/plugin-sdk/local-roots-HL9eBLUg.js +186 -0
  83. package/dist/plugin-sdk/{local-roots-CIwDgpY2.js → local-roots-T6lXDGzr.js} +4 -4
  84. package/dist/plugin-sdk/{logger-DIb2cGHp.js → logger-Bg4vIUJn.js} +2 -2
  85. package/dist/plugin-sdk/logger-D0ST0Irn.js +1163 -0
  86. package/dist/plugin-sdk/{login-CLIcsAVy.js → login-BNCjks0C.js} +4 -4
  87. package/dist/plugin-sdk/login-CUdm5Ct-.js +57 -0
  88. package/dist/plugin-sdk/login-qr-34QcLRte.js +320 -0
  89. package/dist/plugin-sdk/{login-qr-BlxjA0vQ.js → login-qr-CTjNgxhl.js} +5 -5
  90. package/dist/plugin-sdk/manager-DZ9Hn0Fe.js +3917 -0
  91. package/dist/plugin-sdk/{manager-CpAGPHeX.js → manager-D__CoDGL.js} +8 -8
  92. package/dist/plugin-sdk/manager-runtime-B9aBGLrF.js +15 -0
  93. package/dist/plugin-sdk/manager-runtime-DMEBebYo.js +15 -0
  94. package/dist/plugin-sdk/mattermost.js +3 -3
  95. package/dist/plugin-sdk/{outbound-DDpRevO_.js → outbound-DTQ-9Cjw.js} +5 -5
  96. package/dist/plugin-sdk/outbound-DTndjh8O.js +212 -0
  97. package/dist/plugin-sdk/outbound-attachment-BNMQOIcP.js +19 -0
  98. package/dist/plugin-sdk/{outbound-attachment-CVavq5II.js → outbound-attachment-CdHX9v0q.js} +2 -2
  99. package/dist/plugin-sdk/{path-alias-guards-BfpU4lAT.js → path-alias-guards-DSCFtpsd.js} +1 -1
  100. package/dist/plugin-sdk/path-alias-guards-DUn7Q6iW.js +43 -0
  101. package/dist/plugin-sdk/paths-6WIn8_si.js +166 -0
  102. package/dist/plugin-sdk/{paths-CK3lTJYw.js → paths-BQHqKGA8.js} +1 -1
  103. package/dist/plugin-sdk/{pi-embedded-helpers-Cb_h9zSJ.js → pi-embedded-helpers-B7nmCbf7.js} +16 -16
  104. package/dist/plugin-sdk/pi-embedded-helpers-BMA7JWLb.js +9627 -0
  105. package/dist/plugin-sdk/pi-model-discovery-B6gpdlWb.js +134 -0
  106. package/dist/plugin-sdk/{pi-model-discovery-B3B3R7L9.js → pi-model-discovery-DyDwYiK3.js} +1 -1
  107. package/dist/plugin-sdk/pi-model-discovery-runtime-CN6ZaL0W.js +8 -0
  108. package/dist/plugin-sdk/pi-model-discovery-runtime-Q6toTOMZ.js +8 -0
  109. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-CP4hHLJk.js +354 -0
  110. package/dist/plugin-sdk/{pi-tools.before-tool-call.runtime-DivpBAM0.js → pi-tools.before-tool-call.runtime-D_f6TDo7.js} +4 -4
  111. package/dist/plugin-sdk/{plugins-BlTrm4bw.js → plugins-BSPvol4w.js} +4 -4
  112. package/dist/plugin-sdk/plugins-CWIlxjXW.js +864 -0
  113. package/dist/plugin-sdk/{proxy-env-Cdh-OQYk.js → proxy-env-D-iVYTBk.js} +1 -1
  114. package/dist/plugin-sdk/{proxy-fetch-Dt5BedH8.js → proxy-fetch-Cf3IUSDw.js} +1 -1
  115. package/dist/plugin-sdk/proxy-fetch-tPMv_1eB.js +38 -0
  116. package/dist/plugin-sdk/{pw-ai-DEDRpMlY.js → pw-ai-BO445UDA.js} +9 -9
  117. package/dist/plugin-sdk/pw-ai-BSMHQrVM.js +1938 -0
  118. package/dist/plugin-sdk/{qmd-manager-Ct9rtJjd.js → qmd-manager-81ezWnIN.js} +7 -7
  119. package/dist/plugin-sdk/qmd-manager-DnMoZBC7.js +1448 -0
  120. package/dist/plugin-sdk/{query-expansion-OdwWuN1S.js → query-expansion-BCOK4OTO.js} +5 -5
  121. package/dist/plugin-sdk/query-expansion-DxTmIU4K.js +1011 -0
  122. package/dist/plugin-sdk/{redact-9WsNyb7S.js → redact-Bns9Du30.js} +1 -1
  123. package/dist/plugin-sdk/redact-DfACyt0X.js +319 -0
  124. package/dist/plugin-sdk/reply-C-WT0k-v.js +98763 -0
  125. package/dist/plugin-sdk/{reply-wZhosbPd.js → reply-DJ3rbbnv.js} +73 -73
  126. package/dist/plugin-sdk/resolve-outbound-target-C6GLRc_O.js +40 -0
  127. package/dist/plugin-sdk/{resolve-outbound-target-BJmCIkW_.js → resolve-outbound-target-DtQd8TzZ.js} +2 -2
  128. package/dist/plugin-sdk/run-with-concurrency-Baa7LYZD.js +2023 -0
  129. package/dist/plugin-sdk/{run-with-concurrency-EUEKeAa8.js → run-with-concurrency-CYcPpb5E.js} +1 -1
  130. package/dist/plugin-sdk/runtime-whatsapp-login.runtime-CUr_hlGk.js +10 -0
  131. package/dist/plugin-sdk/runtime-whatsapp-login.runtime-ai8hcGi_.js +10 -0
  132. package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-ByDLfLF3.js +19 -0
  133. package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-BzvoaI1G.js +19 -0
  134. package/dist/plugin-sdk/send-7do64QqA.js +2587 -0
  135. package/dist/plugin-sdk/{send-Drs4JqVD.js → send-B9GVkvTk.js} +5 -5
  136. package/dist/plugin-sdk/{send-BMWyVUhm.js → send-BPEn9L0o.js} +13 -13
  137. package/dist/plugin-sdk/send-Bjh-MMdN.js +503 -0
  138. package/dist/plugin-sdk/send-C9jI56cY.js +3135 -0
  139. package/dist/plugin-sdk/{send-0C4KdD-T.js → send-CGjI0pJn.js} +7 -7
  140. package/dist/plugin-sdk/send-CTsZjmvQ.js +540 -0
  141. package/dist/plugin-sdk/{send-oo6mQbab.js → send-CZ6HDwDu.js} +8 -8
  142. package/dist/plugin-sdk/{send-BGWGV_mz.js → send-D6nUI0S3.js} +6 -6
  143. package/dist/plugin-sdk/send-DiuYhmpi.js +414 -0
  144. package/dist/plugin-sdk/{session-CXVARKFK.js → session-Bwjlseuf.js} +3 -3
  145. package/dist/plugin-sdk/session-CiEv9qvh.js +169 -0
  146. package/dist/plugin-sdk/signal.js +2 -2
  147. package/dist/plugin-sdk/{skill-commands-CoqGFLfM.js → skill-commands-BpB2Oe8e.js} +4 -4
  148. package/dist/plugin-sdk/skill-commands-Cuzs_Puw.js +342 -0
  149. package/dist/plugin-sdk/{skills-di-5uS9y.js → skills-CaQpr1kx.js} +6 -6
  150. package/dist/plugin-sdk/skills-RHzhTtJf.js +1428 -0
  151. package/dist/plugin-sdk/slash-commands.runtime-BH06o3dH.js +13 -0
  152. package/dist/plugin-sdk/slash-commands.runtime-Dqev3QWp.js +13 -0
  153. package/dist/plugin-sdk/slash-dispatch.runtime-BotYesgY.js +52 -0
  154. package/dist/plugin-sdk/slash-dispatch.runtime-C_reWfLU.js +52 -0
  155. package/dist/plugin-sdk/slash-skill-commands.runtime-Cl5Y6y_v.js +16 -0
  156. package/dist/plugin-sdk/slash-skill-commands.runtime-CzPvxiUD.js +16 -0
  157. package/dist/plugin-sdk/ssrf-dGOzgEI_.js +202 -0
  158. package/dist/plugin-sdk/store-DQ2KuNGv.js +81 -0
  159. package/dist/plugin-sdk/{store-Dn_E3uaN.js → store-K6C7eOpg.js} +2 -2
  160. package/dist/plugin-sdk/subagent-registry-runtime-BbcgUYOO.js +52 -0
  161. package/dist/plugin-sdk/subagent-registry-runtime-Dhtf2h8u.js +52 -0
  162. package/dist/plugin-sdk/tables-B3jPS9G8.js +55 -0
  163. package/dist/plugin-sdk/{tables-_e9wMygc.js → tables-CeWt6UjS.js} +1 -1
  164. package/dist/plugin-sdk/target-errors-vzf_mLjC.js +195 -0
  165. package/dist/plugin-sdk/thinking-R15Mehif.js +1206 -0
  166. package/dist/plugin-sdk/{thinking-Cih_nxDY.js → thinking-gpcjIDQZ.js} +7 -7
  167. package/dist/plugin-sdk/{tokens-CLE20fRI.js → tokens-C-B2SvJW.js} +1 -1
  168. package/dist/plugin-sdk/tokens-DAL_5WHL.js +52 -0
  169. package/dist/plugin-sdk/{tool-images-D6a1Ua4p.js → tool-images-9Hn0F1o_.js} +2 -2
  170. package/dist/plugin-sdk/tool-images-l3TE_qXt.js +274 -0
  171. package/dist/plugin-sdk/web-C4irM2fl.js +56 -0
  172. package/dist/plugin-sdk/web-DZ7nBzZy.js +56 -0
  173. package/dist/plugin-sdk/{whatsapp-actions-UAnHjKbE.js → whatsapp-actions-CbzdjX4B.js} +17 -17
  174. package/dist/plugin-sdk/whatsapp-actions-DZHLwaea.js +80 -0
  175. package/dist/plugin-sdk/whatsapp.js +50 -50
  176. package/dist/plugin-sdk/zalo.js +2 -2
  177. package/dist/{program-B5Vn_UD_.js → program-D5HYdN0q.js} +2 -2
  178. package/dist/{program-context-Cc5-MG37.js → program-context-CWU-LWnL.js} +6 -6
  179. package/dist/{prompt-select-styled-DTnRirU4.js → prompt-select-styled-C_C2Ae8a.js} +1 -1
  180. package/dist/{prompt-select-styled-BmJHQFIe.js → prompt-select-styled-CjkK2AWX.js} +1 -1
  181. package/dist/{register.maintenance-Di-_iCcy.js → register.maintenance-BnT8sF7e.js} +4 -4
  182. package/dist/{register.maintenance-dpQRuXYm.js → register.maintenance-CVWvM_w8.js} +5 -5
  183. package/dist/{register.onboard-D8V8BiRf.js → register.onboard-B68iwPcU.js} +2 -2
  184. package/dist/{register.onboard-CI1dr2mE.js → register.onboard-Bx2xxYE0.js} +2 -2
  185. package/dist/{register.setup-Dsl5n4Uf.js → register.setup-BgRFFdoH.js} +2 -2
  186. package/dist/{register.setup-CuD_ucSh.js → register.setup-DkztcYGa.js} +2 -2
  187. package/dist/{register.subclis-C4twva8y.js → register.subclis-Bb6WLUhM.js} +3 -3
  188. package/dist/{run-main-6tdntESl.js → run-main-CApmG6CS.js} +3 -3
  189. package/dist/{update-cli-XGRmAcuW.js → update-cli-DoKsKvCz.js} +4 -4
  190. package/dist/{update-cli-CKvgxhEz.js → update-cli-VQSBFHlu.js} +5 -5
  191. package/extensions/acpx/node_modules/.bin/acpx +2 -2
  192. package/extensions/diffs/node_modules/.bin/playwright-core +2 -2
  193. package/extensions/googlechat/node_modules/.bin/squidclaw +4 -4
  194. package/extensions/matrix/node_modules/.bin/markdown-it +2 -2
  195. package/extensions/memory-core/node_modules/.bin/squidclaw +4 -4
  196. package/extensions/memory-lancedb/node_modules/.bin/openai +2 -2
  197. package/extensions/tlon/node_modules/.bin/tlon +2 -2
  198. package/package.json +1 -1
  199. package/dist/control-ui/assets/index-BqxuPQOl.js.map +0 -1
  200. package/dist/plugin-sdk/deliver-runtime-Dx0Sg-lg.js +0 -32
  201. package/dist/plugin-sdk/deps-send-discord.runtime-bKwjojX0.js +0 -23
  202. package/dist/plugin-sdk/deps-send-imessage.runtime-DcxfdKGE.js +0 -22
  203. package/dist/plugin-sdk/deps-send-signal.runtime-79rGat6V.js +0 -21
  204. package/dist/plugin-sdk/deps-send-slack.runtime-DfMO701H.js +0 -19
  205. package/dist/plugin-sdk/deps-send-telegram.runtime-Bnjwm6SU.js +0 -24
  206. package/dist/plugin-sdk/deps-send-whatsapp.runtime-CS50_Jgh.js +0 -57
  207. package/dist/plugin-sdk/image-runtime-f-WKB3Bx.js +0 -25
  208. package/dist/plugin-sdk/manager-runtime-DAKJEbuY.js +0 -15
  209. package/dist/plugin-sdk/pi-model-discovery-runtime-Bm4bHwpO.js +0 -8
  210. package/dist/plugin-sdk/runtime-whatsapp-login.runtime-D74eZbH7.js +0 -10
  211. package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-BidSddX5.js +0 -19
  212. package/dist/plugin-sdk/slash-commands.runtime-CseiMacz.js +0 -13
  213. package/dist/plugin-sdk/slash-dispatch.runtime-88gX6CLk.js +0 -52
  214. package/dist/plugin-sdk/slash-skill-commands.runtime-BNrQNIZ7.js +0 -16
  215. package/dist/plugin-sdk/subagent-registry-runtime-Cv8RHTjT.js +0 -52
  216. package/dist/plugin-sdk/web-C4tTN9Xu.js +0 -56
  217. package/docs/reference/templates/IDENTITY.md +0 -14
  218. package/docs/reference/templates/USER.md +0 -9
  219. package/extensions/diagnostics-otel/node_modules/.bin/acorn +0 -21
  220. package/extensions/memory-lancedb/node_modules/.bin/arrow2csv +0 -21
  221. package/extensions/nostr/node_modules/.bin/tsc +0 -21
  222. package/extensions/nostr/node_modules/.bin/tsserver +0 -21
@@ -1,63 +1,63 @@
1
- import { $ as normalizeAgentId, C as filterBootstrapFilesForSession, D as runCommandWithTimeout, G as toAgentModelListLike, J as buildAgentMainSessionKey, K as DEFAULT_AGENT_ID, M as openBoundaryFileSync, O as runExec, Q as isValidAgentId, S as ensureAgentWorkspace, T as resolveSquidClawPackageRoot, U as resolveAgentModelFallbackValues, V as normalizeWindowsPathForComparison, W as resolveAgentModelPrimaryValue, Y as buildAgentPeerSessionKey, Z as classifySessionKeyShape, a as resolveAgentDir, at as DEFAULT_ACCOUNT_ID, c as resolveAgentWorkspaceDir, ct as isBlockedObjectKey, d as resolveRunModelFallbacksOverride, dt as isAcpSessionKey, et as normalizeMainKey, f as resolveSessionAgentId, ft as isCronSessionKey, g as DEFAULT_BOOTSTRAP_FILENAME, h as DEFAULT_AGENT_WORKSPACE_DIR, ht as resolveThreadParentSessionKey, i as resolveAgentConfig, it as scopedHeartbeatWakeOptions, j as openBoundaryFile, k as spawnWithFallback, l as resolveDefaultAgentId, lt as deriveSessionChatType, mt as parseAgentSessionKey, n as hasConfiguredModelFallbacks, nt as resolveThreadSessionKeys, ot as normalizeAccountId$2, p as resolveSessionAgentIds, pt as isSubagentSessionKey, q as DEFAULT_MAIN_KEY, r as listAgentIds, rt as sanitizeAgentId, s as resolveAgentSkillsFilter, st as normalizeOptionalAccountId, t as runTasksWithConcurrency, tt as resolveAgentIdFromSessionKey, u as resolveEffectiveModelFallbacks, ut as getSubagentDepth, v as DEFAULT_IDENTITY_FILENAME, w as loadWorkspaceBootstrapFiles } from "./run-with-concurrency-EUEKeAa8.js";
2
- import { $ as getConfigValueAtPath, $n as parseBooleanValue$1, An as dedupeProfileIds, At as resolveSlackStreamingMode, B as discoverSquidClawPlugins, Bn as resolveAuthProfileDisplayLabel, Bt as modelKey, Cn as resolveSecretRefValues, Cr as createInternalHookEvent, Ct as normalizeSafeBinProfileFixtures, Dn as parseDotPath, Dt as mapStreamingModeToSlackLegacyDraftStreamMode, En as isRecord$1, Er as resolveCliName, Et as isSafeExecutableValue, F as isAvatarHttpUrl, Fn as resolveSquidClawAgentDir, Ft as buildAllowedModelSet, G as applyTestPluginDefaults, Gn as DEFAULT_MODEL, Gt as resolveModelRefFromString, H as safeStatSync, Hn as normalizeSecretInput, Ht as normalizeProviderId, I as isPathWithinRoot, In as withFileLock, It as buildConfiguredAllowlistKeys, J as resolveMemorySlotDecision, Jn as getShellPathFromLoginShell, Jt as resolveThinkingDefault, K as normalizePluginsConfig, Kn as DEFAULT_PROVIDER, Kt as resolveReasoningDefault, L as isSupportedLocalAvatarExtension, Lt as buildModelAliasIndex, Mn as markAuthProfileGood, N as AVATAR_MAX_BYTES, Nn as ensureAuthProfileStore, Nt as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, On as secretRefKey, Ot as resolveDiscordPreviewStreamMode, P as isAvatarDataUrl, Pn as resolveAuthStorePathForDisplay, Pt as resolveAgentMaxConcurrent, Q as unsetConfigOverride, Qn as isTruthyEnvValue, R as validateJsonSchemaValue, Rt as findNormalizedProviderValue, Sn as resolveApiKeyForProfile, Sr as matchPluginCommand, St as SAFE_BIN_PROFILES, Tn as isNonEmptyString, Tr as formatCliCommand, Tt as applyMergePatch, Un as splitTrailingAuthProfile, Ut as resolveConfiguredModelRef, V as isPathInside, Vt as normalizeModelRef$2, W as MANIFEST_KEY, Wn as DEFAULT_CONTEXT_TOKENS, Wt as resolveDefaultModelForAgent, X as resetConfigOverrides, Xn as isDangerousHostEnvVarName, Y as getConfigOverrides, Yn as resolveShellEnvFallbackTimeoutMs, Z as setConfigOverride, Zn as resolveOwnerDisplaySetting, _ as normalizeScpRemoteHost, _n as getSoonestCooldownExpiry, _r as normalizePluginHttpPath, _t as isDispatchWrapperExecutable, a as resolveConfigSnapshotHash, an as buildAssistantMessageWithZeroUsage, ar as CHAT_CHANNEL_ORDER, at as listWritableExplicitTrustedSafeBinDirs, b as parseDurationMs, bn as markAuthProfileUsed, br as getPluginCommandSpecs, bt as unwrapKnownShellMultiplexerInvocation, cn as getApiKeyForModel, cr as normalizeAnyChannelId, ct as analyzeShellCommand, d as resolveTelegramCustomCommands, dn as resolveApiKeyForProvider, dr as getActivePluginRegistry, dt as splitCommandChain, en as resolveRetryConfig, er as coerceSecretRef, et as parseConfigPath, fn as resolveEnvApiKey, fr as getActivePluginRegistryKey, ft as DEFAULT_SAFE_BINS, g as resolveIMessageRemoteAttachmentRoots, gn as clearExpiredCooldowns, gr as createPluginRegistry, gt as extractShellWrapperInlineCommand, h as resolveIMessageAttachmentRoots, hn as resolveAuthProfileOrder, hr as setActivePluginRegistry, ht as resolveCommandResolutionFromArgv, in as buildAssistantMessage, it as isTrustedSafeBinPath, jn as listProfilesForProvider, kt as resolveSlackNativeStreaming, l as TELEGRAM_COMMAND_NAME_PATTERN, ln as getCustomProviderApiKey, lr as normalizeChannelId$1, lt as buildEnforcedShellCommand, mr as requireActivePluginRegistry, mt as resolveAllowlistCandidatePath, n as loadConfig, nn as OLLAMA_NATIVE_BASE_URL, nr as normalizeResolvedSecretInputString, nt as unsetConfigValueAtPath, o as writeConfigFile, on as buildStreamErrorAssistantMessage, or as getChatChannelMeta, ot as normalizeTrustedSafeBinDirs, p as isInboundPathAllowed, pn as resolveModelAuthMode, pt as matchAllowlist, q as resolveEffectiveEnableState, qn as VERSION, qt as resolveSubagentSpawnModelSelection, r as readConfigFileSnapshot, rn as createOllamaStreamFn, rr as resolveSecretInputRef, rt as getTrustedSafeBinDirs, s as validateConfigObjectWithPlugins, sn as buildUsageWithNoCost, sr as listChatChannels, st as validateSafeBinArgv, tn as retryAsync, tr as hasConfiguredSecretInput, tt as setConfigValueAtPath, u as normalizeTelegramCommandName, un as requireApiKey, ur as normalizeChatChannelId, ut as isWindowsPlatform, v as parseNonNegativeByteSize, vn as isProfileInCooldown, vr as clearPluginCommands, vt as isShellWrapperExecutable, wn as describeUnknownError$1, wr as triggerInternalHook, wt as resolveSafeBinProfiles, xn as resolveProfilesUnavailableReason, xr as listPluginCommands, xt as splitShellArgs, yn as markAuthProfileFailure, yr as executePluginCommand, yt as unwrapKnownDispatchWrapperInvocation, z as loadPluginManifestRegistry, zt as isCliProvider } from "./config-sMifxgre.js";
3
- import { A as createNonExitingRuntime, C as sleep$1, D as isPlainObject, E as truncateUtf16Safe, F as danger, G as getChildLogger, H as colorize, J as normalizeLogLevel, L as logVerbose, M as clearActiveProgressLine, N as registerActiveProgressLine, O as createSubsystemLogger, P as unregisterActiveProgressLine, R as setVerbose, S as shortenHomePath, U as isRich, V as warn, W as theme, X as FLAG_TERMINATOR, Y as resolvePreferredSquidClawTmpDir, Z as consumeRootOptionToken, a as CONFIG_DIR, d as formatTerminalLink, f as isRecord$2, h as normalizeE164, i as logWarn, j as defaultRuntime, l as ensureDir$3, n as logError, r as logInfo, s as clampInt, t as logDebug, u as escapeRegExp, w as sliceUtf16Safe, x as shortenHomeInString, y as resolveUserPath, z as shouldLogVerbose } from "./logger-DIb2cGHp.js";
1
+ import { $ as normalizeAgentId, C as filterBootstrapFilesForSession, D as runCommandWithTimeout, G as toAgentModelListLike, J as buildAgentMainSessionKey, K as DEFAULT_AGENT_ID, M as openBoundaryFileSync, O as runExec, Q as isValidAgentId, S as ensureAgentWorkspace, T as resolveSquidClawPackageRoot, U as resolveAgentModelFallbackValues, V as normalizeWindowsPathForComparison, W as resolveAgentModelPrimaryValue, Y as buildAgentPeerSessionKey, Z as classifySessionKeyShape, a as resolveAgentDir, at as DEFAULT_ACCOUNT_ID, c as resolveAgentWorkspaceDir, ct as isBlockedObjectKey, d as resolveRunModelFallbacksOverride, dt as isAcpSessionKey, et as normalizeMainKey, f as resolveSessionAgentId, ft as isCronSessionKey, g as DEFAULT_BOOTSTRAP_FILENAME, h as DEFAULT_AGENT_WORKSPACE_DIR, ht as resolveThreadParentSessionKey, i as resolveAgentConfig, it as scopedHeartbeatWakeOptions, j as openBoundaryFile, k as spawnWithFallback, l as resolveDefaultAgentId, lt as deriveSessionChatType, mt as parseAgentSessionKey, n as hasConfiguredModelFallbacks, nt as resolveThreadSessionKeys, ot as normalizeAccountId$2, p as resolveSessionAgentIds, pt as isSubagentSessionKey, q as DEFAULT_MAIN_KEY, r as listAgentIds, rt as sanitizeAgentId, s as resolveAgentSkillsFilter, st as normalizeOptionalAccountId, t as runTasksWithConcurrency, tt as resolveAgentIdFromSessionKey, u as resolveEffectiveModelFallbacks, ut as getSubagentDepth, v as DEFAULT_IDENTITY_FILENAME, w as loadWorkspaceBootstrapFiles } from "./run-with-concurrency-CYcPpb5E.js";
2
+ import { $ as getConfigValueAtPath, $n as parseBooleanValue$1, An as dedupeProfileIds, At as resolveSlackStreamingMode, B as discoverSquidClawPlugins, Bn as resolveAuthProfileDisplayLabel, Bt as modelKey, Cn as resolveSecretRefValues, Cr as createInternalHookEvent, Ct as normalizeSafeBinProfileFixtures, Dn as parseDotPath, Dt as mapStreamingModeToSlackLegacyDraftStreamMode, En as isRecord$1, Er as resolveCliName, Et as isSafeExecutableValue, F as isAvatarHttpUrl, Fn as resolveSquidClawAgentDir, Ft as buildAllowedModelSet, G as applyTestPluginDefaults, Gn as DEFAULT_MODEL, Gt as resolveModelRefFromString, H as safeStatSync, Hn as normalizeSecretInput, Ht as normalizeProviderId, I as isPathWithinRoot, In as withFileLock, It as buildConfiguredAllowlistKeys, J as resolveMemorySlotDecision, Jn as getShellPathFromLoginShell, Jt as resolveThinkingDefault, K as normalizePluginsConfig, Kn as DEFAULT_PROVIDER, Kt as resolveReasoningDefault, L as isSupportedLocalAvatarExtension, Lt as buildModelAliasIndex, Mn as markAuthProfileGood, N as AVATAR_MAX_BYTES, Nn as ensureAuthProfileStore, Nt as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, On as secretRefKey, Ot as resolveDiscordPreviewStreamMode, P as isAvatarDataUrl, Pn as resolveAuthStorePathForDisplay, Pt as resolveAgentMaxConcurrent, Q as unsetConfigOverride, Qn as isTruthyEnvValue, R as validateJsonSchemaValue, Rt as findNormalizedProviderValue, Sn as resolveApiKeyForProfile, Sr as matchPluginCommand, St as SAFE_BIN_PROFILES, Tn as isNonEmptyString, Tr as formatCliCommand, Tt as applyMergePatch, Un as splitTrailingAuthProfile, Ut as resolveConfiguredModelRef, V as isPathInside, Vt as normalizeModelRef$2, W as MANIFEST_KEY, Wn as DEFAULT_CONTEXT_TOKENS, Wt as resolveDefaultModelForAgent, X as resetConfigOverrides, Xn as isDangerousHostEnvVarName, Y as getConfigOverrides, Yn as resolveShellEnvFallbackTimeoutMs, Z as setConfigOverride, Zn as resolveOwnerDisplaySetting, _ as normalizeScpRemoteHost, _n as getSoonestCooldownExpiry, _r as normalizePluginHttpPath, _t as isDispatchWrapperExecutable, a as resolveConfigSnapshotHash, an as buildAssistantMessageWithZeroUsage, ar as CHAT_CHANNEL_ORDER, at as listWritableExplicitTrustedSafeBinDirs, b as parseDurationMs, bn as markAuthProfileUsed, br as getPluginCommandSpecs, bt as unwrapKnownShellMultiplexerInvocation, cn as getApiKeyForModel, cr as normalizeAnyChannelId, ct as analyzeShellCommand, d as resolveTelegramCustomCommands, dn as resolveApiKeyForProvider, dr as getActivePluginRegistry, dt as splitCommandChain, en as resolveRetryConfig, er as coerceSecretRef, et as parseConfigPath, fn as resolveEnvApiKey, fr as getActivePluginRegistryKey, ft as DEFAULT_SAFE_BINS, g as resolveIMessageRemoteAttachmentRoots, gn as clearExpiredCooldowns, gr as createPluginRegistry, gt as extractShellWrapperInlineCommand, h as resolveIMessageAttachmentRoots, hn as resolveAuthProfileOrder, hr as setActivePluginRegistry, ht as resolveCommandResolutionFromArgv, in as buildAssistantMessage, it as isTrustedSafeBinPath, jn as listProfilesForProvider, kt as resolveSlackNativeStreaming, l as TELEGRAM_COMMAND_NAME_PATTERN, ln as getCustomProviderApiKey, lr as normalizeChannelId$1, lt as buildEnforcedShellCommand, mr as requireActivePluginRegistry, mt as resolveAllowlistCandidatePath, n as loadConfig, nn as OLLAMA_NATIVE_BASE_URL, nr as normalizeResolvedSecretInputString, nt as unsetConfigValueAtPath, o as writeConfigFile, on as buildStreamErrorAssistantMessage, or as getChatChannelMeta, ot as normalizeTrustedSafeBinDirs, p as isInboundPathAllowed, pn as resolveModelAuthMode, pt as matchAllowlist, q as resolveEffectiveEnableState, qn as VERSION, qt as resolveSubagentSpawnModelSelection, r as readConfigFileSnapshot, rn as createOllamaStreamFn, rr as resolveSecretInputRef, rt as getTrustedSafeBinDirs, s as validateConfigObjectWithPlugins, sn as buildUsageWithNoCost, sr as listChatChannels, st as validateSafeBinArgv, tn as retryAsync, tr as hasConfiguredSecretInput, tt as setConfigValueAtPath, u as normalizeTelegramCommandName, un as requireApiKey, ur as normalizeChatChannelId, ut as isWindowsPlatform, v as parseNonNegativeByteSize, vn as isProfileInCooldown, vr as clearPluginCommands, vt as isShellWrapperExecutable, wn as describeUnknownError$1, wr as triggerInternalHook, wt as resolveSafeBinProfiles, xn as resolveProfilesUnavailableReason, xr as listPluginCommands, xt as splitShellArgs, yn as markAuthProfileFailure, yr as executePluginCommand, yt as unwrapKnownDispatchWrapperInvocation, z as loadPluginManifestRegistry, zt as isCliProvider } from "./config-CMjn_DSB.js";
3
+ import { A as createNonExitingRuntime, C as sleep$1, D as isPlainObject, E as truncateUtf16Safe, F as danger, G as getChildLogger, H as colorize, J as normalizeLogLevel, L as logVerbose, M as clearActiveProgressLine, N as registerActiveProgressLine, O as createSubsystemLogger, P as unregisterActiveProgressLine, R as setVerbose, S as shortenHomePath, U as isRich, V as warn, W as theme, X as FLAG_TERMINATOR, Y as resolvePreferredSquidClawTmpDir, Z as consumeRootOptionToken, a as CONFIG_DIR, d as formatTerminalLink, f as isRecord$2, h as normalizeE164, i as logWarn, j as defaultRuntime, l as ensureDir$3, n as logError, r as logInfo, s as clampInt, t as logDebug, u as escapeRegExp, w as sliceUtf16Safe, x as shortenHomeInString, y as resolveUserPath, z as shouldLogVerbose } from "./logger-Bg4vIUJn.js";
4
4
  import { a as resolveGatewayPort, c as resolveStateDir, d as resolveRequiredHomeDir, l as expandHomePrefix, n as STATE_DIR, r as resolveConfigPath } from "./paths-Duwviem_.js";
5
- import { _ as webAuthExists, c as logWebSelfId, i as resolveWhatsAppAccount, l as logoutWeb, p as readWebSelfId, s as getWebAuthAgeMs, t as hasAnyWhatsAppAuth, v as resolveAccountEntry } from "./accounts-DKXGC2Vu.js";
6
- import { C as normalizeWhatsAppTarget, S as isWhatsAppGroupJid, _ as normalizeChatType, b as resolveDiscordAccount, c as listTelegramAccountIds, d as buildChannelAccountBindings, f as listBindings, g as resolveSlackBotToken, h as resolveSlackAppToken, l as resolveTelegramAccount, m as resolveSlackReplyToMode, n as listChannelPlugins, o as createTelegramActionGate, p as resolveSlackAccount, r as normalizeChannelId$2, s as listEnabledTelegramAccounts, t as getChannelPlugin, u as resolveTelegramToken, v as createDiscordActionGate, x as normalizeDiscordToken, y as listEnabledDiscordAccounts } from "./plugins-BlTrm4bw.js";
7
- import { C as resolveChannelGroupRequireMention, S as resolveChannelGroupPolicy, a as normalizeReasoningLevel, b as normalizeStringEntries, c as normalizeVerboseLevel, d as getChannelDock, f as listChannelDocks, i as normalizeElevatedLevel, l as resolveResponseUsageMode, n as formatXHighModelHint, o as normalizeThinkLevel, p as normalizeSignalMessagingTarget, s as normalizeUsageDisplay, t as formatThinkingLevels, u as supportsXHighThinking, v as normalizeAtHashSlug, w as resolveChannelGroupToolsPolicy, x as normalizeStringEntriesLower, y as normalizeHyphenSlug } from "./thinking-Cih_nxDY.js";
8
- import { t as resolveIMessageAccount } from "./accounts-BhCAa-05.js";
9
- import { a as validateSlackBlocksArray, c as resolveSlackWebClientOptions, i as parseSlackBlocksInput, l as parseSlackTarget, n as markdownToSlackMrkdwnChunks, o as buildSlackBlocksFallbackText, r as normalizeSlackOutboundText, s as createSlackWebClient, t as sendMessageSlack, u as resolveSlackChannelId } from "./send-BGWGV_mz.js";
10
- import { a as imageResultFromFile, c as readNumberParam, d as readStringOrNumberParam, f as readStringParam, h as unknownTargetError, i as imageResult, l as readReactionParams, m as missingTargetError, n as ToolInputError, o as jsonResult, p as ambiguousTargetError, r as createActionGate, s as parseAvailableTags, u as readStringArrayParam } from "./common-CEwMUbms.js";
11
- import { A as GATEWAY_CLIENT_NAMES, C as isMarkdownCapableMessageChannel, D as resolveMessageChannel, E as resolveGatewayMessageChannel, O as GATEWAY_CLIENT_IDS, S as isInternalMessageChannel, T as normalizeMessageChannel, b as isDeliverableMessageChannel, c as detectMime, d as imageMimeFromFormat, f as isAudioFileName, g as MAX_IMAGE_BYTES, i as getImageMetadata, k as GATEWAY_CLIENT_MODES, l as extensionForMime, m as kindFromMime, p as isGifMedia, s as resizeToJpeg, v as mediaKindFromMime, w as listDeliverableMessageChannels, x as isGatewayMessageChannel, y as INTERNAL_MESSAGE_CHANNEL } from "./image-ops-DovJMvdf.js";
12
- import { $ as mergeAlsoAllowPolicy, $t as canonicalizeMainSessionAlias, A as isTransientHttpError, At as normalizeAccountId$3, B as registerBrowserRoutes, Bt as jsonUtf8Bytes, C as isCompactionFailureError, Ct as isCacheEnabled, D as isLikelyContextOverflowError, Dt as mergeDeliveryContext, E as isFailoverErrorMessage, Et as deliveryContextKey, F as isTimeoutErrorMessage, Ft as parseInlineDirectives$1, G as resolveBrowserControlAuth, Gt as resolveChannelResetConfig, H as resolveProfile, Ht as resolveSessionLockMaxHoldFromTimeout, I as ensureSandboxWorkspaceForSession, It as INPUT_PROVENANCE_KIND_VALUES, J as resolveSandboxConfigForAgent, Jt as resolveThreadFlag, K as resolveGatewayCredentialsFromConfig, Kt as resolveSessionResetPolicy, L as resolveSandboxContext, Lt as applyInputProvenanceToUserMessage, M as parseImageSizeError, Mt as capArrayByJsonBytes, N as sanitizeUserFacingText, Nt as countToolResults, O as isRateLimitAssistantError, Ot as normalizeDeliveryContext, P as isAuthPermanentErrorMessage, Pt as extractToolCallNames, Q as expandPolicyWithPluginGroups, Qt as setSessionRuntimeModel, R as resolveSandboxRuntimeStatus, Rt as hasInterSessionUserProvenance, S as isCloudCodeAssistFormatError, St as updateSessionStoreEntry, T as isFailoverAssistantError, Tt as deliveryContextFromSession, U as getBridgeAuthForPort, Ut as resolveSessionKey, V as resolveBrowserConfig, Vt as acquireSessionWriteLock, W as ensureBrowserControlAuth, Wt as evaluateSessionFreshness, X as buildPluginToolGroups, Xt as mergeSessionEntry, Y as applyOwnerOnlyToolPolicy, Yt as DEFAULT_RESET_TRIGGERS, Z as collectExplicitAllowlist, Zt as resolveFreshSessionTotalTokens, _ as formatBillingErrorMessage, _t as loadSessionStore, a as isMessagingToolDuplicateNormalized, at as matchesAnyGlobPattern, b as isAuthAssistantError, bt as updateLastRoute, c as extractToolCallsFromAssistant, ct as resolveBootstrapMaxChars, d as downgradeOpenAIFunctionCallReasoningPairs, dt as sanitizeGoogleTurnOrdering, en as resolveExplicitAgentSessionKey, et as stripPluginOnlyAllowlist, f as downgradeOpenAIReasoningBlocks, ft as extractDeliveryInfo, g as formatAssistantErrorText, gt as resolveAndPersistSessionFile, h as classifyFailoverReason, in as resolveGroupSessionKey, it as compileGlobPatterns, j as parseImageDimensionError, jt as archiveSessionTranscripts, k as isRawApiErrorPayload, kt as normalizeSessionDeliveryFields, l as extractToolResultId, lt as resolveBootstrapPromptTruncationWarningMode, m as BILLING_ERROR_USER_MESSAGE, mt as appendAssistantMessageToSessionTranscript, n as validateGeminiTurns, nn as deriveSessionMetaPatch, nt as normalizeToolName, o as normalizeTextForComparison, ot as buildBootstrapContextFiles, p as isGoogleModelApi, pt as parseSessionThreadInfo, q as trimToUndefined$1, qt as resolveSessionResetType, r as pickFallbackThinkingLevel, rn as resolveConversationLabel, rt as resolveToolProfilePolicy, s as sanitizeSessionMessagesImages, st as ensureSessionHeader, t as validateAnthropicTurns, tn as resolveMainSessionKey, tt as expandToolGroups, u as sanitizeToolCallIdsForCloudCodeAssist, ut as resolveBootstrapTotalMaxChars, v as formatRawAssistantErrorForUi, vt as readSessionUpdatedAt, w as isContextOverflowError, wt as resolveCacheTtlMs$1, x as isBillingAssistantError, xt as updateSessionStore, y as getApiErrorPayloadFingerprint, yt as recordSessionMetaFromInbound, z as createBrowserRouteContext, zt as normalizeInputProvenance } from "./pi-embedded-helpers-Cb_h9zSJ.js";
13
- import { n as resolveSignalAccount, t as listEnabledSignalAccounts } from "./accounts-BChIl5as.js";
14
- import { $ as stripUndefinedFields, A as unpinMessageDiscord, At as resolveChannelEntryMatchWithFallback, B as listScheduledEventsDiscord, C as editMessageDiscord, Ct as resolveDiscordSystemLocation, D as pinMessageDiscord, Dt as applyChannelMatchMeta, E as listThreadsDiscord, Et as fetchDiscord, F as fetchMemberInfoDiscord, G as uploadStickerDiscord, H as timeoutMemberDiscord, I as fetchRoleInfoDiscord, J as editChannelDiscord, K as createChannelDiscord, L as fetchVoiceStatusDiscord, M as banMemberDiscord, N as createScheduledEventDiscord, O as readMessagesDiscord, Ot as buildChannelKeyCandidates, P as fetchChannelInfoDiscord, Q as sendDiscordText, R as kickMemberDiscord, S as deleteMessageDiscord, St as formatDiscordUserTag, T as listPinsDiscord, Tt as DiscordApiError, U as listGuildEmojisDiscord, V as removeRoleDiscord, W as uploadEmojiDiscord, X as removeChannelPermissionDiscord, Y as moveChannelDiscord, Z as setChannelPermissionDiscord, _ as sendStickerDiscord, _t as resolveDiscordOwnerAllowFrom, a as sendDiscordComponentMessage, at as parseDiscordTarget, b as formatMention, bt as shouldEmitDiscordReactionNotification, c as parseDiscordComponentCustomId, ct as listDiscordDirectoryPeersLive, d as parseDiscordModalCustomIdForCarbon, dt as normalizeDiscordSlug, et as fetchChannelPermissionsDiscord, f as readDiscordComponentSpec, ft as resolveDiscordAllowListMatch, g as sendPollDiscord, gt as resolveDiscordOwnerAccess, h as sendMessageDiscord, ht as resolveDiscordMemberAccessState, i as removeReactionDiscord, it as chunkDiscordTextWithMode, j as addRoleDiscord, k as searchMessagesDiscord, kt as normalizeChannelSlug, l as parseDiscordComponentCustomIdForCarbon, lt as isDiscordGroupAllowedByPolicy, m as resolveDiscordModalEntry, mt as resolveDiscordGuildEntry, n as reactMessageDiscord, nt as createDiscordClient, o as createDiscordFormModal, ot as resolveDiscordChannelId, p as resolveDiscordComponentEntry, pt as resolveDiscordChannelConfigWithFallback, q as deleteChannelDiscord, r as removeOwnReactionsDiscord, rt as createDiscordRestClient, s as formatDiscordComponentEventText, st as listDiscordDirectoryGroupsLive, t as fetchReactionsDiscord, tt as hasAnyGuildPermissionDiscord, u as parseDiscordModalCustomId, ut as normalizeDiscordAllowList, v as sendVoiceMessageDiscord, vt as resolveDiscordShouldRequireMention, w as fetchMessageDiscord, wt as resolveTimestampMs, x as createThreadDiscord, xt as formatDiscordReactionEmoji, y as sendWebhookMessageDiscord, yt as resolveGroupDmAllow, z as listGuildChannelsDiscord } from "./send-oo6mQbab.js";
5
+ import { _ as webAuthExists, c as logWebSelfId, i as resolveWhatsAppAccount, l as logoutWeb, p as readWebSelfId, s as getWebAuthAgeMs, t as hasAnyWhatsAppAuth, v as resolveAccountEntry } from "./accounts-BvzvDHNx.js";
6
+ import { C as normalizeWhatsAppTarget, S as isWhatsAppGroupJid, _ as normalizeChatType, b as resolveDiscordAccount, c as listTelegramAccountIds, d as buildChannelAccountBindings, f as listBindings, g as resolveSlackBotToken, h as resolveSlackAppToken, l as resolveTelegramAccount, m as resolveSlackReplyToMode, n as listChannelPlugins, o as createTelegramActionGate, p as resolveSlackAccount, r as normalizeChannelId$2, s as listEnabledTelegramAccounts, t as getChannelPlugin, u as resolveTelegramToken, v as createDiscordActionGate, x as normalizeDiscordToken, y as listEnabledDiscordAccounts } from "./plugins-BSPvol4w.js";
7
+ import { C as resolveChannelGroupRequireMention, S as resolveChannelGroupPolicy, a as normalizeReasoningLevel, b as normalizeStringEntries, c as normalizeVerboseLevel, d as getChannelDock, f as listChannelDocks, i as normalizeElevatedLevel, l as resolveResponseUsageMode, n as formatXHighModelHint, o as normalizeThinkLevel, p as normalizeSignalMessagingTarget, s as normalizeUsageDisplay, t as formatThinkingLevels, u as supportsXHighThinking, v as normalizeAtHashSlug, w as resolveChannelGroupToolsPolicy, x as normalizeStringEntriesLower, y as normalizeHyphenSlug } from "./thinking-gpcjIDQZ.js";
8
+ import { t as resolveIMessageAccount } from "./accounts-BLOLIF6Q.js";
9
+ import { a as validateSlackBlocksArray, c as resolveSlackWebClientOptions, i as parseSlackBlocksInput, l as parseSlackTarget, n as markdownToSlackMrkdwnChunks, o as buildSlackBlocksFallbackText, r as normalizeSlackOutboundText, s as createSlackWebClient, t as sendMessageSlack, u as resolveSlackChannelId } from "./send-D6nUI0S3.js";
10
+ import { a as imageResultFromFile, c as readNumberParam, d as readStringOrNumberParam, f as readStringParam, h as unknownTargetError, i as imageResult, l as readReactionParams, m as missingTargetError, n as ToolInputError, o as jsonResult, p as ambiguousTargetError, r as createActionGate, s as parseAvailableTags, u as readStringArrayParam } from "./common-Emz6EPQM.js";
11
+ import { A as GATEWAY_CLIENT_NAMES, C as isMarkdownCapableMessageChannel, D as resolveMessageChannel, E as resolveGatewayMessageChannel, O as GATEWAY_CLIENT_IDS, S as isInternalMessageChannel, T as normalizeMessageChannel, b as isDeliverableMessageChannel, c as detectMime, d as imageMimeFromFormat, f as isAudioFileName, g as MAX_IMAGE_BYTES, i as getImageMetadata, k as GATEWAY_CLIENT_MODES, l as extensionForMime, m as kindFromMime, p as isGifMedia, s as resizeToJpeg, v as mediaKindFromMime, w as listDeliverableMessageChannels, x as isGatewayMessageChannel, y as INTERNAL_MESSAGE_CHANNEL } from "./image-ops-CbKrfi-N.js";
12
+ import { $ as mergeAlsoAllowPolicy, $t as canonicalizeMainSessionAlias, A as isTransientHttpError, At as normalizeAccountId$3, B as registerBrowserRoutes, Bt as jsonUtf8Bytes, C as isCompactionFailureError, Ct as isCacheEnabled, D as isLikelyContextOverflowError, Dt as mergeDeliveryContext, E as isFailoverErrorMessage, Et as deliveryContextKey, F as isTimeoutErrorMessage, Ft as parseInlineDirectives$1, G as resolveBrowserControlAuth, Gt as resolveChannelResetConfig, H as resolveProfile, Ht as resolveSessionLockMaxHoldFromTimeout, I as ensureSandboxWorkspaceForSession, It as INPUT_PROVENANCE_KIND_VALUES, J as resolveSandboxConfigForAgent, Jt as resolveThreadFlag, K as resolveGatewayCredentialsFromConfig, Kt as resolveSessionResetPolicy, L as resolveSandboxContext, Lt as applyInputProvenanceToUserMessage, M as parseImageSizeError, Mt as capArrayByJsonBytes, N as sanitizeUserFacingText, Nt as countToolResults, O as isRateLimitAssistantError, Ot as normalizeDeliveryContext, P as isAuthPermanentErrorMessage, Pt as extractToolCallNames, Q as expandPolicyWithPluginGroups, Qt as setSessionRuntimeModel, R as resolveSandboxRuntimeStatus, Rt as hasInterSessionUserProvenance, S as isCloudCodeAssistFormatError, St as updateSessionStoreEntry, T as isFailoverAssistantError, Tt as deliveryContextFromSession, U as getBridgeAuthForPort, Ut as resolveSessionKey, V as resolveBrowserConfig, Vt as acquireSessionWriteLock, W as ensureBrowserControlAuth, Wt as evaluateSessionFreshness, X as buildPluginToolGroups, Xt as mergeSessionEntry, Y as applyOwnerOnlyToolPolicy, Yt as DEFAULT_RESET_TRIGGERS, Z as collectExplicitAllowlist, Zt as resolveFreshSessionTotalTokens, _ as formatBillingErrorMessage, _t as loadSessionStore, a as isMessagingToolDuplicateNormalized, at as matchesAnyGlobPattern, b as isAuthAssistantError, bt as updateLastRoute, c as extractToolCallsFromAssistant, ct as resolveBootstrapMaxChars, d as downgradeOpenAIFunctionCallReasoningPairs, dt as sanitizeGoogleTurnOrdering, en as resolveExplicitAgentSessionKey, et as stripPluginOnlyAllowlist, f as downgradeOpenAIReasoningBlocks, ft as extractDeliveryInfo, g as formatAssistantErrorText, gt as resolveAndPersistSessionFile, h as classifyFailoverReason, in as resolveGroupSessionKey, it as compileGlobPatterns, j as parseImageDimensionError, jt as archiveSessionTranscripts, k as isRawApiErrorPayload, kt as normalizeSessionDeliveryFields, l as extractToolResultId, lt as resolveBootstrapPromptTruncationWarningMode, m as BILLING_ERROR_USER_MESSAGE, mt as appendAssistantMessageToSessionTranscript, n as validateGeminiTurns, nn as deriveSessionMetaPatch, nt as normalizeToolName, o as normalizeTextForComparison, ot as buildBootstrapContextFiles, p as isGoogleModelApi, pt as parseSessionThreadInfo, q as trimToUndefined$1, qt as resolveSessionResetType, r as pickFallbackThinkingLevel, rn as resolveConversationLabel, rt as resolveToolProfilePolicy, s as sanitizeSessionMessagesImages, st as ensureSessionHeader, t as validateAnthropicTurns, tn as resolveMainSessionKey, tt as expandToolGroups, u as sanitizeToolCallIdsForCloudCodeAssist, ut as resolveBootstrapTotalMaxChars, v as formatRawAssistantErrorForUi, vt as readSessionUpdatedAt, w as isContextOverflowError, wt as resolveCacheTtlMs$1, x as isBillingAssistantError, xt as updateSessionStore, y as getApiErrorPayloadFingerprint, yt as recordSessionMetaFromInbound, z as createBrowserRouteContext, zt as normalizeInputProvenance } from "./pi-embedded-helpers-B7nmCbf7.js";
13
+ import { n as resolveSignalAccount, t as listEnabledSignalAccounts } from "./accounts-ByCKM_Y3.js";
14
+ import { $ as stripUndefinedFields, A as unpinMessageDiscord, At as resolveChannelEntryMatchWithFallback, B as listScheduledEventsDiscord, C as editMessageDiscord, Ct as resolveDiscordSystemLocation, D as pinMessageDiscord, Dt as applyChannelMatchMeta, E as listThreadsDiscord, Et as fetchDiscord, F as fetchMemberInfoDiscord, G as uploadStickerDiscord, H as timeoutMemberDiscord, I as fetchRoleInfoDiscord, J as editChannelDiscord, K as createChannelDiscord, L as fetchVoiceStatusDiscord, M as banMemberDiscord, N as createScheduledEventDiscord, O as readMessagesDiscord, Ot as buildChannelKeyCandidates, P as fetchChannelInfoDiscord, Q as sendDiscordText, R as kickMemberDiscord, S as deleteMessageDiscord, St as formatDiscordUserTag, T as listPinsDiscord, Tt as DiscordApiError, U as listGuildEmojisDiscord, V as removeRoleDiscord, W as uploadEmojiDiscord, X as removeChannelPermissionDiscord, Y as moveChannelDiscord, Z as setChannelPermissionDiscord, _ as sendStickerDiscord, _t as resolveDiscordOwnerAllowFrom, a as sendDiscordComponentMessage, at as parseDiscordTarget, b as formatMention, bt as shouldEmitDiscordReactionNotification, c as parseDiscordComponentCustomId, ct as listDiscordDirectoryPeersLive, d as parseDiscordModalCustomIdForCarbon, dt as normalizeDiscordSlug, et as fetchChannelPermissionsDiscord, f as readDiscordComponentSpec, ft as resolveDiscordAllowListMatch, g as sendPollDiscord, gt as resolveDiscordOwnerAccess, h as sendMessageDiscord, ht as resolveDiscordMemberAccessState, i as removeReactionDiscord, it as chunkDiscordTextWithMode, j as addRoleDiscord, k as searchMessagesDiscord, kt as normalizeChannelSlug, l as parseDiscordComponentCustomIdForCarbon, lt as isDiscordGroupAllowedByPolicy, m as resolveDiscordModalEntry, mt as resolveDiscordGuildEntry, n as reactMessageDiscord, nt as createDiscordClient, o as createDiscordFormModal, ot as resolveDiscordChannelId, p as resolveDiscordComponentEntry, pt as resolveDiscordChannelConfigWithFallback, q as deleteChannelDiscord, r as removeOwnReactionsDiscord, rt as createDiscordRestClient, s as formatDiscordComponentEventText, st as listDiscordDirectoryGroupsLive, t as fetchReactionsDiscord, tt as hasAnyGuildPermissionDiscord, u as parseDiscordModalCustomId, ut as normalizeDiscordAllowList, v as sendVoiceMessageDiscord, vt as resolveDiscordShouldRequireMention, w as fetchMessageDiscord, wt as resolveTimestampMs, x as createThreadDiscord, xt as formatDiscordReactionEmoji, y as sendWebhookMessageDiscord, yt as resolveGroupDmAllow, z as listGuildChannelsDiscord } from "./send-CZ6HDwDu.js";
15
15
  import { a as saveJsonFile, i as loadJsonFile } from "./github-copilot-token-C0y6vp3r.js";
16
- import { i as resolveSessionTranscriptPath, n as resolveSessionFilePath, o as resolveSessionTranscriptsDirForAgent, r as resolveSessionFilePathOptions, s as resolveStorePath, t as resolveDefaultSessionStorePath } from "./paths-CK3lTJYw.js";
16
+ import { i as resolveSessionTranscriptPath, n as resolveSessionFilePath, o as resolveSessionTranscriptsDirForAgent, r as resolveSessionFilePathOptions, s as resolveStorePath, t as resolveDefaultSessionStorePath } from "./paths-BQHqKGA8.js";
17
17
  import { n as readJsonFile, r as writeJsonAtomic, t as createAsyncLock } from "./json-files-DtF9ARSD.js";
18
18
  import { n as onSessionTranscriptUpdate, t as emitSessionTranscriptUpdate } from "./transcript-events-C-Yjj9jM.js";
19
- import { $ as readChannelAllowFromStore, A as expandTextLinks, B as resolveTelegramThreadSpec, C as buildSenderName, D as buildTelegramThreadParams, E as buildTelegramParentPeer, F as resolveTelegramForumThreadId, G as firstDefined$1, H as normalizeAllowFrom$2, I as resolveTelegramGroupAllowFromContext, J as resolveGroupAllowFromSources, K as isSenderIdAllowed, L as resolveTelegramMediaPlaceholder, M as hasBotMention, N as normalizeForwardedContext, O as buildTypingThreadParams, P as resolveTelegramDirectPeerId, Q as addChannelAllowFromStoreEntry, R as resolveTelegramReplyId, S as buildSenderLabel, T as buildTelegramGroupPeerId, U as normalizeDmAllowFromWithStore$1, V as isSenderAllowed$1, W as resolveSenderAllowMatch$1, X as toLocationContext, Y as formatLocationText, Z as isVoiceCompatibleAudio, _ as wrapFileReferencesInHtml, a as reactMessageTelegram, at as getPairingAdapter, b as withTelegramApiErrorLogging, c as sendStickerTelegram, d as resolveCronStorePath, f as wasSentByBot, g as renderTelegramHtmlText, h as markdownToTelegramHtml, i as editMessageTelegram, it as writeJsonFileAtomically, j as extractTelegramLocation, k as describeReplyTarget, l as resolveTelegramVoiceSend, m as markdownToTelegramChunks, n as createForumTopicTelegram, nt as upsertChannelPairingRequest, o as sendMessageTelegram, ot as listPairingChannels, p as isRecoverableTelegramNetworkError, q as mergeDmAllowFromSources, r as deleteMessageTelegram, rt as readJsonFileWithFallback, s as sendPollTelegram, t as buildInlineKeyboard, tt as removeChannelAllowFromStoreEntry, u as loadCronStore, v as resolveTelegramFetch, w as buildTelegramGroupFrom, x as buildGroupLabel, y as splitTelegramCaption, z as resolveTelegramStreamMode } from "./send-BMWyVUhm.js";
20
- import { a as stripSilentToken, i as isSilentReplyText, n as SILENT_REPLY_TOKEN, r as isSilentReplyPrefixText, t as HEARTBEAT_TOKEN } from "./tokens-CLE20fRI.js";
21
- import { _ as normalizeMediaUnderstandingChatType, a as resolveAutoImageModel, b as applyTemplate, c as findModelInCatalog, d as buildRandomTempFilePath, f as registerUnhandledRejectionHandler, g as resolveTimeoutMs$2, h as resolveConcurrency, i as normalizeMediaAttachments, l as loadModelCatalog, m as resolveAttachmentKind, n as buildProviderRegistry, o as resolveMediaAttachmentLocalRoots, r as createMediaAttachmentCache, s as runCapability, t as runAudioTranscription, u as modelSupportsVision, v as resolveMediaUnderstandingScope, y as CLI_OUTPUT_MAX_BUFFER } from "./audio-transcription-runner-CBASOlbc.js";
22
- import { C as ensureSquidClawModelsJson, S as extractTextFromChatContent, _ as formatToolSummary, a as resolveProviderVisionModelFromConfig, b as findCodeRegions, c as extractThinkingFromTaggedStream, d as inferToolMetaFromArgs, f as isAssistantMessage, g as stripThinkingTagsFromText, h as stripMinimaxToolCallXml, i as decodeDataUrl, l as extractThinkingFromTaggedText, m as stripDowngradedToolCallText, n as coerceImageAssistantText, o as extractAssistantText$1, p as promoteThinkingTagsToBlocks, r as coerceImageModelConfig, s as extractAssistantThinking, u as formatReasoningMessage, v as resolveToolDisplay, w as minimaxUnderstandImage, x as isInsideCode, y as stripReasoningTagsFromText } from "./image-BJXV9IMV.js";
23
- import { A as rawDataToString, B as isSecureWebSocketUrl, C as ensureChromeExtensionRelayServer, N as DEFAULT_UPLOAD_DIR, P as resolveExistingPathsWithinRoot, U as DEFAULT_AI_SNAPSHOT_MAX_CHARS, s as resolveLsofCommandSync, z as isLoopbackHost } from "./chrome-BlXpNOQu.js";
24
- import { c as assertSandboxPath, d as resolveSandboxedMediaSource, f as applySkillEnvOverrides, i as resolveSkillsPromptForRun, l as resolveSandboxInputPath, n as buildWorkspaceSkillSnapshot, p as applySkillEnvOverridesFromSnapshot, r as loadWorkspaceSkillEntries, s as assertMediaNotDataUrl } from "./skills-di-5uS9y.js";
25
- import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-BfpU4lAT.js";
26
- import { i as testRegexWithBoundedInput, r as compileSafeRegex, t as redactSensitiveText } from "./redact-9WsNyb7S.js";
27
- import { i as formatUncaughtError, o as readErrorName, r as formatErrorMessage } from "./errors-CgRPdp3o.js";
28
- import { a as readFileWithinRoot, c as writeFileWithinRoot, i as openFileWithinRoot, n as copyFileWithinRoot, r as createRootScopedReadFile, t as SafeOpenError } from "./fs-safe-5aQcM_qM.js";
29
- import { a as isBlockedHostnameOrIp, c as normalizeHostname, n as SsrFBlockedError } from "./proxy-env-Cdh-OQYk.js";
30
- import { i as saveMediaBuffer, r as getMediaDir, t as MEDIA_MAX_BYTES } from "./store-Dn_E3uaN.js";
19
+ import { $ as readChannelAllowFromStore, A as expandTextLinks, B as resolveTelegramThreadSpec, C as buildSenderName, D as buildTelegramThreadParams, E as buildTelegramParentPeer, F as resolveTelegramForumThreadId, G as firstDefined$1, H as normalizeAllowFrom$2, I as resolveTelegramGroupAllowFromContext, J as resolveGroupAllowFromSources, K as isSenderIdAllowed, L as resolveTelegramMediaPlaceholder, M as hasBotMention, N as normalizeForwardedContext, O as buildTypingThreadParams, P as resolveTelegramDirectPeerId, Q as addChannelAllowFromStoreEntry, R as resolveTelegramReplyId, S as buildSenderLabel, T as buildTelegramGroupPeerId, U as normalizeDmAllowFromWithStore$1, V as isSenderAllowed$1, W as resolveSenderAllowMatch$1, X as toLocationContext, Y as formatLocationText, Z as isVoiceCompatibleAudio, _ as wrapFileReferencesInHtml, a as reactMessageTelegram, at as getPairingAdapter, b as withTelegramApiErrorLogging, c as sendStickerTelegram, d as resolveCronStorePath, f as wasSentByBot, g as renderTelegramHtmlText, h as markdownToTelegramHtml, i as editMessageTelegram, it as writeJsonFileAtomically, j as extractTelegramLocation, k as describeReplyTarget, l as resolveTelegramVoiceSend, m as markdownToTelegramChunks, n as createForumTopicTelegram, nt as upsertChannelPairingRequest, o as sendMessageTelegram, ot as listPairingChannels, p as isRecoverableTelegramNetworkError, q as mergeDmAllowFromSources, r as deleteMessageTelegram, rt as readJsonFileWithFallback, s as sendPollTelegram, t as buildInlineKeyboard, tt as removeChannelAllowFromStoreEntry, u as loadCronStore, v as resolveTelegramFetch, w as buildTelegramGroupFrom, x as buildGroupLabel, y as splitTelegramCaption, z as resolveTelegramStreamMode } from "./send-BPEn9L0o.js";
20
+ import { a as stripSilentToken, i as isSilentReplyText, n as SILENT_REPLY_TOKEN, r as isSilentReplyPrefixText, t as HEARTBEAT_TOKEN } from "./tokens-DAL_5WHL.js";
21
+ import { _ as normalizeMediaUnderstandingChatType, a as resolveAutoImageModel, b as applyTemplate, c as findModelInCatalog, d as buildRandomTempFilePath, f as registerUnhandledRejectionHandler, g as resolveTimeoutMs$2, h as resolveConcurrency, i as normalizeMediaAttachments, l as loadModelCatalog, m as resolveAttachmentKind, n as buildProviderRegistry, o as resolveMediaAttachmentLocalRoots, r as createMediaAttachmentCache, s as runCapability, t as runAudioTranscription, u as modelSupportsVision, v as resolveMediaUnderstandingScope, y as CLI_OUTPUT_MAX_BUFFER } from "./audio-transcription-runner-u6tijzUS.js";
22
+ import { C as ensureSquidClawModelsJson, S as extractTextFromChatContent, _ as formatToolSummary, a as resolveProviderVisionModelFromConfig, b as findCodeRegions, c as extractThinkingFromTaggedStream, d as inferToolMetaFromArgs, f as isAssistantMessage, g as stripThinkingTagsFromText, h as stripMinimaxToolCallXml, i as decodeDataUrl, l as extractThinkingFromTaggedText, m as stripDowngradedToolCallText, n as coerceImageAssistantText, o as extractAssistantText$1, p as promoteThinkingTagsToBlocks, r as coerceImageModelConfig, s as extractAssistantThinking, u as formatReasoningMessage, v as resolveToolDisplay, w as minimaxUnderstandImage, x as isInsideCode, y as stripReasoningTagsFromText } from "./image-DPgEp54d.js";
23
+ import { A as rawDataToString, B as isSecureWebSocketUrl, C as ensureChromeExtensionRelayServer, N as DEFAULT_UPLOAD_DIR, P as resolveExistingPathsWithinRoot, U as DEFAULT_AI_SNAPSHOT_MAX_CHARS, s as resolveLsofCommandSync, z as isLoopbackHost } from "./chrome-6EkqVcyR.js";
24
+ import { c as assertSandboxPath, d as resolveSandboxedMediaSource, f as applySkillEnvOverrides, i as resolveSkillsPromptForRun, l as resolveSandboxInputPath, n as buildWorkspaceSkillSnapshot, p as applySkillEnvOverridesFromSnapshot, r as loadWorkspaceSkillEntries, s as assertMediaNotDataUrl } from "./skills-CaQpr1kx.js";
25
+ import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-DSCFtpsd.js";
26
+ import { i as testRegexWithBoundedInput, r as compileSafeRegex, t as redactSensitiveText } from "./redact-DfACyt0X.js";
27
+ import { i as formatUncaughtError, o as readErrorName, r as formatErrorMessage } from "./errors-9oVz7reJ.js";
28
+ import { a as readFileWithinRoot, c as writeFileWithinRoot, i as openFileWithinRoot, n as copyFileWithinRoot, r as createRootScopedReadFile, t as SafeOpenError } from "./fs-safe-B26UxJny.js";
29
+ import { a as isBlockedHostnameOrIp, c as normalizeHostname, n as SsrFBlockedError } from "./proxy-env-D-iVYTBk.js";
30
+ import { i as saveMediaBuffer, r as getMediaDir, t as MEDIA_MAX_BYTES } from "./store-K6C7eOpg.js";
31
31
  import { n as generateSecureUuid, t as generateSecureToken } from "./secure-random-D2mQUJdh.js";
32
- import { a as canonicalizeBase64, i as resolveImageSanitizationLimits, n as sanitizeImageBlocks, o as estimateBase64DecodedBytes, r as sanitizeToolResultImages } from "./tool-images-D6a1Ua4p.js";
32
+ import { a as canonicalizeBase64, i as resolveImageSanitizationLimits, n as sanitizeImageBlocks, o as estimateBase64DecodedBytes, r as sanitizeToolResultImages } from "./tool-images-l3TE_qXt.js";
33
33
  import { n as fetchWithTimeout, t as bindAbortRelay } from "./fetch-timeout-CR10Uz2k.js";
34
- import { n as withStrictGuardedFetchMode, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-BxMLJbqt.js";
35
- import { a as readResponseWithLimit, i as fetchRemoteMedia, n as getDefaultMediaLocalRoots, r as MediaFetchError, t as getAgentScopedMediaLocalRoots } from "./local-roots-CIwDgpY2.js";
36
- import { t as makeProxyFetch } from "./proxy-fetch-Dt5BedH8.js";
37
- import { C as createReplyToModeFilterForChannel, D as normalizeTargetForProvider, E as normalizeChannelTargetInput, O as getGlobalHookRunner, S as shouldSuppressReasoningPayload, T as buildTargetResolverSignature, _ as applyReplyThreading, a as normalizeReplyPayloadsForDelivery, b as isRenderablePayload, c as splitMediaFromOutput, d as toInternalMessageReceivedContext, f as toInternalMessageTranscribedContext, g as applyReplyTagsToPayload, h as fireAndForgetHook, i as normalizeOutboundPayloadsForJson, k as initializeGlobalHookRunner, l as deriveInboundMessageHookContext, m as toPluginMessageReceivedEvent, n as formatOutboundPayloadLog, o as throwIfAborted, p as toPluginMessageContext, r as normalizeOutboundPayloads, s as parseReplyDirectives, t as deliverOutboundPayloads, u as toInternalMessagePreprocessedContext, v as filterMessagingToolDuplicates, w as resolveReplyToMode, x as shouldSuppressMessagingToolReplies, y as filterMessagingToolMediaDuplicates } from "./deliver-2zt3NeFA.js";
38
- import { _ as isRestartEnabled, a as listChatCommandsForConfig, c as maybeResolveTextAlias, d as resolveCommandArgChoices, f as resolveCommandArgMenu, g as isNativeCommandsExplicitlyDisabled, h as isCommandFlagEnabled, i as listChatCommands, l as normalizeCommandBody, m as shouldHandleTextCommands, n as findCommandByNativeName, o as listNativeCommandSpecs, p as serializeCommandArgs, r as isCommandEnabled, s as listNativeCommandSpecsForConfig, t as buildCommandTextFromArgs, u as parseCommandArgs, v as resolveNativeCommandsEnabled, y as resolveNativeSkillsEnabled } from "./commands-registry-C9y_w3eW.js";
39
- import { a as getRemoteSkillEligibility, c as pruneExpiredPending, i as resolveSkillCommandInvocation, l as resolvePairingPaths, n as listSkillCommandsForAgents, o as ensureSkillsWatcher, r as listSkillCommandsForWorkspace, s as getSkillsSnapshotVersion, t as listReservedChatSlashCommandNames } from "./skill-commands-CoqGFLfM.js";
34
+ import { n as withStrictGuardedFetchMode, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-CGQ35-A_.js";
35
+ import { a as readResponseWithLimit, i as fetchRemoteMedia, n as getDefaultMediaLocalRoots, r as MediaFetchError, t as getAgentScopedMediaLocalRoots } from "./local-roots-T6lXDGzr.js";
36
+ import { t as makeProxyFetch } from "./proxy-fetch-Cf3IUSDw.js";
37
+ import { C as createReplyToModeFilterForChannel, D as normalizeTargetForProvider, E as normalizeChannelTargetInput, O as getGlobalHookRunner, S as shouldSuppressReasoningPayload, T as buildTargetResolverSignature, _ as applyReplyThreading, a as normalizeReplyPayloadsForDelivery, b as isRenderablePayload, c as splitMediaFromOutput, d as toInternalMessageReceivedContext, f as toInternalMessageTranscribedContext, g as applyReplyTagsToPayload, h as fireAndForgetHook, i as normalizeOutboundPayloadsForJson, k as initializeGlobalHookRunner, l as deriveInboundMessageHookContext, m as toPluginMessageReceivedEvent, n as formatOutboundPayloadLog, o as throwIfAborted, p as toPluginMessageContext, r as normalizeOutboundPayloads, s as parseReplyDirectives, t as deliverOutboundPayloads, u as toInternalMessagePreprocessedContext, v as filterMessagingToolDuplicates, w as resolveReplyToMode, x as shouldSuppressMessagingToolReplies, y as filterMessagingToolMediaDuplicates } from "./deliver-Cz6GluMN.js";
38
+ import { _ as isRestartEnabled, a as listChatCommandsForConfig, c as maybeResolveTextAlias, d as resolveCommandArgChoices, f as resolveCommandArgMenu, g as isNativeCommandsExplicitlyDisabled, h as isCommandFlagEnabled, i as listChatCommands, l as normalizeCommandBody, m as shouldHandleTextCommands, n as findCommandByNativeName, o as listNativeCommandSpecs, p as serializeCommandArgs, r as isCommandEnabled, s as listNativeCommandSpecsForConfig, t as buildCommandTextFromArgs, u as parseCommandArgs, v as resolveNativeCommandsEnabled, y as resolveNativeSkillsEnabled } from "./commands-registry-CDHo6SSs.js";
39
+ import { a as getRemoteSkillEligibility, c as pruneExpiredPending, i as resolveSkillCommandInvocation, l as resolvePairingPaths, n as listSkillCommandsForAgents, o as ensureSkillsWatcher, r as listSkillCommandsForWorkspace, s as getSkillsSnapshotVersion, t as listReservedChatSlashCommandNames } from "./skill-commands-BpB2Oe8e.js";
40
40
  import { n as wrapFetchWithAbortSignal, t as resolveFetch } from "./fetch-D3HDdlk7.js";
41
- import { a as logMessageQueued, c as logWebhookError, d as startDiagnosticHeartbeat, f as stopDiagnosticHeartbeat, h as getDiagnosticSessionState, i as logMessageProcessed, l as logWebhookProcessed, m as isDiagnosticsEnabled, n as logLaneDequeue, o as logSessionStateChange, p as emitDiagnosticEvent, r as logLaneEnqueue, t as diag, u as logWebhookReceived } from "./diagnostic-CU_mni6m.js";
41
+ import { a as logMessageQueued, c as logWebhookError, d as startDiagnosticHeartbeat, f as stopDiagnosticHeartbeat, h as getDiagnosticSessionState, i as logMessageProcessed, l as logWebhookProcessed, m as isDiagnosticsEnabled, n as logLaneDequeue, o as logSessionStateChange, p as emitDiagnosticEvent, r as logLaneEnqueue, t as diag, u as logWebhookReceived } from "./diagnostic-DhO2TqL_.js";
42
42
  import { n as recordCommandPoll, r as resetCommandPollCount } from "./command-poll-backoff-BLkab-vw.js";
43
43
  import { i as resolveTelegramTargetChatType, r as parseTelegramTarget } from "./targets-BHZKnwxJ.js";
44
- import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-B3B3R7L9.js";
45
- import { _ as isSafeFenceBreak, a as loadWebMedia, c as chunkByNewline, d as chunkMarkdownTextWithMode, f as chunkText, g as findFenceSpanAt, h as resolveTextChunkLimit, i as getDefaultLocalRoots, m as resolveChunkMode, o as loadWebMediaRaw, p as chunkTextWithMode, s as resolveMarkdownTableMode, u as chunkMarkdownText, v as parseFenceSpans } from "./ir-DE2ewdq5.js";
44
+ import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-DyDwYiK3.js";
45
+ import { _ as isSafeFenceBreak, a as loadWebMedia, c as chunkByNewline, d as chunkMarkdownTextWithMode, f as chunkText, g as findFenceSpanAt, h as resolveTextChunkLimit, i as getDefaultLocalRoots, m as resolveChunkMode, o as loadWebMediaRaw, p as chunkTextWithMode, s as resolveMarkdownTableMode, u as chunkMarkdownText, v as parseFenceSpans } from "./ir-4JdLS2Hz.js";
46
46
  import { n as normalizePollInput } from "./polls-CuwZJ8h2.js";
47
- import { a as signalCheck, i as resolveSignalRpcContext, n as sendReadReceiptSignal, o as signalRpcRequest, r as sendTypingSignal, s as streamSignalEvents, t as sendMessageSignal } from "./send-Drs4JqVD.js";
47
+ import { a as signalCheck, i as resolveSignalRpcContext, n as sendReadReceiptSignal, o as signalRpcRequest, r as sendTypingSignal, s as streamSignalEvents, t as sendMessageSignal } from "./send-B9GVkvTk.js";
48
48
  import { t as buildOutboundMediaLoadOptions } from "./load-options-BbCcHhSJ.js";
49
- import { a as isAllowedIMessageSender, i as formatIMessageChatTarget, n as createIMessageRpcClient, o as normalizeIMessageHandle, r as DEFAULT_IMESSAGE_PROBE_TIMEOUT_MS, s as parseIMessageTarget, t as sendMessageIMessage } from "./send-0C4KdD-T.js";
50
- import { n as recordChannelActivity, r as createDiscordRetryRunner, t as getChannelActivity } from "./channel-activity-95JVLzNY.js";
51
- import { t as convertMarkdownTables } from "./tables-_e9wMygc.js";
52
- import { i as redactIdentifier, t as getActiveWebListener } from "./active-listener-TTbK9PGk.js";
53
- import { n as resolveMemorySearchConfig } from "./manager-CpAGPHeX.js";
54
- import { f as listMemoryFiles, p as normalizeExtraMemoryPaths } from "./query-expansion-OdwWuN1S.js";
49
+ import { a as isAllowedIMessageSender, i as formatIMessageChatTarget, n as createIMessageRpcClient, o as normalizeIMessageHandle, r as DEFAULT_IMESSAGE_PROBE_TIMEOUT_MS, s as parseIMessageTarget, t as sendMessageIMessage } from "./send-CGjI0pJn.js";
50
+ import { n as recordChannelActivity, r as createDiscordRetryRunner, t as getChannelActivity } from "./channel-activity-BVUdxSNs.js";
51
+ import { t as convertMarkdownTables } from "./tables-CeWt6UjS.js";
52
+ import { i as redactIdentifier, t as getActiveWebListener } from "./active-listener-Ccj2fSCa.js";
53
+ import { n as resolveMemorySearchConfig } from "./manager-D__CoDGL.js";
54
+ import { f as listMemoryFiles, p as normalizeExtraMemoryPaths } from "./query-expansion-DxTmIU4K.js";
55
55
  import { createRequire } from "node:module";
56
56
  import * as path$1 from "node:path";
57
57
  import path, { isAbsolute } from "node:path";
58
58
  import fs, { existsSync, mkdirSync, mkdtempSync, promises, readFileSync, renameSync, rmSync, statSync, unlinkSync, writeFileSync } from "node:fs";
59
59
  import os, { homedir } from "node:os";
60
- import JSON5 from "json5";
60
+ import json5 from "json5";
61
61
  import { inspect, isDeepStrictEqual, promisify } from "node:util";
62
62
  import * as fs$2 from "node:fs/promises";
63
63
  import fs$1, { appendFile, mkdir } from "node:fs/promises";
@@ -1273,7 +1273,7 @@ async function runWithConcurrency(tasks, limit) {
1273
1273
  //#region src/media-understanding/echo-transcript.ts
1274
1274
  let deliverRuntimePromise$2 = null;
1275
1275
  function loadDeliverRuntime$2() {
1276
- deliverRuntimePromise$2 ??= import("./deliver-runtime-Dx0Sg-lg.js");
1276
+ deliverRuntimePromise$2 ??= import("./deliver-runtime-CjCJkoFM.js");
1277
1277
  return deliverRuntimePromise$2;
1278
1278
  }
1279
1279
  const DEFAULT_ECHO_TRANSCRIPT_FORMAT = "📝 \"{transcript}\"";
@@ -19374,7 +19374,7 @@ function normalizeReplyPayload(payload, opts = {}) {
19374
19374
  */
19375
19375
  let deliverRuntimePromise$1 = null;
19376
19376
  function loadDeliverRuntime$1() {
19377
- deliverRuntimePromise$1 ??= import("./deliver-runtime-Dx0Sg-lg.js");
19377
+ deliverRuntimePromise$1 ??= import("./deliver-runtime-CjCJkoFM.js");
19378
19378
  return deliverRuntimePromise$1;
19379
19379
  }
19380
19380
  /**
@@ -19902,7 +19902,7 @@ function normalizeSessionKey(value) {
19902
19902
  function readSessionStore(storePath) {
19903
19903
  try {
19904
19904
  const raw = fs.readFileSync(storePath, "utf-8");
19905
- const parsed = JSON5.parse(raw);
19905
+ const parsed = json5.parse(raw);
19906
19906
  if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) return parsed;
19907
19907
  } catch {}
19908
19908
  return {};
@@ -20124,7 +20124,7 @@ const DEFAULT_SUBAGENT_ANNOUNCE_TIMEOUT_MS = 6e4;
20124
20124
  const MAX_TIMER_SAFE_TIMEOUT_MS = 2147e6;
20125
20125
  let subagentRegistryRuntimePromise = null;
20126
20126
  function loadSubagentRegistryRuntime() {
20127
- subagentRegistryRuntimePromise ??= import("./subagent-registry-runtime-Cv8RHTjT.js");
20127
+ subagentRegistryRuntimePromise ??= import("./subagent-registry-runtime-BbcgUYOO.js");
20128
20128
  return subagentRegistryRuntimePromise;
20129
20129
  }
20130
20130
  const DIRECT_ANNOUNCE_TRANSIENT_RETRY_DELAYS_MS = FAST_TEST_MODE ? [
@@ -30158,7 +30158,7 @@ const VISION_PROVIDERS = [
30158
30158
  ];
30159
30159
  let imageRuntimePromise = null;
30160
30160
  function loadImageRuntime() {
30161
- imageRuntimePromise ??= import("./image-runtime-f-WKB3Bx.js");
30161
+ imageRuntimePromise ??= import("./image-runtime-DN6PHT8G.js");
30162
30162
  return imageRuntimePromise;
30163
30163
  }
30164
30164
  /**
@@ -32614,7 +32614,7 @@ async function resolveDiscordPreflightAudioMentionContext(params) {
32614
32614
  hasTypedText
32615
32615
  };
32616
32616
  try {
32617
- const { transcribeFirstAudio } = await import("./audio-preflight-DAf0ptAM.js");
32617
+ const { transcribeFirstAudio } = await import("./audio-preflight-B_pcDw8d.js");
32618
32618
  if (params.abortSignal?.aborted) return {
32619
32619
  hasAudioAttachment,
32620
32620
  hasTypedText
@@ -36352,7 +36352,7 @@ function ensureContextWindowCacheLoaded() {
36352
36352
  await ensureSquidClawModelsJson(cfg);
36353
36353
  } catch {}
36354
36354
  try {
36355
- const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-B3B3R7L9.js").then((n) => n.r);
36355
+ const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-DyDwYiK3.js").then((n) => n.r);
36356
36356
  const agentDir = resolveSquidClawAgentDir();
36357
36357
  const modelRegistry = discoverModels(discoverAuthStorage(agentDir), agentDir);
36358
36358
  applyDiscoveredContextWindows({
@@ -36745,7 +36745,7 @@ async function createModelSelectionState(params) {
36745
36745
  }
36746
36746
  }
36747
36747
  if (sessionEntry && sessionStore && sessionKey && sessionEntry.authProfileOverride) {
36748
- const { ensureAuthProfileStore } = await import("./config-sMifxgre.js").then((n) => n.mn);
36748
+ const { ensureAuthProfileStore } = await import("./config-CMjn_DSB.js").then((n) => n.mn);
36749
36749
  const profile = ensureAuthProfileStore(void 0, { allowKeychainPrompt: false }).profiles[sessionEntry.authProfileOverride];
36750
36750
  const providerKey = normalizeProviderId(provider);
36751
36751
  if (!profile || normalizeProviderId(profile.provider) !== providerKey) await clearSessionAuthProfileOverride({
@@ -44312,27 +44312,27 @@ let slackSenderRuntimePromise = null;
44312
44312
  let signalSenderRuntimePromise = null;
44313
44313
  let imessageSenderRuntimePromise = null;
44314
44314
  function loadWhatsAppSenderRuntime() {
44315
- whatsappSenderRuntimePromise ??= import("./deps-send-whatsapp.runtime-CS50_Jgh.js");
44315
+ whatsappSenderRuntimePromise ??= import("./deps-send-whatsapp.runtime-DoOYrpKa.js");
44316
44316
  return whatsappSenderRuntimePromise;
44317
44317
  }
44318
44318
  function loadTelegramSenderRuntime() {
44319
- telegramSenderRuntimePromise ??= import("./deps-send-telegram.runtime-Bnjwm6SU.js");
44319
+ telegramSenderRuntimePromise ??= import("./deps-send-telegram.runtime-DyCorUw2.js");
44320
44320
  return telegramSenderRuntimePromise;
44321
44321
  }
44322
44322
  function loadDiscordSenderRuntime() {
44323
- discordSenderRuntimePromise ??= import("./deps-send-discord.runtime-bKwjojX0.js");
44323
+ discordSenderRuntimePromise ??= import("./deps-send-discord.runtime-C4AEwjGl.js");
44324
44324
  return discordSenderRuntimePromise;
44325
44325
  }
44326
44326
  function loadSlackSenderRuntime() {
44327
- slackSenderRuntimePromise ??= import("./deps-send-slack.runtime-DfMO701H.js");
44327
+ slackSenderRuntimePromise ??= import("./deps-send-slack.runtime-BChVBURL.js");
44328
44328
  return slackSenderRuntimePromise;
44329
44329
  }
44330
44330
  function loadSignalSenderRuntime() {
44331
- signalSenderRuntimePromise ??= import("./deps-send-signal.runtime-79rGat6V.js");
44331
+ signalSenderRuntimePromise ??= import("./deps-send-signal.runtime-BNO6SPmR.js");
44332
44332
  return signalSenderRuntimePromise;
44333
44333
  }
44334
44334
  function loadIMessageSenderRuntime() {
44335
- imessageSenderRuntimePromise ??= import("./deps-send-imessage.runtime-DcxfdKGE.js");
44335
+ imessageSenderRuntimePromise ??= import("./deps-send-imessage.runtime-DCdEe-_E.js");
44336
44336
  return imessageSenderRuntimePromise;
44337
44337
  }
44338
44338
  function createDefaultDeps() {
@@ -57246,15 +57246,15 @@ let slashCommandsRuntimePromise = null;
57246
57246
  let slashDispatchRuntimePromise = null;
57247
57247
  let slashSkillCommandsRuntimePromise = null;
57248
57248
  function loadSlashCommandsRuntime() {
57249
- slashCommandsRuntimePromise ??= import("./slash-commands.runtime-CseiMacz.js");
57249
+ slashCommandsRuntimePromise ??= import("./slash-commands.runtime-BH06o3dH.js");
57250
57250
  return slashCommandsRuntimePromise;
57251
57251
  }
57252
57252
  function loadSlashDispatchRuntime() {
57253
- slashDispatchRuntimePromise ??= import("./slash-dispatch.runtime-88gX6CLk.js");
57253
+ slashDispatchRuntimePromise ??= import("./slash-dispatch.runtime-BotYesgY.js");
57254
57254
  return slashDispatchRuntimePromise;
57255
57255
  }
57256
57256
  function loadSlashSkillCommandsRuntime() {
57257
- slashSkillCommandsRuntimePromise ??= import("./slash-skill-commands.runtime-BNrQNIZ7.js");
57257
+ slashSkillCommandsRuntimePromise ??= import("./slash-skill-commands.runtime-CzPvxiUD.js");
57258
57258
  return slashSkillCommandsRuntimePromise;
57259
57259
  }
57260
57260
  const slackExternalArgMenuStore = createSlackExternalArgMenuStore();
@@ -58244,7 +58244,7 @@ function collectTelegramUnmentionedGroupIds(groups) {
58244
58244
  }
58245
58245
  let auditMembershipRuntimePromise = null;
58246
58246
  function loadAuditMembershipRuntime() {
58247
- auditMembershipRuntimePromise ??= import("./audit-membership-runtime-Xl20kCBe.js");
58247
+ auditMembershipRuntimePromise ??= import("./audit-membership-runtime-DHQDvH4u.js");
58248
58248
  return auditMembershipRuntimePromise;
58249
58249
  }
58250
58250
  async function auditTelegramGroupMembership(params) {
@@ -62953,7 +62953,7 @@ const buildTelegramMessageContext = async ({ primaryCtx, allMedia, replyMedia =
62953
62953
  const disableAudioPreflight = firstDefined$1(topicConfig?.disableAudioPreflight, groupConfig?.disableAudioPreflight) === true;
62954
62954
  let preflightTranscript;
62955
62955
  if (isGroup && requireMention && hasAudio && !hasUserText && mentionRegexes.length > 0 && !disableAudioPreflight) try {
62956
- const { transcribeFirstAudio } = await import("./audio-preflight-DAf0ptAM.js");
62956
+ const { transcribeFirstAudio } = await import("./audio-preflight-B_pcDw8d.js");
62957
62957
  preflightTranscript = await transcribeFirstAudio({
62958
62958
  ctx: {
62959
62959
  MediaPaths: allMedia.length > 0 ? allMedia.map((m) => m.path) : void 0,
@@ -65792,7 +65792,7 @@ function createWhatsAppLoginTool() {
65792
65792
  force: Type.Optional(Type.Boolean())
65793
65793
  }),
65794
65794
  execute: async (_toolCallId, args) => {
65795
- const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-BlxjA0vQ.js");
65795
+ const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-CTjNgxhl.js");
65796
65796
  if ((args?.action ?? "start") === "wait") {
65797
65797
  const result = await waitForWebLogin({ timeoutMs: typeof args.timeoutMs === "number" ? args.timeoutMs : void 0 });
65798
65798
  return {
@@ -65867,23 +65867,23 @@ let webOutboundPromise = null;
65867
65867
  let webLoginPromise = null;
65868
65868
  let whatsappActionsPromise = null;
65869
65869
  function loadWebOutbound() {
65870
- webOutboundPromise ??= import("./runtime-whatsapp-outbound.runtime-BidSddX5.js");
65870
+ webOutboundPromise ??= import("./runtime-whatsapp-outbound.runtime-BzvoaI1G.js");
65871
65871
  return webOutboundPromise;
65872
65872
  }
65873
65873
  function loadWebLogin() {
65874
- webLoginPromise ??= import("./runtime-whatsapp-login.runtime-D74eZbH7.js");
65874
+ webLoginPromise ??= import("./runtime-whatsapp-login.runtime-ai8hcGi_.js");
65875
65875
  return webLoginPromise;
65876
65876
  }
65877
65877
  function loadWebLoginQr() {
65878
- webLoginQrPromise ??= import("./login-qr-BlxjA0vQ.js");
65878
+ webLoginQrPromise ??= import("./login-qr-CTjNgxhl.js");
65879
65879
  return webLoginQrPromise;
65880
65880
  }
65881
65881
  function loadWebChannel() {
65882
- webChannelPromise ??= import("./web-C4tTN9Xu.js");
65882
+ webChannelPromise ??= import("./web-DZ7nBzZy.js");
65883
65883
  return webChannelPromise;
65884
65884
  }
65885
65885
  function loadWhatsAppActions() {
65886
- whatsappActionsPromise ??= import("./whatsapp-actions-UAnHjKbE.js");
65886
+ whatsappActionsPromise ??= import("./whatsapp-actions-CbzdjX4B.js");
65887
65887
  return whatsappActionsPromise;
65888
65888
  }
65889
65889
  function createRuntimeWhatsApp() {
@@ -66324,7 +66324,7 @@ const log$11 = createSubsystemLogger("memory");
66324
66324
  const QMD_MANAGER_CACHE = /* @__PURE__ */ new Map();
66325
66325
  let managerRuntimePromise = null;
66326
66326
  function loadManagerRuntime() {
66327
- managerRuntimePromise ??= import("./manager-runtime-DAKJEbuY.js");
66327
+ managerRuntimePromise ??= import("./manager-runtime-B9aBGLrF.js");
66328
66328
  return managerRuntimePromise;
66329
66329
  }
66330
66330
  async function getMemorySearchManager(params) {
@@ -66338,7 +66338,7 @@ async function getMemorySearchManager(params) {
66338
66338
  if (cached) return { manager: cached };
66339
66339
  }
66340
66340
  try {
66341
- const { QmdMemoryManager } = await import("./qmd-manager-Ct9rtJjd.js");
66341
+ const { QmdMemoryManager } = await import("./qmd-manager-81ezWnIN.js");
66342
66342
  const primary = await QmdMemoryManager.create({
66343
66343
  cfg: params.cfg,
66344
66344
  agentId: params.agentId,
@@ -78982,7 +78982,7 @@ const LOOP_WARNING_BUCKET_SIZE = 10;
78982
78982
  const MAX_LOOP_WARNING_KEYS = 256;
78983
78983
  let beforeToolCallRuntimePromise = null;
78984
78984
  function loadBeforeToolCallRuntime() {
78985
- beforeToolCallRuntimePromise ??= import("./pi-tools.before-tool-call.runtime-DivpBAM0.js");
78985
+ beforeToolCallRuntimePromise ??= import("./pi-tools.before-tool-call.runtime-D_f6TDo7.js");
78986
78986
  return beforeToolCallRuntimePromise;
78987
78987
  }
78988
78988
  function buildAdjustedParamsKey(params) {
@@ -97261,7 +97261,7 @@ const warnedContexts = /* @__PURE__ */ new Map();
97261
97261
  const log$1 = createSubsystemLogger("session-maintenance-warning");
97262
97262
  let deliverRuntimePromise = null;
97263
97263
  function loadDeliverRuntime() {
97264
- deliverRuntimePromise ??= import("./deliver-runtime-Dx0Sg-lg.js");
97264
+ deliverRuntimePromise ??= import("./deliver-runtime-CjCJkoFM.js");
97265
97265
  return deliverRuntimePromise;
97266
97266
  }
97267
97267
  function shouldSendWarning() {
@@ -0,0 +1,40 @@
1
+ import { I as isWhatsAppGroupJid, L as normalizeWhatsAppTarget } from "./plugins-CWIlxjXW.js";
2
+ import { n as missingTargetError } from "./target-errors-vzf_mLjC.js";
3
+
4
+ //#region src/whatsapp/resolve-outbound-target.ts
5
+ function resolveWhatsAppOutboundTarget(params) {
6
+ const trimmed = params.to?.trim() ?? "";
7
+ const allowListRaw = (params.allowFrom ?? []).map((entry) => String(entry).trim()).filter(Boolean);
8
+ const hasWildcard = allowListRaw.includes("*");
9
+ const allowList = allowListRaw.filter((entry) => entry !== "*").map((entry) => normalizeWhatsAppTarget(entry)).filter((entry) => Boolean(entry));
10
+ if (trimmed) {
11
+ const normalizedTo = normalizeWhatsAppTarget(trimmed);
12
+ if (!normalizedTo) return {
13
+ ok: false,
14
+ error: missingTargetError("WhatsApp", "<E.164|group JID>")
15
+ };
16
+ if (isWhatsAppGroupJid(normalizedTo)) return {
17
+ ok: true,
18
+ to: normalizedTo
19
+ };
20
+ if (hasWildcard || allowList.length === 0) return {
21
+ ok: true,
22
+ to: normalizedTo
23
+ };
24
+ if (allowList.includes(normalizedTo)) return {
25
+ ok: true,
26
+ to: normalizedTo
27
+ };
28
+ return {
29
+ ok: false,
30
+ error: missingTargetError("WhatsApp", "<E.164|group JID>")
31
+ };
32
+ }
33
+ return {
34
+ ok: false,
35
+ error: missingTargetError("WhatsApp", "<E.164|group JID>")
36
+ };
37
+ }
38
+
39
+ //#endregion
40
+ export { resolveWhatsAppOutboundTarget as t };
@@ -1,5 +1,5 @@
1
- import { C as normalizeWhatsAppTarget, S as isWhatsAppGroupJid } from "./plugins-BlTrm4bw.js";
2
- import { m as missingTargetError } from "./common-CEwMUbms.js";
1
+ import { C as normalizeWhatsAppTarget, S as isWhatsAppGroupJid } from "./plugins-BSPvol4w.js";
2
+ import { m as missingTargetError } from "./common-Emz6EPQM.js";
3
3
 
4
4
  //#region src/whatsapp/resolve-outbound-target.ts
5
5
  function resolveWhatsAppOutboundTarget(params) {