@bendyline/docblocks 2.7.1 → 2.7.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.
@@ -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.11.19 | MIT | https://github.com/bendyline/squisq |
17
+ | @bendyline/squisq | 2.12.3 | 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.11.19
135
+ Components: @bendyline/squisq@2.12.3
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: ngeohash@0.6.4
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.3
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.11.19
192
+ Components: @bendyline/squisq@2.12.3
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';
@@ -172,9 +190,11 @@ interface AiChatMessage {
172
190
  * What the request is for.
173
191
  *
174
192
  * This exists so the host can apply different budgets to a person waiting on a
175
- * draft and a background review pass. It is never sent to the model.
193
+ * draft and a background review pass. It is never sent to the model. Only
194
+ * `write` may spend its output budget reasoning; `study` (summaries, quizzes
195
+ * and flashcards, made in many small calls with explicit caps) never does.
176
196
  */
177
- type AiChatPurpose = 'write' | 'review' | 'illustrate' | 'chat';
197
+ type AiChatPurpose = 'write' | 'review' | 'illustrate' | 'study' | 'chat';
178
198
  interface AiChatRequest {
179
199
  readonly messages: readonly AiChatMessage[];
180
200
  /** Opaque provider model id. Omitted means "the host's current choice". */
@@ -1230,4 +1250,4 @@ declare function parseHostEnvironment(value: unknown): HostEnvironment | null;
1230
1250
  */
1231
1251
  declare function deriveHostCapabilities(host: unknown): HostCapabilities;
1232
1252
 
1233
- export { type GitCapabilities as $, type AiChatCompletion as A, type AiSearchHit as B, type AiSearchQuery as C, type AiSearchResult as D, type AiSpeechAudio as E, type AiStatus as F, type AiSynthesizeRequest as G, type AiTranscribeRequest as H, type AiTranscript as I, type AiUnavailableReason as J, type DocBlocksHostAPI as K, type DocBlocksHostAiAPI as L, type DocBlocksHostClipboardAPI as M, type DocBlocksHostExportAPI as N, type DocBlocksHostExternalAPI as O, type DocBlocksHostFfmpegAPI as P, type DocBlocksHostFsAPI as Q, type DocBlocksHostGitAPI as R, type DocBlocksHostLifecycleAPI as S, type DocBlocksHostMenuAPI as T, type DocBlocksHostShellAPI as U, type DocBlocksHostSpeechAPI as V, type DocBlocksHostUpdaterAPI as W, type DocBlocksHostWorkspacesAPI as X, type ElectronWorkspaceInfo as Y, type ExternalBinaryCommitResult as Z, type GitBranchInfo as _, type AiChatEvent as a, type GitCloneHandle as a0, type GitCloneProgress as a1, type GitError as a2, type GitErrorCode as a3, type GitFileAtRevision as a4, type GitFileChange as a5, type GitFileStatusCode as a6, type GitLogEntry as a7, type GitLogOptions as a8, type GitRemoteInfo as a9, type SpeechPreferences as aA, type SpeechPreferencesPatch as aB, type SpeechProgress as aC, type SpeechReadiness as aD, type SpeechReadinessState as aE, type SpeechResult as aF, type SpeechSegment as aG, type SpeechStatus as aH, type SpeechSynthesisHandle as aI, type SpeechSynthesisSummary as aJ, type SpeechSynthesizeEvent as aK, type SpeechSynthesizeRequest as aL, type SpeechTranscribeRequest as aM, type SpeechTranscript as aN, type SpeechVoiceInfo as aO, type SpeechWordTiming as aP, type UpdateCheckResult as aQ, type UpdateInstallResult as aR, type UpdaterStatus as aS, deriveHostCapabilities as aT, parseAiKnowledgeAction as aU, parseAiKnowledgeState as aV, parseHostEnvironment as aW, type GitRepoDetection as aa, type GitResult as ab, type GitRevision as ac, type GitStatus as ad, HOST_PLATFORMS as ae, HOST_SURFACE_KINDS as af, type HostCapabilities as ag, type HostCloseReason as ah, type HostEnvironment as ai, type HostExportTargetGrant as aj, type HostPinnedDocument as ak, type HostPlatform as al, type HostPrepareCloseRequest as am, type HostPrepareCloseResult as an, type HostSurfaceKind as ao, type MenuCommand as ap, NO_HOST_CAPABILITIES as aq, type OpenRequest as ar, type SpeechAudioChunk as as, type SpeechCatalog as at, type SpeechError as au, type SpeechErrorCode as av, type SpeechInstallEvent as aw, type SpeechInstallHandle as ax, type SpeechModelInfo as ay, type SpeechModelKind 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 AiModelInfo as r, type AiModelInstallEvent as s, type AiModelInstallHandle as t, type AiPreferences as u, type AiPreferencesPatch as v, type AiProgress as w, type AiProviderInfo as x, type AiResult as y, type AiReviewMode as z };
1253
+ 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-L6PRMR7T.js";
3
+ } from "./chunk-DFMRE22M.js";
4
4
  import {
5
5
  ELECTRON_FILE_SYSTEM_V2_CAPABILITIES,
6
6
  maybeGetDocBlocksHost
7
- } from "./chunk-YNUQG4GF.js";
7
+ } from "./chunk-ZTSG7AC3.js";
8
8
 
