@mindistryx/pi-arabic-runtime 0.0.0-stage → 1.0.0-beta.2

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 (451) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +26 -2
  3. package/THIRD-PARTY-NOTICES.md +17 -0
  4. package/arguments.mjs +20 -0
  5. package/extension/command.mjs +31 -0
  6. package/extension/extension.mjs +32 -0
  7. package/extension/mode.mjs +48 -0
  8. package/extension/reader.mjs +33 -0
  9. package/launcher.mjs +34 -0
  10. package/licenses/Apache-2.0.txt +201 -0
  11. package/licenses/Unicode-3.0.txt +39 -0
  12. package/licenses/_anthropic-ai_sdk-0.129.0-LICENSE +8 -0
  13. package/licenses/_aws-sdk_client-bedrock-runtime-3.1127.0-LICENSE +201 -0
  14. package/licenses/_aws-sdk_core-3.977.9-LICENSE +201 -0
  15. package/licenses/_aws-sdk_credential-provider-env-3.972.70-LICENSE +201 -0
  16. package/licenses/_aws-sdk_credential-provider-ini-3.973.15-LICENSE +201 -0
  17. package/licenses/_aws-sdk_credential-provider-node-3.972.82-LICENSE +201 -0
  18. package/licenses/_aws-sdk_credential-provider-process-3.972.70-LICENSE +201 -0
  19. package/licenses/_aws-sdk_credential-provider-sso-3.973.14-LICENSE +201 -0
  20. package/licenses/_aws-sdk_credential-provider-web-identity-3.972.76-LICENSE +201 -0
  21. package/licenses/_aws-sdk_eventstream-handler-node-3.972.34-LICENSE +201 -0
  22. package/licenses/_aws-sdk_middleware-eventstream-3.972.29-LICENSE +201 -0
  23. package/licenses/_aws-sdk_middleware-websocket-3.972.52-LICENSE +201 -0
  24. package/licenses/_aws-sdk_signature-v4-multi-region-3.996.46-LICENSE +201 -0
  25. package/licenses/_aws-sdk_token-providers-3.1116.0-LICENSE +201 -0
  26. package/licenses/_aws-sdk_token-providers-3.1127.0-LICENSE +201 -0
  27. package/licenses/_aws-sdk_types-3.974.5-LICENSE +201 -0
  28. package/licenses/_aws-sdk_xml-builder-3.972.40-LICENSE +201 -0
  29. package/licenses/_aws_lambda-invoke-store-0.3.0-LICENSE +175 -0
  30. package/licenses/_babel_runtime-7.29.10-LICENSE +22 -0
  31. package/licenses/_google_genai-3.6.1-LICENSE +202 -0
  32. package/licenses/_isaacs_nonrecursive-glob-match-1.1.0-LICENSE.md +55 -0
  33. package/licenses/_protobufjs_aspromise-1.1.2-LICENSE +26 -0
  34. package/licenses/_protobufjs_base64-1.1.2-LICENSE +26 -0
  35. package/licenses/_protobufjs_codegen-2.0.5-LICENSE +26 -0
  36. package/licenses/_protobufjs_eventemitter-1.1.1-LICENSE +26 -0
  37. package/licenses/_protobufjs_fetch-1.1.1-LICENSE +26 -0
  38. package/licenses/_protobufjs_float-1.0.2-LICENSE +26 -0
  39. package/licenses/_protobufjs_path-1.1.2-LICENSE +26 -0
  40. package/licenses/_protobufjs_pool-1.1.0-LICENSE +26 -0
  41. package/licenses/_protobufjs_utf8-1.1.1-LICENSE +26 -0
  42. package/licenses/_silvia-odwyer_photon-node-0.3.4-LICENSE.md +201 -0
  43. package/licenses/_smithy_core-3.33.3-LICENSE +201 -0
  44. package/licenses/_smithy_credential-provider-imds-4.5.2-LICENSE +201 -0
  45. package/licenses/_smithy_fetch-http-handler-5.8.0-LICENSE +201 -0
  46. package/licenses/_smithy_node-http-handler-4.12.1-LICENSE +201 -0
  47. package/licenses/_smithy_signature-v4-5.7.3-LICENSE +201 -0
  48. package/licenses/_smithy_types-4.18.0-LICENSE +201 -0
  49. package/licenses/_stablelib_base64-1.0.1-LICENSE +21 -0
  50. package/licenses/_types_node-22.19.19-LICENSE +21 -0
  51. package/licenses/_types_retry-0.12.0-LICENSE +21 -0
  52. package/licenses/agent-base-7.1.4-LICENSE +22 -0
  53. package/licenses/agent-base-9.0.0-LICENSE +22 -0
  54. package/licenses/balanced-match-4.0.4-LICENSE.md +23 -0
  55. package/licenses/base64-js-1.5.1-LICENSE +21 -0
  56. package/licenses/bidi-js-1.1.0-LICENSE.txt +22 -0
  57. package/licenses/bignumber.js-9.3.1-LICENCE.md +26 -0
  58. package/licenses/bowser-2.14.1-LICENSE +39 -0
  59. package/licenses/brace-expansion-5.0.12-LICENSE +23 -0
  60. package/licenses/buffer-equal-constant-time-1.0.1-LICENSE.txt +12 -0
  61. package/licenses/chalk-6.0.0-license +9 -0
  62. package/licenses/cross-spawn-7.1.2-LICENSE +21 -0
  63. package/licenses/data-uri-to-buffer-4.0.1-LICENSE.generated.txt +22 -0
  64. package/licenses/debug-4.4.3-LICENSE +20 -0
  65. package/licenses/dependency-index.json +994 -0
  66. package/licenses/diff-8.0.4-LICENSE +29 -0
  67. package/licenses/ecdsa-sig-formatter-1.0.11-LICENSE +201 -0
  68. package/licenses/extend-3.0.2-LICENSE +23 -0
  69. package/licenses/fast-sha256-1.3.0-LICENSE +24 -0
  70. package/licenses/fetch-blob-3.2.0-LICENSE +21 -0
  71. package/licenses/formdata-polyfill-4.0.10-LICENSE +21 -0
  72. package/licenses/gaxios-7.1.4-LICENSE +202 -0
  73. package/licenses/gcp-metadata-8.1.2-LICENSE +202 -0
  74. package/licenses/get-east-asian-width-1.6.0-license +9 -0
  75. package/licenses/google-auth-library-10.6.2-LICENSE +202 -0
  76. package/licenses/google-logging-utils-1.1.3-LICENSE +202 -0
  77. package/licenses/graceful-fs-4.2.11-LICENSE +15 -0
  78. package/licenses/highlight.js-10.7.3-LICENSE +29 -0
  79. package/licenses/hosted-git-info-9.0.3-LICENSE +13 -0
  80. package/licenses/http-proxy-agent-9.1.0-LICENSE +22 -0
  81. package/licenses/https-proxy-agent-7.0.6-LICENSE +22 -0
  82. package/licenses/https-proxy-agent-9.1.0-LICENSE +22 -0
  83. package/licenses/ignore-7.0.8-LICENSE-MIT +21 -0
  84. package/licenses/isexe-2.0.0-LICENSE +15 -0
  85. package/licenses/jiti-2.7.0-LICENSE +21 -0
  86. package/licenses/json-bigint-1.0.0-LICENSE +20 -0
  87. package/licenses/json-schema-to-ts-3.1.1-LICENSE +21 -0
  88. package/licenses/jwa-2.0.1-LICENSE +17 -0
  89. package/licenses/jws-4.0.1-LICENSE +17 -0
  90. package/licenses/long-5.3.2-LICENSE +202 -0
  91. package/licenses/lovely-mermaid-0.3.3-LICENSE +205 -0
  92. package/licenses/lru-cache-11.4.0-LICENSE.md +55 -0
  93. package/licenses/marked-18.0.11-LICENSE +44 -0
  94. package/licenses/marked-cjk-friendly-0.1.2-LICENSE +22 -0
  95. package/licenses/mcp/modelcontextprotocol-typescript-sdk.txt +21 -0
  96. package/licenses/minimatch-11.0.9-LICENSE.md +55 -0
  97. package/licenses/ms-2.1.3-license.md +21 -0
  98. package/licenses/node-domexception-1.0.0-LICENSE +21 -0
  99. package/licenses/node-fetch-3.3.2-LICENSE.md +22 -0
  100. package/licenses/openai-7.59.0-LICENSE +201 -0
  101. package/licenses/p-retry-4.6.2-license +9 -0
  102. package/licenses/partial-json-0.1.7-LICENSE +21 -0
  103. package/licenses/path-key-3.1.1-license +9 -0
  104. package/licenses/proper-lockfile-4.1.2-LICENSE +21 -0
  105. package/licenses/protobufjs-7.6.6-LICENSE +39 -0
  106. package/licenses/proxy-agent-negotiate-1.1.0-LICENSE.generated.txt +22 -0
  107. package/licenses/quickjs-wasi-3.6.2-LICENSE +21 -0
  108. package/licenses/require-from-string-2.0.2-license +21 -0
  109. package/licenses/retry-0.12.0-License +21 -0
  110. package/licenses/retry-0.13.1-License +21 -0
  111. package/licenses/safe-buffer-5.2.1-LICENSE +21 -0
  112. package/licenses/schema/typebox-LICENSE +23 -0
  113. package/licenses/semver-7.8.5-LICENSE +15 -0
  114. package/licenses/shebang-command-2.0.0-license +9 -0
  115. package/licenses/shebang-regex-3.0.0-license +9 -0
  116. package/licenses/signal-exit-3.0.7-LICENSE.txt +16 -0
  117. package/licenses/standardwebhooks-1.1.1-LICENSE.generated.txt +22 -0
  118. package/licenses/ts-algebra-2.0.0-LICENSE +21 -0
  119. package/licenses/tslib-2.8.1-LICENSE.txt +12 -0
  120. package/licenses/typebox-1.3.27-license +23 -0
  121. package/licenses/undici-8.12.4-LICENSE +21 -0
  122. package/licenses/undici-types-6.21.0-LICENSE +21 -0
  123. package/licenses/upstream-pi.MIT.txt +21 -0
  124. package/licenses/web-streams-polyfill-3.3.3-LICENSE +22 -0
  125. package/licenses/which-2.0.2-LICENSE +15 -0
  126. package/licenses/ws-8.23.1-LICENSE +20 -0
  127. package/licenses/yaml-2.9.0-LICENSE +13 -0
  128. package/package.json +46 -4
  129. package/pi/CHANGELOG.md +6869 -0
  130. package/pi/README.md +95 -0
  131. package/pi/dist/bundle/chunks/anthropic-messages-TZF4LOZ3.js +3 -0
  132. package/pi/dist/bundle/chunks/anthropic.js +75 -0
  133. package/pi/dist/bundle/chunks/azure-openai-responses-OPCDWPFL.js +2 -0
  134. package/pi/dist/bundle/chunks/bedrock-converse-stream.js +89 -0
  135. package/pi/dist/bundle/chunks/chunk-2BKJ4UF2.js +6 -0
  136. package/pi/dist/bundle/chunks/chunk-3TDGKLEK.js +4 -0
  137. package/pi/dist/bundle/chunks/chunk-4L3MQGA6.js +2 -0
  138. package/pi/dist/bundle/chunks/chunk-4MIF4MCH.js +2 -0
  139. package/pi/dist/bundle/chunks/chunk-4OXX5KPU.js +1237 -0
  140. package/pi/dist/bundle/chunks/chunk-5AGIVGSV.js +6 -0
  141. package/pi/dist/bundle/chunks/chunk-6F2YCHJI.js +55 -0
  142. package/pi/dist/bundle/chunks/chunk-6MVVCNIJ.js +2 -0
  143. package/pi/dist/bundle/chunks/chunk-6QGV3IWD.js +6 -0
  144. package/pi/dist/bundle/chunks/chunk-7CBJINYJ.js +20 -0
  145. package/pi/dist/bundle/chunks/chunk-7DDKXS2Q.js +2 -0
  146. package/pi/dist/bundle/chunks/chunk-7ZC4UXSL.js +2 -0
  147. package/pi/dist/bundle/chunks/chunk-BSRKXBKS.js +2 -0
  148. package/pi/dist/bundle/chunks/chunk-BXIXP3HJ.js +16 -0
  149. package/pi/dist/bundle/chunks/chunk-E3JXGAHC.js +2 -0
  150. package/pi/dist/bundle/chunks/chunk-EANOEWGP.js +2 -0
  151. package/pi/dist/bundle/chunks/chunk-FFMDRXC4.js +10 -0
  152. package/pi/dist/bundle/chunks/chunk-H5S7TE7A.js +20 -0
  153. package/pi/dist/bundle/chunks/chunk-IEBK4HQA.js +2 -0
  154. package/pi/dist/bundle/chunks/chunk-IKKTFUAW.js +82 -0
  155. package/pi/dist/bundle/chunks/chunk-INODY4DR.js +2 -0
  156. package/pi/dist/bundle/chunks/chunk-JCDBIE47.js +131 -0
  157. package/pi/dist/bundle/chunks/chunk-JXWJOIH4.js +2 -0
  158. package/pi/dist/bundle/chunks/chunk-KBNQNV33.js +8 -0
  159. package/pi/dist/bundle/chunks/chunk-L2ZPNLYD.js +2 -0
  160. package/pi/dist/bundle/chunks/chunk-L6EYYEJG.js +2 -0
  161. package/pi/dist/bundle/chunks/chunk-LPXNMA2W.js +2 -0
  162. package/pi/dist/bundle/chunks/chunk-LVVZS2NO.js +12 -0
  163. package/pi/dist/bundle/chunks/chunk-LWG2CUTI.js +31 -0
  164. package/pi/dist/bundle/chunks/chunk-OVXT2WQH.js +2 -0
  165. package/pi/dist/bundle/chunks/chunk-P7FPUEYA.js +2 -0
  166. package/pi/dist/bundle/chunks/chunk-PGXDEOVV.js +2 -0
  167. package/pi/dist/bundle/chunks/chunk-PHM5C7IG.js +9 -0
  168. package/pi/dist/bundle/chunks/chunk-PJACZCIR.js +2 -0
  169. package/pi/dist/bundle/chunks/chunk-PRRNXB7S.js +2 -0
  170. package/pi/dist/bundle/chunks/chunk-QGY2QT6O.js +30 -0
  171. package/pi/dist/bundle/chunks/chunk-QLVTCW2U.js +2 -0
  172. package/pi/dist/bundle/chunks/chunk-RDZVAGPR.js +2 -0
  173. package/pi/dist/bundle/chunks/chunk-SSLDNFEJ.js +2 -0
  174. package/pi/dist/bundle/chunks/chunk-TMTOQ7H7.js +2 -0
  175. package/pi/dist/bundle/chunks/chunk-UTB4DTYQ.js +2 -0
  176. package/pi/dist/bundle/chunks/chunk-WHLWHMLX.js +14 -0
  177. package/pi/dist/bundle/chunks/chunk-YMIUSQL3.js +44 -0
  178. package/pi/dist/bundle/chunks/chunk-ZFO73KYQ.js +2 -0
  179. package/pi/dist/bundle/chunks/chunk-ZG74NES2.js +2 -0
  180. package/pi/dist/bundle/chunks/cli-66VDVHXA.js +53 -0
  181. package/pi/dist/bundle/chunks/cloudflare-workers-ai-system-one-BCB6I5BD.js +2 -0
  182. package/pi/dist/bundle/chunks/codemode-worker.js +480 -0
  183. package/pi/dist/bundle/chunks/easter-egg-3d-2XVDERXF.js +2 -0
  184. package/pi/dist/bundle/chunks/execute-CLOD3DVG.js +507 -0
  185. package/pi/dist/bundle/chunks/github-copilot.js +2 -0
  186. package/pi/dist/bundle/chunks/google-generative-ai-YXFPI4IA.js +2 -0
  187. package/pi/dist/bundle/chunks/google-vertex-SI54R6EC.js +2 -0
  188. package/pi/dist/bundle/chunks/https-proxy-agent-LVOO5TPL.js +13 -0
  189. package/pi/dist/bundle/chunks/image-resize-worker.js +2 -0
  190. package/pi/dist/bundle/chunks/jiti-loader-GL4HJFAD.js +21 -0
  191. package/pi/dist/bundle/chunks/jiti-static-loader-2RCDI6B4.js +2 -0
  192. package/pi/dist/bundle/chunks/kimi-coding.js +2 -0
  193. package/pi/dist/bundle/chunks/lib-4AVRLBHM.js +9 -0
  194. package/pi/dist/bundle/chunks/llama-cpp-classify-PRGRPOMM.js +22 -0
  195. package/pi/dist/bundle/chunks/meta.js +2 -0
  196. package/pi/dist/bundle/chunks/mistral-conversations-D5VW6GSS.js +4 -0
  197. package/pi/dist/bundle/chunks/multipart-parser-FMGQ7342.js +3 -0
  198. package/pi/dist/bundle/chunks/node-AUOGOBCN.js +2 -0
  199. package/pi/dist/bundle/chunks/node-KCMANYC2.js +16 -0
  200. package/pi/dist/bundle/chunks/openai-chatgpt.js +75 -0
  201. package/pi/dist/bundle/chunks/openai-codex-responses-NM5HSETG.js +2 -0
  202. package/pi/dist/bundle/chunks/openai-codex.js +75 -0
  203. package/pi/dist/bundle/chunks/openai-completions-QZF567FN.js +7 -0
  204. package/pi/dist/bundle/chunks/openai-decisions-YJYDQHYN.js +5 -0
  205. package/pi/dist/bundle/chunks/openai-responses-AVMLOXIQ.js +4 -0
  206. package/pi/dist/bundle/chunks/openrouter-chat-images-3V4TR7TT.js +2 -0
  207. package/pi/dist/bundle/chunks/openrouter-images-UBTJFBR6.js +4 -0
  208. package/pi/dist/bundle/chunks/openrouter.js +75 -0
  209. package/pi/dist/bundle/chunks/pi-decision-XC3CEYXE.js +2 -0
  210. package/pi/dist/bundle/chunks/pi-image-GRYH565R.js +2 -0
  211. package/pi/dist/bundle/chunks/pi-messages-5Z2U3PEK.js +2 -0
  212. package/pi/dist/bundle/chunks/radius.js +75 -0
  213. package/pi/dist/bundle/chunks/runtime-PSL6AEOU.js +2 -0
  214. package/pi/dist/bundle/chunks/src-QKGKDFSU.js +4 -0
  215. package/pi/dist/bundle/chunks/typesafe-system-one-3JC45JJT.js +2 -0
  216. package/pi/dist/bundle/chunks/virtual-modules-AG72WCIK.js +2 -0
  217. package/pi/dist/bundle/chunks/xai.js +2 -0
  218. package/pi/dist/bundle/cli-runtime.js +3 -0
  219. package/pi/dist/bundle/cli.js +5 -0
  220. package/pi/dist/bundle/index.js +2 -0
  221. package/pi/dist/bundle/native/darwin/prebuilds/darwin-arm64/darwin-platform.node +0 -0
  222. package/pi/dist/bundle/native/darwin/prebuilds/darwin-x64/darwin-platform.node +0 -0
  223. package/pi/dist/bundle/native/linux/prebuilds/linux-arm64/linux-platform-x11.node +0 -0
  224. package/pi/dist/bundle/native/linux/prebuilds/linux-x64/linux-platform-x11.node +0 -0
  225. package/pi/dist/bundle/native/win32/prebuilds/win32-arm64/win32-platform.node +0 -0
  226. package/pi/dist/bundle/native/win32/prebuilds/win32-x64/win32-platform.node +0 -0
  227. package/pi/dist/bundle/rpc-entry.js +3 -0
  228. package/pi/dist/core/export-html/ansi-to-html.d.ts +27 -0
  229. package/pi/dist/core/export-html/ansi-to-html.d.ts.map +1 -0
  230. package/pi/dist/core/export-html/ansi-to-html.js +286 -0
  231. package/pi/dist/core/export-html/ansi-to-html.js.map +1 -0
  232. package/pi/dist/core/export-html/index.d.ts +37 -0
  233. package/pi/dist/core/export-html/index.d.ts.map +1 -0
  234. package/pi/dist/core/export-html/index.js +230 -0
  235. package/pi/dist/core/export-html/index.js.map +1 -0
  236. package/pi/dist/core/export-html/template.css +1085 -0
  237. package/pi/dist/core/export-html/template.html +56 -0
  238. package/pi/dist/core/export-html/template.js +2044 -0
  239. package/pi/dist/core/export-html/tool-renderer.d.ts +34 -0
  240. package/pi/dist/core/export-html/tool-renderer.d.ts.map +1 -0
  241. package/pi/dist/core/export-html/tool-renderer.js +112 -0
  242. package/pi/dist/core/export-html/tool-renderer.js.map +1 -0
  243. package/pi/dist/core/export-html/vendor/highlight.min.js +1213 -0
  244. package/pi/dist/core/export-html/vendor/marked-cjk-friendly.min.js +6 -0
  245. package/pi/dist/core/export-html/vendor/marked.min.js +79 -0
  246. package/pi/dist/modes/interactive/assets/clankolas.png +0 -0
  247. package/pi/dist/modes/interactive/theme/dark.json +78 -0
  248. package/pi/dist/modes/interactive/theme/light.json +78 -0
  249. package/pi/dist/modes/interactive/theme/system-theme.d.ts +55 -0
  250. package/pi/dist/modes/interactive/theme/system-theme.d.ts.map +1 -0
  251. package/pi/dist/modes/interactive/theme/system-theme.js +546 -0
  252. package/pi/dist/modes/interactive/theme/system-theme.js.map +1 -0
  253. package/pi/dist/modes/interactive/theme/theme-controller.d.ts +81 -0
  254. package/pi/dist/modes/interactive/theme/theme-controller.d.ts.map +1 -0
  255. package/pi/dist/modes/interactive/theme/theme-controller.js +210 -0
  256. package/pi/dist/modes/interactive/theme/theme-controller.js.map +1 -0
  257. package/pi/dist/modes/interactive/theme/theme-schema.d.ts +28 -0
  258. package/pi/dist/modes/interactive/theme/theme-schema.d.ts.map +1 -0
  259. package/pi/dist/modes/interactive/theme/theme-schema.js +105 -0
  260. package/pi/dist/modes/interactive/theme/theme-schema.js.map +1 -0
  261. package/pi/dist/modes/interactive/theme/theme-tokens.d.ts +257 -0
  262. package/pi/dist/modes/interactive/theme/theme-tokens.d.ts.map +1 -0
  263. package/pi/dist/modes/interactive/theme/theme-tokens.js +94 -0
  264. package/pi/dist/modes/interactive/theme/theme-tokens.js.map +1 -0
  265. package/pi/dist/modes/interactive/theme/theme.d.ts +165 -0
  266. package/pi/dist/modes/interactive/theme/theme.d.ts.map +1 -0
  267. package/pi/dist/modes/interactive/theme/theme.js +918 -0
  268. package/pi/dist/modes/interactive/theme/theme.js.map +1 -0
  269. package/pi/docs/cli-integration.md +106 -0
  270. package/pi/docs/cli.md +358 -0
  271. package/pi/docs/codemode.md +241 -0
  272. package/pi/docs/compaction.md +463 -0
  273. package/pi/docs/configuration.md +47 -0
  274. package/pi/docs/containerization.md +183 -0
  275. package/pi/docs/custom-provider.md +227 -0
  276. package/pi/docs/docs.json +224 -0
  277. package/pi/docs/environment-variables.md +104 -0
  278. package/pi/docs/extensions.md +3394 -0
  279. package/pi/docs/how-pi-works.md +49 -0
  280. package/pi/docs/images/doom-extension.png +0 -0
  281. package/pi/docs/images/exy.png +0 -0
  282. package/pi/docs/images/interactive-mode.png +0 -0
  283. package/pi/docs/images/tree-view.png +0 -0
  284. package/pi/docs/index.md +39 -0
  285. package/pi/docs/json.md +226 -0
  286. package/pi/docs/keybindings.md +195 -0
  287. package/pi/docs/llama-cpp.md +138 -0
  288. package/pi/docs/mcp.md +301 -0
  289. package/pi/docs/message-types.md +280 -0
  290. package/pi/docs/models-configuration.md +213 -0
  291. package/pi/docs/models.md +248 -0
  292. package/pi/docs/nvidia-rtx-llama-cpp.md +96 -0
  293. package/pi/docs/packages.md +153 -0
  294. package/pi/docs/prompt-templates.md +59 -0
  295. package/pi/docs/providers.md +251 -0
  296. package/pi/docs/quickstart.md +140 -0
  297. package/pi/docs/rpc-commands.md +860 -0
  298. package/pi/docs/rpc-extension-ui.md +200 -0
  299. package/pi/docs/rpc.md +195 -0
  300. package/pi/docs/sdk.md +147 -0
  301. package/pi/docs/security.md +99 -0
  302. package/pi/docs/session-format.md +293 -0
  303. package/pi/docs/sessions.md +82 -0
  304. package/pi/docs/settings.md +175 -0
  305. package/pi/docs/shell-aliases.md +93 -0
  306. package/pi/docs/skills.md +93 -0
  307. package/pi/docs/slash-commands.md +61 -0
  308. package/pi/docs/subscriptions.md +96 -0
  309. package/pi/docs/terminal-setup.md +298 -0
  310. package/pi/docs/termux.md +117 -0
  311. package/pi/docs/themes.md +138 -0
  312. package/pi/docs/tmux.md +61 -0
  313. package/pi/docs/tui.md +199 -0
  314. package/pi/docs/usage.md +94 -0
  315. package/pi/docs/virtual-models.md +114 -0
  316. package/pi/docs/windows.md +109 -0
  317. package/pi/examples/README.md +36 -0
  318. package/pi/examples/extensions/README.md +215 -0
  319. package/pi/examples/extensions/auto-commit-on-exit.ts +49 -0
  320. package/pi/examples/extensions/bash-spawn-hook.ts +30 -0
  321. package/pi/examples/extensions/bookmark.ts +50 -0
  322. package/pi/examples/extensions/border-status-editor.ts +150 -0
  323. package/pi/examples/extensions/built-in-tool-renderer.ts +225 -0
  324. package/pi/examples/extensions/claude-rules.ts +86 -0
  325. package/pi/examples/extensions/commands.ts +72 -0
  326. package/pi/examples/extensions/confirm-destructive.ts +59 -0
  327. package/pi/examples/extensions/custom-compaction.ts +117 -0
  328. package/pi/examples/extensions/custom-footer.ts +64 -0
  329. package/pi/examples/extensions/custom-header.ts +73 -0
  330. package/pi/examples/extensions/custom-provider-anthropic/index.ts +613 -0
  331. package/pi/examples/extensions/custom-provider-anthropic/package-lock.json +24 -0
  332. package/pi/examples/extensions/custom-provider-anthropic/package.json +19 -0
  333. package/pi/examples/extensions/custom-provider-gitlab-duo/index.ts +405 -0
  334. package/pi/examples/extensions/custom-provider-gitlab-duo/package.json +16 -0
  335. package/pi/examples/extensions/custom-provider-gitlab-duo/test.ts +82 -0
  336. package/pi/examples/extensions/debug-provider.ts +90 -0
  337. package/pi/examples/extensions/dirty-repo-guard.ts +56 -0
  338. package/pi/examples/extensions/doom-overlay/README.md +46 -0
  339. package/pi/examples/extensions/doom-overlay/doom/build/doom.js +21 -0
  340. package/pi/examples/extensions/doom-overlay/doom/build/doom.wasm +0 -0
  341. package/pi/examples/extensions/doom-overlay/doom/build.sh +152 -0
  342. package/pi/examples/extensions/doom-overlay/doom/doomgeneric_pi.c +72 -0
  343. package/pi/examples/extensions/doom-overlay/doom-component.ts +132 -0
  344. package/pi/examples/extensions/doom-overlay/doom-engine.ts +173 -0
  345. package/pi/examples/extensions/doom-overlay/doom-keys.ts +104 -0
  346. package/pi/examples/extensions/doom-overlay/index.ts +74 -0
  347. package/pi/examples/extensions/doom-overlay/wad-finder.ts +55 -0
  348. package/pi/examples/extensions/dynamic-resources/SKILL.md +8 -0
  349. package/pi/examples/extensions/dynamic-resources/dynamic.json +81 -0
  350. package/pi/examples/extensions/dynamic-resources/dynamic.md +5 -0
  351. package/pi/examples/extensions/dynamic-resources/index.ts +15 -0
  352. package/pi/examples/extensions/dynamic-tools.ts +74 -0
  353. package/pi/examples/extensions/entry-renderer.ts +41 -0
  354. package/pi/examples/extensions/event-bus.ts +43 -0
  355. package/pi/examples/extensions/file-trigger.ts +41 -0
  356. package/pi/examples/extensions/git-checkpoint.ts +53 -0
  357. package/pi/examples/extensions/git-merge-and-resolve.ts +115 -0
  358. package/pi/examples/extensions/github-issue-autocomplete.ts +185 -0
  359. package/pi/examples/extensions/gondolin/index.ts +528 -0
  360. package/pi/examples/extensions/gondolin/package-lock.json +175 -0
  361. package/pi/examples/extensions/gondolin/package.json +19 -0
  362. package/pi/examples/extensions/handoff.ts +190 -0
  363. package/pi/examples/extensions/hello.ts +26 -0
  364. package/pi/examples/extensions/hidden-thinking-label.ts +53 -0
  365. package/pi/examples/extensions/inline-bash.ts +94 -0
  366. package/pi/examples/extensions/input-transform-streaming.ts +39 -0
  367. package/pi/examples/extensions/input-transform.ts +43 -0
  368. package/pi/examples/extensions/interactive-shell.ts +196 -0
  369. package/pi/examples/extensions/jev-router.ts +113 -0
  370. package/pi/examples/extensions/mac-system-theme.ts +47 -0
  371. package/pi/examples/extensions/message-renderer.ts +59 -0
  372. package/pi/examples/extensions/minimal-mode.ts +353 -0
  373. package/pi/examples/extensions/modal-editor.ts +85 -0
  374. package/pi/examples/extensions/model-status.ts +31 -0
  375. package/pi/examples/extensions/notify.ts +57 -0
  376. package/pi/examples/extensions/overlay-qa-tests.ts +1456 -0
  377. package/pi/examples/extensions/overlay-test.ts +165 -0
  378. package/pi/examples/extensions/permission-gate.ts +34 -0
  379. package/pi/examples/extensions/pirate.ts +47 -0
  380. package/pi/examples/extensions/plan-mode/README.md +66 -0
  381. package/pi/examples/extensions/plan-mode/index.ts +404 -0
  382. package/pi/examples/extensions/plan-mode/utils.ts +194 -0
  383. package/pi/examples/extensions/preset.ts +438 -0
  384. package/pi/examples/extensions/project-trust.ts +64 -0
  385. package/pi/examples/extensions/prompt-customizer.ts +49 -0
  386. package/pi/examples/extensions/protected-paths.ts +30 -0
  387. package/pi/examples/extensions/provider-payload.ts +18 -0
  388. package/pi/examples/extensions/qna.ts +118 -0
  389. package/pi/examples/extensions/question.ts +286 -0
  390. package/pi/examples/extensions/questionnaire.ts +448 -0
  391. package/pi/examples/extensions/rainbow-editor.ts +88 -0
  392. package/pi/examples/extensions/reload-runtime.ts +49 -0
  393. package/pi/examples/extensions/rpc-demo.ts +118 -0
  394. package/pi/examples/extensions/send-user-message.ts +97 -0
  395. package/pi/examples/extensions/session-name.ts +27 -0
  396. package/pi/examples/extensions/shutdown-command.ts +63 -0
  397. package/pi/examples/extensions/snake.ts +343 -0
  398. package/pi/examples/extensions/space-invaders.ts +560 -0
  399. package/pi/examples/extensions/ssh.ts +220 -0
  400. package/pi/examples/extensions/status-line.ts +32 -0
  401. package/pi/examples/extensions/structured-output.ts +65 -0
  402. package/pi/examples/extensions/subagent/README.md +180 -0
  403. package/pi/examples/extensions/subagent/agents/planner.md +37 -0
  404. package/pi/examples/extensions/subagent/agents/reviewer.md +35 -0
  405. package/pi/examples/extensions/subagent/agents/scout.md +50 -0
  406. package/pi/examples/extensions/subagent/agents/worker.md +24 -0
  407. package/pi/examples/extensions/subagent/agents.ts +157 -0
  408. package/pi/examples/extensions/subagent/index.ts +1258 -0
  409. package/pi/examples/extensions/subagent/prompts/implement-and-review.md +10 -0
  410. package/pi/examples/extensions/subagent/prompts/implement.md +10 -0
  411. package/pi/examples/extensions/subagent/prompts/scout-and-plan.md +9 -0
  412. package/pi/examples/extensions/summarize.ts +199 -0
  413. package/pi/examples/extensions/system-prompt-header.ts +17 -0
  414. package/pi/examples/extensions/tic-tac-toe.ts +1008 -0
  415. package/pi/examples/extensions/timed-confirm.ts +70 -0
  416. package/pi/examples/extensions/titlebar-spinner.ts +58 -0
  417. package/pi/examples/extensions/todo.ts +304 -0
  418. package/pi/examples/extensions/tool-override.ts +144 -0
  419. package/pi/examples/extensions/tools.ts +148 -0
  420. package/pi/examples/extensions/trigger-compact.ts +50 -0
  421. package/pi/examples/extensions/truncated-tool.ts +195 -0
  422. package/pi/examples/extensions/widget-placement.ts +9 -0
  423. package/pi/examples/extensions/with-deps/index.ts +32 -0
  424. package/pi/examples/extensions/with-deps/package-lock.json +31 -0
  425. package/pi/examples/extensions/with-deps/package.json +22 -0
  426. package/pi/examples/extensions/working-indicator.ts +123 -0
  427. package/pi/examples/extensions/working-message-test.ts +25 -0
  428. package/pi/examples/rpc-client.ts +35 -0
  429. package/pi/examples/rpc-extension-ui.ts +662 -0
  430. package/pi/examples/sdk/01-minimal.ts +26 -0
  431. package/pi/examples/sdk/02-custom-model.ts +49 -0
  432. package/pi/examples/sdk/03-custom-prompt.ts +75 -0
  433. package/pi/examples/sdk/04-skills.ts +55 -0
  434. package/pi/examples/sdk/05-tools.ts +48 -0
  435. package/pi/examples/sdk/06-extensions.ts +99 -0
  436. package/pi/examples/sdk/07-context-files.ts +47 -0
  437. package/pi/examples/sdk/08-prompt-templates.ts +51 -0
  438. package/pi/examples/sdk/09-api-keys-and-oauth.ts +34 -0
  439. package/pi/examples/sdk/10-settings.ts +53 -0
  440. package/pi/examples/sdk/11-sessions.ts +52 -0
  441. package/pi/examples/sdk/12-full-control.ts +74 -0
  442. package/pi/examples/sdk/13-session-runtime.ts +67 -0
  443. package/pi/examples/sdk/14-codemode-mcp.ts +61 -0
  444. package/pi/examples/sdk/README.md +141 -0
  445. package/pi/examples/tsconfig.json +208 -0
  446. package/pi/package.json +5 -0
  447. package/pi/schemas/keybindings.schema.json +393 -0
  448. package/pi/schemas/mcp.schema.json +306 -0
  449. package/pi/schemas/models.schema.json +1253 -0
  450. package/pi/schemas/settings.schema.json +820 -0
  451. package/pi/schemas/theme.schema.json +365 -0
