@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
|
@@ -2062,9 +2062,52 @@ const CONTRACT = {
|
|
|
2062
2062
|
"type": "string",
|
|
2063
2063
|
"description": "Full plain text content of the block."
|
|
2064
2064
|
},
|
|
2065
|
+
"textSpans": {
|
|
2066
|
+
"type": "array",
|
|
2067
|
+
"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`.",
|
|
2068
|
+
"items": {
|
|
2069
|
+
"type": "object",
|
|
2070
|
+
"properties": {
|
|
2071
|
+
"text": {
|
|
2072
|
+
"type": "string",
|
|
2073
|
+
"description": "Raw text of the run."
|
|
2074
|
+
},
|
|
2075
|
+
"trackedChanges": {
|
|
2076
|
+
"type": "array",
|
|
2077
|
+
"description": "Tracked-change marks applied to this run.",
|
|
2078
|
+
"items": {
|
|
2079
|
+
"type": "object",
|
|
2080
|
+
"properties": {
|
|
2081
|
+
"entityId": {
|
|
2082
|
+
"type": "string",
|
|
2083
|
+
"description": "Tracked change entity ID matching an entry in trackedChanges[]."
|
|
2084
|
+
},
|
|
2085
|
+
"type": {
|
|
2086
|
+
"type": "string",
|
|
2087
|
+
"enum": [
|
|
2088
|
+
"insert",
|
|
2089
|
+
"delete",
|
|
2090
|
+
"format"
|
|
2091
|
+
]
|
|
2092
|
+
}
|
|
2093
|
+
},
|
|
2094
|
+
"additionalProperties": false,
|
|
2095
|
+
"required": [
|
|
2096
|
+
"entityId",
|
|
2097
|
+
"type"
|
|
2098
|
+
]
|
|
2099
|
+
}
|
|
2100
|
+
}
|
|
2101
|
+
},
|
|
2102
|
+
"additionalProperties": false,
|
|
2103
|
+
"required": [
|
|
2104
|
+
"text"
|
|
2105
|
+
]
|
|
2106
|
+
}
|
|
2107
|
+
},
|
|
2065
2108
|
"headingLevel": {
|
|
2066
2109
|
"type": "integer",
|
|
2067
|
-
"description": "Heading level (1
|
|
2110
|
+
"description": "Heading level (1-6). Only present for headings."
|
|
2068
2111
|
},
|
|
2069
2112
|
"tableContext": {
|
|
2070
2113
|
"type": "object",
|
|
@@ -2167,7 +2210,7 @@ const CONTRACT = {
|
|
|
2167
2210
|
"properties": {
|
|
2168
2211
|
"entityId": {
|
|
2169
2212
|
"type": "string",
|
|
2170
|
-
"description": "Tracked change entity ID
|
|
2213
|
+
"description": "Tracked change entity ID. Pass to scrollToElement() for navigation."
|
|
2171
2214
|
},
|
|
2172
2215
|
"type": {
|
|
2173
2216
|
"type": "string",
|
|
@@ -2175,11 +2218,37 @@ const CONTRACT = {
|
|
|
2175
2218
|
"insert",
|
|
2176
2219
|
"delete",
|
|
2177
2220
|
"format"
|
|
2178
|
-
]
|
|
2221
|
+
],
|
|
2222
|
+
"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[]."
|
|
2223
|
+
},
|
|
2224
|
+
"blockIds": {
|
|
2225
|
+
"type": "array",
|
|
2226
|
+
"description": "Block IDs whose textSpans carry this change.",
|
|
2227
|
+
"items": {
|
|
2228
|
+
"type": "string"
|
|
2229
|
+
}
|
|
2230
|
+
},
|
|
2231
|
+
"wordRevisionIds": {
|
|
2232
|
+
"type": "object",
|
|
2233
|
+
"properties": {
|
|
2234
|
+
"insert": {
|
|
2235
|
+
"type": "string",
|
|
2236
|
+
"description": "Original OOXML w:id from a w:ins mark."
|
|
2237
|
+
},
|
|
2238
|
+
"delete": {
|
|
2239
|
+
"type": "string",
|
|
2240
|
+
"description": "Original OOXML w:id from a w:del mark."
|
|
2241
|
+
},
|
|
2242
|
+
"format": {
|
|
2243
|
+
"type": "string",
|
|
2244
|
+
"description": "Original OOXML w:id from a w:rPrChange mark."
|
|
2245
|
+
}
|
|
2246
|
+
},
|
|
2247
|
+
"additionalProperties": false
|
|
2179
2248
|
},
|
|
2180
2249
|
"excerpt": {
|
|
2181
2250
|
"type": "string",
|
|
2182
|
-
"description": "Short text excerpt of the changed content."
|
|
2251
|
+
"description": "Short text excerpt of the changed content. Omitted for paired replacements; read block.textSpans for the per-half text."
|
|
2183
2252
|
},
|
|
2184
2253
|
"author": {
|
|
2185
2254
|
"type": "string",
|
|
@@ -51156,7 +51225,9 @@ const CONTRACT = {
|
|
|
51156
51225
|
"success",
|
|
51157
51226
|
"failure"
|
|
51158
51227
|
]
|
|
51159
|
-
}
|
|
51228
|
+
},
|
|
51229
|
+
"intentGroup": "list",
|
|
51230
|
+
"intentAction": "attach"
|
|
51160
51231
|
},
|
|
51161
51232
|
"doc.lists.detach": {
|
|
51162
51233
|
"operationId": "doc.lists.detach",
|
|
@@ -52454,6 +52525,508 @@ const CONTRACT = {
|
|
|
52454
52525
|
]
|
|
52455
52526
|
}
|
|
52456
52527
|
},
|
|
52528
|
+
"doc.lists.merge": {
|
|
52529
|
+
"operationId": "doc.lists.merge",
|
|
52530
|
+
"sdkSurface": "document",
|
|
52531
|
+
"command": "lists merge",
|
|
52532
|
+
"commandTokens": [
|
|
52533
|
+
"lists",
|
|
52534
|
+
"merge"
|
|
52535
|
+
],
|
|
52536
|
+
"category": "lists",
|
|
52537
|
+
"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.",
|
|
52538
|
+
"requiresDocumentContext": true,
|
|
52539
|
+
"docRequirement": "optional",
|
|
52540
|
+
"responseEnvelopeKey": null,
|
|
52541
|
+
"params": [
|
|
52542
|
+
{
|
|
52543
|
+
"name": "doc",
|
|
52544
|
+
"kind": "doc",
|
|
52545
|
+
"type": "string",
|
|
52546
|
+
"description": "Document path. Optional when a session is already open."
|
|
52547
|
+
},
|
|
52548
|
+
{
|
|
52549
|
+
"name": "sessionId",
|
|
52550
|
+
"kind": "flag",
|
|
52551
|
+
"type": "string",
|
|
52552
|
+
"flag": "session",
|
|
52553
|
+
"description": "Session ID for multi-session workflows. Optional when only one session is open."
|
|
52554
|
+
},
|
|
52555
|
+
{
|
|
52556
|
+
"name": "out",
|
|
52557
|
+
"kind": "flag",
|
|
52558
|
+
"type": "string",
|
|
52559
|
+
"agentVisible": false
|
|
52560
|
+
},
|
|
52561
|
+
{
|
|
52562
|
+
"name": "force",
|
|
52563
|
+
"kind": "flag",
|
|
52564
|
+
"type": "boolean",
|
|
52565
|
+
"description": "Bypass confirmation checks."
|
|
52566
|
+
},
|
|
52567
|
+
{
|
|
52568
|
+
"name": "expectedRevision",
|
|
52569
|
+
"kind": "flag",
|
|
52570
|
+
"type": "number",
|
|
52571
|
+
"flag": "expected-revision",
|
|
52572
|
+
"agentVisible": false
|
|
52573
|
+
},
|
|
52574
|
+
{
|
|
52575
|
+
"name": "changeMode",
|
|
52576
|
+
"kind": "flag",
|
|
52577
|
+
"type": "string",
|
|
52578
|
+
"flag": "change-mode",
|
|
52579
|
+
"schema": {
|
|
52580
|
+
"enum": [
|
|
52581
|
+
"direct",
|
|
52582
|
+
"tracked"
|
|
52583
|
+
]
|
|
52584
|
+
},
|
|
52585
|
+
"description": "Edit mode: \"direct\" applies changes immediately, \"tracked\" records as suggestions."
|
|
52586
|
+
},
|
|
52587
|
+
{
|
|
52588
|
+
"name": "dryRun",
|
|
52589
|
+
"kind": "flag",
|
|
52590
|
+
"type": "boolean",
|
|
52591
|
+
"flag": "dry-run",
|
|
52592
|
+
"description": "Preview the result without applying changes."
|
|
52593
|
+
},
|
|
52594
|
+
{
|
|
52595
|
+
"name": "target",
|
|
52596
|
+
"kind": "jsonFlag",
|
|
52597
|
+
"type": "json",
|
|
52598
|
+
"flag": "target-json",
|
|
52599
|
+
"required": true,
|
|
52600
|
+
"schema": {
|
|
52601
|
+
"type": "object",
|
|
52602
|
+
"properties": {
|
|
52603
|
+
"kind": {
|
|
52604
|
+
"const": "block"
|
|
52605
|
+
},
|
|
52606
|
+
"nodeType": {
|
|
52607
|
+
"const": "listItem"
|
|
52608
|
+
},
|
|
52609
|
+
"nodeId": {
|
|
52610
|
+
"type": "string"
|
|
52611
|
+
}
|
|
52612
|
+
},
|
|
52613
|
+
"required": [
|
|
52614
|
+
"kind",
|
|
52615
|
+
"nodeType",
|
|
52616
|
+
"nodeId"
|
|
52617
|
+
]
|
|
52618
|
+
}
|
|
52619
|
+
},
|
|
52620
|
+
{
|
|
52621
|
+
"name": "direction",
|
|
52622
|
+
"kind": "flag",
|
|
52623
|
+
"type": "string",
|
|
52624
|
+
"required": true,
|
|
52625
|
+
"schema": {
|
|
52626
|
+
"oneOf": [
|
|
52627
|
+
{
|
|
52628
|
+
"const": "withPrevious"
|
|
52629
|
+
},
|
|
52630
|
+
{
|
|
52631
|
+
"const": "withNext"
|
|
52632
|
+
}
|
|
52633
|
+
]
|
|
52634
|
+
}
|
|
52635
|
+
}
|
|
52636
|
+
],
|
|
52637
|
+
"constraints": null,
|
|
52638
|
+
"mutates": true,
|
|
52639
|
+
"idempotency": "conditional",
|
|
52640
|
+
"supportsTrackedMode": false,
|
|
52641
|
+
"supportsDryRun": true,
|
|
52642
|
+
"inputSchema": {
|
|
52643
|
+
"type": "object",
|
|
52644
|
+
"properties": {
|
|
52645
|
+
"target": {
|
|
52646
|
+
"$ref": "#/$defs/ListItemAddress"
|
|
52647
|
+
},
|
|
52648
|
+
"direction": {
|
|
52649
|
+
"enum": [
|
|
52650
|
+
"withPrevious",
|
|
52651
|
+
"withNext"
|
|
52652
|
+
]
|
|
52653
|
+
}
|
|
52654
|
+
},
|
|
52655
|
+
"additionalProperties": false,
|
|
52656
|
+
"required": [
|
|
52657
|
+
"target",
|
|
52658
|
+
"direction"
|
|
52659
|
+
]
|
|
52660
|
+
},
|
|
52661
|
+
"outputSchema": {
|
|
52662
|
+
"oneOf": [
|
|
52663
|
+
{
|
|
52664
|
+
"type": "object",
|
|
52665
|
+
"properties": {
|
|
52666
|
+
"success": {
|
|
52667
|
+
"const": true
|
|
52668
|
+
},
|
|
52669
|
+
"listId": {
|
|
52670
|
+
"type": "string"
|
|
52671
|
+
},
|
|
52672
|
+
"absorbedCount": {
|
|
52673
|
+
"type": "integer"
|
|
52674
|
+
},
|
|
52675
|
+
"removedEmptyBlocks": {
|
|
52676
|
+
"type": "integer"
|
|
52677
|
+
}
|
|
52678
|
+
},
|
|
52679
|
+
"additionalProperties": false,
|
|
52680
|
+
"required": [
|
|
52681
|
+
"success",
|
|
52682
|
+
"listId",
|
|
52683
|
+
"absorbedCount",
|
|
52684
|
+
"removedEmptyBlocks"
|
|
52685
|
+
]
|
|
52686
|
+
},
|
|
52687
|
+
{
|
|
52688
|
+
"type": "object",
|
|
52689
|
+
"properties": {
|
|
52690
|
+
"success": {
|
|
52691
|
+
"const": false
|
|
52692
|
+
},
|
|
52693
|
+
"failure": {
|
|
52694
|
+
"type": "object",
|
|
52695
|
+
"properties": {
|
|
52696
|
+
"code": {
|
|
52697
|
+
"enum": [
|
|
52698
|
+
"INVALID_TARGET",
|
|
52699
|
+
"NO_ADJACENT_SEQUENCE",
|
|
52700
|
+
"NO_OP"
|
|
52701
|
+
]
|
|
52702
|
+
},
|
|
52703
|
+
"message": {
|
|
52704
|
+
"type": "string"
|
|
52705
|
+
},
|
|
52706
|
+
"details": {}
|
|
52707
|
+
},
|
|
52708
|
+
"additionalProperties": false,
|
|
52709
|
+
"required": [
|
|
52710
|
+
"code",
|
|
52711
|
+
"message"
|
|
52712
|
+
]
|
|
52713
|
+
}
|
|
52714
|
+
},
|
|
52715
|
+
"additionalProperties": false,
|
|
52716
|
+
"required": [
|
|
52717
|
+
"success",
|
|
52718
|
+
"failure"
|
|
52719
|
+
]
|
|
52720
|
+
}
|
|
52721
|
+
]
|
|
52722
|
+
},
|
|
52723
|
+
"successSchema": {
|
|
52724
|
+
"type": "object",
|
|
52725
|
+
"properties": {
|
|
52726
|
+
"success": {
|
|
52727
|
+
"const": true
|
|
52728
|
+
},
|
|
52729
|
+
"listId": {
|
|
52730
|
+
"type": "string"
|
|
52731
|
+
},
|
|
52732
|
+
"absorbedCount": {
|
|
52733
|
+
"type": "integer"
|
|
52734
|
+
},
|
|
52735
|
+
"removedEmptyBlocks": {
|
|
52736
|
+
"type": "integer"
|
|
52737
|
+
}
|
|
52738
|
+
},
|
|
52739
|
+
"additionalProperties": false,
|
|
52740
|
+
"required": [
|
|
52741
|
+
"success",
|
|
52742
|
+
"listId",
|
|
52743
|
+
"absorbedCount",
|
|
52744
|
+
"removedEmptyBlocks"
|
|
52745
|
+
]
|
|
52746
|
+
},
|
|
52747
|
+
"failureSchema": {
|
|
52748
|
+
"type": "object",
|
|
52749
|
+
"properties": {
|
|
52750
|
+
"success": {
|
|
52751
|
+
"const": false
|
|
52752
|
+
},
|
|
52753
|
+
"failure": {
|
|
52754
|
+
"type": "object",
|
|
52755
|
+
"properties": {
|
|
52756
|
+
"code": {
|
|
52757
|
+
"enum": [
|
|
52758
|
+
"INVALID_TARGET",
|
|
52759
|
+
"NO_ADJACENT_SEQUENCE",
|
|
52760
|
+
"NO_OP"
|
|
52761
|
+
]
|
|
52762
|
+
},
|
|
52763
|
+
"message": {
|
|
52764
|
+
"type": "string"
|
|
52765
|
+
},
|
|
52766
|
+
"details": {}
|
|
52767
|
+
},
|
|
52768
|
+
"additionalProperties": false,
|
|
52769
|
+
"required": [
|
|
52770
|
+
"code",
|
|
52771
|
+
"message"
|
|
52772
|
+
]
|
|
52773
|
+
}
|
|
52774
|
+
},
|
|
52775
|
+
"additionalProperties": false,
|
|
52776
|
+
"required": [
|
|
52777
|
+
"success",
|
|
52778
|
+
"failure"
|
|
52779
|
+
]
|
|
52780
|
+
},
|
|
52781
|
+
"intentGroup": "list",
|
|
52782
|
+
"intentAction": "merge"
|
|
52783
|
+
},
|
|
52784
|
+
"doc.lists.split": {
|
|
52785
|
+
"operationId": "doc.lists.split",
|
|
52786
|
+
"sdkSurface": "document",
|
|
52787
|
+
"command": "lists split",
|
|
52788
|
+
"commandTokens": [
|
|
52789
|
+
"lists",
|
|
52790
|
+
"split"
|
|
52791
|
+
],
|
|
52792
|
+
"category": "lists",
|
|
52793
|
+
"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).",
|
|
52794
|
+
"requiresDocumentContext": true,
|
|
52795
|
+
"docRequirement": "optional",
|
|
52796
|
+
"responseEnvelopeKey": null,
|
|
52797
|
+
"params": [
|
|
52798
|
+
{
|
|
52799
|
+
"name": "doc",
|
|
52800
|
+
"kind": "doc",
|
|
52801
|
+
"type": "string",
|
|
52802
|
+
"description": "Document path. Optional when a session is already open."
|
|
52803
|
+
},
|
|
52804
|
+
{
|
|
52805
|
+
"name": "sessionId",
|
|
52806
|
+
"kind": "flag",
|
|
52807
|
+
"type": "string",
|
|
52808
|
+
"flag": "session",
|
|
52809
|
+
"description": "Session ID for multi-session workflows. Optional when only one session is open."
|
|
52810
|
+
},
|
|
52811
|
+
{
|
|
52812
|
+
"name": "out",
|
|
52813
|
+
"kind": "flag",
|
|
52814
|
+
"type": "string",
|
|
52815
|
+
"agentVisible": false
|
|
52816
|
+
},
|
|
52817
|
+
{
|
|
52818
|
+
"name": "force",
|
|
52819
|
+
"kind": "flag",
|
|
52820
|
+
"type": "boolean",
|
|
52821
|
+
"description": "Bypass confirmation checks."
|
|
52822
|
+
},
|
|
52823
|
+
{
|
|
52824
|
+
"name": "expectedRevision",
|
|
52825
|
+
"kind": "flag",
|
|
52826
|
+
"type": "number",
|
|
52827
|
+
"flag": "expected-revision",
|
|
52828
|
+
"agentVisible": false
|
|
52829
|
+
},
|
|
52830
|
+
{
|
|
52831
|
+
"name": "changeMode",
|
|
52832
|
+
"kind": "flag",
|
|
52833
|
+
"type": "string",
|
|
52834
|
+
"flag": "change-mode",
|
|
52835
|
+
"schema": {
|
|
52836
|
+
"enum": [
|
|
52837
|
+
"direct",
|
|
52838
|
+
"tracked"
|
|
52839
|
+
]
|
|
52840
|
+
},
|
|
52841
|
+
"description": "Edit mode: \"direct\" applies changes immediately, \"tracked\" records as suggestions."
|
|
52842
|
+
},
|
|
52843
|
+
{
|
|
52844
|
+
"name": "dryRun",
|
|
52845
|
+
"kind": "flag",
|
|
52846
|
+
"type": "boolean",
|
|
52847
|
+
"flag": "dry-run",
|
|
52848
|
+
"description": "Preview the result without applying changes."
|
|
52849
|
+
},
|
|
52850
|
+
{
|
|
52851
|
+
"name": "target",
|
|
52852
|
+
"kind": "jsonFlag",
|
|
52853
|
+
"type": "json",
|
|
52854
|
+
"flag": "target-json",
|
|
52855
|
+
"required": true,
|
|
52856
|
+
"schema": {
|
|
52857
|
+
"type": "object",
|
|
52858
|
+
"properties": {
|
|
52859
|
+
"kind": {
|
|
52860
|
+
"const": "block"
|
|
52861
|
+
},
|
|
52862
|
+
"nodeType": {
|
|
52863
|
+
"const": "listItem"
|
|
52864
|
+
},
|
|
52865
|
+
"nodeId": {
|
|
52866
|
+
"type": "string"
|
|
52867
|
+
}
|
|
52868
|
+
},
|
|
52869
|
+
"required": [
|
|
52870
|
+
"kind",
|
|
52871
|
+
"nodeType",
|
|
52872
|
+
"nodeId"
|
|
52873
|
+
]
|
|
52874
|
+
}
|
|
52875
|
+
},
|
|
52876
|
+
{
|
|
52877
|
+
"name": "restartNumbering",
|
|
52878
|
+
"kind": "flag",
|
|
52879
|
+
"type": "boolean",
|
|
52880
|
+
"flag": "restart-numbering"
|
|
52881
|
+
}
|
|
52882
|
+
],
|
|
52883
|
+
"constraints": null,
|
|
52884
|
+
"mutates": true,
|
|
52885
|
+
"idempotency": "conditional",
|
|
52886
|
+
"supportsTrackedMode": false,
|
|
52887
|
+
"supportsDryRun": true,
|
|
52888
|
+
"inputSchema": {
|
|
52889
|
+
"type": "object",
|
|
52890
|
+
"properties": {
|
|
52891
|
+
"target": {
|
|
52892
|
+
"$ref": "#/$defs/ListItemAddress"
|
|
52893
|
+
},
|
|
52894
|
+
"restartNumbering": {
|
|
52895
|
+
"type": "boolean"
|
|
52896
|
+
}
|
|
52897
|
+
},
|
|
52898
|
+
"additionalProperties": false,
|
|
52899
|
+
"required": [
|
|
52900
|
+
"target"
|
|
52901
|
+
]
|
|
52902
|
+
},
|
|
52903
|
+
"outputSchema": {
|
|
52904
|
+
"oneOf": [
|
|
52905
|
+
{
|
|
52906
|
+
"type": "object",
|
|
52907
|
+
"properties": {
|
|
52908
|
+
"success": {
|
|
52909
|
+
"const": true
|
|
52910
|
+
},
|
|
52911
|
+
"listId": {
|
|
52912
|
+
"type": "string"
|
|
52913
|
+
},
|
|
52914
|
+
"numId": {
|
|
52915
|
+
"type": "integer"
|
|
52916
|
+
},
|
|
52917
|
+
"restartedAt": {
|
|
52918
|
+
"type": [
|
|
52919
|
+
"integer",
|
|
52920
|
+
"null"
|
|
52921
|
+
]
|
|
52922
|
+
}
|
|
52923
|
+
},
|
|
52924
|
+
"additionalProperties": false,
|
|
52925
|
+
"required": [
|
|
52926
|
+
"success",
|
|
52927
|
+
"listId",
|
|
52928
|
+
"numId",
|
|
52929
|
+
"restartedAt"
|
|
52930
|
+
]
|
|
52931
|
+
},
|
|
52932
|
+
{
|
|
52933
|
+
"type": "object",
|
|
52934
|
+
"properties": {
|
|
52935
|
+
"success": {
|
|
52936
|
+
"const": false
|
|
52937
|
+
},
|
|
52938
|
+
"failure": {
|
|
52939
|
+
"type": "object",
|
|
52940
|
+
"properties": {
|
|
52941
|
+
"code": {
|
|
52942
|
+
"enum": [
|
|
52943
|
+
"INVALID_TARGET",
|
|
52944
|
+
"NO_OP"
|
|
52945
|
+
]
|
|
52946
|
+
},
|
|
52947
|
+
"message": {
|
|
52948
|
+
"type": "string"
|
|
52949
|
+
},
|
|
52950
|
+
"details": {}
|
|
52951
|
+
},
|
|
52952
|
+
"additionalProperties": false,
|
|
52953
|
+
"required": [
|
|
52954
|
+
"code",
|
|
52955
|
+
"message"
|
|
52956
|
+
]
|
|
52957
|
+
}
|
|
52958
|
+
},
|
|
52959
|
+
"additionalProperties": false,
|
|
52960
|
+
"required": [
|
|
52961
|
+
"success",
|
|
52962
|
+
"failure"
|
|
52963
|
+
]
|
|
52964
|
+
}
|
|
52965
|
+
]
|
|
52966
|
+
},
|
|
52967
|
+
"successSchema": {
|
|
52968
|
+
"type": "object",
|
|
52969
|
+
"properties": {
|
|
52970
|
+
"success": {
|
|
52971
|
+
"const": true
|
|
52972
|
+
},
|
|
52973
|
+
"listId": {
|
|
52974
|
+
"type": "string"
|
|
52975
|
+
},
|
|
52976
|
+
"numId": {
|
|
52977
|
+
"type": "integer"
|
|
52978
|
+
},
|
|
52979
|
+
"restartedAt": {
|
|
52980
|
+
"type": [
|
|
52981
|
+
"integer",
|
|
52982
|
+
"null"
|
|
52983
|
+
]
|
|
52984
|
+
}
|
|
52985
|
+
},
|
|
52986
|
+
"additionalProperties": false,
|
|
52987
|
+
"required": [
|
|
52988
|
+
"success",
|
|
52989
|
+
"listId",
|
|
52990
|
+
"numId",
|
|
52991
|
+
"restartedAt"
|
|
52992
|
+
]
|
|
52993
|
+
},
|
|
52994
|
+
"failureSchema": {
|
|
52995
|
+
"type": "object",
|
|
52996
|
+
"properties": {
|
|
52997
|
+
"success": {
|
|
52998
|
+
"const": false
|
|
52999
|
+
},
|
|
53000
|
+
"failure": {
|
|
53001
|
+
"type": "object",
|
|
53002
|
+
"properties": {
|
|
53003
|
+
"code": {
|
|
53004
|
+
"enum": [
|
|
53005
|
+
"INVALID_TARGET",
|
|
53006
|
+
"NO_OP"
|
|
53007
|
+
]
|
|
53008
|
+
},
|
|
53009
|
+
"message": {
|
|
53010
|
+
"type": "string"
|
|
53011
|
+
},
|
|
53012
|
+
"details": {}
|
|
53013
|
+
},
|
|
53014
|
+
"additionalProperties": false,
|
|
53015
|
+
"required": [
|
|
53016
|
+
"code",
|
|
53017
|
+
"message"
|
|
53018
|
+
]
|
|
53019
|
+
}
|
|
53020
|
+
},
|
|
53021
|
+
"additionalProperties": false,
|
|
53022
|
+
"required": [
|
|
53023
|
+
"success",
|
|
53024
|
+
"failure"
|
|
53025
|
+
]
|
|
53026
|
+
},
|
|
53027
|
+
"intentGroup": "list",
|
|
53028
|
+
"intentAction": "split"
|
|
53029
|
+
},
|
|
52457
53030
|
"doc.lists.setLevel": {
|
|
52458
53031
|
"operationId": "doc.lists.setLevel",
|
|
52459
53032
|
"sdkSurface": "document",
|
|
@@ -52935,7 +53508,9 @@ const CONTRACT = {
|
|
|
52935
53508
|
"success",
|
|
52936
53509
|
"failure"
|
|
52937
53510
|
]
|
|
52938
|
-
}
|
|
53511
|
+
},
|
|
53512
|
+
"intentGroup": "list",
|
|
53513
|
+
"intentAction": "set_value"
|
|
52939
53514
|
},
|
|
52940
53515
|
"doc.lists.continuePrevious": {
|
|
52941
53516
|
"operationId": "doc.lists.continuePrevious",
|
|
@@ -53163,7 +53738,9 @@ const CONTRACT = {
|
|
|
53163
53738
|
"success",
|
|
53164
53739
|
"failure"
|
|
53165
53740
|
]
|
|
53166
|
-
}
|
|
53741
|
+
},
|
|
53742
|
+
"intentGroup": "list",
|
|
53743
|
+
"intentAction": "continue_previous"
|
|
53167
53744
|
},
|
|
53168
53745
|
"doc.lists.canContinuePrevious": {
|
|
53169
53746
|
"operationId": "doc.lists.canContinuePrevious",
|
|
@@ -59211,37 +59788,84 @@ const CONTRACT = {
|
|
|
59211
59788
|
"type": "json",
|
|
59212
59789
|
"flag": "target-json",
|
|
59213
59790
|
"schema": {
|
|
59214
|
-
"
|
|
59215
|
-
|
|
59216
|
-
|
|
59217
|
-
"
|
|
59218
|
-
|
|
59219
|
-
|
|
59220
|
-
|
|
59791
|
+
"oneOf": [
|
|
59792
|
+
{
|
|
59793
|
+
"type": "object",
|
|
59794
|
+
"properties": {
|
|
59795
|
+
"kind": {
|
|
59796
|
+
"const": "text"
|
|
59797
|
+
},
|
|
59798
|
+
"blockId": {
|
|
59799
|
+
"type": "string"
|
|
59800
|
+
},
|
|
59801
|
+
"range": {
|
|
59802
|
+
"type": "object",
|
|
59803
|
+
"properties": {
|
|
59804
|
+
"start": {
|
|
59805
|
+
"type": "number"
|
|
59806
|
+
},
|
|
59807
|
+
"end": {
|
|
59808
|
+
"type": "number"
|
|
59809
|
+
}
|
|
59810
|
+
},
|
|
59811
|
+
"required": [
|
|
59812
|
+
"start",
|
|
59813
|
+
"end"
|
|
59814
|
+
]
|
|
59815
|
+
}
|
|
59816
|
+
},
|
|
59817
|
+
"required": [
|
|
59818
|
+
"kind",
|
|
59819
|
+
"blockId",
|
|
59820
|
+
"range"
|
|
59821
|
+
]
|
|
59221
59822
|
},
|
|
59222
|
-
|
|
59823
|
+
{
|
|
59223
59824
|
"type": "object",
|
|
59224
59825
|
"properties": {
|
|
59225
|
-
"
|
|
59226
|
-
"
|
|
59826
|
+
"kind": {
|
|
59827
|
+
"const": "text"
|
|
59227
59828
|
},
|
|
59228
|
-
"
|
|
59229
|
-
"type": "
|
|
59829
|
+
"segments": {
|
|
59830
|
+
"type": "array",
|
|
59831
|
+
"items": {
|
|
59832
|
+
"type": "object",
|
|
59833
|
+
"properties": {
|
|
59834
|
+
"blockId": {
|
|
59835
|
+
"type": "string"
|
|
59836
|
+
},
|
|
59837
|
+
"range": {
|
|
59838
|
+
"type": "object",
|
|
59839
|
+
"properties": {
|
|
59840
|
+
"start": {
|
|
59841
|
+
"type": "number"
|
|
59842
|
+
},
|
|
59843
|
+
"end": {
|
|
59844
|
+
"type": "number"
|
|
59845
|
+
}
|
|
59846
|
+
},
|
|
59847
|
+
"required": [
|
|
59848
|
+
"start",
|
|
59849
|
+
"end"
|
|
59850
|
+
]
|
|
59851
|
+
}
|
|
59852
|
+
},
|
|
59853
|
+
"required": [
|
|
59854
|
+
"blockId",
|
|
59855
|
+
"range"
|
|
59856
|
+
]
|
|
59857
|
+
}
|
|
59230
59858
|
}
|
|
59231
59859
|
},
|
|
59232
59860
|
"required": [
|
|
59233
|
-
"
|
|
59234
|
-
"
|
|
59861
|
+
"kind",
|
|
59862
|
+
"segments"
|
|
59235
59863
|
]
|
|
59236
59864
|
}
|
|
59237
|
-
|
|
59238
|
-
"
|
|
59239
|
-
"kind",
|
|
59240
|
-
"blockId",
|
|
59241
|
-
"range"
|
|
59242
|
-
]
|
|
59865
|
+
],
|
|
59866
|
+
"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."
|
|
59243
59867
|
},
|
|
59244
|
-
"description": "Text range to anchor the comment
|
|
59868
|
+
"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."
|
|
59245
59869
|
},
|
|
59246
59870
|
{
|
|
59247
59871
|
"name": "parentId",
|
|
@@ -59286,8 +59910,15 @@ const CONTRACT = {
|
|
|
59286
59910
|
"description": "Comment text content."
|
|
59287
59911
|
},
|
|
59288
59912
|
"target": {
|
|
59289
|
-
"
|
|
59290
|
-
|
|
59913
|
+
"oneOf": [
|
|
59914
|
+
{
|
|
59915
|
+
"$ref": "#/$defs/TextAddress"
|
|
59916
|
+
},
|
|
59917
|
+
{
|
|
59918
|
+
"$ref": "#/$defs/TextTarget"
|
|
59919
|
+
}
|
|
59920
|
+
],
|
|
59921
|
+
"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."
|
|
59291
59922
|
},
|
|
59292
59923
|
"parentCommentId": {
|
|
59293
59924
|
"type": "string",
|
|
@@ -62377,6 +63008,88 @@ const CONTRACT = {
|
|
|
62377
63008
|
]
|
|
62378
63009
|
}
|
|
62379
63010
|
},
|
|
63011
|
+
"doc.selection.current": {
|
|
63012
|
+
"operationId": "doc.selection.current",
|
|
63013
|
+
"sdkSurface": "document",
|
|
63014
|
+
"command": "selection current",
|
|
63015
|
+
"commandTokens": [
|
|
63016
|
+
"selection",
|
|
63017
|
+
"current"
|
|
63018
|
+
],
|
|
63019
|
+
"category": "core",
|
|
63020
|
+
"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.",
|
|
63021
|
+
"requiresDocumentContext": true,
|
|
63022
|
+
"docRequirement": "optional",
|
|
63023
|
+
"responseEnvelopeKey": null,
|
|
63024
|
+
"params": [
|
|
63025
|
+
{
|
|
63026
|
+
"name": "doc",
|
|
63027
|
+
"kind": "doc",
|
|
63028
|
+
"type": "string",
|
|
63029
|
+
"description": "Document path. Optional when a session is already open."
|
|
63030
|
+
},
|
|
63031
|
+
{
|
|
63032
|
+
"name": "sessionId",
|
|
63033
|
+
"kind": "flag",
|
|
63034
|
+
"type": "string",
|
|
63035
|
+
"flag": "session",
|
|
63036
|
+
"description": "Session ID for multi-session workflows. Optional when only one session is open."
|
|
63037
|
+
},
|
|
63038
|
+
{
|
|
63039
|
+
"name": "includeText",
|
|
63040
|
+
"kind": "flag",
|
|
63041
|
+
"type": "boolean",
|
|
63042
|
+
"flag": "include-text"
|
|
63043
|
+
}
|
|
63044
|
+
],
|
|
63045
|
+
"constraints": null,
|
|
63046
|
+
"mutates": false,
|
|
63047
|
+
"idempotency": "idempotent",
|
|
63048
|
+
"supportsTrackedMode": false,
|
|
63049
|
+
"supportsDryRun": false,
|
|
63050
|
+
"inputSchema": {
|
|
63051
|
+
"type": "object",
|
|
63052
|
+
"properties": {
|
|
63053
|
+
"includeText": {
|
|
63054
|
+
"type": "boolean"
|
|
63055
|
+
}
|
|
63056
|
+
},
|
|
63057
|
+
"additionalProperties": false
|
|
63058
|
+
},
|
|
63059
|
+
"outputSchema": {
|
|
63060
|
+
"type": "object",
|
|
63061
|
+
"properties": {
|
|
63062
|
+
"empty": {
|
|
63063
|
+
"type": "boolean"
|
|
63064
|
+
},
|
|
63065
|
+
"target": {
|
|
63066
|
+
"oneOf": [
|
|
63067
|
+
{
|
|
63068
|
+
"$ref": "#/$defs/TextTarget"
|
|
63069
|
+
},
|
|
63070
|
+
{
|
|
63071
|
+
"type": "null"
|
|
63072
|
+
}
|
|
63073
|
+
]
|
|
63074
|
+
},
|
|
63075
|
+
"activeMarks": {
|
|
63076
|
+
"type": "array",
|
|
63077
|
+
"items": {
|
|
63078
|
+
"type": "string"
|
|
63079
|
+
}
|
|
63080
|
+
},
|
|
63081
|
+
"text": {
|
|
63082
|
+
"type": "string"
|
|
63083
|
+
}
|
|
63084
|
+
},
|
|
63085
|
+
"additionalProperties": false,
|
|
63086
|
+
"required": [
|
|
63087
|
+
"empty",
|
|
63088
|
+
"target",
|
|
63089
|
+
"activeMarks"
|
|
63090
|
+
]
|
|
63091
|
+
}
|
|
63092
|
+
},
|
|
62380
63093
|
"doc.mutations.preview": {
|
|
62381
63094
|
"operationId": "doc.mutations.preview",
|
|
62382
63095
|
"sdkSurface": "document",
|
|
@@ -79654,6 +80367,76 @@ const CONTRACT = {
|
|
|
79654
80367
|
"dryRun"
|
|
79655
80368
|
]
|
|
79656
80369
|
},
|
|
80370
|
+
"lists.merge": {
|
|
80371
|
+
"type": "object",
|
|
80372
|
+
"properties": {
|
|
80373
|
+
"available": {
|
|
80374
|
+
"type": "boolean"
|
|
80375
|
+
},
|
|
80376
|
+
"tracked": {
|
|
80377
|
+
"type": "boolean"
|
|
80378
|
+
},
|
|
80379
|
+
"dryRun": {
|
|
80380
|
+
"type": "boolean"
|
|
80381
|
+
},
|
|
80382
|
+
"reasons": {
|
|
80383
|
+
"type": "array",
|
|
80384
|
+
"items": {
|
|
80385
|
+
"enum": [
|
|
80386
|
+
"COMMAND_UNAVAILABLE",
|
|
80387
|
+
"HELPER_UNAVAILABLE",
|
|
80388
|
+
"OPERATION_UNAVAILABLE",
|
|
80389
|
+
"TRACKED_MODE_UNAVAILABLE",
|
|
80390
|
+
"DRY_RUN_UNAVAILABLE",
|
|
80391
|
+
"NAMESPACE_UNAVAILABLE",
|
|
80392
|
+
"STYLES_PART_MISSING",
|
|
80393
|
+
"COLLABORATION_ACTIVE"
|
|
80394
|
+
]
|
|
80395
|
+
}
|
|
80396
|
+
}
|
|
80397
|
+
},
|
|
80398
|
+
"additionalProperties": false,
|
|
80399
|
+
"required": [
|
|
80400
|
+
"available",
|
|
80401
|
+
"tracked",
|
|
80402
|
+
"dryRun"
|
|
80403
|
+
]
|
|
80404
|
+
},
|
|
80405
|
+
"lists.split": {
|
|
80406
|
+
"type": "object",
|
|
80407
|
+
"properties": {
|
|
80408
|
+
"available": {
|
|
80409
|
+
"type": "boolean"
|
|
80410
|
+
},
|
|
80411
|
+
"tracked": {
|
|
80412
|
+
"type": "boolean"
|
|
80413
|
+
},
|
|
80414
|
+
"dryRun": {
|
|
80415
|
+
"type": "boolean"
|
|
80416
|
+
},
|
|
80417
|
+
"reasons": {
|
|
80418
|
+
"type": "array",
|
|
80419
|
+
"items": {
|
|
80420
|
+
"enum": [
|
|
80421
|
+
"COMMAND_UNAVAILABLE",
|
|
80422
|
+
"HELPER_UNAVAILABLE",
|
|
80423
|
+
"OPERATION_UNAVAILABLE",
|
|
80424
|
+
"TRACKED_MODE_UNAVAILABLE",
|
|
80425
|
+
"DRY_RUN_UNAVAILABLE",
|
|
80426
|
+
"NAMESPACE_UNAVAILABLE",
|
|
80427
|
+
"STYLES_PART_MISSING",
|
|
80428
|
+
"COLLABORATION_ACTIVE"
|
|
80429
|
+
]
|
|
80430
|
+
}
|
|
80431
|
+
}
|
|
80432
|
+
},
|
|
80433
|
+
"additionalProperties": false,
|
|
80434
|
+
"required": [
|
|
80435
|
+
"available",
|
|
80436
|
+
"tracked",
|
|
80437
|
+
"dryRun"
|
|
80438
|
+
]
|
|
80439
|
+
},
|
|
79657
80440
|
"lists.setLevel": {
|
|
79658
80441
|
"type": "object",
|
|
79659
80442
|
"properties": {
|
|
@@ -80879,6 +81662,41 @@ const CONTRACT = {
|
|
|
80879
81662
|
"dryRun"
|
|
80880
81663
|
]
|
|
80881
81664
|
},
|
|
81665
|
+
"selection.current": {
|
|
81666
|
+
"type": "object",
|
|
81667
|
+
"properties": {
|
|
81668
|
+
"available": {
|
|
81669
|
+
"type": "boolean"
|
|
81670
|
+
},
|
|
81671
|
+
"tracked": {
|
|
81672
|
+
"type": "boolean"
|
|
81673
|
+
},
|
|
81674
|
+
"dryRun": {
|
|
81675
|
+
"type": "boolean"
|
|
81676
|
+
},
|
|
81677
|
+
"reasons": {
|
|
81678
|
+
"type": "array",
|
|
81679
|
+
"items": {
|
|
81680
|
+
"enum": [
|
|
81681
|
+
"COMMAND_UNAVAILABLE",
|
|
81682
|
+
"HELPER_UNAVAILABLE",
|
|
81683
|
+
"OPERATION_UNAVAILABLE",
|
|
81684
|
+
"TRACKED_MODE_UNAVAILABLE",
|
|
81685
|
+
"DRY_RUN_UNAVAILABLE",
|
|
81686
|
+
"NAMESPACE_UNAVAILABLE",
|
|
81687
|
+
"STYLES_PART_MISSING",
|
|
81688
|
+
"COLLABORATION_ACTIVE"
|
|
81689
|
+
]
|
|
81690
|
+
}
|
|
81691
|
+
}
|
|
81692
|
+
},
|
|
81693
|
+
"additionalProperties": false,
|
|
81694
|
+
"required": [
|
|
81695
|
+
"available",
|
|
81696
|
+
"tracked",
|
|
81697
|
+
"dryRun"
|
|
81698
|
+
]
|
|
81699
|
+
},
|
|
80882
81700
|
"mutations.preview": {
|
|
80883
81701
|
"type": "object",
|
|
80884
81702
|
"properties": {
|
|
@@ -89257,6 +90075,8 @@ const CONTRACT = {
|
|
|
89257
90075
|
"lists.join",
|
|
89258
90076
|
"lists.canJoin",
|
|
89259
90077
|
"lists.separate",
|
|
90078
|
+
"lists.merge",
|
|
90079
|
+
"lists.split",
|
|
89260
90080
|
"lists.setLevel",
|
|
89261
90081
|
"lists.setValue",
|
|
89262
90082
|
"lists.continuePrevious",
|
|
@@ -89292,6 +90112,7 @@ const CONTRACT = {
|
|
|
89292
90112
|
"trackChanges.decide",
|
|
89293
90113
|
"query.match",
|
|
89294
90114
|
"ranges.resolve",
|
|
90115
|
+
"selection.current",
|
|
89295
90116
|
"mutations.preview",
|
|
89296
90117
|
"mutations.apply",
|
|
89297
90118
|
"capabilities.get",
|
|
@@ -106403,7 +107224,7 @@ const CONTRACT = {
|
|
|
106403
107224
|
"get"
|
|
106404
107225
|
],
|
|
106405
107226
|
"category": "history",
|
|
106406
|
-
"description": "Query the current undo/redo history state of the
|
|
107227
|
+
"description": "Query the current undo/redo history state of the document.",
|
|
106407
107228
|
"requiresDocumentContext": true,
|
|
106408
107229
|
"docRequirement": "optional",
|
|
106409
107230
|
"responseEnvelopeKey": "result",
|
|
@@ -106475,7 +107296,7 @@ const CONTRACT = {
|
|
|
106475
107296
|
"undo"
|
|
106476
107297
|
],
|
|
106477
107298
|
"category": "history",
|
|
106478
|
-
"description": "Undo the most recent history-safe mutation in the
|
|
107299
|
+
"description": "Undo the most recent history-safe mutation in the document.",
|
|
106479
107300
|
"requiresDocumentContext": true,
|
|
106480
107301
|
"docRequirement": "optional",
|
|
106481
107302
|
"responseEnvelopeKey": "result",
|
|
@@ -106638,7 +107459,7 @@ const CONTRACT = {
|
|
|
106638
107459
|
"redo"
|
|
106639
107460
|
],
|
|
106640
107461
|
"category": "history",
|
|
106641
|
-
"description": "Redo the most recently undone action in the
|
|
107462
|
+
"description": "Redo the most recently undone action in the document.",
|
|
106642
107463
|
"requiresDocumentContext": true,
|
|
106643
107464
|
"docRequirement": "optional",
|
|
106644
107465
|
"responseEnvelopeKey": "result",
|