@bendyline/docblocks 2.7.2 → 2.7.4

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.
Files changed (52) hide show
  1. package/THIRD_PARTY_NOTICES.txt +4 -4
  2. package/dist/{capabilities-BvUC17t9.d.ts → capabilities-BJEkIsO1.d.ts} +9 -4
  3. package/dist/{chunk-KQ6756AJ.js → chunk-3GSMJ4MQ.js} +1 -1
  4. package/dist/{chunk-YWYT6K6J.js → chunk-3LXXRIO2.js} +1 -1
  5. package/dist/{chunk-STUIS5UZ.js → chunk-7LPIGCBG.js} +17 -3
  6. package/dist/{chunk-UK7R3RC7.js → chunk-BC42VRYW.js} +1 -1
  7. package/dist/{chunk-IGB2VSRE.js → chunk-FIEMYP2N.js} +2 -2
  8. package/dist/{chunk-M5ZNQGR5.js → chunk-IYKGM3PV.js} +1 -1
  9. package/dist/{chunk-6UPO2GE6.js → chunk-K5HRMSXD.js} +3 -3
  10. package/dist/{chunk-NM5KF6YF.js → chunk-KXQDMZFH.js} +9 -1
  11. package/dist/{chunk-UDEWLHQI.js → chunk-LDAG5NTQ.js} +3 -3
  12. package/dist/{chunk-7SN7YQL4.js → chunk-LJLQYXVL.js} +99 -3
  13. package/dist/{chunk-L657M3XG.js → chunk-PSGAZKWO.js} +2 -2
  14. package/dist/{chunk-HKOOHM67.js → chunk-Q3OFZWJS.js} +3 -3
  15. package/dist/{chunk-AYWKIZLD.js → chunk-UTH3HYCZ.js} +5 -1
  16. package/dist/{chunk-QS5WTLUZ.js → chunk-XI2LYBRR.js} +167 -0
  17. package/dist/document/index.d.ts +2 -2
  18. package/dist/document/index.js +3 -3
  19. package/dist/filesystem/electron.d.ts +5 -5
  20. package/dist/filesystem/electron.js +4 -4
  21. package/dist/filesystem/host.d.ts +4 -4
  22. package/dist/filesystem/host.js +4 -4
  23. package/dist/filesystem/index.d.ts +27 -8
  24. package/dist/filesystem/index.js +22 -12
  25. package/dist/filesystem/indexeddb.d.ts +2 -2
  26. package/dist/filesystem/indexeddb.js +4 -4
  27. package/dist/filesystem/memory.d.ts +2 -2
  28. package/dist/filesystem/memory.js +4 -4
  29. package/dist/filesystem/native.d.ts +2 -2
  30. package/dist/filesystem/native.js +4 -4
  31. package/dist/{filesystem-v2-C8AdSXUN.d.ts → filesystem-v2-CXdAPR27.d.ts} +1 -1
  32. package/dist/host/index.d.ts +5 -5
  33. package/dist/host/index.js +1 -1
  34. package/dist/host/mobile.d.ts +2 -2
  35. package/dist/host/mobile.js +1 -1
  36. package/dist/{host-provider-v2-CV0joXaL.d.ts → host-provider-v2-DEWMPiRD.d.ts} +2 -2
  37. package/dist/index.d.ts +8 -7
  38. package/dist/index.js +23 -13
  39. package/dist/mcp/index.js +2 -2
  40. package/dist/mcp/zod.js +2 -2
  41. package/dist/reconcile-electron-Bz-iAY_B.d.ts +142 -0
  42. package/dist/{types-BvDnr3YU.d.ts → types-DLteNrK0.d.ts} +3 -1
  43. package/dist/{v2-BVnZZyd4.d.ts → v2-DwxWjFC0.d.ts} +12 -1
  44. package/dist/vscode/index.d.ts +28 -2
  45. package/dist/vscode/index.js +21 -3
  46. package/dist/workspace/index.d.ts +41 -141
  47. package/dist/workspace/index.js +16 -1
  48. package/dist/workspace-index/index.d.ts +3 -1
  49. package/dist/workspace-index/index.js +18 -2
  50. package/dist/workspace-settings/index.d.ts +1 -1
  51. package/dist/workspace-settings/index.js +3 -3
  52. package/package.json +2 -2
@@ -1,10 +1,10 @@
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-CV0joXaL.js';
1
+ import { d as FileSystemProvider, F as FileCommitResult, c as FileSystemEntry, b as FileMeta } from '../types-DLteNrK0.js';
2
+ import { H as HostFileSystemProviderV2 } from '../host-provider-v2-DEWMPiRD.js';
3
3
  export { isElectronHost } from '../host/index.js';
4
- import '../v2-BVnZZyd4.js';
4
+ import '../v2-DwxWjFC0.js';
5
5
  import '../workspace-path-CWVrcuPL.js';
6
- import '../filesystem-v2-C8AdSXUN.js';
7
- import '../capabilities-BvUC17t9.js';
6
+ import '../filesystem-v2-CXdAPR27.js';
7
+ import '../capabilities-BJEkIsO1.js';
8
8
 
9
9
  /** Compatibility entry point retaining the Electron backend's exact guarantees. */
10
10
  declare class ElectronFileSystemProviderV2 extends HostFileSystemProviderV2 {
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  ElectronFileSystemProvider,
3
3
  ElectronFileSystemProviderV2
4
- } from "../chunk-L657M3XG.js";
5
- import "../chunk-STUIS5UZ.js";
4
+ } from "../chunk-PSGAZKWO.js";
5
+ import "../chunk-7LPIGCBG.js";
6
6
  import {
7
7
  isElectronHost
8
- } from "../chunk-NM5KF6YF.js";
8
+ } from "../chunk-KXQDMZFH.js";
9
9
  import "../chunk-245W57QP.js";
10
10
  import "../chunk-46AGYHDY.js";
11
11
  import "../chunk-73OOROXH.js";
12
12
  import "../chunk-HABG2JM3.js";
13
13
  import "../chunk-LPIJ6HKL.js";
14
- import "../chunk-AYWKIZLD.js";
14
+ import "../chunk-UTH3HYCZ.js";
15
15
  export {
16
16
  ElectronFileSystemProvider,
17
17
  ElectronFileSystemProviderV2,
@@ -1,7 +1,7 @@
1
- import { H as HostFileSystemProviderV2, a as HostFileSystemClientOptions } from '../host-provider-v2-CV0joXaL.js';
2
- import { d as FileSystemProvider, F as FileCommitResult, c as FileSystemEntry, b as FileMeta } from '../types-BvDnr3YU.js';
3
- import '../filesystem-v2-C8AdSXUN.js';
4
- import '../v2-BVnZZyd4.js';
1
+ import { H as HostFileSystemProviderV2, a as HostFileSystemClientOptions } from '../host-provider-v2-DEWMPiRD.js';
2
+ import { d as FileSystemProvider, F as FileCommitResult, c as FileSystemEntry, b as FileMeta } from '../types-DLteNrK0.js';
3
+ import '../filesystem-v2-CXdAPR27.js';
4
+ import '../v2-DwxWjFC0.js';
5
5
  import '../workspace-path-CWVrcuPL.js';
6
6
 
7
7
  /** Temporary text facade; all storage and conditional mutation is owned by v2. */
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  HostFileSystemProviderV2
3
- } from "../chunk-STUIS5UZ.js";
3
+ } from "../chunk-7LPIGCBG.js";
4
4
  import {
5
5
  ELECTRON_FILE_SYSTEM_V2_CAPABILITIES,
6
6
  maybeGetDocBlocksHost
7
- } from "../chunk-NM5KF6YF.js";
7
+ } from "../chunk-KXQDMZFH.js";
8
8
  import "../chunk-245W57QP.js";
