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