@kitman-sh/cli 0.35.0 → 0.37.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/{chunk-wkkjyzpx.js → chunk-2nqsmnx7.js} +4 -4
- package/dist/{chunk-ke4rajdh.js → chunk-2pqqspes.js} +128 -39
- package/dist/{chunk-qqb6djs7.js → chunk-310dsxts.js} +2 -2
- package/dist/{chunk-xc7kg57m.js → chunk-3xfsv475.js} +45 -45
- package/dist/{chunk-56gs4z53.js → chunk-5jnye659.js} +7 -7
- package/dist/{chunk-znhjs0t6.js → chunk-8b02x7vv.js} +1 -1
- package/dist/{chunk-1hgsf81a.js → chunk-98azvx6g.js} +1 -1
- package/dist/{chunk-c8eg05nh.js → chunk-av744yc8.js} +4 -4
- package/dist/{chunk-t205gnzc.js → chunk-ay4s5qnv.js} +5 -5
- package/dist/{chunk-n01c55f9.js → chunk-b4gf06xg.js} +5 -5
- package/dist/{chunk-61dmxexa.js → chunk-bqbfyqx6.js} +30 -70
- package/dist/{chunk-y3c9pxez.js → chunk-bvpa6jrp.js} +7 -7
- package/dist/{chunk-r9x4ehsy.js → chunk-cb6yfbkf.js} +6 -6
- package/dist/{chunk-4qrb09w4.js → chunk-d4vhrja4.js} +3 -3
- package/dist/{chunk-rbpn35g5.js → chunk-ea29sbaq.js} +1 -1
- package/dist/{chunk-64arqv10.js → chunk-g0vpp6p9.js} +7 -7
- package/dist/{chunk-n0bp958m.js → chunk-gfzzgz3h.js} +4 -4
- package/dist/{chunk-er0e8d8v.js → chunk-k9fnm7ds.js} +60 -14
- package/dist/{chunk-5e1ndtnp.js → chunk-kk1wfhhz.js} +2 -2
- package/dist/{chunk-nna9pwp0.js → chunk-mpw74rad.js} +48 -36
- package/dist/{chunk-tsefrrxz.js → chunk-pdcj5cfz.js} +1 -1
- package/dist/{chunk-z0gqrc8c.js → chunk-vyx49k26.js} +17 -17
- package/dist/{chunk-q8e58p57.js → chunk-wy6gmtd9.js} +2 -2
- package/dist/{chunk-yhat3rhw.js → chunk-xmdyfzf3.js} +125 -116
- package/dist/{chunk-ee7ss0df.js → chunk-ymzkqbye.js} +3 -3
- package/dist/{chunk-t9dmwy8x.js → chunk-za4cezh6.js} +19 -19
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
assignProperty,
|
|
39
39
|
PipeInspectableProto,
|
|
40
40
|
withFiber,
|
|
41
|
-
|
|
41
|
+
make14,
|
|
42
42
|
strictEqual,
|
|
43
43
|
Tuple,
|
|
44
44
|
Number2,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
Service2,
|
|
59
59
|
makeUnsafe4,
|
|
60
60
|
empty3,
|
|
61
|
-
|
|
61
|
+
make15,
|
|
62
62
|
add,
|
|
63
63
|
getOrUndefined2,
|
|
64
64
|
getOrUndefinedUnsafe,
|
|
@@ -89,7 +89,7 @@ import {
|
|
|
89
89
|
fail4,
|
|
90
90
|
isSuccess2,
|
|
91
91
|
makeUnsafe5,
|
|
92
|
-
|
|
92
|
+
make16,
|
|
93
93
|
_await,
|
|
94
94
|
fail5,
|
|
95
95
|
isDone,
|
|
@@ -192,9 +192,6 @@ import {
|
|
|
192
192
|
logError,
|
|
193
193
|
effectify,
|
|
194
194
|
decode,
|
|
195
|
-
isRedacted,
|
|
196
|
-
make16,
|
|
197
|
-
value,
|
|
198
195
|
defaultParseOptions,
|
|
199
196
|
omit,
|
|
200
197
|
map10,
|
|
@@ -265,7 +262,7 @@ import {
|
|
|
265
262
|
decodeJsonStringOption,
|
|
266
263
|
encodeJsonStringSync,
|
|
267
264
|
encodePrettyJsonString
|
|
268
|
-
} from "./chunk-
|
|
265
|
+
} from "./chunk-bqbfyqx6.js";
|
|
269
266
|
import {
|
|
270
267
|
map,
|
|
271
268
|
makeEquivalence,
|
|
@@ -276,8 +273,8 @@ import {
|
|
|
276
273
|
systemError,
|
|
277
274
|
badArgument,
|
|
278
275
|
makeUnsafe2,
|
|
279
|
-
make7,
|
|
280
276
|
make8,
|
|
277
|
+
make9,
|
|
281
278
|
sliding,
|
|
282
279
|
unbounded2,
|
|
283
280
|
offer,
|
|
@@ -293,13 +290,13 @@ import {
|
|
|
293
290
|
isSink,
|
|
294
291
|
fromChannel,
|
|
295
292
|
drain,
|
|
296
|
-
|
|
293
|
+
make10,
|
|
297
294
|
get3,
|
|
298
295
|
isStream,
|
|
299
296
|
fromChannel2,
|
|
300
297
|
callback,
|
|
301
298
|
empty2,
|
|
302
|
-
|
|
299
|
+
make11,
|
|
303
300
|
suspend,
|
|
304
301
|
fail2,
|
|
305
302
|
fromQueue,
|
|
@@ -325,28 +322,31 @@ import {
|
|
|
325
322
|
mkArrayBuffer,
|
|
326
323
|
toReadableStreamEffect,
|
|
327
324
|
FileSystem,
|
|
328
|
-
|
|
325
|
+
make12,
|
|
329
326
|
FileTypeId,
|
|
330
327
|
WatchBackend,
|
|
331
328
|
Path,
|
|
332
|
-
|
|
329
|
+
make13,
|
|
333
330
|
option,
|
|
334
331
|
String2,
|
|
335
332
|
optionalEnv,
|
|
336
333
|
harnessesUnsupportedInSrt2,
|
|
337
334
|
harnessesUnsupportedInDocker2
|
|
338
|
-
} from "./chunk-
|
|
335
|
+
} from "./chunk-vyx49k26.js";
|
|
339
336
|
import {
|
|
337
|
+
isRedacted,
|
|
338
|
+
make,
|
|
339
|
+
value,
|
|
340
340
|
ExitCode,
|
|
341
341
|
ProcessId,
|
|
342
342
|
makeHandle,
|
|
343
|
-
|
|
343
|
+
make2,
|
|
344
344
|
ChildProcessSpawner,
|
|
345
345
|
display,
|
|
346
|
-
|
|
346
|
+
make3,
|
|
347
347
|
parseFdName,
|
|
348
348
|
fdName
|
|
349
|
-
} from "./chunk-
|
|
349
|
+
} from "./chunk-k9fnm7ds.js";
|
|
350
350
|
import {
|
|
351
351
|
isDateTime,
|
|
352
352
|
Numeric,
|
|
@@ -359,7 +359,7 @@ import {
|
|
|
359
359
|
SecretScope,
|
|
360
360
|
SecretHosts,
|
|
361
361
|
isSecretReference
|
|
362
|
-
} from "./chunk-
|
|
362
|
+
} from "./chunk-ea29sbaq.js";
|
|
363
363
|
|
|
364
364
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
|
|
365
365
|
var makeEquivalence3 = Tuple;
|
|
@@ -518,7 +518,7 @@ var makeUnsafe6 = (input) => {
|
|
|
518
518
|
var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
|
|
519
519
|
var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
|
|
520
520
|
var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
|
|
521
|
-
var
|
|
521
|
+
var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
|
|
522
522
|
var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
|
|
523
523
|
var nowUnsafe = () => makeUtc(Date.now());
|
|
524
524
|
var toDateUtc = (self) => new Date(self.epochMilliseconds);
|
|
@@ -908,7 +908,7 @@ var toNumber = (b) => {
|
|
|
908
908
|
|
|
909
909
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
|
|
910
910
|
var makeUnsafe = makeUnsafe6;
|
|
911
|
-
var make18 =
|
|
911
|
+
var make18 = make4;
|
|
912
912
|
var now2 = now;
|
|
913
913
|
var nowUnsafe2 = nowUnsafe;
|
|
914
914
|
var toDateUtc2 = toDateUtc;
|
|
@@ -1123,7 +1123,7 @@ var readableToPullUnsafe = (options) => {
|
|
|
1123
1123
|
const readable = options.readable;
|
|
1124
1124
|
const chunkSize = options.chunkSize ?? 4096;
|
|
1125
1125
|
const closeOnDone = options.closeOnDone ?? true;
|
|
1126
|
-
const exit = options.exit ??
|
|
1126
|
+
const exit = options.exit ?? make8(undefined);
|
|
1127
1127
|
const latch = options.latch ?? makeUnsafe2(false);
|
|
1128
1128
|
function onReadable() {
|
|
1129
1129
|
latch.openUnsafe();
|
|
@@ -1687,7 +1687,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1687
1687
|
const sourceStream = unwrap(succeed6(getSourceStream(handles[handles.length - 1], options.from)));
|
|
1688
1688
|
const toOption = options.to ?? "stdin";
|
|
1689
1689
|
if (toOption === "stdin") {
|
|
1690
|
-
handles.push(yield* spawnCommand(
|
|
1690
|
+
handles.push(yield* spawnCommand(make3(command.command, command.args, {
|
|
1691
1691
|
...command.options,
|
|
1692
1692
|
stdin: {
|
|
1693
1693
|
...stdinConfig,
|
|
@@ -1707,7 +1707,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1707
1707
|
type: "input",
|
|
1708
1708
|
stream: sourceStream
|
|
1709
1709
|
};
|
|
1710
|
-
handles.push(yield* spawnCommand(
|
|
1710
|
+
handles.push(yield* spawnCommand(make3(command.command, command.args, {
|
|
1711
1711
|
...command.options,
|
|
1712
1712
|
additionalFds: {
|
|
1713
1713
|
...existingFds,
|
|
@@ -1715,7 +1715,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1715
1715
|
}
|
|
1716
1716
|
})));
|
|
1717
1717
|
} else {
|
|
1718
|
-
handles.push(yield* spawnCommand(
|
|
1718
|
+
handles.push(yield* spawnCommand(make3(command.command, command.args, {
|
|
1719
1719
|
...command.options,
|
|
1720
1720
|
stdin: {
|
|
1721
1721
|
...stdinConfig,
|
|
@@ -1754,7 +1754,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1754
1754
|
}
|
|
1755
1755
|
}
|
|
1756
1756
|
});
|
|
1757
|
-
return
|
|
1757
|
+
return make2(spawnCommand);
|
|
1758
1758
|
});
|
|
1759
1759
|
var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
|
|
1760
1760
|
var flattenCommand = (command) => {
|
|
@@ -2240,7 +2240,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
|
|
|
2240
2240
|
resume(fail7(handleBadArgument("writeFile")(err)));
|
|
2241
2241
|
}
|
|
2242
2242
|
});
|
|
2243
|
-
var makeFileSystem = /* @__PURE__ */ map9(/* @__PURE__ */ serviceOption(WatchBackend), (backend) =>
|
|
2243
|
+
var makeFileSystem = /* @__PURE__ */ map9(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make12({
|
|
2244
2244
|
access: access2,
|
|
2245
2245
|
chmod: chmod2,
|
|
2246
2246
|
chown: chown2,
|
|
@@ -2300,15 +2300,15 @@ var fileUrlOps = (windows) => ({
|
|
|
2300
2300
|
})
|
|
2301
2301
|
})
|
|
2302
2302
|
});
|
|
2303
|
-
var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2303
|
+
var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
|
|
2304
2304
|
...NodePath.posix,
|
|
2305
2305
|
.../* @__PURE__ */ fileUrlOps(false)
|
|
2306
2306
|
}));
|
|
2307
|
-
var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2307
|
+
var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
|
|
2308
2308
|
...NodePath.win32,
|
|
2309
2309
|
.../* @__PURE__ */ fileUrlOps(true)
|
|
2310
2310
|
}));
|
|
2311
|
-
var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2311
|
+
var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
|
|
2312
2312
|
...NodePath,
|
|
2313
2313
|
.../* @__PURE__ */ fileUrlOps(undefined)
|
|
2314
2314
|
}));
|
|
@@ -2835,12 +2835,12 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
|
2835
2835
|
if (typeof key === "string") {
|
|
2836
2836
|
const k = key.toLowerCase();
|
|
2837
2837
|
if (k in self) {
|
|
2838
|
-
out[k] =
|
|
2838
|
+
out[k] = make(self[k]);
|
|
2839
2839
|
}
|
|
2840
2840
|
} else {
|
|
2841
2841
|
for (const name in self) {
|
|
2842
2842
|
if (name.search(key) !== -1) {
|
|
2843
|
-
out[name] =
|
|
2843
|
+
out[name] = make(self[name]);
|
|
2844
2844
|
}
|
|
2845
2845
|
}
|
|
2846
2846
|
}
|
|
@@ -2947,7 +2947,7 @@ var fromInputNested = (input) => {
|
|
|
2947
2947
|
return out;
|
|
2948
2948
|
};
|
|
2949
2949
|
var coerce = (value) => isRedacted(value) ? value : String(value);
|
|
2950
|
-
var Equivalence3 = /* @__PURE__ */
|
|
2950
|
+
var Equivalence3 = /* @__PURE__ */ make14((a, b) => arrayEquivalence(a.params, b.params));
|
|
2951
2951
|
var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
|
|
2952
2952
|
var empty4 = /* @__PURE__ */ make23([]);
|
|
2953
2953
|
var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
@@ -2966,7 +2966,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
|
2966
2966
|
var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
|
|
2967
2967
|
var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
2968
2968
|
const patterns = Array.isArray(key) ? key : [key];
|
|
2969
|
-
return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ?
|
|
2969
|
+
return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make(value) : value]);
|
|
2970
2970
|
});
|
|
2971
2971
|
var isRedactedName2 = isRedactedName;
|
|
2972
2972
|
var redactUrl = (url, redactedNames = currentRedactedNames()) => {
|
|
@@ -3042,7 +3042,7 @@ import * as readline from "readline";
|
|
|
3042
3042
|
var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
|
|
3043
3043
|
const stdin = process.stdin;
|
|
3044
3044
|
const stdout = process.stdout;
|
|
3045
|
-
const lines = yield*
|
|
3045
|
+
const lines = yield* make9();
|
|
3046
3046
|
let inputEnded = stdin.readableEnded;
|
|
3047
3047
|
let readlineActive = false;
|
|
3048
3048
|
const onStdinEnd = () => {
|
|
@@ -3053,7 +3053,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3053
3053
|
};
|
|
3054
3054
|
stdin.once("end", onStdinEnd);
|
|
3055
3055
|
yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
|
|
3056
|
-
const rlRef = yield*
|
|
3056
|
+
const rlRef = yield* make10({
|
|
3057
3057
|
acquire: acquireRelease(sync2(() => {
|
|
3058
3058
|
const rl = readline.createInterface({
|
|
3059
3059
|
input: stdin,
|
|
@@ -3092,7 +3092,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3092
3092
|
if (stdin.isTTY)
|
|
3093
3093
|
stdin.setRawMode(enabled);
|
|
3094
3094
|
});
|
|
3095
|
-
const rawModeRef = yield*
|
|
3095
|
+
const rawModeRef = yield* make10({
|
|
3096
3096
|
acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
|
|
3097
3097
|
idleTimeToLive: "10 millis"
|
|
3098
3098
|
});
|
|
@@ -3113,7 +3113,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3113
3113
|
return queue;
|
|
3114
3114
|
});
|
|
3115
3115
|
const readInput = gen(function* () {
|
|
3116
|
-
const queue = yield*
|
|
3116
|
+
const queue = yield* make9();
|
|
3117
3117
|
const handleKeypress = (s, k) => {
|
|
3118
3118
|
const userInput = {
|
|
3119
3119
|
input: fromUndefinedOr(s),
|
|
@@ -7994,13 +7994,15 @@ var WorkUnitClaimInput = Struct({
|
|
|
7994
7994
|
runnerReplicaId: Id,
|
|
7995
7995
|
capacitySlot: String4.check(isMinLength(1), isMaxLength(240)),
|
|
7996
7996
|
idempotencyKey: String4.check(isMinLength(1), isMaxLength(240)),
|
|
7997
|
-
leaseDurationSeconds: optionalKey(Int.check(isGreaterThanOrEqualTo(1), isLessThanOrEqualTo(3600)))
|
|
7997
|
+
leaseDurationSeconds: optionalKey(Int.check(isGreaterThanOrEqualTo(1), isLessThanOrEqualTo(3600))),
|
|
7998
|
+
takesVerifications: optionalKey(Boolean2)
|
|
7998
7999
|
});
|
|
7999
8000
|
var WorkUnitHeartbeatInput = Struct({
|
|
8000
8001
|
workUnitId: Id,
|
|
8001
8002
|
lease: WorkUnitLeaseInput,
|
|
8002
8003
|
leaseDurationSeconds: optionalKey(Int.check(isGreaterThanOrEqualTo(1), isLessThanOrEqualTo(3600))),
|
|
8003
8004
|
harnessStarted: optionalKey(Literal(true)),
|
|
8005
|
+
takesVerifications: optionalKey(Boolean2),
|
|
8004
8006
|
secrets: optionalKey(ArraySchema(Struct({ name: SecretName, version: String4.check(isMinLength(1), isMaxLength(128)) })).check(isMaxLength(256)))
|
|
8005
8007
|
});
|
|
8006
8008
|
var WorkUnitHeartbeatResult = Struct({
|
|
@@ -8378,9 +8380,12 @@ var RunnerCapabilities = Struct({
|
|
|
8378
8380
|
applyChange: optionalKey(Boolean2)
|
|
8379
8381
|
});
|
|
8380
8382
|
var MaxRunnerConcurrency = 32;
|
|
8383
|
+
var DefaultVerificationConcurrency = 2;
|
|
8384
|
+
var verificationCap = (settings) => Math.min(settings.concurrency, settings.verificationConcurrency);
|
|
8381
8385
|
var PinnedImage = String4.check(isMaxLength(500), isPattern(new RegExp("^[^\\s@]+@sha256:[a-f0-9]{64}$", "u")));
|
|
8382
8386
|
var RunnerSettings = Struct({
|
|
8383
8387
|
concurrency: Int.check(isGreaterThanOrEqualTo(1), isLessThanOrEqualTo(MaxRunnerConcurrency)),
|
|
8388
|
+
verificationConcurrency: Int.check(isGreaterThanOrEqualTo(1), isLessThanOrEqualTo(MaxRunnerConcurrency)),
|
|
8384
8389
|
sandbox: RunnerExecutionBackend,
|
|
8385
8390
|
dockerImage: NullOr(PinnedImage),
|
|
8386
8391
|
checkHosts: ArraySchema(NetworkHost).check(isMaxLength(50)),
|
|
@@ -8389,6 +8394,7 @@ var RunnerSettings = Struct({
|
|
|
8389
8394
|
});
|
|
8390
8395
|
var RunnerSettingNames = [
|
|
8391
8396
|
"concurrency",
|
|
8397
|
+
"verificationConcurrency",
|
|
8392
8398
|
"sandbox",
|
|
8393
8399
|
"dockerImage",
|
|
8394
8400
|
"checkHosts",
|
|
@@ -8397,6 +8403,7 @@ var RunnerSettingNames = [
|
|
|
8397
8403
|
];
|
|
8398
8404
|
var RunnerSettingsUpdate = Struct({
|
|
8399
8405
|
concurrency: optionalKey(RunnerSettings.fields.concurrency),
|
|
8406
|
+
verificationConcurrency: optionalKey(RunnerSettings.fields.verificationConcurrency),
|
|
8400
8407
|
sandbox: optionalKey(RunnerSettings.fields.sandbox),
|
|
8401
8408
|
dockerImage: optionalKey(RunnerSettings.fields.dockerImage),
|
|
8402
8409
|
checkHosts: optionalKey(RunnerSettings.fields.checkHosts),
|
|
@@ -8405,10 +8412,12 @@ var RunnerSettingsUpdate = Struct({
|
|
|
8405
8412
|
});
|
|
8406
8413
|
var RunnerAppliedSettings = Struct({
|
|
8407
8414
|
...RunnerSettings.fields,
|
|
8415
|
+
verificationConcurrency: optionalKey(RunnerSettings.fields.verificationConcurrency),
|
|
8408
8416
|
fullAccessAllowed: Boolean2
|
|
8409
8417
|
});
|
|
8410
8418
|
var defaultRunnerSettings = (personal) => ({
|
|
8411
8419
|
concurrency: 1,
|
|
8420
|
+
verificationConcurrency: DefaultVerificationConcurrency,
|
|
8412
8421
|
sandbox: personal ? "srt" : "docker",
|
|
8413
8422
|
dockerImage: null,
|
|
8414
8423
|
checkHosts: [],
|
|
@@ -11135,14 +11144,14 @@ function makeWith(method, url, urlParams, hash, headers, body) {
|
|
|
11135
11144
|
return self;
|
|
11136
11145
|
}
|
|
11137
11146
|
var empty6 = /* @__PURE__ */ makeWith("GET", "", empty4, /* @__PURE__ */ none(), empty, empty5);
|
|
11138
|
-
var
|
|
11147
|
+
var make5 = (method) => (url, options) => modify(empty6, {
|
|
11139
11148
|
method,
|
|
11140
11149
|
url,
|
|
11141
11150
|
...options ?? undefined
|
|
11142
11151
|
});
|
|
11143
|
-
var get = /* @__PURE__ */
|
|
11144
|
-
var post = /* @__PURE__ */
|
|
11145
|
-
var put = /* @__PURE__ */
|
|
11152
|
+
var get = /* @__PURE__ */ make5("GET");
|
|
11153
|
+
var post = /* @__PURE__ */ make5("POST");
|
|
11154
|
+
var put = /* @__PURE__ */ make5("PUT");
|
|
11146
11155
|
var modify = /* @__PURE__ */ dual(2, (self, options) => {
|
|
11147
11156
|
let result = self;
|
|
11148
11157
|
if (options.method) {
|
|
@@ -11443,7 +11452,7 @@ var Proto7 = {
|
|
|
11443
11452
|
};
|
|
11444
11453
|
},
|
|
11445
11454
|
.../* @__PURE__ */ Object.fromEntries(/* @__PURE__ */ allShort.map(([fullMethod, method]) => [method, function(url, options) {
|
|
11446
|
-
return this.execute(
|
|
11455
|
+
return this.execute(make5(fullMethod)(url, options));
|
|
11447
11456
|
}]))
|
|
11448
11457
|
};
|
|
11449
11458
|
var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
|
|
@@ -15532,7 +15541,7 @@ var makeProto = (options) => {
|
|
|
15532
15541
|
Rpc.key = `effect/rpc/Rpc/${options._tag}`;
|
|
15533
15542
|
return Rpc;
|
|
15534
15543
|
};
|
|
15535
|
-
var
|
|
15544
|
+
var make6 = (tag, options) => {
|
|
15536
15545
|
const successSchema = options?.success ?? Void;
|
|
15537
15546
|
const errorSchema = options?.error ?? Never;
|
|
15538
15547
|
const defectSchema = options?.defect ?? Defect();
|
|
@@ -15743,7 +15752,7 @@ var RpcGroupProto = {
|
|
|
15743
15752
|
});
|
|
15744
15753
|
},
|
|
15745
15754
|
annotateRpcs(service, value) {
|
|
15746
|
-
return this.annotateRpcsMerge(
|
|
15755
|
+
return this.annotateRpcsMerge(make15(service, value));
|
|
15747
15756
|
},
|
|
15748
15757
|
annotateMerge(context) {
|
|
15749
15758
|
return makeProto2({
|
|
@@ -15766,7 +15775,7 @@ var makeProto2 = (options) => Object.assign(function() {}, RpcGroupProto, {
|
|
|
15766
15775
|
requests: options.requests,
|
|
15767
15776
|
annotations: options.annotations
|
|
15768
15777
|
});
|
|
15769
|
-
var
|
|
15778
|
+
var make7 = (...rpcs) => makeProto2({
|
|
15770
15779
|
requests: new Map(rpcs.map((rpc) => [rpc._tag, rpc])),
|
|
15771
15780
|
annotations: empty3()
|
|
15772
15781
|
});
|
|
@@ -15875,77 +15884,77 @@ var ProgramOutcome = Union([
|
|
|
15875
15884
|
Struct({ status: Literal("failed"), failureSummary: String4 })
|
|
15876
15885
|
]);
|
|
15877
15886
|
|
|
15878
|
-
class RunnerReplicaRpcs extends make6(
|
|
15887
|
+
class RunnerReplicaRpcs extends make7(make6("Claim", {
|
|
15879
15888
|
payload: WorkUnitClaimInput,
|
|
15880
15889
|
success: WorkUnitClaimResult,
|
|
15881
15890
|
error: RunnerRpcError
|
|
15882
|
-
}),
|
|
15891
|
+
}), make6("Heartbeat", {
|
|
15883
15892
|
payload: WorkUnitHeartbeatInput,
|
|
15884
15893
|
success: WorkUnitHeartbeatResult,
|
|
15885
15894
|
error: RunnerRpcError
|
|
15886
|
-
}),
|
|
15895
|
+
}), make6("Complete", {
|
|
15887
15896
|
payload: WorkUnitCompletion,
|
|
15888
15897
|
error: RunnerRpcError
|
|
15889
|
-
}),
|
|
15898
|
+
}), make6("Release", {
|
|
15890
15899
|
payload: WorkUnitReleaseInput,
|
|
15891
15900
|
error: RunnerRpcError
|
|
15892
|
-
}),
|
|
15901
|
+
}), make6("Signals", {
|
|
15893
15902
|
payload: { runnerReplicaId: String4 },
|
|
15894
15903
|
success: RunnerSignal,
|
|
15895
15904
|
error: RunnerRpcError,
|
|
15896
15905
|
stream: true
|
|
15897
|
-
}),
|
|
15906
|
+
}), make6("ReportSteer", {
|
|
15898
15907
|
payload: { workUnitId: String4, messageId: String4, delivered: Boolean2 },
|
|
15899
15908
|
success: Void,
|
|
15900
15909
|
error: RunnerRpcError
|
|
15901
|
-
}),
|
|
15910
|
+
}), make6("AppendTranscript", {
|
|
15902
15911
|
payload: { workUnitId: String4, entries: ArraySchema(TranscriptAppendEntry).check(isMaxLength(100)) },
|
|
15903
15912
|
success: Void,
|
|
15904
15913
|
error: RunnerRpcError
|
|
15905
|
-
}),
|
|
15914
|
+
}), make6("CreateCheckpointFile", {
|
|
15906
15915
|
payload: { lease: ProgramLease, byteSize: Int, sha256: String4 },
|
|
15907
15916
|
success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
|
|
15908
15917
|
error: Union([RunnerRpcError, RunFileRefused])
|
|
15909
|
-
}),
|
|
15918
|
+
}), make6("CheckpointFileParts", {
|
|
15910
15919
|
payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
|
|
15911
15920
|
success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
|
|
15912
15921
|
error: RunnerRpcError
|
|
15913
|
-
}),
|
|
15922
|
+
}), make6("CompleteCheckpointFile", {
|
|
15914
15923
|
payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
|
|
15915
15924
|
success: RunFileRecord,
|
|
15916
15925
|
error: RunnerRpcError
|
|
15917
|
-
}),
|
|
15926
|
+
}), make6("SaveCheckpoint", {
|
|
15918
15927
|
payload: { lease: ProgramLease, checkpoint: StepCheckpoint },
|
|
15919
15928
|
success: Void,
|
|
15920
15929
|
error: RunnerRpcError
|
|
15921
|
-
}),
|
|
15930
|
+
}), make6("ResumeCheckpoint", {
|
|
15922
15931
|
payload: { lease: ProgramLease },
|
|
15923
15932
|
success: UndefinedOr(ResumedCheckpoint),
|
|
15924
15933
|
error: RunnerRpcError
|
|
15925
|
-
}),
|
|
15934
|
+
}), make6("SettledCheckpoints", {
|
|
15926
15935
|
success: ArraySchema(Struct({
|
|
15927
15936
|
stepAttemptId: String4,
|
|
15928
15937
|
ref: optionalKey(String4),
|
|
15929
15938
|
repoBinding: optionalKey(WorkUnitRepoBinding)
|
|
15930
15939
|
})),
|
|
15931
15940
|
error: RunnerRpcError
|
|
15932
|
-
}),
|
|
15941
|
+
}), make6("ForgetCheckpoints", {
|
|
15933
15942
|
payload: { stepAttemptIds: ArraySchema(String4) },
|
|
15934
15943
|
success: Void,
|
|
15935
15944
|
error: RunnerRpcError
|
|
15936
|
-
}),
|
|
15945
|
+
}), make6("GitCredential", {
|
|
15937
15946
|
payload: { repoBindingId: String4 },
|
|
15938
15947
|
success: UndefinedOr(Struct({ username: String4, password: String4 })),
|
|
15939
15948
|
error: RunnerRpcError
|
|
15940
|
-
}),
|
|
15949
|
+
}), make6("Bundle", {
|
|
15941
15950
|
payload: { digest: String4 },
|
|
15942
15951
|
success: Struct({ bundle: String4 }),
|
|
15943
15952
|
error: RunnerRpcError
|
|
15944
|
-
}),
|
|
15953
|
+
}), make6("SettledRuns", {
|
|
15945
15954
|
payload: { runIds: ArraySchema(String4) },
|
|
15946
15955
|
success: ArraySchema(String4),
|
|
15947
15956
|
error: RunnerRpcError
|
|
15948
|
-
}),
|
|
15957
|
+
}), make6("KnownEvidence", {
|
|
15949
15958
|
payload: { lease: ProgramLease, trees: ArraySchema(String4) },
|
|
15950
15959
|
success: ArraySchema(Struct({
|
|
15951
15960
|
tree: String4,
|
|
@@ -15957,24 +15966,24 @@ class RunnerReplicaRpcs extends make6(make5("Claim", {
|
|
|
15957
15966
|
})).middleware(RunnerAuthentication) {
|
|
15958
15967
|
}
|
|
15959
15968
|
|
|
15960
|
-
class RunnerJournalRpcs extends make6(
|
|
15969
|
+
class RunnerJournalRpcs extends make7(make6("RecordActivity", {
|
|
15961
15970
|
payload: { lease: ProgramLease, name: String4, attempt: Int, exit: Json },
|
|
15962
15971
|
error: RunnerRpcError
|
|
15963
|
-
}),
|
|
15972
|
+
}), make6("DeferredDone", {
|
|
15964
15973
|
payload: { lease: ProgramLease, name: String4, exit: Json },
|
|
15965
15974
|
error: RunnerRpcError
|
|
15966
|
-
}),
|
|
15975
|
+
}), make6("ScheduleClock", {
|
|
15967
15976
|
payload: { lease: ProgramLease, name: String4, deferredName: String4, durationMillis: Int },
|
|
15968
15977
|
error: RunnerRpcError
|
|
15969
|
-
}),
|
|
15978
|
+
}), make6("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make6("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
|
|
15970
15979
|
}
|
|
15971
|
-
var RunHostStep =
|
|
15980
|
+
var RunHostStep = make6("RunHostStep", {
|
|
15972
15981
|
payload: { lease: ProgramLease, step: String4, hostStep: String4, request: Json },
|
|
15973
15982
|
success: Json,
|
|
15974
15983
|
error: RunnerRpcError
|
|
15975
15984
|
});
|
|
15976
15985
|
|
|
15977
|
-
class RunnerCapabilityRpcs extends make6(
|
|
15986
|
+
class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
15978
15987
|
payload: {
|
|
15979
15988
|
lease: ProgramLease,
|
|
15980
15989
|
step: String4,
|
|
@@ -15994,7 +16003,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
15994
16003
|
},
|
|
15995
16004
|
success: Struct({ questionId: String4 }),
|
|
15996
16005
|
error: RunnerRpcError
|
|
15997
|
-
}),
|
|
16006
|
+
}), make6("StartAgentStep", {
|
|
15998
16007
|
payload: {
|
|
15999
16008
|
lease: ProgramLease,
|
|
16000
16009
|
step: String4,
|
|
@@ -16011,7 +16020,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
16011
16020
|
},
|
|
16012
16021
|
success: Struct({ stepAttemptId: String4 }),
|
|
16013
16022
|
error: RunnerRpcError
|
|
16014
|
-
}),
|
|
16023
|
+
}), make6("StartVerification", {
|
|
16015
16024
|
payload: {
|
|
16016
16025
|
lease: ProgramLease,
|
|
16017
16026
|
step: String4,
|
|
@@ -16035,7 +16044,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
16035
16044
|
},
|
|
16036
16045
|
success: Struct({ verificationId: String4 }),
|
|
16037
16046
|
error: RunnerRpcError
|
|
16038
|
-
}),
|
|
16047
|
+
}), make6("AwaitEvent", {
|
|
16039
16048
|
payload: {
|
|
16040
16049
|
lease: ProgramLease,
|
|
16041
16050
|
step: String4,
|
|
@@ -16051,7 +16060,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
16051
16060
|
})))
|
|
16052
16061
|
},
|
|
16053
16062
|
error: RunnerRpcError
|
|
16054
|
-
}),
|
|
16063
|
+
}), make6("ClaimResource", {
|
|
16055
16064
|
payload: {
|
|
16056
16065
|
lease: ProgramLease,
|
|
16057
16066
|
step: String4,
|
|
@@ -16062,7 +16071,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
16062
16071
|
claims: optionalKey(ArraySchema(String4))
|
|
16063
16072
|
},
|
|
16064
16073
|
error: RunnerRpcError
|
|
16065
|
-
}),
|
|
16074
|
+
}), make6("AdmitChild", {
|
|
16066
16075
|
payload: {
|
|
16067
16076
|
lease: ProgramLease,
|
|
16068
16077
|
step: String4,
|
|
@@ -16073,7 +16082,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
16073
16082
|
},
|
|
16074
16083
|
success: Struct({ runId: String4 }),
|
|
16075
16084
|
error: RunnerRpcError
|
|
16076
|
-
}),
|
|
16085
|
+
}), make6("AdmitChildById", {
|
|
16077
16086
|
payload: {
|
|
16078
16087
|
lease: ProgramLease,
|
|
16079
16088
|
step: String4,
|
|
@@ -16084,18 +16093,18 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
16084
16093
|
},
|
|
16085
16094
|
success: Struct({ runId: String4 }),
|
|
16086
16095
|
error: RunnerRpcError
|
|
16087
|
-
}),
|
|
16096
|
+
}), make6("CallableLoops", {
|
|
16088
16097
|
payload: { lease: ProgramLease, step: String4, taskId: optional(String4) },
|
|
16089
16098
|
success: Struct({ loops: ArraySchema(CallableLoop) }),
|
|
16090
16099
|
error: RunnerRpcError
|
|
16091
|
-
}),
|
|
16100
|
+
}), make6("StopLaunches", {
|
|
16092
16101
|
payload: {
|
|
16093
16102
|
lease: ProgramLease,
|
|
16094
16103
|
step: String4,
|
|
16095
16104
|
deferredNames: ArraySchema(String4)
|
|
16096
16105
|
},
|
|
16097
16106
|
error: RunnerRpcError
|
|
16098
|
-
}),
|
|
16107
|
+
}), make6("StoreArtifact", {
|
|
16099
16108
|
payload: {
|
|
16100
16109
|
lease: ProgramLease,
|
|
16101
16110
|
step: String4,
|
|
@@ -16107,7 +16116,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
16107
16116
|
},
|
|
16108
16117
|
success: Struct({ artifactId: String4 }),
|
|
16109
16118
|
error: RunnerRpcError
|
|
16110
|
-
}),
|
|
16119
|
+
}), make6("RecordNote", {
|
|
16111
16120
|
payload: {
|
|
16112
16121
|
lease: ProgramLease,
|
|
16113
16122
|
step: String4,
|
|
@@ -16116,7 +16125,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
16116
16125
|
kind: optional(Literals(["note", "blocker"]))
|
|
16117
16126
|
},
|
|
16118
16127
|
error: RunnerRpcError
|
|
16119
|
-
}),
|
|
16128
|
+
}), make6("PerformHostEffect", {
|
|
16120
16129
|
payload: {
|
|
16121
16130
|
lease: ProgramLease,
|
|
16122
16131
|
step: String4,
|
|
@@ -16145,7 +16154,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
16145
16154
|
},
|
|
16146
16155
|
success: UndefinedOr(Struct({ id: String4, number: String4, url: String4 })),
|
|
16147
16156
|
error: RunnerRpcError
|
|
16148
|
-
}),
|
|
16157
|
+
}), make6("AlertTask", {
|
|
16149
16158
|
payload: {
|
|
16150
16159
|
lease: ProgramLease,
|
|
16151
16160
|
step: String4,
|
|
@@ -16162,7 +16171,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
16162
16171
|
joined: optionalKey(Struct({ kind: Literals(["run", "recent"]), runId: String4 }))
|
|
16163
16172
|
}),
|
|
16164
16173
|
error: RunnerRpcError
|
|
16165
|
-
}),
|
|
16174
|
+
}), make6("ReadTranscripts", {
|
|
16166
16175
|
payload: {
|
|
16167
16176
|
lease: ProgramLease,
|
|
16168
16177
|
step: String4,
|
|
@@ -16197,7 +16206,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
16197
16206
|
})))
|
|
16198
16207
|
}),
|
|
16199
16208
|
error: RunnerRpcError
|
|
16200
|
-
}),
|
|
16209
|
+
}), make6("PipelineStatus", {
|
|
16201
16210
|
payload: {
|
|
16202
16211
|
lease: ProgramLease,
|
|
16203
16212
|
step: String4,
|
|
@@ -16237,11 +16246,11 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
16237
16246
|
}))
|
|
16238
16247
|
}),
|
|
16239
16248
|
error: RunnerRpcError
|
|
16240
|
-
}),
|
|
16249
|
+
}), make6("ReportPipeline", {
|
|
16241
16250
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4, verification: String4 },
|
|
16242
16251
|
success: Struct({ head: String4, status: Literals(["success", "failed"]) }),
|
|
16243
16252
|
error: RunnerRpcError
|
|
16244
|
-
}),
|
|
16253
|
+
}), make6("ReviewThreads", {
|
|
16245
16254
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
|
|
16246
16255
|
success: Struct({
|
|
16247
16256
|
threads: ArraySchema(Struct({
|
|
@@ -16253,7 +16262,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
16253
16262
|
}))
|
|
16254
16263
|
}),
|
|
16255
16264
|
error: RunnerRpcError
|
|
16256
|
-
}),
|
|
16265
|
+
}), make6("OpenChangeRequests", {
|
|
16257
16266
|
payload: { lease: ProgramLease, step: String4, authors: NonEmptyArray(String4) },
|
|
16258
16267
|
success: Struct({
|
|
16259
16268
|
changeRequests: ArraySchema(Struct({
|
|
@@ -16267,7 +16276,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
16267
16276
|
}))
|
|
16268
16277
|
}),
|
|
16269
16278
|
error: RunnerRpcError
|
|
16270
|
-
}),
|
|
16279
|
+
}), make6("OwnChangeRequests", {
|
|
16271
16280
|
payload: { lease: ProgramLease, step: String4 },
|
|
16272
16281
|
success: Struct({
|
|
16273
16282
|
changeRequests: ArraySchema(Struct({
|
|
@@ -16280,7 +16289,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
16280
16289
|
}))
|
|
16281
16290
|
}),
|
|
16282
16291
|
error: RunnerRpcError
|
|
16283
|
-
}),
|
|
16292
|
+
}), make6("Propose", {
|
|
16284
16293
|
payload: {
|
|
16285
16294
|
lease: ProgramLease,
|
|
16286
16295
|
step: String4,
|
|
@@ -16309,7 +16318,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
16309
16318
|
task: optionalKey(Struct({ id: String4, active: Boolean2 }))
|
|
16310
16319
|
}),
|
|
16311
16320
|
error: RunnerRpcError
|
|
16312
|
-
}),
|
|
16321
|
+
}), make6("ReadProject", {
|
|
16313
16322
|
payload: { lease: ProgramLease, step: String4, projectId: String4 },
|
|
16314
16323
|
success: Struct({
|
|
16315
16324
|
project: Struct({ id: String4, name: String4 }),
|
|
@@ -16332,7 +16341,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
16332
16341
|
taskChanges: ArraySchema(Struct({ taskKey: String4, title: String4, change: String4, at: String4 }))
|
|
16333
16342
|
}),
|
|
16334
16343
|
error: RunnerRpcError
|
|
16335
|
-
}),
|
|
16344
|
+
}), make6("DraftUpdate", {
|
|
16336
16345
|
payload: {
|
|
16337
16346
|
lease: ProgramLease,
|
|
16338
16347
|
step: String4,
|
|
@@ -16347,7 +16356,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
16347
16356
|
},
|
|
16348
16357
|
success: Struct({ id: String4 }),
|
|
16349
16358
|
error: RunnerRpcError
|
|
16350
|
-
}),
|
|
16359
|
+
}), make6("CreatePlanTasks", {
|
|
16351
16360
|
payload: {
|
|
16352
16361
|
lease: ProgramLease,
|
|
16353
16362
|
projectId: optionalKey(String4),
|
|
@@ -16368,15 +16377,15 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
16368
16377
|
},
|
|
16369
16378
|
success: ArraySchema(Struct({ key: String4, taskId: String4 })),
|
|
16370
16379
|
error: RunnerRpcError
|
|
16371
|
-
}),
|
|
16380
|
+
}), make6("IntegrationBranch", {
|
|
16372
16381
|
payload: { lease: ProgramLease, repoBindingId: optionalKey(String4) },
|
|
16373
16382
|
success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
|
|
16374
16383
|
error: RunnerRpcError
|
|
16375
|
-
}),
|
|
16384
|
+
}), make6("DeliveryBase", {
|
|
16376
16385
|
payload: { lease: ProgramLease },
|
|
16377
16386
|
success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
|
|
16378
16387
|
error: RunnerRpcError
|
|
16379
|
-
}),
|
|
16388
|
+
}), make6("Branch", {
|
|
16380
16389
|
payload: {
|
|
16381
16390
|
lease: ProgramLease,
|
|
16382
16391
|
branch: optionalKey(String4),
|
|
@@ -16391,7 +16400,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
16391
16400
|
created: Boolean2
|
|
16392
16401
|
}),
|
|
16393
16402
|
error: RunnerRpcError
|
|
16394
|
-
}),
|
|
16403
|
+
}), make6("BranchChangeRequest", {
|
|
16395
16404
|
payload: {
|
|
16396
16405
|
lease: ProgramLease,
|
|
16397
16406
|
step: String4,
|
|
@@ -16414,7 +16423,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
16414
16423
|
Struct({ status: Literal("elsewhere"), team: String4 })
|
|
16415
16424
|
]),
|
|
16416
16425
|
error: RunnerRpcError
|
|
16417
|
-
}),
|
|
16426
|
+
}), make6("MergeChangeRequest", {
|
|
16418
16427
|
payload: {
|
|
16419
16428
|
lease: ProgramLease,
|
|
16420
16429
|
step: String4,
|
|
@@ -16432,7 +16441,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
16432
16441
|
Struct({ status: Literal("moved"), head: String4 })
|
|
16433
16442
|
]),
|
|
16434
16443
|
error: RunnerRpcError
|
|
16435
|
-
}),
|
|
16444
|
+
}), make6("ApproveChangeRequest", {
|
|
16436
16445
|
payload: {
|
|
16437
16446
|
lease: ProgramLease,
|
|
16438
16447
|
step: String4,
|
|
@@ -16448,7 +16457,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
16448
16457
|
Struct({ approved: Literal(false), reason: String4 })
|
|
16449
16458
|
]),
|
|
16450
16459
|
error: RunnerRpcError
|
|
16451
|
-
}),
|
|
16460
|
+
}), make6("CloseChangeRequest", {
|
|
16452
16461
|
payload: {
|
|
16453
16462
|
lease: ProgramLease,
|
|
16454
16463
|
step: String4,
|
|
@@ -16458,7 +16467,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
16458
16467
|
},
|
|
16459
16468
|
success: Struct({ closed: Boolean2, head: optionalKey(String4) }),
|
|
16460
16469
|
error: RunnerRpcError
|
|
16461
|
-
}),
|
|
16470
|
+
}), make6("RerunPipeline", {
|
|
16462
16471
|
payload: {
|
|
16463
16472
|
lease: ProgramLease,
|
|
16464
16473
|
step: String4,
|
|
@@ -16468,7 +16477,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
16468
16477
|
},
|
|
16469
16478
|
success: Struct({ head: String4, pipelines: Int }),
|
|
16470
16479
|
error: RunnerRpcError
|
|
16471
|
-
}),
|
|
16480
|
+
}), make6("PublishRelease", {
|
|
16472
16481
|
payload: {
|
|
16473
16482
|
lease: ProgramLease,
|
|
16474
16483
|
step: String4,
|
|
@@ -16482,7 +16491,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
16482
16491
|
},
|
|
16483
16492
|
success: Struct({ tag: String4, revision: String4, url: String4 }),
|
|
16484
16493
|
error: RunnerRpcError
|
|
16485
|
-
}),
|
|
16494
|
+
}), make6("RecordDeploy", {
|
|
16486
16495
|
payload: {
|
|
16487
16496
|
lease: ProgramLease,
|
|
16488
16497
|
step: String4,
|
|
@@ -16494,7 +16503,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
16494
16503
|
},
|
|
16495
16504
|
success: Deploy,
|
|
16496
16505
|
error: RunnerRpcError
|
|
16497
|
-
}),
|
|
16506
|
+
}), make6("DeployTarget", {
|
|
16498
16507
|
payload: { lease: ProgramLease, step: String4, target: DeployTargetName },
|
|
16499
16508
|
success: Struct({
|
|
16500
16509
|
target: String4,
|
|
@@ -16502,14 +16511,14 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
16502
16511
|
order: optionalKey(ArraySchema(String4))
|
|
16503
16512
|
}),
|
|
16504
16513
|
error: RunnerRpcError
|
|
16505
|
-
}), RunHostStep,
|
|
16514
|
+
}), RunHostStep, make6("ProgramSecrets", {
|
|
16506
16515
|
payload: { lease: ProgramLease },
|
|
16507
16516
|
success: Record(String4, String4),
|
|
16508
16517
|
error: RunnerRpcError
|
|
16509
16518
|
})).middleware(RunnerAuthentication) {
|
|
16510
16519
|
}
|
|
16511
16520
|
|
|
16512
|
-
class RunnerRunFileRpcs extends make6(
|
|
16521
|
+
class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
|
|
16513
16522
|
payload: {
|
|
16514
16523
|
lease: ProgramLease,
|
|
16515
16524
|
step: String4,
|
|
@@ -16521,11 +16530,11 @@ class RunnerRunFileRpcs extends make6(make5("CreateRunFile", {
|
|
|
16521
16530
|
},
|
|
16522
16531
|
success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
|
|
16523
16532
|
error: Union([RunnerRpcError, RunFileRefused])
|
|
16524
|
-
}),
|
|
16533
|
+
}), make6("RunFileParts", {
|
|
16525
16534
|
payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
|
|
16526
16535
|
success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
|
|
16527
16536
|
error: RunnerRpcError
|
|
16528
|
-
}),
|
|
16537
|
+
}), make6("CompleteRunFile", {
|
|
16529
16538
|
payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
|
|
16530
16539
|
success: RunFileRecord,
|
|
16531
16540
|
error: RunnerRpcError
|
|
@@ -16614,7 +16623,7 @@ function toStoredSession(token, existingRefreshToken) {
|
|
|
16614
16623
|
}
|
|
16615
16624
|
function startLoopbackServer(input) {
|
|
16616
16625
|
return gen(function* () {
|
|
16617
|
-
const code = yield*
|
|
16626
|
+
const code = yield* make16();
|
|
16618
16627
|
const context2 = yield* context();
|
|
16619
16628
|
const runSyncExit = runSyncExitWith(context2);
|
|
16620
16629
|
const server = yield* acquireRelease(sync2(() => Bun.serve({
|
|
@@ -17162,7 +17171,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
17162
17171
|
let lastId = 0;
|
|
17163
17172
|
let lost = false;
|
|
17164
17173
|
const notifications = yield* unbounded2();
|
|
17165
|
-
const ended = yield*
|
|
17174
|
+
const ended = yield* make16();
|
|
17166
17175
|
const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
|
|
17167
17176
|
onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
|
|
17168
17177
|
onNone: () => void_3,
|
|
@@ -17189,7 +17198,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
17189
17198
|
if (lost)
|
|
17190
17199
|
return yield* new HerdrCoreConnectionLost2({ method });
|
|
17191
17200
|
const id = ++lastId;
|
|
17192
|
-
const deferred = yield*
|
|
17201
|
+
const deferred = yield* make16();
|
|
17193
17202
|
pending.set(id, { method, deferred });
|
|
17194
17203
|
yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
|
|
17195
17204
|
return yield* _await(deferred);
|
|
@@ -17263,14 +17272,14 @@ var herdrCoreOver = (transport) => ({
|
|
|
17263
17272
|
return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
|
|
17264
17273
|
};
|
|
17265
17274
|
const snapshot = { type: "snapshot", terminals: subscribed.terminals };
|
|
17266
|
-
return concat(
|
|
17275
|
+
return concat(make11(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
|
|
17267
17276
|
}))
|
|
17268
17277
|
});
|
|
17269
17278
|
var spawnedTransport = (env) => gen(function* () {
|
|
17270
17279
|
const spawner = yield* ChildProcessSpawner;
|
|
17271
17280
|
const input = yield* unbounded2();
|
|
17272
17281
|
const encoder = new TextEncoder;
|
|
17273
|
-
const handle = yield* spawner.spawn(
|
|
17282
|
+
const handle = yield* spawner.spawn(make3("herdr-core", ["connect"], {
|
|
17274
17283
|
extendEnv: false,
|
|
17275
17284
|
env,
|
|
17276
17285
|
stdin: fromQueue(input),
|
|
@@ -17301,7 +17310,7 @@ var updateHerdrCore2 = (options) => gen(function* () {
|
|
|
17301
17310
|
const spawner = yield* ChildProcessSpawner;
|
|
17302
17311
|
const env = coreEnv(options);
|
|
17303
17312
|
const run = (args) => gen(function* () {
|
|
17304
|
-
const handle = yield* spawner.spawn(
|
|
17313
|
+
const handle = yield* spawner.spawn(make3("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
|
|
17305
17314
|
const [stdout, stderr, exitCode] = yield* all3([
|
|
17306
17315
|
mkString(decodeText(handle.stdout)),
|
|
17307
17316
|
mkString(decodeText(handle.stderr)),
|
|
@@ -17327,7 +17336,7 @@ class CommandFailed2 extends TaggedError("CommandFailed") {
|
|
|
17327
17336
|
}
|
|
17328
17337
|
var runCommand2 = (command, args, options = {}) => gen(function* () {
|
|
17329
17338
|
const spawner = yield* ChildProcessSpawner;
|
|
17330
|
-
const handle = yield* spawner.spawn(
|
|
17339
|
+
const handle = yield* spawner.spawn(make3(command, args, {
|
|
17331
17340
|
stdin: "ignore",
|
|
17332
17341
|
...options.cwd === undefined ? undefined : { cwd: options.cwd },
|
|
17333
17342
|
...options.env === undefined ? undefined : { extendEnv: true, env: options.env }
|
|
@@ -17353,8 +17362,8 @@ var shellOutputTailChars2 = 64 * 1024;
|
|
|
17353
17362
|
var runProcess2 = (argv, options) => gen(function* () {
|
|
17354
17363
|
const spawner = yield* ChildProcessSpawner;
|
|
17355
17364
|
const [command, ...args] = argv;
|
|
17356
|
-
const handle = yield* spawner.spawn(
|
|
17357
|
-
stdin: options.stdin === undefined ? "ignore" :
|
|
17365
|
+
const handle = yield* spawner.spawn(make3(command, args, {
|
|
17366
|
+
stdin: options.stdin === undefined ? "ignore" : make11(new TextEncoder().encode(options.stdin)),
|
|
17358
17367
|
...options.cwd === undefined ? undefined : { cwd: options.cwd },
|
|
17359
17368
|
env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
|
|
17360
17369
|
}));
|
|
@@ -17874,4 +17883,4 @@ function serviceChecks(declaration) {
|
|
|
17874
17883
|
return decoded === undefined || decoded.services.length === 0 ? [] : [...new Set(decoded.checks ?? [])];
|
|
17875
17884
|
}
|
|
17876
17885
|
|
|
17877
|
-
export { WebCrypto, SecureRandom, layerWebCrypto, makeUnsafe, formatIso, empty, fromInput, merge, runMain, layer, layer2, Stdio, Terminal, layer3, error, log, toDate, parseDate, toIso, currentDate, wallClockMillis, waitingOnWords, queueWords, scanDurableSurface, redactResponseSurface, redactCredentials, redactedOutputTail, ReleaseChannels, DefaultReleaseChannel, newerKitmanVersion, releaseChannelOffers, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, RepoBindingProvider, findForbiddenRepoBindingSecretPath, releaseVersion, ReleaseScope, isBranchName, baseBranchLayerWords, repositoryKey, loopInputFields, InputSourceLayers, InputSource, inputSourceWords, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, tokensSpent, tokenCountWords, endsFailing, outlineText, anyFailure, goesOn, outlineMermaid, runOutlineText, isTestReportName, testDigest, failedTestOfLine, printedNotReported, failedTestsOf, testOutcomes, checkTests, loopSafeTextMaxLength, recommendedDefault, reportedModelName, RunDisplayStates, RunWaitUntils, calverNumbers, compareCalver, DeliveryMode, defaultDeployCommand, ProgramWorkUnit, MeasureSample, MeasureEvidence, TagVersions, compareCommitMax, commitMessageMax, commandTimeoutMillisDefault, commandTextLimit, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, MaxRunnerConcurrency, PinnedImage, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, deliveryProviderActions, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, DeployTargetName, DeployRef, DeployStatus, runsDeployedTag, Deploy, DeployTargetRunning, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, ClaimResult, mergeTurnResource, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw,
|
|
17886
|
+
export { WebCrypto, SecureRandom, layerWebCrypto, makeUnsafe, formatIso, empty, fromInput, merge, runMain, layer, layer2, Stdio, Terminal, layer3, error, log, toDate, parseDate, toIso, currentDate, wallClockMillis, waitingOnWords, queueWords, scanDurableSurface, redactResponseSurface, redactCredentials, redactedOutputTail, ReleaseChannels, DefaultReleaseChannel, newerKitmanVersion, releaseChannelOffers, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, RepoBindingProvider, findForbiddenRepoBindingSecretPath, releaseVersion, ReleaseScope, isBranchName, baseBranchLayerWords, repositoryKey, loopInputFields, InputSourceLayers, InputSource, inputSourceWords, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, tokensSpent, tokenCountWords, endsFailing, outlineText, anyFailure, goesOn, outlineMermaid, runOutlineText, isTestReportName, testDigest, failedTestOfLine, printedNotReported, failedTestsOf, testOutcomes, checkTests, loopSafeTextMaxLength, recommendedDefault, reportedModelName, RunDisplayStates, RunWaitUntils, calverNumbers, compareCalver, DeliveryMode, defaultDeployCommand, ProgramWorkUnit, MeasureSample, MeasureEvidence, TagVersions, compareCommitMax, commitMessageMax, commandTimeoutMillisDefault, commandTextLimit, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, MaxRunnerConcurrency, verificationCap, PinnedImage, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, deliveryProviderActions, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, DeployTargetName, DeployRef, DeployStatus, runsDeployedTag, Deploy, DeployTargetRunning, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, ClaimResult, mergeTurnResource, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw, make5, get, post, put, setHeaders, acceptJson, bodyUint8Array, bodyJsonUnsafe, bodyUrlParams, schemaBodyJson, filterStatusOk, HttpClient, execute, get2, Fetch, layer4, Socket, SocketReadError, SocketError, WebSocketConstructor, layerWebSocketConstructorGlobal, layerWebSocket, runDisplayLabels, listedSummary, stepFallbackWords, runTicketsPayload, runTicketResult, ticketOutcomeLabels, runGraphLayout, KitDigest, defaultKitName, LoopCapabilities, LoopManifest, CallableLoop, AgentDeclaration, StepManifest, KitDeclarations, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, runnerReleaseChannelPath, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, removeAgentCredential, normalizeApiUrl, isStoredAgentCredential, isStreamSchema, getStreamSchemas, make6, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make7, Service, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, RunSettled, UpdateAvailable, RunnerReplicaRpcs, RunnerRunFileRpcs, ProgramRpcs, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, setupMcpAgentCredential, generateAgentKeyPair, HERDR_CORE_GENERATION2, HERDR_CORE_INSTALL_COMMAND2, HerdrCoreMissing2, HerdrCoreIncompatible2, HerdrCoreConnectionLost2, HerdrCoreRpcError2, HerdrCoreUpdateFailed2, HerdrCore2, herdrCoreLayer2, herdrCoreTransportLayer2, updateHerdrCore2, CommandFailed2, runCommand2, withoutPreloads2, shellOutputTailChars2, runProcess2, CommandRunner2, runShell2, detectHarnesses2, kitHarnesses, isKitHarness, instructionsStart, instructionsEnd, harnessNames, renderMcpServer, antigravityPlugins, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices, serviceChecks };
|