@kitman-sh/cli 0.14.1 → 0.14.2
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-5jqqhvv2.js → chunk-0r9tp5pz.js} +4 -4
- package/dist/{chunk-wttgq85b.js → chunk-1jabs81x.js} +70 -28
- package/dist/{chunk-0axm9scx.js → chunk-24j1cmsm.js} +23 -23
- package/dist/{chunk-pyss20q2.js → chunk-39pdxhcv.js} +3 -3
- package/dist/{chunk-jnpv483d.js → chunk-3csj1ve1.js} +4 -4
- package/dist/{chunk-fch7pjzh.js → chunk-4xez238w.js} +2 -2
- package/dist/{chunk-27k0egfz.js → chunk-80vwvv5x.js} +39 -39
- package/dist/{chunk-rbbh4f56.js → chunk-avhqm9p0.js} +17 -17
- package/dist/{chunk-cwdrhsvk.js → chunk-e024f8af.js} +2 -2
- package/dist/{chunk-77jk3v8v.js → chunk-ffq8vvvx.js} +7 -7
- package/dist/{chunk-nvncrs4n.js → chunk-ge9qjp6s.js} +4 -4
- package/dist/{chunk-kwkh8hxt.js → chunk-gwz39037.js} +1 -1
- package/dist/{chunk-c80dvhxf.js → chunk-h6kd80nr.js} +1 -1
- package/dist/{chunk-a9srrnsk.js → chunk-hza25m2e.js} +23 -23
- package/dist/{chunk-jp7cjnng.js → chunk-jzfy127y.js} +4 -4
- package/dist/{chunk-enabwyrn.js → chunk-m9x7feh0.js} +7 -7
- package/dist/{chunk-5x44qb6d.js → chunk-q4ch3t9q.js} +6 -6
- package/dist/{chunk-4qpmjrd2.js → chunk-qqmxhk9w.js} +14 -60
- package/dist/{chunk-f1y7ysjg.js → chunk-ryxff0xk.js} +108 -108
- package/dist/{chunk-vt8aqeby.js → chunk-scdr623z.js} +1 -1
- package/dist/{chunk-gvs5fcvy.js → chunk-t9chwen8.js} +2 -2
- package/dist/{chunk-vx4qe0fe.js → chunk-v86jpzpr.js} +7 -7
- package/dist/{chunk-93xj74qp.js → chunk-vfw3xn1e.js} +3 -3
- package/dist/{chunk-zr59g5bk.js → chunk-yfag1eey.js} +5 -5
- package/dist/{chunk-zw2mzy00.js → chunk-z7c2ndfg.js} +11 -11
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -201,7 +201,7 @@ import {
|
|
|
201
201
|
String4,
|
|
202
202
|
toCodecStringTree,
|
|
203
203
|
encodeUnknownJsonStringSync
|
|
204
|
-
} from "./chunk-
|
|
204
|
+
} from "./chunk-1jabs81x.js";
|
|
205
205
|
|
|
206
206
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
|
|
207
207
|
var headUnsafe = (self) => {
|
|
@@ -1129,7 +1129,7 @@ var MutableRefProto = {
|
|
|
1129
1129
|
};
|
|
1130
1130
|
}
|
|
1131
1131
|
};
|
|
1132
|
-
var
|
|
1132
|
+
var make7 = (value) => {
|
|
1133
1133
|
const ref = Object.create(MutableRefProto);
|
|
1134
1134
|
ref.current = value;
|
|
1135
1135
|
return ref;
|
|
@@ -1290,7 +1290,7 @@ var remove = (self, value) => filter2(self, (v) => v !== value);
|
|
|
1290
1290
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/PubSub.js
|
|
1291
1291
|
var TypeId3 = "~effect/PubSub";
|
|
1292
1292
|
var SubscriptionTypeId = "~effect/PubSub/Subscription";
|
|
1293
|
-
var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false),
|
|
1293
|
+
var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false), make7(false), options.strategy(), make7(none())));
|
|
1294
1294
|
var unbounded = (options) => make5({
|
|
1295
1295
|
atomicPubSub: () => makeAtomicUnbounded(options),
|
|
1296
1296
|
strategy: () => new DroppingStrategy
|
|
@@ -1385,7 +1385,7 @@ var removeSubscribers = (subscribers, subscription, pollers) => {
|
|
|
1385
1385
|
subscribers.delete(subscription);
|
|
1386
1386
|
}
|
|
1387
1387
|
};
|
|
1388
|
-
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false),
|
|
1388
|
+
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false), make7(false), strategy, pubsub.replayWindow(), ended);
|
|
1389
1389
|
class UnboundedPubSub {
|
|
1390
1390
|
publisherHead = {
|
|
1391
1391
|
value: AbsentValue,
|
|
@@ -1802,7 +1802,7 @@ var QueueProto = {
|
|
|
1802
1802
|
};
|
|
1803
1803
|
}
|
|
1804
1804
|
};
|
|
1805
|
-
var
|
|
1805
|
+
var make8 = (options) => withFiber((fiber) => {
|
|
1806
1806
|
const self = Object.create(QueueProto);
|
|
1807
1807
|
self.dispatcher = fiber.currentDispatcher;
|
|
1808
1808
|
self.capacity = options?.capacity ?? Number.POSITIVE_INFINITY;
|
|
@@ -1817,14 +1817,14 @@ var make9 = (options) => withFiber((fiber) => {
|
|
|
1817
1817
|
};
|
|
1818
1818
|
return succeed2(self);
|
|
1819
1819
|
});
|
|
1820
|
-
var bounded = (capacity) =>
|
|
1820
|
+
var bounded = (capacity) => make8({
|
|
1821
1821
|
capacity
|
|
1822
1822
|
});
|
|
1823
|
-
var sliding = (capacity) =>
|
|
1823
|
+
var sliding = (capacity) => make8({
|
|
1824
1824
|
capacity,
|
|
1825
1825
|
strategy: "sliding"
|
|
1826
1826
|
});
|
|
1827
|
-
var unbounded2 = () =>
|
|
1827
|
+
var unbounded2 = () => make8();
|
|
1828
1828
|
var offer = /* @__PURE__ */ dual(2, (self, message) => suspend2(() => offerUnsafe(self, message) ? exitTrue : self.state._tag === "Open" && self.strategy === "suspend" ? offerOrWait(self, message) : exitFalse));
|
|
1829
1829
|
var offerUnsafe = (self, message) => {
|
|
1830
1830
|
if (self.state._tag !== "Open") {
|
|
@@ -2250,7 +2250,7 @@ var fromTransformBracket = (f) => fromTransform(fnUntraced(function* (upstream,
|
|
|
2250
2250
|
return onError(pull, onCause);
|
|
2251
2251
|
}));
|
|
2252
2252
|
var toTransform = (channel) => channel.transform;
|
|
2253
|
-
var asyncQueue = (scope, f, options) =>
|
|
2253
|
+
var asyncQueue = (scope, f, options) => make8({
|
|
2254
2254
|
capacity: options?.bufferSize,
|
|
2255
2255
|
strategy: options?.strategy
|
|
2256
2256
|
}).pipe(tap2((queue) => addFinalizer(scope, shutdown(queue))), tap2((queue) => provide(f(queue), scope).pipe(catchCause2((cause) => failCause(queue, cause)), forkIn(scope, {
|
|
@@ -2291,7 +2291,7 @@ var fromReadableStream2 = (options) => fromTransform((_, scope) => readableStrea
|
|
|
2291
2291
|
}));
|
|
2292
2292
|
var readableStreamToPullUnsafe = (options) => {
|
|
2293
2293
|
const reader = options.readable.getReader();
|
|
2294
|
-
const exit = options.exit ??
|
|
2294
|
+
const exit = options.exit ?? make7(undefined);
|
|
2295
2295
|
const pull = suspend3(() => {
|
|
2296
2296
|
if (exit.current)
|
|
2297
2297
|
return exit.current;
|
|
@@ -2905,7 +2905,7 @@ var release = (self, state) => {
|
|
|
2905
2905
|
};
|
|
2906
2906
|
|
|
2907
2907
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
|
|
2908
|
-
var
|
|
2908
|
+
var make9 = make6;
|
|
2909
2909
|
var get3 = get2;
|
|
2910
2910
|
|
|
2911
2911
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
|
|
@@ -2917,7 +2917,7 @@ var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatM
|
|
|
2917
2917
|
var toChannel2 = (stream) => stream.channel;
|
|
2918
2918
|
var callback = (f, options) => fromChannel2(callbackArray(f, options));
|
|
2919
2919
|
var empty2 = /* @__PURE__ */ fromChannel2(empty);
|
|
2920
|
-
var
|
|
2920
|
+
var make10 = (...values) => fromArray2(values);
|
|
2921
2921
|
var suspend = (stream) => {
|
|
2922
2922
|
const suspended = fromChannel2(suspend4(() => stream().channel));
|
|
2923
2923
|
suspendedStreams.set(suspended, stream);
|
|
@@ -3100,7 +3100,7 @@ var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (
|
|
|
3100
3100
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
|
|
3101
3101
|
var TypeId10 = "~effect/FileSystem";
|
|
3102
3102
|
var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
|
|
3103
|
-
var
|
|
3103
|
+
var make11 = (impl) => FileSystem.of({
|
|
3104
3104
|
...impl,
|
|
3105
3105
|
[TypeId10]: TypeId10,
|
|
3106
3106
|
glob: make2(impl),
|
|
@@ -3160,7 +3160,7 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
|
|
|
3160
3160
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
|
|
3161
3161
|
var TypeId11 = "~effect/Path";
|
|
3162
3162
|
var Path = /* @__PURE__ */ Service2("effect/Path");
|
|
3163
|
-
var
|
|
3163
|
+
var make12 = (impl) => Path.of({
|
|
3164
3164
|
...impl,
|
|
3165
3165
|
[TypeId11]: TypeId11,
|
|
3166
3166
|
resolveWithin(root, input) {
|
|
@@ -3235,7 +3235,7 @@ function makeProvider(load, mapInput) {
|
|
|
3235
3235
|
function makeSource(get, transform) {
|
|
3236
3236
|
return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
|
|
3237
3237
|
}
|
|
3238
|
-
function
|
|
3238
|
+
function make13(get) {
|
|
3239
3239
|
return makeSource(get, identityPath);
|
|
3240
3240
|
}
|
|
3241
3241
|
function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
@@ -3244,7 +3244,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
|
3244
3244
|
function fromEnvRecord(env, options) {
|
|
3245
3245
|
const preserveEmptyStrings = options?.preserveEmptyStrings === true;
|
|
3246
3246
|
const trie = buildEnvTrie(env);
|
|
3247
|
-
return
|
|
3247
|
+
return make13((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
|
|
3248
3248
|
}
|
|
3249
3249
|
function fromEnv(options) {
|
|
3250
3250
|
const env = options?.env ?? {
|
|
@@ -3575,4 +3575,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
|
|
|
3575
3575
|
...argv
|
|
3576
3576
|
];
|
|
3577
3577
|
|
|
3578
|
-
export { map, makeEquivalence, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2,
|
|
3578
|
+
export { map, makeEquivalence, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2, make7, unbounded, publishUnsafe, make8, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe3, fromTransform, mapDone, isSink, fromChannel, drain, make9, get3, isStream, fromChannel2, callback, empty2, make10, suspend, fail2, fromQueue, fromPubSub, fromReadableStream, unwrap, map2, tap, drainFork, concat, merge2, filter, catchCause, tapError, mapError, take2, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make11, FileTypeId, WatchBackend, Path, make12, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, operatorConfigHome, tempDirectoryScoped, harnessesUnsupportedInSrt2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
ArraySchema,
|
|
14
14
|
decodeJsonStringOption,
|
|
15
15
|
encodeUnknownJsonStringSync
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-1jabs81x.js";
|
|
17
17
|
import {
|
|
18
18
|
replaceSecretReferences,
|
|
19
19
|
secretReferencesIn
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-h6kd80nr.js";
|
|
21
21
|
|
|
22
22
|
// packages/agent-runtime/src/srt-step.ts
|
|
23
23
|
import { SandboxRuntimeConfigSchema } from "@anthropic-ai/sandbox-runtime";
|
|
@@ -25,16 +25,16 @@ import {
|
|
|
25
25
|
isJsonObject,
|
|
26
26
|
isString2,
|
|
27
27
|
encodeUnknownJsonStringSync
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-1jabs81x.js";
|
|
29
29
|
import {
|
|
30
|
-
|
|
30
|
+
make10,
|
|
31
31
|
runForEach,
|
|
32
32
|
compiled2
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-avhqm9p0.js";
|
|
34
34
|
import {
|
|
35
35
|
ChildProcessSpawner,
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
36
|
+
make2
|
|
37
|
+
} from "./chunk-qqmxhk9w.js";
|
|
38
38
|
|
|
39
39
|
// packages/agent-runtime/src/opencode-store.ts
|
|
40
40
|
import { lstatSync, readFileSync, realpathSync } from "fs";
|
|
@@ -172,8 +172,8 @@ var opencodeReaderCommand = () => compiled2 ? [process.execPath, "opencode-read"
|
|
|
172
172
|
var isolatedRead = (store, name, input) => gen(function* () {
|
|
173
173
|
const spawner = yield* ChildProcessSpawner;
|
|
174
174
|
const [command, ...args] = opencodeReaderCommand();
|
|
175
|
-
const handle = yield* spawner.spawn(
|
|
176
|
-
stdin:
|
|
175
|
+
const handle = yield* spawner.spawn(make2(command, args, {
|
|
176
|
+
stdin: make10(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
|
|
177
177
|
stderr: "ignore",
|
|
178
178
|
extendEnv: false,
|
|
179
179
|
env: {},
|
|
@@ -75,10 +75,10 @@ import {
|
|
|
75
75
|
toEquivalence,
|
|
76
76
|
toCodecJson,
|
|
77
77
|
Json
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-1jabs81x.js";
|
|
79
79
|
import {
|
|
80
80
|
guard
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-h6kd80nr.js";
|
|
82
82
|
import {
|
|
83
83
|
currentTimeMillis,
|
|
84
84
|
WebCrypto,
|
|
@@ -105,11 +105,11 @@ import {
|
|
|
105
105
|
KitDigest,
|
|
106
106
|
KitSetup,
|
|
107
107
|
RunnerRpcError
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-ryxff0xk.js";
|
|
109
109
|
import {
|
|
110
110
|
runForEach,
|
|
111
111
|
FileSystem
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-avhqm9p0.js";
|
|
113
113
|
|
|
114
114
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/crypto/internal/webCrypto.js
|
|
115
115
|
var subtleUnavailable = () => new Error("crypto.subtle is unavailable; browsers expose it only in secure contexts");
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
isMinLength,
|
|
19
19
|
isMaxLength,
|
|
20
20
|
FiniteFromString
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-1jabs81x.js";
|
|
22
22
|
|
|
23
23
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/JsonSchema.js
|
|
24
24
|
var PRE_2020_TO_2020_COLLISIONS = ["$anchor", "$defs", "$dynamicAnchor", "$dynamicRef", "$vocabulary", "contentSchema", "dependentRequired", "dependentSchemas", "maxContains", "minContains", "prefixItems", "unevaluatedItems", "unevaluatedProperties"];
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
succeed,
|
|
13
13
|
isSuccess,
|
|
14
14
|
TaggedError,
|
|
15
|
-
|
|
15
|
+
make15,
|
|
16
16
|
_await,
|
|
17
17
|
fail5,
|
|
18
18
|
succeed5,
|
|
@@ -104,7 +104,7 @@ import {
|
|
|
104
104
|
decodeJsonString,
|
|
105
105
|
encodeJsonStringSync,
|
|
106
106
|
encodePrettyJsonString
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-1jabs81x.js";
|
|
108
108
|
import {
|
|
109
109
|
tap,
|
|
110
110
|
mapError,
|
|
@@ -116,7 +116,7 @@ import {
|
|
|
116
116
|
withDefault,
|
|
117
117
|
option,
|
|
118
118
|
String2
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-avhqm9p0.js";
|
|
120
120
|
import {
|
|
121
121
|
currentTimeMillis,
|
|
122
122
|
SecureRandom,
|
|
@@ -168,7 +168,7 @@ import {
|
|
|
168
168
|
digestSha256,
|
|
169
169
|
sha256Hasher,
|
|
170
170
|
raw,
|
|
171
|
-
|
|
171
|
+
make4,
|
|
172
172
|
get,
|
|
173
173
|
put,
|
|
174
174
|
HttpClient,
|
|
@@ -232,14 +232,14 @@ import {
|
|
|
232
232
|
harnessNames,
|
|
233
233
|
herdrRunnerCapabilities2,
|
|
234
234
|
declaredChecks
|
|
235
|
-
} from "./chunk-
|
|
235
|
+
} from "./chunk-ryxff0xk.js";
|
|
236
236
|
import {
|
|
237
237
|
Id
|
|
238
|
-
} from "./chunk-
|
|
238
|
+
} from "./chunk-h6kd80nr.js";
|
|
239
239
|
import {
|
|
240
240
|
ChildProcessSpawner,
|
|
241
|
-
|
|
242
|
-
} from "./chunk-
|
|
241
|
+
make2
|
|
242
|
+
} from "./chunk-qqmxhk9w.js";
|
|
243
243
|
|
|
244
244
|
// apps/cli/src/cli-error.ts
|
|
245
245
|
function cliErrorCode(error, status) {
|
|
@@ -439,7 +439,7 @@ var Usage = [
|
|
|
439
439
|
" kitman pair [<pairing code>] [--api-url <url>] (what the command the web shows runs; no code finishes or re-keys with your session)",
|
|
440
440
|
" kitman pair <runner pairing code> --credential-file <path> (writes a shared Runner's credential for a container or its replicas to mount)",
|
|
441
441
|
" kitman runner start --credential-file <path> (or KITMAN_RUNNER_CREDENTIAL_FILE; starts the Runner the file holds)",
|
|
442
|
-
" kitman runner settings <runner> [--concurrency <1-
|
|
442
|
+
" kitman runner settings <runner> [--concurrency <1-32>] [--sandbox srt|docker|host] [--docker-image <image@sha256:\u2026>|none]",
|
|
443
443
|
" [--check-hosts <host,\u2026>|none] [--check-docker-image <image@sha256:\u2026>|none] [--check-registry-image <image@sha256:\u2026>|none]",
|
|
444
444
|
" kitman runner settings history <runner> (each change: who, when, old and new value)",
|
|
445
445
|
"",
|
|
@@ -1020,10 +1020,10 @@ var sandboxMissing = (sandbox, missing) => ({
|
|
|
1020
1020
|
var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
|
|
1021
1021
|
var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
|
|
1022
1022
|
var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
|
|
1023
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
1023
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-3csj1ve1.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
|
|
1024
1024
|
});
|
|
1025
1025
|
var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
|
|
1026
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
1026
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-3csj1ve1.js")), (module) => module.updateHerdrCore(options))
|
|
1027
1027
|
});
|
|
1028
1028
|
var herdrCoreMissing = (error) => {
|
|
1029
1029
|
if (isTagged(error, "HerdrCoreMissing"))
|
|
@@ -1172,7 +1172,7 @@ var settingFromFlag = (flag, value) => {
|
|
|
1172
1172
|
return update;
|
|
1173
1173
|
};
|
|
1174
1174
|
var settingFlagRefused = {
|
|
1175
|
-
concurrency:
|
|
1175
|
+
concurrency: `--concurrency takes a whole number from 1 to ${MaxRunnerConcurrency}`,
|
|
1176
1176
|
sandbox: "--sandbox takes srt, docker or host",
|
|
1177
1177
|
dockerImage: "--docker-image takes an image pinned by digest (name@sha256:...), or none",
|
|
1178
1178
|
checkHosts: "--check-hosts takes comma-separated hosts, such as registry.npmjs.org,*.example.com, or none",
|
|
@@ -1449,7 +1449,7 @@ var syncTargets = (harness) => gen(function* () {
|
|
|
1449
1449
|
});
|
|
1450
1450
|
var syncKits = (input) => gen(function* () {
|
|
1451
1451
|
const fs = yield* FileSystem;
|
|
1452
|
-
const { syncKitSetup } = yield* promise(() => import("./chunk-
|
|
1452
|
+
const { syncKitSetup } = yield* promise(() => import("./chunk-m9x7feh0.js"));
|
|
1453
1453
|
const harnesses = yield* syncTargets(input.harness);
|
|
1454
1454
|
const chain = yield* input.client.getKitChain(input.workspaceId);
|
|
1455
1455
|
for (const { name, problem } of chain.skipped)
|
|
@@ -1966,7 +1966,7 @@ var ServiceManager = Reference("kitman/cli/ServiceManager", {
|
|
|
1966
1966
|
run: (command, args) => runCommand2(command, args),
|
|
1967
1967
|
attach: (command, args) => gen(function* () {
|
|
1968
1968
|
const spawner = yield* ChildProcessSpawner;
|
|
1969
|
-
const handle = yield* spawner.spawn(
|
|
1969
|
+
const handle = yield* spawner.spawn(make2(command, args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" }));
|
|
1970
1970
|
const exitCode = yield* handle.exitCode;
|
|
1971
1971
|
if (exitCode !== 0)
|
|
1972
1972
|
return yield* new CommandFailed2({ command, reason: `exit code ${exitCode}` });
|
|
@@ -2368,7 +2368,7 @@ var package_default = {
|
|
|
2368
2368
|
};
|
|
2369
2369
|
|
|
2370
2370
|
// apps/cli/src/scaffold.ts
|
|
2371
|
-
var cliVersion = "0.14.
|
|
2371
|
+
var cliVersion = "0.14.2";
|
|
2372
2372
|
var packageJson = (name, scaffold) => `${JSON.stringify({
|
|
2373
2373
|
name,
|
|
2374
2374
|
private: true,
|
|
@@ -2520,7 +2520,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
|
|
|
2520
2520
|
|
|
2521
2521
|
// apps/cli/src/commands.ts
|
|
2522
2522
|
var ClientId = "kitman-cli";
|
|
2523
|
-
var agentRuntime = promise(() => import("./chunk-
|
|
2523
|
+
var agentRuntime = promise(() => import("./chunk-24j1cmsm.js"));
|
|
2524
2524
|
var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
|
|
2525
2525
|
defaultValue: () => gen(function* () {
|
|
2526
2526
|
const tui = yield* tryPromise({
|
|
@@ -3556,7 +3556,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
|
|
|
3556
3556
|
});
|
|
3557
3557
|
var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
|
|
3558
3558
|
defaultValue: () => (options) => gen(function* () {
|
|
3559
|
-
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-
|
|
3559
|
+
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-q4ch3t9q.js"));
|
|
3560
3560
|
return yield* makeRunnerRpcClient({
|
|
3561
3561
|
runnerId: options.runnerId,
|
|
3562
3562
|
bearer: options.bearer,
|
|
@@ -3868,7 +3868,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
3868
3868
|
yield* controlPlane.client.listRepoBindings(runner.workspaceId).pipe(flatMap3(({ items }) => forEach(items.filter((binding) => binding.status === "active" && (teamId === undefined || binding.teamId === teamId)), (repoBinding) => map8(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);
|
|
3869
3869
|
yield* suspend3(() => sleep(ownerLogin.expired() ? ownerLoginRetryInterval : ownerLoginInterval)).pipe(andThen2(checkOwnerLogin), forever, forkScoped);
|
|
3870
3870
|
const platform = yield* context();
|
|
3871
|
-
const updated = yield*
|
|
3871
|
+
const updated = yield* make15();
|
|
3872
3872
|
const scope = yield* scope2;
|
|
3873
3873
|
const startUpdate = (update) => update.pipe(catch_((error) => andThen2(restartOntoUpdate(input.runnerId), fail5(updated, error))), provideContext2(platform), forkIn(scope), asVoid);
|
|
3874
3874
|
const refusedForProtocol = container ? updater.stopWhenDrained(new RunnerStopped({ problem: updateRequired })).pipe(catch_((stopped) => fail5(updated, stopped)), forkIn(scope), asVoid) : startUpdate(updater.updateRequired);
|
|
@@ -4123,7 +4123,7 @@ function mcpCommand(args) {
|
|
|
4123
4123
|
if (command.action === "run") {
|
|
4124
4124
|
if (command.args.length > 0)
|
|
4125
4125
|
return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
|
|
4126
|
-
const { runMcpServerCommand } = yield* promise(() => import("./chunk-
|
|
4126
|
+
const { runMcpServerCommand } = yield* promise(() => import("./chunk-80vwvv5x.js"));
|
|
4127
4127
|
return yield* runMcpServerCommand({ flags: command.flags });
|
|
4128
4128
|
}
|
|
4129
4129
|
if (command.action !== "setup")
|
|
@@ -4611,7 +4611,7 @@ function programLoopCommand(command) {
|
|
|
4611
4611
|
return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
|
|
4612
4612
|
});
|
|
4613
4613
|
}
|
|
4614
|
-
var docsModule = promise(() => import("./chunk-
|
|
4614
|
+
var docsModule = promise(() => import("./chunk-gwz39037.js"));
|
|
4615
4615
|
function docsCommand(args) {
|
|
4616
4616
|
return gen(function* () {
|
|
4617
4617
|
const command = parseCommand(args);
|
|
@@ -5453,9 +5453,9 @@ function changeRequestCommand(args) {
|
|
|
5453
5453
|
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}`);
|
|
5454
5454
|
});
|
|
5455
5455
|
}
|
|
5456
|
-
var KitWriter = map8(promise(() => import("./chunk-
|
|
5456
|
+
var KitWriter = map8(promise(() => import("./chunk-z7c2ndfg.js")), (build) => build.writeKit);
|
|
5457
5457
|
var KitBuilder = Reference("kitman/cli/KitBuilder", {
|
|
5458
|
-
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-
|
|
5458
|
+
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-z7c2ndfg.js")), (build) => build.buildKit(directory))
|
|
5459
5459
|
});
|
|
5460
5460
|
var uploadKit = (client, workspaceId, built) => gen(function* () {
|
|
5461
5461
|
yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
|
|
@@ -6232,7 +6232,7 @@ function downloadPresignedAsset(download, outputPath) {
|
|
|
6232
6232
|
return gen(function* () {
|
|
6233
6233
|
const fs = yield* FileSystem;
|
|
6234
6234
|
const failed = (cause) => new CliError({ message: `Asset download failed: ${String(cause)}` });
|
|
6235
|
-
const response = yield* send(
|
|
6235
|
+
const response = yield* send(make4(download.method)(download.url), failed);
|
|
6236
6236
|
if (response.status < 200 || response.status >= 300)
|
|
6237
6237
|
return yield* new CliError({ message: `Asset download failed with ${response.status}` });
|
|
6238
6238
|
const body = yield* response.arrayBuffer.pipe(mapError2((error) => failed(error.message)));
|
|
@@ -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-ffq8vvvx.js";
|
|
11
|
+
import"./chunk-qqmxhk9w.js";
|
|
12
|
+
import"./chunk-avhqm9p0.js";
|
|
13
|
+
import"./chunk-1jabs81x.js";
|
|
14
14
|
export {
|
|
15
15
|
decoded2 as decoded,
|
|
16
16
|
decodedOption2 as decodedOption,
|
|
@@ -13,27 +13,27 @@ import {
|
|
|
13
13
|
isJsonObject,
|
|
14
14
|
decodeJsonString,
|
|
15
15
|
encodePrettyJsonString
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import"./chunk-
|
|
16
|
+
} from "./chunk-1jabs81x.js";
|
|
17
|
+
import"./chunk-h6kd80nr.js";
|
|
18
18
|
import {
|
|
19
19
|
FileSystem,
|
|
20
20
|
Path
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-avhqm9p0.js";
|
|
22
22
|
import {
|
|
23
23
|
tomlTableHeader2,
|
|
24
24
|
tomlKeyPath2,
|
|
25
25
|
kitmanSkillEntry,
|
|
26
26
|
isPathWithin2
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-0r9tp5pz.js";
|
|
28
28
|
import {
|
|
29
29
|
instructionsStart,
|
|
30
30
|
instructionsEnd,
|
|
31
31
|
renderMcpServer,
|
|
32
32
|
materializeKitSetup,
|
|
33
33
|
tomlInline
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import"./chunk-
|
|
36
|
-
import"./chunk-
|
|
34
|
+
} from "./chunk-ryxff0xk.js";
|
|
35
|
+
import"./chunk-39pdxhcv.js";
|
|
36
|
+
import"./chunk-qqmxhk9w.js";
|
|
37
37
|
|
|
38
38
|
// packages/agent-runtime/src/kit-setup-sync.ts
|
|
39
39
|
class KitSyncError extends TaggedError("KitSyncError") {
|
|
@@ -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-v86jpzpr.js";
|
|
8
|
+
import"./chunk-yfag1eey.js";
|
|
9
|
+
import"./chunk-ryxff0xk.js";
|
|
10
|
+
import"./chunk-h6kd80nr.js";
|
|
11
|
+
import"./chunk-avhqm9p0.js";
|
|
12
|
+
import"./chunk-1jabs81x.js";
|
|
13
13
|
export {
|
|
14
14
|
makeProgramRpcClient2 as makeProgramRpcClient,
|
|
15
15
|
makeRunnerRpcClient2 as makeRunnerRpcClient,
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
|
-
isString,
|
|
4
|
-
hasProperty,
|
|
5
|
-
symbol,
|
|
6
|
-
hash,
|
|
7
|
-
symbol2,
|
|
8
|
-
equals,
|
|
9
3
|
BaseProto,
|
|
10
|
-
PipeInspectableProto,
|
|
11
4
|
Prototype,
|
|
12
5
|
some,
|
|
13
6
|
Service2,
|
|
@@ -21,8 +14,11 @@ import {
|
|
|
21
14
|
andThen2,
|
|
22
15
|
map8,
|
|
23
16
|
raceFirst,
|
|
24
|
-
scoped
|
|
25
|
-
|
|
17
|
+
scoped,
|
|
18
|
+
isRedacted,
|
|
19
|
+
make16,
|
|
20
|
+
value
|
|
21
|
+
} from "./chunk-1jabs81x.js";
|
|
26
22
|
import {
|
|
27
23
|
unwrap,
|
|
28
24
|
drainFork,
|
|
@@ -31,49 +27,7 @@ import {
|
|
|
31
27
|
runCollect,
|
|
32
28
|
runDrain,
|
|
33
29
|
mkString
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
|
|
36
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/redacted.js
|
|
37
|
-
var redactedRegistry = /* @__PURE__ */ new WeakMap;
|
|
38
|
-
var value2 = (self) => {
|
|
39
|
-
if (redactedRegistry.has(self)) {
|
|
40
|
-
return redactedRegistry.get(self);
|
|
41
|
-
} else {
|
|
42
|
-
throw new Error("Unable to get redacted value" + (self.label ? ` with label: "${self.label}"` : ""));
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Redacted.js
|
|
47
|
-
var TypeId = "~effect/Redacted";
|
|
48
|
-
var isRedacted = (u) => hasProperty(u, TypeId);
|
|
49
|
-
var make = (value, options) => {
|
|
50
|
-
const self = Object.create(Proto);
|
|
51
|
-
if (options?.label) {
|
|
52
|
-
self.label = options.label;
|
|
53
|
-
}
|
|
54
|
-
redactedRegistry.set(self, value);
|
|
55
|
-
return self;
|
|
56
|
-
};
|
|
57
|
-
var Proto = {
|
|
58
|
-
[TypeId]: {
|
|
59
|
-
_A: (_) => _
|
|
60
|
-
},
|
|
61
|
-
label: undefined,
|
|
62
|
-
...PipeInspectableProto,
|
|
63
|
-
toJSON() {
|
|
64
|
-
return this.toString();
|
|
65
|
-
},
|
|
66
|
-
toString() {
|
|
67
|
-
return `<redacted${isString(this.label) ? ":" + this.label : ""}>`;
|
|
68
|
-
},
|
|
69
|
-
[symbol]() {
|
|
70
|
-
return hash(redactedRegistry.get(this));
|
|
71
|
-
},
|
|
72
|
-
[symbol2](that) {
|
|
73
|
-
return isRedacted(that) && equals(redactedRegistry.get(this), redactedRegistry.get(that));
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
var value = value2;
|
|
30
|
+
} from "./chunk-avhqm9p0.js";
|
|
77
31
|
|
|
78
32
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Brand.js
|
|
79
33
|
function nominal() {
|
|
@@ -101,7 +55,7 @@ var HandleProto = {
|
|
|
101
55
|
var makeHandle = (params) => Object.setPrototypeOf({
|
|
102
56
|
...params
|
|
103
57
|
}, HandleProto);
|
|
104
|
-
var
|
|
58
|
+
var make = (spawn) => {
|
|
105
59
|
const streamString = (command, options) => spawn(command).pipe(map8((handle) => decodeText(options?.includeStderr === true ? handle.all : drainFork(handle.stdout, handle.stderr))), unwrap);
|
|
106
60
|
const streamLines = (command, options) => splitLines(streamString(command, options));
|
|
107
61
|
return ChildProcessSpawner.of({
|
|
@@ -222,7 +176,7 @@ var parseTemplate = (texts, values) => {
|
|
|
222
176
|
if (word.length === 0)
|
|
223
177
|
return;
|
|
224
178
|
const value = word.map(unwrap2).join("");
|
|
225
|
-
words.push(word.length === 1 && isRedacted(word[0]) ? word[0] : word.some(isRedacted) ?
|
|
179
|
+
words.push(word.length === 1 && isRedacted(word[0]) ? word[0] : word.some(isRedacted) ? make16(value) : value);
|
|
226
180
|
word = [];
|
|
227
181
|
plain = true;
|
|
228
182
|
braceDepth = 0;
|
|
@@ -312,23 +266,23 @@ var parseTemplate = (texts, values) => {
|
|
|
312
266
|
};
|
|
313
267
|
|
|
314
268
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/process/ChildProcess.js
|
|
315
|
-
var
|
|
316
|
-
var
|
|
269
|
+
var TypeId = "~effect/process/ChildProcess";
|
|
270
|
+
var Proto = {
|
|
317
271
|
.../* @__PURE__ */ Prototype({
|
|
318
272
|
label: "Command",
|
|
319
273
|
evaluate(fiber) {
|
|
320
274
|
return getUnsafe(fiber.context, ChildProcessSpawner).spawn(this);
|
|
321
275
|
}
|
|
322
276
|
}),
|
|
323
|
-
[
|
|
277
|
+
[TypeId]: TypeId
|
|
324
278
|
};
|
|
325
|
-
var makeStandardCommand = (command, args, options) => Object.assign(Object.create(
|
|
279
|
+
var makeStandardCommand = (command, args, options) => Object.assign(Object.create(Proto), {
|
|
326
280
|
_tag: "StandardCommand",
|
|
327
281
|
command,
|
|
328
282
|
args,
|
|
329
283
|
options
|
|
330
284
|
});
|
|
331
|
-
var
|
|
285
|
+
var make2 = function make(...args) {
|
|
332
286
|
if (isTemplateString(args[0])) {
|
|
333
287
|
const [templates, ...expressions] = args;
|
|
334
288
|
const [command, cmdArgs] = parseTemplate2(templates, expressions);
|
|
@@ -386,4 +340,4 @@ var shellScript = (templates, expressions) => {
|
|
|
386
340
|
}
|
|
387
341
|
return script;
|
|
388
342
|
};
|
|
389
|
-
export {
|
|
343
|
+
export { ExitCode, ProcessId, makeHandle, make, ChildProcessSpawner, display, make2, parseFdName, fdName };
|