@superdoc/cli-darwin-x64 0.42.1-next.2 → 0.43.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/bin/superdoc CHANGED
@@ -1,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: package/bin/superdoc
3
- size: 84180080 bytes
4
- sha256: 02bf211559662bc03727ba78a1fa011e46216be55b9bb1b960c9edab93fe84a8
3
+ size: 84444272 bytes
4
+ sha256: 3900cc23f83d1fe3cf2443635e09a05a9ea2506dee160bcaf02ebd8243ba3ccc
@@ -8242,6 +8242,247 @@
8242
8242
  "args"
8243
8243
  ]
8244
8244
  },
8245
+ {
8246
+ "type": "object",
8247
+ "properties": {
8248
+ "id": {
8249
+ "type": "string"
8250
+ },
8251
+ "op": {
8252
+ "const": "structural.replace",
8253
+ "type": "string"
8254
+ },
8255
+ "where": {
8256
+ "oneOf": [
8257
+ {
8258
+ "type": "object",
8259
+ "properties": {
8260
+ "by": {
8261
+ "const": "select",
8262
+ "type": "string"
8263
+ },
8264
+ "select": {
8265
+ "oneOf": [
8266
+ {
8267
+ "type": "object",
8268
+ "properties": {
8269
+ "type": {
8270
+ "const": "text",
8271
+ "description": "Must be 'text' for text pattern search.",
8272
+ "type": "string"
8273
+ },
8274
+ "pattern": {
8275
+ "type": "string",
8276
+ "description": "Text to match. In regex mode, patterns are validated for syntax, maximum length, and safety before execution."
8277
+ },
8278
+ "mode": {
8279
+ "enum": [
8280
+ "contains",
8281
+ "regex"
8282
+ ],
8283
+ "description": "Match mode: 'contains' (literal substring, recommended for literal text) or 'regex' (validated regular expression)."
8284
+ },
8285
+ "caseSensitive": {
8286
+ "type": "boolean",
8287
+ "description": "Case-sensitive matching. Default: false."
8288
+ },
8289
+ "wholeWord": {
8290
+ "type": "boolean",
8291
+ "description": "Require word-boundary matches. Default: false."
8292
+ },
8293
+ "includeDeletedText": {
8294
+ "type": "boolean",
8295
+ "description": "When true, includes text from pending tracked deletions. Default: false."
8296
+ }
8297
+ },
8298
+ "additionalProperties": false,
8299
+ "required": [
8300
+ "type",
8301
+ "pattern"
8302
+ ]
8303
+ },
8304
+ {
8305
+ "type": "object",
8306
+ "properties": {
8307
+ "type": {
8308
+ "const": "node",
8309
+ "description": "Must be 'node' for node type search.",
8310
+ "type": "string"
8311
+ },
8312
+ "nodeType": {
8313
+ "enum": [
8314
+ "paragraph",
8315
+ "heading",
8316
+ "listItem",
8317
+ "table",
8318
+ "tableRow",
8319
+ "tableCell",
8320
+ "tableOfContents",
8321
+ "image",
8322
+ "sdt",
8323
+ "run",
8324
+ "bookmark",
8325
+ "comment",
8326
+ "hyperlink",
8327
+ "footnoteRef",
8328
+ "endnoteRef",
8329
+ "crossRef",
8330
+ "indexEntry",
8331
+ "citation",
8332
+ "authorityEntry",
8333
+ "sequenceField",
8334
+ "tab",
8335
+ "lineBreak"
8336
+ ],
8337
+ "description": "Block type to match (paragraph, heading, table, listItem, etc.)."
8338
+ },
8339
+ "kind": {
8340
+ "enum": [
8341
+ "block",
8342
+ "inline"
8343
+ ],
8344
+ "description": "Filter: 'block' or 'inline'."
8345
+ }
8346
+ },
8347
+ "additionalProperties": false,
8348
+ "required": [
8349
+ "type"
8350
+ ]
8351
+ }
8352
+ ]
8353
+ },
8354
+ "within": {
8355
+ "$ref": "#/$defs/BlockNodeAddress"
8356
+ },
8357
+ "require": {
8358
+ "enum": [
8359
+ "first",
8360
+ "exactlyOne",
8361
+ "all"
8362
+ ]
8363
+ }
8364
+ },
8365
+ "additionalProperties": false,
8366
+ "required": [
8367
+ "by",
8368
+ "select",
8369
+ "require"
8370
+ ]
8371
+ },
8372
+ {
8373
+ "type": "object",
8374
+ "properties": {
8375
+ "by": {
8376
+ "const": "ref",
8377
+ "type": "string"
8378
+ },
8379
+ "ref": {
8380
+ "type": "string"
8381
+ },
8382
+ "within": {
8383
+ "$ref": "#/$defs/BlockNodeAddress"
8384
+ }
8385
+ },
8386
+ "additionalProperties": false,
8387
+ "required": [
8388
+ "by",
8389
+ "ref"
8390
+ ]
8391
+ },
8392
+ {
8393
+ "type": "object",
8394
+ "properties": {
8395
+ "by": {
8396
+ "const": "target",
8397
+ "type": "string"
8398
+ },
8399
+ "target": {
8400
+ "$ref": "#/$defs/SelectionTarget"
8401
+ }
8402
+ },
8403
+ "additionalProperties": false,
8404
+ "required": [
8405
+ "by",
8406
+ "target"
8407
+ ]
8408
+ },
8409
+ {
8410
+ "type": "object",
8411
+ "properties": {
8412
+ "by": {
8413
+ "const": "block",
8414
+ "type": "string"
8415
+ },
8416
+ "nodeType": {
8417
+ "enum": [
8418
+ "paragraph",
8419
+ "heading",
8420
+ "listItem",
8421
+ "table",
8422
+ "tableRow",
8423
+ "tableCell",
8424
+ "tableOfContents",
8425
+ "image",
8426
+ "sdt"
8427
+ ]
8428
+ },
8429
+ "nodeId": {
8430
+ "type": "string"
8431
+ }
8432
+ },
8433
+ "additionalProperties": false,
8434
+ "required": [
8435
+ "by",
8436
+ "nodeType",
8437
+ "nodeId"
8438
+ ]
8439
+ }
8440
+ ]
8441
+ },
8442
+ "args": {
8443
+ "type": "object",
8444
+ "properties": {
8445
+ "content": {
8446
+ "oneOf": [
8447
+ {
8448
+ "type": "object"
8449
+ },
8450
+ {
8451
+ "type": "array",
8452
+ "items": {
8453
+ "type": "object"
8454
+ }
8455
+ }
8456
+ ]
8457
+ },
8458
+ "nestingPolicy": {
8459
+ "type": "object",
8460
+ "properties": {
8461
+ "tables": {
8462
+ "enum": [
8463
+ "forbid",
8464
+ "allow"
8465
+ ]
8466
+ }
8467
+ },
8468
+ "additionalProperties": false,
8469
+ "description": "Controls nesting behavior. tables: 'allow' permits inserting tables inside other tables."
8470
+ }
8471
+ },
8472
+ "additionalProperties": false,
8473
+ "required": [
8474
+ "content"
8475
+ ]
8476
+ }
8477
+ },
8478
+ "additionalProperties": false,
8479
+ "required": [
8480
+ "id",
8481
+ "op",
8482
+ "where",
8483
+ "args"
8484
+ ]
8485
+ },
8245
8486
  {
8246
8487
  "type": "object",
8247
8488
  "properties": {
@@ -8382,7 +8623,7 @@
8382
8623
  }
8383
8624
  ]