9
9
  import "../chunk-46AGYHDY.js";
10
10
  import "../chunk-73OOROXH.js";
@@ -12,11 +12,11 @@ import "../chunk-HABG2JM3.js";
12
12
  import "../chunk-LPIJ6HKL.js";
13
13
  import {
14
14
  decodeUtf8Text
15
- } from "../chunk-M5ZNQGR5.js";
15
+ } from "../chunk-IYKGM3PV.js";
16
16
  import {
17
17
  FsError,
18
18
  parseWorkspacePath
19
- } from "../chunk-AYWKIZLD.js";
19
+ } from "../chunk-UTH3HYCZ.js";
20
20
 
21
21
  // src/filesystem/host-provider.ts
22
22
  var HostFileSystemProvider = class {
@@ -1,9 +1,10 @@
1
- import { d as FileSystemProvider } from '../types-BvDnr3YU.js';
2
- export { F as FileCommitResult, a as FileEntry, b as FileMeta, c as FileSystemEntry, e as FileSystemProviderWithV2, f as FolderEntry, g as getFileSystemProviderV2, h as hasFileSystemProviderV2 } from '../types-BvDnr3YU.js';
1
+ import { d as FileSystemProvider } from '../types-DLteNrK0.js';
2
+ export { F as FileCommitResult, a as FileEntry, b as FileMeta, c as FileSystemEntry, e as FileSystemProviderWithV2, f as FolderEntry, g as getFileSystemProviderV2, h as hasFileSystemProviderV2 } from '../types-DLteNrK0.js';
3
+ import { WikiLinkSuggestion } from '@bendyline/squisq/markdown';
3
4
  import { a as WorkspacePath } from '../workspace-path-CWVrcuPL.js';
4
5
  export { W as WORKSPACE_ROOT, p as parseWorkspacePath, t as tryParseWorkspacePath, w as workspacePathBasename, b as workspacePathContains, c as workspacePathDirname, d as workspacePathJoin, e as workspacePathToLegacy } from '../workspace-path-CWVrcuPL.js';
5
- import { I as FsOperation, n as FileSystemProviderV2, m as FileSystemProviderCapabilities, F as FileSystemAtomicity, a as FileSystemCaseSensitivity, t as FileSystemSymlinkPolicy, f as FileSystemDurability, 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, z as FileSystemWatchListener, A as FileSystemWatchOptions, B as FileSystemWatchSubscription } from '../v2-BVnZZyd4.js';
6
- export { b as FileSystemConditionalWriteStrength, c as FileSystemCreateDirectoryMode, h as FileSystemEntryWatchEvent, l as FileSystemOverflowWatchEvent, r as FileSystemSnapshotEntry, s as FileSystemSnapshotFile, u as FileSystemVersion, v as FileSystemWatchErrorListener, w as FileSystemWatchEvent, x as FileSystemWatchEventOrigin, y as FileSystemWatchEventType, C as FileSystemWriteMode, E as FsError, G as FsErrorCode, H as FsErrorContext, S as SerializedFsError, J as deserializeFsError, K as fsErrorFromUnknown, L as isQuotaExceededError, M as isSerializedFsError, N as mapDomExceptionToFsErrorCode, O as mapNodeErrorCodeToFsErrorCode, P as parseFileSystemVersion, Q as serializeFsError, R as tryParseFileSystemVersion } from '../v2-BVnZZyd4.js';
6
+ import { J as FsOperation, o as FileSystemProviderV2, n as FileSystemProviderCapabilities, F as FileSystemAtomicity, a as FileSystemCaseSensitivity, u as FileSystemSymlinkPolicy, f as FileSystemDurability, h as FileSystemEntrySnapshot, j as FileSystemFileRead, E as FileSystemWriteOptions, k as FileSystemFileSnapshot, d as FileSystemCreateDirectoryOptions, e as FileSystemDirectorySnapshot, p as FileSystemRemoveOptions, q as FileSystemRemoveResult, l as FileSystemMoveOptions, r as FileSystemSnapshot, A as FileSystemWatchListener, B as FileSystemWatchOptions, C as FileSystemWatchSubscription } from '../v2-DwxWjFC0.js';
7
+ export { b as FileSystemConditionalWriteStrength, c as FileSystemCreateDirectoryMode, g as FileSystemEntryReadIssue, i as FileSystemEntryWatchEvent, m as FileSystemOverflowWatchEvent, s as FileSystemSnapshotEntry, t as FileSystemSnapshotFile, v as FileSystemVersion, w as FileSystemWatchErrorListener, x as FileSystemWatchEvent, y as FileSystemWatchEventOrigin, z as FileSystemWatchEventType, D as FileSystemWriteMode, G as FsError, H as FsErrorCode, I as FsErrorContext, S as SerializedFsError, K as deserializeFsError, L as fsErrorFromUnknown, M as isQuotaExceededError, N as isSerializedFsError, O as mapDomExceptionToFsErrorCode, P as mapNodeErrorCodeToFsErrorCode, Q as parseFileSystemVersion, R as serializeFsError, T as tryParseFileSystemVersion } from '../v2-DwxWjFC0.js';
7
8
  import { MemoryFileSystemSnapshot, MemoryFileSystemProvider } from './memory.js';
8
9
  export { MemoryFilePayloadKind, MemoryFileSystemProviderV2, MemoryFileSystemSnapshotFile, MemoryFileSystemV2CompatibilityFile, MemoryFileSystemV2Replacement, MemoryFileSystemV2ReplacementFile, MemoryFileSystemV2State, MemoryFileSystemV2StateFile } from './memory.js';
9
10
  export { IndexedDBContentContainer, IndexedDBFileSystemProvider, IndexedDBFileSystemProviderV2, IndexedDBFileSystemProviderV2Options, IndexedDBLegacyConflictReason, IndexedDBLegacyConflictResolution, IndexedDBLegacyMigrationConflict, IndexedDBLegacyOpaqueDiscardTarget, IndexedDBLegacyOpaqueRecord, IndexedDBLegacyOpaqueRecordSummary, IndexedDBLegacyOpaqueValue, IndexedDBLegacyRecoveryCandidate, IndexedDBLegacyRecoveryKind } from './indexeddb.js';
@@ -12,9 +13,27 @@ import { MediaProvider } from '@bendyline/squisq/schemas';
12
13
  export { NativeFileSystemMovePathState, NativeFileSystemMoveRecoveryError, NativeFileSystemMoveRecoveryState, NativeFileSystemProvider, NativeFileSystemProviderV2, isNativeFileSystemSupported, loadDirectoryHandle, openNativeFolder, removeDirectoryHandle, restoreNativeFolder, storeDirectoryHandle } from './native.js';
13
14
  export { ElectronFileSystemProvider, ElectronFileSystemProviderV2 } from './electron.js';
14
15
  export { isElectronHost } from '../host/index.js';
15
- import '../host-provider-v2-CV0joXaL.js';
16
- import '../filesystem-v2-C8AdSXUN.js';
17
- import '../capabilities-BvUC17t9.js';
16
+ import '../host-provider-v2-DEWMPiRD.js';
17
+ import '../filesystem-v2-CXdAPR27.js';
18
+ import '../capabilities-BJEkIsO1.js';
19
+
20
+ /** Immediate article/folder suggestions from an already bounded listing. */
21
+ declare function suggestWikiArticles(files: readonly {
22
+ path: string;
23
+ }[], directories: readonly string[], documentPath: string, query: string, extension?: '.md' | '.html', explicitExtensions?: boolean): Promise<WikiLinkSuggestion[]>;
24
+ /** Resolve a literal wiki name beside its source, never relative to the media sidecar. */
25
+ declare function resolveWikiArticlePath(documentPath: string, target: string, extension?: '.md' | '.html'): Promise<WorkspacePath>;
26
+ /** Prefer the workspace's article format, then reuse an existing alternate.
27
+ * Explicit extensions always address exactly that file. No recursive scan. */
28
+ declare function findWikiArticle(provider: FileSystemProvider, documentPath: string, target: string, extension?: '.md' | '.html'): Promise<{
29
+ path: WorkspacePath;
30
+ relativePath: string;
31
+ exists: boolean;
32
+ }>;
33
+ declare function wikiArticleExists(provider: FileSystemProvider, path: WorkspacePath): Promise<boolean>;
34
+ /** Create only after the current DocumentSession has flushed. A race winner
35
+ * is opened as-is; permission and IO errors must not become "missing". */
36
+ declare function ensureWikiArticle(provider: FileSystemProvider, path: WorkspacePath): Promise<boolean>;
18
37
 
19
38
  interface DecodeUtf8TextOptions {
20
39
  /** User-facing description of the payload being decoded. */
@@ -272,4 +291,4 @@ declare function isFileSystemMoveStateError(error: unknown): error is FileSystem
272
291
  declare function describePartialMove(provider: FileSystemProvider, sourcePath: string, destinationPath: string, companionSourcePath: string, companionDestinationPath: string): Promise<FileSystemPartialMoveState>;
273
292
  declare function describeEntryMove(provider: FileSystemProvider, sourcePath: string, destinationPath: string): Promise<FileSystemEntryMoveState>;
274
293
 
275
- export { type DbkWorkspaceAssetLayout, type DbkWorkspaceSnapshot, type DbkWorkspaceSnapshotOptions, type DecodeUtf8TextOptions, FileSystemAtomicity, FileSystemCaseSensitivity, FileSystemContentContainer, FileSystemCreateDirectoryOptions, FileSystemDirectorySnapshot, FileSystemDurability, type FileSystemEntryMoveOptions, type FileSystemEntryMoveState, FileSystemEntrySnapshot, FileSystemFileRead, FileSystemFileSnapshot, type FileSystemMoveLocation, FileSystemMoveOptions, FileSystemMoveRecoveryError, FileSystemPartialMoveError, type FileSystemPartialMoveState, type FileSystemPathPresence, FileSystemProvider, FileSystemProviderCapabilities, FileSystemProviderV2, FileSystemRemoveOptions, FileSystemRemoveResult, FileSystemSnapshot, FileSystemSymlinkPolicy, FileSystemWatchListener, FileSystemWatchOptions, FileSystemWatchSubscription, FileSystemWriteOptions, FsOperation, type LegacyFilePayloadModel, LegacyFileSystemProviderV2Adapter, type LegacyFileSystemProviderV2AdapterOptions, MARKDOWN_FILE_EXTENSIONS, MemoryFileSystemProvider, MemoryFileSystemSnapshot, SQUISQ_RUNTIME_DIRECTORY_NAME, WorkspacePath, createDbkWorkspaceSnapshot, createFileMediaProvider, decodeUtf8Text, describeEntryMove, describePartialMove, documentCompanionPath, isBrowsableWorkspaceEntry, isCompanionDirectoryName, isDiscoverableWorkspaceEntry, isFileSystemMoveRecoveryError, isFileSystemMoveStateError, isFileSystemPartialMoveError, isIgnoredWorkspaceEntryName, isMarkdownFileName, moveFileSystemEntry, replaceMemoryWorkspaceFromDbk, rewriteCompanionReferences };
294
+ export { type DbkWorkspaceAssetLayout, type DbkWorkspaceSnapshot, type DbkWorkspaceSnapshotOptions, type DecodeUtf8TextOptions, FileSystemAtomicity, FileSystemCaseSensitivity, FileSystemContentContainer, FileSystemCreateDirectoryOptions, FileSystemDirectorySnapshot, FileSystemDurability, type FileSystemEntryMoveOptions, type FileSystemEntryMoveState, FileSystemEntrySnapshot, FileSystemFileRead, FileSystemFileSnapshot, type FileSystemMoveLocation, FileSystemMoveOptions, FileSystemMoveRecoveryError, FileSystemPartialMoveError, type FileSystemPartialMoveState, type FileSystemPathPresence, FileSystemProvider, FileSystemProviderCapabilities, FileSystemProviderV2, FileSystemRemoveOptions, FileSystemRemoveResult, FileSystemSnapshot, FileSystemSymlinkPolicy, FileSystemWatchListener, FileSystemWatchOptions, FileSystemWatchSubscription, FileSystemWriteOptions, FsOperation, type LegacyFilePayloadModel, LegacyFileSystemProviderV2Adapter, type LegacyFileSystemProviderV2AdapterOptions, MARKDOWN_FILE_EXTENSIONS, MemoryFileSystemProvider, MemoryFileSystemSnapshot, SQUISQ_RUNTIME_DIRECTORY_NAME, WorkspacePath, createDbkWorkspaceSnapshot, createFileMediaProvider, decodeUtf8Text, describeEntryMove, describePartialMove, documentCompanionPath, ensureWikiArticle, findWikiArticle, isBrowsableWorkspaceEntry, isCompanionDirectoryName, isDiscoverableWorkspaceEntry, isFileSystemMoveRecoveryError, isFileSystemMoveStateError, isFileSystemPartialMoveError, isIgnoredWorkspaceEntryName, isMarkdownFileName, moveFileSystemEntry, replaceMemoryWorkspaceFromDbk, resolveWikiArticlePath, rewriteCompanionReferences, suggestWikiArticles, wikiArticleExists };
@@ -4,10 +4,15 @@ import {
4
4
  createDbkWorkspaceSnapshot,
5
5
  createFileMediaProvider,
6
6
  documentCompanionPath,
7
+ ensureWikiArticle,
8
+ findWikiArticle,
7
9
  moveFileSystemEntry,
8
10
  replaceMemoryWorkspaceFromDbk,
9
- rewriteCompanionReferences
10
- } from "../chunk-7SN7YQL4.js";
11
+ resolveWikiArticlePath,
12
+ rewriteCompanionReferences,
13
+ suggestWikiArticles,
14
+ wikiArticleExists
15
+ } from "../chunk-LJLQYXVL.js";
11
16
  import {
12
17
  MARKDOWN_FILE_EXTENSIONS,
13
18
  SQUISQ_RUNTIME_DIRECTORY_NAME,
@@ -21,12 +26,12 @@ import {
21
26
  IndexedDBContentContainer,
22
27
  IndexedDBFileSystemProvider,
23
28
  IndexedDBFileSystemProviderV2
24
- } from "../chunk-HKOOHM67.js";
29
+ } from "../chunk-Q3OFZWJS.js";
25
30
  import "../chunk-DAPFSEKY.js";
26
31
  import {
27
32
  MemoryFileSystemProvider,
28
33
  MemoryFileSystemProviderV2
29
- } from "../chunk-UDEWLHQI.js";
34
+ } from "../chunk-LDAG5NTQ.js";
30
35
  import {
31
36
  NativeFileSystemMoveRecoveryError,
32
37
  NativeFileSystemProvider,
@@ -37,17 +42,17 @@ import {
37
42
  removeDirectoryHandle,
38
43
  restoreNativeFolder,
39
44
  storeDirectoryHandle
40
- } from "../chunk-6UPO2GE6.js";
45
+ } from "../chunk-K5HRMSXD.js";
41
46
  import "../chunk-DZB666V7.js";
