@kitman-sh/sdk 0.10.81 → 0.10.83
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-hrwq77a0.js → chunk-3pz068kn.js} +11 -5
- package/dist/{chunk-9ff7wyqt.js → chunk-cqknxyv9.js} +89 -47
- package/dist/loop/index.js +7 -1
- package/dist/program/index.js +2 -2
- package/package.json +1 -1
- package/types/packages/core/src/runner.d.ts +18 -0
- package/types/packages/core/src/step-brief.d.ts +1 -2
- package/types/packages/core/src/work-unit.d.ts +33 -1
- package/types/packages/live/src/rpc/runner-client.d.ts +15 -0
- package/types/packages/live/src/rpc/runner-group.d.ts +1515 -1486
- package/types/packages/sdk/src/loop/activities.d.ts +3 -0
- package/types/packages/sdk/src/loop/index.d.ts +1 -0
- package/types/packages/sdk/src/loop/resolve.d.ts +13 -0
- package/types/packages/sdk/src/loop/steps.d.ts +5 -0
- package/types/packages/sdk/src/loop/sync.d.ts +8 -1
- package/types/packages/sdk/src/loop/test-loop.d.ts +9 -0
- package/types/packages/sdk/src/program/engine.d.ts +2 -1
|
@@ -264,9 +264,17 @@ export declare const MeasureEvidence: Schema.Struct<{
|
|
|
264
264
|
readonly head: Schema.$Array<Schema.$Record<Schema.String, Schema.Finite>>;
|
|
265
265
|
readonly baseAgain: Schema.optionalKey<Schema.$Array<Schema.$Record<Schema.String, Schema.Finite>>>;
|
|
266
266
|
}>;
|
|
267
|
+
/** Revisions to resolve to the commits they name now, running no checks. */
|
|
268
|
+
export declare const ResolveSpec: Schema.Struct<{
|
|
269
|
+
readonly revisions: Schema.$Array<Schema.String>;
|
|
270
|
+
}>;
|
|
271
|
+
/** The commit each of a resolve's revisions names, in its order. */
|
|
272
|
+
export declare const ResolvedRevisions: Schema.Struct<{
|
|
273
|
+
readonly commits: Schema.$Array<Schema.String>;
|
|
274
|
+
}>;
|
|
267
275
|
/**
|
|
268
276
|
* Runs approved checks at a revision with no agent, and at `baseline`, the default branch's head when left out; or,
|
|
269
|
-
* with `measure`, benchmarks the revision against a base.
|
|
277
|
+
* with `measure`, benchmarks the revision against a base; or, with `resolve`, resolves revisions to commits.
|
|
270
278
|
*/
|
|
271
279
|
export declare const VerificationWorkUnit: Schema.Struct<{
|
|
272
280
|
readonly kind: Schema.Literal<"verification">;
|
|
@@ -327,6 +335,9 @@ export declare const VerificationWorkUnit: Schema.Struct<{
|
|
|
327
335
|
readonly samples: Schema.Int;
|
|
328
336
|
readonly calibrate: Schema.Boolean;
|
|
329
337
|
}>>;
|
|
338
|
+
readonly resolve: Schema.optionalKey<Schema.Struct<{
|
|
339
|
+
readonly revisions: Schema.$Array<Schema.String>;
|
|
340
|
+
}>>;
|
|
330
341
|
/** Hosts the Run's Team and RepoBinding allow, which the check's sandbox adds. */
|
|
331
342
|
readonly hosts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
332
343
|
readonly storageOrigin: Schema.optionalKey<Schema.String>;
|
|
@@ -506,6 +517,9 @@ export declare const WorkUnit: Schema.Union<readonly [Schema.Struct<{
|
|
|
506
517
|
readonly samples: Schema.Int;
|
|
507
518
|
readonly calibrate: Schema.Boolean;
|
|
508
519
|
}>>;
|
|
520
|
+
readonly resolve: Schema.optionalKey<Schema.Struct<{
|
|
521
|
+
readonly revisions: Schema.$Array<Schema.String>;
|
|
522
|
+
}>>;
|
|
509
523
|
/** Hosts the Run's Team and RepoBinding allow, which the check's sandbox adds. */
|
|
510
524
|
readonly hosts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
511
525
|
readonly storageOrigin: Schema.optionalKey<Schema.String>;
|
|
@@ -686,6 +700,9 @@ export declare const WorkUnitClaimResult: Schema.Struct<{
|
|
|
686
700
|
readonly samples: Schema.Int;
|
|
687
701
|
readonly calibrate: Schema.Boolean;
|
|
688
702
|
}>>;
|
|
703
|
+
readonly resolve: Schema.optionalKey<Schema.Struct<{
|
|
704
|
+
readonly revisions: Schema.$Array<Schema.String>;
|
|
705
|
+
}>>;
|
|
689
706
|
/** Hosts the Run's Team and RepoBinding allow, which the check's sandbox adds. */
|
|
690
707
|
readonly hosts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
691
708
|
readonly storageOrigin: Schema.optionalKey<Schema.String>;
|
|
@@ -846,6 +863,9 @@ export declare const VerificationEvidence: Schema.Struct<{
|
|
|
846
863
|
readonly head: Schema.$Array<Schema.$Record<Schema.String, Schema.Finite>>;
|
|
847
864
|
readonly baseAgain: Schema.optionalKey<Schema.$Array<Schema.$Record<Schema.String, Schema.Finite>>>;
|
|
848
865
|
}>>;
|
|
866
|
+
readonly resolved: Schema.optionalKey<Schema.Struct<{
|
|
867
|
+
readonly commits: Schema.$Array<Schema.String>;
|
|
868
|
+
}>>;
|
|
849
869
|
}>;
|
|
850
870
|
/** A write checkout's change since the Run began, bounded and redacted by the Runner; Kitman bounds it again. */
|
|
851
871
|
export declare const BoundaryChange: Schema.Struct<{
|
|
@@ -974,6 +994,9 @@ export declare const WorkUnitOutcome: Schema.Struct<{
|
|
|
974
994
|
readonly head: Schema.$Array<Schema.$Record<Schema.String, Schema.Finite>>;
|
|
975
995
|
readonly baseAgain: Schema.optionalKey<Schema.$Array<Schema.$Record<Schema.String, Schema.Finite>>>;
|
|
976
996
|
}>>;
|
|
997
|
+
readonly resolved: Schema.optionalKey<Schema.Struct<{
|
|
998
|
+
readonly commits: Schema.$Array<Schema.String>;
|
|
999
|
+
}>>;
|
|
977
1000
|
}>>;
|
|
978
1001
|
readonly boundary: Schema.optionalKey<Schema.Struct<{
|
|
979
1002
|
readonly kind: Schema.Literal<"change">;
|
|
@@ -1002,6 +1025,8 @@ export declare const WorkUnitOutcome: Schema.Struct<{
|
|
|
1002
1025
|
/** A list was longer than `catchUpPathLimit` and was cut. */
|
|
1003
1026
|
readonly truncated: Schema.Boolean;
|
|
1004
1027
|
}>>;
|
|
1028
|
+
/** The target's commit a base sync merged in, or tried to: what a review of the branch diffs against. */
|
|
1029
|
+
readonly syncedTarget: Schema.optionalKey<Schema.String>;
|
|
1005
1030
|
readonly harnessHold: Schema.optionalKey<Schema.Struct<{
|
|
1006
1031
|
readonly reason: Schema.Literals<readonly ["out_of_quota", "rate_limited", "login_refused", "failed_to_start"]>;
|
|
1007
1032
|
/** When the Harness can run again, as it reported; Kitman holds it for a while when this is missing or implausible. */
|
|
@@ -1103,6 +1128,9 @@ export declare const WorkUnitCompletion: Schema.Struct<{
|
|
|
1103
1128
|
readonly head: Schema.$Array<Schema.$Record<Schema.String, Schema.Finite>>;
|
|
1104
1129
|
readonly baseAgain: Schema.optionalKey<Schema.$Array<Schema.$Record<Schema.String, Schema.Finite>>>;
|
|
1105
1130
|
}>>;
|
|
1131
|
+
readonly resolved: Schema.optionalKey<Schema.Struct<{
|
|
1132
|
+
readonly commits: Schema.$Array<Schema.String>;
|
|
1133
|
+
}>>;
|
|
1106
1134
|
}>>;
|
|
1107
1135
|
readonly boundary: Schema.optionalKey<Schema.Struct<{
|
|
1108
1136
|
readonly kind: Schema.Literal<"change">;
|
|
@@ -1131,6 +1159,8 @@ export declare const WorkUnitCompletion: Schema.Struct<{
|
|
|
1131
1159
|
/** A list was longer than `catchUpPathLimit` and was cut. */
|
|
1132
1160
|
readonly truncated: Schema.Boolean;
|
|
1133
1161
|
}>>;
|
|
1162
|
+
/** The target's commit a base sync merged in, or tried to: what a review of the branch diffs against. */
|
|
1163
|
+
readonly syncedTarget: Schema.optionalKey<Schema.String>;
|
|
1134
1164
|
readonly harnessHold: Schema.optionalKey<Schema.Struct<{
|
|
1135
1165
|
readonly reason: Schema.Literals<readonly ["out_of_quota", "rate_limited", "login_refused", "failed_to_start"]>;
|
|
1136
1166
|
/** When the Harness can run again, as it reported; Kitman holds it for a while when this is missing or implausible. */
|
|
@@ -1158,6 +1188,8 @@ export type VerificationEvidence = (typeof VerificationEvidence)['Type'];
|
|
|
1158
1188
|
export type MeasurePlan = (typeof MeasurePlan)['Type'];
|
|
1159
1189
|
export type MeasureSpec = (typeof MeasureSpec)['Type'];
|
|
1160
1190
|
export type MeasureEvidence = (typeof MeasureEvidence)['Type'];
|
|
1191
|
+
export type ResolveSpec = (typeof ResolveSpec)['Type'];
|
|
1192
|
+
export type ResolvedRevisions = (typeof ResolvedRevisions)['Type'];
|
|
1161
1193
|
export type LoopCheckout = (typeof LoopCheckout)['Type'];
|
|
1162
1194
|
export type RunJournal = (typeof RunJournal)['Type'];
|
|
1163
1195
|
export type WorkUnitClaimResult = (typeof WorkUnitClaimResult)['Type'];
|
|
@@ -193,6 +193,9 @@ export declare const makeRunnerRpcClient: (options: ConnectionOptions) => Effect
|
|
|
193
193
|
readonly samples: number;
|
|
194
194
|
readonly calibrate: boolean;
|
|
195
195
|
};
|
|
196
|
+
readonly resolve?: {
|
|
197
|
+
readonly revisions: readonly string[];
|
|
198
|
+
};
|
|
196
199
|
readonly hosts?: readonly string[];
|
|
197
200
|
readonly storageOrigin?: string;
|
|
198
201
|
};
|
|
@@ -362,6 +365,9 @@ export declare const makeRunnerRpcClient: (options: ConnectionOptions) => Effect
|
|
|
362
365
|
readonly samples: number;
|
|
363
366
|
readonly calibrate: boolean;
|
|
364
367
|
};
|
|
368
|
+
readonly resolve?: {
|
|
369
|
+
readonly revisions: readonly string[];
|
|
370
|
+
};
|
|
365
371
|
readonly hosts?: readonly string[];
|
|
366
372
|
readonly storageOrigin?: string;
|
|
367
373
|
};
|
|
@@ -489,6 +495,9 @@ export declare const makeRunnerRpcClient: (options: ConnectionOptions) => Effect
|
|
|
489
495
|
readonly [x: string]: number;
|
|
490
496
|
}[];
|
|
491
497
|
};
|
|
498
|
+
readonly resolved?: {
|
|
499
|
+
readonly commits: readonly string[];
|
|
500
|
+
};
|
|
492
501
|
};
|
|
493
502
|
readonly boundary?: {
|
|
494
503
|
readonly kind: "change";
|
|
@@ -510,6 +519,7 @@ export declare const makeRunnerRpcClient: (options: ConnectionOptions) => Effect
|
|
|
510
519
|
readonly changed: readonly string[];
|
|
511
520
|
readonly truncated: boolean;
|
|
512
521
|
};
|
|
522
|
+
readonly syncedTarget?: string;
|
|
513
523
|
readonly harnessHold?: {
|
|
514
524
|
readonly reason: "failed_to_start" | "login_refused" | "out_of_quota" | "rate_limited";
|
|
515
525
|
readonly until?: string;
|
|
@@ -1254,6 +1264,9 @@ export declare const makeProgramRpcClient: (options: ConnectionOptions) => Effec
|
|
|
1254
1264
|
readonly samples: number;
|
|
1255
1265
|
readonly calibrate: boolean;
|
|
1256
1266
|
};
|
|
1267
|
+
readonly resolve?: {
|
|
1268
|
+
readonly revisions: readonly string[];
|
|
1269
|
+
};
|
|
1257
1270
|
}, options?: {
|
|
1258
1271
|
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
1259
1272
|
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
@@ -1731,6 +1744,7 @@ export declare const makeProgramRpcClient: (options: ConnectionOptions) => Effec
|
|
|
1731
1744
|
readonly runnerChecks?: readonly string[];
|
|
1732
1745
|
readonly approved?: string;
|
|
1733
1746
|
readonly repository?: string;
|
|
1747
|
+
readonly targetBranch?: string;
|
|
1734
1748
|
readonly conflicts?: boolean;
|
|
1735
1749
|
readonly needsRebase?: boolean;
|
|
1736
1750
|
readonly target?: {
|
|
@@ -1757,6 +1771,7 @@ export declare const makeProgramRpcClient: (options: ConnectionOptions) => Effec
|
|
|
1757
1771
|
readonly runnerChecks?: readonly string[];
|
|
1758
1772
|
readonly approved?: string;
|
|
1759
1773
|
readonly repository?: string;
|
|
1774
|
+
readonly targetBranch?: string;
|
|
1760
1775
|
readonly conflicts?: boolean;
|
|
1761
1776
|
readonly needsRebase?: boolean;
|
|
1762
1777
|
readonly target?: {
|