@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.
- package/dist/agents/detection.d.ts +1 -1
- package/dist/agents.js +1 -1
- package/dist/artifacts/facts.d.ts +2 -2
- package/dist/artifacts/ideas.d.ts +2 -2
- package/dist/artifacts/index.d.ts +3 -3
- package/dist/artifacts/principles.d.ts +2 -2
- package/dist/artifacts/tasks.d.ts +2 -2
- package/dist/artifacts/workflow-tasks.d.ts +8 -2
- package/dist/artifacts.js +128 -36
- package/dist/audits/index.d.ts +1 -0
- package/dist/audits.js +24 -1
- package/dist/bucket/repository-loop.d.ts +4 -4
- package/dist/bucket/repository.d.ts +10 -0
- package/dist/claude/run.d.ts +3 -9
- package/dist/claude/spawn-claude-code.d.ts +1 -1
- package/dist/claude/types.d.ts +9 -0
- package/dist/cli/commands/focus.d.ts +2 -1
- package/dist/cli/shared/agent-shared.d.ts +4 -4
- package/dist/cli/types.d.ts +1 -1
- package/dist/codex/run.d.ts +3 -9
- package/dist/codex/spawn-codex.d.ts +1 -1
- package/dist/config/settings.d.ts +5 -5
- package/dist/core-principles.js +5 -16
- package/dist/docker/docker-agent.d.ts +0 -4
- package/dist/dust.js +374 -426
- package/dist/filesystem/types.d.ts +5 -1
- package/dist/lint/validators/content-validator.d.ts +1 -0
- package/dist/lint/validators/directory-validator.d.ts +3 -3
- package/dist/lint/validators/idea-validator.d.ts +3 -3
- package/dist/lint/validators/link-validator.d.ts +2 -2
- package/dist/loop/iteration.d.ts +2 -3
- package/dist/patch/index.d.ts +13 -0
- package/dist/patch/task.d.ts +2 -1
- package/dist/patch.js +64 -133
- package/dist/proxy/helper-token.d.ts +2 -2
- package/dist/types.d.ts +1 -1
- package/dist/validation.js +39 -115
- package/package.json +2 -2
package/dist/core-principles.js
CHANGED
|
@@ -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
|
|
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
|
-
|
|
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
|
|
122
|
+
function createFileReader() {
|
|
126
123
|
return {
|
|
127
124
|
exists: existsSync,
|
|
128
|
-
|
|
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 =
|
|
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;
|