42
- import "../chunk-KQ6756AJ.js";
47
+ import "../chunk-3GSMJ4MQ.js";
43
48
  import {
44
49
  ElectronFileSystemProvider,
45
50
  ElectronFileSystemProviderV2
46
- } from "../chunk-L657M3XG.js";
47
- import "../chunk-STUIS5UZ.js";
51
+ } from "../chunk-PSGAZKWO.js";
52
+ import "../chunk-7LPIGCBG.js";
48
53
  import {
49
54
  isElectronHost
50
- } from "../chunk-NM5KF6YF.js";
55
+ } from "../chunk-KXQDMZFH.js";
51
56
  import "../chunk-245W57QP.js";
52
57
  import "../chunk-46AGYHDY.js";
53
58
  import "../chunk-73OOROXH.js";
@@ -64,14 +69,14 @@ import {
64
69
  isFileSystemMoveRecoveryError,
65
70
  isFileSystemMoveStateError,
66
71
  isFileSystemPartialMoveError
67
- } from "../chunk-IGB2VSRE.js";
72
+ } from "../chunk-FIEMYP2N.js";
68
73
  import {
69
74
  getFileSystemProviderV2,
70
75
  hasFileSystemProviderV2
71
76
  } from "../chunk-XAMILHQP.js";
72
77
  import {
73
78
  decodeUtf8Text
74
- } from "../chunk-M5ZNQGR5.js";
79
+ } from "../chunk-IYKGM3PV.js";
75
80
  import {
76
81
  FsError,
77
82
  WORKSPACE_ROOT,
@@ -89,7 +94,7 @@ import {
89
94
  workspacePathDirname,
90
95
  workspacePathJoin,
91
96
  workspacePathToLegacy
92
- } from "../chunk-AYWKIZLD.js";
97
+ } from "../chunk-UTH3HYCZ.js";
93
98
  export {
94
99
  ElectronFileSystemProvider,
95
100
  ElectronFileSystemProviderV2,
@@ -116,6 +121,8 @@ export {
116
121
  describePartialMove,
117
122
  deserializeFsError,
118
123
  documentCompanionPath,
124
+ ensureWikiArticle,
125
+ findWikiArticle,
119
126
  fsErrorFromUnknown,
120
127
  getFileSystemProviderV2,
121
128
  hasFileSystemProviderV2,
@@ -140,12 +147,15 @@ export {
140
147
  parseWorkspacePath,
141
148
  removeDirectoryHandle,
142
149
  replaceMemoryWorkspaceFromDbk,
150
+ resolveWikiArticlePath,
143
151
  restoreNativeFolder,
144
152
  rewriteCompanionReferences,
145
153
  serializeFsError,
146
154
  storeDirectoryHandle,
155
+ suggestWikiArticles,
147
156
  tryParseFileSystemVersion,
148
157
  tryParseWorkspacePath,
158
+ wikiArticleExists,
149
159
  workspacePathBasename,
150
160
  workspacePathContains,
151
161
  workspacePathDirname,
@@ -1,5 +1,5 @@
1
- import { b as FileMeta, d as FileSystemProvider, F as FileCommitResult, c as FileSystemEntry } from '../types-BvDnr3YU.js';
2
- 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, z as FileSystemWatchListener, A as FileSystemWatchOptions, B as FileSystemWatchSubscription } from '../v2-BVnZZyd4.js';
1
+ import { b as FileMeta, d as FileSystemProvider, F as FileCommitResult, c as FileSystemEntry } from '../types-DLteNrK0.js';
2
+ import { o as FileSystemProviderV2, n as FileSystemProviderCapabilities, h as FileSystemEntrySnapshot, j as FileSystemFileRead, E as FileSystemWriteOptions, k as FileSystemFileSnapshot, d as FileSystemCreateDirectoryOptions, e as FileSystemDirectorySnapshot, p as FileSystemRemoveOptions, q as FileSystemRemoveResult, l as FileSystemMoveOptions, r as FileSystemSnapshot, A as FileSystemWatchListener, B as FileSystemWatchOptions, C as FileSystemWatchSubscription } from '../v2-DwxWjFC0.js';
3
3
  import { a as WorkspacePath } from '../workspace-path-CWVrcuPL.js';
4
4
  import { ContentContainer, ContentEntry } from '@bendyline/squisq/storage';
5
5
 
@@ -2,18 +2,18 @@ import {
2
2
  IndexedDBContentContainer,
3
3
  IndexedDBFileSystemProvider,
4
4
  IndexedDBFileSystemProviderV2
5
- } from "../chunk-HKOOHM67.js";
5
+ } from "../chunk-Q3OFZWJS.js";
6
6
  import {
7
7
  deleteIndexedDBWorkspaceData,
8
8
  indexedDBWorkspaceDatabaseName
9
9
  } from "../chunk-DAPFSEKY.js";
10
10
  import "../chunk-DZB666V7.js";
11
- import "../chunk-KQ6756AJ.js";
11
+ import "../chunk-3GSMJ4MQ.js";
12
12
  import "../chunk-73OOROXH.js";
13
13
  import "../chunk-HABG2JM3.js";
14
14
  import "../chunk-LPIJ6HKL.js";
15
- import "../chunk-M5ZNQGR5.js";
16
- import "../chunk-AYWKIZLD.js";
15
+ import "../chunk-IYKGM3PV.js";
16
+ import "../chunk-UTH3HYCZ.js";
17
17
  export {
18
18
  IndexedDBContentContainer,
19
19
  IndexedDBFileSystemProvider,
@@ -1,5 +1,5 @@
1
- import { F as FileCommitResult, d as FileSystemProvider, c as FileSystemEntry, b as FileMeta } from '../types-BvDnr3YU.js';
2
- import { n as FileSystemProviderV2, m as FileSystemProviderCapabilities, D as FileSystemWriteOptions, j as FileSystemFileSnapshot, g as FileSystemEntrySnapshot, i as FileSystemFileRead, d as FileSystemCreateDirectoryOptions, e as FileSystemDirectorySnapshot, o as FileSystemRemoveOptions, p as FileSystemRemoveResult, k as FileSystemMoveOptions, q as FileSystemSnapshot, z as FileSystemWatchListener, A as FileSystemWatchOptions, B as FileSystemWatchSubscription } from '../v2-BVnZZyd4.js';
1
+ import { F as FileCommitResult, d as FileSystemProvider, c as FileSystemEntry, b as FileMeta } from '../types-DLteNrK0.js';
2
+ import { o as FileSystemProviderV2, n as FileSystemProviderCapabilities, E as FileSystemWriteOptions, k as FileSystemFileSnapshot, h as FileSystemEntrySnapshot, j as FileSystemFileRead, d as FileSystemCreateDirectoryOptions, e as FileSystemDirectorySnapshot, p as FileSystemRemoveOptions, q as FileSystemRemoveResult, l as FileSystemMoveOptions, r as FileSystemSnapshot, A as FileSystemWatchListener, B as FileSystemWatchOptions, C as FileSystemWatchSubscription } from '../v2-DwxWjFC0.js';
3
3
  import { a as WorkspacePath } from '../workspace-path-CWVrcuPL.js';
4
4
 
5
5
  type MemoryFilePayloadKind = 'text' | 'binary';
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  MemoryFileSystemProvider,
3
3
  MemoryFileSystemProviderV2
4
- } from "../chunk-UDEWLHQI.js";
5
- import "../chunk-KQ6756AJ.js";
4
+ } from "../chunk-LDAG5NTQ.js";
5
+ import "../chunk-3GSMJ4MQ.js";
6
6
  import "../chunk-HABG2JM3.js";
