@ensocode/server 0.3.2 → 0.3.4

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 (378) hide show
  1. package/README.md +10 -0
  2. package/out/node_modules/@earendil-works/pi-coding-agent/CHANGELOG.md +117 -0
  3. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/anthropic-messages-MGNURJ72.js +6 -0
  4. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{azure-openai-responses-FSC6BAW3.js → azure-openai-responses-4WDOP7MF.js} +1 -1
  5. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/bedrock-converse-stream.js +3 -3
  6. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-4KSTFUIK.js +19 -0
  7. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-4UNPP53I.js +55 -0
  8. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-CCYGJPSU.js +2 -0
  9. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-4EYXVSA5.js → chunk-FF6XOTWB.js} +9 -9
  10. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-FMPAMX2W.js +82 -0
  11. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-GFUN2N5K.js +2 -0
  12. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-C2WU32PX.js → chunk-H4W2F2IO.js} +1 -1
  13. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-IEBK4HQA.js +2 -0
  14. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-EOO47QGR.js → chunk-JLFZH7C6.js} +1 -1
  15. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-LCB5FO32.js +4 -0
  16. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-GN3QYODH.js → chunk-LQUBM7HF.js} +1 -1
  17. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-MABPTPMF.js +30 -0
  18. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-MPEFJ3RP.js +2 -0
  19. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-EBFHJFEE.js → chunk-PYBKJQVF.js} +1 -1
  20. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-VKJQ6CME.js +8 -0
  21. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-B46VJEHW.js → chunk-VUPOM3AH.js} +1 -1
  22. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-3TGLJEWK.js → chunk-WL4TUXY7.js} +1 -1
  23. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-V6KH5QG4.js → chunk-XM4MQFQV.js} +1 -1
  24. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-YZKQS34S.js → chunk-Y55SJART.js} +5 -1
  25. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-ZG74NES2.js +2 -0
  26. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-ZKNSXGL5.js +1243 -0
  27. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{cli-MCOUW5WS.js → cli-35W4A75E.js} +7 -7
  28. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{cloudflare-workers-ai-system-one-WLAFJSP6.js → cloudflare-workers-ai-system-one-WKRH5HZA.js} +1 -1
  29. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/codemode-worker.js +2 -0
  30. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{easter-egg-3d-WMBNSJ4M.js → easter-egg-3d-GEVPKQF6.js} +1 -1
  31. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{execute-4CEBORGZ.js → execute-L2EEDV3L.js} +5 -3
  32. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/github-copilot.js +1 -1
  33. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{google-generative-ai-INGKNW72.js → google-generative-ai-VSMFCHJU.js} +1 -1
  34. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{google-vertex-IBTX6MBF.js → google-vertex-35UTLZJN.js} +1 -1
  35. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{llama-cpp-classify-V5U3QKXI.js → llama-cpp-classify-Z3SS4FP4.js} +1 -1
  36. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{mistral-conversations-S4OWXIXQ.js → mistral-conversations-LWJTUFIM.js} +1 -1
  37. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/openai-codex-responses-YYIXDJWF.js +10 -0
  38. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{openai-completions-EJNYB6IX.js → openai-completions-X2I4TQ2L.js} +3 -3
  39. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{openai-decisions-IXI34BYG.js → openai-decisions-GG3FBAIF.js} +1 -1
  40. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/openai-responses-5CX3GG6R.js +4 -0
  41. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{openrouter-images-PISKSFMS.js → openrouter-images-WHNK2UQG.js} +1 -1
  42. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{pi-messages-NORUKF4E.js → pi-messages-5CXWY5I7.js} +1 -1
  43. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{runtime-FQB7RU7U.js → runtime-J5ZSBGTX.js} +1 -1
  44. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{typesafe-system-one-CHVC2UUI.js → typesafe-system-one-KA2SBSSD.js} +1 -1
  45. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/virtual-modules-7ZY53V4K.js +2 -0
  46. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/cli-runtime.js +1 -1
  47. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/index.js +1 -1
  48. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/rpc-entry.js +1 -1
  49. package/out/node_modules/@earendil-works/pi-coding-agent/dist/cli/args.js +1 -1
  50. package/out/node_modules/@earendil-works/pi-coding-agent/dist/cli/auth-command.js +26 -2
  51. package/out/node_modules/@earendil-works/pi-coding-agent/dist/cli/auth-login.d.ts +15 -0
  52. package/out/node_modules/@earendil-works/pi-coding-agent/dist/cli/auth-login.js +232 -0
  53. package/out/node_modules/@earendil-works/pi-coding-agent/dist/cli/auth-logout.d.ts +14 -0
  54. package/out/node_modules/@earendil-works/pi-coding-agent/dist/cli/auth-logout.js +57 -0
  55. package/out/node_modules/@earendil-works/pi-coding-agent/dist/cli/auth-terminal.d.ts +17 -0
  56. package/out/node_modules/@earendil-works/pi-coding-agent/dist/cli/auth-terminal.js +63 -0
  57. package/out/node_modules/@earendil-works/pi-coding-agent/dist/cli/config-selector.js +3 -1
  58. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session-runtime.d.ts +5 -0
  59. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session-runtime.js +7 -0
  60. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session.d.ts +25 -6
  61. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session.js +139 -50
  62. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/auth-storage.js +3 -2
  63. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/bash-executor.js +3 -1
  64. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/cache-warmer.d.ts +4 -37
  65. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/cache-warmer.js +11 -89
  66. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/utils.js +2 -1
  67. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/index.d.ts +1 -1
  68. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/loader.js +10 -5
  69. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/runner.d.ts +1 -0
  70. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/runner.js +9 -1
  71. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/types.d.ts +28 -6
  72. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/keybindings.d.ts +2 -2
  73. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/keybindings.js +1 -1
  74. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/mcp-servers.d.ts +12 -37
  75. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/mcp-servers.js +42 -121
  76. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/model-config.d.ts +52 -0
  77. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/model-resolver.js +20 -19
  78. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/model-runtime.d.ts +5 -0
  79. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/model-runtime.js +11 -4
  80. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/package-manager.d.ts +10 -1
  81. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/package-manager.js +50 -5
  82. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/pi-ai-schemas.d.ts +4 -0
  83. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/preferred-providers.d.ts +17 -0
  84. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/preferred-providers.js +24 -0
  85. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/prompt-templates.js +18 -2
  86. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/provider-composer.js +3 -1
  87. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/provider-matching.d.ts +6 -0
  88. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/provider-matching.js +8 -0
  89. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/radius-mcp.d.ts +13 -0
  90. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/radius-mcp.js +29 -0
  91. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/remote-catalog-provider.js +2 -0
  92. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/runtime-credentials.d.ts +8 -0
  93. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/runtime-credentials.js +15 -1
  94. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/settings-defaults.d.ts +1 -1
  95. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/settings-defaults.js +1 -1
  96. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/bash.js +35 -5
  97. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/edit-diff.d.ts +23 -14
  98. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/edit-diff.js +182 -41
  99. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/edit.js +8 -7
  100. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/find.js +82 -36
  101. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/grep.d.ts +5 -3
  102. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/grep.js +87 -75
  103. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/ls.js +2 -1
  104. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/powershell.js +15 -2
  105. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/read.d.ts +8 -0
  106. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/read.js +141 -25
  107. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/truncate.d.ts +4 -14
  108. package/out/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/truncate.js +23 -29
  109. package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/codemode/execute.js +4 -4
  110. package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/codemode/tool.js +34 -12
  111. package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/llama/client.d.ts +2 -0
  112. package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/llama/client.js +23 -2
  113. package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/llama/ui.js +15 -3
  114. package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/cli.d.ts +2 -0
  115. package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/cli.js +49 -14
  116. package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/config.js +4 -7
  117. package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/index.js +4 -3
  118. package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/oauth.d.ts +11 -49
  119. package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/oauth.js +56 -319
  120. package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/resources.d.ts +1 -1
  121. package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/resources.js +4 -3
  122. package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/runtime.d.ts +4 -3
  123. package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/runtime.js +7 -5
  124. package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/tools.d.ts +2 -23
  125. package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/tools.js +6 -58
  126. package/out/node_modules/@earendil-works/pi-coding-agent/dist/extensions/tool-search/tool.js +18 -6
  127. package/out/node_modules/@earendil-works/pi-coding-agent/dist/index.d.ts +1 -1
  128. package/out/node_modules/@earendil-works/pi-coding-agent/dist/main.js +46 -0
  129. package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/branch-summary-message.d.ts +5 -1
  130. package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/branch-summary-message.js +12 -4
  131. package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/compaction-summary-message.d.ts +5 -1
  132. package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/compaction-summary-message.js +12 -4
  133. package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/custom-message.d.ts +5 -2
  134. package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/custom-message.js +10 -3
  135. package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/diff.js +11 -5
  136. package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/extension-selector.js +9 -1
  137. package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/login-dialog.js +1 -18
  138. package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/mermaid.d.ts +2 -1
  139. package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/mermaid.js +25 -20
  140. package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/model-selector.js +14 -6
  141. package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/oauth-selector.d.ts +10 -3
  142. package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/oauth-selector.js +32 -5
  143. package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/provider-brand.d.ts +14 -0
  144. package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/provider-brand.js +66 -0
  145. package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/radius-login-selector.d.ts +1 -2
  146. package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/radius-login-selector.js +6 -37
  147. package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/skill-invocation-message.d.ts +5 -1
  148. package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/skill-invocation-message.js +12 -4
  149. package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/tree-selector.d.ts +1 -0
  150. package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/tree-selector.js +19 -10
  151. package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/interactive-mode.d.ts +11 -1
  152. package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/interactive-mode.js +110 -63
  153. package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/theme/theme.js +4 -0
  154. package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/print-mode.js +19 -10
  155. package/out/node_modules/@earendil-works/pi-coding-agent/dist/modes/rpc/rpc-mode.js +53 -23
  156. package/out/node_modules/@earendil-works/pi-coding-agent/dist/package-manager-cli.js +39 -8
  157. package/out/node_modules/@earendil-works/pi-coding-agent/dist/utils/changelog.d.ts +2 -2
  158. package/out/node_modules/@earendil-works/pi-coding-agent/dist/utils/changelog.js +12 -6
  159. package/out/node_modules/@earendil-works/pi-coding-agent/dist/utils/image-resize.js +3 -1
  160. package/out/node_modules/@earendil-works/pi-coding-agent/dist/utils/terminal-question.d.ts +8 -0
  161. package/out/node_modules/@earendil-works/pi-coding-agent/dist/utils/terminal-question.js +24 -0
  162. package/out/node_modules/@earendil-works/pi-coding-agent/dist/utils/web-url.d.ts +12 -0
  163. package/out/node_modules/@earendil-works/pi-coding-agent/dist/utils/web-url.js +20 -0
  164. package/out/node_modules/@earendil-works/pi-coding-agent/docs/cli.md +14 -1
  165. package/out/node_modules/@earendil-works/pi-coding-agent/docs/extensions.md +27 -7
  166. package/out/node_modules/@earendil-works/pi-coding-agent/docs/keybindings.md +1 -1
  167. package/out/node_modules/@earendil-works/pi-coding-agent/docs/llama-cpp.md +4 -7
  168. package/out/node_modules/@earendil-works/pi-coding-agent/docs/models-configuration.md +6 -1
  169. package/out/node_modules/@earendil-works/pi-coding-agent/docs/models.md +2 -1
  170. package/out/node_modules/@earendil-works/pi-coding-agent/docs/prompt-templates.md +1 -1
  171. package/out/node_modules/@earendil-works/pi-coding-agent/docs/providers.md +1 -1
  172. package/out/node_modules/@earendil-works/pi-coding-agent/docs/rpc.md +4 -2
  173. package/out/node_modules/@earendil-works/pi-coding-agent/docs/settings.md +1 -1
  174. package/out/node_modules/@earendil-works/pi-coding-agent/docs/tui.md +1 -1
  175. package/out/node_modules/@earendil-works/pi-coding-agent/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
  176. package/out/node_modules/@earendil-works/pi-coding-agent/examples/extensions/custom-provider-anthropic/package.json +1 -1
  177. package/out/node_modules/@earendil-works/pi-coding-agent/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
  178. package/out/node_modules/@earendil-works/pi-coding-agent/examples/extensions/gondolin/package-lock.json +2 -2
  179. package/out/node_modules/@earendil-works/pi-coding-agent/examples/extensions/gondolin/package.json +1 -1
  180. package/out/node_modules/@earendil-works/pi-coding-agent/examples/extensions/plan-mode/index.ts +23 -13
  181. package/out/node_modules/@earendil-works/pi-coding-agent/examples/extensions/plan-mode/utils.ts +42 -16
  182. package/out/node_modules/@earendil-works/pi-coding-agent/examples/extensions/subagent/README.md +14 -11
  183. package/out/node_modules/@earendil-works/pi-coding-agent/examples/extensions/subagent/index.ts +392 -171
  184. package/out/node_modules/@earendil-works/pi-coding-agent/examples/extensions/with-deps/package-lock.json +2 -2
  185. package/out/node_modules/@earendil-works/pi-coding-agent/examples/extensions/with-deps/package.json +1 -1
  186. package/out/node_modules/@earendil-works/pi-coding-agent/examples/tsconfig.json +63 -35
  187. package/out/node_modules/@earendil-works/pi-coding-agent/package.json +7 -7
  188. package/out/node_modules/@earendil-works/pi-coding-agent/schemas/models.schema.json +29 -0
  189. package/out/node_modules/@earendil-works/pi-coding-agent/schemas/settings.schema.json +1 -1
  190. package/out/phone/assets/{abnfDiagram-VCTEODGH-7wNFPVNX.js → abnfDiagram-VCTEODGH-6JYofuK8.js} +1 -1
  191. package/out/phone/assets/architecture-7GRP2DOG-D7mwyuxS.js +1 -0
  192. package/out/phone/assets/{architectureDiagram-5GKGNRK7-CnuIop2x.js → architectureDiagram-5GKGNRK7-BeLeAQB1.js} +1 -1
  193. package/out/phone/assets/{blockDiagram-I7D4REHJ-JVET2iOX.js → blockDiagram-I7D4REHJ-uXn3vhT2.js} +1 -1
  194. package/out/phone/assets/{c4Diagram-7LVT6UL2-BLFmpm8Y.js → c4Diagram-7LVT6UL2-CjzMFRll.js} +1 -1
  195. package/out/phone/assets/channel-BsGN1oT0.js +1 -0
  196. package/out/phone/assets/{chunk-4HAMMTFA-t_CWzvX0.js → chunk-4HAMMTFA-BA8HaYy2.js} +1 -1
  197. package/out/phone/assets/{chunk-75Z2AOVW-Ck9s4XbN.js → chunk-75Z2AOVW-BhIfO9es.js} +1 -1
  198. package/out/phone/assets/{chunk-DU6HZSFF-Clg-W8ZP.js → chunk-DU6HZSFF-BTLBHwj-.js} +1 -1
  199. package/out/phone/assets/{chunk-F27PBJKO-Dg6DF7tm.js → chunk-F27PBJKO-CUw8NZk8.js} +1 -1
  200. package/out/phone/assets/{chunk-GMAD6QVW-tyN1lr56.js → chunk-GMAD6QVW-bZOKnRyM.js} +1 -1
  201. package/out/phone/assets/{chunk-GVQU2GXP-Cp6zlp3q.js → chunk-GVQU2GXP-B0WIm1dS.js} +1 -1
  202. package/out/phone/assets/{chunk-IMKFNOWR-DivN0qgp.js → chunk-IMKFNOWR-DWND4rEr.js} +1 -1
  203. package/out/phone/assets/{chunk-L3NEJ4N5-H6AVmtE_.js → chunk-L3NEJ4N5-DgMknY3k.js} +1 -1
  204. package/out/phone/assets/{chunk-OSK3NFVY-D8Gtw0_S.js → chunk-OSK3NFVY-C5aEouov.js} +1 -1
  205. package/out/phone/assets/{chunk-P2QGCYS3-RZSHAUZq.js → chunk-P2QGCYS3-D2ID3RxV.js} +1 -1
  206. package/out/phone/assets/{chunk-POPQ4Y6H-BVS8pZqz.js → chunk-POPQ4Y6H-C1lOuNpV.js} +1 -1
  207. package/out/phone/assets/{chunk-PWAF6VOD-D7FryQWf.js → chunk-PWAF6VOD-CfqWQZRE.js} +1 -1
  208. package/out/phone/assets/{chunk-SHT3W25Y-DGdqMpPQ.js → chunk-SHT3W25Y-p37Dlvn4.js} +1 -1
  209. package/out/phone/assets/{chunk-SVP7TREG-BwyiT08_.js → chunk-SVP7TREG-CSSqW-zb.js} +1 -1
  210. package/out/phone/assets/{chunk-TICWLB2K-CY7mq27-.js → chunk-TICWLB2K-Bse5ne4b.js} +1 -1
  211. package/out/phone/assets/classDiagram-ZZMXUADV-a1PUvjC2.js +1 -0
  212. package/out/phone/assets/classDiagram-v2-VYDZK3BY-a1PUvjC2.js +1 -0
  213. package/out/phone/assets/{cynefin-OW5HDTMX-ep90c-ad.js → cynefin-OW5HDTMX-BGQqPhYk.js} +1 -1
  214. package/out/phone/assets/{cynefinDiagram-5FMLGOSQ-M8djyXi6.js → cynefinDiagram-5FMLGOSQ-Cz3XWaxY.js} +1 -1
  215. package/out/phone/assets/{dagre-GXQ25YYZ-Qp6_rUFB.js → dagre-GXQ25YYZ-CjAF6lSz.js} +1 -1
  216. package/out/phone/assets/desk-1McWacjU.js +2 -0
  217. package/out/phone/assets/{diagram-S7CK7UJ4-78nJmih8.js → diagram-S7CK7UJ4-B135cp5a.js} +1 -1
  218. package/out/phone/assets/{diagram-UQ7AKVKN-DK3Lux6Z.js → diagram-UQ7AKVKN-C4pCe0fQ.js} +1 -1
  219. package/out/phone/assets/{diagram-VSXAHHWV-8uHrV5vL.js → diagram-VSXAHHWV-CYkCrin2.js} +1 -1
  220. package/out/phone/assets/{diagram-VX7I27RA-DM2jP_ep.js → diagram-VX7I27RA-CT_vufh_.js} +1 -1
  221. package/out/phone/assets/{diagram-Z3DM3KII-Dk6weE7F.js → diagram-Z3DM3KII-XEkkXu3P.js} +1 -1
  222. package/out/phone/assets/{ebnfDiagram-PWID7BFC-CcOU0Q-s.js → ebnfDiagram-PWID7BFC-DfLyeXjw.js} +1 -1
  223. package/out/phone/assets/{erDiagram-RLTQ6QDP-Cv4zHR88.js → erDiagram-RLTQ6QDP-pKNbKkAP.js} +1 -1
  224. package/out/phone/assets/eventmodeling-NTZA5JFV-DcUsfQiW.js +1 -0
  225. package/out/phone/assets/flowDiagram-HODETNUW-sUobw8zi.js +1 -0
  226. package/out/phone/assets/{ganttDiagram-EL5Y4UJY-DpMAd_jd.js → ganttDiagram-EL5Y4UJY-Df4E50Mj.js} +1 -1
  227. package/out/phone/assets/{gitGraph-4MIJSDKK-CeZWGC9r.js → gitGraph-4MIJSDKK-CkjzZeFD.js} +1 -1
  228. package/out/phone/assets/{gitGraphDiagram-WWUBYQGX-6QsSrkNy.js → gitGraphDiagram-WWUBYQGX-CBxfRAfy.js} +1 -1
  229. package/out/phone/assets/{info-A6RAGUB7-C-8QwtyE.js → info-A6RAGUB7-CHFXa2pw.js} +1 -1
  230. package/out/phone/assets/{infoDiagram-27XIBGKW-BEywxx6y.js → infoDiagram-27XIBGKW-K0DnZhi4.js} +1 -1
  231. package/out/phone/assets/{ishikawaDiagram-5VMMS53U-Dv5MWe8O.js → ishikawaDiagram-5VMMS53U-DTQF2ZuR.js} +1 -1
  232. package/out/phone/assets/{journeyDiagram-3NMN7TZE-rZqFk8KG.js → journeyDiagram-3NMN7TZE-wBltkU2i.js} +1 -1
  233. package/out/phone/assets/{kanban-definition-UXKFOSKX-Vbp8P778.js → kanban-definition-UXKFOSKX-BZpcOajP.js} +1 -1
  234. package/out/phone/assets/{line-DtO-RzWq.js → line-BflnZFgp.js} +1 -1
  235. package/out/phone/assets/main-CnA1zWP8.css +1 -0
  236. package/out/phone/assets/main-Crtf_g8h.js +1643 -0
  237. package/out/phone/assets/{mermaid-parser.core-CZ9_GWM0.js → mermaid-parser.core-BiCTmcqa.js} +3 -3
  238. package/out/phone/assets/{mermaid.core-B15T44DF.js → mermaid.core-D3TwYaLF.js} +4 -4
  239. package/out/phone/assets/{mindmap-definition-YA3MSWOX-BgFUJmH3.js → mindmap-definition-YA3MSWOX-Cz0aS_6Y.js} +1 -1
  240. package/out/phone/assets/{packet-AYTQ26CC--RETlRVk.js → packet-AYTQ26CC-DW-djbhd.js} +1 -1
  241. package/out/phone/assets/{pegDiagram-XKGWAZYB-D7jmN93W.js → pegDiagram-XKGWAZYB-CE0sZZAE.js} +1 -1
  242. package/out/phone/assets/{pie-WAS4IAKB-CxG1AbYJ.js → pie-WAS4IAKB-CKGFlXok.js} +1 -1
  243. package/out/phone/assets/{pieDiagram-E7YTZNPT-CHxSdknk.js → pieDiagram-E7YTZNPT-BrnQ32_6.js} +1 -1
  244. package/out/phone/assets/{quadrantDiagram-AXDQQJYC-707LGShZ.js → quadrantDiagram-AXDQQJYC-BrxDAygB.js} +1 -1
  245. package/out/phone/assets/{radar-RG4KPBEZ-BBg9aR2Q.js → radar-RG4KPBEZ-Bo2f5QyA.js} +1 -1
  246. package/out/phone/assets/{railroad-74A4TZTK-BvqQaIGQ.js → railroad-74A4TZTK-BZEmm0Ha.js} +1 -1
  247. package/out/phone/assets/railroad-abnf-HS5TGJTU-CGiIT1ZV.js +1 -0
  248. package/out/phone/assets/railroad-ebnf-LZEXJU2U-C85Q3c0J.js +1 -0
  249. package/out/phone/assets/railroad-peg-WCYAUIDC-8qPPCLgU.js +1 -0
  250. package/out/phone/assets/{railroadDiagram-O6MQD6OU-BQUOk6Jm.js → railroadDiagram-O6MQD6OU-BvOyUNMC.js} +1 -1
  251. package/out/phone/assets/{requirementDiagram-BXWQKSXE-ByuJLR7x.js → requirementDiagram-BXWQKSXE-T42N3TW5.js} +1 -1
  252. package/out/phone/assets/{sankeyDiagram-P5KCCOFB-CaWA3qV1.js → sankeyDiagram-P5KCCOFB-0us9ErVV.js} +1 -1
  253. package/out/phone/assets/{sequenceDiagram-WJ2MYXX4--wDiyJo9.js → sequenceDiagram-WJ2MYXX4-BMcYh2ll.js} +1 -1
  254. package/out/phone/assets/{stateDiagram-D77RDMKH-ScVywISP.js → stateDiagram-D77RDMKH-CgP9dUc3.js} +1 -1
  255. package/out/phone/assets/stateDiagram-v2-MP3YSRHH-WM4CNSf-.js +1 -0
  256. package/out/phone/assets/storage-CahQ0cyN.js +1 -0
  257. package/out/phone/assets/{swimlanes-42K2YHIH-Da4TbCnQ.js → swimlanes-42K2YHIH-VnE4ceCW.js} +1 -1
  258. package/out/phone/assets/swimlanesDiagram-VR7AAH4N-65AiMWVp.js +8 -0
  259. package/out/phone/assets/{timeline-definition-24CTP7MA-Csp8wyPz.js → timeline-definition-24CTP7MA-tH3izgae.js} +1 -1
  260. package/out/phone/assets/{treeView-Q6P3EWNA-DP_TpAnB.js → treeView-Q6P3EWNA-CVFDOC7i.js} +1 -1
  261. package/out/phone/assets/{treemap-WGGIJYW6-CDX7X9Iz.js → treemap-WGGIJYW6-vmikHzt3.js} +1 -1
  262. package/out/phone/assets/{vennDiagram-4TSXK5OY-DU4FDr9s.js → vennDiagram-4TSXK5OY-b8ttDCR-.js} +1 -1
  263. package/out/phone/assets/{wardley-WFR3VGLG-DJY3i8km.js → wardley-WFR3VGLG-D32vKoC1.js} +1 -1
  264. package/out/phone/assets/{wardleyDiagram-VM6X3IG4-CDWkRMg4.js → wardleyDiagram-VM6X3IG4-CMkaIPVH.js} +1 -1
  265. package/out/phone/assets/{xychartDiagram-S5SC5T6Z-DAWohWCi.js → xychartDiagram-S5SC5T6Z-pLYDcql3.js} +1 -1
  266. package/out/phone/desk.html +2 -2
  267. package/out/phone/index.html +3 -3
  268. package/out/renderer/assets/{abnfDiagram-VCTEODGH-CyBOQPqT.js → abnfDiagram-VCTEODGH-N6OiVFQx.js} +1 -1
  269. package/out/renderer/assets/{arc-JLdYPu0k.js → arc-CXVc3U0J.js} +1 -1
  270. package/out/renderer/assets/{architectureDiagram-5GKGNRK7-Bq5gy8K8.js → architectureDiagram-5GKGNRK7-BT5CXpcQ.js} +1 -1
  271. package/out/renderer/assets/{blockDiagram-I7D4REHJ-Bno0lw2B.js → blockDiagram-I7D4REHJ-C32Vqzip.js} +1 -1
  272. package/out/renderer/assets/{c4Diagram-7LVT6UL2-BC6INPz6.js → c4Diagram-7LVT6UL2-qjwL2BP8.js} +1 -1
  273. package/out/renderer/assets/channel-B1Cv56hA.js +1 -0
  274. package/out/renderer/assets/{chunk-2Q5K7J3B-CcyqDHha.js → chunk-2Q5K7J3B-YC6CQiyD.js} +1 -1
  275. package/out/renderer/assets/{chunk-5VM5RSS4-QSbyABj3.js → chunk-5VM5RSS4-E-kluPz3.js} +1 -1
  276. package/out/renderer/assets/{chunk-F27PBJKO-4574JVSg.js → chunk-F27PBJKO-Bhx1_P75.js} +1 -1
  277. package/out/renderer/assets/{chunk-IMKFNOWR-DCaKjC49.js → chunk-IMKFNOWR-Dgb_730B.js} +1 -1
  278. package/out/renderer/assets/{chunk-JWPE2WC7-CbFsKOIM.js → chunk-JWPE2WC7-COQNHw4u.js} +1 -1
  279. package/out/renderer/assets/{chunk-POPQ4Y6H-B6j8RfR6.js → chunk-POPQ4Y6H-CQz4hRgP.js} +1 -1
  280. package/out/renderer/assets/{chunk-SVP7TREG-kRAl0a5G.js → chunk-SVP7TREG-DGp9XQFd.js} +1 -1
  281. package/out/renderer/assets/{chunk-TICWLB2K-BgG8vTk6.js → chunk-TICWLB2K-CovR1uHr.js} +1 -1
  282. package/out/renderer/assets/{chunk-XXDRQBXY-DdqB8mBq.js → chunk-XXDRQBXY-gVmqSU5b.js} +1 -1
  283. package/out/renderer/assets/classDiagram-ZZMXUADV-CDWgELaf.js +1 -0
  284. package/out/renderer/assets/classDiagram-v2-VYDZK3BY-CDWgELaf.js +1 -0
  285. package/out/renderer/assets/{cose-bilkent-JH36ORCC-HfctEoii.js → cose-bilkent-JH36ORCC-DD4PEqt_.js} +1 -1
  286. package/out/renderer/assets/{cynefin-OW5HDTMX-BNigpbGU.js → cynefin-OW5HDTMX-DNsYCrBx.js} +1 -1
  287. package/out/renderer/assets/{cynefinDiagram-5FMLGOSQ-CL-lRXZ7.js → cynefinDiagram-5FMLGOSQ-CoSzqs25.js} +1 -1
  288. package/out/renderer/assets/{cytoscape-fcose-B40eUKiT.js → cytoscape-fcose-CV0MpCmk.js} +1 -1
  289. package/out/renderer/assets/{dagre-GXQ25YYZ-D7VwJTHe.js → dagre-GXQ25YYZ-BxpTPeHN.js} +1 -1
  290. package/out/renderer/assets/{diagram-S7CK7UJ4-CAp3JWMB.js → diagram-S7CK7UJ4-Df_OM1vW.js} +1 -1
  291. package/out/renderer/assets/{diagram-UQ7AKVKN-H_c4KXAy.js → diagram-UQ7AKVKN-iovjmny_.js} +1 -1
  292. package/out/renderer/assets/{diagram-VSXAHHWV-CsEX84Cq.js → diagram-VSXAHHWV-BMrwlcQx.js} +1 -1
  293. package/out/renderer/assets/{diagram-VX7I27RA-ebIy3O1D.js → diagram-VX7I27RA-DqLh449X.js} +1 -1
  294. package/out/renderer/assets/{diagram-Z3DM3KII-BtVfEzv9.js → diagram-Z3DM3KII-CH_W77UO.js} +1 -1
  295. package/out/renderer/assets/{ebnfDiagram-PWID7BFC-C25YK-UV.js → ebnfDiagram-PWID7BFC-yjzodXoL.js} +1 -1
  296. package/out/renderer/assets/{erDiagram-RLTQ6QDP-1imAb8Go.js → erDiagram-RLTQ6QDP-DXxhvHYS.js} +1 -1
  297. package/out/renderer/assets/{flowDiagram-HODETNUW-OwceYbhd.js → flowDiagram-HODETNUW-b2AWCAaB.js} +1 -1
  298. package/out/renderer/assets/{ganttDiagram-EL5Y4UJY-DDoN4Uki.js → ganttDiagram-EL5Y4UJY-COkyXL3K.js} +1 -1
  299. package/out/renderer/assets/{gitGraphDiagram-WWUBYQGX-yrrX43-g.js → gitGraphDiagram-WWUBYQGX-BYPqy5fh.js} +1 -1
  300. package/out/renderer/assets/globals-DX-8GWfJ.css +1 -0
  301. package/out/renderer/assets/globals-y5_C1IiJ.js +2539 -0
  302. package/out/renderer/assets/index-CHJ6mVl2.js +117 -0
  303. package/out/renderer/assets/{infoDiagram-27XIBGKW-BoYY6yGv.js → infoDiagram-27XIBGKW-DNg-VxlH.js} +1 -1
  304. package/out/renderer/assets/{ishikawaDiagram-5VMMS53U-BbtGOrLg.js → ishikawaDiagram-5VMMS53U-DProTI6a.js} +1 -1
  305. package/out/renderer/assets/{journeyDiagram-3NMN7TZE-BWTb58Kr.js → journeyDiagram-3NMN7TZE-BWhC4n3f.js} +1 -1
  306. package/out/renderer/assets/{kanban-definition-UXKFOSKX-BSN2oIEH.js → kanban-definition-UXKFOSKX-CHJRR0qi.js} +1 -1
  307. package/out/renderer/assets/{layout-k2BpK8-6.js → layout-D8t6q8k0.js} +1 -1
  308. package/out/renderer/assets/{linear-DFArNkXT.js → linear-Cxb1p4iF.js} +1 -1
  309. package/out/renderer/assets/{mermaid.core-DthanE8x.js → mermaid.core-CFNOEUmc.js} +5 -5
  310. package/out/renderer/assets/{mindmap-definition-YA3MSWOX-BhETDMxE.js → mindmap-definition-YA3MSWOX-Ba78cyY4.js} +1 -1
  311. package/out/renderer/assets/{pegDiagram-XKGWAZYB-B9w_o-Iv.js → pegDiagram-XKGWAZYB-C7zqoWMk.js} +1 -1
  312. package/out/renderer/assets/{pieDiagram-E7YTZNPT-klH2bEkC.js → pieDiagram-E7YTZNPT-g304yFeX.js} +1 -1
  313. package/out/renderer/assets/{quadrantDiagram-AXDQQJYC-DerYxAqw.js → quadrantDiagram-AXDQQJYC-Bwn3gGTO.js} +1 -1
  314. package/out/renderer/assets/{railroadDiagram-O6MQD6OU-D4EFSRd0.js → railroadDiagram-O6MQD6OU-DRetS8pv.js} +1 -1
  315. package/out/renderer/assets/{requirementDiagram-BXWQKSXE-C4O9MABZ.js → requirementDiagram-BXWQKSXE-CHz0FVZ7.js} +1 -1
  316. package/out/renderer/assets/{sankeyDiagram-P5KCCOFB-ILgR3far.js → sankeyDiagram-P5KCCOFB-BYGRDIG9.js} +1 -1
  317. package/out/renderer/assets/{sequenceDiagram-WJ2MYXX4-SHHY6jka.js → sequenceDiagram-WJ2MYXX4-B60RuFFk.js} +1 -1
  318. package/out/renderer/assets/settings-Cd128yRb.js +34 -0
  319. package/out/renderer/assets/{sizeCapture-INFHLROL-CX9hC7Eu.js → sizeCapture-INFHLROL-CB-i3Fmz.js} +1 -1
  320. package/out/renderer/assets/{stateDiagram-D77RDMKH-CZ1zq3yT.js → stateDiagram-D77RDMKH-CJOcikAJ.js} +1 -1
  321. package/out/renderer/assets/stateDiagram-v2-MP3YSRHH-BosPi5SR.js +1 -0
  322. package/out/renderer/assets/{swimlanes-42K2YHIH-BxCpUxk0.js → swimlanes-42K2YHIH-Buap2upT.js} +1 -1
  323. package/out/renderer/assets/swimlanesDiagram-VR7AAH4N-B7TQEEbL.js +8 -0
  324. package/out/renderer/assets/{timeline-definition-24CTP7MA-BZrSf5qo.js → timeline-definition-24CTP7MA-BdQta3QT.js} +1 -1
  325. package/out/renderer/assets/{vennDiagram-4TSXK5OY-g01Cyb5O.js → vennDiagram-4TSXK5OY-BynM2l28.js} +1 -1
  326. package/out/renderer/assets/{wardleyDiagram-VM6X3IG4-Bt_RS10y.js → wardleyDiagram-VM6X3IG4-FZjDO9FY.js} +1 -1
  327. package/out/renderer/assets/{xychartDiagram-S5SC5T6Z-DuwmVyP6.js → xychartDiagram-S5SC5T6Z-pJPSISxM.js} +1 -1
  328. package/out/renderer/index.html +3 -3
  329. package/out/renderer/plugin-view.html +66 -0
  330. package/out/renderer/settings.html +4 -4
  331. package/out/renderer/web-preload.js +1 -1
  332. package/out/server/agent.js +2355 -469
  333. package/out/server/chunks/{agent-D37_gFfr.js → agent--Q7N17bY.js} +567 -183
  334. package/out/server/chunks/{gpuBackendInstall-FekvL7Rv.js → gpuBackendInstall-P7COXJlD.js} +6 -5
  335. package/out/server/chunks/{loadProvider-CSeEHHnd.js → loadProvider-DvvFIF6F.js} +2 -2
  336. package/out/server/chunks/{manifest-Bj0K5UgY.js → manifest-BvEa5QR3.js} +220 -22
  337. package/out/server/chunks/{workflowPresets-DBDQwf8e.js → workflowPresets-CuLnfQqa.js} +3936 -675
  338. package/out/server/index.js +5666 -851
  339. package/out/server/plugin-host.js +42 -6
  340. package/package.json +7 -7
  341. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/anthropic-messages-BWGCKOF4.js +0 -6
  342. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-44DLKSKE.js +0 -1234
  343. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-62VOPMLK.js +0 -65
  344. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-7O7QKK6A.js +0 -2
  345. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-CHWNPHIS.js +0 -82
  346. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-NL4X6LBY.js +0 -4
  347. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-NZY7EIPA.js +0 -4
  348. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-R2EGYMOO.js +0 -7
  349. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-UKVNB6C4.js +0 -2
  350. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-USJZMAIR.js +0 -2
  351. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/chunk-VOLAXWGI.js +0 -2
  352. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/openai-codex-responses-QAWLOQSN.js +0 -10
  353. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/openai-responses-MD3562FB.js +0 -4
  354. package/out/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/virtual-modules-O76XM3OB.js +0 -2
  355. package/out/phone/assets/architecture-7GRP2DOG-_byK4-L4.js +0 -1
  356. package/out/phone/assets/channel-Dgd_LVvp.js +0 -1
  357. package/out/phone/assets/classDiagram-ZZMXUADV-C83rE770.js +0 -1
  358. package/out/phone/assets/classDiagram-v2-VYDZK3BY-C83rE770.js +0 -1
  359. package/out/phone/assets/desk-DOJjOIls.js +0 -2
  360. package/out/phone/assets/eventmodeling-NTZA5JFV-7mnBgbcg.js +0 -1
  361. package/out/phone/assets/flowDiagram-HODETNUW-sLsydHyr.js +0 -1
  362. package/out/phone/assets/main-CX13EK2l.js +0 -1636
  363. package/out/phone/assets/main-DZEEX8Mv.css +0 -1
  364. package/out/phone/assets/railroad-abnf-HS5TGJTU-Cm1qeEMZ.js +0 -1
  365. package/out/phone/assets/railroad-ebnf-LZEXJU2U-MFhpnZ_W.js +0 -1
  366. package/out/phone/assets/railroad-peg-WCYAUIDC-DCsilESk.js +0 -1
  367. package/out/phone/assets/stateDiagram-v2-MP3YSRHH-D1LtnHXy.js +0 -1
  368. package/out/phone/assets/storage-DBoRTPSQ.js +0 -1
  369. package/out/phone/assets/swimlanesDiagram-VR7AAH4N-C2SWpfVX.js +0 -8
  370. package/out/renderer/assets/channel-C0GtgNRj.js +0 -1
  371. package/out/renderer/assets/classDiagram-ZZMXUADV-DUyds1A3.js +0 -1
  372. package/out/renderer/assets/classDiagram-v2-VYDZK3BY-DUyds1A3.js +0 -1
  373. package/out/renderer/assets/globals-C6gFTVZy.css +0 -1
  374. package/out/renderer/assets/globals-CYDlkaHa.js +0 -2509
  375. package/out/renderer/assets/index-D1rFnBbz.js +0 -116
  376. package/out/renderer/assets/settings-DB_fAikP.js +0 -33
  377. package/out/renderer/assets/stateDiagram-v2-MP3YSRHH-NCbr7wNQ.js +0 -1
  378. package/out/renderer/assets/swimlanesDiagram-VR7AAH4N--ymqRTT2.js +0 -8
