@kitman-sh/cli 0.13.8 → 0.13.10
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-cq2h8q9e.js → chunk-0nh3w4vn.js} +7 -7
- package/dist/{chunk-gq7y5v3e.js → chunk-24h0y27w.js} +1 -1
- package/dist/{chunk-zz589n7a.js → chunk-2dwqak36.js} +9 -9
- package/dist/{chunk-5zth85pj.js → chunk-4crf5vhd.js} +2 -2
- package/dist/{chunk-a24jc5rx.js → chunk-6n3m0t02.js} +31 -7
- package/dist/{chunk-byeasm6x.js → chunk-6x4wkf0x.js} +3 -3
- package/dist/{chunk-gr17n0z3.js → chunk-813vn8sn.js} +18 -18
- package/dist/{chunk-08dyrk6y.js → chunk-bkecckjn.js} +10 -10
- package/dist/{chunk-eg1n8wvf.js → chunk-c60xk73g.js} +21 -21
- package/dist/{chunk-h1rmw7yk.js → chunk-d4pxty7x.js} +5 -5
- package/dist/{chunk-y1krmnbv.js → chunk-ggmwpwhf.js} +2 -2
- package/dist/{chunk-7bytsxkf.js → chunk-hkg8s472.js} +9 -8
- package/dist/{chunk-ff1r9vcq.js → chunk-j34gensq.js} +1 -1
- package/dist/{chunk-gj1padza.js → chunk-jkddgvev.js} +52 -32
- package/dist/{chunk-96svx416.js → chunk-kj1zjrs9.js} +6 -6
- package/dist/{chunk-5zhh41gb.js → chunk-kk32jckf.js} +4 -4
- package/dist/{chunk-gy9rf14f.js → chunk-mmd7mjv0.js} +3 -3
- package/dist/{chunk-cbpb2rww.js → chunk-mtdz4k32.js} +10 -10
- package/dist/{chunk-q5w3v4k1.js → chunk-pxvd8w2v.js} +1 -1
- package/dist/{chunk-z68rzf0f.js → chunk-r5v7df8h.js} +61 -61
- package/dist/{chunk-vm2qy986.js → chunk-rz01craf.js} +108 -116
- package/dist/{chunk-c4ccpwjy.js → chunk-s00cj5sw.js} +4 -4
- package/dist/{chunk-0h49y8gf.js → chunk-t82w7459.js} +26 -17
- package/dist/{chunk-mtkstrh3.js → chunk-vxfajzpz.js} +14 -60
- package/dist/{chunk-zw3gf6r5.js → chunk-zgraq2y3.js} +70 -28
- 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
|
map9,
|
|
@@ -261,17 +264,18 @@ import {
|
|
|
261
264
|
decodeJsonStringOption,
|
|
262
265
|
encodeJsonStringSync,
|
|
263
266
|
encodePrettyJsonString
|
|
264
|
-
} from "./chunk-
|
|
267
|
+
} from "./chunk-zgraq2y3.js";
|
|
265
268
|
import {
|
|
266
269
|
map,
|
|
267
270
|
makeEquivalence,
|
|
271
|
+
toNumber,
|
|
268
272
|
bytes,
|
|
269
273
|
BadArgument,
|
|
270
274
|
systemError,
|
|
271
275
|
badArgument,
|
|
272
276
|
makeUnsafe2,
|
|
277
|
+
make7,
|
|
273
278
|
make8,
|
|
274
|
-
make9,
|
|
275
279
|
sliding,
|
|
276
280
|
unbounded2,
|
|
277
281
|
offer,
|
|
@@ -287,13 +291,13 @@ import {
|
|
|
287
291
|
isSink,
|
|
288
292
|
fromChannel,
|
|
289
293
|
drain,
|
|
290
|
-
|
|
294
|
+
make9,
|
|
291
295
|
get3,
|
|
292
296
|
isStream,
|
|
293
297
|
fromChannel2,
|
|
294
298
|
callback,
|
|
295
299
|
empty2,
|
|
296
|
-
|
|
300
|
+
make10,
|
|
297
301
|
suspend,
|
|
298
302
|
fail2,
|
|
299
303
|
fromQueue,
|
|
@@ -319,16 +323,16 @@ import {
|
|
|
319
323
|
mkArrayBuffer,
|
|
320
324
|
toReadableStreamEffect,
|
|
321
325
|
FileSystem,
|
|
322
|
-
|
|
326
|
+
make11,
|
|
323
327
|
FileTypeId,
|
|
324
328
|
WatchBackend,
|
|
325
329
|
Path,
|
|
326
|
-
|
|
330
|
+
make12,
|
|
327
331
|
option,
|
|
328
332
|
String2,
|
|
329
333
|
optionalEnv,
|
|
330
334
|
harnessesUnsupportedInSrt2
|
|
331
|
-
} from "./chunk-
|
|
335
|
+
} from "./chunk-t82w7459.js";
|
|
332
336
|
import {
|
|
333
337
|
isDateTime,
|
|
334
338
|
Numeric,
|
|
@@ -341,21 +345,18 @@ import {
|
|
|
341
345
|
SecretScope,
|
|
342
346
|
SecretHosts,
|
|
343
347
|
isSecretReference
|
|
344
|
-
} from "./chunk-
|
|
348
|
+
} from "./chunk-pxvd8w2v.js";
|
|
345
349
|
import {
|
|
346
|
-
isRedacted,
|
|
347
|
-
make,
|
|
348
|
-
value,
|
|
349
350
|
ExitCode,
|
|
350
351
|
ProcessId,
|
|
351
352
|
makeHandle,
|
|
352
|
-
|
|
353
|
+
make,
|
|
353
354
|
ChildProcessSpawner,
|
|
354
355
|
display,
|
|
355
|
-
|
|
356
|
+
make2,
|
|
356
357
|
parseFdName,
|
|
357
358
|
fdName
|
|
358
|
-
} from "./chunk-
|
|
359
|
+
} from "./chunk-vxfajzpz.js";
|
|
359
360
|
|
|
360
361
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
|
|
361
362
|
var makeEquivalence3 = Tuple;
|
|
@@ -518,7 +519,7 @@ var makeUnsafe6 = (input) => {
|
|
|
518
519
|
var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
|
|
519
520
|
var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
|
|
520
521
|
var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
|
|
521
|
-
var
|
|
522
|
+
var make3 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
|
|
522
523
|
var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
|
|
523
524
|
var nowUnsafe = () => makeUtc(Date.now());
|
|
524
525
|
var toDateUtc = (self) => new Date(self.epochMilliseconds);
|
|
@@ -897,18 +898,9 @@ var runMain2 = /* @__PURE__ */ makeRunMain(({
|
|
|
897
898
|
// node_modules/.bun/@effect+platform-bun@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-bun/dist/BunRuntime.js
|
|
898
899
|
var runMain = runMain2;
|
|
899
900
|
|
|
900
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
|
|
901
|
-
var BigInt2 = globalThis.BigInt;
|
|
902
|
-
var toNumber = (b) => {
|
|
903
|
-
if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
|
|
904
|
-
return none();
|
|
905
|
-
}
|
|
906
|
-
return some(Number(b));
|
|
907
|
-
};
|
|
908
|
-
|
|
909
901
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
|
|
910
902
|
var makeUnsafe = makeUnsafe6;
|
|
911
|
-
var make18 =
|
|
903
|
+
var make18 = make3;
|
|
912
904
|
var now2 = now;
|
|
913
905
|
var nowUnsafe2 = nowUnsafe;
|
|
914
906
|
var toDateUtc2 = toDateUtc;
|
|
@@ -1123,7 +1115,7 @@ var readableToPullUnsafe = (options) => {
|
|
|
1123
1115
|
const readable = options.readable;
|
|
1124
1116
|
const chunkSize = options.chunkSize ?? 4096;
|
|
1125
1117
|
const closeOnDone = options.closeOnDone ?? true;
|
|
1126
|
-
const exit = options.exit ??
|
|
1118
|
+
const exit = options.exit ?? make7(undefined);
|
|
1127
1119
|
const latch = options.latch ?? makeUnsafe2(false);
|
|
1128
1120
|
function onReadable() {
|
|
1129
1121
|
latch.openUnsafe();
|
|
@@ -1687,7 +1679,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1687
1679
|
const sourceStream = unwrap(succeed6(getSourceStream(handles[handles.length - 1], options.from)));
|
|
1688
1680
|
const toOption = options.to ?? "stdin";
|
|
1689
1681
|
if (toOption === "stdin") {
|
|
1690
|
-
handles.push(yield* spawnCommand(
|
|
1682
|
+
handles.push(yield* spawnCommand(make2(command.command, command.args, {
|
|
1691
1683
|
...command.options,
|
|
1692
1684
|
stdin: {
|
|
1693
1685
|
...stdinConfig,
|
|
@@ -1707,7 +1699,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1707
1699
|
type: "input",
|
|
1708
1700
|
stream: sourceStream
|
|
1709
1701
|
};
|
|
1710
|
-
handles.push(yield* spawnCommand(
|
|
1702
|
+
handles.push(yield* spawnCommand(make2(command.command, command.args, {
|
|
1711
1703
|
...command.options,
|
|
1712
1704
|
additionalFds: {
|
|
1713
1705
|
...existingFds,
|
|
@@ -1715,7 +1707,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1715
1707
|
}
|
|
1716
1708
|
})));
|
|
1717
1709
|
} else {
|
|
1718
|
-
handles.push(yield* spawnCommand(
|
|
1710
|
+
handles.push(yield* spawnCommand(make2(command.command, command.args, {
|
|
1719
1711
|
...command.options,
|
|
1720
1712
|
stdin: {
|
|
1721
1713
|
...stdinConfig,
|
|
@@ -1754,7 +1746,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1754
1746
|
}
|
|
1755
1747
|
}
|
|
1756
1748
|
});
|
|
1757
|
-
return
|
|
1749
|
+
return make(spawnCommand);
|
|
1758
1750
|
});
|
|
1759
1751
|
var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
|
|
1760
1752
|
var flattenCommand = (command) => {
|
|
@@ -2240,7 +2232,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
|
|
|
2240
2232
|
resume(fail7(handleBadArgument("writeFile")(err)));
|
|
2241
2233
|
}
|
|
2242
2234
|
});
|
|
2243
|
-
var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) =>
|
|
2235
|
+
var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make11({
|
|
2244
2236
|
access: access2,
|
|
2245
2237
|
chmod: chmod2,
|
|
2246
2238
|
chown: chown2,
|
|
@@ -2300,15 +2292,15 @@ var fileUrlOps = (windows) => ({
|
|
|
2300
2292
|
})
|
|
2301
2293
|
})
|
|
2302
2294
|
});
|
|
2303
|
-
var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2295
|
+
var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
|
|
2304
2296
|
...NodePath.posix,
|
|
2305
2297
|
.../* @__PURE__ */ fileUrlOps(false)
|
|
2306
2298
|
}));
|
|
2307
|
-
var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2299
|
+
var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
|
|
2308
2300
|
...NodePath.win32,
|
|
2309
2301
|
.../* @__PURE__ */ fileUrlOps(true)
|
|
2310
2302
|
}));
|
|
2311
|
-
var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2303
|
+
var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
|
|
2312
2304
|
...NodePath,
|
|
2313
2305
|
.../* @__PURE__ */ fileUrlOps(undefined)
|
|
2314
2306
|
}));
|
|
@@ -2830,12 +2822,12 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
|
2830
2822
|
if (typeof key === "string") {
|
|
2831
2823
|
const k = key.toLowerCase();
|
|
2832
2824
|
if (k in self) {
|
|
2833
|
-
out[k] =
|
|
2825
|
+
out[k] = make16(self[k]);
|
|
2834
2826
|
}
|
|
2835
2827
|
} else {
|
|
2836
2828
|
for (const name in self) {
|
|
2837
2829
|
if (name.search(key) !== -1) {
|
|
2838
|
-
out[name] =
|
|
2830
|
+
out[name] = make16(self[name]);
|
|
2839
2831
|
}
|
|
2840
2832
|
}
|
|
2841
2833
|
}
|
|
@@ -2942,7 +2934,7 @@ var fromInputNested = (input) => {
|
|
|
2942
2934
|
return out;
|
|
2943
2935
|
};
|
|
2944
2936
|
var coerce = (value) => isRedacted(value) ? value : String(value);
|
|
2945
|
-
var Equivalence3 = /* @__PURE__ */
|
|
2937
|
+
var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
|
|
2946
2938
|
var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
|
|
2947
2939
|
var empty4 = /* @__PURE__ */ make23([]);
|
|
2948
2940
|
var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
@@ -2961,7 +2953,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
|
2961
2953
|
var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
|
|
2962
2954
|
var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
2963
2955
|
const patterns = Array.isArray(key) ? key : [key];
|
|
2964
|
-
return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ?
|
|
2956
|
+
return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make16(value) : value]);
|
|
2965
2957
|
});
|
|
2966
2958
|
var isRedactedName2 = isRedactedName;
|
|
2967
2959
|
var redactUrl = (url, redactedNames = currentRedactedNames()) => {
|
|
@@ -3037,7 +3029,7 @@ import * as readline from "readline";
|
|
|
3037
3029
|
var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
|
|
3038
3030
|
const stdin = process.stdin;
|
|
3039
3031
|
const stdout = process.stdout;
|
|
3040
|
-
const lines = yield*
|
|
3032
|
+
const lines = yield* make8();
|
|
3041
3033
|
let inputEnded = stdin.readableEnded;
|
|
3042
3034
|
let readlineActive = false;
|
|
3043
3035
|
const onStdinEnd = () => {
|
|
@@ -3048,7 +3040,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3048
3040
|
};
|
|
3049
3041
|
stdin.once("end", onStdinEnd);
|
|
3050
3042
|
yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
|
|
3051
|
-
const rlRef = yield*
|
|
3043
|
+
const rlRef = yield* make9({
|
|
3052
3044
|
acquire: acquireRelease(sync2(() => {
|
|
3053
3045
|
const rl = readline.createInterface({
|
|
3054
3046
|
input: stdin,
|
|
@@ -3087,7 +3079,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3087
3079
|
if (stdin.isTTY)
|
|
3088
3080
|
stdin.setRawMode(enabled);
|
|
3089
3081
|
});
|
|
3090
|
-
const rawModeRef = yield*
|
|
3082
|
+
const rawModeRef = yield* make9({
|
|
3091
3083
|
acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
|
|
3092
3084
|
idleTimeToLive: "10 millis"
|
|
3093
3085
|
});
|
|
@@ -3108,7 +3100,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3108
3100
|
return queue;
|
|
3109
3101
|
});
|
|
3110
3102
|
const readInput = gen(function* () {
|
|
3111
|
-
const queue = yield*
|
|
3103
|
+
const queue = yield* make8();
|
|
3112
3104
|
const handleKeypress = (s, k) => {
|
|
3113
3105
|
const userInput = {
|
|
3114
3106
|
input: fromUndefinedOr(s),
|
|
@@ -9967,14 +9959,14 @@ function makeWith(method, url, urlParams, hash, headers, body) {
|
|
|
9967
9959
|
return self;
|
|
9968
9960
|
}
|
|
9969
9961
|
var empty6 = /* @__PURE__ */ makeWith("GET", "", empty4, /* @__PURE__ */ none(), empty, empty5);
|
|
9970
|
-
var
|
|
9962
|
+
var make4 = (method) => (url, options) => modify(empty6, {
|
|
9971
9963
|
method,
|
|
9972
9964
|
url,
|
|
9973
9965
|
...options ?? undefined
|
|
9974
9966
|
});
|
|
9975
|
-
var get = /* @__PURE__ */
|
|
9976
|
-
var post = /* @__PURE__ */
|
|
9977
|
-
var put = /* @__PURE__ */
|
|
9967
|
+
var get = /* @__PURE__ */ make4("GET");
|
|
9968
|
+
var post = /* @__PURE__ */ make4("POST");
|
|
9969
|
+
var put = /* @__PURE__ */ make4("PUT");
|
|
9978
9970
|
var modify = /* @__PURE__ */ dual(2, (self, options) => {
|
|
9979
9971
|
let result = self;
|
|
9980
9972
|
if (options.method) {
|
|
@@ -10275,7 +10267,7 @@ var Proto7 = {
|
|
|
10275
10267
|
};
|
|
10276
10268
|
},
|
|
10277
10269
|
.../* @__PURE__ */ Object.fromEntries(/* @__PURE__ */ allShort.map(([fullMethod, method]) => [method, function(url, options) {
|
|
10278
|
-
return this.execute(
|
|
10270
|
+
return this.execute(make4(fullMethod)(url, options));
|
|
10279
10271
|
}]))
|
|
10280
10272
|
};
|
|
10281
10273
|
var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
|
|
@@ -13985,7 +13977,7 @@ var makeProto = (options) => {
|
|
|
13985
13977
|
Rpc.key = `effect/rpc/Rpc/${options._tag}`;
|
|
13986
13978
|
return Rpc;
|
|
13987
13979
|
};
|
|
13988
|
-
var
|
|
13980
|
+
var make5 = (tag, options) => {
|
|
13989
13981
|
const successSchema = options?.success ?? Void;
|
|
13990
13982
|
const errorSchema = options?.error ?? Never;
|
|
13991
13983
|
const defectSchema = options?.defect ?? Defect();
|
|
@@ -14196,7 +14188,7 @@ var RpcGroupProto = {
|
|
|
14196
14188
|
});
|
|
14197
14189
|
},
|
|
14198
14190
|
annotateRpcs(service, value) {
|
|
14199
|
-
return this.annotateRpcsMerge(
|
|
14191
|
+
return this.annotateRpcsMerge(make14(service, value));
|
|
14200
14192
|
},
|
|
14201
14193
|
annotateMerge(context) {
|
|
14202
14194
|
return makeProto2({
|
|
@@ -14219,7 +14211,7 @@ var makeProto2 = (options) => Object.assign(function() {}, RpcGroupProto, {
|
|
|
14219
14211
|
requests: options.requests,
|
|
14220
14212
|
annotations: options.annotations
|
|
14221
14213
|
});
|
|
14222
|
-
var
|
|
14214
|
+
var make6 = (...rpcs) => makeProto2({
|
|
14223
14215
|
requests: new Map(rpcs.map((rpc) => [rpc._tag, rpc])),
|
|
14224
14216
|
annotations: empty3()
|
|
14225
14217
|
});
|
|
@@ -14325,96 +14317,96 @@ var ProgramOutcome = Union([
|
|
|
14325
14317
|
Struct({ status: Literal("failed"), failureSummary: String4 })
|
|
14326
14318
|
]);
|
|
14327
14319
|
|
|
14328
|
-
class RunnerReplicaRpcs extends
|
|
14320
|
+
class RunnerReplicaRpcs extends make6(make5("Claim", {
|
|
14329
14321
|
payload: WorkUnitClaimInput,
|
|
14330
14322
|
success: WorkUnitClaimResult,
|
|
14331
14323
|
error: RunnerRpcError
|
|
14332
|
-
}),
|
|
14324
|
+
}), make5("Heartbeat", {
|
|
14333
14325
|
payload: WorkUnitHeartbeatInput,
|
|
14334
14326
|
success: WorkUnitHeartbeatResult,
|
|
14335
14327
|
error: RunnerRpcError
|
|
14336
|
-
}),
|
|
14328
|
+
}), make5("Complete", {
|
|
14337
14329
|
payload: WorkUnitCompletion,
|
|
14338
14330
|
error: RunnerRpcError
|
|
14339
|
-
}),
|
|
14331
|
+
}), make5("Release", {
|
|
14340
14332
|
payload: WorkUnitReleaseInput,
|
|
14341
14333
|
error: RunnerRpcError
|
|
14342
|
-
}),
|
|
14334
|
+
}), make5("Signals", {
|
|
14343
14335
|
payload: { runnerReplicaId: String4 },
|
|
14344
14336
|
success: RunnerSignal,
|
|
14345
14337
|
error: RunnerRpcError,
|
|
14346
14338
|
stream: true
|
|
14347
|
-
}),
|
|
14339
|
+
}), make5("ReportSteer", {
|
|
14348
14340
|
payload: { workUnitId: String4, messageId: String4, delivered: Boolean2 },
|
|
14349
14341
|
success: Void,
|
|
14350
14342
|
error: RunnerRpcError
|
|
14351
|
-
}),
|
|
14343
|
+
}), make5("AppendTranscript", {
|
|
14352
14344
|
payload: { workUnitId: String4, entries: ArraySchema(TranscriptAppendEntry).check(isMaxLength(100)) },
|
|
14353
14345
|
success: Void,
|
|
14354
14346
|
error: RunnerRpcError
|
|
14355
|
-
}),
|
|
14347
|
+
}), make5("CreateCheckpointFile", {
|
|
14356
14348
|
payload: { lease: ProgramLease, byteSize: Int, sha256: String4 },
|
|
14357
14349
|
success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
|
|
14358
14350
|
error: Union([RunnerRpcError, RunFileRefused])
|
|
14359
|
-
}),
|
|
14351
|
+
}), make5("CheckpointFileParts", {
|
|
14360
14352
|
payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
|
|
14361
14353
|
success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
|
|
14362
14354
|
error: RunnerRpcError
|
|
14363
|
-
}),
|
|
14355
|
+
}), make5("CompleteCheckpointFile", {
|
|
14364
14356
|
payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
|
|
14365
14357
|
success: RunFileRecord,
|
|
14366
14358
|
error: RunnerRpcError
|
|
14367
|
-
}),
|
|
14359
|
+
}), make5("SaveCheckpoint", {
|
|
14368
14360
|
payload: { lease: ProgramLease, checkpoint: StepCheckpoint },
|
|
14369
14361
|
success: Void,
|
|
14370
14362
|
error: RunnerRpcError
|
|
14371
|
-
}),
|
|
14363
|
+
}), make5("ResumeCheckpoint", {
|
|
14372
14364
|
payload: { lease: ProgramLease },
|
|
14373
14365
|
success: UndefinedOr(ResumedCheckpoint),
|
|
14374
14366
|
error: RunnerRpcError
|
|
14375
|
-
}),
|
|
14367
|
+
}), make5("SettledCheckpoints", {
|
|
14376
14368
|
success: ArraySchema(Struct({
|
|
14377
14369
|
stepAttemptId: String4,
|
|
14378
14370
|
ref: optionalKey(String4),
|
|
14379
14371
|
repoBinding: optionalKey(WorkUnitRepoBinding)
|
|
14380
14372
|
})),
|
|
14381
14373
|
error: RunnerRpcError
|
|
14382
|
-
}),
|
|
14374
|
+
}), make5("ForgetCheckpoints", {
|
|
14383
14375
|
payload: { stepAttemptIds: ArraySchema(String4) },
|
|
14384
14376
|
success: Void,
|
|
14385
14377
|
error: RunnerRpcError
|
|
14386
|
-
}),
|
|
14378
|
+
}), make5("GitCredential", {
|
|
14387
14379
|
payload: { repoBindingId: String4 },
|
|
14388
14380
|
success: UndefinedOr(Struct({ username: String4, password: String4 })),
|
|
14389
14381
|
error: RunnerRpcError
|
|
14390
|
-
}),
|
|
14382
|
+
}), make5("Bundle", {
|
|
14391
14383
|
payload: { digest: String4 },
|
|
14392
14384
|
success: Struct({ bundle: String4 }),
|
|
14393
14385
|
error: RunnerRpcError
|
|
14394
|
-
}),
|
|
14386
|
+
}), make5("SettledRuns", {
|
|
14395
14387
|
payload: { runIds: ArraySchema(String4) },
|
|
14396
14388
|
success: ArraySchema(String4),
|
|
14397
14389
|
error: RunnerRpcError
|
|
14398
|
-
}),
|
|
14390
|
+
}), make5("KnownEvidence", {
|
|
14399
14391
|
payload: { lease: ProgramLease, trees: ArraySchema(String4) },
|
|
14400
14392
|
success: ArraySchema(Struct({ tree: String4, name: String4, command: String4 })),
|
|
14401
14393
|
error: RunnerRpcError
|
|
14402
14394
|
})).middleware(RunnerAuthentication) {
|
|
14403
14395
|
}
|
|
14404
14396
|
|
|
14405
|
-
class RunnerJournalRpcs extends
|
|
14397
|
+
class RunnerJournalRpcs extends make6(make5("RecordActivity", {
|
|
14406
14398
|
payload: { lease: ProgramLease, name: String4, attempt: Int, exit: Json },
|
|
14407
14399
|
error: RunnerRpcError
|
|
14408
|
-
}),
|
|
14400
|
+
}), make5("DeferredDone", {
|
|
14409
14401
|
payload: { lease: ProgramLease, name: String4, exit: Json },
|
|
14410
14402
|
error: RunnerRpcError
|
|
14411
|
-
}),
|
|
14403
|
+
}), make5("ScheduleClock", {
|
|
14412
14404
|
payload: { lease: ProgramLease, name: String4, deferredName: String4, durationMillis: Int },
|
|
14413
14405
|
error: RunnerRpcError
|
|
14414
|
-
}),
|
|
14406
|
+
}), make5("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make5("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
|
|
14415
14407
|
}
|
|
14416
14408
|
|
|
14417
|
-
class RunnerCapabilityRpcs extends
|
|
14409
|
+
class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
14418
14410
|
payload: {
|
|
14419
14411
|
lease: ProgramLease,
|
|
14420
14412
|
step: String4,
|
|
@@ -14434,7 +14426,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14434
14426
|
},
|
|
14435
14427
|
success: Struct({ questionId: String4 }),
|
|
14436
14428
|
error: RunnerRpcError
|
|
14437
|
-
}),
|
|
14429
|
+
}), make5("StartAgentStep", {
|
|
14438
14430
|
payload: {
|
|
14439
14431
|
lease: ProgramLease,
|
|
14440
14432
|
step: String4,
|
|
@@ -14450,7 +14442,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14450
14442
|
},
|
|
14451
14443
|
success: Struct({ stepAttemptId: String4 }),
|
|
14452
14444
|
error: RunnerRpcError
|
|
14453
|
-
}),
|
|
14445
|
+
}), make5("StartVerification", {
|
|
14454
14446
|
payload: {
|
|
14455
14447
|
lease: ProgramLease,
|
|
14456
14448
|
step: String4,
|
|
@@ -14471,7 +14463,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14471
14463
|
},
|
|
14472
14464
|
success: Struct({ verificationId: String4 }),
|
|
14473
14465
|
error: RunnerRpcError
|
|
14474
|
-
}),
|
|
14466
|
+
}), make5("AwaitEvent", {
|
|
14475
14467
|
payload: {
|
|
14476
14468
|
lease: ProgramLease,
|
|
14477
14469
|
step: String4,
|
|
@@ -14487,7 +14479,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14487
14479
|
})))
|
|
14488
14480
|
},
|
|
14489
14481
|
error: RunnerRpcError
|
|
14490
|
-
}),
|
|
14482
|
+
}), make5("ClaimResource", {
|
|
14491
14483
|
payload: {
|
|
14492
14484
|
lease: ProgramLease,
|
|
14493
14485
|
step: String4,
|
|
@@ -14496,7 +14488,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14496
14488
|
action: Literals(["claim", "take_over", "let_go"])
|
|
14497
14489
|
},
|
|
14498
14490
|
error: RunnerRpcError
|
|
14499
|
-
}),
|
|
14491
|
+
}), make5("AdmitChild", {
|
|
14500
14492
|
payload: {
|
|
14501
14493
|
lease: ProgramLease,
|
|
14502
14494
|
step: String4,
|
|
@@ -14507,7 +14499,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14507
14499
|
},
|
|
14508
14500
|
success: Struct({ runId: String4 }),
|
|
14509
14501
|
error: RunnerRpcError
|
|
14510
|
-
}),
|
|
14502
|
+
}), make5("StoreArtifact", {
|
|
14511
14503
|
payload: {
|
|
14512
14504
|
lease: ProgramLease,
|
|
14513
14505
|
step: String4,
|
|
@@ -14519,7 +14511,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14519
14511
|
},
|
|
14520
14512
|
success: Struct({ artifactId: String4 }),
|
|
14521
14513
|
error: RunnerRpcError
|
|
14522
|
-
}),
|
|
14514
|
+
}), make5("RecordNote", {
|
|
14523
14515
|
payload: {
|
|
14524
14516
|
lease: ProgramLease,
|
|
14525
14517
|
step: String4,
|
|
@@ -14528,7 +14520,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14528
14520
|
kind: optional(Literals(["note", "blocker"]))
|
|
14529
14521
|
},
|
|
14530
14522
|
error: RunnerRpcError
|
|
14531
|
-
}),
|
|
14523
|
+
}), make5("PerformHostEffect", {
|
|
14532
14524
|
payload: {
|
|
14533
14525
|
lease: ProgramLease,
|
|
14534
14526
|
step: String4,
|
|
@@ -14557,7 +14549,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14557
14549
|
},
|
|
14558
14550
|
success: UndefinedOr(Struct({ id: String4, number: String4, url: String4 })),
|
|
14559
14551
|
error: RunnerRpcError
|
|
14560
|
-
}),
|
|
14552
|
+
}), make5("AlertTask", {
|
|
14561
14553
|
payload: {
|
|
14562
14554
|
lease: ProgramLease,
|
|
14563
14555
|
step: String4,
|
|
@@ -14574,7 +14566,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14574
14566
|
joined: optionalKey(Struct({ kind: Literals(["run", "recent"]), runId: String4 }))
|
|
14575
14567
|
}),
|
|
14576
14568
|
error: RunnerRpcError
|
|
14577
|
-
}),
|
|
14569
|
+
}), make5("ReadTranscripts", {
|
|
14578
14570
|
payload: {
|
|
14579
14571
|
lease: ProgramLease,
|
|
14580
14572
|
step: String4,
|
|
@@ -14609,7 +14601,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14609
14601
|
})))
|
|
14610
14602
|
}),
|
|
14611
14603
|
error: RunnerRpcError
|
|
14612
|
-
}),
|
|
14604
|
+
}), make5("PipelineStatus", {
|
|
14613
14605
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
|
|
14614
14606
|
success: Struct({
|
|
14615
14607
|
head: String4,
|
|
@@ -14643,11 +14635,11 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14643
14635
|
}))
|
|
14644
14636
|
}),
|
|
14645
14637
|
error: RunnerRpcError
|
|
14646
|
-
}),
|
|
14638
|
+
}), make5("ReportPipeline", {
|
|
14647
14639
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4, verification: String4 },
|
|
14648
14640
|
success: Struct({ head: String4, status: Literals(["success", "failed"]) }),
|
|
14649
14641
|
error: RunnerRpcError
|
|
14650
|
-
}),
|
|
14642
|
+
}), make5("ReviewThreads", {
|
|
14651
14643
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
|
|
14652
14644
|
success: Struct({
|
|
14653
14645
|
threads: ArraySchema(Struct({
|
|
@@ -14659,7 +14651,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14659
14651
|
}))
|
|
14660
14652
|
}),
|
|
14661
14653
|
error: RunnerRpcError
|
|
14662
|
-
}),
|
|
14654
|
+
}), make5("OpenChangeRequests", {
|
|
14663
14655
|
payload: { lease: ProgramLease, step: String4, authors: NonEmptyArray(String4) },
|
|
14664
14656
|
success: Struct({
|
|
14665
14657
|
changeRequests: ArraySchema(Struct({
|
|
@@ -14673,7 +14665,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14673
14665
|
}))
|
|
14674
14666
|
}),
|
|
14675
14667
|
error: RunnerRpcError
|
|
14676
|
-
}),
|
|
14668
|
+
}), make5("OwnChangeRequests", {
|
|
14677
14669
|
payload: { lease: ProgramLease, step: String4 },
|
|
14678
14670
|
success: Struct({
|
|
14679
14671
|
changeRequests: ArraySchema(Struct({
|
|
@@ -14686,7 +14678,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14686
14678
|
}))
|
|
14687
14679
|
}),
|
|
14688
14680
|
error: RunnerRpcError
|
|
14689
|
-
}),
|
|
14681
|
+
}), make5("Propose", {
|
|
14690
14682
|
payload: {
|
|
14691
14683
|
lease: ProgramLease,
|
|
14692
14684
|
step: String4,
|
|
@@ -14715,7 +14707,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14715
14707
|
task: optionalKey(Struct({ id: String4, active: Boolean2 }))
|
|
14716
14708
|
}),
|
|
14717
14709
|
error: RunnerRpcError
|
|
14718
|
-
}),
|
|
14710
|
+
}), make5("ReadProject", {
|
|
14719
14711
|
payload: { lease: ProgramLease, step: String4, projectId: String4 },
|
|
14720
14712
|
success: Struct({
|
|
14721
14713
|
project: Struct({ id: String4, name: String4 }),
|
|
@@ -14738,7 +14730,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14738
14730
|
taskChanges: ArraySchema(Struct({ taskKey: String4, title: String4, change: String4, at: String4 }))
|
|
14739
14731
|
}),
|
|
14740
14732
|
error: RunnerRpcError
|
|
14741
|
-
}),
|
|
14733
|
+
}), make5("DraftUpdate", {
|
|
14742
14734
|
payload: {
|
|
14743
14735
|
lease: ProgramLease,
|
|
14744
14736
|
step: String4,
|
|
@@ -14753,7 +14745,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14753
14745
|
},
|
|
14754
14746
|
success: Struct({ id: String4 }),
|
|
14755
14747
|
error: RunnerRpcError
|
|
14756
|
-
}),
|
|
14748
|
+
}), make5("CreatePlanTasks", {
|
|
14757
14749
|
payload: {
|
|
14758
14750
|
lease: ProgramLease,
|
|
14759
14751
|
projectId: optionalKey(String4),
|
|
@@ -14773,15 +14765,15 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14773
14765
|
},
|
|
14774
14766
|
success: ArraySchema(Struct({ key: String4, taskId: String4 })),
|
|
14775
14767
|
error: RunnerRpcError
|
|
14776
|
-
}),
|
|
14768
|
+
}), make5("IntegrationBranch", {
|
|
14777
14769
|
payload: { lease: ProgramLease, repoBindingId: optionalKey(String4) },
|
|
14778
14770
|
success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
|
|
14779
14771
|
error: RunnerRpcError
|
|
14780
|
-
}),
|
|
14772
|
+
}), make5("DeliveryBase", {
|
|
14781
14773
|
payload: { lease: ProgramLease },
|
|
14782
14774
|
success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
|
|
14783
14775
|
error: RunnerRpcError
|
|
14784
|
-
}),
|
|
14776
|
+
}), make5("MergeChangeRequest", {
|
|
14785
14777
|
payload: {
|
|
14786
14778
|
lease: ProgramLease,
|
|
14787
14779
|
step: String4,
|
|
@@ -14799,7 +14791,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14799
14791
|
Struct({ status: Literal("moved"), head: String4 })
|
|
14800
14792
|
]),
|
|
14801
14793
|
error: RunnerRpcError
|
|
14802
|
-
}),
|
|
14794
|
+
}), make5("ApproveChangeRequest", {
|
|
14803
14795
|
payload: {
|
|
14804
14796
|
lease: ProgramLease,
|
|
14805
14797
|
step: String4,
|
|
@@ -14815,7 +14807,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14815
14807
|
Struct({ approved: Literal(false), reason: String4 })
|
|
14816
14808
|
]),
|
|
14817
14809
|
error: RunnerRpcError
|
|
14818
|
-
}),
|
|
14810
|
+
}), make5("CloseChangeRequest", {
|
|
14819
14811
|
payload: {
|
|
14820
14812
|
lease: ProgramLease,
|
|
14821
14813
|
step: String4,
|
|
@@ -14825,7 +14817,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14825
14817
|
},
|
|
14826
14818
|
success: Struct({ closed: Boolean2, head: optionalKey(String4) }),
|
|
14827
14819
|
error: RunnerRpcError
|
|
14828
|
-
}),
|
|
14820
|
+
}), make5("RerunPipeline", {
|
|
14829
14821
|
payload: {
|
|
14830
14822
|
lease: ProgramLease,
|
|
14831
14823
|
step: String4,
|
|
@@ -14835,7 +14827,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14835
14827
|
},
|
|
14836
14828
|
success: Struct({ head: String4, pipelines: Int }),
|
|
14837
14829
|
error: RunnerRpcError
|
|
14838
|
-
}),
|
|
14830
|
+
}), make5("PublishRelease", {
|
|
14839
14831
|
payload: {
|
|
14840
14832
|
lease: ProgramLease,
|
|
14841
14833
|
step: String4,
|
|
@@ -14847,14 +14839,14 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14847
14839
|
},
|
|
14848
14840
|
success: Struct({ tag: String4, revision: String4, url: String4 }),
|
|
14849
14841
|
error: RunnerRpcError
|
|
14850
|
-
}),
|
|
14842
|
+
}), make5("ProgramSecrets", {
|
|
14851
14843
|
payload: { lease: ProgramLease },
|
|
14852
14844
|
success: Record(String4, String4),
|
|
14853
14845
|
error: RunnerRpcError
|
|
14854
14846
|
})).middleware(RunnerAuthentication) {
|
|
14855
14847
|
}
|
|
14856
14848
|
|
|
14857
|
-
class RunnerRunFileRpcs extends
|
|
14849
|
+
class RunnerRunFileRpcs extends make6(make5("CreateRunFile", {
|
|
14858
14850
|
payload: {
|
|
14859
14851
|
lease: ProgramLease,
|
|
14860
14852
|
step: String4,
|
|
@@ -14866,11 +14858,11 @@ class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
|
|
|
14866
14858
|
},
|
|
14867
14859
|
success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
|
|
14868
14860
|
error: Union([RunnerRpcError, RunFileRefused])
|
|
14869
|
-
}),
|
|
14861
|
+
}), make5("RunFileParts", {
|
|
14870
14862
|
payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
|
|
14871
14863
|
success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
|
|
14872
14864
|
error: RunnerRpcError
|
|
14873
|
-
}),
|
|
14865
|
+
}), make5("CompleteRunFile", {
|
|
14874
14866
|
payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
|
|
14875
14867
|
success: RunFileRecord,
|
|
14876
14868
|
error: RunnerRpcError
|
|
@@ -14959,7 +14951,7 @@ function toStoredSession(token, existingRefreshToken) {
|
|
|
14959
14951
|
}
|
|
14960
14952
|
function startLoopbackServer(input) {
|
|
14961
14953
|
return gen(function* () {
|
|
14962
|
-
const code = yield*
|
|
14954
|
+
const code = yield* make15();
|
|
14963
14955
|
const context2 = yield* context();
|
|
14964
14956
|
const runSyncExit = runSyncExitWith(context2);
|
|
14965
14957
|
const server = yield* acquireRelease(sync2(() => Bun.serve({
|
|
@@ -15499,7 +15491,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
15499
15491
|
let lastId = 0;
|
|
15500
15492
|
let lost = false;
|
|
15501
15493
|
const notifications = yield* unbounded2();
|
|
15502
|
-
const ended = yield*
|
|
15494
|
+
const ended = yield* make15();
|
|
15503
15495
|
const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
|
|
15504
15496
|
onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
|
|
15505
15497
|
onNone: () => void_3,
|
|
@@ -15526,7 +15518,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
15526
15518
|
if (lost)
|
|
15527
15519
|
return yield* new HerdrCoreConnectionLost2({ method });
|
|
15528
15520
|
const id = ++lastId;
|
|
15529
|
-
const deferred = yield*
|
|
15521
|
+
const deferred = yield* make15();
|
|
15530
15522
|
pending.set(id, { method, deferred });
|
|
15531
15523
|
yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
|
|
15532
15524
|
return yield* _await(deferred);
|
|
@@ -15600,14 +15592,14 @@ var herdrCoreOver = (transport) => ({
|
|
|
15600
15592
|
return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
|
|
15601
15593
|
};
|
|
15602
15594
|
const snapshot = { type: "snapshot", terminals: subscribed.terminals };
|
|
15603
|
-
return concat(
|
|
15595
|
+
return concat(make10(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
|
|
15604
15596
|
}))
|
|
15605
15597
|
});
|
|
15606
15598
|
var spawnedTransport = (env) => gen(function* () {
|
|
15607
15599
|
const spawner = yield* ChildProcessSpawner;
|
|
15608
15600
|
const input = yield* unbounded2();
|
|
15609
15601
|
const encoder = new TextEncoder;
|
|
15610
|
-
const handle = yield* spawner.spawn(
|
|
15602
|
+
const handle = yield* spawner.spawn(make2("herdr-core", ["connect"], {
|
|
15611
15603
|
extendEnv: false,
|
|
15612
15604
|
env,
|
|
15613
15605
|
stdin: fromQueue(input),
|
|
@@ -15638,7 +15630,7 @@ var updateHerdrCore2 = (options) => gen(function* () {
|
|
|
15638
15630
|
const spawner = yield* ChildProcessSpawner;
|
|
15639
15631
|
const env = coreEnv(options);
|
|
15640
15632
|
const run = (args) => gen(function* () {
|
|
15641
|
-
const handle = yield* spawner.spawn(
|
|
15633
|
+
const handle = yield* spawner.spawn(make2("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
|
|
15642
15634
|
const [stdout, stderr, exitCode] = yield* all3([
|
|
15643
15635
|
mkString(decodeText(handle.stdout)),
|
|
15644
15636
|
mkString(decodeText(handle.stderr)),
|
|
@@ -15664,7 +15656,7 @@ class CommandFailed2 extends TaggedError("CommandFailed") {
|
|
|
15664
15656
|
}
|
|
15665
15657
|
var runCommand2 = (command, args, options = {}) => gen(function* () {
|
|
15666
15658
|
const spawner = yield* ChildProcessSpawner;
|
|
15667
|
-
const handle = yield* spawner.spawn(
|
|
15659
|
+
const handle = yield* spawner.spawn(make2(command, args, {
|
|
15668
15660
|
stdin: "ignore",
|
|
15669
15661
|
...options.cwd === undefined ? undefined : { cwd: options.cwd },
|
|
15670
15662
|
...options.env === undefined ? undefined : { extendEnv: true, env: options.env }
|
|
@@ -15690,8 +15682,8 @@ var shellOutputTailChars2 = 64 * 1024;
|
|
|
15690
15682
|
var runProcess2 = (argv, options) => gen(function* () {
|
|
15691
15683
|
const spawner = yield* ChildProcessSpawner;
|
|
15692
15684
|
const [command, ...args] = argv;
|
|
15693
|
-
const handle = yield* spawner.spawn(
|
|
15694
|
-
stdin: options.stdin === undefined ? "ignore" :
|
|
15685
|
+
const handle = yield* spawner.spawn(make2(command, args, {
|
|
15686
|
+
stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
|
|
15695
15687
|
...options.cwd === undefined ? undefined : { cwd: options.cwd },
|
|
15696
15688
|
env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
|
|
15697
15689
|
}));
|
|
@@ -16123,4 +16115,4 @@ function checkServices(declaration) {
|
|
|
16123
16115
|
return isSome(decoded) ? [...new Set(decoded.value.services)] : undefined;
|
|
16124
16116
|
}
|
|
16125
16117
|
|
|
16126
|
-
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, SafeJson, ReleaseChannels, DefaultReleaseChannel, newerKitmanVersion, releaseChannelOffers, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, tokensSpent, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, RunWaitUntils, isTestReportName, checkTests, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, MaxRunnerConcurrency, PinnedImage, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, deliveryProviderActions, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, repositoryKey, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw,
|
|
16118
|
+
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, SafeJson, ReleaseChannels, DefaultReleaseChannel, newerKitmanVersion, releaseChannelOffers, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, tokensSpent, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, RunWaitUntils, isTestReportName, checkTests, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, MaxRunnerConcurrency, PinnedImage, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, deliveryProviderActions, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, repositoryKey, 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, KitName, KitDigest, defaultKitName, 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, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices };
|