@kitman-sh/cli 0.10.91 → 0.10.92

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.
@@ -4,9 +4,9 @@ import {
4
4
  runnerRpcUrl2,
5
5
  makeRunnerRpcClient2,
6
6
  makeProgramRpcClient2
7
- } from "./chunk-gncygm43.js";
8
- import"./chunk-sb8c2sgy.js";
9
- import"./chunk-5fxxg02f.js";
7
+ } from "./chunk-m4ac8xka.js";
8
+ import"./chunk-vsb31vgf.js";
9
+ import"./chunk-63mhk3ft.js";
10
10
  import"./chunk-mbqeakm1.js";
11
11
  import"./chunk-k4fvnphp.js";
12
12
  import"./chunk-25q7mg6g.js";
@@ -26,16 +26,16 @@ import {
26
26
  tomlKeyPath2,
27
27
  kitmanSkillEntry,
28
28
  isPathWithin2
29
- } from "./chunk-d9wjvvbc.js";
29
+ } from "./chunk-5s6e82wd.js";
30
30
  import {
31
31
  instructionsStart,
32
32
  instructionsEnd,
33
33
  renderMcpServer,
34
34
  materializeKitSetup,
35
35
  tomlInline
36
- } from "./chunk-5fxxg02f.js";
36
+ } from "./chunk-63mhk3ft.js";
37
+ import"./chunk-a7zc3zf8.js";
37
38
  import"./chunk-w0sehmpd.js";
38
- import"./chunk-947btdv6.js";
39
39
 
40
40
  // packages/agent-runtime/src/kit-setup-sync.ts
41
41
  class KitSyncError extends TaggedError("KitSyncError") {
@@ -37,10 +37,10 @@ import {
37
37
  AgentHarnessIds,
38
38
  sha2562,
39
39
  runCommand2
40
- } from "./chunk-5fxxg02f.js";
40
+ } from "./chunk-63mhk3ft.js";
41
41
  import {
42
42
  NpmRegistry
43
- } from "./chunk-947btdv6.js";
43
+ } from "./chunk-a7zc3zf8.js";
44
44
 
45
45
  // packages/agent-runtime/src/config-convergence.ts
46
46
  var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
