@bendyline/docblocks 2.7.0 → 2.7.2
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 +28 -28
- package/dist/{capabilities-CdQAc745.d.ts → capabilities-BvUC17t9.d.ts} +19 -1
- package/dist/{chunk-IDYE73TU.js → chunk-L657M3XG.js} +2 -2
- package/dist/{chunk-YNUQG4GF.js → chunk-NM5KF6YF.js} +26 -2
- package/dist/{chunk-L6PRMR7T.js → chunk-STUIS5UZ.js} +1 -1
- package/dist/filesystem/electron.d.ts +2 -2
- package/dist/filesystem/electron.js +3 -3
- package/dist/filesystem/host.d.ts +2 -2
- package/dist/filesystem/host.js +2 -2
- package/dist/filesystem/index.d.ts +2 -2
- package/dist/filesystem/index.js +3 -3
- package/dist/host/index.d.ts +2 -2
- package/dist/host/index.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/vscode/index.d.ts +8 -2
- package/dist/vscode/index.js +6 -1
- package/dist/workspace/index.d.ts +1 -1
- package/package.json +2 -2
- package/dist/{host-provider-v2-CyLTRKJF.d.ts → host-provider-v2-CV0joXaL.d.ts} +1 -1
package/THIRD_PARTY_NOTICES.txt
CHANGED
|
@@ -14,7 +14,7 @@ This notice is included in the published npm tarball. Transitive packages instal
|
|
|
14
14
|
|
|
15
15
|
| Package | Version | License | Source |
|
|
16
16
|
| --- | --- | --- | --- |
|
|
17
|
-
| @bendyline/squisq | 2.
|
|
17
|
+
| @bendyline/squisq | 2.12.0 | MIT | https://github.com/bendyline/squisq |
|
|
18
18
|
| @types/debug | 4.1.12 | MIT | https://github.com/DefinitelyTyped/DefinitelyTyped |
|
|
19
19
|
| @types/hast | 3.0.4 | MIT | https://github.com/DefinitelyTyped/DefinitelyTyped |
|
|
20
20
|
| @types/katex | 0.16.8 | MIT | https://github.com/DefinitelyTyped/DefinitelyTyped |
|
|
@@ -132,7 +132,7 @@ This notice is included in the published npm tarball. Transitive packages instal
|
|
|
132
132
|
Package-local license, copying, and notice files are reproduced below. Where a published package omits its repository license, the reviewed aggregate or README identified in `Source files` supplies the retained material.
|
|
133
133
|
|
|
134
134
|
==============================================================================
|
|
135
|
-
Components: @bendyline/squisq@2.
|
|
135
|
+
Components: @bendyline/squisq@2.12.0
|
|
136
136
|
Source files: node_modules/@bendyline/squisq/LICENSE
|
|
137
137
|
==============================================================================
|
|
138
138
|
MIT License
|
|
@@ -158,31 +158,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
158
158
|
SOFTWARE.
|
|
159
159
|
|
|
160
160
|
==============================================================================
|
|
161
|
-
Components:
|
|
162
|
-
Source files: node_modules/@bendyline/squisq/node_modules/ngeohash/LICENSE
|
|
163
|
-
==============================================================================
|
|
164
|
-
The MIT License (MIT)
|
|
165
|
-
|
|
166
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
167
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
168
|
-
in the Software without restriction, including without limitation the rights
|
|
169
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
170
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
171
|
-
furnished to do so, subject to the following conditions:
|
|
172
|
-
|
|
173
|
-
The above copyright notice and this permission notice shall be included in all
|
|
174
|
-
copies or substantial portions of the Software.
|
|
175
|
-
|
|
176
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
177
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
178
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
179
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
180
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
181
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
182
|
-
SOFTWARE.
|
|
183
|
-
|
|
184
|
-
==============================================================================
|
|
185
|
-
Components: @bendyline/squisq@2.11.19
|
|
161
|
+
Components: @bendyline/squisq@2.12.0
|
|
186
162
|
Source files: node_modules/@bendyline/squisq/NOTICE.md
|
|
187
163
|
==============================================================================
|
|
188
164
|
# Third-Party Notices for @bendyline/squisq
|
|
@@ -213,7 +189,7 @@ third-party license texts for bundled code and data are shipped in
|
|
|
213
189
|
THIRD_PARTY_LICENSES.txt.
|
|
214
190
|
|
|
215
191
|
==============================================================================
|
|
216
|
-
Components: @bendyline/squisq@2.
|
|
192
|
+
Components: @bendyline/squisq@2.12.0
|
|
217
193
|
Source files: node_modules/@bendyline/squisq/THIRD_PARTY_LICENSES.txt
|
|
218
194
|
==============================================================================
|
|
219
195
|
THIRD-PARTY LICENSES FOR @bendyline/squisq
|
|
@@ -1349,6 +1325,30 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
1349
1325
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
1350
1326
|
SOFTWARE.
|
|
1351
1327
|
|
|
1328
|
+
==============================================================================
|
|
1329
|
+
Components: ngeohash@0.6.4
|
|
1330
|
+
Source files: node_modules/ngeohash/LICENSE
|
|
1331
|
+
==============================================================================
|
|
1332
|
+
The MIT License (MIT)
|
|
1333
|
+
|
|
1334
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1335
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
1336
|
+
in the Software without restriction, including without limitation the rights
|
|
1337
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
1338
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
1339
|
+
furnished to do so, subject to the following conditions:
|
|
1340
|
+
|
|
1341
|
+
The above copyright notice and this permission notice shall be included in all
|
|
1342
|
+
copies or substantial portions of the Software.
|
|
1343
|
+
|
|
1344
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
1345
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
1346
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
1347
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
1348
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
1349
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
1350
|
+
SOFTWARE.
|
|
1351
|
+
|
|
1352
1352
|
==============================================================================
|
|
1353
1353
|
Components: parse-entities@4.0.2, property-information@7.1.0
|
|
1354
1354
|
Source files: node_modules/parse-entities/license, node_modules/property-information/license
|
|
@@ -124,6 +124,18 @@ interface AiModelInfo {
|
|
|
124
124
|
/** Native readiness explanation, suitable for the model picker. */
|
|
125
125
|
readonly unavailableReason?: string;
|
|
126
126
|
}
|
|
127
|
+
/**
|
|
128
|
+
* How a downloadable model fits this device's memory, as the provider judged
|
|
129
|
+
* it. A model too big to run here never crosses the wire: the host drops it.
|
|
130
|
+
*/
|
|
131
|
+
interface AiModelFit {
|
|
132
|
+
/** `fits-offload` runs a Mixture-of-Experts model partly from system RAM. */
|
|
133
|
+
readonly tier: 'fits' | 'fits-offload' | 'tight';
|
|
134
|
+
/** A short phrase, such as "may run slowly". */
|
|
135
|
+
readonly label: string;
|
|
136
|
+
/** One sentence explaining the verdict. */
|
|
137
|
+
readonly detail: string;
|
|
138
|
+
}
|
|
127
139
|
/** A provider-catalog model that can be added to this device. */
|
|
128
140
|
interface AiModelDownloadInfo {
|
|
129
141
|
readonly id: string;
|
|
@@ -132,6 +144,12 @@ interface AiModelDownloadInfo {
|
|
|
132
144
|
/** Expected weight download size, when the provider reports one. */
|
|
133
145
|
readonly downloadBytes: number | null;
|
|
134
146
|
readonly state: 'download-required' | 'downloading';
|
|
147
|
+
/** Null when the provider did not rate this device. */
|
|
148
|
+
readonly fit: AiModelFit | null;
|
|
149
|
+
/** How well the model suits this device, 0–100; null when unrated. */
|
|
150
|
+
readonly score: number | null;
|
|
151
|
+
/** The provider's one recommendation for this device. */
|
|
152
|
+
readonly recommended: boolean;
|
|
135
153
|
}
|
|
136
154
|
type AiStatus = {
|
|
137
155
|
readonly kind: 'unavailable';
|
|
@@ -1230,4 +1248,4 @@ declare function parseHostEnvironment(value: unknown): HostEnvironment | null;
|
|
|
1230
1248
|
*/
|
|
1231
1249
|
declare function deriveHostCapabilities(host: unknown): HostCapabilities;
|
|
1232
1250
|
|
|
1233
|
-
export { type
|
|
1251
|
+
export { type GitBranchInfo as $, type AiChatCompletion as A, type AiReviewMode as B, type AiSearchHit as C, type AiSearchQuery as D, type AiSearchResult as E, type AiSpeechAudio as F, type AiStatus as G, type AiSynthesizeRequest as H, type AiTranscribeRequest as I, type AiTranscript as J, type AiUnavailableReason as K, type DocBlocksHostAPI as L, type DocBlocksHostAiAPI as M, type DocBlocksHostClipboardAPI as N, type DocBlocksHostExportAPI as O, type DocBlocksHostExternalAPI as P, type DocBlocksHostFfmpegAPI as Q, type DocBlocksHostFsAPI as R, type DocBlocksHostGitAPI as S, type DocBlocksHostLifecycleAPI as T, type DocBlocksHostMenuAPI as U, type DocBlocksHostShellAPI as V, type DocBlocksHostSpeechAPI as W, type DocBlocksHostUpdaterAPI as X, type DocBlocksHostWorkspacesAPI as Y, type ElectronWorkspaceInfo as Z, type ExternalBinaryCommitResult as _, type AiChatEvent as a, type GitCapabilities as a0, type GitCloneHandle as a1, type GitCloneProgress as a2, type GitError as a3, type GitErrorCode as a4, type GitFileAtRevision as a5, type GitFileChange as a6, type GitFileStatusCode as a7, type GitLogEntry as a8, type GitLogOptions as a9, type SpeechModelKind as aA, type SpeechPreferences as aB, type SpeechPreferencesPatch as aC, type SpeechProgress as aD, type SpeechReadiness as aE, type SpeechReadinessState as aF, type SpeechResult as aG, type SpeechSegment as aH, type SpeechStatus as aI, type SpeechSynthesisHandle as aJ, type SpeechSynthesisSummary as aK, type SpeechSynthesizeEvent as aL, type SpeechSynthesizeRequest as aM, type SpeechTranscribeRequest as aN, type SpeechTranscript as aO, type SpeechVoiceInfo as aP, type SpeechWordTiming as aQ, type UpdateCheckResult as aR, type UpdateInstallResult as aS, type UpdaterStatus as aT, deriveHostCapabilities as aU, parseAiKnowledgeAction as aV, parseAiKnowledgeState as aW, parseHostEnvironment as aX, type GitRemoteInfo as aa, type GitRepoDetection as ab, type GitResult as ac, type GitRevision as ad, type GitStatus as ae, HOST_PLATFORMS as af, HOST_SURFACE_KINDS as ag, type HostCapabilities as ah, type HostCloseReason as ai, type HostEnvironment as aj, type HostExportTargetGrant as ak, type HostPinnedDocument as al, type HostPlatform as am, type HostPrepareCloseRequest as an, type HostPrepareCloseResult as ao, type HostSurfaceKind as ap, type MenuCommand as aq, NO_HOST_CAPABILITIES as ar, type OpenRequest as as, type SpeechAudioChunk as at, type SpeechCatalog as au, type SpeechError as av, type SpeechErrorCode as aw, type SpeechInstallEvent as ax, type SpeechInstallHandle as ay, type SpeechModelInfo as az, type AiChatHandle as b, type AiChatMessage as c, type AiChatProgress as d, type AiChatPurpose as e, type AiChatRequest as f, type AiConnectionStep as g, type AiEnsureWorkspaceHandle as h, type AiError as i, type AiErrorCode as j, type AiImageRequest as k, type AiImageResult as l, type AiKnowledgeAPI as m, type AiKnowledgeAction as n, type AiKnowledgeCatalog as o, type AiKnowledgeState as p, type AiModelDownloadInfo as q, type AiModelFit as r, type AiModelInfo as s, type AiModelInstallEvent as t, type AiModelInstallHandle as u, type AiPreferences as v, type AiPreferencesPatch as w, type AiProgress as x, type AiProviderInfo as y, type AiResult as z };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
HostFileSystemProviderV2
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-STUIS5UZ.js";
|
|
4
4
|
import {
|
|
5
5
|
ELECTRON_FILE_SYSTEM_V2_CAPABILITIES,
|
|
6
6
|
maybeGetDocBlocksHost
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NM5KF6YF.js";
|
|
8
8
|
|
|
9
9
|
// src/filesystem/electron-provider-v2.ts
|
|
10
10
|
var ElectronFileSystemProviderV2 = class extends HostFileSystemProviderV2 {
|
|
@@ -185,6 +185,7 @@ var ERROR_CODES = /* @__PURE__ */ new Set([
|
|
|
185
185
|
"unknown"
|
|
186
186
|
]);
|
|
187
187
|
var MODEL_DOWNLOAD_STATES = /* @__PURE__ */ new Set(["download-required", "downloading"]);
|
|
188
|
+
var MODEL_FIT_TIERS = /* @__PURE__ */ new Set(["fits", "fits-offload", "tight"]);
|
|
188
189
|
function isRecord2(value) {
|
|
189
190
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
190
191
|
}
|
|
@@ -275,11 +276,31 @@ function parseAiModelInfoList(value) {
|
|
|
275
276
|
}
|
|
276
277
|
return models;
|
|
277
278
|
}
|
|
279
|
+
function parseAiModelFit(value) {
|
|
280
|
+
if (!isRecord2(value) || !hasExactKeys(value, ["tier", "label", "detail"])) return null;
|
|
281
|
+
if (typeof value.tier !== "string" || !MODEL_FIT_TIERS.has(value.tier)) return null;
|
|
282
|
+
if (!isBoundedString(value.label, HOST_WIRE_LIMITS.labelCharacters, 1)) return null;
|
|
283
|
+
if (!isBoundedString(value.detail, HOST_WIRE_LIMITS.messageCharacters)) return null;
|
|
284
|
+
return { tier: value.tier, label: value.label, detail: value.detail };
|
|
285
|
+
}
|
|
278
286
|
function parseAiModelDownloadInfo(value) {
|
|
279
287
|
if (!isRecord2(value)) return null;
|
|
280
|
-
if (!hasExactKeys(value, [
|
|
288
|
+
if (!hasExactKeys(value, [
|
|
289
|
+
"id",
|
|
290
|
+
"label",
|
|
291
|
+
"contextWindow",
|
|
292
|
+
"downloadBytes",
|
|
293
|
+
"state",
|
|
294
|
+
"fit",
|
|
295
|
+
"score",
|
|
296
|
+
"recommended"
|
|
297
|
+
])) {
|
|
281
298
|
return null;
|
|
282
299
|
}
|
|
300
|
+
const fit = value.fit === null ? null : parseAiModelFit(value.fit);
|
|
301
|
+
if (value.fit !== null && !fit) return null;
|
|
302
|
+
if (value.score !== null && !isNonNegativeInteger(value.score, 100)) return null;
|
|
303
|
+
if (typeof value.recommended !== "boolean") return null;
|
|
283
304
|
if (!isBoundedString(value.id, HOST_WIRE_LIMITS.identifierCharacters, 1)) return null;
|
|
284
305
|
if (!isBoundedString(value.label, HOST_WIRE_LIMITS.labelCharacters, 1)) return null;
|
|
285
306
|
if (value.contextWindow !== null && !isNonNegativeInteger(value.contextWindow, AI_WIRE_LIMITS.contextWindowCeiling)) {
|
|
@@ -294,7 +315,10 @@ function parseAiModelDownloadInfo(value) {
|
|
|
294
315
|
label: value.label,
|
|
295
316
|
contextWindow: value.contextWindow,
|
|
296
317
|
downloadBytes: value.downloadBytes,
|
|
297
|
-
state: value.state
|
|
318
|
+
state: value.state,
|
|
319
|
+
fit,
|
|
320
|
+
score: value.score,
|
|
321
|
+
recommended: value.recommended
|
|
298
322
|
};
|
|
299
323
|
}
|
|
300
324
|
function parseAiModelDownloadInfoList(value) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { d as FileSystemProvider, F as FileCommitResult, c as FileSystemEntry, b as FileMeta } from '../types-BvDnr3YU.js';
|
|
2
|
-
import { H as HostFileSystemProviderV2 } from '../host-provider-v2-
|
|
2
|
+
import { H as HostFileSystemProviderV2 } from '../host-provider-v2-CV0joXaL.js';
|
|
3
3
|
export { isElectronHost } from '../host/index.js';
|
|
4
4
|
import '../v2-BVnZZyd4.js';
|
|
5
5
|
import '../workspace-path-CWVrcuPL.js';
|
|
6
6
|
import '../filesystem-v2-C8AdSXUN.js';
|
|
7
|
-
import '../capabilities-
|
|
7
|
+
import '../capabilities-BvUC17t9.js';
|
|
8
8
|
|
|
9
9
|
/** Compatibility entry point retaining the Electron backend's exact guarantees. */
|
|
10
10
|
declare class ElectronFileSystemProviderV2 extends HostFileSystemProviderV2 {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ElectronFileSystemProvider,
|
|
3
3
|
ElectronFileSystemProviderV2
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-L657M3XG.js";
|
|
5
|
+
import "../chunk-STUIS5UZ.js";
|
|
6
6
|
import {
|
|
7
7
|
isElectronHost
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-NM5KF6YF.js";
|
|
9
9
|
import "../chunk-245W57QP.js";
|
|
10
10
|
import "../chunk-46AGYHDY.js";
|
|
11
11
|
import "../chunk-73OOROXH.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { H as HostFileSystemProviderV2, a as HostFileSystemClientOptions } from '../host-provider-v2-
|
|
1
|
+
import { H as HostFileSystemProviderV2, a as HostFileSystemClientOptions } from '../host-provider-v2-CV0joXaL.js';
|
|
2
2
|
import { d as FileSystemProvider, F as FileCommitResult, c as FileSystemEntry, b as FileMeta } from '../types-BvDnr3YU.js';
|
|
3
|
+
import '../filesystem-v2-C8AdSXUN.js';
|
|
3
4
|
import '../v2-BVnZZyd4.js';
|
|
4
5
|
import '../workspace-path-CWVrcuPL.js';
|
|
5
|
-
import '../filesystem-v2-C8AdSXUN.js';
|
|
6
6
|
|
|
7
7
|
/** Temporary text facade; all storage and conditional mutation is owned by v2. */
|
|
8
8
|
declare class HostFileSystemProvider implements FileSystemProvider {
|
package/dist/filesystem/host.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
HostFileSystemProviderV2
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-STUIS5UZ.js";
|
|
4
4
|
import {
|
|
5
5
|
ELECTRON_FILE_SYSTEM_V2_CAPABILITIES,
|
|
6
6
|
maybeGetDocBlocksHost
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-NM5KF6YF.js";
|
|
8
8
|
import "../chunk-245W57QP.js";
|
|
9
9
|
import "../chunk-46AGYHDY.js";
|
|
10
10
|
import "../chunk-73OOROXH.js";
|
|
@@ -12,9 +12,9 @@ import { MediaProvider } from '@bendyline/squisq/schemas';
|
|
|
12
12
|
export { NativeFileSystemMovePathState, NativeFileSystemMoveRecoveryError, NativeFileSystemMoveRecoveryState, NativeFileSystemProvider, NativeFileSystemProviderV2, isNativeFileSystemSupported, loadDirectoryHandle, openNativeFolder, removeDirectoryHandle, restoreNativeFolder, storeDirectoryHandle } from './native.js';
|
|
13
13
|
export { ElectronFileSystemProvider, ElectronFileSystemProviderV2 } from './electron.js';
|
|
14
14
|
export { isElectronHost } from '../host/index.js';
|
|
15
|
-
import '../host-provider-v2-
|
|
15
|
+
import '../host-provider-v2-CV0joXaL.js';
|
|
16
16
|
import '../filesystem-v2-C8AdSXUN.js';
|
|
17
|
-
import '../capabilities-
|
|
17
|
+
import '../capabilities-BvUC17t9.js';
|
|
18
18
|
|
|
19
19
|
interface DecodeUtf8TextOptions {
|
|
20
20
|
/** User-facing description of the payload being decoded. */
|
package/dist/filesystem/index.js
CHANGED
|
@@ -43,11 +43,11 @@ import "../chunk-KQ6756AJ.js";
|
|
|
43
43
|
import {
|
|
44
44
|
ElectronFileSystemProvider,
|
|
45
45
|
ElectronFileSystemProviderV2
|
|
46
|
-
} from "../chunk-
|
|
47
|
-
import "../chunk-
|
|
46
|
+
} from "../chunk-L657M3XG.js";
|
|
47
|
+
import "../chunk-STUIS5UZ.js";
|
|
48
48
|
import {
|
|
49
49
|
isElectronHost
|
|
50
|
-
} from "../chunk-
|
|
50
|
+
} from "../chunk-NM5KF6YF.js";
|
|
51
51
|
import "../chunk-245W57QP.js";
|
|
52
52
|
import "../chunk-46AGYHDY.js";
|
|
53
53
|
import "../chunk-73OOROXH.js";
|
package/dist/host/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as AiChatEvent, d as AiChatProgress, f as AiChatRequest, i as AiError, q as AiModelDownloadInfo,
|
|
2
|
-
export { A as AiChatCompletion, b as AiChatHandle, c as AiChatMessage, e as AiChatPurpose, g as AiConnectionStep, h as AiEnsureWorkspaceHandle, j as AiErrorCode, k as AiImageRequest, l as AiImageResult, m as AiKnowledgeAPI, n as AiKnowledgeAction, o as AiKnowledgeCatalog, p as AiKnowledgeState,
|
|
1
|
+
import { a as AiChatEvent, d as AiChatProgress, f as AiChatRequest, i as AiError, q as AiModelDownloadInfo, s as AiModelInfo, t as AiModelInstallEvent, v as AiPreferences, w as AiPreferencesPatch, x as AiProgress, G as AiStatus, at as SpeechAudioChunk, au as SpeechCatalog, av as SpeechError, ax as SpeechInstallEvent, az as SpeechModelInfo, aA as SpeechModelKind, aG as SpeechResult, aB as SpeechPreferences, aC as SpeechPreferencesPatch, aD as SpeechProgress, aE as SpeechReadiness, aI as SpeechStatus, aK as SpeechSynthesisSummary, aL as SpeechSynthesizeEvent, aM as SpeechSynthesizeRequest, aN as SpeechTranscribeRequest, aO as SpeechTranscript, aP as SpeechVoiceInfo, as as OpenRequest, al as HostPinnedDocument, L as DocBlocksHostAPI, ah as HostCapabilities, aj as HostEnvironment } from '../capabilities-BvUC17t9.js';
|
|
2
|
+
export { A as AiChatCompletion, b as AiChatHandle, c as AiChatMessage, e as AiChatPurpose, g as AiConnectionStep, h as AiEnsureWorkspaceHandle, j as AiErrorCode, k as AiImageRequest, l as AiImageResult, m as AiKnowledgeAPI, n as AiKnowledgeAction, o as AiKnowledgeCatalog, p as AiKnowledgeState, r as AiModelFit, u as AiModelInstallHandle, y as AiProviderInfo, z as AiResult, B as AiReviewMode, C as AiSearchHit, D as AiSearchQuery, E as AiSearchResult, F as AiSpeechAudio, H as AiSynthesizeRequest, I as AiTranscribeRequest, J as AiTranscript, K as AiUnavailableReason, M as DocBlocksHostAiAPI, N as DocBlocksHostClipboardAPI, O as DocBlocksHostExportAPI, P as DocBlocksHostExternalAPI, Q as DocBlocksHostFfmpegAPI, R as DocBlocksHostFsAPI, S as DocBlocksHostGitAPI, T as DocBlocksHostLifecycleAPI, U as DocBlocksHostMenuAPI, V as DocBlocksHostShellAPI, W as DocBlocksHostSpeechAPI, X as DocBlocksHostUpdaterAPI, Y as DocBlocksHostWorkspacesAPI, Z as ElectronWorkspaceInfo, _ as ExternalBinaryCommitResult, $ as GitBranchInfo, a0 as GitCapabilities, a1 as GitCloneHandle, a2 as GitCloneProgress, a3 as GitError, a4 as GitErrorCode, a5 as GitFileAtRevision, a6 as GitFileChange, a7 as GitFileStatusCode, a8 as GitLogEntry, a9 as GitLogOptions, aa as GitRemoteInfo, ab as GitRepoDetection, ac as GitResult, ad as GitRevision, ae as GitStatus, af as HOST_PLATFORMS, ag as HOST_SURFACE_KINDS, ai as HostCloseReason, ak as HostExportTargetGrant, am as HostPlatform, an as HostPrepareCloseRequest, ao as HostPrepareCloseResult, ap as HostSurfaceKind, aq as MenuCommand, ar as NO_HOST_CAPABILITIES, aw as SpeechErrorCode, ay as SpeechInstallHandle, aF as SpeechReadinessState, aH as SpeechSegment, aJ as SpeechSynthesisHandle, aQ as SpeechWordTiming, aR as UpdateCheckResult, aS as UpdateInstallResult, aT as UpdaterStatus, aU as deriveHostCapabilities, aV as parseAiKnowledgeAction, aW as parseAiKnowledgeState, aX as parseHostEnvironment } from '../capabilities-BvUC17t9.js';
|
|
3
3
|
export { D as DocBlocksHostFsV2API, E as ELECTRON_FILE_SYSTEM_V2_CAPABILITIES, F as FILE_SYSTEM_TRANSFER_LIMITS, H as HostFileSystemReadTransfer, a as HostFileSystemV2OpenRequest, b as HostFileSystemV2Result, c as HostFileSystemV2WatchMessage } from '../filesystem-v2-C8AdSXUN.js';
|
|
4
4
|
import '../types-BvDnr3YU.js';
|
|
5
5
|
import '../v2-BVnZZyd4.js';
|
package/dist/host/index.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -10,8 +10,8 @@ export { DOCUMENT_RECOVERY_JOURNAL_SCHEMA_VERSION, DOCUMENT_RECOVERY_JOURNAL_STO
|
|
|
10
10
|
export { DEFAULT_WORKSPACE_ID, ElectronWorkspaceReconciliation, TransientOrigin, WorkspaceDescriptor, ensureDefaultWorkspace, getTransientWorkspace, getWorkspace, listWorkspaces, parsePersistedWorkspaceList, reconcileElectronWorkspaceDescriptors, registerTransientWorkspace, removeWorkspace, saveWorkspace, touchWorkspace, unregisterTransientWorkspace } from './workspace/index.js';
|
|
11
11
|
export { AI_WIRE_LIMITS, EXPORT_TRANSFER_LIMITS, HOST_WIRE_LIMITS, MAX_HOST_PINNED_DOCUMENTS, SPEECH_WIRE_LIMITS, getDocBlocksHost, getHostCapabilities, getHostEnvironment, hasDocBlocksHost, hostSupports, isBoundedBytePayload, isBoundedString, isElectronHost, isSpeechModelId, isTrustedRendererUrl, maybeGetDocBlocksHost, parseAiChatEvent, parseAiChatProgress, parseAiChatRequest, parseAiError, parseAiModelDownloadInfo, parseAiModelDownloadInfoList, parseAiModelInfo, parseAiModelInfoList, parseAiModelInstallEvent, parseAiPreferences, parseAiPreferencesPatch, parseAiProgress, parseAiStatus, parseExternalHttpUrl, parseOpenRequest, parsePinnedMenuDocuments, parseSpeechAudioChunk, parseSpeechCatalog, parseSpeechError, parseSpeechInstallEvent, parseSpeechModelInfo, parseSpeechModelKind, parseSpeechNullResult, parseSpeechPreferences, parseSpeechPreferencesPatch, parseSpeechProgress, parseSpeechReadiness, parseSpeechResult, parseSpeechStatus, parseSpeechSynthesisSummary, parseSpeechSynthesizeEvent, parseSpeechSynthesizeRequest, parseSpeechTranscribeRequest, parseSpeechTranscript, parseSpeechVoiceInfo } from './host/index.js';
|
|
12
12
|
export { SHARED_DOCUMENT_LIMITS, SharedDocumentHashParseResult, SharedDocumentMode, SharedDocumentPayload, createSharedDocumentHash, createSharedDocumentUrl, parseSharedDocumentHash } from './share/index.js';
|
|
13
|
-
export { A as AiChatCompletion, a as AiChatEvent, b as AiChatHandle, c as AiChatMessage, d as AiChatProgress, e as AiChatPurpose, f as AiChatRequest, g as AiConnectionStep, h as AiEnsureWorkspaceHandle, i as AiError, j as AiErrorCode, k as AiImageRequest, l as AiImageResult, m as AiKnowledgeAPI, n as AiKnowledgeAction, o as AiKnowledgeCatalog, p as AiKnowledgeState, q as AiModelDownloadInfo, r as
|
|
13
|
+
export { A as AiChatCompletion, a as AiChatEvent, b as AiChatHandle, c as AiChatMessage, d as AiChatProgress, e as AiChatPurpose, f as AiChatRequest, g as AiConnectionStep, h as AiEnsureWorkspaceHandle, i as AiError, j as AiErrorCode, k as AiImageRequest, l as AiImageResult, m as AiKnowledgeAPI, n as AiKnowledgeAction, o as AiKnowledgeCatalog, p as AiKnowledgeState, q as AiModelDownloadInfo, r as AiModelFit, s as AiModelInfo, t as AiModelInstallEvent, u as AiModelInstallHandle, v as AiPreferences, w as AiPreferencesPatch, x as AiProgress, y as AiProviderInfo, z as AiResult, B as AiReviewMode, C as AiSearchHit, D as AiSearchQuery, E as AiSearchResult, F as AiSpeechAudio, G as AiStatus, H as AiSynthesizeRequest, I as AiTranscribeRequest, J as AiTranscript, K as AiUnavailableReason, L as DocBlocksHostAPI, M as DocBlocksHostAiAPI, N as DocBlocksHostClipboardAPI, O as DocBlocksHostExportAPI, P as DocBlocksHostExternalAPI, Q as DocBlocksHostFfmpegAPI, R as DocBlocksHostFsAPI, S as DocBlocksHostGitAPI, T as DocBlocksHostLifecycleAPI, U as DocBlocksHostMenuAPI, V as DocBlocksHostShellAPI, W as DocBlocksHostSpeechAPI, X as DocBlocksHostUpdaterAPI, Y as DocBlocksHostWorkspacesAPI, Z as ElectronWorkspaceInfo, _ as ExternalBinaryCommitResult, $ as GitBranchInfo, a0 as GitCapabilities, a1 as GitCloneHandle, a2 as GitCloneProgress, a3 as GitError, a4 as GitErrorCode, a5 as GitFileAtRevision, a6 as GitFileChange, a7 as GitFileStatusCode, a8 as GitLogEntry, a9 as GitLogOptions, aa as GitRemoteInfo, ab as GitRepoDetection, ac as GitResult, ad as GitRevision, ae as GitStatus, af as HOST_PLATFORMS, ag as HOST_SURFACE_KINDS, ah as HostCapabilities, ai as HostCloseReason, aj as HostEnvironment, ak as HostExportTargetGrant, al as HostPinnedDocument, am as HostPlatform, an as HostPrepareCloseRequest, ao as HostPrepareCloseResult, ap as HostSurfaceKind, aq as MenuCommand, ar as NO_HOST_CAPABILITIES, as as OpenRequest, at as SpeechAudioChunk, au as SpeechCatalog, av as SpeechError, aw as SpeechErrorCode, ax as SpeechInstallEvent, ay as SpeechInstallHandle, az as SpeechModelInfo, aA as SpeechModelKind, aB as SpeechPreferences, aC as SpeechPreferencesPatch, aD as SpeechProgress, aE as SpeechReadiness, aF as SpeechReadinessState, aG as SpeechResult, aH as SpeechSegment, aI as SpeechStatus, aJ as SpeechSynthesisHandle, aK as SpeechSynthesisSummary, aL as SpeechSynthesizeEvent, aM as SpeechSynthesizeRequest, aN as SpeechTranscribeRequest, aO as SpeechTranscript, aP as SpeechVoiceInfo, aQ as SpeechWordTiming, aR as UpdateCheckResult, aS as UpdateInstallResult, aT as UpdaterStatus, aU as deriveHostCapabilities, aV as parseAiKnowledgeAction, aW as parseAiKnowledgeState, aX as parseHostEnvironment } from './capabilities-BvUC17t9.js';
|
|
14
14
|
export { D as DocBlocksHostFsV2API, E as ELECTRON_FILE_SYSTEM_V2_CAPABILITIES, F as FILE_SYSTEM_TRANSFER_LIMITS, H as HostFileSystemReadTransfer, a as HostFileSystemV2OpenRequest, b as HostFileSystemV2Result, c as HostFileSystemV2WatchMessage } from './filesystem-v2-C8AdSXUN.js';
|
|
15
15
|
import '@bendyline/squisq/storage';
|
|
16
16
|
import '@bendyline/squisq/schemas';
|
|
17
|
-
import './host-provider-v2-
|
|
17
|
+
import './host-provider-v2-CV0joXaL.js';
|
package/dist/index.js
CHANGED
|
@@ -63,8 +63,8 @@ import "./chunk-KQ6756AJ.js";
|
|
|
63
63
|
import {
|
|
64
64
|
ElectronFileSystemProvider,
|
|
65
65
|
ElectronFileSystemProviderV2
|
|
66
|
-
} from "./chunk-
|
|
67
|
-
import "./chunk-
|
|
66
|
+
} from "./chunk-L657M3XG.js";
|
|
67
|
+
import "./chunk-STUIS5UZ.js";
|
|
68
68
|
import {
|
|
69
69
|
AI_WIRE_LIMITS,
|
|
70
70
|
ELECTRON_FILE_SYSTEM_V2_CAPABILITIES,
|
|
@@ -117,7 +117,7 @@ import {
|
|
|
117
117
|
parseSpeechTranscribeRequest,
|
|
118
118
|
parseSpeechTranscript,
|
|
119
119
|
parseSpeechVoiceInfo
|
|
120
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-NM5KF6YF.js";
|
|
121
121
|
import "./chunk-245W57QP.js";
|
|
122
122
|
import {
|
|
123
123
|
EXPORT_TRANSFER_LIMITS,
|
package/dist/vscode/index.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ interface DocumentConflictDetailsMessage {
|
|
|
35
35
|
/** Whether VS Code reported the external document snapshot as not yet saved. */
|
|
36
36
|
externalIsDirty: boolean | null;
|
|
37
37
|
}
|
|
38
|
-
declare const DOCBLOCKS_ACCENT_COLORS: readonly ["
|
|
38
|
+
declare const DOCBLOCKS_ACCENT_COLORS: readonly ["rust", "green", "blue", "purple", "maroon", "orange", "gray"];
|
|
39
39
|
type DocBlocksAccentColor = (typeof DOCBLOCKS_ACCENT_COLORS)[number];
|
|
40
40
|
declare const DOCBLOCKS_WRITE_CANVAS_TEXT_SIZE_MIN = 12;
|
|
41
41
|
declare const DOCBLOCKS_WRITE_CANVAS_TEXT_SIZE_MAX = 32;
|
|
@@ -332,6 +332,12 @@ declare function parseWebviewToExtensionMessage(value: unknown): WebviewToExtens
|
|
|
332
332
|
declare function parseExtensionToWebviewMessage(value: unknown): ExtensionToWebviewMessage | null;
|
|
333
333
|
declare function parseVscodeWorkspaceSettingsState(value: unknown): VscodeWorkspaceSettingsState | null;
|
|
334
334
|
declare function isDocBlocksAccentColor(value: unknown): value is DocBlocksAccentColor;
|
|
335
|
+
/**
|
|
336
|
+
* Read a stored accent setting, accepting names that were since renamed: the
|
|
337
|
+
* default palette was `brown` before it became `rust`. Returns null for
|
|
338
|
+
* anything else, so callers keep choosing their own fallback.
|
|
339
|
+
*/
|
|
340
|
+
declare function normalizeDocBlocksAccentColor(value: unknown): DocBlocksAccentColor | null;
|
|
335
341
|
declare function isDocBlocksWriteCanvasTextSize(value: unknown): value is number;
|
|
336
342
|
declare function isDocBlocksWriteCanvasLineSpacing(value: unknown): value is number;
|
|
337
343
|
declare function isDocBlocksWriteCanvasFontScheme(value: unknown): value is DocBlocksWriteCanvasFontScheme;
|
|
@@ -348,4 +354,4 @@ declare function isSafeMimeType(value: unknown): value is string;
|
|
|
348
354
|
*/
|
|
349
355
|
declare function hasSubstantiveTextChange(baseline: string, candidate: string): boolean;
|
|
350
356
|
|
|
351
|
-
export { DEFAULT_VSCODE_PROOFING_SETTINGS, DEFAULT_VSCODE_WRITE_CANVAS_SETTINGS, DOCBLOCKS_ACCENT_COLORS, DOCBLOCKS_WRITE_CANVAS_FONT_SCHEMES, DOCBLOCKS_WRITE_CANVAS_LINE_SPACING_MAX, DOCBLOCKS_WRITE_CANVAS_LINE_SPACING_MIN, DOCBLOCKS_WRITE_CANVAS_TEXT_SIZE_MAX, DOCBLOCKS_WRITE_CANVAS_TEXT_SIZE_MIN, type DocBlocksAccentColor, type DocBlocksWriteCanvasFontScheme, type DocumentConflictChoice, type DocumentConflictDetailsMessage, type DocumentSessionMessageStatus, type ExportTargetGrantMessage, type ExtensionToWebviewMessage, type MediaEntryMessage, PROOF_STATE_LIMITS, VSCODE_CATALOG_STATES, VSCODE_WORKSPACE_SETTINGS_STATUSES, type VscodeCatalogState, type VscodeEditorSettings, type VscodeProofingSettings, type VscodeWorkspaceSettingsState, type VscodeWorkspaceSettingsStatus, type VscodeWriteCanvasSettings, type WebviewToExtensionMessage, hasSubstantiveTextChange, isDocBlocksAccentColor, isDocBlocksWriteCanvasFontScheme, isDocBlocksWriteCanvasLineSpacing, isDocBlocksWriteCanvasTextSize, isSafeExportFilename, isSafeMimeType, parseExtensionToWebviewMessage, parseVscodeWorkspaceSettingsState, parseWebviewToExtensionMessage };
|
|
357
|
+
export { DEFAULT_VSCODE_PROOFING_SETTINGS, DEFAULT_VSCODE_WRITE_CANVAS_SETTINGS, DOCBLOCKS_ACCENT_COLORS, DOCBLOCKS_WRITE_CANVAS_FONT_SCHEMES, DOCBLOCKS_WRITE_CANVAS_LINE_SPACING_MAX, DOCBLOCKS_WRITE_CANVAS_LINE_SPACING_MIN, DOCBLOCKS_WRITE_CANVAS_TEXT_SIZE_MAX, DOCBLOCKS_WRITE_CANVAS_TEXT_SIZE_MIN, type DocBlocksAccentColor, type DocBlocksWriteCanvasFontScheme, type DocumentConflictChoice, type DocumentConflictDetailsMessage, type DocumentSessionMessageStatus, type ExportTargetGrantMessage, type ExtensionToWebviewMessage, type MediaEntryMessage, PROOF_STATE_LIMITS, VSCODE_CATALOG_STATES, VSCODE_WORKSPACE_SETTINGS_STATUSES, type VscodeCatalogState, type VscodeEditorSettings, type VscodeProofingSettings, type VscodeWorkspaceSettingsState, type VscodeWorkspaceSettingsStatus, type VscodeWriteCanvasSettings, type WebviewToExtensionMessage, hasSubstantiveTextChange, isDocBlocksAccentColor, isDocBlocksWriteCanvasFontScheme, isDocBlocksWriteCanvasLineSpacing, isDocBlocksWriteCanvasTextSize, isSafeExportFilename, isSafeMimeType, normalizeDocBlocksAccentColor, parseExtensionToWebviewMessage, parseVscodeWorkspaceSettingsState, parseWebviewToExtensionMessage };
|
package/dist/vscode/index.js
CHANGED
|
@@ -16,7 +16,7 @@ var PROOF_STATE_LIMITS = Object.freeze({
|
|
|
16
16
|
ignoredJsonCharacters: 64 * 1024
|
|
17
17
|
});
|
|
18
18
|
var DOCBLOCKS_ACCENT_COLORS = [
|
|
19
|
-
"
|
|
19
|
+
"rust",
|
|
20
20
|
"green",
|
|
21
21
|
"blue",
|
|
22
22
|
"purple",
|
|
@@ -414,6 +414,10 @@ function parseVscodeProofingSettings(value) {
|
|
|
414
414
|
function isDocBlocksAccentColor(value) {
|
|
415
415
|
return DOCBLOCKS_ACCENT_COLORS.some((color) => color === value);
|
|
416
416
|
}
|
|
417
|
+
function normalizeDocBlocksAccentColor(value) {
|
|
418
|
+
if (value === "brown") return "rust";
|
|
419
|
+
return isDocBlocksAccentColor(value) ? value : null;
|
|
420
|
+
}
|
|
417
421
|
function isDocBlocksWriteCanvasTextSize(value) {
|
|
418
422
|
return numberInRange(
|
|
419
423
|
value,
|
|
@@ -549,6 +553,7 @@ export {
|
|
|
549
553
|
isDocBlocksWriteCanvasTextSize,
|
|
550
554
|
isSafeExportFilename,
|
|
551
555
|
isSafeMimeType,
|
|
556
|
+
normalizeDocBlocksAccentColor,
|
|
552
557
|
parseExtensionToWebviewMessage,
|
|
553
558
|
parseVscodeWorkspaceSettingsState,
|
|
554
559
|
parseWebviewToExtensionMessage
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d as FileSystemProvider } from '../types-BvDnr3YU.js';
|
|
2
|
-
import {
|
|
2
|
+
import { Z as ElectronWorkspaceInfo, aj as HostEnvironment } from '../capabilities-BvUC17t9.js';
|
|
3
3
|
import '../v2-BVnZZyd4.js';
|
|
4
4
|
import '../workspace-path-CWVrcuPL.js';
|
|
5
5
|
import '../filesystem-v2-C8AdSXUN.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bendyline/docblocks",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.2",
|
|
4
4
|
"description": "Core data structures and filesystem abstractions for DocBlocks",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Bendyline",
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"typecheck": "tsc --noEmit"
|
|
127
127
|
},
|
|
128
128
|
"dependencies": {
|
|
129
|
-
"@bendyline/squisq": "2.
|
|
129
|
+
"@bendyline/squisq": "2.12.0",
|
|
130
130
|
"zod": "3.25.76"
|
|
131
131
|
}
|
|
132
132
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as FileSystemProviderV2, m as FileSystemProviderCapabilities, g as FileSystemEntrySnapshot, i as FileSystemFileRead, D as FileSystemWriteOptions, j as FileSystemFileSnapshot, d as FileSystemCreateDirectoryOptions, e as FileSystemDirectorySnapshot, o as FileSystemRemoveOptions, p as FileSystemRemoveResult, k as FileSystemMoveOptions, q as FileSystemSnapshot, w as FileSystemWatchEvent, A as FileSystemWatchOptions, B as FileSystemWatchSubscription } from './v2-BVnZZyd4.js';
|
|
2
1
|
import { D as DocBlocksHostFsV2API } from './filesystem-v2-C8AdSXUN.js';
|
|
3
2
|
import { a as WorkspacePath } from './workspace-path-CWVrcuPL.js';
|
|
3
|
+
import { n as FileSystemProviderV2, m as FileSystemProviderCapabilities, g as FileSystemEntrySnapshot, i as FileSystemFileRead, D as FileSystemWriteOptions, j as FileSystemFileSnapshot, d as FileSystemCreateDirectoryOptions, e as FileSystemDirectorySnapshot, o as FileSystemRemoveOptions, p as FileSystemRemoveResult, k as FileSystemMoveOptions, q as FileSystemSnapshot, w as FileSystemWatchEvent, A as FileSystemWatchOptions, B as FileSystemWatchSubscription } from './v2-BVnZZyd4.js';
|
|
4
4
|
|
|
5
5
|
interface HostFileSystemClientOptions {
|
|
6
6
|
readonly capabilities: FileSystemProviderCapabilities;
|