@kitman-sh/cli 0.10.90 → 0.10.92
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-yx90ye72.js → chunk-0cbdb51w.js} +7 -7
- package/dist/{chunk-xb70ys3n.js → chunk-25q7mg6g.js} +17 -17
- package/dist/{chunk-e8zm8z3a.js → chunk-2ndnvcp3.js} +8 -8
- package/dist/{chunk-jq8hhvdv.js → chunk-5qmjv3n4.js} +8 -8
- package/dist/{chunk-5vsqzmvf.js → chunk-5s6e82wd.js} +5 -5
- package/dist/{chunk-py4t32pa.js → chunk-63mhk3ft.js} +110 -108
- package/dist/{chunk-dd5aa39j.js → chunk-8zhjaef4.js} +263 -34
- package/dist/{chunk-fq47a5yd.js → chunk-9m9cv82t.js} +2 -2
- package/dist/{chunk-j9frwmmt.js → chunk-a7zc3zf8.js} +3 -3
- package/dist/{chunk-75d425rk.js → chunk-bjdn0pww.js} +4 -4
- package/dist/{chunk-76ctrqm6.js → chunk-c3k32vw4.js} +1 -1
- package/dist/{chunk-x11j5jcj.js → chunk-cb4z73yk.js} +35 -27
- package/dist/{chunk-jbwk6k6m.js → chunk-dstm8aen.js} +71 -28
- package/dist/{chunk-62565d52.js → chunk-hsf2sj69.js} +2 -2
- package/dist/{chunk-tzz4fv17.js → chunk-k4fvnphp.js} +1 -1
- package/dist/{chunk-bbvvx5z1.js → chunk-kd3y2tq5.js} +19 -19
- package/dist/{chunk-mgmsx0bm.js → chunk-m4ac8xka.js} +7 -7
- package/dist/{chunk-kgdppbdr.js → chunk-mbqeakm1.js} +1 -1
- package/dist/{chunk-ky974pcr.js → chunk-rmsm8vnc.js} +4 -4
- package/dist/{chunk-rq6bn96v.js → chunk-vsb31vgf.js} +5 -5
- package/dist/{chunk-0gs7cjkt.js → chunk-vzhkp7xw.js} +4 -4
- package/dist/{chunk-m1ewm9dy.js → chunk-vzynb4qs.js} +25 -25
- package/dist/{chunk-98sg1yyd.js → chunk-w0sehmpd.js} +14 -60
- package/dist/{chunk-9zd52pda.js → chunk-yzmyy4vs.js} +5 -5
- 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,
|
|
@@ -249,7 +252,7 @@ import {
|
|
|
249
252
|
decodeJsonStringOption,
|
|
250
253
|
encodeJsonStringSync,
|
|
251
254
|
encodePrettyJsonString
|
|
252
|
-
} from "./chunk-
|
|
255
|
+
} from "./chunk-dstm8aen.js";
|
|
253
256
|
import {
|
|
254
257
|
map,
|
|
255
258
|
makeEquivalence,
|
|
@@ -258,8 +261,8 @@ import {
|
|
|
258
261
|
systemError,
|
|
259
262
|
badArgument,
|
|
260
263
|
makeUnsafe2,
|
|
264
|
+
make7,
|
|
261
265
|
make8,
|
|
262
|
-
make9,
|
|
263
266
|
sliding,
|
|
264
267
|
unbounded2,
|
|
265
268
|
offer,
|
|
@@ -275,13 +278,13 @@ import {
|
|
|
275
278
|
isSink,
|
|
276
279
|
fromChannel,
|
|
277
280
|
drain,
|
|
278
|
-
|
|
281
|
+
make9,
|
|
279
282
|
get3,
|
|
280
283
|
isStream,
|
|
281
284
|
fromChannel2,
|
|
282
285
|
callback,
|
|
283
286
|
empty2,
|
|
284
|
-
|
|
287
|
+
make10,
|
|
285
288
|
suspend,
|
|
286
289
|
fail2,
|
|
287
290
|
fromQueue,
|
|
@@ -307,16 +310,16 @@ import {
|
|
|
307
310
|
mkArrayBuffer,
|
|
308
311
|
toReadableStreamEffect,
|
|
309
312
|
FileSystem,
|
|
310
|
-
|
|
313
|
+
make11,
|
|
311
314
|
FileTypeId,
|
|
312
315
|
WatchBackend,
|
|
313
316
|
Path,
|
|
314
|
-
|
|
317
|
+
make12,
|
|
315
318
|
option,
|
|
316
319
|
String2,
|
|
317
320
|
optionalEnv,
|
|
318
321
|
harnessesUnsupportedInSrt2
|
|
319
|
-
} from "./chunk-
|
|
322
|
+
} from "./chunk-25q7mg6g.js";
|
|
320
323
|
import {
|
|
321
324
|
isDateTime,
|
|
322
325
|
Numeric,
|
|
@@ -329,7 +332,7 @@ import {
|
|
|
329
332
|
SecretScope,
|
|
330
333
|
SecretHosts,
|
|
331
334
|
isSecretReference
|
|
332
|
-
} from "./chunk-
|
|
335
|
+
} from "./chunk-mbqeakm1.js";
|
|
333
336
|
import {
|
|
334
337
|
toJsonValue,
|
|
335
338
|
isOneOf,
|
|
@@ -343,21 +346,18 @@ import {
|
|
|
343
346
|
isSymbol,
|
|
344
347
|
isUndefined,
|
|
345
348
|
kindOf
|
|
346
|
-
} from "./chunk-
|
|
349
|
+
} from "./chunk-k4fvnphp.js";
|
|
347
350
|
import {
|
|
348
|
-
isRedacted,
|
|
349
|
-
make,
|
|
350
|
-
value,
|
|
351
351
|
ExitCode,
|
|
352
352
|
ProcessId,
|
|
353
353
|
makeHandle,
|
|
354
|
-
|
|
354
|
+
make,
|
|
355
355
|
ChildProcessSpawner,
|
|
356
356
|
display,
|
|
357
|
-
|
|
357
|
+
make2,
|
|
358
358
|
parseFdName,
|
|
359
359
|
fdName
|
|
360
|
-
} from "./chunk-
|
|
360
|
+
} from "./chunk-w0sehmpd.js";
|
|
361
361
|
|
|
362
362
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
|
|
363
363
|
var makeEquivalence3 = Tuple;
|
|
@@ -520,7 +520,7 @@ var makeUnsafe6 = (input) => {
|
|
|
520
520
|
var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
|
|
521
521
|
var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
|
|
522
522
|
var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
|
|
523
|
-
var
|
|
523
|
+
var make3 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
|
|
524
524
|
var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
|
|
525
525
|
var nowUnsafe = () => makeUtc(Date.now());
|
|
526
526
|
var toDateUtc = (self) => new Date(self.epochMilliseconds);
|
|
@@ -910,7 +910,7 @@ var toNumber = (b) => {
|
|
|
910
910
|
|
|
911
911
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
|
|
912
912
|
var makeUnsafe = makeUnsafe6;
|
|
913
|
-
var make18 =
|
|
913
|
+
var make18 = make3;
|
|
914
914
|
var now2 = now;
|
|
915
915
|
var nowUnsafe2 = nowUnsafe;
|
|
916
916
|
var toDateUtc2 = toDateUtc;
|
|
@@ -1125,7 +1125,7 @@ var readableToPullUnsafe = (options) => {
|
|
|
1125
1125
|
const readable = options.readable;
|
|
1126
1126
|
const chunkSize = options.chunkSize ?? 4096;
|
|
1127
1127
|
const closeOnDone = options.closeOnDone ?? true;
|
|
1128
|
-
const exit = options.exit ??
|
|
1128
|
+
const exit = options.exit ?? make7(undefined);
|
|
1129
1129
|
const latch = options.latch ?? makeUnsafe2(false);
|
|
1130
1130
|
function onReadable() {
|
|
1131
1131
|
latch.openUnsafe();
|
|
@@ -1689,7 +1689,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1689
1689
|
const sourceStream = unwrap(succeed6(getSourceStream(handles[handles.length - 1], options.from)));
|
|
1690
1690
|
const toOption = options.to ?? "stdin";
|
|
1691
1691
|
if (toOption === "stdin") {
|
|
1692
|
-
handles.push(yield* spawnCommand(
|
|
1692
|
+
handles.push(yield* spawnCommand(make2(command.command, command.args, {
|
|
1693
1693
|
...command.options,
|
|
1694
1694
|
stdin: {
|
|
1695
1695
|
...stdinConfig,
|
|
@@ -1709,7 +1709,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1709
1709
|
type: "input",
|
|
1710
1710
|
stream: sourceStream
|
|
1711
1711
|
};
|
|
1712
|
-
handles.push(yield* spawnCommand(
|
|
1712
|
+
handles.push(yield* spawnCommand(make2(command.command, command.args, {
|
|
1713
1713
|
...command.options,
|
|
1714
1714
|
additionalFds: {
|
|
1715
1715
|
...existingFds,
|
|
@@ -1717,7 +1717,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1717
1717
|
}
|
|
1718
1718
|
})));
|
|
1719
1719
|
} else {
|
|
1720
|
-
handles.push(yield* spawnCommand(
|
|
1720
|
+
handles.push(yield* spawnCommand(make2(command.command, command.args, {
|
|
1721
1721
|
...command.options,
|
|
1722
1722
|
stdin: {
|
|
1723
1723
|
...stdinConfig,
|
|
@@ -1756,7 +1756,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1756
1756
|
}
|
|
1757
1757
|
}
|
|
1758
1758
|
});
|
|
1759
|
-
return
|
|
1759
|
+
return make(spawnCommand);
|
|
1760
1760
|
});
|
|
1761
1761
|
var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
|
|
1762
1762
|
var flattenCommand = (command) => {
|
|
@@ -2242,7 +2242,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
|
|
|
2242
2242
|
resume(fail7(handleBadArgument("writeFile")(err)));
|
|
2243
2243
|
}
|
|
2244
2244
|
});
|
|
2245
|
-
var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) =>
|
|
2245
|
+
var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make11({
|
|
2246
2246
|
access: access2,
|
|
2247
2247
|
chmod: chmod2,
|
|
2248
2248
|
chown: chown2,
|
|
@@ -2302,15 +2302,15 @@ var fileUrlOps = (windows) => ({
|
|
|
2302
2302
|
})
|
|
2303
2303
|
})
|
|
2304
2304
|
});
|
|
2305
|
-
var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2305
|
+
var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
|
|
2306
2306
|
...NodePath.posix,
|
|
2307
2307
|
.../* @__PURE__ */ fileUrlOps(false)
|
|
2308
2308
|
}));
|
|
2309
|
-
var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2309
|
+
var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
|
|
2310
2310
|
...NodePath.win32,
|
|
2311
2311
|
.../* @__PURE__ */ fileUrlOps(true)
|
|
2312
2312
|
}));
|
|
2313
|
-
var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2313
|
+
var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
|
|
2314
2314
|
...NodePath,
|
|
2315
2315
|
.../* @__PURE__ */ fileUrlOps(undefined)
|
|
2316
2316
|
}));
|
|
@@ -2832,12 +2832,12 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
|
2832
2832
|
if (typeof key === "string") {
|
|
2833
2833
|
const k = key.toLowerCase();
|
|
2834
2834
|
if (k in self) {
|
|
2835
|
-
out[k] =
|
|
2835
|
+
out[k] = make16(self[k]);
|
|
2836
2836
|
}
|
|
2837
2837
|
} else {
|
|
2838
2838
|
for (const name in self) {
|
|
2839
2839
|
if (name.search(key) !== -1) {
|
|
2840
|
-
out[name] =
|
|
2840
|
+
out[name] = make16(self[name]);
|
|
2841
2841
|
}
|
|
2842
2842
|
}
|
|
2843
2843
|
}
|
|
@@ -2944,7 +2944,7 @@ var fromInputNested = (input) => {
|
|
|
2944
2944
|
return out;
|
|
2945
2945
|
};
|
|
2946
2946
|
var coerce = (value) => isRedacted(value) ? value : String(value);
|
|
2947
|
-
var Equivalence3 = /* @__PURE__ */
|
|
2947
|
+
var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
|
|
2948
2948
|
var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
|
|
2949
2949
|
var empty4 = /* @__PURE__ */ make23([]);
|
|
2950
2950
|
var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
@@ -2963,7 +2963,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
|
2963
2963
|
var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
|
|
2964
2964
|
var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
2965
2965
|
const patterns = Array.isArray(key) ? key : [key];
|
|
2966
|
-
return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ?
|
|
2966
|
+
return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make16(value) : value]);
|
|
2967
2967
|
});
|
|
2968
2968
|
var isRedactedName2 = isRedactedName;
|
|
2969
2969
|
var redactUrl = (url, redactedNames = currentRedactedNames()) => {
|
|
@@ -3039,7 +3039,7 @@ import * as readline from "readline";
|
|
|
3039
3039
|
var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
|
|
3040
3040
|
const stdin = process.stdin;
|
|
3041
3041
|
const stdout = process.stdout;
|
|
3042
|
-
const lines = yield*
|
|
3042
|
+
const lines = yield* make8();
|
|
3043
3043
|
let inputEnded = stdin.readableEnded;
|
|
3044
3044
|
let readlineActive = false;
|
|
3045
3045
|
const onStdinEnd = () => {
|
|
@@ -3050,7 +3050,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3050
3050
|
};
|
|
3051
3051
|
stdin.once("end", onStdinEnd);
|
|
3052
3052
|
yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
|
|
3053
|
-
const rlRef = yield*
|
|
3053
|
+
const rlRef = yield* make9({
|
|
3054
3054
|
acquire: acquireRelease(sync2(() => {
|
|
3055
3055
|
const rl = readline.createInterface({
|
|
3056
3056
|
input: stdin,
|
|
@@ -3089,7 +3089,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3089
3089
|
if (stdin.isTTY)
|
|
3090
3090
|
stdin.setRawMode(enabled);
|
|
3091
3091
|
});
|
|
3092
|
-
const rawModeRef = yield*
|
|
3092
|
+
const rawModeRef = yield* make9({
|
|
3093
3093
|
acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
|
|
3094
3094
|
idleTimeToLive: "10 millis"
|
|
3095
3095
|
});
|
|
@@ -3110,7 +3110,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3110
3110
|
return queue;
|
|
3111
3111
|
});
|
|
3112
3112
|
const readInput = gen(function* () {
|
|
3113
|
-
const queue = yield*
|
|
3113
|
+
const queue = yield* make8();
|
|
3114
3114
|
const handleKeypress = (s, k) => {
|
|
3115
3115
|
const userInput = {
|
|
3116
3116
|
input: fromUndefinedOr(s),
|
|
@@ -6932,7 +6932,9 @@ var RunnerProblemCodes = [
|
|
|
6932
6932
|
"runner_removed",
|
|
6933
6933
|
"sandbox_missing",
|
|
6934
6934
|
"herdr_core_missing",
|
|
6935
|
-
"update_failed"
|
|
6935
|
+
"update_failed",
|
|
6936
|
+
"processes_unreaped",
|
|
6937
|
+
"processes_uncontained"
|
|
6936
6938
|
];
|
|
6937
6939
|
var RunnerProblemText = String4.check(isMinLength(1), isMaxLength(500));
|
|
6938
6940
|
var RunnerProblemReport = Struct({
|
|
@@ -9702,14 +9704,14 @@ function makeWith(method, url, urlParams, hash, headers, body) {
|
|
|
9702
9704
|
return self;
|
|
9703
9705
|
}
|
|
9704
9706
|
var empty6 = /* @__PURE__ */ makeWith("GET", "", empty4, /* @__PURE__ */ none(), empty, empty5);
|
|
9705
|
-
var
|
|
9707
|
+
var make4 = (method) => (url, options) => modify(empty6, {
|
|
9706
9708
|
method,
|
|
9707
9709
|
url,
|
|
9708
9710
|
...options ?? undefined
|
|
9709
9711
|
});
|
|
9710
|
-
var get = /* @__PURE__ */
|
|
9711
|
-
var post = /* @__PURE__ */
|
|
9712
|
-
var put = /* @__PURE__ */
|
|
9712
|
+
var get = /* @__PURE__ */ make4("GET");
|
|
9713
|
+
var post = /* @__PURE__ */ make4("POST");
|
|
9714
|
+
var put = /* @__PURE__ */ make4("PUT");
|
|
9713
9715
|
var modify = /* @__PURE__ */ dual(2, (self, options) => {
|
|
9714
9716
|
let result = self;
|
|
9715
9717
|
if (options.method) {
|
|
@@ -10010,7 +10012,7 @@ var Proto7 = {
|
|
|
10010
10012
|
};
|
|
10011
10013
|
},
|
|
10012
10014
|
.../* @__PURE__ */ Object.fromEntries(/* @__PURE__ */ allShort.map(([fullMethod, method]) => [method, function(url, options) {
|
|
10013
|
-
return this.execute(
|
|
10015
|
+
return this.execute(make4(fullMethod)(url, options));
|
|
10014
10016
|
}]))
|
|
10015
10017
|
};
|
|
10016
10018
|
var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
|
|
@@ -13617,7 +13619,7 @@ var makeProto = (options) => {
|
|
|
13617
13619
|
Rpc.key = `effect/rpc/Rpc/${options._tag}`;
|
|
13618
13620
|
return Rpc;
|
|
13619
13621
|
};
|
|
13620
|
-
var
|
|
13622
|
+
var make5 = (tag, options) => {
|
|
13621
13623
|
const successSchema = options?.success ?? Void;
|
|
13622
13624
|
const errorSchema = options?.error ?? Never;
|
|
13623
13625
|
const defectSchema = options?.defect ?? Defect();
|
|
@@ -13828,7 +13830,7 @@ var RpcGroupProto = {
|
|
|
13828
13830
|
});
|
|
13829
13831
|
},
|
|
13830
13832
|
annotateRpcs(service, value) {
|
|
13831
|
-
return this.annotateRpcsMerge(
|
|
13833
|
+
return this.annotateRpcsMerge(make14(service, value));
|
|
13832
13834
|
},
|
|
13833
13835
|
annotateMerge(context) {
|
|
13834
13836
|
return makeProto2({
|
|
@@ -13851,7 +13853,7 @@ var makeProto2 = (options) => Object.assign(function() {}, RpcGroupProto, {
|
|
|
13851
13853
|
requests: options.requests,
|
|
13852
13854
|
annotations: options.annotations
|
|
13853
13855
|
});
|
|
13854
|
-
var
|
|
13856
|
+
var make6 = (...rpcs) => makeProto2({
|
|
13855
13857
|
requests: new Map(rpcs.map((rpc) => [rpc._tag, rpc])),
|
|
13856
13858
|
annotations: empty3()
|
|
13857
13859
|
});
|
|
@@ -13958,96 +13960,96 @@ var ProgramOutcome = Union([
|
|
|
13958
13960
|
Struct({ status: Literal("failed"), failureSummary: String4 })
|
|
13959
13961
|
]);
|
|
13960
13962
|
|
|
13961
|
-
class RunnerReplicaRpcs extends
|
|
13963
|
+
class RunnerReplicaRpcs extends make6(make5("Claim", {
|
|
13962
13964
|
payload: WorkUnitClaimInput,
|
|
13963
13965
|
success: WorkUnitClaimResult,
|
|
13964
13966
|
error: RunnerRpcError
|
|
13965
|
-
}),
|
|
13967
|
+
}), make5("Heartbeat", {
|
|
13966
13968
|
payload: WorkUnitHeartbeatInput,
|
|
13967
13969
|
success: WorkUnitHeartbeatResult,
|
|
13968
13970
|
error: RunnerRpcError
|
|
13969
|
-
}),
|
|
13971
|
+
}), make5("Complete", {
|
|
13970
13972
|
payload: WorkUnitCompletion,
|
|
13971
13973
|
error: RunnerRpcError
|
|
13972
|
-
}),
|
|
13974
|
+
}), make5("Release", {
|
|
13973
13975
|
payload: WorkUnitReleaseInput,
|
|
13974
13976
|
error: RunnerRpcError
|
|
13975
|
-
}),
|
|
13977
|
+
}), make5("Signals", {
|
|
13976
13978
|
payload: { runnerReplicaId: String4 },
|
|
13977
13979
|
success: RunnerSignal,
|
|
13978
13980
|
error: RunnerRpcError,
|
|
13979
13981
|
stream: true
|
|
13980
|
-
}),
|
|
13982
|
+
}), make5("ReportSteer", {
|
|
13981
13983
|
payload: { workUnitId: String4, messageId: String4, delivered: Boolean2 },
|
|
13982
13984
|
success: Void,
|
|
13983
13985
|
error: RunnerRpcError
|
|
13984
|
-
}),
|
|
13986
|
+
}), make5("AppendTranscript", {
|
|
13985
13987
|
payload: { workUnitId: String4, entries: ArraySchema(TranscriptAppendEntry).check(isMaxLength(100)) },
|
|
13986
13988
|
success: Void,
|
|
13987
13989
|
error: RunnerRpcError
|
|
13988
|
-
}),
|
|
13990
|
+
}), make5("CreateCheckpointFile", {
|
|
13989
13991
|
payload: { lease: ProgramLease, byteSize: Int, sha256: String4 },
|
|
13990
13992
|
success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
|
|
13991
13993
|
error: Union([RunnerRpcError, RunFileRefused])
|
|
13992
|
-
}),
|
|
13994
|
+
}), make5("CheckpointFileParts", {
|
|
13993
13995
|
payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
|
|
13994
13996
|
success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
|
|
13995
13997
|
error: RunnerRpcError
|
|
13996
|
-
}),
|
|
13998
|
+
}), make5("CompleteCheckpointFile", {
|
|
13997
13999
|
payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
|
|
13998
14000
|
success: RunFileRecord,
|
|
13999
14001
|
error: RunnerRpcError
|
|
14000
|
-
}),
|
|
14002
|
+
}), make5("SaveCheckpoint", {
|
|
14001
14003
|
payload: { lease: ProgramLease, checkpoint: StepCheckpoint },
|
|
14002
14004
|
success: Void,
|
|
14003
14005
|
error: RunnerRpcError
|
|
14004
|
-
}),
|
|
14006
|
+
}), make5("ResumeCheckpoint", {
|
|
14005
14007
|
payload: { lease: ProgramLease },
|
|
14006
14008
|
success: UndefinedOr(ResumedCheckpoint),
|
|
14007
14009
|
error: RunnerRpcError
|
|
14008
|
-
}),
|
|
14010
|
+
}), make5("SettledCheckpoints", {
|
|
14009
14011
|
success: ArraySchema(Struct({
|
|
14010
14012
|
stepAttemptId: String4,
|
|
14011
14013
|
ref: optionalKey(String4),
|
|
14012
14014
|
repoBinding: optionalKey(WorkUnitRepoBinding)
|
|
14013
14015
|
})),
|
|
14014
14016
|
error: RunnerRpcError
|
|
14015
|
-
}),
|
|
14017
|
+
}), make5("ForgetCheckpoints", {
|
|
14016
14018
|
payload: { stepAttemptIds: ArraySchema(String4) },
|
|
14017
14019
|
success: Void,
|
|
14018
14020
|
error: RunnerRpcError
|
|
14019
|
-
}),
|
|
14021
|
+
}), make5("GitCredential", {
|
|
14020
14022
|
payload: { repoBindingId: String4 },
|
|
14021
14023
|
success: UndefinedOr(Struct({ username: String4, password: String4 })),
|
|
14022
14024
|
error: RunnerRpcError
|
|
14023
|
-
}),
|
|
14025
|
+
}), make5("Bundle", {
|
|
14024
14026
|
payload: { digest: String4 },
|
|
14025
14027
|
success: Struct({ bundle: String4 }),
|
|
14026
14028
|
error: RunnerRpcError
|
|
14027
|
-
}),
|
|
14029
|
+
}), make5("SettledRuns", {
|
|
14028
14030
|
payload: { runIds: ArraySchema(String4) },
|
|
14029
14031
|
success: ArraySchema(String4),
|
|
14030
14032
|
error: RunnerRpcError
|
|
14031
|
-
}),
|
|
14033
|
+
}), make5("KnownEvidence", {
|
|
14032
14034
|
payload: { lease: ProgramLease, trees: ArraySchema(String4) },
|
|
14033
14035
|
success: ArraySchema(Struct({ tree: String4, name: String4, command: String4 })),
|
|
14034
14036
|
error: RunnerRpcError
|
|
14035
14037
|
})).middleware(RunnerAuthentication) {
|
|
14036
14038
|
}
|
|
14037
14039
|
|
|
14038
|
-
class RunnerJournalRpcs extends
|
|
14040
|
+
class RunnerJournalRpcs extends make6(make5("RecordActivity", {
|
|
14039
14041
|
payload: { lease: ProgramLease, name: String4, attempt: Int, exit: Json },
|
|
14040
14042
|
error: RunnerRpcError
|
|
14041
|
-
}),
|
|
14043
|
+
}), make5("DeferredDone", {
|
|
14042
14044
|
payload: { lease: ProgramLease, name: String4, exit: Json },
|
|
14043
14045
|
error: RunnerRpcError
|
|
14044
|
-
}),
|
|
14046
|
+
}), make5("ScheduleClock", {
|
|
14045
14047
|
payload: { lease: ProgramLease, name: String4, deferredName: String4, durationMillis: Int },
|
|
14046
14048
|
error: RunnerRpcError
|
|
14047
|
-
}),
|
|
14049
|
+
}), make5("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make5("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
|
|
14048
14050
|
}
|
|
14049
14051
|
|
|
14050
|
-
class RunnerCapabilityRpcs extends
|
|
14052
|
+
class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
14051
14053
|
payload: {
|
|
14052
14054
|
lease: ProgramLease,
|
|
14053
14055
|
step: String4,
|
|
@@ -14066,7 +14068,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14066
14068
|
},
|
|
14067
14069
|
success: Struct({ questionId: String4 }),
|
|
14068
14070
|
error: RunnerRpcError
|
|
14069
|
-
}),
|
|
14071
|
+
}), make5("StartAgentStep", {
|
|
14070
14072
|
payload: {
|
|
14071
14073
|
lease: ProgramLease,
|
|
14072
14074
|
step: String4,
|
|
@@ -14082,7 +14084,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14082
14084
|
},
|
|
14083
14085
|
success: Struct({ stepAttemptId: String4 }),
|
|
14084
14086
|
error: RunnerRpcError
|
|
14085
|
-
}),
|
|
14087
|
+
}), make5("StartVerification", {
|
|
14086
14088
|
payload: {
|
|
14087
14089
|
lease: ProgramLease,
|
|
14088
14090
|
step: String4,
|
|
@@ -14101,7 +14103,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14101
14103
|
},
|
|
14102
14104
|
success: Struct({ verificationId: String4 }),
|
|
14103
14105
|
error: RunnerRpcError
|
|
14104
|
-
}),
|
|
14106
|
+
}), make5("AwaitEvent", {
|
|
14105
14107
|
payload: {
|
|
14106
14108
|
lease: ProgramLease,
|
|
14107
14109
|
step: String4,
|
|
@@ -14117,7 +14119,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14117
14119
|
})))
|
|
14118
14120
|
},
|
|
14119
14121
|
error: RunnerRpcError
|
|
14120
|
-
}),
|
|
14122
|
+
}), make5("ClaimResource", {
|
|
14121
14123
|
payload: {
|
|
14122
14124
|
lease: ProgramLease,
|
|
14123
14125
|
step: String4,
|
|
@@ -14126,7 +14128,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14126
14128
|
action: Literals(["claim", "take_over", "let_go"])
|
|
14127
14129
|
},
|
|
14128
14130
|
error: RunnerRpcError
|
|
14129
|
-
}),
|
|
14131
|
+
}), make5("AdmitChild", {
|
|
14130
14132
|
payload: {
|
|
14131
14133
|
lease: ProgramLease,
|
|
14132
14134
|
step: String4,
|
|
@@ -14137,7 +14139,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14137
14139
|
},
|
|
14138
14140
|
success: Struct({ runId: String4 }),
|
|
14139
14141
|
error: RunnerRpcError
|
|
14140
|
-
}),
|
|
14142
|
+
}), make5("StoreArtifact", {
|
|
14141
14143
|
payload: {
|
|
14142
14144
|
lease: ProgramLease,
|
|
14143
14145
|
step: String4,
|
|
@@ -14149,7 +14151,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14149
14151
|
},
|
|
14150
14152
|
success: Struct({ artifactId: String4 }),
|
|
14151
14153
|
error: RunnerRpcError
|
|
14152
|
-
}),
|
|
14154
|
+
}), make5("RecordNote", {
|
|
14153
14155
|
payload: {
|
|
14154
14156
|
lease: ProgramLease,
|
|
14155
14157
|
step: String4,
|
|
@@ -14158,7 +14160,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14158
14160
|
kind: optional(Literals(["note", "blocker"]))
|
|
14159
14161
|
},
|
|
14160
14162
|
error: RunnerRpcError
|
|
14161
|
-
}),
|
|
14163
|
+
}), make5("PerformHostEffect", {
|
|
14162
14164
|
payload: {
|
|
14163
14165
|
lease: ProgramLease,
|
|
14164
14166
|
step: String4,
|
|
@@ -14186,7 +14188,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14186
14188
|
},
|
|
14187
14189
|
success: UndefinedOr(Struct({ id: String4, number: String4, url: String4 })),
|
|
14188
14190
|
error: RunnerRpcError
|
|
14189
|
-
}),
|
|
14191
|
+
}), make5("AlertTask", {
|
|
14190
14192
|
payload: {
|
|
14191
14193
|
lease: ProgramLease,
|
|
14192
14194
|
step: String4,
|
|
@@ -14203,7 +14205,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14203
14205
|
joined: optionalKey(Struct({ kind: Literals(["run", "recent"]), runId: String4 }))
|
|
14204
14206
|
}),
|
|
14205
14207
|
error: RunnerRpcError
|
|
14206
|
-
}),
|
|
14208
|
+
}), make5("ReadTranscripts", {
|
|
14207
14209
|
payload: { lease: ProgramLease, step: String4, days: Int, teamId: optionalKey(String4) },
|
|
14208
14210
|
success: Struct({
|
|
14209
14211
|
runs: ArraySchema(Struct({
|
|
@@ -14231,7 +14233,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14231
14233
|
})))
|
|
14232
14234
|
}),
|
|
14233
14235
|
error: RunnerRpcError
|
|
14234
|
-
}),
|
|
14236
|
+
}), make5("PipelineStatus", {
|
|
14235
14237
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
|
|
14236
14238
|
success: Struct({
|
|
14237
14239
|
head: String4,
|
|
@@ -14262,11 +14264,11 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14262
14264
|
}))
|
|
14263
14265
|
}),
|
|
14264
14266
|
error: RunnerRpcError
|
|
14265
|
-
}),
|
|
14267
|
+
}), make5("ReportPipeline", {
|
|
14266
14268
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4, verification: String4 },
|
|
14267
14269
|
success: Struct({ head: String4, status: Literals(["success", "failed"]) }),
|
|
14268
14270
|
error: RunnerRpcError
|
|
14269
|
-
}),
|
|
14271
|
+
}), make5("ReviewThreads", {
|
|
14270
14272
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
|
|
14271
14273
|
success: Struct({
|
|
14272
14274
|
threads: ArraySchema(Struct({
|
|
@@ -14278,7 +14280,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14278
14280
|
}))
|
|
14279
14281
|
}),
|
|
14280
14282
|
error: RunnerRpcError
|
|
14281
|
-
}),
|
|
14283
|
+
}), make5("OpenChangeRequests", {
|
|
14282
14284
|
payload: { lease: ProgramLease, step: String4, authors: NonEmptyArray(String4) },
|
|
14283
14285
|
success: Struct({
|
|
14284
14286
|
changeRequests: ArraySchema(Struct({
|
|
@@ -14292,7 +14294,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14292
14294
|
}))
|
|
14293
14295
|
}),
|
|
14294
14296
|
error: RunnerRpcError
|
|
14295
|
-
}),
|
|
14297
|
+
}), make5("OwnChangeRequests", {
|
|
14296
14298
|
payload: { lease: ProgramLease, step: String4 },
|
|
14297
14299
|
success: Struct({
|
|
14298
14300
|
changeRequests: ArraySchema(Struct({
|
|
@@ -14305,7 +14307,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14305
14307
|
}))
|
|
14306
14308
|
}),
|
|
14307
14309
|
error: RunnerRpcError
|
|
14308
|
-
}),
|
|
14310
|
+
}), make5("Propose", {
|
|
14309
14311
|
payload: {
|
|
14310
14312
|
lease: ProgramLease,
|
|
14311
14313
|
step: String4,
|
|
@@ -14333,7 +14335,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14333
14335
|
task: optionalKey(Struct({ id: String4, active: Boolean2 }))
|
|
14334
14336
|
}),
|
|
14335
14337
|
error: RunnerRpcError
|
|
14336
|
-
}),
|
|
14338
|
+
}), make5("ReadProject", {
|
|
14337
14339
|
payload: { lease: ProgramLease, step: String4, projectId: String4 },
|
|
14338
14340
|
success: Struct({
|
|
14339
14341
|
project: Struct({ id: String4, name: String4 }),
|
|
@@ -14356,7 +14358,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14356
14358
|
taskChanges: ArraySchema(Struct({ taskKey: String4, title: String4, change: String4, at: String4 }))
|
|
14357
14359
|
}),
|
|
14358
14360
|
error: RunnerRpcError
|
|
14359
|
-
}),
|
|
14361
|
+
}), make5("DraftUpdate", {
|
|
14360
14362
|
payload: {
|
|
14361
14363
|
lease: ProgramLease,
|
|
14362
14364
|
step: String4,
|
|
@@ -14371,7 +14373,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14371
14373
|
},
|
|
14372
14374
|
success: Struct({ id: String4 }),
|
|
14373
14375
|
error: RunnerRpcError
|
|
14374
|
-
}),
|
|
14376
|
+
}), make5("CreatePlanTasks", {
|
|
14375
14377
|
payload: {
|
|
14376
14378
|
lease: ProgramLease,
|
|
14377
14379
|
projectId: optionalKey(String4),
|
|
@@ -14386,11 +14388,11 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14386
14388
|
},
|
|
14387
14389
|
success: ArraySchema(Struct({ key: String4, taskId: String4 })),
|
|
14388
14390
|
error: RunnerRpcError
|
|
14389
|
-
}),
|
|
14391
|
+
}), make5("IntegrationBranch", {
|
|
14390
14392
|
payload: { lease: ProgramLease, repoBindingId: optionalKey(String4) },
|
|
14391
14393
|
success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
|
|
14392
14394
|
error: RunnerRpcError
|
|
14393
|
-
}),
|
|
14395
|
+
}), make5("MergeChangeRequest", {
|
|
14394
14396
|
payload: {
|
|
14395
14397
|
lease: ProgramLease,
|
|
14396
14398
|
step: String4,
|
|
@@ -14403,7 +14405,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14403
14405
|
Struct({ status: Literal("moved"), head: String4 })
|
|
14404
14406
|
]),
|
|
14405
14407
|
error: RunnerRpcError
|
|
14406
|
-
}),
|
|
14408
|
+
}), make5("ApproveChangeRequest", {
|
|
14407
14409
|
payload: {
|
|
14408
14410
|
lease: ProgramLease,
|
|
14409
14411
|
step: String4,
|
|
@@ -14418,7 +14420,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14418
14420
|
Struct({ approved: Literal(false), reason: String4 })
|
|
14419
14421
|
]),
|
|
14420
14422
|
error: RunnerRpcError
|
|
14421
|
-
}),
|
|
14423
|
+
}), make5("CloseChangeRequest", {
|
|
14422
14424
|
payload: {
|
|
14423
14425
|
lease: ProgramLease,
|
|
14424
14426
|
step: String4,
|
|
@@ -14428,7 +14430,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14428
14430
|
},
|
|
14429
14431
|
success: Struct({ closed: Boolean2, head: optionalKey(String4) }),
|
|
14430
14432
|
error: RunnerRpcError
|
|
14431
|
-
}),
|
|
14433
|
+
}), make5("RerunPipeline", {
|
|
14432
14434
|
payload: {
|
|
14433
14435
|
lease: ProgramLease,
|
|
14434
14436
|
step: String4,
|
|
@@ -14438,7 +14440,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14438
14440
|
},
|
|
14439
14441
|
success: Struct({ head: String4, pipelines: Int }),
|
|
14440
14442
|
error: RunnerRpcError
|
|
14441
|
-
}),
|
|
14443
|
+
}), make5("PublishRelease", {
|
|
14442
14444
|
payload: {
|
|
14443
14445
|
lease: ProgramLease,
|
|
14444
14446
|
step: String4,
|
|
@@ -14449,14 +14451,14 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14449
14451
|
},
|
|
14450
14452
|
success: Struct({ tag: String4, revision: String4, url: String4 }),
|
|
14451
14453
|
error: RunnerRpcError
|
|
14452
|
-
}),
|
|
14454
|
+
}), make5("ProgramSecrets", {
|
|
14453
14455
|
payload: { lease: ProgramLease },
|
|
14454
14456
|
success: Record(String4, String4),
|
|
14455
14457
|
error: RunnerRpcError
|
|
14456
14458
|
})).middleware(RunnerAuthentication) {
|
|
14457
14459
|
}
|
|
14458
14460
|
|
|
14459
|
-
class RunnerRunFileRpcs extends
|
|
14461
|
+
class RunnerRunFileRpcs extends make6(make5("CreateRunFile", {
|
|
14460
14462
|
payload: {
|
|
14461
14463
|
lease: ProgramLease,
|
|
14462
14464
|
step: String4,
|
|
@@ -14468,11 +14470,11 @@ class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
|
|
|
14468
14470
|
},
|
|
14469
14471
|
success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
|
|
14470
14472
|
error: Union([RunnerRpcError, RunFileRefused])
|
|
14471
|
-
}),
|
|
14473
|
+
}), make5("RunFileParts", {
|
|
14472
14474
|
payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
|
|
14473
14475
|
success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
|
|
14474
14476
|
error: RunnerRpcError
|
|
14475
|
-
}),
|
|
14477
|
+
}), make5("CompleteRunFile", {
|
|
14476
14478
|
payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
|
|
14477
14479
|
success: RunFileRecord,
|
|
14478
14480
|
error: RunnerRpcError
|
|
@@ -14561,7 +14563,7 @@ function toStoredSession(token, existingRefreshToken) {
|
|
|
14561
14563
|
}
|
|
14562
14564
|
function startLoopbackServer(input) {
|
|
14563
14565
|
return gen(function* () {
|
|
14564
|
-
const code = yield*
|
|
14566
|
+
const code = yield* make15();
|
|
14565
14567
|
const context2 = yield* context();
|
|
14566
14568
|
const runSyncExit = runSyncExitWith(context2);
|
|
14567
14569
|
const server = yield* acquireRelease(sync2(() => Bun.serve({
|
|
@@ -15101,7 +15103,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
15101
15103
|
let lastId = 0;
|
|
15102
15104
|
let lost = false;
|
|
15103
15105
|
const notifications = yield* unbounded2();
|
|
15104
|
-
const ended = yield*
|
|
15106
|
+
const ended = yield* make15();
|
|
15105
15107
|
const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
|
|
15106
15108
|
onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
|
|
15107
15109
|
onNone: () => void_3,
|
|
@@ -15128,7 +15130,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
15128
15130
|
if (lost)
|
|
15129
15131
|
return yield* new HerdrCoreConnectionLost2({ method });
|
|
15130
15132
|
const id = ++lastId;
|
|
15131
|
-
const deferred = yield*
|
|
15133
|
+
const deferred = yield* make15();
|
|
15132
15134
|
pending.set(id, { method, deferred });
|
|
15133
15135
|
yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
|
|
15134
15136
|
return yield* _await(deferred);
|
|
@@ -15202,14 +15204,14 @@ var herdrCoreOver = (transport) => ({
|
|
|
15202
15204
|
return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
|
|
15203
15205
|
};
|
|
15204
15206
|
const snapshot = { type: "snapshot", terminals: subscribed.terminals };
|
|
15205
|
-
return concat(
|
|
15207
|
+
return concat(make10(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
|
|
15206
15208
|
}))
|
|
15207
15209
|
});
|
|
15208
15210
|
var spawnedTransport = (env) => gen(function* () {
|
|
15209
15211
|
const spawner = yield* ChildProcessSpawner;
|
|
15210
15212
|
const input = yield* unbounded2();
|
|
15211
15213
|
const encoder = new TextEncoder;
|
|
15212
|
-
const handle = yield* spawner.spawn(
|
|
15214
|
+
const handle = yield* spawner.spawn(make2("herdr-core", ["connect"], {
|
|
15213
15215
|
extendEnv: false,
|
|
15214
15216
|
env,
|
|
15215
15217
|
stdin: fromQueue(input),
|
|
@@ -15240,7 +15242,7 @@ var updateHerdrCore2 = (options) => gen(function* () {
|
|
|
15240
15242
|
const spawner = yield* ChildProcessSpawner;
|
|
15241
15243
|
const env = coreEnv(options);
|
|
15242
15244
|
const run = (args) => gen(function* () {
|
|
15243
|
-
const handle = yield* spawner.spawn(
|
|
15245
|
+
const handle = yield* spawner.spawn(make2("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
|
|
15244
15246
|
const [stdout, stderr, exitCode] = yield* all3([
|
|
15245
15247
|
mkString(decodeText(handle.stdout)),
|
|
15246
15248
|
mkString(decodeText(handle.stderr)),
|
|
@@ -15266,7 +15268,7 @@ class CommandFailed2 extends TaggedError("CommandFailed") {
|
|
|
15266
15268
|
}
|
|
15267
15269
|
var runCommand2 = (command, args, options = {}) => gen(function* () {
|
|
15268
15270
|
const spawner = yield* ChildProcessSpawner;
|
|
15269
|
-
const handle = yield* spawner.spawn(
|
|
15271
|
+
const handle = yield* spawner.spawn(make2(command, args, {
|
|
15270
15272
|
stdin: "ignore",
|
|
15271
15273
|
...options.cwd === undefined ? undefined : { cwd: options.cwd },
|
|
15272
15274
|
...options.env === undefined ? undefined : { extendEnv: true, env: options.env }
|
|
@@ -15292,8 +15294,8 @@ var shellOutputTailChars2 = 64 * 1024;
|
|
|
15292
15294
|
var runProcess2 = (argv, options) => gen(function* () {
|
|
15293
15295
|
const spawner = yield* ChildProcessSpawner;
|
|
15294
15296
|
const [command, ...args] = argv;
|
|
15295
|
-
const handle = yield* spawner.spawn(
|
|
15296
|
-
stdin: options.stdin === undefined ? "ignore" :
|
|
15297
|
+
const handle = yield* spawner.spawn(make2(command, args, {
|
|
15298
|
+
stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
|
|
15297
15299
|
...options.cwd === undefined ? undefined : { cwd: options.cwd },
|
|
15298
15300
|
env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
|
|
15299
15301
|
}));
|
|
@@ -15716,4 +15718,4 @@ function checkServices(declaration) {
|
|
|
15716
15718
|
return isSome(decoded) ? [...new Set(decoded.value.services)] : undefined;
|
|
15717
15719
|
}
|
|
15718
15720
|
|
|
15719
|
-
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, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, RunWaitUntils, isTestReportName, checkTests, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, defaultRunnerCapabilities, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, repositoryKey, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw,
|
|
15721
|
+
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, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, RunWaitUntils, isTestReportName, checkTests, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, defaultRunnerCapabilities, 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, 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 };
|