@averyyy/pi-coding-agent 1.4.0-piclient.9 → 1.5.0-piclient.1

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 (429) hide show
  1. package/CHANGELOG.md +122 -4
  2. package/dist/bundle/chunks/anthropic-messages-WU4RRDFO.js +6 -0
  3. package/dist/bundle/chunks/azure-openai-responses-M725JFGO.js +2 -0
  4. package/dist/bundle/chunks/bedrock-converse-stream.js +7 -4
  5. package/dist/bundle/chunks/chunk-3UW3IQIY.js +16 -0
  6. package/dist/bundle/chunks/chunk-4RKLODCT.js +2 -0
  7. package/dist/bundle/chunks/{chunk-3LTMO2WY.js → chunk-75IISYAM.js} +2 -2
  8. package/dist/bundle/chunks/{chunk-CF5GWZHW.js → chunk-A3Y7H47A.js} +1 -1
  9. package/dist/bundle/chunks/chunk-FFMDRXC4.js +10 -0
  10. package/dist/bundle/chunks/{chunk-D3OXAPLU.js → chunk-G23G7KNC.js} +2 -9
  11. package/dist/bundle/chunks/chunk-GJFZM2RZ.js +129 -0
  12. package/dist/bundle/chunks/chunk-GO33PKBT.js +9 -0
  13. package/dist/bundle/chunks/{chunk-H2AI7MFJ.js → chunk-JM6XUN2B.js} +2 -2
  14. package/dist/bundle/chunks/{chunk-BRYV63PL.js → chunk-LTLKVIE2.js} +8 -7
  15. package/dist/bundle/chunks/chunk-LXHWY6K4.js +1592 -0
  16. package/dist/bundle/chunks/{chunk-MKWEYCNF.js → chunk-N4CTF6DK.js} +2 -2
  17. package/dist/bundle/chunks/chunk-O5CTLHDX.js +82 -0
  18. package/dist/bundle/chunks/chunk-OV4EHN3Q.js +2 -0
  19. package/dist/bundle/chunks/{chunk-3EGEEHMN.js → chunk-OW4KH7CI.js} +1 -1
  20. package/dist/bundle/chunks/{chunk-HZG4C6GI.js → chunk-OXKIVFVM.js} +1 -1
  21. package/dist/bundle/chunks/chunk-P7FPUEYA.js +2 -0
  22. package/dist/bundle/chunks/chunk-PWQUNMKT.js +4 -0
  23. package/dist/bundle/chunks/{chunk-3NEJV7UG.js → chunk-ULTM5Q67.js} +1 -1
  24. package/dist/bundle/chunks/{chunk-VHUVVKJM.js → chunk-WATJAG5U.js} +1 -1
  25. package/dist/bundle/chunks/{chunk-VYYRESZJ.js → chunk-YH5RGRHQ.js} +3 -3
  26. package/dist/bundle/chunks/{cli-QUNA6INU.js → cli-2Q4CKMZK.js} +11 -9
  27. package/dist/bundle/chunks/{cloudflare-workers-ai-system-one-QIIM6OB4.js → cloudflare-workers-ai-system-one-JEJELFEJ.js} +1 -1
  28. package/dist/bundle/chunks/devin.js +1 -1
  29. package/dist/bundle/chunks/{easter-egg-3d-4L2AVJKX.js → easter-egg-3d-UEH5CVEM.js} +1 -1
  30. package/dist/bundle/chunks/{execute-UNST3ORJ.js → execute-BOGNP5CQ.js} +1 -1
  31. package/dist/bundle/chunks/github-copilot.js +1 -1
  32. package/dist/bundle/chunks/google-antigravity-runtime.js +3 -3
  33. package/dist/bundle/chunks/google-antigravity.js +1 -1
  34. package/dist/bundle/chunks/{google-generative-ai-PNRT4EAN.js → google-generative-ai-UTHMOBSC.js} +1 -1
  35. package/dist/bundle/chunks/{google-vertex-ZLSXUSEM.js → google-vertex-MKY2BEE7.js} +1 -1
  36. package/dist/bundle/chunks/image-resize-worker.js +1 -1
  37. package/dist/bundle/chunks/kimi-coding.js +1 -1
  38. package/dist/bundle/chunks/{llama-cpp-classify-U4EH6TAM.js → llama-cpp-classify-CYHVVBOQ.js} +1 -1
  39. package/dist/bundle/chunks/meta.js +1 -1
  40. package/dist/bundle/chunks/mistral-conversations-U2CRJEWX.js +5 -0
  41. package/dist/bundle/chunks/{openai-codex-responses-UIB63WGM.js → openai-codex-responses-DK2NKO47.js} +1 -1
  42. package/dist/bundle/chunks/openai-completions-VPNLDI5K.js +7 -0
  43. package/dist/bundle/chunks/{openai-decisions-Q46R33J3.js → openai-decisions-UZ6HF7LF.js} +1 -1
  44. package/dist/bundle/chunks/{openai-responses-FGTD6NDJ.js → openai-responses-S5QT5K5D.js} +1 -1
  45. package/dist/bundle/chunks/{openrouter-images-WBAVKHHY.js → openrouter-images-P5CYCO4P.js} +1 -1
  46. package/dist/bundle/chunks/pi-messages-XPX326L5.js +8 -0
  47. package/dist/bundle/chunks/radius.js +1 -1
  48. package/dist/bundle/chunks/{runtime-SITSZTHV.js → runtime-2Z3FBQRD.js} +1 -1
  49. package/dist/bundle/chunks/{typesafe-system-one-DFEHTLK5.js → typesafe-system-one-NKVLMGFF.js} +1 -1
  50. package/dist/bundle/chunks/virtual-modules-CR5DUKA3.js +2 -0
  51. package/dist/bundle/cli-runtime.js +1 -1
  52. package/dist/bundle/index.js +1 -1
  53. package/dist/bundle/rpc-entry.js +1 -1
  54. package/dist/cli/args.d.ts.map +1 -1
  55. package/dist/cli/args.js +8 -7
  56. package/dist/cli/args.js.map +1 -1
  57. package/dist/cli/auth-check.d.ts.map +1 -1
  58. package/dist/cli/auth-check.js +12 -1
  59. package/dist/cli/auth-check.js.map +1 -1
  60. package/dist/cli/credential-print.d.ts.map +1 -1
  61. package/dist/cli/credential-print.js +6 -0
  62. package/dist/cli/credential-print.js.map +1 -1
  63. package/dist/config.d.ts +10 -0
  64. package/dist/config.d.ts.map +1 -1
  65. package/dist/config.js +24 -5
  66. package/dist/config.js.map +1 -1
  67. package/dist/core/agent-session-runtime.js +3 -3
  68. package/dist/core/agent-session-runtime.js.map +1 -1
  69. package/dist/core/agent-session.d.ts +6 -1
  70. package/dist/core/agent-session.d.ts.map +1 -1
  71. package/dist/core/agent-session.js +35 -7
  72. package/dist/core/agent-session.js.map +1 -1
  73. package/dist/core/bug-report.d.ts +4 -4
  74. package/dist/core/compaction/branch-summarization.d.ts +4 -2
  75. package/dist/core/compaction/branch-summarization.d.ts.map +1 -1
  76. package/dist/core/compaction/branch-summarization.js +14 -5
  77. package/dist/core/compaction/branch-summarization.js.map +1 -1
  78. package/dist/core/exec.d.ts +9 -1
  79. package/dist/core/exec.d.ts.map +1 -1
  80. package/dist/core/exec.js +79 -15
  81. package/dist/core/exec.js.map +1 -1
  82. package/dist/core/export-html/template.css +9 -0
  83. package/dist/core/export-html/template.js +165 -45
  84. package/dist/core/export-html/tool-renderer.d.ts.map +1 -1
  85. package/dist/core/export-html/tool-renderer.js +3 -0
  86. package/dist/core/export-html/tool-renderer.js.map +1 -1
  87. package/dist/core/extensions/index.d.ts +1 -1
  88. package/dist/core/extensions/index.d.ts.map +1 -1
  89. package/dist/core/extensions/index.js.map +1 -1
  90. package/dist/core/extensions/loader.d.ts.map +1 -1
  91. package/dist/core/extensions/loader.js +7 -6
  92. package/dist/core/extensions/loader.js.map +1 -1
  93. package/dist/core/extensions/pi-ai-extension-view.d.ts +19 -0
  94. package/dist/core/extensions/pi-ai-extension-view.d.ts.map +1 -0
  95. package/dist/core/extensions/pi-ai-extension-view.js +22 -0
  96. package/dist/core/extensions/pi-ai-extension-view.js.map +1 -0
  97. package/dist/core/extensions/types.d.ts +27 -4
  98. package/dist/core/extensions/types.d.ts.map +1 -1
  99. package/dist/core/extensions/types.js.map +1 -1
  100. package/dist/core/extensions/virtual-modules.d.ts.map +1 -1
  101. package/dist/core/extensions/virtual-modules.js +8 -7
  102. package/dist/core/extensions/virtual-modules.js.map +1 -1
  103. package/dist/core/mcp-servers.d.ts +11 -4
  104. package/dist/core/mcp-servers.d.ts.map +1 -1
  105. package/dist/core/mcp-servers.js +15 -5
  106. package/dist/core/mcp-servers.js.map +1 -1
  107. package/dist/core/model-config.d.ts +1678 -2029
  108. package/dist/core/model-config.d.ts.map +1 -1
  109. package/dist/core/model-config.js +2 -3
  110. package/dist/core/model-config.js.map +1 -1
  111. package/dist/core/model-registry.d.ts.map +1 -1
  112. package/dist/core/model-registry.js +5 -0
  113. package/dist/core/model-registry.js.map +1 -1
  114. package/dist/core/model-resolver.d.ts.map +1 -1
  115. package/dist/core/model-resolver.js +17 -11
  116. package/dist/core/model-resolver.js.map +1 -1
  117. package/dist/core/model-runtime.d.ts +11 -14
  118. package/dist/core/model-runtime.d.ts.map +1 -1
  119. package/dist/core/model-runtime.js +167 -198
  120. package/dist/core/model-runtime.js.map +1 -1
  121. package/dist/core/package-manager.d.ts +14 -0
  122. package/dist/core/package-manager.d.ts.map +1 -1
  123. package/dist/core/package-manager.js +160 -46
  124. package/dist/core/package-manager.js.map +1 -1
  125. package/dist/core/pi-ai-schemas.d.ts +163 -0
  126. package/dist/core/pi-ai-schemas.d.ts.map +1 -0
  127. package/dist/core/pi-ai-schemas.js +21 -0
  128. package/dist/core/pi-ai-schemas.js.map +1 -0
  129. package/dist/core/pi-manifest.d.ts +1 -0
  130. package/dist/core/pi-manifest.d.ts.map +1 -1
  131. package/dist/core/pi-manifest.js +4 -0
  132. package/dist/core/pi-manifest.js.map +1 -1
  133. package/dist/core/pi-server-accounts.d.ts +22 -0
  134. package/dist/core/pi-server-accounts.d.ts.map +1 -0
  135. package/dist/core/pi-server-accounts.js +137 -0
  136. package/dist/core/pi-server-accounts.js.map +1 -0
  137. package/dist/core/pi-server-client.d.ts +15 -7
  138. package/dist/core/pi-server-client.d.ts.map +1 -1
  139. package/dist/core/pi-server-client.js +85 -4
  140. package/dist/core/pi-server-client.js.map +1 -1
  141. package/dist/core/pi-server-observer.d.ts +4 -0
  142. package/dist/core/pi-server-observer.d.ts.map +1 -1
  143. package/dist/core/pi-server-observer.js +24 -0
  144. package/dist/core/pi-server-observer.js.map +1 -1
  145. package/dist/core/pi-server-request.d.ts +1 -1
  146. package/dist/core/pi-server-request.d.ts.map +1 -1
  147. package/dist/core/pi-server-request.js +2 -2
  148. package/dist/core/pi-server-request.js.map +1 -1
  149. package/dist/core/pi-server-subagents.d.ts +26 -0
  150. package/dist/core/pi-server-subagents.d.ts.map +1 -0
  151. package/dist/core/pi-server-subagents.js +112 -0
  152. package/dist/core/pi-server-subagents.js.map +1 -0
  153. package/dist/core/project-trust.js +1 -1
  154. package/dist/core/project-trust.js.map +1 -1
  155. package/dist/core/provider-composer.d.ts +1 -1
  156. package/dist/core/provider-composer.d.ts.map +1 -1
  157. package/dist/core/provider-composer.js +1 -0
  158. package/dist/core/provider-composer.js.map +1 -1
  159. package/dist/core/remote-catalog-provider.d.ts +3 -2
  160. package/dist/core/remote-catalog-provider.d.ts.map +1 -1
  161. package/dist/core/remote-catalog-provider.js +32 -16
  162. package/dist/core/remote-catalog-provider.js.map +1 -1
  163. package/dist/core/resource-loader.d.ts +6 -1
  164. package/dist/core/resource-loader.d.ts.map +1 -1
  165. package/dist/core/resource-loader.js +42 -24
  166. package/dist/core/resource-loader.js.map +1 -1
  167. package/dist/core/sdk.d.ts.map +1 -1
  168. package/dist/core/sdk.js +61 -18
  169. package/dist/core/sdk.js.map +1 -1
  170. package/dist/core/session-manager.d.ts +7 -0
  171. package/dist/core/session-manager.d.ts.map +1 -1
  172. package/dist/core/session-manager.js +32 -13
  173. package/dist/core/session-manager.js.map +1 -1
  174. package/dist/core/settings-manager.d.ts +2 -0
  175. package/dist/core/settings-manager.d.ts.map +1 -1
  176. package/dist/core/settings-manager.js +11 -0
  177. package/dist/core/settings-manager.js.map +1 -1
  178. package/dist/core/settings-schema.d.ts +4 -2
  179. package/dist/core/settings-schema.d.ts.map +1 -1
  180. package/dist/core/settings-schema.js +8 -1
  181. package/dist/core/settings-schema.js.map +1 -1
  182. package/dist/core/skills.d.ts.map +1 -1
  183. package/dist/core/skills.js +6 -14
  184. package/dist/core/skills.js.map +1 -1
  185. package/dist/core/slash-commands.js +2 -2
  186. package/dist/core/slash-commands.js.map +1 -1
  187. package/dist/core/source-info.d.ts +9 -0
  188. package/dist/core/source-info.d.ts.map +1 -1
  189. package/dist/core/source-info.js +13 -0
  190. package/dist/core/source-info.js.map +1 -1
  191. package/dist/core/system-prompt.d.ts.map +1 -1
  192. package/dist/core/system-prompt.js +5 -6
  193. package/dist/core/system-prompt.js.map +1 -1
  194. package/dist/core/tools/bash.d.ts +2 -2
  195. package/dist/core/tools/bash.d.ts.map +1 -1
  196. package/dist/core/tools/bash.js.map +1 -1
  197. package/dist/core/tools/edit.d.ts +3 -3
  198. package/dist/core/tools/edit.d.ts.map +1 -1
  199. package/dist/core/tools/edit.js +2 -4
  200. package/dist/core/tools/edit.js.map +1 -1
  201. package/dist/core/tools/find.d.ts +2 -2
  202. package/dist/core/tools/find.d.ts.map +1 -1
  203. package/dist/core/tools/find.js.map +1 -1
  204. package/dist/core/tools/grep.d.ts +2 -2
  205. package/dist/core/tools/grep.d.ts.map +1 -1
  206. package/dist/core/tools/grep.js +1 -1
  207. package/dist/core/tools/grep.js.map +1 -1
  208. package/dist/core/tools/ls.d.ts +2 -2
  209. package/dist/core/tools/ls.d.ts.map +1 -1
  210. package/dist/core/tools/ls.js.map +1 -1
  211. package/dist/core/tools/read.d.ts +2 -2
  212. package/dist/core/tools/read.d.ts.map +1 -1
  213. package/dist/core/tools/read.js.map +1 -1
  214. package/dist/core/tools/render-utils.js +2 -2
  215. package/dist/core/tools/render-utils.js.map +1 -1
  216. package/dist/core/tools/renderers/write.d.ts.map +1 -1
  217. package/dist/core/tools/renderers/write.js +19 -19
  218. package/dist/core/tools/renderers/write.js.map +1 -1
  219. package/dist/core/tools/tool-definition-wrapper.d.ts +11 -1
  220. package/dist/core/tools/tool-definition-wrapper.d.ts.map +1 -1
  221. package/dist/core/tools/tool-definition-wrapper.js.map +1 -1
  222. package/dist/core/tools/write.d.ts +2 -2
  223. package/dist/core/tools/write.d.ts.map +1 -1
  224. package/dist/core/tools/write.js.map +1 -1
  225. package/dist/core/trust-manager.d.ts.map +1 -1
  226. package/dist/core/trust-manager.js +14 -8
  227. package/dist/core/trust-manager.js.map +1 -1
  228. package/dist/core/usage-totals.d.ts.map +1 -1
  229. package/dist/core/usage-totals.js +2 -0
  230. package/dist/core/usage-totals.js.map +1 -1
  231. package/dist/extensions/codemode/renderer.d.ts.map +1 -1
  232. package/dist/extensions/codemode/renderer.js +6 -2
  233. package/dist/extensions/codemode/renderer.js.map +1 -1
  234. package/dist/extensions/codemode/tool.d.ts +2 -1
  235. package/dist/extensions/codemode/tool.d.ts.map +1 -1
  236. package/dist/extensions/codemode/tool.js +33 -8
  237. package/dist/extensions/codemode/tool.js.map +1 -1
  238. package/dist/extensions/llama/ui.d.ts.map +1 -1
  239. package/dist/extensions/llama/ui.js +16 -4
  240. package/dist/extensions/llama/ui.js.map +1 -1
  241. package/dist/extensions/mcp/cli.d.ts.map +1 -1
  242. package/dist/extensions/mcp/cli.js +34 -8
  243. package/dist/extensions/mcp/cli.js.map +1 -1
  244. package/dist/extensions/mcp/oauth.d.ts +1 -1
  245. package/dist/extensions/mcp/oauth.d.ts.map +1 -1
  246. package/dist/extensions/mcp/oauth.js +36 -13
  247. package/dist/extensions/mcp/oauth.js.map +1 -1
  248. package/dist/extensions/mcp/ui.d.ts +1 -0
  249. package/dist/extensions/mcp/ui.d.ts.map +1 -1
  250. package/dist/extensions/mcp/ui.js +33 -24
  251. package/dist/extensions/mcp/ui.js.map +1 -1
  252. package/dist/extensions/tool-search/tool.d.ts +21 -6
  253. package/dist/extensions/tool-search/tool.d.ts.map +1 -1
  254. package/dist/extensions/tool-search/tool.js +104 -36
  255. package/dist/extensions/tool-search/tool.js.map +1 -1
  256. package/dist/index.d.ts +2 -2
  257. package/dist/index.d.ts.map +1 -1
  258. package/dist/index.js.map +1 -1
  259. package/dist/main.d.ts.map +1 -1
  260. package/dist/main.js +30 -7
  261. package/dist/main.js.map +1 -1
  262. package/dist/modes/interactive/components/assistant-message.d.ts +4 -1
  263. package/dist/modes/interactive/components/assistant-message.d.ts.map +1 -1
  264. package/dist/modes/interactive/components/assistant-message.js +45 -21
  265. package/dist/modes/interactive/components/assistant-message.js.map +1 -1
  266. package/dist/modes/interactive/components/config-selector.d.ts.map +1 -1
  267. package/dist/modes/interactive/components/config-selector.js +4 -17
  268. package/dist/modes/interactive/components/config-selector.js.map +1 -1
  269. package/dist/modes/interactive/components/custom-editor.d.ts.map +1 -1
  270. package/dist/modes/interactive/components/custom-editor.js +7 -0
  271. package/dist/modes/interactive/components/custom-editor.js.map +1 -1
  272. package/dist/modes/interactive/components/custom-entry.d.ts.map +1 -1
  273. package/dist/modes/interactive/components/custom-entry.js +2 -1
  274. package/dist/modes/interactive/components/custom-entry.js.map +1 -1
  275. package/dist/modes/interactive/components/custom-message.d.ts.map +1 -1
  276. package/dist/modes/interactive/components/custom-message.js +2 -1
  277. package/dist/modes/interactive/components/custom-message.js.map +1 -1
  278. package/dist/modes/interactive/components/extension-editor.d.ts +2 -0
  279. package/dist/modes/interactive/components/extension-editor.d.ts.map +1 -1
  280. package/dist/modes/interactive/components/extension-editor.js +4 -0
  281. package/dist/modes/interactive/components/extension-editor.js.map +1 -1
  282. package/dist/modes/interactive/components/login-dialog.d.ts +5 -0
  283. package/dist/modes/interactive/components/login-dialog.d.ts.map +1 -1
  284. package/dist/modes/interactive/components/login-dialog.js +105 -10
  285. package/dist/modes/interactive/components/login-dialog.js.map +1 -1
  286. package/dist/modes/interactive/components/markdown-transform.d.ts +2 -1
  287. package/dist/modes/interactive/components/markdown-transform.d.ts.map +1 -1
  288. package/dist/modes/interactive/components/markdown-transform.js +3 -2
  289. package/dist/modes/interactive/components/markdown-transform.js.map +1 -1
  290. package/dist/modes/interactive/components/model-selector.d.ts +1 -0
  291. package/dist/modes/interactive/components/model-selector.d.ts.map +1 -1
  292. package/dist/modes/interactive/components/model-selector.js +17 -6
  293. package/dist/modes/interactive/components/model-selector.js.map +1 -1
  294. package/dist/modes/interactive/components/oauth-selector.d.ts +1 -0
  295. package/dist/modes/interactive/components/oauth-selector.d.ts.map +1 -1
  296. package/dist/modes/interactive/components/oauth-selector.js +13 -4
  297. package/dist/modes/interactive/components/oauth-selector.js.map +1 -1
  298. package/dist/modes/interactive/components/scoped-models-selector.d.ts +1 -0
  299. package/dist/modes/interactive/components/scoped-models-selector.d.ts.map +1 -1
  300. package/dist/modes/interactive/components/scoped-models-selector.js +14 -3
  301. package/dist/modes/interactive/components/scoped-models-selector.js.map +1 -1
  302. package/dist/modes/interactive/components/session-selector-search.d.ts +4 -0
  303. package/dist/modes/interactive/components/session-selector-search.d.ts.map +1 -1
  304. package/dist/modes/interactive/components/session-selector-search.js +86 -22
  305. package/dist/modes/interactive/components/session-selector-search.js.map +1 -1
  306. package/dist/modes/interactive/components/session-selector.d.ts +2 -1
  307. package/dist/modes/interactive/components/session-selector.d.ts.map +1 -1
  308. package/dist/modes/interactive/components/session-selector.js +16 -24
  309. package/dist/modes/interactive/components/session-selector.js.map +1 -1
  310. package/dist/modes/interactive/components/settings-submenu.d.ts.map +1 -1
  311. package/dist/modes/interactive/components/settings-submenu.js +2 -0
  312. package/dist/modes/interactive/components/settings-submenu.js.map +1 -1
  313. package/dist/modes/interactive/components/tool-execution.d.ts +6 -0
  314. package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
  315. package/dist/modes/interactive/components/tool-execution.js +14 -2
  316. package/dist/modes/interactive/components/tool-execution.js.map +1 -1
  317. package/dist/modes/interactive/components/tree-selector.d.ts +1 -0
  318. package/dist/modes/interactive/components/tree-selector.d.ts.map +1 -1
  319. package/dist/modes/interactive/components/tree-selector.js +5 -6
  320. package/dist/modes/interactive/components/tree-selector.js.map +1 -1
  321. package/dist/modes/interactive/components/user-message-selector.d.ts +1 -0
  322. package/dist/modes/interactive/components/user-message-selector.d.ts.map +1 -1
  323. package/dist/modes/interactive/components/user-message-selector.js +9 -1
  324. package/dist/modes/interactive/components/user-message-selector.js.map +1 -1
  325. package/dist/modes/interactive/components/user-message.d.ts +3 -1
  326. package/dist/modes/interactive/components/user-message.d.ts.map +1 -1
  327. package/dist/modes/interactive/components/user-message.js +6 -2
  328. package/dist/modes/interactive/components/user-message.js.map +1 -1
  329. package/dist/modes/interactive/external-editor.d.ts +1 -0
  330. package/dist/modes/interactive/external-editor.d.ts.map +1 -1
  331. package/dist/modes/interactive/external-editor.js +10 -4
  332. package/dist/modes/interactive/external-editor.js.map +1 -1
  333. package/dist/modes/interactive/interactive-mode.d.ts +5 -0
  334. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  335. package/dist/modes/interactive/interactive-mode.js +179 -58
  336. package/dist/modes/interactive/interactive-mode.js.map +1 -1
  337. package/dist/modes/interactive/model-search.d.ts +10 -0
  338. package/dist/modes/interactive/model-search.d.ts.map +1 -1
  339. package/dist/modes/interactive/model-search.js +21 -0
  340. package/dist/modes/interactive/model-search.js.map +1 -1
  341. package/dist/modes/interactive/theme/theme.d.ts +10 -0
  342. package/dist/modes/interactive/theme/theme.d.ts.map +1 -1
  343. package/dist/modes/interactive/theme/theme.js +31 -23
  344. package/dist/modes/interactive/theme/theme.js.map +1 -1
  345. package/dist/package-manager-cli.d.ts.map +1 -1
  346. package/dist/package-manager-cli.js +55 -4
  347. package/dist/package-manager-cli.js.map +1 -1
  348. package/dist/utils/ansi.d.ts.map +1 -1
  349. package/dist/utils/ansi.js +5 -2
  350. package/dist/utils/ansi.js.map +1 -1
  351. package/dist/utils/clipboard-command.d.ts.map +1 -1
  352. package/dist/utils/clipboard-command.js +4 -0
  353. package/dist/utils/clipboard-command.js.map +1 -1
  354. package/dist/utils/git.d.ts +1 -1
  355. package/dist/utils/git.d.ts.map +1 -1
  356. package/dist/utils/git.js.map +1 -1
  357. package/dist/utils/image-resize-core.d.ts.map +1 -1
  358. package/dist/utils/image-resize-core.js +5 -3
  359. package/dist/utils/image-resize-core.js.map +1 -1
  360. package/dist/utils/open-browser.d.ts.map +1 -1
  361. package/dist/utils/open-browser.js +4 -1
  362. package/dist/utils/open-browser.js.map +1 -1
  363. package/dist/utils/paths.d.ts +17 -0
  364. package/dist/utils/paths.d.ts.map +1 -1
  365. package/dist/utils/paths.js +42 -1
  366. package/dist/utils/paths.js.map +1 -1
  367. package/dist/utils/shell.d.ts.map +1 -1
  368. package/dist/utils/shell.js +14 -0
  369. package/dist/utils/shell.js.map +1 -1
  370. package/dist/utils/syntax-highlight.d.ts +5 -0
  371. package/dist/utils/syntax-highlight.d.ts.map +1 -1
  372. package/dist/utils/syntax-highlight.js +7 -0
  373. package/dist/utils/syntax-highlight.js.map +1 -1
  374. package/dist/utils/tools-manager.d.ts.map +1 -1
  375. package/dist/utils/tools-manager.js +30 -35
  376. package/dist/utils/tools-manager.js.map +1 -1
  377. package/docs/cli.md +21 -11
  378. package/docs/custom-provider.md +2 -0
  379. package/docs/environment-variables.md +2 -0
  380. package/docs/extensions.md +3173 -225
  381. package/docs/keybindings.md +1 -1
  382. package/docs/llama-cpp.md +23 -12
  383. package/docs/mcp.md +6 -4
  384. package/docs/message-types.md +1 -1
  385. package/docs/packages.md +24 -0
  386. package/docs/quickstart.md +7 -3
  387. package/docs/sessions.md +11 -3
  388. package/docs/settings.md +5 -4
  389. package/docs/slash-commands.md +3 -2
  390. package/docs/terminal-setup.md +3 -1
  391. package/docs/tmux.md +6 -0
  392. package/docs/tui.md +2 -0
  393. package/docs/windows.md +27 -0
  394. package/examples/extensions/README.md +2 -1
  395. package/examples/extensions/custom-provider-anthropic/index.ts +27 -31
  396. package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
  397. package/examples/extensions/custom-provider-anthropic/package.json +1 -1
  398. package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
  399. package/examples/extensions/debug-provider.ts +2 -2
  400. package/examples/extensions/gondolin/package-lock.json +19 -29
  401. package/examples/extensions/gondolin/package.json +2 -2
  402. package/examples/extensions/preset.ts +2 -0
  403. package/examples/extensions/reload-runtime.ts +17 -5
  404. package/examples/extensions/todo.ts +7 -0
  405. package/examples/extensions/tools.ts +2 -0
  406. package/examples/extensions/with-deps/package-lock.json +2 -2
  407. package/examples/extensions/with-deps/package.json +1 -1
  408. package/examples/tsconfig.json +180 -0
  409. package/package.json +13 -14
  410. package/schemas/models.schema.json +36 -36
  411. package/schemas/settings.schema.json +17 -0
  412. package/dist/bundle/chunks/anthropic-messages-3TZAX2CL.js +0 -6
  413. package/dist/bundle/chunks/azure-openai-responses-5OV6AS44.js +0 -2
  414. package/dist/bundle/chunks/chunk-3V45WARH.js +0 -7
  415. package/dist/bundle/chunks/chunk-GA3MDGH3.js +0 -82
  416. package/dist/bundle/chunks/chunk-H2UJDH5M.js +0 -131
  417. package/dist/bundle/chunks/chunk-H76KZMOI.js +0 -2
  418. package/dist/bundle/chunks/chunk-K47GPRYD.js +0 -1577
  419. package/dist/bundle/chunks/chunk-PG7P2LUM.js +0 -4
  420. package/dist/bundle/chunks/chunk-TEPMHNKQ.js +0 -2
  421. package/dist/bundle/chunks/chunk-TLSZ4DWU.js +0 -16
  422. package/dist/bundle/chunks/chunk-WVXVPMMO.js +0 -2
  423. package/dist/bundle/chunks/mistral-conversations-OJFHLO4F.js +0 -5
  424. package/dist/bundle/chunks/openai-completions-T5JB7LUM.js +0 -7
  425. package/dist/bundle/chunks/pi-messages-S7RKCD5K.js +0 -8
  426. package/dist/bundle/chunks/virtual-modules-2WW4BVZM.js +0 -2
  427. package/examples/extensions/sandbox/index.ts +0 -321
  428. package/examples/extensions/sandbox/package-lock.json +0 -92
  429. package/examples/extensions/sandbox/package.json +0 -19
