@superdoc/sdk 2.25.0-next.3 → 2.25.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/agent/action-change-mode.cjs +6 -0
- package/dist/agent/action-change-mode.d.ts +1 -0
- package/dist/agent/action-change-mode.js +5 -0
- package/dist/agent/action-descriptors.json +2 -2
- package/dist/agent/actions.cjs +886 -530
- package/dist/agent/actions.d.ts +2 -0
- package/dist/agent/actions.js +887 -531
- package/dist/agent/catalog.cjs +5 -0
- package/dist/agent/catalog.js +5 -0
- package/dist/agent/doc-snapshot.cjs +10 -6
- package/dist/agent/doc-snapshot.d.ts +4 -1
- package/dist/agent/doc-snapshot.js +10 -6
- package/dist/agent/ir.d.ts +3 -0
- package/dist/embedded-prompts.generated.cjs +2 -1
- package/dist/embedded-prompts.generated.js +2 -1
- package/dist/embedded-tools.generated.cjs +5 -5
- package/dist/embedded-tools.generated.js +5 -5
- package/dist/generated/client.d.ts +100 -0
- package/dist/generated/contract.cjs +1 -1
- package/dist/generated/contract.js +1 -1
- package/dist/presets/core.cjs +2 -1
- package/dist/presets/core.d.ts +1 -0
- package/dist/presets/core.js +2 -2
- package/dist/presets/full.cjs +1804 -0
- package/dist/presets/full.d.ts +39 -0
- package/dist/presets/full.js +1795 -0
- package/dist/presets.cjs +2 -0
- package/dist/presets.js +2 -0
- package/dist/prompts/full-addendum.md +40 -0
- package/dist/prompts/system-prompt.md +3 -2
- package/dist/runtime/document-rpc.cjs +2 -8
- package/dist/runtime/document-rpc.js +2 -8
- 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/dist/runtime/tracked-support.cjs +11 -0
- package/dist/runtime/tracked-support.d.ts +6 -0
- package/dist/runtime/tracked-support.js +7 -0
- package/package.json +6 -6
- package/tools/catalog.json +9 -0
- package/tools/generation-receipt.json +20 -19
- package/tools/tools-policy.json +1 -1
- package/tools/tools.anthropic.json +9 -0
- package/tools/tools.generic.json +9 -0
- package/tools/tools.openai.json +9 -0
- package/tools/tools.vercel.json +9 -0
|
@@ -441,6 +441,37 @@ export interface DocGetNodeByIdParams {
|
|
|
441
441
|
sessionId?: string;
|
|
442
442
|
id: string;
|
|
443
443
|
nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
|
|
444
|
+
story?: ({
|
|
445
|
+
kind: "story";
|
|
446
|
+
storyType: "body";
|
|
447
|
+
}) | ({
|
|
448
|
+
kind: "story";
|
|
449
|
+
storyType: "headerFooterSlot";
|
|
450
|
+
section: {
|
|
451
|
+
kind: "section";
|
|
452
|
+
sectionId: string;
|
|
453
|
+
};
|
|
454
|
+
headerFooterKind: "header" | "footer";
|
|
455
|
+
variant: "default" | "first" | "even";
|
|
456
|
+
resolution?: "effective" | "explicit";
|
|
457
|
+
onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
|
|
458
|
+
}) | ({
|
|
459
|
+
kind: "story";
|
|
460
|
+
storyType: "headerFooterPart";
|
|
461
|
+
refId: string;
|
|
462
|
+
}) | ({
|
|
463
|
+
kind: "story";
|
|
464
|
+
storyType: "footnote";
|
|
465
|
+
noteId: string;
|
|
466
|
+
}) | ({
|
|
467
|
+
kind: "story";
|
|
468
|
+
storyType: "endnote";
|
|
469
|
+
noteId: string;
|
|
470
|
+
}) | ({
|
|
471
|
+
kind: "story";
|
|
472
|
+
storyType: "textbox";
|
|
473
|
+
textboxId: string;
|
|
474
|
+
});
|
|
444
475
|
}
|
|
445
476
|
export interface DocGetTextParams {
|
|
446
477
|
doc?: string;
|
|
@@ -21417,6 +21448,7 @@ export interface DocMutationsPreviewParams {
|
|
|
21417
21448
|
});
|
|
21418
21449
|
replacementMode?: "literal" | "regex-template";
|
|
21419
21450
|
caseHandling?: "exact" | "preserve-match";
|
|
21451
|
+
replacementGranularity?: "word" | "phrase" | "range";
|
|
21420
21452
|
style?: {
|
|
21421
21453
|
inline: {
|
|
21422
21454
|
mode: "preserve" | "set" | "clear" | "merge";
|
|
@@ -23332,6 +23364,7 @@ export interface DocMutationsApplyParams {
|
|
|
23332
23364
|
});
|
|
23333
23365
|
replacementMode?: "literal" | "regex-template";
|
|
23334
23366
|
caseHandling?: "exact" | "preserve-match";
|
|
23367
|
+
replacementGranularity?: "word" | "phrase" | "range";
|
|
23335
23368
|
style?: {
|
|
23336
23369
|
inline: {
|
|
23337
23370
|
mode: "preserve" | "set" | "clear" | "merge";
|
|
@@ -29048,6 +29081,18 @@ export interface DocCreateContentControlParams {
|
|
|
29048
29081
|
content?: string;
|
|
29049
29082
|
html?: string;
|
|
29050
29083
|
json?: Record<string, unknown> | Array<Record<string, unknown>>;
|
|
29084
|
+
inline?: {
|
|
29085
|
+
bold?: boolean | unknown;
|
|
29086
|
+
italic?: boolean | unknown;
|
|
29087
|
+
strike?: boolean | unknown;
|
|
29088
|
+
underline?: boolean | unknown | ({
|
|
29089
|
+
style?: string | unknown;
|
|
29090
|
+
color?: string | unknown;
|
|
29091
|
+
themeColor?: string | unknown;
|
|
29092
|
+
});
|
|
29093
|
+
fontSize?: number | unknown;
|
|
29094
|
+
fontFamily?: string | unknown;
|
|
29095
|
+
};
|
|
29051
29096
|
}
|
|
29052
29097
|
export interface DocContentControlsListParams {
|
|
29053
29098
|
doc?: string;
|
|
@@ -33540,6 +33585,11 @@ export interface DocExportToDocxParams {
|
|
|
33540
33585
|
doc?: string;
|
|
33541
33586
|
sessionId?: string;
|
|
33542
33587
|
mode?: "review-preserving" | "final" | "original";
|
|
33588
|
+
policies?: {
|
|
33589
|
+
trackedChanges?: "review-preserving" | "final" | "original";
|
|
33590
|
+
comments?: "preserve" | "resolve" | "remove";
|
|
33591
|
+
contentControls?: "preserve" | "flatten";
|
|
33592
|
+
};
|
|
33543
33593
|
}
|
|
33544
33594
|
export interface DocProtectionGetParams {
|
|
33545
33595
|
doc?: string;
|
|
@@ -282131,6 +282181,37 @@ export interface DocGetNodeBoundParams {
|
|
|
282131
282181
|
export interface DocGetNodeByIdBoundParams {
|
|
282132
282182
|
id: string;
|
|
282133
282183
|
nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
|
|
282184
|
+
story?: ({
|
|
282185
|
+
kind: "story";
|
|
282186
|
+
storyType: "body";
|
|
282187
|
+
}) | ({
|
|
282188
|
+
kind: "story";
|
|
282189
|
+
storyType: "headerFooterSlot";
|
|
282190
|
+
section: {
|
|
282191
|
+
kind: "section";
|
|
282192
|
+
sectionId: string;
|
|
282193
|
+
};
|
|
282194
|
+
headerFooterKind: "header" | "footer";
|
|
282195
|
+
variant: "default" | "first" | "even";
|
|
282196
|
+
resolution?: "effective" | "explicit";
|
|
282197
|
+
onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
|
|
282198
|
+
}) | ({
|
|
282199
|
+
kind: "story";
|
|
282200
|
+
storyType: "headerFooterPart";
|
|
282201
|
+
refId: string;
|
|
282202
|
+
}) | ({
|
|
282203
|
+
kind: "story";
|
|
282204
|
+
storyType: "footnote";
|
|
282205
|
+
noteId: string;
|
|
282206
|
+
}) | ({
|
|
282207
|
+
kind: "story";
|
|
282208
|
+
storyType: "endnote";
|
|
282209
|
+
noteId: string;
|
|
282210
|
+
}) | ({
|
|
282211
|
+
kind: "story";
|
|
282212
|
+
storyType: "textbox";
|
|
282213
|
+
textboxId: string;
|
|
282214
|
+
});
|
|
282134
282215
|
}
|
|
282135
282216
|
export interface DocGetTextBoundParams {
|
|
282136
282217
|
in?: ({
|
|
@@ -302751,6 +302832,7 @@ export interface DocMutationsPreviewBoundParams {
|
|
|
302751
302832
|
});
|
|
302752
302833
|
replacementMode?: "literal" | "regex-template";
|
|
302753
302834
|
caseHandling?: "exact" | "preserve-match";
|
|
302835
|
+
replacementGranularity?: "word" | "phrase" | "range";
|
|
302754
302836
|
style?: {
|
|
302755
302837
|
inline: {
|
|
302756
302838
|
mode: "preserve" | "set" | "clear" | "merge";
|
|
@@ -304664,6 +304746,7 @@ export interface DocMutationsApplyBoundParams {
|
|
|
304664
304746
|
});
|
|
304665
304747
|
replacementMode?: "literal" | "regex-template";
|
|
304666
304748
|
caseHandling?: "exact" | "preserve-match";
|
|
304749
|
+
replacementGranularity?: "word" | "phrase" | "range";
|
|
304667
304750
|
style?: {
|
|
304668
304751
|
inline: {
|
|
304669
304752
|
mode: "preserve" | "set" | "clear" | "merge";
|
|
@@ -310139,6 +310222,18 @@ export interface DocCreateContentControlBoundParams {
|
|
|
310139
310222
|
content?: string;
|
|
310140
310223
|
html?: string;
|
|
310141
310224
|
json?: Record<string, unknown> | Array<Record<string, unknown>>;
|
|
310225
|
+
inline?: {
|
|
310226
|
+
bold?: boolean | unknown;
|
|
310227
|
+
italic?: boolean | unknown;
|
|
310228
|
+
strike?: boolean | unknown;
|
|
310229
|
+
underline?: boolean | unknown | ({
|
|
310230
|
+
style?: string | unknown;
|
|
310231
|
+
color?: string | unknown;
|
|
310232
|
+
themeColor?: string | unknown;
|
|
310233
|
+
});
|
|
310234
|
+
fontSize?: number | unknown;
|
|
310235
|
+
fontFamily?: string | unknown;
|
|
310236
|
+
};
|
|
310142
310237
|
}
|
|
310143
310238
|
export interface DocContentControlsListBoundParams {
|
|
310144
310239
|
controlType?: string;
|
|
@@ -314381,6 +314476,11 @@ export interface DocDiffApplyBoundParams {
|
|
|
314381
314476
|
}
|
|
314382
314477
|
export interface DocExportToDocxBoundParams {
|
|
314383
314478
|
mode?: "review-preserving" | "final" | "original";
|
|
314479
|
+
policies?: {
|
|
314480
|
+
trackedChanges?: "review-preserving" | "final" | "original";
|
|
314481
|
+
comments?: "preserve" | "resolve" | "remove";
|
|
314482
|
+
contentControls?: "preserve" | "flatten";
|
|
314483
|
+
};
|
|
314384
314484
|
}
|
|
314385
314485
|
export interface DocProtectionGetBoundParams {
|
|
314386
314486
|
}
|