@symerian/symi 2.5.2 → 2.5.3

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 (174) hide show
  1. package/dist/{accounts-tNElYrCH.js → accounts-CI6zQTJj.js} +14 -14
  2. package/dist/{accounts-qtxJ-6em.js → accounts-CJR8j_Kq.js} +1 -1
  3. package/dist/{accounts-CWktKM8a.js → accounts-ChTFYj8Q.js} +1 -1
  4. package/dist/{active-listener-C9r8ZB9m.js → active-listener-D6sXIjAg.js} +1 -1
  5. package/dist/{agent-scope-BxoUQqgM.js → agent-scope-Bw1Ed8W9.js} +3 -3
  6. package/dist/{agents-DfyzZKBc.js → agents-CTPFuwCu.js} +4 -4
  7. package/dist/{agents.config-VjZQr5GP.js → agents.config-CQVRXowo.js} +1 -1
  8. package/dist/{agents.config-Dzr8Us0l.js → agents.config-CVlanyIt.js} +1 -1
  9. package/dist/{audio-preflight-D02HwB-I.js → audio-preflight-BkIfnmpi.js} +29 -29
  10. package/dist/{audio-preflight-C40mKAp7.js → audio-preflight-CPBOQV4I.js} +4 -4
  11. package/dist/{auth-choice-C01glnpg.js → auth-choice-AlA3IixA.js} +1 -1
  12. package/dist/{auth-choice-BJPRC23V.js → auth-choice-BKmjyPNC.js} +1 -1
  13. package/dist/{banner-B4wP-CCZ.js → banner-8_qXSW1S.js} +1 -1
  14. package/dist/{bindings-B7Ke6LJi.js → bindings-BU2hsBd9.js} +2 -2
  15. package/dist/build-info.json +3 -3
  16. package/dist/bundled/boot-md/handler.js +53 -53
  17. package/dist/bundled/bootstrap-extra-files/handler.js +5 -5
  18. package/dist/bundled/command-logger/handler.js +1 -1
  19. package/dist/bundled/session-memory/handler.js +53 -53
  20. package/dist/canvas-host/a2ui/.bundle.hash +1 -1
  21. package/dist/{channel-activity-CsM_hJ_s.js → channel-activity-C9-gaquj.js} +1 -1
  22. package/dist/{channel-options-DRK05uet.js → channel-options-CMm67N4v.js} +1 -1
  23. package/dist/{channel-options-Bb2WRpn4.js → channel-options-nfXd5NWO.js} +1 -1
  24. package/dist/{channel-web-Cv1L-jTo.js → channel-web-D6t5UK5A.js} +1 -1
  25. package/dist/{channels-cli-Dnwswsi2.js → channels-cli-BA9QVK8Q.js} +4 -4
  26. package/dist/{channels-cli-CPvaBiNE.js → channels-cli-B_iBgjWh.js} +4 -4
  27. package/dist/{chrome-EyvdASWt.js → chrome-CxSAp8x3.js} +13 -13
  28. package/dist/{chrome-CDJYxX5a.js → chrome-D2SKJnR7.js} +7 -7
  29. package/dist/{chunk-BW5f05BR.js → chunk-ClbN9Pqy.js} +1 -1
  30. package/dist/{cli-CgQySW2m.js → cli-BF2nSOtU.js} +1 -1
  31. package/dist/{cli-hT0g_Q65.js → cli-DyI0-h78.js} +1 -1
  32. package/dist/{command-format-BaxDnULz.js → command-format-UKHV-j0K.js} +1 -1
  33. package/dist/{command-registry-D7MjQKMD.js → command-registry-DhvgkMQN.js} +9 -9
  34. package/dist/{commands-registry-D7CTCQPm.js → commands-registry-VSmULp-g.js} +4 -4
  35. package/dist/{completion-cli-Bcv09Yuh.js → completion-cli-CqHcRASb.js} +2 -2
  36. package/dist/{completion-cli-BLYlpN4p.js → completion-cli-DJ2AgNQF.js} +1 -1
  37. package/dist/{config-cli-CIkKTucr.js → config-cli-7yzVs6sD.js} +1 -1
  38. package/dist/{config-cli-CtKkpyHu.js → config-cli-9MIL9tVq.js} +1 -1
  39. package/dist/{config-DRbjHIwD.js → config-eEaJddXj.js} +12 -12
  40. package/dist/{configure-BP4M7T_e.js → configure-BWIGtf_8.js} +3 -3
  41. package/dist/{configure-Bhm7x3Ri.js → configure-rs23A6dR.js} +3 -3
  42. package/dist/{deliver-D1ZN6-fl.js → deliver-BA7ZN3iM.js} +20 -20
  43. package/dist/{deliver-BH0l3UKW.js → deliver-C-37cZUe.js} +1 -1
  44. package/dist/{diagnostic-CI0kRQkt.js → diagnostic-C3nsWaw3.js} +1 -1
  45. package/dist/{doctor-completion-DVs_xVw4.js → doctor-completion-BqOO4r2O.js} +1 -1
  46. package/dist/{doctor-completion-bTUb2Em4.js → doctor-completion-DD-fb-G8.js} +1 -1
  47. package/dist/entry.js +1 -1
  48. package/dist/extensionAPI.js +6 -6
  49. package/dist/{frontmatter-C_bv_0P8.js → frontmatter-DPlG6yha.js} +2 -2
  50. package/dist/{gateway-cli-CY_R8dGA.js → gateway-cli-2R-SuiTy.js} +9 -9
  51. package/dist/{gateway-cli-BPf1OUhU.js → gateway-cli-BVnEz6em.js} +9 -9
  52. package/dist/{gemini-auth-CdSPHuLl.js → gemini-auth-CF48hUR9.js} +1 -1
  53. package/dist/{github-copilot-token-C_qUP7p5.js → github-copilot-token-DJqsJ2-r.js} +7 -7
  54. package/dist/{glass-ui-ws-Cx9mt64o.js → glass-ui-ws-C9w0ySFw.js} +7 -7
  55. package/dist/{glass-ui-ws-DMQldmwk.js → glass-ui-ws-CmDHJq0W.js} +7 -7
  56. package/dist/{health-vuMM-FAs.js → health-CGJe8xON.js} +1 -1
  57. package/dist/{health-CM3gPoYN.js → health-R_6vQfbY.js} +1 -1
  58. package/dist/{hooks-cli-tLOOQscu.js → hooks-cli-CUTMGbml.js} +2 -2
  59. package/dist/{hooks-cli-B8kuyvML.js → hooks-cli-Cvc0R8C2.js} +2 -2
  60. package/dist/{image-Cp3JDEBB.js → image-BGmVDkkw.js} +4 -4
  61. package/dist/{image-CHzdaNJ4.js → image-DcpMiprB.js} +1 -1
  62. package/dist/{image-ops-CvJzsyvE.js → image-ops-S8-8dAhx.js} +1 -1
  63. package/dist/index.js +6 -6
  64. package/dist/{ir-DccrnjsE.js → ir-CbFUkv_T.js} +4 -4
  65. package/dist/llm-slug-generator.js +53 -53
  66. package/dist/{local-roots-DMwIh5cS.js → local-roots-C7OCYACU.js} +5 -5
  67. package/dist/{login-CwCoxapk.js → login-B8uiUAnV.js} +7 -7
  68. package/dist/{login-qr-Batf3PT5.js → login-qr-CIZk8uKX.js} +12 -12
  69. package/dist/{manager-D_LwXbc6.js → manager-BoLr3xR_.js} +13 -13
  70. package/dist/{manifest-registry-D0IQ3WuX.js → manifest-registry-CneMHk0N.js} +19 -19
  71. package/dist/{markdown-tables-iMQQZu4Q.js → markdown-tables-DSHvnTLx.js} +1 -1
  72. package/dist/{message-channel-Dz5lr5b0.js → message-channel-DbsRltF2.js} +1 -1
  73. package/dist/{model-auth-DK43VicI.js → model-auth-CwOuTuXl.js} +9 -9
  74. package/dist/{models-CBtd5YaQ.js → models-DPk6zVF5.js} +2 -2
  75. package/dist/{models-cli-B8Fq0Of1.js → models-cli-1hWA7FrI.js} +2 -2
  76. package/dist/{models-cli-CIp8mElS.js → models-cli-BhijD6uM.js} +3 -3
  77. package/dist/{onboard-DBCSZwxu.js → onboard-BgoNPLnU.js} +2 -2
  78. package/dist/{onboard-CjSHwvTP.js → onboard-CSPuFTdy.js} +2 -2
  79. package/dist/{onboard-channels-BgMpB9vX.js → onboard-channels-D680exuN.js} +1 -1
  80. package/dist/{onboard-channels-eCCJophA.js → onboard-channels-r6Gvo5Cd.js} +1 -1
  81. package/dist/{onboarding-3iCiOVeb.js → onboarding-Dnmpcyzj.js} +3 -3
  82. package/dist/{onboarding-ztTrPGQa.js → onboarding-pxBeD60g.js} +3 -3
  83. package/dist/{onboarding.finalize-DsOBEKtX.js → onboarding.finalize-CBTphwf0.js} +6 -6
  84. package/dist/{onboarding.finalize-bcSfd4yw.js → onboarding.finalize-jsLRDHxC.js} +5 -5
  85. package/dist/{outbound-attachment-DjNDa3zn.js → outbound-attachment-Co2diKdP.js} +2 -2
  86. package/dist/{outbound-D4fN_ZlE.js → outbound-opDNxv-l.js} +7 -7
  87. package/dist/{paths-DLyHUt31.js → paths-Cb87-LzP.js} +1 -1
  88. package/dist/{paths-Cce4PUkG.js → paths-CySxpNhH.js} +5 -5
  89. package/dist/{pi-auth-json-0SYBFZTt.js → pi-auth-json-DPWPoruO.js} +8 -8
  90. package/dist/{pi-embedded-CpI5F8DC.js → pi-embedded-BRw7oe5n.js} +34 -22
  91. package/dist/{pi-embedded-Ch-LcMWg.js → pi-embedded-DkqIIBK5.js} +176 -164
  92. package/dist/{pi-embedded-helpers-lgx_U5KS.js → pi-embedded-helpers-B8kqLWns.js} +4 -4
  93. package/dist/{pi-embedded-helpers-ag2bosuj.js → pi-embedded-helpers-DEEaCvEp.js} +52 -52
  94. package/dist/{plugin-registry-CL--iTFl.js → plugin-registry-BtIkzwfi.js} +1 -1
  95. package/dist/{plugin-registry-BfqJjw6d.js → plugin-registry-DZ4m64Mr.js} +1 -1
  96. package/dist/plugin-sdk/{channel-web-mO5qO05p.js → channel-web-CDaDQ_94.js} +1 -1
  97. package/dist/plugin-sdk/index.js +2 -2
  98. package/dist/plugin-sdk/{reply-B4uPw1l4.js → reply-BgTxNeXD.js} +20 -8
  99. package/dist/plugin-sdk/{web-BkEJ_MjB.js → web-B6NRKGGa.js} +2 -2
  100. package/dist/{plugins-DQYI3Fr-.js → plugins-C4C9637U.js} +9 -9
  101. package/dist/{plugins-cli-DVLIR6IN.js → plugins-cli-CRb9nRFi.js} +2 -2
  102. package/dist/{plugins-cli-MaXVJ6uV.js → plugins-cli-DqE-InfX.js} +2 -2
  103. package/dist/{program-v4cRnLjP.js → program-BDQRtHXP.js} +7 -7
  104. package/dist/{program-context-C0vN6LYk.js → program-context-DoK7rKBC.js} +17 -17
  105. package/dist/{prompt-select-styled-CEmtUvNV.js → prompt-select-styled-B3dTk26Y.js} +4 -4
  106. package/dist/{prompt-select-styled-D48W5rxp.js → prompt-select-styled-MqSvQaDb.js} +4 -4
  107. package/dist/{provider-auth-helpers-CPbCxhvj.js → provider-auth-helpers-BDN3x0AU.js} +1 -1
  108. package/dist/{provider-auth-helpers-C4-EqP9W.js → provider-auth-helpers-CwUeZ41c.js} +1 -1
  109. package/dist/{push-apns-DpdcOumU.js → push-apns-BBaXO4aV.js} +1 -1
  110. package/dist/{push-apns-glbAu-g9.js → push-apns-CgmHr336.js} +1 -1
  111. package/dist/{pw-ai-De-KR9_s.js → pw-ai-1htA-NnS.js} +1 -1
  112. package/dist/{pw-ai-Ch7liUOW.js → pw-ai-DhwRiS06.js} +11 -11
  113. package/dist/{qmd-manager-QHUP-_em.js → qmd-manager-DdZh9PHs.js} +7 -7
  114. package/dist/{register.agent-2jRwf1Rt.js → register.agent-BDIn4sRN.js} +5 -5
  115. package/dist/{register.agent-DrocnT2d.js → register.agent-zqbU35_d.js} +6 -6
  116. package/dist/{register.configure-yy5Qb8fJ.js → register.configure-B9Atehb4.js} +6 -6
  117. package/dist/{register.configure-DULdexW6.js → register.configure-CBWMCe2I.js} +6 -6
  118. package/dist/{register.maintenance-CI3D-c8a.js → register.maintenance-B3SsgHO_.js} +8 -8
  119. package/dist/{register.maintenance-v_G9yCLf.js → register.maintenance-BQy8hEp0.js} +7 -7
  120. package/dist/{register.message-DkwXioit.js → register.message-B6KDPfgh.js} +2 -2
  121. package/dist/{register.message-UoA7D74J.js → register.message-Dg0Q8NL0.js} +2 -2
  122. package/dist/{register.onboard-DFe3IAjB.js → register.onboard-Cg1itYBF.js} +4 -4
  123. package/dist/{register.onboard-D3qTCyiW.js → register.onboard-kaKkBUpb.js} +4 -4
  124. package/dist/{register.setup-DXT4OS3N.js → register.setup-BBQtCyWL.js} +4 -4
  125. package/dist/{register.setup-DO3vwGHY.js → register.setup-BiBByjTo.js} +4 -4
  126. package/dist/{register.status-health-sessions-DGLfWuS4.js → register.status-health-sessions-C3M6B_3w.js} +3 -3
  127. package/dist/{register.status-health-sessions-C5IRI7-t.js → register.status-health-sessions-DL9QESHL.js} +3 -3
  128. package/dist/{register.subclis-PQ2Ulz3J.js → register.subclis-B27L2Tlh.js} +9 -9
  129. package/dist/{registry-CK4e9hn8.js → registry-DP24za6g.js} +17 -17
  130. package/dist/{replies-BIX_isV7.js → replies-DpPvWiGF.js} +3 -3
  131. package/dist/{reply-kuehpmXb.js → reply-ahHa59uT.js} +20 -8
  132. package/dist/{reply-prefix-XlyuyChD.js → reply-prefix-CtL0omgM.js} +1 -1
  133. package/dist/{resolve-route-CZ-1eqw0.js → resolve-route-BVikmvWO.js} +4 -4
  134. package/dist/{retry-Cly39XZB.js → retry-dGG-MbxL.js} +1 -1
  135. package/dist/{run-main-BHKGY1KH.js → run-main-DqlK3Wy-.js} +14 -14
  136. package/dist/{runner-D0QUGA_X.js → runner-B_KP4voe.js} +9 -9
  137. package/dist/{runner-DUBExAb5.js → runner-BcQ0sF9T.js} +1 -1
  138. package/dist/{send-DeFniOjh.js → send-CHEOWVc8.js} +6 -6
  139. package/dist/{send-WyRqb4WD.js → send-DbcLJb0P.js} +7 -7
  140. package/dist/{send-B1u-LrcS.js → send-DeEosX8F.js} +18 -18
  141. package/dist/{send-CiTGOvEc.js → send-DwKJK3sM.js} +10 -10
  142. package/dist/{send-DW96zgDL.js → send-zSarozV2.js} +6 -6
  143. package/dist/{server-methods-BHjqwsiI.js → server-methods-B9ZPWP0q.js} +7 -7
  144. package/dist/{server-methods-rmWST_iV.js → server-methods-CGVoOkf3.js} +7 -7
  145. package/dist/{server-node-events-za7_iA-n.js → server-node-events-CjoofPGv.js} +2 -2
  146. package/dist/{server-node-events-KVX4S5Md.js → server-node-events-DzlyRIPt.js} +2 -2
  147. package/dist/{session-SM36BTsl.js → session-DV1MNlbV.js} +8 -8
  148. package/dist/{skill-commands-BJMb_psG.js → skill-commands-D610IKhm.js} +9 -9
  149. package/dist/{skills-BFekKL7i.js → skills-o5WVqM4V.js} +21 -21
  150. package/dist/{sqlite-DRbx2dhW.js → sqlite-6H6Zw1cs.js} +4 -4
  151. package/dist/{status-BJITmlhZ.js → status-Csa1fdSW.js} +2 -2
  152. package/dist/{status-DJhmJYSu.js → status-DNRd5-AN.js} +1 -1
  153. package/dist/{status-Bow6kS56.js → status-Dd3-6fq5.js} +2 -2
  154. package/dist/{status-CRuOmtVo.js → status-TUjwchut.js} +1 -1
  155. package/dist/{store-C0wvOkae.js → store-vVE6N2mH.js} +2 -2
  156. package/dist/{subagent-registry-BxM7J5m6.js → subagent-registry-DfimjEyh.js} +20 -8
  157. package/dist/{subsystem-Bs9YvKLa.js → subsystem-DgpxyDQ_.js} +1 -1
  158. package/dist/{tables-DuZspiBu.js → tables-BIWsCKXJ.js} +1 -1
  159. package/dist/{target-errors-Be1SwYlW.js → target-errors-DyItGyW9.js} +2 -2
  160. package/dist/{thinking-CdlENGRW.js → thinking-Ni0HF-w6.js} +5 -5
  161. package/dist/{tokens-H1H1LiSQ.js → tokens-c_SLAkVb.js} +1 -1
  162. package/dist/{tool-images-DXB7tqWi.js → tool-images-DBCfXdli.js} +2 -2
  163. package/dist/{tool-loop-detection-Cs8_HCsx.js → tool-loop-detection-Bbc9OPFR.js} +3 -3
  164. package/dist/{update-cli-Dqh498qQ.js → update-cli-4mLsTTm5.js} +7 -7
  165. package/dist/{update-cli-BfGdSZRk.js → update-cli-yJuLaKdL.js} +8 -8
  166. package/dist/{update-runner-YRJPtj9J.js → update-runner-C0hYiaj2.js} +1 -1
  167. package/dist/{update-runner-C0iELmzo.js → update-runner-CB0M0lum.js} +1 -1
  168. package/dist/{web-9AS0DiSZ.js → web-BMLeQ_Ql.js} +1 -1
  169. package/dist/{web-CVAyVZBT.js → web-BUrK0rTE.js} +2 -2
  170. package/dist/{web-DFqKskm8.js → web-DrsjOzkW.js} +6 -6
  171. package/dist/{web-CubghJNN.js → web-Nrl97JcY.js} +57 -57
  172. package/dist/{whatsapp-actions-D1RsnX7P.js → whatsapp-actions-oRQjcdQe.js} +23 -23
  173. package/dist/{workspace-wAaHI8-5.js → workspace-CbvamIU6.js} +6 -6
  174. package/package.json +1 -1
