commonswarm 0.1.58 → 0.1.59

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/cswarm.cjs +5 -15
  2. package/package.json +1 -1
package/cswarm.cjs CHANGED
@@ -37674,22 +37674,12 @@ var WakeSubscriber = class {
37674
37674
  return Promise.resolve("deadline");
37675
37675
  }
37676
37676
  return new Promise((resolve3) => {
37677
- const finish = (reason) => {
37678
- if (this.waiter === null) return;
37679
- const current = this.waiter;
37680
- this.waiter = null;
37681
- if (current.timer !== null) clearTimeout(current.timer);
37682
- if (current.signal && current.onAbort) {
37683
- current.signal.removeEventListener("abort", current.onAbort);
37684
- }
37685
- resolve3(reason);
37686
- };
37687
37677
  const delay2 = Math.max(0, options.until - this.now());
37688
- const timer2 = setTimeout(() => finish("deadline"), delay2);
37689
- const onAbort = () => finish("deadline");
37678
+ const timer2 = setTimeout(() => this.finishWait("deadline"), delay2);
37679
+ const onAbort = () => this.finishWait("deadline");
37690
37680
  options.signal?.addEventListener("abort", onAbort, { once: true });
37691
37681
  this.waiter = {
37692
- resolve: finish,
37682
+ resolve: resolve3,
37693
37683
  timer: timer2,
37694
37684
  onAbort,
37695
37685
  signal: options.signal
@@ -43662,8 +43652,8 @@ var BOOLEAN_FLAGS = /* @__PURE__ */ new Set([
43662
43652
  ]);
43663
43653
  var UUID_RE23 = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
43664
43654
  function packageVersion() {
43665
- if ("0.1.58".length > 0) {
43666
- return "0.1.58";
43655
+ if ("0.1.59".length > 0) {
43656
+ return "0.1.59";
43667
43657
  }
43668
43658
  try {
43669
43659
  const value = JSON.parse(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "commonswarm",
3
- "version": "0.1.58",
3
+ "version": "0.1.59",
4
4
  "description": "CommonSwarm CLI — coordination for teams where people and AI agents work side by side.",
5
5
  "bin": {
6
6
  "cswarm": "cswarm.cjs"