@bendyline/docblocks 2.1.0 → 2.1.1
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/README.md +2 -2
- package/dist/{chunk-WJKYY5QR.js → chunk-4437YWLE.js} +5 -6
- package/dist/{chunk-XUML3MKV.js → chunk-45T5AFCN.js} +5 -6
- package/dist/{chunk-COYQXQK3.js → chunk-6L3JRDE7.js} +4 -5
- package/dist/{chunk-BNKV7MTO.js → chunk-6XHOOBYF.js} +0 -1
- package/dist/{chunk-U722UUFN.js → chunk-73OOROXH.js} +0 -1
- package/dist/{chunk-JS6XFWQK.js → chunk-AYWKIZLD.js} +0 -1
- package/dist/{chunk-VTCSF7VS.js → chunk-BVY7GGNV.js} +4 -5
- package/dist/{chunk-AEHCVWU5.js → chunk-DZB666V7.js} +0 -1
- package/dist/{chunk-B56KWCSE.js → chunk-HI7QEWL6.js} +18 -10
- package/dist/{chunk-GM5YXU4L.js → chunk-KQ6756AJ.js} +1 -2
- package/dist/{chunk-BXMF5YQJ.js → chunk-LMMOFRGQ.js} +0 -1
- package/dist/{chunk-FNW556FN.js → chunk-M2PUNKHS.js} +0 -1
- package/dist/{chunk-FA7UNOXK.js → chunk-M5ZNQGR5.js} +1 -2
- package/dist/{chunk-P4WATND4.js → chunk-M62ZGJ5I.js} +0 -1
- package/dist/{chunk-RVPGQBWR.js → chunk-OQCPBOQA.js} +0 -1
- package/dist/{chunk-MNSZ7EZN.js → chunk-QI6YKTQV.js} +2 -3
- package/dist/{chunk-P3DVZQ6S.js → chunk-SJBB5OD7.js} +2 -3
- package/dist/{chunk-EZKJZUNJ.js → chunk-XAMILHQP.js} +0 -1
- package/dist/{chunk-6IYMTYMQ.js → chunk-YM7O3PWO.js} +7 -8
- package/dist/{chunk-DN7A33LL.js → chunk-ZO7G53QP.js} +4 -5
- package/dist/document/index.js +5 -6
- package/dist/filesystem/electron.js +6 -7
- package/dist/filesystem/index.js +16 -17
- package/dist/filesystem/indexeddb.js +8 -9
- package/dist/filesystem/memory.js +5 -6
- package/dist/filesystem/native.js +6 -7
- package/dist/host/index.js +2 -3
- package/dist/index.js +19 -20
- package/dist/mcp/index.js +2 -3
- package/dist/mcp/zod.d.ts +10 -10
- package/dist/mcp/zod.js +6 -7
- package/dist/share/index.js +1 -2
- package/dist/vscode/index.d.ts +5 -0
- package/dist/vscode/index.js +11 -5
- package/dist/workspace/index.js +3 -4
- package/package.json +3 -2
- package/dist/chunk-6IYMTYMQ.js.map +0 -1
- package/dist/chunk-AEHCVWU5.js.map +0 -1
- package/dist/chunk-B56KWCSE.js.map +0 -1
- package/dist/chunk-BNKV7MTO.js.map +0 -1
- package/dist/chunk-BXMF5YQJ.js.map +0 -1
- package/dist/chunk-COYQXQK3.js.map +0 -1
- package/dist/chunk-DN7A33LL.js.map +0 -1
- package/dist/chunk-EZKJZUNJ.js.map +0 -1
- package/dist/chunk-FA7UNOXK.js.map +0 -1
- package/dist/chunk-FNW556FN.js.map +0 -1
- package/dist/chunk-GM5YXU4L.js.map +0 -1
- package/dist/chunk-JS6XFWQK.js.map +0 -1
- package/dist/chunk-MNSZ7EZN.js.map +0 -1
- package/dist/chunk-P3DVZQ6S.js.map +0 -1
- package/dist/chunk-P4WATND4.js.map +0 -1
- package/dist/chunk-RVPGQBWR.js.map +0 -1
- package/dist/chunk-U722UUFN.js.map +0 -1
- package/dist/chunk-VTCSF7VS.js.map +0 -1
- package/dist/chunk-WJKYY5QR.js.map +0 -1
- package/dist/chunk-XUML3MKV.js.map +0 -1
- package/dist/document/index.js.map +0 -1
- package/dist/filesystem/electron.js.map +0 -1
- package/dist/filesystem/index.js.map +0 -1
- package/dist/filesystem/indexeddb.js.map +0 -1
- package/dist/filesystem/memory.js.map +0 -1
- package/dist/filesystem/native.js.map +0 -1
- package/dist/host/index.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/mcp/index.js.map +0 -1
- package/dist/mcp/zod.js.map +0 -1
- package/dist/share/index.js.map +0 -1
- package/dist/vscode/index.js.map +0 -1
- package/dist/workspace/index.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
createSharedDocumentHash,
|
|
4
4
|
createSharedDocumentUrl,
|
|
5
5
|
parseSharedDocumentHash
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LMMOFRGQ.js";
|
|
7
7
|
import {
|
|
8
8
|
FileSystemContentContainer,
|
|
9
9
|
LegacyFileSystemProviderV2Adapter,
|
|
@@ -12,16 +12,16 @@ import {
|
|
|
12
12
|
documentCompanionPath,
|
|
13
13
|
moveFileSystemEntry,
|
|
14
14
|
replaceMemoryWorkspaceFromDbk
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-45T5AFCN.js";
|
|
16
16
|
import {
|
|
17
17
|
IndexedDBContentContainer,
|
|
18
18
|
IndexedDBFileSystemProvider,
|
|
19
19
|
IndexedDBFileSystemProviderV2
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-YM7O3PWO.js";
|
|
21
21
|
import {
|
|
22
22
|
MemoryFileSystemProvider,
|
|
23
23
|
MemoryFileSystemProviderV2
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-ZO7G53QP.js";
|
|
25
25
|
import {
|
|
26
26
|
NativeFileSystemMoveRecoveryError,
|
|
27
27
|
NativeFileSystemProvider,
|
|
@@ -32,19 +32,19 @@ import {
|
|
|
32
32
|
removeDirectoryHandle,
|
|
33
33
|
restoreNativeFolder,
|
|
34
34
|
storeDirectoryHandle
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
35
|
+
} from "./chunk-4437YWLE.js";
|
|
36
|
+
import "./chunk-DZB666V7.js";
|
|
37
|
+
import "./chunk-KQ6756AJ.js";
|
|
38
38
|
import {
|
|
39
39
|
ElectronFileSystemProvider,
|
|
40
40
|
ElectronFileSystemProviderV2
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-BVY7GGNV.js";
|
|
42
42
|
import {
|
|
43
43
|
ELECTRON_FILE_SYSTEM_V2_CAPABILITIES,
|
|
44
44
|
getDocBlocksHost,
|
|
45
45
|
isElectronHost,
|
|
46
46
|
maybeGetDocBlocksHost
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-6XHOOBYF.js";
|
|
48
48
|
import {
|
|
49
49
|
HOST_WIRE_LIMITS,
|
|
50
50
|
isBoundedBytePayload,
|
|
@@ -52,12 +52,12 @@ import {
|
|
|
52
52
|
isTrustedRendererUrl,
|
|
53
53
|
parseExternalHttpUrl,
|
|
54
54
|
parseOpenRequest
|
|
55
|
-
} from "./chunk-
|
|
56
|
-
import "./chunk-
|
|
55
|
+
} from "./chunk-M2PUNKHS.js";
|
|
56
|
+
import "./chunk-73OOROXH.js";
|
|
57
57
|
import {
|
|
58
58
|
parseFileSystemVersion,
|
|
59
59
|
tryParseFileSystemVersion
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-M62ZGJ5I.js";
|
|
61
61
|
import {
|
|
62
62
|
DOCUMENT_RECOVERY_JOURNAL_SCHEMA_VERSION,
|
|
63
63
|
DOCUMENT_RECOVERY_JOURNAL_STORAGE_KEY,
|
|
@@ -67,7 +67,7 @@ import {
|
|
|
67
67
|
DocumentSessionConflictError,
|
|
68
68
|
createFileSystemDocumentTarget,
|
|
69
69
|
getDefaultDocumentRecoveryStorage
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-6L3JRDE7.js";
|
|
71
71
|
import {
|
|
72
72
|
FileSystemMoveRecoveryError,
|
|
73
73
|
FileSystemPartialMoveError,
|
|
@@ -76,10 +76,10 @@ import {
|
|
|
76
76
|
isFileSystemMoveRecoveryError,
|
|
77
77
|
isFileSystemMoveStateError,
|
|
78
78
|
isFileSystemPartialMoveError
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-QI6YKTQV.js";
|
|
80
80
|
import {
|
|
81
81
|
decodeUtf8Text
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-M5ZNQGR5.js";
|
|
83
83
|
import {
|
|
84
84
|
FsError,
|
|
85
85
|
WORKSPACE_ROOT,
|
|
@@ -97,7 +97,7 @@ import {
|
|
|
97
97
|
workspacePathDirname,
|
|
98
98
|
workspacePathJoin,
|
|
99
99
|
workspacePathToLegacy
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-AYWKIZLD.js";
|
|
101
101
|
import {
|
|
102
102
|
ensureDefaultWorkspace,
|
|
103
103
|
getTransientWorkspace,
|
|
@@ -110,12 +110,12 @@ import {
|
|
|
110
110
|
saveWorkspace,
|
|
111
111
|
touchWorkspace,
|
|
112
112
|
unregisterTransientWorkspace
|
|
113
|
-
} from "./chunk-
|
|
114
|
-
import "./chunk-
|
|
113
|
+
} from "./chunk-SJBB5OD7.js";
|
|
114
|
+
import "./chunk-OQCPBOQA.js";
|
|
115
115
|
import {
|
|
116
116
|
getFileSystemProviderV2,
|
|
117
117
|
hasFileSystemProviderV2
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-XAMILHQP.js";
|
|
119
119
|
export {
|
|
120
120
|
DOCUMENT_RECOVERY_JOURNAL_SCHEMA_VERSION,
|
|
121
121
|
DOCUMENT_RECOVERY_JOURNAL_STORAGE_KEY,
|
|
@@ -202,4 +202,3 @@ export {
|
|
|
202
202
|
workspacePathJoin,
|
|
203
203
|
workspacePathToLegacy
|
|
204
204
|
};
|
|
205
|
-
//# sourceMappingURL=index.js.map
|
package/dist/mcp/index.js
CHANGED
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
parseMcpErrorResult,
|
|
13
13
|
parsePreviewResult,
|
|
14
14
|
parseValidationResult
|
|
15
|
-
} from "../chunk-
|
|
16
|
-
import "../chunk-
|
|
15
|
+
} from "../chunk-HI7QEWL6.js";
|
|
16
|
+
import "../chunk-AYWKIZLD.js";
|
|
17
17
|
export {
|
|
18
18
|
DOCBLOCKS_MCP_TOOL_NAMES,
|
|
19
19
|
DOCBLOCKS_MCP_WIRE_VERSION,
|
|
@@ -29,4 +29,3 @@ export {
|
|
|
29
29
|
parsePreviewResult,
|
|
30
30
|
parseValidationResult
|
|
31
31
|
};
|
|
32
|
-
//# sourceMappingURL=index.js.map
|
package/dist/mcp/zod.d.ts
CHANGED
|
@@ -127,7 +127,7 @@ declare const bundleDocumentSourceSchema: z.ZodObject<{
|
|
|
127
127
|
credit: string | null;
|
|
128
128
|
license: string | null;
|
|
129
129
|
}>, "many">;
|
|
130
|
-
name: z.ZodNullable<z.ZodString
|
|
130
|
+
name: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
131
131
|
}, "strict", z.ZodTypeAny, {
|
|
132
132
|
name: string | null;
|
|
133
133
|
markdown: string;
|
|
@@ -148,7 +148,6 @@ declare const bundleDocumentSourceSchema: z.ZodObject<{
|
|
|
148
148
|
license: string | null;
|
|
149
149
|
}[];
|
|
150
150
|
}, {
|
|
151
|
-
name: string | null;
|
|
152
151
|
markdown: string;
|
|
153
152
|
kind: "bundle";
|
|
154
153
|
assets: {
|
|
@@ -166,24 +165,25 @@ declare const bundleDocumentSourceSchema: z.ZodObject<{
|
|
|
166
165
|
credit: string | null;
|
|
167
166
|
license: string | null;
|
|
168
167
|
}[];
|
|
168
|
+
name?: string | null | undefined;
|
|
169
169
|
}>;
|
|
170
170
|
declare const documentSourceSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
171
171
|
kind: z.ZodLiteral<"markdown">;
|
|
172
172
|
markdown: z.ZodString;
|
|
173
|
-
name: z.ZodNullable<z.ZodString
|
|
173
|
+
name: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
174
174
|
}, "strict", z.ZodTypeAny, {
|
|
175
175
|
name: string | null;
|
|
176
176
|
markdown: string;
|
|
177
177
|
kind: "markdown";
|
|
178
178
|
}, {
|
|
179
|
-
name: string | null;
|
|
180
179
|
markdown: string;
|
|
181
180
|
kind: "markdown";
|
|
181
|
+
name?: string | null | undefined;
|
|
182
182
|
}>, z.ZodObject<{
|
|
183
183
|
kind: z.ZodLiteral<"file">;
|
|
184
184
|
rootId: z.ZodString;
|
|
185
185
|
path: z.ZodEffects<z.ZodString, string, string>;
|
|
186
|
-
format: z.ZodNullable<z.ZodString
|
|
186
|
+
format: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
187
187
|
}, "strict", z.ZodTypeAny, {
|
|
188
188
|
path: string;
|
|
189
189
|
format: string | null;
|
|
@@ -191,9 +191,9 @@ declare const documentSourceSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject
|
|
|
191
191
|
rootId: string;
|
|
192
192
|
}, {
|
|
193
193
|
path: string;
|
|
194
|
-
format: string | null;
|
|
195
194
|
kind: "file";
|
|
196
195
|
rootId: string;
|
|
196
|
+
format?: string | null | undefined;
|
|
197
197
|
}>, z.ZodObject<{
|
|
198
198
|
kind: z.ZodLiteral<"artifact">;
|
|
199
199
|
uri: z.ZodString;
|
|
@@ -263,7 +263,7 @@ declare const documentSourceSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject
|
|
|
263
263
|
credit: string | null;
|
|
264
264
|
license: string | null;
|
|
265
265
|
}>, "many">;
|
|
266
|
-
name: z.ZodNullable<z.ZodString
|
|
266
|
+
name: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
267
267
|
}, "strict", z.ZodTypeAny, {
|
|
268
268
|
name: string | null;
|
|
269
269
|
markdown: string;
|
|
@@ -284,7 +284,6 @@ declare const documentSourceSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject
|
|
|
284
284
|
license: string | null;
|
|
285
285
|
}[];
|
|
286
286
|
}, {
|
|
287
|
-
name: string | null;
|
|
288
287
|
markdown: string;
|
|
289
288
|
kind: "bundle";
|
|
290
289
|
assets: {
|
|
@@ -302,6 +301,7 @@ declare const documentSourceSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject
|
|
|
302
301
|
credit: string | null;
|
|
303
302
|
license: string | null;
|
|
304
303
|
}[];
|
|
304
|
+
name?: string | null | undefined;
|
|
305
305
|
}>]>;
|
|
306
306
|
declare const artifactRefSchema: z.ZodEffects<z.ZodObject<{
|
|
307
307
|
id: z.ZodString;
|
|
@@ -5734,7 +5734,7 @@ declare const materializationOptionsSchema: z.ZodDiscriminatedUnion<"ifExists",
|
|
|
5734
5734
|
rootId: z.ZodString;
|
|
5735
5735
|
path: z.ZodEffects<z.ZodString, string, string>;
|
|
5736
5736
|
ifExists: z.ZodLiteral<"error">;
|
|
5737
|
-
expectedSha256: z.ZodNull
|
|
5737
|
+
expectedSha256: z.ZodDefault<z.ZodOptional<z.ZodNull>>;
|
|
5738
5738
|
}, "strict", z.ZodTypeAny, {
|
|
5739
5739
|
path: string;
|
|
5740
5740
|
rootId: string;
|
|
@@ -5744,7 +5744,7 @@ declare const materializationOptionsSchema: z.ZodDiscriminatedUnion<"ifExists",
|
|
|
5744
5744
|
path: string;
|
|
5745
5745
|
rootId: string;
|
|
5746
5746
|
ifExists: "error";
|
|
5747
|
-
expectedSha256
|
|
5747
|
+
expectedSha256?: null | undefined;
|
|
5748
5748
|
}>, z.ZodObject<{
|
|
5749
5749
|
rootId: z.ZodString;
|
|
5750
5750
|
path: z.ZodEffects<z.ZodString, string, string>;
|
package/dist/mcp/zod.js
CHANGED
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
parseInspectionResult,
|
|
7
7
|
parsePreviewResult,
|
|
8
8
|
parseValidationResult
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
} from "../chunk-HI7QEWL6.js";
|
|
10
|
+
import "../chunk-AYWKIZLD.js";
|
|
11
11
|
|
|
12
12
|
// src/mcp/zod.ts
|
|
13
13
|
import { z } from "zod";
|
|
@@ -69,19 +69,19 @@ var bundleDocumentSourceSchema = z.object({
|
|
|
69
69
|
kind: z.literal("bundle"),
|
|
70
70
|
markdown: z.string().max(MAX_MARKDOWN_CHARACTERS).regex(WIRE_STRING_PATTERN, "NUL and DEL are not permitted on the MCP wire"),
|
|
71
71
|
assets: z.array(bundleAssetSchema).max(MCP_WIRE_LIMITS.bundleAssets),
|
|
72
|
-
name: labelSchema.nullable()
|
|
72
|
+
name: labelSchema.nullable().optional().default(null)
|
|
73
73
|
}).strict();
|
|
74
74
|
var documentSourceSchema = z.discriminatedUnion("kind", [
|
|
75
75
|
z.object({
|
|
76
76
|
kind: z.literal("markdown"),
|
|
77
77
|
markdown: z.string().max(MAX_MARKDOWN_CHARACTERS).regex(WIRE_STRING_PATTERN, "NUL and DEL are not permitted on the MCP wire"),
|
|
78
|
-
name: labelSchema.nullable()
|
|
78
|
+
name: labelSchema.nullable().optional().default(null)
|
|
79
79
|
}).strict(),
|
|
80
80
|
z.object({
|
|
81
81
|
kind: z.literal("file"),
|
|
82
82
|
rootId: idSchema,
|
|
83
83
|
path: workspacePathSchema,
|
|
84
|
-
format: formatSchema.nullable()
|
|
84
|
+
format: formatSchema.nullable().optional().default(null)
|
|
85
85
|
}).strict(),
|
|
86
86
|
z.object({ kind: z.literal("artifact"), uri: artifactUriSchema }).strict(),
|
|
87
87
|
bundleDocumentSourceSchema
|
|
@@ -558,7 +558,7 @@ var materializationOptionsSchema = z.discriminatedUnion("ifExists", [
|
|
|
558
558
|
rootId: idSchema,
|
|
559
559
|
path: workspacePathSchema,
|
|
560
560
|
ifExists: z.literal("error"),
|
|
561
|
-
expectedSha256: z.null()
|
|
561
|
+
expectedSha256: z.null().optional().default(null)
|
|
562
562
|
}).strict(),
|
|
563
563
|
z.object({
|
|
564
564
|
rootId: idSchema,
|
|
@@ -721,4 +721,3 @@ export {
|
|
|
721
721
|
transformStyleSummarySchema,
|
|
722
722
|
validationResultSchema
|
|
723
723
|
};
|
|
724
|
-
//# sourceMappingURL=zod.js.map
|
package/dist/share/index.js
CHANGED
|
@@ -3,11 +3,10 @@ import {
|
|
|
3
3
|
createSharedDocumentHash,
|
|
4
4
|
createSharedDocumentUrl,
|
|
5
5
|
parseSharedDocumentHash
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-LMMOFRGQ.js";
|
|
7
7
|
export {
|
|
8
8
|
SHARED_DOCUMENT_LIMITS,
|
|
9
9
|
createSharedDocumentHash,
|
|
10
10
|
createSharedDocumentUrl,
|
|
11
11
|
parseSharedDocumentHash
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=index.js.map
|
package/dist/vscode/index.d.ts
CHANGED
|
@@ -139,6 +139,9 @@ type WebviewToExtensionMessage = {
|
|
|
139
139
|
} | {
|
|
140
140
|
type: 'setWriteCanvasSettings';
|
|
141
141
|
settings: VscodeWriteCanvasSettings;
|
|
142
|
+
} | {
|
|
143
|
+
type: 'openLink';
|
|
144
|
+
href: string;
|
|
142
145
|
} | {
|
|
143
146
|
type: 'edit';
|
|
144
147
|
content: string;
|
|
@@ -179,6 +182,8 @@ type WebviewToExtensionMessage = {
|
|
|
179
182
|
dataBase64: string;
|
|
180
183
|
mimeType: string;
|
|
181
184
|
grantId: string | null;
|
|
185
|
+
/** Optional validated basename edit; the host derives it from the opaque grant. */
|
|
186
|
+
targetFilename: string | null;
|
|
182
187
|
} | {
|
|
183
188
|
type: 'resolveExportTarget';
|
|
184
189
|
requestId: number;
|
package/dist/vscode/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
HOST_WIRE_LIMITS,
|
|
3
3
|
isBoundedString
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-M2PUNKHS.js";
|
|
5
5
|
|
|
6
6
|
// src/vscode/messages.ts
|
|
7
7
|
var MAX_REQUEST_ID = 2147483647;
|
|
@@ -36,6 +36,8 @@ function parseWebviewToExtensionMessage(value) {
|
|
|
36
36
|
const settings = parseVscodeWriteCanvasSettings(value.settings);
|
|
37
37
|
return settings ? { type: "setWriteCanvasSettings", settings } : null;
|
|
38
38
|
}
|
|
39
|
+
case "openLink":
|
|
40
|
+
return hasOnlyKeys(value, ["type", "href"]) && hasBoundedString(value, "href", HOST_WIRE_LIMITS.urlCharacters, 1) ? { type: "openLink", href: value.href } : null;
|
|
39
41
|
case "edit":
|
|
40
42
|
return hasOnlyKeys(value, [
|
|
41
43
|
"type",
|
|
@@ -87,14 +89,16 @@ function parseWebviewToExtensionMessage(value) {
|
|
|
87
89
|
"filename",
|
|
88
90
|
"dataBase64",
|
|
89
91
|
"mimeType",
|
|
90
|
-
"grantId"
|
|
91
|
-
|
|
92
|
+
"grantId",
|
|
93
|
+
"targetFilename"
|
|
94
|
+
]) && hasRequestId(value) && hasSafeFilename(value, "filename") && hasBoundedString(value, "dataBase64", HOST_WIRE_LIMITS.base64Characters) && hasMimeType(value, "mimeType") && hasNullableBoundedString(value, "grantId", HOST_WIRE_LIMITS.identifierCharacters, 1) && hasNullableSafeFilename(value, "targetFilename") ? {
|
|
92
95
|
type: "saveExport",
|
|
93
96
|
requestId: value.requestId,
|
|
94
97
|
filename: value.filename,
|
|
95
98
|
dataBase64: value.dataBase64,
|
|
96
99
|
mimeType: value.mimeType,
|
|
97
|
-
grantId: value.grantId
|
|
100
|
+
grantId: value.grantId,
|
|
101
|
+
targetFilename: value.targetFilename
|
|
98
102
|
} : null;
|
|
99
103
|
case "resolveExportTarget":
|
|
100
104
|
return hasOnlyKeys(value, ["type", "requestId", "filename"]) && hasRequestId(value) && hasSafeFilename(value, "filename") ? { type: "resolveExportTarget", requestId: value.requestId, filename: value.filename } : null;
|
|
@@ -347,6 +351,9 @@ function hasOnlyKeys(value, keys) {
|
|
|
347
351
|
function hasSafeFilename(value, key) {
|
|
348
352
|
return isSafeExportFilename(value[key]);
|
|
349
353
|
}
|
|
354
|
+
function hasNullableSafeFilename(value, key) {
|
|
355
|
+
return value[key] === null || isSafeExportFilename(value[key]);
|
|
356
|
+
}
|
|
350
357
|
function isSafeExportFilename(value) {
|
|
351
358
|
return isBoundedString(value, 255, 1) && value.trim() === value && !/[\\/:*?"<>|]/.test(value) && !hasControlCharacter(value) && value !== "." && value !== ".." && !value.endsWith(".") && !value.endsWith(" ");
|
|
352
359
|
}
|
|
@@ -380,4 +387,3 @@ export {
|
|
|
380
387
|
parseExtensionToWebviewMessage,
|
|
381
388
|
parseWebviewToExtensionMessage
|
|
382
389
|
};
|
|
383
|
-
//# sourceMappingURL=index.js.map
|
package/dist/workspace/index.js
CHANGED
|
@@ -10,9 +10,9 @@ import {
|
|
|
10
10
|
saveWorkspace,
|
|
11
11
|
touchWorkspace,
|
|
12
12
|
unregisterTransientWorkspace
|
|
13
|
-
} from "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
13
|
+
} from "../chunk-SJBB5OD7.js";
|
|
14
|
+
import "../chunk-OQCPBOQA.js";
|
|
15
|
+
import "../chunk-XAMILHQP.js";
|
|
16
16
|
export {
|
|
17
17
|
ensureDefaultWorkspace,
|
|
18
18
|
getTransientWorkspace,
|
|
@@ -26,4 +26,3 @@ export {
|
|
|
26
26
|
touchWorkspace,
|
|
27
27
|
unregisterTransientWorkspace
|
|
28
28
|
};
|
|
29
|
-
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bendyline/docblocks",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "Core data structures and filesystem abstractions for DocBlocks",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Bendyline",
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"main": "./dist/index.js",
|
|
24
24
|
"module": "./dist/index.js",
|
|
25
25
|
"types": "./dist/index.d.ts",
|
|
26
|
+
"sideEffects": false,
|
|
26
27
|
"files": [
|
|
27
28
|
"dist"
|
|
28
29
|
],
|
|
@@ -98,7 +99,7 @@
|
|
|
98
99
|
"typecheck": "tsc --noEmit"
|
|
99
100
|
},
|
|
100
101
|
"dependencies": {
|
|
101
|
-
"@bendyline/squisq": "2.3.
|
|
102
|
+
"@bendyline/squisq": "2.3.1",
|
|
102
103
|
"zod": "3.25.76"
|
|
103
104
|
}
|
|
104
105
|
}
|