@superdoc-dev/sdk 1.8.0-next.3 → 1.8.0-next.31
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 +1019 -57
- package/dist/generated/client.d.ts.map +1 -1
- package/dist/generated/client.js +10 -0
- package/dist/generated/contract.cjs +2872 -123
- package/dist/generated/contract.d.ts.map +1 -1
- package/dist/generated/contract.js +2875 -123
- 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 +303 -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 +265 -27
- package/tools/tools.generic.json +271 -28
- package/tools/tools.openai.json +265 -27
- package/tools/tools.vercel.json +265 -27
package/tools/tools.generic.json
CHANGED
|
@@ -1160,22 +1160,27 @@
|
|
|
1160
1160
|
},
|
|
1161
1161
|
{
|
|
1162
1162
|
"name": "superdoc_list",
|
|
1163
|
-
"description": "Create and manipulate bullet and numbered lists.
|
|
1163
|
+
"description": "Create and manipulate bullet and numbered lists. Most actions require a list-item target: {kind:\"block\", nodeType:\"listItem\", nodeId:\"<id>\"}. Exceptions: \"create\" and \"attach\" operate on paragraph targets (they turn paragraphs into list items). Find nodeIds via superdoc_get_content({action:\"blocks\"}) — pick listItem blocks for most actions, paragraph blocks for create/attach.\n\nCREATE & CONVERT:\n• \"create\" — make a NEW list from paragraphs. Two modes: mode:\"empty\" with at:{kind:\"block\", nodeType:\"paragraph\", nodeId} converts a single paragraph; mode:\"fromParagraphs\" with target:{from:{...paragraph block address}, to:{...paragraph block address}} converts a range — ALL paragraphs between from and to become items, so make sure no other content sits between them. Pass a preset (\"disc\"|\"circle\"|\"square\"|\"dash\" for bullets; \"decimal\"|\"decimalParenthesis\"|\"lowerLetter\"|\"upperLetter\"|\"lowerRoman\"|\"upperRoman\" for ordered) or a custom style. Use \"create\" to start a fresh list — NOT to extend an existing one (use \"attach\" for that).\n• \"attach\" — add paragraphs to an EXISTING list, inheriting its numbering definition. Pass target:{paragraph block address} (or {from, to} range of paragraphs) + attachTo:{kind:\"block\", nodeType:\"listItem\", nodeId:\"<any item in destination list>\"} + optional level:0..8. Use this to extend a list or as the second half of a merge workflow (see \"join\" below).\n• \"set_type\" — convert an existing list between ordered and bullet. Pass target:{listItem} + kind:\"ordered\" or \"bullet\". Adjacent compatible sequences are merged automatically to preserve continuous numbering.\n• \"detach\" — convert a list item back to a plain paragraph. Pass target:{listItem}.\n\nITEMS & NESTING:\n• \"insert\" — add a new list item adjacent to an existing item in the same list. Pass target:{listItem} + position:\"before\"|\"after\" + optional text. Use this (NOT superdoc_create) to add items to an existing list.\n• \"indent\" / \"outdent\" — bump the target item's nesting level by one (0-8 range). Pass target:{listItem}.\n• \"set_level\" — jump the target item to an explicit level. Pass target:{listItem} + level:0..8.\n\nNUMBERING (ordered lists):\n• \"set_value\" — restart numbering at the target. Pass target:{listItem} + value:<number> (e.g. value:1 to start over) or value:null to clear a previous override. Mid-sequence targets are atomically split off into their own sequence.\n• \"continue_previous\" — make the target's sequence continue numbering from the nearest compatible previous sequence (same abstract definition). Pass target:{listItem of the sequence you want to renumber}. Fails with NO_COMPATIBLE_PREVIOUS or INCOMPATIBLE_DEFINITIONS if no matching prior sequence exists.\n\nSEQUENCE SHAPE (merge / split):\n• \"merge\" — merge the target's sequence with an adjacent one into one continuous list. Pass target:{listItem} + direction:\"withPrevious\" or \"withNext\". Absorbed items adopt the absorbing sequence's numbering definition, and empty paragraphs between the two sequences are removed so numbering flows continuously.\n• \"split\" — split the target's sequence at the target item into two independent lists. The target and everything after become a new sequence that restarts numbering at 1. Pass target:{listItem}; add restartNumbering:false to keep the count continuing instead of restarting.",
|
|
1164
1164
|
"parameters": {
|
|
1165
1165
|
"type": "object",
|
|
1166
1166
|
"properties": {
|
|
1167
1167
|
"action": {
|
|
1168
1168
|
"type": "string",
|
|
1169
1169
|
"enum": [
|
|
1170
|
+
"attach",
|
|
1171
|
+
"continue_previous",
|
|
1170
1172
|
"create",
|
|
1171
1173
|
"detach",
|
|
1172
1174
|
"indent",
|
|
1173
1175
|
"insert",
|
|
1176
|
+
"merge",
|
|
1174
1177
|
"outdent",
|
|
1175
1178
|
"set_level",
|
|
1176
|
-
"set_type"
|
|
1179
|
+
"set_type",
|
|
1180
|
+
"set_value",
|
|
1181
|
+
"split"
|
|
1177
1182
|
],
|
|
1178
|
-
"description": "The action to perform. One of: create, detach, indent, insert, outdent, set_level, set_type."
|
|
1183
|
+
"description": "The action to perform. One of: attach, continue_previous, create, detach, indent, insert, merge, outdent, set_level, set_type, set_value, split."
|
|
1179
1184
|
},
|
|
1180
1185
|
"force": {
|
|
1181
1186
|
"type": "boolean",
|
|
@@ -1213,7 +1218,7 @@
|
|
|
1213
1218
|
"nodeType",
|
|
1214
1219
|
"nodeId"
|
|
1215
1220
|
],
|
|
1216
|
-
"description": "The target list item. For 'insert': the item to insert relative to. For 'create' with mode 'fromParagraphs': use nodeType 'paragraph' instead. Format: {kind:'block', nodeType:'listItem', nodeId:'<id>'}. Required for actions 'insert', 'detach', 'indent', 'outdent', 'set_level', 'set_type'."
|
|
1221
|
+
"description": "The target list item. For 'insert': the item to insert relative to. For 'create' with mode 'fromParagraphs': use nodeType 'paragraph' instead. Format: {kind:'block', nodeType:'listItem', nodeId:'<id>'}. Required for actions 'insert', 'attach', 'detach', 'indent', 'outdent', 'merge', 'split', 'set_level', 'set_value', 'continue_previous', 'set_type'."
|
|
1217
1222
|
},
|
|
1218
1223
|
"position": {
|
|
1219
1224
|
"type": "string",
|
|
@@ -1397,6 +1402,44 @@
|
|
|
1397
1402
|
],
|
|
1398
1403
|
"description": "Only for action 'create'. Omit for other actions."
|
|
1399
1404
|
},
|
|
1405
|
+
"attachTo": {
|
|
1406
|
+
"type": "object",
|
|
1407
|
+
"properties": {
|
|
1408
|
+
"kind": {
|
|
1409
|
+
"const": "block",
|
|
1410
|
+
"type": "string"
|
|
1411
|
+
},
|
|
1412
|
+
"nodeType": {
|
|
1413
|
+
"const": "listItem",
|
|
1414
|
+
"type": "string"
|
|
1415
|
+
},
|
|
1416
|
+
"nodeId": {
|
|
1417
|
+
"type": "string"
|
|
1418
|
+
}
|
|
1419
|
+
},
|
|
1420
|
+
"required": [
|
|
1421
|
+
"kind",
|
|
1422
|
+
"nodeType",
|
|
1423
|
+
"nodeId"
|
|
1424
|
+
],
|
|
1425
|
+
"description": "Required for action 'attach'."
|
|
1426
|
+
},
|
|
1427
|
+
"direction": {
|
|
1428
|
+
"type": "string",
|
|
1429
|
+
"enum": [
|
|
1430
|
+
"withPrevious",
|
|
1431
|
+
"withNext"
|
|
1432
|
+
],
|
|
1433
|
+
"description": "Required for action 'merge'."
|
|
1434
|
+
},
|
|
1435
|
+
"restartNumbering": {
|
|
1436
|
+
"type": "boolean",
|
|
1437
|
+
"description": "Only for action 'split'. Omit for other actions."
|
|
1438
|
+
},
|
|
1439
|
+
"value": {
|
|
1440
|
+
"type": "object",
|
|
1441
|
+
"description": "Required for action 'set_value'."
|
|
1442
|
+
},
|
|
1400
1443
|
"continuity": {
|
|
1401
1444
|
"type": "string",
|
|
1402
1445
|
"description": "Numbering continuity: 'preserve' keeps numbering; 'none' restarts. Only for action 'set_type'. Omit for other actions.",
|
|
@@ -1413,14 +1456,19 @@
|
|
|
1413
1456
|
},
|
|
1414
1457
|
"metadata": {
|
|
1415
1458
|
"mutates": true,
|
|
1416
|
-
"operationCount":
|
|
1459
|
+
"operationCount": 12,
|
|
1417
1460
|
"operations": [
|
|
1418
1461
|
"doc.lists.insert",
|
|
1419
1462
|
"doc.lists.create",
|
|
1463
|
+
"doc.lists.attach",
|
|
1420
1464
|
"doc.lists.detach",
|
|
1421
1465
|
"doc.lists.indent",
|
|
1422
1466
|
"doc.lists.outdent",
|
|
1467
|
+
"doc.lists.merge",
|
|
1468
|
+
"doc.lists.split",
|
|
1423
1469
|
"doc.lists.setLevel",
|
|
1470
|
+
"doc.lists.setValue",
|
|
1471
|
+
"doc.lists.continuePrevious",
|
|
1424
1472
|
"doc.lists.setType"
|
|
1425
1473
|
]
|
|
1426
1474
|
},
|
|
@@ -1468,37 +1516,231 @@
|
|
|
1468
1516
|
"description": "Comment text content. Required for action 'create'."
|
|
1469
1517
|
},
|
|
1470
1518
|
"target": {
|
|
1471
|
-
"
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
"
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1519
|
+
"oneOf": [
|
|
1520
|
+
{
|
|
1521
|
+
"type": "object",
|
|
1522
|
+
"properties": {
|
|
1523
|
+
"kind": {
|
|
1524
|
+
"const": "text",
|
|
1525
|
+
"type": "string"
|
|
1526
|
+
},
|
|
1527
|
+
"blockId": {
|
|
1528
|
+
"type": "string"
|
|
1529
|
+
},
|
|
1530
|
+
"range": {
|
|
1531
|
+
"type": "object",
|
|
1532
|
+
"properties": {
|
|
1533
|
+
"start": {
|
|
1534
|
+
"type": "number"
|
|
1535
|
+
},
|
|
1536
|
+
"end": {
|
|
1537
|
+
"type": "number"
|
|
1538
|
+
}
|
|
1539
|
+
},
|
|
1540
|
+
"required": [
|
|
1541
|
+
"start",
|
|
1542
|
+
"end"
|
|
1543
|
+
]
|
|
1544
|
+
}
|
|
1545
|
+
},
|
|
1546
|
+
"required": [
|
|
1547
|
+
"kind",
|
|
1548
|
+
"blockId",
|
|
1549
|
+
"range"
|
|
1550
|
+
]
|
|
1479
1551
|
},
|
|
1480
|
-
|
|
1552
|
+
{
|
|
1481
1553
|
"type": "object",
|
|
1482
1554
|
"properties": {
|
|
1483
|
-
"
|
|
1484
|
-
"
|
|
1555
|
+
"kind": {
|
|
1556
|
+
"const": "text",
|
|
1557
|
+
"type": "string"
|
|
1485
1558
|
},
|
|
1486
|
-
"
|
|
1487
|
-
"type": "
|
|
1559
|
+
"segments": {
|
|
1560
|
+
"type": "array",
|
|
1561
|
+
"items": {
|
|
1562
|
+
"type": "object",
|
|
1563
|
+
"properties": {
|
|
1564
|
+
"blockId": {
|
|
1565
|
+
"type": "string"
|
|
1566
|
+
},
|
|
1567
|
+
"range": {
|
|
1568
|
+
"type": "object",
|
|
1569
|
+
"properties": {
|
|
1570
|
+
"start": {
|
|
1571
|
+
"type": "number"
|
|
1572
|
+
},
|
|
1573
|
+
"end": {
|
|
1574
|
+
"type": "number"
|
|
1575
|
+
}
|
|
1576
|
+
},
|
|
1577
|
+
"required": [
|
|
1578
|
+
"start",
|
|
1579
|
+
"end"
|
|
1580
|
+
]
|
|
1581
|
+
}
|
|
1582
|
+
},
|
|
1583
|
+
"required": [
|
|
1584
|
+
"blockId",
|
|
1585
|
+
"range"
|
|
1586
|
+
]
|
|
1587
|
+
}
|
|
1588
|
+
},
|
|
1589
|
+
"story": {
|
|
1590
|
+
"oneOf": [
|
|
1591
|
+
{
|
|
1592
|
+
"type": "object",
|
|
1593
|
+
"properties": {
|
|
1594
|
+
"kind": {
|
|
1595
|
+
"const": "story",
|
|
1596
|
+
"type": "string"
|
|
1597
|
+
},
|
|
1598
|
+
"storyType": {
|
|
1599
|
+
"const": "body",
|
|
1600
|
+
"type": "string"
|
|
1601
|
+
}
|
|
1602
|
+
},
|
|
1603
|
+
"required": [
|
|
1604
|
+
"kind",
|
|
1605
|
+
"storyType"
|
|
1606
|
+
]
|
|
1607
|
+
},
|
|
1608
|
+
{
|
|
1609
|
+
"type": "object",
|
|
1610
|
+
"properties": {
|
|
1611
|
+
"kind": {
|
|
1612
|
+
"const": "story",
|
|
1613
|
+
"type": "string"
|
|
1614
|
+
},
|
|
1615
|
+
"storyType": {
|
|
1616
|
+
"const": "headerFooterSlot",
|
|
1617
|
+
"type": "string"
|
|
1618
|
+
},
|
|
1619
|
+
"section": {
|
|
1620
|
+
"type": "object",
|
|
1621
|
+
"properties": {
|
|
1622
|
+
"kind": {
|
|
1623
|
+
"const": "section",
|
|
1624
|
+
"type": "string"
|
|
1625
|
+
},
|
|
1626
|
+
"sectionId": {
|
|
1627
|
+
"type": "string"
|
|
1628
|
+
}
|
|
1629
|
+
},
|
|
1630
|
+
"required": [
|
|
1631
|
+
"kind",
|
|
1632
|
+
"sectionId"
|
|
1633
|
+
]
|
|
1634
|
+
},
|
|
1635
|
+
"headerFooterKind": {
|
|
1636
|
+
"enum": [
|
|
1637
|
+
"header",
|
|
1638
|
+
"footer"
|
|
1639
|
+
]
|
|
1640
|
+
},
|
|
1641
|
+
"variant": {
|
|
1642
|
+
"enum": [
|
|
1643
|
+
"default",
|
|
1644
|
+
"first",
|
|
1645
|
+
"even"
|
|
1646
|
+
]
|
|
1647
|
+
},
|
|
1648
|
+
"resolution": {
|
|
1649
|
+
"enum": [
|
|
1650
|
+
"effective",
|
|
1651
|
+
"explicit"
|
|
1652
|
+
]
|
|
1653
|
+
},
|
|
1654
|
+
"onWrite": {
|
|
1655
|
+
"enum": [
|
|
1656
|
+
"materializeIfInherited",
|
|
1657
|
+
"editResolvedPart",
|
|
1658
|
+
"error"
|
|
1659
|
+
]
|
|
1660
|
+
}
|
|
1661
|
+
},
|
|
1662
|
+
"required": [
|
|
1663
|
+
"kind",
|
|
1664
|
+
"storyType",
|
|
1665
|
+
"section",
|
|
1666
|
+
"headerFooterKind",
|
|
1667
|
+
"variant"
|
|
1668
|
+
]
|
|
1669
|
+
},
|
|
1670
|
+
{
|
|
1671
|
+
"type": "object",
|
|
1672
|
+
"properties": {
|
|
1673
|
+
"kind": {
|
|
1674
|
+
"const": "story",
|
|
1675
|
+
"type": "string"
|
|
1676
|
+
},
|
|
1677
|
+
"storyType": {
|
|
1678
|
+
"const": "headerFooterPart",
|
|
1679
|
+
"type": "string"
|
|
1680
|
+
},
|
|
1681
|
+
"refId": {
|
|
1682
|
+
"type": "string"
|
|
1683
|
+
}
|
|
1684
|
+
},
|
|
1685
|
+
"required": [
|
|
1686
|
+
"kind",
|
|
1687
|
+
"storyType",
|
|
1688
|
+
"refId"
|
|
1689
|
+
]
|
|
1690
|
+
},
|
|
1691
|
+
{
|
|
1692
|
+
"type": "object",
|
|
1693
|
+
"properties": {
|
|
1694
|
+
"kind": {
|
|
1695
|
+
"const": "story",
|
|
1696
|
+
"type": "string"
|
|
1697
|
+
},
|
|
1698
|
+
"storyType": {
|
|
1699
|
+
"const": "footnote",
|
|
1700
|
+
"type": "string"
|
|
1701
|
+
},
|
|
1702
|
+
"noteId": {
|
|
1703
|
+
"type": "string"
|
|
1704
|
+
}
|
|
1705
|
+
},
|
|
1706
|
+
"required": [
|
|
1707
|
+
"kind",
|
|
1708
|
+
"storyType",
|
|
1709
|
+
"noteId"
|
|
1710
|
+
]
|
|
1711
|
+
},
|
|
1712
|
+
{
|
|
1713
|
+
"type": "object",
|
|
1714
|
+
"properties": {
|
|
1715
|
+
"kind": {
|
|
1716
|
+
"const": "story",
|
|
1717
|
+
"type": "string"
|
|
1718
|
+
},
|
|
1719
|
+
"storyType": {
|
|
1720
|
+
"const": "endnote",
|
|
1721
|
+
"type": "string"
|
|
1722
|
+
},
|
|
1723
|
+
"noteId": {
|
|
1724
|
+
"type": "string"
|
|
1725
|
+
}
|
|
1726
|
+
},
|
|
1727
|
+
"required": [
|
|
1728
|
+
"kind",
|
|
1729
|
+
"storyType",
|
|
1730
|
+
"noteId"
|
|
1731
|
+
]
|
|
1732
|
+
}
|
|
1733
|
+
],
|
|
1734
|
+
"description": "Story scope. Defaults to document body when omitted. Use {kind:'story', storyType:'body'} for body, or other storyType values for headers, footers, footnotes, endnotes."
|
|
1488
1735
|
}
|
|
1489
1736
|
},
|
|
1490
1737
|
"required": [
|
|
1491
|
-
"
|
|
1492
|
-
"
|
|
1738
|
+
"kind",
|
|
1739
|
+
"segments"
|
|
1493
1740
|
]
|
|
1494
1741
|
}
|
|
1495
|
-
},
|
|
1496
|
-
"required": [
|
|
1497
|
-
"kind",
|
|
1498
|
-
"blockId",
|
|
1499
|
-
"range"
|
|
1500
1742
|
],
|
|
1501
|
-
"description": "Text range to anchor the comment
|
|
1743
|
+
"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. Only for actions 'create', 'update'. Omit for other actions."
|
|
1502
1744
|
},
|
|
1503
1745
|
"parentId": {
|
|
1504
1746
|
"type": "string",
|
|
@@ -1510,9 +1752,10 @@
|
|
|
1510
1752
|
},
|
|
1511
1753
|
"status": {
|
|
1512
1754
|
"type": "string",
|
|
1513
|
-
"description": "Set comment status. Use 'resolved' to
|
|
1755
|
+
"description": "Set comment status. Use 'resolved' to resolve a comment, or 'active' to reopen a previously resolved comment (lifecycle inverse). Only for action 'update'. Omit for other actions.",
|
|
1514
1756
|
"enum": [
|
|
1515
|
-
"resolved"
|
|
1757
|
+
"resolved",
|
|
1758
|
+
"active"
|
|
1516
1759
|
]
|
|
1517
1760
|
},
|
|
1518
1761
|
"isInternal": {
|