@plumbus/ai-decision-typesafe 0.2.1 → 0.3.0-beta.0

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.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,15 @@
1
1
  # Changelog
2
2
 
3
- ## 0.2.1 — Unreleased
3
+ ## 0.3.0-beta.0 — 2026-09-23 — core 0.8 beta family
4
+
5
+ ### Upgrade boundary
6
+
7
+ - Beta prerelease of the coordinated core 0.8 family (core 0.8.x, UI 0.9.x, MCP 0.7.x, voice 0.6.x, other add-ons 0.3.x), published under the branch-named npm dist-tag `plumbus-next` (`latest` stays on the 0.7 family). Previous caret ranges exclude it; install the whole family together and follow the [0.8 upgrade notes](../../docs/upgrading-core-0.8.md). Internal peers use prerelease-inclusive ranges (for example `>=0.8.0-beta.0 <0.9.0`) until the family goes stable.
8
+ - Same adapter as 0.2.2; the `@plumbus/core` peer is `>=0.8.0-beta.0 <0.9.0` and the shared contracts dependency is `@plumbus/ai-decision` `~0.3.0-beta.0`.
9
+
10
+ ## 0.2.2 — Unreleased
11
+
12
+ - Document core 0.7.4+ classification with per-call provider/model and probability threshold. Link the packaged classification recipe from agent instructions and correct stale package-only guidance. Core peer compatibility remains `0.7.x`.
4
13
 
5
14
  - Preserve model, usage, and known TypeSafe cost on malformed-answer errors so core 0.7.3 records billed failures. Keep unknown response models unpriced.
6
15
  - Document native core registration and cost recording; existing core peer ranges remain unchanged.
package/README.md CHANGED
@@ -1,16 +1,17 @@
1
1
  # @plumbus/ai-decision-typesafe
2
2
 
3
- Release notes: [changelog](./CHANGELOG.md) and [version/upgrade guide](../../docs/upgrading-voice-and-decision-release.md).
3
+ Release notes: [changelog](./CHANGELOG.md) and [0.8 upgrade notes](../../docs/upgrading-core-0.8.md).
4
4
 
5
5
  TypeSafe/Jev provider for typed choices, scores, and probabilities.
6
6
 
7
- Version `0.2.1`; required peer `@plumbus/core` exactly `0.7.x`; Node.js 20.6+.
7
+ Version `0.3.0-beta.0` (core 0.8 beta family, npm dist-tag `plumbus-next`); required peer
8
+ `@plumbus/core` `>=0.8.0-beta.0 <0.9.0`; Node.js 20.6+.
8
9
  Install explicitly with `pnpm add @plumbus/ai-decision-typesafe`. Provider packages install
9
10
  `@plumbus/ai-decision` transitively. There is no dependency on the other provider.
10
11
 
11
12
  ## Scope
12
13
 
13
- Core `0.7.3+` provides `ctx.ai.decide()` with shared validation, security, budgets,
14
+ Core `0.8.0-beta.6+` provides `ctx.ai.decide()` with shared validation, security, budgets,
14
15
  and per-call cost recording. Define named contracts with `defineDecision` from
15
16
  `@plumbus/ai-decision`, and export explicit provider registration as `decisions`
16
17
  from `app/server.ts` for API and worker processes. See the
@@ -18,6 +19,11 @@ from `app/server.ts` for API and worker processes. See the
18
19
  Direct adapter calls remain useful for infrastructure tests and do not record costs
19
20
  in core. Keep these adapters separate from the text-generation provider registry.
20
21
 
22
+ Core **0.8.0-beta.6+** also supports `ctx.ai.classify({ text, labels, provider, model, threshold })`
23
+ for generative or decision models. Start with
24
+ `node_modules/@plumbus/core/instructions/ai-classification.md` for registration,
25
+ model defaults, multi-label semantics, and cost recording.
26
+
21
27
  ## Quick start (infrastructure / smoke testing)
22
28
 
23
29
  ```ts