@superdoc-dev/sdk 1.19.2 → 1.20.1

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.
Files changed (103) hide show
  1. package/dist/action-primitives/doc-index.cjs +215 -0
  2. package/dist/action-primitives/doc-index.d.ts +83 -0
  3. package/dist/action-primitives/doc-index.d.ts.map +1 -0
  4. package/dist/action-primitives/doc-index.js +211 -0
  5. package/dist/action-primitives/engine.cjs +204 -0
  6. package/dist/action-primitives/engine.d.ts +71 -0
  7. package/dist/action-primitives/engine.d.ts.map +1 -0
  8. package/dist/action-primitives/engine.js +196 -0
  9. package/dist/action-primitives/receipt.cjs +39 -0
  10. package/dist/action-primitives/receipt.d.ts +49 -0
  11. package/dist/action-primitives/receipt.d.ts.map +1 -0
  12. package/dist/action-primitives/receipt.js +32 -0
  13. package/dist/action-primitives/resolve.cjs +252 -0
  14. package/dist/action-primitives/resolve.d.ts +56 -0
  15. package/dist/action-primitives/resolve.d.ts.map +1 -0
  16. package/dist/action-primitives/resolve.js +246 -0
  17. package/dist/action-primitives/session-cache.cjs +43 -0
  18. package/dist/action-primitives/session-cache.d.ts +19 -0
  19. package/dist/action-primitives/session-cache.d.ts.map +1 -0
  20. package/dist/action-primitives/session-cache.js +37 -0
  21. package/dist/action-primitives/tools/list-transform.cjs +661 -0
  22. package/dist/action-primitives/tools/list-transform.d.ts +98 -0
  23. package/dist/action-primitives/tools/list-transform.d.ts.map +1 -0
  24. package/dist/action-primitives/tools/list-transform.js +656 -0
  25. package/dist/action-primitives/tools/structure-insert.cjs +1343 -0
  26. package/dist/action-primitives/tools/structure-insert.d.ts +183 -0
  27. package/dist/action-primitives/tools/structure-insert.d.ts.map +1 -0
  28. package/dist/action-primitives/tools/structure-insert.js +1338 -0
  29. package/dist/action-primitives/tools/text-transform.cjs +669 -0
  30. package/dist/action-primitives/tools/text-transform.d.ts +64 -0
  31. package/dist/action-primitives/tools/text-transform.d.ts.map +1 -0
  32. package/dist/action-primitives/tools/text-transform.js +664 -0
  33. package/dist/action-primitives/types.d.ts +36 -0
  34. package/dist/action-primitives/types.d.ts.map +1 -0
  35. package/dist/action-primitives/types.js +15 -0
  36. package/dist/agent/actions.cjs +5381 -0
  37. package/dist/agent/actions.d.ts +404 -0
  38. package/dist/agent/actions.d.ts.map +1 -0
  39. package/dist/agent/actions.js +5373 -0
  40. package/dist/agent/catalog.cjs +483 -0
  41. package/dist/agent/catalog.d.ts +103 -0
  42. package/dist/agent/catalog.d.ts.map +1 -0
  43. package/dist/agent/catalog.js +471 -0
  44. package/dist/agent/doc-snapshot.cjs +663 -0
  45. package/dist/agent/doc-snapshot.d.ts +247 -0
  46. package/dist/agent/doc-snapshot.d.ts.map +1 -0
  47. package/dist/agent/doc-snapshot.js +657 -0
  48. package/dist/agent/index.d.ts +16 -0
  49. package/dist/agent/index.d.ts.map +1 -0
  50. package/dist/agent/index.js +15 -0
  51. package/dist/agent/ir.cjs +170 -0
  52. package/dist/agent/ir.d.ts +216 -0
  53. package/dist/agent/ir.d.ts.map +1 -0
  54. package/dist/agent/ir.js +181 -0
  55. package/dist/agent/operation-catalog.cjs +418 -0
  56. package/dist/agent/operation-catalog.d.ts +36 -0
  57. package/dist/agent/operation-catalog.d.ts.map +1 -0
  58. package/dist/agent/operation-catalog.js +446 -0
  59. package/dist/agent/runtime.cjs +501 -0
  60. package/dist/agent/runtime.d.ts +120 -0
  61. package/dist/agent/runtime.d.ts.map +1 -0
  62. package/dist/agent/runtime.js +493 -0
  63. package/dist/embedded-prompts.generated.cjs +13 -0
  64. package/dist/embedded-prompts.generated.d.ts +4 -0
  65. package/dist/embedded-prompts.generated.d.ts.map +1 -0
  66. package/dist/embedded-prompts.generated.js +9 -0
  67. package/dist/generated/client.cjs +18 -0
  68. package/dist/generated/client.d.ts +134 -0
  69. package/dist/generated/client.d.ts.map +1 -1
  70. package/dist/generated/client.js +18 -0
  71. package/dist/generated/contract.cjs +622 -3
  72. package/dist/generated/contract.d.ts.map +1 -1
  73. package/dist/generated/contract.js +622 -3
  74. package/dist/index.cjs +3 -7
  75. package/dist/index.d.ts +8 -6
  76. package/dist/index.d.ts.map +1 -1
  77. package/dist/index.js +2 -8
  78. package/dist/presets/core.cjs +454 -0
  79. package/dist/presets/core.d.ts +20 -0
  80. package/dist/presets/core.d.ts.map +1 -0
  81. package/dist/presets/core.js +447 -0
  82. package/dist/presets.cjs +55 -8
  83. package/dist/presets.d.ts +39 -8
  84. package/dist/presets.d.ts.map +1 -1
  85. package/dist/presets.js +53 -8
  86. package/dist/prompts/mcp-prompt.md +23 -0
  87. package/dist/prompts/system-prompt.md +108 -0
  88. package/dist/runtime/transport-common.cjs +8 -0
  89. package/dist/runtime/transport-common.d.ts.map +1 -1
  90. package/dist/runtime/transport-common.js +8 -0
  91. package/dist/tools.cjs +46 -11
  92. package/dist/tools.d.ts +55 -8
  93. package/dist/tools.d.ts.map +1 -1
  94. package/dist/tools.js +45 -13
  95. package/package.json +9 -8
  96. package/tools/__pycache__/__init__.cpython-312.pyc +0 -0
  97. package/tools/__pycache__/intent_dispatch_generated.cpython-312.pyc +0 -0
  98. package/tools/catalog.json +14 -0
  99. package/tools/tools-policy.json +1 -1
  100. package/tools/tools.anthropic.json +14 -0
  101. package/tools/tools.generic.json +14 -0
  102. package/tools/tools.openai.json +14 -0
  103. package/tools/tools.vercel.json +14 -0