7
7
  import "../chunk-LPIJ6HKL.js";
8
- import "../chunk-M5ZNQGR5.js";
9
- import "../chunk-AYWKIZLD.js";
8
+ import "../chunk-IYKGM3PV.js";
9
+ import "../chunk-UTH3HYCZ.js";
10
10
  export {
11
11
  MemoryFileSystemProvider,
12
12
  MemoryFileSystemProviderV2
@@ -1,5 +1,5 @@
1
- import { d as FileSystemProvider, F as FileCommitResult, c as FileSystemEntry, b as FileMeta } from '../types-BvDnr3YU.js';
2
- import { E as FsError, 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, z as FileSystemWatchListener, A as FileSystemWatchOptions, B as FileSystemWatchSubscription } from '../v2-BVnZZyd4.js';
1
+ import { d as FileSystemProvider, F as FileCommitResult, c as FileSystemEntry, b as FileMeta } from '../types-DLteNrK0.js';
2
+ import { G as FsError, o as FileSystemProviderV2, n as FileSystemProviderCapabilities, h as FileSystemEntrySnapshot, j as FileSystemFileRead, E as FileSystemWriteOptions, k as FileSystemFileSnapshot, d as FileSystemCreateDirectoryOptions, e as FileSystemDirectorySnapshot, p as FileSystemRemoveOptions, q as FileSystemRemoveResult, l as FileSystemMoveOptions, r as FileSystemSnapshot, A as FileSystemWatchListener, B as FileSystemWatchOptions, C as FileSystemWatchSubscription } from '../v2-DwxWjFC0.js';
3
3
  import { a as WorkspacePath } from '../workspace-path-CWVrcuPL.js';
4
4
 
5
5
  type NativeFileSystemMovePathState = 'present' | 'missing' | 'unknown';
@@ -8,13 +8,13 @@ import {
8
8
  removeDirectoryHandle,
9
9
  restoreNativeFolder,
10
10
  storeDirectoryHandle
11
- } from "../chunk-6UPO2GE6.js";
11
+ } from "../chunk-K5HRMSXD.js";
12
12
  import "../chunk-DZB666V7.js";
