@kitman-sh/cli 0.10.69 → 0.10.70
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-q9n4jkcp.js → chunk-1j1jh211.js} +8 -5
- package/dist/{chunk-tf5yxkpy.js → chunk-1rry0tsn.js} +60 -14
- package/dist/{chunk-rzr11xyn.js → chunk-1w81w56v.js} +2 -2
- package/dist/{chunk-gswz7ngm.js → chunk-2wkdq54x.js} +5 -5
- package/dist/{chunk-0ahahh0f.js → chunk-60333x3q.js} +5 -5
- package/dist/{chunk-j4pmjnyd.js → chunk-7jh6atr0.js} +19 -19
- package/dist/{chunk-20qadzgw.js → chunk-8ttdzwa3.js} +25 -25
- package/dist/{chunk-t0rnf6ch.js → chunk-8w7d269h.js} +4 -4
- package/dist/{chunk-9m14d9d8.js → chunk-9hr71e7c.js} +7 -7
- package/dist/{chunk-zdctyf0w.js → chunk-csbf77zs.js} +8 -8
- package/dist/{chunk-677etczq.js → chunk-d3ksv8y1.js} +28 -70
- package/dist/{chunk-jjeawksh.js → chunk-dena9bpd.js} +21 -21
- package/dist/{chunk-qdyqc4nz.js → chunk-dk0ftqwg.js} +17 -17
- package/dist/{chunk-kqcrxea1.js → chunk-e5dq8dbz.js} +23 -23
- package/dist/{chunk-drsawp1s.js → chunk-f8qqmcgy.js} +8 -8
- package/dist/{chunk-q26gt71y.js → chunk-fgecj3t0.js} +5 -5
- package/dist/{chunk-qpg9t7he.js → chunk-h0sw8tks.js} +7 -7
- package/dist/{chunk-k7mn104k.js → chunk-pq9bkyj6.js} +3 -3
- package/dist/{chunk-p23kedha.js → chunk-q3c7vmby.js} +1 -1
- package/dist/{chunk-0271bhj2.js → chunk-rm83dbpv.js} +2 -2
- package/dist/{chunk-wnwyp9qn.js → chunk-rrnee9mk.js} +1 -1
- package/dist/{chunk-h6360r1c.js → chunk-v01c0k6j.js} +1 -1
- package/dist/{chunk-9p6v3jd2.js → chunk-wtpwkjws.js} +4 -4
- package/dist/{chunk-n0pm4rtm.js → chunk-x7g0rzqj.js} +125 -107
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
assignProperty,
|
|
39
39
|
PipeInspectableProto,
|
|
40
40
|
withFiber,
|
|
41
|
-
|
|
41
|
+
make14,
|
|
42
42
|
strictEqual,
|
|
43
43
|
Tuple,
|
|
44
44
|
Number2,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
Service2,
|
|
59
59
|
makeUnsafe4,
|
|
60
60
|
empty3,
|
|
61
|
-
|
|
61
|
+
make15,
|
|
62
62
|
add,
|
|
63
63
|
getOrUndefined2,
|
|
64
64
|
getOrUndefinedUnsafe,
|
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
fail4,
|
|
92
92
|
isSuccess2,
|
|
93
93
|
makeUnsafe5,
|
|
94
|
-
|
|
94
|
+
make16,
|
|
95
95
|
_await,
|
|
96
96
|
fail5,
|
|
97
97
|
isDone,
|
|
@@ -194,9 +194,6 @@ import {
|
|
|
194
194
|
logError,
|
|
195
195
|
effectify,
|
|
196
196
|
decode,
|
|
197
|
-
isRedacted,
|
|
198
|
-
make16,
|
|
199
|
-
value,
|
|
200
197
|
defaultParseOptions,
|
|
201
198
|
omit,
|
|
202
199
|
map9,
|
|
@@ -251,7 +248,7 @@ import {
|
|
|
251
248
|
decodeJsonStringOption,
|
|
252
249
|
encodeJsonStringSync,
|
|
253
250
|
encodePrettyJsonString
|
|
254
|
-
} from "./chunk-
|
|
251
|
+
} from "./chunk-d3ksv8y1.js";
|
|
255
252
|
import {
|
|
256
253
|
map,
|
|
257
254
|
makeEquivalence,
|
|
@@ -260,8 +257,8 @@ import {
|
|
|
260
257
|
systemError,
|
|
261
258
|
badArgument,
|
|
262
259
|
makeUnsafe2,
|
|
263
|
-
make7,
|
|
264
260
|
make8,
|
|
261
|
+
make9,
|
|
265
262
|
sliding,
|
|
266
263
|
unbounded2,
|
|
267
264
|
offer,
|
|
@@ -277,13 +274,13 @@ import {
|
|
|
277
274
|
isSink,
|
|
278
275
|
fromChannel,
|
|
279
276
|
drain,
|
|
280
|
-
|
|
277
|
+
make10,
|
|
281
278
|
get3,
|
|
282
279
|
isStream,
|
|
283
280
|
fromChannel2,
|
|
284
281
|
callback,
|
|
285
282
|
empty2,
|
|
286
|
-
|
|
283
|
+
make11,
|
|
287
284
|
suspend,
|
|
288
285
|
fail2,
|
|
289
286
|
fromQueue,
|
|
@@ -309,16 +306,16 @@ import {
|
|
|
309
306
|
mkArrayBuffer,
|
|
310
307
|
toReadableStreamEffect,
|
|
311
308
|
FileSystem,
|
|
312
|
-
|
|
309
|
+
make12,
|
|
313
310
|
FileTypeId,
|
|
314
311
|
WatchBackend,
|
|
315
312
|
Path,
|
|
316
|
-
|
|
313
|
+
make13,
|
|
317
314
|
option,
|
|
318
315
|
String2,
|
|
319
316
|
optionalEnv,
|
|
320
317
|
harnessesUnsupportedInSrt2
|
|
321
|
-
} from "./chunk-
|
|
318
|
+
} from "./chunk-dk0ftqwg.js";
|
|
322
319
|
import {
|
|
323
320
|
isDateTime,
|
|
324
321
|
Numeric,
|
|
@@ -330,7 +327,7 @@ import {
|
|
|
330
327
|
SecretName,
|
|
331
328
|
SecretScope,
|
|
332
329
|
SecretHosts
|
|
333
|
-
} from "./chunk-
|
|
330
|
+
} from "./chunk-rrnee9mk.js";
|
|
334
331
|
import {
|
|
335
332
|
toJsonValue,
|
|
336
333
|
isOneOf,
|
|
@@ -344,18 +341,21 @@ import {
|
|
|
344
341
|
isSymbol,
|
|
345
342
|
isUndefined,
|
|
346
343
|
kindOf
|
|
347
|
-
} from "./chunk-
|
|
344
|
+
} from "./chunk-v01c0k6j.js";
|
|
348
345
|
import {
|
|
346
|
+
isRedacted,
|
|
347
|
+
make,
|
|
348
|
+
value,
|
|
349
349
|
ExitCode,
|
|
350
350
|
ProcessId,
|
|
351
351
|
makeHandle,
|
|
352
|
-
|
|
352
|
+
make2,
|
|
353
353
|
ChildProcessSpawner,
|
|
354
354
|
display,
|
|
355
|
-
|
|
355
|
+
make3,
|
|
356
356
|
parseFdName,
|
|
357
357
|
fdName
|
|
358
|
-
} from "./chunk-
|
|
358
|
+
} from "./chunk-1rry0tsn.js";
|
|
359
359
|
|
|
360
360
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
|
|
361
361
|
var makeEquivalence3 = Tuple;
|
|
@@ -518,7 +518,7 @@ var makeUnsafe6 = (input) => {
|
|
|
518
518
|
var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
|
|
519
519
|
var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
|
|
520
520
|
var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
|
|
521
|
-
var
|
|
521
|
+
var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
|
|
522
522
|
var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
|
|
523
523
|
var nowUnsafe = () => makeUtc(Date.now());
|
|
524
524
|
var toDateUtc = (self) => new Date(self.epochMilliseconds);
|
|
@@ -908,7 +908,7 @@ var toNumber = (b) => {
|
|
|
908
908
|
|
|
909
909
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
|
|
910
910
|
var makeUnsafe = makeUnsafe6;
|
|
911
|
-
var make18 =
|
|
911
|
+
var make18 = make4;
|
|
912
912
|
var now2 = now;
|
|
913
913
|
var nowUnsafe2 = nowUnsafe;
|
|
914
914
|
var toDateUtc2 = toDateUtc;
|
|
@@ -1123,7 +1123,7 @@ var readableToPullUnsafe = (options) => {
|
|
|
1123
1123
|
const readable = options.readable;
|
|
1124
1124
|
const chunkSize = options.chunkSize ?? 4096;
|
|
1125
1125
|
const closeOnDone = options.closeOnDone ?? true;
|
|
1126
|
-
const exit = options.exit ??
|
|
1126
|
+
const exit = options.exit ?? make8(undefined);
|
|
1127
1127
|
const latch = options.latch ?? makeUnsafe2(false);
|
|
1128
1128
|
function onReadable() {
|
|
1129
1129
|
latch.openUnsafe();
|
|
@@ -1687,7 +1687,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1687
1687
|
const sourceStream = unwrap(succeed6(getSourceStream(handles[handles.length - 1], options.from)));
|
|
1688
1688
|
const toOption = options.to ?? "stdin";
|
|
1689
1689
|
if (toOption === "stdin") {
|
|
1690
|
-
handles.push(yield* spawnCommand(
|
|
1690
|
+
handles.push(yield* spawnCommand(make3(command.command, command.args, {
|
|
1691
1691
|
...command.options,
|
|
1692
1692
|
stdin: {
|
|
1693
1693
|
...stdinConfig,
|
|
@@ -1707,7 +1707,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1707
1707
|
type: "input",
|
|
1708
1708
|
stream: sourceStream
|
|
1709
1709
|
};
|
|
1710
|
-
handles.push(yield* spawnCommand(
|
|
1710
|
+
handles.push(yield* spawnCommand(make3(command.command, command.args, {
|
|
1711
1711
|
...command.options,
|
|
1712
1712
|
additionalFds: {
|
|
1713
1713
|
...existingFds,
|
|
@@ -1715,7 +1715,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1715
1715
|
}
|
|
1716
1716
|
})));
|
|
1717
1717
|
} else {
|
|
1718
|
-
handles.push(yield* spawnCommand(
|
|
1718
|
+
handles.push(yield* spawnCommand(make3(command.command, command.args, {
|
|
1719
1719
|
...command.options,
|
|
1720
1720
|
stdin: {
|
|
1721
1721
|
...stdinConfig,
|
|
@@ -1754,7 +1754,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1754
1754
|
}
|
|
1755
1755
|
}
|
|
1756
1756
|
});
|
|
1757
|
-
return
|
|
1757
|
+
return make2(spawnCommand);
|
|
1758
1758
|
});
|
|
1759
1759
|
var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
|
|
1760
1760
|
var flattenCommand = (command) => {
|
|
@@ -2240,7 +2240,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
|
|
|
2240
2240
|
resume(fail7(handleBadArgument("writeFile")(err)));
|
|
2241
2241
|
}
|
|
2242
2242
|
});
|
|
2243
|
-
var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) =>
|
|
2243
|
+
var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make12({
|
|
2244
2244
|
access: access2,
|
|
2245
2245
|
chmod: chmod2,
|
|
2246
2246
|
chown: chown2,
|
|
@@ -2300,15 +2300,15 @@ var fileUrlOps = (windows) => ({
|
|
|
2300
2300
|
})
|
|
2301
2301
|
})
|
|
2302
2302
|
});
|
|
2303
|
-
var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2303
|
+
var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
|
|
2304
2304
|
...NodePath.posix,
|
|
2305
2305
|
.../* @__PURE__ */ fileUrlOps(false)
|
|
2306
2306
|
}));
|
|
2307
|
-
var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2307
|
+
var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
|
|
2308
2308
|
...NodePath.win32,
|
|
2309
2309
|
.../* @__PURE__ */ fileUrlOps(true)
|
|
2310
2310
|
}));
|
|
2311
|
-
var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2311
|
+
var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
|
|
2312
2312
|
...NodePath,
|
|
2313
2313
|
.../* @__PURE__ */ fileUrlOps(undefined)
|
|
2314
2314
|
}));
|
|
@@ -2830,12 +2830,12 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
|
2830
2830
|
if (typeof key === "string") {
|
|
2831
2831
|
const k = key.toLowerCase();
|
|
2832
2832
|
if (k in self) {
|
|
2833
|
-
out[k] =
|
|
2833
|
+
out[k] = make(self[k]);
|
|
2834
2834
|
}
|
|
2835
2835
|
} else {
|
|
2836
2836
|
for (const name in self) {
|
|
2837
2837
|
if (name.search(key) !== -1) {
|
|
2838
|
-
out[name] =
|
|
2838
|
+
out[name] = make(self[name]);
|
|
2839
2839
|
}
|
|
2840
2840
|
}
|
|
2841
2841
|
}
|
|
@@ -2942,7 +2942,7 @@ var fromInputNested = (input) => {
|
|
|
2942
2942
|
return out;
|
|
2943
2943
|
};
|
|
2944
2944
|
var coerce = (value) => isRedacted(value) ? value : String(value);
|
|
2945
|
-
var Equivalence3 = /* @__PURE__ */
|
|
2945
|
+
var Equivalence3 = /* @__PURE__ */ make14((a, b) => arrayEquivalence(a.params, b.params));
|
|
2946
2946
|
var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
|
|
2947
2947
|
var empty4 = /* @__PURE__ */ make23([]);
|
|
2948
2948
|
var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
@@ -2960,7 +2960,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
|
2960
2960
|
});
|
|
2961
2961
|
var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
2962
2962
|
const patterns = Array.isArray(key) ? key : [key];
|
|
2963
|
-
return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ?
|
|
2963
|
+
return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make(value) : value]);
|
|
2964
2964
|
});
|
|
2965
2965
|
var isRedactedName2 = isRedactedName;
|
|
2966
2966
|
var redactUrl = (url, redactedNames = currentRedactedNames()) => {
|
|
@@ -3036,7 +3036,7 @@ import * as readline from "readline";
|
|
|
3036
3036
|
var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
|
|
3037
3037
|
const stdin = process.stdin;
|
|
3038
3038
|
const stdout = process.stdout;
|
|
3039
|
-
const lines = yield*
|
|
3039
|
+
const lines = yield* make9();
|
|
3040
3040
|
let inputEnded = stdin.readableEnded;
|
|
3041
3041
|
let readlineActive = false;
|
|
3042
3042
|
const onStdinEnd = () => {
|
|
@@ -3047,7 +3047,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3047
3047
|
};
|
|
3048
3048
|
stdin.once("end", onStdinEnd);
|
|
3049
3049
|
yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
|
|
3050
|
-
const rlRef = yield*
|
|
3050
|
+
const rlRef = yield* make10({
|
|
3051
3051
|
acquire: acquireRelease(sync2(() => {
|
|
3052
3052
|
const rl = readline.createInterface({
|
|
3053
3053
|
input: stdin,
|
|
@@ -3086,7 +3086,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3086
3086
|
if (stdin.isTTY)
|
|
3087
3087
|
stdin.setRawMode(enabled);
|
|
3088
3088
|
});
|
|
3089
|
-
const rawModeRef = yield*
|
|
3089
|
+
const rawModeRef = yield* make10({
|
|
3090
3090
|
acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
|
|
3091
3091
|
idleTimeToLive: "10 millis"
|
|
3092
3092
|
});
|
|
@@ -3107,7 +3107,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3107
3107
|
return queue;
|
|
3108
3108
|
});
|
|
3109
3109
|
const readInput = gen(function* () {
|
|
3110
|
-
const queue = yield*
|
|
3110
|
+
const queue = yield* make9();
|
|
3111
3111
|
const handleKeypress = (s, k) => {
|
|
3112
3112
|
const userInput = {
|
|
3113
3113
|
input: fromUndefinedOr(s),
|
|
@@ -5915,6 +5915,12 @@ var RunWaiting = Union([
|
|
|
5915
5915
|
name: String4.check(isMinLength(1)),
|
|
5916
5916
|
verificationId: Id
|
|
5917
5917
|
}),
|
|
5918
|
+
Struct({
|
|
5919
|
+
kind: Literal("claim"),
|
|
5920
|
+
name: String4.check(isMinLength(1)),
|
|
5921
|
+
resource: String4.check(isMinLength(1)),
|
|
5922
|
+
holder: optionalKey(Struct({ runId: Id, loopId: String4 }))
|
|
5923
|
+
}),
|
|
5918
5924
|
Struct({
|
|
5919
5925
|
kind: Literal("queue"),
|
|
5920
5926
|
name: String4.check(isMinLength(1)),
|
|
@@ -9496,13 +9502,13 @@ function makeWith(method, url, urlParams, hash, headers, body) {
|
|
|
9496
9502
|
return self;
|
|
9497
9503
|
}
|
|
9498
9504
|
var empty6 = /* @__PURE__ */ makeWith("GET", "", empty4, /* @__PURE__ */ none(), empty, empty5);
|
|
9499
|
-
var
|
|
9505
|
+
var make5 = (method) => (url, options) => modify(empty6, {
|
|
9500
9506
|
method,
|
|
9501
9507
|
url,
|
|
9502
9508
|
...options ?? undefined
|
|
9503
9509
|
});
|
|
9504
|
-
var get = /* @__PURE__ */
|
|
9505
|
-
var put = /* @__PURE__ */
|
|
9510
|
+
var get = /* @__PURE__ */ make5("GET");
|
|
9511
|
+
var put = /* @__PURE__ */ make5("PUT");
|
|
9506
9512
|
var modify = /* @__PURE__ */ dual(2, (self, options) => {
|
|
9507
9513
|
let result = self;
|
|
9508
9514
|
if (options.method) {
|
|
@@ -9801,7 +9807,7 @@ var Proto7 = {
|
|
|
9801
9807
|
};
|
|
9802
9808
|
},
|
|
9803
9809
|
.../* @__PURE__ */ Object.fromEntries(/* @__PURE__ */ allShort.map(([fullMethod, method]) => [method, function(url, options) {
|
|
9804
|
-
return this.execute(
|
|
9810
|
+
return this.execute(make5(fullMethod)(url, options));
|
|
9805
9811
|
}]))
|
|
9806
9812
|
};
|
|
9807
9813
|
var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
|
|
@@ -13393,7 +13399,7 @@ var makeProto = (options) => {
|
|
|
13393
13399
|
Rpc.key = `effect/rpc/Rpc/${options._tag}`;
|
|
13394
13400
|
return Rpc;
|
|
13395
13401
|
};
|
|
13396
|
-
var
|
|
13402
|
+
var make6 = (tag, options) => {
|
|
13397
13403
|
const successSchema = options?.success ?? Void;
|
|
13398
13404
|
const errorSchema = options?.error ?? Never;
|
|
13399
13405
|
const defectSchema = options?.defect ?? Defect();
|
|
@@ -13604,7 +13610,7 @@ var RpcGroupProto = {
|
|
|
13604
13610
|
});
|
|
13605
13611
|
},
|
|
13606
13612
|
annotateRpcs(service, value) {
|
|
13607
|
-
return this.annotateRpcsMerge(
|
|
13613
|
+
return this.annotateRpcsMerge(make15(service, value));
|
|
13608
13614
|
},
|
|
13609
13615
|
annotateMerge(context) {
|
|
13610
13616
|
return makeProto2({
|
|
@@ -13627,7 +13633,7 @@ var makeProto2 = (options) => Object.assign(function() {}, RpcGroupProto, {
|
|
|
13627
13633
|
requests: options.requests,
|
|
13628
13634
|
annotations: options.annotations
|
|
13629
13635
|
});
|
|
13630
|
-
var
|
|
13636
|
+
var make7 = (...rpcs) => makeProto2({
|
|
13631
13637
|
requests: new Map(rpcs.map((rpc) => [rpc._tag, rpc])),
|
|
13632
13638
|
annotations: empty3()
|
|
13633
13639
|
});
|
|
@@ -13734,96 +13740,96 @@ var ProgramOutcome = Union([
|
|
|
13734
13740
|
Struct({ status: Literal("failed"), failureSummary: String4 })
|
|
13735
13741
|
]);
|
|
13736
13742
|
|
|
13737
|
-
class RunnerReplicaRpcs extends make6(
|
|
13743
|
+
class RunnerReplicaRpcs extends make7(make6("Claim", {
|
|
13738
13744
|
payload: WorkUnitClaimInput,
|
|
13739
13745
|
success: WorkUnitClaimResult,
|
|
13740
13746
|
error: RunnerRpcError
|
|
13741
|
-
}),
|
|
13747
|
+
}), make6("Heartbeat", {
|
|
13742
13748
|
payload: WorkUnitHeartbeatInput,
|
|
13743
13749
|
success: WorkUnitHeartbeatResult,
|
|
13744
13750
|
error: RunnerRpcError
|
|
13745
|
-
}),
|
|
13751
|
+
}), make6("Complete", {
|
|
13746
13752
|
payload: WorkUnitCompletion,
|
|
13747
13753
|
error: RunnerRpcError
|
|
13748
|
-
}),
|
|
13754
|
+
}), make6("Release", {
|
|
13749
13755
|
payload: WorkUnitReleaseInput,
|
|
13750
13756
|
error: RunnerRpcError
|
|
13751
|
-
}),
|
|
13757
|
+
}), make6("Signals", {
|
|
13752
13758
|
payload: { runnerReplicaId: String4 },
|
|
13753
13759
|
success: RunnerSignal,
|
|
13754
13760
|
error: RunnerRpcError,
|
|
13755
13761
|
stream: true
|
|
13756
|
-
}),
|
|
13762
|
+
}), make6("ReportSteer", {
|
|
13757
13763
|
payload: { workUnitId: String4, messageId: String4, delivered: Boolean2 },
|
|
13758
13764
|
success: Void,
|
|
13759
13765
|
error: RunnerRpcError
|
|
13760
|
-
}),
|
|
13766
|
+
}), make6("AppendTranscript", {
|
|
13761
13767
|
payload: { workUnitId: String4, entries: ArraySchema(TranscriptAppendEntry).check(isMaxLength(100)) },
|
|
13762
13768
|
success: Void,
|
|
13763
13769
|
error: RunnerRpcError
|
|
13764
|
-
}),
|
|
13770
|
+
}), make6("CreateCheckpointFile", {
|
|
13765
13771
|
payload: { lease: ProgramLease, byteSize: Int, sha256: String4 },
|
|
13766
13772
|
success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
|
|
13767
13773
|
error: Union([RunnerRpcError, RunFileRefused])
|
|
13768
|
-
}),
|
|
13774
|
+
}), make6("CheckpointFileParts", {
|
|
13769
13775
|
payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
|
|
13770
13776
|
success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
|
|
13771
13777
|
error: RunnerRpcError
|
|
13772
|
-
}),
|
|
13778
|
+
}), make6("CompleteCheckpointFile", {
|
|
13773
13779
|
payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
|
|
13774
13780
|
success: RunFileRecord,
|
|
13775
13781
|
error: RunnerRpcError
|
|
13776
|
-
}),
|
|
13782
|
+
}), make6("SaveCheckpoint", {
|
|
13777
13783
|
payload: { lease: ProgramLease, checkpoint: StepCheckpoint },
|
|
13778
13784
|
success: Void,
|
|
13779
13785
|
error: RunnerRpcError
|
|
13780
|
-
}),
|
|
13786
|
+
}), make6("ResumeCheckpoint", {
|
|
13781
13787
|
payload: { lease: ProgramLease },
|
|
13782
13788
|
success: UndefinedOr(ResumedCheckpoint),
|
|
13783
13789
|
error: RunnerRpcError
|
|
13784
|
-
}),
|
|
13790
|
+
}), make6("SettledCheckpoints", {
|
|
13785
13791
|
success: ArraySchema(Struct({
|
|
13786
13792
|
stepAttemptId: String4,
|
|
13787
13793
|
ref: optionalKey(String4),
|
|
13788
13794
|
repoBinding: optionalKey(WorkUnitRepoBinding)
|
|
13789
13795
|
})),
|
|
13790
13796
|
error: RunnerRpcError
|
|
13791
|
-
}),
|
|
13797
|
+
}), make6("ForgetCheckpoints", {
|
|
13792
13798
|
payload: { stepAttemptIds: ArraySchema(String4) },
|
|
13793
13799
|
success: Void,
|
|
13794
13800
|
error: RunnerRpcError
|
|
13795
|
-
}),
|
|
13801
|
+
}), make6("GitCredential", {
|
|
13796
13802
|
payload: { repoBindingId: String4 },
|
|
13797
13803
|
success: UndefinedOr(Struct({ username: String4, password: String4 })),
|
|
13798
13804
|
error: RunnerRpcError
|
|
13799
|
-
}),
|
|
13805
|
+
}), make6("Bundle", {
|
|
13800
13806
|
payload: { digest: String4 },
|
|
13801
13807
|
success: Struct({ bundle: String4 }),
|
|
13802
13808
|
error: RunnerRpcError
|
|
13803
|
-
}),
|
|
13809
|
+
}), make6("SettledRuns", {
|
|
13804
13810
|
payload: { runIds: ArraySchema(String4) },
|
|
13805
13811
|
success: ArraySchema(String4),
|
|
13806
13812
|
error: RunnerRpcError
|
|
13807
|
-
}),
|
|
13813
|
+
}), make6("KnownEvidence", {
|
|
13808
13814
|
payload: { lease: ProgramLease, trees: ArraySchema(String4) },
|
|
13809
13815
|
success: ArraySchema(Struct({ tree: String4, name: String4, command: String4 })),
|
|
13810
13816
|
error: RunnerRpcError
|
|
13811
13817
|
})).middleware(RunnerAuthentication) {
|
|
13812
13818
|
}
|
|
13813
13819
|
|
|
13814
|
-
class RunnerJournalRpcs extends make6(
|
|
13820
|
+
class RunnerJournalRpcs extends make7(make6("RecordActivity", {
|
|
13815
13821
|
payload: { lease: ProgramLease, name: String4, attempt: Int, exit: Json },
|
|
13816
13822
|
error: RunnerRpcError
|
|
13817
|
-
}),
|
|
13823
|
+
}), make6("DeferredDone", {
|
|
13818
13824
|
payload: { lease: ProgramLease, name: String4, exit: Json },
|
|
13819
13825
|
error: RunnerRpcError
|
|
13820
|
-
}),
|
|
13826
|
+
}), make6("ScheduleClock", {
|
|
13821
13827
|
payload: { lease: ProgramLease, name: String4, deferredName: String4, durationMillis: Int },
|
|
13822
13828
|
error: RunnerRpcError
|
|
13823
|
-
}),
|
|
13829
|
+
}), make6("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make6("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
|
|
13824
13830
|
}
|
|
13825
13831
|
|
|
13826
|
-
class RunnerCapabilityRpcs extends make6(
|
|
13832
|
+
class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
13827
13833
|
payload: {
|
|
13828
13834
|
lease: ProgramLease,
|
|
13829
13835
|
step: String4,
|
|
@@ -13841,7 +13847,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
13841
13847
|
},
|
|
13842
13848
|
success: Struct({ questionId: String4 }),
|
|
13843
13849
|
error: RunnerRpcError
|
|
13844
|
-
}),
|
|
13850
|
+
}), make6("StartAgentStep", {
|
|
13845
13851
|
payload: {
|
|
13846
13852
|
lease: ProgramLease,
|
|
13847
13853
|
step: String4,
|
|
@@ -13857,7 +13863,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
13857
13863
|
},
|
|
13858
13864
|
success: Struct({ stepAttemptId: String4 }),
|
|
13859
13865
|
error: RunnerRpcError
|
|
13860
|
-
}),
|
|
13866
|
+
}), make6("StartVerification", {
|
|
13861
13867
|
payload: {
|
|
13862
13868
|
lease: ProgramLease,
|
|
13863
13869
|
step: String4,
|
|
@@ -13875,7 +13881,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
13875
13881
|
},
|
|
13876
13882
|
success: Struct({ verificationId: String4 }),
|
|
13877
13883
|
error: RunnerRpcError
|
|
13878
|
-
}),
|
|
13884
|
+
}), make6("AwaitEvent", {
|
|
13879
13885
|
payload: {
|
|
13880
13886
|
lease: ProgramLease,
|
|
13881
13887
|
step: String4,
|
|
@@ -13891,7 +13897,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
13891
13897
|
})))
|
|
13892
13898
|
},
|
|
13893
13899
|
error: RunnerRpcError
|
|
13894
|
-
}),
|
|
13900
|
+
}), make6("ClaimResource", {
|
|
13895
13901
|
payload: {
|
|
13896
13902
|
lease: ProgramLease,
|
|
13897
13903
|
step: String4,
|
|
@@ -13900,7 +13906,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
13900
13906
|
action: Literals(["claim", "take_over", "let_go"])
|
|
13901
13907
|
},
|
|
13902
13908
|
error: RunnerRpcError
|
|
13903
|
-
}),
|
|
13909
|
+
}), make6("AdmitChild", {
|
|
13904
13910
|
payload: {
|
|
13905
13911
|
lease: ProgramLease,
|
|
13906
13912
|
step: String4,
|
|
@@ -13910,7 +13916,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
13910
13916
|
},
|
|
13911
13917
|
success: Struct({ runId: String4 }),
|
|
13912
13918
|
error: RunnerRpcError
|
|
13913
|
-
}),
|
|
13919
|
+
}), make6("StoreArtifact", {
|
|
13914
13920
|
payload: {
|
|
13915
13921
|
lease: ProgramLease,
|
|
13916
13922
|
step: String4,
|
|
@@ -13922,7 +13928,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
13922
13928
|
},
|
|
13923
13929
|
success: Struct({ artifactId: String4 }),
|
|
13924
13930
|
error: RunnerRpcError
|
|
13925
|
-
}),
|
|
13931
|
+
}), make6("RecordNote", {
|
|
13926
13932
|
payload: {
|
|
13927
13933
|
lease: ProgramLease,
|
|
13928
13934
|
step: String4,
|
|
@@ -13930,7 +13936,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
13930
13936
|
artifactId: optional(String4)
|
|
13931
13937
|
},
|
|
13932
13938
|
error: RunnerRpcError
|
|
13933
|
-
}),
|
|
13939
|
+
}), make6("PerformHostEffect", {
|
|
13934
13940
|
payload: {
|
|
13935
13941
|
lease: ProgramLease,
|
|
13936
13942
|
step: String4,
|
|
@@ -13958,7 +13964,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
13958
13964
|
},
|
|
13959
13965
|
success: UndefinedOr(Struct({ id: String4, number: String4, url: String4 })),
|
|
13960
13966
|
error: RunnerRpcError
|
|
13961
|
-
}),
|
|
13967
|
+
}), make6("AlertTask", {
|
|
13962
13968
|
payload: {
|
|
13963
13969
|
lease: ProgramLease,
|
|
13964
13970
|
step: String4,
|
|
@@ -13975,7 +13981,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
13975
13981
|
joined: optionalKey(Struct({ kind: Literals(["run", "recent"]), runId: String4 }))
|
|
13976
13982
|
}),
|
|
13977
13983
|
error: RunnerRpcError
|
|
13978
|
-
}),
|
|
13984
|
+
}), make6("ReadTranscripts", {
|
|
13979
13985
|
payload: { lease: ProgramLease, step: String4, days: Int },
|
|
13980
13986
|
success: Struct({
|
|
13981
13987
|
runs: ArraySchema(Struct({
|
|
@@ -13994,7 +14000,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
13994
14000
|
}))
|
|
13995
14001
|
}),
|
|
13996
14002
|
error: RunnerRpcError
|
|
13997
|
-
}),
|
|
14003
|
+
}), make6("PipelineStatus", {
|
|
13998
14004
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
|
|
13999
14005
|
success: Struct({
|
|
14000
14006
|
head: String4,
|
|
@@ -14007,14 +14013,26 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14007
14013
|
logTail: optionalKey(String4)
|
|
14008
14014
|
})),
|
|
14009
14015
|
readAt: optionalKey(String4),
|
|
14010
|
-
runnerChecks: optionalKey(ArraySchema(String4))
|
|
14016
|
+
runnerChecks: optionalKey(ArraySchema(String4)),
|
|
14017
|
+
approved: optionalKey(String4),
|
|
14018
|
+
repository: optionalKey(String4),
|
|
14019
|
+
target: optionalKey(Struct({
|
|
14020
|
+
branch: String4,
|
|
14021
|
+
head: String4,
|
|
14022
|
+
jobs: ArraySchema(Struct({
|
|
14023
|
+
name: String4,
|
|
14024
|
+
status: Literals(["running", "success", "failed", "skipped"]),
|
|
14025
|
+
url: optionalKey(String4),
|
|
14026
|
+
logTail: optionalKey(String4)
|
|
14027
|
+
}))
|
|
14028
|
+
}))
|
|
14011
14029
|
}),
|
|
14012
14030
|
error: RunnerRpcError
|
|
14013
|
-
}),
|
|
14031
|
+
}), make6("ReportPipeline", {
|
|
14014
14032
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4, verification: String4 },
|
|
14015
14033
|
success: Struct({ head: String4, status: Literals(["success", "failed"]) }),
|
|
14016
14034
|
error: RunnerRpcError
|
|
14017
|
-
}),
|
|
14035
|
+
}), make6("ReviewThreads", {
|
|
14018
14036
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
|
|
14019
14037
|
success: Struct({
|
|
14020
14038
|
threads: ArraySchema(Struct({
|
|
@@ -14026,7 +14044,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14026
14044
|
}))
|
|
14027
14045
|
}),
|
|
14028
14046
|
error: RunnerRpcError
|
|
14029
|
-
}),
|
|
14047
|
+
}), make6("OpenChangeRequests", {
|
|
14030
14048
|
payload: { lease: ProgramLease, step: String4, authors: NonEmptyArray(String4) },
|
|
14031
14049
|
success: Struct({
|
|
14032
14050
|
changeRequests: ArraySchema(Struct({
|
|
@@ -14040,7 +14058,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14040
14058
|
}))
|
|
14041
14059
|
}),
|
|
14042
14060
|
error: RunnerRpcError
|
|
14043
|
-
}),
|
|
14061
|
+
}), make6("OwnChangeRequests", {
|
|
14044
14062
|
payload: { lease: ProgramLease, step: String4 },
|
|
14045
14063
|
success: Struct({
|
|
14046
14064
|
changeRequests: ArraySchema(Struct({
|
|
@@ -14053,7 +14071,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14053
14071
|
}))
|
|
14054
14072
|
}),
|
|
14055
14073
|
error: RunnerRpcError
|
|
14056
|
-
}),
|
|
14074
|
+
}), make6("Propose", {
|
|
14057
14075
|
payload: {
|
|
14058
14076
|
lease: ProgramLease,
|
|
14059
14077
|
step: String4,
|
|
@@ -14080,7 +14098,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14080
14098
|
matched: optionalKey(Boolean2)
|
|
14081
14099
|
}),
|
|
14082
14100
|
error: RunnerRpcError
|
|
14083
|
-
}),
|
|
14101
|
+
}), make6("ReadProject", {
|
|
14084
14102
|
payload: { lease: ProgramLease, step: String4, projectId: String4 },
|
|
14085
14103
|
success: Struct({
|
|
14086
14104
|
project: Struct({ id: String4, name: String4 }),
|
|
@@ -14103,7 +14121,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14103
14121
|
taskChanges: ArraySchema(Struct({ taskKey: String4, title: String4, change: String4, at: String4 }))
|
|
14104
14122
|
}),
|
|
14105
14123
|
error: RunnerRpcError
|
|
14106
|
-
}),
|
|
14124
|
+
}), make6("DraftUpdate", {
|
|
14107
14125
|
payload: {
|
|
14108
14126
|
lease: ProgramLease,
|
|
14109
14127
|
step: String4,
|
|
@@ -14118,7 +14136,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14118
14136
|
},
|
|
14119
14137
|
success: Struct({ id: String4 }),
|
|
14120
14138
|
error: RunnerRpcError
|
|
14121
|
-
}),
|
|
14139
|
+
}), make6("CreatePlanTasks", {
|
|
14122
14140
|
payload: {
|
|
14123
14141
|
lease: ProgramLease,
|
|
14124
14142
|
projectId: optionalKey(String4),
|
|
@@ -14133,11 +14151,11 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14133
14151
|
},
|
|
14134
14152
|
success: ArraySchema(Struct({ key: String4, taskId: String4 })),
|
|
14135
14153
|
error: RunnerRpcError
|
|
14136
|
-
}),
|
|
14154
|
+
}), make6("IntegrationBranch", {
|
|
14137
14155
|
payload: { lease: ProgramLease, repoBindingId: optionalKey(String4) },
|
|
14138
14156
|
success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
|
|
14139
14157
|
error: RunnerRpcError
|
|
14140
|
-
}),
|
|
14158
|
+
}), make6("MergeChangeRequest", {
|
|
14141
14159
|
payload: {
|
|
14142
14160
|
lease: ProgramLease,
|
|
14143
14161
|
step: String4,
|
|
@@ -14150,7 +14168,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14150
14168
|
Struct({ status: Literal("moved"), head: String4 })
|
|
14151
14169
|
]),
|
|
14152
14170
|
error: RunnerRpcError
|
|
14153
|
-
}),
|
|
14171
|
+
}), make6("ApproveChangeRequest", {
|
|
14154
14172
|
payload: {
|
|
14155
14173
|
lease: ProgramLease,
|
|
14156
14174
|
step: String4,
|
|
@@ -14165,7 +14183,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14165
14183
|
Struct({ approved: Literal(false), reason: String4 })
|
|
14166
14184
|
]),
|
|
14167
14185
|
error: RunnerRpcError
|
|
14168
|
-
}),
|
|
14186
|
+
}), make6("CloseChangeRequest", {
|
|
14169
14187
|
payload: {
|
|
14170
14188
|
lease: ProgramLease,
|
|
14171
14189
|
step: String4,
|
|
@@ -14175,7 +14193,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14175
14193
|
},
|
|
14176
14194
|
success: Struct({ closed: Boolean2, head: optionalKey(String4) }),
|
|
14177
14195
|
error: RunnerRpcError
|
|
14178
|
-
}),
|
|
14196
|
+
}), make6("RerunPipeline", {
|
|
14179
14197
|
payload: {
|
|
14180
14198
|
lease: ProgramLease,
|
|
14181
14199
|
step: String4,
|
|
@@ -14185,7 +14203,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14185
14203
|
},
|
|
14186
14204
|
success: Struct({ head: String4, pipelines: Int }),
|
|
14187
14205
|
error: RunnerRpcError
|
|
14188
|
-
}),
|
|
14206
|
+
}), make6("PublishRelease", {
|
|
14189
14207
|
payload: {
|
|
14190
14208
|
lease: ProgramLease,
|
|
14191
14209
|
step: String4,
|
|
@@ -14196,14 +14214,14 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14196
14214
|
},
|
|
14197
14215
|
success: Struct({ tag: String4, revision: String4, url: String4 }),
|
|
14198
14216
|
error: RunnerRpcError
|
|
14199
|
-
}),
|
|
14217
|
+
}), make6("ProgramSecrets", {
|
|
14200
14218
|
payload: { lease: ProgramLease },
|
|
14201
14219
|
success: Record(String4, String4),
|
|
14202
14220
|
error: RunnerRpcError
|
|
14203
14221
|
})).middleware(RunnerAuthentication) {
|
|
14204
14222
|
}
|
|
14205
14223
|
|
|
14206
|
-
class RunnerRunFileRpcs extends make6(
|
|
14224
|
+
class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
|
|
14207
14225
|
payload: {
|
|
14208
14226
|
lease: ProgramLease,
|
|
14209
14227
|
step: String4,
|
|
@@ -14215,11 +14233,11 @@ class RunnerRunFileRpcs extends make6(make5("CreateRunFile", {
|
|
|
14215
14233
|
},
|
|
14216
14234
|
success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
|
|
14217
14235
|
error: Union([RunnerRpcError, RunFileRefused])
|
|
14218
|
-
}),
|
|
14236
|
+
}), make6("RunFileParts", {
|
|
14219
14237
|
payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
|
|
14220
14238
|
success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
|
|
14221
14239
|
error: RunnerRpcError
|
|
14222
|
-
}),
|
|
14240
|
+
}), make6("CompleteRunFile", {
|
|
14223
14241
|
payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
|
|
14224
14242
|
success: RunFileRecord,
|
|
14225
14243
|
error: RunnerRpcError
|
|
@@ -14308,7 +14326,7 @@ function toStoredSession(token, existingRefreshToken) {
|
|
|
14308
14326
|
}
|
|
14309
14327
|
function startLoopbackServer(input) {
|
|
14310
14328
|
return gen(function* () {
|
|
14311
|
-
const code = yield*
|
|
14329
|
+
const code = yield* make16();
|
|
14312
14330
|
const context2 = yield* context();
|
|
14313
14331
|
const runSyncExit = runSyncExitWith(context2);
|
|
14314
14332
|
const server = yield* acquireRelease(sync2(() => Bun.serve({
|
|
@@ -14848,7 +14866,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
14848
14866
|
let lastId = 0;
|
|
14849
14867
|
let lost = false;
|
|
14850
14868
|
const notifications = yield* unbounded2();
|
|
14851
|
-
const ended = yield*
|
|
14869
|
+
const ended = yield* make16();
|
|
14852
14870
|
const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
|
|
14853
14871
|
onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
|
|
14854
14872
|
onNone: () => void_3,
|
|
@@ -14875,7 +14893,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
14875
14893
|
if (lost)
|
|
14876
14894
|
return yield* new HerdrCoreConnectionLost2({ method });
|
|
14877
14895
|
const id = ++lastId;
|
|
14878
|
-
const deferred = yield*
|
|
14896
|
+
const deferred = yield* make16();
|
|
14879
14897
|
pending.set(id, { method, deferred });
|
|
14880
14898
|
yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
|
|
14881
14899
|
return yield* _await(deferred);
|
|
@@ -14949,14 +14967,14 @@ var herdrCoreOver = (transport) => ({
|
|
|
14949
14967
|
return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
|
|
14950
14968
|
};
|
|
14951
14969
|
const snapshot = { type: "snapshot", terminals: subscribed.terminals };
|
|
14952
|
-
return concat(
|
|
14970
|
+
return concat(make11(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
|
|
14953
14971
|
}))
|
|
14954
14972
|
});
|
|
14955
14973
|
var spawnedTransport = (env) => gen(function* () {
|
|
14956
14974
|
const spawner = yield* ChildProcessSpawner;
|
|
14957
14975
|
const input = yield* unbounded2();
|
|
14958
14976
|
const encoder = new TextEncoder;
|
|
14959
|
-
const handle = yield* spawner.spawn(
|
|
14977
|
+
const handle = yield* spawner.spawn(make3("herdr-core", ["connect"], {
|
|
14960
14978
|
extendEnv: false,
|
|
14961
14979
|
env,
|
|
14962
14980
|
stdin: fromQueue(input),
|
|
@@ -14987,7 +15005,7 @@ var updateHerdrCore2 = (options) => gen(function* () {
|
|
|
14987
15005
|
const spawner = yield* ChildProcessSpawner;
|
|
14988
15006
|
const env = coreEnv(options);
|
|
14989
15007
|
const run = (args) => gen(function* () {
|
|
14990
|
-
const handle = yield* spawner.spawn(
|
|
15008
|
+
const handle = yield* spawner.spawn(make3("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
|
|
14991
15009
|
const [stdout, stderr, exitCode] = yield* all3([
|
|
14992
15010
|
mkString(decodeText(handle.stdout)),
|
|
14993
15011
|
mkString(decodeText(handle.stderr)),
|
|
@@ -15013,7 +15031,7 @@ class CommandFailed2 extends TaggedError("CommandFailed") {
|
|
|
15013
15031
|
}
|
|
15014
15032
|
var runCommand2 = (command, args, options = {}) => gen(function* () {
|
|
15015
15033
|
const spawner = yield* ChildProcessSpawner;
|
|
15016
|
-
const handle = yield* spawner.spawn(
|
|
15034
|
+
const handle = yield* spawner.spawn(make3(command, args, {
|
|
15017
15035
|
stdin: "ignore",
|
|
15018
15036
|
...options.cwd === undefined ? undefined : { cwd: options.cwd },
|
|
15019
15037
|
...options.env === undefined ? undefined : { extendEnv: true, env: options.env }
|
|
@@ -15039,8 +15057,8 @@ var shellOutputTailChars2 = 64 * 1024;
|
|
|
15039
15057
|
var runProcess2 = (argv, options) => gen(function* () {
|
|
15040
15058
|
const spawner = yield* ChildProcessSpawner;
|
|
15041
15059
|
const [command, ...args] = argv;
|
|
15042
|
-
const handle = yield* spawner.spawn(
|
|
15043
|
-
stdin: options.stdin === undefined ? "ignore" :
|
|
15060
|
+
const handle = yield* spawner.spawn(make3(command, args, {
|
|
15061
|
+
stdin: options.stdin === undefined ? "ignore" : make11(new TextEncoder().encode(options.stdin)),
|
|
15044
15062
|
...options.cwd === undefined ? undefined : { cwd: options.cwd },
|
|
15045
15063
|
env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
|
|
15046
15064
|
}));
|
|
@@ -15462,4 +15480,4 @@ function checkServices(declaration) {
|
|
|
15462
15480
|
return isSome(decoded) ? [...new Set(decoded.value.services)] : undefined;
|
|
15463
15481
|
}
|
|
15464
15482
|
|
|
15465
|
-
export { Clock, currentTimeMillis, WebCrypto, SecureRandom, layerWebCrypto, makeUnsafe, formatIso, empty, fromInput, merge, runMain, layer, layer2, Stdio, Terminal, layer3, error, log, toDate, parseDate, toIso, currentDate, wallClockMillis, waitingOnWords, queueWords, scanDurableSurface, redactResponseSurface, redactCredentials, redactedOutputTail, SafeJson, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, defaultRunnerCapabilities, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, repositoryKey, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw,
|
|
15483
|
+
export { Clock, currentTimeMillis, WebCrypto, SecureRandom, layerWebCrypto, makeUnsafe, formatIso, empty, fromInput, merge, runMain, layer, layer2, Stdio, Terminal, layer3, error, log, toDate, parseDate, toIso, currentDate, wallClockMillis, waitingOnWords, queueWords, scanDurableSurface, redactResponseSurface, redactCredentials, redactedOutputTail, SafeJson, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, defaultRunnerCapabilities, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, repositoryKey, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw, make5, get, put, setHeaders, bodyUint8Array, schemaBodyJson, filterStatusOk, HttpClient, execute, get2, Fetch, layer4, Socket, SocketReadError, SocketError, WebSocketConstructor, layerWebSocketConstructorGlobal, layerWebSocket, runDisplayLabels, listedSummary, KitName, KitDigest, defaultKitName, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, removeAgentCredential, normalizeApiUrl, isStoredAgentCredential, isStreamSchema, getStreamSchemas, make6, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make7, Service, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, RunSettled, UpdateAvailable, RunnerReplicaRpcs, RunnerRunFileRpcs, ProgramRpcs, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, setupMcpAgentCredential, generateAgentKeyPair, HERDR_CORE_GENERATION2, HERDR_CORE_INSTALL_COMMAND2, HerdrCoreMissing2, HerdrCoreIncompatible2, HerdrCoreConnectionLost2, HerdrCoreRpcError2, HerdrCoreUpdateFailed2, HerdrCore2, herdrCoreLayer2, herdrCoreTransportLayer2, updateHerdrCore2, CommandFailed2, runCommand2, withoutPreloads2, shellOutputTailChars2, runProcess2, CommandRunner2, runShell2, detectHarnesses2, kitHarnesses, isKitHarness, instructionsStart, instructionsEnd, harnessNames, renderMcpServer, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices };
|