@plumbus/ai-decision-laya 0.2.0 → 0.2.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 +8 -0
- package/README.md +8 -4
- package/dist/.tsbuildinfo +1 -1
- package/dist/laya-adapter.d.ts.map +1 -1
- package/dist/laya-adapter.js +19 -2
- package/dist/laya-adapter.js.map +1 -1
- package/instructions/framework.md +4 -3
- package/instructions/testing.md +5 -0
- package/package.json +3 -3
- package/service/test_audit_round_two.py +10 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.1 — Unreleased
|
|
4
|
+
|
|
5
|
+
- Run offline Laya tests with one worker and serial files. One-off smoke runs now stop servers they start on both success and failure; explicit persistent servers and the model cache are preserved.
|
|
6
|
+
|
|
7
|
+
- Preserve model, usage, and configured infrastructure cost on malformed-answer errors. Update the local smoke app to use ctx.ai.decide() and verify scoped ledger records.
|
|
8
|
+
- Synchronize the connection-capacity regression test with server-handler cleanup before checking that a slot can be reused.
|
|
9
|
+
- Document native core registration and cost recording; existing core peer ranges remain unchanged.
|
|
10
|
+
|
|
3
11
|
## 0.2.0 — 2026-09-23
|
|
4
12
|
|
|
5
13
|
- Initial optional self-hosted Laya HTTP adapter for typed choices, scores, and probabilities, using `@plumbus/ai-decision` contracts and validation.
|
package/README.md
CHANGED
|
@@ -4,15 +4,19 @@ Release notes: [changelog](./CHANGELOG.md) and [version/upgrade guide](../../doc
|
|
|
4
4
|
|
|
5
5
|
Laya provider for self-hosted typed decision inference, with a persistent Python reference service.
|
|
6
6
|
|
|
7
|
-
Version `0.2.
|
|
7
|
+
Version `0.2.1`; required peer `@plumbus/core` exactly `0.7.x`; Node.js 20.6+.
|
|
8
8
|
Install explicitly with `pnpm add @plumbus/ai-decision-laya`. Provider packages install
|
|
9
9
|
`@plumbus/ai-decision` transitively. There is no dependency on the other provider.
|
|
10
10
|
|
|
11
11
|
## Scope
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
Core `0.7.3+` provides `ctx.ai.decide()` with shared validation, security, budgets,
|
|
14
|
+
and per-call cost recording. Define named contracts with `defineDecision` from
|
|
15
|
+
`@plumbus/ai-decision`, and export explicit provider registration as `decisions`
|
|
16
|
+
from `app/server.ts` for API and worker processes. See the
|
|
17
|
+
[decision integration guide](../../docs/ai/decision-providers.md#application-integration-and-cost-recording).
|
|
18
|
+
Direct adapter calls remain useful for infrastructure tests and do not record costs
|
|
19
|
+
in core. Keep these adapters separate from the text-generation provider registry.
|
|
16
20
|
|
|
17
21
|
## Quick start (infrastructure / smoke testing)
|
|
18
22
|
|