@superdoc/sdk 2.13.0-next.5 → 2.13.0-next.7
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 +1 -0
- package/dist/generated/client.d.ts +30 -0
- package/dist/generated/client.js +1 -0
- package/dist/generated/contract.cjs +240 -50
- package/dist/generated/contract.js +240 -50
- package/dist/runtime/sdk-version.generated.cjs +1 -1
- package/dist/runtime/sdk-version.generated.d.ts +1 -1
- package/dist/runtime/sdk-version.generated.js +1 -1
- package/package.json +6 -6
|
@@ -556,6 +556,7 @@ function createDocApi(runtime) {
|
|
|
556
556
|
insertLineBreak: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.insertLineBreak"], params, options),
|
|
557
557
|
executeCode: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.executeCode"], params, options),
|
|
558
558
|
status: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.status"], params, options),
|
|
559
|
+
discover: (params, options) => runtime.invoke(contract.CONTRACT.operations["doc.discover"], params, options),
|
|
559
560
|
describe: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.describe"], params, options),
|
|
560
561
|
describeCommand: (params, options) => runtime.invoke(contract.CONTRACT.operations["doc.describeCommand"], params, options),
|
|
561
562
|
session: {
|
|
@@ -31363,6 +31363,10 @@ export interface DocExecuteCodeParams {
|
|
|
31363
31363
|
export interface DocStatusParams {
|
|
31364
31364
|
sessionId?: string;
|
|
31365
31365
|
}
|
|
31366
|
+
export interface DocDiscoverParams {
|
|
31367
|
+
query: string;
|
|
31368
|
+
limit?: number;
|
|
31369
|
+
}
|
|
31366
31370
|
export interface DocDescribeParams {
|
|
31367
31371
|
}
|
|
31368
31372
|
export interface DocDescribeCommandParams {
|
|
@@ -119525,6 +119529,31 @@ export type DocStatusResult = {
|
|
|
119525
119529
|
updatedAt?: string;
|
|
119526
119530
|
lastSavedAt?: string;
|
|
119527
119531
|
};
|
|
119532
|
+
export type DocDiscoverResult = {
|
|
119533
|
+
contractVersion: string;
|
|
119534
|
+
query: string;
|
|
119535
|
+
interpretation: "clear" | "ambiguous" | "broad" | "no-match";
|
|
119536
|
+
resultCount: number;
|
|
119537
|
+
maxResults: number;
|
|
119538
|
+
capped: boolean;
|
|
119539
|
+
results: Array<{
|
|
119540
|
+
rank: number;
|
|
119541
|
+
operationId: string;
|
|
119542
|
+
command: string;
|
|
119543
|
+
description: string;
|
|
119544
|
+
referenceGroup: string;
|
|
119545
|
+
relevance: "exact" | "strong" | "relevant" | "related";
|
|
119546
|
+
score: number;
|
|
119547
|
+
matched: Array<string>;
|
|
119548
|
+
useWhen?: string;
|
|
119549
|
+
avoidWhen?: Array<string>;
|
|
119550
|
+
defaults?: Record<string, unknown>;
|
|
119551
|
+
schemaCommand: string;
|
|
119552
|
+
input?: Record<string, unknown>;
|
|
119553
|
+
relations?: Array<Record<string, unknown>>;
|
|
119554
|
+
}>;
|
|
119555
|
+
guidance?: string;
|
|
119556
|
+
};
|
|
119528
119557
|
export type DocDescribeResult = {
|
|
119529
119558
|
contractVersion?: string;
|
|
119530
119559
|
operations?: Array<{
|
|
@@ -150357,6 +150386,7 @@ export declare function createDocApi(runtime: RuntimeInvoker): {
|
|
|
150357
150386
|
insertLineBreak: (params?: DocInsertLineBreakParams, options?: InvokeOptions) => Promise<DocInsertLineBreakResult>;
|
|
150358
150387
|
executeCode: (params?: DocExecuteCodeParams, options?: InvokeOptions) => Promise<DocExecuteCodeResult>;
|
|
150359
150388
|
status: (params?: DocStatusParams, options?: InvokeOptions) => Promise<DocStatusResult>;
|
|
150389
|
+
discover: (params: DocDiscoverParams, options?: InvokeOptions) => Promise<DocDiscoverResult>;
|
|
150360
150390
|
describe: (params?: DocDescribeParams, options?: InvokeOptions) => Promise<DocDescribeResult>;
|
|
150361
150391
|
describeCommand: (params: DocDescribeCommandParams, options?: InvokeOptions) => Promise<DocDescribeCommandResult>;
|
|
150362
150392
|
session: {
|
package/dist/generated/client.js
CHANGED
|
@@ -553,6 +553,7 @@ export function createDocApi(runtime) {
|
|
|
553
553
|
insertLineBreak: (params = {}, options) => runtime.invoke(CONTRACT.operations["doc.insertLineBreak"], params, options),
|
|
554
554
|
executeCode: (params = {}, options) => runtime.invoke(CONTRACT.operations["doc.executeCode"], params, options),
|
|
555
555
|
status: (params = {}, options) => runtime.invoke(CONTRACT.operations["doc.status"], params, options),
|
|
556
|
+
discover: (params, options) => runtime.invoke(CONTRACT.operations["doc.discover"], params, options),
|
|
556
557
|
describe: (params = {}, options) => runtime.invoke(CONTRACT.operations["doc.describe"], params, options),
|
|
557
558
|
describeCommand: (params, options) => runtime.invoke(CONTRACT.operations["doc.describeCommand"], params, options),
|
|
558
559
|
session: {
|
|
@@ -42,7 +42,7 @@ const CONTRACT = {
|
|
|
42
42
|
"Response envelopes include elapsed_ms for all operations.",
|
|
43
43
|
"JSON output mode is the default and must always be supported."
|
|
44
44
|
],
|
|
45
|
-
"operationCount":
|
|
45
|
+
"operationCount": 466,
|
|
46
46
|
"operations": [
|
|
47
47
|
{
|
|
48
48
|
"id": "doc.get",
|
|
@@ -10951,6 +10951,25 @@ const CONTRACT = {
|
|
|
10951
10951
|
],
|
|
10952
10952
|
"errors": []
|
|
10953
10953
|
},
|
|
10954
|
+
{
|
|
10955
|
+
"id": "doc.discover",
|
|
10956
|
+
"command": [
|
|
10957
|
+
"discover"
|
|
10958
|
+
],
|
|
10959
|
+
"description": "Find CLI operations from a natural-language intent. Returns an adaptive relevant set capped at ten results and expands the leading operation input shape.",
|
|
10960
|
+
"category": "session",
|
|
10961
|
+
"stability": "stable",
|
|
10962
|
+
"mutates": false,
|
|
10963
|
+
"requiresDocumentContext": false,
|
|
10964
|
+
"capabilities": [],
|
|
10965
|
+
"aliases": [],
|
|
10966
|
+
"examples": [
|
|
10967
|
+
"superdoc discover \"create a footnote\"",
|
|
10968
|
+
"superdoc discover \"add an sdt\" --limit 10",
|
|
10969
|
+
"superdoc discover \"change table cell padding\" --pretty"
|
|
10970
|
+
],
|
|
10971
|
+
"errors": []
|
|
10972
|
+
},
|
|
10954
10973
|
{
|
|
10955
10974
|
"id": "doc.describe",
|
|
10956
10975
|
"command": [
|
|
@@ -12009,18 +12028,19 @@ const CONTRACT = {
|
|
|
12009
12028
|
"doc.insertlinebreak": 437,
|
|
12010
12029
|
"doc.executecode": 438,
|
|
12011
12030
|
"doc.status": 439,
|
|
12012
|
-
"doc.
|
|
12013
|
-
"doc.
|
|
12014
|
-
"doc.
|
|
12015
|
-
"doc.session.
|
|
12016
|
-
"doc.session.
|
|
12017
|
-
"doc.session.
|
|
12018
|
-
"doc.
|
|
12019
|
-
"doc.preset.
|
|
12020
|
-
"doc.preset.
|
|
12021
|
-
"doc.preset.
|
|
12022
|
-
"doc.preset.
|
|
12023
|
-
"doc.preset.
|
|
12031
|
+
"doc.discover": 440,
|
|
12032
|
+
"doc.describe": 441,
|
|
12033
|
+
"doc.describecommand": 442,
|
|
12034
|
+
"doc.session.list": 443,
|
|
12035
|
+
"doc.session.save": 444,
|
|
12036
|
+
"doc.session.close": 445,
|
|
12037
|
+
"doc.session.setdefault": 446,
|
|
12038
|
+
"doc.preset.list": 447,
|
|
12039
|
+
"doc.preset.getcatalog": 448,
|
|
12040
|
+
"doc.preset.gettools": 449,
|
|
12041
|
+
"doc.preset.getsystemprompt": 450,
|
|
12042
|
+
"doc.preset.getmcpprompt": 451,
|
|
12043
|
+
"doc.preset.dispatch": 452,
|
|
12024
12044
|
"get": 0,
|
|
12025
12045
|
"find": 1,
|
|
12026
12046
|
"get-node": 2,
|
|
@@ -12461,32 +12481,33 @@ const CONTRACT = {
|
|
|
12461
12481
|
"insert line-break": 437,
|
|
12462
12482
|
"execute code": 438,
|
|
12463
12483
|
"status": 439,
|
|
12464
|
-
"
|
|
12465
|
-
"describe
|
|
12466
|
-
"
|
|
12467
|
-
"session
|
|
12468
|
-
"session
|
|
12469
|
-
"session
|
|
12470
|
-
"
|
|
12471
|
-
"preset
|
|
12472
|
-
"preset get-
|
|
12473
|
-
"preset get-
|
|
12474
|
-
"preset get-
|
|
12475
|
-
"preset
|
|
12476
|
-
"
|
|
12477
|
-
"
|
|
12478
|
-
"
|
|
12479
|
-
"track-changes
|
|
12480
|
-
"track-changes
|
|
12481
|
-
"track-changes
|
|
12482
|
-
"
|
|
12483
|
-
"comments
|
|
12484
|
-
"comments
|
|
12485
|
-
"comments
|
|
12486
|
-
"comments
|
|
12487
|
-
"comments
|
|
12488
|
-
"comments
|
|
12489
|
-
"
|
|
12484
|
+
"discover": 440,
|
|
12485
|
+
"describe": 441,
|
|
12486
|
+
"describe command": 442,
|
|
12487
|
+
"session list": 443,
|
|
12488
|
+
"session save": 444,
|
|
12489
|
+
"session close": 445,
|
|
12490
|
+
"session set-default": 446,
|
|
12491
|
+
"preset list": 447,
|
|
12492
|
+
"preset get-catalog": 448,
|
|
12493
|
+
"preset get-tools": 449,
|
|
12494
|
+
"preset get-system-prompt": 450,
|
|
12495
|
+
"preset get-mcp-prompt": 451,
|
|
12496
|
+
"preset dispatch": 452,
|
|
12497
|
+
"lists exit": 453,
|
|
12498
|
+
"format strikethrough": 454,
|
|
12499
|
+
"track-changes accept": 455,
|
|
12500
|
+
"track-changes reject": 456,
|
|
12501
|
+
"track-changes accept-all": 457,
|
|
12502
|
+
"track-changes reject-all": 458,
|
|
12503
|
+
"comments add": 459,
|
|
12504
|
+
"comments reply": 460,
|
|
12505
|
+
"comments edit": 461,
|
|
12506
|
+
"comments move": 462,
|
|
12507
|
+
"comments resolve": 463,
|
|
12508
|
+
"comments remove": 464,
|
|
12509
|
+
"comments set-internal": 465,
|
|
12510
|
+
"session use": 446,
|
|
12490
12511
|
"getnode": 2,
|
|
12491
12512
|
"getnodebyid": 3,
|
|
12492
12513
|
"gettext": 4,
|
|
@@ -12916,17 +12937,17 @@ const CONTRACT = {
|
|
|
12916
12937
|
"inserttab": 436,
|
|
12917
12938
|
"insertlinebreak": 437,
|
|
12918
12939
|
"executecode": 438,
|
|
12919
|
-
"describecommand":
|
|
12920
|
-
"session.list":
|
|
12921
|
-
"session.save":
|
|
12922
|
-
"session.close":
|
|
12923
|
-
"session.setdefault":
|
|
12924
|
-
"preset.list":
|
|
12925
|
-
"preset.getcatalog":
|
|
12926
|
-
"preset.gettools":
|
|
12927
|
-
"preset.getsystemprompt":
|
|
12928
|
-
"preset.getmcpprompt":
|
|
12929
|
-
"preset.dispatch":
|
|
12940
|
+
"describecommand": 442,
|
|
12941
|
+
"session.list": 443,
|
|
12942
|
+
"session.save": 444,
|
|
12943
|
+
"session.close": 445,
|
|
12944
|
+
"session.setdefault": 446,
|
|
12945
|
+
"preset.list": 447,
|
|
12946
|
+
"preset.getcatalog": 448,
|
|
12947
|
+
"preset.gettools": 449,
|
|
12948
|
+
"preset.getsystemprompt": 450,
|
|
12949
|
+
"preset.getmcpprompt": 451,
|
|
12950
|
+
"preset.dispatch": 452
|
|
12930
12951
|
}
|
|
12931
12952
|
},
|
|
12932
12953
|
"operations": {
|
|
@@ -314366,6 +314387,175 @@ const CONTRACT = {
|
|
|
314366
314387
|
]
|
|
314367
314388
|
}
|
|
314368
314389
|
},
|
|
314390
|
+
"doc.discover": {
|
|
314391
|
+
"operationId": "doc.discover",
|
|
314392
|
+
"sdkSurface": "internal",
|
|
314393
|
+
"command": "discover",
|
|
314394
|
+
"commandTokens": [
|
|
314395
|
+
"discover"
|
|
314396
|
+
],
|
|
314397
|
+
"category": "session",
|
|
314398
|
+
"description": "Find CLI operations from a natural-language intent. Returns an adaptive relevant set capped at ten results and expands the leading operation input shape.",
|
|
314399
|
+
"requiresDocumentContext": false,
|
|
314400
|
+
"docRequirement": "none",
|
|
314401
|
+
"responseEnvelopeKey": null,
|
|
314402
|
+
"params": [
|
|
314403
|
+
{
|
|
314404
|
+
"name": "query",
|
|
314405
|
+
"kind": "doc",
|
|
314406
|
+
"type": "string",
|
|
314407
|
+
"required": true,
|
|
314408
|
+
"description": "Natural-language description of the operation to find."
|
|
314409
|
+
},
|
|
314410
|
+
{
|
|
314411
|
+
"name": "limit",
|
|
314412
|
+
"kind": "flag",
|
|
314413
|
+
"type": "number",
|
|
314414
|
+
"description": "Maximum results to return, from 1 through 10. Defaults to 10."
|
|
314415
|
+
}
|
|
314416
|
+
],
|
|
314417
|
+
"constraints": null,
|
|
314418
|
+
"inputSchema": {
|
|
314419
|
+
"type": "object",
|
|
314420
|
+
"properties": {
|
|
314421
|
+
"query": {
|
|
314422
|
+
"type": "string",
|
|
314423
|
+
"description": "Natural-language description of the operation to find."
|
|
314424
|
+
},
|
|
314425
|
+
"limit": {
|
|
314426
|
+
"type": "number",
|
|
314427
|
+
"description": "Maximum results to return, from 1 through 10. Defaults to 10."
|
|
314428
|
+
}
|
|
314429
|
+
},
|
|
314430
|
+
"required": [
|
|
314431
|
+
"query"
|
|
314432
|
+
],
|
|
314433
|
+
"additionalProperties": false
|
|
314434
|
+
},
|
|
314435
|
+
"mutates": false,
|
|
314436
|
+
"idempotency": "idempotent",
|
|
314437
|
+
"supportsTrackedMode": false,
|
|
314438
|
+
"supportsDryRun": false,
|
|
314439
|
+
"outputSchema": {
|
|
314440
|
+
"type": "object",
|
|
314441
|
+
"properties": {
|
|
314442
|
+
"contractVersion": {
|
|
314443
|
+
"type": "string"
|
|
314444
|
+
},
|
|
314445
|
+
"query": {
|
|
314446
|
+
"type": "string"
|
|
314447
|
+
},
|
|
314448
|
+
"interpretation": {
|
|
314449
|
+
"type": "string",
|
|
314450
|
+
"enum": [
|
|
314451
|
+
"clear",
|
|
314452
|
+
"ambiguous",
|
|
314453
|
+
"broad",
|
|
314454
|
+
"no-match"
|
|
314455
|
+
]
|
|
314456
|
+
},
|
|
314457
|
+
"resultCount": {
|
|
314458
|
+
"type": "number"
|
|
314459
|
+
},
|
|
314460
|
+
"maxResults": {
|
|
314461
|
+
"type": "number"
|
|
314462
|
+
},
|
|
314463
|
+
"capped": {
|
|
314464
|
+
"type": "boolean"
|
|
314465
|
+
},
|
|
314466
|
+
"results": {
|
|
314467
|
+
"type": "array",
|
|
314468
|
+
"items": {
|
|
314469
|
+
"type": "object",
|
|
314470
|
+
"properties": {
|
|
314471
|
+
"rank": {
|
|
314472
|
+
"type": "number"
|
|
314473
|
+
},
|
|
314474
|
+
"operationId": {
|
|
314475
|
+
"type": "string"
|
|
314476
|
+
},
|
|
314477
|
+
"command": {
|
|
314478
|
+
"type": "string"
|
|
314479
|
+
},
|
|
314480
|
+
"description": {
|
|
314481
|
+
"type": "string"
|
|
314482
|
+
},
|
|
314483
|
+
"referenceGroup": {
|
|
314484
|
+
"type": "string"
|
|
314485
|
+
},
|
|
314486
|
+
"relevance": {
|
|
314487
|
+
"type": "string",
|
|
314488
|
+
"enum": [
|
|
314489
|
+
"exact",
|
|
314490
|
+
"strong",
|
|
314491
|
+
"relevant",
|
|
314492
|
+
"related"
|
|
314493
|
+
]
|
|
314494
|
+
},
|
|
314495
|
+
"score": {
|
|
314496
|
+
"type": "number",
|
|
314497
|
+
"description": "Query-relative ranking score; not a probability."
|
|
314498
|
+
},
|
|
314499
|
+
"matched": {
|
|
314500
|
+
"type": "array",
|
|
314501
|
+
"items": {
|
|
314502
|
+
"type": "string"
|
|
314503
|
+
}
|
|
314504
|
+
},
|
|
314505
|
+
"useWhen": {
|
|
314506
|
+
"type": "string"
|
|
314507
|
+
},
|
|
314508
|
+
"avoidWhen": {
|
|
314509
|
+
"type": "array",
|
|
314510
|
+
"items": {
|
|
314511
|
+
"type": "string"
|
|
314512
|
+
}
|
|
314513
|
+
},
|
|
314514
|
+
"defaults": {
|
|
314515
|
+
"type": "object"
|
|
314516
|
+
},
|
|
314517
|
+
"schemaCommand": {
|
|
314518
|
+
"type": "string"
|
|
314519
|
+
},
|
|
314520
|
+
"input": {
|
|
314521
|
+
"type": "object"
|
|
314522
|
+
},
|
|
314523
|
+
"relations": {
|
|
314524
|
+
"type": "array",
|
|
314525
|
+
"items": {
|
|
314526
|
+
"type": "object"
|
|
314527
|
+
}
|
|
314528
|
+
}
|
|
314529
|
+
},
|
|
314530
|
+
"required": [
|
|
314531
|
+
"rank",
|
|
314532
|
+
"operationId",
|
|
314533
|
+
"command",
|
|
314534
|
+
"description",
|
|
314535
|
+
"referenceGroup",
|
|
314536
|
+
"relevance",
|
|
314537
|
+
"score",
|
|
314538
|
+
"matched",
|
|
314539
|
+
"schemaCommand"
|
|
314540
|
+
]
|
|
314541
|
+
}
|
|
314542
|
+
},
|
|
314543
|
+
"guidance": {
|
|
314544
|
+
"type": "string"
|
|
314545
|
+
}
|
|
314546
|
+
},
|
|
314547
|
+
"required": [
|
|
314548
|
+
"contractVersion",
|
|
314549
|
+
"query",
|
|
314550
|
+
"interpretation",
|
|
314551
|
+
"resultCount",
|
|
314552
|
+
"maxResults",
|
|
314553
|
+
"capped",
|
|
314554
|
+
"results"
|
|
314555
|
+
]
|
|
314556
|
+
},
|
|
314557
|
+
"skipAsATool": true
|
|
314558
|
+
},
|
|
314369
314559
|
"doc.describe": {
|
|
314370
314560
|
"operationId": "doc.describe",
|
|
314371
314561
|
"sdkSurface": "client",
|
|
@@ -2958,7 +2958,7 @@ export const CONTRACT = {
|
|
|
2958
2958
|
"Response envelopes include elapsed_ms for all operations.",
|
|
2959
2959
|
"JSON output mode is the default and must always be supported."
|
|
2960
2960
|
],
|
|
2961
|
-
"operationCount":
|
|
2961
|
+
"operationCount": 466,
|
|
2962
2962
|
"operations": [
|
|
2963
2963
|
{
|
|
2964
2964
|
"id": "doc.get",
|
|
@@ -13867,6 +13867,25 @@ export const CONTRACT = {
|
|
|
13867
13867
|
],
|
|
13868
13868
|
"errors": []
|
|
13869
13869
|
},
|
|
13870
|
+
{
|
|
13871
|
+
"id": "doc.discover",
|
|
13872
|
+
"command": [
|
|
13873
|
+
"discover"
|
|
13874
|
+
],
|
|
13875
|
+
"description": "Find CLI operations from a natural-language intent. Returns an adaptive relevant set capped at ten results and expands the leading operation input shape.",
|
|
13876
|
+
"category": "session",
|
|
13877
|
+
"stability": "stable",
|
|
13878
|
+
"mutates": false,
|
|
13879
|
+
"requiresDocumentContext": false,
|
|
13880
|
+
"capabilities": [],
|
|
13881
|
+
"aliases": [],
|
|
13882
|
+
"examples": [
|
|
13883
|
+
"superdoc discover \"create a footnote\"",
|
|
13884
|
+
"superdoc discover \"add an sdt\" --limit 10",
|
|
13885
|
+
"superdoc discover \"change table cell padding\" --pretty"
|
|
13886
|
+
],
|
|
13887
|
+
"errors": []
|
|
13888
|
+
},
|
|
13870
13889
|
{
|
|
13871
13890
|
"id": "doc.describe",
|
|
13872
13891
|
"command": [
|
|
@@ -14925,18 +14944,19 @@ export const CONTRACT = {
|
|
|
14925
14944
|
"doc.insertlinebreak": 437,
|
|
14926
14945
|
"doc.executecode": 438,
|
|
14927
14946
|
"doc.status": 439,
|
|
14928
|
-
"doc.
|
|
14929
|
-
"doc.
|
|
14930
|
-
"doc.
|
|
14931
|
-
"doc.session.
|
|
14932
|
-
"doc.session.
|
|
14933
|
-
"doc.session.
|
|
14934
|
-
"doc.
|
|
14935
|
-
"doc.preset.
|
|
14936
|
-
"doc.preset.
|
|
14937
|
-
"doc.preset.
|
|
14938
|
-
"doc.preset.
|
|
14939
|
-
"doc.preset.
|
|
14947
|
+
"doc.discover": 440,
|
|
14948
|
+
"doc.describe": 441,
|
|
14949
|
+
"doc.describecommand": 442,
|
|
14950
|
+
"doc.session.list": 443,
|
|
14951
|
+
"doc.session.save": 444,
|
|
14952
|
+
"doc.session.close": 445,
|
|
14953
|
+
"doc.session.setdefault": 446,
|
|
14954
|
+
"doc.preset.list": 447,
|
|
14955
|
+
"doc.preset.getcatalog": 448,
|
|
14956
|
+
"doc.preset.gettools": 449,
|
|
14957
|
+
"doc.preset.getsystemprompt": 450,
|
|
14958
|
+
"doc.preset.getmcpprompt": 451,
|
|
14959
|
+
"doc.preset.dispatch": 452,
|
|
14940
14960
|
"get": 0,
|
|
14941
14961
|
"find": 1,
|
|
14942
14962
|
"get-node": 2,
|
|
@@ -15377,32 +15397,33 @@ export const CONTRACT = {
|
|
|
15377
15397
|
"insert line-break": 437,
|
|
15378
15398
|
"execute code": 438,
|
|
15379
15399
|
"status": 439,
|
|
15380
|
-
"
|
|
15381
|
-
"describe
|
|
15382
|
-
"
|
|
15383
|
-
"session
|
|
15384
|
-
"session
|
|
15385
|
-
"session
|
|
15386
|
-
"
|
|
15387
|
-
"preset
|
|
15388
|
-
"preset get-
|
|
15389
|
-
"preset get-
|
|
15390
|
-
"preset get-
|
|
15391
|
-
"preset
|
|
15392
|
-
"
|
|
15393
|
-
"
|
|
15394
|
-
"
|
|
15395
|
-
"track-changes
|
|
15396
|
-
"track-changes
|
|
15397
|
-
"track-changes
|
|
15398
|
-
"
|
|
15399
|
-
"comments
|
|
15400
|
-
"comments
|
|
15401
|
-
"comments
|
|
15402
|
-
"comments
|
|
15403
|
-
"comments
|
|
15404
|
-
"comments
|
|
15405
|
-
"
|
|
15400
|
+
"discover": 440,
|
|
15401
|
+
"describe": 441,
|
|
15402
|
+
"describe command": 442,
|
|
15403
|
+
"session list": 443,
|
|
15404
|
+
"session save": 444,
|
|
15405
|
+
"session close": 445,
|
|
15406
|
+
"session set-default": 446,
|
|
15407
|
+
"preset list": 447,
|
|
15408
|
+
"preset get-catalog": 448,
|
|
15409
|
+
"preset get-tools": 449,
|
|
15410
|
+
"preset get-system-prompt": 450,
|
|
15411
|
+
"preset get-mcp-prompt": 451,
|
|
15412
|
+
"preset dispatch": 452,
|
|
15413
|
+
"lists exit": 453,
|
|
15414
|
+
"format strikethrough": 454,
|
|
15415
|
+
"track-changes accept": 455,
|
|
15416
|
+
"track-changes reject": 456,
|
|
15417
|
+
"track-changes accept-all": 457,
|
|
15418
|
+
"track-changes reject-all": 458,
|
|
15419
|
+
"comments add": 459,
|
|
15420
|
+
"comments reply": 460,
|
|
15421
|
+
"comments edit": 461,
|
|
15422
|
+
"comments move": 462,
|
|
15423
|
+
"comments resolve": 463,
|
|
15424
|
+
"comments remove": 464,
|
|
15425
|
+
"comments set-internal": 465,
|
|
15426
|
+
"session use": 446,
|
|
15406
15427
|
"getnode": 2,
|
|
15407
15428
|
"getnodebyid": 3,
|
|
15408
15429
|
"gettext": 4,
|
|
@@ -15832,17 +15853,17 @@ export const CONTRACT = {
|
|
|
15832
15853
|
"inserttab": 436,
|
|
15833
15854
|
"insertlinebreak": 437,
|
|
15834
15855
|
"executecode": 438,
|
|
15835
|
-
"describecommand":
|
|
15836
|
-
"session.list":
|
|
15837
|
-
"session.save":
|
|
15838
|
-
"session.close":
|
|
15839
|
-
"session.setdefault":
|
|
15840
|
-
"preset.list":
|
|
15841
|
-
"preset.getcatalog":
|
|
15842
|
-
"preset.gettools":
|
|
15843
|
-
"preset.getsystemprompt":
|
|
15844
|
-
"preset.getmcpprompt":
|
|
15845
|
-
"preset.dispatch":
|
|
15856
|
+
"describecommand": 442,
|
|
15857
|
+
"session.list": 443,
|
|
15858
|
+
"session.save": 444,
|
|
15859
|
+
"session.close": 445,
|
|
15860
|
+
"session.setdefault": 446,
|
|
15861
|
+
"preset.list": 447,
|
|
15862
|
+
"preset.getcatalog": 448,
|
|
15863
|
+
"preset.gettools": 449,
|
|
15864
|
+
"preset.getsystemprompt": 450,
|
|
15865
|
+
"preset.getmcpprompt": 451,
|
|
15866
|
+
"preset.dispatch": 452
|
|
15846
15867
|
}
|
|
15847
15868
|
},
|
|
15848
15869
|
"operations": {
|
|
@@ -317282,6 +317303,175 @@ export const CONTRACT = {
|
|
|
317282
317303
|
]
|
|
317283
317304
|
}
|
|
317284
317305
|
},
|
|
317306
|
+
"doc.discover": {
|
|
317307
|
+
"operationId": "doc.discover",
|
|
317308
|
+
"sdkSurface": "internal",
|
|
317309
|
+
"command": "discover",
|
|
317310
|
+
"commandTokens": [
|
|
317311
|
+
"discover"
|
|
317312
|
+
],
|
|
317313
|
+
"category": "session",
|
|
317314
|
+
"description": "Find CLI operations from a natural-language intent. Returns an adaptive relevant set capped at ten results and expands the leading operation input shape.",
|
|
317315
|
+
"requiresDocumentContext": false,
|
|
317316
|
+
"docRequirement": "none",
|
|
317317
|
+
"responseEnvelopeKey": null,
|
|
317318
|
+
"params": [
|
|
317319
|
+
{
|
|
317320
|
+
"name": "query",
|
|
317321
|
+
"kind": "doc",
|
|
317322
|
+
"type": "string",
|
|
317323
|
+
"required": true,
|
|
317324
|
+
"description": "Natural-language description of the operation to find."
|
|
317325
|
+
},
|
|
317326
|
+
{
|
|
317327
|
+
"name": "limit",
|
|
317328
|
+
"kind": "flag",
|
|
317329
|
+
"type": "number",
|
|
317330
|
+
"description": "Maximum results to return, from 1 through 10. Defaults to 10."
|
|
317331
|
+
}
|
|
317332
|
+
],
|
|
317333
|
+
"constraints": null,
|
|
317334
|
+
"inputSchema": {
|
|
317335
|
+
"type": "object",
|
|
317336
|
+
"properties": {
|
|
317337
|
+
"query": {
|
|
317338
|
+
"type": "string",
|
|
317339
|
+
"description": "Natural-language description of the operation to find."
|
|
317340
|
+
},
|
|
317341
|
+
"limit": {
|
|
317342
|
+
"type": "number",
|
|
317343
|
+
"description": "Maximum results to return, from 1 through 10. Defaults to 10."
|
|
317344
|
+
}
|
|
317345
|
+
},
|
|
317346
|
+
"required": [
|
|
317347
|
+
"query"
|
|
317348
|
+
],
|
|
317349
|
+
"additionalProperties": false
|
|
317350
|
+
},
|
|
317351
|
+
"mutates": false,
|
|
317352
|
+
"idempotency": "idempotent",
|
|
317353
|
+
"supportsTrackedMode": false,
|
|
317354
|
+
"supportsDryRun": false,
|
|
317355
|
+
"outputSchema": {
|
|
317356
|
+
"type": "object",
|
|
317357
|
+
"properties": {
|
|
317358
|
+
"contractVersion": {
|
|
317359
|
+
"type": "string"
|
|
317360
|
+
},
|
|
317361
|
+
"query": {
|
|
317362
|
+
"type": "string"
|
|
317363
|
+
},
|
|
317364
|
+
"interpretation": {
|
|
317365
|
+
"type": "string",
|
|
317366
|
+
"enum": [
|
|
317367
|
+
"clear",
|
|
317368
|
+
"ambiguous",
|
|
317369
|
+
"broad",
|
|
317370
|
+
"no-match"
|
|
317371
|
+
]
|
|
317372
|
+
},
|
|
317373
|
+
"resultCount": {
|
|
317374
|
+
"type": "number"
|
|
317375
|
+
},
|
|
317376
|
+
"maxResults": {
|
|
317377
|
+
"type": "number"
|
|
317378
|
+
},
|
|
317379
|
+
"capped": {
|
|
317380
|
+
"type": "boolean"
|
|
317381
|
+
},
|
|
317382
|
+
"results": {
|
|
317383
|
+
"type": "array",
|
|
317384
|
+
"items": {
|
|
317385
|
+
"type": "object",
|
|
317386
|
+
"properties": {
|
|
317387
|
+
"rank": {
|
|
317388
|
+
"type": "number"
|
|
317389
|
+
},
|
|
317390
|
+
"operationId": {
|
|
317391
|
+
"type": "string"
|
|
317392
|
+
},
|
|
317393
|
+
"command": {
|
|
317394
|
+
"type": "string"
|
|
317395
|
+
},
|
|
317396
|
+
"description": {
|
|
317397
|
+
"type": "string"
|
|
317398
|
+
},
|
|
317399
|
+
"referenceGroup": {
|
|
317400
|
+
"type": "string"
|
|
317401
|
+
},
|
|
317402
|
+
"relevance": {
|
|
317403
|
+
"type": "string",
|
|
317404
|
+
"enum": [
|
|
317405
|
+
"exact",
|
|
317406
|
+
"strong",
|
|
317407
|
+
"relevant",
|
|
317408
|
+
"related"
|
|
317409
|
+
]
|
|
317410
|
+
},
|
|
317411
|
+
"score": {
|
|
317412
|
+
"type": "number",
|
|
317413
|
+
"description": "Query-relative ranking score; not a probability."
|
|
317414
|
+
},
|
|
317415
|
+
"matched": {
|
|
317416
|
+
"type": "array",
|
|
317417
|
+
"items": {
|
|
317418
|
+
"type": "string"
|
|
317419
|
+
}
|
|
317420
|
+
},
|
|
317421
|
+
"useWhen": {
|
|
317422
|
+
"type": "string"
|
|
317423
|
+
},
|
|
317424
|
+
"avoidWhen": {
|
|
317425
|
+
"type": "array",
|
|
317426
|
+
"items": {
|
|
317427
|
+
"type": "string"
|
|
317428
|
+
}
|
|
317429
|
+
},
|
|
317430
|
+
"defaults": {
|
|
317431
|
+
"type": "object"
|
|
317432
|
+
},
|
|
317433
|
+
"schemaCommand": {
|
|
317434
|
+
"type": "string"
|
|
317435
|
+
},
|
|
317436
|
+
"input": {
|
|
317437
|
+
"type": "object"
|
|
317438
|
+
},
|
|
317439
|
+
"relations": {
|
|
317440
|
+
"type": "array",
|
|
317441
|
+
"items": {
|
|
317442
|
+
"type": "object"
|
|
317443
|
+
}
|
|
317444
|
+
}
|
|
317445
|
+
},
|
|
317446
|
+
"required": [
|
|
317447
|
+
"rank",
|
|
317448
|
+
"operationId",
|
|
317449
|
+
"command",
|
|
317450
|
+
"description",
|
|
317451
|
+
"referenceGroup",
|
|
317452
|
+
"relevance",
|
|
317453
|
+
"score",
|
|
317454
|
+
"matched",
|
|
317455
|
+
"schemaCommand"
|
|
317456
|
+
]
|
|
317457
|
+
}
|
|
317458
|
+
},
|
|
317459
|
+
"guidance": {
|
|
317460
|
+
"type": "string"
|
|
317461
|
+
}
|
|
317462
|
+
},
|
|
317463
|
+
"required": [
|
|
317464
|
+
"contractVersion",
|
|
317465
|
+
"query",
|
|
317466
|
+
"interpretation",
|
|
317467
|
+
"resultCount",
|
|
317468
|
+
"maxResults",
|
|
317469
|
+
"capped",
|
|
317470
|
+
"results"
|
|
317471
|
+
]
|
|
317472
|
+
},
|
|
317473
|
+
"skipAsATool": true
|
|
317474
|
+
},
|
|
317285
317475
|
"doc.describe": {
|
|
317286
317476
|
"operationId": "doc.describe",
|
|
317287
317477
|
"sdkSurface": "client",
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
// AUTO-GENERATED by scripts/embed-version.mjs — DO NOT EDIT.
|
|
4
4
|
// Source of truth: package.json. Regenerated on every SDK build so the
|
|
5
5
|
// SDK retains its own version identity when bundled into another package.
|
|
6
|
-
const SDK_VERSION = '2.13.0-next.
|
|
6
|
+
const SDK_VERSION = '2.13.0-next.7';
|
|
7
7
|
|
|
8
8
|
exports.SDK_VERSION = SDK_VERSION;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.13.0-next.
|
|
1
|
+
export declare const SDK_VERSION = "2.13.0-next.7";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// AUTO-GENERATED by scripts/embed-version.mjs — DO NOT EDIT.
|
|
2
2
|
// Source of truth: package.json. Regenerated on every SDK build so the
|
|
3
3
|
// SDK retains its own version identity when bundled into another package.
|
|
4
|
-
export const SDK_VERSION = '2.13.0-next.
|
|
4
|
+
export const SDK_VERSION = '2.13.0-next.7';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc/sdk",
|
|
3
|
-
"version": "2.13.0-next.
|
|
3
|
+
"version": "2.13.0-next.7",
|
|
4
4
|
"description": "Node SDK for SuperDoc, wrapping the SuperDoc CLI to read and edit .docx files from JavaScript and TypeScript.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "AGPL-3.0",
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"typescript": "^5.9.2"
|
|
39
39
|
},
|
|
40
40
|
"optionalDependencies": {
|
|
41
|
-
"@superdoc/sdk-darwin-arm64": "2.13.0-next.
|
|
42
|
-
"@superdoc/sdk-darwin-x64": "2.13.0-next.
|
|
43
|
-
"@superdoc/sdk-linux-x64": "2.13.0-next.
|
|
44
|
-
"@superdoc/sdk-linux-arm64": "2.13.0-next.
|
|
45
|
-
"@superdoc/sdk-windows-x64": "2.13.0-next.
|
|
41
|
+
"@superdoc/sdk-darwin-arm64": "2.13.0-next.7",
|
|
42
|
+
"@superdoc/sdk-darwin-x64": "2.13.0-next.7",
|
|
43
|
+
"@superdoc/sdk-linux-x64": "2.13.0-next.7",
|
|
44
|
+
"@superdoc/sdk-linux-arm64": "2.13.0-next.7",
|
|
45
|
+
"@superdoc/sdk-windows-x64": "2.13.0-next.7"
|
|
46
46
|
},
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public"
|