@kitman-sh/cli 0.12.12 → 0.12.13
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-gxbcvd4q.js → chunk-1msvjdrq.js} +4 -4
- package/dist/{chunk-0h49y8gf.js → chunk-20qmtmt2.js} +17 -17
- package/dist/{chunk-gq7y5v3e.js → chunk-24h0y27w.js} +1 -1
- package/dist/{chunk-7afnkx5b.js → chunk-4hdk4bje.js} +7 -7
- package/dist/{chunk-mtkstrh3.js → chunk-5f8whb7j.js} +14 -60
- package/dist/{chunk-5zth85pj.js → chunk-73fqehr2.js} +2 -2
- package/dist/{chunk-gwnyxm1r.js → chunk-853g269m.js} +22 -22
- package/dist/{chunk-ajwxd61t.js → chunk-axh2mt1y.js} +1 -1
- package/dist/{chunk-ywzxwgrz.js → chunk-cxqaccxr.js} +6 -6
- package/dist/{chunk-fr79hgq2.js → chunk-dmbcgwea.js} +5 -5
- package/dist/{chunk-nb1x1swa.js → chunk-fsmh52xq.js} +11 -11
- package/dist/{chunk-y1krmnbv.js → chunk-ggmwpwhf.js} +2 -2
- package/dist/{chunk-4gy4ty6k.js → chunk-hb71prd2.js} +4 -4
- package/dist/{chunk-gy9rf14f.js → chunk-mmd7mjv0.js} +3 -3
- package/dist/{chunk-k6jnrs2f.js → chunk-mr95mxxv.js} +21 -21
- package/dist/{chunk-jn7w2ntt.js → chunk-n1mzvqt2.js} +4 -4
- package/dist/{chunk-s9ts6nct.js → chunk-ntxzkz25.js} +23 -23
- package/dist/{chunk-q5w3v4k1.js → chunk-pxvd8w2v.js} +1 -1
- package/dist/{chunk-cbpb2rww.js → chunk-qpfb12g1.js} +7 -7
- package/dist/{chunk-vkg40ysx.js → chunk-rjxkcjb2.js} +7 -7
- package/dist/{chunk-4w0c1ykv.js → chunk-vm5s72rr.js} +109 -108
- package/dist/{chunk-azfjx5d8.js → chunk-vmhpnqss.js} +3 -3
- package/dist/{chunk-w83fadhh.js → chunk-vnfshhpk.js} +14 -7
- package/dist/{chunk-5zhh41gb.js → chunk-vp2xdw4r.js} +4 -4
- package/dist/{chunk-zw3gf6r5.js → chunk-zgraq2y3.js} +70 -28
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
assignProperty,
|
|
39
39
|
PipeInspectableProto,
|
|
40
40
|
withFiber,
|
|
41
|
-
|
|
41
|
+
make13,
|
|
42
42
|
strictEqual,
|
|
43
43
|
Tuple,
|
|
44
44
|
Number2,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
Service2,
|
|
59
59
|
makeUnsafe4,
|
|
60
60
|
empty3,
|
|
61
|
-
|
|
61
|
+
make14,
|
|
62
62
|
add,
|
|
63
63
|
getOrUndefined2,
|
|
64
64
|
getOrUndefinedUnsafe,
|
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
fail4,
|
|
92
92
|
isSuccess2,
|
|
93
93
|
makeUnsafe5,
|
|
94
|
-
|
|
94
|
+
make15,
|
|
95
95
|
_await,
|
|
96
96
|
fail5,
|
|
97
97
|
isDone,
|
|
@@ -194,6 +194,9 @@ import {
|
|
|
194
194
|
logError,
|
|
195
195
|
effectify,
|
|
196
196
|
decode,
|
|
197
|
+
isRedacted,
|
|
198
|
+
make16,
|
|
199
|
+
value,
|
|
197
200
|
defaultParseOptions,
|
|
198
201
|
omit,
|
|
199
202
|
map9,
|
|
@@ -261,7 +264,7 @@ import {
|
|
|
261
264
|
decodeJsonStringOption,
|
|
262
265
|
encodeJsonStringSync,
|
|
263
266
|
encodePrettyJsonString
|
|
264
|
-
} from "./chunk-
|
|
267
|
+
} from "./chunk-zgraq2y3.js";
|
|
265
268
|
import {
|
|
266
269
|
map,
|
|
267
270
|
makeEquivalence,
|
|
@@ -270,8 +273,8 @@ import {
|
|
|
270
273
|
systemError,
|
|
271
274
|
badArgument,
|
|
272
275
|
makeUnsafe2,
|
|
276
|
+
make7,
|
|
273
277
|
make8,
|
|
274
|
-
make9,
|
|
275
278
|
sliding,
|
|
276
279
|
unbounded2,
|
|
277
280
|
offer,
|
|
@@ -287,13 +290,13 @@ import {
|
|
|
287
290
|
isSink,
|
|
288
291
|
fromChannel,
|
|
289
292
|
drain,
|
|
290
|
-
|
|
293
|
+
make9,
|
|
291
294
|
get3,
|
|
292
295
|
isStream,
|
|
293
296
|
fromChannel2,
|
|
294
297
|
callback,
|
|
295
298
|
empty2,
|
|
296
|
-
|
|
299
|
+
make10,
|
|
297
300
|
suspend,
|
|
298
301
|
fail2,
|
|
299
302
|
fromQueue,
|
|
@@ -319,16 +322,16 @@ import {
|
|
|
319
322
|
mkArrayBuffer,
|
|
320
323
|
toReadableStreamEffect,
|
|
321
324
|
FileSystem,
|
|
322
|
-
|
|
325
|
+
make11,
|
|
323
326
|
FileTypeId,
|
|
324
327
|
WatchBackend,
|
|
325
328
|
Path,
|
|
326
|
-
|
|
329
|
+
make12,
|
|
327
330
|
option,
|
|
328
331
|
String2,
|
|
329
332
|
optionalEnv,
|
|
330
333
|
harnessesUnsupportedInSrt2
|
|
331
|
-
} from "./chunk-
|
|
334
|
+
} from "./chunk-20qmtmt2.js";
|
|
332
335
|
import {
|
|
333
336
|
isDateTime,
|
|
334
337
|
Numeric,
|
|
@@ -341,21 +344,18 @@ import {
|
|
|
341
344
|
SecretScope,
|
|
342
345
|
SecretHosts,
|
|
343
346
|
isSecretReference
|
|
344
|
-
} from "./chunk-
|
|
347
|
+
} from "./chunk-pxvd8w2v.js";
|
|
345
348
|
import {
|
|
346
|
-
isRedacted,
|
|
347
|
-
make,
|
|
348
|
-
value,
|
|
349
349
|
ExitCode,
|
|
350
350
|
ProcessId,
|
|
351
351
|
makeHandle,
|
|
352
|
-
|
|
352
|
+
make,
|
|
353
353
|
ChildProcessSpawner,
|
|
354
354
|
display,
|
|
355
|
-
|
|
355
|
+
make2,
|
|
356
356
|
parseFdName,
|
|
357
357
|
fdName
|
|
358
|
-
} from "./chunk-
|
|
358
|
+
} from "./chunk-5f8whb7j.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 make3 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
|
|
522
522
|
var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
|
|
523
523
|
var nowUnsafe = () => makeUtc(Date.now());
|
|
524
524
|
var toDateUtc = (self) => new Date(self.epochMilliseconds);
|
|
@@ -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 = make3;
|
|
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 ?? make7(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(make2(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(make2(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(make2(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 make(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) => make11({
|
|
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__ */ make12({
|
|
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__ */ make12({
|
|
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__ */ make12({
|
|
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] = make16(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] = make16(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__ */ make13((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) => {
|
|
@@ -2961,7 +2961,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
|
2961
2961
|
var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
|
|
2962
2962
|
var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
2963
2963
|
const patterns = Array.isArray(key) ? key : [key];
|
|
2964
|
-
return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ?
|
|
2964
|
+
return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make16(value) : value]);
|
|
2965
2965
|
});
|
|
2966
2966
|
var isRedactedName2 = isRedactedName;
|
|
2967
2967
|
var redactUrl = (url, redactedNames = currentRedactedNames()) => {
|
|
@@ -3037,7 +3037,7 @@ import * as readline from "readline";
|
|
|
3037
3037
|
var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
|
|
3038
3038
|
const stdin = process.stdin;
|
|
3039
3039
|
const stdout = process.stdout;
|
|
3040
|
-
const lines = yield*
|
|
3040
|
+
const lines = yield* make8();
|
|
3041
3041
|
let inputEnded = stdin.readableEnded;
|
|
3042
3042
|
let readlineActive = false;
|
|
3043
3043
|
const onStdinEnd = () => {
|
|
@@ -3048,7 +3048,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3048
3048
|
};
|
|
3049
3049
|
stdin.once("end", onStdinEnd);
|
|
3050
3050
|
yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
|
|
3051
|
-
const rlRef = yield*
|
|
3051
|
+
const rlRef = yield* make9({
|
|
3052
3052
|
acquire: acquireRelease(sync2(() => {
|
|
3053
3053
|
const rl = readline.createInterface({
|
|
3054
3054
|
input: stdin,
|
|
@@ -3087,7 +3087,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3087
3087
|
if (stdin.isTTY)
|
|
3088
3088
|
stdin.setRawMode(enabled);
|
|
3089
3089
|
});
|
|
3090
|
-
const rawModeRef = yield*
|
|
3090
|
+
const rawModeRef = yield* make9({
|
|
3091
3091
|
acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
|
|
3092
3092
|
idleTimeToLive: "10 millis"
|
|
3093
3093
|
});
|
|
@@ -3108,7 +3108,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3108
3108
|
return queue;
|
|
3109
3109
|
});
|
|
3110
3110
|
const readInput = gen(function* () {
|
|
3111
|
-
const queue = yield*
|
|
3111
|
+
const queue = yield* make8();
|
|
3112
3112
|
const handleKeypress = (s, k) => {
|
|
3113
3113
|
const userInput = {
|
|
3114
3114
|
input: fromUndefinedOr(s),
|
|
@@ -5838,7 +5838,8 @@ var LoopForbiddenDataflowKeyRegExp = new RegExp(LoopForbiddenDataflowKeyPattern)
|
|
|
5838
5838
|
var LoopForbiddenContentRegExp = new RegExp(LoopReferenceAndUrlForbiddenContentPattern);
|
|
5839
5839
|
var LoopSafeReferenceString = String4.check(isMinLength(1), isMaxLength(240), isPattern(new RegExp(LoopSafeReferencePattern, "u")));
|
|
5840
5840
|
var LoopSafeInternalReferenceString = String4.check(isMinLength(1), isMaxLength(240), isPattern(new RegExp(LoopSafeInternalReferencePattern, "u")));
|
|
5841
|
-
var
|
|
5841
|
+
var loopSafeTextMaxLength = 4000;
|
|
5842
|
+
var LoopSafeText = String4.check(isMaxLength(loopSafeTextMaxLength), isPattern(new RegExp(`^(?![\\s\\S]*(?:${LoopCredentialContentPattern}|[A-Za-z][A-Za-z0-9+.-]*://(?:[^\\s/?#]*@|[^\\s?#]*\\?)))[\\s\\S]*$`, "u")));
|
|
5842
5843
|
var QuestionText = String4;
|
|
5843
5844
|
var LoopSafeOutputDataString = String4.check(isMaxLength(4000), isPattern(new RegExp(LoopSafeInternalReferencePattern, "u")));
|
|
5844
5845
|
var LoopSafePackageName = String4.check(isMinLength(1), isMaxLength(200), isPattern(new RegExp(LoopSafeReferencePattern, "u")));
|
|
@@ -9954,14 +9955,14 @@ function makeWith(method, url, urlParams, hash, headers, body) {
|
|
|
9954
9955
|
return self;
|
|
9955
9956
|
}
|
|
9956
9957
|
var empty6 = /* @__PURE__ */ makeWith("GET", "", empty4, /* @__PURE__ */ none(), empty, empty5);
|
|
9957
|
-
var
|
|
9958
|
+
var make4 = (method) => (url, options) => modify(empty6, {
|
|
9958
9959
|
method,
|
|
9959
9960
|
url,
|
|
9960
9961
|
...options ?? undefined
|
|
9961
9962
|
});
|
|
9962
|
-
var get = /* @__PURE__ */
|
|
9963
|
-
var post = /* @__PURE__ */
|
|
9964
|
-
var put = /* @__PURE__ */
|
|
9963
|
+
var get = /* @__PURE__ */ make4("GET");
|
|
9964
|
+
var post = /* @__PURE__ */ make4("POST");
|
|
9965
|
+
var put = /* @__PURE__ */ make4("PUT");
|
|
9965
9966
|
var modify = /* @__PURE__ */ dual(2, (self, options) => {
|
|
9966
9967
|
let result = self;
|
|
9967
9968
|
if (options.method) {
|
|
@@ -10262,7 +10263,7 @@ var Proto7 = {
|
|
|
10262
10263
|
};
|
|
10263
10264
|
},
|
|
10264
10265
|
.../* @__PURE__ */ Object.fromEntries(/* @__PURE__ */ allShort.map(([fullMethod, method]) => [method, function(url, options) {
|
|
10265
|
-
return this.execute(
|
|
10266
|
+
return this.execute(make4(fullMethod)(url, options));
|
|
10266
10267
|
}]))
|
|
10267
10268
|
};
|
|
10268
10269
|
var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
|
|
@@ -13959,7 +13960,7 @@ var makeProto = (options) => {
|
|
|
13959
13960
|
Rpc.key = `effect/rpc/Rpc/${options._tag}`;
|
|
13960
13961
|
return Rpc;
|
|
13961
13962
|
};
|
|
13962
|
-
var
|
|
13963
|
+
var make5 = (tag, options) => {
|
|
13963
13964
|
const successSchema = options?.success ?? Void;
|
|
13964
13965
|
const errorSchema = options?.error ?? Never;
|
|
13965
13966
|
const defectSchema = options?.defect ?? Defect();
|
|
@@ -14170,7 +14171,7 @@ var RpcGroupProto = {
|
|
|
14170
14171
|
});
|
|
14171
14172
|
},
|
|
14172
14173
|
annotateRpcs(service, value) {
|
|
14173
|
-
return this.annotateRpcsMerge(
|
|
14174
|
+
return this.annotateRpcsMerge(make14(service, value));
|
|
14174
14175
|
},
|
|
14175
14176
|
annotateMerge(context) {
|
|
14176
14177
|
return makeProto2({
|
|
@@ -14193,7 +14194,7 @@ var makeProto2 = (options) => Object.assign(function() {}, RpcGroupProto, {
|
|
|
14193
14194
|
requests: options.requests,
|
|
14194
14195
|
annotations: options.annotations
|
|
14195
14196
|
});
|
|
14196
|
-
var
|
|
14197
|
+
var make6 = (...rpcs) => makeProto2({
|
|
14197
14198
|
requests: new Map(rpcs.map((rpc) => [rpc._tag, rpc])),
|
|
14198
14199
|
annotations: empty3()
|
|
14199
14200
|
});
|
|
@@ -14299,96 +14300,96 @@ var ProgramOutcome = Union([
|
|
|
14299
14300
|
Struct({ status: Literal("failed"), failureSummary: String4 })
|
|
14300
14301
|
]);
|
|
14301
14302
|
|
|
14302
|
-
class RunnerReplicaRpcs extends
|
|
14303
|
+
class RunnerReplicaRpcs extends make6(make5("Claim", {
|
|
14303
14304
|
payload: WorkUnitClaimInput,
|
|
14304
14305
|
success: WorkUnitClaimResult,
|
|
14305
14306
|
error: RunnerRpcError
|
|
14306
|
-
}),
|
|
14307
|
+
}), make5("Heartbeat", {
|
|
14307
14308
|
payload: WorkUnitHeartbeatInput,
|
|
14308
14309
|
success: WorkUnitHeartbeatResult,
|
|
14309
14310
|
error: RunnerRpcError
|
|
14310
|
-
}),
|
|
14311
|
+
}), make5("Complete", {
|
|
14311
14312
|
payload: WorkUnitCompletion,
|
|
14312
14313
|
error: RunnerRpcError
|
|
14313
|
-
}),
|
|
14314
|
+
}), make5("Release", {
|
|
14314
14315
|
payload: WorkUnitReleaseInput,
|
|
14315
14316
|
error: RunnerRpcError
|
|
14316
|
-
}),
|
|
14317
|
+
}), make5("Signals", {
|
|
14317
14318
|
payload: { runnerReplicaId: String4 },
|
|
14318
14319
|
success: RunnerSignal,
|
|
14319
14320
|
error: RunnerRpcError,
|
|
14320
14321
|
stream: true
|
|
14321
|
-
}),
|
|
14322
|
+
}), make5("ReportSteer", {
|
|
14322
14323
|
payload: { workUnitId: String4, messageId: String4, delivered: Boolean2 },
|
|
14323
14324
|
success: Void,
|
|
14324
14325
|
error: RunnerRpcError
|
|
14325
|
-
}),
|
|
14326
|
+
}), make5("AppendTranscript", {
|
|
14326
14327
|
payload: { workUnitId: String4, entries: ArraySchema(TranscriptAppendEntry).check(isMaxLength(100)) },
|
|
14327
14328
|
success: Void,
|
|
14328
14329
|
error: RunnerRpcError
|
|
14329
|
-
}),
|
|
14330
|
+
}), make5("CreateCheckpointFile", {
|
|
14330
14331
|
payload: { lease: ProgramLease, byteSize: Int, sha256: String4 },
|
|
14331
14332
|
success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
|
|
14332
14333
|
error: Union([RunnerRpcError, RunFileRefused])
|
|
14333
|
-
}),
|
|
14334
|
+
}), make5("CheckpointFileParts", {
|
|
14334
14335
|
payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
|
|
14335
14336
|
success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
|
|
14336
14337
|
error: RunnerRpcError
|
|
14337
|
-
}),
|
|
14338
|
+
}), make5("CompleteCheckpointFile", {
|
|
14338
14339
|
payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
|
|
14339
14340
|
success: RunFileRecord,
|
|
14340
14341
|
error: RunnerRpcError
|
|
14341
|
-
}),
|
|
14342
|
+
}), make5("SaveCheckpoint", {
|
|
14342
14343
|
payload: { lease: ProgramLease, checkpoint: StepCheckpoint },
|
|
14343
14344
|
success: Void,
|
|
14344
14345
|
error: RunnerRpcError
|
|
14345
|
-
}),
|
|
14346
|
+
}), make5("ResumeCheckpoint", {
|
|
14346
14347
|
payload: { lease: ProgramLease },
|
|
14347
14348
|
success: UndefinedOr(ResumedCheckpoint),
|
|
14348
14349
|
error: RunnerRpcError
|
|
14349
|
-
}),
|
|
14350
|
+
}), make5("SettledCheckpoints", {
|
|
14350
14351
|
success: ArraySchema(Struct({
|
|
14351
14352
|
stepAttemptId: String4,
|
|
14352
14353
|
ref: optionalKey(String4),
|
|
14353
14354
|
repoBinding: optionalKey(WorkUnitRepoBinding)
|
|
14354
14355
|
})),
|
|
14355
14356
|
error: RunnerRpcError
|
|
14356
|
-
}),
|
|
14357
|
+
}), make5("ForgetCheckpoints", {
|
|
14357
14358
|
payload: { stepAttemptIds: ArraySchema(String4) },
|
|
14358
14359
|
success: Void,
|
|
14359
14360
|
error: RunnerRpcError
|
|
14360
|
-
}),
|
|
14361
|
+
}), make5("GitCredential", {
|
|
14361
14362
|
payload: { repoBindingId: String4 },
|
|
14362
14363
|
success: UndefinedOr(Struct({ username: String4, password: String4 })),
|
|
14363
14364
|
error: RunnerRpcError
|
|
14364
|
-
}),
|
|
14365
|
+
}), make5("Bundle", {
|
|
14365
14366
|
payload: { digest: String4 },
|
|
14366
14367
|
success: Struct({ bundle: String4 }),
|
|
14367
14368
|
error: RunnerRpcError
|
|
14368
|
-
}),
|
|
14369
|
+
}), make5("SettledRuns", {
|
|
14369
14370
|
payload: { runIds: ArraySchema(String4) },
|
|
14370
14371
|
success: ArraySchema(String4),
|
|
14371
14372
|
error: RunnerRpcError
|
|
14372
|
-
}),
|
|
14373
|
+
}), make5("KnownEvidence", {
|
|
14373
14374
|
payload: { lease: ProgramLease, trees: ArraySchema(String4) },
|
|
14374
14375
|
success: ArraySchema(Struct({ tree: String4, name: String4, command: String4 })),
|
|
14375
14376
|
error: RunnerRpcError
|
|
14376
14377
|
})).middleware(RunnerAuthentication) {
|
|
14377
14378
|
}
|
|
14378
14379
|
|
|
14379
|
-
class RunnerJournalRpcs extends
|
|
14380
|
+
class RunnerJournalRpcs extends make6(make5("RecordActivity", {
|
|
14380
14381
|
payload: { lease: ProgramLease, name: String4, attempt: Int, exit: Json },
|
|
14381
14382
|
error: RunnerRpcError
|
|
14382
|
-
}),
|
|
14383
|
+
}), make5("DeferredDone", {
|
|
14383
14384
|
payload: { lease: ProgramLease, name: String4, exit: Json },
|
|
14384
14385
|
error: RunnerRpcError
|
|
14385
|
-
}),
|
|
14386
|
+
}), make5("ScheduleClock", {
|
|
14386
14387
|
payload: { lease: ProgramLease, name: String4, deferredName: String4, durationMillis: Int },
|
|
14387
14388
|
error: RunnerRpcError
|
|
14388
|
-
}),
|
|
14389
|
+
}), make5("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make5("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
|
|
14389
14390
|
}
|
|
14390
14391
|
|
|
14391
|
-
class RunnerCapabilityRpcs extends
|
|
14392
|
+
class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
14392
14393
|
payload: {
|
|
14393
14394
|
lease: ProgramLease,
|
|
14394
14395
|
step: String4,
|
|
@@ -14408,7 +14409,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14408
14409
|
},
|
|
14409
14410
|
success: Struct({ questionId: String4 }),
|
|
14410
14411
|
error: RunnerRpcError
|
|
14411
|
-
}),
|
|
14412
|
+
}), make5("StartAgentStep", {
|
|
14412
14413
|
payload: {
|
|
14413
14414
|
lease: ProgramLease,
|
|
14414
14415
|
step: String4,
|
|
@@ -14424,7 +14425,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14424
14425
|
},
|
|
14425
14426
|
success: Struct({ stepAttemptId: String4 }),
|
|
14426
14427
|
error: RunnerRpcError
|
|
14427
|
-
}),
|
|
14428
|
+
}), make5("StartVerification", {
|
|
14428
14429
|
payload: {
|
|
14429
14430
|
lease: ProgramLease,
|
|
14430
14431
|
step: String4,
|
|
@@ -14445,7 +14446,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14445
14446
|
},
|
|
14446
14447
|
success: Struct({ verificationId: String4 }),
|
|
14447
14448
|
error: RunnerRpcError
|
|
14448
|
-
}),
|
|
14449
|
+
}), make5("AwaitEvent", {
|
|
14449
14450
|
payload: {
|
|
14450
14451
|
lease: ProgramLease,
|
|
14451
14452
|
step: String4,
|
|
@@ -14461,7 +14462,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14461
14462
|
})))
|
|
14462
14463
|
},
|
|
14463
14464
|
error: RunnerRpcError
|
|
14464
|
-
}),
|
|
14465
|
+
}), make5("ClaimResource", {
|
|
14465
14466
|
payload: {
|
|
14466
14467
|
lease: ProgramLease,
|
|
14467
14468
|
step: String4,
|
|
@@ -14470,7 +14471,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14470
14471
|
action: Literals(["claim", "take_over", "let_go"])
|
|
14471
14472
|
},
|
|
14472
14473
|
error: RunnerRpcError
|
|
14473
|
-
}),
|
|
14474
|
+
}), make5("AdmitChild", {
|
|
14474
14475
|
payload: {
|
|
14475
14476
|
lease: ProgramLease,
|
|
14476
14477
|
step: String4,
|
|
@@ -14481,7 +14482,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14481
14482
|
},
|
|
14482
14483
|
success: Struct({ runId: String4 }),
|
|
14483
14484
|
error: RunnerRpcError
|
|
14484
|
-
}),
|
|
14485
|
+
}), make5("StoreArtifact", {
|
|
14485
14486
|
payload: {
|
|
14486
14487
|
lease: ProgramLease,
|
|
14487
14488
|
step: String4,
|
|
@@ -14493,7 +14494,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14493
14494
|
},
|
|
14494
14495
|
success: Struct({ artifactId: String4 }),
|
|
14495
14496
|
error: RunnerRpcError
|
|
14496
|
-
}),
|
|
14497
|
+
}), make5("RecordNote", {
|
|
14497
14498
|
payload: {
|
|
14498
14499
|
lease: ProgramLease,
|
|
14499
14500
|
step: String4,
|
|
@@ -14502,7 +14503,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14502
14503
|
kind: optional(Literals(["note", "blocker"]))
|
|
14503
14504
|
},
|
|
14504
14505
|
error: RunnerRpcError
|
|
14505
|
-
}),
|
|
14506
|
+
}), make5("PerformHostEffect", {
|
|
14506
14507
|
payload: {
|
|
14507
14508
|
lease: ProgramLease,
|
|
14508
14509
|
step: String4,
|
|
@@ -14531,7 +14532,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14531
14532
|
},
|
|
14532
14533
|
success: UndefinedOr(Struct({ id: String4, number: String4, url: String4 })),
|
|
14533
14534
|
error: RunnerRpcError
|
|
14534
|
-
}),
|
|
14535
|
+
}), make5("AlertTask", {
|
|
14535
14536
|
payload: {
|
|
14536
14537
|
lease: ProgramLease,
|
|
14537
14538
|
step: String4,
|
|
@@ -14548,7 +14549,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14548
14549
|
joined: optionalKey(Struct({ kind: Literals(["run", "recent"]), runId: String4 }))
|
|
14549
14550
|
}),
|
|
14550
14551
|
error: RunnerRpcError
|
|
14551
|
-
}),
|
|
14552
|
+
}), make5("ReadTranscripts", {
|
|
14552
14553
|
payload: {
|
|
14553
14554
|
lease: ProgramLease,
|
|
14554
14555
|
step: String4,
|
|
@@ -14583,7 +14584,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14583
14584
|
})))
|
|
14584
14585
|
}),
|
|
14585
14586
|
error: RunnerRpcError
|
|
14586
|
-
}),
|
|
14587
|
+
}), make5("PipelineStatus", {
|
|
14587
14588
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
|
|
14588
14589
|
success: Struct({
|
|
14589
14590
|
head: String4,
|
|
@@ -14617,11 +14618,11 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14617
14618
|
}))
|
|
14618
14619
|
}),
|
|
14619
14620
|
error: RunnerRpcError
|
|
14620
|
-
}),
|
|
14621
|
+
}), make5("ReportPipeline", {
|
|
14621
14622
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4, verification: String4 },
|
|
14622
14623
|
success: Struct({ head: String4, status: Literals(["success", "failed"]) }),
|
|
14623
14624
|
error: RunnerRpcError
|
|
14624
|
-
}),
|
|
14625
|
+
}), make5("ReviewThreads", {
|
|
14625
14626
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
|
|
14626
14627
|
success: Struct({
|
|
14627
14628
|
threads: ArraySchema(Struct({
|
|
@@ -14633,7 +14634,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14633
14634
|
}))
|
|
14634
14635
|
}),
|
|
14635
14636
|
error: RunnerRpcError
|
|
14636
|
-
}),
|
|
14637
|
+
}), make5("OpenChangeRequests", {
|
|
14637
14638
|
payload: { lease: ProgramLease, step: String4, authors: NonEmptyArray(String4) },
|
|
14638
14639
|
success: Struct({
|
|
14639
14640
|
changeRequests: ArraySchema(Struct({
|
|
@@ -14647,7 +14648,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14647
14648
|
}))
|
|
14648
14649
|
}),
|
|
14649
14650
|
error: RunnerRpcError
|
|
14650
|
-
}),
|
|
14651
|
+
}), make5("OwnChangeRequests", {
|
|
14651
14652
|
payload: { lease: ProgramLease, step: String4 },
|
|
14652
14653
|
success: Struct({
|
|
14653
14654
|
changeRequests: ArraySchema(Struct({
|
|
@@ -14660,7 +14661,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14660
14661
|
}))
|
|
14661
14662
|
}),
|
|
14662
14663
|
error: RunnerRpcError
|
|
14663
|
-
}),
|
|
14664
|
+
}), make5("Propose", {
|
|
14664
14665
|
payload: {
|
|
14665
14666
|
lease: ProgramLease,
|
|
14666
14667
|
step: String4,
|
|
@@ -14689,7 +14690,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14689
14690
|
task: optionalKey(Struct({ id: String4, active: Boolean2 }))
|
|
14690
14691
|
}),
|
|
14691
14692
|
error: RunnerRpcError
|
|
14692
|
-
}),
|
|
14693
|
+
}), make5("ReadProject", {
|
|
14693
14694
|
payload: { lease: ProgramLease, step: String4, projectId: String4 },
|
|
14694
14695
|
success: Struct({
|
|
14695
14696
|
project: Struct({ id: String4, name: String4 }),
|
|
@@ -14712,7 +14713,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14712
14713
|
taskChanges: ArraySchema(Struct({ taskKey: String4, title: String4, change: String4, at: String4 }))
|
|
14713
14714
|
}),
|
|
14714
14715
|
error: RunnerRpcError
|
|
14715
|
-
}),
|
|
14716
|
+
}), make5("DraftUpdate", {
|
|
14716
14717
|
payload: {
|
|
14717
14718
|
lease: ProgramLease,
|
|
14718
14719
|
step: String4,
|
|
@@ -14727,7 +14728,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14727
14728
|
},
|
|
14728
14729
|
success: Struct({ id: String4 }),
|
|
14729
14730
|
error: RunnerRpcError
|
|
14730
|
-
}),
|
|
14731
|
+
}), make5("CreatePlanTasks", {
|
|
14731
14732
|
payload: {
|
|
14732
14733
|
lease: ProgramLease,
|
|
14733
14734
|
projectId: optionalKey(String4),
|
|
@@ -14745,15 +14746,15 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14745
14746
|
},
|
|
14746
14747
|
success: ArraySchema(Struct({ key: String4, taskId: String4 })),
|
|
14747
14748
|
error: RunnerRpcError
|
|
14748
|
-
}),
|
|
14749
|
+
}), make5("IntegrationBranch", {
|
|
14749
14750
|
payload: { lease: ProgramLease, repoBindingId: optionalKey(String4) },
|
|
14750
14751
|
success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
|
|
14751
14752
|
error: RunnerRpcError
|
|
14752
|
-
}),
|
|
14753
|
+
}), make5("DeliveryBase", {
|
|
14753
14754
|
payload: { lease: ProgramLease },
|
|
14754
14755
|
success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
|
|
14755
14756
|
error: RunnerRpcError
|
|
14756
|
-
}),
|
|
14757
|
+
}), make5("MergeChangeRequest", {
|
|
14757
14758
|
payload: {
|
|
14758
14759
|
lease: ProgramLease,
|
|
14759
14760
|
step: String4,
|
|
@@ -14771,7 +14772,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14771
14772
|
Struct({ status: Literal("moved"), head: String4 })
|
|
14772
14773
|
]),
|
|
14773
14774
|
error: RunnerRpcError
|
|
14774
|
-
}),
|
|
14775
|
+
}), make5("ApproveChangeRequest", {
|
|
14775
14776
|
payload: {
|
|
14776
14777
|
lease: ProgramLease,
|
|
14777
14778
|
step: String4,
|
|
@@ -14787,7 +14788,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14787
14788
|
Struct({ approved: Literal(false), reason: String4 })
|
|
14788
14789
|
]),
|
|
14789
14790
|
error: RunnerRpcError
|
|
14790
|
-
}),
|
|
14791
|
+
}), make5("CloseChangeRequest", {
|
|
14791
14792
|
payload: {
|
|
14792
14793
|
lease: ProgramLease,
|
|
14793
14794
|
step: String4,
|
|
@@ -14797,7 +14798,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14797
14798
|
},
|
|
14798
14799
|
success: Struct({ closed: Boolean2, head: optionalKey(String4) }),
|
|
14799
14800
|
error: RunnerRpcError
|
|
14800
|
-
}),
|
|
14801
|
+
}), make5("RerunPipeline", {
|
|
14801
14802
|
payload: {
|
|
14802
14803
|
lease: ProgramLease,
|
|
14803
14804
|
step: String4,
|
|
@@ -14807,7 +14808,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14807
14808
|
},
|
|
14808
14809
|
success: Struct({ head: String4, pipelines: Int }),
|
|
14809
14810
|
error: RunnerRpcError
|
|
14810
|
-
}),
|
|
14811
|
+
}), make5("PublishRelease", {
|
|
14811
14812
|
payload: {
|
|
14812
14813
|
lease: ProgramLease,
|
|
14813
14814
|
step: String4,
|
|
@@ -14819,14 +14820,14 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14819
14820
|
},
|
|
14820
14821
|
success: Struct({ tag: String4, revision: String4, url: String4 }),
|
|
14821
14822
|
error: RunnerRpcError
|
|
14822
|
-
}),
|
|
14823
|
+
}), make5("ProgramSecrets", {
|
|
14823
14824
|
payload: { lease: ProgramLease },
|
|
14824
14825
|
success: Record(String4, String4),
|
|
14825
14826
|
error: RunnerRpcError
|
|
14826
14827
|
})).middleware(RunnerAuthentication) {
|
|
14827
14828
|
}
|
|
14828
14829
|
|
|
14829
|
-
class RunnerRunFileRpcs extends
|
|
14830
|
+
class RunnerRunFileRpcs extends make6(make5("CreateRunFile", {
|
|
14830
14831
|
payload: {
|
|
14831
14832
|
lease: ProgramLease,
|
|
14832
14833
|
step: String4,
|
|
@@ -14838,11 +14839,11 @@ class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
|
|
|
14838
14839
|
},
|
|
14839
14840
|
success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
|
|
14840
14841
|
error: Union([RunnerRpcError, RunFileRefused])
|
|
14841
|
-
}),
|
|
14842
|
+
}), make5("RunFileParts", {
|
|
14842
14843
|
payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
|
|
14843
14844
|
success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
|
|
14844
14845
|
error: RunnerRpcError
|
|
14845
|
-
}),
|
|
14846
|
+
}), make5("CompleteRunFile", {
|
|
14846
14847
|
payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
|
|
14847
14848
|
success: RunFileRecord,
|
|
14848
14849
|
error: RunnerRpcError
|
|
@@ -14931,7 +14932,7 @@ function toStoredSession(token, existingRefreshToken) {
|
|
|
14931
14932
|
}
|
|
14932
14933
|
function startLoopbackServer(input) {
|
|
14933
14934
|
return gen(function* () {
|
|
14934
|
-
const code = yield*
|
|
14935
|
+
const code = yield* make15();
|
|
14935
14936
|
const context2 = yield* context();
|
|
14936
14937
|
const runSyncExit = runSyncExitWith(context2);
|
|
14937
14938
|
const server = yield* acquireRelease(sync2(() => Bun.serve({
|
|
@@ -15471,7 +15472,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
15471
15472
|
let lastId = 0;
|
|
15472
15473
|
let lost = false;
|
|
15473
15474
|
const notifications = yield* unbounded2();
|
|
15474
|
-
const ended = yield*
|
|
15475
|
+
const ended = yield* make15();
|
|
15475
15476
|
const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
|
|
15476
15477
|
onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
|
|
15477
15478
|
onNone: () => void_3,
|
|
@@ -15498,7 +15499,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
15498
15499
|
if (lost)
|
|
15499
15500
|
return yield* new HerdrCoreConnectionLost2({ method });
|
|
15500
15501
|
const id = ++lastId;
|
|
15501
|
-
const deferred = yield*
|
|
15502
|
+
const deferred = yield* make15();
|
|
15502
15503
|
pending.set(id, { method, deferred });
|
|
15503
15504
|
yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
|
|
15504
15505
|
return yield* _await(deferred);
|
|
@@ -15572,14 +15573,14 @@ var herdrCoreOver = (transport) => ({
|
|
|
15572
15573
|
return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
|
|
15573
15574
|
};
|
|
15574
15575
|
const snapshot = { type: "snapshot", terminals: subscribed.terminals };
|
|
15575
|
-
return concat(
|
|
15576
|
+
return concat(make10(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
|
|
15576
15577
|
}))
|
|
15577
15578
|
});
|
|
15578
15579
|
var spawnedTransport = (env) => gen(function* () {
|
|
15579
15580
|
const spawner = yield* ChildProcessSpawner;
|
|
15580
15581
|
const input = yield* unbounded2();
|
|
15581
15582
|
const encoder = new TextEncoder;
|
|
15582
|
-
const handle = yield* spawner.spawn(
|
|
15583
|
+
const handle = yield* spawner.spawn(make2("herdr-core", ["connect"], {
|
|
15583
15584
|
extendEnv: false,
|
|
15584
15585
|
env,
|
|
15585
15586
|
stdin: fromQueue(input),
|
|
@@ -15610,7 +15611,7 @@ var updateHerdrCore2 = (options) => gen(function* () {
|
|
|
15610
15611
|
const spawner = yield* ChildProcessSpawner;
|
|
15611
15612
|
const env = coreEnv(options);
|
|
15612
15613
|
const run = (args) => gen(function* () {
|
|
15613
|
-
const handle = yield* spawner.spawn(
|
|
15614
|
+
const handle = yield* spawner.spawn(make2("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
|
|
15614
15615
|
const [stdout, stderr, exitCode] = yield* all3([
|
|
15615
15616
|
mkString(decodeText(handle.stdout)),
|
|
15616
15617
|
mkString(decodeText(handle.stderr)),
|
|
@@ -15636,7 +15637,7 @@ class CommandFailed2 extends TaggedError("CommandFailed") {
|
|
|
15636
15637
|
}
|
|
15637
15638
|
var runCommand2 = (command, args, options = {}) => gen(function* () {
|
|
15638
15639
|
const spawner = yield* ChildProcessSpawner;
|
|
15639
|
-
const handle = yield* spawner.spawn(
|
|
15640
|
+
const handle = yield* spawner.spawn(make2(command, args, {
|
|
15640
15641
|
stdin: "ignore",
|
|
15641
15642
|
...options.cwd === undefined ? undefined : { cwd: options.cwd },
|
|
15642
15643
|
...options.env === undefined ? undefined : { extendEnv: true, env: options.env }
|
|
@@ -15662,8 +15663,8 @@ var shellOutputTailChars2 = 64 * 1024;
|
|
|
15662
15663
|
var runProcess2 = (argv, options) => gen(function* () {
|
|
15663
15664
|
const spawner = yield* ChildProcessSpawner;
|
|
15664
15665
|
const [command, ...args] = argv;
|
|
15665
|
-
const handle = yield* spawner.spawn(
|
|
15666
|
-
stdin: options.stdin === undefined ? "ignore" :
|
|
15666
|
+
const handle = yield* spawner.spawn(make2(command, args, {
|
|
15667
|
+
stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
|
|
15667
15668
|
...options.cwd === undefined ? undefined : { cwd: options.cwd },
|
|
15668
15669
|
env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
|
|
15669
15670
|
}));
|
|
@@ -16095,4 +16096,4 @@ function checkServices(declaration) {
|
|
|
16095
16096
|
return isSome(decoded) ? [...new Set(decoded.value.services)] : undefined;
|
|
16096
16097
|
}
|
|
16097
16098
|
|
|
16098
|
-
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, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, tokensSpent, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, RunWaitUntils, isTestReportName, checkTests, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, MaxRunnerConcurrency, PinnedImage, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, deliveryProviderActions, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, repositoryKey, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw,
|
|
16099
|
+
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, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, tokensSpent, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, RunWaitUntils, isTestReportName, checkTests, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, MaxRunnerConcurrency, PinnedImage, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, deliveryProviderActions, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, repositoryKey, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw, make4, get, post, put, setHeaders, acceptJson, bodyUint8Array, bodyJsonUnsafe, bodyUrlParams, schemaBodyJson, filterStatusOk, HttpClient, execute, get2, Fetch, layer4, Socket, SocketReadError, SocketError, WebSocketConstructor, layerWebSocketConstructorGlobal, layerWebSocket, runDisplayLabels, listedSummary, KitName, KitDigest, defaultKitName, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, 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 };
|