@kitman-sh/cli 0.10.64 → 0.10.65
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-zej59tf2.js → chunk-1rry0tsn.js} +60 -14
- package/dist/{chunk-fm4m4v6j.js → chunk-1v319b82.js} +115 -107
- package/dist/{chunk-rzr11xyn.js → chunk-1w81w56v.js} +2 -2
- package/dist/{chunk-rv4r0n7d.js → chunk-1zt2rcea.js} +4 -4
- package/dist/{chunk-ksx5nt4b.js → chunk-60333x3q.js} +5 -5
- package/dist/{chunk-s2d1a2my.js → chunk-7xtst67f.js} +7 -7
- package/dist/{chunk-m9v1z0gz.js → chunk-cc4cy79t.js} +21 -21
- package/dist/{chunk-x306t6v1.js → chunk-csbf77zs.js} +11 -11
- package/dist/{chunk-677etczq.js → chunk-d3ksv8y1.js} +28 -70
- package/dist/{chunk-qdn9tnav.js → chunk-dk0ftqwg.js} +18 -26
- package/dist/{chunk-3z0p2wtr.js → chunk-gbsqf61e.js} +3 -3
- package/dist/{chunk-wjs5fpv0.js → chunk-hmwvsfgq.js} +5 -5
- package/dist/{chunk-dzxahdb7.js → chunk-k4vvmwvj.js} +73 -65
- package/dist/{chunk-smmgt31x.js → chunk-kebax0r8.js} +9 -9
- package/dist/{chunk-b9xcawfx.js → chunk-mvvp19kb.js} +36 -36
- package/dist/{chunk-p23kedha.js → chunk-q3c7vmby.js} +1 -1
- package/dist/{chunk-t47h82ew.js → chunk-qp07hf3f.js} +11 -11
- package/dist/{chunk-byhwksbq.js → chunk-rm83dbpv.js} +2 -2
- package/dist/{chunk-wnwyp9qn.js → chunk-rrnee9mk.js} +1 -1
- package/dist/{chunk-a31qjdsm.js → chunk-rzxt9mb5.js} +7 -7
- package/dist/{chunk-h6360r1c.js → chunk-v01c0k6j.js} +1 -1
- package/dist/{chunk-9p6v3jd2.js → chunk-wtpwkjws.js} +4 -4
- package/dist/{chunk-fznm6es2.js → chunk-y1328g78.js} +7 -7
- package/dist/{chunk-tdp34kqg.js → chunk-ysw716r4.js} +19 -19
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
assignProperty,
|
|
39
39
|
PipeInspectableProto,
|
|
40
40
|
withFiber,
|
|
41
|
-
|
|
41
|
+
make14,
|
|
42
42
|
strictEqual,
|
|
43
43
|
Tuple,
|
|
44
44
|
Number2,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
Service2,
|
|
59
59
|
makeUnsafe4,
|
|
60
60
|
empty3,
|
|
61
|
-
|
|
61
|
+
make15,
|
|
62
62
|
add,
|
|
63
63
|
getOrUndefined2,
|
|
64
64
|
getOrUndefinedUnsafe,
|
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
fail4,
|
|
92
92
|
isSuccess2,
|
|
93
93
|
makeUnsafe5,
|
|
94
|
-
|
|
94
|
+
make16,
|
|
95
95
|
_await,
|
|
96
96
|
fail5,
|
|
97
97
|
isDone,
|
|
@@ -194,9 +194,6 @@ import {
|
|
|
194
194
|
logError,
|
|
195
195
|
effectify,
|
|
196
196
|
decode,
|
|
197
|
-
isRedacted,
|
|
198
|
-
make16,
|
|
199
|
-
value,
|
|
200
197
|
defaultParseOptions,
|
|
201
198
|
omit,
|
|
202
199
|
map9,
|
|
@@ -251,18 +248,17 @@ import {
|
|
|
251
248
|
decodeJsonStringOption,
|
|
252
249
|
encodeJsonStringSync,
|
|
253
250
|
encodePrettyJsonString
|
|
254
|
-
} from "./chunk-
|
|
251
|
+
} from "./chunk-d3ksv8y1.js";
|
|
255
252
|
import {
|
|
256
253
|
map,
|
|
257
254
|
makeEquivalence,
|
|
258
|
-
toNumber,
|
|
259
255
|
bytes,
|
|
260
256
|
BadArgument,
|
|
261
257
|
systemError,
|
|
262
258
|
badArgument,
|
|
263
259
|
makeUnsafe2,
|
|
264
|
-
make7,
|
|
265
260
|
make8,
|
|
261
|
+
make9,
|
|
266
262
|
sliding,
|
|
267
263
|
unbounded2,
|
|
268
264
|
offer,
|
|
@@ -278,13 +274,13 @@ import {
|
|
|
278
274
|
isSink,
|
|
279
275
|
fromChannel,
|
|
280
276
|
drain,
|
|
281
|
-
|
|
277
|
+
make10,
|
|
282
278
|
get3,
|
|
283
279
|
isStream,
|
|
284
280
|
fromChannel2,
|
|
285
281
|
callback,
|
|
286
282
|
empty2,
|
|
287
|
-
|
|
283
|
+
make11,
|
|
288
284
|
suspend,
|
|
289
285
|
fail2,
|
|
290
286
|
fromQueue,
|
|
@@ -310,16 +306,16 @@ import {
|
|
|
310
306
|
mkArrayBuffer,
|
|
311
307
|
toReadableStreamEffect,
|
|
312
308
|
FileSystem,
|
|
313
|
-
|
|
309
|
+
make12,
|
|
314
310
|
FileTypeId,
|
|
315
311
|
WatchBackend,
|
|
316
312
|
Path,
|
|
317
|
-
|
|
313
|
+
make13,
|
|
318
314
|
option,
|
|
319
315
|
String2,
|
|
320
316
|
optionalEnv,
|
|
321
317
|
harnessesUnsupportedInSrt2
|
|
322
|
-
} from "./chunk-
|
|
318
|
+
} from "./chunk-dk0ftqwg.js";
|
|
323
319
|
import {
|
|
324
320
|
isDateTime,
|
|
325
321
|
Numeric,
|
|
@@ -331,7 +327,7 @@ import {
|
|
|
331
327
|
SecretName,
|
|
332
328
|
SecretScope,
|
|
333
329
|
SecretHosts
|
|
334
|
-
} from "./chunk-
|
|
330
|
+
} from "./chunk-rrnee9mk.js";
|
|
335
331
|
import {
|
|
336
332
|
toJsonValue,
|
|
337
333
|
isOneOf,
|
|
@@ -345,18 +341,21 @@ import {
|
|
|
345
341
|
isSymbol,
|
|
346
342
|
isUndefined,
|
|
347
343
|
kindOf
|
|
348
|
-
} from "./chunk-
|
|
344
|
+
} from "./chunk-v01c0k6j.js";
|
|
349
345
|
import {
|
|
346
|
+
isRedacted,
|
|
347
|
+
make,
|
|
348
|
+
value,
|
|
350
349
|
ExitCode,
|
|
351
350
|
ProcessId,
|
|
352
351
|
makeHandle,
|
|
353
|
-
|
|
352
|
+
make2,
|
|
354
353
|
ChildProcessSpawner,
|
|
355
354
|
display,
|
|
356
|
-
|
|
355
|
+
make3,
|
|
357
356
|
parseFdName,
|
|
358
357
|
fdName
|
|
359
|
-
} from "./chunk-
|
|
358
|
+
} from "./chunk-1rry0tsn.js";
|
|
360
359
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
|
|
361
360
|
var makeEquivalence3 = Tuple;
|
|
362
361
|
|
|
@@ -518,7 +517,7 @@ var makeUnsafe6 = (input) => {
|
|
|
518
517
|
var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
|
|
519
518
|
var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
|
|
520
519
|
var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
|
|
521
|
-
var
|
|
520
|
+
var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
|
|
522
521
|
var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
|
|
523
522
|
var nowUnsafe = () => makeUtc(Date.now());
|
|
524
523
|
var toDateUtc = (self) => new Date(self.epochMilliseconds);
|
|
@@ -897,9 +896,18 @@ var runMain2 = /* @__PURE__ */ makeRunMain(({
|
|
|
897
896
|
// node_modules/.bun/@effect+platform-bun@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-bun/dist/BunRuntime.js
|
|
898
897
|
var runMain = runMain2;
|
|
899
898
|
|
|
899
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
|
|
900
|
+
var BigInt2 = globalThis.BigInt;
|
|
901
|
+
var toNumber = (b) => {
|
|
902
|
+
if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
|
|
903
|
+
return none();
|
|
904
|
+
}
|
|
905
|
+
return some(Number(b));
|
|
906
|
+
};
|
|
907
|
+
|
|
900
908
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
|
|
901
909
|
var makeUnsafe = makeUnsafe6;
|
|
902
|
-
var make18 =
|
|
910
|
+
var make18 = make4;
|
|
903
911
|
var now2 = now;
|
|
904
912
|
var nowUnsafe2 = nowUnsafe;
|
|
905
913
|
var toDateUtc2 = toDateUtc;
|
|
@@ -1114,7 +1122,7 @@ var readableToPullUnsafe = (options) => {
|
|
|
1114
1122
|
const readable = options.readable;
|
|
1115
1123
|
const chunkSize = options.chunkSize ?? 4096;
|
|
1116
1124
|
const closeOnDone = options.closeOnDone ?? true;
|
|
1117
|
-
const exit = options.exit ??
|
|
1125
|
+
const exit = options.exit ?? make8(undefined);
|
|
1118
1126
|
const latch = options.latch ?? makeUnsafe2(false);
|
|
1119
1127
|
function onReadable() {
|
|
1120
1128
|
latch.openUnsafe();
|
|
@@ -1678,7 +1686,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1678
1686
|
const sourceStream = unwrap(succeed6(getSourceStream(handles[handles.length - 1], options.from)));
|
|
1679
1687
|
const toOption = options.to ?? "stdin";
|
|
1680
1688
|
if (toOption === "stdin") {
|
|
1681
|
-
handles.push(yield* spawnCommand(
|
|
1689
|
+
handles.push(yield* spawnCommand(make3(command.command, command.args, {
|
|
1682
1690
|
...command.options,
|
|
1683
1691
|
stdin: {
|
|
1684
1692
|
...stdinConfig,
|
|
@@ -1698,7 +1706,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1698
1706
|
type: "input",
|
|
1699
1707
|
stream: sourceStream
|
|
1700
1708
|
};
|
|
1701
|
-
handles.push(yield* spawnCommand(
|
|
1709
|
+
handles.push(yield* spawnCommand(make3(command.command, command.args, {
|
|
1702
1710
|
...command.options,
|
|
1703
1711
|
additionalFds: {
|
|
1704
1712
|
...existingFds,
|
|
@@ -1706,7 +1714,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1706
1714
|
}
|
|
1707
1715
|
})));
|
|
1708
1716
|
} else {
|
|
1709
|
-
handles.push(yield* spawnCommand(
|
|
1717
|
+
handles.push(yield* spawnCommand(make3(command.command, command.args, {
|
|
1710
1718
|
...command.options,
|
|
1711
1719
|
stdin: {
|
|
1712
1720
|
...stdinConfig,
|
|
@@ -1745,7 +1753,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1745
1753
|
}
|
|
1746
1754
|
}
|
|
1747
1755
|
});
|
|
1748
|
-
return
|
|
1756
|
+
return make2(spawnCommand);
|
|
1749
1757
|
});
|
|
1750
1758
|
var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
|
|
1751
1759
|
var flattenCommand = (command) => {
|
|
@@ -2231,7 +2239,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
|
|
|
2231
2239
|
resume(fail7(handleBadArgument("writeFile")(err)));
|
|
2232
2240
|
}
|
|
2233
2241
|
});
|
|
2234
|
-
var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) =>
|
|
2242
|
+
var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make12({
|
|
2235
2243
|
access: access2,
|
|
2236
2244
|
chmod: chmod2,
|
|
2237
2245
|
chown: chown2,
|
|
@@ -2291,15 +2299,15 @@ var fileUrlOps = (windows) => ({
|
|
|
2291
2299
|
})
|
|
2292
2300
|
})
|
|
2293
2301
|
});
|
|
2294
|
-
var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2302
|
+
var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
|
|
2295
2303
|
...NodePath.posix,
|
|
2296
2304
|
.../* @__PURE__ */ fileUrlOps(false)
|
|
2297
2305
|
}));
|
|
2298
|
-
var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2306
|
+
var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
|
|
2299
2307
|
...NodePath.win32,
|
|
2300
2308
|
.../* @__PURE__ */ fileUrlOps(true)
|
|
2301
2309
|
}));
|
|
2302
|
-
var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2310
|
+
var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
|
|
2303
2311
|
...NodePath,
|
|
2304
2312
|
.../* @__PURE__ */ fileUrlOps(undefined)
|
|
2305
2313
|
}));
|
|
@@ -2821,12 +2829,12 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
|
2821
2829
|
if (typeof key === "string") {
|
|
2822
2830
|
const k = key.toLowerCase();
|
|
2823
2831
|
if (k in self) {
|
|
2824
|
-
out[k] =
|
|
2832
|
+
out[k] = make(self[k]);
|
|
2825
2833
|
}
|
|
2826
2834
|
} else {
|
|
2827
2835
|
for (const name in self) {
|
|
2828
2836
|
if (name.search(key) !== -1) {
|
|
2829
|
-
out[name] =
|
|
2837
|
+
out[name] = make(self[name]);
|
|
2830
2838
|
}
|
|
2831
2839
|
}
|
|
2832
2840
|
}
|
|
@@ -2933,7 +2941,7 @@ var fromInputNested = (input) => {
|
|
|
2933
2941
|
return out;
|
|
2934
2942
|
};
|
|
2935
2943
|
var coerce = (value) => isRedacted(value) ? value : String(value);
|
|
2936
|
-
var Equivalence3 = /* @__PURE__ */
|
|
2944
|
+
var Equivalence3 = /* @__PURE__ */ make14((a, b) => arrayEquivalence(a.params, b.params));
|
|
2937
2945
|
var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
|
|
2938
2946
|
var empty4 = /* @__PURE__ */ make23([]);
|
|
2939
2947
|
var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
@@ -2951,7 +2959,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
|
2951
2959
|
});
|
|
2952
2960
|
var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
2953
2961
|
const patterns = Array.isArray(key) ? key : [key];
|
|
2954
|
-
return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ?
|
|
2962
|
+
return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make(value) : value]);
|
|
2955
2963
|
});
|
|
2956
2964
|
var isRedactedName2 = isRedactedName;
|
|
2957
2965
|
var redactUrl = (url, redactedNames = currentRedactedNames()) => {
|
|
@@ -3027,7 +3035,7 @@ import * as readline from "readline";
|
|
|
3027
3035
|
var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
|
|
3028
3036
|
const stdin = process.stdin;
|
|
3029
3037
|
const stdout = process.stdout;
|
|
3030
|
-
const lines = yield*
|
|
3038
|
+
const lines = yield* make9();
|
|
3031
3039
|
let inputEnded = stdin.readableEnded;
|
|
3032
3040
|
let readlineActive = false;
|
|
3033
3041
|
const onStdinEnd = () => {
|
|
@@ -3038,7 +3046,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3038
3046
|
};
|
|
3039
3047
|
stdin.once("end", onStdinEnd);
|
|
3040
3048
|
yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
|
|
3041
|
-
const rlRef = yield*
|
|
3049
|
+
const rlRef = yield* make10({
|
|
3042
3050
|
acquire: acquireRelease(sync2(() => {
|
|
3043
3051
|
const rl = readline.createInterface({
|
|
3044
3052
|
input: stdin,
|
|
@@ -3077,7 +3085,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3077
3085
|
if (stdin.isTTY)
|
|
3078
3086
|
stdin.setRawMode(enabled);
|
|
3079
3087
|
});
|
|
3080
|
-
const rawModeRef = yield*
|
|
3088
|
+
const rawModeRef = yield* make10({
|
|
3081
3089
|
acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
|
|
3082
3090
|
idleTimeToLive: "10 millis"
|
|
3083
3091
|
});
|
|
@@ -3098,7 +3106,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3098
3106
|
return queue;
|
|
3099
3107
|
});
|
|
3100
3108
|
const readInput = gen(function* () {
|
|
3101
|
-
const queue = yield*
|
|
3109
|
+
const queue = yield* make9();
|
|
3102
3110
|
const handleKeypress = (s, k) => {
|
|
3103
3111
|
const userInput = {
|
|
3104
3112
|
input: fromUndefinedOr(s),
|
|
@@ -9487,13 +9495,13 @@ function makeWith(method, url, urlParams, hash, headers, body) {
|
|
|
9487
9495
|
return self;
|
|
9488
9496
|
}
|
|
9489
9497
|
var empty6 = /* @__PURE__ */ makeWith("GET", "", empty4, /* @__PURE__ */ none(), empty, empty5);
|
|
9490
|
-
var
|
|
9498
|
+
var make5 = (method) => (url, options) => modify(empty6, {
|
|
9491
9499
|
method,
|
|
9492
9500
|
url,
|
|
9493
9501
|
...options ?? undefined
|
|
9494
9502
|
});
|
|
9495
|
-
var get = /* @__PURE__ */
|
|
9496
|
-
var put = /* @__PURE__ */
|
|
9503
|
+
var get = /* @__PURE__ */ make5("GET");
|
|
9504
|
+
var put = /* @__PURE__ */ make5("PUT");
|
|
9497
9505
|
var modify = /* @__PURE__ */ dual(2, (self, options) => {
|
|
9498
9506
|
let result = self;
|
|
9499
9507
|
if (options.method) {
|
|
@@ -9792,7 +9800,7 @@ var Proto7 = {
|
|
|
9792
9800
|
};
|
|
9793
9801
|
},
|
|
9794
9802
|
.../* @__PURE__ */ Object.fromEntries(/* @__PURE__ */ allShort.map(([fullMethod, method]) => [method, function(url, options) {
|
|
9795
|
-
return this.execute(
|
|
9803
|
+
return this.execute(make5(fullMethod)(url, options));
|
|
9796
9804
|
}]))
|
|
9797
9805
|
};
|
|
9798
9806
|
var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
|
|
@@ -13384,7 +13392,7 @@ var makeProto = (options) => {
|
|
|
13384
13392
|
Rpc.key = `effect/rpc/Rpc/${options._tag}`;
|
|
13385
13393
|
return Rpc;
|
|
13386
13394
|
};
|
|
13387
|
-
var
|
|
13395
|
+
var make6 = (tag, options) => {
|
|
13388
13396
|
const successSchema = options?.success ?? Void;
|
|
13389
13397
|
const errorSchema = options?.error ?? Never;
|
|
13390
13398
|
const defectSchema = options?.defect ?? Defect();
|
|
@@ -13595,7 +13603,7 @@ var RpcGroupProto = {
|
|
|
13595
13603
|
});
|
|
13596
13604
|
},
|
|
13597
13605
|
annotateRpcs(service, value) {
|
|
13598
|
-
return this.annotateRpcsMerge(
|
|
13606
|
+
return this.annotateRpcsMerge(make15(service, value));
|
|
13599
13607
|
},
|
|
13600
13608
|
annotateMerge(context) {
|
|
13601
13609
|
return makeProto2({
|
|
@@ -13618,7 +13626,7 @@ var makeProto2 = (options) => Object.assign(function() {}, RpcGroupProto, {
|
|
|
13618
13626
|
requests: options.requests,
|
|
13619
13627
|
annotations: options.annotations
|
|
13620
13628
|
});
|
|
13621
|
-
var
|
|
13629
|
+
var make7 = (...rpcs) => makeProto2({
|
|
13622
13630
|
requests: new Map(rpcs.map((rpc) => [rpc._tag, rpc])),
|
|
13623
13631
|
annotations: empty3()
|
|
13624
13632
|
});
|
|
@@ -13725,96 +13733,96 @@ var ProgramOutcome = Union([
|
|
|
13725
13733
|
Struct({ status: Literal("failed"), failureSummary: String4 })
|
|
13726
13734
|
]);
|
|
13727
13735
|
|
|
13728
|
-
class RunnerReplicaRpcs extends make6(
|
|
13736
|
+
class RunnerReplicaRpcs extends make7(make6("Claim", {
|
|
13729
13737
|
payload: WorkUnitClaimInput,
|
|
13730
13738
|
success: WorkUnitClaimResult,
|
|
13731
13739
|
error: RunnerRpcError
|
|
13732
|
-
}),
|
|
13740
|
+
}), make6("Heartbeat", {
|
|
13733
13741
|
payload: WorkUnitHeartbeatInput,
|
|
13734
13742
|
success: WorkUnitHeartbeatResult,
|
|
13735
13743
|
error: RunnerRpcError
|
|
13736
|
-
}),
|
|
13744
|
+
}), make6("Complete", {
|
|
13737
13745
|
payload: WorkUnitCompletion,
|
|
13738
13746
|
error: RunnerRpcError
|
|
13739
|
-
}),
|
|
13747
|
+
}), make6("Release", {
|
|
13740
13748
|
payload: WorkUnitReleaseInput,
|
|
13741
13749
|
error: RunnerRpcError
|
|
13742
|
-
}),
|
|
13750
|
+
}), make6("Signals", {
|
|
13743
13751
|
payload: { runnerReplicaId: String4 },
|
|
13744
13752
|
success: RunnerSignal,
|
|
13745
13753
|
error: RunnerRpcError,
|
|
13746
13754
|
stream: true
|
|
13747
|
-
}),
|
|
13755
|
+
}), make6("ReportSteer", {
|
|
13748
13756
|
payload: { workUnitId: String4, messageId: String4, delivered: Boolean2 },
|
|
13749
13757
|
success: Void,
|
|
13750
13758
|
error: RunnerRpcError
|
|
13751
|
-
}),
|
|
13759
|
+
}), make6("AppendTranscript", {
|
|
13752
13760
|
payload: { workUnitId: String4, entries: ArraySchema(TranscriptAppendEntry).check(isMaxLength(100)) },
|
|
13753
13761
|
success: Void,
|
|
13754
13762
|
error: RunnerRpcError
|
|
13755
|
-
}),
|
|
13763
|
+
}), make6("CreateCheckpointFile", {
|
|
13756
13764
|
payload: { lease: ProgramLease, byteSize: Int, sha256: String4 },
|
|
13757
13765
|
success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
|
|
13758
13766
|
error: Union([RunnerRpcError, RunFileRefused])
|
|
13759
|
-
}),
|
|
13767
|
+
}), make6("CheckpointFileParts", {
|
|
13760
13768
|
payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
|
|
13761
13769
|
success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
|
|
13762
13770
|
error: RunnerRpcError
|
|
13763
|
-
}),
|
|
13771
|
+
}), make6("CompleteCheckpointFile", {
|
|
13764
13772
|
payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
|
|
13765
13773
|
success: RunFileRecord,
|
|
13766
13774
|
error: RunnerRpcError
|
|
13767
|
-
}),
|
|
13775
|
+
}), make6("SaveCheckpoint", {
|
|
13768
13776
|
payload: { lease: ProgramLease, checkpoint: StepCheckpoint },
|
|
13769
13777
|
success: Void,
|
|
13770
13778
|
error: RunnerRpcError
|
|
13771
|
-
}),
|
|
13779
|
+
}), make6("ResumeCheckpoint", {
|
|
13772
13780
|
payload: { lease: ProgramLease },
|
|
13773
13781
|
success: UndefinedOr(ResumedCheckpoint),
|
|
13774
13782
|
error: RunnerRpcError
|
|
13775
|
-
}),
|
|
13783
|
+
}), make6("SettledCheckpoints", {
|
|
13776
13784
|
success: ArraySchema(Struct({
|
|
13777
13785
|
stepAttemptId: String4,
|
|
13778
13786
|
ref: optionalKey(String4),
|
|
13779
13787
|
repoBinding: optionalKey(WorkUnitRepoBinding)
|
|
13780
13788
|
})),
|
|
13781
13789
|
error: RunnerRpcError
|
|
13782
|
-
}),
|
|
13790
|
+
}), make6("ForgetCheckpoints", {
|
|
13783
13791
|
payload: { stepAttemptIds: ArraySchema(String4) },
|
|
13784
13792
|
success: Void,
|
|
13785
13793
|
error: RunnerRpcError
|
|
13786
|
-
}),
|
|
13794
|
+
}), make6("GitCredential", {
|
|
13787
13795
|
payload: { repoBindingId: String4 },
|
|
13788
13796
|
success: UndefinedOr(Struct({ username: String4, password: String4 })),
|
|
13789
13797
|
error: RunnerRpcError
|
|
13790
|
-
}),
|
|
13798
|
+
}), make6("Bundle", {
|
|
13791
13799
|
payload: { digest: String4 },
|
|
13792
13800
|
success: Struct({ bundle: String4 }),
|
|
13793
13801
|
error: RunnerRpcError
|
|
13794
|
-
}),
|
|
13802
|
+
}), make6("SettledRuns", {
|
|
13795
13803
|
payload: { runIds: ArraySchema(String4) },
|
|
13796
13804
|
success: ArraySchema(String4),
|
|
13797
13805
|
error: RunnerRpcError
|
|
13798
|
-
}),
|
|
13806
|
+
}), make6("KnownEvidence", {
|
|
13799
13807
|
payload: { lease: ProgramLease, trees: ArraySchema(String4) },
|
|
13800
13808
|
success: ArraySchema(Struct({ tree: String4, name: String4, command: String4 })),
|
|
13801
13809
|
error: RunnerRpcError
|
|
13802
13810
|
})).middleware(RunnerAuthentication) {
|
|
13803
13811
|
}
|
|
13804
13812
|
|
|
13805
|
-
class RunnerJournalRpcs extends make6(
|
|
13813
|
+
class RunnerJournalRpcs extends make7(make6("RecordActivity", {
|
|
13806
13814
|
payload: { lease: ProgramLease, name: String4, attempt: Int, exit: Json },
|
|
13807
13815
|
error: RunnerRpcError
|
|
13808
|
-
}),
|
|
13816
|
+
}), make6("DeferredDone", {
|
|
13809
13817
|
payload: { lease: ProgramLease, name: String4, exit: Json },
|
|
13810
13818
|
error: RunnerRpcError
|
|
13811
|
-
}),
|
|
13819
|
+
}), make6("ScheduleClock", {
|
|
13812
13820
|
payload: { lease: ProgramLease, name: String4, deferredName: String4, durationMillis: Int },
|
|
13813
13821
|
error: RunnerRpcError
|
|
13814
|
-
}),
|
|
13822
|
+
}), make6("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make6("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
|
|
13815
13823
|
}
|
|
13816
13824
|
|
|
13817
|
-
class RunnerCapabilityRpcs extends make6(
|
|
13825
|
+
class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
13818
13826
|
payload: {
|
|
13819
13827
|
lease: ProgramLease,
|
|
13820
13828
|
step: String4,
|
|
@@ -13832,7 +13840,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
13832
13840
|
},
|
|
13833
13841
|
success: Struct({ questionId: String4 }),
|
|
13834
13842
|
error: RunnerRpcError
|
|
13835
|
-
}),
|
|
13843
|
+
}), make6("StartAgentStep", {
|
|
13836
13844
|
payload: {
|
|
13837
13845
|
lease: ProgramLease,
|
|
13838
13846
|
step: String4,
|
|
@@ -13848,7 +13856,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
13848
13856
|
},
|
|
13849
13857
|
success: Struct({ stepAttemptId: String4 }),
|
|
13850
13858
|
error: RunnerRpcError
|
|
13851
|
-
}),
|
|
13859
|
+
}), make6("StartVerification", {
|
|
13852
13860
|
payload: {
|
|
13853
13861
|
lease: ProgramLease,
|
|
13854
13862
|
step: String4,
|
|
@@ -13865,7 +13873,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
13865
13873
|
},
|
|
13866
13874
|
success: Struct({ verificationId: String4 }),
|
|
13867
13875
|
error: RunnerRpcError
|
|
13868
|
-
}),
|
|
13876
|
+
}), make6("AwaitEvent", {
|
|
13869
13877
|
payload: {
|
|
13870
13878
|
lease: ProgramLease,
|
|
13871
13879
|
step: String4,
|
|
@@ -13881,7 +13889,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
13881
13889
|
})))
|
|
13882
13890
|
},
|
|
13883
13891
|
error: RunnerRpcError
|
|
13884
|
-
}),
|
|
13892
|
+
}), make6("ClaimResource", {
|
|
13885
13893
|
payload: {
|
|
13886
13894
|
lease: ProgramLease,
|
|
13887
13895
|
step: String4,
|
|
@@ -13890,7 +13898,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
13890
13898
|
action: Literals(["claim", "take_over", "let_go"])
|
|
13891
13899
|
},
|
|
13892
13900
|
error: RunnerRpcError
|
|
13893
|
-
}),
|
|
13901
|
+
}), make6("AdmitChild", {
|
|
13894
13902
|
payload: {
|
|
13895
13903
|
lease: ProgramLease,
|
|
13896
13904
|
step: String4,
|
|
@@ -13900,7 +13908,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
13900
13908
|
},
|
|
13901
13909
|
success: Struct({ runId: String4 }),
|
|
13902
13910
|
error: RunnerRpcError
|
|
13903
|
-
}),
|
|
13911
|
+
}), make6("StoreArtifact", {
|
|
13904
13912
|
payload: {
|
|
13905
13913
|
lease: ProgramLease,
|
|
13906
13914
|
step: String4,
|
|
@@ -13912,7 +13920,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
13912
13920
|
},
|
|
13913
13921
|
success: Struct({ artifactId: String4 }),
|
|
13914
13922
|
error: RunnerRpcError
|
|
13915
|
-
}),
|
|
13923
|
+
}), make6("RecordNote", {
|
|
13916
13924
|
payload: {
|
|
13917
13925
|
lease: ProgramLease,
|
|
13918
13926
|
step: String4,
|
|
@@ -13920,7 +13928,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
13920
13928
|
artifactId: optional(String4)
|
|
13921
13929
|
},
|
|
13922
13930
|
error: RunnerRpcError
|
|
13923
|
-
}),
|
|
13931
|
+
}), make6("PerformHostEffect", {
|
|
13924
13932
|
payload: {
|
|
13925
13933
|
lease: ProgramLease,
|
|
13926
13934
|
step: String4,
|
|
@@ -13948,7 +13956,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
13948
13956
|
},
|
|
13949
13957
|
success: UndefinedOr(Struct({ id: String4, number: String4, url: String4 })),
|
|
13950
13958
|
error: RunnerRpcError
|
|
13951
|
-
}),
|
|
13959
|
+
}), make6("AlertTask", {
|
|
13952
13960
|
payload: {
|
|
13953
13961
|
lease: ProgramLease,
|
|
13954
13962
|
step: String4,
|
|
@@ -13965,7 +13973,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
13965
13973
|
joined: optionalKey(Struct({ kind: Literals(["run", "recent"]), runId: String4 }))
|
|
13966
13974
|
}),
|
|
13967
13975
|
error: RunnerRpcError
|
|
13968
|
-
}),
|
|
13976
|
+
}), make6("ReadTranscripts", {
|
|
13969
13977
|
payload: { lease: ProgramLease, step: String4, days: Int },
|
|
13970
13978
|
success: Struct({
|
|
13971
13979
|
runs: ArraySchema(Struct({
|
|
@@ -13984,7 +13992,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
13984
13992
|
}))
|
|
13985
13993
|
}),
|
|
13986
13994
|
error: RunnerRpcError
|
|
13987
|
-
}),
|
|
13995
|
+
}), make6("PipelineStatus", {
|
|
13988
13996
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
|
|
13989
13997
|
success: Struct({
|
|
13990
13998
|
head: String4,
|
|
@@ -14000,11 +14008,11 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14000
14008
|
runnerChecks: optionalKey(ArraySchema(String4))
|
|
14001
14009
|
}),
|
|
14002
14010
|
error: RunnerRpcError
|
|
14003
|
-
}),
|
|
14011
|
+
}), make6("ReportPipeline", {
|
|
14004
14012
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4, verification: String4 },
|
|
14005
14013
|
success: Struct({ head: String4, status: Literals(["success", "failed"]) }),
|
|
14006
14014
|
error: RunnerRpcError
|
|
14007
|
-
}),
|
|
14015
|
+
}), make6("ReviewThreads", {
|
|
14008
14016
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
|
|
14009
14017
|
success: Struct({
|
|
14010
14018
|
threads: ArraySchema(Struct({
|
|
@@ -14016,7 +14024,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14016
14024
|
}))
|
|
14017
14025
|
}),
|
|
14018
14026
|
error: RunnerRpcError
|
|
14019
|
-
}),
|
|
14027
|
+
}), make6("OpenChangeRequests", {
|
|
14020
14028
|
payload: { lease: ProgramLease, step: String4, authors: NonEmptyArray(String4) },
|
|
14021
14029
|
success: Struct({
|
|
14022
14030
|
changeRequests: ArraySchema(Struct({
|
|
@@ -14030,7 +14038,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14030
14038
|
}))
|
|
14031
14039
|
}),
|
|
14032
14040
|
error: RunnerRpcError
|
|
14033
|
-
}),
|
|
14041
|
+
}), make6("OwnChangeRequests", {
|
|
14034
14042
|
payload: { lease: ProgramLease, step: String4 },
|
|
14035
14043
|
success: Struct({
|
|
14036
14044
|
changeRequests: ArraySchema(Struct({
|
|
@@ -14043,7 +14051,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14043
14051
|
}))
|
|
14044
14052
|
}),
|
|
14045
14053
|
error: RunnerRpcError
|
|
14046
|
-
}),
|
|
14054
|
+
}), make6("Propose", {
|
|
14047
14055
|
payload: {
|
|
14048
14056
|
lease: ProgramLease,
|
|
14049
14057
|
step: String4,
|
|
@@ -14070,7 +14078,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14070
14078
|
matched: optionalKey(Boolean2)
|
|
14071
14079
|
}),
|
|
14072
14080
|
error: RunnerRpcError
|
|
14073
|
-
}),
|
|
14081
|
+
}), make6("ReadProject", {
|
|
14074
14082
|
payload: { lease: ProgramLease, step: String4, projectId: String4 },
|
|
14075
14083
|
success: Struct({
|
|
14076
14084
|
project: Struct({ id: String4, name: String4 }),
|
|
@@ -14093,7 +14101,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14093
14101
|
taskChanges: ArraySchema(Struct({ taskKey: String4, title: String4, change: String4, at: String4 }))
|
|
14094
14102
|
}),
|
|
14095
14103
|
error: RunnerRpcError
|
|
14096
|
-
}),
|
|
14104
|
+
}), make6("DraftUpdate", {
|
|
14097
14105
|
payload: {
|
|
14098
14106
|
lease: ProgramLease,
|
|
14099
14107
|
step: String4,
|
|
@@ -14108,7 +14116,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14108
14116
|
},
|
|
14109
14117
|
success: Struct({ id: String4 }),
|
|
14110
14118
|
error: RunnerRpcError
|
|
14111
|
-
}),
|
|
14119
|
+
}), make6("CreatePlanTasks", {
|
|
14112
14120
|
payload: {
|
|
14113
14121
|
lease: ProgramLease,
|
|
14114
14122
|
projectId: optionalKey(String4),
|
|
@@ -14123,11 +14131,11 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14123
14131
|
},
|
|
14124
14132
|
success: ArraySchema(Struct({ key: String4, taskId: String4 })),
|
|
14125
14133
|
error: RunnerRpcError
|
|
14126
|
-
}),
|
|
14134
|
+
}), make6("IntegrationBranch", {
|
|
14127
14135
|
payload: { lease: ProgramLease, repoBindingId: optionalKey(String4) },
|
|
14128
14136
|
success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
|
|
14129
14137
|
error: RunnerRpcError
|
|
14130
|
-
}),
|
|
14138
|
+
}), make6("MergeChangeRequest", {
|
|
14131
14139
|
payload: {
|
|
14132
14140
|
lease: ProgramLease,
|
|
14133
14141
|
step: String4,
|
|
@@ -14140,7 +14148,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14140
14148
|
Struct({ status: Literal("moved"), head: String4 })
|
|
14141
14149
|
]),
|
|
14142
14150
|
error: RunnerRpcError
|
|
14143
|
-
}),
|
|
14151
|
+
}), make6("ApproveChangeRequest", {
|
|
14144
14152
|
payload: {
|
|
14145
14153
|
lease: ProgramLease,
|
|
14146
14154
|
step: String4,
|
|
@@ -14155,7 +14163,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14155
14163
|
Struct({ approved: Literal(false), reason: String4 })
|
|
14156
14164
|
]),
|
|
14157
14165
|
error: RunnerRpcError
|
|
14158
|
-
}),
|
|
14166
|
+
}), make6("CloseChangeRequest", {
|
|
14159
14167
|
payload: {
|
|
14160
14168
|
lease: ProgramLease,
|
|
14161
14169
|
step: String4,
|
|
@@ -14165,7 +14173,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14165
14173
|
},
|
|
14166
14174
|
success: Struct({ closed: Boolean2, head: optionalKey(String4) }),
|
|
14167
14175
|
error: RunnerRpcError
|
|
14168
|
-
}),
|
|
14176
|
+
}), make6("RerunPipeline", {
|
|
14169
14177
|
payload: {
|
|
14170
14178
|
lease: ProgramLease,
|
|
14171
14179
|
step: String4,
|
|
@@ -14175,7 +14183,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14175
14183
|
},
|
|
14176
14184
|
success: Struct({ head: String4, pipelines: Int }),
|
|
14177
14185
|
error: RunnerRpcError
|
|
14178
|
-
}),
|
|
14186
|
+
}), make6("PublishRelease", {
|
|
14179
14187
|
payload: {
|
|
14180
14188
|
lease: ProgramLease,
|
|
14181
14189
|
step: String4,
|
|
@@ -14186,14 +14194,14 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14186
14194
|
},
|
|
14187
14195
|
success: Struct({ tag: String4, revision: String4, url: String4 }),
|
|
14188
14196
|
error: RunnerRpcError
|
|
14189
|
-
}),
|
|
14197
|
+
}), make6("ProgramSecrets", {
|
|
14190
14198
|
payload: { lease: ProgramLease },
|
|
14191
14199
|
success: Record(String4, String4),
|
|
14192
14200
|
error: RunnerRpcError
|
|
14193
14201
|
})).middleware(RunnerAuthentication) {
|
|
14194
14202
|
}
|
|
14195
14203
|
|
|
14196
|
-
class RunnerRunFileRpcs extends make6(
|
|
14204
|
+
class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
|
|
14197
14205
|
payload: {
|
|
14198
14206
|
lease: ProgramLease,
|
|
14199
14207
|
step: String4,
|
|
@@ -14205,11 +14213,11 @@ class RunnerRunFileRpcs extends make6(make5("CreateRunFile", {
|
|
|
14205
14213
|
},
|
|
14206
14214
|
success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
|
|
14207
14215
|
error: Union([RunnerRpcError, RunFileRefused])
|
|
14208
|
-
}),
|
|
14216
|
+
}), make6("RunFileParts", {
|
|
14209
14217
|
payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
|
|
14210
14218
|
success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
|
|
14211
14219
|
error: RunnerRpcError
|
|
14212
|
-
}),
|
|
14220
|
+
}), make6("CompleteRunFile", {
|
|
14213
14221
|
payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
|
|
14214
14222
|
success: RunFileRecord,
|
|
14215
14223
|
error: RunnerRpcError
|
|
@@ -14298,7 +14306,7 @@ function toStoredSession(token, existingRefreshToken) {
|
|
|
14298
14306
|
}
|
|
14299
14307
|
function startLoopbackServer(input) {
|
|
14300
14308
|
return gen(function* () {
|
|
14301
|
-
const code = yield*
|
|
14309
|
+
const code = yield* make16();
|
|
14302
14310
|
const context2 = yield* context();
|
|
14303
14311
|
const runSyncExit = runSyncExitWith(context2);
|
|
14304
14312
|
const server = yield* acquireRelease(sync2(() => Bun.serve({
|
|
@@ -14838,7 +14846,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
14838
14846
|
let lastId = 0;
|
|
14839
14847
|
let lost = false;
|
|
14840
14848
|
const notifications = yield* unbounded2();
|
|
14841
|
-
const ended = yield*
|
|
14849
|
+
const ended = yield* make16();
|
|
14842
14850
|
const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
|
|
14843
14851
|
onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
|
|
14844
14852
|
onNone: () => void_3,
|
|
@@ -14865,7 +14873,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
14865
14873
|
if (lost)
|
|
14866
14874
|
return yield* new HerdrCoreConnectionLost2({ method });
|
|
14867
14875
|
const id = ++lastId;
|
|
14868
|
-
const deferred = yield*
|
|
14876
|
+
const deferred = yield* make16();
|
|
14869
14877
|
pending.set(id, { method, deferred });
|
|
14870
14878
|
yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
|
|
14871
14879
|
return yield* _await(deferred);
|
|
@@ -14939,14 +14947,14 @@ var herdrCoreOver = (transport) => ({
|
|
|
14939
14947
|
return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
|
|
14940
14948
|
};
|
|
14941
14949
|
const snapshot = { type: "snapshot", terminals: subscribed.terminals };
|
|
14942
|
-
return concat(
|
|
14950
|
+
return concat(make11(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
|
|
14943
14951
|
}))
|
|
14944
14952
|
});
|
|
14945
14953
|
var spawnedTransport = (env) => gen(function* () {
|
|
14946
14954
|
const spawner = yield* ChildProcessSpawner;
|
|
14947
14955
|
const input = yield* unbounded2();
|
|
14948
14956
|
const encoder = new TextEncoder;
|
|
14949
|
-
const handle = yield* spawner.spawn(
|
|
14957
|
+
const handle = yield* spawner.spawn(make3("herdr-core", ["connect"], {
|
|
14950
14958
|
extendEnv: false,
|
|
14951
14959
|
env,
|
|
14952
14960
|
stdin: fromQueue(input),
|
|
@@ -14977,7 +14985,7 @@ var updateHerdrCore2 = (options) => gen(function* () {
|
|
|
14977
14985
|
const spawner = yield* ChildProcessSpawner;
|
|
14978
14986
|
const env = coreEnv(options);
|
|
14979
14987
|
const run = (args) => gen(function* () {
|
|
14980
|
-
const handle = yield* spawner.spawn(
|
|
14988
|
+
const handle = yield* spawner.spawn(make3("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
|
|
14981
14989
|
const [stdout, stderr, exitCode] = yield* all3([
|
|
14982
14990
|
mkString(decodeText(handle.stdout)),
|
|
14983
14991
|
mkString(decodeText(handle.stderr)),
|
|
@@ -15003,7 +15011,7 @@ class CommandFailed2 extends TaggedError("CommandFailed") {
|
|
|
15003
15011
|
}
|
|
15004
15012
|
var runCommand2 = (command, args, options = {}) => gen(function* () {
|
|
15005
15013
|
const spawner = yield* ChildProcessSpawner;
|
|
15006
|
-
const handle = yield* spawner.spawn(
|
|
15014
|
+
const handle = yield* spawner.spawn(make3(command, args, {
|
|
15007
15015
|
stdin: "ignore",
|
|
15008
15016
|
...options.cwd === undefined ? undefined : { cwd: options.cwd },
|
|
15009
15017
|
...options.env === undefined ? undefined : { extendEnv: true, env: options.env }
|
|
@@ -15029,8 +15037,8 @@ var shellOutputTailChars2 = 64 * 1024;
|
|
|
15029
15037
|
var runProcess2 = (argv, options) => gen(function* () {
|
|
15030
15038
|
const spawner = yield* ChildProcessSpawner;
|
|
15031
15039
|
const [command, ...args] = argv;
|
|
15032
|
-
const handle = yield* spawner.spawn(
|
|
15033
|
-
stdin: options.stdin === undefined ? "ignore" :
|
|
15040
|
+
const handle = yield* spawner.spawn(make3(command, args, {
|
|
15041
|
+
stdin: options.stdin === undefined ? "ignore" : make11(new TextEncoder().encode(options.stdin)),
|
|
15034
15042
|
...options.cwd === undefined ? undefined : { cwd: options.cwd },
|
|
15035
15043
|
env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
|
|
15036
15044
|
}));
|
|
@@ -15452,4 +15460,4 @@ function checkServices(declaration) {
|
|
|
15452
15460
|
return isSome(decoded) ? [...new Set(decoded.value.services)] : undefined;
|
|
15453
15461
|
}
|
|
15454
15462
|
|
|
15455
|
-
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, 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,
|
|
15463
|
+
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, 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, make5, get, put, setHeaders, bodyUint8Array, 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, make6, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make7, Service, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, RunSettled, UpdateAvailable, RunnerReplicaRpcs, RunnerRunFileRpcs, ProgramRpcs, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, setupMcpAgentCredential, generateAgentKeyPair, HERDR_CORE_GENERATION2, HERDR_CORE_INSTALL_COMMAND2, HerdrCoreMissing2, HerdrCoreIncompatible2, HerdrCoreConnectionLost2, HerdrCoreRpcError2, HerdrCoreUpdateFailed2, HerdrCore2, herdrCoreLayer2, herdrCoreTransportLayer2, updateHerdrCore2, CommandFailed2, runCommand2, withoutPreloads2, shellOutputTailChars2, runProcess2, CommandRunner2, runShell2, detectHarnesses2, kitHarnesses, isKitHarness, instructionsStart, instructionsEnd, harnessNames, renderMcpServer, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices };
|