@plumbus/core 0.6.17 → 0.6.19

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 (44) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/ai/ai/provider.d.ts +19 -6
  4. package/dist/ai/ai-service.d.ts +4 -1
  5. package/dist/ai/ai-service.d.ts.map +1 -1
  6. package/dist/ai/ai-service.js +31 -9
  7. package/dist/ai/ai-service.js.map +1 -1
  8. package/dist/ai/index.d.ts +1 -1
  9. package/dist/ai/index.d.ts.map +1 -1
  10. package/dist/ai/index.js.map +1 -1
  11. package/dist/ai/provider.d.ts +19 -6
  12. package/dist/ai/provider.d.ts.map +1 -1
  13. package/dist/ai/provider.js +306 -12
  14. package/dist/ai/provider.js.map +1 -1
  15. package/dist/ai/tool-loop.d.ts.map +1 -1
  16. package/dist/ai/tool-loop.js +6 -1
  17. package/dist/ai/tool-loop.js.map +1 -1
  18. package/dist/ai/types/config.d.ts +4 -0
  19. package/dist/ai/types/prompt.d.ts +108 -0
  20. package/dist/index.d.ts +1 -1
  21. package/dist/index.d.ts.map +1 -1
  22. package/dist/index.js.map +1 -1
  23. package/dist/server/bootstrap.d.ts +3 -1
  24. package/dist/server/bootstrap.d.ts.map +1 -1
  25. package/dist/server/bootstrap.js.map +1 -1
  26. package/dist/testing/context.d.ts.map +1 -1
  27. package/dist/testing/context.js +1 -0
  28. package/dist/testing/context.js.map +1 -1
  29. package/dist/types/config.d.ts +4 -0
  30. package/dist/types/config.d.ts.map +1 -1
  31. package/dist/types/context.d.ts +40 -2
  32. package/dist/types/context.d.ts.map +1 -1
  33. package/dist/types/index.d.ts +2 -1
  34. package/dist/types/index.d.ts.map +1 -1
  35. package/dist/types/index.js +2 -0
  36. package/dist/types/index.js.map +1 -1
  37. package/dist/types/prompt.d.ts +24 -6
  38. package/dist/types/prompt.d.ts.map +1 -1
  39. package/dist/types/prompt.js +5 -1
  40. package/dist/types/prompt.js.map +1 -1
  41. package/instructions/ai.md +17 -3
  42. package/instructions/peer-dependencies.md +1 -1
  43. package/instructions/prompts.md +3 -2
  44. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @plumbus/core changelog
2
2
 
3
+ ## 0.6.19 — 2026-09-01 — OpenAI reasoning tool-call transport
4
+
5
+ ### Fixed
6
+
7
+ - **OpenAI reasoning with function tools.** OpenAI caller-tool requests use the Responses API when reasoning is active, when a GPT-5.6 model uses its default reasoning, or when continuing an existing Responses tool round. Stateless continuations request and replay encrypted reasoning output. Explicit disabled reasoning and all compatible non-tool requests retain the existing Chat Completions transport.
8
+
9
+ ## 0.6.18 — 2026-09-01 — provider-aware tool-call AI configuration
10
+
11
+ ### Added
12
+
13
+ - **Per-call AI provider/model override.** `generate`, `generateWithUsage`, and `streamGenerate` accept `provider` and `model` without changing the registered prompt or global default.
14
+ - **Provider-neutral reasoning contract.** `AIReasoningConfig` expresses `disabled`, `effort`, or token `budget` intent. Built-in OpenAI and Anthropic adapters translate the intent to native fields and reject adapter-level incompatibilities with `AIInvalidRequestError`. Custom providers implement the same contract in their own `AIProviderAdapter`.
15
+ - **Reasoning capability metadata.** Adapters can expose supported reasoning modes/efforts through `AIProviderCapabilities`.
16
+ - **Provider tool continuation state.** Anthropic thinking/redacted-thinking blocks are carried opaquely across tool-result rounds so the Messages API receives the original assistant content unmodified.
17
+
18
+ ### Changed
19
+
20
+ - Reasoning wire translation lives exclusively in provider adapters. Chat and application code pass intent and contain no provider payload fields or model-name compatibility branches.
21
+
22
+ ### Compatibility
23
+
24
+ - The exported legacy `ReasoningEffort` remains exactly `'low' | 'medium' | 'high'` and keeps its OpenAI-only behavior. New levels, disabled mode, and Anthropic thinking require the new `reasoning` property.
25
+ - Anthropic requests without the new `reasoning` property keep the previous `temperature: 0.7` default and continue to ignore legacy `reasoningEffort`.
26
+
3
27
  ## 0.6.17 — 2026-08-16 — `plumbus e2e` server lifecycle hardening
4
28
 
5
29
  ### Changed