@plumbus/core 0.7.3 → 0.7.5

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.
@@ -56,6 +56,11 @@ const invoice = await ctx.ai.extract({
56
56
 
57
57
  ### Classify
58
58
 
59
+ **Start with [the classification recipe](ai-classification.md)** for provider/model
60
+ selection, TypeSafe/Jev and Laya registration, defaults, thresholds, and cost hooks
61
+ (core **0.7.4+**). Use `classify()` for matching labels and `decide()` for richer
62
+ typed questions. Keep calls inside capabilities/flows.
63
+
59
64
  Classify text into provided categories:
60
65
 
61
66
  ```ts
@@ -101,7 +106,7 @@ await ctx.ai.generateWithUsage({
101
106
  });
102
107
  ```
103
108
 
104
- Omit `reasoning` to inherit prompt/config; use `null` to restore the provider/model default for one call, clearing both inherited `reasoning` and inherited legacy `reasoningEffort`. Explicit modes are `{ mode:'disabled' }`, `{ mode:'effort', effort:'minimal'|'low'|'medium'|'high'|'xhigh'|'max' }`, and `{ mode:'budget', maxTokens }`. Built-in core adapters translate the intent: OpenAI uses Chat Completions normally and switches caller-tool requests that need active/default GPT-5.6 reasoning to the Responses API; Anthropic uses `thinking` + `output_config.effort`. Responses tool continuations are stateless (`store:false`) and preserve encrypted reasoning items through server-owned `providerState`. Custom providers translate the contract in their own `AIProviderAdapter`. Unsupported modes fail with `AIInvalidRequestError` before provider I/O when the adapter can identify the incompatibility. Deprecated `reasoningEffort` remains the unchanged OpenAI-only `'low' | 'medium' | 'high'` shorthand.
109
+ Omit `reasoning` to inherit prompt/config; use `null` to restore the provider/model default for one call, clearing both inherited `reasoning` and inherited legacy `reasoningEffort`. Explicit modes are `{ mode:'disabled' }`, `{ mode:'effort', effort:'minimal'|'low'|'medium'|'high'|'xhigh'|'max' }`, and `{ mode:'budget', maxTokens }`. Built-in core adapters translate the intent: OpenAI uses Chat Completions normally and switches caller-tool requests that need active/default GPT-5.6 or GPT-6 reasoning to the Responses API; Anthropic uses `thinking` + `output_config.effort`. GPT-6 Chat Completions use `max_completion_tokens`; GPT-6 requests omit sampling temperature unless reasoning is explicitly disabled. Responses tool continuations are stateless (`store:false`) and preserve encrypted reasoning items through server-owned `providerState`. Custom providers translate the contract in their own `AIProviderAdapter`. Unsupported modes fail with `AIInvalidRequestError` before provider I/O when the adapter can identify the incompatibility. Deprecated `reasoningEffort` remains the unchanged OpenAI-only `'low' | 'medium' | 'high'` shorthand.
105
110
 
106
111
  ### Tool calling (provider-native)
107
112
 
@@ -41,4 +41,4 @@ Run lint, format checking, typechecking, tests, and packed npm install checks be
41
41
 
42
42
  ## Consumer upgrade
43
43
 
44
- Read [upgrading-security-release.md](./upgrading-security-release.md), explicitly select the new package versions for every installed Plumbus add-on, and run `plumbus init --patch` for agent wiring **v16**. Keep application business logic in Plumbus primitives and `ctx.*`; do not bypass security checks to make a migration pass.
44
+ Read [upgrading-security-release.md](./upgrading-security-release.md), explicitly select the new package versions for every installed Plumbus add-on, and run `plumbus init --patch --agent all` for current agent wiring (**v17** with core 0.7.4+). For classification/provider/model selection, read [ai-classification.md](./ai-classification.md). Keep application business logic in Plumbus primitives and `ctx.*`; do not bypass security checks to make a migration pass.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plumbus/core",
3
- "version": "0.7.3",
3
+ "version": "0.7.5",
4
4
  "description": "Plumbus framework core — types, SDK, runtime, CLI, test utilities",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -72,7 +72,7 @@
72
72
  "xpath": "^0.0.34",
73
73
  "zod": "^3.24.0",
74
74
  "zod-to-json-schema": "^3.25.2",
75
- "@plumbus/ai-decision": "~0.2.1"
75
+ "@plumbus/ai-decision": "~0.2.2"
76
76
  },
77
77
  "peerDependencies": {
78
78
  "@plumbus/api": "0.2.x",
@@ -104,10 +104,10 @@
104
104
  "@vitest/browser": "^3.0.0",
105
105
  "esbuild": "^0.25.12",
106
106
  "typescript": "^5.7.0",
107
- "@plumbus/api": "0.2.1",
108
107
  "@plumbus/mcp": "0.6.1",
108
+ "@plumbus/voice": "0.5.2",
109
109
  "@plumbus/ai-bedrock": "0.2.1",
110
- "@plumbus/voice": "0.5.2"
110
+ "@plumbus/api": "0.2.1"
111
111
  },
112
112
  "scripts": {
113
113
  "build": "tsc -b",