@adecore/agent-contracts 0.25.3 → 0.25.4
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/task.d.ts +2 -0
- package/dist/task.js +3 -1
- package/package.json +2 -2
- package/src/task.ts +3 -1
package/dist/task.d.ts
CHANGED
|
@@ -59,6 +59,7 @@ export declare const TaskSchema: z.ZodObject<{
|
|
|
59
59
|
}>;
|
|
60
60
|
until: z.ZodOptional<z.ZodNumber>;
|
|
61
61
|
}, z.core.$strip>>;
|
|
62
|
+
machine: z.ZodOptional<z.ZodString>;
|
|
62
63
|
}, z.core.$strip>;
|
|
63
64
|
export type Task = z.infer<typeof TaskSchema>;
|
|
64
65
|
export declare const TaskChangedEventSchema: z.ZodObject<{
|
|
@@ -105,6 +106,7 @@ export declare const TaskChangedEventSchema: z.ZodObject<{
|
|
|
105
106
|
}>;
|
|
106
107
|
until: z.ZodOptional<z.ZodNumber>;
|
|
107
108
|
}, z.core.$strip>>;
|
|
109
|
+
machine: z.ZodOptional<z.ZodString>;
|
|
108
110
|
}, z.core.$strip>;
|
|
109
111
|
}, z.core.$strip>;
|
|
110
112
|
export type TaskChangedEvent = z.infer<typeof TaskChangedEventSchema>;
|
package/dist/task.js
CHANGED
|
@@ -28,6 +28,8 @@ export const TaskSchema = z.object({
|
|
|
28
28
|
// Whether the parent has been woken about this task yet; `none` for a task that never wakes anybody.
|
|
29
29
|
wake: z.enum(['pending', 'sent', 'none']),
|
|
30
30
|
// Set while the child's last turn stopped on a limit: the task stays open and wakes nobody, `until` the limit lifts when known.
|
|
31
|
-
paused: z.object({ kind: z.enum(['usage', 'overload']), until: z.number().optional() }).optional()
|
|
31
|
+
paused: z.object({ kind: z.enum(['usage', 'overload']), until: z.number().optional() }).optional(),
|
|
32
|
+
// The machine the child runs on, when that is not this one: no chat here observes it, so its result arrives through `settleFromElsewhere`.
|
|
33
|
+
machine: z.string().min(1).optional()
|
|
32
34
|
});
|
|
33
35
|
export const TaskChangedEventSchema = z.object({ task: TaskSchema });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adecore/agent-contracts",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.4",
|
|
4
4
|
"description": "Schemas and port contracts for agent chats, provider accounts, models and usage.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"test": "bun --conditions=source test"
|
|
87
87
|
},
|
|
88
88
|
"dependencies": {
|
|
89
|
-
"@adecore/intelligent-ui": "0.25.
|
|
89
|
+
"@adecore/intelligent-ui": "0.25.4",
|
|
90
90
|
"zod": "^4.6.5"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
package/src/task.ts
CHANGED
|
@@ -33,7 +33,9 @@ export const TaskSchema = z.object({
|
|
|
33
33
|
// Whether the parent has been woken about this task yet; `none` for a task that never wakes anybody.
|
|
34
34
|
wake: z.enum(['pending', 'sent', 'none']),
|
|
35
35
|
// Set while the child's last turn stopped on a limit: the task stays open and wakes nobody, `until` the limit lifts when known.
|
|
36
|
-
paused: z.object({ kind: z.enum(['usage', 'overload']), until: z.number().optional() }).optional()
|
|
36
|
+
paused: z.object({ kind: z.enum(['usage', 'overload']), until: z.number().optional() }).optional(),
|
|
37
|
+
// The machine the child runs on, when that is not this one: no chat here observes it, so its result arrives through `settleFromElsewhere`.
|
|
38
|
+
machine: z.string().min(1).optional()
|
|
37
39
|
});
|
|
38
40
|
export type Task = z.infer<typeof TaskSchema>;
|
|
39
41
|
|