@symerian/symi 2.5.5 → 2.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) 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/{audio-preflight-D02HwB-I.js → audio-preflight-BkIfnmpi.js} +29 -29
  7. package/dist/{bindings-B7Ke6LJi.js → bindings-BU2hsBd9.js} +2 -2
  8. package/dist/build-info.json +3 -3
  9. package/dist/bundled/boot-md/handler.js +53 -53
  10. package/dist/bundled/bootstrap-extra-files/handler.js +5 -5
  11. package/dist/bundled/command-logger/handler.js +1 -1
  12. package/dist/bundled/session-memory/handler.js +53 -53
  13. package/dist/canvas-host/a2ui/.bundle.hash +1 -1
  14. package/dist/{channel-activity-CsM_hJ_s.js → channel-activity-C9-gaquj.js} +1 -1
  15. package/dist/{chrome-EyvdASWt.js → chrome-CxSAp8x3.js} +13 -13
  16. package/dist/{chunk-BW5f05BR.js → chunk-ClbN9Pqy.js} +1 -1
  17. package/dist/{command-format-BaxDnULz.js → command-format-UKHV-j0K.js} +1 -1
  18. package/dist/{command-registry-MkEozWAH.js → command-registry-Cy7a5Xcu.js} +4 -4
  19. package/dist/{commands-registry-D7CTCQPm.js → commands-registry-VSmULp-g.js} +4 -4
  20. package/dist/{completion-cli-BhTUmIQq.js → completion-cli-C-OS6kYL.js} +1 -1
  21. package/dist/{completion-cli-dUtNBRxr.js → completion-cli-DErjG0lV.js} +2 -2
  22. package/dist/{config-DRbjHIwD.js → config-eEaJddXj.js} +12 -12
  23. package/dist/{deliver-D1ZN6-fl.js → deliver-BA7ZN3iM.js} +20 -20
  24. package/dist/{diagnostic-CI0kRQkt.js → diagnostic-C3nsWaw3.js} +1 -1
  25. package/dist/{doctor-completion-B6NNBqMH.js → doctor-completion-BbGM1ada.js} +1 -1
  26. package/dist/{doctor-completion-DyoreZD-.js → doctor-completion-Dun5W6M-.js} +1 -1
  27. package/dist/entry.js +1 -1
  28. package/dist/{frontmatter-C_bv_0P8.js → frontmatter-DPlG6yha.js} +2 -2
  29. package/dist/{gateway-cli-D0B9Vgau.js → gateway-cli-BzihvR67.js} +5 -3
  30. package/dist/{gateway-cli-DxCKlysL.js → gateway-cli-DGd0MHyj.js} +5 -3
  31. package/dist/{gemini-auth-CdSPHuLl.js → gemini-auth-CF48hUR9.js} +1 -1
  32. package/dist/{github-copilot-token-C_qUP7p5.js → github-copilot-token-DJqsJ2-r.js} +7 -7
  33. package/dist/{image-Cp3JDEBB.js → image-BGmVDkkw.js} +4 -4
  34. package/dist/{image-ops-CvJzsyvE.js → image-ops-S8-8dAhx.js} +1 -1
  35. package/dist/index.js +1 -1
  36. package/dist/{ir-DccrnjsE.js → ir-CbFUkv_T.js} +4 -4
  37. package/dist/llm-slug-generator.js +53 -53
  38. package/dist/{local-roots-DMwIh5cS.js → local-roots-C7OCYACU.js} +5 -5
  39. package/dist/{login-CwCoxapk.js → login-B8uiUAnV.js} +7 -7
  40. package/dist/{login-qr-Batf3PT5.js → login-qr-CIZk8uKX.js} +12 -12
  41. package/dist/{manager-D_LwXbc6.js → manager-BoLr3xR_.js} +13 -13
  42. package/dist/{manifest-registry-D0IQ3WuX.js → manifest-registry-CneMHk0N.js} +19 -19
  43. package/dist/{markdown-tables-iMQQZu4Q.js → markdown-tables-DSHvnTLx.js} +1 -1
  44. package/dist/{plugin-sdk/message-channel-BdI5Ra9S.js → message-channel-DbsRltF2.js} +1 -1
  45. package/dist/{model-auth-DK43VicI.js → model-auth-CwOuTuXl.js} +9 -9
  46. package/dist/{onboard-Dl1mj_Hn.js → onboard-CG_dt1-i.js} +1 -1
  47. package/dist/{onboard-DaiS9kgA.js → onboard-CQdHpiGe.js} +1 -1
  48. package/dist/{onboarding-DeTsj6mF.js → onboarding-CImYGoGs.js} +1 -1
  49. package/dist/{onboarding-CkC_X5pg.js → onboarding-CnDTeetJ.js} +1 -1
  50. package/dist/{onboarding.finalize-C85tE9Ni.js → onboarding.finalize-PsAMCvC4.js} +4 -4
  51. package/dist/{onboarding.finalize-lXqeJkS2.js → onboarding.finalize-XA0M28ax.js} +3 -3
  52. package/dist/{outbound-attachment-DjNDa3zn.js → outbound-attachment-Co2diKdP.js} +2 -2
  53. package/dist/{outbound-D4fN_ZlE.js → outbound-opDNxv-l.js} +7 -7
  54. package/dist/{paths-DLyHUt31.js → paths-Cb87-LzP.js} +1 -1
  55. package/dist/{paths-Cce4PUkG.js → paths-CySxpNhH.js} +5 -5
  56. package/dist/{pi-auth-json-0SYBFZTt.js → pi-auth-json-DPWPoruO.js} +8 -8
  57. package/dist/{pi-embedded-sQit4Lz3.js → pi-embedded-BoObe4LL.js} +158 -158
  58. package/dist/{pi-embedded-helpers-ag2bosuj.js → pi-embedded-helpers-DEEaCvEp.js} +52 -52
  59. package/dist/plugin-sdk/{accounts-BToL3HlP.js → accounts-BtaOa4z_.js} +1 -1
  60. package/dist/plugin-sdk/{accounts-D9zGZU5t.js → accounts-Ddm33hQm.js} +3 -3
  61. package/dist/plugin-sdk/{accounts-Dtszw3Zn.js → accounts-s-AdhXVR.js} +1 -1
  62. package/dist/plugin-sdk/{active-listener-bEk__wbB.js → active-listener-BXYeALs0.js} +1 -1
  63. package/dist/plugin-sdk/{agent-scope-C3gMMKCU.js → agent-scope-CYYpcO9W.js} +2 -2
  64. package/dist/plugin-sdk/{api-key-rotation-CVBMpnPc.js → api-key-rotation-D_sMvI5W.js} +1 -1
  65. package/dist/plugin-sdk/{audio-preflight-DoQQKlxa.js → audio-preflight-VpItkiy3.js} +24 -24
  66. package/dist/plugin-sdk/{bindings-BbwoUGPx.js → bindings-C7hRtgYW.js} +2 -2
  67. package/dist/plugin-sdk/{channel-activity-Ji7f0gqq.js → channel-activity-DoC1xtDu.js} +1 -1
  68. package/dist/plugin-sdk/{channel-web-DMT6MeJf.js → channel-web-ZDgr_tEt.js} +22 -22
  69. package/dist/plugin-sdk/{chrome-C7c_0I5M.js → chrome-B7RdxmJ0.js} +3 -3
  70. package/dist/plugin-sdk/{chunk-jvk9axTQ.js → chunk-Dw2XBYXv.js} +1 -1
  71. package/dist/plugin-sdk/{command-format-DSdvQ_M5.js → command-format-GKSevep4.js} +1 -1
  72. package/dist/plugin-sdk/{commands-registry-CQFbmUMs.js → commands-registry-COIaslGl.js} +4 -4
  73. package/dist/plugin-sdk/{config-DDkdiUOR.js → config-KlTNfkFF.js} +9 -9
  74. package/dist/plugin-sdk/{deliver-BZ6iNLl7.js → deliver-BZ99UKQq.js} +10 -10
  75. package/dist/plugin-sdk/{diagnostic-mFf4i4G9.js → diagnostic-05pm5Rxi.js} +1 -1
  76. package/dist/plugin-sdk/{image-BOYy0Ump.js → image-CLOPx7yW.js} +4 -4
  77. package/dist/plugin-sdk/{image-ops-Bnp6LXEx.js → image-ops-BlQR__MN.js} +1 -1
  78. package/dist/plugin-sdk/index.js +53 -53
  79. package/dist/plugin-sdk/{ir-Fb3qpcis.js → ir-BJ6BHE5b.js} +4 -4
  80. package/dist/plugin-sdk/{local-roots-Ckk1QfzI.js → local-roots-BHLNSI8U.js} +3 -3
  81. package/dist/plugin-sdk/{login-Bh3DZPam.js → login-DQMXuxOk.js} +7 -7
  82. package/dist/plugin-sdk/{login-qr-DbR7odSr.js → login-qr-BjVZSoCi.js} +9 -9
  83. package/dist/plugin-sdk/{manager-DckktAQ3.js → manager-CBSBFuFz.js} +8 -8
  84. package/dist/plugin-sdk/{manifest-registry-B3ugY9-f.js → manifest-registry-CPnHl_K3.js} +1 -1
  85. package/dist/plugin-sdk/{markdown-tables-Dfaqilz6.js → markdown-tables-BoYFajMu.js} +1 -1
  86. package/dist/{message-channel-Dz5lr5b0.js → plugin-sdk/message-channel-COTAJzHd.js} +1 -1
  87. package/dist/plugin-sdk/{model-selection-OpU8HN50.js → model-selection-CsbEfrS0.js} +4 -4
  88. package/dist/plugin-sdk/{outbound-rF6G8Xpr.js → outbound-B0e8KdaR.js} +7 -7
  89. package/dist/plugin-sdk/{outbound-attachment-DnVQfTG2.js → outbound-attachment-CnslKL38.js} +2 -2
  90. package/dist/plugin-sdk/{pi-auth-json-CJk8t14T.js → pi-auth-json-qWi7ZIYV.js} +5 -5
  91. package/dist/plugin-sdk/{pi-embedded-helpers-BveUP4hk.js → pi-embedded-helpers-CW630epe.js} +17 -17
  92. package/dist/plugin-sdk/{plugins-BbAvhC25.js → plugins-BNByVCIH.js} +4 -4
  93. package/dist/plugin-sdk/{pw-ai-DjGUsee-.js → pw-ai-CnbPIPY9.js} +8 -8
  94. package/dist/plugin-sdk/{qmd-manager-mjKcdwVr.js → qmd-manager-CH0XbIHf.js} +4 -4
  95. package/dist/plugin-sdk/{registry--_pGht6S.js → registry-D0xTnUWt.js} +2 -2
  96. package/dist/{replies-BIX_isV7.js → plugin-sdk/replies-LLcQL3w6.js} +3 -3
  97. package/dist/plugin-sdk/{reply-ZvqOk3M5.js → reply-B6dnSZL8.js} +78 -78
  98. package/dist/plugin-sdk/{reply-prefix-BHuV5t70.js → reply-prefix-uxfMZW4p.js} +1 -1
  99. package/dist/plugin-sdk/{resolve-outbound-target-BkCUbYGV.js → resolve-outbound-target-BiyAyTWz.js} +2 -2
  100. package/dist/plugin-sdk/{resolve-route-D3JH_D2N.js → resolve-route-B3CCBumQ.js} +3 -3
  101. package/dist/plugin-sdk/{retry-ilSJqnz9.js → retry-CwQ_iIj8.js} +1 -1
  102. package/dist/plugin-sdk/{runner-BVqnEfNe.js → runner-CGBT7tgF.js} +9 -9
  103. package/dist/plugin-sdk/{send-BtANzsAo.js → send-B2CEnVLL.js} +6 -6
  104. package/dist/plugin-sdk/{send-BHbXh8Ly.js → send-C5h_YxNb.js} +7 -7
  105. package/dist/plugin-sdk/{send-D6LMZJ_h.js → send-CRsR8-vO.js} +10 -10
  106. package/dist/plugin-sdk/{send-Bxdu6ZZy.js → send-CjOBB3Vo.js} +10 -10
  107. package/dist/plugin-sdk/{send-BMfJIhCk.js → send-pYqe432l.js} +6 -6
  108. package/dist/plugin-sdk/{session-kI0tzViQ.js → session-BsOrxiMj.js} +4 -4
  109. package/dist/plugin-sdk/{skill-commands-DCNXVERE.js → skill-commands-ff_01_r3.js} +5 -5
  110. package/dist/plugin-sdk/{skills-B1GeRYlu.js → skills-_yTP47Cd.js} +7 -7
  111. package/dist/plugin-sdk/{sqlite-Cq_7Cg4E.js → sqlite-CxAR5ttJ.js} +1 -1
  112. package/dist/plugin-sdk/{store-Do3t33-c.js → store-BdrNabcU.js} +2 -2
  113. package/dist/plugin-sdk/{subsystem-Coz2AgU8.js → subsystem-B2uDN3TV.js} +1 -1
  114. package/dist/plugin-sdk/{tables-DR0NmBeH.js → tables-DNwXwNFa.js} +1 -1
  115. package/dist/plugin-sdk/{target-errors-B7YyMnIi.js → target-errors-Paro1BjP.js} +2 -2
  116. package/dist/plugin-sdk/{thinking-DCNUIAHY.js → thinking-CXqf7WTe.js} +5 -5
  117. package/dist/{tokens-H1H1LiSQ.js → plugin-sdk/tokens-bC3UVmVH.js} +1 -1
  118. package/dist/plugin-sdk/{tool-images-D7Lno-TE.js → tool-images-HJ2sfZDV.js} +2 -2
  119. package/dist/plugin-sdk/{tool-loop-detection-edmW8ZiF.js → tool-loop-detection-BVA6fax-.js} +2 -2
  120. package/dist/plugin-sdk/web-Cs8UsiAE.js +65 -0
  121. package/dist/plugin-sdk/{whatsapp-actions-CcBzDuL-.js → whatsapp-actions-DfseosPO.js} +21 -21
  122. package/dist/{plugins-DQYI3Fr-.js → plugins-C4C9637U.js} +9 -9
  123. package/dist/{program-BiU0lHX2.js → program-Ca2for1-.js} +2 -2
  124. package/dist/{program-context-CzU7uySo.js → program-context-BCUX2Nks.js} +6 -6
  125. package/dist/{prompt-select-styled-CKTbspbT.js → prompt-select-styled-CQHjO6cn.js} +1 -1
  126. package/dist/{prompt-select-styled-DlIBY9IY.js → prompt-select-styled-D4fL09YB.js} +1 -1
  127. package/dist/{pw-ai-Ch7liUOW.js → pw-ai-DhwRiS06.js} +11 -11
  128. package/dist/{qmd-manager-QHUP-_em.js → qmd-manager-DdZh9PHs.js} +7 -7
  129. package/dist/{register.maintenance-5CxvMDBR.js → register.maintenance-C8M0d4fM.js} +5 -5
  130. package/dist/{register.maintenance-CJw1HgBm.js → register.maintenance-CScpju68.js} +4 -4
  131. package/dist/{register.onboard-DdwVdIUR.js → register.onboard-CocXCO2O.js} +2 -2
  132. package/dist/{register.onboard-LcM2w6sE.js → register.onboard-CtjREg9H.js} +2 -2
  133. package/dist/{register.setup-BeJzlxE4.js → register.setup-A2pJJq8s.js} +2 -2
  134. package/dist/{register.setup-CYh_Czyw.js → register.setup-DPUOwOwT.js} +2 -2
  135. package/dist/{register.subclis-EcAY6hbD.js → register.subclis-DxUdic-V.js} +3 -3
  136. package/dist/{registry-CK4e9hn8.js → registry-DP24za6g.js} +17 -17
  137. package/dist/{plugin-sdk/replies-fI39rPGa.js → replies-DpPvWiGF.js} +3 -3
  138. package/dist/{reply-prefix-XlyuyChD.js → reply-prefix-CtL0omgM.js} +1 -1
  139. package/dist/{resolve-route-CZ-1eqw0.js → resolve-route-BVikmvWO.js} +4 -4
  140. package/dist/{retry-Cly39XZB.js → retry-dGG-MbxL.js} +1 -1
  141. package/dist/{run-main-CSuz3Ywa.js → run-main-l7jpr7im.js} +3 -3
  142. package/dist/{runner-D0QUGA_X.js → runner-B_KP4voe.js} +9 -9
  143. package/dist/{send-DeFniOjh.js → send-CHEOWVc8.js} +6 -6
  144. package/dist/{send-WyRqb4WD.js → send-DbcLJb0P.js} +7 -7
  145. package/dist/{send-B1u-LrcS.js → send-DeEosX8F.js} +18 -18
  146. package/dist/{send-CiTGOvEc.js → send-DwKJK3sM.js} +10 -10
  147. package/dist/{send-DW96zgDL.js → send-zSarozV2.js} +6 -6
  148. package/dist/{session-SM36BTsl.js → session-DV1MNlbV.js} +8 -8
  149. package/dist/{skill-commands-BJMb_psG.js → skill-commands-D610IKhm.js} +9 -9
  150. package/dist/{skills-BFekKL7i.js → skills-o5WVqM4V.js} +21 -21
  151. package/dist/{sqlite-DRbx2dhW.js → sqlite-6H6Zw1cs.js} +4 -4
  152. package/dist/{store-C0wvOkae.js → store-vVE6N2mH.js} +2 -2
  153. package/dist/{subsystem-Bs9YvKLa.js → subsystem-DgpxyDQ_.js} +1 -1
  154. package/dist/{tables-DuZspiBu.js → tables-BIWsCKXJ.js} +1 -1
  155. package/dist/{target-errors-Be1SwYlW.js → target-errors-DyItGyW9.js} +2 -2
  156. package/dist/{thinking-CdlENGRW.js → thinking-Ni0HF-w6.js} +5 -5
  157. package/dist/{plugin-sdk/tokens-CWMflosr.js → tokens-c_SLAkVb.js} +1 -1
  158. package/dist/{tool-images-DXB7tqWi.js → tool-images-DBCfXdli.js} +2 -2
  159. package/dist/{tool-loop-detection-Cs8_HCsx.js → tool-loop-detection-Bbc9OPFR.js} +3 -3
  160. package/dist/{update-cli-CIjgCudh.js → update-cli-BerlMjhn.js} +5 -5
  161. package/dist/{update-cli-BnjaBt4l.js → update-cli-DJQ8rqnN.js} +4 -4
  162. package/dist/{web-CIrcbfkd.js → web-DTKwHUfr.js} +57 -57
  163. package/dist/{whatsapp-actions-D1RsnX7P.js → whatsapp-actions-oRQjcdQe.js} +23 -23
  164. package/dist/{workspace-wAaHI8-5.js → workspace-CbvamIU6.js} +6 -6
  165. package/package.json +1 -1
  166. package/dist/plugin-sdk/web-HD4H0sgf.js +0 -65
