@plumbus/core 0.6.12 → 0.6.14

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 +24 -0
  2. package/README.md +1 -0
  3. package/dist/.tsbuildinfo +1 -1
  4. package/dist/ai/ai/provider.d.ts +6 -0
  5. package/dist/ai/ai-service.d.ts +1 -0
  6. package/dist/ai/ai-service.d.ts.map +1 -1
  7. package/dist/ai/ai-service.js +22 -7
  8. package/dist/ai/ai-service.js.map +1 -1
  9. package/dist/ai/provider.d.ts +6 -0
  10. package/dist/ai/provider.d.ts.map +1 -1
  11. package/dist/ai/provider.js +13 -0
  12. package/dist/ai/provider.js.map +1 -1
  13. package/dist/cli/commands/agent.js +1 -1
  14. package/dist/cli/commands/agent.js.map +1 -1
  15. package/dist/cli/commands/browser-extension.d.ts.map +1 -1
  16. package/dist/cli/commands/browser-extension.js +6 -1
  17. package/dist/cli/commands/browser-extension.js.map +1 -1
  18. package/dist/cli/commands/dev.d.ts.map +1 -1
  19. package/dist/cli/commands/dev.js +14 -0
  20. package/dist/cli/commands/dev.js.map +1 -1
  21. package/dist/cli/commands/doctor.d.ts.map +1 -1
  22. package/dist/cli/commands/doctor.js +5 -4
  23. package/dist/cli/commands/doctor.js.map +1 -1
  24. package/dist/cli/commands/init.d.ts +8 -3
  25. package/dist/cli/commands/init.d.ts.map +1 -1
  26. package/dist/cli/commands/init.js +129 -11
  27. package/dist/cli/commands/init.js.map +1 -1
  28. package/dist/cli/commands/start.d.ts.map +1 -1
  29. package/dist/cli/commands/start.js +14 -0
  30. package/dist/cli/commands/start.js.map +1 -1
  31. package/dist/cli/commands/voice.d.ts.map +1 -1
  32. package/dist/cli/commands/voice.js +18 -3
  33. package/dist/cli/commands/voice.js.map +1 -1
  34. package/dist/cli/commands/worker.d.ts.map +1 -1
  35. package/dist/cli/commands/worker.js +14 -0
  36. package/dist/cli/commands/worker.js.map +1 -1
  37. package/dist/cli/index.d.ts +1 -1
  38. package/dist/cli/index.d.ts.map +1 -1
  39. package/dist/cli/index.js +1 -1
  40. package/dist/cli/index.js.map +1 -1
  41. package/dist/cli/voice-agent-bootstrap.d.ts +2 -0
  42. package/dist/cli/voice-agent-bootstrap.d.ts.map +1 -1
  43. package/dist/cli/voice-agent-bootstrap.js +1 -0
  44. package/dist/cli/voice-agent-bootstrap.js.map +1 -1
  45. package/dist/cli/voice-serve-context.d.ts +1 -0
  46. package/dist/cli/voice-serve-context.d.ts.map +1 -1
  47. package/dist/cli/voice-serve-context.js +19 -2
  48. package/dist/cli/voice-serve-context.js.map +1 -1
  49. package/dist/errors-entry.d.ts +14 -0
  50. package/dist/errors-entry.d.ts.map +1 -0
  51. package/dist/errors-entry.js +13 -0
  52. package/dist/errors-entry.js.map +1 -0
  53. package/dist/flows/engine.d.ts.map +1 -1
  54. package/dist/flows/engine.js +50 -12
  55. package/dist/flows/engine.js.map +1 -1
  56. package/dist/index.d.ts +1 -1
  57. package/dist/index.d.ts.map +1 -1
  58. package/dist/index.js +1 -1
  59. package/dist/index.js.map +1 -1
  60. package/dist/server/bootstrap.d.ts +1 -0
  61. package/dist/server/bootstrap.d.ts.map +1 -1
  62. package/dist/server/bootstrap.js.map +1 -1
  63. package/dist/types/prompt.d.ts +9 -0
  64. package/dist/types/prompt.d.ts.map +1 -1
  65. package/instructions/ai.md +1 -1
  66. package/instructions/cli.md +1 -0
  67. package/instructions/peer-dependencies.md +9 -2
  68. package/instructions/prompts.md +4 -1
  69. package/package.json +6 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @plumbus/core changelog
