@oh-my-pi-zen/pi-coding-agent 17.2.13-zen.2 → 17.2.15-zen.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 (243) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/{CHANGELOG-r6pnxe8j.md → CHANGELOG-nm01d7kw.md} +16 -0
  3. package/dist/cli.js +5045 -5344
  4. package/dist/types/cleanse/agent.d.ts +3 -0
  5. package/dist/types/cleanse/checkers.d.ts +21 -1
  6. package/dist/types/cleanse/index.d.ts +4 -0
  7. package/dist/types/cleanse/parsers.d.ts +3 -1
  8. package/dist/types/cli/args.d.ts +1 -0
  9. package/dist/types/cli/cleanse-picker.d.ts +17 -0
  10. package/dist/types/cli/command-help.d.ts +3 -0
  11. package/dist/types/cli/progress-reporter.d.ts +19 -0
  12. package/dist/types/commands/cleanse.d.ts +11 -0
  13. package/dist/types/commands/compress.d.ts +37 -0
  14. package/dist/types/commands/launch-help.d.ts +3 -0
  15. package/dist/types/commands/launch.d.ts +3 -0
  16. package/dist/types/compress/index.d.ts +27 -0
  17. package/dist/types/compress/protocol.d.ts +49 -0
  18. package/dist/types/compress/session.d.ts +15 -0
  19. package/dist/types/compress/types.d.ts +54 -0
  20. package/dist/types/config/settings-schema.d.ts +10 -0
  21. package/dist/types/internal-urls/local-protocol.d.ts +8 -0
  22. package/dist/types/mcp/transports/header-policy.d.ts +8 -0
  23. package/dist/types/mcp/transports/http.d.ts +2 -0
  24. package/dist/types/mcp/types.d.ts +19 -0
  25. package/dist/types/modes/components/late-diagnostics-message.d.ts +2 -0
  26. package/dist/types/modes/components/todo-reminder.d.ts +2 -0
  27. package/dist/types/modes/components/tool-activity.d.ts +17 -0
  28. package/dist/types/modes/components/transcript-container.d.ts +2 -0
  29. package/dist/types/modes/components/ttsr-notification.d.ts +2 -0
  30. package/dist/types/modes/interactive-mode.d.ts +3 -1
  31. package/dist/types/modes/types.d.ts +3 -1
  32. package/dist/types/modes/utils/transcript-render-helpers.d.ts +2 -1
  33. package/dist/types/modes/utils/ui-helpers.d.ts +3 -1
  34. package/dist/types/session/agent-session-types.d.ts +2 -0
  35. package/dist/types/session/agent-session.d.ts +2 -0
  36. package/dist/types/session/session-tools.d.ts +13 -0
  37. package/dist/types/tools/browser/relay/bridge.d.ts +5 -0
  38. package/dist/types/tools/builtin-names.d.ts +1 -2
  39. package/dist/types/tools/index.d.ts +1 -0
  40. package/dist/types/tools/think.d.ts +41 -0
  41. package/dist/types/utils/zip.d.ts +19 -9
  42. package/package.json +13 -13
  43. package/src/cleanse/agent.ts +67 -2
  44. package/src/cleanse/checkers.ts +252 -21
  45. package/src/cleanse/index.ts +90 -36
  46. package/src/cleanse/parsers.ts +243 -20
  47. package/src/cleanse/prompts/discovery.md +74 -0
  48. package/src/cli/args.ts +3 -0
  49. package/src/cli/cleanse-picker.ts +86 -0
  50. package/src/cli/command-help.ts +4 -0
  51. package/src/cli/flag-tables.ts +1 -0
  52. package/src/cli/gallery-fixtures/agentic.ts +16 -0
  53. package/src/{cleanse/progress.ts → cli/progress-reporter.ts} +12 -7
  54. package/src/cli-commands.ts +5 -0
  55. package/src/commands/cleanse.ts +19 -4
  56. package/src/commands/compress.ts +45 -0
  57. package/src/commands/launch-help.ts +3 -0
  58. package/src/commit/agentic/prompts/analyze-file.md +6 -6
  59. package/src/commit/agentic/prompts/session-user.md +4 -4
  60. package/src/compress/index.ts +318 -0
  61. package/src/compress/prompts/request.md +11 -0
  62. package/src/compress/prompts/review.md +17 -0
  63. package/src/compress/prompts/system.md +81 -0
  64. package/src/compress/protocol.ts +210 -0
  65. package/src/compress/session.ts +72 -0
  66. package/src/compress/types.ts +59 -0
  67. package/src/config/settings-schema.ts +11 -0
  68. package/src/discovery/builtin-rules/go-add-cleanup.md +8 -8
  69. package/src/discovery/builtin-rules/go-exp-promoted.md +8 -8
  70. package/src/discovery/builtin-rules/go-ioutil.md +12 -12
  71. package/src/discovery/builtin-rules/go-new-expr.md +8 -8
  72. package/src/discovery/builtin-rules/go-range-int.md +5 -5
  73. package/src/discovery/builtin-rules/rs-box-leak.md +7 -7
  74. package/src/discovery/builtin-rules/rs-future-prelude.md +4 -4
  75. package/src/discovery/builtin-rules/rs-parking-lot.md +6 -6
  76. package/src/discovery/builtin-rules/ts-no-any.md +5 -5
  77. package/src/discovery/builtin-rules/ts-no-deprecated-leftovers.md +8 -8
  78. package/src/discovery/builtin-rules/ts-no-inline-cast-access.md +13 -14
  79. package/src/discovery/builtin-rules/ts-no-local-is-record.md +7 -7
  80. package/src/discovery/builtin-rules/ts-no-test-timers.md +3 -9
  81. package/src/discovery/builtin-rules/ts-no-tiny-functions.md +7 -7
  82. package/src/discovery/builtin-rules/ts-promise-with-resolvers.md +2 -2
  83. package/src/discovery/builtin-rules/ts-redundant-clear-guard.md +3 -9
  84. package/src/discovery/builtin-rules/ts-set-map.md +2 -4
  85. package/src/internal-urls/local-protocol.ts +42 -0
  86. package/src/live/prompts/live-instructions.md +10 -10
  87. package/src/main.ts +4 -0
  88. package/src/mcp/client.ts +7 -3
  89. package/src/mcp/transports/header-policy.ts +28 -0
  90. package/src/mcp/transports/http.ts +200 -35
  91. package/src/mcp/types.ts +21 -0
  92. package/src/modes/components/chat-transcript-builder.ts +17 -5
  93. package/src/modes/components/late-diagnostics-message.ts +12 -1
  94. package/src/modes/components/todo-reminder.ts +12 -0
  95. package/src/modes/components/tool-activity.ts +45 -0
  96. package/src/modes/components/transcript-container.ts +16 -0
  97. package/src/modes/components/ttsr-notification.ts +12 -0
  98. package/src/modes/controllers/event-controller.ts +3 -6
  99. package/src/modes/controllers/input-controller.ts +6 -6
  100. package/src/modes/controllers/selector-controller.ts +8 -6
  101. package/src/modes/interactive-mode.ts +5 -40
  102. package/src/modes/print-mode.ts +13 -54
  103. package/src/modes/types.ts +1 -1
  104. package/src/modes/utils/transcript-render-helpers.ts +3 -2
  105. package/src/modes/utils/ui-helpers.ts +17 -7
  106. package/src/prompts/advisor/active-repo-watchdog.md +3 -4
  107. package/src/prompts/advisor/advise-tool.md +3 -3
  108. package/src/prompts/advisor/context-files.md +1 -1
  109. package/src/prompts/advisor/system.md +45 -65
  110. package/src/prompts/agents/designer.md +44 -44
  111. package/src/prompts/agents/init.md +18 -18
  112. package/src/prompts/agents/librarian.md +31 -31
  113. package/src/prompts/agents/reviewer.md +34 -39
  114. package/src/prompts/agents/security-reviewer.md +3 -5
  115. package/src/prompts/agents/task.md +11 -12
  116. package/src/prompts/bench.md +2 -5
  117. package/src/prompts/ci-green-request.md +13 -15
  118. package/src/prompts/dry-balance-bench.md +5 -5
  119. package/src/prompts/goals/goal-budget-limit.md +4 -5
  120. package/src/prompts/goals/goal-continuation.md +11 -11
  121. package/src/prompts/goals/goal-mode-active.md +7 -7
  122. package/src/prompts/goals/goal-todo-context.md +2 -2
  123. package/src/prompts/goals/guided-goal-interview.md +18 -24
  124. package/src/prompts/memories/read-path.md +9 -9
  125. package/src/prompts/memories/stage_one_system.md +9 -11
  126. package/src/prompts/review-custom-request.md +8 -11
  127. package/src/prompts/review-headless-request.md +3 -10
  128. package/src/prompts/security/scan-coordinator.md +6 -5
  129. package/src/prompts/security/validate-request.md +4 -7
  130. package/src/prompts/skills/user-invocation.md +2 -2
  131. package/src/prompts/steering/parent-irc.md +1 -1
  132. package/src/prompts/steering/user-interjection.md +1 -3
  133. package/src/prompts/system/active-repo-context.md +4 -2
  134. package/src/prompts/system/agent-creation-architect.md +22 -37
  135. package/src/prompts/system/agent-creation-user.md +3 -3
  136. package/src/prompts/system/auto-continue.md +1 -1
  137. package/src/prompts/system/auto-thinking-difficulty-local.md +5 -7
  138. package/src/prompts/system/auto-thinking-difficulty.md +8 -10
  139. package/src/prompts/system/autolearn-guidance-learn.md +2 -1
  140. package/src/prompts/system/autolearn-guidance.md +5 -4
  141. package/src/prompts/system/autolearn-nudge-autocontinue.md +3 -3
  142. package/src/prompts/system/background-tan-dispatch.md +3 -3
  143. package/src/prompts/system/btw-user.md +2 -2
  144. package/src/prompts/system/commit-message-system.md +8 -6
  145. package/src/prompts/system/eager-task.md +3 -3
  146. package/src/prompts/system/empty-stop-retry.md +1 -1
  147. package/src/prompts/system/gemini-tool-call-reminder.md +5 -5
  148. package/src/prompts/system/interrupted-thinking.md +3 -3
  149. package/src/prompts/system/irc-autoreply.md +1 -1
  150. package/src/prompts/system/irc-incoming.md +3 -3
  151. package/src/prompts/system/manual-continue.md +3 -3
  152. package/src/prompts/system/mcp-xdev-guidance.md +2 -2
  153. package/src/prompts/system/memory-consolidation-system.md +2 -2
  154. package/src/prompts/system/mid-run-todo-nudge.md +1 -1
  155. package/src/prompts/system/orchestrate-notice.md +25 -25
  156. package/src/prompts/system/personalities/default.md +9 -9
  157. package/src/prompts/system/personalities/friendly.md +11 -11
  158. package/src/prompts/system/personalities/pragmatic.md +8 -8
  159. package/src/prompts/system/plan-mode-active.md +61 -64
  160. package/src/prompts/system/plan-mode-approved.md +10 -11
  161. package/src/prompts/system/plan-mode-compact-instructions.md +11 -11
  162. package/src/prompts/system/plan-mode-reference.md +5 -5
  163. package/src/prompts/system/plan-yolo-handoff.md +2 -2
  164. package/src/prompts/system/prewalk-checklist.md +5 -5
  165. package/src/prompts/system/prewalk-continue.md +1 -1
  166. package/src/prompts/system/prewalk-plan.md +8 -9
  167. package/src/prompts/system/project-prompt.md +11 -12
  168. package/src/prompts/system/recap-user.md +1 -1
  169. package/src/prompts/system/resolve-device-reminder.md +1 -1
  170. package/src/prompts/system/rewind-report.md +3 -3
  171. package/src/prompts/system/side-channel-no-tools.md +3 -1
  172. package/src/prompts/system/snapcompact-context-stub.md +1 -1
  173. package/src/prompts/system/snapcompact-system-frames-note.md +1 -1
  174. package/src/prompts/system/snapcompact-system-stub.md +1 -1
  175. package/src/prompts/system/snapcompact-toolresult-note.md +1 -1
  176. package/src/prompts/system/speech-rewrite.md +11 -13
  177. package/src/prompts/system/subagent-async-pending.md +5 -5
  178. package/src/prompts/system/subagent-system-prompt.md +5 -15
  179. package/src/prompts/system/subagent-user-prompt.md +1 -1
  180. package/src/prompts/system/subagent-yield-reminder.md +12 -12
  181. package/src/prompts/system/system-prompt.md +110 -136
  182. package/src/prompts/system/tan-context-switch.md +8 -14
  183. package/src/prompts/system/task-label.md +3 -3
  184. package/src/prompts/system/thinking-loop-redirect.md +6 -6
  185. package/src/prompts/system/title-marker-instruction.md +2 -1
  186. package/src/prompts/system/title-system.md +3 -5
  187. package/src/prompts/system/ttsr-interrupt.md +3 -3
  188. package/src/prompts/system/ttsr-tool-reminder.md +1 -1
  189. package/src/prompts/system/ultrathink-notice.md +1 -1
  190. package/src/prompts/system/unexpected-stop-classifier.md +3 -3
  191. package/src/prompts/system/vibe-mode-active.md +15 -15
  192. package/src/prompts/system/web-search.md +16 -16
  193. package/src/prompts/system/workflow-notice.md +35 -33
  194. package/src/prompts/system/xdev-mount-notice.md +4 -4
  195. package/src/prompts/tools/apply-patch.md +22 -23
  196. package/src/prompts/tools/approve.md +5 -0
  197. package/src/prompts/tools/ask.md +10 -10
  198. package/src/prompts/tools/checkpoint.md +7 -7
  199. package/src/prompts/tools/computer.md +16 -16
  200. package/src/prompts/tools/github.md +12 -12
  201. package/src/prompts/tools/goal.md +8 -9
  202. package/src/prompts/tools/grep.md +5 -5
  203. package/src/prompts/tools/image-attachment-describe-system.md +6 -6
  204. package/src/prompts/tools/image-attachment-describe.md +3 -8
  205. package/src/prompts/tools/image-gen.md +4 -4
  206. package/src/prompts/tools/inspect-image-system.md +10 -10
  207. package/src/prompts/tools/inspect-image.md +10 -13
  208. package/src/prompts/tools/learn.md +4 -4
  209. package/src/prompts/tools/manage-skill.md +9 -6
  210. package/src/prompts/tools/memory-edit.md +8 -8
  211. package/src/prompts/tools/recall.md +4 -4
  212. package/src/prompts/tools/reflect.md +2 -2
  213. package/src/prompts/tools/replace.md +13 -11
  214. package/src/prompts/tools/retain.md +3 -4
  215. package/src/prompts/tools/rewind.md +7 -8
  216. package/src/prompts/tools/rewrite.md +12 -0
  217. package/src/prompts/tools/security-publish.md +5 -1
  218. package/src/prompts/tools/security-scan.md +10 -1
  219. package/src/prompts/tools/task-async-contract.md +7 -1
  220. package/src/prompts/tools/todo.md +27 -25
  221. package/src/prompts/tools/vibe-kill.md +2 -2
  222. package/src/prompts/tools/vibe-list.md +2 -2
  223. package/src/prompts/tools/vibe-send.md +6 -7
  224. package/src/prompts/tools/vibe-spawn.md +8 -6
  225. package/src/prompts/tools/web-search.md +5 -5
  226. package/src/sdk.ts +10 -1
  227. package/src/session/agent-session-types.ts +2 -0
  228. package/src/session/agent-session.ts +28 -0
  229. package/src/session/session-handoff.ts +21 -0
  230. package/src/session/session-tools.ts +47 -0
  231. package/src/tools/browser/relay/bridge.ts +21 -7
  232. package/src/tools/browser/relay/server.ts +3 -0
  233. package/src/tools/browser/tab-supervisor.ts +24 -4
  234. package/src/tools/builtin-names.ts +1 -2
  235. package/src/tools/index.ts +10 -0
  236. package/src/tools/read-format.ts +8 -3
  237. package/src/tools/read.ts +18 -7
  238. package/src/tools/renderers.ts +2 -0
  239. package/src/tools/think.ts +84 -0
  240. package/src/tools/write.ts +1 -1
  241. package/src/utils/file-mentions.ts +8 -2
  242. package/src/utils/zip.ts +858 -94
  243. package/dist/types/cleanse/progress.d.ts +0 -14
