@superdoc-dev/sdk 1.8.0-next.3 → 1.8.0-next.5
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 +6 -0
- package/dist/generated/client.d.ts +57 -4
- package/dist/generated/client.d.ts.map +1 -1
- package/dist/generated/client.js +6 -0
- package/dist/generated/contract.cjs +195 -23
- package/dist/generated/contract.d.ts.map +1 -1
- package/dist/generated/contract.js +195 -23
- package/package.json +6 -6
- package/tools/__pycache__/__init__.cpython-312.pyc +0 -0
- package/tools/__pycache__/intent_dispatch_generated.cpython-312.pyc +0 -0
- package/tools/catalog.json +68 -21
- package/tools/tools-policy.json +1 -1
- package/tools/tools.anthropic.json +68 -21
- package/tools/tools.generic.json +68 -21
- package/tools/tools.openai.json +68 -21
- package/tools/tools.vercel.json +68 -21
|
@@ -204,6 +204,9 @@ function createDocApi(runtime) {
|
|
|
204
204
|
ranges: {
|
|
205
205
|
resolve: (params, options) => runtime.invoke(contract.CONTRACT.operations["doc.ranges.resolve"], params, options),
|
|
206
206
|
},
|
|
207
|
+
selection: {
|
|
208
|
+
current: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.selection.current"], params, options),
|
|
209
|
+
},
|
|
207
210
|
mutations: {
|
|
208
211
|
preview: async (params, options) => unwrapEnvelope(await runtime.invoke(contract.CONTRACT.operations["doc.mutations.preview"], params, options), "result"),
|
|
209
212
|
apply: async (params, options) => unwrapEnvelope(await runtime.invoke(contract.CONTRACT.operations["doc.mutations.apply"], params, options), "result"),
|
|
@@ -700,6 +703,9 @@ function createBoundDocApi(runtime) {
|
|
|
700
703
|
ranges: {
|
|
701
704
|
resolve: (params, options) => runtime.invoke(contract.CONTRACT.operations["doc.ranges.resolve"], params, options),
|
|
702
705
|
},
|
|
706
|
+
selection: {
|
|
707
|
+
current: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.selection.current"], params, options),
|
|
708
|
+
},
|
|
703
709
|
mutations: {
|
|
704
710
|
preview: async (params, options) => unwrapEnvelope(await runtime.invoke(contract.CONTRACT.operations["doc.mutations.preview"], params, options), "result"),
|
|
705
711
|
apply: async (params, options) => unwrapEnvelope(await runtime.invoke(contract.CONTRACT.operations["doc.mutations.apply"], params, options), "result"),
|
|
@@ -4447,14 +4447,23 @@ export interface DocCommentsCreateParams {
|
|
|
4447
4447
|
expectedRevision?: number;
|
|
4448
4448
|
changeMode?: string;
|
|
4449
4449
|
text?: string;
|
|
4450
|
-
target?: {
|
|
4450
|
+
target?: ({
|
|
4451
4451
|
kind: "text";
|
|
4452
4452
|
blockId: string;
|
|
4453
4453
|
range: {
|
|
4454
4454
|
start: number;
|
|
4455
4455
|
end: number;
|
|
4456
4456
|
};
|
|
4457
|
-
}
|
|
4457
|
+
}) | ({
|
|
4458
|
+
kind: "text";
|
|
4459
|
+
segments: Array<{
|
|
4460
|
+
blockId: string;
|
|
4461
|
+
range: {
|
|
4462
|
+
start: number;
|
|
4463
|
+
end: number;
|
|
4464
|
+
};
|
|
4465
|
+
}>;
|
|
4466
|
+
});
|
|
4458
4467
|
parentId?: string;
|
|
4459
4468
|
blockId?: string;
|
|
4460
4469
|
start?: number;
|
|
@@ -4713,6 +4722,11 @@ export interface DocRangesResolveParams {
|
|
|
4713
4722
|
});
|
|
4714
4723
|
expectedRevision?: string;
|
|
4715
4724
|
}
|
|
4725
|
+
export interface DocSelectionCurrentParams {
|
|
4726
|
+
doc?: string;
|
|
4727
|
+
sessionId?: string;
|
|
4728
|
+
includeText?: boolean;
|
|
4729
|
+
}
|
|
4716
4730
|
export interface DocMutationsPreviewParams {
|
|
4717
4731
|
doc?: string;
|
|
4718
4732
|
sessionId?: string;
|
|
@@ -19665,6 +19679,21 @@ export type DocRangesResolveResult = {
|
|
|
19665
19679
|
}>;
|
|
19666
19680
|
};
|
|
19667
19681
|
};
|
|
19682
|
+
export type DocSelectionCurrentResult = {
|
|
19683
|
+
empty: boolean;
|
|
19684
|
+
target: ({
|
|
19685
|
+
kind: "text";
|
|
19686
|
+
segments: Array<{
|
|
19687
|
+
blockId: string;
|
|
19688
|
+
range: {
|
|
19689
|
+
start: number;
|
|
19690
|
+
end: number;
|
|
19691
|
+
};
|
|
19692
|
+
}>;
|
|
19693
|
+
}) | null;
|
|
19694
|
+
activeMarks: Array<string>;
|
|
19695
|
+
text?: string;
|
|
19696
|
+
};
|
|
19668
19697
|
export type DocMutationsPreviewResult = {
|
|
19669
19698
|
evaluatedRevision: string;
|
|
19670
19699
|
steps: Array<Record<string, unknown>>;
|
|
@@ -20868,6 +20897,12 @@ export type DocCapabilitiesGetResult = {
|
|
|
20868
20897
|
dryRun: boolean;
|
|
20869
20898
|
reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
|
|
20870
20899
|
};
|
|
20900
|
+
"selection.current": {
|
|
20901
|
+
available: boolean;
|
|
20902
|
+
tracked: boolean;
|
|
20903
|
+
dryRun: boolean;
|
|
20904
|
+
reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
|
|
20905
|
+
};
|
|
20871
20906
|
"mutations.preview": {
|
|
20872
20907
|
available: boolean;
|
|
20873
20908
|
tracked: boolean;
|
|
@@ -30130,14 +30165,23 @@ export interface DocCommentsCreateBoundParams {
|
|
|
30130
30165
|
expectedRevision?: number;
|
|
30131
30166
|
changeMode?: string;
|
|
30132
30167
|
text?: string;
|
|
30133
|
-
target?: {
|
|
30168
|
+
target?: ({
|
|
30134
30169
|
kind: "text";
|
|
30135
30170
|
blockId: string;
|
|
30136
30171
|
range: {
|
|
30137
30172
|
start: number;
|
|
30138
30173
|
end: number;
|
|
30139
30174
|
};
|
|
30140
|
-
}
|
|
30175
|
+
}) | ({
|
|
30176
|
+
kind: "text";
|
|
30177
|
+
segments: Array<{
|
|
30178
|
+
blockId: string;
|
|
30179
|
+
range: {
|
|
30180
|
+
start: number;
|
|
30181
|
+
end: number;
|
|
30182
|
+
};
|
|
30183
|
+
}>;
|
|
30184
|
+
});
|
|
30141
30185
|
parentId?: string;
|
|
30142
30186
|
blockId?: string;
|
|
30143
30187
|
start?: number;
|
|
@@ -30378,6 +30422,9 @@ export interface DocRangesResolveBoundParams {
|
|
|
30378
30422
|
});
|
|
30379
30423
|
expectedRevision?: string;
|
|
30380
30424
|
}
|
|
30425
|
+
export interface DocSelectionCurrentBoundParams {
|
|
30426
|
+
includeText?: boolean;
|
|
30427
|
+
}
|
|
30381
30428
|
export interface DocMutationsPreviewBoundParams {
|
|
30382
30429
|
in?: ({
|
|
30383
30430
|
kind: "story";
|
|
@@ -34867,6 +34914,9 @@ export declare function createDocApi(runtime: RuntimeInvoker): {
|
|
|
34867
34914
|
ranges: {
|
|
34868
34915
|
resolve: (params: DocRangesResolveParams, options?: InvokeOptions) => Promise<DocRangesResolveResult>;
|
|
34869
34916
|
};
|
|
34917
|
+
selection: {
|
|
34918
|
+
current: (params?: DocSelectionCurrentParams, options?: InvokeOptions) => Promise<DocSelectionCurrentResult>;
|
|
34919
|
+
};
|
|
34870
34920
|
mutations: {
|
|
34871
34921
|
preview: (params: DocMutationsPreviewParams, options?: InvokeOptions) => Promise<DocMutationsPreviewResult>;
|
|
34872
34922
|
apply: (params: DocMutationsApplyParams, options?: InvokeOptions) => Promise<DocMutationsApplyResult>;
|
|
@@ -35359,6 +35409,9 @@ export declare function createBoundDocApi(runtime: RuntimeInvoker): {
|
|
|
35359
35409
|
ranges: {
|
|
35360
35410
|
resolve: (params: DocRangesResolveBoundParams, options?: InvokeOptions) => Promise<DocRangesResolveResult>;
|
|
35361
35411
|
};
|
|
35412
|
+
selection: {
|
|
35413
|
+
current: (params?: DocSelectionCurrentBoundParams, options?: InvokeOptions) => Promise<DocSelectionCurrentResult>;
|
|
35414
|
+
};
|
|
35362
35415
|
mutations: {
|
|
35363
35416
|
preview: (params: DocMutationsPreviewBoundParams, options?: InvokeOptions) => Promise<DocMutationsPreviewResult>;
|
|
35364
35417
|
apply: (params: DocMutationsApplyBoundParams, options?: InvokeOptions) => Promise<DocMutationsApplyResult>;
|