toolcraft 0.0.885 → 0.0.887
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/composition.json +2 -2
- package/dist/composition.json +2 -2
- package/node_modules/@poe-code/safe-fs/dist/fs/scoped.d.ts +1 -0
- package/node_modules/@poe-code/safe-fs/dist/fs/scoped.js +8 -10
- package/node_modules/tiny-stdio-mcp-server/dist/composition.json +1 -1
- package/node_modules/toolcraft-schema/package.json +1 -1
- package/package.json +2 -2
package/composition.json
CHANGED
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
140
|
"name": "toolcraft",
|
|
141
|
-
"version": "0.0.
|
|
141
|
+
"version": "0.0.887",
|
|
142
142
|
"license": "MIT"
|
|
143
143
|
},
|
|
144
144
|
{
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
150
|
"name": "toolcraft-schema",
|
|
151
|
-
"version": "0.0.
|
|
151
|
+
"version": "0.0.887",
|
|
152
152
|
"license": "MIT"
|
|
153
153
|
},
|
|
154
154
|
{
|
package/dist/composition.json
CHANGED
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
140
|
"name": "toolcraft",
|
|
141
|
-
"version": "0.0.
|
|
141
|
+
"version": "0.0.887",
|
|
142
142
|
"license": "MIT"
|
|
143
143
|
},
|
|
144
144
|
{
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
150
|
"name": "toolcraft-schema",
|
|
151
|
-
"version": "0.0.
|
|
151
|
+
"version": "0.0.887",
|
|
152
152
|
"license": "MIT"
|
|
153
153
|
},
|
|
154
154
|
{
|
|
@@ -7,6 +7,7 @@ export declare function scopeFileSystem(filesystem: FileSystem, charge: () => vo
|
|
|
7
7
|
}): FileSystem;
|
|
8
8
|
export interface RetainedFileSystemCleanupView {
|
|
9
9
|
readonly removeFileConditional?: NonNullable<FileSystem["removeFileConditional"]>;
|
|
10
|
+
readonly removeTreeConditional?: NonNullable<FileSystem["removeTreeConditional"]>;
|
|
10
11
|
readonly removeStagedFile?: NonNullable<FileSystem["removeStagedFile"]>;
|
|
11
12
|
readonly lstat: FileSystem["lstat"];
|
|
12
13
|
readonly realpath: FileSystem["realpath"];
|
|
@@ -611,8 +611,8 @@ export function retainFileSystemCleanup(filesystem, cleanupCallback, options) {
|
|
|
611
611
|
if (typeof operation !== "function")
|
|
612
612
|
throw new FsError("ENOTSUP", { syscall: method, path });
|
|
613
613
|
const parameters = method === "rm" ? { ...settings, recursive: false, force: false } : settings;
|
|
614
|
-
result = method === "removeStagedFile" || method === "removeFileConditional"
|
|
615
|
-
? requireOwnedMutation(backing, path, method === "removeFileConditional" ? "atomicFileMutation" : "atomicFileStaging", settings ?? {}).then(() => Reflect.apply(operation, backing, [input, parameters]))
|
|
614
|
+
result = method === "removeStagedFile" || method === "removeFileConditional" || method === "removeTreeConditional"
|
|
615
|
+
? requireOwnedMutation(backing, path, method === "removeFileConditional" ? "atomicFileMutation" : method === "removeTreeConditional" ? "atomicTreeRemoval" : "atomicFileStaging", settings ?? {}).then(() => Reflect.apply(operation, backing, [input, parameters]))
|
|
616
616
|
: Promise.resolve(Reflect.apply(operation, backing, [input, parameters]));
|
|
617
617
|
}
|
|
618
618
|
catch (error) {
|
|
@@ -624,14 +624,12 @@ export function retainFileSystemCleanup(filesystem, cleanupCallback, options) {
|
|
|
624
624
|
pending.add(completion);
|
|
625
625
|
return result;
|
|
626
626
|
};
|
|
627
|
-
const view = Object.
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
...(typeof backing.rmdir === "function" ? { rmdir: invoke.bind(undefined, "rmdir") } : {}),
|
|
634
|
-
}));
|
|
627
|
+
const view = Object.create(null);
|
|
628
|
+
for (const method of ["removeFileConditional", "removeStagedFile", "removeTreeConditional", "lstat", "realpath", "rm", "rmdir"]) {
|
|
629
|
+
if (method === "lstat" || method === "realpath" || method === "rm" || typeof backing[method] === "function")
|
|
630
|
+
Object.defineProperty(view, method, { value: invoke.bind(undefined, method), enumerable: true });
|
|
631
|
+
}
|
|
632
|
+
Object.freeze(view);
|
|
635
633
|
scope?.signal.throwIfAborted();
|
|
636
634
|
return () => {
|
|
637
635
|
if (!closing) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "toolcraft",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.887",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
"saxes"
|
|
178
178
|
],
|
|
179
179
|
"optionalDependencies": {
|
|
180
|
-
"toolcraft-schema": "0.0.
|
|
180
|
+
"toolcraft-schema": "0.0.887",
|
|
181
181
|
"toolcraft-design": "*",
|
|
182
182
|
"@poe-code/frontmatter": "*",
|
|
183
183
|
"@poe-code/agent-mcp-config": "*",
|