@bendyline/docblocks 2.6.1 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD_PARTY_NOTICES.txt +33 -33
- package/dist/capabilities-CdQAc745.d.ts +1233 -0
- package/dist/catalog-BQK05tne.d.ts +122 -0
- package/dist/chunk-245W57QP.js +31 -0
- package/dist/{chunk-2WDJ27EH.js → chunk-46AGYHDY.js} +8 -0
- package/dist/{chunk-4437YWLE.js → chunk-6UPO2GE6.js} +4 -2
- package/dist/{chunk-UMWCTEXW.js → chunk-7SN7YQL4.js} +211 -40
- package/dist/{chunk-OQCPBOQA.js → chunk-DAPFSEKY.js} +35 -0
- package/dist/{chunk-M62ZGJ5I.js → chunk-HABG2JM3.js} +0 -17
- package/dist/{chunk-YM7O3PWO.js → chunk-HKOOHM67.js} +20 -12
- package/dist/chunk-IDYE73TU.js +77 -0
- package/dist/{chunk-KLQKU74Q.js → chunk-IGB2VSRE.js} +124 -330
- package/dist/{chunk-BVY7GGNV.js → chunk-L6PRMR7T.js} +137 -95
- package/dist/chunk-LPIJ6HKL.js +19 -0
- package/dist/{chunk-SJBB5OD7.js → chunk-QS5WTLUZ.js} +10 -8
- package/dist/chunk-R2JX5N3F.js +382 -0
- package/dist/{chunk-ZO7G53QP.js → chunk-UDEWLHQI.js} +4 -2
- package/dist/chunk-UK7R3RC7.js +514 -0
- package/dist/chunk-XTNWCNSK.js +464 -0
- package/dist/chunk-YHSFRPBS.js +42 -0
- package/dist/chunk-YNUQG4GF.js +1173 -0
- package/dist/document/index.d.ts +31 -1
- package/dist/document/index.js +7 -6
- package/dist/filesystem/electron.d.ts +8 -34
- package/dist/filesystem/electron.js +7 -4
- package/dist/filesystem/host.d.ts +28 -0
- package/dist/filesystem/host.js +103 -0
- package/dist/filesystem/index.d.ts +52 -6
- package/dist/filesystem/index.js +36 -15
- package/dist/filesystem/indexeddb.d.ts +8 -1
- package/dist/filesystem/indexeddb.js +7 -6
- package/dist/filesystem/memory.d.ts +2 -1
- package/dist/filesystem/memory.js +3 -2
- package/dist/filesystem/native.d.ts +2 -1
- package/dist/filesystem/native.js +3 -2
- package/dist/filesystem-v2-C8AdSXUN.d.ts +74 -0
- package/dist/host/index.d.ts +127 -5
- package/dist/host/index.js +100 -4
- package/dist/host/mobile.d.ts +389 -0
- package/dist/host/mobile.js +315 -0
- package/dist/host-provider-v2-CyLTRKJF.d.ts +51 -0
- package/dist/index.d.ts +8 -5
- package/dist/index.js +153 -34
- package/dist/mcp/index.d.ts +2 -2
- package/dist/mcp/zod.d.ts +23 -1
- package/dist/mcp/zod.js +1 -0
- package/dist/settings-HrrCikVX.d.ts +170 -0
- package/dist/types-BvDnr3YU.d.ts +88 -0
- package/dist/{types-Oy9U5FST.d.ts → types-d0yvHUJz.d.ts} +6 -0
- package/dist/{types-Bb3yccTH.d.ts → v2-BVnZZyd4.d.ts} +1 -86
- package/dist/vscode/index.d.ts +43 -1
- package/dist/vscode/index.js +67 -1
- package/dist/workspace/index.d.ts +10 -6
- package/dist/workspace/index.js +4 -2
- package/dist/workspace-index/index.d.ts +240 -0
- package/dist/workspace-index/index.js +1287 -0
- package/dist/workspace-settings/index.d.ts +301 -0
- package/dist/workspace-settings/index.js +820 -0
- package/package.json +22 -2
- package/dist/chunk-6XHOOBYF.js +0 -36
- package/dist/chunk-QI6YKTQV.js +0 -110
- package/dist/types-DBYraXxE.d.ts +0 -557
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bendyline/docblocks",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
4
4
|
"description": "Core data structures and filesystem abstractions for DocBlocks",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Bendyline",
|
|
@@ -75,6 +75,16 @@
|
|
|
75
75
|
"import": "./dist/workspace/index.js",
|
|
76
76
|
"default": "./dist/workspace/index.js"
|
|
77
77
|
},
|
|
78
|
+
"./workspace-settings": {
|
|
79
|
+
"types": "./dist/workspace-settings/index.d.ts",
|
|
80
|
+
"import": "./dist/workspace-settings/index.js",
|
|
81
|
+
"default": "./dist/workspace-settings/index.js"
|
|
82
|
+
},
|
|
83
|
+
"./workspace-index": {
|
|
84
|
+
"types": "./dist/workspace-index/index.d.ts",
|
|
85
|
+
"import": "./dist/workspace-index/index.js",
|
|
86
|
+
"default": "./dist/workspace-index/index.js"
|
|
87
|
+
},
|
|
78
88
|
"./host": {
|
|
79
89
|
"types": "./dist/host/index.d.ts",
|
|
80
90
|
"import": "./dist/host/index.js",
|
|
@@ -99,6 +109,16 @@
|
|
|
99
109
|
"types": "./dist/mcp/zod.d.ts",
|
|
100
110
|
"import": "./dist/mcp/zod.js",
|
|
101
111
|
"default": "./dist/mcp/zod.js"
|
|
112
|
+
},
|
|
113
|
+
"./filesystem/host": {
|
|
114
|
+
"types": "./dist/filesystem/host.d.ts",
|
|
115
|
+
"import": "./dist/filesystem/host.js",
|
|
116
|
+
"default": "./dist/filesystem/host.js"
|
|
117
|
+
},
|
|
118
|
+
"./host/mobile": {
|
|
119
|
+
"types": "./dist/host/mobile.d.ts",
|
|
120
|
+
"import": "./dist/host/mobile.js",
|
|
121
|
+
"default": "./dist/host/mobile.js"
|
|
102
122
|
}
|
|
103
123
|
},
|
|
104
124
|
"scripts": {
|
|
@@ -106,7 +126,7 @@
|
|
|
106
126
|
"typecheck": "tsc --noEmit"
|
|
107
127
|
},
|
|
108
128
|
"dependencies": {
|
|
109
|
-
"@bendyline/squisq": "2.11.
|
|
129
|
+
"@bendyline/squisq": "2.11.19",
|
|
110
130
|
"zod": "3.25.76"
|
|
111
131
|
}
|
|
112
132
|
}
|
package/dist/chunk-6XHOOBYF.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
// src/host/filesystem-v2.ts
|
|
2
|
-
var ELECTRON_FILE_SYSTEM_V2_CAPABILITIES = Object.freeze({
|
|
3
|
-
writeAtomicity: "process",
|
|
4
|
-
moveAtomicity: "process",
|
|
5
|
-
snapshotAtomicity: "process",
|
|
6
|
-
conditionalWrite: "process",
|
|
7
|
-
recursiveRemove: true,
|
|
8
|
-
watch: true,
|
|
9
|
-
caseSensitivity: "platform",
|
|
10
|
-
symlinkPolicy: "follow-contained",
|
|
11
|
-
durability: "best-effort"
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
// src/host/index.ts
|
|
15
|
-
function isElectronHost() {
|
|
16
|
-
if (typeof globalThis === "undefined") return false;
|
|
17
|
-
const host = globalThis.docBlocksHost;
|
|
18
|
-
return typeof host === "object" && host !== null && typeof host.fs === "object" && host.fs !== null;
|
|
19
|
-
}
|
|
20
|
-
function getDocBlocksHost() {
|
|
21
|
-
const host = globalThis.docBlocksHost;
|
|
22
|
-
if (!host) {
|
|
23
|
-
throw new Error("docBlocksHost is not available \u2014 not running under Electron?");
|
|
24
|
-
}
|
|
25
|
-
return host;
|
|
26
|
-
}
|
|
27
|
-
function maybeGetDocBlocksHost() {
|
|
28
|
-
return globalThis.docBlocksHost ?? null;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export {
|
|
32
|
-
ELECTRON_FILE_SYSTEM_V2_CAPABILITIES,
|
|
33
|
-
isElectronHost,
|
|
34
|
-
getDocBlocksHost,
|
|
35
|
-
maybeGetDocBlocksHost
|
|
36
|
-
};
|
package/dist/chunk-QI6YKTQV.js
DELETED
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
parseWorkspacePath
|
|
3
|
-
} from "./chunk-AYWKIZLD.js";
|
|
4
|
-
import {
|
|
5
|
-
getFileSystemProviderV2
|
|
6
|
-
} from "./chunk-XAMILHQP.js";
|
|
7
|
-
|
|
8
|
-
// src/filesystem/move-error.ts
|
|
9
|
-
function locationFromPresence(source, destination) {
|
|
10
|
-
if (source === "unknown" || destination === "unknown") return "unknown";
|
|
11
|
-
if (source === "present" && destination === "present") return "both";
|
|
12
|
-
if (source === "present") return "source";
|
|
13
|
-
if (destination === "present") return "destination";
|
|
14
|
-
return "neither";
|
|
15
|
-
}
|
|
16
|
-
var FileSystemMoveRecoveryError = class extends Error {
|
|
17
|
-
constructor(sourcePath, destinationPath, state, moveError) {
|
|
18
|
-
super(
|
|
19
|
-
`The move did not restore one authoritative path. Entry location: ${locationFromPresence(
|
|
20
|
-
state.source,
|
|
21
|
-
state.destination
|
|
22
|
-
)}.`
|
|
23
|
-
);
|
|
24
|
-
this.sourcePath = sourcePath;
|
|
25
|
-
this.destinationPath = destinationPath;
|
|
26
|
-
this.state = state;
|
|
27
|
-
this.moveError = moveError;
|
|
28
|
-
this.code = "partial-move";
|
|
29
|
-
this.name = "FileSystemMoveRecoveryError";
|
|
30
|
-
}
|
|
31
|
-
get location() {
|
|
32
|
-
return locationFromPresence(this.state.source, this.state.destination);
|
|
33
|
-
}
|
|
34
|
-
/** Alias used by DocumentSession's document-retarget recovery protocol. */
|
|
35
|
-
get documentLocation() {
|
|
36
|
-
return this.location;
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
var FileSystemPartialMoveError = class extends Error {
|
|
40
|
-
constructor(sourcePath, destinationPath, companionSourcePath, companionDestinationPath, state, moveError, rollbackError) {
|
|
41
|
-
super(
|
|
42
|
-
`The document move could not be rolled back. Document location: ${locationFromPresence(
|
|
43
|
-
state.source,
|
|
44
|
-
state.destination
|
|
45
|
-
)}; companion location: ${locationFromPresence(
|
|
46
|
-
state.companionSource,
|
|
47
|
-
state.companionDestination
|
|
48
|
-
)}.`
|
|
49
|
-
);
|
|
50
|
-
this.sourcePath = sourcePath;
|
|
51
|
-
this.destinationPath = destinationPath;
|
|
52
|
-
this.companionSourcePath = companionSourcePath;
|
|
53
|
-
this.companionDestinationPath = companionDestinationPath;
|
|
54
|
-
this.state = state;
|
|
55
|
-
this.moveError = moveError;
|
|
56
|
-
this.rollbackError = rollbackError;
|
|
57
|
-
this.code = "partial-move";
|
|
58
|
-
this.name = "FileSystemPartialMoveError";
|
|
59
|
-
}
|
|
60
|
-
get documentLocation() {
|
|
61
|
-
return locationFromPresence(this.state.source, this.state.destination);
|
|
62
|
-
}
|
|
63
|
-
get companionLocation() {
|
|
64
|
-
return locationFromPresence(this.state.companionSource, this.state.companionDestination);
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
function isFileSystemPartialMoveError(error) {
|
|
68
|
-
return error instanceof FileSystemPartialMoveError;
|
|
69
|
-
}
|
|
70
|
-
function isFileSystemMoveRecoveryError(error) {
|
|
71
|
-
return error instanceof FileSystemMoveRecoveryError;
|
|
72
|
-
}
|
|
73
|
-
function isFileSystemMoveStateError(error) {
|
|
74
|
-
return isFileSystemMoveRecoveryError(error) || isFileSystemPartialMoveError(error);
|
|
75
|
-
}
|
|
76
|
-
async function probePath(provider, path) {
|
|
77
|
-
try {
|
|
78
|
-
const providerV2 = getFileSystemProviderV2(provider);
|
|
79
|
-
const present = providerV2 ? await providerV2.stat(parseWorkspacePath(path)) !== null : await provider.exists(path);
|
|
80
|
-
return present ? "present" : "missing";
|
|
81
|
-
} catch {
|
|
82
|
-
return "unknown";
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
async function describePartialMove(provider, sourcePath, destinationPath, companionSourcePath, companionDestinationPath) {
|
|
86
|
-
const [source, destination, companionSource, companionDestination] = await Promise.all([
|
|
87
|
-
probePath(provider, sourcePath),
|
|
88
|
-
probePath(provider, destinationPath),
|
|
89
|
-
probePath(provider, companionSourcePath),
|
|
90
|
-
probePath(provider, companionDestinationPath)
|
|
91
|
-
]);
|
|
92
|
-
return { source, destination, companionSource, companionDestination };
|
|
93
|
-
}
|
|
94
|
-
async function describeEntryMove(provider, sourcePath, destinationPath) {
|
|
95
|
-
const [source, destination] = await Promise.all([
|
|
96
|
-
probePath(provider, sourcePath),
|
|
97
|
-
probePath(provider, destinationPath)
|
|
98
|
-
]);
|
|
99
|
-
return { source, destination };
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
export {
|
|
103
|
-
FileSystemMoveRecoveryError,
|
|
104
|
-
FileSystemPartialMoveError,
|
|
105
|
-
isFileSystemPartialMoveError,
|
|
106
|
-
isFileSystemMoveRecoveryError,
|
|
107
|
-
isFileSystemMoveStateError,
|
|
108
|
-
describePartialMove,
|
|
109
|
-
describeEntryMove
|
|
110
|
-
};
|