@kitman-sh/cli 0.13.5 → 0.13.7
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-txf9spw3.js → chunk-1nxcn08k.js} +5 -5
- package/dist/{chunk-dgeyx2fa.js → chunk-22z1yemd.js} +68 -48
- package/dist/{chunk-gq7y5v3e.js → chunk-24h0y27w.js} +1 -1
- package/dist/{chunk-cvzyx4wy.js → chunk-4bgj3b5r.js} +11 -8
- package/dist/{chunk-5zth85pj.js → chunk-4crf5vhd.js} +2 -2
- package/dist/{chunk-yfn0hs5r.js → chunk-4x3zm541.js} +112 -117
- package/dist/{chunk-tkhxmk5r.js → chunk-8v0t5kzg.js} +1 -1
- package/dist/{chunk-scj257qb.js → chunk-9g8tc40f.js} +12 -12
- package/dist/{chunk-kymmwg71.js → chunk-bbks1scp.js} +21 -21
- package/dist/{chunk-vg39q6ac.js → chunk-bs5bh8ys.js} +18 -18
- package/dist/{chunk-yqdmhwpd.js → chunk-byg71zra.js} +10 -10
- package/dist/{chunk-y1krmnbv.js → chunk-ggmwpwhf.js} +2 -2
- package/dist/{chunk-jmhqrt90.js → chunk-jbjz7b6n.js} +61 -61
- package/dist/{chunk-5zhh41gb.js → chunk-kk32jckf.js} +4 -4
- package/dist/{chunk-dpfxvmh3.js → chunk-m079pjdy.js} +3 -3
- package/dist/{chunk-rvqsm1w7.js → chunk-m406nanz.js} +6 -6
- package/dist/{chunk-gy9rf14f.js → chunk-mmd7mjv0.js} +3 -3
- package/dist/{chunk-cbpb2rww.js → chunk-mtdz4k32.js} +10 -10
- package/dist/{chunk-q5w3v4k1.js → chunk-pxvd8w2v.js} +1 -1
- package/dist/{chunk-pn9atvw8.js → chunk-t37qzgmb.js} +4 -4
- package/dist/{chunk-0h49y8gf.js → chunk-t82w7459.js} +26 -17
- package/dist/{chunk-mtkstrh3.js → chunk-vxfajzpz.js} +14 -60
- package/dist/{chunk-z0a98xqg.js → chunk-x44re8th.js} +7 -7
- package/dist/{chunk-0yj73sqp.js → chunk-xt97vb58.js} +110 -87
- package/dist/{chunk-zw3gf6r5.js → chunk-zgraq2y3.js} +70 -28
- 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,17 +264,18 @@ 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,
|
|
271
|
+
toNumber,
|
|
268
272
|
bytes,
|
|
269
273
|
BadArgument,
|
|
270
274
|
systemError,
|
|
271
275
|
badArgument,
|
|
272
276
|
makeUnsafe2,
|
|
277
|
+
make7,
|
|
273
278
|
make8,
|
|
274
|
-
make9,
|
|
275
279
|
sliding,
|
|
276
280
|
unbounded2,
|
|
277
281
|
offer,
|
|
@@ -287,13 +291,13 @@ import {
|
|
|
287
291
|
isSink,
|
|
288
292
|
fromChannel,
|
|
289
293
|
drain,
|
|
290
|
-
|
|
294
|
+
make9,
|
|
291
295
|
get3,
|
|
292
296
|
isStream,
|
|
293
297
|
fromChannel2,
|
|
294
298
|
callback,
|
|
295
299
|
empty2,
|
|
296
|
-
|
|
300
|
+
make10,
|
|
297
301
|
suspend,
|
|
298
302
|
fail2,
|
|
299
303
|
fromQueue,
|
|
@@ -319,16 +323,16 @@ import {
|
|
|
319
323
|
mkArrayBuffer,
|
|
320
324
|
toReadableStreamEffect,
|
|
321
325
|
FileSystem,
|
|
322
|
-
|
|
326
|
+
make11,
|
|
323
327
|
FileTypeId,
|
|
324
328
|
WatchBackend,
|
|
325
329
|
Path,
|
|
326
|
-
|
|
330
|
+
make12,
|
|
327
331
|
option,
|
|
328
332
|
String2,
|
|
329
333
|
optionalEnv,
|
|
330
334
|
harnessesUnsupportedInSrt2
|
|
331
|
-
} from "./chunk-
|
|
335
|
+
} from "./chunk-t82w7459.js";
|
|
332
336
|
import {
|
|
333
337
|
isDateTime,
|
|
334
338
|
Numeric,
|
|
@@ -341,22 +345,18 @@ import {
|
|
|
341
345
|
SecretScope,
|
|
342
346
|
SecretHosts,
|
|
343
347
|
isSecretReference
|
|
344
|
-
} from "./chunk-
|
|
348
|
+
} from "./chunk-pxvd8w2v.js";
|
|
345
349
|
import {
|
|
346
|
-
isRedacted,
|
|
347
|
-
make,
|
|
348
|
-
value,
|
|
349
350
|
ExitCode,
|
|
350
351
|
ProcessId,
|
|
351
352
|
makeHandle,
|
|
352
|
-
|
|
353
|
+
make,
|
|
353
354
|
ChildProcessSpawner,
|
|
354
355
|
display,
|
|
355
|
-
|
|
356
|
+
make2,
|
|
356
357
|
parseFdName,
|
|
357
358
|
fdName
|
|
358
|
-
} from "./chunk-
|
|
359
|
-
|
|
359
|
+
} from "./chunk-vxfajzpz.js";
|
|
360
360
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
|
|
361
361
|
var makeEquivalence3 = Tuple;
|
|
362
362
|
|
|
@@ -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);
|
|
@@ -897,18 +897,9 @@ var runMain2 = /* @__PURE__ */ makeRunMain(({
|
|
|
897
897
|
// node_modules/.bun/@effect+platform-bun@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-bun/dist/BunRuntime.js
|
|
898
898
|
var runMain = runMain2;
|
|
899
899
|
|
|
900
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
|
|
901
|
-
var BigInt2 = globalThis.BigInt;
|
|
902
|
-
var toNumber = (b) => {
|
|
903
|
-
if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
|
|
904
|
-
return none();
|
|
905
|
-
}
|
|
906
|
-
return some(Number(b));
|
|
907
|
-
};
|
|
908
|
-
|
|
909
900
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
|
|
910
901
|
var makeUnsafe = makeUnsafe6;
|
|
911
|
-
var make18 =
|
|
902
|
+
var make18 = make3;
|
|
912
903
|
var now2 = now;
|
|
913
904
|
var nowUnsafe2 = nowUnsafe;
|
|
914
905
|
var toDateUtc2 = toDateUtc;
|
|
@@ -1123,7 +1114,7 @@ var readableToPullUnsafe = (options) => {
|
|
|
1123
1114
|
const readable = options.readable;
|
|
1124
1115
|
const chunkSize = options.chunkSize ?? 4096;
|
|
1125
1116
|
const closeOnDone = options.closeOnDone ?? true;
|
|
1126
|
-
const exit = options.exit ??
|
|
1117
|
+
const exit = options.exit ?? make7(undefined);
|
|
1127
1118
|
const latch = options.latch ?? makeUnsafe2(false);
|
|
1128
1119
|
function onReadable() {
|
|
1129
1120
|
latch.openUnsafe();
|
|
@@ -1687,7 +1678,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1687
1678
|
const sourceStream = unwrap(succeed6(getSourceStream(handles[handles.length - 1], options.from)));
|
|
1688
1679
|
const toOption = options.to ?? "stdin";
|
|
1689
1680
|
if (toOption === "stdin") {
|
|
1690
|
-
handles.push(yield* spawnCommand(
|
|
1681
|
+
handles.push(yield* spawnCommand(make2(command.command, command.args, {
|
|
1691
1682
|
...command.options,
|
|
1692
1683
|
stdin: {
|
|
1693
1684
|
...stdinConfig,
|
|
@@ -1707,7 +1698,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1707
1698
|
type: "input",
|
|
1708
1699
|
stream: sourceStream
|
|
1709
1700
|
};
|
|
1710
|
-
handles.push(yield* spawnCommand(
|
|
1701
|
+
handles.push(yield* spawnCommand(make2(command.command, command.args, {
|
|
1711
1702
|
...command.options,
|
|
1712
1703
|
additionalFds: {
|
|
1713
1704
|
...existingFds,
|
|
@@ -1715,7 +1706,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1715
1706
|
}
|
|
1716
1707
|
})));
|
|
1717
1708
|
} else {
|
|
1718
|
-
handles.push(yield* spawnCommand(
|
|
1709
|
+
handles.push(yield* spawnCommand(make2(command.command, command.args, {
|
|
1719
1710
|
...command.options,
|
|
1720
1711
|
stdin: {
|
|
1721
1712
|
...stdinConfig,
|
|
@@ -1754,7 +1745,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1754
1745
|
}
|
|
1755
1746
|
}
|
|
1756
1747
|
});
|
|
1757
|
-
return
|
|
1748
|
+
return make(spawnCommand);
|
|
1758
1749
|
});
|
|
1759
1750
|
var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
|
|
1760
1751
|
var flattenCommand = (command) => {
|
|
@@ -2240,7 +2231,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
|
|
|
2240
2231
|
resume(fail7(handleBadArgument("writeFile")(err)));
|
|
2241
2232
|
}
|
|
2242
2233
|
});
|
|
2243
|
-
var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) =>
|
|
2234
|
+
var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make11({
|
|
2244
2235
|
access: access2,
|
|
2245
2236
|
chmod: chmod2,
|
|
2246
2237
|
chown: chown2,
|
|
@@ -2300,15 +2291,15 @@ var fileUrlOps = (windows) => ({
|
|
|
2300
2291
|
})
|
|
2301
2292
|
})
|
|
2302
2293
|
});
|
|
2303
|
-
var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2294
|
+
var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
|
|
2304
2295
|
...NodePath.posix,
|
|
2305
2296
|
.../* @__PURE__ */ fileUrlOps(false)
|
|
2306
2297
|
}));
|
|
2307
|
-
var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2298
|
+
var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
|
|
2308
2299
|
...NodePath.win32,
|
|
2309
2300
|
.../* @__PURE__ */ fileUrlOps(true)
|
|
2310
2301
|
}));
|
|
2311
|
-
var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2302
|
+
var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
|
|
2312
2303
|
...NodePath,
|
|
2313
2304
|
.../* @__PURE__ */ fileUrlOps(undefined)
|
|
2314
2305
|
}));
|
|
@@ -2830,12 +2821,12 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
|
2830
2821
|
if (typeof key === "string") {
|
|
2831
2822
|
const k = key.toLowerCase();
|
|
2832
2823
|
if (k in self) {
|
|
2833
|
-
out[k] =
|
|
2824
|
+
out[k] = make16(self[k]);
|
|
2834
2825
|
}
|
|
2835
2826
|
} else {
|
|
2836
2827
|
for (const name in self) {
|
|
2837
2828
|
if (name.search(key) !== -1) {
|
|
2838
|
-
out[name] =
|
|
2829
|
+
out[name] = make16(self[name]);
|
|
2839
2830
|
}
|
|
2840
2831
|
}
|
|
2841
2832
|
}
|
|
@@ -2942,7 +2933,7 @@ var fromInputNested = (input) => {
|
|
|
2942
2933
|
return out;
|
|
2943
2934
|
};
|
|
2944
2935
|
var coerce = (value) => isRedacted(value) ? value : String(value);
|
|
2945
|
-
var Equivalence3 = /* @__PURE__ */
|
|
2936
|
+
var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
|
|
2946
2937
|
var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
|
|
2947
2938
|
var empty4 = /* @__PURE__ */ make23([]);
|
|
2948
2939
|
var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
@@ -2961,7 +2952,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
|
2961
2952
|
var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
|
|
2962
2953
|
var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
2963
2954
|
const patterns = Array.isArray(key) ? key : [key];
|
|
2964
|
-
return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ?
|
|
2955
|
+
return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make16(value) : value]);
|
|
2965
2956
|
});
|
|
2966
2957
|
var isRedactedName2 = isRedactedName;
|
|
2967
2958
|
var redactUrl = (url, redactedNames = currentRedactedNames()) => {
|
|
@@ -3037,7 +3028,7 @@ import * as readline from "readline";
|
|
|
3037
3028
|
var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
|
|
3038
3029
|
const stdin = process.stdin;
|
|
3039
3030
|
const stdout = process.stdout;
|
|
3040
|
-
const lines = yield*
|
|
3031
|
+
const lines = yield* make8();
|
|
3041
3032
|
let inputEnded = stdin.readableEnded;
|
|
3042
3033
|
let readlineActive = false;
|
|
3043
3034
|
const onStdinEnd = () => {
|
|
@@ -3048,7 +3039,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3048
3039
|
};
|
|
3049
3040
|
stdin.once("end", onStdinEnd);
|
|
3050
3041
|
yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
|
|
3051
|
-
const rlRef = yield*
|
|
3042
|
+
const rlRef = yield* make9({
|
|
3052
3043
|
acquire: acquireRelease(sync2(() => {
|
|
3053
3044
|
const rl = readline.createInterface({
|
|
3054
3045
|
input: stdin,
|
|
@@ -3087,7 +3078,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3087
3078
|
if (stdin.isTTY)
|
|
3088
3079
|
stdin.setRawMode(enabled);
|
|
3089
3080
|
});
|
|
3090
|
-
const rawModeRef = yield*
|
|
3081
|
+
const rawModeRef = yield* make9({
|
|
3091
3082
|
acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
|
|
3092
3083
|
idleTimeToLive: "10 millis"
|
|
3093
3084
|
});
|
|
@@ -3108,7 +3099,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3108
3099
|
return queue;
|
|
3109
3100
|
});
|
|
3110
3101
|
const readInput = gen(function* () {
|
|
3111
|
-
const queue = yield*
|
|
3102
|
+
const queue = yield* make8();
|
|
3112
3103
|
const handleKeypress = (s, k) => {
|
|
3113
3104
|
const userInput = {
|
|
3114
3105
|
input: fromUndefinedOr(s),
|
|
@@ -8566,6 +8557,8 @@ var Task = Struct({
|
|
|
8566
8557
|
title: String4.check(isMinLength(1), isMaxLength(240)),
|
|
8567
8558
|
description: optionalKey(String4),
|
|
8568
8559
|
acceptanceCriteria: ArraySchema(String4),
|
|
8560
|
+
promise: optionalKey(String4),
|
|
8561
|
+
outOfScope: optionalKey(ArraySchema(String4)),
|
|
8569
8562
|
state: TaskState,
|
|
8570
8563
|
priority: Literals(TaskPriorities),
|
|
8571
8564
|
assigneeId: optionalKey(Id),
|
|
@@ -9963,14 +9956,14 @@ function makeWith(method, url, urlParams, hash, headers, body) {
|
|
|
9963
9956
|
return self;
|
|
9964
9957
|
}
|
|
9965
9958
|
var empty6 = /* @__PURE__ */ makeWith("GET", "", empty4, /* @__PURE__ */ none(), empty, empty5);
|
|
9966
|
-
var
|
|
9959
|
+
var make4 = (method) => (url, options) => modify(empty6, {
|
|
9967
9960
|
method,
|
|
9968
9961
|
url,
|
|
9969
9962
|
...options ?? undefined
|
|
9970
9963
|
});
|
|
9971
|
-
var get = /* @__PURE__ */
|
|
9972
|
-
var post = /* @__PURE__ */
|
|
9973
|
-
var put = /* @__PURE__ */
|
|
9964
|
+
var get = /* @__PURE__ */ make4("GET");
|
|
9965
|
+
var post = /* @__PURE__ */ make4("POST");
|
|
9966
|
+
var put = /* @__PURE__ */ make4("PUT");
|
|
9974
9967
|
var modify = /* @__PURE__ */ dual(2, (self, options) => {
|
|
9975
9968
|
let result = self;
|
|
9976
9969
|
if (options.method) {
|
|
@@ -10271,7 +10264,7 @@ var Proto7 = {
|
|
|
10271
10264
|
};
|
|
10272
10265
|
},
|
|
10273
10266
|
.../* @__PURE__ */ Object.fromEntries(/* @__PURE__ */ allShort.map(([fullMethod, method]) => [method, function(url, options) {
|
|
10274
|
-
return this.execute(
|
|
10267
|
+
return this.execute(make4(fullMethod)(url, options));
|
|
10275
10268
|
}]))
|
|
10276
10269
|
};
|
|
10277
10270
|
var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
|
|
@@ -13981,7 +13974,7 @@ var makeProto = (options) => {
|
|
|
13981
13974
|
Rpc.key = `effect/rpc/Rpc/${options._tag}`;
|
|
13982
13975
|
return Rpc;
|
|
13983
13976
|
};
|
|
13984
|
-
var
|
|
13977
|
+
var make5 = (tag, options) => {
|
|
13985
13978
|
const successSchema = options?.success ?? Void;
|
|
13986
13979
|
const errorSchema = options?.error ?? Never;
|
|
13987
13980
|
const defectSchema = options?.defect ?? Defect();
|
|
@@ -14192,7 +14185,7 @@ var RpcGroupProto = {
|
|
|
14192
14185
|
});
|
|
14193
14186
|
},
|
|
14194
14187
|
annotateRpcs(service, value) {
|
|
14195
|
-
return this.annotateRpcsMerge(
|
|
14188
|
+
return this.annotateRpcsMerge(make14(service, value));
|
|
14196
14189
|
},
|
|
14197
14190
|
annotateMerge(context) {
|
|
14198
14191
|
return makeProto2({
|
|
@@ -14215,7 +14208,7 @@ var makeProto2 = (options) => Object.assign(function() {}, RpcGroupProto, {
|
|
|
14215
14208
|
requests: options.requests,
|
|
14216
14209
|
annotations: options.annotations
|
|
14217
14210
|
});
|
|
14218
|
-
var
|
|
14211
|
+
var make6 = (...rpcs) => makeProto2({
|
|
14219
14212
|
requests: new Map(rpcs.map((rpc) => [rpc._tag, rpc])),
|
|
14220
14213
|
annotations: empty3()
|
|
14221
14214
|
});
|
|
@@ -14321,96 +14314,96 @@ var ProgramOutcome = Union([
|
|
|
14321
14314
|
Struct({ status: Literal("failed"), failureSummary: String4 })
|
|
14322
14315
|
]);
|
|
14323
14316
|
|
|
14324
|
-
class RunnerReplicaRpcs extends
|
|
14317
|
+
class RunnerReplicaRpcs extends make6(make5("Claim", {
|
|
14325
14318
|
payload: WorkUnitClaimInput,
|
|
14326
14319
|
success: WorkUnitClaimResult,
|
|
14327
14320
|
error: RunnerRpcError
|
|
14328
|
-
}),
|
|
14321
|
+
}), make5("Heartbeat", {
|
|
14329
14322
|
payload: WorkUnitHeartbeatInput,
|
|
14330
14323
|
success: WorkUnitHeartbeatResult,
|
|
14331
14324
|
error: RunnerRpcError
|
|
14332
|
-
}),
|
|
14325
|
+
}), make5("Complete", {
|
|
14333
14326
|
payload: WorkUnitCompletion,
|
|
14334
14327
|
error: RunnerRpcError
|
|
14335
|
-
}),
|
|
14328
|
+
}), make5("Release", {
|
|
14336
14329
|
payload: WorkUnitReleaseInput,
|
|
14337
14330
|
error: RunnerRpcError
|
|
14338
|
-
}),
|
|
14331
|
+
}), make5("Signals", {
|
|
14339
14332
|
payload: { runnerReplicaId: String4 },
|
|
14340
14333
|
success: RunnerSignal,
|
|
14341
14334
|
error: RunnerRpcError,
|
|
14342
14335
|
stream: true
|
|
14343
|
-
}),
|
|
14336
|
+
}), make5("ReportSteer", {
|
|
14344
14337
|
payload: { workUnitId: String4, messageId: String4, delivered: Boolean2 },
|
|
14345
14338
|
success: Void,
|
|
14346
14339
|
error: RunnerRpcError
|
|
14347
|
-
}),
|
|
14340
|
+
}), make5("AppendTranscript", {
|
|
14348
14341
|
payload: { workUnitId: String4, entries: ArraySchema(TranscriptAppendEntry).check(isMaxLength(100)) },
|
|
14349
14342
|
success: Void,
|
|
14350
14343
|
error: RunnerRpcError
|
|
14351
|
-
}),
|
|
14344
|
+
}), make5("CreateCheckpointFile", {
|
|
14352
14345
|
payload: { lease: ProgramLease, byteSize: Int, sha256: String4 },
|
|
14353
14346
|
success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
|
|
14354
14347
|
error: Union([RunnerRpcError, RunFileRefused])
|
|
14355
|
-
}),
|
|
14348
|
+
}), make5("CheckpointFileParts", {
|
|
14356
14349
|
payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
|
|
14357
14350
|
success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
|
|
14358
14351
|
error: RunnerRpcError
|
|
14359
|
-
}),
|
|
14352
|
+
}), make5("CompleteCheckpointFile", {
|
|
14360
14353
|
payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
|
|
14361
14354
|
success: RunFileRecord,
|
|
14362
14355
|
error: RunnerRpcError
|
|
14363
|
-
}),
|
|
14356
|
+
}), make5("SaveCheckpoint", {
|
|
14364
14357
|
payload: { lease: ProgramLease, checkpoint: StepCheckpoint },
|
|
14365
14358
|
success: Void,
|
|
14366
14359
|
error: RunnerRpcError
|
|
14367
|
-
}),
|
|
14360
|
+
}), make5("ResumeCheckpoint", {
|
|
14368
14361
|
payload: { lease: ProgramLease },
|
|
14369
14362
|
success: UndefinedOr(ResumedCheckpoint),
|
|
14370
14363
|
error: RunnerRpcError
|
|
14371
|
-
}),
|
|
14364
|
+
}), make5("SettledCheckpoints", {
|
|
14372
14365
|
success: ArraySchema(Struct({
|
|
14373
14366
|
stepAttemptId: String4,
|
|
14374
14367
|
ref: optionalKey(String4),
|
|
14375
14368
|
repoBinding: optionalKey(WorkUnitRepoBinding)
|
|
14376
14369
|
})),
|
|
14377
14370
|
error: RunnerRpcError
|
|
14378
|
-
}),
|
|
14371
|
+
}), make5("ForgetCheckpoints", {
|
|
14379
14372
|
payload: { stepAttemptIds: ArraySchema(String4) },
|
|
14380
14373
|
success: Void,
|
|
14381
14374
|
error: RunnerRpcError
|
|
14382
|
-
}),
|
|
14375
|
+
}), make5("GitCredential", {
|
|
14383
14376
|
payload: { repoBindingId: String4 },
|
|
14384
14377
|
success: UndefinedOr(Struct({ username: String4, password: String4 })),
|
|
14385
14378
|
error: RunnerRpcError
|
|
14386
|
-
}),
|
|
14379
|
+
}), make5("Bundle", {
|
|
14387
14380
|
payload: { digest: String4 },
|
|
14388
14381
|
success: Struct({ bundle: String4 }),
|
|
14389
14382
|
error: RunnerRpcError
|
|
14390
|
-
}),
|
|
14383
|
+
}), make5("SettledRuns", {
|
|
14391
14384
|
payload: { runIds: ArraySchema(String4) },
|
|
14392
14385
|
success: ArraySchema(String4),
|
|
14393
14386
|
error: RunnerRpcError
|
|
14394
|
-
}),
|
|
14387
|
+
}), make5("KnownEvidence", {
|
|
14395
14388
|
payload: { lease: ProgramLease, trees: ArraySchema(String4) },
|
|
14396
14389
|
success: ArraySchema(Struct({ tree: String4, name: String4, command: String4 })),
|
|
14397
14390
|
error: RunnerRpcError
|
|
14398
14391
|
})).middleware(RunnerAuthentication) {
|
|
14399
14392
|
}
|
|
14400
14393
|
|
|
14401
|
-
class RunnerJournalRpcs extends
|
|
14394
|
+
class RunnerJournalRpcs extends make6(make5("RecordActivity", {
|
|
14402
14395
|
payload: { lease: ProgramLease, name: String4, attempt: Int, exit: Json },
|
|
14403
14396
|
error: RunnerRpcError
|
|
14404
|
-
}),
|
|
14397
|
+
}), make5("DeferredDone", {
|
|
14405
14398
|
payload: { lease: ProgramLease, name: String4, exit: Json },
|
|
14406
14399
|
error: RunnerRpcError
|
|
14407
|
-
}),
|
|
14400
|
+
}), make5("ScheduleClock", {
|
|
14408
14401
|
payload: { lease: ProgramLease, name: String4, deferredName: String4, durationMillis: Int },
|
|
14409
14402
|
error: RunnerRpcError
|
|
14410
|
-
}),
|
|
14403
|
+
}), make5("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make5("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
|
|
14411
14404
|
}
|
|
14412
14405
|
|
|
14413
|
-
class RunnerCapabilityRpcs extends
|
|
14406
|
+
class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
14414
14407
|
payload: {
|
|
14415
14408
|
lease: ProgramLease,
|
|
14416
14409
|
step: String4,
|
|
@@ -14430,7 +14423,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14430
14423
|
},
|
|
14431
14424
|
success: Struct({ questionId: String4 }),
|
|
14432
14425
|
error: RunnerRpcError
|
|
14433
|
-
}),
|
|
14426
|
+
}), make5("StartAgentStep", {
|
|
14434
14427
|
payload: {
|
|
14435
14428
|
lease: ProgramLease,
|
|
14436
14429
|
step: String4,
|
|
@@ -14446,7 +14439,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14446
14439
|
},
|
|
14447
14440
|
success: Struct({ stepAttemptId: String4 }),
|
|
14448
14441
|
error: RunnerRpcError
|
|
14449
|
-
}),
|
|
14442
|
+
}), make5("StartVerification", {
|
|
14450
14443
|
payload: {
|
|
14451
14444
|
lease: ProgramLease,
|
|
14452
14445
|
step: String4,
|
|
@@ -14467,7 +14460,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14467
14460
|
},
|
|
14468
14461
|
success: Struct({ verificationId: String4 }),
|
|
14469
14462
|
error: RunnerRpcError
|
|
14470
|
-
}),
|
|
14463
|
+
}), make5("AwaitEvent", {
|
|
14471
14464
|
payload: {
|
|
14472
14465
|
lease: ProgramLease,
|
|
14473
14466
|
step: String4,
|
|
@@ -14483,7 +14476,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14483
14476
|
})))
|
|
14484
14477
|
},
|
|
14485
14478
|
error: RunnerRpcError
|
|
14486
|
-
}),
|
|
14479
|
+
}), make5("ClaimResource", {
|
|
14487
14480
|
payload: {
|
|
14488
14481
|
lease: ProgramLease,
|
|
14489
14482
|
step: String4,
|
|
@@ -14492,7 +14485,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14492
14485
|
action: Literals(["claim", "take_over", "let_go"])
|
|
14493
14486
|
},
|
|
14494
14487
|
error: RunnerRpcError
|
|
14495
|
-
}),
|
|
14488
|
+
}), make5("AdmitChild", {
|
|
14496
14489
|
payload: {
|
|
14497
14490
|
lease: ProgramLease,
|
|
14498
14491
|
step: String4,
|
|
@@ -14503,7 +14496,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14503
14496
|
},
|
|
14504
14497
|
success: Struct({ runId: String4 }),
|
|
14505
14498
|
error: RunnerRpcError
|
|
14506
|
-
}),
|
|
14499
|
+
}), make5("StoreArtifact", {
|
|
14507
14500
|
payload: {
|
|
14508
14501
|
lease: ProgramLease,
|
|
14509
14502
|
step: String4,
|
|
@@ -14515,7 +14508,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14515
14508
|
},
|
|
14516
14509
|
success: Struct({ artifactId: String4 }),
|
|
14517
14510
|
error: RunnerRpcError
|
|
14518
|
-
}),
|
|
14511
|
+
}), make5("RecordNote", {
|
|
14519
14512
|
payload: {
|
|
14520
14513
|
lease: ProgramLease,
|
|
14521
14514
|
step: String4,
|
|
@@ -14524,7 +14517,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14524
14517
|
kind: optional(Literals(["note", "blocker"]))
|
|
14525
14518
|
},
|
|
14526
14519
|
error: RunnerRpcError
|
|
14527
|
-
}),
|
|
14520
|
+
}), make5("PerformHostEffect", {
|
|
14528
14521
|
payload: {
|
|
14529
14522
|
lease: ProgramLease,
|
|
14530
14523
|
step: String4,
|
|
@@ -14553,7 +14546,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14553
14546
|
},
|
|
14554
14547
|
success: UndefinedOr(Struct({ id: String4, number: String4, url: String4 })),
|
|
14555
14548
|
error: RunnerRpcError
|
|
14556
|
-
}),
|
|
14549
|
+
}), make5("AlertTask", {
|
|
14557
14550
|
payload: {
|
|
14558
14551
|
lease: ProgramLease,
|
|
14559
14552
|
step: String4,
|
|
@@ -14570,7 +14563,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14570
14563
|
joined: optionalKey(Struct({ kind: Literals(["run", "recent"]), runId: String4 }))
|
|
14571
14564
|
}),
|
|
14572
14565
|
error: RunnerRpcError
|
|
14573
|
-
}),
|
|
14566
|
+
}), make5("ReadTranscripts", {
|
|
14574
14567
|
payload: {
|
|
14575
14568
|
lease: ProgramLease,
|
|
14576
14569
|
step: String4,
|
|
@@ -14605,7 +14598,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14605
14598
|
})))
|
|
14606
14599
|
}),
|
|
14607
14600
|
error: RunnerRpcError
|
|
14608
|
-
}),
|
|
14601
|
+
}), make5("PipelineStatus", {
|
|
14609
14602
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
|
|
14610
14603
|
success: Struct({
|
|
14611
14604
|
head: String4,
|
|
@@ -14639,11 +14632,11 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14639
14632
|
}))
|
|
14640
14633
|
}),
|
|
14641
14634
|
error: RunnerRpcError
|
|
14642
|
-
}),
|
|
14635
|
+
}), make5("ReportPipeline", {
|
|
14643
14636
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4, verification: String4 },
|
|
14644
14637
|
success: Struct({ head: String4, status: Literals(["success", "failed"]) }),
|
|
14645
14638
|
error: RunnerRpcError
|
|
14646
|
-
}),
|
|
14639
|
+
}), make5("ReviewThreads", {
|
|
14647
14640
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
|
|
14648
14641
|
success: Struct({
|
|
14649
14642
|
threads: ArraySchema(Struct({
|
|
@@ -14655,7 +14648,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14655
14648
|
}))
|
|
14656
14649
|
}),
|
|
14657
14650
|
error: RunnerRpcError
|
|
14658
|
-
}),
|
|
14651
|
+
}), make5("OpenChangeRequests", {
|
|
14659
14652
|
payload: { lease: ProgramLease, step: String4, authors: NonEmptyArray(String4) },
|
|
14660
14653
|
success: Struct({
|
|
14661
14654
|
changeRequests: ArraySchema(Struct({
|
|
@@ -14669,7 +14662,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14669
14662
|
}))
|
|
14670
14663
|
}),
|
|
14671
14664
|
error: RunnerRpcError
|
|
14672
|
-
}),
|
|
14665
|
+
}), make5("OwnChangeRequests", {
|
|
14673
14666
|
payload: { lease: ProgramLease, step: String4 },
|
|
14674
14667
|
success: Struct({
|
|
14675
14668
|
changeRequests: ArraySchema(Struct({
|
|
@@ -14682,7 +14675,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14682
14675
|
}))
|
|
14683
14676
|
}),
|
|
14684
14677
|
error: RunnerRpcError
|
|
14685
|
-
}),
|
|
14678
|
+
}), make5("Propose", {
|
|
14686
14679
|
payload: {
|
|
14687
14680
|
lease: ProgramLease,
|
|
14688
14681
|
step: String4,
|
|
@@ -14711,7 +14704,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14711
14704
|
task: optionalKey(Struct({ id: String4, active: Boolean2 }))
|
|
14712
14705
|
}),
|
|
14713
14706
|
error: RunnerRpcError
|
|
14714
|
-
}),
|
|
14707
|
+
}), make5("ReadProject", {
|
|
14715
14708
|
payload: { lease: ProgramLease, step: String4, projectId: String4 },
|
|
14716
14709
|
success: Struct({
|
|
14717
14710
|
project: Struct({ id: String4, name: String4 }),
|
|
@@ -14734,7 +14727,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14734
14727
|
taskChanges: ArraySchema(Struct({ taskKey: String4, title: String4, change: String4, at: String4 }))
|
|
14735
14728
|
}),
|
|
14736
14729
|
error: RunnerRpcError
|
|
14737
|
-
}),
|
|
14730
|
+
}), make5("DraftUpdate", {
|
|
14738
14731
|
payload: {
|
|
14739
14732
|
lease: ProgramLease,
|
|
14740
14733
|
step: String4,
|
|
@@ -14749,7 +14742,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14749
14742
|
},
|
|
14750
14743
|
success: Struct({ id: String4 }),
|
|
14751
14744
|
error: RunnerRpcError
|
|
14752
|
-
}),
|
|
14745
|
+
}), make5("CreatePlanTasks", {
|
|
14753
14746
|
payload: {
|
|
14754
14747
|
lease: ProgramLease,
|
|
14755
14748
|
projectId: optionalKey(String4),
|
|
@@ -14760,6 +14753,8 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14760
14753
|
title: String4,
|
|
14761
14754
|
body: String4,
|
|
14762
14755
|
acceptanceCriteria: ArraySchema(String4),
|
|
14756
|
+
promise: optionalKey(String4),
|
|
14757
|
+
outOfScope: optionalKey(ArraySchema(String4)),
|
|
14763
14758
|
blockedBy: ArraySchema(String4),
|
|
14764
14759
|
outcome: optionalKey(Literals(["feature", "bug", "refactor", "investigation", "docs", "migration", "performance"])),
|
|
14765
14760
|
repoBindingId: optionalKey(String4)
|
|
@@ -14767,15 +14762,15 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14767
14762
|
},
|
|
14768
14763
|
success: ArraySchema(Struct({ key: String4, taskId: String4 })),
|
|
14769
14764
|
error: RunnerRpcError
|
|
14770
|
-
}),
|
|
14765
|
+
}), make5("IntegrationBranch", {
|
|
14771
14766
|
payload: { lease: ProgramLease, repoBindingId: optionalKey(String4) },
|
|
14772
14767
|
success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
|
|
14773
14768
|
error: RunnerRpcError
|
|
14774
|
-
}),
|
|
14769
|
+
}), make5("DeliveryBase", {
|
|
14775
14770
|
payload: { lease: ProgramLease },
|
|
14776
14771
|
success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
|
|
14777
14772
|
error: RunnerRpcError
|
|
14778
|
-
}),
|
|
14773
|
+
}), make5("MergeChangeRequest", {
|
|
14779
14774
|
payload: {
|
|
14780
14775
|
lease: ProgramLease,
|
|
14781
14776
|
step: String4,
|
|
@@ -14793,7 +14788,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14793
14788
|
Struct({ status: Literal("moved"), head: String4 })
|
|
14794
14789
|
]),
|
|
14795
14790
|
error: RunnerRpcError
|
|
14796
|
-
}),
|
|
14791
|
+
}), make5("ApproveChangeRequest", {
|
|
14797
14792
|
payload: {
|
|
14798
14793
|
lease: ProgramLease,
|
|
14799
14794
|
step: String4,
|
|
@@ -14809,7 +14804,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14809
14804
|
Struct({ approved: Literal(false), reason: String4 })
|
|
14810
14805
|
]),
|
|
14811
14806
|
error: RunnerRpcError
|
|
14812
|
-
}),
|
|
14807
|
+
}), make5("CloseChangeRequest", {
|
|
14813
14808
|
payload: {
|
|
14814
14809
|
lease: ProgramLease,
|
|
14815
14810
|
step: String4,
|
|
@@ -14819,7 +14814,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14819
14814
|
},
|
|
14820
14815
|
success: Struct({ closed: Boolean2, head: optionalKey(String4) }),
|
|
14821
14816
|
error: RunnerRpcError
|
|
14822
|
-
}),
|
|
14817
|
+
}), make5("RerunPipeline", {
|
|
14823
14818
|
payload: {
|
|
14824
14819
|
lease: ProgramLease,
|
|
14825
14820
|
step: String4,
|
|
@@ -14829,7 +14824,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14829
14824
|
},
|
|
14830
14825
|
success: Struct({ head: String4, pipelines: Int }),
|
|
14831
14826
|
error: RunnerRpcError
|
|
14832
|
-
}),
|
|
14827
|
+
}), make5("PublishRelease", {
|
|
14833
14828
|
payload: {
|
|
14834
14829
|
lease: ProgramLease,
|
|
14835
14830
|
step: String4,
|
|
@@ -14841,14 +14836,14 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14841
14836
|
},
|
|
14842
14837
|
success: Struct({ tag: String4, revision: String4, url: String4 }),
|
|
14843
14838
|
error: RunnerRpcError
|
|
14844
|
-
}),
|
|
14839
|
+
}), make5("ProgramSecrets", {
|
|
14845
14840
|
payload: { lease: ProgramLease },
|
|
14846
14841
|
success: Record(String4, String4),
|
|
14847
14842
|
error: RunnerRpcError
|
|
14848
14843
|
})).middleware(RunnerAuthentication) {
|
|
14849
14844
|
}
|
|
14850
14845
|
|
|
14851
|
-
class RunnerRunFileRpcs extends
|
|
14846
|
+
class RunnerRunFileRpcs extends make6(make5("CreateRunFile", {
|
|
14852
14847
|
payload: {
|
|
14853
14848
|
lease: ProgramLease,
|
|
14854
14849
|
step: String4,
|
|
@@ -14860,11 +14855,11 @@ class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
|
|
|
14860
14855
|
},
|
|
14861
14856
|
success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
|
|
14862
14857
|
error: Union([RunnerRpcError, RunFileRefused])
|
|
14863
|
-
}),
|
|
14858
|
+
}), make5("RunFileParts", {
|
|
14864
14859
|
payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
|
|
14865
14860
|
success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
|
|
14866
14861
|
error: RunnerRpcError
|
|
14867
|
-
}),
|
|
14862
|
+
}), make5("CompleteRunFile", {
|
|
14868
14863
|
payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
|
|
14869
14864
|
success: RunFileRecord,
|
|
14870
14865
|
error: RunnerRpcError
|
|
@@ -14953,7 +14948,7 @@ function toStoredSession(token, existingRefreshToken) {
|
|
|
14953
14948
|
}
|
|
14954
14949
|
function startLoopbackServer(input) {
|
|
14955
14950
|
return gen(function* () {
|
|
14956
|
-
const code = yield*
|
|
14951
|
+
const code = yield* make15();
|
|
14957
14952
|
const context2 = yield* context();
|
|
14958
14953
|
const runSyncExit = runSyncExitWith(context2);
|
|
14959
14954
|
const server = yield* acquireRelease(sync2(() => Bun.serve({
|
|
@@ -15493,7 +15488,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
15493
15488
|
let lastId = 0;
|
|
15494
15489
|
let lost = false;
|
|
15495
15490
|
const notifications = yield* unbounded2();
|
|
15496
|
-
const ended = yield*
|
|
15491
|
+
const ended = yield* make15();
|
|
15497
15492
|
const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
|
|
15498
15493
|
onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
|
|
15499
15494
|
onNone: () => void_3,
|
|
@@ -15520,7 +15515,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
15520
15515
|
if (lost)
|
|
15521
15516
|
return yield* new HerdrCoreConnectionLost2({ method });
|
|
15522
15517
|
const id = ++lastId;
|
|
15523
|
-
const deferred = yield*
|
|
15518
|
+
const deferred = yield* make15();
|
|
15524
15519
|
pending.set(id, { method, deferred });
|
|
15525
15520
|
yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
|
|
15526
15521
|
return yield* _await(deferred);
|
|
@@ -15594,14 +15589,14 @@ var herdrCoreOver = (transport) => ({
|
|
|
15594
15589
|
return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
|
|
15595
15590
|
};
|
|
15596
15591
|
const snapshot = { type: "snapshot", terminals: subscribed.terminals };
|
|
15597
|
-
return concat(
|
|
15592
|
+
return concat(make10(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
|
|
15598
15593
|
}))
|
|
15599
15594
|
});
|
|
15600
15595
|
var spawnedTransport = (env) => gen(function* () {
|
|
15601
15596
|
const spawner = yield* ChildProcessSpawner;
|
|
15602
15597
|
const input = yield* unbounded2();
|
|
15603
15598
|
const encoder = new TextEncoder;
|
|
15604
|
-
const handle = yield* spawner.spawn(
|
|
15599
|
+
const handle = yield* spawner.spawn(make2("herdr-core", ["connect"], {
|
|
15605
15600
|
extendEnv: false,
|
|
15606
15601
|
env,
|
|
15607
15602
|
stdin: fromQueue(input),
|
|
@@ -15632,7 +15627,7 @@ var updateHerdrCore2 = (options) => gen(function* () {
|
|
|
15632
15627
|
const spawner = yield* ChildProcessSpawner;
|
|
15633
15628
|
const env = coreEnv(options);
|
|
15634
15629
|
const run = (args) => gen(function* () {
|
|
15635
|
-
const handle = yield* spawner.spawn(
|
|
15630
|
+
const handle = yield* spawner.spawn(make2("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
|
|
15636
15631
|
const [stdout, stderr, exitCode] = yield* all3([
|
|
15637
15632
|
mkString(decodeText(handle.stdout)),
|
|
15638
15633
|
mkString(decodeText(handle.stderr)),
|
|
@@ -15658,7 +15653,7 @@ class CommandFailed2 extends TaggedError("CommandFailed") {
|
|
|
15658
15653
|
}
|
|
15659
15654
|
var runCommand2 = (command, args, options = {}) => gen(function* () {
|
|
15660
15655
|
const spawner = yield* ChildProcessSpawner;
|
|
15661
|
-
const handle = yield* spawner.spawn(
|
|
15656
|
+
const handle = yield* spawner.spawn(make2(command, args, {
|
|
15662
15657
|
stdin: "ignore",
|
|
15663
15658
|
...options.cwd === undefined ? undefined : { cwd: options.cwd },
|
|
15664
15659
|
...options.env === undefined ? undefined : { extendEnv: true, env: options.env }
|
|
@@ -15684,8 +15679,8 @@ var shellOutputTailChars2 = 64 * 1024;
|
|
|
15684
15679
|
var runProcess2 = (argv, options) => gen(function* () {
|
|
15685
15680
|
const spawner = yield* ChildProcessSpawner;
|
|
15686
15681
|
const [command, ...args] = argv;
|
|
15687
|
-
const handle = yield* spawner.spawn(
|
|
15688
|
-
stdin: options.stdin === undefined ? "ignore" :
|
|
15682
|
+
const handle = yield* spawner.spawn(make2(command, args, {
|
|
15683
|
+
stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
|
|
15689
15684
|
...options.cwd === undefined ? undefined : { cwd: options.cwd },
|
|
15690
15685
|
env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
|
|
15691
15686
|
}));
|
|
@@ -16117,4 +16112,4 @@ function checkServices(declaration) {
|
|
|
16117
16112
|
return isSome(decoded) ? [...new Set(decoded.value.services)] : undefined;
|
|
16118
16113
|
}
|
|
16119
16114
|
|
|
16120
|
-
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, 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,
|
|
16115
|
+
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, 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, 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 };
|