pruff-skills 1.12.0 → 1.13.0

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/cli.mjs +7 -1
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -30,6 +30,7 @@ const PROBE_TIMEOUT_MS = 2500;
30
30
  const probeCache = /* @__PURE__ */ new Map();
31
31
  let currentStep = "start";
32
32
  let failure = null;
33
+ let usageError = false;
33
34
  const tail = [];
34
35
  function setStep(step) {
35
36
  currentStep = step;
@@ -40,9 +41,13 @@ function recordFailure(message) {
40
41
  message
41
42
  };
42
43
  }
44
+ function markUsageError() {
45
+ usageError = true;
46
+ }
43
47
  function resetDiagnosticsState() {
44
48
  currentStep = "start";
45
49
  failure = null;
50
+ usageError = false;
46
51
  tail.length = 0;
47
52
  }
48
53
  function recordedFailure() {
@@ -333,7 +338,7 @@ async function withDiagnostics(command, args, fn) {
333
338
  };
334
339
  let printed = false;
335
340
  const emit = (exitCode, error) => {
336
- if (printed) return;
341
+ if (printed || usageError) return;
337
342
  printed = true;
338
343
  const message = error ?? recordedFailure()?.message ?? lastErrorLine(tail);
339
344
  restore();
@@ -3833,6 +3838,7 @@ async function runAdd(args, options = {}) {
3833
3838
  installTipShown = true;
3834
3839
  };
3835
3840
  if (!source) {
3841
+ markUsageError();
3836
3842
  console.log();
3837
3843
  console.log(import_picocolors.default.bgRed(import_picocolors.default.white(import_picocolors.default.bold(" ERROR "))) + " " + import_picocolors.default.red("Missing required argument: source"));
3838
3844
  console.log();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pruff-skills",
3
- "version": "1.12.0",
3
+ "version": "1.13.0",
4
4
  "description": "The official Pruff agent skills CLI",
5
5
  "type": "module",
6
6
  "bin": {