8384
8625
  },
8385
- "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."
8626
+ "description": "Ordered array of mutation steps. Each step needs 'op' (text.rewrite, text.insert, text.delete, format.apply, structural.replace, or assert) and a 'where' targeting clause. Check runtime capabilities for operation-specific content and targeting restrictions."
8386
8627
  },
8387
8628
  "detail": {
8388
8629
  "type": "object",
@@ -7820,6 +7820,247 @@
7820
7820
  "args"
7821
7821
  ]
7822
7822
  },
7823
+ {
7824
+ "type": "object",
7825
+ "properties": {
7826
+ "id": {
7827
+ "type": "string"
7828
+ },
7829
+ "op": {
7830
+ "const": "structural.replace",
7831
+ "type": "string"
7832
+ },
7833
+ "where": {
7834
+ "oneOf": [
7835
+ {
7836
+ "type": "object",
7837
+ "properties": {
7838
+ "by": {
7839
+ "const": "select",
7840
+ "type": "string"
7841
+ },
7842
+ "select": {
7843
+ "oneOf": [
7844
+ {
7845
+ "type": "object",
7846
+ "properties": {
7847
+ "type": {
7848
+ "const": "text",
7849
+ "description": "Must be 'text' for text pattern search.",
7850
+ "type": "string"
7851
+ },
7852
+ "pattern": {
7853
+ "type": "string",
7854
+ "description": "Text to match. In regex mode, patterns are validated for syntax, maximum length, and safety before execution."
7855
+ },
7856
+ "mode": {
7857
+ "enum": [
7858
+ "contains",
7859
+ "regex"
7860
+ ],
7861
+ "description": "Match mode: 'contains' (literal substring, recommended for literal text) or 'regex' (validated regular expression)."
7862
+ },
7863
+ "caseSensitive": {
7864
+ "type": "boolean",
7865
+ "description": "Case-sensitive matching. Default: false."
7866
+ },
7867
+ "wholeWord": {
7868
+ "type": "boolean",
7869
+ "description": "Require word-boundary matches. Default: false."
7870
+ },
7871
+ "includeDeletedText": {
7872
+ "type": "boolean",
7873
+ "description": "When true, includes text from pending tracked deletions. Default: false."
7874
+ }
7875
+ },
7876
+ "additionalProperties": false,
7877
+ "required": [
7878
+ "type",
7879
+ "pattern"
7880
+ ]
7881
+ },
7882
+ {
7883
+ "type": "object",
7884
+ "properties": {
7885
+ "type": {
7886
+ "const": "node",
7887
+ "description": "Must be 'node' for node type search.",
7888
+ "type": "string"
7889
+ },
7890
+ "nodeType": {
7891
+ "enum": [
7892
+ "paragraph",
7893
+ "heading",
7894
+ "listItem",
7895
+ "table",
7896
+ "tableRow",
7897
+ "tableCell",
7898
+ "tableOfContents",
7899
+ "image",
7900
+ "sdt",
7901
+ "run",
7902
+ "bookmark",
7903
+ "comment",
7904
+ "hyperlink",
7905
+ "footnoteRef",
7906
+ "endnoteRef",
7907
+ "crossRef",
7908
+ "indexEntry",
7909
+ "citation",
7910
+ "authorityEntry",
7911
+ "sequenceField",
7912
+ "tab",
7913
+ "lineBreak"
7914
+ ],
7915
+ "description": "Block type to match (paragraph, heading, table, listItem, etc.)."
7916
+ },
7917
+ "kind": {
7918
+ "enum": [
7919
+ "block",
7920
+ "inline"
7921
+ ],
7922
+ "description": "Filter: 'block' or 'inline'."
7923
+ }
7924
+ },
7925
+ "additionalProperties": false,
7926
+ "required": [
7927
+ "type"
7928
+ ]
7929
+ }
7930
+ ]
7931
+ },
7932
+ "within": {
7933
+ "$ref": "#/$defs/BlockNodeAddress"
7934
+ },
7935
+ "require": {
7936
+ "enum": [
7937
+ "first",
7938
+ "exactlyOne",
7939
+ "all"
7940
+ ]
7941
+ }
7942
+ },
7943
+ "additionalProperties": false,
7944
+ "required": [
7945
+ "by",
7946
+ "select",
7947
+ "require"
7948
+ ]
7949
+ },
7950
+ {
7951
+ "type": "object",
7952
+ "properties": {
7953
+ "by": {
7954
+ "const": "ref",
7955
+ "type": "string"
7956
+ },
7957
+ "ref": {
7958
+ "type": "string"
7959
+ },
7960
+ "within": {
7961
+ "$ref": "#/$defs/BlockNodeAddress"
7962
+ }
7963
+ },
7964
+ "additionalProperties": false,
7965
+ "required": [
7966
+ "by",
7967
+ "ref"
7968
+ ]
7969
+ },
7970
+ {
7971
+ "type": "object",
7972
+ "properties": {
7973
+ "by": {
7974
+ "const": "target",
7975
+ "type": "string"
7976
+ },
7977
+ "target": {
7978
+ "$ref": "#/$defs/SelectionTarget"
7979
+ }
7980
+ },
7981
+ "additionalProperties": false,
7982
+ "required": [
7983
+ "by",
7984
+ "target"
7985
+ ]
7986
+ },
7987
+ {
7988
+ "type": "object",
7989
+ "properties": {
7990
+ "by": {
7991
+ "const": "block",
7992
+ "type": "string"
7993
+ },
7994
+ "nodeType": {
7995
+ "enum": [
7996
+ "paragraph",
7997
+ "heading",
7998
+ "listItem",
7999
+ "table",
8000
+ "tableRow",
8001
+ "tableCell",
8002
+ "tableOfContents",
8003
+ "image",
8004
+ "sdt"
8005
+ ]
8006
+ },
8007
+ "nodeId": {
8008
+ "type": "string"
8009
+ }
8010
+ },
8011
+ "additionalProperties": false,
8012
+ "required": [
8013
+ "by",
8014
+ "nodeType",
8015
+ "nodeId"
8016
+ ]
8017
+ }
8018
+ ]
8019
+ },
8020
+ "args": {
8021
+ "type": "object",
8022
+ "properties": {
8023
+ "content": {
8024
+ "oneOf": [
8025
+ {
8026
+ "type": "object"
8027
+ },
8028
+ {
8029
+ "type": "array",
8030
+ "items": {
8031
+ "type": "object"
8032
+ }
8033
+ }
8034
+ ]
8035
+ },
8036
+ "nestingPolicy": {
8037
+ "type": "object",
8038
+ "properties": {
8039
+ "tables": {
8040
+ "enum": [
8041
+ "forbid",
8042
+ "allow"
8043
+ ]
8044
+ }
8045
+ },
8046
+ "additionalProperties": false,
8047
+ "description": "Controls nesting behavior. tables: 'allow' permits inserting tables inside other tables."
8048
+ }
8049
+ },
8050
+ "additionalProperties": false,
8051
+ "required": [
8052
+ "content"
8053
+ ]
8054
+ }
8055
+ },
8056
+ "additionalProperties": false,
8057
+ "required": [
8058
+ "id",
8059
+ "op",
8060
+ "where",
8061
+ "args"
8062
+ ]
8063
+ },
7823
8064
  {
7824
8065
  "type": "object",
7825
8066
  "properties": {
@@ -7960,7 +8201,7 @@
7960
8201
  }
7961
8202
  ]
