@kitman-sh/cli 0.13.12 → 0.13.13
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-36s51mp6.js → chunk-3z0wep73.js} +23 -23
- package/dist/{chunk-2xh5p0na.js → chunk-4yzdyte6.js} +7 -7
- package/dist/{chunk-4t6nrgxw.js → chunk-6kz6qa2h.js} +4 -4
- package/dist/{chunk-02ye1s9f.js → chunk-7hf2d50x.js} +9 -9
- package/dist/{chunk-z74fnmqb.js → chunk-7jege23c.js} +18 -18
- package/dist/{chunk-3z9yz32f.js → chunk-82w8rmkc.js} +2 -2
- package/dist/{chunk-n734b61f.js → chunk-9rez0yze.js} +1 -1
- package/dist/{chunk-8cxh8j07.js → chunk-b5abe9c7.js} +35 -35
- package/dist/{chunk-95w14qxp.js → chunk-cxc8d0r3.js} +6 -6
- package/dist/{chunk-1bkrxc3v.js → chunk-fc2bhh5v.js} +2 -2
- package/dist/{chunk-nge8fq10.js → chunk-ga76znz9.js} +5 -5
- package/dist/{chunk-fwja3qb1.js → chunk-gq7y5v3e.js} +1 -1
- package/dist/{chunk-yab3j170.js → chunk-gy9rf14f.js} +3 -3
- package/dist/{chunk-8t1vygmr.js → chunk-j2aw5bss.js} +4 -4
- package/dist/{chunk-x5nv63jj.js → chunk-jwr0rr2p.js} +1 -1
- package/dist/{chunk-szt25e0z.js → chunk-nf9gdnsf.js} +177 -34
- package/dist/{chunk-4m923rz8.js → chunk-nve4pjqm.js} +3 -3
- package/dist/{chunk-zb5pnthp.js → chunk-ptn9g4wd.js} +31 -31
- package/dist/{chunk-ths93svq.js → chunk-pvza175a.js} +141 -282
- package/dist/{chunk-mcw7wvtx.js → chunk-q5w3v4k1.js} +6 -1
- package/dist/{chunk-npjpmb0w.js → chunk-s364dren.js} +6 -6
- package/dist/{chunk-n1aqwdc2.js → chunk-vbygjtdw.js} +7 -7
- package/dist/{chunk-9d03t0pn.js → chunk-wh6eeetn.js} +4 -4
- package/dist/{chunk-eahqsd8h.js → chunk-y1krmnbv.js} +2 -2
- package/dist/{chunk-8pbnfqaz.js → chunk-zw3gf6r5.js} +60 -60
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -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,
|
|
@@ -104,8 +104,21 @@ import {
|
|
|
104
104
|
decodeJsonString,
|
|
105
105
|
encodeJsonStringSync,
|
|
106
106
|
encodePrettyJsonString
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-zw3gf6r5.js";
|
|
108
108
|
import {
|
|
109
|
+
tap,
|
|
110
|
+
mapError,
|
|
111
|
+
decodeText,
|
|
112
|
+
run,
|
|
113
|
+
mkString,
|
|
114
|
+
FileSystem,
|
|
115
|
+
Path,
|
|
116
|
+
withDefault,
|
|
117
|
+
option,
|
|
118
|
+
String2
|
|
119
|
+
} from "./chunk-nf9gdnsf.js";
|
|
120
|
+
import {
|
|
121
|
+
currentTimeMillis,
|
|
109
122
|
SecureRandom,
|
|
110
123
|
layerWebCrypto,
|
|
111
124
|
runMain,
|
|
@@ -217,27 +230,14 @@ import {
|
|
|
217
230
|
harnessNames,
|
|
218
231
|
herdrRunnerCapabilities2,
|
|
219
232
|
declaredChecks
|
|
220
|
-
} from "./chunk-
|
|
233
|
+
} from "./chunk-pvza175a.js";
|
|
221
234
|
import {
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
mapError,
|
|
225
|
-
decodeText,
|
|
226
|
-
run,
|
|
227
|
-
mkString,
|
|
228
|
-
FileSystem,
|
|
229
|
-
Path,
|
|
230
|
-
withDefault,
|
|
231
|
-
option,
|
|
232
|
-
String2
|
|
233
|
-
} from "./chunk-szt25e0z.js";
|
|
235
|
+
Id
|
|
236
|
+
} from "./chunk-q5w3v4k1.js";
|
|
234
237
|
import {
|
|
235
238
|
ChildProcessSpawner,
|
|
236
239
|
make3
|
|
237
|
-
} from "./chunk-
|
|
238
|
-
import {
|
|
239
|
-
Id
|
|
240
|
-
} from "./chunk-mcw7wvtx.js";
|
|
240
|
+
} from "./chunk-82w8rmkc.js";
|
|
241
241
|
|
|
242
242
|
// apps/cli/src/cli-error.ts
|
|
243
243
|
function cliErrorCode(error, status) {
|
|
@@ -1018,10 +1018,10 @@ var sandboxMissing = (sandbox, missing) => ({
|
|
|
1018
1018
|
var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
|
|
1019
1019
|
var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
|
|
1020
1020
|
var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
|
|
1021
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
1021
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-j2aw5bss.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
|
|
1022
1022
|
});
|
|
1023
1023
|
var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
|
|
1024
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
1024
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-j2aw5bss.js")), (module) => module.updateHerdrCore(options))
|
|
1025
1025
|
});
|
|
1026
1026
|
var herdrCoreMissing = (error) => {
|
|
1027
1027
|
if (isTagged(error, "HerdrCoreMissing"))
|
|
@@ -1447,7 +1447,7 @@ var syncTargets = (harness) => gen(function* () {
|
|
|
1447
1447
|
});
|
|
1448
1448
|
var syncKits = (input) => gen(function* () {
|
|
1449
1449
|
const fs = yield* FileSystem;
|
|
1450
|
-
const { syncKitSetup } = yield* promise(() => import("./chunk-
|
|
1450
|
+
const { syncKitSetup } = yield* promise(() => import("./chunk-vbygjtdw.js"));
|
|
1451
1451
|
const harnesses = yield* syncTargets(input.harness);
|
|
1452
1452
|
const chain = yield* input.client.getKitChain(input.workspaceId);
|
|
1453
1453
|
for (const { name, problem } of chain.skipped)
|
|
@@ -2366,7 +2366,7 @@ var package_default = {
|
|
|
2366
2366
|
};
|
|
2367
2367
|
|
|
2368
2368
|
// apps/cli/src/scaffold.ts
|
|
2369
|
-
var cliVersion = "0.13.
|
|
2369
|
+
var cliVersion = "0.13.13";
|
|
2370
2370
|
var packageJson = (name, scaffold) => `${JSON.stringify({
|
|
2371
2371
|
name,
|
|
2372
2372
|
private: true,
|
|
@@ -2518,7 +2518,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
|
|
|
2518
2518
|
|
|
2519
2519
|
// apps/cli/src/commands.ts
|
|
2520
2520
|
var ClientId = "kitman-cli";
|
|
2521
|
-
var agentRuntime = promise(() => import("./chunk-
|
|
2521
|
+
var agentRuntime = promise(() => import("./chunk-3z0wep73.js"));
|
|
2522
2522
|
var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
|
|
2523
2523
|
defaultValue: () => gen(function* () {
|
|
2524
2524
|
const tui = yield* tryPromise({
|
|
@@ -3554,7 +3554,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
|
|
|
3554
3554
|
});
|
|
3555
3555
|
var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
|
|
3556
3556
|
defaultValue: () => (options) => gen(function* () {
|
|
3557
|
-
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-
|
|
3557
|
+
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-cxc8d0r3.js"));
|
|
3558
3558
|
return yield* makeRunnerRpcClient({
|
|
3559
3559
|
runnerId: options.runnerId,
|
|
3560
3560
|
bearer: options.bearer,
|
|
@@ -3866,7 +3866,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
3866
3866
|
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);
|
|
3867
3867
|
yield* suspend3(() => sleep(ownerLogin.expired() ? ownerLoginRetryInterval : ownerLoginInterval)).pipe(andThen2(checkOwnerLogin), forever, forkScoped);
|
|
3868
3868
|
const platform = yield* context();
|
|
3869
|
-
const updated = yield*
|
|
3869
|
+
const updated = yield* make16();
|
|
3870
3870
|
const scope = yield* scope2;
|
|
3871
3871
|
const startUpdate = (update) => update.pipe(catch_((error) => andThen2(restartOntoUpdate(input.runnerId), fail5(updated, error))), provideContext2(platform), forkIn(scope), asVoid);
|
|
3872
3872
|
const refusedForProtocol = container ? updater.stopWhenDrained(new RunnerStopped({ problem: updateRequired })).pipe(catch_((stopped) => fail5(updated, stopped)), forkIn(scope), asVoid) : startUpdate(updater.updateRequired);
|
|
@@ -4118,7 +4118,7 @@ function mcpCommand(args) {
|
|
|
4118
4118
|
if (command.action === "run") {
|
|
4119
4119
|
if (command.args.length > 0)
|
|
4120
4120
|
return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
|
|
4121
|
-
const { runMcpServerCommand } = yield* promise(() => import("./chunk-
|
|
4121
|
+
const { runMcpServerCommand } = yield* promise(() => import("./chunk-b5abe9c7.js"));
|
|
4122
4122
|
return yield* runMcpServerCommand({ flags: command.flags });
|
|
4123
4123
|
}
|
|
4124
4124
|
if (command.action !== "setup")
|
|
@@ -4606,7 +4606,7 @@ function programLoopCommand(command) {
|
|
|
4606
4606
|
return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
|
|
4607
4607
|
});
|
|
4608
4608
|
}
|
|
4609
|
-
var docsModule = promise(() => import("./chunk-
|
|
4609
|
+
var docsModule = promise(() => import("./chunk-9rez0yze.js"));
|
|
4610
4610
|
function docsCommand(args) {
|
|
4611
4611
|
return gen(function* () {
|
|
4612
4612
|
const command = parseCommand(args);
|
|
@@ -4869,7 +4869,7 @@ var runShowLines = (shown) => [
|
|
|
4869
4869
|
...questionLines2(shown.questions.filter((question) => question.status === "open")),
|
|
4870
4870
|
...shown.artifacts.flatMap((artifact) => [`Artifact ${artifact.kind}: ${artifact.title}`, artifact.text]),
|
|
4871
4871
|
...shown.children.map((child) => `Child ${child.name}: ${child.runId} ${child.status}`),
|
|
4872
|
-
...shown.waiting.map((waiting) => waiting.kind === "queue" ? `${waiting.unrunnable === undefined ? "Waiting for a Runner slot for" : "Waiting for a Runner that can run"} ${waiting.name}: ${queueWords(waiting)}` : `Waiting on ${waiting.kind} ${waiting.name}`)
|
|
4872
|
+
...shown.waiting.map((waiting) => waiting.kind === "queue" ? waiting.quotaUntil !== undefined ? `${waiting.name}: ${queueWords(waiting)}` : `${waiting.unrunnable === undefined ? "Waiting for a Runner slot for" : "Waiting for a Runner that can run"} ${waiting.name}: ${queueWords(waiting)}` : `Waiting on ${waiting.kind} ${waiting.name}`)
|
|
4873
4873
|
];
|
|
4874
4874
|
var myTeamsSections = [
|
|
4875
4875
|
["needsYou", "Needs you"],
|
|
@@ -5441,9 +5441,9 @@ function changeRequestCommand(args) {
|
|
|
5441
5441
|
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}`);
|
|
5442
5442
|
});
|
|
5443
5443
|
}
|
|
5444
|
-
var KitWriter = map8(promise(() => import("./chunk-
|
|
5444
|
+
var KitWriter = map8(promise(() => import("./chunk-7hf2d50x.js")), (build) => build.writeKit);
|
|
5445
5445
|
var KitBuilder = Reference("kitman/cli/KitBuilder", {
|
|
5446
|
-
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-
|
|
5446
|
+
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-7hf2d50x.js")), (build) => build.buildKit(directory))
|
|
5447
5447
|
});
|
|
5448
5448
|
var uploadKit = (client, workspaceId, built) => gen(function* () {
|
|
5449
5449
|
yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
|