@bendyline/docblocks 2.2.2 → 2.3.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/THIRD_PARTY_NOTICES.txt +4 -4
- package/dist/{chunk-DBJW7BZI.js → chunk-EG3WGSZH.js} +1 -53
- package/dist/{chunk-45T5AFCN.js → chunk-MO2VYEZQ.js} +1 -1
- package/dist/document/index.d.ts +1 -1
- package/dist/filesystem/electron.d.ts +2 -2
- package/dist/filesystem/index.d.ts +3 -3
- package/dist/filesystem/index.js +1 -1
- package/dist/filesystem/indexeddb.d.ts +1 -1
- package/dist/filesystem/memory.d.ts +1 -1
- package/dist/filesystem/native.d.ts +1 -1
- package/dist/host/index.d.ts +3 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/mcp/index.d.ts +3 -4
- package/dist/mcp/index.js +3 -5
- package/dist/mcp/zod.d.ts +63 -337
- package/dist/mcp/zod.js +3 -22
- package/dist/{types-BEg5SQ1_.d.ts → types-Bb3yccTH.d.ts} +2 -0
- package/dist/{types-CHhtLOXM.d.ts → types-CREx02sE.d.ts} +1 -1
- package/dist/{types-DkvEkg0I.d.ts → types-DapJIsC2.d.ts} +3 -17
- package/dist/workspace/index.d.ts +2 -2
- package/package.json +5 -2
package/dist/mcp/zod.js
CHANGED
|
@@ -4,9 +4,8 @@ import {
|
|
|
4
4
|
parseComparisonResult,
|
|
5
5
|
parseConversionResult,
|
|
6
6
|
parseInspectionResult,
|
|
7
|
-
parsePreviewResult
|
|
8
|
-
|
|
9
|
-
} from "../chunk-DBJW7BZI.js";
|
|
7
|
+
parsePreviewResult
|
|
8
|
+
} from "../chunk-EG3WGSZH.js";
|
|
10
9
|
import "../chunk-AYWKIZLD.js";
|
|
11
10
|
|
|
12
11
|
// src/mcp/zod.ts
|
|
@@ -128,7 +127,6 @@ var diagnosticSchema = z.object({
|
|
|
128
127
|
"import",
|
|
129
128
|
"parse",
|
|
130
129
|
"inspect",
|
|
131
|
-
"validate",
|
|
132
130
|
"transform",
|
|
133
131
|
"convert",
|
|
134
132
|
"render",
|
|
@@ -151,7 +149,6 @@ var mcpErrorDetailSchema = z.object({
|
|
|
151
149
|
"import",
|
|
152
150
|
"parse",
|
|
153
151
|
"inspect",
|
|
154
|
-
"validate",
|
|
155
152
|
"transform",
|
|
156
153
|
"convert",
|
|
157
154
|
"render",
|
|
@@ -322,19 +319,6 @@ var inspectionResultSchema = z.object({
|
|
|
322
319
|
detailsTruncated: z.boolean(),
|
|
323
320
|
diagnostics: z.array(diagnosticSchema).max(MCP_WIRE_LIMITS.arrayEntries)
|
|
324
321
|
}).strict().superRefine((value, context) => addExactWireIssue(parseInspectionResult(value), context));
|
|
325
|
-
var validationResultSchema = z.object({
|
|
326
|
-
version: z.literal(1),
|
|
327
|
-
kind: z.literal("validation"),
|
|
328
|
-
sourceFormat: formatSchema,
|
|
329
|
-
targetFormat: formatSchema.nullable(),
|
|
330
|
-
valid: z.boolean(),
|
|
331
|
-
summary: z.object({
|
|
332
|
-
errorCount: nonNegativeSafeIntegerSchema,
|
|
333
|
-
warningCount: nonNegativeSafeIntegerSchema,
|
|
334
|
-
infoCount: nonNegativeSafeIntegerSchema
|
|
335
|
-
}).strict(),
|
|
336
|
-
diagnostics: z.array(diagnosticSchema).max(MCP_WIRE_LIMITS.arrayEntries)
|
|
337
|
-
}).strict().superRefine((value, context) => addExactWireIssue(parseValidationResult(value), context));
|
|
338
322
|
var previewItemSchema = z.object({
|
|
339
323
|
kind: z.enum(["page", "slide", "sheet", "frame"]),
|
|
340
324
|
index: nonNegativeSafeIntegerSchema,
|
|
@@ -554,7 +538,6 @@ var DOCBLOCKS_MCP_TOOL_RESULT_SCHEMAS = Object.freeze({
|
|
|
554
538
|
create_document_bundle: conversionResultSchema,
|
|
555
539
|
save_artifact: saveArtifactResultSchema,
|
|
556
540
|
inspect_document: inspectionResultSchema,
|
|
557
|
-
validate_document: validationResultSchema,
|
|
558
541
|
preview_document: previewResultSchema,
|
|
559
542
|
compare_documents: comparisonResultSchema,
|
|
560
543
|
get_authoring_context: authoringContextResultSchema,
|
|
@@ -578,7 +561,6 @@ var DOCBLOCKS_MCP_TOOL_OUTPUT_SCHEMAS = Object.freeze({
|
|
|
578
561
|
),
|
|
579
562
|
save_artifact: toolOutputSchema(DOCBLOCKS_MCP_TOOL_RESULT_SCHEMAS.save_artifact),
|
|
580
563
|
inspect_document: toolOutputSchema(DOCBLOCKS_MCP_TOOL_RESULT_SCHEMAS.inspect_document),
|
|
581
|
-
validate_document: toolOutputSchema(DOCBLOCKS_MCP_TOOL_RESULT_SCHEMAS.validate_document),
|
|
582
564
|
preview_document: toolOutputSchema(DOCBLOCKS_MCP_TOOL_RESULT_SCHEMAS.preview_document),
|
|
583
565
|
compare_documents: toolOutputSchema(DOCBLOCKS_MCP_TOOL_RESULT_SCHEMAS.compare_documents),
|
|
584
566
|
get_authoring_context: toolOutputSchema(DOCBLOCKS_MCP_TOOL_RESULT_SCHEMAS.get_authoring_context),
|
|
@@ -760,6 +742,5 @@ export {
|
|
|
760
742
|
themeCatalogEntrySchema,
|
|
761
743
|
themeDescriptionSchema,
|
|
762
744
|
toolOutputSchema,
|
|
763
|
-
transformStyleSummarySchema
|
|
764
|
-
validationResultSchema
|
|
745
|
+
transformStyleSummarySchema
|
|
765
746
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as SerializedFsError, 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, F as FileCommitResult, j as FileSystemEntry, b as FileMeta } from './types-
|
|
1
|
+
import { S as SerializedFsError, 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, F as FileCommitResult, j as FileSystemEntry, b as FileMeta } from './types-Bb3yccTH.js';
|
|
2
2
|
import { a as WorkspacePath } from './workspace-path-CWVrcuPL.js';
|
|
3
3
|
|
|
4
4
|
/** Stable capabilities shared by the Electron v2 client and native backend. */
|
|
@@ -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", "save_artifact", "inspect_document", "
|
|
7
|
+
declare const DOCBLOCKS_MCP_TOOL_NAMES: readonly ["list_roots", "get_conversion_report", "convert_document", "create_document_bundle", "save_artifact", "inspect_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 {
|
|
@@ -76,7 +76,7 @@ interface BundleDocumentSource {
|
|
|
76
76
|
}
|
|
77
77
|
type DocumentSource = MarkdownDocumentSource | FileDocumentSource | ArtifactDocumentSource | BundleDocumentSource;
|
|
78
78
|
type DiagnosticSeverity = 'info' | 'warning' | 'error';
|
|
79
|
-
type DiagnosticStage = 'resolve' | 'import' | 'parse' | 'inspect' | '
|
|
79
|
+
type DiagnosticStage = 'resolve' | 'import' | 'parse' | 'inspect' | 'transform' | 'convert' | 'render' | 'export' | 'materialize' | 'compare';
|
|
80
80
|
type DiagnosticLocation = {
|
|
81
81
|
readonly kind: 'source';
|
|
82
82
|
readonly line: number;
|
|
@@ -235,20 +235,6 @@ interface InspectionResult {
|
|
|
235
235
|
readonly detailsTruncated: boolean;
|
|
236
236
|
readonly diagnostics: readonly McpDiagnostic[];
|
|
237
237
|
}
|
|
238
|
-
interface ValidationSummary {
|
|
239
|
-
readonly errorCount: number;
|
|
240
|
-
readonly warningCount: number;
|
|
241
|
-
readonly infoCount: number;
|
|
242
|
-
}
|
|
243
|
-
interface ValidationResult {
|
|
244
|
-
readonly version: DocBlocksMcpWireVersion;
|
|
245
|
-
readonly kind: 'validation';
|
|
246
|
-
readonly sourceFormat: string;
|
|
247
|
-
readonly targetFormat: string | null;
|
|
248
|
-
readonly valid: boolean;
|
|
249
|
-
readonly summary: ValidationSummary;
|
|
250
|
-
readonly diagnostics: readonly McpDiagnostic[];
|
|
251
|
-
}
|
|
252
238
|
type PreviewItemKind = 'page' | 'slide' | 'sheet' | 'frame';
|
|
253
239
|
interface PreviewItem {
|
|
254
240
|
readonly kind: PreviewItemKind;
|
|
@@ -496,4 +482,4 @@ type MaterializationOptions = {
|
|
|
496
482
|
readonly expectedSha256: string;
|
|
497
483
|
};
|
|
498
484
|
|
|
499
|
-
export { type
|
|
485
|
+
export { type ListTransformStylesResult 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 InspectPptxLayoutsResult as V, type LinkSummary as W, type ListFormatsResult as X, type ListRootsResult as Y, type ListTemplatesResult as Z, type ListThemesResult as _, type ConversionResult as a, type MarkdownDocumentSource as a0, type McpErrorDetail as a1, type McpSuccessResult as a2, type OutlineEntry as a3, type PptxLayoutSummary as a4, type PptxSlideSize as a5, type PreviewItem as a6, type PreviewItemKind as a7, type RecommendTemplatesResult as a8, type RootGrantSummary as a9, type SaveArtifactResult as aa, type SavedArtifactDestination as ab, type SourceRange as ac, type TableSummary as ad, type TemplateAuthoringRole as ae, type TemplateBodyPolicy as af, type TemplateContentProfile as ag, type TemplateInputSummary as ah, type TemplateRecommendation as ai, type TemplateSummary as aj, type ThemeCatalogEntry as ak, type ThemeDescription as al, type ThemeDescriptionColors as am, type ThemeSummary as an, type TransformStyleSummary as ao, 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
|
-
import { q as FileSystemProvider } from '../types-
|
|
2
|
-
import { l as ElectronWorkspaceInfo, C as HostEnvironment } from '../types-
|
|
1
|
+
import { q as FileSystemProvider } from '../types-Bb3yccTH.js';
|
|
2
|
+
import { l as ElectronWorkspaceInfo, C as HostEnvironment } from '../types-CREx02sE.js';
|
|
3
3
|
import '../workspace-path-CWVrcuPL.js';
|
|
4
4
|
|
|
5
5
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bendyline/docblocks",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "Core data structures and filesystem abstractions for DocBlocks",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Bendyline",
|
|
@@ -19,6 +19,9 @@
|
|
|
19
19
|
"publishConfig": {
|
|
20
20
|
"access": "public"
|
|
21
21
|
},
|
|
22
|
+
"engines": {
|
|
23
|
+
"node": "^22.22.2 || ^24.15.0 || >=26.0.0"
|
|
24
|
+
},
|
|
22
25
|
"type": "module",
|
|
23
26
|
"main": "./dist/index.js",
|
|
24
27
|
"module": "./dist/index.js",
|
|
@@ -103,7 +106,7 @@
|
|
|
103
106
|
"typecheck": "tsc --noEmit"
|
|
104
107
|
},
|
|
105
108
|
"dependencies": {
|
|
106
|
-
"@bendyline/squisq": "2.4.
|
|
109
|
+
"@bendyline/squisq": "2.4.3",
|
|
107
110
|
"zod": "3.25.76"
|
|
108
111
|
}
|
|
109
112
|
}
|