@bendyline/docblocks 2.3.2 → 2.3.3
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/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/zod.d.ts +534 -534
- package/dist/{types-CREx02sE.d.ts → types-D2CRLJB6.d.ts} +7 -1
- package/dist/vscode/index.d.ts +11 -0
- package/dist/vscode/index.js +6 -0
- package/dist/workspace/index.d.ts +1 -1
- package/package.json +2 -2
|
@@ -309,6 +309,11 @@ interface DocBlocksHostShellAPI {
|
|
|
309
309
|
/** Open a URL in the default browser. */
|
|
310
310
|
openExternal(url: string): Promise<void>;
|
|
311
311
|
}
|
|
312
|
+
/** Native clipboard operations exposed through the trusted host boundary. */
|
|
313
|
+
interface DocBlocksHostClipboardAPI {
|
|
314
|
+
/** Replace the system clipboard's plain-text contents. */
|
|
315
|
+
writeText(text: string): Promise<void>;
|
|
316
|
+
}
|
|
312
317
|
/** Exact, main-owned export authority. The display path is never authority. */
|
|
313
318
|
interface HostExportTargetGrant {
|
|
314
319
|
/** Null means this is a display-only suggestion and save must show a picker. */
|
|
@@ -506,6 +511,7 @@ interface DocBlocksHostAPI {
|
|
|
506
511
|
external: DocBlocksHostExternalAPI;
|
|
507
512
|
workspaces: DocBlocksHostWorkspacesAPI;
|
|
508
513
|
shell: DocBlocksHostShellAPI;
|
|
514
|
+
clipboard: DocBlocksHostClipboardAPI;
|
|
509
515
|
exports: DocBlocksHostExportAPI;
|
|
510
516
|
ffmpeg: DocBlocksHostFfmpegAPI;
|
|
511
517
|
git: DocBlocksHostGitAPI;
|
|
@@ -524,4 +530,4 @@ interface DocBlocksHostAPI {
|
|
|
524
530
|
onOpenRequest(listener: (request: OpenRequest) => void): () => void;
|
|
525
531
|
}
|
|
526
532
|
|
|
527
|
-
export { type
|
|
533
|
+
export { type GitResult as A, type GitRevision as B, type GitStatus as C, type DocBlocksHostAPI as D, ELECTRON_FILE_SYSTEM_V2_CAPABILITIES as E, type HostEnvironment as F, type GitBranchInfo as G, type HostCloseReason as H, type HostExportTargetGrant as I, type HostFileSystemV2OpenRequest as J, type HostFileSystemV2Result as K, type HostFileSystemV2WatchMessage as L, type HostPinnedDocument as M, type HostPrepareCloseRequest as N, type HostPrepareCloseResult as O, type MenuCommand as P, type OpenRequest as Q, type UpdateInstallResult as R, type UpdaterStatus as S, type UpdateCheckResult as U, type DocBlocksHostClipboardAPI as a, type DocBlocksHostExportAPI as b, type DocBlocksHostExternalAPI as c, type DocBlocksHostFfmpegAPI as d, type DocBlocksHostFsAPI as e, type DocBlocksHostFsV2API as f, type DocBlocksHostGitAPI as g, type DocBlocksHostLifecycleAPI as h, type DocBlocksHostMenuAPI as i, type DocBlocksHostShellAPI as j, type DocBlocksHostUpdaterAPI as k, type DocBlocksHostWorkspacesAPI as l, type ElectronWorkspaceInfo as m, type ExternalBinaryCommitResult as n, type GitCapabilities as o, type GitCloneHandle as p, type GitCloneProgress as q, type GitError as r, type GitErrorCode as s, type GitFileAtRevision as t, type GitFileChange as u, type GitFileStatusCode as v, type GitLogEntry as w, type GitLogOptions as x, type GitRemoteInfo as y, type GitRepoDetection as z };
|
package/dist/vscode/index.d.ts
CHANGED
|
@@ -94,6 +94,13 @@ type ExtensionToWebviewMessage = {
|
|
|
94
94
|
} | {
|
|
95
95
|
type: 'editorSettings';
|
|
96
96
|
settings: VscodeEditorSettings;
|
|
97
|
+
} | {
|
|
98
|
+
type: 'codeCopied';
|
|
99
|
+
requestId: number;
|
|
100
|
+
} | {
|
|
101
|
+
type: 'codeCopyError';
|
|
102
|
+
requestId: number;
|
|
103
|
+
message: string;
|
|
97
104
|
} | {
|
|
98
105
|
type: 'mediaResolved';
|
|
99
106
|
requestId: number;
|
|
@@ -153,6 +160,10 @@ type WebviewToExtensionMessage = {
|
|
|
153
160
|
} | {
|
|
154
161
|
type: 'openLink';
|
|
155
162
|
href: string;
|
|
163
|
+
} | {
|
|
164
|
+
type: 'copyCode';
|
|
165
|
+
requestId: number;
|
|
166
|
+
code: string;
|
|
156
167
|
} | {
|
|
157
168
|
type: 'edit';
|
|
158
169
|
content: string;
|
package/dist/vscode/index.js
CHANGED
|
@@ -51,6 +51,8 @@ function parseWebviewToExtensionMessage(value) {
|
|
|
51
51
|
}
|
|
52
52
|
case "openLink":
|
|
53
53
|
return hasOnlyKeys(value, ["type", "href"]) && hasBoundedString(value, "href", HOST_WIRE_LIMITS.urlCharacters, 1) ? { type: "openLink", href: value.href } : null;
|
|
54
|
+
case "copyCode":
|
|
55
|
+
return hasOnlyKeys(value, ["type", "requestId", "code"]) && hasRequestId(value) && hasBoundedString(value, "code", HOST_WIRE_LIMITS.documentCharacters) ? { type: "copyCode", requestId: value.requestId, code: value.code } : null;
|
|
54
56
|
case "edit":
|
|
55
57
|
return hasOnlyKeys(value, [
|
|
56
58
|
"type",
|
|
@@ -222,6 +224,10 @@ function parseExtensionToWebviewMessage(value) {
|
|
|
222
224
|
const settings = parseVscodeEditorSettings(value.settings);
|
|
223
225
|
return settings ? { type: "editorSettings", settings } : null;
|
|
224
226
|
}
|
|
227
|
+
case "codeCopied":
|
|
228
|
+
return hasOnlyKeys(value, ["type", "requestId"]) && hasRequestId(value) ? { type: "codeCopied", requestId: value.requestId } : null;
|
|
229
|
+
case "codeCopyError":
|
|
230
|
+
return hasOnlyKeys(value, ["type", "requestId", "message"]) && hasRequestId(value) && hasBoundedString(value, "message", HOST_WIRE_LIMITS.messageCharacters, 1) ? { type: "codeCopyError", requestId: value.requestId, message: value.message } : null;
|
|
225
231
|
case "mediaResolved":
|
|
226
232
|
return hasOnlyKeys(value, ["type", "requestId", "url"]) && hasRequestId(value) && isBoundedMediaDataUrl(value.url) ? { type: "mediaResolved", requestId: value.requestId, url: value.url } : null;
|
|
227
233
|
case "mediaListed": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { q as FileSystemProvider } from '../types-Bb3yccTH.js';
|
|
2
|
-
import {
|
|
2
|
+
import { m as ElectronWorkspaceInfo, F as HostEnvironment } from '../types-D2CRLJB6.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.
|
|
3
|
+
"version": "2.3.3",
|
|
4
4
|
"description": "Core data structures and filesystem abstractions for DocBlocks",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Bendyline",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"typecheck": "tsc --noEmit"
|
|
107
107
|
},
|
|
108
108
|
"dependencies": {
|
|
109
|
-
"@bendyline/squisq": "2.
|
|
109
|
+
"@bendyline/squisq": "2.7.0",
|
|
110
110
|
"zod": "3.25.76"
|
|
111
111
|
}
|
|
112
112
|
}
|