@kitman-sh/cli 0.12.0-rc.4 → 0.12.0-rc.6
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-b50dvx41.js → chunk-0346hwh6.js} +5 -5
- package/dist/{chunk-6b0k02x4.js → chunk-0qz10ek8.js} +1 -1
- package/dist/{chunk-nzsrse8d.js → chunk-15geyg2d.js} +87 -59
- package/dist/{chunk-r1z41qx6.js → chunk-1t12wvv1.js} +109 -108
- package/dist/{chunk-7kjsvwzv.js → chunk-4w4spvb1.js} +5 -5
- package/dist/{chunk-k81ay8y5.js → chunk-56knbdt6.js} +8 -8
- package/dist/{chunk-xavcp9se.js → chunk-5j848ckb.js} +2 -2
- package/dist/{chunk-ydydx55z.js → chunk-bvf6e6yg.js} +1 -1
- package/dist/{chunk-c9007k48.js → chunk-c6rbt85q.js} +1 -1
- package/dist/{chunk-ezf2myj0.js → chunk-e4an66v2.js} +3 -3
- package/dist/{chunk-xy5f2nv9.js → chunk-ewhzaqp3.js} +2 -2
- package/dist/{chunk-qjd6w9sw.js → chunk-fxm2jhbd.js} +2 -2
- package/dist/{chunk-zmcghp8w.js → chunk-gspfm7qh.js} +17 -17
- package/dist/{chunk-e7q2frvs.js → chunk-j5t5nye5.js} +7 -7
- package/dist/{chunk-rjasmnav.js → chunk-ktr2smac.js} +41 -28
- package/dist/{chunk-bq55md8p.js → chunk-nzjb36ad.js} +1 -1
- package/dist/{chunk-w0aj9mkz.js → chunk-pd2vz4bm.js} +5 -5
- package/dist/{chunk-ckkpqcfv.js → chunk-qrm334c6.js} +4 -4
- package/dist/{chunk-kybp1mkk.js → chunk-r5sw3fe0.js} +8 -8
- package/dist/{chunk-t2mr6z38.js → chunk-r7f8tjc8.js} +24 -24
- package/dist/{chunk-79gx7ek9.js → chunk-vtfwjhzh.js} +28 -70
- package/dist/{chunk-aafxvmj1.js → chunk-wc2kba4z.js} +7 -7
- package/dist/{chunk-w6cm939j.js → chunk-x6vj1tf8.js} +12 -12
- package/dist/{chunk-jntxtx9j.js → chunk-xwya1er0.js} +60 -14
- package/dist/{chunk-pw10mq9e.js → chunk-z450wa10.js} +4 -4
- package/dist/{chunk-74txrt4s.js → chunk-znar1th3.js} +4 -4
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
assignProperty,
|
|
39
39
|
PipeInspectableProto,
|
|
40
40
|
withFiber,
|
|
41
|
-
|
|
41
|
+
make14,
|
|
42
42
|
strictEqual,
|
|
43
43
|
Tuple,
|
|
44
44
|
Number2,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
Service2,
|
|
59
59
|
makeUnsafe4,
|
|
60
60
|
empty3,
|
|
61
|
-
|
|
61
|
+
make15,
|
|
62
62
|
add,
|
|
63
63
|
getOrUndefined2,
|
|
64
64
|
getOrUndefinedUnsafe,
|
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
fail4,
|
|
92
92
|
isSuccess2,
|
|
93
93
|
makeUnsafe5,
|
|
94
|
-
|
|
94
|
+
make16,
|
|
95
95
|
_await,
|
|
96
96
|
fail5,
|
|
97
97
|
isDone,
|
|
@@ -194,9 +194,6 @@ import {
|
|
|
194
194
|
logError,
|
|
195
195
|
effectify,
|
|
196
196
|
decode,
|
|
197
|
-
isRedacted,
|
|
198
|
-
make16,
|
|
199
|
-
value,
|
|
200
197
|
defaultParseOptions,
|
|
201
198
|
omit,
|
|
202
199
|
map9,
|
|
@@ -252,7 +249,7 @@ import {
|
|
|
252
249
|
decodeJsonStringOption,
|
|
253
250
|
encodeJsonStringSync,
|
|
254
251
|
encodePrettyJsonString
|
|
255
|
-
} from "./chunk-
|
|
252
|
+
} from "./chunk-vtfwjhzh.js";
|
|
256
253
|
import {
|
|
257
254
|
map,
|
|
258
255
|
makeEquivalence,
|
|
@@ -261,8 +258,8 @@ import {
|
|
|
261
258
|
systemError,
|
|
262
259
|
badArgument,
|
|
263
260
|
makeUnsafe2,
|
|
264
|
-
make7,
|
|
265
261
|
make8,
|
|
262
|
+
make9,
|
|
266
263
|
sliding,
|
|
267
264
|
unbounded2,
|
|
268
265
|
offer,
|
|
@@ -278,13 +275,13 @@ import {
|
|
|
278
275
|
isSink,
|
|
279
276
|
fromChannel,
|
|
280
277
|
drain,
|
|
281
|
-
|
|
278
|
+
make10,
|
|
282
279
|
get3,
|
|
283
280
|
isStream,
|
|
284
281
|
fromChannel2,
|
|
285
282
|
callback,
|
|
286
283
|
empty2,
|
|
287
|
-
|
|
284
|
+
make11,
|
|
288
285
|
suspend,
|
|
289
286
|
fail2,
|
|
290
287
|
fromQueue,
|
|
@@ -310,16 +307,16 @@ import {
|
|
|
310
307
|
mkArrayBuffer,
|
|
311
308
|
toReadableStreamEffect,
|
|
312
309
|
FileSystem,
|
|
313
|
-
|
|
310
|
+
make12,
|
|
314
311
|
FileTypeId,
|
|
315
312
|
WatchBackend,
|
|
316
313
|
Path,
|
|
317
|
-
|
|
314
|
+
make13,
|
|
318
315
|
option,
|
|
319
316
|
String2,
|
|
320
317
|
optionalEnv,
|
|
321
318
|
harnessesUnsupportedInSrt2
|
|
322
|
-
} from "./chunk-
|
|
319
|
+
} from "./chunk-gspfm7qh.js";
|
|
323
320
|
import {
|
|
324
321
|
isDateTime,
|
|
325
322
|
Numeric,
|
|
@@ -332,7 +329,7 @@ import {
|
|
|
332
329
|
SecretScope,
|
|
333
330
|
SecretHosts,
|
|
334
331
|
isSecretReference
|
|
335
|
-
} from "./chunk-
|
|
332
|
+
} from "./chunk-0qz10ek8.js";
|
|
336
333
|
import {
|
|
337
334
|
toJsonValue,
|
|
338
335
|
isOneOf,
|
|
@@ -346,18 +343,21 @@ import {
|
|
|
346
343
|
isSymbol,
|
|
347
344
|
isUndefined,
|
|
348
345
|
kindOf
|
|
349
|
-
} from "./chunk-
|
|
346
|
+
} from "./chunk-c6rbt85q.js";
|
|
350
347
|
import {
|
|
348
|
+
isRedacted,
|
|
349
|
+
make,
|
|
350
|
+
value,
|
|
351
351
|
ExitCode,
|
|
352
352
|
ProcessId,
|
|
353
353
|
makeHandle,
|
|
354
|
-
|
|
354
|
+
make2,
|
|
355
355
|
ChildProcessSpawner,
|
|
356
356
|
display,
|
|
357
|
-
|
|
357
|
+
make3,
|
|
358
358
|
parseFdName,
|
|
359
359
|
fdName
|
|
360
|
-
} from "./chunk-
|
|
360
|
+
} from "./chunk-xwya1er0.js";
|
|
361
361
|
|
|
362
362
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
|
|
363
363
|
var makeEquivalence3 = Tuple;
|
|
@@ -520,7 +520,7 @@ var makeUnsafe6 = (input) => {
|
|
|
520
520
|
var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
|
|
521
521
|
var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
|
|
522
522
|
var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
|
|
523
|
-
var
|
|
523
|
+
var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
|
|
524
524
|
var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
|
|
525
525
|
var nowUnsafe = () => makeUtc(Date.now());
|
|
526
526
|
var toDateUtc = (self) => new Date(self.epochMilliseconds);
|
|
@@ -910,7 +910,7 @@ var toNumber = (b) => {
|
|
|
910
910
|
|
|
911
911
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
|
|
912
912
|
var makeUnsafe = makeUnsafe6;
|
|
913
|
-
var make18 =
|
|
913
|
+
var make18 = make4;
|
|
914
914
|
var now2 = now;
|
|
915
915
|
var nowUnsafe2 = nowUnsafe;
|
|
916
916
|
var toDateUtc2 = toDateUtc;
|
|
@@ -1125,7 +1125,7 @@ var readableToPullUnsafe = (options) => {
|
|
|
1125
1125
|
const readable = options.readable;
|
|
1126
1126
|
const chunkSize = options.chunkSize ?? 4096;
|
|
1127
1127
|
const closeOnDone = options.closeOnDone ?? true;
|
|
1128
|
-
const exit = options.exit ??
|
|
1128
|
+
const exit = options.exit ?? make8(undefined);
|
|
1129
1129
|
const latch = options.latch ?? makeUnsafe2(false);
|
|
1130
1130
|
function onReadable() {
|
|
1131
1131
|
latch.openUnsafe();
|
|
@@ -1689,7 +1689,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1689
1689
|
const sourceStream = unwrap(succeed6(getSourceStream(handles[handles.length - 1], options.from)));
|
|
1690
1690
|
const toOption = options.to ?? "stdin";
|
|
1691
1691
|
if (toOption === "stdin") {
|
|
1692
|
-
handles.push(yield* spawnCommand(
|
|
1692
|
+
handles.push(yield* spawnCommand(make3(command.command, command.args, {
|
|
1693
1693
|
...command.options,
|
|
1694
1694
|
stdin: {
|
|
1695
1695
|
...stdinConfig,
|
|
@@ -1709,7 +1709,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1709
1709
|
type: "input",
|
|
1710
1710
|
stream: sourceStream
|
|
1711
1711
|
};
|
|
1712
|
-
handles.push(yield* spawnCommand(
|
|
1712
|
+
handles.push(yield* spawnCommand(make3(command.command, command.args, {
|
|
1713
1713
|
...command.options,
|
|
1714
1714
|
additionalFds: {
|
|
1715
1715
|
...existingFds,
|
|
@@ -1717,7 +1717,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1717
1717
|
}
|
|
1718
1718
|
})));
|
|
1719
1719
|
} else {
|
|
1720
|
-
handles.push(yield* spawnCommand(
|
|
1720
|
+
handles.push(yield* spawnCommand(make3(command.command, command.args, {
|
|
1721
1721
|
...command.options,
|
|
1722
1722
|
stdin: {
|
|
1723
1723
|
...stdinConfig,
|
|
@@ -1756,7 +1756,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1756
1756
|
}
|
|
1757
1757
|
}
|
|
1758
1758
|
});
|
|
1759
|
-
return
|
|
1759
|
+
return make2(spawnCommand);
|
|
1760
1760
|
});
|
|
1761
1761
|
var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
|
|
1762
1762
|
var flattenCommand = (command) => {
|
|
@@ -2242,7 +2242,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
|
|
|
2242
2242
|
resume(fail7(handleBadArgument("writeFile")(err)));
|
|
2243
2243
|
}
|
|
2244
2244
|
});
|
|
2245
|
-
var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) =>
|
|
2245
|
+
var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make12({
|
|
2246
2246
|
access: access2,
|
|
2247
2247
|
chmod: chmod2,
|
|
2248
2248
|
chown: chown2,
|
|
@@ -2302,15 +2302,15 @@ var fileUrlOps = (windows) => ({
|
|
|
2302
2302
|
})
|
|
2303
2303
|
})
|
|
2304
2304
|
});
|
|
2305
|
-
var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2305
|
+
var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
|
|
2306
2306
|
...NodePath.posix,
|
|
2307
2307
|
.../* @__PURE__ */ fileUrlOps(false)
|
|
2308
2308
|
}));
|
|
2309
|
-
var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2309
|
+
var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
|
|
2310
2310
|
...NodePath.win32,
|
|
2311
2311
|
.../* @__PURE__ */ fileUrlOps(true)
|
|
2312
2312
|
}));
|
|
2313
|
-
var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2313
|
+
var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
|
|
2314
2314
|
...NodePath,
|
|
2315
2315
|
.../* @__PURE__ */ fileUrlOps(undefined)
|
|
2316
2316
|
}));
|
|
@@ -2832,12 +2832,12 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
|
2832
2832
|
if (typeof key === "string") {
|
|
2833
2833
|
const k = key.toLowerCase();
|
|
2834
2834
|
if (k in self) {
|
|
2835
|
-
out[k] =
|
|
2835
|
+
out[k] = make(self[k]);
|
|
2836
2836
|
}
|
|
2837
2837
|
} else {
|
|
2838
2838
|
for (const name in self) {
|
|
2839
2839
|
if (name.search(key) !== -1) {
|
|
2840
|
-
out[name] =
|
|
2840
|
+
out[name] = make(self[name]);
|
|
2841
2841
|
}
|
|
2842
2842
|
}
|
|
2843
2843
|
}
|
|
@@ -2944,7 +2944,7 @@ var fromInputNested = (input) => {
|
|
|
2944
2944
|
return out;
|
|
2945
2945
|
};
|
|
2946
2946
|
var coerce = (value) => isRedacted(value) ? value : String(value);
|
|
2947
|
-
var Equivalence3 = /* @__PURE__ */
|
|
2947
|
+
var Equivalence3 = /* @__PURE__ */ make14((a, b) => arrayEquivalence(a.params, b.params));
|
|
2948
2948
|
var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
|
|
2949
2949
|
var empty4 = /* @__PURE__ */ make23([]);
|
|
2950
2950
|
var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
@@ -2963,7 +2963,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
|
2963
2963
|
var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
|
|
2964
2964
|
var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
2965
2965
|
const patterns = Array.isArray(key) ? key : [key];
|
|
2966
|
-
return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ?
|
|
2966
|
+
return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make(value) : value]);
|
|
2967
2967
|
});
|
|
2968
2968
|
var isRedactedName2 = isRedactedName;
|
|
2969
2969
|
var redactUrl = (url, redactedNames = currentRedactedNames()) => {
|
|
@@ -3039,7 +3039,7 @@ import * as readline from "readline";
|
|
|
3039
3039
|
var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
|
|
3040
3040
|
const stdin = process.stdin;
|
|
3041
3041
|
const stdout = process.stdout;
|
|
3042
|
-
const lines = yield*
|
|
3042
|
+
const lines = yield* make9();
|
|
3043
3043
|
let inputEnded = stdin.readableEnded;
|
|
3044
3044
|
let readlineActive = false;
|
|
3045
3045
|
const onStdinEnd = () => {
|
|
@@ -3050,7 +3050,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3050
3050
|
};
|
|
3051
3051
|
stdin.once("end", onStdinEnd);
|
|
3052
3052
|
yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
|
|
3053
|
-
const rlRef = yield*
|
|
3053
|
+
const rlRef = yield* make10({
|
|
3054
3054
|
acquire: acquireRelease(sync2(() => {
|
|
3055
3055
|
const rl = readline.createInterface({
|
|
3056
3056
|
input: stdin,
|
|
@@ -3089,7 +3089,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3089
3089
|
if (stdin.isTTY)
|
|
3090
3090
|
stdin.setRawMode(enabled);
|
|
3091
3091
|
});
|
|
3092
|
-
const rawModeRef = yield*
|
|
3092
|
+
const rawModeRef = yield* make10({
|
|
3093
3093
|
acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
|
|
3094
3094
|
idleTimeToLive: "10 millis"
|
|
3095
3095
|
});
|
|
@@ -3110,7 +3110,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3110
3110
|
return queue;
|
|
3111
3111
|
});
|
|
3112
3112
|
const readInput = gen(function* () {
|
|
3113
|
-
const queue = yield*
|
|
3113
|
+
const queue = yield* make9();
|
|
3114
3114
|
const handleKeypress = (s, k) => {
|
|
3115
3115
|
const userInput = {
|
|
3116
3116
|
input: fromUndefinedOr(s),
|
|
@@ -9922,14 +9922,14 @@ function makeWith(method, url, urlParams, hash, headers, body) {
|
|
|
9922
9922
|
return self;
|
|
9923
9923
|
}
|
|
9924
9924
|
var empty6 = /* @__PURE__ */ makeWith("GET", "", empty4, /* @__PURE__ */ none(), empty, empty5);
|
|
9925
|
-
var
|
|
9925
|
+
var make5 = (method) => (url, options) => modify(empty6, {
|
|
9926
9926
|
method,
|
|
9927
9927
|
url,
|
|
9928
9928
|
...options ?? undefined
|
|
9929
9929
|
});
|
|
9930
|
-
var get = /* @__PURE__ */
|
|
9931
|
-
var post = /* @__PURE__ */
|
|
9932
|
-
var put = /* @__PURE__ */
|
|
9930
|
+
var get = /* @__PURE__ */ make5("GET");
|
|
9931
|
+
var post = /* @__PURE__ */ make5("POST");
|
|
9932
|
+
var put = /* @__PURE__ */ make5("PUT");
|
|
9933
9933
|
var modify = /* @__PURE__ */ dual(2, (self, options) => {
|
|
9934
9934
|
let result = self;
|
|
9935
9935
|
if (options.method) {
|
|
@@ -10230,7 +10230,7 @@ var Proto7 = {
|
|
|
10230
10230
|
};
|
|
10231
10231
|
},
|
|
10232
10232
|
.../* @__PURE__ */ Object.fromEntries(/* @__PURE__ */ allShort.map(([fullMethod, method]) => [method, function(url, options) {
|
|
10233
|
-
return this.execute(
|
|
10233
|
+
return this.execute(make5(fullMethod)(url, options));
|
|
10234
10234
|
}]))
|
|
10235
10235
|
};
|
|
10236
10236
|
var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
|
|
@@ -13918,7 +13918,7 @@ var makeProto = (options) => {
|
|
|
13918
13918
|
Rpc.key = `effect/rpc/Rpc/${options._tag}`;
|
|
13919
13919
|
return Rpc;
|
|
13920
13920
|
};
|
|
13921
|
-
var
|
|
13921
|
+
var make6 = (tag, options) => {
|
|
13922
13922
|
const successSchema = options?.success ?? Void;
|
|
13923
13923
|
const errorSchema = options?.error ?? Never;
|
|
13924
13924
|
const defectSchema = options?.defect ?? Defect();
|
|
@@ -14129,7 +14129,7 @@ var RpcGroupProto = {
|
|
|
14129
14129
|
});
|
|
14130
14130
|
},
|
|
14131
14131
|
annotateRpcs(service, value) {
|
|
14132
|
-
return this.annotateRpcsMerge(
|
|
14132
|
+
return this.annotateRpcsMerge(make15(service, value));
|
|
14133
14133
|
},
|
|
14134
14134
|
annotateMerge(context) {
|
|
14135
14135
|
return makeProto2({
|
|
@@ -14152,7 +14152,7 @@ var makeProto2 = (options) => Object.assign(function() {}, RpcGroupProto, {
|
|
|
14152
14152
|
requests: options.requests,
|
|
14153
14153
|
annotations: options.annotations
|
|
14154
14154
|
});
|
|
14155
|
-
var
|
|
14155
|
+
var make7 = (...rpcs) => makeProto2({
|
|
14156
14156
|
requests: new Map(rpcs.map((rpc) => [rpc._tag, rpc])),
|
|
14157
14157
|
annotations: empty3()
|
|
14158
14158
|
});
|
|
@@ -14258,96 +14258,96 @@ var ProgramOutcome = Union([
|
|
|
14258
14258
|
Struct({ status: Literal("failed"), failureSummary: String4 })
|
|
14259
14259
|
]);
|
|
14260
14260
|
|
|
14261
|
-
class RunnerReplicaRpcs extends make6(
|
|
14261
|
+
class RunnerReplicaRpcs extends make7(make6("Claim", {
|
|
14262
14262
|
payload: WorkUnitClaimInput,
|
|
14263
14263
|
success: WorkUnitClaimResult,
|
|
14264
14264
|
error: RunnerRpcError
|
|
14265
|
-
}),
|
|
14265
|
+
}), make6("Heartbeat", {
|
|
14266
14266
|
payload: WorkUnitHeartbeatInput,
|
|
14267
14267
|
success: WorkUnitHeartbeatResult,
|
|
14268
14268
|
error: RunnerRpcError
|
|
14269
|
-
}),
|
|
14269
|
+
}), make6("Complete", {
|
|
14270
14270
|
payload: WorkUnitCompletion,
|
|
14271
14271
|
error: RunnerRpcError
|
|
14272
|
-
}),
|
|
14272
|
+
}), make6("Release", {
|
|
14273
14273
|
payload: WorkUnitReleaseInput,
|
|
14274
14274
|
error: RunnerRpcError
|
|
14275
|
-
}),
|
|
14275
|
+
}), make6("Signals", {
|
|
14276
14276
|
payload: { runnerReplicaId: String4 },
|
|
14277
14277
|
success: RunnerSignal,
|
|
14278
14278
|
error: RunnerRpcError,
|
|
14279
14279
|
stream: true
|
|
14280
|
-
}),
|
|
14280
|
+
}), make6("ReportSteer", {
|
|
14281
14281
|
payload: { workUnitId: String4, messageId: String4, delivered: Boolean2 },
|
|
14282
14282
|
success: Void,
|
|
14283
14283
|
error: RunnerRpcError
|
|
14284
|
-
}),
|
|
14284
|
+
}), make6("AppendTranscript", {
|
|
14285
14285
|
payload: { workUnitId: String4, entries: ArraySchema(TranscriptAppendEntry).check(isMaxLength(100)) },
|
|
14286
14286
|
success: Void,
|
|
14287
14287
|
error: RunnerRpcError
|
|
14288
|
-
}),
|
|
14288
|
+
}), make6("CreateCheckpointFile", {
|
|
14289
14289
|
payload: { lease: ProgramLease, byteSize: Int, sha256: String4 },
|
|
14290
14290
|
success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
|
|
14291
14291
|
error: Union([RunnerRpcError, RunFileRefused])
|
|
14292
|
-
}),
|
|
14292
|
+
}), make6("CheckpointFileParts", {
|
|
14293
14293
|
payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
|
|
14294
14294
|
success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
|
|
14295
14295
|
error: RunnerRpcError
|
|
14296
|
-
}),
|
|
14296
|
+
}), make6("CompleteCheckpointFile", {
|
|
14297
14297
|
payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
|
|
14298
14298
|
success: RunFileRecord,
|
|
14299
14299
|
error: RunnerRpcError
|
|
14300
|
-
}),
|
|
14300
|
+
}), make6("SaveCheckpoint", {
|
|
14301
14301
|
payload: { lease: ProgramLease, checkpoint: StepCheckpoint },
|
|
14302
14302
|
success: Void,
|
|
14303
14303
|
error: RunnerRpcError
|
|
14304
|
-
}),
|
|
14304
|
+
}), make6("ResumeCheckpoint", {
|
|
14305
14305
|
payload: { lease: ProgramLease },
|
|
14306
14306
|
success: UndefinedOr(ResumedCheckpoint),
|
|
14307
14307
|
error: RunnerRpcError
|
|
14308
|
-
}),
|
|
14308
|
+
}), make6("SettledCheckpoints", {
|
|
14309
14309
|
success: ArraySchema(Struct({
|
|
14310
14310
|
stepAttemptId: String4,
|
|
14311
14311
|
ref: optionalKey(String4),
|
|
14312
14312
|
repoBinding: optionalKey(WorkUnitRepoBinding)
|
|
14313
14313
|
})),
|
|
14314
14314
|
error: RunnerRpcError
|
|
14315
|
-
}),
|
|
14315
|
+
}), make6("ForgetCheckpoints", {
|
|
14316
14316
|
payload: { stepAttemptIds: ArraySchema(String4) },
|
|
14317
14317
|
success: Void,
|
|
14318
14318
|
error: RunnerRpcError
|
|
14319
|
-
}),
|
|
14319
|
+
}), make6("GitCredential", {
|
|
14320
14320
|
payload: { repoBindingId: String4 },
|
|
14321
14321
|
success: UndefinedOr(Struct({ username: String4, password: String4 })),
|
|
14322
14322
|
error: RunnerRpcError
|
|
14323
|
-
}),
|
|
14323
|
+
}), make6("Bundle", {
|
|
14324
14324
|
payload: { digest: String4 },
|
|
14325
14325
|
success: Struct({ bundle: String4 }),
|
|
14326
14326
|
error: RunnerRpcError
|
|
14327
|
-
}),
|
|
14327
|
+
}), make6("SettledRuns", {
|
|
14328
14328
|
payload: { runIds: ArraySchema(String4) },
|
|
14329
14329
|
success: ArraySchema(String4),
|
|
14330
14330
|
error: RunnerRpcError
|
|
14331
|
-
}),
|
|
14331
|
+
}), make6("KnownEvidence", {
|
|
14332
14332
|
payload: { lease: ProgramLease, trees: ArraySchema(String4) },
|
|
14333
14333
|
success: ArraySchema(Struct({ tree: String4, name: String4, command: String4 })),
|
|
14334
14334
|
error: RunnerRpcError
|
|
14335
14335
|
})).middleware(RunnerAuthentication) {
|
|
14336
14336
|
}
|
|
14337
14337
|
|
|
14338
|
-
class RunnerJournalRpcs extends make6(
|
|
14338
|
+
class RunnerJournalRpcs extends make7(make6("RecordActivity", {
|
|
14339
14339
|
payload: { lease: ProgramLease, name: String4, attempt: Int, exit: Json },
|
|
14340
14340
|
error: RunnerRpcError
|
|
14341
|
-
}),
|
|
14341
|
+
}), make6("DeferredDone", {
|
|
14342
14342
|
payload: { lease: ProgramLease, name: String4, exit: Json },
|
|
14343
14343
|
error: RunnerRpcError
|
|
14344
|
-
}),
|
|
14344
|
+
}), make6("ScheduleClock", {
|
|
14345
14345
|
payload: { lease: ProgramLease, name: String4, deferredName: String4, durationMillis: Int },
|
|
14346
14346
|
error: RunnerRpcError
|
|
14347
|
-
}),
|
|
14347
|
+
}), make6("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make6("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
|
|
14348
14348
|
}
|
|
14349
14349
|
|
|
14350
|
-
class RunnerCapabilityRpcs extends make6(
|
|
14350
|
+
class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
14351
14351
|
payload: {
|
|
14352
14352
|
lease: ProgramLease,
|
|
14353
14353
|
step: String4,
|
|
@@ -14367,7 +14367,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14367
14367
|
},
|
|
14368
14368
|
success: Struct({ questionId: String4 }),
|
|
14369
14369
|
error: RunnerRpcError
|
|
14370
|
-
}),
|
|
14370
|
+
}), make6("StartAgentStep", {
|
|
14371
14371
|
payload: {
|
|
14372
14372
|
lease: ProgramLease,
|
|
14373
14373
|
step: String4,
|
|
@@ -14383,7 +14383,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14383
14383
|
},
|
|
14384
14384
|
success: Struct({ stepAttemptId: String4 }),
|
|
14385
14385
|
error: RunnerRpcError
|
|
14386
|
-
}),
|
|
14386
|
+
}), make6("StartVerification", {
|
|
14387
14387
|
payload: {
|
|
14388
14388
|
lease: ProgramLease,
|
|
14389
14389
|
step: String4,
|
|
@@ -14391,6 +14391,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14391
14391
|
revision: optionalKey(String4),
|
|
14392
14392
|
checks: optional(ArraySchema(String4)),
|
|
14393
14393
|
suggested: optionalKey(ArraySchema(ApprovedCheck)),
|
|
14394
|
+
extra: optionalKey(ArraySchema(ApprovedCheck)),
|
|
14394
14395
|
rerunFailed: optionalKey(Boolean2),
|
|
14395
14396
|
measure: optionalKey(Struct({
|
|
14396
14397
|
base: optionalKey(String4),
|
|
@@ -14403,7 +14404,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14403
14404
|
},
|
|
14404
14405
|
success: Struct({ verificationId: String4 }),
|
|
14405
14406
|
error: RunnerRpcError
|
|
14406
|
-
}),
|
|
14407
|
+
}), make6("AwaitEvent", {
|
|
14407
14408
|
payload: {
|
|
14408
14409
|
lease: ProgramLease,
|
|
14409
14410
|
step: String4,
|
|
@@ -14419,7 +14420,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14419
14420
|
})))
|
|
14420
14421
|
},
|
|
14421
14422
|
error: RunnerRpcError
|
|
14422
|
-
}),
|
|
14423
|
+
}), make6("ClaimResource", {
|
|
14423
14424
|
payload: {
|
|
14424
14425
|
lease: ProgramLease,
|
|
14425
14426
|
step: String4,
|
|
@@ -14428,7 +14429,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14428
14429
|
action: Literals(["claim", "take_over", "let_go"])
|
|
14429
14430
|
},
|
|
14430
14431
|
error: RunnerRpcError
|
|
14431
|
-
}),
|
|
14432
|
+
}), make6("AdmitChild", {
|
|
14432
14433
|
payload: {
|
|
14433
14434
|
lease: ProgramLease,
|
|
14434
14435
|
step: String4,
|
|
@@ -14439,7 +14440,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14439
14440
|
},
|
|
14440
14441
|
success: Struct({ runId: String4 }),
|
|
14441
14442
|
error: RunnerRpcError
|
|
14442
|
-
}),
|
|
14443
|
+
}), make6("StoreArtifact", {
|
|
14443
14444
|
payload: {
|
|
14444
14445
|
lease: ProgramLease,
|
|
14445
14446
|
step: String4,
|
|
@@ -14451,7 +14452,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14451
14452
|
},
|
|
14452
14453
|
success: Struct({ artifactId: String4 }),
|
|
14453
14454
|
error: RunnerRpcError
|
|
14454
|
-
}),
|
|
14455
|
+
}), make6("RecordNote", {
|
|
14455
14456
|
payload: {
|
|
14456
14457
|
lease: ProgramLease,
|
|
14457
14458
|
step: String4,
|
|
@@ -14460,7 +14461,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14460
14461
|
kind: optional(Literals(["note", "blocker"]))
|
|
14461
14462
|
},
|
|
14462
14463
|
error: RunnerRpcError
|
|
14463
|
-
}),
|
|
14464
|
+
}), make6("PerformHostEffect", {
|
|
14464
14465
|
payload: {
|
|
14465
14466
|
lease: ProgramLease,
|
|
14466
14467
|
step: String4,
|
|
@@ -14489,7 +14490,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14489
14490
|
},
|
|
14490
14491
|
success: UndefinedOr(Struct({ id: String4, number: String4, url: String4 })),
|
|
14491
14492
|
error: RunnerRpcError
|
|
14492
|
-
}),
|
|
14493
|
+
}), make6("AlertTask", {
|
|
14493
14494
|
payload: {
|
|
14494
14495
|
lease: ProgramLease,
|
|
14495
14496
|
step: String4,
|
|
@@ -14506,7 +14507,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14506
14507
|
joined: optionalKey(Struct({ kind: Literals(["run", "recent"]), runId: String4 }))
|
|
14507
14508
|
}),
|
|
14508
14509
|
error: RunnerRpcError
|
|
14509
|
-
}),
|
|
14510
|
+
}), make6("ReadTranscripts", {
|
|
14510
14511
|
payload: {
|
|
14511
14512
|
lease: ProgramLease,
|
|
14512
14513
|
step: String4,
|
|
@@ -14541,7 +14542,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14541
14542
|
})))
|
|
14542
14543
|
}),
|
|
14543
14544
|
error: RunnerRpcError
|
|
14544
|
-
}),
|
|
14545
|
+
}), make6("PipelineStatus", {
|
|
14545
14546
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
|
|
14546
14547
|
success: Struct({
|
|
14547
14548
|
head: String4,
|
|
@@ -14575,11 +14576,11 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14575
14576
|
}))
|
|
14576
14577
|
}),
|
|
14577
14578
|
error: RunnerRpcError
|
|
14578
|
-
}),
|
|
14579
|
+
}), make6("ReportPipeline", {
|
|
14579
14580
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4, verification: String4 },
|
|
14580
14581
|
success: Struct({ head: String4, status: Literals(["success", "failed"]) }),
|
|
14581
14582
|
error: RunnerRpcError
|
|
14582
|
-
}),
|
|
14583
|
+
}), make6("ReviewThreads", {
|
|
14583
14584
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
|
|
14584
14585
|
success: Struct({
|
|
14585
14586
|
threads: ArraySchema(Struct({
|
|
@@ -14591,7 +14592,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14591
14592
|
}))
|
|
14592
14593
|
}),
|
|
14593
14594
|
error: RunnerRpcError
|
|
14594
|
-
}),
|
|
14595
|
+
}), make6("OpenChangeRequests", {
|
|
14595
14596
|
payload: { lease: ProgramLease, step: String4, authors: NonEmptyArray(String4) },
|
|
14596
14597
|
success: Struct({
|
|
14597
14598
|
changeRequests: ArraySchema(Struct({
|
|
@@ -14605,7 +14606,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14605
14606
|
}))
|
|
14606
14607
|
}),
|
|
14607
14608
|
error: RunnerRpcError
|
|
14608
|
-
}),
|
|
14609
|
+
}), make6("OwnChangeRequests", {
|
|
14609
14610
|
payload: { lease: ProgramLease, step: String4 },
|
|
14610
14611
|
success: Struct({
|
|
14611
14612
|
changeRequests: ArraySchema(Struct({
|
|
@@ -14618,7 +14619,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14618
14619
|
}))
|
|
14619
14620
|
}),
|
|
14620
14621
|
error: RunnerRpcError
|
|
14621
|
-
}),
|
|
14622
|
+
}), make6("Propose", {
|
|
14622
14623
|
payload: {
|
|
14623
14624
|
lease: ProgramLease,
|
|
14624
14625
|
step: String4,
|
|
@@ -14647,7 +14648,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14647
14648
|
task: optionalKey(Struct({ id: String4, active: Boolean2 }))
|
|
14648
14649
|
}),
|
|
14649
14650
|
error: RunnerRpcError
|
|
14650
|
-
}),
|
|
14651
|
+
}), make6("ReadProject", {
|
|
14651
14652
|
payload: { lease: ProgramLease, step: String4, projectId: String4 },
|
|
14652
14653
|
success: Struct({
|
|
14653
14654
|
project: Struct({ id: String4, name: String4 }),
|
|
@@ -14670,7 +14671,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14670
14671
|
taskChanges: ArraySchema(Struct({ taskKey: String4, title: String4, change: String4, at: String4 }))
|
|
14671
14672
|
}),
|
|
14672
14673
|
error: RunnerRpcError
|
|
14673
|
-
}),
|
|
14674
|
+
}), make6("DraftUpdate", {
|
|
14674
14675
|
payload: {
|
|
14675
14676
|
lease: ProgramLease,
|
|
14676
14677
|
step: String4,
|
|
@@ -14685,7 +14686,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14685
14686
|
},
|
|
14686
14687
|
success: Struct({ id: String4 }),
|
|
14687
14688
|
error: RunnerRpcError
|
|
14688
|
-
}),
|
|
14689
|
+
}), make6("CreatePlanTasks", {
|
|
14689
14690
|
payload: {
|
|
14690
14691
|
lease: ProgramLease,
|
|
14691
14692
|
projectId: optionalKey(String4),
|
|
@@ -14703,15 +14704,15 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14703
14704
|
},
|
|
14704
14705
|
success: ArraySchema(Struct({ key: String4, taskId: String4 })),
|
|
14705
14706
|
error: RunnerRpcError
|
|
14706
|
-
}),
|
|
14707
|
+
}), make6("IntegrationBranch", {
|
|
14707
14708
|
payload: { lease: ProgramLease, repoBindingId: optionalKey(String4) },
|
|
14708
14709
|
success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
|
|
14709
14710
|
error: RunnerRpcError
|
|
14710
|
-
}),
|
|
14711
|
+
}), make6("DeliveryBase", {
|
|
14711
14712
|
payload: { lease: ProgramLease },
|
|
14712
14713
|
success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
|
|
14713
14714
|
error: RunnerRpcError
|
|
14714
|
-
}),
|
|
14715
|
+
}), make6("MergeChangeRequest", {
|
|
14715
14716
|
payload: {
|
|
14716
14717
|
lease: ProgramLease,
|
|
14717
14718
|
step: String4,
|
|
@@ -14729,7 +14730,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14729
14730
|
Struct({ status: Literal("moved"), head: String4 })
|
|
14730
14731
|
]),
|
|
14731
14732
|
error: RunnerRpcError
|
|
14732
|
-
}),
|
|
14733
|
+
}), make6("ApproveChangeRequest", {
|
|
14733
14734
|
payload: {
|
|
14734
14735
|
lease: ProgramLease,
|
|
14735
14736
|
step: String4,
|
|
@@ -14745,7 +14746,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14745
14746
|
Struct({ approved: Literal(false), reason: String4 })
|
|
14746
14747
|
]),
|
|
14747
14748
|
error: RunnerRpcError
|
|
14748
|
-
}),
|
|
14749
|
+
}), make6("CloseChangeRequest", {
|
|
14749
14750
|
payload: {
|
|
14750
14751
|
lease: ProgramLease,
|
|
14751
14752
|
step: String4,
|
|
@@ -14755,7 +14756,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14755
14756
|
},
|
|
14756
14757
|
success: Struct({ closed: Boolean2, head: optionalKey(String4) }),
|
|
14757
14758
|
error: RunnerRpcError
|
|
14758
|
-
}),
|
|
14759
|
+
}), make6("RerunPipeline", {
|
|
14759
14760
|
payload: {
|
|
14760
14761
|
lease: ProgramLease,
|
|
14761
14762
|
step: String4,
|
|
@@ -14765,7 +14766,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14765
14766
|
},
|
|
14766
14767
|
success: Struct({ head: String4, pipelines: Int }),
|
|
14767
14768
|
error: RunnerRpcError
|
|
14768
|
-
}),
|
|
14769
|
+
}), make6("PublishRelease", {
|
|
14769
14770
|
payload: {
|
|
14770
14771
|
lease: ProgramLease,
|
|
14771
14772
|
step: String4,
|
|
@@ -14777,14 +14778,14 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14777
14778
|
},
|
|
14778
14779
|
success: Struct({ tag: String4, revision: String4, url: String4 }),
|
|
14779
14780
|
error: RunnerRpcError
|
|
14780
|
-
}),
|
|
14781
|
+
}), make6("ProgramSecrets", {
|
|
14781
14782
|
payload: { lease: ProgramLease },
|
|
14782
14783
|
success: Record(String4, String4),
|
|
14783
14784
|
error: RunnerRpcError
|
|
14784
14785
|
})).middleware(RunnerAuthentication) {
|
|
14785
14786
|
}
|
|
14786
14787
|
|
|
14787
|
-
class RunnerRunFileRpcs extends make6(
|
|
14788
|
+
class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
|
|
14788
14789
|
payload: {
|
|
14789
14790
|
lease: ProgramLease,
|
|
14790
14791
|
step: String4,
|
|
@@ -14796,11 +14797,11 @@ class RunnerRunFileRpcs extends make6(make5("CreateRunFile", {
|
|
|
14796
14797
|
},
|
|
14797
14798
|
success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
|
|
14798
14799
|
error: Union([RunnerRpcError, RunFileRefused])
|
|
14799
|
-
}),
|
|
14800
|
+
}), make6("RunFileParts", {
|
|
14800
14801
|
payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
|
|
14801
14802
|
success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
|
|
14802
14803
|
error: RunnerRpcError
|
|
14803
|
-
}),
|
|
14804
|
+
}), make6("CompleteRunFile", {
|
|
14804
14805
|
payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
|
|
14805
14806
|
success: RunFileRecord,
|
|
14806
14807
|
error: RunnerRpcError
|
|
@@ -14889,7 +14890,7 @@ function toStoredSession(token, existingRefreshToken) {
|
|
|
14889
14890
|
}
|
|
14890
14891
|
function startLoopbackServer(input) {
|
|
14891
14892
|
return gen(function* () {
|
|
14892
|
-
const code = yield*
|
|
14893
|
+
const code = yield* make16();
|
|
14893
14894
|
const context2 = yield* context();
|
|
14894
14895
|
const runSyncExit = runSyncExitWith(context2);
|
|
14895
14896
|
const server = yield* acquireRelease(sync2(() => Bun.serve({
|
|
@@ -15429,7 +15430,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
15429
15430
|
let lastId = 0;
|
|
15430
15431
|
let lost = false;
|
|
15431
15432
|
const notifications = yield* unbounded2();
|
|
15432
|
-
const ended = yield*
|
|
15433
|
+
const ended = yield* make16();
|
|
15433
15434
|
const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
|
|
15434
15435
|
onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
|
|
15435
15436
|
onNone: () => void_3,
|
|
@@ -15456,7 +15457,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
15456
15457
|
if (lost)
|
|
15457
15458
|
return yield* new HerdrCoreConnectionLost2({ method });
|
|
15458
15459
|
const id = ++lastId;
|
|
15459
|
-
const deferred = yield*
|
|
15460
|
+
const deferred = yield* make16();
|
|
15460
15461
|
pending.set(id, { method, deferred });
|
|
15461
15462
|
yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
|
|
15462
15463
|
return yield* _await(deferred);
|
|
@@ -15530,14 +15531,14 @@ var herdrCoreOver = (transport) => ({
|
|
|
15530
15531
|
return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
|
|
15531
15532
|
};
|
|
15532
15533
|
const snapshot = { type: "snapshot", terminals: subscribed.terminals };
|
|
15533
|
-
return concat(
|
|
15534
|
+
return concat(make11(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
|
|
15534
15535
|
}))
|
|
15535
15536
|
});
|
|
15536
15537
|
var spawnedTransport = (env) => gen(function* () {
|
|
15537
15538
|
const spawner = yield* ChildProcessSpawner;
|
|
15538
15539
|
const input = yield* unbounded2();
|
|
15539
15540
|
const encoder = new TextEncoder;
|
|
15540
|
-
const handle = yield* spawner.spawn(
|
|
15541
|
+
const handle = yield* spawner.spawn(make3("herdr-core", ["connect"], {
|
|
15541
15542
|
extendEnv: false,
|
|
15542
15543
|
env,
|
|
15543
15544
|
stdin: fromQueue(input),
|
|
@@ -15568,7 +15569,7 @@ var updateHerdrCore2 = (options) => gen(function* () {
|
|
|
15568
15569
|
const spawner = yield* ChildProcessSpawner;
|
|
15569
15570
|
const env = coreEnv(options);
|
|
15570
15571
|
const run = (args) => gen(function* () {
|
|
15571
|
-
const handle = yield* spawner.spawn(
|
|
15572
|
+
const handle = yield* spawner.spawn(make3("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
|
|
15572
15573
|
const [stdout, stderr, exitCode] = yield* all3([
|
|
15573
15574
|
mkString(decodeText(handle.stdout)),
|
|
15574
15575
|
mkString(decodeText(handle.stderr)),
|
|
@@ -15594,7 +15595,7 @@ class CommandFailed2 extends TaggedError("CommandFailed") {
|
|
|
15594
15595
|
}
|
|
15595
15596
|
var runCommand2 = (command, args, options = {}) => gen(function* () {
|
|
15596
15597
|
const spawner = yield* ChildProcessSpawner;
|
|
15597
|
-
const handle = yield* spawner.spawn(
|
|
15598
|
+
const handle = yield* spawner.spawn(make3(command, args, {
|
|
15598
15599
|
stdin: "ignore",
|
|
15599
15600
|
...options.cwd === undefined ? undefined : { cwd: options.cwd },
|
|
15600
15601
|
...options.env === undefined ? undefined : { extendEnv: true, env: options.env }
|
|
@@ -15620,8 +15621,8 @@ var shellOutputTailChars2 = 64 * 1024;
|
|
|
15620
15621
|
var runProcess2 = (argv, options) => gen(function* () {
|
|
15621
15622
|
const spawner = yield* ChildProcessSpawner;
|
|
15622
15623
|
const [command, ...args] = argv;
|
|
15623
|
-
const handle = yield* spawner.spawn(
|
|
15624
|
-
stdin: options.stdin === undefined ? "ignore" :
|
|
15624
|
+
const handle = yield* spawner.spawn(make3(command, args, {
|
|
15625
|
+
stdin: options.stdin === undefined ? "ignore" : make11(new TextEncoder().encode(options.stdin)),
|
|
15625
15626
|
...options.cwd === undefined ? undefined : { cwd: options.cwd },
|
|
15626
15627
|
env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
|
|
15627
15628
|
}));
|
|
@@ -16053,4 +16054,4 @@ function checkServices(declaration) {
|
|
|
16053
16054
|
return isSome(decoded) ? [...new Set(decoded.value.services)] : undefined;
|
|
16054
16055
|
}
|
|
16055
16056
|
|
|
16056
|
-
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, 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, newerKitmanVersion, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, repositoryKey, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw,
|
|
16057
|
+
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, 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, newerKitmanVersion, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, repositoryKey, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw, make5, get, post, put, setHeaders, acceptJson, bodyUint8Array, bodyJsonUnsafe, bodyUrlParams, schemaBodyJson, filterStatusOk, HttpClient, execute, get2, Fetch, layer4, Socket, SocketReadError, SocketError, WebSocketConstructor, layerWebSocketConstructorGlobal, layerWebSocket, runDisplayLabels, listedSummary, KitName, KitDigest, defaultKitName, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, removeAgentCredential, normalizeApiUrl, isStoredAgentCredential, isStreamSchema, getStreamSchemas, make6, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make7, Service, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, RunSettled, UpdateAvailable, RunnerReplicaRpcs, RunnerRunFileRpcs, ProgramRpcs, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, setupMcpAgentCredential, generateAgentKeyPair, HERDR_CORE_GENERATION2, HERDR_CORE_INSTALL_COMMAND2, HerdrCoreMissing2, HerdrCoreIncompatible2, HerdrCoreConnectionLost2, HerdrCoreRpcError2, HerdrCoreUpdateFailed2, HerdrCore2, herdrCoreLayer2, herdrCoreTransportLayer2, updateHerdrCore2, CommandFailed2, runCommand2, withoutPreloads2, shellOutputTailChars2, runProcess2, CommandRunner2, runShell2, detectHarnesses2, kitHarnesses, isKitHarness, instructionsStart, instructionsEnd, harnessNames, renderMcpServer, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices };
|