@cronvello/sdk 0.2.1 → 0.4.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.
package/dist/dev.d.cts CHANGED
@@ -150,6 +150,7 @@ declare class LocalEngine {
150
150
  private started;
151
151
  private stopped;
152
152
  private signalCleanup;
153
+ private startedAtMs;
153
154
  constructor(jobs: EngineJob[], runner: EngineRunner, options?: LocalEngineOptions);
154
155
  /**
155
156
  * Subscribe to every lifecycle event (in addition to the constructor's `onEvent`). Returns an
@@ -181,6 +182,10 @@ declare class LocalEngine {
181
182
  jobs(): readonly EngineJob[];
182
183
  /** Number of runs currently in flight. */
183
184
  get activeRuns(): number;
185
+ /** Epoch ms of the `start()` call, or null while the engine has never been started. */
186
+ get startedAt(): number | null;
187
+ /** True between `start()` and `stop()`. */
188
+ get running(): boolean;
184
189
  private scheduleNext;
185
190
  private onDue;
186
191
  /**
package/dist/dev.d.ts CHANGED
@@ -150,6 +150,7 @@ declare class LocalEngine {
150
150
  private started;
151
151
  private stopped;
152
152
  private signalCleanup;
153
+ private startedAtMs;
153
154
  constructor(jobs: EngineJob[], runner: EngineRunner, options?: LocalEngineOptions);
154
155
  /**
155
156
  * Subscribe to every lifecycle event (in addition to the constructor's `onEvent`). Returns an
@@ -181,6 +182,10 @@ declare class LocalEngine {
181
182
  jobs(): readonly EngineJob[];
182
183
  /** Number of runs currently in flight. */
183
184
  get activeRuns(): number;
185
+ /** Epoch ms of the `start()` call, or null while the engine has never been started. */
186
+ get startedAt(): number | null;
187
+ /** True between `start()` and `stop()`. */
188
+ get running(): boolean;
184
189
  private scheduleNext;
185
190
  private onDue;
186
191
  /**