@@ -13474,7 +13474,7 @@ const CONTRACT = {
13474
13474
  "list"
13475
13475
  ],
13476
13476
  "category": "core",
13477
- "description": "List top-level blocks in document order with IDs, types, text previews, and optional full text when includeText:true. Supports pagination via offset/limit, optional nodeType filtering, and single-story scoping via `in: <StoryLocator>`.",
13477
+ "description": "List top-level blocks in document order with IDs, types, text previews, and optional full text when includeText:true. Text, previews, lengths, and formatting hints use the VISIBLE model: pending tracked deletions are excluded (matching how edit refs resolve), and inline atoms render as a single placeholder character. Supports pagination via offset/limit, optional nodeType filtering, and single-story scoping via `in: <StoryLocator>`.",
13478
13478
  "requiresDocumentContext": true,
13479
13479
  "docRequirement": "optional",
13480
13480
  "responseEnvelopeKey": "result",
@@ -13884,6 +13884,65 @@ const CONTRACT = {
13884
13884
  },
13885
13885
  "additionalProperties": false
13886
13886
  },
13887
+ "numbering": {
13888
+ "type": "object",
13889
+ "description": "Computed numbering rendering (marker/path/kind) for numbered list items and numbered headings — e.g. the rendered clause label \"2.3.\". Absent for non-numbered blocks.",
13890
+ "properties": {
13891
+ "marker": {
13892
+ "oneOf": [
13893
+ {
13894
+ "type": "string"
13895
+ },
13896
+ {
13897
+ "type": "null"
13898
+ }
13899
+ ]
13900
+ },
13901
+ "path": {
13902
+ "oneOf": [
13903
+ {
13904
+ "type": "array",
13905
+ "items": {
13906
+ "type": "number"
13907
+ }
13908
+ },
13909
+ {
13910
+ "type": "null"
13911
+ }
13912
+ ]
13913
+ },
13914
+ "kind": {
13915
+ "oneOf": [
13916
+ {
13917
+ "type": "string"
13918
+ },
13919
+ {
13920
+ "type": "null"
13921
+ }
13922
+ ]
13923
+ }
13924
+ },
13925
+ "additionalProperties": false
13926
+ },
13927
+ "indent": {
13928
+ "type": "object",
13929
+ "description": "Direct paragraph indentation in twips (only non-zero fields present).",
13930
+ "properties": {
13931
+ "left": {
13932
+ "type": "number"
13933
+ },
13934
+ "right": {
13935
+ "type": "number"
13936
+ },
13937
+ "firstLine": {
13938
+ "type": "number"
13939
+ },
13940
+ "hanging": {
13941
+ "type": "number"
13942
+ }
13943
+ },
13944
+ "additionalProperties": false
13945
+ },
13887
13946
  "ref": {
13888
13947
  "type": "string",
13889
13948
  "description": "Ref handle for this block. Pass directly to superdoc_format or superdoc_edit ref param. Only present for non-empty blocks."
@@ -112872,7 +112931,7 @@ const CONTRACT = {
112872
112931
  "attach"
112873
112932
  ],
112874
112933
  "category": "lists",
112875
- "description": "Convert non-list paragraphs to list items under an existing list sequence.",
112934
+ "description": "Convert non-list paragraphs to list items under an existing list sequence. With changeMode:\"tracked\" the former (unnumbered) paragraph properties are recorded as a w:pPrChange so a reviewer can accept/reject the numbering.",
112876
112935
  "requiresDocumentContext": true,
112877
112936
  "docRequirement": "optional",
112878
112937
  "responseEnvelopeKey": "result",
@@ -113222,7 +113281,7 @@ const CONTRACT = {
113222
113281
  "constraints": null,
113223
113282
  "mutates": true,
113224
113283
  "idempotency": "conditional",
113225
- "supportsTrackedMode": false,
113284
+ "supportsTrackedMode": true,
113226
113285
  "supportsDryRun": true,
113227
113286
  "inputSchema": {
113228
113287
  "type": "object",
@@ -134541,6 +134600,17 @@ const CONTRACT = {
134541
134600
  }
134542
134601
  ],
134543
134602
  "description": "Optional move pairing assertion. 'pair' requires the resolved tracked change to be a paired move; 'source' / 'destination' further narrow to a specific half. When the assertion does not hold the decide adapter fails closed."
134603
+ },
134604
+ "side": {
134605
+ "oneOf": [
134606
+ {
134607
+ "const": "inserted"
134608
+ },
134609
+ {
134610
+ "const": "deleted"
134611
+ }
134612
+ ],
134613
+ "description": "Optional replacement side. When the id resolves to a paired replacement, decides only the 'inserted' or 'deleted' half, leaving the other half as a standalone pending change."
134544
134614
  }
134545
134615
  },
