@superdoc/cli 0.32.1-next.2 → 0.33.0-next.10
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/index.js +122015 -113665
- package/dist/tools/catalog.json +89 -0
- package/dist/tools/tools.anthropic.json +89 -0
- package/dist/tools/tools.generic.json +89 -0
- package/dist/tools/tools.openai.json +89 -0
- package/dist/tools/tools.vercel.json +89 -0
- package/package.json +11 -10
|
@@ -43,6 +43,41 @@
|
|
|
43
43
|
"type": "boolean",
|
|
44
44
|
"description": "Only for actions 'markdown_projection', 'html_projection'. Omit for other actions."
|
|
45
45
|
},
|
|
46
|
+
"nodeIds": {
|
|
47
|
+
"type": "array",
|
|
48
|
+
"items": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"minLength": 1
|
|
51
|
+
},
|
|
52
|
+
"description": "Top-level block identities to match before pagination. Only for action 'blocks'. Omit for other actions."
|
|
53
|
+
},
|
|
54
|
+
"textSearch": {
|
|
55
|
+
"type": "object",
|
|
56
|
+
"properties": {
|
|
57
|
+
"terms": {
|
|
58
|
+
"type": "array",
|
|
59
|
+
"minItems": 1,
|
|
60
|
+
"items": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"minLength": 1
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"match": {
|
|
66
|
+
"enum": [
|
|
67
|
+
"all",
|
|
68
|
+
"any"
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
"caseSensitive": {
|
|
72
|
+
"type": "boolean"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"additionalProperties": false,
|
|
76
|
+
"required": [
|
|
77
|
+
"terms"
|
|
78
|
+
],
|
|
79
|
+
"description": "Only for action 'blocks'. Omit for other actions."
|
|
80
|
+
},
|
|
46
81
|
"offset": {
|
|
47
82
|
"type": "number",
|
|
48
83
|
"minimum": 0,
|
|
@@ -3273,6 +3308,10 @@
|
|
|
3273
3308
|
"wholeWord": {
|
|
3274
3309
|
"type": "boolean",
|
|
3275
3310
|
"description": "Require word-boundary matches. Default: false."
|
|
3311
|
+
},
|
|
3312
|
+
"includeDeletedText": {
|
|
3313
|
+
"type": "boolean",
|
|
3314
|
+
"description": "When true, includes text from pending tracked deletions. Default: false."
|
|
3276
3315
|
}
|
|
3277
3316
|
},
|
|
3278
3317
|
"additionalProperties": false,
|
|
@@ -3460,6 +3499,10 @@
|
|
|
3460
3499
|
"wholeWord": {
|
|
3461
3500
|
"type": "boolean",
|
|
3462
3501
|
"description": "Require word-boundary matches. Default: false."
|
|
3502
|
+
},
|
|
3503
|
+
"includeDeletedText": {
|
|
3504
|
+
"type": "boolean",
|
|
3505
|
+
"description": "When true, includes text from pending tracked deletions. Default: false."
|
|
3463
3506
|
}
|
|
3464
3507
|
},
|
|
3465
3508
|
"additionalProperties": false,
|
|
@@ -3649,6 +3692,20 @@
|
|
|
3649
3692
|
}
|
|
3650
3693
|
]
|
|
3651
3694
|
},
|
|
3695
|
+
"replacementMode": {
|
|
3696
|
+
"enum": [
|
|
3697
|
+
"literal",
|
|
3698
|
+
"regex-template"
|
|
3699
|
+
],
|
|
3700
|
+
"type": "string"
|
|
3701
|
+
},
|
|
3702
|
+
"caseHandling": {
|
|
3703
|
+
"enum": [
|
|
3704
|
+
"exact",
|
|
3705
|
+
"preserve-match"
|
|
3706
|
+
],
|
|
3707
|
+
"type": "string"
|
|
3708
|
+
},
|
|
3652
3709
|
"style": {
|
|
3653
3710
|
"type": "object",
|
|
3654
3711
|
"properties": {
|
|
@@ -3800,6 +3857,10 @@
|
|
|
3800
3857
|
"wholeWord": {
|
|
3801
3858
|
"type": "boolean",
|
|
3802
3859
|
"description": "Require word-boundary matches. Default: false."
|
|
3860
|
+
},
|
|
3861
|
+
"includeDeletedText": {
|
|
3862
|
+
"type": "boolean",
|
|
3863
|
+
"description": "When true, includes text from pending tracked deletions. Default: false."
|
|
3803
3864
|
}
|
|
3804
3865
|
},
|
|
3805
3866
|
"additionalProperties": false,
|
|
@@ -4089,6 +4150,10 @@
|
|
|
4089
4150
|
"wholeWord": {
|
|
4090
4151
|
"type": "boolean",
|
|
4091
4152
|
"description": "Require word-boundary matches. Default: false."
|
|
4153
|
+
},
|
|
4154
|
+
"includeDeletedText": {
|
|
4155
|
+
"type": "boolean",
|
|
4156
|
+
"description": "When true, includes text from pending tracked deletions. Default: false."
|
|
4092
4157
|
}
|
|
4093
4158
|
},
|
|
4094
4159
|
"additionalProperties": false,
|
|
@@ -4300,6 +4365,10 @@
|
|
|
4300
4365
|
"wholeWord": {
|
|
4301
4366
|
"type": "boolean",
|
|
4302
4367
|
"description": "Require word-boundary matches. Default: false."
|
|
4368
|
+
},
|
|
4369
|
+
"includeDeletedText": {
|
|
4370
|
+
"type": "boolean",
|
|
4371
|
+
"description": "When true, includes text from pending tracked deletions. Default: false."
|
|
4303
4372
|
}
|
|
4304
4373
|
},
|
|
4305
4374
|
"additionalProperties": false,
|
|
@@ -5334,6 +5403,10 @@
|
|
|
5334
5403
|
"wholeWord": {
|
|
5335
5404
|
"type": "boolean",
|
|
5336
5405
|
"description": "Require word-boundary matches. Default: false."
|
|
5406
|
+
},
|
|
5407
|
+
"includeDeletedText": {
|
|
5408
|
+
"type": "boolean",
|
|
5409
|
+
"description": "When true, includes text from pending tracked deletions. Default: false."
|
|
5337
5410
|
}
|
|
5338
5411
|
},
|
|
5339
5412
|
"additionalProperties": false,
|
|
@@ -5427,6 +5500,22 @@
|
|
|
5427
5500
|
},
|
|
5428
5501
|
"description": "Ordered array of mutation steps. Each step needs 'op' (text.rewrite, text.insert, text.delete, format.apply, or assert) and a 'where' targeting clause."
|
|
5429
5502
|
},
|
|
5503
|
+
"detail": {
|
|
5504
|
+
"type": "object",
|
|
5505
|
+
"properties": {
|
|
5506
|
+
"offset": {
|
|
5507
|
+
"type": "number",
|
|
5508
|
+
"minimum": 0
|
|
5509
|
+
},
|
|
5510
|
+
"limit": {
|
|
5511
|
+
"type": "number",
|
|
5512
|
+
"minimum": 0,
|
|
5513
|
+
"maximum": 1000
|
|
5514
|
+
}
|
|
5515
|
+
},
|
|
5516
|
+
"additionalProperties": false,
|
|
5517
|
+
"description": "Only for action 'preview'. Omit for other actions."
|
|
5518
|
+
},
|
|
5430
5519
|
"force": {
|
|
5431
5520
|
"type": "boolean",
|
|
5432
5521
|
"description": "Bypass confirmation checks. Only for action 'apply'. Omit for other actions."
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.33.0-next.10",
|
|
4
4
|
"description": "Command-line interface for SuperDoc: inspect, convert, and edit .docx files from a terminal or a script.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "AGPL-3.0",
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
"fast-glob": "^3.3.3",
|
|
30
30
|
"happy-dom": "^20.3.4",
|
|
31
31
|
"ws": "^8.18.0",
|
|
32
|
-
"superdoc": "2.
|
|
32
|
+
"superdoc": "2.13.0-next.9",
|
|
33
33
|
"y-websocket": "^3.0.0",
|
|
34
34
|
"yjs": "13.6.31"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@hocuspocus/server": "^2.13.6",
|
|
38
|
-
"@superdoc/sdk": "2.
|
|
38
|
+
"@superdoc/sdk": "2.10.0-next.10",
|
|
39
39
|
"@superdoc/document-api": "0.1.0-alpha.0",
|
|
40
|
-
"@superdoc/docx-engine": "0.
|
|
40
|
+
"@superdoc/docx-engine": "0.12.0-next.8",
|
|
41
41
|
"@types/bun": "^1.3.8",
|
|
42
42
|
"@types/node": "22.19.2",
|
|
43
43
|
"@types/ws": "^8.5.13",
|
|
@@ -51,11 +51,11 @@
|
|
|
51
51
|
"access": "public"
|
|
52
52
|
},
|
|
53
53
|
"optionalDependencies": {
|
|
54
|
-
"@superdoc/cli-darwin-arm64": "0.
|
|
55
|
-
"@superdoc/cli-darwin-x64": "0.
|
|
56
|
-
"@superdoc/cli-linux-x64": "0.
|
|
57
|
-
"@superdoc/cli-linux-arm64": "0.
|
|
58
|
-
"@superdoc/cli-windows-x64": "0.
|
|
54
|
+
"@superdoc/cli-darwin-arm64": "0.33.0-next.10",
|
|
55
|
+
"@superdoc/cli-darwin-x64": "0.33.0-next.10",
|
|
56
|
+
"@superdoc/cli-linux-x64": "0.33.0-next.10",
|
|
57
|
+
"@superdoc/cli-linux-arm64": "0.33.0-next.10",
|
|
58
|
+
"@superdoc/cli-windows-x64": "0.33.0-next.10"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"predev": "node scripts/ensure-superdoc-build.js",
|
|
@@ -74,7 +74,8 @@
|
|
|
74
74
|
"publish:platforms": "node scripts/publish.js --tag latest",
|
|
75
75
|
"publish:platforms:dry": "node scripts/publish.js --tag latest --dry-run",
|
|
76
76
|
"pretest": "node scripts/ensure-superdoc-build.js",
|
|
77
|
-
"test": "NODE_ENV=test bun test",
|
|
77
|
+
"test": "NODE_ENV=test bun test --path-ignore-patterns='**/sdk-replace-file.e2e.test.ts' && pnpm run test:sdk-replace-file",
|
|
78
|
+
"test:sdk-replace-file": "NODE_ENV=test bun test src/__tests__/sdk-replace-file.e2e.test.ts",
|
|
78
79
|
"lint": "pnpm -w exec vp lint apps/cli",
|
|
79
80
|
"lint:fix": "pnpm -w exec vp lint --fix apps/cli",
|
|
80
81
|
"format": "pnpm -w exec vp fmt apps/cli",
|