@@ -1,75 +1,75 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
2
- import { c as expandHomePrefix, i as resolveGatewayPort, n as resolveConfigPath, s as resolveStateDir, t as STATE_DIR, u as resolveRequiredHomeDir } from "./paths-Cce4PUkG.js";
2
+ import { c as expandHomePrefix, i as resolveGatewayPort, n as resolveConfigPath, s as resolveStateDir, t as STATE_DIR, u as resolveRequiredHomeDir } from "./paths-CySxpNhH.js";
3
3
  import { _ as isCronSessionKey, b as resolveThreadParentSessionKey, c as normalizeMainKey, d as sanitizeAgentId, f as DEFAULT_ACCOUNT_ID, g as isAcpSessionKey, h as getSubagentDepth, l as resolveAgentIdFromSessionKey, o as classifySessionKeyShape, p as normalizeAccountId$2, r as buildAgentMainSessionKey, s as normalizeAgentId, t as DEFAULT_AGENT_ID, u as resolveThreadSessionKeys, v as isSubagentSessionKey, y as parseAgentSessionKey } from "./session-key-BCzIW1Y2.js";
4
- import { $ as warn, B as sleep$1, D as escapeRegExp, E as ensureDir$3, G as danger, I as resolveUserPath, J as logVerbose, M as normalizeE164, O as formatTerminalLink, R as shortenHomeInString, S as CONFIG_DIR, U as truncateUtf16Safe, V as sliceUtf16Safe, W as isPlainObject, X as setVerbose, Z as shouldLogVerbose, _ as matchPluginCommand, a as normalizeAnyChannelId, d as createPluginRegistry, dt as resolvePreferredSymiTmpDir, et as colorize, f as normalizePluginHttpPath, g as listPluginCommands, h as getPluginCommandSpecs, k as isRecord$1, l as requireActivePluginRegistry, lt as normalizeLogLevel, m as executePluginCommand, n as CHAT_CHANNEL_ORDER, nt as theme, o as normalizeChannelId, p as clearPluginCommands, r as DEFAULT_CHAT_CHANNEL, rt as getChildLogger, tt as isRich, u as setActivePluginRegistry, v as createInternalHookEvent, w as clampInt, x as triggerInternalHook, z as shortenHomePath } from "./registry-CK4e9hn8.js";
5
- import { a as resolveAgentModelPrimary, c as resolveDefaultAgentId, d as resolveSessionAgentIds, i as resolveAgentModelFallbacksOverride, l as resolveEffectiveModelFallbacks, n as resolveAgentConfig, o as resolveAgentSkillsFilter, r as resolveAgentDir, s as resolveAgentWorkspaceDir, t as listAgentIds, u as resolveSessionAgentId } from "./agent-scope-BxoUQqgM.js";
6
- import { a as registerActiveProgressLine, i as clearActiveProgressLine, n as createNonExitingRuntime, o as unregisterActiveProgressLine, r as defaultRuntime, t as createSubsystemLogger } from "./subsystem-Bs9YvKLa.js";
7
- import { S as logWarn, _ as runExec, b as logError, f as loadWorkspaceBootstrapFiles, g as runCommandWithTimeout, i as DEFAULT_IDENTITY_FILENAME, l as ensureAgentWorkspace, m as resolveSymiPackageRoot, n as DEFAULT_AGENT_WORKSPACE_DIR, r as DEFAULT_BOOTSTRAP_FILENAME, u as filterBootstrapFilesForSession, v as spawnWithFallback, x as logInfo, y as logDebug } from "./workspace-wAaHI8-5.js";
8
- import { a as isSilentReplyText, i as isSilentReplyPrefixText, n as SILENT_REPLY_TOKEN, r as SYMIPULSE_TOKEN, t as HEARTBEAT_TOKEN } from "./tokens-H1H1LiSQ.js";
9
- import { _ as resolveDiscordAccount, a as normalizeWhatsAppTarget, c as listTelegramAccountIds, d as resolveSlackAccount, g as listEnabledDiscordAccounts, h as createDiscordActionGate, i as isWhatsAppGroupJid, l as resolveTelegramAccount, m as resolveSlackBotToken, n as listChannelPlugins, o as createTelegramActionGate, p as resolveSlackAppToken, r as normalizeChannelId$1, s as listEnabledTelegramAccounts, t as getChannelPlugin, u as resolveTelegramToken, v as normalizeDiscordToken } from "./plugins-DQYI3Fr-.js";
10
- import { a as logoutWeb, i as logWebSelfId, l as readWebSelfId, p as webAuthExists, r as getWebAuthAgeMs, t as resolveWhatsAppAccount } from "./accounts-tNElYrCH.js";
4
+ import { $ as warn, B as sleep$1, D as escapeRegExp, E as ensureDir$3, G as danger, I as resolveUserPath, J as logVerbose, M as normalizeE164, O as formatTerminalLink, R as shortenHomeInString, S as CONFIG_DIR, U as truncateUtf16Safe, V as sliceUtf16Safe, W as isPlainObject, X as setVerbose, Z as shouldLogVerbose, _ as matchPluginCommand, a as normalizeAnyChannelId, d as createPluginRegistry, dt as resolvePreferredSymiTmpDir, et as colorize, f as normalizePluginHttpPath, g as listPluginCommands, h as getPluginCommandSpecs, k as isRecord$1, l as requireActivePluginRegistry, lt as normalizeLogLevel, m as executePluginCommand, n as CHAT_CHANNEL_ORDER, nt as theme, o as normalizeChannelId, p as clearPluginCommands, r as DEFAULT_CHAT_CHANNEL, rt as getChildLogger, tt as isRich, u as setActivePluginRegistry, v as createInternalHookEvent, w as clampInt, x as triggerInternalHook, z as shortenHomePath } from "./registry-DP24za6g.js";
5
+ import { a as resolveAgentModelPrimary, c as resolveDefaultAgentId, d as resolveSessionAgentIds, i as resolveAgentModelFallbacksOverride, l as resolveEffectiveModelFallbacks, n as resolveAgentConfig, o as resolveAgentSkillsFilter, r as resolveAgentDir, s as resolveAgentWorkspaceDir, t as listAgentIds, u as resolveSessionAgentId } from "./agent-scope-Bw1Ed8W9.js";
6
+ import { a as registerActiveProgressLine, i as clearActiveProgressLine, n as createNonExitingRuntime, o as unregisterActiveProgressLine, r as defaultRuntime, t as createSubsystemLogger } from "./subsystem-DgpxyDQ_.js";
7
+ import { S as logWarn, _ as runExec, b as logError, f as loadWorkspaceBootstrapFiles, g as runCommandWithTimeout, i as DEFAULT_IDENTITY_FILENAME, l as ensureAgentWorkspace, m as resolveSymiPackageRoot, n as DEFAULT_AGENT_WORKSPACE_DIR, r as DEFAULT_BOOTSTRAP_FILENAME, u as filterBootstrapFilesForSession, v as spawnWithFallback, x as logInfo, y as logDebug } from "./workspace-CbvamIU6.js";
8
+ import { a as isSilentReplyText, i as isSilentReplyPrefixText, n as SILENT_REPLY_TOKEN, r as SYMIPULSE_TOKEN, t as HEARTBEAT_TOKEN } from "./tokens-c_SLAkVb.js";
9
+ import { _ as resolveDiscordAccount, a as normalizeWhatsAppTarget, c as listTelegramAccountIds, d as resolveSlackAccount, g as listEnabledDiscordAccounts, h as createDiscordActionGate, i as isWhatsAppGroupJid, l as resolveTelegramAccount, m as resolveSlackBotToken, n as listChannelPlugins, o as createTelegramActionGate, p as resolveSlackAppToken, r as normalizeChannelId$1, s as listEnabledTelegramAccounts, t as getChannelPlugin, u as resolveTelegramToken, v as normalizeDiscordToken } from "./plugins-C4C9637U.js";
10
+ import { a as logoutWeb, i as logWebSelfId, l as readWebSelfId, p as webAuthExists, r as getWebAuthAgeMs, t as resolveWhatsAppAccount } from "./accounts-CI6zQTJj.js";
11
11
  import { t as normalizeChatType } from "./chat-type-C_KiWNAH.js";
12
12
  import { t as parseBooleanValue$1 } from "./boolean-B8-BqKGQ.js";
