@workbench-ai/workbench-built-in-adapters 0.0.115 → 0.0.117

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.
Files changed (2) hide show
  1. package/dist/execute.js +14 -3
  2. package/package.json +5 -5
package/dist/execute.js CHANGED
@@ -360,8 +360,8 @@ async function snapshotEditableSkillWorkspace(request) {
360
360
  }
361
361
  async function readEditableSkillWorkspaceFiles(root, edits) {
362
362
  const editPaths = edits
363
- .map(normalizeRelativePath)
364
- .filter((filePath) => !isRuntimeWorkspacePath(filePath));
363
+ .map(normalizeSkillEditPath)
364
+ .filter((filePath) => filePath === "." || !isRuntimeWorkspacePath(filePath));
365
365
  if (editPaths.length === 0) {
366
366
  return [];
367
367
  }
@@ -369,6 +369,14 @@ async function readEditableSkillWorkspaceFiles(root, edits) {
369
369
  return dedupeSurfaceFiles(files.filter((file) => isAllowedSkillEditPath(file.path, editPaths) &&
370
370
  !isRuntimeWorkspacePath(file.path)));
371
371
  }
372
+ function normalizeSkillEditPath(filePath) {
373
+ const normalized = filePath
374
+ .replace(/\\/gu, "/")
375
+ .replace(/^\/+/u, "")
376
+ .replace(/^\.\/+/u, "")
377
+ .replace(/\/+$/u, "");
378
+ return normalized === "." ? "." : normalizeRelativePath(normalized);
379
+ }
372
380
  async function firstExistingFile(files) {
373
381
  for (const file of files) {
374
382
  const stat = await fs.stat(file).catch(() => null);
@@ -1288,7 +1296,10 @@ function isRuntimeWorkspacePath(filePath) {
1288
1296
  function isAllowedSkillEditPath(filePath, edits) {
1289
1297
  const normalized = normalizeRelativePath(filePath);
1290
1298
  return edits.some((entry) => {
1291
- const editPath = normalizeRelativePath(entry).replace(/\/+$/u, "");
1299
+ const editPath = normalizeSkillEditPath(entry);
1300
+ if (editPath === ".") {
1301
+ return true;
1302
+ }
1292
1303
  return normalized === editPath || normalized.startsWith(`${editPath}/`);
1293
1304
  });
1294
1305
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workbench-ai/workbench-built-in-adapters",
3
- "version": "0.0.115",
3
+ "version": "0.0.117",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/workbench-ai/workbench.git",
@@ -32,12 +32,12 @@
32
32
  ],
33
33
  "dependencies": {
34
34
  "yaml": "^2.8.2",
35
- "@workbench-ai/agent-driver": "0.0.49",
36
- "@workbench-ai/workbench-contract": "0.0.115",
35
+ "@workbench-ai/workbench-contract": "0.0.117",
37
36
  "@workbench-ai/agent-driver-openai-codex": "0.0.49",
38
- "@workbench-ai/workbench-protocol": "0.0.115",
37
+ "@workbench-ai/agent-driver": "0.0.49",
39
38
  "@workbench-ai/agent-driver-anthropic-claude-code": "0.0.49",
40
- "@workbench-ai/workbench-core": "0.0.115"
39
+ "@workbench-ai/workbench-protocol": "0.0.117",
40
+ "@workbench-ai/workbench-core": "0.0.117"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/node": "^24.3.1",