@joshski/dust 0.1.50 → 0.1.51

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 (2) hide show
  1. package/dist/dust.js +7 -0
  2. package/package.json +1 -1
package/dist/dust.js CHANGED
@@ -4131,12 +4131,16 @@ async function lintMarkdown(dependencies) {
4131
4131
  }
4132
4132
 
4133
4133
  // lib/cli/commands/check.ts
4134
+ var log5 = createLogger("dust.cli.commands.check");
4134
4135
  var DEFAULT_CHECK_TIMEOUT_MS = 13000;
4135
4136
  async function runSingleCheck(check, cwd, runner) {
4136
4137
  const timeoutMs = check.timeoutMilliseconds ?? DEFAULT_CHECK_TIMEOUT_MS;
4138
+ log5(`running check ${check.name}: ${check.command}`);
4137
4139
  const startTime = Date.now();
4138
4140
  const result = await runner.run(check.command, cwd, timeoutMs);
4139
4141
  const durationMs = Date.now() - startTime;
4142
+ const status = result.timedOut ? "timed out" : result.exitCode === 0 ? "passed" : "failed";
4143
+ log5(`check ${check.name} ${status} (${durationMs}ms)`);
4140
4144
  return {
4141
4145
  name: check.name,
4142
4146
  command: check.command,
@@ -4166,6 +4170,7 @@ async function runValidationCheck(dependencies) {
4166
4170
  stdout: (msg) => outputLines.push(msg),
4167
4171
  stderr: (msg) => outputLines.push(msg)
4168
4172
  };
4173
+ log5("running built-in check: dust lint");
4169
4174
  const startTime = Date.now();
4170
4175
  const result = await lintMarkdown({
4171
4176
  ...dependencies,
@@ -4173,6 +4178,8 @@ async function runValidationCheck(dependencies) {
4173
4178
  arguments: []
4174
4179
  });
4175
4180
  const durationMs = Date.now() - startTime;
4181
+ const lintStatus = result.exitCode === 0 ? "passed" : "failed";
4182
+ log5(`built-in check dust lint ${lintStatus} (${durationMs}ms)`);
4176
4183
  return {
4177
4184
  name: "lint",
4178
4185
  command: "dust lint",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joshski/dust",
3
- "version": "0.1.50",
3
+ "version": "0.1.51",
4
4
  "description": "Flow state for AI coding agents",
5
5
  "type": "module",
6
6
  "bin": {