@eigenpal/docx-editor-agents 1.0.0 → 1.0.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/dist/ai-sdk/vue.js +1 -1
- package/dist/ai-sdk/vue.mjs +27 -30
- package/dist/bridge.js +1 -1
- package/dist/bridge.mjs +1 -1
- package/dist/chunk-4UY5MI2V.mjs +71 -0
- package/dist/{chunk-RYHTROV6.js → chunk-6Z6UJ4RC.js} +3 -3
- package/dist/{chunk-ULRDFDHR.mjs → chunk-EKCQF23W.mjs} +1 -1
- package/dist/{chunk-XWXSTZIE.mjs → chunk-J2BSSNNF.mjs} +1 -1
- package/dist/{chunk-HWYEQX5Y.mjs → chunk-MQIZY6IO.mjs} +1 -1
- package/dist/chunk-ONK67NAB.js +71 -0
- package/dist/{chunk-Q5KDGSCS.js → chunk-RP4LYHUB.js} +1 -1
- package/dist/{chunk-3EQVOH4S.js → chunk-W6AWGFM4.js} +2 -2
- package/dist/docx-editor-agents.css +2 -1
- package/dist/{headless-Q72PHJUD.mjs → headless-2IWI27NG.mjs} +1 -1
- package/dist/{headless-U2SAKM5E.js → headless-JZRG6TNP.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/react.js +1 -1
- package/dist/react.mjs +1 -1
- package/dist/server.js +1 -1
- package/dist/server.mjs +1 -1
- package/dist/vue.js +12 -13
- package/dist/vue.mjs +1983 -1829
- package/package.json +3 -3
- package/dist/chunk-7JG2PH72.js +0 -71
- package/dist/chunk-D3TF6WTP.mjs +0 -71
package/dist/ai-sdk/vue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});function e(e,t){return e.map((n,r)=>{let i=``,a=[];for(let e of n.parts??[])if(e.type===`text`)i+=e.text??``;else if(e.type.startsWith(`tool-`)){let t=e.state===`output-available`?`done`:e.state===`output-error`?`error`:`running`;a.push({id:e.toolCallId??`${n.id}-tc-${a.length}`,name:e.type.slice(5),input:e.input,result:typeof e.output==`string`?e.output:void 0,error:e.errorText,status:t})}let o=r===e.length-1,s=n.role===`assistant`&&o&&(t===`streaming`||t===`submitted`);return{id:n.id,role:n.role===`user`?`user`:`assistant`,text:i,toolCalls:a.length>0?a:void 0,status:s?`streaming`:`done`}})}exports.toAgentMessages=e;
|
package/dist/ai-sdk/vue.mjs
CHANGED
|
@@ -1,31 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
};
|
|
27
|
-
});
|
|
1
|
+
//#region src/ai-sdk/shared.ts
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
return e.map((n, r) => {
|
|
4
|
+
let i = "", a = [];
|
|
5
|
+
for (let e of n.parts ?? []) if (e.type === "text") i += e.text ?? "";
|
|
6
|
+
else if (e.type.startsWith("tool-")) {
|
|
7
|
+
let t = e.state === "output-available" ? "done" : e.state === "output-error" ? "error" : "running";
|
|
8
|
+
a.push({
|
|
9
|
+
id: e.toolCallId ?? `${n.id}-tc-${a.length}`,
|
|
10
|
+
name: e.type.slice(5),
|
|
11
|
+
input: e.input,
|
|
12
|
+
result: typeof e.output == "string" ? e.output : void 0,
|
|
13
|
+
error: e.errorText,
|
|
14
|
+
status: t
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
let o = r === e.length - 1, s = n.role === "assistant" && o && (t === "streaming" || t === "submitted");
|
|
18
|
+
return {
|
|
19
|
+
id: n.id,
|
|
20
|
+
role: n.role === "user" ? "user" : "assistant",
|
|
21
|
+
text: i,
|
|
22
|
+
toolCalls: a.length > 0 ? a : void 0,
|
|
23
|
+
status: s ? "streaming" : "done"
|
|
24
|
+
};
|
|
25
|
+
});
|
|
28
26
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
};
|
|
27
|
+
//#endregion
|
|
28
|
+
export { e as toAgentMessages };
|
package/dist/bridge.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkW6AWGFM4_js=require('./chunk-W6AWGFM4.js'),chunk6Z6UJ4RC_js=require('./chunk-6Z6UJ4RC.js'),chunkRI5S75JY_js=require('./chunk-RI5S75JY.js');Object.defineProperty(exports,"createEditorBridge",{enumerable:true,get:function(){return chunkW6AWGFM4_js.a}});Object.defineProperty(exports,"createReviewerBridge",{enumerable:true,get:function(){return chunk6Z6UJ4RC_js.m}});Object.defineProperty(exports,"agentTools",{enumerable:true,get:function(){return chunkRI5S75JY_js.a}});Object.defineProperty(exports,"executeToolCall",{enumerable:true,get:function(){return chunkRI5S75JY_js.b}});Object.defineProperty(exports,"getToolSchemas",{enumerable:true,get:function(){return chunkRI5S75JY_js.d}});
|
package/dist/bridge.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as createEditorBridge}from'./chunk-
|
|
1
|
+
export{a as createEditorBridge}from'./chunk-J2BSSNNF.mjs';export{m as createReviewerBridge}from'./chunk-EKCQF23W.mjs';export{a as agentTools,b as executeToolCall,d as getToolSchemas}from'./chunk-24MVJKCP.mjs';
|