@@ -245,7 +245,6 @@ import {
245
245
  Class2,
246
246
  Error3,
247
247
  TaggedError2,
248
- toEquivalence,
249
248
  toCodecJson,
250
249
  Json,
251
250
  JsonObject,
@@ -254,44 +253,6 @@ import {
254
253
  encodeJsonStringSync,
255
254
  encodePrettyJsonString
256
255
  } from "./chunk-dstm8aen.js";
257
- import {
258
- ExitCode,
259
- ProcessId,
260
- makeHandle,
261
- make,
262
- ChildProcessSpawner,
263
- display,
264
- make2,
265
- parseFdName,
266
- fdName
267
- } from "./chunk-w0sehmpd.js";
268
- import {
269
- isDateTime,
270
- Numeric,
271
- isWholeNumber,
272
- guard,
273
- Id,
274
- Timestamp,
275
- ActorType,
276
- SecretName,
277
- SecretScope,
278
- SecretHosts,
279
- isSecretReference
280
- } from "./chunk-mbqeakm1.js";
281
- import {
282
- toJsonValue,
283
- isOneOf,
284
- isBigInt,
285
- isBoolean,
286
- isFunction,
287
- isNumber,
288
- isObject,
289
- isJsonObject,
290
- isString,
291
- isSymbol,
292
- isUndefined,
293
- kindOf
294
- } from "./chunk-k4fvnphp.js";
295
256
  import {
296
257
  map,
297
258
  makeEquivalence,
@@ -359,6 +320,44 @@ import {
359
320
  optionalEnv,
360
321
  harnessesUnsupportedInSrt2
361
322
  } from "./chunk-25q7mg6g.js";
323
+ import {
324
+ isDateTime,
325
+ Numeric,
326
+ isWholeNumber,
327
+ guard,
328
+ Id,
329
+ Timestamp,
330
+ ActorType,
331
+ SecretName,
332
+ SecretScope,
333
+ SecretHosts,
334
+ isSecretReference
335
+ } from "./chunk-mbqeakm1.js";
336
+ import {
337
+ toJsonValue,
338
+ isOneOf,
339
+ isBigInt,
340
+ isBoolean,
341
+ isFunction,
342
+ isNumber,
343
+ isObject,
344
+ isJsonObject,
345
+ isString,
346
+ isSymbol,
347
+ isUndefined,
348
+ kindOf
349
+ } from "./chunk-k4fvnphp.js";
350
+ import {
351
+ ExitCode,
352
+ ProcessId,
353
+ makeHandle,
354
+ make,
355
+ ChildProcessSpawner,
356
+ display,
357
+ make2,
358
+ parseFdName,
359
+ fdName
360
+ } from "./chunk-w0sehmpd.js";
362
361
 
363
362
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
364
363
  var makeEquivalence3 = Tuple;
@@ -9317,85 +9316,6 @@ function sha256Hasher() {
9317
9316
  digest: (encoding) => hash.digest(encoding)
9318
9317
  };
9319
9318
  }
9320
- // packages/core/src/schedule.ts
9321
- var ScheduleFrequency = ["daily", "weekly"];
9322
- var ScheduleMisfirePolicies = ["skip", "fire_once", "catch_up"];
9323
- var ScheduleOverlapPolicies = ["allow", "skip", "coalesce"];
9324
- var ScheduleVersionStatuses = ["draft", "published", "disabled", "archived"];
9325
- var ScheduleCalendarRule = Struct({
9326
- frequency: Literals(ScheduleFrequency),
9327
- hour: Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo(23)),
9328
- minute: Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo(59)),
9329
- second: optionalKey(Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo(59))),
9330
- daysOfWeek: optionalKey(ArraySchema(Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo(6))).check(isMinLength(1), isMaxLength(7)))
9331
- });
9332
- var ScheduleCronRule = Struct({
9333
- cron: String4.check(isMinLength(9), isMaxLength(200), isPattern(new RegExp("^[0-9*,/-]+( [0-9*,/-]+){4}$", "u")))
9334
- });
9335
- var ScheduleRule = Union([ScheduleCalendarRule, ScheduleCronRule]);
9336
- var cronBounds = [
9337
- [0, 59],
9338
- [0, 23],
9339
- [1, 31],
9340
- [1, 12],
9341
- [0, 7]
9342
- ];
9343
- function cronField(field, [min, max]) {
9344
- const values = new Set;
9345
- for (const part of field.split(",")) {
9346
- const match = /^(\*|(\d+)(?:-(\d+))?)(?:\/(\d+))?$/.exec(part);
9347
- if (match === null)
9348
- return;
9349
- const from = match[1] === "*" ? min : Number(match[2]);
9350
- const to = match[1] === "*" ? max : match[3] === undefined ? match[4] === undefined ? from : max : Number(match[3]);
9351
- const step = match[4] === undefined ? 1 : Number(match[4]);
9352
- if (from < min || to > max || from > to || step < 1)
9353
- return;
9354
- for (let value = from;value <= to; value += step)
9355
- values.add(value);
9356
- }
9357
- return values;
9358
- }
9359
- function parseCron(cron) {
9360
- const fields = cron.split(" ");
9361
- const [minutes, hours, days, months, weekdays] = fields.map((field, index) => cronField(field, cronBounds[index] ?? [0, 0]));
9362
- if (fields.length !== 5 || !minutes || !hours || !days || !months || !weekdays)
9363
- return;
9364
- return {
9365
- minutes,
9366
- hours,
9367
- days,
9368
- months,
9369
- weekdays: new Set([...weekdays].map((value) => value % 7)),
9370
- dayRestricted: !(fields[2] ?? "").startsWith("*"),
9371
- weekdayRestricted: !(fields[4] ?? "").startsWith("*")
9372
- };
9373
- }
9374
- function isScheduleRule(value) {
9375
- return guard(ScheduleRule)(value) && (!("cron" in value) || parseCron(value.cron) !== undefined);
9376
- }
9377
- var ScheduleVersion = Struct({
9378
- contractVersion: Literal("schedule.v1"),
9379
- id: String4.check(isMinLength(1)),
9380
- scheduleId: String4.check(isMinLength(1)),
9381
- workspaceId: String4.check(isMinLength(1)),
9382
- teamId: optionalKey(String4.check(isMinLength(1))),
9383
- loopId: optionalKey(String4.check(isMinLength(1))),
9384
- name: optionalKey(String4.check(isMinLength(1), isMaxLength(200))),
9385
- version: Int.check(isGreaterThanOrEqualTo(1)),
9386
- status: Literals(ScheduleVersionStatuses),
9387
- timezone: String4.check(isMinLength(1), isMaxLength(80)),
9388
- rule: ScheduleRule,
9389
- misfirePolicy: Literals(ScheduleMisfirePolicies),
9390
- overlapPolicy: Literals(ScheduleOverlapPolicies),
9391
- maxCatchUp: Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo(200)),
9392
- misfireGraceSeconds: optionalKey(Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo(604800))),
9393
- inputSchemaRef: optionalKey(LoopDataSchemaRef),
9394
- input: optionalKey(SafeJson),
9395
- createdAt: String4.check(isMinLength(1))
9396
- });
9397
- var zones = new Map;
9398
- var resolvedLocalDateTimes = new Map;
9399
9319
  // packages/core/src/transcript.ts
