@kingingwang/pi-windows-x64 0.83.0

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 (213) hide show
  1. package/LICENSE +21 -0
  2. package/bin/CHANGELOG.md +5402 -0
  3. package/bin/README.md +712 -0
  4. package/bin/assets/clankolas.png +0 -0
  5. package/bin/docs/compaction.md +401 -0
  6. package/bin/docs/containerization.md +111 -0
  7. package/bin/docs/custom-provider.md +774 -0
  8. package/bin/docs/development.md +71 -0
  9. package/bin/docs/docs.json +156 -0
  10. package/bin/docs/environment-variables.md +88 -0
  11. package/bin/docs/extensions.md +2987 -0
  12. package/bin/docs/images/doom-extension.png +0 -0
  13. package/bin/docs/images/exy.png +0 -0
  14. package/bin/docs/images/interactive-mode.png +0 -0
  15. package/bin/docs/images/tree-view.png +0 -0
  16. package/bin/docs/index.md +84 -0
  17. package/bin/docs/json.md +91 -0
  18. package/bin/docs/keybindings.md +226 -0
  19. package/bin/docs/llama-cpp.md +99 -0
  20. package/bin/docs/models.md +565 -0
  21. package/bin/docs/packages.md +228 -0
  22. package/bin/docs/prompt-templates.md +96 -0
  23. package/bin/docs/providers.md +310 -0
  24. package/bin/docs/quickstart.md +167 -0
  25. package/bin/docs/rpc.md +1578 -0
  26. package/bin/docs/sdk.md +1205 -0
  27. package/bin/docs/security.md +59 -0
  28. package/bin/docs/session-format.md +438 -0
  29. package/bin/docs/sessions.md +145 -0
  30. package/bin/docs/settings.md +328 -0
  31. package/bin/docs/shell-aliases.md +13 -0
  32. package/bin/docs/skills.md +231 -0
  33. package/bin/docs/terminal-setup.md +142 -0
  34. package/bin/docs/termux.md +127 -0
  35. package/bin/docs/themes.md +299 -0
  36. package/bin/docs/tmux.md +63 -0
  37. package/bin/docs/tui.md +942 -0
  38. package/bin/docs/usage.md +305 -0
  39. package/bin/docs/windows.md +17 -0
  40. package/bin/examples/README.md +25 -0
  41. package/bin/examples/extensions/README.md +213 -0
  42. package/bin/examples/extensions/auto-commit-on-exit.ts +49 -0
  43. package/bin/examples/extensions/bash-spawn-hook.ts +30 -0
  44. package/bin/examples/extensions/bookmark.ts +50 -0
  45. package/bin/examples/extensions/border-status-editor.ts +150 -0
  46. package/bin/examples/extensions/built-in-tool-renderer.ts +249 -0
  47. package/bin/examples/extensions/claude-rules.ts +86 -0
  48. package/bin/examples/extensions/commands.ts +72 -0
  49. package/bin/examples/extensions/confirm-destructive.ts +59 -0
  50. package/bin/examples/extensions/custom-compaction.ts +117 -0
  51. package/bin/examples/extensions/custom-footer.ts +64 -0
  52. package/bin/examples/extensions/custom-header.ts +73 -0
  53. package/bin/examples/extensions/custom-provider-anthropic/index.ts +611 -0
  54. package/bin/examples/extensions/custom-provider-anthropic/package-lock.json +24 -0
  55. package/bin/examples/extensions/custom-provider-anthropic/package.json +19 -0
  56. package/bin/examples/extensions/custom-provider-gitlab-duo/index.ts +405 -0
  57. package/bin/examples/extensions/custom-provider-gitlab-duo/package.json +16 -0
  58. package/bin/examples/extensions/custom-provider-gitlab-duo/test.ts +82 -0
  59. package/bin/examples/extensions/dirty-repo-guard.ts +56 -0
  60. package/bin/examples/extensions/doom-overlay/README.md +46 -0
  61. package/bin/examples/extensions/doom-overlay/doom/build/doom.js +21 -0
  62. package/bin/examples/extensions/doom-overlay/doom/build/doom.wasm +0 -0
  63. package/bin/examples/extensions/doom-overlay/doom/build.sh +152 -0
  64. package/bin/examples/extensions/doom-overlay/doom/doomgeneric_pi.c +72 -0
  65. package/bin/examples/extensions/doom-overlay/doom-component.ts +132 -0
  66. package/bin/examples/extensions/doom-overlay/doom-engine.ts +173 -0
  67. package/bin/examples/extensions/doom-overlay/doom-keys.ts +104 -0
  68. package/bin/examples/extensions/doom-overlay/index.ts +74 -0
  69. package/bin/examples/extensions/doom-overlay/wad-finder.ts +55 -0
  70. package/bin/examples/extensions/dynamic-resources/SKILL.md +8 -0
  71. package/bin/examples/extensions/dynamic-resources/dynamic.json +79 -0
  72. package/bin/examples/extensions/dynamic-resources/dynamic.md +5 -0
  73. package/bin/examples/extensions/dynamic-resources/index.ts +15 -0
  74. package/bin/examples/extensions/dynamic-tools.ts +74 -0
  75. package/bin/examples/extensions/entry-renderer.ts +41 -0
  76. package/bin/examples/extensions/event-bus.ts +43 -0
  77. package/bin/examples/extensions/file-trigger.ts +41 -0
  78. package/bin/examples/extensions/git-checkpoint.ts +53 -0
  79. package/bin/examples/extensions/git-merge-and-resolve.ts +115 -0
  80. package/bin/examples/extensions/github-issue-autocomplete.ts +185 -0
  81. package/bin/examples/extensions/gondolin/index.ts +531 -0
  82. package/bin/examples/extensions/gondolin/package-lock.json +185 -0
  83. package/bin/examples/extensions/gondolin/package.json +19 -0
  84. package/bin/examples/extensions/handoff.ts +190 -0
  85. package/bin/examples/extensions/hello.ts +26 -0
  86. package/bin/examples/extensions/hidden-thinking-label.ts +53 -0
  87. package/bin/examples/extensions/inline-bash.ts +94 -0
  88. package/bin/examples/extensions/input-transform-streaming.ts +39 -0
  89. package/bin/examples/extensions/input-transform.ts +43 -0
  90. package/bin/examples/extensions/interactive-shell.ts +196 -0
  91. package/bin/examples/extensions/kimi-deferred-tools.ts +61 -0
  92. package/bin/examples/extensions/mac-system-theme.ts +47 -0
  93. package/bin/examples/extensions/message-renderer.ts +59 -0
  94. package/bin/examples/extensions/minimal-mode.ts +426 -0
  95. package/bin/examples/extensions/modal-editor.ts +85 -0
  96. package/bin/examples/extensions/model-status.ts +31 -0
  97. package/bin/examples/extensions/notify.ts +55 -0
  98. package/bin/examples/extensions/overlay-qa-tests.ts +1450 -0
  99. package/bin/examples/extensions/overlay-test.ts +153 -0
  100. package/bin/examples/extensions/permission-gate.ts +34 -0
  101. package/bin/examples/extensions/pirate.ts +47 -0
  102. package/bin/examples/extensions/plan-mode/README.md +66 -0
  103. package/bin/examples/extensions/plan-mode/index.ts +390 -0
  104. package/bin/examples/extensions/plan-mode/utils.ts +168 -0
  105. package/bin/examples/extensions/preset.ts +436 -0
  106. package/bin/examples/extensions/project-trust.ts +64 -0
  107. package/bin/examples/extensions/prompt-customizer.ts +97 -0
  108. package/bin/examples/extensions/protected-paths.ts +30 -0
  109. package/bin/examples/extensions/provider-payload.ts +18 -0
  110. package/bin/examples/extensions/qna.ts +118 -0
  111. package/bin/examples/extensions/question.ts +286 -0
  112. package/bin/examples/extensions/questionnaire.ts +448 -0
  113. package/bin/examples/extensions/rainbow-editor.ts +88 -0
  114. package/bin/examples/extensions/reload-runtime.ts +37 -0
  115. package/bin/examples/extensions/rpc-demo.ts +118 -0
  116. package/bin/examples/extensions/sandbox/index.ts +321 -0
  117. package/bin/examples/extensions/sandbox/package-lock.json +92 -0
  118. package/bin/examples/extensions/sandbox/package.json +19 -0
  119. package/bin/examples/extensions/send-user-message.ts +97 -0
  120. package/bin/examples/extensions/session-name.ts +27 -0
  121. package/bin/examples/extensions/shutdown-command.ts +63 -0
  122. package/bin/examples/extensions/snake.ts +343 -0
  123. package/bin/examples/extensions/space-invaders.ts +560 -0
  124. package/bin/examples/extensions/ssh.ts +220 -0
  125. package/bin/examples/extensions/status-line.ts +32 -0
  126. package/bin/examples/extensions/structured-output.ts +65 -0
  127. package/bin/examples/extensions/subagent/README.md +175 -0
  128. package/bin/examples/extensions/subagent/agents/planner.md +37 -0
  129. package/bin/examples/extensions/subagent/agents/reviewer.md +35 -0
  130. package/bin/examples/extensions/subagent/agents/scout.md +50 -0
  131. package/bin/examples/extensions/subagent/agents/worker.md +24 -0
  132. package/bin/examples/extensions/subagent/agents.ts +126 -0
  133. package/bin/examples/extensions/subagent/index.ts +1015 -0
  134. package/bin/examples/extensions/subagent/prompts/implement-and-review.md +10 -0
  135. package/bin/examples/extensions/subagent/prompts/implement.md +10 -0
  136. package/bin/examples/extensions/subagent/prompts/scout-and-plan.md +9 -0
  137. package/bin/examples/extensions/summarize.ts +199 -0
  138. package/bin/examples/extensions/system-prompt-header.ts +17 -0
  139. package/bin/examples/extensions/tic-tac-toe.ts +1008 -0
  140. package/bin/examples/extensions/timed-confirm.ts +70 -0
  141. package/bin/examples/extensions/titlebar-spinner.ts +58 -0
  142. package/bin/examples/extensions/todo.ts +297 -0
  143. package/bin/examples/extensions/tool-override.ts +144 -0
  144. package/bin/examples/extensions/tools.ts +146 -0
  145. package/bin/examples/extensions/trigger-compact.ts +50 -0
  146. package/bin/examples/extensions/truncated-tool.ts +195 -0
  147. package/bin/examples/extensions/widget-placement.ts +9 -0
  148. package/bin/examples/extensions/with-deps/index.ts +32 -0
  149. package/bin/examples/extensions/with-deps/package-lock.json +31 -0
  150. package/bin/examples/extensions/with-deps/package.json +22 -0
  151. package/bin/examples/extensions/working-indicator.ts +123 -0
  152. package/bin/examples/extensions/working-message-test.ts +25 -0
  153. package/bin/examples/rpc-extension-ui.ts +641 -0
  154. package/bin/examples/sdk/01-minimal.ts +26 -0
  155. package/bin/examples/sdk/02-custom-model.ts +49 -0
  156. package/bin/examples/sdk/03-custom-prompt.ts +75 -0
  157. package/bin/examples/sdk/04-skills.ts +55 -0
  158. package/bin/examples/sdk/05-tools.ts +48 -0
  159. package/bin/examples/sdk/06-extensions.ts +99 -0
  160. package/bin/examples/sdk/07-context-files.ts +47 -0
  161. package/bin/examples/sdk/08-prompt-templates.ts +51 -0
  162. package/bin/examples/sdk/09-api-keys-and-oauth.ts +34 -0
  163. package/bin/examples/sdk/10-settings.ts +53 -0
  164. package/bin/examples/sdk/11-sessions.ts +52 -0
  165. package/bin/examples/sdk/12-full-control.ts +74 -0
  166. package/bin/examples/sdk/13-session-runtime.ts +67 -0
  167. package/bin/examples/sdk/README.md +140 -0
  168. package/bin/export-html/ansi-to-html.d.ts +22 -0
  169. package/bin/export-html/ansi-to-html.d.ts.map +1 -0
  170. package/bin/export-html/ansi-to-html.js +249 -0
  171. package/bin/export-html/ansi-to-html.js.map +1 -0
  172. package/bin/export-html/index.d.ts +37 -0
  173. package/bin/export-html/index.d.ts.map +1 -0
  174. package/bin/export-html/index.js +226 -0
  175. package/bin/export-html/index.js.map +1 -0
  176. package/bin/export-html/template.css +1066 -0
  177. package/bin/export-html/template.html +55 -0
  178. package/bin/export-html/template.js +1864 -0
  179. package/bin/export-html/tool-renderer.d.ts +34 -0
  180. package/bin/export-html/tool-renderer.d.ts.map +1 -0
  181. package/bin/export-html/tool-renderer.js +108 -0
  182. package/bin/export-html/tool-renderer.js.map +1 -0
  183. package/bin/export-html/vendor/highlight.min.js +1213 -0
  184. package/bin/export-html/vendor/marked.min.js +78 -0
  185. package/bin/native/win32/prebuilds/win32-x64/win32-console-mode.node +0 -0
  186. package/bin/node_modules/@mariozechner/clipboard/.yarnrc.yml +1 -0
  187. package/bin/node_modules/@mariozechner/clipboard/Cargo.toml +45 -0
  188. package/bin/node_modules/@mariozechner/clipboard/README.md +60 -0
  189. package/bin/node_modules/@mariozechner/clipboard/build.rs +5 -0
  190. package/bin/node_modules/@mariozechner/clipboard/clipboard.win32-x64-msvc.node +0 -0
  191. package/bin/node_modules/@mariozechner/clipboard/exp.ts +12 -0
  192. package/bin/node_modules/@mariozechner/clipboard/index.d.ts +37 -0
  193. package/bin/node_modules/@mariozechner/clipboard/index.js +606 -0
  194. package/bin/node_modules/@mariozechner/clipboard/package.json +56 -0
  195. package/bin/node_modules/@mariozechner/clipboard/src/clipboard_rs/common.rs +307 -0
  196. package/bin/node_modules/@mariozechner/clipboard/src/clipboard_rs/mod.rs +93 -0
  197. package/bin/node_modules/@mariozechner/clipboard/src/clipboard_rs/platform/ios.rs +313 -0
  198. package/bin/node_modules/@mariozechner/clipboard/src/clipboard_rs/platform/macos.rs +471 -0
  199. package/bin/node_modules/@mariozechner/clipboard/src/clipboard_rs/platform/mod.rs +252 -0
  200. package/bin/node_modules/@mariozechner/clipboard/src/clipboard_rs/platform/wayland.rs +431 -0
  201. package/bin/node_modules/@mariozechner/clipboard/src/clipboard_rs/platform/win.rs +712 -0
  202. package/bin/node_modules/@mariozechner/clipboard/src/clipboard_rs/platform/x11.rs +916 -0
  203. package/bin/node_modules/@mariozechner/clipboard/src/lib.rs +194 -0
  204. package/bin/node_modules/@mariozechner/clipboard-win32-x64-msvc/README.md +3 -0
  205. package/bin/node_modules/@mariozechner/clipboard-win32-x64-msvc/clipboard.win32-x64-msvc.node +0 -0
  206. package/bin/node_modules/@mariozechner/clipboard-win32-x64-msvc/package.json +22 -0
  207. package/bin/package.json +108 -0
  208. package/bin/photon_rs_bg.wasm +0 -0
  209. package/bin/pi.exe +0 -0
  210. package/bin/theme/dark.json +88 -0
  211. package/bin/theme/light.json +87 -0
  212. package/bin/theme/theme-schema.json +344 -0
  213. package/package.json +20 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Mario Zechner
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.