@oh-my-pi/pi-coding-agent 16.0.11 → 16.1.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 (66) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/cli.js +2872 -2908
  3. package/dist/types/config/settings-schema.d.ts +14 -4
  4. package/dist/types/modes/components/__tests__/skill-message.test.d.ts +1 -0
  5. package/dist/types/modes/components/assistant-message.d.ts +8 -0
  6. package/dist/types/modes/components/cache-invalidation-marker.d.ts +34 -0
  7. package/dist/types/modes/components/compaction-summary-message.d.ts +14 -1
  8. package/dist/types/modes/components/index.d.ts +0 -1
  9. package/dist/types/modes/components/message-frame.d.ts +6 -4
  10. package/dist/types/modes/interactive-mode.d.ts +2 -1
  11. package/dist/types/modes/theme/theme.d.ts +7 -1
  12. package/dist/types/modes/types.d.ts +7 -1
  13. package/dist/types/sdk.d.ts +1 -1
  14. package/dist/types/session/agent-session.d.ts +20 -1
  15. package/dist/types/session/session-context.d.ts +7 -0
  16. package/dist/types/session/session-dump-format.d.ts +1 -0
  17. package/dist/types/session/tool-choice-queue.d.ts +14 -0
  18. package/dist/types/system-prompt.d.ts +3 -3
  19. package/dist/types/tools/index.d.ts +4 -0
  20. package/dist/types/tools/resolve.d.ts +15 -5
  21. package/package.json +12 -12
  22. package/src/config/settings-schema.ts +16 -4
  23. package/src/debug/log-viewer.ts +4 -4
  24. package/src/debug/raw-sse.ts +4 -4
  25. package/src/edit/renderer.ts +2 -2
  26. package/src/internal-urls/docs-index.generated.txt +1 -1
  27. package/src/lsp/render.ts +7 -7
  28. package/src/modes/components/__tests__/skill-message.test.ts +92 -0
  29. package/src/modes/components/agent-dashboard.ts +1 -1
  30. package/src/modes/components/assistant-message.ts +21 -0
  31. package/src/modes/components/cache-invalidation-marker.ts +84 -0
  32. package/src/modes/components/chat-transcript-builder.ts +16 -2
  33. package/src/modes/components/compaction-summary-message.ts +29 -1
  34. package/src/modes/components/custom-message.ts +4 -1
  35. package/src/modes/components/dynamic-border.ts +1 -1
  36. package/src/modes/components/extensions/extension-dashboard.ts +1 -1
  37. package/src/modes/components/extensions/inspector-panel.ts +5 -5
  38. package/src/modes/components/hook-selector.ts +2 -2
  39. package/src/modes/components/index.ts +0 -1
  40. package/src/modes/components/message-frame.ts +10 -6
  41. package/src/modes/components/model-selector.ts +2 -2
  42. package/src/modes/components/overlay-box.ts +10 -9
  43. package/src/modes/components/skill-message.ts +39 -19
  44. package/src/modes/components/tiny-title-download-progress.ts +1 -1
  45. package/src/modes/components/welcome.ts +1 -1
  46. package/src/modes/controllers/event-controller.ts +14 -0
  47. package/src/modes/controllers/selector-controller.ts +7 -0
  48. package/src/modes/interactive-mode.ts +9 -1
  49. package/src/modes/theme/theme.ts +14 -0
  50. package/src/modes/types.ts +7 -1
  51. package/src/modes/utils/ui-helpers.ts +20 -2
  52. package/src/prompts/steering/user-interjection.md +3 -4
  53. package/src/sdk.ts +8 -6
  54. package/src/session/agent-session.ts +90 -13
  55. package/src/session/messages.ts +7 -9
  56. package/src/session/session-context.ts +54 -7
  57. package/src/session/session-dump-format.ts +3 -1
  58. package/src/session/snapcompact-inline.ts +2 -2
  59. package/src/session/tool-choice-queue.ts +59 -0
  60. package/src/system-prompt.ts +10 -9
  61. package/src/tools/bash-interactive.ts +4 -4
  62. package/src/tools/index.ts +4 -0
  63. package/src/tools/resolve.ts +66 -41
  64. package/src/tui/output-block.ts +9 -9
  65. package/dist/types/modes/components/branch-summary-message.d.ts +0 -13
  66. package/src/modes/components/branch-summary-message.ts +0 -46
