@fnndsc/fond 0.6.2 → 0.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/README.md +1 -3
- package/dist/errorStack.d.ts +0 -6
- package/dist/errorStack.js +0 -9
- package/dist/errorStack.js.map +1 -1
- package/dist/heldWriter.d.ts +130 -0
- package/dist/heldWriter.js +539 -0
- package/dist/heldWriter.js.map +1 -0
- package/dist/homePath.d.ts +60 -0
- package/dist/homePath.js +117 -0
- package/dist/homePath.js.map +1 -0
- package/dist/hostPlace.d.ts +275 -0
- package/dist/hostPlace.js +777 -0
- package/dist/hostPlace.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +24 -0
- package/dist/index.js.map +1 -1
- package/dist/placedPath.d.ts +250 -0
- package/dist/placedPath.js +757 -0
- package/dist/placedPath.js.map +1 -0
- package/dist/publication.d.ts +43 -0
- package/dist/publication.js +55 -0
- package/dist/publication.js.map +1 -0
- package/dist/recordFile.d.ts +61 -0
- package/dist/recordFile.js +258 -0
- package/dist/recordFile.js.map +1 -0
- package/dist/vfs/contract.js +19 -5
- package/dist/vfs/contract.js.map +1 -1
- package/dist/vfs/dispatcher.d.ts +222 -13
- package/dist/vfs/dispatcher.js +483 -73
- package/dist/vfs/dispatcher.js.map +1 -1
- package/dist/vfs/memory.d.ts +107 -3
- package/dist/vfs/memory.js +198 -24
- package/dist/vfs/memory.js.map +1 -1
- package/dist/vfs/naming.d.ts +97 -0
- package/dist/vfs/naming.js +122 -0
- package/dist/vfs/naming.js.map +1 -0
- package/dist/vfs/outcome.d.ts +72 -2
- package/dist/vfs/outcome.js +84 -3
- package/dist/vfs/outcome.js.map +1 -1
- package/dist/vfs/provider.d.ts +191 -6
- package/dist/vfs/render.d.ts +7 -0
- package/dist/vfs/render.js +16 -13
- package/dist/vfs/render.js.map +1 -1
- package/package.json +1 -1
package/dist/vfs/provider.d.ts
CHANGED
|
@@ -47,6 +47,149 @@ export interface VFSItem {
|
|
|
47
47
|
export interface CpOptions {
|
|
48
48
|
/** Recursively copy subdirectories. */
|
|
49
49
|
recursive?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* The destination must be one folder the copy goes into, keeping its
|
|
52
|
+
* name (several sources, a target directory): anything else there is
|
|
53
|
+
* refused and nothing is written (`ENOENT`, `ENOTDIR`, `EPERM`).
|
|
54
|
+
*/
|
|
55
|
+
intoFolder?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* The name the copy takes inside a folder the destination holds: the
|
|
58
|
+
* source's name as the operator wrote it, before any link was followed.
|
|
59
|
+
* One component, which the mount checks; absent, the source's own name.
|
|
60
|
+
*/
|
|
61
|
+
name?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Asked of every path the copy is about to write, before it writes there.
|
|
64
|
+
*
|
|
65
|
+
* @param final - The absolute path about to be written.
|
|
66
|
+
* @returns Done when the write may go there, or why not.
|
|
67
|
+
*/
|
|
68
|
+
finalPath_check?(final: string): VfsOutcome;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* What holds a path, as the mount that owns it proved it: one holder, of a
|
|
72
|
+
* kind (`dir`, `file`, `link`, or a kind the mount lists); more than one,
|
|
73
|
+
* which no destructive act may choose between; or nothing, proved.
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```ts
|
|
77
|
+
* const proof: HolderProof = { kind: 'held', holder: 'dir' };
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
80
|
+
export type HolderProof = HolderHeld | HolderAmbiguous | HolderAbsent;
|
|
81
|
+
/**
|
|
82
|
+
* One thing holds the path.
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* ```ts
|
|
86
|
+
* const held: HolderHeld = { kind: 'held', holder: 'file' };
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
89
|
+
export interface HolderHeld {
|
|
90
|
+
/** The proof's kind. */
|
|
91
|
+
readonly kind: 'held';
|
|
92
|
+
/** What holds it: `dir`, `file`, `link`, or a kind the mount lists. */
|
|
93
|
+
readonly holder: string;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Distinct things hold the path (a folder and a file, or two of one kind).
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* ```ts
|
|
100
|
+
* const twins: HolderAmbiguous = { kind: 'ambiguous', holders: ['dir', 'file'] };
|
|
101
|
+
* ```
|
|
102
|
+
*/
|
|
103
|
+
export interface HolderAmbiguous {
|
|
104
|
+
/** The proof's kind. */
|
|
105
|
+
readonly kind: 'ambiguous';
|
|
106
|
+
/** Their kinds. */
|
|
107
|
+
readonly holders: readonly string[];
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Nothing holds the path, and the look that says so was whole.
|
|
111
|
+
*
|
|
112
|
+
* @example
|
|
113
|
+
* ```ts
|
|
114
|
+
* const free: HolderAbsent = { kind: 'absent' };
|
|
115
|
+
* ```
|
|
116
|
+
*/
|
|
117
|
+
export interface HolderAbsent {
|
|
118
|
+
/** The proof's kind. */
|
|
119
|
+
readonly kind: 'absent';
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* How a proof of what holds a path reads its last part.
|
|
123
|
+
*
|
|
124
|
+
* @example
|
|
125
|
+
* ```ts
|
|
126
|
+
* const forRemoval: HolderProofOptions = { entry: true };
|
|
127
|
+
* ```
|
|
128
|
+
*/
|
|
129
|
+
export interface HolderProofOptions {
|
|
130
|
+
/** The last part names the entry itself (rm, rmdir, a rename's source): a link there is the link. Absent, a link there is followed. */
|
|
131
|
+
readonly entry?: boolean;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* How a rename names what it moves.
|
|
135
|
+
*
|
|
136
|
+
* @example
|
|
137
|
+
* ```ts
|
|
138
|
+
* const naming: RenameOptions = { mvNaming: true, intoFolder: false };
|
|
139
|
+
* ```
|
|
140
|
+
*/
|
|
141
|
+
export interface RenameOptions {
|
|
142
|
+
/**
|
|
143
|
+
* `mv`'s naming: into a destination that holds a folder the entry keeps
|
|
144
|
+
* its own name. Absent, the destination is the entry's new path, as
|
|
145
|
+
* rename(2) takes it.
|
|
146
|
+
*/
|
|
147
|
+
readonly mvNaming?: boolean;
|
|
148
|
+
/** The destination was written with a trailing slash: a folder the entry goes into, keeping its name. */
|
|
149
|
+
readonly intoFolder?: boolean;
|
|
150
|
+
/**
|
|
151
|
+
* Asked of the path the entry will take, once the mount has settled it and before it moves anything.
|
|
152
|
+
*
|
|
153
|
+
* @param final - The absolute path the entry will take.
|
|
154
|
+
* @returns Done when the move may go there, or why not.
|
|
155
|
+
*/
|
|
156
|
+
finalPath_check?(final: string): VfsOutcome;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* How a write treats a file already at its path.
|
|
160
|
+
*
|
|
161
|
+
* @example
|
|
162
|
+
* ```ts
|
|
163
|
+
* const touching: WriteOptions = { existing: 'keep' };
|
|
164
|
+
* ```
|
|
165
|
+
*/
|
|
166
|
+
export interface WriteOptions {
|
|
167
|
+
/**
|
|
168
|
+
* `replace` (the default): the file's content becomes what was given.
|
|
169
|
+
* `keep`: a file already there is left as it is and nothing is written
|
|
170
|
+
* (`touch`); a missing one is made with the content.
|
|
171
|
+
*/
|
|
172
|
+
readonly existing?: 'replace' | 'keep';
|
|
173
|
+
/**
|
|
174
|
+
* The identity what is written was read under (an edit's read). A mount
|
|
175
|
+
* that writes to a backend makes the write on it, asks it immediately
|
|
176
|
+
* before the backend is changed, and refuses the write when it is no
|
|
177
|
+
* longer the session's, or is not one the mount can write under. A mount
|
|
178
|
+
* that keeps its files itself ignores it.
|
|
179
|
+
*/
|
|
180
|
+
readonly identity?: WriteIdentity;
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* The identity a write was read under, as a mount is handed it.
|
|
184
|
+
*
|
|
185
|
+
* @example
|
|
186
|
+
* ```ts
|
|
187
|
+
* const unbound: WriteIdentity = { current_is: async (): Promise<boolean> => false };
|
|
188
|
+
* ```
|
|
189
|
+
*/
|
|
190
|
+
export interface WriteIdentity {
|
|
191
|
+
/** Whether the session's connection is still the one the write was read under. */
|
|
192
|
+
current_is(): Promise<boolean>;
|
|
50
193
|
}
|
|
51
194
|
/** One entry of a subtree a mount answers whole, from what it already holds. */
|
|
52
195
|
export interface VFSSubtreeEntry {
|
|
@@ -71,6 +214,43 @@ export interface VFSSubtree {
|
|
|
71
214
|
export interface VFSProvider {
|
|
72
215
|
/** The path prefix this provider matches (e.g. '/net/pacs', '/bin'); empty for a fallback. */
|
|
73
216
|
prefix: string;
|
|
217
|
+
/**
|
|
218
|
+
* Whether this mount's `cp` copies out of the mount into the fallback's
|
|
219
|
+
* tree (a PACS pull into a feed's folder), as well as within itself, where
|
|
220
|
+
* its own `cp` decides. Absent or false, the mount copies only within
|
|
221
|
+
* itself, and the dispatcher refuses any other pair.
|
|
222
|
+
*/
|
|
223
|
+
readonly copiesOut?: boolean;
|
|
224
|
+
/**
|
|
225
|
+
* Whether this mount's `cp` and `rename` honour `intoFolder`: the
|
|
226
|
+
* destination proved one folder, and anything else refused with nothing
|
|
227
|
+
* written. Absent or false, an act that needs a folder is not asked of it.
|
|
228
|
+
*/
|
|
229
|
+
readonly intoFolderOffered?: boolean;
|
|
230
|
+
/**
|
|
231
|
+
* Proves that nothing stands at a path this mount owns.
|
|
232
|
+
*
|
|
233
|
+
* A mount that can tell "not there" from "could not be read" offers this;
|
|
234
|
+
* true is a proof (the place was looked at, whole, and is empty of that
|
|
235
|
+
* name), and false is anything less: a refusal, an outage, a listing
|
|
236
|
+
* that did not come back complete, or simply not knowing. A mount that
|
|
237
|
+
* does not offer it never proves absence.
|
|
238
|
+
*
|
|
239
|
+
* @param path - A path at or under this mount's prefix.
|
|
240
|
+
* @returns True only when the path is proved absent.
|
|
241
|
+
*/
|
|
242
|
+
absence_prove?(path: string): Promise<boolean>;
|
|
243
|
+
/**
|
|
244
|
+
* Proves what holds a path this mount owns: one holder and its kind,
|
|
245
|
+
* several, or nothing. A look that could not be made whole is a failure
|
|
246
|
+
* (`EIO`), and so is a file met where a folder is needed on the way
|
|
247
|
+
* (`ENOTDIR`); neither is an absence. A mount that does not offer it is
|
|
248
|
+
* asked its own verbs directly.
|
|
249
|
+
*
|
|
250
|
+
* @param path - A path at or under this mount's prefix.
|
|
251
|
+
* @returns The proof, or why none could be made.
|
|
252
|
+
*/
|
|
253
|
+
holder_prove?(path: string): Promise<VfsOutcome<HolderProof>>;
|
|
74
254
|
/**
|
|
75
255
|
* Lists the contents of a directory matching this provider.
|
|
76
256
|
*
|
|
@@ -107,14 +287,16 @@ export interface VFSProvider {
|
|
|
107
287
|
readBinary?(path: string): Promise<VfsOutcome<Buffer>>;
|
|
108
288
|
/**
|
|
109
289
|
* Writes a file whole: its content after the write is exactly what was
|
|
110
|
-
* given, whether or not it existed before
|
|
111
|
-
*
|
|
290
|
+
* given, whether or not it existed before; or, asked to keep what is
|
|
291
|
+
* there, a file already at the path is left as it is. Absent, the mount
|
|
292
|
+
* holds no writable files.
|
|
112
293
|
*
|
|
113
294
|
* @param path - The absolute path of the file.
|
|
114
295
|
* @param content - The new content, whole.
|
|
296
|
+
* @param options - What becomes of a file already there ({@link WriteOptions}).
|
|
115
297
|
* @returns Done, or why not (`ENOENT` for a missing folder, `EISDIR`, ...).
|
|
116
298
|
*/
|
|
117
|
-
write?(path: string, content: string | Buffer): Promise<VfsOutcome>;
|
|
299
|
+
write?(path: string, content: string | Buffer, options?: WriteOptions): Promise<VfsOutcome>;
|
|
118
300
|
/**
|
|
119
301
|
* Makes one folder; its parent must exist. Absent, the mount makes none.
|
|
120
302
|
*
|
|
@@ -128,7 +310,8 @@ export interface VFSProvider {
|
|
|
128
310
|
* turn.
|
|
129
311
|
*
|
|
130
312
|
* @param path - The absolute path of the folder.
|
|
131
|
-
* @returns Done, or why not (`EEXIST` when something is already there
|
|
313
|
+
* @returns Done, or why not (`EEXIST` when something is already there,
|
|
314
|
+
* with what holds it when the mount proved that, `vfs_failHeld`).
|
|
132
315
|
*/
|
|
133
316
|
mkdirTree?(path: string): Promise<VfsOutcome>;
|
|
134
317
|
/**
|
|
@@ -142,10 +325,12 @@ export interface VFSProvider {
|
|
|
142
325
|
* Renames an entry within this mount (`mv`).
|
|
143
326
|
*
|
|
144
327
|
* @param src - The absolute path now.
|
|
145
|
-
* @param dest - The absolute path it takes
|
|
328
|
+
* @param dest - The absolute path it takes, or, with `mvNaming`, the
|
|
329
|
+
* folder it goes into when that path holds one.
|
|
330
|
+
* @param options - How the entry is named ({@link RenameOptions}).
|
|
146
331
|
* @returns Done, or why not (`ENOENT`, `EEXIST` where the mount cannot replace, ...).
|
|
147
332
|
*/
|
|
148
|
-
rename?(src: string, dest: string): Promise<VfsOutcome>;
|
|
333
|
+
rename?(src: string, dest: string, options?: RenameOptions): Promise<VfsOutcome>;
|
|
149
334
|
/**
|
|
150
335
|
* Removes a file or a link (`rm`); a folder is refused with `EISDIR`.
|
|
151
336
|
*
|
package/dist/vfs/render.d.ts
CHANGED
|
@@ -19,6 +19,13 @@ export interface ListingLook {
|
|
|
19
19
|
readonly kinds: ReadonlyArray<ItemKindLook>;
|
|
20
20
|
/** Colours one name by its type. */
|
|
21
21
|
readonly name_colorize: (name: string, type: string) => string;
|
|
22
|
+
/**
|
|
23
|
+
* The columns a coloured name takes. The look that colours a name measures
|
|
24
|
+
* it: fond reads no escape sequence itself (the grammar is menu's, and fond
|
|
25
|
+
* depends on no `@fnndsc` package), so a look whose names carry escapes
|
|
26
|
+
* measures them with menu's `ansi_width`.
|
|
27
|
+
*/
|
|
28
|
+
readonly name_width: (coloured: string) => number;
|
|
22
29
|
}
|
|
23
30
|
/** The kinds every listing knows. */
|
|
24
31
|
export declare const LISTING_CORE_KINDS: ReadonlyArray<ItemKindLook>;
|
package/dist/vfs/render.js
CHANGED
|
@@ -32,6 +32,7 @@ exports.LISTING_CORE_KINDS = [
|
|
|
32
32
|
exports.LISTING_LOOK_PLAIN = {
|
|
33
33
|
kinds: exports.LISTING_CORE_KINDS,
|
|
34
34
|
name_colorize: (name) => name,
|
|
35
|
+
name_width: (coloured) => coloured.length,
|
|
35
36
|
};
|
|
36
37
|
/** The narrowest the long view's owner column is. */
|
|
37
38
|
const OWNER_WIDTH_MIN = 10;
|
|
@@ -125,13 +126,18 @@ function name_format(item, look) {
|
|
|
125
126
|
return kind_find(look, item.type)?.container === true ? base + chalk_1.default.cyan.bold('/') : base;
|
|
126
127
|
}
|
|
127
128
|
/**
|
|
128
|
-
*
|
|
129
|
+
* The columns one item's name takes as a listing shows it: measured as the
|
|
130
|
+
* look coloured it, plus the `/` a container ends in and the version after
|
|
131
|
+
* it, which fond adds and counts itself.
|
|
129
132
|
*
|
|
130
|
-
* @param
|
|
131
|
-
* @
|
|
133
|
+
* @param item - The item.
|
|
134
|
+
* @param look - The listing's look.
|
|
135
|
+
* @returns The columns.
|
|
132
136
|
*/
|
|
133
|
-
function
|
|
134
|
-
|
|
137
|
+
function nameWidth_measure(item, look) {
|
|
138
|
+
const container = kind_find(look, item.type)?.container === true ? 1 : 0;
|
|
139
|
+
const version = item.version ? item.version.length + 3 : 0;
|
|
140
|
+
return look.name_width(look.name_colorize(item.name, item.type)) + container + version;
|
|
135
141
|
}
|
|
136
142
|
/**
|
|
137
143
|
* Renders items as `ls` does: names in as many columns as the terminal holds.
|
|
@@ -155,15 +161,15 @@ function grid_render(items, options = {}, look = exports.LISTING_LOOK_PLAIN) {
|
|
|
155
161
|
}
|
|
156
162
|
const termWidth = process.stdout.columns || 80;
|
|
157
163
|
const padding = 2;
|
|
158
|
-
const
|
|
164
|
+
const widths = items.map((item) => nameWidth_measure(item, look));
|
|
165
|
+
const maxLen = Math.max(...widths);
|
|
159
166
|
// Cap colWidth at termWidth so padding never causes a terminal line wrap.
|
|
160
167
|
const colWidth = Math.min(maxLen + padding, termWidth);
|
|
161
168
|
const cols = Math.max(1, Math.floor(termWidth / colWidth));
|
|
162
169
|
let output = '';
|
|
163
170
|
for (let i = 0; i < formattedItems.length; i++) {
|
|
164
171
|
const item = formattedItems[i];
|
|
165
|
-
const
|
|
166
|
-
const padLen = Math.max(0, colWidth - visibleLen);
|
|
172
|
+
const padLen = Math.max(0, colWidth - (widths[i] ?? 0));
|
|
167
173
|
output += item + ' '.repeat(padLen);
|
|
168
174
|
if ((i + 1) % cols === 0) {
|
|
169
175
|
output += '\n';
|
|
@@ -184,10 +190,7 @@ function long_render(items, options = {}, look = exports.LISTING_LOOK_PLAIN) {
|
|
|
184
190
|
if (items.length === 0)
|
|
185
191
|
return '';
|
|
186
192
|
// Calculate max name width for alignment
|
|
187
|
-
const maxNameWidth = Math.max(...items.map((item) =>
|
|
188
|
-
const visibleLen = string_lengthVisible(name_format(item, look));
|
|
189
|
-
return item.version ? visibleLen + item.version.length + 3 : visibleLen;
|
|
190
|
-
}));
|
|
193
|
+
const maxNameWidth = Math.max(...items.map((item) => nameWidth_measure(item, look)));
|
|
191
194
|
// Owners pad to the widest in the listing, never narrower than ten, so a
|
|
192
195
|
// long owner (a cloud user who is an e-mail address) keeps the columns aligned.
|
|
193
196
|
const ownerWidth = Math.max(OWNER_WIDTH_MIN, ...items.map((item) => item.owner.length));
|
|
@@ -203,7 +206,7 @@ function long_render(items, options = {}, look = exports.LISTING_LOOK_PLAIN) {
|
|
|
203
206
|
if (item.version)
|
|
204
207
|
nameStr += ` (${item.version})`;
|
|
205
208
|
// Pad name to max width for alignment
|
|
206
|
-
const nameVisibleLen =
|
|
209
|
+
const nameVisibleLen = nameWidth_measure(item, look);
|
|
207
210
|
const namePadding = ' '.repeat(Math.max(0, maxNameWidth - nameVisibleLen));
|
|
208
211
|
let line = `${typeChar} ${owner} ${sizeStr} ${dateStr} ${nameStr}${namePadding}`;
|
|
209
212
|
if (item.title) {
|
package/dist/vfs/render.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render.js","sourceRoot":"","sources":["../../src/vfs/render.ts"],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"render.js","sourceRoot":"","s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