@symerian/symi 2.6.18 → 2.6.19

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 (163) hide show
  1. package/dist/{agents-BEWe0DLk.js → agents-CrSpoNsS.js} +4 -4
  2. package/dist/{agents.config-C76tSodQ.js → agents.config-B3GILTs5.js} +1 -1
  3. package/dist/{agents.config-DxYp0zoG.js → agents.config-Co1CO8fA.js} +1 -1
  4. package/dist/{auth-choice-EwOsmB_b.js → auth-choice-BBmXnDnK.js} +1 -1
  5. package/dist/{auth-choice-DrYJKB8t.js → auth-choice-BHWxDJh7.js} +1 -1
  6. package/dist/{banner-CJyz7ro7.js → banner-RLiOIu-3.js} +1 -1
  7. package/dist/build-info.json +3 -3
  8. package/dist/bundled/boot-md/handler.js +1 -1
  9. package/dist/bundled/session-memory/handler.js +1 -1
  10. package/dist/canvas-host/a2ui/.bundle.hash +1 -1
  11. package/dist/{channel-options-tWyK68mk.js → channel-options-BCK41AON.js} +1 -1
  12. package/dist/{channel-options-D0NlH6Qb.js → channel-options-PDf46S-K.js} +1 -1
  13. package/dist/{channel-web-PvWA2ukO.js → channel-web-C3XZ7c2q.js} +1 -1
  14. package/dist/{channels-cli-B50IZ27a.js → channels-cli-723vy6L6.js} +4 -4
  15. package/dist/{channels-cli-BAXmmIxX.js → channels-cli-CUWuD7qf.js} +4 -4
  16. package/dist/{cli-BW4igUHG.js → cli-CAzmrOs0.js} +1 -1
  17. package/dist/{cli-CPKEDe6C.js → cli-DYdRSi_j.js} +1 -1
  18. package/dist/{command-registry-DV-FTDz1.js → command-registry-B2aO0Q7_.js} +9 -9
  19. package/dist/{completion-cli-BqzmOZg7.js → completion-cli-BKm12loU.js} +1 -1
  20. package/dist/{completion-cli-Cbr2b-rs.js → completion-cli-BsKD_vBb.js} +2 -2
  21. package/dist/{config-cli-D5QqQi4y.js → config-cli-Bynmd81Q.js} +1 -1
  22. package/dist/{config-cli-DBjlHFwQ.js → config-cli-D47lU7kU.js} +1 -1
  23. package/dist/{configure-B4VAN-WJ.js → configure-B3vS2Iz5.js} +3 -3
  24. package/dist/{configure-DbTH7t_m.js → configure-Df6GmKAR.js} +3 -3
  25. package/dist/{doctor-completion-v8uq--hy.js → doctor-completion-DyiRkYT4.js} +1 -1
  26. package/dist/{doctor-completion-Do0e0eZE.js → doctor-completion-SEerte2S.js} +1 -1
  27. package/dist/entry.js +1 -1
  28. package/dist/extensionAPI.js +1 -1
  29. package/dist/{gateway-cli-BAiFaCGg.js → gateway-cli-PjmG0pFo.js} +9 -9
  30. package/dist/{gateway-cli-BkOe3JQ_.js → gateway-cli-k19iT2vJ.js} +9 -9
  31. package/dist/{glass-ui-ws-B8V4Slwd.js → glass-ui-ws-D0Yv090T.js} +7 -7
  32. package/dist/{glass-ui-ws-DFAQWoiK.js → glass-ui-ws-iCEtluQU.js} +7 -7
  33. package/dist/{health-B3pwVJ_N.js → health-B32Q-KYM.js} +1 -1
  34. package/dist/{health-8bTzq722.js → health-CXjAtn1-.js} +1 -1
  35. package/dist/{hooks-cli-Vqz0A84F.js → hooks-cli-DA6zOGNz.js} +2 -2
  36. package/dist/{hooks-cli-D1Yhb7y5.js → hooks-cli-DfRmFenH.js} +2 -2
  37. package/dist/index.js +6 -6
  38. package/dist/llm-slug-generator.js +1 -1
  39. package/dist/{models-cli-EP_U-tWq.js → models-cli-BgCUViRO.js} +2 -2
  40. package/dist/{models-cli-BrDyN5KN.js → models-cli-CbJUD_L1.js} +3 -3
  41. package/dist/{models-BQOnDzS9.js → models-zowe4LXa.js} +2 -2
  42. package/dist/{onboard-BZNptre7.js → onboard-CYvIpUXQ.js} +2 -2
  43. package/dist/{onboard-DM0BChC6.js → onboard-DsKgcThj.js} +2 -2
  44. package/dist/{onboard-channels-4jeB30Ty.js → onboard-channels-DLiV4Y0t.js} +1 -1
  45. package/dist/{onboard-channels-C6dLmiYY.js → onboard-channels-DxCGWgB0.js} +1 -1
  46. package/dist/{onboarding-CDdiYaCC.js → onboarding-BA5v1JEG.js} +3 -3
  47. package/dist/{onboarding-DQJQ-k9A.js → onboarding-DioGtMFo.js} +3 -3
  48. package/dist/{onboarding.finalize-Bmd5TpyH.js → onboarding.finalize-CAbRXb0h.js} +5 -5
  49. package/dist/{onboarding.finalize-B82xL12C.js → onboarding.finalize-DMXCA49f.js} +6 -6
  50. package/dist/{pi-embedded-Dtmwbds4.js → pi-embedded-CFFnZEcA.js} +7 -228
  51. package/dist/{plugin-registry-DG_WWCr9.js → plugin-registry-Bt5YCgFq.js} +1 -1
  52. package/dist/{plugin-registry-D7ylmzDw.js → plugin-registry-HFOrv3KN.js} +1 -1
  53. package/dist/plugin-sdk/{accounts-BToL3HlP.js → accounts-BtaOa4z_.js} +1 -1
  54. package/dist/plugin-sdk/{accounts-D9zGZU5t.js → accounts-Ddm33hQm.js} +3 -3
  55. package/dist/plugin-sdk/{accounts-Dtszw3Zn.js → accounts-s-AdhXVR.js} +1 -1
  56. package/dist/plugin-sdk/{active-listener-bEk__wbB.js → active-listener-BXYeALs0.js} +1 -1
  57. package/dist/plugin-sdk/{agent-scope-C3gMMKCU.js → agent-scope-CYYpcO9W.js} +2 -2
  58. package/dist/plugin-sdk/{api-key-rotation-CVBMpnPc.js → api-key-rotation-D_sMvI5W.js} +1 -1
  59. package/dist/plugin-sdk/{audio-preflight-DoQQKlxa.js → audio-preflight-VpItkiy3.js} +24 -24
  60. package/dist/plugin-sdk/{bindings-BbwoUGPx.js → bindings-C7hRtgYW.js} +2 -2
  61. package/dist/plugin-sdk/{channel-activity-Ji7f0gqq.js → channel-activity-DoC1xtDu.js} +1 -1
  62. package/dist/plugin-sdk/{channel-web-_efq-pM9.js → channel-web-E56yV1OA.js} +22 -22
  63. package/dist/plugin-sdk/{chrome-C7c_0I5M.js → chrome-B7RdxmJ0.js} +3 -3
  64. package/dist/plugin-sdk/{chunk-jvk9axTQ.js → chunk-Dw2XBYXv.js} +1 -1
  65. package/dist/plugin-sdk/{command-format-DSdvQ_M5.js → command-format-GKSevep4.js} +1 -1
  66. package/dist/plugin-sdk/{commands-registry-CQFbmUMs.js → commands-registry-COIaslGl.js} +4 -4
  67. package/dist/plugin-sdk/{config-DDkdiUOR.js → config-KlTNfkFF.js} +9 -9
  68. package/dist/plugin-sdk/{deliver-BZ6iNLl7.js → deliver-BZ99UKQq.js} +10 -10
  69. package/dist/plugin-sdk/{diagnostic-mFf4i4G9.js → diagnostic-05pm5Rxi.js} +1 -1
  70. package/dist/plugin-sdk/{image-BOYy0Ump.js → image-CLOPx7yW.js} +4 -4
  71. package/dist/plugin-sdk/{image-ops-Bnp6LXEx.js → image-ops-BlQR__MN.js} +1 -1
  72. package/dist/plugin-sdk/index.js +53 -53
  73. package/dist/plugin-sdk/{ir-Fb3qpcis.js → ir-BJ6BHE5b.js} +4 -4
  74. package/dist/plugin-sdk/{local-roots-Ckk1QfzI.js → local-roots-BHLNSI8U.js} +3 -3
  75. package/dist/plugin-sdk/{login-Bh3DZPam.js → login-DQMXuxOk.js} +7 -7
  76. package/dist/plugin-sdk/{login-qr-DbR7odSr.js → login-qr-BjVZSoCi.js} +9 -9
  77. package/dist/plugin-sdk/{manager-DckktAQ3.js → manager-CBSBFuFz.js} +8 -8
  78. package/dist/plugin-sdk/{manifest-registry-B3ugY9-f.js → manifest-registry-CPnHl_K3.js} +1 -1
  79. package/dist/plugin-sdk/{markdown-tables-Dfaqilz6.js → markdown-tables-BoYFajMu.js} +1 -1
  80. package/dist/plugin-sdk/{message-channel-BdI5Ra9S.js → message-channel-COTAJzHd.js} +1 -1
  81. package/dist/plugin-sdk/{model-selection-OpU8HN50.js → model-selection-CsbEfrS0.js} +4 -4
  82. package/dist/plugin-sdk/{outbound-rF6G8Xpr.js → outbound-B0e8KdaR.js} +7 -7
  83. package/dist/plugin-sdk/{outbound-attachment-DnVQfTG2.js → outbound-attachment-CnslKL38.js} +2 -2
  84. package/dist/plugin-sdk/{pi-auth-json-CJk8t14T.js → pi-auth-json-qWi7ZIYV.js} +5 -5
  85. package/dist/plugin-sdk/{pi-embedded-helpers-BveUP4hk.js → pi-embedded-helpers-CW630epe.js} +17 -17
  86. package/dist/plugin-sdk/{plugins-BbAvhC25.js → plugins-BNByVCIH.js} +4 -4
  87. package/dist/plugin-sdk/{pw-ai-DjGUsee-.js → pw-ai-CnbPIPY9.js} +8 -8
  88. package/dist/plugin-sdk/{qmd-manager-mjKcdwVr.js → qmd-manager-CH0XbIHf.js} +4 -4
  89. package/dist/plugin-sdk/{registry--_pGht6S.js → registry-D0xTnUWt.js} +2 -2
  90. package/dist/plugin-sdk/{replies-fI39rPGa.js → replies-LLcQL3w6.js} +3 -3
  91. package/dist/plugin-sdk/{reply-D2W7XCcz.js → reply-pPqvSkWb.js} +82 -303
  92. package/dist/plugin-sdk/{reply-prefix-BHuV5t70.js → reply-prefix-uxfMZW4p.js} +1 -1
  93. package/dist/plugin-sdk/{resolve-outbound-target-BkCUbYGV.js → resolve-outbound-target-BiyAyTWz.js} +2 -2
  94. package/dist/plugin-sdk/{resolve-route-D3JH_D2N.js → resolve-route-B3CCBumQ.js} +3 -3
  95. package/dist/plugin-sdk/{retry-ilSJqnz9.js → retry-CwQ_iIj8.js} +1 -1
  96. package/dist/plugin-sdk/{runner-BVqnEfNe.js → runner-CGBT7tgF.js} +9 -9
  97. package/dist/plugin-sdk/{send-BtANzsAo.js → send-B2CEnVLL.js} +6 -6
  98. package/dist/plugin-sdk/{send-BHbXh8Ly.js → send-C5h_YxNb.js} +7 -7
  99. package/dist/plugin-sdk/{send-D6LMZJ_h.js → send-CRsR8-vO.js} +10 -10
  100. package/dist/plugin-sdk/{send-Bxdu6ZZy.js → send-CjOBB3Vo.js} +10 -10
  101. package/dist/plugin-sdk/{send-BMfJIhCk.js → send-pYqe432l.js} +6 -6
  102. package/dist/plugin-sdk/{session-kI0tzViQ.js → session-BsOrxiMj.js} +4 -4
  103. package/dist/plugin-sdk/{skill-commands-DCNXVERE.js → skill-commands-ff_01_r3.js} +5 -5
  104. package/dist/plugin-sdk/{skills-B1GeRYlu.js → skills-_yTP47Cd.js} +7 -7
  105. package/dist/plugin-sdk/{sqlite-Cq_7Cg4E.js → sqlite-CxAR5ttJ.js} +1 -1
  106. package/dist/plugin-sdk/{store-Do3t33-c.js → store-BdrNabcU.js} +2 -2
  107. package/dist/plugin-sdk/{subsystem-Coz2AgU8.js → subsystem-B2uDN3TV.js} +1 -1
  108. package/dist/plugin-sdk/{tables-DR0NmBeH.js → tables-DNwXwNFa.js} +1 -1
  109. package/dist/plugin-sdk/{target-errors-B7YyMnIi.js → target-errors-Paro1BjP.js} +2 -2
  110. package/dist/plugin-sdk/{thinking-DCNUIAHY.js → thinking-CXqf7WTe.js} +5 -5
  111. package/dist/plugin-sdk/{tokens-CWMflosr.js → tokens-bC3UVmVH.js} +1 -1
  112. package/dist/plugin-sdk/{tool-images-D7Lno-TE.js → tool-images-HJ2sfZDV.js} +2 -2
  113. package/dist/plugin-sdk/{tool-loop-detection-DU5sTIKg.js → tool-loop-detection-at_K42K7.js} +2 -2
  114. package/dist/plugin-sdk/web-Msnzya6B.js +65 -0
  115. package/dist/plugin-sdk/{whatsapp-actions-CcBzDuL-.js → whatsapp-actions-DfseosPO.js} +21 -21
  116. package/dist/{plugins-cli-BUFrZlyR.js → plugins-cli-C7xTf9NV.js} +2 -2
  117. package/dist/{plugins-cli-CMCwFRL9.js → plugins-cli-CXz_UApK.js} +2 -2
  118. package/dist/{program-BdVazL5L.js → program-8hWr4qGZ.js} +7 -7
  119. package/dist/{program-context-DZNOBe-u.js → program-context-BBtSJunF.js} +17 -17
  120. package/dist/{prompt-select-styled-uLoOKbdZ.js → prompt-select-styled-CwfroEHp.js} +4 -4
  121. package/dist/{prompt-select-styled-XyOMjPBV.js → prompt-select-styled-DUXeA9Zp.js} +4 -4
  122. package/dist/{provider-auth-helpers-D01YbcHZ.js → provider-auth-helpers-Dc7jBEOA.js} +1 -1
  123. package/dist/{provider-auth-helpers-CWf7gdZW.js → provider-auth-helpers-DhLHWjNU.js} +1 -1
  124. package/dist/{push-apns-B-zVLcnN.js → push-apns-CVZe5WVN.js} +1 -1
  125. package/dist/{push-apns-B2bxLda8.js → push-apns-CflJh75N.js} +1 -1
  126. package/dist/{register.agent-BYZEiWk1.js → register.agent-BnuJQ5lg.js} +6 -6
  127. package/dist/{register.agent-BF6_rPdM.js → register.agent-DV7IR1rI.js} +5 -5
  128. package/dist/{register.configure-4lt1A0NF.js → register.configure-BhncI0ij.js} +6 -6
  129. package/dist/{register.configure-B0g-yfDR.js → register.configure-DaIrJXWo.js} +6 -6
  130. package/dist/{register.maintenance-WBpgdygw.js → register.maintenance-BO1XWhVb.js} +7 -7
  131. package/dist/{register.maintenance-DXZyjFYw.js → register.maintenance-DK_p-7so.js} +8 -8
  132. package/dist/{register.message-CuoXu-_e.js → register.message-B194ue2R.js} +2 -2
  133. package/dist/{register.message-BHRBK4eH.js → register.message-B4CGCAn_.js} +2 -2
  134. package/dist/{register.onboard-D5-L8JYT.js → register.onboard-DidMCka8.js} +4 -4
  135. package/dist/{register.onboard-D-P9Wc41.js → register.onboard-Dt53qGB5.js} +4 -4
  136. package/dist/{register.setup-BzmkdzSO.js → register.setup-CLV1kk2-.js} +4 -4
  137. package/dist/{register.setup-D7NNQwXc.js → register.setup-DgUxMRZR.js} +4 -4
  138. package/dist/{register.status-health-sessions-BIwZhPIZ.js → register.status-health-sessions-CB10JLY6.js} +3 -3
  139. package/dist/{register.status-health-sessions-DiCr003h.js → register.status-health-sessions-TvGuwVoR.js} +3 -3
  140. package/dist/{register.subclis-BxbyrMu1.js → register.subclis-elNdyQio.js} +9 -9
  141. package/dist/{reply-BgOOEOPX.js → reply-DUZvOCsG.js} +7 -228
  142. package/dist/{run-main-BW5eFi2Y.js → run-main-gBPGqO8r.js} +14 -14
  143. package/dist/{server-methods-D-Gd1kMo.js → server-methods-BG0N79yY.js} +7 -7
  144. package/dist/{server-methods-Dp8iuEko.js → server-methods-dgW-8gC7.js} +7 -7
  145. package/dist/{server-node-events-B2_RCsYi.js → server-node-events-B_hsQw_N.js} +2 -2
  146. package/dist/{server-node-events-CnjqDQbZ.js → server-node-events-ZtQKBPo3.js} +2 -2
  147. package/dist/{status-CGhoES6L.js → status-BqhJ-HsW.js} +1 -1
  148. package/dist/{status-4PSvL6ui.js → status-Cd9-xWsZ.js} +2 -2
  149. package/dist/{status-kFfqsras.js → status-D-IvYfjk.js} +2 -2
  150. package/dist/{status-CrVk9Tz5.js → status-D4Lr90yH.js} +1 -1
  151. package/dist/{subagent-registry-M6DQwhYN.js → subagent-registry-J2pIBQF7.js} +7 -228
  152. package/dist/{unified-runner-DckayuEM.js → unified-runner-oH9Pt-cO.js} +7 -228
  153. package/dist/{update-cli-DCYkskZu.js → update-cli-B7TLu25J.js} +8 -8
  154. package/dist/{update-cli-x5YGUm9F.js → update-cli-D8nA6U7C.js} +7 -7
  155. package/dist/{update-runner-BIp88-4P.js → update-runner-D8AFB8Oi.js} +1 -1
  156. package/dist/{update-runner-Dmki2xrH.js → update-runner-DvZOsoQs.js} +1 -1
  157. package/dist/{web-1JPHv6du.js → web-0xZpP0WA.js} +1 -1
  158. package/dist/{web-DWSTD7Gy.js → web-CAy-xQv2.js} +1 -1
  159. package/dist/{web-rShvuTx4.js → web-DDiOPIdv.js} +2 -2
  160. package/dist/{web-C40boK8U.js → web-mQInjWbW.js} +1 -1
  161. package/package.json +1 -1
  162. package/dist/plugin-sdk/web-CmT3D7vj.js +0 -65
  163. package/skills/self-inspect/SKILL.md +0 -109
