@powerhousedao/reactor-workflow 6.2.3-dev.18 → 6.2.3-dev.20

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.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as FileTooLargeError, a as redactMessage, c as DEFAULT_EGRESS_POLICY, f as extractDedupeKey, n as containsRedactedMarker, o as rememberSecrets, r as redact, s as secretsFor, y as maxFileBytes } from "./redact-C7LWgAyD.js";
2
- import { C as pieceModuleRef, D as setPieceRegistryUrl, E as pieceRegistrySource, S as localFirstResolver, _ as secretRefFromId, a as CompositeBlockExecutor, b as PieceWorkerError, c as storeHandlers, d as declaredConnectionIds, f as shapeConnection, g as parseSecretRef, h as SecretNotFoundError, i as ActivepiecesBlockExecutor, l as BoundConnectionResolver, m as SecretDeletedError, n as packagePieces, o as parseBlockType, r as runWorkflow, s as reactorHandlers, t as PieceRegistry, v as PieceWorkerPool, w as ensurePieceBundle, x as PieceWorkerTimeoutError, y as PieceWorker } from "./piece-registry-CzYq4sK-.js";
1
+ import { _ as FileTooLargeError, a as redactMessage, c as DEFAULT_EGRESS_POLICY, f as extractDedupeKey, n as containsRedactedMarker, o as rememberSecrets, r as redact, s as secretsFor, y as maxFileBytes } from "./redact-DCEJ-Imb.js";
2
+ import { C as pieceModuleRef, D as setPieceRegistryUrl, E as pieceRegistrySource, S as localFirstResolver, _ as secretRefFromId, a as CompositeBlockExecutor, b as PieceWorkerError, c as storeHandlers, d as declaredConnectionIds, f as shapeConnection, g as parseSecretRef, h as SecretNotFoundError, i as ActivepiecesBlockExecutor, l as BoundConnectionResolver, m as SecretDeletedError, n as packagePieces, o as parseBlockType, r as runWorkflow, s as reactorHandlers, t as PieceRegistry, v as PieceWorkerPool, w as ensurePieceBundle, x as PieceWorkerTimeoutError, y as PieceWorker } from "./piece-registry-BU168FQf.js";
3
3
  import { WebhookHandshakeStrategy } from "@powerhousedao/pieces-framework";
4
4
  import { mkdirSync, readFileSync, writeFileSync } from "node:fs";
5
5
  import { open, readFile, rm } from "node:fs/promises";
@@ -1045,7 +1045,7 @@ function toWorkflowDefinition(state) {
1045
1045
  //#endregion
1046
1046
  //#region src/reactor/schedule.ts
1047
1047
  const SCHEDULE_BLOCK = "core#schedule";
1048
- const MIN_SCHEDULE_INTERVAL_MS = 6e4;
1048
+ const MIN_SCHEDULE_INTERVAL_MS = 1e3;
1049
1049
  const INTERVAL_UNIT_MS = {
1050
1050
  minutes: 6e4,
1051
1051
  hours: 36e5,
@@ -1120,7 +1120,7 @@ function intervalMsFrom(record) {
1120
1120
  } else everyMs = toNumber$1(record.everyMs);
1121
1121
  if (everyMs === void 0) throw new Error(`${SCHEDULE_BLOCK}: "every" (with "unit") or "everyMs" is required in interval mode`);
1122
1122
  if (!Number.isFinite(everyMs) || everyMs <= 0) throw new Error(`${SCHEDULE_BLOCK}: the interval must be a positive number`);
1123
- if (everyMs < 6e4) throw new Error(`${SCHEDULE_BLOCK}: the interval must be at least ${MIN_SCHEDULE_INTERVAL_MS / 1e3}s`);
1123
+ if (everyMs < 1e3) throw new Error(`${SCHEDULE_BLOCK}: the interval must be at least ${MIN_SCHEDULE_INTERVAL_MS / 1e3}s`);
1124
1124
  return Math.round(everyMs);
1125
1125
  }
1126
1126
  function nextFireAt(schedule, from) {
@@ -1828,7 +1828,7 @@ var TriggerSupervisor = class {
1828
1828
  this.options = options;
1829
1829
  this.worker = options.worker ?? new PieceWorker();
1830
1830
  this.tickMs = options.tickMs ?? 15e3;
1831
- this.defaultIntervalMs = options.defaultIntervalMs ?? 3e5;
1831
+ this.defaultIntervalMs = options.defaultIntervalMs ?? 6e4;
1832
1832
  this.hookTimeoutMs = options.hookTimeoutMs ?? 6e4;
1833
1833
  this.now = options.now ?? (() => /* @__PURE__ */ new Date());
1834
1834
  this.egress = options.egress === void 0 ? DEFAULT_EGRESS_POLICY : options.egress ?? void 0;