@superdoc-dev/sdk 1.16.0-next.50 → 1.16.0-next.51
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/action-primitives/doc-index.cjs +215 -0
- package/dist/action-primitives/doc-index.d.ts +83 -0
- package/dist/action-primitives/doc-index.d.ts.map +1 -0
- package/dist/action-primitives/doc-index.js +211 -0
- package/dist/action-primitives/engine.cjs +204 -0
- package/dist/action-primitives/engine.d.ts +71 -0
- package/dist/action-primitives/engine.d.ts.map +1 -0
- package/dist/action-primitives/engine.js +196 -0
- package/dist/action-primitives/receipt.cjs +39 -0
- package/dist/action-primitives/receipt.d.ts +49 -0
- package/dist/action-primitives/receipt.d.ts.map +1 -0
- package/dist/action-primitives/receipt.js +32 -0
- package/dist/action-primitives/resolve.cjs +252 -0
- package/dist/action-primitives/resolve.d.ts +56 -0
- package/dist/action-primitives/resolve.d.ts.map +1 -0
- package/dist/action-primitives/resolve.js +246 -0
- package/dist/action-primitives/session-cache.cjs +43 -0
- package/dist/action-primitives/session-cache.d.ts +19 -0
- package/dist/action-primitives/session-cache.d.ts.map +1 -0
- package/dist/action-primitives/session-cache.js +37 -0
- package/dist/action-primitives/tools/list-transform.cjs +661 -0
- package/dist/action-primitives/tools/list-transform.d.ts +98 -0
- package/dist/action-primitives/tools/list-transform.d.ts.map +1 -0
- package/dist/action-primitives/tools/list-transform.js +656 -0
- package/dist/action-primitives/tools/structure-insert.cjs +1343 -0
- package/dist/action-primitives/tools/structure-insert.d.ts +183 -0
- package/dist/action-primitives/tools/structure-insert.d.ts.map +1 -0
- package/dist/action-primitives/tools/structure-insert.js +1338 -0
- package/dist/action-primitives/tools/text-transform.cjs +669 -0
- package/dist/action-primitives/tools/text-transform.d.ts +64 -0
- package/dist/action-primitives/tools/text-transform.d.ts.map +1 -0
- package/dist/action-primitives/tools/text-transform.js +664 -0
- package/dist/action-primitives/types.d.ts +36 -0
- package/dist/action-primitives/types.d.ts.map +1 -0
- package/dist/action-primitives/types.js +15 -0
- package/dist/agent/actions.cjs +5381 -0
- package/dist/agent/actions.d.ts +404 -0
- package/dist/agent/actions.d.ts.map +1 -0
- package/dist/agent/actions.js +5373 -0
- package/dist/agent/catalog.cjs +483 -0
- package/dist/agent/catalog.d.ts +103 -0
- package/dist/agent/catalog.d.ts.map +1 -0
- package/dist/agent/catalog.js +471 -0
- package/dist/agent/doc-snapshot.cjs +663 -0
- package/dist/agent/doc-snapshot.d.ts +247 -0
- package/dist/agent/doc-snapshot.d.ts.map +1 -0
- package/dist/agent/doc-snapshot.js +657 -0
- package/dist/agent/index.d.ts +16 -0
- package/dist/agent/index.d.ts.map +1 -0
- package/dist/agent/index.js +15 -0
- package/dist/agent/ir.cjs +170 -0
- package/dist/agent/ir.d.ts +216 -0
- package/dist/agent/ir.d.ts.map +1 -0
- package/dist/agent/ir.js +181 -0
- package/dist/agent/operation-catalog.cjs +418 -0
- package/dist/agent/operation-catalog.d.ts +36 -0
- package/dist/agent/operation-catalog.d.ts.map +1 -0
- package/dist/agent/operation-catalog.js +446 -0
- package/dist/agent/runtime.cjs +501 -0
- package/dist/agent/runtime.d.ts +120 -0
- package/dist/agent/runtime.d.ts.map +1 -0
- package/dist/agent/runtime.js +493 -0
- package/dist/embedded-prompts.generated.cjs +13 -0
- package/dist/embedded-prompts.generated.d.ts +4 -0
- package/dist/embedded-prompts.generated.d.ts.map +1 -0
- package/dist/embedded-prompts.generated.js +9 -0
- package/dist/generated/client.cjs +18 -0
- package/dist/generated/client.d.ts +119 -0
- package/dist/generated/client.d.ts.map +1 -1
- package/dist/generated/client.js +18 -0
- package/dist/generated/contract.cjs +524 -0
- package/dist/generated/contract.d.ts.map +1 -1
- package/dist/generated/contract.js +524 -0
- package/dist/index.cjs +3 -7
- package/dist/index.d.ts +8 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -8
- package/dist/presets/core.cjs +454 -0
- package/dist/presets/core.d.ts +20 -0
- package/dist/presets/core.d.ts.map +1 -0
- package/dist/presets/core.js +447 -0
- package/dist/presets.cjs +55 -8
- package/dist/presets.d.ts +39 -8
- package/dist/presets.d.ts.map +1 -1
- package/dist/presets.js +53 -8
- package/dist/prompts/mcp-prompt.md +23 -0
- package/dist/prompts/system-prompt.md +108 -0
- package/dist/runtime/transport-common.cjs +8 -0
- package/dist/runtime/transport-common.d.ts.map +1 -1
- package/dist/runtime/transport-common.js +8 -0
- package/dist/tools.cjs +46 -11
- package/dist/tools.d.ts +55 -8
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +45 -13
- package/package.json +9 -8
- package/tools/__pycache__/__init__.cpython-312.pyc +0 -0
- package/tools/__pycache__/intent_dispatch_generated.cpython-312.pyc +0 -0
package/dist/generated/client.js
CHANGED
|
@@ -535,6 +535,7 @@ export function createDocApi(runtime) {
|
|
|
535
535
|
close: (params = {}, options) => runtime.invoke(CONTRACT.operations["doc.close"], params, options),
|
|
536
536
|
insertTab: (params = {}, options) => runtime.invoke(CONTRACT.operations["doc.insertTab"], params, options),
|
|
537
537
|
insertLineBreak: (params = {}, options) => runtime.invoke(CONTRACT.operations["doc.insertLineBreak"], params, options),
|
|
538
|
+
executeCode: (params = {}, options) => runtime.invoke(CONTRACT.operations["doc.executeCode"], params, options),
|
|
538
539
|
status: (params = {}, options) => runtime.invoke(CONTRACT.operations["doc.status"], params, options),
|
|
539
540
|
describe: (params = {}, options) => runtime.invoke(CONTRACT.operations["doc.describe"], params, options),
|
|
540
541
|
describeCommand: (params, options) => runtime.invoke(CONTRACT.operations["doc.describeCommand"], params, options),
|
|
@@ -544,6 +545,14 @@ export function createDocApi(runtime) {
|
|
|
544
545
|
close: (params, options) => runtime.invoke(CONTRACT.operations["doc.session.close"], params, options),
|
|
545
546
|
setDefault: (params, options) => runtime.invoke(CONTRACT.operations["doc.session.setDefault"], params, options),
|
|
546
547
|
},
|
|
548
|
+
preset: {
|
|
549
|
+
list: (params = {}, options) => runtime.invoke(CONTRACT.operations["doc.preset.list"], params, options),
|
|
550
|
+
getCatalog: (params = {}, options) => runtime.invoke(CONTRACT.operations["doc.preset.getCatalog"], params, options),
|
|
551
|
+
getTools: (params, options) => runtime.invoke(CONTRACT.operations["doc.preset.getTools"], params, options),
|
|
552
|
+
getSystemPrompt: (params = {}, options) => runtime.invoke(CONTRACT.operations["doc.preset.getSystemPrompt"], params, options),
|
|
553
|
+
getMcpPrompt: (params = {}, options) => runtime.invoke(CONTRACT.operations["doc.preset.getMcpPrompt"], params, options),
|
|
554
|
+
dispatch: (params, options) => runtime.invoke(CONTRACT.operations["doc.preset.dispatch"], params, options),
|
|
555
|
+
},
|
|
547
556
|
};
|
|
548
557
|
}
|
|
549
558
|
// ---------------------------------------------------------------------------
|
|
@@ -1063,5 +1072,14 @@ export function createBoundDocApi(runtime) {
|
|
|
1063
1072
|
close: (params = {}, options) => runtime.invoke(CONTRACT.operations["doc.close"], params, options),
|
|
1064
1073
|
insertTab: (params = {}, options) => runtime.invoke(CONTRACT.operations["doc.insertTab"], params, options),
|
|
1065
1074
|
insertLineBreak: (params = {}, options) => runtime.invoke(CONTRACT.operations["doc.insertLineBreak"], params, options),
|
|
1075
|
+
executeCode: (params = {}, options) => runtime.invoke(CONTRACT.operations["doc.executeCode"], params, options),
|
|
1076
|
+
preset: {
|
|
1077
|
+
list: (params = {}, options) => runtime.invoke(CONTRACT.operations["doc.preset.list"], params, options),
|
|
1078
|
+
getCatalog: (params = {}, options) => runtime.invoke(CONTRACT.operations["doc.preset.getCatalog"], params, options),
|
|
1079
|
+
getTools: (params, options) => runtime.invoke(CONTRACT.operations["doc.preset.getTools"], params, options),
|
|
1080
|
+
getSystemPrompt: (params = {}, options) => runtime.invoke(CONTRACT.operations["doc.preset.getSystemPrompt"], params, options),
|
|
1081
|
+
getMcpPrompt: (params = {}, options) => runtime.invoke(CONTRACT.operations["doc.preset.getMcpPrompt"], params, options),
|
|
1082
|
+
dispatch: (params, options) => runtime.invoke(CONTRACT.operations["doc.preset.dispatch"], params, options),
|
|
1083
|
+
},
|
|
1066
1084
|
};
|
|
1067
1085
|
}
|
|
@@ -251209,6 +251209,112 @@ const CONTRACT = {
|
|
|
251209
251209
|
]
|
|
251210
251210
|
}
|
|
251211
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
|
+
},
|
|
251212
251318
|
"doc.status": {
|
|
251213
251319
|
"operationId": "doc.status",
|
|
251214
251320
|
"sdkSurface": "internal",
|
|
@@ -251797,6 +251903,424 @@ const CONTRACT = {
|
|
|
251797
251903
|
"activeSessionId"
|
|
251798
251904
|
]
|
|
251799
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
|
|
251800
252324
|
}
|
|
251801
252325
|
}
|
|
251802
252326
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../src/generated/contract.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,KAAK,GAAG,MAAM,GAAG,UAAU,CAAC;IAClC,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,UAAU,CAAC;IAC5D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,MAAM,EAAE,kBAAkB,EAAE,CAAC;IAC7B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,QAAQ;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,GAAG,EAAE;QACH,OAAO,EAAE,MAAM,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,QAAQ,EAAE;QACR,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,EAAE,MAAM,EAAE,CAAC;QACnB,aAAa,EAAE,MAAM,EAAE,CAAC;KACzB,CAAC;IACF,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC;CACpD;AAED,eAAO,MAAM,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../src/generated/contract.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,KAAK,GAAG,MAAM,GAAG,UAAU,CAAC;IAClC,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,UAAU,CAAC;IAC5D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,MAAM,EAAE,kBAAkB,EAAE,CAAC;IAC7B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,QAAQ;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,GAAG,EAAE;QACH,OAAO,EAAE,MAAM,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,QAAQ,EAAE;QACR,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,EAAE,MAAM,EAAE,CAAC;QACnB,aAAa,EAAE,MAAM,EAAE,CAAC;KACzB,CAAC;IACF,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC;CACpD;AAED,eAAO,MAAM,QAAQ,EAAE,QAkyvPtB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC,YAAY,CAAC,CAAC,MAAM,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC"}
|