toolcraft 0.0.886 → 0.0.888

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 CHANGED
@@ -138,7 +138,7 @@
138
138
  },
139
139
  {
140
140
  "name": "toolcraft",
141
- "version": "0.0.886",
141
+ "version": "0.0.888",
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.886",
151
+ "version": "0.0.888",
152
152
  "license": "MIT"
153
153
  },
154
154
  {
@@ -138,7 +138,7 @@
138
138
  },
139
139
  {
140
140
  "name": "toolcraft",
141
- "version": "0.0.886",
141
+ "version": "0.0.888",
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.886",
151
+ "version": "0.0.888",
152
152
  "license": "MIT"
153
153
  },
154
154
  {
@@ -624,15 +624,12 @@ export function retainFileSystemCleanup(filesystem, cleanupCallback, options) {
624
624
  pending.add(completion);
625
625
  return result;
626
626
  };
627
- const view = Object.freeze(Object.assign(Object.create(null), {
628
- ...(typeof backing.removeFileConditional === "function" ? { removeFileConditional: invoke.bind(undefined, "removeFileConditional") } : {}),
629
- ...(typeof backing.removeStagedFile === "function" ? { removeStagedFile: invoke.bind(undefined, "removeStagedFile") } : {}),
630
- ...(typeof backing.removeTreeConditional === "function" ? { removeTreeConditional: invoke.bind(undefined, "removeTreeConditional") } : {}),
631
- lstat: invoke.bind(undefined, "lstat"),
632
- realpath: invoke.bind(undefined, "realpath"),
633
- rm: invoke.bind(undefined, "rm"),
634
- ...(typeof backing.rmdir === "function" ? { rmdir: invoke.bind(undefined, "rmdir") } : {}),
635
- }));
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);
636
633
  scope?.signal.throwIfAborted();
637
634
  return () => {
638
635
  if (!closing) {
@@ -8,7 +8,7 @@
8
8
  },
9
9
  {
10
10
  "name": "toolcraft-schema",
11
- "version": "0.0.886",
11
+ "version": "0.0.888",
12
12
  "license": "MIT"
13
13
  }
14
14
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toolcraft-schema",
3
- "version": "0.0.886",
3
+ "version": "0.0.888",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toolcraft",
3
- "version": "0.0.886",
3
+ "version": "0.0.888",
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.886",
180
+ "toolcraft-schema": "0.0.888",
181
181
  "toolcraft-design": "*",
182
182
  "@poe-code/frontmatter": "*",
183
183
  "@poe-code/agent-mcp-config": "*",