@kitman-sh/sdk 0.7.4 → 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-p8v1smcg.js → chunk-160ww64c.js} +668 -185
- package/dist/{chunk-7jc5y0mj.js → chunk-36jhc745.js} +285 -83
- 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 +10 -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 +694 -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 +488 -86
- 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 +238 -40
- 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 +97 -31
- 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 +12 -0
- package/types/packages/core/src/run-file.d.ts +190 -0
- package/types/packages/core/src/run-graph.d.ts +67 -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 +597 -241
- 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
|
@@ -13,7 +13,7 @@ export declare const WorkUnitLeaseProjection: Schema.Struct<{
|
|
|
13
13
|
/** Frozen repository metadata required for local materialization; credential references stay server-side. */
|
|
14
14
|
export declare const WorkUnitRepoBinding: Schema.Struct<{
|
|
15
15
|
readonly id: Schema.String;
|
|
16
|
-
readonly provider: Schema.
|
|
16
|
+
readonly provider: Schema.Literals<readonly ["github", "gitlab", "forgejo", "gitea", "gitee", "bitbucket", "azure-devops", "generic_git"]>;
|
|
17
17
|
readonly host: Schema.String;
|
|
18
18
|
readonly owner: Schema.String;
|
|
19
19
|
readonly name: Schema.String;
|
|
@@ -37,7 +37,7 @@ export declare const LoopCheckout: Schema.Union<readonly [Schema.Literal<"none">
|
|
|
37
37
|
export declare const AgentStepWorkUnit: Schema.Struct<{
|
|
38
38
|
readonly kind: Schema.Literal<"agent_step">;
|
|
39
39
|
readonly id: Schema.String;
|
|
40
|
-
readonly
|
|
40
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
41
41
|
readonly runId: Schema.String;
|
|
42
42
|
readonly stepKey: Schema.String;
|
|
43
43
|
readonly attempt: Schema.Int;
|
|
@@ -73,7 +73,7 @@ export declare const AgentStepWorkUnit: Schema.Struct<{
|
|
|
73
73
|
readonly checkout: Schema.Union<readonly [Schema.Literal<"none">, Schema.Literal<"read">, Schema.Literal<"write">]>;
|
|
74
74
|
readonly repoBinding: Schema.optionalKey<Schema.Struct<{
|
|
75
75
|
readonly id: Schema.String;
|
|
76
|
-
readonly provider: Schema.
|
|
76
|
+
readonly provider: Schema.Literals<readonly ["github", "gitlab", "forgejo", "gitea", "gitee", "bitbucket", "azure-devops", "generic_git"]>;
|
|
77
77
|
readonly host: Schema.String;
|
|
78
78
|
readonly owner: Schema.String;
|
|
79
79
|
readonly name: Schema.String;
|
|
@@ -97,6 +97,7 @@ export declare const AgentStepWorkUnit: Schema.Struct<{
|
|
|
97
97
|
readonly secrets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
98
98
|
/** Where the Run's first Step started; a boundary's change is the Run's whole change from there. */
|
|
99
99
|
readonly runBaseRevision: Schema.optionalKey<Schema.String>;
|
|
100
|
+
readonly storageOrigin: Schema.optionalKey<Schema.String>;
|
|
100
101
|
}>;
|
|
101
102
|
/** Encoded Exits by Activity `name/attempt` and by deferred name. */
|
|
102
103
|
export declare const RunJournal: Schema.Struct<{
|
|
@@ -107,7 +108,7 @@ export declare const RunJournal: Schema.Struct<{
|
|
|
107
108
|
export declare const OrchestrationWorkUnit: Schema.Struct<{
|
|
108
109
|
readonly kind: Schema.Literal<"orchestration">;
|
|
109
110
|
readonly id: Schema.String;
|
|
110
|
-
readonly
|
|
111
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
111
112
|
readonly runId: Schema.String;
|
|
112
113
|
readonly loopDigest: Schema.String;
|
|
113
114
|
readonly input: Schema.Unknown;
|
|
@@ -131,6 +132,7 @@ export declare const OrchestrationWorkUnit: Schema.Struct<{
|
|
|
131
132
|
readonly network: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
132
133
|
readonly hosts: Schema.$Array<Schema.String>;
|
|
133
134
|
}>, Schema.Literal<"open">]>>;
|
|
135
|
+
readonly storageOrigin: Schema.optionalKey<Schema.String>;
|
|
134
136
|
/** The Runner spawns the Run's bundle with this Loop id and credential. */
|
|
135
137
|
readonly program: Schema.Struct<{
|
|
136
138
|
readonly loopId: Schema.String;
|
|
@@ -141,7 +143,7 @@ export declare const OrchestrationWorkUnit: Schema.Struct<{
|
|
|
141
143
|
export declare const ProgramWorkUnit: Schema.Struct<{
|
|
142
144
|
readonly kind: Schema.Literal<"orchestration">;
|
|
143
145
|
readonly id: Schema.String;
|
|
144
|
-
readonly
|
|
146
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
145
147
|
readonly runId: Schema.String;
|
|
146
148
|
readonly loopDigest: Schema.String;
|
|
147
149
|
readonly input: Schema.Unknown;
|
|
@@ -163,6 +165,7 @@ export declare const ProgramWorkUnit: Schema.Struct<{
|
|
|
163
165
|
readonly network: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
164
166
|
readonly hosts: Schema.$Array<Schema.String>;
|
|
165
167
|
}>, Schema.Literal<"open">]>>;
|
|
168
|
+
readonly storageOrigin: Schema.optionalKey<Schema.String>;
|
|
166
169
|
}>;
|
|
167
170
|
export type ProgramWorkUnit = (typeof ProgramWorkUnit)['Type'];
|
|
168
171
|
/** An approved verification as Kitman holds it for a RepoBinding; never read from the branch. */
|
|
@@ -175,7 +178,7 @@ export declare const ApprovedCheck: Schema.Struct<{
|
|
|
175
178
|
export declare const VerificationWorkUnit: Schema.Struct<{
|
|
176
179
|
readonly kind: Schema.Literal<"verification">;
|
|
177
180
|
readonly id: Schema.String;
|
|
178
|
-
readonly
|
|
181
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
179
182
|
readonly runId: Schema.String;
|
|
180
183
|
readonly stepKey: Schema.String;
|
|
181
184
|
readonly lease: Schema.Struct<{
|
|
@@ -190,7 +193,7 @@ export declare const VerificationWorkUnit: Schema.Struct<{
|
|
|
190
193
|
}>;
|
|
191
194
|
readonly repoBinding: Schema.Struct<{
|
|
192
195
|
readonly id: Schema.String;
|
|
193
|
-
readonly provider: Schema.
|
|
196
|
+
readonly provider: Schema.Literals<readonly ["github", "gitlab", "forgejo", "gitea", "gitee", "bitbucket", "azure-devops", "generic_git"]>;
|
|
194
197
|
readonly host: Schema.String;
|
|
195
198
|
readonly owner: Schema.String;
|
|
196
199
|
readonly name: Schema.String;
|
|
@@ -206,11 +209,12 @@ export declare const VerificationWorkUnit: Schema.Struct<{
|
|
|
206
209
|
readonly command: Schema.String;
|
|
207
210
|
readonly workingDirectory: Schema.optionalKey<Schema.String>;
|
|
208
211
|
}>>;
|
|
212
|
+
readonly storageOrigin: Schema.optionalKey<Schema.String>;
|
|
209
213
|
}>;
|
|
210
214
|
export declare const WorkUnit: Schema.Union<readonly [Schema.Struct<{
|
|
211
215
|
readonly kind: Schema.Literal<"orchestration">;
|
|
212
216
|
readonly id: Schema.String;
|
|
213
|
-
readonly
|
|
217
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
214
218
|
readonly runId: Schema.String;
|
|
215
219
|
readonly loopDigest: Schema.String;
|
|
216
220
|
readonly input: Schema.Unknown;
|
|
@@ -234,6 +238,7 @@ export declare const WorkUnit: Schema.Union<readonly [Schema.Struct<{
|
|
|
234
238
|
readonly network: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
235
239
|
readonly hosts: Schema.$Array<Schema.String>;
|
|
236
240
|
}>, Schema.Literal<"open">]>>;
|
|
241
|
+
readonly storageOrigin: Schema.optionalKey<Schema.String>;
|
|
237
242
|
/** The Runner spawns the Run's bundle with this Loop id and credential. */
|
|
238
243
|
readonly program: Schema.Struct<{
|
|
239
244
|
readonly loopId: Schema.String;
|
|
@@ -242,7 +247,7 @@ export declare const WorkUnit: Schema.Union<readonly [Schema.Struct<{
|
|
|
242
247
|
}>, Schema.Struct<{
|
|
243
248
|
readonly kind: Schema.Literal<"agent_step">;
|
|
244
249
|
readonly id: Schema.String;
|
|
245
|
-
readonly
|
|
250
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
246
251
|
readonly runId: Schema.String;
|
|
247
252
|
readonly stepKey: Schema.String;
|
|
248
253
|
readonly attempt: Schema.Int;
|
|
@@ -278,7 +283,7 @@ export declare const WorkUnit: Schema.Union<readonly [Schema.Struct<{
|
|
|
278
283
|
readonly checkout: Schema.Union<readonly [Schema.Literal<"none">, Schema.Literal<"read">, Schema.Literal<"write">]>;
|
|
279
284
|
readonly repoBinding: Schema.optionalKey<Schema.Struct<{
|
|
280
285
|
readonly id: Schema.String;
|
|
281
|
-
readonly provider: Schema.
|
|
286
|
+
readonly provider: Schema.Literals<readonly ["github", "gitlab", "forgejo", "gitea", "gitee", "bitbucket", "azure-devops", "generic_git"]>;
|
|
282
287
|
readonly host: Schema.String;
|
|
283
288
|
readonly owner: Schema.String;
|
|
284
289
|
readonly name: Schema.String;
|
|
@@ -302,10 +307,11 @@ export declare const WorkUnit: Schema.Union<readonly [Schema.Struct<{
|
|
|
302
307
|
readonly secrets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
303
308
|
/** Where the Run's first Step started; a boundary's change is the Run's whole change from there. */
|
|
304
309
|
readonly runBaseRevision: Schema.optionalKey<Schema.String>;
|
|
310
|
+
readonly storageOrigin: Schema.optionalKey<Schema.String>;
|
|
305
311
|
}>, Schema.Struct<{
|
|
306
312
|
readonly kind: Schema.Literal<"verification">;
|
|
307
313
|
readonly id: Schema.String;
|
|
308
|
-
readonly
|
|
314
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
309
315
|
readonly runId: Schema.String;
|
|
310
316
|
readonly stepKey: Schema.String;
|
|
311
317
|
readonly lease: Schema.Struct<{
|
|
@@ -320,7 +326,7 @@ export declare const WorkUnit: Schema.Union<readonly [Schema.Struct<{
|
|
|
320
326
|
}>;
|
|
321
327
|
readonly repoBinding: Schema.Struct<{
|
|
322
328
|
readonly id: Schema.String;
|
|
323
|
-
readonly provider: Schema.
|
|
329
|
+
readonly provider: Schema.Literals<readonly ["github", "gitlab", "forgejo", "gitea", "gitee", "bitbucket", "azure-devops", "generic_git"]>;
|
|
324
330
|
readonly host: Schema.String;
|
|
325
331
|
readonly owner: Schema.String;
|
|
326
332
|
readonly name: Schema.String;
|
|
@@ -336,12 +342,13 @@ export declare const WorkUnit: Schema.Union<readonly [Schema.Struct<{
|
|
|
336
342
|
readonly command: Schema.String;
|
|
337
343
|
readonly workingDirectory: Schema.optionalKey<Schema.String>;
|
|
338
344
|
}>>;
|
|
345
|
+
readonly storageOrigin: Schema.optionalKey<Schema.String>;
|
|
339
346
|
}>]>;
|
|
340
347
|
export declare const WorkUnitClaimResult: Schema.Struct<{
|
|
341
348
|
readonly workUnit: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
342
349
|
readonly kind: Schema.Literal<"orchestration">;
|
|
343
350
|
readonly id: Schema.String;
|
|
344
|
-
readonly
|
|
351
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
345
352
|
readonly runId: Schema.String;
|
|
346
353
|
readonly loopDigest: Schema.String;
|
|
347
354
|
readonly input: Schema.Unknown;
|
|
@@ -365,6 +372,7 @@ export declare const WorkUnitClaimResult: Schema.Struct<{
|
|
|
365
372
|
readonly network: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
366
373
|
readonly hosts: Schema.$Array<Schema.String>;
|
|
367
374
|
}>, Schema.Literal<"open">]>>;
|
|
375
|
+
readonly storageOrigin: Schema.optionalKey<Schema.String>;
|
|
368
376
|
/** The Runner spawns the Run's bundle with this Loop id and credential. */
|
|
369
377
|
readonly program: Schema.Struct<{
|
|
370
378
|
readonly loopId: Schema.String;
|
|
@@ -373,7 +381,7 @@ export declare const WorkUnitClaimResult: Schema.Struct<{
|
|
|
373
381
|
}>, Schema.Struct<{
|
|
374
382
|
readonly kind: Schema.Literal<"agent_step">;
|
|
375
383
|
readonly id: Schema.String;
|
|
376
|
-
readonly
|
|
384
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
377
385
|
readonly runId: Schema.String;
|
|
378
386
|
readonly stepKey: Schema.String;
|
|
379
387
|
readonly attempt: Schema.Int;
|
|
@@ -409,7 +417,7 @@ export declare const WorkUnitClaimResult: Schema.Struct<{
|
|
|
409
417
|
readonly checkout: Schema.Union<readonly [Schema.Literal<"none">, Schema.Literal<"read">, Schema.Literal<"write">]>;
|
|
410
418
|
readonly repoBinding: Schema.optionalKey<Schema.Struct<{
|
|
411
419
|
readonly id: Schema.String;
|
|
412
|
-
readonly provider: Schema.
|
|
420
|
+
readonly provider: Schema.Literals<readonly ["github", "gitlab", "forgejo", "gitea", "gitee", "bitbucket", "azure-devops", "generic_git"]>;
|
|
413
421
|
readonly host: Schema.String;
|
|
414
422
|
readonly owner: Schema.String;
|
|
415
423
|
readonly name: Schema.String;
|
|
@@ -433,10 +441,11 @@ export declare const WorkUnitClaimResult: Schema.Struct<{
|
|
|
433
441
|
readonly secrets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
434
442
|
/** Where the Run's first Step started; a boundary's change is the Run's whole change from there. */
|
|
435
443
|
readonly runBaseRevision: Schema.optionalKey<Schema.String>;
|
|
444
|
+
readonly storageOrigin: Schema.optionalKey<Schema.String>;
|
|
436
445
|
}>, Schema.Struct<{
|
|
437
446
|
readonly kind: Schema.Literal<"verification">;
|
|
438
447
|
readonly id: Schema.String;
|
|
439
|
-
readonly
|
|
448
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
440
449
|
readonly runId: Schema.String;
|
|
441
450
|
readonly stepKey: Schema.String;
|
|
442
451
|
readonly lease: Schema.Struct<{
|
|
@@ -451,7 +460,7 @@ export declare const WorkUnitClaimResult: Schema.Struct<{
|
|
|
451
460
|
}>;
|
|
452
461
|
readonly repoBinding: Schema.Struct<{
|
|
453
462
|
readonly id: Schema.String;
|
|
454
|
-
readonly provider: Schema.
|
|
463
|
+
readonly provider: Schema.Literals<readonly ["github", "gitlab", "forgejo", "gitea", "gitee", "bitbucket", "azure-devops", "generic_git"]>;
|
|
455
464
|
readonly host: Schema.String;
|
|
456
465
|
readonly owner: Schema.String;
|
|
457
466
|
readonly name: Schema.String;
|
|
@@ -467,12 +476,13 @@ export declare const WorkUnitClaimResult: Schema.Struct<{
|
|
|
467
476
|
readonly command: Schema.String;
|
|
468
477
|
readonly workingDirectory: Schema.optionalKey<Schema.String>;
|
|
469
478
|
}>>;
|
|
479
|
+
readonly storageOrigin: Schema.optionalKey<Schema.String>;
|
|
470
480
|
}>]>>;
|
|
471
481
|
}>;
|
|
472
482
|
/** Runner-supplied lease identity for an immediate claim. */
|
|
473
483
|
export declare const WorkUnitClaimInput: Schema.Struct<{
|
|
474
484
|
/** Optional only for the Runner control plane; it selects eligible work server-side. */
|
|
475
|
-
readonly
|
|
485
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
476
486
|
readonly runnerReplicaId: Schema.String;
|
|
477
487
|
readonly capacitySlot: Schema.String;
|
|
478
488
|
readonly idempotencyKey: Schema.String;
|
|
@@ -518,6 +528,8 @@ export declare const CheckEvidence: Schema.Struct<{
|
|
|
518
528
|
readonly durationMs: Schema.Int;
|
|
519
529
|
/** The end of the output, with credentials redacted. */
|
|
520
530
|
readonly outputTail: Schema.String;
|
|
531
|
+
/** The Run Files the check kept: its log and what it left in `KITMAN_RUN_FILES_DIR`. */
|
|
532
|
+
readonly fileIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
521
533
|
}>;
|
|
522
534
|
/** Checks run at one revision; `tree` is the revision's git tree id. Checks the tree already had are left out. */
|
|
523
535
|
export declare const TreeEvidence: Schema.Struct<{
|
|
@@ -531,6 +543,8 @@ export declare const TreeEvidence: Schema.Struct<{
|
|
|
531
543
|
readonly durationMs: Schema.Int;
|
|
532
544
|
/** The end of the output, with credentials redacted. */
|
|
533
545
|
readonly outputTail: Schema.String;
|
|
546
|
+
/** The Run Files the check kept: its log and what it left in `KITMAN_RUN_FILES_DIR`. */
|
|
547
|
+
readonly fileIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
534
548
|
}>>;
|
|
535
549
|
}>;
|
|
536
550
|
export declare const VerificationEvidence: Schema.Struct<{
|
|
@@ -545,6 +559,8 @@ export declare const VerificationEvidence: Schema.Struct<{
|
|
|
545
559
|
readonly durationMs: Schema.Int;
|
|
546
560
|
/** The end of the output, with credentials redacted. */
|
|
547
561
|
readonly outputTail: Schema.String;
|
|
562
|
+
/** The Run Files the check kept: its log and what it left in `KITMAN_RUN_FILES_DIR`. */
|
|
563
|
+
readonly fileIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
548
564
|
}>>;
|
|
549
565
|
}>;
|
|
550
566
|
readonly baseline: Schema.optionalKey<Schema.Struct<{
|
|
@@ -558,6 +574,8 @@ export declare const VerificationEvidence: Schema.Struct<{
|
|
|
558
574
|
readonly durationMs: Schema.Int;
|
|
559
575
|
/** The end of the output, with credentials redacted. */
|
|
560
576
|
readonly outputTail: Schema.String;
|
|
577
|
+
/** The Run Files the check kept: its log and what it left in `KITMAN_RUN_FILES_DIR`. */
|
|
578
|
+
readonly fileIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
561
579
|
}>>;
|
|
562
580
|
}>>;
|
|
563
581
|
}>;
|
|
@@ -611,6 +629,8 @@ export declare const WorkUnitOutcome: Schema.Struct<{
|
|
|
611
629
|
readonly durationMs: Schema.Int;
|
|
612
630
|
/** The end of the output, with credentials redacted. */
|
|
613
631
|
readonly outputTail: Schema.String;
|
|
632
|
+
/** The Run Files the check kept: its log and what it left in `KITMAN_RUN_FILES_DIR`. */
|
|
633
|
+
readonly fileIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
614
634
|
}>>;
|
|
615
635
|
}>;
|
|
616
636
|
readonly baseline: Schema.optionalKey<Schema.Struct<{
|
|
@@ -624,6 +644,8 @@ export declare const WorkUnitOutcome: Schema.Struct<{
|
|
|
624
644
|
readonly durationMs: Schema.Int;
|
|
625
645
|
/** The end of the output, with credentials redacted. */
|
|
626
646
|
readonly outputTail: Schema.String;
|
|
647
|
+
/** The Run Files the check kept: its log and what it left in `KITMAN_RUN_FILES_DIR`. */
|
|
648
|
+
readonly fileIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
627
649
|
}>>;
|
|
628
650
|
}>>;
|
|
629
651
|
}>>;
|
|
@@ -688,6 +710,8 @@ export declare const WorkUnitCompletion: Schema.Struct<{
|
|
|
688
710
|
readonly durationMs: Schema.Int;
|
|
689
711
|
/** The end of the output, with credentials redacted. */
|
|
690
712
|
readonly outputTail: Schema.String;
|
|
713
|
+
/** The Run Files the check kept: its log and what it left in `KITMAN_RUN_FILES_DIR`. */
|
|
714
|
+
readonly fileIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
691
715
|
}>>;
|
|
692
716
|
}>;
|
|
693
717
|
readonly baseline: Schema.optionalKey<Schema.Struct<{
|
|
@@ -701,6 +725,8 @@ export declare const WorkUnitCompletion: Schema.Struct<{
|
|
|
701
725
|
readonly durationMs: Schema.Int;
|
|
702
726
|
/** The end of the output, with credentials redacted. */
|
|
703
727
|
readonly outputTail: Schema.String;
|
|
728
|
+
/** The Run Files the check kept: its log and what it left in `KITMAN_RUN_FILES_DIR`. */
|
|
729
|
+
readonly fileIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
704
730
|
}>>;
|
|
705
731
|
}>>;
|
|
706
732
|
}>>;
|
|
@@ -43,13 +43,12 @@ export declare const WorkspaceList: Schema.Struct<{
|
|
|
43
43
|
readonly updatedAt: Schema.String;
|
|
44
44
|
}>>;
|
|
45
45
|
}>;
|
|
46
|
-
/** What a Workspace has set up, each part read from the rows that exist;
|
|
46
|
+
/** What a Workspace has set up, each part read from the rows that exist; onboarding stores only when it was seen. */
|
|
47
47
|
export declare const WorkspaceSetup: Schema.Struct<{
|
|
48
|
-
readonly
|
|
48
|
+
readonly forgeConnected: Schema.Boolean;
|
|
49
49
|
/** The first repository bound in the Workspace; a first Research Run reads it. */
|
|
50
50
|
readonly firstRepoBinding: Schema.NullOr<Schema.Struct<{
|
|
51
51
|
readonly id: Schema.String;
|
|
52
|
-
readonly projectId: Schema.String;
|
|
53
52
|
readonly owner: Schema.String;
|
|
54
53
|
readonly name: Schema.String;
|
|
55
54
|
}>>;
|
|
@@ -60,9 +59,12 @@ export declare const WorkspaceSetup: Schema.Struct<{
|
|
|
60
59
|
readonly harnesses: Schema.$Array<Schema.String>;
|
|
61
60
|
readonly missing: Schema.$Array<Schema.String>;
|
|
62
61
|
}>;
|
|
63
|
-
|
|
64
|
-
readonly
|
|
65
|
-
/** The
|
|
62
|
+
/** Someone besides the caller is a member; a pending invitation is not one. */
|
|
63
|
+
readonly secondMember: Schema.Boolean;
|
|
64
|
+
/** The caller requested a Run on a Task. */
|
|
65
|
+
readonly taskRun: Schema.Boolean;
|
|
66
|
+
readonly onboardingSeenAt: Schema.NullOr<Schema.String>;
|
|
67
|
+
/** The forges this deployment connects in one click. */
|
|
66
68
|
readonly oneClickConnect: Schema.Struct<{
|
|
67
69
|
readonly github: Schema.Boolean;
|
|
68
70
|
readonly gitlab: Schema.Boolean;
|
|
@@ -70,12 +72,57 @@ export declare const WorkspaceSetup: Schema.Struct<{
|
|
|
70
72
|
}>;
|
|
71
73
|
/** A minted Pairing Code and the one command that pairs a machine with it. */
|
|
72
74
|
export declare const PairingCode: Schema.Struct<{
|
|
75
|
+
readonly id: Schema.String;
|
|
73
76
|
readonly code: Schema.String;
|
|
74
77
|
readonly expiresAt: Schema.String;
|
|
75
78
|
readonly command: Schema.String;
|
|
76
79
|
}>;
|
|
80
|
+
/** Whether the machine has redeemed a Pairing Code yet. */
|
|
81
|
+
export declare const PairingStatus: Schema.Union<readonly [Schema.Struct<{
|
|
82
|
+
readonly state: Schema.Literals<readonly ["waiting", "expired"]>;
|
|
83
|
+
}>, Schema.Struct<{
|
|
84
|
+
readonly state: Schema.Literal<"redeemed">;
|
|
85
|
+
readonly redeemedAt: Schema.String;
|
|
86
|
+
}>]>;
|
|
87
|
+
/** The Runner a Pairing Code pairs instead of signing its person in: a new shared Runner, or an existing one re-keyed. */
|
|
88
|
+
export declare const PairingTarget: Schema.Union<readonly [Schema.Struct<{
|
|
89
|
+
readonly kind: Schema.Literal<"shared">;
|
|
90
|
+
readonly name: Schema.String;
|
|
91
|
+
readonly labels: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
92
|
+
readonly ownership: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
93
|
+
readonly kind: Schema.Literal<"workspace">;
|
|
94
|
+
readonly teamAccess: Schema.Union<readonly [Schema.Literal<"all">, Schema.Literal<"selected">]>;
|
|
95
|
+
}>, Schema.Struct<{
|
|
96
|
+
readonly kind: Schema.Literal<"team">;
|
|
97
|
+
readonly teamId: Schema.String;
|
|
98
|
+
}>]>>;
|
|
99
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
100
|
+
}>, Schema.Struct<{
|
|
101
|
+
readonly kind: Schema.Literal<"runner">;
|
|
102
|
+
readonly runnerId: Schema.String;
|
|
103
|
+
}>]>;
|
|
104
|
+
export declare const PairingMint: Schema.Struct<{
|
|
105
|
+
readonly target: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
106
|
+
readonly kind: Schema.Literal<"shared">;
|
|
107
|
+
readonly name: Schema.String;
|
|
108
|
+
readonly labels: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
109
|
+
readonly ownership: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
110
|
+
readonly kind: Schema.Literal<"workspace">;
|
|
111
|
+
readonly teamAccess: Schema.Union<readonly [Schema.Literal<"all">, Schema.Literal<"selected">]>;
|
|
112
|
+
}>, Schema.Struct<{
|
|
113
|
+
readonly kind: Schema.Literal<"team">;
|
|
114
|
+
readonly teamId: Schema.String;
|
|
115
|
+
}>]>>;
|
|
116
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
117
|
+
}>, Schema.Struct<{
|
|
118
|
+
readonly kind: Schema.Literal<"runner">;
|
|
119
|
+
readonly runnerId: Schema.String;
|
|
120
|
+
}>]>>;
|
|
121
|
+
}>;
|
|
122
|
+
/** A code with a target needs the machine's new public key. */
|
|
77
123
|
export declare const PairingRedeem: Schema.Struct<{
|
|
78
124
|
readonly code: Schema.String;
|
|
125
|
+
readonly publicKey: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Boolean, Schema.$Array<Schema.String>]>>>;
|
|
79
126
|
}>;
|
|
80
127
|
/** The credentials `kitman login` stores, for the person and Workspace the code was minted for. */
|
|
81
128
|
export declare const PairingCredentials: Schema.Struct<{
|
|
@@ -85,10 +132,34 @@ export declare const PairingCredentials: Schema.Struct<{
|
|
|
85
132
|
readonly workspaceId: Schema.String;
|
|
86
133
|
readonly userId: Schema.String;
|
|
87
134
|
}>;
|
|
135
|
+
/** The Runner a code with a target paired, and the identity the redeemed public key now holds. */
|
|
136
|
+
export declare const PairedRunner: Schema.Struct<{
|
|
137
|
+
readonly runnerId: Schema.String;
|
|
138
|
+
readonly workspaceId: Schema.String;
|
|
139
|
+
readonly agentIdentityId: Schema.String;
|
|
140
|
+
readonly credentialHostId: Schema.String;
|
|
141
|
+
}>;
|
|
142
|
+
export declare const PairingRedemption: Schema.Union<readonly [Schema.Struct<{
|
|
143
|
+
readonly accessToken: Schema.String;
|
|
144
|
+
readonly refreshToken: Schema.optional<Schema.String>;
|
|
145
|
+
readonly expiresIn: Schema.optional<Schema.Finite>;
|
|
146
|
+
readonly workspaceId: Schema.String;
|
|
147
|
+
readonly userId: Schema.String;
|
|
148
|
+
}>, Schema.Struct<{
|
|
149
|
+
readonly runnerId: Schema.String;
|
|
150
|
+
readonly workspaceId: Schema.String;
|
|
151
|
+
readonly agentIdentityId: Schema.String;
|
|
152
|
+
readonly credentialHostId: Schema.String;
|
|
153
|
+
}>]>;
|
|
88
154
|
export type Workspace = (typeof Workspace)['Type'];
|
|
89
155
|
export type PairingCode = (typeof PairingCode)['Type'];
|
|
90
156
|
export type PairingRedeem = (typeof PairingRedeem)['Type'];
|
|
157
|
+
export type PairingStatus = (typeof PairingStatus)['Type'];
|
|
91
158
|
export type PairingCredentials = (typeof PairingCredentials)['Type'];
|
|
159
|
+
export type PairingTarget = (typeof PairingTarget)['Type'];
|
|
160
|
+
export type PairingMint = (typeof PairingMint)['Type'];
|
|
161
|
+
export type PairedRunner = (typeof PairedRunner)['Type'];
|
|
162
|
+
export type PairingRedemption = (typeof PairingRedemption)['Type'];
|
|
92
163
|
export type WorkspaceSetup = (typeof WorkspaceSetup)['Type'];
|
|
93
164
|
export type WorkspaceNotificationPreferences = (typeof WorkspaceNotificationPreferences)['Type'];
|
|
94
165
|
export type WorkspaceCreate = (typeof WorkspaceCreate)['Type'];
|