@superdoc-dev/sdk 1.8.0-next.2 → 1.8.0-next.21
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/generated/client.cjs +10 -0
- package/dist/generated/client.d.ts +156 -4
- package/dist/generated/client.d.ts.map +1 -1
- package/dist/generated/client.js +10 -0
- package/dist/generated/contract.cjs +873 -34
- package/dist/generated/contract.d.ts.map +1 -1
- package/dist/generated/contract.js +873 -34
- package/dist/generated/intent-dispatch.generated.cjs +5 -0
- package/dist/generated/intent-dispatch.generated.d.ts.map +1 -1
- package/dist/generated/intent-dispatch.generated.js +5 -0
- package/package.json +6 -6
- package/tools/__pycache__/__init__.cpython-312.pyc +0 -0
- package/tools/__pycache__/intent_dispatch_generated.cpython-312.pyc +0 -0
- package/tools/catalog.json +156 -27
- package/tools/intent_dispatch_generated.py +10 -0
- package/tools/prompt-templates/system-prompt-core.md +88 -0
- package/tools/system-prompt-mcp.md +88 -0
- package/tools/system-prompt.md +88 -0
- package/tools/tools-policy.json +1 -1
- package/tools/tools.anthropic.json +118 -27
- package/tools/tools.generic.json +124 -28
- package/tools/tools.openai.json +118 -27
- package/tools/tools.vercel.json +118 -27
|
@@ -3180,9 +3180,52 @@ export const CONTRACT = {
|
|
|
3180
3180
|
"type": "string",
|
|
3181
3181
|
"description": "Full plain text content of the block."
|
|
3182
3182
|
},
|
|
3183
|
+
"textSpans": {
|
|
3184
|
+
"type": "array",
|
|
3185
|
+
"description": "Block text broken into runs with tracked-change marks preserved per run. Present only when the block contains at least one tracked change. Concatenating span text yields `text`.",
|
|
3186
|
+
"items": {
|
|
3187
|
+
"type": "object",
|
|
3188
|
+
"properties": {
|
|
3189
|
+
"text": {
|
|
3190
|
+
"type": "string",
|
|
3191
|
+
"description": "Raw text of the run."
|
|
3192
|
+
},
|
|
3193
|
+
"trackedChanges": {
|
|
3194
|
+
"type": "array",
|
|
3195
|
+
"description": "Tracked-change marks applied to this run.",
|
|
3196
|
+
"items": {
|
|
3197
|
+
"type": "object",
|
|
3198
|
+
"properties": {
|
|
3199
|
+
"entityId": {
|
|
3200
|
+
"type": "string",
|
|
3201
|
+
"description": "Tracked change entity ID matching an entry in trackedChanges[]."
|
|
3202
|
+
},
|
|
3203
|
+
"type": {
|
|
3204
|
+
"type": "string",
|
|
3205
|
+
"enum": [
|
|
3206
|
+
"insert",
|
|
3207
|
+
"delete",
|
|
3208
|
+
"format"
|
|
3209
|
+
]
|
|
3210
|
+
}
|
|
3211
|
+
},
|
|
3212
|
+
"additionalProperties": false,
|
|
3213
|
+
"required": [
|
|
3214
|
+
"entityId",
|
|
3215
|
+
"type"
|
|
3216
|
+
]
|
|
3217
|
+
}
|
|
3218
|
+
}
|
|
3219
|
+
},
|
|
3220
|
+
"additionalProperties": false,
|
|
3221
|
+
"required": [
|
|
3222
|
+
"text"
|
|
3223
|
+
]
|
|
3224
|
+
}
|
|
3225
|
+
},
|
|
3183
3226
|
"headingLevel": {
|
|
3184
3227
|
"type": "integer",
|
|
3185
|
-
"description": "Heading level (1
|
|
3228
|
+
"description": "Heading level (1-6). Only present for headings."
|
|
3186
3229
|
},
|
|
3187
3230
|
"tableContext": {
|
|
3188
3231
|
"type": "object",
|
|
@@ -3285,7 +3328,7 @@ export const CONTRACT = {
|
|
|
3285
3328
|
"properties": {
|
|
3286
3329
|
"entityId": {
|
|
3287
3330
|
"type": "string",
|
|
3288
|
-
"description": "Tracked change entity ID
|
|
3331
|
+
"description": "Tracked change entity ID. Pass to scrollToElement() for navigation."
|
|
3289
3332
|
},
|
|
3290
3333
|
"type": {
|
|
3291
3334
|
"type": "string",
|
|
@@ -3293,11 +3336,37 @@ export const CONTRACT = {
|
|
|
3293
3336
|
"insert",
|
|
3294
3337
|
"delete",
|
|
3295
3338
|
"format"
|
|
3296
|
-
]
|
|
3339
|
+
],
|
|
3340
|
+
"description": "Aggregate type at the entity level. In paired replacement mode, a delete+insert pair shares one entity and this collapses to 'insert'; per-half type lives on block.textSpans[].trackedChanges[]."
|
|
3341
|
+
},
|
|
3342
|
+
"blockIds": {
|
|
3343
|
+
"type": "array",
|
|
3344
|
+
"description": "Block IDs whose textSpans carry this change.",
|
|
3345
|
+
"items": {
|
|
3346
|
+
"type": "string"
|
|
3347
|
+
}
|
|
3348
|
+
},
|
|
3349
|
+
"wordRevisionIds": {
|
|
3350
|
+
"type": "object",
|
|
3351
|
+
"properties": {
|
|
3352
|
+
"insert": {
|
|
3353
|
+
"type": "string",
|
|
3354
|
+
"description": "Original OOXML w:id from a w:ins mark."
|
|
3355
|
+
},
|
|
3356
|
+
"delete": {
|
|
3357
|
+
"type": "string",
|
|
3358
|
+
"description": "Original OOXML w:id from a w:del mark."
|
|
3359
|
+
},
|
|
3360
|
+
"format": {
|
|
3361
|
+
"type": "string",
|
|
3362
|
+
"description": "Original OOXML w:id from a w:rPrChange mark."
|
|
3363
|
+
}
|
|
3364
|
+
},
|
|
3365
|
+
"additionalProperties": false
|
|
3297
3366
|
},
|
|
3298
3367
|
"excerpt": {
|
|
3299
3368
|
"type": "string",
|
|
3300
|
-
"description": "Short text excerpt of the changed content."
|
|
3369
|
+
"description": "Short text excerpt of the changed content. Omitted for paired replacements; read block.textSpans for the per-half text."
|
|
3301
3370
|
},
|
|
3302
3371
|
"author": {
|
|
3303
3372
|
"type": "string",
|
|
@@ -52274,7 +52343,9 @@ export const CONTRACT = {
|
|
|
52274
52343
|
"success",
|
|
52275
52344
|
"failure"
|
|
52276
52345
|
]
|
|
52277
|
-
}
|
|
52346
|
+
},
|
|
52347
|
+
"intentGroup": "list",
|
|
52348
|
+
"intentAction": "attach"
|
|
52278
52349
|
},
|
|
52279
52350
|
"doc.lists.detach": {
|
|
52280
52351
|
"operationId": "doc.lists.detach",
|
|
@@ -53572,6 +53643,508 @@ export const CONTRACT = {
|
|
|
53572
53643
|
]
|
|
53573
53644
|
}
|
|
53574
53645
|
},
|
|
53646
|
+
"doc.lists.merge": {
|
|
53647
|
+
"operationId": "doc.lists.merge",
|
|
53648
|
+
"sdkSurface": "document",
|
|
53649
|
+
"command": "lists merge",
|
|
53650
|
+
"commandTokens": [
|
|
53651
|
+
"lists",
|
|
53652
|
+
"merge"
|
|
53653
|
+
],
|
|
53654
|
+
"category": "lists",
|
|
53655
|
+
"description": "Compound: merge two adjacent list sequences into one. Reassigns numId on the absorbed sequence (no strict abstractNumId check — absorbed items adopt the absorbing definition) and deletes empty paragraphs between the two sequences. Use this instead of lists.join for the user-facing \"merge these lists\" intent.",
|
|
53656
|
+
"requiresDocumentContext": true,
|
|
53657
|
+
"docRequirement": "optional",
|
|
53658
|
+
"responseEnvelopeKey": null,
|
|
53659
|
+
"params": [
|
|
53660
|
+
{
|
|
53661
|
+
"name": "doc",
|
|
53662
|
+
"kind": "doc",
|
|
53663
|
+
"type": "string",
|
|
53664
|
+
"description": "Document path. Optional when a session is already open."
|
|
53665
|
+
},
|
|
53666
|
+
{
|
|
53667
|
+
"name": "sessionId",
|
|
53668
|
+
"kind": "flag",
|
|
53669
|
+
"type": "string",
|
|
53670
|
+
"flag": "session",
|
|
53671
|
+
"description": "Session ID for multi-session workflows. Optional when only one session is open."
|
|
53672
|
+
},
|
|
53673
|
+
{
|
|
53674
|
+
"name": "out",
|
|
53675
|
+
"kind": "flag",
|
|
53676
|
+
"type": "string",
|
|
53677
|
+
"agentVisible": false
|
|
53678
|
+
},
|
|
53679
|
+
{
|
|
53680
|
+
"name": "force",
|
|
53681
|
+
"kind": "flag",
|
|
53682
|
+
"type": "boolean",
|
|
53683
|
+
"description": "Bypass confirmation checks."
|
|
53684
|
+
},
|
|
53685
|
+
{
|
|
53686
|
+
"name": "expectedRevision",
|
|
53687
|
+
"kind": "flag",
|
|
53688
|
+
"type": "number",
|
|
53689
|
+
"flag": "expected-revision",
|
|
53690
|
+
"agentVisible": false
|
|
53691
|
+
},
|
|
53692
|
+
{
|
|
53693
|
+
"name": "changeMode",
|
|
53694
|
+
"kind": "flag",
|
|
53695
|
+
"type": "string",
|
|
53696
|
+
"flag": "change-mode",
|
|
53697
|
+
"schema": {
|
|
53698
|
+
"enum": [
|
|
53699
|
+
"direct",
|
|
53700
|
+
"tracked"
|
|
53701
|
+
]
|
|
53702
|
+
},
|
|
53703
|
+
"description": "Edit mode: \"direct\" applies changes immediately, \"tracked\" records as suggestions."
|
|
53704
|
+
},
|
|
53705
|
+
{
|
|
53706
|
+
"name": "dryRun",
|
|
53707
|
+
"kind": "flag",
|
|
53708
|
+
"type": "boolean",
|
|
53709
|
+
"flag": "dry-run",
|
|
53710
|
+
"description": "Preview the result without applying changes."
|
|
53711
|
+
},
|
|
53712
|
+
{
|
|
53713
|
+
"name": "target",
|
|
53714
|
+
"kind": "jsonFlag",
|
|
53715
|
+
"type": "json",
|
|
53716
|
+
"flag": "target-json",
|
|
53717
|
+
"required": true,
|
|
53718
|
+
"schema": {
|
|
53719
|
+
"type": "object",
|
|
53720
|
+
"properties": {
|
|
53721
|
+
"kind": {
|
|
53722
|
+
"const": "block"
|
|
53723
|
+
},
|
|
53724
|
+
"nodeType": {
|
|
53725
|
+
"const": "listItem"
|
|
53726
|
+
},
|
|
53727
|
+
"nodeId": {
|
|
53728
|
+
"type": "string"
|
|
53729
|
+
}
|
|
53730
|
+
},
|
|
53731
|
+
"required": [
|
|
53732
|
+
"kind",
|
|
53733
|
+
"nodeType",
|
|
53734
|
+
"nodeId"
|
|
53735
|
+
]
|
|
53736
|
+
}
|
|
53737
|
+
},
|
|
53738
|
+
{
|
|
53739
|
+
"name": "direction",
|
|
53740
|
+
"kind": "flag",
|
|
53741
|
+
"type": "string",
|
|
53742
|
+
"required": true,
|
|
53743
|
+
"schema": {
|
|
53744
|
+
"oneOf": [
|
|
53745
|
+
{
|
|
53746
|
+
"const": "withPrevious"
|
|
53747
|
+
},
|
|
53748
|
+
{
|
|
53749
|
+
"const": "withNext"
|
|
53750
|
+
}
|
|
53751
|
+
]
|
|
53752
|
+
}
|
|
53753
|
+
}
|
|
53754
|
+
],
|
|
53755
|
+
"constraints": null,
|
|
53756
|
+
"mutates": true,
|
|
53757
|
+
"idempotency": "conditional",
|
|
53758
|
+
"supportsTrackedMode": false,
|
|
53759
|
+
"supportsDryRun": true,
|
|
53760
|
+
"inputSchema": {
|
|
53761
|
+
"type": "object",
|
|
53762
|
+
"properties": {
|
|
53763
|
+
"target": {
|
|
53764
|
+
"$ref": "#/$defs/ListItemAddress"
|
|
53765
|
+
},
|
|
53766
|
+
"direction": {
|
|
53767
|
+
"enum": [
|
|
53768
|
+
"withPrevious",
|
|
53769
|
+
"withNext"
|
|
53770
|
+
]
|
|
53771
|
+
}
|
|
53772
|
+
},
|
|
53773
|
+
"additionalProperties": false,
|
|
53774
|
+
"required": [
|
|
53775
|
+
"target",
|
|
53776
|
+
"direction"
|
|
53777
|
+
]
|
|
53778
|
+
},
|
|
53779
|
+
"outputSchema": {
|
|
53780
|
+
"oneOf": [
|
|
53781
|
+
{
|
|
53782
|
+
"type": "object",
|
|
53783
|
+
"properties": {
|
|
53784
|
+
"success": {
|
|
53785
|
+
"const": true
|
|
53786
|
+
},
|
|
53787
|
+
"listId": {
|
|
53788
|
+
"type": "string"
|
|
53789
|
+
},
|
|
53790
|
+
"absorbedCount": {
|
|
53791
|
+
"type": "integer"
|
|
53792
|
+
},
|
|
53793
|
+
"removedEmptyBlocks": {
|
|
53794
|
+
"type": "integer"
|
|
53795
|
+
}
|
|
53796
|
+
},
|
|
53797
|
+
"additionalProperties": false,
|
|
53798
|
+
"required": [
|
|
53799
|
+
"success",
|
|
53800
|
+
"listId",
|
|
53801
|
+
"absorbedCount",
|
|
53802
|
+
"removedEmptyBlocks"
|
|
53803
|
+
]
|
|
53804
|
+
},
|
|
53805
|
+
{
|
|
53806
|
+
"type": "object",
|
|
53807
|
+
"properties": {
|
|
53808
|
+
"success": {
|
|
53809
|
+
"const": false
|
|
53810
|
+
},
|
|
53811
|
+
"failure": {
|
|
53812
|
+
"type": "object",
|
|
53813
|
+
"properties": {
|
|
53814
|
+
"code": {
|
|
53815
|
+
"enum": [
|
|
53816
|
+
"INVALID_TARGET",
|
|
53817
|
+
"NO_ADJACENT_SEQUENCE",
|
|
53818
|
+
"NO_OP"
|
|
53819
|
+
]
|
|
53820
|
+
},
|
|
53821
|
+
"message": {
|
|
53822
|
+
"type": "string"
|
|
53823
|
+
},
|
|
53824
|
+
"details": {}
|
|
53825
|
+
},
|
|
53826
|
+
"additionalProperties": false,
|
|
53827
|
+
"required": [
|
|
53828
|
+
"code",
|
|
53829
|
+
"message"
|
|
53830
|
+
]
|
|
53831
|
+
}
|
|
53832
|
+
},
|
|
53833
|
+
"additionalProperties": false,
|
|
53834
|
+
"required": [
|
|
53835
|
+
"success",
|
|
53836
|
+
"failure"
|
|
53837
|
+
]
|
|
53838
|
+
}
|
|
53839
|
+
]
|
|
53840
|
+
},
|
|
53841
|
+
"successSchema": {
|
|
53842
|
+
"type": "object",
|
|
53843
|
+
"properties": {
|
|
53844
|
+
"success": {
|
|
53845
|
+
"const": true
|
|
53846
|
+
},
|
|
53847
|
+
"listId": {
|
|
53848
|
+
"type": "string"
|
|
53849
|
+
},
|
|
53850
|
+
"absorbedCount": {
|
|
53851
|
+
"type": "integer"
|
|
53852
|
+
},
|
|
53853
|
+
"removedEmptyBlocks": {
|
|
53854
|
+
"type": "integer"
|
|
53855
|
+
}
|
|
53856
|
+
},
|
|
53857
|
+
"additionalProperties": false,
|
|
53858
|
+
"required": [
|
|
53859
|
+
"success",
|
|
53860
|
+
"listId",
|
|
53861
|
+
"absorbedCount",
|
|
53862
|
+
"removedEmptyBlocks"
|
|
53863
|
+
]
|
|
53864
|
+
},
|
|
53865
|
+
"failureSchema": {
|
|
53866
|
+
"type": "object",
|
|
53867
|
+
"properties": {
|
|
53868
|
+
"success": {
|
|
53869
|
+
"const": false
|
|
53870
|
+
},
|
|
53871
|
+
"failure": {
|
|
53872
|
+
"type": "object",
|
|
53873
|
+
"properties": {
|
|
53874
|
+
"code": {
|
|
53875
|
+
"enum": [
|
|
53876
|
+
"INVALID_TARGET",
|
|
53877
|
+
"NO_ADJACENT_SEQUENCE",
|
|
53878
|
+
"NO_OP"
|
|
53879
|
+
]
|
|
53880
|
+
},
|
|
53881
|
+
"message": {
|
|
53882
|
+
"type": "string"
|
|
53883
|
+
},
|
|
53884
|
+
"details": {}
|
|
53885
|
+
},
|
|
53886
|
+
"additionalProperties": false,
|
|
53887
|
+
"required": [
|
|
53888
|
+
"code",
|
|
53889
|
+
"message"
|
|
53890
|
+
]
|
|
53891
|
+
}
|
|
53892
|
+
},
|
|
53893
|
+
"additionalProperties": false,
|
|
53894
|
+
"required": [
|
|
53895
|
+
"success",
|
|
53896
|
+
"failure"
|
|
53897
|
+
]
|
|
53898
|
+
},
|
|
53899
|
+
"intentGroup": "list",
|
|
53900
|
+
"intentAction": "merge"
|
|
53901
|
+
},
|
|
53902
|
+
"doc.lists.split": {
|
|
53903
|
+
"operationId": "doc.lists.split",
|
|
53904
|
+
"sdkSurface": "document",
|
|
53905
|
+
"command": "lists split",
|
|
53906
|
+
"commandTokens": [
|
|
53907
|
+
"lists",
|
|
53908
|
+
"split"
|
|
53909
|
+
],
|
|
53910
|
+
"category": "lists",
|
|
53911
|
+
"description": "Compound: split a list sequence at the target item into two independent sequences. Runs lists.separate then (by default) lists.setValue(1) so the new half starts numbering fresh at 1. Pass restartNumbering:false for raw separate semantics (new half continues the previous count).",
|
|
53912
|
+
"requiresDocumentContext": true,
|
|
53913
|
+
"docRequirement": "optional",
|
|
53914
|
+
"responseEnvelopeKey": null,
|
|
53915
|
+
"params": [
|
|
53916
|
+
{
|
|
53917
|
+
"name": "doc",
|
|
53918
|
+
"kind": "doc",
|
|
53919
|
+
"type": "string",
|
|
53920
|
+
"description": "Document path. Optional when a session is already open."
|
|
53921
|
+
},
|
|
53922
|
+
{
|
|
53923
|
+
"name": "sessionId",
|
|
53924
|
+
"kind": "flag",
|
|
53925
|
+
"type": "string",
|
|
53926
|
+
"flag": "session",
|
|
53927
|
+
"description": "Session ID for multi-session workflows. Optional when only one session is open."
|
|
53928
|
+
},
|
|
53929
|
+
{
|
|
53930
|
+
"name": "out",
|
|
53931
|
+
"kind": "flag",
|
|
53932
|
+
"type": "string",
|
|
53933
|
+
"agentVisible": false
|
|
53934
|
+
},
|
|
53935
|
+
{
|
|
53936
|
+
"name": "force",
|
|
53937
|
+
"kind": "flag",
|
|
53938
|
+
"type": "boolean",
|
|
53939
|
+
"description": "Bypass confirmation checks."
|
|
53940
|
+
},
|
|
53941
|
+
{
|
|
53942
|
+
"name": "expectedRevision",
|
|
53943
|
+
"kind": "flag",
|
|
53944
|
+
"type": "number",
|
|
53945
|
+
"flag": "expected-revision",
|
|
53946
|
+
"agentVisible": false
|
|
53947
|
+
},
|
|
53948
|
+
{
|
|
53949
|
+
"name": "changeMode",
|
|
53950
|
+
"kind": "flag",
|
|
53951
|
+
"type": "string",
|
|
53952
|
+
"flag": "change-mode",
|
|
53953
|
+
"schema": {
|
|
53954
|
+
"enum": [
|
|
53955
|
+
"direct",
|
|
53956
|
+
"tracked"
|
|
53957
|
+
]
|
|
53958
|
+
},
|
|
53959
|
+
"description": "Edit mode: \"direct\" applies changes immediately, \"tracked\" records as suggestions."
|
|
53960
|
+
},
|
|
53961
|
+
{
|
|
53962
|
+
"name": "dryRun",
|
|
53963
|
+
"kind": "flag",
|
|
53964
|
+
"type": "boolean",
|
|
53965
|
+
"flag": "dry-run",
|
|
53966
|
+
"description": "Preview the result without applying changes."
|
|
53967
|
+
},
|
|
53968
|
+
{
|
|
53969
|
+
"name": "target",
|
|
53970
|
+
"kind": "jsonFlag",
|
|
53971
|
+
"type": "json",
|
|
53972
|
+
"flag": "target-json",
|
|
53973
|
+
"required": true,
|
|
53974
|
+
"schema": {
|
|
53975
|
+
"type": "object",
|
|
53976
|
+
"properties": {
|
|
53977
|
+
"kind": {
|
|
53978
|
+
"const": "block"
|
|
53979
|
+
},
|
|
53980
|
+
"nodeType": {
|
|
53981
|
+
"const": "listItem"
|
|
53982
|
+
},
|
|
53983
|
+
"nodeId": {
|
|
53984
|
+
"type": "string"
|
|
53985
|
+
}
|
|
53986
|
+
},
|
|
53987
|
+
"required": [
|
|
53988
|
+
"kind",
|
|
53989
|
+
"nodeType",
|
|
53990
|
+
"nodeId"
|
|
53991
|
+
]
|
|
53992
|
+
}
|
|
53993
|
+
},
|
|
53994
|
+
{
|
|
53995
|
+
"name": "restartNumbering",
|
|
53996
|
+
"kind": "flag",
|
|
53997
|
+
"type": "boolean",
|
|
53998
|
+
"flag": "restart-numbering"
|
|
53999
|
+
}
|
|
54000
|
+
],
|
|
54001
|
+
"constraints": null,
|
|
54002
|
+
"mutates": true,
|
|
54003
|
+
"idempotency": "conditional",
|
|
54004
|
+
"supportsTrackedMode": false,
|
|
54005
|
+
"supportsDryRun": true,
|
|
54006
|
+
"inputSchema": {
|
|
54007
|
+
"type": "object",
|
|
54008
|
+
"properties": {
|
|
54009
|
+
"target": {
|
|
54010
|
+
"$ref": "#/$defs/ListItemAddress"
|
|
54011
|
+
},
|
|
54012
|
+
"restartNumbering": {
|
|
54013
|
+
"type": "boolean"
|
|
54014
|
+
}
|
|
54015
|
+
},
|
|
54016
|
+
"additionalProperties": false,
|
|
54017
|
+
"required": [
|
|
54018
|
+
"target"
|
|
54019
|
+
]
|
|
54020
|
+
},
|
|
54021
|
+
"outputSchema": {
|
|
54022
|
+
"oneOf": [
|
|
54023
|
+
{
|
|
54024
|
+
"type": "object",
|
|
54025
|
+
"properties": {
|
|
54026
|
+
"success": {
|
|
54027
|
+
"const": true
|
|
54028
|
+
},
|
|
54029
|
+
"listId": {
|
|
54030
|
+
"type": "string"
|
|
54031
|
+
},
|
|
54032
|
+
"numId": {
|
|
54033
|
+
"type": "integer"
|
|
54034
|
+
},
|
|
54035
|
+
"restartedAt": {
|
|
54036
|
+
"type": [
|
|
54037
|
+
"integer",
|
|
54038
|
+
"null"
|
|
54039
|
+
]
|
|
54040
|
+
}
|
|
54041
|
+
},
|
|
54042
|
+
"additionalProperties": false,
|
|
54043
|
+
"required": [
|
|
54044
|
+
"success",
|
|
54045
|
+
"listId",
|
|
54046
|
+
"numId",
|
|
54047
|
+
"restartedAt"
|
|
54048
|
+
]
|
|
54049
|
+
},
|
|
54050
|
+
{
|
|
54051
|
+
"type": "object",
|
|
54052
|
+
"properties": {
|
|
54053
|
+
"success": {
|
|
54054
|
+
"const": false
|
|
54055
|
+
},
|
|
54056
|
+
"failure": {
|
|
54057
|
+
"type": "object",
|
|
54058
|
+
"properties": {
|
|
54059
|
+
"code": {
|
|
54060
|
+
"enum": [
|
|
54061
|
+
"INVALID_TARGET",
|
|
54062
|
+
"NO_OP"
|
|
54063
|
+
]
|
|
54064
|
+
},
|
|
54065
|
+
"message": {
|
|
54066
|
+
"type": "string"
|
|
54067
|
+
},
|
|
54068
|
+
"details": {}
|
|
54069
|
+
},
|
|
54070
|
+
"additionalProperties": false,
|
|
54071
|
+
"required": [
|
|
54072
|
+
"code",
|
|
54073
|
+
"message"
|
|
54074
|
+
]
|
|
54075
|
+
}
|
|
54076
|
+
},
|
|
54077
|
+
"additionalProperties": false,
|
|
54078
|
+
"required": [
|
|
54079
|
+
"success",
|
|
54080
|
+
"failure"
|
|
54081
|
+
]
|
|
54082
|
+
}
|
|
54083
|
+
]
|
|
54084
|
+
},
|
|
54085
|
+
"successSchema": {
|
|
54086
|
+
"type": "object",
|
|
54087
|
+
"properties": {
|
|
54088
|
+
"success": {
|
|
54089
|
+
"const": true
|
|
54090
|
+
},
|
|
54091
|
+
"listId": {
|
|
54092
|
+
"type": "string"
|
|
54093
|
+
},
|
|
54094
|
+
"numId": {
|
|
54095
|
+
"type": "integer"
|
|
54096
|
+
},
|
|
54097
|
+
"restartedAt": {
|
|
54098
|
+
"type": [
|
|
54099
|
+
"integer",
|
|
54100
|
+
"null"
|
|
54101
|
+
]
|
|
54102
|
+
}
|
|
54103
|
+
},
|
|
54104
|
+
"additionalProperties": false,
|
|
54105
|
+
"required": [
|
|
54106
|
+
"success",
|
|
54107
|
+
"listId",
|
|
54108
|
+
"numId",
|
|
54109
|
+
"restartedAt"
|
|
54110
|
+
]
|
|
54111
|
+
},
|
|
54112
|
+
"failureSchema": {
|
|
54113
|
+
"type": "object",
|
|
54114
|
+
"properties": {
|
|
54115
|
+
"success": {
|
|
54116
|
+
"const": false
|
|
54117
|
+
},
|
|
54118
|
+
"failure": {
|
|
54119
|
+
"type": "object",
|
|
54120
|
+
"properties": {
|
|
54121
|
+
"code": {
|
|
54122
|
+
"enum": [
|
|
54123
|
+
"INVALID_TARGET",
|
|
54124
|
+
"NO_OP"
|
|
54125
|
+
]
|
|
54126
|
+
},
|
|
54127
|
+
"message": {
|
|
54128
|
+
"type": "string"
|
|
54129
|
+
},
|
|
54130
|
+
"details": {}
|
|
54131
|
+
},
|
|
54132
|
+
"additionalProperties": false,
|
|
54133
|
+
"required": [
|
|
54134
|
+
"code",
|
|
54135
|
+
"message"
|
|
54136
|
+
]
|
|
54137
|
+
}
|
|
54138
|
+
},
|
|
54139
|
+
"additionalProperties": false,
|
|
54140
|
+
"required": [
|
|
54141
|
+
"success",
|
|
54142
|
+
"failure"
|
|
54143
|
+
]
|
|
54144
|
+
},
|
|
54145
|
+
"intentGroup": "list",
|
|
54146
|
+
"intentAction": "split"
|
|
54147
|
+
},
|
|
53575
54148
|
"doc.lists.setLevel": {
|
|
53576
54149
|
"operationId": "doc.lists.setLevel",
|
|
53577
54150
|
"sdkSurface": "document",
|
|
@@ -54053,7 +54626,9 @@ export const CONTRACT = {
|
|
|
54053
54626
|
"success",
|
|
54054
54627
|
"failure"
|
|
54055
54628
|
]
|
|
54056
|
-
}
|
|
54629
|
+
},
|
|
54630
|
+
"intentGroup": "list",
|
|
54631
|
+
"intentAction": "set_value"
|
|
54057
54632
|
},
|
|
54058
54633
|
"doc.lists.continuePrevious": {
|
|
54059
54634
|
"operationId": "doc.lists.continuePrevious",
|
|
@@ -54281,7 +54856,9 @@ export const CONTRACT = {
|
|
|
54281
54856
|
"success",
|
|
54282
54857
|
"failure"
|
|
54283
54858
|
]
|
|
54284
|
-
}
|
|
54859
|
+
},
|
|
54860
|
+
"intentGroup": "list",
|
|
54861
|
+
"intentAction": "continue_previous"
|
|
54285
54862
|
},
|
|
54286
54863
|
"doc.lists.canContinuePrevious": {
|
|
54287
54864
|
"operationId": "doc.lists.canContinuePrevious",
|
|
@@ -60329,37 +60906,84 @@ export const CONTRACT = {
|
|
|
60329
60906
|
"type": "json",
|
|
60330
60907
|
"flag": "target-json",
|
|
60331
60908
|
"schema": {
|
|
60332
|
-
"
|
|
60333
|
-
|
|
60334
|
-
|
|
60335
|
-
"
|
|
60336
|
-
|
|
60337
|
-
|
|
60338
|
-
|
|
60909
|
+
"oneOf": [
|
|
60910
|
+
{
|
|
60911
|
+
"type": "object",
|
|
60912
|
+
"properties": {
|
|
60913
|
+
"kind": {
|
|
60914
|
+
"const": "text"
|
|
60915
|
+
},
|
|
60916
|
+
"blockId": {
|
|
60917
|
+
"type": "string"
|
|
60918
|
+
},
|
|
60919
|
+
"range": {
|
|
60920
|
+
"type": "object",
|
|
60921
|
+
"properties": {
|
|
60922
|
+
"start": {
|
|
60923
|
+
"type": "number"
|
|
60924
|
+
},
|
|
60925
|
+
"end": {
|
|
60926
|
+
"type": "number"
|
|
60927
|
+
}
|
|
60928
|
+
},
|
|
60929
|
+
"required": [
|
|
60930
|
+
"start",
|
|
60931
|
+
"end"
|
|
60932
|
+
]
|
|
60933
|
+
}
|
|
60934
|
+
},
|
|
60935
|
+
"required": [
|
|
60936
|
+
"kind",
|
|
60937
|
+
"blockId",
|
|
60938
|
+
"range"
|
|
60939
|
+
]
|
|
60339
60940
|
},
|
|
60340
|
-
|
|
60941
|
+
{
|
|
60341
60942
|
"type": "object",
|
|
60342
60943
|
"properties": {
|
|
60343
|
-
"
|
|
60344
|
-
"
|
|
60944
|
+
"kind": {
|
|
60945
|
+
"const": "text"
|
|
60345
60946
|
},
|
|
60346
|
-
"
|
|
60347
|
-
"type": "
|
|
60947
|
+
"segments": {
|
|
60948
|
+
"type": "array",
|
|
60949
|
+
"items": {
|
|
60950
|
+
"type": "object",
|
|
60951
|
+
"properties": {
|
|
60952
|
+
"blockId": {
|
|
60953
|
+
"type": "string"
|
|
60954
|
+
},
|
|
60955
|
+
"range": {
|
|
60956
|
+
"type": "object",
|
|
60957
|
+
"properties": {
|
|
60958
|
+
"start": {
|
|
60959
|
+
"type": "number"
|
|
60960
|
+
},
|
|
60961
|
+
"end": {
|
|
60962
|
+
"type": "number"
|
|
60963
|
+
}
|
|
60964
|
+
},
|
|
60965
|
+
"required": [
|
|
60966
|
+
"start",
|
|
60967
|
+
"end"
|
|
60968
|
+
]
|
|
60969
|
+
}
|
|
60970
|
+
},
|
|
60971
|
+
"required": [
|
|
60972
|
+
"blockId",
|
|
60973
|
+
"range"
|
|
60974
|
+
]
|
|
60975
|
+
}
|
|
60348
60976
|
}
|
|
60349
60977
|
},
|
|
60350
60978
|
"required": [
|
|
60351
|
-
"
|
|
60352
|
-
"
|
|
60979
|
+
"kind",
|
|
60980
|
+
"segments"
|
|
60353
60981
|
]
|
|
60354
60982
|
}
|
|
60355
|
-
|
|
60356
|
-
"
|
|
60357
|
-
"kind",
|
|
60358
|
-
"blockId",
|
|
60359
|
-
"range"
|
|
60360
|
-
]
|
|
60983
|
+
],
|
|
60984
|
+
"description": "Text range to anchor the comment. Accepts either a single-block TextAddress {kind:'text', blockId, range} or a multi-segment TextTarget {kind:'text', segments:[{blockId, range}, ...]} for selections that span blocks."
|
|
60361
60985
|
},
|
|
60362
|
-
"description": "Text range to anchor the comment
|
|
60986
|
+
"description": "Text range to anchor the comment. Accepts either a single-block TextAddress {kind:'text', blockId, range} or a multi-segment TextTarget {kind:'text', segments:[{blockId, range}, ...]} for selections that span blocks."
|
|
60363
60987
|
},
|
|
60364
60988
|
{
|
|
60365
60989
|
"name": "parentId",
|
|
@@ -60404,8 +61028,15 @@ export const CONTRACT = {
|
|
|
60404
61028
|
"description": "Comment text content."
|
|
60405
61029
|
},
|
|
60406
61030
|
"target": {
|
|
60407
|
-
"
|
|
60408
|
-
|
|
61031
|
+
"oneOf": [
|
|
61032
|
+
{
|
|
61033
|
+
"$ref": "#/$defs/TextAddress"
|
|
61034
|
+
},
|
|
61035
|
+
{
|
|
61036
|
+
"$ref": "#/$defs/TextTarget"
|
|
61037
|
+
}
|
|
61038
|
+
],
|
|
61039
|
+
"description": "Text range to anchor the comment. Accepts either a single-block TextAddress {kind:'text', blockId, range} or a multi-segment TextTarget {kind:'text', segments:[{blockId, range}, ...]} for selections that span blocks."
|
|
60409
61040
|
},
|
|
60410
61041
|
"parentCommentId": {
|
|
60411
61042
|
"type": "string",
|
|
@@ -60611,11 +61242,14 @@ export const CONTRACT = {
|
|
|
60611
61242
|
"oneOf": [
|
|
60612
61243
|
{
|
|
60613
61244
|
"const": "resolved"
|
|
61245
|
+
},
|
|
61246
|
+
{
|
|
61247
|
+
"const": "active"
|
|
60614
61248
|
}
|
|
60615
61249
|
],
|
|
60616
|
-
"description": "Set comment status. Use 'resolved' to
|
|
61250
|
+
"description": "Set comment status. Use 'resolved' to resolve a comment, or 'active' to reopen a previously resolved comment (lifecycle inverse)."
|
|
60617
61251
|
},
|
|
60618
|
-
"description": "Set comment status. Use 'resolved' to
|
|
61252
|
+
"description": "Set comment status. Use 'resolved' to resolve a comment, or 'active' to reopen a previously resolved comment (lifecycle inverse)."
|
|
60619
61253
|
},
|
|
60620
61254
|
{
|
|
60621
61255
|
"name": "isInternal",
|
|
@@ -60667,9 +61301,10 @@ export const CONTRACT = {
|
|
|
60667
61301
|
},
|
|
60668
61302
|
"status": {
|
|
60669
61303
|
"enum": [
|
|
60670
|
-
"resolved"
|
|
61304
|
+
"resolved",
|
|
61305
|
+
"active"
|
|
60671
61306
|
],
|
|
60672
|
-
"description": "Set comment status. Use 'resolved' to
|
|
61307
|
+
"description": "Set comment status. Use 'resolved' to resolve a comment, or 'active' to reopen a previously resolved comment (lifecycle inverse)."
|
|
60673
61308
|
},
|
|
60674
61309
|
"isInternal": {
|
|
60675
61310
|
"type": "boolean",
|
|
@@ -63495,6 +64130,102 @@ export const CONTRACT = {
|
|
|
63495
64130
|
]
|
|
63496
64131
|
}
|
|
63497
64132
|
},
|
|
64133
|
+
"doc.selection.current": {
|
|
64134
|
+
"operationId": "doc.selection.current",
|
|
64135
|
+
"sdkSurface": "document",
|
|
64136
|
+
"command": "selection current",
|
|
64137
|
+
"commandTokens": [
|
|
64138
|
+
"selection",
|
|
64139
|
+
"current"
|
|
64140
|
+
],
|
|
64141
|
+
"category": "core",
|
|
64142
|
+
"description": "Read the editor's current selection as a portable SelectionInfo with a text-anchored TextTarget. Primitive for building custom comments UIs, floating toolbars, and other selection-driven components without reaching into ProseMirror internals.",
|
|
64143
|
+
"requiresDocumentContext": true,
|
|
64144
|
+
"docRequirement": "optional",
|
|
64145
|
+
"responseEnvelopeKey": null,
|
|
64146
|
+
"params": [
|
|
64147
|
+
{
|
|
64148
|
+
"name": "doc",
|
|
64149
|
+
"kind": "doc",
|
|
64150
|
+
"type": "string",
|
|
64151
|
+
"description": "Document path. Optional when a session is already open."
|
|
64152
|
+
},
|
|
64153
|
+
{
|
|
64154
|
+
"name": "sessionId",
|
|
64155
|
+
"kind": "flag",
|
|
64156
|
+
"type": "string",
|
|
64157
|
+
"flag": "session",
|
|
64158
|
+
"description": "Session ID for multi-session workflows. Optional when only one session is open."
|
|
64159
|
+
},
|
|
64160
|
+
{
|
|
64161
|
+
"name": "includeText",
|
|
64162
|
+
"kind": "flag",
|
|
64163
|
+
"type": "boolean",
|
|
64164
|
+
"flag": "include-text"
|
|
64165
|
+
}
|
|
64166
|
+
],
|
|
64167
|
+
"constraints": null,
|
|
64168
|
+
"mutates": false,
|
|
64169
|
+
"idempotency": "idempotent",
|
|
64170
|
+
"supportsTrackedMode": false,
|
|
64171
|
+
"supportsDryRun": false,
|
|
64172
|
+
"inputSchema": {
|
|
64173
|
+
"type": "object",
|
|
64174
|
+
"properties": {
|
|
64175
|
+
"includeText": {
|
|
64176
|
+
"type": "boolean"
|
|
64177
|
+
}
|
|
64178
|
+
},
|
|
64179
|
+
"additionalProperties": false
|
|
64180
|
+
},
|
|
64181
|
+
"outputSchema": {
|
|
64182
|
+
"type": "object",
|
|
64183
|
+
"properties": {
|
|
64184
|
+
"empty": {
|
|
64185
|
+
"type": "boolean"
|
|
64186
|
+
},
|
|
64187
|
+
"target": {
|
|
64188
|
+
"oneOf": [
|
|
64189
|
+
{
|
|
64190
|
+
"$ref": "#/$defs/TextTarget"
|
|
64191
|
+
},
|
|
64192
|
+
{
|
|
64193
|
+
"type": "null"
|
|
64194
|
+
}
|
|
64195
|
+
]
|
|
64196
|
+
},
|
|
64197
|
+
"activeMarks": {
|
|
64198
|
+
"type": "array",
|
|
64199
|
+
"items": {
|
|
64200
|
+
"type": "string"
|
|
64201
|
+
}
|
|
64202
|
+
},
|
|
64203
|
+
"activeCommentIds": {
|
|
64204
|
+
"type": "array",
|
|
64205
|
+
"items": {
|
|
64206
|
+
"type": "string"
|
|
64207
|
+
}
|
|
64208
|
+
},
|
|
64209
|
+
"activeChangeIds": {
|
|
64210
|
+
"type": "array",
|
|
64211
|
+
"items": {
|
|
64212
|
+
"type": "string"
|
|
64213
|
+
}
|
|
64214
|
+
},
|
|
64215
|
+
"text": {
|
|
64216
|
+
"type": "string"
|
|
64217
|
+
}
|
|
64218
|
+
},
|
|
64219
|
+
"additionalProperties": false,
|
|
64220
|
+
"required": [
|
|
64221
|
+
"empty",
|
|
64222
|
+
"target",
|
|
64223
|
+
"activeMarks",
|
|
64224
|
+
"activeCommentIds",
|
|
64225
|
+
"activeChangeIds"
|
|
64226
|
+
]
|
|
64227
|
+
}
|
|
64228
|
+
},
|
|
63498
64229
|
"doc.mutations.preview": {
|
|
63499
64230
|
"operationId": "doc.mutations.preview",
|
|
63500
64231
|
"sdkSurface": "document",
|
|
@@ -80772,6 +81503,76 @@ export const CONTRACT = {
|
|
|
80772
81503
|
"dryRun"
|
|
80773
81504
|
]
|
|
80774
81505
|
},
|
|
81506
|
+
"lists.merge": {
|
|
81507
|
+
"type": "object",
|
|
81508
|
+
"properties": {
|
|
81509
|
+
"available": {
|
|
81510
|
+
"type": "boolean"
|
|
81511
|
+
},
|
|
81512
|
+
"tracked": {
|
|
81513
|
+
"type": "boolean"
|
|
81514
|
+
},
|
|
81515
|
+
"dryRun": {
|
|
81516
|
+
"type": "boolean"
|
|
81517
|
+
},
|
|
81518
|
+
"reasons": {
|
|
81519
|
+
"type": "array",
|
|
81520
|
+
"items": {
|
|
81521
|
+
"enum": [
|
|
81522
|
+
"COMMAND_UNAVAILABLE",
|
|
81523
|
+
"HELPER_UNAVAILABLE",
|
|
81524
|
+
"OPERATION_UNAVAILABLE",
|
|
81525
|
+
"TRACKED_MODE_UNAVAILABLE",
|
|
81526
|
+
"DRY_RUN_UNAVAILABLE",
|
|
81527
|
+
"NAMESPACE_UNAVAILABLE",
|
|
81528
|
+
"STYLES_PART_MISSING",
|
|
81529
|
+
"COLLABORATION_ACTIVE"
|
|
81530
|
+
]
|
|
81531
|
+
}
|
|
81532
|
+
}
|
|
81533
|
+
},
|
|
81534
|
+
"additionalProperties": false,
|
|
81535
|
+
"required": [
|
|
81536
|
+
"available",
|
|
81537
|
+
"tracked",
|
|
81538
|
+
"dryRun"
|
|
81539
|
+
]
|
|
81540
|
+
},
|
|
81541
|
+
"lists.split": {
|
|
81542
|
+
"type": "object",
|
|
81543
|
+
"properties": {
|
|
81544
|
+
"available": {
|
|
81545
|
+
"type": "boolean"
|
|
81546
|
+
},
|
|
81547
|
+
"tracked": {
|
|
81548
|
+
"type": "boolean"
|
|
81549
|
+
},
|
|
81550
|
+
"dryRun": {
|
|
81551
|
+
"type": "boolean"
|
|
81552
|
+
},
|
|
81553
|
+
"reasons": {
|
|
81554
|
+
"type": "array",
|
|
81555
|
+
"items": {
|
|
81556
|
+
"enum": [
|
|
81557
|
+
"COMMAND_UNAVAILABLE",
|
|
81558
|
+
"HELPER_UNAVAILABLE",
|
|
81559
|
+
"OPERATION_UNAVAILABLE",
|
|
81560
|
+
"TRACKED_MODE_UNAVAILABLE",
|
|
81561
|
+
"DRY_RUN_UNAVAILABLE",
|
|
81562
|
+
"NAMESPACE_UNAVAILABLE",
|
|
81563
|
+
"STYLES_PART_MISSING",
|
|
81564
|
+
"COLLABORATION_ACTIVE"
|
|
81565
|
+
]
|
|
81566
|
+
}
|
|
81567
|
+
}
|
|
81568
|
+
},
|
|
81569
|
+
"additionalProperties": false,
|
|
81570
|
+
"required": [
|
|
81571
|
+
"available",
|
|
81572
|
+
"tracked",
|
|
81573
|
+
"dryRun"
|
|
81574
|
+
]
|
|
81575
|
+
},
|
|
80775
81576
|
"lists.setLevel": {
|
|
80776
81577
|
"type": "object",
|
|
80777
81578
|
"properties": {
|
|
@@ -81997,6 +82798,41 @@ export const CONTRACT = {
|
|
|
81997
82798
|
"dryRun"
|
|
81998
82799
|
]
|
|
81999
82800
|
},
|
|
82801
|
+
"selection.current": {
|
|
82802
|
+
"type": "object",
|
|
82803
|
+
"properties": {
|
|
82804
|
+
"available": {
|
|
82805
|
+
"type": "boolean"
|
|
82806
|
+
},
|
|
82807
|
+
"tracked": {
|
|
82808
|
+
"type": "boolean"
|
|
82809
|
+
},
|
|
82810
|
+
"dryRun": {
|
|
82811
|
+
"type": "boolean"
|
|
82812
|
+
},
|
|
82813
|
+
"reasons": {
|
|
82814
|
+
"type": "array",
|
|
82815
|
+
"items": {
|
|
82816
|
+
"enum": [
|
|
82817
|
+
"COMMAND_UNAVAILABLE",
|
|
82818
|
+
"HELPER_UNAVAILABLE",
|
|
82819
|
+
"OPERATION_UNAVAILABLE",
|
|
82820
|
+
"TRACKED_MODE_UNAVAILABLE",
|
|
82821
|
+
"DRY_RUN_UNAVAILABLE",
|
|
82822
|
+
"NAMESPACE_UNAVAILABLE",
|
|
82823
|
+
"STYLES_PART_MISSING",
|
|
82824
|
+
"COLLABORATION_ACTIVE"
|
|
82825
|
+
]
|
|
82826
|
+
}
|
|
82827
|
+
}
|
|
82828
|
+
},
|
|
82829
|
+
"additionalProperties": false,
|
|
82830
|
+
"required": [
|
|
82831
|
+
"available",
|
|
82832
|
+
"tracked",
|
|
82833
|
+
"dryRun"
|
|
82834
|
+
]
|
|
82835
|
+
},
|
|
82000
82836
|
"mutations.preview": {
|
|
82001
82837
|
"type": "object",
|
|
82002
82838
|
"properties": {
|
|
@@ -90375,6 +91211,8 @@ export const CONTRACT = {
|
|
|
90375
91211
|
"lists.join",
|
|
90376
91212
|
"lists.canJoin",
|
|
90377
91213
|
"lists.separate",
|
|
91214
|
+
"lists.merge",
|
|
91215
|
+
"lists.split",
|
|
90378
91216
|
"lists.setLevel",
|
|
90379
91217
|
"lists.setValue",
|
|
90380
91218
|
"lists.continuePrevious",
|
|
@@ -90410,6 +91248,7 @@ export const CONTRACT = {
|
|
|
90410
91248
|
"trackChanges.decide",
|
|
90411
91249
|
"query.match",
|
|
90412
91250
|
"ranges.resolve",
|
|
91251
|
+
"selection.current",
|
|
90413
91252
|
"mutations.preview",
|
|
90414
91253
|
"mutations.apply",
|
|
90415
91254
|
"capabilities.get",
|