@kitman-sh/cli 0.11.0-rc.4 → 0.11.0-rc.6
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-bv9e34qz.js → chunk-0qz10ek8.js} +1 -1
- package/dist/{chunk-7d8prq0a.js → chunk-248msks2.js} +4 -4
- package/dist/{chunk-znh6xbze.js → chunk-3d4d52e5.js} +177 -28
- package/dist/{chunk-pqz98b85.js → chunk-5hx3j5x8.js} +5 -5
- package/dist/{chunk-cegdw7gw.js → chunk-5j848ckb.js} +2 -2
- package/dist/{chunk-9ew87kjc.js → chunk-6pyxykt1.js} +212 -7
- package/dist/{chunk-nb36pw5d.js → chunk-7fbpsnt7.js} +8 -8
- package/dist/{chunk-k6mfj25g.js → chunk-9a2r12ye.js} +3 -3
- package/dist/{chunk-y0q2574w.js → chunk-b6m9rfzj.js} +12 -12
- package/dist/{chunk-6zrq5xq2.js → chunk-bs81bt3q.js} +7 -7
- package/dist/{chunk-xmq9zpr1.js → chunk-c6rbt85q.js} +1 -1
- package/dist/{chunk-k2b10qys.js → chunk-cnzz61ta.js} +19 -19
- package/dist/{chunk-kbhm8p3c.js → chunk-d9bv70qb.js} +5 -5
- package/dist/{chunk-0h5et1rg.js → chunk-egb7pjjz.js} +6 -6
- package/dist/{chunk-anf9ddey.js → chunk-japwbj9n.js} +2 -2
- package/dist/{chunk-bj73db3f.js → chunk-nzjb36ad.js} +1 -1
- package/dist/{chunk-4ngdyd3k.js → chunk-q9pbynx3.js} +17 -17
- package/dist/{chunk-cbwmsy27.js → chunk-rtqdqr0v.js} +114 -464
- package/dist/{chunk-2sfgqfgq.js → chunk-sk6ceghr.js} +2 -2
- package/dist/{chunk-2aj4ym2c.js → chunk-vkgqtwqm.js} +7 -7
- package/dist/{chunk-tx61h9d8.js → chunk-vmv7gwwr.js} +6 -6
- package/dist/{chunk-txyp31q5.js → chunk-vtfwjhzh.js} +60 -60
- package/dist/{chunk-dc681k94.js → chunk-x7b9bwk6.js} +4 -4
- package/dist/{chunk-rjdptgqf.js → chunk-z450wa10.js} +4 -4
- 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,
|
|
@@ -95,7 +95,7 @@ import {
|
|
|
95
95
|
decodeJsonString,
|
|
96
96
|
encodeJsonStringSync,
|
|
97
97
|
encodePrettyJsonString
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-vtfwjhzh.js";
|
|
99
99
|
import {
|
|
100
100
|
tap,
|
|
101
101
|
mapError,
|
|
@@ -107,7 +107,7 @@ import {
|
|
|
107
107
|
withDefault,
|
|
108
108
|
option,
|
|
109
109
|
String2
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-3d4d52e5.js";
|
|
111
111
|
import {
|
|
112
112
|
currentTimeMillis,
|
|
113
113
|
SecureRandom,
|
|
@@ -215,10 +215,10 @@ import {
|
|
|
215
215
|
harnessNames,
|
|
216
216
|
herdrRunnerCapabilities2,
|
|
217
217
|
declaredChecks
|
|
218
|
-
} from "./chunk-
|
|
218
|
+
} from "./chunk-rtqdqr0v.js";
|
|
219
219
|
import {
|
|
220
220
|
Id
|
|
221
|
-
} from "./chunk-
|
|
221
|
+
} from "./chunk-0qz10ek8.js";
|
|
222
222
|
import {
|
|
223
223
|
toJsonValue,
|
|
224
224
|
isOneOf,
|
|
@@ -228,11 +228,11 @@ import {
|
|
|
228
228
|
isObject,
|
|
229
229
|
isJsonObject,
|
|
230
230
|
isString
|
|
231
|
-
} from "./chunk-
|
|
231
|
+
} from "./chunk-c6rbt85q.js";
|
|
232
232
|
import {
|
|
233
233
|
ChildProcessSpawner,
|
|
234
234
|
make3
|
|
235
|
-
} from "./chunk-
|
|
235
|
+
} from "./chunk-sk6ceghr.js";
|
|
236
236
|
|
|
237
237
|
// apps/cli/src/cli-error.ts
|
|
238
238
|
function cliErrorCode(error, status) {
|
|
@@ -527,10 +527,10 @@ var sandboxMissing = (sandbox, missing) => ({
|
|
|
527
527
|
var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
|
|
528
528
|
var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
|
|
529
529
|
var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
|
|
530
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
530
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-x7b9bwk6.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
|
|
531
531
|
});
|
|
532
532
|
var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
|
|
533
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
533
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-x7b9bwk6.js")), (module) => module.updateHerdrCore(options))
|
|
534
534
|
});
|
|
535
535
|
var herdrCoreMissing = (error) => {
|
|
536
536
|
if (isTagged(error, "HerdrCoreMissing"))
|
|
@@ -932,7 +932,7 @@ var syncTargets = (harness) => gen(function* () {
|
|
|
932
932
|
});
|
|
933
933
|
var syncKits = (input) => gen(function* () {
|
|
934
934
|
const fs = yield* FileSystem;
|
|
935
|
-
const { syncKitSetup } = yield* promise(() => import("./chunk-
|
|
935
|
+
const { syncKitSetup } = yield* promise(() => import("./chunk-7fbpsnt7.js"));
|
|
936
936
|
const harnesses = yield* syncTargets(input.harness);
|
|
937
937
|
const chain = yield* input.client.getKitChain(input.workspaceId);
|
|
938
938
|
for (const { name, problem } of chain.skipped)
|
|
@@ -1850,7 +1850,7 @@ var package_default = {
|
|
|
1850
1850
|
};
|
|
1851
1851
|
|
|
1852
1852
|
// apps/cli/src/scaffold.ts
|
|
1853
|
-
var cliVersion = "0.11.0-rc.
|
|
1853
|
+
var cliVersion = "0.11.0-rc.6";
|
|
1854
1854
|
var packageJson = (name, scaffold) => `${JSON.stringify({
|
|
1855
1855
|
name,
|
|
1856
1856
|
private: true,
|
|
@@ -2110,7 +2110,7 @@ var Usage = [
|
|
|
2110
2110
|
"Every run, loop, agent, verify, constraint, secret, claim, deploy, dev and kit command takes --json."
|
|
2111
2111
|
].join(`
|
|
2112
2112
|
`);
|
|
2113
|
-
var agentRuntime = promise(() => import("./chunk-
|
|
2113
|
+
var agentRuntime = promise(() => import("./chunk-cnzz61ta.js"));
|
|
2114
2114
|
var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
|
|
2115
2115
|
defaultValue: () => gen(function* () {
|
|
2116
2116
|
const tui = yield* tryPromise({
|
|
@@ -3061,7 +3061,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
|
|
|
3061
3061
|
});
|
|
3062
3062
|
var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
|
|
3063
3063
|
defaultValue: () => (options) => gen(function* () {
|
|
3064
|
-
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-
|
|
3064
|
+
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-vkgqtwqm.js"));
|
|
3065
3065
|
return yield* makeRunnerRpcClient({
|
|
3066
3066
|
runnerId: options.runnerId,
|
|
3067
3067
|
bearer: options.bearer,
|
|
@@ -3341,7 +3341,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
3341
3341
|
const checkouts = runCheckouts(path.join(runnerRootDir, ".kitman"), rpc.gitCredential);
|
|
3342
3342
|
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);
|
|
3343
3343
|
const platform = yield* context();
|
|
3344
|
-
const updated = yield*
|
|
3344
|
+
const updated = yield* make16();
|
|
3345
3345
|
const scope = yield* scope2;
|
|
3346
3346
|
const startUpdate = (update) => update.pipe(catch_((error) => andThen2(restartOntoUpdate(input.runnerId), fail5(updated, error))), provideContext2(platform), forkIn(scope), asVoid);
|
|
3347
3347
|
const refusedForProtocol = container ? updater.stopWhenDrained(new RunnerStopped({ problem: updateRequired })).pipe(catch_((stopped) => fail5(updated, stopped)), forkIn(scope), asVoid) : startUpdate(updater.updateRequired);
|
|
@@ -3584,7 +3584,7 @@ function mcpCommand(args) {
|
|
|
3584
3584
|
if (command.action === "run") {
|
|
3585
3585
|
if (command.args.length > 0)
|
|
3586
3586
|
return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
|
|
3587
|
-
const { runMcpServerCommand } = yield* promise(() => import("./chunk-
|
|
3587
|
+
const { runMcpServerCommand } = yield* promise(() => import("./chunk-bs81bt3q.js"));
|
|
3588
3588
|
return yield* runMcpServerCommand({ flags: command.flags });
|
|
3589
3589
|
}
|
|
3590
3590
|
if (command.action !== "setup")
|
|
@@ -4838,9 +4838,9 @@ function changeRequestCommand(args) {
|
|
|
4838
4838
|
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}`);
|
|
4839
4839
|
});
|
|
4840
4840
|
}
|
|
4841
|
-
var KitWriter = map8(promise(() => import("./chunk-
|
|
4841
|
+
var KitWriter = map8(promise(() => import("./chunk-b6m9rfzj.js")), (build) => build.writeKit);
|
|
4842
4842
|
var KitBuilder = Reference("kitman/cli/KitBuilder", {
|
|
4843
|
-
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-
|
|
4843
|
+
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-b6m9rfzj.js")), (build) => build.buildKit(directory))
|
|
4844
4844
|
});
|
|
4845
4845
|
var uploadKit = (client, workspaceId, built) => gen(function* () {
|
|
4846
4846
|
yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
|