@maiaos/protocol 0.1.0-canary.44938d4.manual.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 +239 -0
- package/dist/aggregate/revision-effect-schema.d.ts +3 -0
- package/dist/aggregate/revision-effect-schema.d.ts.map +1 -0
- package/dist/aggregate/revision-effect-schema.js +4 -0
- package/dist/aggregate/revision-effect-schema.js.map +1 -0
- package/dist/capability.d.ts +12 -0
- package/dist/capability.d.ts.map +1 -0
- package/dist/capability.js +27 -0
- package/dist/capability.js.map +1 -0
- package/dist/command-receipt/contract.d.ts +85 -0
- package/dist/command-receipt/contract.d.ts.map +1 -0
- package/dist/command-receipt/contract.js +12 -0
- package/dist/command-receipt/contract.js.map +1 -0
- package/dist/command-receipt/effect-schema.d.ts +78 -0
- package/dist/command-receipt/effect-schema.d.ts.map +1 -0
- package/dist/command-receipt/effect-schema.js +72 -0
- package/dist/command-receipt/effect-schema.js.map +1 -0
- package/dist/command-receipt/policy.d.ts +16 -0
- package/dist/command-receipt/policy.d.ts.map +1 -0
- package/dist/command-receipt/policy.js +76 -0
- package/dist/command-receipt/policy.js.map +1 -0
- package/dist/command-receipt/version.d.ts +2 -0
- package/dist/command-receipt/version.d.ts.map +1 -0
- package/dist/command-receipt/version.js +2 -0
- package/dist/command-receipt/version.js.map +1 -0
- package/dist/configuration.d.ts +63 -0
- package/dist/configuration.d.ts.map +1 -0
- package/dist/configuration.js +93 -0
- package/dist/configuration.js.map +1 -0
- package/dist/envelope-effect-schema.d.ts +49 -0
- package/dist/envelope-effect-schema.d.ts.map +1 -0
- package/dist/envelope-effect-schema.js +50 -0
- package/dist/envelope-effect-schema.js.map +1 -0
- package/dist/envelope-policy.d.ts +4 -0
- package/dist/envelope-policy.d.ts.map +1 -0
- package/dist/envelope-policy.js +4 -0
- package/dist/envelope-policy.js.map +1 -0
- package/dist/envelope.d.ts +52 -0
- package/dist/envelope.d.ts.map +1 -0
- package/dist/envelope.js +41 -0
- package/dist/envelope.js.map +1 -0
- package/dist/execution/contract.d.ts +230 -0
- package/dist/execution/contract.d.ts.map +1 -0
- package/dist/execution/contract.js +16 -0
- package/dist/execution/contract.js.map +1 -0
- package/dist/execution/effect-schema.d.ts +370 -0
- package/dist/execution/effect-schema.d.ts.map +1 -0
- package/dist/execution/effect-schema.js +148 -0
- package/dist/execution/effect-schema.js.map +1 -0
- package/dist/execution/version.d.ts +5 -0
- package/dist/execution/version.d.ts.map +1 -0
- package/dist/execution/version.js +5 -0
- package/dist/execution/version.js.map +1 -0
- package/dist/harness/installed/contract.d.ts +144 -0
- package/dist/harness/installed/contract.d.ts.map +1 -0
- package/dist/harness/installed/contract.js +6 -0
- package/dist/harness/installed/contract.js.map +1 -0
- package/dist/harness/installed/effect-schema.d.ts +261 -0
- package/dist/harness/installed/effect-schema.d.ts.map +1 -0
- package/dist/harness/installed/effect-schema.js +63 -0
- package/dist/harness/installed/effect-schema.js.map +1 -0
- package/dist/harness/installed/version.d.ts +2 -0
- package/dist/harness/installed/version.d.ts.map +1 -0
- package/dist/harness/installed/version.js +2 -0
- package/dist/harness/installed/version.js.map +1 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -0
- package/dist/integration-authorization/contract.d.ts +3495 -0
- package/dist/integration-authorization/contract.d.ts.map +1 -0
- package/dist/integration-authorization/contract.js +25 -0
- package/dist/integration-authorization/contract.js.map +1 -0
- package/dist/integration-authorization/effect-schema.d.ts +4495 -0
- package/dist/integration-authorization/effect-schema.d.ts.map +1 -0
- package/dist/integration-authorization/effect-schema.js +293 -0
- package/dist/integration-authorization/effect-schema.js.map +1 -0
- package/dist/integration-authorization/policy.d.ts +5 -0
- package/dist/integration-authorization/policy.d.ts.map +1 -0
- package/dist/integration-authorization/policy.js +5 -0
- package/dist/integration-authorization/policy.js.map +1 -0
- package/dist/integration-authorization/version.d.ts +2 -0
- package/dist/integration-authorization/version.d.ts.map +1 -0
- package/dist/integration-authorization/version.js +2 -0
- package/dist/integration-authorization/version.js.map +1 -0
- package/dist/invocation-context/contract.d.ts +38 -0
- package/dist/invocation-context/contract.d.ts.map +1 -0
- package/dist/invocation-context/contract.js +7 -0
- package/dist/invocation-context/contract.js.map +1 -0
- package/dist/invocation-context/effect-schema.d.ts +63 -0
- package/dist/invocation-context/effect-schema.d.ts.map +1 -0
- package/dist/invocation-context/effect-schema.js +52 -0
- package/dist/invocation-context/effect-schema.js.map +1 -0
- package/dist/invocation-context/policy.d.ts +8 -0
- package/dist/invocation-context/policy.d.ts.map +1 -0
- package/dist/invocation-context/policy.js +8 -0
- package/dist/invocation-context/policy.js.map +1 -0
- package/dist/invocation-context/version.d.ts +2 -0
- package/dist/invocation-context/version.d.ts.map +1 -0
- package/dist/invocation-context/version.js +2 -0
- package/dist/invocation-context/version.js.map +1 -0
- package/dist/local-node/contract.d.ts +233 -0
- package/dist/local-node/contract.d.ts.map +1 -0
- package/dist/local-node/contract.js +43 -0
- package/dist/local-node/contract.js.map +1 -0
- package/dist/local-node/effect-schema.d.ts +58786 -0
- package/dist/local-node/effect-schema.d.ts.map +1 -0
- package/dist/local-node/effect-schema.js +279 -0
- package/dist/local-node/effect-schema.js.map +1 -0
- package/dist/local-node/methods.d.ts +4 -0
- package/dist/local-node/methods.d.ts.map +1 -0
- package/dist/local-node/methods.js +73 -0
- package/dist/local-node/methods.js.map +1 -0
- package/dist/local-node/policy.d.ts +11 -0
- package/dist/local-node/policy.d.ts.map +1 -0
- package/dist/local-node/policy.js +11 -0
- package/dist/local-node/policy.js.map +1 -0
- package/dist/local-node.d.ts +2 -0
- package/dist/local-node.d.ts.map +1 -0
- package/dist/local-node.js +2 -0
- package/dist/local-node.js.map +1 -0
- package/dist/orchestration/canonical.d.ts +12 -0
- package/dist/orchestration/canonical.d.ts.map +1 -0
- package/dist/orchestration/canonical.js +50 -0
- package/dist/orchestration/canonical.js.map +1 -0
- package/dist/orchestration/contract.d.ts +2867 -0
- package/dist/orchestration/contract.d.ts.map +1 -0
- package/dist/orchestration/contract.js +45 -0
- package/dist/orchestration/contract.js.map +1 -0
- package/dist/orchestration/effect-schema.d.ts +4933 -0
- package/dist/orchestration/effect-schema.d.ts.map +1 -0
- package/dist/orchestration/effect-schema.js +610 -0
- package/dist/orchestration/effect-schema.js.map +1 -0
- package/dist/orchestration/policy.d.ts +28 -0
- package/dist/orchestration/policy.d.ts.map +1 -0
- package/dist/orchestration/policy.js +28 -0
- package/dist/orchestration/policy.js.map +1 -0
- package/dist/orchestration/topology.d.ts +13 -0
- package/dist/orchestration/topology.d.ts.map +1 -0
- package/dist/orchestration/topology.js +109 -0
- package/dist/orchestration/topology.js.map +1 -0
- package/dist/orchestration/version.d.ts +3 -0
- package/dist/orchestration/version.d.ts.map +1 -0
- package/dist/orchestration/version.js +3 -0
- package/dist/orchestration/version.js.map +1 -0
- package/dist/project-workspace/contract.d.ts +346 -0
- package/dist/project-workspace/contract.d.ts.map +1 -0
- package/dist/project-workspace/contract.js +20 -0
- package/dist/project-workspace/contract.js.map +1 -0
- package/dist/project-workspace/effect-schema.d.ts +602 -0
- package/dist/project-workspace/effect-schema.d.ts.map +1 -0
- package/dist/project-workspace/effect-schema.js +185 -0
- package/dist/project-workspace/effect-schema.js.map +1 -0
- package/dist/project-workspace/version.d.ts +5 -0
- package/dist/project-workspace/version.d.ts.map +1 -0
- package/dist/project-workspace/version.js +5 -0
- package/dist/project-workspace/version.js.map +1 -0
- package/dist/runtime/contract.d.ts +172 -0
- package/dist/runtime/contract.d.ts.map +1 -0
- package/dist/runtime/contract.js +6 -0
- package/dist/runtime/contract.js.map +1 -0
- package/dist/runtime/effect-schema.d.ts +211 -0
- package/dist/runtime/effect-schema.d.ts.map +1 -0
- package/dist/runtime/effect-schema.js +137 -0
- package/dist/runtime/effect-schema.js.map +1 -0
- package/dist/runtime/version.d.ts +2 -0
- package/dist/runtime/version.d.ts.map +1 -0
- package/dist/runtime/version.js +2 -0
- package/dist/runtime/version.js.map +1 -0
- package/dist/runtime-schema-effect.d.ts +4 -0
- package/dist/runtime-schema-effect.d.ts.map +1 -0
- package/dist/runtime-schema-effect.js +25 -0
- package/dist/runtime-schema-effect.js.map +1 -0
- package/dist/runtime-schema.d.ts +23 -0
- package/dist/runtime-schema.d.ts.map +1 -0
- package/dist/runtime-schema.js +12 -0
- package/dist/runtime-schema.js.map +1 -0
- package/dist/session/contract.d.ts +666 -0
- package/dist/session/contract.d.ts.map +1 -0
- package/dist/session/contract.js +16 -0
- package/dist/session/contract.js.map +1 -0
- package/dist/session/effect-schema.d.ts +1176 -0
- package/dist/session/effect-schema.d.ts.map +1 -0
- package/dist/session/effect-schema.js +195 -0
- package/dist/session/effect-schema.js.map +1 -0
- package/dist/session/version.d.ts +4 -0
- package/dist/session/version.d.ts.map +1 -0
- package/dist/session/version.js +4 -0
- package/dist/session/version.js.map +1 -0
- package/dist/temporal/recorded-at.d.ts +3 -0
- package/dist/temporal/recorded-at.d.ts.map +1 -0
- package/dist/temporal/recorded-at.js +13 -0
- package/dist/temporal/recorded-at.js.map +1 -0
- package/dist/terminal/contract.d.ts +3502 -0
- package/dist/terminal/contract.d.ts.map +1 -0
- package/dist/terminal/contract.js +31 -0
- package/dist/terminal/contract.js.map +1 -0
- package/dist/terminal/effect-schema.d.ts +15745 -0
- package/dist/terminal/effect-schema.d.ts.map +1 -0
- package/dist/terminal/effect-schema.js +193 -0
- package/dist/terminal/effect-schema.js.map +1 -0
- package/dist/terminal/live-contract.d.ts +87 -0
- package/dist/terminal/live-contract.d.ts.map +1 -0
- package/dist/terminal/live-contract.js +52 -0
- package/dist/terminal/live-contract.js.map +1 -0
- package/dist/terminal/live-effect-schema.d.ts +24770 -0
- package/dist/terminal/live-effect-schema.d.ts.map +1 -0
- package/dist/terminal/live-effect-schema.js +987 -0
- package/dist/terminal/live-effect-schema.js.map +1 -0
- package/dist/terminal/live-policy.d.ts +79 -0
- package/dist/terminal/live-policy.d.ts.map +1 -0
- package/dist/terminal/live-policy.js +91 -0
- package/dist/terminal/live-policy.js.map +1 -0
- package/dist/terminal/live-types.d.ts +584 -0
- package/dist/terminal/live-types.d.ts.map +1 -0
- package/dist/terminal/live-types.js +2 -0
- package/dist/terminal/live-types.js.map +1 -0
- package/dist/terminal/live-version.d.ts +4 -0
- package/dist/terminal/live-version.d.ts.map +1 -0
- package/dist/terminal/live-version.js +4 -0
- package/dist/terminal/live-version.js.map +1 -0
- package/dist/terminal/policy.d.ts +5 -0
- package/dist/terminal/policy.d.ts.map +1 -0
- package/dist/terminal/policy.js +5 -0
- package/dist/terminal/policy.js.map +1 -0
- package/dist/terminal/version.d.ts +4 -0
- package/dist/terminal/version.d.ts.map +1 -0
- package/dist/terminal/version.js +4 -0
- package/dist/terminal/version.js.map +1 -0
- package/dist/turn/contract.d.ts +493 -0
- package/dist/turn/contract.d.ts.map +1 -0
- package/dist/turn/contract.js +14 -0
- package/dist/turn/contract.js.map +1 -0
- package/dist/turn/effect-schema.d.ts +1063 -0
- package/dist/turn/effect-schema.d.ts.map +1 -0
- package/dist/turn/effect-schema.js +215 -0
- package/dist/turn/effect-schema.js.map +1 -0
- package/dist/turn/policy.d.ts +3 -0
- package/dist/turn/policy.d.ts.map +1 -0
- package/dist/turn/policy.js +3 -0
- package/dist/turn/policy.js.map +1 -0
- package/dist/turn/version.d.ts +2 -0
- package/dist/turn/version.d.ts.map +1 -0
- package/dist/turn/version.js +2 -0
- package/dist/turn/version.js.map +1 -0
- package/package.json +40 -0
|
@@ -0,0 +1,2867 @@
|
|
|
1
|
+
import type { InferRuntimeSchema } from "../runtime-schema.js";
|
|
2
|
+
export declare const orchestrationTaskInputSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
3
|
+
readonly clientKey: string;
|
|
4
|
+
readonly dependsOn: readonly string[];
|
|
5
|
+
readonly objective: string;
|
|
6
|
+
}>;
|
|
7
|
+
export type OrchestrationTaskInput = InferRuntimeSchema<typeof orchestrationTaskInputSchema>;
|
|
8
|
+
export declare const orchestrationTaskGraphSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
9
|
+
readonly dispatchTaskKey: string;
|
|
10
|
+
readonly rootTaskKey: string;
|
|
11
|
+
readonly tasks: readonly {
|
|
12
|
+
readonly clientKey: string;
|
|
13
|
+
readonly dependsOn: readonly string[];
|
|
14
|
+
readonly objective: string;
|
|
15
|
+
}[];
|
|
16
|
+
}>;
|
|
17
|
+
export type OrchestrationTaskGraph = InferRuntimeSchema<typeof orchestrationTaskGraphSchema>;
|
|
18
|
+
export declare const orchestrationTaskSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
19
|
+
readonly objective: string;
|
|
20
|
+
readonly clientKey: string;
|
|
21
|
+
readonly createdAt: string;
|
|
22
|
+
readonly dependencyTaskIds: readonly string[];
|
|
23
|
+
readonly id: string;
|
|
24
|
+
readonly revision: string;
|
|
25
|
+
readonly runId: string;
|
|
26
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
27
|
+
readonly state: "failed" | "active" | "pending" | "waiting-question";
|
|
28
|
+
readonly updatedAt: string;
|
|
29
|
+
readonly workspaceId: string;
|
|
30
|
+
}>;
|
|
31
|
+
export type OrchestrationTask = InferRuntimeSchema<typeof orchestrationTaskSchema>;
|
|
32
|
+
export declare const orchestrationTaskSummarySchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
33
|
+
readonly clientKey: string;
|
|
34
|
+
readonly createdAt: string;
|
|
35
|
+
readonly dependencyTaskIds: readonly string[];
|
|
36
|
+
readonly id: string;
|
|
37
|
+
readonly revision: string;
|
|
38
|
+
readonly runId: string;
|
|
39
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
40
|
+
readonly state: "failed" | "active" | "pending" | "waiting-question";
|
|
41
|
+
readonly updatedAt: string;
|
|
42
|
+
readonly workspaceId: string;
|
|
43
|
+
}>;
|
|
44
|
+
export type OrchestrationTaskSummary = InferRuntimeSchema<typeof orchestrationTaskSummarySchema>;
|
|
45
|
+
export declare const orchestrationRunSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
46
|
+
readonly coordinator: {
|
|
47
|
+
readonly actorId: "actor_local_user";
|
|
48
|
+
readonly epoch: 1;
|
|
49
|
+
};
|
|
50
|
+
readonly createdAt: string;
|
|
51
|
+
readonly dispatchTaskId: string;
|
|
52
|
+
readonly id: string;
|
|
53
|
+
readonly revision: string;
|
|
54
|
+
readonly rootTaskId: string;
|
|
55
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
56
|
+
readonly state: "failed" | "active" | "waiting-question";
|
|
57
|
+
readonly terminalId: string;
|
|
58
|
+
readonly updatedAt: string;
|
|
59
|
+
readonly workspaceId: string;
|
|
60
|
+
}>;
|
|
61
|
+
export type OrchestrationRun = InferRuntimeSchema<typeof orchestrationRunSchema>;
|
|
62
|
+
export declare const orchestrationAttemptSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
63
|
+
readonly createdAt: string;
|
|
64
|
+
readonly id: string;
|
|
65
|
+
readonly ordinal: 1;
|
|
66
|
+
readonly revision: string;
|
|
67
|
+
readonly runId: string;
|
|
68
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
69
|
+
readonly state: "failed" | "active" | "waiting-question";
|
|
70
|
+
readonly taskId: string;
|
|
71
|
+
readonly updatedAt: string;
|
|
72
|
+
}>;
|
|
73
|
+
export type OrchestrationAttempt = InferRuntimeSchema<typeof orchestrationAttemptSchema>;
|
|
74
|
+
export declare const orchestrationDispatchSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
75
|
+
readonly state: "active";
|
|
76
|
+
readonly attemptId: string;
|
|
77
|
+
readonly createdAt: string;
|
|
78
|
+
readonly id: string;
|
|
79
|
+
readonly revision: string;
|
|
80
|
+
readonly runId: string;
|
|
81
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
82
|
+
readonly taskId: string;
|
|
83
|
+
readonly terminalId: string;
|
|
84
|
+
readonly updatedAt: string;
|
|
85
|
+
} | {
|
|
86
|
+
readonly state: "waiting-question";
|
|
87
|
+
readonly attemptId: string;
|
|
88
|
+
readonly createdAt: string;
|
|
89
|
+
readonly id: string;
|
|
90
|
+
readonly revision: string;
|
|
91
|
+
readonly runId: string;
|
|
92
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
93
|
+
readonly taskId: string;
|
|
94
|
+
readonly terminalId: string;
|
|
95
|
+
readonly updatedAt: string;
|
|
96
|
+
} | {
|
|
97
|
+
readonly failure: {
|
|
98
|
+
readonly code: "terminal_containment_unsupported";
|
|
99
|
+
readonly platform: "darwin" | "linux";
|
|
100
|
+
} | {
|
|
101
|
+
readonly code: "platform_unsupported";
|
|
102
|
+
readonly platform: "win32" | "other";
|
|
103
|
+
};
|
|
104
|
+
readonly state: "failed";
|
|
105
|
+
readonly attemptId: string;
|
|
106
|
+
readonly createdAt: string;
|
|
107
|
+
readonly id: string;
|
|
108
|
+
readonly revision: string;
|
|
109
|
+
readonly runId: string;
|
|
110
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
111
|
+
readonly taskId: string;
|
|
112
|
+
readonly terminalId: string;
|
|
113
|
+
readonly updatedAt: string;
|
|
114
|
+
}>;
|
|
115
|
+
export type OrchestrationDispatch = InferRuntimeSchema<typeof orchestrationDispatchSchema>;
|
|
116
|
+
export declare const orchestrationMailboxSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
117
|
+
readonly contentBytes: string;
|
|
118
|
+
readonly createdAt: string;
|
|
119
|
+
readonly deliveryCount: string;
|
|
120
|
+
readonly headSequence: string;
|
|
121
|
+
readonly id: string;
|
|
122
|
+
readonly owner: {
|
|
123
|
+
readonly id: string;
|
|
124
|
+
readonly kind: "run";
|
|
125
|
+
} | {
|
|
126
|
+
readonly id: string;
|
|
127
|
+
readonly kind: "dispatch";
|
|
128
|
+
};
|
|
129
|
+
readonly revision: string;
|
|
130
|
+
readonly runId: string;
|
|
131
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
132
|
+
readonly updatedAt: string;
|
|
133
|
+
}>;
|
|
134
|
+
export type OrchestrationMailbox = InferRuntimeSchema<typeof orchestrationMailboxSchema>;
|
|
135
|
+
export declare const orchestrationMessageSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
136
|
+
readonly recipient: {
|
|
137
|
+
readonly id: string;
|
|
138
|
+
readonly kind: "dispatch";
|
|
139
|
+
};
|
|
140
|
+
readonly type: "dispatch";
|
|
141
|
+
readonly body: string;
|
|
142
|
+
readonly createdAt: string;
|
|
143
|
+
readonly digest: string;
|
|
144
|
+
readonly id: string;
|
|
145
|
+
readonly runId: string;
|
|
146
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
147
|
+
readonly sender: {
|
|
148
|
+
readonly actorId: "actor_local_user";
|
|
149
|
+
readonly kind: "run-coordinator";
|
|
150
|
+
readonly runId: string;
|
|
151
|
+
};
|
|
152
|
+
readonly subject: string;
|
|
153
|
+
} | {
|
|
154
|
+
readonly questionId: string;
|
|
155
|
+
readonly recipient: {
|
|
156
|
+
readonly id: string;
|
|
157
|
+
readonly kind: "run";
|
|
158
|
+
};
|
|
159
|
+
readonly type: "question";
|
|
160
|
+
readonly body: string;
|
|
161
|
+
readonly createdAt: string;
|
|
162
|
+
readonly digest: string;
|
|
163
|
+
readonly id: string;
|
|
164
|
+
readonly runId: string;
|
|
165
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
166
|
+
readonly sender: {
|
|
167
|
+
readonly actorId: "actor_local_user";
|
|
168
|
+
readonly kind: "run-coordinator";
|
|
169
|
+
readonly runId: string;
|
|
170
|
+
};
|
|
171
|
+
readonly subject: string;
|
|
172
|
+
} | {
|
|
173
|
+
readonly questionId: string;
|
|
174
|
+
readonly recipient: {
|
|
175
|
+
readonly id: string;
|
|
176
|
+
readonly kind: "dispatch";
|
|
177
|
+
};
|
|
178
|
+
readonly type: "reply";
|
|
179
|
+
readonly body: string;
|
|
180
|
+
readonly createdAt: string;
|
|
181
|
+
readonly digest: string;
|
|
182
|
+
readonly id: string;
|
|
183
|
+
readonly runId: string;
|
|
184
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
185
|
+
readonly sender: {
|
|
186
|
+
readonly actorId: "actor_local_user";
|
|
187
|
+
readonly kind: "run-coordinator";
|
|
188
|
+
readonly runId: string;
|
|
189
|
+
};
|
|
190
|
+
readonly subject: string;
|
|
191
|
+
} | {
|
|
192
|
+
readonly recipient: {
|
|
193
|
+
readonly id: string;
|
|
194
|
+
readonly kind: "run";
|
|
195
|
+
};
|
|
196
|
+
readonly type: "dispatch-settled";
|
|
197
|
+
readonly body: string;
|
|
198
|
+
readonly createdAt: string;
|
|
199
|
+
readonly digest: string;
|
|
200
|
+
readonly id: string;
|
|
201
|
+
readonly runId: string;
|
|
202
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
203
|
+
readonly sender: {
|
|
204
|
+
readonly actorId: "actor_local_user";
|
|
205
|
+
readonly kind: "run-coordinator";
|
|
206
|
+
readonly runId: string;
|
|
207
|
+
};
|
|
208
|
+
readonly subject: string;
|
|
209
|
+
}>;
|
|
210
|
+
export type OrchestrationMessage = InferRuntimeSchema<typeof orchestrationMessageSchema>;
|
|
211
|
+
export declare const orchestrationDeliverySchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
212
|
+
readonly message: {
|
|
213
|
+
readonly recipient: {
|
|
214
|
+
readonly id: string;
|
|
215
|
+
readonly kind: "dispatch";
|
|
216
|
+
};
|
|
217
|
+
readonly type: "dispatch";
|
|
218
|
+
readonly body: string;
|
|
219
|
+
readonly createdAt: string;
|
|
220
|
+
readonly digest: string;
|
|
221
|
+
readonly id: string;
|
|
222
|
+
readonly runId: string;
|
|
223
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
224
|
+
readonly sender: {
|
|
225
|
+
readonly actorId: "actor_local_user";
|
|
226
|
+
readonly kind: "run-coordinator";
|
|
227
|
+
readonly runId: string;
|
|
228
|
+
};
|
|
229
|
+
readonly subject: string;
|
|
230
|
+
} | {
|
|
231
|
+
readonly questionId: string;
|
|
232
|
+
readonly recipient: {
|
|
233
|
+
readonly id: string;
|
|
234
|
+
readonly kind: "run";
|
|
235
|
+
};
|
|
236
|
+
readonly type: "question";
|
|
237
|
+
readonly body: string;
|
|
238
|
+
readonly createdAt: string;
|
|
239
|
+
readonly digest: string;
|
|
240
|
+
readonly id: string;
|
|
241
|
+
readonly runId: string;
|
|
242
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
243
|
+
readonly sender: {
|
|
244
|
+
readonly actorId: "actor_local_user";
|
|
245
|
+
readonly kind: "run-coordinator";
|
|
246
|
+
readonly runId: string;
|
|
247
|
+
};
|
|
248
|
+
readonly subject: string;
|
|
249
|
+
} | {
|
|
250
|
+
readonly questionId: string;
|
|
251
|
+
readonly recipient: {
|
|
252
|
+
readonly id: string;
|
|
253
|
+
readonly kind: "dispatch";
|
|
254
|
+
};
|
|
255
|
+
readonly type: "reply";
|
|
256
|
+
readonly body: string;
|
|
257
|
+
readonly createdAt: string;
|
|
258
|
+
readonly digest: string;
|
|
259
|
+
readonly id: string;
|
|
260
|
+
readonly runId: string;
|
|
261
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
262
|
+
readonly sender: {
|
|
263
|
+
readonly actorId: "actor_local_user";
|
|
264
|
+
readonly kind: "run-coordinator";
|
|
265
|
+
readonly runId: string;
|
|
266
|
+
};
|
|
267
|
+
readonly subject: string;
|
|
268
|
+
} | {
|
|
269
|
+
readonly recipient: {
|
|
270
|
+
readonly id: string;
|
|
271
|
+
readonly kind: "run";
|
|
272
|
+
};
|
|
273
|
+
readonly type: "dispatch-settled";
|
|
274
|
+
readonly body: string;
|
|
275
|
+
readonly createdAt: string;
|
|
276
|
+
readonly digest: string;
|
|
277
|
+
readonly id: string;
|
|
278
|
+
readonly runId: string;
|
|
279
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
280
|
+
readonly sender: {
|
|
281
|
+
readonly actorId: "actor_local_user";
|
|
282
|
+
readonly kind: "run-coordinator";
|
|
283
|
+
readonly runId: string;
|
|
284
|
+
};
|
|
285
|
+
readonly subject: string;
|
|
286
|
+
};
|
|
287
|
+
readonly state: "pending";
|
|
288
|
+
readonly id: string;
|
|
289
|
+
readonly createdAt: string;
|
|
290
|
+
readonly mailboxId: string;
|
|
291
|
+
readonly attemptCount: number;
|
|
292
|
+
readonly sequence: string;
|
|
293
|
+
readonly firstDeliveredAt?: string | undefined;
|
|
294
|
+
readonly lastDeliveredAt?: string | undefined;
|
|
295
|
+
} | {
|
|
296
|
+
readonly message: {
|
|
297
|
+
readonly recipient: {
|
|
298
|
+
readonly id: string;
|
|
299
|
+
readonly kind: "dispatch";
|
|
300
|
+
};
|
|
301
|
+
readonly type: "dispatch";
|
|
302
|
+
readonly body: string;
|
|
303
|
+
readonly createdAt: string;
|
|
304
|
+
readonly digest: string;
|
|
305
|
+
readonly id: string;
|
|
306
|
+
readonly runId: string;
|
|
307
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
308
|
+
readonly sender: {
|
|
309
|
+
readonly actorId: "actor_local_user";
|
|
310
|
+
readonly kind: "run-coordinator";
|
|
311
|
+
readonly runId: string;
|
|
312
|
+
};
|
|
313
|
+
readonly subject: string;
|
|
314
|
+
} | {
|
|
315
|
+
readonly questionId: string;
|
|
316
|
+
readonly recipient: {
|
|
317
|
+
readonly id: string;
|
|
318
|
+
readonly kind: "run";
|
|
319
|
+
};
|
|
320
|
+
readonly type: "question";
|
|
321
|
+
readonly body: string;
|
|
322
|
+
readonly createdAt: string;
|
|
323
|
+
readonly digest: string;
|
|
324
|
+
readonly id: string;
|
|
325
|
+
readonly runId: string;
|
|
326
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
327
|
+
readonly sender: {
|
|
328
|
+
readonly actorId: "actor_local_user";
|
|
329
|
+
readonly kind: "run-coordinator";
|
|
330
|
+
readonly runId: string;
|
|
331
|
+
};
|
|
332
|
+
readonly subject: string;
|
|
333
|
+
} | {
|
|
334
|
+
readonly questionId: string;
|
|
335
|
+
readonly recipient: {
|
|
336
|
+
readonly id: string;
|
|
337
|
+
readonly kind: "dispatch";
|
|
338
|
+
};
|
|
339
|
+
readonly type: "reply";
|
|
340
|
+
readonly body: string;
|
|
341
|
+
readonly createdAt: string;
|
|
342
|
+
readonly digest: string;
|
|
343
|
+
readonly id: string;
|
|
344
|
+
readonly runId: string;
|
|
345
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
346
|
+
readonly sender: {
|
|
347
|
+
readonly actorId: "actor_local_user";
|
|
348
|
+
readonly kind: "run-coordinator";
|
|
349
|
+
readonly runId: string;
|
|
350
|
+
};
|
|
351
|
+
readonly subject: string;
|
|
352
|
+
} | {
|
|
353
|
+
readonly recipient: {
|
|
354
|
+
readonly id: string;
|
|
355
|
+
readonly kind: "run";
|
|
356
|
+
};
|
|
357
|
+
readonly type: "dispatch-settled";
|
|
358
|
+
readonly body: string;
|
|
359
|
+
readonly createdAt: string;
|
|
360
|
+
readonly digest: string;
|
|
361
|
+
readonly id: string;
|
|
362
|
+
readonly runId: string;
|
|
363
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
364
|
+
readonly sender: {
|
|
365
|
+
readonly actorId: "actor_local_user";
|
|
366
|
+
readonly kind: "run-coordinator";
|
|
367
|
+
readonly runId: string;
|
|
368
|
+
};
|
|
369
|
+
readonly subject: string;
|
|
370
|
+
};
|
|
371
|
+
readonly state: "acknowledged";
|
|
372
|
+
readonly id: string;
|
|
373
|
+
readonly createdAt: string;
|
|
374
|
+
readonly mailboxId: string;
|
|
375
|
+
readonly attemptCount: number;
|
|
376
|
+
readonly sequence: string;
|
|
377
|
+
readonly acknowledgingActorId: "actor_local_user";
|
|
378
|
+
readonly acknowledgedAt: string;
|
|
379
|
+
readonly firstDeliveredAt?: string | undefined;
|
|
380
|
+
readonly lastDeliveredAt?: string | undefined;
|
|
381
|
+
}>;
|
|
382
|
+
export type OrchestrationDelivery = InferRuntimeSchema<typeof orchestrationDeliverySchema>;
|
|
383
|
+
export declare const orchestrationPendingDeliverySchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
384
|
+
readonly message: {
|
|
385
|
+
readonly recipient: {
|
|
386
|
+
readonly id: string;
|
|
387
|
+
readonly kind: "dispatch";
|
|
388
|
+
};
|
|
389
|
+
readonly type: "dispatch";
|
|
390
|
+
readonly body: string;
|
|
391
|
+
readonly createdAt: string;
|
|
392
|
+
readonly digest: string;
|
|
393
|
+
readonly id: string;
|
|
394
|
+
readonly runId: string;
|
|
395
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
396
|
+
readonly sender: {
|
|
397
|
+
readonly actorId: "actor_local_user";
|
|
398
|
+
readonly kind: "run-coordinator";
|
|
399
|
+
readonly runId: string;
|
|
400
|
+
};
|
|
401
|
+
readonly subject: string;
|
|
402
|
+
} | {
|
|
403
|
+
readonly questionId: string;
|
|
404
|
+
readonly recipient: {
|
|
405
|
+
readonly id: string;
|
|
406
|
+
readonly kind: "run";
|
|
407
|
+
};
|
|
408
|
+
readonly type: "question";
|
|
409
|
+
readonly body: string;
|
|
410
|
+
readonly createdAt: string;
|
|
411
|
+
readonly digest: string;
|
|
412
|
+
readonly id: string;
|
|
413
|
+
readonly runId: string;
|
|
414
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
415
|
+
readonly sender: {
|
|
416
|
+
readonly actorId: "actor_local_user";
|
|
417
|
+
readonly kind: "run-coordinator";
|
|
418
|
+
readonly runId: string;
|
|
419
|
+
};
|
|
420
|
+
readonly subject: string;
|
|
421
|
+
} | {
|
|
422
|
+
readonly questionId: string;
|
|
423
|
+
readonly recipient: {
|
|
424
|
+
readonly id: string;
|
|
425
|
+
readonly kind: "dispatch";
|
|
426
|
+
};
|
|
427
|
+
readonly type: "reply";
|
|
428
|
+
readonly body: string;
|
|
429
|
+
readonly createdAt: string;
|
|
430
|
+
readonly digest: string;
|
|
431
|
+
readonly id: string;
|
|
432
|
+
readonly runId: string;
|
|
433
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
434
|
+
readonly sender: {
|
|
435
|
+
readonly actorId: "actor_local_user";
|
|
436
|
+
readonly kind: "run-coordinator";
|
|
437
|
+
readonly runId: string;
|
|
438
|
+
};
|
|
439
|
+
readonly subject: string;
|
|
440
|
+
} | {
|
|
441
|
+
readonly recipient: {
|
|
442
|
+
readonly id: string;
|
|
443
|
+
readonly kind: "run";
|
|
444
|
+
};
|
|
445
|
+
readonly type: "dispatch-settled";
|
|
446
|
+
readonly body: string;
|
|
447
|
+
readonly createdAt: string;
|
|
448
|
+
readonly digest: string;
|
|
449
|
+
readonly id: string;
|
|
450
|
+
readonly runId: string;
|
|
451
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
452
|
+
readonly sender: {
|
|
453
|
+
readonly actorId: "actor_local_user";
|
|
454
|
+
readonly kind: "run-coordinator";
|
|
455
|
+
readonly runId: string;
|
|
456
|
+
};
|
|
457
|
+
readonly subject: string;
|
|
458
|
+
};
|
|
459
|
+
readonly state: "pending";
|
|
460
|
+
readonly id: string;
|
|
461
|
+
readonly createdAt: string;
|
|
462
|
+
readonly mailboxId: string;
|
|
463
|
+
readonly attemptCount: number;
|
|
464
|
+
readonly sequence: string;
|
|
465
|
+
readonly firstDeliveredAt?: string | undefined;
|
|
466
|
+
readonly lastDeliveredAt?: string | undefined;
|
|
467
|
+
}>;
|
|
468
|
+
export type OrchestrationPendingDelivery = InferRuntimeSchema<typeof orchestrationPendingDeliverySchema>;
|
|
469
|
+
export declare const orchestrationAcknowledgedDeliverySchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
470
|
+
readonly message: {
|
|
471
|
+
readonly recipient: {
|
|
472
|
+
readonly id: string;
|
|
473
|
+
readonly kind: "dispatch";
|
|
474
|
+
};
|
|
475
|
+
readonly type: "dispatch";
|
|
476
|
+
readonly body: string;
|
|
477
|
+
readonly createdAt: string;
|
|
478
|
+
readonly digest: string;
|
|
479
|
+
readonly id: string;
|
|
480
|
+
readonly runId: string;
|
|
481
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
482
|
+
readonly sender: {
|
|
483
|
+
readonly actorId: "actor_local_user";
|
|
484
|
+
readonly kind: "run-coordinator";
|
|
485
|
+
readonly runId: string;
|
|
486
|
+
};
|
|
487
|
+
readonly subject: string;
|
|
488
|
+
} | {
|
|
489
|
+
readonly questionId: string;
|
|
490
|
+
readonly recipient: {
|
|
491
|
+
readonly id: string;
|
|
492
|
+
readonly kind: "run";
|
|
493
|
+
};
|
|
494
|
+
readonly type: "question";
|
|
495
|
+
readonly body: string;
|
|
496
|
+
readonly createdAt: string;
|
|
497
|
+
readonly digest: string;
|
|
498
|
+
readonly id: string;
|
|
499
|
+
readonly runId: string;
|
|
500
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
501
|
+
readonly sender: {
|
|
502
|
+
readonly actorId: "actor_local_user";
|
|
503
|
+
readonly kind: "run-coordinator";
|
|
504
|
+
readonly runId: string;
|
|
505
|
+
};
|
|
506
|
+
readonly subject: string;
|
|
507
|
+
} | {
|
|
508
|
+
readonly questionId: string;
|
|
509
|
+
readonly recipient: {
|
|
510
|
+
readonly id: string;
|
|
511
|
+
readonly kind: "dispatch";
|
|
512
|
+
};
|
|
513
|
+
readonly type: "reply";
|
|
514
|
+
readonly body: string;
|
|
515
|
+
readonly createdAt: string;
|
|
516
|
+
readonly digest: string;
|
|
517
|
+
readonly id: string;
|
|
518
|
+
readonly runId: string;
|
|
519
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
520
|
+
readonly sender: {
|
|
521
|
+
readonly actorId: "actor_local_user";
|
|
522
|
+
readonly kind: "run-coordinator";
|
|
523
|
+
readonly runId: string;
|
|
524
|
+
};
|
|
525
|
+
readonly subject: string;
|
|
526
|
+
} | {
|
|
527
|
+
readonly recipient: {
|
|
528
|
+
readonly id: string;
|
|
529
|
+
readonly kind: "run";
|
|
530
|
+
};
|
|
531
|
+
readonly type: "dispatch-settled";
|
|
532
|
+
readonly body: string;
|
|
533
|
+
readonly createdAt: string;
|
|
534
|
+
readonly digest: string;
|
|
535
|
+
readonly id: string;
|
|
536
|
+
readonly runId: string;
|
|
537
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
538
|
+
readonly sender: {
|
|
539
|
+
readonly actorId: "actor_local_user";
|
|
540
|
+
readonly kind: "run-coordinator";
|
|
541
|
+
readonly runId: string;
|
|
542
|
+
};
|
|
543
|
+
readonly subject: string;
|
|
544
|
+
};
|
|
545
|
+
readonly state: "acknowledged";
|
|
546
|
+
readonly id: string;
|
|
547
|
+
readonly createdAt: string;
|
|
548
|
+
readonly mailboxId: string;
|
|
549
|
+
readonly attemptCount: number;
|
|
550
|
+
readonly sequence: string;
|
|
551
|
+
readonly acknowledgingActorId: "actor_local_user";
|
|
552
|
+
readonly acknowledgedAt: string;
|
|
553
|
+
readonly firstDeliveredAt?: string | undefined;
|
|
554
|
+
readonly lastDeliveredAt?: string | undefined;
|
|
555
|
+
}>;
|
|
556
|
+
export type OrchestrationAcknowledgedDelivery = InferRuntimeSchema<typeof orchestrationAcknowledgedDeliverySchema>;
|
|
557
|
+
export declare const orchestrationQuestionSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
558
|
+
readonly state: "open";
|
|
559
|
+
readonly askMessageId: string;
|
|
560
|
+
readonly attemptId: string;
|
|
561
|
+
readonly body: string;
|
|
562
|
+
readonly createdAt: string;
|
|
563
|
+
readonly dispatchId: string;
|
|
564
|
+
readonly id: string;
|
|
565
|
+
readonly revision: string;
|
|
566
|
+
readonly runId: string;
|
|
567
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
568
|
+
readonly subject: string;
|
|
569
|
+
readonly taskId: string;
|
|
570
|
+
readonly updatedAt: string;
|
|
571
|
+
} | {
|
|
572
|
+
readonly answer: string;
|
|
573
|
+
readonly replyMessageId: string;
|
|
574
|
+
readonly state: "answered";
|
|
575
|
+
readonly askMessageId: string;
|
|
576
|
+
readonly attemptId: string;
|
|
577
|
+
readonly body: string;
|
|
578
|
+
readonly createdAt: string;
|
|
579
|
+
readonly dispatchId: string;
|
|
580
|
+
readonly id: string;
|
|
581
|
+
readonly revision: string;
|
|
582
|
+
readonly runId: string;
|
|
583
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
584
|
+
readonly subject: string;
|
|
585
|
+
readonly taskId: string;
|
|
586
|
+
readonly updatedAt: string;
|
|
587
|
+
} | {
|
|
588
|
+
readonly state: "cancelled";
|
|
589
|
+
readonly askMessageId: string;
|
|
590
|
+
readonly attemptId: string;
|
|
591
|
+
readonly body: string;
|
|
592
|
+
readonly createdAt: string;
|
|
593
|
+
readonly dispatchId: string;
|
|
594
|
+
readonly id: string;
|
|
595
|
+
readonly revision: string;
|
|
596
|
+
readonly runId: string;
|
|
597
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
598
|
+
readonly subject: string;
|
|
599
|
+
readonly taskId: string;
|
|
600
|
+
readonly updatedAt: string;
|
|
601
|
+
}>;
|
|
602
|
+
export type OrchestrationQuestion = InferRuntimeSchema<typeof orchestrationQuestionSchema>;
|
|
603
|
+
export declare const orchestrationAggregateSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
604
|
+
readonly run: {
|
|
605
|
+
readonly coordinator: {
|
|
606
|
+
readonly actorId: "actor_local_user";
|
|
607
|
+
readonly epoch: 1;
|
|
608
|
+
};
|
|
609
|
+
readonly createdAt: string;
|
|
610
|
+
readonly dispatchTaskId: string;
|
|
611
|
+
readonly id: string;
|
|
612
|
+
readonly revision: string;
|
|
613
|
+
readonly rootTaskId: string;
|
|
614
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
615
|
+
readonly state: "failed" | "active" | "waiting-question";
|
|
616
|
+
readonly terminalId: string;
|
|
617
|
+
readonly updatedAt: string;
|
|
618
|
+
readonly workspaceId: string;
|
|
619
|
+
};
|
|
620
|
+
readonly dispatch: {
|
|
621
|
+
readonly state: "active";
|
|
622
|
+
readonly attemptId: string;
|
|
623
|
+
readonly createdAt: string;
|
|
624
|
+
readonly id: string;
|
|
625
|
+
readonly revision: string;
|
|
626
|
+
readonly runId: string;
|
|
627
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
628
|
+
readonly taskId: string;
|
|
629
|
+
readonly terminalId: string;
|
|
630
|
+
readonly updatedAt: string;
|
|
631
|
+
} | {
|
|
632
|
+
readonly state: "waiting-question";
|
|
633
|
+
readonly attemptId: string;
|
|
634
|
+
readonly createdAt: string;
|
|
635
|
+
readonly id: string;
|
|
636
|
+
readonly revision: string;
|
|
637
|
+
readonly runId: string;
|
|
638
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
639
|
+
readonly taskId: string;
|
|
640
|
+
readonly terminalId: string;
|
|
641
|
+
readonly updatedAt: string;
|
|
642
|
+
} | {
|
|
643
|
+
readonly failure: {
|
|
644
|
+
readonly code: "terminal_containment_unsupported";
|
|
645
|
+
readonly platform: "darwin" | "linux";
|
|
646
|
+
} | {
|
|
647
|
+
readonly code: "platform_unsupported";
|
|
648
|
+
readonly platform: "win32" | "other";
|
|
649
|
+
};
|
|
650
|
+
readonly state: "failed";
|
|
651
|
+
readonly attemptId: string;
|
|
652
|
+
readonly createdAt: string;
|
|
653
|
+
readonly id: string;
|
|
654
|
+
readonly revision: string;
|
|
655
|
+
readonly runId: string;
|
|
656
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
657
|
+
readonly taskId: string;
|
|
658
|
+
readonly terminalId: string;
|
|
659
|
+
readonly updatedAt: string;
|
|
660
|
+
};
|
|
661
|
+
readonly tasks: readonly {
|
|
662
|
+
readonly objective: string;
|
|
663
|
+
readonly clientKey: string;
|
|
664
|
+
readonly createdAt: string;
|
|
665
|
+
readonly dependencyTaskIds: readonly string[];
|
|
666
|
+
readonly id: string;
|
|
667
|
+
readonly revision: string;
|
|
668
|
+
readonly runId: string;
|
|
669
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
670
|
+
readonly state: "failed" | "active" | "pending" | "waiting-question";
|
|
671
|
+
readonly updatedAt: string;
|
|
672
|
+
readonly workspaceId: string;
|
|
673
|
+
}[];
|
|
674
|
+
readonly attempt: {
|
|
675
|
+
readonly createdAt: string;
|
|
676
|
+
readonly id: string;
|
|
677
|
+
readonly ordinal: 1;
|
|
678
|
+
readonly revision: string;
|
|
679
|
+
readonly runId: string;
|
|
680
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
681
|
+
readonly state: "failed" | "active" | "waiting-question";
|
|
682
|
+
readonly taskId: string;
|
|
683
|
+
readonly updatedAt: string;
|
|
684
|
+
};
|
|
685
|
+
readonly mailboxes: readonly {
|
|
686
|
+
readonly contentBytes: string;
|
|
687
|
+
readonly createdAt: string;
|
|
688
|
+
readonly deliveryCount: string;
|
|
689
|
+
readonly headSequence: string;
|
|
690
|
+
readonly id: string;
|
|
691
|
+
readonly owner: {
|
|
692
|
+
readonly id: string;
|
|
693
|
+
readonly kind: "run";
|
|
694
|
+
} | {
|
|
695
|
+
readonly id: string;
|
|
696
|
+
readonly kind: "dispatch";
|
|
697
|
+
};
|
|
698
|
+
readonly revision: string;
|
|
699
|
+
readonly runId: string;
|
|
700
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
701
|
+
readonly updatedAt: string;
|
|
702
|
+
}[];
|
|
703
|
+
readonly question?: {
|
|
704
|
+
readonly state: "open";
|
|
705
|
+
readonly askMessageId: string;
|
|
706
|
+
readonly attemptId: string;
|
|
707
|
+
readonly body: string;
|
|
708
|
+
readonly createdAt: string;
|
|
709
|
+
readonly dispatchId: string;
|
|
710
|
+
readonly id: string;
|
|
711
|
+
readonly revision: string;
|
|
712
|
+
readonly runId: string;
|
|
713
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
714
|
+
readonly subject: string;
|
|
715
|
+
readonly taskId: string;
|
|
716
|
+
readonly updatedAt: string;
|
|
717
|
+
} | {
|
|
718
|
+
readonly answer: string;
|
|
719
|
+
readonly replyMessageId: string;
|
|
720
|
+
readonly state: "answered";
|
|
721
|
+
readonly askMessageId: string;
|
|
722
|
+
readonly attemptId: string;
|
|
723
|
+
readonly body: string;
|
|
724
|
+
readonly createdAt: string;
|
|
725
|
+
readonly dispatchId: string;
|
|
726
|
+
readonly id: string;
|
|
727
|
+
readonly revision: string;
|
|
728
|
+
readonly runId: string;
|
|
729
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
730
|
+
readonly subject: string;
|
|
731
|
+
readonly taskId: string;
|
|
732
|
+
readonly updatedAt: string;
|
|
733
|
+
} | {
|
|
734
|
+
readonly state: "cancelled";
|
|
735
|
+
readonly askMessageId: string;
|
|
736
|
+
readonly attemptId: string;
|
|
737
|
+
readonly body: string;
|
|
738
|
+
readonly createdAt: string;
|
|
739
|
+
readonly dispatchId: string;
|
|
740
|
+
readonly id: string;
|
|
741
|
+
readonly revision: string;
|
|
742
|
+
readonly runId: string;
|
|
743
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
744
|
+
readonly subject: string;
|
|
745
|
+
readonly taskId: string;
|
|
746
|
+
readonly updatedAt: string;
|
|
747
|
+
} | undefined;
|
|
748
|
+
}>;
|
|
749
|
+
export type OrchestrationAggregate = InferRuntimeSchema<typeof orchestrationAggregateSchema>;
|
|
750
|
+
export declare const orchestrationRunCreateParametersSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
751
|
+
readonly commandId: string;
|
|
752
|
+
readonly expectedRevision: "0";
|
|
753
|
+
readonly graph: {
|
|
754
|
+
readonly dispatchTaskKey: string;
|
|
755
|
+
readonly rootTaskKey: string;
|
|
756
|
+
readonly tasks: readonly {
|
|
757
|
+
readonly clientKey: string;
|
|
758
|
+
readonly dependsOn: readonly string[];
|
|
759
|
+
readonly objective: string;
|
|
760
|
+
}[];
|
|
761
|
+
};
|
|
762
|
+
readonly terminalId: string;
|
|
763
|
+
readonly workspaceId: string;
|
|
764
|
+
}>;
|
|
765
|
+
export type OrchestrationRunCreateParameters = InferRuntimeSchema<typeof orchestrationRunCreateParametersSchema>;
|
|
766
|
+
export declare const orchestrationRunShowParametersSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
767
|
+
readonly runId: string;
|
|
768
|
+
}>;
|
|
769
|
+
export type OrchestrationRunShowParameters = InferRuntimeSchema<typeof orchestrationRunShowParametersSchema>;
|
|
770
|
+
export declare const orchestrationRunListParametersSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
771
|
+
readonly afterCursor: string;
|
|
772
|
+
readonly limit: number;
|
|
773
|
+
readonly workspaceId: string;
|
|
774
|
+
}>;
|
|
775
|
+
export type OrchestrationRunListParameters = InferRuntimeSchema<typeof orchestrationRunListParametersSchema>;
|
|
776
|
+
export declare const orchestrationTaskListParametersSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
777
|
+
readonly afterCursor: string;
|
|
778
|
+
readonly limit: number;
|
|
779
|
+
readonly runId: string;
|
|
780
|
+
}>;
|
|
781
|
+
export type OrchestrationTaskListParameters = InferRuntimeSchema<typeof orchestrationTaskListParametersSchema>;
|
|
782
|
+
export declare const orchestrationTaskShowParametersSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
783
|
+
readonly runId: string;
|
|
784
|
+
readonly taskId: string;
|
|
785
|
+
}>;
|
|
786
|
+
export type OrchestrationTaskShowParameters = InferRuntimeSchema<typeof orchestrationTaskShowParametersSchema>;
|
|
787
|
+
export declare const orchestrationDispatchShowParametersSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
788
|
+
readonly runId: string;
|
|
789
|
+
}>;
|
|
790
|
+
export type OrchestrationDispatchShowParameters = InferRuntimeSchema<typeof orchestrationDispatchShowParametersSchema>;
|
|
791
|
+
export declare const orchestrationInboxCheckParametersSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
792
|
+
readonly coordinatorEpoch: 1;
|
|
793
|
+
readonly limit: number;
|
|
794
|
+
readonly owner: {
|
|
795
|
+
readonly id: string;
|
|
796
|
+
readonly kind: "run";
|
|
797
|
+
} | {
|
|
798
|
+
readonly id: string;
|
|
799
|
+
readonly kind: "dispatch";
|
|
800
|
+
};
|
|
801
|
+
readonly runId: string;
|
|
802
|
+
}>;
|
|
803
|
+
export type OrchestrationInboxCheckParameters = InferRuntimeSchema<typeof orchestrationInboxCheckParametersSchema>;
|
|
804
|
+
export declare const orchestrationInboxAckParametersSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
805
|
+
readonly commandId: string;
|
|
806
|
+
readonly coordinatorEpoch: 1;
|
|
807
|
+
readonly deliveryId: string;
|
|
808
|
+
readonly expectedMailboxRevision: string;
|
|
809
|
+
readonly owner: {
|
|
810
|
+
readonly id: string;
|
|
811
|
+
readonly kind: "run";
|
|
812
|
+
} | {
|
|
813
|
+
readonly id: string;
|
|
814
|
+
readonly kind: "dispatch";
|
|
815
|
+
};
|
|
816
|
+
readonly runId: string;
|
|
817
|
+
}>;
|
|
818
|
+
export type OrchestrationInboxAckParameters = InferRuntimeSchema<typeof orchestrationInboxAckParametersSchema>;
|
|
819
|
+
export declare const orchestrationQuestionOpenParametersSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
820
|
+
readonly body: string;
|
|
821
|
+
readonly subject: string;
|
|
822
|
+
readonly commandId: string;
|
|
823
|
+
readonly coordinatorEpoch: 1;
|
|
824
|
+
readonly dispatchId: string;
|
|
825
|
+
readonly expectedDispatchRevision: string;
|
|
826
|
+
readonly expectedRunRevision: string;
|
|
827
|
+
readonly runId: string;
|
|
828
|
+
}>;
|
|
829
|
+
export type OrchestrationQuestionOpenParameters = InferRuntimeSchema<typeof orchestrationQuestionOpenParametersSchema>;
|
|
830
|
+
export declare const orchestrationQuestionReplyParametersSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
831
|
+
readonly answer: string;
|
|
832
|
+
readonly expectedQuestionRevision: string;
|
|
833
|
+
readonly questionId: string;
|
|
834
|
+
readonly commandId: string;
|
|
835
|
+
readonly coordinatorEpoch: 1;
|
|
836
|
+
readonly dispatchId: string;
|
|
837
|
+
readonly expectedDispatchRevision: string;
|
|
838
|
+
readonly expectedRunRevision: string;
|
|
839
|
+
readonly runId: string;
|
|
840
|
+
}>;
|
|
841
|
+
export type OrchestrationQuestionReplyParameters = InferRuntimeSchema<typeof orchestrationQuestionReplyParametersSchema>;
|
|
842
|
+
export declare const orchestrationQuestionCancelParametersSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
843
|
+
readonly expectedQuestionRevision: string;
|
|
844
|
+
readonly questionId: string;
|
|
845
|
+
readonly commandId: string;
|
|
846
|
+
readonly coordinatorEpoch: 1;
|
|
847
|
+
readonly dispatchId: string;
|
|
848
|
+
readonly expectedDispatchRevision: string;
|
|
849
|
+
readonly expectedRunRevision: string;
|
|
850
|
+
readonly runId: string;
|
|
851
|
+
}>;
|
|
852
|
+
export type OrchestrationQuestionCancelParameters = InferRuntimeSchema<typeof orchestrationQuestionCancelParametersSchema>;
|
|
853
|
+
export declare const orchestrationDispatchSettleTerminalParametersSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
854
|
+
readonly commandId: string;
|
|
855
|
+
readonly coordinatorEpoch: 1;
|
|
856
|
+
readonly dispatchId: string;
|
|
857
|
+
readonly expectedDispatchRevision: string;
|
|
858
|
+
readonly expectedRunRevision: string;
|
|
859
|
+
readonly runId: string;
|
|
860
|
+
}>;
|
|
861
|
+
export type OrchestrationDispatchSettleTerminalParameters = InferRuntimeSchema<typeof orchestrationDispatchSettleTerminalParametersSchema>;
|
|
862
|
+
export declare const orchestrationRunCreateResultSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
863
|
+
readonly aggregate: {
|
|
864
|
+
readonly run: {
|
|
865
|
+
readonly coordinator: {
|
|
866
|
+
readonly actorId: "actor_local_user";
|
|
867
|
+
readonly epoch: 1;
|
|
868
|
+
};
|
|
869
|
+
readonly createdAt: string;
|
|
870
|
+
readonly dispatchTaskId: string;
|
|
871
|
+
readonly id: string;
|
|
872
|
+
readonly revision: string;
|
|
873
|
+
readonly rootTaskId: string;
|
|
874
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
875
|
+
readonly state: "failed" | "active" | "waiting-question";
|
|
876
|
+
readonly terminalId: string;
|
|
877
|
+
readonly updatedAt: string;
|
|
878
|
+
readonly workspaceId: string;
|
|
879
|
+
};
|
|
880
|
+
readonly dispatch: {
|
|
881
|
+
readonly state: "active";
|
|
882
|
+
readonly attemptId: string;
|
|
883
|
+
readonly createdAt: string;
|
|
884
|
+
readonly id: string;
|
|
885
|
+
readonly revision: string;
|
|
886
|
+
readonly runId: string;
|
|
887
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
888
|
+
readonly taskId: string;
|
|
889
|
+
readonly terminalId: string;
|
|
890
|
+
readonly updatedAt: string;
|
|
891
|
+
} | {
|
|
892
|
+
readonly state: "waiting-question";
|
|
893
|
+
readonly attemptId: string;
|
|
894
|
+
readonly createdAt: string;
|
|
895
|
+
readonly id: string;
|
|
896
|
+
readonly revision: string;
|
|
897
|
+
readonly runId: string;
|
|
898
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
899
|
+
readonly taskId: string;
|
|
900
|
+
readonly terminalId: string;
|
|
901
|
+
readonly updatedAt: string;
|
|
902
|
+
} | {
|
|
903
|
+
readonly failure: {
|
|
904
|
+
readonly code: "terminal_containment_unsupported";
|
|
905
|
+
readonly platform: "darwin" | "linux";
|
|
906
|
+
} | {
|
|
907
|
+
readonly code: "platform_unsupported";
|
|
908
|
+
readonly platform: "win32" | "other";
|
|
909
|
+
};
|
|
910
|
+
readonly state: "failed";
|
|
911
|
+
readonly attemptId: string;
|
|
912
|
+
readonly createdAt: string;
|
|
913
|
+
readonly id: string;
|
|
914
|
+
readonly revision: string;
|
|
915
|
+
readonly runId: string;
|
|
916
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
917
|
+
readonly taskId: string;
|
|
918
|
+
readonly terminalId: string;
|
|
919
|
+
readonly updatedAt: string;
|
|
920
|
+
};
|
|
921
|
+
readonly tasks: readonly {
|
|
922
|
+
readonly objective: string;
|
|
923
|
+
readonly clientKey: string;
|
|
924
|
+
readonly createdAt: string;
|
|
925
|
+
readonly dependencyTaskIds: readonly string[];
|
|
926
|
+
readonly id: string;
|
|
927
|
+
readonly revision: string;
|
|
928
|
+
readonly runId: string;
|
|
929
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
930
|
+
readonly state: "failed" | "active" | "pending" | "waiting-question";
|
|
931
|
+
readonly updatedAt: string;
|
|
932
|
+
readonly workspaceId: string;
|
|
933
|
+
}[];
|
|
934
|
+
readonly attempt: {
|
|
935
|
+
readonly createdAt: string;
|
|
936
|
+
readonly id: string;
|
|
937
|
+
readonly ordinal: 1;
|
|
938
|
+
readonly revision: string;
|
|
939
|
+
readonly runId: string;
|
|
940
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
941
|
+
readonly state: "failed" | "active" | "waiting-question";
|
|
942
|
+
readonly taskId: string;
|
|
943
|
+
readonly updatedAt: string;
|
|
944
|
+
};
|
|
945
|
+
readonly mailboxes: readonly {
|
|
946
|
+
readonly contentBytes: string;
|
|
947
|
+
readonly createdAt: string;
|
|
948
|
+
readonly deliveryCount: string;
|
|
949
|
+
readonly headSequence: string;
|
|
950
|
+
readonly id: string;
|
|
951
|
+
readonly owner: {
|
|
952
|
+
readonly id: string;
|
|
953
|
+
readonly kind: "run";
|
|
954
|
+
} | {
|
|
955
|
+
readonly id: string;
|
|
956
|
+
readonly kind: "dispatch";
|
|
957
|
+
};
|
|
958
|
+
readonly revision: string;
|
|
959
|
+
readonly runId: string;
|
|
960
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
961
|
+
readonly updatedAt: string;
|
|
962
|
+
}[];
|
|
963
|
+
readonly question?: {
|
|
964
|
+
readonly state: "open";
|
|
965
|
+
readonly askMessageId: string;
|
|
966
|
+
readonly attemptId: string;
|
|
967
|
+
readonly body: string;
|
|
968
|
+
readonly createdAt: string;
|
|
969
|
+
readonly dispatchId: string;
|
|
970
|
+
readonly id: string;
|
|
971
|
+
readonly revision: string;
|
|
972
|
+
readonly runId: string;
|
|
973
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
974
|
+
readonly subject: string;
|
|
975
|
+
readonly taskId: string;
|
|
976
|
+
readonly updatedAt: string;
|
|
977
|
+
} | {
|
|
978
|
+
readonly answer: string;
|
|
979
|
+
readonly replyMessageId: string;
|
|
980
|
+
readonly state: "answered";
|
|
981
|
+
readonly askMessageId: string;
|
|
982
|
+
readonly attemptId: string;
|
|
983
|
+
readonly body: string;
|
|
984
|
+
readonly createdAt: string;
|
|
985
|
+
readonly dispatchId: string;
|
|
986
|
+
readonly id: string;
|
|
987
|
+
readonly revision: string;
|
|
988
|
+
readonly runId: string;
|
|
989
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
990
|
+
readonly subject: string;
|
|
991
|
+
readonly taskId: string;
|
|
992
|
+
readonly updatedAt: string;
|
|
993
|
+
} | {
|
|
994
|
+
readonly state: "cancelled";
|
|
995
|
+
readonly askMessageId: string;
|
|
996
|
+
readonly attemptId: string;
|
|
997
|
+
readonly body: string;
|
|
998
|
+
readonly createdAt: string;
|
|
999
|
+
readonly dispatchId: string;
|
|
1000
|
+
readonly id: string;
|
|
1001
|
+
readonly revision: string;
|
|
1002
|
+
readonly runId: string;
|
|
1003
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
1004
|
+
readonly subject: string;
|
|
1005
|
+
readonly taskId: string;
|
|
1006
|
+
readonly updatedAt: string;
|
|
1007
|
+
} | undefined;
|
|
1008
|
+
};
|
|
1009
|
+
readonly delivery: "new" | "duplicate";
|
|
1010
|
+
readonly initialDelivery: {
|
|
1011
|
+
readonly message: {
|
|
1012
|
+
readonly recipient: {
|
|
1013
|
+
readonly id: string;
|
|
1014
|
+
readonly kind: "dispatch";
|
|
1015
|
+
};
|
|
1016
|
+
readonly type: "dispatch";
|
|
1017
|
+
readonly body: string;
|
|
1018
|
+
readonly createdAt: string;
|
|
1019
|
+
readonly digest: string;
|
|
1020
|
+
readonly id: string;
|
|
1021
|
+
readonly runId: string;
|
|
1022
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
1023
|
+
readonly sender: {
|
|
1024
|
+
readonly actorId: "actor_local_user";
|
|
1025
|
+
readonly kind: "run-coordinator";
|
|
1026
|
+
readonly runId: string;
|
|
1027
|
+
};
|
|
1028
|
+
readonly subject: string;
|
|
1029
|
+
} | {
|
|
1030
|
+
readonly questionId: string;
|
|
1031
|
+
readonly recipient: {
|
|
1032
|
+
readonly id: string;
|
|
1033
|
+
readonly kind: "run";
|
|
1034
|
+
};
|
|
1035
|
+
readonly type: "question";
|
|
1036
|
+
readonly body: string;
|
|
1037
|
+
readonly createdAt: string;
|
|
1038
|
+
readonly digest: string;
|
|
1039
|
+
readonly id: string;
|
|
1040
|
+
readonly runId: string;
|
|
1041
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
1042
|
+
readonly sender: {
|
|
1043
|
+
readonly actorId: "actor_local_user";
|
|
1044
|
+
readonly kind: "run-coordinator";
|
|
1045
|
+
readonly runId: string;
|
|
1046
|
+
};
|
|
1047
|
+
readonly subject: string;
|
|
1048
|
+
} | {
|
|
1049
|
+
readonly questionId: string;
|
|
1050
|
+
readonly recipient: {
|
|
1051
|
+
readonly id: string;
|
|
1052
|
+
readonly kind: "dispatch";
|
|
1053
|
+
};
|
|
1054
|
+
readonly type: "reply";
|
|
1055
|
+
readonly body: string;
|
|
1056
|
+
readonly createdAt: string;
|
|
1057
|
+
readonly digest: string;
|
|
1058
|
+
readonly id: string;
|
|
1059
|
+
readonly runId: string;
|
|
1060
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
1061
|
+
readonly sender: {
|
|
1062
|
+
readonly actorId: "actor_local_user";
|
|
1063
|
+
readonly kind: "run-coordinator";
|
|
1064
|
+
readonly runId: string;
|
|
1065
|
+
};
|
|
1066
|
+
readonly subject: string;
|
|
1067
|
+
} | {
|
|
1068
|
+
readonly recipient: {
|
|
1069
|
+
readonly id: string;
|
|
1070
|
+
readonly kind: "run";
|
|
1071
|
+
};
|
|
1072
|
+
readonly type: "dispatch-settled";
|
|
1073
|
+
readonly body: string;
|
|
1074
|
+
readonly createdAt: string;
|
|
1075
|
+
readonly digest: string;
|
|
1076
|
+
readonly id: string;
|
|
1077
|
+
readonly runId: string;
|
|
1078
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
1079
|
+
readonly sender: {
|
|
1080
|
+
readonly actorId: "actor_local_user";
|
|
1081
|
+
readonly kind: "run-coordinator";
|
|
1082
|
+
readonly runId: string;
|
|
1083
|
+
};
|
|
1084
|
+
readonly subject: string;
|
|
1085
|
+
};
|
|
1086
|
+
readonly state: "pending";
|
|
1087
|
+
readonly id: string;
|
|
1088
|
+
readonly createdAt: string;
|
|
1089
|
+
readonly mailboxId: string;
|
|
1090
|
+
readonly attemptCount: number;
|
|
1091
|
+
readonly sequence: string;
|
|
1092
|
+
readonly firstDeliveredAt?: string | undefined;
|
|
1093
|
+
readonly lastDeliveredAt?: string | undefined;
|
|
1094
|
+
} | {
|
|
1095
|
+
readonly message: {
|
|
1096
|
+
readonly recipient: {
|
|
1097
|
+
readonly id: string;
|
|
1098
|
+
readonly kind: "dispatch";
|
|
1099
|
+
};
|
|
1100
|
+
readonly type: "dispatch";
|
|
1101
|
+
readonly body: string;
|
|
1102
|
+
readonly createdAt: string;
|
|
1103
|
+
readonly digest: string;
|
|
1104
|
+
readonly id: string;
|
|
1105
|
+
readonly runId: string;
|
|
1106
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
1107
|
+
readonly sender: {
|
|
1108
|
+
readonly actorId: "actor_local_user";
|
|
1109
|
+
readonly kind: "run-coordinator";
|
|
1110
|
+
readonly runId: string;
|
|
1111
|
+
};
|
|
1112
|
+
readonly subject: string;
|
|
1113
|
+
} | {
|
|
1114
|
+
readonly questionId: string;
|
|
1115
|
+
readonly recipient: {
|
|
1116
|
+
readonly id: string;
|
|
1117
|
+
readonly kind: "run";
|
|
1118
|
+
};
|
|
1119
|
+
readonly type: "question";
|
|
1120
|
+
readonly body: string;
|
|
1121
|
+
readonly createdAt: string;
|
|
1122
|
+
readonly digest: string;
|
|
1123
|
+
readonly id: string;
|
|
1124
|
+
readonly runId: string;
|
|
1125
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
1126
|
+
readonly sender: {
|
|
1127
|
+
readonly actorId: "actor_local_user";
|
|
1128
|
+
readonly kind: "run-coordinator";
|
|
1129
|
+
readonly runId: string;
|
|
1130
|
+
};
|
|
1131
|
+
readonly subject: string;
|
|
1132
|
+
} | {
|
|
1133
|
+
readonly questionId: string;
|
|
1134
|
+
readonly recipient: {
|
|
1135
|
+
readonly id: string;
|
|
1136
|
+
readonly kind: "dispatch";
|
|
1137
|
+
};
|
|
1138
|
+
readonly type: "reply";
|
|
1139
|
+
readonly body: string;
|
|
1140
|
+
readonly createdAt: string;
|
|
1141
|
+
readonly digest: string;
|
|
1142
|
+
readonly id: string;
|
|
1143
|
+
readonly runId: string;
|
|
1144
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
1145
|
+
readonly sender: {
|
|
1146
|
+
readonly actorId: "actor_local_user";
|
|
1147
|
+
readonly kind: "run-coordinator";
|
|
1148
|
+
readonly runId: string;
|
|
1149
|
+
};
|
|
1150
|
+
readonly subject: string;
|
|
1151
|
+
} | {
|
|
1152
|
+
readonly recipient: {
|
|
1153
|
+
readonly id: string;
|
|
1154
|
+
readonly kind: "run";
|
|
1155
|
+
};
|
|
1156
|
+
readonly type: "dispatch-settled";
|
|
1157
|
+
readonly body: string;
|
|
1158
|
+
readonly createdAt: string;
|
|
1159
|
+
readonly digest: string;
|
|
1160
|
+
readonly id: string;
|
|
1161
|
+
readonly runId: string;
|
|
1162
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
1163
|
+
readonly sender: {
|
|
1164
|
+
readonly actorId: "actor_local_user";
|
|
1165
|
+
readonly kind: "run-coordinator";
|
|
1166
|
+
readonly runId: string;
|
|
1167
|
+
};
|
|
1168
|
+
readonly subject: string;
|
|
1169
|
+
};
|
|
1170
|
+
readonly state: "acknowledged";
|
|
1171
|
+
readonly id: string;
|
|
1172
|
+
readonly createdAt: string;
|
|
1173
|
+
readonly mailboxId: string;
|
|
1174
|
+
readonly attemptCount: number;
|
|
1175
|
+
readonly sequence: string;
|
|
1176
|
+
readonly acknowledgingActorId: "actor_local_user";
|
|
1177
|
+
readonly acknowledgedAt: string;
|
|
1178
|
+
readonly firstDeliveredAt?: string | undefined;
|
|
1179
|
+
readonly lastDeliveredAt?: string | undefined;
|
|
1180
|
+
};
|
|
1181
|
+
readonly method: "run.create";
|
|
1182
|
+
readonly receipt: {
|
|
1183
|
+
readonly actorId: string;
|
|
1184
|
+
readonly aggregateRevision: string;
|
|
1185
|
+
readonly commandId: string;
|
|
1186
|
+
readonly createdAt: string;
|
|
1187
|
+
readonly eventCursor: string;
|
|
1188
|
+
readonly method: string;
|
|
1189
|
+
readonly receiptId: string;
|
|
1190
|
+
readonly schemaVersion: 1;
|
|
1191
|
+
readonly state: "succeeded";
|
|
1192
|
+
readonly target: {
|
|
1193
|
+
readonly id: string;
|
|
1194
|
+
readonly type: string;
|
|
1195
|
+
};
|
|
1196
|
+
readonly updatedAt: string;
|
|
1197
|
+
};
|
|
1198
|
+
}>;
|
|
1199
|
+
export type OrchestrationRunCreateResult = InferRuntimeSchema<typeof orchestrationRunCreateResultSchema>;
|
|
1200
|
+
export declare const orchestrationRunShowResultSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
1201
|
+
readonly aggregate: {
|
|
1202
|
+
readonly run: {
|
|
1203
|
+
readonly coordinator: {
|
|
1204
|
+
readonly actorId: "actor_local_user";
|
|
1205
|
+
readonly epoch: 1;
|
|
1206
|
+
};
|
|
1207
|
+
readonly createdAt: string;
|
|
1208
|
+
readonly dispatchTaskId: string;
|
|
1209
|
+
readonly id: string;
|
|
1210
|
+
readonly revision: string;
|
|
1211
|
+
readonly rootTaskId: string;
|
|
1212
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
1213
|
+
readonly state: "failed" | "active" | "waiting-question";
|
|
1214
|
+
readonly terminalId: string;
|
|
1215
|
+
readonly updatedAt: string;
|
|
1216
|
+
readonly workspaceId: string;
|
|
1217
|
+
};
|
|
1218
|
+
readonly dispatch: {
|
|
1219
|
+
readonly state: "active";
|
|
1220
|
+
readonly attemptId: string;
|
|
1221
|
+
readonly createdAt: string;
|
|
1222
|
+
readonly id: string;
|
|
1223
|
+
readonly revision: string;
|
|
1224
|
+
readonly runId: string;
|
|
1225
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
1226
|
+
readonly taskId: string;
|
|
1227
|
+
readonly terminalId: string;
|
|
1228
|
+
readonly updatedAt: string;
|
|
1229
|
+
} | {
|
|
1230
|
+
readonly state: "waiting-question";
|
|
1231
|
+
readonly attemptId: string;
|
|
1232
|
+
readonly createdAt: string;
|
|
1233
|
+
readonly id: string;
|
|
1234
|
+
readonly revision: string;
|
|
1235
|
+
readonly runId: string;
|
|
1236
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
1237
|
+
readonly taskId: string;
|
|
1238
|
+
readonly terminalId: string;
|
|
1239
|
+
readonly updatedAt: string;
|
|
1240
|
+
} | {
|
|
1241
|
+
readonly failure: {
|
|
1242
|
+
readonly code: "terminal_containment_unsupported";
|
|
1243
|
+
readonly platform: "darwin" | "linux";
|
|
1244
|
+
} | {
|
|
1245
|
+
readonly code: "platform_unsupported";
|
|
1246
|
+
readonly platform: "win32" | "other";
|
|
1247
|
+
};
|
|
1248
|
+
readonly state: "failed";
|
|
1249
|
+
readonly attemptId: string;
|
|
1250
|
+
readonly createdAt: string;
|
|
1251
|
+
readonly id: string;
|
|
1252
|
+
readonly revision: string;
|
|
1253
|
+
readonly runId: string;
|
|
1254
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
1255
|
+
readonly taskId: string;
|
|
1256
|
+
readonly terminalId: string;
|
|
1257
|
+
readonly updatedAt: string;
|
|
1258
|
+
};
|
|
1259
|
+
readonly tasks: readonly {
|
|
1260
|
+
readonly objective: string;
|
|
1261
|
+
readonly clientKey: string;
|
|
1262
|
+
readonly createdAt: string;
|
|
1263
|
+
readonly dependencyTaskIds: readonly string[];
|
|
1264
|
+
readonly id: string;
|
|
1265
|
+
readonly revision: string;
|
|
1266
|
+
readonly runId: string;
|
|
1267
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
1268
|
+
readonly state: "failed" | "active" | "pending" | "waiting-question";
|
|
1269
|
+
readonly updatedAt: string;
|
|
1270
|
+
readonly workspaceId: string;
|
|
1271
|
+
}[];
|
|
1272
|
+
readonly attempt: {
|
|
1273
|
+
readonly createdAt: string;
|
|
1274
|
+
readonly id: string;
|
|
1275
|
+
readonly ordinal: 1;
|
|
1276
|
+
readonly revision: string;
|
|
1277
|
+
readonly runId: string;
|
|
1278
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
1279
|
+
readonly state: "failed" | "active" | "waiting-question";
|
|
1280
|
+
readonly taskId: string;
|
|
1281
|
+
readonly updatedAt: string;
|
|
1282
|
+
};
|
|
1283
|
+
readonly mailboxes: readonly {
|
|
1284
|
+
readonly contentBytes: string;
|
|
1285
|
+
readonly createdAt: string;
|
|
1286
|
+
readonly deliveryCount: string;
|
|
1287
|
+
readonly headSequence: string;
|
|
1288
|
+
readonly id: string;
|
|
1289
|
+
readonly owner: {
|
|
1290
|
+
readonly id: string;
|
|
1291
|
+
readonly kind: "run";
|
|
1292
|
+
} | {
|
|
1293
|
+
readonly id: string;
|
|
1294
|
+
readonly kind: "dispatch";
|
|
1295
|
+
};
|
|
1296
|
+
readonly revision: string;
|
|
1297
|
+
readonly runId: string;
|
|
1298
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
1299
|
+
readonly updatedAt: string;
|
|
1300
|
+
}[];
|
|
1301
|
+
readonly question?: {
|
|
1302
|
+
readonly state: "open";
|
|
1303
|
+
readonly askMessageId: string;
|
|
1304
|
+
readonly attemptId: string;
|
|
1305
|
+
readonly body: string;
|
|
1306
|
+
readonly createdAt: string;
|
|
1307
|
+
readonly dispatchId: string;
|
|
1308
|
+
readonly id: string;
|
|
1309
|
+
readonly revision: string;
|
|
1310
|
+
readonly runId: string;
|
|
1311
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
1312
|
+
readonly subject: string;
|
|
1313
|
+
readonly taskId: string;
|
|
1314
|
+
readonly updatedAt: string;
|
|
1315
|
+
} | {
|
|
1316
|
+
readonly answer: string;
|
|
1317
|
+
readonly replyMessageId: string;
|
|
1318
|
+
readonly state: "answered";
|
|
1319
|
+
readonly askMessageId: string;
|
|
1320
|
+
readonly attemptId: string;
|
|
1321
|
+
readonly body: string;
|
|
1322
|
+
readonly createdAt: string;
|
|
1323
|
+
readonly dispatchId: string;
|
|
1324
|
+
readonly id: string;
|
|
1325
|
+
readonly revision: string;
|
|
1326
|
+
readonly runId: string;
|
|
1327
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
1328
|
+
readonly subject: string;
|
|
1329
|
+
readonly taskId: string;
|
|
1330
|
+
readonly updatedAt: string;
|
|
1331
|
+
} | {
|
|
1332
|
+
readonly state: "cancelled";
|
|
1333
|
+
readonly askMessageId: string;
|
|
1334
|
+
readonly attemptId: string;
|
|
1335
|
+
readonly body: string;
|
|
1336
|
+
readonly createdAt: string;
|
|
1337
|
+
readonly dispatchId: string;
|
|
1338
|
+
readonly id: string;
|
|
1339
|
+
readonly revision: string;
|
|
1340
|
+
readonly runId: string;
|
|
1341
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
1342
|
+
readonly subject: string;
|
|
1343
|
+
readonly taskId: string;
|
|
1344
|
+
readonly updatedAt: string;
|
|
1345
|
+
} | undefined;
|
|
1346
|
+
};
|
|
1347
|
+
readonly method: "run.show";
|
|
1348
|
+
}>;
|
|
1349
|
+
export type OrchestrationRunShowResult = InferRuntimeSchema<typeof orchestrationRunShowResultSchema>;
|
|
1350
|
+
export declare const orchestrationRunListResultSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
1351
|
+
readonly method: "run.list";
|
|
1352
|
+
readonly items: readonly {
|
|
1353
|
+
readonly coordinator: {
|
|
1354
|
+
readonly actorId: "actor_local_user";
|
|
1355
|
+
readonly epoch: 1;
|
|
1356
|
+
};
|
|
1357
|
+
readonly createdAt: string;
|
|
1358
|
+
readonly dispatchTaskId: string;
|
|
1359
|
+
readonly id: string;
|
|
1360
|
+
readonly revision: string;
|
|
1361
|
+
readonly rootTaskId: string;
|
|
1362
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
1363
|
+
readonly state: "failed" | "active" | "waiting-question";
|
|
1364
|
+
readonly terminalId: string;
|
|
1365
|
+
readonly updatedAt: string;
|
|
1366
|
+
readonly workspaceId: string;
|
|
1367
|
+
}[];
|
|
1368
|
+
readonly nextCursor?: string | undefined;
|
|
1369
|
+
}>;
|
|
1370
|
+
export type OrchestrationRunListResult = InferRuntimeSchema<typeof orchestrationRunListResultSchema>;
|
|
1371
|
+
export declare const orchestrationTaskListResultSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
1372
|
+
readonly method: "run.task.list";
|
|
1373
|
+
readonly items: readonly {
|
|
1374
|
+
readonly clientKey: string;
|
|
1375
|
+
readonly createdAt: string;
|
|
1376
|
+
readonly dependencyTaskIds: readonly string[];
|
|
1377
|
+
readonly id: string;
|
|
1378
|
+
readonly revision: string;
|
|
1379
|
+
readonly runId: string;
|
|
1380
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
1381
|
+
readonly state: "failed" | "active" | "pending" | "waiting-question";
|
|
1382
|
+
readonly updatedAt: string;
|
|
1383
|
+
readonly workspaceId: string;
|
|
1384
|
+
}[];
|
|
1385
|
+
readonly runId: string;
|
|
1386
|
+
readonly nextCursor?: string | undefined;
|
|
1387
|
+
}>;
|
|
1388
|
+
export type OrchestrationTaskListResult = InferRuntimeSchema<typeof orchestrationTaskListResultSchema>;
|
|
1389
|
+
export declare const orchestrationTaskShowResultSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
1390
|
+
readonly method: "run.task.show";
|
|
1391
|
+
readonly runId: string;
|
|
1392
|
+
readonly task: {
|
|
1393
|
+
readonly objective: string;
|
|
1394
|
+
readonly clientKey: string;
|
|
1395
|
+
readonly createdAt: string;
|
|
1396
|
+
readonly dependencyTaskIds: readonly string[];
|
|
1397
|
+
readonly id: string;
|
|
1398
|
+
readonly revision: string;
|
|
1399
|
+
readonly runId: string;
|
|
1400
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
1401
|
+
readonly state: "failed" | "active" | "pending" | "waiting-question";
|
|
1402
|
+
readonly updatedAt: string;
|
|
1403
|
+
readonly workspaceId: string;
|
|
1404
|
+
};
|
|
1405
|
+
readonly taskId: string;
|
|
1406
|
+
}>;
|
|
1407
|
+
export type OrchestrationTaskShowResult = InferRuntimeSchema<typeof orchestrationTaskShowResultSchema>;
|
|
1408
|
+
export declare const orchestrationDispatchShowResultSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
1409
|
+
readonly dispatch: {
|
|
1410
|
+
readonly state: "active";
|
|
1411
|
+
readonly attemptId: string;
|
|
1412
|
+
readonly createdAt: string;
|
|
1413
|
+
readonly id: string;
|
|
1414
|
+
readonly revision: string;
|
|
1415
|
+
readonly runId: string;
|
|
1416
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
1417
|
+
readonly taskId: string;
|
|
1418
|
+
readonly terminalId: string;
|
|
1419
|
+
readonly updatedAt: string;
|
|
1420
|
+
} | {
|
|
1421
|
+
readonly state: "waiting-question";
|
|
1422
|
+
readonly attemptId: string;
|
|
1423
|
+
readonly createdAt: string;
|
|
1424
|
+
readonly id: string;
|
|
1425
|
+
readonly revision: string;
|
|
1426
|
+
readonly runId: string;
|
|
1427
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
1428
|
+
readonly taskId: string;
|
|
1429
|
+
readonly terminalId: string;
|
|
1430
|
+
readonly updatedAt: string;
|
|
1431
|
+
} | {
|
|
1432
|
+
readonly failure: {
|
|
1433
|
+
readonly code: "terminal_containment_unsupported";
|
|
1434
|
+
readonly platform: "darwin" | "linux";
|
|
1435
|
+
} | {
|
|
1436
|
+
readonly code: "platform_unsupported";
|
|
1437
|
+
readonly platform: "win32" | "other";
|
|
1438
|
+
};
|
|
1439
|
+
readonly state: "failed";
|
|
1440
|
+
readonly attemptId: string;
|
|
1441
|
+
readonly createdAt: string;
|
|
1442
|
+
readonly id: string;
|
|
1443
|
+
readonly revision: string;
|
|
1444
|
+
readonly runId: string;
|
|
1445
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
1446
|
+
readonly taskId: string;
|
|
1447
|
+
readonly terminalId: string;
|
|
1448
|
+
readonly updatedAt: string;
|
|
1449
|
+
};
|
|
1450
|
+
readonly method: "run.dispatch.show";
|
|
1451
|
+
readonly runId: string;
|
|
1452
|
+
}>;
|
|
1453
|
+
export type OrchestrationDispatchShowResult = InferRuntimeSchema<typeof orchestrationDispatchShowResultSchema>;
|
|
1454
|
+
export declare const orchestrationInboxCheckResultSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
1455
|
+
readonly items: readonly {
|
|
1456
|
+
readonly message: {
|
|
1457
|
+
readonly recipient: {
|
|
1458
|
+
readonly id: string;
|
|
1459
|
+
readonly kind: "dispatch";
|
|
1460
|
+
};
|
|
1461
|
+
readonly type: "dispatch";
|
|
1462
|
+
readonly body: string;
|
|
1463
|
+
readonly createdAt: string;
|
|
1464
|
+
readonly digest: string;
|
|
1465
|
+
readonly id: string;
|
|
1466
|
+
readonly runId: string;
|
|
1467
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
1468
|
+
readonly sender: {
|
|
1469
|
+
readonly actorId: "actor_local_user";
|
|
1470
|
+
readonly kind: "run-coordinator";
|
|
1471
|
+
readonly runId: string;
|
|
1472
|
+
};
|
|
1473
|
+
readonly subject: string;
|
|
1474
|
+
} | {
|
|
1475
|
+
readonly questionId: string;
|
|
1476
|
+
readonly recipient: {
|
|
1477
|
+
readonly id: string;
|
|
1478
|
+
readonly kind: "run";
|
|
1479
|
+
};
|
|
1480
|
+
readonly type: "question";
|
|
1481
|
+
readonly body: string;
|
|
1482
|
+
readonly createdAt: string;
|
|
1483
|
+
readonly digest: string;
|
|
1484
|
+
readonly id: string;
|
|
1485
|
+
readonly runId: string;
|
|
1486
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
1487
|
+
readonly sender: {
|
|
1488
|
+
readonly actorId: "actor_local_user";
|
|
1489
|
+
readonly kind: "run-coordinator";
|
|
1490
|
+
readonly runId: string;
|
|
1491
|
+
};
|
|
1492
|
+
readonly subject: string;
|
|
1493
|
+
} | {
|
|
1494
|
+
readonly questionId: string;
|
|
1495
|
+
readonly recipient: {
|
|
1496
|
+
readonly id: string;
|
|
1497
|
+
readonly kind: "dispatch";
|
|
1498
|
+
};
|
|
1499
|
+
readonly type: "reply";
|
|
1500
|
+
readonly body: string;
|
|
1501
|
+
readonly createdAt: string;
|
|
1502
|
+
readonly digest: string;
|
|
1503
|
+
readonly id: string;
|
|
1504
|
+
readonly runId: string;
|
|
1505
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
1506
|
+
readonly sender: {
|
|
1507
|
+
readonly actorId: "actor_local_user";
|
|
1508
|
+
readonly kind: "run-coordinator";
|
|
1509
|
+
readonly runId: string;
|
|
1510
|
+
};
|
|
1511
|
+
readonly subject: string;
|
|
1512
|
+
} | {
|
|
1513
|
+
readonly recipient: {
|
|
1514
|
+
readonly id: string;
|
|
1515
|
+
readonly kind: "run";
|
|
1516
|
+
};
|
|
1517
|
+
readonly type: "dispatch-settled";
|
|
1518
|
+
readonly body: string;
|
|
1519
|
+
readonly createdAt: string;
|
|
1520
|
+
readonly digest: string;
|
|
1521
|
+
readonly id: string;
|
|
1522
|
+
readonly runId: string;
|
|
1523
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
1524
|
+
readonly sender: {
|
|
1525
|
+
readonly actorId: "actor_local_user";
|
|
1526
|
+
readonly kind: "run-coordinator";
|
|
1527
|
+
readonly runId: string;
|
|
1528
|
+
};
|
|
1529
|
+
readonly subject: string;
|
|
1530
|
+
};
|
|
1531
|
+
readonly state: "pending";
|
|
1532
|
+
readonly id: string;
|
|
1533
|
+
readonly createdAt: string;
|
|
1534
|
+
readonly mailboxId: string;
|
|
1535
|
+
readonly attemptCount: number;
|
|
1536
|
+
readonly sequence: string;
|
|
1537
|
+
readonly firstDeliveredAt?: string | undefined;
|
|
1538
|
+
readonly lastDeliveredAt?: string | undefined;
|
|
1539
|
+
}[];
|
|
1540
|
+
readonly mailbox: {
|
|
1541
|
+
readonly contentBytes: string;
|
|
1542
|
+
readonly createdAt: string;
|
|
1543
|
+
readonly deliveryCount: string;
|
|
1544
|
+
readonly headSequence: string;
|
|
1545
|
+
readonly id: string;
|
|
1546
|
+
readonly owner: {
|
|
1547
|
+
readonly id: string;
|
|
1548
|
+
readonly kind: "run";
|
|
1549
|
+
} | {
|
|
1550
|
+
readonly id: string;
|
|
1551
|
+
readonly kind: "dispatch";
|
|
1552
|
+
};
|
|
1553
|
+
readonly revision: string;
|
|
1554
|
+
readonly runId: string;
|
|
1555
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
1556
|
+
readonly updatedAt: string;
|
|
1557
|
+
};
|
|
1558
|
+
readonly method: "run.inbox.check";
|
|
1559
|
+
}>;
|
|
1560
|
+
export type OrchestrationInboxCheckResult = InferRuntimeSchema<typeof orchestrationInboxCheckResultSchema>;
|
|
1561
|
+
export declare const orchestrationInboxAckResultSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
1562
|
+
readonly delivery: {
|
|
1563
|
+
readonly message: {
|
|
1564
|
+
readonly recipient: {
|
|
1565
|
+
readonly id: string;
|
|
1566
|
+
readonly kind: "dispatch";
|
|
1567
|
+
};
|
|
1568
|
+
readonly type: "dispatch";
|
|
1569
|
+
readonly body: string;
|
|
1570
|
+
readonly createdAt: string;
|
|
1571
|
+
readonly digest: string;
|
|
1572
|
+
readonly id: string;
|
|
1573
|
+
readonly runId: string;
|
|
1574
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
1575
|
+
readonly sender: {
|
|
1576
|
+
readonly actorId: "actor_local_user";
|
|
1577
|
+
readonly kind: "run-coordinator";
|
|
1578
|
+
readonly runId: string;
|
|
1579
|
+
};
|
|
1580
|
+
readonly subject: string;
|
|
1581
|
+
} | {
|
|
1582
|
+
readonly questionId: string;
|
|
1583
|
+
readonly recipient: {
|
|
1584
|
+
readonly id: string;
|
|
1585
|
+
readonly kind: "run";
|
|
1586
|
+
};
|
|
1587
|
+
readonly type: "question";
|
|
1588
|
+
readonly body: string;
|
|
1589
|
+
readonly createdAt: string;
|
|
1590
|
+
readonly digest: string;
|
|
1591
|
+
readonly id: string;
|
|
1592
|
+
readonly runId: string;
|
|
1593
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
1594
|
+
readonly sender: {
|
|
1595
|
+
readonly actorId: "actor_local_user";
|
|
1596
|
+
readonly kind: "run-coordinator";
|
|
1597
|
+
readonly runId: string;
|
|
1598
|
+
};
|
|
1599
|
+
readonly subject: string;
|
|
1600
|
+
} | {
|
|
1601
|
+
readonly questionId: string;
|
|
1602
|
+
readonly recipient: {
|
|
1603
|
+
readonly id: string;
|
|
1604
|
+
readonly kind: "dispatch";
|
|
1605
|
+
};
|
|
1606
|
+
readonly type: "reply";
|
|
1607
|
+
readonly body: string;
|
|
1608
|
+
readonly createdAt: string;
|
|
1609
|
+
readonly digest: string;
|
|
1610
|
+
readonly id: string;
|
|
1611
|
+
readonly runId: string;
|
|
1612
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
1613
|
+
readonly sender: {
|
|
1614
|
+
readonly actorId: "actor_local_user";
|
|
1615
|
+
readonly kind: "run-coordinator";
|
|
1616
|
+
readonly runId: string;
|
|
1617
|
+
};
|
|
1618
|
+
readonly subject: string;
|
|
1619
|
+
} | {
|
|
1620
|
+
readonly recipient: {
|
|
1621
|
+
readonly id: string;
|
|
1622
|
+
readonly kind: "run";
|
|
1623
|
+
};
|
|
1624
|
+
readonly type: "dispatch-settled";
|
|
1625
|
+
readonly body: string;
|
|
1626
|
+
readonly createdAt: string;
|
|
1627
|
+
readonly digest: string;
|
|
1628
|
+
readonly id: string;
|
|
1629
|
+
readonly runId: string;
|
|
1630
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
1631
|
+
readonly sender: {
|
|
1632
|
+
readonly actorId: "actor_local_user";
|
|
1633
|
+
readonly kind: "run-coordinator";
|
|
1634
|
+
readonly runId: string;
|
|
1635
|
+
};
|
|
1636
|
+
readonly subject: string;
|
|
1637
|
+
};
|
|
1638
|
+
readonly state: "acknowledged";
|
|
1639
|
+
readonly id: string;
|
|
1640
|
+
readonly createdAt: string;
|
|
1641
|
+
readonly mailboxId: string;
|
|
1642
|
+
readonly attemptCount: number;
|
|
1643
|
+
readonly sequence: string;
|
|
1644
|
+
readonly acknowledgingActorId: "actor_local_user";
|
|
1645
|
+
readonly acknowledgedAt: string;
|
|
1646
|
+
readonly firstDeliveredAt?: string | undefined;
|
|
1647
|
+
readonly lastDeliveredAt?: string | undefined;
|
|
1648
|
+
};
|
|
1649
|
+
readonly mailbox: {
|
|
1650
|
+
readonly contentBytes: string;
|
|
1651
|
+
readonly createdAt: string;
|
|
1652
|
+
readonly deliveryCount: string;
|
|
1653
|
+
readonly headSequence: string;
|
|
1654
|
+
readonly id: string;
|
|
1655
|
+
readonly owner: {
|
|
1656
|
+
readonly id: string;
|
|
1657
|
+
readonly kind: "run";
|
|
1658
|
+
} | {
|
|
1659
|
+
readonly id: string;
|
|
1660
|
+
readonly kind: "dispatch";
|
|
1661
|
+
};
|
|
1662
|
+
readonly revision: string;
|
|
1663
|
+
readonly runId: string;
|
|
1664
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
1665
|
+
readonly updatedAt: string;
|
|
1666
|
+
};
|
|
1667
|
+
readonly method: "run.inbox.ack";
|
|
1668
|
+
readonly receipt: {
|
|
1669
|
+
readonly actorId: string;
|
|
1670
|
+
readonly aggregateRevision: string;
|
|
1671
|
+
readonly commandId: string;
|
|
1672
|
+
readonly createdAt: string;
|
|
1673
|
+
readonly eventCursor: string;
|
|
1674
|
+
readonly method: string;
|
|
1675
|
+
readonly receiptId: string;
|
|
1676
|
+
readonly schemaVersion: 1;
|
|
1677
|
+
readonly state: "succeeded";
|
|
1678
|
+
readonly target: {
|
|
1679
|
+
readonly id: string;
|
|
1680
|
+
readonly type: string;
|
|
1681
|
+
};
|
|
1682
|
+
readonly updatedAt: string;
|
|
1683
|
+
};
|
|
1684
|
+
}>;
|
|
1685
|
+
export type OrchestrationInboxAckResult = InferRuntimeSchema<typeof orchestrationInboxAckResultSchema>;
|
|
1686
|
+
export declare const orchestrationQuestionOpenResultSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
1687
|
+
readonly delivery: {
|
|
1688
|
+
readonly message: {
|
|
1689
|
+
readonly recipient: {
|
|
1690
|
+
readonly id: string;
|
|
1691
|
+
readonly kind: "dispatch";
|
|
1692
|
+
};
|
|
1693
|
+
readonly type: "dispatch";
|
|
1694
|
+
readonly body: string;
|
|
1695
|
+
readonly createdAt: string;
|
|
1696
|
+
readonly digest: string;
|
|
1697
|
+
readonly id: string;
|
|
1698
|
+
readonly runId: string;
|
|
1699
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
1700
|
+
readonly sender: {
|
|
1701
|
+
readonly actorId: "actor_local_user";
|
|
1702
|
+
readonly kind: "run-coordinator";
|
|
1703
|
+
readonly runId: string;
|
|
1704
|
+
};
|
|
1705
|
+
readonly subject: string;
|
|
1706
|
+
} | {
|
|
1707
|
+
readonly questionId: string;
|
|
1708
|
+
readonly recipient: {
|
|
1709
|
+
readonly id: string;
|
|
1710
|
+
readonly kind: "run";
|
|
1711
|
+
};
|
|
1712
|
+
readonly type: "question";
|
|
1713
|
+
readonly body: string;
|
|
1714
|
+
readonly createdAt: string;
|
|
1715
|
+
readonly digest: string;
|
|
1716
|
+
readonly id: string;
|
|
1717
|
+
readonly runId: string;
|
|
1718
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
1719
|
+
readonly sender: {
|
|
1720
|
+
readonly actorId: "actor_local_user";
|
|
1721
|
+
readonly kind: "run-coordinator";
|
|
1722
|
+
readonly runId: string;
|
|
1723
|
+
};
|
|
1724
|
+
readonly subject: string;
|
|
1725
|
+
} | {
|
|
1726
|
+
readonly questionId: string;
|
|
1727
|
+
readonly recipient: {
|
|
1728
|
+
readonly id: string;
|
|
1729
|
+
readonly kind: "dispatch";
|
|
1730
|
+
};
|
|
1731
|
+
readonly type: "reply";
|
|
1732
|
+
readonly body: string;
|
|
1733
|
+
readonly createdAt: string;
|
|
1734
|
+
readonly digest: string;
|
|
1735
|
+
readonly id: string;
|
|
1736
|
+
readonly runId: string;
|
|
1737
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
1738
|
+
readonly sender: {
|
|
1739
|
+
readonly actorId: "actor_local_user";
|
|
1740
|
+
readonly kind: "run-coordinator";
|
|
1741
|
+
readonly runId: string;
|
|
1742
|
+
};
|
|
1743
|
+
readonly subject: string;
|
|
1744
|
+
} | {
|
|
1745
|
+
readonly recipient: {
|
|
1746
|
+
readonly id: string;
|
|
1747
|
+
readonly kind: "run";
|
|
1748
|
+
};
|
|
1749
|
+
readonly type: "dispatch-settled";
|
|
1750
|
+
readonly body: string;
|
|
1751
|
+
readonly createdAt: string;
|
|
1752
|
+
readonly digest: string;
|
|
1753
|
+
readonly id: string;
|
|
1754
|
+
readonly runId: string;
|
|
1755
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
1756
|
+
readonly sender: {
|
|
1757
|
+
readonly actorId: "actor_local_user";
|
|
1758
|
+
readonly kind: "run-coordinator";
|
|
1759
|
+
readonly runId: string;
|
|
1760
|
+
};
|
|
1761
|
+
readonly subject: string;
|
|
1762
|
+
};
|
|
1763
|
+
readonly state: "pending";
|
|
1764
|
+
readonly id: string;
|
|
1765
|
+
readonly createdAt: string;
|
|
1766
|
+
readonly mailboxId: string;
|
|
1767
|
+
readonly attemptCount: number;
|
|
1768
|
+
readonly sequence: string;
|
|
1769
|
+
readonly firstDeliveredAt?: string | undefined;
|
|
1770
|
+
readonly lastDeliveredAt?: string | undefined;
|
|
1771
|
+
} | {
|
|
1772
|
+
readonly message: {
|
|
1773
|
+
readonly recipient: {
|
|
1774
|
+
readonly id: string;
|
|
1775
|
+
readonly kind: "dispatch";
|
|
1776
|
+
};
|
|
1777
|
+
readonly type: "dispatch";
|
|
1778
|
+
readonly body: string;
|
|
1779
|
+
readonly createdAt: string;
|
|
1780
|
+
readonly digest: string;
|
|
1781
|
+
readonly id: string;
|
|
1782
|
+
readonly runId: string;
|
|
1783
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
1784
|
+
readonly sender: {
|
|
1785
|
+
readonly actorId: "actor_local_user";
|
|
1786
|
+
readonly kind: "run-coordinator";
|
|
1787
|
+
readonly runId: string;
|
|
1788
|
+
};
|
|
1789
|
+
readonly subject: string;
|
|
1790
|
+
} | {
|
|
1791
|
+
readonly questionId: string;
|
|
1792
|
+
readonly recipient: {
|
|
1793
|
+
readonly id: string;
|
|
1794
|
+
readonly kind: "run";
|
|
1795
|
+
};
|
|
1796
|
+
readonly type: "question";
|
|
1797
|
+
readonly body: string;
|
|
1798
|
+
readonly createdAt: string;
|
|
1799
|
+
readonly digest: string;
|
|
1800
|
+
readonly id: string;
|
|
1801
|
+
readonly runId: string;
|
|
1802
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
1803
|
+
readonly sender: {
|
|
1804
|
+
readonly actorId: "actor_local_user";
|
|
1805
|
+
readonly kind: "run-coordinator";
|
|
1806
|
+
readonly runId: string;
|
|
1807
|
+
};
|
|
1808
|
+
readonly subject: string;
|
|
1809
|
+
} | {
|
|
1810
|
+
readonly questionId: string;
|
|
1811
|
+
readonly recipient: {
|
|
1812
|
+
readonly id: string;
|
|
1813
|
+
readonly kind: "dispatch";
|
|
1814
|
+
};
|
|
1815
|
+
readonly type: "reply";
|
|
1816
|
+
readonly body: string;
|
|
1817
|
+
readonly createdAt: string;
|
|
1818
|
+
readonly digest: string;
|
|
1819
|
+
readonly id: string;
|
|
1820
|
+
readonly runId: string;
|
|
1821
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
1822
|
+
readonly sender: {
|
|
1823
|
+
readonly actorId: "actor_local_user";
|
|
1824
|
+
readonly kind: "run-coordinator";
|
|
1825
|
+
readonly runId: string;
|
|
1826
|
+
};
|
|
1827
|
+
readonly subject: string;
|
|
1828
|
+
} | {
|
|
1829
|
+
readonly recipient: {
|
|
1830
|
+
readonly id: string;
|
|
1831
|
+
readonly kind: "run";
|
|
1832
|
+
};
|
|
1833
|
+
readonly type: "dispatch-settled";
|
|
1834
|
+
readonly body: string;
|
|
1835
|
+
readonly createdAt: string;
|
|
1836
|
+
readonly digest: string;
|
|
1837
|
+
readonly id: string;
|
|
1838
|
+
readonly runId: string;
|
|
1839
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
1840
|
+
readonly sender: {
|
|
1841
|
+
readonly actorId: "actor_local_user";
|
|
1842
|
+
readonly kind: "run-coordinator";
|
|
1843
|
+
readonly runId: string;
|
|
1844
|
+
};
|
|
1845
|
+
readonly subject: string;
|
|
1846
|
+
};
|
|
1847
|
+
readonly state: "acknowledged";
|
|
1848
|
+
readonly id: string;
|
|
1849
|
+
readonly createdAt: string;
|
|
1850
|
+
readonly mailboxId: string;
|
|
1851
|
+
readonly attemptCount: number;
|
|
1852
|
+
readonly sequence: string;
|
|
1853
|
+
readonly acknowledgingActorId: "actor_local_user";
|
|
1854
|
+
readonly acknowledgedAt: string;
|
|
1855
|
+
readonly firstDeliveredAt?: string | undefined;
|
|
1856
|
+
readonly lastDeliveredAt?: string | undefined;
|
|
1857
|
+
};
|
|
1858
|
+
readonly method: "run.question.open";
|
|
1859
|
+
readonly aggregate: {
|
|
1860
|
+
readonly run: {
|
|
1861
|
+
readonly coordinator: {
|
|
1862
|
+
readonly actorId: "actor_local_user";
|
|
1863
|
+
readonly epoch: 1;
|
|
1864
|
+
};
|
|
1865
|
+
readonly createdAt: string;
|
|
1866
|
+
readonly dispatchTaskId: string;
|
|
1867
|
+
readonly id: string;
|
|
1868
|
+
readonly revision: string;
|
|
1869
|
+
readonly rootTaskId: string;
|
|
1870
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
1871
|
+
readonly state: "failed" | "active" | "waiting-question";
|
|
1872
|
+
readonly terminalId: string;
|
|
1873
|
+
readonly updatedAt: string;
|
|
1874
|
+
readonly workspaceId: string;
|
|
1875
|
+
};
|
|
1876
|
+
readonly dispatch: {
|
|
1877
|
+
readonly state: "active";
|
|
1878
|
+
readonly attemptId: string;
|
|
1879
|
+
readonly createdAt: string;
|
|
1880
|
+
readonly id: string;
|
|
1881
|
+
readonly revision: string;
|
|
1882
|
+
readonly runId: string;
|
|
1883
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
1884
|
+
readonly taskId: string;
|
|
1885
|
+
readonly terminalId: string;
|
|
1886
|
+
readonly updatedAt: string;
|
|
1887
|
+
} | {
|
|
1888
|
+
readonly state: "waiting-question";
|
|
1889
|
+
readonly attemptId: string;
|
|
1890
|
+
readonly createdAt: string;
|
|
1891
|
+
readonly id: string;
|
|
1892
|
+
readonly revision: string;
|
|
1893
|
+
readonly runId: string;
|
|
1894
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
1895
|
+
readonly taskId: string;
|
|
1896
|
+
readonly terminalId: string;
|
|
1897
|
+
readonly updatedAt: string;
|
|
1898
|
+
} | {
|
|
1899
|
+
readonly failure: {
|
|
1900
|
+
readonly code: "terminal_containment_unsupported";
|
|
1901
|
+
readonly platform: "darwin" | "linux";
|
|
1902
|
+
} | {
|
|
1903
|
+
readonly code: "platform_unsupported";
|
|
1904
|
+
readonly platform: "win32" | "other";
|
|
1905
|
+
};
|
|
1906
|
+
readonly state: "failed";
|
|
1907
|
+
readonly attemptId: string;
|
|
1908
|
+
readonly createdAt: string;
|
|
1909
|
+
readonly id: string;
|
|
1910
|
+
readonly revision: string;
|
|
1911
|
+
readonly runId: string;
|
|
1912
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
1913
|
+
readonly taskId: string;
|
|
1914
|
+
readonly terminalId: string;
|
|
1915
|
+
readonly updatedAt: string;
|
|
1916
|
+
};
|
|
1917
|
+
readonly tasks: readonly {
|
|
1918
|
+
readonly objective: string;
|
|
1919
|
+
readonly clientKey: string;
|
|
1920
|
+
readonly createdAt: string;
|
|
1921
|
+
readonly dependencyTaskIds: readonly string[];
|
|
1922
|
+
readonly id: string;
|
|
1923
|
+
readonly revision: string;
|
|
1924
|
+
readonly runId: string;
|
|
1925
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
1926
|
+
readonly state: "failed" | "active" | "pending" | "waiting-question";
|
|
1927
|
+
readonly updatedAt: string;
|
|
1928
|
+
readonly workspaceId: string;
|
|
1929
|
+
}[];
|
|
1930
|
+
readonly attempt: {
|
|
1931
|
+
readonly createdAt: string;
|
|
1932
|
+
readonly id: string;
|
|
1933
|
+
readonly ordinal: 1;
|
|
1934
|
+
readonly revision: string;
|
|
1935
|
+
readonly runId: string;
|
|
1936
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
1937
|
+
readonly state: "failed" | "active" | "waiting-question";
|
|
1938
|
+
readonly taskId: string;
|
|
1939
|
+
readonly updatedAt: string;
|
|
1940
|
+
};
|
|
1941
|
+
readonly mailboxes: readonly {
|
|
1942
|
+
readonly contentBytes: string;
|
|
1943
|
+
readonly createdAt: string;
|
|
1944
|
+
readonly deliveryCount: string;
|
|
1945
|
+
readonly headSequence: string;
|
|
1946
|
+
readonly id: string;
|
|
1947
|
+
readonly owner: {
|
|
1948
|
+
readonly id: string;
|
|
1949
|
+
readonly kind: "run";
|
|
1950
|
+
} | {
|
|
1951
|
+
readonly id: string;
|
|
1952
|
+
readonly kind: "dispatch";
|
|
1953
|
+
};
|
|
1954
|
+
readonly revision: string;
|
|
1955
|
+
readonly runId: string;
|
|
1956
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
1957
|
+
readonly updatedAt: string;
|
|
1958
|
+
}[];
|
|
1959
|
+
readonly question?: {
|
|
1960
|
+
readonly state: "open";
|
|
1961
|
+
readonly askMessageId: string;
|
|
1962
|
+
readonly attemptId: string;
|
|
1963
|
+
readonly body: string;
|
|
1964
|
+
readonly createdAt: string;
|
|
1965
|
+
readonly dispatchId: string;
|
|
1966
|
+
readonly id: string;
|
|
1967
|
+
readonly revision: string;
|
|
1968
|
+
readonly runId: string;
|
|
1969
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
1970
|
+
readonly subject: string;
|
|
1971
|
+
readonly taskId: string;
|
|
1972
|
+
readonly updatedAt: string;
|
|
1973
|
+
} | {
|
|
1974
|
+
readonly answer: string;
|
|
1975
|
+
readonly replyMessageId: string;
|
|
1976
|
+
readonly state: "answered";
|
|
1977
|
+
readonly askMessageId: string;
|
|
1978
|
+
readonly attemptId: string;
|
|
1979
|
+
readonly body: string;
|
|
1980
|
+
readonly createdAt: string;
|
|
1981
|
+
readonly dispatchId: string;
|
|
1982
|
+
readonly id: string;
|
|
1983
|
+
readonly revision: string;
|
|
1984
|
+
readonly runId: string;
|
|
1985
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
1986
|
+
readonly subject: string;
|
|
1987
|
+
readonly taskId: string;
|
|
1988
|
+
readonly updatedAt: string;
|
|
1989
|
+
} | {
|
|
1990
|
+
readonly state: "cancelled";
|
|
1991
|
+
readonly askMessageId: string;
|
|
1992
|
+
readonly attemptId: string;
|
|
1993
|
+
readonly body: string;
|
|
1994
|
+
readonly createdAt: string;
|
|
1995
|
+
readonly dispatchId: string;
|
|
1996
|
+
readonly id: string;
|
|
1997
|
+
readonly revision: string;
|
|
1998
|
+
readonly runId: string;
|
|
1999
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
2000
|
+
readonly subject: string;
|
|
2001
|
+
readonly taskId: string;
|
|
2002
|
+
readonly updatedAt: string;
|
|
2003
|
+
} | undefined;
|
|
2004
|
+
};
|
|
2005
|
+
readonly receipt: {
|
|
2006
|
+
readonly actorId: string;
|
|
2007
|
+
readonly aggregateRevision: string;
|
|
2008
|
+
readonly commandId: string;
|
|
2009
|
+
readonly createdAt: string;
|
|
2010
|
+
readonly eventCursor: string;
|
|
2011
|
+
readonly method: string;
|
|
2012
|
+
readonly receiptId: string;
|
|
2013
|
+
readonly schemaVersion: 1;
|
|
2014
|
+
readonly state: "succeeded";
|
|
2015
|
+
readonly target: {
|
|
2016
|
+
readonly id: string;
|
|
2017
|
+
readonly type: string;
|
|
2018
|
+
};
|
|
2019
|
+
readonly updatedAt: string;
|
|
2020
|
+
};
|
|
2021
|
+
}>;
|
|
2022
|
+
export type OrchestrationQuestionOpenResult = InferRuntimeSchema<typeof orchestrationQuestionOpenResultSchema>;
|
|
2023
|
+
export declare const orchestrationQuestionReplyResultSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
2024
|
+
readonly delivery: {
|
|
2025
|
+
readonly message: {
|
|
2026
|
+
readonly recipient: {
|
|
2027
|
+
readonly id: string;
|
|
2028
|
+
readonly kind: "dispatch";
|
|
2029
|
+
};
|
|
2030
|
+
readonly type: "dispatch";
|
|
2031
|
+
readonly body: string;
|
|
2032
|
+
readonly createdAt: string;
|
|
2033
|
+
readonly digest: string;
|
|
2034
|
+
readonly id: string;
|
|
2035
|
+
readonly runId: string;
|
|
2036
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
2037
|
+
readonly sender: {
|
|
2038
|
+
readonly actorId: "actor_local_user";
|
|
2039
|
+
readonly kind: "run-coordinator";
|
|
2040
|
+
readonly runId: string;
|
|
2041
|
+
};
|
|
2042
|
+
readonly subject: string;
|
|
2043
|
+
} | {
|
|
2044
|
+
readonly questionId: string;
|
|
2045
|
+
readonly recipient: {
|
|
2046
|
+
readonly id: string;
|
|
2047
|
+
readonly kind: "run";
|
|
2048
|
+
};
|
|
2049
|
+
readonly type: "question";
|
|
2050
|
+
readonly body: string;
|
|
2051
|
+
readonly createdAt: string;
|
|
2052
|
+
readonly digest: string;
|
|
2053
|
+
readonly id: string;
|
|
2054
|
+
readonly runId: string;
|
|
2055
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
2056
|
+
readonly sender: {
|
|
2057
|
+
readonly actorId: "actor_local_user";
|
|
2058
|
+
readonly kind: "run-coordinator";
|
|
2059
|
+
readonly runId: string;
|
|
2060
|
+
};
|
|
2061
|
+
readonly subject: string;
|
|
2062
|
+
} | {
|
|
2063
|
+
readonly questionId: string;
|
|
2064
|
+
readonly recipient: {
|
|
2065
|
+
readonly id: string;
|
|
2066
|
+
readonly kind: "dispatch";
|
|
2067
|
+
};
|
|
2068
|
+
readonly type: "reply";
|
|
2069
|
+
readonly body: string;
|
|
2070
|
+
readonly createdAt: string;
|
|
2071
|
+
readonly digest: string;
|
|
2072
|
+
readonly id: string;
|
|
2073
|
+
readonly runId: string;
|
|
2074
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
2075
|
+
readonly sender: {
|
|
2076
|
+
readonly actorId: "actor_local_user";
|
|
2077
|
+
readonly kind: "run-coordinator";
|
|
2078
|
+
readonly runId: string;
|
|
2079
|
+
};
|
|
2080
|
+
readonly subject: string;
|
|
2081
|
+
} | {
|
|
2082
|
+
readonly recipient: {
|
|
2083
|
+
readonly id: string;
|
|
2084
|
+
readonly kind: "run";
|
|
2085
|
+
};
|
|
2086
|
+
readonly type: "dispatch-settled";
|
|
2087
|
+
readonly body: string;
|
|
2088
|
+
readonly createdAt: string;
|
|
2089
|
+
readonly digest: string;
|
|
2090
|
+
readonly id: string;
|
|
2091
|
+
readonly runId: string;
|
|
2092
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
2093
|
+
readonly sender: {
|
|
2094
|
+
readonly actorId: "actor_local_user";
|
|
2095
|
+
readonly kind: "run-coordinator";
|
|
2096
|
+
readonly runId: string;
|
|
2097
|
+
};
|
|
2098
|
+
readonly subject: string;
|
|
2099
|
+
};
|
|
2100
|
+
readonly state: "pending";
|
|
2101
|
+
readonly id: string;
|
|
2102
|
+
readonly createdAt: string;
|
|
2103
|
+
readonly mailboxId: string;
|
|
2104
|
+
readonly attemptCount: number;
|
|
2105
|
+
readonly sequence: string;
|
|
2106
|
+
readonly firstDeliveredAt?: string | undefined;
|
|
2107
|
+
readonly lastDeliveredAt?: string | undefined;
|
|
2108
|
+
} | {
|
|
2109
|
+
readonly message: {
|
|
2110
|
+
readonly recipient: {
|
|
2111
|
+
readonly id: string;
|
|
2112
|
+
readonly kind: "dispatch";
|
|
2113
|
+
};
|
|
2114
|
+
readonly type: "dispatch";
|
|
2115
|
+
readonly body: string;
|
|
2116
|
+
readonly createdAt: string;
|
|
2117
|
+
readonly digest: string;
|
|
2118
|
+
readonly id: string;
|
|
2119
|
+
readonly runId: string;
|
|
2120
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
2121
|
+
readonly sender: {
|
|
2122
|
+
readonly actorId: "actor_local_user";
|
|
2123
|
+
readonly kind: "run-coordinator";
|
|
2124
|
+
readonly runId: string;
|
|
2125
|
+
};
|
|
2126
|
+
readonly subject: string;
|
|
2127
|
+
} | {
|
|
2128
|
+
readonly questionId: string;
|
|
2129
|
+
readonly recipient: {
|
|
2130
|
+
readonly id: string;
|
|
2131
|
+
readonly kind: "run";
|
|
2132
|
+
};
|
|
2133
|
+
readonly type: "question";
|
|
2134
|
+
readonly body: string;
|
|
2135
|
+
readonly createdAt: string;
|
|
2136
|
+
readonly digest: string;
|
|
2137
|
+
readonly id: string;
|
|
2138
|
+
readonly runId: string;
|
|
2139
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
2140
|
+
readonly sender: {
|
|
2141
|
+
readonly actorId: "actor_local_user";
|
|
2142
|
+
readonly kind: "run-coordinator";
|
|
2143
|
+
readonly runId: string;
|
|
2144
|
+
};
|
|
2145
|
+
readonly subject: string;
|
|
2146
|
+
} | {
|
|
2147
|
+
readonly questionId: string;
|
|
2148
|
+
readonly recipient: {
|
|
2149
|
+
readonly id: string;
|
|
2150
|
+
readonly kind: "dispatch";
|
|
2151
|
+
};
|
|
2152
|
+
readonly type: "reply";
|
|
2153
|
+
readonly body: string;
|
|
2154
|
+
readonly createdAt: string;
|
|
2155
|
+
readonly digest: string;
|
|
2156
|
+
readonly id: string;
|
|
2157
|
+
readonly runId: string;
|
|
2158
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
2159
|
+
readonly sender: {
|
|
2160
|
+
readonly actorId: "actor_local_user";
|
|
2161
|
+
readonly kind: "run-coordinator";
|
|
2162
|
+
readonly runId: string;
|
|
2163
|
+
};
|
|
2164
|
+
readonly subject: string;
|
|
2165
|
+
} | {
|
|
2166
|
+
readonly recipient: {
|
|
2167
|
+
readonly id: string;
|
|
2168
|
+
readonly kind: "run";
|
|
2169
|
+
};
|
|
2170
|
+
readonly type: "dispatch-settled";
|
|
2171
|
+
readonly body: string;
|
|
2172
|
+
readonly createdAt: string;
|
|
2173
|
+
readonly digest: string;
|
|
2174
|
+
readonly id: string;
|
|
2175
|
+
readonly runId: string;
|
|
2176
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
2177
|
+
readonly sender: {
|
|
2178
|
+
readonly actorId: "actor_local_user";
|
|
2179
|
+
readonly kind: "run-coordinator";
|
|
2180
|
+
readonly runId: string;
|
|
2181
|
+
};
|
|
2182
|
+
readonly subject: string;
|
|
2183
|
+
};
|
|
2184
|
+
readonly state: "acknowledged";
|
|
2185
|
+
readonly id: string;
|
|
2186
|
+
readonly createdAt: string;
|
|
2187
|
+
readonly mailboxId: string;
|
|
2188
|
+
readonly attemptCount: number;
|
|
2189
|
+
readonly sequence: string;
|
|
2190
|
+
readonly acknowledgingActorId: "actor_local_user";
|
|
2191
|
+
readonly acknowledgedAt: string;
|
|
2192
|
+
readonly firstDeliveredAt?: string | undefined;
|
|
2193
|
+
readonly lastDeliveredAt?: string | undefined;
|
|
2194
|
+
};
|
|
2195
|
+
readonly method: "run.question.reply";
|
|
2196
|
+
readonly aggregate: {
|
|
2197
|
+
readonly run: {
|
|
2198
|
+
readonly coordinator: {
|
|
2199
|
+
readonly actorId: "actor_local_user";
|
|
2200
|
+
readonly epoch: 1;
|
|
2201
|
+
};
|
|
2202
|
+
readonly createdAt: string;
|
|
2203
|
+
readonly dispatchTaskId: string;
|
|
2204
|
+
readonly id: string;
|
|
2205
|
+
readonly revision: string;
|
|
2206
|
+
readonly rootTaskId: string;
|
|
2207
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
2208
|
+
readonly state: "failed" | "active" | "waiting-question";
|
|
2209
|
+
readonly terminalId: string;
|
|
2210
|
+
readonly updatedAt: string;
|
|
2211
|
+
readonly workspaceId: string;
|
|
2212
|
+
};
|
|
2213
|
+
readonly dispatch: {
|
|
2214
|
+
readonly state: "active";
|
|
2215
|
+
readonly attemptId: string;
|
|
2216
|
+
readonly createdAt: string;
|
|
2217
|
+
readonly id: string;
|
|
2218
|
+
readonly revision: string;
|
|
2219
|
+
readonly runId: string;
|
|
2220
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
2221
|
+
readonly taskId: string;
|
|
2222
|
+
readonly terminalId: string;
|
|
2223
|
+
readonly updatedAt: string;
|
|
2224
|
+
} | {
|
|
2225
|
+
readonly state: "waiting-question";
|
|
2226
|
+
readonly attemptId: string;
|
|
2227
|
+
readonly createdAt: string;
|
|
2228
|
+
readonly id: string;
|
|
2229
|
+
readonly revision: string;
|
|
2230
|
+
readonly runId: string;
|
|
2231
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
2232
|
+
readonly taskId: string;
|
|
2233
|
+
readonly terminalId: string;
|
|
2234
|
+
readonly updatedAt: string;
|
|
2235
|
+
} | {
|
|
2236
|
+
readonly failure: {
|
|
2237
|
+
readonly code: "terminal_containment_unsupported";
|
|
2238
|
+
readonly platform: "darwin" | "linux";
|
|
2239
|
+
} | {
|
|
2240
|
+
readonly code: "platform_unsupported";
|
|
2241
|
+
readonly platform: "win32" | "other";
|
|
2242
|
+
};
|
|
2243
|
+
readonly state: "failed";
|
|
2244
|
+
readonly attemptId: string;
|
|
2245
|
+
readonly createdAt: string;
|
|
2246
|
+
readonly id: string;
|
|
2247
|
+
readonly revision: string;
|
|
2248
|
+
readonly runId: string;
|
|
2249
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
2250
|
+
readonly taskId: string;
|
|
2251
|
+
readonly terminalId: string;
|
|
2252
|
+
readonly updatedAt: string;
|
|
2253
|
+
};
|
|
2254
|
+
readonly tasks: readonly {
|
|
2255
|
+
readonly objective: string;
|
|
2256
|
+
readonly clientKey: string;
|
|
2257
|
+
readonly createdAt: string;
|
|
2258
|
+
readonly dependencyTaskIds: readonly string[];
|
|
2259
|
+
readonly id: string;
|
|
2260
|
+
readonly revision: string;
|
|
2261
|
+
readonly runId: string;
|
|
2262
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
2263
|
+
readonly state: "failed" | "active" | "pending" | "waiting-question";
|
|
2264
|
+
readonly updatedAt: string;
|
|
2265
|
+
readonly workspaceId: string;
|
|
2266
|
+
}[];
|
|
2267
|
+
readonly attempt: {
|
|
2268
|
+
readonly createdAt: string;
|
|
2269
|
+
readonly id: string;
|
|
2270
|
+
readonly ordinal: 1;
|
|
2271
|
+
readonly revision: string;
|
|
2272
|
+
readonly runId: string;
|
|
2273
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
2274
|
+
readonly state: "failed" | "active" | "waiting-question";
|
|
2275
|
+
readonly taskId: string;
|
|
2276
|
+
readonly updatedAt: string;
|
|
2277
|
+
};
|
|
2278
|
+
readonly mailboxes: readonly {
|
|
2279
|
+
readonly contentBytes: string;
|
|
2280
|
+
readonly createdAt: string;
|
|
2281
|
+
readonly deliveryCount: string;
|
|
2282
|
+
readonly headSequence: string;
|
|
2283
|
+
readonly id: string;
|
|
2284
|
+
readonly owner: {
|
|
2285
|
+
readonly id: string;
|
|
2286
|
+
readonly kind: "run";
|
|
2287
|
+
} | {
|
|
2288
|
+
readonly id: string;
|
|
2289
|
+
readonly kind: "dispatch";
|
|
2290
|
+
};
|
|
2291
|
+
readonly revision: string;
|
|
2292
|
+
readonly runId: string;
|
|
2293
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
2294
|
+
readonly updatedAt: string;
|
|
2295
|
+
}[];
|
|
2296
|
+
readonly question?: {
|
|
2297
|
+
readonly state: "open";
|
|
2298
|
+
readonly askMessageId: string;
|
|
2299
|
+
readonly attemptId: string;
|
|
2300
|
+
readonly body: string;
|
|
2301
|
+
readonly createdAt: string;
|
|
2302
|
+
readonly dispatchId: string;
|
|
2303
|
+
readonly id: string;
|
|
2304
|
+
readonly revision: string;
|
|
2305
|
+
readonly runId: string;
|
|
2306
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
2307
|
+
readonly subject: string;
|
|
2308
|
+
readonly taskId: string;
|
|
2309
|
+
readonly updatedAt: string;
|
|
2310
|
+
} | {
|
|
2311
|
+
readonly answer: string;
|
|
2312
|
+
readonly replyMessageId: string;
|
|
2313
|
+
readonly state: "answered";
|
|
2314
|
+
readonly askMessageId: string;
|
|
2315
|
+
readonly attemptId: string;
|
|
2316
|
+
readonly body: string;
|
|
2317
|
+
readonly createdAt: string;
|
|
2318
|
+
readonly dispatchId: string;
|
|
2319
|
+
readonly id: string;
|
|
2320
|
+
readonly revision: string;
|
|
2321
|
+
readonly runId: string;
|
|
2322
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
2323
|
+
readonly subject: string;
|
|
2324
|
+
readonly taskId: string;
|
|
2325
|
+
readonly updatedAt: string;
|
|
2326
|
+
} | {
|
|
2327
|
+
readonly state: "cancelled";
|
|
2328
|
+
readonly askMessageId: string;
|
|
2329
|
+
readonly attemptId: string;
|
|
2330
|
+
readonly body: string;
|
|
2331
|
+
readonly createdAt: string;
|
|
2332
|
+
readonly dispatchId: string;
|
|
2333
|
+
readonly id: string;
|
|
2334
|
+
readonly revision: string;
|
|
2335
|
+
readonly runId: string;
|
|
2336
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
2337
|
+
readonly subject: string;
|
|
2338
|
+
readonly taskId: string;
|
|
2339
|
+
readonly updatedAt: string;
|
|
2340
|
+
} | undefined;
|
|
2341
|
+
};
|
|
2342
|
+
readonly receipt: {
|
|
2343
|
+
readonly actorId: string;
|
|
2344
|
+
readonly aggregateRevision: string;
|
|
2345
|
+
readonly commandId: string;
|
|
2346
|
+
readonly createdAt: string;
|
|
2347
|
+
readonly eventCursor: string;
|
|
2348
|
+
readonly method: string;
|
|
2349
|
+
readonly receiptId: string;
|
|
2350
|
+
readonly schemaVersion: 1;
|
|
2351
|
+
readonly state: "succeeded";
|
|
2352
|
+
readonly target: {
|
|
2353
|
+
readonly id: string;
|
|
2354
|
+
readonly type: string;
|
|
2355
|
+
};
|
|
2356
|
+
readonly updatedAt: string;
|
|
2357
|
+
};
|
|
2358
|
+
}>;
|
|
2359
|
+
export type OrchestrationQuestionReplyResult = InferRuntimeSchema<typeof orchestrationQuestionReplyResultSchema>;
|
|
2360
|
+
export declare const orchestrationQuestionCancelResultSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
2361
|
+
readonly method: "run.question.cancel";
|
|
2362
|
+
readonly aggregate: {
|
|
2363
|
+
readonly run: {
|
|
2364
|
+
readonly coordinator: {
|
|
2365
|
+
readonly actorId: "actor_local_user";
|
|
2366
|
+
readonly epoch: 1;
|
|
2367
|
+
};
|
|
2368
|
+
readonly createdAt: string;
|
|
2369
|
+
readonly dispatchTaskId: string;
|
|
2370
|
+
readonly id: string;
|
|
2371
|
+
readonly revision: string;
|
|
2372
|
+
readonly rootTaskId: string;
|
|
2373
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
2374
|
+
readonly state: "failed" | "active" | "waiting-question";
|
|
2375
|
+
readonly terminalId: string;
|
|
2376
|
+
readonly updatedAt: string;
|
|
2377
|
+
readonly workspaceId: string;
|
|
2378
|
+
};
|
|
2379
|
+
readonly dispatch: {
|
|
2380
|
+
readonly state: "active";
|
|
2381
|
+
readonly attemptId: string;
|
|
2382
|
+
readonly createdAt: string;
|
|
2383
|
+
readonly id: string;
|
|
2384
|
+
readonly revision: string;
|
|
2385
|
+
readonly runId: string;
|
|
2386
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
2387
|
+
readonly taskId: string;
|
|
2388
|
+
readonly terminalId: string;
|
|
2389
|
+
readonly updatedAt: string;
|
|
2390
|
+
} | {
|
|
2391
|
+
readonly state: "waiting-question";
|
|
2392
|
+
readonly attemptId: string;
|
|
2393
|
+
readonly createdAt: string;
|
|
2394
|
+
readonly id: string;
|
|
2395
|
+
readonly revision: string;
|
|
2396
|
+
readonly runId: string;
|
|
2397
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
2398
|
+
readonly taskId: string;
|
|
2399
|
+
readonly terminalId: string;
|
|
2400
|
+
readonly updatedAt: string;
|
|
2401
|
+
} | {
|
|
2402
|
+
readonly failure: {
|
|
2403
|
+
readonly code: "terminal_containment_unsupported";
|
|
2404
|
+
readonly platform: "darwin" | "linux";
|
|
2405
|
+
} | {
|
|
2406
|
+
readonly code: "platform_unsupported";
|
|
2407
|
+
readonly platform: "win32" | "other";
|
|
2408
|
+
};
|
|
2409
|
+
readonly state: "failed";
|
|
2410
|
+
readonly attemptId: string;
|
|
2411
|
+
readonly createdAt: string;
|
|
2412
|
+
readonly id: string;
|
|
2413
|
+
readonly revision: string;
|
|
2414
|
+
readonly runId: string;
|
|
2415
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
2416
|
+
readonly taskId: string;
|
|
2417
|
+
readonly terminalId: string;
|
|
2418
|
+
readonly updatedAt: string;
|
|
2419
|
+
};
|
|
2420
|
+
readonly tasks: readonly {
|
|
2421
|
+
readonly objective: string;
|
|
2422
|
+
readonly clientKey: string;
|
|
2423
|
+
readonly createdAt: string;
|
|
2424
|
+
readonly dependencyTaskIds: readonly string[];
|
|
2425
|
+
readonly id: string;
|
|
2426
|
+
readonly revision: string;
|
|
2427
|
+
readonly runId: string;
|
|
2428
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
2429
|
+
readonly state: "failed" | "active" | "pending" | "waiting-question";
|
|
2430
|
+
readonly updatedAt: string;
|
|
2431
|
+
readonly workspaceId: string;
|
|
2432
|
+
}[];
|
|
2433
|
+
readonly attempt: {
|
|
2434
|
+
readonly createdAt: string;
|
|
2435
|
+
readonly id: string;
|
|
2436
|
+
readonly ordinal: 1;
|
|
2437
|
+
readonly revision: string;
|
|
2438
|
+
readonly runId: string;
|
|
2439
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
2440
|
+
readonly state: "failed" | "active" | "waiting-question";
|
|
2441
|
+
readonly taskId: string;
|
|
2442
|
+
readonly updatedAt: string;
|
|
2443
|
+
};
|
|
2444
|
+
readonly mailboxes: readonly {
|
|
2445
|
+
readonly contentBytes: string;
|
|
2446
|
+
readonly createdAt: string;
|
|
2447
|
+
readonly deliveryCount: string;
|
|
2448
|
+
readonly headSequence: string;
|
|
2449
|
+
readonly id: string;
|
|
2450
|
+
readonly owner: {
|
|
2451
|
+
readonly id: string;
|
|
2452
|
+
readonly kind: "run";
|
|
2453
|
+
} | {
|
|
2454
|
+
readonly id: string;
|
|
2455
|
+
readonly kind: "dispatch";
|
|
2456
|
+
};
|
|
2457
|
+
readonly revision: string;
|
|
2458
|
+
readonly runId: string;
|
|
2459
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
2460
|
+
readonly updatedAt: string;
|
|
2461
|
+
}[];
|
|
2462
|
+
readonly question?: {
|
|
2463
|
+
readonly state: "open";
|
|
2464
|
+
readonly askMessageId: string;
|
|
2465
|
+
readonly attemptId: string;
|
|
2466
|
+
readonly body: string;
|
|
2467
|
+
readonly createdAt: string;
|
|
2468
|
+
readonly dispatchId: string;
|
|
2469
|
+
readonly id: string;
|
|
2470
|
+
readonly revision: string;
|
|
2471
|
+
readonly runId: string;
|
|
2472
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
2473
|
+
readonly subject: string;
|
|
2474
|
+
readonly taskId: string;
|
|
2475
|
+
readonly updatedAt: string;
|
|
2476
|
+
} | {
|
|
2477
|
+
readonly answer: string;
|
|
2478
|
+
readonly replyMessageId: string;
|
|
2479
|
+
readonly state: "answered";
|
|
2480
|
+
readonly askMessageId: string;
|
|
2481
|
+
readonly attemptId: string;
|
|
2482
|
+
readonly body: string;
|
|
2483
|
+
readonly createdAt: string;
|
|
2484
|
+
readonly dispatchId: string;
|
|
2485
|
+
readonly id: string;
|
|
2486
|
+
readonly revision: string;
|
|
2487
|
+
readonly runId: string;
|
|
2488
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
2489
|
+
readonly subject: string;
|
|
2490
|
+
readonly taskId: string;
|
|
2491
|
+
readonly updatedAt: string;
|
|
2492
|
+
} | {
|
|
2493
|
+
readonly state: "cancelled";
|
|
2494
|
+
readonly askMessageId: string;
|
|
2495
|
+
readonly attemptId: string;
|
|
2496
|
+
readonly body: string;
|
|
2497
|
+
readonly createdAt: string;
|
|
2498
|
+
readonly dispatchId: string;
|
|
2499
|
+
readonly id: string;
|
|
2500
|
+
readonly revision: string;
|
|
2501
|
+
readonly runId: string;
|
|
2502
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
2503
|
+
readonly subject: string;
|
|
2504
|
+
readonly taskId: string;
|
|
2505
|
+
readonly updatedAt: string;
|
|
2506
|
+
} | undefined;
|
|
2507
|
+
};
|
|
2508
|
+
readonly receipt: {
|
|
2509
|
+
readonly actorId: string;
|
|
2510
|
+
readonly aggregateRevision: string;
|
|
2511
|
+
readonly commandId: string;
|
|
2512
|
+
readonly createdAt: string;
|
|
2513
|
+
readonly eventCursor: string;
|
|
2514
|
+
readonly method: string;
|
|
2515
|
+
readonly receiptId: string;
|
|
2516
|
+
readonly schemaVersion: 1;
|
|
2517
|
+
readonly state: "succeeded";
|
|
2518
|
+
readonly target: {
|
|
2519
|
+
readonly id: string;
|
|
2520
|
+
readonly type: string;
|
|
2521
|
+
};
|
|
2522
|
+
readonly updatedAt: string;
|
|
2523
|
+
};
|
|
2524
|
+
}>;
|
|
2525
|
+
export type OrchestrationQuestionCancelResult = InferRuntimeSchema<typeof orchestrationQuestionCancelResultSchema>;
|
|
2526
|
+
export declare const orchestrationDispatchSettleTerminalResultSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
2527
|
+
readonly aggregate: {
|
|
2528
|
+
readonly run: {
|
|
2529
|
+
readonly coordinator: {
|
|
2530
|
+
readonly actorId: "actor_local_user";
|
|
2531
|
+
readonly epoch: 1;
|
|
2532
|
+
};
|
|
2533
|
+
readonly createdAt: string;
|
|
2534
|
+
readonly dispatchTaskId: string;
|
|
2535
|
+
readonly id: string;
|
|
2536
|
+
readonly revision: string;
|
|
2537
|
+
readonly rootTaskId: string;
|
|
2538
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
2539
|
+
readonly state: "failed" | "active" | "waiting-question";
|
|
2540
|
+
readonly terminalId: string;
|
|
2541
|
+
readonly updatedAt: string;
|
|
2542
|
+
readonly workspaceId: string;
|
|
2543
|
+
};
|
|
2544
|
+
readonly dispatch: {
|
|
2545
|
+
readonly state: "active";
|
|
2546
|
+
readonly attemptId: string;
|
|
2547
|
+
readonly createdAt: string;
|
|
2548
|
+
readonly id: string;
|
|
2549
|
+
readonly revision: string;
|
|
2550
|
+
readonly runId: string;
|
|
2551
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
2552
|
+
readonly taskId: string;
|
|
2553
|
+
readonly terminalId: string;
|
|
2554
|
+
readonly updatedAt: string;
|
|
2555
|
+
} | {
|
|
2556
|
+
readonly state: "waiting-question";
|
|
2557
|
+
readonly attemptId: string;
|
|
2558
|
+
readonly createdAt: string;
|
|
2559
|
+
readonly id: string;
|
|
2560
|
+
readonly revision: string;
|
|
2561
|
+
readonly runId: string;
|
|
2562
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
2563
|
+
readonly taskId: string;
|
|
2564
|
+
readonly terminalId: string;
|
|
2565
|
+
readonly updatedAt: string;
|
|
2566
|
+
} | {
|
|
2567
|
+
readonly failure: {
|
|
2568
|
+
readonly code: "terminal_containment_unsupported";
|
|
2569
|
+
readonly platform: "darwin" | "linux";
|
|
2570
|
+
} | {
|
|
2571
|
+
readonly code: "platform_unsupported";
|
|
2572
|
+
readonly platform: "win32" | "other";
|
|
2573
|
+
};
|
|
2574
|
+
readonly state: "failed";
|
|
2575
|
+
readonly attemptId: string;
|
|
2576
|
+
readonly createdAt: string;
|
|
2577
|
+
readonly id: string;
|
|
2578
|
+
readonly revision: string;
|
|
2579
|
+
readonly runId: string;
|
|
2580
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
2581
|
+
readonly taskId: string;
|
|
2582
|
+
readonly terminalId: string;
|
|
2583
|
+
readonly updatedAt: string;
|
|
2584
|
+
};
|
|
2585
|
+
readonly tasks: readonly {
|
|
2586
|
+
readonly objective: string;
|
|
2587
|
+
readonly clientKey: string;
|
|
2588
|
+
readonly createdAt: string;
|
|
2589
|
+
readonly dependencyTaskIds: readonly string[];
|
|
2590
|
+
readonly id: string;
|
|
2591
|
+
readonly revision: string;
|
|
2592
|
+
readonly runId: string;
|
|
2593
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
2594
|
+
readonly state: "failed" | "active" | "pending" | "waiting-question";
|
|
2595
|
+
readonly updatedAt: string;
|
|
2596
|
+
readonly workspaceId: string;
|
|
2597
|
+
}[];
|
|
2598
|
+
readonly attempt: {
|
|
2599
|
+
readonly createdAt: string;
|
|
2600
|
+
readonly id: string;
|
|
2601
|
+
readonly ordinal: 1;
|
|
2602
|
+
readonly revision: string;
|
|
2603
|
+
readonly runId: string;
|
|
2604
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
2605
|
+
readonly state: "failed" | "active" | "waiting-question";
|
|
2606
|
+
readonly taskId: string;
|
|
2607
|
+
readonly updatedAt: string;
|
|
2608
|
+
};
|
|
2609
|
+
readonly mailboxes: readonly {
|
|
2610
|
+
readonly contentBytes: string;
|
|
2611
|
+
readonly createdAt: string;
|
|
2612
|
+
readonly deliveryCount: string;
|
|
2613
|
+
readonly headSequence: string;
|
|
2614
|
+
readonly id: string;
|
|
2615
|
+
readonly owner: {
|
|
2616
|
+
readonly id: string;
|
|
2617
|
+
readonly kind: "run";
|
|
2618
|
+
} | {
|
|
2619
|
+
readonly id: string;
|
|
2620
|
+
readonly kind: "dispatch";
|
|
2621
|
+
};
|
|
2622
|
+
readonly revision: string;
|
|
2623
|
+
readonly runId: string;
|
|
2624
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
2625
|
+
readonly updatedAt: string;
|
|
2626
|
+
}[];
|
|
2627
|
+
readonly question?: {
|
|
2628
|
+
readonly state: "open";
|
|
2629
|
+
readonly askMessageId: string;
|
|
2630
|
+
readonly attemptId: string;
|
|
2631
|
+
readonly body: string;
|
|
2632
|
+
readonly createdAt: string;
|
|
2633
|
+
readonly dispatchId: string;
|
|
2634
|
+
readonly id: string;
|
|
2635
|
+
readonly revision: string;
|
|
2636
|
+
readonly runId: string;
|
|
2637
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
2638
|
+
readonly subject: string;
|
|
2639
|
+
readonly taskId: string;
|
|
2640
|
+
readonly updatedAt: string;
|
|
2641
|
+
} | {
|
|
2642
|
+
readonly answer: string;
|
|
2643
|
+
readonly replyMessageId: string;
|
|
2644
|
+
readonly state: "answered";
|
|
2645
|
+
readonly askMessageId: string;
|
|
2646
|
+
readonly attemptId: string;
|
|
2647
|
+
readonly body: string;
|
|
2648
|
+
readonly createdAt: string;
|
|
2649
|
+
readonly dispatchId: string;
|
|
2650
|
+
readonly id: string;
|
|
2651
|
+
readonly revision: string;
|
|
2652
|
+
readonly runId: string;
|
|
2653
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
2654
|
+
readonly subject: string;
|
|
2655
|
+
readonly taskId: string;
|
|
2656
|
+
readonly updatedAt: string;
|
|
2657
|
+
} | {
|
|
2658
|
+
readonly state: "cancelled";
|
|
2659
|
+
readonly askMessageId: string;
|
|
2660
|
+
readonly attemptId: string;
|
|
2661
|
+
readonly body: string;
|
|
2662
|
+
readonly createdAt: string;
|
|
2663
|
+
readonly dispatchId: string;
|
|
2664
|
+
readonly id: string;
|
|
2665
|
+
readonly revision: string;
|
|
2666
|
+
readonly runId: string;
|
|
2667
|
+
readonly schemaVersion: "maia.orchestration/v1";
|
|
2668
|
+
readonly subject: string;
|
|
2669
|
+
readonly taskId: string;
|
|
2670
|
+
readonly updatedAt: string;
|
|
2671
|
+
} | undefined;
|
|
2672
|
+
};
|
|
2673
|
+
readonly delivery: {
|
|
2674
|
+
readonly message: {
|
|
2675
|
+
readonly recipient: {
|
|
2676
|
+
readonly id: string;
|
|
2677
|
+
readonly kind: "dispatch";
|
|
2678
|
+
};
|
|
2679
|
+
readonly type: "dispatch";
|
|
2680
|
+
readonly body: string;
|
|
2681
|
+
readonly createdAt: string;
|
|
2682
|
+
readonly digest: string;
|
|
2683
|
+
readonly id: string;
|
|
2684
|
+
readonly runId: string;
|
|
2685
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
2686
|
+
readonly sender: {
|
|
2687
|
+
readonly actorId: "actor_local_user";
|
|
2688
|
+
readonly kind: "run-coordinator";
|
|
2689
|
+
readonly runId: string;
|
|
2690
|
+
};
|
|
2691
|
+
readonly subject: string;
|
|
2692
|
+
} | {
|
|
2693
|
+
readonly questionId: string;
|
|
2694
|
+
readonly recipient: {
|
|
2695
|
+
readonly id: string;
|
|
2696
|
+
readonly kind: "run";
|
|
2697
|
+
};
|
|
2698
|
+
readonly type: "question";
|
|
2699
|
+
readonly body: string;
|
|
2700
|
+
readonly createdAt: string;
|
|
2701
|
+
readonly digest: string;
|
|
2702
|
+
readonly id: string;
|
|
2703
|
+
readonly runId: string;
|
|
2704
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
2705
|
+
readonly sender: {
|
|
2706
|
+
readonly actorId: "actor_local_user";
|
|
2707
|
+
readonly kind: "run-coordinator";
|
|
2708
|
+
readonly runId: string;
|
|
2709
|
+
};
|
|
2710
|
+
readonly subject: string;
|
|
2711
|
+
} | {
|
|
2712
|
+
readonly questionId: string;
|
|
2713
|
+
readonly recipient: {
|
|
2714
|
+
readonly id: string;
|
|
2715
|
+
readonly kind: "dispatch";
|
|
2716
|
+
};
|
|
2717
|
+
readonly type: "reply";
|
|
2718
|
+
readonly body: string;
|
|
2719
|
+
readonly createdAt: string;
|
|
2720
|
+
readonly digest: string;
|
|
2721
|
+
readonly id: string;
|
|
2722
|
+
readonly runId: string;
|
|
2723
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
2724
|
+
readonly sender: {
|
|
2725
|
+
readonly actorId: "actor_local_user";
|
|
2726
|
+
readonly kind: "run-coordinator";
|
|
2727
|
+
readonly runId: string;
|
|
2728
|
+
};
|
|
2729
|
+
readonly subject: string;
|
|
2730
|
+
} | {
|
|
2731
|
+
readonly recipient: {
|
|
2732
|
+
readonly id: string;
|
|
2733
|
+
readonly kind: "run";
|
|
2734
|
+
};
|
|
2735
|
+
readonly type: "dispatch-settled";
|
|
2736
|
+
readonly body: string;
|
|
2737
|
+
readonly createdAt: string;
|
|
2738
|
+
readonly digest: string;
|
|
2739
|
+
readonly id: string;
|
|
2740
|
+
readonly runId: string;
|
|
2741
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
2742
|
+
readonly sender: {
|
|
2743
|
+
readonly actorId: "actor_local_user";
|
|
2744
|
+
readonly kind: "run-coordinator";
|
|
2745
|
+
readonly runId: string;
|
|
2746
|
+
};
|
|
2747
|
+
readonly subject: string;
|
|
2748
|
+
};
|
|
2749
|
+
readonly state: "pending";
|
|
2750
|
+
readonly id: string;
|
|
2751
|
+
readonly createdAt: string;
|
|
2752
|
+
readonly mailboxId: string;
|
|
2753
|
+
readonly attemptCount: number;
|
|
2754
|
+
readonly sequence: string;
|
|
2755
|
+
readonly firstDeliveredAt?: string | undefined;
|
|
2756
|
+
readonly lastDeliveredAt?: string | undefined;
|
|
2757
|
+
} | {
|
|
2758
|
+
readonly message: {
|
|
2759
|
+
readonly recipient: {
|
|
2760
|
+
readonly id: string;
|
|
2761
|
+
readonly kind: "dispatch";
|
|
2762
|
+
};
|
|
2763
|
+
readonly type: "dispatch";
|
|
2764
|
+
readonly body: string;
|
|
2765
|
+
readonly createdAt: string;
|
|
2766
|
+
readonly digest: string;
|
|
2767
|
+
readonly id: string;
|
|
2768
|
+
readonly runId: string;
|
|
2769
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
2770
|
+
readonly sender: {
|
|
2771
|
+
readonly actorId: "actor_local_user";
|
|
2772
|
+
readonly kind: "run-coordinator";
|
|
2773
|
+
readonly runId: string;
|
|
2774
|
+
};
|
|
2775
|
+
readonly subject: string;
|
|
2776
|
+
} | {
|
|
2777
|
+
readonly questionId: string;
|
|
2778
|
+
readonly recipient: {
|
|
2779
|
+
readonly id: string;
|
|
2780
|
+
readonly kind: "run";
|
|
2781
|
+
};
|
|
2782
|
+
readonly type: "question";
|
|
2783
|
+
readonly body: string;
|
|
2784
|
+
readonly createdAt: string;
|
|
2785
|
+
readonly digest: string;
|
|
2786
|
+
readonly id: string;
|
|
2787
|
+
readonly runId: string;
|
|
2788
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
2789
|
+
readonly sender: {
|
|
2790
|
+
readonly actorId: "actor_local_user";
|
|
2791
|
+
readonly kind: "run-coordinator";
|
|
2792
|
+
readonly runId: string;
|
|
2793
|
+
};
|
|
2794
|
+
readonly subject: string;
|
|
2795
|
+
} | {
|
|
2796
|
+
readonly questionId: string;
|
|
2797
|
+
readonly recipient: {
|
|
2798
|
+
readonly id: string;
|
|
2799
|
+
readonly kind: "dispatch";
|
|
2800
|
+
};
|
|
2801
|
+
readonly type: "reply";
|
|
2802
|
+
readonly body: string;
|
|
2803
|
+
readonly createdAt: string;
|
|
2804
|
+
readonly digest: string;
|
|
2805
|
+
readonly id: string;
|
|
2806
|
+
readonly runId: string;
|
|
2807
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
2808
|
+
readonly sender: {
|
|
2809
|
+
readonly actorId: "actor_local_user";
|
|
2810
|
+
readonly kind: "run-coordinator";
|
|
2811
|
+
readonly runId: string;
|
|
2812
|
+
};
|
|
2813
|
+
readonly subject: string;
|
|
2814
|
+
} | {
|
|
2815
|
+
readonly recipient: {
|
|
2816
|
+
readonly id: string;
|
|
2817
|
+
readonly kind: "run";
|
|
2818
|
+
};
|
|
2819
|
+
readonly type: "dispatch-settled";
|
|
2820
|
+
readonly body: string;
|
|
2821
|
+
readonly createdAt: string;
|
|
2822
|
+
readonly digest: string;
|
|
2823
|
+
readonly id: string;
|
|
2824
|
+
readonly runId: string;
|
|
2825
|
+
readonly schemaVersion: "maia.orchestration-message/v1";
|
|
2826
|
+
readonly sender: {
|
|
2827
|
+
readonly actorId: "actor_local_user";
|
|
2828
|
+
readonly kind: "run-coordinator";
|
|
2829
|
+
readonly runId: string;
|
|
2830
|
+
};
|
|
2831
|
+
readonly subject: string;
|
|
2832
|
+
};
|
|
2833
|
+
readonly state: "acknowledged";
|
|
2834
|
+
readonly id: string;
|
|
2835
|
+
readonly createdAt: string;
|
|
2836
|
+
readonly mailboxId: string;
|
|
2837
|
+
readonly attemptCount: number;
|
|
2838
|
+
readonly sequence: string;
|
|
2839
|
+
readonly acknowledgingActorId: "actor_local_user";
|
|
2840
|
+
readonly acknowledgedAt: string;
|
|
2841
|
+
readonly firstDeliveredAt?: string | undefined;
|
|
2842
|
+
readonly lastDeliveredAt?: string | undefined;
|
|
2843
|
+
};
|
|
2844
|
+
readonly method: "run.dispatch.settle-terminal";
|
|
2845
|
+
readonly receipt: {
|
|
2846
|
+
readonly actorId: string;
|
|
2847
|
+
readonly aggregateRevision: string;
|
|
2848
|
+
readonly commandId: string;
|
|
2849
|
+
readonly createdAt: string;
|
|
2850
|
+
readonly eventCursor: string;
|
|
2851
|
+
readonly method: string;
|
|
2852
|
+
readonly receiptId: string;
|
|
2853
|
+
readonly schemaVersion: 1;
|
|
2854
|
+
readonly state: "succeeded";
|
|
2855
|
+
readonly target: {
|
|
2856
|
+
readonly id: string;
|
|
2857
|
+
readonly type: string;
|
|
2858
|
+
};
|
|
2859
|
+
readonly updatedAt: string;
|
|
2860
|
+
};
|
|
2861
|
+
}>;
|
|
2862
|
+
export type OrchestrationDispatchSettleTerminalResult = InferRuntimeSchema<typeof orchestrationDispatchSettleTerminalResultSchema>;
|
|
2863
|
+
export type OrchestrationResult = OrchestrationDispatchSettleTerminalResult | OrchestrationDispatchShowResult | OrchestrationInboxAckResult | OrchestrationInboxCheckResult | OrchestrationQuestionCancelResult | OrchestrationQuestionOpenResult | OrchestrationQuestionReplyResult | OrchestrationRunCreateResult | OrchestrationRunListResult | OrchestrationRunShowResult | OrchestrationTaskListResult | OrchestrationTaskShowResult;
|
|
2864
|
+
export * from "./canonical.js";
|
|
2865
|
+
export * from "./policy.js";
|
|
2866
|
+
export * from "./version.js";
|
|
2867
|
+
//# sourceMappingURL=contract.d.ts.map
|