13
- import { n as resolveCliName, r as isTruthyEnvValue, t as formatCliCommand } from "./command-format-BaxDnULz.js";
14
- import { a as resolveSlackWebClientOptions, c as buildSlackBlocksFallbackText, i as createSlackWebClient, l as parseSlackTarget, o as parseSlackBlocksInput, s as validateSlackBlocksArray, t as sendMessageSlack, u as resolveSlackChannelId } from "./send-DeFniOjh.js";
15
- import { $ as fetchChannelPermissionsDiscord, A as unpinMessageDiscord, B as listScheduledEventsDiscord, C as editMessageDiscord, Ct as resolveTimestampMs, D as pinMessageDiscord, Dt as normalizeChannelSlug, E as listThreadsDiscord, Et as buildChannelKeyCandidates, 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 resolveChannelEntryMatchWithFallback, P as fetchChannelInfoDiscord, Q as stripUndefinedFields, R as kickMemberDiscord, S as deleteMessageDiscord, St as resolveDiscordSystemLocation, T as listPinsDiscord, Tt as applyChannelMatchMeta, U as listGuildEmojisDiscord, V as removeRoleDiscord, W as uploadEmojiDiscord, X as removeChannelPermissionDiscord, Y as moveChannelDiscord, Z as setChannelPermissionDiscord, _ as sendPollDiscord, _t as resolveDiscordShouldRequireMention, a as removeReactionDiscord, at as resolveDiscordChannelId, b as sendWebhookMessageDiscord, bt as formatDiscordReactionEmoji, c as formatDiscordComponentEventText, ct as allowListMatches$1, d as parseDiscordModalCustomId, dt as normalizeDiscordSlug, et as hasAnyGuildPermissionDiscord, f as parseDiscordModalCustomIdForCarbon, ft as resolveDiscordAllowListMatch, g as sendMessageDiscord, gt as resolveDiscordOwnerAllowFrom, h as resolveDiscordModalEntry, ht as resolveDiscordMemberAccessState, i as removeOwnReactionsDiscord, it as parseDiscordTarget, j as addRoleDiscord, k as searchMessagesDiscord, l as parseDiscordComponentCustomId, lt as isDiscordGroupAllowedByPolicy, m as resolveDiscordComponentEntry, mt as resolveDiscordGuildEntry, n as fetchReactionsDiscord, nt as createDiscordClient, o as sendDiscordComponentMessage, ot as listDiscordDirectoryGroupsLive, p as readDiscordComponentSpec, pt as resolveDiscordChannelConfigWithFallback, q as deleteChannelDiscord, r as reactMessageDiscord, rt as createDiscordRestClient, s as createDiscordFormModal, st as listDiscordDirectoryPeersLive, tt as chunkDiscordTextWithMode, u as parseDiscordComponentCustomIdForCarbon, ut as normalizeDiscordAllowList, v as sendStickerDiscord, vt as resolveGroupDmAllow, w as fetchMessageDiscord, wt as fetchDiscord, x as createThreadDiscord, xt as formatDiscordUserTag, y as sendVoiceMessageDiscord, yt as shouldEmitDiscordReactionNotification, z as listGuildChannelsDiscord } from "./send-CiTGOvEc.js";
16
- import { C as getGlobalHookRunner, S as parseInlineDirectives$1, _ as normalizeTargetForProvider, a as normalizeOutboundPayloadsForJson, b as MEDIA_TOKEN_RE, c as applyReplyThreading, d as isRenderablePayload, f as shouldSuppressMessagingToolReplies, g as normalizeChannelTargetInput, h as buildTargetResolverSignature, i as normalizeOutboundPayloads, l as filterMessagingToolDuplicates, m as resolveReplyToMode, o as normalizeReplyPayloadsForDelivery, p as createReplyToModeFilterForChannel, r as formatOutboundPayloadLog, s as applyReplyTagsToPayload, t as deliverOutboundPayloads, u as filterMessagingToolMediaDuplicates, v as throwIfAborted, w as initializeGlobalHookRunner, x as splitMediaFromOutput, y as parseReplyDirectives } from "./deliver-D1ZN6-fl.js";
17
- import { a as logMessageProcessed, c as logWebhookError, d as startDiagnosticHeartbeat, f as stopDiagnosticHeartbeat, i as logLaneEnqueue, l as logWebhookProcessed, m as isDiagnosticsEnabled, o as logMessageQueued, p as emitDiagnosticEvent, r as logLaneDequeue, s as logSessionStateChange, t as diag, u as logWebhookReceived } from "./diagnostic-CI0kRQkt.js";
13
+ import { n as resolveCliName, r as isTruthyEnvValue, t as formatCliCommand } from "./command-format-UKHV-j0K.js";
14
+ import { a as resolveSlackWebClientOptions, c as buildSlackBlocksFallbackText, i as createSlackWebClient, l as parseSlackTarget, o as parseSlackBlocksInput, s as validateSlackBlocksArray, t as sendMessageSlack, u as resolveSlackChannelId } from "./send-CHEOWVc8.js";
15
+ import { $ as fetchChannelPermissionsDiscord, A as unpinMessageDiscord, B as listScheduledEventsDiscord, C as editMessageDiscord, Ct as resolveTimestampMs, D as pinMessageDiscord, Dt as normalizeChannelSlug, E as listThreadsDiscord, Et as buildChannelKeyCandidates, 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 resolveChannelEntryMatchWithFallback, P as fetchChannelInfoDiscord, Q as stripUndefinedFields, R as kickMemberDiscord, S as deleteMessageDiscord, St as resolveDiscordSystemLocation, T as listPinsDiscord, Tt as applyChannelMatchMeta, U as listGuildEmojisDiscord, V as removeRoleDiscord, W as uploadEmojiDiscord, X as removeChannelPermissionDiscord, Y as moveChannelDiscord, Z as setChannelPermissionDiscord, _ as sendPollDiscord, _t as resolveDiscordShouldRequireMention, a as removeReactionDiscord, at as resolveDiscordChannelId, b as sendWebhookMessageDiscord, bt as formatDiscordReactionEmoji, c as formatDiscordComponentEventText, ct as allowListMatches$1, d as parseDiscordModalCustomId, dt as normalizeDiscordSlug, et as hasAnyGuildPermissionDiscord, f as parseDiscordModalCustomIdForCarbon, ft as resolveDiscordAllowListMatch, g as sendMessageDiscord, gt as resolveDiscordOwnerAllowFrom, h as resolveDiscordModalEntry, ht as resolveDiscordMemberAccessState, i as removeOwnReactionsDiscord, it as parseDiscordTarget, j as addRoleDiscord, k as searchMessagesDiscord, l as parseDiscordComponentCustomId, lt as isDiscordGroupAllowedByPolicy, m as resolveDiscordComponentEntry, mt as resolveDiscordGuildEntry, n as fetchReactionsDiscord, nt as createDiscordClient, o as sendDiscordComponentMessage, ot as listDiscordDirectoryGroupsLive, p as readDiscordComponentSpec, pt as resolveDiscordChannelConfigWithFallback, q as deleteChannelDiscord, r as reactMessageDiscord, rt as createDiscordRestClient, s as createDiscordFormModal, st as listDiscordDirectoryPeersLive, tt as chunkDiscordTextWithMode, u as parseDiscordComponentCustomIdForCarbon, ut as normalizeDiscordAllowList, v as sendStickerDiscord, vt as resolveGroupDmAllow, w as fetchMessageDiscord, wt as fetchDiscord, x as createThreadDiscord, xt as formatDiscordUserTag, y as sendVoiceMessageDiscord, yt as shouldEmitDiscordReactionNotification, z as listGuildChannelsDiscord } from "./send-DwKJK3sM.js";
16
+ import { C as getGlobalHookRunner, S as parseInlineDirectives$1, _ as normalizeTargetForProvider, a as normalizeOutboundPayloadsForJson, b as MEDIA_TOKEN_RE, c as applyReplyThreading, d as isRenderablePayload, f as shouldSuppressMessagingToolReplies, g as normalizeChannelTargetInput, h as buildTargetResolverSignature, i as normalizeOutboundPayloads, l as filterMessagingToolDuplicates, m as resolveReplyToMode, o as normalizeReplyPayloadsForDelivery, p as createReplyToModeFilterForChannel, r as formatOutboundPayloadLog, s as applyReplyTagsToPayload, t as deliverOutboundPayloads, u as filterMessagingToolMediaDuplicates, v as throwIfAborted, w as initializeGlobalHookRunner, x as splitMediaFromOutput, y as parseReplyDirectives } from "./deliver-BA7ZN3iM.js";
17
+ import { a as logMessageProcessed, c as logWebhookError, d as startDiagnosticHeartbeat, f as stopDiagnosticHeartbeat, i as logLaneEnqueue, l as logWebhookProcessed, m as isDiagnosticsEnabled, o as logMessageQueued, p as emitDiagnosticEvent, r as logLaneDequeue, s as logSessionStateChange, t as diag, u as logWebhookReceived } from "./diagnostic-C3nsWaw3.js";
18
18
  import { r as getDiagnosticSessionState } from "./diagnostic-session-state-Bxo4UHOL.js";
19
- import { n as resolveSignalAccount, t as listEnabledSignalAccounts } from "./accounts-CWktKM8a.js";
20
- import { $ as isVoiceCompatibleAudio, A as extractTelegramLocation, B as normalizeAllowFromWithStore$1, C as buildTelegramGroupFrom, D as buildTypingThreadParams, E as buildTelegramThreadParams, F as resolveTelegramMediaPlaceholder, G as formatLocationText, H as firstDefined$1, I as resolveTelegramReplyId, J as readChannelAllowFromStore, K as toLocationContext, L as resolveTelegramStreamMode, M as normalizeForwardedContext, N as resolveTelegramForumThreadId, O as describeReplyTarget, P as resolveTelegramGroupAllowFromContext, Q as listPairingChannels, R as resolveTelegramThreadSpec, S as buildSenderName, T as buildTelegramParentPeer, U as isSenderIdAllowed, V as resolveSenderAllowMatch, W as mergeAllowFromSources, X as upsertChannelPairingRequest, Y as removeChannelAllowFromStoreEntry, Z as getPairingAdapter, _ as resolveTelegramFetch, a as reactMessageTelegram, b as buildGroupLabel, c as sendStickerTelegram, d as wasSentByBot, et as parseTelegramTarget, f as isRecoverableTelegramNetworkError, g as wrapFileReferencesInHtml, h as renderTelegramHtmlText, i as editMessageTelegram, j as hasBotMention, k as expandTextLinks, m as markdownToTelegramHtml, n as createForumTopicTelegram, o as sendMessageTelegram, p as markdownToTelegramChunks, q as addChannelAllowFromStoreEntry, r as deleteMessageTelegram, s as sendPollTelegram, t as buildInlineKeyboard, tt as resolveTelegramTargetChatType, u as resolveTelegramVoiceSend, v as splitTelegramCaption, w as buildTelegramGroupPeerId, x as buildSenderLabel, y as withTelegramApiErrorLogging, z as isSenderAllowed$1 } from "./send-B1u-LrcS.js";
21
- import { d as detectMime, f as extensionForMime, g as isGifMedia, h as isAudioFileName, i as getImageMetadata, m as imageMimeFromFormat, s as resizeToJpeg, x as mediaKindFromMime, y as MAX_IMAGE_BYTES } from "./image-ops-CvJzsyvE.js";
22
- import { A as normalizeProviderId, C as buildAllowedModelSet, D as isCliProvider, E as findNormalizedProviderValue, F as resolveSubagentSpawnModelSelection, G as DEFAULT_MODEL, H as OLLAMA_NATIVE_BASE_URL, I as resolveThinkingDefault, J as normalizeSecretInput, K as DEFAULT_PROVIDER, M as resolveConfiguredModelRef, N as resolveDefaultModelForAgent, O as modelKey, P as resolveModelRefFromString, T as buildModelAliasIndex, U as createOllamaStreamFn, W as DEFAULT_CONTEXT_TOKENS, Y as getShellPathFromLoginShell, Z as resolveShellEnvFallbackTimeoutMs, _ as ensureAuthProfileStore, a as resolveEnvApiKey, b as withFileLock, c as resolveAuthProfileOrder, d as markAuthProfileFailure, f as markAuthProfileUsed, g as markAuthProfileGood, h as listProfilesForProvider, i as resolveApiKeyForProvider, k as normalizeModelRef$2, l as getSoonestCooldownExpiry, m as dedupeProfileIds, n as getCustomProviderApiKey, o as resolveModelAuthMode, p as resolveApiKeyForProfile, q as resolveAuthProfileDisplayLabel, r as requireApiKey, t as getApiKeyForModel, u as isProfileInCooldown, v as resolveAuthStorePathForDisplay, w as buildConfiguredAllowlistKeys, y as resolveSymiAgentDir } from "./model-auth-DK43VicI.js";
23
- import { a as saveJsonFile, i as loadJsonFile } from "./github-copilot-token-C_qUP7p5.js";
19
+ import { n as resolveSignalAccount, t as listEnabledSignalAccounts } from "./accounts-ChTFYj8Q.js";
20
+ import { $ as isVoiceCompatibleAudio, A as extractTelegramLocation, B as normalizeAllowFromWithStore$1, C as buildTelegramGroupFrom, D as buildTypingThreadParams, E as buildTelegramThreadParams, F as resolveTelegramMediaPlaceholder, G as formatLocationText, H as firstDefined$1, I as resolveTelegramReplyId, J as readChannelAllowFromStore, K as toLocationContext, L as resolveTelegramStreamMode, M as normalizeForwardedContext, N as resolveTelegramForumThreadId, O as describeReplyTarget, P as resolveTelegramGroupAllowFromContext, Q as listPairingChannels, R as resolveTelegramThreadSpec, S as buildSenderName, T as buildTelegramParentPeer, U as isSenderIdAllowed, V as resolveSenderAllowMatch, W as mergeAllowFromSources, X as upsertChannelPairingRequest, Y as removeChannelAllowFromStoreEntry, Z as getPairingAdapter, _ as resolveTelegramFetch, a as reactMessageTelegram, b as buildGroupLabel, c as sendStickerTelegram, d as wasSentByBot, et as parseTelegramTarget, f as isRecoverableTelegramNetworkError, g as wrapFileReferencesInHtml, h as renderTelegramHtmlText, i as editMessageTelegram, j as hasBotMention, k as expandTextLinks, m as markdownToTelegramHtml, n as createForumTopicTelegram, o as sendMessageTelegram, p as markdownToTelegramChunks, q as addChannelAllowFromStoreEntry, r as deleteMessageTelegram, s as sendPollTelegram, t as buildInlineKeyboard, tt as resolveTelegramTargetChatType, u as resolveTelegramVoiceSend, v as splitTelegramCaption, w as buildTelegramGroupPeerId, x as buildSenderLabel, y as withTelegramApiErrorLogging, z as isSenderAllowed$1 } from "./send-DeEosX8F.js";
21
+ import { d as detectMime, f as extensionForMime, g as isGifMedia, h as isAudioFileName, i as getImageMetadata, m as imageMimeFromFormat, s as resizeToJpeg, x as mediaKindFromMime, y as MAX_IMAGE_BYTES } from "./image-ops-S8-8dAhx.js";
22
+ import { A as normalizeProviderId, C as buildAllowedModelSet, D as isCliProvider, E as findNormalizedProviderValue, F as resolveSubagentSpawnModelSelection, G as DEFAULT_MODEL, H as OLLAMA_NATIVE_BASE_URL, I as resolveThinkingDefault, J as normalizeSecretInput, K as DEFAULT_PROVIDER, M as resolveConfiguredModelRef, N as resolveDefaultModelForAgent, O as modelKey, P as resolveModelRefFromString, T as buildModelAliasIndex, U as createOllamaStreamFn, W as DEFAULT_CONTEXT_TOKENS, Y as getShellPathFromLoginShell, Z as resolveShellEnvFallbackTimeoutMs, _ as ensureAuthProfileStore, a as resolveEnvApiKey, b as withFileLock, c as resolveAuthProfileOrder, d as markAuthProfileFailure, f as markAuthProfileUsed, g as markAuthProfileGood, h as listProfilesForProvider, i as resolveApiKeyForProvider, k as normalizeModelRef$2, l as getSoonestCooldownExpiry, m as dedupeProfileIds, n as getCustomProviderApiKey, o as resolveModelAuthMode, p as resolveApiKeyForProfile, q as resolveAuthProfileDisplayLabel, r as requireApiKey, t as getApiKeyForModel, u as isProfileInCooldown, v as resolveAuthStorePathForDisplay, w as buildConfiguredAllowlistKeys, y as resolveSymiAgentDir } from "./model-auth-CwOuTuXl.js";
23
+ import { a as saveJsonFile, i as loadJsonFile } from "./github-copilot-token-DJqsJ2-r.js";
24
24
  import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-DaNAekda.js";
