@haklex/rich-agent-core 0.17.1 → 0.20.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/dist/agent-executor.d.ts.map +1 -1
- package/dist/index.mjs +68 -8
- package/dist/protocol.d.ts +32 -1
- package/dist/protocol.d.ts.map +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-executor.d.ts","sourceRoot":"","sources":["../src/agent-executor.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,eAAe,EAGf,WAAW,EACX,gBAAgB,EAEjB,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,WAAW,CAAC;IACtB,QAAQ,EAAE,cAAc,CAAC;IACzB,KAAK,EAAE,UAAU,CAAC;IAClB,KAAK,EAAE,eAAe,EAAE,CAAC;IACzB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,mBAAmB,CAAC,EAAE,CAAC,UAAU,EAAE,cAAc,EAAE,KAAK,IAAI,CAAC;CAC9D,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,UAAU,EAAE,cAAc,EAAE,CAAC;CAC9B,CAAC;AA0CF,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,mBAAmB;2BAmB1C,IAAI,CAAC,gBAAgB,EAAE,OAAO,CAAC,KAC/C,OAAO,CAAC,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"agent-executor.d.ts","sourceRoot":"","sources":["../src/agent-executor.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,eAAe,EAGf,WAAW,EACX,gBAAgB,EAEjB,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,WAAW,CAAC;IACtB,QAAQ,EAAE,cAAc,CAAC;IACzB,KAAK,EAAE,UAAU,CAAC;IAClB,KAAK,EAAE,eAAe,EAAE,CAAC;IACzB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,mBAAmB,CAAC,EAAE,CAAC,UAAU,EAAE,cAAc,EAAE,KAAK,IAAI,CAAC;CAC9D,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,UAAU,EAAE,cAAc,EAAE,CAAC;CAC9B,CAAC;AA0CF,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,mBAAmB;2BAmB1C,IAAI,CAAC,gBAAgB,EAAE,OAAO,CAAC,KAC/C,OAAO,CAAC,mBAAmB,CAAC;EAiRhC"}
|
package/dist/index.mjs
CHANGED
|
@@ -518,7 +518,8 @@ function createAgentExecutor(config) {
|
|
|
518
518
|
let streamGroupId = null;
|
|
519
519
|
const streamToolTurns = [];
|
|
520
520
|
let assistantBubbleOpen = false;
|
|
521
|
-
const
|
|
521
|
+
const partialToolIds = /* @__PURE__ */ new Set();
|
|
522
|
+
const ensureStreamGroup = () => {
|
|
522
523
|
if (assistantBubbleOpen) {
|
|
523
524
|
updateLastBubble({
|
|
524
525
|
type: "assistant",
|
|
@@ -537,6 +538,37 @@ function createAgentExecutor(config) {
|
|
|
537
538
|
});
|
|
538
539
|
setStatus("calling_tool");
|
|
539
540
|
}
|
|
541
|
+
return streamGroupId;
|
|
542
|
+
};
|
|
543
|
+
const handleToolCallPartial = (chunk) => {
|
|
544
|
+
const groupId = ensureStreamGroup();
|
|
545
|
+
let params;
|
|
546
|
+
try {
|
|
547
|
+
const parsed = JSON.parse(chunk.argumentsPartial);
|
|
548
|
+
params = parsed && typeof parsed === "object" && !Array.isArray(parsed) ? parsed : {};
|
|
549
|
+
} catch {
|
|
550
|
+
params = {};
|
|
551
|
+
}
|
|
552
|
+
const { addToolCallItem, updateToolCallItem } = store.getState();
|
|
553
|
+
if (!partialToolIds.has(chunk.id)) {
|
|
554
|
+
partialToolIds.add(chunk.id);
|
|
555
|
+
addToolCallItem(groupId, {
|
|
556
|
+
id: chunk.id,
|
|
557
|
+
toolName: chunk.name,
|
|
558
|
+
description: describeToolCall(toolMap.get(chunk.name), params),
|
|
559
|
+
params,
|
|
560
|
+
status: "running",
|
|
561
|
+
startedAt: Date.now()
|
|
562
|
+
});
|
|
563
|
+
} else updateToolCallItem(groupId, chunk.id, {
|
|
564
|
+
params,
|
|
565
|
+
description: describeToolCall(toolMap.get(chunk.name), params)
|
|
566
|
+
});
|
|
567
|
+
};
|
|
568
|
+
const runToolCallMidStream = async (tc) => {
|
|
569
|
+
ensureStreamGroup();
|
|
570
|
+
const groupId = streamGroupId;
|
|
571
|
+
const alreadyAdded = partialToolIds.has(tc.id);
|
|
540
572
|
let params;
|
|
541
573
|
let parseError = null;
|
|
542
574
|
try {
|
|
@@ -546,7 +578,7 @@ function createAgentExecutor(config) {
|
|
|
546
578
|
parseError = e.message;
|
|
547
579
|
}
|
|
548
580
|
const { addToolCallItem, updateToolCallItem } = store.getState();
|
|
549
|
-
addToolCallItem(
|
|
581
|
+
if (!alreadyAdded) addToolCallItem(groupId, {
|
|
550
582
|
id: tc.id,
|
|
551
583
|
toolName: tc.name,
|
|
552
584
|
description: describeToolCall(toolMap.get(tc.name), params),
|
|
@@ -558,6 +590,15 @@ function createAgentExecutor(config) {
|
|
|
558
590
|
finishedAt: Date.now()
|
|
559
591
|
} : {}
|
|
560
592
|
});
|
|
593
|
+
else updateToolCallItem(groupId, tc.id, {
|
|
594
|
+
params,
|
|
595
|
+
description: describeToolCall(toolMap.get(tc.name), params),
|
|
596
|
+
...parseError ? {
|
|
597
|
+
status: "error",
|
|
598
|
+
error: `JSON parse error: ${parseError}`,
|
|
599
|
+
finishedAt: Date.now()
|
|
600
|
+
} : { status: "running" }
|
|
601
|
+
});
|
|
561
602
|
if (parseError) {
|
|
562
603
|
streamToolTurns.push({
|
|
563
604
|
role: "tool_result",
|
|
@@ -569,7 +610,7 @@ function createAgentExecutor(config) {
|
|
|
569
610
|
}
|
|
570
611
|
const result = await executeTool(tc.name, tc.arguments);
|
|
571
612
|
const content = result.ok ? result.content : JSON.stringify(result.error);
|
|
572
|
-
updateToolCallItem(
|
|
613
|
+
updateToolCallItem(groupId, tc.id, {
|
|
573
614
|
status: result.ok ? "completed" : "error",
|
|
574
615
|
result: result.ok ? result.content : void 0,
|
|
575
616
|
resultPreview: result.ok ? result.content.slice(0, 80) : void 0,
|
|
@@ -633,6 +674,25 @@ function createAgentExecutor(config) {
|
|
|
633
674
|
}
|
|
634
675
|
continue;
|
|
635
676
|
}
|
|
677
|
+
if (chunk.type === "tool_call_start") {
|
|
678
|
+
const groupId = ensureStreamGroup();
|
|
679
|
+
if (!partialToolIds.has(chunk.id)) {
|
|
680
|
+
partialToolIds.add(chunk.id);
|
|
681
|
+
store.getState().addToolCallItem(groupId, {
|
|
682
|
+
id: chunk.id,
|
|
683
|
+
toolName: chunk.name,
|
|
684
|
+
description: describeToolCall(toolMap.get(chunk.name), {}),
|
|
685
|
+
params: {},
|
|
686
|
+
status: "running",
|
|
687
|
+
startedAt: Date.now()
|
|
688
|
+
});
|
|
689
|
+
}
|
|
690
|
+
continue;
|
|
691
|
+
}
|
|
692
|
+
if (chunk.type === "tool_call_partial") {
|
|
693
|
+
handleToolCallPartial(chunk);
|
|
694
|
+
continue;
|
|
695
|
+
}
|
|
636
696
|
if (chunk.type === "tool_call") {
|
|
637
697
|
toolCalls.push({
|
|
638
698
|
id: chunk.id,
|
|
@@ -1415,28 +1475,28 @@ var agentStoreSelectors = {
|
|
|
1415
1475
|
status: (state) => state.status
|
|
1416
1476
|
};
|
|
1417
1477
|
//#endregion
|
|
1418
|
-
//#region \0@oxc-project+runtime@0.
|
|
1478
|
+
//#region \0@oxc-project+runtime@0.132.0/helpers/checkPrivateRedeclaration.js
|
|
1419
1479
|
function _checkPrivateRedeclaration(e, t) {
|
|
1420
1480
|
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
1421
1481
|
}
|
|
1422
1482
|
//#endregion
|
|
1423
|
-
//#region \0@oxc-project+runtime@0.
|
|
1483
|
+
//#region \0@oxc-project+runtime@0.132.0/helpers/classPrivateFieldInitSpec.js
|
|
1424
1484
|
function _classPrivateFieldInitSpec(e, t, a) {
|
|
1425
1485
|
_checkPrivateRedeclaration(e, t), t.set(e, a);
|
|
1426
1486
|
}
|
|
1427
1487
|
//#endregion
|
|
1428
|
-
//#region \0@oxc-project+runtime@0.
|
|
1488
|
+
//#region \0@oxc-project+runtime@0.132.0/helpers/assertClassBrand.js
|
|
1429
1489
|
function _assertClassBrand(e, t, n) {
|
|
1430
1490
|
if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
1431
1491
|
throw new TypeError("Private element is not present on this object");
|
|
1432
1492
|
}
|
|
1433
1493
|
//#endregion
|
|
1434
|
-
//#region \0@oxc-project+runtime@0.
|
|
1494
|
+
//#region \0@oxc-project+runtime@0.132.0/helpers/classPrivateFieldGet2.js
|
|
1435
1495
|
function _classPrivateFieldGet2(s, a) {
|
|
1436
1496
|
return s.get(_assertClassBrand(s, a));
|
|
1437
1497
|
}
|
|
1438
1498
|
//#endregion
|
|
1439
|
-
//#region \0@oxc-project+runtime@0.
|
|
1499
|
+
//#region \0@oxc-project+runtime@0.132.0/helpers/classPrivateFieldSet2.js
|
|
1440
1500
|
function _classPrivateFieldSet2(s, a, r) {
|
|
1441
1501
|
return s.set(_assertClassBrand(s, a), r), r;
|
|
1442
1502
|
}
|
package/dist/protocol.d.ts
CHANGED
|
@@ -35,7 +35,38 @@ export type LLMChunk = {
|
|
|
35
35
|
} | {
|
|
36
36
|
type: 'thinking';
|
|
37
37
|
text: string;
|
|
38
|
-
}
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Opens a streaming tool call. Emitted as soon as `(id, name)` are both known,
|
|
41
|
+
* before any argument bytes arrive — useful for upstream providers (e.g. pi-ai)
|
|
42
|
+
* that surface a dedicated start event. The executor renders a placeholder row
|
|
43
|
+
* immediately with empty params; subsequent `tool_call_partial` / `tool_call`
|
|
44
|
+
* frames with the same `id` overwrite it.
|
|
45
|
+
*/
|
|
46
|
+
| {
|
|
47
|
+
type: 'tool_call_start';
|
|
48
|
+
id: string;
|
|
49
|
+
name: string;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Streaming snapshot of a tool call still under construction. `argumentsPartial`
|
|
53
|
+
* is the accumulated raw JSON text up to this frame (may be unparseable mid-stream)
|
|
54
|
+
* — providers emit the latest snapshot per id, not incremental deltas, so the
|
|
55
|
+
* executor can render the in-progress params without maintaining accumulator state.
|
|
56
|
+
*/
|
|
57
|
+
| {
|
|
58
|
+
type: 'tool_call_partial';
|
|
59
|
+
id: string;
|
|
60
|
+
name: string;
|
|
61
|
+
argumentsPartial: string;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Final, complete tool call. Serves as the implicit "end" of a streaming call
|
|
65
|
+
* (if `tool_call_start` / `tool_call_partial` were previously emitted with the
|
|
66
|
+
* same `id`, the executor reuses the existing item) and as a standalone atomic
|
|
67
|
+
* tool call for providers that don't stream arguments.
|
|
68
|
+
*/
|
|
69
|
+
| {
|
|
39
70
|
type: 'tool_call';
|
|
40
71
|
id: string;
|
|
41
72
|
name: string;
|
package/dist/protocol.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../src/protocol.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GACnB;IAAE,IAAI,EAAE,QAAQ,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,CAAC,EAAE;QACf,GAAG,CAAC,EAAE,MAAM,CAAC;KACd,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,cAAc,CAAC,EAAE,2BAA2B,CAAC;IAC7C,WAAW,CAAC,EAAE,wBAAwB,CAAC;IACvC,aAAa,CAAC,EAAE,qBAAqB,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,cAAc,EAAE,KAAK,CAAC,OAAO,CAAC,WAAW,EAAE;QAAE,IAAI,EAAE,QAAQ,CAAA;KAAE,CAAC,CAAC,CAAC;IAChE,QAAQ,EAAE,WAAW,EAAE,CAAC;CACzB,CAAC;AAEF,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,CAAC,OAAO,EAAE,oBAAoB,KAAK,gBAAgB,CAAC;CAC9D;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,cAAc,EAAE,WAAW,EAAE,CAAC;IAC9B,gBAAgB,EAAE,WAAW,EAAE,CAAC;IAChC,KAAK,EAAE,WAAW,EAAE,CAAC;CACtB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haklex/rich-agent-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"description": "Headless AI agent protocol, diff engine, and store for Lexical editor",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -21,20 +21,20 @@
|
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"nanoid": "^5.1.11",
|
|
24
|
-
"zustand": "^5.0.
|
|
25
|
-
"@haklex/rich-litexml": "0.
|
|
24
|
+
"zustand": "^5.0.14",
|
|
25
|
+
"@haklex/rich-litexml": "0.20.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"lexical": "^0.
|
|
28
|
+
"lexical": "^0.45.0",
|
|
29
29
|
"typescript": "^5.9.3",
|
|
30
30
|
"unplugin-dts": "^1.0.1",
|
|
31
|
-
"vite": "^8.0.
|
|
31
|
+
"vite": "^8.0.14",
|
|
32
32
|
"vitest": "^4.1.7",
|
|
33
|
-
"@haklex/rich-editor": "0.
|
|
33
|
+
"@haklex/rich-editor": "0.20.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"lexical": "^0.
|
|
37
|
-
"@haklex/rich-editor": "0.
|
|
36
|
+
"lexical": "^0.45.0",
|
|
37
|
+
"@haklex/rich-editor": "0.20.0"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|