@hienlh/ppm 0.13.85 → 0.13.88

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 (53) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/assets/skills/ppm/SKILL.md +1 -1
  3. package/assets/skills/ppm/references/http-api.md +1 -1
  4. package/bun.lock +2248 -0
  5. package/bunfig.toml +2 -0
  6. package/dist/web/assets/{audio-preview-IRQhYBc9.js → audio-preview-CUIJFOwv.js} +1 -1
  7. package/dist/web/assets/chat-tab-Bq1I6z2m.js +16 -0
  8. package/dist/web/assets/{code-editor-N8XfT4X6.js → code-editor-DJwyZl0r.js} +2 -2
  9. package/dist/web/assets/{conflict-editor-D8_hVdKW.js → conflict-editor-PGKAsN-h.js} +1 -1
  10. package/dist/web/assets/{database-viewer-8FKzLz3e.js → database-viewer-DAqD73p3.js} +1 -1
  11. package/dist/web/assets/{diff-viewer-BSYOjjem.js → diff-viewer-DRlDATQT.js} +1 -1
  12. package/dist/web/assets/{docx-preview-CslyLNXJ.js → docx-preview-DbaPlCqB.js} +1 -1
  13. package/dist/web/assets/{extension-webview-C7Z_LmqG.js → extension-webview-DMj9G5Po.js} +1 -1
  14. package/dist/web/assets/{git-log-panel-BtIbMKyY.js → git-log-panel-Dy6gNl-B.js} +1 -1
  15. package/dist/web/assets/{glide-data-grid-Di9XehtO.js → glide-data-grid-BbnDo-8v.js} +1 -1
  16. package/dist/web/assets/{image-preview-DgxEXvm1.js → image-preview-BS_AtRhx.js} +1 -1
  17. package/dist/web/assets/index-D-rGwbQ3.css +2 -0
  18. package/dist/web/assets/{index-Co68v-VL.js → index-Z19QnKM_.js} +4 -4
  19. package/dist/web/assets/keybindings-store-BRyZRYax.js +1 -0
  20. package/dist/web/assets/{markdown-renderer-Cc8feZvH.js → markdown-renderer-D-tteKCI.js} +1 -1
  21. package/dist/web/assets/notification-store-gHx4anzy.js +1 -0
  22. package/dist/web/assets/{pdf-preview-2Kkq0YVS.js → pdf-preview-B4iy8M0h.js} +1 -1
  23. package/dist/web/assets/{port-forwarding-tab-Dm06Sss7.js → port-forwarding-tab-CNHUZvG5.js} +1 -1
  24. package/dist/web/assets/{postgres-viewer-Dk-JGd_M.js → postgres-viewer-USxLRNuo.js} +1 -1
  25. package/dist/web/assets/{settings-tab-BMbf1_zH.js → settings-tab-DuhQTnn5.js} +1 -1
  26. package/dist/web/assets/{sql-query-editor-BgiCruQe.js → sql-query-editor-DFCopLXf.js} +1 -1
  27. package/dist/web/assets/{sqlite-viewer-DIQna_ds.js → sqlite-viewer-Dmztw-o5.js} +1 -1
  28. package/dist/web/assets/{system-monitor-tab-C3v0u_y6.js → system-monitor-tab-OkICyNSb.js} +1 -1
  29. package/dist/web/assets/{terminal-tab-B7E6qSYt.js → terminal-tab-Dsbs_Tnl.js} +1 -1
  30. package/dist/web/assets/{video-preview--2wXKPqj.js → video-preview-Dr00uBM7.js} +1 -1
  31. package/dist/web/index.html +2 -2
  32. package/dist/web/sw.js +1 -1
  33. package/package.json +1 -1
  34. package/schemas/ppm-config.schema.json +2 -2
  35. package/src/cli/commands/init.ts +2 -1
  36. package/src/index.ts +0 -0
  37. package/src/providers/claude-agent-sdk.ts +5 -4
  38. package/src/server/ws/chat.ts +55 -4
  39. package/src/services/db.service.ts +17 -0
  40. package/src/services/supervisor.ts +11 -4
  41. package/src/services/tunnel.service.ts +1 -1
  42. package/src/types/api.ts +3 -2
  43. package/src/types/chat.ts +6 -0
  44. package/src/types/config.ts +1 -1
  45. package/src/web/components/chat/chat-tab.tsx +4 -0
  46. package/src/web/components/chat/message-input.tsx +25 -0
  47. package/src/web/components/chat/model-selector.tsx +138 -0
  48. package/src/web/components/settings/proxy-test-section.tsx +1 -0
  49. package/src/web/hooks/use-chat.ts +19 -0
  50. package/dist/web/assets/chat-tab-CrI_JDRj.js +0 -16
  51. package/dist/web/assets/index-DXxsPKPw.css +0 -2
  52. package/dist/web/assets/keybindings-store-COecqk_y.js +0 -1
  53. package/dist/web/assets/notification-store-B5j-Cm2O.js +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.13.88] - 2026-05-29
