@kitman-sh/cli 0.13.16 → 0.13.17
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-ttk3d0z2.js → chunk-0vv8cbye.js} +136 -136
- package/dist/{chunk-5w6r4mw6.js → chunk-1cr225aq.js} +30 -30
- package/dist/{chunk-gq7y5v3e.js → chunk-24h0y27w.js} +1 -1
- package/dist/{chunk-t4xwk14b.js → chunk-4yca7e7x.js} +101 -101
- package/dist/{chunk-4zh7qxck.js → chunk-643pxp2k.js} +4 -4
- package/dist/{chunk-bt22cd13.js → chunk-67xn3yer.js} +7 -7
- package/dist/{chunk-zd6y6ka8.js → chunk-80f0p6s7.js} +119 -119
- package/dist/{chunk-y7p4d14b.js → chunk-8nzsyz74.js} +2 -2
- package/dist/{chunk-fc2bhh5v.js → chunk-ahvpwkyk.js} +2 -2
- package/dist/{chunk-tntbdpmy.js → chunk-b5edh1jq.js} +78 -78
- package/dist/{chunk-vsrjg9nm.js → chunk-cbf0q15q.js} +22 -68
- package/dist/{chunk-v1e4g2re.js → chunk-efyrm6bv.js} +1 -1
- package/dist/{chunk-at5dh2te.js → chunk-g7ysb6ca.js} +18 -18
- package/dist/{chunk-49gbakce.js → chunk-gasqek3p.js} +6 -6
- package/dist/{chunk-x7acexnm.js → chunk-ggmwpwhf.js} +5 -5
- package/dist/{chunk-s88vcvtd.js → chunk-mmd7mjv0.js} +3 -3
- package/dist/{chunk-d9z9cyzt.js → chunk-pbmadbfm.js} +32 -32
- package/dist/{chunk-c9rvst3x.js → chunk-pjq9bf3w.js} +4 -4
- package/dist/{chunk-cbzqfz1k.js → chunk-pvsg1ppc.js} +4 -4
- package/dist/{chunk-q5w3v4k1.js → chunk-pxvd8w2v.js} +1 -1
- package/dist/{chunk-mbqb40ev.js → chunk-q4ra17vf.js} +16 -16
- package/dist/{chunk-sjdze64n.js → chunk-syhs23yk.js} +7 -7
- package/dist/{chunk-nf9gdnsf.js → chunk-x20t7xy8.js} +17 -17
- package/dist/{chunk-5cevjkrb.js → chunk-zcpnmgwb.js} +16 -16
- package/dist/{chunk-zw3gf6r5.js → chunk-zgraq2y3.js} +70 -28
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -1,17 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
isDateTime,
|
|
4
|
-
Numeric,
|
|
5
|
-
isWholeNumber,
|
|
6
|
-
guard,
|
|
7
|
-
Id,
|
|
8
|
-
Timestamp,
|
|
9
|
-
ActorType,
|
|
10
|
-
SecretName,
|
|
11
|
-
SecretScope,
|
|
12
|
-
SecretHosts,
|
|
13
|
-
isSecretReference
|
|
14
|
-
} from "./chunk-q5w3v4k1.js";
|
|
15
2
|
import {
|
|
16
3
|
pipeArguments,
|
|
17
4
|
dual,
|
|
@@ -51,7 +38,7 @@ import {
|
|
|
51
38
|
assignProperty,
|
|
52
39
|
PipeInspectableProto,
|
|
53
40
|
withFiber,
|
|
54
|
-
|
|
41
|
+
make13,
|
|
55
42
|
strictEqual,
|
|
56
43
|
Tuple,
|
|
57
44
|
Number2,
|
|
@@ -71,7 +58,7 @@ import {
|
|
|
71
58
|
Service2,
|
|
72
59
|
makeUnsafe4,
|
|
73
60
|
empty3,
|
|
74
|
-
|
|
61
|
+
make14,
|
|
75
62
|
add,
|
|
76
63
|
getOrUndefined2,
|
|
77
64
|
getOrUndefinedUnsafe,
|
|
@@ -104,7 +91,7 @@ import {
|
|
|
104
91
|
fail4,
|
|
105
92
|
isSuccess2,
|
|
106
93
|
makeUnsafe5,
|
|
107
|
-
|
|
94
|
+
make15,
|
|
108
95
|
_await,
|
|
109
96
|
fail5,
|
|
110
97
|
isDone,
|
|
@@ -207,6 +194,9 @@ import {
|
|
|
207
194
|
logError,
|
|
208
195
|
effectify,
|
|
209
196
|
decode,
|
|
197
|
+
isRedacted,
|
|
198
|
+
make16,
|
|
199
|
+
value,
|
|
210
200
|
defaultParseOptions,
|
|
211
201
|
omit,
|
|
212
202
|
map9,
|
|
@@ -275,7 +265,7 @@ import {
|
|
|
275
265
|
decodeJsonStringOption,
|
|
276
266
|
encodeJsonStringSync,
|
|
277
267
|
encodePrettyJsonString
|
|
278
|
-
} from "./chunk-
|
|
268
|
+
} from "./chunk-zgraq2y3.js";
|
|
279
269
|
import {
|
|
280
270
|
map,
|
|
281
271
|
makeEquivalence,
|
|
@@ -284,8 +274,8 @@ import {
|
|
|
284
274
|
systemError,
|
|
285
275
|
badArgument,
|
|
286
276
|
makeUnsafe2,
|
|
277
|
+
make7,
|
|
287
278
|
make8,
|
|
288
|
-
make9,
|
|
289
279
|
sliding,
|
|
290
280
|
unbounded2,
|
|
291
281
|
offer,
|
|
@@ -301,13 +291,13 @@ import {
|
|
|
301
291
|
isSink,
|
|
302
292
|
fromChannel,
|
|
303
293
|
drain,
|
|
304
|
-
|
|
294
|
+
make9,
|
|
305
295
|
get3,
|
|
306
296
|
isStream,
|
|
307
297
|
fromChannel2,
|
|
308
298
|
callback,
|
|
309
299
|
empty2,
|
|
310
|
-
|
|
300
|
+
make10,
|
|
311
301
|
suspend,
|
|
312
302
|
fail2,
|
|
313
303
|
fromQueue,
|
|
@@ -333,30 +323,40 @@ import {
|
|
|
333
323
|
mkArrayBuffer,
|
|
334
324
|
toReadableStreamEffect,
|
|
335
325
|
FileSystem,
|
|
336
|
-
|
|
326
|
+
make11,
|
|
337
327
|
FileTypeId,
|
|
338
328
|
WatchBackend,
|
|
339
329
|
Path,
|
|
340
|
-
|
|
330
|
+
make12,
|
|
341
331
|
option,
|
|
342
332
|
String2,
|
|
343
333
|
optionalEnv,
|
|
344
334
|
harnessesUnsupportedInSrt2
|
|
345
|
-
} from "./chunk-
|
|
335
|
+
} from "./chunk-x20t7xy8.js";
|
|
336
|
+
import {
|
|
337
|
+
isDateTime,
|
|
338
|
+
Numeric,
|
|
339
|
+
isWholeNumber,
|
|
340
|
+
guard,
|
|
341
|
+
Id,
|
|
342
|
+
Timestamp,
|
|
343
|
+
ActorType,
|
|
344
|
+
SecretName,
|
|
345
|
+
SecretScope,
|
|
346
|
+
SecretHosts,
|
|
347
|
+
isSecretReference
|
|
348
|
+
} from "./chunk-pxvd8w2v.js";
|
|
346
349
|
import {
|
|
347
|
-
isRedacted,
|
|
348
|
-
make,
|
|
349
|
-
value,
|
|
350
350
|
ExitCode,
|
|
351
351
|
ProcessId,
|
|
352
352
|
makeHandle,
|
|
353
|
-
|
|
353
|
+
make,
|
|
354
354
|
ChildProcessSpawner,
|
|
355
355
|
display,
|
|
356
|
-
|
|
356
|
+
make2,
|
|
357
357
|
parseFdName,
|
|
358
358
|
fdName
|
|
359
|
-
} from "./chunk-
|
|
359
|
+
} from "./chunk-cbf0q15q.js";
|
|
360
360
|
|
|
361
361
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
|
|
362
362
|
var makeEquivalence3 = Tuple;
|
|
@@ -519,7 +519,7 @@ var makeUnsafe6 = (input) => {
|
|
|
519
519
|
var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
|
|
520
520
|
var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
|
|
521
521
|
var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
|
|
522
|
-
var
|
|
522
|
+
var make3 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
|
|
523
523
|
var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
|
|
524
524
|
var nowUnsafe = () => makeUtc(Date.now());
|
|
525
525
|
var toDateUtc = (self) => new Date(self.epochMilliseconds);
|
|
@@ -909,7 +909,7 @@ var toNumber = (b) => {
|
|
|
909
909
|
|
|
910
910
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
|
|
911
911
|
var makeUnsafe = makeUnsafe6;
|
|
912
|
-
var make18 =
|
|
912
|
+
var make18 = make3;
|
|
913
913
|
var now2 = now;
|
|
914
914
|
var nowUnsafe2 = nowUnsafe;
|
|
915
915
|
var toDateUtc2 = toDateUtc;
|
|
@@ -1124,7 +1124,7 @@ var readableToPullUnsafe = (options) => {
|
|
|
1124
1124
|
const readable = options.readable;
|
|
1125
1125
|
const chunkSize = options.chunkSize ?? 4096;
|
|
1126
1126
|
const closeOnDone = options.closeOnDone ?? true;
|
|
1127
|
-
const exit = options.exit ??
|
|
1127
|
+
const exit = options.exit ?? make7(undefined);
|
|
1128
1128
|
const latch = options.latch ?? makeUnsafe2(false);
|
|
1129
1129
|
function onReadable() {
|
|
1130
1130
|
latch.openUnsafe();
|
|
@@ -1688,7 +1688,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1688
1688
|
const sourceStream = unwrap(succeed6(getSourceStream(handles[handles.length - 1], options.from)));
|
|
1689
1689
|
const toOption = options.to ?? "stdin";
|
|
1690
1690
|
if (toOption === "stdin") {
|
|
1691
|
-
handles.push(yield* spawnCommand(
|
|
1691
|
+
handles.push(yield* spawnCommand(make2(command.command, command.args, {
|
|
1692
1692
|
...command.options,
|
|
1693
1693
|
stdin: {
|
|
1694
1694
|
...stdinConfig,
|
|
@@ -1708,7 +1708,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1708
1708
|
type: "input",
|
|
1709
1709
|
stream: sourceStream
|
|
1710
1710
|
};
|
|
1711
|
-
handles.push(yield* spawnCommand(
|
|
1711
|
+
handles.push(yield* spawnCommand(make2(command.command, command.args, {
|
|
1712
1712
|
...command.options,
|
|
1713
1713
|
additionalFds: {
|
|
1714
1714
|
...existingFds,
|
|
@@ -1716,7 +1716,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1716
1716
|
}
|
|
1717
1717
|
})));
|
|
1718
1718
|
} else {
|
|
1719
|
-
handles.push(yield* spawnCommand(
|
|
1719
|
+
handles.push(yield* spawnCommand(make2(command.command, command.args, {
|
|
1720
1720
|
...command.options,
|
|
1721
1721
|
stdin: {
|
|
1722
1722
|
...stdinConfig,
|
|
@@ -1755,7 +1755,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1755
1755
|
}
|
|
1756
1756
|
}
|
|
1757
1757
|
});
|
|
1758
|
-
return
|
|
1758
|
+
return make(spawnCommand);
|
|
1759
1759
|
});
|
|
1760
1760
|
var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
|
|
1761
1761
|
var flattenCommand = (command) => {
|
|
@@ -2241,7 +2241,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
|
|
|
2241
2241
|
resume(fail7(handleBadArgument("writeFile")(err)));
|
|
2242
2242
|
}
|
|
2243
2243
|
});
|
|
2244
|
-
var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) =>
|
|
2244
|
+
var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make11({
|
|
2245
2245
|
access: access2,
|
|
2246
2246
|
chmod: chmod2,
|
|
2247
2247
|
chown: chown2,
|
|
@@ -2301,15 +2301,15 @@ var fileUrlOps = (windows) => ({
|
|
|
2301
2301
|
})
|
|
2302
2302
|
})
|
|
2303
2303
|
});
|
|
2304
|
-
var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2304
|
+
var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
|
|
2305
2305
|
...NodePath.posix,
|
|
2306
2306
|
.../* @__PURE__ */ fileUrlOps(false)
|
|
2307
2307
|
}));
|
|
2308
|
-
var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2308
|
+
var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
|
|
2309
2309
|
...NodePath.win32,
|
|
2310
2310
|
.../* @__PURE__ */ fileUrlOps(true)
|
|
2311
2311
|
}));
|
|
2312
|
-
var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2312
|
+
var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
|
|
2313
2313
|
...NodePath,
|
|
2314
2314
|
.../* @__PURE__ */ fileUrlOps(undefined)
|
|
2315
2315
|
}));
|
|
@@ -2831,12 +2831,12 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
|
2831
2831
|
if (typeof key === "string") {
|
|
2832
2832
|
const k = key.toLowerCase();
|
|
2833
2833
|
if (k in self) {
|
|
2834
|
-
out[k] =
|
|
2834
|
+
out[k] = make16(self[k]);
|
|
2835
2835
|
}
|
|
2836
2836
|
} else {
|
|
2837
2837
|
for (const name in self) {
|
|
2838
2838
|
if (name.search(key) !== -1) {
|
|
2839
|
-
out[name] =
|
|
2839
|
+
out[name] = make16(self[name]);
|
|
2840
2840
|
}
|
|
2841
2841
|
}
|
|
2842
2842
|
}
|
|
@@ -2943,7 +2943,7 @@ var fromInputNested = (input) => {
|
|
|
2943
2943
|
return out;
|
|
2944
2944
|
};
|
|
2945
2945
|
var coerce = (value) => isRedacted(value) ? value : String(value);
|
|
2946
|
-
var Equivalence3 = /* @__PURE__ */
|
|
2946
|
+
var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
|
|
2947
2947
|
var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
|
|
2948
2948
|
var empty4 = /* @__PURE__ */ make23([]);
|
|
2949
2949
|
var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
@@ -2962,7 +2962,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
|
2962
2962
|
var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
|
|
2963
2963
|
var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
2964
2964
|
const patterns = Array.isArray(key) ? key : [key];
|
|
2965
|
-
return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ?
|
|
2965
|
+
return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make16(value) : value]);
|
|
2966
2966
|
});
|
|
2967
2967
|
var isRedactedName2 = isRedactedName;
|
|
2968
2968
|
var redactUrl = (url, redactedNames = currentRedactedNames()) => {
|
|
@@ -3038,7 +3038,7 @@ import * as readline from "readline";
|
|
|
3038
3038
|
var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
|
|
3039
3039
|
const stdin = process.stdin;
|
|
3040
3040
|
const stdout = process.stdout;
|
|
3041
|
-
const lines = yield*
|
|
3041
|
+
const lines = yield* make8();
|
|
3042
3042
|
let inputEnded = stdin.readableEnded;
|
|
3043
3043
|
let readlineActive = false;
|
|
3044
3044
|
const onStdinEnd = () => {
|
|
@@ -3049,7 +3049,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3049
3049
|
};
|
|
3050
3050
|
stdin.once("end", onStdinEnd);
|
|
3051
3051
|
yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
|
|
3052
|
-
const rlRef = yield*
|
|
3052
|
+
const rlRef = yield* make9({
|
|
3053
3053
|
acquire: acquireRelease(sync2(() => {
|
|
3054
3054
|
const rl = readline.createInterface({
|
|
3055
3055
|
input: stdin,
|
|
@@ -3088,7 +3088,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3088
3088
|
if (stdin.isTTY)
|
|
3089
3089
|
stdin.setRawMode(enabled);
|
|
3090
3090
|
});
|
|
3091
|
-
const rawModeRef = yield*
|
|
3091
|
+
const rawModeRef = yield* make9({
|
|
3092
3092
|
acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
|
|
3093
3093
|
idleTimeToLive: "10 millis"
|
|
3094
3094
|
});
|
|
@@ -3109,7 +3109,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3109
3109
|
return queue;
|
|
3110
3110
|
});
|
|
3111
3111
|
const readInput = gen(function* () {
|
|
3112
|
-
const queue = yield*
|
|
3112
|
+
const queue = yield* make8();
|
|
3113
3113
|
const handleKeypress = (s, k) => {
|
|
3114
3114
|
const userInput = {
|
|
3115
3115
|
input: fromUndefinedOr(s),
|
|
@@ -10104,14 +10104,14 @@ function makeWith(method, url, urlParams, hash, headers, body) {
|
|
|
10104
10104
|
return self;
|
|
10105
10105
|
}
|
|
10106
10106
|
var empty6 = /* @__PURE__ */ makeWith("GET", "", empty4, /* @__PURE__ */ none(), empty, empty5);
|
|
10107
|
-
var
|
|
10107
|
+
var make4 = (method) => (url, options) => modify(empty6, {
|
|
10108
10108
|
method,
|
|
10109
10109
|
url,
|
|
10110
10110
|
...options ?? undefined
|
|
10111
10111
|
});
|
|
10112
|
-
var get = /* @__PURE__ */
|
|
10113
|
-
var post = /* @__PURE__ */
|
|
10114
|
-
var put = /* @__PURE__ */
|
|
10112
|
+
var get = /* @__PURE__ */ make4("GET");
|
|
10113
|
+
var post = /* @__PURE__ */ make4("POST");
|
|
10114
|
+
var put = /* @__PURE__ */ make4("PUT");
|
|
10115
10115
|
var modify = /* @__PURE__ */ dual(2, (self, options) => {
|
|
10116
10116
|
let result = self;
|
|
10117
10117
|
if (options.method) {
|
|
@@ -10412,7 +10412,7 @@ var Proto7 = {
|
|
|
10412
10412
|
};
|
|
10413
10413
|
},
|
|
10414
10414
|
.../* @__PURE__ */ Object.fromEntries(/* @__PURE__ */ allShort.map(([fullMethod, method]) => [method, function(url, options) {
|
|
10415
|
-
return this.execute(
|
|
10415
|
+
return this.execute(make4(fullMethod)(url, options));
|
|
10416
10416
|
}]))
|
|
10417
10417
|
};
|
|
10418
10418
|
var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
|
|
@@ -14136,7 +14136,7 @@ var makeProto = (options) => {
|
|
|
14136
14136
|
Rpc.key = `effect/rpc/Rpc/${options._tag}`;
|
|
14137
14137
|
return Rpc;
|
|
14138
14138
|
};
|
|
14139
|
-
var
|
|
14139
|
+
var make5 = (tag, options) => {
|
|
14140
14140
|
const successSchema = options?.success ?? Void;
|
|
14141
14141
|
const errorSchema = options?.error ?? Never;
|
|
14142
14142
|
const defectSchema = options?.defect ?? Defect();
|
|
@@ -14347,7 +14347,7 @@ var RpcGroupProto = {
|
|
|
14347
14347
|
});
|
|
14348
14348
|
},
|
|
14349
14349
|
annotateRpcs(service, value) {
|
|
14350
|
-
return this.annotateRpcsMerge(
|
|
14350
|
+
return this.annotateRpcsMerge(make14(service, value));
|
|
14351
14351
|
},
|
|
14352
14352
|
annotateMerge(context) {
|
|
14353
14353
|
return makeProto2({
|
|
@@ -14370,7 +14370,7 @@ var makeProto2 = (options) => Object.assign(function() {}, RpcGroupProto, {
|
|
|
14370
14370
|
requests: options.requests,
|
|
14371
14371
|
annotations: options.annotations
|
|
14372
14372
|
});
|
|
14373
|
-
var
|
|
14373
|
+
var make6 = (...rpcs) => makeProto2({
|
|
14374
14374
|
requests: new Map(rpcs.map((rpc) => [rpc._tag, rpc])),
|
|
14375
14375
|
annotations: empty3()
|
|
14376
14376
|
});
|
|
@@ -14476,96 +14476,96 @@ var ProgramOutcome = Union([
|
|
|
14476
14476
|
Struct({ status: Literal("failed"), failureSummary: String4 })
|
|
14477
14477
|
]);
|
|
14478
14478
|
|
|
14479
|
-
class RunnerReplicaRpcs extends
|
|
14479
|
+
class RunnerReplicaRpcs extends make6(make5("Claim", {
|
|
14480
14480
|
payload: WorkUnitClaimInput,
|
|
14481
14481
|
success: WorkUnitClaimResult,
|
|
14482
14482
|
error: RunnerRpcError
|
|
14483
|
-
}),
|
|
14483
|
+
}), make5("Heartbeat", {
|
|
14484
14484
|
payload: WorkUnitHeartbeatInput,
|
|
14485
14485
|
success: WorkUnitHeartbeatResult,
|
|
14486
14486
|
error: RunnerRpcError
|
|
14487
|
-
}),
|
|
14487
|
+
}), make5("Complete", {
|
|
14488
14488
|
payload: WorkUnitCompletion,
|
|
14489
14489
|
error: RunnerRpcError
|
|
14490
|
-
}),
|
|
14490
|
+
}), make5("Release", {
|
|
14491
14491
|
payload: WorkUnitReleaseInput,
|
|
14492
14492
|
error: RunnerRpcError
|
|
14493
|
-
}),
|
|
14493
|
+
}), make5("Signals", {
|
|
14494
14494
|
payload: { runnerReplicaId: String4 },
|
|
14495
14495
|
success: RunnerSignal,
|
|
14496
14496
|
error: RunnerRpcError,
|
|
14497
14497
|
stream: true
|
|
14498
|
-
}),
|
|
14498
|
+
}), make5("ReportSteer", {
|
|
14499
14499
|
payload: { workUnitId: String4, messageId: String4, delivered: Boolean2 },
|
|
14500
14500
|
success: Void,
|
|
14501
14501
|
error: RunnerRpcError
|
|
14502
|
-
}),
|
|
14502
|
+
}), make5("AppendTranscript", {
|
|
14503
14503
|
payload: { workUnitId: String4, entries: ArraySchema(TranscriptAppendEntry).check(isMaxLength(100)) },
|
|
14504
14504
|
success: Void,
|
|
14505
14505
|
error: RunnerRpcError
|
|
14506
|
-
}),
|
|
14506
|
+
}), make5("CreateCheckpointFile", {
|
|
14507
14507
|
payload: { lease: ProgramLease, byteSize: Int, sha256: String4 },
|
|
14508
14508
|
success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
|
|
14509
14509
|
error: Union([RunnerRpcError, RunFileRefused])
|
|
14510
|
-
}),
|
|
14510
|
+
}), make5("CheckpointFileParts", {
|
|
14511
14511
|
payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
|
|
14512
14512
|
success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
|
|
14513
14513
|
error: RunnerRpcError
|
|
14514
|
-
}),
|
|
14514
|
+
}), make5("CompleteCheckpointFile", {
|
|
14515
14515
|
payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
|
|
14516
14516
|
success: RunFileRecord,
|
|
14517
14517
|
error: RunnerRpcError
|
|
14518
|
-
}),
|
|
14518
|
+
}), make5("SaveCheckpoint", {
|
|
14519
14519
|
payload: { lease: ProgramLease, checkpoint: StepCheckpoint },
|
|
14520
14520
|
success: Void,
|
|
14521
14521
|
error: RunnerRpcError
|
|
14522
|
-
}),
|
|
14522
|
+
}), make5("ResumeCheckpoint", {
|
|
14523
14523
|
payload: { lease: ProgramLease },
|
|
14524
14524
|
success: UndefinedOr(ResumedCheckpoint),
|
|
14525
14525
|
error: RunnerRpcError
|
|
14526
|
-
}),
|
|
14526
|
+
}), make5("SettledCheckpoints", {
|
|
14527
14527
|
success: ArraySchema(Struct({
|
|
14528
14528
|
stepAttemptId: String4,
|
|
14529
14529
|
ref: optionalKey(String4),
|
|
14530
14530
|
repoBinding: optionalKey(WorkUnitRepoBinding)
|
|
14531
14531
|
})),
|
|
14532
14532
|
error: RunnerRpcError
|
|
14533
|
-
}),
|
|
14533
|
+
}), make5("ForgetCheckpoints", {
|
|
14534
14534
|
payload: { stepAttemptIds: ArraySchema(String4) },
|
|
14535
14535
|
success: Void,
|
|
14536
14536
|
error: RunnerRpcError
|
|
14537
|
-
}),
|
|
14537
|
+
}), make5("GitCredential", {
|
|
14538
14538
|
payload: { repoBindingId: String4 },
|
|
14539
14539
|
success: UndefinedOr(Struct({ username: String4, password: String4 })),
|
|
14540
14540
|
error: RunnerRpcError
|
|
14541
|
-
}),
|
|
14541
|
+
}), make5("Bundle", {
|
|
14542
14542
|
payload: { digest: String4 },
|
|
14543
14543
|
success: Struct({ bundle: String4 }),
|
|
14544
14544
|
error: RunnerRpcError
|
|
14545
|
-
}),
|
|
14545
|
+
}), make5("SettledRuns", {
|
|
14546
14546
|
payload: { runIds: ArraySchema(String4) },
|
|
14547
14547
|
success: ArraySchema(String4),
|
|
14548
14548
|
error: RunnerRpcError
|
|
14549
|
-
}),
|
|
14549
|
+
}), make5("KnownEvidence", {
|
|
14550
14550
|
payload: { lease: ProgramLease, trees: ArraySchema(String4) },
|
|
14551
14551
|
success: ArraySchema(Struct({ tree: String4, name: String4, command: String4 })),
|
|
14552
14552
|
error: RunnerRpcError
|
|
14553
14553
|
})).middleware(RunnerAuthentication) {
|
|
14554
14554
|
}
|
|
14555
14555
|
|
|
14556
|
-
class RunnerJournalRpcs extends
|
|
14556
|
+
class RunnerJournalRpcs extends make6(make5("RecordActivity", {
|
|
14557
14557
|
payload: { lease: ProgramLease, name: String4, attempt: Int, exit: Json },
|
|
14558
14558
|
error: RunnerRpcError
|
|
14559
|
-
}),
|
|
14559
|
+
}), make5("DeferredDone", {
|
|
14560
14560
|
payload: { lease: ProgramLease, name: String4, exit: Json },
|
|
14561
14561
|
error: RunnerRpcError
|
|
14562
|
-
}),
|
|
14562
|
+
}), make5("ScheduleClock", {
|
|
14563
14563
|
payload: { lease: ProgramLease, name: String4, deferredName: String4, durationMillis: Int },
|
|
14564
14564
|
error: RunnerRpcError
|
|
14565
|
-
}),
|
|
14565
|
+
}), make5("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make5("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
|
|
14566
14566
|
}
|
|
14567
14567
|
|
|
14568
|
-
class RunnerCapabilityRpcs extends
|
|
14568
|
+
class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
14569
14569
|
payload: {
|
|
14570
14570
|
lease: ProgramLease,
|
|
14571
14571
|
step: String4,
|
|
@@ -14585,7 +14585,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14585
14585
|
},
|
|
14586
14586
|
success: Struct({ questionId: String4 }),
|
|
14587
14587
|
error: RunnerRpcError
|
|
14588
|
-
}),
|
|
14588
|
+
}), make5("StartAgentStep", {
|
|
14589
14589
|
payload: {
|
|
14590
14590
|
lease: ProgramLease,
|
|
14591
14591
|
step: String4,
|
|
@@ -14601,7 +14601,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14601
14601
|
},
|
|
14602
14602
|
success: Struct({ stepAttemptId: String4 }),
|
|
14603
14603
|
error: RunnerRpcError
|
|
14604
|
-
}),
|
|
14604
|
+
}), make5("StartVerification", {
|
|
14605
14605
|
payload: {
|
|
14606
14606
|
lease: ProgramLease,
|
|
14607
14607
|
step: String4,
|
|
@@ -14622,7 +14622,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14622
14622
|
},
|
|
14623
14623
|
success: Struct({ verificationId: String4 }),
|
|
14624
14624
|
error: RunnerRpcError
|
|
14625
|
-
}),
|
|
14625
|
+
}), make5("AwaitEvent", {
|
|
14626
14626
|
payload: {
|
|
14627
14627
|
lease: ProgramLease,
|
|
14628
14628
|
step: String4,
|
|
@@ -14638,7 +14638,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14638
14638
|
})))
|
|
14639
14639
|
},
|
|
14640
14640
|
error: RunnerRpcError
|
|
14641
|
-
}),
|
|
14641
|
+
}), make5("ClaimResource", {
|
|
14642
14642
|
payload: {
|
|
14643
14643
|
lease: ProgramLease,
|
|
14644
14644
|
step: String4,
|
|
@@ -14647,7 +14647,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14647
14647
|
action: Literals(["claim", "take_over", "let_go"])
|
|
14648
14648
|
},
|
|
14649
14649
|
error: RunnerRpcError
|
|
14650
|
-
}),
|
|
14650
|
+
}), make5("AdmitChild", {
|
|
14651
14651
|
payload: {
|
|
14652
14652
|
lease: ProgramLease,
|
|
14653
14653
|
step: String4,
|
|
@@ -14658,7 +14658,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14658
14658
|
},
|
|
14659
14659
|
success: Struct({ runId: String4 }),
|
|
14660
14660
|
error: RunnerRpcError
|
|
14661
|
-
}),
|
|
14661
|
+
}), make5("StoreArtifact", {
|
|
14662
14662
|
payload: {
|
|
14663
14663
|
lease: ProgramLease,
|
|
14664
14664
|
step: String4,
|
|
@@ -14670,7 +14670,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14670
14670
|
},
|
|
14671
14671
|
success: Struct({ artifactId: String4 }),
|
|
14672
14672
|
error: RunnerRpcError
|
|
14673
|
-
}),
|
|
14673
|
+
}), make5("RecordNote", {
|
|
14674
14674
|
payload: {
|
|
14675
14675
|
lease: ProgramLease,
|
|
14676
14676
|
step: String4,
|
|
@@ -14679,7 +14679,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14679
14679
|
kind: optional(Literals(["note", "blocker"]))
|
|
14680
14680
|
},
|
|
14681
14681
|
error: RunnerRpcError
|
|
14682
|
-
}),
|
|
14682
|
+
}), make5("PerformHostEffect", {
|
|
14683
14683
|
payload: {
|
|
14684
14684
|
lease: ProgramLease,
|
|
14685
14685
|
step: String4,
|
|
@@ -14708,7 +14708,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14708
14708
|
},
|
|
14709
14709
|
success: UndefinedOr(Struct({ id: String4, number: String4, url: String4 })),
|
|
14710
14710
|
error: RunnerRpcError
|
|
14711
|
-
}),
|
|
14711
|
+
}), make5("AlertTask", {
|
|
14712
14712
|
payload: {
|
|
14713
14713
|
lease: ProgramLease,
|
|
14714
14714
|
step: String4,
|
|
@@ -14725,7 +14725,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14725
14725
|
joined: optionalKey(Struct({ kind: Literals(["run", "recent"]), runId: String4 }))
|
|
14726
14726
|
}),
|
|
14727
14727
|
error: RunnerRpcError
|
|
14728
|
-
}),
|
|
14728
|
+
}), make5("ReadTranscripts", {
|
|
14729
14729
|
payload: {
|
|
14730
14730
|
lease: ProgramLease,
|
|
14731
14731
|
step: String4,
|
|
@@ -14760,7 +14760,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14760
14760
|
})))
|
|
14761
14761
|
}),
|
|
14762
14762
|
error: RunnerRpcError
|
|
14763
|
-
}),
|
|
14763
|
+
}), make5("PipelineStatus", {
|
|
14764
14764
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
|
|
14765
14765
|
success: Struct({
|
|
14766
14766
|
head: String4,
|
|
@@ -14794,11 +14794,11 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14794
14794
|
}))
|
|
14795
14795
|
}),
|
|
14796
14796
|
error: RunnerRpcError
|
|
14797
|
-
}),
|
|
14797
|
+
}), make5("ReportPipeline", {
|
|
14798
14798
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4, verification: String4 },
|
|
14799
14799
|
success: Struct({ head: String4, status: Literals(["success", "failed"]) }),
|
|
14800
14800
|
error: RunnerRpcError
|
|
14801
|
-
}),
|
|
14801
|
+
}), make5("ReviewThreads", {
|
|
14802
14802
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
|
|
14803
14803
|
success: Struct({
|
|
14804
14804
|
threads: ArraySchema(Struct({
|
|
@@ -14810,7 +14810,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14810
14810
|
}))
|
|
14811
14811
|
}),
|
|
14812
14812
|
error: RunnerRpcError
|
|
14813
|
-
}),
|
|
14813
|
+
}), make5("OpenChangeRequests", {
|
|
14814
14814
|
payload: { lease: ProgramLease, step: String4, authors: NonEmptyArray(String4) },
|
|
14815
14815
|
success: Struct({
|
|
14816
14816
|
changeRequests: ArraySchema(Struct({
|
|
@@ -14824,7 +14824,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14824
14824
|
}))
|
|
14825
14825
|
}),
|
|
14826
14826
|
error: RunnerRpcError
|
|
14827
|
-
}),
|
|
14827
|
+
}), make5("OwnChangeRequests", {
|
|
14828
14828
|
payload: { lease: ProgramLease, step: String4 },
|
|
14829
14829
|
success: Struct({
|
|
14830
14830
|
changeRequests: ArraySchema(Struct({
|
|
@@ -14837,7 +14837,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14837
14837
|
}))
|
|
14838
14838
|
}),
|
|
14839
14839
|
error: RunnerRpcError
|
|
14840
|
-
}),
|
|
14840
|
+
}), make5("Propose", {
|
|
14841
14841
|
payload: {
|
|
14842
14842
|
lease: ProgramLease,
|
|
14843
14843
|
step: String4,
|
|
@@ -14866,7 +14866,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14866
14866
|
task: optionalKey(Struct({ id: String4, active: Boolean2 }))
|
|
14867
14867
|
}),
|
|
14868
14868
|
error: RunnerRpcError
|
|
14869
|
-
}),
|
|
14869
|
+
}), make5("ReadProject", {
|
|
14870
14870
|
payload: { lease: ProgramLease, step: String4, projectId: String4 },
|
|
14871
14871
|
success: Struct({
|
|
14872
14872
|
project: Struct({ id: String4, name: String4 }),
|
|
@@ -14889,7 +14889,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14889
14889
|
taskChanges: ArraySchema(Struct({ taskKey: String4, title: String4, change: String4, at: String4 }))
|
|
14890
14890
|
}),
|
|
14891
14891
|
error: RunnerRpcError
|
|
14892
|
-
}),
|
|
14892
|
+
}), make5("DraftUpdate", {
|
|
14893
14893
|
payload: {
|
|
14894
14894
|
lease: ProgramLease,
|
|
14895
14895
|
step: String4,
|
|
@@ -14904,7 +14904,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14904
14904
|
},
|
|
14905
14905
|
success: Struct({ id: String4 }),
|
|
14906
14906
|
error: RunnerRpcError
|
|
14907
|
-
}),
|
|
14907
|
+
}), make5("CreatePlanTasks", {
|
|
14908
14908
|
payload: {
|
|
14909
14909
|
lease: ProgramLease,
|
|
14910
14910
|
projectId: optionalKey(String4),
|
|
@@ -14925,15 +14925,15 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14925
14925
|
},
|
|
14926
14926
|
success: ArraySchema(Struct({ key: String4, taskId: String4 })),
|
|
14927
14927
|
error: RunnerRpcError
|
|
14928
|
-
}),
|
|
14928
|
+
}), make5("IntegrationBranch", {
|
|
14929
14929
|
payload: { lease: ProgramLease, repoBindingId: optionalKey(String4) },
|
|
14930
14930
|
success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
|
|
14931
14931
|
error: RunnerRpcError
|
|
14932
|
-
}),
|
|
14932
|
+
}), make5("DeliveryBase", {
|
|
14933
14933
|
payload: { lease: ProgramLease },
|
|
14934
14934
|
success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
|
|
14935
14935
|
error: RunnerRpcError
|
|
14936
|
-
}),
|
|
14936
|
+
}), make5("MergeChangeRequest", {
|
|
14937
14937
|
payload: {
|
|
14938
14938
|
lease: ProgramLease,
|
|
14939
14939
|
step: String4,
|
|
@@ -14951,7 +14951,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14951
14951
|
Struct({ status: Literal("moved"), head: String4 })
|
|
14952
14952
|
]),
|
|
14953
14953
|
error: RunnerRpcError
|
|
14954
|
-
}),
|
|
14954
|
+
}), make5("ApproveChangeRequest", {
|
|
14955
14955
|
payload: {
|
|
14956
14956
|
lease: ProgramLease,
|
|
14957
14957
|
step: String4,
|
|
@@ -14967,7 +14967,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14967
14967
|
Struct({ approved: Literal(false), reason: String4 })
|
|
14968
14968
|
]),
|
|
14969
14969
|
error: RunnerRpcError
|
|
14970
|
-
}),
|
|
14970
|
+
}), make5("CloseChangeRequest", {
|
|
14971
14971
|
payload: {
|
|
14972
14972
|
lease: ProgramLease,
|
|
14973
14973
|
step: String4,
|
|
@@ -14977,7 +14977,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14977
14977
|
},
|
|
14978
14978
|
success: Struct({ closed: Boolean2, head: optionalKey(String4) }),
|
|
14979
14979
|
error: RunnerRpcError
|
|
14980
|
-
}),
|
|
14980
|
+
}), make5("RerunPipeline", {
|
|
14981
14981
|
payload: {
|
|
14982
14982
|
lease: ProgramLease,
|
|
14983
14983
|
step: String4,
|
|
@@ -14987,7 +14987,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14987
14987
|
},
|
|
14988
14988
|
success: Struct({ head: String4, pipelines: Int }),
|
|
14989
14989
|
error: RunnerRpcError
|
|
14990
|
-
}),
|
|
14990
|
+
}), make5("PublishRelease", {
|
|
14991
14991
|
payload: {
|
|
14992
14992
|
lease: ProgramLease,
|
|
14993
14993
|
step: String4,
|
|
@@ -14999,14 +14999,14 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14999
14999
|
},
|
|
15000
15000
|
success: Struct({ tag: String4, revision: String4, url: String4 }),
|
|
15001
15001
|
error: RunnerRpcError
|
|
15002
|
-
}),
|
|
15002
|
+
}), make5("ProgramSecrets", {
|
|
15003
15003
|
payload: { lease: ProgramLease },
|
|
15004
15004
|
success: Record(String4, String4),
|
|
15005
15005
|
error: RunnerRpcError
|
|
15006
15006
|
})).middleware(RunnerAuthentication) {
|
|
15007
15007
|
}
|
|
15008
15008
|
|
|
15009
|
-
class RunnerRunFileRpcs extends
|
|
15009
|
+
class RunnerRunFileRpcs extends make6(make5("CreateRunFile", {
|
|
15010
15010
|
payload: {
|
|
15011
15011
|
lease: ProgramLease,
|
|
15012
15012
|
step: String4,
|
|
@@ -15018,11 +15018,11 @@ class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
|
|
|
15018
15018
|
},
|
|
15019
15019
|
success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
|
|
15020
15020
|
error: Union([RunnerRpcError, RunFileRefused])
|
|
15021
|
-
}),
|
|
15021
|
+
}), make5("RunFileParts", {
|
|
15022
15022
|
payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
|
|
15023
15023
|
success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
|
|
15024
15024
|
error: RunnerRpcError
|
|
15025
|
-
}),
|
|
15025
|
+
}), make5("CompleteRunFile", {
|
|
15026
15026
|
payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
|
|
15027
15027
|
success: RunFileRecord,
|
|
15028
15028
|
error: RunnerRpcError
|
|
@@ -15111,7 +15111,7 @@ function toStoredSession(token, existingRefreshToken) {
|
|
|
15111
15111
|
}
|
|
15112
15112
|
function startLoopbackServer(input) {
|
|
15113
15113
|
return gen(function* () {
|
|
15114
|
-
const code = yield*
|
|
15114
|
+
const code = yield* make15();
|
|
15115
15115
|
const context2 = yield* context();
|
|
15116
15116
|
const runSyncExit = runSyncExitWith(context2);
|
|
15117
15117
|
const server = yield* acquireRelease(sync2(() => Bun.serve({
|
|
@@ -15659,7 +15659,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
15659
15659
|
let lastId = 0;
|
|
15660
15660
|
let lost = false;
|
|
15661
15661
|
const notifications = yield* unbounded2();
|
|
15662
|
-
const ended = yield*
|
|
15662
|
+
const ended = yield* make15();
|
|
15663
15663
|
const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
|
|
15664
15664
|
onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
|
|
15665
15665
|
onNone: () => void_3,
|
|
@@ -15686,7 +15686,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
15686
15686
|
if (lost)
|
|
15687
15687
|
return yield* new HerdrCoreConnectionLost2({ method });
|
|
15688
15688
|
const id = ++lastId;
|
|
15689
|
-
const deferred = yield*
|
|
15689
|
+
const deferred = yield* make15();
|
|
15690
15690
|
pending.set(id, { method, deferred });
|
|
15691
15691
|
yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
|
|
15692
15692
|
return yield* _await(deferred);
|
|
@@ -15760,14 +15760,14 @@ var herdrCoreOver = (transport) => ({
|
|
|
15760
15760
|
return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
|
|
15761
15761
|
};
|
|
15762
15762
|
const snapshot = { type: "snapshot", terminals: subscribed.terminals };
|
|
15763
|
-
return concat(
|
|
15763
|
+
return concat(make10(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
|
|
15764
15764
|
}))
|
|
15765
15765
|
});
|
|
15766
15766
|
var spawnedTransport = (env) => gen(function* () {
|
|
15767
15767
|
const spawner = yield* ChildProcessSpawner;
|
|
15768
15768
|
const input = yield* unbounded2();
|
|
15769
15769
|
const encoder = new TextEncoder;
|
|
15770
|
-
const handle = yield* spawner.spawn(
|
|
15770
|
+
const handle = yield* spawner.spawn(make2("herdr-core", ["connect"], {
|
|
15771
15771
|
extendEnv: false,
|
|
15772
15772
|
env,
|
|
15773
15773
|
stdin: fromQueue(input),
|
|
@@ -15798,7 +15798,7 @@ var updateHerdrCore2 = (options) => gen(function* () {
|
|
|
15798
15798
|
const spawner = yield* ChildProcessSpawner;
|
|
15799
15799
|
const env = coreEnv(options);
|
|
15800
15800
|
const run = (args) => gen(function* () {
|
|
15801
|
-
const handle = yield* spawner.spawn(
|
|
15801
|
+
const handle = yield* spawner.spawn(make2("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
|
|
15802
15802
|
const [stdout, stderr, exitCode] = yield* all3([
|
|
15803
15803
|
mkString(decodeText(handle.stdout)),
|
|
15804
15804
|
mkString(decodeText(handle.stderr)),
|
|
@@ -15824,7 +15824,7 @@ class CommandFailed2 extends TaggedError("CommandFailed") {
|
|
|
15824
15824
|
}
|
|
15825
15825
|
var runCommand2 = (command, args, options = {}) => gen(function* () {
|
|
15826
15826
|
const spawner = yield* ChildProcessSpawner;
|
|
15827
|
-
const handle = yield* spawner.spawn(
|
|
15827
|
+
const handle = yield* spawner.spawn(make2(command, args, {
|
|
15828
15828
|
stdin: "ignore",
|
|
15829
15829
|
...options.cwd === undefined ? undefined : { cwd: options.cwd },
|
|
15830
15830
|
...options.env === undefined ? undefined : { extendEnv: true, env: options.env }
|
|
@@ -15850,8 +15850,8 @@ var shellOutputTailChars2 = 64 * 1024;
|
|
|
15850
15850
|
var runProcess2 = (argv, options) => gen(function* () {
|
|
15851
15851
|
const spawner = yield* ChildProcessSpawner;
|
|
15852
15852
|
const [command, ...args] = argv;
|
|
15853
|
-
const handle = yield* spawner.spawn(
|
|
15854
|
-
stdin: options.stdin === undefined ? "ignore" :
|
|
15853
|
+
const handle = yield* spawner.spawn(make2(command, args, {
|
|
15854
|
+
stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
|
|
15855
15855
|
...options.cwd === undefined ? undefined : { cwd: options.cwd },
|
|
15856
15856
|
env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
|
|
15857
15857
|
}));
|
|
@@ -16283,4 +16283,4 @@ function checkServices(declaration) {
|
|
|
16283
16283
|
return isSome(decoded) ? [...new Set(decoded.value.services)] : undefined;
|
|
16284
16284
|
}
|
|
16285
16285
|
|
|
16286
|
-
export { Clock, currentTimeMillis, WebCrypto, SecureRandom, layerWebCrypto, makeUnsafe, formatIso, empty, fromInput, merge, runMain, layer, layer2, Stdio, Terminal, layer3, error, log, toDate, parseDate, toIso, currentDate, wallClockMillis, waitingOnWords, queueWords, scanDurableSurface, redactResponseSurface, redactCredentials, redactedOutputTail, SafeJson, ReleaseChannels, DefaultReleaseChannel, newerKitmanVersion, releaseChannelOffers, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, tokensSpent, tokenCountWords, reportedModelName, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, RunWaitUntils, isTestReportName, failedTestOfLine, 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,
|
|
16286
|
+
export { Clock, currentTimeMillis, WebCrypto, SecureRandom, layerWebCrypto, makeUnsafe, formatIso, empty, fromInput, merge, runMain, layer, layer2, Stdio, Terminal, layer3, error, log, toDate, parseDate, toIso, currentDate, wallClockMillis, waitingOnWords, queueWords, scanDurableSurface, redactResponseSurface, redactCredentials, redactedOutputTail, SafeJson, ReleaseChannels, DefaultReleaseChannel, newerKitmanVersion, releaseChannelOffers, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, tokensSpent, tokenCountWords, reportedModelName, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, RunWaitUntils, isTestReportName, failedTestOfLine, 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, stepFallbackWords, KitName, KitDigest, defaultKitName, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, runnerReleaseChannelPath, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, removeAgentCredential, normalizeApiUrl, isStoredAgentCredential, isStreamSchema, getStreamSchemas, make5, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make6, Service, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, RunSettled, UpdateAvailable, RunnerReplicaRpcs, RunnerRunFileRpcs, ProgramRpcs, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, setupMcpAgentCredential, generateAgentKeyPair, HERDR_CORE_GENERATION2, HERDR_CORE_INSTALL_COMMAND2, HerdrCoreMissing2, HerdrCoreIncompatible2, HerdrCoreConnectionLost2, HerdrCoreRpcError2, HerdrCoreUpdateFailed2, HerdrCore2, herdrCoreLayer2, herdrCoreTransportLayer2, updateHerdrCore2, CommandFailed2, runCommand2, withoutPreloads2, shellOutputTailChars2, runProcess2, CommandRunner2, runShell2, detectHarnesses2, kitHarnesses, isKitHarness, instructionsStart, instructionsEnd, harnessNames, renderMcpServer, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices };
|