@joshski/dust 0.1.83 → 0.1.84

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.
@@ -12,7 +12,7 @@ export declare function validateSettingsJson(content: string): SettingsViolation
12
12
  /**
13
13
  * Detects the appropriate dust command based on lockfiles and environment.
14
14
  * Priority:
15
- * 1. bun.lockb exists → bunx dust
15
+ * 1. bun.lock or bun.lockb exists → bunx dust
16
16
  * 2. pnpm-lock.yaml exists → pnpx dust
17
17
  * 3. package-lock.json exists → npx dust
18
18
  * 4. No lockfile + BUN_INSTALL env var set → bunx dust
package/dist/dust.js CHANGED
@@ -185,7 +185,7 @@ var DEFAULT_SETTINGS = {
185
185
  dustCommand: "npx dust"
186
186
  };
187
187
  function detectDustCommand(cwd, fileSystem) {
188
- if (fileSystem.exists(join(cwd, "bun.lockb"))) {
188
+ if (fileSystem.exists(join(cwd, "bun.lock")) || fileSystem.exists(join(cwd, "bun.lockb"))) {
189
189
  return "bunx dust";
190
190
  }
191
191
  if (fileSystem.exists(join(cwd, "pnpm-lock.yaml"))) {
@@ -200,6 +200,7 @@ function detectDustCommand(cwd, fileSystem) {
200
200
  return "npx dust";
201
201
  }
202
202
  var LOCKFILE_COMMANDS = [
203
+ { file: "bun.lock", command: "bun install", ecosystem: "js" },
203
204
  { file: "bun.lockb", command: "bun install", ecosystem: "js" },
204
205
  { file: "pnpm-lock.yaml", command: "pnpm install", ecosystem: "js" },
205
206
  { file: "package-lock.json", command: "npm install", ecosystem: "js" },
@@ -318,7 +319,7 @@ async function loadSettings(cwd, fileSystem) {
318
319
  }
319
320
 
320
321
  // lib/version.ts
321
- var DUST_VERSION = "0.1.83";
322
+ var DUST_VERSION = "0.1.84";
322
323
 
323
324
  // lib/session.ts
324
325
  var DUST_UNATTENDED = "DUST_UNATTENDED";
@@ -3089,7 +3090,7 @@ Make sure the repository is in a clean state and synced with remote before finis
3089
3090
  log2(`found ${tasks.length} task(s), picking: ${task.title ?? task.path}`);
3090
3091
  onLoopEvent({ type: "loop.tasks_found" });
3091
3092
  const taskContent = await dependencies.fileSystem.readFile(`${dependencies.context.cwd}/${task.path}`);
3092
- const { dustCommand, installCommand = "npm install" } = dependencies.settings;
3093
+ const { dustCommand, installCommand } = dependencies.settings;
3093
3094
  const instructions = buildImplementationInstructions(dustCommand, hooksInstalled, task.title ?? undefined, task.path, installCommand);
3094
3095
  const prompt = `Implement the task at \`${task.path}\`:
3095
3096
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joshski/dust",
3
- "version": "0.1.83",
3
+ "version": "0.1.84",
4
4
  "description": "Flow state for AI coding agents",
5
5
  "type": "module",
6
6
  "bin": {