@oh-my-pi/pi-coding-agent 16.1.1 → 16.1.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 (69) hide show
  1. package/CHANGELOG.md +22 -1
  2. package/dist/cli.js +3314 -3338
  3. package/dist/types/cli/bench-cli.d.ts +2 -1
  4. package/dist/types/config/settings-schema.d.ts +1 -1
  5. package/dist/types/main.d.ts +2 -0
  6. package/dist/types/modes/components/assistant-message.d.ts +12 -0
  7. package/dist/types/modes/components/welcome.d.ts +1 -1
  8. package/dist/types/sdk.d.ts +19 -2
  9. package/dist/types/session/auth-broker-config.d.ts +33 -6
  10. package/dist/types/system-prompt.d.ts +5 -1
  11. package/dist/types/task/executor.d.ts +10 -0
  12. package/dist/types/tools/find.d.ts +0 -2
  13. package/dist/types/tools/search.d.ts +3 -3
  14. package/package.json +12 -12
  15. package/scripts/measure-prompt-tokens.ts +63 -0
  16. package/src/cli/bench-cli.ts +64 -3
  17. package/src/cli/startup-cwd.ts +3 -13
  18. package/src/config/settings-schema.ts +1 -1
  19. package/src/cursor.ts +1 -1
  20. package/src/debug/raw-sse-buffer.ts +31 -10
  21. package/src/eval/py/prelude.py +1 -1
  22. package/src/export/html/tool-views.generated.js +1 -1
  23. package/src/extensibility/extensions/runner.ts +8 -2
  24. package/src/internal-urls/docs-index.generated.txt +1 -1
  25. package/src/main.ts +29 -9
  26. package/src/modes/components/assistant-message.ts +86 -0
  27. package/src/modes/components/tips.txt +2 -1
  28. package/src/modes/components/welcome.ts +86 -8
  29. package/src/modes/controllers/event-controller.ts +1 -1
  30. package/src/prompts/system/personalities/default.md +8 -16
  31. package/src/prompts/system/system-prompt.md +101 -115
  32. package/src/prompts/tools/ast-edit.md +10 -12
  33. package/src/prompts/tools/ast-grep.md +14 -18
  34. package/src/prompts/tools/bash.md +19 -21
  35. package/src/prompts/tools/browser.md +24 -24
  36. package/src/prompts/tools/checkpoint.md +0 -1
  37. package/src/prompts/tools/debug.md +11 -15
  38. package/src/prompts/tools/eval.md +27 -27
  39. package/src/prompts/tools/find.md +6 -10
  40. package/src/prompts/tools/github.md +11 -15
  41. package/src/prompts/tools/goal.md +0 -7
  42. package/src/prompts/tools/inspect-image.md +0 -1
  43. package/src/prompts/tools/irc.md +15 -24
  44. package/src/prompts/tools/job.md +5 -8
  45. package/src/prompts/tools/learn.md +2 -2
  46. package/src/prompts/tools/lsp.md +27 -30
  47. package/src/prompts/tools/manage-skill.md +4 -4
  48. package/src/prompts/tools/read.md +21 -23
  49. package/src/prompts/tools/replace.md +0 -1
  50. package/src/prompts/tools/resolve.md +4 -9
  51. package/src/prompts/tools/rewind.md +1 -1
  52. package/src/prompts/tools/search.md +8 -10
  53. package/src/prompts/tools/task.md +33 -38
  54. package/src/prompts/tools/todo.md +14 -18
  55. package/src/prompts/tools/web-search.md +0 -4
  56. package/src/prompts/tools/write.md +1 -1
  57. package/src/sdk.ts +49 -102
  58. package/src/session/agent-session.ts +17 -2
  59. package/src/session/auth-broker-config.ts +36 -76
  60. package/src/session/session-history-format.ts +1 -1
  61. package/src/session/session-manager.ts +33 -6
  62. package/src/system-prompt.ts +28 -8
  63. package/src/task/executor.ts +57 -0
  64. package/src/task/index.ts +15 -1
  65. package/src/tools/browser.ts +1 -1
  66. package/src/tools/eval.ts +1 -1
  67. package/src/tools/find.ts +4 -17
  68. package/src/tools/memory-edit.ts +1 -1
  69. package/src/tools/search.ts +5 -5
package/CHANGELOG.md CHANGED
@@ -2,6 +2,27 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [16.1.2] - 2026-06-19
6
+
7
+ ### Added
8
+
9
+ - Added a welcome-screen tip for the `/advisor` runtime. Tips ending in a `[NEW]` marker now render a bold rainbow `NEW!` tag (it shimmers across the welcome intro's animation frames, then settles into a still rainbow) and are weighted to surface more often in the random tip rotation.
10
+
11
+ ### Changed
12
+
13
+ - Renamed the search tool's `i` parameter to `case` and inverted its semantics to represent case-sensitive search.
14
+ - Improved session history to export empty objects as `{}` instead of empty strings
15
+ - Refined system prompt and tool documentation to improve conciseness and clarity
16
+ - Simplified tool input descriptions for browser, eval, find, and memory-edit operations
17
+ - Refactored authentication storage discovery to share logic with other pi-ai tools
18
+
19
+ ### Fixed
20
+
21
+ - Fixed `omp bench` resolving an ambiguous model selector — a bare or canonical id shared by several providers (e.g. `gpt-oss-20b` or `openai/gpt-oss-20b`) — to a provider you have no credentials for. Bench resolves against the full catalog (credentials are ignored), so the default pick was decided by provider-priority order alone. It now redirects such selectors to an equivalent model under a provider with configured auth (honoring `modelProviderOrder` and canonical cross-provider variants), while an explicit `provider/id` selector is still benchmarked verbatim so forced/unauthenticated runs keep working.
22
+ - Resuming a session whose project directory no longer exists (deleted or renamed worktree) no longer crashes with an unhandled `ENOENT … chdir` rejection. The resume now keeps the current working directory instead of trying to `chdir` into the missing path, across the in-session selector, the `--resume` startup picker, and `SessionManager.open`/`continueRecent`.
23
+ - Fixed streaming reflowing Markdown — a fenced mermaid diagram or a GFM table — stranding stale fragments in native scrollback once the reply scrolled past the viewport (cleared only by a full repaint / Ctrl+L). While streaming, the assistant block defaulted to commit-stable, so the transcript advertised its scrolled-off rows as durable snapshot content and the renderer committed an intermediate layout to immutable terminal history; the later re-layout (a diagram reshaping, a table re-aligning its columns) then froze that superseded fragment in scrollback. A still-streaming reply whose Markdown carries a mermaid fence or a table — detected outside fenced code blocks so ordinary code snippets are unaffected — is now commit-unstable, so it stays wholly in the repaintable live region and commits once, at its final layout, when the turn finalizes.
24
+ - Fixed `SYSTEM.md` prompt customization going through the raw system prompt override path, which dropped sections rendered by `custom-system-prompt.md` such as skills and rules ([#3014](https://github.com/can1357/oh-my-pi/issues/3014)).
25
+
5
26
  ## [16.1.1] - 2026-06-19
6
27
 
7
28
  ### Changed
@@ -12078,4 +12099,4 @@ Initial public release.
12078
12099
 
12079
12100
  ## [0.7.6] - 2025-11-13
12080
12101
 
12081
- Previous releases did not maintain a changelog.
12102
+ Previous releases did not maintain a changelog.