@ensocode/server 0.3.3 → 0.3.5

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-CLgfII9z.js → abnfDiagram-VCTEODGH-k76opPl1.js} +1 -1
  191. package/out/phone/assets/architecture-7GRP2DOG-DFA8x3QF.js +1 -0
  192. package/out/phone/assets/{architectureDiagram-5GKGNRK7-I2RDn32D.js → architectureDiagram-5GKGNRK7-yxQH9IuZ.js} +1 -1
  193. package/out/phone/assets/{blockDiagram-I7D4REHJ-D5xNQZkS.js → blockDiagram-I7D4REHJ-DoHteZpO.js} +1 -1
  194. package/out/phone/assets/{c4Diagram-7LVT6UL2-CRKpzdlA.js → c4Diagram-7LVT6UL2-DQVO6L4q.js} +1 -1
  195. package/out/phone/assets/channel-BBjWfdZr.js +1 -0
  196. package/out/phone/assets/{chunk-4HAMMTFA-CcezrqKz.js → chunk-4HAMMTFA-N9Rw4SGW.js} +1 -1
  197. package/out/phone/assets/{chunk-75Z2AOVW-DDCXp4y1.js → chunk-75Z2AOVW-DKJ8pOxp.js} +1 -1
  198. package/out/phone/assets/{chunk-DU6HZSFF-CjWveEkB.js → chunk-DU6HZSFF-BqGW8Nbd.js} +1 -1
  199. package/out/phone/assets/{chunk-F27PBJKO-Bgl_xI02.js → chunk-F27PBJKO-PkFmkghF.js} +1 -1
  200. package/out/phone/assets/{chunk-GMAD6QVW-EmL8nOme.js → chunk-GMAD6QVW-C9VeD3Jk.js} +1 -1
  201. package/out/phone/assets/{chunk-GVQU2GXP-Dox_nphF.js → chunk-GVQU2GXP-COhntOeE.js} +1 -1
  202. package/out/phone/assets/{chunk-IMKFNOWR-BapGpI4S.js → chunk-IMKFNOWR-B87ghLVD.js} +1 -1
  203. package/out/phone/assets/{chunk-L3NEJ4N5-Cq_UZI8A.js → chunk-L3NEJ4N5-C3N2izjg.js} +1 -1
  204. package/out/phone/assets/{chunk-OSK3NFVY-2VVlErAd.js → chunk-OSK3NFVY-DaAlvVhz.js} +1 -1
  205. package/out/phone/assets/{chunk-P2QGCYS3-Cci-G-p1.js → chunk-P2QGCYS3-BQpKr8IZ.js} +1 -1
  206. package/out/phone/assets/{chunk-POPQ4Y6H-CJ47EOfE.js → chunk-POPQ4Y6H-B2TZMY6U.js} +1 -1
  207. package/out/phone/assets/{chunk-PWAF6VOD-D9dLdFqC.js → chunk-PWAF6VOD-CgRhpUJy.js} +1 -1
  208. package/out/phone/assets/{chunk-SHT3W25Y-BlGSiWZn.js → chunk-SHT3W25Y-BySMFA99.js} +1 -1
  209. package/out/phone/assets/{chunk-SVP7TREG-C0zdsa_A.js → chunk-SVP7TREG-EDGanDUX.js} +1 -1
  210. package/out/phone/assets/{chunk-TICWLB2K-DAQW8nQU.js → chunk-TICWLB2K-BtCZ8R2k.js} +1 -1
  211. package/out/phone/assets/classDiagram-ZZMXUADV-CXXjdIIU.js +1 -0
  212. package/out/phone/assets/classDiagram-v2-VYDZK3BY-CXXjdIIU.js +1 -0
  213. package/out/phone/assets/{cynefin-OW5HDTMX-_zsx5mdV.js → cynefin-OW5HDTMX-CdZmp44V.js} +1 -1
  214. package/out/phone/assets/{cynefinDiagram-5FMLGOSQ-Cww-w0ex.js → cynefinDiagram-5FMLGOSQ-BCz9KwUb.js} +1 -1
  215. package/out/phone/assets/{dagre-GXQ25YYZ-C0i7DPqX.js → dagre-GXQ25YYZ-CgFeNgh6.js} +1 -1
  216. package/out/phone/assets/desk-C_b7mE6l.js +2 -0
  217. package/out/phone/assets/{diagram-S7CK7UJ4-Bx-G5hYz.js → diagram-S7CK7UJ4-CwvaZIBf.js} +1 -1
  218. package/out/phone/assets/{diagram-UQ7AKVKN-DaTblkjV.js → diagram-UQ7AKVKN-DqnD4XoZ.js} +1 -1
  219. package/out/phone/assets/{diagram-VSXAHHWV-gmN2e1b4.js → diagram-VSXAHHWV-Kqc9GudQ.js} +1 -1
  220. package/out/phone/assets/{diagram-VX7I27RA-WYtRtOo8.js → diagram-VX7I27RA-B_0DLDQ0.js} +1 -1
  221. package/out/phone/assets/{diagram-Z3DM3KII-Cr6uUB5B.js → diagram-Z3DM3KII-CppKBEPW.js} +1 -1
  222. package/out/phone/assets/{ebnfDiagram-PWID7BFC-BCicfvpA.js → ebnfDiagram-PWID7BFC-DeYPNCu9.js} +1 -1
  223. package/out/phone/assets/{erDiagram-RLTQ6QDP-B3QlJvfQ.js → erDiagram-RLTQ6QDP-MsfxDUmk.js} +1 -1
  224. package/out/phone/assets/eventmodeling-NTZA5JFV-D4a6gbOs.js +1 -0
  225. package/out/phone/assets/flowDiagram-HODETNUW-BBTtB5oX.js +1 -0
  226. package/out/phone/assets/{ganttDiagram-EL5Y4UJY-LYy2mfCh.js → ganttDiagram-EL5Y4UJY-DaScS1os.js} +1 -1
  227. package/out/phone/assets/{gitGraph-4MIJSDKK-dT22Z2jG.js → gitGraph-4MIJSDKK-C-FzqpZm.js} +1 -1
  228. package/out/phone/assets/{gitGraphDiagram-WWUBYQGX-DHNdY57l.js → gitGraphDiagram-WWUBYQGX-4Yv-hAwf.js} +1 -1
  229. package/out/phone/assets/{info-A6RAGUB7-nIu8NSOs.js → info-A6RAGUB7-CGLEP4t7.js} +1 -1
  230. package/out/phone/assets/{infoDiagram-27XIBGKW-DGkWZIMT.js → infoDiagram-27XIBGKW-DapEgYQa.js} +1 -1
  231. package/out/phone/assets/{ishikawaDiagram-5VMMS53U-C8EPXru-.js → ishikawaDiagram-5VMMS53U-D1B2lZSG.js} +1 -1
  232. package/out/phone/assets/{journeyDiagram-3NMN7TZE-Dyd9L3l3.js → journeyDiagram-3NMN7TZE-BSAtMVJw.js} +1 -1
  233. package/out/phone/assets/{kanban-definition-UXKFOSKX-DehTYcsL.js → kanban-definition-UXKFOSKX-CfZ4oI7A.js} +1 -1
  234. package/out/phone/assets/{line-Db4SulF4.js → line-DAXmUM4p.js} +1 -1
  235. package/out/phone/assets/main-B0yD1pMI.js +1643 -0
  236. package/out/phone/assets/main-DNRbLxEx.css +1 -0
  237. package/out/phone/assets/{mermaid-parser.core-D7h_8WV8.js → mermaid-parser.core-IObm7oM0.js} +3 -3
  238. package/out/phone/assets/{mermaid.core-Dw_E5kj4.js → mermaid.core-C1wA-mhD.js} +4 -4
  239. package/out/phone/assets/{mindmap-definition-YA3MSWOX-_5Mxqxsy.js → mindmap-definition-YA3MSWOX-3ph0EaB9.js} +1 -1
  240. package/out/phone/assets/{packet-AYTQ26CC-_cgeMDdN.js → packet-AYTQ26CC-BbDAe9Au.js} +1 -1
  241. package/out/phone/assets/{pegDiagram-XKGWAZYB-BhBwaNEr.js → pegDiagram-XKGWAZYB-EsuDcX_3.js} +1 -1
  242. package/out/phone/assets/{pie-WAS4IAKB-BepY80_0.js → pie-WAS4IAKB-BQfIj1fu.js} +1 -1
  243. package/out/phone/assets/{pieDiagram-E7YTZNPT-CQQgqmI8.js → pieDiagram-E7YTZNPT-Cw19z5Ip.js} +1 -1
  244. package/out/phone/assets/{quadrantDiagram-AXDQQJYC-DEEatC1J.js → quadrantDiagram-AXDQQJYC-Bqwz_sa8.js} +1 -1
  245. package/out/phone/assets/{radar-RG4KPBEZ-BqsiI_qQ.js → radar-RG4KPBEZ-Dmp-89iD.js} +1 -1
  246. package/out/phone/assets/{railroad-74A4TZTK-C_2pEUjD.js → railroad-74A4TZTK-dq2H8w8Y.js} +1 -1
  247. package/out/phone/assets/railroad-abnf-HS5TGJTU-DddVaVQM.js +1 -0
  248. package/out/phone/assets/railroad-ebnf-LZEXJU2U-BjvyqMjh.js +1 -0
  249. package/out/phone/assets/railroad-peg-WCYAUIDC-lBl4CV1_.js +1 -0
  250. package/out/phone/assets/{railroadDiagram-O6MQD6OU-B7786u7W.js → railroadDiagram-O6MQD6OU-D2Sbc7Wn.js} +1 -1
  251. package/out/phone/assets/{requirementDiagram-BXWQKSXE-Ci3b5uwm.js → requirementDiagram-BXWQKSXE-CLNUqxbl.js} +1 -1
  252. package/out/phone/assets/{sankeyDiagram-P5KCCOFB-PwT2gJjH.js → sankeyDiagram-P5KCCOFB-Dme5iwcw.js} +1 -1
  253. package/out/phone/assets/{sequenceDiagram-WJ2MYXX4-H6sgB5RI.js → sequenceDiagram-WJ2MYXX4-C5dYSwPE.js} +1 -1
  254. package/out/phone/assets/{stateDiagram-D77RDMKH-BxyRe7OB.js → stateDiagram-D77RDMKH-BuxkPvJ6.js} +1 -1
  255. package/out/phone/assets/stateDiagram-v2-MP3YSRHH-Exd8xDBD.js +1 -0
  256. package/out/phone/assets/storage-p-WxHA1h.js +1 -0
  257. package/out/phone/assets/{swimlanes-42K2YHIH-DWT3f1Hk.js → swimlanes-42K2YHIH-DHyXnytv.js} +1 -1
  258. package/out/phone/assets/swimlanesDiagram-VR7AAH4N-B62_42fO.js +8 -0
  259. package/out/phone/assets/{timeline-definition-24CTP7MA-D67esSVY.js → timeline-definition-24CTP7MA-Bm8Z0u2Z.js} +1 -1
  260. package/out/phone/assets/{treeView-Q6P3EWNA-BTIfu3Qr.js → treeView-Q6P3EWNA-DFUxvDDO.js} +1 -1
  261. package/out/phone/assets/{treemap-WGGIJYW6-DkPf6LQc.js → treemap-WGGIJYW6-CMC-hwzt.js} +1 -1
  262. package/out/phone/assets/{vennDiagram-4TSXK5OY-DRMRxJ4f.js → vennDiagram-4TSXK5OY-CNL4gZsd.js} +1 -1
  263. package/out/phone/assets/{wardley-WFR3VGLG-hOvC_8-W.js → wardley-WFR3VGLG-CHQoq9KJ.js} +1 -1
  264. package/out/phone/assets/{wardleyDiagram-VM6X3IG4-a5aYRgrw.js → wardleyDiagram-VM6X3IG4-DAuBfK1O.js} +1 -1
  265. package/out/phone/assets/{xychartDiagram-S5SC5T6Z-DXjoRFDL.js → xychartDiagram-S5SC5T6Z-B2T9ECKd.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-DhskujJf.js → abnfDiagram-VCTEODGH-gdhrQbX6.js} +1 -1
  269. package/out/renderer/assets/{arc-BcW67t47.js → arc-D6-Q4l2d.js} +1 -1
  270. package/out/renderer/assets/{architectureDiagram-5GKGNRK7-D-x057Ia.js → architectureDiagram-5GKGNRK7-C4y0SbLT.js} +1 -1
  271. package/out/renderer/assets/{blockDiagram-I7D4REHJ-DR3sZkhW.js → blockDiagram-I7D4REHJ-DrsoSFRK.js} +1 -1
  272. package/out/renderer/assets/{c4Diagram-7LVT6UL2-CQ4lScWs.js → c4Diagram-7LVT6UL2-1DD8BlM8.js} +1 -1
  273. package/out/renderer/assets/channel-Sck-tAAK.js +1 -0
  274. package/out/renderer/assets/{chunk-2Q5K7J3B-CtT0yqF3.js → chunk-2Q5K7J3B-DRyc0B7g.js} +1 -1
  275. package/out/renderer/assets/{chunk-5VM5RSS4-DlCfddrY.js → chunk-5VM5RSS4-BJe8SghE.js} +1 -1
  276. package/out/renderer/assets/{chunk-F27PBJKO-BAJ5dGzo.js → chunk-F27PBJKO-BIipq4SK.js} +1 -1
  277. package/out/renderer/assets/{chunk-IMKFNOWR-Dlah_YbP.js → chunk-IMKFNOWR-D5Ak3Xd9.js} +1 -1
  278. package/out/renderer/assets/{chunk-JWPE2WC7-BiXd3nUZ.js → chunk-JWPE2WC7-BcaWCpW-.js} +1 -1
  279. package/out/renderer/assets/{chunk-POPQ4Y6H-Ch86i4EJ.js → chunk-POPQ4Y6H-C1TwLrrN.js} +1 -1
  280. package/out/renderer/assets/{chunk-SVP7TREG-z3inDV-H.js → chunk-SVP7TREG-DDOXG_t3.js} +1 -1
  281. package/out/renderer/assets/{chunk-TICWLB2K-B34A2AKD.js → chunk-TICWLB2K-BqT15hZi.js} +1 -1
  282. package/out/renderer/assets/{chunk-XXDRQBXY-Do_L0wRR.js → chunk-XXDRQBXY-D01ts6SC.js} +1 -1
  283. package/out/renderer/assets/classDiagram-ZZMXUADV-DnB4QNNe.js +1 -0
  284. package/out/renderer/assets/classDiagram-v2-VYDZK3BY-DnB4QNNe.js +1 -0
  285. package/out/renderer/assets/{cose-bilkent-JH36ORCC-BQraKmgl.js → cose-bilkent-JH36ORCC-C7NVrT2_.js} +1 -1
  286. package/out/renderer/assets/{cynefin-OW5HDTMX-BwixoR4r.js → cynefin-OW5HDTMX-2LxdFmSk.js} +1 -1
  287. package/out/renderer/assets/{cynefinDiagram-5FMLGOSQ-BLTBma3J.js → cynefinDiagram-5FMLGOSQ-_AN_Mulc.js} +1 -1
  288. package/out/renderer/assets/{cytoscape-fcose-BRpJ5tyq.js → cytoscape-fcose-COZkZZmX.js} +1 -1
  289. package/out/renderer/assets/{dagre-GXQ25YYZ-aWsjA_wn.js → dagre-GXQ25YYZ-BUTwlM6j.js} +1 -1
  290. package/out/renderer/assets/{diagram-S7CK7UJ4-Cur2zK4q.js → diagram-S7CK7UJ4-CseZZ-y2.js} +1 -1
  291. package/out/renderer/assets/{diagram-UQ7AKVKN-DlrY8YcD.js → diagram-UQ7AKVKN-Cb7llS-8.js} +1 -1
  292. package/out/renderer/assets/{diagram-VSXAHHWV-BBdjreqR.js → diagram-VSXAHHWV-CtuGqQvp.js} +1 -1
  293. package/out/renderer/assets/{diagram-VX7I27RA-XiWMdc8S.js → diagram-VX7I27RA-BA8eov-1.js} +1 -1
  294. package/out/renderer/assets/{diagram-Z3DM3KII-CBB5leat.js → diagram-Z3DM3KII-VZOjj6Hg.js} +1 -1
  295. package/out/renderer/assets/{ebnfDiagram-PWID7BFC-nl8RPo8j.js → ebnfDiagram-PWID7BFC-YBIrle6d.js} +1 -1
  296. package/out/renderer/assets/{erDiagram-RLTQ6QDP-C_oaG80x.js → erDiagram-RLTQ6QDP-BiKyPEqW.js} +1 -1
  297. package/out/renderer/assets/{flowDiagram-HODETNUW-nDoVZFS7.js → flowDiagram-HODETNUW-7wmZyLHw.js} +1 -1
  298. package/out/renderer/assets/{ganttDiagram-EL5Y4UJY-DOrcuM3Q.js → ganttDiagram-EL5Y4UJY-D4j4GJaT.js} +1 -1
  299. package/out/renderer/assets/{gitGraphDiagram-WWUBYQGX-D_DB3jro.js → gitGraphDiagram-WWUBYQGX-BqveM1NI.js} +1 -1
  300. package/out/renderer/assets/globals-C9M_MZZV.js +2539 -0
  301. package/out/renderer/assets/globals-l3kDGoYH.css +1 -0
  302. package/out/renderer/assets/index-BzSTiwH2.js +117 -0
  303. package/out/renderer/assets/{infoDiagram-27XIBGKW-BbBrANxo.js → infoDiagram-27XIBGKW-DLPLnIFP.js} +1 -1
  304. package/out/renderer/assets/{ishikawaDiagram-5VMMS53U-7UlfWlWV.js → ishikawaDiagram-5VMMS53U-48drIAMR.js} +1 -1
  305. package/out/renderer/assets/{journeyDiagram-3NMN7TZE-CJP9bosH.js → journeyDiagram-3NMN7TZE-vjigqUq_.js} +1 -1
  306. package/out/renderer/assets/{kanban-definition-UXKFOSKX-D772kW7T.js → kanban-definition-UXKFOSKX-CpsYVONZ.js} +1 -1
  307. package/out/renderer/assets/{layout-BzVfJEvx.js → layout-DqfoORoO.js} +1 -1
  308. package/out/renderer/assets/{linear-DBjhr05m.js → linear-CJzBBHcp.js} +1 -1
  309. package/out/renderer/assets/{mermaid.core-CJpNSowm.js → mermaid.core-DdrGP-Hn.js} +5 -5
  310. package/out/renderer/assets/{mindmap-definition-YA3MSWOX-C2oqlH5E.js → mindmap-definition-YA3MSWOX-D68tLNxp.js} +1 -1
  311. package/out/renderer/assets/{pegDiagram-XKGWAZYB-CcZ8Hae-.js → pegDiagram-XKGWAZYB-DkgLTcrv.js} +1 -1
  312. package/out/renderer/assets/{pieDiagram-E7YTZNPT-DTw-_k2D.js → pieDiagram-E7YTZNPT-bz5NuX1w.js} +1 -1
  313. package/out/renderer/assets/{quadrantDiagram-AXDQQJYC-D5eX0DO7.js → quadrantDiagram-AXDQQJYC-o_VKLyJA.js} +1 -1
  314. package/out/renderer/assets/{railroadDiagram-O6MQD6OU-DzpBB_Re.js → railroadDiagram-O6MQD6OU-Dkf03e07.js} +1 -1
  315. package/out/renderer/assets/{requirementDiagram-BXWQKSXE-UbOUXLgl.js → requirementDiagram-BXWQKSXE-CBUz_3YU.js} +1 -1
  316. package/out/renderer/assets/{sankeyDiagram-P5KCCOFB-jRbXLLsa.js → sankeyDiagram-P5KCCOFB-B0pjUr9g.js} +1 -1
  317. package/out/renderer/assets/{sequenceDiagram-WJ2MYXX4-s0WBQQPf.js → sequenceDiagram-WJ2MYXX4-ClugIL0e.js} +1 -1
  318. package/out/renderer/assets/settings-DvhrDn2q.js +34 -0
  319. package/out/renderer/assets/{sizeCapture-INFHLROL-DvUs5rDx.js → sizeCapture-INFHLROL-D6y0rctc.js} +1 -1
  320. package/out/renderer/assets/{stateDiagram-D77RDMKH-C1_V497y.js → stateDiagram-D77RDMKH-DiftQepS.js} +1 -1
  321. package/out/renderer/assets/stateDiagram-v2-MP3YSRHH-DxB2-9tl.js +1 -0
  322. package/out/renderer/assets/{swimlanes-42K2YHIH-BulPeZ6y.js → swimlanes-42K2YHIH-DhuTjCNj.js} +1 -1
  323. package/out/renderer/assets/swimlanesDiagram-VR7AAH4N-CYDUqExO.js +8 -0
  324. package/out/renderer/assets/{timeline-definition-24CTP7MA-gQ5OygZn.js → timeline-definition-24CTP7MA-CrXqgptd.js} +1 -1
  325. package/out/renderer/assets/{vennDiagram-4TSXK5OY-A8QyA5Ix.js → vennDiagram-4TSXK5OY-CDm8SO8U.js} +1 -1
  326. package/out/renderer/assets/{wardleyDiagram-VM6X3IG4-CfP6E41T.js → wardleyDiagram-VM6X3IG4-CxyunHwQ.js} +1 -1
  327. package/out/renderer/assets/{xychartDiagram-S5SC5T6Z-DTG5UHh7.js → xychartDiagram-S5SC5T6Z-CvC5YMSy.js} +1 -1
  328. package/out/renderer/index.html +3 -3
  329. package/out/renderer/plugin-view.html +39 -0
  330. package/out/renderer/settings.html +4 -4
  331. package/out/renderer/web-preload.js +1 -1
  332. package/out/server/agent.js +2022 -860
  333. package/out/server/chunks/{agent-BhQn6jGA.js → agent-_G_O-Cpa.js} +359 -227
  334. package/out/server/chunks/{gpuBackendInstall-CdExgjGi.js → gpuBackendInstall-Cb6TFh_8.js} +11 -9
  335. package/out/server/chunks/{loadProvider-BnkyjMSW.js → loadProvider-Be9Lu1Oi.js} +7 -20
  336. package/out/server/chunks/{manifest-2odvnxjZ.js → manifest-CB63GQ-i.js} +129 -6
  337. package/out/server/chunks/{workflowPresets-DqSsjOj6.js → workflowPresets-Djlp5LPV.js} +4004 -2054
  338. package/out/server/index.js +8251 -6660
  339. package/out/server/plugin-host.js +36 -26
  340. package/package.json +10 -10
  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-CQOPTv6S.js +0 -1
  356. package/out/phone/assets/channel-DdXebl9x.js +0 -1
  357. package/out/phone/assets/classDiagram-ZZMXUADV-BCctWEp1.js +0 -1
  358. package/out/phone/assets/classDiagram-v2-VYDZK3BY-BCctWEp1.js +0 -1
  359. package/out/phone/assets/desk-mfuEW2n4.js +0 -2
  360. package/out/phone/assets/eventmodeling-NTZA5JFV-BtfapP6M.js +0 -1
  361. package/out/phone/assets/flowDiagram-HODETNUW-BsyiyBtD.js +0 -1
  362. package/out/phone/assets/main-Dv9ve8mT.css +0 -1
  363. package/out/phone/assets/main-uMMbioCA.js +0 -1638
  364. package/out/phone/assets/railroad-abnf-HS5TGJTU-TmODpceI.js +0 -1
  365. package/out/phone/assets/railroad-ebnf-LZEXJU2U-BTCjNR9u.js +0 -1
  366. package/out/phone/assets/railroad-peg-WCYAUIDC-DjhKNo8j.js +0 -1
  367. package/out/phone/assets/stateDiagram-v2-MP3YSRHH-Cncmf_cL.js +0 -1
  368. package/out/phone/assets/storage-D9RW_4__.js +0 -1
  369. package/out/phone/assets/swimlanesDiagram-VR7AAH4N-DAahG4fH.js +0 -8
  370. package/out/renderer/assets/channel-CudRig7z.js +0 -1
  371. package/out/renderer/assets/classDiagram-ZZMXUADV-DL20WkD0.js +0 -1
  372. package/out/renderer/assets/classDiagram-v2-VYDZK3BY-DL20WkD0.js +0 -1
  373. package/out/renderer/assets/globals-Bkw7iiQG.css +0 -1
  374. package/out/renderer/assets/globals-D1ocHHQV.js +0 -2533
  375. package/out/renderer/assets/index-Cm5iq85v.js +0 -117
  376. package/out/renderer/assets/settings-DxYo7s4h.js +0 -34
  377. package/out/renderer/assets/stateDiagram-v2-MP3YSRHH-C9dfLXR8.js +0 -1
  378. package/out/renderer/assets/swimlanesDiagram-VR7AAH4N-LXwy6qGO.js +0 -8
