@joshski/dust 0.1.103 → 0.1.105

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 (38) hide show
  1. package/dist/agents/detection.d.ts +1 -1
  2. package/dist/agents.js +1 -1
  3. package/dist/artifacts/facts.d.ts +2 -2
  4. package/dist/artifacts/ideas.d.ts +2 -2
  5. package/dist/artifacts/index.d.ts +3 -3
  6. package/dist/artifacts/principles.d.ts +2 -2
  7. package/dist/artifacts/tasks.d.ts +2 -2
  8. package/dist/artifacts/workflow-tasks.d.ts +8 -2
  9. package/dist/artifacts.js +128 -36
  10. package/dist/audits/index.d.ts +1 -0
  11. package/dist/audits.js +24 -1
  12. package/dist/bucket/repository-loop.d.ts +4 -4
  13. package/dist/bucket/repository.d.ts +10 -0
  14. package/dist/claude/run.d.ts +3 -9
  15. package/dist/claude/spawn-claude-code.d.ts +1 -1
  16. package/dist/claude/types.d.ts +9 -0
  17. package/dist/cli/commands/focus.d.ts +2 -1
  18. package/dist/cli/shared/agent-shared.d.ts +4 -4
  19. package/dist/cli/types.d.ts +1 -1
  20. package/dist/codex/run.d.ts +3 -9
  21. package/dist/codex/spawn-codex.d.ts +1 -1
  22. package/dist/config/settings.d.ts +5 -5
  23. package/dist/core-principles.js +5 -16
  24. package/dist/docker/docker-agent.d.ts +0 -4
  25. package/dist/dust.js +374 -426
  26. package/dist/filesystem/types.d.ts +5 -1
  27. package/dist/lint/validators/content-validator.d.ts +1 -0
  28. package/dist/lint/validators/directory-validator.d.ts +3 -3
  29. package/dist/lint/validators/idea-validator.d.ts +3 -3
  30. package/dist/lint/validators/link-validator.d.ts +2 -2
  31. package/dist/loop/iteration.d.ts +2 -3
  32. package/dist/patch/index.d.ts +13 -0
  33. package/dist/patch/task.d.ts +2 -1
  34. package/dist/patch.js +64 -133
  35. package/dist/proxy/helper-token.d.ts +2 -2
  36. package/dist/types.d.ts +1 -1
  37. package/dist/validation.js +39 -115
  38. package/package.json +2 -2
@@ -1,7 +1,7 @@
1
1
  // lib/core-principles.ts
2
2
  import { join, dirname } from "node:path";
3
3
  import { fileURLToPath } from "node:url";
4
- import { existsSync, readdirSync, statSync } from "node:fs";
4
+ import { existsSync, readdirSync } from "node:fs";
5
5
  import { readFile } from "node:fs/promises";
6
6
 
7
7
  // lib/markdown/markdown-utilities.ts
@@ -111,10 +111,7 @@ function getCorePrincipleTree(allPrinciples, config) {
111
111
  if (!parentSlug || !filteredSlugs.has(parentSlug)) {
112
112
  roots.push(node);
113
113
  } else {
114
- const parentNode = nodeBySlug.get(parentSlug);
115
- if (parentNode) {
116
- parentNode.children.push(node);
117
- }
114
+ nodeBySlug.get(parentSlug).children.push(node);
118
115
  }
119
116
  }
120
117
  sortNodes(roots);
@@ -122,18 +119,10 @@ function getCorePrincipleTree(allPrinciples, config) {
122
119
  }
123
120
 
124
121
  // lib/core-principles.ts
125
- function createReadableFileSystem() {
122
+ function createFileReader() {
126
123
  return {
127
124
  exists: existsSync,
128
- isDirectory: (path) => {
129
- try {
130
- return statSync(path).isDirectory();
131
- } catch {
132
- return false;
133
- }
134
- },
135
- readFile: (path) => readFile(path, "utf-8"),
136
- readdir: async (path) => readdirSync(path)
125
+ readFile: (path) => readFile(path, "utf-8")
137
126
  };
138
127
  }
139
128
  function locatePackagePrinciplesDir() {
@@ -150,7 +139,7 @@ async function readAllCorePrinciples() {
150
139
  const principlesDir = locatePackagePrinciplesDir();
151
140
  const packageRoot = dirname(dirname(principlesDir));
152
141
  const dustPath = join(packageRoot, ".dust");
153
- const fileSystem = createReadableFileSystem();
142
+ const fileSystem = createFileReader();
154
143
  const files = readdirSync(principlesDir);
155
144
  const mdFiles = files.filter((f) => f.endsWith(".md"));
156
145
  const principles = [];
@@ -23,10 +23,6 @@ export declare function buildDockerImage(config: {
23
23
  success: false;
24
24
  error: string;
25
25
  }>;
26
- /**
27
- * Check if a Dockerfile exists at the legacy .dust/Dockerfile location.
28
- */
29
- export declare function hasLegacyDockerfile(repoPath: string, dependencies: ContainerDependencies): boolean;
30
26
  type ContainerPrepareEvent = {
31
27
  type: 'loop.docker_detected';
32
28
  imageTag: string;