@symerian/symi 2.5.4 → 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 (167) hide show
  1. package/dist/{accounts-tNElYrCH.js → accounts-CI6zQTJj.js} +14 -14
  2. package/dist/{accounts-qtxJ-6em.js → accounts-CJR8j_Kq.js} +1 -1
  3. package/dist/{accounts-CWktKM8a.js → accounts-ChTFYj8Q.js} +1 -1
  4. package/dist/{active-listener-C9r8ZB9m.js → active-listener-D6sXIjAg.js} +1 -1
  5. package/dist/{agent-scope-BxoUQqgM.js → agent-scope-Bw1Ed8W9.js} +3 -3
  6. package/dist/{agents-CTPFuwCu.js → agents-C-zwlmkD.js} +4 -4
  7. package/dist/{agents.config-CQVRXowo.js → agents.config-BhirEHt2.js} +1 -1
  8. package/dist/{agents.config-CVlanyIt.js → agents.config-Cuvv6Uxa.js} +1 -1
  9. package/dist/{audio-preflight-D02HwB-I.js → audio-preflight-BkIfnmpi.js} +29 -29
  10. package/dist/{auth-choice-BKmjyPNC.js → auth-choice-CKfB5JPP.js} +1 -1
  11. package/dist/{auth-choice-AlA3IixA.js → auth-choice-vHGMmJ9y.js} +1 -1
  12. package/dist/{banner-8_qXSW1S.js → banner-DYRlXmOu.js} +1 -1
  13. package/dist/{bindings-B7Ke6LJi.js → bindings-BU2hsBd9.js} +2 -2
  14. package/dist/build-info.json +3 -3
  15. package/dist/bundled/boot-md/handler.js +53 -53
  16. package/dist/bundled/bootstrap-extra-files/handler.js +5 -5
  17. package/dist/bundled/command-logger/handler.js +1 -1
  18. package/dist/bundled/session-memory/handler.js +53 -53
  19. package/dist/canvas-host/a2ui/.bundle.hash +1 -1
  20. package/dist/{channel-activity-CsM_hJ_s.js → channel-activity-C9-gaquj.js} +1 -1
  21. package/dist/{channel-options-CMm67N4v.js → channel-options-BLLQIoS0.js} +1 -1
  22. package/dist/{channel-options-nfXd5NWO.js → channel-options-CUCoqIfn.js} +1 -1
  23. package/dist/{channel-web-D6t5UK5A.js → channel-web-C-KPvAUY.js} +1 -1
  24. package/dist/{channels-cli-B_iBgjWh.js → channels-cli--qI2IkMe.js} +4 -4
  25. package/dist/{channels-cli-BA9QVK8Q.js → channels-cli-0g5R4QeZ.js} +4 -4
  26. package/dist/{chrome-EyvdASWt.js → chrome-CxSAp8x3.js} +13 -13
  27. package/dist/{chunk-BW5f05BR.js → chunk-ClbN9Pqy.js} +1 -1
  28. package/dist/{cli-BF2nSOtU.js → cli-DJHjm2Kh.js} +1 -1
  29. package/dist/{cli-DyI0-h78.js → cli-pSBGjcjV.js} +1 -1
  30. package/dist/{command-format-BaxDnULz.js → command-format-UKHV-j0K.js} +1 -1
  31. package/dist/{command-registry-Be3hDEmx.js → command-registry-Cy7a5Xcu.js} +9 -9
  32. package/dist/{commands-registry-D7CTCQPm.js → commands-registry-VSmULp-g.js} +4 -4
  33. package/dist/{completion-cli-DxditxWW.js → completion-cli-C-OS6kYL.js} +1 -1
  34. package/dist/{completion-cli-C3hbO0zE.js → completion-cli-DErjG0lV.js} +2 -2
  35. package/dist/{config-cli-7yzVs6sD.js → config-cli-BsBWYY8X.js} +1 -1
  36. package/dist/{config-cli-9MIL9tVq.js → config-cli-DFuOjqjk.js} +1 -1
  37. package/dist/{config-DRbjHIwD.js → config-eEaJddXj.js} +12 -12
  38. package/dist/{configure-rs23A6dR.js → configure-TTAIJBn8.js} +3 -3
  39. package/dist/{configure-BWIGtf_8.js → configure-h82jPKQi.js} +3 -3
  40. package/dist/{deliver-D1ZN6-fl.js → deliver-BA7ZN3iM.js} +20 -20
  41. package/dist/{diagnostic-CI0kRQkt.js → diagnostic-C3nsWaw3.js} +1 -1
  42. package/dist/{doctor-completion-DKL7Fzep.js → doctor-completion-BbGM1ada.js} +1 -1
  43. package/dist/{doctor-completion-CRgIetEl.js → doctor-completion-Dun5W6M-.js} +1 -1
  44. package/dist/entry.js +1 -1
  45. package/dist/extensionAPI.js +1 -1
  46. package/dist/{frontmatter-C_bv_0P8.js → frontmatter-DPlG6yha.js} +2 -2
  47. package/dist/{gateway-cli-q04qp27D.js → gateway-cli-BzihvR67.js} +13 -11
  48. package/dist/{gateway-cli-CEWIFRt0.js → gateway-cli-DGd0MHyj.js} +13 -11
  49. package/dist/{gemini-auth-CdSPHuLl.js → gemini-auth-CF48hUR9.js} +1 -1
  50. package/dist/{github-copilot-token-C_qUP7p5.js → github-copilot-token-DJqsJ2-r.js} +7 -7
  51. package/dist/{glass-ui-ws-0yPnNh0o.js → glass-ui-ws-BgAvm1ZX.js} +7 -7
  52. package/dist/{glass-ui-ws-DtFvFNZp.js → glass-ui-ws-C4AdoDVx.js} +7 -7
  53. package/dist/{health-R_6vQfbY.js → health-B_0VYYAz.js} +1 -1
  54. package/dist/{health-CGJe8xON.js → health-CnR_-oJB.js} +1 -1
  55. package/dist/{hooks-cli-Cvc0R8C2.js → hooks-cli-DHY257oF.js} +2 -2
  56. package/dist/{hooks-cli-CUTMGbml.js → hooks-cli-SzFS-UE-.js} +2 -2
  57. package/dist/{image-Cp3JDEBB.js → image-BGmVDkkw.js} +4 -4
  58. package/dist/{image-ops-CvJzsyvE.js → image-ops-S8-8dAhx.js} +1 -1
  59. package/dist/index.js +6 -6
  60. package/dist/{ir-DccrnjsE.js → ir-CbFUkv_T.js} +4 -4
  61. package/dist/llm-slug-generator.js +53 -53
  62. package/dist/{local-roots-DMwIh5cS.js → local-roots-C7OCYACU.js} +5 -5
  63. package/dist/{login-CwCoxapk.js → login-B8uiUAnV.js} +7 -7
  64. package/dist/{login-qr-Batf3PT5.js → login-qr-CIZk8uKX.js} +12 -12
  65. package/dist/{manager-D_LwXbc6.js → manager-BoLr3xR_.js} +13 -13
  66. package/dist/{manifest-registry-D0IQ3WuX.js → manifest-registry-CneMHk0N.js} +19 -19
  67. package/dist/{markdown-tables-iMQQZu4Q.js → markdown-tables-DSHvnTLx.js} +1 -1
  68. package/dist/{message-channel-Dz5lr5b0.js → message-channel-DbsRltF2.js} +1 -1
  69. package/dist/{model-auth-DK43VicI.js → model-auth-CwOuTuXl.js} +9 -9
  70. package/dist/{models-DPk6zVF5.js → models-5jM2RayT.js} +2 -2
  71. package/dist/{models-cli-BhijD6uM.js → models-cli-Cgj3-01s.js} +3 -3
  72. package/dist/{models-cli-1hWA7FrI.js → models-cli-CvD01IPe.js} +2 -2
  73. package/dist/{onboard-Ob6VUhMj.js → onboard-CG_dt1-i.js} +2 -2
  74. package/dist/{onboard-FadtPlJX.js → onboard-CQdHpiGe.js} +2 -2
  75. package/dist/{onboard-channels-D680exuN.js → onboard-channels-BEE7ctUH.js} +1 -1
  76. package/dist/{onboard-channels-r6Gvo5Cd.js → onboard-channels-CV2E5uqw.js} +1 -1
  77. package/dist/{onboarding-CeLx4VEB.js → onboarding-CImYGoGs.js} +3 -3
  78. package/dist/{onboarding-BL5h6kMP.js → onboarding-CnDTeetJ.js} +3 -3
  79. package/dist/{onboarding.finalize-EOjEh487.js → onboarding.finalize-PsAMCvC4.js} +6 -6
  80. package/dist/{onboarding.finalize-y1rlw-1v.js → onboarding.finalize-XA0M28ax.js} +5 -5
  81. package/dist/{outbound-attachment-DjNDa3zn.js → outbound-attachment-Co2diKdP.js} +2 -2
  82. package/dist/{outbound-D4fN_ZlE.js → outbound-opDNxv-l.js} +7 -7
  83. package/dist/{paths-DLyHUt31.js → paths-Cb87-LzP.js} +1 -1
  84. package/dist/{paths-Cce4PUkG.js → paths-CySxpNhH.js} +5 -5
  85. package/dist/{pi-auth-json-0SYBFZTt.js → pi-auth-json-DPWPoruO.js} +8 -8
  86. package/dist/{pi-embedded-Cuoz1LlF.js → pi-embedded-BoObe4LL.js} +162 -161
  87. package/dist/{pi-embedded-D7S6Iuxk.js → pi-embedded-CxeVR0iH.js} +6 -5
  88. package/dist/{pi-embedded-helpers-ag2bosuj.js → pi-embedded-helpers-DEEaCvEp.js} +52 -52
  89. package/dist/{plugin-registry-DZ4m64Mr.js → plugin-registry-BCiEkngD.js} +1 -1
  90. package/dist/{plugin-registry-BtIkzwfi.js → plugin-registry-DIvEhT-N.js} +1 -1
  91. package/dist/plugin-sdk/{channel-web-CkBYE0D-.js → channel-web-ZDgr_tEt.js} +1 -1
  92. package/dist/plugin-sdk/index.js +2 -2
  93. package/dist/plugin-sdk/{reply-DCiyoHqU.js → reply-B6dnSZL8.js} +6 -5
  94. package/dist/plugin-sdk/{web-DMTBKWMU.js → web-Cs8UsiAE.js} +2 -2
  95. package/dist/{plugins-DQYI3Fr-.js → plugins-C4C9637U.js} +9 -9
  96. package/dist/{plugins-cli-CRb9nRFi.js → plugins-cli-C5yJIYJi.js} +2 -2
  97. package/dist/{plugins-cli-DqE-InfX.js → plugins-cli-tmjVtXCB.js} +2 -2
  98. package/dist/{program-Dh_NkeL_.js → program-Ca2for1-.js} +7 -7
  99. package/dist/{program-context-C6OueMej.js → program-context-BCUX2Nks.js} +17 -17
  100. package/dist/{prompt-select-styled-CmbX-Peb.js → prompt-select-styled-CQHjO6cn.js} +4 -4
  101. package/dist/{prompt-select-styled-B_XU_pph.js → prompt-select-styled-D4fL09YB.js} +4 -4
  102. package/dist/{provider-auth-helpers-BDN3x0AU.js → provider-auth-helpers-BOPjr8Hp.js} +1 -1
  103. package/dist/{provider-auth-helpers-CwUeZ41c.js → provider-auth-helpers-hVbz-9Kx.js} +1 -1
  104. package/dist/{push-apns-BBaXO4aV.js → push-apns-BGed3jID.js} +1 -1
  105. package/dist/{push-apns-CgmHr336.js → push-apns-Dvev_pGx.js} +1 -1
  106. package/dist/{pw-ai-Ch7liUOW.js → pw-ai-DhwRiS06.js} +11 -11
  107. package/dist/{qmd-manager-QHUP-_em.js → qmd-manager-DdZh9PHs.js} +7 -7
  108. package/dist/{register.agent-zqbU35_d.js → register.agent-B1stLSUm.js} +6 -6
  109. package/dist/{register.agent-BDIn4sRN.js → register.agent-CeyrNkOh.js} +5 -5
  110. package/dist/{register.configure-B9Atehb4.js → register.configure-CL1qsRsF.js} +6 -6
  111. package/dist/{register.configure-CBWMCe2I.js → register.configure-NHopwe6g.js} +6 -6
  112. package/dist/{register.maintenance-CzdnuWVy.js → register.maintenance-C8M0d4fM.js} +8 -8
  113. package/dist/{register.maintenance-aLrIiGjI.js → register.maintenance-CScpju68.js} +7 -7
  114. package/dist/{register.message-Dg0Q8NL0.js → register.message-FddF6AGb.js} +2 -2
  115. package/dist/{register.message-B6KDPfgh.js → register.message-G13g5zE0.js} +2 -2
  116. package/dist/{register.onboard-B_0R2fhe.js → register.onboard-CocXCO2O.js} +4 -4
  117. package/dist/{register.onboard-DY6yrdh6.js → register.onboard-CtjREg9H.js} +4 -4
  118. package/dist/{register.setup-BMEEidVS.js → register.setup-A2pJJq8s.js} +4 -4
  119. package/dist/{register.setup-DUBzMFHd.js → register.setup-DPUOwOwT.js} +4 -4
  120. package/dist/{register.status-health-sessions-C3M6B_3w.js → register.status-health-sessions-CZ-BArps.js} +3 -3
  121. package/dist/{register.status-health-sessions-DL9QESHL.js → register.status-health-sessions-ChCsybS4.js} +3 -3
  122. package/dist/{register.subclis-CWosGlSy.js → register.subclis-DxUdic-V.js} +9 -9
  123. package/dist/{registry-CK4e9hn8.js → registry-DP24za6g.js} +17 -17
  124. package/dist/{replies-BIX_isV7.js → replies-DpPvWiGF.js} +3 -3
  125. package/dist/{reply-ahHa59uT.js → reply-Ctyysgpp.js} +6 -5
  126. package/dist/{reply-prefix-XlyuyChD.js → reply-prefix-CtL0omgM.js} +1 -1
  127. package/dist/{resolve-route-CZ-1eqw0.js → resolve-route-BVikmvWO.js} +4 -4
  128. package/dist/{retry-Cly39XZB.js → retry-dGG-MbxL.js} +1 -1
  129. package/dist/{run-main-ChZAqQNU.js → run-main-l7jpr7im.js} +14 -14
  130. package/dist/{runner-D0QUGA_X.js → runner-B_KP4voe.js} +9 -9
  131. package/dist/{send-DeFniOjh.js → send-CHEOWVc8.js} +6 -6
  132. package/dist/{send-WyRqb4WD.js → send-DbcLJb0P.js} +7 -7
  133. package/dist/{send-B1u-LrcS.js → send-DeEosX8F.js} +18 -18
  134. package/dist/{send-CiTGOvEc.js → send-DwKJK3sM.js} +10 -10
  135. package/dist/{send-DW96zgDL.js → send-zSarozV2.js} +6 -6
  136. package/dist/{server-methods-CGVoOkf3.js → server-methods-SgJRxF2Z.js} +7 -7
  137. package/dist/{server-methods-B9ZPWP0q.js → server-methods-UoDpfcdK.js} +7 -7
  138. package/dist/{server-node-events-DzlyRIPt.js → server-node-events-CIsxaaN2.js} +2 -2
  139. package/dist/{server-node-events-CjoofPGv.js → server-node-events-DIZ6YgkJ.js} +2 -2
  140. package/dist/{session-SM36BTsl.js → session-DV1MNlbV.js} +8 -8
  141. package/dist/{skill-commands-BJMb_psG.js → skill-commands-D610IKhm.js} +9 -9
  142. package/dist/{skills-BFekKL7i.js → skills-o5WVqM4V.js} +21 -21
  143. package/dist/{sqlite-DRbx2dhW.js → sqlite-6H6Zw1cs.js} +4 -4
  144. package/dist/{status-Dd3-6fq5.js → status--s6vuxyI.js} +2 -2
  145. package/dist/{status-DNRd5-AN.js → status-Ht9BRQAx.js} +1 -1
  146. package/dist/{status-TUjwchut.js → status-OyqCjO3u.js} +1 -1
  147. package/dist/{status-Csa1fdSW.js → status-ygwPf63x.js} +2 -2
  148. package/dist/{store-C0wvOkae.js → store-vVE6N2mH.js} +2 -2
  149. package/dist/{subagent-registry-DfimjEyh.js → subagent-registry-DraLysSX.js} +6 -5
  150. package/dist/{subsystem-Bs9YvKLa.js → subsystem-DgpxyDQ_.js} +1 -1
  151. package/dist/{tables-DuZspiBu.js → tables-BIWsCKXJ.js} +1 -1
  152. package/dist/{target-errors-Be1SwYlW.js → target-errors-DyItGyW9.js} +2 -2
  153. package/dist/{thinking-CdlENGRW.js → thinking-Ni0HF-w6.js} +5 -5
  154. package/dist/{tokens-H1H1LiSQ.js → tokens-c_SLAkVb.js} +1 -1
  155. package/dist/{tool-images-DXB7tqWi.js → tool-images-DBCfXdli.js} +2 -2
  156. package/dist/{tool-loop-detection-Cs8_HCsx.js → tool-loop-detection-Bbc9OPFR.js} +3 -3
  157. package/dist/{update-cli-_VRN7Kfv.js → update-cli-BerlMjhn.js} +8 -8
  158. package/dist/{update-cli-B8TIn1_v.js → update-cli-DJQ8rqnN.js} +7 -7
  159. package/dist/{update-runner-CB0M0lum.js → update-runner-UfdNrumf.js} +1 -1
  160. package/dist/{update-runner-C0hYiaj2.js → update-runner-oSl0jaVn.js} +1 -1
  161. package/dist/{web-BMLeQ_Ql.js → web-BSJ15erX.js} +1 -1
  162. package/dist/{web-BUrK0rTE.js → web-CIbnie2y.js} +2 -2
  163. package/dist/{web-DEbB7-Xr.js → web-DTKwHUfr.js} +57 -57
  164. package/dist/{web-ysMm0Pnv.js → web-DX-Sk1uG.js} +1 -1
  165. package/dist/{whatsapp-actions-D1RsnX7P.js → whatsapp-actions-oRQjcdQe.js} +23 -23
  166. package/dist/{workspace-wAaHI8-5.js → workspace-CbvamIU6.js} +6 -6
  167. package/package.json +1 -1