13
- import "../chunk-KQ6756AJ.js";
13
+ import "../chunk-3GSMJ4MQ.js";
14
14
  import "../chunk-HABG2JM3.js";
15
15
  import "../chunk-LPIJ6HKL.js";
16
- import "../chunk-M5ZNQGR5.js";
17
- import "../chunk-AYWKIZLD.js";
16
+ import "../chunk-IYKGM3PV.js";
17
+ import "../chunk-UTH3HYCZ.js";
18
18
  export {
19
19
  NativeFileSystemMoveRecoveryError,
20
20
  NativeFileSystemProvider,
@@ -1,4 +1,4 @@
1
- import { m as FileSystemProviderCapabilities, S as SerializedFsError, j as FileSystemFileSnapshot, D as FileSystemWriteOptions, g as FileSystemEntrySnapshot, i as FileSystemFileRead, d as FileSystemCreateDirectoryOptions, e as FileSystemDirectorySnapshot, o as FileSystemRemoveOptions, p as FileSystemRemoveResult, k as FileSystemMoveOptions, q as FileSystemSnapshot, w as FileSystemWatchEvent } from './v2-BVnZZyd4.js';
1
+ import { n as FileSystemProviderCapabilities, S as SerializedFsError, k as FileSystemFileSnapshot, E as FileSystemWriteOptions, h as FileSystemEntrySnapshot, j as FileSystemFileRead, d as FileSystemCreateDirectoryOptions, e as FileSystemDirectorySnapshot, p as FileSystemRemoveOptions, q as FileSystemRemoveResult, l as FileSystemMoveOptions, r as FileSystemSnapshot, x as FileSystemWatchEvent } from './v2-DwxWjFC0.js';
2
2
  import { a as WorkspacePath } from './workspace-path-CWVrcuPL.js';
3
3
 
4
4
  /** File size and per-message size are deliberately separate budgets. */
@@ -1,8 +1,8 @@
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
- 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
- import '../types-BvDnr3YU.js';
5
- import '../v2-BVnZZyd4.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-BJEkIsO1.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-BJEkIsO1.js';
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-CXdAPR27.js';
4
+ import '../types-DLteNrK0.js';
5
+ import '../v2-DwxWjFC0.js';
6
6
  import '../workspace-path-CWVrcuPL.js';
7
7
 
8
8
  /**
@@ -50,7 +50,7 @@ import {
50
50
  parseSpeechTranscribeRequest,
51
51
  parseSpeechTranscript,
52
52
  parseSpeechVoiceInfo
53
- } from "../chunk-NM5KF6YF.js";
53
+ } from "../chunk-KXQDMZFH.js";
54
54
  import {
55
55
  EXPORT_TRANSFER_LIMITS,
56
56
  HOST_WIRE_LIMITS,
@@ -1,6 +1,6 @@
1
- import { m as FileSystemProviderCapabilities } from '../v2-BVnZZyd4.js';
1
+ import { n as FileSystemProviderCapabilities } from '../v2-DwxWjFC0.js';
2
2
  import { z } from 'zod';
3
- import { D as DocBlocksHostFsV2API } from '../filesystem-v2-C8AdSXUN.js';
3
+ import { D as DocBlocksHostFsV2API } from '../filesystem-v2-CXdAPR27.js';
4
4
  import '../workspace-path-CWVrcuPL.js';
5
5
 
6
6
  /** Capabilities cross the native boundary and must describe the actual backend. */
@@ -9,7 +9,7 @@ import {
9
9
  deserializeFsError,
10
10
  isSerializedFsError,
11
11
  parseWorkspacePath
12
- } from "../chunk-AYWKIZLD.js";
12
+ } from "../chunk-UTH3HYCZ.js";
13
13
 
