@haklex/rich-agent-core 0.30.0 → 0.31.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/dist/index.mjs +7 -6
- package/package.json +9 -9
package/dist/index.mjs
CHANGED
|
@@ -1045,7 +1045,8 @@ function createProvider(config) {
|
|
|
1045
1045
|
const { model, transport, providerType } = config;
|
|
1046
1046
|
const parse = providerType === "claude" ? parseClaudeSSE : parseOpenAISSE;
|
|
1047
1047
|
return { async *chat(messages, tools) {
|
|
1048
|
-
const
|
|
1048
|
+
const controller = new AbortController();
|
|
1049
|
+
const response = await transport(messages, tools, model, controller.signal);
|
|
1049
1050
|
if (!response.ok) {
|
|
1050
1051
|
const err = await response.text();
|
|
1051
1052
|
throw new Error(`LLM API error (${response.status}): ${err}`);
|
|
@@ -1482,28 +1483,28 @@ var agentStoreSelectors = {
|
|
|
1482
1483
|
status: (state) => state.status
|
|
1483
1484
|
};
|
|
1484
1485
|
//#endregion
|
|
1485
|
-
//#region \0@oxc-project+runtime@0.
|
|
1486
|
+
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/checkPrivateRedeclaration.js
|
|
1486
1487
|
function _checkPrivateRedeclaration(e, t) {
|
|
1487
1488
|
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
1488
1489
|
}
|
|
1489
1490
|
//#endregion
|
|
1490
|
-
//#region \0@oxc-project+runtime@0.
|
|
1491
|
+
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/classPrivateFieldInitSpec.js
|
|
1491
1492
|
function _classPrivateFieldInitSpec(e, t, a) {
|
|
1492
1493
|
_checkPrivateRedeclaration(e, t), t.set(e, a);
|
|
1493
1494
|
}
|
|
1494
1495
|
//#endregion
|
|
1495
|
-
//#region \0@oxc-project+runtime@0.
|
|
1496
|
+
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/assertClassBrand.js
|
|
1496
1497
|
function _assertClassBrand(e, t, n) {
|
|
1497
1498
|
if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
1498
1499
|
throw new TypeError("Private element is not present on this object");
|
|
1499
1500
|
}
|
|
1500
1501
|
//#endregion
|
|
1501
|
-
//#region \0@oxc-project+runtime@0.
|
|
1502
|
+
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/classPrivateFieldGet2.js
|
|
1502
1503
|
function _classPrivateFieldGet2(s, a) {
|
|
1503
1504
|
return s.get(_assertClassBrand(s, a));
|
|
1504
1505
|
}
|
|
1505
1506
|
//#endregion
|
|
1506
|
-
//#region \0@oxc-project+runtime@0.
|
|
1507
|
+
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/classPrivateFieldSet2.js
|
|
1507
1508
|
function _classPrivateFieldSet2(s, a, r) {
|
|
1508
1509
|
return s.set(_assertClassBrand(s, a), r), r;
|
|
1509
1510
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haklex/rich-agent-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.31.1",
|
|
4
4
|
"description": "Headless AI agent protocol, diff engine, and store for Lexical editor",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -20,21 +20,21 @@
|
|
|
20
20
|
"dist"
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"nanoid": "^
|
|
23
|
+
"nanoid": "^6.0.0",
|
|
24
24
|
"zustand": "^5.0.14",
|
|
25
|
-
"@haklex/rich-litexml": "0.
|
|
25
|
+
"@haklex/rich-litexml": "0.31.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"lexical": "^0.
|
|
28
|
+
"lexical": "^0.48.0",
|
|
29
29
|
"typescript": "^6.0.3",
|
|
30
30
|
"unplugin-dts": "^1.0.3",
|
|
31
|
-
"vite": "^8.1.
|
|
32
|
-
"vitest": "^4.1.
|
|
33
|
-
"@haklex/rich-editor": "0.
|
|
31
|
+
"vite": "^8.1.5",
|
|
32
|
+
"vitest": "^4.1.10",
|
|
33
|
+
"@haklex/rich-editor": "0.31.1"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"lexical": "^0.
|
|
37
|
-
"@haklex/rich-editor": "^0.
|
|
36
|
+
"lexical": "^0.47.0",
|
|
37
|
+
"@haklex/rich-editor": "^0.31.1"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|