toolcraft 0.0.758 → 0.0.759

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
@@ -133,7 +133,7 @@
133
133
  },
134
134
  {
135
135
  "name": "toolcraft",
136
- "version": "0.0.758",
136
+ "version": "0.0.759",
137
137
  "license": "MIT"
138
138
  },
139
139
  {
@@ -143,7 +143,7 @@
143
143
  },
144
144
  {
145
145
  "name": "toolcraft-schema",
146
- "version": "0.0.758",
146
+ "version": "0.0.759",
147
147
  "license": "MIT"
148
148
  },
149
149
  {
@@ -133,7 +133,7 @@
133
133
  },
134
134
  {
135
135
  "name": "toolcraft",
136
- "version": "0.0.758",
136
+ "version": "0.0.759",
137
137
  "license": "MIT"
138
138
  },
139
139
  {
@@ -143,7 +143,7 @@
143
143
  },
144
144
  {
145
145
  "name": "toolcraft-schema",
146
- "version": "0.0.758",
146
+ "version": "0.0.759",
147
147
  "license": "MIT"
148
148
  },
149
149
  {
@@ -656,8 +656,12 @@ export class DeviceFileSystem {
656
656
  const capabilities = await this.#filesystem.capabilitiesFor?.(destination, { ...options, create: options.destination === null }) ?? this.#filesystem.capabilities;
657
657
  if (capabilities.readOnly === true)
658
658
  throw new FsError("EROFS", { path: destination });
659
- for (const path of [staging.parent.path, staging.directory.path])
660
- await this.#mutable(path, options, false);
659
+ // The parent is an identity guard, not an entry being replaced. Root is a
660
+ // valid parent; the synthetic device directory still cannot own staging.
661
+ const parentPath = await this.#resolve(staging.parent.path, options, false);
662
+ if (parentPath === deviceDirectory || parentPath === nullPath)
663
+ throw new FsError("EBUSY", { path: staging.parent.path });
664
+ await this.#mutable(staging.directory.path, options, false);
661
665
  const guards = [];
662
666
  if (options.ancestors)
663
667
  guards.push(await this.prepareDirectoryAncestry(options.ancestors, options));
@@ -8,7 +8,7 @@
8
8
  },
9
9
  {
10
10
  "name": "toolcraft-schema",
11
- "version": "0.0.758",
11
+ "version": "0.0.759",
12
12
  "license": "MIT"
13
13
  }
14
14
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toolcraft-schema",
3
- "version": "0.0.758",
3
+ "version": "0.0.759",
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.758",
3
+ "version": "0.0.759",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -175,7 +175,7 @@
175
175
  "@poe-code/terminal-text"
176
176
  ],
177
177
  "optionalDependencies": {
178
- "toolcraft-schema": "0.0.758",
178
+ "toolcraft-schema": "0.0.759",
179
179
  "toolcraft-design": "*",
180
180
  "@poe-code/frontmatter": "*",
181
181
  "@poe-code/agent-mcp-config": "*",