@@ -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, {
@@ -53046,11 +53046,11 @@ function appendRawStream(payload) {
53046
53046
  if (!rawStreamReady) {
53047
53047
  rawStreamReady = true;
53048
53048
  try {
53049
- fs$1.mkdirSync(path.dirname(RAW_STREAM_PATH), { recursive: true });
53049
+ fsSync.mkdirSync(path.dirname(RAW_STREAM_PATH), { recursive: true });
53050
53050
  } catch {}
53051
53051
  }
53052
53052
  try {
53053
- fs$1.promises.appendFile(RAW_STREAM_PATH, `${JSON.stringify(payload)}\n`);
53053
+ fsSync.promises.appendFile(RAW_STREAM_PATH, `${JSON.stringify(payload)}\n`);
53054
53054
  } catch {}
53055
53055
  }
53056
53056
 
@@ -54510,7 +54510,7 @@ async function recordLoopOutcome(args) {
54510
54510
  if (!args.ctx?.sessionKey) return;
54511
54511
  try {
54512
54512
  const { getDiagnosticSessionState } = await import("./diagnostic-session-state-Bxo4UHOL.js").then((n) => n.n);
54513
- const { recordToolCallOutcome } = await import("./tool-loop-detection-Cs8_HCsx.js");
54513
+ const { recordToolCallOutcome } = await import("./tool-loop-detection-Bbc9OPFR.js");
54514
54514
  recordToolCallOutcome(getDiagnosticSessionState({
54515
54515
  sessionKey: args.ctx.sessionKey,
54516
54516
  sessionId: args.ctx?.agentId
@@ -54531,8 +54531,8 @@ async function runBeforeToolCallHook(args) {
54531
54531
  const params = args.params;
54532
54532
  if (args.ctx?.sessionKey) {
54533
54533
  const { getDiagnosticSessionState } = await import("./diagnostic-session-state-Bxo4UHOL.js").then((n) => n.n);
54534
- const { logToolLoopAction } = await import("./diagnostic-CI0kRQkt.js").then((n) => n.n);
54535
- 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");
54536
54536
  const sessionState = getDiagnosticSessionState({
54537
54537
  sessionKey: args.ctx.sessionKey,
54538
54538
  sessionId: args.ctx?.agentId
@@ -56240,8 +56240,8 @@ async function readWorkspaceContextForSummary() {
56240
56240
  const workspaceDir = process.cwd();
56241
56241
  const agentsPath = path.join(workspaceDir, "AGENTS.md");
56242
56242
  try {
56243
- if (!fs$1.existsSync(agentsPath)) return "";
56244
- 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"]);
56245
56245
  if (sections.length === 0) return "";
56246
56246
  const combined = sections.join("\n\n");
56247
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>`;
@@ -59608,7 +59608,7 @@ async function runEmbeddedPiAgent(params) {
59608
59608
  return;
59609
59609
  }
59610
59610
  if (model.provider === "github-copilot") {
59611
- 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);
59612
59612
  const copilotToken = await resolveCopilotApiToken({ githubToken: apiKeyInfo.apiKey });
59613
59613
  authStorage.setRuntimeApiKey(model.provider, copilotToken.token);
59614
59614
  } else authStorage.setRuntimeApiKey(model.provider, apiKeyInfo.apiKey);
@@ -60319,27 +60319,27 @@ async function runAgentTurn(params) {
60319
60319
  function createDefaultDeps() {
60320
60320
  return {
60321
60321
  sendMessageWhatsApp: async (...args) => {
60322
- const { sendMessageWhatsApp } = await import("./web-CIrcbfkd.js");
60322
+ const { sendMessageWhatsApp } = await import("./web-DTKwHUfr.js");
60323
60323
  return await sendMessageWhatsApp(...args);
60324
60324
  },
60325
60325
  sendMessageTelegram: async (...args) => {
60326
- const { sendMessageTelegram } = await import("./send-B1u-LrcS.js").then((n) => n.l);
60326
+ const { sendMessageTelegram } = await import("./send-DeEosX8F.js").then((n) => n.l);
60327
60327
  return await sendMessageTelegram(...args);
60328
60328
  },
60329
60329
  sendMessageDiscord: async (...args) => {
60330
- const { sendMessageDiscord } = await import("./send-CiTGOvEc.js").then((n) => n.t);
60330
+ const { sendMessageDiscord } = await import("./send-DwKJK3sM.js").then((n) => n.t);
60331
60331
  return await sendMessageDiscord(...args);
60332
60332
  },
60333
60333
  sendMessageSlack: async (...args) => {
60334
- const { sendMessageSlack } = await import("./send-DeFniOjh.js").then((n) => n.n);
60334
+ const { sendMessageSlack } = await import("./send-CHEOWVc8.js").then((n) => n.n);
60335
60335
  return await sendMessageSlack(...args);
60336
60336
  },
60337
60337
  sendMessageSignal: async (...args) => {
60338
- const { sendMessageSignal } = await import("./send-DW96zgDL.js").then((n) => n.i);
60338
+ const { sendMessageSignal } = await import("./send-zSarozV2.js").then((n) => n.i);
60339
60339
  return await sendMessageSignal(...args);
60340
60340
  },
60341
60341
  sendMessageIMessage: async (...args) => {
60342
- const { sendMessageIMessage } = await import("./send-WyRqb4WD.js").then((n) => n.n);
60342
+ const { sendMessageIMessage } = await import("./send-DbcLJb0P.js").then((n) => n.n);
60343
60343
  return await sendMessageIMessage(...args);
60344
60344
  }
60345
60345
  };
@@ -65218,7 +65218,7 @@ async function monitorIMessageProvider(opts = {}) {
65218
65218
  function readFileIfExists(filePath) {
65219
65219
  if (!filePath) return;
65220
65220
  try {
65221
- return fs$1.readFileSync(filePath, "utf-8").trim();
65221
+ return fsSync.readFileSync(filePath, "utf-8").trim();
65222
65222
  } catch {
65223
65223
  return;
65224
65224
  }
@@ -65779,7 +65779,7 @@ async function downloadLineMedia(messageId, channelAccessToken, maxBytes = 10 *
65779
65779
  prefix: "line-media",
65780
65780
  extension: getExtensionForContentType(contentType)
65781
65781
  });
65782
- await fs$1.promises.writeFile(filePath, buffer);
65782
+ await fsSync.promises.writeFile(filePath, buffer);
65783
65783
  logVerbose(`line: downloaded media ${messageId} to ${filePath} (${buffer.length} bytes)`);
65784
65784
  return {
65785
65785
  path: filePath,
@@ -70766,7 +70766,7 @@ function readSlackExternalArgMenuToken(raw) {
70766
70766
  }
70767
70767
  let commandsRegistry;
70768
70768
  async function getCommandsRegistry() {
70769
- if (!commandsRegistry) commandsRegistry = await import("./commands-registry-D7CTCQPm.js").then((n) => n.n);
70769
+ if (!commandsRegistry) commandsRegistry = await import("./commands-registry-VSmULp-g.js").then((n) => n.n);
70770
70770
  return commandsRegistry;
70771
70771
  }
70772
70772
  function encodeSlackCommandArgValue(parts) {
@@ -71108,11 +71108,11 @@ async function registerSlackMonitorSlashCommands(params) {
71108
71108
  const channelName = channelInfo?.name;
71109
71109
  const roomLabel = channelName ? `#${channelName}` : `#${command.channel_id}`;
71110
71110
  const [{ resolveAgentRoute }, { finalizeInboundContext }, { dispatchReplyWithDispatcher }] = await Promise.all([
71111
- import("./resolve-route-CZ-1eqw0.js").then((n) => n.r),
71111
+ import("./resolve-route-BVikmvWO.js").then((n) => n.r),
71112
71112
  import("./inbound-context-BlHX0H3E.js").then((n) => n.n),
71113
71113
  Promise.resolve().then(() => provider_dispatcher_exports)
71114
71114
  ]);
71115
- const [{ resolveConversationLabel }, { createReplyPrefixOptions }] = await Promise.all([import("./conversation-label-DXUkoKcB.js").then((n) => n.t), import("./reply-prefix-XlyuyChD.js").then((n) => n.n)]);
71115
+ const [{ resolveConversationLabel }, { createReplyPrefixOptions }] = await Promise.all([import("./conversation-label-DXUkoKcB.js").then((n) => n.t), import("./reply-prefix-CtL0omgM.js").then((n) => n.n)]);
71116
71116
  const route = resolveAgentRoute({
71117
71117
  cfg,
71118
71118
  channel: "slack",
@@ -71169,9 +71169,9 @@ async function registerSlackMonitorSlashCommands(params) {
71169
71169
  });
71170
71170
  const deliverSlashPayloads = async (replies) => {
71171
71171
  const [{ deliverSlackSlashReplies }, { resolveChunkMode }, { resolveMarkdownTableMode }] = await Promise.all([
71172
- import("./replies-BIX_isV7.js").then((n) => n.r),
71173
- import("./chunk-BW5f05BR.js").then((n) => n.s),
71174
- import("./markdown-tables-iMQQZu4Q.js").then((n) => n.t)
71172
+ import("./replies-DpPvWiGF.js").then((n) => n.r),
71173
+ import("./chunk-ClbN9Pqy.js").then((n) => n.s),
71174
+ import("./markdown-tables-DSHvnTLx.js").then((n) => n.t)
71175
71175
  ]);
71176
71176
  await deliverSlackSlashReplies({
71177
71177
  replies,
@@ -71224,7 +71224,7 @@ async function registerSlackMonitorSlashCommands(params) {
71224
71224
  let nativeCommands = [];
71225
71225
  if (nativeEnabled) {
71226
71226
  reg = await getCommandsRegistry();
71227
- const skillCommands = nativeSkillsEnabled ? (await import("./skill-commands-BJMb_psG.js").then((n) => n.a)).listSkillCommandsForAgents({ cfg }) : [];
71227
+ const skillCommands = nativeSkillsEnabled ? (await import("./skill-commands-D610IKhm.js").then((n) => n.a)).listSkillCommandsForAgents({ cfg }) : [];
71228
71228
  nativeCommands = reg.listNativeCommandSpecsForConfig(cfg, {
71229
71229
  skillCommands,
71230
71230
  provider: "slack"
@@ -73442,7 +73442,7 @@ const buildTelegramMessageContext = async ({ primaryCtx, allMedia, storeAllowFro
73442
73442
  const hasAudio = allMedia.some((media) => media.contentType?.startsWith("audio/"));
73443
73443
  let preflightTranscript;
73444
73444
  if (isGroup && requireMention && hasAudio && !hasUserText && mentionRegexes.length > 0) try {
73445
- const { transcribeFirstAudio } = await import("./audio-preflight-D02HwB-I.js");
73445
+ const { transcribeFirstAudio } = await import("./audio-preflight-BkIfnmpi.js");
73446
73446
  preflightTranscript = await transcribeFirstAudio({
73447
73447
  ctx: {
73448
73448
  MediaPaths: allMedia.length > 0 ? allMedia.map((m) => m.path) : void 0,
@@ -75587,23 +75587,23 @@ let webLoginQrPromise = null;
75587
75587
  let webChannelPromise = null;
75588
75588
  let whatsappActionsPromise = null;
75589
75589
  function loadWebOutbound() {
75590
- webOutboundPromise ??= import("./outbound-D4fN_ZlE.js").then((n) => n.t);
75590
+ webOutboundPromise ??= import("./outbound-opDNxv-l.js").then((n) => n.t);
75591
75591
  return webOutboundPromise;
75592
75592
  }
75593
75593
  function loadWebLogin() {
75594
- webLoginPromise ??= import("./login-CwCoxapk.js").then((n) => n.n);
75594
+ webLoginPromise ??= import("./login-B8uiUAnV.js").then((n) => n.n);
75595
75595
  return webLoginPromise;
75596
75596
  }
75597
75597
  function loadWebLoginQr() {
75598
- webLoginQrPromise ??= import("./login-qr-Batf3PT5.js");
75598
+ webLoginQrPromise ??= import("./login-qr-CIZk8uKX.js");
75599
75599
  return webLoginQrPromise;
75600
75600
  }
75601
75601
  function loadWebChannel() {
75602
- webChannelPromise ??= import("./web-CIrcbfkd.js");
75602
+ webChannelPromise ??= import("./web-DTKwHUfr.js");
75603
75603
  return webChannelPromise;
75604
75604
  }
75605
75605
  function loadWhatsAppActions() {
75606
- whatsappActionsPromise ??= import("./whatsapp-actions-D1RsnX7P.js");
75606
+ whatsappActionsPromise ??= import("./whatsapp-actions-oRQjcdQe.js");
75607
75607
  return whatsappActionsPromise;
75608
75608
  }
75609
75609
  function createPluginRuntime() {
@@ -75824,7 +75824,7 @@ const resolvePluginSdkAliasFile = (params) => {
75824
75824
  const srcCandidate = path.join(cursor, "src", "plugin-sdk", params.srcFile);
75825
75825
  const distCandidate = path.join(cursor, "dist", "plugin-sdk", params.distFile);
75826
75826
  const orderedCandidates = isTest ? [distCandidate, srcCandidate] : [distCandidate];
75827
- for (const candidate of orderedCandidates) if (fs$1.existsSync(candidate)) return candidate;
75827
+ for (const candidate of orderedCandidates) if (fsSync.existsSync(candidate)) return candidate;
75828
75828
  const parent = path.dirname(cursor);
75829
75829
  if (parent === cursor) break;
75830
75830
  cursor = parent;
@@ -77976,7 +77976,7 @@ async function compactEmbeddedPiSessionDirect(params) {
77976
77976
  if (!apiKeyInfo.apiKey) {
77977
77977
  if (apiKeyInfo.mode !== "aws-sdk") throw new Error(`No API key resolved for provider "${model.provider}" (auth mode: ${apiKeyInfo.mode}).`);
77978
77978
  } else if (model.provider === "github-copilot") {
77979
- const { resolveCopilotApiToken } = await import("./github-copilot-token-C_qUP7p5.js").then((n) => n.n);
77979
+ const { resolveCopilotApiToken } = await import("./github-copilot-token-DJqsJ2-r.js").then((n) => n.n);
77980
77980
  const copilotToken = await resolveCopilotApiToken({ githubToken: apiKeyInfo.apiKey });
77981
77981
  authStorage.setRuntimeApiKey(model.provider, copilotToken.token);
77982
77982
  } else authStorage.setRuntimeApiKey(model.provider, apiKeyInfo.apiKey);