@@ -25,7 +25,10 @@ import { createCompactionSummaryMessage, createCustomMessage } from "../../core/
25
25
  import { defaultModelPerProvider, findExactModelReferenceMatch, resolveModelScopeFromModels, } from "../../core/model-resolver.js";
26
26
  import { CredentialSynchronizationError } from "../../core/model-runtime.js";
27
27
  import { DefaultPackageManager } from "../../core/package-manager.js";
28
- import { RADIUS_MCP_URL, RADIUS_PROVIDER_ID } from "../../core/radius.js";
28
+ import { compareProviders } from "../../core/preferred-providers.js";
29
+ import { findMatchingProviders } from "../../core/provider-matching.js";
30
+ import { RADIUS_PROVIDER_ID } from "../../core/radius.js";
31
+ import { planRadiusMcpServer } from "../../core/radius-mcp.js";
29
32
  import { formatMissingSessionCwdPrompt, MissingSessionCwdError } from "../../core/session-cwd.js";
30
33
  import { SessionManager, sessionEntryToContextMessages, } from "../../core/session-manager.js";
31
34
  import { BUILTIN_SLASH_COMMANDS } from "../../core/slash-commands.js";
@@ -34,7 +37,7 @@ import { isInstallTelemetryEnabled } from "../../core/telemetry.js";
34
37
  import { withBuiltInRenderers } from "../../core/tools/renderers/index.js";