9400
9320
  var Text = String4.check(isMaxLength(200000));
9401
9321
  var AgentEvent = Union([
@@ -11319,120 +11239,6 @@ var DeployBindingCreate = Struct({
11319
11239
  });
11320
11240
  var DeployBindingList = Struct({ items: ArraySchema(DeployBinding) });
11321
11241
  var defaultKitName = "@kitman-sh/software-engineering";
11322
-
11323
- // packages/core/src/kit-declarations.ts
11324
- var LoopCapabilities = [
11325
- "agent_work",
11326
- "ask",
11327
- "call",
11328
- "verify",
11329
- "change_request",
11330
- "write_back",
11331
- "post_comment",
11332
- "create_tasks",
11333
- "merge_change_request",
11334
- "approve_change_request",
11335
- "publish_release",
11336
- "read_transcripts",
11337
- "read_change_request",
11338
- "measure",
11339
- "claim",
11340
- "propose",
11341
- "read_project",
11342
- "draft_update"
11343
- ];
11344
- var JsonObject2 = Record(String4, Json);
11345
- var SecretName2 = String4.check(isPattern(/^[A-Za-z_][A-Za-z0-9_]{0,127}$/));
11346
- var EventFilterValue = Union([String4, Finite, Boolean2, Null]);
11347
- var LoopManifest = Struct({
11348
- id: String4,
11349
- title: String4,
11350
- version: optionalKey(LoopVersion),
11351
- input: JsonObject2,
11352
- output: JsonObject2,
11353
- outcome: optionalKey(Literals(["feature", "bug", "refactor", "investigation", "docs", "migration", "performance"])),
11354
- agents: Record(String4, String4),
11355
- checkout: Literals(["none", "read", "write"]),
11356
- when: ArraySchema(Struct({
11357
- event: String4,
11358
- filter: optionalKey(Record(String4, Union([EventFilterValue, ArraySchema(EventFilterValue)]))),
11359
- input: Record(String4, String4),
11360
- values: optionalKey(JsonObject2)
11361
- })),
11362
- offers: ArraySchema(Struct({
11363
- id: String4,
11364
- title: String4,
11365
- loop: String4,
11366
- from: optionalKey(String4)
11367
- })),
11368
- capabilities: ArraySchema(Literals(LoopCapabilities)),
11369
- ownCapabilities: optionalKey(ArraySchema(Literals(LoopCapabilities))),
11370
- secrets: optionalKey(ArraySchema(SecretName2)),
11371
- network: optionalKey(AgentSandboxNetwork),
11372
- schedule: optionalKey(Struct({ rule: ScheduleRule, timezone: String4 }))
11373
- });
11374
- var LoopDetail = Struct({
11375
- id: String4,
11376
- resolved: optionalKey(Struct({
11377
- ...ProgramLoop.fields,
11378
- agents: LoopManifest.fields.agents,
11379
- when: LoopManifest.fields.when,
11380
- schedule: optionalKey(Struct({
11381
- rule: ScheduleRule,
11382
- timezone: String4,
11383
- on: Boolean2,
11384
- nextRunAt: optionalKey(String4)
11385
- }))
11386
- }))
11387
- });
11388
- var AgentDeclaration = Struct({
11389
- extends: optionalKey(String4),
11390
- instructions: optionalKey(String4),
11391
- harness: optionalKey(String4),
11392
- model: optionalKey(String4),
11393
- effort: optionalKey(Literals(AgentEfforts)),
11394
- fallbacks: optionalKey(ArraySchema(AgentFallback)),
11395
- tools: optionalKey(ArraySchema(Literals(AgentCapabilities))),
11396
- skills: optionalKey(ArraySchema(String4.check(isMinLength(1)))),
11397
- network: optionalKey(Union([Struct({ hosts: ArraySchema(String4) }), Literal("open")])),
11398
- sandbox: optionalKey(Literal("docker"))
11399
- });
11400
- var scheduleFields = {
11401
- name: String4.check(isMinLength(1)),
11402
- loop: String4,
11403
- team: optionalKey(String4),
11404
- input: optionalKey(JsonObject2),
11405
- timezone: String4,
11406
- misfire: optionalKey(Literals(ScheduleMisfirePolicies)),
11407
- overlap: optionalKey(Literals(ScheduleOverlapPolicies))
11408
- };
11409
- var ScheduleDeclaration = Union([
11410
- Struct({
11411
- ...scheduleFields,
11412
- cron: String4.check(makeFilter((cron) => isScheduleRule({ cron }) || "five cron fields, each within its range"))
11413
- }),
11414
- Struct({
11415
- ...scheduleFields,
11416
- rule: declare((value) => isScheduleRule(value), {
11417
- expected: "a Schedule rule: frequency daily or weekly, hour, minute, and optionally second and daysOfWeek"
11418
- })
11419
- })
11420
- ]);
11421
- var CarriedKit = Struct({
11422
- name: KitName,
11423
- version: String4.check(isMinLength(1)),
11424
- setup: KitDigest,
11425
- loops: ArraySchema(String4),
11426
- agents: ArraySchema(String4)
11427
- });
11428
- var KitDeclarations = Struct({
11429
- loops: ArraySchema(LoopManifest),
11430
- agents: Record(String4, AgentDeclaration),
11431
- schedules: optionalKey(Record(String4, ScheduleDeclaration)),
11432
- carried: optionalKey(ArraySchema(CarriedKit))
11433
- });
11434
- var sameLoop = toEquivalence(LoopManifest);
11435
- var sameAgent = toEquivalence(AgentDeclaration);
11436
11242
  // packages/core/src/kit-setup.ts
11437
11243
  var KitSetup = Struct({
11438
11244
  ...AgentEnvironmentFragment.fields,
@@ -14090,7 +13896,7 @@ class RunnerAuthentication extends Service()("RunnerAuthentication", {
14090
13896
  error: RunnerRpcError
14091
13897
  }) {
14092
13898
  }
14093
- var EventFilterValue2 = Union([String4, Finite, Boolean2, Null]);
13899
+ var EventFilterValue = Union([String4, Finite, Boolean2, Null]);
14094
13900
  var WorkAvailable = TaggedStruct("WorkAvailable", {});
14095
13901
  var LeaseRevoked = TaggedStruct("LeaseRevoked", { workUnitId: String4 });
14096
13902
  var Settled = TaggedStruct("Settled", { workUnitId: String4 });
@@ -14303,12 +14109,12 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14303
14109
  step: String4,
14304
14110
  deferredName: String4,
14305
14111
  event: String4,
14306
- filter: optional(Record(String4, Union([EventFilterValue2, ArraySchema(EventFilterValue2)]))),
14112
+ filter: optional(Record(String4, Union([EventFilterValue, ArraySchema(EventFilterValue)]))),
14307
14113
  timeoutMillis: Int,
14308
14114
  since: optionalKey(String4),
14309
14115
  or: optionalKey(ArraySchema(Struct({
14310
14116
  event: String4,
14311
- filter: optionalKey(Record(String4, Union([EventFilterValue2, ArraySchema(EventFilterValue2)]))),
14117
+ filter: optionalKey(Record(String4, Union([EventFilterValue, ArraySchema(EventFilterValue)]))),
14312
14118
  since: optionalKey(String4)
14313
14119
  })))
14314
14120
  },
@@ -15912,4 +15718,4 @@ function checkServices(declaration) {
15912
15718
  return isSome(decoded) ? [...new Set(decoded.value.services)] : undefined;
15913
15719
  }
15914
15720
 
15915
- export { Clock, currentTimeMillis, WebCrypto, SecureRandom, layerWebCrypto, makeUnsafe, formatIso, empty, fromInput, merge, runMain, layer, layer2, Stdio, Terminal, layer3, error, log, toDate, parseDate, toIso, currentDate, wallClockMillis, waitingOnWords, queueWords, scanDurableSurface, redactResponseSurface, redactCredentials, redactedOutputTail, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, RunDisplayStates, RunWaitUntils, isTestReportName, checkTests, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, defaultRunnerCapabilities, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, repositoryKey, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw, make4, get, post, put, setHeaders, acceptJson, bodyUint8Array, bodyJsonUnsafe, bodyUrlParams, schemaBodyJson, filterStatusOk, HttpClient, execute, get2, Fetch, layer4, Socket, SocketReadError, SocketError, WebSocketConstructor, layerWebSocketConstructorGlobal, layerWebSocket, runDisplayLabels, listedSummary, KitDigest, defaultKitName, LoopCapabilities, LoopManifest, AgentDeclaration, KitDeclarations, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, removeAgentCredential, normalizeApiUrl, isStoredAgentCredential, isStreamSchema, getStreamSchemas, make5, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make6, Service, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, RunSettled, UpdateAvailable, RunnerReplicaRpcs, RunnerRunFileRpcs, ProgramRpcs, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, setupMcpAgentCredential, generateAgentKeyPair, HERDR_CORE_GENERATION2, HERDR_CORE_INSTALL_COMMAND2, HerdrCoreMissing2, HerdrCoreIncompatible2, HerdrCoreConnectionLost2, HerdrCoreRpcError2, HerdrCoreUpdateFailed2, HerdrCore2, herdrCoreLayer2, herdrCoreTransportLayer2, updateHerdrCore2, CommandFailed2, runCommand2, withoutPreloads2, shellOutputTailChars2, runProcess2, CommandRunner2, runShell2, detectHarnesses2, kitHarnesses, isKitHarness, instructionsStart, instructionsEnd, harnessNames, renderMcpServer, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices };
15721
+ export { Clock, currentTimeMillis, WebCrypto, SecureRandom, layerWebCrypto, makeUnsafe, formatIso, empty, fromInput, merge, runMain, layer, layer2, Stdio, Terminal, layer3, error, log, toDate, parseDate, toIso, currentDate, wallClockMillis, waitingOnWords, queueWords, scanDurableSurface, redactResponseSurface, redactCredentials, redactedOutputTail, SafeJson, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, RunWaitUntils, isTestReportName, checkTests, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, defaultRunnerCapabilities, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, repositoryKey, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw, make4, get, post, put, setHeaders, acceptJson, bodyUint8Array, bodyJsonUnsafe, bodyUrlParams, schemaBodyJson, filterStatusOk, HttpClient, execute, get2, Fetch, layer4, Socket, SocketReadError, SocketError, WebSocketConstructor, layerWebSocketConstructorGlobal, layerWebSocket, runDisplayLabels, listedSummary, KitName, KitDigest, defaultKitName, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, removeAgentCredential, normalizeApiUrl, isStoredAgentCredential, isStreamSchema, getStreamSchemas, make5, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make6, Service, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, RunSettled, UpdateAvailable, RunnerReplicaRpcs, RunnerRunFileRpcs, ProgramRpcs, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, setupMcpAgentCredential, generateAgentKeyPair, HERDR_CORE_GENERATION2, HERDR_CORE_INSTALL_COMMAND2, HerdrCoreMissing2, HerdrCoreIncompatible2, HerdrCoreConnectionLost2, HerdrCoreRpcError2, HerdrCoreUpdateFailed2, HerdrCore2, herdrCoreLayer2, herdrCoreTransportLayer2, updateHerdrCore2, CommandFailed2, runCommand2, withoutPreloads2, shellOutputTailChars2, runProcess2, CommandRunner2, runShell2, detectHarnesses2, kitHarnesses, isKitHarness, instructionsStart, instructionsEnd, harnessNames, renderMcpServer, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices };
@@ -245,7 +245,7 @@ import {
245
245
  installCommand,
246
246
  checkServicesFile,
247
247
  checkServices
248
- } from "./chunk-5fxxg02f.js";
248
+ } from "./chunk-63mhk3ft.js";
249
249
  import {
250
250
  join,
251
251
  interrupt,
@@ -301,12 +301,8 @@ import {
301
301
  applyAgentEnvironmentMaterialization2,
302
302
  isPathWithin2,
303
303
  skillIdentity2
304
- } from "./chunk-d9wjvvbc.js";
305
- import"./chunk-947btdv6.js";
306
- import {
307
- ChildProcessSpawner,
308
- make2
309
- } from "./chunk-w0sehmpd.js";
304
+ } from "./chunk-5s6e82wd.js";
305
+ import"./chunk-a7zc3zf8.js";
310
306
  import {
311
307
  egressAllowed,
312
308
  writeSecretRegistry,
@@ -324,19 +320,23 @@ import {
324
320
  decodedOption2,
325
321
  decoded2,
326
322
  readOpencode2
327
- } from "./chunk-5tqy48a3.js";
323
+ } from "./chunk-2ndnvcp3.js";
328
324
  import {
329
325
  uploadRunFile,
330
326
  programLease,
331
327
  rpcRunFiles,
332
328
  programHostsEnv,
333
329
  undeclaredHostsEnv
334
- } from "./chunk-fgnfx5mw.js";
335
- import"./chunk-gncygm43.js";
330
+ } from "./chunk-vzhkp7xw.js";
331
+ import"./chunk-m4ac8xka.js";
336
332
  import {
337
333
  nextInt
338
334
  } from "./chunk-c3k32vw4.js";
339
- import"./chunk-sb8c2sgy.js";
335
+ import {
336
+ ChildProcessSpawner,
337
+ make2
338
+ } from "./chunk-w0sehmpd.js";
339
+ import"./chunk-vsb31vgf.js";
340
340
 
341
341
  // packages/core/src/sync-kit.ts
342
342
  import { createHash } from "crypto";
@@ -4896,6 +4896,7 @@ function runReplica(control, executor, signals) {
4896
4896
  })), ensuring2(suspend3(() => completed || leaseLost ? void_3 : call("release", () => control.release(work.id, lease, crashed)).pipe(timeout(releaseTimeout), catch_((error) => logWarning("runner_release_failed", error.message))))), ensuring2(control.finished?.() ?? void_3));
