@taico/events 0.9.0 → 0.9.2

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.9.0)](https://badge.socket.dev/npm/package/@taico/events/0.9.0)
3
+ [![Socket Badge](https://badge.socket.dev/npm/package/@taico/events/0.9.2)](https://badge.socket.dev/npm/package/@taico/events/0.9.2)
@@ -11,9 +11,13 @@ export interface ExecutionTraceEvent {
11
11
  runnerSessionId: string | null;
12
12
  payload: HarnessJson;
13
13
  }
14
+ export type ExecutionTraceSource = "worker" | "harness";
14
15
  export interface PostExecutionTracePayload {
15
16
  executionId: string;
16
- harness: string;
17
+ /** Omitted by older workers: defaults to harness. */
18
+ source?: ExecutionTraceSource;
19
+ /** SDK identity for harness events; worker events have no harness. */
20
+ harness: string | null;
17
21
  events: ExecutionTraceEvent[];
18
22
  }
19
23
  /** Permanent rejections are quarantined locally instead of retried forever. */
@@ -26,3 +30,19 @@ export interface ExecutionTraceAck {
26
30
  export declare const EXECUTION_TRACE_BATCH_BYTES: number;
27
31
  export declare const EXECUTION_TRACE_MAX_BYTES: number;
28
32
  export declare const EXECUTION_TRACE_BATCH_SIZE = 100;
33
+ /** Worker lifecycle records share the execution sequence with harness events. */
34
+ export type ExecutionStep = "workspace" | "setup" | "agent" | "finish";
35
+ export type ExecutionStepStatus = "running" | "completed" | "failed" | "interrupted" | "cancelled";
36
+ export type ExecutionRepositoryProgress = {
37
+ slug: string;
38
+ repository: string;
39
+ action: "clone" | "fetch";
40
+ status: "running" | "completed" | "failed";
41
+ };
42
+ export type ExecutionStepEvent = {
43
+ type: "taico.execution.step";
44
+ step: ExecutionStep;
45
+ status: ExecutionStepStatus;
46
+ message?: string;
47
+ repository?: ExecutionRepositoryProgress;
48
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taico/events",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "license": "PolyForm-Small-Business-1.0.0",