@@ -2,7 +2,7 @@ import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
2
2
  import { c as expandHomePrefix, i as resolveGatewayPort, n as resolveConfigPath, s as resolveStateDir, t as STATE_DIR, u as resolveRequiredHomeDir } from "./paths-CE7eVGHg.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
4
  import { $ as isRich, A as normalizeE164, D as isRecord$1, E as formatTerminalLink, H as isPlainObject, I as shortenHomeInString, J as setVerbose, K as logVerbose, L as shortenHomePath, P as resolveUserPath, Q as colorize, R as sleep$1, S as clampInt, T as escapeRegExp, U as danger, V as truncateUtf16Safe, Y as shouldLogVerbose, Z as warn, _ as matchPluginCommand, a as normalizeAnyChannelId, b as CONFIG_DIR, d as createPluginRegistry, et as theme, f as normalizePluginHttpPath, g as listPluginCommands, h as getPluginCommandSpecs, l as requireActivePluginRegistry, lt as resolvePreferredSymiTmpDir, m as executePluginCommand, n as CHAT_CHANNEL_ORDER, o as normalizeChannelId, p as clearPluginCommands, r as DEFAULT_CHAT_CHANNEL, st as normalizeLogLevel, tt as getChildLogger, u as setActivePluginRegistry, v as createInternalHookEvent, w as ensureDir$3, y as triggerInternalHook, z as sliceUtf16Safe } from "./registry-BhoUuugi.js";