25
- import { a as isMarkdownCapableMessageChannel, c as resolveGatewayMessageChannel, d as GATEWAY_CLIENT_MODES, f as GATEWAY_CLIENT_NAMES, i as isInternalMessageChannel, l as resolveMessageChannel, n as isDeliverableMessageChannel, o as listDeliverableMessageChannels, r as isGatewayMessageChannel, s as normalizeMessageChannel, t as INTERNAL_MESSAGE_CHANNEL, u as GATEWAY_CLIENT_IDS } from "./message-channel-Dz5lr5b0.js";
26
- import { $ as normalizeDeliveryContext, A as isTransientHttpError, At as DEFAULT_UPLOAD_DIR, Bt as expandToolGroups, C as isContextOverflowError, Ct as resolveGroupSessionKey, D as isRateLimitAssistantError, Dt as registerBrowserRoutes, E as isLikelyContextOverflowError, Et as createBrowserRouteContext, F as resolveSandboxContext, Ft as resolveSandboxConfigForAgent, G as updateLastRoute, Gt as compileGlobPatterns, H as loadSessionStore, Ht as normalizeToolName, I as resolveSandboxRuntimeStatus, It as applyOwnerOnlyToolPolicy, J as isCacheEnabled, Jt as ensureSessionHeader, K as updateSessionStore, Kt as matchesAnyGlobPattern, L as extractDeliveryInfo, Lt as buildPluginToolGroups, M as parseImageSizeError, Mt as getBridgeAuthForPort, N as sanitizeUserFacingText, Nt as ensureBrowserControlAuth, O as isRawApiErrorPayload, Ot as resolveBrowserConfig, P as ensureSandboxWorkspaceForSession, Pt as resolveBrowserControlAuth, Q as mergeDeliveryContext, R as parseSessionThreadInfo, Rt as collectExplicitAllowlist, S as isCompactionFailureError, St as deriveSessionMetaPatch, T as isFailoverErrorMessage, Tt as resolveSessionLockMaxHoldFromTimeout, U as readSessionUpdatedAt, Ut as resolveToolProfilePolicy, V as resolveAndPersistSessionFile, Vt as mergeAlsoAllowPolicy, W as recordSessionMetaFromInbound, Wt as stripPluginOnlyAllowlist, X as deliveryContextFromSession, Xt as resolveBootstrapTotalMaxChars, Y as resolveCacheTtlMs$1, Yt as resolveBootstrapMaxChars, Z as deliveryContextKey, Zt as sanitizeGoogleTurnOrdering, _ as formatRawAssistantErrorForUi, _t as resolveFreshSessionTotalTokens, a as isMessagingToolDuplicateNormalized, at as extractToolCallNames, b as isBillingAssistantError, bt as resolveExplicitAgentSessionKey, c as extractToolCallsFromAssistant, ct as hasInterSessionUserProvenance, d as isAntigravityClaude, dt as evaluateSessionFreshness, et as normalizeSessionDeliveryFields, f as isGoogleModelApi, ft as resolveChannelResetConfig, g as formatBillingErrorMessage, gt as DEFAULT_RESET_TRIGGERS, h as formatAssistantErrorText, ht as resolveThreadFlag, it as countToolResults, j as parseImageDimensionError, jt as resolveExistingPathsWithinRoot, k as isTimeoutErrorMessage, kt as resolveProfile, l as extractToolResultId, lt as normalizeInputProvenance, m as classifyFailoverReason, mt as resolveSessionResetType, n as validateGeminiTurns, nt as archiveSessionTranscripts, o as normalizeTextForComparison, ot as INPUT_PROVENANCE_KIND_VALUES, p as BILLING_ERROR_USER_MESSAGE, pt as resolveSessionResetPolicy, q as updateSessionStoreEntry, qt as buildBootstrapContextFiles, r as pickFallbackThinkingLevel, rt as capArrayByJsonBytes, s as sanitizeSessionMessagesImages, st as applyInputProvenanceToUserMessage, t as validateAnthropicTurns, tt as normalizeAccountId$3, u as downgradeOpenAIReasoningBlocks, ut as resolveSessionKey, v as getApiErrorPayloadFingerprint, vt as canonicalizeMainSessionAlias, w as isFailoverAssistantError, wt as acquireSessionWriteLock, x as isCloudCodeAssistFormatError, xt as resolveMainSessionKey, y as isAuthAssistantError, z as appendAssistantMessageToSessionTranscript, zt as expandPolicyWithPluginGroups } from "./pi-embedded-helpers-ag2bosuj.js";
27
- import { A as VERSION, C as getConfigValueAtPath, D as isSafeExecutableValue, E as unsetConfigValueAtPath, O as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, S as unsetConfigOverride, T as setConfigValueAtPath, _ as parseDurationMs, a as writeConfigFile, b as resetConfigOverrides, c as TELEGRAM_COMMAND_NAME_PATTERN, f as isInboundPathAllowed, g as normalizeScpRemoteHost, h as resolveIMessageRemoteAttachmentRoots, i as resolveConfigSnapshotHash, k as resolveAgentMaxConcurrent, l as normalizeTelegramCommandName, m as resolveIMessageAttachmentRoots, n as loadConfig, o as validateConfigObjectWithPlugins, r as readConfigFileSnapshot, u as resolveTelegramCustomCommands, v as validateJsonSchemaValue, w as parseConfigPath, x as setConfigOverride, y as getConfigOverrides } from "./config-DRbjHIwD.js";
28
- import { a as applyTestPluginDefaults, c as resolveMemorySlotDecision, d as isDangerousHostEnvVarName, i as safeStatSync, n as discoverSymiPlugins, o as normalizePluginsConfig, r as isPathInside, s as resolveEnableState, t as loadPluginManifestRegistry, u as isPathInsideWithRealpath } from "./manifest-registry-D0IQ3WuX.js";
29
- import { C as rawDataToString, O as DEFAULT_AI_SNAPSHOT_MAX_CHARS, T as isSecureWebSocketUrl, x as ensureChromeExtensionRelayServer } from "./chrome-EyvdASWt.js";
30
- 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-BFekKL7i.js";
25
+ import { a as isMarkdownCapableMessageChannel, c as resolveGatewayMessageChannel, d as GATEWAY_CLIENT_MODES, f as GATEWAY_CLIENT_NAMES, i as isInternalMessageChannel, l as resolveMessageChannel, n as isDeliverableMessageChannel, o as listDeliverableMessageChannels, r as isGatewayMessageChannel, s as normalizeMessageChannel, t as INTERNAL_MESSAGE_CHANNEL, u as GATEWAY_CLIENT_IDS } from "./message-channel-DbsRltF2.js";
26
+ import { $ as normalizeDeliveryContext, A as isTransientHttpError, At as DEFAULT_UPLOAD_DIR, Bt as expandToolGroups, C as isContextOverflowError, Ct as resolveGroupSessionKey, D as isRateLimitAssistantError, Dt as registerBrowserRoutes, E as isLikelyContextOverflowError, Et as createBrowserRouteContext, F as resolveSandboxContext, Ft as resolveSandboxConfigForAgent, G as updateLastRoute, Gt as compileGlobPatterns, H as loadSessionStore, Ht as normalizeToolName, I as resolveSandboxRuntimeStatus, It as applyOwnerOnlyToolPolicy, J as isCacheEnabled, Jt as ensureSessionHeader, K as updateSessionStore, Kt as matchesAnyGlobPattern, L as extractDeliveryInfo, Lt as buildPluginToolGroups, M as parseImageSizeError, Mt as getBridgeAuthForPort, N as sanitizeUserFacingText, Nt as ensureBrowserControlAuth, O as isRawApiErrorPayload, Ot as resolveBrowserConfig, P as ensureSandboxWorkspaceForSession, Pt as resolveBrowserControlAuth, Q as mergeDeliveryContext, R as parseSessionThreadInfo, Rt as collectExplicitAllowlist, S as isCompactionFailureError, St as deriveSessionMetaPatch, T as isFailoverErrorMessage, Tt as resolveSessionLockMaxHoldFromTimeout, U as readSessionUpdatedAt, Ut as resolveToolProfilePolicy, V as resolveAndPersistSessionFile, Vt as mergeAlsoAllowPolicy, W as recordSessionMetaFromInbound, Wt as stripPluginOnlyAllowlist, X as deliveryContextFromSession, Xt as resolveBootstrapTotalMaxChars, Y as resolveCacheTtlMs$1, Yt as resolveBootstrapMaxChars, Z as deliveryContextKey, Zt as sanitizeGoogleTurnOrdering, _ as formatRawAssistantErrorForUi, _t as resolveFreshSessionTotalTokens, a as isMessagingToolDuplicateNormalized, at as extractToolCallNames, b as isBillingAssistantError, bt as resolveExplicitAgentSessionKey, c as extractToolCallsFromAssistant, ct as hasInterSessionUserProvenance, d as isAntigravityClaude, dt as evaluateSessionFreshness, et as normalizeSessionDeliveryFields, f as isGoogleModelApi, ft as resolveChannelResetConfig, g as formatBillingErrorMessage, gt as DEFAULT_RESET_TRIGGERS, h as formatAssistantErrorText, ht as resolveThreadFlag, it as countToolResults, j as parseImageDimensionError, jt as resolveExistingPathsWithinRoot, k as isTimeoutErrorMessage, kt as resolveProfile, l as extractToolResultId, lt as normalizeInputProvenance, m as classifyFailoverReason, mt as resolveSessionResetType, n as validateGeminiTurns, nt as archiveSessionTranscripts, o as normalizeTextForComparison, ot as INPUT_PROVENANCE_KIND_VALUES, p as BILLING_ERROR_USER_MESSAGE, pt as resolveSessionResetPolicy, q as updateSessionStoreEntry, qt as buildBootstrapContextFiles, r as pickFallbackThinkingLevel, rt as capArrayByJsonBytes, s as sanitizeSessionMessagesImages, st as applyInputProvenanceToUserMessage, t as validateAnthropicTurns, tt as normalizeAccountId$3, u as downgradeOpenAIReasoningBlocks, ut as resolveSessionKey, v as getApiErrorPayloadFingerprint, vt as canonicalizeMainSessionAlias, w as isFailoverAssistantError, wt as acquireSessionWriteLock, x as isCloudCodeAssistFormatError, xt as resolveMainSessionKey, y as isAuthAssistantError, z as appendAssistantMessageToSessionTranscript, zt as expandPolicyWithPluginGroups } from "./pi-embedded-helpers-DEEaCvEp.js";
27
+ import { A as VERSION, C as getConfigValueAtPath, D as isSafeExecutableValue, E as unsetConfigValueAtPath, O as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, S as unsetConfigOverride, T as setConfigValueAtPath, _ as parseDurationMs, a as writeConfigFile, b as resetConfigOverrides, c as TELEGRAM_COMMAND_NAME_PATTERN, f as isInboundPathAllowed, g as normalizeScpRemoteHost, h as resolveIMessageRemoteAttachmentRoots, i as resolveConfigSnapshotHash, k as resolveAgentMaxConcurrent, l as normalizeTelegramCommandName, m as resolveIMessageAttachmentRoots, n as loadConfig, o as validateConfigObjectWithPlugins, r as readConfigFileSnapshot, u as resolveTelegramCustomCommands, v as validateJsonSchemaValue, w as parseConfigPath, x as setConfigOverride, y as getConfigOverrides } from "./config-eEaJddXj.js";
28
+ import { a as applyTestPluginDefaults, c as resolveMemorySlotDecision, d as isDangerousHostEnvVarName, i as safeStatSync, n as discoverSymiPlugins, o as normalizePluginsConfig, r as isPathInside, s as resolveEnableState, t as loadPluginManifestRegistry, u as isPathInsideWithRealpath } from "./manifest-registry-CneMHk0N.js";
29
+ import { C as rawDataToString, O as DEFAULT_AI_SNAPSHOT_MAX_CHARS, T as isSecureWebSocketUrl, x as ensureChromeExtensionRelayServer } from "./chrome-CxSAp8x3.js";
30
+ 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-o5WVqM4V.js";
31
31
  import { n as formatErrorMessage, r as formatUncaughtError } from "./errors-BoQgnc8X.js";
32
32
  import { i as isBlockedHostnameOrIp, o as normalizeHostname, t as SsrFBlockedError } from "./ssrf-BTMDZjHT.js";
33
- import { n as getMediaDir, r as saveMediaBuffer } from "./store-C0wvOkae.js";
34
- import { _ as normalizeAtHashSlug, a as normalizeReasoningLevel, b as normalizeStringEntriesLower, c as normalizeVerboseLevel, d as getChannelDock, f as listChannelDocks, g as resolveChannelGroupToolsPolicy, h as resolveChannelGroupRequireMention, i as normalizeElevatedLevel, l as resolveResponseUsageMode, m as resolveChannelGroupPolicy, n as formatXHighModelHint, o as normalizeThinkLevel, p as normalizeSignalMessagingTarget, s as normalizeUsageDisplay, t as formatThinkingLevels, u as supportsXHighThinking, v as normalizeHyphenSlug, y as normalizeStringEntries } from "./thinking-CdlENGRW.js";
33
+ import { n as getMediaDir, r as saveMediaBuffer } from "./store-vVE6N2mH.js";
34
+ import { _ as normalizeAtHashSlug, a as normalizeReasoningLevel, b as normalizeStringEntriesLower, c as normalizeVerboseLevel, d as getChannelDock, f as listChannelDocks, g as resolveChannelGroupToolsPolicy, h as resolveChannelGroupRequireMention, i as normalizeElevatedLevel, l as resolveResponseUsageMode, m as resolveChannelGroupPolicy, n as formatXHighModelHint, o as normalizeThinkLevel, p as normalizeSignalMessagingTarget, s as normalizeUsageDisplay, t as formatThinkingLevels, u as supportsXHighThinking, v as normalizeHyphenSlug, y as normalizeStringEntries } from "./thinking-Ni0HF-w6.js";
35
35
  import { n as resolveConversationLabel } from "./conversation-label-DXUkoKcB.js";
36
- import { t as resolveIMessageAccount } from "./accounts-qtxJ-6em.js";
37
- import { i as resolveSessionTranscriptPath, n as resolveSessionFilePath, o as resolveSessionTranscriptsDirForAgent, r as resolveSessionFilePathOptions, s as resolveStorePath, t as resolveDefaultSessionStorePath } from "./paths-DLyHUt31.js";
36
+ import { t as resolveIMessageAccount } from "./accounts-CJR8j_Kq.js";
37
+ import { i as resolveSessionTranscriptPath, n as resolveSessionFilePath, o as resolveSessionTranscriptsDirForAgent, r as resolveSessionFilePathOptions, s as resolveStorePath, t as resolveDefaultSessionStorePath } from "./paths-Cb87-LzP.js";
38
38
  import { t as emitSessionTranscriptUpdate } from "./transcript-events-DDYvbmRV.js";
39
- import { i as resolveImageSanitizationLimits, n as sanitizeImageBlocks, r as sanitizeToolResultImages } from "./tool-images-DXB7tqWi.js";
40
- import { S as ensureSymiModelsJson, _ as stripMinimaxToolCallXml, a as decodeDataUrl, b as stripReasoningTagsFromText, c as extractAssistantText$1, d as extractThinkingFromTaggedText, f as formatReasoningMessage, g as stripDowngradedToolCallText, h as promoteThinkingTagsToBlocks, i as coerceImageModelConfig, l as extractAssistantThinking, m as isAssistantMessage, o as resolveProviderVisionModelFromConfig, p as inferToolMetaFromArgs, r as coerceImageAssistantText, s as minimaxUnderstandImage, u as extractThinkingFromTaggedStream, v as stripThinkingTagsFromText, x as extractTextFromChatContent, y as resolveToolDisplay } from "./image-Cp3JDEBB.js";
41
- import { a as resolveAgentIdentity, i as resolveAckReaction, o as resolveEffectiveMessagesConfig, r as resolveResponsePrefixTemplate, s as resolveHumanDelayConfig, t as createReplyPrefixOptions } from "./reply-prefix-XlyuyChD.js";
42
- import { i as resolveMemorySearchConfig, n as probeOllamaEmbeddingModels, r as resolveOllamaBaseUrl } from "./manager-D_LwXbc6.js";
43
- import { d as listMemoryFiles, f as normalizeExtraMemoryPaths, g as runTasksWithConcurrency } from "./sqlite-DRbx2dhW.js";
44
- import { n as retryAsync } from "./retry-Cly39XZB.js";
45
- import { a as createActionGate, c as jsonResult, d as readReactionParams, f as readStringArrayParam, l as parseAvailableTags, m as readStringParam, n as missingTargetError, o as imageResult, p as readStringOrNumberParam, r as unknownTargetError, s as imageResultFromFile, t as ambiguousTargetError, u as readNumberParam } from "./target-errors-Be1SwYlW.js";
46
- import { a as chunkText, c as resolveChunkMode, d as isSafeFenceBreak, f as parseFenceSpans, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit, o as chunkTextWithMode, r as chunkMarkdownText, t as chunkByNewline, u as findFenceSpanAt } from "./chunk-BW5f05BR.js";
47
- import { n as resolveMarkdownTableMode } from "./markdown-tables-iMQQZu4Q.js";
39
+ import { i as resolveImageSanitizationLimits, n as sanitizeImageBlocks, r as sanitizeToolResultImages } from "./tool-images-DBCfXdli.js";
40
+ import { S as ensureSymiModelsJson, _ as stripMinimaxToolCallXml, a as decodeDataUrl, b as stripReasoningTagsFromText, c as extractAssistantText$1, d as extractThinkingFromTaggedText, f as formatReasoningMessage, g as stripDowngradedToolCallText, h as promoteThinkingTagsToBlocks, i as coerceImageModelConfig, l as extractAssistantThinking, m as isAssistantMessage, o as resolveProviderVisionModelFromConfig, p as inferToolMetaFromArgs, r as coerceImageAssistantText, s as minimaxUnderstandImage, u as extractThinkingFromTaggedStream, v as stripThinkingTagsFromText, x as extractTextFromChatContent, y as resolveToolDisplay } from "./image-BGmVDkkw.js";
41
+ import { a as resolveAgentIdentity, i as resolveAckReaction, o as resolveEffectiveMessagesConfig, r as resolveResponsePrefixTemplate, s as resolveHumanDelayConfig, t as createReplyPrefixOptions } from "./reply-prefix-CtL0omgM.js";
42
+ import { i as resolveMemorySearchConfig, n as probeOllamaEmbeddingModels, r as resolveOllamaBaseUrl } from "./manager-BoLr3xR_.js";
43
+ import { d as listMemoryFiles, f as normalizeExtraMemoryPaths, g as runTasksWithConcurrency } from "./sqlite-6H6Zw1cs.js";
44
+ import { n as retryAsync } from "./retry-dGG-MbxL.js";
45
+ import { a as createActionGate, c as jsonResult, d as readReactionParams, f as readStringArrayParam, l as parseAvailableTags, m as readStringParam, n as missingTargetError, o as imageResult, p as readStringOrNumberParam, r as unknownTargetError, s as imageResultFromFile, t as ambiguousTargetError, u as readNumberParam } from "./target-errors-DyItGyW9.js";
46
+ import { a as chunkText, c as resolveChunkMode, d as isSafeFenceBreak, f as parseFenceSpans, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit, o as chunkTextWithMode, r as chunkMarkdownText, t as chunkByNewline, u as findFenceSpanAt } from "./chunk-ClbN9Pqy.js";
47
+ import { n as resolveMarkdownTableMode } from "./markdown-tables-DSHvnTLx.js";
48
48
  import { n as fetchWithTimeout, t as bindAbortRelay } from "./fetch-timeout-DL3f_O53.js";
