@code-yeongyu/senpi 2026.6.10 → 2026.6.13

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 (285) hide show
  1. package/CHANGELOG.md +68 -1
  2. package/README.md +21 -21
  3. package/dist/cli/startup-ui.d.ts +10 -0
  4. package/dist/cli/startup-ui.d.ts.map +1 -1
  5. package/dist/cli/startup-ui.js +72 -1
  6. package/dist/cli/startup-ui.js.map +1 -1
  7. package/dist/core/agent-session.d.ts.map +1 -1
  8. package/dist/core/agent-session.js +3 -2
  9. package/dist/core/agent-session.js.map +1 -1
  10. package/dist/core/bash-executor.d.ts.map +1 -1
  11. package/dist/core/bash-executor.js +31 -7
  12. package/dist/core/bash-executor.js.map +1 -1
  13. package/dist/core/extensions/builtin/compaction/degradation-monitor.d.ts +0 -1
  14. package/dist/core/extensions/builtin/compaction/degradation-monitor.d.ts.map +1 -1
  15. package/dist/core/extensions/builtin/compaction/degradation-monitor.js +0 -1
  16. package/dist/core/extensions/builtin/compaction/degradation-monitor.js.map +1 -1
  17. package/dist/core/extensions/builtin/compaction/index.d.ts.map +1 -1
  18. package/dist/core/extensions/builtin/compaction/index.js +4 -4
  19. package/dist/core/extensions/builtin/compaction/index.js.map +1 -1
  20. package/dist/core/extensions/builtin/compaction/policy.d.ts +0 -5
  21. package/dist/core/extensions/builtin/compaction/policy.d.ts.map +1 -1
  22. package/dist/core/extensions/builtin/compaction/policy.js +0 -4
  23. package/dist/core/extensions/builtin/compaction/policy.js.map +1 -1
  24. package/dist/core/extensions/builtin/compaction/speculative.d.ts +0 -6
  25. package/dist/core/extensions/builtin/compaction/speculative.d.ts.map +1 -1
  26. package/dist/core/extensions/builtin/compaction/speculative.js +0 -3
  27. package/dist/core/extensions/builtin/compaction/speculative.js.map +1 -1
  28. package/dist/core/extensions/builtin/gpt-apply-patch/extension.d.ts +1 -1
  29. package/dist/core/extensions/builtin/gpt-apply-patch/extension.d.ts.map +1 -1
  30. package/dist/core/extensions/builtin/gpt-apply-patch/extension.js +10 -2
  31. package/dist/core/extensions/builtin/gpt-apply-patch/extension.js.map +1 -1
  32. package/dist/core/extensions/builtin/permission-system/cli.d.ts +0 -3
  33. package/dist/core/extensions/builtin/permission-system/cli.d.ts.map +1 -1
  34. package/dist/core/extensions/builtin/permission-system/cli.js +0 -13
  35. package/dist/core/extensions/builtin/permission-system/cli.js.map +1 -1
  36. package/dist/core/extensions/builtin/prompt-preset/kimi-k2-7.d.ts +3 -0
  37. package/dist/core/extensions/builtin/prompt-preset/kimi-k2-7.d.ts.map +1 -0
  38. package/dist/core/extensions/builtin/prompt-preset/kimi-k2-7.js +10 -0
  39. package/dist/core/extensions/builtin/prompt-preset/kimi-k2-7.js.map +1 -0
  40. package/dist/core/extensions/builtin/prompt-preset/presets.d.ts.map +1 -1
  41. package/dist/core/extensions/builtin/prompt-preset/presets.js +12 -0
  42. package/dist/core/extensions/builtin/prompt-preset/presets.js.map +1 -1
  43. package/dist/core/extensions/builtin/prompt-preset/settings.d.ts +1 -1
  44. package/dist/core/extensions/builtin/prompt-preset/settings.d.ts.map +1 -1
  45. package/dist/core/extensions/builtin/prompt-preset/settings.js +1 -0
  46. package/dist/core/extensions/builtin/prompt-preset/settings.js.map +1 -1
  47. package/dist/core/extensions/types.d.ts +1 -0
  48. package/dist/core/extensions/types.d.ts.map +1 -1
  49. package/dist/core/extensions/types.js.map +1 -1
  50. package/dist/core/model-registry.d.ts +0 -3
  51. package/dist/core/model-registry.d.ts.map +1 -1
  52. package/dist/core/model-registry.js +3 -3
  53. package/dist/core/model-registry.js.map +1 -1
  54. package/dist/core/model-resolver.d.ts +1 -0
  55. package/dist/core/model-resolver.d.ts.map +1 -1
  56. package/dist/core/model-resolver.js +43 -6
  57. package/dist/core/model-resolver.js.map +1 -1
  58. package/dist/core/project-trust.js +2 -2
  59. package/dist/core/project-trust.js.map +1 -1
  60. package/dist/core/resolve-config-value.d.ts +0 -4
  61. package/dist/core/resolve-config-value.d.ts.map +1 -1
  62. package/dist/core/resolve-config-value.js +0 -15
  63. package/dist/core/resolve-config-value.js.map +1 -1
  64. package/dist/core/session-manager.d.ts.map +1 -1
  65. package/dist/core/session-manager.js +11 -2
  66. package/dist/core/session-manager.js.map +1 -1
  67. package/dist/core/settings-manager.d.ts +6 -0
  68. package/dist/core/settings-manager.d.ts.map +1 -1
  69. package/dist/core/settings-manager.js +17 -0
  70. package/dist/core/settings-manager.js.map +1 -1
  71. package/dist/core/tools/edit-diff.d.ts +0 -5
  72. package/dist/core/tools/edit-diff.d.ts.map +1 -1
  73. package/dist/core/tools/edit-diff.js +0 -7
  74. package/dist/core/tools/edit-diff.js.map +1 -1
  75. package/dist/core/tools/index.d.ts +0 -5
  76. package/dist/core/tools/index.d.ts.map +1 -1
  77. package/dist/core/tools/index.js +0 -67
  78. package/dist/core/tools/index.js.map +1 -1
  79. package/dist/core/tools/output-accumulator.d.ts +3 -5
  80. package/dist/core/tools/output-accumulator.d.ts.map +1 -1
  81. package/dist/core/tools/output-accumulator.js +38 -34
  82. package/dist/core/tools/output-accumulator.js.map +1 -1
  83. package/dist/core/tools/tail-window.d.ts +15 -0
  84. package/dist/core/tools/tail-window.d.ts.map +1 -0
  85. package/dist/core/tools/tail-window.js +75 -0
  86. package/dist/core/tools/tail-window.js.map +1 -0
  87. package/dist/core/trust-manager.d.ts +8 -3
  88. package/dist/core/trust-manager.d.ts.map +1 -1
  89. package/dist/core/trust-manager.js +26 -11
  90. package/dist/core/trust-manager.js.map +1 -1
  91. package/dist/index.d.ts +1 -1
  92. package/dist/index.d.ts.map +1 -1
  93. package/dist/index.js +1 -1
  94. package/dist/index.js.map +1 -1
  95. package/dist/main.d.ts.map +1 -1
  96. package/dist/main.js +17 -6
  97. package/dist/main.js.map +1 -1
  98. package/dist/modes/interactive/aborted-error-label.d.ts +2 -0
  99. package/dist/modes/interactive/aborted-error-label.d.ts.map +1 -0
  100. package/dist/modes/interactive/aborted-error-label.js +8 -0
  101. package/dist/modes/interactive/aborted-error-label.js.map +1 -0
  102. package/dist/modes/interactive/components/first-time-setup.d.ts +25 -0
  103. package/dist/modes/interactive/components/first-time-setup.d.ts.map +1 -0
  104. package/dist/modes/interactive/components/first-time-setup.js +101 -0
  105. package/dist/modes/interactive/components/first-time-setup.js.map +1 -0
  106. package/dist/modes/interactive/components/index.d.ts +1 -0
  107. package/dist/modes/interactive/components/index.d.ts.map +1 -1
  108. package/dist/modes/interactive/components/index.js +1 -0
  109. package/dist/modes/interactive/components/index.js.map +1 -1
  110. package/dist/modes/interactive/components/tool-execution.d.ts +6 -0
  111. package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
  112. package/dist/modes/interactive/components/tool-execution.js +45 -0
  113. package/dist/modes/interactive/components/tool-execution.js.map +1 -1
  114. package/dist/modes/interactive/components/trust-selector.d.ts.map +1 -1
  115. package/dist/modes/interactive/components/trust-selector.js +4 -4
  116. package/dist/modes/interactive/components/trust-selector.js.map +1 -1
  117. package/dist/modes/interactive/interactive-mode.d.ts +1 -0
  118. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  119. package/dist/modes/interactive/interactive-mode.js +18 -18
  120. package/dist/modes/interactive/interactive-mode.js.map +1 -1
  121. package/dist/modes/interactive/theme/theme.d.ts +0 -4
  122. package/dist/modes/interactive/theme/theme.d.ts.map +1 -1
  123. package/dist/modes/interactive/theme/theme.js +0 -7
  124. package/dist/modes/interactive/theme/theme.js.map +1 -1
  125. package/dist/modes/print-mode.d.ts.map +1 -1
  126. package/dist/modes/print-mode.js +1 -1
  127. package/dist/modes/print-mode.js.map +1 -1
  128. package/dist/modes/rpc/event-output-buffer.d.ts +10 -0
  129. package/dist/modes/rpc/event-output-buffer.d.ts.map +1 -0
  130. package/dist/modes/rpc/event-output-buffer.js +27 -0
  131. package/dist/modes/rpc/event-output-buffer.js.map +1 -0
  132. package/dist/modes/rpc/jsonl.d.ts.map +1 -1
  133. package/dist/modes/rpc/jsonl.js +9 -11
  134. package/dist/modes/rpc/jsonl.js.map +1 -1
  135. package/dist/modes/rpc/rpc-mode.d.ts.map +1 -1
  136. package/dist/modes/rpc/rpc-mode.js +17 -7
  137. package/dist/modes/rpc/rpc-mode.js.map +1 -1
  138. package/dist/modes/rpc/rpc-types.d.ts +0 -1
  139. package/dist/modes/rpc/rpc-types.d.ts.map +1 -1
  140. package/dist/modes/rpc/rpc-types.js.map +1 -1
  141. package/dist/package-manager-cli.d.ts.map +1 -1
  142. package/dist/package-manager-cli.js +10 -3
  143. package/dist/package-manager-cli.js.map +1 -1
  144. package/dist/utils/shell.d.ts.map +1 -1
  145. package/dist/utils/shell.js +14 -0
  146. package/dist/utils/shell.js.map +1 -1
  147. package/docs/compaction-guide.md +9 -9
  148. package/docs/compaction.md +2 -2
  149. package/docs/containerization.md +22 -22
  150. package/docs/custom-provider.md +13 -13
  151. package/docs/development.md +4 -2
  152. package/docs/extensions.md +18 -19
  153. package/docs/index.md +4 -4
  154. package/docs/json.md +21 -15
  155. package/docs/keybindings.md +6 -3
  156. package/docs/models.md +6 -6
  157. package/docs/packages.md +11 -11
  158. package/docs/prompt-templates.md +2 -2
  159. package/docs/providers.md +9 -9
  160. package/docs/rpc.md +14 -13
  161. package/docs/sdk.md +13 -9
  162. package/docs/security.md +14 -10
  163. package/docs/session-format.md +4 -4
  164. package/docs/sessions.md +14 -14
  165. package/docs/settings.md +14 -12
  166. package/docs/skills.md +8 -8
  167. package/docs/terminal-setup.md +2 -2
  168. package/docs/termux.md +3 -3
  169. package/docs/tui.md +4 -4
  170. package/docs/usage.md +52 -59
  171. package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
  172. package/examples/extensions/custom-provider-anthropic/package.json +1 -1
  173. package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
  174. package/examples/extensions/gondolin/package-lock.json +2 -2
  175. package/examples/extensions/gondolin/package.json +1 -1
  176. package/examples/extensions/sandbox/package-lock.json +2 -2
  177. package/examples/extensions/sandbox/package.json +1 -1
  178. package/examples/extensions/with-deps/package-lock.json +2 -2
  179. package/examples/extensions/with-deps/package.json +1 -1
  180. package/node_modules/@earendil-works/pi-agent-core/README.md +4 -3
  181. package/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.js +8 -0
  182. package/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.js.map +1 -1
  183. package/node_modules/@earendil-works/pi-agent-core/dist/harness/types.d.ts +0 -2
  184. package/node_modules/@earendil-works/pi-agent-core/dist/harness/types.d.ts.map +1 -1
  185. package/node_modules/@earendil-works/pi-agent-core/dist/harness/types.js +0 -4
  186. package/node_modules/@earendil-works/pi-agent-core/dist/harness/types.js.map +1 -1
  187. package/node_modules/@earendil-works/pi-agent-core/dist/types.d.ts +7 -2
  188. package/node_modules/@earendil-works/pi-agent-core/dist/types.d.ts.map +1 -1
  189. package/node_modules/@earendil-works/pi-agent-core/dist/types.js.map +1 -1
  190. package/node_modules/@earendil-works/pi-agent-core/package.json +2 -2
  191. package/node_modules/@earendil-works/pi-ai/README.md +2 -4
  192. package/node_modules/@earendil-works/pi-ai/dist/api-registry.d.ts +0 -1
  193. package/node_modules/@earendil-works/pi-ai/dist/api-registry.d.ts.map +1 -1
  194. package/node_modules/@earendil-works/pi-ai/dist/api-registry.js +0 -3
  195. package/node_modules/@earendil-works/pi-ai/dist/api-registry.js.map +1 -1
  196. package/node_modules/@earendil-works/pi-ai/dist/models.d.ts.map +1 -1
  197. package/node_modules/@earendil-works/pi-ai/dist/models.generated.d.ts +252 -470
  198. package/node_modules/@earendil-works/pi-ai/dist/models.generated.d.ts.map +1 -1
  199. package/node_modules/@earendil-works/pi-ai/dist/models.generated.js +533 -740
  200. package/node_modules/@earendil-works/pi-ai/dist/models.generated.js.map +1 -1
  201. package/node_modules/@earendil-works/pi-ai/dist/models.js +12 -5
  202. package/node_modules/@earendil-works/pi-ai/dist/models.js.map +1 -1
  203. package/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.d.ts.map +1 -1
  204. package/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.js +11 -2
  205. package/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.js.map +1 -1
  206. package/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.d.ts.map +1 -1
  207. package/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.js +29 -16
  208. package/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.js.map +1 -1
  209. package/node_modules/@earendil-works/pi-ai/dist/providers/google-shared.d.ts +0 -4
  210. package/node_modules/@earendil-works/pi-ai/dist/providers/google-shared.d.ts.map +1 -1
  211. package/node_modules/@earendil-works/pi-ai/dist/providers/google-shared.js +0 -13
  212. package/node_modules/@earendil-works/pi-ai/dist/providers/google-shared.js.map +1 -1
  213. package/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex-responses.d.ts.map +1 -1
  214. package/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex-responses.js +3 -1
  215. package/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex-responses.js.map +1 -1
  216. package/node_modules/@earendil-works/pi-ai/dist/providers/simple-options.d.ts +0 -6
  217. package/node_modules/@earendil-works/pi-ai/dist/providers/simple-options.d.ts.map +1 -1
  218. package/node_modules/@earendil-works/pi-ai/dist/providers/simple-options.js +0 -14
  219. package/node_modules/@earendil-works/pi-ai/dist/providers/simple-options.js.map +1 -1
  220. package/node_modules/@earendil-works/pi-ai/dist/types.d.ts +7 -0
  221. package/node_modules/@earendil-works/pi-ai/dist/types.d.ts.map +1 -1
  222. package/node_modules/@earendil-works/pi-ai/dist/types.js.map +1 -1
  223. package/node_modules/@earendil-works/pi-ai/dist/utils/event-stream.d.ts +4 -1
  224. package/node_modules/@earendil-works/pi-ai/dist/utils/event-stream.d.ts.map +1 -1
  225. package/node_modules/@earendil-works/pi-ai/dist/utils/event-stream.js +59 -19
  226. package/node_modules/@earendil-works/pi-ai/dist/utils/event-stream.js.map +1 -1
  227. package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.d.ts +1 -5
  228. package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.d.ts.map +1 -1
  229. package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.js +3 -8
  230. package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.js.map +1 -1
  231. package/node_modules/@earendil-works/pi-ai/package.json +1 -1
  232. package/node_modules/@earendil-works/pi-tui/README.md +1 -2
  233. package/node_modules/@earendil-works/pi-tui/dist/components/editor.d.ts +2 -0
  234. package/node_modules/@earendil-works/pi-tui/dist/components/editor.d.ts.map +1 -1
  235. package/node_modules/@earendil-works/pi-tui/dist/components/editor.js +93 -9
  236. package/node_modules/@earendil-works/pi-tui/dist/components/editor.js.map +1 -1
  237. package/node_modules/@earendil-works/pi-tui/dist/components/markdown.d.ts +3 -1
  238. package/node_modules/@earendil-works/pi-tui/dist/components/markdown.d.ts.map +1 -1
  239. package/node_modules/@earendil-works/pi-tui/dist/components/markdown.js +89 -2
  240. package/node_modules/@earendil-works/pi-tui/dist/components/markdown.js.map +1 -1
  241. package/node_modules/@earendil-works/pi-tui/dist/fuzzy.d.ts +1 -1
  242. package/node_modules/@earendil-works/pi-tui/dist/fuzzy.js +2 -2
  243. package/node_modules/@earendil-works/pi-tui/dist/fuzzy.js.map +1 -1
  244. package/node_modules/@earendil-works/pi-tui/dist/index.d.ts +2 -2
  245. package/node_modules/@earendil-works/pi-tui/dist/index.d.ts.map +1 -1
  246. package/node_modules/@earendil-works/pi-tui/dist/index.js +2 -2
  247. package/node_modules/@earendil-works/pi-tui/dist/index.js.map +1 -1
  248. package/node_modules/@earendil-works/pi-tui/dist/stdin-buffer.d.ts +1 -0
  249. package/node_modules/@earendil-works/pi-tui/dist/stdin-buffer.d.ts.map +1 -1
  250. package/node_modules/@earendil-works/pi-tui/dist/stdin-buffer.js +15 -8
  251. package/node_modules/@earendil-works/pi-tui/dist/stdin-buffer.js.map +1 -1
  252. package/node_modules/@earendil-works/pi-tui/dist/terminal-image.d.ts +0 -1
  253. package/node_modules/@earendil-works/pi-tui/dist/terminal-image.d.ts.map +1 -1
  254. package/node_modules/@earendil-works/pi-tui/dist/terminal-image.js +4 -7
  255. package/node_modules/@earendil-works/pi-tui/dist/terminal-image.js.map +1 -1
  256. package/node_modules/@earendil-works/pi-tui/dist/terminal.d.ts.map +1 -1
  257. package/node_modules/@earendil-works/pi-tui/dist/terminal.js +0 -1
  258. package/node_modules/@earendil-works/pi-tui/dist/terminal.js.map +1 -1
  259. package/node_modules/@earendil-works/pi-tui/dist/tui.d.ts +2 -1
  260. package/node_modules/@earendil-works/pi-tui/dist/tui.d.ts.map +1 -1
  261. package/node_modules/@earendil-works/pi-tui/dist/tui.js +72 -16
  262. package/node_modules/@earendil-works/pi-tui/dist/tui.js.map +1 -1
  263. package/node_modules/@earendil-works/pi-tui/dist/utils.d.ts +1 -4
  264. package/node_modules/@earendil-works/pi-tui/dist/utils.d.ts.map +1 -1
  265. package/node_modules/@earendil-works/pi-tui/dist/utils.js +1 -7
  266. package/node_modules/@earendil-works/pi-tui/dist/utils.js.map +1 -1
  267. package/node_modules/@earendil-works/pi-tui/package.json +1 -1
  268. package/npm-shrinkwrap.json +12 -12
  269. package/package.json +5 -5
  270. package/dist/core/experimental.d.ts +0 -2
  271. package/dist/core/experimental.d.ts.map +0 -1
  272. package/dist/core/experimental.js +0 -4
  273. package/dist/core/experimental.js.map +0 -1
  274. package/dist/core/extensions/builtin/compaction/overflow-detection.d.ts +0 -11
  275. package/dist/core/extensions/builtin/compaction/overflow-detection.d.ts.map +0 -1
  276. package/dist/core/extensions/builtin/compaction/overflow-detection.js +0 -40
  277. package/dist/core/extensions/builtin/compaction/overflow-detection.js.map +0 -1
  278. package/dist/core/extensions/builtin/system-messages.d.ts +0 -47
  279. package/dist/core/extensions/builtin/system-messages.d.ts.map +0 -1
  280. package/dist/core/extensions/builtin/system-messages.js +0 -117
  281. package/dist/core/extensions/builtin/system-messages.js.map +0 -1
  282. package/dist/core/index.d.ts +0 -13
  283. package/dist/core/index.d.ts.map +0 -1
  284. package/dist/core/index.js +0 -13
  285. package/dist/core/index.js.map +0 -1