134546
134616
  "required": [
@@ -135837,6 +135907,17 @@ const CONTRACT = {
135837
135907
  }
135838
135908
  ],
135839
135909
  "description": "Optional move pairing assertion. 'pair' requires the resolved tracked change to be a paired move; 'source' / 'destination' further narrow to a specific half. When the assertion does not hold the decide adapter fails closed."
135910
+ },
135911
+ "side": {
135912
+ "oneOf": [
135913
+ {
135914
+ "const": "inserted"
135915
+ },
135916
+ {
135917
+ "const": "deleted"
135918
+ }
135919
+ ],
135920
+ "description": "Optional replacement side. When the id resolves to a paired replacement, decides only the 'inserted' or 'deleted' half."
135840
135921
  }
135841
135922
  },
135842
135923
  "required": [
@@ -136293,6 +136374,13 @@ const CONTRACT = {
136293
136374
  "destination"
136294
136375
  ],
136295
136376
  "description": "Optional move pairing assertion. 'pair' requires the resolved tracked change to be a paired move; 'source' / 'destination' further narrow to a specific half. When the assertion does not hold the decide adapter fails closed."
136377
+ },
136378
+ "side": {
136379
+ "enum": [
136380
+ "inserted",
136381
+ "deleted"
136382
+ ],
136383
+ "description": "Optional replacement side. When the id resolves to a paired replacement, decides only the 'inserted' or 'deleted' half, leaving the other half as a standalone pending change."
136296
136384
  }
