@kitman-sh/sdk 0.7.2 → 0.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build/index.js +2 -2
- package/dist/{chunk-zp7s46pz.js → chunk-7jc5y0mj.js} +2 -2
- package/dist/{chunk-7hwhxthh.js → chunk-p8v1smcg.js} +1 -1
- package/dist/loop/index.js +1 -1
- package/dist/program/index.js +2 -2
- package/package.json +1 -1
- package/types/packages/core/src/a2a.d.ts +577 -0
- package/types/packages/core/src/agent-capabilities.d.ts +1434 -0
- package/types/packages/core/src/agent-environment.d.ts +16 -16
- package/types/packages/core/src/agent-launch-snapshot.d.ts +44 -0
- package/types/packages/core/src/approval-queue.d.ts +126 -0
- package/types/packages/core/src/audit.d.ts +52 -0
- package/types/packages/core/src/change-delivery.d.ts +39 -0
- package/types/packages/core/src/change-request-review.d.ts +146 -0
- package/types/packages/core/src/change-request.d.ts +432 -0
- package/types/packages/core/src/connection.d.ts +33 -0
- package/types/packages/core/src/context-feedback.d.ts +89 -0
- package/types/packages/core/src/data-lifecycle.d.ts +195 -0
- package/types/packages/core/src/decision.d.ts +48 -0
- package/types/packages/core/src/delivery-operation.d.ts +125 -0
- package/types/packages/core/src/delivery-policy.d.ts +174 -0
- package/types/packages/core/src/engineering-resources.d.ts +24 -0
- package/types/packages/core/src/enterprise-code-host.d.ts +18 -0
- package/types/packages/core/src/epic-delivery.d.ts +38 -0
- package/types/packages/core/src/external-effect.d.ts +313 -0
- package/types/packages/core/src/fix-flow.d.ts +149 -0
- package/types/packages/core/src/following.d.ts +59 -0
- package/types/packages/core/src/github-delivery-fixtures.d.ts +28 -0
- package/types/packages/core/src/github-delivery.d.ts +78 -0
- package/types/packages/core/src/gitlab-delivery-fixtures.d.ts +26 -0
- package/types/packages/core/src/gitlab-delivery.d.ts +76 -0
- package/types/packages/core/src/global-search.d.ts +42 -0
- package/types/packages/core/src/id.d.ts +1 -0
- package/types/packages/core/src/index.d.ts +0 -1
- package/types/packages/core/src/integration.d.ts +275 -0
- package/types/packages/core/src/intent.d.ts +260 -0
- package/types/packages/core/src/json.d.ts +10 -0
- package/types/packages/core/src/kit.d.ts +12 -12
- package/types/packages/core/src/live.d.ts +8318 -0
- package/types/packages/core/src/me.d.ts +31 -0
- package/types/packages/core/src/memory.d.ts +88 -0
- package/types/packages/core/src/my-teams.d.ts +1230 -0
- package/types/packages/core/src/notification.d.ts +181 -0
- package/types/packages/core/src/observability.d.ts +175 -0
- package/types/packages/core/src/package.d.ts +369 -0
- package/types/packages/core/src/personal-development-profile.d.ts +11 -0
- package/types/packages/core/src/platform-release.d.ts +60 -0
- package/types/packages/core/src/program-credential.d.ts +10 -0
- package/types/packages/core/src/project.d.ts +66 -0
- package/types/packages/core/src/provider-safe-text.d.ts +2 -0
- package/types/packages/core/src/repo-binding.d.ts +131 -0
- package/types/packages/core/src/run-journal.d.ts +28 -0
- package/types/packages/core/src/run-launch.d.ts +67 -0
- package/types/packages/core/src/runner-eligibility.d.ts +43 -0
- package/types/packages/core/src/runner-routing.d.ts +11 -0
- package/types/packages/core/src/runner-trust.d.ts +67 -0
- package/types/packages/core/src/runner.d.ts +3776 -0
- package/types/packages/core/src/scope-directory.d.ts +100 -0
- package/types/packages/core/src/secret.d.ts +37 -0
- package/types/packages/core/src/session.d.ts +90 -0
- package/types/packages/core/src/step-brief.d.ts +50 -0
- package/types/packages/core/src/sync-kit.d.ts +587 -0
- package/types/packages/core/src/task-detail.d.ts +491 -0
- package/types/packages/core/src/task-execution-record.d.ts +620 -0
- package/types/packages/core/src/task-key.d.ts +9 -0
- package/types/packages/core/src/task.d.ts +543 -0
- package/types/packages/core/src/work-unit.d.ts +740 -0
- package/types/packages/core/src/workspace.d.ts +96 -0
- package/types/packages/live/src/rpc/runner-group.d.ts +216 -216
|
@@ -0,0 +1,740 @@
|
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
/** A read projection used for pending WorkUnits, where no active lease exists yet. */
|
|
3
|
+
export declare const WorkUnitLeaseProjection: Schema.Struct<{
|
|
4
|
+
readonly leaseOwnerId: Schema.optionalKey<Schema.String>;
|
|
5
|
+
readonly runnerReplicaId: Schema.optionalKey<Schema.String>;
|
|
6
|
+
readonly leaseId: Schema.optionalKey<Schema.String>;
|
|
7
|
+
readonly attempt: Schema.optionalKey<Schema.Int>;
|
|
8
|
+
readonly fencingToken: Schema.optionalKey<Schema.String>;
|
|
9
|
+
readonly capacitySlot: Schema.optionalKey<Schema.String>;
|
|
10
|
+
readonly leaseExpiresAt: Schema.optionalKey<Schema.String>;
|
|
11
|
+
readonly lastHeartbeatAt: Schema.optionalKey<Schema.String>;
|
|
12
|
+
}>;
|
|
13
|
+
/** Frozen repository metadata required for local materialization; credential references stay server-side. */
|
|
14
|
+
export declare const WorkUnitRepoBinding: Schema.Struct<{
|
|
15
|
+
readonly id: Schema.String;
|
|
16
|
+
readonly provider: Schema.Union<readonly [Schema.Literal<"github">, Schema.Literal<"gitlab">, Schema.Literal<"generic_git">]>;
|
|
17
|
+
readonly host: Schema.String;
|
|
18
|
+
readonly owner: Schema.String;
|
|
19
|
+
readonly name: Schema.String;
|
|
20
|
+
readonly repositoryUrl: Schema.optionalKey<Schema.String>;
|
|
21
|
+
readonly pathPrefix: Schema.optionalKey<Schema.String>;
|
|
22
|
+
readonly defaultTargetBranch: Schema.String;
|
|
23
|
+
readonly expectedBranch: Schema.optionalKey<Schema.String>;
|
|
24
|
+
readonly expectedCommitSha: Schema.optionalKey<Schema.String>;
|
|
25
|
+
}>;
|
|
26
|
+
/** The complete tuple callers must present for a claim-owned mutation. */
|
|
27
|
+
export declare const WorkUnitLeaseInput: Schema.Struct<{
|
|
28
|
+
readonly leaseOwnerId: Schema.String;
|
|
29
|
+
readonly runnerReplicaId: Schema.String;
|
|
30
|
+
readonly leaseId: Schema.String;
|
|
31
|
+
readonly attempt: Schema.Int;
|
|
32
|
+
readonly fencingToken: Schema.String;
|
|
33
|
+
readonly capacitySlot: Schema.String;
|
|
34
|
+
}>;
|
|
35
|
+
export declare const LoopCheckout: Schema.Union<readonly [Schema.Literal<"none">, Schema.Literal<"read">, Schema.Literal<"write">]>;
|
|
36
|
+
/** A program's agent Step: one StepAttempt, which any eligible Runner may run from the Step's base revision. */
|
|
37
|
+
export declare const AgentStepWorkUnit: Schema.Struct<{
|
|
38
|
+
readonly kind: Schema.Literal<"agent_step">;
|
|
39
|
+
readonly id: Schema.String;
|
|
40
|
+
readonly projectId: Schema.optionalKey<Schema.String>;
|
|
41
|
+
readonly runId: Schema.String;
|
|
42
|
+
readonly stepKey: Schema.String;
|
|
43
|
+
readonly attempt: Schema.Int;
|
|
44
|
+
readonly lease: Schema.Struct<{
|
|
45
|
+
readonly leaseOwnerId: Schema.String;
|
|
46
|
+
readonly runnerReplicaId: Schema.String;
|
|
47
|
+
readonly leaseId: Schema.String;
|
|
48
|
+
readonly attempt: Schema.Int;
|
|
49
|
+
readonly fencingToken: Schema.String;
|
|
50
|
+
readonly capacitySlot: Schema.String;
|
|
51
|
+
readonly leaseExpiresAt: Schema.String;
|
|
52
|
+
readonly lastHeartbeatAt: Schema.String;
|
|
53
|
+
}>;
|
|
54
|
+
readonly brief: Schema.Struct<{
|
|
55
|
+
readonly stepAttemptId: Schema.String;
|
|
56
|
+
readonly harness: Schema.String;
|
|
57
|
+
readonly model: Schema.optionalKey<Schema.String>;
|
|
58
|
+
readonly effort: Schema.optionalKey<Schema.Literals<readonly ["low", "medium", "high", "xhigh"]>>;
|
|
59
|
+
readonly prompt: Schema.String;
|
|
60
|
+
readonly contextPack: Schema.optionalKey<Schema.Struct<{
|
|
61
|
+
readonly contextPackId: Schema.optionalKey<Schema.String>;
|
|
62
|
+
readonly mode: Schema.String;
|
|
63
|
+
readonly contentMarkdown: Schema.String;
|
|
64
|
+
}>>;
|
|
65
|
+
readonly outputSchema: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
66
|
+
readonly skills: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
67
|
+
readonly name: Schema.String;
|
|
68
|
+
readonly files: Schema.$Record<Schema.String, Schema.String>;
|
|
69
|
+
}>>>;
|
|
70
|
+
readonly toolless: Schema.optionalKey<Schema.Literal<true>>;
|
|
71
|
+
}>;
|
|
72
|
+
readonly stepCredential: Schema.String;
|
|
73
|
+
readonly checkout: Schema.Union<readonly [Schema.Literal<"none">, Schema.Literal<"read">, Schema.Literal<"write">]>;
|
|
74
|
+
readonly repoBinding: Schema.optionalKey<Schema.Struct<{
|
|
75
|
+
readonly id: Schema.String;
|
|
76
|
+
readonly provider: Schema.Union<readonly [Schema.Literal<"github">, Schema.Literal<"gitlab">, Schema.Literal<"generic_git">]>;
|
|
77
|
+
readonly host: Schema.String;
|
|
78
|
+
readonly owner: Schema.String;
|
|
79
|
+
readonly name: Schema.String;
|
|
80
|
+
readonly repositoryUrl: Schema.optionalKey<Schema.String>;
|
|
81
|
+
readonly pathPrefix: Schema.optionalKey<Schema.String>;
|
|
82
|
+
readonly defaultTargetBranch: Schema.String;
|
|
83
|
+
readonly expectedBranch: Schema.optionalKey<Schema.String>;
|
|
84
|
+
readonly expectedCommitSha: Schema.optionalKey<Schema.String>;
|
|
85
|
+
}>>;
|
|
86
|
+
/** The Run's TaskBranch; a write checkout pushes to it. */
|
|
87
|
+
readonly branch: Schema.optionalKey<Schema.String>;
|
|
88
|
+
/** Where the checkout starts; absent means the branch's base. */
|
|
89
|
+
readonly baseRevision: Schema.optionalKey<Schema.String>;
|
|
90
|
+
/** The Agent's own network; the Runner adds the defaults. */
|
|
91
|
+
readonly network: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
92
|
+
readonly hosts: Schema.$Array<Schema.String>;
|
|
93
|
+
}>, Schema.Literal<"open">]>>;
|
|
94
|
+
/** The SandboxBackend the Agent requires. */
|
|
95
|
+
readonly sandbox: Schema.optionalKey<Schema.Literal<"docker">>;
|
|
96
|
+
/** The values of the Secrets the Step names, for its sandbox's environment. */
|
|
97
|
+
readonly secrets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
98
|
+
/** Where the Run's first Step started; a boundary's change is the Run's whole change from there. */
|
|
99
|
+
readonly runBaseRevision: Schema.optionalKey<Schema.String>;
|
|
100
|
+
}>;
|
|
101
|
+
/** Encoded Exits by Activity `name/attempt` and by deferred name. */
|
|
102
|
+
export declare const RunJournal: Schema.Struct<{
|
|
103
|
+
readonly activities: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
104
|
+
readonly deferreds: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
105
|
+
}>;
|
|
106
|
+
/** A Run's program to run or replay; it carries the whole journal so replay reads nothing remotely. */
|
|
107
|
+
export declare const OrchestrationWorkUnit: Schema.Struct<{
|
|
108
|
+
readonly kind: Schema.Literal<"orchestration">;
|
|
109
|
+
readonly id: Schema.String;
|
|
110
|
+
readonly projectId: Schema.optionalKey<Schema.String>;
|
|
111
|
+
readonly runId: Schema.String;
|
|
112
|
+
readonly loopDigest: Schema.String;
|
|
113
|
+
readonly input: Schema.Unknown;
|
|
114
|
+
/** The capabilities the Run was granted; the program fails a Step that needs another. */
|
|
115
|
+
readonly granted: Schema.$Array<Schema.String>;
|
|
116
|
+
readonly lease: Schema.Struct<{
|
|
117
|
+
readonly leaseOwnerId: Schema.String;
|
|
118
|
+
readonly runnerReplicaId: Schema.String;
|
|
119
|
+
readonly leaseId: Schema.String;
|
|
120
|
+
readonly attempt: Schema.Int;
|
|
121
|
+
readonly fencingToken: Schema.String;
|
|
122
|
+
readonly capacitySlot: Schema.String;
|
|
123
|
+
readonly leaseExpiresAt: Schema.String;
|
|
124
|
+
readonly lastHeartbeatAt: Schema.String;
|
|
125
|
+
}>;
|
|
126
|
+
readonly journal: Schema.Struct<{
|
|
127
|
+
readonly activities: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
128
|
+
readonly deferreds: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
129
|
+
}>;
|
|
130
|
+
/** The hosts the Loop declares besides Kitman, or `open`. */
|
|
131
|
+
readonly network: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
132
|
+
readonly hosts: Schema.$Array<Schema.String>;
|
|
133
|
+
}>, Schema.Literal<"open">]>>;
|
|
134
|
+
/** The Runner spawns the Run's bundle with this Loop id and credential. */
|
|
135
|
+
readonly program: Schema.Struct<{
|
|
136
|
+
readonly loopId: Schema.String;
|
|
137
|
+
readonly credential: Schema.String;
|
|
138
|
+
}>;
|
|
139
|
+
}>;
|
|
140
|
+
/** What a Package's process reads on stdin; its Loop id and credential come in its environment instead. */
|
|
141
|
+
export declare const ProgramWorkUnit: Schema.Struct<{
|
|
142
|
+
readonly kind: Schema.Literal<"orchestration">;
|
|
143
|
+
readonly id: Schema.String;
|
|
144
|
+
readonly projectId: Schema.optionalKey<Schema.String>;
|
|
145
|
+
readonly runId: Schema.String;
|
|
146
|
+
readonly loopDigest: Schema.String;
|
|
147
|
+
readonly input: Schema.Unknown;
|
|
148
|
+
readonly granted: Schema.$Array<Schema.String>;
|
|
149
|
+
readonly lease: Schema.Struct<{
|
|
150
|
+
readonly leaseOwnerId: Schema.String;
|
|
151
|
+
readonly runnerReplicaId: Schema.String;
|
|
152
|
+
readonly leaseId: Schema.String;
|
|
153
|
+
readonly attempt: Schema.Int;
|
|
154
|
+
readonly fencingToken: Schema.String;
|
|
155
|
+
readonly capacitySlot: Schema.String;
|
|
156
|
+
readonly leaseExpiresAt: Schema.String;
|
|
157
|
+
readonly lastHeartbeatAt: Schema.String;
|
|
158
|
+
}>;
|
|
159
|
+
readonly journal: Schema.Struct<{
|
|
160
|
+
readonly activities: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
161
|
+
readonly deferreds: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
162
|
+
}>;
|
|
163
|
+
readonly network: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
164
|
+
readonly hosts: Schema.$Array<Schema.String>;
|
|
165
|
+
}>, Schema.Literal<"open">]>>;
|
|
166
|
+
}>;
|
|
167
|
+
export type ProgramWorkUnit = (typeof ProgramWorkUnit)['Type'];
|
|
168
|
+
/** An approved verification as Kitman holds it for a RepoBinding; never read from the branch. */
|
|
169
|
+
export declare const ApprovedCheck: Schema.Struct<{
|
|
170
|
+
readonly name: Schema.String;
|
|
171
|
+
readonly command: Schema.String;
|
|
172
|
+
readonly workingDirectory: Schema.optionalKey<Schema.String>;
|
|
173
|
+
}>;
|
|
174
|
+
/** Runs approved checks at a revision with no agent, and at the default branch's head as the baseline. */
|
|
175
|
+
export declare const VerificationWorkUnit: Schema.Struct<{
|
|
176
|
+
readonly kind: Schema.Literal<"verification">;
|
|
177
|
+
readonly id: Schema.String;
|
|
178
|
+
readonly projectId: Schema.String;
|
|
179
|
+
readonly runId: Schema.String;
|
|
180
|
+
readonly stepKey: Schema.String;
|
|
181
|
+
readonly lease: Schema.Struct<{
|
|
182
|
+
readonly leaseOwnerId: Schema.String;
|
|
183
|
+
readonly runnerReplicaId: Schema.String;
|
|
184
|
+
readonly leaseId: Schema.String;
|
|
185
|
+
readonly attempt: Schema.Int;
|
|
186
|
+
readonly fencingToken: Schema.String;
|
|
187
|
+
readonly capacitySlot: Schema.String;
|
|
188
|
+
readonly leaseExpiresAt: Schema.String;
|
|
189
|
+
readonly lastHeartbeatAt: Schema.String;
|
|
190
|
+
}>;
|
|
191
|
+
readonly repoBinding: Schema.Struct<{
|
|
192
|
+
readonly id: Schema.String;
|
|
193
|
+
readonly provider: Schema.Union<readonly [Schema.Literal<"github">, Schema.Literal<"gitlab">, Schema.Literal<"generic_git">]>;
|
|
194
|
+
readonly host: Schema.String;
|
|
195
|
+
readonly owner: Schema.String;
|
|
196
|
+
readonly name: Schema.String;
|
|
197
|
+
readonly repositoryUrl: Schema.optionalKey<Schema.String>;
|
|
198
|
+
readonly pathPrefix: Schema.optionalKey<Schema.String>;
|
|
199
|
+
readonly defaultTargetBranch: Schema.String;
|
|
200
|
+
readonly expectedBranch: Schema.optionalKey<Schema.String>;
|
|
201
|
+
readonly expectedCommitSha: Schema.optionalKey<Schema.String>;
|
|
202
|
+
}>;
|
|
203
|
+
readonly revision: Schema.String;
|
|
204
|
+
readonly checks: Schema.$Array<Schema.Struct<{
|
|
205
|
+
readonly name: Schema.String;
|
|
206
|
+
readonly command: Schema.String;
|
|
207
|
+
readonly workingDirectory: Schema.optionalKey<Schema.String>;
|
|
208
|
+
}>>;
|
|
209
|
+
}>;
|
|
210
|
+
export declare const WorkUnit: Schema.Union<readonly [Schema.Struct<{
|
|
211
|
+
readonly kind: Schema.Literal<"orchestration">;
|
|
212
|
+
readonly id: Schema.String;
|
|
213
|
+
readonly projectId: Schema.optionalKey<Schema.String>;
|
|
214
|
+
readonly runId: Schema.String;
|
|
215
|
+
readonly loopDigest: Schema.String;
|
|
216
|
+
readonly input: Schema.Unknown;
|
|
217
|
+
/** The capabilities the Run was granted; the program fails a Step that needs another. */
|
|
218
|
+
readonly granted: Schema.$Array<Schema.String>;
|
|
219
|
+
readonly lease: Schema.Struct<{
|
|
220
|
+
readonly leaseOwnerId: Schema.String;
|
|
221
|
+
readonly runnerReplicaId: Schema.String;
|
|
222
|
+
readonly leaseId: Schema.String;
|
|
223
|
+
readonly attempt: Schema.Int;
|
|
224
|
+
readonly fencingToken: Schema.String;
|
|
225
|
+
readonly capacitySlot: Schema.String;
|
|
226
|
+
readonly leaseExpiresAt: Schema.String;
|
|
227
|
+
readonly lastHeartbeatAt: Schema.String;
|
|
228
|
+
}>;
|
|
229
|
+
readonly journal: Schema.Struct<{
|
|
230
|
+
readonly activities: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
231
|
+
readonly deferreds: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
232
|
+
}>;
|
|
233
|
+
/** The hosts the Loop declares besides Kitman, or `open`. */
|
|
234
|
+
readonly network: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
235
|
+
readonly hosts: Schema.$Array<Schema.String>;
|
|
236
|
+
}>, Schema.Literal<"open">]>>;
|
|
237
|
+
/** The Runner spawns the Run's bundle with this Loop id and credential. */
|
|
238
|
+
readonly program: Schema.Struct<{
|
|
239
|
+
readonly loopId: Schema.String;
|
|
240
|
+
readonly credential: Schema.String;
|
|
241
|
+
}>;
|
|
242
|
+
}>, Schema.Struct<{
|
|
243
|
+
readonly kind: Schema.Literal<"agent_step">;
|
|
244
|
+
readonly id: Schema.String;
|
|
245
|
+
readonly projectId: Schema.optionalKey<Schema.String>;
|
|
246
|
+
readonly runId: Schema.String;
|
|
247
|
+
readonly stepKey: Schema.String;
|
|
248
|
+
readonly attempt: Schema.Int;
|
|
249
|
+
readonly lease: Schema.Struct<{
|
|
250
|
+
readonly leaseOwnerId: Schema.String;
|
|
251
|
+
readonly runnerReplicaId: Schema.String;
|
|
252
|
+
readonly leaseId: Schema.String;
|
|
253
|
+
readonly attempt: Schema.Int;
|
|
254
|
+
readonly fencingToken: Schema.String;
|
|
255
|
+
readonly capacitySlot: Schema.String;
|
|
256
|
+
readonly leaseExpiresAt: Schema.String;
|
|
257
|
+
readonly lastHeartbeatAt: Schema.String;
|
|
258
|
+
}>;
|
|
259
|
+
readonly brief: Schema.Struct<{
|
|
260
|
+
readonly stepAttemptId: Schema.String;
|
|
261
|
+
readonly harness: Schema.String;
|
|
262
|
+
readonly model: Schema.optionalKey<Schema.String>;
|
|
263
|
+
readonly effort: Schema.optionalKey<Schema.Literals<readonly ["low", "medium", "high", "xhigh"]>>;
|
|
264
|
+
readonly prompt: Schema.String;
|
|
265
|
+
readonly contextPack: Schema.optionalKey<Schema.Struct<{
|
|
266
|
+
readonly contextPackId: Schema.optionalKey<Schema.String>;
|
|
267
|
+
readonly mode: Schema.String;
|
|
268
|
+
readonly contentMarkdown: Schema.String;
|
|
269
|
+
}>>;
|
|
270
|
+
readonly outputSchema: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
271
|
+
readonly skills: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
272
|
+
readonly name: Schema.String;
|
|
273
|
+
readonly files: Schema.$Record<Schema.String, Schema.String>;
|
|
274
|
+
}>>>;
|
|
275
|
+
readonly toolless: Schema.optionalKey<Schema.Literal<true>>;
|
|
276
|
+
}>;
|
|
277
|
+
readonly stepCredential: Schema.String;
|
|
278
|
+
readonly checkout: Schema.Union<readonly [Schema.Literal<"none">, Schema.Literal<"read">, Schema.Literal<"write">]>;
|
|
279
|
+
readonly repoBinding: Schema.optionalKey<Schema.Struct<{
|
|
280
|
+
readonly id: Schema.String;
|
|
281
|
+
readonly provider: Schema.Union<readonly [Schema.Literal<"github">, Schema.Literal<"gitlab">, Schema.Literal<"generic_git">]>;
|
|
282
|
+
readonly host: Schema.String;
|
|
283
|
+
readonly owner: Schema.String;
|
|
284
|
+
readonly name: Schema.String;
|
|
285
|
+
readonly repositoryUrl: Schema.optionalKey<Schema.String>;
|
|
286
|
+
readonly pathPrefix: Schema.optionalKey<Schema.String>;
|
|
287
|
+
readonly defaultTargetBranch: Schema.String;
|
|
288
|
+
readonly expectedBranch: Schema.optionalKey<Schema.String>;
|
|
289
|
+
readonly expectedCommitSha: Schema.optionalKey<Schema.String>;
|
|
290
|
+
}>>;
|
|
291
|
+
/** The Run's TaskBranch; a write checkout pushes to it. */
|
|
292
|
+
readonly branch: Schema.optionalKey<Schema.String>;
|
|
293
|
+
/** Where the checkout starts; absent means the branch's base. */
|
|
294
|
+
readonly baseRevision: Schema.optionalKey<Schema.String>;
|
|
295
|
+
/** The Agent's own network; the Runner adds the defaults. */
|
|
296
|
+
readonly network: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
297
|
+
readonly hosts: Schema.$Array<Schema.String>;
|
|
298
|
+
}>, Schema.Literal<"open">]>>;
|
|
299
|
+
/** The SandboxBackend the Agent requires. */
|
|
300
|
+
readonly sandbox: Schema.optionalKey<Schema.Literal<"docker">>;
|
|
301
|
+
/** The values of the Secrets the Step names, for its sandbox's environment. */
|
|
302
|
+
readonly secrets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
303
|
+
/** Where the Run's first Step started; a boundary's change is the Run's whole change from there. */
|
|
304
|
+
readonly runBaseRevision: Schema.optionalKey<Schema.String>;
|
|
305
|
+
}>, Schema.Struct<{
|
|
306
|
+
readonly kind: Schema.Literal<"verification">;
|
|
307
|
+
readonly id: Schema.String;
|
|
308
|
+
readonly projectId: Schema.String;
|
|
309
|
+
readonly runId: Schema.String;
|
|
310
|
+
readonly stepKey: Schema.String;
|
|
311
|
+
readonly lease: Schema.Struct<{
|
|
312
|
+
readonly leaseOwnerId: Schema.String;
|
|
313
|
+
readonly runnerReplicaId: Schema.String;
|
|
314
|
+
readonly leaseId: Schema.String;
|
|
315
|
+
readonly attempt: Schema.Int;
|
|
316
|
+
readonly fencingToken: Schema.String;
|
|
317
|
+
readonly capacitySlot: Schema.String;
|
|
318
|
+
readonly leaseExpiresAt: Schema.String;
|
|
319
|
+
readonly lastHeartbeatAt: Schema.String;
|
|
320
|
+
}>;
|
|
321
|
+
readonly repoBinding: Schema.Struct<{
|
|
322
|
+
readonly id: Schema.String;
|
|
323
|
+
readonly provider: Schema.Union<readonly [Schema.Literal<"github">, Schema.Literal<"gitlab">, Schema.Literal<"generic_git">]>;
|
|
324
|
+
readonly host: Schema.String;
|
|
325
|
+
readonly owner: Schema.String;
|
|
326
|
+
readonly name: Schema.String;
|
|
327
|
+
readonly repositoryUrl: Schema.optionalKey<Schema.String>;
|
|
328
|
+
readonly pathPrefix: Schema.optionalKey<Schema.String>;
|
|
329
|
+
readonly defaultTargetBranch: Schema.String;
|
|
330
|
+
readonly expectedBranch: Schema.optionalKey<Schema.String>;
|
|
331
|
+
readonly expectedCommitSha: Schema.optionalKey<Schema.String>;
|
|
332
|
+
}>;
|
|
333
|
+
readonly revision: Schema.String;
|
|
334
|
+
readonly checks: Schema.$Array<Schema.Struct<{
|
|
335
|
+
readonly name: Schema.String;
|
|
336
|
+
readonly command: Schema.String;
|
|
337
|
+
readonly workingDirectory: Schema.optionalKey<Schema.String>;
|
|
338
|
+
}>>;
|
|
339
|
+
}>]>;
|
|
340
|
+
export declare const WorkUnitClaimResult: Schema.Struct<{
|
|
341
|
+
readonly workUnit: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
342
|
+
readonly kind: Schema.Literal<"orchestration">;
|
|
343
|
+
readonly id: Schema.String;
|
|
344
|
+
readonly projectId: Schema.optionalKey<Schema.String>;
|
|
345
|
+
readonly runId: Schema.String;
|
|
346
|
+
readonly loopDigest: Schema.String;
|
|
347
|
+
readonly input: Schema.Unknown;
|
|
348
|
+
/** The capabilities the Run was granted; the program fails a Step that needs another. */
|
|
349
|
+
readonly granted: Schema.$Array<Schema.String>;
|
|
350
|
+
readonly lease: Schema.Struct<{
|
|
351
|
+
readonly leaseOwnerId: Schema.String;
|
|
352
|
+
readonly runnerReplicaId: Schema.String;
|
|
353
|
+
readonly leaseId: Schema.String;
|
|
354
|
+
readonly attempt: Schema.Int;
|
|
355
|
+
readonly fencingToken: Schema.String;
|
|
356
|
+
readonly capacitySlot: Schema.String;
|
|
357
|
+
readonly leaseExpiresAt: Schema.String;
|
|
358
|
+
readonly lastHeartbeatAt: Schema.String;
|
|
359
|
+
}>;
|
|
360
|
+
readonly journal: Schema.Struct<{
|
|
361
|
+
readonly activities: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
362
|
+
readonly deferreds: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
363
|
+
}>;
|
|
364
|
+
/** The hosts the Loop declares besides Kitman, or `open`. */
|
|
365
|
+
readonly network: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
366
|
+
readonly hosts: Schema.$Array<Schema.String>;
|
|
367
|
+
}>, Schema.Literal<"open">]>>;
|
|
368
|
+
/** The Runner spawns the Run's bundle with this Loop id and credential. */
|
|
369
|
+
readonly program: Schema.Struct<{
|
|
370
|
+
readonly loopId: Schema.String;
|
|
371
|
+
readonly credential: Schema.String;
|
|
372
|
+
}>;
|
|
373
|
+
}>, Schema.Struct<{
|
|
374
|
+
readonly kind: Schema.Literal<"agent_step">;
|
|
375
|
+
readonly id: Schema.String;
|
|
376
|
+
readonly projectId: Schema.optionalKey<Schema.String>;
|
|
377
|
+
readonly runId: Schema.String;
|
|
378
|
+
readonly stepKey: Schema.String;
|
|
379
|
+
readonly attempt: Schema.Int;
|
|
380
|
+
readonly lease: Schema.Struct<{
|
|
381
|
+
readonly leaseOwnerId: Schema.String;
|
|
382
|
+
readonly runnerReplicaId: Schema.String;
|
|
383
|
+
readonly leaseId: Schema.String;
|
|
384
|
+
readonly attempt: Schema.Int;
|
|
385
|
+
readonly fencingToken: Schema.String;
|
|
386
|
+
readonly capacitySlot: Schema.String;
|
|
387
|
+
readonly leaseExpiresAt: Schema.String;
|
|
388
|
+
readonly lastHeartbeatAt: Schema.String;
|
|
389
|
+
}>;
|
|
390
|
+
readonly brief: Schema.Struct<{
|
|
391
|
+
readonly stepAttemptId: Schema.String;
|
|
392
|
+
readonly harness: Schema.String;
|
|
393
|
+
readonly model: Schema.optionalKey<Schema.String>;
|
|
394
|
+
readonly effort: Schema.optionalKey<Schema.Literals<readonly ["low", "medium", "high", "xhigh"]>>;
|
|
395
|
+
readonly prompt: Schema.String;
|
|
396
|
+
readonly contextPack: Schema.optionalKey<Schema.Struct<{
|
|
397
|
+
readonly contextPackId: Schema.optionalKey<Schema.String>;
|
|
398
|
+
readonly mode: Schema.String;
|
|
399
|
+
readonly contentMarkdown: Schema.String;
|
|
400
|
+
}>>;
|
|
401
|
+
readonly outputSchema: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
402
|
+
readonly skills: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
403
|
+
readonly name: Schema.String;
|
|
404
|
+
readonly files: Schema.$Record<Schema.String, Schema.String>;
|
|
405
|
+
}>>>;
|
|
406
|
+
readonly toolless: Schema.optionalKey<Schema.Literal<true>>;
|
|
407
|
+
}>;
|
|
408
|
+
readonly stepCredential: Schema.String;
|
|
409
|
+
readonly checkout: Schema.Union<readonly [Schema.Literal<"none">, Schema.Literal<"read">, Schema.Literal<"write">]>;
|
|
410
|
+
readonly repoBinding: Schema.optionalKey<Schema.Struct<{
|
|
411
|
+
readonly id: Schema.String;
|
|
412
|
+
readonly provider: Schema.Union<readonly [Schema.Literal<"github">, Schema.Literal<"gitlab">, Schema.Literal<"generic_git">]>;
|
|
413
|
+
readonly host: Schema.String;
|
|
414
|
+
readonly owner: Schema.String;
|
|
415
|
+
readonly name: Schema.String;
|
|
416
|
+
readonly repositoryUrl: Schema.optionalKey<Schema.String>;
|
|
417
|
+
readonly pathPrefix: Schema.optionalKey<Schema.String>;
|
|
418
|
+
readonly defaultTargetBranch: Schema.String;
|
|
419
|
+
readonly expectedBranch: Schema.optionalKey<Schema.String>;
|
|
420
|
+
readonly expectedCommitSha: Schema.optionalKey<Schema.String>;
|
|
421
|
+
}>>;
|
|
422
|
+
/** The Run's TaskBranch; a write checkout pushes to it. */
|
|
423
|
+
readonly branch: Schema.optionalKey<Schema.String>;
|
|
424
|
+
/** Where the checkout starts; absent means the branch's base. */
|
|
425
|
+
readonly baseRevision: Schema.optionalKey<Schema.String>;
|
|
426
|
+
/** The Agent's own network; the Runner adds the defaults. */
|
|
427
|
+
readonly network: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
428
|
+
readonly hosts: Schema.$Array<Schema.String>;
|
|
429
|
+
}>, Schema.Literal<"open">]>>;
|
|
430
|
+
/** The SandboxBackend the Agent requires. */
|
|
431
|
+
readonly sandbox: Schema.optionalKey<Schema.Literal<"docker">>;
|
|
432
|
+
/** The values of the Secrets the Step names, for its sandbox's environment. */
|
|
433
|
+
readonly secrets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
434
|
+
/** Where the Run's first Step started; a boundary's change is the Run's whole change from there. */
|
|
435
|
+
readonly runBaseRevision: Schema.optionalKey<Schema.String>;
|
|
436
|
+
}>, Schema.Struct<{
|
|
437
|
+
readonly kind: Schema.Literal<"verification">;
|
|
438
|
+
readonly id: Schema.String;
|
|
439
|
+
readonly projectId: Schema.String;
|
|
440
|
+
readonly runId: Schema.String;
|
|
441
|
+
readonly stepKey: Schema.String;
|
|
442
|
+
readonly lease: Schema.Struct<{
|
|
443
|
+
readonly leaseOwnerId: Schema.String;
|
|
444
|
+
readonly runnerReplicaId: Schema.String;
|
|
445
|
+
readonly leaseId: Schema.String;
|
|
446
|
+
readonly attempt: Schema.Int;
|
|
447
|
+
readonly fencingToken: Schema.String;
|
|
448
|
+
readonly capacitySlot: Schema.String;
|
|
449
|
+
readonly leaseExpiresAt: Schema.String;
|
|
450
|
+
readonly lastHeartbeatAt: Schema.String;
|
|
451
|
+
}>;
|
|
452
|
+
readonly repoBinding: Schema.Struct<{
|
|
453
|
+
readonly id: Schema.String;
|
|
454
|
+
readonly provider: Schema.Union<readonly [Schema.Literal<"github">, Schema.Literal<"gitlab">, Schema.Literal<"generic_git">]>;
|
|
455
|
+
readonly host: Schema.String;
|
|
456
|
+
readonly owner: Schema.String;
|
|
457
|
+
readonly name: Schema.String;
|
|
458
|
+
readonly repositoryUrl: Schema.optionalKey<Schema.String>;
|
|
459
|
+
readonly pathPrefix: Schema.optionalKey<Schema.String>;
|
|
460
|
+
readonly defaultTargetBranch: Schema.String;
|
|
461
|
+
readonly expectedBranch: Schema.optionalKey<Schema.String>;
|
|
462
|
+
readonly expectedCommitSha: Schema.optionalKey<Schema.String>;
|
|
463
|
+
}>;
|
|
464
|
+
readonly revision: Schema.String;
|
|
465
|
+
readonly checks: Schema.$Array<Schema.Struct<{
|
|
466
|
+
readonly name: Schema.String;
|
|
467
|
+
readonly command: Schema.String;
|
|
468
|
+
readonly workingDirectory: Schema.optionalKey<Schema.String>;
|
|
469
|
+
}>>;
|
|
470
|
+
}>]>>;
|
|
471
|
+
}>;
|
|
472
|
+
/** Runner-supplied lease identity for an immediate claim. */
|
|
473
|
+
export declare const WorkUnitClaimInput: Schema.Struct<{
|
|
474
|
+
/** Optional only for the Runner control plane; it selects eligible work server-side. */
|
|
475
|
+
readonly projectId: Schema.optionalKey<Schema.String>;
|
|
476
|
+
readonly runnerReplicaId: Schema.String;
|
|
477
|
+
readonly capacitySlot: Schema.String;
|
|
478
|
+
readonly idempotencyKey: Schema.String;
|
|
479
|
+
readonly leaseDurationSeconds: Schema.optionalKey<Schema.Int>;
|
|
480
|
+
}>;
|
|
481
|
+
/** Canonical lease-renewal payload for any externally executed Work Unit. */
|
|
482
|
+
export declare const WorkUnitHeartbeatInput: Schema.Struct<{
|
|
483
|
+
readonly workUnitId: Schema.String;
|
|
484
|
+
readonly lease: Schema.Struct<{
|
|
485
|
+
readonly leaseOwnerId: Schema.String;
|
|
486
|
+
readonly runnerReplicaId: Schema.String;
|
|
487
|
+
readonly leaseId: Schema.String;
|
|
488
|
+
readonly attempt: Schema.Int;
|
|
489
|
+
readonly fencingToken: Schema.String;
|
|
490
|
+
readonly capacitySlot: Schema.String;
|
|
491
|
+
}>;
|
|
492
|
+
readonly leaseDurationSeconds: Schema.optionalKey<Schema.Int>;
|
|
493
|
+
}>;
|
|
494
|
+
/** `settled` means the control plane already recorded this Work Unit's outcome; the Runner stops and reports nothing. */
|
|
495
|
+
export declare const WorkUnitHeartbeatResult: Schema.Struct<{
|
|
496
|
+
readonly settled: Schema.Boolean;
|
|
497
|
+
/** An agent Step's Output was accepted; the Runner pushes its work and completes the Step. */
|
|
498
|
+
readonly outputSubmitted: Schema.optionalKey<Schema.Boolean>;
|
|
499
|
+
}>;
|
|
500
|
+
/** Releases an uncompleted WorkUnit after verifying the complete lease tuple. */
|
|
501
|
+
export declare const WorkUnitReleaseInput: Schema.Struct<{
|
|
502
|
+
readonly workUnitId: Schema.String;
|
|
503
|
+
readonly lease: Schema.Struct<{
|
|
504
|
+
readonly leaseOwnerId: Schema.String;
|
|
505
|
+
readonly runnerReplicaId: Schema.String;
|
|
506
|
+
readonly leaseId: Schema.String;
|
|
507
|
+
readonly attempt: Schema.Int;
|
|
508
|
+
readonly fencingToken: Schema.String;
|
|
509
|
+
readonly capacitySlot: Schema.String;
|
|
510
|
+
}>;
|
|
511
|
+
}>;
|
|
512
|
+
/** One check's run at a tree: what an EvidenceRef records. */
|
|
513
|
+
export declare const CheckEvidence: Schema.Struct<{
|
|
514
|
+
readonly name: Schema.String;
|
|
515
|
+
readonly command: Schema.String;
|
|
516
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"passed">, Schema.Literal<"failed">]>;
|
|
517
|
+
readonly exitCode: Schema.optionalKey<Schema.Int>;
|
|
518
|
+
readonly durationMs: Schema.Int;
|
|
519
|
+
/** The end of the output, with credentials redacted. */
|
|
520
|
+
readonly outputTail: Schema.String;
|
|
521
|
+
}>;
|
|
522
|
+
/** Checks run at one revision; `tree` is the revision's git tree id. Checks the tree already had are left out. */
|
|
523
|
+
export declare const TreeEvidence: Schema.Struct<{
|
|
524
|
+
readonly revision: Schema.String;
|
|
525
|
+
readonly tree: Schema.String;
|
|
526
|
+
readonly checks: Schema.$Array<Schema.Struct<{
|
|
527
|
+
readonly name: Schema.String;
|
|
528
|
+
readonly command: Schema.String;
|
|
529
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"passed">, Schema.Literal<"failed">]>;
|
|
530
|
+
readonly exitCode: Schema.optionalKey<Schema.Int>;
|
|
531
|
+
readonly durationMs: Schema.Int;
|
|
532
|
+
/** The end of the output, with credentials redacted. */
|
|
533
|
+
readonly outputTail: Schema.String;
|
|
534
|
+
}>>;
|
|
535
|
+
}>;
|
|
536
|
+
export declare const VerificationEvidence: Schema.Struct<{
|
|
537
|
+
readonly head: Schema.Struct<{
|
|
538
|
+
readonly revision: Schema.String;
|
|
539
|
+
readonly tree: Schema.String;
|
|
540
|
+
readonly checks: Schema.$Array<Schema.Struct<{
|
|
541
|
+
readonly name: Schema.String;
|
|
542
|
+
readonly command: Schema.String;
|
|
543
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"passed">, Schema.Literal<"failed">]>;
|
|
544
|
+
readonly exitCode: Schema.optionalKey<Schema.Int>;
|
|
545
|
+
readonly durationMs: Schema.Int;
|
|
546
|
+
/** The end of the output, with credentials redacted. */
|
|
547
|
+
readonly outputTail: Schema.String;
|
|
548
|
+
}>>;
|
|
549
|
+
}>;
|
|
550
|
+
readonly baseline: Schema.optionalKey<Schema.Struct<{
|
|
551
|
+
readonly revision: Schema.String;
|
|
552
|
+
readonly tree: Schema.String;
|
|
553
|
+
readonly checks: Schema.$Array<Schema.Struct<{
|
|
554
|
+
readonly name: Schema.String;
|
|
555
|
+
readonly command: Schema.String;
|
|
556
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"passed">, Schema.Literal<"failed">]>;
|
|
557
|
+
readonly exitCode: Schema.optionalKey<Schema.Int>;
|
|
558
|
+
readonly durationMs: Schema.Int;
|
|
559
|
+
/** The end of the output, with credentials redacted. */
|
|
560
|
+
readonly outputTail: Schema.String;
|
|
561
|
+
}>>;
|
|
562
|
+
}>>;
|
|
563
|
+
}>;
|
|
564
|
+
/** A write checkout's change since the Run began, bounded and redacted by the Runner; Kitman bounds it again. */
|
|
565
|
+
export declare const BoundaryChange: Schema.Struct<{
|
|
566
|
+
readonly kind: Schema.Literal<"change">;
|
|
567
|
+
readonly changedPaths: Schema.$Array<Schema.String>;
|
|
568
|
+
readonly omittedPaths: Schema.Int;
|
|
569
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
570
|
+
readonly path: Schema.String;
|
|
571
|
+
readonly excerpt: Schema.String;
|
|
572
|
+
readonly redacted: Schema.Boolean;
|
|
573
|
+
readonly truncated: Schema.Boolean;
|
|
574
|
+
}>>;
|
|
575
|
+
readonly truncated: Schema.Boolean;
|
|
576
|
+
}>;
|
|
577
|
+
export type BoundaryChange = (typeof BoundaryChange)['Type'];
|
|
578
|
+
export declare const WorkUnitOutcome: Schema.Struct<{
|
|
579
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"completed">, Schema.Literal<"failed">, Schema.Literal<"blocked">, Schema.Literal<"canceled">]>;
|
|
580
|
+
readonly result: Schema.optionalKey<Schema.Struct<{
|
|
581
|
+
readonly stepKey: Schema.String;
|
|
582
|
+
readonly outputSchemaRef: Schema.Struct<{
|
|
583
|
+
readonly kind: Schema.Literal<"typebox_ref">;
|
|
584
|
+
readonly name: Schema.String;
|
|
585
|
+
readonly version: Schema.optionalKey<Schema.String>;
|
|
586
|
+
readonly sha256: Schema.optionalKey<Schema.String>;
|
|
587
|
+
}>;
|
|
588
|
+
readonly summary: Schema.String;
|
|
589
|
+
readonly data: Schema.$Record<Schema.String, Schema.Codec<import("./loop").LoopStepOutputDataValue, import("./loop").LoopStepOutputDataValue, never, never>>;
|
|
590
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<import("./loop").LoopStepOutputDataValue, import("./loop").LoopStepOutputDataValue, never, never>>>;
|
|
591
|
+
readonly refs: Schema.$Array<Schema.Struct<{
|
|
592
|
+
readonly kind: Schema.Literals<readonly ["task", "kit", "memory", "decision", "knowledge_record", "context_pack", "step_attempt", "change_request", "change_request_review", "provider_action", "thread_entry", "run", "artifact"]>;
|
|
593
|
+
readonly id: Schema.optionalKey<Schema.String>;
|
|
594
|
+
readonly externalId: Schema.optionalKey<Schema.String>;
|
|
595
|
+
readonly provider: Schema.optionalKey<Schema.String>;
|
|
596
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
597
|
+
}>>;
|
|
598
|
+
}>>;
|
|
599
|
+
/** What an agent Step's write checkout pushed to the Run's branch. */
|
|
600
|
+
readonly revision: Schema.optionalKey<Schema.String>;
|
|
601
|
+
/** What a verification ran. */
|
|
602
|
+
readonly evidence: Schema.optionalKey<Schema.Struct<{
|
|
603
|
+
readonly head: Schema.Struct<{
|
|
604
|
+
readonly revision: Schema.String;
|
|
605
|
+
readonly tree: Schema.String;
|
|
606
|
+
readonly checks: Schema.$Array<Schema.Struct<{
|
|
607
|
+
readonly name: Schema.String;
|
|
608
|
+
readonly command: Schema.String;
|
|
609
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"passed">, Schema.Literal<"failed">]>;
|
|
610
|
+
readonly exitCode: Schema.optionalKey<Schema.Int>;
|
|
611
|
+
readonly durationMs: Schema.Int;
|
|
612
|
+
/** The end of the output, with credentials redacted. */
|
|
613
|
+
readonly outputTail: Schema.String;
|
|
614
|
+
}>>;
|
|
615
|
+
}>;
|
|
616
|
+
readonly baseline: Schema.optionalKey<Schema.Struct<{
|
|
617
|
+
readonly revision: Schema.String;
|
|
618
|
+
readonly tree: Schema.String;
|
|
619
|
+
readonly checks: Schema.$Array<Schema.Struct<{
|
|
620
|
+
readonly name: Schema.String;
|
|
621
|
+
readonly command: Schema.String;
|
|
622
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"passed">, Schema.Literal<"failed">]>;
|
|
623
|
+
readonly exitCode: Schema.optionalKey<Schema.Int>;
|
|
624
|
+
readonly durationMs: Schema.Int;
|
|
625
|
+
/** The end of the output, with credentials redacted. */
|
|
626
|
+
readonly outputTail: Schema.String;
|
|
627
|
+
}>>;
|
|
628
|
+
}>>;
|
|
629
|
+
}>>;
|
|
630
|
+
readonly boundary: Schema.optionalKey<Schema.Struct<{
|
|
631
|
+
readonly kind: Schema.Literal<"change">;
|
|
632
|
+
readonly changedPaths: Schema.$Array<Schema.String>;
|
|
633
|
+
readonly omittedPaths: Schema.Int;
|
|
634
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
635
|
+
readonly path: Schema.String;
|
|
636
|
+
readonly excerpt: Schema.String;
|
|
637
|
+
readonly redacted: Schema.Boolean;
|
|
638
|
+
readonly truncated: Schema.Boolean;
|
|
639
|
+
}>>;
|
|
640
|
+
readonly truncated: Schema.Boolean;
|
|
641
|
+
}>>;
|
|
642
|
+
readonly failureSummary: Schema.optionalKey<Schema.String>;
|
|
643
|
+
}>;
|
|
644
|
+
export declare const WorkUnitCompletion: Schema.Struct<{
|
|
645
|
+
readonly workUnitId: Schema.String;
|
|
646
|
+
readonly lease: Schema.Struct<{
|
|
647
|
+
readonly leaseOwnerId: Schema.String;
|
|
648
|
+
readonly runnerReplicaId: Schema.String;
|
|
649
|
+
readonly leaseId: Schema.String;
|
|
650
|
+
readonly attempt: Schema.Int;
|
|
651
|
+
readonly fencingToken: Schema.String;
|
|
652
|
+
readonly capacitySlot: Schema.String;
|
|
653
|
+
}>;
|
|
654
|
+
readonly idempotencyKey: Schema.String;
|
|
655
|
+
readonly outcome: Schema.Struct<{
|
|
656
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"completed">, Schema.Literal<"failed">, Schema.Literal<"blocked">, Schema.Literal<"canceled">]>;
|
|
657
|
+
readonly result: Schema.optionalKey<Schema.Struct<{
|
|
658
|
+
readonly stepKey: Schema.String;
|
|
659
|
+
readonly outputSchemaRef: Schema.Struct<{
|
|
660
|
+
readonly kind: Schema.Literal<"typebox_ref">;
|
|
661
|
+
readonly name: Schema.String;
|
|
662
|
+
readonly version: Schema.optionalKey<Schema.String>;
|
|
663
|
+
readonly sha256: Schema.optionalKey<Schema.String>;
|
|
664
|
+
}>;
|
|
665
|
+
readonly summary: Schema.String;
|
|
666
|
+
readonly data: Schema.$Record<Schema.String, Schema.Codec<import("./loop").LoopStepOutputDataValue, import("./loop").LoopStepOutputDataValue, never, never>>;
|
|
667
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<import("./loop").LoopStepOutputDataValue, import("./loop").LoopStepOutputDataValue, never, never>>>;
|
|
668
|
+
readonly refs: Schema.$Array<Schema.Struct<{
|
|
669
|
+
readonly kind: Schema.Literals<readonly ["task", "kit", "memory", "decision", "knowledge_record", "context_pack", "step_attempt", "change_request", "change_request_review", "provider_action", "thread_entry", "run", "artifact"]>;
|
|
670
|
+
readonly id: Schema.optionalKey<Schema.String>;
|
|
671
|
+
readonly externalId: Schema.optionalKey<Schema.String>;
|
|
672
|
+
readonly provider: Schema.optionalKey<Schema.String>;
|
|
673
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
674
|
+
}>>;
|
|
675
|
+
}>>;
|
|
676
|
+
/** What an agent Step's write checkout pushed to the Run's branch. */
|
|
677
|
+
readonly revision: Schema.optionalKey<Schema.String>;
|
|
678
|
+
/** What a verification ran. */
|
|
679
|
+
readonly evidence: Schema.optionalKey<Schema.Struct<{
|
|
680
|
+
readonly head: Schema.Struct<{
|
|
681
|
+
readonly revision: Schema.String;
|
|
682
|
+
readonly tree: Schema.String;
|
|
683
|
+
readonly checks: Schema.$Array<Schema.Struct<{
|
|
684
|
+
readonly name: Schema.String;
|
|
685
|
+
readonly command: Schema.String;
|
|
686
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"passed">, Schema.Literal<"failed">]>;
|
|
687
|
+
readonly exitCode: Schema.optionalKey<Schema.Int>;
|
|
688
|
+
readonly durationMs: Schema.Int;
|
|
689
|
+
/** The end of the output, with credentials redacted. */
|
|
690
|
+
readonly outputTail: Schema.String;
|
|
691
|
+
}>>;
|
|
692
|
+
}>;
|
|
693
|
+
readonly baseline: Schema.optionalKey<Schema.Struct<{
|
|
694
|
+
readonly revision: Schema.String;
|
|
695
|
+
readonly tree: Schema.String;
|
|
696
|
+
readonly checks: Schema.$Array<Schema.Struct<{
|
|
697
|
+
readonly name: Schema.String;
|
|
698
|
+
readonly command: Schema.String;
|
|
699
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"passed">, Schema.Literal<"failed">]>;
|
|
700
|
+
readonly exitCode: Schema.optionalKey<Schema.Int>;
|
|
701
|
+
readonly durationMs: Schema.Int;
|
|
702
|
+
/** The end of the output, with credentials redacted. */
|
|
703
|
+
readonly outputTail: Schema.String;
|
|
704
|
+
}>>;
|
|
705
|
+
}>>;
|
|
706
|
+
}>>;
|
|
707
|
+
readonly boundary: Schema.optionalKey<Schema.Struct<{
|
|
708
|
+
readonly kind: Schema.Literal<"change">;
|
|
709
|
+
readonly changedPaths: Schema.$Array<Schema.String>;
|
|
710
|
+
readonly omittedPaths: Schema.Int;
|
|
711
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
712
|
+
readonly path: Schema.String;
|
|
713
|
+
readonly excerpt: Schema.String;
|
|
714
|
+
readonly redacted: Schema.Boolean;
|
|
715
|
+
readonly truncated: Schema.Boolean;
|
|
716
|
+
}>>;
|
|
717
|
+
readonly truncated: Schema.Boolean;
|
|
718
|
+
}>>;
|
|
719
|
+
readonly failureSummary: Schema.optionalKey<Schema.String>;
|
|
720
|
+
}>;
|
|
721
|
+
}>;
|
|
722
|
+
export type WorkUnitLeaseProjection = (typeof WorkUnitLeaseProjection)['Type'];
|
|
723
|
+
export type WorkUnitLeaseInput = (typeof WorkUnitLeaseInput)['Type'];
|
|
724
|
+
export type WorkUnit = (typeof WorkUnit)['Type'];
|
|
725
|
+
export type OrchestrationWorkUnit = (typeof OrchestrationWorkUnit)['Type'];
|
|
726
|
+
export type AgentStepWorkUnit = (typeof AgentStepWorkUnit)['Type'];
|
|
727
|
+
export type ApprovedCheck = (typeof ApprovedCheck)['Type'];
|
|
728
|
+
export type VerificationWorkUnit = (typeof VerificationWorkUnit)['Type'];
|
|
729
|
+
export type CheckEvidence = (typeof CheckEvidence)['Type'];
|
|
730
|
+
export type TreeEvidence = (typeof TreeEvidence)['Type'];
|
|
731
|
+
export type VerificationEvidence = (typeof VerificationEvidence)['Type'];
|
|
732
|
+
export type LoopCheckout = (typeof LoopCheckout)['Type'];
|
|
733
|
+
export type RunJournal = (typeof RunJournal)['Type'];
|
|
734
|
+
export type WorkUnitClaimResult = (typeof WorkUnitClaimResult)['Type'];
|
|
735
|
+
export type WorkUnitClaimInput = (typeof WorkUnitClaimInput)['Type'];
|
|
736
|
+
export type WorkUnitHeartbeatInput = (typeof WorkUnitHeartbeatInput)['Type'];
|
|
737
|
+
export type WorkUnitHeartbeatResult = (typeof WorkUnitHeartbeatResult)['Type'];
|
|
738
|
+
export type WorkUnitReleaseInput = (typeof WorkUnitReleaseInput)['Type'];
|
|
739
|
+
export type WorkUnitOutcome = (typeof WorkUnitOutcome)['Type'];
|
|
740
|
+
export type WorkUnitCompletion = (typeof WorkUnitCompletion)['Type'];
|