@kitman-sh/sdk 0.10.69 → 0.10.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build/index.js +2 -2
- package/dist/{chunk-abjq7rp4.js → chunk-stw541tr.js} +330 -280
- package/dist/{chunk-8z4xvm69.js → chunk-w2f4s9v2.js} +14 -2
- package/dist/loop/index.js +3 -1
- package/dist/program/index.js +2 -2
- package/package.json +1 -1
- package/types/packages/core/src/change-request-review.d.ts +8 -0
- package/types/packages/core/src/index.d.ts +1 -0
- package/types/packages/core/src/loop.d.ts +80 -0
- package/types/packages/core/src/my-teams.d.ts +56 -0
- package/types/packages/core/src/run-display.d.ts +5 -1
- package/types/packages/core/src/test-report.d.ts +38 -0
- package/types/packages/core/src/work-unit.d.ts +72 -0
- package/types/packages/live/src/rpc/runner-client.d.ts +40 -0
- package/types/packages/live/src/rpc/runner-group.d.ts +307 -239
- package/types/packages/sdk/src/loop/activities.d.ts +31 -0
- package/types/packages/sdk/src/loop/evidence.d.ts +17 -1
- package/types/packages/sdk/src/loop/steps.d.ts +4 -0
- package/types/packages/sdk/src/loop/test-loop.d.ts +9 -0
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
executeLoop2,
|
|
34
34
|
LoopCheckError2,
|
|
35
35
|
checkLoop2
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-stw541tr.js";
|
|
37
37
|
// packages/core/src/agent-environment.ts
|
|
38
38
|
import * as Schema from "effect/Schema";
|
|
39
39
|
var AgentEnvironmentPolicy = Schema.Union([Schema.Literal("recommended"), Schema.Literal("required")]);
|
|
@@ -1051,7 +1051,19 @@ class RunnerCapabilityRpcs extends RpcGroup.make(Rpc.make("PutQuestion", {
|
|
|
1051
1051
|
logTail: Schema7.optionalKey(Schema7.String)
|
|
1052
1052
|
})),
|
|
1053
1053
|
readAt: Schema7.optionalKey(Schema7.String),
|
|
1054
|
-
runnerChecks: Schema7.optionalKey(Schema7.Array(Schema7.String))
|
|
1054
|
+
runnerChecks: Schema7.optionalKey(Schema7.Array(Schema7.String)),
|
|
1055
|
+
approved: Schema7.optionalKey(Schema7.String),
|
|
1056
|
+
repository: Schema7.optionalKey(Schema7.String),
|
|
1057
|
+
target: Schema7.optionalKey(Schema7.Struct({
|
|
1058
|
+
branch: Schema7.String,
|
|
1059
|
+
head: Schema7.String,
|
|
1060
|
+
jobs: Schema7.Array(Schema7.Struct({
|
|
1061
|
+
name: Schema7.String,
|
|
1062
|
+
status: Schema7.Literals(["running", "success", "failed", "skipped"]),
|
|
1063
|
+
url: Schema7.optionalKey(Schema7.String),
|
|
1064
|
+
logTail: Schema7.optionalKey(Schema7.String)
|
|
1065
|
+
}))
|
|
1066
|
+
}))
|
|
1055
1067
|
}),
|
|
1056
1068
|
error: RunnerRpcError
|
|
1057
1069
|
}), Rpc.make("ReportPipeline", {
|
package/dist/loop/index.js
CHANGED
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
VerifyResult2,
|
|
12
12
|
OutcomeTable2,
|
|
13
13
|
failsOn2,
|
|
14
|
+
testsNotRunReasons2,
|
|
14
15
|
evidenceGate2,
|
|
15
16
|
StepFailed2,
|
|
16
17
|
OutputInvalid2,
|
|
@@ -173,7 +174,7 @@ import {
|
|
|
173
174
|
syncBase2,
|
|
174
175
|
Continuing2,
|
|
175
176
|
continuingBrief2
|
|
176
|
-
} from "../chunk-
|
|
177
|
+
} from "../chunk-stw541tr.js";
|
|
177
178
|
export {
|
|
178
179
|
AlertTaskActivity2 as AlertTaskActivity,
|
|
179
180
|
AlertTaskRequest2 as AlertTaskRequest,
|
|
@@ -343,6 +344,7 @@ export {
|
|
|
343
344
|
syncDeferred2 as syncDeferred,
|
|
344
345
|
takeStep2 as takeStep,
|
|
345
346
|
testLoop2 as testLoop,
|
|
347
|
+
testsNotRunReasons2 as testsNotRunReasons,
|
|
346
348
|
transcripts2 as transcripts,
|
|
347
349
|
verify2 as verify,
|
|
348
350
|
verifyDeferred2 as verifyDeferred,
|
package/dist/program/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"../chunk-
|
|
2
|
+
import"../chunk-stw541tr.js";
|
|
3
3
|
import {
|
|
4
4
|
JournalWriteFailed2,
|
|
5
5
|
refusedStep2,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
networkGuard2,
|
|
18
18
|
carriedKits2,
|
|
19
19
|
runKit2
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-w2f4s9v2.js";
|
|
21
21
|
export {
|
|
22
22
|
Described2 as Described,
|
|
23
23
|
JournalWriteFailed2 as JournalWriteFailed,
|
package/package.json
CHANGED
|
@@ -301,6 +301,14 @@ export declare const RunChangesRequested: Schema.Struct<{
|
|
|
301
301
|
readonly kind: Schema.Literal<"verification">;
|
|
302
302
|
readonly name: Schema.String;
|
|
303
303
|
readonly verificationId: Schema.String;
|
|
304
|
+
}>, Schema.Struct<{
|
|
305
|
+
readonly kind: Schema.Literal<"claim">;
|
|
306
|
+
readonly name: Schema.String;
|
|
307
|
+
readonly resource: Schema.String;
|
|
308
|
+
readonly holder: Schema.optionalKey<Schema.Struct<{
|
|
309
|
+
readonly runId: Schema.String;
|
|
310
|
+
readonly loopId: Schema.String;
|
|
311
|
+
}>>;
|
|
304
312
|
}>, Schema.Struct<{
|
|
305
313
|
readonly kind: Schema.Literal<"queue">;
|
|
306
314
|
readonly name: Schema.String;
|
|
@@ -30,6 +30,7 @@ export * from './runner-eligibility';
|
|
|
30
30
|
export * from './runner-trust';
|
|
31
31
|
export * from './platform-release';
|
|
32
32
|
export * from './work-unit';
|
|
33
|
+
export * from './test-report';
|
|
33
34
|
export * from './external-effect';
|
|
34
35
|
export * from './global-search';
|
|
35
36
|
export * from './change-delivery';
|
|
@@ -1154,6 +1154,14 @@ export declare const RunWaiting: Schema.Union<readonly [Schema.Struct<{
|
|
|
1154
1154
|
readonly kind: Schema.Literal<"verification">;
|
|
1155
1155
|
readonly name: Schema.String;
|
|
1156
1156
|
readonly verificationId: Schema.String;
|
|
1157
|
+
}>, Schema.Struct<{
|
|
1158
|
+
readonly kind: Schema.Literal<"claim">;
|
|
1159
|
+
readonly name: Schema.String;
|
|
1160
|
+
readonly resource: Schema.String;
|
|
1161
|
+
readonly holder: Schema.optionalKey<Schema.Struct<{
|
|
1162
|
+
readonly runId: Schema.String;
|
|
1163
|
+
readonly loopId: Schema.String;
|
|
1164
|
+
}>>;
|
|
1157
1165
|
}>, Schema.Struct<{
|
|
1158
1166
|
readonly kind: Schema.Literal<"queue">;
|
|
1159
1167
|
readonly name: Schema.String;
|
|
@@ -1177,6 +1185,10 @@ export declare const RunEvidence: Schema.Struct<{
|
|
|
1177
1185
|
readonly outputTail: Schema.String;
|
|
1178
1186
|
/** The Run Files the check kept in this Run: its log and what it recorded. */
|
|
1179
1187
|
readonly fileIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1188
|
+
/** The check's tests that ran on the baseline and were skipped on this tree. */
|
|
1189
|
+
readonly skippedSinceBaseline: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1190
|
+
/** The check's tests new on this tree that were skipped, so they never ran. */
|
|
1191
|
+
readonly newNotRun: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1180
1192
|
readonly recordedAt: Schema.String;
|
|
1181
1193
|
}>;
|
|
1182
1194
|
export type RunEvidence = (typeof RunEvidence)['Type'];
|
|
@@ -1385,6 +1397,14 @@ export declare const Run: Schema.Struct<{
|
|
|
1385
1397
|
readonly kind: Schema.Literal<"verification">;
|
|
1386
1398
|
readonly name: Schema.String;
|
|
1387
1399
|
readonly verificationId: Schema.String;
|
|
1400
|
+
}>, Schema.Struct<{
|
|
1401
|
+
readonly kind: Schema.Literal<"claim">;
|
|
1402
|
+
readonly name: Schema.String;
|
|
1403
|
+
readonly resource: Schema.String;
|
|
1404
|
+
readonly holder: Schema.optionalKey<Schema.Struct<{
|
|
1405
|
+
readonly runId: Schema.String;
|
|
1406
|
+
readonly loopId: Schema.String;
|
|
1407
|
+
}>>;
|
|
1388
1408
|
}>, Schema.Struct<{
|
|
1389
1409
|
readonly kind: Schema.Literal<"queue">;
|
|
1390
1410
|
readonly name: Schema.String;
|
|
@@ -2177,6 +2197,14 @@ export declare const RunStarted: Schema.Struct<{
|
|
|
2177
2197
|
readonly kind: Schema.Literal<"verification">;
|
|
2178
2198
|
readonly name: Schema.String;
|
|
2179
2199
|
readonly verificationId: Schema.String;
|
|
2200
|
+
}>, Schema.Struct<{
|
|
2201
|
+
readonly kind: Schema.Literal<"claim">;
|
|
2202
|
+
readonly name: Schema.String;
|
|
2203
|
+
readonly resource: Schema.String;
|
|
2204
|
+
readonly holder: Schema.optionalKey<Schema.Struct<{
|
|
2205
|
+
readonly runId: Schema.String;
|
|
2206
|
+
readonly loopId: Schema.String;
|
|
2207
|
+
}>>;
|
|
2180
2208
|
}>, Schema.Struct<{
|
|
2181
2209
|
readonly kind: Schema.Literal<"queue">;
|
|
2182
2210
|
readonly name: Schema.String;
|
|
@@ -2519,6 +2547,14 @@ export declare const RunShow: Schema.Struct<{
|
|
|
2519
2547
|
readonly kind: Schema.Literal<"verification">;
|
|
2520
2548
|
readonly name: Schema.String;
|
|
2521
2549
|
readonly verificationId: Schema.String;
|
|
2550
|
+
}>, Schema.Struct<{
|
|
2551
|
+
readonly kind: Schema.Literal<"claim">;
|
|
2552
|
+
readonly name: Schema.String;
|
|
2553
|
+
readonly resource: Schema.String;
|
|
2554
|
+
readonly holder: Schema.optionalKey<Schema.Struct<{
|
|
2555
|
+
readonly runId: Schema.String;
|
|
2556
|
+
readonly loopId: Schema.String;
|
|
2557
|
+
}>>;
|
|
2522
2558
|
}>, Schema.Struct<{
|
|
2523
2559
|
readonly kind: Schema.Literal<"queue">;
|
|
2524
2560
|
readonly name: Schema.String;
|
|
@@ -2739,6 +2775,10 @@ export declare const RunShow: Schema.Struct<{
|
|
|
2739
2775
|
readonly outputTail: Schema.String;
|
|
2740
2776
|
/** The Run Files the check kept in this Run: its log and what it recorded. */
|
|
2741
2777
|
readonly fileIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2778
|
+
/** The check's tests that ran on the baseline and were skipped on this tree. */
|
|
2779
|
+
readonly skippedSinceBaseline: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2780
|
+
/** The check's tests new on this tree that were skipped, so they never ran. */
|
|
2781
|
+
readonly newNotRun: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2742
2782
|
readonly recordedAt: Schema.String;
|
|
2743
2783
|
}>>;
|
|
2744
2784
|
readonly steers: Schema.$Array<Schema.Struct<{
|
|
@@ -2774,6 +2814,14 @@ export declare const RunShow: Schema.Struct<{
|
|
|
2774
2814
|
readonly kind: Schema.Literal<"verification">;
|
|
2775
2815
|
readonly name: Schema.String;
|
|
2776
2816
|
readonly verificationId: Schema.String;
|
|
2817
|
+
}>, Schema.Struct<{
|
|
2818
|
+
readonly kind: Schema.Literal<"claim">;
|
|
2819
|
+
readonly name: Schema.String;
|
|
2820
|
+
readonly resource: Schema.String;
|
|
2821
|
+
readonly holder: Schema.optionalKey<Schema.Struct<{
|
|
2822
|
+
readonly runId: Schema.String;
|
|
2823
|
+
readonly loopId: Schema.String;
|
|
2824
|
+
}>>;
|
|
2777
2825
|
}>, Schema.Struct<{
|
|
2778
2826
|
readonly kind: Schema.Literal<"queue">;
|
|
2779
2827
|
readonly name: Schema.String;
|
|
@@ -3102,6 +3150,14 @@ export declare const RunListItem: Schema.Struct<{
|
|
|
3102
3150
|
readonly kind: Schema.Literal<"verification">;
|
|
3103
3151
|
readonly name: Schema.String;
|
|
3104
3152
|
readonly verificationId: Schema.String;
|
|
3153
|
+
}>, Schema.Struct<{
|
|
3154
|
+
readonly kind: Schema.Literal<"claim">;
|
|
3155
|
+
readonly name: Schema.String;
|
|
3156
|
+
readonly resource: Schema.String;
|
|
3157
|
+
readonly holder: Schema.optionalKey<Schema.Struct<{
|
|
3158
|
+
readonly runId: Schema.String;
|
|
3159
|
+
readonly loopId: Schema.String;
|
|
3160
|
+
}>>;
|
|
3105
3161
|
}>, Schema.Struct<{
|
|
3106
3162
|
readonly kind: Schema.Literal<"queue">;
|
|
3107
3163
|
readonly name: Schema.String;
|
|
@@ -3274,6 +3330,14 @@ export declare const RunList: Schema.Struct<{
|
|
|
3274
3330
|
readonly kind: Schema.Literal<"verification">;
|
|
3275
3331
|
readonly name: Schema.String;
|
|
3276
3332
|
readonly verificationId: Schema.String;
|
|
3333
|
+
}>, Schema.Struct<{
|
|
3334
|
+
readonly kind: Schema.Literal<"claim">;
|
|
3335
|
+
readonly name: Schema.String;
|
|
3336
|
+
readonly resource: Schema.String;
|
|
3337
|
+
readonly holder: Schema.optionalKey<Schema.Struct<{
|
|
3338
|
+
readonly runId: Schema.String;
|
|
3339
|
+
readonly loopId: Schema.String;
|
|
3340
|
+
}>>;
|
|
3277
3341
|
}>, Schema.Struct<{
|
|
3278
3342
|
readonly kind: Schema.Literal<"queue">;
|
|
3279
3343
|
readonly name: Schema.String;
|
|
@@ -3452,6 +3516,14 @@ export declare const RunWaitResult: Schema.Struct<{
|
|
|
3452
3516
|
readonly kind: Schema.Literal<"verification">;
|
|
3453
3517
|
readonly name: Schema.String;
|
|
3454
3518
|
readonly verificationId: Schema.String;
|
|
3519
|
+
}>, Schema.Struct<{
|
|
3520
|
+
readonly kind: Schema.Literal<"claim">;
|
|
3521
|
+
readonly name: Schema.String;
|
|
3522
|
+
readonly resource: Schema.String;
|
|
3523
|
+
readonly holder: Schema.optionalKey<Schema.Struct<{
|
|
3524
|
+
readonly runId: Schema.String;
|
|
3525
|
+
readonly loopId: Schema.String;
|
|
3526
|
+
}>>;
|
|
3455
3527
|
}>, Schema.Struct<{
|
|
3456
3528
|
readonly kind: Schema.Literal<"queue">;
|
|
3457
3529
|
readonly name: Schema.String;
|
|
@@ -3674,6 +3746,14 @@ export declare const RunActionTaken: Schema.Struct<{
|
|
|
3674
3746
|
readonly kind: Schema.Literal<"verification">;
|
|
3675
3747
|
readonly name: Schema.String;
|
|
3676
3748
|
readonly verificationId: Schema.String;
|
|
3749
|
+
}>, Schema.Struct<{
|
|
3750
|
+
readonly kind: Schema.Literal<"claim">;
|
|
3751
|
+
readonly name: Schema.String;
|
|
3752
|
+
readonly resource: Schema.String;
|
|
3753
|
+
readonly holder: Schema.optionalKey<Schema.Struct<{
|
|
3754
|
+
readonly runId: Schema.String;
|
|
3755
|
+
readonly loopId: Schema.String;
|
|
3756
|
+
}>>;
|
|
3677
3757
|
}>, Schema.Struct<{
|
|
3678
3758
|
readonly kind: Schema.Literal<"queue">;
|
|
3679
3759
|
readonly name: Schema.String;
|
|
@@ -144,6 +144,14 @@ declare const MyTeamsRun: Schema.Struct<{
|
|
|
144
144
|
readonly kind: Schema.Literal<"verification">;
|
|
145
145
|
readonly name: Schema.String;
|
|
146
146
|
readonly verificationId: Schema.String;
|
|
147
|
+
}>, Schema.Struct<{
|
|
148
|
+
readonly kind: Schema.Literal<"claim">;
|
|
149
|
+
readonly name: Schema.String;
|
|
150
|
+
readonly resource: Schema.String;
|
|
151
|
+
readonly holder: Schema.optionalKey<Schema.Struct<{
|
|
152
|
+
readonly runId: Schema.String;
|
|
153
|
+
readonly loopId: Schema.String;
|
|
154
|
+
}>>;
|
|
147
155
|
}>, Schema.Struct<{
|
|
148
156
|
readonly kind: Schema.Literal<"queue">;
|
|
149
157
|
readonly name: Schema.String;
|
|
@@ -311,6 +319,14 @@ export declare const MyTeamsCard: Schema.Struct<{
|
|
|
311
319
|
readonly kind: Schema.Literal<"verification">;
|
|
312
320
|
readonly name: Schema.String;
|
|
313
321
|
readonly verificationId: Schema.String;
|
|
322
|
+
}>, Schema.Struct<{
|
|
323
|
+
readonly kind: Schema.Literal<"claim">;
|
|
324
|
+
readonly name: Schema.String;
|
|
325
|
+
readonly resource: Schema.String;
|
|
326
|
+
readonly holder: Schema.optionalKey<Schema.Struct<{
|
|
327
|
+
readonly runId: Schema.String;
|
|
328
|
+
readonly loopId: Schema.String;
|
|
329
|
+
}>>;
|
|
314
330
|
}>, Schema.Struct<{
|
|
315
331
|
readonly kind: Schema.Literal<"queue">;
|
|
316
332
|
readonly name: Schema.String;
|
|
@@ -530,6 +546,14 @@ export declare const MyTeams: Schema.Struct<{
|
|
|
530
546
|
readonly kind: Schema.Literal<"verification">;
|
|
531
547
|
readonly name: Schema.String;
|
|
532
548
|
readonly verificationId: Schema.String;
|
|
549
|
+
}>, Schema.Struct<{
|
|
550
|
+
readonly kind: Schema.Literal<"claim">;
|
|
551
|
+
readonly name: Schema.String;
|
|
552
|
+
readonly resource: Schema.String;
|
|
553
|
+
readonly holder: Schema.optionalKey<Schema.Struct<{
|
|
554
|
+
readonly runId: Schema.String;
|
|
555
|
+
readonly loopId: Schema.String;
|
|
556
|
+
}>>;
|
|
533
557
|
}>, Schema.Struct<{
|
|
534
558
|
readonly kind: Schema.Literal<"queue">;
|
|
535
559
|
readonly name: Schema.String;
|
|
@@ -747,6 +771,14 @@ export declare const MyTeams: Schema.Struct<{
|
|
|
747
771
|
readonly kind: Schema.Literal<"verification">;
|
|
748
772
|
readonly name: Schema.String;
|
|
749
773
|
readonly verificationId: Schema.String;
|
|
774
|
+
}>, Schema.Struct<{
|
|
775
|
+
readonly kind: Schema.Literal<"claim">;
|
|
776
|
+
readonly name: Schema.String;
|
|
777
|
+
readonly resource: Schema.String;
|
|
778
|
+
readonly holder: Schema.optionalKey<Schema.Struct<{
|
|
779
|
+
readonly runId: Schema.String;
|
|
780
|
+
readonly loopId: Schema.String;
|
|
781
|
+
}>>;
|
|
750
782
|
}>, Schema.Struct<{
|
|
751
783
|
readonly kind: Schema.Literal<"queue">;
|
|
752
784
|
readonly name: Schema.String;
|
|
@@ -964,6 +996,14 @@ export declare const MyTeams: Schema.Struct<{
|
|
|
964
996
|
readonly kind: Schema.Literal<"verification">;
|
|
965
997
|
readonly name: Schema.String;
|
|
966
998
|
readonly verificationId: Schema.String;
|
|
999
|
+
}>, Schema.Struct<{
|
|
1000
|
+
readonly kind: Schema.Literal<"claim">;
|
|
1001
|
+
readonly name: Schema.String;
|
|
1002
|
+
readonly resource: Schema.String;
|
|
1003
|
+
readonly holder: Schema.optionalKey<Schema.Struct<{
|
|
1004
|
+
readonly runId: Schema.String;
|
|
1005
|
+
readonly loopId: Schema.String;
|
|
1006
|
+
}>>;
|
|
967
1007
|
}>, Schema.Struct<{
|
|
968
1008
|
readonly kind: Schema.Literal<"queue">;
|
|
969
1009
|
readonly name: Schema.String;
|
|
@@ -1181,6 +1221,14 @@ export declare const MyTeams: Schema.Struct<{
|
|
|
1181
1221
|
readonly kind: Schema.Literal<"verification">;
|
|
1182
1222
|
readonly name: Schema.String;
|
|
1183
1223
|
readonly verificationId: Schema.String;
|
|
1224
|
+
}>, Schema.Struct<{
|
|
1225
|
+
readonly kind: Schema.Literal<"claim">;
|
|
1226
|
+
readonly name: Schema.String;
|
|
1227
|
+
readonly resource: Schema.String;
|
|
1228
|
+
readonly holder: Schema.optionalKey<Schema.Struct<{
|
|
1229
|
+
readonly runId: Schema.String;
|
|
1230
|
+
readonly loopId: Schema.String;
|
|
1231
|
+
}>>;
|
|
1184
1232
|
}>, Schema.Struct<{
|
|
1185
1233
|
readonly kind: Schema.Literal<"queue">;
|
|
1186
1234
|
readonly name: Schema.String;
|
|
@@ -1382,6 +1430,14 @@ export declare const TaskRuns: Schema.Struct<{
|
|
|
1382
1430
|
readonly kind: Schema.Literal<"verification">;
|
|
1383
1431
|
readonly name: Schema.String;
|
|
1384
1432
|
readonly verificationId: Schema.String;
|
|
1433
|
+
}>, Schema.Struct<{
|
|
1434
|
+
readonly kind: Schema.Literal<"claim">;
|
|
1435
|
+
readonly name: Schema.String;
|
|
1436
|
+
readonly resource: Schema.String;
|
|
1437
|
+
readonly holder: Schema.optionalKey<Schema.Struct<{
|
|
1438
|
+
readonly runId: Schema.String;
|
|
1439
|
+
readonly loopId: Schema.String;
|
|
1440
|
+
}>>;
|
|
1385
1441
|
}>, Schema.Struct<{
|
|
1386
1442
|
readonly kind: Schema.Literal<"queue">;
|
|
1387
1443
|
readonly name: Schema.String;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Run, RunDisplay, RunDisplayState, RunShow } from './loop';
|
|
1
|
+
import type { Run, RunDisplay, RunDisplayState, RunShow, RunWaiting } from './loop';
|
|
2
2
|
export type RunDisplayInput = Pick<RunShow, 'run' | 'steps' | 'questions' | 'children' | 'waiting'> & {
|
|
3
3
|
/** A Runner has leased one of the Run's orchestration Work Units. */
|
|
4
4
|
readonly claimed: boolean;
|
|
@@ -8,6 +8,10 @@ export type RunDisplayInput = Pick<RunShow, 'run' | 'steps' | 'questions' | 'chi
|
|
|
8
8
|
readonly failedChecks: readonly string[];
|
|
9
9
|
};
|
|
10
10
|
export declare const runDisplayLabels: Record<RunDisplayState, string>;
|
|
11
|
+
/** A resource the Run waits its turn for, and who holds it. */
|
|
12
|
+
export declare const turnWords: (entry: Extract<RunWaiting, {
|
|
13
|
+
readonly kind: 'claim';
|
|
14
|
+
}>) => string;
|
|
11
15
|
/** What a Run's output says it left open: any Loop's `unsettled` list. `displayFacts` in run-list.ts reads the same. */
|
|
12
16
|
export declare const reportedUnsettled: (output: Run['output']) => readonly string[] | undefined;
|
|
13
17
|
/** What a Run and the Child Runs below it report left open. */
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
/** A check's file in `KITMAN_RUN_FILES_DIR` that Kitman reads as a JUnit XML test report. */
|
|
3
|
+
export declare const isTestReportName: (name: string) => boolean;
|
|
4
|
+
/** What a check's JUnit reports say about its tests at one tree. */
|
|
5
|
+
export declare const CheckTests: Schema.Struct<{
|
|
6
|
+
/** How many reports were read; none means the check left no report, so nothing is known of its tests. */
|
|
7
|
+
readonly reports: Schema.Int;
|
|
8
|
+
readonly passed: Schema.Int;
|
|
9
|
+
readonly failed: Schema.Int;
|
|
10
|
+
readonly skipped: Schema.Int;
|
|
11
|
+
/** The ids of the skipped tests, as `file > suite > name`; the first `maxSkippedTests` when there are more. */
|
|
12
|
+
readonly skippedTests: Schema.$Array<Schema.String>;
|
|
13
|
+
/** `testDigest` of each test that ran, so another tree's skips can be told new from dropped. */
|
|
14
|
+
readonly ranDigests: Schema.$Array<Schema.String>;
|
|
15
|
+
}>;
|
|
16
|
+
export type CheckTests = typeof CheckTests.Type;
|
|
17
|
+
type TestCase = {
|
|
18
|
+
readonly id: string;
|
|
19
|
+
readonly status: 'passed' | 'failed' | 'skipped';
|
|
20
|
+
};
|
|
21
|
+
/** Each `<testcase>` of a JUnit XML report, as vitest's and `bun test`'s junit reporters write them. */
|
|
22
|
+
export declare const junitTestCases: (xml: string) => readonly TestCase[];
|
|
23
|
+
export declare const testDigest: (id: string) => string;
|
|
24
|
+
/** A check's tests from the JUnit reports it left; a test reported twice counts once, failed over skipped over passed. */
|
|
25
|
+
export declare const checkTests: (reports: readonly string[]) => CheckTests;
|
|
26
|
+
/** The head's tests verify never ran: skipped there, while the baseline ran them or did not have them. */
|
|
27
|
+
export type TestsNotRun = {
|
|
28
|
+
/** Skipped on the head, and ran on the baseline. */
|
|
29
|
+
readonly skippedSinceBaseline: readonly string[];
|
|
30
|
+
/** New on the head, and skipped there, so they never ran. */
|
|
31
|
+
readonly newNotRun: readonly string[];
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Compares a check's tests at the head with the baseline's. Without a baseline to compare, as when the head's tree is
|
|
35
|
+
* the baseline's, every skip is the baseline's; without a report on either side, nothing is known.
|
|
36
|
+
*/
|
|
37
|
+
export declare const testsNotRun: (head: CheckTests | undefined, baseline: CheckTests | undefined) => TestsNotRun | undefined;
|
|
38
|
+
export {};
|
|
@@ -757,6 +757,15 @@ export declare const CheckEvidence: Schema.Struct<{
|
|
|
757
757
|
readonly outputTail: Schema.String;
|
|
758
758
|
/** The Run Files the check kept: its log and what it left in `KITMAN_RUN_FILES_DIR`. */
|
|
759
759
|
readonly fileIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
760
|
+
/** What the JUnit reports the check left in `KITMAN_RUN_FILES_DIR` say; absent from older Runners. */
|
|
761
|
+
readonly tests: Schema.optionalKey<Schema.Struct<{
|
|
762
|
+
readonly reports: Schema.Int;
|
|
763
|
+
readonly passed: Schema.Int;
|
|
764
|
+
readonly failed: Schema.Int;
|
|
765
|
+
readonly skipped: Schema.Int;
|
|
766
|
+
readonly skippedTests: Schema.$Array<Schema.String>;
|
|
767
|
+
readonly ranDigests: Schema.$Array<Schema.String>;
|
|
768
|
+
}>>;
|
|
760
769
|
}>;
|
|
761
770
|
/** Checks run at one revision; `tree` is the revision's git tree id. Checks the tree already had are left out. */
|
|
762
771
|
export declare const TreeEvidence: Schema.Struct<{
|
|
@@ -772,6 +781,15 @@ export declare const TreeEvidence: Schema.Struct<{
|
|
|
772
781
|
readonly outputTail: Schema.String;
|
|
773
782
|
/** The Run Files the check kept: its log and what it left in `KITMAN_RUN_FILES_DIR`. */
|
|
774
783
|
readonly fileIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
784
|
+
/** What the JUnit reports the check left in `KITMAN_RUN_FILES_DIR` say; absent from older Runners. */
|
|
785
|
+
readonly tests: Schema.optionalKey<Schema.Struct<{
|
|
786
|
+
readonly reports: Schema.Int;
|
|
787
|
+
readonly passed: Schema.Int;
|
|
788
|
+
readonly failed: Schema.Int;
|
|
789
|
+
readonly skipped: Schema.Int;
|
|
790
|
+
readonly skippedTests: Schema.$Array<Schema.String>;
|
|
791
|
+
readonly ranDigests: Schema.$Array<Schema.String>;
|
|
792
|
+
}>>;
|
|
775
793
|
}>>;
|
|
776
794
|
}>;
|
|
777
795
|
export declare const VerificationEvidence: Schema.Struct<{
|
|
@@ -788,6 +806,15 @@ export declare const VerificationEvidence: Schema.Struct<{
|
|
|
788
806
|
readonly outputTail: Schema.String;
|
|
789
807
|
/** The Run Files the check kept: its log and what it left in `KITMAN_RUN_FILES_DIR`. */
|
|
790
808
|
readonly fileIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
809
|
+
/** What the JUnit reports the check left in `KITMAN_RUN_FILES_DIR` say; absent from older Runners. */
|
|
810
|
+
readonly tests: Schema.optionalKey<Schema.Struct<{
|
|
811
|
+
readonly reports: Schema.Int;
|
|
812
|
+
readonly passed: Schema.Int;
|
|
813
|
+
readonly failed: Schema.Int;
|
|
814
|
+
readonly skipped: Schema.Int;
|
|
815
|
+
readonly skippedTests: Schema.$Array<Schema.String>;
|
|
816
|
+
readonly ranDigests: Schema.$Array<Schema.String>;
|
|
817
|
+
}>>;
|
|
791
818
|
}>>;
|
|
792
819
|
}>;
|
|
793
820
|
readonly baseline: Schema.optionalKey<Schema.Struct<{
|
|
@@ -803,6 +830,15 @@ export declare const VerificationEvidence: Schema.Struct<{
|
|
|
803
830
|
readonly outputTail: Schema.String;
|
|
804
831
|
/** The Run Files the check kept: its log and what it left in `KITMAN_RUN_FILES_DIR`. */
|
|
805
832
|
readonly fileIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
833
|
+
/** What the JUnit reports the check left in `KITMAN_RUN_FILES_DIR` say; absent from older Runners. */
|
|
834
|
+
readonly tests: Schema.optionalKey<Schema.Struct<{
|
|
835
|
+
readonly reports: Schema.Int;
|
|
836
|
+
readonly passed: Schema.Int;
|
|
837
|
+
readonly failed: Schema.Int;
|
|
838
|
+
readonly skipped: Schema.Int;
|
|
839
|
+
readonly skippedTests: Schema.$Array<Schema.String>;
|
|
840
|
+
readonly ranDigests: Schema.$Array<Schema.String>;
|
|
841
|
+
}>>;
|
|
806
842
|
}>>;
|
|
807
843
|
}>>;
|
|
808
844
|
readonly measurement: Schema.optionalKey<Schema.Struct<{
|
|
@@ -898,6 +934,15 @@ export declare const WorkUnitOutcome: Schema.Struct<{
|
|
|
898
934
|
readonly outputTail: Schema.String;
|
|
899
935
|
/** The Run Files the check kept: its log and what it left in `KITMAN_RUN_FILES_DIR`. */
|
|
900
936
|
readonly fileIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
937
|
+
/** What the JUnit reports the check left in `KITMAN_RUN_FILES_DIR` say; absent from older Runners. */
|
|
938
|
+
readonly tests: Schema.optionalKey<Schema.Struct<{
|
|
939
|
+
readonly reports: Schema.Int;
|
|
940
|
+
readonly passed: Schema.Int;
|
|
941
|
+
readonly failed: Schema.Int;
|
|
942
|
+
readonly skipped: Schema.Int;
|
|
943
|
+
readonly skippedTests: Schema.$Array<Schema.String>;
|
|
944
|
+
readonly ranDigests: Schema.$Array<Schema.String>;
|
|
945
|
+
}>>;
|
|
901
946
|
}>>;
|
|
902
947
|
}>;
|
|
903
948
|
readonly baseline: Schema.optionalKey<Schema.Struct<{
|
|
@@ -913,6 +958,15 @@ export declare const WorkUnitOutcome: Schema.Struct<{
|
|
|
913
958
|
readonly outputTail: Schema.String;
|
|
914
959
|
/** The Run Files the check kept: its log and what it left in `KITMAN_RUN_FILES_DIR`. */
|
|
915
960
|
readonly fileIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
961
|
+
/** What the JUnit reports the check left in `KITMAN_RUN_FILES_DIR` say; absent from older Runners. */
|
|
962
|
+
readonly tests: Schema.optionalKey<Schema.Struct<{
|
|
963
|
+
readonly reports: Schema.Int;
|
|
964
|
+
readonly passed: Schema.Int;
|
|
965
|
+
readonly failed: Schema.Int;
|
|
966
|
+
readonly skipped: Schema.Int;
|
|
967
|
+
readonly skippedTests: Schema.$Array<Schema.String>;
|
|
968
|
+
readonly ranDigests: Schema.$Array<Schema.String>;
|
|
969
|
+
}>>;
|
|
916
970
|
}>>;
|
|
917
971
|
}>>;
|
|
918
972
|
readonly measurement: Schema.optionalKey<Schema.Struct<{
|
|
@@ -1009,6 +1063,15 @@ export declare const WorkUnitCompletion: Schema.Struct<{
|
|
|
1009
1063
|
readonly outputTail: Schema.String;
|
|
1010
1064
|
/** The Run Files the check kept: its log and what it left in `KITMAN_RUN_FILES_DIR`. */
|
|
1011
1065
|
readonly fileIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1066
|
+
/** What the JUnit reports the check left in `KITMAN_RUN_FILES_DIR` say; absent from older Runners. */
|
|
1067
|
+
readonly tests: Schema.optionalKey<Schema.Struct<{
|
|
1068
|
+
readonly reports: Schema.Int;
|
|
1069
|
+
readonly passed: Schema.Int;
|
|
1070
|
+
readonly failed: Schema.Int;
|
|
1071
|
+
readonly skipped: Schema.Int;
|
|
1072
|
+
readonly skippedTests: Schema.$Array<Schema.String>;
|
|
1073
|
+
readonly ranDigests: Schema.$Array<Schema.String>;
|
|
1074
|
+
}>>;
|
|
1012
1075
|
}>>;
|
|
1013
1076
|
}>;
|
|
1014
1077
|
readonly baseline: Schema.optionalKey<Schema.Struct<{
|
|
@@ -1024,6 +1087,15 @@ export declare const WorkUnitCompletion: Schema.Struct<{
|
|
|
1024
1087
|
readonly outputTail: Schema.String;
|
|
1025
1088
|
/** The Run Files the check kept: its log and what it left in `KITMAN_RUN_FILES_DIR`. */
|
|
1026
1089
|
readonly fileIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1090
|
+
/** What the JUnit reports the check left in `KITMAN_RUN_FILES_DIR` say; absent from older Runners. */
|
|
1091
|
+
readonly tests: Schema.optionalKey<Schema.Struct<{
|
|
1092
|
+
readonly reports: Schema.Int;
|
|
1093
|
+
readonly passed: Schema.Int;
|
|
1094
|
+
readonly failed: Schema.Int;
|
|
1095
|
+
readonly skipped: Schema.Int;
|
|
1096
|
+
readonly skippedTests: Schema.$Array<Schema.String>;
|
|
1097
|
+
readonly ranDigests: Schema.$Array<Schema.String>;
|
|
1098
|
+
}>>;
|
|
1027
1099
|
}>>;
|
|
1028
1100
|
}>>;
|
|
1029
1101
|
readonly measurement: Schema.optionalKey<Schema.Struct<{
|
|
@@ -447,6 +447,14 @@ export declare const makeRunnerRpcClient: (options: ConnectionOptions) => Effect
|
|
|
447
447
|
readonly durationMs: number;
|
|
448
448
|
readonly outputTail: string;
|
|
449
449
|
readonly fileIds?: readonly string[];
|
|
450
|
+
readonly tests?: {
|
|
451
|
+
readonly reports: number;
|
|
452
|
+
readonly passed: number;
|
|
453
|
+
readonly failed: number;
|
|
454
|
+
readonly skipped: number;
|
|
455
|
+
readonly skippedTests: readonly string[];
|
|
456
|
+
readonly ranDigests: readonly string[];
|
|
457
|
+
};
|
|
450
458
|
}[];
|
|
451
459
|
};
|
|
452
460
|
readonly baseline?: {
|
|
@@ -460,6 +468,14 @@ export declare const makeRunnerRpcClient: (options: ConnectionOptions) => Effect
|
|
|
460
468
|
readonly durationMs: number;
|
|
461
469
|
readonly outputTail: string;
|
|
462
470
|
readonly fileIds?: readonly string[];
|
|
471
|
+
readonly tests?: {
|
|
472
|
+
readonly reports: number;
|
|
473
|
+
readonly passed: number;
|
|
474
|
+
readonly failed: number;
|
|
475
|
+
readonly skipped: number;
|
|
476
|
+
readonly skippedTests: readonly string[];
|
|
477
|
+
readonly ranDigests: readonly string[];
|
|
478
|
+
};
|
|
463
479
|
}[];
|
|
464
480
|
};
|
|
465
481
|
readonly measurement?: {
|
|
@@ -1710,6 +1726,18 @@ export declare const makeProgramRpcClient: (options: ConnectionOptions) => Effec
|
|
|
1710
1726
|
}[];
|
|
1711
1727
|
readonly readAt?: string;
|
|
1712
1728
|
readonly runnerChecks?: readonly string[];
|
|
1729
|
+
readonly approved?: string;
|
|
1730
|
+
readonly repository?: string;
|
|
1731
|
+
readonly target?: {
|
|
1732
|
+
readonly branch: string;
|
|
1733
|
+
readonly head: string;
|
|
1734
|
+
readonly jobs: readonly {
|
|
1735
|
+
readonly name: string;
|
|
1736
|
+
readonly status: "failed" | "running" | "skipped" | "success";
|
|
1737
|
+
readonly url?: string;
|
|
1738
|
+
readonly logTail?: string;
|
|
1739
|
+
}[];
|
|
1740
|
+
};
|
|
1713
1741
|
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
1714
1742
|
readonly head: string;
|
|
1715
1743
|
readonly status: "canceled" | "failed" | "none" | "running" | "success";
|
|
@@ -1722,6 +1750,18 @@ export declare const makeProgramRpcClient: (options: ConnectionOptions) => Effec
|
|
|
1722
1750
|
}[];
|
|
1723
1751
|
readonly readAt?: string;
|
|
1724
1752
|
readonly runnerChecks?: readonly string[];
|
|
1753
|
+
readonly approved?: string;
|
|
1754
|
+
readonly repository?: string;
|
|
1755
|
+
readonly target?: {
|
|
1756
|
+
readonly branch: string;
|
|
1757
|
+
readonly head: string;
|
|
1758
|
+
readonly jobs: readonly {
|
|
1759
|
+
readonly name: string;
|
|
1760
|
+
readonly status: "failed" | "running" | "skipped" | "success";
|
|
1761
|
+
readonly url?: string;
|
|
1762
|
+
readonly logTail?: string;
|
|
1763
|
+
}[];
|
|
1764
|
+
};
|
|
1725
1765
|
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
1726
1766
|
reportPipeline: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
1727
1767
|
readonly lease: {
|