136297
136385
  },
136298
136386
  "additionalProperties": false,
@@ -136486,6 +136574,13 @@ const CONTRACT = {
136486
136574
  "destination"
136487
136575
  ],
136488
136576
  "description": "Optional move pairing assertion. 'pair' requires the resolved tracked change to be a paired move; 'source' / 'destination' further narrow to a specific half. When the assertion does not hold the decide adapter fails closed."
136577
+ },
136578
+ "side": {
136579
+ "enum": [
136580
+ "inserted",
136581
+ "deleted"
136582
+ ],
136583
+ "description": "Optional replacement side. When the id resolves to a paired replacement, decides only the 'inserted' or 'deleted' half."
136489
136584
  }
136490
136585
  },
136491
136586
  "additionalProperties": false,
@@ -251114,6 +251209,112 @@ const CONTRACT = {
251114
251209
  ]
251115
251210
  }
251116
251211
  },
251212
+ "doc.executeCode": {
251213
+ "operationId": "doc.executeCode",
251214
+ "sdkSurface": "document",
251215
+ "command": "execute code",
251216
+ "commandTokens": [
251217
+ "execute",
251218
+ "code"
251219
+ ],
251220
+ "category": "core",
251221
+ "description": "Run model-authored JavaScript IN-HOST against the live, SYNCHRONOUS Document API for the open session. Two globals are injected: `doc` (the synchronous Document API — do NOT await doc.* calls) and `console`. `return` a short summary; logs and the return value come back structured as { ok, result, logs, error }. Use for complex/multi-step workflows (loops, per-item branching, extract-then-generate) in ONE call instead of chaining many narrow tools. Large code can be passed on stdin.",
251222
+ "requiresDocumentContext": false,
251223
+ "docRequirement": "none",
251224
+ "responseEnvelopeKey": null,
251225
+ "params": [
251226
+ {
251227
+ "name": "sessionId",
251228
+ "kind": "flag",
251229
+ "type": "string",
251230
+ "flag": "session",
251231
+ "description": "Session ID for multi-session workflows. Optional when only one session is open."
251232
+ },
251233
+ {
251234
+ "name": "expectedRevision",
251235
+ "kind": "flag",
251236
+ "type": "number",
251237
+ "flag": "expected-revision",
251238
+ "agentVisible": false
251239
+ },
251240
+ {
251241
+ "name": "code",
251242
+ "kind": "flag",
251243
+ "type": "string",
251244
+ "description": "JavaScript body run as an async function with `doc` (synchronous Document API — do NOT await) and `console` injected. Omit to pass code on stdin."
251245
+ }
251246
+ ],
251247
+ "constraints": null,
251248
+ "inputSchema": {
251249
+ "type": "object",
251250
+ "properties": {
251251
+ "code": {
251252
+ "type": "string",
251253
+ "description": "JavaScript body run as an async function with `doc` (synchronous Document API — do NOT await) and `console` injected. Omit to pass code on stdin."
251254
+ }
251255
+ },
251256
+ "additionalProperties": false
251257
+ },
251258
+ "mutates": true,
251259
+ "idempotency": "non-idempotent",
251260
+ "supportsTrackedMode": false,
251261
+ "supportsDryRun": false,
251262
+ "outputSchema": {
251263
+ "type": "object",
251264
+ "properties": {
251265
+ "ok": {
251266
+ "type": "boolean"
251267
+ },
251268
+ "result": {},
251269
+ "logs": {
251270
+ "type": "array",
251271
+ "items": {
251272
+ "type": "object",
251273
+ "properties": {
251274
+ "level": {
251275
+ "type": "string"
251276
+ },
251277
+ "message": {
251278
+ "type": "string"
251279
+ }
251280
+ }
251281
+ }
251282
+ },
251283
+ "error": {
251284
+ "type": "object",
251285
+ "properties": {
251286
+ "name": {
251287
+ "type": "string"
251288
+ },
251289
+ "message": {
251290
+ "type": "string"
251291
+ },
251292
+ "stack": {
251293
+ "type": "string"
251294
+ }
251295
+ }
251296
+ },
251297
+ "context": {
251298
+ "type": "object",
251299
+ "properties": {
251300
+ "dirty": {
251301
+ "type": "boolean"
251302
+ },
251303
+ "revision": {
251304
+ "type": "number"
251305
+ },
251306
+ "mutated": {
251307
+ "type": "boolean"
251308
+ }
251309
+ }
251310
+ }
251311
+ },
251312
+ "required": [
251313
+ "ok",
251314
+ "logs"
251315
+ ]
251316
+ }
251317
+ },
251117
251318
  "doc.status": {
251118
251319
  "operationId": "doc.status",
251119
251320
  "sdkSurface": "internal",
@@ -251702,6 +251903,424 @@ const CONTRACT = {
251702
251903
  "activeSessionId"
251703
251904
  ]
251704
251905
  }