14
14
  // src/host/mobile-wire.ts
15
15
  import { z } from "zod";
@@ -1,6 +1,6 @@
1
- import { D as DocBlocksHostFsV2API } from './filesystem-v2-C8AdSXUN.js';
1
+ import { D as DocBlocksHostFsV2API } from './filesystem-v2-CXdAPR27.js';
2
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';
3
+ import { o as FileSystemProviderV2, n as FileSystemProviderCapabilities, h as FileSystemEntrySnapshot, j as FileSystemFileRead, E as FileSystemWriteOptions, k as FileSystemFileSnapshot, d as FileSystemCreateDirectoryOptions, e as FileSystemDirectorySnapshot, p as FileSystemRemoveOptions, q as FileSystemRemoveResult, l as FileSystemMoveOptions, r as FileSystemSnapshot, x as FileSystemWatchEvent, B as FileSystemWatchOptions, C as FileSystemWatchSubscription } from './v2-DwxWjFC0.js';
4
4
 
5
5
  interface HostFileSystemClientOptions {
6
6
  readonly capabilities: FileSystemProviderCapabilities;
package/dist/index.d.ts CHANGED
@@ -1,17 +1,18 @@
1
- export { F as FileCommitResult, a as FileEntry, b as FileMeta, c as FileSystemEntry, d as FileSystemProvider, e as FileSystemProviderWithV2, f as FolderEntry, g as getFileSystemProviderV2, h as hasFileSystemProviderV2 } from './types-BvDnr3YU.js';
1
+ export { F as FileCommitResult, a as FileEntry, b as FileMeta, c as FileSystemEntry, d as FileSystemProvider, e as FileSystemProviderWithV2, f as FolderEntry, g as getFileSystemProviderV2, h as hasFileSystemProviderV2 } from './types-DLteNrK0.js';
2
+ export { DbkWorkspaceAssetLayout, DbkWorkspaceSnapshot, DbkWorkspaceSnapshotOptions, DecodeUtf8TextOptions, FileSystemContentContainer, FileSystemEntryMoveOptions, FileSystemEntryMoveState, FileSystemMoveLocation, FileSystemMoveRecoveryError, FileSystemPartialMoveError, FileSystemPartialMoveState, FileSystemPathPresence, LegacyFilePayloadModel, LegacyFileSystemProviderV2Adapter, LegacyFileSystemProviderV2AdapterOptions, MARKDOWN_FILE_EXTENSIONS, SQUISQ_RUNTIME_DIRECTORY_NAME, createDbkWorkspaceSnapshot, createFileMediaProvider, decodeUtf8Text, describeEntryMove, describePartialMove, documentCompanionPath, ensureWikiArticle, findWikiArticle, isBrowsableWorkspaceEntry, isCompanionDirectoryName, isDiscoverableWorkspaceEntry, isFileSystemMoveRecoveryError, isFileSystemMoveStateError, isFileSystemPartialMoveError, isIgnoredWorkspaceEntryName, isMarkdownFileName, moveFileSystemEntry, replaceMemoryWorkspaceFromDbk, resolveWikiArticlePath, rewriteCompanionReferences, suggestWikiArticles, wikiArticleExists } from './filesystem/index.js';
2
3
  export { W as WORKSPACE_ROOT, a as WorkspacePath, p as parseWorkspacePath, t as tryParseWorkspacePath, w as workspacePathBasename, b as workspacePathContains, c as workspacePathDirname, d as workspacePathJoin, e as workspacePathToLegacy } from './workspace-path-CWVrcuPL.js';
3
- export { F as FileSystemAtomicity, a as FileSystemCaseSensitivity, b as FileSystemConditionalWriteStrength, c as FileSystemCreateDirectoryMode, d as FileSystemCreateDirectoryOptions, e as FileSystemDirectorySnapshot, f as FileSystemDurability, g as FileSystemEntrySnapshot, h as FileSystemEntryWatchEvent, i as FileSystemFileRead, j as FileSystemFileSnapshot, k as FileSystemMoveOptions, l as FileSystemOverflowWatchEvent, m as FileSystemProviderCapabilities, n as FileSystemProviderV2, o as FileSystemRemoveOptions, p as FileSystemRemoveResult, q as FileSystemSnapshot, r as FileSystemSnapshotEntry, s as FileSystemSnapshotFile, t as FileSystemSymlinkPolicy, u as FileSystemVersion, v as FileSystemWatchErrorListener, w as FileSystemWatchEvent, x as FileSystemWatchEventOrigin, y as FileSystemWatchEventType, z as FileSystemWatchListener, A as FileSystemWatchOptions, B as FileSystemWatchSubscription, C as FileSystemWriteMode, D as FileSystemWriteOptions, E as FsError, G as FsErrorCode, H as FsErrorContext, I as FsOperation, S as SerializedFsError, J as deserializeFsError, K as fsErrorFromUnknown, L as isQuotaExceededError, M as isSerializedFsError, N as mapDomExceptionToFsErrorCode, O as mapNodeErrorCodeToFsErrorCode, P as parseFileSystemVersion, Q as serializeFsError, R as tryParseFileSystemVersion } from './v2-BVnZZyd4.js';
4
- export { DbkWorkspaceAssetLayout, DbkWorkspaceSnapshot, DbkWorkspaceSnapshotOptions, DecodeUtf8TextOptions, FileSystemContentContainer, FileSystemEntryMoveOptions, FileSystemEntryMoveState, FileSystemMoveLocation, FileSystemMoveRecoveryError, FileSystemPartialMoveError, FileSystemPartialMoveState, FileSystemPathPresence, LegacyFilePayloadModel, LegacyFileSystemProviderV2Adapter, LegacyFileSystemProviderV2AdapterOptions, MARKDOWN_FILE_EXTENSIONS, SQUISQ_RUNTIME_DIRECTORY_NAME, createDbkWorkspaceSnapshot, createFileMediaProvider, decodeUtf8Text, describeEntryMove, describePartialMove, documentCompanionPath, isBrowsableWorkspaceEntry, isCompanionDirectoryName, isDiscoverableWorkspaceEntry, isFileSystemMoveRecoveryError, isFileSystemMoveStateError, isFileSystemPartialMoveError, isIgnoredWorkspaceEntryName, isMarkdownFileName, moveFileSystemEntry, replaceMemoryWorkspaceFromDbk, rewriteCompanionReferences } from './filesystem/index.js';
4
+ export { F as FileSystemAtomicity, a as FileSystemCaseSensitivity, b as FileSystemConditionalWriteStrength, c as FileSystemCreateDirectoryMode, d as FileSystemCreateDirectoryOptions, e as FileSystemDirectorySnapshot, f as FileSystemDurability, g as FileSystemEntryReadIssue, h as FileSystemEntrySnapshot, i as FileSystemEntryWatchEvent, j as FileSystemFileRead, k as FileSystemFileSnapshot, l as FileSystemMoveOptions, m as FileSystemOverflowWatchEvent, n as FileSystemProviderCapabilities, o as FileSystemProviderV2, p as FileSystemRemoveOptions, q as FileSystemRemoveResult, r as FileSystemSnapshot, s as FileSystemSnapshotEntry, t as FileSystemSnapshotFile, u as FileSystemSymlinkPolicy, v as FileSystemVersion, w as FileSystemWatchErrorListener, x as FileSystemWatchEvent, y as FileSystemWatchEventOrigin, z as FileSystemWatchEventType, A as FileSystemWatchListener, B as FileSystemWatchOptions, C as FileSystemWatchSubscription, D as FileSystemWriteMode, E as FileSystemWriteOptions, G as FsError, H as FsErrorCode, I as FsErrorContext, J as FsOperation, S as SerializedFsError, K as deserializeFsError, L as fsErrorFromUnknown, M as isQuotaExceededError, N as isSerializedFsError, O as mapDomExceptionToFsErrorCode, P as mapNodeErrorCodeToFsErrorCode, Q as parseFileSystemVersion, R as serializeFsError, T as tryParseFileSystemVersion } from './v2-DwxWjFC0.js';
5
5
  export { MemoryFilePayloadKind, MemoryFileSystemProvider, MemoryFileSystemProviderV2, MemoryFileSystemSnapshot, MemoryFileSystemSnapshotFile, MemoryFileSystemV2CompatibilityFile, MemoryFileSystemV2Replacement, MemoryFileSystemV2ReplacementFile, MemoryFileSystemV2State, MemoryFileSystemV2StateFile } from './filesystem/memory.js';
6
6
  export { IndexedDBContentContainer, IndexedDBFileSystemProvider, IndexedDBFileSystemProviderV2, IndexedDBFileSystemProviderV2Options, IndexedDBLegacyConflictReason, IndexedDBLegacyConflictResolution, IndexedDBLegacyMigrationConflict, IndexedDBLegacyOpaqueDiscardTarget, IndexedDBLegacyOpaqueRecord, IndexedDBLegacyOpaqueRecordSummary, IndexedDBLegacyOpaqueValue, IndexedDBLegacyRecoveryCandidate, IndexedDBLegacyRecoveryKind } from './filesystem/indexeddb.js';
7
7
  export { NativeFileSystemMovePathState, NativeFileSystemMoveRecoveryError, NativeFileSystemMoveRecoveryState, NativeFileSystemProvider, NativeFileSystemProviderV2, isNativeFileSystemSupported, loadDirectoryHandle, openNativeFolder, removeDirectoryHandle, restoreNativeFolder, storeDirectoryHandle } from './filesystem/native.js';
8
8
  export { ElectronFileSystemProvider, ElectronFileSystemProviderV2 } from './filesystem/electron.js';
9
9
  export { DOCUMENT_RECOVERY_JOURNAL_SCHEMA_VERSION, DOCUMENT_RECOVERY_JOURNAL_STORAGE_KEY, DocumentCommitConflictError, DocumentCommitRequest, DocumentCommitResult, DocumentCommitTarget, DocumentConflictStrategy, DocumentExternalChangeResult, DocumentExternalSnapshot, DocumentExternalVersion, DocumentRecoveryAcknowledgement, DocumentRecoveryJournal, DocumentRecoveryJournalOptions, DocumentRecoveryRecord, DocumentRecoveryStorage, DocumentRecoveryWrite, DocumentRecoveryWriteFailure, DocumentRecoveryWriteResult, DocumentSaveReason, DocumentSession, DocumentSessionConflict, DocumentSessionConflictError, DocumentSessionEditScope, DocumentSessionLifecycle, DocumentSessionOptions, DocumentSessionSnapshot, DocumentSessionStatus, DocumentSessionTransition, FileSystemDocumentTargetOptions, createFileSystemDocumentTarget, getDefaultDocumentRecoveryStorage } from './document/index.js';
10
- export { DEFAULT_WORKSPACE_ID, ElectronWorkspaceReconciliation, TransientOrigin, WorkspaceDescriptor, ensureDefaultWorkspace, getTransientWorkspace, getWorkspace, listWorkspaces, parsePersistedWorkspaceList, reconcileElectronWorkspaceDescriptors, registerTransientWorkspace, removeWorkspace, saveWorkspace, touchWorkspace, unregisterTransientWorkspace } from './workspace/index.js';
10
+ export { D as DEFAULT_WORKSPACE_ID, E as ElectronWorkspaceReconciliation, T as TransientOrigin, W as WorkspaceDescriptor, e as ensureDefaultWorkspace, g as getTransientWorkspace, a as getWorkspace, l as listWorkspaces, p as parsePersistedWorkspaceList, r as reconcileElectronWorkspaceDescriptors, b as registerTransientWorkspace, c as removeWorkspace, s as saveWorkspace, t as touchWorkspace, u as unregisterTransientWorkspace } from './reconcile-electron-Bz-iAY_B.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 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
- 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';
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-BJEkIsO1.js';
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-CXdAPR27.js';
15
+ import '@bendyline/squisq/markdown';
15
16
  import '@bendyline/squisq/storage';
16
17
  import '@bendyline/squisq/schemas';
17
- import './host-provider-v2-CV0joXaL.js';
18
+ import './host-provider-v2-DEWMPiRD.js';
package/dist/index.js CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  saveWorkspace,
12
12
  touchWorkspace,
13
13
  unregisterTransientWorkspace
14
- } from "./chunk-QS5WTLUZ.js";
14
+ } from "./chunk-XI2LYBRR.js";
15
15
  import {
16
16
  SHARED_DOCUMENT_LIMITS,
17
17
  createSharedDocumentHash,
@@ -24,10 +24,15 @@ import {
24
24
  createDbkWorkspaceSnapshot,
25
25
  createFileMediaProvider,
26
26
  documentCompanionPath,
27
+ ensureWikiArticle,
28
+ findWikiArticle,
27
29
  moveFileSystemEntry,
28
30
  replaceMemoryWorkspaceFromDbk,
29
- rewriteCompanionReferences
30
- } from "./chunk-7SN7YQL4.js";
31
+ resolveWikiArticlePath,
32
+ rewriteCompanionReferences,
33
+ suggestWikiArticles,
34
+ wikiArticleExists
35
+ } from "./chunk-LJLQYXVL.js";
31
36
  import {
32
37
  MARKDOWN_FILE_EXTENSIONS,
33
38
  SQUISQ_RUNTIME_DIRECTORY_NAME,
@@ -41,12 +46,12 @@ import {
41
46
  IndexedDBContentContainer,
42
47
  IndexedDBFileSystemProvider,
43
48
  IndexedDBFileSystemProviderV2
44
- } from "./chunk-HKOOHM67.js";
49
+ } from "./chunk-Q3OFZWJS.js";
45
50
  import "./chunk-DAPFSEKY.js";
