@kitman-sh/cli 0.14.1 → 0.14.2
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-5jqqhvv2.js → chunk-0r9tp5pz.js} +4 -4
- package/dist/{chunk-wttgq85b.js → chunk-1jabs81x.js} +70 -28
- package/dist/{chunk-0axm9scx.js → chunk-24j1cmsm.js} +23 -23
- package/dist/{chunk-pyss20q2.js → chunk-39pdxhcv.js} +3 -3
- package/dist/{chunk-jnpv483d.js → chunk-3csj1ve1.js} +4 -4
- package/dist/{chunk-fch7pjzh.js → chunk-4xez238w.js} +2 -2
- package/dist/{chunk-27k0egfz.js → chunk-80vwvv5x.js} +39 -39
- package/dist/{chunk-rbbh4f56.js → chunk-avhqm9p0.js} +17 -17
- package/dist/{chunk-cwdrhsvk.js → chunk-e024f8af.js} +2 -2
- package/dist/{chunk-77jk3v8v.js → chunk-ffq8vvvx.js} +7 -7
- package/dist/{chunk-nvncrs4n.js → chunk-ge9qjp6s.js} +4 -4
- package/dist/{chunk-kwkh8hxt.js → chunk-gwz39037.js} +1 -1
- package/dist/{chunk-c80dvhxf.js → chunk-h6kd80nr.js} +1 -1
- package/dist/{chunk-a9srrnsk.js → chunk-hza25m2e.js} +23 -23
- package/dist/{chunk-jp7cjnng.js → chunk-jzfy127y.js} +4 -4
- package/dist/{chunk-enabwyrn.js → chunk-m9x7feh0.js} +7 -7
- package/dist/{chunk-5x44qb6d.js → chunk-q4ch3t9q.js} +6 -6
- package/dist/{chunk-4qpmjrd2.js → chunk-qqmxhk9w.js} +14 -60
- package/dist/{chunk-f1y7ysjg.js → chunk-ryxff0xk.js} +108 -108
- package/dist/{chunk-vt8aqeby.js → chunk-scdr623z.js} +1 -1
- package/dist/{chunk-gvs5fcvy.js → chunk-t9chwen8.js} +2 -2
- package/dist/{chunk-vx4qe0fe.js → chunk-v86jpzpr.js} +7 -7
- package/dist/{chunk-93xj74qp.js → chunk-vfw3xn1e.js} +3 -3
- package/dist/{chunk-zr59g5bk.js → chunk-yfag1eey.js} +5 -5
- package/dist/{chunk-zw2mzy00.js → chunk-z7c2ndfg.js} +11 -11
- 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,
|
|
@@ -263,7 +266,7 @@ import {
|
|
|
263
266
|
decodeJsonStringOption,
|
|
264
267
|
encodeJsonStringSync,
|
|
265
268
|
encodePrettyJsonString
|
|
266
|
-
} from "./chunk-
|
|
269
|
+
} from "./chunk-1jabs81x.js";
|
|
267
270
|
import {
|
|
268
271
|
map,
|
|
269
272
|
makeEquivalence,
|
|
@@ -272,8 +275,8 @@ import {
|
|
|
272
275
|
systemError,
|
|
273
276
|
badArgument,
|
|
274
277
|
makeUnsafe2,
|
|
278
|
+
make7,
|
|
275
279
|
make8,
|
|
276
|
-
make9,
|
|
277
280
|
sliding,
|
|
278
281
|
unbounded2,
|
|
279
282
|
offer,
|
|
@@ -289,13 +292,13 @@ import {
|
|
|
289
292
|
isSink,
|
|
290
293
|
fromChannel,
|
|
291
294
|
drain,
|
|
292
|
-
|
|
295
|
+
make9,
|
|
293
296
|
get3,
|
|
294
297
|
isStream,
|
|
295
298
|
fromChannel2,
|
|
296
299
|
callback,
|
|
297
300
|
empty2,
|
|
298
|
-
|
|
301
|
+
make10,
|
|
299
302
|
suspend,
|
|
300
303
|
fail2,
|
|
301
304
|
fromQueue,
|
|
@@ -321,16 +324,16 @@ import {
|
|
|
321
324
|
mkArrayBuffer,
|
|
322
325
|
toReadableStreamEffect,
|
|
323
326
|
FileSystem,
|
|
324
|
-
|
|
327
|
+
make11,
|
|
325
328
|
FileTypeId,
|
|
326
329
|
WatchBackend,
|
|
327
330
|
Path,
|
|
328
|
-
|
|
331
|
+
make12,
|
|
329
332
|
option,
|
|
330
333
|
String2,
|
|
331
334
|
optionalEnv,
|
|
332
335
|
harnessesUnsupportedInSrt2
|
|
333
|
-
} from "./chunk-
|
|
336
|
+
} from "./chunk-avhqm9p0.js";
|
|
334
337
|
import {
|
|
335
338
|
isDateTime,
|
|
336
339
|
Numeric,
|
|
@@ -343,21 +346,18 @@ import {
|
|
|
343
346
|
SecretScope,
|
|
344
347
|
SecretHosts,
|
|
345
348
|
isSecretReference
|
|
346
|
-
} from "./chunk-
|
|
349
|
+
} from "./chunk-h6kd80nr.js";
|
|
347
350
|
import {
|
|
348
|
-
isRedacted,
|
|
349
|
-
make,
|
|
350
|
-
value,
|
|
351
351
|
ExitCode,
|
|
352
352
|
ProcessId,
|
|
353
353
|
makeHandle,
|
|
354
|
-
|
|
354
|
+
make,
|
|
355
355
|
ChildProcessSpawner,
|
|
356
356
|
display,
|
|
357
|
-
|
|
357
|
+
make2,
|
|
358
358
|
parseFdName,
|
|
359
359
|
fdName
|
|
360
|
-
} from "./chunk-
|
|
360
|
+
} from "./chunk-qqmxhk9w.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 make3 = /* @__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 = make3;
|
|
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 ?? make7(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(make2(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(make2(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(make2(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 make(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) => make11({
|
|
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__ */ make12({
|
|
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__ */ make12({
|
|
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__ */ make12({
|
|
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] = make16(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] = make16(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__ */ make13((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) ? make16(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* make8();
|
|
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* make9({
|
|
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* make9({
|
|
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* make8();
|
|
3114
3114
|
const handleKeypress = (s, k) => {
|
|
3115
3115
|
const userInput = {
|
|
3116
3116
|
input: fromUndefinedOr(s),
|
|
@@ -7511,7 +7511,7 @@ var RunnerCapabilities = Struct({
|
|
|
7511
7511
|
resolve: optionalKey(Boolean2),
|
|
7512
7512
|
deploy: optionalKey(Boolean2)
|
|
7513
7513
|
});
|
|
7514
|
-
var MaxRunnerConcurrency =
|
|
7514
|
+
var MaxRunnerConcurrency = 32;
|
|
7515
7515
|
var PinnedImage = String4.check(isMaxLength(500), isPattern(new RegExp("^[^\\s@]+@sha256:[a-f0-9]{64}$", "u")));
|
|
7516
7516
|
var RunnerSettings = Struct({
|
|
7517
7517
|
concurrency: Int.check(isGreaterThanOrEqualTo(1), isLessThanOrEqualTo(MaxRunnerConcurrency)),
|
|
@@ -10135,14 +10135,14 @@ function makeWith(method, url, urlParams, hash, headers, body) {
|
|
|
10135
10135
|
return self;
|
|
10136
10136
|
}
|
|
10137
10137
|
var empty6 = /* @__PURE__ */ makeWith("GET", "", empty4, /* @__PURE__ */ none(), empty, empty5);
|
|
10138
|
-
var
|
|
10138
|
+
var make4 = (method) => (url, options) => modify(empty6, {
|
|
10139
10139
|
method,
|
|
10140
10140
|
url,
|
|
10141
10141
|
...options ?? undefined
|
|
10142
10142
|
});
|
|
10143
|
-
var get = /* @__PURE__ */
|
|
10144
|
-
var post = /* @__PURE__ */
|
|
10145
|
-
var put = /* @__PURE__ */
|
|
10143
|
+
var get = /* @__PURE__ */ make4("GET");
|
|
10144
|
+
var post = /* @__PURE__ */ make4("POST");
|
|
10145
|
+
var put = /* @__PURE__ */ make4("PUT");
|
|
10146
10146
|
var modify = /* @__PURE__ */ dual(2, (self, options) => {
|
|
10147
10147
|
let result = self;
|
|
10148
10148
|
if (options.method) {
|
|
@@ -10443,7 +10443,7 @@ var Proto7 = {
|
|
|
10443
10443
|
};
|
|
10444
10444
|
},
|
|
10445
10445
|
.../* @__PURE__ */ Object.fromEntries(/* @__PURE__ */ allShort.map(([fullMethod, method]) => [method, function(url, options) {
|
|
10446
|
-
return this.execute(
|
|
10446
|
+
return this.execute(make4(fullMethod)(url, options));
|
|
10447
10447
|
}]))
|
|
10448
10448
|
};
|
|
10449
10449
|
var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
|
|
@@ -14174,7 +14174,7 @@ var makeProto = (options) => {
|
|
|
14174
14174
|
Rpc.key = `effect/rpc/Rpc/${options._tag}`;
|
|
14175
14175
|
return Rpc;
|
|
14176
14176
|
};
|
|
14177
|
-
var
|
|
14177
|
+
var make5 = (tag, options) => {
|
|
14178
14178
|
const successSchema = options?.success ?? Void;
|
|
14179
14179
|
const errorSchema = options?.error ?? Never;
|
|
14180
14180
|
const defectSchema = options?.defect ?? Defect();
|
|
@@ -14385,7 +14385,7 @@ var RpcGroupProto = {
|
|
|
14385
14385
|
});
|
|
14386
14386
|
},
|
|
14387
14387
|
annotateRpcs(service, value) {
|
|
14388
|
-
return this.annotateRpcsMerge(
|
|
14388
|
+
return this.annotateRpcsMerge(make14(service, value));
|
|
14389
14389
|
},
|
|
14390
14390
|
annotateMerge(context) {
|
|
14391
14391
|
return makeProto2({
|
|
@@ -14408,7 +14408,7 @@ var makeProto2 = (options) => Object.assign(function() {}, RpcGroupProto, {
|
|
|
14408
14408
|
requests: options.requests,
|
|
14409
14409
|
annotations: options.annotations
|
|
14410
14410
|
});
|
|
14411
|
-
var
|
|
14411
|
+
var make6 = (...rpcs) => makeProto2({
|
|
14412
14412
|
requests: new Map(rpcs.map((rpc) => [rpc._tag, rpc])),
|
|
14413
14413
|
annotations: empty3()
|
|
14414
14414
|
});
|
|
@@ -14514,77 +14514,77 @@ var ProgramOutcome = Union([
|
|
|
14514
14514
|
Struct({ status: Literal("failed"), failureSummary: String4 })
|
|
14515
14515
|
]);
|
|
14516
14516
|
|
|
14517
|
-
class RunnerReplicaRpcs extends
|
|
14517
|
+
class RunnerReplicaRpcs extends make6(make5("Claim", {
|
|
14518
14518
|
payload: WorkUnitClaimInput,
|
|
14519
14519
|
success: WorkUnitClaimResult,
|
|
14520
14520
|
error: RunnerRpcError
|
|
14521
|
-
}),
|
|
14521
|
+
}), make5("Heartbeat", {
|
|
14522
14522
|
payload: WorkUnitHeartbeatInput,
|
|
14523
14523
|
success: WorkUnitHeartbeatResult,
|
|
14524
14524
|
error: RunnerRpcError
|
|
14525
|
-
}),
|
|
14525
|
+
}), make5("Complete", {
|
|
14526
14526
|
payload: WorkUnitCompletion,
|
|
14527
14527
|
error: RunnerRpcError
|
|
14528
|
-
}),
|
|
14528
|
+
}), make5("Release", {
|
|
14529
14529
|
payload: WorkUnitReleaseInput,
|
|
14530
14530
|
error: RunnerRpcError
|
|
14531
|
-
}),
|
|
14531
|
+
}), make5("Signals", {
|
|
14532
14532
|
payload: { runnerReplicaId: String4 },
|
|
14533
14533
|
success: RunnerSignal,
|
|
14534
14534
|
error: RunnerRpcError,
|
|
14535
14535
|
stream: true
|
|
14536
|
-
}),
|
|
14536
|
+
}), make5("ReportSteer", {
|
|
14537
14537
|
payload: { workUnitId: String4, messageId: String4, delivered: Boolean2 },
|
|
14538
14538
|
success: Void,
|
|
14539
14539
|
error: RunnerRpcError
|
|
14540
|
-
}),
|
|
14540
|
+
}), make5("AppendTranscript", {
|
|
14541
14541
|
payload: { workUnitId: String4, entries: ArraySchema(TranscriptAppendEntry).check(isMaxLength(100)) },
|
|
14542
14542
|
success: Void,
|
|
14543
14543
|
error: RunnerRpcError
|
|
14544
|
-
}),
|
|
14544
|
+
}), make5("CreateCheckpointFile", {
|
|
14545
14545
|
payload: { lease: ProgramLease, byteSize: Int, sha256: String4 },
|
|
14546
14546
|
success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
|
|
14547
14547
|
error: Union([RunnerRpcError, RunFileRefused])
|
|
14548
|
-
}),
|
|
14548
|
+
}), make5("CheckpointFileParts", {
|
|
14549
14549
|
payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
|
|
14550
14550
|
success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
|
|
14551
14551
|
error: RunnerRpcError
|
|
14552
|
-
}),
|
|
14552
|
+
}), make5("CompleteCheckpointFile", {
|
|
14553
14553
|
payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
|
|
14554
14554
|
success: RunFileRecord,
|
|
14555
14555
|
error: RunnerRpcError
|
|
14556
|
-
}),
|
|
14556
|
+
}), make5("SaveCheckpoint", {
|
|
14557
14557
|
payload: { lease: ProgramLease, checkpoint: StepCheckpoint },
|
|
14558
14558
|
success: Void,
|
|
14559
14559
|
error: RunnerRpcError
|
|
14560
|
-
}),
|
|
14560
|
+
}), make5("ResumeCheckpoint", {
|
|
14561
14561
|
payload: { lease: ProgramLease },
|
|
14562
14562
|
success: UndefinedOr(ResumedCheckpoint),
|
|
14563
14563
|
error: RunnerRpcError
|
|
14564
|
-
}),
|
|
14564
|
+
}), make5("SettledCheckpoints", {
|
|
14565
14565
|
success: ArraySchema(Struct({
|
|
14566
14566
|
stepAttemptId: String4,
|
|
14567
14567
|
ref: optionalKey(String4),
|
|
14568
14568
|
repoBinding: optionalKey(WorkUnitRepoBinding)
|
|
14569
14569
|
})),
|
|
14570
14570
|
error: RunnerRpcError
|
|
14571
|
-
}),
|
|
14571
|
+
}), make5("ForgetCheckpoints", {
|
|
14572
14572
|
payload: { stepAttemptIds: ArraySchema(String4) },
|
|
14573
14573
|
success: Void,
|
|
14574
14574
|
error: RunnerRpcError
|
|
14575
|
-
}),
|
|
14575
|
+
}), make5("GitCredential", {
|
|
14576
14576
|
payload: { repoBindingId: String4 },
|
|
14577
14577
|
success: UndefinedOr(Struct({ username: String4, password: String4 })),
|
|
14578
14578
|
error: RunnerRpcError
|
|
14579
|
-
}),
|
|
14579
|
+
}), make5("Bundle", {
|
|
14580
14580
|
payload: { digest: String4 },
|
|
14581
14581
|
success: Struct({ bundle: String4 }),
|
|
14582
14582
|
error: RunnerRpcError
|
|
14583
|
-
}),
|
|
14583
|
+
}), make5("SettledRuns", {
|
|
14584
14584
|
payload: { runIds: ArraySchema(String4) },
|
|
14585
14585
|
success: ArraySchema(String4),
|
|
14586
14586
|
error: RunnerRpcError
|
|
14587
|
-
}),
|
|
14587
|
+
}), make5("KnownEvidence", {
|
|
14588
14588
|
payload: { lease: ProgramLease, trees: ArraySchema(String4) },
|
|
14589
14589
|
success: ArraySchema(Struct({
|
|
14590
14590
|
tree: String4,
|
|
@@ -14596,19 +14596,19 @@ class RunnerReplicaRpcs extends make7(make6("Claim", {
|
|
|
14596
14596
|
})).middleware(RunnerAuthentication) {
|
|
14597
14597
|
}
|
|
14598
14598
|
|
|
14599
|
-
class RunnerJournalRpcs extends
|
|
14599
|
+
class RunnerJournalRpcs extends make6(make5("RecordActivity", {
|
|
14600
14600
|
payload: { lease: ProgramLease, name: String4, attempt: Int, exit: Json },
|
|
14601
14601
|
error: RunnerRpcError
|
|
14602
|
-
}),
|
|
14602
|
+
}), make5("DeferredDone", {
|
|
14603
14603
|
payload: { lease: ProgramLease, name: String4, exit: Json },
|
|
14604
14604
|
error: RunnerRpcError
|
|
14605
|
-
}),
|
|
14605
|
+
}), make5("ScheduleClock", {
|
|
14606
14606
|
payload: { lease: ProgramLease, name: String4, deferredName: String4, durationMillis: Int },
|
|
14607
14607
|
error: RunnerRpcError
|
|
14608
|
-
}),
|
|
14608
|
+
}), make5("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make5("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
|
|
14609
14609
|
}
|
|
14610
14610
|
|
|
14611
|
-
class RunnerCapabilityRpcs extends
|
|
14611
|
+
class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
14612
14612
|
payload: {
|
|
14613
14613
|
lease: ProgramLease,
|
|
14614
14614
|
step: String4,
|
|
@@ -14628,7 +14628,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14628
14628
|
},
|
|
14629
14629
|
success: Struct({ questionId: String4 }),
|
|
14630
14630
|
error: RunnerRpcError
|
|
14631
|
-
}),
|
|
14631
|
+
}), make5("StartAgentStep", {
|
|
14632
14632
|
payload: {
|
|
14633
14633
|
lease: ProgramLease,
|
|
14634
14634
|
step: String4,
|
|
@@ -14644,7 +14644,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14644
14644
|
},
|
|
14645
14645
|
success: Struct({ stepAttemptId: String4 }),
|
|
14646
14646
|
error: RunnerRpcError
|
|
14647
|
-
}),
|
|
14647
|
+
}), make5("StartVerification", {
|
|
14648
14648
|
payload: {
|
|
14649
14649
|
lease: ProgramLease,
|
|
14650
14650
|
step: String4,
|
|
@@ -14665,7 +14665,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14665
14665
|
},
|
|
14666
14666
|
success: Struct({ verificationId: String4 }),
|
|
14667
14667
|
error: RunnerRpcError
|
|
14668
|
-
}),
|
|
14668
|
+
}), make5("AwaitEvent", {
|
|
14669
14669
|
payload: {
|
|
14670
14670
|
lease: ProgramLease,
|
|
14671
14671
|
step: String4,
|
|
@@ -14681,7 +14681,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14681
14681
|
})))
|
|
14682
14682
|
},
|
|
14683
14683
|
error: RunnerRpcError
|
|
14684
|
-
}),
|
|
14684
|
+
}), make5("ClaimResource", {
|
|
14685
14685
|
payload: {
|
|
14686
14686
|
lease: ProgramLease,
|
|
14687
14687
|
step: String4,
|
|
@@ -14690,7 +14690,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14690
14690
|
action: Literals(["claim", "take_over", "let_go"])
|
|
14691
14691
|
},
|
|
14692
14692
|
error: RunnerRpcError
|
|
14693
|
-
}),
|
|
14693
|
+
}), make5("AdmitChild", {
|
|
14694
14694
|
payload: {
|
|
14695
14695
|
lease: ProgramLease,
|
|
14696
14696
|
step: String4,
|
|
@@ -14701,7 +14701,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14701
14701
|
},
|
|
14702
14702
|
success: Struct({ runId: String4 }),
|
|
14703
14703
|
error: RunnerRpcError
|
|
14704
|
-
}),
|
|
14704
|
+
}), make5("StoreArtifact", {
|
|
14705
14705
|
payload: {
|
|
14706
14706
|
lease: ProgramLease,
|
|
14707
14707
|
step: String4,
|
|
@@ -14713,7 +14713,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14713
14713
|
},
|
|
14714
14714
|
success: Struct({ artifactId: String4 }),
|
|
14715
14715
|
error: RunnerRpcError
|
|
14716
|
-
}),
|
|
14716
|
+
}), make5("RecordNote", {
|
|
14717
14717
|
payload: {
|
|
14718
14718
|
lease: ProgramLease,
|
|
14719
14719
|
step: String4,
|
|
@@ -14722,7 +14722,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14722
14722
|
kind: optional(Literals(["note", "blocker"]))
|
|
14723
14723
|
},
|
|
14724
14724
|
error: RunnerRpcError
|
|
14725
|
-
}),
|
|
14725
|
+
}), make5("PerformHostEffect", {
|
|
14726
14726
|
payload: {
|
|
14727
14727
|
lease: ProgramLease,
|
|
14728
14728
|
step: String4,
|
|
@@ -14751,7 +14751,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14751
14751
|
},
|
|
14752
14752
|
success: UndefinedOr(Struct({ id: String4, number: String4, url: String4 })),
|
|
14753
14753
|
error: RunnerRpcError
|
|
14754
|
-
}),
|
|
14754
|
+
}), make5("AlertTask", {
|
|
14755
14755
|
payload: {
|
|
14756
14756
|
lease: ProgramLease,
|
|
14757
14757
|
step: String4,
|
|
@@ -14768,7 +14768,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14768
14768
|
joined: optionalKey(Struct({ kind: Literals(["run", "recent"]), runId: String4 }))
|
|
14769
14769
|
}),
|
|
14770
14770
|
error: RunnerRpcError
|
|
14771
|
-
}),
|
|
14771
|
+
}), make5("ReadTranscripts", {
|
|
14772
14772
|
payload: {
|
|
14773
14773
|
lease: ProgramLease,
|
|
14774
14774
|
step: String4,
|
|
@@ -14803,7 +14803,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14803
14803
|
})))
|
|
14804
14804
|
}),
|
|
14805
14805
|
error: RunnerRpcError
|
|
14806
|
-
}),
|
|
14806
|
+
}), make5("PipelineStatus", {
|
|
14807
14807
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
|
|
14808
14808
|
success: Struct({
|
|
14809
14809
|
head: String4,
|
|
@@ -14837,11 +14837,11 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14837
14837
|
}))
|
|
14838
14838
|
}),
|
|
14839
14839
|
error: RunnerRpcError
|
|
14840
|
-
}),
|
|
14840
|
+
}), make5("ReportPipeline", {
|
|
14841
14841
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4, verification: String4 },
|
|
14842
14842
|
success: Struct({ head: String4, status: Literals(["success", "failed"]) }),
|
|
14843
14843
|
error: RunnerRpcError
|
|
14844
|
-
}),
|
|
14844
|
+
}), make5("ReviewThreads", {
|
|
14845
14845
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
|
|
14846
14846
|
success: Struct({
|
|
14847
14847
|
threads: ArraySchema(Struct({
|
|
@@ -14853,7 +14853,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14853
14853
|
}))
|
|
14854
14854
|
}),
|
|
14855
14855
|
error: RunnerRpcError
|
|
14856
|
-
}),
|
|
14856
|
+
}), make5("OpenChangeRequests", {
|
|
14857
14857
|
payload: { lease: ProgramLease, step: String4, authors: NonEmptyArray(String4) },
|
|
14858
14858
|
success: Struct({
|
|
14859
14859
|
changeRequests: ArraySchema(Struct({
|
|
@@ -14867,7 +14867,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14867
14867
|
}))
|
|
14868
14868
|
}),
|
|
14869
14869
|
error: RunnerRpcError
|
|
14870
|
-
}),
|
|
14870
|
+
}), make5("OwnChangeRequests", {
|
|
14871
14871
|
payload: { lease: ProgramLease, step: String4 },
|
|
14872
14872
|
success: Struct({
|
|
14873
14873
|
changeRequests: ArraySchema(Struct({
|
|
@@ -14880,7 +14880,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14880
14880
|
}))
|
|
14881
14881
|
}),
|
|
14882
14882
|
error: RunnerRpcError
|
|
14883
|
-
}),
|
|
14883
|
+
}), make5("Propose", {
|
|
14884
14884
|
payload: {
|
|
14885
14885
|
lease: ProgramLease,
|
|
14886
14886
|
step: String4,
|
|
@@ -14909,7 +14909,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14909
14909
|
task: optionalKey(Struct({ id: String4, active: Boolean2 }))
|
|
14910
14910
|
}),
|
|
14911
14911
|
error: RunnerRpcError
|
|
14912
|
-
}),
|
|
14912
|
+
}), make5("ReadProject", {
|
|
14913
14913
|
payload: { lease: ProgramLease, step: String4, projectId: String4 },
|
|
14914
14914
|
success: Struct({
|
|
14915
14915
|
project: Struct({ id: String4, name: String4 }),
|
|
@@ -14932,7 +14932,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14932
14932
|
taskChanges: ArraySchema(Struct({ taskKey: String4, title: String4, change: String4, at: String4 }))
|
|
14933
14933
|
}),
|
|
14934
14934
|
error: RunnerRpcError
|
|
14935
|
-
}),
|
|
14935
|
+
}), make5("DraftUpdate", {
|
|
14936
14936
|
payload: {
|
|
14937
14937
|
lease: ProgramLease,
|
|
14938
14938
|
step: String4,
|
|
@@ -14947,7 +14947,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14947
14947
|
},
|
|
14948
14948
|
success: Struct({ id: String4 }),
|
|
14949
14949
|
error: RunnerRpcError
|
|
14950
|
-
}),
|
|
14950
|
+
}), make5("CreatePlanTasks", {
|
|
14951
14951
|
payload: {
|
|
14952
14952
|
lease: ProgramLease,
|
|
14953
14953
|
projectId: optionalKey(String4),
|
|
@@ -14968,15 +14968,15 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14968
14968
|
},
|
|
14969
14969
|
success: ArraySchema(Struct({ key: String4, taskId: String4 })),
|
|
14970
14970
|
error: RunnerRpcError
|
|
14971
|
-
}),
|
|
14971
|
+
}), make5("IntegrationBranch", {
|
|
14972
14972
|
payload: { lease: ProgramLease, repoBindingId: optionalKey(String4) },
|
|
14973
14973
|
success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
|
|
14974
14974
|
error: RunnerRpcError
|
|
14975
|
-
}),
|
|
14975
|
+
}), make5("DeliveryBase", {
|
|
14976
14976
|
payload: { lease: ProgramLease },
|
|
14977
14977
|
success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
|
|
14978
14978
|
error: RunnerRpcError
|
|
14979
|
-
}),
|
|
14979
|
+
}), make5("MergeChangeRequest", {
|
|
14980
14980
|
payload: {
|
|
14981
14981
|
lease: ProgramLease,
|
|
14982
14982
|
step: String4,
|
|
@@ -14994,7 +14994,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14994
14994
|
Struct({ status: Literal("moved"), head: String4 })
|
|
14995
14995
|
]),
|
|
14996
14996
|
error: RunnerRpcError
|
|
14997
|
-
}),
|
|
14997
|
+
}), make5("ApproveChangeRequest", {
|
|
14998
14998
|
payload: {
|
|
14999
14999
|
lease: ProgramLease,
|
|
15000
15000
|
step: String4,
|
|
@@ -15010,7 +15010,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
15010
15010
|
Struct({ approved: Literal(false), reason: String4 })
|
|
15011
15011
|
]),
|
|
15012
15012
|
error: RunnerRpcError
|
|
15013
|
-
}),
|
|
15013
|
+
}), make5("CloseChangeRequest", {
|
|
15014
15014
|
payload: {
|
|
15015
15015
|
lease: ProgramLease,
|
|
15016
15016
|
step: String4,
|
|
@@ -15020,7 +15020,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
15020
15020
|
},
|
|
15021
15021
|
success: Struct({ closed: Boolean2, head: optionalKey(String4) }),
|
|
15022
15022
|
error: RunnerRpcError
|
|
15023
|
-
}),
|
|
15023
|
+
}), make5("RerunPipeline", {
|
|
15024
15024
|
payload: {
|
|
15025
15025
|
lease: ProgramLease,
|
|
15026
15026
|
step: String4,
|
|
@@ -15030,7 +15030,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
15030
15030
|
},
|
|
15031
15031
|
success: Struct({ head: String4, pipelines: Int }),
|
|
15032
15032
|
error: RunnerRpcError
|
|
15033
|
-
}),
|
|
15033
|
+
}), make5("PublishRelease", {
|
|
15034
15034
|
payload: {
|
|
15035
15035
|
lease: ProgramLease,
|
|
15036
15036
|
step: String4,
|
|
@@ -15042,14 +15042,14 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
15042
15042
|
},
|
|
15043
15043
|
success: Struct({ tag: String4, revision: String4, url: String4 }),
|
|
15044
15044
|
error: RunnerRpcError
|
|
15045
|
-
}),
|
|
15045
|
+
}), make5("ProgramSecrets", {
|
|
15046
15046
|
payload: { lease: ProgramLease },
|
|
15047
15047
|
success: Record(String4, String4),
|
|
15048
15048
|
error: RunnerRpcError
|
|
15049
15049
|
})).middleware(RunnerAuthentication) {
|
|
15050
15050
|
}
|
|
15051
15051
|
|
|
15052
|
-
class RunnerRunFileRpcs extends
|
|
15052
|
+
class RunnerRunFileRpcs extends make6(make5("CreateRunFile", {
|
|
15053
15053
|
payload: {
|
|
15054
15054
|
lease: ProgramLease,
|
|
15055
15055
|
step: String4,
|
|
@@ -15061,11 +15061,11 @@ class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
|
|
|
15061
15061
|
},
|
|
15062
15062
|
success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
|
|
15063
15063
|
error: Union([RunnerRpcError, RunFileRefused])
|
|
15064
|
-
}),
|
|
15064
|
+
}), make5("RunFileParts", {
|
|
15065
15065
|
payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
|
|
15066
15066
|
success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
|
|
15067
15067
|
error: RunnerRpcError
|
|
15068
|
-
}),
|
|
15068
|
+
}), make5("CompleteRunFile", {
|
|
15069
15069
|
payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
|
|
15070
15070
|
success: RunFileRecord,
|
|
15071
15071
|
error: RunnerRpcError
|
|
@@ -15154,7 +15154,7 @@ function toStoredSession(token, existingRefreshToken) {
|
|
|
15154
15154
|
}
|
|
15155
15155
|
function startLoopbackServer(input) {
|
|
15156
15156
|
return gen(function* () {
|
|
15157
|
-
const code = yield*
|
|
15157
|
+
const code = yield* make15();
|
|
15158
15158
|
const context2 = yield* context();
|
|
15159
15159
|
const runSyncExit = runSyncExitWith(context2);
|
|
15160
15160
|
const server = yield* acquireRelease(sync2(() => Bun.serve({
|
|
@@ -15702,7 +15702,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
15702
15702
|
let lastId = 0;
|
|
15703
15703
|
let lost = false;
|
|
15704
15704
|
const notifications = yield* unbounded2();
|
|
15705
|
-
const ended = yield*
|
|
15705
|
+
const ended = yield* make15();
|
|
15706
15706
|
const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
|
|
15707
15707
|
onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
|
|
15708
15708
|
onNone: () => void_3,
|
|
@@ -15729,7 +15729,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
15729
15729
|
if (lost)
|
|
15730
15730
|
return yield* new HerdrCoreConnectionLost2({ method });
|
|
15731
15731
|
const id = ++lastId;
|
|
15732
|
-
const deferred = yield*
|
|
15732
|
+
const deferred = yield* make15();
|
|
15733
15733
|
pending.set(id, { method, deferred });
|
|
15734
15734
|
yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
|
|
15735
15735
|
return yield* _await(deferred);
|
|
@@ -15803,14 +15803,14 @@ var herdrCoreOver = (transport) => ({
|
|
|
15803
15803
|
return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
|
|
15804
15804
|
};
|
|
15805
15805
|
const snapshot = { type: "snapshot", terminals: subscribed.terminals };
|
|
15806
|
-
return concat(
|
|
15806
|
+
return concat(make10(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
|
|
15807
15807
|
}))
|
|
15808
15808
|
});
|
|
15809
15809
|
var spawnedTransport = (env) => gen(function* () {
|
|
15810
15810
|
const spawner = yield* ChildProcessSpawner;
|
|
15811
15811
|
const input = yield* unbounded2();
|
|
15812
15812
|
const encoder = new TextEncoder;
|
|
15813
|
-
const handle = yield* spawner.spawn(
|
|
15813
|
+
const handle = yield* spawner.spawn(make2("herdr-core", ["connect"], {
|
|
15814
15814
|
extendEnv: false,
|
|
15815
15815
|
env,
|
|
15816
15816
|
stdin: fromQueue(input),
|
|
@@ -15841,7 +15841,7 @@ var updateHerdrCore2 = (options) => gen(function* () {
|
|
|
15841
15841
|
const spawner = yield* ChildProcessSpawner;
|
|
15842
15842
|
const env = coreEnv(options);
|
|
15843
15843
|
const run = (args) => gen(function* () {
|
|
15844
|
-
const handle = yield* spawner.spawn(
|
|
15844
|
+
const handle = yield* spawner.spawn(make2("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
|
|
15845
15845
|
const [stdout, stderr, exitCode] = yield* all3([
|
|
15846
15846
|
mkString(decodeText(handle.stdout)),
|
|
15847
15847
|
mkString(decodeText(handle.stderr)),
|
|
@@ -15867,7 +15867,7 @@ class CommandFailed2 extends TaggedError("CommandFailed") {
|
|
|
15867
15867
|
}
|
|
15868
15868
|
var runCommand2 = (command, args, options = {}) => gen(function* () {
|
|
15869
15869
|
const spawner = yield* ChildProcessSpawner;
|
|
15870
|
-
const handle = yield* spawner.spawn(
|
|
15870
|
+
const handle = yield* spawner.spawn(make2(command, args, {
|
|
15871
15871
|
stdin: "ignore",
|
|
15872
15872
|
...options.cwd === undefined ? undefined : { cwd: options.cwd },
|
|
15873
15873
|
...options.env === undefined ? undefined : { extendEnv: true, env: options.env }
|
|
@@ -15893,8 +15893,8 @@ var shellOutputTailChars2 = 64 * 1024;
|
|
|
15893
15893
|
var runProcess2 = (argv, options) => gen(function* () {
|
|
15894
15894
|
const spawner = yield* ChildProcessSpawner;
|
|
15895
15895
|
const [command, ...args] = argv;
|
|
15896
|
-
const handle = yield* spawner.spawn(
|
|
15897
|
-
stdin: options.stdin === undefined ? "ignore" :
|
|
15896
|
+
const handle = yield* spawner.spawn(make2(command, args, {
|
|
15897
|
+
stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
|
|
15898
15898
|
...options.cwd === undefined ? undefined : { cwd: options.cwd },
|
|
15899
15899
|
env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
|
|
15900
15900
|
}));
|
|
@@ -16334,4 +16334,4 @@ function serviceChecks(declaration) {
|
|
|
16334
16334
|
return decoded === undefined || decoded.services.length === 0 ? [] : [...new Set(decoded.checks ?? [])];
|
|
16335
16335
|
}
|
|
16336
16336
|
|
|
16337
|
-
export { Clock, currentTimeMillis, WebCrypto, SecureRandom, layerWebCrypto, makeUnsafe, formatIso, empty, fromInput, merge, runMain, layer, layer2, Stdio, Terminal, layer3, error, log, toDate, parseDate, toIso, currentDate, wallClockMillis, waitingOnWords, queueWords, scanDurableSurface, redactResponseSurface, redactCredentials, redactedOutputTail, SafeJson, ReleaseChannels, DefaultReleaseChannel, newerKitmanVersion, releaseChannelOffers, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, tokensSpent, tokenCountWords, isTestReportName, testDigest, failedTestOfLine, printedNotReported, failedTestsOf, testOutcomes, checkTests, reportedModelName, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, RunWaitUntils, 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,
|
|
16337
|
+
export { Clock, currentTimeMillis, WebCrypto, SecureRandom, layerWebCrypto, makeUnsafe, formatIso, empty, fromInput, merge, runMain, layer, layer2, Stdio, Terminal, layer3, error, log, toDate, parseDate, toIso, currentDate, wallClockMillis, waitingOnWords, queueWords, scanDurableSurface, redactResponseSurface, redactCredentials, redactedOutputTail, SafeJson, ReleaseChannels, DefaultReleaseChannel, newerKitmanVersion, releaseChannelOffers, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, tokensSpent, tokenCountWords, isTestReportName, testDigest, failedTestOfLine, printedNotReported, failedTestsOf, testOutcomes, checkTests, reportedModelName, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, RunWaitUntils, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, MaxRunnerConcurrency, PinnedImage, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, deliveryProviderActions, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, repositoryKey, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw, make4, get, post, put, setHeaders, acceptJson, bodyUint8Array, bodyJsonUnsafe, bodyUrlParams, schemaBodyJson, filterStatusOk, HttpClient, execute, get2, Fetch, layer4, Socket, SocketReadError, SocketError, WebSocketConstructor, layerWebSocketConstructorGlobal, layerWebSocket, runDisplayLabels, listedSummary, stepFallbackWords, KitName, KitDigest, defaultKitName, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, runnerReleaseChannelPath, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, removeAgentCredential, normalizeApiUrl, isStoredAgentCredential, isStreamSchema, getStreamSchemas, make5, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make6, Service, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, RunSettled, UpdateAvailable, RunnerReplicaRpcs, RunnerRunFileRpcs, ProgramRpcs, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, setupMcpAgentCredential, generateAgentKeyPair, HERDR_CORE_GENERATION2, HERDR_CORE_INSTALL_COMMAND2, HerdrCoreMissing2, HerdrCoreIncompatible2, HerdrCoreConnectionLost2, HerdrCoreRpcError2, HerdrCoreUpdateFailed2, HerdrCore2, herdrCoreLayer2, herdrCoreTransportLayer2, updateHerdrCore2, CommandFailed2, runCommand2, withoutPreloads2, shellOutputTailChars2, runProcess2, CommandRunner2, runShell2, detectHarnesses2, kitHarnesses, isKitHarness, instructionsStart, instructionsEnd, harnessNames, renderMcpServer, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices, serviceChecks };
|