@kitman-sh/cli 0.10.90 → 0.10.91
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-xb70ys3n.js → chunk-25q7mg6g.js} +17 -17
- package/dist/{chunk-x11j5jcj.js → chunk-2wsyg2g7.js} +46 -38
- package/dist/{chunk-py4t32pa.js → chunk-5fxxg02f.js} +340 -144
- package/dist/{chunk-e8zm8z3a.js → chunk-5tqy48a3.js} +10 -10
- package/dist/{chunk-75d425rk.js → chunk-6h0rz0zk.js} +4 -4
- package/dist/{chunk-j9frwmmt.js → chunk-947btdv6.js} +3 -3
- package/dist/{chunk-fq47a5yd.js → chunk-9m9cv82t.js} +2 -2
- package/dist/{chunk-76ctrqm6.js → chunk-c3k32vw4.js} +1 -1
- package/dist/{chunk-9zd52pda.js → chunk-cmtvcbxr.js} +5 -5
- package/dist/{chunk-bbvvx5z1.js → chunk-d82t42vr.js} +16 -16
- package/dist/{chunk-5vsqzmvf.js → chunk-d9wjvvbc.js} +5 -5
- package/dist/{chunk-jbwk6k6m.js → chunk-dstm8aen.js} +71 -28
- package/dist/{chunk-0gs7cjkt.js → chunk-fgnfx5mw.js} +7 -212
- package/dist/{chunk-mgmsx0bm.js → chunk-gncygm43.js} +9 -9
- package/dist/{chunk-yx90ye72.js → chunk-gykt7zjx.js} +7 -7
- package/dist/{chunk-62565d52.js → chunk-hsf2sj69.js} +2 -2
- package/dist/{chunk-tzz4fv17.js → chunk-k4fvnphp.js} +1 -1
- package/dist/{chunk-kgdppbdr.js → chunk-mbqeakm1.js} +1 -1
- package/dist/{chunk-dd5aa39j.js → chunk-r6d67qqa.js} +263 -34
- package/dist/{chunk-ky974pcr.js → chunk-rmsm8vnc.js} +4 -4
- package/dist/{chunk-rq6bn96v.js → chunk-sb8c2sgy.js} +16 -16
- package/dist/{chunk-jq8hhvdv.js → chunk-tmbhak7y.js} +8 -8
- package/dist/{chunk-98sg1yyd.js → chunk-w0sehmpd.js} +14 -60
- package/dist/{chunk-m1ewm9dy.js → chunk-y1tnxz9f.js} +25 -25
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -199,7 +199,7 @@ import {
|
|
|
199
199
|
String4,
|
|
200
200
|
toCodecStringTree,
|
|
201
201
|
encodeUnknownJsonStringSync
|
|
202
|
-
} from "./chunk-
|
|
202
|
+
} from "./chunk-dstm8aen.js";
|
|
203
203
|
|
|
204
204
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
|
|
205
205
|
var headUnsafe = (self) => {
|
|
@@ -1127,7 +1127,7 @@ var MutableRefProto = {
|
|
|
1127
1127
|
};
|
|
1128
1128
|
}
|
|
1129
1129
|
};
|
|
1130
|
-
var
|
|
1130
|
+
var make7 = (value) => {
|
|
1131
1131
|
const ref = Object.create(MutableRefProto);
|
|
1132
1132
|
ref.current = value;
|
|
1133
1133
|
return ref;
|
|
@@ -1288,7 +1288,7 @@ var remove = (self, value) => filter2(self, (v) => v !== value);
|
|
|
1288
1288
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/PubSub.js
|
|
1289
1289
|
var TypeId3 = "~effect/PubSub";
|
|
1290
1290
|
var SubscriptionTypeId = "~effect/PubSub/Subscription";
|
|
1291
|
-
var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false),
|
|
1291
|
+
var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false), make7(false), options.strategy(), make7(none())));
|
|
1292
1292
|
var unbounded = (options) => make5({
|
|
1293
1293
|
atomicPubSub: () => makeAtomicUnbounded(options),
|
|
1294
1294
|
strategy: () => new DroppingStrategy
|
|
@@ -1383,7 +1383,7 @@ var removeSubscribers = (subscribers, subscription, pollers) => {
|
|
|
1383
1383
|
subscribers.delete(subscription);
|
|
1384
1384
|
}
|
|
1385
1385
|
};
|
|
1386
|
-
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false),
|
|
1386
|
+
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false), make7(false), strategy, pubsub.replayWindow(), ended);
|
|
1387
1387
|
class UnboundedPubSub {
|
|
1388
1388
|
publisherHead = {
|
|
1389
1389
|
value: AbsentValue,
|
|
@@ -1800,7 +1800,7 @@ var QueueProto = {
|
|
|
1800
1800
|
};
|
|
1801
1801
|
}
|
|
1802
1802
|
};
|
|
1803
|
-
var
|
|
1803
|
+
var make8 = (options) => withFiber((fiber) => {
|
|
1804
1804
|
const self = Object.create(QueueProto);
|
|
1805
1805
|
self.dispatcher = fiber.currentDispatcher;
|
|
1806
1806
|
self.capacity = options?.capacity ?? Number.POSITIVE_INFINITY;
|
|
@@ -1815,14 +1815,14 @@ var make9 = (options) => withFiber((fiber) => {
|
|
|
1815
1815
|
};
|
|
1816
1816
|
return succeed2(self);
|
|
1817
1817
|
});
|
|
1818
|
-
var bounded = (capacity) =>
|
|
1818
|
+
var bounded = (capacity) => make8({
|
|
1819
1819
|
capacity
|
|
1820
1820
|
});
|
|
1821
|
-
var sliding = (capacity) =>
|
|
1821
|
+
var sliding = (capacity) => make8({
|
|
1822
1822
|
capacity,
|
|
1823
1823
|
strategy: "sliding"
|
|
1824
1824
|
});
|
|
1825
|
-
var unbounded2 = () =>
|
|
1825
|
+
var unbounded2 = () => make8();
|
|
1826
1826
|
var offer = /* @__PURE__ */ dual(2, (self, message) => suspend2(() => offerUnsafe(self, message) ? exitTrue : self.state._tag === "Open" && self.strategy === "suspend" ? offerOrWait(self, message) : exitFalse));
|
|
1827
1827
|
var offerUnsafe = (self, message) => {
|
|
1828
1828
|
if (self.state._tag !== "Open") {
|
|
@@ -2248,7 +2248,7 @@ var fromTransformBracket = (f) => fromTransform(fnUntraced(function* (upstream,
|
|
|
2248
2248
|
return onError(pull, onCause);
|
|
2249
2249
|
}));
|
|
2250
2250
|
var toTransform = (channel) => channel.transform;
|
|
2251
|
-
var asyncQueue = (scope, f, options) =>
|
|
2251
|
+
var asyncQueue = (scope, f, options) => make8({
|
|
2252
2252
|
capacity: options?.bufferSize,
|
|
2253
2253
|
strategy: options?.strategy
|
|
2254
2254
|
}).pipe(tap2((queue) => addFinalizer(scope, shutdown(queue))), tap2((queue) => provide(f(queue), scope).pipe(catchCause2((cause) => failCause(queue, cause)), forkIn(scope, {
|
|
@@ -2289,7 +2289,7 @@ var fromReadableStream2 = (options) => fromTransform((_, scope) => readableStrea
|
|
|
2289
2289
|
}));
|
|
2290
2290
|
var readableStreamToPullUnsafe = (options) => {
|
|
2291
2291
|
const reader = options.readable.getReader();
|
|
2292
|
-
const exit = options.exit ??
|
|
2292
|
+
const exit = options.exit ?? make7(undefined);
|
|
2293
2293
|
const pull = suspend3(() => {
|
|
2294
2294
|
if (exit.current)
|
|
2295
2295
|
return exit.current;
|
|
@@ -2903,7 +2903,7 @@ var release = (self, state) => {
|
|
|
2903
2903
|
};
|
|
2904
2904
|
|
|
2905
2905
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
|
|
2906
|
-
var
|
|
2906
|
+
var make9 = make6;
|
|
2907
2907
|
var get3 = get2;
|
|
2908
2908
|
|
|
2909
2909
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
|
|
@@ -2915,7 +2915,7 @@ var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatM
|
|
|
2915
2915
|
var toChannel2 = (stream) => stream.channel;
|
|
2916
2916
|
var callback = (f, options) => fromChannel2(callbackArray(f, options));
|
|
2917
2917
|
var empty2 = /* @__PURE__ */ fromChannel2(empty);
|
|
2918
|
-
var
|
|
2918
|
+
var make10 = (...values) => fromArray2(values);
|
|
2919
2919
|
var suspend = (stream) => {
|
|
2920
2920
|
const suspended = fromChannel2(suspend4(() => stream().channel));
|
|
2921
2921
|
suspendedStreams.set(suspended, stream);
|
|
@@ -3080,7 +3080,7 @@ var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (
|
|
|
3080
3080
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
|
|
3081
3081
|
var TypeId10 = "~effect/FileSystem";
|
|
3082
3082
|
var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
|
|
3083
|
-
var
|
|
3083
|
+
var make11 = (impl) => FileSystem.of({
|
|
3084
3084
|
...impl,
|
|
3085
3085
|
[TypeId10]: TypeId10,
|
|
3086
3086
|
glob: make2(impl),
|
|
@@ -3140,7 +3140,7 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
|
|
|
3140
3140
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
|
|
3141
3141
|
var TypeId11 = "~effect/Path";
|
|
3142
3142
|
var Path = /* @__PURE__ */ Service2("effect/Path");
|
|
3143
|
-
var
|
|
3143
|
+
var make12 = (impl) => Path.of({
|
|
3144
3144
|
...impl,
|
|
3145
3145
|
[TypeId11]: TypeId11,
|
|
3146
3146
|
resolveWithin(root, input) {
|
|
@@ -3215,7 +3215,7 @@ function makeProvider(load, mapInput) {
|
|
|
3215
3215
|
function makeSource(get, transform) {
|
|
3216
3216
|
return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
|
|
3217
3217
|
}
|
|
3218
|
-
function
|
|
3218
|
+
function make13(get) {
|
|
3219
3219
|
return makeSource(get, identityPath);
|
|
3220
3220
|
}
|
|
3221
3221
|
function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
@@ -3224,7 +3224,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
|
3224
3224
|
function fromEnvRecord(env, options) {
|
|
3225
3225
|
const preserveEmptyStrings = options?.preserveEmptyStrings === true;
|
|
3226
3226
|
const trie = buildEnvTrie(env);
|
|
3227
|
-
return
|
|
3227
|
+
return make13((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
|
|
3228
3228
|
}
|
|
3229
3229
|
function fromEnv(options) {
|
|
3230
3230
|
const env = options?.env ?? {
|
|
@@ -3552,4 +3552,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
|
|
|
3552
3552
|
...argv
|
|
3553
3553
|
];
|
|
3554
3554
|
|
|
3555
|
-
export { map, makeEquivalence, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2,
|
|
3555
|
+
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, 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, harnessesUnsupportedInSrt2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
getOrUndefined,
|
|
7
7
|
Reference,
|
|
8
8
|
TaggedError,
|
|
9
|
-
|
|
9
|
+
make15,
|
|
10
10
|
_await,
|
|
11
11
|
fail5,
|
|
12
12
|
succeed5,
|
|
@@ -85,19 +85,11 @@ import {
|
|
|
85
85
|
decodeJsonString,
|
|
86
86
|
encodeJsonStringSync,
|
|
87
87
|
encodePrettyJsonString
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-dstm8aen.js";
|
|
89
89
|
import {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
run,
|
|
94
|
-
mkString,
|
|
95
|
-
FileSystem,
|
|
96
|
-
Path,
|
|
97
|
-
withDefault,
|
|
98
|
-
option,
|
|
99
|
-
String2
|
|
100
|
-
} from "./chunk-xb70ys3n.js";
|
|
90
|
+
ChildProcessSpawner,
|
|
91
|
+
make2
|
|
92
|
+
} from "./chunk-w0sehmpd.js";
|
|
101
93
|
import {
|
|
102
94
|
currentTimeMillis,
|
|
103
95
|
SecureRandom,
|
|
@@ -135,7 +127,7 @@ import {
|
|
|
135
127
|
digestSha256,
|
|
136
128
|
sha256Hasher,
|
|
137
129
|
raw,
|
|
138
|
-
|
|
130
|
+
make4,
|
|
139
131
|
get,
|
|
140
132
|
put,
|
|
141
133
|
HttpClient,
|
|
@@ -197,10 +189,10 @@ import {
|
|
|
197
189
|
harnessNames,
|
|
198
190
|
herdrRunnerCapabilities2,
|
|
199
191
|
declaredChecks
|
|
200
|
-
} from "./chunk-
|
|
192
|
+
} from "./chunk-5fxxg02f.js";
|
|
201
193
|
import {
|
|
202
194
|
Id
|
|
203
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-mbqeakm1.js";
|
|
204
196
|
import {
|
|
205
197
|
toJsonValue,
|
|
206
198
|
isOneOf,
|
|
@@ -210,11 +202,19 @@ import {
|
|
|
210
202
|
isObject,
|
|
211
203
|
isJsonObject,
|
|
212
204
|
isString
|
|
213
|
-
} from "./chunk-
|
|
205
|
+
} from "./chunk-k4fvnphp.js";
|
|
214
206
|
import {
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
207
|
+
tap,
|
|
208
|
+
mapError,
|
|
209
|
+
decodeText,
|
|
210
|
+
run,
|
|
211
|
+
mkString,
|
|
212
|
+
FileSystem,
|
|
213
|
+
Path,
|
|
214
|
+
withDefault,
|
|
215
|
+
option,
|
|
216
|
+
String2
|
|
217
|
+
} from "./chunk-25q7mg6g.js";
|
|
218
218
|
|
|
219
219
|
// apps/cli/src/cli-error.ts
|
|
220
220
|
function cliErrorCode(error, status) {
|
|
@@ -504,10 +504,10 @@ var checkDockerImageSetting = pinnedImage;
|
|
|
504
504
|
var checkRegistryImageSetting = pinnedImage;
|
|
505
505
|
var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
|
|
506
506
|
var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
|
|
507
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
507
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-6h0rz0zk.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
|
|
508
508
|
});
|
|
509
509
|
var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
|
|
510
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
510
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-6h0rz0zk.js")), (module) => module.updateHerdrCore(options))
|
|
511
511
|
});
|
|
512
512
|
var herdrCoreMissing = (error) => {
|
|
513
513
|
if (isTagged(error, "HerdrCoreMissing"))
|
|
@@ -733,7 +733,7 @@ var syncTargets = (harness) => gen(function* () {
|
|
|
733
733
|
});
|
|
734
734
|
var syncKits = (input) => gen(function* () {
|
|
735
735
|
const fs = yield* FileSystem;
|
|
736
|
-
const { syncKitSetup } = yield* promise(() => import("./chunk-
|
|
736
|
+
const { syncKitSetup } = yield* promise(() => import("./chunk-tmbhak7y.js"));
|
|
737
737
|
const harnesses = yield* syncTargets(input.harness);
|
|
738
738
|
const chain = yield* input.client.getKitChain(input.workspaceId);
|
|
739
739
|
for (const { name, problem } of chain.skipped)
|
|
@@ -1249,7 +1249,7 @@ var ServiceManager = Reference("kitman/cli/ServiceManager", {
|
|
|
1249
1249
|
run: (command, args) => runCommand2(command, args),
|
|
1250
1250
|
attach: (command, args) => gen(function* () {
|
|
1251
1251
|
const spawner = yield* ChildProcessSpawner;
|
|
1252
|
-
const handle = yield* spawner.spawn(
|
|
1252
|
+
const handle = yield* spawner.spawn(make2(command, args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" }));
|
|
1253
1253
|
const exitCode = yield* handle.exitCode;
|
|
1254
1254
|
if (exitCode !== 0)
|
|
1255
1255
|
return yield* new CommandFailed2({ command, reason: `exit code ${exitCode}` });
|
|
@@ -1651,7 +1651,7 @@ var package_default = {
|
|
|
1651
1651
|
};
|
|
1652
1652
|
|
|
1653
1653
|
// apps/cli/src/scaffold.ts
|
|
1654
|
-
var cliVersion = "0.10.
|
|
1654
|
+
var cliVersion = "0.10.91";
|
|
1655
1655
|
var packageJson = (name, scaffold) => `${JSON.stringify({
|
|
1656
1656
|
name,
|
|
1657
1657
|
private: true,
|
|
@@ -1901,7 +1901,7 @@ var Usage = [
|
|
|
1901
1901
|
"Every run, loop, agent, verify, constraint, secret, claim, deploy, dev and kit command takes --json."
|
|
1902
1902
|
].join(`
|
|
1903
1903
|
`);
|
|
1904
|
-
var agentRuntime = promise(() => import("./chunk-
|
|
1904
|
+
var agentRuntime = promise(() => import("./chunk-r6d67qqa.js"));
|
|
1905
1905
|
var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
|
|
1906
1906
|
defaultValue: () => gen(function* () {
|
|
1907
1907
|
const tui = yield* tryPromise({
|
|
@@ -2777,7 +2777,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
|
|
|
2777
2777
|
});
|
|
2778
2778
|
var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
|
|
2779
2779
|
defaultValue: () => (options) => gen(function* () {
|
|
2780
|
-
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-
|
|
2780
|
+
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-gykt7zjx.js"));
|
|
2781
2781
|
return yield* makeRunnerRpcClient({
|
|
2782
2782
|
runnerId: options.runnerId,
|
|
2783
2783
|
bearer: options.bearer,
|
|
@@ -2845,6 +2845,11 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
2845
2845
|
probeSandboxHost,
|
|
2846
2846
|
programProcessExecutor,
|
|
2847
2847
|
removeRunnerTerminals,
|
|
2848
|
+
makeStepProcesses,
|
|
2849
|
+
StepProcesses,
|
|
2850
|
+
stepProcessesUncontained,
|
|
2851
|
+
systemProcessTable,
|
|
2852
|
+
systemdScopes,
|
|
2848
2853
|
rpcKnownEvidence,
|
|
2849
2854
|
rpcStepCheckpoints,
|
|
2850
2855
|
runCheckouts,
|
|
@@ -2880,7 +2885,10 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
2880
2885
|
const core = yield* (yield* OpenHerdrCore)(session === undefined ? {} : { session });
|
|
2881
2886
|
if (!personal)
|
|
2882
2887
|
yield* addFinalizer2(() => core.stopServer.pipe(timeout("10 seconds"), ignore));
|
|
2883
|
-
const
|
|
2888
|
+
const stepProcesses = makeStepProcesses(yield* systemProcessTable, { scopes: yield* systemdScopes });
|
|
2889
|
+
const uncontained = stepProcessesUncontained({ sandbox, scoped: stepProcesses.scoped });
|
|
2890
|
+
const startupProblems = uncontained === undefined ? coreProblems : [...coreProblems, uncontained];
|
|
2891
|
+
const unready = yield* startupStep("connect to herdr-core", "30 seconds", core.connect.pipe(flatMap3((connection) => removeRunnerTerminals(connection, input.runnerId)), scoped, andThen2(stepProcesses.reapRunner(input.runnerId)), as(undefined), catchTags({
|
|
2884
2892
|
HerdrCoreMissing: (error) => succeed6(herdrCoreMissing(error)),
|
|
2885
2893
|
HerdrCoreIncompatible: (error) => succeed6(herdrCoreMissing(error))
|
|
2886
2894
|
})));
|
|
@@ -2936,7 +2944,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
2936
2944
|
sandboxBackends: host.backends,
|
|
2937
2945
|
...inSrt === undefined ? undefined : { srtBinaries: inSrt.binaries },
|
|
2938
2946
|
...docker === undefined ? undefined : { docker: { ...docker, runnerId: input.runnerId } }
|
|
2939
|
-
}).pipe(provide2(succeed5(HerdrCore, core)), provide2(layer3));
|
|
2947
|
+
}).pipe(provide2(succeed5(HerdrCore, core)), provide2(succeed5(StepProcesses, stepProcesses)), provide2(layer3));
|
|
2940
2948
|
const activeSlots = new Set;
|
|
2941
2949
|
let claimsInFlight = 0;
|
|
2942
2950
|
const updater = runnerUpdater({
|
|
@@ -2950,7 +2958,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
2950
2958
|
const spawner = yield* ChildProcessSpawner;
|
|
2951
2959
|
yield* startupStep("heartbeat", "30 seconds", stopOnRefusal(controlPlane.client.heartbeatRunner(input.runnerId, {
|
|
2952
2960
|
...reported,
|
|
2953
|
-
problems:
|
|
2961
|
+
problems: startupProblems,
|
|
2954
2962
|
capabilities,
|
|
2955
2963
|
labels: runner.labels
|
|
2956
2964
|
}).pipe(andThen2(controlPlane.client.heartbeatRunnerReplica(input.runnerId, replica.id, {
|
|
@@ -2972,7 +2980,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
2972
2980
|
});
|
|
2973
2981
|
const checkouts = runCheckouts(path.join(runnerRootDir, ".kitman"), rpc.gitCredential);
|
|
2974
2982
|
const platform = yield* context();
|
|
2975
|
-
const updated = yield*
|
|
2983
|
+
const updated = yield* make15();
|
|
2976
2984
|
const scope = yield* scope2;
|
|
2977
2985
|
yield* listenForSignals({
|
|
2978
2986
|
rpc,
|
|
@@ -3096,12 +3104,12 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
3096
3104
|
})), ensuring2(sync2(() => claimsInFlight -= 1)));
|
|
3097
3105
|
}),
|
|
3098
3106
|
finished: () => sync2(() => activeSlots.delete(capacitySlot)),
|
|
3099
|
-
heartbeatReplica: () => controlPlane.client.heartbeatRunner(input.runnerId, {
|
|
3107
|
+
heartbeatReplica: () => flatMap3(stepProcesses.problems, (unreaped) => controlPlane.client.heartbeatRunner(input.runnerId, {
|
|
3100
3108
|
...reported,
|
|
3101
|
-
problems: [...
|
|
3109
|
+
problems: [...startupProblems, ...updater.problems(), ...unreaped],
|
|
3102
3110
|
capabilities,
|
|
3103
3111
|
labels: runner.labels
|
|
3104
|
-
}).pipe(flatMap3(() => controlPlane.client.heartbeatRunnerReplica(input.runnerId, replica.id, {
|
|
3112
|
+
})).pipe(flatMap3(() => controlPlane.client.heartbeatRunnerReplica(input.runnerId, replica.id, {
|
|
3105
3113
|
healthStatus: "healthy",
|
|
3106
3114
|
drainState: updater.claiming() ? "accepting" : "draining",
|
|
3107
3115
|
capacity: { maxConcurrentRuns: concurrency },
|
|
@@ -3161,7 +3169,7 @@ function mcpCommand(args) {
|
|
|
3161
3169
|
if (command.action === "run") {
|
|
3162
3170
|
if (command.args.length > 0)
|
|
3163
3171
|
return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
|
|
3164
|
-
const { runMcpServerCommand } = yield* promise(() => import("./chunk-
|
|
3172
|
+
const { runMcpServerCommand } = yield* promise(() => import("./chunk-y1tnxz9f.js"));
|
|
3165
3173
|
return yield* runMcpServerCommand({ flags: command.flags });
|
|
3166
3174
|
}
|
|
3167
3175
|
if (command.action !== "setup")
|
|
@@ -4372,9 +4380,9 @@ function claimCommand(args) {
|
|
|
4372
4380
|
}
|
|
4373
4381
|
});
|
|
4374
4382
|
}
|
|
4375
|
-
var KitWriter = map8(promise(() => import("./chunk-
|
|
4383
|
+
var KitWriter = map8(promise(() => import("./chunk-d82t42vr.js")), (build) => build.writeKit);
|
|
4376
4384
|
var KitBuilder = Reference("kitman/cli/KitBuilder", {
|
|
4377
|
-
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-
|
|
4385
|
+
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-d82t42vr.js")), (build) => build.buildKit(directory))
|
|
4378
4386
|
});
|
|
4379
4387
|
var uploadKit = (client, workspaceId, built) => gen(function* () {
|
|
4380
4388
|
yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
|
|
@@ -5132,7 +5140,7 @@ function downloadPresignedAsset(download, outputPath) {
|
|
|
5132
5140
|
return gen(function* () {
|
|
5133
5141
|
const fs = yield* FileSystem;
|
|
5134
5142
|
const failed = (cause) => new CliError({ message: `Asset download failed: ${String(cause)}` });
|
|
5135
|
-
const response = yield* send(
|
|
5143
|
+
const response = yield* send(make4(download.method)(download.url), failed);
|
|
5136
5144
|
if (response.status < 200 || response.status >= 300)
|
|
5137
5145
|
return yield* new CliError({ message: `Asset download failed with ${response.status}` });
|
|
5138
5146
|
const body = yield* response.arrayBuffer.pipe(mapError2((error) => failed(error.message)));
|