7962
8203
  },
7963
- "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."
8204
+ "description": "Ordered array of mutation steps. Each step needs 'op' (text.rewrite, text.insert, text.delete, format.apply, structural.replace, or assert) and a 'where' targeting clause. Check runtime capabilities for operation-specific content and targeting restrictions."
7964
8205
  },
7965
8206
  "detail": {
7966
8207
  "type": "object",
@@ -7988,6 +7988,247 @@
7988
7988
  "args"
7989
7989
  ]
7990
7990
  },
7991
+ {
7992
+ "type": "object",
7993
+ "properties": {
7994
+ "id": {
7995
+ "type": "string"
7996
+ },
7997
+ "op": {
7998
+ "const": "structural.replace",
7999
+ "type": "string"
8000
+ },
8001
+ "where": {
8002
+ "oneOf": [
8003
+ {
8004
+ "type": "object",
8005
+ "properties": {
8006
+ "by": {
8007
+ "const": "select",
8008
+ "type": "string"
8009
+ },
8010
+ "select": {
8011
+ "oneOf": [
8012
+ {
8013
+ "type": "object",
8014
+ "properties": {
8015
+ "type": {
8016
+ "const": "text",
8017
+ "description": "Must be 'text' for text pattern search.",
8018
+ "type": "string"
8019
+ },
8020
+ "pattern": {
8021
+ "type": "string",
8022
+ "description": "Text to match. In regex mode, patterns are validated for syntax, maximum length, and safety before execution."
8023
+ },
8024
+ "mode": {
8025
+ "enum": [
8026
+ "contains",
8027
+ "regex"
8028
+ ],
8029
+ "description": "Match mode: 'contains' (literal substring, recommended for literal text) or 'regex' (validated regular expression)."
8030
+ },
8031
+ "caseSensitive": {
8032
+ "type": "boolean",
8033
+ "description": "Case-sensitive matching. Default: false."
8034
+ },
8035
+ "wholeWord": {
8036
+ "type": "boolean",
8037
+ "description": "Require word-boundary matches. Default: false."
8038
+ },
8039
+ "includeDeletedText": {
8040
+ "type": "boolean",
8041
+ "description": "When true, includes text from pending tracked deletions. Default: false."
8042
+ }
8043
+ },
8044
+ "additionalProperties": false,
8045
+ "required": [
8046
+ "type",
8047
+ "pattern"
8048
+ ]
8049
+ },
8050
+ {
8051
+ "type": "object",
8052
+ "properties": {
8053
+ "type": {
8054
+ "const": "node",
8055
+ "description": "Must be 'node' for node type search.",
8056
+ "type": "string"
8057
+ },
8058
+ "nodeType": {
8059
+ "enum": [
8060
+ "paragraph",
8061
+ "heading",
8062
+ "listItem",
8063
+ "table",
8064
+ "tableRow",
8065
+ "tableCell",
8066
+ "tableOfContents",
8067
+ "image",
8068
+ "sdt",
8069
+ "run",
8070
+ "bookmark",
8071
+ "comment",
8072
+ "hyperlink",
8073
+ "footnoteRef",
8074
+ "endnoteRef",
8075
+ "crossRef",
8076
+ "indexEntry",
8077
+ "citation",
8078
+ "authorityEntry",
8079
+ "sequenceField",
8080
+ "tab",
8081
+ "lineBreak"
8082
+ ],
8083
+ "description": "Block type to match (paragraph, heading, table, listItem, etc.)."
8084
+ },
8085
+ "kind": {
8086
+ "enum": [
8087
+ "block",
8088
+ "inline"
8089
+ ],
8090
+ "description": "Filter: 'block' or 'inline'."
8091
+ }
8092
+ },
8093
+ "additionalProperties": false,
8094
+ "required": [
8095
+ "type"
8096
+ ]
8097
+ }
8098
+ ]
8099
+ },
8100
+ "within": {
8101
+ "$ref": "#/$defs/BlockNodeAddress"
8102
+ },
8103
+ "require": {
8104
+ "enum": [
8105
+ "first",
8106
+ "exactlyOne",
8107
+ "all"
8108
+ ]
8109
+ }
8110
+ },
8111
+ "additionalProperties": false,
8112
+ "required": [
8113
+ "by",
8114
+ "select",
8115
+ "require"
8116
+ ]
8117
+ },
8118
+ {
8119
+ "type": "object",
8120
+ "properties": {
8121
+ "by": {
8122
+ "const": "ref",
8123
+ "type": "string"
8124
+ },
8125
+ "ref": {
8126
+ "type": "string"
8127
+ },
8128
+ "within": {
8129
+ "$ref": "#/$defs/BlockNodeAddress"
8130
+ }
8131
+ },
8132
+ "additionalProperties": false,
8133
+ "required": [
8134
+ "by",
8135
+ "ref"
8136
+ ]
8137
+ },
8138
+ {
8139
+ "type": "object",
8140
+ "properties": {
8141
+ "by": {
8142
+ "const": "target",
8143
+ "type": "string"
8144
+ },
8145
+ "target": {
8146
+ "$ref": "#/$defs/SelectionTarget"
8147
+ }
8148
+ },
8149
+ "additionalProperties": false,
8150
+ "required": [
8151
+ "by",
8152
+ "target"
8153
+ ]
8154
+ },
8155
+ {
8156
+ "type": "object",
8157
+ "properties": {
8158
+ "by": {
8159
+ "const": "block",
8160
+ "type": "string"
8161
+ },
8162
+ "nodeType": {
8163
+ "enum": [
8164
+ "paragraph",
8165
+ "heading",
8166
+ "listItem",
8167
+ "table",
8168
+ "tableRow",
8169
+ "tableCell",
8170
+ "tableOfContents",
8171
+ "image",
8172
+ "sdt"
8173
+ ]
8174
+ },
8175
+ "nodeId": {
8176
+ "type": "string"
8177
+ }
8178
+ },
8179
+ "additionalProperties": false,
8180
+ "required": [
8181
+ "by",
8182
+ "nodeType",
8183
+ "nodeId"
8184
+ ]
8185
+ }
8186
+ ]
8187
+ },
8188
+ "args": {
8189
+ "type": "object",
8190
+ "properties": {
8191
+ "content": {
8192
+ "oneOf": [
8193
+ {
8194
+ "type": "object"
8195
+ },
8196
+ {
8197
+ "type": "array",
8198
+ "items": {
8199
+ "type": "object"
8200
+ }
8201
+ }
8202
+ ]
8203
+ },
8204
+ "nestingPolicy": {
8205
+ "type": "object",
8206
+ "properties": {
8207
+ "tables": {
8208
+ "enum": [
8209
+ "forbid",
8210
+ "allow"
8211
+ ]
8212
+ }
8213
+ },
8214
+ "additionalProperties": false,
8215
+ "description": "Controls nesting behavior. tables: 'allow' permits inserting tables inside other tables."
8216
+ }
8217
+ },
8218
+ "additionalProperties": false,
8219
+ "required": [
8220
+ "content"
8221
+ ]
8222
+ }
8223
+ },
8224
+ "additionalProperties": false,
8225
+ "required": [
8226
+ "id",
8227
+ "op",
8228
+ "where",
8229
+ "args"
8230
+ ]
8231
+ },
7991
8232
  {
7992
8233
  "type": "object",
7993
8234
  "properties": {
@@ -8128,7 +8369,7 @@
8128
8369
  }
8129
8370
  ]
