@taico/events 0.3.5 → 0.4.1

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/README.md CHANGED
@@ -1,3 +1,3 @@
1
1
  # @taico/events
2
2
 
3
- [![Socket Badge](https://badge.socket.dev/npm/package/@taico/events/0.3.5)](https://badge.socket.dev/npm/package/@taico/events/0.3.5)
3
+ [![Socket Badge](https://badge.socket.dev/npm/package/@taico/events/0.4.1)](https://badge.socket.dev/npm/package/@taico/events/0.4.1)
@@ -24,6 +24,7 @@ export declare const ExecutionWireEvents: {
24
24
  readonly WORKER_HARNESSES_REPORT_REQUESTED: "worker.harnesses.report.requested";
25
25
  readonly TASK_EXECUTION_QUEUED: "task.execution.queued";
26
26
  readonly EXECUTION_INTERRUPT_REQUEST: "execution.interrupt.request";
27
+ readonly EXECUTIONS_CHANGED: "executions.changed";
27
28
  };
28
29
  export type ExecutionWireEventName = (typeof ExecutionWireEvents)[keyof typeof ExecutionWireEvents];
29
30
  /**
@@ -123,10 +124,17 @@ export interface ExecutionInterruptRequestWireEvent {
123
124
  executionId: string;
124
125
  requestedAt: string;
125
126
  }
127
+ /**
128
+ * Emitted after an active execution is claimed, stopped, or returned to queue.
129
+ * Clients should reload their active-execution snapshot rather than infer it.
130
+ */
131
+ export interface ExecutionsChangedWireEvent {
132
+ occurredAt: string;
133
+ }
126
134
  /**
127
135
  * Union type of all execution wire events
128
136
  */
129
- export type ExecutionWireEvent = ExecutionCreatedWireEvent | ExecutionUpdatedWireEvent | ExecutionDeletedWireEvent | ExecutionActivityWireEvent | TaskExecutionQueuedWireEvent | ExecutionInterruptRequestWireEvent;
137
+ export type ExecutionWireEvent = ExecutionCreatedWireEvent | ExecutionUpdatedWireEvent | ExecutionDeletedWireEvent | ExecutionActivityWireEvent | TaskExecutionQueuedWireEvent | ExecutionInterruptRequestWireEvent | ExecutionsChangedWireEvent;
130
138
  /**
131
139
  * Type guards for event identification
132
140
  */
@@ -23,6 +23,7 @@ export const ExecutionWireEvents = {
23
23
  WORKER_HARNESSES_REPORT_REQUESTED: 'worker.harnesses.report.requested',
24
24
  TASK_EXECUTION_QUEUED: 'task.execution.queued',
25
25
  EXECUTION_INTERRUPT_REQUEST: 'execution.interrupt.request',
26
+ EXECUTIONS_CHANGED: 'executions.changed',
26
27
  };
27
28
  /**
28
29
  * Type guards for event identification
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taico/events",
3
- "version": "0.3.5",
3
+ "version": "0.4.1",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "license": "PolyForm-Small-Business-1.0.0",