@workflow/world-testing 4.0.1-beta.13 → 4.0.1-beta.15

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.
@@ -28,17 +28,59 @@ export declare function createFetcher(control: Control): {
28
28
  getRun(id: string): Promise<{
29
29
  runId: string;
30
30
  deploymentId: string;
31
- status: "pending" | "running" | "completed" | "failed" | "paused" | "cancelled";
32
31
  workflowName: string;
33
32
  input: any[];
34
33
  createdAt: Date;
35
34
  updatedAt: Date;
35
+ status: "pending" | "running" | "paused";
36
+ output: undefined;
37
+ error: undefined;
38
+ completedAt: undefined;
39
+ executionContext?: Record<string, any> | undefined;
40
+ startedAt?: Date | undefined;
41
+ } | {
42
+ runId: string;
43
+ deploymentId: string;
44
+ workflowName: string;
45
+ input: any[];
46
+ createdAt: Date;
47
+ updatedAt: Date;
48
+ status: "cancelled";
49
+ output: undefined;
50
+ error: undefined;
51
+ completedAt: Date;
52
+ executionContext?: Record<string, any> | undefined;
53
+ startedAt?: Date | undefined;
54
+ } | {
55
+ runId: string;
56
+ deploymentId: string;
57
+ workflowName: string;
58
+ input: any[];
59
+ createdAt: Date;
60
+ updatedAt: Date;
61
+ status: "completed";
62
+ output: any;
63
+ error: undefined;
64
+ completedAt: Date;
65
+ executionContext?: Record<string, any> | undefined;
66
+ startedAt?: Date | undefined;
67
+ } | {
68
+ runId: string;
69
+ deploymentId: string;
70
+ workflowName: string;
71
+ input: any[];
72
+ createdAt: Date;
73
+ updatedAt: Date;
74
+ status: "failed";
75
+ output: undefined;
76
+ error: {
77
+ message: string;
78
+ stack?: string | undefined;
79
+ code?: string | undefined;
80
+ };
81
+ completedAt: Date;
36
82
  executionContext?: Record<string, any> | undefined;
37
- output?: any;
38
- error?: string | undefined;
39
- errorCode?: string | undefined;
40
83
  startedAt?: Date | undefined;
41
- completedAt?: Date | undefined;
42
84
  }>;
43
85
  };
44
86
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"util.d.mts","sour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;AAEF,wBAAsB,WAAW,CAAC,IAAI,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE;;;;;GA4CxD;AAID,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO;WAE7B,CAAC,SAAS,KAAK,EAAE,CAAC,SAAS,SAAS,CAAC,CAAC,CAAC,QAC5C,CAAC,YACG,CAAC,QACL,OAAO,EAAE;;;eAYA,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQ1B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workflow/world-testing",
3
- "version": "4.0.1-beta.13",
3
+ "version": "4.0.1-beta.15",
4
4
  "description": "Testing utilities and World implementation for Workflow DevKit",
5
5
  "main": "dist/src/index.mjs",
6
6
  "files": [
@@ -16,18 +16,18 @@
16
16
  "directory": "packages/world-testing"
17
17
  },
18
18
  "dependencies": {
19
- "@hono/node-server": "^1.19.5",
20
- "chalk": "^5.6.2",
21
- "hono": "^4.9.10",
22
- "jsonlines": "^0.1.1",
19
+ "@hono/node-server": "1.19.5",
20
+ "chalk": "5.6.2",
21
+ "hono": "4.9.10",
22
+ "jsonlines": "0.1.1",
23
23
  "zod": "4.1.11",
24
- "@workflow/cli": "4.0.1-beta.12",
25
- "@workflow/world": "4.0.1-beta.4",
26
- "workflow": "4.0.1-beta.12"
24
+ "@workflow/cli": "4.0.1-beta.14",
25
+ "workflow": "4.0.1-beta.14",
26
+ "@workflow/world": "4.0.1-beta.5"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/node": "22.19.0",
30
- "@types/jsonlines": "^0.1.5",
30
+ "@types/jsonlines": "0.1.5",
31
31
  "vitest": "^3.2.4",
32
32
  "@workflow/tsconfig": "4.0.1-beta.0"
33
33
  },