@@ -52426,7 +52426,7 @@ function stripMonologue(text) {
52426
52426
  }
52427
52427
  return text;
52428
52428
  }
52429
- const DEFAULT_REPETITION_MIN_BLOCK = 150;
52429
+ const DEFAULT_REPETITION_MIN_BLOCK = 250;
52430
52430
  function detectRepetition(text, minBlock) {
52431
52431
  if (text.length < minBlock * 2.5) return false;
52432
52432
  const sampleStart = Math.floor(text.length * .25);
@@ -55706,7 +55706,7 @@ async function handleSessionVersion(sessionFile) {
55706
55706
  function createStreamMonitor(profile, overrides) {
55707
55707
  const detectToolJson = overrides?.detectToolJson ?? !profile.filters.hasStructuredThinking;
55708
55708
  const detectRepetition = overrides?.detectRepetition ?? true;
55709
- const minBlockSize = overrides?.repetitionMinBlockSize ?? 150;
55709
+ const minBlockSize = overrides?.repetitionMinBlockSize ?? 250;
55710
55710
  let accumulated = "";
55711
55711
  let stopSignaled = false;
55712
55712
  let stopReason;
@@ -60035,7 +60035,8 @@ async function runEmbeddedPiAgent(params) {
60035
60035
  suppressToolErrorWarnings: params.suppressToolErrorWarnings,
60036
60036
  inlineToolResultsAllowed: false
60037
60037
  });
60038
- if (!verificationPassCompleted && !aborted && !timedOut && !promptError && payloads.length > 0 && !isCronSessionKey(params.sessionKey) && !isSubagentSessionKey(params.sessionKey)) {
60038
+ const verifyProfile = resolveModelProfile(`${params.provider ?? ""}/${params.model ?? ""}`, params.config?.models?.profiles);
60039
+ if (!verificationPassCompleted && !aborted && !timedOut && !promptError && payloads.length > 0 && !isCronSessionKey(params.sessionKey) && !isSubagentSessionKey(params.sessionKey) && !verifyProfile.filters.suppressMonologue) {
60039
60040
  const CODE_TOOL_NAMES = new Set([
60040
60041
  "exec",
60041
60042
  "bash",
@@ -60316,7 +60317,7 @@ async function runAgentTurn(params) {
60316
60317
  function createDefaultDeps() {
60317
60318
  return {
60318
60319
  sendMessageWhatsApp: async (...args) => {
60319
- const { sendMessageWhatsApp } = await import("./web-ysMm0Pnv.js");
60320
+ const { sendMessageWhatsApp } = await import("./web-DX-Sk1uG.js");
60320
60321
  return await sendMessageWhatsApp(...args);
60321
60322
  },
60322
60323
  sendMessageTelegram: async (...args) => {
@@ -75596,7 +75597,7 @@ function loadWebLoginQr() {
75596
75597
  return webLoginQrPromise;
75597
75598
  }
75598
75599
  function loadWebChannel() {
75599
- webChannelPromise ??= import("./web-ysMm0Pnv.js");
75600
+ webChannelPromise ??= import("./web-DX-Sk1uG.js");
75600
75601
  return webChannelPromise;
75601
75602
  }
75602
75603
  function loadWhatsAppActions() {
@@ -1,31 +1,31 @@
1
- import { i as resolveGatewayPort, t as STATE_DIR, u as resolveRequiredHomeDir } from "./paths-Cce4PUkG.js";
1
+ import { i as resolveGatewayPort, t as STATE_DIR, u as resolveRequiredHomeDir } from "./paths-CySxpNhH.js";
2
2
  import { c as normalizeMainKey, l as resolveAgentIdFromSessionKey, m as normalizeOptionalAccountId, r as buildAgentMainSessionKey, s as normalizeAgentId, t as DEFAULT_AGENT_ID } from "./session-key-BCzIW1Y2.js";
3
- import { I as resolveUserPath, M as normalizeE164, U as truncateUtf16Safe, dt as resolvePreferredSymiTmpDir, t as CHANNEL_IDS } from "./registry-CK4e9hn8.js";
4
- import { n as resolveAgentConfig, u as resolveSessionAgentId } from "./agent-scope-BxoUQqgM.js";
5
- import { r as defaultRuntime, t as createSubsystemLogger } from "./subsystem-Bs9YvKLa.js";
6
- import { _ as runExec, a as DEFAULT_SYMICORE_FILENAME, c as DEFAULT_USER_FILENAME, i as DEFAULT_IDENTITY_FILENAME, l as ensureAgentWorkspace, n as DEFAULT_AGENT_WORKSPACE_DIR, o as DEFAULT_SYMIPULSE_FILENAME, r as DEFAULT_BOOTSTRAP_FILENAME, s as DEFAULT_TOOLS_FILENAME, t as DEFAULT_AGENTS_FILENAME } from "./workspace-wAaHI8-5.js";
7
- import { r as normalizeChannelId } from "./plugins-DQYI3Fr-.js";
3
+ import { I as resolveUserPath, M as normalizeE164, U as truncateUtf16Safe, dt as resolvePreferredSymiTmpDir, t as CHANNEL_IDS } from "./registry-DP24za6g.js";
4
+ import { n as resolveAgentConfig, u as resolveSessionAgentId } from "./agent-scope-Bw1Ed8W9.js";
5
+ import { r as defaultRuntime, t as createSubsystemLogger } from "./subsystem-DgpxyDQ_.js";
6
+ import { _ as runExec, a as DEFAULT_SYMICORE_FILENAME, c as DEFAULT_USER_FILENAME, i as DEFAULT_IDENTITY_FILENAME, l as ensureAgentWorkspace, n as DEFAULT_AGENT_WORKSPACE_DIR, o as DEFAULT_SYMIPULSE_FILENAME, r as DEFAULT_BOOTSTRAP_FILENAME, s as DEFAULT_TOOLS_FILENAME, t as DEFAULT_AGENTS_FILENAME } from "./workspace-CbvamIU6.js";
7
+ import { r as normalizeChannelId } from "./plugins-C4C9637U.js";
8
8
  import { t as normalizeChatType } from "./chat-type-C_KiWNAH.js";
9
9
  import { t as parseBooleanValue } from "./boolean-B8-BqKGQ.js";
10
- import { t as formatCliCommand } from "./command-format-BaxDnULz.js";
11
- import { c as SafeOpenError, i as getImageMetadata, l as openFileWithinRoot, n as buildImageResizeSideGrid, s as resizeToJpeg, t as IMAGE_REDUCE_QUALITY_STEPS } from "./image-ops-CvJzsyvE.js";
12
- import { S as isPidAlive, x as resolveProcessScopedMap } from "./model-auth-DK43VicI.js";
13
- import { o as listDeliverableMessageChannels, s as normalizeMessageChannel } from "./message-channel-Dz5lr5b0.js";
14
- import { _ as parseDurationMs, a as writeConfigFile, n as loadConfig, s as parseByteSize, t as createConfigIO } from "./config-DRbjHIwD.js";
15
- import { A as DEFAULT_BROWSER_EVALUATE_ENABLED, D as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, E as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, M as DEFAULT_SYMI_BROWSER_ENABLED, N as DEFAULT_SYMI_BROWSER_PROFILE_NAME, O as DEFAULT_AI_SNAPSHOT_MAX_CHARS, S as stopChromeExtensionRelayServer, _ as fetchJson, a as resolveSymiUserDataDir, c as captureScreenshot, d as normalizeCdpWsUrl, f as snapshotAria, g as appendCdpPath, h as withBrowserNavigationPolicy, i as launchSymiChrome, j as DEFAULT_SYMI_BROWSER_COLOR, k as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, l as createTargetViaCdp, m as assertBrowserNavigationAllowed, n as isChromeCdpReady, o as stopSymiChrome, p as InvalidBrowserNavigationUrlError, r as isChromeReachable, s as resolveBrowserExecutableForPlatform, v as fetchOk, w as isLoopbackHost, x as ensureChromeExtensionRelayServer } from "./chrome-EyvdASWt.js";
16
- import { a as syncSkillsToWorkspace, l as resolveSandboxInputPath, m as sanitizeEnvVars, u as resolveSandboxPath } from "./skills-BFekKL7i.js";
10
+ import { t as formatCliCommand } from "./command-format-UKHV-j0K.js";
11
+ import { c as SafeOpenError, i as getImageMetadata, l as openFileWithinRoot, n as buildImageResizeSideGrid, s as resizeToJpeg, t as IMAGE_REDUCE_QUALITY_STEPS } from "./image-ops-S8-8dAhx.js";
12
+ import { S as isPidAlive, x as resolveProcessScopedMap } from "./model-auth-CwOuTuXl.js";
13
+ import { o as listDeliverableMessageChannels, s as normalizeMessageChannel } from "./message-channel-DbsRltF2.js";
14
+ import { _ as parseDurationMs, a as writeConfigFile, n as loadConfig, s as parseByteSize, t as createConfigIO } from "./config-eEaJddXj.js";
15
+ import { A as DEFAULT_BROWSER_EVALUATE_ENABLED, D as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, E as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, M as DEFAULT_SYMI_BROWSER_ENABLED, N as DEFAULT_SYMI_BROWSER_PROFILE_NAME, O as DEFAULT_AI_SNAPSHOT_MAX_CHARS, S as stopChromeExtensionRelayServer, _ as fetchJson, a as resolveSymiUserDataDir, c as captureScreenshot, d as normalizeCdpWsUrl, f as snapshotAria, g as appendCdpPath, h as withBrowserNavigationPolicy, i as launchSymiChrome, j as DEFAULT_SYMI_BROWSER_COLOR, k as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, l as createTargetViaCdp, m as assertBrowserNavigationAllowed, n as isChromeCdpReady, o as stopSymiChrome, p as InvalidBrowserNavigationUrlError, r as isChromeReachable, s as resolveBrowserExecutableForPlatform, v as fetchOk, w as isLoopbackHost, x as ensureChromeExtensionRelayServer } from "./chrome-CxSAp8x3.js";
16
+ import { a as syncSkillsToWorkspace, l as resolveSandboxInputPath, m as sanitizeEnvVars, u as resolveSandboxPath } from "./skills-o5WVqM4V.js";
17
17
  import { n as formatErrorMessage, t as extractErrorCode } from "./errors-BoQgnc8X.js";
18
18
  import { t as SsrFBlockedError } from "./ssrf-BTMDZjHT.js";
19
- import { r as saveMediaBuffer, t as ensureMediaDir } from "./store-C0wvOkae.js";
20
- import { d as getChannelDock, o as normalizeThinkLevel, v as normalizeHyphenSlug } from "./thinking-CdlENGRW.js";
19
+ import { r as saveMediaBuffer, t as ensureMediaDir } from "./store-vVE6N2mH.js";
20
+ import { d as getChannelDock, o as normalizeThinkLevel, v as normalizeHyphenSlug } from "./thinking-Ni0HF-w6.js";
21
21
  import { n as resolveConversationLabel } from "./conversation-label-DXUkoKcB.js";
22
- import { a as resolveSessionTranscriptPathInDir, i as resolveSessionTranscriptPath, n as resolveSessionFilePath, s as resolveStorePath, t as resolveDefaultSessionStorePath } from "./paths-DLyHUt31.js";
22
+ import { a as resolveSessionTranscriptPathInDir, i as resolveSessionTranscriptPath, n as resolveSessionFilePath, s as resolveStorePath, t as resolveDefaultSessionStorePath } from "./paths-Cb87-LzP.js";
23
23
  import { t as emitSessionTranscriptUpdate } from "./transcript-events-DDYvbmRV.js";
24
- import { t as sanitizeContentBlocksImages } from "./tool-images-DXB7tqWi.js";
24
+ import { t as sanitizeContentBlocksImages } from "./tool-images-DBCfXdli.js";
25
25
  import fs from "node:fs/promises";
26
26
  import os from "node:os";
27
27
  import path, { posix } from "node:path";
28
- import fs$1, { existsSync, realpathSync } from "node:fs";
28
+ import fsSync, { existsSync, realpathSync } from "node:fs";
29
29
  import { spawn } from "node:child_process";
30
30
  import { CURRENT_SESSION_VERSION, SessionManager } from "@mariozechner/pi-coding-agent";
31
31
  import crypto, { createHash, timingSafeEqual } from "node:crypto";
@@ -933,7 +933,7 @@ function isModuleNotFoundError(err) {
933
933
  }
934
934
  async function loadPwAiModule(mode) {
935
935
  try {
936
- return await import("./pw-ai-Ch7liUOW.js");
936
+ return await import("./pw-ai-DhwRiS06.js");
937
937
  } catch (err) {
938
938
  if (mode === "soft") return null;
939
939
  if (isModuleNotFoundError(err)) return null;
@@ -2689,11 +2689,11 @@ async function movePathToTrash(targetPath) {
2689
2689
  return targetPath;
2690
2690
  } catch {
2691
2691
  const trashDir = path.join(os.homedir(), ".Trash");
2692
- fs$1.mkdirSync(trashDir, { recursive: true });
2692
+ fsSync.mkdirSync(trashDir, { recursive: true });
2693
2693
  const base = path.basename(targetPath);
2694
2694
  let dest = path.join(trashDir, `${base}-${Date.now()}`);
2695
- if (fs$1.existsSync(dest)) dest = path.join(trashDir, `${base}-${Date.now()}-${Math.random()}`);
2696
- fs$1.renameSync(targetPath, dest);
2695
+ if (fsSync.existsSync(dest)) dest = path.join(trashDir, `${base}-${Date.now()}-${Math.random()}`);
2696
+ fsSync.renameSync(targetPath, dest);
2697
2697
  return dest;
2698
2698
  }
2699
2699
  }
@@ -2771,7 +2771,7 @@ function createBrowserProfilesService(ctx) {
2771
2771
  } catch {}
2772
2772
  const userDataDir = resolveSymiUserDataDir(name);
2773
2773
  const profileDir = path.dirname(userDataDir);
2774
- if (fs$1.existsSync(profileDir)) {
2774
+ if (fsSync.existsSync(profileDir)) {
2775
2775
  await movePathToTrash(profileDir);
2776
2776
  deleted = true;
2777
2777
  }
@@ -3473,13 +3473,13 @@ function createProfileContext(opts, profile) {
3473
3473
  const userDataDir = resolveSymiUserDataDir(profile.name);
3474
3474
  const profileState = getProfileState();
3475
3475
  if (await isHttpReachable(300) && !profileState.running) try {
3476
- await (await import("./pw-ai-Ch7liUOW.js")).closePlaywrightBrowserConnection();
3476
+ await (await import("./pw-ai-DhwRiS06.js")).closePlaywrightBrowserConnection();
3477
3477
  } catch {}
3478
3478
  if (profileState.running) await stopRunningBrowser();
3479
3479
  try {
3480
- await (await import("./pw-ai-Ch7liUOW.js")).closePlaywrightBrowserConnection();
3480
+ await (await import("./pw-ai-DhwRiS06.js")).closePlaywrightBrowserConnection();
3481
3481
  } catch {}
3482
- if (!fs$1.existsSync(userDataDir)) return {
3482
+ if (!fsSync.existsSync(userDataDir)) return {
3483
3483
  moved: false,
3484
3484
  from: userDataDir
3485
3485
  };
@@ -3898,7 +3898,7 @@ function releaseAllLocksSync() {
3898
3898
  if (typeof held.handle.close === "function") held.handle.close().catch(() => {});
3899
3899
  } catch {}
3900
3900
  try {
3901
- fs$1.rmSync(held.lockPath, { force: true });
3901
+ fsSync.rmSync(held.lockPath, { force: true });
3902
3902
  } catch {}
3903
3903
  HELD_LOCKS.delete(sessionFile);
3904
3904
  }
@@ -5699,7 +5699,7 @@ function resolveSessionTranscriptCandidates(sessionId, storePath, sessionFile, a
5699
5699
  }
5700
5700
  function archiveFileOnDisk(filePath, reason) {
5701
5701
  const archived = `${filePath}.${reason}.${(/* @__PURE__ */ new Date()).toISOString().replaceAll(":", "-")}`;
5702
- fs$1.renameSync(filePath, archived);
5702
+ fsSync.renameSync(filePath, archived);
5703
5703
  return archived;
5704
5704
  }
5705
5705
  /**
@@ -5709,7 +5709,7 @@ function archiveFileOnDisk(filePath, reason) {
5709
5709
  function archiveSessionTranscripts(opts) {
5710
5710
  const archived = [];
5711
5711
  for (const candidate of resolveSessionTranscriptCandidates(opts.sessionId, opts.storePath, opts.sessionFile, opts.agentId)) {
5712
- if (!fs$1.existsSync(candidate)) continue;
5712
+ if (!fsSync.existsSync(candidate)) continue;
5713
5713
  try {
5714
5714
  archived.push(archiveFileOnDisk(candidate, opts.reason));
5715
5715
  } catch {}
@@ -5741,15 +5741,15 @@ async function cleanupArchivedSessionTranscripts(opts) {
5741
5741
  let removed = 0;
5742
5742
  let scanned = 0;
5743
5743
  for (const dir of directories) {
5744
- const entries = await fs$1.promises.readdir(dir).catch(() => []);
5744
+ const entries = await fsSync.promises.readdir(dir).catch(() => []);
5745
5745
  for (const entry of entries) {
5746
5746
  const timestamp = parseArchivedTimestamp(entry, reason);
5747
5747
  if (timestamp == null) continue;
5748
5748
  scanned += 1;
5749
5749
  if (now - timestamp <= opts.olderThanMs) continue;
5750
5750
  const fullPath = path.join(dir, entry);
5751
- if (!(await fs$1.promises.stat(fullPath).catch(() => null))?.isFile()) continue;
5752
- await fs$1.promises.rm(fullPath).catch(() => void 0);
5751
+ if (!(await fsSync.promises.stat(fullPath).catch(() => null))?.isFile()) continue;
5752
+ await fsSync.promises.rm(fullPath).catch(() => void 0);
5753
5753
  removed += 1;
5754
5754
  }
5755
5755
  }
@@ -5885,7 +5885,7 @@ function isCacheEnabled(ttlMs) {
5885
5885
  }
5886
5886
  function getFileMtimeMs(filePath) {
5887
5887
  try {
5888
- return fs$1.statSync(filePath).mtimeMs;
5888
+ return fsSync.statSync(filePath).mtimeMs;
5889
5889
  } catch {
5890
5890
  return;
5891
5891
  }
@@ -5964,7 +5964,7 @@ function loadSessionStore(storePath, opts = {}) {
5964
5964
  const maxReadAttempts = process.platform === "win32" ? 3 : 1;
5965
5965
  const retryBuf = maxReadAttempts > 1 ? new Int32Array(new SharedArrayBuffer(4)) : void 0;
5966
5966
  for (let attempt = 0; attempt < maxReadAttempts; attempt++) try {
5967
- const raw = fs$1.readFileSync(storePath, "utf-8");
5967
+ const raw = fsSync.readFileSync(storePath, "utf-8");
5968
5968
  if (raw.length === 0 && attempt < maxReadAttempts - 1) {
5969
5969
  Atomics.wait(retryBuf, 0, 0, 50);
5970
5970
  continue;
@@ -6116,7 +6116,7 @@ function capEntryCount(store, overrideMax, opts = {}) {
6116
6116
  }
6117
6117
  async function getSessionFileSize(storePath) {
6118
6118
  try {
6119
- return (await fs$1.promises.stat(storePath)).size;
6119
+ return (await fsSync.promises.stat(storePath)).size;
6120
6120
  } catch {
6121
6121
  return null;
6122
6122
  }
@@ -6133,7 +6133,7 @@ async function rotateSessionFile(storePath, overrideBytes) {
6133
6133
  if (fileSize <= maxBytes) return false;
6134
6134
  const backupPath = `${storePath}.bak.${Date.now()}`;
6135
6135
  try {
6136
- await fs$1.promises.rename(storePath, backupPath);
6136
+ await fsSync.promises.rename(storePath, backupPath);
6137
6137
  log.info("rotated session store file", {
6138
6138
  backupPath: path.basename(backupPath),
6139
6139
  sizeBytes: fileSize
@@ -6144,11 +6144,11 @@ async function rotateSessionFile(storePath, overrideBytes) {
6144
6144
  try {
6145
6145
  const dir = path.dirname(storePath);
6146
6146
  const baseName = path.basename(storePath);
6147
- const backups = (await fs$1.promises.readdir(dir)).filter((f) => f.startsWith(`${baseName}.bak.`)).toSorted().toReversed();
6147
+ const backups = (await fsSync.promises.readdir(dir)).filter((f) => f.startsWith(`${baseName}.bak.`)).toSorted().toReversed();
6148
6148
  const maxBackups = 3;
6149
6149
  if (backups.length > maxBackups) {
6150
6150
  const toDelete = backups.slice(maxBackups);
6151
- for (const old of toDelete) await fs$1.promises.unlink(path.join(dir, old)).catch(() => void 0);
6151
+ for (const old of toDelete) await fsSync.promises.unlink(path.join(dir, old)).catch(() => void 0);
6152
6152
  log.info("cleaned up old session store backups", { deleted: toDelete.length });
6153
6153
  }
6154
6154
  } catch {}
@@ -6203,14 +6203,14 @@ async function saveSessionStoreUnlocked(storePath, store, opts) {
6203
6203
  await rotateSessionFile(storePath, maintenance.rotateBytes);
6204
6204
  }
6205
6205
  }
6206
- await fs$1.promises.mkdir(path.dirname(storePath), { recursive: true });
6206
+ await fsSync.promises.mkdir(path.dirname(storePath), { recursive: true });
6207
6207
  const json = JSON.stringify(store, null, 2);
6208
6208
  if (process.platform === "win32") {
6209
6209
  const tmp = `${storePath}.${process.pid}.${crypto.randomUUID()}.tmp`;
6210
6210
  try {
6211
- await fs$1.promises.writeFile(tmp, json, "utf-8");
6211
+ await fsSync.promises.writeFile(tmp, json, "utf-8");
6212
6212
  for (let i = 0; i < 5; i++) try {
6213
- await fs$1.promises.rename(tmp, storePath);
6213
+ await fsSync.promises.rename(tmp, storePath);
6214
6214
  break;
6215
6215
  } catch {
6216
6216
  if (i < 4) await new Promise((r) => setTimeout(r, 50 * (i + 1)));
@@ -6220,27 +6220,27 @@ async function saveSessionStoreUnlocked(storePath, store, opts) {
6220
6220
  if ((err && typeof err === "object" && "code" in err ? String(err.code) : null) === "ENOENT") return;
6221
6221
  throw err;
6222
6222
  } finally {
6223
- await fs$1.promises.rm(tmp, { force: true }).catch(() => void 0);
6223
+ await fsSync.promises.rm(tmp, { force: true }).catch(() => void 0);
6224
6224
  }
6225
6225
  return;
6226
6226
  }
6227
6227
  const tmp = `${storePath}.${process.pid}.${crypto.randomUUID()}.tmp`;
6228
6228
  try {
6229
- await fs$1.promises.writeFile(tmp, json, {
6229
+ await fsSync.promises.writeFile(tmp, json, {
6230
6230
  mode: 384,
6231
6231
  encoding: "utf-8"
6232
6232
  });
6233
- await fs$1.promises.rename(tmp, storePath);
6234
- await fs$1.promises.chmod(storePath, 384);
6233
+ await fsSync.promises.rename(tmp, storePath);
6234
+ await fsSync.promises.chmod(storePath, 384);
6235
6235
  } catch (err) {
6236
6236
  if ((err && typeof err === "object" && "code" in err ? String(err.code) : null) === "ENOENT") {
6237
6237
  try {
6238
- await fs$1.promises.mkdir(path.dirname(storePath), { recursive: true });
6239
- await fs$1.promises.writeFile(storePath, json, {
6238
+ await fsSync.promises.mkdir(path.dirname(storePath), { recursive: true });
6239
+ await fsSync.promises.writeFile(storePath, json, {
6240
6240
  mode: 384,
6241
6241
  encoding: "utf-8"
6242
6242
  });
6243
- await fs$1.promises.chmod(storePath, 384);
6243
+ await fsSync.promises.chmod(storePath, 384);
6244
6244
  } catch (err2) {
6245
6245
  if ((err2 && typeof err2 === "object" && "code" in err2 ? String(err2.code) : null) === "ENOENT") return;
6246
6246
  throw err2;
@@ -6249,7 +6249,7 @@ async function saveSessionStoreUnlocked(storePath, store, opts) {
6249
6249
  }
6250
6250
  throw err;
6251
6251
  } finally {
6252
- await fs$1.promises.rm(tmp, { force: true });
6252
+ await fsSync.promises.rm(tmp, { force: true });
6253
6253
  }
6254
6254
  }
6255
6255
  async function updateSessionStore(storePath, mutator, opts) {
@@ -6494,8 +6494,8 @@ function resolveMirroredTranscriptText(params) {
6494
6494
  return trimmed ? trimmed : null;
6495
6495
  }
6496
6496
  async function ensureSessionHeader(params) {
6497
- if (fs$1.existsSync(params.sessionFile)) return;
6498
- await fs$1.promises.mkdir(path.dirname(params.sessionFile), { recursive: true });
6497
+ if (fsSync.existsSync(params.sessionFile)) return;
6498
+ await fsSync.promises.mkdir(path.dirname(params.sessionFile), { recursive: true });
6499
6499
  const header = {
6500
6500
  type: "session",
6501
6501
  version: CURRENT_SESSION_VERSION,
@@ -6503,7 +6503,7 @@ async function ensureSessionHeader(params) {
6503
6503
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
6504
6504
  cwd: process.cwd()
6505
6505
  };
6506
- await fs$1.promises.writeFile(params.sessionFile, `${JSON.stringify(header)}\n`, {
6506
+ await fsSync.promises.writeFile(params.sessionFile, `${JSON.stringify(header)}\n`, {
6507
6507
  encoding: "utf-8",
6508
6508
  mode: 384
6509
6509
  });
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
2
- import { ft as loadSymiPlugins } from "./reply-ahHa59uT.js";
2
+ import { ft as loadSymiPlugins } from "./reply-Ctyysgpp.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";
@@ -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-DfimjEyh.js";
5
+ import { m as loadSymiPlugins } from "./subagent-registry-DraLysSX.js";
6
6
 
7
7
  //#region src/cli/plugin-registry.ts
8
8
  var plugin_registry_exports = /* @__PURE__ */ __exportAll({ ensurePluginRegistryLoaded: () => ensurePluginRegistryLoaded });
@@ -1,6 +1,6 @@
1
1
  import { a as buildGroupHistoryKey, n as DEFAULT_MAIN_KEY, r as buildAgentMainSessionKey, s as normalizeAgentId } from "./session-key-C_0eELjb.js";
2
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-DCiyoHqU.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-B6dnSZL8.js";
4
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
5
  import { n as loadConfig } from "./config-KlTNfkFF.js";
6
6
  import { i as defaultRuntime, t as createSubsystemLogger } from "./subsystem-B2uDN3TV.js";
@@ -1,6 +1,6 @@
1
1
  import { f as DEFAULT_ACCOUNT_ID, p as normalizeAccountId } from "./session-key-C_0eELjb.js";
2
2
  import { _ as createAccountListHelpers, i as resolveWhatsAppAuthDir, n as resolveDefaultWhatsAppAccountId, r as resolveWhatsAppAccount, t as listWhatsAppAccountIds } from "./accounts-Ddm33hQm.js";
3
- import { $ as clearHistoryEntriesIfEnabled, A as resolveDiscordUserAllowlist, B as logTypingFailure, C as stripMarkdown, Ct as unbindThreadBindingsBySessionKey, D as resolveSlackUserAllowlist, Dt as BLUEBUBBLES_ACTION_NAMES, Et as BLUEBUBBLES_ACTIONS, F as stringEnum, G as resolveMentionGating, H as removeAckReactionAfterReply, I as recordInboundSession, J as summarizeMapping, K as resolveMentionGatingWithBypass, L as resolveControlCommandGate, M as collectDiscordAuditChannelIds, N as formatDocsLink, O as resolveSlackChannelAllowlist, Ot as BLUEBUBBLES_GROUP_ACTIONS, P as optionalStringEnum, Q as clearHistoryEntries, R as logAckFailure, S as processLineMessage, St as listThreadBindingsBySessionKey, T as attachFooterText, Tt as resolveAllowlistMatchSimple, U as shouldAckReaction, V as createTypingCallbacks, W as shouldAckReactionForWhatsApp, Y as DEFAULT_GROUP_HISTORY_LIMIT, Z as buildPendingHistoryContextFromMap, _t as listDevicePairing, a as normalizeAccountId$1, at as isWSLEnv, bt as registerPluginHttpRoute, ct as DEFAULT_WEBHOOK_MAX_BODY_BYTES, dt as isRequestBodyLimitError, et as recordPendingHistoryEntry, ft as readJsonBodyWithLimit, gt as approveDevicePairing, ht as createDedupeCache, i as listLineAccountIds, it as isWSL2Sync, j as resolveDiscordChannelAllowlist, k as detectBinary, kt as CHANNEL_MESSAGE_ACTION_NAMES, lt as RequestBodyLimitError, mt as requestBodyErrorToText, o as resolveDefaultLineAccountId, ot as isWSLSync, pt as readRequestBodyWithLimit, q as mergeAllowlist, s as resolveLineAccount, st as DEFAULT_WEBHOOK_BODY_TIMEOUT_MS, tt as recordPendingHistoryEntryIfEnabled, ut as installRequestBodyLimitGuard, vt as rejectDevicePairing, w as createReceiptCard, wt as formatAllowlistMatchMeta, x as hasMarkdownToConvert, xt as autoBindSpawnedDiscordSubagent, yt as extractToolSend, z as logInboundDrop } from "./reply-DCiyoHqU.js";
3
+ import { $ as clearHistoryEntriesIfEnabled, A as resolveDiscordUserAllowlist, B as logTypingFailure, C as stripMarkdown, Ct as unbindThreadBindingsBySessionKey, D as resolveSlackUserAllowlist, Dt as BLUEBUBBLES_ACTION_NAMES, Et as BLUEBUBBLES_ACTIONS, F as stringEnum, G as resolveMentionGating, H as removeAckReactionAfterReply, I as recordInboundSession, J as summarizeMapping, K as resolveMentionGatingWithBypass, L as resolveControlCommandGate, M as collectDiscordAuditChannelIds, N as formatDocsLink, O as resolveSlackChannelAllowlist, Ot as BLUEBUBBLES_GROUP_ACTIONS, P as optionalStringEnum, Q as clearHistoryEntries, R as logAckFailure, S as processLineMessage, St as listThreadBindingsBySessionKey, T as attachFooterText, Tt as resolveAllowlistMatchSimple, U as shouldAckReaction, V as createTypingCallbacks, W as shouldAckReactionForWhatsApp, Y as DEFAULT_GROUP_HISTORY_LIMIT, Z as buildPendingHistoryContextFromMap, _t as listDevicePairing, a as normalizeAccountId$1, at as isWSLEnv, bt as registerPluginHttpRoute, ct as DEFAULT_WEBHOOK_MAX_BODY_BYTES, dt as isRequestBodyLimitError, et as recordPendingHistoryEntry, ft as readJsonBodyWithLimit, gt as approveDevicePairing, ht as createDedupeCache, i as listLineAccountIds, it as isWSL2Sync, j as resolveDiscordChannelAllowlist, k as detectBinary, kt as CHANNEL_MESSAGE_ACTION_NAMES, lt as RequestBodyLimitError, mt as requestBodyErrorToText, o as resolveDefaultLineAccountId, ot as isWSLSync, pt as readRequestBodyWithLimit, q as mergeAllowlist, s as resolveLineAccount, st as DEFAULT_WEBHOOK_BODY_TIMEOUT_MS, tt as recordPendingHistoryEntryIfEnabled, ut as installRequestBodyLimitGuard, vt as rejectDevicePairing, w as createReceiptCard, wt as formatAllowlistMatchMeta, x as hasMarkdownToConvert, xt as autoBindSpawnedDiscordSubagent, yt as extractToolSend, z as logInboundDrop } from "./reply-B6dnSZL8.js";
4
4
  import "./paths-DR2yt_mP.js";
5
5
  import "./github-copilot-token-D9X2phUj.js";
6
6
  import { D as resolveSlackAccount, E as resolveDefaultSlackAccountId, F as resolveDiscordAccount, M as listDiscordAccountIds, O as resolveSlackReplyToMode, P as resolveDefaultDiscordAccountId, S as resolveTelegramAccount, T as listSlackAccountIds, _ as normalizeWhatsAppTarget, a as listDiscordDirectoryPeersFromConfig, b as listTelegramAccountIds, c as listTelegramDirectoryGroupsFromConfig, d as listWhatsAppDirectoryPeersFromConfig, f as looksLikeSlackTargetId, g as isWhatsAppGroupJid, i as listDiscordDirectoryGroupsFromConfig, l as listTelegramDirectoryPeersFromConfig, o as listSlackDirectoryGroupsFromConfig, p as normalizeSlackMessagingTarget, s as listSlackDirectoryPeersFromConfig, u as listWhatsAppDirectoryGroupsFromConfig, w as listEnabledSlackAccounts, x as resolveDefaultTelegramAccountId } from "./plugins-BNByVCIH.js";
@@ -47,7 +47,7 @@ import "./paths-A0xdf3yk.js";
47
47
  import { h as onDiagnosticEvent, m as isDiagnosticsEnabled, p as emitDiagnosticEvent } from "./diagnostic-05pm5Rxi.js";
48
48
  import { n as extractOriginalFilename } from "./store-BdrNabcU.js";
49
49
  import { t as resolveWhatsAppOutboundTarget } from "./resolve-outbound-target-BiyAyTWz.js";
50
- import { r as resolveWhatsAppHeartbeatRecipients } from "./channel-web-CkBYE0D-.js";
50
+ import { r as resolveWhatsAppHeartbeatRecipients } from "./channel-web-ZDgr_tEt.js";
51
51
  import "./image-CLOPx7yW.js";
52
52
  import "./pi-model-discovery-LbcEa65a.js";
53
53
  import "./api-key-rotation-D_sMvI5W.js";
@@ -27814,7 +27814,7 @@ function stripMonologue(text) {
27814
27814
  }
27815
27815
  return text;
27816
27816
  }
27817
- const DEFAULT_REPETITION_MIN_BLOCK = 150;
27817
+ const DEFAULT_REPETITION_MIN_BLOCK = 250;
27818
27818
  function detectRepetition(text, minBlock) {
27819
27819
  if (text.length < minBlock * 2.5) return false;
27820
27820
  const sampleStart = Math.floor(text.length * .25);
@@ -31107,7 +31107,7 @@ async function handleSessionVersion(sessionFile) {
31107
31107
  function createStreamMonitor(profile, overrides) {
31108
31108
  const detectToolJson = overrides?.detectToolJson ?? !profile.filters.hasStructuredThinking;
31109
31109
  const detectRepetition = overrides?.detectRepetition ?? true;
31110
- const minBlockSize = overrides?.repetitionMinBlockSize ?? 150;
31110
+ const minBlockSize = overrides?.repetitionMinBlockSize ?? 250;
31111
31111
  let accumulated = "";
31112
31112
  let stopSignaled = false;
31113
31113
  let stopReason;
@@ -35633,7 +35633,8 @@ async function runEmbeddedPiAgent(params) {
35633
35633
  suppressToolErrorWarnings: params.suppressToolErrorWarnings,
35634
35634
  inlineToolResultsAllowed: false
35635
35635
  });
35636
- if (!verificationPassCompleted && !aborted && !timedOut && !promptError && payloads.length > 0 && !isCronSessionKey(params.sessionKey) && !isSubagentSessionKey(params.sessionKey)) {
35636
+ const verifyProfile = resolveModelProfile(`${params.provider ?? ""}/${params.model ?? ""}`, params.config?.models?.profiles);
35637
+ if (!verificationPassCompleted && !aborted && !timedOut && !promptError && payloads.length > 0 && !isCronSessionKey(params.sessionKey) && !isSubagentSessionKey(params.sessionKey) && !verifyProfile.filters.suppressMonologue) {
35637
35638
  const CODE_TOOL_NAMES = new Set([
35638
35639
  "exec",
35639
35640
  "bash",
@@ -35914,7 +35915,7 @@ async function runAgentTurn(params) {
35914
35915
  function createDefaultDeps() {
35915
35916
  return {
35916
35917
  sendMessageWhatsApp: async (...args) => {
35917
- const { sendMessageWhatsApp } = await import("./web-DMTBKWMU.js");
35918
+ const { sendMessageWhatsApp } = await import("./web-Cs8UsiAE.js");
35918
35919
  return await sendMessageWhatsApp(...args);
35919
35920
  },
35920
35921
  sendMessageTelegram: async (...args) => {
@@ -53352,7 +53353,7 @@ function loadWebLoginQr() {
53352
53353
  return webLoginQrPromise;
53353
53354
  }
53354
53355
  function loadWebChannel() {
53355
- webChannelPromise ??= import("./web-DMTBKWMU.js");
53356
+ webChannelPromise ??= import("./web-Cs8UsiAE.js");
53356
53357
  return webChannelPromise;
53357
53358
  }
53358
53359
  function loadWhatsAppActions() {
@@ -1,5 +1,5 @@
1
1
  import { a as WA_WEB_AUTH_DIR, g as webAuthExists, s as logWebSelfId, u as pickWebChannel } from "./accounts-Ddm33hQm.js";
2
- import "./reply-DCiyoHqU.js";
2
+ import "./reply-B6dnSZL8.js";
3
3
  import "./paths-DR2yt_mP.js";
4
4
  import "./github-copilot-token-D9X2phUj.js";
5
5
  import "./plugins-BNByVCIH.js";
@@ -45,7 +45,7 @@ import "./pi-embedded-helpers-CW630epe.js";
45
45
  import "./paths-A0xdf3yk.js";
46
46
  import "./diagnostic-05pm5Rxi.js";
47
47
  import "./store-BdrNabcU.js";
48
- import { n as monitorWebInbox, t as monitorWebChannel } from "./channel-web-CkBYE0D-.js";
48
+ import { n as monitorWebInbox, t as monitorWebChannel } from "./channel-web-ZDgr_tEt.js";
49
49
  import "./image-CLOPx7yW.js";
50
50
  import "./pi-model-discovery-LbcEa65a.js";
51
51
  import "./api-key-rotation-D_sMvI5W.js";
@@ -1,10 +1,10 @@
1
1
  import { f as DEFAULT_ACCOUNT_ID, p as normalizeAccountId } from "./session-key-BCzIW1Y2.js";
2
- import { M as normalizeE164, a as normalizeAnyChannelId, l as requireActivePluginRegistry, n as CHAT_CHANNEL_ORDER } from "./registry-CK4e9hn8.js";
3
- import { m as createAccountListHelpers } from "./accounts-tNElYrCH.js";
2
+ import { M as normalizeE164, a as normalizeAnyChannelId, l as requireActivePluginRegistry, n as CHAT_CHANNEL_ORDER } from "./registry-DP24za6g.js";
3
+ import { m as createAccountListHelpers } from "./accounts-CI6zQTJj.js";
4
4
  import { t as normalizeChatType } from "./chat-type-C_KiWNAH.js";
5
- import { r as isTruthyEnvValue } from "./command-format-BaxDnULz.js";
6
- import { n as listBoundAccountIds, r as resolveDefaultAgentBoundAccountId } from "./bindings-B7Ke6LJi.js";
7
- import fs from "node:fs";
5
+ import { r as isTruthyEnvValue } from "./command-format-UKHV-j0K.js";
6
+ import { n as listBoundAccountIds, r as resolveDefaultAgentBoundAccountId } from "./bindings-BU2hsBd9.js";
7
+ import fsSync from "node:fs";
8
8
 
9
9
  //#region src/channels/plugins/account-action-gate.ts
10
10
  function createAccountActionGate(params) {
@@ -186,7 +186,7 @@ function resolveTelegramToken(cfg, opts = {}) {
186
186
  const accountCfg = resolveAccountCfg(accountId !== DEFAULT_ACCOUNT_ID ? accountId : DEFAULT_ACCOUNT_ID);
187
187
  const accountTokenFile = accountCfg?.tokenFile?.trim();
188
188
  if (accountTokenFile) {
189
- if (!fs.existsSync(accountTokenFile)) {
189
+ if (!fsSync.existsSync(accountTokenFile)) {
190
190
  opts.logMissingFile?.(`channels.telegram.accounts.${accountId}.tokenFile not found: ${accountTokenFile}`);
191
191
  return {
192
192
  token: "",
@@ -194,7 +194,7 @@ function resolveTelegramToken(cfg, opts = {}) {
194
194
  };
195
195
  }
196
196
  try {
197
- const token = fs.readFileSync(accountTokenFile, "utf-8").trim();
197
+ const token = fsSync.readFileSync(accountTokenFile, "utf-8").trim();
198
198
  if (token) return {
199
199
  token,
200
200
  source: "tokenFile"
@@ -219,7 +219,7 @@ function resolveTelegramToken(cfg, opts = {}) {
219
219
  const allowEnv = accountId === DEFAULT_ACCOUNT_ID;
220
220
  const tokenFile = telegramCfg?.tokenFile?.trim();
221
221
  if (tokenFile && allowEnv) {
222
- if (!fs.existsSync(tokenFile)) {
222
+ if (!fsSync.existsSync(tokenFile)) {
223
223
  opts.logMissingFile?.(`channels.telegram.tokenFile not found: ${tokenFile}`);
224
224
  return {
225
225
  token: "",
@@ -227,7 +227,7 @@ function resolveTelegramToken(cfg, opts = {}) {
227
227
  };
228
228
  }
229
229
  try {
230
- const token = fs.readFileSync(tokenFile, "utf-8").trim();
230
+ const token = fsSync.readFileSync(tokenFile, "utf-8").trim();
231
231
  if (token) return {
232
232
  token,
233
233
  source: "tokenFile"
@@ -1,7 +1,7 @@
1
1
  import { g as resolveStateDir } from "./paths-Cqn-zk3M.js";
2
2
  import { B as theme, S as shortenHomePath, g as resolveConfigDir, x as shortenHomeInString, y as resolveUserPath } from "./utils-B-0b9bGM.js";
3
3
  import "./thinking-EAliFiVK.js";
4
- import "./reply-ahHa59uT.js";
4
+ import "./reply-Ctyysgpp.js";
5
5
  import "./registry-Cja8eT7G.js";
6
6
  import { f as defaultRuntime } from "./subsystem-D9vIQve0.js";
7
7
  import "./exec-CWkblSrI.js";
@@ -106,7 +106,7 @@ import "./npm-registry-spec-C2JDdSZS.js";
106
106
  import "./skill-scanner-CLs8u6vQ.js";
107
107
  import { i as resolvePluginInstallDir, n as installPluginFromNpmSpec, r as installPluginFromPath, t as recordPluginInstall } from "./installs-C1Cebk97.js";
108
108
  import { t as renderTable } from "./table-BTgkRafz.js";
109
- import { t as buildPluginStatusReport } from "./status-TUjwchut.js";
109
+ import { t as buildPluginStatusReport } from "./status-OyqCjO3u.js";
110
110
  import { n as updateNpmInstalledPlugins } from "./update-rw7wJwHd.js";
111
111
  import fs from "node:fs";
112
112
  import os from "node:os";
@@ -13,7 +13,7 @@ import "./client-DMBZpU6X.js";
13
13
  import "./call-BcE47FtD.js";
14
14
  import "./message-channel-C9dERklz.js";
15
15
  import "./pairing-token-Byh6drgn.js";
16
- import "./subagent-registry-DfimjEyh.js";
16
+ import "./subagent-registry-DraLysSX.js";
17
17
  import "./sessions-CJXnZVjR.js";
18
18
  import "./tokens-Csntmwwn.js";
19
19
  import "./plugins-CwSlLxM8.js";
@@ -102,7 +102,7 @@ import "./npm-registry-spec-DkaZNHAW.js";
102
102
  import "./skill-scanner-BGWOBqLY.js";
103
103
  import { i as resolvePluginInstallDir, n as installPluginFromNpmSpec, r as installPluginFromPath, t as recordPluginInstall } from "./installs-CgQpVncj.js";
104
104
  import { t as renderTable } from "./table-D01d2GuY.js";
105
- import { t as buildPluginStatusReport } from "./status-DNRd5-AN.js";
105
+ import { t as buildPluginStatusReport } from "./status-Ht9BRQAx.js";
106
106
  import { n as updateNpmInstalledPlugins } from "./update-DEMKx4eC.js";
107
107
  import os from "node:os";
108
108
  import path from "node:path";
@@ -14,7 +14,7 @@ import "./client-DMBZpU6X.js";
14
14
  import "./call-BcE47FtD.js";
15
15
  import "./message-channel-C9dERklz.js";
16
16
  import "./pairing-token-Byh6drgn.js";
17
- import "./subagent-registry-DfimjEyh.js";
17
+ import "./subagent-registry-DraLysSX.js";
18
18
  import "./sessions-CJXnZVjR.js";
19
19
  import "./tokens-Csntmwwn.js";
20
20
  import "./plugins-CwSlLxM8.js";
@@ -99,13 +99,13 @@ import "./prompt-style-DwCXob2h.js";
99
99
  import "./pairing-labels-D1HDboV2.js";
100
100
  import "./pi-tools.policy-De00gPXt.js";
101
101
  import "./catalog-DLQFKucJ.js";
102
- import "./plugin-registry-BtIkzwfi.js";
103
- import { n as resolveCliChannelOptions } from "./channel-options-CMm67N4v.js";
104
- import { t as getSubCliCommandsWithSubcommands } from "./register.subclis-CWosGlSy.js";
105
- import { a as registerProgramCommands, r as getCoreCliCommandsWithSubcommands } from "./command-registry-Be3hDEmx.js";
102
+ import "./plugin-registry-DIvEhT-N.js";
103
+ import { n as resolveCliChannelOptions } from "./channel-options-BLLQIoS0.js";
104
+ import { t as getSubCliCommandsWithSubcommands } from "./register.subclis-DxUdic-V.js";
105
+ import { a as registerProgramCommands, r as getCoreCliCommandsWithSubcommands } from "./command-registry-Cy7a5Xcu.js";
106
106
  import { r as setProgramContext } from "./program-context-CqzR_m-7.js";
107
107
  import { t as forceFreePort } from "./ports-Dn122MUd.js";
108
- import { n as formatCliBannerLine, r as hasEmittedCliBanner, t as emitCliBanner } from "./banner-8_qXSW1S.js";
108
+ import { n as formatCliBannerLine, r as hasEmittedCliBanner, t as emitCliBanner } from "./banner-DYRlXmOu.js";
109
109
  import { Command } from "commander";
110
110
 
111
111
  //#region src/cli/program/context.ts
@@ -213,7 +213,7 @@ function registerPreActionHooks(program, programVersion) {
213
213
  commandPath
214
214
  });
215
215
  if (PLUGIN_REQUIRED_COMMANDS.has(commandPath[0])) {
216
- const { ensurePluginRegistryLoaded } = await import("./plugin-registry-BtIkzwfi.js").then((n) => n.n);
216
+ const { ensurePluginRegistryLoaded } = await import("./plugin-registry-DIvEhT-N.js").then((n) => n.n);
217
217
  ensurePluginRegistryLoaded();
218
218
  }
219
219
  });