package/docs/sdk.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  # SDK
4
4
 
5
- The SDK provides programmatic access to pi's agent capabilities. Use it to embed senpi in other applications, build custom interfaces, or integrate with automated workflows.
5
+ The SDK provides programmatic access to senpi's agent capabilities. Use it to embed senpi in other applications, build custom interfaces, or integrate with automated workflows.
6
6
 
7
7
  **Example use cases:**
8
8
  - Build a custom UI (web, desktop, mobile)
@@ -209,7 +209,7 @@ await session.prompt("What files are here?");
209
209
 
210
210
  // With images
211
211
  await session.prompt("What's in this image?", {
212
- images: [{ type: "image", source: { type: "base64", mediaType: "image/png", data: "..." } }]
212
+ images: [{ type: "image", data: "base64-encoded-data", mimeType: "image/png" }]
213
213
  });
214
214
 
215
215
  // During streaming: must specify how to queue the message
@@ -473,7 +473,7 @@ Specify which built-in tools to enable:
473
473
  - `noTools: "builtin"` disables default built-ins while keeping extension and custom tools enabled
474
474
  - `excludeTools` disables specific built-in, extension, or custom tool names after any `tools` allowlist is applied
475
475
 
476
- The `edit` tool returns `details.diff` for Pi's TUI display and `details.patch` as a standard unified patch for SDK consumers.
476
+ The `edit` tool returns `details.diff` for senpi's TUI display and `details.patch` as a standard unified patch for SDK consumers.
477
477
 