@@ -732,13 +732,13 @@ const CAPABILITY_OUTCOMES = [
732
732
  "unavailable",
733
733
  "cancelled"
734
734
  ];
735
- const isRecord$6 = (value) => Boolean(value) && typeof value === "object" && !Array.isArray(value);
735
+ const isRecord$7 = (value) => Boolean(value) && typeof value === "object" && !Array.isArray(value);
736
736
  const isNonEmptyString$2 = (value) => typeof value === "string" && value.length > 0;
737
737
  const hasOnlyKeys$1 = (value, allowed) => Object.keys(value).every((key) => allowed.includes(key));
738
738
  const hasExactKeys$3 = (value, keys) => Object.keys(value).length === keys.length && hasOnlyKeys$1(value, keys);
739
739
  const isProductSurfaceId$1 = (value) => typeof value === "string" && Object.hasOwn(PRODUCT_SURFACE_INVENTORY, value);
740
740
  function parseCapabilityResult(value) {
741
- if (!isRecord$6(value) || typeof value.ok !== "boolean") return null;
741
+ if (!isRecord$7(value) || typeof value.ok !== "boolean") return null;
742
742
  if (value.ok) {
743
743
  return hasExactKeys$3(value, ["ok", "data"]) ? { ok: true, data: value.data } : null;
744
744
  }
@@ -748,21 +748,21 @@ function parseCapabilityResult(value) {
748
748
  return value;
749
749
  }
750
750
  function parseCapabilityAskResponse(value) {
751
- if (!isRecord$6(value) || !hasExactKeys$3(value, ["child", "turnId", "requestId", "decision"]) || !parseChildSessionIdentity(value.child) || !isNonEmptyString$2(value.turnId) || !isNonEmptyString$2(value.requestId) || value.decision !== "allow" && value.decision !== "deny") {
751
+ if (!isRecord$7(value) || !hasExactKeys$3(value, ["child", "turnId", "requestId", "decision"]) || !parseChildSessionIdentity(value.child) || !isNonEmptyString$2(value.turnId) || !isNonEmptyString$2(value.requestId) || value.decision !== "allow" && value.decision !== "deny") {
752
752
  return null;
753
753
  }
754
754
  return value;
755
755
  }
756
756
  function parseCapabilitySubject(value) {
757
- if (!isRecord$6(value) || !hasExactKeys$3(value, ["kind", "id", "label"])) return null;
757
+ if (!isRecord$7(value) || !hasExactKeys$3(value, ["kind", "id", "label"])) return null;
758
758
  return CAPABILITY_SUBJECT_KINDS.includes(value.kind) && isNonEmptyString$2(value.id) && isNonEmptyString$2(value.label) ? value : null;
759
759
  }
760
760
  function parseCapabilityChange(value) {
761
- if (!isRecord$6(value) || !hasExactKeys$3(value, ["field", "previous", "value"])) return null;
761
+ if (!isRecord$7(value) || !hasExactKeys$3(value, ["field", "previous", "value"])) return null;
762
762
  return isNonEmptyString$2(value.field) ? value : null;
763
763
  }
764
764
  function parseCapabilityReceipt(value) {
765
- if (!isRecord$6(value)) return null;
765
+ if (!isRecord$7(value)) return null;
766
766
  if (!hasOnlyKeys$1(value, [
767
767
  "receiptId",
768
768
  "operationId",
@@ -784,13 +784,13 @@ function parseCapabilityReceipt(value) {
784
784
  return value;
785
785
  }
786
786
  function parseCapabilityExecutionEnvelope(value) {
787
- if (!isRecord$6(value) || !hasExactKeys$3(value, ["modelResult", "receipt"])) return null;
787
+ if (!isRecord$7(value) || !hasExactKeys$3(value, ["modelResult", "receipt"])) return null;
788
788
  const modelResult = parseCapabilityResult(value.modelResult);
789
789
  const receipt = parseCapabilityReceipt(value.receipt);
790
790
  return modelResult && receipt ? { modelResult, receipt } : null;
791
791
  }
792
792
  function parseOauthFlowLocator(value) {
793
- if (!isRecord$6(value) || !isUuid(value.flowId)) return null;
793
+ if (!isRecord$7(value) || !isUuid(value.flowId)) return null;
794
794
  if (!Number.isInteger(value.ownerWebContentsId) || value.ownerWebContentsId < 0) {
795
795
  return null;
796
796
  }
@@ -808,17 +808,17 @@ function parseOauthFlowLocator(value) {
808
808
  ]) && parseChildSessionIdentity(value.child) && isNonEmptyString$2(value.turnId) && isNonEmptyString$2(value.requestId) ? value : null;
809
809
  }
810
810
  function parseStartOauthWizardRequest(value) {
811
- if (!isRecord$6(value) || !hasExactKeys$3(value, ["providerId"])) return null;
811
+ if (!isRecord$7(value) || !hasExactKeys$3(value, ["providerId"])) return null;
812
812
  return isNonEmptyString$2(value.providerId) ? { providerId: value.providerId } : null;
813
813
  }
814
814
  function parseOauthFlowPromptResponse(value) {
815
- if (!isRecord$6(value) || !hasExactKeys$3(value, ["locator", "requestId", "value"])) {
815
+ if (!isRecord$7(value) || !hasExactKeys$3(value, ["locator", "requestId", "value"])) {
816
816
  return null;
817
817
  }
818
818
  return parseOauthFlowLocator(value.locator) && isNonEmptyString$2(value.requestId) && isNonEmptyString$2(value.value) ? value : null;
819
819
  }
820
820
  function parseOauthFlowControlRequest(value) {
821
- if (!isRecord$6(value) || !hasExactKeys$3(value, ["locator"])) return null;
821
+ if (!isRecord$7(value) || !hasExactKeys$3(value, ["locator"])) return null;
822
822
  return parseOauthFlowLocator(value.locator) ? value : null;
823
823
  }
824
824
  const COMPACT_STRATEGIES = [
@@ -878,7 +878,9 @@ const PLUGIN_EVENTS = [
878
878
  "tool_result",
879
879
  "input",
880
880
  "context_usage",
881
- "session_status"
881
+ "session_status",
882
+ "model_select",
883
+ "before_agent_start"
882
884
  ];
883
885
  const HOST_PLUGIN_EVENTS = ["session_status"];
884
886
  const isHostPluginEvent = (event) => HOST_PLUGIN_EVENTS.includes(event);
@@ -902,7 +904,15 @@ const CONTEXT_PART_KINDS = [
902
904
  "chat"
903
905
  ];
904
906
  const CONTEXT_PART_ITEMS = 24;
905
- const PLUGIN_INTERCEPT_EVENTS = ["tool_call", "tool_result", "input"];
907
+ const PLUGIN_INTERCEPT_EVENTS = [
908
+ "tool_call",
909
+ "tool_result",
910
+ "input",
911
+ "before_agent_start"
912
+ ];
913
+ const APPEND_ONLY_INTERCEPT_EVENTS = ["before_agent_start"];
914
+ const BEFORE_AGENT_START_APPEND_MAX = 16 * 1024;
915
+ const BEFORE_AGENT_START_PROMPT_MAX = 64 * 1024;
906
916
  const BEFORE_COMPACT_TIMEOUT_MS = 1e4;
907
917
  const INTERCEPT_TIMEOUT_MS = 5e3;
908
918
  const INTERCEPT_TOTAL_TIMEOUT_MS = 25e3;
@@ -914,13 +924,13 @@ const CHILD_INTERCEPT_TOTAL_TIMEOUT_MS = 5e3;
914
924
  const OBSERVE_TIMEOUT_MS = 3e4;
915
925
  const isInterceptEvent = (event) => PLUGIN_INTERCEPT_EVENTS.includes(event);
916
926
  const isChildInterceptEvent = (event) => CHILD_INTERCEPT_EVENTS.includes(event);
917
- const isRecord$5 = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
927
+ const isRecord$6 = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
918
928
  function initialInterceptState(event, payload) {
919
929
  const result = event === "input" ? { action: "continue" } : {};
920
930
  return { event, payload, result, done: false };
921
931
  }
922
932
  function applyInterceptResult(state, raw) {
923
- if (state.done || !isRecord$5(raw)) return state;
933
+ if (state.done || !isRecord$6(raw)) return state;
924
934
  if (state.event === "tool_call") {
925
935
  const payload = state.payload;
926
936
  const result = { ...state.result };
@@ -935,7 +945,7 @@ function applyInterceptResult(state, raw) {
935
945
  }
936
946
  };
937
947
  }
938
- if (!isRecord$5(raw.input)) return state;
948
+ if (!isRecord$6(raw.input)) return state;
939
949
  return {
940
950
  ...state,
941
951
  payload: { ...payload, input: raw.input },
@@ -960,6 +970,17 @@ function applyInterceptResult(state, raw) {
960
970
  result
961
971
  };
962
972
  }
973
+ if (state.event === "before_agent_start") {
974
+ if (typeof raw.append !== "string" || raw.append.length === 0) return state;
975
+ const previous = state.result.append;
976
+ const append = (previous ? `${previous}
977
+
978
+ ${raw.append}` : raw.append).slice(
979
+ 0,
980
+ BEFORE_AGENT_START_APPEND_MAX
981
+ );
982
+ return { ...state, result: { append } };
983
+ }
963
984
  if (raw.action === "handled")
964
985
  return { ...state, done: true, result: { action: "handled" } };
965
986
  if (raw.action === "transform" && typeof raw.text === "string") {
@@ -975,6 +996,7 @@ function failClosedResult(event, pluginName) {
975
996
  const reason = `插件 ${pluginName} 未能完成检查,已按其策略拒绝`;
976
997
  if (event === "tool_call") return { block: true, reason };
977
998
  if (event === "tool_result") return { content: reason, isError: true };
999
+ if (event === "before_agent_start") return {};
978
1000
  return { action: "handled" };
979
1001
  }
980
1002
  const PLUGIN_INJECT_MAX_CHARS = 32 * 1024;
@@ -1025,6 +1047,12 @@ const PLUGIN_HOST_APIS = [
1025
1047
  "fs.writeText",
1026
1048
  "net.fetch",
1027
1049
  "ui.notify",
1050
+ /** 推一条事件到本插件已打开的侧栏页面;args { name, data } */
1051
+ "ui.viewEvent",
1052
+ /** 打开右侧栏并创建或定位到本插件的侧栏页面;args { viewId? } */
1053
+ "ui.viewOpen",
1054
+ /** 改清单声明过的输入框底栏状态项;args { id, text?, tooltip?, tone?, visible? } */
1055
+ "ui.statusUpdate",
1028
1056
  "composer.readDraft",
1029
1057
  "composer.insertText",
1030
1058
  "composer.replaceDraft",
@@ -1054,7 +1082,11 @@ const PLUGIN_HOST_APIS = [
1054
1082
  "session.status",
1055
1083
  /** 切换到会话;args { sessionId },需用户手势 */
1056
1084
  "session.focus",
1057
- /** 在发起会话的项目里新建会话并切过去;args { text? } 预填输入框,需用户手势 */
1085
+ /** 切到会话并展开某个子代理的详情;args { sessionId, agentId },需用户手势 */
1086
+ "session.focusSubagent",
1087
+ /** 打开某个子会话的历史弹窗;args { parentId, childId },需用户手势 */
1088
+ "session.openChildRun",
1089
+ /** 在发起会话的项目里新建会话并切过去;args { text?, presetId? },presetId 只能填本插件的预设 */
1058
1090
  "session.create"
1059
1091
  ];
1060
1092
  const PREFIX = "plugin_";
@@ -1068,6 +1100,170 @@ function parsePluginToolName(name) {
1068
1100
  if (!match?.[1] || !match[2] || match[2].includes(SEPARATOR)) return null;
1069
1101
  return { pluginId: match[1].replaceAll("-", "."), toolName: match[2] };
1070
1102
  }
1103
+ function isClassifierOnlyProvider(provider) {
1104
+ if (provider.api === "typesafe-system-one" || provider.catalogId === "typesafe") return true;
1105
+ try {
1106
+ const host = new URL(provider.baseUrl ?? "").hostname.toLowerCase();
1107
+ return host === "api.typesafe.ai" || host.endsWith(".api.typesafe.ai");
1108
+ } catch {
1109
+ return false;
1110
+ }
1111
+ }
1112
+ const DEFAULT_BASE_URLS = {
1113
+ "openai-completions": "https://api.openai.com/v1",
1114
+ "openai-responses": "https://api.openai.com/v1",
1115
+ "anthropic-messages": "https://api.anthropic.com",
1116
+ // pi 的 Google SDK 在有自定义 baseUrl 时会把 apiVersion 置空,版本号必须写进地址
1117
+ "google-generative-ai": "https://generativelanguage.googleapis.com/v1beta",
1118
+ ollama: "http://127.0.0.1:11434",
1119
+ "typesafe-system-one": "https://api.typesafe.ai/v1/"
1120
+ };
1121
+ function withVersionSegment(base, segment) {
1122
+ const trimmed = base.replace(/\/+$/, "");
1123
+ return trimmed.endsWith(`/${segment}`) ? trimmed : `${trimmed}/${segment}`;
1124
+ }
1125
+ function resolvePiProviderBaseUrl(api, baseUrl) {
1126
+ const base = baseUrl.trim().replace(/\/+$/, "") || DEFAULT_BASE_URLS[api];
1127
+ return api === "google-generative-ai" ? withVersionSegment(base, "v1beta") : base;
1128
+ }
1129
+ function record(value) {
1130
+ return value && typeof value === "object" && !Array.isArray(value) ? value : null;
1131
+ }
1132
+ function validUrl(value) {
1133
+ try {
1134
+ const url = new URL(value);
1135
+ return (url.protocol === "http:" || url.protocol === "https:") && !url.username && !url.password && !url.search && !url.hash && !value.includes("?") && !value.includes("#");
1136
+ } catch {
1137
+ return false;
1138
+ }
1139
+ }
1140
+ function parseImageGenerationConfig(value) {
1141
+ const raw = record(value);
1142
+ if (!raw) return null;
1143
+ if (Object.keys(raw).some(
1144
+ (key) => !["providerId", "modelId", "protocol", "baseUrl", "apiKey"].includes(key)
1145
+ ))
1146
+ return null;
1147
+ const { providerId, modelId, protocol, baseUrl, apiKey } = raw;
1148
+ if (typeof providerId !== "string" || !providerId.trim() || typeof modelId !== "string" || !modelId.trim() || typeof apiKey !== "string" || !apiKey.trim() || typeof baseUrl !== "string" || !validUrl(baseUrl) || protocol !== "openai" && protocol !== "openai-compatible" && protocol !== "gemini")
1149
+ return null;
1150
+ return { providerId, modelId, protocol, baseUrl, apiKey };
1151
+ }
1152
+ function providerConfig(provider, modelId) {
1153
+ if (provider?.enabled !== true || provider.oauthAccountKey || provider.oauthAccountPool || typeof provider.apiKey !== "string" || !provider.apiKey.trim() || typeof provider.baseUrl !== "string")
1154
+ return null;
1155
+ let protocol;
1156
+ if (provider.api === "google-generative-ai") protocol = "gemini";
1157
+ else if (provider.api === "openai-completions" || provider.api === "openai-responses") {
1158
+ let host = "";
1159
+ try {
1160
+ host = new URL(provider.baseUrl).hostname.toLowerCase();
1161
+ } catch {
1162
+ }
1163
+ protocol = provider.catalogId !== "__custom" && (provider.catalogId === "openai" || !provider.catalogId && host === "api.openai.com") ? "openai" : "openai-compatible";
1164
+ } else return null;
1165
+ const fallback = protocol === "gemini" ? DEFAULT_BASE_URLS["google-generative-ai"] : protocol === "openai" ? DEFAULT_BASE_URLS["openai-responses"] : "";
1166
+ let baseUrl = provider.baseUrl.trim().replace(/\/+$/, "") || fallback;
1167
+ if (protocol === "gemini" && baseUrl) baseUrl = withVersionSegment(baseUrl, "v1beta");
1168
+ if (protocol === "openai" && baseUrl) {
1169
+ try {
1170
+ if (new URL(baseUrl).pathname === "/") baseUrl = `${baseUrl}/v1`;
1171
+ } catch {
1172
+ }
1173
+ }
1174
+ return parseImageGenerationConfig({
1175
+ providerId: provider.id,
1176
+ modelId,
1177
+ protocol,
1178
+ baseUrl,
1179
+ apiKey: provider.apiKey
1180
+ });
1181
+ }
1182
+ function imageModels(provider) {
1183
+ return Array.isArray(provider?.models) ? provider.models.filter(
1184
+ (model) => Boolean(model) && typeof model === "object" && typeof model.id === "string" && Boolean(model.id.trim()) && model.enabled !== false && model.imageGeneration === true
1185
+ ) : [];
1186
+ }
1187
+ function resolveImageGenerationConfig(ref, providers) {
1188
+ if (ref === null || ref === void 0) return { config: null };
1189
+ const raw = record(ref);
1190
+ if (!raw || typeof raw.providerId !== "string" || typeof raw.modelId !== "string")
1191
+ return { config: null, error: "Invalid image generation model selection" };
1192
+ const provider = providers.find((p) => p?.id === raw.providerId);
1193
+ const model = imageModels(provider).find((m) => m.id === raw.modelId);
1194
+ const config = provider && model ? providerConfig(provider, model.id) : null;
1195
+ return config ? { config } : { config: null, error: "Image generation model is unavailable" };
1196
+ }
1197
+ const LOCAL_IMAGE_SCHEME = "local-image";
1198
+ const POSIX_HOST = "posix";
1199
+ const REMOTE_FETCH_HOST = "remote-fetch";
1200
+ const BOT_AVATAR_HOST = "bot-avatar";
1201
+ const PLUGIN_ASSET_HOST = "plugin-asset";
1202
+ const IMAGE_EXTENSIONS = [
1203
+ "png",
1204
+ "jpg",
1205
+ "jpeg",
1206
+ "gif",
1207
+ "webp",
1208
+ "bmp",
1209
+ "svg",
1210
+ "jfif",
1211
+ "avif"
1212
+ ];
1213
+ const VIDEO_EXTENSIONS = ["mp4", "webm", "ogg", "ogv", "mov"];
1214
+ const MEDIA_EXTENSIONS = [...IMAGE_EXTENSIONS, ...VIDEO_EXTENSIONS];
1215
+ function mediaExtension(pathOrUrl) {
1216
+ const clean = pathOrUrl.split(/[?#]/)[0] ?? "";
1217
+ const idx = clean.lastIndexOf(".");
1218
+ if (idx < 0) return "";
1219
+ return clean.slice(idx + 1).toLowerCase();
1220
+ }
1221
+ function isMediaPath(pathOrUrl) {
1222
+ return MEDIA_EXTENSIONS.includes(mediaExtension(pathOrUrl));
1223
+ }
1224
+ function isVideoPath(pathOrUrl) {
1225
+ return VIDEO_EXTENSIONS.includes(mediaExtension(pathOrUrl));
1226
+ }
1227
+ function localImageUrlToPath(url) {
1228
+ const host = url.hostname;
1229
+ if (!host || host === REMOTE_FETCH_HOST || host === BOT_AVATAR_HOST || host === PLUGIN_ASSET_HOST)
1230
+ return null;
1231
+ const segments = url.pathname.split("/").filter(Boolean).map(decodeURIComponent);
1232
+ if (host === POSIX_HOST) {
1233
+ return `/${segments.join("/")}`;
1234
+ }
1235
+ if (/^[a-z]$/i.test(host)) {
1236
+ return `${host.toUpperCase()}:\\${segments.join("\\")}`;
1237
+ }
1238
+ return `\\\\${host}\\${segments.join("\\")}`;
1239
+ }
1240
+ const extensions = new Set(IMAGE_EXTENSIONS);
1241
+ function isPreviewPath(value) {
1242
+ if (typeof value !== "string" || value.includes("\0")) return false;
1243
+ const normalized = value.replaceAll("\\", "/");
1244
+ return !normalized.startsWith("//") && (normalized.startsWith("/") || /^[A-Za-z]:\//.test(normalized)) && extensions.has(normalized.slice(normalized.lastIndexOf(".") + 1).toLowerCase());
1245
+ }
1246
+ function parseGeneratedImagePaths(value) {
1247
+ if (!Array.isArray(value) || value.length > 640 || !value.every(isPreviewPath)) return null;
1248
+ return [...new Set(value)];
1249
+ }
1250
+ function imageGenerationPreviewPaths(output) {
1251
+ try {
1252
+ const value = JSON.parse(output);
1253
+ if (!value || !Array.isArray(value.items)) return [];
1254
+ return [
1255
+ ...new Set(
1256
+ value.items.flatMap((item) => {
1257
+ if (!item || typeof item !== "object") return [];
1258
+ const entry = item;
1259
+ return entry.status === "success" && isPreviewPath(entry.path) && typeof entry.mimeType === "string" && entry.mimeType.startsWith("image/") ? [entry.path] : [];
1260
+ })
1261
+ )
1262
+ ].slice(0, 10);
1263
+ } catch {
1264
+ return [];
1265
+ }
1266
+ }
1071
1267
  const DEFAULT_MAX_ACTIVE_COWORKERS = 5;
1072
1268
  const MIN_MAX_ACTIVE_COWORKERS = 1;
1073
1269
  const MAX_MAX_ACTIVE_COWORKERS = 20;
@@ -1092,8 +1288,8 @@ function parseOauthPoolFailure(value) {
1092
1288
  }
1093
1289
  function classifyCodexPoolFailure(status, body, accountKey) {
1094
1290
  if (!isCodexAccountKey(accountKey)) return null;
1095
- const record = body && typeof body === "object" && !Array.isArray(body) ? body : void 0;
1096
- const error = record?.error && typeof record.error === "object" && !Array.isArray(record.error) ? record.error : void 0;
1291
+ const record2 = body && typeof body === "object" && !Array.isArray(body) ? body : void 0;
1292
+ const error = record2?.error && typeof record2.error === "object" && !Array.isArray(record2.error) ? record2.error : void 0;
1097
1293
  const code = error?.code ?? error?.type;
1098
1294
  if (status === 401 || (status === 400 || status === 403) && ["token_expired", "token_revoked", "invalid_token", "invalid_grant"].includes(String(code))) {
1099
1295
  return { accountKey, reason: "login-invalid" };
@@ -1136,19 +1332,19 @@ function planPhase(state) {
1136
1332
  if (state.active) return "planning";
1137
1333
  return state.executing ? "executing" : "off";
1138
1334
  }
1139
- const isRecord$4 = (value) => Boolean(value) && typeof value === "object" && !Array.isArray(value);
1335
+ const isRecord$5 = (value) => Boolean(value) && typeof value === "object" && !Array.isArray(value);
1140
1336
  const hasExactKeys$2 = (value, keys) => Object.keys(value).length === keys.length && keys.every((key) => key in value);
1141
1337
  const nonEmpty = (value, max) => typeof value === "string" && value.trim().length > 0 && value.length <= max;
1142
1338
  const isResolution = (value) => PLAN_RESOLUTIONS.includes(value);
1143
1339
  function parsePlanDoc(value) {
1144
- if (!isRecord$4(value) || !hasExactKeys$2(value, ["planId", "title", "text"])) return null;
1340
+ if (!isRecord$5(value) || !hasExactKeys$2(value, ["planId", "title", "text"])) return null;
1145
1341
  const { planId, title, text } = value;
1146
1342
  if (!nonEmpty(planId, 64) || !nonEmpty(title, PLAN_TITLE_MAX) || !nonEmpty(text, PLAN_TEXT_MAX))
1147
1343
  return null;
1148
1344
  return { planId, title, text };
1149
1345
  }
1150
1346
  function parsePlanEntry(value) {
1151
- if (!isRecord$4(value) || value.v !== 1 || typeof value.at !== "number") return null;
1347
+ if (!isRecord$5(value) || value.v !== 1 || typeof value.at !== "number") return null;
1152
1348
  const { at } = value;
1153
1349
  switch (value.kind) {
1154
1350
  case "mode":
@@ -1172,7 +1368,7 @@ function foldPlanState(entries) {
1172
1368
  state.resolutions = { ...state.resolutions, [planId]: action2 };
1173
1369
  };
1174
1370
  for (const raw of entries) {
1175
- if (!isRecord$4(raw) || raw.type !== "custom" || raw.customType !== PLAN_ENTRY_TYPE) continue;
1371
+ if (!isRecord$5(raw) || raw.type !== "custom" || raw.customType !== PLAN_ENTRY_TYPE) continue;
1176
1372
  const entry = parsePlanEntry(raw.data);
1177
1373
  if (!entry) continue;
1178
1374
  if (entry.kind === "mode") {
@@ -1198,7 +1394,7 @@ function foldPlanState(entries) {
1198
1394
  return state;
1199
1395
  }
1200
1396
  function parsePlanState(value) {
1201
- if (!isRecord$4(value) || typeof value.active !== "boolean" || !isRecord$4(value.resolutions))
1397
+ if (!isRecord$5(value) || typeof value.active !== "boolean" || !isRecord$5(value.resolutions))
1202
1398
  return null;
1203
1399
  const allowed = ["active", "resolutions", "pending", "executing"];
1204
1400
  if (Object.keys(value).some((key) => !allowed.includes(key))) return null;
@@ -1257,11 +1453,6 @@ ${feedback}
1257
1453
  </feedback>
1258
1454
  </plan-feedback>`;
1259
1455
  }
1260
- function withPlanNote(note, text) {
1261
- return `${note}
1262
-
1263
- ${text}`;
1264
- }
1265
1456
  const PLAN_PREFIX = /^<(plan-mode|active-plan)(?: id="[^"]*")?>\n([\s\S]*?)\n<\/\1>(?:\n\n|$)/;
1266
1457
  function splitPlanPrefix(text) {
1267
1458
  const match = PLAN_PREFIX.exec(text);
@@ -1391,8 +1582,23 @@ function parsePrivacyMaskSettings(value) {
1391
1582
  allow: strings(v.allow)
1392
1583
  };
1393
1584
  }
1585
+ const HEADER_NAME_RE = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
1586
+ function parseProviderHeaders(value) {
1587
+ if (typeof value !== "object" || value === null || Array.isArray(value)) return void 0;
1588
+ const headers = {};
1589
+ for (const [name, headerValue] of Object.entries(value)) {
1590
+ if (!HEADER_NAME_RE.test(name)) continue;
1591
+ if (typeof headerValue !== "string" || /[\r\n]/.test(headerValue)) continue;
1592
+ headers[name] = headerValue;
1593
+ }
1594
+ return Object.keys(headers).length > 0 ? headers : void 0;
1595
+ }
1596
+ function escapePiConfigValue(value) {
1597
+ const doubled = value.replaceAll("$", () => "$$");
1598
+ return doubled.startsWith("!") ? `$${doubled}` : doubled;
1599
+ }
1394
1600
  function parseRequestBodyUsage(value) {
1395
- if (!isRecord$3(value)) return null;
1601
+ if (!isRecord$4(value)) return null;
1396
1602
  const keys = ["bytes", "limitBytes", "stage", "blocked", "at"];
1397
1603
  if (Object.keys(value).length !== keys.length || Object.keys(value).some((key) => !keys.includes(key)))
1398
1604
  return null;
@@ -1406,14 +1612,14 @@ function parseRequestBodyUsage(value) {
1406
1612
  at: value.at
1407
1613
  };
1408
1614
  }
1409
- function isRecord$3(value) {
1615
+ function isRecord$4(value) {
1410
1616
  return value !== null && typeof value === "object" && !Array.isArray(value);
1411
1617
  }
1412
1618
  const cap = (text, limit) => text.length > limit ? `${text.slice(0, limit)}…` : text;
1413
1619
  function parseRtkToolStats(value) {
1414
1620
  if (!value || typeof value !== "object" || Array.isArray(value)) return void 0;
1415
- const record = value;
1416
- const { status, originalCommand, rewrittenCommand, inputTokens, outputTokens, reason } = record;
1621
+ const record2 = value;
1622
+ const { status, originalCommand, rewrittenCommand, inputTokens, outputTokens, reason } = record2;
1417
1623
  if (status !== "compressed" && status !== "unchanged" && status !== "pending" && status !== "bypassed" && status !== "unavailable" || typeof originalCommand !== "string" || rewrittenCommand !== void 0 && typeof rewrittenCommand !== "string" || reason !== void 0 && typeof reason !== "string")
1418
1624
  return void 0;
1419
1625
  const result = { status, originalCommand: cap(originalCommand, 16e3) };
@@ -1451,15 +1657,15 @@ const positive = (value) => typeof value === "number" && Number.isFinite(value)
1451
1657
  function resolveShellLimits(raw) {
1452
1658
  const limits = { ...SHELL_LIMITS };
1453
1659
  if (!raw || typeof raw !== "object" || Array.isArray(raw)) return limits;
1454
- const record = raw;
1660
+ const record2 = raw;
1455
1661
  for (const key of MS_KEYS) {
1456
- const value = record[key];
1662
+ const value = record2[key];
1457
1663
  if (positive(value) && value <= MAX_TIMER_MS) limits[key] = value;
1458
1664
  }
1459
- if (positive(record.maxTasks) && record.maxTasks >= 1) {
1460
- limits.maxTasks = Math.floor(record.maxTasks);
1665
+ if (positive(record2.maxTasks) && record2.maxTasks >= 1) {
1666
+ limits.maxTasks = Math.floor(record2.maxTasks);
1461
1667
  }
1462
- if (positive(record.logMaxBytes)) limits.logMaxBytes = Math.floor(record.logMaxBytes);
1668
+ if (positive(record2.logMaxBytes)) limits.logMaxBytes = Math.floor(record2.logMaxBytes);
1463
1669
  return limits;
1464
1670
  }
1465
1671
  const SMART_COMPACT_MODES = ["auto", "fast", "balanced", "thorough"];
@@ -1478,6 +1684,98 @@ function parseSshTimeoutSeconds(value) {
1478
1684
  if (value < MIN_SSH_TIMEOUT_SECONDS || value > MAX_SSH_TIMEOUT_SECONDS) return null;
1479
1685
  return value;
1480
1686
  }
1687
+ const TOOL_BATCH_LABEL_SYSTEM_PROMPT = `Write a short summary label describing what these tool calls accomplished. It appears as a single-line row in a mobile app and truncates around 30 characters, so think git-commit-subject, not sentence.
1688
+
1689
+ Keep the verb in past tense and the most distinctive noun. Drop articles, connectors, and long location context first. Reply in the same language as the intent text when there is one.
1690
+
1691
+ Examples:
1692
+ - Searched in auth/
1693
+ - Fixed NPE in UserService
1694
+ - Created signup endpoint
1695
+ - Read config.json
1696
+ - Ran failing tests`;
1697
+ const FIELD_CHARS = 300;
1698
+ const INTENT_CHARS = 200;
1699
+ const MAX_TOOLS = 8;
1700
+ const LABEL_CHARS = 60;
1701
+ const BOOKKEEPING_TOOLS = /* @__PURE__ */ new Set([
1702
+ "todo",
1703
+ "explore_mark",
1704
+ "explore_fold",
1705
+ "turn_discard",
1706
+ "ask_user"
1707
+ ]);
1708
+ const clip = (text, max) => text.length > max ? `${text.slice(0, max - 1)}…` : text;
1709
+ const isRecord$3 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
1710
+ function contentText(content) {
1711
+ if (typeof content === "string") return content;
1712
+ if (!Array.isArray(content)) return "";
1713
+ return content.filter((part) => isRecord$3(part) && part.type === "text" && typeof part.text === "string").map((part) => part.text).join("\n");
1714
+ }
1715
+ function toolBatchDigest(message, toolResults) {
1716
+ if (!isRecord$3(message) || message.role !== "assistant" || !Array.isArray(message.content))
1717
+ return void 0;
1718
+ const calls = message.content.filter(
1719
+ (part) => isRecord$3(part) && part.type === "toolCall" && typeof part.id === "string" && part.id.length > 0 && typeof part.name === "string"
1720
+ );
1721
+ if (calls.length === 0 || calls.every((c) => BOOKKEEPING_TOOLS.has(c.name))) return void 0;
1722
+ const results = /* @__PURE__ */ new Map();
1723
+ for (const r of toolResults)
1724
+ if (isRecord$3(r) && typeof r.toolCallId === "string") results.set(r.toolCallId, r);
1725
+ const intent = contentText(message.content.filter((p) => isRecord$3(p) && p.type === "text")).trim().replace(/\s+/g, " ");
1726
+ return {
1727
+ callId: calls[0].id,
1728
+ ...intent ? { intent: clip(intent, INTENT_CHARS) } : {},
1729
+ tools: calls.slice(0, MAX_TOOLS).map((c) => {
1730
+ const r = results.get(c.id);
1731
+ let input;
1732
+ try {
1733
+ input = JSON.stringify(c.arguments ?? {});
1734
+ } catch {
1735
+ input = "";
1736
+ }
1737
+ const output = contentText(r?.content).trim();
1738
+ return {
1739
+ name: c.name,
1740
+ input: clip(input, FIELD_CHARS),
1741
+ output: clip(r?.isError === true ? `error: ${output}` : output, FIELD_CHARS)
1742
+ };
1743
+ })
1744
+ };
1745
+ }
1746
+ function toolBatchLabelPrompt(digest) {
1747
+ const tools = digest.tools.map((t) => `Tool: ${t.name}
1748
+ Input: ${t.input}
1749
+ Output: ${t.output}`).join("\n\n");
1750
+ const intent = digest.intent ? `User's intent (from assistant's last message): ${digest.intent}
1751
+
1752
+ ` : "";
1753
+ return `${intent}Tools completed:
1754
+
1755
+ ${tools}
1756
+
1757
+ Label:`;
1758
+ }
1759
+ function parseToolBatchDigest(value) {
1760
+ if (!isRecord$3(value) || typeof value.callId !== "string" || !value.callId) return null;
1761
+ if (value.intent !== void 0 && (typeof value.intent !== "string" || value.intent.length > INTENT_CHARS))
1762
+ return null;
1763
+ if (!Array.isArray(value.tools) || value.tools.length === 0 || value.tools.length > MAX_TOOLS)
1764
+ return null;
1765
+ const fieldOk = (v) => typeof v === "string" && v.length <= FIELD_CHARS;
1766
+ if (!value.tools.every(
1767
+ (t) => isRecord$3(t) && typeof t.name === "string" && t.name.length > 0 && t.name.length <= FIELD_CHARS && fieldOk(t.input) && fieldOk(t.output)
1768
+ ))
1769
+ return null;
1770
+ return value;
1771
+ }
1772
+ function cleanToolBatchLabel(text) {
1773
+ const line = text.split("\n").map((l) => l.trim()).find(Boolean);
1774
+ if (!line) return void 0;
1775
+ const label = line.replace(/^label:\s*/i, "").replace(/^[-*•]\s+/, "").replace(/^["'`“”]+|["'`“”]+$/g, "").trim();
1776
+ if (!label || /^(error\b|i cannot\b|i can't\b|sorry\b)/i.test(label)) return void 0;
1777
+ return clip(label, LABEL_CHARS);
1778
+ }
1481
1779
  const WEB_SEARCH_CHAIN_MAX = 8;
1482
1780
  function isXaiResponsesHost(baseUrl) {
1483
1781
  try {
@@ -1785,16 +2083,16 @@ const SHELL_FAILURE_KINDS = [
1785
2083
  ];
1786
2084
  function parseShellFailure(value) {
1787
2085
  if (!value || typeof value !== "object" || Array.isArray(value)) return null;
1788
- const record = value;
1789
- if (!SHELL_FAILURE_KINDS.includes(record.kind)) return null;
1790
- if (typeof record.retryable !== "boolean") return null;
1791
- if (record.exitCode !== void 0 && !(typeof record.exitCode === "number" && Number.isInteger(record.exitCode))) {
2086
+ const record2 = value;
2087
+ if (!SHELL_FAILURE_KINDS.includes(record2.kind)) return null;
2088
+ if (typeof record2.retryable !== "boolean") return null;
2089
+ if (record2.exitCode !== void 0 && !(typeof record2.exitCode === "number" && Number.isInteger(record2.exitCode))) {
1792
2090
  return null;
1793
2091
  }
1794
2092
  return {
1795
- kind: record.kind,
1796
- retryable: record.retryable,
1797
- ...record.exitCode === void 0 ? {} : { exitCode: record.exitCode }
2093
+ kind: record2.kind,
2094
+ retryable: record2.retryable,
2095
+ ...record2.exitCode === void 0 ? {} : { exitCode: record2.exitCode }
1798
2096
  };
1799
2097
  }
1800
2098
  const AGENT_WAIT_DEFAULT_MS = 30 * 1e3;
@@ -1890,6 +2188,7 @@ function workspaceBranchChangedNote(branch) {
1890
2188
  The current workspace is now on Git branch ${JSON.stringify(branch)}. The directory is unchanged, but file contents may differ. Re-read relevant files before relying on earlier observations or edits. This is background information only, not a task or goal.
1891
2189
  </workspace-branch-changed>`;
1892
2190
  }
2191
+ const RETRY_SKIPPED_REASONS = ["busy", "nothing-to-retry"];
1893
2192
  const isRecord = (value) => Boolean(value) && typeof value === "object" && !Array.isArray(value);
1894
2193
  const isNonEmptyString = (value) => typeof value === "string" && value.length > 0;
1895
2194
  const isDeliveryId = (value) => isNonEmptyString(value) && value.length <= 128;
@@ -1925,7 +2224,8 @@ function isPluginEventPlan(value) {
1925
2224
  ))
1926
2225
  return false;
1927
2226
  if (new Set(value.observe).size !== value.observe.length) return false;
1928
- if (!Array.isArray(value.intercept) || value.intercept.length > 3) return false;
2227
+ if (!Array.isArray(value.intercept) || value.intercept.length > PLUGIN_INTERCEPT_EVENTS.length)
2228
+ return false;
1929
2229
  const events = /* @__PURE__ */ new Set();
1930
2230
  for (const item of value.intercept) {
1931
2231
  if (!isRecord(item) || !hasOnlyKeys(item, ["event", "tools"]) || typeof item.event !== "string")
@@ -1952,9 +2252,18 @@ const isPluginObserveData = (event, data) => {
1952
2252
  if (event === "agent_end")
1953
2253
  return hasOnlyKeys(data, ["text"]) && (data.text === void 0 || typeof data.text === "string" && data.text.length <= AGENT_END_TEXT_MAX);
1954
2254
  if (event === "context_usage") return isContextUsagePayload(data);
2255
+ if (event === "model_select") return isModelSelectPayload(data);
1955
2256
  return (event === "session_start" || event === "session_end" || event === "after_compact") && hasExactKeys(data, ["reason"]) && isNonEmptyString(data.reason) && data.reason.length <= 64;
1956
2257
  };
1957
2258
  const isTokenCount = (value) => typeof value === "number" && Number.isFinite(value) && value >= 0;
2259
+ const isModelRefPart = (value) => typeof value === "string" && value.length > 0 && value.length <= 256;
2260
+ const isModelSelectPayload = (data) => {
2261
+ if (!hasOnlyKeys(data, ["provider", "modelId", "previous", "source"])) return false;
2262
+ if (!isModelRefPart(data.provider) || !isModelRefPart(data.modelId)) return false;
2263
+ if (data.source !== "set" && data.source !== "cycle" && data.source !== "restore") return false;
2264
+ if (data.previous === void 0) return true;
2265
+ return isRecord(data.previous) && hasExactKeys(data.previous, ["provider", "modelId"]) && isModelRefPart(data.previous.provider) && isModelRefPart(data.previous.modelId);
2266
+ };
1958
2267
  const isTokenRecord = (value, keys) => isRecord(value) && hasExactKeys(value, keys) && keys.every((key) => isTokenCount(value[key]));
1959
2268
  const isContextUsagePayload = (data) => hasOnlyKeys(data, [
1960
2269
  "used",
@@ -1970,6 +2279,9 @@ const isContextPartItem = (value) => isRecord(value) && hasOnlyKeys(value, ["nam
1970
2279
  const isContextPart = (value) => isRecord(value) && hasExactKeys(value, ["kind", "tokens", "items"]) && CONTEXT_PART_KINDS.includes(value.kind) && isTokenCount(value.tokens) && Array.isArray(value.items) && value.items.length <= CONTEXT_PART_ITEMS && value.items.every(isContextPartItem);
1971
2280
  const isPluginInterceptPayload = (event, payload) => {
1972
2281
  if (!isRecord(payload)) return false;
2282
+ if (event === "before_agent_start") {
2283
+ return hasExactKeys(payload, ["prompt", "kind"]) && isBoundedText(payload.prompt, BEFORE_AGENT_START_PROMPT_MAX) && (payload.kind === "user" || payload.kind === "custom");
2284
+ }
1973
2285
  if (event === "before_compact") {
1974
2286
  return hasExactKeys(payload, ["reason"]) && isNonEmptyString(payload.reason) && payload.reason.length <= 64;
1975
2287
  }
@@ -2032,6 +2344,8 @@ function isProjectedCodemodeCalls(value) {
2032
2344
  );
2033
2345
  }
2034
2346
  function hasValidProjectedMetadata(value) {
2347
+ if (value.generatedImages !== void 0 && !parseGeneratedImagePaths(value.generatedImages))
2348
+ return false;
2035
2349
  if (value.rtk !== void 0 && !parseRtkToolStats(value.rtk)) return false;
2036
2350
  if (value.approvalReview !== void 0 && !parseApprovalReviewRecord(value.approvalReview))
2037
2351
  return false;
@@ -2088,9 +2402,27 @@ function parseContextOccupancy(value) {
2088
2402
  const tokens = value.buckets[id];
2089
2403
  if (!isSequence(tokens)) return null;
2090
2404
  }
2091
- if (!isSequence(value.used) || !isSequence(value.compactedMessageCount) || typeof value.compactionModelMismatch !== "boolean" || value.contextWindow !== void 0 && !(typeof value.contextWindow === "number" && value.contextWindow > 0) || value.percent !== void 0 && !isSequence(value.percent) || value.compactionEntryId !== void 0 && !isNonEmptyString(value.compactionEntryId)) {
2405
+ const parts = value.parts === void 0 ? void 0 : parseContextParts(value.parts);
2406
+ if (value.parts !== void 0 && !parts) return null;
2407
+ if (!isSequence(value.used) || !isSequence(value.compactedMessageCount) || typeof value.compactionModelMismatch !== "boolean" || value.contextWindow !== void 0 && !(typeof value.contextWindow === "number" && value.contextWindow > 0) || value.percent !== void 0 && !isSequence(value.percent) || value.compactionEntryId !== void 0 && !isNonEmptyString(value.compactionEntryId) || value.compactionTokensAfter !== void 0 && !isSequence(value.compactionTokensAfter)) {
2092
2408
  return null;
2093
2409
  }
2410
+ return { ...value, ...parts ? { parts } : {} };
2411
+ }
2412
+ function parseContextParts(value) {
2413
+ if (!Array.isArray(value) || value.length > CONTEXT_PART_KINDS.length) return null;
2414
+ const seen = /* @__PURE__ */ new Set();
2415
+ for (const part of value) {
2416
+ if (!isRecord(part) || !CONTEXT_PART_KINDS.includes(part.kind) || seen.has(part.kind) || !isSequence(part.tokens) || !Array.isArray(part.items) || part.items.length > CONTEXT_PART_ITEMS) {
2417
+ return null;
2418
+ }
2419
+ seen.add(part.kind);
2420
+ for (const item of part.items) {
2421
+ if (!isRecord(item) || !isNonEmptyString(item.name) || typeof item.tag !== "string" || item.tag.length > 32 || !isSequence(item.tokens) || item.n !== void 0 && (!isSequence(item.n) || item.n < 1)) {
2422
+ return null;
2423
+ }
2424
+ }
2425
+ }
2094
2426
  return value;
2095
2427
  }
2096
2428
  const isNonNegativeNumber = (value) => typeof value === "number" && Number.isFinite(value) && value >= 0;
@@ -2160,14 +2492,20 @@ function parsePhysicalSpawnModelConfig(value) {
2160
2492
  "reasoning",
2161
2493
  "thinkingLevel",
2162
2494
  "contextWindow",
2163
- "maxTokens"
2495
+ "maxTokens",
2496
+ "headers"
2164
2497
  ]) || !MODEL_API_KINDS.includes(value.api) || typeof value.baseUrl !== "string" || typeof value.apiKey !== "string" || !isNonEmptyString(value.modelId) || !isNonEmptyString(value.settingsProviderId) || value.oauthAccountKey !== void 0 && !isNonEmptyString(value.oauthAccountKey) || value.oauthAccountPool !== void 0 && (!parseOauthAccountPool(value.oauthAccountPool) || !isCodexAccountKey(value.oauthAccountKey) || value.apiKey !== "")) {
2165
2498
  return null;
2166
2499
  }
2500
+ if (value.headers !== void 0) {
2501
+ const headers = parseProviderHeaders(value.headers);
2502
+ if (headers) value.headers = headers;
2503
+ else delete value.headers;
2504
+ }
2167
2505
  return value;
2168
2506
  }
2169
2507
  function parseSubagentModelOption(value) {
2170
- if (!isRecord(value) || !hasOnlyKeys(value, ["name", "config", "description"]) || !isNonEmptyString(value.name) || !parseSpawnModelConfig(value.config) || value.description !== void 0 && typeof value.description !== "string") {
2508
+ if (!isRecord(value) || !hasOnlyKeys(value, ["name", "config", "description"]) || !isNonEmptyString(value.name) || !parseSessionModelConfig(value.config) || value.description !== void 0 && typeof value.description !== "string") {
2171
2509
  return null;
2172
2510
  }
2173
2511
  return value;
@@ -2301,6 +2639,9 @@ function parseAgentSessionCustomEntry(value) {
2301
2639
  const receipt = parseCapabilityReceipt(value.receipt);
2302
2640
  return receipt ? { kind: "capability-receipt", receipt } : null;
2303
2641
  }
2642
+ if (value.kind === "tool-batch-label") {
2643
+ return hasExactKeys(value, ["kind", "callId", "label", "at"]) && isNonEmptyString(value.callId) && isNonEmptyString(value.label) && value.label.length <= 200 && typeof value.at === "number" && Number.isFinite(value.at) ? value : null;
2644
+ }
2304
2645
  const child = parseSafeChildRef(value.child);
2305
2646
  if (!child || typeof value.at !== "number" || !Number.isFinite(value.at)) return null;
2306
2647
  if (value.kind === "agent-dispatch" && hasExactKeys(value, ["kind", "child", "at"])) {
@@ -2350,7 +2691,7 @@ function parseSafeJournalRecord(value) {
2350
2691
  }
2351
2692
  }
2352
2693
  function parseSafeJournalProjection(value) {
2353
- if (!isRecord(value) || !hasExactKeys(value, ["records", "partial"]) || !Array.isArray(value.records) || value.records.some((record) => parseSafeJournalRecord(record) === null) || typeof value.partial !== "boolean") {
2694
+ if (!isRecord(value) || !hasExactKeys(value, ["records", "partial"]) || !Array.isArray(value.records) || value.records.some((record2) => parseSafeJournalRecord(record2) === null) || typeof value.partial !== "boolean") {
2354
2695
  return null;
2355
2696
  }
2356
2697
  return value;
@@ -2459,6 +2800,7 @@ function parseAgentCommand(value) {
2459
2800
  "mcpServers",
2460
2801
  "pluginCommands",
2461
2802
  "pluginTools",
2803
+ "workflowPresetFiles",
2462
2804
  "pluginEvents",
2463
2805
  "pluginHooks",
2464
2806
  "instruction",
@@ -2482,16 +2824,20 @@ function parseAgentCommand(value) {
2482
2824
  "refusalRetryPrompt",
2483
2825
  "botMode",
2484
2826
  "botGroupTasks",
2827
+ "botDiscussMode",
2485
2828
  "botRoutines",
2486
2829
  "botDelegationTask",
2487
2830
  "botWriteLock",
2488
2831
  "protectedActions",
2489
- "planMode"
2832
+ "planMode",
2833
+ "instanceId"
2490
2834
  ]) || !parseSessionIdentity(value.identity) || typeof value.cwd !== "string" || !parseSessionModelConfig(value.model) || value.resumeFile !== void 0 && !isNonEmptyString(value.resumeFile) || value.loadHarnessAssets !== void 0 && typeof value.loadHarnessAssets !== "boolean" || value.trustedProjectCode !== void 0 && !(Array.isArray(value.trustedProjectCode) && value.trustedProjectCode.length <= 500 && value.trustedProjectCode.every(
2491
2835
  (entry) => typeof entry === "string" && entry.length > 0 && entry.length <= 1024
2492
- )) || value.pluginCommands !== void 0 && parsePluginCommands(value.pluginCommands) === null || value.pluginTools !== void 0 && !isPluginToolList(value.pluginTools) || value.pluginEvents !== void 0 && !isPluginEventPlan(value.pluginEvents) || value.pluginHooks !== void 0 && parsePluginHooks(value.pluginHooks) === null || value.rtkEnabled !== void 0 && typeof value.rtkEnabled !== "boolean" || value.dcgPath !== void 0 && !isNonEmptyString(value.dcgPath) || value.planMode !== void 0 && typeof value.planMode !== "boolean" || value.windowsLocalShell !== void 0 && !WINDOWS_LOCAL_SHELLS.includes(
2836
+ )) || value.pluginCommands !== void 0 && parsePluginCommands(value.pluginCommands) === null || value.pluginTools !== void 0 && !isPluginToolList(value.pluginTools) || value.workflowPresetFiles !== void 0 && !(Array.isArray(value.workflowPresetFiles) && value.workflowPresetFiles.length <= 500 && value.workflowPresetFiles.every(
2837
+ (entry) => typeof entry === "string" && entry.length > 0 && entry.length <= 1024
2838
+ )) || value.pluginEvents !== void 0 && !isPluginEventPlan(value.pluginEvents) || value.pluginHooks !== void 0 && parsePluginHooks(value.pluginHooks) === null || value.rtkEnabled !== void 0 && typeof value.rtkEnabled !== "boolean" || value.dcgPath !== void 0 && !isNonEmptyString(value.dcgPath) || value.planMode !== void 0 && typeof value.planMode !== "boolean" || value.windowsLocalShell !== void 0 && !WINDOWS_LOCAL_SHELLS.includes(
2493
2839
  value.windowsLocalShell
2494
- ) || value.exploreFoldEnabled !== void 0 && typeof value.exploreFoldEnabled !== "boolean" || value.editMode !== void 0 && !isEditMode(value.editMode) || value.hashlineEditEnabled !== void 0 && typeof value.hashlineEditEnabled !== "boolean" || value.compactStrategy !== void 0 && parseCompactStrategy(value.compactStrategy) === null || value.smartCompactEnabled !== void 0 && typeof value.smartCompactEnabled !== "boolean" || value.smartCompactSummaryModel !== void 0 && parseSpawnModelConfig(value.smartCompactSummaryModel) === null || value.smartCompactMode !== void 0 && parseSmartCompactMode(value.smartCompactMode) === null || value.memoryLanguage !== void 0 && typeof value.memoryLanguage !== "string" || value.remote !== void 0 && parseAgentRemoteConfig(value.remote) === null || value.subagentModels !== void 0 && (!Array.isArray(value.subagentModels) || value.subagentModels.some((entry) => parseSubagentModelOption(entry) === null)) || value.approvalReviewer !== void 0 && parseSpawnModelConfig(value.approvalReviewer) === null || value.approvalReviewerAllowThreshold !== void 0 && (!isApprovalAllowThreshold(value.approvalReviewerAllowThreshold) || value.approvalReviewerClassifier === void 0) || value.approvalReviewerManaged !== void 0 && (value.approvalReviewerManaged !== true || value.approvalReviewerClassifier === void 0) || value.approvalReviewerClassifier !== void 0 && (value.approvalReviewer !== void 0 || !parseClassifierCredentials(value.approvalReviewerClassifier)) || value.rolePrompt !== void 0 && !isNonEmptyString(value.rolePrompt) || value.systemPrompt !== void 0 && !isNonEmptyString(value.systemPrompt) || value.systemPromptAppend !== void 0 && !isNonEmptyString(value.systemPromptAppend) || value.systemPromptBoost !== void 0 && !isNonEmptyString(value.systemPromptBoost) || value.refusalRetryPrompt !== void 0 && !isNonEmptyString(value.refusalRetryPrompt) || value.botMode !== void 0 && typeof value.botMode !== "boolean" || value.botGroupTasks !== void 0 && typeof value.botGroupTasks !== "boolean" || value.botRoutines !== void 0 && typeof value.botRoutines !== "boolean" || value.botDelegationTask !== void 0 && typeof value.botDelegationTask !== "boolean" || value.botWriteLock !== void 0 && (!isRecord(value.botWriteLock) || !isNonEmptyString(value.botWriteLock.label) || !Array.isArray(value.botWriteLock.ancestors) || !value.botWriteLock.ancestors.every(isNonEmptyString)) || value.protectedActions !== void 0 && typeof value.protectedActions !== "boolean") {
2840
+ ) || value.exploreFoldEnabled !== void 0 && typeof value.exploreFoldEnabled !== "boolean" || value.editMode !== void 0 && !isEditMode(value.editMode) || value.hashlineEditEnabled !== void 0 && typeof value.hashlineEditEnabled !== "boolean" || value.compactStrategy !== void 0 && parseCompactStrategy(value.compactStrategy) === null || value.smartCompactEnabled !== void 0 && typeof value.smartCompactEnabled !== "boolean" || value.smartCompactSummaryModel !== void 0 && parseSpawnModelConfig(value.smartCompactSummaryModel) === null || value.smartCompactMode !== void 0 && parseSmartCompactMode(value.smartCompactMode) === null || value.memoryLanguage !== void 0 && typeof value.memoryLanguage !== "string" || value.remote !== void 0 && parseAgentRemoteConfig(value.remote) === null || value.subagentModels !== void 0 && (!Array.isArray(value.subagentModels) || value.subagentModels.some((entry) => parseSubagentModelOption(entry) === null)) || value.approvalReviewer !== void 0 && parseSpawnModelConfig(value.approvalReviewer) === null || value.approvalReviewerAllowThreshold !== void 0 && (!isApprovalAllowThreshold(value.approvalReviewerAllowThreshold) || value.approvalReviewerClassifier === void 0) || value.approvalReviewerManaged !== void 0 && (value.approvalReviewerManaged !== true || value.approvalReviewerClassifier === void 0) || value.approvalReviewerClassifier !== void 0 && (value.approvalReviewer !== void 0 || !parseClassifierCredentials(value.approvalReviewerClassifier)) || value.rolePrompt !== void 0 && !isNonEmptyString(value.rolePrompt) || value.systemPrompt !== void 0 && !isNonEmptyString(value.systemPrompt) || value.systemPromptAppend !== void 0 && !isNonEmptyString(value.systemPromptAppend) || value.systemPromptBoost !== void 0 && !isNonEmptyString(value.systemPromptBoost) || value.refusalRetryPrompt !== void 0 && !isNonEmptyString(value.refusalRetryPrompt) || value.botMode !== void 0 && typeof value.botMode !== "boolean" || value.botGroupTasks !== void 0 && typeof value.botGroupTasks !== "boolean" || value.botDiscussMode !== void 0 && typeof value.botDiscussMode !== "boolean" || value.botDiscussMode === true && (value.botMode !== true || value.botGroupTasks !== true) || value.botRoutines !== void 0 && typeof value.botRoutines !== "boolean" || value.botDelegationTask !== void 0 && typeof value.botDelegationTask !== "boolean" || value.botWriteLock !== void 0 && (!isRecord(value.botWriteLock) || !isNonEmptyString(value.botWriteLock.label) || !Array.isArray(value.botWriteLock.ancestors) || !value.botWriteLock.ancestors.every(isNonEmptyString)) || value.protectedActions !== void 0 && typeof value.protectedActions !== "boolean" || value.instanceId !== void 0 && !isUuid(value.instanceId)) {
2495
2841
  return null;
2496
2842
  }
2497
2843
  return value;
@@ -2561,8 +2907,10 @@ function parseAgentCommand(value) {
2561
2907
  "text",
2562
2908
  "images",
2563
2909
  "deliveryId",
2564
- "activeOnly"
2565
- ]) && parseAnySessionIdentity(value.identity) && typeof value.text === "string" && images !== null && (value.text.length > 0 || images.length > 0) && (value.activeOnly === void 0 || value.type === "steer" && value.activeOnly === true && isDeliveryId(value.deliveryId)) && (value.deliveryId === void 0 || isDeliveryId(value.deliveryId)) ? value : null;
2910
+ "activeOnly",
2911
+ "resume",
2912
+ "instanceId"
2913
+ ]) && parseAnySessionIdentity(value.identity) && typeof value.text === "string" && images !== null && (value.text.length > 0 || images.length > 0) && (value.activeOnly === void 0 || value.type === "steer" && value.activeOnly === true && isDeliveryId(value.deliveryId)) && (value.resume === void 0 || value.type === "prompt" && value.resume === true) && (value.deliveryId === void 0 || isDeliveryId(value.deliveryId)) && (value.instanceId === void 0 || isUuid(value.instanceId) && parseSessionIdentity(value.identity) !== null) ? value : null;
2566
2914
  }
2567
2915
  case "set-model":
2568
2916
  return hasExactKeys(value, ["type", "identity", "model"]) && parseAnySessionIdentity(value.identity) && parseSessionModelConfig(value.model) ? value : null;
@@ -2594,6 +2942,8 @@ function parseAgentCommand(value) {
2594
2942
  return hasExactKeys(value, ["type", "limits"]) && isRecord(value.limits) && JSON.stringify(resolveShellLimits(value.limits)) === JSON.stringify(value.limits) ? value : null;
2595
2943
  case "set-privacy-masking":
2596
2944
  return hasExactKeys(value, ["type", "settings"]) && JSON.stringify(parsePrivacyMaskSettings(value.settings)) === JSON.stringify(value.settings) ? value : null;
2945
+ case "set-image-generation-config":
2946
+ return hasOnlyKeys(value, ["type", "config", "error"]) && (value.config === null || parseImageGenerationConfig(value.config) !== null) && (value.error === void 0 || typeof value.error === "string" && value.error.length <= 1024) ? value : null;
2597
2947
  case "set-web-search-config":
2598
2948
  return hasOnlyKeys(value, ["type", "chain", "configured"]) && (value.configured === void 0 || typeof value.configured === "boolean") && Array.isArray(value.chain) && value.chain.length <= WEB_SEARCH_CHAIN_MAX && value.chain.every(isWebSearchChainEntry) ? value : null;
2599
2949
  case "set-disabled-workflow-presets":
@@ -2661,9 +3011,12 @@ function parseAgentCommand(value) {
2661
3011
  }
2662
3012
  case "abort":
2663
3013
  case "abort-retry":
2664
- case "retry":
2665
3014
  case "release-parent":
2666
3015
  return hasExactKeys(value, ["type", "identity"]) && parseAnySessionIdentity(value.identity) ? value : null;
3016
+ case "withdraw-steer":
3017
+ return hasExactKeys(value, ["type", "identity", "deliveryId"]) && parseAnySessionIdentity(value.identity) && isDeliveryId(value.deliveryId) ? value : null;
3018
+ case "retry":
3019
+ return hasOnlyKeys(value, ["type", "identity", "instanceId", "unfinishedOnly"]) && parseAnySessionIdentity(value.identity) && (value.unfinishedOnly === void 0 || value.unfinishedOnly === true) && (value.instanceId === void 0 || isUuid(value.instanceId) && parseSessionIdentity(value.identity) !== null) ? value : null;
2667
3020
  case "append-session-custom-entry":
2668
3021
  return hasExactKeys(value, ["type", "identity", "entry"]) && parseAnySessionIdentity(value.identity) && parseAgentSessionCustomEntry(value.entry) ? value : null;
2669
3022
  case "reload-session":
@@ -2702,6 +3055,7 @@ function parseLifecycleEvent(value) {
2702
3055
  return parseModelRef(value.model) ? value : null;
2703
3056
  case "parent-rejected":
2704
3057
  case "parent-ended":
3058
+ return hasOnlyKeys(value, ["type", "identity", "seq", "reason", "instanceId"]) && isNonEmptyString(value.reason) && (value.instanceId === void 0 || isUuid(value.instanceId)) ? value : null;
2705
3059
  case "child-rejected":
2706
3060
  case "child-ended":
2707
3061
  return isNonEmptyString(value.reason) ? value : null;
@@ -2722,8 +3076,8 @@ const isOptionalTimestamp = (value) => value === void 0 || typeof value === "num
2722
3076
  function parseAgentWorkerEvent(value) {
2723
3077
  if (!isRecord(value) || !isNonEmptyString(value.type)) return null;
2724
3078
  if (value.type === "privacy-mask-ledger") {
2725
- const record = parsePrivacyMaskRecord(value.record);
2726
- return hasExactKeys(value, ["type", "record"]) && record ? { type: "privacy-mask-ledger", record } : null;
3079
+ const record2 = parsePrivacyMaskRecord(value.record);
3080
+ return hasExactKeys(value, ["type", "record"]) && record2 ? { type: "privacy-mask-ledger", record: record2 } : null;
2727
3081
  }
2728
3082
  if (value.type === "oauth-pool-select") {
2729
3083
  return hasOnlyKeys(value, [
@@ -2780,6 +3134,9 @@ function parseAgentWorkerEvent(value) {
2780
3134
  if (value.type === "title-failed") {
2781
3135
  return hasExactKeys(value, ["type", "conversationId", "error"]) && isNonEmptyString(value.conversationId) && isNonEmptyString(value.error) ? value : null;
2782
3136
  }
3137
+ if (value.type === "tool-batch-completed") {
3138
+ return hasExactKeys(value, ["type", "identity", "digest"]) && parseSessionIdentity(value.identity) && parseToolBatchDigest(value.digest) ? value : null;
3139
+ }
2783
3140
  if (value.type === "text-delta") {
2784
3141
  return hasOnlyKeys(value, ["type", "requestId", "text", "thinking"]) && isNonEmptyString(value.requestId) && typeof value.text === "string" && (value.thinking === void 0 || typeof value.thinking === "string") ? value : null;
2785
3142
  }
@@ -2811,7 +3168,7 @@ function parseAgentWorkerEvent(value) {
2811
3168
  case "memory-invoke":
2812
3169
  return hasExactKeys(value, ["type", "identity", "seq", "requestId", "op", "params"]) && isNonEmptyString(value.requestId) && MEMORY_OPS.includes(value.op) ? value : null;
2813
3170
  case "delegation-invoke":
2814
- return hasExactKeys(value, ["type", "identity", "seq", "requestId", "op", "params"]) && parseSessionIdentity(value.identity) && isNonEmptyString(value.requestId) && (value.op === "delegate" || value.op === "check_delegation" || value.op === "group_tasks" || value.op === "group_history" || value.op === "routine_propose" || value.op === "send_image" || value.op === "report_blocked") ? value : null;
3171
+ return hasExactKeys(value, ["type", "identity", "seq", "requestId", "op", "params"]) && parseSessionIdentity(value.identity) && isNonEmptyString(value.requestId) && (value.op === "delegate" || value.op === "check_delegation" || value.op === "retry_delegation" || value.op === "group_tasks" || value.op === "group_history" || value.op === "routine_propose" || value.op === "send_image" || value.op === "report_blocked") ? value : null;
2815
3172
  case "computer-invoke":
2816
3173
  return hasExactKeys(value, ["type", "identity", "seq", "requestId", "op", "params"]) && isNonEmptyString(value.requestId) && COMPUTER_OPS.includes(value.op) ? value : null;
2817
3174
  case "computer-cancel":
@@ -2850,11 +3207,13 @@ function parseAgentWorkerEvent(value) {
2850
3207
  case "message-upsert":
2851
3208
  return isSequence(value.index) && isRecord(value.message) && hasValidProjectedMetadata(value.message) ? value : null;
2852
3209
  case "turn-completed":
2853
- return isNonEmptyString(value.turnId) && (value.digest === void 0 || parseTurnDigest(value.digest)) && (value.requestBudgetStop === void 0 || value.requestBudgetStop === true) && (value.requestBudgetError === void 0 || value.requestBudgetStop === true && isNonEmptyString(value.requestBudgetError)) ? value : null;
3210
+ return isNonEmptyString(value.turnId) && (value.digest === void 0 || parseTurnDigest(value.digest)) && (value.aborted === void 0 || value.aborted === true) && (value.requestBudgetStop === void 0 || value.requestBudgetStop === true) && (value.requestBudgetError === void 0 || value.requestBudgetStop === true && isNonEmptyString(value.requestBudgetError)) ? value : null;
2854
3211
  case "turn-failed":
2855
- return isNonEmptyString(value.turnId) && isNonEmptyString(value.error) && (value.undelivered === void 0 || value.undelivered === true) ? value : null;
3212
+ return isNonEmptyString(value.turnId) && isNonEmptyString(value.error) && (value.undelivered === void 0 || value.undelivered === true) && (value.retryExhausted === void 0 || value.retryExhausted === true) ? value : null;
2856
3213
  case "turn-retry":
2857
3214
  return Number.isInteger(value.attempt) && value.attempt >= 1 && Number.isInteger(value.maxAttempts) && value.maxAttempts >= 0 && isSequence(value.delayMs) && isNonEmptyString(value.error) ? value : null;
3215
+ case "retry-skipped":
3216
+ return hasExactKeys(value, ["type", "identity", "seq", "reason"]) && RETRY_SKIPPED_REASONS.includes(value.reason) ? value : null;
2858
3217
  case "messages-truncated":
2859
3218
  return isSequence(value.length) ? value : null;
2860
3219
  case "rewind-done": {
@@ -2884,7 +3243,7 @@ function parseAgentWorkerEvent(value) {
2884
3243
  case "ask-resolved":
2885
3244
  return isNonEmptyString(value.requestId) ? value : null;
2886
3245
  case "ask-request":
2887
- return isRecord(value.ask) && isNonEmptyString(value.ask.requestId) && isNonEmptyString(value.ask.question) && isOptionalTimestamp(value.ask.expiresAt) ? value : null;
3246
+ return isRecord(value.ask) && isNonEmptyString(value.ask.requestId) && isNonEmptyString(value.ask.question) && isOptionalTimestamp(value.ask.expiresAt) && (value.ask.recommended === void 0 || Array.isArray(value.ask.options) && value.ask.options.includes(value.ask.recommended)) ? value : null;
2888
3247
  case "subagent-update":
2889
3248
  return isRecord(value.agent) ? value : null;
2890
3249
  case "coworker-update":
@@ -2915,133 +3274,158 @@ function parseAgentWorkerEvent(value) {
2915
3274
  }
2916
3275
  }
2917
3276
  export {
2918
- parsePluginToolName as $,
3277
+ CLAUDE_HOOK_EVENTS as $,
2919
3278
  AGENT_END_TEXT_MAX as A,
2920
- EMPTY_PLAN_STATE as B,
3279
+ BEFORE_AGENT_START_PROMPT_MAX as B,
2921
3280
  CONTEXT_OCCUPANCY_BUCKETS as C,
2922
3281
  DEFAULT_MAX_ACTIVE_COWORKERS as D,
2923
- ENSO_LOCKED_PROFILE as E,
2924
- mergeMaskReports as F,
2925
- PRIVACY_MASK_ENTRY as G,
2926
- parseAgentCommand as H,
2927
- pluginToolName as I,
2928
- APPROVAL_MODES as J,
2929
- ENSO_LOCKED_PROFILE_ID as K,
2930
- parseChildConversationMetadata as L,
3282
+ parseAgentSessionCustomEntry as E,
3283
+ ENSO_LOCKED_PROFILE as F,
3284
+ toolBatchDigest as G,
3285
+ splitPlanPrefix as H,
3286
+ parsePlanMessage as I,
3287
+ isClassifierOnlyProvider as J,
3288
+ isOauthAccountPool as K,
3289
+ resolveEditMode as L,
2931
3290
  MODEL_API_KINDS as M,
2932
- eligibleOauthPoolAccountKeys as N,
2933
- isEditMode as O,
3291
+ EMPTY_PLAN_STATE as N,
3292
+ mergeMaskReports as O,
2934
3293
  PLUGIN_MESSAGE_TYPE as P,
2935
- normalizeSshTimeoutSeconds as Q,
2936
- CLAUDE_HOOK_EVENTS as R,
3294
+ PRIVACY_MASK_ENTRY as Q,
3295
+ parseAgentCommand as R,
2937
3296
  STALE_SESSION_ERROR as S,
2938
- THINKING_LEVELS as T,
2939
- isReservedAgentTypeName as U,
2940
- BUILTIN_AGENT_TYPES as V,
2941
- isPluginEntry as W,
2942
- PLUGIN_HOST_APIS as X,
2943
- PLUGIN_INJECT_MAX_CHARS as Y,
2944
- parsePluginInjectImages as Z,
2945
- isHostPluginEvent as _,
2946
- isProbability as a,
2947
- planKickoffText as a$,
2948
- initialInterceptState as a0,
2949
- CHILD_INTERCEPT_TOTAL_TIMEOUT_MS as a1,
2950
- INTERCEPT_TOTAL_TIMEOUT_MS as a2,
2951
- CHILD_INTERCEPT_TIMEOUT_MS as a3,
2952
- INTERCEPT_TIMEOUT_MS as a4,
2953
- applyInterceptResult as a5,
2954
- failClosedResult as a6,
2955
- OBSERVE_TIMEOUT_MS as a7,
2956
- BEFORE_COMPACT_TIMEOUT_MS as a8,
2957
- PLUGIN_PROGRESS_MAX_CHARS as a9,
2958
- parseParentSourceBindingRequest as aA,
2959
- parseParentModelSelectionRequest as aB,
2960
- parseAgentDispatchRequest as aC,
2961
- isApprovalDecision as aD,
2962
- TITLE_SUMMARY_MAX_CANDIDATES as aE,
2963
- parseCreateProjectAuthorityRequest as aF,
2964
- parseSelectProjectAuthorityRequest as aG,
2965
- parseRemoveProjectAuthorityRequest as aH,
2966
- parseStartOauthWizardRequest as aI,
2967
- parseOauthFlowPromptResponse as aJ,
2968
- parseOauthFlowControlRequest as aK,
2969
- SHELL_LIMITS as aL,
2970
- parseMaskReport as aM,
2971
- parsePluginMessageSource as aN,
2972
- parseRtkToolStats as aO,
2973
- isBackgroundTaskId as aP,
2974
- parseShellFailure as aQ,
2975
- pluginArtifactsFromToolDetails as aR,
2976
- parseApprovalReviewRecord as aS,
2977
- PROJECTED_FILE_TEXT_LIMIT as aT,
2978
- PROJECTED_FILE_CHANGE_LIMIT as aU,
2979
- PROJECTED_APPLY_PATCH_PATH_TEXT_LIMIT as aV,
2980
- PROJECTED_APPLY_PATCH_PATH_COUNT_LIMIT as aW,
2981
- foldPlanState as aX,
2982
- PLAN_MODE_ON_NOTE as aY,
2983
- PLAN_MODE_OFF_NOTE as aZ,
2984
- planFeedbackText as a_,
2985
- MCP_TRANSPORTS as aa,
2986
- parsePrivacyMaskRecord as ab,
2987
- hasProviderCredentials as ac,
2988
- buildAgentTypeRegistrySnapshot as ad,
2989
- visibleMemberAgentTypes as ae,
2990
- ENSO_AGENT_TYPE_KEY as af,
2991
- DEFAULT_APPROVAL_ALLOW_THRESHOLD as ag,
2992
- resolveShellLimits as ah,
2993
- parseWebSearchChain as ai,
2994
- parseWindowsLocalShell as aj,
2995
- parseSmartCompactMode as ak,
2996
- parseAgentWorkerEvent as al,
2997
- DEFAULT_PRESET_ID as am,
2998
- normalizeMaxActiveCoworkers as an,
2999
- normalizeAutoRetryLimit as ao,
3000
- parsePrivacyMaskSettings as ap,
3001
- parseDisabledWorkflowPresets as aq,
3002
- AGENT_WAIT_DEFAULT_MS as ar,
3003
- AGENT_WAIT_MAX_MS as as,
3004
- isDeliveryId as at,
3005
- parseChildSessionIdentity as au,
3006
- parseCapabilityAskResponse as av,
3007
- parseCreateConversationAuthorityRequest as aw,
3008
- parseConversationAuthorityRequest as ax,
3009
- parseUpdateConversationSelectionRequest as ay,
3010
- parseTitleSummaryInput as az,
3011
- CONTEXT_PART_ITEMS as b,
3012
- activePlanNote as b0,
3013
- PLAN_TITLE_MAX as b1,
3014
- PLAN_TEXT_MAX as b2,
3015
- planPhase as b3,
3016
- parsePlanEntry as b4,
3017
- parseAgentControlToolRequest as b5,
3018
- nativeSearchKindFor as b6,
3019
- isWorkflowPresetId as b7,
3020
- PLUGIN_EVENTS as b8,
3021
- isInterceptEvent as b9,
3022
- MODEL_REASONING_OVERRIDES as c,
3023
- MODEL_THINKING_LEVEL_OVERRIDES as d,
3024
- isCodexAccountKey as e,
3025
- classifyCodexPoolFailure as f,
3026
- isUuid as g,
3027
- isChildInterceptEvent as h,
3297
+ pluginToolName as T,
3298
+ APPROVAL_MODES as U,
3299
+ THINKING_LEVELS as V,
3300
+ ENSO_LOCKED_PROFILE_ID as W,
3301
+ parseChildConversationMetadata as X,
3302
+ eligibleOauthPoolAccountKeys as Y,
3303
+ isEditMode as Z,
3304
+ normalizeSshTimeoutSeconds as _,
3305
+ parseSessionIdentity as a,
3306
+ parseCreateProjectAuthorityRequest as a$,
3307
+ isReservedAgentTypeName as a0,
3308
+ BUILTIN_AGENT_TYPES as a1,
3309
+ isPluginEntry as a2,
3310
+ PLUGIN_HOST_APIS as a3,
3311
+ PLUGIN_INJECT_MAX_CHARS as a4,
3312
+ parsePluginInjectImages as a5,
3313
+ isHostPluginEvent as a6,
3314
+ parsePluginToolName as a7,
3315
+ initialInterceptState as a8,
3316
+ CHILD_INTERCEPT_TOTAL_TIMEOUT_MS as a9,
3317
+ AGENT_WAIT_DEFAULT_MS as aA,
3318
+ AGENT_WAIT_MAX_MS as aB,
3319
+ isDeliveryId as aC,
3320
+ LOCAL_IMAGE_SCHEME as aD,
3321
+ REMOTE_FETCH_HOST as aE,
3322
+ BOT_AVATAR_HOST as aF,
3323
+ PLUGIN_ASSET_HOST as aG,
3324
+ mediaExtension as aH,
3325
+ localImageUrlToPath as aI,
3326
+ isMediaPath as aJ,
3327
+ isVideoPath as aK,
3328
+ IMAGE_EXTENSIONS as aL,
3329
+ withVersionSegment as aM,
3330
+ DEFAULT_BASE_URLS as aN,
3331
+ parseCapabilityAskResponse as aO,
3332
+ parseCreateConversationAuthorityRequest as aP,
3333
+ parseConversationAuthorityRequest as aQ,
3334
+ parseUpdateConversationSelectionRequest as aR,
3335
+ parseTitleSummaryInput as aS,
3336
+ parseParentSourceBindingRequest as aT,
3337
+ parseParentModelSelectionRequest as aU,
3338
+ parseAgentDispatchRequest as aV,
3339
+ isApprovalDecision as aW,
3340
+ cleanToolBatchLabel as aX,
3341
+ toolBatchLabelPrompt as aY,
3342
+ TOOL_BATCH_LABEL_SYSTEM_PROMPT as aZ,
3343
+ TITLE_SUMMARY_MAX_CANDIDATES as a_,
3344
+ INTERCEPT_TOTAL_TIMEOUT_MS as aa,
3345
+ CHILD_INTERCEPT_TIMEOUT_MS as ab,
3346
+ INTERCEPT_TIMEOUT_MS as ac,
3347
+ applyInterceptResult as ad,
3348
+ failClosedResult as ae,
3349
+ OBSERVE_TIMEOUT_MS as af,
3350
+ BEFORE_COMPACT_TIMEOUT_MS as ag,
3351
+ PLUGIN_PROGRESS_MAX_CHARS as ah,
3352
+ MCP_TRANSPORTS as ai,
3353
+ parsePrivacyMaskRecord as aj,
3354
+ hasProviderCredentials as ak,
3355
+ buildAgentTypeRegistrySnapshot as al,
3356
+ visibleMemberAgentTypes as am,
3357
+ ENSO_AGENT_TYPE_KEY as an,
3358
+ DEFAULT_APPROVAL_ALLOW_THRESHOLD as ao,
3359
+ resolveShellLimits as ap,
3360
+ parseWebSearchChain as aq,
3361
+ parseWindowsLocalShell as ar,
3362
+ parseSmartCompactMode as as,
3363
+ parseAgentWorkerEvent as at,
3364
+ DEFAULT_PRESET_ID as au,
3365
+ normalizeMaxActiveCoworkers as av,
3366
+ normalizeAutoRetryLimit as aw,
3367
+ parsePrivacyMaskSettings as ax,
3368
+ parseDisabledWorkflowPresets as ay,
3369
+ resolveImageGenerationConfig as az,
3370
+ parseApprovalAllowThreshold as b,
3371
+ parseSelectProjectAuthorityRequest as b0,
3372
+ parseRemoveProjectAuthorityRequest as b1,
3373
+ parseStartOauthWizardRequest as b2,
3374
+ parseOauthFlowPromptResponse as b3,
3375
+ parseOauthFlowControlRequest as b4,
3376
+ SHELL_LIMITS as b5,
3377
+ imageGenerationPreviewPaths as b6,
3378
+ parseGeneratedImagePaths as b7,
3379
+ parseMaskReport as b8,
3380
+ parsePluginMessageSource as b9,
3381
+ parseRtkToolStats as ba,
3382
+ isBackgroundTaskId as bb,
3383
+ parseShellFailure as bc,
3384
+ pluginArtifactsFromToolDetails as bd,
3385
+ parseApprovalReviewRecord as be,
3386
+ PROJECTED_FILE_TEXT_LIMIT as bf,
3387
+ PROJECTED_FILE_CHANGE_LIMIT as bg,
3388
+ PROJECTED_APPLY_PATCH_PATH_TEXT_LIMIT as bh,
3389
+ PROJECTED_APPLY_PATCH_PATH_COUNT_LIMIT as bi,
3390
+ foldPlanState as bj,
3391
+ PLAN_MODE_ON_NOTE as bk,
3392
+ PLAN_MODE_OFF_NOTE as bl,
3393
+ planFeedbackText as bm,
3394
+ planKickoffText as bn,
3395
+ activePlanNote as bo,
3396
+ PLAN_TITLE_MAX as bp,
3397
+ PLAN_TEXT_MAX as bq,
3398
+ planPhase as br,
3399
+ parsePlanEntry as bs,
3400
+ parseAgentControlToolRequest as bt,
3401
+ nativeSearchKindFor as bu,
3402
+ isWorkflowPresetId as bv,
3403
+ PLUGIN_EVENTS as bw,
3404
+ isInterceptEvent as bx,
3405
+ APPEND_ONLY_INTERCEPT_EVENTS as by,
3406
+ isProbability as c,
3407
+ CONTEXT_PART_ITEMS as d,
3408
+ parseProviderHeaders as e,
3409
+ escapePiConfigValue as f,
3410
+ MODEL_REASONING_OVERRIDES as g,
3411
+ MODEL_THINKING_LEVEL_OVERRIDES as h,
3028
3412
  isApprovalReviewReason as i,
3029
- CONTEXT_USAGE_BUCKETS as j,
3030
- MaskReportBuilder as k,
3031
- PRODUCT_SURFACE_INVENTORY as l,
3032
- DEFAULT_AUTO_RETRY_LIMIT as m,
3033
- isSameChildSessionIdentity as n,
3034
- DEFAULT_SSH_TIMEOUT_SECONDS as o,
3035
- parseApprovalAllowThreshold as p,
3036
- PLAN_ENTRY_TYPE as q,
3037
- resolveCompactStrategy as r,
3038
- autoRetryOverrides as s,
3039
- parseAgentSessionCustomEntry as t,
3040
- splitPlanPrefix as u,
3041
- parsePlanMessage as v,
3413
+ isCodexAccountKey as j,
3414
+ classifyCodexPoolFailure as k,
3415
+ isUuid as l,
3416
+ isChildInterceptEvent as m,
3417
+ CONTEXT_USAGE_BUCKETS as n,
3418
+ BEFORE_AGENT_START_APPEND_MAX as o,
3419
+ parseChildSessionIdentity as p,
3420
+ MaskReportBuilder as q,
3421
+ resolvePiProviderBaseUrl as r,
3422
+ PRODUCT_SURFACE_INVENTORY as s,
3423
+ DEFAULT_AUTO_RETRY_LIMIT as t,
3424
+ isSameChildSessionIdentity as u,
3425
+ resolveCompactStrategy as v,
3042
3426
  workspaceBranchChangedNote as w,
3043
- withPlanNote as x,
3044
- isOauthAccountPool as y,
3045
- resolveEditMode as z
3427
+ DEFAULT_SSH_TIMEOUT_SECONDS as x,
3428
+ PLAN_ENTRY_TYPE as y,
3429
+ autoRetryOverrides as z
3046
3430
  };
3047
- //# sourceMappingURL=agent-D37_gFfr.js.map
3431
+ //# sourceMappingURL=agent--Q7N17bY.js.map