@saturn-universe/protocol 0.1.2-dev.5 → 0.1.2-dev.6
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/team-results.d.ts +6 -0
- package/dist/team-results.js +2 -1
- package/package.json +2 -2
package/dist/team-results.d.ts
CHANGED
|
@@ -27,12 +27,17 @@ declare const teamQuery: z.ZodObject<{
|
|
|
27
27
|
status: z.ZodEnum<{
|
|
28
28
|
completed: "completed";
|
|
29
29
|
waiting: "waiting";
|
|
30
|
+
stopped: "stopped";
|
|
30
31
|
queued: "queued";
|
|
31
32
|
running: "running";
|
|
32
33
|
paused: "paused";
|
|
33
34
|
failed: "failed";
|
|
34
35
|
interrupted: "interrupted";
|
|
35
36
|
}>;
|
|
37
|
+
stopRequest: z.ZodOptional<z.ZodObject<{
|
|
38
|
+
requestedBy: z.ZodLiteral<"main">;
|
|
39
|
+
reason: z.ZodString;
|
|
40
|
+
}, z.core.$strip>>;
|
|
36
41
|
}, z.core.$strip>>;
|
|
37
42
|
tasks: z.ZodArray<z.ZodObject<{
|
|
38
43
|
memberId: z.ZodString;
|
|
@@ -41,6 +46,7 @@ declare const teamQuery: z.ZodObject<{
|
|
|
41
46
|
status: z.ZodEnum<{
|
|
42
47
|
completed: "completed";
|
|
43
48
|
waiting: "waiting";
|
|
49
|
+
stopped: "stopped";
|
|
44
50
|
queued: "queued";
|
|
45
51
|
running: "running";
|
|
46
52
|
paused: "paused";
|
package/dist/team-results.js
CHANGED
|
@@ -3,13 +3,14 @@ import { z } from 'zod';
|
|
|
3
3
|
const id = z.string().min(1);
|
|
4
4
|
const brandedId = () => id.transform((value) => value);
|
|
5
5
|
const runId = brandedId();
|
|
6
|
-
const workStatus = z.enum(['waiting', ...turnStatuses]);
|
|
6
|
+
const workStatus = z.enum(['waiting', 'stopped', ...turnStatuses]);
|
|
7
7
|
const member = z.object({
|
|
8
8
|
id,
|
|
9
9
|
parent: id.nullable(),
|
|
10
10
|
agentSessionId: brandedId(),
|
|
11
11
|
turnId: brandedId().optional(),
|
|
12
12
|
status: workStatus,
|
|
13
|
+
stopRequest: z.object({ requestedBy: z.literal('main'), reason: z.string() }).optional(),
|
|
13
14
|
});
|
|
14
15
|
const task = z.object({
|
|
15
16
|
memberId: id,
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saturn-universe/protocol",
|
|
3
|
-
"version": "0.1.2-dev.
|
|
3
|
+
"version": "0.1.2-dev.6",
|
|
4
4
|
"license": "AGPL-3.0-only",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
8
8
|
],
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@saturn-universe/core": "0.1.2-dev.
|
|
10
|
+
"@saturn-universe/core": "0.1.2-dev.6",
|
|
11
11
|
"smol-toml": "1.9.1",
|
|
12
12
|
"zod": "4.6.0"
|
|
13
13
|
},
|