49
- import { a as readResponseWithLimit, i as fetchRemoteMedia, n as getDefaultMediaLocalRoots, o as fetchWithSsrFGuard, t as getAgentScopedMediaLocalRoots } from "./local-roots-DMwIh5cS.js";
50
- import { a as loadWebMedia, i as getDefaultLocalRoots } from "./ir-DccrnjsE.js";
51
- import { _ as resolveNativeCommandsEnabled, a as listChatCommandsForConfig, c as normalizeCommandBody, d as resolveCommandArgMenu, f as serializeCommandArgs, g as isRestartEnabled, h as isNativeCommandsExplicitlyDisabled, i as listChatCommands, l as parseCommandArgs, m as isCommandFlagEnabled, o as listNativeCommandSpecs, p as shouldHandleTextCommands, r as findCommandByNativeName, s as listNativeCommandSpecsForConfig, t as buildCommandTextFromArgs, u as resolveCommandArgChoices, v as resolveNativeSkillsEnabled } from "./commands-registry-D7CTCQPm.js";
52
- import { c as getSkillsSnapshotVersion, d as createAsyncLock, f as readJsonFile, i as resolveSkillCommandInvocation, l as pruneExpiredPending, n as listSkillCommandsForAgents, o as getRemoteSkillEligibility, p as writeJsonAtomic, r as listSkillCommandsForWorkspace, s as ensureSkillsWatcher, t as listReservedChatSlashCommandNames, u as resolvePairingPaths } from "./skill-commands-BJMb_psG.js";
49
+ import { a as readResponseWithLimit, i as fetchRemoteMedia, n as getDefaultMediaLocalRoots, o as fetchWithSsrFGuard, t as getAgentScopedMediaLocalRoots } from "./local-roots-C7OCYACU.js";
50
+ import { a as loadWebMedia, i as getDefaultLocalRoots } from "./ir-CbFUkv_T.js";
51
+ import { _ as resolveNativeCommandsEnabled, a as listChatCommandsForConfig, c as normalizeCommandBody, d as resolveCommandArgMenu, f as serializeCommandArgs, g as isRestartEnabled, h as isNativeCommandsExplicitlyDisabled, i as listChatCommands, l as parseCommandArgs, m as isCommandFlagEnabled, o as listNativeCommandSpecs, p as shouldHandleTextCommands, r as findCommandByNativeName, s as listNativeCommandSpecsForConfig, t as buildCommandTextFromArgs, u as resolveCommandArgChoices, v as resolveNativeSkillsEnabled } from "./commands-registry-VSmULp-g.js";
52
+ import { c as getSkillsSnapshotVersion, d as createAsyncLock, f as readJsonFile, i as resolveSkillCommandInvocation, l as pruneExpiredPending, n as listSkillCommandsForAgents, o as getRemoteSkillEligibility, p as writeJsonAtomic, r as listSkillCommandsForWorkspace, s as ensureSkillsWatcher, t as listReservedChatSlashCommandNames, u as resolvePairingPaths } from "./skill-commands-D610IKhm.js";
53
53
  import { r as normalizeInboundTextNewlines, t as finalizeInboundContext } from "./inbound-context-BlHX0H3E.js";
54
- import { _ as resolveMediaUnderstandingScope, a as resolveMediaAttachmentLocalRoots, c as loadModelCatalog, d as resolveAttachmentKind, f as buildRandomTempFilePath, g as normalizeMediaUnderstandingChatType, h as resolveTimeoutMs$1, i as resolveAutoImageModel, l as modelSupportsVision, m as resolveConcurrency, n as createMediaAttachmentCache, o as runCapability, p as registerUnhandledRejectionHandler, r as normalizeMediaAttachments, s as findModelInCatalog, t as buildProviderRegistry, v as CLI_OUTPUT_MAX_BUFFER, y as applyTemplate } from "./runner-D0QUGA_X.js";
54
+ import { _ as resolveMediaUnderstandingScope, a as resolveMediaAttachmentLocalRoots, c as loadModelCatalog, d as resolveAttachmentKind, f as buildRandomTempFilePath, g as normalizeMediaUnderstandingChatType, h as resolveTimeoutMs$1, i as resolveAutoImageModel, l as modelSupportsVision, m as resolveConcurrency, n as createMediaAttachmentCache, o as runCapability, p as registerUnhandledRejectionHandler, r as normalizeMediaAttachments, s as findModelInCatalog, t as buildProviderRegistry, v as CLI_OUTPUT_MAX_BUFFER, y as applyTemplate } from "./runner-B_KP4voe.js";
55
55
  import { n as wrapFetchWithAbortSignal, t as resolveFetch } from "./fetch-Bso4i15F.js";
56
56
  import { n as recordCommandPoll, r as resetCommandPollCount } from "./command-poll-backoff-Bup9wS1y.js";
57
- import { n as recordChannelActivity, r as createDiscordRetryRunner, t as getChannelActivity } from "./channel-activity-CsM_hJ_s.js";
57
+ import { n as recordChannelActivity, r as createDiscordRetryRunner, t as getChannelActivity } from "./channel-activity-C9-gaquj.js";
58
58
  import { n as normalizePollInput } from "./polls-CCuCaqgv.js";
59
- import { t as convertMarkdownTables } from "./tables-DuZspiBu.js";
60
- import { a as resolveSignalRpcContext, c as streamSignalEvents, n as sendReadReceiptSignal, o as signalCheck, r as sendTypingSignal, s as signalRpcRequest, t as sendMessageSignal } from "./send-DW96zgDL.js";
61
- import { a as formatIMessageChatTarget, c as parseIMessageTarget, i as DEFAULT_IMESSAGE_PROBE_TIMEOUT_MS, o as isAllowedIMessageSender, r as createIMessageRpcClient, s as normalizeIMessageHandle, t as sendMessageIMessage } from "./send-WyRqb4WD.js";
62
- import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-CZ-1eqw0.js";
59
+ import { t as convertMarkdownTables } from "./tables-BIWsCKXJ.js";
60
+ import { a as resolveSignalRpcContext, c as streamSignalEvents, n as sendReadReceiptSignal, o as signalCheck, r as sendTypingSignal, s as signalRpcRequest, t as sendMessageSignal } from "./send-zSarozV2.js";
61
+ import { a as formatIMessageChatTarget, c as parseIMessageTarget, i as DEFAULT_IMESSAGE_PROBE_TIMEOUT_MS, o as isAllowedIMessageSender, r as createIMessageRpcClient, s as normalizeIMessageHandle, t as sendMessageIMessage } from "./send-DbcLJb0P.js";
62
+ import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-BVikmvWO.js";
63
63
  import { t as makeProxyFetch } from "./proxy-CBJ1upuz.js";
64
- import { a as createReplyReferencePlanner, i as resolveSlackThreadTs, n as deliverReplies$3, t as createSlackReplyDeliveryPlan } from "./replies-BIX_isV7.js";
65
- import { t as getActiveWebListener } from "./active-listener-C9r8ZB9m.js";
64
+ import { a as createReplyReferencePlanner, i as resolveSlackThreadTs, n as deliverReplies$3, t as createSlackReplyDeliveryPlan } from "./replies-DpPvWiGF.js";
65
+ import { t as getActiveWebListener } from "./active-listener-D6sXIjAg.js";
66
66
  import { createRequire } from "node:module";
67
- import * as fs$2 from "node:fs/promises";
67
+ import * as fs$1 from "node:fs/promises";
68
68
  import fs from "node:fs/promises";
69
69
  import os, { homedir } from "node:os";
70
70
  import * as path$1 from "node:path";
71
71
  import path from "node:path";
72
- import fs$1, { existsSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, statSync, unlinkSync, writeFileSync } from "node:fs";
72
+ import fsSync, { existsSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, statSync, unlinkSync, writeFileSync } from "node:fs";
73
73
  import JSON5 from "json5";
74
74
  import { execFile, execFileSync, spawn, spawnSync } from "node:child_process";
75
75
  import { inspect, promisify } from "node:util";
