@warlock.js/ai 4.10.0 → 4.12.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
|
@@ -4,6 +4,12 @@ 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.12.0
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- Declares its own test runner and pins it to an exact version (`vitest@4.1.10`). The package is its own repository, so a runner resolved from a workspace root it may not be cloned with is a runner it cannot rely on. The pin is exact rather than a range because the version moved underneath the suite mid-development on an unrelated install — a suite whose runner can change without anyone choosing it proves less than it appears to
|
|
12
|
+
|
|
7
13
|
## 4.9.0 - 2026-08-06
|
|
8
14
|
|
|
9
15
|
### Added
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.mjs","names":[],"sources":["../../../../../../../../../../node_modules/@vitest/utils/dist/error.js"],"sourcesContent":["import { format } from '@vitest/pretty-format';\nimport { printDiffOrStringify, getDefaultFormatOptions } from './diff.js';\nimport { serializeValue } from './serialize.js';\nimport 'tinyrainbow';\nimport './display.js';\nimport './helpers.js';\nimport './constants.js';\n\nfunction processError(_err, diffOptions, seen = new WeakSet()) {\n\tif (!_err || typeof _err !== \"object\") {\n\t\treturn { message: String(_err) };\n\t}\n\tconst err = _err;\n\tif (err.showDiff || err.showDiff === undefined && err.expected !== undefined && err.actual !== undefined) {\n\t\tconst options = {\n\t\t\t...diffOptions,\n\t\t\t...err.diffOptions\n\t\t};\n\t\terr.diff = printDiffOrStringify(err.actual, err.expected, options, err);\n\t\terr.expected = prettifyValue(err.expected, options);\n\t\terr.actual = prettifyValue(err.actual, options);\n\t}\n\t// some Error implementations may not allow rewriting cause\n\t// in most cases, the assignment will lead to \"err.cause = err.cause\"\n\ttry {\n\t\tif (!seen.has(err) && typeof err.cause === \"object\") {\n\t\t\tseen.add(err);\n\t\t\terr.cause = processError(err.cause, diffOptions, seen);\n\t\t}\n\t} catch {}\n\ttry {\n\t\treturn serializeValue(err);\n\t} catch (e) {\n\t\treturn serializeValue(new Error(`Failed to fully serialize error: ${e?.message}\\nInner error message: ${err?.message}`));\n\t}\n}\nfunction prettifyValue(value, options) {\n\tif (typeof value !== \"string\") {\n\t\treturn format(value, getDefaultFormatOptions(options));\n\t}\n\treturn value;\n}\n\nexport { processError, serializeValue as serializeError };\n"],"x_google_ignoreList":[0],"mappings":"
|
|
1
|
+
{"version":3,"file":"error.mjs","names":[],"sources":["../../../../../../../../../../node_modules/@vitest/utils/dist/error.js"],"sourcesContent":["import { format } from '@vitest/pretty-format';\nimport { printDiffOrStringify, getDefaultFormatOptions } from './diff.js';\nimport { serializeValue } from './serialize.js';\nimport 'tinyrainbow';\nimport './display.js';\nimport './helpers.js';\nimport './constants.js';\n\nfunction processError(_err, diffOptions, seen = new WeakSet()) {\n\tif (!_err || typeof _err !== \"object\") {\n\t\treturn { message: String(_err) };\n\t}\n\tconst err = _err;\n\tif (err.showDiff || err.showDiff === undefined && err.expected !== undefined && err.actual !== undefined) {\n\t\tconst options = {\n\t\t\t...diffOptions,\n\t\t\t...err.diffOptions\n\t\t};\n\t\terr.diff = printDiffOrStringify(err.actual, err.expected, options, err);\n\t\terr.expected = prettifyValue(err.expected, options);\n\t\terr.actual = prettifyValue(err.actual, options);\n\t}\n\t// some Error implementations may not allow rewriting cause\n\t// in most cases, the assignment will lead to \"err.cause = err.cause\"\n\ttry {\n\t\tif (!seen.has(err) && typeof err.cause === \"object\") {\n\t\t\tseen.add(err);\n\t\t\terr.cause = processError(err.cause, diffOptions, seen);\n\t\t}\n\t} catch {}\n\ttry {\n\t\treturn serializeValue(err);\n\t} catch (e) {\n\t\treturn serializeValue(new Error(`Failed to fully serialize error: ${e?.message}\\nInner error message: ${err?.message}`));\n\t}\n}\nfunction prettifyValue(value, options) {\n\tif (typeof value !== \"string\") {\n\t\treturn format(value, getDefaultFormatOptions(options));\n\t}\n\treturn value;\n}\n\nexport { processError, serializeValue as serializeError };\n"],"x_google_ignoreList":[0],"mappings":";;;;;AAQA,SAAS,aAAa,MAAM,aAAa,uBAAO,IAAI,QAAQ,GAAG;CAC9D,IAAI,CAAC,QAAQ,OAAO,SAAS,UAC5B,OAAO,EAAE,SAAS,OAAO,IAAI,EAAE;CAEhC,MAAM,MAAM;CACZ,IAAI,IAAI,YAAY,IAAI,aAAa,UAAa,IAAI,aAAa,UAAa,IAAI,WAAW,QAAW;EACzG,MAAM,UAAU;GACf,GAAG;GACH,GAAG,IAAI;EACR;EACA,IAAI,OAAO,qBAAqB,IAAI,QAAQ,IAAI,UAAU,SAAS,GAAG;EACtE,IAAI,WAAW,cAAc,IAAI,UAAU,OAAO;EAClD,IAAI,SAAS,cAAc,IAAI,QAAQ,OAAO;CAC/C;CAGA,IAAI;EACH,IAAI,CAAC,KAAK,IAAI,GAAG,KAAK,OAAO,IAAI,UAAU,UAAU;GACpD,KAAK,IAAI,GAAG;GACZ,IAAI,QAAQ,aAAa,IAAI,OAAO,aAAa,IAAI;EACtD;CACD,QAAQ,CAAC;CACT,IAAI;EACH,OAAO,eAAe,GAAG;CAC1B,SAAS,GAAG;EACX,OAAO,+BAAe,IAAI,MAAM,oCAAoC,GAAG,QAAQ,yBAAyB,KAAK,SAAS,CAAC;CACxH;AACD;AACA,SAAS,cAAc,OAAO,SAAS;CACtC,IAAI,OAAO,UAAU,UACpB,OAAO,OAAO,OAAO,wBAAwB,OAAO,CAAC;CAEtD,OAAO;AACR"}
|
package/package.json
CHANGED
|
@@ -15,16 +15,16 @@
|
|
|
15
15
|
"@standard-schema/spec": "^1.0.0"
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
|
-
"@warlock.js/ai-openai": "4.
|
|
19
|
-
"@warlock.js/cache": "4.
|
|
20
|
-
"@warlock.js/logger": "4.
|
|
18
|
+
"@warlock.js/ai-openai": "4.12.0",
|
|
19
|
+
"@warlock.js/cache": "4.12.0",
|
|
20
|
+
"@warlock.js/logger": "4.12.0",
|
|
21
21
|
"langfuse": "*",
|
|
22
22
|
"openai": "*",
|
|
23
23
|
"pdf-parse": "*",
|
|
24
24
|
"pg": "*",
|
|
25
25
|
"redis": "*"
|
|
26
26
|
},
|
|
27
|
-
"version": "4.
|
|
27
|
+
"version": "4.12.0",
|
|
28
28
|
"main": "./cjs/index.cjs",
|
|
29
29
|
"module": "./esm/index.mjs",
|
|
30
30
|
"types": "./esm/index.d.mts",
|