@eigenpal/docx-editor-agents 1.0.2 → 1.1.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/LICENSE +13 -16
- package/README.md +1 -1
- package/dist/bridge.d.mts +1 -1
- package/dist/bridge.d.ts +1 -1
- package/dist/bridge.js +1 -1
- package/dist/bridge.mjs +1 -1
- package/dist/chunk-EPRXZTIE.js +1 -0
- package/dist/chunk-F22XEI77.mjs +5 -0
- package/dist/chunk-FUL3O7MO.js +5 -0
- package/dist/{chunk-W6AWGFM4.js → chunk-NKRT67UB.js} +2 -2
- package/dist/chunk-QPFWFH5W.mjs +72 -0
- package/dist/{chunk-MQIZY6IO.mjs → chunk-UIE7JPED.mjs} +1 -1
- package/dist/{chunk-RP4LYHUB.js → chunk-VGEZQUGC.js} +1 -1
- package/dist/chunk-XDZHYYU6.mjs +1 -0
- package/dist/{chunk-J2BSSNNF.mjs → chunk-XQG2G2LT.mjs} +1 -1
- package/dist/chunk-YNUYVVTY.js +72 -0
- package/dist/executor-SBR6X4JZ.mjs +1 -0
- package/dist/executor-ZTSOZMKE.js +1 -0
- package/dist/headless-B66Z373X.mjs +1 -0
- package/dist/headless-Y3JKFH2E.js +1 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/mcp.d.mts +1 -1
- package/dist/mcp.d.ts +1 -1
- package/dist/react.d.mts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/react.js +1 -1
- package/dist/react.mjs +1 -1
- package/dist/{server-B7RHNVSu.d.mts → server-BELKcdSd.d.mts} +49 -0
- package/dist/{server-B7RHNVSu.d.ts → server-BELKcdSd.d.ts} +49 -0
- package/dist/server.d.mts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +1 -1
- package/dist/server.mjs +1 -1
- package/dist/vue.js +2 -2
- package/dist/vue.mjs +18 -20
- package/package.json +2 -2
- package/dist/chunk-4UY5MI2V.mjs +0 -71
- package/dist/chunk-6Z6UJ4RC.js +0 -5
- package/dist/chunk-EKCQF23W.mjs +0 -5
- package/dist/chunk-NISW2GF6.js +0 -1
- package/dist/chunk-ONK67NAB.js +0 -71
- package/dist/chunk-X4YGLGUM.mjs +0 -1
- package/dist/executor-QBMOTUCJ.js +0 -1
- package/dist/executor-RSQI3VOF.mjs +0 -1
- package/dist/headless-2IWI27NG.mjs +0 -1
- package/dist/headless-JZRG6TNP.js +0 -1
package/dist/vue.mjs
CHANGED
|
@@ -551,36 +551,36 @@ var I = ["aria-expanded"], L = {
|
|
|
551
551
|
className: { default: "" }
|
|
552
552
|
},
|
|
553
553
|
setup(t) {
|
|
554
|
-
let s = t, c = h(null), f =
|
|
555
|
-
function
|
|
554
|
+
let s = t, c = h(null), f = n(() => s.messages.length === 0 && !s.loading && !s.error);
|
|
555
|
+
function y() {
|
|
556
556
|
if (!s.autoScroll) return;
|
|
557
557
|
let e = s.messages[s.messages.length - 1]?.status === "streaming";
|
|
558
|
-
|
|
558
|
+
c.value?.scrollIntoView({
|
|
559
559
|
behavior: e || s.loading ? "auto" : "smooth",
|
|
560
560
|
block: "end"
|
|
561
561
|
});
|
|
562
562
|
}
|
|
563
563
|
p(() => {
|
|
564
|
-
l(
|
|
564
|
+
l(y), b();
|
|
565
565
|
}), x([
|
|
566
566
|
() => s.messages.length,
|
|
567
567
|
() => s.messages[s.messages.length - 1]?.toolCalls?.length ?? 0,
|
|
568
568
|
() => s.loading,
|
|
569
569
|
() => s.messages[s.messages.length - 1]?.status === "streaming"
|
|
570
|
-
],
|
|
571
|
-
function
|
|
570
|
+
], y, { flush: "post" });
|
|
571
|
+
function b() {
|
|
572
572
|
if (typeof document > "u" || document.getElementById(z)) return;
|
|
573
573
|
let e = document.createElement("style");
|
|
574
574
|
e.id = z, e.textContent = "\n@keyframes epAgentDot {\n 0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }\n 40% { transform: scale(1); opacity: 1; }\n}\n@keyframes epAgentSpin {\n to { transform: rotate(360deg); }\n}\n", document.head.appendChild(e);
|
|
575
575
|
}
|
|
576
|
-
let
|
|
576
|
+
let S = {
|
|
577
577
|
flex: 1,
|
|
578
578
|
overflow: "auto",
|
|
579
579
|
padding: "16px 14px 8px",
|
|
580
580
|
display: "flex",
|
|
581
581
|
flexDirection: "column",
|
|
582
582
|
gap: "10px"
|
|
583
|
-
},
|
|
583
|
+
}, C = {
|
|
584
584
|
messageGroup: {
|
|
585
585
|
display: "flex",
|
|
586
586
|
flexDirection: "column",
|
|
@@ -644,17 +644,15 @@ var I = ["aria-expanded"], L = {
|
|
|
644
644
|
};
|
|
645
645
|
return (n, s) => (m(), a("div", {
|
|
646
646
|
class: u(["ep-agent-chat-log", t.className]),
|
|
647
|
-
style:
|
|
648
|
-
ref_key: "rootEl",
|
|
649
|
-
ref: c,
|
|
647
|
+
style: S,
|
|
650
648
|
role: "log",
|
|
651
649
|
"aria-live": "polite",
|
|
652
650
|
"aria-atomic": "false"
|
|
653
651
|
}, [
|
|
654
|
-
|
|
652
|
+
f.value ? _(n.$slots, "empty", { key: 0 }) : i("", !0),
|
|
655
653
|
(m(!0), a(e, null, g(t.messages, (e) => (m(), a("div", {
|
|
656
654
|
key: e.id,
|
|
657
|
-
style: d(
|
|
655
|
+
style: d(C.messageGroup),
|
|
658
656
|
"data-role": e.role
|
|
659
657
|
}, [e.role === "assistant" && e.toolCalls && e.toolCalls.length > 0 ? (m(), r(R, {
|
|
660
658
|
key: 0,
|
|
@@ -675,34 +673,34 @@ var I = ["aria-expanded"], L = {
|
|
|
675
673
|
"earlier-label"
|
|
676
674
|
])) : i("", !0), e.text.length > 0 ? (m(), a("div", {
|
|
677
675
|
key: 1,
|
|
678
|
-
style: d(e.role === "user" ?
|
|
676
|
+
style: d(e.role === "user" ? C.userBubble : C.assistantBubble)
|
|
679
677
|
}, v(e.text), 5)) : i("", !0)], 12, ne))), 128)),
|
|
680
678
|
t.loading ? (m(), a("div", {
|
|
681
679
|
key: 1,
|
|
682
|
-
style: d(
|
|
680
|
+
style: d(C.thinkingBubble),
|
|
683
681
|
"aria-label": t.thinkingLabel
|
|
684
682
|
}, [
|
|
685
683
|
o("span", { style: d({
|
|
686
|
-
...
|
|
684
|
+
...C.dot,
|
|
687
685
|
animationDelay: "0s"
|
|
688
686
|
}) }, null, 4),
|
|
689
687
|
o("span", { style: d({
|
|
690
|
-
...
|
|
688
|
+
...C.dot,
|
|
691
689
|
animationDelay: "0.15s"
|
|
692
690
|
}) }, null, 4),
|
|
693
691
|
o("span", { style: d({
|
|
694
|
-
...
|
|
692
|
+
...C.dot,
|
|
695
693
|
animationDelay: "0.3s"
|
|
696
694
|
}) }, null, 4)
|
|
697
695
|
], 12, re)) : i("", !0),
|
|
698
696
|
t.error ? (m(), a("div", {
|
|
699
697
|
key: 2,
|
|
700
|
-
style: d(
|
|
698
|
+
style: d(C.errorBubble),
|
|
701
699
|
role: "alert"
|
|
702
700
|
}, v(t.error), 5)) : i("", !0),
|
|
703
701
|
o("div", {
|
|
704
702
|
ref_key: "endEl",
|
|
705
|
-
ref:
|
|
703
|
+
ref: c
|
|
706
704
|
}, null, 512)
|
|
707
705
|
], 2));
|
|
708
706
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eigenpal/docx-editor-agents",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Agent SDK and chat UI for the DOCX editor — framework-agnostic bridge, MCP server, AI SDK adapters, plus React UI (and Vue UI in 1.x)",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css"
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
"vite": "^8.0.10",
|
|
111
111
|
"vite-plugin-dts": "^5.0.0",
|
|
112
112
|
"vue": "^3.4.0",
|
|
113
|
-
"vue-tsc": "^
|
|
113
|
+
"vue-tsc": "^3.3.0"
|
|
114
114
|
},
|
|
115
115
|
"files": [
|
|
116
116
|
"dist",
|