46
51
  import {
47
52
  MemoryFileSystemProvider,
48
53
  MemoryFileSystemProviderV2
49
- } from "./chunk-UDEWLHQI.js";
54
+ } from "./chunk-LDAG5NTQ.js";
50
55
  import {
51
56
  NativeFileSystemMoveRecoveryError,
52
57
  NativeFileSystemProvider,
@@ -57,14 +62,14 @@ import {
57
62
  removeDirectoryHandle,
58
63
  restoreNativeFolder,
59
64
  storeDirectoryHandle
60
- } from "./chunk-6UPO2GE6.js";
65
+ } from "./chunk-K5HRMSXD.js";
61
66
  import "./chunk-DZB666V7.js";
62
- import "./chunk-KQ6756AJ.js";
67
+ import "./chunk-3GSMJ4MQ.js";
63
68
  import {
64
69
  ElectronFileSystemProvider,
65
70
  ElectronFileSystemProviderV2
66
- } from "./chunk-L657M3XG.js";
67
- import "./chunk-STUIS5UZ.js";
71
+ } from "./chunk-PSGAZKWO.js";
72
+ import "./chunk-7LPIGCBG.js";
68
73
  import {
69
74
  AI_WIRE_LIMITS,
70
75
  ELECTRON_FILE_SYSTEM_V2_CAPABILITIES,
@@ -117,7 +122,7 @@ import {
117
122
  parseSpeechTranscribeRequest,
118
123
  parseSpeechTranscript,
119
124
  parseSpeechVoiceInfo
120
- } from "./chunk-NM5KF6YF.js";
125
+ } from "./chunk-KXQDMZFH.js";
121
126
  import "./chunk-245W57QP.js";