5
- import { A as logInfo, C as resolveSymiPackageRoot, D as spawnWithFallback, E as runExec, O as logDebug, S as loadWorkspaceBootstrapFiles, T as runCommandWithTimeout, a as resolveAgentModelPrimary, b as ensureAgentWorkspace, c as resolveDefaultAgentId, d as resolveSessionAgentIds, h as DEFAULT_IDENTITY_FILENAME, i as resolveAgentModelFallbacksOverride, j as logWarn, k as logError, l as resolveEffectiveModelFallbacks, m as DEFAULT_BOOTSTRAP_FILENAME, n as resolveAgentConfig, o as resolveAgentSkillsFilter, p as DEFAULT_AGENT_WORKSPACE_DIR, r as resolveAgentDir, s as resolveAgentWorkspaceDir, t as listAgentIds, u as resolveSessionAgentId, w as resolveSymiPackageRootSync, x as filterBootstrapFilesForSession } from "./agent-scope-Cbl5pNe1.js";
5
+ import { A as logInfo, C as resolveSymiPackageRoot, D as spawnWithFallback, E as runExec, O as logDebug, S as loadWorkspaceBootstrapFiles, T as runCommandWithTimeout, a as resolveAgentModelPrimary, b as ensureAgentWorkspace, c as resolveDefaultAgentId, d as resolveSessionAgentIds, h as DEFAULT_IDENTITY_FILENAME, i as resolveAgentModelFallbacksOverride, j as logWarn, k as logError, l as resolveEffectiveModelFallbacks, m as DEFAULT_BOOTSTRAP_FILENAME, n as resolveAgentConfig, o as resolveAgentSkillsFilter, p as DEFAULT_AGENT_WORKSPACE_DIR, r as resolveAgentDir, s as resolveAgentWorkspaceDir, t as listAgentIds, u as resolveSessionAgentId, x as filterBootstrapFilesForSession } from "./agent-scope-Cbl5pNe1.js";
6
6
  import { a as registerActiveProgressLine, i as clearActiveProgressLine, n as createNonExitingRuntime, o as unregisterActiveProgressLine, r as defaultRuntime, t as createSubsystemLogger } from "./subsystem-CZixfwU8.js";
7
7
  import { $ as DEFAULT_PROVIDER, A as resolveShellEnvFallbackTimeoutMs, B as dedupeProfileIds, C as getCustomProviderApiKey, D as resolveModelAuthMode, E as resolveEnvApiKey, F as getSoonestCooldownExpiry, G as resolveSymiAgentDir, H as markAuthProfileGood, I as isProfileInCooldown, K as withFileLock, L as markAuthProfileFailure, O as getShellPathFromLoginShell, P as resolveAuthProfileOrder, Q as DEFAULT_MODEL, R as markAuthProfileUsed, S as getApiKeyForModel, T as resolveApiKeyForProvider, U as ensureAuthProfileStore, V as listProfilesForProvider, W as resolveAuthStorePathForDisplay, X as resolveAuthProfileDisplayLabel, Y as normalizeSecretInput, Z as DEFAULT_CONTEXT_TOKENS, a as isCliProvider, b as OLLAMA_NATIVE_BASE_URL, c as normalizeProviderId, d as resolveDefaultModelForAgent, f as resolveModelRefFromString, i as findNormalizedProviderValue, m as resolveThinkingDefault, n as buildConfiguredAllowlistKeys, o as modelKey, p as resolveSubagentSpawnModelSelection, r as buildModelAliasIndex, s as normalizeModelRef$2, t as buildAllowedModelSet, u as resolveConfiguredModelRef, w as requireApiKey, x as createOllamaStreamFn, z as resolveApiKeyForProfile } from "./model-selection-BQCG9ah0.js";
