@kitman-sh/cli 0.33.0 → 0.35.0
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-tsx0347c.js → chunk-1hgsf81a.js} +1 -1
- package/dist/{chunk-samxkpbz.js → chunk-4qrb09w4.js} +3 -3
- package/dist/{chunk-s34am3kw.js → chunk-56gs4z53.js} +7 -7
- package/dist/{chunk-bnhb3cth.js → chunk-5e1ndtnp.js} +3 -3
- package/dist/{chunk-h2f26xbd.js → chunk-61dmxexa.js} +70 -28
- package/dist/{chunk-mhx0tgm3.js → chunk-64arqv10.js} +7 -7
- package/dist/{chunk-gnq1ryhx.js → chunk-c8eg05nh.js} +4 -4
- package/dist/{chunk-xkkyx7bn.js → chunk-ee7ss0df.js} +3 -3
- package/dist/{chunk-9nbqzdqp.js → chunk-er0e8d8v.js} +14 -60
- package/dist/{chunk-racse7zf.js → chunk-ke4rajdh.js} +44 -28
- package/dist/{chunk-sgkgwzvb.js → chunk-n01c55f9.js} +5 -5
- package/dist/{chunk-hgxhpj6m.js → chunk-n0bp958m.js} +4 -4
- package/dist/{chunk-1zb8h7gv.js → chunk-nna9pwp0.js} +53 -32
- package/dist/{chunk-vz38kngm.js → chunk-q8e58p57.js} +2 -2
- package/dist/{chunk-x29m7k25.js → chunk-qqb6djs7.js} +2 -2
- package/dist/{chunk-py3133q0.js → chunk-r9x4ehsy.js} +6 -6
- package/dist/{chunk-4qjfn1sa.js → chunk-rbpn35g5.js} +1 -1
- package/dist/{chunk-np5n54ky.js → chunk-t205gnzc.js} +5 -5
- package/dist/{chunk-9tyv6211.js → chunk-t9dmwy8x.js} +19 -19
- package/dist/{chunk-a9ncx2a8.js → chunk-tsefrrxz.js} +1 -1
- package/dist/{chunk-yveqd8ye.js → chunk-wkkjyzpx.js} +4 -4
- package/dist/{chunk-jrwpte6y.js → chunk-xc7kg57m.js} +64 -64
- package/dist/{chunk-ak1qrm4q.js → chunk-y3c9pxez.js} +7 -7
- package/dist/{chunk-nwbry6c8.js → chunk-yhat3rhw.js} +139 -121
- package/dist/{chunk-8fyfsajs.js → chunk-z0gqrc8c.js} +17 -17
- package/dist/{chunk-5kqt4bqp.js → chunk-znhjs0t6.js} +1 -1
- 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,
|
|
@@ -89,7 +89,7 @@ import {
|
|
|
89
89
|
fail4,
|
|
90
90
|
isSuccess2,
|
|
91
91
|
makeUnsafe5,
|
|
92
|
-
|
|
92
|
+
make15,
|
|
93
93
|
_await,
|
|
94
94
|
fail5,
|
|
95
95
|
isDone,
|
|
@@ -192,6 +192,9 @@ import {
|
|
|
192
192
|
logError,
|
|
193
193
|
effectify,
|
|
194
194
|
decode,
|
|
195
|
+
isRedacted,
|
|
196
|
+
make16,
|
|
197
|
+
value,
|
|
195
198
|
defaultParseOptions,
|
|
196
199
|
omit,
|
|
197
200
|
map10,
|
|
@@ -262,7 +265,7 @@ import {
|
|
|
262
265
|
decodeJsonStringOption,
|
|
263
266
|
encodeJsonStringSync,
|
|
264
267
|
encodePrettyJsonString
|
|
265
|
-
} from "./chunk-
|
|
268
|
+
} from "./chunk-61dmxexa.js";
|
|
266
269
|
import {
|
|
267
270
|
map,
|
|
268
271
|
makeEquivalence,
|
|
@@ -273,8 +276,8 @@ import {
|
|
|
273
276
|
systemError,
|
|
274
277
|
badArgument,
|
|
275
278
|
makeUnsafe2,
|
|
279
|
+
make7,
|
|
276
280
|
make8,
|
|
277
|
-
make9,
|
|
278
281
|
sliding,
|
|
279
282
|
unbounded2,
|
|
280
283
|
offer,
|
|
@@ -290,13 +293,13 @@ import {
|
|
|
290
293
|
isSink,
|
|
291
294
|
fromChannel,
|
|
292
295
|
drain,
|
|
293
|
-
|
|
296
|
+
make9,
|
|
294
297
|
get3,
|
|
295
298
|
isStream,
|
|
296
299
|
fromChannel2,
|
|
297
300
|
callback,
|
|
298
301
|
empty2,
|
|
299
|
-
|
|
302
|
+
make10,
|
|
300
303
|
suspend,
|
|
301
304
|
fail2,
|
|
302
305
|
fromQueue,
|
|
@@ -322,31 +325,28 @@ import {
|
|
|
322
325
|
mkArrayBuffer,
|
|
323
326
|
toReadableStreamEffect,
|
|
324
327
|
FileSystem,
|
|
325
|
-
|
|
328
|
+
make11,
|
|
326
329
|
FileTypeId,
|
|
327
330
|
WatchBackend,
|
|
328
331
|
Path,
|
|
329
|
-
|
|
332
|
+
make12,
|
|
330
333
|
option,
|
|
331
334
|
String2,
|
|
332
335
|
optionalEnv,
|
|
333
336
|
harnessesUnsupportedInSrt2,
|
|
334
337
|
harnessesUnsupportedInDocker2
|
|
335
|
-
} from "./chunk-
|
|
338
|
+
} from "./chunk-z0gqrc8c.js";
|
|
336
339
|
import {
|
|
337
|
-
isRedacted,
|
|
338
|
-
make,
|
|
339
|
-
value,
|
|
340
340
|
ExitCode,
|
|
341
341
|
ProcessId,
|
|
342
342
|
makeHandle,
|
|
343
|
-
|
|
343
|
+
make,
|
|
344
344
|
ChildProcessSpawner,
|
|
345
345
|
display,
|
|
346
|
-
|
|
346
|
+
make2,
|
|
347
347
|
parseFdName,
|
|
348
348
|
fdName
|
|
349
|
-
} from "./chunk-
|
|
349
|
+
} from "./chunk-er0e8d8v.js";
|
|
350
350
|
import {
|
|
351
351
|
isDateTime,
|
|
352
352
|
Numeric,
|
|
@@ -359,7 +359,7 @@ import {
|
|
|
359
359
|
SecretScope,
|
|
360
360
|
SecretHosts,
|
|
361
361
|
isSecretReference
|
|
362
|
-
} from "./chunk-
|
|
362
|
+
} from "./chunk-rbpn35g5.js";
|
|
363
363
|
|
|
364
364
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
|
|
365
365
|
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__ */ map9(/* @__PURE__ */ serviceOption(WatchBackend), (backend) =>
|
|
2243
|
+
var makeFileSystem = /* @__PURE__ */ map9(/* @__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
|
}));
|
|
@@ -2835,12 +2835,12 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
|
2835
2835
|
if (typeof key === "string") {
|
|
2836
2836
|
const k = key.toLowerCase();
|
|
2837
2837
|
if (k in self) {
|
|
2838
|
-
out[k] =
|
|
2838
|
+
out[k] = make16(self[k]);
|
|
2839
2839
|
}
|
|
2840
2840
|
} else {
|
|
2841
2841
|
for (const name in self) {
|
|
2842
2842
|
if (name.search(key) !== -1) {
|
|
2843
|
-
out[name] =
|
|
2843
|
+
out[name] = make16(self[name]);
|
|
2844
2844
|
}
|
|
2845
2845
|
}
|
|
2846
2846
|
}
|
|
@@ -2947,7 +2947,7 @@ var fromInputNested = (input) => {
|
|
|
2947
2947
|
return out;
|
|
2948
2948
|
};
|
|
2949
2949
|
var coerce = (value) => isRedacted(value) ? value : String(value);
|
|
2950
|
-
var Equivalence3 = /* @__PURE__ */
|
|
2950
|
+
var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
|
|
2951
2951
|
var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
|
|
2952
2952
|
var empty4 = /* @__PURE__ */ make23([]);
|
|
2953
2953
|
var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
@@ -2966,7 +2966,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
|
2966
2966
|
var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
|
|
2967
2967
|
var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
2968
2968
|
const patterns = Array.isArray(key) ? key : [key];
|
|
2969
|
-
return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ?
|
|
2969
|
+
return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make16(value) : value]);
|
|
2970
2970
|
});
|
|
2971
2971
|
var isRedactedName2 = isRedactedName;
|
|
2972
2972
|
var redactUrl = (url, redactedNames = currentRedactedNames()) => {
|
|
@@ -3042,7 +3042,7 @@ import * as readline from "readline";
|
|
|
3042
3042
|
var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
|
|
3043
3043
|
const stdin = process.stdin;
|
|
3044
3044
|
const stdout = process.stdout;
|
|
3045
|
-
const lines = yield*
|
|
3045
|
+
const lines = yield* make8();
|
|
3046
3046
|
let inputEnded = stdin.readableEnded;
|
|
3047
3047
|
let readlineActive = false;
|
|
3048
3048
|
const onStdinEnd = () => {
|
|
@@ -3053,7 +3053,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3053
3053
|
};
|
|
3054
3054
|
stdin.once("end", onStdinEnd);
|
|
3055
3055
|
yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
|
|
3056
|
-
const rlRef = yield*
|
|
3056
|
+
const rlRef = yield* make9({
|
|
3057
3057
|
acquire: acquireRelease(sync2(() => {
|
|
3058
3058
|
const rl = readline.createInterface({
|
|
3059
3059
|
input: stdin,
|
|
@@ -3092,7 +3092,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3092
3092
|
if (stdin.isTTY)
|
|
3093
3093
|
stdin.setRawMode(enabled);
|
|
3094
3094
|
});
|
|
3095
|
-
const rawModeRef = yield*
|
|
3095
|
+
const rawModeRef = yield* make9({
|
|
3096
3096
|
acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
|
|
3097
3097
|
idleTimeToLive: "10 millis"
|
|
3098
3098
|
});
|
|
@@ -3113,7 +3113,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3113
3113
|
return queue;
|
|
3114
3114
|
});
|
|
3115
3115
|
const readInput = gen(function* () {
|
|
3116
|
-
const queue = yield*
|
|
3116
|
+
const queue = yield* make8();
|
|
3117
3117
|
const handleKeypress = (s, k) => {
|
|
3118
3118
|
const userInput = {
|
|
3119
3119
|
input: fromUndefinedOr(s),
|
|
@@ -3224,7 +3224,8 @@ var utcTime = (timestamp) => {
|
|
|
3224
3224
|
var queueWords = (place) => {
|
|
3225
3225
|
const held = [
|
|
3226
3226
|
...place.quotaUntil === undefined ? [] : [`waiting on quota until ${utcTime(place.quotaUntil)}`],
|
|
3227
|
-
...place.unrunnable === undefined ? [] : [`no online Runner can run it: ${place.unrunnable}`]
|
|
3227
|
+
...place.unrunnable === undefined ? [] : [`no online Runner can run it: ${place.unrunnable}`],
|
|
3228
|
+
...place.updating === undefined ? [] : [place.updating]
|
|
3228
3229
|
];
|
|
3229
3230
|
return held.length === 0 ? `#${place.position} in the queue, ${place.reason}` : held.join("; ");
|
|
3230
3231
|
};
|
|
@@ -6935,7 +6936,8 @@ var RunWaiting = Union([
|
|
|
6935
6936
|
reason: String4,
|
|
6936
6937
|
movesUpAt: optionalKey(String4),
|
|
6937
6938
|
unrunnable: optionalKey(String4),
|
|
6938
|
-
quotaUntil: optionalKey(Timestamp)
|
|
6939
|
+
quotaUntil: optionalKey(Timestamp),
|
|
6940
|
+
updating: optionalKey(String4)
|
|
6939
6941
|
})
|
|
6940
6942
|
]);
|
|
6941
6943
|
var RunEvidence = Struct({
|
|
@@ -8071,7 +8073,9 @@ var HarnessHold = Struct({
|
|
|
8071
8073
|
until: optionalKey(Timestamp),
|
|
8072
8074
|
scope: optionalKey(Literal("step"))
|
|
8073
8075
|
});
|
|
8074
|
-
var StepRestart = Struct({
|
|
8076
|
+
var StepRestart = Struct({
|
|
8077
|
+
reason: Literals(["login_revoked", "harness_error", "setup_prompt"])
|
|
8078
|
+
});
|
|
8075
8079
|
var WorkUnitOutcome = Struct({
|
|
8076
8080
|
status: Union([
|
|
8077
8081
|
Literal("completed"),
|
|
@@ -8424,6 +8428,12 @@ var RunnerSettingChange = Struct({
|
|
|
8424
8428
|
});
|
|
8425
8429
|
var RunnerSettingsHistory = Struct({ items: ArraySchema(RunnerSettingChange) });
|
|
8426
8430
|
var shownRunnerSetting = (value) => Array.isArray(value) ? value.length === 0 ? "none" : value.join(",") : value === null ? "none" : String(value);
|
|
8431
|
+
var RunnerUpdateDrainReport = Struct({ version: RunnerVersion, since: Timestamp, until: Timestamp });
|
|
8432
|
+
var RunnerUpdateDrain = Struct({
|
|
8433
|
+
...RunnerUpdateDrainReport.fields,
|
|
8434
|
+
waitingFor: ArraySchema(Struct({ runId: Id, loopId: String4, taskKey: optionalKey(String4) })),
|
|
8435
|
+
othersWaitingFor: optionalKey(Int.check(isGreaterThanOrEqualTo(1)))
|
|
8436
|
+
});
|
|
8427
8437
|
var Runner = Struct({
|
|
8428
8438
|
id: Id,
|
|
8429
8439
|
workspaceId: Id,
|
|
@@ -8442,6 +8452,7 @@ var Runner = Struct({
|
|
|
8442
8452
|
latestVersion: optionalKey(RunnerVersion),
|
|
8443
8453
|
container: Boolean2,
|
|
8444
8454
|
automaticUpdates: Boolean2,
|
|
8455
|
+
updateDrain: optionalKey(RunnerUpdateDrain),
|
|
8445
8456
|
releaseChannel: optionalKey(ReleaseChannel),
|
|
8446
8457
|
settings: optionalKey(RunnerSettings),
|
|
8447
8458
|
appliedSettings: optionalKey(RunnerAppliedSettings),
|
|
@@ -8469,7 +8480,10 @@ var RunnerUpdate = Struct({
|
|
|
8469
8480
|
name: optionalKey(String4.check(isMinLength(1), isMaxLength(120))),
|
|
8470
8481
|
automaticUpdates: optionalKey(Boolean2)
|
|
8471
8482
|
});
|
|
8472
|
-
var RunnerUpdateRequested = Struct({
|
|
8483
|
+
var RunnerUpdateRequested = Struct({
|
|
8484
|
+
version: RunnerVersion,
|
|
8485
|
+
switchingNow: optionalKey(Boolean2)
|
|
8486
|
+
});
|
|
8473
8487
|
var RunnerRemoveResult = Struct({
|
|
8474
8488
|
removed: Boolean2
|
|
8475
8489
|
});
|
|
@@ -8592,7 +8606,8 @@ var RunnerHeartbeatInput = Struct({
|
|
|
8592
8606
|
capabilities: optionalKey(RunnerCapabilities),
|
|
8593
8607
|
labels: optionalKey(ArraySchema(String4.check(isMinLength(1))).check(isMaxLength(50))),
|
|
8594
8608
|
environmentSettings: optionalKey(RunnerSettingsUpdate),
|
|
8595
|
-
appliedSettings: optionalKey(RunnerAppliedSettings)
|
|
8609
|
+
appliedSettings: optionalKey(RunnerAppliedSettings),
|
|
8610
|
+
updateDrain: optionalKey(RunnerUpdateDrainReport)
|
|
8596
8611
|
});
|
|
8597
8612
|
var RunnerCapabilitiesUpdate = Struct({
|
|
8598
8613
|
capabilities: RunnerCapabilities,
|
|
@@ -11120,14 +11135,14 @@ function makeWith(method, url, urlParams, hash, headers, body) {
|
|
|
11120
11135
|
return self;
|
|
11121
11136
|
}
|
|
11122
11137
|
var empty6 = /* @__PURE__ */ makeWith("GET", "", empty4, /* @__PURE__ */ none(), empty, empty5);
|
|
11123
|
-
var
|
|
11138
|
+
var make4 = (method) => (url, options) => modify(empty6, {
|
|
11124
11139
|
method,
|
|
11125
11140
|
url,
|
|
11126
11141
|
...options ?? undefined
|
|
11127
11142
|
});
|
|
11128
|
-
var get = /* @__PURE__ */
|
|
11129
|
-
var post = /* @__PURE__ */
|
|
11130
|
-
var put = /* @__PURE__ */
|
|
11143
|
+
var get = /* @__PURE__ */ make4("GET");
|
|
11144
|
+
var post = /* @__PURE__ */ make4("POST");
|
|
11145
|
+
var put = /* @__PURE__ */ make4("PUT");
|
|
11131
11146
|
var modify = /* @__PURE__ */ dual(2, (self, options) => {
|
|
11132
11147
|
let result = self;
|
|
11133
11148
|
if (options.method) {
|
|
@@ -11428,7 +11443,7 @@ var Proto7 = {
|
|
|
11428
11443
|
};
|
|
11429
11444
|
},
|
|
11430
11445
|
.../* @__PURE__ */ Object.fromEntries(/* @__PURE__ */ allShort.map(([fullMethod, method]) => [method, function(url, options) {
|
|
11431
|
-
return this.execute(
|
|
11446
|
+
return this.execute(make4(fullMethod)(url, options));
|
|
11432
11447
|
}]))
|
|
11433
11448
|
};
|
|
11434
11449
|
var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
|
|
@@ -15517,7 +15532,7 @@ var makeProto = (options) => {
|
|
|
15517
15532
|
Rpc.key = `effect/rpc/Rpc/${options._tag}`;
|
|
15518
15533
|
return Rpc;
|
|
15519
15534
|
};
|
|
15520
|
-
var
|
|
15535
|
+
var make5 = (tag, options) => {
|
|
15521
15536
|
const successSchema = options?.success ?? Void;
|
|
15522
15537
|
const errorSchema = options?.error ?? Never;
|
|
15523
15538
|
const defectSchema = options?.defect ?? Defect();
|
|
@@ -15728,7 +15743,7 @@ var RpcGroupProto = {
|
|
|
15728
15743
|
});
|
|
15729
15744
|
},
|
|
15730
15745
|
annotateRpcs(service, value) {
|
|
15731
|
-
return this.annotateRpcsMerge(
|
|
15746
|
+
return this.annotateRpcsMerge(make14(service, value));
|
|
15732
15747
|
},
|
|
15733
15748
|
annotateMerge(context) {
|
|
15734
15749
|
return makeProto2({
|
|
@@ -15751,7 +15766,7 @@ var makeProto2 = (options) => Object.assign(function() {}, RpcGroupProto, {
|
|
|
15751
15766
|
requests: options.requests,
|
|
15752
15767
|
annotations: options.annotations
|
|
15753
15768
|
});
|
|
15754
|
-
var
|
|
15769
|
+
var make6 = (...rpcs) => makeProto2({
|
|
15755
15770
|
requests: new Map(rpcs.map((rpc) => [rpc._tag, rpc])),
|
|
15756
15771
|
annotations: empty3()
|
|
15757
15772
|
});
|
|
@@ -15805,7 +15820,10 @@ var Steer = TaggedStruct("Steer", {
|
|
|
15805
15820
|
text: String4
|
|
15806
15821
|
});
|
|
15807
15822
|
var SessionUpdated = TaggedStruct("SessionUpdated", { workUnitId: String4 });
|
|
15808
|
-
var UpdateAvailable = TaggedStruct("UpdateAvailable", {
|
|
15823
|
+
var UpdateAvailable = TaggedStruct("UpdateAvailable", {
|
|
15824
|
+
version: String4,
|
|
15825
|
+
now: optionalKey(Boolean2)
|
|
15826
|
+
});
|
|
15809
15827
|
var RunnerSignal = Union([
|
|
15810
15828
|
WorkAvailable,
|
|
15811
15829
|
LeaseRevoked,
|
|
@@ -15857,77 +15875,77 @@ var ProgramOutcome = Union([
|
|
|
15857
15875
|
Struct({ status: Literal("failed"), failureSummary: String4 })
|
|
15858
15876
|
]);
|
|
15859
15877
|
|
|
15860
|
-
class RunnerReplicaRpcs extends
|
|
15878
|
+
class RunnerReplicaRpcs extends make6(make5("Claim", {
|
|
15861
15879
|
payload: WorkUnitClaimInput,
|
|
15862
15880
|
success: WorkUnitClaimResult,
|
|
15863
15881
|
error: RunnerRpcError
|
|
15864
|
-
}),
|
|
15882
|
+
}), make5("Heartbeat", {
|
|
15865
15883
|
payload: WorkUnitHeartbeatInput,
|
|
15866
15884
|
success: WorkUnitHeartbeatResult,
|
|
15867
15885
|
error: RunnerRpcError
|
|
15868
|
-
}),
|
|
15886
|
+
}), make5("Complete", {
|
|
15869
15887
|
payload: WorkUnitCompletion,
|
|
15870
15888
|
error: RunnerRpcError
|
|
15871
|
-
}),
|
|
15889
|
+
}), make5("Release", {
|
|
15872
15890
|
payload: WorkUnitReleaseInput,
|
|
15873
15891
|
error: RunnerRpcError
|
|
15874
|
-
}),
|
|
15892
|
+
}), make5("Signals", {
|
|
15875
15893
|
payload: { runnerReplicaId: String4 },
|
|
15876
15894
|
success: RunnerSignal,
|
|
15877
15895
|
error: RunnerRpcError,
|
|
15878
15896
|
stream: true
|
|
15879
|
-
}),
|
|
15897
|
+
}), make5("ReportSteer", {
|
|
15880
15898
|
payload: { workUnitId: String4, messageId: String4, delivered: Boolean2 },
|
|
15881
15899
|
success: Void,
|
|
15882
15900
|
error: RunnerRpcError
|
|
15883
|
-
}),
|
|
15901
|
+
}), make5("AppendTranscript", {
|
|
15884
15902
|
payload: { workUnitId: String4, entries: ArraySchema(TranscriptAppendEntry).check(isMaxLength(100)) },
|
|
15885
15903
|
success: Void,
|
|
15886
15904
|
error: RunnerRpcError
|
|
15887
|
-
}),
|
|
15905
|
+
}), make5("CreateCheckpointFile", {
|
|
15888
15906
|
payload: { lease: ProgramLease, byteSize: Int, sha256: String4 },
|
|
15889
15907
|
success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
|
|
15890
15908
|
error: Union([RunnerRpcError, RunFileRefused])
|
|
15891
|
-
}),
|
|
15909
|
+
}), make5("CheckpointFileParts", {
|
|
15892
15910
|
payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
|
|
15893
15911
|
success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
|
|
15894
15912
|
error: RunnerRpcError
|
|
15895
|
-
}),
|
|
15913
|
+
}), make5("CompleteCheckpointFile", {
|
|
15896
15914
|
payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
|
|
15897
15915
|
success: RunFileRecord,
|
|
15898
15916
|
error: RunnerRpcError
|
|
15899
|
-
}),
|
|
15917
|
+
}), make5("SaveCheckpoint", {
|
|
15900
15918
|
payload: { lease: ProgramLease, checkpoint: StepCheckpoint },
|
|
15901
15919
|
success: Void,
|
|
15902
15920
|
error: RunnerRpcError
|
|
15903
|
-
}),
|
|
15921
|
+
}), make5("ResumeCheckpoint", {
|
|
15904
15922
|
payload: { lease: ProgramLease },
|
|
15905
15923
|
success: UndefinedOr(ResumedCheckpoint),
|
|
15906
15924
|
error: RunnerRpcError
|
|
15907
|
-
}),
|
|
15925
|
+
}), make5("SettledCheckpoints", {
|
|
15908
15926
|
success: ArraySchema(Struct({
|
|
15909
15927
|
stepAttemptId: String4,
|
|
15910
15928
|
ref: optionalKey(String4),
|
|
15911
15929
|
repoBinding: optionalKey(WorkUnitRepoBinding)
|
|
15912
15930
|
})),
|
|
15913
15931
|
error: RunnerRpcError
|
|
15914
|
-
}),
|
|
15932
|
+
}), make5("ForgetCheckpoints", {
|
|
15915
15933
|
payload: { stepAttemptIds: ArraySchema(String4) },
|
|
15916
15934
|
success: Void,
|
|
15917
15935
|
error: RunnerRpcError
|
|
15918
|
-
}),
|
|
15936
|
+
}), make5("GitCredential", {
|
|
15919
15937
|
payload: { repoBindingId: String4 },
|
|
15920
15938
|
success: UndefinedOr(Struct({ username: String4, password: String4 })),
|
|
15921
15939
|
error: RunnerRpcError
|
|
15922
|
-
}),
|
|
15940
|
+
}), make5("Bundle", {
|
|
15923
15941
|
payload: { digest: String4 },
|
|
15924
15942
|
success: Struct({ bundle: String4 }),
|
|
15925
15943
|
error: RunnerRpcError
|
|
15926
|
-
}),
|
|
15944
|
+
}), make5("SettledRuns", {
|
|
15927
15945
|
payload: { runIds: ArraySchema(String4) },
|
|
15928
15946
|
success: ArraySchema(String4),
|
|
15929
15947
|
error: RunnerRpcError
|
|
15930
|
-
}),
|
|
15948
|
+
}), make5("KnownEvidence", {
|
|
15931
15949
|
payload: { lease: ProgramLease, trees: ArraySchema(String4) },
|
|
15932
15950
|
success: ArraySchema(Struct({
|
|
15933
15951
|
tree: String4,
|
|
@@ -15939,24 +15957,24 @@ class RunnerReplicaRpcs extends make7(make6("Claim", {
|
|
|
15939
15957
|
})).middleware(RunnerAuthentication) {
|
|
15940
15958
|
}
|
|
15941
15959
|
|
|
15942
|
-
class RunnerJournalRpcs extends
|
|
15960
|
+
class RunnerJournalRpcs extends make6(make5("RecordActivity", {
|
|
15943
15961
|
payload: { lease: ProgramLease, name: String4, attempt: Int, exit: Json },
|
|
15944
15962
|
error: RunnerRpcError
|
|
15945
|
-
}),
|
|
15963
|
+
}), make5("DeferredDone", {
|
|
15946
15964
|
payload: { lease: ProgramLease, name: String4, exit: Json },
|
|
15947
15965
|
error: RunnerRpcError
|
|
15948
|
-
}),
|
|
15966
|
+
}), make5("ScheduleClock", {
|
|
15949
15967
|
payload: { lease: ProgramLease, name: String4, deferredName: String4, durationMillis: Int },
|
|
15950
15968
|
error: RunnerRpcError
|
|
15951
|
-
}),
|
|
15969
|
+
}), make5("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make5("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
|
|
15952
15970
|
}
|
|
15953
|
-
var RunHostStep =
|
|
15971
|
+
var RunHostStep = make5("RunHostStep", {
|
|
15954
15972
|
payload: { lease: ProgramLease, step: String4, hostStep: String4, request: Json },
|
|
15955
15973
|
success: Json,
|
|
15956
15974
|
error: RunnerRpcError
|
|
15957
15975
|
});
|
|
15958
15976
|
|
|
15959
|
-
class RunnerCapabilityRpcs extends
|
|
15977
|
+
class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
15960
15978
|
payload: {
|
|
15961
15979
|
lease: ProgramLease,
|
|
15962
15980
|
step: String4,
|
|
@@ -15976,7 +15994,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
15976
15994
|
},
|
|
15977
15995
|
success: Struct({ questionId: String4 }),
|
|
15978
15996
|
error: RunnerRpcError
|
|
15979
|
-
}),
|
|
15997
|
+
}), make5("StartAgentStep", {
|
|
15980
15998
|
payload: {
|
|
15981
15999
|
lease: ProgramLease,
|
|
15982
16000
|
step: String4,
|
|
@@ -15993,7 +16011,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
15993
16011
|
},
|
|
15994
16012
|
success: Struct({ stepAttemptId: String4 }),
|
|
15995
16013
|
error: RunnerRpcError
|
|
15996
|
-
}),
|
|
16014
|
+
}), make5("StartVerification", {
|
|
15997
16015
|
payload: {
|
|
15998
16016
|
lease: ProgramLease,
|
|
15999
16017
|
step: String4,
|
|
@@ -16017,7 +16035,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16017
16035
|
},
|
|
16018
16036
|
success: Struct({ verificationId: String4 }),
|
|
16019
16037
|
error: RunnerRpcError
|
|
16020
|
-
}),
|
|
16038
|
+
}), make5("AwaitEvent", {
|
|
16021
16039
|
payload: {
|
|
16022
16040
|
lease: ProgramLease,
|
|
16023
16041
|
step: String4,
|
|
@@ -16033,7 +16051,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16033
16051
|
})))
|
|
16034
16052
|
},
|
|
16035
16053
|
error: RunnerRpcError
|
|
16036
|
-
}),
|
|
16054
|
+
}), make5("ClaimResource", {
|
|
16037
16055
|
payload: {
|
|
16038
16056
|
lease: ProgramLease,
|
|
16039
16057
|
step: String4,
|
|
@@ -16044,7 +16062,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16044
16062
|
claims: optionalKey(ArraySchema(String4))
|
|
16045
16063
|
},
|
|
16046
16064
|
error: RunnerRpcError
|
|
16047
|
-
}),
|
|
16065
|
+
}), make5("AdmitChild", {
|
|
16048
16066
|
payload: {
|
|
16049
16067
|
lease: ProgramLease,
|
|
16050
16068
|
step: String4,
|
|
@@ -16055,7 +16073,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16055
16073
|
},
|
|
16056
16074
|
success: Struct({ runId: String4 }),
|
|
16057
16075
|
error: RunnerRpcError
|
|
16058
|
-
}),
|
|
16076
|
+
}), make5("AdmitChildById", {
|
|
16059
16077
|
payload: {
|
|
16060
16078
|
lease: ProgramLease,
|
|
16061
16079
|
step: String4,
|
|
@@ -16066,18 +16084,18 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16066
16084
|
},
|
|
16067
16085
|
success: Struct({ runId: String4 }),
|
|
16068
16086
|
error: RunnerRpcError
|
|
16069
|
-
}),
|
|
16087
|
+
}), make5("CallableLoops", {
|
|
16070
16088
|
payload: { lease: ProgramLease, step: String4, taskId: optional(String4) },
|
|
16071
16089
|
success: Struct({ loops: ArraySchema(CallableLoop) }),
|
|
16072
16090
|
error: RunnerRpcError
|
|
16073
|
-
}),
|
|
16091
|
+
}), make5("StopLaunches", {
|
|
16074
16092
|
payload: {
|
|
16075
16093
|
lease: ProgramLease,
|
|
16076
16094
|
step: String4,
|
|
16077
16095
|
deferredNames: ArraySchema(String4)
|
|
16078
16096
|
},
|
|
16079
16097
|
error: RunnerRpcError
|
|
16080
|
-
}),
|
|
16098
|
+
}), make5("StoreArtifact", {
|
|
16081
16099
|
payload: {
|
|
16082
16100
|
lease: ProgramLease,
|
|
16083
16101
|
step: String4,
|
|
@@ -16089,7 +16107,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16089
16107
|
},
|
|
16090
16108
|
success: Struct({ artifactId: String4 }),
|
|
16091
16109
|
error: RunnerRpcError
|
|
16092
|
-
}),
|
|
16110
|
+
}), make5("RecordNote", {
|
|
16093
16111
|
payload: {
|
|
16094
16112
|
lease: ProgramLease,
|
|
16095
16113
|
step: String4,
|
|
@@ -16098,7 +16116,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16098
16116
|
kind: optional(Literals(["note", "blocker"]))
|
|
16099
16117
|
},
|
|
16100
16118
|
error: RunnerRpcError
|
|
16101
|
-
}),
|
|
16119
|
+
}), make5("PerformHostEffect", {
|
|
16102
16120
|
payload: {
|
|
16103
16121
|
lease: ProgramLease,
|
|
16104
16122
|
step: String4,
|
|
@@ -16127,7 +16145,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16127
16145
|
},
|
|
16128
16146
|
success: UndefinedOr(Struct({ id: String4, number: String4, url: String4 })),
|
|
16129
16147
|
error: RunnerRpcError
|
|
16130
|
-
}),
|
|
16148
|
+
}), make5("AlertTask", {
|
|
16131
16149
|
payload: {
|
|
16132
16150
|
lease: ProgramLease,
|
|
16133
16151
|
step: String4,
|
|
@@ -16144,7 +16162,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16144
16162
|
joined: optionalKey(Struct({ kind: Literals(["run", "recent"]), runId: String4 }))
|
|
16145
16163
|
}),
|
|
16146
16164
|
error: RunnerRpcError
|
|
16147
|
-
}),
|
|
16165
|
+
}), make5("ReadTranscripts", {
|
|
16148
16166
|
payload: {
|
|
16149
16167
|
lease: ProgramLease,
|
|
16150
16168
|
step: String4,
|
|
@@ -16179,7 +16197,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16179
16197
|
})))
|
|
16180
16198
|
}),
|
|
16181
16199
|
error: RunnerRpcError
|
|
16182
|
-
}),
|
|
16200
|
+
}), make5("PipelineStatus", {
|
|
16183
16201
|
payload: {
|
|
16184
16202
|
lease: ProgramLease,
|
|
16185
16203
|
step: String4,
|
|
@@ -16219,11 +16237,11 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16219
16237
|
}))
|
|
16220
16238
|
}),
|
|
16221
16239
|
error: RunnerRpcError
|
|
16222
|
-
}),
|
|
16240
|
+
}), make5("ReportPipeline", {
|
|
16223
16241
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4, verification: String4 },
|
|
16224
16242
|
success: Struct({ head: String4, status: Literals(["success", "failed"]) }),
|
|
16225
16243
|
error: RunnerRpcError
|
|
16226
|
-
}),
|
|
16244
|
+
}), make5("ReviewThreads", {
|
|
16227
16245
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
|
|
16228
16246
|
success: Struct({
|
|
16229
16247
|
threads: ArraySchema(Struct({
|
|
@@ -16235,7 +16253,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16235
16253
|
}))
|
|
16236
16254
|
}),
|
|
16237
16255
|
error: RunnerRpcError
|
|
16238
|
-
}),
|
|
16256
|
+
}), make5("OpenChangeRequests", {
|
|
16239
16257
|
payload: { lease: ProgramLease, step: String4, authors: NonEmptyArray(String4) },
|
|
16240
16258
|
success: Struct({
|
|
16241
16259
|
changeRequests: ArraySchema(Struct({
|
|
@@ -16249,7 +16267,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16249
16267
|
}))
|
|
16250
16268
|
}),
|
|
16251
16269
|
error: RunnerRpcError
|
|
16252
|
-
}),
|
|
16270
|
+
}), make5("OwnChangeRequests", {
|
|
16253
16271
|
payload: { lease: ProgramLease, step: String4 },
|
|
16254
16272
|
success: Struct({
|
|
16255
16273
|
changeRequests: ArraySchema(Struct({
|
|
@@ -16262,7 +16280,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16262
16280
|
}))
|
|
16263
16281
|
}),
|
|
16264
16282
|
error: RunnerRpcError
|
|
16265
|
-
}),
|
|
16283
|
+
}), make5("Propose", {
|
|
16266
16284
|
payload: {
|
|
16267
16285
|
lease: ProgramLease,
|
|
16268
16286
|
step: String4,
|
|
@@ -16291,7 +16309,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16291
16309
|
task: optionalKey(Struct({ id: String4, active: Boolean2 }))
|
|
16292
16310
|
}),
|
|
16293
16311
|
error: RunnerRpcError
|
|
16294
|
-
}),
|
|
16312
|
+
}), make5("ReadProject", {
|
|
16295
16313
|
payload: { lease: ProgramLease, step: String4, projectId: String4 },
|
|
16296
16314
|
success: Struct({
|
|
16297
16315
|
project: Struct({ id: String4, name: String4 }),
|
|
@@ -16314,7 +16332,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16314
16332
|
taskChanges: ArraySchema(Struct({ taskKey: String4, title: String4, change: String4, at: String4 }))
|
|
16315
16333
|
}),
|
|
16316
16334
|
error: RunnerRpcError
|
|
16317
|
-
}),
|
|
16335
|
+
}), make5("DraftUpdate", {
|
|
16318
16336
|
payload: {
|
|
16319
16337
|
lease: ProgramLease,
|
|
16320
16338
|
step: String4,
|
|
@@ -16329,7 +16347,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16329
16347
|
},
|
|
16330
16348
|
success: Struct({ id: String4 }),
|
|
16331
16349
|
error: RunnerRpcError
|
|
16332
|
-
}),
|
|
16350
|
+
}), make5("CreatePlanTasks", {
|
|
16333
16351
|
payload: {
|
|
16334
16352
|
lease: ProgramLease,
|
|
16335
16353
|
projectId: optionalKey(String4),
|
|
@@ -16350,15 +16368,15 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16350
16368
|
},
|
|
16351
16369
|
success: ArraySchema(Struct({ key: String4, taskId: String4 })),
|
|
16352
16370
|
error: RunnerRpcError
|
|
16353
|
-
}),
|
|
16371
|
+
}), make5("IntegrationBranch", {
|
|
16354
16372
|
payload: { lease: ProgramLease, repoBindingId: optionalKey(String4) },
|
|
16355
16373
|
success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
|
|
16356
16374
|
error: RunnerRpcError
|
|
16357
|
-
}),
|
|
16375
|
+
}), make5("DeliveryBase", {
|
|
16358
16376
|
payload: { lease: ProgramLease },
|
|
16359
16377
|
success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
|
|
16360
16378
|
error: RunnerRpcError
|
|
16361
|
-
}),
|
|
16379
|
+
}), make5("Branch", {
|
|
16362
16380
|
payload: {
|
|
16363
16381
|
lease: ProgramLease,
|
|
16364
16382
|
branch: optionalKey(String4),
|
|
@@ -16373,7 +16391,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16373
16391
|
created: Boolean2
|
|
16374
16392
|
}),
|
|
16375
16393
|
error: RunnerRpcError
|
|
16376
|
-
}),
|
|
16394
|
+
}), make5("BranchChangeRequest", {
|
|
16377
16395
|
payload: {
|
|
16378
16396
|
lease: ProgramLease,
|
|
16379
16397
|
step: String4,
|
|
@@ -16396,7 +16414,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16396
16414
|
Struct({ status: Literal("elsewhere"), team: String4 })
|
|
16397
16415
|
]),
|
|
16398
16416
|
error: RunnerRpcError
|
|
16399
|
-
}),
|
|
16417
|
+
}), make5("MergeChangeRequest", {
|
|
16400
16418
|
payload: {
|
|
16401
16419
|
lease: ProgramLease,
|
|
16402
16420
|
step: String4,
|
|
@@ -16414,7 +16432,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16414
16432
|
Struct({ status: Literal("moved"), head: String4 })
|
|
16415
16433
|
]),
|
|
16416
16434
|
error: RunnerRpcError
|
|
16417
|
-
}),
|
|
16435
|
+
}), make5("ApproveChangeRequest", {
|
|
16418
16436
|
payload: {
|
|
16419
16437
|
lease: ProgramLease,
|
|
16420
16438
|
step: String4,
|
|
@@ -16430,7 +16448,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16430
16448
|
Struct({ approved: Literal(false), reason: String4 })
|
|
16431
16449
|
]),
|
|
16432
16450
|
error: RunnerRpcError
|
|
16433
|
-
}),
|
|
16451
|
+
}), make5("CloseChangeRequest", {
|
|
16434
16452
|
payload: {
|
|
16435
16453
|
lease: ProgramLease,
|
|
16436
16454
|
step: String4,
|
|
@@ -16440,7 +16458,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16440
16458
|
},
|
|
16441
16459
|
success: Struct({ closed: Boolean2, head: optionalKey(String4) }),
|
|
16442
16460
|
error: RunnerRpcError
|
|
16443
|
-
}),
|
|
16461
|
+
}), make5("RerunPipeline", {
|
|
16444
16462
|
payload: {
|
|
16445
16463
|
lease: ProgramLease,
|
|
16446
16464
|
step: String4,
|
|
@@ -16450,7 +16468,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16450
16468
|
},
|
|
16451
16469
|
success: Struct({ head: String4, pipelines: Int }),
|
|
16452
16470
|
error: RunnerRpcError
|
|
16453
|
-
}),
|
|
16471
|
+
}), make5("PublishRelease", {
|
|
16454
16472
|
payload: {
|
|
16455
16473
|
lease: ProgramLease,
|
|
16456
16474
|
step: String4,
|
|
@@ -16464,7 +16482,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16464
16482
|
},
|
|
16465
16483
|
success: Struct({ tag: String4, revision: String4, url: String4 }),
|
|
16466
16484
|
error: RunnerRpcError
|
|
16467
|
-
}),
|
|
16485
|
+
}), make5("RecordDeploy", {
|
|
16468
16486
|
payload: {
|
|
16469
16487
|
lease: ProgramLease,
|
|
16470
16488
|
step: String4,
|
|
@@ -16476,7 +16494,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16476
16494
|
},
|
|
16477
16495
|
success: Deploy,
|
|
16478
16496
|
error: RunnerRpcError
|
|
16479
|
-
}),
|
|
16497
|
+
}), make5("DeployTarget", {
|
|
16480
16498
|
payload: { lease: ProgramLease, step: String4, target: DeployTargetName },
|
|
16481
16499
|
success: Struct({
|
|
16482
16500
|
target: String4,
|
|
@@ -16484,14 +16502,14 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16484
16502
|
order: optionalKey(ArraySchema(String4))
|
|
16485
16503
|
}),
|
|
16486
16504
|
error: RunnerRpcError
|
|
16487
|
-
}), RunHostStep,
|
|
16505
|
+
}), RunHostStep, make5("ProgramSecrets", {
|
|
16488
16506
|
payload: { lease: ProgramLease },
|
|
16489
16507
|
success: Record(String4, String4),
|
|
16490
16508
|
error: RunnerRpcError
|
|
16491
16509
|
})).middleware(RunnerAuthentication) {
|
|
16492
16510
|
}
|
|
16493
16511
|
|
|
16494
|
-
class RunnerRunFileRpcs extends
|
|
16512
|
+
class RunnerRunFileRpcs extends make6(make5("CreateRunFile", {
|
|
16495
16513
|
payload: {
|
|
16496
16514
|
lease: ProgramLease,
|
|
16497
16515
|
step: String4,
|
|
@@ -16503,11 +16521,11 @@ class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
|
|
|
16503
16521
|
},
|
|
16504
16522
|
success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
|
|
16505
16523
|
error: Union([RunnerRpcError, RunFileRefused])
|
|
16506
|
-
}),
|
|
16524
|
+
}), make5("RunFileParts", {
|
|
16507
16525
|
payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
|
|
16508
16526
|
success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
|
|
16509
16527
|
error: RunnerRpcError
|
|
16510
|
-
}),
|
|
16528
|
+
}), make5("CompleteRunFile", {
|
|
16511
16529
|
payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
|
|
16512
16530
|
success: RunFileRecord,
|
|
16513
16531
|
error: RunnerRpcError
|
|
@@ -16596,7 +16614,7 @@ function toStoredSession(token, existingRefreshToken) {
|
|
|
16596
16614
|
}
|
|
16597
16615
|
function startLoopbackServer(input) {
|
|
16598
16616
|
return gen(function* () {
|
|
16599
|
-
const code = yield*
|
|
16617
|
+
const code = yield* make15();
|
|
16600
16618
|
const context2 = yield* context();
|
|
16601
16619
|
const runSyncExit = runSyncExitWith(context2);
|
|
16602
16620
|
const server = yield* acquireRelease(sync2(() => Bun.serve({
|
|
@@ -17144,7 +17162,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
17144
17162
|
let lastId = 0;
|
|
17145
17163
|
let lost = false;
|
|
17146
17164
|
const notifications = yield* unbounded2();
|
|
17147
|
-
const ended = yield*
|
|
17165
|
+
const ended = yield* make15();
|
|
17148
17166
|
const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
|
|
17149
17167
|
onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
|
|
17150
17168
|
onNone: () => void_3,
|
|
@@ -17171,7 +17189,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
17171
17189
|
if (lost)
|
|
17172
17190
|
return yield* new HerdrCoreConnectionLost2({ method });
|
|
17173
17191
|
const id = ++lastId;
|
|
17174
|
-
const deferred = yield*
|
|
17192
|
+
const deferred = yield* make15();
|
|
17175
17193
|
pending.set(id, { method, deferred });
|
|
17176
17194
|
yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
|
|
17177
17195
|
return yield* _await(deferred);
|
|
@@ -17245,14 +17263,14 @@ var herdrCoreOver = (transport) => ({
|
|
|
17245
17263
|
return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
|
|
17246
17264
|
};
|
|
17247
17265
|
const snapshot = { type: "snapshot", terminals: subscribed.terminals };
|
|
17248
|
-
return concat(
|
|
17266
|
+
return concat(make10(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
|
|
17249
17267
|
}))
|
|
17250
17268
|
});
|
|
17251
17269
|
var spawnedTransport = (env) => gen(function* () {
|
|
17252
17270
|
const spawner = yield* ChildProcessSpawner;
|
|
17253
17271
|
const input = yield* unbounded2();
|
|
17254
17272
|
const encoder = new TextEncoder;
|
|
17255
|
-
const handle = yield* spawner.spawn(
|
|
17273
|
+
const handle = yield* spawner.spawn(make2("herdr-core", ["connect"], {
|
|
17256
17274
|
extendEnv: false,
|
|
17257
17275
|
env,
|
|
17258
17276
|
stdin: fromQueue(input),
|
|
@@ -17283,7 +17301,7 @@ var updateHerdrCore2 = (options) => gen(function* () {
|
|
|
17283
17301
|
const spawner = yield* ChildProcessSpawner;
|
|
17284
17302
|
const env = coreEnv(options);
|
|
17285
17303
|
const run = (args) => gen(function* () {
|
|
17286
|
-
const handle = yield* spawner.spawn(
|
|
17304
|
+
const handle = yield* spawner.spawn(make2("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
|
|
17287
17305
|
const [stdout, stderr, exitCode] = yield* all3([
|
|
17288
17306
|
mkString(decodeText(handle.stdout)),
|
|
17289
17307
|
mkString(decodeText(handle.stderr)),
|
|
@@ -17309,7 +17327,7 @@ class CommandFailed2 extends TaggedError("CommandFailed") {
|
|
|
17309
17327
|
}
|
|
17310
17328
|
var runCommand2 = (command, args, options = {}) => gen(function* () {
|
|
17311
17329
|
const spawner = yield* ChildProcessSpawner;
|
|
17312
|
-
const handle = yield* spawner.spawn(
|
|
17330
|
+
const handle = yield* spawner.spawn(make2(command, args, {
|
|
17313
17331
|
stdin: "ignore",
|
|
17314
17332
|
...options.cwd === undefined ? undefined : { cwd: options.cwd },
|
|
17315
17333
|
...options.env === undefined ? undefined : { extendEnv: true, env: options.env }
|
|
@@ -17335,8 +17353,8 @@ var shellOutputTailChars2 = 64 * 1024;
|
|
|
17335
17353
|
var runProcess2 = (argv, options) => gen(function* () {
|
|
17336
17354
|
const spawner = yield* ChildProcessSpawner;
|
|
17337
17355
|
const [command, ...args] = argv;
|
|
17338
|
-
const handle = yield* spawner.spawn(
|
|
17339
|
-
stdin: options.stdin === undefined ? "ignore" :
|
|
17356
|
+
const handle = yield* spawner.spawn(make2(command, args, {
|
|
17357
|
+
stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
|
|
17340
17358
|
...options.cwd === undefined ? undefined : { cwd: options.cwd },
|
|
17341
17359
|
env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
|
|
17342
17360
|
}));
|
|
@@ -17856,4 +17874,4 @@ function serviceChecks(declaration) {
|
|
|
17856
17874
|
return decoded === undefined || decoded.services.length === 0 ? [] : [...new Set(decoded.checks ?? [])];
|
|
17857
17875
|
}
|
|
17858
17876
|
|
|
17859
|
-
export { 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, ReleaseChannels, DefaultReleaseChannel, newerKitmanVersion, releaseChannelOffers, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, RepoBindingProvider, findForbiddenRepoBindingSecretPath, releaseVersion, ReleaseScope, isBranchName, baseBranchLayerWords, repositoryKey, loopInputFields, InputSourceLayers, InputSource, inputSourceWords, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, tokensSpent, tokenCountWords, endsFailing, outlineText, anyFailure, goesOn, outlineMermaid, runOutlineText, isTestReportName, testDigest, failedTestOfLine, printedNotReported, failedTestsOf, testOutcomes, checkTests, loopSafeTextMaxLength, recommendedDefault, reportedModelName, RunDisplayStates, RunWaitUntils, calverNumbers, compareCalver, DeliveryMode, defaultDeployCommand, ProgramWorkUnit, MeasureSample, MeasureEvidence, TagVersions, compareCommitMax, commitMessageMax, commandTimeoutMillisDefault, commandTextLimit, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, MaxRunnerConcurrency, PinnedImage, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, deliveryProviderActions, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, DeployTargetName, DeployRef, DeployStatus, runsDeployedTag, Deploy, DeployTargetRunning, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, ClaimResult, mergeTurnResource, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw,
|
|
17877
|
+
export { 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, ReleaseChannels, DefaultReleaseChannel, newerKitmanVersion, releaseChannelOffers, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, RepoBindingProvider, findForbiddenRepoBindingSecretPath, releaseVersion, ReleaseScope, isBranchName, baseBranchLayerWords, repositoryKey, loopInputFields, InputSourceLayers, InputSource, inputSourceWords, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, tokensSpent, tokenCountWords, endsFailing, outlineText, anyFailure, goesOn, outlineMermaid, runOutlineText, isTestReportName, testDigest, failedTestOfLine, printedNotReported, failedTestsOf, testOutcomes, checkTests, loopSafeTextMaxLength, recommendedDefault, reportedModelName, RunDisplayStates, RunWaitUntils, calverNumbers, compareCalver, DeliveryMode, defaultDeployCommand, ProgramWorkUnit, MeasureSample, MeasureEvidence, TagVersions, compareCommitMax, commitMessageMax, commandTimeoutMillisDefault, commandTextLimit, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, MaxRunnerConcurrency, PinnedImage, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, deliveryProviderActions, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, DeployTargetName, DeployRef, DeployStatus, runsDeployedTag, Deploy, DeployTargetRunning, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, ClaimResult, mergeTurnResource, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw, make4, get, post, put, setHeaders, acceptJson, bodyUint8Array, bodyJsonUnsafe, bodyUrlParams, schemaBodyJson, filterStatusOk, HttpClient, execute, get2, Fetch, layer4, Socket, SocketReadError, SocketError, WebSocketConstructor, layerWebSocketConstructorGlobal, layerWebSocket, runDisplayLabels, listedSummary, stepFallbackWords, runTicketsPayload, runTicketResult, ticketOutcomeLabels, runGraphLayout, KitDigest, defaultKitName, LoopCapabilities, LoopManifest, CallableLoop, AgentDeclaration, StepManifest, KitDeclarations, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, runnerReleaseChannelPath, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, removeAgentCredential, normalizeApiUrl, isStoredAgentCredential, isStreamSchema, getStreamSchemas, make5, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make6, Service, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, RunSettled, UpdateAvailable, RunnerReplicaRpcs, RunnerRunFileRpcs, ProgramRpcs, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, setupMcpAgentCredential, generateAgentKeyPair, HERDR_CORE_GENERATION2, HERDR_CORE_INSTALL_COMMAND2, HerdrCoreMissing2, HerdrCoreIncompatible2, HerdrCoreConnectionLost2, HerdrCoreRpcError2, HerdrCoreUpdateFailed2, HerdrCore2, herdrCoreLayer2, herdrCoreTransportLayer2, updateHerdrCore2, CommandFailed2, runCommand2, withoutPreloads2, shellOutputTailChars2, runProcess2, CommandRunner2, runShell2, detectHarnesses2, kitHarnesses, isKitHarness, instructionsStart, instructionsEnd, harnessNames, renderMcpServer, antigravityPlugins, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices, serviceChecks };
|