@superdoc-dev/sdk 1.8.0-next.1 → 1.8.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/generated/client.cjs +10 -0
- package/dist/generated/client.d.ts +154 -4
- package/dist/generated/client.d.ts.map +1 -1
- package/dist/generated/client.js +10 -0
- package/dist/generated/contract.cjs +854 -33
- package/dist/generated/contract.d.ts.map +1 -1
- package/dist/generated/contract.js +854 -33
- 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 +153 -25
- 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 +115 -25
- package/tools/tools.generic.json +121 -26
- package/tools/tools.openai.json +115 -25
- package/tools/tools.vercel.json +115 -25
|
@@ -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",
|
|
@@ -63495,6 +64126,88 @@ export const CONTRACT = {
|
|
|
63495
64126
|
]
|
|
63496
64127
|
}
|
|
63497
64128
|
},
|
|
64129
|
+
"doc.selection.current": {
|
|
64130
|
+
"operationId": "doc.selection.current",
|
|
64131
|
+
"sdkSurface": "document",
|
|
64132
|
+
"command": "selection current",
|
|
64133
|
+
"commandTokens": [
|
|
64134
|
+
"selection",
|
|
64135
|
+
"current"
|
|
64136
|
+
],
|
|
64137
|
+
"category": "core",
|
|
64138
|
+
"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.",
|
|
64139
|
+
"requiresDocumentContext": true,
|
|
64140
|
+
"docRequirement": "optional",
|
|
64141
|
+
"responseEnvelopeKey": null,
|
|
64142
|
+
"params": [
|
|
64143
|
+
{
|
|
64144
|
+
"name": "doc",
|
|
64145
|
+
"kind": "doc",
|
|
64146
|
+
"type": "string",
|
|
64147
|
+
"description": "Document path. Optional when a session is already open."
|
|
64148
|
+
},
|
|
64149
|
+
{
|
|
64150
|
+
"name": "sessionId",
|
|
64151
|
+
"kind": "flag",
|
|
64152
|
+
"type": "string",
|
|
64153
|
+
"flag": "session",
|
|
64154
|
+
"description": "Session ID for multi-session workflows. Optional when only one session is open."
|
|
64155
|
+
},
|
|
64156
|
+
{
|
|
64157
|
+
"name": "includeText",
|
|
64158
|
+
"kind": "flag",
|
|
64159
|
+
"type": "boolean",
|
|
64160
|
+
"flag": "include-text"
|
|
64161
|
+
}
|
|
64162
|
+
],
|
|
64163
|
+
"constraints": null,
|
|
64164
|
+
"mutates": false,
|
|
64165
|
+
"idempotency": "idempotent",
|
|
64166
|
+
"supportsTrackedMode": false,
|
|
64167
|
+
"supportsDryRun": false,
|
|
64168
|
+
"inputSchema": {
|
|
64169
|
+
"type": "object",
|
|
64170
|
+
"properties": {
|
|
64171
|
+
"includeText": {
|
|
64172
|
+
"type": "boolean"
|
|
64173
|
+
}
|
|
64174
|
+
},
|
|
64175
|
+
"additionalProperties": false
|
|
64176
|
+
},
|
|
64177
|
+
"outputSchema": {
|
|
64178
|
+
"type": "object",
|
|
64179
|
+
"properties": {
|
|
64180
|
+
"empty": {
|
|
64181
|
+
"type": "boolean"
|
|
64182
|
+
},
|
|
64183
|
+
"target": {
|
|
64184
|
+
"oneOf": [
|
|
64185
|
+
{
|
|
64186
|
+
"$ref": "#/$defs/TextTarget"
|
|
64187
|
+
},
|
|
64188
|
+
{
|
|
64189
|
+
"type": "null"
|
|
64190
|
+
}
|
|
64191
|
+
]
|
|
64192
|
+
},
|
|
64193
|
+
"activeMarks": {
|
|
64194
|
+
"type": "array",
|
|
64195
|
+
"items": {
|
|
64196
|
+
"type": "string"
|
|
64197
|
+
}
|
|
64198
|
+
},
|
|
64199
|
+
"text": {
|
|
64200
|
+
"type": "string"
|
|
64201
|
+
}
|
|
64202
|
+
},
|
|
64203
|
+
"additionalProperties": false,
|
|
64204
|
+
"required": [
|
|
64205
|
+
"empty",
|
|
64206
|
+
"target",
|
|
64207
|
+
"activeMarks"
|
|
64208
|
+
]
|
|
64209
|
+
}
|
|
64210
|
+
},
|
|
63498
64211
|
"doc.mutations.preview": {
|
|
63499
64212
|
"operationId": "doc.mutations.preview",
|
|
63500
64213
|
"sdkSurface": "document",
|
|
@@ -80772,6 +81485,76 @@ export const CONTRACT = {
|
|
|
80772
81485
|
"dryRun"
|
|
80773
81486
|
]
|
|
80774
81487
|
},
|
|
81488
|
+
"lists.merge": {
|
|
81489
|
+
"type": "object",
|
|
81490
|
+
"properties": {
|
|
81491
|
+
"available": {
|
|
81492
|
+
"type": "boolean"
|
|
81493
|
+
},
|
|
81494
|
+
"tracked": {
|
|
81495
|
+
"type": "boolean"
|
|
81496
|
+
},
|
|
81497
|
+
"dryRun": {
|
|
81498
|
+
"type": "boolean"
|
|
81499
|
+
},
|
|
81500
|
+
"reasons": {
|
|
81501
|
+
"type": "array",
|
|
81502
|
+
"items": {
|
|
81503
|
+
"enum": [
|
|
81504
|
+
"COMMAND_UNAVAILABLE",
|
|
81505
|
+
"HELPER_UNAVAILABLE",
|
|
81506
|
+
"OPERATION_UNAVAILABLE",
|
|
81507
|
+
"TRACKED_MODE_UNAVAILABLE",
|
|
81508
|
+
"DRY_RUN_UNAVAILABLE",
|
|
81509
|
+
"NAMESPACE_UNAVAILABLE",
|
|
81510
|
+
"STYLES_PART_MISSING",
|
|
81511
|
+
"COLLABORATION_ACTIVE"
|
|
81512
|
+
]
|
|
81513
|
+
}
|
|
81514
|
+
}
|
|
81515
|
+
},
|
|
81516
|
+
"additionalProperties": false,
|
|
81517
|
+
"required": [
|
|
81518
|
+
"available",
|
|
81519
|
+
"tracked",
|
|
81520
|
+
"dryRun"
|
|
81521
|
+
]
|
|
81522
|
+
},
|
|
81523
|
+
"lists.split": {
|
|
81524
|
+
"type": "object",
|
|
81525
|
+
"properties": {
|
|
81526
|
+
"available": {
|
|
81527
|
+
"type": "boolean"
|
|
81528
|
+
},
|
|
81529
|
+
"tracked": {
|
|
81530
|
+
"type": "boolean"
|
|
81531
|
+
},
|
|
81532
|
+
"dryRun": {
|
|
81533
|
+
"type": "boolean"
|
|
81534
|
+
},
|
|
81535
|
+
"reasons": {
|
|
81536
|
+
"type": "array",
|
|
81537
|
+
"items": {
|
|
81538
|
+
"enum": [
|
|
81539
|
+
"COMMAND_UNAVAILABLE",
|
|
81540
|
+
"HELPER_UNAVAILABLE",
|
|
81541
|
+
"OPERATION_UNAVAILABLE",
|
|
81542
|
+
"TRACKED_MODE_UNAVAILABLE",
|
|
81543
|
+
"DRY_RUN_UNAVAILABLE",
|
|
81544
|
+
"NAMESPACE_UNAVAILABLE",
|
|
81545
|
+
"STYLES_PART_MISSING",
|
|
81546
|
+
"COLLABORATION_ACTIVE"
|
|
81547
|
+
]
|
|
81548
|
+
}
|
|
81549
|
+
}
|
|
81550
|
+
},
|
|
81551
|
+
"additionalProperties": false,
|
|
81552
|
+
"required": [
|
|
81553
|
+
"available",
|
|
81554
|
+
"tracked",
|
|
81555
|
+
"dryRun"
|
|
81556
|
+
]
|
|
81557
|
+
},
|
|
80775
81558
|
"lists.setLevel": {
|
|
80776
81559
|
"type": "object",
|
|
80777
81560
|
"properties": {
|
|
@@ -81997,6 +82780,41 @@ export const CONTRACT = {
|
|
|
81997
82780
|
"dryRun"
|
|
81998
82781
|
]
|
|
81999
82782
|
},
|
|
82783
|
+
"selection.current": {
|
|
82784
|
+
"type": "object",
|
|
82785
|
+
"properties": {
|
|
82786
|
+
"available": {
|
|
82787
|
+
"type": "boolean"
|
|
82788
|
+
},
|
|
82789
|
+
"tracked": {
|
|
82790
|
+
"type": "boolean"
|
|
82791
|
+
},
|
|
82792
|
+
"dryRun": {
|
|
82793
|
+
"type": "boolean"
|
|
82794
|
+
},
|
|
82795
|
+
"reasons": {
|
|
82796
|
+
"type": "array",
|
|
82797
|
+
"items": {
|
|
82798
|
+
"enum": [
|
|
82799
|
+
"COMMAND_UNAVAILABLE",
|
|
82800
|
+
"HELPER_UNAVAILABLE",
|
|
82801
|
+
"OPERATION_UNAVAILABLE",
|
|
82802
|
+
"TRACKED_MODE_UNAVAILABLE",
|
|
82803
|
+
"DRY_RUN_UNAVAILABLE",
|
|
82804
|
+
"NAMESPACE_UNAVAILABLE",
|
|
82805
|
+
"STYLES_PART_MISSING",
|
|
82806
|
+
"COLLABORATION_ACTIVE"
|
|
82807
|
+
]
|
|
82808
|
+
}
|
|
82809
|
+
}
|
|
82810
|
+
},
|
|
82811
|
+
"additionalProperties": false,
|
|
82812
|
+
"required": [
|
|
82813
|
+
"available",
|
|
82814
|
+
"tracked",
|
|
82815
|
+
"dryRun"
|
|
82816
|
+
]
|
|
82817
|
+
},
|
|
82000
82818
|
"mutations.preview": {
|
|
82001
82819
|
"type": "object",
|
|
82002
82820
|
"properties": {
|
|
@@ -90375,6 +91193,8 @@ export const CONTRACT = {
|
|
|
90375
91193
|
"lists.join",
|
|
90376
91194
|
"lists.canJoin",
|
|
90377
91195
|
"lists.separate",
|
|
91196
|
+
"lists.merge",
|
|
91197
|
+
"lists.split",
|
|
90378
91198
|
"lists.setLevel",
|
|
90379
91199
|
"lists.setValue",
|
|
90380
91200
|
"lists.continuePrevious",
|
|
@@ -90410,6 +91230,7 @@ export const CONTRACT = {
|
|
|
90410
91230
|
"trackChanges.decide",
|
|
90411
91231
|
"query.match",
|
|
90412
91232
|
"ranges.resolve",
|
|
91233
|
+
"selection.current",
|
|
90413
91234
|
"mutations.preview",
|
|
90414
91235
|
"mutations.apply",
|
|
90415
91236
|
"capabilities.get",
|
|
@@ -107521,7 +108342,7 @@ export const CONTRACT = {
|
|
|
107521
108342
|
"get"
|
|
107522
108343
|
],
|
|
107523
108344
|
"category": "history",
|
|
107524
|
-
"description": "Query the current undo/redo history state of the
|
|
108345
|
+
"description": "Query the current undo/redo history state of the document.",
|
|
107525
108346
|
"requiresDocumentContext": true,
|
|
107526
108347
|
"docRequirement": "optional",
|
|
107527
108348
|
"responseEnvelopeKey": "result",
|
|
@@ -107593,7 +108414,7 @@ export const CONTRACT = {
|
|
|
107593
108414
|
"undo"
|
|
107594
108415
|
],
|
|
107595
108416
|
"category": "history",
|
|
107596
|
-
"description": "Undo the most recent history-safe mutation in the
|
|
108417
|
+
"description": "Undo the most recent history-safe mutation in the document.",
|
|
107597
108418
|
"requiresDocumentContext": true,
|
|
107598
108419
|
"docRequirement": "optional",
|
|
107599
108420
|
"responseEnvelopeKey": "result",
|
|
@@ -107756,7 +108577,7 @@ export const CONTRACT = {
|
|
|
107756
108577
|
"redo"
|
|
107757
108578
|
],
|
|
107758
108579
|
"category": "history",
|
|
107759
|
-
"description": "Redo the most recently undone action in the
|
|
108580
|
+
"description": "Redo the most recently undone action in the document.",
|
|
107760
108581
|
"requiresDocumentContext": true,
|
|
107761
108582
|
"docRequirement": "optional",
|
|
107762
108583
|
"responseEnvelopeKey": "result",
|