@superdoc-dev/sdk 1.8.0-next.5 → 1.8.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 +4 -0
- package/dist/generated/client.d.ts +97 -0
- package/dist/generated/client.d.ts.map +1 -1
- package/dist/generated/client.js +4 -0
- package/dist/generated/contract.cjs +875 -226
- package/dist/generated/contract.d.ts.map +1 -1
- package/dist/generated/contract.js +875 -226
- package/dist/generated/intent-dispatch.generated.cjs +5 -0
- package/dist/generated/intent-dispatch.generated.d.ts.map +1 -1
- package/dist/generated/intent-dispatch.generated.js +5 -0
- 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 +85 -4
- package/tools/intent_dispatch_generated.py +10 -0
- package/tools/prompt-templates/system-prompt-core.md +88 -0
- package/tools/system-prompt-mcp.md +88 -0
- package/tools/system-prompt.md +88 -0
- package/tools/tools-policy.json +1 -1
- package/tools/tools.anthropic.json +47 -4
- package/tools/tools.generic.json +53 -5
- package/tools/tools.openai.json +47 -4
- package/tools/tools.vercel.json +47 -4
|
@@ -160,6 +160,8 @@ function createDocApi(runtime) {
|
|
|
160
160
|
join: async (params = {}, options) => unwrapEnvelope(await runtime.invoke(contract.CONTRACT.operations["doc.lists.join"], params, options), "result"),
|
|
161
161
|
canJoin: async (params = {}, options) => unwrapEnvelope(await runtime.invoke(contract.CONTRACT.operations["doc.lists.canJoin"], params, options), "result"),
|
|
162
162
|
separate: async (params = {}, options) => unwrapEnvelope(await runtime.invoke(contract.CONTRACT.operations["doc.lists.separate"], params, options), "result"),
|
|
163
|
+
merge: (params, options) => runtime.invoke(contract.CONTRACT.operations["doc.lists.merge"], params, options),
|
|
164
|
+
split: (params, options) => runtime.invoke(contract.CONTRACT.operations["doc.lists.split"], params, options),
|
|
163
165
|
setLevel: async (params = {}, options) => unwrapEnvelope(await runtime.invoke(contract.CONTRACT.operations["doc.lists.setLevel"], params, options), "result"),
|
|
164
166
|
setValue: async (params = {}, options) => unwrapEnvelope(await runtime.invoke(contract.CONTRACT.operations["doc.lists.setValue"], params, options), "result"),
|
|
165
167
|
continuePrevious: async (params = {}, options) => unwrapEnvelope(await runtime.invoke(contract.CONTRACT.operations["doc.lists.continuePrevious"], params, options), "result"),
|
|
@@ -659,6 +661,8 @@ function createBoundDocApi(runtime) {
|
|
|
659
661
|
join: async (params = {}, options) => unwrapEnvelope(await runtime.invoke(contract.CONTRACT.operations["doc.lists.join"], params, options), "result"),
|
|
660
662
|
canJoin: async (params = {}, options) => unwrapEnvelope(await runtime.invoke(contract.CONTRACT.operations["doc.lists.canJoin"], params, options), "result"),
|
|
661
663
|
separate: async (params = {}, options) => unwrapEnvelope(await runtime.invoke(contract.CONTRACT.operations["doc.lists.separate"], params, options), "result"),
|
|
664
|
+
merge: (params, options) => runtime.invoke(contract.CONTRACT.operations["doc.lists.merge"], params, options),
|
|
665
|
+
split: (params, options) => runtime.invoke(contract.CONTRACT.operations["doc.lists.split"], params, options),
|
|
662
666
|
setLevel: async (params = {}, options) => unwrapEnvelope(await runtime.invoke(contract.CONTRACT.operations["doc.lists.setLevel"], params, options), "result"),
|
|
663
667
|
setValue: async (params = {}, options) => unwrapEnvelope(await runtime.invoke(contract.CONTRACT.operations["doc.lists.setValue"], params, options), "result"),
|
|
664
668
|
continuePrevious: async (params = {}, options) => unwrapEnvelope(await runtime.invoke(contract.CONTRACT.operations["doc.lists.continuePrevious"], params, options), "result"),
|
|
@@ -3997,6 +3997,36 @@ export interface DocListsSeparateParams {
|
|
|
3997
3997
|
input?: Record<string, unknown> | unknown[];
|
|
3998
3998
|
nodeId?: string;
|
|
3999
3999
|
}
|
|
4000
|
+
export interface DocListsMergeParams {
|
|
4001
|
+
doc?: string;
|
|
4002
|
+
sessionId?: string;
|
|
4003
|
+
out?: string;
|
|
4004
|
+
force?: boolean;
|
|
4005
|
+
expectedRevision?: number;
|
|
4006
|
+
changeMode?: string;
|
|
4007
|
+
dryRun?: boolean;
|
|
4008
|
+
target: {
|
|
4009
|
+
kind: "block";
|
|
4010
|
+
nodeType: "listItem";
|
|
4011
|
+
nodeId: string;
|
|
4012
|
+
};
|
|
4013
|
+
direction: string;
|
|
4014
|
+
}
|
|
4015
|
+
export interface DocListsSplitParams {
|
|
4016
|
+
doc?: string;
|
|
4017
|
+
sessionId?: string;
|
|
4018
|
+
out?: string;
|
|
4019
|
+
force?: boolean;
|
|
4020
|
+
expectedRevision?: number;
|
|
4021
|
+
changeMode?: string;
|
|
4022
|
+
dryRun?: boolean;
|
|
4023
|
+
target: {
|
|
4024
|
+
kind: "block";
|
|
4025
|
+
nodeType: "listItem";
|
|
4026
|
+
nodeId: string;
|
|
4027
|
+
};
|
|
4028
|
+
restartNumbering?: boolean;
|
|
4029
|
+
}
|
|
4000
4030
|
export interface DocListsSetLevelParams {
|
|
4001
4031
|
doc?: string;
|
|
4002
4032
|
sessionId?: string;
|
|
@@ -9707,6 +9737,13 @@ export type DocExtractResult = {
|
|
|
9707
9737
|
nodeId: string;
|
|
9708
9738
|
type: string;
|
|
9709
9739
|
text: string;
|
|
9740
|
+
textSpans?: Array<{
|
|
9741
|
+
text: string;
|
|
9742
|
+
trackedChanges?: Array<{
|
|
9743
|
+
entityId: string;
|
|
9744
|
+
type: "insert" | "delete" | "format";
|
|
9745
|
+
}>;
|
|
9746
|
+
}>;
|
|
9710
9747
|
headingLevel?: number;
|
|
9711
9748
|
tableContext?: {
|
|
9712
9749
|
tableOrdinal: number;
|
|
@@ -9730,6 +9767,12 @@ export type DocExtractResult = {
|
|
|
9730
9767
|
trackedChanges: Array<{
|
|
9731
9768
|
entityId: string;
|
|
9732
9769
|
type: "insert" | "delete" | "format";
|
|
9770
|
+
blockIds?: Array<string>;
|
|
9771
|
+
wordRevisionIds?: {
|
|
9772
|
+
insert?: string;
|
|
9773
|
+
delete?: string;
|
|
9774
|
+
format?: string;
|
|
9775
|
+
};
|
|
9733
9776
|
excerpt?: string;
|
|
9734
9777
|
author?: string;
|
|
9735
9778
|
date?: string;
|
|
@@ -18621,6 +18664,18 @@ export type DocListsSeparateResult = {
|
|
|
18621
18664
|
listId: string;
|
|
18622
18665
|
numId: number;
|
|
18623
18666
|
};
|
|
18667
|
+
export type DocListsMergeResult = {
|
|
18668
|
+
success: true;
|
|
18669
|
+
listId: string;
|
|
18670
|
+
absorbedCount: number;
|
|
18671
|
+
removedEmptyBlocks: number;
|
|
18672
|
+
};
|
|
18673
|
+
export type DocListsSplitResult = {
|
|
18674
|
+
success: true;
|
|
18675
|
+
listId: string;
|
|
18676
|
+
numId: number;
|
|
18677
|
+
restartedAt: unknown;
|
|
18678
|
+
};
|
|
18624
18679
|
export type DocListsSetLevelResult = {
|
|
18625
18680
|
success: true;
|
|
18626
18681
|
item: {
|
|
@@ -20687,6 +20742,18 @@ export type DocCapabilitiesGetResult = {
|
|
|
20687
20742
|
dryRun: boolean;
|
|
20688
20743
|
reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
|
|
20689
20744
|
};
|
|
20745
|
+
"lists.merge": {
|
|
20746
|
+
available: boolean;
|
|
20747
|
+
tracked: boolean;
|
|
20748
|
+
dryRun: boolean;
|
|
20749
|
+
reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
|
|
20750
|
+
};
|
|
20751
|
+
"lists.split": {
|
|
20752
|
+
available: boolean;
|
|
20753
|
+
tracked: boolean;
|
|
20754
|
+
dryRun: boolean;
|
|
20755
|
+
reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
|
|
20756
|
+
};
|
|
20690
20757
|
"lists.setLevel": {
|
|
20691
20758
|
available: boolean;
|
|
20692
20759
|
tracked: boolean;
|
|
@@ -29767,6 +29834,32 @@ export interface DocListsSeparateBoundParams {
|
|
|
29767
29834
|
input?: Record<string, unknown> | unknown[];
|
|
29768
29835
|
nodeId?: string;
|
|
29769
29836
|
}
|
|
29837
|
+
export interface DocListsMergeBoundParams {
|
|
29838
|
+
out?: string;
|
|
29839
|
+
force?: boolean;
|
|
29840
|
+
expectedRevision?: number;
|
|
29841
|
+
changeMode?: string;
|
|
29842
|
+
dryRun?: boolean;
|
|
29843
|
+
target: {
|
|
29844
|
+
kind: "block";
|
|
29845
|
+
nodeType: "listItem";
|
|
29846
|
+
nodeId: string;
|
|
29847
|
+
};
|
|
29848
|
+
direction: string;
|
|
29849
|
+
}
|
|
29850
|
+
export interface DocListsSplitBoundParams {
|
|
29851
|
+
out?: string;
|
|
29852
|
+
force?: boolean;
|
|
29853
|
+
expectedRevision?: number;
|
|
29854
|
+
changeMode?: string;
|
|
29855
|
+
dryRun?: boolean;
|
|
29856
|
+
target: {
|
|
29857
|
+
kind: "block";
|
|
29858
|
+
nodeType: "listItem";
|
|
29859
|
+
nodeId: string;
|
|
29860
|
+
};
|
|
29861
|
+
restartNumbering?: boolean;
|
|
29862
|
+
}
|
|
29770
29863
|
export interface DocListsSetLevelBoundParams {
|
|
29771
29864
|
out?: string;
|
|
29772
29865
|
force?: boolean;
|
|
@@ -34870,6 +34963,8 @@ export declare function createDocApi(runtime: RuntimeInvoker): {
|
|
|
34870
34963
|
join: (params?: DocListsJoinParams, options?: InvokeOptions) => Promise<DocListsJoinResult>;
|
|
34871
34964
|
canJoin: (params?: DocListsCanJoinParams, options?: InvokeOptions) => Promise<DocListsCanJoinResult>;
|
|
34872
34965
|
separate: (params?: DocListsSeparateParams, options?: InvokeOptions) => Promise<DocListsSeparateResult>;
|
|
34966
|
+
merge: (params: DocListsMergeParams, options?: InvokeOptions) => Promise<DocListsMergeResult>;
|
|
34967
|
+
split: (params: DocListsSplitParams, options?: InvokeOptions) => Promise<DocListsSplitResult>;
|
|
34873
34968
|
setLevel: (params?: DocListsSetLevelParams, options?: InvokeOptions) => Promise<DocListsSetLevelResult>;
|
|
34874
34969
|
setValue: (params?: DocListsSetValueParams, options?: InvokeOptions) => Promise<DocListsSetValueResult>;
|
|
34875
34970
|
continuePrevious: (params?: DocListsContinuePreviousParams, options?: InvokeOptions) => Promise<DocListsContinuePreviousResult>;
|
|
@@ -35365,6 +35460,8 @@ export declare function createBoundDocApi(runtime: RuntimeInvoker): {
|
|
|
35365
35460
|
join: (params?: DocListsJoinBoundParams, options?: InvokeOptions) => Promise<DocListsJoinResult>;
|
|
35366
35461
|
canJoin: (params?: DocListsCanJoinBoundParams, options?: InvokeOptions) => Promise<DocListsCanJoinResult>;
|
|
35367
35462
|
separate: (params?: DocListsSeparateBoundParams, options?: InvokeOptions) => Promise<DocListsSeparateResult>;
|
|
35463
|
+
merge: (params: DocListsMergeBoundParams, options?: InvokeOptions) => Promise<DocListsMergeResult>;
|
|
35464
|
+
split: (params: DocListsSplitBoundParams, options?: InvokeOptions) => Promise<DocListsSplitResult>;
|
|
35368
35465
|
setLevel: (params?: DocListsSetLevelBoundParams, options?: InvokeOptions) => Promise<DocListsSetLevelResult>;
|
|
35369
35466
|
setValue: (params?: DocListsSetValueBoundParams, options?: InvokeOptions) => Promise<DocListsSetValueResult>;
|
|
35370
35467
|
continuePrevious: (params?: DocListsContinuePreviousBoundParams, options?: InvokeOptions) => Promise<DocListsContinuePreviousResult>;
|