@superdoc/sdk 2.23.0-next.13 → 2.23.0-next.15
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/execution-context.cjs +5 -2
- package/dist/agent/execution-context.js +5 -2
- package/dist/embedded-tools.generated.cjs +5 -5
- package/dist/embedded-tools.generated.js +5 -5
- package/dist/generated/client.d.ts +193 -177
- package/dist/generated/contract.cjs +1 -1
- package/dist/generated/contract.js +1 -1
- 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 +7 -7
- package/tools/catalog.json +8 -0
- package/tools/generation-receipt.json +16 -16
- package/tools/tools-policy.json +1 -1
- package/tools/tools.anthropic.json +8 -0
- package/tools/tools.generic.json +8 -0
- package/tools/tools.openai.json +8 -0
- package/tools/tools.vercel.json +8 -0
|
@@ -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.23.0-next.
|
|
6
|
+
const SDK_VERSION = '2.23.0-next.15';
|
|
7
7
|
|
|
8
8
|
exports.SDK_VERSION = SDK_VERSION;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.23.0-next.
|
|
1
|
+
export declare const SDK_VERSION = "2.23.0-next.15";
|
|
@@ -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.23.0-next.
|
|
4
|
+
export const SDK_VERSION = '2.23.0-next.15';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc/sdk",
|
|
3
|
-
"version": "2.23.0-next.
|
|
3
|
+
"version": "2.23.0-next.15",
|
|
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.23.0-next.
|
|
42
|
-
"@superdoc/sdk-darwin-x64": "2.23.0-next.
|
|
43
|
-
"@superdoc/sdk-linux-x64": "2.23.0-next.
|
|
44
|
-
"@superdoc/sdk-linux-arm64": "2.23.0-next.
|
|
45
|
-
"@superdoc/sdk-windows-x64": "2.23.0-next.
|
|
41
|
+
"@superdoc/sdk-darwin-arm64": "2.23.0-next.15",
|
|
42
|
+
"@superdoc/sdk-darwin-x64": "2.23.0-next.15",
|
|
43
|
+
"@superdoc/sdk-linux-x64": "2.23.0-next.15",
|
|
44
|
+
"@superdoc/sdk-linux-arm64": "2.23.0-next.15",
|
|
45
|
+
"@superdoc/sdk-windows-x64": "2.23.0-next.15"
|
|
46
46
|
},
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public"
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"audit:publish": "node ../../../../scripts/audit-publish-artifact.mjs dist --label sdk-node-dist",
|
|
53
53
|
"typecheck": "tsc --noEmit",
|
|
54
54
|
"typecheck:consumer": "tsc --noEmit --strict --skipLibCheck --target ES2022 --module NodeNext --moduleResolution NodeNext ../../../../tests/consumer-typecheck/src/sdk-per-open-collaboration-auth.mts ../../../../tests/consumer-typecheck/src/sdk-replace-file.mts ../../../../tests/consumer-typecheck/src/sdk-retained-paragraph.mts ../../../../tests/consumer-typecheck/src/sdk-state-directory.mts ../../../../tests/consumer-typecheck/src/sdk-agent-evidence.mts ../../../../tests/consumer-typecheck/src/sdk-custom-actions.mts ../../../../tests/consumer-typecheck/src/sd4807-sdk-inspect.mts ../../../../tests/consumer-typecheck/src/sdk-tracked-only-policy.mts ../../../../tests/consumer-typecheck/src/sdk-tracked-review-route.mts ../../../../tests/consumer-typecheck/src/sd5266-sdk-placeholder-null.mts ../../../../tests/consumer-typecheck/src/sdk-schema-types.mts",
|
|
55
|
-
"test:agent-actions": "bun test src/__tests__/actions.test.ts src/__tests__/agent-runtime.test.ts src/__tests__/custom-actions.test.ts src/__tests__/textbox-snapshot.test.ts",
|
|
55
|
+
"test:agent-actions": "bun test src/__tests__/actions.test.ts src/__tests__/agent-runtime.test.ts src/__tests__/execution-context.test.ts src/__tests__/custom-actions.test.ts src/__tests__/textbox-snapshot.test.ts",
|
|
56
56
|
"test:document-host": "bun test src/__tests__/diff-direct-styles.e2e.test.ts src/__tests__/default-cli-optimization.e2e.test.ts src/runtime/__tests__/host-spawn-args.test.ts src/runtime/__tests__/document-rpc.test.ts src/__tests__/tracked-review-route.test.ts src/__tests__/structured-document-rpc.e2e.test.ts src/__tests__/request-timeout-ms.e2e.test.ts src/__tests__/agent-evidence.e2e.test.ts src/__tests__/agent-apply.e2e.test.ts src/__tests__/find-text.e2e.test.ts src/__tests__/custom-actions.e2e.test.ts",
|
|
57
57
|
"smoke:product-action": "node scripts/product-action-smoke.mjs"
|
|
58
58
|
}
|
package/tools/catalog.json
CHANGED
|
@@ -1517,6 +1517,14 @@
|
|
|
1517
1517
|
"type": "string",
|
|
1518
1518
|
"description": "Require exact selected text before mutation. Only explicit single-paragraph text selections support this guard. Only for action 'replace'. Omit for other actions."
|
|
1519
1519
|
},
|
|
1520
|
+
"replacementGranularity": {
|
|
1521
|
+
"enum": [
|
|
1522
|
+
"word",
|
|
1523
|
+
"phrase",
|
|
1524
|
+
"range"
|
|
1525
|
+
],
|
|
1526
|
+
"description": "Tracked revision boundaries for an explicit single-paragraph text selection. word (default) preserves matching tokens; phrase joins edits separated only by spaces; range replaces the complete selection. Requires changeMode: tracked. Only for action 'replace'. Omit for other actions."
|
|
1527
|
+
},
|
|
1520
1528
|
"behavior": {
|
|
1521
1529
|
"$ref": "#/$defs/DeleteBehavior",
|
|
1522
1530
|
"description": "Delete behavior: 'selection' (default) or 'exact'. Only for action 'delete'. Omit for other actions."
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"formatVersion": 1,
|
|
3
|
-
"contractHash": "
|
|
4
|
-
"documentApiSourceHash": "
|
|
5
|
-
"generatorHash": "
|
|
3
|
+
"contractHash": "32dbab4c9dbd876ba853d0651199b963871ac514f441674adf937e71091686e6",
|
|
4
|
+
"documentApiSourceHash": "10dd2593185780e2adc4aa61c0f1949dcba48eb9369bd0d560e21363d8f26803",
|
|
5
|
+
"generatorHash": "c99d842bd4ac11b97b8f91fc93438e11e8647785fb1dccd378651da63fabc296",
|
|
6
6
|
"inputs": {
|
|
7
7
|
"apps/cli/src/host/sdk-policy.ts": "8820bc2cb4694bd665cbfacbb55c262a5df5cde4ed2a1a8d0735c09c6a5e6dd8",
|
|
8
8
|
"packages/sdk/codegen/src/artifacts.mjs": "aecab7eca4694cbcf2366ddd9cabc033abddad2ff8fb0960d505580dbaf4d8b7",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"packages/sdk/codegen/src/model/schema.mjs": "29cb1167413280907ad324d8a1fcb54dc70cce829df00c1a755f43040d01cf3b",
|
|
16
16
|
"packages/sdk/codegen/src/shared.mjs": "a411e7ea4fab43b5b08b00294c746ff7063ceddbae66ece8d8c5990f131e0f7c",
|
|
17
17
|
"packages/sdk/codegen/src/targets.mjs": "62c5ae3e3813e07b37e62487d973bac60ef6bea558a01f3ace2e0c6e8374e147",
|
|
18
|
-
"packages/sdk/langs/node/package.json": "
|
|
18
|
+
"packages/sdk/langs/node/package.json": "2e58b90a54e048f96f57f9fb1631718cc6019120cff643ba756765b0b63dcaf7",
|
|
19
19
|
"packages/sdk/langs/node/scripts/embed-prompts.mjs": "1b1641bf89cad962a4ff11d93f301fe5a4e32fe856cd3c9586106d8aaab4ad80",
|
|
20
20
|
"packages/sdk/langs/node/scripts/embed-tools.mjs": "4cd8b0605b088421ea1fdf8e4e19c70f571f4e3352309a1480491600122e7bb3",
|
|
21
21
|
"packages/sdk/langs/node/scripts/embed-version.mjs": "95e2ff3a7c15cb38130e12f04c8a96c901a5e55d9960610ebefa37178fd19cde",
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
"outputs": {
|
|
33
33
|
"packages/sdk/langs/node/src/generated/contract.ts": {
|
|
34
34
|
"id": "node-contract",
|
|
35
|
-
"sha256": "
|
|
35
|
+
"sha256": "fd3a7a4536ee8b0bb85b55ff4f3bb6e0a68c9fead3a75f549ee6b5bf98c8a6ca",
|
|
36
36
|
"consumers": [
|
|
37
37
|
"node"
|
|
38
38
|
]
|
|
39
39
|
},
|
|
40
40
|
"packages/sdk/langs/node/src/generated/client.ts": {
|
|
41
41
|
"id": "node-client",
|
|
42
|
-
"sha256": "
|
|
42
|
+
"sha256": "a05cb2fbdd4ef253fdb23526820a949a699fadf89b8b2fd387b744650dd2f10f",
|
|
43
43
|
"consumers": [
|
|
44
44
|
"node"
|
|
45
45
|
]
|
|
@@ -53,14 +53,14 @@
|
|
|
53
53
|
},
|
|
54
54
|
"packages/sdk/langs/python/superdoc/generated/contract.py": {
|
|
55
55
|
"id": "python-contract",
|
|
56
|
-
"sha256": "
|
|
56
|
+
"sha256": "977efd304ec4bbedbd7a3dcb28b8b5a0adc9b4b756114e1b70907006d7bc7027",
|
|
57
57
|
"consumers": [
|
|
58
58
|
"python"
|
|
59
59
|
]
|
|
60
60
|
},
|
|
61
61
|
"packages/sdk/langs/python/superdoc/generated/client.py": {
|
|
62
62
|
"id": "python-client",
|
|
63
|
-
"sha256": "
|
|
63
|
+
"sha256": "fc810d54b24e30baff720730fd97f6bcd2719f1095a75544723eb93a92643155",
|
|
64
64
|
"consumers": [
|
|
65
65
|
"python"
|
|
66
66
|
]
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
},
|
|
96
96
|
"packages/sdk/tools/catalog.json": {
|
|
97
97
|
"id": "tool-catalog",
|
|
98
|
-
"sha256": "
|
|
98
|
+
"sha256": "3ca76b8c9bac9a2908b68aeb146eb7953f6e35cfa0c3543bc57df1ba37eb686d",
|
|
99
99
|
"consumers": [
|
|
100
100
|
"node",
|
|
101
101
|
"python",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
},
|
|
105
105
|
"packages/sdk/tools/tools-policy.json": {
|
|
106
106
|
"id": "tool-policy",
|
|
107
|
-
"sha256": "
|
|
107
|
+
"sha256": "730298670a730973228ac207a76c66c90de3f7d9a38756dbbdb732ccaafcc348",
|
|
108
108
|
"consumers": [
|
|
109
109
|
"node",
|
|
110
110
|
"python"
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
},
|
|
113
113
|
"packages/sdk/tools/tools.openai.json": {
|
|
114
114
|
"id": "tools-openai",
|
|
115
|
-
"sha256": "
|
|
115
|
+
"sha256": "bd99a0510e50a3482b389f6f6be7f1dbc160a9570c12a3e7be3298585df957de",
|
|
116
116
|
"consumers": [
|
|
117
117
|
"node",
|
|
118
118
|
"python",
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
},
|
|
122
122
|
"packages/sdk/tools/tools.anthropic.json": {
|
|
123
123
|
"id": "tools-anthropic",
|
|
124
|
-
"sha256": "
|
|
124
|
+
"sha256": "5b9defbc04492e901e555661f4e1d7536ac0f5ad9358dfdfffc9b22103022bdf",
|
|
125
125
|
"consumers": [
|
|
126
126
|
"node",
|
|
127
127
|
"python",
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
},
|
|
131
131
|
"packages/sdk/tools/tools.vercel.json": {
|
|
132
132
|
"id": "tools-vercel",
|
|
133
|
-
"sha256": "
|
|
133
|
+
"sha256": "bd99a0510e50a3482b389f6f6be7f1dbc160a9570c12a3e7be3298585df957de",
|
|
134
134
|
"consumers": [
|
|
135
135
|
"node",
|
|
136
136
|
"python",
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
},
|
|
140
140
|
"packages/sdk/tools/tools.generic.json": {
|
|
141
141
|
"id": "tools-generic",
|
|
142
|
-
"sha256": "
|
|
142
|
+
"sha256": "604e62b4227958b18c54832d6a63b30e02d559b76062978488c8d523e86d2530",
|
|
143
143
|
"consumers": [
|
|
144
144
|
"node",
|
|
145
145
|
"python",
|
|
@@ -179,14 +179,14 @@
|
|
|
179
179
|
},
|
|
180
180
|
"packages/sdk/langs/node/src/embedded-tools.generated.ts": {
|
|
181
181
|
"id": "node-embedded-tools",
|
|
182
|
-
"sha256": "
|
|
182
|
+
"sha256": "ee3db5082ad8cc2384d79f1b990c5f08e588fa50ac001541cbc1328f6309d4c4",
|
|
183
183
|
"consumers": [
|
|
184
184
|
"node"
|
|
185
185
|
]
|
|
186
186
|
},
|
|
187
187
|
"packages/sdk/langs/node/src/runtime/sdk-version.generated.ts": {
|
|
188
188
|
"id": "node-sdk-version",
|
|
189
|
-
"sha256": "
|
|
189
|
+
"sha256": "a4584073581730be8e2163eefebf9b8ef763939249305bbc110fd785ddd50de3",
|
|
190
190
|
"consumers": [
|
|
191
191
|
"node"
|
|
192
192
|
]
|
package/tools/tools-policy.json
CHANGED
|
@@ -1480,6 +1480,14 @@
|
|
|
1480
1480
|
"type": "string",
|
|
1481
1481
|
"description": "Require exact selected text before mutation. Only explicit single-paragraph text selections support this guard. Only for action 'replace'. Omit for other actions."
|
|
1482
1482
|
},
|
|
1483
|
+
"replacementGranularity": {
|
|
1484
|
+
"enum": [
|
|
1485
|
+
"word",
|
|
1486
|
+
"phrase",
|
|
1487
|
+
"range"
|
|
1488
|
+
],
|
|
1489
|
+
"description": "Tracked revision boundaries for an explicit single-paragraph text selection. word (default) preserves matching tokens; phrase joins edits separated only by spaces; range replaces the complete selection. Requires changeMode: tracked. Only for action 'replace'. Omit for other actions."
|
|
1490
|
+
},
|
|
1483
1491
|
"behavior": {
|
|
1484
1492
|
"$ref": "#/$defs/DeleteBehavior",
|
|
1485
1493
|
"description": "Delete behavior: 'selection' (default) or 'exact'. Only for action 'delete'. Omit for other actions."
|
package/tools/tools.generic.json
CHANGED
|
@@ -1503,6 +1503,14 @@
|
|
|
1503
1503
|
"type": "string",
|
|
1504
1504
|
"description": "Require exact selected text before mutation. Only explicit single-paragraph text selections support this guard. Only for action 'replace'. Omit for other actions."
|
|
1505
1505
|
},
|
|
1506
|
+
"replacementGranularity": {
|
|
1507
|
+
"enum": [
|
|
1508
|
+
"word",
|
|
1509
|
+
"phrase",
|
|
1510
|
+
"range"
|
|
1511
|
+
],
|
|
1512
|
+
"description": "Tracked revision boundaries for an explicit single-paragraph text selection. word (default) preserves matching tokens; phrase joins edits separated only by spaces; range replaces the complete selection. Requires changeMode: tracked. Only for action 'replace'. Omit for other actions."
|
|
1513
|
+
},
|
|
1506
1514
|
"behavior": {
|
|
1507
1515
|
"$ref": "#/$defs/DeleteBehavior",
|
|
1508
1516
|
"description": "Delete behavior: 'selection' (default) or 'exact'. Only for action 'delete'. Omit for other actions."
|
package/tools/tools.openai.json
CHANGED
|
@@ -1485,6 +1485,14 @@
|
|
|
1485
1485
|
"type": "string",
|
|
1486
1486
|
"description": "Require exact selected text before mutation. Only explicit single-paragraph text selections support this guard. Only for action 'replace'. Omit for other actions."
|
|
1487
1487
|
},
|
|
1488
|
+
"replacementGranularity": {
|
|
1489
|
+
"enum": [
|
|
1490
|
+
"word",
|
|
1491
|
+
"phrase",
|
|
1492
|
+
"range"
|
|
1493
|
+
],
|
|
1494
|
+
"description": "Tracked revision boundaries for an explicit single-paragraph text selection. word (default) preserves matching tokens; phrase joins edits separated only by spaces; range replaces the complete selection. Requires changeMode: tracked. Only for action 'replace'. Omit for other actions."
|
|
1495
|
+
},
|
|
1488
1496
|
"behavior": {
|
|
1489
1497
|
"$ref": "#/$defs/DeleteBehavior",
|
|
1490
1498
|
"description": "Delete behavior: 'selection' (default) or 'exact'. Only for action 'delete'. Omit for other actions."
|
package/tools/tools.vercel.json
CHANGED
|
@@ -1485,6 +1485,14 @@
|
|
|
1485
1485
|
"type": "string",
|
|
1486
1486
|
"description": "Require exact selected text before mutation. Only explicit single-paragraph text selections support this guard. Only for action 'replace'. Omit for other actions."
|
|
1487
1487
|
},
|
|
1488
|
+
"replacementGranularity": {
|
|
1489
|
+
"enum": [
|
|
1490
|
+
"word",
|
|
1491
|
+
"phrase",
|
|
1492
|
+
"range"
|
|
1493
|
+
],
|
|
1494
|
+
"description": "Tracked revision boundaries for an explicit single-paragraph text selection. word (default) preserves matching tokens; phrase joins edits separated only by spaces; range replaces the complete selection. Requires changeMode: tracked. Only for action 'replace'. Omit for other actions."
|
|
1495
|
+
},
|
|
1488
1496
|
"behavior": {
|
|
1489
1497
|
"$ref": "#/$defs/DeleteBehavior",
|
|
1490
1498
|
"description": "Delete behavior: 'selection' (default) or 'exact'. Only for action 'delete'. Omit for other actions."
|