@@ -3144,7 +3144,7 @@ async function resolveSymiDocsPath(params) {
3144
3144
  const workspaceDir = params.workspaceDir?.trim();
3145
3145
  if (workspaceDir) {
3146
3146
  const workspaceDocs = path.join(workspaceDir, "docs");
3147
- if (fs$1.existsSync(workspaceDocs)) return workspaceDocs;
3147
+ if (fsSync.existsSync(workspaceDocs)) return workspaceDocs;
3148
3148
  }
3149
3149
  const packageRoot = await resolveSymiPackageRoot({
3150
3150
  cwd: params.cwd,
@@ -3153,7 +3153,7 @@ async function resolveSymiDocsPath(params) {
3153
3153
  });
3154
3154
  if (!packageRoot) return null;
3155
3155
  const packageDocs = path.join(packageRoot, "docs");
3156
- return fs$1.existsSync(packageDocs) ? packageDocs : null;
3156
+ return fsSync.existsSync(packageDocs) ? packageDocs : null;
3157
3157
  }
3158
3158
 
3159
3159
  //#endregion
@@ -3462,7 +3462,7 @@ async function getMemorySearchManager(params) {
3462
3462
  if (cached) return { manager: cached };
3463
3463
  }
3464
3464
  try {
3465
- const { QmdMemoryManager } = await import("./qmd-manager-QHUP-_em.js");
3465
+ const { QmdMemoryManager } = await import("./qmd-manager-DdZh9PHs.js");
3466
3466
  const primary = await QmdMemoryManager.create({
3467
3467
  cfg: params.cfg,
3468
3468
  agentId: params.agentId,
@@ -3474,7 +3474,7 @@ async function getMemorySearchManager(params) {
3474
3474
  const wrapper = new FallbackMemoryManager({
3475
3475
  primary,
3476
3476
  fallbackFactory: async () => {
3477
- const { MemoryIndexManager } = await import("./manager-D_LwXbc6.js").then((n) => n.t);
3477
+ const { MemoryIndexManager } = await import("./manager-BoLr3xR_.js").then((n) => n.t);
3478
3478
  return await MemoryIndexManager.get(params);
3479
3479
  }
3480
3480
  }, () => QMD_MANAGER_CACHE.delete(cacheKey));
@@ -3487,7 +3487,7 @@ async function getMemorySearchManager(params) {
3487
3487
  }
3488
3488
  }
3489
3489
  try {
3490
- const { MemoryIndexManager } = await import("./manager-D_LwXbc6.js").then((n) => n.t);
3490
+ const { MemoryIndexManager } = await import("./manager-BoLr3xR_.js").then((n) => n.t);
3491
3491
  return { manager: await MemoryIndexManager.get(params) };
3492
3492
  } catch (err) {
3493
3493
  return {
@@ -4175,7 +4175,7 @@ function resolveDefaultIdentityPath() {
4175
4175
  return path.join(resolveStateDir(), "identity", "device.json");
4176
4176
  }
4177
4177
  function ensureDir$2(filePath) {
4178
- fs$1.mkdirSync(path.dirname(filePath), { recursive: true });
4178
+ fsSync.mkdirSync(path.dirname(filePath), { recursive: true });
4179
4179
  }
4180
4180
  const ED25519_SPKI_PREFIX = Buffer.from("302a300506032b6570032100", "hex");
4181
4181
  function base64UrlEncode(buf) {
@@ -4211,8 +4211,8 @@ function generateIdentity() {
4211
4211
  }
4212
4212
  function loadOrCreateDeviceIdentity(filePath = resolveDefaultIdentityPath()) {
4213
4213
  try {
4214
- if (fs$1.existsSync(filePath)) {
4215
- const raw = fs$1.readFileSync(filePath, "utf8");
4214
+ if (fsSync.existsSync(filePath)) {
4215
+ const raw = fsSync.readFileSync(filePath, "utf8");
4216
4216
  const parsed = JSON.parse(raw);
4217
4217
  if (parsed?.version === 1 && typeof parsed.deviceId === "string" && typeof parsed.publicKeyPem === "string" && typeof parsed.privateKeyPem === "string") {
4218
4218
  const derivedId = fingerprintPublicKey(parsed.publicKeyPem);
@@ -4221,9 +4221,9 @@ function loadOrCreateDeviceIdentity(filePath = resolveDefaultIdentityPath()) {
4221
4221
  ...parsed,
4222
4222
  deviceId: derivedId
4223
4223
  };
4224
- fs$1.writeFileSync(filePath, `${JSON.stringify(updated, null, 2)}\n`, { mode: 384 });
4224
+ fsSync.writeFileSync(filePath, `${JSON.stringify(updated, null, 2)}\n`, { mode: 384 });
4225
4225
  try {
4226
- fs$1.chmodSync(filePath, 384);
4226
+ fsSync.chmodSync(filePath, 384);
4227
4227
  } catch {}
4228
4228
  return {
4229
4229
  deviceId: derivedId,
@@ -4248,9 +4248,9 @@ function loadOrCreateDeviceIdentity(filePath = resolveDefaultIdentityPath()) {
4248
4248
  privateKeyPem: identity.privateKeyPem,
4249
4249
  createdAtMs: Date.now()
4250
4250
  };
4251
- fs$1.writeFileSync(filePath, `${JSON.stringify(stored, null, 2)}\n`, { mode: 384 });
4251
+ fsSync.writeFileSync(filePath, `${JSON.stringify(stored, null, 2)}\n`, { mode: 384 });
4252
4252
  try {
4253
- fs$1.chmodSync(filePath, 384);
4253
+ fsSync.chmodSync(filePath, 384);
4254
4254
  } catch {}
4255
4255
  return identity;
4256
4256
  }
@@ -4400,8 +4400,8 @@ function resolveDeviceAuthPath(env = process.env) {
4400
4400
  }
4401
4401
  function readStore(filePath) {
4402
4402
  try {
4403
- if (!fs$1.existsSync(filePath)) return null;
4404
- const raw = fs$1.readFileSync(filePath, "utf8");
4403
+ if (!fsSync.existsSync(filePath)) return null;
4404
+ const raw = fsSync.readFileSync(filePath, "utf8");
4405
4405
  const parsed = JSON.parse(raw);
4406
4406
  if (parsed?.version !== 1 || typeof parsed.deviceId !== "string") return null;
4407
4407
  if (!parsed.tokens || typeof parsed.tokens !== "object") return null;
@@ -4411,10 +4411,10 @@ function readStore(filePath) {
4411
4411
  }
4412
4412
  }
4413
4413
  function writeStore(filePath, store) {
4414
- fs$1.mkdirSync(path.dirname(filePath), { recursive: true });
4415
- fs$1.writeFileSync(filePath, `${JSON.stringify(store, null, 2)}\n`, { mode: 384 });
4414
+ fsSync.mkdirSync(path.dirname(filePath), { recursive: true });
4415
+ fsSync.writeFileSync(filePath, `${JSON.stringify(store, null, 2)}\n`, { mode: 384 });
4416
4416
  try {
4417
- fs$1.chmodSync(filePath, 384);
4417
+ fsSync.chmodSync(filePath, 384);
4418
4418
  } catch {}
4419
4419
  }
4420
4420
  function loadDeviceAuthToken(params) {
@@ -7201,7 +7201,7 @@ async function routeReply(params) {
7201
7201
  const resolvedReplyToId = replyToId ?? (channelId === "slack" && threadId != null && threadId !== "" ? String(threadId) : void 0);
7202
7202
  const resolvedThreadId = channelId === "slack" ? null : threadId ?? null;
7203
7203
  try {
7204
- const { deliverOutboundPayloads } = await import("./deliver-D1ZN6-fl.js").then((n) => n.n);
7204
+ const { deliverOutboundPayloads } = await import("./deliver-BA7ZN3iM.js").then((n) => n.n);
7205
7205
  return {
7206
7206
  ok: true,
7207
7207
  messageId: (await deliverOutboundPayloads({
@@ -7597,7 +7597,7 @@ function normalizeSessionKey(value) {
7597
7597
  }
7598
7598
  function readSessionStore(storePath) {
7599
7599
  try {
7600
- const raw = fs$1.readFileSync(storePath, "utf-8");
7600
+ const raw = fsSync.readFileSync(storePath, "utf-8");
7601
7601
  const parsed = JSON5.parse(raw);
7602
7602
  if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) return parsed;
7603
7603
  } catch {}
@@ -12656,7 +12656,7 @@ async function createModelSelectionState(params) {
12656
12656
  }
12657
12657
  }
12658
12658
  if (sessionEntry && sessionStore && sessionKey && sessionEntry.authProfileOverride) {
12659
- const { ensureAuthProfileStore } = await import("./model-auth-DK43VicI.js").then((n) => n.s);
12659
+ const { ensureAuthProfileStore } = await import("./model-auth-CwOuTuXl.js").then((n) => n.s);
12660
12660
  const profile = ensureAuthProfileStore(void 0, { allowKeychainPrompt: false }).profiles[sessionEntry.authProfileOverride];
12661
12661
  const providerKey = normalizeProviderId(provider);
12662
12662
  if (!profile || normalizeProviderId(profile.provider) !== providerKey) await clearSessionAuthProfileOverride({
@@ -15029,8 +15029,8 @@ const DEFAULT_SAFE_BINS = [
15029
15029
  ];
15030
15030
  function isExecutableFile(filePath) {
15031
15031
  try {
15032
- if (!fs$1.statSync(filePath).isFile()) return false;
15033
- if (process.platform !== "win32") fs$1.accessSync(filePath, fs$1.constants.X_OK);
15032
+ if (!fsSync.statSync(filePath).isFile()) return false;
15033
+ if (process.platform !== "win32") fsSync.accessSync(filePath, fsSync.constants.X_OK);
15034
15034
  return true;
15035
15035
  } catch {
15036
15036
  return false;
@@ -15068,7 +15068,7 @@ function normalizeMatchTarget(value) {
15068
15068
  }
15069
15069
  function tryRealpath(value) {
15070
15070
  try {
15071
- return fs$1.realpathSync(value);
15071
+ return fsSync.realpathSync(value);
15072
15072
  } catch {
15073
15073
  return null;
15074
15074
  }
@@ -16300,7 +16300,7 @@ function mergeLegacyAgent(current, legacy) {
16300
16300
  }
16301
16301
  function ensureDir$1(filePath) {
16302
16302
  const dir = path.dirname(filePath);
16303
- fs$1.mkdirSync(dir, { recursive: true });
16303
+ fsSync.mkdirSync(dir, { recursive: true });
16304
16304
  }
16305
16305
  function coerceAllowlistEntries(allowlist) {
16306
16306
  if (!Array.isArray(allowlist) || allowlist.length === 0) return Array.isArray(allowlist) ? allowlist : void 0;
@@ -16370,11 +16370,11 @@ function generateToken() {
16370
16370
  function loadExecApprovals() {
16371
16371
  const filePath = resolveExecApprovalsPath();
16372
16372
  try {
16373
- if (!fs$1.existsSync(filePath)) return normalizeExecApprovals({
16373
+ if (!fsSync.existsSync(filePath)) return normalizeExecApprovals({
16374
16374
  version: 1,
16375
16375
  agents: {}
16376
16376
  });
16377
- const raw = fs$1.readFileSync(filePath, "utf8");
16377
+ const raw = fsSync.readFileSync(filePath, "utf8");
16378
16378
  const parsed = JSON.parse(raw);
16379
16379
  if (parsed?.version !== 1) return normalizeExecApprovals({
16380
16380
  version: 1,
@@ -16391,9 +16391,9 @@ function loadExecApprovals() {
16391
16391
  function saveExecApprovals(file) {
16392
16392
  const filePath = resolveExecApprovalsPath();
16393
16393
  ensureDir$1(filePath);
16394
- fs$1.writeFileSync(filePath, `${JSON.stringify(file, null, 2)}\n`, { mode: 384 });
16394
+ fsSync.writeFileSync(filePath, `${JSON.stringify(file, null, 2)}\n`, { mode: 384 });
16395
16395
  try {
16396
- fs$1.chmodSync(filePath, 384);
16396
+ fsSync.chmodSync(filePath, 384);
16397
16397
  } catch {}
16398
16398
  }
16399
16399
  function ensureExecApprovals() {
@@ -16714,7 +16714,7 @@ function resolvePowerShellPath() {
16714
16714
  const systemRoot = process.env.SystemRoot || process.env.WINDIR;
16715
16715
  if (systemRoot) {
16716
16716
  const candidate = path.join(systemRoot, "System32", "WindowsPowerShell", "v1.0", "powershell.exe");
16717
- if (fs$1.existsSync(candidate)) return candidate;
16717
+ if (fsSync.existsSync(candidate)) return candidate;
16718
16718
  }
16719
16719
  return "powershell.exe";
16720
16720
  }
@@ -16752,7 +16752,7 @@ function resolveShellFromPath(name) {
16752
16752
  for (const entry of entries) {
16753
16753
  const candidate = path.join(entry, name);
16754
16754
  try {
16755
- fs$1.accessSync(candidate, fs$1.constants.X_OK);
16755
+ fsSync.accessSync(candidate, fsSync.constants.X_OK);
16756
16756
  return candidate;
16757
16757
  } catch {}
16758
16758
  }
@@ -19864,7 +19864,7 @@ function walkUpFrom(startDir, opts, resolveAtDir) {
19864
19864
  function hasGitMarker(repoRoot) {
19865
19865
  const gitPath = path.join(repoRoot, ".git");
19866
19866
  try {
19867
- const stat = fs$1.statSync(gitPath);
19867
+ const stat = fsSync.statSync(gitPath);
19868
19868
  return stat.isDirectory() || stat.isFile();
19869
19869
  } catch {
19870
19870
  return false;
@@ -19876,10 +19876,10 @@ function findGitRoot(startDir, opts = {}) {
19876
19876
  function resolveGitDirFromMarker(repoRoot) {
19877
19877
  const gitPath = path.join(repoRoot, ".git");
19878
19878
  try {
19879
- const stat = fs$1.statSync(gitPath);
19879
+ const stat = fsSync.statSync(gitPath);
19880
19880
  if (stat.isDirectory()) return gitPath;
19881
19881
  if (!stat.isFile()) return null;
19882
- const match = fs$1.readFileSync(gitPath, "utf-8").match(/gitdir:\s*(.+)/i);
19882
+ const match = fsSync.readFileSync(gitPath, "utf-8").match(/gitdir:\s*(.+)/i);
19883
19883
  if (!match?.[1]) return null;
19884
19884
  return path.resolve(repoRoot, match[1].trim());
19885
19885
  } catch {
@@ -19946,7 +19946,7 @@ const resolveCommitHash = (options = {}) => {
19946
19946
  cachedCommit = null;
19947
19947
  return cachedCommit;
19948
19948
  }
19949
- const head = fs$1.readFileSync(headPath, "utf-8").trim();
19949
+ const head = fsSync.readFileSync(headPath, "utf-8").trim();
19950
19950
  if (!head) {
19951
19951
  cachedCommit = null;
19952
19952
  return cachedCommit;
@@ -19954,7 +19954,7 @@ const resolveCommitHash = (options = {}) => {
19954
19954
  if (head.startsWith("ref:")) {
19955
19955
  const ref = head.replace(/^ref:\s*/i, "").trim();
19956
19956
  const refPath = path.resolve(path.dirname(headPath), ref);
19957
- cachedCommit = formatCommit(fs$1.readFileSync(refPath, "utf-8").trim());
19957
+ cachedCommit = formatCommit(fsSync.readFileSync(refPath, "utf-8").trim());
19958
19958
  return cachedCommit;
19959
19959
  }
19960
19960
  cachedCommit = formatCommit(head);
@@ -20158,9 +20158,9 @@ const readUsageFromSessionLog = (sessionId, sessionEntry, agentId, sessionKey, s
20158
20158
  } catch {
20159
20159
  return;
20160
20160
  }
20161
- if (!fs$1.existsSync(logPath)) return;
20161
+ if (!fsSync.existsSync(logPath)) return;
20162
20162
  try {
20163
- const lines = fs$1.readFileSync(logPath, "utf-8").split(/\n+/);
20163
+ const lines = fsSync.readFileSync(logPath, "utf-8").split(/\n+/);
20164
20164
  let input = 0;
20165
20165
  let output = 0;
20166
20166
  let promptTokens = 0;
@@ -21400,7 +21400,7 @@ function resolveRepoRoot(params) {
21400
21400
  const configured = params.config?.agents?.defaults?.repoRoot?.trim();
21401
21401
  if (configured) try {
21402
21402
  const resolved = path.resolve(configured);
21403
- if (fs$1.statSync(resolved).isDirectory()) return resolved;
21403
+ if (fsSync.statSync(resolved).isDirectory()) return resolved;
21404
21404
  } catch {}
21405
21405
  const candidates = [params.workspaceDir, params.cwd].map((value) => value?.trim()).filter(Boolean);
21406
21406
  const seen = /* @__PURE__ */ new Set();
@@ -22243,7 +22243,7 @@ async function buildContextReply(params) {
22243
22243
  //#region src/auto-reply/reply/commands-export-session.ts
22244
22244
  const EXPORT_HTML_DIR = path.join(path.dirname(fileURLToPath(import.meta.url)), "export-html");
22245
22245
  function loadTemplate(fileName) {
22246
- return fs$1.readFileSync(path.join(EXPORT_HTML_DIR, fileName), "utf-8");
22246
+ return fsSync.readFileSync(path.join(EXPORT_HTML_DIR, fileName), "utf-8");
22247
22247
  }
22248
22248
  function generateHtml(sessionData) {
22249
22249
  const template = loadTemplate("template.html");
@@ -22317,7 +22317,7 @@ async function buildExportSessionReply(params) {
22317
22317
  } catch (err) {
22318
22318
  return { text: `❌ Failed to resolve session file: ${err instanceof Error ? err.message : String(err)}` };
22319
22319
  }
22320
- if (!fs$1.existsSync(sessionFile)) return { text: `❌ Session file not found: ${sessionFile}` };
22320
+ if (!fsSync.existsSync(sessionFile)) return { text: `❌ Session file not found: ${sessionFile}` };
22321
22321
  const sessionManager = SessionManager.open(sessionFile);
22322
22322
  const entries = sessionManager.getEntries();
22323
22323
  const header = sessionManager.getHeader();
@@ -22338,8 +22338,8 @@ async function buildExportSessionReply(params) {
22338
22338
  const defaultFileName = `symi-session-${entry.sessionId.slice(0, 8)}-${timestamp}.html`;
22339
22339
  const outputPath = args.outputPath ? path.resolve(args.outputPath.startsWith("~") ? args.outputPath.replace("~", process.env.HOME ?? "") : args.outputPath) : path.join(params.workspaceDir, defaultFileName);
22340
22340
  const outputDir = path.dirname(outputPath);
22341
- if (!fs$1.existsSync(outputDir)) fs$1.mkdirSync(outputDir, { recursive: true });
22342
- fs$1.writeFileSync(outputPath, html, "utf-8");
22341
+ if (!fsSync.existsSync(outputDir)) fsSync.mkdirSync(outputDir, { recursive: true });
22342
+ fsSync.writeFileSync(outputPath, html, "utf-8");
22343
22343
  const relativePath = path.relative(params.workspaceDir, outputPath);
22344
22344
  return { text: [
22345
22345
  "✅ Session exported!",
@@ -22453,8 +22453,8 @@ function resolveZaiApiKey() {
22453
22453
  }
22454
22454
  try {
22455
22455
  const authPath = path.join(os.homedir(), ".pi", "agent", "auth.json");
22456
- if (!fs$1.existsSync(authPath)) return;
22457
- const data = JSON.parse(fs$1.readFileSync(authPath, "utf-8"));
22456
+ if (!fsSync.existsSync(authPath)) return;
22457
+ const data = JSON.parse(fsSync.readFileSync(authPath, "utf-8"));
22458
22458
  return data["z-ai"]?.access || data.zai?.access;
22459
22459
  } catch {
22460
22460
  return;
@@ -24019,7 +24019,7 @@ function shouldPersistAnyBindingState() {
24019
24019
  }
24020
24020
  function shouldPersistBindingMutations() {
24021
24021
  if (shouldPersistAnyBindingState()) return true;
24022
- return fs$1.existsSync(resolveThreadBindingsPath());
24022
+ return fsSync.existsSync(resolveThreadBindingsPath());
24023
24023
  }
24024
24024
  function saveBindingsToDisk(params = {}) {
24025
24025
  if (!params.force && !shouldPersistAnyBindingState()) return;
@@ -25007,7 +25007,7 @@ const applyCostTotal = (totals, costTotal) => {
25007
25007
  totals.totalCost += costTotal;
25008
25008
  };
25009
25009
  async function* readJsonlRecords(filePath) {
25010
- const fileStream = fs$1.createReadStream(filePath, { encoding: "utf-8" });
25010
+ const fileStream = fsSync.createReadStream(filePath, { encoding: "utf-8" });
25011
25011
  const rl = readline.createInterface({
25012
25012
  input: fileStream,
25013
25013
  crlfDelay: Infinity
@@ -25079,10 +25079,10 @@ async function loadCostUsageSummary(params) {
25079
25079
  const dailyMap = /* @__PURE__ */ new Map();
25080
25080
  const totals = emptyTotals();
25081
25081
  const sessionsDir = resolveSessionTranscriptsDirForAgent(params?.agentId);
25082
- const entries = await fs$1.promises.readdir(sessionsDir, { withFileTypes: true }).catch(() => []);
25082
+ const entries = await fsSync.promises.readdir(sessionsDir, { withFileTypes: true }).catch(() => []);
25083
25083
  const files = (await Promise.all(entries.filter((entry) => entry.isFile() && entry.name.endsWith(".jsonl")).map(async (entry) => {
25084
25084
  const filePath = path.join(sessionsDir, entry.name);
25085
- const stats = await fs$1.promises.stat(filePath).catch(() => null);
25085
+ const stats = await fsSync.promises.stat(filePath).catch(() => null);
25086
25086
  if (!stats) return null;
25087
25087
  if (stats.mtimeMs < sinceTime) return null;
25088
25088
  return filePath;
@@ -25115,7 +25115,7 @@ async function loadCostUsageSummary(params) {
25115
25115
  }
25116
25116
  async function loadSessionCostSummary(params) {
25117
25117
  const sessionFile = params.sessionFile ?? (params.sessionId ? resolveSessionFilePath(params.sessionId, params.sessionEntry, { agentId: params.agentId }) : void 0);
25118
- if (!sessionFile || !fs$1.existsSync(sessionFile)) return null;
25118
+ if (!sessionFile || !fsSync.existsSync(sessionFile)) return null;
25119
25119
  const totals = emptyTotals();
25120
25120
  let firstActivity;
25121
25121
  let lastActivity;
@@ -29321,7 +29321,7 @@ function asBoolean(value) {
29321
29321
  }
29322
29322
  function resolveTempPathParts(opts) {
29323
29323
  const tmpDir = opts.tmpDir ?? resolvePreferredSymiTmpDir();
29324
- if (!opts.tmpDir) fs$1.mkdirSync(tmpDir, {
29324
+ if (!opts.tmpDir) fsSync.mkdirSync(tmpDir, {
29325
29325
  recursive: true,
29326
29326
  mode: 448
29327
29327
  });
@@ -29387,7 +29387,7 @@ async function writeUrlToFile(filePath, url) {
29387
29387
  if (typeof contentLength === "number" && Number.isFinite(contentLength) && contentLength > MAX_CAMERA_URL_DOWNLOAD_BYTES) throw new Error(`writeUrlToFile: content-length ${contentLength} exceeds max ${MAX_CAMERA_URL_DOWNLOAD_BYTES}`);
29388
29388
  const body = res.body;
29389
29389
  if (!body) throw new Error(`failed to download ${url}: empty response body`);
29390
- const fileHandle = await fs$2.open(filePath, "w");
29390
+ const fileHandle = await fs$1.open(filePath, "w");
29391
29391
  let bytes = 0;
29392
29392
  let thrown;
29393
29393
  try {
@@ -29406,7 +29406,7 @@ async function writeUrlToFile(filePath, url) {
29406
29406
  await fileHandle.close();
29407
29407
  }
29408
29408
  if (thrown) {
29409
- await fs$2.unlink(filePath).catch(() => {});
29409
+ await fs$1.unlink(filePath).catch(() => {});
29410
29410
  throw thrown;
29411
29411
  }
29412
29412
  return {
@@ -29416,7 +29416,7 @@ async function writeUrlToFile(filePath, url) {
29416
29416
  }
29417
29417
  async function writeBase64ToFile(filePath, base64) {
29418
29418
  const buf = Buffer.from(base64, "base64");
29419
- await fs$2.writeFile(filePath, buf);
29419
+ await fs$1.writeFile(filePath, buf);
29420
29420
  return {
29421
29421
  path: filePath,
29422
29422
  bytes: buf.length
@@ -34781,7 +34781,7 @@ function listExistingAgentIdsFromDisk() {
34781
34781
  const root = resolveStateDir();
34782
34782
  const agentsDir = path.join(root, "agents");
34783
34783
  try {
34784
- return fs$1.readdirSync(agentsDir, { withFileTypes: true }).filter((entry) => entry.isDirectory()).map((entry) => normalizeAgentId(entry.name)).filter(Boolean);
34784
+ return fsSync.readdirSync(agentsDir, { withFileTypes: true }).filter((entry) => entry.isDirectory()).map((entry) => normalizeAgentId(entry.name)).filter(Boolean);
34785
34785
  } catch {
34786
34786
  return [];
34787
34787
  }
@@ -39816,7 +39816,7 @@ async function runAgentTurnWithFallback(params) {
39816
39816
  if (corruptedSessionId) {
39817
39817
  const transcriptPath = resolveSessionTranscriptPath(corruptedSessionId);
39818
39818
  try {
39819
- fs$1.unlinkSync(transcriptPath);
39819
+ fsSync.unlinkSync(transcriptPath);
39820
39820
  } catch {}
39821
39821
  }
39822
39822
  delete params.activeSessionStore[sessionKey];
@@ -40521,9 +40521,9 @@ function auditPostCompactionReads(readFilePaths, workspaceDir, requiredReads = D
40521
40521
  * Returns messages from the last N lines (default 100).
40522
40522
  */
40523
40523
  function readSessionMessages(sessionFile, maxLines = 100) {
40524
- if (!fs$1.existsSync(sessionFile)) return [];
40524
+ if (!fsSync.existsSync(sessionFile)) return [];
40525
40525
  try {
40526
- const recentLines = fs$1.readFileSync(sessionFile, "utf-8").trim().split("\n").slice(-maxLines);
40526
+ const recentLines = fsSync.readFileSync(sessionFile, "utf-8").trim().split("\n").slice(-maxLines);
40527
40527
  const messages = [];
40528
40528
  for (const line of recentLines) try {
40529
40529
  const entry = JSON.parse(line);
@@ -40564,8 +40564,8 @@ const MAX_CONTEXT_CHARS = 3e3;
40564
40564
  async function readPostCompactionContext(workspaceDir) {
40565
40565
  const agentsPath = path.join(workspaceDir, "AGENTS.md");
40566
40566
  try {
40567
- if (!fs$1.existsSync(agentsPath)) return null;
40568
- const sections = extractSections(await fs$1.promises.readFile(agentsPath, "utf-8"), ["Session Startup", "Red Lines"]);
40567
+ if (!fsSync.existsSync(agentsPath)) return null;
40568
+ const sections = extractSections(await fsSync.promises.readFile(agentsPath, "utf-8"), ["Session Startup", "Red Lines"]);
40569
40569
  if (sections.length === 0) return null;
40570
40570
  const combined = sections.join("\n\n");
40571
40571
  return "[Post-compaction context refresh]\n\nSession was just compacted. The conversation summary above is a hint, NOT a substitute for your startup sequence. Execute your Session Startup sequence now — read the required files before responding to the user.\n\nCritical rules from AGENTS.md:\n\n" + (combined.length > MAX_CONTEXT_CHARS ? combined.slice(0, MAX_CONTEXT_CHARS) + "\n...[truncated]..." : combined);
@@ -40769,7 +40769,7 @@ async function runReplyAgent(params) {
40769
40769
  if (resolved) transcriptCandidates.add(resolved);
40770
40770
  transcriptCandidates.add(resolveSessionTranscriptPath(prevSessionId, agentId));
40771
40771
  for (const candidate of transcriptCandidates) try {
40772
- fs$1.unlinkSync(candidate);
40772
+ fsSync.unlinkSync(candidate);
40773
40773
  } catch {}
40774
40774
  }
40775
40775
  return true;
@@ -41675,7 +41675,7 @@ async function deliverSessionMaintenanceWarning(params) {
41675
41675
  return;
41676
41676
  }
41677
41677
  try {
41678
- const { deliverOutboundPayloads } = await import("./deliver-D1ZN6-fl.js").then((n) => n.n);
41678
+ const { deliverOutboundPayloads } = await import("./deliver-BA7ZN3iM.js").then((n) => n.n);
41679
41679
  await deliverOutboundPayloads({
41680
41680
  cfg: params.cfg,
41681
41681
  channel,
@@ -41701,7 +41701,7 @@ function forkSessionFromParent(params) {
41701
41701
  agentId: params.agentId,
41702
41702
  sessionsDir: params.sessionsDir
41703
41703
  });
41704
- if (!parentSessionFile || !fs$1.existsSync(parentSessionFile)) return null;
41704
+ if (!parentSessionFile || !fsSync.existsSync(parentSessionFile)) return null;
41705
41705
  try {
41706
41706
  const manager = SessionManager.open(parentSessionFile);
41707
41707
  const leafId = manager.getLeafId();
@@ -41725,7 +41725,7 @@ function forkSessionFromParent(params) {
41725
41725
  cwd: manager.getCwd(),
41726
41726
  parentSession: parentSessionFile
41727
41727
  };
41728
- fs$1.writeFileSync(sessionFile, `${JSON.stringify(header)}\n`, "utf-8");
41728
+ fsSync.writeFileSync(sessionFile, `${JSON.stringify(header)}\n`, "utf-8");
41729
41729
  return {
41730
41730
  sessionId,
41731
41731
  sessionFile
@@ -45121,7 +45121,7 @@ async function describeStickerImage(params) {
45121
45121
  logVerbose(`telegram: describing sticker with ${provider}/${model}`);
45122
45122
  try {
45123
45123
  const buffer = await fs.readFile(imagePath);
45124
- const { describeImageWithModel } = await import("./image-Cp3JDEBB.js").then((n) => n.n);
45124
+ const { describeImageWithModel } = await import("./image-BGmVDkkw.js").then((n) => n.n);
45125
45125
  return (await describeImageWithModel({
45126
45126
  buffer,
45127
45127
  fileName: "sticker.webp",
@@ -45544,7 +45544,7 @@ function createWhatsAppLoginTool() {
45544
45544
  force: Type.Optional(Type.Boolean())
45545
45545
  }),
45546
45546
  execute: async (_toolCallId, args) => {
45547
- const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-Batf3PT5.js");
45547
+ const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-CIZk8uKX.js");
45548
45548
  if ((args?.action ?? "start") === "wait") {
45549
45549
  const result = await waitForWebLogin({ timeoutMs: typeof args.timeoutMs === "number" ? args.timeoutMs : void 0 });
45550
45550
  return {
@@ -45826,7 +45826,7 @@ async function withMemoryManagerForAgent(params) {
45826
45826
  }
45827
45827
  async function checkReadableFile(pathname) {
45828
45828
  try {
45829
- await fs.access(pathname, fs$1.constants.R_OK);
45829
+ await fs.access(pathname, fsSync.constants.R_OK);
45830
45830
  return { exists: true };
45831
45831
  } catch (err) {
45832
45832
  const code = err.code;
@@ -45885,7 +45885,7 @@ async function scanMemoryFiles(workspaceDir, extraPaths = []) {
45885
45885
  }
45886
45886
  let dirReadable = null;
45887
45887
  try {
45888
- await fs.access(memoryDir, fs$1.constants.R_OK);
45888
+ await fs.access(memoryDir, fsSync.constants.R_OK);
45889
45889
  dirReadable = true;
45890
45890
  } catch (err) {
45891
45891
  const code = err.code;
@@ -47783,7 +47783,7 @@ async function preflightDiscordMessage(params) {
47783
47783
  let preflightTranscript;
47784
47784
  const hasAudioAttachment = message.attachments?.some((att) => att.contentType?.startsWith("audio/"));
47785
47785
  if (!isDirectMessage && shouldRequireMention && hasAudioAttachment && !baseText && mentionRegexes.length > 0) try {
47786
- const { transcribeFirstAudio } = await import("./audio-preflight-D02HwB-I.js");
47786
+ const { transcribeFirstAudio } = await import("./audio-preflight-BkIfnmpi.js");
47787
47787
  const audioPaths = message.attachments?.filter((att) => att.contentType?.startsWith("audio/")).map((att) => att.url) ?? [];
47788
47788
  if (audioPaths.length > 0) preflightTranscript = await transcribeFirstAudio({
47789
47789
  ctx: {
@@ -48746,7 +48746,7 @@ function identityHasValues(identity) {
48746
48746
  }
48747
48747
  function loadIdentityFromFile(identityPath) {
48748
48748
  try {
48749
- const parsed = parseIdentityMarkdown(fs$1.readFileSync(identityPath, "utf-8"));
48749
+ const parsed = parseIdentityMarkdown(fsSync.readFileSync(identityPath, "utf-8"));
48750
48750
  if (!identityHasValues(parsed)) return null;
48751
48751
  return parsed;
48752
48752
  } catch {
@@ -48785,7 +48785,7 @@ function isDataAvatar(value) {
48785
48785
  }
48786
48786
  function resolveExistingPath(value) {
48787
48787
  try {
48788
- return fs$1.realpathSync(value);
48788
+ return fsSync.realpathSync(value);
48789
48789
  } catch {
48790
48790
  return path.resolve(value);
48791
48791
  }
@@ -48809,7 +48809,7 @@ function resolveLocalAvatarPath(params) {
48809
48809
  reason: "unsupported_extension"
48810
48810
  };
48811
48811
  try {
48812
- if (!fs$1.statSync(realPath).isFile()) return {
48812
+ if (!fsSync.statSync(realPath).isFile()) return {
48813
48813
  ok: false,
48814
48814
  reason: "missing"
48815
48815
  };
@@ -49672,7 +49672,7 @@ function sanitizeRecentModels(models, limit) {
49672
49672
  }
49673
49673
  async function readJsonFileWithFallback(filePath, fallback) {
49674
49674
  try {
49675
- const raw = await fs$1.promises.readFile(filePath, "utf-8");
49675
+ const raw = await fsSync.promises.readFile(filePath, "utf-8");
49676
49676
  return {
49677
49677
  value: JSON.parse(raw),
49678
49678
  exists: true
@@ -49690,14 +49690,14 @@ async function readJsonFileWithFallback(filePath, fallback) {
49690
49690
  }
49691
49691
  async function writeJsonFileAtomically(filePath, value) {
49692
49692
  const dir = path.dirname(filePath);
49693
- await fs$1.promises.mkdir(dir, {
49693
+ await fsSync.promises.mkdir(dir, {
49694
49694
  recursive: true,
49695
49695
  mode: 448
49696
49696
  });
49697
49697
  const tmp = path.join(dir, `${path.basename(filePath)}.${crypto.randomUUID()}.tmp`);
49698
- await fs$1.promises.writeFile(tmp, `${JSON.stringify(value, null, 2)}\n`, "utf-8");
49699
- await fs$1.promises.chmod(tmp, 384);
49700
- await fs$1.promises.rename(tmp, filePath);
49698
+ await fsSync.promises.writeFile(tmp, `${JSON.stringify(value, null, 2)}\n`, "utf-8");
49699
+ await fsSync.promises.chmod(tmp, 384);
49700
+ await fsSync.promises.rename(tmp, filePath);
49701
49701
  }
49702
49702
  async function readPreferencesStore(filePath) {
49703
49703
  const { value } = await readJsonFileWithFallback(filePath, {
@@ -51819,7 +51819,16 @@ const BUILTIN_PROFILES = [
51819
51819
  suppressMonologue: true,
51820
51820
  hasStructuredThinking: false
51821
51821
  },
51822
- promptAdditions: ["You are running locally via Ollama. Do not output raw control tokens or internal monologue. Send brief progress updates on long tasks."],
51822
+ promptAdditions: [
51823
+ "CRITICAL OUTPUT RULES:",
51824
+ "- Your response ends when you have delivered the answer. Do not append anything after.",
51825
+ "- Do not output raw control tokens, channel tags, or turn markers.",
51826
+ "- Do not begin any sentence with 'I have addressed' or 'I've reviewed'.",
51827
+ "- Do not write verification checklists, self-assessments, or numbered assessment lists after your answer.",
51828
+ "- Do not write 'Verification:', 'Requirements:', 'Status Check:', or 'Everything is correct'.",
51829
+ "- If you need to verify your work, do so before writing your response, not after.",
51830
+ "- Send brief progress updates on long tasks so the user knows you are active."
51831
+ ],
51823
51832
  ui: {
51824
51833
  badge: "Local",
51825
51834
  watchdogMs: 9e5,
@@ -51879,12 +51888,15 @@ const BUILTIN_PROFILES = [
51879
51888
  hasStructuredThinking: false
51880
51889
  },
51881
51890
  promptAdditions: [
51882
- "You are running as Gemma 4 via vLLM. Important behavioral rules:",
51883
- "- Never output raw control tokens, channel tags, or turn markers in your responses.",
51884
- "- Never display internal status checks, plans, or self-assessments. Your visible output should only be conversational responses and final results.",
51885
- "- When working on multi-step tasks, send a brief one-line status update every 30-60 seconds so the user knows you are active.",
51891
+ "CRITICAL OUTPUT RULES:",
51892
+ "- Your response ends when you have delivered the answer. Do not append anything after.",
51893
+ "- Do not output raw control tokens, channel tags, turn markers, or <|channel>thought syntax.",
51894
+ "- Do not begin any sentence with 'I have addressed' or 'I've reviewed'.",
51895
+ "- Do not write verification checklists, self-assessments, or numbered assessment lists after your answer.",
51896
+ "- Do not write 'Verification:', 'Requirements:', 'Status Check:', or 'Everything is correct'.",
51897
+ "- If you need to verify your work, do so before writing your response, not after.",
51886
51898
  "- Keep planning and reasoning internal. Only speak when you have a result or need user input.",
51887
- "- Do not use <|channel>thought or similar syntax. If you need to reason, do so silently."
51899
+ "- When working on multi-step tasks, send a brief one-line status update so the user knows you are active."
51888
51900
  ],
51889
51901
  ui: {
51890
51902
  badge: "CoreWeave",
@@ -53034,11 +53046,11 @@ function appendRawStream(payload) {
53034
53046
  if (!rawStreamReady) {
53035
53047
  rawStreamReady = true;
53036
53048
  try {
53037
- fs$1.mkdirSync(path.dirname(RAW_STREAM_PATH), { recursive: true });
53049
+ fsSync.mkdirSync(path.dirname(RAW_STREAM_PATH), { recursive: true });
53038
53050
  } catch {}
53039
53051
  }
53040
53052
  try {
53041
- fs$1.promises.appendFile(RAW_STREAM_PATH, `${JSON.stringify(payload)}\n`);
53053
+ fsSync.promises.appendFile(RAW_STREAM_PATH, `${JSON.stringify(payload)}\n`);
53042
53054
  } catch {}
53043
53055
  }
53044
53056
 
@@ -54498,7 +54510,7 @@ async function recordLoopOutcome(args) {
54498
54510
  if (!args.ctx?.sessionKey) return;
54499
54511
  try {
54500
54512
  const { getDiagnosticSessionState } = await import("./diagnostic-session-state-Bxo4UHOL.js").then((n) => n.n);
54501
- const { recordToolCallOutcome } = await import("./tool-loop-detection-Cs8_HCsx.js");
54513
+ const { recordToolCallOutcome } = await import("./tool-loop-detection-Bbc9OPFR.js");
54502
54514
  recordToolCallOutcome(getDiagnosticSessionState({
54503
54515
  sessionKey: args.ctx.sessionKey,
54504
54516
  sessionId: args.ctx?.agentId
@@ -54519,8 +54531,8 @@ async function runBeforeToolCallHook(args) {
54519
54531
  const params = args.params;
54520
54532
  if (args.ctx?.sessionKey) {
54521
54533
  const { getDiagnosticSessionState } = await import("./diagnostic-session-state-Bxo4UHOL.js").then((n) => n.n);
54522
- const { logToolLoopAction } = await import("./diagnostic-CI0kRQkt.js").then((n) => n.n);
54523
- const { detectToolCallLoop, recordToolCall } = await import("./tool-loop-detection-Cs8_HCsx.js");
54534
+ const { logToolLoopAction } = await import("./diagnostic-C3nsWaw3.js").then((n) => n.n);
54535
+ const { detectToolCallLoop, recordToolCall } = await import("./tool-loop-detection-Bbc9OPFR.js");
54524
54536
  const sessionState = getDiagnosticSessionState({
54525
54537
  sessionKey: args.ctx.sessionKey,
54526
54538
  sessionId: args.ctx?.agentId
@@ -56228,8 +56240,8 @@ async function readWorkspaceContextForSummary() {
56228
56240
  const workspaceDir = process.cwd();
56229
56241
  const agentsPath = path.join(workspaceDir, "AGENTS.md");
56230
56242
  try {
56231
- if (!fs$1.existsSync(agentsPath)) return "";
56232
- const sections = extractSections(await fs$1.promises.readFile(agentsPath, "utf-8"), ["Session Startup", "Red Lines"]);
56243
+ if (!fsSync.existsSync(agentsPath)) return "";
56244
+ const sections = extractSections(await fsSync.promises.readFile(agentsPath, "utf-8"), ["Session Startup", "Red Lines"]);
56233
56245
  if (sections.length === 0) return "";
56234
56246
  const combined = sections.join("\n\n");
56235
56247
  return `\n\n<workspace-critical-rules>\n${combined.length > MAX_SUMMARY_CONTEXT_CHARS ? combined.slice(0, MAX_SUMMARY_CONTEXT_CHARS) + "\n...[truncated]..." : combined}\n</workspace-critical-rules>`;
@@ -59596,7 +59608,7 @@ async function runEmbeddedPiAgent(params) {
59596
59608
  return;
59597
59609
  }
59598
59610
  if (model.provider === "github-copilot") {
59599
- const { resolveCopilotApiToken } = await import("./github-copilot-token-C_qUP7p5.js").then((n) => n.n);
59611
+ const { resolveCopilotApiToken } = await import("./github-copilot-token-DJqsJ2-r.js").then((n) => n.n);
59600
59612
  const copilotToken = await resolveCopilotApiToken({ githubToken: apiKeyInfo.apiKey });
59601
59613
  authStorage.setRuntimeApiKey(model.provider, copilotToken.token);
59602
59614
  } else authStorage.setRuntimeApiKey(model.provider, apiKeyInfo.apiKey);
@@ -60306,27 +60318,27 @@ async function runAgentTurn(params) {
60306
60318
  function createDefaultDeps() {
60307
60319
  return {
60308
60320
  sendMessageWhatsApp: async (...args) => {
60309
- const { sendMessageWhatsApp } = await import("./web-CubghJNN.js");
60321
+ const { sendMessageWhatsApp } = await import("./web-Nrl97JcY.js");
60310
60322
  return await sendMessageWhatsApp(...args);
60311
60323
  },
60312
60324
  sendMessageTelegram: async (...args) => {
60313
- const { sendMessageTelegram } = await import("./send-B1u-LrcS.js").then((n) => n.l);
60325
+ const { sendMessageTelegram } = await import("./send-DeEosX8F.js").then((n) => n.l);
60314
60326
  return await sendMessageTelegram(...args);
60315
60327
  },
60316
60328
  sendMessageDiscord: async (...args) => {
60317
- const { sendMessageDiscord } = await import("./send-CiTGOvEc.js").then((n) => n.t);
60329
+ const { sendMessageDiscord } = await import("./send-DwKJK3sM.js").then((n) => n.t);
60318
60330
  return await sendMessageDiscord(...args);
60319
60331
  },
60320
60332
  sendMessageSlack: async (...args) => {
60321
- const { sendMessageSlack } = await import("./send-DeFniOjh.js").then((n) => n.n);
60333
+ const { sendMessageSlack } = await import("./send-CHEOWVc8.js").then((n) => n.n);
60322
60334
  return await sendMessageSlack(...args);
60323
60335
  },
60324
60336
  sendMessageSignal: async (...args) => {
60325
- const { sendMessageSignal } = await import("./send-DW96zgDL.js").then((n) => n.i);
60337
+ const { sendMessageSignal } = await import("./send-zSarozV2.js").then((n) => n.i);
60326
60338
  return await sendMessageSignal(...args);
60327
60339
  },
60328
60340
  sendMessageIMessage: async (...args) => {
60329
- const { sendMessageIMessage } = await import("./send-WyRqb4WD.js").then((n) => n.n);
60341
+ const { sendMessageIMessage } = await import("./send-DbcLJb0P.js").then((n) => n.n);
60330
60342
  return await sendMessageIMessage(...args);
60331
60343
  }
60332
60344
  };
@@ -65205,7 +65217,7 @@ async function monitorIMessageProvider(opts = {}) {
65205
65217
  function readFileIfExists(filePath) {
65206
65218
  if (!filePath) return;
65207
65219
  try {
65208
- return fs$1.readFileSync(filePath, "utf-8").trim();
65220
+ return fsSync.readFileSync(filePath, "utf-8").trim();
65209
65221
  } catch {
65210
65222
  return;
65211
65223
  }
@@ -65766,7 +65778,7 @@ async function downloadLineMedia(messageId, channelAccessToken, maxBytes = 10 *
65766
65778
  prefix: "line-media",
65767
65779
  extension: getExtensionForContentType(contentType)
65768
65780
  });
65769
- await fs$1.promises.writeFile(filePath, buffer);
65781
+ await fsSync.promises.writeFile(filePath, buffer);
65770
65782
  logVerbose(`line: downloaded media ${messageId} to ${filePath} (${buffer.length} bytes)`);
65771
65783
  return {
65772
65784
  path: filePath,
@@ -70753,7 +70765,7 @@ function readSlackExternalArgMenuToken(raw) {
70753
70765
  }
70754
70766
  let commandsRegistry;
70755
70767
  async function getCommandsRegistry() {
70756
- if (!commandsRegistry) commandsRegistry = await import("./commands-registry-D7CTCQPm.js").then((n) => n.n);
70768
+ if (!commandsRegistry) commandsRegistry = await import("./commands-registry-VSmULp-g.js").then((n) => n.n);
70757
70769
  return commandsRegistry;
70758
70770
  }
70759
70771
  function encodeSlackCommandArgValue(parts) {
@@ -71095,11 +71107,11 @@ async function registerSlackMonitorSlashCommands(params) {
71095
71107
  const channelName = channelInfo?.name;
71096
71108
  const roomLabel = channelName ? `#${channelName}` : `#${command.channel_id}`;
71097
71109
  const [{ resolveAgentRoute }, { finalizeInboundContext }, { dispatchReplyWithDispatcher }] = await Promise.all([
71098
- import("./resolve-route-CZ-1eqw0.js").then((n) => n.r),
71110
+ import("./resolve-route-BVikmvWO.js").then((n) => n.r),
71099
71111
  import("./inbound-context-BlHX0H3E.js").then((n) => n.n),
71100
71112
  Promise.resolve().then(() => provider_dispatcher_exports)
71101
71113
  ]);
71102
- const [{ resolveConversationLabel }, { createReplyPrefixOptions }] = await Promise.all([import("./conversation-label-DXUkoKcB.js").then((n) => n.t), import("./reply-prefix-XlyuyChD.js").then((n) => n.n)]);
71114
+ const [{ resolveConversationLabel }, { createReplyPrefixOptions }] = await Promise.all([import("./conversation-label-DXUkoKcB.js").then((n) => n.t), import("./reply-prefix-CtL0omgM.js").then((n) => n.n)]);
71103
71115
  const route = resolveAgentRoute({
71104
71116
  cfg,
71105
71117
  channel: "slack",
@@ -71156,9 +71168,9 @@ async function registerSlackMonitorSlashCommands(params) {
71156
71168
  });
71157
71169
  const deliverSlashPayloads = async (replies) => {
71158
71170
  const [{ deliverSlackSlashReplies }, { resolveChunkMode }, { resolveMarkdownTableMode }] = await Promise.all([
71159
- import("./replies-BIX_isV7.js").then((n) => n.r),
71160
- import("./chunk-BW5f05BR.js").then((n) => n.s),
71161
- import("./markdown-tables-iMQQZu4Q.js").then((n) => n.t)
71171
+ import("./replies-DpPvWiGF.js").then((n) => n.r),
71172
+ import("./chunk-ClbN9Pqy.js").then((n) => n.s),
71173
+ import("./markdown-tables-DSHvnTLx.js").then((n) => n.t)
71162
71174
  ]);
71163
71175
  await deliverSlackSlashReplies({
71164
71176
  replies,
@@ -71211,7 +71223,7 @@ async function registerSlackMonitorSlashCommands(params) {
71211
71223
  let nativeCommands = [];
71212
71224
  if (nativeEnabled) {
71213
71225
  reg = await getCommandsRegistry();
71214
- const skillCommands = nativeSkillsEnabled ? (await import("./skill-commands-BJMb_psG.js").then((n) => n.a)).listSkillCommandsForAgents({ cfg }) : [];
71226
+ const skillCommands = nativeSkillsEnabled ? (await import("./skill-commands-D610IKhm.js").then((n) => n.a)).listSkillCommandsForAgents({ cfg }) : [];
71215
71227
  nativeCommands = reg.listNativeCommandSpecsForConfig(cfg, {
71216
71228
  skillCommands,
71217
71229
  provider: "slack"
@@ -73429,7 +73441,7 @@ const buildTelegramMessageContext = async ({ primaryCtx, allMedia, storeAllowFro
73429
73441
  const hasAudio = allMedia.some((media) => media.contentType?.startsWith("audio/"));
73430
73442
  let preflightTranscript;
73431
73443
  if (isGroup && requireMention && hasAudio && !hasUserText && mentionRegexes.length > 0) try {
73432
- const { transcribeFirstAudio } = await import("./audio-preflight-D02HwB-I.js");
73444
+ const { transcribeFirstAudio } = await import("./audio-preflight-BkIfnmpi.js");
73433
73445
  preflightTranscript = await transcribeFirstAudio({
73434
73446
  ctx: {
73435
73447
  MediaPaths: allMedia.length > 0 ? allMedia.map((m) => m.path) : void 0,
@@ -75574,23 +75586,23 @@ let webLoginQrPromise = null;
75574
75586
  let webChannelPromise = null;
75575
75587
  let whatsappActionsPromise = null;
75576
75588
  function loadWebOutbound() {
75577
- webOutboundPromise ??= import("./outbound-D4fN_ZlE.js").then((n) => n.t);
75589
+ webOutboundPromise ??= import("./outbound-opDNxv-l.js").then((n) => n.t);
75578
75590
  return webOutboundPromise;
75579
75591
  }
75580
75592
  function loadWebLogin() {
75581
- webLoginPromise ??= import("./login-CwCoxapk.js").then((n) => n.n);
75593
+ webLoginPromise ??= import("./login-B8uiUAnV.js").then((n) => n.n);
75582
75594
  return webLoginPromise;
75583
75595
  }
75584
75596
  function loadWebLoginQr() {
75585
- webLoginQrPromise ??= import("./login-qr-Batf3PT5.js");
75597
+ webLoginQrPromise ??= import("./login-qr-CIZk8uKX.js");
75586
75598
  return webLoginQrPromise;
75587
75599
  }
75588
75600
  function loadWebChannel() {
75589
- webChannelPromise ??= import("./web-CubghJNN.js");
75601
+ webChannelPromise ??= import("./web-Nrl97JcY.js");
75590
75602
  return webChannelPromise;
75591
75603
  }
75592
75604
  function loadWhatsAppActions() {
75593
- whatsappActionsPromise ??= import("./whatsapp-actions-D1RsnX7P.js");
75605
+ whatsappActionsPromise ??= import("./whatsapp-actions-oRQjcdQe.js");
75594
75606
  return whatsappActionsPromise;
75595
75607
  }
75596
75608
  function createPluginRuntime() {
@@ -75811,7 +75823,7 @@ const resolvePluginSdkAliasFile = (params) => {
75811
75823
  const srcCandidate = path.join(cursor, "src", "plugin-sdk", params.srcFile);
75812
75824
  const distCandidate = path.join(cursor, "dist", "plugin-sdk", params.distFile);
75813
75825
  const orderedCandidates = isTest ? [distCandidate, srcCandidate] : [distCandidate];
75814
- for (const candidate of orderedCandidates) if (fs$1.existsSync(candidate)) return candidate;
75826
+ for (const candidate of orderedCandidates) if (fsSync.existsSync(candidate)) return candidate;
75815
75827
  const parent = path.dirname(cursor);
75816
75828
  if (parent === cursor) break;
75817
75829
  cursor = parent;
@@ -77963,7 +77975,7 @@ async function compactEmbeddedPiSessionDirect(params) {
77963
77975
  if (!apiKeyInfo.apiKey) {
77964
77976
  if (apiKeyInfo.mode !== "aws-sdk") throw new Error(`No API key resolved for provider "${model.provider}" (auth mode: ${apiKeyInfo.mode}).`);
77965
77977
  } else if (model.provider === "github-copilot") {
77966
- const { resolveCopilotApiToken } = await import("./github-copilot-token-C_qUP7p5.js").then((n) => n.n);
77978
+ const { resolveCopilotApiToken } = await import("./github-copilot-token-DJqsJ2-r.js").then((n) => n.n);
77967
77979
  const copilotToken = await resolveCopilotApiToken({ githubToken: apiKeyInfo.apiKey });
77968
77980
  authStorage.setRuntimeApiKey(model.provider, copilotToken.token);
77969
77981
  } else authStorage.setRuntimeApiKey(model.provider, apiKeyInfo.apiKey);