package/CHANGELOG.md CHANGED
@@ -2,6 +2,22 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [17.2.15] - 2026-08-12
6
+
7
+ ### Fixed
8
+
9
+ - Browser Relay now surfaces Chrome's actual `chrome.debugger` refusal (e.g. `Cannot access a chrome-extension:// URL of different extension`) instead of only reporting `No page targets available`, so a page-injecting extension blocking attach is diagnosable from the tool error.
10
+
11
+ ## [17.2.14] - 2026-08-11
12
+
13
+ ### Added
14
+
15
+ - Added `externalThinking` setting for private scratchpad reasoning via the new `think` tool
16
+
17
+ ### Fixed
18
+
19
+ - Fixed Browser Relay page commands hanging in npm installs because the published CLI bundle externalized `puppeteer-core` and loaded an unpatched registry copy at runtime; the bundle now embeds the patched Puppeteer implementation used by source and binary builds.
20
+
5
21
  ## [17.2.13-zen.2] - 2026-08-12
6
22
 
7
23
  ### Fixed
@@ -2,6 +2,22 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [17.2.15] - 2026-08-12
6
+
7
+ ### Fixed
8
+
9
+ - Browser Relay now surfaces Chrome's actual `chrome.debugger` refusal (e.g. `Cannot access a chrome-extension:// URL of different extension`) instead of only reporting `No page targets available`, so a page-injecting extension blocking attach is diagnosable from the tool error.
10
+
11
+ ## [17.2.14] - 2026-08-11
12
+
13
+ ### Added
14
+
15
+ - Added `externalThinking` setting for private scratchpad reasoning via the new `think` tool
16
+
17
+ ### Fixed
18
+
19
+ - Fixed Browser Relay page commands hanging in npm installs because the published CLI bundle externalized `puppeteer-core` and loaded an unpatched registry copy at runtime; the bundle now embeds the patched Puppeteer implementation used by source and binary builds.
20
+
5
21
  ## [17.2.13-zen.2] - 2026-08-12
6
22
 
7
23
  ### Fixed