@@ -98,7 +98,7 @@ The dedicated history actions browse prompt history regardless of cursor positio
98
98
 
99
99
  #### Fullscreen
100
100
 
101
- In fullscreen mode, these actions control the transcript and take precedence over editor actions using the same key.
101
+ In fullscreen mode, these actions control the transcript and take precedence over editor actions using the same key. While an overlay or a scrollable list such as autocomplete, `/settings`, or the model selector has focus, the scrolling and prompt-jump actions go to it instead of the transcript, so `tui.select.pageUp` and `tui.select.pageDown` move the list selection. Transcript search actions keep working.
102
102
 
103
103
  | Keybinding id | Default | Description |
104
104
  |---|---|---|
package/docs/llama-cpp.md CHANGED
@@ -1,31 +1,42 @@
1
1
  # Local Models with llama.cpp
2
2
 
3
- Pi supports the [llama.cpp](https://github.com/ggml-org/llama.cpp) router server. The router discovers multiple GGUF models and loads or unloads them on demand.
3
+ Pi supports the [llama.cpp](https://llama.app) router server. The router discovers multiple GGUF models and loads or unloads them on demand.
4
4
 
5
- Use a current llama.cpp build with router support. Follow the [build instructions](https://github.com/ggml-org/llama.cpp/blob/master/docs/build.md) or install a [prebuilt release](https://github.com/ggml-org/llama.cpp/releases) for your platform.
5
+ ## Install llama.cpp
6
+
7
+ Install llama.cpp with the [official installer](https://llama.app/docs/installation):
8
+
9
+ ```bash
10
+ curl -LsSf https://llama.app/install.sh | sh
11
+ ```
12
+
13
+ Verify the installation:
14
+
15
+ ```bash
16
+ llama cli --version
17
+ ```
18
+
19
+ See [llama.app](https://llama.app) for other installation methods, including package managers and building from source.
6
20
 
7
21
  ## Start the router
8
22
 
9
- Start `llama-server` without `--model` or `-m`. Passing a model starts single-model mode instead of router mode.
23
+ Start `llama serve` without `--model`, `-m`, or `-hf`. Passing a model starts single-model mode instead of router mode. See the [llama.cpp server guide](https://llama.app/docs/serve#serving-multiple-models-router-mode) for router configuration.
10
24
 
11
25
  ```bash
12
- llama-server \
13
- --models-dir ~/models \
26
+ llama serve \
14
27
  --no-models-autoload \
15
- --jinja \
16
28
  --host 127.0.0.1 \
17
29
  --port 8080 \
18
- -ngl 999 \
30
+ -ngl all \
19
31
  -c 32768
20
32
  ```
21
33
 
22
34
  Important options:
23
35
 
24
- - `--models-dir ~/models` discovers local GGUF files.
25
36
  - `--no-models-autoload` keeps loading explicit through `/llama`.
26
37
  - `--jinja` enables compatible chat templates and tool calling.
27
- - `-ngl 999` offloads as many layers as possible to the GPU.
28
- - `-c 32768` sets the context window for each loaded model. Omit it to use the model's native context, which may require substantially more memory.
38
+ - `-ngl all` offloads all layers to the GPU. Omit it to use automatic GPU offloading.
39
+ - `-c 32768` sets the context size in tokens. Use `-c 0` for the model's full context window, which may require substantially more memory. Context is shared across parallel server slots.
29
40
 
30
41
  A single-file model can sit directly in the model directory. Put multimodal and multi-shard models in separate subdirectories:
31
42
 
@@ -41,7 +52,7 @@ A single-file model can sit directly in the model directory. Put multimodal and
41
52
  └── large-model-Q4_K_M-00003-of-00003.gguf
42
53
  ```
43
54
 
44
- Restart the router after manually adding files. For per-model context sizes and other options, use [llama.cpp model presets](https://github.com/ggml-org/llama.cpp/blob/master/tools/server/README.md#model-presets). For settings tuned to a specific NVIDIA GPU and model, see [Run Pi with NVIDIA RTX and llama.cpp](nvidia-rtx-llama-cpp.md).
55
+ Restart the router after manually adding files. The router also supports cached models and preset files via `--models-preset`, as described in the [server guide](https://llama.app/docs/serve#serving-multiple-models-router-mode).
45
56
 
46
57
  ## Configure Pi
47
58
 
@@ -63,7 +74,7 @@ export LLAMA_API_KEY=optional-secret
63
74
  pi
64
75
  ```
65
76
 
66
- If the server uses an API key, start `llama-server` with the matching `--api-key` value. Keep `--host 127.0.0.1` for local-only access.
77
+ If the server uses an API key, start `llama serve` with the matching `--api-key` value. Keep `--host 127.0.0.1` for local-only access.
67
78
 
68
79
  ## Manage models
69
80
 
package/docs/mcp.md CHANGED
@@ -126,7 +126,7 @@ Remote servers that use OAuth, such as Sentry, need no credentials in `mcp.json`
126
126
 
127
127
  When the server rejects an unauthenticated connection, `/mcp` shows that it needs sign-in. Select "Sign in", run `/mcp login sentry`, or run `pi mcp login sentry`. Pi opens the authorization page and waits for approval. If the browser runs on another machine, such as over SSH, paste its redirected URL into the sign-in screen. A running session uses the new credentials on its next turn.
128
128
 
129
- Pi registers itself with the authorization server, stores tokens in `~/.pi/agent/mcp-auth.json`, and refreshes access tokens when they expire or the server rejects them. If a server later requests additional scope, Pi asks for sign-in again. Signing out deletes the stored credentials.
129
+ Pi identifies itself to the authorization server with its Client ID Metadata Document or by registering a client, stores tokens in `~/.pi/agent/mcp-auth.json`, and refreshes access tokens when they expire or the server rejects them. If a server later requests additional scope, Pi asks for sign-in again. Signing out deletes the stored credentials.
130
130
 
131
131
  Credentials belong to a server name and URL. Servers with the same URL under different names, such as one per account, sign in separately; servers with the same name and URL in different `mcp.json` files share one sign-in.
132
132
 
@@ -159,17 +159,19 @@ Pi registers as `pi`. Some servers only accept registrations from known clients.
159
159
 
160
160
  The name is only sent when Pi registers a client. To register again under a new name, sign out first.
161
161
 
162
- Some authorization servers allow clients by their Client ID Metadata Document URL instead of registering them. Set `clientRegistration` to `cimd` to identify as Pi's document on pi.dev instead of registering:
162
+ Without `clientId`, Pi identifies itself with its Client ID Metadata Document on pi.dev when the authorization server advertises support for documents and public clients. Otherwise it registers a client dynamically. A client registered before stays in use while its redirect URI matches, until you sign out. With the document, the client ID is `https://pi.dev/oauth/client.json` with the redirect URI `http://127.0.0.1:<port>/callback`. If the authorization server does not send the `iss` parameter in authorization responses (RFC 9207), Pi uses a document and redirect path specific to the MCP server instead: `https://pi.dev/oauth/<id>/client.json` with `http://127.0.0.1:<port>/callback/<id>`.
163
+
164
+ Pi registers instead of using the document when `clientName` is set or `callbackUrl` is not `/callback` on `localhost` or `127.0.0.1`. Set `clientRegistration` to choose the method: `auto` (default) as described, `dcr` to always register, or `cimd` to always use the document. With `cimd`, sign-in fails if the authorization server does not support documents for public clients. Use `dcr` when the authorization page reports an invalid client:
163
165
 
164
166
  ```json
165
167
  {
166
168
  "mcpServers": {
167
- "example": { "url": "https://mcp.example.com/mcp", "oauth": { "clientRegistration": "cimd" } }
169
+ "example": { "url": "https://mcp.example.com/mcp", "oauth": { "clientRegistration": "dcr" } }
168
170
  }
169
171
  }
170
172
  ```
171
173
 
172
- The client ID is `https://pi.dev/oauth/client.json` with the redirect URI `http://127.0.0.1:<port>/callback`. If the authorization server does not send the `iss` parameter in authorization responses (RFC 9207), Pi uses a document and redirect path specific to the MCP server instead: `https://pi.dev/oauth/<id>/client.json` with `http://127.0.0.1:<port>/callback/<id>`. The authorization server must advertise Client ID Metadata Document support and public clients, or sign-in fails. `cimd` cannot be combined with `clientId` or `clientName`, and a `callbackUrl` must use `localhost` or `127.0.0.1` with the path `/callback`.
174
+ `pi mcp add --oauth-client-registration <mode>` sets it when adding a server. `cimd` cannot be combined with `clientId` or `clientName`, and a `callbackUrl` must use `localhost` or `127.0.0.1` with the path `/callback`.
173
175
 
174
176
  Pi finds the authorization server through the server's protected resource metadata (RFC 9728) and checks that the authorization server's metadata names the expected issuer (RFC 8414). Some servers advertise the wrong authorization server or none, so sign-in opens a page that does not exist. Set `authServerMetadataUrl` to the metadata document of the right authorization server:
175
177
 
@@ -140,7 +140,7 @@ interface AssistantMessage {
140
140
  }
141
141
  ```
142
142
 
143
- `responseModel` records a concrete provider response model when it differs from the requested model. `responseId`, `providerThinkingLevel`, `thinkingLevel`, `diagnostics`, and `rawStopReason` preserve provider or runtime details.
143
+ `responseModel` records the concrete model reported by the provider, when the provider reports one. It may equal the requested model. `responseId`, `providerThinkingLevel`, `thinkingLevel`, `diagnostics`, and `rawStopReason` preserve provider or runtime details.
144
144
 
145
145
  `"pending"` is used for a partial assistant message while it streams. The completed message in `message_end` has a terminal stop reason, and Pi does not persist `"pending"` assistant messages in session JSONL.
146
146
 
package/docs/packages.md CHANGED
@@ -16,6 +16,8 @@ pi install ./local-package
16
16
 
17
17
  `pi list` shows configured packages. Use `pi remove <source>` to remove one and `pi update --extensions` to reconcile package installations. See [Command Line](cli.md#package-commands) for every package command and option.
18
18
 
19
+ If a configured package fails to install at startup, for example because npm cannot reach the registry, Pi warns about it, skips that package's resources, and keeps running. Pi tries to install it again on the next start or `/reload`. `pi install` and `pi update --extensions` still report the failure and exit non-zero.
20
+
19
21
  Personal installs are written to `~/.pi/agent/settings.json`. Add `--local` or `-l` to write the package declaration to `.pi/settings.json`. Pi reads declarations from that file only after project trust is granted.
20
22
 
21
23
  Project packages are installed and loaded only after project trust is resolved. Packages can execute extension code and can include skills that instruct the model to run programs. Review third-party package source before installing it. Review project package declarations before granting project trust.
@@ -26,6 +28,8 @@ Use `--extension` or `-e` to try a package for one invocation without adding it
26
28
  pi -e npm:@example/pi-tools
27
29
  ```
28
30
 
31
+ Pi caches `-e` packages under `~/.pi/agent/tmp/extensions/` and checks them on every start and `/reload`. An npm package is reinstalled when the registry has a newer version that matches the specification. A version pinned to an exact number, such as `@1.2.3`, is not checked. A git package is fetched and reset to the remote branch or ref. A ref that is a commit hash already checked out is not fetched. If the check fails or offline mode is on, Pi loads the cached copy.
32
+
29
33
  ## Choose a source
30
34
 
31
35
  | Source | Example | Behavior |
@@ -73,6 +77,26 @@ Paths are relative to the package root. Arrays accept glob patterns and exclusio
73
77
 
74
78
  The `pi-package` keyword makes an npm package eligible for discovery in the [Pi package gallery](https://pi.dev/packages). Optional `pi.image` and `pi.video` fields add gallery previews.
75
79
 
80
+ ## Show a changelog
81
+
82
+ After a package update, Pi can show what changed. On the next fresh launch, Pi reads the package changelog and shows entries newer than the last seen version under "Extension Updates", the same way it shows its own changelog. The first time Pi sees a package, it records the version without showing anything.
83
+
84
+ This applies to packages that load at least one extension. Packages that only provide skills, prompt templates, or themes do not show a changelog.
85
+
86
+ By default Pi reads `CHANGELOG.md` from the package root. Point `pi.changelogPath` at another file inside the package, or set it to `""` to disable the changelog:
87
+
88
+ ```json
89
+ {
90
+ "name": "my-pi-package",
91
+ "version": "1.2.0",
92
+ "pi": {
93
+ "changelogPath": "./docs/CHANGELOG.md"
94
+ }
95
+ }
96
+ ```
97
+
98
+ Use version headings in the same format as Pi's changelog, such as `## [1.2.0]` or `## 1.2.0 - 2026-01-01`. Entries are matched against the `version` field in `package.json`, so a git package only shows a changelog when that field increases. The `collapseChangelog` setting condenses the section to one line per package, such as `Updated my-pi-package to v1.2.0.` Unlike Pi's own changelog, `/changelog` does not show package changelogs, so read the package's changelog file or repository for details.
99
+
76
100
  ## Declare dependencies
77
101
 
78
102
  Put runtime packages imported by extensions in `dependencies`. Pi installs package dependencies when it installs an npm or git source.
@@ -6,13 +6,17 @@ For native Windows setup, read [Windows Setup](windows.md). For Android, read [T
6
6
 
7
7
  ## 1. Install Pi
8
8
 
9
- On macOS or Linux, you can use the installer:
9
+ Install Pi with the installer on macOS, Linux, or Windows:
10
10
 
11
- ```bash
11
+ ```bash tab="macOS / Linux"
12
12
  curl -fsSL https://pi.dev/install.sh | sh
13
13
  ```
14
14
 
15
- The installer pins all dependencies and updates Pi with `pi update`. Alternatively, install Pi from npm, which does not pin transitive dependencies. This requires Node.js 22.19 or newer:
15
+ ```powershell tab="Windows"
16
+ powershell -c "irm https://pi.dev/install.ps1 | iex"
17
+ ```
18
+
19
+ Both installers pin all dependencies and update Pi with `pi update`. Alternatively, install Pi from npm, which does not pin transitive dependencies. This requires Node.js 22.19 or newer:
16
20
 
17
21
  ```bash
18
22
  npm install -g --ignore-scripts @earendil-works/pi-coding-agent
package/docs/sessions.md CHANGED
@@ -11,7 +11,17 @@ pi --continue
11
11
  pi --resume
12
12
  ```
13
13
 
14
- `--continue` opens the most recent session for the current working directory. `--resume` opens the session picker. In interactive mode, `/resume` opens the same picker and `/new` starts a new session.
14
+ `--continue` opens the most recent session for the current directory. `--resume` opens the session picker. In interactive mode, `/resume` opens the same picker and `/new` starts a new session.
15
+
16
+ Each session records the working directory it was created in and never changes it. Pi runs a session in its working directory, so tools, `@path` references, project configuration, and context files resolve from there.
17
+
18
+ | Entry point | Working directory |
19
+ |---|---|
20
+ | `--continue` | The current directory |
21
+ | `--resume`, `/resume`, `--session`, `/import` | The session's working directory, which can differ from the current directory |
22
+ | `--fork`, or a `--session` ID from another directory that you choose to fork | The current directory, in a new session |
23
+
24
+ If a session's working directory no longer exists, interactive mode offers to run the session in the current directory instead. Pi does not store that choice, so it asks again the next time you open the session. Other modes exit with an error.
15
25
 
16
26
  Use `/name` or `--name` to assign a recognizable session name. Run `/session` to verify the current session file, ID, message count, token usage, and cost.
17
27
 
@@ -51,8 +61,6 @@ By default, Pi stores sessions under `~/.pi/agent/sessions/`, grouped by working
51
61
 
52
62
  Use `--no-session` for an ephemeral run. An ephemeral session cannot be resumed after Pi exits.
53
63
 
54
- Use `--session` when you already know the session path or ID. Use `--fork` to create a new session from an existing session before interactive mode starts.
55
-
56
64
  ## Export or share a session
57
65
 
58
66
  Use `/export` to write the current session as HTML or JSONL. Use `/share` to upload it and get a viewer link. By default, Pi uses a Radius artifact when Radius authentication is configured; otherwise, it uses a private GitHub gist. Set [`sessionShareDestination`](settings.md#sessions-and-context) to `gist` or `radius` to force one destination.
package/docs/settings.md CHANGED
@@ -105,7 +105,7 @@ See [Compaction Reference](compaction.md) for trigger, summarization, and valida
105
105
  | `showHardwareCursor` | boolean | `false` | Use the terminal cursor instead of Pi's drawn cursor. Pi still positions it for input methods. |
106
106
  | `terminal.showImages` | boolean | `true` | Display inline images when supported. |
107
107
  | `terminal.imageWidthCells` | number | `60` | Preferred inline image width in terminal cells. |
108
- | `terminal.clearOnShrink` | boolean | `false` | Clear empty rows when rendered content shrinks. |
108
+ | `terminal.clearOnShrink` | boolean | `false` | Clear empty rows when rendered content shrinks. When unset, `PI_CLEAR_ON_SHRINK=1` enables it. |
109
109
  | `terminal.showTerminalProgress` | boolean | `false` | Show OSC 9;4 progress in the terminal tab. |
110
110
  | `terminal.hyperlinks` | `boolean \| "auto"` | `"auto"` | Override OSC 8 hyperlink detection. |
111
111
  | `terminal.images` | `"kitty" \| "iterm2" \| "auto" \| false` | `"auto"` | Override inline-image protocol detection. |
@@ -123,8 +123,8 @@ See [Themes](themes.md) and [Terminal Setup](terminal-setup.md) for format and p
123
123
  |---|---|---|---|
124
124
  | `transport` | `"auto" \| "sse" \| "websocket" \| "websocket-cached"` | `"auto"` | Preferred transport for AI providers that support multiple transports. |
125
125
  | `httpProxy` | string | None | Proxy URL applied as `HTTP_PROXY` and `HTTPS_PROXY` for Pi-managed HTTP clients. **Can only be set in agent-directory settings.** |
126
- | `httpIdleTimeoutMs` | number | `300000` | HTTP header and body idle timeout in milliseconds. Set to `0` to disable. |
127
- | `websocketConnectTimeoutMs` | number | `15000` | WebSocket connection timeout in milliseconds. Set to `0` to disable. |
126
+ | `httpIdleTimeoutMs` | number \| `"disabled"` | `300000` | HTTP header and body idle timeout in milliseconds. Set to `0` or `"disabled"` to disable. |
127
+ | `websocketConnectTimeoutMs` | number \| `"disabled"` | `15000` | WebSocket connection timeout in milliseconds. Set to `0` or `"disabled"` to disable. |
128
128
  | `retry.enabled` | boolean | `true` | Enable automatic agent-level retry for transient failures. |
129
129
  | `retry.maxRetries` | number | `3` | Maximum agent-level retry attempts. |
130
130
  | `retry.baseDelayMs` | number | `2000` | Initial exponential-backoff delay in milliseconds. |
@@ -142,6 +142,7 @@ Keep `retry.provider.maxRetries` at `0` unless provider-level retries are requir
142
142
  | `shellPath` | string | Platform default | Custom shell executable path. Supports a leading `~`. |
143
143
  | `shellCommandPrefix` | string | None | Prefix prepended to every shell command. |
144
144
  | `npmCommand` | `string[]` | `npm` | Command and arguments used for npm package lookup and installation. |
145
+ | `selfUpdateCommand` | `string[]` | None | Command and arguments `pi update` runs to update Pi itself, with `{packageName}`, `{version}`, and `{installSpec}` placeholders. `PI_SELF_UPDATE_COMMAND` takes precedence. **Can only be set in agent-directory settings.** See [Custom update command](cli.md#custom-update-command). |
145
146
 
146
147
  See [Shell aliases](shell-aliases.md) for shell setup and [Pi Packages](packages.md) for package-manager behavior.
147
148
 
@@ -166,7 +167,7 @@ The built-in extensions are named `builtin:mcp`, `builtin:llama.cpp`, `builtin:c
166
167
 
167
168
  | Setting | Type | Default | Description |
168
169
  |---|---|---|---|
169
- | `collapseChangelog` | boolean | `false` | Show a condensed changelog after an update. |
170
+ | `collapseChangelog` | boolean | `false` | Show a condensed changelog after an update. Also condenses extension package changelogs to one line per package. |
170
171
  | `enableInstallTelemetry` | boolean | `true` | Enable anonymous install/update reporting and selected provider attribution headers. Does not control update checks. |
171
172
  | `enableAnalytics` | boolean | `false` | Opt in to analytics data sharing. Currently used only by the experimental first-run setup. |
172
173
  | `warnings.anthropicExtraUsage` | boolean | `true` | Warn when Anthropic subscription authentication may use paid extra usage. |
@@ -21,14 +21,14 @@ Extensions, prompt templates, and skills can add commands. The command menu in P
21
21
  | Command | Description |
22
22
  |---|---|
23
23
  | `/new` | Start a new session |
24
- | `/resume` | Switch to another saved session |
24
+ | `/resume` | Resume another session |
25
25
  | `/name [name]` | Set the session display name, or show the current name when omitted |
26
26
  | `/session` | Show current session information and statistics |
27
27
  | `/tree` | Navigate the session tree |
28
28
  | `/fork` | Create a new session from an earlier user message |
29
29
  | `/clone` | Duplicate the current session at its current position |
30
30
  | `/compact [instructions]` | Compact the current context, optionally with custom instructions |
31
- | `/import <path>` | Import and resume a JSONL session |
31
+ | `/import <path>` | Import a JSONL session, preserving its ID and working directory |
32
32
 
33
33
  ## Export and share
34
34
 
@@ -46,6 +46,7 @@ Review a session before exporting or sharing it. Sessions can contain prompts, t
46
46
  | Command | Description |
47
47
  |---|---|
48
48
  | `/trust` | Save a project trust decision for future Pi processes |
49
+ | `/mcp` | Manage MCP servers: sign in, reconnect, enable or disable, and change exposure |
49
50
  | `/reload` | Reload keybindings, extensions, skills, templates, themes, and context files |
50
51
  | `/hotkeys` | Show active keyboard shortcuts |
51
52
  | `/changelog` | Show changelog entries |
@@ -40,7 +40,7 @@ This is an iTerm2-wide setting and can also change native trackpad scrolling. Th
40
40
 
41
41
  ## Apple Terminal
42
42
 
43
- Pi enables enhanced key reporting when available. If Terminal.app still sends plain Return for `Shift+Enter`, Pi uses a local macOS modifier fallback and treats it as `Shift+Enter`.
43
+ Pi enables enhanced key reporting when available. If Terminal.app still sends plain Return or `ESC` + Return for `Shift+Enter`, Pi uses a local macOS modifier fallback and treats it as `Shift+Enter`. `ESC` + Return without Shift held remains `Alt+Enter`.
44
44
 
45
45
  The fallback works only when Pi runs on the same Mac as Terminal.app. It cannot inspect the local modifier state when Pi runs on another machine over SSH.
46
46
 
@@ -170,6 +170,8 @@ Windows Terminal uses Pi's Windows and WSL shortcut defaults. See [Keybindings](
170
170
 
171
171
  ### Forward Shift+Enter
172
172
 
173
+ When Pi runs natively on Windows, it checks the local Shift key state and treats plain Return or `ESC` + Return as `Shift+Enter` while Shift is held. This fallback does not work in WSL or over SSH. If `Shift+Enter` still submits, forward it explicitly.
174
+
173
175
  Open Windows Terminal's `settings.json` with `Ctrl+Shift+,` or **Settings > Open JSON file**. Add this object to its `actions` array:
174
176
 
175
177
  ```json
package/docs/tmux.md CHANGED
@@ -53,3 +53,9 @@ set -g extended-keys on
53
53
  Pi supports the xterm `modifyOtherKeys` format used by these versions. Restart tmux and repeat the verification steps.
54
54
 
55
55
  For older versions, upgrade tmux or use Pi outside tmux rather than relying on modified Enter shortcuts.
56
+
57
+ ## Known issues
58
+
59
+ | Issue | Affects | Remedy |
60
+ |---|---|---|
61
+ | Text such as `c0c/0c0c/0c0c` appears in the editor at startup ([tmux#4749](https://github.com/tmux/tmux/issues/4749)) | tmux 3.6 | Upgrade tmux. Changing Pi's theme does not help. |
package/docs/tui.md CHANGED
@@ -135,6 +135,8 @@ export default function (pi: ExtensionAPI) {
135
135
 
136
136
  This component does not display a text cursor, so it does not need `Focusable`. A component containing `Input` or `Editor` must implement `Focusable` and propagate its `focused` value to that child.
137
137
 
138
+ Custom components do not report pi as waiting for the user, because `ctx.ui.custom()` also hosts loaders and other non-blocking UI. When an inline component waits for an answer, pass `blocked: { kind: "question", message: "Pick a color" }` so terminals that support [program status](terminal-setup.md#program-status) show pi as blocked while the component is visible. `kind` is `"question"`, `"permission"`, or `"auth"`. Overlays ignore this option.
139
+
138
140
  Pass `overlay: true` to draw above existing content. Overlay options control size, anchors, offsets, margins, and responsive visibility. An overlay handle can change focus or temporarily hide and show the overlay with `setHidden()` while the interaction remains active.
139
141
 
140
142
  Focused overlays retain input ownership across ordinary renders. If another component should receive input while an overlay remains visible, explicitly release or redirect focus through the handle.
package/docs/windows.md CHANGED
@@ -76,6 +76,33 @@ JSON uses backslashes for escape sequences. When you write a Windows path with b
76
76
 
77
77
  See [Configure shell commands](shell-aliases.md) for command prefixes, aliases, and the complete shell-resolution behavior.
78
78
 
79
+ ## Choose a terminal
80
+
81
+ Windows terminals run Pi through a console host (conhost). Some bundle an up-to-date copy; others use the older one built into Windows, which has bugs that affect Pi.
82
+
83
+ We recommend [Windows Terminal](https://aka.ms/terminal). It always ships an up-to-date conhost, and Pi is best tested with it.
84
+
85
+ Last updated: October 2026.
86
+
87
+ | Terminal | Conhost | Status |
88
+ |---|---|---|
89
+ | [Windows Terminal](https://aka.ms/terminal) | Bundled, current | Recommended |
90
+ | [VS Code](https://code.visualstudio.com), [Tabby](https://tabby.sh), [WezTerm](https://wezterm.org) nightly | Bundled, current | Works |
91
+ | [Alacritty](https://alacritty.org) | Built-in, unless `conpty.dll` and `OpenConsole.exe` from Windows Terminal are next to `alacritty.exe` | Works only with those files |
92
+ | WezTerm 20240203 and older | Bundled, old | [Known issues](#known-issues) |
93
+ | Classic console (`cmd.exe` or PowerShell without Windows Terminal), mintty (Git Bash), ConEmu, Cmder, [Hyper](https://hyper.is), Windows OpenSSH | Built-in | [Known issues](#known-issues) |
94
+
79
95
  ## Configure Windows Terminal
80
96
 
81
97
  Windows Terminal reserves or rewrites some modified keys. See [Windows Terminal](terminal-setup.md#windows-terminal) to configure `Shift+Enter` and `Alt+Enter`, and [Keybindings](keybindings.md) for Pi's Windows and WSL shortcut defaults.
98
+
99
+ ## Known issues
100
+
101
+ These issues come from conhost. Microsoft has fixed them in its source, but has not said when the built-in conhost will get the fixes.
102
+
103
+ | Issue | Affects | Remedy |
104
+ |---|---|---|
105
+ | Switching from fullscreen to regular mode, or `Ctrl+G` from fullscreen, crashes the session ([#9186](https://github.com/earendil-works/pi/issues/9186), [microsoft/terminal#17515](https://github.com/microsoft/terminal/issues/17515)) | Built-in conhost | Use a terminal with a current conhost, or start Pi with `--tui-mode regular` |
106
+ | Text such as `;0;rgb:0000/0000/0000` appears in the prompt, and BEL opens the external editor ([#10256](https://github.com/earendil-works/pi/issues/10256)) | Built-in conhost behind another terminal: mintty, Windows OpenSSH | Use a terminal with a current conhost |
107
+ | Fragments such as `79` or `55` appear in the prompt ([#10717](https://github.com/earendil-works/pi/issues/10717)) | WezTerm 20240203 | Use WezTerm nightly |
108
+ | In regular mode, each keystroke redraws the input line on a new row ([#6300](https://github.com/earendil-works/pi/issues/6300)) | Built-in conhost, classic console | Use fullscreen mode (the default), or a terminal with a current conhost |
@@ -23,9 +23,10 @@ cp permission-gate.ts ~/.pi/agent/extensions/
23
23
  | `protected-paths.ts` | Blocks writes to protected paths (.env, .git/, node_modules/) |
24
24
  | `confirm-destructive.ts` | Confirms before destructive session actions (clear, switch, fork) |
25
25
  | `dirty-repo-guard.ts` | Prevents session changes with uncommitted git changes |
26
- | `sandbox/` | OS-level sandboxing using `@anthropic-ai/sandbox-runtime` with per-project config |
27
26
  | `gondolin/` | Route built-in tools and `!` commands into a Gondolin micro-VM |
28
27
 
28
+ For isolation setup and limitations, see [Run Pi in an isolated environment](../../docs/containerization.md).
29
+
29
30
  ### Custom Tools
30
31
 
31
32
  | Extension | Description |
@@ -42,7 +42,7 @@ import {
42
42
  type TextContent,
43
43
  type ThinkingContent,
44
44
  type Tool,
45
- type ToolCall,
45
+ ToolCallArgumentsStream,
46
46
  type ToolResultMessage,
47
47
  type TranscriptContext,
48
48
  } from "@earendil-works/pi-ai";
@@ -454,8 +454,9 @@ function streamCustomAnthropic(
454
454
  const anthropicStream = client.messages.stream({ ...params }, { signal: options?.signal });
455
455
  stream.push({ type: "start", partial: output });
456
456
 
457
- type Block = (ThinkingContent | TextContent | (ToolCall & { partialJson: string })) & { index: number };
458
- const blocks = output.content as Block[];
457
+ // Stream state per Anthropic block index, kept off the content blocks so it never reaches partial messages.
458
+ // ToolCallArgumentsStream reads each argument delta once and shows the arguments parsed so far.
459
+ const openBlocks = new Map<number, { contentIndex: number; arguments?: ToolCallArgumentsStream }>();
459
460
 
460
461
  for await (const event of anthropicStream) {
461
462
  if (event.type === "message_start") {
@@ -468,15 +469,12 @@ function streamCustomAnthropic(
468
469
  calculateCost(model, output.usage);
469
470
  } else if (event.type === "content_block_start") {
470
471
  if (event.content_block.type === "text") {
471
- output.content.push({ type: "text", text: "", index: event.index } as any);
472
+ output.content.push({ type: "text", text: "" });
473
+ openBlocks.set(event.index, { contentIndex: output.content.length - 1 });
472
474
  stream.push({ type: "text_start", contentIndex: output.content.length - 1, partial: output });
473
475
  } else if (event.content_block.type === "thinking") {
474
- output.content.push({
475
- type: "thinking",
476
- thinking: "",
477
- thinkingSignature: "",
478
- index: event.index,
479
- } as any);
476
+ output.content.push({ type: "thinking", thinking: "", thinkingSignature: "" });
477
+ openBlocks.set(event.index, { contentIndex: output.content.length - 1 });
480
478
  stream.push({ type: "thinking_start", contentIndex: output.content.length - 1, partial: output });
481
479
  } else if (event.content_block.type === "tool_use") {
482
480
  output.content.push({
@@ -484,15 +482,18 @@ function streamCustomAnthropic(
484
482
  id: event.content_block.id,
485
483
  name: isOAuth ? fromClaudeCodeName(event.content_block.name, tools) : event.content_block.name,
486
484
  arguments: {},
487
- partialJson: "",
488
- index: event.index,
489
- } as any);
485
+ });
486
+ openBlocks.set(event.index, {
487
+ contentIndex: output.content.length - 1,
488
+ arguments: new ToolCallArgumentsStream(),
489
+ });
490
490
  stream.push({ type: "toolcall_start", contentIndex: output.content.length - 1, partial: output });
491
491
  }
492
492
  } else if (event.type === "content_block_delta") {
493
- const index = blocks.findIndex((b) => b.index === event.index);
494
- const block = blocks[index];
495
- if (!block) continue;
493
+ const open = openBlocks.get(event.index);
494
+ if (!open) continue;
495
+ const index = open.contentIndex;
496
+ const block = output.content[index]!;
496
497
 
497
498
  if (event.delta.type === "text_delta" && block.type === "text") {
498
499
  block.text += event.delta.text;
@@ -505,11 +506,8 @@ function streamCustomAnthropic(
505
506
  delta: event.delta.thinking,
506
507
  partial: output,
507
508
  });
508
- } else if (event.delta.type === "input_json_delta" && block.type === "toolCall") {
509
- (block as any).partialJson += event.delta.partial_json;
510
- try {
511
- block.arguments = JSON.parse((block as any).partialJson);
512
- } catch {}
509
+ } else if (event.delta.type === "input_json_delta" && block.type === "toolCall" && open.arguments) {
510
+ block.arguments = open.arguments.append(event.delta.partial_json);
513
511
  stream.push({
514
512
  type: "toolcall_delta",
515
513
  contentIndex: index,
@@ -520,20 +518,19 @@ function streamCustomAnthropic(
520
518
  block.thinkingSignature = (block.thinkingSignature || "") + (event.delta as any).signature;
521
519
  }
522
520
  } else if (event.type === "content_block_stop") {
523
- const index = blocks.findIndex((b) => b.index === event.index);
524
- const block = blocks[index];
525
- if (!block) continue;
521
+ const open = openBlocks.get(event.index);
522
+ if (!open) continue;
523
+ openBlocks.delete(event.index);
524
+ const index = open.contentIndex;
525
+ const block = output.content[index]!;
526
526
 
527
- delete (block as any).index;
528
527
  if (block.type === "text") {
529
528
  stream.push({ type: "text_end", contentIndex: index, content: block.text, partial: output });
530
529
  } else if (block.type === "thinking") {
531
530
  stream.push({ type: "thinking_end", contentIndex: index, content: block.thinking, partial: output });
532
- } else if (block.type === "toolCall") {
533
- try {
534
- block.arguments = JSON.parse((block as any).partialJson);
535
- } catch {}
536
- delete (block as any).partialJson;
531
+ } else if (block.type === "toolCall" && open.arguments) {
532
+ // One full parse of the complete text; malformed arguments are reported in `argumentsError`.
533
+ Object.assign(block, open.arguments.finish());
537
534
  stream.push({ type: "toolcall_end", contentIndex: index, toolCall: block, partial: output });
538
535
  }
539
536
  } else if (event.type === "message_delta") {
@@ -563,7 +560,6 @@ function streamCustomAnthropic(
563
560
  stream.push({ type: "done", reason: output.stopReason, message: output });
564
561
  stream.end();
565
562
  } catch (error) {
566
- for (const block of output.content) delete (block as any).index;
567
563
  output.stopReason = options?.signal?.aborted ? "aborted" : "error";
568
564
  output.errorMessage = error instanceof Error ? error.message : JSON.stringify(error);
569
565
  stream.push({ type: "error", reason: output.stopReason, error: output });
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pi-extension-custom-provider",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pi-extension-custom-provider",
9
- "version": "1.4.0",
9
+ "version": "1.5.0",
10
10
  "dependencies": {
11
11
  "@anthropic-ai/sdk": "^0.52.0"
12
12
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pi-extension-custom-provider-anthropic",
3
3
  "private": true,
4
- "version": "1.4.0",
4
+ "version": "1.5.0",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "clean": "echo 'nothing to clean'",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pi-extension-custom-provider-gitlab-duo",
3
3
  "private": true,
4
- "version": "1.4.0",
4
+ "version": "1.5.0",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "clean": "echo 'nothing to clean'",
@@ -6,7 +6,7 @@
6
6
  * as expandable custom entries.
7
7
  */
8
8
 
9
- import { type ExtensionAPI, keyHint } from "@earendil-works/pi-coding-agent";
9
+ import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
10
10
  import { Box, Text } from "@earendil-works/pi-tui";
11
11
 
12
12
  const ENTRY_TYPE = "debug-provider-events";
@@ -24,7 +24,7 @@ export default function (pi: ExtensionAPI) {
24
24
  let activeEvents: unknown[] | undefined;
25
25
  let completedEntry: ProviderDebugEntry | undefined;
26
26
 
27
- pi.registerEntryRenderer<ProviderDebugEntry>(ENTRY_TYPE, (entry, { expanded }, theme) => {
27
+ pi.registerEntryRenderer<ProviderDebugEntry>(ENTRY_TYPE, (entry, { expanded, keyHint }, theme) => {
28
28
  const data = entry.data;
29
29
  if (!data) return new Text(theme.fg("warning", "[provider debug] Missing event data"), 0, 0);
30
30