4
+
5
+ ### Added
6
+ - **Per-session model switcher in chat input**: A compact model chip (e.g. "Opus 4.8") next to the provider selector shows the active model and lets users switch it per session. The choice persists per session (new `session_metadata.model` column, DB migration v27) and falls back to the global provider default when unset. Switching while idle aborts the idle subprocess so the next message recreates the query with the new model via the resume path (history preserved); the chip is disabled mid-turn since the SDK can't change model in-flight.
7
+
8
+ ## [0.13.87] - 2026-05-29
9
+
10
+ ### Added
11
+ - **Claude Opus 4.8 model support**: Add `claude-opus-4-8` as available model across SDK provider, CLI init, proxy test UI, JSON schema, and config validation. Released by Anthropic 2026-05-28 with improved agentic coding (64.3%→69.2%), 1M context window, fast mode 2.5× faster + 3× cheaper, same pricing as Opus 4.7 ($5/$25 per M tokens). Coexists with Opus 4.7/4.6.
12
+
13
+ ### Fixed
14
+ - **Rate-limit detection misses quota variants**: Literal `"hit your limit"` match in `claude-agent-sdk.ts` failed against Anthropic's variants like `"hit your weekly limit"` / `"hit your 5-hour limit"`, so quota-exhausted sessions were classified as generic errors instead of `rate_limit` (no auto-switch, no proper hint). Replaced with regex `/hit your (?:[\w-]+\s+)*limit/i` in all three detection sites (HTTP error, assistant text content, error hint message).
15
+
16
+ ### Changed
17
+ - **Refresh bundled PPM skill assets**: Regenerated `assets/skills/ppm/{SKILL,references/cli-reference,references/http-api}.md` to current version stamp.
18
+
19
+ ## [0.13.86] - 2026-05-26
20
+
21
+ ### Fixed
22
+ - **Tunnel permanently disabled on transient cloudflared API failure**: Regex `TUNNEL_URL_REGEX` matched `https://api.trycloudflare.com` from cloudflared error output (`failed to request quick Tunnel: Post "https://api.trycloudflare.com/tunnel"`), causing supervisor to treat a failed tunnel as ready with a bogus URL. Combined with `tunnelRestarts > MAX_RESTARTS` permanently disabling the tunnel, a brief network blip left the server with no tunnel until full restart. Fix: negative-lookahead excludes `api.` subdomain (`tunnel.service.ts`, `supervisor.ts`); after MAX_RESTARTS the supervisor now waits 10min, resets the counter, and resumes spawning instead of giving up.
23
+
3
24
  ## [0.13.85] - 2026-05-23
4
25
 
5
26
  ### Fixed
@@ -71,4 +71,4 @@ This skill covers the `ppm` CLI, its HTTP API, and its config DB. It does **not*
71
71
  - Third-party extensions (inspect via `ppm ext list`).
72
72
  - The Claude Agent SDK internals (separate skill).
73
73
 
74
- <!-- Generated for PPM v0.13.85 at build time. Re-run `ppm export skill --install` to refresh. -->
74
+ <!-- Generated for PPM v0.13.88 at build time. Re-run `ppm export skill --install` to refresh. -->
@@ -206,4 +206,4 @@ _Base URL: `http://localhost:8080` (default; override via `ppm config set port <
206
206
  - `ws://<host>/ws/terminal` — PTY terminal multiplexer
207
207
  - `ws://<host>/ws/extensions` — extension host channel
208
208
 
209
- <!-- Generated from src/server/routes/ for PPM v0.13.85 -->
209
+ <!-- Generated from src/server/routes/ for PPM v0.13.88 -->