251906
+ },
251907
+ "doc.preset.list": {
251908
+ "operationId": "doc.preset.list",
251909
+ "sdkSurface": "document",
251910
+ "command": "preset list",
251911
+ "commandTokens": [
251912
+ "preset",
251913
+ "list"
251914
+ ],
251915
+ "category": "session",
251916
+ "description": "List the LLM-tools preset ids registered in the Node SDK preset registry, plus the default preset id.",
251917
+ "requiresDocumentContext": false,
251918
+ "docRequirement": "none",
251919
+ "responseEnvelopeKey": null,
251920
+ "params": [],
251921
+ "constraints": null,
251922
+ "inputSchema": {
251923
+ "type": "object",
251924
+ "properties": {},
251925
+ "additionalProperties": false
251926
+ },
251927
+ "mutates": false,
251928
+ "idempotency": "idempotent",
251929
+ "supportsTrackedMode": false,
251930
+ "supportsDryRun": false,
251931
+ "outputSchema": {
251932
+ "type": "object",
251933
+ "properties": {
251934
+ "presets": {
251935
+ "type": "array",
251936
+ "items": {
251937
+ "type": "string"
251938
+ }
251939
+ },
251940
+ "defaultPreset": {
251941
+ "type": "string"
251942
+ }
251943
+ },
251944
+ "required": [
251945
+ "presets",
251946
+ "defaultPreset"
251947
+ ]
251948
+ },
251949
+ "skipAsATool": true
251950
+ },
251951
+ "doc.preset.getCatalog": {
251952
+ "operationId": "doc.preset.getCatalog",
251953
+ "sdkSurface": "document",
251954
+ "command": "preset get-catalog",
251955
+ "commandTokens": [
251956
+ "preset",
251957
+ "get-catalog"
251958
+ ],
251959
+ "category": "session",
251960
+ "description": "Return the full tool catalog for an LLM-tools preset (defaults to the registered default preset).",
251961
+ "requiresDocumentContext": false,
251962
+ "docRequirement": "none",
251963
+ "responseEnvelopeKey": null,
251964
+ "params": [
251965
+ {
251966
+ "name": "preset",
251967
+ "kind": "flag",
251968
+ "type": "string",
251969
+ "description": "Preset id. Defaults to the SDK default preset (legacy)."
251970
+ }
251971
+ ],
251972
+ "constraints": null,
251973
+ "inputSchema": {
251974
+ "type": "object",
251975
+ "properties": {
251976
+ "preset": {
251977
+ "type": "string",
251978
+ "description": "Preset id. Defaults to the SDK default preset (legacy)."
251979
+ }
251980
+ },
251981
+ "additionalProperties": false
251982
+ },
251983
+ "mutates": false,
251984
+ "idempotency": "idempotent",
251985
+ "supportsTrackedMode": false,
251986
+ "supportsDryRun": false,
251987
+ "outputSchema": {
251988
+ "type": "object"
251989
+ },
251990
+ "skipAsATool": true
251991
+ },
251992
+ "doc.preset.getTools": {
251993
+ "operationId": "doc.preset.getTools",
251994
+ "sdkSurface": "document",
251995
+ "command": "preset get-tools",
251996
+ "commandTokens": [
251997
+ "preset",
251998
+ "get-tools"
251999
+ ],
252000
+ "category": "session",
252001
+ "description": "Return the provider-shaped tool array (openai|anthropic|vercel|generic) for an LLM-tools preset, plus the active cache strategy.",
252002
+ "requiresDocumentContext": false,
252003
+ "docRequirement": "none",
252004
+ "responseEnvelopeKey": null,
252005
+ "params": [
252006
+ {
252007
+ "name": "provider",
252008
+ "kind": "flag",
252009
+ "type": "string",
252010
+ "required": true,
252011
+ "schema": {
252012
+ "oneOf": [
252013
+ {
252014
+ "const": "openai"
252015
+ },
252016
+ {
252017
+ "const": "anthropic"
252018
+ },
252019
+ {
252020
+ "const": "vercel"
252021
+ },
252022
+ {
252023
+ "const": "generic"
252024
+ }
252025
+ ]
252026
+ },
252027
+ "description": "Tool provider format: openai | anthropic | vercel | generic."
252028
+ },
252029
+ {
252030
+ "name": "preset",
252031
+ "kind": "flag",
252032
+ "type": "string",
252033
+ "description": "Preset id. Defaults to the SDK default preset (legacy)."
252034
+ },
252035
+ {
252036
+ "name": "cache",
252037
+ "kind": "flag",
252038
+ "type": "boolean",
252039
+ "description": "Apply provider-specific prompt-cache markers."
252040
+ },
252041
+ {
252042
+ "name": "excludeActions",
252043
+ "kind": "flag",
252044
+ "type": "string",
252045
+ "description": "Comma-separated action names to remove from the advertised action surface (core preset). Unknown names fail."
252046
+ }
252047
+ ],
252048
+ "constraints": null,
252049
+ "inputSchema": {
252050
+ "type": "object",
252051
+ "properties": {
252052
+ "provider": {
252053
+ "type": "string",
252054
+ "oneOf": [
252055
+ {
252056
+ "const": "openai"
252057
+ },
252058
+ {
252059
+ "const": "anthropic"
252060
+ },
252061
+ {
252062
+ "const": "vercel"
252063
+ },
252064
+ {
252065
+ "const": "generic"
252066
+ }
252067
+ ],
252068
+ "description": "Tool provider format: openai | anthropic | vercel | generic."
252069
+ },
252070
+ "preset": {
252071
+ "type": "string",
252072
+ "description": "Preset id. Defaults to the SDK default preset (legacy)."
252073
+ },
252074
+ "cache": {
252075
+ "type": "boolean",
252076
+ "description": "Apply provider-specific prompt-cache markers."
252077
+ },
252078
+ "excludeActions": {
252079
+ "type": "string",
252080
+ "description": "Comma-separated action names to remove from the advertised action surface (core preset). Unknown names fail."
252081
+ }
252082
+ },
252083
+ "required": [
252084
+ "provider"
252085
+ ],
252086
+ "additionalProperties": false
252087
+ },
252088
+ "mutates": false,
252089
+ "idempotency": "idempotent",
252090
+ "supportsTrackedMode": false,
252091
+ "supportsDryRun": false,
252092
+ "outputSchema": {
252093
+ "type": "object",
252094
+ "properties": {
252095
+ "tools": {
252096
+ "type": "array"
252097
+ },
252098
+ "cacheStrategy": {
252099
+ "type": "string"
252100
+ }
252101
+ },
252102
+ "required": [
252103
+ "tools",
252104
+ "cacheStrategy"
252105
+ ]
252106
+ },
252107
+ "skipAsATool": true
252108
+ },
252109
+ "doc.preset.getSystemPrompt": {
252110
+ "operationId": "doc.preset.getSystemPrompt",
252111
+ "sdkSurface": "document",
252112
+ "command": "preset get-system-prompt",
252113
+ "commandTokens": [
252114
+ "preset",
252115
+ "get-system-prompt"
252116
+ ],
252117
+ "category": "session",
252118
+ "description": "Return the SDK-style system prompt for an LLM-tools preset.",
252119
+ "requiresDocumentContext": false,
252120
+ "docRequirement": "none",
252121
+ "responseEnvelopeKey": null,
252122
+ "params": [
252123
+ {
252124
+ "name": "preset",
252125
+ "kind": "flag",
252126
+ "type": "string",
252127
+ "description": "Preset id. Defaults to the SDK default preset (legacy)."
252128
+ },
252129
+ {
252130
+ "name": "excludeActions",
252131
+ "kind": "flag",
252132
+ "type": "string",
252133
+ "description": "Comma-separated action names whose per-action documentation lines are dropped from the prompt (core preset)."
252134
+ }
252135
+ ],
252136
+ "constraints": null,
252137
+ "inputSchema": {
252138
+ "type": "object",
252139
+ "properties": {
252140
+ "preset": {
252141
+ "type": "string",
252142
+ "description": "Preset id. Defaults to the SDK default preset (legacy)."
252143
+ },
252144
+ "excludeActions": {
252145
+ "type": "string",
252146
+ "description": "Comma-separated action names whose per-action documentation lines are dropped from the prompt (core preset)."
252147
+ }
252148
+ },
252149
+ "additionalProperties": false
252150
+ },
252151
+ "mutates": false,
252152
+ "idempotency": "idempotent",
252153
+ "supportsTrackedMode": false,
252154
+ "supportsDryRun": false,
252155
+ "outputSchema": {
252156
+ "type": "object",
252157
+ "properties": {
252158
+ "prompt": {
252159
+ "type": "string"
252160
+ }
252161
+ },
252162
+ "required": [
252163
+ "prompt"
252164
+ ]
252165
+ },
252166
+ "skipAsATool": true
252167
+ },
252168
+ "doc.preset.getMcpPrompt": {
252169
+ "operationId": "doc.preset.getMcpPrompt",
252170
+ "sdkSurface": "document",
252171
+ "command": "preset get-mcp-prompt",
252172
+ "commandTokens": [
252173
+ "preset",
252174
+ "get-mcp-prompt"
252175
+ ],
252176
+ "category": "session",
252177
+ "description": "Return the MCP-flavored system prompt for an LLM-tools preset.",
252178
+ "requiresDocumentContext": false,
252179
+ "docRequirement": "none",
252180
+ "responseEnvelopeKey": null,
252181
+ "params": [
252182
+ {
252183
+ "name": "preset",
252184
+ "kind": "flag",
252185
+ "type": "string",
252186
+ "description": "Preset id. Defaults to the SDK default preset (legacy)."
252187
+ }
252188
+ ],
252189
+ "constraints": null,
252190
+ "inputSchema": {
252191
+ "type": "object",
252192
+ "properties": {
252193
+ "preset": {
252194
+ "type": "string",
252195
+ "description": "Preset id. Defaults to the SDK default preset (legacy)."
252196
+ }
252197
+ },
252198
+ "additionalProperties": false
252199
+ },
252200
+ "mutates": false,
252201
+ "idempotency": "idempotent",
252202
+ "supportsTrackedMode": false,
252203
+ "supportsDryRun": false,
252204
+ "outputSchema": {
252205
+ "type": "object",
252206
+ "properties": {
252207
+ "prompt": {
252208
+ "type": "string"
252209
+ }
252210
+ },
252211
+ "required": [
252212
+ "prompt"
252213
+ ]
252214
+ },
252215
+ "skipAsATool": true
252216
+ },
252217
+ "doc.preset.dispatch": {
252218
+ "operationId": "doc.preset.dispatch",
252219
+ "sdkSurface": "document",
252220
+ "command": "preset dispatch",
252221
+ "commandTokens": [
252222
+ "preset",
252223
+ "dispatch"
252224
+ ],
252225
+ "category": "core",
252226
+ "description": "Dispatch an LLM tool call through the named preset's dispatcher against the active session's live document. Used by cross-language SDKs (e.g. Python) to proxy preset behavior over the CLI.",
252227
+ "requiresDocumentContext": false,
252228
+ "docRequirement": "none",
252229
+ "responseEnvelopeKey": null,
252230
+ "params": [
252231
+ {
252232
+ "name": "sessionId",
252233
+ "kind": "flag",
252234
+ "type": "string",
252235
+ "flag": "session",
252236
+ "description": "Session ID for multi-session workflows. Optional when only one session is open."
252237
+ },
252238
+ {
252239
+ "name": "expectedRevision",
252240
+ "kind": "flag",
252241
+ "type": "number",
252242
+ "flag": "expected-revision",
252243
+ "agentVisible": false
252244
+ },
252245
+ {
252246
+ "name": "toolName",
252247
+ "kind": "flag",
252248
+ "type": "string",
252249
+ "flag": "tool-name",
252250
+ "required": true,
252251
+ "description": "Tool name to dispatch (e.g. superdoc_perform_action, superdoc_inspect, superdoc_execute_code)."
252252
+ },
252253
+ {
252254
+ "name": "args",
252255
+ "kind": "jsonFlag",
252256
+ "type": "json",
252257
+ "flag": "args-json",
252258
+ "description": "Tool arguments as a JSON object (matches the preset tool input schema)."
252259
+ },
252260
+ {
252261
+ "name": "excludeActions",
252262
+ "kind": "flag",
252263
+ "type": "string",
252264
+ "description": "Comma-separated action names to refuse at dispatch (defense-in-depth for a narrowed tool surface)."
252265
+ },
252266
+ {
252267
+ "name": "preset",
252268
+ "kind": "flag",
252269
+ "type": "string",
252270
+ "description": "Preset id. Defaults to the SDK default preset (legacy)."
252271
+ }
252272
+ ],
252273
+ "constraints": null,
252274
+ "inputSchema": {
252275
+ "type": "object",
252276
+ "properties": {
252277
+ "toolName": {
252278
+ "type": "string",
252279
+ "description": "Tool name to dispatch (e.g. superdoc_perform_action, superdoc_inspect, superdoc_execute_code)."
252280
+ },
252281
+ "args": {
252282
+ "type": "object",
252283
+ "description": "Tool arguments as a JSON object (matches the preset tool input schema)."
252284
+ },
252285
+ "excludeActions": {
252286
+ "type": "string",
252287
+ "description": "Comma-separated action names to refuse at dispatch (defense-in-depth for a narrowed tool surface)."
252288
+ },
252289
+ "preset": {
252290
+ "type": "string",
252291
+ "description": "Preset id. Defaults to the SDK default preset (legacy)."
252292
+ }
252293
+ },
252294
+ "required": [
252295
+ "toolName"
252296
+ ],
252297
+ "additionalProperties": false
252298
+ },
252299
+ "mutates": true,
252300
+ "idempotency": "non-idempotent",
252301
+ "supportsTrackedMode": false,
252302
+ "supportsDryRun": false,
252303
+ "outputSchema": {
252304
+ "type": "object",
252305
+ "properties": {
252306
+ "result": {},
252307
+ "context": {
252308
+ "type": "object",
252309
+ "properties": {
252310
+ "dirty": {
252311
+ "type": "boolean"
252312
+ },
252313
+ "revision": {
252314
+ "type": "number"
252315
+ },
252316
+ "mutated": {
252317
+ "type": "boolean"
252318
+ }
252319
+ }
252320
+ }
252321
+ }
252322
+ },
252323
+ "skipAsATool": true
251705
252324
  }
251706
252325
  }
251707
252326
  };