35
38
  import { hasTrustRequiringProjectResources, ProjectTrustStore } from "../../core/trust-manager.js";
36
39
  import { getUsageCostBreakdown } from "../../core/usage-totals.js";
37
- import { addMcpServerConfig, loadMcpConfig } from "../../extensions/mcp/config.js";
40
+ import { addMcpServerConfig } from "../../extensions/mcp/config.js";
38
41
  import { getChangelogPath, getNewEntries, normalizeChangelogLinks, parseChangelog } from "../../utils/changelog.js";
39
42
  import { copyToClipboard, readClipboardFilePaths, readClipboardText } from "../../utils/clipboard.js";
40
43
  import { extensionForImageMimeType, readClipboardImage } from "../../utils/clipboard-image.js";
@@ -66,6 +69,7 @@ import { ExtensionSelectorComponent } from "./components/extension-selector.js";
66
69
  import { FooterComponent, formatTokens } from "./components/footer.js";
67
70
  import { formatKeyText, keyDisplayText, keyHint, keyText, rawKeyHint } from "./components/keybinding-hints.js";
68
71
  import { LoginDialogComponent } from "./components/login-dialog.js";
72
+ import { createMarkdownTransform } from "./components/markdown-transform.js";
69
73
  import { createMermaidMarkdownTransformer } from "./components/mermaid.js";
