@kitman-sh/cli 0.27.1 → 0.28.0
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-nhe2pgzz.js → chunk-egzbfz18.js} +1 -1
- package/dist/{chunk-dfvamygr.js → chunk-jhby2e0v.js} +55 -13
- package/dist/{chunk-mpxtpwqp.js → chunk-sgtt81qc.js} +1 -1
- package/dist/{chunk-g9z2pdfh.js → chunk-w4mr1bhh.js} +1 -1
- package/dist/{chunk-sxjz1jg3.js → chunk-zty7be4e.js} +11 -8
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/{chunk-mvqggmpj.js → chunk-fpmmafh8.js} +8 -8
|
@@ -4152,6 +4152,23 @@ var systemStepProcessesLayer = effect(StepProcesses, gen(function* () {
|
|
|
4152
4152
|
return makeStepProcesses(table, { scopes: yield* systemdScopes });
|
|
4153
4153
|
}));
|
|
4154
4154
|
|
|
4155
|
+
// packages/agent-runtime/src/thread-budget.ts
|
|
4156
|
+
import { availableParallelism } from "os";
|
|
4157
|
+
var threadBudget = (cores, concurrency) => Math.max(2, Math.floor(cores / concurrency));
|
|
4158
|
+
var hostThreadBudget = (concurrency) => threadBudget(availableParallelism(), concurrency);
|
|
4159
|
+
var threadBudgetVariables = [
|
|
4160
|
+
"GOMAXPROCS",
|
|
4161
|
+
"RAYON_NUM_THREADS",
|
|
4162
|
+
"UV_THREADPOOL_SIZE",
|
|
4163
|
+
"VITEST_MAX_WORKERS"
|
|
4164
|
+
];
|
|
4165
|
+
var threadBudgetNames = new Set(threadBudgetVariables);
|
|
4166
|
+
var threadBudgetEnvironment = (budget) => Object.fromEntries(threadBudgetVariables.map((name) => [name, String(budget)]));
|
|
4167
|
+
var threadBudgetCollision = (kind, names) => {
|
|
4168
|
+
const reserved = names.filter((name) => threadBudgetNames.has(name));
|
|
4169
|
+
return reserved.length === 0 ? undefined : `The ${kind} ${reserved.join(", ")} name a thread budget variable, which the Runner sets for every attempt; rename them.`;
|
|
4170
|
+
};
|
|
4171
|
+
|
|
4155
4172
|
// packages/agent-runtime/src/herdr-core-agent-backend.ts
|
|
4156
4173
|
var launchTimeout = "120 seconds";
|
|
4157
4174
|
var startupBlockedMs = 5000;
|
|
@@ -4345,6 +4362,9 @@ var runAttempt = (request, options) => gen(function* () {
|
|
|
4345
4362
|
const bound = yield* result(requireSecretHosts(request.launch.secrets, request.launch.secretDestinations));
|
|
4346
4363
|
if (isFailure(bound))
|
|
4347
4364
|
return failed(bound.failure.reason, bound.failure.summary);
|
|
4365
|
+
const reservedSecrets = threadBudgetCollision("Secrets", Object.keys(secrets));
|
|
4366
|
+
if (reservedSecrets !== undefined)
|
|
4367
|
+
return failed("secret_name_reserved", reservedSecrets);
|
|
4348
4368
|
const referenced = request.sandbox.backend === "host" ? undefined : secretReferences(secrets, request.launch.secretDestinations ?? {});
|
|
4349
4369
|
const holdSecrets = (initial) => stepSecretRegistry(stepSecretDirectory(options.home, attempt.id), initial, referenced?.references ?? {}).pipe(mapError2(() => new AgentStepFailure({
|
|
4350
4370
|
reason: "secret_registry_unwritable",
|
|
@@ -4376,7 +4396,10 @@ var runAttempt = (request, options) => gen(function* () {
|
|
|
4376
4396
|
launch
|
|
4377
4397
|
});
|
|
4378
4398
|
const harnessArgv = [launch.binary, ...launch.args];
|
|
4379
|
-
const
|
|
4399
|
+
const attemptEnvironment = {
|
|
4400
|
+
...stepProcessEnvironment(request.runnerId, attempt.id),
|
|
4401
|
+
...threadBudgetEnvironment(yield* options.threadBudget)
|
|
4402
|
+
};
|
|
4380
4403
|
const sandboxed = gen(function* () {
|
|
4381
4404
|
switch (request.sandbox.backend) {
|
|
4382
4405
|
case "srt": {
|
|
@@ -4412,7 +4435,7 @@ var runAttempt = (request, options) => gen(function* () {
|
|
|
4412
4435
|
...loginReferences,
|
|
4413
4436
|
...policy.environment,
|
|
4414
4437
|
...srtCacheEnvironment2(`${configDir}/cache`),
|
|
4415
|
-
...
|
|
4438
|
+
...attemptEnvironment
|
|
4416
4439
|
};
|
|
4417
4440
|
return {
|
|
4418
4441
|
argv: withOnlyEnvironment2([...Object.keys(env), "TERM", "COLORTERM"], registry === undefined ? srtArgv2(options.srtCommand ?? pinnedSrtCommand2(), settingsFile, harnessArgv) : srtStepArgv2(options.srtStepCommand ?? pinnedSrtStepCommand2(), settingsFile, registry.file, harnessArgv)),
|
|
@@ -4469,12 +4492,16 @@ var runAttempt = (request, options) => gen(function* () {
|
|
|
4469
4492
|
command: ["sh", "-c", 'p=$(command -v -- "$1") && [ -f "$p" ] && [ -x "$p" ]', "sh", command],
|
|
4470
4493
|
timeout: "30 seconds"
|
|
4471
4494
|
}).pipe(map9((result) => result.exitCode === 0), mapError2(() => unavailable)));
|
|
4472
|
-
const env = { ...policy.environment, ...
|
|
4495
|
+
const env = { ...policy.environment, ...attemptEnvironment };
|
|
4473
4496
|
return { argv: dockerExecArgv({ container, workspace, env, argv: harnessArgv }), env, registry };
|
|
4474
4497
|
}
|
|
4475
4498
|
default:
|
|
4476
4499
|
yield* requireKitCommands(kitSetup, runsOnHost);
|
|
4477
|
-
const env = {
|
|
4500
|
+
const env = {
|
|
4501
|
+
...yield* inheritedEnvironment2(["SSH_AUTH_SOCK"]),
|
|
4502
|
+
...policy.environment,
|
|
4503
|
+
...attemptEnvironment
|
|
4504
|
+
};
|
|
4478
4505
|
return { argv: harnessArgv, env, registry: undefined };
|
|
4479
4506
|
}
|
|
4480
4507
|
});
|
|
@@ -4650,7 +4677,8 @@ var herdrCoreAgentBackendLayer = (options) => effect(AgentBackend, gen(function*
|
|
|
4650
4677
|
secretRevocationMs: options.secretRevocationMs ?? 30000,
|
|
4651
4678
|
...options.srtBinaries === undefined ? undefined : { srtBinaries: options.srtBinaries },
|
|
4652
4679
|
...options.docker === undefined ? undefined : { docker: options.docker },
|
|
4653
|
-
stepProcesses: yield* StepProcesses
|
|
4680
|
+
stepProcesses: yield* StepProcesses,
|
|
4681
|
+
threadBudget: options.threadBudget ?? sync2(() => hostThreadBudget(1))
|
|
4654
4682
|
};
|
|
4655
4683
|
return AgentBackend.of({
|
|
4656
4684
|
sandboxBackends,
|
|
@@ -8338,7 +8366,7 @@ var deployDetail = (output, exitCode) => {
|
|
|
8338
8366
|
const ended = exitCode === undefined ? `${deployScript} did not exit in time` : `${deployScript} exited with exit code ${exitCode}`;
|
|
8339
8367
|
return `${ended}: ${redactedOutputTail(output, detailLimit - ended.length - 2)}`;
|
|
8340
8368
|
};
|
|
8341
|
-
var deployTag = (work, deploy, checkouts, mayRun, timeout = deployTimeout) => gen(function* () {
|
|
8369
|
+
var deployTag = (work, deploy, checkouts, mayRun, env, timeout = deployTimeout) => gen(function* () {
|
|
8342
8370
|
const checkout = yield* checkouts.checkout({ runId: work.runId, id: work.id, baseRevision: work.revision }, work.repoBinding);
|
|
8343
8371
|
const tagRef = `refs/tags/${deploy.tag}`;
|
|
8344
8372
|
if (!(yield* executableAt(checkout, "HEAD"))) {
|
|
@@ -8367,7 +8395,7 @@ var deployTag = (work, deploy, checkouts, mayRun, timeout = deployTimeout) => ge
|
|
|
8367
8395
|
let printed = "";
|
|
8368
8396
|
const ran = yield* runProcess2([`${checkout}/${deployScript}`, deploy.tag, ...deploy.previousTag === undefined ? [] : [deploy.previousTag]], {
|
|
8369
8397
|
cwd: checkout,
|
|
8370
|
-
env: { GIT_TERMINAL_PROMPT: "0" },
|
|
8398
|
+
env: { ...env, GIT_TERMINAL_PROMPT: "0" },
|
|
8371
8399
|
timeout,
|
|
8372
8400
|
onOutput: (chunk) => sync2(() => {
|
|
8373
8401
|
printed = (printed + decoder.decode(chunk, { stream: true })).slice(-shellOutputTailChars2);
|
|
@@ -8671,7 +8699,7 @@ var checkSandboxPolicy = (work, sandbox, checkout, cache, filesDir, postgresHost
|
|
|
8671
8699
|
environment: srtCacheEnvironment2(cache)
|
|
8672
8700
|
});
|
|
8673
8701
|
var checkGitEnvironment = { GIT_CONFIG_GLOBAL: "/dev/null", GIT_TERMINAL_PROMPT: "0" };
|
|
8674
|
-
var checkRunner = (work, sandbox, cache, inherited) => (checkout) => ({
|
|
8702
|
+
var checkRunner = (work, sandbox, cache, inherited, threadBudget) => (checkout) => ({
|
|
8675
8703
|
command,
|
|
8676
8704
|
cwd,
|
|
8677
8705
|
filesDir,
|
|
@@ -8684,7 +8712,12 @@ var checkRunner = (work, sandbox, cache, inherited) => (checkout) => ({
|
|
|
8684
8712
|
runnerGitConfig
|
|
8685
8713
|
}) => {
|
|
8686
8714
|
const gitEnvironment = runnerGitConfig === true ? { GIT_TERMINAL_PROMPT: "0" } : checkGitEnvironment;
|
|
8687
|
-
const env = {
|
|
8715
|
+
const env = {
|
|
8716
|
+
...added,
|
|
8717
|
+
...threadBudgetEnvironment(threadBudget),
|
|
8718
|
+
...gitEnvironment,
|
|
8719
|
+
KITMAN_RUN_FILES_DIR: filesDir
|
|
8720
|
+
};
|
|
8688
8721
|
const output = onOutput === undefined ? undefined : { onOutput };
|
|
8689
8722
|
if (sandbox === undefined || sandbox.backend === undefined) {
|
|
8690
8723
|
return runShell2(command, {
|
|
@@ -9375,7 +9408,7 @@ var removeUntracked = (worktree, files) => forEach(chunksOf(files, 200), (some)
|
|
|
9375
9408
|
"--",
|
|
9376
9409
|
...some.map((file) => `:(literal,top)${file}`)
|
|
9377
9410
|
]), { discard: true });
|
|
9378
|
-
var afterMergeRunner = (sandbox) => (work, worktree, command, args) => gen(function* () {
|
|
9411
|
+
var afterMergeRunner = (sandbox, threadBudget = hostThreadBudget(1)) => (work, worktree, command, args) => gen(function* () {
|
|
9379
9412
|
const { repoBinding } = work;
|
|
9380
9413
|
if (repoBinding === undefined)
|
|
9381
9414
|
return yield* new AfterMergeUnrun({ message: "The Step has no repository" });
|
|
@@ -9391,7 +9424,7 @@ var afterMergeRunner = (sandbox) => (work, worktree, command, args) => gen(funct
|
|
|
9391
9424
|
repoBinding,
|
|
9392
9425
|
...work.storageOrigin === undefined ? undefined : { storageOrigin: work.storageOrigin },
|
|
9393
9426
|
...work.hosts === undefined ? undefined : { hosts: work.hosts }
|
|
9394
|
-
}, sandbox, cache, inherited)(worktree);
|
|
9427
|
+
}, sandbox, cache, inherited, threadBudget)(worktree);
|
|
9395
9428
|
yield* installIn(worktree, run);
|
|
9396
9429
|
yield* runCommand2("git", ["-C", worktree, "reset", "--hard", "--quiet", "HEAD"]);
|
|
9397
9430
|
const installed = yield* untrackedFiles(worktree);
|
|
@@ -9453,6 +9486,9 @@ var runApprovedCommand = (work, command, checkout, sandboxed, run, runFiles, rev
|
|
|
9453
9486
|
const cwd = path.join(checkout, command.workingDirectory ?? ".");
|
|
9454
9487
|
if (!(yield* commandFileFound(command, checkout)))
|
|
9455
9488
|
return commandRan({ result: { status: "missing" } });
|
|
9489
|
+
const reserved = threadBudgetCollision("variables", Object.keys(command.env ?? {})) ?? threadBudgetCollision("Secrets", Object.keys(secretValues));
|
|
9490
|
+
if (reserved !== undefined)
|
|
9491
|
+
return commandRan({ failed: reserved });
|
|
9456
9492
|
const bound = yield* result(requireSecretHosts(secretValues, command.secretDestinations));
|
|
9457
9493
|
if (isFailure(bound))
|
|
9458
9494
|
return commandRan({ failed: bound.failure.summary });
|
|
@@ -9532,7 +9568,8 @@ var verificationExecutor = (input) => (work) => gen(function* () {
|
|
|
9532
9568
|
failureSummary: "A shared Runner runs verifications only in `srt` or `docker`."
|
|
9533
9569
|
};
|
|
9534
9570
|
const cache = yield* tempDirectoryScoped(yield* FileSystem, { prefix: "kitman-verify-cache-" });
|
|
9535
|
-
const
|
|
9571
|
+
const threadBudget = input.threadBudget ?? hostThreadBudget(1);
|
|
9572
|
+
const runIn = checkRunner(work, input.sandbox, cache, yield* inheritedEnvironment2(srtInheritedEnv2), threadBudget);
|
|
9536
9573
|
const checkouts = runCheckouts(input.rootDir, input.gitCredentials);
|
|
9537
9574
|
if (work.resolve !== undefined)
|
|
9538
9575
|
return yield* resolveRevisions(work, work.resolve.revisions, checkouts);
|
|
@@ -9541,7 +9578,7 @@ var verificationExecutor = (input) => (work) => gen(function* () {
|
|
|
9541
9578
|
if (work.compare !== undefined)
|
|
9542
9579
|
return yield* compareRevisions(work, work.compare, checkouts);
|
|
9543
9580
|
if (work.deploy !== undefined) {
|
|
9544
|
-
const ran = yield* deployTag(work, work.deploy, checkouts, input.runsDeployScripts === true && work.deploy.runsScript === true, input.deployTimeout);
|
|
9581
|
+
const ran = yield* deployTag(work, work.deploy, checkouts, input.runsDeployScripts === true && work.deploy.runsScript === true, threadBudgetEnvironment(threadBudget), input.deployTimeout);
|
|
9545
9582
|
if ("failed" in ran)
|
|
9546
9583
|
return { status: "failed", failureSummary: ran.failed };
|
|
9547
9584
|
return {
|
|
@@ -9778,6 +9815,7 @@ export {
|
|
|
9778
9815
|
herdrRunnerCapabilitiesForRepoBinding2 as herdrRunnerCapabilitiesForRepoBinding,
|
|
9779
9816
|
herdrSandboxBackends,
|
|
9780
9817
|
homeDirectories,
|
|
9818
|
+
hostThreadBudget,
|
|
9781
9819
|
inheritedEnvironment2 as inheritedEnvironment,
|
|
9782
9820
|
isPathWithin2 as isPathWithin,
|
|
9783
9821
|
kitMcpHosts,
|
|
@@ -9862,6 +9900,10 @@ export {
|
|
|
9862
9900
|
systemProcessTable,
|
|
9863
9901
|
systemStepProcessesLayer,
|
|
9864
9902
|
systemdScopes,
|
|
9903
|
+
threadBudget,
|
|
9904
|
+
threadBudgetCollision,
|
|
9905
|
+
threadBudgetEnvironment,
|
|
9906
|
+
threadBudgetVariables,
|
|
9865
9907
|
tomlKeyPath2 as tomlKeyPath,
|
|
9866
9908
|
tomlTableHeader2 as tomlTableHeader,
|
|
9867
9909
|
updateHerdrCore2 as updateHerdrCore,
|
|
@@ -2211,7 +2211,7 @@ var pathOfLink = (link) => {
|
|
|
2211
2211
|
return page === null ? link : page[1] || "index";
|
|
2212
2212
|
};
|
|
2213
2213
|
var UnpinnedSdkLink = "https://cdn.jsdelivr.net/npm/@kitman-sh/sdk/";
|
|
2214
|
-
var pinnedLink2 = (link, version = "0.
|
|
2214
|
+
var pinnedLink2 = (link, version = "0.28.0") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
|
|
2215
2215
|
var pageOf = (path) => path.split("#")[0];
|
|
2216
2216
|
var exportName = (section) => section.path.startsWith("sdk/") ? section.path.split("#")[1] ?? "" : "";
|
|
2217
2217
|
function excerpt(text, queryTerms) {
|
|
@@ -3268,7 +3268,7 @@ var shipped_steps_generated_default = {
|
|
|
3268
3268
|
};
|
|
3269
3269
|
|
|
3270
3270
|
// apps/cli/src/scaffold-files.ts
|
|
3271
|
-
var cliVersion = "0.
|
|
3271
|
+
var cliVersion = "0.28.0";
|
|
3272
3272
|
var shippedLoopSteps = new Map(Object.entries(shipped_steps_generated_default));
|
|
3273
3273
|
var loopSteps = (loop) => shippedLoopSteps.get(loop) ?? [];
|
|
3274
3274
|
var replacedStep = (loop) => loopSteps(loop).find((step) => step.from === defaultKitName && step.exported?.startsWith("steps.") === true);
|
|
@@ -3533,7 +3533,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
|
|
|
3533
3533
|
|
|
3534
3534
|
// apps/cli/src/commands.ts
|
|
3535
3535
|
var ClientId = "kitman-cli";
|
|
3536
|
-
var agentRuntime = promise(() => import("./chunk-
|
|
3536
|
+
var agentRuntime = promise(() => import("./chunk-jhby2e0v.js"));
|
|
3537
3537
|
var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
|
|
3538
3538
|
defaultValue: () => gen(function* () {
|
|
3539
3539
|
const tui = yield* tryPromise({
|
|
@@ -5178,6 +5178,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
5178
5178
|
herdrRunnerCapabilitiesForRepoBinding,
|
|
5179
5179
|
harnessesInSrt,
|
|
5180
5180
|
homeDirectories,
|
|
5181
|
+
hostThreadBudget,
|
|
5181
5182
|
kitmanBundles,
|
|
5182
5183
|
kitmanMcpPreflight,
|
|
5183
5184
|
lacksLoginSecret,
|
|
@@ -5336,6 +5337,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
5336
5337
|
const root = herdrCoreAgentBackendLayer({
|
|
5337
5338
|
sandboxBackends: host.backends,
|
|
5338
5339
|
srtBinaries,
|
|
5340
|
+
threadBudget: sync2(() => hostThreadBudget(live.settings.concurrency)),
|
|
5339
5341
|
...docker === undefined ? undefined : { docker: { ...docker, runnerId: input.runnerId } }
|
|
5340
5342
|
}).pipe(provide2(succeed5(HerdrCore, core)), provide2(succeed5(StepProcesses, stepProcesses)), provide2(layer3));
|
|
5341
5343
|
const activeSlots = new Set;
|
|
@@ -5484,7 +5486,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
5484
5486
|
runnerScope: scope,
|
|
5485
5487
|
runAfterMerge: (work, worktree, command, args) => {
|
|
5486
5488
|
const sandbox = checkSandbox();
|
|
5487
|
-
return afterMergeRunner(sandbox === undefined ? undefined : { ...sandbox, apiUrl: input.apiUrl, hosts: live.settings.checkHosts })(work, worktree, command, args);
|
|
5489
|
+
return afterMergeRunner(sandbox === undefined ? undefined : { ...sandbox, apiUrl: input.apiUrl, hosts: live.settings.checkHosts }, hostThreadBudget(live.settings.concurrency))(work, worktree, command, args);
|
|
5488
5490
|
},
|
|
5489
5491
|
runAgent: (work, worktree, session, steered, refused, launched) => flatMap3(currentTimeMillis, (now) => agentBackend.execute({
|
|
5490
5492
|
runnerId: input.runnerId,
|
|
@@ -5540,6 +5542,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
5540
5542
|
postgres: dockerCheckPostgres(input.runnerId, replica.id),
|
|
5541
5543
|
...checkDocker === undefined ? undefined : { docker: checkDocker },
|
|
5542
5544
|
runsDeployScripts: personal,
|
|
5545
|
+
threadBudget: hostThreadBudget(live.settings.concurrency),
|
|
5543
5546
|
revokedSecrets: (unit, secrets) => rpc.heartbeat({ workUnitId: unit.id, lease: leaseOf(unit), secrets: [...secrets] }).pipe(map9((state) => state.revokedSecrets ?? [])),
|
|
5544
5547
|
...sandbox === undefined ? undefined : { sandbox: { ...sandbox, apiUrl: input.apiUrl, hosts: live.settings.checkHosts } }
|
|
5545
5548
|
})(work);
|
|
@@ -5645,7 +5648,7 @@ function mcpCommand(args) {
|
|
|
5645
5648
|
if (command.action === "run") {
|
|
5646
5649
|
if (command.args.length > 0)
|
|
5647
5650
|
return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
|
|
5648
|
-
const { runMcpServerCommand } = yield* promise(() => import("./chunk-
|
|
5651
|
+
const { runMcpServerCommand } = yield* promise(() => import("./chunk-egzbfz18.js"));
|
|
5649
5652
|
return yield* runMcpServerCommand({ flags: command.flags });
|
|
5650
5653
|
}
|
|
5651
5654
|
if (command.action !== "setup")
|
|
@@ -6145,7 +6148,7 @@ function programLoopCommand(command) {
|
|
|
6145
6148
|
return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
|
|
6146
6149
|
});
|
|
6147
6150
|
}
|
|
6148
|
-
var docsModule = promise(() => import("./chunk-
|
|
6151
|
+
var docsModule = promise(() => import("./chunk-sgtt81qc.js"));
|
|
6149
6152
|
function docsCommand(args) {
|
|
6150
6153
|
return gen(function* () {
|
|
6151
6154
|
const command = parseCommand(args);
|
|
@@ -7149,7 +7152,7 @@ function changeRequestCommand(args) {
|
|
|
7149
7152
|
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}`);
|
|
7150
7153
|
});
|
|
7151
7154
|
}
|
|
7152
|
-
var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-
|
|
7155
|
+
var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-fpmmafh8.js")), (build) => build.readOutlines(directory)).pipe(mapError2((error) => new CliError({ message: error.message })));
|
|
7153
7156
|
var loopOutline = (command) => gen(function* () {
|
|
7154
7157
|
const path = yield* Path;
|
|
7155
7158
|
const loop = requiredArg(command, "a Loop id");
|
|
@@ -7169,9 +7172,9 @@ var loopOutline = (command) => gen(function* () {
|
|
|
7169
7172
|
`).pipe(mapError2((error) => new CliError({ message: error.message })));
|
|
7170
7173
|
yield* log(`Wrote the outline of ${loop} to ${out}`);
|
|
7171
7174
|
});
|
|
7172
|
-
var KitWriter = map9(promise(() => import("./chunk-
|
|
7175
|
+
var KitWriter = map9(promise(() => import("./chunk-fpmmafh8.js")), (build) => build.writeKit);
|
|
7173
7176
|
var KitBuilder = Reference("kitman/cli/KitBuilder", {
|
|
7174
|
-
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-
|
|
7177
|
+
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-fpmmafh8.js")), (build) => build.buildKit(directory))
|
|
7175
7178
|
});
|
|
7176
7179
|
var uploadKit = (client, workspaceId, built) => gen(function* () {
|
|
7177
7180
|
yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
|
package/dist/index.js
CHANGED
|
@@ -14,6 +14,6 @@ if (args[0] === "srt") {
|
|
|
14
14
|
const { runOpencodeReader } = await import("./chunk-npfdbssf.js");
|
|
15
15
|
runOpencodeReader();
|
|
16
16
|
} else {
|
|
17
|
-
const { runCli } = await import("./chunk-
|
|
17
|
+
const { runCli } = await import("./chunk-zty7be4e.js");
|
|
18
18
|
runCli(args);
|
|
19
19
|
}
|
package/package.json
CHANGED
|
@@ -36,6 +36,14 @@ import {
|
|
|
36
36
|
Json,
|
|
37
37
|
encodePrettyJsonString
|
|
38
38
|
} from "./chunk-h2f26xbd.js";
|
|
39
|
+
import {
|
|
40
|
+
decodeText,
|
|
41
|
+
mkString,
|
|
42
|
+
FileSystem,
|
|
43
|
+
Path,
|
|
44
|
+
withDefault,
|
|
45
|
+
String2
|
|
46
|
+
} from "./chunk-j4b1yvcd.js";
|
|
39
47
|
import {
|
|
40
48
|
SecureRandom,
|
|
41
49
|
layerWebCrypto,
|
|
@@ -53,14 +61,6 @@ import {
|
|
|
53
61
|
kitmanMcpServer,
|
|
54
62
|
RunnerRpcProtocolVersion
|
|
55
63
|
} from "./chunk-xppw33hz.js";
|
|
56
|
-
import {
|
|
57
|
-
decodeText,
|
|
58
|
-
mkString,
|
|
59
|
-
FileSystem,
|
|
60
|
-
Path,
|
|
61
|
-
withDefault,
|
|
62
|
-
String2
|
|
63
|
-
} from "./chunk-j4b1yvcd.js";
|
|
64
64
|
import {
|
|
65
65
|
Packument,
|
|
66
66
|
tarballMatches
|