2
2
 
3
+ ## 0.6.14 — 2026-08-03 — AI reasoning, text-mode outputs, Claude agent wiring
4
+
5
+ ### Added
6
+
7
+ - **`@plumbus/core/errors`** — browser-safe export of `PlumbusError`, `ErrorCode`, and related error helpers. Client packages (e.g. `@plumbus/voice-livekit/client`) must import from this subpath, not the package root — the root pulls the CLI (drizzle-kit / migrate) into the browser graph and breaks Next/Turbopack client builds.
8
+ - **`ModelConfig.reasoningEffort`** (`'low' | 'medium' | 'high'`) — optional prompt / override / env-resolver field. OpenAI adapter sends `reasoning_effort` **only when set** (o-series / gpt-5 family); providers without an equivalent ignore it. Misconfigured models that reject the parameter fail loudly (HTTP 400) rather than silently degrading.
9
+ - **Bare `z.string()` prompt outputs** — treated as text mode (same contract as single-string-field objects such as `z.object({ content: z.string() })`) for both `generate` and `streamGenerate`, so plain-text prompts do not force JSON / structured-output validation fallbacks.
10
+ - **`plumbus init --agent claude`** — writes `CLAUDE.md` from the same generator as `AGENTS.md` (identical body; Claude-specific title and wiring marker). Default `plumbus init` / `--agent all` now includes `claude` alongside `copilot`, `cursor`, and `agents-md`. Claude Code reads `CLAUDE.md` natively and does not load `AGENTS.md`. `plumbus doctor` freshness checks cover generated `CLAUDE.md` the same way as `AGENTS.md`. Run `plumbus init` or `plumbus init --patch` on existing projects to create the file.
11
+
12
+ ### Fixed
13
+
14
+ - **Flow lease heartbeat** — transient `extendLease` / audit failures during the heartbeat interval are logged and retried on the next tick instead of surfacing as unhandled rejections or incorrectly taking the lease-lost path.
15
+
16
+ ## 0.6.13 — 2026-07-26 — agent wiring version 11
17
+
18
+ ### Changed
19
+
20
+ - **`AGENT_WIRING_VERSION` bumped to 11.** `plumbus init` now references the five optional voice provider add-on instruction files (`@plumbus/voice-deepdub`, `-soniox`, `-elevenlabs`, `-minimax`, `-livekit`). Pointers are inert when those packages are not installed. Run **`plumbus init --patch`** on existing projects to refresh the managed wiring block. `plumbus doctor` reports files below version 11 as stale.
21
+ - **`plumbus voice worker`** dynamically imports `@plumbus/voice-livekit` for agent-dispatch / join-room (no longer calls `loadVoiceAddons` / LiveKit helpers on `@plumbus/voice`).
22
+
23
+ ### Notes
24
+
25
+ Pairs with `@plumbus/voice` **0.4.0** hard provider-package breakout (explicit `*_REGISTRATION`, transport-agnostic `/token`) — see `docs/upgrading-voice-provider-packages.md`.
26
+
3
27
  ## 0.6.12 — 2026-07-26 — agent wiring version 10
4
28
 
5
29
  ### Changed
package/README.md CHANGED
@@ -116,6 +116,7 @@ export const classifyTicket = definePrompt({
116
116
  | Import | Purpose |
117
117
  |--------|---------|
118
118
  | `@plumbus/core` | SDK surface — define functions, types, runtime |
119
+ | `@plumbus/core/errors` | Browser-safe `PlumbusError` / `ErrorCode` (client packages must use this, not the root) |
119
120
  | `@plumbus/core/testing` | Test utilities — `runCapability`, `simulateFlow`, `mockAI`, `createTestContext` |
120
121
  | `@plumbus/core/zod` | Re-exported Zod (consumers should not install Zod separately) |
121
122
  | `@plumbus/core/vitest` | Vitest config helpers |