@superdoc-dev/sdk 1.8.0-next.2 → 1.8.0-next.20
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
|
@@ -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",
|
|
@@ -59493,11 +60124,14 @@ const CONTRACT = {
|
|
|
59493
60124
|
"oneOf": [
|
|
59494
60125
|
{
|
|
59495
60126
|
"const": "resolved"
|
|
60127
|
+
},
|
|
60128
|
+
{
|
|
60129
|
+
"const": "active"
|
|
59496
60130
|
}
|
|
59497
60131
|
],
|
|
59498
|
-
"description": "Set comment status. Use 'resolved' to
|
|
60132
|
+
"description": "Set comment status. Use 'resolved' to resolve a comment, or 'active' to reopen a previously resolved comment (lifecycle inverse)."
|
|
59499
60133
|
},
|
|
59500
|
-
"description": "Set comment status. Use 'resolved' to
|
|
60134
|
+
"description": "Set comment status. Use 'resolved' to resolve a comment, or 'active' to reopen a previously resolved comment (lifecycle inverse)."
|
|
59501
60135
|
},
|
|
59502
60136
|
{
|
|
59503
60137
|
"name": "isInternal",
|
|
@@ -59549,9 +60183,10 @@ const CONTRACT = {
|
|
|
59549
60183
|
},
|
|
59550
60184
|
"status": {
|
|
59551
60185
|
"enum": [
|
|
59552
|
-
"resolved"
|
|
60186
|
+
"resolved",
|
|
60187
|
+
"active"
|
|
59553
60188
|
],
|
|
59554
|
-
"description": "Set comment status. Use 'resolved' to
|
|
60189
|
+
"description": "Set comment status. Use 'resolved' to resolve a comment, or 'active' to reopen a previously resolved comment (lifecycle inverse)."
|
|
59555
60190
|
},
|
|
59556
60191
|
"isInternal": {
|
|
59557
60192
|
"type": "boolean",
|
|
@@ -62377,6 +63012,102 @@ const CONTRACT = {
|
|
|
62377
63012
|
]
|
|
62378
63013
|
}
|
|
62379
63014
|
},
|
|
63015
|
+
"doc.selection.current": {
|
|
63016
|
+
"operationId": "doc.selection.current",
|
|
63017
|
+
"sdkSurface": "document",
|
|
63018
|
+
"command": "selection current",
|
|
63019
|
+
"commandTokens": [
|
|
63020
|
+
"selection",
|
|
63021
|
+
"current"
|
|
63022
|
+
],
|
|
63023
|
+
"category": "core",
|
|
63024
|
+
"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.",
|
|
63025
|
+
"requiresDocumentContext": true,
|
|
63026
|
+
"docRequirement": "optional",
|
|
63027
|
+
"responseEnvelopeKey": null,
|
|
63028
|
+
"params": [
|
|
63029
|
+
{
|
|
63030
|
+
"name": "doc",
|
|
63031
|
+
"kind": "doc",
|
|
63032
|
+
"type": "string",
|
|
63033
|
+
"description": "Document path. Optional when a session is already open."
|
|
63034
|
+
},
|
|
63035
|
+
{
|
|
63036
|
+
"name": "sessionId",
|
|
63037
|
+
"kind": "flag",
|
|
63038
|
+
"type": "string",
|
|
63039
|
+
"flag": "session",
|
|
63040
|
+
"description": "Session ID for multi-session workflows. Optional when only one session is open."
|
|
63041
|
+
},
|
|
63042
|
+
{
|
|
63043
|
+
"name": "includeText",
|
|
63044
|
+
"kind": "flag",
|
|
63045
|
+
"type": "boolean",
|
|
63046
|
+
"flag": "include-text"
|
|
63047
|
+
}
|
|
63048
|
+
],
|
|
63049
|
+
"constraints": null,
|
|
63050
|
+
"mutates": false,
|
|
63051
|
+
"idempotency": "idempotent",
|
|
63052
|
+
"supportsTrackedMode": false,
|
|
63053
|
+
"supportsDryRun": false,
|
|
63054
|
+
"inputSchema": {
|
|
63055
|
+
"type": "object",
|
|
63056
|
+
"properties": {
|
|
63057
|
+
"includeText": {
|
|
63058
|
+
"type": "boolean"
|
|
63059
|
+
}
|
|
63060
|
+
},
|
|
63061
|
+
"additionalProperties": false
|
|
63062
|
+
},
|
|
63063
|
+
"outputSchema": {
|
|
63064
|
+
"type": "object",
|
|
63065
|
+
"properties": {
|
|
63066
|
+
"empty": {
|
|
63067
|
+
"type": "boolean"
|
|
63068
|
+
},
|
|
63069
|
+
"target": {
|
|
63070
|
+
"oneOf": [
|
|
63071
|
+
{
|
|
63072
|
+
"$ref": "#/$defs/TextTarget"
|
|
63073
|
+
},
|
|
63074
|
+
{
|
|
63075
|
+
"type": "null"
|
|
63076
|
+
}
|
|
63077
|
+
]
|
|
63078
|
+
},
|
|
63079
|
+
"activeMarks": {
|
|
63080
|
+
"type": "array",
|
|
63081
|
+
"items": {
|
|
63082
|
+
"type": "string"
|
|
63083
|
+
}
|
|
63084
|
+
},
|
|
63085
|
+
"activeCommentIds": {
|
|
63086
|
+
"type": "array",
|
|
63087
|
+
"items": {
|
|
63088
|
+
"type": "string"
|
|
63089
|
+
}
|
|
63090
|
+
},
|
|
63091
|
+
"activeChangeIds": {
|
|
63092
|
+
"type": "array",
|
|
63093
|
+
"items": {
|
|
63094
|
+
"type": "string"
|
|
63095
|
+
}
|
|
63096
|
+
},
|
|
63097
|
+
"text": {
|
|
63098
|
+
"type": "string"
|
|
63099
|
+
}
|
|
63100
|
+
},
|
|
63101
|
+
"additionalProperties": false,
|
|
63102
|
+
"required": [
|
|
63103
|
+
"empty",
|
|
63104
|
+
"target",
|
|
63105
|
+
"activeMarks",
|
|
63106
|
+
"activeCommentIds",
|
|
63107
|
+
"activeChangeIds"
|
|
63108
|
+
]
|
|
63109
|
+
}
|
|
63110
|
+
},
|
|
62380
63111
|
"doc.mutations.preview": {
|
|
62381
63112
|
"operationId": "doc.mutations.preview",
|
|
62382
63113
|
"sdkSurface": "document",
|
|
@@ -79654,6 +80385,76 @@ const CONTRACT = {
|
|
|
79654
80385
|
"dryRun"
|
|
79655
80386
|
]
|
|
79656
80387
|
},
|
|
80388
|
+
"lists.merge": {
|
|
80389
|
+
"type": "object",
|
|
80390
|
+
"properties": {
|
|
80391
|
+
"available": {
|
|
80392
|
+
"type": "boolean"
|
|
80393
|
+
},
|
|
80394
|
+
"tracked": {
|
|
80395
|
+
"type": "boolean"
|
|
80396
|
+
},
|
|
80397
|
+
"dryRun": {
|
|
80398
|
+
"type": "boolean"
|
|
80399
|
+
},
|
|
80400
|
+
"reasons": {
|
|
80401
|
+
"type": "array",
|
|
80402
|
+
"items": {
|
|
80403
|
+
"enum": [
|
|
80404
|
+
"COMMAND_UNAVAILABLE",
|
|
80405
|
+
"HELPER_UNAVAILABLE",
|
|
80406
|
+
"OPERATION_UNAVAILABLE",
|
|
80407
|
+
"TRACKED_MODE_UNAVAILABLE",
|
|
80408
|
+
"DRY_RUN_UNAVAILABLE",
|
|
80409
|
+
"NAMESPACE_UNAVAILABLE",
|
|
80410
|
+
"STYLES_PART_MISSING",
|
|
80411
|
+
"COLLABORATION_ACTIVE"
|
|
80412
|
+
]
|
|
80413
|
+
}
|
|
80414
|
+
}
|
|
80415
|
+
},
|
|
80416
|
+
"additionalProperties": false,
|
|
80417
|
+
"required": [
|
|
80418
|
+
"available",
|
|
80419
|
+
"tracked",
|
|
80420
|
+
"dryRun"
|
|
80421
|
+
]
|
|
80422
|
+
},
|
|
80423
|
+
"lists.split": {
|
|
80424
|
+
"type": "object",
|
|
80425
|
+
"properties": {
|
|
80426
|
+
"available": {
|
|
80427
|
+
"type": "boolean"
|
|
80428
|
+
},
|
|
80429
|
+
"tracked": {
|
|
80430
|
+
"type": "boolean"
|
|
80431
|
+
},
|
|
80432
|
+
"dryRun": {
|
|
80433
|
+
"type": "boolean"
|
|
80434
|
+
},
|
|
80435
|
+
"reasons": {
|
|
80436
|
+
"type": "array",
|
|
80437
|
+
"items": {
|
|
80438
|
+
"enum": [
|
|
80439
|
+
"COMMAND_UNAVAILABLE",
|
|
80440
|
+
"HELPER_UNAVAILABLE",
|
|
80441
|
+
"OPERATION_UNAVAILABLE",
|
|
80442
|
+
"TRACKED_MODE_UNAVAILABLE",
|
|
80443
|
+
"DRY_RUN_UNAVAILABLE",
|
|
80444
|
+
"NAMESPACE_UNAVAILABLE",
|
|
80445
|
+
"STYLES_PART_MISSING",
|
|
80446
|
+
"COLLABORATION_ACTIVE"
|
|
80447
|
+
]
|
|
80448
|
+
}
|
|
80449
|
+
}
|
|
80450
|
+
},
|
|
80451
|
+
"additionalProperties": false,
|
|
80452
|
+
"required": [
|
|
80453
|
+
"available",
|
|
80454
|
+
"tracked",
|
|
80455
|
+
"dryRun"
|
|
80456
|
+
]
|
|
80457
|
+
},
|
|
79657
80458
|
"lists.setLevel": {
|
|
79658
80459
|
"type": "object",
|
|
79659
80460
|
"properties": {
|
|
@@ -80879,6 +81680,41 @@ const CONTRACT = {
|
|
|
80879
81680
|
"dryRun"
|
|
80880
81681
|
]
|
|
80881
81682
|
},
|
|
81683
|
+
"selection.current": {
|
|
81684
|
+
"type": "object",
|
|
81685
|
+
"properties": {
|
|
81686
|
+
"available": {
|
|
81687
|
+
"type": "boolean"
|
|
81688
|
+
},
|
|
81689
|
+
"tracked": {
|
|
81690
|
+
"type": "boolean"
|
|
81691
|
+
},
|
|
81692
|
+
"dryRun": {
|
|
81693
|
+
"type": "boolean"
|
|
81694
|
+
},
|
|
81695
|
+
"reasons": {
|
|
81696
|
+
"type": "array",
|
|
81697
|
+
"items": {
|
|
81698
|
+
"enum": [
|
|
81699
|
+
"COMMAND_UNAVAILABLE",
|
|
81700
|
+
"HELPER_UNAVAILABLE",
|
|
81701
|
+
"OPERATION_UNAVAILABLE",
|
|
81702
|
+
"TRACKED_MODE_UNAVAILABLE",
|
|
81703
|
+
"DRY_RUN_UNAVAILABLE",
|
|
81704
|
+
"NAMESPACE_UNAVAILABLE",
|
|
81705
|
+
"STYLES_PART_MISSING",
|
|
81706
|
+
"COLLABORATION_ACTIVE"
|
|
81707
|
+
]
|
|
81708
|
+
}
|
|
81709
|
+
}
|
|
81710
|
+
},
|
|
81711
|
+
"additionalProperties": false,
|
|
81712
|
+
"required": [
|
|
81713
|
+
"available",
|
|
81714
|
+
"tracked",
|
|
81715
|
+
"dryRun"
|
|
81716
|
+
]
|
|
81717
|
+
},
|
|
80882
81718
|
"mutations.preview": {
|
|
80883
81719
|
"type": "object",
|
|
80884
81720
|
"properties": {
|
|
@@ -89257,6 +90093,8 @@ const CONTRACT = {
|
|
|
89257
90093
|
"lists.join",
|
|
89258
90094
|
"lists.canJoin",
|
|
89259
90095
|
"lists.separate",
|
|
90096
|
+
"lists.merge",
|
|
90097
|
+
"lists.split",
|
|
89260
90098
|
"lists.setLevel",
|
|
89261
90099
|
"lists.setValue",
|
|
89262
90100
|
"lists.continuePrevious",
|
|
@@ -89292,6 +90130,7 @@ const CONTRACT = {
|
|
|
89292
90130
|
"trackChanges.decide",
|
|
89293
90131
|
"query.match",
|
|
89294
90132
|
"ranges.resolve",
|
|
90133
|
+
"selection.current",
|
|
89295
90134
|
"mutations.preview",
|
|
89296
90135
|
"mutations.apply",
|
|
89297
90136
|
"capabilities.get",
|