@oh-my-pi/pi-coding-agent 16.0.8 → 16.0.10

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 (47) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/dist/cli.js +3004 -2976
  3. package/dist/types/cli/args.d.ts +1 -0
  4. package/dist/types/collab/host.d.ts +2 -2
  5. package/dist/types/collab/protocol.d.ts +4 -5
  6. package/dist/types/commands/launch.d.ts +3 -0
  7. package/dist/types/config/model-resolver.d.ts +11 -2
  8. package/dist/types/config/settings-schema.d.ts +12 -2
  9. package/dist/types/goals/runtime.d.ts +4 -1
  10. package/dist/types/modes/print-mode.d.ts +2 -0
  11. package/dist/types/session/agent-session.d.ts +13 -0
  12. package/dist/types/slash-commands/builtin-registry.d.ts +1 -1
  13. package/dist/types/slash-commands/helpers/collab-qrcode.d.ts +13 -0
  14. package/dist/types/tools/index.d.ts +9 -1
  15. package/dist/types/utils/image-loading.d.ts +12 -0
  16. package/dist/types/utils/qrcode.d.ts +48 -0
  17. package/package.json +12 -12
  18. package/src/cli/args.ts +10 -1
  19. package/src/cli/flag-tables.ts +1 -0
  20. package/src/collab/host.ts +4 -4
  21. package/src/collab/protocol.ts +48 -15
  22. package/src/commands/launch.ts +3 -0
  23. package/src/config/config-file.ts +1 -1
  24. package/src/config/keybindings.ts +2 -2
  25. package/src/config/model-registry.ts +16 -4
  26. package/src/config/model-resolver.ts +193 -35
  27. package/src/config/settings-schema.ts +14 -2
  28. package/src/config/settings.ts +3 -3
  29. package/src/goals/runtime.ts +19 -7
  30. package/src/internal-urls/docs-index.generated.txt +1 -1
  31. package/src/main.ts +10 -2
  32. package/src/modes/components/oauth-selector.ts +31 -2
  33. package/src/modes/interactive-mode.ts +7 -3
  34. package/src/modes/print-mode.ts +5 -1
  35. package/src/prompts/advisor/advise-tool.md +3 -1
  36. package/src/prompts/advisor/system.md +55 -12
  37. package/src/prompts/tools/inspect-image.md +1 -1
  38. package/src/sdk.ts +26 -7
  39. package/src/session/agent-session.ts +103 -16
  40. package/src/slash-commands/builtin-registry.ts +29 -11
  41. package/src/slash-commands/helpers/collab-qrcode.ts +28 -0
  42. package/src/thinking.ts +25 -5
  43. package/src/tools/index.ts +10 -1
  44. package/src/tools/inspect-image.ts +72 -9
  45. package/src/utils/file-mentions.ts +5 -2
  46. package/src/utils/image-loading.ts +58 -0
  47. package/src/utils/qrcode.ts +535 -0
package/CHANGELOG.md CHANGED
@@ -2,6 +2,39 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [16.0.10] - 2026-06-18
6
+
7
+ ### Added
8
+
9
+ - Updated the `pi` option of the `tools.format` setting to use the new compact sigil-delimited owned tool-calling dialect (`§`/`«…»`/`¤`/`‡‡`) that uses ~46% fewer tokens than the legacy format on typical calls.
10
+ - Integrated terminal QR codes directly into `/collab` and `/collab view` to display both deep links and scannable codes, and added a `collab.webUrl` setting for separately hosted collab web clients.
11
+
12
+ ### Changed
13
+
14
+ - Updated description of Pi dialect in tool-calling settings to clarify compact sigil format
15
+
16
+ ### Fixed
17
+
18
+ - Fixed legacy `settings.json`, `models.json`, and `keybindings.json` migration/loading to accept comments in JSON config files.
19
+ - Support quoted file paths with spaces (such as default macOS screenshots) in file mentions and `@`-prefixed CLI arguments ([#2909](https://github.com/can1357/oh-my-pi/pull/2909)).
20
+ - Fixed the first steering/follow-up message typed as auto-compaction begins being dropped instead of queued; the compaction abort controller (which backs `isCompacting`) is now installed before the `auto_compaction_start` event fires, so input routed during that window lands in the compaction queue rather than the core agent queue.
21
+ - Fixed queued steering/follow-up messages being silently cleared by the agent reset during a handoff; they are now captured and restored across the new-session reset.
22
+ - Fixed the `/login` provider list still offering providers listed in `disabledProviders` (and their credential-alias logins, e.g. `openai-codex-device` → `openai-codex`) as login targets ([#2906](https://github.com/can1357/oh-my-pi/pull/2906)).
23
+ - Fixed an owned MCP manager not being disconnected on `AgentSession.dispose()`, orphaning stdio MCP subprocesses across session teardown (`/exit`, print mode, subagent teardown); the dispose-time disconnect is now bounded so a slow HTTP/SSE transport close cannot stall exit ([#2839](https://github.com/can1357/oh-my-pi/pull/2839)).
24
+ - Fixed `inspect_image` resolving pasted image labels such as `Image #1`, `[Image #1, WxH]`, and `attachment://1` against current chat attachments instead of falling back to `<cwd>/Image #1` ([#2787](https://github.com/can1357/oh-my-pi/issues/2787)).
25
+ - Accepted `max` as an alias for the top thinking level (`xhigh`) in selectors and `--thinking`, so DeepSeek V4 Pro can be selected with its provider-facing maximum effort ([#2727](https://github.com/can1357/oh-my-pi/issues/2727)).
26
+ - Fixed `--provider=amazon-bedrock --model <application-inference-profile ARN>` being rejected as an unknown model before the Bedrock provider could send the ARN to Converse Stream. ([#3004](https://github.com/can1357/oh-my-pi/issues/3004))
27
+
28
+ ## [16.0.9] - 2026-06-18
29
+
30
+ ### Added
31
+
32
+ - Added a `--print-thoughts` flag for single-shot print mode that includes sanitized thinking blocks in the text output; default print output stays the final answer only. When thinking is hidden by the `hideThinkingBlock` setting, `--print-thoughts` un-hides it for the print run so the flag is not a silent no-op (an explicit `--hide-thinking` still wins).
33
+
34
+ ### Fixed
35
+
36
+ - Fixed active `/goal` mode being paused by internal compaction and session-switch lifecycle aborts, and made those switches persist wall-clock goal usage without charging time spent in another session to a preserved goal.
37
+
5
38
  ## [16.0.8] - 2026-06-18
6
39
 
7
40
  ### Changed