@joshski/dust 0.1.111 → 0.1.113
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/README.md +17 -0
- package/dist/cli/shared/agent-shared.d.ts +9 -1
- package/dist/cli/types.d.ts +5 -1
- package/dist/core-principles.js +608 -608
- package/dist/dust.js +877 -681
- package/dist/execution-order.d.ts +17 -0
- package/dist/execution-order.js +39 -0
- package/dist/lint/validators/content-validator.d.ts +1 -0
- package/dist/loop/iteration.d.ts +4 -0
- package/dist/patch.js +33 -0
- package/dist/validation.js +33 -0
- package/package.json +5 -1
package/README.md
CHANGED
|
@@ -40,6 +40,23 @@ npx dust loop claude
|
|
|
40
40
|
|
|
41
41
|
This runs Claude Code in a [ralph loop](https://ghuntley.com/loop/), picking up tasks until they are all done.
|
|
42
42
|
|
|
43
|
+
## Codex Hook (Optional)
|
|
44
|
+
|
|
45
|
+
For [Codex](https://github.com/openai/codex) 0.125.0 or newer, you can replace the `AGENTS.md` instruction with a `SessionStart` hook that loads dust's instructions directly into the model's context — once per session, with no extra agent commands. Add this to `~/.codex/config.toml` (or your project's Codex config):
|
|
46
|
+
|
|
47
|
+
```toml
|
|
48
|
+
[features]
|
|
49
|
+
codex_hooks = true
|
|
50
|
+
|
|
51
|
+
[[hooks.SessionStart]]
|
|
52
|
+
matcher = "^startup$"
|
|
53
|
+
|
|
54
|
+
[[hooks.SessionStart.hooks]]
|
|
55
|
+
type = "command"
|
|
56
|
+
command = "bunx dust codex hook"
|
|
57
|
+
statusMessage = "Loading dust agent instructions"
|
|
58
|
+
```
|
|
59
|
+
|
|
43
60
|
## Learn More
|
|
44
61
|
|
|
45
62
|
Details live in the [.dust/facts](./.dust/facts) directory:
|
|
@@ -16,7 +16,7 @@ export interface TemplateVars {
|
|
|
16
16
|
isClaudeCodeWeb: boolean;
|
|
17
17
|
hasIdeaFile: boolean;
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
interface TemplateVarsWithInstructions extends TemplateVars {
|
|
20
20
|
agentInstructions: string;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
@@ -33,6 +33,13 @@ export declare function templateVariables(settings: DustSettings, hooksInstalled
|
|
|
33
33
|
export declare function templateVariablesWithInstructions(cwd: string, fileSystem: FileReader, settings: DustSettings, hooksInstalled: boolean, env: NodeJS.ProcessEnv, options?: {
|
|
34
34
|
hasIdeaFile?: boolean;
|
|
35
35
|
}): Promise<TemplateVarsWithInstructions>;
|
|
36
|
+
/**
|
|
37
|
+
* Renders the dust agent greeting text.
|
|
38
|
+
*
|
|
39
|
+
* Used by both `dust agent` (printed to the user) and `dust codex hook`
|
|
40
|
+
* (injected as `additionalContext` into the model's session context).
|
|
41
|
+
*/
|
|
42
|
+
export declare function agentGreeting(vars: TemplateVarsWithInstructions): string;
|
|
36
43
|
/**
|
|
37
44
|
* Manages git hook installation for agent commands.
|
|
38
45
|
* Automatically installs pre-push hooks if:
|
|
@@ -42,3 +49,4 @@ export declare function templateVariablesWithInstructions(cwd: string, fileSyste
|
|
|
42
49
|
* Returns whether hooks are installed.
|
|
43
50
|
*/
|
|
44
51
|
export declare function manageGitHooks(dependencies: CommandDependencies): Promise<boolean>;
|
|
52
|
+
export {};
|
package/dist/cli/types.d.ts
CHANGED
|
@@ -29,7 +29,11 @@ export interface DustSettings {
|
|
|
29
29
|
excludeCorePrinciples?: string[];
|
|
30
30
|
extraDirectories?: string[];
|
|
31
31
|
}
|
|
32
|
-
export
|
|
32
|
+
export interface FileWithTimestamp {
|
|
33
|
+
file: string;
|
|
34
|
+
lastCommittedAt: string | null;
|
|
35
|
+
}
|
|
36
|
+
export type DirectoryFileSorter = (dir: string, files: string[]) => Promise<FileWithTimestamp[]>;
|
|
33
37
|
/**
|
|
34
38
|
* Dependencies passed to all CLI commands
|
|
35
39
|
*/
|