478
478
  ```typescript
479
479
  import { createAgentSession } from "@code-yeongyu/senpi";
@@ -600,6 +600,7 @@ eventBus.on("my-extension:status", (data) => console.log(data));
600
600
  ```typescript
601
601
  import {
602
602
  createAgentSession,
603
+ createSyntheticSourceInfo,
603
604
  DefaultResourceLoader,
604
605
  type Skill,
605
606
  } from "@code-yeongyu/senpi";
@@ -609,7 +610,8 @@ const customSkill: Skill = {
609
610
  description: "Custom instructions",
610
611
  filePath: "/path/to/SKILL.md",
611
612
  baseDir: "/path/to",
612
- source: "custom",
613
+ sourceInfo: createSyntheticSourceInfo("/path/to/SKILL.md", { source: "sdk" }),
614
+ disableModelInvocation: false,
613
615
  };
614
616
 
615
617
  const loader = new DefaultResourceLoader({
@@ -650,6 +652,7 @@ const { session } = await createAgentSession({ resourceLoader: loader });
650
652
  ```typescript
651
653
  import {
652
654
  createAgentSession,
655
+ createSyntheticSourceInfo,
653
656
  DefaultResourceLoader,
654
657
  type PromptTemplate,
655
658
  } from "@code-yeongyu/senpi";
@@ -657,7 +660,8 @@ import {
657
660
  const customCommand: PromptTemplate = {
658
661
  name: "deploy",
659
662
  description: "Deploy the application",
660
- source: "(custom)",
663
+ filePath: "/virtual/prompts/deploy.md",
664
+ sourceInfo: createSyntheticSourceInfo("/virtual/prompts/deploy.md", { source: "sdk" }),
661
665
  content: "# Deploy\n\n1. Build\n2. Test\n3. Deploy",
662
666
  };
663
667
 
@@ -714,7 +718,7 @@ const { session: opened } = await createAgentSession({
714
718
 
715
719
  // List sessions
716
720
  const currentProjectSessions = await SessionManager.list(process.cwd());
717
- const allSessions = await SessionManager.listAll(process.cwd());
721
+ const allSessions = await SessionManager.listAll(); // All sessions across all projects
718
722
 
719
723
  // Session replacement API for /new, /resume, /fork, /clone, and import flows.
720
724
  const createRuntime: CreateAgentSessionRuntimeFactory = async ({ cwd, sessionManager, sessionStartEvent }) => {
@@ -756,12 +760,12 @@ const sm = SessionManager.open("/path/to/session.jsonl");
756
760
 
757
761
  // Session listing
758
762
  const currentProjectSessions = await SessionManager.list(process.cwd());
759
- const allSessions = await SessionManager.listAll(process.cwd());
763
+ const allSessions = await SessionManager.listAll(); // All sessions across all projects
760
764
 
761
765
  // Tree traversal
762
766
  const entries = sm.getEntries(); // All entries (excludes header)
763
767
  const tree = sm.getTree(); // Full tree structure
764
- const path = sm.getPath(); // Path from root to current leaf
768
+ const branch = sm.getBranch(); // Entries from root to current leaf
765
769
  const leaf = sm.getLeafEntry(); // Current leaf entry
766
770
  const entry = sm.getEntry(id); // Get entry by ID
767
771
  const children = sm.getChildren(id); // Direct children of entry
@@ -1076,7 +1080,7 @@ See [RPC documentation](rpc.md) for the JSON protocol.
1076
1080
  For subprocess-based integration without building with the SDK, use the CLI directly:
1077
1081
 
1078
1082
  ```bash
1079
- pi --mode rpc --no-session
1083
+ senpi --mode rpc --no-session
1080
1084
  ```
1081
1085
 
1082
1086
  See [RPC documentation](rpc.md) for the JSON protocol.
package/docs/security.md CHANGED
@@ -6,17 +6,21 @@ Pi is a local coding agent. It runs with the permissions of the user account tha
6
6
 
7
7
  Project trust controls whether pi loads project-local settings, resources, packages, and extensions. It is not a sandbox and it does not restrict what the model can ask tools to do after you start working in a directory.
8
8
 
9
- Pi considers a project to have trust inputs when it finds any of these from the current working directory:
9
+ Pi considers a project to have resources that require trust when it finds any of these from the current working directory:
10
10
 
11
- - `.pi/` in the current directory
12
- - `.agents/skills` in the current directory or an ancestor directory
11
+ - `.senpi/settings.json`
12
+ - `.senpi/extensions`, `.senpi/skills`, `.senpi/prompts`, or `.senpi/themes`
13
+ - `.senpi/SYSTEM.md` or `.senpi/APPEND_SYSTEM.md`
14
+ - project `.agents/skills` in the current directory or an ancestor directory
13
15
 
14
- When an interactive session starts in a project with configs in `.pi` or `.agents/skills` and no saved decision for the current directory or a parent directory, pi follows `defaultProjectTrust` from global settings. The default value is `"ask"`, which asks whether to trust the project when UI is available. Saved decisions are stored by canonical directory in `~/.pi/agent/trust.json`, and the closest saved decision on the current or parent path applies before the global default.
16
+ A bare `.senpi` directory does not count as a project resource that requires trust.
15
17
 
16
- Trusting a project allows pi to load trust-gated project inputs, including:
18
+ When an interactive session starts in a project with resources that require trust and no saved decision for the current directory or a parent directory, pi follows `defaultProjectTrust` from global settings. The default value is `"ask"`, which asks whether to trust the project when UI is available. Saved decisions are stored by canonical directory in `~/.senpi/agent/trust.json`, and the closest saved decision on the current or parent path applies before the global default.
17
19
 
18
- - `.pi/settings.json`
19
- - `.pi` resources such as extensions, skills, prompt templates, themes, and system prompt files
20
+ Trusting a project allows pi to load project resources that require trust, including:
21
+
22
+ - `.senpi/settings.json`
23
+ - `.senpi` resources such as extensions, skills, prompt templates, themes, and system prompt files
20
24
  - missing project packages configured through project settings
21
25
  - project-local extensions and project package-managed extensions
22
26
 
@@ -38,10 +42,10 @@ For untrusted repositories, generated code you do not intend to monitor closely,
38
42
 
39
43
  Common patterns are documented in [Containerization](containerization.md):
40
44
 
41
- - run the whole `pi` process inside OpenShell or Docker
42
- - run host pi while routing built-in tool execution into a Gondolin micro-VM
45
+ - run the whole `senpi` process inside OpenShell or Docker
46
+ - run host senpi while routing built-in tool execution into a Gondolin micro-VM
43
47
  - mount only the workspace paths the agent should access
44
- - avoid mounting host `~/.pi/agent` unless the container should access host sessions, settings, and credentials
48
+ - avoid mounting host `~/.senpi/agent` unless the container should access host sessions, settings, and credentials
45
49
  - pass the minimum required API keys or use short-lived credentials
46
50
  - restrict network access when the task does not need it
47
51
  - review diffs and outputs before copying results back to trusted systems
@@ -14,7 +14,7 @@ Where `<path>` is the working directory with `/` replaced by `-`.
14
14
 
15
15
  Sessions can be removed by deleting their `.jsonl` files under `~/.senpi/agent/sessions/`.
16
16
 
17
- Pi also supports deleting sessions interactively from `/resume` (select a session and press `Ctrl+D`, then confirm). When available, senpi uses the `trash` CLI to avoid permanent deletion.
17
+ Senpi also supports deleting sessions interactively from `/resume` (select a session and press `Ctrl+D`, then confirm). When available, senpi uses the `trash` CLI to avoid permanent deletion.
18
18
 
19
19
  ## Session Version
20
20
 
@@ -116,7 +116,7 @@ interface Usage {
116
116
  }
117
117
  ```
118
118
 
119
- ### Extended Message Types (from pi-coding-agent)
119
+ ### Extended Message Types (from @code-yeongyu/senpi)
120
120
 
121
121
  ```typescript
122
122
  interface BashExecutionMessage {
@@ -233,7 +233,7 @@ Created when context is compacted. Stores a summary of earlier messages.
233
233
 
234
234
  Optional fields:
235
235
  - `details`: Implementation-specific data (e.g., `{ readFiles: string[], modifiedFiles: string[] }` for default, or custom data for extensions)
236
- - `fromHook`: `true` if generated by an extension, `false`/`undefined` if pi-generated (legacy field name)
236
+ - `fromHook`: `true` if generated by an extension, `false`/`undefined` if senpi-generated (legacy field name)
237
237
 
238
238
  ### BranchSummaryEntry
239
239
 
@@ -245,7 +245,7 @@ Created when switching branches via `/tree` with an LLM generated summary of the
245
245
 
246
246
  Optional fields:
247
247
  - `details`: File tracking data (`{ readFiles: string[], modifiedFiles: string[] }`) for default, or custom data for extensions
248
- - `fromHook`: `true` if generated by an extension, `false`/`undefined` if pi-generated (legacy field name)
248
+ - `fromHook`: `true` if generated by an extension, `false`/`undefined` if senpi-generated (legacy field name)
249
249
 
250
250
  ### CustomEntry
251
251
 
package/docs/sessions.md CHANGED
@@ -1,18 +1,18 @@
1
1
  # Sessions
2
2
 
3
- Pi saves conversations as sessions so you can continue work, branch from earlier turns, and revisit previous paths.
3
+ Senpi saves conversations as sessions so you can continue work, branch from earlier turns, and revisit previous paths.
4
4
 
5
5
  ## Session Storage
6
6
 
7
- Sessions auto-save to `~/.pi/agent/sessions/`, organized by working directory. Each session is a JSONL file with a tree structure.
7
+ Sessions auto-save to `~/.senpi/agent/sessions/`, organized by working directory. Each session is a JSONL file with a tree structure.
8
8
 
9
9
  ```bash
10
- pi -c # Continue most recent session
11
- pi -r # Browse and select from past sessions
12
- pi --no-session # Ephemeral mode; do not save
13
- pi --name "my task" # Set session display name at startup
14
- pi --session <path|id> # Use a specific session file or partial session ID
15
- pi --fork <path|id> # Fork a session file or partial session ID into a new session
10
+ senpi -c # Continue most recent session
11
+ senpi -r # Browse and select from past sessions
12
+ senpi --no-session # Ephemeral mode; do not save
13
+ senpi --name "my task" # Set session display name at startup
14
+ senpi --session <path|id> # Use a specific session file or partial session ID
15
+ senpi --fork <path|id> # Fork a session file or partial session ID into a new session
16
16
  ```
17
17
 
18
18
  Use `/session` in interactive mode to see the current session file, session ID, message count, tokens, and cost.
@@ -36,7 +36,7 @@ For the JSONL file format and SessionManager API, see [Session Format](session-f
36
36
 
37
37
  ## Resuming and Deleting Sessions
38
38
 
39
- `/resume` opens an interactive session picker for the current project. `pi -r` opens the same picker at startup.
39
+ `/resume` opens an interactive session picker for the current project. `senpi -r` opens the same picker at startup.
40
40
 
41
41
  In the picker you can:
42
42
 
@@ -47,7 +47,7 @@ In the picker you can:
47
47
  - rename with Ctrl+R
48
48
  - delete with Ctrl+D, then confirm
49
49
 
50
- When available, pi uses the `trash` CLI for deletion instead of permanently removing files.
50
+ When available, senpi uses the `trash` CLI for deletion instead of permanently removing files.
51
51
 
52
52
  ## Naming Sessions
53
53
 
@@ -60,11 +60,11 @@ Use `/name <name>` to set a human-readable session name:
60
60
  Set the name at startup with `--name` or `-n`:
61
61
 
62
62
  ```bash
63
- pi --name "Refactor auth module"
64
- pi --name "CI audit" -p "Review this build failure"
63
+ senpi --name "Refactor auth module"
64
+ senpi --name "CI audit" -p "Review this build failure"
65
65
  ```
66
66
 
67
- Named sessions are easier to find in `/resume` and `pi -r`.
67
+ Named sessions are easier to find in `/resume` and `senpi -r`.
68
68
 
69
69
  ## Branching with `/tree`
70
70
 
@@ -128,7 +128,7 @@ Use `/tree` when you want to keep alternatives together. Use `/fork` or `/clone`
128
128
 
129
129
  ## Branch Summaries
130
130
 
131
- When `/tree` switches away from one branch to another, pi can summarize the abandoned branch and attach that summary at the new position. This preserves important context from the path you left without replaying the whole branch.
131
+ When `/tree` switches away from one branch to another, senpi can summarize the abandoned branch and attach that summary at the new position. This preserves important context from the path you left without replaying the whole branch.
132
132
 
133
133
  When prompted, choose one of:
134
134
 
package/docs/settings.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Settings
2
2
 
3
- Pi uses JSON settings files with project settings overriding global settings.
3
+ Senpi uses JSON settings files with project settings overriding global settings.
4
4
 
5
5
  | Location | Scope |
6
6
  |----------|-------|
@@ -11,15 +11,15 @@ Edit directly or use `/settings` for common options.
11
11
 
12
12
  ## Project Trust
13
13
 
14
- On interactive startup, pi asks before trusting a project folder that contains trust-gated project inputs and has no saved decision for the folder or a parent folder in `~/.pi/agent/trust.json`. Trusting a project allows pi to load `.pi/settings.json` and `.pi` resources, install missing project packages, and execute project extensions.
14
+ On interactive startup, senpi asks before trusting a project folder that contains project-local settings, resources, or project `.agents/skills` and has no saved decision for the folder or a parent folder in `~/.senpi/agent/trust.json`. Trusting a project allows senpi to load `.senpi/settings.json` and `.senpi` resources, install missing project packages, and execute project extensions.
15
15
 
16
- Non-interactive modes (`-p`, `--mode json`, and `--mode rpc`) do not show a trust prompt. Without an applicable saved trust decision, they use `defaultProjectTrust` from global settings: `ask` (default) and `never` ignore trust-gated project inputs, while `always` trusts them. Pass `--approve`/`-a` or `--no-approve`/`-na` to override project trust for one run.
16
+ Non-interactive modes (`-p`, `--mode json`, and `--mode rpc`) do not show a trust prompt. Without an applicable saved trust decision, they use `defaultProjectTrust` from global settings: `ask` (default) and `never` ignore those project resources, while `always` trusts them. Pass `--approve`/`-a` or `--no-approve`/`-na` to override project trust for one run.
17
17
 
18
- If no extension or saved decision applies, `defaultProjectTrust` controls the fallback behavior. Set it to `"ask"`, `"always"`, or `"never"` in `~/.pi/agent/settings.json`, or change it with `/settings`.
18
+ If no extension or saved decision applies, `defaultProjectTrust` controls the fallback behavior. Set it to `"ask"`, `"always"`, or `"never"` in `~/.senpi/agent/settings.json`, or change it with `/settings`.
19
19
 
20
- `pi config` and package commands use the same project trust flow. Pass `--approve` to trust project-local settings for one command or `--no-approve` to ignore them.
20
+ `senpi config` and package commands use the same project trust flow, except `senpi update` never prompts. Pass `--approve` to trust project-local settings for one command or `--no-approve` to ignore them.
21
21
 
22
- Use `/trust` in interactive mode to save a project trust decision for future sessions, including trust for the immediate parent folder. It writes `~/.pi/agent/trust.json` only; the current session is not reloaded, so restart pi for changes to take effect.
22
+ Use `/trust` in interactive mode to save a project trust decision for future sessions, including trust for the immediate parent folder. It writes `~/.senpi/agent/trust.json` only; the current session is not reloaded, so restart senpi for changes to take effect.
23
23
 
24
24
  ## All Settings
25
25
 
@@ -69,6 +69,8 @@ When this value is anything other than `"auto"`, it overrides any model-level `p
69
69
  | `defaultProjectTrust` | string | `"ask"` | Fallback project trust behavior: `"ask"`, `"always"`, or `"never"`. Global setting only |
70
70
  | `collapseChangelog` | boolean | `false` | Show condensed changelog after updates |
71
71
  | `enableInstallTelemetry` | boolean | `true` | Send an anonymous install/update version ping after first install or changelog-detected updates. This does not control update checks |
72
+ | `enableAnalytics` | boolean | `false` | Opt-in analytics data sharing. Currently only asked for during the experimental first-time setup (`PI_EXPERIMENTAL=1`) |
73
+ | `trackingId` | string | - | Analytics tracking identifier, generated when `enableAnalytics` is turned on |
72
74
  | `doubleEscapeAction` | string | `"tree"` | Action for double-escape: `"tree"`, `"fork"`, or `"none"` |
73
75
  | `treeFilterMode` | string | `"default"` | Default filter for `/tree`: `"default"`, `"no-tools"`, `"user-only"`, `"labeled-only"`, `"all"` |
74
76
  | `editorPaddingX` | number | `0` | Horizontal padding for input editor (0-3) |
@@ -77,9 +79,9 @@ When this value is anything other than `"auto"`, it overrides any model-level `p
77
79
 
78
80
  ### Telemetry and update checks
79
81
 
80
- `enableInstallTelemetry` only controls the anonymous install/update ping to `https://pi.dev/api/report-install`. Opting out of telemetry does not disable update checks; Pi can still fetch `https://pi.dev/api/latest-version` to look for the latest version.
82
+ `enableInstallTelemetry` only controls the anonymous install/update ping to `https://pi.dev/api/report-install`. Opting out of telemetry does not disable update checks; senpi can still fetch the latest published `@code-yeongyu/senpi` version from the npm registry (`registry.npmjs.org`).
81
83
 
82
- Set `PI_SKIP_VERSION_CHECK=1` to disable the Pi version update check. Use `--offline` or `PI_OFFLINE=1` to disable all startup network operations described here, including update checks, package update checks, and install/update telemetry.
84
+ Set `PI_SKIP_VERSION_CHECK=1` to disable the senpi version update check. Use `--offline` or `PI_OFFLINE=1` to disable all startup network operations described here, including update checks, package update checks, and install/update telemetry.
83
85
 
84
86
  ### Warnings
85
87
 
@@ -133,7 +135,7 @@ Set `PI_SKIP_VERSION_CHECK=1` to disable the Pi version update check. Use `--off
133
135
 
134
136
  When a provider requests a retry delay longer than `retry.provider.maxRetryDelayMs` (e.g., Google's "quota will reset after 5h"), the request fails immediately with an informative error instead of waiting silently. Set to `0` to disable the cap.
135
137
 
136
- Keep `retry.provider.maxRetries` at `0` unless provider-level retries are explicitly needed. Setting it above `0` can make SDK/provider retries handle out-of-usage-limit errors before Pi sees them, which may block the agent until the provider quota resets in some circumstances.
138
+ Keep `retry.provider.maxRetries` at `0` unless provider-level retries are explicitly needed. Setting it above `0` can make SDK/provider retries handle out-of-usage-limit errors before senpi sees them, which may block the agent until the provider quota resets in some circumstances.
137
139
 
138
140
  ```json
139
141
  {
@@ -200,7 +202,7 @@ When unset, senpi leaves provider payloads unchanged. This setting currently app
200
202
  }
201
203
  ```
202
204
 
203
- `npmCommand` is used for all npm package-manager operations, including installs, uninstalls, and dependency installs inside git packages. User-scoped npm packages install under `~/.pi/agent/npm/`; project-scoped npm packages install under `.pi/npm/`. Use argv-style entries exactly as the process should be launched. When `npmCommand` is configured, git package dependency installs use plain `install` to avoid npm-specific flags in wrappers or alternate package managers.
205
+ `npmCommand` is used for all npm package-manager operations, including installs, uninstalls, and dependency installs inside git packages. User-scoped npm packages install under `~/.senpi/agent/npm/`; project-scoped npm packages install under `.senpi/npm/`. Use argv-style entries exactly as the process should be launched. When `npmCommand` is configured, git package dependency installs use plain `install` to avoid npm-specific flags in wrappers or alternate package managers.
204
206
 
205
207
  ### Sessions
206
208
 
@@ -209,10 +211,10 @@ When unset, senpi leaves provider payloads unchanged. This setting currently app
209
211
  | `sessionDir` | string | - | Directory where session files are stored. Accepts absolute or relative paths, plus `~`. |
210
212
 
211
213
  ```json
212
- { "sessionDir": ".pi/sessions" }
214
+ { "sessionDir": ".senpi/sessions" }
213
215
  ```
214
216
 
215
- When multiple sources specify a session directory, precedence is `--session-dir`, `PI_CODING_AGENT_SESSION_DIR`, then `sessionDir` in settings.json.
217
+ When multiple sources specify a session directory, precedence is `--session-dir`, `SENPI_CODING_AGENT_SESSION_DIR`, then `sessionDir` in settings.json.
216
218
 
217
219
  ### Model Cycling
218
220
 
package/docs/skills.md CHANGED
@@ -1,10 +1,10 @@
1
- > pi can create skills. Ask it to build one for your use case.
1
+ > senpi can create skills. Ask it to build one for your use case.
2
2
 
3
3
  # Skills
4
4
 
5
5
  Skills are self-contained capability packages that the agent loads on-demand. A skill provides specialized workflows, setup instructions, helper scripts, and reference documentation for specific tasks.
6
6
 
7
- Pi implements the [Agent Skills standard](https://agentskills.io/specification), warning about most violations but remaining lenient. Pi allows skill names to differ from their parent directory even though the standard disallows it; that rule is suboptimal for shared skill directories used across multiple agent harnesses.
7
+ Senpi implements the [Agent Skills standard](https://agentskills.io/specification), warning about most violations but remaining lenient. Senpi allows skill names to differ from their parent directory even though the standard disallows it; that rule is suboptimal for shared skill directories used across multiple agent harnesses.
8
8
 
9
9
  ## Table of Contents
10
10
 
@@ -21,7 +21,7 @@ Pi implements the [Agent Skills standard](https://agentskills.io/specification),
21
21
 
22
22
  > **Security:** Skills can instruct the model to perform any action and may include executable code the model invokes. Review skill content before use.
23
23
 
24
- Pi loads skills from:
24
+ Senpi loads skills from:
25
25
 
26
26
  - Global:
27
27
  - `~/.senpi/agent/skills/`
@@ -63,7 +63,7 @@ For project-level Claude Code skills, add to `.senpi/settings.json`:
63
63
 
64
64
  ## How Skills Work
65
65
 
66
- 1. At startup, pi scans skill locations and extracts names and descriptions
66
+ 1. At startup, senpi scans skill locations and extracts names and descriptions
67
67
  2. The system prompt includes available skills in XML format per the [specification](https://agentskills.io/integrate-skills)
68
68
  3. When a task matches, the agent uses `read` to load the full SKILL.md (models don't always do this; use prompting or `/skill:name` to force it)
69
69
  4. The agent follows the instructions, using relative paths to reference scripts and assets
@@ -140,12 +140,12 @@ Per the [Agent Skills specification](https://agentskills.io/specification#frontm
140
140
 
141
141
  | Field | Required | Description |
142
142
  |-------|----------|-------------|
143
- | `name` | Yes | Max 64 chars. Lowercase a-z, 0-9, hyphens. Unlike the standard, Pi does not require this to match the parent directory because that standard requirement is suboptimal for shared skill directories. |
143
+ | `name` | Yes | Max 64 chars. Lowercase a-z, 0-9, hyphens. Unlike the standard, Senpi does not require this to match the parent directory because that standard requirement is suboptimal for shared skill directories. |
144
144
  | `description` | Yes | Max 1024 chars. What the skill does and when to use it. |
145
145
  | `license` | No | License name or reference to bundled file. |
146
146
  | `compatibility` | No | Max 500 chars. Environment requirements. |
147
147
  | `metadata` | No | Arbitrary key-value mapping. |
148
- | `allowed-tools` | No | Space-delimited list of pre-approved tools (experimental). |
148
+ | `allowed-tools` | No | Spec field for pre-approved tools. Senpi does not implement it; the field is ignored. |
149
149
  | `disable-model-invocation` | No | When `true`, skill is hidden from system prompt. Users must use `/skill:name`. |
150
150
 
151
151
  ### Name Rules
@@ -154,7 +154,7 @@ Per the [Agent Skills specification](https://agentskills.io/specification#frontm
154
154
  - Lowercase letters, numbers, hyphens only
155
155
  - No leading/trailing hyphens
156
156
  - No consecutive hyphens
157
- Pi does not require the name to match the parent directory. The Agent Skills standard does, but that requirement is suboptimal for shared skill directories used by multiple tools.
157
+ Senpi does not require the name to match the parent directory. The Agent Skills standard does, but that requirement is suboptimal for shared skill directories used by multiple tools.
158
158
 
159
159
  Valid: `pdf-processing`, `data-analysis`, `code-review`
160
160
  Invalid: `PDF-Processing`, `-pdf`, `pdf--processing`
@@ -175,7 +175,7 @@ description: Helps with PDFs.
175
175
 
176
176
  ## Validation
177
177
 
178
- Pi validates skills against the Agent Skills standard. Most issues produce warnings but still load the skill:
178
+ Senpi validates skills against the Agent Skills standard. Most issues produce warnings but still load the skill:
179
179
 
180
180
  - Name exceeds 64 characters or contains invalid characters
181
181
  - Name starts/ends with hyphen or has consecutive hyphens
@@ -66,7 +66,7 @@ return config
66
66
 
67
67
  If you already have a `config.keys` table, add the entry to it.
68
68
 
69
- On WSL, WezTerm may require a visible hardware cursor for IME candidate window positioning. If CJK IME candidates do not follow the text cursor, set `PI_HARDWARE_CURSOR=1` before running pi or set `showHardwareCursor` to `true` in settings.
69
+ On WSL, WezTerm may require a visible hardware cursor for IME candidate window positioning. If CJK IME candidates do not follow the text cursor, set `PI_HARDWARE_CURSOR=1` before running senpi or set `showHardwareCursor` to `true` in settings.
70
70
 
71
71
  ## Alacritty
72
72
 
@@ -143,6 +143,6 @@ For the best experience, use a terminal that supports the Kitty keyboard protoco
143
143
 
144
144
  The built-in terminal has limited escape sequence support. Shift+Enter cannot be distinguished from Enter in IntelliJ's terminal.
145
145
 
146
- If you want the hardware cursor visible, set `PI_HARDWARE_CURSOR=1` before running pi (disabled by default for compatibility).
146
+ If you want the hardware cursor visible, set `PI_HARDWARE_CURSOR=1` before running senpi (disabled by default for compatibility).
147
147
 
148
148
  Consider using a dedicated terminal emulator for the best experience.
package/docs/termux.md CHANGED
@@ -16,14 +16,14 @@ pkg update && pkg upgrade
16
16
  # Install dependencies
17
17
  pkg install nodejs termux-api git
18
18
 
19
- # Install pi
19
+ # Install senpi
20
20
  npm install -g @code-yeongyu/senpi
21
21
 
22
22
  # Create config directory
23
23
  mkdir -p ~/.senpi/agent
24
24
 
25
- # Run pi
26
- pi
25
+ # Run senpi
26
+ senpi
27
27
  ```
28
28
 
29
29
  ## Clipboard Support
package/docs/tui.md CHANGED
@@ -742,7 +742,7 @@ ctx.ui.setStatus("my-ext", ctx.ui.theme.fg("accent", "● active"));
742
742
  ctx.ui.setStatus("my-ext", undefined);
743
743
  ```
744
744
 
745
- **Examples:** [status-line.ts](../examples/extensions/status-line.ts), [plan-mode.ts](../examples/extensions/plan-mode.ts), [preset.ts](../examples/extensions/preset.ts)
745
+ **Examples:** [status-line.ts](../examples/extensions/status-line.ts), [plan-mode/](../examples/extensions/plan-mode/), [preset.ts](../examples/extensions/preset.ts)
746
746
 
747
747
  ### Pattern 4b: Working Indicator Customization
748
748
 
@@ -766,7 +766,7 @@ ctx.ui.setWorkingIndicator({
766
766
  // Hide the indicator entirely
767
767
  ctx.ui.setWorkingIndicator({ frames: [] });
768
768
 
769
- // Restore pi's default spinner
769
+ // Restore senpi's default spinner
770
770
  ctx.ui.setWorkingIndicator();
771
771
  ```
772
772
 
@@ -802,7 +802,7 @@ ctx.ui.setWidget("my-widget", (_tui, theme) => {
802
802
  ctx.ui.setWidget("my-widget", undefined);
803
803
  ```
804
804
 
805
- **Examples:** [plan-mode.ts](../examples/extensions/plan-mode.ts)
805
+ **Examples:** [plan-mode/](../examples/extensions/plan-mode/)
806
806
 
807
807
  ### Pattern 6: Custom Footer
808
808
 
@@ -919,7 +919,7 @@ export default function (pi: ExtensionAPI) {
919
919
  - **Selection UI**: [examples/extensions/preset.ts](../examples/extensions/preset.ts) - SelectList with DynamicBorder framing
920
920
  - **Async with cancel**: [examples/extensions/qna.ts](../examples/extensions/qna.ts) - BorderedLoader for LLM calls
921
921
  - **Settings toggles**: [examples/extensions/tools.ts](../examples/extensions/tools.ts) - SettingsList for tool enable/disable
922
- - **Status indicators**: [examples/extensions/plan-mode.ts](../examples/extensions/plan-mode.ts) - setStatus and setWidget
922
+ - **Status indicators**: [examples/extensions/plan-mode/](../examples/extensions/plan-mode/) - setStatus and setWidget
923
923
  - **Working indicator**: [examples/extensions/working-indicator.ts](../examples/extensions/working-indicator.ts) - setWorkingIndicator
924
924
  - **Custom footer**: [examples/extensions/custom-footer.ts](../examples/extensions/custom-footer.ts) - setFooter with stats
925
925
  - **Custom editor**: [examples/extensions/modal-editor.ts](../examples/extensions/modal-editor.ts) - Vim-like modal editing