@kitman-sh/cli 0.42.1 → 0.43.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-kqr3ts9q.js → chunk-0qfaf9h3.js} +15 -14
- package/dist/{chunk-1ay659hm.js → chunk-27e7m975.js} +2 -2
- package/dist/{chunk-nk35kh6w.js → chunk-7ygg19wj.js} +1 -1
- package/dist/{chunk-7n64vjb2.js → chunk-91tvnb8f.js} +7 -7
- package/dist/{chunk-6xnkbrs7.js → chunk-b2btevxm.js} +19 -19
- package/dist/{chunk-gf2np1ak.js → chunk-bbq7q5r6.js} +9 -9
- package/dist/{chunk-evpyks4h.js → chunk-bqebfc06.js} +6 -6
- package/dist/{chunk-7091bpsv.js → chunk-fbddgx6q.js} +2 -2
- package/dist/{chunk-p4asjq9r.js → chunk-fekh3jwz.js} +1 -1
- package/dist/{chunk-4pcknv14.js → chunk-jq5h43a4.js} +35 -16
- package/dist/{chunk-6e1fq0ct.js → chunk-jvwjreb0.js} +4 -4
- package/dist/{chunk-rv8t9jzj.js → chunk-qqc567gx.js} +1 -1
- package/dist/{chunk-dgqjmd95.js → chunk-qxpwkb5f.js} +1 -1
- package/dist/{chunk-4v0dkm5t.js → chunk-rbt72xjw.js} +2 -2
- package/dist/{chunk-8q04gtg1.js → chunk-wv8kt4rb.js} +3 -3
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -333,19 +333,6 @@ import {
|
|
|
333
333
|
harnessesUnsupportedInSrt2,
|
|
334
334
|
harnessesUnsupportedInDocker2
|
|
335
335
|
} from "./chunk-etrfc5cn.js";
|
|
336
|
-
import {
|
|
337
|
-
isDateTime,
|
|
338
|
-
Numeric,
|
|
339
|
-
isWholeNumber,
|
|
340
|
-
guard,
|
|
341
|
-
Id,
|
|
342
|
-
Timestamp,
|
|
343
|
-
ActorType,
|
|
344
|
-
SecretName,
|
|
345
|
-
SecretScope,
|
|
346
|
-
SecretHosts,
|
|
347
|
-
isSecretReference
|
|
348
|
-
} from "./chunk-ea29sbaq.js";
|
|
349
336
|
import {
|
|
350
337
|
isRedacted,
|
|
351
338
|
make,
|
|
@@ -360,6 +347,19 @@ import {
|
|
|
360
347
|
parseFdName,
|
|
361
348
|
fdName
|
|
362
349
|
} from "./chunk-6x08g7m6.js";
|
|
350
|
+
import {
|
|
351
|
+
isDateTime,
|
|
352
|
+
Numeric,
|
|
353
|
+
isWholeNumber,
|
|
354
|
+
guard,
|
|
355
|
+
Id,
|
|
356
|
+
Timestamp,
|
|
357
|
+
ActorType,
|
|
358
|
+
SecretName,
|
|
359
|
+
SecretScope,
|
|
360
|
+
SecretHosts,
|
|
361
|
+
isSecretReference
|
|
362
|
+
} from "./chunk-ea29sbaq.js";
|
|
363
363
|
|
|
364
364
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
|
|
365
365
|
var makeEquivalence3 = Tuple;
|
|
@@ -8382,7 +8382,8 @@ var RunnerCapabilities = Struct({
|
|
|
8382
8382
|
});
|
|
8383
8383
|
var MaxRunnerConcurrency = 32;
|
|
8384
8384
|
var DefaultVerificationConcurrency = MaxRunnerConcurrency;
|
|
8385
|
-
var
|
|
8385
|
+
var autoVerificationConcurrency = (cores) => Math.max(1, Math.ceil(cores / 3));
|
|
8386
|
+
var verificationCap = (settings, cores) => Math.min(settings.concurrency, settings.verificationConcurrency === DefaultVerificationConcurrency && cores !== undefined ? autoVerificationConcurrency(cores) : settings.verificationConcurrency);
|
|
8386
8387
|
var PinnedImage = String4.check(isMaxLength(500), isPattern(new RegExp("^[^\\s@]+@sha256:[a-f0-9]{64}$", "u")));
|
|
8387
8388
|
var RunnerSettings = Struct({
|
|
8388
8389
|
concurrency: Int.check(isGreaterThanOrEqualTo(1), isLessThanOrEqualTo(MaxRunnerConcurrency)),
|
|
@@ -19,13 +19,13 @@ import {
|
|
|
19
19
|
RunnerReplicaRpcs,
|
|
20
20
|
RunnerRunFileRpcs,
|
|
21
21
|
ProgramRpcs
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-0qfaf9h3.js";
|
|
23
23
|
import {
|
|
24
24
|
layerJson,
|
|
25
25
|
make4,
|
|
26
26
|
withHeaders,
|
|
27
27
|
layerProtocolSocket
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-qxpwkb5f.js";
|
|
29
29
|
|
|
30
30
|
// packages/live/src/rpc/runner-client.ts
|
|
31
31
|
var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
|
|
@@ -175,13 +175,7 @@ import {
|
|
|
175
175
|
StepManifest,
|
|
176
176
|
KitSetup,
|
|
177
177
|
RunnerRpcError
|
|
178
|
-
} from "./chunk-
|
|
179
|
-
import {
|
|
180
|
-
guard,
|
|
181
|
-
Id,
|
|
182
|
-
Timestamp,
|
|
183
|
-
ActorType
|
|
184
|
-
} from "./chunk-ea29sbaq.js";
|
|
178
|
+
} from "./chunk-0qfaf9h3.js";
|
|
185
179
|
import {
|
|
186
180
|
currentTimeMillis,
|
|
187
181
|
getCurrent,
|
|
@@ -193,6 +187,12 @@ import {
|
|
|
193
187
|
recommendationProblem,
|
|
194
188
|
questionAdvice
|
|
195
189
|
} from "./chunk-98azvx6g.js";
|
|
190
|
+
import {
|
|
191
|
+
guard,
|
|
192
|
+
Id,
|
|
193
|
+
Timestamp,
|
|
194
|
+
ActorType
|
|
195
|
+
} from "./chunk-ea29sbaq.js";
|
|
196
196
|
var __defProp = Object.defineProperty;
|
|
197
197
|
var __returnValue = (v) => v;
|
|
198
198
|
function __exportSetter(name, newValue) {
|
|
@@ -163,7 +163,6 @@ import {
|
|
|
163
163
|
RunDisplayStates,
|
|
164
164
|
RunnerExecutionBackend,
|
|
165
165
|
MaxRunnerConcurrency,
|
|
166
|
-
verificationCap,
|
|
167
166
|
PinnedImage,
|
|
168
167
|
RunnerSettingNames,
|
|
169
168
|
RunnerSettingsUpdate,
|
|
@@ -253,15 +252,15 @@ import {
|
|
|
253
252
|
harnessNames,
|
|
254
253
|
herdrRunnerCapabilities2,
|
|
255
254
|
declaredChecks
|
|
256
|
-
} from "./chunk-
|
|
257
|
-
import {
|
|
258
|
-
Id,
|
|
259
|
-
Timestamp
|
|
260
|
-
} from "./chunk-ea29sbaq.js";
|
|
255
|
+
} from "./chunk-0qfaf9h3.js";
|
|
261
256
|
import {
|
|
262
257
|
ChildProcessSpawner,
|
|
263
258
|
make3
|
|
264
259
|
} from "./chunk-6x08g7m6.js";
|
|
260
|
+
import {
|
|
261
|
+
Id,
|
|
262
|
+
Timestamp
|
|
263
|
+
} from "./chunk-ea29sbaq.js";
|
|
265
264
|
|
|
266
265
|
// apps/cli/src/cli-error.ts
|
|
267
266
|
function cliErrorCode(error, status) {
|
|
@@ -1329,10 +1328,10 @@ var sandboxMissing = (sandbox, missing) => ({
|
|
|
1329
1328
|
var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
|
|
1330
1329
|
var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
|
|
1331
1330
|
var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
|
|
1332
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
1331
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-qqc567gx.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
|
|
1333
1332
|
});
|
|
1334
1333
|
var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
|
|
1335
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
1334
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-qqc567gx.js")), (module) => module.updateHerdrCore(options))
|
|
1336
1335
|
});
|
|
1337
1336
|
var herdrCoreMissing = (error) => {
|
|
1338
1337
|
if (isTagged(error, "HerdrCoreMissing"))
|
|
@@ -1796,7 +1795,7 @@ var syncTargets = (harness) => gen(function* () {
|
|
|
1796
1795
|
});
|
|
1797
1796
|
var syncKits = (input) => gen(function* () {
|
|
1798
1797
|
const fs = yield* FileSystem;
|
|
1799
|
-
const { syncKitSetup } = yield* promise(() => import("./chunk-
|
|
1798
|
+
const { syncKitSetup } = yield* promise(() => import("./chunk-jvwjreb0.js"));
|
|
1800
1799
|
const harnesses = yield* syncTargets(input.harness);
|
|
1801
1800
|
const chain = yield* input.client.getKitChain(input.workspaceId);
|
|
1802
1801
|
for (const { name, problem } of chain.skipped)
|
|
@@ -3291,7 +3290,7 @@ var shipped_steps_generated_default = {
|
|
|
3291
3290
|
};
|
|
3292
3291
|
|
|
3293
3292
|
// apps/cli/src/scaffold-files.ts
|
|
3294
|
-
var cliVersion = "0.
|
|
3293
|
+
var cliVersion = "0.43.0";
|
|
3295
3294
|
var shippedLoopSteps = new Map(Object.entries(shipped_steps_generated_default));
|
|
3296
3295
|
var loopSteps = (loop) => shippedLoopSteps.get(loop) ?? [];
|
|
3297
3296
|
var replacedStep = (loop) => loopSteps(loop).find((step) => step.from === defaultKitName && step.exported?.startsWith("steps.") === true);
|
|
@@ -3556,7 +3555,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
|
|
|
3556
3555
|
|
|
3557
3556
|
// apps/cli/src/commands.ts
|
|
3558
3557
|
var ClientId = "kitman-cli";
|
|
3559
|
-
var agentRuntime = promise(() => import("./chunk-
|
|
3558
|
+
var agentRuntime = promise(() => import("./chunk-jq5h43a4.js"));
|
|
3560
3559
|
var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
|
|
3561
3560
|
defaultValue: () => gen(function* () {
|
|
3562
3561
|
const tui = yield* tryPromise({
|
|
@@ -5095,7 +5094,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
|
|
|
5095
5094
|
});
|
|
5096
5095
|
var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
|
|
5097
5096
|
defaultValue: () => (options) => gen(function* () {
|
|
5098
|
-
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-
|
|
5097
|
+
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-wv8kt4rb.js"));
|
|
5099
5098
|
return yield* makeRunnerRpcClient({
|
|
5100
5099
|
runnerId: options.runnerId,
|
|
5101
5100
|
bearer: options.bearer,
|
|
@@ -5206,6 +5205,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
5206
5205
|
harnessesInSrt,
|
|
5207
5206
|
homeDirectories,
|
|
5208
5207
|
checkThreadBudget,
|
|
5208
|
+
runnerVerificationCap,
|
|
5209
5209
|
kitmanBundles,
|
|
5210
5210
|
kitmanMcpPreflight,
|
|
5211
5211
|
lacksLoginSecret,
|
|
@@ -5367,7 +5367,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
5367
5367
|
} : undefined;
|
|
5368
5368
|
const appliedSettings = () => ({
|
|
5369
5369
|
concurrency: live.settings.concurrency,
|
|
5370
|
-
verificationConcurrency:
|
|
5370
|
+
verificationConcurrency: runnerVerificationCap(live.settings),
|
|
5371
5371
|
sandbox: live.sandbox,
|
|
5372
5372
|
dockerImage: settings.dockerImage,
|
|
5373
5373
|
checkHosts: live.settings.checkHosts,
|
|
@@ -5421,7 +5421,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
5421
5421
|
bearer: controlPlane.rpcBearer
|
|
5422
5422
|
}).pipe(tap2((opened) => opened.settledRuns([])))));
|
|
5423
5423
|
const signals = yield* makeReplicaSignals;
|
|
5424
|
-
const verifications = verificationPermits(sync2(() =>
|
|
5424
|
+
const verifications = verificationPermits(sync2(() => runnerVerificationCap(live.settings)));
|
|
5425
5425
|
const heartbeat = (beat) => flatMap3(verifications.full, (full) => rpc.heartbeat(full ? { ...beat, takesVerifications: false } : beat));
|
|
5426
5426
|
const bundles = yield* kitmanBundles({
|
|
5427
5427
|
fetch: (digest) => rpc.bundle(digest).pipe(map9((found) => found.bundle)),
|
|
@@ -5695,7 +5695,7 @@ function mcpCommand(args) {
|
|
|
5695
5695
|
if (command.action === "run") {
|
|
5696
5696
|
if (command.args.length > 0)
|
|
5697
5697
|
return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
|
|
5698
|
-
const { runMcpServerCommand } = yield* promise(() => import("./chunk-
|
|
5698
|
+
const { runMcpServerCommand } = yield* promise(() => import("./chunk-bbq7q5r6.js"));
|
|
5699
5699
|
return yield* runMcpServerCommand({ flags: command.flags });
|
|
5700
5700
|
}
|
|
5701
5701
|
if (command.action !== "setup")
|
|
@@ -6195,7 +6195,7 @@ function programLoopCommand(command) {
|
|
|
6195
6195
|
return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
|
|
6196
6196
|
});
|
|
6197
6197
|
}
|
|
6198
|
-
var docsModule = promise(() => import("./chunk-
|
|
6198
|
+
var docsModule = promise(() => import("./chunk-fekh3jwz.js"));
|
|
6199
6199
|
function docsCommand(args) {
|
|
6200
6200
|
return gen(function* () {
|
|
6201
6201
|
const command = parseCommand(args);
|
|
@@ -7199,7 +7199,7 @@ function changeRequestCommand(args) {
|
|
|
7199
7199
|
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}`);
|
|
7200
7200
|
});
|
|
7201
7201
|
}
|
|
7202
|
-
var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-
|
|
7202
|
+
var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-bqebfc06.js")), (build) => build.readOutlines(directory)).pipe(mapError2((error) => new CliError({ message: error.message })));
|
|
7203
7203
|
var loopOutline = (command) => gen(function* () {
|
|
7204
7204
|
const path = yield* Path;
|
|
7205
7205
|
const loop = requiredArg(command, "a Loop id");
|
|
@@ -7219,9 +7219,9 @@ var loopOutline = (command) => gen(function* () {
|
|
|
7219
7219
|
`).pipe(mapError2((error) => new CliError({ message: error.message })));
|
|
7220
7220
|
yield* log(`Wrote the outline of ${loop} to ${out}`);
|
|
7221
7221
|
});
|
|
7222
|
-
var KitWriter = map9(promise(() => import("./chunk-
|
|
7222
|
+
var KitWriter = map9(promise(() => import("./chunk-bqebfc06.js")), (build) => build.writeKit);
|
|
7223
7223
|
var KitBuilder = Reference("kitman/cli/KitBuilder", {
|
|
7224
|
-
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-
|
|
7224
|
+
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-bqebfc06.js")), (build) => build.buildKit(directory))
|
|
7225
7225
|
});
|
|
7226
7226
|
var uploadKit = (client, workspaceId, built) => gen(function* () {
|
|
7227
7227
|
yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
|
|
@@ -170,13 +170,7 @@ import {
|
|
|
170
170
|
runMcpEffect,
|
|
171
171
|
createAgentAuthSignedFetch,
|
|
172
172
|
setupMcpAgentCredential
|
|
173
|
-
} from "./chunk-
|
|
174
|
-
import {
|
|
175
|
-
guard,
|
|
176
|
-
Id,
|
|
177
|
-
Timestamp,
|
|
178
|
-
ActorType
|
|
179
|
-
} from "./chunk-ea29sbaq.js";
|
|
173
|
+
} from "./chunk-0qfaf9h3.js";
|
|
180
174
|
import {
|
|
181
175
|
currentTimeMillis,
|
|
182
176
|
join,
|
|
@@ -198,7 +192,7 @@ import {
|
|
|
198
192
|
import {
|
|
199
193
|
searchDocs2,
|
|
200
194
|
readDoc2
|
|
201
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-rbt72xjw.js";
|
|
202
196
|
import {
|
|
203
197
|
nextInt
|
|
204
198
|
} from "./chunk-8b02x7vv.js";
|
|
@@ -211,7 +205,13 @@ import {
|
|
|
211
205
|
withHeaders,
|
|
212
206
|
layerProtocolSocket,
|
|
213
207
|
ConnectionHooks
|
|
214
|
-
} from "./chunk-
|
|
208
|
+
} from "./chunk-qxpwkb5f.js";
|
|
209
|
+
import {
|
|
210
|
+
guard,
|
|
211
|
+
Id,
|
|
212
|
+
Timestamp,
|
|
213
|
+
ActorType
|
|
214
|
+
} from "./chunk-ea29sbaq.js";
|
|
215
215
|
|
|
216
216
|
// apps/cli/src/mcp.ts
|
|
217
217
|
import { tmpdir as tmpdir2 } from "os";
|
|
@@ -60,26 +60,26 @@ import {
|
|
|
60
60
|
KitDeclarations,
|
|
61
61
|
kitmanMcpServer,
|
|
62
62
|
RunnerRpcProtocolVersion
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-0qfaf9h3.js";
|
|
64
64
|
import {
|
|
65
65
|
Packument,
|
|
66
66
|
tarballMatches
|
|
67
|
-
} from "./chunk-
|
|
68
|
-
import"./chunk-ea29sbaq.js";
|
|
67
|
+
} from "./chunk-7ygg19wj.js";
|
|
69
68
|
import {
|
|
70
69
|
stepDefinedTwice,
|
|
71
70
|
hostSteps,
|
|
72
71
|
exports_activities,
|
|
73
72
|
describeFlag,
|
|
74
73
|
Described
|
|
75
|
-
} from "./chunk-
|
|
76
|
-
import"./chunk-
|
|
74
|
+
} from "./chunk-91tvnb8f.js";
|
|
75
|
+
import"./chunk-27e7m975.js";
|
|
77
76
|
import"./chunk-98azvx6g.js";
|
|
78
77
|
import {
|
|
79
78
|
ChildProcessSpawner,
|
|
80
79
|
make3
|
|
81
80
|
} from "./chunk-6x08g7m6.js";
|
|
82
|
-
import"./chunk-
|
|
81
|
+
import"./chunk-qxpwkb5f.js";
|
|
82
|
+
import"./chunk-ea29sbaq.js";
|
|
83
83
|
|
|
84
84
|
// packages/sdk/src/build/outline/graph.ts
|
|
85
85
|
import {
|
|
@@ -36,10 +36,10 @@ import {
|
|
|
36
36
|
AgentHarnessIds,
|
|
37
37
|
sha2562,
|
|
38
38
|
runCommand2
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-0qfaf9h3.js";
|
|
40
40
|
import {
|
|
41
41
|
NpmRegistry
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-7ygg19wj.js";
|
|
43
43
|
|
|
44
44
|
// packages/agent-runtime/src/config-convergence.ts
|
|
45
45
|
var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
|
|
@@ -176,11 +176,6 @@ import {
|
|
|
176
176
|
encodeUnknownJsonStringSync,
|
|
177
177
|
storable
|
|
178
178
|
} from "./chunk-bqbfyqx6.js";
|
|
179
|
-
import {
|
|
180
|
-
Id,
|
|
181
|
-
secretReference,
|
|
182
|
-
secretPlaceholder
|
|
183
|
-
} from "./chunk-ea29sbaq.js";
|
|
184
179
|
import {
|
|
185
180
|
SecureRandom,
|
|
186
181
|
layerWebCrypto,
|
|
@@ -269,7 +264,7 @@ import {
|
|
|
269
264
|
checkServicesFile,
|
|
270
265
|
checkServices,
|
|
271
266
|
serviceChecks
|
|
272
|
-
} from "./chunk-
|
|
267
|
+
} from "./chunk-0qfaf9h3.js";
|
|
273
268
|
import {
|
|
274
269
|
currentTimeMillis,
|
|
275
270
|
join,
|
|
@@ -334,8 +329,8 @@ import {
|
|
|
334
329
|
applyAgentEnvironmentMaterialization2,
|
|
335
330
|
isPathWithin2,
|
|
336
331
|
skillIdentity2
|
|
337
|
-
} from "./chunk-
|
|
338
|
-
import"./chunk-
|
|
332
|
+
} from "./chunk-fbddgx6q.js";
|
|
333
|
+
import"./chunk-7ygg19wj.js";
|
|
339
334
|
import {
|
|
340
335
|
egressAllowed,
|
|
341
336
|
writeSecretRegistry,
|
|
@@ -362,8 +357,8 @@ import {
|
|
|
362
357
|
rpcRunFiles,
|
|
363
358
|
programHostsEnv,
|
|
364
359
|
undeclaredHostsEnv
|
|
365
|
-
} from "./chunk-
|
|
366
|
-
import"./chunk-
|
|
360
|
+
} from "./chunk-91tvnb8f.js";
|
|
361
|
+
import"./chunk-27e7m975.js";
|
|
367
362
|
import {
|
|
368
363
|
nextInt
|
|
369
364
|
} from "./chunk-8b02x7vv.js";
|
|
@@ -372,7 +367,12 @@ import {
|
|
|
372
367
|
ChildProcessSpawner,
|
|
373
368
|
make3
|
|
374
369
|
} from "./chunk-6x08g7m6.js";
|
|
375
|
-
import"./chunk-
|
|
370
|
+
import"./chunk-qxpwkb5f.js";
|
|
371
|
+
import {
|
|
372
|
+
Id,
|
|
373
|
+
secretReference,
|
|
374
|
+
secretPlaceholder
|
|
375
|
+
} from "./chunk-ea29sbaq.js";
|
|
376
376
|
|
|
377
377
|
// packages/core/src/sync-kit.ts
|
|
378
378
|
import { createHash } from "crypto";
|
|
@@ -4505,12 +4505,29 @@ var systemStepProcessesLayer = effect(StepProcesses, gen(function* () {
|
|
|
4505
4505
|
}));
|
|
4506
4506
|
|
|
4507
4507
|
// packages/agent-runtime/src/thread-budget.ts
|
|
4508
|
+
import { readFileSync } from "fs";
|
|
4508
4509
|
import { availableParallelism } from "os";
|
|
4510
|
+
var cpuQuota = (cpuMax) => {
|
|
4511
|
+
const [max, period] = (cpuMax ?? "max").trim().split(/\s+/);
|
|
4512
|
+
const quota = Number(max) / Number(period);
|
|
4513
|
+
return Number.isFinite(quota) && quota > 0 ? quota : undefined;
|
|
4514
|
+
};
|
|
4515
|
+
var readCpuMax = () => {
|
|
4516
|
+
try {
|
|
4517
|
+
return readFileSync("/sys/fs/cgroup/cpu.max", "utf8");
|
|
4518
|
+
} catch {
|
|
4519
|
+
return;
|
|
4520
|
+
}
|
|
4521
|
+
};
|
|
4522
|
+
var effectiveCores = (cores = availableParallelism(), cpuMax = readCpuMax()) => {
|
|
4523
|
+
const quota = cpuQuota(cpuMax);
|
|
4524
|
+
return quota === undefined ? cores : Math.max(1, Math.min(cores, Math.ceil(quota)));
|
|
4525
|
+
};
|
|
4509
4526
|
var threadBudget = (cores, concurrency) => Math.max(2, Math.floor(cores / concurrency));
|
|
4510
|
-
var
|
|
4511
|
-
var checkThreadBudget = (settings) => {
|
|
4512
|
-
const cap =
|
|
4513
|
-
return cap < settings.concurrency ?
|
|
4527
|
+
var runnerVerificationCap = (settings, cores = effectiveCores()) => verificationCap(settings, cores);
|
|
4528
|
+
var checkThreadBudget = (settings, cores = effectiveCores()) => {
|
|
4529
|
+
const cap = runnerVerificationCap(settings, cores);
|
|
4530
|
+
return cap < settings.concurrency ? threadBudget(cores, cap) : undefined;
|
|
4514
4531
|
};
|
|
4515
4532
|
var threadBudgetVariables = [
|
|
4516
4533
|
"GOMAXPROCS",
|
|
@@ -10432,6 +10449,7 @@ export {
|
|
|
10432
10449
|
compiled2 as compiled,
|
|
10433
10450
|
composeAgentEnvironmentSyncPlan,
|
|
10434
10451
|
controlFailureKind,
|
|
10452
|
+
cpuQuota,
|
|
10435
10453
|
defaultAgentRuntimeUserConfigPath,
|
|
10436
10454
|
detectHarnesses2 as detectHarnesses,
|
|
10437
10455
|
diskSpaceFromDf,
|
|
@@ -10445,6 +10463,7 @@ export {
|
|
|
10445
10463
|
dockerMissing,
|
|
10446
10464
|
dockerRootDirectory,
|
|
10447
10465
|
dockerStepContainers,
|
|
10466
|
+
effectiveCores,
|
|
10448
10467
|
failed,
|
|
10449
10468
|
failedWhenUnrun,
|
|
10450
10469
|
firstMessage,
|
|
@@ -10468,7 +10487,6 @@ export {
|
|
|
10468
10487
|
herdrRunnerCapabilitiesForRepoBinding2 as herdrRunnerCapabilitiesForRepoBinding,
|
|
10469
10488
|
herdrSandboxBackends,
|
|
10470
10489
|
homeDirectories,
|
|
10471
|
-
hostThreadBudget,
|
|
10472
10490
|
inheritedEnvironment2 as inheritedEnvironment,
|
|
10473
10491
|
isPathWithin2 as isPathWithin,
|
|
10474
10492
|
kitMcpHosts,
|
|
@@ -10529,6 +10547,7 @@ export {
|
|
|
10529
10547
|
runSrtCli2 as runSrtCli,
|
|
10530
10548
|
runnerStateSandboxPolicy,
|
|
10531
10549
|
runnerStepAttemptFromAgentStep,
|
|
10550
|
+
runnerVerificationCap,
|
|
10532
10551
|
runsOnHost,
|
|
10533
10552
|
sampleMetrics,
|
|
10534
10553
|
sandboxedLaunch,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
tomlKeyPath2,
|
|
24
24
|
kitmanSkillEntry,
|
|
25
25
|
isPathWithin2
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-fbddgx6q.js";
|
|
27
27
|
import {
|
|
28
28
|
instructionsStart,
|
|
29
29
|
instructionsEnd,
|
|
@@ -31,10 +31,10 @@ import {
|
|
|
31
31
|
antigravityPlugins,
|
|
32
32
|
materializeKitSetup,
|
|
33
33
|
tomlInline
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import"./chunk-
|
|
36
|
-
import"./chunk-nk35kh6w.js";
|
|
34
|
+
} from "./chunk-0qfaf9h3.js";
|
|
35
|
+
import"./chunk-7ygg19wj.js";
|
|
37
36
|
import"./chunk-6x08g7m6.js";
|
|
37
|
+
import"./chunk-ea29sbaq.js";
|
|
38
38
|
|
|
39
39
|
// packages/agent-runtime/src/kit-setup-sync.ts
|
|
40
40
|
class KitSyncError extends TaggedError("KitSyncError") {
|
|
@@ -123,7 +123,7 @@ import {
|
|
|
123
123
|
ParseOptions,
|
|
124
124
|
RpcClientDefect,
|
|
125
125
|
RpcClientError
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-0qfaf9h3.js";
|
|
127
127
|
|
|
128
128
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/workers/Transferable.js
|
|
129
129
|
class Collector extends (/* @__PURE__ */ Service2()("effect/workers/Transferable/Collector")) {
|
|
@@ -1320,7 +1320,7 @@ Runners execute StepAttempts in user-controlled environments. A runner advertise
|
|
|
1320
1320
|
path: "runner-operations#runner-settings",
|
|
1321
1321
|
level: 3,
|
|
1322
1322
|
link: "https://kitman.sh/knowledge/docs/runner-operations#runner-settings",
|
|
1323
|
-
text: "### Runner settings\n\nKitman keeps how your Runner behaves, so you change it on the Runner's page in the **Runners** tab, or with `kitman runner settings <runner>`, without touching its service. Its owner, or a Workspace admin, may change it; each change is in its History with who made it, when, and the old and new value (`kitman runner settings history <runner>`).\n\n- **Concurrency**: how many Work Units it runs at once, 1 to 32. It applies a change within about 10 seconds, and work in flight finishes first.\n- **Verification concurrency**: how many of those may be Verifications, the checks that test a Step's work. By default
|
|
1323
|
+
text: "### Runner settings\n\nKitman keeps how your Runner behaves, so you change it on the Runner's page in the **Runners** tab, or with `kitman runner settings <runner>`, without touching its service. Its owner, or a Workspace admin, may change it; each change is in its History with who made it, when, and the old and new value (`kitman runner settings history <runner>`).\n\n- **Concurrency**: how many Work Units it runs at once, 1 to 32. It applies a change within about 10 seconds, and work in flight finishes first.\n- **Verification concurrency**: how many of those may be Verifications, the checks that test a Step's work. By default, 32, it runs one Verification per 3 of its machine's cores: 8 on 24 cores, 3 on 8. The cores are those the Runner may use, so a container or pod with a CPU limit of 4 counts 4. Set a number to choose it yourself. When Verifications are capped below the concurrency, each check is also told to use the cores divided by the cap (through `GOMAXPROCS`, `RAYON_NUM_THREADS`, `UV_THREADPOOL_SIZE` and `VITEST_MAX_WORKERS`); tools that read none of these size their own pools. It never runs more of them than its concurrency, even when this setting is higher. Its other slots keep taking agent Steps. It caps each Runner process, so a Runner with several replicas runs that many on each.\n- **Sandbox**: `srt` (the default), `docker` or `host`. New Steps and checks use a change; a running Step keeps its own.\n- **Docker image**: the image `docker` runs agents in, pinned by digest. It applies when the Runner restarts.\n- **Check hosts**: hosts every check this Runner runs, for any Team, may also reach.\n- **Checks' Docker image** and **checks' registry image**: for a pipeline check's own Docker daemon (below), each pinned by digest. They apply when the Runner restarts.\n\n```sh\nkitman runner settings <runner> --concurrency 2 --check-hosts github.com\n```\n\nThe Runner's page shows where what the Runner applies differs from its settings, and why.\n\nA few things stay on your machine, because they start the Runner or protect it: the Runner's id, the API URL and its credential, `KITMAN_RUNNER_FULL_ACCESS`, and your consent to run agents with no sandbox, `KITMAN_RUNNER_ALLOW_FULL_ACCESS=1`. Kitman cannot give that consent, so nobody who can change the Runner's settings, nor a compromised control plane, can turn off your machine's sandbox: a Runner set to `host` on a machine without it runs its agents in `srt` and shows the `full_access_refused` Runner Problem. A Runner set to `host` on a machine with it runs agents that use your own `kitman` login. When Kitman refuses that login, the Runner shows the `cli_session_expired` Runner Problem: run `kitman login` on the machine.\n\nBefore Kitman kept these, they were the environment variables `KITMAN_RUNNER_CONCURRENCY`, `KITMAN_RUNNER_SANDBOX`, `KITMAN_RUNNER_DOCKER_IMAGE`, `KITMAN_RUNNER_CHECK_HOSTS`, `KITMAN_RUNNER_CHECK_DOCKER_IMAGE` and `KITMAN_RUNNER_CHECK_REGISTRY_IMAGE`. The first time a Runner starts on a version with settings, Kitman adopts the values they give, once, for each setting nobody has set yet (a shared Runner's sandbox excepted); after that the Runner ignores them and warns at each start that each one still set is deprecated. Remove them from its service when its settings look right. While `KITMAN_RUNNER_SANDBOX=host` stays set, it counts as your consent to run agents on the host."
|
|
1324
1324
|
},
|
|
1325
1325
|
{
|
|
1326
1326
|
title: "Runner Operations Guide \u203A The sandbox",
|
|
@@ -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.43.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) {
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
runnerRpcUrl2,
|
|
5
5
|
makeRunnerRpcClient2,
|
|
6
6
|
makeProgramRpcClient2
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import"./chunk-
|
|
9
|
-
import"./chunk-
|
|
7
|
+
} from "./chunk-27e7m975.js";
|
|
8
|
+
import"./chunk-qxpwkb5f.js";
|
|
9
|
+
import"./chunk-0qfaf9h3.js";
|
|
10
10
|
import"./chunk-ea29sbaq.js";
|
|
11
11
|
import"./chunk-etrfc5cn.js";
|
|
12
12
|
import"./chunk-bqbfyqx6.js";
|
package/dist/index.js
CHANGED
|
@@ -14,6 +14,6 @@ if (args[0] === "srt") {
|
|
|
14
14
|
const { runOpencodeReader } = await import("./chunk-hgvft7vy.js");
|
|
15
15
|
runOpencodeReader();
|
|
16
16
|
} else {
|
|
17
|
-
const { runCli } = await import("./chunk-
|
|
17
|
+
const { runCli } = await import("./chunk-b2btevxm.js");
|
|
18
18
|
runCli(args);
|
|
19
19
|
}
|