8130
8371
  },
8131
- "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."
8372
+ "description": "Ordered array of mutation steps. Each step needs 'op' (text.rewrite, text.insert, text.delete, format.apply, structural.replace, or assert) and a 'where' targeting clause. Check runtime capabilities for operation-specific content and targeting restrictions."
8132
8373
  },
8133
8374
  "detail": {
8134
8375
  "type": "object",
@@ -7846,6 +7846,247 @@
7846
7846
  "args"
7847
7847
  ]
7848
7848
  },
7849
+ {
7850
+ "type": "object",
7851
+ "properties": {
7852
+ "id": {
7853
+ "type": "string"
7854
+ },
7855
+ "op": {
7856
+ "const": "structural.replace",
7857
+ "type": "string"
7858
+ },
7859
+ "where": {
7860
+ "oneOf": [
7861
+ {
7862
+ "type": "object",
7863
+ "properties": {
7864
+ "by": {
7865
+ "const": "select",
7866
+ "type": "string"
7867
+ },
7868
+ "select": {
7869
+ "oneOf": [
7870
+ {
7871
+ "type": "object",
7872
+ "properties": {
7873
+ "type": {
7874
+ "const": "text",
7875
+ "description": "Must be 'text' for text pattern search.",
7876
+ "type": "string"
7877
+ },
7878
+ "pattern": {
7879
+ "type": "string",
7880
+ "description": "Text to match. In regex mode, patterns are validated for syntax, maximum length, and safety before execution."
7881
+ },
7882
+ "mode": {
7883
+ "enum": [
7884
+ "contains",
7885
+ "regex"
7886
+ ],
7887
+ "description": "Match mode: 'contains' (literal substring, recommended for literal text) or 'regex' (validated regular expression)."
7888
+ },
7889
+ "caseSensitive": {
7890
+ "type": "boolean",
7891
+ "description": "Case-sensitive matching. Default: false."
7892
+ },
7893
+ "wholeWord": {
7894
+ "type": "boolean",
7895
+ "description": "Require word-boundary matches. Default: false."
7896
+ },
7897
+ "includeDeletedText": {
7898
+ "type": "boolean",
7899
+ "description": "When true, includes text from pending tracked deletions. Default: false."
7900
+ }
7901
+ },
7902
+ "additionalProperties": false,
7903
+ "required": [
7904
+ "type",
7905
+ "pattern"
7906
+ ]
7907
+ },
7908
+ {
7909
+ "type": "object",
7910
+ "properties": {
7911
+ "type": {
7912
+ "const": "node",
7913
+ "description": "Must be 'node' for node type search.",
7914
+ "type": "string"
7915
+ },
7916
+ "nodeType": {
7917
+ "enum": [
7918
+ "paragraph",
7919
+ "heading",
7920
+ "listItem",
7921
+ "table",
7922
+ "tableRow",
7923
+ "tableCell",
7924
+ "tableOfContents",
7925
+ "image",
7926
+ "sdt",
7927
+ "run",
7928
+ "bookmark",
7929
+ "comment",
7930
+ "hyperlink",
7931
+ "footnoteRef",
7932
+ "endnoteRef",
7933
+ "crossRef",
7934
+ "indexEntry",
7935
+ "citation",
7936
+ "authorityEntry",
7937
+ "sequenceField",
7938
+ "tab",
7939
+ "lineBreak"
7940
+ ],
7941
+ "description": "Block type to match (paragraph, heading, table, listItem, etc.)."
7942
+ },
7943
+ "kind": {
7944
+ "enum": [
7945
+ "block",
7946
+ "inline"
7947
+ ],
7948
+ "description": "Filter: 'block' or 'inline'."
7949
+ }
7950
+ },
7951
+ "additionalProperties": false,
7952
+ "required": [
7953
+ "type"
7954
+ ]
7955
+ }
7956
+ ]
7957
+ },
7958
+ "within": {
7959
+ "$ref": "#/$defs/BlockNodeAddress"
7960
+ },
7961
+ "require": {
7962
+ "enum": [
7963
+ "first",
7964
+ "exactlyOne",
7965
+ "all"
7966
+ ]
7967
+ }
7968
+ },
7969
+ "additionalProperties": false,
7970
+ "required": [
7971
+ "by",
7972
+ "select",
7973
+ "require"
7974
+ ]
7975
+ },
7976
+ {
7977
+ "type": "object",
7978
+ "properties": {
7979
+ "by": {
7980
+ "const": "ref",
7981
+ "type": "string"
7982
+ },
7983
+ "ref": {
7984
+ "type": "string"
7985
+ },
7986
+ "within": {
7987
+ "$ref": "#/$defs/BlockNodeAddress"
7988
+ }
7989
+ },
7990
+ "additionalProperties": false,
7991
+ "required": [
7992
+ "by",
7993
+ "ref"
7994
+ ]
7995
+ },
7996
+ {
7997
+ "type": "object",
7998
+ "properties": {
7999
+ "by": {
8000
+ "const": "target",
8001
+ "type": "string"
8002
+ },
8003
+ "target": {
8004
+ "$ref": "#/$defs/SelectionTarget"
8005
+ }
8006
+ },
8007
+ "additionalProperties": false,
8008
+ "required": [
8009
+ "by",
8010
+ "target"
8011
+ ]
8012
+ },
8013
+ {
8014
+ "type": "object",
8015
+ "properties": {
8016
+ "by": {
8017
+ "const": "block",
8018
+ "type": "string"
8019
+ },
8020
+ "nodeType": {
8021
+ "enum": [
8022
+ "paragraph",
8023
+ "heading",
8024
+ "listItem",
8025
+ "table",
8026
+ "tableRow",
8027
+ "tableCell",
8028
+ "tableOfContents",
8029
+ "image",
8030
+ "sdt"
8031
+ ]
8032
+ },
8033
+ "nodeId": {
8034
+ "type": "string"
8035
+ }
8036
+ },
8037
+ "additionalProperties": false,
8038
+ "required": [
8039
+ "by",
8040
+ "nodeType",
8041
+ "nodeId"
8042
+ ]
8043
+ }
8044
+ ]
8045
+ },
8046
+ "args": {
8047
+ "type": "object",
8048
+ "properties": {
8049
+ "content": {
8050
+ "oneOf": [
8051
+ {
8052
+ "type": "object"
8053
+ },
8054
+ {
8055
+ "type": "array",
8056
+ "items": {
8057
+ "type": "object"
8058
+ }
8059
+ }
8060
+ ]
8061
+ },
8062
+ "nestingPolicy": {
8063
+ "type": "object",
8064
+ "properties": {
8065
+ "tables": {
8066
+ "enum": [
8067
+ "forbid",
8068
+ "allow"
8069
+ ]
8070
+ }
8071
+ },
8072
+ "additionalProperties": false,
8073
+ "description": "Controls nesting behavior. tables: 'allow' permits inserting tables inside other tables."
8074
+ }
8075
+ },
8076
+ "additionalProperties": false,
8077
+ "required": [
8078
+ "content"
8079
+ ]
8080
+ }
8081
+ },
8082
+ "additionalProperties": false,
8083
+ "required": [
8084
+ "id",
8085
+ "op",
8086
+ "where",
8087
+ "args"
8088
+ ]
8089
+ },
7849
8090
  {
7850
8091
  "type": "object",
7851
8092
  "properties": {
@@ -7986,7 +8227,7 @@
7986
8227
  }
7987
8228
  ]
