@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.
- package/CHANGELOG.md +10 -2
- package/README.md +5 -2
- package/dist/.tsbuildinfo +1 -1
- package/dist/ai/ai-service.d.ts.map +1 -1
- package/dist/ai/ai-service.js +96 -47
- package/dist/ai/ai-service.js.map +1 -1
- package/dist/ai/provider.d.ts.map +1 -1
- package/dist/ai/provider.js +25 -15
- package/dist/ai/provider.js.map +1 -1
- package/dist/cli/commands/init.d.ts +1 -1
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +3 -1
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/types/context.d.ts +6 -0
- package/dist/types/context.d.ts.map +1 -1
- package/instructions/README.md +2 -1
- package/instructions/ai-classification.md +113 -0
- package/instructions/ai.md +6 -1
- package/instructions/peer-dependencies.md +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
# @plumbus/core changelog
|
|
2
2
|
|
|
3
|
-
## 0.7.
|
|
3
|
+
## 0.7.5 — 2026-09-24
|
|
4
|
+
|
|
5
|
+
- Fix GPT-6 OpenAI request compatibility: Chat Completions use `max_completion_tokens`, active/default reasoning omits unsupported sampling temperature, and tool calls with GPT-6 default reasoning use the Responses API. Explicitly disabled reasoning stays on Chat Completions and retains configured temperature.
|
|
6
|
+
|
|
7
|
+
## 0.7.4 — 2026-09-23
|
|
8
|
+
|
|
9
|
+
- Bump agent wiring to v17 and add a packaged classification recipe covering explicit provider/model selection, defaults, thresholds, and cost recording. All agent formats link the recipe and decision provider instruction indexes; refresh existing apps with `plumbus init --patch --agent all`.
|
|
10
|
+
|
|
11
|
+
- Let `ctx.ai.classify()` select a registered text or decision provider with optional `provider`/`model`. TypeSafe/Laya classification batches probability questions and returns labels meeting `threshold` (default 0.5), sharing decision validation, security, budgets, cancellation, and one `classify` cost record. Existing calls keep their generative default.
|
|
4
12
|
|
|
5
13
|
- Audit 20 decision integration failure scenarios with 30 unit/integration/real-HTTP regression cases. Snapshot billing context and isolate ledger observers from caller results. Share one cost-record ID/timestamp between the tracker and persistence hook.
|
|
6
14
|
|
|
7
15
|
- Add `ctx.ai.decide()` over the shared decision contract, with per-call cost/usage records, tenant/actor attribution, named definitions, security checks over state and questions, budgets, and cancellation forwarding.
|
|
8
16
|
- Wire explicit `app/server.ts` decision registration and `app/decisions/` discovery into API and workers. Preserve decision feature flags through service wrappers and add decision responses to `mockAI`.
|
|
9
17
|
- Reuse `onAICostRecorded` for successful and failed decision calls, preserving unknown cost as null and retaining known billed metadata after invalid provider answers.
|
|
10
|
-
- Depend on `@plumbus/ai-decision@~0.2.
|
|
18
|
+
- Depend on `@plumbus/ai-decision@~0.2.2`; vendor adapters remain optional. Keep typecheck fixtures out of production compilation.
|
|
11
19
|
|
|
12
20
|
## 0.7.2 — 2026-09-23
|
|
13
21
|
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @plumbus/core
|
|
2
2
|
|
|
3
|
-
Release notes: [changelog](./CHANGELOG.md) and [version/upgrade guide](../../docs/upgrading-
|
|
3
|
+
Release notes: [changelog](./CHANGELOG.md) and [version/upgrade guide](../../docs/upgrading-classification.md).
|
|
4
4
|
|
|
5
5
|
**AI-native, contract-driven TypeScript application framework.**
|
|
6
6
|
|
|
@@ -152,6 +152,7 @@ node_modules/@plumbus/core/instructions/
|
|
|
152
152
|
├── flows.md # Workflow steps and retry logic
|
|
153
153
|
├── prompts.md # Prompt content, system/description, model config
|
|
154
154
|
├── ai.md # ctx.ai operations, RAG, cost tracking
|
|
155
|
+
├── ai-classification.md # Provider/model selection, TypeSafe/Jev, Laya
|
|
155
156
|
├── translations.md # i18n catalogs and ctx.translations
|
|
156
157
|
├── security.md # Access policies and tenant isolation
|
|
157
158
|
├── governance.md # Advisory rules and compliance
|
|
@@ -165,7 +166,9 @@ node_modules/@plumbus/core/instructions/
|
|
|
165
166
|
└── upgrading-0.5-capabilities.md # 0.5.x capability invocation migration
|
|
166
167
|
```
|
|
167
168
|
|
|
168
|
-
Wire them up with `plumbus init --agent all`.
|
|
169
|
+
Wire them up with `plumbus init --agent all`. After upgrading to core 0.7.4+, run
|
|
170
|
+
`plumbus init --patch --agent all` for wiring v17. For classification, provider/model
|
|
171
|
+
selection, or TypeSafe/Jev and Laya, start with [the classification recipe](instructions/ai-classification.md).
|
|
169
172
|
|
|
170
173
|
## Documentation
|
|
171
174
|
|