@bendyline/docblocks 2.1.2 → 2.2.0
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/{chunk-DOV5VRTD.js → chunk-DBJW7BZI.js} +0 -42
- package/dist/filesystem/electron.d.ts +1 -1
- package/dist/filesystem/index.d.ts +1 -1
- package/dist/host/index.d.ts +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/mcp/index.d.ts +3 -6
- package/dist/mcp/index.js +1 -3
- package/dist/mcp/zod.d.ts +2 -708
- package/dist/mcp/zod.js +1 -31
- package/dist/{types-CueK0tvU.d.ts → types-Cv4uiosG.d.ts} +1 -1
- package/dist/{types-B7BBB5az.d.ts → types-DkvEkg0I.d.ts} +2 -32
- package/dist/workspace/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -9,7 +9,6 @@ var DOCBLOCKS_MCP_TOOL_NAMES = [
|
|
|
9
9
|
"get_conversion_report",
|
|
10
10
|
"convert_document",
|
|
11
11
|
"create_document_bundle",
|
|
12
|
-
"revise_document",
|
|
13
12
|
"save_artifact",
|
|
14
13
|
"inspect_document",
|
|
15
14
|
"validate_document",
|
|
@@ -39,8 +38,6 @@ var MCP_WIRE_LIMITS = Object.freeze({
|
|
|
39
38
|
messageCharacters: 4e3,
|
|
40
39
|
excerptCharacters: 4096,
|
|
41
40
|
documentCharacters: 20 * 1024 * 1024,
|
|
42
|
-
revisionFragmentCharacters: 1024 * 1024,
|
|
43
|
-
revisionEdits: 64,
|
|
44
41
|
artifactBytes: 500 * 1024 * 1024,
|
|
45
42
|
bundleAssets: 256,
|
|
46
43
|
arrayEntries: 1e4,
|
|
@@ -253,33 +250,6 @@ function parseConversionResult(value) {
|
|
|
253
250
|
diagnostics
|
|
254
251
|
};
|
|
255
252
|
}
|
|
256
|
-
function parseDocumentRevisionResult(value) {
|
|
257
|
-
if (!isRecord(value) || !hasExactKeys(value, [
|
|
258
|
-
"version",
|
|
259
|
-
"kind",
|
|
260
|
-
"parentArtifact",
|
|
261
|
-
"artifact",
|
|
262
|
-
"edits",
|
|
263
|
-
"diagnostics"
|
|
264
|
-
]) || value.version !== DOCBLOCKS_MCP_WIRE_VERSION || value.kind !== "revision") {
|
|
265
|
-
return null;
|
|
266
|
-
}
|
|
267
|
-
const parentArtifact = parseArtifactRef(value.parentArtifact);
|
|
268
|
-
const artifact = parseArtifactRef(value.artifact);
|
|
269
|
-
const edits = parseArray(value.edits, parseAppliedBlockRevision, MCP_WIRE_LIMITS.revisionEdits);
|
|
270
|
-
const diagnostics = parseArray(value.diagnostics, parseMcpDiagnostic);
|
|
271
|
-
if (parentArtifact === null || artifact === null || edits === null || diagnostics === null || edits.length < 1 || new Set(edits.map((edit) => edit.blockId)).size !== edits.length || parentArtifact.uri === artifact.uri || parentArtifact.format !== "dbk" || artifact.format !== "dbk" || artifact.sourceFormat !== "dbk" || artifact.sourceSha256 === null) {
|
|
272
|
-
return null;
|
|
273
|
-
}
|
|
274
|
-
return {
|
|
275
|
-
version: DOCBLOCKS_MCP_WIRE_VERSION,
|
|
276
|
-
kind: "revision",
|
|
277
|
-
parentArtifact,
|
|
278
|
-
artifact,
|
|
279
|
-
edits,
|
|
280
|
-
diagnostics
|
|
281
|
-
};
|
|
282
|
-
}
|
|
283
253
|
function parseInspectionResult(value) {
|
|
284
254
|
if (!isRecord(value) || !hasExactKeys(value, [
|
|
285
255
|
"version",
|
|
@@ -510,17 +480,6 @@ function parseEngineVersion(value) {
|
|
|
510
480
|
}
|
|
511
481
|
return { name: value.name, version: value.version };
|
|
512
482
|
}
|
|
513
|
-
function parseAppliedBlockRevision(value) {
|
|
514
|
-
if (!isRecord(value) || !hasExactKeys(value, ["kind", "blockId", "beforeSha256", "afterSha256"]) || value.kind !== "replace_block" || !isIdentifier(value.blockId) || !isSha256(value.beforeSha256) || !isSha256(value.afterSha256)) {
|
|
515
|
-
return null;
|
|
516
|
-
}
|
|
517
|
-
return {
|
|
518
|
-
kind: "replace_block",
|
|
519
|
-
blockId: value.blockId,
|
|
520
|
-
beforeSha256: value.beforeSha256,
|
|
521
|
-
afterSha256: value.afterSha256
|
|
522
|
-
};
|
|
523
|
-
}
|
|
524
483
|
function parseDocumentMetadata(value) {
|
|
525
484
|
if (!isRecord(value) || !hasExactKeys(value, ["title", "author", "description"]) || !isNullableBoundedString(value.title, MCP_WIRE_LIMITS.labelCharacters) || !isNullableBoundedString(value.author, MCP_WIRE_LIMITS.labelCharacters) || !isNullableBoundedString(value.description, MCP_WIRE_LIMITS.messageCharacters)) {
|
|
526
485
|
return null;
|
|
@@ -844,7 +803,6 @@ export {
|
|
|
844
803
|
parseMcpDiagnostic,
|
|
845
804
|
parseMcpErrorResult,
|
|
846
805
|
parseConversionResult,
|
|
847
|
-
parseDocumentRevisionResult,
|
|
848
806
|
parseInspectionResult,
|
|
849
807
|
parseValidationResult,
|
|
850
808
|
parsePreviewResult,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { s as FileSystemProviderV2, r as FileSystemProviderCapabilities, k as FileSystemEntrySnapshot, m as FileSystemFileRead, K as FileSystemWriteOptions, n as FileSystemFileSnapshot, g as FileSystemCreateDirectoryOptions, h as FileSystemDirectorySnapshot, u as FileSystemRemoveOptions, v as FileSystemRemoveResult, o as FileSystemMoveOptions, w as FileSystemSnapshot, C as FileSystemWatchEvent, H as FileSystemWatchOptions, I as FileSystemWatchSubscription, q as FileSystemProvider, F as FileCommitResult, j as FileSystemEntry, b as FileMeta } from '../types-BEg5SQ1_.js';
|
|
2
2
|
import { a as WorkspacePath } from '../workspace-path-CWVrcuPL.js';
|
|
3
3
|
export { isElectronHost } from '../host/index.js';
|
|
4
|
-
import '../types-
|
|
4
|
+
import '../types-Cv4uiosG.js';
|
|
5
5
|
|
|
6
6
|
/** Pure renderer-side client for the typed Electron filesystem v2 transport. */
|
|
7
7
|
declare class ElectronFileSystemProviderV2 implements FileSystemProviderV2 {
|
|
@@ -10,7 +10,7 @@ import { MediaProvider } from '@bendyline/squisq/schemas';
|
|
|
10
10
|
export { NativeFileSystemMovePathState, NativeFileSystemMoveRecoveryError, NativeFileSystemMoveRecoveryState, NativeFileSystemProvider, NativeFileSystemProviderV2, isNativeFileSystemSupported, loadDirectoryHandle, openNativeFolder, removeDirectoryHandle, restoreNativeFolder, storeDirectoryHandle } from './native.js';
|
|
11
11
|
export { ElectronFileSystemProvider, ElectronFileSystemProviderV2 } from './electron.js';
|
|
12
12
|
export { isElectronHost } from '../host/index.js';
|
|
13
|
-
import '../types-
|
|
13
|
+
import '../types-Cv4uiosG.js';
|
|
14
14
|
|
|
15
15
|
interface DecodeUtf8TextOptions {
|
|
16
16
|
/** User-facing description of the payload being decoded. */
|
package/dist/host/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { O as OpenRequest, D as DocBlocksHostAPI } from '../types-
|
|
2
|
-
export { a as DocBlocksHostExportAPI, b as DocBlocksHostExternalAPI, c as DocBlocksHostFfmpegAPI, d as DocBlocksHostFsAPI, e as DocBlocksHostFsV2API, f as DocBlocksHostGitAPI, g as DocBlocksHostLifecycleAPI, h as DocBlocksHostShellAPI, i as DocBlocksHostUpdaterAPI, j as DocBlocksHostWorkspacesAPI, E as ELECTRON_FILE_SYSTEM_V2_CAPABILITIES, k as ElectronWorkspaceInfo, l as ExternalBinaryCommitResult, G as GitBranchInfo, m as GitCapabilities, n as GitCloneHandle, o as GitCloneProgress, p as GitError, q as GitErrorCode, r as GitFileAtRevision, s as GitFileChange, t as GitFileStatusCode, u as GitLogEntry, v as GitLogOptions, w as GitRemoteInfo, x as GitRepoDetection, y as GitResult, z as GitRevision, A as GitStatus, H as HostCloseReason, B as HostEnvironment, C as HostExportTargetGrant, F as HostFileSystemV2OpenRequest, I as HostFileSystemV2Result, J as HostFileSystemV2WatchMessage, K as HostPrepareCloseRequest, L as HostPrepareCloseResult, M as MenuCommand, U as UpdateCheckResult, N as UpdateInstallResult, P as UpdaterStatus } from '../types-
|
|
1
|
+
import { O as OpenRequest, D as DocBlocksHostAPI } from '../types-Cv4uiosG.js';
|
|
2
|
+
export { a as DocBlocksHostExportAPI, b as DocBlocksHostExternalAPI, c as DocBlocksHostFfmpegAPI, d as DocBlocksHostFsAPI, e as DocBlocksHostFsV2API, f as DocBlocksHostGitAPI, g as DocBlocksHostLifecycleAPI, h as DocBlocksHostShellAPI, i as DocBlocksHostUpdaterAPI, j as DocBlocksHostWorkspacesAPI, E as ELECTRON_FILE_SYSTEM_V2_CAPABILITIES, k as ElectronWorkspaceInfo, l as ExternalBinaryCommitResult, G as GitBranchInfo, m as GitCapabilities, n as GitCloneHandle, o as GitCloneProgress, p as GitError, q as GitErrorCode, r as GitFileAtRevision, s as GitFileChange, t as GitFileStatusCode, u as GitLogEntry, v as GitLogOptions, w as GitRemoteInfo, x as GitRepoDetection, y as GitResult, z as GitRevision, A as GitStatus, H as HostCloseReason, B as HostEnvironment, C as HostExportTargetGrant, F as HostFileSystemV2OpenRequest, I as HostFileSystemV2Result, J as HostFileSystemV2WatchMessage, K as HostPrepareCloseRequest, L as HostPrepareCloseResult, M as MenuCommand, U as UpdateCheckResult, N as UpdateInstallResult, P as UpdaterStatus } from '../types-Cv4uiosG.js';
|
|
3
3
|
import '../types-BEg5SQ1_.js';
|
|
4
4
|
import '../workspace-path-CWVrcuPL.js';
|
|
5
5
|
|
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,6 @@ export { DOCUMENT_RECOVERY_JOURNAL_SCHEMA_VERSION, DOCUMENT_RECOVERY_JOURNAL_STO
|
|
|
9
9
|
export { ElectronWorkspaceReconciliation, TransientOrigin, WorkspaceDescriptor, ensureDefaultWorkspace, getTransientWorkspace, getWorkspace, listWorkspaces, parsePersistedWorkspaceList, reconcileElectronWorkspaceDescriptors, registerTransientWorkspace, removeWorkspace, saveWorkspace, touchWorkspace, unregisterTransientWorkspace } from './workspace/index.js';
|
|
10
10
|
export { HOST_WIRE_LIMITS, getDocBlocksHost, isBoundedBytePayload, isBoundedString, isElectronHost, isTrustedRendererUrl, maybeGetDocBlocksHost, parseExternalHttpUrl, parseOpenRequest } from './host/index.js';
|
|
11
11
|
export { SHARED_DOCUMENT_LIMITS, SharedDocumentHashParseResult, SharedDocumentMode, SharedDocumentPayload, createSharedDocumentHash, createSharedDocumentUrl, parseSharedDocumentHash } from './share/index.js';
|
|
12
|
-
export { D as DocBlocksHostAPI, a as DocBlocksHostExportAPI, b as DocBlocksHostExternalAPI, c as DocBlocksHostFfmpegAPI, d as DocBlocksHostFsAPI, e as DocBlocksHostFsV2API, f as DocBlocksHostGitAPI, g as DocBlocksHostLifecycleAPI, h as DocBlocksHostShellAPI, i as DocBlocksHostUpdaterAPI, j as DocBlocksHostWorkspacesAPI, E as ELECTRON_FILE_SYSTEM_V2_CAPABILITIES, k as ElectronWorkspaceInfo, l as ExternalBinaryCommitResult, G as GitBranchInfo, m as GitCapabilities, n as GitCloneHandle, o as GitCloneProgress, p as GitError, q as GitErrorCode, r as GitFileAtRevision, s as GitFileChange, t as GitFileStatusCode, u as GitLogEntry, v as GitLogOptions, w as GitRemoteInfo, x as GitRepoDetection, y as GitResult, z as GitRevision, A as GitStatus, H as HostCloseReason, B as HostEnvironment, C as HostExportTargetGrant, F as HostFileSystemV2OpenRequest, I as HostFileSystemV2Result, J as HostFileSystemV2WatchMessage, K as HostPrepareCloseRequest, L as HostPrepareCloseResult, M as MenuCommand, O as OpenRequest, U as UpdateCheckResult, N as UpdateInstallResult, P as UpdaterStatus } from './types-
|
|
12
|
+
export { D as DocBlocksHostAPI, a as DocBlocksHostExportAPI, b as DocBlocksHostExternalAPI, c as DocBlocksHostFfmpegAPI, d as DocBlocksHostFsAPI, e as DocBlocksHostFsV2API, f as DocBlocksHostGitAPI, g as DocBlocksHostLifecycleAPI, h as DocBlocksHostShellAPI, i as DocBlocksHostUpdaterAPI, j as DocBlocksHostWorkspacesAPI, E as ELECTRON_FILE_SYSTEM_V2_CAPABILITIES, k as ElectronWorkspaceInfo, l as ExternalBinaryCommitResult, G as GitBranchInfo, m as GitCapabilities, n as GitCloneHandle, o as GitCloneProgress, p as GitError, q as GitErrorCode, r as GitFileAtRevision, s as GitFileChange, t as GitFileStatusCode, u as GitLogEntry, v as GitLogOptions, w as GitRemoteInfo, x as GitRepoDetection, y as GitResult, z as GitRevision, A as GitStatus, H as HostCloseReason, B as HostEnvironment, C as HostExportTargetGrant, F as HostFileSystemV2OpenRequest, I as HostFileSystemV2Result, J as HostFileSystemV2WatchMessage, K as HostPrepareCloseRequest, L as HostPrepareCloseResult, M as MenuCommand, O as OpenRequest, U as UpdateCheckResult, N as UpdateInstallResult, P as UpdaterStatus } from './types-Cv4uiosG.js';
|
|
13
13
|
import '@bendyline/squisq/storage';
|
|
14
14
|
import '@bendyline/squisq/schemas';
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as ArtifactRef, C as ComparisonResult, a as ConversionResult, D as
|
|
2
|
-
export {
|
|
1
|
+
import { A as ArtifactRef, C as ComparisonResult, a as ConversionResult, D as DocumentSource, I as InspectionResult, M as MaterializationOptions, b as McpDiagnostic, c as McpErrorResult, P as PreviewResult, V as ValidationResult } from '../types-DkvEkg0I.js';
|
|
2
|
+
export { d as AppliedOption, e as AppliedOptionValue, f as ApplyInferredThemeResult, g as ArtifactDocumentSource, h as AssetSummary, i as AuthoringContextResult, j as AuthoringGoal, k as AuthoringSyntaxSummary, l as AuthoringTemplateSummary, B as BlockSummary, m as BundleAssetContentSource, n as BundleAssetRef, o as BundleDocumentSource, p as ComparisonCategory, q as ComparisonChange, r as ComparisonMetric, s as ComparisonStatus, t as ConversionFidelity, u as ConvertDocumentResult, v as DOCBLOCKS_MCP_TOOL_NAMES, w as DOCBLOCKS_MCP_WIRE_VERSION, x as DescribeTemplateResult, y as DescribeThemeResult, z as DescribedTemplate, E as DiagnosticLocation, F as DiagnosticSeverity, G as DiagnosticStage, H as DocBlocksMcpToolName, J as DocBlocksMcpWireVersion, K as DocumentItemSummary, L as DocumentMetadataSummary, N as DocumentStatistics, O as EngineVersion, Q as FileDocumentSource, R as FormatCapabilitySummary, S as FormatDirectionCapability, T as InferThemeResult, U as InferredLayoutSummary, W as InspectPptxLayoutsResult, X as LinkSummary, Y as ListFormatsResult, Z as ListRootsResult, _ as ListTemplatesResult, $ as ListThemesResult, a0 as ListTransformStylesResult, a1 as MarkdownDocumentSource, a2 as McpErrorDetail, a3 as McpSuccessResult, a4 as OutlineEntry, a5 as PptxLayoutSummary, a6 as PptxSlideSize, a7 as PreviewItem, a8 as PreviewItemKind, a9 as RecommendTemplatesResult, aa as RootGrantSummary, ab as SaveArtifactResult, ac as SavedArtifactDestination, ad as SourceRange, ae as TableSummary, af as TemplateAuthoringRole, ag as TemplateBodyPolicy, ah as TemplateContentProfile, ai as TemplateInputSummary, aj as TemplateRecommendation, ak as TemplateSummary, al as ThemeCatalogEntry, am as ThemeDescription, an as ThemeDescriptionColors, ao as ThemeSummary, ap as TransformStyleSummary, aq as ValidationSummary } from '../types-DkvEkg0I.js';
|
|
3
3
|
import '../workspace-path-CWVrcuPL.js';
|
|
4
4
|
|
|
5
5
|
/** Quantitative limits for untrusted MCP payloads. */
|
|
@@ -13,8 +13,6 @@ declare const MCP_WIRE_LIMITS: Readonly<{
|
|
|
13
13
|
messageCharacters: 4000;
|
|
14
14
|
excerptCharacters: 4096;
|
|
15
15
|
documentCharacters: number;
|
|
16
|
-
revisionFragmentCharacters: number;
|
|
17
|
-
revisionEdits: 64;
|
|
18
16
|
artifactBytes: number;
|
|
19
17
|
bundleAssets: 256;
|
|
20
18
|
arrayEntries: 10000;
|
|
@@ -26,11 +24,10 @@ declare function parseDocumentSource(value: unknown): DocumentSource | null;
|
|
|
26
24
|
declare function parseMcpDiagnostic(value: unknown): McpDiagnostic | null;
|
|
27
25
|
declare function parseMcpErrorResult(value: unknown): McpErrorResult | null;
|
|
28
26
|
declare function parseConversionResult(value: unknown): ConversionResult | null;
|
|
29
|
-
declare function parseDocumentRevisionResult(value: unknown): DocumentRevisionResult | null;
|
|
30
27
|
declare function parseInspectionResult(value: unknown): InspectionResult | null;
|
|
31
28
|
declare function parseValidationResult(value: unknown): ValidationResult | null;
|
|
32
29
|
declare function parsePreviewResult(value: unknown): PreviewResult | null;
|
|
33
30
|
declare function parseComparisonResult(value: unknown): ComparisonResult | null;
|
|
34
31
|
declare function parseMaterializationOptions(value: unknown): MaterializationOptions | null;
|
|
35
32
|
|
|
36
|
-
export { ArtifactRef, ComparisonResult, ConversionResult,
|
|
33
|
+
export { ArtifactRef, ComparisonResult, ConversionResult, DocumentSource, InspectionResult, MCP_WIRE_LIMITS, MaterializationOptions, McpDiagnostic, McpErrorResult, PreviewResult, ValidationResult, parseArtifactRef, parseComparisonResult, parseConversionResult, parseDocumentSource, parseInspectionResult, parseMaterializationOptions, parseMcpDiagnostic, parseMcpErrorResult, parsePreviewResult, parseValidationResult };
|
package/dist/mcp/index.js
CHANGED
|
@@ -5,7 +5,6 @@ import {
|
|
|
5
5
|
parseArtifactRef,
|
|
6
6
|
parseComparisonResult,
|
|
7
7
|
parseConversionResult,
|
|
8
|
-
parseDocumentRevisionResult,
|
|
9
8
|
parseDocumentSource,
|
|
10
9
|
parseInspectionResult,
|
|
11
10
|
parseMaterializationOptions,
|
|
@@ -13,7 +12,7 @@ import {
|
|
|
13
12
|
parseMcpErrorResult,
|
|
14
13
|
parsePreviewResult,
|
|
15
14
|
parseValidationResult
|
|
16
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-DBJW7BZI.js";
|
|
17
16
|
import "../chunk-AYWKIZLD.js";
|
|
18
17
|
export {
|
|
19
18
|
DOCBLOCKS_MCP_TOOL_NAMES,
|
|
@@ -22,7 +21,6 @@ export {
|
|
|
22
21
|
parseArtifactRef,
|
|
23
22
|
parseComparisonResult,
|
|
24
23
|
parseConversionResult,
|
|
25
|
-
parseDocumentRevisionResult,
|
|
26
24
|
parseDocumentSource,
|
|
27
25
|
parseInspectionResult,
|
|
28
26
|
parseMaterializationOptions,
|
package/dist/mcp/zod.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { z as z$1 } from 'zod/v4';
|
|
3
|
-
import {
|
|
3
|
+
import { H as DocBlocksMcpToolName } from '../types-DkvEkg0I.js';
|
|
4
4
|
import '../workspace-path-CWVrcuPL.js';
|
|
5
5
|
|
|
6
6
|
/** Canonical Zod projection of the exact MCP wire contract for protocol SDKs. */
|
|
@@ -3041,712 +3041,6 @@ declare const comparisonResultSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3041
3041
|
similarity: number;
|
|
3042
3042
|
}[];
|
|
3043
3043
|
}>;
|
|
3044
|
-
declare const replaceBlockRevisionSchema: z.ZodObject<{
|
|
3045
|
-
kind: z.ZodLiteral<"replace_block">;
|
|
3046
|
-
blockId: z.ZodString;
|
|
3047
|
-
markdown: z.ZodString;
|
|
3048
|
-
}, "strict", z.ZodTypeAny, {
|
|
3049
|
-
markdown: string;
|
|
3050
|
-
kind: "replace_block";
|
|
3051
|
-
blockId: string;
|
|
3052
|
-
}, {
|
|
3053
|
-
markdown: string;
|
|
3054
|
-
kind: "replace_block";
|
|
3055
|
-
blockId: string;
|
|
3056
|
-
}>;
|
|
3057
|
-
declare const documentRevisionRequestSchema: z.ZodObject<{
|
|
3058
|
-
artifactUri: z.ZodString;
|
|
3059
|
-
expectedSha256: z.ZodString;
|
|
3060
|
-
edits: z.ZodArray<z.ZodObject<{
|
|
3061
|
-
kind: z.ZodLiteral<"replace_block">;
|
|
3062
|
-
blockId: z.ZodString;
|
|
3063
|
-
markdown: z.ZodString;
|
|
3064
|
-
}, "strict", z.ZodTypeAny, {
|
|
3065
|
-
markdown: string;
|
|
3066
|
-
kind: "replace_block";
|
|
3067
|
-
blockId: string;
|
|
3068
|
-
}, {
|
|
3069
|
-
markdown: string;
|
|
3070
|
-
kind: "replace_block";
|
|
3071
|
-
blockId: string;
|
|
3072
|
-
}>, "many">;
|
|
3073
|
-
}, "strict", z.ZodTypeAny, {
|
|
3074
|
-
edits: {
|
|
3075
|
-
markdown: string;
|
|
3076
|
-
kind: "replace_block";
|
|
3077
|
-
blockId: string;
|
|
3078
|
-
}[];
|
|
3079
|
-
expectedSha256: string;
|
|
3080
|
-
artifactUri: string;
|
|
3081
|
-
}, {
|
|
3082
|
-
edits: {
|
|
3083
|
-
markdown: string;
|
|
3084
|
-
kind: "replace_block";
|
|
3085
|
-
blockId: string;
|
|
3086
|
-
}[];
|
|
3087
|
-
expectedSha256: string;
|
|
3088
|
-
artifactUri: string;
|
|
3089
|
-
}>;
|
|
3090
|
-
declare const documentRevisionResultSchema: z.ZodEffects<z.ZodObject<{
|
|
3091
|
-
version: z.ZodLiteral<1>;
|
|
3092
|
-
kind: z.ZodLiteral<"revision">;
|
|
3093
|
-
parentArtifact: z.ZodEffects<z.ZodObject<{
|
|
3094
|
-
id: z.ZodString;
|
|
3095
|
-
uri: z.ZodString;
|
|
3096
|
-
format: z.ZodString;
|
|
3097
|
-
mimeType: z.ZodString;
|
|
3098
|
-
size: z.ZodNumber;
|
|
3099
|
-
sha256: z.ZodString;
|
|
3100
|
-
sourceFormat: z.ZodNullable<z.ZodString>;
|
|
3101
|
-
sourceSha256: z.ZodNullable<z.ZodString>;
|
|
3102
|
-
suggestedFilename: z.ZodString;
|
|
3103
|
-
appliedOptions: z.ZodArray<z.ZodObject<{
|
|
3104
|
-
name: z.ZodString;
|
|
3105
|
-
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
3106
|
-
}, "strict", z.ZodTypeAny, {
|
|
3107
|
-
name: string;
|
|
3108
|
-
value: string | number | boolean | null;
|
|
3109
|
-
}, {
|
|
3110
|
-
name: string;
|
|
3111
|
-
value: string | number | boolean | null;
|
|
3112
|
-
}>, "many">;
|
|
3113
|
-
engineVersions: z.ZodArray<z.ZodObject<{
|
|
3114
|
-
name: z.ZodString;
|
|
3115
|
-
version: z.ZodString;
|
|
3116
|
-
}, "strict", z.ZodTypeAny, {
|
|
3117
|
-
name: string;
|
|
3118
|
-
version: string;
|
|
3119
|
-
}, {
|
|
3120
|
-
name: string;
|
|
3121
|
-
version: string;
|
|
3122
|
-
}>, "many">;
|
|
3123
|
-
createdAt: z.ZodEffects<z.ZodString, string, string>;
|
|
3124
|
-
expiresAt: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
|
|
3125
|
-
}, "strict", z.ZodTypeAny, {
|
|
3126
|
-
id: string;
|
|
3127
|
-
uri: string;
|
|
3128
|
-
format: string;
|
|
3129
|
-
mimeType: string;
|
|
3130
|
-
size: number;
|
|
3131
|
-
sha256: string;
|
|
3132
|
-
sourceFormat: string | null;
|
|
3133
|
-
sourceSha256: string | null;
|
|
3134
|
-
suggestedFilename: string;
|
|
3135
|
-
appliedOptions: {
|
|
3136
|
-
name: string;
|
|
3137
|
-
value: string | number | boolean | null;
|
|
3138
|
-
}[];
|
|
3139
|
-
engineVersions: {
|
|
3140
|
-
name: string;
|
|
3141
|
-
version: string;
|
|
3142
|
-
}[];
|
|
3143
|
-
createdAt: string;
|
|
3144
|
-
expiresAt: string | null;
|
|
3145
|
-
}, {
|
|
3146
|
-
id: string;
|
|
3147
|
-
uri: string;
|
|
3148
|
-
format: string;
|
|
3149
|
-
mimeType: string;
|
|
3150
|
-
size: number;
|
|
3151
|
-
sha256: string;
|
|
3152
|
-
sourceFormat: string | null;
|
|
3153
|
-
sourceSha256: string | null;
|
|
3154
|
-
suggestedFilename: string;
|
|
3155
|
-
appliedOptions: {
|
|
3156
|
-
name: string;
|
|
3157
|
-
value: string | number | boolean | null;
|
|
3158
|
-
}[];
|
|
3159
|
-
engineVersions: {
|
|
3160
|
-
name: string;
|
|
3161
|
-
version: string;
|
|
3162
|
-
}[];
|
|
3163
|
-
createdAt: string;
|
|
3164
|
-
expiresAt: string | null;
|
|
3165
|
-
}>, {
|
|
3166
|
-
id: string;
|
|
3167
|
-
uri: string;
|
|
3168
|
-
format: string;
|
|
3169
|
-
mimeType: string;
|
|
3170
|
-
size: number;
|
|
3171
|
-
sha256: string;
|
|
3172
|
-
sourceFormat: string | null;
|
|
3173
|
-
sourceSha256: string | null;
|
|
3174
|
-
suggestedFilename: string;
|
|
3175
|
-
appliedOptions: {
|
|
3176
|
-
name: string;
|
|
3177
|
-
value: string | number | boolean | null;
|
|
3178
|
-
}[];
|
|
3179
|
-
engineVersions: {
|
|
3180
|
-
name: string;
|
|
3181
|
-
version: string;
|
|
3182
|
-
}[];
|
|
3183
|
-
createdAt: string;
|
|
3184
|
-
expiresAt: string | null;
|
|
3185
|
-
}, {
|
|
3186
|
-
id: string;
|
|
3187
|
-
uri: string;
|
|
3188
|
-
format: string;
|
|
3189
|
-
mimeType: string;
|
|
3190
|
-
size: number;
|
|
3191
|
-
sha256: string;
|
|
3192
|
-
sourceFormat: string | null;
|
|
3193
|
-
sourceSha256: string | null;
|
|
3194
|
-
suggestedFilename: string;
|
|
3195
|
-
appliedOptions: {
|
|
3196
|
-
name: string;
|
|
3197
|
-
value: string | number | boolean | null;
|
|
3198
|
-
}[];
|
|
3199
|
-
engineVersions: {
|
|
3200
|
-
name: string;
|
|
3201
|
-
version: string;
|
|
3202
|
-
}[];
|
|
3203
|
-
createdAt: string;
|
|
3204
|
-
expiresAt: string | null;
|
|
3205
|
-
}>;
|
|
3206
|
-
artifact: z.ZodEffects<z.ZodObject<{
|
|
3207
|
-
id: z.ZodString;
|
|
3208
|
-
uri: z.ZodString;
|
|
3209
|
-
format: z.ZodString;
|
|
3210
|
-
mimeType: z.ZodString;
|
|
3211
|
-
size: z.ZodNumber;
|
|
3212
|
-
sha256: z.ZodString;
|
|
3213
|
-
sourceFormat: z.ZodNullable<z.ZodString>;
|
|
3214
|
-
sourceSha256: z.ZodNullable<z.ZodString>;
|
|
3215
|
-
suggestedFilename: z.ZodString;
|
|
3216
|
-
appliedOptions: z.ZodArray<z.ZodObject<{
|
|
3217
|
-
name: z.ZodString;
|
|
3218
|
-
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
3219
|
-
}, "strict", z.ZodTypeAny, {
|
|
3220
|
-
name: string;
|
|
3221
|
-
value: string | number | boolean | null;
|
|
3222
|
-
}, {
|
|
3223
|
-
name: string;
|
|
3224
|
-
value: string | number | boolean | null;
|
|
3225
|
-
}>, "many">;
|
|
3226
|
-
engineVersions: z.ZodArray<z.ZodObject<{
|
|
3227
|
-
name: z.ZodString;
|
|
3228
|
-
version: z.ZodString;
|
|
3229
|
-
}, "strict", z.ZodTypeAny, {
|
|
3230
|
-
name: string;
|
|
3231
|
-
version: string;
|
|
3232
|
-
}, {
|
|
3233
|
-
name: string;
|
|
3234
|
-
version: string;
|
|
3235
|
-
}>, "many">;
|
|
3236
|
-
createdAt: z.ZodEffects<z.ZodString, string, string>;
|
|
3237
|
-
expiresAt: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
|
|
3238
|
-
}, "strict", z.ZodTypeAny, {
|
|
3239
|
-
id: string;
|
|
3240
|
-
uri: string;
|
|
3241
|
-
format: string;
|
|
3242
|
-
mimeType: string;
|
|
3243
|
-
size: number;
|
|
3244
|
-
sha256: string;
|
|
3245
|
-
sourceFormat: string | null;
|
|
3246
|
-
sourceSha256: string | null;
|
|
3247
|
-
suggestedFilename: string;
|
|
3248
|
-
appliedOptions: {
|
|
3249
|
-
name: string;
|
|
3250
|
-
value: string | number | boolean | null;
|
|
3251
|
-
}[];
|
|
3252
|
-
engineVersions: {
|
|
3253
|
-
name: string;
|
|
3254
|
-
version: string;
|
|
3255
|
-
}[];
|
|
3256
|
-
createdAt: string;
|
|
3257
|
-
expiresAt: string | null;
|
|
3258
|
-
}, {
|
|
3259
|
-
id: string;
|
|
3260
|
-
uri: string;
|
|
3261
|
-
format: string;
|
|
3262
|
-
mimeType: string;
|
|
3263
|
-
size: number;
|
|
3264
|
-
sha256: string;
|
|
3265
|
-
sourceFormat: string | null;
|
|
3266
|
-
sourceSha256: string | null;
|
|
3267
|
-
suggestedFilename: string;
|
|
3268
|
-
appliedOptions: {
|
|
3269
|
-
name: string;
|
|
3270
|
-
value: string | number | boolean | null;
|
|
3271
|
-
}[];
|
|
3272
|
-
engineVersions: {
|
|
3273
|
-
name: string;
|
|
3274
|
-
version: string;
|
|
3275
|
-
}[];
|
|
3276
|
-
createdAt: string;
|
|
3277
|
-
expiresAt: string | null;
|
|
3278
|
-
}>, {
|
|
3279
|
-
id: string;
|
|
3280
|
-
uri: string;
|
|
3281
|
-
format: string;
|
|
3282
|
-
mimeType: string;
|
|
3283
|
-
size: number;
|
|
3284
|
-
sha256: string;
|
|
3285
|
-
sourceFormat: string | null;
|
|
3286
|
-
sourceSha256: string | null;
|
|
3287
|
-
suggestedFilename: string;
|
|
3288
|
-
appliedOptions: {
|
|
3289
|
-
name: string;
|
|
3290
|
-
value: string | number | boolean | null;
|
|
3291
|
-
}[];
|
|
3292
|
-
engineVersions: {
|
|
3293
|
-
name: string;
|
|
3294
|
-
version: string;
|
|
3295
|
-
}[];
|
|
3296
|
-
createdAt: string;
|
|
3297
|
-
expiresAt: string | null;
|
|
3298
|
-
}, {
|
|
3299
|
-
id: string;
|
|
3300
|
-
uri: string;
|
|
3301
|
-
format: string;
|
|
3302
|
-
mimeType: string;
|
|
3303
|
-
size: number;
|
|
3304
|
-
sha256: string;
|
|
3305
|
-
sourceFormat: string | null;
|
|
3306
|
-
sourceSha256: string | null;
|
|
3307
|
-
suggestedFilename: string;
|
|
3308
|
-
appliedOptions: {
|
|
3309
|
-
name: string;
|
|
3310
|
-
value: string | number | boolean | null;
|
|
3311
|
-
}[];
|
|
3312
|
-
engineVersions: {
|
|
3313
|
-
name: string;
|
|
3314
|
-
version: string;
|
|
3315
|
-
}[];
|
|
3316
|
-
createdAt: string;
|
|
3317
|
-
expiresAt: string | null;
|
|
3318
|
-
}>;
|
|
3319
|
-
edits: z.ZodArray<z.ZodObject<{
|
|
3320
|
-
kind: z.ZodLiteral<"replace_block">;
|
|
3321
|
-
blockId: z.ZodString;
|
|
3322
|
-
beforeSha256: z.ZodString;
|
|
3323
|
-
afterSha256: z.ZodString;
|
|
3324
|
-
}, "strict", z.ZodTypeAny, {
|
|
3325
|
-
kind: "replace_block";
|
|
3326
|
-
blockId: string;
|
|
3327
|
-
beforeSha256: string;
|
|
3328
|
-
afterSha256: string;
|
|
3329
|
-
}, {
|
|
3330
|
-
kind: "replace_block";
|
|
3331
|
-
blockId: string;
|
|
3332
|
-
beforeSha256: string;
|
|
3333
|
-
afterSha256: string;
|
|
3334
|
-
}>, "many">;
|
|
3335
|
-
diagnostics: z.ZodArray<z.ZodObject<{
|
|
3336
|
-
code: z.ZodString;
|
|
3337
|
-
severity: z.ZodEnum<["info", "warning", "error"]>;
|
|
3338
|
-
stage: z.ZodEnum<["resolve", "import", "parse", "inspect", "validate", "transform", "convert", "render", "export", "materialize", "compare"]>;
|
|
3339
|
-
format: z.ZodNullable<z.ZodString>;
|
|
3340
|
-
count: z.ZodNumber;
|
|
3341
|
-
message: z.ZodString;
|
|
3342
|
-
remediation: z.ZodNullable<z.ZodString>;
|
|
3343
|
-
retryable: z.ZodBoolean;
|
|
3344
|
-
location: z.ZodNullable<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
3345
|
-
kind: z.ZodLiteral<"source">;
|
|
3346
|
-
line: z.ZodNumber;
|
|
3347
|
-
column: z.ZodNumber;
|
|
3348
|
-
}, "strict", z.ZodTypeAny, {
|
|
3349
|
-
kind: "source";
|
|
3350
|
-
line: number;
|
|
3351
|
-
column: number;
|
|
3352
|
-
}, {
|
|
3353
|
-
kind: "source";
|
|
3354
|
-
line: number;
|
|
3355
|
-
column: number;
|
|
3356
|
-
}>, z.ZodObject<{
|
|
3357
|
-
kind: z.ZodLiteral<"block">;
|
|
3358
|
-
blockId: z.ZodString;
|
|
3359
|
-
nodeType: z.ZodString;
|
|
3360
|
-
}, "strict", z.ZodTypeAny, {
|
|
3361
|
-
kind: "block";
|
|
3362
|
-
blockId: string;
|
|
3363
|
-
nodeType: string;
|
|
3364
|
-
}, {
|
|
3365
|
-
kind: "block";
|
|
3366
|
-
blockId: string;
|
|
3367
|
-
nodeType: string;
|
|
3368
|
-
}>, z.ZodObject<{
|
|
3369
|
-
kind: z.ZodLiteral<"asset">;
|
|
3370
|
-
path: z.ZodEffects<z.ZodString, string, string>;
|
|
3371
|
-
}, "strict", z.ZodTypeAny, {
|
|
3372
|
-
path: string;
|
|
3373
|
-
kind: "asset";
|
|
3374
|
-
}, {
|
|
3375
|
-
path: string;
|
|
3376
|
-
kind: "asset";
|
|
3377
|
-
}>, z.ZodObject<{
|
|
3378
|
-
kind: z.ZodLiteral<"item">;
|
|
3379
|
-
itemKind: z.ZodEnum<["page", "slide", "sheet", "frame"]>;
|
|
3380
|
-
index: z.ZodNumber;
|
|
3381
|
-
}, "strict", z.ZodTypeAny, {
|
|
3382
|
-
kind: "item";
|
|
3383
|
-
itemKind: "page" | "slide" | "sheet" | "frame";
|
|
3384
|
-
index: number;
|
|
3385
|
-
}, {
|
|
3386
|
-
kind: "item";
|
|
3387
|
-
itemKind: "page" | "slide" | "sheet" | "frame";
|
|
3388
|
-
index: number;
|
|
3389
|
-
}>]>>;
|
|
3390
|
-
}, "strict", z.ZodTypeAny, {
|
|
3391
|
-
code: string;
|
|
3392
|
-
message: string;
|
|
3393
|
-
retryable: boolean;
|
|
3394
|
-
format: string | null;
|
|
3395
|
-
severity: "info" | "warning" | "error";
|
|
3396
|
-
stage: "resolve" | "import" | "parse" | "inspect" | "validate" | "transform" | "convert" | "render" | "export" | "materialize" | "compare";
|
|
3397
|
-
count: number;
|
|
3398
|
-
remediation: string | null;
|
|
3399
|
-
location: {
|
|
3400
|
-
kind: "source";
|
|
3401
|
-
line: number;
|
|
3402
|
-
column: number;
|
|
3403
|
-
} | {
|
|
3404
|
-
kind: "block";
|
|
3405
|
-
blockId: string;
|
|
3406
|
-
nodeType: string;
|
|
3407
|
-
} | {
|
|
3408
|
-
path: string;
|
|
3409
|
-
kind: "asset";
|
|
3410
|
-
} | {
|
|
3411
|
-
kind: "item";
|
|
3412
|
-
itemKind: "page" | "slide" | "sheet" | "frame";
|
|
3413
|
-
index: number;
|
|
3414
|
-
} | null;
|
|
3415
|
-
}, {
|
|
3416
|
-
code: string;
|
|
3417
|
-
message: string;
|
|
3418
|
-
retryable: boolean;
|
|
3419
|
-
format: string | null;
|
|
3420
|
-
severity: "info" | "warning" | "error";
|
|
3421
|
-
stage: "resolve" | "import" | "parse" | "inspect" | "validate" | "transform" | "convert" | "render" | "export" | "materialize" | "compare";
|
|
3422
|
-
count: number;
|
|
3423
|
-
remediation: string | null;
|
|
3424
|
-
location: {
|
|
3425
|
-
kind: "source";
|
|
3426
|
-
line: number;
|
|
3427
|
-
column: number;
|
|
3428
|
-
} | {
|
|
3429
|
-
kind: "block";
|
|
3430
|
-
blockId: string;
|
|
3431
|
-
nodeType: string;
|
|
3432
|
-
} | {
|
|
3433
|
-
path: string;
|
|
3434
|
-
kind: "asset";
|
|
3435
|
-
} | {
|
|
3436
|
-
kind: "item";
|
|
3437
|
-
itemKind: "page" | "slide" | "sheet" | "frame";
|
|
3438
|
-
index: number;
|
|
3439
|
-
} | null;
|
|
3440
|
-
}>, "many">;
|
|
3441
|
-
}, "strict", z.ZodTypeAny, {
|
|
3442
|
-
artifact: {
|
|
3443
|
-
id: string;
|
|
3444
|
-
uri: string;
|
|
3445
|
-
format: string;
|
|
3446
|
-
mimeType: string;
|
|
3447
|
-
size: number;
|
|
3448
|
-
sha256: string;
|
|
3449
|
-
sourceFormat: string | null;
|
|
3450
|
-
sourceSha256: string | null;
|
|
3451
|
-
suggestedFilename: string;
|
|
3452
|
-
appliedOptions: {
|
|
3453
|
-
name: string;
|
|
3454
|
-
value: string | number | boolean | null;
|
|
3455
|
-
}[];
|
|
3456
|
-
engineVersions: {
|
|
3457
|
-
name: string;
|
|
3458
|
-
version: string;
|
|
3459
|
-
}[];
|
|
3460
|
-
createdAt: string;
|
|
3461
|
-
expiresAt: string | null;
|
|
3462
|
-
};
|
|
3463
|
-
kind: "revision";
|
|
3464
|
-
version: 1;
|
|
3465
|
-
diagnostics: {
|
|
3466
|
-
code: string;
|
|
3467
|
-
message: string;
|
|
3468
|
-
retryable: boolean;
|
|
3469
|
-
format: string | null;
|
|
3470
|
-
severity: "info" | "warning" | "error";
|
|
3471
|
-
stage: "resolve" | "import" | "parse" | "inspect" | "validate" | "transform" | "convert" | "render" | "export" | "materialize" | "compare";
|
|
3472
|
-
count: number;
|
|
3473
|
-
remediation: string | null;
|
|
3474
|
-
location: {
|
|
3475
|
-
kind: "source";
|
|
3476
|
-
line: number;
|
|
3477
|
-
column: number;
|
|
3478
|
-
} | {
|
|
3479
|
-
kind: "block";
|
|
3480
|
-
blockId: string;
|
|
3481
|
-
nodeType: string;
|
|
3482
|
-
} | {
|
|
3483
|
-
path: string;
|
|
3484
|
-
kind: "asset";
|
|
3485
|
-
} | {
|
|
3486
|
-
kind: "item";
|
|
3487
|
-
itemKind: "page" | "slide" | "sheet" | "frame";
|
|
3488
|
-
index: number;
|
|
3489
|
-
} | null;
|
|
3490
|
-
}[];
|
|
3491
|
-
parentArtifact: {
|
|
3492
|
-
id: string;
|
|
3493
|
-
uri: string;
|
|
3494
|
-
format: string;
|
|
3495
|
-
mimeType: string;
|
|
3496
|
-
size: number;
|
|
3497
|
-
sha256: string;
|
|
3498
|
-
sourceFormat: string | null;
|
|
3499
|
-
sourceSha256: string | null;
|
|
3500
|
-
suggestedFilename: string;
|
|
3501
|
-
appliedOptions: {
|
|
3502
|
-
name: string;
|
|
3503
|
-
value: string | number | boolean | null;
|
|
3504
|
-
}[];
|
|
3505
|
-
engineVersions: {
|
|
3506
|
-
name: string;
|
|
3507
|
-
version: string;
|
|
3508
|
-
}[];
|
|
3509
|
-
createdAt: string;
|
|
3510
|
-
expiresAt: string | null;
|
|
3511
|
-
};
|
|
3512
|
-
edits: {
|
|
3513
|
-
kind: "replace_block";
|
|
3514
|
-
blockId: string;
|
|
3515
|
-
beforeSha256: string;
|
|
3516
|
-
afterSha256: string;
|
|
3517
|
-
}[];
|
|
3518
|
-
}, {
|
|
3519
|
-
artifact: {
|
|
3520
|
-
id: string;
|
|
3521
|
-
uri: string;
|
|
3522
|
-
format: string;
|
|
3523
|
-
mimeType: string;
|
|
3524
|
-
size: number;
|
|
3525
|
-
sha256: string;
|
|
3526
|
-
sourceFormat: string | null;
|
|
3527
|
-
sourceSha256: string | null;
|
|
3528
|
-
suggestedFilename: string;
|
|
3529
|
-
appliedOptions: {
|
|
3530
|
-
name: string;
|
|
3531
|
-
value: string | number | boolean | null;
|
|
3532
|
-
}[];
|
|
3533
|
-
engineVersions: {
|
|
3534
|
-
name: string;
|
|
3535
|
-
version: string;
|
|
3536
|
-
}[];
|
|
3537
|
-
createdAt: string;
|
|
3538
|
-
expiresAt: string | null;
|
|
3539
|
-
};
|
|
3540
|
-
kind: "revision";
|
|
3541
|
-
version: 1;
|
|
3542
|
-
diagnostics: {
|
|
3543
|
-
code: string;
|
|
3544
|
-
message: string;
|
|
3545
|
-
retryable: boolean;
|
|
3546
|
-
format: string | null;
|
|
3547
|
-
severity: "info" | "warning" | "error";
|
|
3548
|
-
stage: "resolve" | "import" | "parse" | "inspect" | "validate" | "transform" | "convert" | "render" | "export" | "materialize" | "compare";
|
|
3549
|
-
count: number;
|
|
3550
|
-
remediation: string | null;
|
|
3551
|
-
location: {
|
|
3552
|
-
kind: "source";
|
|
3553
|
-
line: number;
|
|
3554
|
-
column: number;
|
|
3555
|
-
} | {
|
|
3556
|
-
kind: "block";
|
|
3557
|
-
blockId: string;
|
|
3558
|
-
nodeType: string;
|
|
3559
|
-
} | {
|
|
3560
|
-
path: string;
|
|
3561
|
-
kind: "asset";
|
|
3562
|
-
} | {
|
|
3563
|
-
kind: "item";
|
|
3564
|
-
itemKind: "page" | "slide" | "sheet" | "frame";
|
|
3565
|
-
index: number;
|
|
3566
|
-
} | null;
|
|
3567
|
-
}[];
|
|
3568
|
-
parentArtifact: {
|
|
3569
|
-
id: string;
|
|
3570
|
-
uri: string;
|
|
3571
|
-
format: string;
|
|
3572
|
-
mimeType: string;
|
|
3573
|
-
size: number;
|
|
3574
|
-
sha256: string;
|
|
3575
|
-
sourceFormat: string | null;
|
|
3576
|
-
sourceSha256: string | null;
|
|
3577
|
-
suggestedFilename: string;
|
|
3578
|
-
appliedOptions: {
|
|
3579
|
-
name: string;
|
|
3580
|
-
value: string | number | boolean | null;
|
|
3581
|
-
}[];
|
|
3582
|
-
engineVersions: {
|
|
3583
|
-
name: string;
|
|
3584
|
-
version: string;
|
|
3585
|
-
}[];
|
|
3586
|
-
createdAt: string;
|
|
3587
|
-
expiresAt: string | null;
|
|
3588
|
-
};
|
|
3589
|
-
edits: {
|
|
3590
|
-
kind: "replace_block";
|
|
3591
|
-
blockId: string;
|
|
3592
|
-
beforeSha256: string;
|
|
3593
|
-
afterSha256: string;
|
|
3594
|
-
}[];
|
|
3595
|
-
}>, {
|
|
3596
|
-
artifact: {
|
|
3597
|
-
id: string;
|
|
3598
|
-
uri: string;
|
|
3599
|
-
format: string;
|
|
3600
|
-
mimeType: string;
|
|
3601
|
-
size: number;
|
|
3602
|
-
sha256: string;
|
|
3603
|
-
sourceFormat: string | null;
|
|
3604
|
-
sourceSha256: string | null;
|
|
3605
|
-
suggestedFilename: string;
|
|
3606
|
-
appliedOptions: {
|
|
3607
|
-
name: string;
|
|
3608
|
-
value: string | number | boolean | null;
|
|
3609
|
-
}[];
|
|
3610
|
-
engineVersions: {
|
|
3611
|
-
name: string;
|
|
3612
|
-
version: string;
|
|
3613
|
-
}[];
|
|
3614
|
-
createdAt: string;
|
|
3615
|
-
expiresAt: string | null;
|
|
3616
|
-
};
|
|
3617
|
-
kind: "revision";
|
|
3618
|
-
version: 1;
|
|
3619
|
-
diagnostics: {
|
|
3620
|
-
code: string;
|
|
3621
|
-
message: string;
|
|
3622
|
-
retryable: boolean;
|
|
3623
|
-
format: string | null;
|
|
3624
|
-
severity: "info" | "warning" | "error";
|
|
3625
|
-
stage: "resolve" | "import" | "parse" | "inspect" | "validate" | "transform" | "convert" | "render" | "export" | "materialize" | "compare";
|
|
3626
|
-
count: number;
|
|
3627
|
-
remediation: string | null;
|
|
3628
|
-
location: {
|
|
3629
|
-
kind: "source";
|
|
3630
|
-
line: number;
|
|
3631
|
-
column: number;
|
|
3632
|
-
} | {
|
|
3633
|
-
kind: "block";
|
|
3634
|
-
blockId: string;
|
|
3635
|
-
nodeType: string;
|
|
3636
|
-
} | {
|
|
3637
|
-
path: string;
|
|
3638
|
-
kind: "asset";
|
|
3639
|
-
} | {
|
|
3640
|
-
kind: "item";
|
|
3641
|
-
itemKind: "page" | "slide" | "sheet" | "frame";
|
|
3642
|
-
index: number;
|
|
3643
|
-
} | null;
|
|
3644
|
-
}[];
|
|
3645
|
-
parentArtifact: {
|
|
3646
|
-
id: string;
|
|
3647
|
-
uri: string;
|
|
3648
|
-
format: string;
|
|
3649
|
-
mimeType: string;
|
|
3650
|
-
size: number;
|
|
3651
|
-
sha256: string;
|
|
3652
|
-
sourceFormat: string | null;
|
|
3653
|
-
sourceSha256: string | null;
|
|
3654
|
-
suggestedFilename: string;
|
|
3655
|
-
appliedOptions: {
|
|
3656
|
-
name: string;
|
|
3657
|
-
value: string | number | boolean | null;
|
|
3658
|
-
}[];
|
|
3659
|
-
engineVersions: {
|
|
3660
|
-
name: string;
|
|
3661
|
-
version: string;
|
|
3662
|
-
}[];
|
|
3663
|
-
createdAt: string;
|
|
3664
|
-
expiresAt: string | null;
|
|
3665
|
-
};
|
|
3666
|
-
edits: {
|
|
3667
|
-
kind: "replace_block";
|
|
3668
|
-
blockId: string;
|
|
3669
|
-
beforeSha256: string;
|
|
3670
|
-
afterSha256: string;
|
|
3671
|
-
}[];
|
|
3672
|
-
}, {
|
|
3673
|
-
artifact: {
|
|
3674
|
-
id: string;
|
|
3675
|
-
uri: string;
|
|
3676
|
-
format: string;
|
|
3677
|
-
mimeType: string;
|
|
3678
|
-
size: number;
|
|
3679
|
-
sha256: string;
|
|
3680
|
-
sourceFormat: string | null;
|
|
3681
|
-
sourceSha256: string | null;
|
|
3682
|
-
suggestedFilename: string;
|
|
3683
|
-
appliedOptions: {
|
|
3684
|
-
name: string;
|
|
3685
|
-
value: string | number | boolean | null;
|
|
3686
|
-
}[];
|
|
3687
|
-
engineVersions: {
|
|
3688
|
-
name: string;
|
|
3689
|
-
version: string;
|
|
3690
|
-
}[];
|
|
3691
|
-
createdAt: string;
|
|
3692
|
-
expiresAt: string | null;
|
|
3693
|
-
};
|
|
3694
|
-
kind: "revision";
|
|
3695
|
-
version: 1;
|
|
3696
|
-
diagnostics: {
|
|
3697
|
-
code: string;
|
|
3698
|
-
message: string;
|
|
3699
|
-
retryable: boolean;
|
|
3700
|
-
format: string | null;
|
|
3701
|
-
severity: "info" | "warning" | "error";
|
|
3702
|
-
stage: "resolve" | "import" | "parse" | "inspect" | "validate" | "transform" | "convert" | "render" | "export" | "materialize" | "compare";
|
|
3703
|
-
count: number;
|
|
3704
|
-
remediation: string | null;
|
|
3705
|
-
location: {
|
|
3706
|
-
kind: "source";
|
|
3707
|
-
line: number;
|
|
3708
|
-
column: number;
|
|
3709
|
-
} | {
|
|
3710
|
-
kind: "block";
|
|
3711
|
-
blockId: string;
|
|
3712
|
-
nodeType: string;
|
|
3713
|
-
} | {
|
|
3714
|
-
path: string;
|
|
3715
|
-
kind: "asset";
|
|
3716
|
-
} | {
|
|
3717
|
-
kind: "item";
|
|
3718
|
-
itemKind: "page" | "slide" | "sheet" | "frame";
|
|
3719
|
-
index: number;
|
|
3720
|
-
} | null;
|
|
3721
|
-
}[];
|
|
3722
|
-
parentArtifact: {
|
|
3723
|
-
id: string;
|
|
3724
|
-
uri: string;
|
|
3725
|
-
format: string;
|
|
3726
|
-
mimeType: string;
|
|
3727
|
-
size: number;
|
|
3728
|
-
sha256: string;
|
|
3729
|
-
sourceFormat: string | null;
|
|
3730
|
-
sourceSha256: string | null;
|
|
3731
|
-
suggestedFilename: string;
|
|
3732
|
-
appliedOptions: {
|
|
3733
|
-
name: string;
|
|
3734
|
-
value: string | number | boolean | null;
|
|
3735
|
-
}[];
|
|
3736
|
-
engineVersions: {
|
|
3737
|
-
name: string;
|
|
3738
|
-
version: string;
|
|
3739
|
-
}[];
|
|
3740
|
-
createdAt: string;
|
|
3741
|
-
expiresAt: string | null;
|
|
3742
|
-
};
|
|
3743
|
-
edits: {
|
|
3744
|
-
kind: "replace_block";
|
|
3745
|
-
blockId: string;
|
|
3746
|
-
beforeSha256: string;
|
|
3747
|
-
afterSha256: string;
|
|
3748
|
-
}[];
|
|
3749
|
-
}>;
|
|
3750
3044
|
declare const convertDocumentResultSchema: z.ZodObject<{
|
|
3751
3045
|
results: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
3752
3046
|
version: z.ZodLiteral<1>;
|
|
@@ -6973,4 +6267,4 @@ declare const materializationOptionsSchema: z.ZodDiscriminatedUnion<"ifExists",
|
|
|
6973
6267
|
expectedSha256: string;
|
|
6974
6268
|
}>]>;
|
|
6975
6269
|
|
|
6976
|
-
export { DOCBLOCKS_MCP_TOOL_OUTPUT_SCHEMAS, DOCBLOCKS_MCP_TOOL_RESULT_SCHEMAS, MAX_MARKDOWN_CHARACTERS, MAX_PATH_CHARACTERS, applyInferredThemeResultSchema, artifactRefSchema, artifactUriSchema, authoringContextResultSchema, authoringTemplateSummarySchema, bundleAssetSchema, bundleDocumentSourceSchema, comparisonResultSchema, conversionResultSchema, convertDocumentResultSchema, describeTemplateResultSchema, describeThemeResultSchema, diagnosticSchema,
|
|
6270
|
+
export { DOCBLOCKS_MCP_TOOL_OUTPUT_SCHEMAS, DOCBLOCKS_MCP_TOOL_RESULT_SCHEMAS, MAX_MARKDOWN_CHARACTERS, MAX_PATH_CHARACTERS, applyInferredThemeResultSchema, artifactRefSchema, artifactUriSchema, authoringContextResultSchema, authoringTemplateSummarySchema, bundleAssetSchema, bundleDocumentSourceSchema, comparisonResultSchema, conversionResultSchema, convertDocumentResultSchema, describeTemplateResultSchema, describeThemeResultSchema, diagnosticSchema, documentSourceSchema, formatCapabilitySummarySchema, formatDirectionCapabilitySchema, formatInputSchema, formatSchema, inferThemeResultSchema, inferredLayoutSummarySchema, inspectPptxLayoutsResultSchema, inspectionResultSchema, listFormatsResultSchema, listRootsResultSchema, listTemplatesResultSchema, listThemesResultSchema, listTransformStylesResultSchema, materializationOptionsSchema, mcpErrorDetailSchema, mcpErrorResultSchema, pptxLayoutSummarySchema, previewResultSchema, recommendTemplatesResultSchema, rootGrantSummarySchema, saveArtifactResultSchema, templateContentProfileSchema, templateInputSummarySchema, templateRecommendationSchema, templateSummarySchema, themeCatalogEntrySchema, themeDescriptionSchema, toolOutputSchema, transformStyleSummarySchema, validationResultSchema };
|
package/dist/mcp/zod.js
CHANGED
|
@@ -3,11 +3,10 @@ import {
|
|
|
3
3
|
parseArtifactRef,
|
|
4
4
|
parseComparisonResult,
|
|
5
5
|
parseConversionResult,
|
|
6
|
-
parseDocumentRevisionResult,
|
|
7
6
|
parseInspectionResult,
|
|
8
7
|
parsePreviewResult,
|
|
9
8
|
parseValidationResult
|
|
10
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-DBJW7BZI.js";
|
|
11
10
|
import "../chunk-AYWKIZLD.js";
|
|
12
11
|
|
|
13
12
|
// src/mcp/zod.ts
|
|
@@ -389,30 +388,6 @@ var comparisonResultSchema = z.object({
|
|
|
389
388
|
}).strict().superRefine((value, context) => addExactWireIssue(parseComparisonResult(value), context));
|
|
390
389
|
var boundedPathTextSchema = z.string().min(1).max(MCP_WIRE_LIMITS.pathCharacters).regex(WIRE_STRING_PATTERN, "NUL and DEL are not permitted on the MCP wire");
|
|
391
390
|
var sha256Schema = z.string().regex(/^[a-f0-9]{64}$/u);
|
|
392
|
-
var replaceBlockRevisionSchema = z.object({
|
|
393
|
-
kind: z.literal("replace_block"),
|
|
394
|
-
blockId: idSchema,
|
|
395
|
-
markdown: z.string().min(1).max(MCP_WIRE_LIMITS.revisionFragmentCharacters).regex(WIRE_STRING_PATTERN, "NUL and DEL are not permitted on the MCP wire")
|
|
396
|
-
}).strict();
|
|
397
|
-
var documentRevisionRequestSchema = z.object({
|
|
398
|
-
artifactUri: artifactUriSchema,
|
|
399
|
-
expectedSha256: sha256Schema,
|
|
400
|
-
edits: z.array(replaceBlockRevisionSchema).min(1).max(MCP_WIRE_LIMITS.revisionEdits)
|
|
401
|
-
}).strict();
|
|
402
|
-
var appliedBlockRevisionSchema = z.object({
|
|
403
|
-
kind: z.literal("replace_block"),
|
|
404
|
-
blockId: idSchema,
|
|
405
|
-
beforeSha256: sha256Schema,
|
|
406
|
-
afterSha256: sha256Schema
|
|
407
|
-
}).strict();
|
|
408
|
-
var documentRevisionResultSchema = z.object({
|
|
409
|
-
version: z.literal(1),
|
|
410
|
-
kind: z.literal("revision"),
|
|
411
|
-
parentArtifact: artifactRefSchema,
|
|
412
|
-
artifact: artifactRefSchema,
|
|
413
|
-
edits: z.array(appliedBlockRevisionSchema).min(1).max(MCP_WIRE_LIMITS.revisionEdits),
|
|
414
|
-
diagnostics: z.array(diagnosticSchema).max(MCP_WIRE_LIMITS.arrayEntries)
|
|
415
|
-
}).strict().superRefine((value, context) => addExactWireIssue(parseDocumentRevisionResult(value), context));
|
|
416
391
|
var convertDocumentResultSchema = z.object({ results: z.array(conversionResultSchema).min(1).max(12) }).strict();
|
|
417
392
|
var rootGrantSummarySchema = z.object({
|
|
418
393
|
id: idSchema,
|
|
@@ -577,7 +552,6 @@ var DOCBLOCKS_MCP_TOOL_RESULT_SCHEMAS = Object.freeze({
|
|
|
577
552
|
get_conversion_report: conversionResultSchema,
|
|
578
553
|
convert_document: convertDocumentResultSchema,
|
|
579
554
|
create_document_bundle: conversionResultSchema,
|
|
580
|
-
revise_document: documentRevisionResultSchema,
|
|
581
555
|
save_artifact: saveArtifactResultSchema,
|
|
582
556
|
inspect_document: inspectionResultSchema,
|
|
583
557
|
validate_document: validationResultSchema,
|
|
@@ -602,7 +576,6 @@ var DOCBLOCKS_MCP_TOOL_OUTPUT_SCHEMAS = Object.freeze({
|
|
|
602
576
|
create_document_bundle: toolOutputSchema(
|
|
603
577
|
DOCBLOCKS_MCP_TOOL_RESULT_SCHEMAS.create_document_bundle
|
|
604
578
|
),
|
|
605
|
-
revise_document: toolOutputSchema(DOCBLOCKS_MCP_TOOL_RESULT_SCHEMAS.revise_document),
|
|
606
579
|
save_artifact: toolOutputSchema(DOCBLOCKS_MCP_TOOL_RESULT_SCHEMAS.save_artifact),
|
|
607
580
|
inspect_document: toolOutputSchema(DOCBLOCKS_MCP_TOOL_RESULT_SCHEMAS.inspect_document),
|
|
608
581
|
validate_document: toolOutputSchema(DOCBLOCKS_MCP_TOOL_RESULT_SCHEMAS.validate_document),
|
|
@@ -758,8 +731,6 @@ export {
|
|
|
758
731
|
describeTemplateResultSchema,
|
|
759
732
|
describeThemeResultSchema,
|
|
760
733
|
diagnosticSchema,
|
|
761
|
-
documentRevisionRequestSchema,
|
|
762
|
-
documentRevisionResultSchema,
|
|
763
734
|
documentSourceSchema,
|
|
764
735
|
formatCapabilitySummarySchema,
|
|
765
736
|
formatDirectionCapabilitySchema,
|
|
@@ -780,7 +751,6 @@ export {
|
|
|
780
751
|
pptxLayoutSummarySchema,
|
|
781
752
|
previewResultSchema,
|
|
782
753
|
recommendTemplatesResultSchema,
|
|
783
|
-
replaceBlockRevisionSchema,
|
|
784
754
|
rootGrantSummarySchema,
|
|
785
755
|
saveArtifactResultSchema,
|
|
786
756
|
templateContentProfileSchema,
|
|
@@ -326,7 +326,7 @@ interface DocBlocksHostExportAPI {
|
|
|
326
326
|
}
|
|
327
327
|
/** System ffmpeg detection. */
|
|
328
328
|
interface DocBlocksHostFfmpegAPI {
|
|
329
|
-
/** True if `ffmpeg` is available on PATH
|
|
329
|
+
/** True if `ffmpeg` is available on PATH. */
|
|
330
330
|
available(): Promise<boolean>;
|
|
331
331
|
/** Version string from `ffmpeg -version`, or null if unavailable. */
|
|
332
332
|
version(): Promise<string | null>;
|
|
@@ -4,7 +4,7 @@ import { a as WorkspacePath } from './workspace-path-CWVrcuPL.js';
|
|
|
4
4
|
declare const DOCBLOCKS_MCP_WIRE_VERSION: 1;
|
|
5
5
|
type DocBlocksMcpWireVersion = typeof DOCBLOCKS_MCP_WIRE_VERSION;
|
|
6
6
|
/** Canonical artifact-first tools exposed by the local DocBlocks MCP server. */
|
|
7
|
-
declare const DOCBLOCKS_MCP_TOOL_NAMES: readonly ["list_roots", "get_conversion_report", "convert_document", "create_document_bundle", "
|
|
7
|
+
declare const DOCBLOCKS_MCP_TOOL_NAMES: readonly ["list_roots", "get_conversion_report", "convert_document", "create_document_bundle", "save_artifact", "inspect_document", "validate_document", "preview_document", "compare_documents", "get_authoring_context", "list_templates", "describe_template", "recommend_templates", "describe_theme", "infer_theme_from_file", "inspect_pptx_layouts", "apply_inferred_theme", "list_formats", "list_themes", "list_transform_styles"];
|
|
8
8
|
type DocBlocksMcpToolName = (typeof DOCBLOCKS_MCP_TOOL_NAMES)[number];
|
|
9
9
|
type AppliedOptionValue = string | number | boolean | null;
|
|
10
10
|
interface AppliedOption {
|
|
@@ -150,36 +150,6 @@ interface ConversionResult {
|
|
|
150
150
|
interface ConvertDocumentResult {
|
|
151
151
|
readonly results: readonly ConversionResult[];
|
|
152
152
|
}
|
|
153
|
-
/** One bounded, heading-scoped replacement applied to an immutable document artifact. */
|
|
154
|
-
interface ReplaceBlockRevision {
|
|
155
|
-
readonly kind: 'replace_block';
|
|
156
|
-
/** Stable block id returned by inspect_document for the parent artifact. */
|
|
157
|
-
readonly blockId: string;
|
|
158
|
-
/** Complete replacement heading plus its direct body; nested headings are not accepted. */
|
|
159
|
-
readonly markdown: string;
|
|
160
|
-
}
|
|
161
|
-
/** Optimistic, artifact-native revision request. The parent artifact is never mutated. */
|
|
162
|
-
interface DocumentRevisionRequest {
|
|
163
|
-
readonly artifactUri: string;
|
|
164
|
-
readonly expectedSha256: string;
|
|
165
|
-
readonly edits: readonly ReplaceBlockRevision[];
|
|
166
|
-
}
|
|
167
|
-
/** Hash-addressed record of one block replacement in a document revision. */
|
|
168
|
-
interface AppliedBlockRevision {
|
|
169
|
-
readonly kind: 'replace_block';
|
|
170
|
-
readonly blockId: string;
|
|
171
|
-
readonly beforeSha256: string;
|
|
172
|
-
readonly afterSha256: string;
|
|
173
|
-
}
|
|
174
|
-
/** Successful immutable artifact-to-artifact document revision. */
|
|
175
|
-
interface DocumentRevisionResult {
|
|
176
|
-
readonly version: DocBlocksMcpWireVersion;
|
|
177
|
-
readonly kind: 'revision';
|
|
178
|
-
readonly parentArtifact: ArtifactRef;
|
|
179
|
-
readonly artifact: ArtifactRef;
|
|
180
|
-
readonly edits: readonly AppliedBlockRevision[];
|
|
181
|
-
readonly diagnostics: readonly McpDiagnostic[];
|
|
182
|
-
}
|
|
183
153
|
interface DocumentMetadataSummary {
|
|
184
154
|
readonly title: string | null;
|
|
185
155
|
readonly author: string | null;
|
|
@@ -526,4 +496,4 @@ type MaterializationOptions = {
|
|
|
526
496
|
readonly expectedSha256: string;
|
|
527
497
|
};
|
|
528
498
|
|
|
529
|
-
export { type
|
|
499
|
+
export { type ListThemesResult as $, type ArtifactRef as A, type BlockSummary as B, type ComparisonResult as C, type DocumentSource as D, type DiagnosticLocation as E, type DiagnosticSeverity as F, type DiagnosticStage as G, type DocBlocksMcpToolName as H, type InspectionResult as I, type DocBlocksMcpWireVersion as J, type DocumentItemSummary as K, type DocumentMetadataSummary as L, type MaterializationOptions as M, type DocumentStatistics as N, type EngineVersion as O, type PreviewResult as P, type FileDocumentSource as Q, type FormatCapabilitySummary as R, type FormatDirectionCapability as S, type InferThemeResult as T, type InferredLayoutSummary as U, type ValidationResult as V, type InspectPptxLayoutsResult as W, type LinkSummary as X, type ListFormatsResult as Y, type ListRootsResult as Z, type ListTemplatesResult as _, type ConversionResult as a, type ListTransformStylesResult as a0, type MarkdownDocumentSource as a1, type McpErrorDetail as a2, type McpSuccessResult as a3, type OutlineEntry as a4, type PptxLayoutSummary as a5, type PptxSlideSize as a6, type PreviewItem as a7, type PreviewItemKind as a8, type RecommendTemplatesResult as a9, type RootGrantSummary as aa, type SaveArtifactResult as ab, type SavedArtifactDestination as ac, type SourceRange as ad, type TableSummary as ae, type TemplateAuthoringRole as af, type TemplateBodyPolicy as ag, type TemplateContentProfile as ah, type TemplateInputSummary as ai, type TemplateRecommendation as aj, type TemplateSummary as ak, type ThemeCatalogEntry as al, type ThemeDescription as am, type ThemeDescriptionColors as an, type ThemeSummary as ao, type TransformStyleSummary as ap, type ValidationSummary as aq, type McpDiagnostic as b, type McpErrorResult as c, type AppliedOption as d, type AppliedOptionValue as e, type ApplyInferredThemeResult as f, type ArtifactDocumentSource as g, type AssetSummary as h, type AuthoringContextResult as i, type AuthoringGoal as j, type AuthoringSyntaxSummary as k, type AuthoringTemplateSummary as l, type BundleAssetContentSource as m, type BundleAssetRef as n, type BundleDocumentSource as o, type ComparisonCategory as p, type ComparisonChange as q, type ComparisonMetric as r, type ComparisonStatus as s, type ConversionFidelity as t, type ConvertDocumentResult as u, DOCBLOCKS_MCP_TOOL_NAMES as v, DOCBLOCKS_MCP_WIRE_VERSION as w, type DescribeTemplateResult as x, type DescribeThemeResult as y, type DescribedTemplate as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { q as FileSystemProvider } from '../types-BEg5SQ1_.js';
|
|
2
|
-
import { k as ElectronWorkspaceInfo, B as HostEnvironment } from '../types-
|
|
2
|
+
import { k as ElectronWorkspaceInfo, B as HostEnvironment } from '../types-Cv4uiosG.js';
|
|
3
3
|
import '../workspace-path-CWVrcuPL.js';
|
|
4
4
|
|
|
5
5
|
/**
|