@joshski/dust 0.1.109 → 0.1.111

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/patch.js CHANGED
@@ -167,7 +167,7 @@ function isErrorCode(error, code) {
167
167
  }
168
168
 
169
169
  // lib/validation/index.ts
170
- import { relative } from "node:path";
170
+ import { relative, resolve as resolve3 } from "node:path";
171
171
 
172
172
  // lib/validation/overlay-filesystem.ts
173
173
  function createOverlayFileSystem(base, patchFiles, deletedPaths = new Set) {
@@ -1003,11 +1003,12 @@ function parsePatchFiles(dustPath, patch) {
1003
1003
  }
1004
1004
  async function validatePatch(fileSystem, dustPath, patch, options = {}) {
1005
1005
  const cwd = options.cwd ?? process.cwd();
1006
- const { absolutePatchFiles, deletedPaths } = parsePatchFiles(dustPath, patch);
1006
+ const resolvedDustPath = resolve3(dustPath);
1007
+ const { absolutePatchFiles, deletedPaths } = parsePatchFiles(resolvedDustPath, patch);
1007
1008
  const overlayFs = createOverlayFileSystem(fileSystem, absolutePatchFiles, deletedPaths);
1008
1009
  const violations = [];
1009
- violations.push(...validatePatchRootEntries(fileSystem, dustPath, patch));
1010
- const { context, violations: parseViolations } = await parseArtifacts(overlayFs, dustPath);
1010
+ violations.push(...validatePatchRootEntries(fileSystem, resolvedDustPath, patch));
1011
+ const { context, violations: parseViolations } = await parseArtifacts(overlayFs, resolvedDustPath);
1011
1012
  violations.push(...parseViolations);
1012
1013
  violations.push(...validateArtifacts(context));
1013
1014
  return {
@@ -1,5 +1,5 @@
1
1
  // lib/validation/index.ts
2
- import { relative } from "node:path";
2
+ import { relative, resolve as resolve3 } from "node:path";
3
3
 
4
4
  // lib/filesystem/error-codes.ts
5
5
  function isErrnoException(error) {
@@ -1000,11 +1000,12 @@ function parsePatchFiles(dustPath, patch) {
1000
1000
  }
1001
1001
  async function validatePatch(fileSystem, dustPath, patch, options = {}) {
1002
1002
  const cwd = options.cwd ?? process.cwd();
1003
- const { absolutePatchFiles, deletedPaths } = parsePatchFiles(dustPath, patch);
1003
+ const resolvedDustPath = resolve3(dustPath);
1004
+ const { absolutePatchFiles, deletedPaths } = parsePatchFiles(resolvedDustPath, patch);
1004
1005
  const overlayFs = createOverlayFileSystem(fileSystem, absolutePatchFiles, deletedPaths);
1005
1006
  const violations = [];
1006
- violations.push(...validatePatchRootEntries(fileSystem, dustPath, patch));
1007
- const { context, violations: parseViolations } = await parseArtifacts(overlayFs, dustPath);
1007
+ violations.push(...validatePatchRootEntries(fileSystem, resolvedDustPath, patch));
1008
+ const { context, violations: parseViolations } = await parseArtifacts(overlayFs, resolvedDustPath);
1008
1009
  violations.push(...parseViolations);
1009
1010
  violations.push(...validateArtifacts(context));
1010
1011
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joshski/dust",
3
- "version": "0.1.109",
3
+ "version": "0.1.111",
4
4
  "description": "Flow state for AI coding agents",
5
5
  "type": "module",
6
6
  "bin": {