4897
4897
  }));
4898
4898
  }
4899
+ var IdleRecheck = seconds(60);
4899
4900
  var idleBackoff = (idleIterations) => millis(Math.min(1000 * 2 ** idleIterations, 30000));
4900
4901
  function superviseReplica(input) {
4901
4902
  const { signals } = input;
@@ -4931,8 +4932,7 @@ function superviseReplica(input) {
4931
4932
  continue;
4932
4933
  }
4933
4934
  if (isSuccess2(exit2) && signals !== undefined) {
4934
- yield* signals.workSignalledAfter(seen);
4935
- woken = true;
4935
+ woken = isSome(yield* signals.workSignalledAfter(seen).pipe(timeoutOption(IdleRecheck)));
4936
4936
  continue;
4937
4937
  }
4938
4938
  if (isFailure2(exit2)) {
@@ -38,7 +38,7 @@ import {
38
38
  get2,
39
39
  layer4,
40
40
  KitDigest
41
- } from "./chunk-5fxxg02f.js";
41
+ } from "./chunk-63mhk3ft.js";
42
42
 
43
43
  // packages/core/src/npm-registry.ts
44
44
  var KitManifest = Struct({
@@ -12,7 +12,7 @@ import {
12
12
  herdrCoreLayer2,
13
13
  herdrCoreTransportLayer2,
14
14
  updateHerdrCore2
15
- } from "./chunk-5fxxg02f.js";
15
+ } from "./chunk-63mhk3ft.js";
16
16
  import"./chunk-25q7mg6g.js";
17
17
  import"./chunk-dstm8aen.js";
18
18
  export {
@@ -87,9 +87,17 @@ import {
87
87
  encodePrettyJsonString
88
88
  } from "./chunk-dstm8aen.js";
89
89
  import {
90
- ChildProcessSpawner,
91
- make2
92
- } from "./chunk-w0sehmpd.js";
90
+ tap,
91
+ mapError,
92
+ decodeText,
93
+ run,
94
+ mkString,
95
+ FileSystem,
96
+ Path,
97
+ withDefault,
98
+ option,
99
+ String2
100
+ } from "./chunk-25q7mg6g.js";
93
101
  import {
94
102
  currentTimeMillis,
95
103
  SecureRandom,
@@ -189,7 +197,7 @@ import {
189
197
  harnessNames,
190
198
  herdrRunnerCapabilities2,
191
199
  declaredChecks
192
- } from "./chunk-5fxxg02f.js";
200
+ } from "./chunk-63mhk3ft.js";
193
201
  import {
194
202
  Id
195
203
  } from "./chunk-mbqeakm1.js";
@@ -204,17 +212,9 @@ import {
204
212
  isString
205
213
  } from "./chunk-k4fvnphp.js";
206
214
  import {
207
- tap,
208
- mapError,
209
- decodeText,
210
- run,
211
- mkString,
212
- FileSystem,
213
- Path,
214
- withDefault,
215
- option,
216
- String2
217
- } from "./chunk-25q7mg6g.js";
215
+ ChildProcessSpawner,
216
+ make2
217
+ } from "./chunk-w0sehmpd.js";
218
218
 
219
219
  // apps/cli/src/cli-error.ts
220
220
  function cliErrorCode(error, status) {
@@ -504,10 +504,10 @@ var checkDockerImageSetting = pinnedImage;
504
504
  var checkRegistryImageSetting = pinnedImage;
505
505
  var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
506
506
  var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
507
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-6h0rz0zk.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
507
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-bjdn0pww.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
508
508
  });
