@maxmo74/pi-coding-agent 1.5.2-max.15 → 1.6.0-max.16

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 (228) hide show
  1. package/CHANGELOG.md +82 -0
  2. package/README.md +1 -1
  3. package/dist/bundle/chunks/{anthropic-messages-CA3HHOL3.js → anthropic-messages-WAFIHSF7.js} +3 -3
  4. package/dist/bundle/chunks/{azure-openai-responses-76TWS6DT.js → azure-openai-responses-EB4MRIM4.js} +1 -1
  5. package/dist/bundle/chunks/bedrock-converse-stream.js +2 -2
  6. package/dist/bundle/chunks/{chunk-FMPAMX2W.js → chunk-E6LJTZYC.js} +1 -1
  7. package/dist/bundle/chunks/chunk-EEBRZED2.js +44 -0
  8. package/dist/bundle/chunks/chunk-EVSO24NP.js +2 -0
  9. package/dist/bundle/chunks/{chunk-M6TSYZBS.js → chunk-EXXWEFU5.js} +67 -64
  10. package/dist/bundle/chunks/{chunk-ZBIZYD6W.js → chunk-F7LEMV2T.js} +1 -1
  11. package/dist/bundle/chunks/{chunk-VKJQ6CME.js → chunk-I6HYYNH6.js} +1 -1
  12. package/dist/bundle/chunks/{chunk-BAC3QPNW.js → chunk-ILDLA2JW.js} +1 -1
  13. package/dist/bundle/chunks/chunk-INODY4DR.js +2 -0
  14. package/dist/bundle/chunks/{chunk-COKMCNCW.js → chunk-KREOSXD7.js} +1 -1
  15. package/dist/bundle/chunks/chunk-LWG2CUTI.js +31 -0
  16. package/dist/bundle/chunks/{chunk-WL4TUXY7.js → chunk-NRLRGOCX.js} +1 -1
  17. package/dist/bundle/chunks/{chunk-AUUCDC7R.js → chunk-NRY4NBZW.js} +1 -1
  18. package/dist/bundle/chunks/{chunk-4KSTFUIK.js → chunk-NV3NPOPF.js} +3 -2
  19. package/dist/bundle/chunks/{chunk-IQUU5XIT.js → chunk-RCNEHRMW.js} +1 -1
  20. package/dist/bundle/chunks/{chunk-FF6XOTWB.js → chunk-X26YOAEH.js} +11 -10
  21. package/dist/bundle/chunks/chunk-X6RQRO3L.js +16 -0
  22. package/dist/bundle/chunks/{chunk-4UNPP53I.js → chunk-XGGZYFNG.js} +2 -2
  23. package/dist/bundle/chunks/chunk-XJ2YV77J.js +30 -0
  24. package/dist/bundle/chunks/{chunk-RKNK4Y6L.js → chunk-YOWSKVK7.js} +1 -1
  25. package/dist/bundle/chunks/{cli-2MK3TR7P.js → cli-QMJEURSM.js} +1 -1
  26. package/dist/bundle/chunks/{cloudflare-workers-ai-system-one-U4J7D646.js → cloudflare-workers-ai-system-one-AMCR7QEI.js} +1 -1
  27. package/dist/bundle/chunks/{easter-egg-3d-GEVPKQF6.js → easter-egg-3d-7CBVPJQ3.js} +1 -1
  28. package/dist/bundle/chunks/{execute-L2EEDV3L.js → execute-XDNPBEMU.js} +1 -1
  29. package/dist/bundle/chunks/github-copilot.js +1 -1
  30. package/dist/bundle/chunks/google-generative-ai-43M4N5LK.js +2 -0
  31. package/dist/bundle/chunks/google-vertex-2B3PASK2.js +2 -0
  32. package/dist/bundle/chunks/{llama-cpp-classify-EJXCQRUQ.js → llama-cpp-classify-XXZYF3RR.js} +1 -1
  33. package/dist/bundle/chunks/{mistral-conversations-S277EKLB.js → mistral-conversations-E3D5ZQKB.js} +2 -2
  34. package/dist/bundle/chunks/openai-codex-responses-MSQDSDUR.js +10 -0
  35. package/dist/bundle/chunks/{openai-completions-HRZOSLBO.js → openai-completions-4IC6AGTR.js} +2 -2
  36. package/dist/bundle/chunks/{openai-decisions-F66BDLOM.js → openai-decisions-LZ2RLVRX.js} +1 -1
  37. package/dist/bundle/chunks/{openai-responses-BAKFWTGE.js → openai-responses-MCO3BHCC.js} +1 -1
  38. package/dist/bundle/chunks/{openrouter-images-VXF5TVIK.js → openrouter-images-SHUJ3VSG.js} +1 -1
  39. package/dist/bundle/chunks/{pi-messages-UBJKNDRN.js → pi-messages-NIKOQ4O7.js} +1 -1
  40. package/dist/bundle/chunks/{runtime-J5ZSBGTX.js → runtime-F3SXQONS.js} +1 -1
  41. package/dist/bundle/chunks/{typesafe-system-one-56TEMIHL.js → typesafe-system-one-R2CDUWNO.js} +1 -1
  42. package/dist/bundle/chunks/{virtual-modules-MRQHQVIQ.js → virtual-modules-2WYTGPJ3.js} +1 -1
  43. package/dist/bundle/cli-runtime.js +1 -1
  44. package/dist/bundle/index.js +1 -1
  45. package/dist/bundle/rpc-entry.js +1 -1
  46. package/dist/cli/args.d.ts.map +1 -1
  47. package/dist/cli/args.js +4 -2
  48. package/dist/cli/args.js.map +1 -1
  49. package/dist/cli/config-selector.d.ts.map +1 -1
  50. package/dist/cli/config-selector.js +9 -6
  51. package/dist/cli/config-selector.js.map +1 -1
  52. package/dist/cli/session-picker.d.ts.map +1 -1
  53. package/dist/cli/session-picker.js +9 -6
  54. package/dist/cli/session-picker.js.map +1 -1
  55. package/dist/cli/startup-ui.d.ts.map +1 -1
  56. package/dist/cli/startup-ui.js +4 -0
  57. package/dist/cli/startup-ui.js.map +1 -1
  58. package/dist/core/agent-session-runtime.d.ts +11 -0
  59. package/dist/core/agent-session-runtime.d.ts.map +1 -1
  60. package/dist/core/agent-session-runtime.js +19 -0
  61. package/dist/core/agent-session-runtime.js.map +1 -1
  62. package/dist/core/agent-session.d.ts +6 -3
  63. package/dist/core/agent-session.d.ts.map +1 -1
  64. package/dist/core/agent-session.js +21 -13
  65. package/dist/core/agent-session.js.map +1 -1
  66. package/dist/core/exec.d.ts +1 -0
  67. package/dist/core/exec.d.ts.map +1 -1
  68. package/dist/core/exec.js +4 -1
  69. package/dist/core/exec.js.map +1 -1
  70. package/dist/core/export-html/ansi-to-html.d.ts +6 -1
  71. package/dist/core/export-html/ansi-to-html.d.ts.map +1 -1
  72. package/dist/core/export-html/ansi-to-html.js +57 -20
  73. package/dist/core/export-html/ansi-to-html.js.map +1 -1
  74. package/dist/core/export-html/template.js +1 -1
  75. package/dist/core/export-html/tool-renderer.d.ts.map +1 -1
  76. package/dist/core/export-html/tool-renderer.js +2 -3
  77. package/dist/core/export-html/tool-renderer.js.map +1 -1
  78. package/dist/core/extensions/loader.d.ts.map +1 -1
  79. package/dist/core/extensions/loader.js +18 -1
  80. package/dist/core/extensions/loader.js.map +1 -1
  81. package/dist/core/extensions/runner.d.ts.map +1 -1
  82. package/dist/core/extensions/runner.js +5 -0
  83. package/dist/core/extensions/runner.js.map +1 -1
  84. package/dist/core/extensions/types.d.ts +5 -0
  85. package/dist/core/extensions/types.d.ts.map +1 -1
  86. package/dist/core/extensions/types.js.map +1 -1
  87. package/dist/core/model-resolver.d.ts +0 -8
  88. package/dist/core/model-resolver.d.ts.map +1 -1
  89. package/dist/core/model-resolver.js +3 -67
  90. package/dist/core/model-resolver.js.map +1 -1
  91. package/dist/core/package-manager.d.ts +16 -0
  92. package/dist/core/package-manager.d.ts.map +1 -1
  93. package/dist/core/package-manager.js +45 -2
  94. package/dist/core/package-manager.js.map +1 -1
  95. package/dist/core/remote-catalog-provider.d.ts.map +1 -1
  96. package/dist/core/remote-catalog-provider.js +7 -0
  97. package/dist/core/remote-catalog-provider.js.map +1 -1
  98. package/dist/core/resource-loader.d.ts +5 -1
  99. package/dist/core/resource-loader.d.ts.map +1 -1
  100. package/dist/core/resource-loader.js +2 -0
  101. package/dist/core/resource-loader.js.map +1 -1
  102. package/dist/core/session-manager.d.ts.map +1 -1
  103. package/dist/core/session-manager.js +45 -36
  104. package/dist/core/session-manager.js.map +1 -1
  105. package/dist/core/session-ownership.js +15 -1
  106. package/dist/core/session-ownership.js.map +1 -1
  107. package/dist/core/tools/find.d.ts.map +1 -1
  108. package/dist/core/tools/find.js +27 -16
  109. package/dist/core/tools/find.js.map +1 -1
  110. package/dist/core/tools/grep.js +1 -1
  111. package/dist/core/tools/grep.js.map +1 -1
  112. package/dist/core/tools/output-accumulator.d.ts.map +1 -1
  113. package/dist/core/tools/output-accumulator.js +4 -1
  114. package/dist/core/tools/output-accumulator.js.map +1 -1
  115. package/dist/core/tools/read.d.ts +5 -0
  116. package/dist/core/tools/read.d.ts.map +1 -1
  117. package/dist/core/tools/read.js +10 -15
  118. package/dist/core/tools/read.js.map +1 -1
  119. package/dist/core/tools/renderers/read.d.ts.map +1 -1
  120. package/dist/core/tools/renderers/read.js +6 -2
  121. package/dist/core/tools/renderers/read.js.map +1 -1
  122. package/dist/extensions/llama/provider.d.ts +1 -1
  123. package/dist/extensions/llama/provider.d.ts.map +1 -1
  124. package/dist/extensions/llama/provider.js +6 -4
  125. package/dist/extensions/llama/provider.js.map +1 -1
  126. package/dist/extensions/mcp/index.d.ts.map +1 -1
  127. package/dist/extensions/mcp/index.js +4 -7
  128. package/dist/extensions/mcp/index.js.map +1 -1
  129. package/dist/main.d.ts.map +1 -1
  130. package/dist/main.js +39 -16
  131. package/dist/main.js.map +1 -1
  132. package/dist/modes/diagnostics-stderr.d.ts +4 -0
  133. package/dist/modes/diagnostics-stderr.d.ts.map +1 -0
  134. package/dist/modes/diagnostics-stderr.js +11 -0
  135. package/dist/modes/diagnostics-stderr.js.map +1 -0
  136. package/dist/modes/interactive/components/assistant-message.d.ts +2 -1
  137. package/dist/modes/interactive/components/assistant-message.d.ts.map +1 -1
  138. package/dist/modes/interactive/components/assistant-message.js +9 -3
  139. package/dist/modes/interactive/components/assistant-message.js.map +1 -1
  140. package/dist/modes/interactive/components/bash-execution.js.map +1 -1
  141. package/dist/modes/interactive/components/config-selector.d.ts.map +1 -1
  142. package/dist/modes/interactive/components/config-selector.js +5 -2
  143. package/dist/modes/interactive/components/config-selector.js.map +1 -1
  144. package/dist/modes/interactive/components/model-selector.d.ts.map +1 -1
  145. package/dist/modes/interactive/components/model-selector.js +5 -2
  146. package/dist/modes/interactive/components/model-selector.js.map +1 -1
  147. package/dist/modes/interactive/components/oauth-selector.d.ts +1 -1
  148. package/dist/modes/interactive/components/oauth-selector.d.ts.map +1 -1
  149. package/dist/modes/interactive/components/oauth-selector.js +7 -3
  150. package/dist/modes/interactive/components/oauth-selector.js.map +1 -1
  151. package/dist/modes/interactive/components/radius-login-selector.d.ts.map +1 -1
  152. package/dist/modes/interactive/components/radius-login-selector.js +2 -1
  153. package/dist/modes/interactive/components/radius-login-selector.js.map +1 -1
  154. package/dist/modes/interactive/components/scoped-models-selector.d.ts.map +1 -1
  155. package/dist/modes/interactive/components/scoped-models-selector.js +9 -1
  156. package/dist/modes/interactive/components/scoped-models-selector.js.map +1 -1
  157. package/dist/modes/interactive/components/session-selector.d.ts +8 -1
  158. package/dist/modes/interactive/components/session-selector.d.ts.map +1 -1
  159. package/dist/modes/interactive/components/session-selector.js +41 -9
  160. package/dist/modes/interactive/components/session-selector.js.map +1 -1
  161. package/dist/modes/interactive/components/settings-submenu.d.ts +1 -1
  162. package/dist/modes/interactive/components/settings-submenu.d.ts.map +1 -1
  163. package/dist/modes/interactive/components/settings-submenu.js +5 -1
  164. package/dist/modes/interactive/components/settings-submenu.js.map +1 -1
  165. package/dist/modes/interactive/components/themed-text.d.ts +1 -1
  166. package/dist/modes/interactive/components/themed-text.d.ts.map +1 -1
  167. package/dist/modes/interactive/components/themed-text.js.map +1 -1
  168. package/dist/modes/interactive/components/thinking-selector.d.ts.map +1 -1
  169. package/dist/modes/interactive/components/thinking-selector.js +5 -1
  170. package/dist/modes/interactive/components/thinking-selector.js.map +1 -1
  171. package/dist/modes/interactive/components/tool-execution.d.ts +1 -1
  172. package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
  173. package/dist/modes/interactive/components/tool-execution.js +3 -1
  174. package/dist/modes/interactive/components/tool-execution.js.map +1 -1
  175. package/dist/modes/interactive/components/user-message.d.ts +2 -1
  176. package/dist/modes/interactive/components/user-message.d.ts.map +1 -1
  177. package/dist/modes/interactive/components/user-message.js +9 -3
  178. package/dist/modes/interactive/components/user-message.js.map +1 -1
  179. package/dist/modes/interactive/components/visual-truncate.d.ts +2 -2
  180. package/dist/modes/interactive/components/visual-truncate.d.ts.map +1 -1
  181. package/dist/modes/interactive/components/visual-truncate.js.map +1 -1
  182. package/dist/modes/interactive/interactive-mode.d.ts +1 -1
  183. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  184. package/dist/modes/interactive/interactive-mode.js +71 -36
  185. package/dist/modes/interactive/interactive-mode.js.map +1 -1
  186. package/dist/modes/interactive/session-share.js +2 -0
  187. package/dist/modes/interactive/session-share.js.map +1 -1
  188. package/dist/modes/interactive/theme/theme.d.ts.map +1 -1
  189. package/dist/modes/interactive/theme/theme.js +1 -0
  190. package/dist/modes/interactive/theme/theme.js.map +1 -1
  191. package/dist/modes/print-mode.d.ts.map +1 -1
  192. package/dist/modes/print-mode.js +16 -13
  193. package/dist/modes/print-mode.js.map +1 -1
  194. package/dist/modes/rpc/rpc-mode.d.ts.map +1 -1
  195. package/dist/modes/rpc/rpc-mode.js +15 -23
  196. package/dist/modes/rpc/rpc-mode.js.map +1 -1
  197. package/dist/package-manager-cli.d.ts.map +1 -1
  198. package/dist/package-manager-cli.js +14 -1
  199. package/dist/package-manager-cli.js.map +1 -1
  200. package/dist/utils/changelog.d.ts.map +1 -1
  201. package/dist/utils/changelog.js +3 -2
  202. package/dist/utils/changelog.js.map +1 -1
  203. package/dist/utils/flush-stdout.d.ts +8 -0
  204. package/dist/utils/flush-stdout.d.ts.map +1 -0
  205. package/dist/utils/flush-stdout.js +23 -0
  206. package/dist/utils/flush-stdout.js.map +1 -0
  207. package/docs/extensions.md +4 -4
  208. package/docs/models-configuration.md +4 -3
  209. package/docs/nvidia-rtx-llama-cpp.md +5 -5
  210. package/docs/providers.md +4 -2
  211. package/docs/rpc-commands.md +1 -1
  212. package/docs/tui.md +2 -0
  213. package/examples/extensions/gondolin/index.ts +4 -7
  214. package/package.json +10 -10
  215. package/schemas/models.schema.json +2 -2
  216. package/dist/bundle/chunks/chunk-CF5GWZHW.js +0 -31
  217. package/dist/bundle/chunks/chunk-GFUN2N5K.js +0 -2
  218. package/dist/bundle/chunks/chunk-QN4TOIZN.js +0 -16
  219. package/dist/bundle/chunks/chunk-V7SLUK6A.js +0 -44
  220. package/dist/bundle/chunks/chunk-YTPJCXUB.js +0 -30
  221. package/dist/bundle/chunks/chunk-ZGYS4UTC.js +0 -2
  222. package/dist/bundle/chunks/google-generative-ai-D5B6W47J.js +0 -2
  223. package/dist/bundle/chunks/google-vertex-U4H5YDEW.js +0 -2
  224. package/dist/bundle/chunks/openai-codex-responses-TEQRB65N.js +0 -10
  225. package/dist/utils/deprecation.d.ts +0 -4
  226. package/dist/utils/deprecation.d.ts.map +0 -1
  227. package/dist/utils/deprecation.js +0 -13
  228. package/dist/utils/deprecation.js.map +0 -1