package/CHANGELOG.md CHANGED
@@ -2,6 +2,28 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [16.1.0] - 2026-06-19
6
+
7
+ ### Added
8
+
9
+ - Added a prompt-cache miss marker: a slim `⊘ cache miss · <n> tokens` divider above an assistant turn whose request lost the provider prompt cache. Detected from per-turn usage — the previous turn cached a meaningful prefix but this request read none of it back and reprocessed the prompt (e.g. after a thinking-level / service-tier / model change, tool or system-prompt change, or a history rewrite). Reports the reprocessed token count. Toggle with the `display.cacheMissMarker` setting (Appearance → Display, on by default).
10
+
11
+ ### Changed
12
+
13
+ - Optimized preview workflows by removing forced tool choices, reducing prompt cache invalidations
14
+ - Unified injected message styling with consistent rounded outlines and icon-tagged headers
15
+ - Refreshed branch summary messages with a uniform banner style to match compaction points
16
+ - Updated skill invocation UI with a compact header, home-shortened paths, and dynamic line counts
17
+ - Refined session context to utilize history blocks instead of raw images for snapcompact summaries
18
+ - Refreshed the skill-prompt transcript message to match the rest of the TUI: an icon-tagged `✦ skill <name>` header (with invocation args trailing), a single meta line with a home-shortened, click-to-open path in the accent color and the prompt size in muted, and a rounded outline around the card. Replaces the old `[skill]` label with the flat `Skill:`/`Path:`/`Prompt:` key/value dump (which also leaked the absolute home directory).
19
+ - Refreshed the default custom/hook transcript message frame to a rounded, icon-tagged card: the `[customType]` bracket label is replaced by an `<icon> <type>` header (📦 for extension messages, 🪝 for legacy hook-role messages) with a subtle outline, matching the skill card. Covers every extension/hook custom type without a bespoke renderer.
20
+ - Refreshed the branch-summary transcript message to render as the same slim divider banner as `/compact`, handoff, and snapcompact (`⑂ branch · ctrl+o`, summary revealed on expand) instead of a `[branch]` box.
21
+ - Optimized network traffic by stripping tool descriptions from provider tool schemas
22
+ - Renamed the prompt setting from `repeatToolDescriptions` / "Repeat Tool Descriptions" to `inlineToolDescriptors` / "Inline Tool Descriptors" and enabled inline descriptors by default.
23
+ - Snapcompact compaction summaries now reach the model as ordered history blocks instead of one lead-in text block plus appended images: plain text at the oldest edge, an imaged middle, then plain text at the newest edge. This matches the new text-first snapcompact archive layout and preserves chronological order in the provider prompt.
24
+ - Fixed `/dump` output repeating the tool inventory twice when `inlineToolDescriptors` is enabled.
25
+ - Unified TUI border corners on the rounded style: tool-result frames, overlays, code fences, debug frames, and the interactive bash box now draw rounded corners (`╭╮╰╯`) to match the editor and message cards, instead of mixing rounded boxes with sharp (`┌┐└┘`) ones. `boxRound` now carries the sharp tee/cross junction glyphs (no rounded variant exists), so dividers still honor `boxSharp.tee*`/`cross` theme overrides. Markdown tables intentionally keep the fully sharp `boxSharp` set; its corner tokens now affect tables only.
26
+
5
27
  ## [16.0.11] - 2026-06-19
6
28
 
7
29
  ### Added