@kitman-sh/cli 0.44.0 → 0.46.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-gw0pc35c.js → chunk-0511zsxk.js} +430 -55
- package/dist/{chunk-5ccz7ghp.js → chunk-16wyj1eq.js} +42 -33
- package/dist/{chunk-3mbp8cse.js → chunk-2xeq2a7j.js} +31 -174
- package/dist/{chunk-9h16pekj.js → chunk-5tgpa02q.js} +1 -1
- package/dist/{chunk-134jdvs6.js → chunk-6evexbdx.js} +14 -60
- package/dist/{chunk-wh3pjr9r.js → chunk-7wq13jgx.js} +13 -13
- package/dist/{chunk-zvmdyf3v.js → chunk-8qbem52x.js} +39 -39
- package/dist/{chunk-ncp13gyf.js → chunk-9hqskzqc.js} +2 -2
- package/dist/{chunk-8a7337s1.js → chunk-apv9h5tz.js} +1 -1
- package/dist/{chunk-qkwkxn4d.js → chunk-bc40mcq9.js} +76 -76
- package/dist/{chunk-d0rx9esz.js → chunk-c6pnj2aj.js} +7 -7
- package/dist/{chunk-3zy2vbp0.js → chunk-e1v0c57f.js} +10 -10
- package/dist/{chunk-wkg1v0kd.js → chunk-j0b47jdz.js} +5 -5
- package/dist/{chunk-k2re3tp5.js → chunk-k1fdsn2c.js} +1 -1
- package/dist/{chunk-hmctc4eq.js → chunk-m5wqyzhk.js} +3 -3
- package/dist/{chunk-dp6v658s.js → chunk-mxy4wzhs.js} +4 -4
- package/dist/{chunk-zkvrxna8.js → chunk-n00cpb86.js} +2 -2
- package/dist/{chunk-x0ma41ys.js → chunk-n381rqax.js} +226 -40
- package/dist/{chunk-7rj9d0rp.js → chunk-nyagtr2t.js} +3 -3
- package/dist/{chunk-1k6z8q79.js → chunk-pty4b78m.js} +299 -117
- package/dist/{chunk-1c4wk9dr.js → chunk-qfwhsqej.js} +3 -3
- package/dist/{chunk-dre4f6s4.js → chunk-qy0enebe.js} +9 -9
- package/dist/{chunk-j60f2tr1.js → chunk-t2x4p5sp.js} +4 -4
- package/dist/{chunk-d2tpz1yp.js → chunk-tsw66qp3.js} +1 -1
- package/dist/{chunk-wvnsqt17.js → chunk-w0tzm3fg.js} +6 -6
- package/dist/{chunk-dj873p0e.js → chunk-x38fytew.js} +92 -26
- 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
|
empty4,
|
|
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,
|
|
@@ -191,7 +191,12 @@ import {
|
|
|
191
191
|
clockWith,
|
|
192
192
|
logError,
|
|
193
193
|
effectify,
|
|
194
|
+
toNumber,
|
|
195
|
+
bytes,
|
|
194
196
|
decode,
|
|
197
|
+
isRedacted,
|
|
198
|
+
make16,
|
|
199
|
+
value,
|
|
195
200
|
defaultParseOptions,
|
|
196
201
|
omit,
|
|
197
202
|
map10,
|
|
@@ -199,6 +204,7 @@ import {
|
|
|
199
204
|
is,
|
|
200
205
|
decodeUnknownEffect2,
|
|
201
206
|
decodeEffect,
|
|
207
|
+
decodeUnknownExit,
|
|
202
208
|
decodeUnknownOption,
|
|
203
209
|
decodeOption,
|
|
204
210
|
make17,
|
|
@@ -262,20 +268,18 @@ import {
|
|
|
262
268
|
decodeJsonStringOption,
|
|
263
269
|
encodeJsonStringSync,
|
|
264
270
|
encodePrettyJsonString
|
|
265
|
-
} from "./chunk-
|
|
271
|
+
} from "./chunk-n381rqax.js";
|
|
266
272
|
import {
|
|
267
273
|
map,
|
|
268
274
|
makeEquivalence,
|
|
269
275
|
Clock,
|
|
270
276
|
currentTimeMillis,
|
|
271
|
-
toNumber,
|
|
272
|
-
bytes,
|
|
273
277
|
BadArgument,
|
|
274
278
|
systemError,
|
|
275
279
|
badArgument,
|
|
276
280
|
makeUnsafe2,
|
|
281
|
+
make7,
|
|
277
282
|
make8,
|
|
278
|
-
make9,
|
|
279
283
|
sliding,
|
|
280
284
|
unbounded2,
|
|
281
285
|
offer,
|
|
@@ -291,13 +295,13 @@ import {
|
|
|
291
295
|
isSink,
|
|
292
296
|
fromChannel,
|
|
293
297
|
drain,
|
|
294
|
-
|
|
298
|
+
make9,
|
|
295
299
|
get3,
|
|
296
300
|
isStream,
|
|
297
301
|
fromChannel2,
|
|
298
302
|
callback,
|
|
299
303
|
empty3,
|
|
300
|
-
|
|
304
|
+
make10,
|
|
301
305
|
suspend,
|
|
302
306
|
fail2,
|
|
303
307
|
fromQueue,
|
|
@@ -323,31 +327,28 @@ import {
|
|
|
323
327
|
mkArrayBuffer,
|
|
324
328
|
toReadableStreamEffect,
|
|
325
329
|
FileSystem,
|
|
326
|
-
|
|
330
|
+
make11,
|
|
327
331
|
FileTypeId,
|
|
328
332
|
WatchBackend,
|
|
329
333
|
Path,
|
|
330
|
-
|
|
334
|
+
make12,
|
|
331
335
|
option,
|
|
332
336
|
String2,
|
|
333
337
|
optionalEnv,
|
|
334
338
|
harnessesUnsupportedInSrt2,
|
|
335
339
|
harnessesUnsupportedInDocker2
|
|
336
|
-
} from "./chunk-
|
|
340
|
+
} from "./chunk-2xeq2a7j.js";
|
|
337
341
|
import {
|
|
338
|
-
isRedacted,
|
|
339
|
-
make,
|
|
340
|
-
value,
|
|
341
342
|
ExitCode,
|
|
342
343
|
ProcessId,
|
|
343
344
|
makeHandle,
|
|
344
|
-
|
|
345
|
+
make,
|
|
345
346
|
ChildProcessSpawner,
|
|
346
347
|
display,
|
|
347
|
-
|
|
348
|
+
make2,
|
|
348
349
|
parseFdName,
|
|
349
350
|
fdName
|
|
350
|
-
} from "./chunk-
|
|
351
|
+
} from "./chunk-6evexbdx.js";
|
|
351
352
|
import {
|
|
352
353
|
isDateTime,
|
|
353
354
|
Numeric,
|
|
@@ -360,7 +361,7 @@ import {
|
|
|
360
361
|
SecretScope,
|
|
361
362
|
SecretHosts,
|
|
362
363
|
isSecretReference
|
|
363
|
-
} from "./chunk-
|
|
364
|
+
} from "./chunk-5tgpa02q.js";
|
|
364
365
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
|
|
365
366
|
var makeEquivalence3 = Tuple;
|
|
366
367
|
|
|
@@ -518,7 +519,7 @@ var makeUnsafe6 = (input) => {
|
|
|
518
519
|
var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
|
|
519
520
|
var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
|
|
520
521
|
var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
|
|
521
|
-
var
|
|
522
|
+
var make3 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
|
|
522
523
|
var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
|
|
523
524
|
var nowUnsafe = () => makeUtc(Date.now());
|
|
524
525
|
var toDateUtc = (self) => new Date(self.epochMilliseconds);
|
|
@@ -899,7 +900,7 @@ var runMain = runMain2;
|
|
|
899
900
|
|
|
900
901
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
|
|
901
902
|
var makeUnsafe = makeUnsafe6;
|
|
902
|
-
var make18 =
|
|
903
|
+
var make18 = make3;
|
|
903
904
|
var now2 = now;
|
|
904
905
|
var nowUnsafe2 = nowUnsafe;
|
|
905
906
|
var toDateUtc2 = toDateUtc;
|
|
@@ -1114,7 +1115,7 @@ var readableToPullUnsafe = (options) => {
|
|
|
1114
1115
|
const readable = options.readable;
|
|
1115
1116
|
const chunkSize = options.chunkSize ?? 4096;
|
|
1116
1117
|
const closeOnDone = options.closeOnDone ?? true;
|
|
1117
|
-
const exit = options.exit ??
|
|
1118
|
+
const exit = options.exit ?? make7(undefined);
|
|
1118
1119
|
const latch = options.latch ?? makeUnsafe2(false);
|
|
1119
1120
|
function onReadable() {
|
|
1120
1121
|
latch.openUnsafe();
|
|
@@ -1678,7 +1679,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1678
1679
|
const sourceStream = unwrap(succeed6(getSourceStream(handles[handles.length - 1], options.from)));
|
|
1679
1680
|
const toOption = options.to ?? "stdin";
|
|
1680
1681
|
if (toOption === "stdin") {
|
|
1681
|
-
handles.push(yield* spawnCommand(
|
|
1682
|
+
handles.push(yield* spawnCommand(make2(command.command, command.args, {
|
|
1682
1683
|
...command.options,
|
|
1683
1684
|
stdin: {
|
|
1684
1685
|
...stdinConfig,
|
|
@@ -1698,7 +1699,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1698
1699
|
type: "input",
|
|
1699
1700
|
stream: sourceStream
|
|
1700
1701
|
};
|
|
1701
|
-
handles.push(yield* spawnCommand(
|
|
1702
|
+
handles.push(yield* spawnCommand(make2(command.command, command.args, {
|
|
1702
1703
|
...command.options,
|
|
1703
1704
|
additionalFds: {
|
|
1704
1705
|
...existingFds,
|
|
@@ -1706,7 +1707,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1706
1707
|
}
|
|
1707
1708
|
})));
|
|
1708
1709
|
} else {
|
|
1709
|
-
handles.push(yield* spawnCommand(
|
|
1710
|
+
handles.push(yield* spawnCommand(make2(command.command, command.args, {
|
|
1710
1711
|
...command.options,
|
|
1711
1712
|
stdin: {
|
|
1712
1713
|
...stdinConfig,
|
|
@@ -1745,7 +1746,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1745
1746
|
}
|
|
1746
1747
|
}
|
|
1747
1748
|
});
|
|
1748
|
-
return
|
|
1749
|
+
return make(spawnCommand);
|
|
1749
1750
|
});
|
|
1750
1751
|
var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
|
|
1751
1752
|
var flattenCommand = (command) => {
|
|
@@ -2231,7 +2232,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
|
|
|
2231
2232
|
resume(fail7(handleBadArgument("writeFile")(err)));
|
|
2232
2233
|
}
|
|
2233
2234
|
});
|
|
2234
|
-
var makeFileSystem = /* @__PURE__ */ map9(/* @__PURE__ */ serviceOption(WatchBackend), (backend) =>
|
|
2235
|
+
var makeFileSystem = /* @__PURE__ */ map9(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make11({
|
|
2235
2236
|
access: access2,
|
|
2236
2237
|
chmod: chmod2,
|
|
2237
2238
|
chown: chown2,
|
|
@@ -2291,15 +2292,15 @@ var fileUrlOps = (windows) => ({
|
|
|
2291
2292
|
})
|
|
2292
2293
|
})
|
|
2293
2294
|
});
|
|
2294
|
-
var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2295
|
+
var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
|
|
2295
2296
|
...NodePath.posix,
|
|
2296
2297
|
.../* @__PURE__ */ fileUrlOps(false)
|
|
2297
2298
|
}));
|
|
2298
|
-
var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2299
|
+
var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
|
|
2299
2300
|
...NodePath.win32,
|
|
2300
2301
|
.../* @__PURE__ */ fileUrlOps(true)
|
|
2301
2302
|
}));
|
|
2302
|
-
var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2303
|
+
var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
|
|
2303
2304
|
...NodePath,
|
|
2304
2305
|
.../* @__PURE__ */ fileUrlOps(undefined)
|
|
2305
2306
|
}));
|
|
@@ -2826,12 +2827,12 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
|
2826
2827
|
if (typeof key === "string") {
|
|
2827
2828
|
const k = key.toLowerCase();
|
|
2828
2829
|
if (k in self) {
|
|
2829
|
-
out[k] =
|
|
2830
|
+
out[k] = make16(self[k]);
|
|
2830
2831
|
}
|
|
2831
2832
|
} else {
|
|
2832
2833
|
for (const name in self) {
|
|
2833
2834
|
if (name.search(key) !== -1) {
|
|
2834
|
-
out[name] =
|
|
2835
|
+
out[name] = make16(self[name]);
|
|
2835
2836
|
}
|
|
2836
2837
|
}
|
|
2837
2838
|
}
|
|
@@ -2938,7 +2939,7 @@ var fromInputNested = (input) => {
|
|
|
2938
2939
|
return out;
|
|
2939
2940
|
};
|
|
2940
2941
|
var coerce = (value) => isRedacted(value) ? value : String(value);
|
|
2941
|
-
var Equivalence3 = /* @__PURE__ */
|
|
2942
|
+
var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
|
|
2942
2943
|
var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
|
|
2943
2944
|
var empty2 = /* @__PURE__ */ make23([]);
|
|
2944
2945
|
var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
@@ -2957,7 +2958,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
|
2957
2958
|
var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
|
|
2958
2959
|
var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
2959
2960
|
const patterns = Array.isArray(key) ? key : [key];
|
|
2960
|
-
return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ?
|
|
2961
|
+
return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make16(value) : value]);
|
|
2961
2962
|
});
|
|
2962
2963
|
var isRedactedName2 = isRedactedName;
|
|
2963
2964
|
var redactUrl = (url, redactedNames = currentRedactedNames()) => {
|
|
@@ -3033,7 +3034,7 @@ import * as readline from "readline";
|
|
|
3033
3034
|
var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
|
|
3034
3035
|
const stdin = process.stdin;
|
|
3035
3036
|
const stdout = process.stdout;
|
|
3036
|
-
const lines = yield*
|
|
3037
|
+
const lines = yield* make8();
|
|
3037
3038
|
let inputEnded = stdin.readableEnded;
|
|
3038
3039
|
let readlineActive = false;
|
|
3039
3040
|
const onStdinEnd = () => {
|
|
@@ -3044,7 +3045,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3044
3045
|
};
|
|
3045
3046
|
stdin.once("end", onStdinEnd);
|
|
3046
3047
|
yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
|
|
3047
|
-
const rlRef = yield*
|
|
3048
|
+
const rlRef = yield* make9({
|
|
3048
3049
|
acquire: acquireRelease(sync2(() => {
|
|
3049
3050
|
const rl = readline.createInterface({
|
|
3050
3051
|
input: stdin,
|
|
@@ -3083,7 +3084,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3083
3084
|
if (stdin.isTTY)
|
|
3084
3085
|
stdin.setRawMode(enabled);
|
|
3085
3086
|
});
|
|
3086
|
-
const rawModeRef = yield*
|
|
3087
|
+
const rawModeRef = yield* make9({
|
|
3087
3088
|
acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
|
|
3088
3089
|
idleTimeToLive: "10 millis"
|
|
3089
3090
|
});
|
|
@@ -3104,7 +3105,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3104
3105
|
return queue;
|
|
3105
3106
|
});
|
|
3106
3107
|
const readInput = gen(function* () {
|
|
3107
|
-
const queue = yield*
|
|
3108
|
+
const queue = yield* make8();
|
|
3108
3109
|
const handleKeypress = (s, k) => {
|
|
3109
3110
|
const userInput = {
|
|
3110
3111
|
input: fromUndefinedOr(s),
|
|
@@ -6368,6 +6369,184 @@ var checkTests = (reports, printed = []) => {
|
|
|
6368
6369
|
};
|
|
6369
6370
|
};
|
|
6370
6371
|
|
|
6372
|
+
// packages/core/src/question-answer.ts
|
|
6373
|
+
var AnswerSchemaJson = Record(String4, Json);
|
|
6374
|
+
var description = optionalKey(String4);
|
|
6375
|
+
var Count = Int.check(isGreaterThanOrEqualTo(0));
|
|
6376
|
+
var Nested = suspend4(() => DeclaredAnswerSchema);
|
|
6377
|
+
var DeclaredAnswerSchema = Union([
|
|
6378
|
+
Struct({ description, type: Literal("boolean"), const: optionalKey(Boolean2) }),
|
|
6379
|
+
Struct({
|
|
6380
|
+
description,
|
|
6381
|
+
type: Literal("string"),
|
|
6382
|
+
const: optionalKey(String4),
|
|
6383
|
+
enum: optionalKey(ArraySchema(String4).check(isMinLength(1))),
|
|
6384
|
+
minLength: optionalKey(Count),
|
|
6385
|
+
maxLength: optionalKey(Count)
|
|
6386
|
+
}),
|
|
6387
|
+
Struct({
|
|
6388
|
+
description,
|
|
6389
|
+
type: Literal("integer"),
|
|
6390
|
+
const: optionalKey(Int),
|
|
6391
|
+
minimum: optionalKey(Int),
|
|
6392
|
+
maximum: optionalKey(Int)
|
|
6393
|
+
}),
|
|
6394
|
+
Struct({
|
|
6395
|
+
description,
|
|
6396
|
+
type: Literal("array"),
|
|
6397
|
+
items: Nested,
|
|
6398
|
+
minItems: optionalKey(Count),
|
|
6399
|
+
maxItems: optionalKey(Count)
|
|
6400
|
+
}),
|
|
6401
|
+
Struct({
|
|
6402
|
+
description,
|
|
6403
|
+
type: Literal("object"),
|
|
6404
|
+
properties: Record(String4, Nested),
|
|
6405
|
+
required: ArraySchema(String4),
|
|
6406
|
+
additionalProperties: Literal(false)
|
|
6407
|
+
}),
|
|
6408
|
+
Struct({ description, anyOf: ArraySchema(Nested).check(isMinLength(1)) })
|
|
6409
|
+
]);
|
|
6410
|
+
var decodeDeclared = decodeUnknownExit(DeclaredAnswerSchema, { onExcessProperty: "error" });
|
|
6411
|
+
var inverted = (low, high) => low !== undefined && high !== undefined && low > high;
|
|
6412
|
+
var declarationProblem = (schema, path) => {
|
|
6413
|
+
if ("anyOf" in schema) {
|
|
6414
|
+
for (const [index, form] of schema.anyOf.entries()) {
|
|
6415
|
+
const problem = declarationProblem(form, `${path}anyOf[${index}].`);
|
|
6416
|
+
if (problem !== undefined)
|
|
6417
|
+
return problem;
|
|
6418
|
+
}
|
|
6419
|
+
return;
|
|
6420
|
+
}
|
|
6421
|
+
switch (schema.type) {
|
|
6422
|
+
case "boolean":
|
|
6423
|
+
return;
|
|
6424
|
+
case "string":
|
|
6425
|
+
return inverted(schema.minLength, schema.maxLength) ? `${path}minLength is past maxLength` : undefined;
|
|
6426
|
+
case "integer":
|
|
6427
|
+
return inverted(schema.minimum, schema.maximum) ? `${path}minimum is past maximum` : undefined;
|
|
6428
|
+
case "array":
|
|
6429
|
+
return inverted(schema.minItems, schema.maxItems) ? `${path}minItems is past maxItems` : declarationProblem(schema.items, `${path}items.`);
|
|
6430
|
+
case "object": {
|
|
6431
|
+
const missing = schema.required.find((key) => !Object.hasOwn(schema.properties, key));
|
|
6432
|
+
if (missing !== undefined)
|
|
6433
|
+
return `${path}required names "${missing}", which is not one of its properties`;
|
|
6434
|
+
for (const [key, field] of Object.entries(schema.properties)) {
|
|
6435
|
+
const problem = declarationProblem(field, `${path}properties.${key}.`);
|
|
6436
|
+
if (problem !== undefined)
|
|
6437
|
+
return problem;
|
|
6438
|
+
}
|
|
6439
|
+
return;
|
|
6440
|
+
}
|
|
6441
|
+
}
|
|
6442
|
+
};
|
|
6443
|
+
var decodeAnswerSchema = (declared) => {
|
|
6444
|
+
const decoded = decodeDeclared(declared);
|
|
6445
|
+
if (decoded._tag === "Failure")
|
|
6446
|
+
return {
|
|
6447
|
+
problem: `The answer schema is not one Kitman supports: boolean, string, integer, array, object with additionalProperties false, or anyOf, each with only their own keywords`
|
|
6448
|
+
};
|
|
6449
|
+
const problem = declarationProblem(decoded.value, "");
|
|
6450
|
+
return problem === undefined ? { schema: decoded.value } : { problem: `The answer schema is invalid: ${problem}` };
|
|
6451
|
+
};
|
|
6452
|
+
var shown = (value) => encodeJsonStringSync(value);
|
|
6453
|
+
var valueProblem = (schema, value, path) => {
|
|
6454
|
+
const at = path === "" ? "The answer" : path;
|
|
6455
|
+
if ("anyOf" in schema)
|
|
6456
|
+
return schema.anyOf.some((form) => valueProblem(form, value, path) === undefined) ? undefined : `${at} is none of the forms it accepts`;
|
|
6457
|
+
switch (schema.type) {
|
|
6458
|
+
case "boolean":
|
|
6459
|
+
if (!isBoolean2(value))
|
|
6460
|
+
return `${at} must be true or false`;
|
|
6461
|
+
return schema.const !== undefined && value !== schema.const ? `${at} must be ${schema.const}` : undefined;
|
|
6462
|
+
case "string":
|
|
6463
|
+
if (!isString2(value))
|
|
6464
|
+
return `${at} must be a string`;
|
|
6465
|
+
if (schema.const !== undefined && value !== schema.const)
|
|
6466
|
+
return `${at} must be ${shown(schema.const)}`;
|
|
6467
|
+
if (schema.enum !== undefined && !schema.enum.includes(value))
|
|
6468
|
+
return `${at} must be one of ${schema.enum.map(shown).join(", ")}`;
|
|
6469
|
+
if (schema.minLength !== undefined && value.length < schema.minLength)
|
|
6470
|
+
return `${at} must be at least ${schema.minLength} characters`;
|
|
6471
|
+
return schema.maxLength !== undefined && value.length > schema.maxLength ? `${at} must be at most ${schema.maxLength} characters` : undefined;
|
|
6472
|
+
case "integer":
|
|
6473
|
+
if (!Number.isInteger(value))
|
|
6474
|
+
return `${at} must be an integer`;
|
|
6475
|
+
if (schema.const !== undefined && value !== schema.const)
|
|
6476
|
+
return `${at} must be ${schema.const}`;
|
|
6477
|
+
if (schema.minimum !== undefined && Number(value) < schema.minimum)
|
|
6478
|
+
return `${at} must be at least ${schema.minimum}`;
|
|
6479
|
+
return schema.maximum !== undefined && Number(value) > schema.maximum ? `${at} must be at most ${schema.maximum}` : undefined;
|
|
6480
|
+
case "array": {
|
|
6481
|
+
if (!Array.isArray(value))
|
|
6482
|
+
return `${at} must be an array`;
|
|
6483
|
+
if (schema.minItems !== undefined && value.length < schema.minItems)
|
|
6484
|
+
return `${at} must hold at least ${schema.minItems} item${schema.minItems === 1 ? "" : "s"}`;
|
|
6485
|
+
if (schema.maxItems !== undefined && value.length > schema.maxItems)
|
|
6486
|
+
return `${at} must hold at most ${schema.maxItems} item${schema.maxItems === 1 ? "" : "s"}`;
|
|
6487
|
+
for (const [index, item] of value.entries()) {
|
|
6488
|
+
const problem = valueProblem(schema.items, item, `${path === "" ? "" : path}[${index}]`);
|
|
6489
|
+
if (problem !== undefined)
|
|
6490
|
+
return problem;
|
|
6491
|
+
}
|
|
6492
|
+
return;
|
|
6493
|
+
}
|
|
6494
|
+
case "object": {
|
|
6495
|
+
if (!isJsonObject(value))
|
|
6496
|
+
return `${at} must be an object`;
|
|
6497
|
+
const extra = Object.keys(value).find((key) => !Object.hasOwn(schema.properties, key));
|
|
6498
|
+
if (extra !== undefined)
|
|
6499
|
+
return `${at} must not have "${extra}"`;
|
|
6500
|
+
const missing = schema.required.find((key) => !Object.hasOwn(value, key));
|
|
6501
|
+
if (missing !== undefined)
|
|
6502
|
+
return `${at} must have "${missing}"`;
|
|
6503
|
+
for (const [key, field] of Object.entries(schema.properties)) {
|
|
6504
|
+
const given = value[key];
|
|
6505
|
+
if (given === undefined)
|
|
6506
|
+
continue;
|
|
6507
|
+
const problem = valueProblem(field, given, path === "" ? key : `${path}.${key}`);
|
|
6508
|
+
if (problem !== undefined)
|
|
6509
|
+
return problem;
|
|
6510
|
+
}
|
|
6511
|
+
return;
|
|
6512
|
+
}
|
|
6513
|
+
}
|
|
6514
|
+
};
|
|
6515
|
+
var sketch = (schema) => {
|
|
6516
|
+
if ("anyOf" in schema)
|
|
6517
|
+
return schema.anyOf.map(sketch).join(" or ");
|
|
6518
|
+
switch (schema.type) {
|
|
6519
|
+
case "boolean":
|
|
6520
|
+
return schema.const === undefined ? "<true or false>" : String(schema.const);
|
|
6521
|
+
case "string":
|
|
6522
|
+
if (schema.const !== undefined)
|
|
6523
|
+
return shown(schema.const);
|
|
6524
|
+
return schema.enum === undefined ? '"<text>"' : schema.enum.map(shown).join(" or ");
|
|
6525
|
+
case "integer":
|
|
6526
|
+
return schema.const === undefined ? "<integer>" : String(schema.const);
|
|
6527
|
+
case "array":
|
|
6528
|
+
return `[${sketch(schema.items)}, \u2026]`;
|
|
6529
|
+
case "object":
|
|
6530
|
+
return `{${Object.entries(schema.properties).map(([key, field]) => `${shown(key)}${schema.required.includes(key) ? "" : "?"}:${sketch(field)}`).join(",")}}`;
|
|
6531
|
+
}
|
|
6532
|
+
};
|
|
6533
|
+
var answerAccepts = (declared) => {
|
|
6534
|
+
const read = decodeAnswerSchema(declared);
|
|
6535
|
+
if ("problem" in read)
|
|
6536
|
+
return "JSON its schema accepts";
|
|
6537
|
+
const described = read.schema.description?.trim();
|
|
6538
|
+
return redactCredentialText(described === undefined || described === "" ? `JSON like ${sketch(read.schema)}` : described);
|
|
6539
|
+
};
|
|
6540
|
+
var answerProblem = (schema, answer) => {
|
|
6541
|
+
const decoded = decodeJsonStringOption(answer);
|
|
6542
|
+
const problem = decoded._tag === "None" ? "The answer is not JSON" : valueProblem(schema, decoded.value, "");
|
|
6543
|
+
return problem === undefined ? undefined : redactCredentialText(`${problem}. It accepts ${answerAccepts(schema)}`);
|
|
6544
|
+
};
|
|
6545
|
+
var answerValue = (schema, answer) => {
|
|
6546
|
+
const decoded = decodeJsonStringOption(answer);
|
|
6547
|
+
return decoded._tag === "Some" && valueProblem(schema, decoded.value, "") === undefined ? { value: decoded.value } : undefined;
|
|
6548
|
+
};
|
|
6549
|
+
|
|
6371
6550
|
// packages/core/src/loop.ts
|
|
6372
6551
|
var LoopStatuses = ["draft", "active", "disabled", "archived"];
|
|
6373
6552
|
var LoopStepImplementationKinds = [
|
|
@@ -6594,6 +6773,7 @@ var LoopSafeInternalReferenceString = String4.check(isMinLength(1), isMaxLength(
|
|
|
6594
6773
|
var loopSafeTextMaxLength = 4000;
|
|
6595
6774
|
var LoopSafeText = String4.check(isMaxLength(loopSafeTextMaxLength), isPattern(new RegExp(`^(?![\\s\\S]*(?:${LoopCredentialContentPattern}|[A-Za-z][A-Za-z0-9+.-]*://(?:[^\\s/?#]*@|[^\\s?#]*\\?)))[\\s\\S]*$`, "u")));
|
|
6596
6775
|
var recommendedDefault = (recommended) => recommended !== undefined && is(LoopSafeText)(recommended) ? recommended : undefined;
|
|
6776
|
+
var isLoopSafeText = is(LoopSafeText);
|
|
6597
6777
|
var reportedModelName = (named) => /^[A-Za-z0-9][\w.:/@+[\]-]{0,199}$/u.test(named) && is(LoopSafeText)(named) && redactCredentialText(named) === named ? named : undefined;
|
|
6598
6778
|
var QuestionText = String4;
|
|
6599
6779
|
var LoopSafeOutputDataString = String4.check(isMaxLength(4000), isPattern(new RegExp(LoopSafeInternalReferencePattern, "u")));
|
|
@@ -7207,6 +7387,7 @@ var Question = Struct({
|
|
|
7207
7387
|
prompt: QuestionText,
|
|
7208
7388
|
options: optionalKey(ArraySchema(QuestionText)),
|
|
7209
7389
|
freeText: optionalKey(Boolean2),
|
|
7390
|
+
answerSchema: optionalKey(AnswerSchemaJson),
|
|
7210
7391
|
optionDescriptions: optionalKey(Record(String4, QuestionText)),
|
|
7211
7392
|
recommended: optionalKey(QuestionText),
|
|
7212
7393
|
recommendationReason: optionalKey(QuestionText),
|
|
@@ -11138,14 +11319,14 @@ function makeWith(method, url, urlParams, hash, headers, body) {
|
|
|
11138
11319
|
return self;
|
|
11139
11320
|
}
|
|
11140
11321
|
var empty6 = /* @__PURE__ */ makeWith("GET", "", empty2, /* @__PURE__ */ none(), empty, empty5);
|
|
11141
|
-
var
|
|
11322
|
+
var make4 = (method) => (url, options) => modify(empty6, {
|
|
11142
11323
|
method,
|
|
11143
11324
|
url,
|
|
11144
11325
|
...options ?? undefined
|
|
11145
11326
|
});
|
|
11146
|
-
var get = /* @__PURE__ */
|
|
11147
|
-
var post = /* @__PURE__ */
|
|
11148
|
-
var put = /* @__PURE__ */
|
|
11327
|
+
var get = /* @__PURE__ */ make4("GET");
|
|
11328
|
+
var post = /* @__PURE__ */ make4("POST");
|
|
11329
|
+
var put = /* @__PURE__ */ make4("PUT");
|
|
11149
11330
|
var modify = /* @__PURE__ */ dual(2, (self, options) => {
|
|
11150
11331
|
let result = self;
|
|
11151
11332
|
if (options.method) {
|
|
@@ -11446,7 +11627,7 @@ var Proto7 = {
|
|
|
11446
11627
|
};
|
|
11447
11628
|
},
|
|
11448
11629
|
.../* @__PURE__ */ Object.fromEntries(/* @__PURE__ */ allShort.map(([fullMethod, method]) => [method, function(url, options) {
|
|
11449
|
-
return this.execute(
|
|
11630
|
+
return this.execute(make4(fullMethod)(url, options));
|
|
11450
11631
|
}]))
|
|
11451
11632
|
};
|
|
11452
11633
|
var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
|
|
@@ -15536,7 +15717,7 @@ var makeProto = (options) => {
|
|
|
15536
15717
|
Rpc.key = `effect/rpc/Rpc/${options._tag}`;
|
|
15537
15718
|
return Rpc;
|
|
15538
15719
|
};
|
|
15539
|
-
var
|
|
15720
|
+
var make5 = (tag, options) => {
|
|
15540
15721
|
const successSchema = options?.success ?? Void;
|
|
15541
15722
|
const errorSchema = options?.error ?? Never;
|
|
15542
15723
|
const defectSchema = options?.defect ?? Defect();
|
|
@@ -15747,7 +15928,7 @@ var RpcGroupProto = {
|
|
|
15747
15928
|
});
|
|
15748
15929
|
},
|
|
15749
15930
|
annotateRpcs(service, value) {
|
|
15750
|
-
return this.annotateRpcsMerge(
|
|
15931
|
+
return this.annotateRpcsMerge(make14(service, value));
|
|
15751
15932
|
},
|
|
15752
15933
|
annotateMerge(context) {
|
|
15753
15934
|
return makeProto2({
|
|
@@ -15770,7 +15951,7 @@ var makeProto2 = (options) => Object.assign(function() {}, RpcGroupProto, {
|
|
|
15770
15951
|
requests: options.requests,
|
|
15771
15952
|
annotations: options.annotations
|
|
15772
15953
|
});
|
|
15773
|
-
var
|
|
15954
|
+
var make6 = (...rpcs) => makeProto2({
|
|
15774
15955
|
requests: new Map(rpcs.map((rpc) => [rpc._tag, rpc])),
|
|
15775
15956
|
annotations: empty4()
|
|
15776
15957
|
});
|
|
@@ -15879,77 +16060,77 @@ var ProgramOutcome = Union([
|
|
|
15879
16060
|
Struct({ status: Literal("failed"), failureSummary: String4 })
|
|
15880
16061
|
]);
|
|
15881
16062
|
|
|
15882
|
-
class RunnerReplicaRpcs extends
|
|
16063
|
+
class RunnerReplicaRpcs extends make6(make5("Claim", {
|
|
15883
16064
|
payload: WorkUnitClaimInput,
|
|
15884
16065
|
success: WorkUnitClaimResult,
|
|
15885
16066
|
error: RunnerRpcError
|
|
15886
|
-
}),
|
|
16067
|
+
}), make5("Heartbeat", {
|
|
15887
16068
|
payload: WorkUnitHeartbeatInput,
|
|
15888
16069
|
success: WorkUnitHeartbeatResult,
|
|
15889
16070
|
error: RunnerRpcError
|
|
15890
|
-
}),
|
|
16071
|
+
}), make5("Complete", {
|
|
15891
16072
|
payload: WorkUnitCompletion,
|
|
15892
16073
|
error: RunnerRpcError
|
|
15893
|
-
}),
|
|
16074
|
+
}), make5("Release", {
|
|
15894
16075
|
payload: WorkUnitReleaseInput,
|
|
15895
16076
|
error: RunnerRpcError
|
|
15896
|
-
}),
|
|
16077
|
+
}), make5("Signals", {
|
|
15897
16078
|
payload: { runnerReplicaId: String4 },
|
|
15898
16079
|
success: RunnerSignal,
|
|
15899
16080
|
error: RunnerRpcError,
|
|
15900
16081
|
stream: true
|
|
15901
|
-
}),
|
|
16082
|
+
}), make5("ReportSteer", {
|
|
15902
16083
|
payload: { workUnitId: String4, messageId: String4, delivered: Boolean2 },
|
|
15903
16084
|
success: Void,
|
|
15904
16085
|
error: RunnerRpcError
|
|
15905
|
-
}),
|
|
16086
|
+
}), make5("AppendTranscript", {
|
|
15906
16087
|
payload: { workUnitId: String4, entries: ArraySchema(TranscriptAppendEntry).check(isMaxLength(100)) },
|
|
15907
16088
|
success: Void,
|
|
15908
16089
|
error: RunnerRpcError
|
|
15909
|
-
}),
|
|
16090
|
+
}), make5("CreateCheckpointFile", {
|
|
15910
16091
|
payload: { lease: ProgramLease, byteSize: Int, sha256: String4 },
|
|
15911
16092
|
success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
|
|
15912
16093
|
error: Union([RunnerRpcError, RunFileRefused])
|
|
15913
|
-
}),
|
|
16094
|
+
}), make5("CheckpointFileParts", {
|
|
15914
16095
|
payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
|
|
15915
16096
|
success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
|
|
15916
16097
|
error: RunnerRpcError
|
|
15917
|
-
}),
|
|
16098
|
+
}), make5("CompleteCheckpointFile", {
|
|
15918
16099
|
payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
|
|
15919
16100
|
success: RunFileRecord,
|
|
15920
16101
|
error: RunnerRpcError
|
|
15921
|
-
}),
|
|
16102
|
+
}), make5("SaveCheckpoint", {
|
|
15922
16103
|
payload: { lease: ProgramLease, checkpoint: StepCheckpoint },
|
|
15923
16104
|
success: Void,
|
|
15924
16105
|
error: RunnerRpcError
|
|
15925
|
-
}),
|
|
16106
|
+
}), make5("ResumeCheckpoint", {
|
|
15926
16107
|
payload: { lease: ProgramLease },
|
|
15927
16108
|
success: UndefinedOr(ResumedCheckpoint),
|
|
15928
16109
|
error: RunnerRpcError
|
|
15929
|
-
}),
|
|
16110
|
+
}), make5("SettledCheckpoints", {
|
|
15930
16111
|
success: ArraySchema(Struct({
|
|
15931
16112
|
stepAttemptId: String4,
|
|
15932
16113
|
ref: optionalKey(String4),
|
|
15933
16114
|
repoBinding: optionalKey(WorkUnitRepoBinding)
|
|
15934
16115
|
})),
|
|
15935
16116
|
error: RunnerRpcError
|
|
15936
|
-
}),
|
|
16117
|
+
}), make5("ForgetCheckpoints", {
|
|
15937
16118
|
payload: { stepAttemptIds: ArraySchema(String4) },
|
|
15938
16119
|
success: Void,
|
|
15939
16120
|
error: RunnerRpcError
|
|
15940
|
-
}),
|
|
16121
|
+
}), make5("GitCredential", {
|
|
15941
16122
|
payload: { repoBindingId: String4 },
|
|
15942
16123
|
success: UndefinedOr(Struct({ username: String4, password: String4 })),
|
|
15943
16124
|
error: RunnerRpcError
|
|
15944
|
-
}),
|
|
16125
|
+
}), make5("Bundle", {
|
|
15945
16126
|
payload: { digest: String4 },
|
|
15946
16127
|
success: Struct({ bundle: String4 }),
|
|
15947
16128
|
error: RunnerRpcError
|
|
15948
|
-
}),
|
|
16129
|
+
}), make5("SettledRuns", {
|
|
15949
16130
|
payload: { runIds: ArraySchema(String4) },
|
|
15950
16131
|
success: ArraySchema(String4),
|
|
15951
16132
|
error: RunnerRpcError
|
|
15952
|
-
}),
|
|
16133
|
+
}), make5("KnownEvidence", {
|
|
15953
16134
|
payload: { lease: ProgramLease, trees: ArraySchema(String4) },
|
|
15954
16135
|
success: ArraySchema(Struct({
|
|
15955
16136
|
tree: String4,
|
|
@@ -15961,29 +16142,30 @@ class RunnerReplicaRpcs extends make7(make6("Claim", {
|
|
|
15961
16142
|
})).middleware(RunnerAuthentication) {
|
|
15962
16143
|
}
|
|
15963
16144
|
|
|
15964
|
-
class RunnerJournalRpcs extends
|
|
16145
|
+
class RunnerJournalRpcs extends make6(make5("RecordActivity", {
|
|
15965
16146
|
payload: { lease: ProgramLease, name: String4, attempt: Int, exit: Json },
|
|
15966
16147
|
error: RunnerRpcError
|
|
15967
|
-
}),
|
|
16148
|
+
}), make5("DeferredDone", {
|
|
15968
16149
|
payload: { lease: ProgramLease, name: String4, exit: Json },
|
|
15969
16150
|
error: RunnerRpcError
|
|
15970
|
-
}),
|
|
16151
|
+
}), make5("ScheduleClock", {
|
|
15971
16152
|
payload: { lease: ProgramLease, name: String4, deferredName: String4, durationMillis: Int },
|
|
15972
16153
|
error: RunnerRpcError
|
|
15973
|
-
}),
|
|
16154
|
+
}), make5("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make5("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
|
|
15974
16155
|
}
|
|
15975
|
-
var RunHostStep =
|
|
16156
|
+
var RunHostStep = make5("RunHostStep", {
|
|
15976
16157
|
payload: { lease: ProgramLease, step: String4, hostStep: String4, request: Json },
|
|
15977
16158
|
success: Json,
|
|
15978
16159
|
error: RunnerRpcError
|
|
15979
16160
|
});
|
|
15980
16161
|
|
|
15981
|
-
class RunnerCapabilityRpcs extends
|
|
16162
|
+
class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
15982
16163
|
payload: {
|
|
15983
16164
|
lease: ProgramLease,
|
|
15984
16165
|
step: String4,
|
|
15985
16166
|
prompt: String4,
|
|
15986
16167
|
options: optional(ArraySchema(String4)),
|
|
16168
|
+
answerSchema: optional(AnswerSchemaJson),
|
|
15987
16169
|
optionDescriptions: optional(Record(String4, String4)),
|
|
15988
16170
|
recommended: optional(String4),
|
|
15989
16171
|
recommendationReason: optional(String4),
|
|
@@ -15998,7 +16180,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
15998
16180
|
},
|
|
15999
16181
|
success: Struct({ questionId: String4 }),
|
|
16000
16182
|
error: RunnerRpcError
|
|
16001
|
-
}),
|
|
16183
|
+
}), make5("StartAgentStep", {
|
|
16002
16184
|
payload: {
|
|
16003
16185
|
lease: ProgramLease,
|
|
16004
16186
|
step: String4,
|
|
@@ -16015,7 +16197,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16015
16197
|
},
|
|
16016
16198
|
success: Struct({ stepAttemptId: String4 }),
|
|
16017
16199
|
error: RunnerRpcError
|
|
16018
|
-
}),
|
|
16200
|
+
}), make5("StartVerification", {
|
|
16019
16201
|
payload: {
|
|
16020
16202
|
lease: ProgramLease,
|
|
16021
16203
|
step: String4,
|
|
@@ -16039,7 +16221,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16039
16221
|
},
|
|
16040
16222
|
success: Struct({ verificationId: String4 }),
|
|
16041
16223
|
error: RunnerRpcError
|
|
16042
|
-
}),
|
|
16224
|
+
}), make5("AwaitEvent", {
|
|
16043
16225
|
payload: {
|
|
16044
16226
|
lease: ProgramLease,
|
|
16045
16227
|
step: String4,
|
|
@@ -16055,7 +16237,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16055
16237
|
})))
|
|
16056
16238
|
},
|
|
16057
16239
|
error: RunnerRpcError
|
|
16058
|
-
}),
|
|
16240
|
+
}), make5("ClaimResource", {
|
|
16059
16241
|
payload: {
|
|
16060
16242
|
lease: ProgramLease,
|
|
16061
16243
|
step: String4,
|
|
@@ -16066,7 +16248,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16066
16248
|
claims: optionalKey(ArraySchema(String4))
|
|
16067
16249
|
},
|
|
16068
16250
|
error: RunnerRpcError
|
|
16069
|
-
}),
|
|
16251
|
+
}), make5("AdmitChild", {
|
|
16070
16252
|
payload: {
|
|
16071
16253
|
lease: ProgramLease,
|
|
16072
16254
|
step: String4,
|
|
@@ -16077,7 +16259,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16077
16259
|
},
|
|
16078
16260
|
success: Struct({ runId: String4 }),
|
|
16079
16261
|
error: RunnerRpcError
|
|
16080
|
-
}),
|
|
16262
|
+
}), make5("AdmitChildById", {
|
|
16081
16263
|
payload: {
|
|
16082
16264
|
lease: ProgramLease,
|
|
16083
16265
|
step: String4,
|
|
@@ -16088,18 +16270,18 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16088
16270
|
},
|
|
16089
16271
|
success: Struct({ runId: String4 }),
|
|
16090
16272
|
error: RunnerRpcError
|
|
16091
|
-
}),
|
|
16273
|
+
}), make5("CallableLoops", {
|
|
16092
16274
|
payload: { lease: ProgramLease, step: String4, taskId: optional(String4) },
|
|
16093
16275
|
success: Struct({ loops: ArraySchema(CallableLoop) }),
|
|
16094
16276
|
error: RunnerRpcError
|
|
16095
|
-
}),
|
|
16277
|
+
}), make5("StopLaunches", {
|
|
16096
16278
|
payload: {
|
|
16097
16279
|
lease: ProgramLease,
|
|
16098
16280
|
step: String4,
|
|
16099
16281
|
deferredNames: ArraySchema(String4)
|
|
16100
16282
|
},
|
|
16101
16283
|
error: RunnerRpcError
|
|
16102
|
-
}),
|
|
16284
|
+
}), make5("StoreArtifact", {
|
|
16103
16285
|
payload: {
|
|
16104
16286
|
lease: ProgramLease,
|
|
16105
16287
|
step: String4,
|
|
@@ -16111,7 +16293,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16111
16293
|
},
|
|
16112
16294
|
success: Struct({ artifactId: String4 }),
|
|
16113
16295
|
error: RunnerRpcError
|
|
16114
|
-
}),
|
|
16296
|
+
}), make5("RecordNote", {
|
|
16115
16297
|
payload: {
|
|
16116
16298
|
lease: ProgramLease,
|
|
16117
16299
|
step: String4,
|
|
@@ -16120,7 +16302,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16120
16302
|
kind: optional(Literals(["note", "blocker"]))
|
|
16121
16303
|
},
|
|
16122
16304
|
error: RunnerRpcError
|
|
16123
|
-
}),
|
|
16305
|
+
}), make5("PerformHostEffect", {
|
|
16124
16306
|
payload: {
|
|
16125
16307
|
lease: ProgramLease,
|
|
16126
16308
|
step: String4,
|
|
@@ -16149,7 +16331,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16149
16331
|
},
|
|
16150
16332
|
success: UndefinedOr(Struct({ id: String4, number: String4, url: String4 })),
|
|
16151
16333
|
error: RunnerRpcError
|
|
16152
|
-
}),
|
|
16334
|
+
}), make5("AlertTask", {
|
|
16153
16335
|
payload: {
|
|
16154
16336
|
lease: ProgramLease,
|
|
16155
16337
|
step: String4,
|
|
@@ -16166,7 +16348,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16166
16348
|
joined: optionalKey(Struct({ kind: Literals(["run", "recent"]), runId: String4 }))
|
|
16167
16349
|
}),
|
|
16168
16350
|
error: RunnerRpcError
|
|
16169
|
-
}),
|
|
16351
|
+
}), make5("ReadTranscripts", {
|
|
16170
16352
|
payload: {
|
|
16171
16353
|
lease: ProgramLease,
|
|
16172
16354
|
step: String4,
|
|
@@ -16201,7 +16383,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16201
16383
|
})))
|
|
16202
16384
|
}),
|
|
16203
16385
|
error: RunnerRpcError
|
|
16204
|
-
}),
|
|
16386
|
+
}), make5("PipelineStatus", {
|
|
16205
16387
|
payload: {
|
|
16206
16388
|
lease: ProgramLease,
|
|
16207
16389
|
step: String4,
|
|
@@ -16241,11 +16423,11 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16241
16423
|
}))
|
|
16242
16424
|
}),
|
|
16243
16425
|
error: RunnerRpcError
|
|
16244
|
-
}),
|
|
16426
|
+
}), make5("ReportPipeline", {
|
|
16245
16427
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4, verification: String4 },
|
|
16246
16428
|
success: Struct({ head: String4, status: Literals(["success", "failed"]) }),
|
|
16247
16429
|
error: RunnerRpcError
|
|
16248
|
-
}),
|
|
16430
|
+
}), make5("ReviewThreads", {
|
|
16249
16431
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
|
|
16250
16432
|
success: Struct({
|
|
16251
16433
|
threads: ArraySchema(Struct({
|
|
@@ -16257,7 +16439,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16257
16439
|
}))
|
|
16258
16440
|
}),
|
|
16259
16441
|
error: RunnerRpcError
|
|
16260
|
-
}),
|
|
16442
|
+
}), make5("OpenChangeRequests", {
|
|
16261
16443
|
payload: { lease: ProgramLease, step: String4, authors: NonEmptyArray(String4) },
|
|
16262
16444
|
success: Struct({
|
|
16263
16445
|
changeRequests: ArraySchema(Struct({
|
|
@@ -16271,7 +16453,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16271
16453
|
}))
|
|
16272
16454
|
}),
|
|
16273
16455
|
error: RunnerRpcError
|
|
16274
|
-
}),
|
|
16456
|
+
}), make5("OwnChangeRequests", {
|
|
16275
16457
|
payload: { lease: ProgramLease, step: String4 },
|
|
16276
16458
|
success: Struct({
|
|
16277
16459
|
changeRequests: ArraySchema(Struct({
|
|
@@ -16284,7 +16466,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16284
16466
|
}))
|
|
16285
16467
|
}),
|
|
16286
16468
|
error: RunnerRpcError
|
|
16287
|
-
}),
|
|
16469
|
+
}), make5("Propose", {
|
|
16288
16470
|
payload: {
|
|
16289
16471
|
lease: ProgramLease,
|
|
16290
16472
|
step: String4,
|
|
@@ -16313,7 +16495,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16313
16495
|
task: optionalKey(Struct({ id: String4, active: Boolean2 }))
|
|
16314
16496
|
}),
|
|
16315
16497
|
error: RunnerRpcError
|
|
16316
|
-
}),
|
|
16498
|
+
}), make5("ReadProject", {
|
|
16317
16499
|
payload: { lease: ProgramLease, step: String4, projectId: String4 },
|
|
16318
16500
|
success: Struct({
|
|
16319
16501
|
project: Struct({ id: String4, name: String4 }),
|
|
@@ -16336,7 +16518,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16336
16518
|
taskChanges: ArraySchema(Struct({ taskKey: String4, title: String4, change: String4, at: String4 }))
|
|
16337
16519
|
}),
|
|
16338
16520
|
error: RunnerRpcError
|
|
16339
|
-
}),
|
|
16521
|
+
}), make5("DraftUpdate", {
|
|
16340
16522
|
payload: {
|
|
16341
16523
|
lease: ProgramLease,
|
|
16342
16524
|
step: String4,
|
|
@@ -16351,7 +16533,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16351
16533
|
},
|
|
16352
16534
|
success: Struct({ id: String4 }),
|
|
16353
16535
|
error: RunnerRpcError
|
|
16354
|
-
}),
|
|
16536
|
+
}), make5("CreatePlanTasks", {
|
|
16355
16537
|
payload: {
|
|
16356
16538
|
lease: ProgramLease,
|
|
16357
16539
|
projectId: optionalKey(String4),
|
|
@@ -16372,15 +16554,15 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16372
16554
|
},
|
|
16373
16555
|
success: ArraySchema(Struct({ key: String4, taskId: String4 })),
|
|
16374
16556
|
error: RunnerRpcError
|
|
16375
|
-
}),
|
|
16557
|
+
}), make5("IntegrationBranch", {
|
|
16376
16558
|
payload: { lease: ProgramLease, repoBindingId: optionalKey(String4) },
|
|
16377
16559
|
success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
|
|
16378
16560
|
error: RunnerRpcError
|
|
16379
|
-
}),
|
|
16561
|
+
}), make5("DeliveryBase", {
|
|
16380
16562
|
payload: { lease: ProgramLease },
|
|
16381
16563
|
success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
|
|
16382
16564
|
error: RunnerRpcError
|
|
16383
|
-
}),
|
|
16565
|
+
}), make5("Branch", {
|
|
16384
16566
|
payload: {
|
|
16385
16567
|
lease: ProgramLease,
|
|
16386
16568
|
branch: optionalKey(String4),
|
|
@@ -16395,7 +16577,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16395
16577
|
created: Boolean2
|
|
16396
16578
|
}),
|
|
16397
16579
|
error: RunnerRpcError
|
|
16398
|
-
}),
|
|
16580
|
+
}), make5("BranchChangeRequest", {
|
|
16399
16581
|
payload: {
|
|
16400
16582
|
lease: ProgramLease,
|
|
16401
16583
|
step: String4,
|
|
@@ -16418,7 +16600,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16418
16600
|
Struct({ status: Literal("elsewhere"), team: String4 })
|
|
16419
16601
|
]),
|
|
16420
16602
|
error: RunnerRpcError
|
|
16421
|
-
}),
|
|
16603
|
+
}), make5("MergeChangeRequest", {
|
|
16422
16604
|
payload: {
|
|
16423
16605
|
lease: ProgramLease,
|
|
16424
16606
|
step: String4,
|
|
@@ -16436,7 +16618,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16436
16618
|
Struct({ status: Literal("moved"), head: String4 })
|
|
16437
16619
|
]),
|
|
16438
16620
|
error: RunnerRpcError
|
|
16439
|
-
}),
|
|
16621
|
+
}), make5("ApproveChangeRequest", {
|
|
16440
16622
|
payload: {
|
|
16441
16623
|
lease: ProgramLease,
|
|
16442
16624
|
step: String4,
|
|
@@ -16452,7 +16634,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16452
16634
|
Struct({ approved: Literal(false), reason: String4 })
|
|
16453
16635
|
]),
|
|
16454
16636
|
error: RunnerRpcError
|
|
16455
|
-
}),
|
|
16637
|
+
}), make5("CloseChangeRequest", {
|
|
16456
16638
|
payload: {
|
|
16457
16639
|
lease: ProgramLease,
|
|
16458
16640
|
step: String4,
|
|
@@ -16462,7 +16644,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16462
16644
|
},
|
|
16463
16645
|
success: Struct({ closed: Boolean2, head: optionalKey(String4) }),
|
|
16464
16646
|
error: RunnerRpcError
|
|
16465
|
-
}),
|
|
16647
|
+
}), make5("RerunPipeline", {
|
|
16466
16648
|
payload: {
|
|
16467
16649
|
lease: ProgramLease,
|
|
16468
16650
|
step: String4,
|
|
@@ -16472,7 +16654,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16472
16654
|
},
|
|
16473
16655
|
success: Struct({ head: String4, pipelines: Int }),
|
|
16474
16656
|
error: RunnerRpcError
|
|
16475
|
-
}),
|
|
16657
|
+
}), make5("PublishRelease", {
|
|
16476
16658
|
payload: {
|
|
16477
16659
|
lease: ProgramLease,
|
|
16478
16660
|
step: String4,
|
|
@@ -16486,7 +16668,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16486
16668
|
},
|
|
16487
16669
|
success: Struct({ tag: String4, revision: String4, url: String4 }),
|
|
16488
16670
|
error: RunnerRpcError
|
|
16489
|
-
}),
|
|
16671
|
+
}), make5("RecordDeploy", {
|
|
16490
16672
|
payload: {
|
|
16491
16673
|
lease: ProgramLease,
|
|
16492
16674
|
step: String4,
|
|
@@ -16498,7 +16680,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16498
16680
|
},
|
|
16499
16681
|
success: Deploy,
|
|
16500
16682
|
error: RunnerRpcError
|
|
16501
|
-
}),
|
|
16683
|
+
}), make5("DeployTarget", {
|
|
16502
16684
|
payload: { lease: ProgramLease, step: String4, target: DeployTargetName },
|
|
16503
16685
|
success: Struct({
|
|
16504
16686
|
target: String4,
|
|
@@ -16506,14 +16688,14 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
16506
16688
|
order: optionalKey(ArraySchema(String4))
|
|
16507
16689
|
}),
|
|
16508
16690
|
error: RunnerRpcError
|
|
16509
|
-
}), RunHostStep,
|
|
16691
|
+
}), RunHostStep, make5("ProgramSecrets", {
|
|
16510
16692
|
payload: { lease: ProgramLease },
|
|
16511
16693
|
success: Record(String4, String4),
|
|
16512
16694
|
error: RunnerRpcError
|
|
16513
16695
|
})).middleware(RunnerAuthentication) {
|
|
16514
16696
|
}
|
|
16515
16697
|
|
|
16516
|
-
class RunnerRunFileRpcs extends
|
|
16698
|
+
class RunnerRunFileRpcs extends make6(make5("CreateRunFile", {
|
|
16517
16699
|
payload: {
|
|
16518
16700
|
lease: ProgramLease,
|
|
16519
16701
|
step: String4,
|
|
@@ -16525,11 +16707,11 @@ class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
|
|
|
16525
16707
|
},
|
|
16526
16708
|
success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
|
|
16527
16709
|
error: Union([RunnerRpcError, RunFileRefused])
|
|
16528
|
-
}),
|
|
16710
|
+
}), make5("RunFileParts", {
|
|
16529
16711
|
payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
|
|
16530
16712
|
success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
|
|
16531
16713
|
error: RunnerRpcError
|
|
16532
|
-
}),
|
|
16714
|
+
}), make5("CompleteRunFile", {
|
|
16533
16715
|
payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
|
|
16534
16716
|
success: RunFileRecord,
|
|
16535
16717
|
error: RunnerRpcError
|
|
@@ -16618,7 +16800,7 @@ function toStoredSession(token, existingRefreshToken) {
|
|
|
16618
16800
|
}
|
|
16619
16801
|
function startLoopbackServer(input) {
|
|
16620
16802
|
return gen(function* () {
|
|
16621
|
-
const code = yield*
|
|
16803
|
+
const code = yield* make15();
|
|
16622
16804
|
const context2 = yield* context();
|
|
16623
16805
|
const runSyncExit = runSyncExitWith(context2);
|
|
16624
16806
|
const server = yield* acquireRelease(sync2(() => Bun.serve({
|
|
@@ -17166,7 +17348,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
17166
17348
|
let lastId = 0;
|
|
17167
17349
|
let lost = false;
|
|
17168
17350
|
const notifications = yield* unbounded2();
|
|
17169
|
-
const ended = yield*
|
|
17351
|
+
const ended = yield* make15();
|
|
17170
17352
|
const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
|
|
17171
17353
|
onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
|
|
17172
17354
|
onNone: () => void_3,
|
|
@@ -17193,7 +17375,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
17193
17375
|
if (lost)
|
|
17194
17376
|
return yield* new HerdrCoreConnectionLost2({ method });
|
|
17195
17377
|
const id = ++lastId;
|
|
17196
|
-
const deferred = yield*
|
|
17378
|
+
const deferred = yield* make15();
|
|
17197
17379
|
pending.set(id, { method, deferred });
|
|
17198
17380
|
yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
|
|
17199
17381
|
return yield* _await(deferred);
|
|
@@ -17267,14 +17449,14 @@ var herdrCoreOver = (transport) => ({
|
|
|
17267
17449
|
return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
|
|
17268
17450
|
};
|
|
17269
17451
|
const snapshot = { type: "snapshot", terminals: subscribed.terminals };
|
|
17270
|
-
return concat(
|
|
17452
|
+
return concat(make10(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
|
|
17271
17453
|
}))
|
|
17272
17454
|
});
|
|
17273
17455
|
var spawnedTransport = (env) => gen(function* () {
|
|
17274
17456
|
const spawner = yield* ChildProcessSpawner;
|
|
17275
17457
|
const input = yield* unbounded2();
|
|
17276
17458
|
const encoder = new TextEncoder;
|
|
17277
|
-
const handle = yield* spawner.spawn(
|
|
17459
|
+
const handle = yield* spawner.spawn(make2("herdr-core", ["connect"], {
|
|
17278
17460
|
extendEnv: false,
|
|
17279
17461
|
env,
|
|
17280
17462
|
stdin: fromQueue(input),
|
|
@@ -17305,7 +17487,7 @@ var updateHerdrCore2 = (options) => gen(function* () {
|
|
|
17305
17487
|
const spawner = yield* ChildProcessSpawner;
|
|
17306
17488
|
const env = coreEnv(options);
|
|
17307
17489
|
const run = (args) => gen(function* () {
|
|
17308
|
-
const handle = yield* spawner.spawn(
|
|
17490
|
+
const handle = yield* spawner.spawn(make2("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
|
|
17309
17491
|
const [stdout, stderr, exitCode] = yield* all3([
|
|
17310
17492
|
mkString(decodeText(handle.stdout)),
|
|
17311
17493
|
mkString(decodeText(handle.stderr)),
|
|
@@ -17331,7 +17513,7 @@ class CommandFailed2 extends TaggedError("CommandFailed") {
|
|
|
17331
17513
|
}
|
|
17332
17514
|
var runCommand2 = (command, args, options = {}) => gen(function* () {
|
|
17333
17515
|
const spawner = yield* ChildProcessSpawner;
|
|
17334
|
-
const handle = yield* spawner.spawn(
|
|
17516
|
+
const handle = yield* spawner.spawn(make2(command, args, {
|
|
17335
17517
|
stdin: "ignore",
|
|
17336
17518
|
...options.cwd === undefined ? undefined : { cwd: options.cwd },
|
|
17337
17519
|
...options.env === undefined ? undefined : { extendEnv: true, env: options.env }
|
|
@@ -17357,8 +17539,8 @@ var shellOutputTailChars2 = 64 * 1024;
|
|
|
17357
17539
|
var runProcess2 = (argv, options) => gen(function* () {
|
|
17358
17540
|
const spawner = yield* ChildProcessSpawner;
|
|
17359
17541
|
const [command, ...args] = argv;
|
|
17360
|
-
const handle = yield* spawner.spawn(
|
|
17361
|
-
stdin: options.stdin === undefined ? "ignore" :
|
|
17542
|
+
const handle = yield* spawner.spawn(make2(command, args, {
|
|
17543
|
+
stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
|
|
17362
17544
|
...options.cwd === undefined ? undefined : { cwd: options.cwd },
|
|
17363
17545
|
env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
|
|
17364
17546
|
}));
|
|
@@ -17879,4 +18061,4 @@ function serviceChecks(declaration) {
|
|
|
17879
18061
|
return decoded === undefined || decoded.services.length === 0 ? [] : [...new Set(decoded.checks ?? [])];
|
|
17880
18062
|
}
|
|
17881
18063
|
|
|
17882
|
-
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, verificationCap, PinnedImage, RunnerSettings, 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,
|
|
18064
|
+
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, decodeAnswerSchema, answerAccepts, answerProblem, answerValue, loopSafeTextMaxLength, recommendedDefault, isLoopSafeText, reportedModelName, RunDisplayStates, RunWaitUntils, calverNumbers, compareCalver, DeliveryMode, defaultDeployCommand, ProgramWorkUnit, MeasureSample, MeasureEvidence, TagVersions, compareCommitMax, commitMessageMax, commandTimeoutMillisDefault, commandTextLimit, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, verificationCap, PinnedImage, RunnerSettings, 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, stepLogDirFromEnv, 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, WorkAvailable, 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 };
|