@kitman-sh/cli 0.12.10 → 0.12.11
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-gxbcvd4q.js → chunk-0njchsxe.js} +4 -4
- package/dist/{chunk-7afnkx5b.js → chunk-1ghm4zsk.js} +7 -7
- package/dist/{chunk-0h49y8gf.js → chunk-20qmtmt2.js} +17 -17
- package/dist/{chunk-gq7y5v3e.js → chunk-24h0y27w.js} +1 -1
- package/dist/{chunk-azfjx5d8.js → chunk-2dqvrn6w.js} +3 -3
- package/dist/{chunk-mtkstrh3.js → chunk-5f8whb7j.js} +14 -60
- package/dist/{chunk-5zth85pj.js → chunk-73fqehr2.js} +2 -2
- package/dist/{chunk-4w0c1ykv.js → chunk-8a4ffbzt.js} +107 -107
- package/dist/{chunk-7hb5jp84.js → chunk-8gk97z6d.js} +1 -1
- package/dist/{chunk-05sytbsa.js → chunk-9q0g02fa.js} +21 -21
- package/dist/{chunk-fr79hgq2.js → chunk-bk7wagcc.js} +5 -5
- package/dist/{chunk-cmrvjdff.js → chunk-dy4py3gq.js} +1 -1
- package/dist/{chunk-y1krmnbv.js → chunk-ggmwpwhf.js} +2 -2
- package/dist/{chunk-gy9rf14f.js → chunk-mmd7mjv0.js} +3 -3
- package/dist/{chunk-nb1x1swa.js → chunk-p1zn2jqf.js} +11 -11
- package/dist/{chunk-q5w3v4k1.js → chunk-pxvd8w2v.js} +1 -1
- package/dist/{chunk-cbpb2rww.js → chunk-qpfb12g1.js} +7 -7
- package/dist/{chunk-jn7w2ntt.js → chunk-qx20n32j.js} +4 -4
- package/dist/{chunk-gwnyxm1r.js → chunk-rg75c9js.js} +22 -22
- package/dist/{chunk-4gy4ty6k.js → chunk-ssq2j5xm.js} +4 -4
- package/dist/{chunk-en5mb363.js → chunk-vdt7d6ad.js} +23 -23
- package/dist/{chunk-5zhh41gb.js → chunk-vp2xdw4r.js} +4 -4
- package/dist/{chunk-vkg40ysx.js → chunk-x8t3czke.js} +7 -7
- package/dist/{chunk-zw3gf6r5.js → chunk-zgraq2y3.js} +70 -28
- package/dist/{chunk-ywzxwgrz.js → chunk-zp5xdkyw.js} +6 -6
- 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,7 +264,7 @@ 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,
|
|
@@ -270,8 +273,8 @@ import {
|
|
|
270
273
|
systemError,
|
|
271
274
|
badArgument,
|
|
272
275
|
makeUnsafe2,
|
|
276
|
+
make7,
|
|
273
277
|
make8,
|
|
274
|
-
make9,
|
|
275
278
|
sliding,
|
|
276
279
|
unbounded2,
|
|
277
280
|
offer,
|
|
@@ -287,13 +290,13 @@ import {
|
|
|
287
290
|
isSink,
|
|
288
291
|
fromChannel,
|
|
289
292
|
drain,
|
|
290
|
-
|
|
293
|
+
make9,
|
|
291
294
|
get3,
|
|
292
295
|
isStream,
|
|
293
296
|
fromChannel2,
|
|
294
297
|
callback,
|
|
295
298
|
empty2,
|
|
296
|
-
|
|
299
|
+
make10,
|
|
297
300
|
suspend,
|
|
298
301
|
fail2,
|
|
299
302
|
fromQueue,
|
|
@@ -319,16 +322,16 @@ import {
|
|
|
319
322
|
mkArrayBuffer,
|
|
320
323
|
toReadableStreamEffect,
|
|
321
324
|
FileSystem,
|
|
322
|
-
|
|
325
|
+
make11,
|
|
323
326
|
FileTypeId,
|
|
324
327
|
WatchBackend,
|
|
325
328
|
Path,
|
|
326
|
-
|
|
329
|
+
make12,
|
|
327
330
|
option,
|
|
328
331
|
String2,
|
|
329
332
|
optionalEnv,
|
|
330
333
|
harnessesUnsupportedInSrt2
|
|
331
|
-
} from "./chunk-
|
|
334
|
+
} from "./chunk-20qmtmt2.js";
|
|
332
335
|
import {
|
|
333
336
|
isDateTime,
|
|
334
337
|
Numeric,
|
|
@@ -341,21 +344,18 @@ import {
|
|
|
341
344
|
SecretScope,
|
|
342
345
|
SecretHosts,
|
|
343
346
|
isSecretReference
|
|
344
|
-
} from "./chunk-
|
|
347
|
+
} from "./chunk-pxvd8w2v.js";
|
|
345
348
|
import {
|
|
346
|
-
isRedacted,
|
|
347
|
-
make,
|
|
348
|
-
value,
|
|
349
349
|
ExitCode,
|
|
350
350
|
ProcessId,
|
|
351
351
|
makeHandle,
|
|
352
|
-
|
|
352
|
+
make,
|
|
353
353
|
ChildProcessSpawner,
|
|
354
354
|
display,
|
|
355
|
-
|
|
355
|
+
make2,
|
|
356
356
|
parseFdName,
|
|
357
357
|
fdName
|
|
358
|
-
} from "./chunk-
|
|
358
|
+
} from "./chunk-5f8whb7j.js";
|
|
359
359
|
|
|
360
360
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
|
|
361
361
|
var makeEquivalence3 = Tuple;
|
|
@@ -518,7 +518,7 @@ var makeUnsafe6 = (input) => {
|
|
|
518
518
|
var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
|
|
519
519
|
var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
|
|
520
520
|
var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
|
|
521
|
-
var
|
|
521
|
+
var make3 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
|
|
522
522
|
var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
|
|
523
523
|
var nowUnsafe = () => makeUtc(Date.now());
|
|
524
524
|
var toDateUtc = (self) => new Date(self.epochMilliseconds);
|
|
@@ -908,7 +908,7 @@ var toNumber = (b) => {
|
|
|
908
908
|
|
|
909
909
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
|
|
910
910
|
var makeUnsafe = makeUnsafe6;
|
|
911
|
-
var make18 =
|
|
911
|
+
var make18 = make3;
|
|
912
912
|
var now2 = now;
|
|
913
913
|
var nowUnsafe2 = nowUnsafe;
|
|
914
914
|
var toDateUtc2 = toDateUtc;
|
|
@@ -1123,7 +1123,7 @@ var readableToPullUnsafe = (options) => {
|
|
|
1123
1123
|
const readable = options.readable;
|
|
1124
1124
|
const chunkSize = options.chunkSize ?? 4096;
|
|
1125
1125
|
const closeOnDone = options.closeOnDone ?? true;
|
|
1126
|
-
const exit = options.exit ??
|
|
1126
|
+
const exit = options.exit ?? make7(undefined);
|
|
1127
1127
|
const latch = options.latch ?? makeUnsafe2(false);
|
|
1128
1128
|
function onReadable() {
|
|
1129
1129
|
latch.openUnsafe();
|
|
@@ -1687,7 +1687,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1687
1687
|
const sourceStream = unwrap(succeed6(getSourceStream(handles[handles.length - 1], options.from)));
|
|
1688
1688
|
const toOption = options.to ?? "stdin";
|
|
1689
1689
|
if (toOption === "stdin") {
|
|
1690
|
-
handles.push(yield* spawnCommand(
|
|
1690
|
+
handles.push(yield* spawnCommand(make2(command.command, command.args, {
|
|
1691
1691
|
...command.options,
|
|
1692
1692
|
stdin: {
|
|
1693
1693
|
...stdinConfig,
|
|
@@ -1707,7 +1707,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1707
1707
|
type: "input",
|
|
1708
1708
|
stream: sourceStream
|
|
1709
1709
|
};
|
|
1710
|
-
handles.push(yield* spawnCommand(
|
|
1710
|
+
handles.push(yield* spawnCommand(make2(command.command, command.args, {
|
|
1711
1711
|
...command.options,
|
|
1712
1712
|
additionalFds: {
|
|
1713
1713
|
...existingFds,
|
|
@@ -1715,7 +1715,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1715
1715
|
}
|
|
1716
1716
|
})));
|
|
1717
1717
|
} else {
|
|
1718
|
-
handles.push(yield* spawnCommand(
|
|
1718
|
+
handles.push(yield* spawnCommand(make2(command.command, command.args, {
|
|
1719
1719
|
...command.options,
|
|
1720
1720
|
stdin: {
|
|
1721
1721
|
...stdinConfig,
|
|
@@ -1754,7 +1754,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1754
1754
|
}
|
|
1755
1755
|
}
|
|
1756
1756
|
});
|
|
1757
|
-
return
|
|
1757
|
+
return make(spawnCommand);
|
|
1758
1758
|
});
|
|
1759
1759
|
var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
|
|
1760
1760
|
var flattenCommand = (command) => {
|
|
@@ -2240,7 +2240,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
|
|
|
2240
2240
|
resume(fail7(handleBadArgument("writeFile")(err)));
|
|
2241
2241
|
}
|
|
2242
2242
|
});
|
|
2243
|
-
var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) =>
|
|
2243
|
+
var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make11({
|
|
2244
2244
|
access: access2,
|
|
2245
2245
|
chmod: chmod2,
|
|
2246
2246
|
chown: chown2,
|
|
@@ -2300,15 +2300,15 @@ var fileUrlOps = (windows) => ({
|
|
|
2300
2300
|
})
|
|
2301
2301
|
})
|
|
2302
2302
|
});
|
|
2303
|
-
var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2303
|
+
var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
|
|
2304
2304
|
...NodePath.posix,
|
|
2305
2305
|
.../* @__PURE__ */ fileUrlOps(false)
|
|
2306
2306
|
}));
|
|
2307
|
-
var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2307
|
+
var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
|
|
2308
2308
|
...NodePath.win32,
|
|
2309
2309
|
.../* @__PURE__ */ fileUrlOps(true)
|
|
2310
2310
|
}));
|
|
2311
|
-
var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2311
|
+
var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
|
|
2312
2312
|
...NodePath,
|
|
2313
2313
|
.../* @__PURE__ */ fileUrlOps(undefined)
|
|
2314
2314
|
}));
|
|
@@ -2830,12 +2830,12 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
|
2830
2830
|
if (typeof key === "string") {
|
|
2831
2831
|
const k = key.toLowerCase();
|
|
2832
2832
|
if (k in self) {
|
|
2833
|
-
out[k] =
|
|
2833
|
+
out[k] = make16(self[k]);
|
|
2834
2834
|
}
|
|
2835
2835
|
} else {
|
|
2836
2836
|
for (const name in self) {
|
|
2837
2837
|
if (name.search(key) !== -1) {
|
|
2838
|
-
out[name] =
|
|
2838
|
+
out[name] = make16(self[name]);
|
|
2839
2839
|
}
|
|
2840
2840
|
}
|
|
2841
2841
|
}
|
|
@@ -2942,7 +2942,7 @@ var fromInputNested = (input) => {
|
|
|
2942
2942
|
return out;
|
|
2943
2943
|
};
|
|
2944
2944
|
var coerce = (value) => isRedacted(value) ? value : String(value);
|
|
2945
|
-
var Equivalence3 = /* @__PURE__ */
|
|
2945
|
+
var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
|
|
2946
2946
|
var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
|
|
2947
2947
|
var empty4 = /* @__PURE__ */ make23([]);
|
|
2948
2948
|
var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
@@ -2961,7 +2961,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
|
2961
2961
|
var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
|
|
2962
2962
|
var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
2963
2963
|
const patterns = Array.isArray(key) ? key : [key];
|
|
2964
|
-
return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ?
|
|
2964
|
+
return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make16(value) : value]);
|
|
2965
2965
|
});
|
|
2966
2966
|
var isRedactedName2 = isRedactedName;
|
|
2967
2967
|
var redactUrl = (url, redactedNames = currentRedactedNames()) => {
|
|
@@ -3037,7 +3037,7 @@ import * as readline from "readline";
|
|
|
3037
3037
|
var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
|
|
3038
3038
|
const stdin = process.stdin;
|
|
3039
3039
|
const stdout = process.stdout;
|
|
3040
|
-
const lines = yield*
|
|
3040
|
+
const lines = yield* make8();
|
|
3041
3041
|
let inputEnded = stdin.readableEnded;
|
|
3042
3042
|
let readlineActive = false;
|
|
3043
3043
|
const onStdinEnd = () => {
|
|
@@ -3048,7 +3048,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3048
3048
|
};
|
|
3049
3049
|
stdin.once("end", onStdinEnd);
|
|
3050
3050
|
yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
|
|
3051
|
-
const rlRef = yield*
|
|
3051
|
+
const rlRef = yield* make9({
|
|
3052
3052
|
acquire: acquireRelease(sync2(() => {
|
|
3053
3053
|
const rl = readline.createInterface({
|
|
3054
3054
|
input: stdin,
|
|
@@ -3087,7 +3087,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3087
3087
|
if (stdin.isTTY)
|
|
3088
3088
|
stdin.setRawMode(enabled);
|
|
3089
3089
|
});
|
|
3090
|
-
const rawModeRef = yield*
|
|
3090
|
+
const rawModeRef = yield* make9({
|
|
3091
3091
|
acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
|
|
3092
3092
|
idleTimeToLive: "10 millis"
|
|
3093
3093
|
});
|
|
@@ -3108,7 +3108,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3108
3108
|
return queue;
|
|
3109
3109
|
});
|
|
3110
3110
|
const readInput = gen(function* () {
|
|
3111
|
-
const queue = yield*
|
|
3111
|
+
const queue = yield* make8();
|
|
3112
3112
|
const handleKeypress = (s, k) => {
|
|
3113
3113
|
const userInput = {
|
|
3114
3114
|
input: fromUndefinedOr(s),
|
|
@@ -9954,14 +9954,14 @@ function makeWith(method, url, urlParams, hash, headers, body) {
|
|
|
9954
9954
|
return self;
|
|
9955
9955
|
}
|
|
9956
9956
|
var empty6 = /* @__PURE__ */ makeWith("GET", "", empty4, /* @__PURE__ */ none(), empty, empty5);
|
|
9957
|
-
var
|
|
9957
|
+
var make4 = (method) => (url, options) => modify(empty6, {
|
|
9958
9958
|
method,
|
|
9959
9959
|
url,
|
|
9960
9960
|
...options ?? undefined
|
|
9961
9961
|
});
|
|
9962
|
-
var get = /* @__PURE__ */
|
|
9963
|
-
var post = /* @__PURE__ */
|
|
9964
|
-
var put = /* @__PURE__ */
|
|
9962
|
+
var get = /* @__PURE__ */ make4("GET");
|
|
9963
|
+
var post = /* @__PURE__ */ make4("POST");
|
|
9964
|
+
var put = /* @__PURE__ */ make4("PUT");
|
|
9965
9965
|
var modify = /* @__PURE__ */ dual(2, (self, options) => {
|
|
9966
9966
|
let result = self;
|
|
9967
9967
|
if (options.method) {
|
|
@@ -10262,7 +10262,7 @@ var Proto7 = {
|
|
|
10262
10262
|
};
|
|
10263
10263
|
},
|
|
10264
10264
|
.../* @__PURE__ */ Object.fromEntries(/* @__PURE__ */ allShort.map(([fullMethod, method]) => [method, function(url, options) {
|
|
10265
|
-
return this.execute(
|
|
10265
|
+
return this.execute(make4(fullMethod)(url, options));
|
|
10266
10266
|
}]))
|
|
10267
10267
|
};
|
|
10268
10268
|
var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
|
|
@@ -13959,7 +13959,7 @@ var makeProto = (options) => {
|
|
|
13959
13959
|
Rpc.key = `effect/rpc/Rpc/${options._tag}`;
|
|
13960
13960
|
return Rpc;
|
|
13961
13961
|
};
|
|
13962
|
-
var
|
|
13962
|
+
var make5 = (tag, options) => {
|
|
13963
13963
|
const successSchema = options?.success ?? Void;
|
|
13964
13964
|
const errorSchema = options?.error ?? Never;
|
|
13965
13965
|
const defectSchema = options?.defect ?? Defect();
|
|
@@ -14170,7 +14170,7 @@ var RpcGroupProto = {
|
|
|
14170
14170
|
});
|
|
14171
14171
|
},
|
|
14172
14172
|
annotateRpcs(service, value) {
|
|
14173
|
-
return this.annotateRpcsMerge(
|
|
14173
|
+
return this.annotateRpcsMerge(make14(service, value));
|
|
14174
14174
|
},
|
|
14175
14175
|
annotateMerge(context) {
|
|
14176
14176
|
return makeProto2({
|
|
@@ -14193,7 +14193,7 @@ var makeProto2 = (options) => Object.assign(function() {}, RpcGroupProto, {
|
|
|
14193
14193
|
requests: options.requests,
|
|
14194
14194
|
annotations: options.annotations
|
|
14195
14195
|
});
|
|
14196
|
-
var
|
|
14196
|
+
var make6 = (...rpcs) => makeProto2({
|
|
14197
14197
|
requests: new Map(rpcs.map((rpc) => [rpc._tag, rpc])),
|
|
14198
14198
|
annotations: empty3()
|
|
14199
14199
|
});
|
|
@@ -14299,96 +14299,96 @@ var ProgramOutcome = Union([
|
|
|
14299
14299
|
Struct({ status: Literal("failed"), failureSummary: String4 })
|
|
14300
14300
|
]);
|
|
14301
14301
|
|
|
14302
|
-
class RunnerReplicaRpcs extends
|
|
14302
|
+
class RunnerReplicaRpcs extends make6(make5("Claim", {
|
|
14303
14303
|
payload: WorkUnitClaimInput,
|
|
14304
14304
|
success: WorkUnitClaimResult,
|
|
14305
14305
|
error: RunnerRpcError
|
|
14306
|
-
}),
|
|
14306
|
+
}), make5("Heartbeat", {
|
|
14307
14307
|
payload: WorkUnitHeartbeatInput,
|
|
14308
14308
|
success: WorkUnitHeartbeatResult,
|
|
14309
14309
|
error: RunnerRpcError
|
|
14310
|
-
}),
|
|
14310
|
+
}), make5("Complete", {
|
|
14311
14311
|
payload: WorkUnitCompletion,
|
|
14312
14312
|
error: RunnerRpcError
|
|
14313
|
-
}),
|
|
14313
|
+
}), make5("Release", {
|
|
14314
14314
|
payload: WorkUnitReleaseInput,
|
|
14315
14315
|
error: RunnerRpcError
|
|
14316
|
-
}),
|
|
14316
|
+
}), make5("Signals", {
|
|
14317
14317
|
payload: { runnerReplicaId: String4 },
|
|
14318
14318
|
success: RunnerSignal,
|
|
14319
14319
|
error: RunnerRpcError,
|
|
14320
14320
|
stream: true
|
|
14321
|
-
}),
|
|
14321
|
+
}), make5("ReportSteer", {
|
|
14322
14322
|
payload: { workUnitId: String4, messageId: String4, delivered: Boolean2 },
|
|
14323
14323
|
success: Void,
|
|
14324
14324
|
error: RunnerRpcError
|
|
14325
|
-
}),
|
|
14325
|
+
}), make5("AppendTranscript", {
|
|
14326
14326
|
payload: { workUnitId: String4, entries: ArraySchema(TranscriptAppendEntry).check(isMaxLength(100)) },
|
|
14327
14327
|
success: Void,
|
|
14328
14328
|
error: RunnerRpcError
|
|
14329
|
-
}),
|
|
14329
|
+
}), make5("CreateCheckpointFile", {
|
|
14330
14330
|
payload: { lease: ProgramLease, byteSize: Int, sha256: String4 },
|
|
14331
14331
|
success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
|
|
14332
14332
|
error: Union([RunnerRpcError, RunFileRefused])
|
|
14333
|
-
}),
|
|
14333
|
+
}), make5("CheckpointFileParts", {
|
|
14334
14334
|
payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
|
|
14335
14335
|
success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
|
|
14336
14336
|
error: RunnerRpcError
|
|
14337
|
-
}),
|
|
14337
|
+
}), make5("CompleteCheckpointFile", {
|
|
14338
14338
|
payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
|
|
14339
14339
|
success: RunFileRecord,
|
|
14340
14340
|
error: RunnerRpcError
|
|
14341
|
-
}),
|
|
14341
|
+
}), make5("SaveCheckpoint", {
|
|
14342
14342
|
payload: { lease: ProgramLease, checkpoint: StepCheckpoint },
|
|
14343
14343
|
success: Void,
|
|
14344
14344
|
error: RunnerRpcError
|
|
14345
|
-
}),
|
|
14345
|
+
}), make5("ResumeCheckpoint", {
|
|
14346
14346
|
payload: { lease: ProgramLease },
|
|
14347
14347
|
success: UndefinedOr(ResumedCheckpoint),
|
|
14348
14348
|
error: RunnerRpcError
|
|
14349
|
-
}),
|
|
14349
|
+
}), make5("SettledCheckpoints", {
|
|
14350
14350
|
success: ArraySchema(Struct({
|
|
14351
14351
|
stepAttemptId: String4,
|
|
14352
14352
|
ref: optionalKey(String4),
|
|
14353
14353
|
repoBinding: optionalKey(WorkUnitRepoBinding)
|
|
14354
14354
|
})),
|
|
14355
14355
|
error: RunnerRpcError
|
|
14356
|
-
}),
|
|
14356
|
+
}), make5("ForgetCheckpoints", {
|
|
14357
14357
|
payload: { stepAttemptIds: ArraySchema(String4) },
|
|
14358
14358
|
success: Void,
|
|
14359
14359
|
error: RunnerRpcError
|
|
14360
|
-
}),
|
|
14360
|
+
}), make5("GitCredential", {
|
|
14361
14361
|
payload: { repoBindingId: String4 },
|
|
14362
14362
|
success: UndefinedOr(Struct({ username: String4, password: String4 })),
|
|
14363
14363
|
error: RunnerRpcError
|
|
14364
|
-
}),
|
|
14364
|
+
}), make5("Bundle", {
|
|
14365
14365
|
payload: { digest: String4 },
|
|
14366
14366
|
success: Struct({ bundle: String4 }),
|
|
14367
14367
|
error: RunnerRpcError
|
|
14368
|
-
}),
|
|
14368
|
+
}), make5("SettledRuns", {
|
|
14369
14369
|
payload: { runIds: ArraySchema(String4) },
|
|
14370
14370
|
success: ArraySchema(String4),
|
|
14371
14371
|
error: RunnerRpcError
|
|
14372
|
-
}),
|
|
14372
|
+
}), make5("KnownEvidence", {
|
|
14373
14373
|
payload: { lease: ProgramLease, trees: ArraySchema(String4) },
|
|
14374
14374
|
success: ArraySchema(Struct({ tree: String4, name: String4, command: String4 })),
|
|
14375
14375
|
error: RunnerRpcError
|
|
14376
14376
|
})).middleware(RunnerAuthentication) {
|
|
14377
14377
|
}
|
|
14378
14378
|
|
|
14379
|
-
class RunnerJournalRpcs extends
|
|
14379
|
+
class RunnerJournalRpcs extends make6(make5("RecordActivity", {
|
|
14380
14380
|
payload: { lease: ProgramLease, name: String4, attempt: Int, exit: Json },
|
|
14381
14381
|
error: RunnerRpcError
|
|
14382
|
-
}),
|
|
14382
|
+
}), make5("DeferredDone", {
|
|
14383
14383
|
payload: { lease: ProgramLease, name: String4, exit: Json },
|
|
14384
14384
|
error: RunnerRpcError
|
|
14385
|
-
}),
|
|
14385
|
+
}), make5("ScheduleClock", {
|
|
14386
14386
|
payload: { lease: ProgramLease, name: String4, deferredName: String4, durationMillis: Int },
|
|
14387
14387
|
error: RunnerRpcError
|
|
14388
|
-
}),
|
|
14388
|
+
}), make5("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make5("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
|
|
14389
14389
|
}
|
|
14390
14390
|
|
|
14391
|
-
class RunnerCapabilityRpcs extends
|
|
14391
|
+
class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
14392
14392
|
payload: {
|
|
14393
14393
|
lease: ProgramLease,
|
|
14394
14394
|
step: String4,
|
|
@@ -14408,7 +14408,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14408
14408
|
},
|
|
14409
14409
|
success: Struct({ questionId: String4 }),
|
|
14410
14410
|
error: RunnerRpcError
|
|
14411
|
-
}),
|
|
14411
|
+
}), make5("StartAgentStep", {
|
|
14412
14412
|
payload: {
|
|
14413
14413
|
lease: ProgramLease,
|
|
14414
14414
|
step: String4,
|
|
@@ -14424,7 +14424,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14424
14424
|
},
|
|
14425
14425
|
success: Struct({ stepAttemptId: String4 }),
|
|
14426
14426
|
error: RunnerRpcError
|
|
14427
|
-
}),
|
|
14427
|
+
}), make5("StartVerification", {
|
|
14428
14428
|
payload: {
|
|
14429
14429
|
lease: ProgramLease,
|
|
14430
14430
|
step: String4,
|
|
@@ -14445,7 +14445,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14445
14445
|
},
|
|
14446
14446
|
success: Struct({ verificationId: String4 }),
|
|
14447
14447
|
error: RunnerRpcError
|
|
14448
|
-
}),
|
|
14448
|
+
}), make5("AwaitEvent", {
|
|
14449
14449
|
payload: {
|
|
14450
14450
|
lease: ProgramLease,
|
|
14451
14451
|
step: String4,
|
|
@@ -14461,7 +14461,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14461
14461
|
})))
|
|
14462
14462
|
},
|
|
14463
14463
|
error: RunnerRpcError
|
|
14464
|
-
}),
|
|
14464
|
+
}), make5("ClaimResource", {
|
|
14465
14465
|
payload: {
|
|
14466
14466
|
lease: ProgramLease,
|
|
14467
14467
|
step: String4,
|
|
@@ -14470,7 +14470,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14470
14470
|
action: Literals(["claim", "take_over", "let_go"])
|
|
14471
14471
|
},
|
|
14472
14472
|
error: RunnerRpcError
|
|
14473
|
-
}),
|
|
14473
|
+
}), make5("AdmitChild", {
|
|
14474
14474
|
payload: {
|
|
14475
14475
|
lease: ProgramLease,
|
|
14476
14476
|
step: String4,
|
|
@@ -14481,7 +14481,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14481
14481
|
},
|
|
14482
14482
|
success: Struct({ runId: String4 }),
|
|
14483
14483
|
error: RunnerRpcError
|
|
14484
|
-
}),
|
|
14484
|
+
}), make5("StoreArtifact", {
|
|
14485
14485
|
payload: {
|
|
14486
14486
|
lease: ProgramLease,
|
|
14487
14487
|
step: String4,
|
|
@@ -14493,7 +14493,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14493
14493
|
},
|
|
14494
14494
|
success: Struct({ artifactId: String4 }),
|
|
14495
14495
|
error: RunnerRpcError
|
|
14496
|
-
}),
|
|
14496
|
+
}), make5("RecordNote", {
|
|
14497
14497
|
payload: {
|
|
14498
14498
|
lease: ProgramLease,
|
|
14499
14499
|
step: String4,
|
|
@@ -14502,7 +14502,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14502
14502
|
kind: optional(Literals(["note", "blocker"]))
|
|
14503
14503
|
},
|
|
14504
14504
|
error: RunnerRpcError
|
|
14505
|
-
}),
|
|
14505
|
+
}), make5("PerformHostEffect", {
|
|
14506
14506
|
payload: {
|
|
14507
14507
|
lease: ProgramLease,
|
|
14508
14508
|
step: String4,
|
|
@@ -14531,7 +14531,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14531
14531
|
},
|
|
14532
14532
|
success: UndefinedOr(Struct({ id: String4, number: String4, url: String4 })),
|
|
14533
14533
|
error: RunnerRpcError
|
|
14534
|
-
}),
|
|
14534
|
+
}), make5("AlertTask", {
|
|
14535
14535
|
payload: {
|
|
14536
14536
|
lease: ProgramLease,
|
|
14537
14537
|
step: String4,
|
|
@@ -14548,7 +14548,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14548
14548
|
joined: optionalKey(Struct({ kind: Literals(["run", "recent"]), runId: String4 }))
|
|
14549
14549
|
}),
|
|
14550
14550
|
error: RunnerRpcError
|
|
14551
|
-
}),
|
|
14551
|
+
}), make5("ReadTranscripts", {
|
|
14552
14552
|
payload: {
|
|
14553
14553
|
lease: ProgramLease,
|
|
14554
14554
|
step: String4,
|
|
@@ -14583,7 +14583,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14583
14583
|
})))
|
|
14584
14584
|
}),
|
|
14585
14585
|
error: RunnerRpcError
|
|
14586
|
-
}),
|
|
14586
|
+
}), make5("PipelineStatus", {
|
|
14587
14587
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
|
|
14588
14588
|
success: Struct({
|
|
14589
14589
|
head: String4,
|
|
@@ -14617,11 +14617,11 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14617
14617
|
}))
|
|
14618
14618
|
}),
|
|
14619
14619
|
error: RunnerRpcError
|
|
14620
|
-
}),
|
|
14620
|
+
}), make5("ReportPipeline", {
|
|
14621
14621
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4, verification: String4 },
|
|
14622
14622
|
success: Struct({ head: String4, status: Literals(["success", "failed"]) }),
|
|
14623
14623
|
error: RunnerRpcError
|
|
14624
|
-
}),
|
|
14624
|
+
}), make5("ReviewThreads", {
|
|
14625
14625
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
|
|
14626
14626
|
success: Struct({
|
|
14627
14627
|
threads: ArraySchema(Struct({
|
|
@@ -14633,7 +14633,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14633
14633
|
}))
|
|
14634
14634
|
}),
|
|
14635
14635
|
error: RunnerRpcError
|
|
14636
|
-
}),
|
|
14636
|
+
}), make5("OpenChangeRequests", {
|
|
14637
14637
|
payload: { lease: ProgramLease, step: String4, authors: NonEmptyArray(String4) },
|
|
14638
14638
|
success: Struct({
|
|
14639
14639
|
changeRequests: ArraySchema(Struct({
|
|
@@ -14647,7 +14647,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14647
14647
|
}))
|
|
14648
14648
|
}),
|
|
14649
14649
|
error: RunnerRpcError
|
|
14650
|
-
}),
|
|
14650
|
+
}), make5("OwnChangeRequests", {
|
|
14651
14651
|
payload: { lease: ProgramLease, step: String4 },
|
|
14652
14652
|
success: Struct({
|
|
14653
14653
|
changeRequests: ArraySchema(Struct({
|
|
@@ -14660,7 +14660,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14660
14660
|
}))
|
|
14661
14661
|
}),
|
|
14662
14662
|
error: RunnerRpcError
|
|
14663
|
-
}),
|
|
14663
|
+
}), make5("Propose", {
|
|
14664
14664
|
payload: {
|
|
14665
14665
|
lease: ProgramLease,
|
|
14666
14666
|
step: String4,
|
|
@@ -14689,7 +14689,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14689
14689
|
task: optionalKey(Struct({ id: String4, active: Boolean2 }))
|
|
14690
14690
|
}),
|
|
14691
14691
|
error: RunnerRpcError
|
|
14692
|
-
}),
|
|
14692
|
+
}), make5("ReadProject", {
|
|
14693
14693
|
payload: { lease: ProgramLease, step: String4, projectId: String4 },
|
|
14694
14694
|
success: Struct({
|
|
14695
14695
|
project: Struct({ id: String4, name: String4 }),
|
|
@@ -14712,7 +14712,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14712
14712
|
taskChanges: ArraySchema(Struct({ taskKey: String4, title: String4, change: String4, at: String4 }))
|
|
14713
14713
|
}),
|
|
14714
14714
|
error: RunnerRpcError
|
|
14715
|
-
}),
|
|
14715
|
+
}), make5("DraftUpdate", {
|
|
14716
14716
|
payload: {
|
|
14717
14717
|
lease: ProgramLease,
|
|
14718
14718
|
step: String4,
|
|
@@ -14727,7 +14727,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14727
14727
|
},
|
|
14728
14728
|
success: Struct({ id: String4 }),
|
|
14729
14729
|
error: RunnerRpcError
|
|
14730
|
-
}),
|
|
14730
|
+
}), make5("CreatePlanTasks", {
|
|
14731
14731
|
payload: {
|
|
14732
14732
|
lease: ProgramLease,
|
|
14733
14733
|
projectId: optionalKey(String4),
|
|
@@ -14745,15 +14745,15 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14745
14745
|
},
|
|
14746
14746
|
success: ArraySchema(Struct({ key: String4, taskId: String4 })),
|
|
14747
14747
|
error: RunnerRpcError
|
|
14748
|
-
}),
|
|
14748
|
+
}), make5("IntegrationBranch", {
|
|
14749
14749
|
payload: { lease: ProgramLease, repoBindingId: optionalKey(String4) },
|
|
14750
14750
|
success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
|
|
14751
14751
|
error: RunnerRpcError
|
|
14752
|
-
}),
|
|
14752
|
+
}), make5("DeliveryBase", {
|
|
14753
14753
|
payload: { lease: ProgramLease },
|
|
14754
14754
|
success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
|
|
14755
14755
|
error: RunnerRpcError
|
|
14756
|
-
}),
|
|
14756
|
+
}), make5("MergeChangeRequest", {
|
|
14757
14757
|
payload: {
|
|
14758
14758
|
lease: ProgramLease,
|
|
14759
14759
|
step: String4,
|
|
@@ -14771,7 +14771,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14771
14771
|
Struct({ status: Literal("moved"), head: String4 })
|
|
14772
14772
|
]),
|
|
14773
14773
|
error: RunnerRpcError
|
|
14774
|
-
}),
|
|
14774
|
+
}), make5("ApproveChangeRequest", {
|
|
14775
14775
|
payload: {
|
|
14776
14776
|
lease: ProgramLease,
|
|
14777
14777
|
step: String4,
|
|
@@ -14787,7 +14787,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14787
14787
|
Struct({ approved: Literal(false), reason: String4 })
|
|
14788
14788
|
]),
|
|
14789
14789
|
error: RunnerRpcError
|
|
14790
|
-
}),
|
|
14790
|
+
}), make5("CloseChangeRequest", {
|
|
14791
14791
|
payload: {
|
|
14792
14792
|
lease: ProgramLease,
|
|
14793
14793
|
step: String4,
|
|
@@ -14797,7 +14797,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14797
14797
|
},
|
|
14798
14798
|
success: Struct({ closed: Boolean2, head: optionalKey(String4) }),
|
|
14799
14799
|
error: RunnerRpcError
|
|
14800
|
-
}),
|
|
14800
|
+
}), make5("RerunPipeline", {
|
|
14801
14801
|
payload: {
|
|
14802
14802
|
lease: ProgramLease,
|
|
14803
14803
|
step: String4,
|
|
@@ -14807,7 +14807,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14807
14807
|
},
|
|
14808
14808
|
success: Struct({ head: String4, pipelines: Int }),
|
|
14809
14809
|
error: RunnerRpcError
|
|
14810
|
-
}),
|
|
14810
|
+
}), make5("PublishRelease", {
|
|
14811
14811
|
payload: {
|
|
14812
14812
|
lease: ProgramLease,
|
|
14813
14813
|
step: String4,
|
|
@@ -14819,14 +14819,14 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14819
14819
|
},
|
|
14820
14820
|
success: Struct({ tag: String4, revision: String4, url: String4 }),
|
|
14821
14821
|
error: RunnerRpcError
|
|
14822
|
-
}),
|
|
14822
|
+
}), make5("ProgramSecrets", {
|
|
14823
14823
|
payload: { lease: ProgramLease },
|
|
14824
14824
|
success: Record(String4, String4),
|
|
14825
14825
|
error: RunnerRpcError
|
|
14826
14826
|
})).middleware(RunnerAuthentication) {
|
|
14827
14827
|
}
|
|
14828
14828
|
|
|
14829
|
-
class RunnerRunFileRpcs extends
|
|
14829
|
+
class RunnerRunFileRpcs extends make6(make5("CreateRunFile", {
|
|
14830
14830
|
payload: {
|
|
14831
14831
|
lease: ProgramLease,
|
|
14832
14832
|
step: String4,
|
|
@@ -14838,11 +14838,11 @@ class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
|
|
|
14838
14838
|
},
|
|
14839
14839
|
success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
|
|
14840
14840
|
error: Union([RunnerRpcError, RunFileRefused])
|
|
14841
|
-
}),
|
|
14841
|
+
}), make5("RunFileParts", {
|
|
14842
14842
|
payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
|
|
14843
14843
|
success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
|
|
14844
14844
|
error: RunnerRpcError
|
|
14845
|
-
}),
|
|
14845
|
+
}), make5("CompleteRunFile", {
|
|
14846
14846
|
payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
|
|
14847
14847
|
success: RunFileRecord,
|
|
14848
14848
|
error: RunnerRpcError
|
|
@@ -14931,7 +14931,7 @@ function toStoredSession(token, existingRefreshToken) {
|
|
|
14931
14931
|
}
|
|
14932
14932
|
function startLoopbackServer(input) {
|
|
14933
14933
|
return gen(function* () {
|
|
14934
|
-
const code = yield*
|
|
14934
|
+
const code = yield* make15();
|
|
14935
14935
|
const context2 = yield* context();
|
|
14936
14936
|
const runSyncExit = runSyncExitWith(context2);
|
|
14937
14937
|
const server = yield* acquireRelease(sync2(() => Bun.serve({
|
|
@@ -15471,7 +15471,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
15471
15471
|
let lastId = 0;
|
|
15472
15472
|
let lost = false;
|
|
15473
15473
|
const notifications = yield* unbounded2();
|
|
15474
|
-
const ended = yield*
|
|
15474
|
+
const ended = yield* make15();
|
|
15475
15475
|
const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
|
|
15476
15476
|
onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
|
|
15477
15477
|
onNone: () => void_3,
|
|
@@ -15498,7 +15498,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
15498
15498
|
if (lost)
|
|
15499
15499
|
return yield* new HerdrCoreConnectionLost2({ method });
|
|
15500
15500
|
const id = ++lastId;
|
|
15501
|
-
const deferred = yield*
|
|
15501
|
+
const deferred = yield* make15();
|
|
15502
15502
|
pending.set(id, { method, deferred });
|
|
15503
15503
|
yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
|
|
15504
15504
|
return yield* _await(deferred);
|
|
@@ -15572,14 +15572,14 @@ var herdrCoreOver = (transport) => ({
|
|
|
15572
15572
|
return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
|
|
15573
15573
|
};
|
|
15574
15574
|
const snapshot = { type: "snapshot", terminals: subscribed.terminals };
|
|
15575
|
-
return concat(
|
|
15575
|
+
return concat(make10(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
|
|
15576
15576
|
}))
|
|
15577
15577
|
});
|
|
15578
15578
|
var spawnedTransport = (env) => gen(function* () {
|
|
15579
15579
|
const spawner = yield* ChildProcessSpawner;
|
|
15580
15580
|
const input = yield* unbounded2();
|
|
15581
15581
|
const encoder = new TextEncoder;
|
|
15582
|
-
const handle = yield* spawner.spawn(
|
|
15582
|
+
const handle = yield* spawner.spawn(make2("herdr-core", ["connect"], {
|
|
15583
15583
|
extendEnv: false,
|
|
15584
15584
|
env,
|
|
15585
15585
|
stdin: fromQueue(input),
|
|
@@ -15610,7 +15610,7 @@ var updateHerdrCore2 = (options) => gen(function* () {
|
|
|
15610
15610
|
const spawner = yield* ChildProcessSpawner;
|
|
15611
15611
|
const env = coreEnv(options);
|
|
15612
15612
|
const run = (args) => gen(function* () {
|
|
15613
|
-
const handle = yield* spawner.spawn(
|
|
15613
|
+
const handle = yield* spawner.spawn(make2("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
|
|
15614
15614
|
const [stdout, stderr, exitCode] = yield* all3([
|
|
15615
15615
|
mkString(decodeText(handle.stdout)),
|
|
15616
15616
|
mkString(decodeText(handle.stderr)),
|
|
@@ -15636,7 +15636,7 @@ class CommandFailed2 extends TaggedError("CommandFailed") {
|
|
|
15636
15636
|
}
|
|
15637
15637
|
var runCommand2 = (command, args, options = {}) => gen(function* () {
|
|
15638
15638
|
const spawner = yield* ChildProcessSpawner;
|
|
15639
|
-
const handle = yield* spawner.spawn(
|
|
15639
|
+
const handle = yield* spawner.spawn(make2(command, args, {
|
|
15640
15640
|
stdin: "ignore",
|
|
15641
15641
|
...options.cwd === undefined ? undefined : { cwd: options.cwd },
|
|
15642
15642
|
...options.env === undefined ? undefined : { extendEnv: true, env: options.env }
|
|
@@ -15662,8 +15662,8 @@ var shellOutputTailChars2 = 64 * 1024;
|
|
|
15662
15662
|
var runProcess2 = (argv, options) => gen(function* () {
|
|
15663
15663
|
const spawner = yield* ChildProcessSpawner;
|
|
15664
15664
|
const [command, ...args] = argv;
|
|
15665
|
-
const handle = yield* spawner.spawn(
|
|
15666
|
-
stdin: options.stdin === undefined ? "ignore" :
|
|
15665
|
+
const handle = yield* spawner.spawn(make2(command, args, {
|
|
15666
|
+
stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
|
|
15667
15667
|
...options.cwd === undefined ? undefined : { cwd: options.cwd },
|
|
15668
15668
|
env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
|
|
15669
15669
|
}));
|
|
@@ -16095,4 +16095,4 @@ function checkServices(declaration) {
|
|
|
16095
16095
|
return isSome(decoded) ? [...new Set(decoded.value.services)] : undefined;
|
|
16096
16096
|
}
|
|
16097
16097
|
|
|
16098
|
-
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, 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,
|
|
16098
|
+
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, 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, 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 };
|