@superdoc/cli 0.44.0 → 0.45.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 +123816 -117251
- package/dist/tools/catalog.json +164 -1
- package/dist/tools/tools.anthropic.json +164 -1
- package/dist/tools/tools.generic.json +164 -1
- package/dist/tools/tools.openai.json +164 -1
- package/dist/tools/tools.vercel.json +164 -1
- package/package.json +11 -10
|
@@ -8803,10 +8803,133 @@
|
|
|
8803
8803
|
"where",
|
|
8804
8804
|
"args"
|
|
8805
8805
|
]
|
|
8806
|
+
},
|
|
8807
|
+
{
|
|
8808
|
+
"type": "object",
|
|
8809
|
+
"properties": {
|
|
8810
|
+
"id": {
|
|
8811
|
+
"type": "string",
|
|
8812
|
+
"minLength": 1
|
|
8813
|
+
},
|
|
8814
|
+
"op": {
|
|
8815
|
+
"const": "comments.patch",
|
|
8816
|
+
"type": "string"
|
|
8817
|
+
},
|
|
8818
|
+
"args": {
|
|
8819
|
+
"type": "object",
|
|
8820
|
+
"properties": {
|
|
8821
|
+
"commentId": {
|
|
8822
|
+
"type": "string",
|
|
8823
|
+
"minLength": 1
|
|
8824
|
+
},
|
|
8825
|
+
"target": {
|
|
8826
|
+
"oneOf": [
|
|
8827
|
+
{
|
|
8828
|
+
"$ref": "#/$defs/TextAddress"
|
|
8829
|
+
},
|
|
8830
|
+
{
|
|
8831
|
+
"$ref": "#/$defs/SelectionTarget"
|
|
8832
|
+
}
|
|
8833
|
+
]
|
|
8834
|
+
}
|
|
8835
|
+
},
|
|
8836
|
+
"additionalProperties": false,
|
|
8837
|
+
"required": [
|
|
8838
|
+
"commentId",
|
|
8839
|
+
"target"
|
|
8840
|
+
]
|
|
8841
|
+
}
|
|
8842
|
+
},
|
|
8843
|
+
"additionalProperties": false,
|
|
8844
|
+
"required": [
|
|
8845
|
+
"id",
|
|
8846
|
+
"op",
|
|
8847
|
+
"args"
|
|
8848
|
+
]
|
|
8849
|
+
},
|
|
8850
|
+
{
|
|
8851
|
+
"type": "object",
|
|
8852
|
+
"properties": {
|
|
8853
|
+
"id": {
|
|
8854
|
+
"type": "string",
|
|
8855
|
+
"minLength": 1
|
|
8856
|
+
},
|
|
8857
|
+
"op": {
|
|
8858
|
+
"const": "trackChanges.decide",
|
|
8859
|
+
"type": "string"
|
|
8860
|
+
},
|
|
8861
|
+
"args": {
|
|
8862
|
+
"type": "object",
|
|
8863
|
+
"properties": {
|
|
8864
|
+
"decision": {
|
|
8865
|
+
"enum": [
|
|
8866
|
+
"accept",
|
|
8867
|
+
"reject"
|
|
8868
|
+
],
|
|
8869
|
+
"type": "string"
|
|
8870
|
+
},
|
|
8871
|
+
"target": {
|
|
8872
|
+
"oneOf": [
|
|
8873
|
+
{
|
|
8874
|
+
"type": "object",
|
|
8875
|
+
"properties": {
|
|
8876
|
+
"kind": {
|
|
8877
|
+
"const": "id",
|
|
8878
|
+
"type": "string"
|
|
8879
|
+
},
|
|
8880
|
+
"id": {
|
|
8881
|
+
"type": "string",
|
|
8882
|
+
"minLength": 1
|
|
8883
|
+
}
|
|
8884
|
+
},
|
|
8885
|
+
"additionalProperties": false,
|
|
8886
|
+
"required": [
|
|
8887
|
+
"kind",
|
|
8888
|
+
"id"
|
|
8889
|
+
]
|
|
8890
|
+
},
|
|
8891
|
+
{
|
|
8892
|
+
"type": "object",
|
|
8893
|
+
"properties": {
|
|
8894
|
+
"kind": {
|
|
8895
|
+
"const": "ids",
|
|
8896
|
+
"type": "string"
|
|
8897
|
+
},
|
|
8898
|
+
"ids": {
|
|
8899
|
+
"type": "array",
|
|
8900
|
+
"items": {
|
|
8901
|
+
"type": "string",
|
|
8902
|
+
"minLength": 1
|
|
8903
|
+
},
|
|
8904
|
+
"minItems": 1
|
|
8905
|
+
}
|
|
8906
|
+
},
|
|
8907
|
+
"additionalProperties": false,
|
|
8908
|
+
"required": [
|
|
8909
|
+
"kind",
|
|
8910
|
+
"ids"
|
|
8911
|
+
]
|
|
8912
|
+
}
|
|
8913
|
+
]
|
|
8914
|
+
}
|
|
8915
|
+
},
|
|
8916
|
+
"additionalProperties": false,
|
|
8917
|
+
"required": [
|
|
8918
|
+
"decision",
|
|
8919
|
+
"target"
|
|
8920
|
+
]
|
|
8921
|
+
}
|
|
8922
|
+
},
|
|
8923
|
+
"additionalProperties": false,
|
|
8924
|
+
"required": [
|
|
8925
|
+
"id",
|
|
8926
|
+
"op",
|
|
8927
|
+
"args"
|
|
8928
|
+
]
|
|
8806
8929
|
}
|
|
8807
8930
|
]
|
|
8808
8931
|
},
|
|
8809
|
-
"description": "Ordered array of mutation steps. Each step needs 'op' (text.rewrite, text.insert, text.delete, format.apply, structural.replace, or
|
|
8932
|
+
"description": "Ordered array of mutation steps. Each step needs 'op' (text.rewrite, text.insert, text.delete, format.apply, structural.replace, assert, comments.patch, or trackChanges.decide). Core steps use 'where'; review steps use explicit native args and require direct body-only plans with relocations before decisions. Check runtime capabilities for operation-specific content and targeting restrictions."
|
|
8810
8933
|
},
|
|
8811
8934
|
"detail": {
|
|
8812
8935
|
"type": "object",
|
|
@@ -8877,6 +9000,22 @@
|
|
|
8877
9000
|
"exact"
|
|
8878
9001
|
]
|
|
8879
9002
|
},
|
|
9003
|
+
"Range": {
|
|
9004
|
+
"type": "object",
|
|
9005
|
+
"properties": {
|
|
9006
|
+
"start": {
|
|
9007
|
+
"type": "integer"
|
|
9008
|
+
},
|
|
9009
|
+
"end": {
|
|
9010
|
+
"type": "integer"
|
|
9011
|
+
}
|
|
9012
|
+
},
|
|
9013
|
+
"additionalProperties": false,
|
|
9014
|
+
"required": [
|
|
9015
|
+
"start",
|
|
9016
|
+
"end"
|
|
9017
|
+
]
|
|
9018
|
+
},
|
|
8880
9019
|
"SectionAddress": {
|
|
8881
9020
|
"type": "object",
|
|
8882
9021
|
"properties": {
|
|
@@ -9168,6 +9307,30 @@
|
|
|
9168
9307
|
}
|
|
9169
9308
|
]
|
|
9170
9309
|
},
|
|
9310
|
+
"TextAddress": {
|
|
9311
|
+
"type": "object",
|
|
9312
|
+
"properties": {
|
|
9313
|
+
"kind": {
|
|
9314
|
+
"const": "text",
|
|
9315
|
+
"type": "string"
|
|
9316
|
+
},
|
|
9317
|
+
"blockId": {
|
|
9318
|
+
"type": "string"
|
|
9319
|
+
},
|
|
9320
|
+
"range": {
|
|
9321
|
+
"$ref": "#/$defs/Range"
|
|
9322
|
+
},
|
|
9323
|
+
"story": {
|
|
9324
|
+
"$ref": "#/$defs/StoryLocator"
|
|
9325
|
+
}
|
|
9326
|
+
},
|
|
9327
|
+
"additionalProperties": false,
|
|
9328
|
+
"required": [
|
|
9329
|
+
"kind",
|
|
9330
|
+
"blockId",
|
|
9331
|
+
"range"
|
|
9332
|
+
]
|
|
9333
|
+
},
|
|
9171
9334
|
"TextCoordinateSpace": {
|
|
9172
9335
|
"enum": [
|
|
9173
9336
|
"visible",
|
|
@@ -8803,10 +8803,133 @@
|
|
|
8803
8803
|
"where",
|
|
8804
8804
|
"args"
|
|
8805
8805
|
]
|
|
8806
|
+
},
|
|
8807
|
+
{
|
|
8808
|
+
"type": "object",
|
|
8809
|
+
"properties": {
|
|
8810
|
+
"id": {
|
|
8811
|
+
"type": "string",
|
|
8812
|
+
"minLength": 1
|
|
8813
|
+
},
|
|
8814
|
+
"op": {
|
|
8815
|
+
"const": "comments.patch",
|
|
8816
|
+
"type": "string"
|
|
8817
|
+
},
|
|
8818
|
+
"args": {
|
|
8819
|
+
"type": "object",
|
|
8820
|
+
"properties": {
|
|
8821
|
+
"commentId": {
|
|
8822
|
+
"type": "string",
|
|
8823
|
+
"minLength": 1
|
|
8824
|
+
},
|
|
8825
|
+
"target": {
|
|
8826
|
+
"oneOf": [
|
|
8827
|
+
{
|
|
8828
|
+
"$ref": "#/$defs/TextAddress"
|
|
8829
|
+
},
|
|
8830
|
+
{
|
|
8831
|
+
"$ref": "#/$defs/SelectionTarget"
|
|
8832
|
+
}
|
|
8833
|
+
]
|
|
8834
|
+
}
|
|
8835
|
+
},
|
|
8836
|
+
"additionalProperties": false,
|
|
8837
|
+
"required": [
|
|
8838
|
+
"commentId",
|
|
8839
|
+
"target"
|
|
8840
|
+
]
|
|
8841
|
+
}
|
|
8842
|
+
},
|
|
8843
|
+
"additionalProperties": false,
|
|
8844
|
+
"required": [
|
|
8845
|
+
"id",
|
|
8846
|
+
"op",
|
|
8847
|
+
"args"
|
|
8848
|
+
]
|
|
8849
|
+
},
|
|
8850
|
+
{
|
|
8851
|
+
"type": "object",
|
|
8852
|
+
"properties": {
|
|
8853
|
+
"id": {
|
|
8854
|
+
"type": "string",
|
|
8855
|
+
"minLength": 1
|
|
8856
|
+
},
|
|
8857
|
+
"op": {
|
|
8858
|
+
"const": "trackChanges.decide",
|
|
8859
|
+
"type": "string"
|
|
8860
|
+
},
|
|
8861
|
+
"args": {
|
|
8862
|
+
"type": "object",
|
|
8863
|
+
"properties": {
|
|
8864
|
+
"decision": {
|
|
8865
|
+
"enum": [
|
|
8866
|
+
"accept",
|
|
8867
|
+
"reject"
|
|
8868
|
+
],
|
|
8869
|
+
"type": "string"
|
|
8870
|
+
},
|
|
8871
|
+
"target": {
|
|
8872
|
+
"oneOf": [
|
|
8873
|
+
{
|
|
8874
|
+
"type": "object",
|
|
8875
|
+
"properties": {
|
|
8876
|
+
"kind": {
|
|
8877
|
+
"const": "id",
|
|
8878
|
+
"type": "string"
|
|
8879
|
+
},
|
|
8880
|
+
"id": {
|
|
8881
|
+
"type": "string",
|
|
8882
|
+
"minLength": 1
|
|
8883
|
+
}
|
|
8884
|
+
},
|
|
8885
|
+
"additionalProperties": false,
|
|
8886
|
+
"required": [
|
|
8887
|
+
"kind",
|
|
8888
|
+
"id"
|
|
8889
|
+
]
|
|
8890
|
+
},
|
|
8891
|
+
{
|
|
8892
|
+
"type": "object",
|
|
8893
|
+
"properties": {
|
|
8894
|
+
"kind": {
|
|
8895
|
+
"const": "ids",
|
|
8896
|
+
"type": "string"
|
|
8897
|
+
},
|
|
8898
|
+
"ids": {
|
|
8899
|
+
"type": "array",
|
|
8900
|
+
"items": {
|
|
8901
|
+
"type": "string",
|
|
8902
|
+
"minLength": 1
|
|
8903
|
+
},
|
|
8904
|
+
"minItems": 1
|
|
8905
|
+
}
|
|
8906
|
+
},
|
|
8907
|
+
"additionalProperties": false,
|
|
8908
|
+
"required": [
|
|
8909
|
+
"kind",
|
|
8910
|
+
"ids"
|
|
8911
|
+
]
|
|
8912
|
+
}
|
|
8913
|
+
]
|
|
8914
|
+
}
|
|
8915
|
+
},
|
|
8916
|
+
"additionalProperties": false,
|
|
8917
|
+
"required": [
|
|
8918
|
+
"decision",
|
|
8919
|
+
"target"
|
|
8920
|
+
]
|
|
8921
|
+
}
|
|
8922
|
+
},
|
|
8923
|
+
"additionalProperties": false,
|
|
8924
|
+
"required": [
|
|
8925
|
+
"id",
|
|
8926
|
+
"op",
|
|
8927
|
+
"args"
|
|
8928
|
+
]
|
|
8806
8929
|
}
|
|
8807
8930
|
]
|
|
8808
8931
|
},
|
|
8809
|
-
"description": "Ordered array of mutation steps. Each step needs 'op' (text.rewrite, text.insert, text.delete, format.apply, structural.replace, or
|
|
8932
|
+
"description": "Ordered array of mutation steps. Each step needs 'op' (text.rewrite, text.insert, text.delete, format.apply, structural.replace, assert, comments.patch, or trackChanges.decide). Core steps use 'where'; review steps use explicit native args and require direct body-only plans with relocations before decisions. Check runtime capabilities for operation-specific content and targeting restrictions."
|
|
8810
8933
|
},
|
|
8811
8934
|
"detail": {
|
|
8812
8935
|
"type": "object",
|
|
@@ -8877,6 +9000,22 @@
|
|
|
8877
9000
|
"exact"
|
|
8878
9001
|
]
|
|
8879
9002
|
},
|
|
9003
|
+
"Range": {
|
|
9004
|
+
"type": "object",
|
|
9005
|
+
"properties": {
|
|
9006
|
+
"start": {
|
|
9007
|
+
"type": "integer"
|
|
9008
|
+
},
|
|
9009
|
+
"end": {
|
|
9010
|
+
"type": "integer"
|
|
9011
|
+
}
|
|
9012
|
+
},
|
|
9013
|
+
"additionalProperties": false,
|
|
9014
|
+
"required": [
|
|
9015
|
+
"start",
|
|
9016
|
+
"end"
|
|
9017
|
+
]
|
|
9018
|
+
},
|
|
8880
9019
|
"SectionAddress": {
|
|
8881
9020
|
"type": "object",
|
|
8882
9021
|
"properties": {
|
|
@@ -9168,6 +9307,30 @@
|
|
|
9168
9307
|
}
|
|
9169
9308
|
]
|
|
9170
9309
|
},
|
|
9310
|
+
"TextAddress": {
|
|
9311
|
+
"type": "object",
|
|
9312
|
+
"properties": {
|
|
9313
|
+
"kind": {
|
|
9314
|
+
"const": "text",
|
|
9315
|
+
"type": "string"
|
|
9316
|
+
},
|
|
9317
|
+
"blockId": {
|
|
9318
|
+
"type": "string"
|
|
9319
|
+
},
|
|
9320
|
+
"range": {
|
|
9321
|
+
"$ref": "#/$defs/Range"
|
|
9322
|
+
},
|
|
9323
|
+
"story": {
|
|
9324
|
+
"$ref": "#/$defs/StoryLocator"
|
|
9325
|
+
}
|
|
9326
|
+
},
|
|
9327
|
+
"additionalProperties": false,
|
|
9328
|
+
"required": [
|
|
9329
|
+
"kind",
|
|
9330
|
+
"blockId",
|
|
9331
|
+
"range"
|
|
9332
|
+
]
|
|
9333
|
+
},
|
|
9171
9334
|
"TextCoordinateSpace": {
|
|
9172
9335
|
"enum": [
|
|
9173
9336
|
"visible",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.45.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.25.0-next.10",
|
|
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.22.0-next.10",
|
|
39
39
|
"@superdoc/document-api": "0.1.0-alpha.0",
|
|
40
|
-
"@superdoc/docx-engine": "0.
|
|
40
|
+
"@superdoc/docx-engine": "0.24.0-next.10",
|
|
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.45.0-next.10",
|
|
55
|
+
"@superdoc/cli-darwin-x64": "0.45.0-next.10",
|
|
56
|
+
"@superdoc/cli-linux-x64": "0.45.0-next.10",
|
|
57
|
+
"@superdoc/cli-linux-arm64": "0.45.0-next.10",
|
|
58
|
+
"@superdoc/cli-windows-x64": "0.45.0-next.10"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"predev": "node scripts/ensure-superdoc-build.js --internal",
|
|
@@ -74,9 +74,10 @@
|
|
|
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 --internal",
|
|
77
|
-
"test": "pnpm run test:docx-reference-integrity && pnpm run test:sdk-collaborative-close && NODE_ENV=test bun test --path-ignore-patterns='**/sdk-collaborative-close.e2e.test.ts' --path-ignore-patterns='**/sdk-replace-file.e2e.test.ts' && pnpm run test:sdk-replace-file",
|
|
77
|
+
"test": "pnpm run test:docx-reference-integrity && pnpm run test:sdk-collaborative-close && pnpm run test:sdk-internal-links && NODE_ENV=test bun test --path-ignore-patterns='**/sdk-collaborative-close.e2e.test.ts' --path-ignore-patterns='**/sdk-replace-file.e2e.test.ts' --path-ignore-patterns='**/sdk-internal-links-projection.e2e.test.ts' && pnpm run test:sdk-replace-file",
|
|
78
78
|
"test:docx-reference-integrity": "node --test scripts/docx-reference-integrity.mjs",
|
|
79
79
|
"test:sdk-collaborative-close": "NODE_ENV=test bun test src/__tests__/sdk-collaborative-close.e2e.test.ts",
|
|
80
|
+
"test:sdk-internal-links": "NODE_ENV=test bun test src/__tests__/sdk-internal-links-projection.e2e.test.ts",
|
|
80
81
|
"test:sdk-replace-file": "NODE_ENV=test bun test src/__tests__/sdk-replace-file.e2e.test.ts",
|
|
81
82
|
"eval:discovery": "bun run scripts/evaluate-discovery.ts",
|
|
82
83
|
"lint": "pnpm -w exec vp lint apps/cli",
|