@superdoc-dev/sdk 1.8.0-next.3 → 1.8.0-next.30
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.openai.json
CHANGED
|
@@ -1093,22 +1093,27 @@
|
|
|
1093
1093
|
"type": "function",
|
|
1094
1094
|
"function": {
|
|
1095
1095
|
"name": "superdoc_list",
|
|
1096
|
-
"description": "Create and manipulate bullet and numbered lists.
|
|
1096
|
+
"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.",
|
|
1097
1097
|
"parameters": {
|
|
1098
1098
|
"type": "object",
|
|
1099
1099
|
"properties": {
|
|
1100
1100
|
"action": {
|
|
1101
1101
|
"type": "string",
|
|
1102
1102
|
"enum": [
|
|
1103
|
+
"attach",
|
|
1104
|
+
"continue_previous",
|
|
1103
1105
|
"create",
|
|
1104
1106
|
"detach",
|
|
1105
1107
|
"indent",
|
|
1106
1108
|
"insert",
|
|
1109
|
+
"merge",
|
|
1107
1110
|
"outdent",
|
|
1108
1111
|
"set_level",
|
|
1109
|
-
"set_type"
|
|
1112
|
+
"set_type",
|
|
1113
|
+
"set_value",
|
|
1114
|
+
"split"
|
|
1110
1115
|
],
|
|
1111
|
-
"description": "The action to perform. One of: create, detach, indent, insert, outdent, set_level, set_type."
|
|
1116
|
+
"description": "The action to perform. One of: attach, continue_previous, create, detach, indent, insert, merge, outdent, set_level, set_type, set_value, split."
|
|
1112
1117
|
},
|
|
1113
1118
|
"force": {
|
|
1114
1119
|
"type": "boolean",
|
|
@@ -1146,7 +1151,7 @@
|
|
|
1146
1151
|
"nodeType",
|
|
1147
1152
|
"nodeId"
|
|
1148
1153
|
],
|
|
1149
|
-
"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'."
|
|
1154
|
+
"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'."
|
|
1150
1155
|
},
|
|
1151
1156
|
"position": {
|
|
1152
1157
|
"type": "string",
|
|
@@ -1330,6 +1335,44 @@
|
|
|
1330
1335
|
],
|
|
1331
1336
|
"description": "Only for action 'create'. Omit for other actions."
|
|
1332
1337
|
},
|
|
1338
|
+
"attachTo": {
|
|
1339
|
+
"type": "object",
|
|
1340
|
+
"properties": {
|
|
1341
|
+
"kind": {
|
|
1342
|
+
"const": "block",
|
|
1343
|
+
"type": "string"
|
|
1344
|
+
},
|
|
1345
|
+
"nodeType": {
|
|
1346
|
+
"const": "listItem",
|
|
1347
|
+
"type": "string"
|
|
1348
|
+
},
|
|
1349
|
+
"nodeId": {
|
|
1350
|
+
"type": "string"
|
|
1351
|
+
}
|
|
1352
|
+
},
|
|
1353
|
+
"required": [
|
|
1354
|
+
"kind",
|
|
1355
|
+
"nodeType",
|
|
1356
|
+
"nodeId"
|
|
1357
|
+
],
|
|
1358
|
+
"description": "Required for action 'attach'."
|
|
1359
|
+
},
|
|
1360
|
+
"direction": {
|
|
1361
|
+
"type": "string",
|
|
1362
|
+
"enum": [
|
|
1363
|
+
"withPrevious",
|
|
1364
|
+
"withNext"
|
|
1365
|
+
],
|
|
1366
|
+
"description": "Required for action 'merge'."
|
|
1367
|
+
},
|
|
1368
|
+
"restartNumbering": {
|
|
1369
|
+
"type": "boolean",
|
|
1370
|
+
"description": "Only for action 'split'. Omit for other actions."
|
|
1371
|
+
},
|
|
1372
|
+
"value": {
|
|
1373
|
+
"type": "object",
|
|
1374
|
+
"description": "Required for action 'set_value'."
|
|
1375
|
+
},
|
|
1333
1376
|
"continuity": {
|
|
1334
1377
|
"type": "string",
|
|
1335
1378
|
"description": "Numbering continuity: 'preserve' keeps numbering; 'none' restarts. Only for action 'set_type'. Omit for other actions.",
|
|
@@ -1382,37 +1425,231 @@
|
|
|
1382
1425
|
"description": "Comment text content. Required for action 'create'."
|
|
1383
1426
|
},
|
|
1384
1427
|
"target": {
|
|
1385
|
-
"
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
"
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1428
|
+
"oneOf": [
|
|
1429
|
+
{
|
|
1430
|
+
"type": "object",
|
|
1431
|
+
"properties": {
|
|
1432
|
+
"kind": {
|
|
1433
|
+
"const": "text",
|
|
1434
|
+
"type": "string"
|
|
1435
|
+
},
|
|
1436
|
+
"blockId": {
|
|
1437
|
+
"type": "string"
|
|
1438
|
+
},
|
|
1439
|
+
"range": {
|
|
1440
|
+
"type": "object",
|
|
1441
|
+
"properties": {
|
|
1442
|
+
"start": {
|
|
1443
|
+
"type": "number"
|
|
1444
|
+
},
|
|
1445
|
+
"end": {
|
|
1446
|
+
"type": "number"
|
|
1447
|
+
}
|
|
1448
|
+
},
|
|
1449
|
+
"required": [
|
|
1450
|
+
"start",
|
|
1451
|
+
"end"
|
|
1452
|
+
]
|
|
1453
|
+
}
|
|
1454
|
+
},
|
|
1455
|
+
"required": [
|
|
1456
|
+
"kind",
|
|
1457
|
+
"blockId",
|
|
1458
|
+
"range"
|
|
1459
|
+
]
|
|
1393
1460
|
},
|
|
1394
|
-
|
|
1461
|
+
{
|
|
1395
1462
|
"type": "object",
|
|
1396
1463
|
"properties": {
|
|
1397
|
-
"
|
|
1398
|
-
"
|
|
1464
|
+
"kind": {
|
|
1465
|
+
"const": "text",
|
|
1466
|
+
"type": "string"
|
|
1399
1467
|
},
|
|
1400
|
-
"
|
|
1401
|
-
"type": "
|
|
1468
|
+
"segments": {
|
|
1469
|
+
"type": "array",
|
|
1470
|
+
"items": {
|
|
1471
|
+
"type": "object",
|
|
1472
|
+
"properties": {
|
|
1473
|
+
"blockId": {
|
|
1474
|
+
"type": "string"
|
|
1475
|
+
},
|
|
1476
|
+
"range": {
|
|
1477
|
+
"type": "object",
|
|
1478
|
+
"properties": {
|
|
1479
|
+
"start": {
|
|
1480
|
+
"type": "number"
|
|
1481
|
+
},
|
|
1482
|
+
"end": {
|
|
1483
|
+
"type": "number"
|
|
1484
|
+
}
|
|
1485
|
+
},
|
|
1486
|
+
"required": [
|
|
1487
|
+
"start",
|
|
1488
|
+
"end"
|
|
1489
|
+
]
|
|
1490
|
+
}
|
|
1491
|
+
},
|
|
1492
|
+
"required": [
|
|
1493
|
+
"blockId",
|
|
1494
|
+
"range"
|
|
1495
|
+
]
|
|
1496
|
+
}
|
|
1497
|
+
},
|
|
1498
|
+
"story": {
|
|
1499
|
+
"oneOf": [
|
|
1500
|
+
{
|
|
1501
|
+
"type": "object",
|
|
1502
|
+
"properties": {
|
|
1503
|
+
"kind": {
|
|
1504
|
+
"const": "story",
|
|
1505
|
+
"type": "string"
|
|
1506
|
+
},
|
|
1507
|
+
"storyType": {
|
|
1508
|
+
"const": "body",
|
|
1509
|
+
"type": "string"
|
|
1510
|
+
}
|
|
1511
|
+
},
|
|
1512
|
+
"required": [
|
|
1513
|
+
"kind",
|
|
1514
|
+
"storyType"
|
|
1515
|
+
]
|
|
1516
|
+
},
|
|
1517
|
+
{
|
|
1518
|
+
"type": "object",
|
|
1519
|
+
"properties": {
|
|
1520
|
+
"kind": {
|
|
1521
|
+
"const": "story",
|
|
1522
|
+
"type": "string"
|
|
1523
|
+
},
|
|
1524
|
+
"storyType": {
|
|
1525
|
+
"const": "headerFooterSlot",
|
|
1526
|
+
"type": "string"
|
|
1527
|
+
},
|
|
1528
|
+
"section": {
|
|
1529
|
+
"type": "object",
|
|
1530
|
+
"properties": {
|
|
1531
|
+
"kind": {
|
|
1532
|
+
"const": "section",
|
|
1533
|
+
"type": "string"
|
|
1534
|
+
},
|
|
1535
|
+
"sectionId": {
|
|
1536
|
+
"type": "string"
|
|
1537
|
+
}
|
|
1538
|
+
},
|
|
1539
|
+
"required": [
|
|
1540
|
+
"kind",
|
|
1541
|
+
"sectionId"
|
|
1542
|
+
]
|
|
1543
|
+
},
|
|
1544
|
+
"headerFooterKind": {
|
|
1545
|
+
"enum": [
|
|
1546
|
+
"header",
|
|
1547
|
+
"footer"
|
|
1548
|
+
]
|
|
1549
|
+
},
|
|
1550
|
+
"variant": {
|
|
1551
|
+
"enum": [
|
|
1552
|
+
"default",
|
|
1553
|
+
"first",
|
|
1554
|
+
"even"
|
|
1555
|
+
]
|
|
1556
|
+
},
|
|
1557
|
+
"resolution": {
|
|
1558
|
+
"enum": [
|
|
1559
|
+
"effective",
|
|
1560
|
+
"explicit"
|
|
1561
|
+
]
|
|
1562
|
+
},
|
|
1563
|
+
"onWrite": {
|
|
1564
|
+
"enum": [
|
|
1565
|
+
"materializeIfInherited",
|
|
1566
|
+
"editResolvedPart",
|
|
1567
|
+
"error"
|
|
1568
|
+
]
|
|
1569
|
+
}
|
|
1570
|
+
},
|
|
1571
|
+
"required": [
|
|
1572
|
+
"kind",
|
|
1573
|
+
"storyType",
|
|
1574
|
+
"section",
|
|
1575
|
+
"headerFooterKind",
|
|
1576
|
+
"variant"
|
|
1577
|
+
]
|
|
1578
|
+
},
|
|
1579
|
+
{
|
|
1580
|
+
"type": "object",
|
|
1581
|
+
"properties": {
|
|
1582
|
+
"kind": {
|
|
1583
|
+
"const": "story",
|
|
1584
|
+
"type": "string"
|
|
1585
|
+
},
|
|
1586
|
+
"storyType": {
|
|
1587
|
+
"const": "headerFooterPart",
|
|
1588
|
+
"type": "string"
|
|
1589
|
+
},
|
|
1590
|
+
"refId": {
|
|
1591
|
+
"type": "string"
|
|
1592
|
+
}
|
|
1593
|
+
},
|
|
1594
|
+
"required": [
|
|
1595
|
+
"kind",
|
|
1596
|
+
"storyType",
|
|
1597
|
+
"refId"
|
|
1598
|
+
]
|
|
1599
|
+
},
|
|
1600
|
+
{
|
|
1601
|
+
"type": "object",
|
|
1602
|
+
"properties": {
|
|
1603
|
+
"kind": {
|
|
1604
|
+
"const": "story",
|
|
1605
|
+
"type": "string"
|
|
1606
|
+
},
|
|
1607
|
+
"storyType": {
|
|
1608
|
+
"const": "footnote",
|
|
1609
|
+
"type": "string"
|
|
1610
|
+
},
|
|
1611
|
+
"noteId": {
|
|
1612
|
+
"type": "string"
|
|
1613
|
+
}
|
|
1614
|
+
},
|
|
1615
|
+
"required": [
|
|
1616
|
+
"kind",
|
|
1617
|
+
"storyType",
|
|
1618
|
+
"noteId"
|
|
1619
|
+
]
|
|
1620
|
+
},
|
|
1621
|
+
{
|
|
1622
|
+
"type": "object",
|
|
1623
|
+
"properties": {
|
|
1624
|
+
"kind": {
|
|
1625
|
+
"const": "story",
|
|
1626
|
+
"type": "string"
|
|
1627
|
+
},
|
|
1628
|
+
"storyType": {
|
|
1629
|
+
"const": "endnote",
|
|
1630
|
+
"type": "string"
|
|
1631
|
+
},
|
|
1632
|
+
"noteId": {
|
|
1633
|
+
"type": "string"
|
|
1634
|
+
}
|
|
1635
|
+
},
|
|
1636
|
+
"required": [
|
|
1637
|
+
"kind",
|
|
1638
|
+
"storyType",
|
|
1639
|
+
"noteId"
|
|
1640
|
+
]
|
|
1641
|
+
}
|
|
1642
|
+
],
|
|
1643
|
+
"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."
|
|
1402
1644
|
}
|
|
1403
1645
|
},
|
|
1404
1646
|
"required": [
|
|
1405
|
-
"
|
|
1406
|
-
"
|
|
1647
|
+
"kind",
|
|
1648
|
+
"segments"
|
|
1407
1649
|
]
|
|
1408
1650
|
}
|
|
1409
|
-
},
|
|
1410
|
-
"required": [
|
|
1411
|
-
"kind",
|
|
1412
|
-
"blockId",
|
|
1413
|
-
"range"
|
|
1414
1651
|
],
|
|
1415
|
-
"description": "Text range to anchor the comment
|
|
1652
|
+
"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."
|
|
1416
1653
|
},
|
|
1417
1654
|
"parentId": {
|
|
1418
1655
|
"type": "string",
|
|
@@ -1424,9 +1661,10 @@
|
|
|
1424
1661
|
},
|
|
1425
1662
|
"status": {
|
|
1426
1663
|
"type": "string",
|
|
1427
|
-
"description": "Set comment status. Use 'resolved' to
|
|
1664
|
+
"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.",
|
|
1428
1665
|
"enum": [
|
|
1429
|
-
"resolved"
|
|
1666
|
+
"resolved",
|
|
1667
|
+
"active"
|
|
1430
1668
|
]
|
|
1431
1669
|
},
|
|
1432
1670
|
"isInternal": {
|