@kitman-sh/cli 0.23.0 → 0.25.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-tsx0347c.js → chunk-1hgsf81a.js} +1 -1
- package/dist/{chunk-04d4x86f.js → chunk-1phk7q49.js} +117 -126
- package/dist/{chunk-ngjf7xwq.js → chunk-1ync8395.js} +3 -3
- package/dist/{chunk-sav8v9gm.js → chunk-30s4vp2g.js} +1 -1
- package/dist/{chunk-55dseafb.js → chunk-3x8t5408.js} +46 -46
- package/dist/{chunk-samxkpbz.js → chunk-4qrb09w4.js} +3 -3
- package/dist/{chunk-t29q8gpv.js → chunk-4z5s9xtq.js} +4 -4
- package/dist/{chunk-rf580d8n.js → chunk-5c1vqpf3.js} +7 -7
- package/dist/{chunk-h2f26xbd.js → chunk-61dmxexa.js} +70 -28
- package/dist/{chunk-ny4e59e1.js → chunk-63b19adg.js} +67 -67
- package/dist/{chunk-s26tfpym.js → chunk-7wyejgj2.js} +22 -22
- package/dist/{chunk-7re3n1ze.js → chunk-e491q405.js} +10 -10
- package/dist/{chunk-8t2wcrvv.js → chunk-eshk0da5.js} +2 -2
- package/dist/{chunk-v2fpdbhy.js → chunk-fmjgw6fw.js} +1 -1
- package/dist/{chunk-npfdbssf.js → chunk-fyjet273.js} +4 -4
- package/dist/{chunk-fqrwy31z.js → chunk-gf62mx34.js} +5 -5
- package/dist/{chunk-bsgvmq34.js → chunk-j021bman.js} +14 -60
- package/dist/{chunk-akzy04yn.js → chunk-p34frxzr.js} +9 -9
- package/dist/{chunk-qy058s0g.js → chunk-py3zfen9.js} +10 -10
- package/dist/{chunk-vz38kngm.js → chunk-q8e58p57.js} +2 -2
- package/dist/{chunk-4qjfn1sa.js → chunk-rbpn35g5.js} +1 -1
- package/dist/{chunk-j4b1yvcd.js → chunk-sm340tvm.js} +26 -17
- package/dist/{chunk-k36dmqfv.js → chunk-xk96db4j.js} +6 -6
- package/dist/{chunk-aa8yfnh4.js → chunk-yh0v42dk.js} +19 -19
- package/dist/{chunk-1gmwktwn.js → chunk-zn881qsb.js} +9 -9
- package/dist/{chunk-5kqt4bqp.js → chunk-znhjs0t6.js} +1 -1
- 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
|
+
make13,
|
|
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
|
+
make14,
|
|
62
62
|
add,
|
|
63
63
|
getOrUndefined2,
|
|
64
64
|
getOrUndefinedUnsafe,
|
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
fail4,
|
|
92
92
|
isSuccess2,
|
|
93
93
|
makeUnsafe5,
|
|
94
|
-
|
|
94
|
+
make15,
|
|
95
95
|
_await,
|
|
96
96
|
fail5,
|
|
97
97
|
isDone,
|
|
@@ -194,6 +194,9 @@ import {
|
|
|
194
194
|
logError,
|
|
195
195
|
effectify,
|
|
196
196
|
decode,
|
|
197
|
+
isRedacted,
|
|
198
|
+
make16,
|
|
199
|
+
value,
|
|
197
200
|
defaultParseOptions,
|
|
198
201
|
omit,
|
|
199
202
|
map10,
|
|
@@ -264,17 +267,18 @@ import {
|
|
|
264
267
|
decodeJsonStringOption,
|
|
265
268
|
encodeJsonStringSync,
|
|
266
269
|
encodePrettyJsonString
|
|
267
|
-
} from "./chunk-
|
|
270
|
+
} from "./chunk-61dmxexa.js";
|
|
268
271
|
import {
|
|
269
272
|
map,
|
|
270
273
|
makeEquivalence,
|
|
274
|
+
toNumber,
|
|
271
275
|
bytes,
|
|
272
276
|
BadArgument,
|
|
273
277
|
systemError,
|
|
274
278
|
badArgument,
|
|
275
279
|
makeUnsafe2,
|
|
280
|
+
make7,
|
|
276
281
|
make8,
|
|
277
|
-
make9,
|
|
278
282
|
sliding,
|
|
279
283
|
unbounded2,
|
|
280
284
|
offer,
|
|
@@ -290,13 +294,13 @@ import {
|
|
|
290
294
|
isSink,
|
|
291
295
|
fromChannel,
|
|
292
296
|
drain,
|
|
293
|
-
|
|
297
|
+
make9,
|
|
294
298
|
get3,
|
|
295
299
|
isStream,
|
|
296
300
|
fromChannel2,
|
|
297
301
|
callback,
|
|
298
302
|
empty2,
|
|
299
|
-
|
|
303
|
+
make10,
|
|
300
304
|
suspend,
|
|
301
305
|
fail2,
|
|
302
306
|
fromQueue,
|
|
@@ -322,31 +326,28 @@ import {
|
|
|
322
326
|
mkArrayBuffer,
|
|
323
327
|
toReadableStreamEffect,
|
|
324
328
|
FileSystem,
|
|
325
|
-
|
|
329
|
+
make11,
|
|
326
330
|
FileTypeId,
|
|
327
331
|
WatchBackend,
|
|
328
332
|
Path,
|
|
329
|
-
|
|
333
|
+
make12,
|
|
330
334
|
option,
|
|
331
335
|
String2,
|
|
332
336
|
optionalEnv,
|
|
333
337
|
harnessesUnsupportedInSrt2,
|
|
334
338
|
harnessesUnsupportedInDocker2
|
|
335
|
-
} from "./chunk-
|
|
339
|
+
} from "./chunk-sm340tvm.js";
|
|
336
340
|
import {
|
|
337
|
-
isRedacted,
|
|
338
|
-
make,
|
|
339
|
-
value,
|
|
340
341
|
ExitCode,
|
|
341
342
|
ProcessId,
|
|
342
343
|
makeHandle,
|
|
343
|
-
|
|
344
|
+
make,
|
|
344
345
|
ChildProcessSpawner,
|
|
345
346
|
display,
|
|
346
|
-
|
|
347
|
+
make2,
|
|
347
348
|
parseFdName,
|
|
348
349
|
fdName
|
|
349
|
-
} from "./chunk-
|
|
350
|
+
} from "./chunk-j021bman.js";
|
|
350
351
|
import {
|
|
351
352
|
isDateTime,
|
|
352
353
|
Numeric,
|
|
@@ -359,8 +360,7 @@ import {
|
|
|
359
360
|
SecretScope,
|
|
360
361
|
SecretHosts,
|
|
361
362
|
isSecretReference
|
|
362
|
-
} from "./chunk-
|
|
363
|
-
|
|
363
|
+
} from "./chunk-rbpn35g5.js";
|
|
364
364
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
|
|
365
365
|
var makeEquivalence3 = Tuple;
|
|
366
366
|
|
|
@@ -522,7 +522,7 @@ var makeUnsafe6 = (input) => {
|
|
|
522
522
|
var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
|
|
523
523
|
var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
|
|
524
524
|
var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
|
|
525
|
-
var
|
|
525
|
+
var make3 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
|
|
526
526
|
var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
|
|
527
527
|
var nowUnsafe = () => makeUtc(Date.now());
|
|
528
528
|
var toDateUtc = (self) => new Date(self.epochMilliseconds);
|
|
@@ -901,18 +901,9 @@ var runMain2 = /* @__PURE__ */ makeRunMain(({
|
|
|
901
901
|
// node_modules/.bun/@effect+platform-bun@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-bun/dist/BunRuntime.js
|
|
902
902
|
var runMain = runMain2;
|
|
903
903
|
|
|
904
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
|
|
905
|
-
var BigInt2 = globalThis.BigInt;
|
|
906
|
-
var toNumber = (b) => {
|
|
907
|
-
if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
|
|
908
|
-
return none();
|
|
909
|
-
}
|
|
910
|
-
return some(Number(b));
|
|
911
|
-
};
|
|
912
|
-
|
|
913
904
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
|
|
914
905
|
var makeUnsafe = makeUnsafe6;
|
|
915
|
-
var make18 =
|
|
906
|
+
var make18 = make3;
|
|
916
907
|
var now2 = now;
|
|
917
908
|
var nowUnsafe2 = nowUnsafe;
|
|
918
909
|
var toDateUtc2 = toDateUtc;
|
|
@@ -1127,7 +1118,7 @@ var readableToPullUnsafe = (options) => {
|
|
|
1127
1118
|
const readable = options.readable;
|
|
1128
1119
|
const chunkSize = options.chunkSize ?? 4096;
|
|
1129
1120
|
const closeOnDone = options.closeOnDone ?? true;
|
|
1130
|
-
const exit = options.exit ??
|
|
1121
|
+
const exit = options.exit ?? make7(undefined);
|
|
1131
1122
|
const latch = options.latch ?? makeUnsafe2(false);
|
|
1132
1123
|
function onReadable() {
|
|
1133
1124
|
latch.openUnsafe();
|
|
@@ -1691,7 +1682,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1691
1682
|
const sourceStream = unwrap(succeed6(getSourceStream(handles[handles.length - 1], options.from)));
|
|
1692
1683
|
const toOption = options.to ?? "stdin";
|
|
1693
1684
|
if (toOption === "stdin") {
|
|
1694
|
-
handles.push(yield* spawnCommand(
|
|
1685
|
+
handles.push(yield* spawnCommand(make2(command.command, command.args, {
|
|
1695
1686
|
...command.options,
|
|
1696
1687
|
stdin: {
|
|
1697
1688
|
...stdinConfig,
|
|
@@ -1711,7 +1702,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1711
1702
|
type: "input",
|
|
1712
1703
|
stream: sourceStream
|
|
1713
1704
|
};
|
|
1714
|
-
handles.push(yield* spawnCommand(
|
|
1705
|
+
handles.push(yield* spawnCommand(make2(command.command, command.args, {
|
|
1715
1706
|
...command.options,
|
|
1716
1707
|
additionalFds: {
|
|
1717
1708
|
...existingFds,
|
|
@@ -1719,7 +1710,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1719
1710
|
}
|
|
1720
1711
|
})));
|
|
1721
1712
|
} else {
|
|
1722
|
-
handles.push(yield* spawnCommand(
|
|
1713
|
+
handles.push(yield* spawnCommand(make2(command.command, command.args, {
|
|
1723
1714
|
...command.options,
|
|
1724
1715
|
stdin: {
|
|
1725
1716
|
...stdinConfig,
|
|
@@ -1758,7 +1749,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1758
1749
|
}
|
|
1759
1750
|
}
|
|
1760
1751
|
});
|
|
1761
|
-
return
|
|
1752
|
+
return make(spawnCommand);
|
|
1762
1753
|
});
|
|
1763
1754
|
var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
|
|
1764
1755
|
var flattenCommand = (command) => {
|
|
@@ -2244,7 +2235,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
|
|
|
2244
2235
|
resume(fail7(handleBadArgument("writeFile")(err)));
|
|
2245
2236
|
}
|
|
2246
2237
|
});
|
|
2247
|
-
var makeFileSystem = /* @__PURE__ */ map9(/* @__PURE__ */ serviceOption(WatchBackend), (backend) =>
|
|
2238
|
+
var makeFileSystem = /* @__PURE__ */ map9(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make11({
|
|
2248
2239
|
access: access2,
|
|
2249
2240
|
chmod: chmod2,
|
|
2250
2241
|
chown: chown2,
|
|
@@ -2304,15 +2295,15 @@ var fileUrlOps = (windows) => ({
|
|
|
2304
2295
|
})
|
|
2305
2296
|
})
|
|
2306
2297
|
});
|
|
2307
|
-
var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2298
|
+
var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
|
|
2308
2299
|
...NodePath.posix,
|
|
2309
2300
|
.../* @__PURE__ */ fileUrlOps(false)
|
|
2310
2301
|
}));
|
|
2311
|
-
var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2302
|
+
var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
|
|
2312
2303
|
...NodePath.win32,
|
|
2313
2304
|
.../* @__PURE__ */ fileUrlOps(true)
|
|
2314
2305
|
}));
|
|
2315
|
-
var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2306
|
+
var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
|
|
2316
2307
|
...NodePath,
|
|
2317
2308
|
.../* @__PURE__ */ fileUrlOps(undefined)
|
|
2318
2309
|
}));
|
|
@@ -2839,12 +2830,12 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
|
2839
2830
|
if (typeof key === "string") {
|
|
2840
2831
|
const k = key.toLowerCase();
|
|
2841
2832
|
if (k in self) {
|
|
2842
|
-
out[k] =
|
|
2833
|
+
out[k] = make16(self[k]);
|
|
2843
2834
|
}
|
|
2844
2835
|
} else {
|
|
2845
2836
|
for (const name in self) {
|
|
2846
2837
|
if (name.search(key) !== -1) {
|
|
2847
|
-
out[name] =
|
|
2838
|
+
out[name] = make16(self[name]);
|
|
2848
2839
|
}
|
|
2849
2840
|
}
|
|
2850
2841
|
}
|
|
@@ -2951,7 +2942,7 @@ var fromInputNested = (input) => {
|
|
|
2951
2942
|
return out;
|
|
2952
2943
|
};
|
|
2953
2944
|
var coerce = (value) => isRedacted(value) ? value : String(value);
|
|
2954
|
-
var Equivalence3 = /* @__PURE__ */
|
|
2945
|
+
var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
|
|
2955
2946
|
var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
|
|
2956
2947
|
var empty4 = /* @__PURE__ */ make23([]);
|
|
2957
2948
|
var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
@@ -2970,7 +2961,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
|
2970
2961
|
var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
|
|
2971
2962
|
var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
2972
2963
|
const patterns = Array.isArray(key) ? key : [key];
|
|
2973
|
-
return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ?
|
|
2964
|
+
return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make16(value) : value]);
|
|
2974
2965
|
});
|
|
2975
2966
|
var isRedactedName2 = isRedactedName;
|
|
2976
2967
|
var redactUrl = (url, redactedNames = currentRedactedNames()) => {
|
|
@@ -3046,7 +3037,7 @@ import * as readline from "readline";
|
|
|
3046
3037
|
var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
|
|
3047
3038
|
const stdin = process.stdin;
|
|
3048
3039
|
const stdout = process.stdout;
|
|
3049
|
-
const lines = yield*
|
|
3040
|
+
const lines = yield* make8();
|
|
3050
3041
|
let inputEnded = stdin.readableEnded;
|
|
3051
3042
|
let readlineActive = false;
|
|
3052
3043
|
const onStdinEnd = () => {
|
|
@@ -3057,7 +3048,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3057
3048
|
};
|
|
3058
3049
|
stdin.once("end", onStdinEnd);
|
|
3059
3050
|
yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
|
|
3060
|
-
const rlRef = yield*
|
|
3051
|
+
const rlRef = yield* make9({
|
|
3061
3052
|
acquire: acquireRelease(sync2(() => {
|
|
3062
3053
|
const rl = readline.createInterface({
|
|
3063
3054
|
input: stdin,
|
|
@@ -3096,7 +3087,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3096
3087
|
if (stdin.isTTY)
|
|
3097
3088
|
stdin.setRawMode(enabled);
|
|
3098
3089
|
});
|
|
3099
|
-
const rawModeRef = yield*
|
|
3090
|
+
const rawModeRef = yield* make9({
|
|
3100
3091
|
acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
|
|
3101
3092
|
idleTimeToLive: "10 millis"
|
|
3102
3093
|
});
|
|
@@ -3117,7 +3108,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3117
3108
|
return queue;
|
|
3118
3109
|
});
|
|
3119
3110
|
const readInput = gen(function* () {
|
|
3120
|
-
const queue = yield*
|
|
3111
|
+
const queue = yield* make8();
|
|
3121
3112
|
const handleKeypress = (s, k) => {
|
|
3122
3113
|
const userInput = {
|
|
3123
3114
|
input: fromUndefinedOr(s),
|
|
@@ -3220,7 +3211,7 @@ var waitingOnWords = ({ keys, hidden }) => {
|
|
|
3220
3211
|
};
|
|
3221
3212
|
|
|
3222
3213
|
// packages/core/src/run-queue.ts
|
|
3223
|
-
var ClaimRanks = ["in_progress", "finishing", "new"];
|
|
3214
|
+
var ClaimRanks = ["shipping", "in_progress", "finishing", "new"];
|
|
3224
3215
|
var utcTime = (timestamp) => {
|
|
3225
3216
|
const iso = toIso(Math.ceil(toDate(timestamp).getTime() / 1000) * 1000);
|
|
3226
3217
|
return `${iso.slice(0, iso.endsWith(":00.000Z") ? 16 : 19).replace("T", " ")} UTC`;
|
|
@@ -11123,14 +11114,14 @@ function makeWith(method, url, urlParams, hash, headers, body) {
|
|
|
11123
11114
|
return self;
|
|
11124
11115
|
}
|
|
11125
11116
|
var empty6 = /* @__PURE__ */ makeWith("GET", "", empty4, /* @__PURE__ */ none(), empty, empty5);
|
|
11126
|
-
var
|
|
11117
|
+
var make4 = (method) => (url, options) => modify(empty6, {
|
|
11127
11118
|
method,
|
|
11128
11119
|
url,
|
|
11129
11120
|
...options ?? undefined
|
|
11130
11121
|
});
|
|
11131
|
-
var get = /* @__PURE__ */
|
|
11132
|
-
var post = /* @__PURE__ */
|
|
11133
|
-
var put = /* @__PURE__ */
|
|
11122
|
+
var get = /* @__PURE__ */ make4("GET");
|
|
11123
|
+
var post = /* @__PURE__ */ make4("POST");
|
|
11124
|
+
var put = /* @__PURE__ */ make4("PUT");
|
|
11134
11125
|
var modify = /* @__PURE__ */ dual(2, (self, options) => {
|
|
11135
11126
|
let result = self;
|
|
11136
11127
|
if (options.method) {
|
|
@@ -11431,7 +11422,7 @@ var Proto7 = {
|
|
|
11431
11422
|
};
|
|
11432
11423
|
},
|
|
11433
11424
|
.../* @__PURE__ */ Object.fromEntries(/* @__PURE__ */ allShort.map(([fullMethod, method]) => [method, function(url, options) {
|
|
11434
|
-
return this.execute(
|
|
11425
|
+
return this.execute(make4(fullMethod)(url, options));
|
|
11435
11426
|
}]))
|
|
11436
11427
|
};
|
|
11437
11428
|
var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
|
|
@@ -15520,7 +15511,7 @@ var makeProto = (options) => {
|
|
|
15520
15511
|
Rpc.key = `effect/rpc/Rpc/${options._tag}`;
|
|
15521
15512
|
return Rpc;
|
|
15522
15513
|
};
|
|
15523
|
-
var
|
|
15514
|
+
var make5 = (tag, options) => {
|
|
15524
15515
|
const successSchema = options?.success ?? Void;
|
|
15525
15516
|
const errorSchema = options?.error ?? Never;
|
|
15526
15517
|
const defectSchema = options?.defect ?? Defect();
|
|
@@ -15731,7 +15722,7 @@ var RpcGroupProto = {
|
|
|
15731
15722
|
});
|
|
15732
15723
|
},
|
|
15733
15724
|
annotateRpcs(service, value) {
|
|
15734
|
-
return this.annotateRpcsMerge(
|
|
15725
|
+
return this.annotateRpcsMerge(make14(service, value));
|
|
15735
15726
|
},
|
|
15736
15727
|
annotateMerge(context) {
|
|
15737
15728
|
return makeProto2({
|
|
@@ -15754,7 +15745,7 @@ var makeProto2 = (options) => Object.assign(function() {}, RpcGroupProto, {
|
|
|
15754
15745
|
requests: options.requests,
|
|
15755
15746
|
annotations: options.annotations
|
|
15756
15747
|
});
|
|
15757
|
-
var
|
|
15748
|
+
var make6 = (...rpcs) => makeProto2({
|
|
15758
15749
|
requests: new Map(rpcs.map((rpc) => [rpc._tag, rpc])),
|
|
15759
15750
|
annotations: empty3()
|
|
15760
15751
|
});
|
|
@@ -15860,77 +15851,77 @@ var ProgramOutcome = Union([
|
|
|
15860
15851
|
Struct({ status: Literal("failed"), failureSummary: String4 })
|
|
15861
15852
|
]);
|
|
15862
15853
|
|
|
15863
|
-
class RunnerReplicaRpcs extends
|
|
15854
|
+
class RunnerReplicaRpcs extends make6(make5("Claim", {
|
|
15864
15855
|
payload: WorkUnitClaimInput,
|
|
15865
15856
|
success: WorkUnitClaimResult,
|
|
15866
15857
|
error: RunnerRpcError
|
|
15867
|
-
}),
|
|
15858
|
+
}), make5("Heartbeat", {
|
|
15868
15859
|
payload: WorkUnitHeartbeatInput,
|
|
15869
15860
|
success: WorkUnitHeartbeatResult,
|
|
15870
15861
|
error: RunnerRpcError
|
|
15871
|
-
}),
|
|
15862
|
+
}), make5("Complete", {
|
|
15872
15863
|
payload: WorkUnitCompletion,
|
|
15873
15864
|
error: RunnerRpcError
|
|
15874
|
-
}),
|
|
15865
|
+
}), make5("Release", {
|
|
15875
15866
|
payload: WorkUnitReleaseInput,
|
|
15876
15867
|
error: RunnerRpcError
|
|
15877
|
-
}),
|
|
15868
|
+
}), make5("Signals", {
|
|
15878
15869
|
payload: { runnerReplicaId: String4 },
|
|
15879
15870
|
success: RunnerSignal,
|
|
15880
15871
|
error: RunnerRpcError,
|
|
15881
15872
|
stream: true
|
|
15882
|
-
}),
|
|
15873
|
+
}), make5("ReportSteer", {
|
|
15883
15874
|
payload: { workUnitId: String4, messageId: String4, delivered: Boolean2 },
|
|
15884
15875
|
success: Void,
|
|
15885
15876
|
error: RunnerRpcError
|
|
15886
|
-
}),
|
|
15877
|
+
}), make5("AppendTranscript", {
|
|
15887
15878
|
payload: { workUnitId: String4, entries: ArraySchema(TranscriptAppendEntry).check(isMaxLength(100)) },
|
|
15888
15879
|
success: Void,
|
|
15889
15880
|
error: RunnerRpcError
|
|
15890
|
-
}),
|
|
15881
|
+
}), make5("CreateCheckpointFile", {
|
|
15891
15882
|
payload: { lease: ProgramLease, byteSize: Int, sha256: String4 },
|
|
15892
15883
|
success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
|
|
15893
15884
|
error: Union([RunnerRpcError, RunFileRefused])
|
|
15894
|
-
}),
|
|
15885
|
+
}), make5("CheckpointFileParts", {
|
|
15895
15886
|
payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
|
|
15896
15887
|
success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
|
|
15897
15888
|
error: RunnerRpcError
|
|
15898
|
-
}),
|
|
15889
|
+
}), make5("CompleteCheckpointFile", {
|
|
15899
15890
|
payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
|
|
15900
15891
|
success: RunFileRecord,
|
|
15901
15892
|
error: RunnerRpcError
|
|
15902
|
-
}),
|
|
15893
|
+
}), make5("SaveCheckpoint", {
|
|
15903
15894
|
payload: { lease: ProgramLease, checkpoint: StepCheckpoint },
|
|
15904
15895
|
success: Void,
|
|
15905
15896
|
error: RunnerRpcError
|
|
15906
|
-
}),
|
|
15897
|
+
}), make5("ResumeCheckpoint", {
|
|
15907
15898
|
payload: { lease: ProgramLease },
|
|
15908
15899
|
success: UndefinedOr(ResumedCheckpoint),
|
|
15909
15900
|
error: RunnerRpcError
|
|
15910
|
-
}),
|
|
15901
|
+
}), make5("SettledCheckpoints", {
|
|
15911
15902
|
success: ArraySchema(Struct({
|
|
15912
15903
|
stepAttemptId: String4,
|
|
15913
15904
|
ref: optionalKey(String4),
|
|
15914
15905
|
repoBinding: optionalKey(WorkUnitRepoBinding)
|
|
15915
15906
|
})),
|
|
15916
15907
|
error: RunnerRpcError
|
|
15917
|
-
}),
|
|
15908
|
+
}), make5("ForgetCheckpoints", {
|
|
15918
15909
|
payload: { stepAttemptIds: ArraySchema(String4) },
|
|
15919
15910
|
success: Void,
|
|
15920
15911
|
error: RunnerRpcError
|
|
15921
|
-
}),
|
|
15912
|
+
}), make5("GitCredential", {
|
|
15922
15913
|
payload: { repoBindingId: String4 },
|
|
15923
15914
|
success: UndefinedOr(Struct({ username: String4, password: String4 })),
|
|
15924
15915
|
error: RunnerRpcError
|
|
15925
|
-
}),
|
|
15916
|
+
}), make5("Bundle", {
|
|
15926
15917
|
payload: { digest: String4 },
|
|
15927
15918
|
success: Struct({ bundle: String4 }),
|
|
15928
15919
|
error: RunnerRpcError
|
|
15929
|
-
}),
|
|
15920
|
+
}), make5("SettledRuns", {
|
|
15930
15921
|
payload: { runIds: ArraySchema(String4) },
|
|
15931
15922
|
success: ArraySchema(String4),
|
|
15932
15923
|
error: RunnerRpcError
|
|
15933
|
-
}),
|
|
15924
|
+
}), make5("KnownEvidence", {
|
|
15934
15925
|
payload: { lease: ProgramLease, trees: ArraySchema(String4) },
|
|
15935
15926
|
success: ArraySchema(Struct({
|
|
15936
15927
|
tree: String4,
|
|
@@ -15942,24 +15933,24 @@ class RunnerReplicaRpcs extends make7(make6("Claim", {
|
|
|
15942
15933
|
})).middleware(RunnerAuthentication) {
|
|
15943
15934
|
}
|
|
15944
15935
|
|
|
15945
|
-
class RunnerJournalRpcs extends
|
|
15936
|
+
class RunnerJournalRpcs extends make6(make5("RecordActivity", {
|
|
15946
15937
|
payload: { lease: ProgramLease, name: String4, attempt: Int, exit: Json },
|
|
15947
15938
|
error: RunnerRpcError
|
|
15948
|
-
}),
|
|
15939
|
+
}), make5("DeferredDone", {
|
|
15949
15940
|
payload: { lease: ProgramLease, name: String4, exit: Json },
|
|
15950
15941
|
error: RunnerRpcError
|
|
15951
|
-
}),
|
|
15942
|
+
}), make5("ScheduleClock", {
|
|
15952
15943
|
payload: { lease: ProgramLease, name: String4, deferredName: String4, durationMillis: Int },
|
|
15953
15944
|
error: RunnerRpcError
|
|
15954
|
-
}),
|
|
15945
|
+
}), make5("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make5("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
|
|
15955
15946
|
}
|
|
15956
|
-
var RunHostStep =
|
|
15947
|
+
var RunHostStep = make5("RunHostStep", {
|
|
15957
15948
|
payload: { lease: ProgramLease, step: String4, hostStep: String4, request: Json },
|
|
15958
15949
|
success: Json,
|
|
15959
15950
|
error: RunnerRpcError
|
|
15960
15951
|
});
|
|
15961
15952
|
|
|
15962
|
-
class RunnerCapabilityRpcs extends
|
|
15953
|
+
class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
15963
15954
|
payload: {
|
|
15964
15955
|
lease: ProgramLease,
|
|
15965
15956
|
step: String4,
|
|
@@ -15979,7 +15970,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
15979
15970
|
},
|
|
15980
15971
|
success: Struct({ questionId: String4 }),
|
|
15981
15972
|
error: RunnerRpcError
|
|
15982
|
-
}),
|
|
15973
|
+
}), make5("StartAgentStep", {
|
|
15983
15974
|
payload: {
|
|
15984
15975
|
lease: ProgramLease,
|
|
15985
15976
|
step: String4,
|
|
@@ -15996,7 +15987,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
15996
15987
|
},
|
|
15997
15988
|
success: Struct({ stepAttemptId: String4 }),
|
|
15998
15989
|
error: RunnerRpcError
|
|
15999
|
-
}),
|
|
15990
|
+
}), make5("StartVerification", {
|
|
16000
15991
|
payload: {
|
|
16001
15992
|
lease: ProgramLease,
|
|
16002
15993
|
step: String4,
|
|
@@ -16020,7 +16011,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16020
16011
|
},
|
|
16021
16012
|
success: Struct({ verificationId: String4 }),
|
|
16022
16013
|
error: RunnerRpcError
|
|
16023
|
-
}),
|
|
16014
|
+
}), make5("AwaitEvent", {
|
|
16024
16015
|
payload: {
|
|
16025
16016
|
lease: ProgramLease,
|
|
16026
16017
|
step: String4,
|
|
@@ -16036,7 +16027,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16036
16027
|
})))
|
|
16037
16028
|
},
|
|
16038
16029
|
error: RunnerRpcError
|
|
16039
|
-
}),
|
|
16030
|
+
}), make5("ClaimResource", {
|
|
16040
16031
|
payload: {
|
|
16041
16032
|
lease: ProgramLease,
|
|
16042
16033
|
step: String4,
|
|
@@ -16047,7 +16038,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16047
16038
|
claims: optionalKey(ArraySchema(String4))
|
|
16048
16039
|
},
|
|
16049
16040
|
error: RunnerRpcError
|
|
16050
|
-
}),
|
|
16041
|
+
}), make5("AdmitChild", {
|
|
16051
16042
|
payload: {
|
|
16052
16043
|
lease: ProgramLease,
|
|
16053
16044
|
step: String4,
|
|
@@ -16058,7 +16049,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16058
16049
|
},
|
|
16059
16050
|
success: Struct({ runId: String4 }),
|
|
16060
16051
|
error: RunnerRpcError
|
|
16061
|
-
}),
|
|
16052
|
+
}), make5("AdmitChildById", {
|
|
16062
16053
|
payload: {
|
|
16063
16054
|
lease: ProgramLease,
|
|
16064
16055
|
step: String4,
|
|
@@ -16069,18 +16060,18 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16069
16060
|
},
|
|
16070
16061
|
success: Struct({ runId: String4 }),
|
|
16071
16062
|
error: RunnerRpcError
|
|
16072
|
-
}),
|
|
16063
|
+
}), make5("CallableLoops", {
|
|
16073
16064
|
payload: { lease: ProgramLease, step: String4, taskId: optional(String4) },
|
|
16074
16065
|
success: Struct({ loops: ArraySchema(CallableLoop) }),
|
|
16075
16066
|
error: RunnerRpcError
|
|
16076
|
-
}),
|
|
16067
|
+
}), make5("StopLaunches", {
|
|
16077
16068
|
payload: {
|
|
16078
16069
|
lease: ProgramLease,
|
|
16079
16070
|
step: String4,
|
|
16080
16071
|
deferredNames: ArraySchema(String4)
|
|
16081
16072
|
},
|
|
16082
16073
|
error: RunnerRpcError
|
|
16083
|
-
}),
|
|
16074
|
+
}), make5("StoreArtifact", {
|
|
16084
16075
|
payload: {
|
|
16085
16076
|
lease: ProgramLease,
|
|
16086
16077
|
step: String4,
|
|
@@ -16092,7 +16083,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16092
16083
|
},
|
|
16093
16084
|
success: Struct({ artifactId: String4 }),
|
|
16094
16085
|
error: RunnerRpcError
|
|
16095
|
-
}),
|
|
16086
|
+
}), make5("RecordNote", {
|
|
16096
16087
|
payload: {
|
|
16097
16088
|
lease: ProgramLease,
|
|
16098
16089
|
step: String4,
|
|
@@ -16101,7 +16092,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16101
16092
|
kind: optional(Literals(["note", "blocker"]))
|
|
16102
16093
|
},
|
|
16103
16094
|
error: RunnerRpcError
|
|
16104
|
-
}),
|
|
16095
|
+
}), make5("PerformHostEffect", {
|
|
16105
16096
|
payload: {
|
|
16106
16097
|
lease: ProgramLease,
|
|
16107
16098
|
step: String4,
|
|
@@ -16130,7 +16121,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16130
16121
|
},
|
|
16131
16122
|
success: UndefinedOr(Struct({ id: String4, number: String4, url: String4 })),
|
|
16132
16123
|
error: RunnerRpcError
|
|
16133
|
-
}),
|
|
16124
|
+
}), make5("AlertTask", {
|
|
16134
16125
|
payload: {
|
|
16135
16126
|
lease: ProgramLease,
|
|
16136
16127
|
step: String4,
|
|
@@ -16147,7 +16138,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16147
16138
|
joined: optionalKey(Struct({ kind: Literals(["run", "recent"]), runId: String4 }))
|
|
16148
16139
|
}),
|
|
16149
16140
|
error: RunnerRpcError
|
|
16150
|
-
}),
|
|
16141
|
+
}), make5("ReadTranscripts", {
|
|
16151
16142
|
payload: {
|
|
16152
16143
|
lease: ProgramLease,
|
|
16153
16144
|
step: String4,
|
|
@@ -16182,7 +16173,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16182
16173
|
})))
|
|
16183
16174
|
}),
|
|
16184
16175
|
error: RunnerRpcError
|
|
16185
|
-
}),
|
|
16176
|
+
}), make5("PipelineStatus", {
|
|
16186
16177
|
payload: {
|
|
16187
16178
|
lease: ProgramLease,
|
|
16188
16179
|
step: String4,
|
|
@@ -16222,11 +16213,11 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16222
16213
|
}))
|
|
16223
16214
|
}),
|
|
16224
16215
|
error: RunnerRpcError
|
|
16225
|
-
}),
|
|
16216
|
+
}), make5("ReportPipeline", {
|
|
16226
16217
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4, verification: String4 },
|
|
16227
16218
|
success: Struct({ head: String4, status: Literals(["success", "failed"]) }),
|
|
16228
16219
|
error: RunnerRpcError
|
|
16229
|
-
}),
|
|
16220
|
+
}), make5("ReviewThreads", {
|
|
16230
16221
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
|
|
16231
16222
|
success: Struct({
|
|
16232
16223
|
threads: ArraySchema(Struct({
|
|
@@ -16238,7 +16229,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16238
16229
|
}))
|
|
16239
16230
|
}),
|
|
16240
16231
|
error: RunnerRpcError
|
|
16241
|
-
}),
|
|
16232
|
+
}), make5("OpenChangeRequests", {
|
|
16242
16233
|
payload: { lease: ProgramLease, step: String4, authors: NonEmptyArray(String4) },
|
|
16243
16234
|
success: Struct({
|
|
16244
16235
|
changeRequests: ArraySchema(Struct({
|
|
@@ -16252,7 +16243,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16252
16243
|
}))
|
|
16253
16244
|
}),
|
|
16254
16245
|
error: RunnerRpcError
|
|
16255
|
-
}),
|
|
16246
|
+
}), make5("OwnChangeRequests", {
|
|
16256
16247
|
payload: { lease: ProgramLease, step: String4 },
|
|
16257
16248
|
success: Struct({
|
|
16258
16249
|
changeRequests: ArraySchema(Struct({
|
|
@@ -16265,7 +16256,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16265
16256
|
}))
|
|
16266
16257
|
}),
|
|
16267
16258
|
error: RunnerRpcError
|
|
16268
|
-
}),
|
|
16259
|
+
}), make5("Propose", {
|
|
16269
16260
|
payload: {
|
|
16270
16261
|
lease: ProgramLease,
|
|
16271
16262
|
step: String4,
|
|
@@ -16294,7 +16285,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16294
16285
|
task: optionalKey(Struct({ id: String4, active: Boolean2 }))
|
|
16295
16286
|
}),
|
|
16296
16287
|
error: RunnerRpcError
|
|
16297
|
-
}),
|
|
16288
|
+
}), make5("ReadProject", {
|
|
16298
16289
|
payload: { lease: ProgramLease, step: String4, projectId: String4 },
|
|
16299
16290
|
success: Struct({
|
|
16300
16291
|
project: Struct({ id: String4, name: String4 }),
|
|
@@ -16317,7 +16308,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16317
16308
|
taskChanges: ArraySchema(Struct({ taskKey: String4, title: String4, change: String4, at: String4 }))
|
|
16318
16309
|
}),
|
|
16319
16310
|
error: RunnerRpcError
|
|
16320
|
-
}),
|
|
16311
|
+
}), make5("DraftUpdate", {
|
|
16321
16312
|
payload: {
|
|
16322
16313
|
lease: ProgramLease,
|
|
16323
16314
|
step: String4,
|
|
@@ -16332,7 +16323,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16332
16323
|
},
|
|
16333
16324
|
success: Struct({ id: String4 }),
|
|
16334
16325
|
error: RunnerRpcError
|
|
16335
|
-
}),
|
|
16326
|
+
}), make5("CreatePlanTasks", {
|
|
16336
16327
|
payload: {
|
|
16337
16328
|
lease: ProgramLease,
|
|
16338
16329
|
projectId: optionalKey(String4),
|
|
@@ -16353,15 +16344,15 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16353
16344
|
},
|
|
16354
16345
|
success: ArraySchema(Struct({ key: String4, taskId: String4 })),
|
|
16355
16346
|
error: RunnerRpcError
|
|
16356
|
-
}),
|
|
16347
|
+
}), make5("IntegrationBranch", {
|
|
16357
16348
|
payload: { lease: ProgramLease, repoBindingId: optionalKey(String4) },
|
|
16358
16349
|
success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
|
|
16359
16350
|
error: RunnerRpcError
|
|
16360
|
-
}),
|
|
16351
|
+
}), make5("DeliveryBase", {
|
|
16361
16352
|
payload: { lease: ProgramLease },
|
|
16362
16353
|
success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
|
|
16363
16354
|
error: RunnerRpcError
|
|
16364
|
-
}),
|
|
16355
|
+
}), make5("Branch", {
|
|
16365
16356
|
payload: {
|
|
16366
16357
|
lease: ProgramLease,
|
|
16367
16358
|
branch: optionalKey(String4),
|
|
@@ -16376,7 +16367,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16376
16367
|
created: Boolean2
|
|
16377
16368
|
}),
|
|
16378
16369
|
error: RunnerRpcError
|
|
16379
|
-
}),
|
|
16370
|
+
}), make5("BranchChangeRequest", {
|
|
16380
16371
|
payload: {
|
|
16381
16372
|
lease: ProgramLease,
|
|
16382
16373
|
step: String4,
|
|
@@ -16399,7 +16390,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16399
16390
|
Struct({ status: Literal("elsewhere"), team: String4 })
|
|
16400
16391
|
]),
|
|
16401
16392
|
error: RunnerRpcError
|
|
16402
|
-
}),
|
|
16393
|
+
}), make5("MergeChangeRequest", {
|
|
16403
16394
|
payload: {
|
|
16404
16395
|
lease: ProgramLease,
|
|
16405
16396
|
step: String4,
|
|
@@ -16417,7 +16408,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16417
16408
|
Struct({ status: Literal("moved"), head: String4 })
|
|
16418
16409
|
]),
|
|
16419
16410
|
error: RunnerRpcError
|
|
16420
|
-
}),
|
|
16411
|
+
}), make5("ApproveChangeRequest", {
|
|
16421
16412
|
payload: {
|
|
16422
16413
|
lease: ProgramLease,
|
|
16423
16414
|
step: String4,
|
|
@@ -16433,7 +16424,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16433
16424
|
Struct({ approved: Literal(false), reason: String4 })
|
|
16434
16425
|
]),
|
|
16435
16426
|
error: RunnerRpcError
|
|
16436
|
-
}),
|
|
16427
|
+
}), make5("CloseChangeRequest", {
|
|
16437
16428
|
payload: {
|
|
16438
16429
|
lease: ProgramLease,
|
|
16439
16430
|
step: String4,
|
|
@@ -16443,7 +16434,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16443
16434
|
},
|
|
16444
16435
|
success: Struct({ closed: Boolean2, head: optionalKey(String4) }),
|
|
16445
16436
|
error: RunnerRpcError
|
|
16446
|
-
}),
|
|
16437
|
+
}), make5("RerunPipeline", {
|
|
16447
16438
|
payload: {
|
|
16448
16439
|
lease: ProgramLease,
|
|
16449
16440
|
step: String4,
|
|
@@ -16453,7 +16444,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16453
16444
|
},
|
|
16454
16445
|
success: Struct({ head: String4, pipelines: Int }),
|
|
16455
16446
|
error: RunnerRpcError
|
|
16456
|
-
}),
|
|
16447
|
+
}), make5("PublishRelease", {
|
|
16457
16448
|
payload: {
|
|
16458
16449
|
lease: ProgramLease,
|
|
16459
16450
|
step: String4,
|
|
@@ -16467,7 +16458,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16467
16458
|
},
|
|
16468
16459
|
success: Struct({ tag: String4, revision: String4, url: String4 }),
|
|
16469
16460
|
error: RunnerRpcError
|
|
16470
|
-
}),
|
|
16461
|
+
}), make5("RecordDeploy", {
|
|
16471
16462
|
payload: {
|
|
16472
16463
|
lease: ProgramLease,
|
|
16473
16464
|
step: String4,
|
|
@@ -16479,7 +16470,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16479
16470
|
},
|
|
16480
16471
|
success: Deploy,
|
|
16481
16472
|
error: RunnerRpcError
|
|
16482
|
-
}),
|
|
16473
|
+
}), make5("DeployTarget", {
|
|
16483
16474
|
payload: { lease: ProgramLease, step: String4, target: DeployTargetName },
|
|
16484
16475
|
success: Struct({
|
|
16485
16476
|
target: String4,
|
|
@@ -16487,14 +16478,14 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16487
16478
|
order: optionalKey(ArraySchema(String4))
|
|
16488
16479
|
}),
|
|
16489
16480
|
error: RunnerRpcError
|
|
16490
|
-
}), RunHostStep,
|
|
16481
|
+
}), RunHostStep, make5("ProgramSecrets", {
|
|
16491
16482
|
payload: { lease: ProgramLease },
|
|
16492
16483
|
success: Record(String4, String4),
|
|
16493
16484
|
error: RunnerRpcError
|
|
16494
16485
|
})).middleware(RunnerAuthentication) {
|
|
16495
16486
|
}
|
|
16496
16487
|
|
|
16497
|
-
class RunnerRunFileRpcs extends
|
|
16488
|
+
class RunnerRunFileRpcs extends make6(make5("CreateRunFile", {
|
|
16498
16489
|
payload: {
|
|
16499
16490
|
lease: ProgramLease,
|
|
16500
16491
|
step: String4,
|
|
@@ -16506,11 +16497,11 @@ class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
|
|
|
16506
16497
|
},
|
|
16507
16498
|
success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
|
|
16508
16499
|
error: Union([RunnerRpcError, RunFileRefused])
|
|
16509
|
-
}),
|
|
16500
|
+
}), make5("RunFileParts", {
|
|
16510
16501
|
payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
|
|
16511
16502
|
success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
|
|
16512
16503
|
error: RunnerRpcError
|
|
16513
|
-
}),
|
|
16504
|
+
}), make5("CompleteRunFile", {
|
|
16514
16505
|
payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
|
|
16515
16506
|
success: RunFileRecord,
|
|
16516
16507
|
error: RunnerRpcError
|
|
@@ -16599,7 +16590,7 @@ function toStoredSession(token, existingRefreshToken) {
|
|
|
16599
16590
|
}
|
|
16600
16591
|
function startLoopbackServer(input) {
|
|
16601
16592
|
return gen(function* () {
|
|
16602
|
-
const code = yield*
|
|
16593
|
+
const code = yield* make15();
|
|
16603
16594
|
const context2 = yield* context();
|
|
16604
16595
|
const runSyncExit = runSyncExitWith(context2);
|
|
16605
16596
|
const server = yield* acquireRelease(sync2(() => Bun.serve({
|
|
@@ -17147,7 +17138,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
17147
17138
|
let lastId = 0;
|
|
17148
17139
|
let lost = false;
|
|
17149
17140
|
const notifications = yield* unbounded2();
|
|
17150
|
-
const ended = yield*
|
|
17141
|
+
const ended = yield* make15();
|
|
17151
17142
|
const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
|
|
17152
17143
|
onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
|
|
17153
17144
|
onNone: () => void_3,
|
|
@@ -17174,7 +17165,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
17174
17165
|
if (lost)
|
|
17175
17166
|
return yield* new HerdrCoreConnectionLost2({ method });
|
|
17176
17167
|
const id = ++lastId;
|
|
17177
|
-
const deferred = yield*
|
|
17168
|
+
const deferred = yield* make15();
|
|
17178
17169
|
pending.set(id, { method, deferred });
|
|
17179
17170
|
yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
|
|
17180
17171
|
return yield* _await(deferred);
|
|
@@ -17248,14 +17239,14 @@ var herdrCoreOver = (transport) => ({
|
|
|
17248
17239
|
return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
|
|
17249
17240
|
};
|
|
17250
17241
|
const snapshot = { type: "snapshot", terminals: subscribed.terminals };
|
|
17251
|
-
return concat(
|
|
17242
|
+
return concat(make10(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
|
|
17252
17243
|
}))
|
|
17253
17244
|
});
|
|
17254
17245
|
var spawnedTransport = (env) => gen(function* () {
|
|
17255
17246
|
const spawner = yield* ChildProcessSpawner;
|
|
17256
17247
|
const input = yield* unbounded2();
|
|
17257
17248
|
const encoder = new TextEncoder;
|
|
17258
|
-
const handle = yield* spawner.spawn(
|
|
17249
|
+
const handle = yield* spawner.spawn(make2("herdr-core", ["connect"], {
|
|
17259
17250
|
extendEnv: false,
|
|
17260
17251
|
env,
|
|
17261
17252
|
stdin: fromQueue(input),
|
|
@@ -17286,7 +17277,7 @@ var updateHerdrCore2 = (options) => gen(function* () {
|
|
|
17286
17277
|
const spawner = yield* ChildProcessSpawner;
|
|
17287
17278
|
const env = coreEnv(options);
|
|
17288
17279
|
const run = (args) => gen(function* () {
|
|
17289
|
-
const handle = yield* spawner.spawn(
|
|
17280
|
+
const handle = yield* spawner.spawn(make2("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
|
|
17290
17281
|
const [stdout, stderr, exitCode] = yield* all3([
|
|
17291
17282
|
mkString(decodeText(handle.stdout)),
|
|
17292
17283
|
mkString(decodeText(handle.stderr)),
|
|
@@ -17312,7 +17303,7 @@ class CommandFailed2 extends TaggedError("CommandFailed") {
|
|
|
17312
17303
|
}
|
|
17313
17304
|
var runCommand2 = (command, args, options = {}) => gen(function* () {
|
|
17314
17305
|
const spawner = yield* ChildProcessSpawner;
|
|
17315
|
-
const handle = yield* spawner.spawn(
|
|
17306
|
+
const handle = yield* spawner.spawn(make2(command, args, {
|
|
17316
17307
|
stdin: "ignore",
|
|
17317
17308
|
...options.cwd === undefined ? undefined : { cwd: options.cwd },
|
|
17318
17309
|
...options.env === undefined ? undefined : { extendEnv: true, env: options.env }
|
|
@@ -17338,8 +17329,8 @@ var shellOutputTailChars2 = 64 * 1024;
|
|
|
17338
17329
|
var runProcess2 = (argv, options) => gen(function* () {
|
|
17339
17330
|
const spawner = yield* ChildProcessSpawner;
|
|
17340
17331
|
const [command, ...args] = argv;
|
|
17341
|
-
const handle = yield* spawner.spawn(
|
|
17342
|
-
stdin: options.stdin === undefined ? "ignore" :
|
|
17332
|
+
const handle = yield* spawner.spawn(make2(command, args, {
|
|
17333
|
+
stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
|
|
17343
17334
|
...options.cwd === undefined ? undefined : { cwd: options.cwd },
|
|
17344
17335
|
env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
|
|
17345
17336
|
}));
|
|
@@ -17859,4 +17850,4 @@ function serviceChecks(declaration) {
|
|
|
17859
17850
|
return decoded === undefined || decoded.services.length === 0 ? [] : [...new Set(decoded.checks ?? [])];
|
|
17860
17851
|
}
|
|
17861
17852
|
|
|
17862
|
-
export { Clock, currentTimeMillis, 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,
|
|
17853
|
+
export { Clock, currentTimeMillis, 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, make4, 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, make5, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make6, 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 };
|