8
8
  import { a as resolveAgentIdentity, i as resolveAckReaction, o as resolveEffectiveMessagesConfig, r as resolveResponsePrefixTemplate, s as resolveHumanDelayConfig, t as createReplyPrefixOptions } from "./reply-prefix-K_J_nfgx.js";
@@ -39027,30 +39027,6 @@ function setCliSessionId(entry, provider, sessionId) {
39027
39027
  //#endregion
39028
39028
  //#region src/config/model-profiles-builtin.ts
39029
39029
  /**
39030
- * Starter pack — always-on context for models with tool arg corruption.
39031
- * ~500 tokens. Prevents the most common failure patterns.
39032
- * For detailed file modification guides, the self-inspect skill cascades from here.
39033
- */
39034
- const STARTER_PACK = [
39035
- "",
39036
- "YOUR FILES (use read tool directly on these paths — NEVER use exec to find or read files):",
39037
- "- Glass UI CSS: <SYMI_ROOT>/dist/control-ui/css/style.css",
39038
- "- Glass UI HTML: <SYMI_ROOT>/dist/control-ui/index.html",
39039
- "- Glass UI JS: <SYMI_ROOT>/dist/control-ui/js/app.js, gateway.js, render.js, models.js, history.js, symipulse.js, debug.js",
39040
- "- Package: <SYMI_ROOT>/package.json",
39041
- "- Config: ~/.symi/symi.json | Sessions: ~/.symi/agents/main/sessions/ | Memory: ~/.symi/state/memory/",
39042
- "- For detailed modification guides, read the self-inspect skill.",
39043
- "",
39044
- "TOOL RULES (mandatory):",
39045
- "- read/write/edit: Always provide the full absolute path directly. NEVER use exec with cat, head, find, grep, or ls to view files.",
39046
- "- exec/bash: Provide only valid shell syntax. No tags, no tokens, no markup. Spell commands exactly.",
39047
- "- web_search: Always include query argument. Example: web_search({ query: \"search terms\" })",
39048
- "- sessions_spawn: Always include task and mode. Example: sessions_spawn({ label: \"name\", mode: \"run\", task: \"description\" })",
39049
- "",
39050
- "KNOWN SHELL COMMANDS (use exact spelling):",
39051
- "awk basename brew cargo cat chmod chown cp curl cut date dd df diff dig dirname docker du echo env find gcc git go grep gunzip gzip head hostname id ifconfig ip java javac journalctl kill killall launchctl less ln locate ls make man mkdir mktemp more mount mv nc netstat nice node nohup npm npx open paste pbcopy pbpaste ping pip pip3 plutil printf ps pwd python python3 readlink realpath rm rmdir rsync ruby scp sed sleep sort ssh stat strings sudo su sw_vers sysctl system_profiler systemctl tail tar tee test top touch tr type uname uniq unzip wc wget which xargs xz yes zip"
39052
- ];
39053
- /**
39054
39030
  * Built-in model profiles. Ordered from most-specific to least-specific so
39055
39031
  * that `resolveModelProfile` can return the first match.
39056
39032
  *
@@ -39093,8 +39069,7 @@ const BUILTIN_PROFILES = [
39093
39069
  "- Do not write 'Verification:', 'Requirements:', 'Status Check:', or 'Everything is correct'.",
39094
39070
  "- If you need to verify your work, do so before writing your response, not after.",
39095
39071
  "- Send brief progress updates on long tasks so the user knows you are active.",
39096
- "- When calling tools, provide arguments as clean values only. Never include <|, |>, or XML-like tags in tool argument values. For exec/bash commands, provide only valid shell syntax.",
39097
- ...STARTER_PACK
39072
+ "- When calling tools, provide arguments as clean values only. Never include <|, |>, or XML-like tags in tool argument values. For exec/bash commands, provide only valid shell syntax."
39098
39073
  ],
39099
39074
  ui: {
39100
39075
  badge: "Local",
@@ -39166,8 +39141,7 @@ const BUILTIN_PROFILES = [
39166
39141
  "- If you need to verify your work, do so before writing your response, not after.",
39167
39142
  "- Keep planning and reasoning internal. Only speak when you have a result or need user input.",
39168
39143
  "- When working on multi-step tasks, send a brief one-line status update so the user knows you are active.",
39169
- "- When calling tools, provide arguments as clean values only. Never include <|, |>, or XML-like tags in tool argument values. For exec/bash commands, provide only valid shell syntax.",
39170
- ...STARTER_PACK
39144
+ "- When calling tools, provide arguments as clean values only. Never include <|, |>, or XML-like tags in tool argument values. For exec/bash commands, provide only valid shell syntax."
39171
39145
  ],
39172
39146
  ui: {
39173
39147
  badge: "CoreWeave",
@@ -42335,175 +42309,6 @@ function toClientToolDefinitions(tools, onClientToolCall, hookContext) {
42335
42309
  * @module
42336
42310
  */
42337
42311
  /**
42338
- * Known shell commands for prefix deduplication.
42339
- * When token boundary corruption doubles a command prefix (grep → grgrep,
42340
- * ls → lsls), we check the first token against this set. If stripping
42341
- * the repeated prefix yields a known command, use it.
42342
- *
42343
- * O(1) lookup. Zero false positives — no valid command is its own prefix doubled.
42344
- */
42345
- const KNOWN_COMMANDS = new Set([
42346
- "ls",
42347
- "cat",
42348
- "cp",
42349
- "mv",
42350
- "rm",
42351
- "mkdir",
42352
- "rmdir",
42353
- "touch",
42354
- "chmod",
42355
- "chown",
42356
- "chgrp",
42357
- "ln",
42358
- "pwd",
42359
- "echo",
42360
- "printf",
42361
- "head",
42362
- "tail",
42363
- "wc",
42364
- "sort",
42365
- "uniq",
42366
- "cut",
42367
- "tr",
42368
- "tee",
42369
- "xargs",
42370
- "env",
42371
- "date",
42372
- "sleep",
42373
- "true",
42374
- "false",
42375
- "yes",
42376
- "test",
42377
- "expr",
42378
- "basename",
42379
- "dirname",
42380
- "readlink",
42381
- "realpath",
42382
- "mktemp",
42383
- "stat",
42384
- "file",
42385
- "dd",
42386
- "df",
42387
- "du",
42388
- "id",
42389
- "whoami",
42390
- "hostname",
42391
- "uname",
42392
- "grep",
42393
- "egrep",
42394
- "fgrep",
42395
- "find",
42396
- "locate",
42397
- "sed",
42398
- "awk",
42399
- "diff",
42400
- "patch",
42401
- "strings",
42402
- "less",
42403
- "more",
42404
- "tar",
42405
- "gzip",
42406
- "gunzip",
42407
- "zip",
42408
- "unzip",
42409
- "bzip2",
42410
- "xz",
42411
- "curl",
42412
- "wget",
42413
- "ssh",
42414
- "scp",
42415
- "rsync",
42416
- "ping",
42417
- "dig",
42418
- "nslookup",
42419
- "netstat",
42420
- "lsof",
42421
- "nc",
42422
- "ifconfig",
42423
- "ip",
42424
- "ps",
42425
- "top",
42426
- "kill",
42427
- "killall",
42428
- "nohup",
42429
- "nice",
42430
- "which",
42431
- "type",
42432
- "where",
42433
- "man",
42434
- "sudo",
42435
- "su",
42436
- "mount",
42437
- "umount",
42438
- "systemctl",
42439
- "journalctl",
42440
- "launchctl",
42441
- "dmesg",
42442
- "sysctl",
42443
- "git",
42444
- "make",
42445
- "gcc",
42446
- "python",
42447
- "python3",
42448
- "pip",
42449
- "pip3",
42450
- "node",
42451
- "npm",
42452
- "npx",
42453
- "pnpm",
42454
- "yarn",
42455
- "cargo",
42456
- "go",
42457
- "ruby",
42458
- "gem",
42459
- "java",
42460
- "javac",
42461
- "docker",
42462
- "brew",
42463
- "open",
42464
- "pbcopy",
42465
- "pbpaste",
42466
- "defaults",
42467
- "diskutil",
42468
- "sw_vers",
42469
- "system_profiler",
42470
- "plutil",
42471
- "mdfind",
42472
- "mdls",
42473
- "softwareupdate",
42474
- "caffeinate",
42475
- "say",
42476
- "osascript",
42477
- "security",
42478
- "codesign",
42479
- "hdiutil",
42480
- "installer",
42481
- "lipo",
42482
- "otool",
42483
- "dscl",
42484
- "scutil"
42485
- ]);
42486
- /**
42487
- * Fix command prefix duplication from token boundary splits.
42488
- * Token corruption can double a multi-char prefix: grep → grgrep, ls → lsls.
42489
- * Check if the first token starts with a repeated prefix that, when removed,
42490
- * yields a known command.
42491
- *
42492
- * Examples: grgrep → grep, lsls → ls, catcat → cat, curlcurl → curl
42493
- */
42494
- function dedupCommandPrefix(command) {
42495
- const match = command.match(/^([a-zA-Z0-9_-]+)/);
42496
- if (!match) return command;
42497
- const firstToken = match[1];
42498
- if (KNOWN_COMMANDS.has(firstToken)) return command;
42499
- for (let prefixLen = 2; prefixLen <= Math.min(10, Math.floor(firstToken.length / 2)); prefixLen++) {
42500
- const prefix = firstToken.slice(0, prefixLen);
42501
- const candidate = firstToken.slice(prefixLen);
42502
- if (candidate.startsWith(prefix.slice(0, Math.min(prefix.length, candidate.length))) && KNOWN_COMMANDS.has(candidate)) return candidate + command.slice(firstToken.length);
42503
- }
42504
- return command;
42505
- }
42506
- /**
42507
42312
  * Validate that a command string contains extractable valid shell syntax.
42508
42313
  * Returns the cleaned command if valid, or an error reason if not.
42509
42314
  *
@@ -42522,7 +42327,6 @@ function validateShellCommand(command) {
42522
42327
  cleaned = cleaned.replace(/<\|[^|>]*(?:\|>)?/g, "").trim();
42523
42328
  cleaned = cleanResidualTokenFragments(cleaned);
42524
42329
  }
42525
- cleaned = dedupCommandPrefix(cleaned);
42526
42330
  if (!cleaned || !cleaned.trim()) return {
42527
42331
  valid: false,
42528
42332
  cleaned: "",
@@ -46576,18 +46380,7 @@ async function runEmbeddedAttempt(params) {
46576
46380
  const profileModelKey = params.modelId ?? "";
46577
46381
  const modelProfile = resolveModelProfile(profileModelKey, params.config?.models?.profiles);
46578
46382
  log$5.debug(`[profile] resolved: modelId=${profileModelKey} → profile=${modelProfile.label} validateToolArgs=${modelProfile.filters?.validateToolArgs ?? false}`);
46579
- const systemPromptText = createSystemPromptOverride(appendPrompt + (() => {
46580
- if (modelProfile.promptAdditions.length === 0) return "";
46581
- let text = "\n\n" + modelProfile.promptAdditions.join("\n");
46582
- if (text.includes("<SYMI_ROOT>")) {
46583
- const symiRoot = resolveSymiPackageRootSync({
46584
- moduleUrl: import.meta.url,
46585
- argv1: process.argv[1]
46586
- });
46587
- if (symiRoot) text = text.replaceAll("<SYMI_ROOT>", symiRoot);
46588
- }
46589
- return text;
46590
- })())();
46383
+ const systemPromptText = createSystemPromptOverride(appendPrompt + (modelProfile.promptAdditions.length > 0 ? "\n\n" + modelProfile.promptAdditions.join("\n") : ""))();
46591
46384
  const sessionLock = await acquireSessionWriteLock({
46592
46385
  sessionFile: params.sessionFile,
46593
46386
  maxHoldMs: resolveSessionLockMaxHoldFromTimeout({ timeoutMs: params.timeoutMs })
@@ -46861,18 +46654,6 @@ async function runEmbeddedAttempt(params) {
46861
46654
  const TOOL_ERROR_ABORT_THRESHOLD = 5;
46862
46655
  const TOOL_ERROR_WARN_THRESHOLD = 3;
46863
46656
  let consecutiveToolErrors = 0;
46864
- /** Detect exec/bash results that indicate a shell error (non-zero exit, command not found, etc.) */
46865
- const isShellErrorResult = (result) => {
46866
- if (!result || typeof result !== "object") return false;
46867
- const content = result.content;
46868
- if (!Array.isArray(content)) return false;
46869
- const text = content.filter((b) => b && typeof b === "object" && b.type === "text").map((b) => {
46870
- const t = b.text;
46871
- return typeof t === "string" ? t : "";
46872
- }).join("\n");
46873
- if (!text) return false;
46874
- return /exit code [1-9]\d*|command not found|No such file or directory|syntax error|parse error|Permission denied|not recognized|cannot execute/i.test(text);
46875
- };
46876
46657
  const subscription = subscribeEmbeddedPiSession({
46877
46658
  session: activeSession,
46878
46659
  runId: params.runId,
@@ -46898,9 +46679,7 @@ async function runEmbeddedAttempt(params) {
46898
46679
  const phase = typeof evt.data?.phase === "string" ? evt.data.phase : "";
46899
46680
  const isError = evt.data?.isError === true;
46900
46681
  if (phase === "result") {
46901
- const toolName = typeof evt.data?.name === "string" ? evt.data.name : "";
46902
- const isExecShellError = !isError && (toolName === "exec" || toolName === "bash") && isShellErrorResult(evt.data?.result);
46903
- if (isError || isExecShellError) consecutiveToolErrors++;
46682
+ if (isError) consecutiveToolErrors++;
46904
46683
  else consecutiveToolErrors = 0;
46905
46684
  if (consecutiveToolErrors >= TOOL_ERROR_ABORT_THRESHOLD) {
46906
46685
  const toolName = typeof evt.data?.name === "string" ? evt.data.name : "unknown";
@@ -60876,7 +60655,7 @@ function isVoiceChannelType(type) {
60876
60655
  function createDefaultDeps() {
60877
60656
  return {
60878
60657
  sendMessageWhatsApp: async (...args) => {
60879
- const { sendMessageWhatsApp } = await import("./web-C40boK8U.js");
60658
+ const { sendMessageWhatsApp } = await import("./web-mQInjWbW.js");
60880
60659
  return await sendMessageWhatsApp(...args);
60881
60660
  },
60882
60661
  sendMessageTelegram: async (...args) => {
@@ -76156,7 +75935,7 @@ function loadWebLoginQr() {
76156
75935
  return webLoginQrPromise;
76157
75936
  }
76158
75937
  function loadWebChannel() {
76159
- webChannelPromise ??= import("./web-C40boK8U.js");
75938
+ webChannelPromise ??= import("./web-mQInjWbW.js");
76160
75939
  return webChannelPromise;
76161
75940
  }
76162
75941
  function loadWhatsAppActions() {
@@ -2,7 +2,7 @@ import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
2
2
  import { M as getActivePluginRegistry, o as createSubsystemLogger } from "./entry.js";
3
3
  import { c as resolveAgentWorkspaceDir, l as resolveDefaultAgentId } from "./agent-scope-D-jRCY0d.js";
4
4
  import { i as loadConfig } from "./config-DHBLS1Hl.js";
5
- import { m as loadSymiPlugins } from "./subagent-registry-M6DQwhYN.js";
5
+ import { m as loadSymiPlugins } from "./subagent-registry-J2pIBQF7.js";
6
6
 
7
7
  //#region src/cli/plugin-registry.ts
8
8
  var plugin_registry_exports = /* @__PURE__ */ __exportAll({ ensurePluginRegistryLoaded: () => ensurePluginRegistryLoaded });
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
2
- import { ft as loadSymiPlugins } from "./reply-BgOOEOPX.js";
2
+ import { ft as loadSymiPlugins } from "./reply-DUZvOCsG.js";
3
3
  import { d as getActivePluginRegistry } from "./registry-Cja8eT7G.js";
4
4
  import { t as createSubsystemLogger } from "./subsystem-D9vIQve0.js";
5
5
  import { c as resolveAgentWorkspaceDir, l as resolveDefaultAgentId } from "./agent-scope-CgUHAtCo.js";
@@ -1,5 +1,5 @@
1
1
  import { p as normalizeAccountId } from "./session-key-C_0eELjb.js";
2
- import { _ as createAccountListHelpers } from "./accounts-D9zGZU5t.js";
2
+ import { _ as createAccountListHelpers } from "./accounts-Ddm33hQm.js";
3
3
 
4
4
  //#region src/signal/accounts.ts
5
5
  const { listAccountIds, resolveDefaultAccountId } = createAccountListHelpers("signal");
@@ -1,8 +1,8 @@
1
1
  import { f as DEFAULT_ACCOUNT_ID, p as normalizeAccountId } from "./session-key-C_0eELjb.js";
2
2
  import { a as resolveOAuthDir } from "./paths-DR2yt_mP.js";
3
- import { P as resolveUserPath, W as info, X as success, k as jidToE164, tt as getChildLogger } from "./registry--_pGht6S.js";
4
- import { i as defaultRuntime } from "./subsystem-Coz2AgU8.js";
5
- import { t as formatCliCommand } from "./command-format-DSdvQ_M5.js";
3
+ import { P as resolveUserPath, W as info, X as success, k as jidToE164, tt as getChildLogger } from "./registry-D0xTnUWt.js";
4
+ import { i as defaultRuntime } from "./subsystem-B2uDN3TV.js";
5
+ import { t as formatCliCommand } from "./command-format-GKSevep4.js";
6
6
  import fs from "node:fs";
7
7
  import path from "node:path";
8
8
  import fs$1 from "node:fs/promises";
@@ -1,5 +1,5 @@
1
1
  import { p as normalizeAccountId } from "./session-key-C_0eELjb.js";
2
- import { _ as createAccountListHelpers } from "./accounts-D9zGZU5t.js";
2
+ import { _ as createAccountListHelpers } from "./accounts-Ddm33hQm.js";
3
3
 
4
4
  //#region src/imessage/accounts.ts
5
5
  const { listAccountIds, resolveDefaultAccountId } = createAccountListHelpers("imessage");
@@ -1,5 +1,5 @@
1
1
  import { f as DEFAULT_ACCOUNT_ID } from "./session-key-C_0eELjb.js";
2
- import { t as formatCliCommand } from "./command-format-DSdvQ_M5.js";
2
+ import { t as formatCliCommand } from "./command-format-GKSevep4.js";
3
3
 
4
4
  //#region src/web/active-listener.ts
5
5
  const listeners = /* @__PURE__ */ new Map();
@@ -1,7 +1,7 @@
1
1
  import { _ as isCronSessionKey, s as normalizeAgentId, t as DEFAULT_AGENT_ID, v as isSubagentSessionKey, y as parseAgentSessionKey } from "./session-key-C_0eELjb.js";
2
2
  import { s as resolveStateDir, u as resolveRequiredHomeDir } from "./paths-DR2yt_mP.js";
3
- import { P as resolveUserPath, U as danger, W as info, Y as shouldLogVerbose, Z as warn, j as pathExists, nt as getLogger, q as logVerboseConsole } from "./registry--_pGht6S.js";
4
- import { i as defaultRuntime, t as createSubsystemLogger } from "./subsystem-Coz2AgU8.js";
3
+ import { P as resolveUserPath, U as danger, W as info, Y as shouldLogVerbose, Z as warn, j as pathExists, nt as getLogger, q as logVerboseConsole } from "./registry-D0xTnUWt.js";
4
+ import { i as defaultRuntime, t as createSubsystemLogger } from "./subsystem-B2uDN3TV.js";
5
5
  import fs from "node:fs";
6
6
  import path from "node:path";
7
7
  import os from "node:os";
@@ -1,4 +1,4 @@
1
- import { c as normalizeProviderId } from "./model-selection-OpU8HN50.js";
1
+ import { c as normalizeProviderId } from "./model-selection-CsbEfrS0.js";
2
2
  import { n as formatErrorMessage } from "./errors-Bv8oZiTO.js";
3
3
 
4
4
  //#region src/infra/gemini-auth.ts
@@ -1,34 +1,34 @@
1
- import "./accounts-D9zGZU5t.js";
1
+ import "./accounts-Ddm33hQm.js";
2
2
  import "./paths-DR2yt_mP.js";
3
3
  import "./github-copilot-token-D9X2phUj.js";
4
- import "./plugins-BbAvhC25.js";
5
- import { K as logVerbose, Y as shouldLogVerbose } from "./registry--_pGht6S.js";
6
- import "./config-DDkdiUOR.js";
7
- import "./subsystem-Coz2AgU8.js";
8
- import "./command-format-DSdvQ_M5.js";
9
- import "./model-selection-OpU8HN50.js";
10
- import "./agent-scope-C3gMMKCU.js";
11
- import "./manifest-registry-B3ugY9-f.js";
4
+ import "./plugins-BNByVCIH.js";
5
+ import { K as logVerbose, Y as shouldLogVerbose } from "./registry-D0xTnUWt.js";
6
+ import "./config-KlTNfkFF.js";
7
+ import "./subsystem-B2uDN3TV.js";
8
+ import "./command-format-GKSevep4.js";
9
+ import "./model-selection-CsbEfrS0.js";
10
+ import "./agent-scope-CYYpcO9W.js";
11
+ import "./manifest-registry-CPnHl_K3.js";
12
12
  import "./redact-DPnDWsnT.js";
13
13
  import "./errors-Bv8oZiTO.js";
14
- import "./image-ops-Bnp6LXEx.js";
14
+ import "./image-ops-BlQR__MN.js";
15
15
  import "./ssrf-DKZ8eBrk.js";
16
- import "./local-roots-Ckk1QfzI.js";
17
- import "./message-channel-BdI5Ra9S.js";
18
- import "./bindings-BbwoUGPx.js";
19
- import "./tool-images-D7Lno-TE.js";
20
- import { a as resolveMediaAttachmentLocalRoots, n as createMediaAttachmentCache, o as runCapability, r as normalizeMediaAttachments, t as buildProviderRegistry, u as isAudioAttachment } from "./runner-BVqnEfNe.js";
21
- import "./skills-B1GeRYlu.js";
22
- import "./chrome-C7c_0I5M.js";
23
- import "./thinking-DCNUIAHY.js";
24
- import "./accounts-Dtszw3Zn.js";
25
- import "./accounts-BToL3HlP.js";
26
- import "./pi-embedded-helpers-BveUP4hk.js";
16
+ import "./local-roots-BHLNSI8U.js";
17
+ import "./message-channel-COTAJzHd.js";
18
+ import "./bindings-C7hRtgYW.js";
19
+ import "./tool-images-HJ2sfZDV.js";
20
+ import { a as resolveMediaAttachmentLocalRoots, n as createMediaAttachmentCache, o as runCapability, r as normalizeMediaAttachments, t as buildProviderRegistry, u as isAudioAttachment } from "./runner-CGBT7tgF.js";
21
+ import "./skills-_yTP47Cd.js";
22
+ import "./chrome-B7RdxmJ0.js";
23
+ import "./thinking-CXqf7WTe.js";
24
+ import "./accounts-s-AdhXVR.js";
25
+ import "./accounts-BtaOa4z_.js";
26
+ import "./pi-embedded-helpers-CW630epe.js";
27
27
  import "./paths-A0xdf3yk.js";
28
- import "./store-Do3t33-c.js";
29
- import "./image-BOYy0Ump.js";
28
+ import "./store-BdrNabcU.js";
29
+ import "./image-CLOPx7yW.js";
30
30
  import "./pi-model-discovery-LbcEa65a.js";
31
- import "./api-key-rotation-CVBMpnPc.js";
31
+ import "./api-key-rotation-D_sMvI5W.js";
32
32
 
33
33
  //#region src/media-understanding/audio-preflight.ts
34
34
  /**
@@ -1,6 +1,6 @@
1
1
  import { p as normalizeAccountId, s as normalizeAgentId } from "./session-key-C_0eELjb.js";
2
- import { s as normalizeChatChannelId } from "./registry--_pGht6S.js";
3
- import { c as resolveDefaultAgentId } from "./agent-scope-C3gMMKCU.js";
2
+ import { s as normalizeChatChannelId } from "./registry-D0xTnUWt.js";
3
+ import { c as resolveDefaultAgentId } from "./agent-scope-CYYpcO9W.js";
4
4
 
5
5
  //#region src/routing/bindings.ts
6
6
  function normalizeBindingChannelId(raw) {
@@ -1,4 +1,4 @@
1
- import { n as retryAsync, t as resolveRetryConfig } from "./retry-ilSJqnz9.js";
1
+ import { n as retryAsync, t as resolveRetryConfig } from "./retry-CwQ_iIj8.js";
2
2
  import { n as formatErrorMessage } from "./errors-Bv8oZiTO.js";
3
3
  import { RateLimitError } from "@buape/carbon";
4
4
 
@@ -1,28 +1,28 @@
1
1
  import { a as buildGroupHistoryKey, n as DEFAULT_MAIN_KEY, r as buildAgentMainSessionKey, s as normalizeAgentId } from "./session-key-C_0eELjb.js";
2
- import { f as readWebSelfId, o as getWebAuthAgeMs, r as resolveWhatsAppAccount } from "./accounts-D9zGZU5t.js";
3
- import { E as enqueueSystemEvent, G as resolveMentionGating, W as shouldAckReactionForWhatsApp, X as buildHistoryContextFromEntries, Y as DEFAULT_GROUP_HISTORY_LIMIT, _ as resolveEnvelopeFormatOptions, c as computeBackoff, d as formatDurationPrecise, f as dispatchReplyWithBufferedBlockDispatcher, g as formatInboundEnvelope, h as resolveInboundDebounceMs, ht as createDedupeCache, l as sleepWithAbort, m as createInboundDebouncer, n as normalizeGroupActivation, nt as buildMentionRegexes, r as parseActivationCommand, rt as normalizeMentionText, t as getReplyFromConfig, tt as recordPendingHistoryEntryIfEnabled, u as buildPairingReply, v as hasControlCommand, y as shouldComputeCommandAuthorized } from "./reply-D2W7XCcz.js";
4
- import { A as normalizeE164, B as toWhatsappJid, K as logVerbose, N as resolveJidToE164, O as isSelfChatMode, R as sleep, Y as shouldLogVerbose, k as jidToE164, s as normalizeChatChannelId, tt as getChildLogger, x as clamp } from "./registry--_pGht6S.js";
5
- import { n as loadConfig } from "./config-DDkdiUOR.js";
6
- import { i as defaultRuntime, t as createSubsystemLogger } from "./subsystem-Coz2AgU8.js";
7
- import { t as formatCliCommand } from "./command-format-DSdvQ_M5.js";
8
- import { n as recordChannelActivity } from "./channel-activity-Ji7f0gqq.js";
9
- import { t as getAgentScopedMediaLocalRoots } from "./local-roots-Ckk1QfzI.js";
10
- import { a as loadWebMedia } from "./ir-Fb3qpcis.js";
11
- import { c as resolveChunkMode, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit } from "./chunk-jvk9axTQ.js";
12
- import { n as resolveMarkdownTableMode } from "./markdown-tables-Dfaqilz6.js";
13
- import { t as convertMarkdownTables } from "./tables-DR0NmBeH.js";
14
- import { G as readChannelAllowFromStore, J as upsertChannelPairingRequest, K as readChannelAllowFromStoreSync, nt as toLocationContext, tt as formatLocationText } from "./send-D6LMZJ_h.js";
15
- import { f as registerUnhandledRejectionHandler } from "./runner-BVqnEfNe.js";
16
- import { l as resolveIdentityNamePrefix, n as createReplyPrefixOptions, u as resolveMessagePrefix } from "./reply-prefix-BHuV5t70.js";
17
- import { F as resolveChannelGroupRequireMention, P as resolveChannelGroupPolicy } from "./thinking-DCNUIAHY.js";
18
- import { Xt as resolveGroupSessionKey, _t as updateLastRoute, gt as recordSessionMetaFromInbound, ht as readSessionUpdatedAt, mt as loadSessionStore } from "./pi-embedded-helpers-BveUP4hk.js";
2
+ import { f as readWebSelfId, o as getWebAuthAgeMs, r as resolveWhatsAppAccount } from "./accounts-Ddm33hQm.js";
3
+ import { E as enqueueSystemEvent, G as resolveMentionGating, W as shouldAckReactionForWhatsApp, X as buildHistoryContextFromEntries, Y as DEFAULT_GROUP_HISTORY_LIMIT, _ as resolveEnvelopeFormatOptions, c as computeBackoff, d as formatDurationPrecise, f as dispatchReplyWithBufferedBlockDispatcher, g as formatInboundEnvelope, h as resolveInboundDebounceMs, ht as createDedupeCache, l as sleepWithAbort, m as createInboundDebouncer, n as normalizeGroupActivation, nt as buildMentionRegexes, r as parseActivationCommand, rt as normalizeMentionText, t as getReplyFromConfig, tt as recordPendingHistoryEntryIfEnabled, u as buildPairingReply, v as hasControlCommand, y as shouldComputeCommandAuthorized } from "./reply-pPqvSkWb.js";
4
+ import { A as normalizeE164, B as toWhatsappJid, K as logVerbose, N as resolveJidToE164, O as isSelfChatMode, R as sleep, Y as shouldLogVerbose, k as jidToE164, s as normalizeChatChannelId, tt as getChildLogger, x as clamp } from "./registry-D0xTnUWt.js";
5
+ import { n as loadConfig } from "./config-KlTNfkFF.js";
6
+ import { i as defaultRuntime, t as createSubsystemLogger } from "./subsystem-B2uDN3TV.js";
7
+ import { t as formatCliCommand } from "./command-format-GKSevep4.js";
8
+ import { n as recordChannelActivity } from "./channel-activity-DoC1xtDu.js";
9
+ import { t as getAgentScopedMediaLocalRoots } from "./local-roots-BHLNSI8U.js";
10
+ import { a as loadWebMedia } from "./ir-BJ6BHE5b.js";
11
+ import { c as resolveChunkMode, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit } from "./chunk-Dw2XBYXv.js";
12
+ import { n as resolveMarkdownTableMode } from "./markdown-tables-BoYFajMu.js";
13
+ import { t as convertMarkdownTables } from "./tables-DNwXwNFa.js";
14
+ import { G as readChannelAllowFromStore, J as upsertChannelPairingRequest, K as readChannelAllowFromStoreSync, nt as toLocationContext, tt as formatLocationText } from "./send-CRsR8-vO.js";
15
+ import { f as registerUnhandledRejectionHandler } from "./runner-CGBT7tgF.js";
16
+ import { l as resolveIdentityNamePrefix, n as createReplyPrefixOptions, u as resolveMessagePrefix } from "./reply-prefix-uxfMZW4p.js";
17
+ import { F as resolveChannelGroupRequireMention, P as resolveChannelGroupPolicy } from "./thinking-CXqf7WTe.js";
18
+ import { Xt as resolveGroupSessionKey, _t as updateLastRoute, gt as recordSessionMetaFromInbound, ht as readSessionUpdatedAt, mt as loadSessionStore } from "./pi-embedded-helpers-CW630epe.js";
19
19
  import { s as resolveStorePath } from "./paths-A0xdf3yk.js";
20
- import { i as saveMediaBuffer } from "./store-Do3t33-c.js";
20
+ import { i as saveMediaBuffer } from "./store-BdrNabcU.js";
21
21
  import { t as finalizeInboundContext } from "./inbound-context-D5EzMeL_.js";
22
- import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-D3JH_D2N.js";
23
- import { r as setActiveWebListener } from "./active-listener-bEk__wbB.js";
24
- import { i as markdownToWhatsApp, r as sendReactionWhatsApp } from "./outbound-rF6G8Xpr.js";
25
- import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-kI0tzViQ.js";
22
+ import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-B3CCBumQ.js";
23
+ import { r as setActiveWebListener } from "./active-listener-BXYeALs0.js";
24
+ import { i as markdownToWhatsApp, r as sendReactionWhatsApp } from "./outbound-B0e8KdaR.js";
25
+ import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-BsOrxiMj.js";
26
26
  import { randomUUID } from "node:crypto";
27
27
  import { DisconnectReason, downloadMediaMessage, extractMessageContent, getContentType, isJidGroup, normalizeMessageContent } from "@whiskeysockets/baileys";
28
28
 
@@ -1,6 +1,6 @@
1
- import { b as CONFIG_DIR } from "./registry--_pGht6S.js";
2
- import { n as loadConfig } from "./config-DDkdiUOR.js";
3
- import { t as createSubsystemLogger } from "./subsystem-Coz2AgU8.js";
1
+ import { b as CONFIG_DIR } from "./registry-D0xTnUWt.js";
2
+ import { n as loadConfig } from "./config-KlTNfkFF.js";
3
+ import { t as createSubsystemLogger } from "./subsystem-B2uDN3TV.js";
4
4
  import { i as isErrno } from "./errors-Bv8oZiTO.js";
5
5
  import { s as resolvePinnedHostnameWithPolicy } from "./ssrf-DKZ8eBrk.js";
6
6
  import fs from "node:fs";
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
2
2
  import { p as normalizeAccountId } from "./session-key-C_0eELjb.js";
3
- import { t as INTERNAL_MESSAGE_CHANNEL } from "./message-channel-BdI5Ra9S.js";
3
+ import { t as INTERNAL_MESSAGE_CHANNEL } from "./message-channel-COTAJzHd.js";
4
4
 
5
5
  //#region src/markdown/fences.ts
6
6
  function parseFenceSpans(buffer) {
@@ -1,4 +1,4 @@
1
- import { t as createSubsystemLogger } from "./subsystem-Coz2AgU8.js";
1
+ import { t as createSubsystemLogger } from "./subsystem-B2uDN3TV.js";
2
2
  import path from "node:path";
3
3
 
4
4
  //#region src/utils/boolean.ts
@@ -1,8 +1,8 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
2
- import { r as normalizeChannelId } from "./plugins-BbAvhC25.js";
3
- import { H as isPlainObject, T as escapeRegExp, c as getActivePluginRegistry } from "./registry--_pGht6S.js";
4
- import { J as DEFAULT_MODEL, Y as DEFAULT_PROVIDER, u as resolveConfiguredModelRef } from "./model-selection-OpU8HN50.js";
5
- import { f as listChannelDocks, r as listThinkingLevels } from "./thinking-DCNUIAHY.js";
2
+ import { r as normalizeChannelId } from "./plugins-BNByVCIH.js";
3
+ import { H as isPlainObject, T as escapeRegExp, c as getActivePluginRegistry } from "./registry-D0xTnUWt.js";
4
+ import { J as DEFAULT_MODEL, Y as DEFAULT_PROVIDER, u as resolveConfiguredModelRef } from "./model-selection-CsbEfrS0.js";
5
+ import { f as listChannelDocks, r as listThinkingLevels } from "./thinking-CXqf7WTe.js";
6
6
 
7
7
  //#region src/config/commands.ts
8
8
  function resolveAutoDefault(providerId) {
@@ -1,14 +1,14 @@
1
1
  import { s as normalizeAgentId, t as DEFAULT_AGENT_ID } from "./session-key-C_0eELjb.js";
2
2
  import { n as resolveConfigPath, r as resolveDefaultConfigCandidates, s as resolveStateDir, u as resolveRequiredHomeDir } from "./paths-DR2yt_mP.js";
3
- import { D as isRecord, H as isPlainObject$1, M as resolveConfigDir, P as resolveUserPath, s as normalizeChatChannelId, t as CHANNEL_IDS } from "./registry--_pGht6S.js";
4
- import { $ as shouldDeferShellEnvFallback, Q as resolveShellEnvFallbackTimeoutMs, Z as loadShellEnvFallback, et as shouldEnableShellEnvFallback, l as parseModelRef, q as DEFAULT_CONTEXT_TOKENS } from "./model-selection-OpU8HN50.js";
5
- import { c as resolveDefaultAgentId, s as resolveAgentWorkspaceDir } from "./agent-scope-C3gMMKCU.js";
6
- import { c as normalizePluginsConfig, d as isPathInside, l as resolveEnableState, m as normalizeEnvVarKey, p as isDangerousHostEnvVarName, t as loadPluginManifestRegistry, u as resolveMemorySlotDecision } from "./manifest-registry-B3ugY9-f.js";
3
+ import { D as isRecord, H as isPlainObject$1, M as resolveConfigDir, P as resolveUserPath, s as normalizeChatChannelId, t as CHANNEL_IDS } from "./registry-D0xTnUWt.js";
4
+ import { $ as shouldDeferShellEnvFallback, Q as resolveShellEnvFallbackTimeoutMs, Z as loadShellEnvFallback, et as shouldEnableShellEnvFallback, l as parseModelRef, q as DEFAULT_CONTEXT_TOKENS } from "./model-selection-CsbEfrS0.js";
5
+ import { c as resolveDefaultAgentId, s as resolveAgentWorkspaceDir } from "./agent-scope-CYYpcO9W.js";
6
+ import { c as normalizePluginsConfig, d as isPathInside, l as resolveEnableState, m as normalizeEnvVarKey, p as isDangerousHostEnvVarName, t as loadPluginManifestRegistry, u as resolveMemorySlotDecision } from "./manifest-registry-CPnHl_K3.js";
7
7
  import { createRequire } from "node:module";
8
8
  import fs from "node:fs";
9
9
  import path from "node:path";
10
10
  import os from "node:os";
11
- import json5 from "json5";
11
+ import JSON5 from "json5";
12
12
  import crypto from "node:crypto";
13
13
  import { isDeepStrictEqual } from "node:util";
14
14
  import dotenv from "dotenv";
@@ -892,7 +892,7 @@ function safeRealpath(target) {
892
892
  }
893
893
  const defaultResolver = {
894
894
  readFile: (p) => fs.readFileSync(p, "utf-8"),
895
- parseJson: (raw) => json5.parse(raw)
895
+ parseJson: (raw) => JSON5.parse(raw)
896
896
  };
897
897
  /**
898
898
  * Resolves all $include directives in a parsed config object.
@@ -5584,7 +5584,7 @@ function resolveConfigPathForDeps(deps) {
5584
5584
  function normalizeDeps(overrides = {}) {
5585
5585
  return {
5586
5586
  fs: overrides.fs ?? fs,
5587
- json5: overrides.json5 ?? json5,
5587
+ json5: overrides.json5 ?? JSON5,
5588
5588
  env: overrides.env ?? process.env,
5589
5589
  homedir: overrides.homedir ?? (() => resolveRequiredHomeDir(overrides.env ?? process.env, os.homedir)),
5590
5590
  configPath: overrides.configPath ?? "",
@@ -5595,11 +5595,11 @@ function maybeLoadDotEnvForConfig(env) {
5595
5595
  if (env !== process.env) return;
5596
5596
  loadDotEnv({ quiet: true });
5597
5597
  }
5598
- function parseConfigJson5(raw, json5$1 = json5) {
5598
+ function parseConfigJson5(raw, json5 = JSON5) {
5599
5599
  try {
5600
5600
  return {
5601
5601
  ok: true,
5602
- parsed: json5$1.parse(raw)
5602
+ parsed: json5.parse(raw)
5603
5603
  };
5604
5604
  } catch (err) {
5605
5605
  return {