9
9
  // src/filesystem/electron-provider-v2.ts
10
10
  var ElectronFileSystemProviderV2 = class extends HostFileSystemProviderV2 {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  FILE_SYSTEM_TRANSFER_LIMITS,
3
3
  maybeGetDocBlocksHost
4
- } from "./chunk-YNUQG4GF.js";
4
+ } from "./chunk-ZTSG7AC3.js";
5
5
  import {
6
6
  parseFileSystemCapabilities
7
7
  } from "./chunk-245W57QP.js";
@@ -148,7 +148,13 @@ var AI_WIRE_LIMITS = Object.freeze({
148
148
  downloadBytesCeiling: Number.MAX_SAFE_INTEGER
149
149
  });
150
150
  var CHAT_ROLES = /* @__PURE__ */ new Set(["system", "user", "assistant"]);
151
- var CHAT_PURPOSES = /* @__PURE__ */ new Set(["write", "review", "illustrate", "chat"]);
151
+ var CHAT_PURPOSES = /* @__PURE__ */ new Set([
152
+ "write",
153
+ "review",
154
+ "illustrate",
155
+ "study",
156
+ "chat"
157
+ ]);
152
158
  var REVIEW_MODES = /* @__PURE__ */ new Set(["off", "explicit", "implicit"]);
153
159
  var FINISH_REASONS = /* @__PURE__ */ new Set(["stop", "length", "cancelled"]);
