abtars 0.1.0-alpha.11 → 0.1.0-alpha.13

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.
@@ -3,10 +3,10 @@
3
3
  import {
4
4
  showHintOnce,
5
5
  update
6
- } from "./chunk-POEEVHM5.js";
6
+ } from "./chunk-3Z3EP7E6.js";
7
7
  import {
8
8
  install
9
- } from "./chunk-2ONFOF4F.js";
9
+ } from "./chunk-RB3X66KM.js";
10
10
  import {
11
11
  acquireLock,
12
12
  activate,
@@ -1036,7 +1036,7 @@ Next: cd into the abtars repo and run 'abtars update' to build and activate.
1036
1036
  process.stdout.write(`
1037
1037
  \u2500\u2500 Running 'abtars update' \u2500\u2500
1038
1038
  `);
1039
- const { update: update2 } = await import("./update-RVMR6IE5.js");
1039
+ const { update: update2 } = await import("./update-U7M63AAV.js");
1040
1040
  const updRc = await update2({ source: "local", fromLocal: true, allowAbmindMismatch: false });
1041
1041
  if (updRc !== 0) {
1042
1042
  process.stderr.write(`
package/bundle/abtars.js CHANGED
@@ -938,8 +938,12 @@ var CronQueue = class {
938
938
  if (!paused) this.tryInjectFailure(entry, `${status}
939
939
  ${(output || "(no output)").slice(0, 500)}`);
940
940
  }
941
- if (!paused) onComplete?.(entry.chatId, entry.message, `${status}
941
+ if (!paused) {
942
+ if (code !== 0 || output.trim()) {
943
+ onComplete?.(entry.chatId, entry.message, `${status}
942
944
  ${(output || "(no output)").slice(0, 500)}`);
945
+ }
946
+ }
943
947
  this.clearCurrent();
944
948
  this.processNext();
945
949
  });