@kitman-sh/sdk 0.7.5 → 0.8.0
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 +10 -11
- package/dist/{chunk-72z6zbfz.js → chunk-160ww64c.js} +668 -185
- package/dist/{chunk-8byx9rx2.js → chunk-36jhc745.js} +195 -76
- package/dist/loop/index.js +43 -1
- package/dist/program/index.js +7 -3
- package/package.json +3 -1
- package/types/packages/core/src/agent-capabilities.d.ts +68 -74
- package/types/packages/core/src/agent-environment.d.ts +26 -26
- package/types/packages/core/src/agent-launch-snapshot.d.ts +1 -1
- package/types/packages/core/src/agent-sandbox-policy.d.ts +15 -0
- package/types/packages/core/src/approval-queue.d.ts +4 -4
- package/types/packages/core/src/audit.d.ts +1 -1
- package/types/packages/core/src/change-delivery.d.ts +1 -1
- package/types/packages/core/src/change-request-review.d.ts +199 -7
- package/types/packages/core/src/change-request.d.ts +43 -12
- package/types/packages/core/src/connection.d.ts +1 -1
- package/types/packages/core/src/context-feedback.d.ts +8 -8
- package/types/packages/core/src/context-pack.d.ts +8 -8
- package/types/packages/core/src/crypto.d.ts +5 -0
- package/types/packages/core/src/data-lifecycle.d.ts +12 -12
- package/types/packages/core/src/decision.d.ts +2 -2
- package/types/packages/core/src/delivery-policy.d.ts +3 -3
- package/types/packages/core/src/enterprise-forge.d.ts +19 -0
- package/types/packages/core/src/epic-delivery.d.ts +1 -1
- package/types/packages/core/src/external-effect.d.ts +2 -2
- package/types/packages/core/src/global-search.d.ts +1 -1
- package/types/packages/core/src/index.d.ts +8 -2
- package/types/packages/core/src/integration.d.ts +58 -57
- package/types/packages/core/src/kit.d.ts +47 -47
- package/types/packages/core/src/live.d.ts +684 -781
- package/types/packages/core/src/loop-layers.d.ts +1 -1
- package/types/packages/core/src/loop-version.d.ts +1 -1
- package/types/packages/core/src/loop.d.ts +73 -67
- package/types/packages/core/src/marketplace.d.ts +127 -0
- package/types/packages/core/src/memory.d.ts +17 -12
- package/types/packages/core/src/my-teams.d.ts +65 -32
- package/types/packages/core/src/notification.d.ts +73 -12
- package/types/packages/core/src/owner.d.ts +15 -0
- package/types/packages/core/src/package-declarations.d.ts +73 -32
- package/types/packages/core/src/package.d.ts +22 -22
- package/types/packages/core/src/personal-development-profile.d.ts +2 -2
- package/types/packages/core/src/proposal.d.ts +25 -25
- package/types/packages/core/src/redaction.d.ts +2 -1
- package/types/packages/core/src/repo-binding.d.ts +19 -10
- package/types/packages/core/src/run-display.d.ts +1 -1
- package/types/packages/core/src/run-file.d.ts +190 -0
- package/types/packages/core/src/run-launch.d.ts +7 -5
- package/types/packages/core/src/run.d.ts +9 -9
- package/types/packages/core/src/runner-eligibility.d.ts +4 -4
- package/types/packages/core/src/runner.d.ts +339 -111
- package/types/packages/core/src/schedule.d.ts +2 -2
- package/types/packages/core/src/scope-directory.d.ts +5 -5
- package/types/packages/core/src/secret.d.ts +9 -9
- package/types/packages/core/src/session.d.ts +2 -2
- package/types/packages/core/src/step-brief.d.ts +10 -3
- package/types/packages/core/src/storage.d.ts +49 -0
- package/types/packages/core/src/sync-kit.d.ts +25 -25
- package/types/packages/core/src/task-detail.d.ts +20 -13
- package/types/packages/core/src/task-execution-record.d.ts +6 -6
- package/types/packages/core/src/task.d.ts +52 -16
- package/types/packages/core/src/team-context.d.ts +33 -0
- package/types/packages/core/src/transcript.d.ts +230 -0
- package/types/packages/core/src/trigger-dispatch.d.ts +2 -2
- package/types/packages/core/src/trust-panel.d.ts +27 -0
- package/types/packages/core/src/work-unit.d.ts +44 -18
- package/types/packages/core/src/workspace.d.ts +77 -6
- package/types/packages/live/src/rpc/runner-client.d.ts +586 -15
- package/types/packages/live/src/rpc/runner-group.d.ts +623 -267
- package/types/packages/sdk/src/loop/activities.d.ts +208 -1
- package/types/packages/sdk/src/loop/config.d.ts +1 -1
- package/types/packages/sdk/src/loop/define.d.ts +8 -2
- package/types/packages/sdk/src/loop/plan.d.ts +2 -2
- package/types/packages/sdk/src/loop/steps.d.ts +2 -2
- package/types/packages/sdk/src/loop/test-loop.d.ts +6 -1
- package/types/packages/sdk/src/program/engine.d.ts +71 -3
- package/types/packages/sdk/src/program/host.d.ts +13 -1
- package/types/packages/core/src/enterprise-code-host.d.ts +0 -18
- package/types/packages/core/src/project.d.ts +0 -66
|
@@ -5,17 +5,46 @@ import type { ControlCommandList } from './run';
|
|
|
5
5
|
export { RunnerExecutionRouting } from './runner-routing';
|
|
6
6
|
export type { RunnerExecutionRouting as RunnerExecutionRoutingValue } from './runner-routing';
|
|
7
7
|
export declare const DefaultRunnerHeartbeatStaleAfterSeconds = 120;
|
|
8
|
+
export declare const RunnerProblemCodes: readonly ['credential_missing', 'credential_refused', 'runner_removed', 'sandbox_missing', 'update_failed'];
|
|
9
|
+
/** A Runner Problem as the Runner reports it: what only a person can fix, and the one command or action that fixes it. */
|
|
10
|
+
export declare const RunnerProblemReport: Schema.Struct<{
|
|
11
|
+
readonly code: Schema.Literals<readonly ["credential_missing", "credential_refused", "runner_removed", "sandbox_missing", "update_failed"]>;
|
|
12
|
+
readonly message: Schema.String;
|
|
13
|
+
readonly fix: Schema.String;
|
|
14
|
+
}>;
|
|
15
|
+
export declare const RunnerProblem: Schema.Struct<{
|
|
16
|
+
readonly code: Schema.Literals<readonly ["credential_missing", "credential_refused", "runner_removed", "sandbox_missing", "update_failed"]>;
|
|
17
|
+
readonly message: Schema.String;
|
|
18
|
+
readonly fix: Schema.String;
|
|
19
|
+
readonly startedAt: Schema.String;
|
|
20
|
+
}>;
|
|
21
|
+
/** What Kitman says a Runner is doing, derived by `runnerState`. */
|
|
22
|
+
export declare const RunnerState: Schema.Union<readonly [Schema.Struct<{
|
|
23
|
+
readonly kind: Schema.Literal<"online">;
|
|
24
|
+
}>, Schema.Struct<{
|
|
25
|
+
readonly kind: Schema.Literal<"offline">;
|
|
26
|
+
readonly since: Schema.optionalKey<Schema.String>;
|
|
27
|
+
}>, Schema.Struct<{
|
|
28
|
+
readonly kind: Schema.Literal<"needs_attention">;
|
|
29
|
+
readonly problems: Schema.$Array<Schema.Struct<{
|
|
30
|
+
readonly code: Schema.Literals<readonly ["credential_missing", "credential_refused", "runner_removed", "sandbox_missing", "update_failed"]>;
|
|
31
|
+
readonly message: Schema.String;
|
|
32
|
+
readonly fix: Schema.String;
|
|
33
|
+
readonly startedAt: Schema.String;
|
|
34
|
+
}>>;
|
|
35
|
+
}>]>;
|
|
36
|
+
export declare const RunnerCredentialStatus: Schema.Literals<readonly ["active", "revoked", "never_provisioned"]>;
|
|
8
37
|
export declare const RunnerOwnership: Schema.Union<readonly [Schema.Struct<{
|
|
9
38
|
readonly kind: Schema.Literal<"workspace">;
|
|
10
|
-
readonly
|
|
39
|
+
readonly teamAccess: Schema.Union<readonly [Schema.Literal<"all">, Schema.Literal<"selected">]>;
|
|
11
40
|
}>, Schema.Struct<{
|
|
12
|
-
readonly kind: Schema.Literal<"
|
|
13
|
-
readonly
|
|
41
|
+
readonly kind: Schema.Literal<"team">;
|
|
42
|
+
readonly teamId: Schema.String;
|
|
14
43
|
}>, Schema.Struct<{
|
|
15
44
|
readonly kind: Schema.Literal<"personal">;
|
|
16
45
|
readonly ownerUserId: Schema.String;
|
|
17
|
-
/** `selected` narrows it to granted
|
|
18
|
-
readonly
|
|
46
|
+
/** `selected` narrows it to granted Teams; it serves only Teams its owner can access either way. */
|
|
47
|
+
readonly teamAccess: Schema.withDecodingDefaultKey<Schema.Union<readonly [Schema.Literal<"all">, Schema.Literal<"selected">]>, never>;
|
|
19
48
|
}>]>;
|
|
20
49
|
export declare const RunnerExecutionBackend: Schema.Literals<readonly ["host", "srt", "docker"]>;
|
|
21
50
|
export declare const RunnerLoopExecutionCapability: Schema.Struct<{
|
|
@@ -93,7 +122,7 @@ export declare const RunnerCapabilities: Schema.Struct<{
|
|
|
93
122
|
readonly secretProviderTypes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"env">, Schema.Literal<"file">, Schema.Literal<"exec">]>>;
|
|
94
123
|
readonly repoBindings: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
95
124
|
readonly repoBindingId: Schema.String;
|
|
96
|
-
readonly provider: Schema.
|
|
125
|
+
readonly provider: Schema.Literals<readonly ["github", "gitlab", "forgejo", "gitea", "gitee", "bitbucket", "azure-devops", "generic_git"]>;
|
|
97
126
|
readonly host: Schema.String;
|
|
98
127
|
readonly accessModes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"local_checkout">, Schema.Literal<"managed_clone">, Schema.Literal<"runner_secret_provider">]>>;
|
|
99
128
|
readonly credentialProviderTypes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"env">, Schema.Literal<"file">, Schema.Literal<"exec">]>>;
|
|
@@ -126,21 +155,35 @@ export declare const Runner: Schema.Struct<{
|
|
|
126
155
|
readonly agentIdentityId: Schema.String;
|
|
127
156
|
readonly ownership: Schema.Union<readonly [Schema.Struct<{
|
|
128
157
|
readonly kind: Schema.Literal<"workspace">;
|
|
129
|
-
readonly
|
|
158
|
+
readonly teamAccess: Schema.Union<readonly [Schema.Literal<"all">, Schema.Literal<"selected">]>;
|
|
130
159
|
}>, Schema.Struct<{
|
|
131
|
-
readonly kind: Schema.Literal<"
|
|
132
|
-
readonly
|
|
160
|
+
readonly kind: Schema.Literal<"team">;
|
|
161
|
+
readonly teamId: Schema.String;
|
|
133
162
|
}>, Schema.Struct<{
|
|
134
163
|
readonly kind: Schema.Literal<"personal">;
|
|
135
164
|
readonly ownerUserId: Schema.String;
|
|
136
|
-
/** `selected` narrows it to granted
|
|
137
|
-
readonly
|
|
165
|
+
/** `selected` narrows it to granted Teams; it serves only Teams its owner can access either way. */
|
|
166
|
+
readonly teamAccess: Schema.withDecodingDefaultKey<Schema.Union<readonly [Schema.Literal<"all">, Schema.Literal<"selected">]>, never>;
|
|
138
167
|
}>]>;
|
|
139
|
-
readonly
|
|
168
|
+
readonly teamGrantIds: Schema.$Array<Schema.String>;
|
|
140
169
|
readonly credentialHostId: Schema.optionalKey<Schema.String>;
|
|
141
170
|
readonly name: Schema.String;
|
|
142
171
|
readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"disabled">]>;
|
|
143
|
-
readonly
|
|
172
|
+
readonly state: Schema.Union<readonly [Schema.Struct<{
|
|
173
|
+
readonly kind: Schema.Literal<"online">;
|
|
174
|
+
}>, Schema.Struct<{
|
|
175
|
+
readonly kind: Schema.Literal<"offline">;
|
|
176
|
+
readonly since: Schema.optionalKey<Schema.String>;
|
|
177
|
+
}>, Schema.Struct<{
|
|
178
|
+
readonly kind: Schema.Literal<"needs_attention">;
|
|
179
|
+
readonly problems: Schema.$Array<Schema.Struct<{
|
|
180
|
+
readonly code: Schema.Literals<readonly ["credential_missing", "credential_refused", "runner_removed", "sandbox_missing", "update_failed"]>;
|
|
181
|
+
readonly message: Schema.String;
|
|
182
|
+
readonly fix: Schema.String;
|
|
183
|
+
readonly startedAt: Schema.String;
|
|
184
|
+
}>>;
|
|
185
|
+
}>]>;
|
|
186
|
+
readonly credentialStatus: Schema.Literals<readonly ["active", "revoked", "never_provisioned"]>;
|
|
144
187
|
readonly capabilities: Schema.Struct<{
|
|
145
188
|
readonly harnesses: Schema.$Array<Schema.String>;
|
|
146
189
|
/** The Harness an Agent that names none launches on. */
|
|
@@ -188,7 +231,7 @@ export declare const Runner: Schema.Struct<{
|
|
|
188
231
|
readonly secretProviderTypes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"env">, Schema.Literal<"file">, Schema.Literal<"exec">]>>;
|
|
189
232
|
readonly repoBindings: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
190
233
|
readonly repoBindingId: Schema.String;
|
|
191
|
-
readonly provider: Schema.
|
|
234
|
+
readonly provider: Schema.Literals<readonly ["github", "gitlab", "forgejo", "gitea", "gitee", "bitbucket", "azure-devops", "generic_git"]>;
|
|
192
235
|
readonly host: Schema.String;
|
|
193
236
|
readonly accessModes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"local_checkout">, Schema.Literal<"managed_clone">, Schema.Literal<"runner_secret_provider">]>>;
|
|
194
237
|
readonly credentialProviderTypes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"env">, Schema.Literal<"file">, Schema.Literal<"exec">]>>;
|
|
@@ -218,39 +261,51 @@ export declare const Runner: Schema.Struct<{
|
|
|
218
261
|
/** The owner's choice of default Harness; `capabilities.defaultHarness` is the one in effect. */
|
|
219
262
|
readonly preferredHarness: Schema.optionalKey<Schema.Literals<readonly ["pi", "claude", "codex"]>>;
|
|
220
263
|
readonly labels: Schema.$Array<Schema.String>;
|
|
264
|
+
/** The `kitman` version the Runner last reported. */
|
|
265
|
+
readonly version: Schema.optionalKey<Schema.String>;
|
|
266
|
+
/** The `kitman` version this control plane serves; a Runner on another version is told to update to it. */
|
|
267
|
+
readonly latestVersion: Schema.optionalKey<Schema.String>;
|
|
268
|
+
/** Runs in a container, which never updates itself. */
|
|
269
|
+
readonly container: Schema.Boolean;
|
|
270
|
+
readonly automaticUpdates: Schema.Boolean;
|
|
221
271
|
readonly lastHeartbeatAt: Schema.optionalKey<Schema.String>;
|
|
222
272
|
readonly createdByUserId: Schema.optionalKey<Schema.String>;
|
|
223
273
|
readonly createdAt: Schema.String;
|
|
224
274
|
readonly updatedAt: Schema.String;
|
|
225
275
|
}>;
|
|
226
|
-
export declare const
|
|
276
|
+
export declare const RunnerTeamGrant: Schema.Struct<{
|
|
227
277
|
readonly id: Schema.String;
|
|
228
278
|
readonly runnerId: Schema.String;
|
|
229
279
|
readonly workspaceId: Schema.String;
|
|
230
|
-
readonly
|
|
280
|
+
readonly teamId: Schema.String;
|
|
231
281
|
readonly createdByUserId: Schema.optionalKey<Schema.String>;
|
|
232
282
|
readonly createdAt: Schema.String;
|
|
233
283
|
readonly updatedAt: Schema.String;
|
|
234
284
|
}>;
|
|
235
|
-
export declare const
|
|
236
|
-
readonly
|
|
285
|
+
export declare const RunnerTeamGrantCreate: Schema.Struct<{
|
|
286
|
+
readonly teamId: Schema.String;
|
|
237
287
|
}>;
|
|
238
288
|
export declare const RunnerRescope: Schema.Struct<{
|
|
239
289
|
readonly ownership: Schema.Union<readonly [Schema.Struct<{
|
|
240
290
|
readonly kind: Schema.Literal<"workspace">;
|
|
241
|
-
readonly
|
|
291
|
+
readonly teamAccess: Schema.Union<readonly [Schema.Literal<"all">, Schema.Literal<"selected">]>;
|
|
242
292
|
}>, Schema.Struct<{
|
|
243
|
-
readonly kind: Schema.Literal<"
|
|
244
|
-
readonly
|
|
293
|
+
readonly kind: Schema.Literal<"team">;
|
|
294
|
+
readonly teamId: Schema.String;
|
|
245
295
|
}>, Schema.Struct<{
|
|
246
296
|
readonly kind: Schema.Literal<"personal">;
|
|
247
297
|
readonly ownerUserId: Schema.String;
|
|
248
|
-
/** `selected` narrows it to granted
|
|
249
|
-
readonly
|
|
298
|
+
/** `selected` narrows it to granted Teams; it serves only Teams its owner can access either way. */
|
|
299
|
+
readonly teamAccess: Schema.withDecodingDefaultKey<Schema.Union<readonly [Schema.Literal<"all">, Schema.Literal<"selected">]>, never>;
|
|
250
300
|
}>]>;
|
|
251
301
|
}>;
|
|
252
302
|
export declare const RunnerUpdate: Schema.Struct<{
|
|
253
|
-
readonly name: Schema.String
|
|
303
|
+
readonly name: Schema.optionalKey<Schema.String>;
|
|
304
|
+
readonly automaticUpdates: Schema.optionalKey<Schema.Boolean>;
|
|
305
|
+
}>;
|
|
306
|
+
/** The version a Runner's replicas were told to update to. */
|
|
307
|
+
export declare const RunnerUpdateRequested: Schema.Struct<{
|
|
308
|
+
readonly version: Schema.String;
|
|
254
309
|
}>;
|
|
255
310
|
export declare const RunnerRemoveResult: Schema.Struct<{
|
|
256
311
|
readonly removed: Schema.Boolean;
|
|
@@ -259,18 +314,18 @@ export declare const RunnerRemoveResult: Schema.Struct<{
|
|
|
259
314
|
export declare const RunnerDefaultHarnessInput: Schema.Struct<{
|
|
260
315
|
readonly harness: Schema.NullOr<Schema.Literals<readonly ["pi", "claude", "codex"]>>;
|
|
261
316
|
}>;
|
|
262
|
-
export declare const
|
|
317
|
+
export declare const RunnerTeamGrantList: Schema.Struct<{
|
|
263
318
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
264
319
|
readonly id: Schema.String;
|
|
265
320
|
readonly runnerId: Schema.String;
|
|
266
321
|
readonly workspaceId: Schema.String;
|
|
267
|
-
readonly
|
|
322
|
+
readonly teamId: Schema.String;
|
|
268
323
|
readonly createdByUserId: Schema.optionalKey<Schema.String>;
|
|
269
324
|
readonly createdAt: Schema.String;
|
|
270
325
|
readonly updatedAt: Schema.String;
|
|
271
326
|
}>>;
|
|
272
327
|
}>;
|
|
273
|
-
export declare const
|
|
328
|
+
export declare const RunnerTeamGrantDeleteResult: Schema.Struct<{
|
|
274
329
|
readonly removed: Schema.Boolean;
|
|
275
330
|
}>;
|
|
276
331
|
export declare const RunnerReplicaPlacement: Schema.Struct<{
|
|
@@ -437,21 +492,19 @@ export declare const RunnerReplicaList: Schema.Struct<{
|
|
|
437
492
|
}>;
|
|
438
493
|
export declare const RunnerCreate: Schema.Struct<{
|
|
439
494
|
readonly name: Schema.String;
|
|
440
|
-
readonly agentIdentityId: Schema.optionalKey<Schema.String>;
|
|
441
495
|
readonly ownership: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
442
496
|
readonly kind: Schema.Literal<"workspace">;
|
|
443
|
-
readonly
|
|
497
|
+
readonly teamAccess: Schema.Union<readonly [Schema.Literal<"all">, Schema.Literal<"selected">]>;
|
|
444
498
|
}>, Schema.Struct<{
|
|
445
|
-
readonly kind: Schema.Literal<"
|
|
446
|
-
readonly
|
|
499
|
+
readonly kind: Schema.Literal<"team">;
|
|
500
|
+
readonly teamId: Schema.String;
|
|
447
501
|
}>, Schema.Struct<{
|
|
448
502
|
readonly kind: Schema.Literal<"personal">;
|
|
449
503
|
readonly ownerUserId: Schema.String;
|
|
450
|
-
/** `selected` narrows it to granted
|
|
451
|
-
readonly
|
|
504
|
+
/** `selected` narrows it to granted Teams; it serves only Teams its owner can access either way. */
|
|
505
|
+
readonly teamAccess: Schema.withDecodingDefaultKey<Schema.Union<readonly [Schema.Literal<"all">, Schema.Literal<"selected">]>, never>;
|
|
452
506
|
}>]>>;
|
|
453
|
-
readonly
|
|
454
|
-
readonly credentialHostId: Schema.optionalKey<Schema.String>;
|
|
507
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
455
508
|
readonly capabilities: Schema.optionalKey<Schema.Struct<{
|
|
456
509
|
readonly harnesses: Schema.$Array<Schema.String>;
|
|
457
510
|
/** The Harness an Agent that names none launches on. */
|
|
@@ -499,7 +552,7 @@ export declare const RunnerCreate: Schema.Struct<{
|
|
|
499
552
|
readonly secretProviderTypes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"env">, Schema.Literal<"file">, Schema.Literal<"exec">]>>;
|
|
500
553
|
readonly repoBindings: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
501
554
|
readonly repoBindingId: Schema.String;
|
|
502
|
-
readonly provider: Schema.
|
|
555
|
+
readonly provider: Schema.Literals<readonly ["github", "gitlab", "forgejo", "gitea", "gitee", "bitbucket", "azure-devops", "generic_git"]>;
|
|
503
556
|
readonly host: Schema.String;
|
|
504
557
|
readonly accessModes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"local_checkout">, Schema.Literal<"managed_clone">, Schema.Literal<"runner_secret_provider">]>>;
|
|
505
558
|
readonly credentialProviderTypes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"env">, Schema.Literal<"file">, Schema.Literal<"exec">]>>;
|
|
@@ -538,21 +591,35 @@ export declare const RunnerRegistrationResult: Schema.Struct<{
|
|
|
538
591
|
readonly agentIdentityId: Schema.String;
|
|
539
592
|
readonly ownership: Schema.Union<readonly [Schema.Struct<{
|
|
540
593
|
readonly kind: Schema.Literal<"workspace">;
|
|
541
|
-
readonly
|
|
594
|
+
readonly teamAccess: Schema.Union<readonly [Schema.Literal<"all">, Schema.Literal<"selected">]>;
|
|
542
595
|
}>, Schema.Struct<{
|
|
543
|
-
readonly kind: Schema.Literal<"
|
|
544
|
-
readonly
|
|
596
|
+
readonly kind: Schema.Literal<"team">;
|
|
597
|
+
readonly teamId: Schema.String;
|
|
545
598
|
}>, Schema.Struct<{
|
|
546
599
|
readonly kind: Schema.Literal<"personal">;
|
|
547
600
|
readonly ownerUserId: Schema.String;
|
|
548
|
-
/** `selected` narrows it to granted
|
|
549
|
-
readonly
|
|
601
|
+
/** `selected` narrows it to granted Teams; it serves only Teams its owner can access either way. */
|
|
602
|
+
readonly teamAccess: Schema.withDecodingDefaultKey<Schema.Union<readonly [Schema.Literal<"all">, Schema.Literal<"selected">]>, never>;
|
|
550
603
|
}>]>;
|
|
551
|
-
readonly
|
|
604
|
+
readonly teamGrantIds: Schema.$Array<Schema.String>;
|
|
552
605
|
readonly credentialHostId: Schema.optionalKey<Schema.String>;
|
|
553
606
|
readonly name: Schema.String;
|
|
554
607
|
readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"disabled">]>;
|
|
555
|
-
readonly
|
|
608
|
+
readonly state: Schema.Union<readonly [Schema.Struct<{
|
|
609
|
+
readonly kind: Schema.Literal<"online">;
|
|
610
|
+
}>, Schema.Struct<{
|
|
611
|
+
readonly kind: Schema.Literal<"offline">;
|
|
612
|
+
readonly since: Schema.optionalKey<Schema.String>;
|
|
613
|
+
}>, Schema.Struct<{
|
|
614
|
+
readonly kind: Schema.Literal<"needs_attention">;
|
|
615
|
+
readonly problems: Schema.$Array<Schema.Struct<{
|
|
616
|
+
readonly code: Schema.Literals<readonly ["credential_missing", "credential_refused", "runner_removed", "sandbox_missing", "update_failed"]>;
|
|
617
|
+
readonly message: Schema.String;
|
|
618
|
+
readonly fix: Schema.String;
|
|
619
|
+
readonly startedAt: Schema.String;
|
|
620
|
+
}>>;
|
|
621
|
+
}>]>;
|
|
622
|
+
readonly credentialStatus: Schema.Literals<readonly ["active", "revoked", "never_provisioned"]>;
|
|
556
623
|
readonly capabilities: Schema.Struct<{
|
|
557
624
|
readonly harnesses: Schema.$Array<Schema.String>;
|
|
558
625
|
/** The Harness an Agent that names none launches on. */
|
|
@@ -600,7 +667,7 @@ export declare const RunnerRegistrationResult: Schema.Struct<{
|
|
|
600
667
|
readonly secretProviderTypes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"env">, Schema.Literal<"file">, Schema.Literal<"exec">]>>;
|
|
601
668
|
readonly repoBindings: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
602
669
|
readonly repoBindingId: Schema.String;
|
|
603
|
-
readonly provider: Schema.
|
|
670
|
+
readonly provider: Schema.Literals<readonly ["github", "gitlab", "forgejo", "gitea", "gitee", "bitbucket", "azure-devops", "generic_git"]>;
|
|
604
671
|
readonly host: Schema.String;
|
|
605
672
|
readonly accessModes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"local_checkout">, Schema.Literal<"managed_clone">, Schema.Literal<"runner_secret_provider">]>>;
|
|
606
673
|
readonly credentialProviderTypes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"env">, Schema.Literal<"file">, Schema.Literal<"exec">]>>;
|
|
@@ -630,6 +697,13 @@ export declare const RunnerRegistrationResult: Schema.Struct<{
|
|
|
630
697
|
/** The owner's choice of default Harness; `capabilities.defaultHarness` is the one in effect. */
|
|
631
698
|
readonly preferredHarness: Schema.optionalKey<Schema.Literals<readonly ["pi", "claude", "codex"]>>;
|
|
632
699
|
readonly labels: Schema.$Array<Schema.String>;
|
|
700
|
+
/** The `kitman` version the Runner last reported. */
|
|
701
|
+
readonly version: Schema.optionalKey<Schema.String>;
|
|
702
|
+
/** The `kitman` version this control plane serves; a Runner on another version is told to update to it. */
|
|
703
|
+
readonly latestVersion: Schema.optionalKey<Schema.String>;
|
|
704
|
+
/** Runs in a container, which never updates itself. */
|
|
705
|
+
readonly container: Schema.Boolean;
|
|
706
|
+
readonly automaticUpdates: Schema.Boolean;
|
|
633
707
|
readonly lastHeartbeatAt: Schema.optionalKey<Schema.String>;
|
|
634
708
|
readonly createdByUserId: Schema.optionalKey<Schema.String>;
|
|
635
709
|
readonly createdAt: Schema.String;
|
|
@@ -649,7 +723,14 @@ export declare const RunnerRegistrationResult: Schema.Struct<{
|
|
|
649
723
|
}>>;
|
|
650
724
|
}>;
|
|
651
725
|
export declare const RunnerHeartbeatInput: Schema.Struct<{
|
|
652
|
-
readonly
|
|
726
|
+
readonly version: Schema.optionalKey<Schema.String>;
|
|
727
|
+
readonly container: Schema.optionalKey<Schema.Boolean>;
|
|
728
|
+
/** The Runner's open Problems, replacing those it reported before; empty clears them. */
|
|
729
|
+
readonly problems: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
730
|
+
readonly code: Schema.Literals<readonly ["credential_missing", "credential_refused", "runner_removed", "sandbox_missing", "update_failed"]>;
|
|
731
|
+
readonly message: Schema.String;
|
|
732
|
+
readonly fix: Schema.String;
|
|
733
|
+
}>>>;
|
|
653
734
|
readonly capabilities: Schema.optionalKey<Schema.Struct<{
|
|
654
735
|
readonly harnesses: Schema.$Array<Schema.String>;
|
|
655
736
|
/** The Harness an Agent that names none launches on. */
|
|
@@ -697,7 +778,7 @@ export declare const RunnerHeartbeatInput: Schema.Struct<{
|
|
|
697
778
|
readonly secretProviderTypes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"env">, Schema.Literal<"file">, Schema.Literal<"exec">]>>;
|
|
698
779
|
readonly repoBindings: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
699
780
|
readonly repoBindingId: Schema.String;
|
|
700
|
-
readonly provider: Schema.
|
|
781
|
+
readonly provider: Schema.Literals<readonly ["github", "gitlab", "forgejo", "gitea", "gitee", "bitbucket", "azure-devops", "generic_git"]>;
|
|
701
782
|
readonly host: Schema.String;
|
|
702
783
|
readonly accessModes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"local_checkout">, Schema.Literal<"managed_clone">, Schema.Literal<"runner_secret_provider">]>>;
|
|
703
784
|
readonly credentialProviderTypes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"env">, Schema.Literal<"file">, Schema.Literal<"exec">]>>;
|
|
@@ -774,7 +855,7 @@ export declare const RunnerCapabilitiesUpdate: Schema.Struct<{
|
|
|
774
855
|
readonly secretProviderTypes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"env">, Schema.Literal<"file">, Schema.Literal<"exec">]>>;
|
|
775
856
|
readonly repoBindings: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
776
857
|
readonly repoBindingId: Schema.String;
|
|
777
|
-
readonly provider: Schema.
|
|
858
|
+
readonly provider: Schema.Literals<readonly ["github", "gitlab", "forgejo", "gitea", "gitee", "bitbucket", "azure-devops", "generic_git"]>;
|
|
778
859
|
readonly host: Schema.String;
|
|
779
860
|
readonly accessModes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"local_checkout">, Schema.Literal<"managed_clone">, Schema.Literal<"runner_secret_provider">]>>;
|
|
780
861
|
readonly credentialProviderTypes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"env">, Schema.Literal<"file">, Schema.Literal<"exec">]>>;
|
|
@@ -848,7 +929,7 @@ export declare const RunnerStepAttempt: Schema.Struct<{
|
|
|
848
929
|
readonly attempt: Schema.Struct<{
|
|
849
930
|
readonly id: Schema.String;
|
|
850
931
|
readonly workspaceId: Schema.String;
|
|
851
|
-
readonly
|
|
932
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
852
933
|
readonly taskId: Schema.optionalKey<Schema.String>;
|
|
853
934
|
readonly sessionId: Schema.optionalKey<Schema.String>;
|
|
854
935
|
readonly runId: Schema.String;
|
|
@@ -866,7 +947,7 @@ export declare const RunnerStepAttempt: Schema.Struct<{
|
|
|
866
947
|
readonly kind: Schema.Literals<readonly ["kit", "memory", "decision", "knowledge_record", "context_pack"]>;
|
|
867
948
|
readonly sourceId: Schema.String;
|
|
868
949
|
readonly sourceScope: Schema.Struct<{
|
|
869
|
-
readonly kind: Schema.Literals<readonly ["workspace", "
|
|
950
|
+
readonly kind: Schema.Literals<readonly ["workspace", "team", "task", "loop", "agent"]>;
|
|
870
951
|
readonly id: Schema.String;
|
|
871
952
|
}>;
|
|
872
953
|
readonly inclusionReason: Schema.String;
|
|
@@ -890,7 +971,7 @@ export declare const RunnerStepAttempt: Schema.Struct<{
|
|
|
890
971
|
readonly kind: Schema.Literals<readonly ["kit", "memory", "decision", "knowledge_record", "context_pack"]>;
|
|
891
972
|
readonly sourceId: Schema.String;
|
|
892
973
|
readonly sourceScope: Schema.Struct<{
|
|
893
|
-
readonly kind: Schema.Literals<readonly ["workspace", "
|
|
974
|
+
readonly kind: Schema.Literals<readonly ["workspace", "team", "task", "loop", "agent"]>;
|
|
894
975
|
readonly id: Schema.String;
|
|
895
976
|
}>;
|
|
896
977
|
readonly inclusionReason: Schema.String;
|
|
@@ -1042,7 +1123,7 @@ export declare const RunnerStepAttempt: Schema.Struct<{
|
|
|
1042
1123
|
readonly kind: Schema.Literal<"human_approval">;
|
|
1043
1124
|
readonly prompt: Schema.String;
|
|
1044
1125
|
readonly approvalPolicy: Schema.Struct<{
|
|
1045
|
-
readonly mode: Schema.Literals<readonly ["auto_approve_low_risk", "
|
|
1126
|
+
readonly mode: Schema.Literals<readonly ["auto_approve_low_risk", "require_other_team_member", "require_workspace_owner_or_admin"]>;
|
|
1046
1127
|
readonly requireDifferentApprover: Schema.optionalKey<Schema.Boolean>;
|
|
1047
1128
|
readonly autonomousAgentApprovalAllowed: Schema.Literal<false>;
|
|
1048
1129
|
readonly deniedViolationCodes: Schema.$Array<Schema.Literals<readonly ["autonomous_self_approval", "self_capability_escalation", "missing_required_approval", "unsafe_payload", "target_conflict"]>>;
|
|
@@ -1154,7 +1235,7 @@ export declare const RunnerStepAttempt: Schema.Struct<{
|
|
|
1154
1235
|
readonly kind: Schema.Literal<"human_approval">;
|
|
1155
1236
|
readonly prompt: Schema.String;
|
|
1156
1237
|
readonly approvalPolicy: Schema.Struct<{
|
|
1157
|
-
readonly mode: Schema.Literals<readonly ["auto_approve_low_risk", "
|
|
1238
|
+
readonly mode: Schema.Literals<readonly ["auto_approve_low_risk", "require_other_team_member", "require_workspace_owner_or_admin"]>;
|
|
1158
1239
|
readonly requireDifferentApprover: Schema.optionalKey<Schema.Boolean>;
|
|
1159
1240
|
readonly autonomousAgentApprovalAllowed: Schema.Literal<false>;
|
|
1160
1241
|
readonly deniedViolationCodes: Schema.$Array<Schema.Literals<readonly ["autonomous_self_approval", "self_capability_escalation", "missing_required_approval", "unsafe_payload", "target_conflict"]>>;
|
|
@@ -1256,9 +1337,9 @@ export declare const RunnerStepAttempt: Schema.Struct<{
|
|
|
1256
1337
|
readonly sha256: Schema.optionalKey<Schema.String>;
|
|
1257
1338
|
}>;
|
|
1258
1339
|
readonly allowedCapabilities: Schema.$Array<Schema.Struct<{
|
|
1259
|
-
readonly capability: Schema.Literals<readonly ["read_task", "read_repo_binding", "read_agent_environment", "read_kit", "update_task_status", "read_change_request", "read_change_request_review", "read_task_link", "refresh_change_request_metadata", "record_change_request_review", "record_session_update", "create_task_link", "create_task_dependency", "create_task_asset", "create_follow_up_task", "execute_agent", "read_step_attempt", "record_task_thread_entry", "write_provider_repository", "write_provider_change_request", "publish_provider_check", "write_provider_comment", "request_provider_changes", "approve_provider_change_request", "merge_provider_change_request", "wait_for_event", "request_human_approval", "execute_package_ref", "read_context_feedback", "read_session_update", "read_repo_binding", "read_agent_environment", "read_kit", "read_memory", "read_decision", "create_task_dependency", "propose_memory", "propose_kit", "propose_decision", "propose_agent_environment_policy", "
|
|
1340
|
+
readonly capability: Schema.Literals<readonly ["read_task", "read_repo_binding", "read_agent_environment", "read_kit", "update_task_status", "read_change_request", "read_change_request_review", "read_task_link", "refresh_change_request_metadata", "record_change_request_review", "record_session_update", "create_task_link", "create_task_dependency", "create_task_asset", "create_follow_up_task", "execute_agent", "read_step_attempt", "record_task_thread_entry", "write_provider_repository", "write_provider_change_request", "publish_provider_check", "write_provider_comment", "request_provider_changes", "approve_provider_change_request", "merge_provider_change_request", "wait_for_event", "request_human_approval", "execute_package_ref", "read_context_feedback", "read_session_update", "read_repo_binding", "read_agent_environment", "read_kit", "read_memory", "read_decision", "create_task_dependency", "propose_memory", "propose_kit", "propose_decision", "propose_agent_environment_policy", "propose_team_context", "propose_context_relevance", "execute_runner_sandbox"]>;
|
|
1260
1341
|
readonly scope: Schema.optionalKey<Schema.Struct<{
|
|
1261
|
-
readonly kind: Schema.Literals<readonly ["workspace", "
|
|
1342
|
+
readonly kind: Schema.Literals<readonly ["workspace", "team", "task", "change_request", "step_attempt", "run", "repo_binding", "provider_host"]>;
|
|
1262
1343
|
readonly id: Schema.optionalKey<Schema.String>;
|
|
1263
1344
|
readonly idRef: Schema.optionalKey<Schema.String>;
|
|
1264
1345
|
readonly value: Schema.optionalKey<Schema.String>;
|
|
@@ -1279,7 +1360,7 @@ export declare const RunnerStepAttempt: Schema.Struct<{
|
|
|
1279
1360
|
export declare const RunnerStepAttemptDiagnostic: Schema.Struct<{
|
|
1280
1361
|
readonly id: Schema.String;
|
|
1281
1362
|
readonly workspaceId: Schema.String;
|
|
1282
|
-
readonly
|
|
1363
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
1283
1364
|
readonly kind: Schema.Literal<"step_attempt">;
|
|
1284
1365
|
readonly runId: Schema.String;
|
|
1285
1366
|
readonly stepKey: Schema.String;
|
|
@@ -1378,21 +1459,35 @@ export declare const RunnerOperationsOverview: Schema.Struct<{
|
|
|
1378
1459
|
readonly agentIdentityId: Schema.String;
|
|
1379
1460
|
readonly ownership: Schema.Union<readonly [Schema.Struct<{
|
|
1380
1461
|
readonly kind: Schema.Literal<"workspace">;
|
|
1381
|
-
readonly
|
|
1462
|
+
readonly teamAccess: Schema.Union<readonly [Schema.Literal<"all">, Schema.Literal<"selected">]>;
|
|
1382
1463
|
}>, Schema.Struct<{
|
|
1383
|
-
readonly kind: Schema.Literal<"
|
|
1384
|
-
readonly
|
|
1464
|
+
readonly kind: Schema.Literal<"team">;
|
|
1465
|
+
readonly teamId: Schema.String;
|
|
1385
1466
|
}>, Schema.Struct<{
|
|
1386
1467
|
readonly kind: Schema.Literal<"personal">;
|
|
1387
1468
|
readonly ownerUserId: Schema.String;
|
|
1388
|
-
/** `selected` narrows it to granted
|
|
1389
|
-
readonly
|
|
1469
|
+
/** `selected` narrows it to granted Teams; it serves only Teams its owner can access either way. */
|
|
1470
|
+
readonly teamAccess: Schema.withDecodingDefaultKey<Schema.Union<readonly [Schema.Literal<"all">, Schema.Literal<"selected">]>, never>;
|
|
1390
1471
|
}>]>;
|
|
1391
|
-
readonly
|
|
1472
|
+
readonly teamGrantIds: Schema.$Array<Schema.String>;
|
|
1392
1473
|
readonly credentialHostId: Schema.optionalKey<Schema.String>;
|
|
1393
1474
|
readonly name: Schema.String;
|
|
1394
1475
|
readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"disabled">]>;
|
|
1395
|
-
readonly
|
|
1476
|
+
readonly state: Schema.Union<readonly [Schema.Struct<{
|
|
1477
|
+
readonly kind: Schema.Literal<"online">;
|
|
1478
|
+
}>, Schema.Struct<{
|
|
1479
|
+
readonly kind: Schema.Literal<"offline">;
|
|
1480
|
+
readonly since: Schema.optionalKey<Schema.String>;
|
|
1481
|
+
}>, Schema.Struct<{
|
|
1482
|
+
readonly kind: Schema.Literal<"needs_attention">;
|
|
1483
|
+
readonly problems: Schema.$Array<Schema.Struct<{
|
|
1484
|
+
readonly code: Schema.Literals<readonly ["credential_missing", "credential_refused", "runner_removed", "sandbox_missing", "update_failed"]>;
|
|
1485
|
+
readonly message: Schema.String;
|
|
1486
|
+
readonly fix: Schema.String;
|
|
1487
|
+
readonly startedAt: Schema.String;
|
|
1488
|
+
}>>;
|
|
1489
|
+
}>]>;
|
|
1490
|
+
readonly credentialStatus: Schema.Literals<readonly ["active", "revoked", "never_provisioned"]>;
|
|
1396
1491
|
readonly capabilities: Schema.Struct<{
|
|
1397
1492
|
readonly harnesses: Schema.$Array<Schema.String>;
|
|
1398
1493
|
/** The Harness an Agent that names none launches on. */
|
|
@@ -1440,7 +1535,7 @@ export declare const RunnerOperationsOverview: Schema.Struct<{
|
|
|
1440
1535
|
readonly secretProviderTypes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"env">, Schema.Literal<"file">, Schema.Literal<"exec">]>>;
|
|
1441
1536
|
readonly repoBindings: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1442
1537
|
readonly repoBindingId: Schema.String;
|
|
1443
|
-
readonly provider: Schema.
|
|
1538
|
+
readonly provider: Schema.Literals<readonly ["github", "gitlab", "forgejo", "gitea", "gitee", "bitbucket", "azure-devops", "generic_git"]>;
|
|
1444
1539
|
readonly host: Schema.String;
|
|
1445
1540
|
readonly accessModes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"local_checkout">, Schema.Literal<"managed_clone">, Schema.Literal<"runner_secret_provider">]>>;
|
|
1446
1541
|
readonly credentialProviderTypes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"env">, Schema.Literal<"file">, Schema.Literal<"exec">]>>;
|
|
@@ -1470,6 +1565,13 @@ export declare const RunnerOperationsOverview: Schema.Struct<{
|
|
|
1470
1565
|
/** The owner's choice of default Harness; `capabilities.defaultHarness` is the one in effect. */
|
|
1471
1566
|
readonly preferredHarness: Schema.optionalKey<Schema.Literals<readonly ["pi", "claude", "codex"]>>;
|
|
1472
1567
|
readonly labels: Schema.$Array<Schema.String>;
|
|
1568
|
+
/** The `kitman` version the Runner last reported. */
|
|
1569
|
+
readonly version: Schema.optionalKey<Schema.String>;
|
|
1570
|
+
/** The `kitman` version this control plane serves; a Runner on another version is told to update to it. */
|
|
1571
|
+
readonly latestVersion: Schema.optionalKey<Schema.String>;
|
|
1572
|
+
/** Runs in a container, which never updates itself. */
|
|
1573
|
+
readonly container: Schema.Boolean;
|
|
1574
|
+
readonly automaticUpdates: Schema.Boolean;
|
|
1473
1575
|
readonly lastHeartbeatAt: Schema.optionalKey<Schema.String>;
|
|
1474
1576
|
readonly createdByUserId: Schema.optionalKey<Schema.String>;
|
|
1475
1577
|
readonly createdAt: Schema.String;
|
|
@@ -1483,7 +1585,7 @@ export declare const RunnerOperationsOverview: Schema.Struct<{
|
|
|
1483
1585
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
1484
1586
|
readonly id: Schema.String;
|
|
1485
1587
|
readonly workspaceId: Schema.String;
|
|
1486
|
-
readonly
|
|
1588
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
1487
1589
|
readonly kind: Schema.Literal<"step_attempt">;
|
|
1488
1590
|
readonly runId: Schema.String;
|
|
1489
1591
|
readonly stepKey: Schema.String;
|
|
@@ -1585,21 +1687,35 @@ export declare const RunnerOperationsLiveSnapshot: Schema.Struct<{
|
|
|
1585
1687
|
readonly agentIdentityId: Schema.String;
|
|
1586
1688
|
readonly ownership: Schema.Union<readonly [Schema.Struct<{
|
|
1587
1689
|
readonly kind: Schema.Literal<"workspace">;
|
|
1588
|
-
readonly
|
|
1690
|
+
readonly teamAccess: Schema.Union<readonly [Schema.Literal<"all">, Schema.Literal<"selected">]>;
|
|
1589
1691
|
}>, Schema.Struct<{
|
|
1590
|
-
readonly kind: Schema.Literal<"
|
|
1591
|
-
readonly
|
|
1692
|
+
readonly kind: Schema.Literal<"team">;
|
|
1693
|
+
readonly teamId: Schema.String;
|
|
1592
1694
|
}>, Schema.Struct<{
|
|
1593
1695
|
readonly kind: Schema.Literal<"personal">;
|
|
1594
1696
|
readonly ownerUserId: Schema.String;
|
|
1595
|
-
/** `selected` narrows it to granted
|
|
1596
|
-
readonly
|
|
1697
|
+
/** `selected` narrows it to granted Teams; it serves only Teams its owner can access either way. */
|
|
1698
|
+
readonly teamAccess: Schema.withDecodingDefaultKey<Schema.Union<readonly [Schema.Literal<"all">, Schema.Literal<"selected">]>, never>;
|
|
1597
1699
|
}>]>;
|
|
1598
|
-
readonly
|
|
1700
|
+
readonly teamGrantIds: Schema.$Array<Schema.String>;
|
|
1599
1701
|
readonly credentialHostId: Schema.optionalKey<Schema.String>;
|
|
1600
1702
|
readonly name: Schema.String;
|
|
1601
1703
|
readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"disabled">]>;
|
|
1602
|
-
readonly
|
|
1704
|
+
readonly state: Schema.Union<readonly [Schema.Struct<{
|
|
1705
|
+
readonly kind: Schema.Literal<"online">;
|
|
1706
|
+
}>, Schema.Struct<{
|
|
1707
|
+
readonly kind: Schema.Literal<"offline">;
|
|
1708
|
+
readonly since: Schema.optionalKey<Schema.String>;
|
|
1709
|
+
}>, Schema.Struct<{
|
|
1710
|
+
readonly kind: Schema.Literal<"needs_attention">;
|
|
1711
|
+
readonly problems: Schema.$Array<Schema.Struct<{
|
|
1712
|
+
readonly code: Schema.Literals<readonly ["credential_missing", "credential_refused", "runner_removed", "sandbox_missing", "update_failed"]>;
|
|
1713
|
+
readonly message: Schema.String;
|
|
1714
|
+
readonly fix: Schema.String;
|
|
1715
|
+
readonly startedAt: Schema.String;
|
|
1716
|
+
}>>;
|
|
1717
|
+
}>]>;
|
|
1718
|
+
readonly credentialStatus: Schema.Literals<readonly ["active", "revoked", "never_provisioned"]>;
|
|
1603
1719
|
readonly capabilities: Schema.Struct<{
|
|
1604
1720
|
readonly harnesses: Schema.$Array<Schema.String>;
|
|
1605
1721
|
/** The Harness an Agent that names none launches on. */
|
|
@@ -1647,7 +1763,7 @@ export declare const RunnerOperationsLiveSnapshot: Schema.Struct<{
|
|
|
1647
1763
|
readonly secretProviderTypes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"env">, Schema.Literal<"file">, Schema.Literal<"exec">]>>;
|
|
1648
1764
|
readonly repoBindings: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1649
1765
|
readonly repoBindingId: Schema.String;
|
|
1650
|
-
readonly provider: Schema.
|
|
1766
|
+
readonly provider: Schema.Literals<readonly ["github", "gitlab", "forgejo", "gitea", "gitee", "bitbucket", "azure-devops", "generic_git"]>;
|
|
1651
1767
|
readonly host: Schema.String;
|
|
1652
1768
|
readonly accessModes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"local_checkout">, Schema.Literal<"managed_clone">, Schema.Literal<"runner_secret_provider">]>>;
|
|
1653
1769
|
readonly credentialProviderTypes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"env">, Schema.Literal<"file">, Schema.Literal<"exec">]>>;
|
|
@@ -1677,6 +1793,13 @@ export declare const RunnerOperationsLiveSnapshot: Schema.Struct<{
|
|
|
1677
1793
|
/** The owner's choice of default Harness; `capabilities.defaultHarness` is the one in effect. */
|
|
1678
1794
|
readonly preferredHarness: Schema.optionalKey<Schema.Literals<readonly ["pi", "claude", "codex"]>>;
|
|
1679
1795
|
readonly labels: Schema.$Array<Schema.String>;
|
|
1796
|
+
/** The `kitman` version the Runner last reported. */
|
|
1797
|
+
readonly version: Schema.optionalKey<Schema.String>;
|
|
1798
|
+
/** The `kitman` version this control plane serves; a Runner on another version is told to update to it. */
|
|
1799
|
+
readonly latestVersion: Schema.optionalKey<Schema.String>;
|
|
1800
|
+
/** Runs in a container, which never updates itself. */
|
|
1801
|
+
readonly container: Schema.Boolean;
|
|
1802
|
+
readonly automaticUpdates: Schema.Boolean;
|
|
1680
1803
|
readonly lastHeartbeatAt: Schema.optionalKey<Schema.String>;
|
|
1681
1804
|
readonly createdByUserId: Schema.optionalKey<Schema.String>;
|
|
1682
1805
|
readonly createdAt: Schema.String;
|
|
@@ -1690,7 +1813,7 @@ export declare const RunnerOperationsLiveSnapshot: Schema.Struct<{
|
|
|
1690
1813
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
1691
1814
|
readonly id: Schema.String;
|
|
1692
1815
|
readonly workspaceId: Schema.String;
|
|
1693
|
-
readonly
|
|
1816
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
1694
1817
|
readonly kind: Schema.Literal<"step_attempt">;
|
|
1695
1818
|
readonly runId: Schema.String;
|
|
1696
1819
|
readonly stepKey: Schema.String;
|
|
@@ -1788,9 +1911,9 @@ export declare const RunnerOperationsLiveSnapshot: Schema.Struct<{
|
|
|
1788
1911
|
readonly source: Schema.Literal<"http_snapshot">;
|
|
1789
1912
|
readonly collection: Schema.Literal<"runner_operations">;
|
|
1790
1913
|
readonly scope: Schema.Struct<{
|
|
1791
|
-
readonly kind: Schema.Literal<"
|
|
1914
|
+
readonly kind: Schema.Literal<"team">;
|
|
1792
1915
|
readonly workspaceId: Schema.String;
|
|
1793
|
-
readonly
|
|
1916
|
+
readonly teamId: Schema.String;
|
|
1794
1917
|
}>;
|
|
1795
1918
|
readonly window: Schema.Struct<{
|
|
1796
1919
|
readonly runnerLimit: Schema.Literal<50>;
|
|
@@ -1960,7 +2083,20 @@ export declare const RunnerFlightDeck: Schema.Struct<{
|
|
|
1960
2083
|
readonly runnerId: Schema.String;
|
|
1961
2084
|
readonly name: Schema.String;
|
|
1962
2085
|
readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"disabled">]>;
|
|
1963
|
-
readonly
|
|
2086
|
+
readonly state: Schema.Union<readonly [Schema.Struct<{
|
|
2087
|
+
readonly kind: Schema.Literal<"online">;
|
|
2088
|
+
}>, Schema.Struct<{
|
|
2089
|
+
readonly kind: Schema.Literal<"offline">;
|
|
2090
|
+
readonly since: Schema.optionalKey<Schema.String>;
|
|
2091
|
+
}>, Schema.Struct<{
|
|
2092
|
+
readonly kind: Schema.Literal<"needs_attention">;
|
|
2093
|
+
readonly problems: Schema.$Array<Schema.Struct<{
|
|
2094
|
+
readonly code: Schema.Literals<readonly ["credential_missing", "credential_refused", "runner_removed", "sandbox_missing", "update_failed"]>;
|
|
2095
|
+
readonly message: Schema.String;
|
|
2096
|
+
readonly fix: Schema.String;
|
|
2097
|
+
readonly startedAt: Schema.String;
|
|
2098
|
+
}>>;
|
|
2099
|
+
}>]>;
|
|
1964
2100
|
readonly heartbeatAgeSeconds: Schema.optionalKey<Schema.Int>;
|
|
1965
2101
|
readonly replicaCount: Schema.Int;
|
|
1966
2102
|
readonly acceptingReplicas: Schema.Int;
|
|
@@ -2123,7 +2259,20 @@ export declare const RunnerFlightDeckLiveSnapshot: Schema.Struct<{
|
|
|
2123
2259
|
readonly runnerId: Schema.String;
|
|
2124
2260
|
readonly name: Schema.String;
|
|
2125
2261
|
readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"disabled">]>;
|
|
2126
|
-
readonly
|
|
2262
|
+
readonly state: Schema.Union<readonly [Schema.Struct<{
|
|
2263
|
+
readonly kind: Schema.Literal<"online">;
|
|
2264
|
+
}>, Schema.Struct<{
|
|
2265
|
+
readonly kind: Schema.Literal<"offline">;
|
|
2266
|
+
readonly since: Schema.optionalKey<Schema.String>;
|
|
2267
|
+
}>, Schema.Struct<{
|
|
2268
|
+
readonly kind: Schema.Literal<"needs_attention">;
|
|
2269
|
+
readonly problems: Schema.$Array<Schema.Struct<{
|
|
2270
|
+
readonly code: Schema.Literals<readonly ["credential_missing", "credential_refused", "runner_removed", "sandbox_missing", "update_failed"]>;
|
|
2271
|
+
readonly message: Schema.String;
|
|
2272
|
+
readonly fix: Schema.String;
|
|
2273
|
+
readonly startedAt: Schema.String;
|
|
2274
|
+
}>>;
|
|
2275
|
+
}>]>;
|
|
2127
2276
|
readonly heartbeatAgeSeconds: Schema.optionalKey<Schema.Int>;
|
|
2128
2277
|
readonly replicaCount: Schema.Int;
|
|
2129
2278
|
readonly acceptingReplicas: Schema.Int;
|
|
@@ -2274,8 +2423,8 @@ export declare const RunnerStepAttemptListInput: Schema.Struct<{
|
|
|
2274
2423
|
readonly runId: Schema.String;
|
|
2275
2424
|
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
2276
2425
|
}>;
|
|
2277
|
-
export declare const
|
|
2278
|
-
readonly
|
|
2426
|
+
export declare const RunnerTeamStepAttemptListInput: Schema.Struct<{
|
|
2427
|
+
readonly teamId: Schema.String;
|
|
2279
2428
|
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
2280
2429
|
}>;
|
|
2281
2430
|
export declare const RunnerStepAttemptClaimInput: Schema.Struct<{
|
|
@@ -2337,21 +2486,35 @@ export declare const RunnerList: Schema.Struct<{
|
|
|
2337
2486
|
readonly agentIdentityId: Schema.String;
|
|
2338
2487
|
readonly ownership: Schema.Union<readonly [Schema.Struct<{
|
|
2339
2488
|
readonly kind: Schema.Literal<"workspace">;
|
|
2340
|
-
readonly
|
|
2489
|
+
readonly teamAccess: Schema.Union<readonly [Schema.Literal<"all">, Schema.Literal<"selected">]>;
|
|
2341
2490
|
}>, Schema.Struct<{
|
|
2342
|
-
readonly kind: Schema.Literal<"
|
|
2343
|
-
readonly
|
|
2491
|
+
readonly kind: Schema.Literal<"team">;
|
|
2492
|
+
readonly teamId: Schema.String;
|
|
2344
2493
|
}>, Schema.Struct<{
|
|
2345
2494
|
readonly kind: Schema.Literal<"personal">;
|
|
2346
2495
|
readonly ownerUserId: Schema.String;
|
|
2347
|
-
/** `selected` narrows it to granted
|
|
2348
|
-
readonly
|
|
2496
|
+
/** `selected` narrows it to granted Teams; it serves only Teams its owner can access either way. */
|
|
2497
|
+
readonly teamAccess: Schema.withDecodingDefaultKey<Schema.Union<readonly [Schema.Literal<"all">, Schema.Literal<"selected">]>, never>;
|
|
2349
2498
|
}>]>;
|
|
2350
|
-
readonly
|
|
2499
|
+
readonly teamGrantIds: Schema.$Array<Schema.String>;
|
|
2351
2500
|
readonly credentialHostId: Schema.optionalKey<Schema.String>;
|
|
2352
2501
|
readonly name: Schema.String;
|
|
2353
2502
|
readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"disabled">]>;
|
|
2354
|
-
readonly
|
|
2503
|
+
readonly state: Schema.Union<readonly [Schema.Struct<{
|
|
2504
|
+
readonly kind: Schema.Literal<"online">;
|
|
2505
|
+
}>, Schema.Struct<{
|
|
2506
|
+
readonly kind: Schema.Literal<"offline">;
|
|
2507
|
+
readonly since: Schema.optionalKey<Schema.String>;
|
|
2508
|
+
}>, Schema.Struct<{
|
|
2509
|
+
readonly kind: Schema.Literal<"needs_attention">;
|
|
2510
|
+
readonly problems: Schema.$Array<Schema.Struct<{
|
|
2511
|
+
readonly code: Schema.Literals<readonly ["credential_missing", "credential_refused", "runner_removed", "sandbox_missing", "update_failed"]>;
|
|
2512
|
+
readonly message: Schema.String;
|
|
2513
|
+
readonly fix: Schema.String;
|
|
2514
|
+
readonly startedAt: Schema.String;
|
|
2515
|
+
}>>;
|
|
2516
|
+
}>]>;
|
|
2517
|
+
readonly credentialStatus: Schema.Literals<readonly ["active", "revoked", "never_provisioned"]>;
|
|
2355
2518
|
readonly capabilities: Schema.Struct<{
|
|
2356
2519
|
readonly harnesses: Schema.$Array<Schema.String>;
|
|
2357
2520
|
/** The Harness an Agent that names none launches on. */
|
|
@@ -2399,7 +2562,7 @@ export declare const RunnerList: Schema.Struct<{
|
|
|
2399
2562
|
readonly secretProviderTypes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"env">, Schema.Literal<"file">, Schema.Literal<"exec">]>>;
|
|
2400
2563
|
readonly repoBindings: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2401
2564
|
readonly repoBindingId: Schema.String;
|
|
2402
|
-
readonly provider: Schema.
|
|
2565
|
+
readonly provider: Schema.Literals<readonly ["github", "gitlab", "forgejo", "gitea", "gitee", "bitbucket", "azure-devops", "generic_git"]>;
|
|
2403
2566
|
readonly host: Schema.String;
|
|
2404
2567
|
readonly accessModes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"local_checkout">, Schema.Literal<"managed_clone">, Schema.Literal<"runner_secret_provider">]>>;
|
|
2405
2568
|
readonly credentialProviderTypes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"env">, Schema.Literal<"file">, Schema.Literal<"exec">]>>;
|
|
@@ -2429,12 +2592,50 @@ export declare const RunnerList: Schema.Struct<{
|
|
|
2429
2592
|
/** The owner's choice of default Harness; `capabilities.defaultHarness` is the one in effect. */
|
|
2430
2593
|
readonly preferredHarness: Schema.optionalKey<Schema.Literals<readonly ["pi", "claude", "codex"]>>;
|
|
2431
2594
|
readonly labels: Schema.$Array<Schema.String>;
|
|
2595
|
+
/** The `kitman` version the Runner last reported. */
|
|
2596
|
+
readonly version: Schema.optionalKey<Schema.String>;
|
|
2597
|
+
/** The `kitman` version this control plane serves; a Runner on another version is told to update to it. */
|
|
2598
|
+
readonly latestVersion: Schema.optionalKey<Schema.String>;
|
|
2599
|
+
/** Runs in a container, which never updates itself. */
|
|
2600
|
+
readonly container: Schema.Boolean;
|
|
2601
|
+
readonly automaticUpdates: Schema.Boolean;
|
|
2432
2602
|
readonly lastHeartbeatAt: Schema.optionalKey<Schema.String>;
|
|
2433
2603
|
readonly createdByUserId: Schema.optionalKey<Schema.String>;
|
|
2434
2604
|
readonly createdAt: Schema.String;
|
|
2435
2605
|
readonly updatedAt: Schema.String;
|
|
2436
2606
|
}>>;
|
|
2437
2607
|
}>;
|
|
2608
|
+
/** What a Runner is doing now: the work holding its slots, and how many slots its replicas offer. */
|
|
2609
|
+
export declare const RunnerActivity: Schema.Struct<{
|
|
2610
|
+
readonly runnerId: Schema.String;
|
|
2611
|
+
readonly working: Schema.$Array<Schema.Struct<{
|
|
2612
|
+
readonly runId: Schema.String;
|
|
2613
|
+
/** Absent while the Run's orchestration, not one of its Steps, holds the slot. */
|
|
2614
|
+
readonly stepKey: Schema.optionalKey<Schema.String>;
|
|
2615
|
+
readonly task: Schema.optionalKey<Schema.Struct<{
|
|
2616
|
+
readonly id: Schema.String;
|
|
2617
|
+
readonly taskKey: Schema.String;
|
|
2618
|
+
readonly title: Schema.String;
|
|
2619
|
+
}>>;
|
|
2620
|
+
}>>;
|
|
2621
|
+
readonly capacitySlots: Schema.optionalKey<Schema.Int>;
|
|
2622
|
+
}>;
|
|
2623
|
+
export declare const RunnerActivityList: Schema.Struct<{
|
|
2624
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
2625
|
+
readonly runnerId: Schema.String;
|
|
2626
|
+
readonly working: Schema.$Array<Schema.Struct<{
|
|
2627
|
+
readonly runId: Schema.String;
|
|
2628
|
+
/** Absent while the Run's orchestration, not one of its Steps, holds the slot. */
|
|
2629
|
+
readonly stepKey: Schema.optionalKey<Schema.String>;
|
|
2630
|
+
readonly task: Schema.optionalKey<Schema.Struct<{
|
|
2631
|
+
readonly id: Schema.String;
|
|
2632
|
+
readonly taskKey: Schema.String;
|
|
2633
|
+
readonly title: Schema.String;
|
|
2634
|
+
}>>;
|
|
2635
|
+
}>>;
|
|
2636
|
+
readonly capacitySlots: Schema.optionalKey<Schema.Int>;
|
|
2637
|
+
}>>;
|
|
2638
|
+
}>;
|
|
2438
2639
|
export declare const RunnerEnvironmentMatchInput: Schema.Struct<{
|
|
2439
2640
|
readonly runnerId: Schema.String;
|
|
2440
2641
|
readonly agentEnvironment: Schema.Struct<{
|
|
@@ -2524,7 +2725,7 @@ export declare const RunnerEnvironmentMatchInput: Schema.Struct<{
|
|
|
2524
2725
|
readonly kitSha256: Schema.optionalKey<Schema.String>;
|
|
2525
2726
|
readonly kitActivationId: Schema.optionalKey<Schema.String>;
|
|
2526
2727
|
readonly kitActivationType: Schema.optionalKey<Schema.String>;
|
|
2527
|
-
readonly kind: Schema.Literal<"
|
|
2728
|
+
readonly kind: Schema.Literal<"team_kit">;
|
|
2528
2729
|
readonly kitId: Schema.String;
|
|
2529
2730
|
readonly provenance: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"explicit">, Schema.Literal<"workspace_default">, Schema.Literal<"workspace_mandatory">]>>;
|
|
2530
2731
|
readonly policyRevision: Schema.optionalKey<Schema.Int>;
|
|
@@ -2616,7 +2817,7 @@ export declare const RunnerEnvironmentMatchInput: Schema.Struct<{
|
|
|
2616
2817
|
readonly kitSha256: Schema.optionalKey<Schema.String>;
|
|
2617
2818
|
readonly kitActivationId: Schema.optionalKey<Schema.String>;
|
|
2618
2819
|
readonly kitActivationType: Schema.optionalKey<Schema.String>;
|
|
2619
|
-
readonly kind: Schema.Literal<"
|
|
2820
|
+
readonly kind: Schema.Literal<"team_kit">;
|
|
2620
2821
|
readonly kitId: Schema.String;
|
|
2621
2822
|
readonly provenance: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"explicit">, Schema.Literal<"workspace_default">, Schema.Literal<"workspace_mandatory">]>>;
|
|
2622
2823
|
readonly policyRevision: Schema.optionalKey<Schema.Int>;
|
|
@@ -2702,7 +2903,7 @@ export declare const RunnerEnvironmentMatchInput: Schema.Struct<{
|
|
|
2702
2903
|
readonly kitSha256: Schema.optionalKey<Schema.String>;
|
|
2703
2904
|
readonly kitActivationId: Schema.optionalKey<Schema.String>;
|
|
2704
2905
|
readonly kitActivationType: Schema.optionalKey<Schema.String>;
|
|
2705
|
-
readonly kind: Schema.Literal<"
|
|
2906
|
+
readonly kind: Schema.Literal<"team_kit">;
|
|
2706
2907
|
readonly kitId: Schema.String;
|
|
2707
2908
|
readonly provenance: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"explicit">, Schema.Literal<"workspace_default">, Schema.Literal<"workspace_mandatory">]>>;
|
|
2708
2909
|
readonly policyRevision: Schema.optionalKey<Schema.Int>;
|
|
@@ -2780,7 +2981,7 @@ export declare const RunnerEnvironmentMatchInput: Schema.Struct<{
|
|
|
2780
2981
|
readonly kitSha256: Schema.optionalKey<Schema.String>;
|
|
2781
2982
|
readonly kitActivationId: Schema.optionalKey<Schema.String>;
|
|
2782
2983
|
readonly kitActivationType: Schema.optionalKey<Schema.String>;
|
|
2783
|
-
readonly kind: Schema.Literal<"
|
|
2984
|
+
readonly kind: Schema.Literal<"team_kit">;
|
|
2784
2985
|
readonly kitId: Schema.String;
|
|
2785
2986
|
readonly provenance: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"explicit">, Schema.Literal<"workspace_default">, Schema.Literal<"workspace_mandatory">]>>;
|
|
2786
2987
|
readonly policyRevision: Schema.optionalKey<Schema.Int>;
|
|
@@ -2873,7 +3074,7 @@ export declare const RunnerEnvironmentMatchInput: Schema.Struct<{
|
|
|
2873
3074
|
readonly kitSha256: Schema.optionalKey<Schema.String>;
|
|
2874
3075
|
readonly kitActivationId: Schema.optionalKey<Schema.String>;
|
|
2875
3076
|
readonly kitActivationType: Schema.optionalKey<Schema.String>;
|
|
2876
|
-
readonly kind: Schema.Literal<"
|
|
3077
|
+
readonly kind: Schema.Literal<"team_kit">;
|
|
2877
3078
|
readonly kitId: Schema.String;
|
|
2878
3079
|
readonly provenance: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"explicit">, Schema.Literal<"workspace_default">, Schema.Literal<"workspace_mandatory">]>>;
|
|
2879
3080
|
readonly policyRevision: Schema.optionalKey<Schema.Int>;
|
|
@@ -2960,7 +3161,7 @@ export declare const RunnerEnvironmentMatchInput: Schema.Struct<{
|
|
|
2960
3161
|
readonly kitSha256: Schema.optionalKey<Schema.String>;
|
|
2961
3162
|
readonly kitActivationId: Schema.optionalKey<Schema.String>;
|
|
2962
3163
|
readonly kitActivationType: Schema.optionalKey<Schema.String>;
|
|
2963
|
-
readonly kind: Schema.Literal<"
|
|
3164
|
+
readonly kind: Schema.Literal<"team_kit">;
|
|
2964
3165
|
readonly kitId: Schema.String;
|
|
2965
3166
|
readonly provenance: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"explicit">, Schema.Literal<"workspace_default">, Schema.Literal<"workspace_mandatory">]>>;
|
|
2966
3167
|
readonly policyRevision: Schema.optionalKey<Schema.Int>;
|
|
@@ -3037,7 +3238,7 @@ export declare const RunnerEnvironmentMatchInput: Schema.Struct<{
|
|
|
3037
3238
|
readonly kitSha256: Schema.optionalKey<Schema.String>;
|
|
3038
3239
|
readonly kitActivationId: Schema.optionalKey<Schema.String>;
|
|
3039
3240
|
readonly kitActivationType: Schema.optionalKey<Schema.String>;
|
|
3040
|
-
readonly kind: Schema.Literal<"
|
|
3241
|
+
readonly kind: Schema.Literal<"team_kit">;
|
|
3041
3242
|
readonly kitId: Schema.String;
|
|
3042
3243
|
readonly provenance: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"explicit">, Schema.Literal<"workspace_default">, Schema.Literal<"workspace_mandatory">]>>;
|
|
3043
3244
|
readonly policyRevision: Schema.optionalKey<Schema.Int>;
|
|
@@ -3117,7 +3318,7 @@ export declare const RunnerEnvironmentMatchInput: Schema.Struct<{
|
|
|
3117
3318
|
readonly kitSha256: Schema.optionalKey<Schema.String>;
|
|
3118
3319
|
readonly kitActivationId: Schema.optionalKey<Schema.String>;
|
|
3119
3320
|
readonly kitActivationType: Schema.optionalKey<Schema.String>;
|
|
3120
|
-
readonly kind: Schema.Literal<"
|
|
3321
|
+
readonly kind: Schema.Literal<"team_kit">;
|
|
3121
3322
|
readonly kitId: Schema.String;
|
|
3122
3323
|
readonly provenance: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"explicit">, Schema.Literal<"workspace_default">, Schema.Literal<"workspace_mandatory">]>>;
|
|
3123
3324
|
readonly policyRevision: Schema.optionalKey<Schema.Int>;
|
|
@@ -3194,7 +3395,7 @@ export declare const RunnerEnvironmentMatchInput: Schema.Struct<{
|
|
|
3194
3395
|
readonly kitSha256: Schema.optionalKey<Schema.String>;
|
|
3195
3396
|
readonly kitActivationId: Schema.optionalKey<Schema.String>;
|
|
3196
3397
|
readonly kitActivationType: Schema.optionalKey<Schema.String>;
|
|
3197
|
-
readonly kind: Schema.Literal<"
|
|
3398
|
+
readonly kind: Schema.Literal<"team_kit">;
|
|
3198
3399
|
readonly kitId: Schema.String;
|
|
3199
3400
|
readonly provenance: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"explicit">, Schema.Literal<"workspace_default">, Schema.Literal<"workspace_mandatory">]>>;
|
|
3200
3401
|
readonly policyRevision: Schema.optionalKey<Schema.Int>;
|
|
@@ -3271,7 +3472,7 @@ export declare const RunnerEnvironmentMatchInput: Schema.Struct<{
|
|
|
3271
3472
|
readonly kitSha256: Schema.optionalKey<Schema.String>;
|
|
3272
3473
|
readonly kitActivationId: Schema.optionalKey<Schema.String>;
|
|
3273
3474
|
readonly kitActivationType: Schema.optionalKey<Schema.String>;
|
|
3274
|
-
readonly kind: Schema.Literal<"
|
|
3475
|
+
readonly kind: Schema.Literal<"team_kit">;
|
|
3275
3476
|
readonly kitId: Schema.String;
|
|
3276
3477
|
readonly provenance: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"explicit">, Schema.Literal<"workspace_default">, Schema.Literal<"workspace_mandatory">]>>;
|
|
3277
3478
|
readonly policyRevision: Schema.optionalKey<Schema.Int>;
|
|
@@ -3319,7 +3520,7 @@ export declare const RunnerLoopStepMatchInput: Schema.Struct<{
|
|
|
3319
3520
|
}>>;
|
|
3320
3521
|
readonly guards: Schema.$Array<Schema.Struct<{
|
|
3321
3522
|
readonly key: Schema.String;
|
|
3322
|
-
readonly source: Schema.Literals<readonly ["trigger_event", "task", "
|
|
3523
|
+
readonly source: Schema.Literals<readonly ["trigger_event", "task", "team", "proposal", "decision", "step_attempt", "change_request", "context_feedback", "run", "team_policy"]>;
|
|
3323
3524
|
readonly path: Schema.$Array<Schema.String>;
|
|
3324
3525
|
readonly operator: Schema.Literals<readonly ["equals", "not_equals", "in", "not_in", "exists", "not_exists"]>;
|
|
3325
3526
|
readonly value: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>;
|
|
@@ -3378,7 +3579,7 @@ export declare const RunnerLoopStepMatchInput: Schema.Struct<{
|
|
|
3378
3579
|
readonly kind: Schema.Literal<"human_approval">;
|
|
3379
3580
|
readonly prompt: Schema.String;
|
|
3380
3581
|
readonly approvalPolicy: Schema.Struct<{
|
|
3381
|
-
readonly mode: Schema.Literals<readonly ["auto_approve_low_risk", "
|
|
3582
|
+
readonly mode: Schema.Literals<readonly ["auto_approve_low_risk", "require_other_team_member", "require_workspace_owner_or_admin"]>;
|
|
3382
3583
|
readonly requireDifferentApprover: Schema.optionalKey<Schema.Boolean>;
|
|
3383
3584
|
readonly autonomousAgentApprovalAllowed: Schema.Literal<false>;
|
|
3384
3585
|
readonly deniedViolationCodes: Schema.$Array<Schema.Literals<readonly ["autonomous_self_approval", "self_capability_escalation", "missing_required_approval", "unsafe_payload", "target_conflict"]>>;
|
|
@@ -3490,7 +3691,7 @@ export declare const RunnerLoopStepMatchInput: Schema.Struct<{
|
|
|
3490
3691
|
readonly kind: Schema.Literal<"human_approval">;
|
|
3491
3692
|
readonly prompt: Schema.String;
|
|
3492
3693
|
readonly approvalPolicy: Schema.Struct<{
|
|
3493
|
-
readonly mode: Schema.Literals<readonly ["auto_approve_low_risk", "
|
|
3694
|
+
readonly mode: Schema.Literals<readonly ["auto_approve_low_risk", "require_other_team_member", "require_workspace_owner_or_admin"]>;
|
|
3494
3695
|
readonly requireDifferentApprover: Schema.optionalKey<Schema.Boolean>;
|
|
3495
3696
|
readonly autonomousAgentApprovalAllowed: Schema.Literal<false>;
|
|
3496
3697
|
readonly deniedViolationCodes: Schema.$Array<Schema.Literals<readonly ["autonomous_self_approval", "self_capability_escalation", "missing_required_approval", "unsafe_payload", "target_conflict"]>>;
|
|
@@ -3636,9 +3837,9 @@ export declare const RunnerLoopStepMatchInput: Schema.Struct<{
|
|
|
3636
3837
|
readonly required: Schema.optionalKey<Schema.Boolean>;
|
|
3637
3838
|
}>>;
|
|
3638
3839
|
readonly allowedCapabilities: Schema.$Array<Schema.Struct<{
|
|
3639
|
-
readonly capability: Schema.Literals<readonly ["read_task", "read_repo_binding", "read_agent_environment", "read_kit", "update_task_status", "read_change_request", "read_change_request_review", "read_task_link", "refresh_change_request_metadata", "record_change_request_review", "record_session_update", "create_task_link", "create_task_dependency", "create_task_asset", "create_follow_up_task", "execute_agent", "read_step_attempt", "record_task_thread_entry", "write_provider_repository", "write_provider_change_request", "publish_provider_check", "write_provider_comment", "request_provider_changes", "approve_provider_change_request", "merge_provider_change_request", "wait_for_event", "request_human_approval", "execute_package_ref", "read_context_feedback", "read_session_update", "read_repo_binding", "read_agent_environment", "read_kit", "read_memory", "read_decision", "create_task_dependency", "propose_memory", "propose_kit", "propose_decision", "propose_agent_environment_policy", "
|
|
3840
|
+
readonly capability: Schema.Literals<readonly ["read_task", "read_repo_binding", "read_agent_environment", "read_kit", "update_task_status", "read_change_request", "read_change_request_review", "read_task_link", "refresh_change_request_metadata", "record_change_request_review", "record_session_update", "create_task_link", "create_task_dependency", "create_task_asset", "create_follow_up_task", "execute_agent", "read_step_attempt", "record_task_thread_entry", "write_provider_repository", "write_provider_change_request", "publish_provider_check", "write_provider_comment", "request_provider_changes", "approve_provider_change_request", "merge_provider_change_request", "wait_for_event", "request_human_approval", "execute_package_ref", "read_context_feedback", "read_session_update", "read_repo_binding", "read_agent_environment", "read_kit", "read_memory", "read_decision", "create_task_dependency", "propose_memory", "propose_kit", "propose_decision", "propose_agent_environment_policy", "propose_team_context", "propose_context_relevance", "execute_runner_sandbox"]>;
|
|
3640
3841
|
readonly scope: Schema.optionalKey<Schema.Struct<{
|
|
3641
|
-
readonly kind: Schema.Literals<readonly ["workspace", "
|
|
3842
|
+
readonly kind: Schema.Literals<readonly ["workspace", "team", "task", "change_request", "step_attempt", "run", "repo_binding", "provider_host"]>;
|
|
3642
3843
|
readonly id: Schema.optionalKey<Schema.String>;
|
|
3643
3844
|
readonly idRef: Schema.optionalKey<Schema.String>;
|
|
3644
3845
|
readonly value: Schema.optionalKey<Schema.String>;
|
|
@@ -3664,13 +3865,14 @@ export declare const RunnerLoopStepMatch: Schema.Struct<{
|
|
|
3664
3865
|
}>;
|
|
3665
3866
|
export type RunnerOwnership = (typeof RunnerOwnership)['Type'];
|
|
3666
3867
|
export type RunnerUpdate = (typeof RunnerUpdate)['Type'];
|
|
3868
|
+
export type RunnerUpdateRequested = (typeof RunnerUpdateRequested)['Type'];
|
|
3667
3869
|
export type RunnerRemoveResult = (typeof RunnerRemoveResult)['Type'];
|
|
3668
|
-
export type
|
|
3669
|
-
export type
|
|
3870
|
+
export type RunnerTeamGrant = (typeof RunnerTeamGrant)['Type'];
|
|
3871
|
+
export type RunnerTeamGrantCreate = (typeof RunnerTeamGrantCreate)['Type'];
|
|
3670
3872
|
export type RunnerRescope = (typeof RunnerRescope)['Type'];
|
|
3671
3873
|
export type RunnerDefaultHarnessInput = (typeof RunnerDefaultHarnessInput)['Type'];
|
|
3672
|
-
export type
|
|
3673
|
-
export type
|
|
3874
|
+
export type RunnerTeamGrantList = (typeof RunnerTeamGrantList)['Type'];
|
|
3875
|
+
export type RunnerTeamGrantDeleteResult = (typeof RunnerTeamGrantDeleteResult)['Type'];
|
|
3674
3876
|
export type RunnerExecutionBackend = (typeof RunnerExecutionBackend)['Type'];
|
|
3675
3877
|
export type RunnerLoopExecutionCapability = (typeof RunnerLoopExecutionCapability)['Type'];
|
|
3676
3878
|
export type RunnerCapabilities = (typeof RunnerCapabilities)['Type'];
|
|
@@ -3694,6 +3896,11 @@ export type RunnerCreate = (typeof RunnerCreate)['Type'];
|
|
|
3694
3896
|
export type RunnerCredentialProvisionInput = (typeof RunnerCredentialProvisionInput)['Type'];
|
|
3695
3897
|
export type RunnerRegistrationResult = (typeof RunnerRegistrationResult)['Type'];
|
|
3696
3898
|
export type RunnerHeartbeatInput = (typeof RunnerHeartbeatInput)['Type'];
|
|
3899
|
+
export type RunnerProblemCode = (typeof RunnerProblemCodes)[number];
|
|
3900
|
+
export type RunnerProblemReport = (typeof RunnerProblemReport)['Type'];
|
|
3901
|
+
export type RunnerProblem = (typeof RunnerProblem)['Type'];
|
|
3902
|
+
export type RunnerState = (typeof RunnerState)['Type'];
|
|
3903
|
+
export type RunnerCredentialStatus = (typeof RunnerCredentialStatus)['Type'];
|
|
3697
3904
|
export type RunnerCapabilitiesUpdate = (typeof RunnerCapabilitiesUpdate)['Type'];
|
|
3698
3905
|
export type RunnerWorkUnitWarmStart = (typeof RunnerWorkUnitWarmStart)['Type'];
|
|
3699
3906
|
export type RunnerWorkUnitData = (typeof RunnerWorkUnitData)['Type'];
|
|
@@ -3718,23 +3925,25 @@ export type RunnerFlightDeckLiveSnapshot = (typeof RunnerFlightDeckLiveSnapshot)
|
|
|
3718
3925
|
export type RunnerControlCommandListInput = (typeof RunnerControlCommandListInput)['Type'];
|
|
3719
3926
|
export type RunnerControlCommandList = (typeof ControlCommandList)['Type'];
|
|
3720
3927
|
export type RunnerStepAttemptListInput = (typeof RunnerStepAttemptListInput)['Type'];
|
|
3721
|
-
export type
|
|
3928
|
+
export type RunnerTeamStepAttemptListInput = (typeof RunnerTeamStepAttemptListInput)['Type'];
|
|
3722
3929
|
export type RunnerStepAttemptClaimInput = (typeof RunnerStepAttemptClaimInput)['Type'];
|
|
3723
3930
|
export type RunnerStepAttemptHeartbeat = (typeof RunnerStepAttemptHeartbeat)['Type'];
|
|
3724
3931
|
export type RunnerStepAttemptCompletion = (typeof RunnerStepAttemptCompletion)['Type'];
|
|
3725
3932
|
export type RunnerStepAttemptFailure = (typeof RunnerStepAttemptFailure)['Type'];
|
|
3726
3933
|
export type RunnerList = (typeof RunnerList)['Type'];
|
|
3934
|
+
export type RunnerActivityList = (typeof RunnerActivityList)['Type'];
|
|
3935
|
+
export type RunnerActivity = (typeof RunnerActivity)['Type'];
|
|
3727
3936
|
export type RunnerEnvironmentMatchInput = (typeof RunnerEnvironmentMatchInput)['Type'];
|
|
3728
3937
|
export type RunnerEnvironmentMatch = (typeof RunnerEnvironmentMatch)['Type'];
|
|
3729
3938
|
export type RunnerLoopStepMatchInput = (typeof RunnerLoopStepMatchInput)['Type'];
|
|
3730
3939
|
export type RunnerLoopStepMatch = (typeof RunnerLoopStepMatch)['Type'];
|
|
3731
|
-
/** Whether the Runner reaches only the
|
|
3732
|
-
export declare const
|
|
3940
|
+
/** Whether the Runner reaches only the Teams granted to it. */
|
|
3941
|
+
export declare const servesSelectedTeams: (ownership: RunnerOwnership) => boolean;
|
|
3733
3942
|
export declare function runnerOwnershipFromStorage(input: {
|
|
3734
3943
|
readonly scopeKind?: string | null;
|
|
3735
|
-
readonly
|
|
3944
|
+
readonly scopeTeamId?: string | null;
|
|
3736
3945
|
readonly ownerUserId?: string | null;
|
|
3737
|
-
readonly
|
|
3946
|
+
readonly teamAccessMode?: string | null;
|
|
3738
3947
|
}): RunnerOwnership;
|
|
3739
3948
|
export declare function findForbiddenRunnerCapabilitiesPath<ValueType>(value: ValueType): string | undefined;
|
|
3740
3949
|
export declare function matchRunnerReplicaForWork(input: {
|
|
@@ -3774,3 +3983,22 @@ export declare function buildRunnerFlightDeck(input: {
|
|
|
3774
3983
|
readonly runnerLimit?: number;
|
|
3775
3984
|
readonly hasMoreRunners?: boolean;
|
|
3776
3985
|
}): RunnerFlightDeck;
|
|
3986
|
+
/** Needs attention while any Runner Problem is open; otherwise online, or offline since its last heartbeat. */
|
|
3987
|
+
export declare function runnerState(runner: {
|
|
3988
|
+
readonly lastHeartbeatAt?: string;
|
|
3989
|
+
readonly problems: readonly RunnerProblem[];
|
|
3990
|
+
}, now: Date, staleAfterSeconds?: number): RunnerState;
|
|
3991
|
+
/**
|
|
3992
|
+
* The update a Runner is due, when it reports a version other than the one its control plane serves: `automatic` is
|
|
3993
|
+
* signalled to it, `manual` waits for a person's "Update now", and a `container` Runner is never updated in place.
|
|
3994
|
+
*/
|
|
3995
|
+
export declare function runnerUpdate(runner: Pick<Runner, 'version' | 'latestVersion' | 'container' | 'automaticUpdates'>): {
|
|
3996
|
+
readonly from: string;
|
|
3997
|
+
readonly version: string;
|
|
3998
|
+
readonly how: 'automatic' | 'manual' | 'container';
|
|
3999
|
+
} | undefined;
|
|
4000
|
+
/** `host` is the status of the host the Runner's credential was provisioned on; none until it is provisioned. */
|
|
4001
|
+
export declare function runnerCredentialStatus(credential: {
|
|
4002
|
+
readonly identity: string;
|
|
4003
|
+
readonly host?: string;
|
|
4004
|
+
}): RunnerCredentialStatus;
|