@kitman-sh/cli 0.12.0-rc.2 → 0.12.0-rc.4
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-0qz10ek8.js → chunk-6b0k02x4.js} +1 -1
- package/dist/{chunk-rzzd7zv3.js → chunk-74txrt4s.js} +4 -4
- package/dist/{chunk-vtfwjhzh.js → chunk-79gx7ek9.js} +70 -28
- package/dist/{chunk-db9q9y8h.js → chunk-7kjsvwzv.js} +5 -5
- package/dist/{chunk-emh8zw7k.js → chunk-aafxvmj1.js} +7 -7
- package/dist/{chunk-d9bv70qb.js → chunk-b50dvx41.js} +5 -5
- package/dist/{chunk-nzjb36ad.js → chunk-bq55md8p.js} +1 -1
- package/dist/{chunk-c6rbt85q.js → chunk-c9007k48.js} +1 -1
- package/dist/{chunk-2ptxq9cq.js → chunk-ckkpqcfv.js} +10 -6
- package/dist/{chunk-myqf27w2.js → chunk-e7q2frvs.js} +7 -7
- package/dist/{chunk-n6hxwdm6.js → chunk-ezf2myj0.js} +3 -3
- package/dist/{chunk-sk6ceghr.js → chunk-jntxtx9j.js} +14 -60
- package/dist/{chunk-vmv7gwwr.js → chunk-k81ay8y5.js} +8 -8
- package/dist/{chunk-2k08hw5q.js → chunk-kybp1mkk.js} +8 -8
- package/dist/{chunk-6pz3nsn5.js → chunk-nzsrse8d.js} +40 -40
- package/dist/{chunk-z450wa10.js → chunk-pw10mq9e.js} +4 -4
- package/dist/{chunk-ha241q06.js → chunk-qjd6w9sw.js} +5 -3
- package/dist/{chunk-fhyn2b38.js → chunk-r1z41qx6.js} +120 -111
- package/dist/{chunk-cjscsbg8.js → chunk-rjasmnav.js} +22 -22
- package/dist/{chunk-7gnrnv4a.js → chunk-t2mr6z38.js} +737 -26
- package/dist/{chunk-bxqfgc6z.js → chunk-w0aj9mkz.js} +8 -7
- package/dist/{chunk-4f72nbw2.js → chunk-w6cm939j.js} +19 -19
- package/dist/{chunk-5j848ckb.js → chunk-xavcp9se.js} +2 -2
- package/dist/{chunk-japwbj9n.js → chunk-xy5f2nv9.js} +2 -2
- package/dist/{chunk-yfamq8xw.js → chunk-ydydx55z.js} +1 -1
- package/dist/{chunk-3d4d52e5.js → chunk-zmcghp8w.js} +23 -18
- 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
|
+
make15,
|
|
16
16
|
_await,
|
|
17
17
|
fail5,
|
|
18
18
|
succeed5,
|
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
decodeJsonString,
|
|
97
97
|
encodeJsonStringSync,
|
|
98
98
|
encodePrettyJsonString
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-79gx7ek9.js";
|
|
100
100
|
import {
|
|
101
101
|
tap,
|
|
102
102
|
mapError,
|
|
@@ -108,7 +108,7 @@ import {
|
|
|
108
108
|
withDefault,
|
|
109
109
|
option,
|
|
110
110
|
String2
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-zmcghp8w.js";
|
|
112
112
|
import {
|
|
113
113
|
currentTimeMillis,
|
|
114
114
|
SecureRandom,
|
|
@@ -156,7 +156,7 @@ import {
|
|
|
156
156
|
digestSha256,
|
|
157
157
|
sha256Hasher,
|
|
158
158
|
raw,
|
|
159
|
-
|
|
159
|
+
make4,
|
|
160
160
|
get,
|
|
161
161
|
put,
|
|
162
162
|
HttpClient,
|
|
@@ -218,10 +218,10 @@ import {
|
|
|
218
218
|
harnessNames,
|
|
219
219
|
herdrRunnerCapabilities2,
|
|
220
220
|
declaredChecks
|
|
221
|
-
} from "./chunk-
|
|
221
|
+
} from "./chunk-r1z41qx6.js";
|
|
222
222
|
import {
|
|
223
223
|
Id
|
|
224
|
-
} from "./chunk-
|
|
224
|
+
} from "./chunk-6b0k02x4.js";
|
|
225
225
|
import {
|
|
226
226
|
toJsonValue,
|
|
227
227
|
isOneOf,
|
|
@@ -231,11 +231,11 @@ import {
|
|
|
231
231
|
isObject,
|
|
232
232
|
isJsonObject,
|
|
233
233
|
isString
|
|
234
|
-
} from "./chunk-
|
|
234
|
+
} from "./chunk-c9007k48.js";
|
|
235
235
|
import {
|
|
236
236
|
ChildProcessSpawner,
|
|
237
|
-
|
|
238
|
-
} from "./chunk-
|
|
237
|
+
make2
|
|
238
|
+
} from "./chunk-jntxtx9j.js";
|
|
239
239
|
|
|
240
240
|
// apps/cli/src/cli-error.ts
|
|
241
241
|
function cliErrorCode(error, status) {
|
|
@@ -987,10 +987,10 @@ var sandboxMissing = (sandbox, missing) => ({
|
|
|
987
987
|
var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
|
|
988
988
|
var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
|
|
989
989
|
var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
|
|
990
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
990
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-74txrt4s.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
|
|
991
991
|
});
|
|
992
992
|
var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
|
|
993
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
993
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-74txrt4s.js")), (module) => module.updateHerdrCore(options))
|
|
994
994
|
});
|
|
995
995
|
var herdrCoreMissing = (error) => {
|
|
996
996
|
if (isTagged(error, "HerdrCoreMissing"))
|
|
@@ -1410,7 +1410,7 @@ var syncTargets = (harness) => gen(function* () {
|
|
|
1410
1410
|
});
|
|
1411
1411
|
var syncKits = (input) => gen(function* () {
|
|
1412
1412
|
const fs = yield* FileSystem;
|
|
1413
|
-
const { syncKitSetup } = yield* promise(() => import("./chunk-
|
|
1413
|
+
const { syncKitSetup } = yield* promise(() => import("./chunk-kybp1mkk.js"));
|
|
1414
1414
|
const harnesses = yield* syncTargets(input.harness);
|
|
1415
1415
|
const chain = yield* input.client.getKitChain(input.workspaceId);
|
|
1416
1416
|
for (const { name, problem } of chain.skipped)
|
|
@@ -1926,7 +1926,7 @@ var ServiceManager = Reference("kitman/cli/ServiceManager", {
|
|
|
1926
1926
|
run: (command, args) => runCommand2(command, args),
|
|
1927
1927
|
attach: (command, args) => gen(function* () {
|
|
1928
1928
|
const spawner = yield* ChildProcessSpawner;
|
|
1929
|
-
const handle = yield* spawner.spawn(
|
|
1929
|
+
const handle = yield* spawner.spawn(make2(command, args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" }));
|
|
1930
1930
|
const exitCode = yield* handle.exitCode;
|
|
1931
1931
|
if (exitCode !== 0)
|
|
1932
1932
|
return yield* new CommandFailed2({ command, reason: `exit code ${exitCode}` });
|
|
@@ -2328,7 +2328,7 @@ var package_default = {
|
|
|
2328
2328
|
};
|
|
2329
2329
|
|
|
2330
2330
|
// apps/cli/src/scaffold.ts
|
|
2331
|
-
var cliVersion = "0.12.0-rc.
|
|
2331
|
+
var cliVersion = "0.12.0-rc.4";
|
|
2332
2332
|
var packageJson = (name, scaffold) => `${JSON.stringify({
|
|
2333
2333
|
name,
|
|
2334
2334
|
private: true,
|
|
@@ -2480,7 +2480,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
|
|
|
2480
2480
|
|
|
2481
2481
|
// apps/cli/src/commands.ts
|
|
2482
2482
|
var ClientId = "kitman-cli";
|
|
2483
|
-
var agentRuntime = promise(() => import("./chunk-
|
|
2483
|
+
var agentRuntime = promise(() => import("./chunk-nzsrse8d.js"));
|
|
2484
2484
|
var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
|
|
2485
2485
|
defaultValue: () => gen(function* () {
|
|
2486
2486
|
const tui = yield* tryPromise({
|
|
@@ -3482,7 +3482,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
|
|
|
3482
3482
|
});
|
|
3483
3483
|
var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
|
|
3484
3484
|
defaultValue: () => (options) => gen(function* () {
|
|
3485
|
-
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-
|
|
3485
|
+
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-aafxvmj1.js"));
|
|
3486
3486
|
return yield* makeRunnerRpcClient({
|
|
3487
3487
|
runnerId: options.runnerId,
|
|
3488
3488
|
bearer: options.bearer,
|
|
@@ -3762,7 +3762,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
3762
3762
|
const checkouts = runCheckouts(path.join(runnerRootDir, ".kitman"), rpc.gitCredential);
|
|
3763
3763
|
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);
|
|
3764
3764
|
const platform = yield* context();
|
|
3765
|
-
const updated = yield*
|
|
3765
|
+
const updated = yield* make15();
|
|
3766
3766
|
const scope = yield* scope2;
|
|
3767
3767
|
const startUpdate = (update) => update.pipe(catch_((error) => andThen2(restartOntoUpdate(input.runnerId), fail5(updated, error))), provideContext2(platform), forkIn(scope), asVoid);
|
|
3768
3768
|
const refusedForProtocol = container ? updater.stopWhenDrained(new RunnerStopped({ problem: updateRequired })).pipe(catch_((stopped) => fail5(updated, stopped)), forkIn(scope), asVoid) : startUpdate(updater.updateRequired);
|
|
@@ -4014,7 +4014,7 @@ function mcpCommand(args) {
|
|
|
4014
4014
|
if (command.action === "run") {
|
|
4015
4015
|
if (command.args.length > 0)
|
|
4016
4016
|
return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
|
|
4017
|
-
const { runMcpServerCommand } = yield* promise(() => import("./chunk-
|
|
4017
|
+
const { runMcpServerCommand } = yield* promise(() => import("./chunk-t2mr6z38.js"));
|
|
4018
4018
|
return yield* runMcpServerCommand({ flags: command.flags });
|
|
4019
4019
|
}
|
|
4020
4020
|
if (command.action !== "setup")
|
|
@@ -4502,7 +4502,7 @@ function programLoopCommand(command) {
|
|
|
4502
4502
|
return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
|
|
4503
4503
|
});
|
|
4504
4504
|
}
|
|
4505
|
-
var docsModule = promise(() => import("./chunk-
|
|
4505
|
+
var docsModule = promise(() => import("./chunk-ydydx55z.js"));
|
|
4506
4506
|
function docsCommand(args) {
|
|
4507
4507
|
return gen(function* () {
|
|
4508
4508
|
const command = parseCommand(args);
|
|
@@ -5322,9 +5322,9 @@ function changeRequestCommand(args) {
|
|
|
5322
5322
|
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}`);
|
|
5323
5323
|
});
|
|
5324
5324
|
}
|
|
5325
|
-
var KitWriter = map8(promise(() => import("./chunk-
|
|
5325
|
+
var KitWriter = map8(promise(() => import("./chunk-w6cm939j.js")), (build) => build.writeKit);
|
|
5326
5326
|
var KitBuilder = Reference("kitman/cli/KitBuilder", {
|
|
5327
|
-
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-
|
|
5327
|
+
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-w6cm939j.js")), (build) => build.buildKit(directory))
|
|
5328
5328
|
});
|
|
5329
5329
|
var uploadKit = (client, workspaceId, built) => gen(function* () {
|
|
5330
5330
|
yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
|
|
@@ -6100,7 +6100,7 @@ function downloadPresignedAsset(download, outputPath) {
|
|
|
6100
6100
|
return gen(function* () {
|
|
6101
6101
|
const fs = yield* FileSystem;
|
|
6102
6102
|
const failed = (cause) => new CliError({ message: `Asset download failed: ${String(cause)}` });
|
|
6103
|
-
const response = yield* send(
|
|
6103
|
+
const response = yield* send(make4(download.method)(download.url), failed);
|
|
6104
6104
|
if (response.status < 200 || response.status >= 300)
|
|
6105
6105
|
return yield* new CliError({ message: `Asset download failed with ${response.status}` });
|
|
6106
6106
|
const body = yield* response.arrayBuffer.pipe(mapError2((error) => failed(error.message)));
|