@nodetool-ai/runtime-core 0.8.13 → 0.8.14
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/dist/.nodetool-build-stamp +1 -1
- package/dist/model-interfaces.d.ts +7 -0
- package/dist/model-interfaces.d.ts.map +1 -1
- package/dist/prefixed-storage-adapter.d.ts +6 -1
- package/dist/prefixed-storage-adapter.d.ts.map +1 -1
- package/dist/prefixed-storage-adapter.js +10 -0
- package/dist/prefixed-storage-adapter.js.map +1 -1
- package/dist/storage-workspace.d.ts +155 -9
- package/dist/storage-workspace.d.ts.map +1 -1
- package/dist/storage-workspace.js +737 -57
- package/dist/storage-workspace.js.map +1 -1
- package/dist/workspace.d.ts +184 -2
- package/dist/workspace.d.ts.map +1 -1
- package/dist/workspace.js +136 -0
- package/dist/workspace.js.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
2026-11-
|
|
1
|
+
2026-11-19T19:42:35.913Z
|
|
@@ -28,6 +28,13 @@ export interface AssetCreateParamsLike {
|
|
|
28
28
|
nodeId?: string | null;
|
|
29
29
|
/** Stored on the asset row; the generation seam stamps `generation_id`. */
|
|
30
30
|
metadata?: Record<string, unknown> | null;
|
|
31
|
+
/**
|
|
32
|
+
* Exact path in the run's project folder, when the caller named the file
|
|
33
|
+
* (an agent's `output_file`, a Save-file node's name). The file is written
|
|
34
|
+
* there and the row points at it. Unset, the host picks a free name in
|
|
35
|
+
* `Generated/`.
|
|
36
|
+
*/
|
|
37
|
+
path?: string | null;
|
|
31
38
|
}
|
|
32
39
|
/** A non-folder asset surfaced when listing a folder's contents. */
|
|
33
40
|
export interface FolderAssetEntry {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-interfaces.d.ts","sourceRoot":"","sources":["../src/model-interfaces.ts"],"names":[],"mappings":"AACA;;;GAGG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,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,CAAC;IAC7E;;;;OAIG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,OAAO,CAAC,kBAAkB,CAAC,CAAC;CACxE;AAED,iFAAiF;AACjF,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,UAAU,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,gFAAgF;IAChF,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,oEAAoE;IACpE,MAAM,CAAC,EAAE,YAAY,CAAC;CACvB;AAED;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,MAAM,gCAAgC,IAC7E,IAAI,CACF,UAAU,CAAC,WAAW,CAAC,gCAAgC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAC/D,QAAQ,CACT,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type StorageAdapter, type StorageListResult, type StorageStat } from "@nodetool-ai/storage";
|
|
1
|
+
import { type StorageAdapter, type StorageListResult, type StorageStat, type StoreIfAbsentOptions } from "@nodetool-ai/storage";
|
|
2
2
|
/**
|
|
3
3
|
* A `StorageAdapter` that carves a key prefix out of another one.
|
|
4
4
|
*
|
|
@@ -20,6 +20,11 @@ export declare class PrefixedStorageAdapter implements StorageAdapter {
|
|
|
20
20
|
/** Strip the prefix from a key the inner adapter reported. */
|
|
21
21
|
private unscope;
|
|
22
22
|
store(key: string, data: Uint8Array, contentType?: string): Promise<string>;
|
|
23
|
+
/**
|
|
24
|
+
* Exclusive create under the prefix. Null when the key is taken, and also
|
|
25
|
+
* the inner adapter's own answer when it has no such operation.
|
|
26
|
+
*/
|
|
27
|
+
storeIfAbsent(key: string, data: Uint8Array, contentType?: string, options?: StoreIfAbsentOptions): Promise<string | null>;
|
|
23
28
|
retrieve(uri: string): Promise<Uint8Array | null>;
|
|
24
29
|
exists(uri: string): Promise<boolean>;
|
|
25
30
|
uriForKey(key: string): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prefixed-storage-adapter.d.ts","sourceRoot":"","sources":["../src/prefixed-storage-adapter.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,WAAW,
|
|
1
|
+
{"version":3,"file":"prefixed-storage-adapter.d.ts","sourceRoot":"","sources":["../src/prefixed-storage-adapter.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,oBAAoB,EAC1B,MAAM,sBAAsB,CAAC;AAE9B;;;;;;;;;;;GAWG;AACH,qBAAa,sBAAuB,YAAW,cAAc;IAKzD,OAAO,CAAC,QAAQ,CAAC,KAAK;IAJxB,gDAAgD;IAChD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAExB,YACmB,KAAK,EAAE,cAAc,EACtC,MAAM,EAAE,MAAM,EAGf;IAED,OAAO,CAAC,KAAK;IAIb,8DAA8D;IAC9D,OAAO,CAAC,OAAO;IAKf,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAE1E;IAED;;;OAGG;IACH,aAAa,CACX,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,UAAU,EAChB,WAAW,CAAC,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,oBAAoB,GAC7B,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAYxB;IAED,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC,CAEhD;IAED,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAEpC;IAED,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE7B;IAEK,IAAI,CACR,MAAM,EAAE,MAAM,EACd,IAAI,GAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAO,GAChC,OAAO,CAAC,iBAAiB,CAAC,CAe5B;IAED,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAEpC;IAEK,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,CAKnD;IAED,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAE7C;CACF"}
|
|
@@ -30,6 +30,16 @@ export class PrefixedStorageAdapter {
|
|
|
30
30
|
store(key, data, contentType) {
|
|
31
31
|
return this.inner.store(this.scope(key), data, contentType);
|
|
32
32
|
}
|
|
33
|
+
/**
|
|
34
|
+
* Exclusive create under the prefix. Null when the key is taken, and also
|
|
35
|
+
* the inner adapter's own answer when it has no such operation.
|
|
36
|
+
*/
|
|
37
|
+
storeIfAbsent(key, data, contentType, options) {
|
|
38
|
+
if (!this.inner.storeIfAbsent) {
|
|
39
|
+
return Promise.reject(new Error("The storage behind this prefix has no exclusive create"));
|
|
40
|
+
}
|
|
41
|
+
return this.inner.storeIfAbsent(this.scope(key), data, contentType, options);
|
|
42
|
+
}
|
|
33
43
|
retrieve(uri) {
|
|
34
44
|
return this.inner.retrieve(uri);
|
|
35
45
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prefixed-storage-adapter.js","sourceRoot":"","sources":["../src/prefixed-storage-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"prefixed-storage-adapter.js","sourceRoot":"","sources":["../src/prefixed-storage-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAQxE;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,sBAAsB;IAKd,KAAK;IAJxB,gDAAgD;IACvC,MAAM,CAAS;IAExB,YACmB,KAAqB,EACtC,MAAc;qBADG,KAAK;QAGtB,IAAI,CAAC,MAAM,GAAG,mBAAmB,CAAC,MAAM,CAAC,CAAC;IAC5C,CAAC;IAEO,KAAK,CAAC,GAAW;QACvB,OAAO,GAAG,IAAI,CAAC,MAAM,IAAI,mBAAmB,CAAC,GAAG,CAAC,EAAE,CAAC;IACtD,CAAC;IAED,8DAA8D;IACtD,OAAO,CAAC,GAAW;QACzB,MAAM,IAAI,GAAG,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC;QAC/B,OAAO,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAC9D,CAAC;IAED,KAAK,CAAC,GAAW,EAAE,IAAgB,EAAE,WAAoB;QACvD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC;IAC9D,CAAC;IAED;;;OAGG;IACH,aAAa,CACX,GAAW,EACX,IAAgB,EAChB,WAAoB,EACpB,OAA8B;QAE9B,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE,CAAC;YAC9B,OAAO,OAAO,CAAC,MAAM,CACnB,IAAI,KAAK,CAAC,wDAAwD,CAAC,CACpE,CAAC;QACJ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AAE,CAClD,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CACjD;SACF,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,GAAW;QAChB,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IAChC,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,GAAW;QACpB,MAAM,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACtC,IAAI,CAAC,EAAE;YAAE,OAAO,IAAI,CAAC;QACrB,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;QACjC,OAAO,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACnC,CAAC;IAED,SAAS,CAAC,GAAW;QACnB,OAAO,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IACnC,CAAC;CACF"}
|
|
@@ -6,30 +6,161 @@
|
|
|
6
6
|
* two deployments on the same code path instead of on two that drift.
|
|
7
7
|
*/
|
|
8
8
|
import type { StorageAdapter } from "@nodetool-ai/storage";
|
|
9
|
-
import { type Workspace, type WorkspaceEntry, type WorkspaceStat } from "./workspace.js";
|
|
9
|
+
import { type Workspace, type WorkspaceEntry, type WorkspaceStat, type WriteNewOptions } from "./workspace.js";
|
|
10
|
+
/**
|
|
11
|
+
* Where `target` sits in `root` as written, before any link is resolved: a
|
|
12
|
+
* key, "" for the root itself, null when it is outside. Windows spellings of
|
|
13
|
+
* a drive path are read as the drive path. Exported for its tests, which pass
|
|
14
|
+
* `path.win32` on a POSIX host.
|
|
15
|
+
*/
|
|
16
|
+
export declare function lexicalKeyWithin(root: string, target: string, path: Pick<typeof import("node:path"), "sep" | "resolve" | "relative" | "isAbsolute">, hostname: string): string | null;
|
|
17
|
+
/**
|
|
18
|
+
* How long a workspace keeps what it learned about a directory being another
|
|
19
|
+
* folder, in ms. Long enough that a run or a scan asks once per directory,
|
|
20
|
+
* short enough that a workspace held for a long time, such as the one of a
|
|
21
|
+
* chat thread, soon sees a project folder created inside it.
|
|
22
|
+
*/
|
|
23
|
+
export declare const NESTED_FOLDER_MEMORY_MS = 10000;
|
|
24
|
+
/** What {@link assertLocalPathIsOwn} is asked about. */
|
|
25
|
+
export interface LocalPathUse {
|
|
26
|
+
/**
|
|
27
|
+
* The path will be created or written. Inside the folder, a link that
|
|
28
|
+
* leads out of it, or that the check cannot follow, is then refused as
|
|
29
|
+
* well: a link planted in a copied folder must not send a write to
|
|
30
|
+
* `~/.bashrc`. A read through such a link is the caller's choice.
|
|
31
|
+
*/
|
|
32
|
+
write?: boolean;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Refuse the real path `target` when it is the folder of another project
|
|
36
|
+
* inside `workspace`, or lies in one, or is in the reserved directory. `root`
|
|
37
|
+
* is the real directory the workspace's keys are relative to: its folder, or
|
|
38
|
+
* the scratch directory its files are staged in. `shown` is the path the
|
|
39
|
+
* refusal names.
|
|
40
|
+
*
|
|
41
|
+
* For code that opens a real path itself instead of calling the workspace: a
|
|
42
|
+
* host binary, libav, `node:fs`. The rule is the workspace's own, asked
|
|
43
|
+
* through {@link NestedFolders}, so a folder known by its `.nodetool/`
|
|
44
|
+
* directory and one the host names are refused alike. A path elsewhere on
|
|
45
|
+
* the host passes: whether it may be opened at all is the caller's check.
|
|
46
|
+
*
|
|
47
|
+
* `target` must be the exact path that will be opened. A caller that reads
|
|
48
|
+
* its input more than one way (`workspace/x`, `x`, `C:/x`) resolves it once
|
|
49
|
+
* and hands that one result both here and to whatever opens it. The path is
|
|
50
|
+
* judged as written and as it really is, so another spelling of a path in
|
|
51
|
+
* the folder is refused as well: a link inside or outside the folder,
|
|
52
|
+
* `/proc/self/root/...`, a dangling link a create would follow, a macOS
|
|
53
|
+
* firmlink, or a Windows long path or administrative share.
|
|
54
|
+
*
|
|
55
|
+
* The check runs before the path is opened, so a link swapped in afterwards
|
|
56
|
+
* is not seen. A writer that must close that gap opens without following a
|
|
57
|
+
* link and checks the file it opened, as the save nodes do.
|
|
58
|
+
*/
|
|
59
|
+
export declare function assertLocalPathIsOwn(workspace: Pick<Workspace, "isNestedFolder">, root: string, target: string, shown?: string, use?: LocalPathUse): Promise<void>;
|
|
60
|
+
/**
|
|
61
|
+
* Whether the real path `root`/`key` is, or lies in, a directory that holds
|
|
62
|
+
* a reserved directory: the folder of another project inside the workspace
|
|
63
|
+
* rooted at `root`. The root itself never counts.
|
|
64
|
+
*
|
|
65
|
+
* A floor under {@link assertLocalPathIsOwn} for a path that is resolved
|
|
66
|
+
* synchronously, or by a run that has a directory and no workspace. It reads
|
|
67
|
+
* the mark on disk only. A folder the host names without that mark, such as
|
|
68
|
+
* a game's workspace, is known to the workspace alone, so whatever opens the
|
|
69
|
+
* resolved path calls {@link assertLocalPathIsOwn} as well.
|
|
70
|
+
*/
|
|
71
|
+
export declare function localPathIsInNestedFolder(root: string, key: string): boolean;
|
|
72
|
+
/**
|
|
73
|
+
* The directories of a workspace that the host records as folders of their
|
|
74
|
+
* own, as workspace keys. See {@link Workspace.isNestedFolder}.
|
|
75
|
+
*/
|
|
76
|
+
export type NestedFolderSource = () => Iterable<string> | Promise<Iterable<string>>;
|
|
77
|
+
export interface StorageWorkspaceOptions {
|
|
78
|
+
localDir?: string | null;
|
|
79
|
+
/**
|
|
80
|
+
* Called the first time the workspace is asked about a nested folder, and
|
|
81
|
+
* again once {@link NESTED_FOLDER_MEMORY_MS} has passed. A host passes the
|
|
82
|
+
* folders its database records inside this one, so that a folder with no
|
|
83
|
+
* {@link RESERVED_WORKSPACE_DIR} directory, such as a game's workspace, is
|
|
84
|
+
* still known as another folder. The root is never one of them.
|
|
85
|
+
*/
|
|
86
|
+
nestedFolders?: NestedFolderSource;
|
|
87
|
+
}
|
|
10
88
|
export declare class StorageWorkspace implements Workspace {
|
|
11
89
|
readonly storage: StorageAdapter;
|
|
12
90
|
readonly localDir: string | null;
|
|
13
91
|
private scratch;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
92
|
+
private readonly nestedFolderSource;
|
|
93
|
+
private declaredNestedFolders;
|
|
94
|
+
/** Per directory key: whether it holds a reserved directory. */
|
|
95
|
+
private readonly reservedMarks;
|
|
96
|
+
/**
|
|
97
|
+
* The one rule for the folders of other projects in this workspace. It
|
|
98
|
+
* asks by key, where {@link isNestedFolder} takes a caller's path.
|
|
99
|
+
*/
|
|
100
|
+
private readonly nested;
|
|
101
|
+
constructor(storage: StorageAdapter, opts?: StorageWorkspaceOptions);
|
|
102
|
+
/** The nested folders the host named, as lower-cased workspace keys. */
|
|
103
|
+
private declaredNested;
|
|
104
|
+
/**
|
|
105
|
+
* Whether the directory at `key` holds a reserved directory, remembered
|
|
106
|
+
* for {@link NESTED_FOLDER_MEMORY_MS}.
|
|
107
|
+
*/
|
|
108
|
+
private hasReservedDirectory;
|
|
109
|
+
private readReservedDirectory;
|
|
110
|
+
/**
|
|
111
|
+
* On an object store a flat listing names every key below `under`, the
|
|
112
|
+
* reserved ones among them. It therefore says which directories there
|
|
113
|
+
* hold a reserved directory, and none of them is asked about again.
|
|
114
|
+
*/
|
|
115
|
+
private rememberReservedMarks;
|
|
116
|
+
isNestedFolder(path: string): Promise<boolean>;
|
|
117
|
+
/**
|
|
118
|
+
* {@link isNestedFolder} for a normalized key. The root is never one.
|
|
119
|
+
*
|
|
120
|
+
* When the host cannot name its folders, or the storage cannot be asked,
|
|
121
|
+
* the answer is unknown and could be yes. That is a
|
|
122
|
+
* {@link WorkspaceFolderCheckError}, never "no".
|
|
123
|
+
*/
|
|
124
|
+
private isNestedKey;
|
|
125
|
+
/**
|
|
126
|
+
* The entries of a flat listing below the key `under` that are this
|
|
127
|
+
* folder's own: in no reserved directory and in no nested folder.
|
|
128
|
+
*/
|
|
129
|
+
private ownEntries;
|
|
130
|
+
/**
|
|
131
|
+
* Whether the real directory at `key` holds a reserved directory or a
|
|
132
|
+
* nested folder at any depth. Symbolic links are not followed.
|
|
133
|
+
*/
|
|
134
|
+
private holdsOtherFolder;
|
|
135
|
+
/**
|
|
136
|
+
* Remove the real directory at `key` with everything in it but the
|
|
137
|
+
* reserved directories and the nested folders. A directory on the way to
|
|
138
|
+
* one stays, emptied of the rest. Returns whether the directory at `key`
|
|
139
|
+
* itself was removed.
|
|
140
|
+
*/
|
|
141
|
+
private removeOwnDirectory;
|
|
17
142
|
private rootReady;
|
|
18
143
|
/** Create the workspace directory once, on first use. */
|
|
19
144
|
private ensureRoot;
|
|
20
145
|
key(path: string): string;
|
|
21
146
|
/**
|
|
22
|
-
* Refuse a path whose real location
|
|
147
|
+
* Refuse a path this workspace does not reach: one whose real location
|
|
148
|
+
* leaves the workspace, and one in the folder of another project inside it.
|
|
23
149
|
*
|
|
24
|
-
* Called on every operation
|
|
25
|
-
*
|
|
26
|
-
*
|
|
150
|
+
* Called on every operation. `key()` refuses a `..` that climbs out
|
|
151
|
+
* lexically and the reserved directory. A symlink defeats that, which only
|
|
152
|
+
* a local workspace has. A path in a nested folder is refused on every
|
|
153
|
+
* backend: its files belong to the other project.
|
|
154
|
+
*
|
|
155
|
+
* `asDirectory` is set by the operations that take a directory. They also
|
|
156
|
+
* refuse the nested folder itself, which a path to a file cannot be.
|
|
27
157
|
*/
|
|
28
158
|
private assertContained;
|
|
29
159
|
uri(path: string): string;
|
|
30
160
|
read(path: string): Promise<Uint8Array | null>;
|
|
31
161
|
readText(path: string): Promise<string | null>;
|
|
32
162
|
write(path: string, data: Uint8Array | string, contentType?: string): Promise<void>;
|
|
163
|
+
writeNew(path: string, data: Uint8Array | string, contentType?: string, options?: WriteNewOptions): Promise<boolean>;
|
|
33
164
|
exists(path: string): Promise<boolean>;
|
|
34
165
|
stat(path: string): Promise<WorkspaceStat | null>;
|
|
35
166
|
list(path?: string, opts?: {
|
|
@@ -40,11 +171,23 @@ export declare class StorageWorkspace implements Workspace {
|
|
|
40
171
|
deleteAll(path: string): Promise<number>;
|
|
41
172
|
mkdir(path: string): Promise<void>;
|
|
42
173
|
copy(from: string, to: string): Promise<void>;
|
|
174
|
+
/**
|
|
175
|
+
* Move a file, or a directory with everything under it. A directory is
|
|
176
|
+
* never moved into itself or onto anything that exists, except onto a name
|
|
177
|
+
* that differs from its own only in case. A local directory is renamed in
|
|
178
|
+
* one step, so the files keep their bytes and modification times. On an
|
|
179
|
+
* object store each file is copied to its new key, then removed.
|
|
180
|
+
*
|
|
181
|
+
* A directory that holds a reserved directory or a nested folder at any
|
|
182
|
+
* depth is refused before anything moves, and so is a target in a nested
|
|
183
|
+
* folder.
|
|
184
|
+
*/
|
|
43
185
|
move(from: string, to: string): Promise<void>;
|
|
44
186
|
materialize(path: string): Promise<string>;
|
|
45
187
|
private stage;
|
|
46
188
|
absorb(localPath: string, path: string): Promise<void>;
|
|
47
189
|
private absorbFile;
|
|
190
|
+
absorbNew(localPath: string, path: string, contentType?: string): Promise<boolean>;
|
|
48
191
|
scratchDir(): Promise<string>;
|
|
49
192
|
cleanupScratch(): Promise<void>;
|
|
50
193
|
}
|
|
@@ -56,7 +199,10 @@ export declare class StorageWorkspace implements Workspace {
|
|
|
56
199
|
*/
|
|
57
200
|
export declare function createWorkspace(storage: StorageAdapter, opts?: {
|
|
58
201
|
prefix?: string | null;
|
|
202
|
+
nestedFolders?: NestedFolderSource;
|
|
59
203
|
}): Workspace;
|
|
60
204
|
/** A workspace over a real directory. */
|
|
61
|
-
export declare function createLocalWorkspace(dir: string
|
|
205
|
+
export declare function createLocalWorkspace(dir: string, opts?: {
|
|
206
|
+
nestedFolders?: NestedFolderSource;
|
|
207
|
+
}): Workspace;
|
|
62
208
|
//# sourceMappingURL=storage-workspace.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage-workspace.d.ts","sourceRoot":"","sources":["../src/storage-workspace.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAG3D,OAAO,
|
|
1
|
+
{"version":3,"file":"storage-workspace.d.ts","sourceRoot":"","sources":["../src/storage-workspace.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAG3D,OAAO,EAQL,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,eAAe,EACrB,MAAM,gBAAgB,CAAC;AAuTxB;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,IAAI,CAAC,cAAc,WAAW,CAAC,EAAE,KAAK,GAAG,SAAS,GAAG,UAAU,GAAG,YAAY,CAAC,EACrF,QAAQ,EAAE,MAAM,GACf,MAAM,GAAG,IAAI,CAMf;AAED;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,QAAS,CAAC;AAgB9C,wDAAwD;AACxD,MAAM,WAAW,YAAY;IAC3B;;;;;OAKG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAsB,oBAAoB,CACxC,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,gBAAgB,CAAC,EAC5C,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,KAAK,SAAS,EACd,GAAG,GAAE,YAAiB,GACrB,OAAO,CAAC,IAAI,CAAC,CAgCf;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAY5E;AAKD;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAC7B,QAAQ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