7988
8229
  },
7989
- "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."
8230
+ "description": "Ordered array of mutation steps. Each step needs 'op' (text.rewrite, text.insert, text.delete, format.apply, structural.replace, or assert) and a 'where' targeting clause. Check runtime capabilities for operation-specific content and targeting restrictions."
7990
8231
  },
7991
8232
  "detail": {
7992
8233
  "type": "object",
@@ -7846,6 +7846,247 @@
7846
7846
  "args"
7847
7847
  ]
7848
7848
  },
7849
+ {
7850
+ "type": "object",
7851
+ "properties": {
7852
+ "id": {
7853
+ "type": "string"
7854
+ },
7855
+ "op": {
7856
+ "const": "structural.replace",
7857
+ "type": "string"
7858
+ },
7859
+ "where": {
7860
+ "oneOf": [
7861
+ {
7862
+ "type": "object",
7863
+ "properties": {
7864
+ "by": {
7865
+ "const": "select",
7866
+ "type": "string"
7867
+ },
7868
+ "select": {
7869
+ "oneOf": [
7870
+ {
7871
+ "type": "object",
7872
+ "properties": {
7873
+ "type": {
7874
+ "const": "text",
7875
+ "description": "Must be 'text' for text pattern search.",
7876
+ "type": "string"
7877
+ },
7878
+ "pattern": {
7879
+ "type": "string",
7880
+ "description": "Text to match. In regex mode, patterns are validated for syntax, maximum length, and safety before execution."
7881
+ },
7882
+ "mode": {
7883
+ "enum": [
7884
+ "contains",
7885
+ "regex"
7886
+ ],
7887
+ "description": "Match mode: 'contains' (literal substring, recommended for literal text) or 'regex' (validated regular expression)."
7888
+ },
7889
+ "caseSensitive": {
7890
+ "type": "boolean",
7891
+ "description": "Case-sensitive matching. Default: false."
7892
+ },
7893
+ "wholeWord": {
7894
+ "type": "boolean",
7895
+ "description": "Require word-boundary matches. Default: false."
7896
+ },
7897
+ "includeDeletedText": {
7898
+ "type": "boolean",
7899
+ "description": "When true, includes text from pending tracked deletions. Default: false."
7900
+ }
7901
+ },
7902
+ "additionalProperties": false,
7903
+ "required": [
7904
+ "type",
7905
+ "pattern"
7906
+ ]
7907
+ },
7908
+ {
7909
+ "type": "object",
7910
+ "properties": {
7911
+ "type": {
7912
+ "const": "node",
7913
+ "description": "Must be 'node' for node type search.",
7914
+ "type": "string"
7915
+ },
7916
+ "nodeType": {
7917
+ "enum": [
7918
+ "paragraph",
7919
+ "heading",
7920
+ "listItem",
7921
+ "table",
7922
+ "tableRow",
7923
+ "tableCell",
7924
+ "tableOfContents",
7925
+ "image",
7926
+ "sdt",
7927
+ "run",
7928
+ "bookmark",
7929
+ "comment",
7930
+ "hyperlink",
7931
+ "footnoteRef",
7932
+ "endnoteRef",
7933
+ "crossRef",
7934
+ "indexEntry",
7935
+ "citation",
7936
+ "authorityEntry",
7937
+ "sequenceField",
7938
+ "tab",
7939
+ "lineBreak"
7940
+ ],
7941
+ "description": "Block type to match (paragraph, heading, table, listItem, etc.)."
7942
+ },
7943
+ "kind": {
7944
+ "enum": [
7945
+ "block",
7946
+ "inline"
7947
+ ],
7948
+ "description": "Filter: 'block' or 'inline'."
7949
+ }
7950
+ },
7951
+ "additionalProperties": false,
7952
+ "required": [
7953
+ "type"
7954
+ ]
7955
+ }
7956
+ ]
7957
+ },
7958
+ "within": {
7959
+ "$ref": "#/$defs/BlockNodeAddress"
7960
+ },
7961
+ "require": {
7962
+ "enum": [
7963
+ "first",
7964
+ "exactlyOne",
7965
+ "all"
7966
+ ]
7967
+ }
7968
+ },
7969
+ "additionalProperties": false,
7970
+ "required": [
7971
+ "by",
7972
+ "select",
7973
+ "require"
7974
+ ]
7975
+ },
7976
+ {
7977
+ "type": "object",
7978
+ "properties": {
7979
+ "by": {
7980
+ "const": "ref",
7981
+ "type": "string"
7982
+ },
7983
+ "ref": {
7984
+ "type": "string"
7985
+ },
7986
+ "within": {
7987
+ "$ref": "#/$defs/BlockNodeAddress"
7988
+ }
7989
+ },
7990
+ "additionalProperties": false,
7991
+ "required": [
7992
+ "by",
7993
+ "ref"
7994
+ ]
7995
+ },
7996
+ {
7997
+ "type": "object",
7998
+ "properties": {
7999
+ "by": {
8000
+ "const": "target",
8001
+ "type": "string"
8002
+ },
8003
+ "target": {
8004
+ "$ref": "#/$defs/SelectionTarget"
8005
+ }
8006
+ },
8007
+ "additionalProperties": false,
8008
+ "required": [
8009
+ "by",
8010
+ "target"
8011
+ ]
8012
+ },
8013
+ {
8014
+ "type": "object",
8015
+ "properties": {
8016
+ "by": {
8017
+ "const": "block",
8018
+ "type": "string"
8019
+ },
8020
+ "nodeType": {
8021
+ "enum": [
8022
+ "paragraph",
8023
+ "heading",
8024
+ "listItem",
8025
+ "table",
8026
+ "tableRow",
8027
+ "tableCell",
8028
+ "tableOfContents",
8029
+ "image",
8030
+ "sdt"
8031
+ ]
8032
+ },
8033
+ "nodeId": {
8034
+ "type": "string"
8035
+ }
8036
+ },
8037
+ "additionalProperties": false,
8038
+ "required": [
8039
+ "by",
8040
+ "nodeType",
8041
+ "nodeId"
8042
+ ]
8043
+ }
8044
+ ]
8045
+ },
8046
+ "args": {
8047
+ "type": "object",
8048
+ "properties": {
8049
+ "content": {
8050
+ "oneOf": [
8051
+ {
8052
+ "type": "object"
8053
+ },
8054
+ {
8055
+ "type": "array",
8056
+ "items": {
8057
+ "type": "object"
8058
+ }
8059
+ }
8060
+ ]
8061
+ },
8062
+ "nestingPolicy": {
8063
+ "type": "object",
8064
+ "properties": {
8065
+ "tables": {
8066
+ "enum": [
8067
+ "forbid",
8068
+ "allow"
8069
+ ]
8070
+ }
8071
+ },
8072
+ "additionalProperties": false,
8073
+ "description": "Controls nesting behavior. tables: 'allow' permits inserting tables inside other tables."
8074
+ }
8075
+ },
8076
+ "additionalProperties": false,
8077
+ "required": [
8078
+ "content"
8079
+ ]
8080
+ }
8081
+ },
8082
+ "additionalProperties": false,
8083
+ "required": [
8084
+ "id",
8085
+ "op",
8086
+ "where",
8087
+ "args"
8088
+ ]
8089
+ },
7849
8090
  {
7850
8091
  "type": "object",
7851
8092
  "properties": {
@@ -7986,7 +8227,7 @@
7986
8227
  }
7987
8228
  ]
7988
8229
  },
7989
- "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."
8230
+ "description": "Ordered array of mutation steps. Each step needs 'op' (text.rewrite, text.insert, text.delete, format.apply, structural.replace, or assert) and a 'where' targeting clause. Check runtime capabilities for operation-specific content and targeting restrictions."
7990
8231
  },
7991
8232
  "detail": {
7992
8233
  "type": "object",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc/cli-darwin-x64",
3
- "version": "0.42.1-next.2",
3
+ "version": "0.43.0-next.10",
4
4
  "description": "SuperDoc CLI binary for macOS x64. Selected automatically by @superdoc/cli; do not install it directly.",
5
5
  "license": "AGPL-3.0",
6
6
  "repository": {