509
509
  var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
510
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-6h0rz0zk.js")), (module) => module.updateHerdrCore(options))
510
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-bjdn0pww.js")), (module) => module.updateHerdrCore(options))
511
511
  });
512
512
  var herdrCoreMissing = (error) => {
513
513
  if (isTagged(error, "HerdrCoreMissing"))
@@ -733,7 +733,7 @@ var syncTargets = (harness) => gen(function* () {
733
733
  });
734
734
  var syncKits = (input) => gen(function* () {
735
735
  const fs = yield* FileSystem;
736
- const { syncKitSetup } = yield* promise(() => import("./chunk-tmbhak7y.js"));
736
+ const { syncKitSetup } = yield* promise(() => import("./chunk-5qmjv3n4.js"));
737
737
  const harnesses = yield* syncTargets(input.harness);
738
738
  const chain = yield* input.client.getKitChain(input.workspaceId);
739
739
  for (const { name, problem } of chain.skipped)
@@ -1651,7 +1651,7 @@ var package_default = {
1651
1651
  };
1652
1652
 
1653
1653
  // apps/cli/src/scaffold.ts
1654
- var cliVersion = "0.10.91";
1654
+ var cliVersion = "0.10.92";
1655
1655
  var packageJson = (name, scaffold) => `${JSON.stringify({
1656
1656
  name,
1657
1657
  private: true,
@@ -1901,7 +1901,7 @@ var Usage = [
1901
1901
  "Every run, loop, agent, verify, constraint, secret, claim, deploy, dev and kit command takes --json."
1902
1902
  ].join(`
1903
1903
  `);
1904
- var agentRuntime = promise(() => import("./chunk-r6d67qqa.js"));
1904
+ var agentRuntime = promise(() => import("./chunk-8zhjaef4.js"));
1905
1905
  var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
1906
1906
  defaultValue: () => gen(function* () {
1907
1907
  const tui = yield* tryPromise({
@@ -2777,7 +2777,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
2777
2777
  });
2778
2778
  var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
2779
2779
  defaultValue: () => (options) => gen(function* () {
2780
- const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-gykt7zjx.js"));
2780
+ const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-0cbdb51w.js"));
2781
2781
  return yield* makeRunnerRpcClient({
2782
2782
  runnerId: options.runnerId,
2783
2783
  bearer: options.bearer,
@@ -3169,7 +3169,7 @@ function mcpCommand(args) {
3169
3169
  if (command.action === "run") {
3170
3170
  if (command.args.length > 0)
3171
3171
  return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
3172
- const { runMcpServerCommand } = yield* promise(() => import("./chunk-y1tnxz9f.js"));
3172
+ const { runMcpServerCommand } = yield* promise(() => import("./chunk-vzynb4qs.js"));
3173
3173
  return yield* runMcpServerCommand({ flags: command.flags });
3174
3174
  }
3175
3175
  if (command.action !== "setup")
@@ -4380,9 +4380,9 @@ function claimCommand(args) {
4380
4380
  }
4381
4381
  });
4382
4382
  }
4383
- var KitWriter = map8(promise(() => import("./chunk-d82t42vr.js")), (build) => build.writeKit);
4383
+ var KitWriter = map8(promise(() => import("./chunk-kd3y2tq5.js")), (build) => build.writeKit);
4384
4384
  var KitBuilder = Reference("kitman/cli/KitBuilder", {
4385
- defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-d82t42vr.js")), (build) => build.buildKit(directory))
4385
+ defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-kd3y2tq5.js")), (build) => build.buildKit(directory))
4386
4386
  });
4387
4387
  var uploadKit = (client, workspaceId, built) => gen(function* () {
4388
4388
  yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
@@ -35,6 +35,14 @@ import {
35
35
  } from "./chunk-dstm8aen.js";
36
36
  import"./chunk-mbqeakm1.js";
37
37
  import"./chunk-k4fvnphp.js";
38
+ import {
39
+ decodeText,
40
+ mkString,
41
+ FileSystem,
42
+ Path,
43
+ withDefault,
44
+ String2
45
+ } from "./chunk-25q7mg6g.js";
38
46
  import {
39
47
  SecureRandom,
40
48
  layerWebCrypto,
@@ -44,33 +52,25 @@ import {
44
52
  filterStatusOk,
45
53
  get2,
46
54
  layer4,
47
- AgentDeclaration,
48
- KitDeclarations,
49
55
  kitmanMcpServer,
50
56
  RunnerRpcProtocolVersion
51
- } from "./chunk-5fxxg02f.js";
52
- import {
53
- decodeText,
54
- mkString,
55
- FileSystem,
56
- Path,
57
- withDefault,
58
- String2
59
- } from "./chunk-25q7mg6g.js";
57
+ } from "./chunk-63mhk3ft.js";
60
58
  import {
61
59
  Packument,
62
60
  tarballMatches
63
- } from "./chunk-947btdv6.js";
61
+ } from "./chunk-a7zc3zf8.js";
62
+ import"./chunk-m4ac8xka.js";
63
+ import {
64
+ AgentDeclaration,
65
+ KitDeclarations,
66
+ describeFlag,
67
+ Described
68
+ } from "./chunk-vzhkp7xw.js";
64
69
  import {
65
70
  ChildProcessSpawner,
66
71
  make2
67
72
  } from "./chunk-w0sehmpd.js";
68
- import"./chunk-gncygm43.js";
69
- import {
70
- describeFlag,
71
- Described
72
- } from "./chunk-fgnfx5mw.js";
73
- import"./chunk-sb8c2sgy.js";
73
+ import"./chunk-vsb31vgf.js";
74
74
 
75
75
  // packages/sdk/src/build/index.ts
76
76
  class DependencyInstallFailed extends TaggedError2()("DependencyInstallFailed", {