@eigenpal/docx-editor-agents 1.0.1 → 1.0.3
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/README.md +1 -1
- package/dist/ai-sdk/vue.js +1 -1
- package/dist/ai-sdk/vue.mjs +27 -30
- 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-7C5RGTQY.js +71 -0
- package/dist/{chunk-JH5VOTEK.js → chunk-DDW6L3LZ.js} +2 -2
- package/dist/{chunk-DZYPK4JQ.mjs → chunk-JQBSMHZA.mjs} +1 -1
- package/dist/{chunk-TFIRB2ZB.js → chunk-MOAJJKKG.js} +3 -3
- package/dist/{chunk-BJPVVT5W.mjs → chunk-NGMVN6QV.mjs} +1 -1
- package/dist/chunk-OHVUJUDE.mjs +71 -0
- package/dist/{chunk-DEDOV3KL.mjs → chunk-PSSPSJR4.mjs} +1 -1
- package/dist/{chunk-LSPYEWWJ.js → chunk-SCYZRJWI.js} +1 -1
- package/dist/docx-editor-agents.css +2 -1
- package/dist/{headless-ULW7Q5F4.js → headless-3IX5WQEZ.js} +1 -1
- package/dist/{headless-J5TF46GZ.mjs → headless-V7JUUMG6.mjs} +1 -1
- 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-CGxgyhy-.d.mts} +25 -0
- package/dist/{server-B7RHNVSu.d.ts → server-CGxgyhy-.d.ts} +25 -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 +12 -13
- package/dist/vue.mjs +1983 -1829
- package/package.json +3 -3
- package/dist/chunk-DQH7AV5E.js +0 -71
- package/dist/chunk-NX2KNBB6.mjs +0 -71
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<p align="center">
|
|
2
2
|
<a href="https://www.docx-editor.dev/">
|
|
3
|
-
<img src="https://raw.githubusercontent.com/eigenpal/docx-editor/main/assets/header.png" alt="DOCX Editor — .docx in, .docx out. Open source, agent ready, client-side." width="500" />
|
|
3
|
+
<img src="https://raw.githubusercontent.com/eigenpal/docx-editor/main/.github/assets/header.png" alt="DOCX Editor — .docx in, .docx out. Open source, agent ready, client-side." width="500" />
|
|
4
4
|
</a>
|
|
5
5
|
</p>
|
|
6
6
|
|
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.d.mts
CHANGED
|
@@ -15,4 +15,4 @@
|
|
|
15
15
|
* @packageDocumentation
|
|
16
16
|
* @public
|
|
17
17
|
*/
|
|
18
|
-
export { j as AgentToolDefinition, k as AgentToolResult, h as ContentChangeEvent, E as EditorBridge, r as EditorRefLike, i as SelectionChangeEvent, n as agentTools, u as createEditorBridge, o as createReviewerBridge, p as executeToolCall, q as getToolSchemas } from './server-
|
|
18
|
+
export { j as AgentToolDefinition, k as AgentToolResult, h as ContentChangeEvent, E as EditorBridge, r as EditorRefLike, i as SelectionChangeEvent, n as agentTools, u as createEditorBridge, o as createReviewerBridge, p as executeToolCall, q as getToolSchemas } from './server-CGxgyhy-.mjs';
|
package/dist/bridge.d.ts
CHANGED
|
@@ -15,4 +15,4 @@
|
|
|
15
15
|
* @packageDocumentation
|
|
16
16
|
* @public
|
|
17
17
|
*/
|
|
18
|
-
export { j as AgentToolDefinition, k as AgentToolResult, h as ContentChangeEvent, E as EditorBridge, r as EditorRefLike, i as SelectionChangeEvent, n as agentTools, u as createEditorBridge, o as createReviewerBridge, p as executeToolCall, q as getToolSchemas } from './server-
|
|
18
|
+
export { j as AgentToolDefinition, k as AgentToolResult, h as ContentChangeEvent, E as EditorBridge, r as EditorRefLike, i as SelectionChangeEvent, n as agentTools, u as createEditorBridge, o as createReviewerBridge, p as executeToolCall, q as getToolSchemas } from './server-CGxgyhy-.js';
|
package/dist/bridge.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkDDW6L3LZ_js=require('./chunk-DDW6L3LZ.js'),chunkMOAJJKKG_js=require('./chunk-MOAJJKKG.js'),chunkRI5S75JY_js=require('./chunk-RI5S75JY.js');Object.defineProperty(exports,"createEditorBridge",{enumerable:true,get:function(){return chunkDDW6L3LZ_js.a}});Object.defineProperty(exports,"createReviewerBridge",{enumerable:true,get:function(){return chunkMOAJJKKG_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-JQBSMHZA.mjs';export{m as createReviewerBridge}from'./chunk-PSSPSJR4.mjs';export{a as agentTools,b as executeToolCall,d as getToolSchemas}from'./chunk-24MVJKCP.mjs';
|