122
127
  import {
123
128
  EXPORT_TRANSFER_LIMITS,
@@ -154,14 +159,14 @@ import {
154
159
  isFileSystemMoveRecoveryError,
155
160
  isFileSystemMoveStateError,
156
161
  isFileSystemPartialMoveError
157
- } from "./chunk-IGB2VSRE.js";
162
+ } from "./chunk-FIEMYP2N.js";
158
163
  import {
159
164
  getFileSystemProviderV2,
160
165
  hasFileSystemProviderV2
161
166
  } from "./chunk-XAMILHQP.js";
162
167
  import {
163
168
  decodeUtf8Text
164
- } from "./chunk-M5ZNQGR5.js";
169
+ } from "./chunk-IYKGM3PV.js";
165
170
  import {
166
171
  FsError,
167
172
  WORKSPACE_ROOT,
@@ -179,7 +184,7 @@ import {
179
184
  workspacePathDirname,
180
185
  workspacePathJoin,
181
186
  workspacePathToLegacy
182
- } from "./chunk-AYWKIZLD.js";
187
+ } from "./chunk-UTH3HYCZ.js";
183
188
  export {
184
189
  AI_WIRE_LIMITS,
185
190
  DEFAULT_WORKSPACE_ID,
@@ -229,6 +234,8 @@ export {
229
234
  deserializeFsError,
230
235
  documentCompanionPath,
231
236
  ensureDefaultWorkspace,
237
+ ensureWikiArticle,
238
+ findWikiArticle,
232
239
  fsErrorFromUnknown,
233
240
  getDefaultDocumentRecoveryStorage,
234
241
  getDocBlocksHost,
@@ -310,15 +317,18 @@ export {
310
317
  removeDirectoryHandle,
311
318
  removeWorkspace,
312
319
  replaceMemoryWorkspaceFromDbk,
320
+ resolveWikiArticlePath,
313
321
  restoreNativeFolder,
314
322
  rewriteCompanionReferences,
315
323
  saveWorkspace,
316
324
  serializeFsError,
317
325
  storeDirectoryHandle,
326
+ suggestWikiArticles,
318
327
  touchWorkspace,
319
328
  tryParseFileSystemVersion,
320
329
  tryParseWorkspacePath,
321
330
  unregisterTransientWorkspace,
331
+ wikiArticleExists,
322
332
  workspacePathBasename,
323
333
  workspacePathContains,
324
334
  workspacePathDirname,
package/dist/mcp/index.js CHANGED
@@ -11,8 +11,8 @@ import {
11
11
  parseMcpDiagnostic,
12
12
  parseMcpErrorResult,
13
13
  parsePreviewResult
14
- } from "../chunk-YWYT6K6J.js";
15
- import "../chunk-AYWKIZLD.js";
14
+ } from "../chunk-3LXXRIO2.js";
15
+ import "../chunk-UTH3HYCZ.js";
16
16
  export {
17
17
  DOCBLOCKS_MCP_TOOL_NAMES,
18
18
  DOCBLOCKS_MCP_WIRE_VERSION,
package/dist/mcp/zod.js CHANGED
@@ -5,8 +5,8 @@ import {
5
5
  parseConversionResult,
6
6
  parseInspectionResult,
7
7
  parsePreviewResult
8
- } from "../chunk-YWYT6K6J.js";
9
- import "../chunk-AYWKIZLD.js";
8
+ } from "../chunk-3LXXRIO2.js";
9
+ import "../chunk-UTH3HYCZ.js";
10
10
 
11
11
  // src/mcp/zod.ts
12
12
  import { z } from "zod";