@warlock.js/ai 4.8.0 → 4.8.2
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 +17 -0
- package/cjs/index.cjs +24427 -242
- package/cjs/index.cjs.map +1 -0
- package/esm/ai.mjs +1 -0
- package/esm/ai.mjs.map +1 -1
- package/esm/config.d.mts.map +1 -1
- package/esm/config.mjs +5 -1
- package/esm/config.mjs.map +1 -1
- package/esm/index.d.mts +2 -1
- package/esm/index.mjs +3 -1
- package/esm/memory/index.mjs +3 -0
- package/esm/prompts/index.d.mts +2 -1
- package/esm/prompts/index.mjs +1 -0
- package/esm/prompts/prompts-validate.d.mts +44 -0
- package/esm/prompts/prompts-validate.d.mts.map +1 -0
- package/esm/prompts/prompts-validate.mjs +0 -0
- package/esm/security/redact.d.mts.map +1 -1
- package/esm/security/redact.mjs +7 -1
- package/esm/security/redact.mjs.map +1 -1
- package/esm/skills/catalog.mjs +1 -1
- package/esm/skills/store/procedural-skill-store.mjs +1 -0
- package/esm/skills/store/procedural-skill-store.mjs.map +1 -1
- package/package.json +5 -3
- package/cjs/src-DBn2_pbG.cjs +0 -30
- package/cjs/src-DTlN47aO.cjs +0 -25624
- package/cjs/src-DTlN47aO.cjs.map +0 -1
- package/esm/ai-openai/src/embedder.mjs +0 -4
- package/esm/ai-openai/src/image.mjs +0 -5
- package/esm/ai-openai/src/index.mjs +0 -7
- package/esm/ai-openai/src/model.mjs +0 -5
- package/esm/ai-openai/src/sdk.mjs +0 -9
- package/esm/ai-openai/src/speech.mjs +0 -5
- package/esm/ai-openai/src/transcription.mjs +0 -6
- package/esm/ai-openai/src/utils/index.mjs +0 -5
- package/esm/ai-openai/src/utils/to-openai-messages.mjs +0 -3
- package/esm/ai-openai/src/utils/to-openai-tools.mjs +0 -3
- package/esm/ai-openai/src/utils/wrap-openai-error.mjs +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,23 @@ All notable changes to `@warlock.js/ai` are documented in this file.
|
|
|
4
4
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). `@warlock.js/*` packages are released in lockstep — every package shares the same version number, so a version below may list only the changes that affected this package.
|
|
6
6
|
|
|
7
|
+
## 4.8.2 - 2026-07-22
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- `judgePromptBody` / `formatCriteria` / `JudgeOutcome` — the LLM-as-judge building blocks `ai.prompts().validate()` already used internally are now public, so other packages (`@warlock.js/ai-panoptic`'s trace-level system-prompt evaluation) can grade arbitrary prompt text against a model + rubric without a second judging implementation
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- `redact()` no longer collapses a raw `Error` (or an `Error` nested in a `cause` chain) to `{}` — `name` / `message` / `stack` aren't own-enumerable on `Error` instances, so the previous `Object.entries()` walk saw none of them. This was silently dropping tool/agent error `cause` detail wherever `redact()` runs it, including `@warlock.js/ai-panoptic`'s trace `cause` field (a failed tool's `ToolExecutionError.cause` showed as an empty object in the dashboard instead of the underlying thrown error)
|
|
16
|
+
- `@warlock.js/ai-openai` and `pdf-parse` declared as optional `peerDependencies` — both are lazily `import()`ed (the skills-catalog embedder probe; `ai.rag.loadPdf`) but weren't listed in either `dependencies` or `peerDependencies`, so pkgist's bundler vendored their source directly into `ai`'s own build instead of leaving them external (the same split-brain class of bug as `core`'s missing `@warlock.js/ai` peerDependency, fixed in 4.8.1). For `@warlock.js/ai-openai` specifically this meant the skills-catalog embedder-installed probe always resolved against the vendored copy bundled into `ai`, so it reported an embedder provider as "installed" even when the app never installed `@warlock.js/ai-openai` itself
|
|
17
|
+
|
|
18
|
+
## 4.8.1 - 2026-07-21
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
|
|
22
|
+
- `setAIConfig`'s `onConfigApplied` listener notification no longer swallows a misbehaving listener's exception silently — it's now logged via `log.error("ai", "configListener", error)`
|
|
23
|
+
|
|
7
24
|
## 4.8.0 - 2026-07-19
|
|
8
25
|
|
|
9
26
|
### Added
|