@@ -0,0 +1,820 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://pi.dev/schemas/settings.schema.json",
4
+ "$comment": "This file is generated from TypeScript source. Do not edit it manually; run npm run generate:schemas.",
5
+ "type": "object",
6
+ "properties": {
7
+ "$schema": {
8
+ "type": "string",
9
+ "description": "JSON Schema reference."
10
+ },
11
+ "lastChangelogVersion": {
12
+ "type": "string"
13
+ },
14
+ "extensionChangelogVersions": {
15
+ "type": "object",
16
+ "patternProperties": {
17
+ "^.*$": {
18
+ "type": "string"
19
+ }
20
+ },
21
+ "description": "Last seen changelog version per extension package."
22
+ },
23
+ "defaultProvider": {
24
+ "type": "string"
25
+ },
26
+ "defaultModel": {
27
+ "type": "string"
28
+ },
29
+ "defaultThinkingLevel": {
30
+ "$ref": "#/$defs/ModelThinkingLevel"
31
+ },
32
+ "modelThinkingLevels": {
33
+ "type": "object",
34
+ "patternProperties": {
35
+ "^.*$": {
36
+ "$ref": "#/$defs/ModelThinkingLevel"
37
+ }
38
+ },
39
+ "description": "Per-model default thinking level overrides keyed by \"provider/modelId\"."
40
+ },
41
+ "transport": {
42
+ "anyOf": [
43
+ {
44
+ "type": "string",
45
+ "const": "auto"
46
+ },
47
+ {
48
+ "type": "string",
49
+ "const": "sse"
50
+ },
51
+ {
52
+ "type": "string",
53
+ "const": "websocket"
54
+ },
55
+ {
56
+ "type": "string",
57
+ "const": "websocket-cached"
58
+ }
59
+ ],
60
+ "default": "auto"
61
+ },
62
+ "sessionShareDestination": {
63
+ "anyOf": [
64
+ {
65
+ "type": "string",
66
+ "const": "auto"
67
+ },
68
+ {
69
+ "type": "string",
70
+ "const": "gist"
71
+ },
72
+ {
73
+ "type": "string",
74
+ "const": "radius"
75
+ }
76
+ ],
77
+ "description": "Destination used by /share. \"auto\" uses Radius when authenticated and otherwise creates a GitHub gist.",
78
+ "default": "auto"
79
+ },
80
+ "steeringMode": {
81
+ "anyOf": [
82
+ {
83
+ "type": "string",
84
+ "const": "all"
85
+ },
86
+ {
87
+ "type": "string",
88
+ "const": "one-at-a-time"
89
+ }
90
+ ],
91
+ "default": "one-at-a-time"
92
+ },
93
+ "followUpMode": {
94
+ "anyOf": [
95
+ {
96
+ "type": "string",
97
+ "const": "all"
98
+ },
99
+ {
100
+ "type": "string",
101
+ "const": "one-at-a-time"
102
+ }
103
+ ],
104
+ "default": "one-at-a-time"
105
+ },
106
+ "theme": {
107
+ "type": "string"
108
+ },
109
+ "compaction": {
110
+ "type": "object",
111
+ "properties": {
112
+ "enabled": {
113
+ "type": "boolean",
114
+ "default": true
115
+ },
116
+ "reserveTokens": {
117
+ "type": "integer",
118
+ "minimum": 0,
119
+ "maximum": 9007199254740991,
120
+ "default": 16384
121
+ },
122
+ "keepRecentTokens": {
123
+ "type": "integer",
124
+ "minimum": 0,
125
+ "maximum": 9007199254740991,
126
+ "default": 20000
127
+ },
128
+ "modelOverrides": {
129
+ "type": "object",
130
+ "patternProperties": {
131
+ "^.*$": {
132
+ "type": "object",
133
+ "properties": {
134
+ "reserveTokens": {
135
+ "type": "integer",
136
+ "minimum": 0,
137
+ "maximum": 9007199254740991
138
+ },
139
+ "keepRecentTokens": {
140
+ "type": "integer",
141
+ "minimum": 0,
142
+ "maximum": 9007199254740991
143
+ }
144
+ }
145
+ }
146
+ },
147
+ "description": "Per-model overrides keyed by exact \"provider/modelId\" strings."
148
+ }
149
+ }
150
+ },
151
+ "branchSummary": {
152
+ "type": "object",
153
+ "properties": {
154
+ "reserveTokens": {
155
+ "type": "number",
156
+ "description": "Tokens reserved for the prompt and LLM response.",
157
+ "default": 16384
158
+ },
159
+ "skipPrompt": {
160
+ "type": "boolean",
161
+ "description": "When true, skips the \"Summarize branch?\" prompt and defaults to no summary.",
162
+ "default": false
163
+ }
164
+ }
165
+ },
166
+ "retry": {
167
+ "type": "object",
168
+ "properties": {
169
+ "enabled": {
170
+ "type": "boolean",
171
+ "default": true
172
+ },
173
+ "maxRetries": {
174
+ "type": "number",
175
+ "default": 3
176
+ },
177
+ "baseDelayMs": {
178
+ "type": "number",
179
+ "description": "Exponential backoff base delay in milliseconds: 2s, 4s, 8s.",
180
+ "default": 2000
181
+ },
182
+ "maxAgentDelayMs": {
183
+ "type": "number",
184
+ "default": 60000
185
+ },
186
+ "provider": {
187
+ "type": "object",
188
+ "properties": {
189
+ "timeoutMs": {
190
+ "type": "number",
191
+ "description": "SDK or provider request timeout in milliseconds."
192
+ },
193
+ "maxRetries": {
194
+ "type": "number",
195
+ "description": "SDK or provider retry attempts."
196
+ },
197
+ "maxRetryDelayMs": {
198
+ "type": "number",
199
+ "description": "Maximum server-requested delay before failing.",
200
+ "default": 60000
201
+ }
202
+ }
203
+ },
204
+ "maxDelayMs": {
205
+ "type": "number",
206
+ "description": "Legacy retry delay setting. Use provider.maxRetryDelayMs instead.",
207
+ "deprecated": true
208
+ }
209
+ }
210
+ },
211
+ "hideThinkingBlock": {
212
+ "type": "boolean",
213
+ "default": false
214
+ },
215
+ "externalEditor": {
216
+ "type": "string",
217
+ "description": "Command for Ctrl+G external editor; takes precedence over VISUAL and EDITOR."
218
+ },
219
+ "shellPath": {
220
+ "type": "string",
221
+ "description": "Custom shell path, for example for Cygwin on Windows, with support for leading ~ expansion."
222
+ },
223
+ "quietStartup": {
224
+ "anyOf": [
225
+ {
226
+ "type": "boolean"
227
+ },
228
+ {
229
+ "type": "string",
230
+ "const": "header"
231
+ }
232
+ ],
233
+ "description": "When true, hide all startup output. When \"header\", keep only the startup header.",
234
+ "default": false
235
+ },
236
+ "defaultProjectTrust": {
237
+ "anyOf": [
238
+ {
239
+ "type": "string",
240
+ "const": "ask"
241
+ },
242
+ {
243
+ "type": "string",
244
+ "const": "always"
245
+ },
246
+ {
247
+ "type": "string",
248
+ "const": "never"
249
+ }
250
+ ],
251
+ "description": "Global setting only.",
252
+ "default": "ask"
253
+ },
254
+ "shellCommandPrefix": {
255
+ "type": "string",
256
+ "description": "Prefix prepended to every bash command, for example to enable shell aliases."
257
+ },
258
+ "npmCommand": {
259
+ "type": "array",
260
+ "items": {
261
+ "type": "string"
262
+ },
263
+ "description": "Command used for npm package lookup and installation, in argv form such as [\"mise\", \"exec\", \"node@20\", \"--\", \"npm\"]."
264
+ },
265
+ "selfUpdateCommand": {
266
+ "type": "array",
267
+ "items": {
268
+ "type": "string"
269
+ },
270
+ "minItems": 1,
271
+ "description": "Command `pi update` runs to update Pi itself, in argv form such as [\"mise\", \"use\", \"-g\", \"npm:{packageName}@{version}\"]. Placeholders: {packageName}, {version}, {installSpec}. PI_SELF_UPDATE_COMMAND takes precedence. Global setting only."
272
+ },
273
+ "collapseChangelog": {
274
+ "type": "boolean",
275
+ "description": "Show the condensed changelog after update; use /changelog for the full changelog.",
276
+ "default": false
277
+ },
278
+ "enableAnalytics": {
279
+ "type": "boolean",
280
+ "description": "Opt in to analytics data sharing.",
281
+ "default": false
282
+ },
283
+ "trackingId": {
284
+ "type": "string",
285
+ "description": "Analytics tracking identifier, generated when analytics is enabled."
286
+ },
287
+ "packages": {
288
+ "type": "array",
289
+ "items": {
290
+ "anyOf": [
291
+ {
292
+ "type": "string",
293
+ "description": "Load all resources from the package."
294
+ },
295
+ {
296
+ "type": "object",
297
+ "required": [
298
+ "source"
299
+ ],
300
+ "properties": {
301
+ "source": {
302
+ "type": "string"
303
+ },
304
+ "autoload": {
305
+ "type": "boolean",
306
+ "description": "When false, start empty and only apply explicit resource patterns."
307
+ },
308
+ "extensions": {
309
+ "type": "array",
310
+ "items": {
311
+ "type": "string"
312
+ }
313
+ },
314
+ "skills": {
315
+ "type": "array",
316
+ "items": {
317
+ "type": "string"
318
+ }
319
+ },
320
+ "prompts": {
321
+ "type": "array",
322
+ "items": {
323
+ "type": "string"
324
+ }
325
+ },
326
+ "themes": {
327
+ "type": "array",
328
+ "items": {
329
+ "type": "string"
330
+ }
331
+ }
332
+ }
333
+ }
334
+ ],
335
+ "description": "Package source for npm or git packages. Use the string form to load all resources or the object form to filter resources."
336
+ },
337
+ "description": "npm or git package sources, as strings or objects with resource filtering."
338
+ },
339
+ "extensions": {
340
+ "type": "array",
341
+ "items": {
342
+ "type": "string"
343
+ },
344
+ "description": "Local extension file paths or directories."
345
+ },
346
+ "deviceId": {
347
+ "type": "string",
348
+ "description": "Stable installation UUID, generated when authentication first needs it. Global only."
349
+ },
350
+ "skills": {
351
+ "anyOf": [
352
+ {
353
+ "type": "array",
354
+ "items": {
355
+ "type": "string"
356
+ }
357
+ },
358
+ {
359
+ "type": "object",
360
+ "properties": {
361
+ "enableSkillCommands": {
362
+ "type": "boolean"
363
+ },
364
+ "customDirectories": {
365
+ "type": "array",
366
+ "items": {
367
+ "type": "string"
368
+ }
369
+ }
370
+ },
371
+ "deprecated": true
372
+ }
373
+ ],
374
+ "description": "Local skill file paths or directories."
375
+ },
376
+ "prompts": {
377
+ "type": "array",
378
+ "items": {
379
+ "type": "string"
380
+ },
381
+ "description": "Local prompt template file paths or directories."
382
+ },
383
+ "themes": {
384
+ "type": "array",
385
+ "items": {
386
+ "type": "string"
387
+ },
388
+ "description": "Local theme file paths or directories."
389
+ },
390
+ "enableSkillCommands": {
391
+ "type": "boolean",
392
+ "description": "Register skills as /skill:name commands.",
393
+ "default": true
394
+ },
395
+ "terminal": {
396
+ "type": "object",
397
+ "properties": {
398
+ "showImages": {
399
+ "type": "boolean",
400
+ "description": "Show images when the terminal supports them.",
401
+ "default": true
402
+ },
403
+ "imageWidthCells": {
404
+ "type": "number",
405
+ "description": "Preferred inline image width in terminal cells.",
406
+ "default": 60
407
+ },
408
+ "clearOnShrink": {
409
+ "type": "boolean",
410
+ "description": "Clear empty rows when content shrinks.",
411
+ "default": false
412
+ },
413
+ "showTerminalProgress": {
414
+ "type": "boolean",
415
+ "description": "Show OSC 9;4 terminal progress indicators.",
416
+ "default": false
417
+ },
418
+ "hyperlinks": {
419
+ "anyOf": [
420
+ {
421
+ "type": "boolean"
422
+ },
423
+ {
424
+ "type": "string",
425
+ "const": "auto"
426
+ }
427
+ ]
428
+ },
429
+ "images": {
430
+ "anyOf": [
431
+ {
432
+ "type": "string",
433
+ "const": "kitty"
434
+ },
435
+ {
436
+ "type": "string",
437
+ "const": "iterm2"
438
+ },
439
+ {
440
+ "type": "string",
441
+ "const": "auto"
442
+ },
443
+ {
444
+ "type": "boolean",
445
+ "const": false
446
+ }
447
+ ]
448
+ },
449
+ "trueColor": {
450
+ "anyOf": [
451
+ {
452
+ "type": "boolean"
453
+ },
454
+ {
455
+ "type": "string",
456
+ "const": "auto"
457
+ }
458
+ ]
459
+ }
460
+ }
461
+ },
462
+ "images": {
463
+ "type": "object",
464
+ "properties": {
465
+ "autoResize": {
466
+ "type": "boolean",
467
+ "description": "Resize images to 2000x2000 maximum for better model compatibility.",
468
+ "default": true
469
+ },
470
+ "blockImages": {
471
+ "type": "boolean",
472
+ "description": "When true, prevents all images from being sent to LLM providers.",
473
+ "default": false
474
+ }
475
+ }
476
+ },
477
+ "enabledModels": {
478
+ "type": "array",
479
+ "items": {
480
+ "type": "string"
481
+ },
482
+ "description": "Model patterns for cycling, in the same format as the --models CLI flag."
483
+ },
484
+ "defaultTools": {
485
+ "type": "array",
486
+ "items": {
487
+ "type": "string"
488
+ },
489
+ "description": "Initial tool selection. Plain names replace the inherited selection; +name and -name entries add or remove tools."
490
+ },
491
+ "doubleEscapeAction": {
492
+ "anyOf": [
493
+ {
494
+ "type": "string",
495
+ "const": "fork"
496
+ },
497
+ {
498
+ "type": "string",
499
+ "const": "tree"
500
+ },
501
+ {
502
+ "type": "string",
503
+ "const": "none"
504
+ }
505
+ ],
506
+ "description": "Action for double-escape with an empty editor.",
507
+ "default": "tree"
508
+ },
509
+ "treeFilterMode": {
510
+ "anyOf": [
511
+ {
512
+ "type": "string",
513
+ "const": "default"
514
+ },
515
+ {
516
+ "type": "string",
517
+ "const": "no-tools"
518
+ },
519
+ {
520
+ "type": "string",
521
+ "const": "user-only"
522
+ },
523
+ {
524
+ "type": "string",
525
+ "const": "labeled-only"
526
+ },
527
+ {
528
+ "type": "string",
529
+ "const": "all"
530
+ }
531
+ ],
532
+ "description": "Default filter when opening /tree.",
533
+ "default": "default"
534
+ },
535
+ "thinkingBudgets": {
536
+ "type": "object",
537
+ "properties": {
538
+ "minimal": {
539
+ "type": "number"
540
+ },
541
+ "low": {
542
+ "type": "number"
543
+ },
544
+ "medium": {
545
+ "type": "number"
546
+ },
547
+ "high": {
548
+ "type": "number"
549
+ }
550
+ },
551
+ "description": "Custom token budgets for thinking levels."
552
+ },
553
+ "editorPaddingX": {
554
+ "type": "number",
555
+ "description": "Horizontal padding for the input editor.",
556
+ "default": 0
557
+ },
558
+ "outputPad": {
559
+ "anyOf": [
560
+ {
561
+ "type": "number",
562
+ "const": 0
563
+ },
564
+ {
565
+ "type": "number",
566
+ "const": 1
567
+ }
568
+ ],
569
+ "description": "Horizontal padding for transcript content.",
570
+ "default": 1
571
+ },
572
+ "autocompleteMaxVisible": {
573
+ "type": "number",
574
+ "description": "Maximum visible items in the autocomplete dropdown.",
575
+ "default": 5
576
+ },
577
+ "showHardwareCursor": {
578
+ "type": "boolean",
579
+ "description": "Show the terminal cursor while still positioning it for IME."
580
+ },
581
+ "markdown": {
582
+ "type": "object",
583
+ "properties": {
584
+ "codeBlockIndent": {
585
+ "type": "string",
586
+ "default": " "
587
+ },
588
+ "mermaid": {
589
+ "anyOf": [
590
+ {
591
+ "type": "string",
592
+ "const": "off"
593
+ },
594
+ {
595
+ "type": "string",
596
+ "const": "final"
597
+ },
598
+ {
599
+ "type": "string",
600
+ "const": "streaming"
601
+ }
602
+ ],
603
+ "default": "streaming"
604
+ }
605
+ }
606
+ },
607
+ "warnings": {
608
+ "type": "object",
609
+ "properties": {
610
+ "anthropicExtraUsage": {
611
+ "type": "boolean",
612
+ "default": true
613
+ }
614
+ }
615
+ },
616
+ "notices": {
617
+ "type": "object",
618
+ "properties": {
619
+ "cacheMisses": {
620
+ "type": "boolean",
621
+ "description": "Show a notice when a response re-bills a significant part of the prompt cache.",
622
+ "default": false
623
+ },
624
+ "cacheWarming": {
625
+ "type": "boolean",
626
+ "description": "Show the cost of cache warming requests.",
627
+ "default": false
628
+ },
629
+ "compactionCosts": {
630
+ "type": "boolean",
631
+ "description": "Show the cost of compactions and branch summaries.",
632
+ "default": false
633
+ },
634
+ "reasoningDrops": {
635
+ "type": "boolean",
636
+ "description": "Show a notice when a provider drops reasoning items from a request.",
637
+ "default": false
638
+ }
639
+ }
640
+ },
641
+ "codemode": {
642
+ "type": "object",
643
+ "properties": {
644
+ "mode": {
645
+ "anyOf": [
646
+ {
647
+ "type": "string",
648
+ "const": "on"
649
+ },
650
+ {
651
+ "type": "string",
652
+ "const": "only"
653
+ }
654
+ ],
655
+ "description": "How codemode presents tools. \"on\" keeps direct tools declared and annotates tools callable from scripts; codemode lists only tools without direct exposure. \"only\" lists every script-callable tool in codemode and does not declare active direct tools.",
656
+ "default": "on"
657
+ },
658
+ "inlineBudget": {
659
+ "type": "number",
660
+ "minimum": 0,
661
+ "description": "Estimated tokens available for inline codemode tool declarations.",
662
+ "default": 3000
663
+ }
664
+ }
665
+ },
666
+ "sessionDir": {
667
+ "type": "string",
668
+ "description": "Custom session storage directory, in the same format as the --session-dir CLI flag."
669
+ },
670
+ "httpProxy": {
671
+ "type": "string",
672
+ "description": "Proxy URL applied as HTTP_PROXY and HTTPS_PROXY for Pi-managed HTTP clients."
673
+ },
674
+ "httpIdleTimeoutMs": {
675
+ "anyOf": [
676
+ {
677
+ "type": "number",
678
+ "minimum": 0
679
+ },
680
+ {
681
+ "type": "string",
682
+ "const": "disabled"
683
+ }
684
+ ],
685
+ "description": "HTTP header or body idle timeout in milliseconds; 0 or \"disabled\" disables it."
686
+ },
687
+ "cacheWarming": {
688
+ "anyOf": [
689
+ {
690
+ "type": "string",
691
+ "const": "off"
692
+ },
693
+ {
694
+ "type": "string",
695
+ "const": "streaming"
696
+ },
697
+ {
698
+ "type": "string",
699
+ "const": "idle"
700
+ }
701
+ ],
702
+ "description": "Cache-warming profile. \"idle\" also warms between agent runs. Global only because each refresh costs money.",
703
+ "default": "idle"
704
+ },
705
+ "websocketConnectTimeoutMs": {
706
+ "anyOf": [
707
+ {
708
+ "type": "number",
709
+ "minimum": 0
710
+ },
711
+ {
712
+ "type": "string",
713
+ "const": "disabled"
714
+ }
715
+ ],
716
+ "description": "WebSocket connect or open handshake timeout in milliseconds; 0 or \"disabled\" disables it."
717
+ },
718
+ "tuiMode": {
719
+ "anyOf": [
720
+ {
721
+ "type": "string",
722
+ "const": "regular"
723
+ },
724
+ {
725
+ "type": "string",
726
+ "const": "fullscreen"
727
+ }
728
+ ],
729
+ "default": "fullscreen"
730
+ },
731
+ "fullscreenExitOutput": {
732
+ "anyOf": [
733
+ {
734
+ "type": "string",
735
+ "const": "transcript"
736
+ },
737
+ {
738
+ "type": "string",
739
+ "const": "resume-hint"
740
+ }
741
+ ],
742
+ "description": "No effect in regular TUI mode.",
743
+ "default": "transcript"
744
+ },
745
+ "fullscreenScrollbar": {
746
+ "anyOf": [
747
+ {
748
+ "type": "string",
749
+ "const": "auto"
750
+ },
751
+ {
752
+ "type": "string",
753
+ "const": "always"
754
+ },
755
+ {
756
+ "type": "string",
757
+ "const": "hidden"
758
+ }
759
+ ],
760
+ "description": "No effect in regular TUI mode.",
761
+ "default": "auto"
762
+ },
763
+ "fullscreenCopyOnSelect": {
764
+ "type": "boolean",
765
+ "description": "No effect in regular TUI mode.",
766
+ "default": true
767
+ },
768
+ "fullscreenWheelScrollLines": {
769
+ "anyOf": [
770
+ {
771
+ "type": "number"
772
+ },
773
+ {
774
+ "type": "string",
775
+ "const": "auto"
776
+ }
777
+ ],
778
+ "description": "Lines scrolled per wheel event in fullscreen mode; numeric values are clamped from 1 to 100.",
779
+ "default": "auto"
780
+ },
781
+ "queueMode": {
782
+ "anyOf": [
783
+ {
784
+ "type": "string",
785
+ "const": "all"
786
+ },
787
+ {
788
+ "type": "string",
789
+ "const": "one-at-a-time"
790
+ }
791
+ ],
792
+ "description": "Legacy setting migrated to steeringMode.",
793
+ "deprecated": true
794
+ },
795
+ "websockets": {
796
+ "type": "boolean",
797
+ "description": "Legacy setting migrated to transport.",
798
+ "deprecated": true
799
+ },
800
+ "showCacheMissNotices": {
801
+ "type": "boolean",
802
+ "description": "Legacy setting migrated to notices.",
803
+ "deprecated": true
804
+ }
805
+ },
806
+ "additionalProperties": true,
807
+ "$defs": {
808
+ "ModelThinkingLevel": {
809
+ "enum": [
810
+ "off",
811
+ "minimal",
812
+ "low",
813
+ "medium",
814
+ "high",
815
+ "xhigh",
816
+ "max"
817
+ ]
818
+ }
819
+ }
820
+ }