154
160
  var UNAVAILABLE_REASONS = /* @__PURE__ */ new Set([
@@ -185,6 +191,7 @@ var ERROR_CODES = /* @__PURE__ */ new Set([
185
191
  "unknown"
186
192
  ]);
187
193
  var MODEL_DOWNLOAD_STATES = /* @__PURE__ */ new Set(["download-required", "downloading"]);
194
+ var MODEL_FIT_TIERS = /* @__PURE__ */ new Set(["fits", "fits-offload", "tight"]);
188
195
  function isRecord2(value) {
189
196
  return typeof value === "object" && value !== null && !Array.isArray(value);
190
197
  }
@@ -275,11 +282,31 @@ function parseAiModelInfoList(value) {
275
282
  }
276
283
  return models;
277
284
  }
285
+ function parseAiModelFit(value) {
286
+ if (!isRecord2(value) || !hasExactKeys(value, ["tier", "label", "detail"])) return null;
287
+ if (typeof value.tier !== "string" || !MODEL_FIT_TIERS.has(value.tier)) return null;
288
+ if (!isBoundedString(value.label, HOST_WIRE_LIMITS.labelCharacters, 1)) return null;
289
+ if (!isBoundedString(value.detail, HOST_WIRE_LIMITS.messageCharacters)) return null;
290
+ return { tier: value.tier, label: value.label, detail: value.detail };
291
+ }
278
292
  function parseAiModelDownloadInfo(value) {
279
293
  if (!isRecord2(value)) return null;
280
- if (!hasExactKeys(value, ["id", "label", "contextWindow", "downloadBytes", "state"])) {
294
+ if (!hasExactKeys(value, [
295
+ "id",
296
+ "label",
297
+ "contextWindow",
298
+ "downloadBytes",
299
+ "state",
300
+ "fit",
301
+ "score",
302
+ "recommended"
303
+ ])) {
281
304
  return null;
282
305
  }
306
+ const fit = value.fit === null ? null : parseAiModelFit(value.fit);
307
+ if (value.fit !== null && !fit) return null;
308
+ if (value.score !== null && !isNonNegativeInteger(value.score, 100)) return null;
309
+ if (typeof value.recommended !== "boolean") return null;
283
310
  if (!isBoundedString(value.id, HOST_WIRE_LIMITS.identifierCharacters, 1)) return null;
284
311
  if (!isBoundedString(value.label, HOST_WIRE_LIMITS.labelCharacters, 1)) return null;
285
312
  if (value.contextWindow !== null && !isNonNegativeInteger(value.contextWindow, AI_WIRE_LIMITS.contextWindowCeiling)) {
@@ -294,7 +321,10 @@ function parseAiModelDownloadInfo(value) {
294
321
  label: value.label,
295
322
  contextWindow: value.contextWindow,
296
323
  downloadBytes: value.downloadBytes,
297
- state: value.state
324
+ state: value.state,
325
+ fit,
326
+ score: value.score,
327
+ recommended: value.recommended
298
328
  };
299
329
  }
300
330
  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-CyLTRKJF.js';
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-CdQAc745.js';
7
+ import '../capabilities-r03EXSAi.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-IDYE73TU.js";
5
- import "../chunk-L6PRMR7T.js";
4
+ } from "../chunk-4I4AG2BH.js";
5
+ import "../chunk-DFMRE22M.js";
6
6
  import {
7
7
  isElectronHost
8
- } from "../chunk-YNUQG4GF.js";
8
+ } from "../chunk-ZTSG7AC3.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-CyLTRKJF.js';
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 {
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  HostFileSystemProviderV2
3
- } from "../chunk-L6PRMR7T.js";
3
+ } from "../chunk-DFMRE22M.js";
4
4
  import {
5
5
  ELECTRON_FILE_SYSTEM_V2_CAPABILITIES,
6
6
  maybeGetDocBlocksHost
7
- } from "../chunk-YNUQG4GF.js";
7
+ } from "../chunk-ZTSG7AC3.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-CyLTRKJF.js';
15
+ import '../host-provider-v2-CV0joXaL.js';
16
16
  import '../filesystem-v2-C8AdSXUN.js';
17
- import '../capabilities-CdQAc745.js';
17
+ import '../capabilities-r03EXSAi.js';
18
18
 
19
19
  interface DecodeUtf8TextOptions {
20
20
  /** User-facing description of the payload being decoded. */
@@ -43,11 +43,11 @@ import "../chunk-KQ6756AJ.js";
43
43
  import {
44
44
  ElectronFileSystemProvider,
45
45
  ElectronFileSystemProviderV2
46
- } from "../chunk-IDYE73TU.js";
47
- import "../chunk-L6PRMR7T.js";
46
+ } from "../chunk-4I4AG2BH.js";
47
+ import "../chunk-DFMRE22M.js";
48
48
  import {
49
49
  isElectronHost
50
- } from "../chunk-YNUQG4GF.js";
50
+ } from "../chunk-ZTSG7AC3.js";
51
51
  import "../chunk-245W57QP.js";
52
52
  import "../chunk-46AGYHDY.js";
53
53
  import "../chunk-73OOROXH.js";