@@ -111,7 +111,7 @@ See [Describe model input and caching](models.md#describe-model-input-and-cachin
111
111
  | Field | Type | Default | Description |
112
112
  |---|---|---|---|
113
113
  | `supportsStore` | boolean | | Whether the provider supports the store field. Default: auto-detected from URL. |
114
- | `supportsDeveloperRole` | boolean | | Whether the provider supports the developer role instead of system. Default: auto-detected from URL. |
114
+ | `supportsDeveloperRole` | boolean | | Whether to send system messages of reasoning models (the system prompt and mid-conversation system messages) with the developer role instead of system. Default: true only for api.openai.com. |
115
115
  | `supportsReasoningEffort` | boolean | | Whether the provider supports reasoning_effort. Default: auto-detected from URL. |
116
116
  | `supportsUsageInStreaming` | boolean | `true` | Whether the provider supports stream_options.include_usage for token usage in streaming responses. |
117
117
  | `supportsFinishReason` | boolean | `true` | Whether streamed responses include finish_reason. When false, pi infers stop or toolUse when the stream ends. |
@@ -157,7 +157,7 @@ Also applies to `azure-openai-responses` and `openai-codex-responses`.
157
157
  | `supportsAdditionalTools` | boolean | `false` | Whether the model supports message-anchored additional_tools input items. |
158
158
  | `supportsToolSearch` | boolean | `false` | Whether the model supports client-executed tool search for transcript-anchored additions. |
159
159
  | `supportsExplicitPromptCacheMode` | boolean | `false` | Whether the model accepts prompt_cache_options. Older OpenAI models reject the parameter. |
160
- | `supportsMidConvoEffort` | boolean | `false` | Whether thinking level changes are sent as configuration_update input items instead of changing reasoning.effort, so a change keeps the prompt cache. Only used by the openai-responses API, and ignored with Sign in with ChatGPT on the openai provider. |
160
+ | `supportsMidConvoEffort` | boolean | `false` | Whether thinking level changes are sent as configuration_update input items instead of changing reasoning.effort, so a change keeps the prompt cache. Used by the openai-responses and openai-codex-responses APIs, and ignored with Sign in with ChatGPT on the openai provider. |
161
161
  | `supportsMaxOutputTokens` | boolean | `true` | Whether the provider accepts max_output_tokens. Some Codex-protocol gateways reject it. |
162
162
 
163
163
  ### `anthropic-messages`
@@ -176,7 +176,7 @@ Also applies to `azure-openai-responses` and `openai-codex-responses`.
176
176
  | `supportsMidConvoEffort` | boolean | `false` | Whether the exact model transport supports effort-only system messages and thinking binding controls. |
177
177
  | `supportsMidConvoSystemMessages` | boolean | `false` | Whether the exact model accepts system-role messages inside the conversation. When false, later system messages are folded into the top-level system prompt. |
178
178
  | `supportsMidConvoToolChanges` | boolean | `false` | Whether the exact model accepts mid-conversation tool_addition and tool_removal blocks. Requires supportsMidConvoSystemMessages. |
179
- | `supportsMessageThreads` | boolean | | Whether the endpoint supports Anthropic message threads, which let a request with a session id send only the new messages and continue from the previous reply. Default: true for provider anthropic with a baseUrl on api.anthropic.com, false otherwise. Set true for gateways that forward the thread request field. |
179
+ | `supportsMessageThreads` | boolean | | Whether the endpoint supports Anthropic message threads, which let a request with a session id send only the new messages and continue from the previous reply. Default: true for a baseUrl on api.anthropic.com, false otherwise. Set true for gateways that forward the thread request field. |
180
180
  | `allowedFallbackModels` | `object[]` | | Models Anthropic accepts for server-side refusal fallback, with local pricing metadata for returned fallback responses. When absent or empty, callers must omit fallbacks; Anthropic rejects the field for models with no permitted fallback targets. |
181
181
 
182
182
  ### `bedrock-converse-stream`
@@ -190,6 +190,7 @@ Also applies to `azure-openai-responses` and `openai-codex-responses`.
190
190
  | Field | Type | Default | Description |
191
191
  |---|---|---|---|
192
192
  | `supportsMidConvoSystemMessages` | boolean | `false` | Whether the exact model accepts system messages after the conversation has started. When false, later system messages are folded into the leading system message. |
193
+ | `supportsStrictMode` | boolean | `false` | Whether the model supports strict (schema-constrained) function tools. |
193
194
 
194
195
  ### `typesafe-system-one`
195
196
 
@@ -1,6 +1,6 @@
1
1
  # Run Pi with NVIDIA RTX and llama.cpp
2
2
 
3
- [NVIDIA Local AI Inference Recipes](https://nvidia.github.io/local-ai-inference-recipes/index.html) provides llama.cpp settings tuned for specific NVIDIA hardware and models. Each recipe gives a single-model `llama-server` command. Pi works with the llama.cpp router, which can serve and manage several models, so this guide converts the recipe command into a router preset.
3
+ [NVIDIA Local AI Inference Recipes](https://nvidia.github.io/local-ai-inference-recipes/index.html) provides llama.cpp settings tuned for specific NVIDIA hardware and models. Each recipe gives a single-model `llama-server` command. Pi works with the llama.cpp router, which can serve and manage several models, so this guide converts the recipe command into a router preset and starts it with `llama serve`. `llama serve` accepts the same options as `llama-server`.
4
4
 
5
5
  The examples below use Windows PowerShell. See [Local Models with llama.cpp](llama-cpp.md) for Pi's complete router and model-management reference.
6
6
 
@@ -8,12 +8,12 @@ The examples below use Windows PowerShell. See [Local Models with llama.cpp](lla
8
8
 
9
9
  1. Open the [recipe catalog](https://nvidia.github.io/local-ai-inference-recipes/index.html), select your hardware, operating system, and model, then choose **llama.cpp**. Check the prerequisites and memory requirements. Keep the recipe's launch command for the conversion below.
10
10
  2. Install llama.cpp with the recipe's setup instructions. The recipe's settings depend on its build, for example CUDA support or speculative decoding options.
11
- 3. Run `llama-server --help` and check that it lists `--models-preset`. Without it, the build cannot load the recipe as a router preset. Use a newer build that still meets the recipe's requirements.
11
+ 3. Run `llama serve --help` and check that it lists `--models-preset`. If the build has no `llama` program or the option is missing, it cannot load the recipe as a router preset. Use a newer build that still meets the recipe's requirements.
12
12
  4. Install Pi with the [Quickstart](quickstart.md). On native Windows, also see [Run Pi on Windows](windows.md).
13
13
 
14
14
  ## Convert the recipe to a preset
15
15
 
16
- A preset lists the settings for one or more models. Each section name becomes the model ID shown in Pi. Save the preset next to `llama-server`, or pass its full path when starting the router.
16
+ A preset lists the settings for one or more models. Each section name becomes the model ID shown in Pi. Save the preset in the llama.cpp folder, or pass its full path when starting the router.
17
17
 
18
18
  Convert each option from the recipe command into one preset line:
19
19
 
@@ -82,7 +82,7 @@ spec-draft-backend-sampling = true
82
82
  Open PowerShell in the llama.cpp folder and run:
83
83
 
84
84
  ```powershell
85
- .\llama-server.exe --models-preset qwen3.8-27b.ini --host 127.0.0.1 --port 8080
85
+ .\llama.exe serve --models-preset qwen3.8-27b.ini --host 127.0.0.1
86
86
  ```
87
87
 
88
88
  If the recipe requires a Hugging Face token, set `$env:HF_TOKEN` in the same PowerShell window before starting the router. On its first start, the router downloads the model files.
@@ -91,6 +91,6 @@ Use the [router health checks](llama-cpp.md#troubleshooting) to confirm that the
91
91
 
92
92
  ## Use the model in Pi
93
93
 
94
- Follow [Configure Pi](llama-cpp.md#configure-pi) and connect to `http://127.0.0.1:8080`. The preset section name is the model ID, so select `qwen3.8-27b` in `/model` for this example.
94
+ Follow [Configure Pi](llama-cpp.md#configure-pi) and connect to `http://127.0.0.1:9931`. The preset section name is the model ID, so select `qwen3.8-27b` in `/model` for this example.
95
95
 
96
96
  NVIDIA recipe memory settings assume that only the selected model uses the GPU. If `/llama` shows other loaded models, unload them before using the recipe model.
package/docs/providers.md CHANGED
@@ -57,8 +57,10 @@ This table covers providers with a single primary API-key variable. Providers th
57
57
  | MiniMax | `MINIMAX_API_KEY` |
58
58
  | MiniMax (China) | `MINIMAX_CN_API_KEY` |
59
59
  | Moonshot AI (Global and China) | `MOONSHOT_API_KEY` |
60
- | Qwen Token Plan and Individual | `QWEN_TOKEN_PLAN_API_KEY` |
61
- | Qwen Token Plan (China) and Individual (China) | `QWEN_TOKEN_PLAN_CN_API_KEY` |
60
+ | Qwen Token Plan Team | `QWEN_TOKEN_PLAN_TEAM_API_KEY` |
61
+ | Qwen Token Plan Team (China) | `QWEN_TOKEN_PLAN_TEAM_CN_API_KEY` |
62
+ | Qwen Token Plan Individual | `QWEN_TOKEN_PLAN_INDIVIDUAL_API_KEY` |
63
+ | Qwen Token Plan Individual (China) | `QWEN_TOKEN_PLAN_INDIVIDUAL_CN_API_KEY` |
62
64
  | Xiaomi MiMo | `XIAOMI_API_KEY` |
63
65
  | Xiaomi MiMo Token Plan (China) | `XIAOMI_TOKEN_PLAN_CN_API_KEY` |
64
66
  | Xiaomi MiMo Token Plan (Amsterdam) | `XIAOMI_TOKEN_PLAN_AMS_API_KEY` |
@@ -746,7 +746,7 @@ Response:
746
746
 
747
747
  ### get_last_assistant_text
748
748
 
749
- Get the text content of the last assistant message.
749
+ Get the text content of the last assistant message. Messages without text from an aborted or failed turn, or that only call tools, are skipped.
750
750
 
751
751
  ```json
752
752
  {"type": "get_last_assistant_text"}
package/docs/tui.md CHANGED
@@ -21,6 +21,8 @@ These APIs receive Pi’s active theme and keybindings where needed. Do not crea
21
21
 
22
22
  A component renders an array of terminal lines for an available width. It can optionally handle keyboard and mouse input, and it must invalidate cached output when its state or theme-dependent content changes.
23
23
 
24
+ Treat lines returned by `render()` as read-only, including `super.render()` in a subclass. Built-in components such as `Container`, `Box`, `Text`, and `Markdown` return the same cached array while nothing changed, so modifying it in place corrupts later frames. Copy first, for example `const lines = [...super.render(width)]`, and cache the result if it is expensive. Return a new array when your output changes: parents reuse an unchanged array without reading it again.
25
+
24
26
  Every rendered line must fit within the supplied width. Measure visible terminal columns rather than string length because ANSI escapes, wide characters, emoji, and combining characters change display width.
25
27
 
26
28
  Use `visibleWidth()`, `truncateToWidth()`, `sliceByColumn()`, and `wrapTextWithAnsi()` instead of implementing terminal-width handling yourself. Pi resets styling and hyperlinks after every line, so reapply styles on each rendered line.
@@ -169,14 +169,11 @@ async function walkGuestFiles(
169
169
  return walkDirectory(root, "");
170
170
  }
171
171
 
172
+ // Like the built-in find and grep: a pattern with '/' is relative to the search root, one without
173
+ // '/' matches file names at any depth.
172
174
  function matchesToolGlob(relativePath: string, pattern: string): boolean {
173
- const normalizedPattern = toPosix(pattern);
174
- if (normalizedPattern.includes("/")) {
175
- return (
176
- path.posix.matchesGlob(relativePath, normalizedPattern) ||
177
- path.posix.matchesGlob(relativePath, `**/${normalizedPattern}`)
178
- );
179
- }
175
+ const normalizedPattern = toPosix(pattern).replace(/^(?:\.\/)+/, "");
176
+ if (normalizedPattern.includes("/")) return path.posix.matchesGlob(relativePath, normalizedPattern);
180
177
  return path.posix.matchesGlob(path.posix.basename(relativePath), normalizedPattern);
181
178
  }
182
179
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxmo74/pi-coding-agent",
3
- "version": "1.5.2-max.15",
3
+ "version": "1.6.0-max.16",
4
4
  "description": "Unofficial pi fork by maxmo74. Adds a move action to the /resume picker, so a session recorded under another directory opens here without copying files, and refuses to open a session another pi process already holds, which silently forks its history (reported upstream as #11684 and declined). Builds are cut from upstream release tags. Not affiliated with pi.dev.",
5
5
  "type": "module",
6
6
  "piConfig": {
@@ -30,11 +30,11 @@
30
30
  ],
31
31
  "scripts": {},
32
32
  "dependencies": {
33
- "@earendil-works/pi-agent-core": "1.5.2",
34
- "@earendil-works/pi-ai": "1.5.2",
35
- "@earendil-works/pi-codemode": "1.5.2",
36
- "@earendil-works/pi-mcp": "1.5.2",
37
- "@earendil-works/pi-tui": "1.5.2",
33
+ "@earendil-works/pi-agent-core": "1.6.0",
34
+ "@earendil-works/pi-ai": "1.6.0",
35
+ "@earendil-works/pi-codemode": "1.6.0",
36
+ "@earendil-works/pi-mcp": "1.6.0",
37
+ "@earendil-works/pi-tui": "1.6.0",
38
38
  "@silvia-odwyer/photon-node": "0.3.4",
39
39
  "brace-expansion": "5.0.12",
40
40
  "chalk": "6.0.0",
@@ -50,7 +50,7 @@
50
50
  "quickjs-wasi": "3.6.2",
51
51
  "semver": "7.8.5",
52
52
  "typebox": "1.3.27",
53
- "undici": "8.12.3",
53
+ "undici": "8.12.4",
54
54
  "yaml": "2.9.0"
55
55
  },
56
56
  "overrides": {
@@ -87,8 +87,8 @@
87
87
  "access": "public"
88
88
  },
89
89
  "piFork": {
90
- "upstreamVersion": "1.5.2",
91
- "sourceCommit": "32f9625ef2488bb480f42a3a37af4e3a54aab163",
92
- "builtAt": "2026-11-11T22:49:18.854Z"
90
+ "upstreamVersion": "1.6.0",
91
+ "sourceCommit": "ee58a4b371756fec074b0d9d7443239e7fbdc415",
92
+ "builtAt": "2026-11-20T16:39:53.291Z"
93
93
  }
94
94
  }
@@ -1063,7 +1063,7 @@
1063
1063
  },
1064
1064
  "supportsMidConvoEffort": {
1065
1065
  "type": "boolean",
1066
- "description": "Whether thinking level changes are sent inside the conversation instead of changing the request's effort, so a change keeps the prompt cache. Used by the anthropic-messages and openai-responses APIs.",
1066
+ "description": "Whether thinking level changes are sent inside the conversation instead of changing the request's effort, so a change keeps the prompt cache. Used by the anthropic-messages, openai-responses, and openai-codex-responses APIs.",
1067
1067
  "default": false
1068
1068
  },
1069
1069
  "supportsMaxOutputTokens": {
@@ -1108,7 +1108,7 @@
1108
1108
  },
1109
1109
  "supportsMessageThreads": {
1110
1110
  "type": "boolean",
1111
- "description": "Whether the endpoint supports Anthropic message threads, which let a request with a session id send only the new messages and continue from the previous reply. Default: true for provider anthropic with a baseUrl on api.anthropic.com, false otherwise. Set true for gateways that forward the thread request field."
1111
+ "description": "Whether the endpoint supports Anthropic message threads, which let a request with a session id send only the new messages and continue from the previous reply. Default: true for a baseUrl on api.anthropic.com, false otherwise. Set true for gateways that forward the thread request field."
1112
1112
  },
1113
1113
  "allowedFallbackModels": {
1114
1114
  "type": "array",