@superdoc/sdk 2.12.1-next.1 → 2.13.0-next.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/agent/actions.cjs +30 -7
- package/dist/agent/actions.js +30 -7
- package/dist/embedded-tools.generated.cjs +5 -5
- package/dist/embedded-tools.generated.js +5 -5
- package/dist/generated/contract.cjs +10 -4
- package/dist/generated/contract.js +10 -4
- package/dist/generated/intent-dispatch.generated.cjs +2 -0
- package/dist/generated/intent-dispatch.generated.js +2 -0
- package/dist/runtime/sdk-version.generated.cjs +1 -1
- package/dist/runtime/sdk-version.generated.d.ts +1 -1
- package/dist/runtime/sdk-version.generated.js +1 -1
- package/package.json +6 -6
- package/tools/catalog.json +142 -97
- package/tools/intent_dispatch_generated.py +4 -0
- package/tools/tools.anthropic.json +127 -97
- package/tools/tools.generic.json +130 -98
- package/tools/tools.openai.json +127 -97
- package/tools/tools.vercel.json +127 -97
|
@@ -38309,14 +38309,16 @@ const CONTRACT = {
|
|
|
38309
38309
|
"kind": "flag",
|
|
38310
38310
|
"type": "string",
|
|
38311
38311
|
"flag": "node-type",
|
|
38312
|
-
"description": "Block type of the node to delete."
|
|
38312
|
+
"description": "Block type of the node to delete.",
|
|
38313
|
+
"agentVisible": false
|
|
38313
38314
|
},
|
|
38314
38315
|
{
|
|
38315
38316
|
"name": "nodeId",
|
|
38316
38317
|
"kind": "flag",
|
|
38317
38318
|
"type": "string",
|
|
38318
38319
|
"flag": "node-id",
|
|
38319
|
-
"description": "Node ID of the block to delete."
|
|
38320
|
+
"description": "Node ID of the block to delete.",
|
|
38321
|
+
"agentVisible": false
|
|
38320
38322
|
}
|
|
38321
38323
|
],
|
|
38322
38324
|
"constraints": null,
|
|
@@ -38503,7 +38505,9 @@ const CONTRACT = {
|
|
|
38503
38505
|
"success",
|
|
38504
38506
|
"failure"
|
|
38505
38507
|
]
|
|
38506
|
-
}
|
|
38508
|
+
},
|
|
38509
|
+
"intentGroup": "edit",
|
|
38510
|
+
"intentAction": "delete_block"
|
|
38507
38511
|
},
|
|
38508
38512
|
"doc.blocks.deleteRange": {
|
|
38509
38513
|
"operationId": "doc.blocks.deleteRange",
|
|
@@ -39260,7 +39264,9 @@ const CONTRACT = {
|
|
|
39260
39264
|
"success",
|
|
39261
39265
|
"failure"
|
|
39262
39266
|
]
|
|
39263
|
-
}
|
|
39267
|
+
},
|
|
39268
|
+
"intentGroup": "edit",
|
|
39269
|
+
"intentAction": "delete_block_range"
|
|
39264
39270
|
},
|
|
39265
39271
|
"doc.blocks.split": {
|
|
39266
39272
|
"operationId": "doc.blocks.split",
|
|
@@ -41225,14 +41225,16 @@ export const CONTRACT = {
|
|
|
41225
41225
|
"kind": "flag",
|
|
41226
41226
|
"type": "string",
|
|
41227
41227
|
"flag": "node-type",
|
|
41228
|
-
"description": "Block type of the node to delete."
|
|
41228
|
+
"description": "Block type of the node to delete.",
|
|
41229
|
+
"agentVisible": false
|
|
41229
41230
|
},
|
|
41230
41231
|
{
|
|
41231
41232
|
"name": "nodeId",
|
|
41232
41233
|
"kind": "flag",
|
|
41233
41234
|
"type": "string",
|
|
41234
41235
|
"flag": "node-id",
|
|
41235
|
-
"description": "Node ID of the block to delete."
|
|
41236
|
+
"description": "Node ID of the block to delete.",
|
|
41237
|
+
"agentVisible": false
|
|
41236
41238
|
}
|
|
41237
41239
|
],
|
|
41238
41240
|
"constraints": null,
|
|
@@ -41419,7 +41421,9 @@ export const CONTRACT = {
|
|
|
41419
41421
|
"success",
|
|
41420
41422
|
"failure"
|
|
41421
41423
|
]
|
|
41422
|
-
}
|
|
41424
|
+
},
|
|
41425
|
+
"intentGroup": "edit",
|
|
41426
|
+
"intentAction": "delete_block"
|
|
41423
41427
|
},
|
|
41424
41428
|
"doc.blocks.deleteRange": {
|
|
41425
41429
|
"operationId": "doc.blocks.deleteRange",
|
|
@@ -42176,7 +42180,9 @@ export const CONTRACT = {
|
|
|
42176
42180
|
"success",
|
|
42177
42181
|
"failure"
|
|
42178
42182
|
]
|
|
42179
|
-
}
|
|
42183
|
+
},
|
|
42184
|
+
"intentGroup": "edit",
|
|
42185
|
+
"intentAction": "delete_block_range"
|
|
42180
42186
|
},
|
|
42181
42187
|
"doc.blocks.split": {
|
|
42182
42188
|
"operationId": "doc.blocks.split",
|
|
@@ -23,6 +23,8 @@ function dispatchIntentTool(toolName, args, execute) {
|
|
|
23
23
|
case 'insert': return execute('doc.insert', rest);
|
|
24
24
|
case 'replace': return execute('doc.replace', rest);
|
|
25
25
|
case 'delete': return execute('doc.delete', rest);
|
|
26
|
+
case 'delete_block': return execute('doc.blocks.delete', rest);
|
|
27
|
+
case 'delete_block_range': return execute('doc.blocks.deleteRange', rest);
|
|
26
28
|
case 'check_support': return execute('doc.capabilities.check', rest);
|
|
27
29
|
case 'undo': return execute('doc.history.undo', rest);
|
|
28
30
|
case 'redo': return execute('doc.history.redo', rest);
|
|
@@ -21,6 +21,8 @@ export function dispatchIntentTool(toolName, args, execute) {
|
|
|
21
21
|
case 'insert': return execute('doc.insert', rest);
|
|
22
22
|
case 'replace': return execute('doc.replace', rest);
|
|
23
23
|
case 'delete': return execute('doc.delete', rest);
|
|
24
|
+
case 'delete_block': return execute('doc.blocks.delete', rest);
|
|
25
|
+
case 'delete_block_range': return execute('doc.blocks.deleteRange', rest);
|
|
24
26
|
case 'check_support': return execute('doc.capabilities.check', rest);
|
|
25
27
|
case 'undo': return execute('doc.history.undo', rest);
|
|
26
28
|
case 'redo': return execute('doc.history.redo', rest);
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
// AUTO-GENERATED by scripts/embed-version.mjs — DO NOT EDIT.
|
|
4
4
|
// Source of truth: package.json. Regenerated on every SDK build so the
|
|
5
5
|
// SDK retains its own version identity when bundled into another package.
|
|
6
|
-
const SDK_VERSION = '2.
|
|
6
|
+
const SDK_VERSION = '2.13.0-next.2';
|
|
7
7
|
|
|
8
8
|
exports.SDK_VERSION = SDK_VERSION;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.
|
|
1
|
+
export declare const SDK_VERSION = "2.13.0-next.2";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// AUTO-GENERATED by scripts/embed-version.mjs — DO NOT EDIT.
|
|
2
2
|
// Source of truth: package.json. Regenerated on every SDK build so the
|
|
3
3
|
// SDK retains its own version identity when bundled into another package.
|
|
4
|
-
export const SDK_VERSION = '2.
|
|
4
|
+
export const SDK_VERSION = '2.13.0-next.2';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc/sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.13.0-next.2",
|
|
4
4
|
"description": "Node SDK for SuperDoc, wrapping the SuperDoc CLI to read and edit .docx files from JavaScript and TypeScript.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "AGPL-3.0",
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"typescript": "^5.9.2"
|
|
39
39
|
},
|
|
40
40
|
"optionalDependencies": {
|
|
41
|
-
"@superdoc/sdk-darwin-arm64": "2.
|
|
42
|
-
"@superdoc/sdk-darwin-x64": "2.
|
|
43
|
-
"@superdoc/sdk-linux-x64": "2.
|
|
44
|
-
"@superdoc/sdk-linux-arm64": "2.
|
|
45
|
-
"@superdoc/sdk-windows-x64": "2.
|
|
41
|
+
"@superdoc/sdk-darwin-arm64": "2.13.0-next.2",
|
|
42
|
+
"@superdoc/sdk-darwin-x64": "2.13.0-next.2",
|
|
43
|
+
"@superdoc/sdk-linux-x64": "2.13.0-next.2",
|
|
44
|
+
"@superdoc/sdk-linux-arm64": "2.13.0-next.2",
|
|
45
|
+
"@superdoc/sdk-windows-x64": "2.13.0-next.2"
|
|
46
46
|
},
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public"
|