@@ -1,5 +1,5 @@
1
- import { a as AiChatEvent, d as AiChatProgress, f as AiChatRequest, i as AiError, q as AiModelDownloadInfo, r as AiModelInfo, s as AiModelInstallEvent, u as AiPreferences, v as AiPreferencesPatch, w as AiProgress, F as AiStatus, as as SpeechAudioChunk, at as SpeechCatalog, au as SpeechError, aw as SpeechInstallEvent, ay as SpeechModelInfo, az as SpeechModelKind, aF as SpeechResult, aA as SpeechPreferences, aB as SpeechPreferencesPatch, aC as SpeechProgress, aD as SpeechReadiness, aH as SpeechStatus, aJ as SpeechSynthesisSummary, aK as SpeechSynthesizeEvent, aL as SpeechSynthesizeRequest, aM as SpeechTranscribeRequest, aN as SpeechTranscript, aO as SpeechVoiceInfo, ar as OpenRequest, ak as HostPinnedDocument, K as DocBlocksHostAPI, ag as HostCapabilities, ai as HostEnvironment } from '../capabilities-CdQAc745.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, t as AiModelInstallHandle, x as AiProviderInfo, y as AiResult, z as AiReviewMode, B as AiSearchHit, C as AiSearchQuery, D as AiSearchResult, E as AiSpeechAudio, G as AiSynthesizeRequest, H as AiTranscribeRequest, I as AiTranscript, J as AiUnavailableReason, L as DocBlocksHostAiAPI, M as DocBlocksHostClipboardAPI, N as DocBlocksHostExportAPI, O as DocBlocksHostExternalAPI, P as DocBlocksHostFfmpegAPI, Q as DocBlocksHostFsAPI, R as DocBlocksHostGitAPI, S as DocBlocksHostLifecycleAPI, T as DocBlocksHostMenuAPI, U as DocBlocksHostShellAPI, V as DocBlocksHostSpeechAPI, W as DocBlocksHostUpdaterAPI, X as DocBlocksHostWorkspacesAPI, Y as ElectronWorkspaceInfo, Z as ExternalBinaryCommitResult, _ as GitBranchInfo, $ as GitCapabilities, a0 as GitCloneHandle, a1 as GitCloneProgress, a2 as GitError, a3 as GitErrorCode, a4 as GitFileAtRevision, a5 as GitFileChange, a6 as GitFileStatusCode, a7 as GitLogEntry, a8 as GitLogOptions, a9 as GitRemoteInfo, aa as GitRepoDetection, ab as GitResult, ac as GitRevision, ad as GitStatus, ae as HOST_PLATFORMS, af as HOST_SURFACE_KINDS, ah as HostCloseReason, aj as HostExportTargetGrant, al as HostPlatform, am as HostPrepareCloseRequest, an as HostPrepareCloseResult, ao as HostSurfaceKind, ap as MenuCommand, aq as NO_HOST_CAPABILITIES, av as SpeechErrorCode, ax as SpeechInstallHandle, aE as SpeechReadinessState, aG as SpeechSegment, aI as SpeechSynthesisHandle, aP as SpeechWordTiming, aQ as UpdateCheckResult, aR as UpdateInstallResult, aS as UpdaterStatus, aT as deriveHostCapabilities, aU as parseAiKnowledgeAction, aV as parseAiKnowledgeState, aW as parseHostEnvironment } from '../capabilities-CdQAc745.js';
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-r03EXSAi.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-r03EXSAi.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';
@@ -50,7 +50,7 @@ import {
50
50
  parseSpeechTranscribeRequest,
51
51
  parseSpeechTranscript,
52
52
  parseSpeechVoiceInfo
53
- } from "../chunk-YNUQG4GF.js";
53
+ } from "../chunk-ZTSG7AC3.js";
54
54
  import {
55
55
  EXPORT_TRANSFER_LIMITS,
56
56
  HOST_WIRE_LIMITS,
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 AiModelInfo, s as AiModelInstallEvent, t as AiModelInstallHandle, u as AiPreferences, v as AiPreferencesPatch, w as AiProgress, x as AiProviderInfo, y as AiResult, z as AiReviewMode, B as AiSearchHit, C as AiSearchQuery, D as AiSearchResult, E as AiSpeechAudio, F as AiStatus, G as AiSynthesizeRequest, H as AiTranscribeRequest, I as AiTranscript, J as AiUnavailableReason, K as DocBlocksHostAPI, L as DocBlocksHostAiAPI, M as DocBlocksHostClipboardAPI, N as DocBlocksHostExportAPI, O as DocBlocksHostExternalAPI, P as DocBlocksHostFfmpegAPI, Q as DocBlocksHostFsAPI, R as DocBlocksHostGitAPI, S as DocBlocksHostLifecycleAPI, T as DocBlocksHostMenuAPI, U as DocBlocksHostShellAPI, V as DocBlocksHostSpeechAPI, W as DocBlocksHostUpdaterAPI, X as DocBlocksHostWorkspacesAPI, Y as ElectronWorkspaceInfo, Z as ExternalBinaryCommitResult, _ as GitBranchInfo, $ as GitCapabilities, a0 as GitCloneHandle, a1 as GitCloneProgress, a2 as GitError, a3 as GitErrorCode, a4 as GitFileAtRevision, a5 as GitFileChange, a6 as GitFileStatusCode, a7 as GitLogEntry, a8 as GitLogOptions, a9 as GitRemoteInfo, aa as GitRepoDetection, ab as GitResult, ac as GitRevision, ad as GitStatus, ae as HOST_PLATFORMS, af as HOST_SURFACE_KINDS, ag as HostCapabilities, ah as HostCloseReason, ai as HostEnvironment, aj as HostExportTargetGrant, ak as HostPinnedDocument, al as HostPlatform, am as HostPrepareCloseRequest, an as HostPrepareCloseResult, ao as HostSurfaceKind, ap as MenuCommand, aq as NO_HOST_CAPABILITIES, ar as OpenRequest, as as SpeechAudioChunk, at as SpeechCatalog, au as SpeechError, av as SpeechErrorCode, aw as SpeechInstallEvent, ax as SpeechInstallHandle, ay as SpeechModelInfo, az as SpeechModelKind, aA as SpeechPreferences, aB as SpeechPreferencesPatch, aC as SpeechProgress, aD as SpeechReadiness, aE as SpeechReadinessState, aF as SpeechResult, aG as SpeechSegment, aH as SpeechStatus, aI as SpeechSynthesisHandle, aJ as SpeechSynthesisSummary, aK as SpeechSynthesizeEvent, aL as SpeechSynthesizeRequest, aM as SpeechTranscribeRequest, aN as SpeechTranscript, aO as SpeechVoiceInfo, aP as SpeechWordTiming, aQ as UpdateCheckResult, aR as UpdateInstallResult, aS as UpdaterStatus, aT as deriveHostCapabilities, aU as parseAiKnowledgeAction, aV as parseAiKnowledgeState, aW as parseHostEnvironment } from './capabilities-CdQAc745.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 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-r03EXSAi.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-CyLTRKJF.js';
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-IDYE73TU.js";
67
- import "./chunk-L6PRMR7T.js";
66
+ } from "./chunk-4I4AG2BH.js";
67
+ import "./chunk-DFMRE22M.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-YNUQG4GF.js";
120
+ } from "./chunk-ZTSG7AC3.js";
121
121
  import "./chunk-245W57QP.js";
122
122
  import {
123
123
  EXPORT_TRANSFER_LIMITS,
@@ -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 ["brown", "green", "blue", "purple", "maroon", "orange", "gray"];
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 };
@@ -16,7 +16,7 @@ var PROOF_STATE_LIMITS = Object.freeze({
16
16
  ignoredJsonCharacters: 64 * 1024
17
17
  });
18
18
  var DOCBLOCKS_ACCENT_COLORS = [
19
- "brown",
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 { Y as ElectronWorkspaceInfo, ai as HostEnvironment } from '../capabilities-CdQAc745.js';
2
+ import { Z as ElectronWorkspaceInfo, aj as HostEnvironment } from '../capabilities-r03EXSAi.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.1",
3
+ "version": "2.7.3",
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.11.19",
129
+ "@bendyline/squisq": "2.12.3",
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;