@kitman-sh/cli 0.12.0-rc.2 → 0.12.0-rc.4
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-0qz10ek8.js → chunk-6b0k02x4.js} +1 -1
- package/dist/{chunk-rzzd7zv3.js → chunk-74txrt4s.js} +4 -4
- package/dist/{chunk-vtfwjhzh.js → chunk-79gx7ek9.js} +70 -28
- package/dist/{chunk-db9q9y8h.js → chunk-7kjsvwzv.js} +5 -5
- package/dist/{chunk-emh8zw7k.js → chunk-aafxvmj1.js} +7 -7
- package/dist/{chunk-d9bv70qb.js → chunk-b50dvx41.js} +5 -5
- package/dist/{chunk-nzjb36ad.js → chunk-bq55md8p.js} +1 -1
- package/dist/{chunk-c6rbt85q.js → chunk-c9007k48.js} +1 -1
- package/dist/{chunk-2ptxq9cq.js → chunk-ckkpqcfv.js} +10 -6
- package/dist/{chunk-myqf27w2.js → chunk-e7q2frvs.js} +7 -7
- package/dist/{chunk-n6hxwdm6.js → chunk-ezf2myj0.js} +3 -3
- package/dist/{chunk-sk6ceghr.js → chunk-jntxtx9j.js} +14 -60
- package/dist/{chunk-vmv7gwwr.js → chunk-k81ay8y5.js} +8 -8
- package/dist/{chunk-2k08hw5q.js → chunk-kybp1mkk.js} +8 -8
- package/dist/{chunk-6pz3nsn5.js → chunk-nzsrse8d.js} +40 -40
- package/dist/{chunk-z450wa10.js → chunk-pw10mq9e.js} +4 -4
- package/dist/{chunk-ha241q06.js → chunk-qjd6w9sw.js} +5 -3
- package/dist/{chunk-fhyn2b38.js → chunk-r1z41qx6.js} +120 -111
- package/dist/{chunk-cjscsbg8.js → chunk-rjasmnav.js} +22 -22
- package/dist/{chunk-7gnrnv4a.js → chunk-t2mr6z38.js} +737 -26
- package/dist/{chunk-bxqfgc6z.js → chunk-w0aj9mkz.js} +8 -7
- package/dist/{chunk-4f72nbw2.js → chunk-w6cm939j.js} +19 -19
- package/dist/{chunk-5j848ckb.js → chunk-xavcp9se.js} +2 -2
- package/dist/{chunk-japwbj9n.js → chunk-xy5f2nv9.js} +2 -2
- package/dist/{chunk-yfamq8xw.js → chunk-ydydx55z.js} +1 -1
- package/dist/{chunk-3d4d52e5.js → chunk-zmcghp8w.js} +23 -18
- 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,
|
|
@@ -249,7 +252,7 @@ import {
|
|
|
249
252
|
decodeJsonStringOption,
|
|
250
253
|
encodeJsonStringSync,
|
|
251
254
|
encodePrettyJsonString
|
|
252
|
-
} from "./chunk-
|
|
255
|
+
} from "./chunk-79gx7ek9.js";
|
|
253
256
|
import {
|
|
254
257
|
map,
|
|
255
258
|
makeEquivalence,
|
|
@@ -258,8 +261,8 @@ import {
|
|
|
258
261
|
systemError,
|
|
259
262
|
badArgument,
|
|
260
263
|
makeUnsafe2,
|
|
264
|
+
make7,
|
|
261
265
|
make8,
|
|
262
|
-
make9,
|
|
263
266
|
sliding,
|
|
264
267
|
unbounded2,
|
|
265
268
|
offer,
|
|
@@ -275,13 +278,13 @@ import {
|
|
|
275
278
|
isSink,
|
|
276
279
|
fromChannel,
|
|
277
280
|
drain,
|
|
278
|
-
|
|
281
|
+
make9,
|
|
279
282
|
get3,
|
|
280
283
|
isStream,
|
|
281
284
|
fromChannel2,
|
|
282
285
|
callback,
|
|
283
286
|
empty2,
|
|
284
|
-
|
|
287
|
+
make10,
|
|
285
288
|
suspend,
|
|
286
289
|
fail2,
|
|
287
290
|
fromQueue,
|
|
@@ -307,16 +310,16 @@ import {
|
|
|
307
310
|
mkArrayBuffer,
|
|
308
311
|
toReadableStreamEffect,
|
|
309
312
|
FileSystem,
|
|
310
|
-
|
|
313
|
+
make11,
|
|
311
314
|
FileTypeId,
|
|
312
315
|
WatchBackend,
|
|
313
316
|
Path,
|
|
314
|
-
|
|
317
|
+
make12,
|
|
315
318
|
option,
|
|
316
319
|
String2,
|
|
317
320
|
optionalEnv,
|
|
318
321
|
harnessesUnsupportedInSrt2
|
|
319
|
-
} from "./chunk-
|
|
322
|
+
} from "./chunk-zmcghp8w.js";
|
|
320
323
|
import {
|
|
321
324
|
isDateTime,
|
|
322
325
|
Numeric,
|
|
@@ -329,7 +332,7 @@ import {
|
|
|
329
332
|
SecretScope,
|
|
330
333
|
SecretHosts,
|
|
331
334
|
isSecretReference
|
|
332
|
-
} from "./chunk-
|
|
335
|
+
} from "./chunk-6b0k02x4.js";
|
|
333
336
|
import {
|
|
334
337
|
toJsonValue,
|
|
335
338
|
isOneOf,
|
|
@@ -343,21 +346,18 @@ import {
|
|
|
343
346
|
isSymbol,
|
|
344
347
|
isUndefined,
|
|
345
348
|
kindOf
|
|
346
|
-
} from "./chunk-
|
|
349
|
+
} from "./chunk-c9007k48.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-jntxtx9j.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),
|
|
@@ -3400,7 +3400,11 @@ function inSecretReference(text, start, end) {
|
|
|
3400
3400
|
var placeholderTokenName = new RegExp(`^<?(?:ghp_|github_pat_|glpat-|ksa1\\.|sk-|xox[baprs]-)${placeholderNamePart}(?:[_.-]${placeholderNamePart})*>?$`, "u");
|
|
3401
3401
|
var bearerValue = /[0-9]|[._~+/:-][A-Za-z0-9]|[<{]/u;
|
|
3402
3402
|
var VALUE_RULES = [
|
|
3403
|
-
{
|
|
3403
|
+
{
|
|
3404
|
+
classification: "secret",
|
|
3405
|
+
name: "private-key",
|
|
3406
|
+
pattern: /-----BEGIN (?:[A-Z0-9]+ )*PRIVATE KEY-----(?:[\s\S]*?-----END (?:[A-Z0-9]+ )*PRIVATE KEY-----|[\s\S]*)/u
|
|
3407
|
+
},
|
|
3404
3408
|
{
|
|
3405
3409
|
classification: "credential",
|
|
3406
3410
|
name: "bearer-token",
|
|
@@ -9918,14 +9922,14 @@ function makeWith(method, url, urlParams, hash, headers, body) {
|
|
|
9918
9922
|
return self;
|
|
9919
9923
|
}
|
|
9920
9924
|
var empty6 = /* @__PURE__ */ makeWith("GET", "", empty4, /* @__PURE__ */ none(), empty, empty5);
|
|
9921
|
-
var
|
|
9925
|
+
var make4 = (method) => (url, options) => modify(empty6, {
|
|
9922
9926
|
method,
|
|
9923
9927
|
url,
|
|
9924
9928
|
...options ?? undefined
|
|
9925
9929
|
});
|
|
9926
|
-
var get = /* @__PURE__ */
|
|
9927
|
-
var post = /* @__PURE__ */
|
|
9928
|
-
var put = /* @__PURE__ */
|
|
9930
|
+
var get = /* @__PURE__ */ make4("GET");
|
|
9931
|
+
var post = /* @__PURE__ */ make4("POST");
|
|
9932
|
+
var put = /* @__PURE__ */ make4("PUT");
|
|
9929
9933
|
var modify = /* @__PURE__ */ dual(2, (self, options) => {
|
|
9930
9934
|
let result = self;
|
|
9931
9935
|
if (options.method) {
|
|
@@ -10226,7 +10230,7 @@ var Proto7 = {
|
|
|
10226
10230
|
};
|
|
10227
10231
|
},
|
|
10228
10232
|
.../* @__PURE__ */ Object.fromEntries(/* @__PURE__ */ allShort.map(([fullMethod, method]) => [method, function(url, options) {
|
|
10229
|
-
return this.execute(
|
|
10233
|
+
return this.execute(make4(fullMethod)(url, options));
|
|
10230
10234
|
}]))
|
|
10231
10235
|
};
|
|
10232
10236
|
var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
|
|
@@ -13914,7 +13918,7 @@ var makeProto = (options) => {
|
|
|
13914
13918
|
Rpc.key = `effect/rpc/Rpc/${options._tag}`;
|
|
13915
13919
|
return Rpc;
|
|
13916
13920
|
};
|
|
13917
|
-
var
|
|
13921
|
+
var make5 = (tag, options) => {
|
|
13918
13922
|
const successSchema = options?.success ?? Void;
|
|
13919
13923
|
const errorSchema = options?.error ?? Never;
|
|
13920
13924
|
const defectSchema = options?.defect ?? Defect();
|
|
@@ -14125,7 +14129,7 @@ var RpcGroupProto = {
|
|
|
14125
14129
|
});
|
|
14126
14130
|
},
|
|
14127
14131
|
annotateRpcs(service, value) {
|
|
14128
|
-
return this.annotateRpcsMerge(
|
|
14132
|
+
return this.annotateRpcsMerge(make14(service, value));
|
|
14129
14133
|
},
|
|
14130
14134
|
annotateMerge(context) {
|
|
14131
14135
|
return makeProto2({
|
|
@@ -14148,7 +14152,7 @@ var makeProto2 = (options) => Object.assign(function() {}, RpcGroupProto, {
|
|
|
14148
14152
|
requests: options.requests,
|
|
14149
14153
|
annotations: options.annotations
|
|
14150
14154
|
});
|
|
14151
|
-
var
|
|
14155
|
+
var make6 = (...rpcs) => makeProto2({
|
|
14152
14156
|
requests: new Map(rpcs.map((rpc) => [rpc._tag, rpc])),
|
|
14153
14157
|
annotations: empty3()
|
|
14154
14158
|
});
|
|
@@ -14254,96 +14258,96 @@ var ProgramOutcome = Union([
|
|
|
14254
14258
|
Struct({ status: Literal("failed"), failureSummary: String4 })
|
|
14255
14259
|
]);
|
|
14256
14260
|
|
|
14257
|
-
class RunnerReplicaRpcs extends
|
|
14261
|
+
class RunnerReplicaRpcs extends make6(make5("Claim", {
|
|
14258
14262
|
payload: WorkUnitClaimInput,
|
|
14259
14263
|
success: WorkUnitClaimResult,
|
|
14260
14264
|
error: RunnerRpcError
|
|
14261
|
-
}),
|
|
14265
|
+
}), make5("Heartbeat", {
|
|
14262
14266
|
payload: WorkUnitHeartbeatInput,
|
|
14263
14267
|
success: WorkUnitHeartbeatResult,
|
|
14264
14268
|
error: RunnerRpcError
|
|
14265
|
-
}),
|
|
14269
|
+
}), make5("Complete", {
|
|
14266
14270
|
payload: WorkUnitCompletion,
|
|
14267
14271
|
error: RunnerRpcError
|
|
14268
|
-
}),
|
|
14272
|
+
}), make5("Release", {
|
|
14269
14273
|
payload: WorkUnitReleaseInput,
|
|
14270
14274
|
error: RunnerRpcError
|
|
14271
|
-
}),
|
|
14275
|
+
}), make5("Signals", {
|
|
14272
14276
|
payload: { runnerReplicaId: String4 },
|
|
14273
14277
|
success: RunnerSignal,
|
|
14274
14278
|
error: RunnerRpcError,
|
|
14275
14279
|
stream: true
|
|
14276
|
-
}),
|
|
14280
|
+
}), make5("ReportSteer", {
|
|
14277
14281
|
payload: { workUnitId: String4, messageId: String4, delivered: Boolean2 },
|
|
14278
14282
|
success: Void,
|
|
14279
14283
|
error: RunnerRpcError
|
|
14280
|
-
}),
|
|
14284
|
+
}), make5("AppendTranscript", {
|
|
14281
14285
|
payload: { workUnitId: String4, entries: ArraySchema(TranscriptAppendEntry).check(isMaxLength(100)) },
|
|
14282
14286
|
success: Void,
|
|
14283
14287
|
error: RunnerRpcError
|
|
14284
|
-
}),
|
|
14288
|
+
}), make5("CreateCheckpointFile", {
|
|
14285
14289
|
payload: { lease: ProgramLease, byteSize: Int, sha256: String4 },
|
|
14286
14290
|
success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
|
|
14287
14291
|
error: Union([RunnerRpcError, RunFileRefused])
|
|
14288
|
-
}),
|
|
14292
|
+
}), make5("CheckpointFileParts", {
|
|
14289
14293
|
payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
|
|
14290
14294
|
success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
|
|
14291
14295
|
error: RunnerRpcError
|
|
14292
|
-
}),
|
|
14296
|
+
}), make5("CompleteCheckpointFile", {
|
|
14293
14297
|
payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
|
|
14294
14298
|
success: RunFileRecord,
|
|
14295
14299
|
error: RunnerRpcError
|
|
14296
|
-
}),
|
|
14300
|
+
}), make5("SaveCheckpoint", {
|
|
14297
14301
|
payload: { lease: ProgramLease, checkpoint: StepCheckpoint },
|
|
14298
14302
|
success: Void,
|
|
14299
14303
|
error: RunnerRpcError
|
|
14300
|
-
}),
|
|
14304
|
+
}), make5("ResumeCheckpoint", {
|
|
14301
14305
|
payload: { lease: ProgramLease },
|
|
14302
14306
|
success: UndefinedOr(ResumedCheckpoint),
|
|
14303
14307
|
error: RunnerRpcError
|
|
14304
|
-
}),
|
|
14308
|
+
}), make5("SettledCheckpoints", {
|
|
14305
14309
|
success: ArraySchema(Struct({
|
|
14306
14310
|
stepAttemptId: String4,
|
|
14307
14311
|
ref: optionalKey(String4),
|
|
14308
14312
|
repoBinding: optionalKey(WorkUnitRepoBinding)
|
|
14309
14313
|
})),
|
|
14310
14314
|
error: RunnerRpcError
|
|
14311
|
-
}),
|
|
14315
|
+
}), make5("ForgetCheckpoints", {
|
|
14312
14316
|
payload: { stepAttemptIds: ArraySchema(String4) },
|
|
14313
14317
|
success: Void,
|
|
14314
14318
|
error: RunnerRpcError
|
|
14315
|
-
}),
|
|
14319
|
+
}), make5("GitCredential", {
|
|
14316
14320
|
payload: { repoBindingId: String4 },
|
|
14317
14321
|
success: UndefinedOr(Struct({ username: String4, password: String4 })),
|
|
14318
14322
|
error: RunnerRpcError
|
|
14319
|
-
}),
|
|
14323
|
+
}), make5("Bundle", {
|
|
14320
14324
|
payload: { digest: String4 },
|
|
14321
14325
|
success: Struct({ bundle: String4 }),
|
|
14322
14326
|
error: RunnerRpcError
|
|
14323
|
-
}),
|
|
14327
|
+
}), make5("SettledRuns", {
|
|
14324
14328
|
payload: { runIds: ArraySchema(String4) },
|
|
14325
14329
|
success: ArraySchema(String4),
|
|
14326
14330
|
error: RunnerRpcError
|
|
14327
|
-
}),
|
|
14331
|
+
}), make5("KnownEvidence", {
|
|
14328
14332
|
payload: { lease: ProgramLease, trees: ArraySchema(String4) },
|
|
14329
14333
|
success: ArraySchema(Struct({ tree: String4, name: String4, command: String4 })),
|
|
14330
14334
|
error: RunnerRpcError
|
|
14331
14335
|
})).middleware(RunnerAuthentication) {
|
|
14332
14336
|
}
|
|
14333
14337
|
|
|
14334
|
-
class RunnerJournalRpcs extends
|
|
14338
|
+
class RunnerJournalRpcs extends make6(make5("RecordActivity", {
|
|
14335
14339
|
payload: { lease: ProgramLease, name: String4, attempt: Int, exit: Json },
|
|
14336
14340
|
error: RunnerRpcError
|
|
14337
|
-
}),
|
|
14341
|
+
}), make5("DeferredDone", {
|
|
14338
14342
|
payload: { lease: ProgramLease, name: String4, exit: Json },
|
|
14339
14343
|
error: RunnerRpcError
|
|
14340
|
-
}),
|
|
14344
|
+
}), make5("ScheduleClock", {
|
|
14341
14345
|
payload: { lease: ProgramLease, name: String4, deferredName: String4, durationMillis: Int },
|
|
14342
14346
|
error: RunnerRpcError
|
|
14343
|
-
}),
|
|
14347
|
+
}), make5("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make5("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
|
|
14344
14348
|
}
|
|
14345
14349
|
|
|
14346
|
-
class RunnerCapabilityRpcs extends
|
|
14350
|
+
class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
14347
14351
|
payload: {
|
|
14348
14352
|
lease: ProgramLease,
|
|
14349
14353
|
step: String4,
|
|
@@ -14363,7 +14367,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14363
14367
|
},
|
|
14364
14368
|
success: Struct({ questionId: String4 }),
|
|
14365
14369
|
error: RunnerRpcError
|
|
14366
|
-
}),
|
|
14370
|
+
}), make5("StartAgentStep", {
|
|
14367
14371
|
payload: {
|
|
14368
14372
|
lease: ProgramLease,
|
|
14369
14373
|
step: String4,
|
|
@@ -14379,7 +14383,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14379
14383
|
},
|
|
14380
14384
|
success: Struct({ stepAttemptId: String4 }),
|
|
14381
14385
|
error: RunnerRpcError
|
|
14382
|
-
}),
|
|
14386
|
+
}), make5("StartVerification", {
|
|
14383
14387
|
payload: {
|
|
14384
14388
|
lease: ProgramLease,
|
|
14385
14389
|
step: String4,
|
|
@@ -14399,7 +14403,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14399
14403
|
},
|
|
14400
14404
|
success: Struct({ verificationId: String4 }),
|
|
14401
14405
|
error: RunnerRpcError
|
|
14402
|
-
}),
|
|
14406
|
+
}), make5("AwaitEvent", {
|
|
14403
14407
|
payload: {
|
|
14404
14408
|
lease: ProgramLease,
|
|
14405
14409
|
step: String4,
|
|
@@ -14415,7 +14419,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14415
14419
|
})))
|
|
14416
14420
|
},
|
|
14417
14421
|
error: RunnerRpcError
|
|
14418
|
-
}),
|
|
14422
|
+
}), make5("ClaimResource", {
|
|
14419
14423
|
payload: {
|
|
14420
14424
|
lease: ProgramLease,
|
|
14421
14425
|
step: String4,
|
|
@@ -14424,7 +14428,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14424
14428
|
action: Literals(["claim", "take_over", "let_go"])
|
|
14425
14429
|
},
|
|
14426
14430
|
error: RunnerRpcError
|
|
14427
|
-
}),
|
|
14431
|
+
}), make5("AdmitChild", {
|
|
14428
14432
|
payload: {
|
|
14429
14433
|
lease: ProgramLease,
|
|
14430
14434
|
step: String4,
|
|
@@ -14435,7 +14439,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14435
14439
|
},
|
|
14436
14440
|
success: Struct({ runId: String4 }),
|
|
14437
14441
|
error: RunnerRpcError
|
|
14438
|
-
}),
|
|
14442
|
+
}), make5("StoreArtifact", {
|
|
14439
14443
|
payload: {
|
|
14440
14444
|
lease: ProgramLease,
|
|
14441
14445
|
step: String4,
|
|
@@ -14447,7 +14451,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14447
14451
|
},
|
|
14448
14452
|
success: Struct({ artifactId: String4 }),
|
|
14449
14453
|
error: RunnerRpcError
|
|
14450
|
-
}),
|
|
14454
|
+
}), make5("RecordNote", {
|
|
14451
14455
|
payload: {
|
|
14452
14456
|
lease: ProgramLease,
|
|
14453
14457
|
step: String4,
|
|
@@ -14456,7 +14460,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14456
14460
|
kind: optional(Literals(["note", "blocker"]))
|
|
14457
14461
|
},
|
|
14458
14462
|
error: RunnerRpcError
|
|
14459
|
-
}),
|
|
14463
|
+
}), make5("PerformHostEffect", {
|
|
14460
14464
|
payload: {
|
|
14461
14465
|
lease: ProgramLease,
|
|
14462
14466
|
step: String4,
|
|
@@ -14485,7 +14489,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14485
14489
|
},
|
|
14486
14490
|
success: UndefinedOr(Struct({ id: String4, number: String4, url: String4 })),
|
|
14487
14491
|
error: RunnerRpcError
|
|
14488
|
-
}),
|
|
14492
|
+
}), make5("AlertTask", {
|
|
14489
14493
|
payload: {
|
|
14490
14494
|
lease: ProgramLease,
|
|
14491
14495
|
step: String4,
|
|
@@ -14502,7 +14506,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14502
14506
|
joined: optionalKey(Struct({ kind: Literals(["run", "recent"]), runId: String4 }))
|
|
14503
14507
|
}),
|
|
14504
14508
|
error: RunnerRpcError
|
|
14505
|
-
}),
|
|
14509
|
+
}), make5("ReadTranscripts", {
|
|
14506
14510
|
payload: {
|
|
14507
14511
|
lease: ProgramLease,
|
|
14508
14512
|
step: String4,
|
|
@@ -14537,7 +14541,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14537
14541
|
})))
|
|
14538
14542
|
}),
|
|
14539
14543
|
error: RunnerRpcError
|
|
14540
|
-
}),
|
|
14544
|
+
}), make5("PipelineStatus", {
|
|
14541
14545
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
|
|
14542
14546
|
success: Struct({
|
|
14543
14547
|
head: String4,
|
|
@@ -14553,6 +14557,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14553
14557
|
runnerChecks: optionalKey(ArraySchema(String4)),
|
|
14554
14558
|
targetChecks: optionalKey(ArraySchema(String4)),
|
|
14555
14559
|
approved: optionalKey(String4),
|
|
14560
|
+
reviewed: optionalKey(Struct({ review: String4, notRun: optionalKey(ArraySchema(String4)) })),
|
|
14556
14561
|
repository: optionalKey(String4),
|
|
14557
14562
|
sourceBranch: optionalKey(String4),
|
|
14558
14563
|
targetBranch: optionalKey(String4),
|
|
@@ -14570,11 +14575,11 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14570
14575
|
}))
|
|
14571
14576
|
}),
|
|
14572
14577
|
error: RunnerRpcError
|
|
14573
|
-
}),
|
|
14578
|
+
}), make5("ReportPipeline", {
|
|
14574
14579
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4, verification: String4 },
|
|
14575
14580
|
success: Struct({ head: String4, status: Literals(["success", "failed"]) }),
|
|
14576
14581
|
error: RunnerRpcError
|
|
14577
|
-
}),
|
|
14582
|
+
}), make5("ReviewThreads", {
|
|
14578
14583
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
|
|
14579
14584
|
success: Struct({
|
|
14580
14585
|
threads: ArraySchema(Struct({
|
|
@@ -14586,7 +14591,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14586
14591
|
}))
|
|
14587
14592
|
}),
|
|
14588
14593
|
error: RunnerRpcError
|
|
14589
|
-
}),
|
|
14594
|
+
}), make5("OpenChangeRequests", {
|
|
14590
14595
|
payload: { lease: ProgramLease, step: String4, authors: NonEmptyArray(String4) },
|
|
14591
14596
|
success: Struct({
|
|
14592
14597
|
changeRequests: ArraySchema(Struct({
|
|
@@ -14600,7 +14605,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14600
14605
|
}))
|
|
14601
14606
|
}),
|
|
14602
14607
|
error: RunnerRpcError
|
|
14603
|
-
}),
|
|
14608
|
+
}), make5("OwnChangeRequests", {
|
|
14604
14609
|
payload: { lease: ProgramLease, step: String4 },
|
|
14605
14610
|
success: Struct({
|
|
14606
14611
|
changeRequests: ArraySchema(Struct({
|
|
@@ -14613,7 +14618,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14613
14618
|
}))
|
|
14614
14619
|
}),
|
|
14615
14620
|
error: RunnerRpcError
|
|
14616
|
-
}),
|
|
14621
|
+
}), make5("Propose", {
|
|
14617
14622
|
payload: {
|
|
14618
14623
|
lease: ProgramLease,
|
|
14619
14624
|
step: String4,
|
|
@@ -14642,7 +14647,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14642
14647
|
task: optionalKey(Struct({ id: String4, active: Boolean2 }))
|
|
14643
14648
|
}),
|
|
14644
14649
|
error: RunnerRpcError
|
|
14645
|
-
}),
|
|
14650
|
+
}), make5("ReadProject", {
|
|
14646
14651
|
payload: { lease: ProgramLease, step: String4, projectId: String4 },
|
|
14647
14652
|
success: Struct({
|
|
14648
14653
|
project: Struct({ id: String4, name: String4 }),
|
|
@@ -14665,7 +14670,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14665
14670
|
taskChanges: ArraySchema(Struct({ taskKey: String4, title: String4, change: String4, at: String4 }))
|
|
14666
14671
|
}),
|
|
14667
14672
|
error: RunnerRpcError
|
|
14668
|
-
}),
|
|
14673
|
+
}), make5("DraftUpdate", {
|
|
14669
14674
|
payload: {
|
|
14670
14675
|
lease: ProgramLease,
|
|
14671
14676
|
step: String4,
|
|
@@ -14680,30 +14685,33 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14680
14685
|
},
|
|
14681
14686
|
success: Struct({ id: String4 }),
|
|
14682
14687
|
error: RunnerRpcError
|
|
14683
|
-
}),
|
|
14688
|
+
}), make5("CreatePlanTasks", {
|
|
14684
14689
|
payload: {
|
|
14685
14690
|
lease: ProgramLease,
|
|
14686
14691
|
projectId: optionalKey(String4),
|
|
14692
|
+
builds: optionalKey(Boolean2),
|
|
14693
|
+
releases: optionalKey(Boolean2),
|
|
14687
14694
|
tickets: ArraySchema(Struct({
|
|
14688
14695
|
key: String4,
|
|
14689
14696
|
title: String4,
|
|
14690
14697
|
body: String4,
|
|
14691
14698
|
acceptanceCriteria: ArraySchema(String4),
|
|
14692
14699
|
blockedBy: ArraySchema(String4),
|
|
14693
|
-
outcome: optionalKey(Literals(["feature", "bug", "refactor", "investigation", "docs", "migration", "performance"]))
|
|
14700
|
+
outcome: optionalKey(Literals(["feature", "bug", "refactor", "investigation", "docs", "migration", "performance"])),
|
|
14701
|
+
repoBindingId: optionalKey(String4)
|
|
14694
14702
|
}))
|
|
14695
14703
|
},
|
|
14696
14704
|
success: ArraySchema(Struct({ key: String4, taskId: String4 })),
|
|
14697
14705
|
error: RunnerRpcError
|
|
14698
|
-
}),
|
|
14706
|
+
}), make5("IntegrationBranch", {
|
|
14699
14707
|
payload: { lease: ProgramLease, repoBindingId: optionalKey(String4) },
|
|
14700
14708
|
success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
|
|
14701
14709
|
error: RunnerRpcError
|
|
14702
|
-
}),
|
|
14710
|
+
}), make5("DeliveryBase", {
|
|
14703
14711
|
payload: { lease: ProgramLease },
|
|
14704
14712
|
success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
|
|
14705
14713
|
error: RunnerRpcError
|
|
14706
|
-
}),
|
|
14714
|
+
}), make5("MergeChangeRequest", {
|
|
14707
14715
|
payload: {
|
|
14708
14716
|
lease: ProgramLease,
|
|
14709
14717
|
step: String4,
|
|
@@ -14721,7 +14729,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14721
14729
|
Struct({ status: Literal("moved"), head: String4 })
|
|
14722
14730
|
]),
|
|
14723
14731
|
error: RunnerRpcError
|
|
14724
|
-
}),
|
|
14732
|
+
}), make5("ApproveChangeRequest", {
|
|
14725
14733
|
payload: {
|
|
14726
14734
|
lease: ProgramLease,
|
|
14727
14735
|
step: String4,
|
|
@@ -14729,14 +14737,15 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14729
14737
|
head: String4,
|
|
14730
14738
|
summary: String4,
|
|
14731
14739
|
review: optionalKey(String4),
|
|
14732
|
-
carries: optionalKey(String4)
|
|
14740
|
+
carries: optionalKey(String4),
|
|
14741
|
+
reuses: optionalKey(String4)
|
|
14733
14742
|
},
|
|
14734
14743
|
success: Union([
|
|
14735
14744
|
Struct({ approved: Literal(true), reviewId: String4 }),
|
|
14736
14745
|
Struct({ approved: Literal(false), reason: String4 })
|
|
14737
14746
|
]),
|
|
14738
14747
|
error: RunnerRpcError
|
|
14739
|
-
}),
|
|
14748
|
+
}), make5("CloseChangeRequest", {
|
|
14740
14749
|
payload: {
|
|
14741
14750
|
lease: ProgramLease,
|
|
14742
14751
|
step: String4,
|
|
@@ -14746,7 +14755,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14746
14755
|
},
|
|
14747
14756
|
success: Struct({ closed: Boolean2, head: optionalKey(String4) }),
|
|
14748
14757
|
error: RunnerRpcError
|
|
14749
|
-
}),
|
|
14758
|
+
}), make5("RerunPipeline", {
|
|
14750
14759
|
payload: {
|
|
14751
14760
|
lease: ProgramLease,
|
|
14752
14761
|
step: String4,
|
|
@@ -14756,7 +14765,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14756
14765
|
},
|
|
14757
14766
|
success: Struct({ head: String4, pipelines: Int }),
|
|
14758
14767
|
error: RunnerRpcError
|
|
14759
|
-
}),
|
|
14768
|
+
}), make5("PublishRelease", {
|
|
14760
14769
|
payload: {
|
|
14761
14770
|
lease: ProgramLease,
|
|
14762
14771
|
step: String4,
|
|
@@ -14768,14 +14777,14 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14768
14777
|
},
|
|
14769
14778
|
success: Struct({ tag: String4, revision: String4, url: String4 }),
|
|
14770
14779
|
error: RunnerRpcError
|
|
14771
|
-
}),
|
|
14780
|
+
}), make5("ProgramSecrets", {
|
|
14772
14781
|
payload: { lease: ProgramLease },
|
|
14773
14782
|
success: Record(String4, String4),
|
|
14774
14783
|
error: RunnerRpcError
|
|
14775
14784
|
})).middleware(RunnerAuthentication) {
|
|
14776
14785
|
}
|
|
14777
14786
|
|
|
14778
|
-
class RunnerRunFileRpcs extends
|
|
14787
|
+
class RunnerRunFileRpcs extends make6(make5("CreateRunFile", {
|
|
14779
14788
|
payload: {
|
|
14780
14789
|
lease: ProgramLease,
|
|
14781
14790
|
step: String4,
|
|
@@ -14787,11 +14796,11 @@ class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
|
|
|
14787
14796
|
},
|
|
14788
14797
|
success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
|
|
14789
14798
|
error: Union([RunnerRpcError, RunFileRefused])
|
|
14790
|
-
}),
|
|
14799
|
+
}), make5("RunFileParts", {
|
|
14791
14800
|
payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
|
|
14792
14801
|
success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
|
|
14793
14802
|
error: RunnerRpcError
|
|
14794
|
-
}),
|
|
14803
|
+
}), make5("CompleteRunFile", {
|
|
14795
14804
|
payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
|
|
14796
14805
|
success: RunFileRecord,
|
|
14797
14806
|
error: RunnerRpcError
|
|
@@ -14880,7 +14889,7 @@ function toStoredSession(token, existingRefreshToken) {
|
|
|
14880
14889
|
}
|
|
14881
14890
|
function startLoopbackServer(input) {
|
|
14882
14891
|
return gen(function* () {
|
|
14883
|
-
const code = yield*
|
|
14892
|
+
const code = yield* make15();
|
|
14884
14893
|
const context2 = yield* context();
|
|
14885
14894
|
const runSyncExit = runSyncExitWith(context2);
|
|
14886
14895
|
const server = yield* acquireRelease(sync2(() => Bun.serve({
|
|
@@ -15420,7 +15429,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
15420
15429
|
let lastId = 0;
|
|
15421
15430
|
let lost = false;
|
|
15422
15431
|
const notifications = yield* unbounded2();
|
|
15423
|
-
const ended = yield*
|
|
15432
|
+
const ended = yield* make15();
|
|
15424
15433
|
const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
|
|
15425
15434
|
onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
|
|
15426
15435
|
onNone: () => void_3,
|
|
@@ -15447,7 +15456,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
15447
15456
|
if (lost)
|
|
15448
15457
|
return yield* new HerdrCoreConnectionLost2({ method });
|
|
15449
15458
|
const id = ++lastId;
|
|
15450
|
-
const deferred = yield*
|
|
15459
|
+
const deferred = yield* make15();
|
|
15451
15460
|
pending.set(id, { method, deferred });
|
|
15452
15461
|
yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
|
|
15453
15462
|
return yield* _await(deferred);
|
|
@@ -15521,14 +15530,14 @@ var herdrCoreOver = (transport) => ({
|
|
|
15521
15530
|
return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
|
|
15522
15531
|
};
|
|
15523
15532
|
const snapshot = { type: "snapshot", terminals: subscribed.terminals };
|
|
15524
|
-
return concat(
|
|
15533
|
+
return concat(make10(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
|
|
15525
15534
|
}))
|
|
15526
15535
|
});
|
|
15527
15536
|
var spawnedTransport = (env) => gen(function* () {
|
|
15528
15537
|
const spawner = yield* ChildProcessSpawner;
|
|
15529
15538
|
const input = yield* unbounded2();
|
|
15530
15539
|
const encoder = new TextEncoder;
|
|
15531
|
-
const handle = yield* spawner.spawn(
|
|
15540
|
+
const handle = yield* spawner.spawn(make2("herdr-core", ["connect"], {
|
|
15532
15541
|
extendEnv: false,
|
|
15533
15542
|
env,
|
|
15534
15543
|
stdin: fromQueue(input),
|
|
@@ -15559,7 +15568,7 @@ var updateHerdrCore2 = (options) => gen(function* () {
|
|
|
15559
15568
|
const spawner = yield* ChildProcessSpawner;
|
|
15560
15569
|
const env = coreEnv(options);
|
|
15561
15570
|
const run = (args) => gen(function* () {
|
|
15562
|
-
const handle = yield* spawner.spawn(
|
|
15571
|
+
const handle = yield* spawner.spawn(make2("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
|
|
15563
15572
|
const [stdout, stderr, exitCode] = yield* all3([
|
|
15564
15573
|
mkString(decodeText(handle.stdout)),
|
|
15565
15574
|
mkString(decodeText(handle.stderr)),
|
|
@@ -15585,7 +15594,7 @@ class CommandFailed2 extends TaggedError("CommandFailed") {
|
|
|
15585
15594
|
}
|
|
15586
15595
|
var runCommand2 = (command, args, options = {}) => gen(function* () {
|
|
15587
15596
|
const spawner = yield* ChildProcessSpawner;
|
|
15588
|
-
const handle = yield* spawner.spawn(
|
|
15597
|
+
const handle = yield* spawner.spawn(make2(command, args, {
|
|
15589
15598
|
stdin: "ignore",
|
|
15590
15599
|
...options.cwd === undefined ? undefined : { cwd: options.cwd },
|
|
15591
15600
|
...options.env === undefined ? undefined : { extendEnv: true, env: options.env }
|
|
@@ -15611,8 +15620,8 @@ var shellOutputTailChars2 = 64 * 1024;
|
|
|
15611
15620
|
var runProcess2 = (argv, options) => gen(function* () {
|
|
15612
15621
|
const spawner = yield* ChildProcessSpawner;
|
|
15613
15622
|
const [command, ...args] = argv;
|
|
15614
|
-
const handle = yield* spawner.spawn(
|
|
15615
|
-
stdin: options.stdin === undefined ? "ignore" :
|
|
15623
|
+
const handle = yield* spawner.spawn(make2(command, args, {
|
|
15624
|
+
stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
|
|
15616
15625
|
...options.cwd === undefined ? undefined : { cwd: options.cwd },
|
|
15617
15626
|
env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
|
|
15618
15627
|
}));
|
|
@@ -16044,4 +16053,4 @@ function checkServices(declaration) {
|
|
|
16044
16053
|
return isSome(decoded) ? [...new Set(decoded.value.services)] : undefined;
|
|
16045
16054
|
}
|
|
16046
16055
|
|
|
16047
|
-
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,
|
|
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, 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 };
|