@kitman-sh/cli 0.25.0 → 0.26.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-30s4vp2g.js → chunk-007n8acn.js} +1 -1
- package/dist/{chunk-1ync8395.js → chunk-1vnvmeqr.js} +3 -3
- package/dist/{chunk-4z5s9xtq.js → chunk-220vzyz9.js} +4 -4
- package/dist/{chunk-rbpn35g5.js → chunk-4qjfn1sa.js} +1 -1
- package/dist/{chunk-znhjs0t6.js → chunk-5kqt4bqp.js} +1 -1
- package/dist/{chunk-e491q405.js → chunk-7re3n1ze.js} +10 -10
- package/dist/{chunk-fmjgw6fw.js → chunk-83nqkmbj.js} +1 -1
- package/dist/{chunk-eshk0da5.js → chunk-8t2wcrvv.js} +2 -2
- package/dist/{chunk-3x8t5408.js → chunk-aax2a975.js} +24 -24
- package/dist/{chunk-j021bman.js → chunk-bsgvmq34.js} +60 -14
- package/dist/{chunk-63b19adg.js → chunk-dfvamygr.js} +113 -78
- package/dist/{chunk-61dmxexa.js → chunk-h2f26xbd.js} +28 -70
- package/dist/{chunk-sm340tvm.js → chunk-j4b1yvcd.js} +17 -26
- package/dist/{chunk-p34frxzr.js → chunk-ja48xvcs.js} +9 -9
- package/dist/{chunk-xk96db4j.js → chunk-ks4q040v.js} +6 -6
- package/dist/{chunk-yh0v42dk.js → chunk-mvqggmpj.js} +19 -19
- package/dist/{chunk-fyjet273.js → chunk-npfdbssf.js} +4 -4
- package/dist/{chunk-4qrb09w4.js → chunk-samxkpbz.js} +3 -3
- package/dist/{chunk-7wyejgj2.js → chunk-sc93ezsw.js} +22 -22
- package/dist/{chunk-5c1vqpf3.js → chunk-t6ynnbcb.js} +7 -7
- package/dist/{chunk-1hgsf81a.js → chunk-tsx0347c.js} +1 -1
- package/dist/{chunk-gf62mx34.js → chunk-vv7zg8rb.js} +5 -5
- package/dist/{chunk-q8e58p57.js → chunk-vz38kngm.js} +2 -2
- package/dist/{chunk-1phk7q49.js → chunk-xppw33hz.js} +125 -116
- package/dist/{chunk-py3zfen9.js → chunk-z05pkzhf.js} +10 -10
- package/dist/{chunk-zn881qsb.js → chunk-zysde2fp.js} +9 -9
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -203,7 +203,7 @@ import {
|
|
|
203
203
|
String4,
|
|
204
204
|
toCodecStringTree,
|
|
205
205
|
encodeUnknownJsonStringSync
|
|
206
|
-
} from "./chunk-
|
|
206
|
+
} from "./chunk-h2f26xbd.js";
|
|
207
207
|
|
|
208
208
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
|
|
209
209
|
var headUnsafe = (self) => {
|
|
@@ -252,15 +252,6 @@ var makeEquivalence = (equivalence) => {
|
|
|
252
252
|
return (self, that) => is(self, that) && is(that, self);
|
|
253
253
|
};
|
|
254
254
|
|
|
255
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
|
|
256
|
-
var BigInt2 = globalThis.BigInt;
|
|
257
|
-
var toNumber = (b) => {
|
|
258
|
-
if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
|
|
259
|
-
return none();
|
|
260
|
-
}
|
|
261
|
-
return some(Number(b));
|
|
262
|
-
};
|
|
263
|
-
|
|
264
255
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/ByteSize.js
|
|
265
256
|
var bigint0 = /* @__PURE__ */ BigInt(0);
|
|
266
257
|
var bigint1 = /* @__PURE__ */ BigInt(1);
|
|
@@ -1140,7 +1131,7 @@ var MutableRefProto = {
|
|
|
1140
1131
|
};
|
|
1141
1132
|
}
|
|
1142
1133
|
};
|
|
1143
|
-
var
|
|
1134
|
+
var make8 = (value) => {
|
|
1144
1135
|
const ref = Object.create(MutableRefProto);
|
|
1145
1136
|
ref.current = value;
|
|
1146
1137
|
return ref;
|
|
@@ -1301,7 +1292,7 @@ var remove = (self, value) => filter2(self, (v) => v !== value);
|
|
|
1301
1292
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/PubSub.js
|
|
1302
1293
|
var TypeId3 = "~effect/PubSub";
|
|
1303
1294
|
var SubscriptionTypeId = "~effect/PubSub/Subscription";
|
|
1304
|
-
var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false),
|
|
1295
|
+
var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false), make8(false), options.strategy(), make8(none())));
|
|
1305
1296
|
var unbounded = (options) => make5({
|
|
1306
1297
|
atomicPubSub: () => makeAtomicUnbounded(options),
|
|
1307
1298
|
strategy: () => new DroppingStrategy
|
|
@@ -1396,7 +1387,7 @@ var removeSubscribers = (subscribers, subscription, pollers) => {
|
|
|
1396
1387
|
subscribers.delete(subscription);
|
|
1397
1388
|
}
|
|
1398
1389
|
};
|
|
1399
|
-
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false),
|
|
1390
|
+
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false), make8(false), strategy, pubsub.replayWindow(), ended);
|
|
1400
1391
|
class UnboundedPubSub {
|
|
1401
1392
|
publisherHead = {
|
|
1402
1393
|
value: AbsentValue,
|
|
@@ -1813,7 +1804,7 @@ var QueueProto = {
|
|
|
1813
1804
|
};
|
|
1814
1805
|
}
|
|
1815
1806
|
};
|
|
1816
|
-
var
|
|
1807
|
+
var make9 = (options) => withFiber((fiber) => {
|
|
1817
1808
|
const self = Object.create(QueueProto);
|
|
1818
1809
|
self.dispatcher = fiber.currentDispatcher;
|
|
1819
1810
|
self.capacity = options?.capacity ?? Number.POSITIVE_INFINITY;
|
|
@@ -1828,14 +1819,14 @@ var make8 = (options) => withFiber((fiber) => {
|
|
|
1828
1819
|
};
|
|
1829
1820
|
return succeed2(self);
|
|
1830
1821
|
});
|
|
1831
|
-
var bounded = (capacity) =>
|
|
1822
|
+
var bounded = (capacity) => make9({
|
|
1832
1823
|
capacity
|
|
1833
1824
|
});
|
|
1834
|
-
var sliding = (capacity) =>
|
|
1825
|
+
var sliding = (capacity) => make9({
|
|
1835
1826
|
capacity,
|
|
1836
1827
|
strategy: "sliding"
|
|
1837
1828
|
});
|
|
1838
|
-
var unbounded2 = () =>
|
|
1829
|
+
var unbounded2 = () => make9();
|
|
1839
1830
|
var offer = /* @__PURE__ */ dual(2, (self, message) => suspend2(() => offerUnsafe(self, message) ? exitTrue : self.state._tag === "Open" && self.strategy === "suspend" ? offerOrWait(self, message) : exitFalse));
|
|
1840
1831
|
var offerUnsafe = (self, message) => {
|
|
1841
1832
|
if (self.state._tag !== "Open") {
|
|
@@ -2261,7 +2252,7 @@ var fromTransformBracket = (f) => fromTransform(fnUntraced(function* (upstream,
|
|
|
2261
2252
|
return onError(pull, onCause);
|
|
2262
2253
|
}));
|
|
2263
2254
|
var toTransform = (channel) => channel.transform;
|
|
2264
|
-
var asyncQueue = (scope, f, options) =>
|
|
2255
|
+
var asyncQueue = (scope, f, options) => make9({
|
|
2265
2256
|
capacity: options?.bufferSize,
|
|
2266
2257
|
strategy: options?.strategy
|
|
2267
2258
|
}).pipe(tap2((queue) => addFinalizer(scope, shutdown(queue))), tap2((queue) => provide(f(queue), scope).pipe(catchCause2((cause) => failCause(queue, cause)), forkIn(scope, {
|
|
@@ -2302,7 +2293,7 @@ var fromReadableStream2 = (options) => fromTransform((_, scope) => readableStrea
|
|
|
2302
2293
|
}));
|
|
2303
2294
|
var readableStreamToPullUnsafe = (options) => {
|
|
2304
2295
|
const reader = options.readable.getReader();
|
|
2305
|
-
const exit = options.exit ??
|
|
2296
|
+
const exit = options.exit ?? make8(undefined);
|
|
2306
2297
|
const pull = suspend3(() => {
|
|
2307
2298
|
if (exit.current)
|
|
2308
2299
|
return exit.current;
|
|
@@ -2956,7 +2947,7 @@ var release = (self, state) => {
|
|
|
2956
2947
|
};
|
|
2957
2948
|
|
|
2958
2949
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
|
|
2959
|
-
var
|
|
2950
|
+
var make10 = make6;
|
|
2960
2951
|
var get3 = get2;
|
|
2961
2952
|
|
|
2962
2953
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
|
|
@@ -2968,7 +2959,7 @@ var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatM
|
|
|
2968
2959
|
var toChannel2 = (stream) => stream.channel;
|
|
2969
2960
|
var callback = (f, options) => fromChannel2(callbackArray(f, options));
|
|
2970
2961
|
var empty2 = /* @__PURE__ */ fromChannel2(empty);
|
|
2971
|
-
var
|
|
2962
|
+
var make11 = (...values) => fromArray2(values);
|
|
2972
2963
|
var suspend = (stream) => {
|
|
2973
2964
|
const suspended = fromChannel2(suspend4(() => stream().channel));
|
|
2974
2965
|
suspendedStreams.set(suspended, stream);
|
|
@@ -3168,7 +3159,7 @@ var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (
|
|
|
3168
3159
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
|
|
3169
3160
|
var TypeId10 = "~effect/FileSystem";
|
|
3170
3161
|
var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
|
|
3171
|
-
var
|
|
3162
|
+
var make12 = (impl) => FileSystem.of({
|
|
3172
3163
|
...impl,
|
|
3173
3164
|
[TypeId10]: TypeId10,
|
|
3174
3165
|
glob: make2(impl),
|
|
@@ -3228,7 +3219,7 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
|
|
|
3228
3219
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
|
|
3229
3220
|
var TypeId11 = "~effect/Path";
|
|
3230
3221
|
var Path = /* @__PURE__ */ Service2("effect/Path");
|
|
3231
|
-
var
|
|
3222
|
+
var make13 = (impl) => Path.of({
|
|
3232
3223
|
...impl,
|
|
3233
3224
|
[TypeId11]: TypeId11,
|
|
3234
3225
|
resolveWithin(root, input) {
|
|
@@ -3303,7 +3294,7 @@ function makeProvider(load, mapInput) {
|
|
|
3303
3294
|
function makeSource(get, transform) {
|
|
3304
3295
|
return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
|
|
3305
3296
|
}
|
|
3306
|
-
function
|
|
3297
|
+
function make7(get) {
|
|
3307
3298
|
return makeSource(get, identityPath);
|
|
3308
3299
|
}
|
|
3309
3300
|
function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
@@ -3312,7 +3303,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
|
3312
3303
|
function fromEnvRecord(env, options) {
|
|
3313
3304
|
const preserveEmptyStrings = options?.preserveEmptyStrings === true;
|
|
3314
3305
|
const trie = buildEnvTrie(env);
|
|
3315
|
-
return
|
|
3306
|
+
return make7((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
|
|
3316
3307
|
}
|
|
3317
3308
|
function fromEnv(options) {
|
|
3318
3309
|
const env = options?.env ?? {
|
|
@@ -3644,4 +3635,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
|
|
|
3644
3635
|
...argv
|
|
3645
3636
|
];
|
|
3646
3637
|
|
|
3647
|
-
export { map, makeEquivalence,
|
|
3638
|
+
export { map, makeEquivalence, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2, make8, unbounded, publishUnsafe, make9, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe3, fromTransform, mapDone, isSink, fromChannel, drain, make10, get3, isStream, fromChannel2, callback, empty2, make11, suspend, fail2, fromQueue, fromPubSub, fromReadableStream, unwrap, map2, tap, drainFork, concat, merge2, filter, catchCause, tapError, mapError, take2, mapAccum, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make12, FileTypeId, WatchBackend, Path, make13, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, operatorConfigHome, tempDirectoryScoped, harnessesUnsupportedInSrt2, harnessesUnsupportedInDocker2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
|
|
@@ -138,12 +138,7 @@ import {
|
|
|
138
138
|
toJsonSchemaDocument,
|
|
139
139
|
toCodecJson,
|
|
140
140
|
Json
|
|
141
|
-
} from "./chunk-
|
|
142
|
-
import {
|
|
143
|
-
getCurrent,
|
|
144
|
-
runForEach,
|
|
145
|
-
FileSystem
|
|
146
|
-
} from "./chunk-sm340tvm.js";
|
|
141
|
+
} from "./chunk-h2f26xbd.js";
|
|
147
142
|
import {
|
|
148
143
|
currentTimeMillis,
|
|
149
144
|
WebCrypto,
|
|
@@ -181,18 +176,23 @@ import {
|
|
|
181
176
|
StepManifest,
|
|
182
177
|
KitSetup,
|
|
183
178
|
RunnerRpcError
|
|
184
|
-
} from "./chunk-
|
|
179
|
+
} from "./chunk-xppw33hz.js";
|
|
180
|
+
import {
|
|
181
|
+
getCurrent,
|
|
182
|
+
runForEach,
|
|
183
|
+
FileSystem
|
|
184
|
+
} from "./chunk-j4b1yvcd.js";
|
|
185
185
|
import {
|
|
186
186
|
splitQuestionOptions,
|
|
187
187
|
recommendationProblem,
|
|
188
188
|
questionAdvice
|
|
189
|
-
} from "./chunk-
|
|
189
|
+
} from "./chunk-tsx0347c.js";
|
|
190
190
|
import {
|
|
191
191
|
guard,
|
|
192
192
|
Id,
|
|
193
193
|
Timestamp,
|
|
194
194
|
ActorType
|
|
195
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-4qjfn1sa.js";
|
|
196
196
|
var __defProp = Object.defineProperty;
|
|
197
197
|
var __returnValue = (v) => v;
|
|
198
198
|
function __exportSetter(name, newValue) {
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
runnerRpcUrl2,
|
|
5
5
|
makeRunnerRpcClient2,
|
|
6
6
|
makeProgramRpcClient2
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import"./chunk-
|
|
9
|
-
import"./chunk-
|
|
10
|
-
import"./chunk-
|
|
11
|
-
import"./chunk-
|
|
12
|
-
import"./chunk-
|
|
7
|
+
} from "./chunk-t6ynnbcb.js";
|
|
8
|
+
import"./chunk-vv7zg8rb.js";
|
|
9
|
+
import"./chunk-xppw33hz.js";
|
|
10
|
+
import"./chunk-4qjfn1sa.js";
|
|
11
|
+
import"./chunk-j4b1yvcd.js";
|
|
12
|
+
import"./chunk-h2f26xbd.js";
|
|
13
13
|
export {
|
|
14
14
|
makeProgramRpcClient2 as makeProgramRpcClient,
|
|
15
15
|
makeRunnerRpcClient2 as makeRunnerRpcClient,
|
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
decodeText,
|
|
4
|
-
mkString,
|
|
5
|
-
FileSystem,
|
|
6
|
-
Path,
|
|
7
|
-
withDefault,
|
|
8
|
-
String2
|
|
9
|
-
} from "./chunk-sm340tvm.js";
|
|
10
2
|
import {
|
|
11
3
|
isString,
|
|
12
4
|
isObject,
|
|
@@ -43,7 +35,7 @@ import {
|
|
|
43
35
|
toCodecJson,
|
|
44
36
|
Json,
|
|
45
37
|
encodePrettyJsonString
|
|
46
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-h2f26xbd.js";
|
|
47
39
|
import {
|
|
48
40
|
SecureRandom,
|
|
49
41
|
layerWebCrypto,
|
|
@@ -60,26 +52,34 @@ import {
|
|
|
60
52
|
KitDeclarations,
|
|
61
53
|
kitmanMcpServer,
|
|
62
54
|
RunnerRpcProtocolVersion
|
|
63
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-xppw33hz.js";
|
|
56
|
+
import {
|
|
57
|
+
decodeText,
|
|
58
|
+
mkString,
|
|
59
|
+
FileSystem,
|
|
60
|
+
Path,
|
|
61
|
+
withDefault,
|
|
62
|
+
String2
|
|
63
|
+
} from "./chunk-j4b1yvcd.js";
|
|
64
64
|
import {
|
|
65
65
|
Packument,
|
|
66
66
|
tarballMatches
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-1vnvmeqr.js";
|
|
68
68
|
import {
|
|
69
69
|
stepDefinedTwice,
|
|
70
70
|
hostSteps,
|
|
71
71
|
exports_activities,
|
|
72
72
|
describeFlag,
|
|
73
73
|
Described
|
|
74
|
-
} from "./chunk-
|
|
75
|
-
import"./chunk-
|
|
76
|
-
import"./chunk-
|
|
74
|
+
} from "./chunk-ja48xvcs.js";
|
|
75
|
+
import"./chunk-t6ynnbcb.js";
|
|
76
|
+
import"./chunk-tsx0347c.js";
|
|
77
77
|
import {
|
|
78
78
|
ChildProcessSpawner,
|
|
79
|
-
|
|
80
|
-
} from "./chunk-
|
|
81
|
-
import"./chunk-
|
|
82
|
-
import"./chunk-
|
|
79
|
+
make3
|
|
80
|
+
} from "./chunk-bsgvmq34.js";
|
|
81
|
+
import"./chunk-vv7zg8rb.js";
|
|
82
|
+
import"./chunk-4qjfn1sa.js";
|
|
83
83
|
|
|
84
84
|
// packages/sdk/src/build/outline/graph.ts
|
|
85
85
|
import {
|
|
@@ -3891,7 +3891,7 @@ var ConfigAgents = Record(String4, Struct({
|
|
|
3891
3891
|
}));
|
|
3892
3892
|
var run = (command, args, cwd) => gen(function* () {
|
|
3893
3893
|
const spawner = yield* ChildProcessSpawner;
|
|
3894
|
-
const handle = yield* spawner.spawn(
|
|
3894
|
+
const handle = yield* spawner.spawn(make3(command, args, { cwd, stdin: "ignore" }));
|
|
3895
3895
|
const [stdout, stderr, exitCode] = yield* all3([
|
|
3896
3896
|
mkString(decodeText(handle.stdout)),
|
|
3897
3897
|
mkString(decodeText(handle.stderr)),
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
decoded2,
|
|
8
8
|
readOpencode2,
|
|
9
9
|
runOpencodeReader2
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import"./chunk-
|
|
12
|
-
import"./chunk-
|
|
13
|
-
import"./chunk-
|
|
10
|
+
} from "./chunk-7re3n1ze.js";
|
|
11
|
+
import"./chunk-bsgvmq34.js";
|
|
12
|
+
import"./chunk-j4b1yvcd.js";
|
|
13
|
+
import"./chunk-h2f26xbd.js";
|
|
14
14
|
export {
|
|
15
15
|
decoded2 as decoded,
|
|
16
16
|
decodedOption2 as decodedOption,
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
opaqueTunnelRefusal2,
|
|
5
5
|
isOpaqueConnectReason2,
|
|
6
6
|
runSrtStep2
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import"./chunk-
|
|
9
|
-
import"./chunk-
|
|
7
|
+
} from "./chunk-vz38kngm.js";
|
|
8
|
+
import"./chunk-4qjfn1sa.js";
|
|
9
|
+
import"./chunk-h2f26xbd.js";
|
|
10
10
|
export {
|
|
11
11
|
isOpaqueConnectReason2 as isOpaqueConnectReason,
|
|
12
12
|
opaqueTunnelRefusal2 as opaqueTunnelRefusal,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
succeed,
|
|
13
13
|
isSuccess,
|
|
14
14
|
TaggedError,
|
|
15
|
-
|
|
15
|
+
make16,
|
|
16
16
|
_await,
|
|
17
17
|
fail5,
|
|
18
18
|
succeed5,
|
|
@@ -108,7 +108,7 @@ import {
|
|
|
108
108
|
decodeJsonStringOption,
|
|
109
109
|
encodeJsonStringSync,
|
|
110
110
|
encodePrettyJsonString
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-h2f26xbd.js";
|
|
112
112
|
import {
|
|
113
113
|
tap,
|
|
114
114
|
mapError,
|
|
@@ -120,7 +120,7 @@ import {
|
|
|
120
120
|
withDefault,
|
|
121
121
|
option,
|
|
122
122
|
String2
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-j4b1yvcd.js";
|
|
124
124
|
import {
|
|
125
125
|
currentTimeMillis,
|
|
126
126
|
SecureRandom,
|
|
@@ -185,7 +185,7 @@ import {
|
|
|
185
185
|
digestSha256,
|
|
186
186
|
sha256Hasher,
|
|
187
187
|
raw,
|
|
188
|
-
|
|
188
|
+
make5,
|
|
189
189
|
get,
|
|
190
190
|
put,
|
|
191
191
|
HttpClient,
|
|
@@ -251,15 +251,15 @@ import {
|
|
|
251
251
|
harnessNames,
|
|
252
252
|
herdrRunnerCapabilities2,
|
|
253
253
|
declaredChecks
|
|
254
|
-
} from "./chunk-
|
|
254
|
+
} from "./chunk-xppw33hz.js";
|
|
255
255
|
import {
|
|
256
256
|
ChildProcessSpawner,
|
|
257
|
-
|
|
258
|
-
} from "./chunk-
|
|
257
|
+
make3
|
|
258
|
+
} from "./chunk-bsgvmq34.js";
|
|
259
259
|
import {
|
|
260
260
|
Id,
|
|
261
261
|
Timestamp
|
|
262
|
-
} from "./chunk-
|
|
262
|
+
} from "./chunk-4qjfn1sa.js";
|
|
263
263
|
|
|
264
264
|
// apps/cli/src/cli-error.ts
|
|
265
265
|
function cliErrorCode(error, status) {
|
|
@@ -1326,10 +1326,10 @@ var sandboxMissing = (sandbox, missing) => ({
|
|
|
1326
1326
|
var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
|
|
1327
1327
|
var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
|
|
1328
1328
|
var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
|
|
1329
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
1329
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-220vzyz9.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
|
|
1330
1330
|
});
|
|
1331
1331
|
var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
|
|
1332
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
1332
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-220vzyz9.js")), (module) => module.updateHerdrCore(options))
|
|
1333
1333
|
});
|
|
1334
1334
|
var herdrCoreMissing = (error) => {
|
|
1335
1335
|
if (isTagged(error, "HerdrCoreMissing"))
|
|
@@ -1773,7 +1773,7 @@ var syncTargets = (harness) => gen(function* () {
|
|
|
1773
1773
|
});
|
|
1774
1774
|
var syncKits = (input) => gen(function* () {
|
|
1775
1775
|
const fs = yield* FileSystem;
|
|
1776
|
-
const { syncKitSetup } = yield* promise(() => import("./chunk-
|
|
1776
|
+
const { syncKitSetup } = yield* promise(() => import("./chunk-z05pkzhf.js"));
|
|
1777
1777
|
const harnesses = yield* syncTargets(input.harness);
|
|
1778
1778
|
const chain = yield* input.client.getKitChain(input.workspaceId);
|
|
1779
1779
|
for (const { name, problem } of chain.skipped)
|
|
@@ -2290,7 +2290,7 @@ var ServiceManager = Reference("kitman/cli/ServiceManager", {
|
|
|
2290
2290
|
run: (command, args) => runCommand2(command, args),
|
|
2291
2291
|
attach: (command, args) => gen(function* () {
|
|
2292
2292
|
const spawner = yield* ChildProcessSpawner;
|
|
2293
|
-
const handle = yield* spawner.spawn(
|
|
2293
|
+
const handle = yield* spawner.spawn(make3(command, args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" }));
|
|
2294
2294
|
const exitCode = yield* handle.exitCode;
|
|
2295
2295
|
if (exitCode !== 0)
|
|
2296
2296
|
return yield* new CommandFailed2({ command, reason: `exit code ${exitCode}` });
|
|
@@ -3268,7 +3268,7 @@ var shipped_steps_generated_default = {
|
|
|
3268
3268
|
};
|
|
3269
3269
|
|
|
3270
3270
|
// apps/cli/src/scaffold-files.ts
|
|
3271
|
-
var cliVersion = "0.
|
|
3271
|
+
var cliVersion = "0.26.0";
|
|
3272
3272
|
var shippedLoopSteps = new Map(Object.entries(shipped_steps_generated_default));
|
|
3273
3273
|
var loopSteps = (loop) => shippedLoopSteps.get(loop) ?? [];
|
|
3274
3274
|
var replacedStep = (loop) => loopSteps(loop).find((step) => step.from === defaultKitName && step.exported?.startsWith("steps.") === true);
|
|
@@ -3533,7 +3533,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
|
|
|
3533
3533
|
|
|
3534
3534
|
// apps/cli/src/commands.ts
|
|
3535
3535
|
var ClientId = "kitman-cli";
|
|
3536
|
-
var agentRuntime = promise(() => import("./chunk-
|
|
3536
|
+
var agentRuntime = promise(() => import("./chunk-dfvamygr.js"));
|
|
3537
3537
|
var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
|
|
3538
3538
|
defaultValue: () => gen(function* () {
|
|
3539
3539
|
const tui = yield* tryPromise({
|
|
@@ -5072,7 +5072,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
|
|
|
5072
5072
|
});
|
|
5073
5073
|
var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
|
|
5074
5074
|
defaultValue: () => (options) => gen(function* () {
|
|
5075
|
-
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-
|
|
5075
|
+
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-ks4q040v.js"));
|
|
5076
5076
|
return yield* makeRunnerRpcClient({
|
|
5077
5077
|
runnerId: options.runnerId,
|
|
5078
5078
|
bearer: options.bearer,
|
|
@@ -5385,7 +5385,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
5385
5385
|
yield* controlPlane.client.listRepoBindings(runner.workspaceId).pipe(flatMap3(({ items }) => forEach(items.filter((binding) => binding.status === "active" && (teamId === undefined || binding.teamId === teamId)), (repoBinding) => map9(checkouts.reaches(repoBinding), (reachable) => ({ repoBinding, reachable })), { concurrency: 4 })), tap2((probed) => sync2(() => reached = probed)), catch_((error) => logWarning("runner_repository_probe_failed", error.message)), flatMap3(() => sleep(reached.some((probe) => !probe.reachable) ? repositoryRetryInterval : repositoryProbeInterval)), forever, forkScoped);
|
|
5386
5386
|
yield* suspend3(() => sleep(ownerLogin.expired() ? ownerLoginRetryInterval : ownerLoginInterval)).pipe(andThen2(checkOwnerLogin), forever, forkScoped);
|
|
5387
5387
|
const platform = yield* context();
|
|
5388
|
-
const updated = yield*
|
|
5388
|
+
const updated = yield* make16();
|
|
5389
5389
|
const scope = yield* scope2;
|
|
5390
5390
|
const startUpdate = (update) => update.pipe(catch_((error) => andThen2(restartOntoUpdate(input.runnerId), fail5(updated, error))), provideContext2(platform), forkIn(scope), asVoid);
|
|
5391
5391
|
const refusedForProtocol = container ? updater.stopWhenDrained(new RunnerStopped({ problem: updateRequired })).pipe(catch_((stopped) => fail5(updated, stopped)), forkIn(scope), asVoid) : startUpdate(updater.updateRequired);
|
|
@@ -5645,7 +5645,7 @@ function mcpCommand(args) {
|
|
|
5645
5645
|
if (command.action === "run") {
|
|
5646
5646
|
if (command.args.length > 0)
|
|
5647
5647
|
return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
|
|
5648
|
-
const { runMcpServerCommand } = yield* promise(() => import("./chunk-
|
|
5648
|
+
const { runMcpServerCommand } = yield* promise(() => import("./chunk-aax2a975.js"));
|
|
5649
5649
|
return yield* runMcpServerCommand({ flags: command.flags });
|
|
5650
5650
|
}
|
|
5651
5651
|
if (command.action !== "setup")
|
|
@@ -6145,7 +6145,7 @@ function programLoopCommand(command) {
|
|
|
6145
6145
|
return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
|
|
6146
6146
|
});
|
|
6147
6147
|
}
|
|
6148
|
-
var docsModule = promise(() => import("./chunk-
|
|
6148
|
+
var docsModule = promise(() => import("./chunk-83nqkmbj.js"));
|
|
6149
6149
|
function docsCommand(args) {
|
|
6150
6150
|
return gen(function* () {
|
|
6151
6151
|
const command = parseCommand(args);
|
|
@@ -7149,7 +7149,7 @@ function changeRequestCommand(args) {
|
|
|
7149
7149
|
yield* log(command.action === "approve" ? `Approved ${short} of ${changeRequest.title}. A Run waiting on approval of ${short} resumes; one waiting on another head does not.` : `Requested changes to ${short} of ${changeRequest.title}`);
|
|
7150
7150
|
});
|
|
7151
7151
|
}
|
|
7152
|
-
var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-
|
|
7152
|
+
var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-mvqggmpj.js")), (build) => build.readOutlines(directory)).pipe(mapError2((error) => new CliError({ message: error.message })));
|
|
7153
7153
|
var loopOutline = (command) => gen(function* () {
|
|
7154
7154
|
const path = yield* Path;
|
|
7155
7155
|
const loop = requiredArg(command, "a Loop id");
|
|
@@ -7169,9 +7169,9 @@ var loopOutline = (command) => gen(function* () {
|
|
|
7169
7169
|
`).pipe(mapError2((error) => new CliError({ message: error.message })));
|
|
7170
7170
|
yield* log(`Wrote the outline of ${loop} to ${out}`);
|
|
7171
7171
|
});
|
|
7172
|
-
var KitWriter = map9(promise(() => import("./chunk-
|
|
7172
|
+
var KitWriter = map9(promise(() => import("./chunk-mvqggmpj.js")), (build) => build.writeKit);
|
|
7173
7173
|
var KitBuilder = Reference("kitman/cli/KitBuilder", {
|
|
7174
|
-
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-
|
|
7174
|
+
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-mvqggmpj.js")), (build) => build.buildKit(directory))
|
|
7175
7175
|
});
|
|
7176
7176
|
var uploadKit = (client, workspaceId, built) => gen(function* () {
|
|
7177
7177
|
yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
|
|
@@ -7950,7 +7950,7 @@ function downloadPresignedAsset(download, outputPath) {
|
|
|
7950
7950
|
return gen(function* () {
|
|
7951
7951
|
const fs = yield* FileSystem;
|
|
7952
7952
|
const failed = (cause) => new CliError({ message: `Asset download failed: ${String(cause)}` });
|
|
7953
|
-
const response = yield* send(
|
|
7953
|
+
const response = yield* send(make5(download.method)(download.url), failed);
|
|
7954
7954
|
if (response.status < 200 || response.status >= 300)
|
|
7955
7955
|
return yield* new CliError({ message: `Asset download failed with ${response.status}` });
|
|
7956
7956
|
const body = yield* response.arrayBuffer.pipe(mapError2((error) => failed(error.message)));
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
gen,
|
|
7
7
|
flatMap3,
|
|
8
8
|
provideContext2
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-h2f26xbd.js";
|
|
10
10
|
import {
|
|
11
11
|
runForEach
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-j4b1yvcd.js";
|
|
13
13
|
import {
|
|
14
14
|
WebSocketConstructor,
|
|
15
15
|
layerWebSocketConstructorGlobal,
|
|
@@ -19,13 +19,13 @@ import {
|
|
|
19
19
|
RunnerReplicaRpcs,
|
|
20
20
|
RunnerRunFileRpcs,
|
|
21
21
|
ProgramRpcs
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-xppw33hz.js";
|
|
23
23
|
import {
|
|
24
24
|
layerJson,
|
|
25
|
-
|
|
25
|
+
make4,
|
|
26
26
|
withHeaders,
|
|
27
27
|
layerProtocolSocket
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-vv7zg8rb.js";
|
|
29
29
|
|
|
30
30
|
// packages/live/src/rpc/runner-client.ts
|
|
31
31
|
var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
|
|
@@ -46,7 +46,7 @@ var authorizer = (options) => (call) => flatMap3(options.bearer, (token) => with
|
|
|
46
46
|
var RunnerProcessRpcs = RunnerReplicaRpcs.merge(RunnerRunFileRpcs);
|
|
47
47
|
var makeRunnerRpcClient2 = (options) => gen(function* () {
|
|
48
48
|
const protocol = yield* build(options.protocol);
|
|
49
|
-
const client = yield*
|
|
49
|
+
const client = yield* make4(RunnerProcessRpcs).pipe(provideContext2(protocol));
|
|
50
50
|
const authorized = authorizer(options);
|
|
51
51
|
return {
|
|
52
52
|
claim: (input) => authorized(client.Claim(input)),
|
|
@@ -74,7 +74,7 @@ var makeRunnerRpcClient2 = (options) => gen(function* () {
|
|
|
74
74
|
});
|
|
75
75
|
var makeProgramRpcClient2 = (options) => gen(function* () {
|
|
76
76
|
const protocol = yield* build(options.protocol);
|
|
77
|
-
const client = yield*
|
|
77
|
+
const client = yield* make4(ProgramRpcs).pipe(provideContext2(protocol));
|
|
78
78
|
const authorized = authorizer(options);
|
|
79
79
|
return {
|
|
80
80
|
recordActivity: (input) => authorized(client.RecordActivity(input)),
|
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
Defect,
|
|
97
97
|
Exit,
|
|
98
98
|
toCodecJson
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-h2f26xbd.js";
|
|
100
100
|
import {
|
|
101
101
|
interrupt,
|
|
102
102
|
getCurrent,
|
|
@@ -108,7 +108,7 @@ import {
|
|
|
108
108
|
shutdownUnsafe,
|
|
109
109
|
fromQueue,
|
|
110
110
|
unwrap
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-j4b1yvcd.js";
|
|
112
112
|
import {
|
|
113
113
|
Clock,
|
|
114
114
|
empty,
|
|
@@ -123,7 +123,7 @@ import {
|
|
|
123
123
|
ParseOptions,
|
|
124
124
|
RpcClientDefect,
|
|
125
125
|
RpcClientError
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-xppw33hz.js";
|
|
127
127
|
|
|
128
128
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/workers/Transferable.js
|
|
129
129
|
class Collector extends (/* @__PURE__ */ Service2()("effect/workers/Transferable/Collector")) {
|
|
@@ -483,7 +483,7 @@ var makeNoSerialization = /* @__PURE__ */ fnUntraced(function* (group, options)
|
|
|
483
483
|
};
|
|
484
484
|
});
|
|
485
485
|
var clientIdCounter = 0;
|
|
486
|
-
var
|
|
486
|
+
var make4 = /* @__PURE__ */ fnUntraced(function* (group, options) {
|
|
487
487
|
const clientId = clientIdCounter++;
|
|
488
488
|
const {
|
|
489
489
|
codecFor,
|
|
@@ -829,4 +829,4 @@ var layerProtocolSocket = (options) => effect(Protocol)(makeProtocolSocket(optio
|
|
|
829
829
|
class ConnectionHooks extends (/* @__PURE__ */ Service2()("effect/rpc/RpcClient/ConnectionHooks")) {
|
|
830
830
|
}
|
|
831
831
|
|
|
832
|
-
export { layerJson,
|
|
832
|
+
export { layerJson, make4, withHeaders, layerProtocolSocket, ConnectionHooks };
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
ArraySchema,
|
|
14
14
|
decodeJsonStringOption,
|
|
15
15
|
encodeUnknownJsonStringSync
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-h2f26xbd.js";
|
|
17
17
|
import {
|
|
18
18
|
replaceSecretReferences,
|
|
19
19
|
secretReferencesIn
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-4qjfn1sa.js";
|
|
21
21
|
|
|
22
22
|
// packages/agent-runtime/src/srt-step.ts
|
|
23
23
|
import { SandboxRuntimeConfigSchema } from "@anthropic-ai/sandbox-runtime";
|