@superdoc-dev/sdk 1.0.0-alpha.43 → 1.0.0-alpha.44
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 +2 -0
- package/dist/generated/client.d.ts +87 -2
- package/dist/generated/client.d.ts.map +1 -1
- package/dist/generated/client.js +2 -0
- package/dist/generated/contract.cjs +1936 -1754
- package/dist/generated/contract.d.ts.map +1 -1
- package/dist/generated/contract.js +1936 -1754
- package/package.json +6 -6
- package/tools/catalog.json +1756 -23
- package/tools/tool-name-map.json +2 -0
- package/tools/tools-policy.json +2 -1
- package/tools/tools.anthropic.json +1424 -4
- package/tools/tools.generic.json +1744 -22
- package/tools/tools.openai.json +1430 -4
- package/tools/tools.vercel.json +1430 -4
|
@@ -36,7 +36,9 @@ function createDocApi(runtime) {
|
|
|
36
36
|
replace: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.replace"], params, options),
|
|
37
37
|
delete: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.delete"], params, options),
|
|
38
38
|
blocks: {
|
|
39
|
+
list: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.blocks.list"], params, options),
|
|
39
40
|
delete: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.blocks.delete"], params, options),
|
|
41
|
+
deleteRange: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.blocks.deleteRange"], params, options),
|
|
40
42
|
},
|
|
41
43
|
format: {
|
|
42
44
|
apply: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.format.apply"], params, options),
|
|
@@ -147,6 +147,13 @@ export interface DocDeleteParams {
|
|
|
147
147
|
start?: number;
|
|
148
148
|
end?: number;
|
|
149
149
|
}
|
|
150
|
+
export interface DocBlocksListParams {
|
|
151
|
+
doc?: string;
|
|
152
|
+
sessionId?: string;
|
|
153
|
+
offset?: number;
|
|
154
|
+
limit?: number;
|
|
155
|
+
nodeTypes?: Array<"paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt">;
|
|
156
|
+
}
|
|
150
157
|
export interface DocBlocksDeleteParams {
|
|
151
158
|
doc?: string;
|
|
152
159
|
sessionId?: string;
|
|
@@ -163,6 +170,25 @@ export interface DocBlocksDeleteParams {
|
|
|
163
170
|
nodeType?: string;
|
|
164
171
|
nodeId?: string;
|
|
165
172
|
}
|
|
173
|
+
export interface DocBlocksDeleteRangeParams {
|
|
174
|
+
doc?: string;
|
|
175
|
+
sessionId?: string;
|
|
176
|
+
out?: string;
|
|
177
|
+
force?: boolean;
|
|
178
|
+
expectedRevision?: number;
|
|
179
|
+
changeMode?: string;
|
|
180
|
+
dryRun?: boolean;
|
|
181
|
+
start?: {
|
|
182
|
+
kind: "block";
|
|
183
|
+
nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
|
|
184
|
+
nodeId: string;
|
|
185
|
+
};
|
|
186
|
+
end?: {
|
|
187
|
+
kind: "block";
|
|
188
|
+
nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
|
|
189
|
+
nodeId: string;
|
|
190
|
+
};
|
|
191
|
+
}
|
|
166
192
|
export interface DocFormatApplyParams {
|
|
167
193
|
doc?: string;
|
|
168
194
|
sessionId?: string;
|
|
@@ -7200,8 +7226,35 @@ export type DocReplaceResult = {
|
|
|
7200
7226
|
success: true;
|
|
7201
7227
|
};
|
|
7202
7228
|
export type DocDeleteResult = unknown;
|
|
7229
|
+
export type DocBlocksListResult = {
|
|
7230
|
+
blocks: Array<{
|
|
7231
|
+
isEmpty: boolean;
|
|
7232
|
+
nodeId: string;
|
|
7233
|
+
nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
|
|
7234
|
+
ordinal: number;
|
|
7235
|
+
textPreview: string | null;
|
|
7236
|
+
}>;
|
|
7237
|
+
revision: string;
|
|
7238
|
+
total: number;
|
|
7239
|
+
};
|
|
7203
7240
|
export type DocBlocksDeleteResult = {
|
|
7204
7241
|
deleted: unknown;
|
|
7242
|
+
deletedBlock?: {
|
|
7243
|
+
nodeId?: string;
|
|
7244
|
+
nodeType?: string;
|
|
7245
|
+
ordinal?: number;
|
|
7246
|
+
textPreview?: string | null;
|
|
7247
|
+
};
|
|
7248
|
+
success: true;
|
|
7249
|
+
};
|
|
7250
|
+
export type DocBlocksDeleteRangeResult = {
|
|
7251
|
+
deletedBlocks: Array<unknown>;
|
|
7252
|
+
deletedCount: number;
|
|
7253
|
+
dryRun: boolean;
|
|
7254
|
+
revision: {
|
|
7255
|
+
after: string;
|
|
7256
|
+
before: string;
|
|
7257
|
+
};
|
|
7205
7258
|
success: true;
|
|
7206
7259
|
};
|
|
7207
7260
|
export type DocFormatApplyResult = unknown;
|
|
@@ -8343,6 +8396,18 @@ export type DocCapabilitiesGetResult = {
|
|
|
8343
8396
|
reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
|
|
8344
8397
|
tracked: boolean;
|
|
8345
8398
|
};
|
|
8399
|
+
"blocks.deleteRange": {
|
|
8400
|
+
available: boolean;
|
|
8401
|
+
dryRun: boolean;
|
|
8402
|
+
reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
|
|
8403
|
+
tracked: boolean;
|
|
8404
|
+
};
|
|
8405
|
+
"blocks.list": {
|
|
8406
|
+
available: boolean;
|
|
8407
|
+
dryRun: boolean;
|
|
8408
|
+
reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
|
|
8409
|
+
tracked: boolean;
|
|
8410
|
+
};
|
|
8346
8411
|
"bookmarks.get": {
|
|
8347
8412
|
available: boolean;
|
|
8348
8413
|
dryRun: boolean;
|
|
@@ -11986,13 +12051,16 @@ export type DocAuthoritiesEntriesRemoveResult = {
|
|
|
11986
12051
|
success: true;
|
|
11987
12052
|
};
|
|
11988
12053
|
export type DocOpenResult = {
|
|
12054
|
+
active: boolean;
|
|
11989
12055
|
contextId: string;
|
|
11990
12056
|
sessionType: string;
|
|
11991
12057
|
document?: {
|
|
11992
12058
|
path?: string;
|
|
11993
12059
|
source?: string;
|
|
12060
|
+
byteLength?: number;
|
|
11994
12061
|
revision?: number;
|
|
11995
12062
|
};
|
|
12063
|
+
dirty?: boolean;
|
|
11996
12064
|
collaboration?: {
|
|
11997
12065
|
documentId?: string;
|
|
11998
12066
|
url?: string;
|
|
@@ -12002,6 +12070,8 @@ export type DocOpenResult = {
|
|
|
12002
12070
|
bootstrapApplied?: boolean;
|
|
12003
12071
|
bootstrapSource?: string;
|
|
12004
12072
|
};
|
|
12073
|
+
openedAt?: string;
|
|
12074
|
+
updatedAt?: string;
|
|
12005
12075
|
};
|
|
12006
12076
|
export type DocSaveResult = {
|
|
12007
12077
|
contextId: string;
|
|
@@ -12036,14 +12106,27 @@ export type DocCloseResult = {
|
|
|
12036
12106
|
};
|
|
12037
12107
|
};
|
|
12038
12108
|
export type DocStatusResult = {
|
|
12039
|
-
|
|
12109
|
+
active: boolean;
|
|
12110
|
+
contextId?: string;
|
|
12111
|
+
activeSessionId?: string;
|
|
12112
|
+
requestedSessionId?: string;
|
|
12113
|
+
projectRoot?: string;
|
|
12040
12114
|
sessionType?: string;
|
|
12041
12115
|
dirty?: boolean;
|
|
12042
|
-
revision?: number;
|
|
12043
12116
|
document?: {
|
|
12044
12117
|
path?: string;
|
|
12045
12118
|
source?: string;
|
|
12119
|
+
sourceByteLength?: number | null;
|
|
12120
|
+
byteLength?: number;
|
|
12121
|
+
revision?: number;
|
|
12122
|
+
};
|
|
12123
|
+
collaboration?: {
|
|
12124
|
+
documentId?: string;
|
|
12125
|
+
url?: string;
|
|
12046
12126
|
};
|
|
12127
|
+
openedAt?: string;
|
|
12128
|
+
updatedAt?: string;
|
|
12129
|
+
lastSavedAt?: string;
|
|
12047
12130
|
};
|
|
12048
12131
|
export type DocDescribeResult = {
|
|
12049
12132
|
contractVersion?: string;
|
|
@@ -12121,7 +12204,9 @@ export declare function createDocApi(runtime: SuperDocRuntime): {
|
|
|
12121
12204
|
replace: (params?: DocReplaceParams, options?: InvokeOptions) => Promise<DocReplaceResult>;
|
|
12122
12205
|
delete: (params?: DocDeleteParams, options?: InvokeOptions) => Promise<unknown>;
|
|
12123
12206
|
blocks: {
|
|
12207
|
+
list: (params?: DocBlocksListParams, options?: InvokeOptions) => Promise<DocBlocksListResult>;
|
|
12124
12208
|
delete: (params?: DocBlocksDeleteParams, options?: InvokeOptions) => Promise<DocBlocksDeleteResult>;
|
|
12209
|
+
deleteRange: (params?: DocBlocksDeleteRangeParams, options?: InvokeOptions) => Promise<DocBlocksDeleteRangeResult>;
|
|
12125
12210
|
};
|
|
12126
12211
|
format: {
|
|
12127
12212
|
apply: (params?: DocFormatApplyParams, options?: InvokeOptions) => Promise<unknown>;
|