70
74
  import { ModelSelectorComponent } from "./components/model-selector.js";
71
75
  import { formatAuthSelectorProviderStatus, formatAuthSelectorProviderType, OAuthSelectorComponent, } from "./components/oauth-selector.js";
@@ -220,7 +224,7 @@ function getLoginProviderCompletionOptions(providerOptions) {
220
224
  subscription: provider.subscription,
221
225
  });
222
226
  }
223
- return Array.from(byId.values()).sort((a, b) => a.name.localeCompare(b.name));
227
+ return Array.from(byId.values()).sort(compareProviders);
224
228
  }
225
229
  function getLoginProviderSearchText(provider) {
226
230
  const authTypes = provider.authTypes
@@ -278,6 +282,8 @@ export class InteractiveMode {
278
282
  changelogMarkdown = undefined;
279
283
  extensionChangelogUpdates = [];
280
284
  startupNoticesShown = false;
285
+ /** Last cache-warming notice, extended in place while it is the last chat line. */
286
+ cacheWarmingNotice;
281
287
  anthropicSubscriptionWarningShown = false;
282
288
  // Status line tracking (for mutating immediately-sequential status updates)
283
289
  lastStatusSpacer = undefined;
@@ -327,6 +333,13 @@ export class InteractiveMode {
327
333
  // Extension dialogs shown in the editor slot (select, confirm, input, editor, inline custom).
328
334
  // The last entry is visible; see pushExtensionDialog().
329
335
  extensionDialogs = [];
336
+ /** Numbers the program status sources of blocking overlays, so closing one keeps the others. */
337
+ nextBlockingOverlayId = 0;
338
+ /**
339
+ * Open extension overlays (custom with overlay: true) and the function that removes each, in opening
340
+ * order. Reset removes only these, not pi's own overlays.
341
+ */
342
+ extensionOverlays = new Map();
330
343
  extensionTerminalInputSubscriptions = new Set();
331
344
  // Extension widgets (components rendered above/below the editor)
332
345
  extensionWidgetsAbove = new Map();
@@ -583,7 +596,7 @@ export class InteractiveMode {
583
596
  else {
584
597
  this.chatContainer.addChild(new ThemedText(() => theme.bold(theme.fg("accent", "What's New")), 1, 0));
585
598
  this.chatContainer.addChild(new Spacer(1));
586
- this.chatContainer.addChild(new Markdown(this.changelogMarkdown.trim(), 1, 0, this.getMarkdownThemeWithSettings()));
599
+ this.chatContainer.addChild(this.createChangelogMarkdown(this.changelogMarkdown.trim(), 1, 0));
587
600
  this.chatContainer.addChild(new Spacer(1));
588
601
  }
589
602
  }
@@ -601,7 +614,7 @@ export class InteractiveMode {
601
614
  this.chatContainer.addChild(new ThemedText(() => theme.bold(theme.fg("accent", "Extension Updates")), 1, 0));
602
615
  this.chatContainer.addChild(new Spacer(1));
603
616
  const markdown = this.extensionChangelogUpdates.map((update) => update.markdown).join("\n\n");
604
- this.chatContainer.addChild(new Markdown(markdown, 1, 0, this.getMarkdownThemeWithSettings()));
617
+ this.chatContainer.addChild(this.createChangelogMarkdown(markdown, 1, 0));
605
618
  this.chatContainer.addChild(new Spacer(1));
606
619
  }
607
620
  }
@@ -1020,6 +1033,11 @@ export class InteractiveMode {
1020
1033
  return undefined;
1021
1034
  }
1022
1035
  const newEntries = getNewEntries(entries, lastVersion);
1036
+ if (!newEntries) {
1037
+ // Unreadable saved version: show nothing and record the current one so later updates compare again
1038
+ this.settingsManager.setLastChangelogVersion(VERSION);
1039
+ return undefined;
1040
+ }
1023
1041
  if (newEntries.length > 0) {
1024
1042
  this.settingsManager.setLastChangelogVersion(VERSION);
1025
1043
  this.reportInstallTelemetry(VERSION);
@@ -1054,6 +1072,11 @@ export class InteractiveMode {
1054
1072
  continue;
1055
1073
  }
1056
1074
  const newEntries = getNewEntries(parseChangelog(sourceInfo.changelogPath), lastVersion);
1075
+ if (!newEntries) {
1076
+ // Unreadable saved version: show nothing and record the current one so later updates compare again
1077
+ this.settingsManager.setExtensionChangelogVersion(key, pkg.version);
1078
+ continue;
1079
+ }
1057
1080
  if (newEntries.length > 0) {
1058
1081
  this.settingsManager.setExtensionChangelogVersion(key, pkg.version);
1059
1082
  const name = pkg.name || sourceInfo.source;
@@ -1776,6 +1799,7 @@ export class InteractiveMode {
1776
1799
  this.loadedResourcesContainer.clear();
1777
1800
  this.chatContainer.clear();
1778
1801
  this.pendingMessagesContainer.clear();
1802
+ this.pendingBashComponents = [];
1779
1803
  this.compactionQueuedMessages = [];
1780
1804
  this.streamingComponent = undefined;
1781
1805
  this.streamingMessage = undefined;
@@ -1795,6 +1819,12 @@ export class InteractiveMode {
1795
1819
  getMarkdownTransformers() {
1796
1820
  return [this.mermaidMarkdownTransformer, ...this.session.extensionRunner.getMarkdownTransformers()];
1797
1821
  }
1822
+ /** Markdown of a changelog or release note that runs the Markdown transformers of the `changelog` type. */
1823
+ createChangelogMarkdown(markdown, paddingX, paddingY, defaultTextStyle) {
1824
+ return new Markdown(markdown, paddingX, paddingY, this.getMarkdownThemeWithSettings(), defaultTextStyle, {
1825
+ transform: createMarkdownTransform("changelog", () => false, this.getMarkdownTransformers()),
1826
+ });
1827
+ }
1798
1828
  /**
1799
1829
  * Set up keyboard shortcuts registered by extensions.
1800
1830
  */
@@ -1990,7 +2020,10 @@ export class InteractiveMode {
1990
2020
  this.extensionDialogs = [];
1991
2021
  this.showTopExtensionDialog();
1992
2022
  }
1993
- this.ui.hideOverlay();
2023
+ // Reload and session switches replace every extension without calling done(): remove their overlays,
2024
+ // newest first, the same way done() does, but leave the promises pending as for inline dialogs.
2025
+ for (const removeOverlay of [...this.extensionOverlays.values()].reverse())
2026
+ removeOverlay();
1994
2027
  this.clearExtensionTerminalInputListeners();
1995
2028
  this.setExtensionFooter(undefined);
1996
2029
  this.setExtensionHeader(undefined);
@@ -2293,7 +2326,7 @@ export class InteractiveMode {
2293
2326
  setCustomEditorComponent(factory) {
2294
2327
  this.editorComponentFactory = factory;
2295
2328
  // Save text from current editor before switching
2296
- const currentText = this.editor.getText();
2329
+ const currentText = this.editor.getExpandedText?.() ?? this.editor.getText();
2297
2330
  // An open extension dialog keeps the editor slot; the new editor is shown when the last dialog closes.
2298
2331
  const dialogOpen = this.extensionDialogs.length > 0;
2299
2332
  if (!dialogOpen) {
@@ -2379,11 +2412,13 @@ export class InteractiveMode {
2379
2412
  }
2380
2413
  /** Show a custom component with keyboard focus. Overlay mode renders on top of existing content. */
2381
2414
  async showExtensionCustom(factory, options) {
2382
- const savedText = this.editor.getText();
2415
+ const savedText = this.editor.getExpandedText?.() ?? this.editor.getText();
2383
2416
  const isOverlay = options?.overlay ?? false;
2384
2417
  return new Promise((resolve, reject) => {
2385
2418
  let component;
2386
2419
  let overlayHandle;
2420
+ // An overlay stays blocked until its interaction ends, also while setHidden() hides it.
2421
+ const overlayStatusSource = isOverlay && options?.blocked ? `extension-overlay:${this.nextBlockingOverlayId++}` : undefined;
2387
2422
  let closed = false;
2388
2423
  const restoreEditor = () => {
2389
2424
  if (component)
@@ -2391,17 +2426,7 @@ export class InteractiveMode {
2391
2426
  this.editor.setText(savedText);
2392
2427
  this.ui.requestRender();
2393
2428
  };
2394
- const close = (result) => {
2395
- if (closed)
2396
- return;
2397
- closed = true;
2398
- // Remove this overlay, not the topmost one: another overlay may have opened above it.
2399
- if (isOverlay)
2400
- overlayHandle?.hide();
2401
- else
2402
- restoreEditor();
2403
- // Note: both branches above already call requestRender
2404
- resolve(result);
2429
+ const disposeComponent = () => {
2405
2430
  try {
2406
2431
  component?.dispose?.();
2407
2432
  }
@@ -2409,6 +2434,30 @@ export class InteractiveMode {
2409
2434
  /* ignore dispose errors */
2410
2435
  }
2411
2436
  };
2437
+ // Shared by done() and resetExtensionUI(). Removing the map entry first makes a second call a no-op.
2438
+ const removeOverlay = () => {
2439
+ if (!overlayHandle || !this.extensionOverlays.delete(overlayHandle))
2440
+ return;
2441
+ // Remove this overlay, not the topmost one: another overlay may have opened above it.
2442
+ overlayHandle.hide();
2443
+ if (overlayStatusSource)
2444
+ this.programStatus.setBlocked(overlayStatusSource, undefined);
2445
+ disposeComponent();
2446
+ };
2447
+ const close = (result) => {
2448
+ if (closed)
2449
+ return;
2450
+ closed = true;
2451
+ if (isOverlay) {
2452
+ removeOverlay();
2453
+ resolve(result);
2454
+ }
2455
+ else {
2456
+ restoreEditor();
2457
+ resolve(result);
2458
+ disposeComponent();
2459
+ }
2460
+ };
2412
2461
  Promise.resolve(factory(this.ui, theme, this.keybindings, close))
2413
2462
  .then((c) => {
2414
2463
  if (closed)
@@ -2428,6 +2477,9 @@ export class InteractiveMode {
2428
2477
  return w ? { width: w } : undefined;
2429
2478
  };
2430
2479
  overlayHandle = this.ui.showOverlay(c, resolveOptions());
2480
+ this.extensionOverlays.set(overlayHandle, removeOverlay);
2481
+ if (overlayStatusSource)
2482
+ this.programStatus.setBlocked(overlayStatusSource, options?.blocked);
2431
2483
  // Expose handle to caller for visibility control
2432
2484
  options?.onHandle?.(overlayHandle);
2433
2485
  }
@@ -3018,6 +3070,9 @@ export class InteractiveMode {
3018
3070
  this.ui.requestRender();
3019
3071
  break;
3020
3072
  case "agent_settled":
3073
+ // The session records deferred user bash results when the run settles; show them there too.
3074
+ this.flushPendingBashComponents();
3075
+ this.ui.requestRender();
3021
3076
  await this.checkShutdownRequested();
3022
3077
  break;
3023
3078
  case "compaction_start": {
@@ -3216,7 +3271,7 @@ export class InteractiveMode {
3216
3271
  case "custom": {
3217
3272
  if (message.display) {
3218
3273
  const renderer = this.session.extensionRunner.getMessageRenderer(message.customType);
3219
- const component = new CustomMessageComponent(message, renderer, this.getMarkdownThemeWithSettings(), this.outputPad);
3274
+ const component = new CustomMessageComponent(message, renderer, this.getMarkdownThemeWithSettings(), this.outputPad, this.getMarkdownTransformers(), options?.messageId, options?.timestamp);
3220
3275
  component.setExpanded(this.toolOutputExpanded);
3221
3276
  this.chatContainer.addChild(component);
3222
3277
  }
@@ -3224,14 +3279,14 @@ export class InteractiveMode {
3224
3279
  }
3225
3280
  case "compactionSummary": {
3226
3281
  this.chatContainer.addChild(new Spacer(1));
3227
- const component = new CompactionSummaryMessageComponent(message, this.getMarkdownThemeWithSettings(), this.outputPad);
3282
+ const component = new CompactionSummaryMessageComponent(message, this.getMarkdownThemeWithSettings(), this.outputPad, this.getMarkdownTransformers(), options?.messageId, options?.timestamp);
3228
3283
  component.setExpanded(this.toolOutputExpanded);
3229
3284
  this.chatContainer.addChild(component);
3230
3285
  break;
3231
3286
  }
3232
3287
  case "branchSummary": {
3233
3288
  this.chatContainer.addChild(new Spacer(1));
3234
- const component = new BranchSummaryMessageComponent(message, this.getMarkdownThemeWithSettings(), this.outputPad);
3289
+ const component = new BranchSummaryMessageComponent(message, this.getMarkdownThemeWithSettings(), this.outputPad, this.getMarkdownTransformers(), options?.messageId, options?.timestamp);
3235
3290
  component.setExpanded(this.toolOutputExpanded);
3236
3291
  this.chatContainer.addChild(component);
3237
3292
  break;
@@ -3247,7 +3302,7 @@ export class InteractiveMode {
3247
3302
  const skillBlock = parseSkillBlock(textContent);
3248
3303
  if (skillBlock) {
3249
3304
  // Render skill block (collapsible)
3250
- const component = new SkillInvocationMessageComponent(skillBlock, this.getMarkdownThemeWithSettings(), this.outputPad);
3305
+ const component = new SkillInvocationMessageComponent(skillBlock, this.getMarkdownThemeWithSettings(), this.outputPad, this.getMarkdownTransformers(), options?.messageId, options?.timestamp);
3251
3306
  component.setExpanded(this.toolOutputExpanded);
3252
3307
  this.chatContainer.addChild(component);
3253
3308
  // Render user message separately if present
@@ -3401,9 +3456,18 @@ export class InteractiveMode {
3401
3456
  addCacheWarmingUsage(entry) {
3402
3457
  if (!this.settingsManager.getShowCacheMissNotices())
3403
3458
  return;
3459
+ // Back-to-back warms collapse into one line with the cumulative cost.
3460
+ const previous = this.cacheWarmingNotice;
3461
+ if (previous && this.chatContainer.children.at(-1) === previous.component && previous.note === entry.note) {
3462
+ previous.total.cost += entry.usage.cost.total;
3463
+ previous.component.invalidate();
3464
+ return;
3465
+ }
3466
+ const total = { cost: entry.usage.cost.total };
3467
+ const component = new ThemedText(() => theme.fg("dim", formatCacheWarmingUsage(total.cost, entry.note)), 1, 0);
3468
+ this.cacheWarmingNotice = { component, total, note: entry.note };
3404
3469
  this.chatContainer.addChild(new Spacer(1));
3405
- const usage = formatCacheWarmingUsage(entry);
3406
- this.chatContainer.addChild(new ThemedText(() => theme.fg("dim", usage), 1, 0));
3470
+ this.chatContainer.addChild(component);
3407
3471
  }
3408
3472
  /**
3409
3473
  * Render billing usage for a compaction or branch summary. The notice is derived
@@ -3809,7 +3873,7 @@ export class InteractiveMode {
3809
3873
  if (isExpandable(activeHeader)) {
3810
3874
  activeHeader.setExpanded(expanded);
3811
3875
  }
3812
- for (const container of [this.loadedResourcesContainer, this.chatContainer]) {
3876
+ for (const container of [this.loadedResourcesContainer, this.chatContainer, this.pendingMessagesContainer]) {
3813
3877
  for (const child of container.children) {
3814
3878
  if (isExpandable(child)) {
3815
3879
  child.setExpanded(expanded);
@@ -3887,9 +3951,7 @@ export class InteractiveMode {
3887
3951
  this.chatContainer.addChild(new ThemedText(() => `${theme.bold(theme.fg("warning", "Update Available"))}\n${updateInstruction()}`, 1, 0));
3888
3952
  if (note) {
3889
3953
  this.chatContainer.addChild(new Spacer(1));
3890
- this.chatContainer.addChild(new Markdown(note, 1, 0, this.getMarkdownThemeWithSettings(), {
3891
- color: (text) => theme.fg("muted", text),
3892
- }));
3954
+ this.chatContainer.addChild(this.createChangelogMarkdown(note, 1, 0, { color: (text) => theme.fg("muted", text) }));
3893
3955
  this.chatContainer.addChild(new Spacer(1));
3894
3956
  }
3895
3957
  this.chatContainer.addChild(new ThemedText(changelogLine, 1, 0));
@@ -3942,6 +4004,10 @@ export class InteractiveMode {
3942
4004
  }
3943
4005
  updatePendingMessagesDisplay() {
3944
4006
  this.pendingMessagesContainer.clear();
4007
+ // User bash output shown while the agent works lives here until it moves to the chat.
4008
+ for (const component of this.pendingBashComponents) {
4009
+ this.pendingMessagesContainer.addChild(component);
4010
+ }
3945
4011
  const { steering: steeringMessages, followUp: followUpMessages } = this.getAllQueuedMessages();
3946
4012
  if (steeringMessages.length > 0 || followUpMessages.length > 0) {
3947
4013
  this.pendingMessagesContainer.addChild(new Spacer(1));
@@ -3969,7 +4035,7 @@ export class InteractiveMode {
3969
4035
  return 0;
3970
4036
  }
3971
4037
  const queuedText = allQueued.join("\n\n");
3972
- const currentText = options?.currentText ?? this.editor.getText();
4038
+ const currentText = options?.currentText ?? this.editor.getExpandedText?.() ?? this.editor.getText();
3973
4039
  const combinedText = [queuedText, currentText].filter((t) => t.trim()).join("\n\n");
3974
4040
  this.editor.setText(combinedText);
3975
4041
  this.updatePendingMessagesDisplay();
@@ -4922,7 +4988,8 @@ export class InteractiveMode {
4922
4988
  });
4923
4989
  }
4924
4990
  }
4925
- return options.sort((a, b) => a.name.localeCompare(b.name));
4991
+ // The sort is stable, so a provider's account option stays above its API key option.
4992
+ return options.sort(compareProviders);
4926
4993
  }
4927
4994
  async getLogoutProviderOptions() {
4928
4995
  return (await this.session.modelRuntime.listCredentials({ signal: AbortSignal.timeout(15_000) }))
@@ -4936,22 +5003,14 @@ export class InteractiveMode {
4936
5003
  subscription: provider?.auth.oauth?.isSubscription === true,
4937
5004
  };
4938
5005
  })
4939
- .sort((a, b) => a.name.localeCompare(b.name));
4940
- }
4941
- findLoginProviderOptions(providerRef) {
4942
- const normalizedProviderRef = providerRef.trim().toLowerCase();
4943
- if (!normalizedProviderRef) {
4944
- return [];
4945
- }
4946
- return this.getLoginProviderOptions().filter((provider) => provider.id.toLowerCase() === normalizedProviderRef ||
4947
- provider.name.toLowerCase() === normalizedProviderRef);
5006
+ .sort(compareProviders);
4948
5007
  }
4949
5008
  async handleLoginCommand(providerRef) {
4950
5009
  if (!providerRef) {
4951
5010
  this.showLoginAuthTypeSelector();
4952
5011
  return;
4953
5012
  }
4954
- const providerOptions = this.findLoginProviderOptions(providerRef);
5013
+ const providerOptions = findMatchingProviders(this.getLoginProviderOptions(), providerRef);
4955
5014
  if (providerOptions.length === 1) {
4956
5015
  await this.startProviderLogin(providerOptions[0]);
4957
5016
  return;
@@ -5068,8 +5127,8 @@ export class InteractiveMode {
5068
5127
  else {
5069
5128
  this.ui.requestRender();
5070
5129
  }
5071
- }, initialSearchInput);
5072
- return { component: selector, focus: selector };
5130
+ }, initialSearchInput, this.ui);
5131
+ return { component: selector, focus: selector, dispose: () => selector.dispose() };
5073
5132
  });
5074
5133
  }
5075
5134
  async showOAuthSelector(mode) {
@@ -5115,8 +5174,8 @@ export class InteractiveMode {
5115
5174
  }, () => {
5116
5175
  done();
5117
5176
  this.ui.requestRender();
5118
- });
5119
- return { component: selector, focus: selector };
5177
+ }, undefined, this.ui);
5178
+ return { component: selector, focus: selector, dispose: () => selector.dispose() };
5120
5179
  });
5121
5180
  }
5122
5181
  async completeProviderAuthentication(providerId, providerName, authType, previousModel) {
@@ -5392,24 +5451,10 @@ export class InteractiveMode {
5392
5451
  * when missing. Nothing is asked when a global server already uses this login.
5393
5452
  */
5394
5453
  offerRadiusMcpServer(providerId, providerName) {
5395
- const mcpPath = path.join(getAgentDir(), "mcp.json");
5396
- const normalizeUrl = (url) => url.replace(/\/+$/u, "");
5397
- const { servers } = loadMcpConfig({
5398
- agentDir: getAgentDir(),
5399
- cwd: this.sessionManager.getCwd(),
5400
- projectTrusted: false,
5401
- });
5402
- const existing = servers.find((server) => "url" in server.config && normalizeUrl(server.config.url) === normalizeUrl(RADIUS_MCP_URL));
5403
- if (existing && "url" in existing.config && existing.config.auth?.provider === providerId)
5454
+ const plan = planRadiusMcpServer(providerId, getAgentDir(), this.sessionManager.getCwd());
5455
+ if (!plan)
5404
5456
  return;
5405
- let name = existing?.name ?? "radius";
5406
- if (!existing && servers.some((server) => server.name === name))
5407
- name = "radius-mcp";
5408
- const config = existing && "url" in existing.config
5409
- ? { ...existing.config, auth: { provider: providerId } }
5410
- : { url: RADIUS_MCP_URL, auth: { provider: providerId } };
5411
- // `auth` replaces the MCP OAuth sign-in.
5412
- delete config.oauth;
5457
+ const { mcpPath, name, config } = plan;
5413
5458
  this.showSelector((done) => {
5414
5459
  const selector = new ExtensionSelectorComponent(`Configure ${providerName} MCP in ${mcpPath}?`, ["Yes", "No"], (option) => {
5415
5460
  done();
@@ -5753,7 +5798,7 @@ export class InteractiveMode {
5753
5798
  this.chatContainer.addChild(new DynamicBorder());
5754
5799
  this.chatContainer.addChild(new ThemedText(() => theme.bold(theme.fg("accent", "What's New")), 1, 0));
5755
5800
  this.chatContainer.addChild(new Spacer(1));
5756
- this.chatContainer.addChild(new Markdown(changelogMarkdown, 1, 1, this.getMarkdownThemeWithSettings()));
5801
+ this.chatContainer.addChild(this.createChangelogMarkdown(changelogMarkdown, 1, 1));
5757
5802
  this.chatContainer.addChild(new DynamicBorder());
5758
5803
  this.ui.requestRender();
5759
5804
  }
@@ -5955,6 +6000,7 @@ export class InteractiveMode {
5955
6000
  const result = eventResult.result;
5956
6001
  // Create UI component for display
5957
6002
  this.bashComponent = new BashExecutionComponent(command, this.ui, excludeFromContext, this.outputPad);
6003
+ this.bashComponent.setExpanded(this.toolOutputExpanded);
5958
6004
  if (this.session.isStreaming) {
5959
6005
  this.pendingMessagesContainer.addChild(this.bashComponent);
5960
6006
  this.pendingBashComponents.push(this.bashComponent);
@@ -5976,6 +6022,7 @@ export class InteractiveMode {
5976
6022
  // Normal execution path (possibly with custom operations)
5977
6023
  const isDeferred = this.session.isStreaming;
5978
6024
  this.bashComponent = new BashExecutionComponent(command, this.ui, excludeFromContext, this.outputPad);
6025
+ this.bashComponent.setExpanded(this.toolOutputExpanded);
5979
6026
  if (isDeferred) {
5980
6027
  // Show in pending area when agent is streaming
5981
6028
  this.pendingMessagesContainer.addChild(this.bashComponent);
@@ -819,6 +819,10 @@ export function getLanguageFromPath(filePath) {
819
819
  java: "java",
820
820
  kt: "kotlin",
821
821
  swift: "swift",
822
+ dart: "dart",
823
+ groovy: "groovy",
824
+ gradle: "groovy",
825
+ nix: "nix",
822
826
  c: "c",
823
827
  h: "c",
824
828
  cpp: "cpp",
@@ -18,15 +18,18 @@ export async function runPrintMode(runtimeHost, options) {
18
18
  let session = runtimeHost.session;
19
19
  let unsubscribe;
20
20
  let unsubscribeBackpressure;
21
- let disposed = false;
21
+ let disposing;
22
+ // SIGTERM/SIGHUP received so far. Only a repeated signal forces exit during disposal.
23
+ let signalCount = 0;
22
24
  const signalCleanupHandlers = [];
23
- const disposeRuntime = async () => {
24
- if (disposed)
25
- return;
26
- disposed = true;
27
- unsubscribe?.();
28
- unsubscribeBackpressure?.();
29
- await runtimeHost.dispose();
25
+ // Callers share one disposal, so a signal during the final disposal waits for it to finish.
26
+ const disposeRuntime = () => {
27
+ disposing ??= (async () => {
28
+ unsubscribe?.();
29
+ unsubscribeBackpressure?.();
30
+ await runtimeHost.dispose();
31
+ })();
32
+ return disposing;
30
33
  };
31
34
  const registerSignalHandlers = () => {
32
35
  const signals = ["SIGTERM"];
@@ -34,10 +37,14 @@ export async function runPrintMode(runtimeHost, options) {
34
37
  signals.push("SIGHUP");
35
38
  }
36
39
  for (const signal of signals) {
40
+ const exitCode = signal === "SIGHUP" ? 129 : 143;
37
41
  const handler = () => {
42
+ signalCount++;
38
43
  killTrackedDetachedChildren();
44
+ if (signalCount > 1)
45
+ process.exit(exitCode);
39
46
  void disposeRuntime().finally(() => {
40
- process.exit(signal === "SIGHUP" ? 129 : 143);
47
+ process.exit(exitCode);
41
48
  });
42
49
  };
43
50
  process.on(signal, handler);
@@ -136,10 +143,12 @@ export async function runPrintMode(runtimeHost, options) {
136
143
  return 1;
137
144
  }
138
145
  finally {
146
+ // Keep the signal handlers until disposal is done: without one, a signal would kill the
147
+ // process mid-dispose (for example during a pending MCP token refresh).
148
+ await disposeRuntime();
139
149
  for (const cleanup of signalCleanupHandlers) {
140
150
  cleanup();
141
151
  }
142
- await disposeRuntime();
143
152
  await flushRawStdout();
144
153
  }
145
154
  }
@@ -39,10 +39,14 @@ export async function runRpcMode(runtimeHost) {
39
39
  };
40
40
  // Pending extension UI requests waiting for response
41
41
  const pendingExtensionRequests = new Map();
42
- // Shutdown request flag
42
+ // Extension shutdown requests (ctx.shutdown()) wait until input is attached, no command is
43
+ // being handled, and the session is idle. See checkShutdownRequested().
43
44
  let shutdownRequested = false;
44
45
  let shuttingDown = false;
45
- const signalCleanupHandlers = [];
46
+ let inputReady = false;
47
+ let activeCommands = 0;
48
+ // SIGTERM/SIGHUP received so far. Only a repeated signal forces exit during shutdown.
49
+ let signalCount = 0;
46
50
  /** Helper for dialog methods with signal/timeout support */
47
51
  function createDialogPromise(opts, defaultValue, request, parseResponse) {
48
52
  if (opts?.signal?.aborted)
@@ -255,6 +259,9 @@ export async function runRpcMode(runtimeHost) {
255
259
  },
256
260
  shutdownHandler: () => {
257
261
  shutdownRequested = true;
262
+ // An idle session has no command response or agent_settled left to check the flag.
263
+ // Check on the next tick so the requesting handler finishes first.
264
+ setImmediate(checkShutdownRequested);
258
265
  },
259
266
  onError: (err) => {
260
267
  output({ type: "extension_error", extensionPath: err.extensionPath, event: err.event, error: err.error });
@@ -265,7 +272,7 @@ export async function runRpcMode(runtimeHost) {
265
272
  unsubscribe = session.subscribe((event) => {
266
273
  output(toJsonEvent(event));
267
274
  if (event.type === "agent_settled") {
268
- void checkShutdownRequested();
275
+ checkShutdownRequested();
269
276
  }
270
277
  });
271
278
  unsubscribeBackpressure = session.agent.subscribe(async () => {
@@ -278,12 +285,21 @@ export async function runRpcMode(runtimeHost) {
278
285
  signals.push("SIGHUP");
279
286
  }
280
287
  for (const signal of signals) {
281
- const handler = () => {
288
+ const exitCode = signal === "SIGHUP" ? 129 : 143;
289
+ // Handlers stay registered until exit: without one, a signal during shutdown would kill
290
+ // the process before dispose() finishes (for example a pending MCP token refresh).
291
+ process.on(signal, () => {
292
+ signalCount++;
282
293
  killTrackedDetachedChildren();
283
- void shutdown(signal === "SIGHUP" ? 129 : 143, signal);
284
- };
285
- process.on(signal, handler);
286
- signalCleanupHandlers.push(() => process.off(signal, handler));
294
+ if (!shuttingDown) {
295
+ void shutdown(exitCode, signal);
296
+ }
297
+ else if (signalCount > 1) {
298
+ // Process managers often close stdin and send SIGTERM together, so one signal
299
+ // during shutdown is not a request to skip cleanup; a repeated one is.
300
+ process.exit(exitCode);
301
+ }
302
+ });
287
303
  }
288
304
  };
289
305
  await rebindSession();
@@ -299,6 +315,8 @@ export async function runRpcMode(runtimeHost) {
299
315
  // Start prompt handling immediately, but emit the authoritative response only after
300
316
  // prompt preflight succeeds. Queued and immediately handled prompts also count as success.
301
317
  let preflightSucceeded = false;
318
+ // Extension commands run inside prompt(); defer shutdown requests until it settles.
319
+ activeCommands++;
302
320
  void session
303
321
  .prompt(command.message, {
304
322
  images: command.images,
@@ -313,6 +331,10 @@ export async function runRpcMode(runtimeHost) {
313
331
  if (!preflightSucceeded) {
314
332
  output(error(id, "prompt", e.message));
315
333
  }
334
+ })
335
+ .finally(() => {
336
+ activeCommands--;
337
+ checkShutdownRequested();
316
338
  });
317
339
  return undefined;
318
340
  }
@@ -571,19 +593,12 @@ export async function runRpcMode(runtimeHost) {
571
593
  }
572
594
  }
573
595
  };
574
- /**
575
- * Check if shutdown was requested and perform shutdown if so.
576
- * Called after handling each command when waiting for the next command.
577
- */
578
596
  let detachInput = () => { };
597
+ /** Dispose the runtime and exit. Runs once; later calls (stdin EOF after a signal) do nothing. */
579
598
  async function shutdown(exitCode = 0, signal) {
580
- if (shuttingDown) {
581
- process.exit(exitCode);
582
- }
599
+ if (shuttingDown)
600
+ return;
583
601
  shuttingDown = true;
584
- for (const cleanup of signalCleanupHandlers) {
585
- cleanup();
586
- }
587
602
  unsubscribe?.();
588
603
  unsubscribeBackpressure?.();
589
604
  await runtimeHost.dispose();
@@ -594,10 +609,15 @@ export async function runRpcMode(runtimeHost) {
594
609
  }
595
610
  process.exit(exitCode);
596
611
  }
597
- async function checkShutdownRequested() {
598
- if (!shutdownRequested)
612
+ /**
613
+ * Shut down if an extension requested it and nothing still needs the process: input is attached,
614
+ * no command (including a prompt that has not settled) is being handled, and the session is idle.
615
+ * Each of those ending calls this again.
616
+ */
617
+ function checkShutdownRequested() {
618
+ if (!shutdownRequested || shuttingDown || !inputReady || activeCommands > 0 || !session.isIdle)
599
619
  return;
600
- await shutdown();
620
+ void shutdown();
601
621
  }
602
622
  const handleInputLine = async (line) => {
603
623
  let parsed;
@@ -623,13 +643,20 @@ export async function runRpcMode(runtimeHost) {
623
643
  return;
624
644
  }
625
645
  const command = parsed;
646
+ activeCommands++;
626
647
  try {
627
- const response = await handleCommand(command);
648
+ let response;
649
+ try {
650
+ response = await handleCommand(command);
651
+ }
652
+ finally {
653
+ activeCommands--;
654
+ }
628
655
  if (response) {
629
656
  output(response);
630
657
  await waitForRawStdoutBackpressure();
631
658
  }
632
- await checkShutdownRequested();
659
+ checkShutdownRequested();
633
660
  }
634
661
  catch (commandError) {
635
662
  output(error(command.id, command.type, commandError instanceof Error ? commandError.message : String(commandError)));
@@ -649,6 +676,9 @@ export async function runRpcMode(runtimeHost) {
649
676
  process.stdin.off("end", onInputEnd);
650
677
  };
651
678
  })();
679
+ inputReady = true;
680
+ // Handle a shutdown requested during startup (e.g. from session_start).
681
+ checkShutdownRequested();
652
682
  // Keep process alive forever
653
683
  return new Promise(() => { });
654
684
  }