@plumbus/ai-decision-laya 0.2.3 → 0.3.0-beta.1
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 +13 -0
- package/README.md +5 -5
- package/dist/.tsbuildinfo +1 -1
- package/instructions/README.md +2 -2
- package/instructions/framework.md +3 -3
- package/instructions/testing.md +2 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.0-beta.1 — 2026-10-12
|
|
4
|
+
|
|
5
|
+
- Require shared decision contracts `~0.3.0-beta.1` when packed and refresh the provider README. Laya runtime behavior is unchanged.
|
|
6
|
+
- Include the offline service-test fix that reads the over-capacity refusal without racing a request-body write.
|
|
7
|
+
|
|
8
|
+
## 0.3.0-beta.0 — 2026-09-23 — core 0.8 beta family
|
|
9
|
+
|
|
10
|
+
### Upgrade boundary
|
|
11
|
+
|
|
12
|
+
- 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.
|
|
13
|
+
- Same adapter and Python reference service 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`.
|
|
14
|
+
- The connection-capacity service test reads the over-capacity 503 without sending a request. The server refuses at accept before reading, so a client still writing its body could be reset first; the test failed about one run in ten.
|
|
15
|
+
|
|
3
16
|
## 0.2.3 — 2026-10-08
|
|
4
17
|
|
|
5
18
|
- The README now uses the standard Plumbus package format (badges, Why?, What you get, When to use this vs alternatives, Status, Pricing, Configuration, Key gotchas, Links), keeping all of its earlier content. Runtime behavior, the Python reference service, and the core peer range are unchanged from 0.2.2.
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@plumbus/ai-decision-laya)
|
|
6
6
|
[](https://github.com/plumbus-framework/plumbus/blob/main/LICENSE)
|
|
7
|
-
[](https://www.npmjs.com/package/@plumbus/core)
|
|
8
8
|
|
|
9
9
|
## What is this?
|
|
10
10
|
|
|
@@ -45,11 +45,11 @@ This package gives apps that keep inference on their own infrastructure a regist
|
|
|
45
45
|
|
|
46
46
|
## Status
|
|
47
47
|
|
|
48
|
-
Optional decision provider, version `0.
|
|
48
|
+
Optional decision provider, version `0.3.0-beta.1` (core 0.8 beta family, npm dist-tag `plumbus-next`); required peer `@plumbus/core` **`>=0.8.0-beta.0 <0.9.0`**; Node.js 20.6+. **Runtime floor:** `ctx.ai.decide()` needs `@plumbus/core` **≥ 0.7.3** and `ctx.ai.classify({ provider })` needs **≥ 0.7.4**; agent wiring **v17** (core 0.7.4+) links these instructions. Depends on `@plumbus/ai-decision` `~0.3.0-beta.1`. Install alone is not enough until the adapter is registered under `decisions.providers` and a Laya server is running. Python/model dependencies are installed separately from pnpm.
|
|
49
49
|
|
|
50
50
|
Not included: vendor model catalogs, automatic environment provider discovery, and dedicated decision CLI commands.
|
|
51
51
|
|
|
52
|
-
Release notes: [changelog](./CHANGELOG.md) and [
|
|
52
|
+
Release notes: [changelog](./CHANGELOG.md) and [0.8 upgrade notes](../../docs/upgrading-core-0.8.md), and [classification upgrade guide](../../docs/upgrading-classification.md).
|
|
53
53
|
|
|
54
54
|
## Install
|
|
55
55
|
|
|
@@ -73,7 +73,7 @@ Then start a Laya server. The [Laya service](../../docs/ai/decision-providers.md
|
|
|
73
73
|
|
|
74
74
|
## Quick start
|
|
75
75
|
|
|
76
|
-
Core `0.
|
|
76
|
+
Core `0.8.0-beta.6+` provides `ctx.ai.decide()` with shared validation, security, budgets,
|
|
77
77
|
and per-call cost recording. Define named contracts with `defineDecision` from
|
|
78
78
|
`@plumbus/ai-decision`, and export explicit provider registration as `decisions`
|
|
79
79
|
from `app/server.ts` for API and worker processes. See the
|
|
@@ -108,7 +108,7 @@ const result = await ctx.ai.decide({
|
|
|
108
108
|
result.answers.refund.probability; // P(true), not a boolean
|
|
109
109
|
```
|
|
110
110
|
|
|
111
|
-
Core **0.
|
|
111
|
+
Core **0.8.0-beta.6+** also supports `ctx.ai.classify({ text, labels, provider, model, threshold })`
|
|
112
112
|
for generative or decision models. Start with
|
|
113
113
|
`node_modules/@plumbus/core/instructions/ai-classification.md` for registration,
|
|
114
114
|
model defaults, multi-label semantics, and cost recording. For Laya automatic language
|