@kitman-sh/cli 0.13.17 → 0.13.18

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.
Files changed (27) hide show
  1. package/dist/{chunk-pbmadbfm.js → chunk-03hvwd6m.js} +14 -8
  2. package/dist/{chunk-ahvpwkyk.js → chunk-1cbnvby8.js} +2 -2
  3. package/dist/{chunk-4yca7e7x.js → chunk-39m1xtbk.js} +239 -100
  4. package/dist/{chunk-b5edh1jq.js → chunk-7m71m106.js} +32 -32
  5. package/dist/{chunk-8nzsyz74.js → chunk-827sgh31.js} +1 -1
  6. package/dist/{chunk-cbf0q15q.js → chunk-84xks8tn.js} +60 -14
  7. package/dist/{chunk-1cr225aq.js → chunk-940cc29s.js} +5 -5
  8. package/dist/{chunk-67xn3yer.js → chunk-a7ds2jqf.js} +10 -10
  9. package/dist/{chunk-80f0p6s7.js → chunk-bc8ytp0y.js} +308 -284
  10. package/dist/{chunk-syhs23yk.js → chunk-be2jf9m3.js} +10 -10
  11. package/dist/{chunk-efyrm6bv.js → chunk-dc0pcs3z.js} +1 -1
  12. package/dist/{chunk-643pxp2k.js → chunk-frjsv0ng.js} +4 -4
  13. package/dist/{chunk-g7ysb6ca.js → chunk-fv2v1sdc.js} +18 -18
  14. package/dist/{chunk-24h0y27w.js → chunk-gq7y5v3e.js} +1 -1
  15. package/dist/{chunk-0vv8cbye.js → chunk-gqy5shhk.js} +21 -21
  16. package/dist/{chunk-mmd7mjv0.js → chunk-gy9rf14f.js} +3 -3
  17. package/dist/{chunk-x20t7xy8.js → chunk-hakqpy8z.js} +26 -17
  18. package/dist/{chunk-pxvd8w2v.js → chunk-q5w3v4k1.js} +1 -1
  19. package/dist/{chunk-q4ra17vf.js → chunk-r1s1dcy0.js} +3 -3
  20. package/dist/{chunk-zcpnmgwb.js → chunk-rp4tn60z.js} +7 -7
  21. package/dist/{chunk-pvsg1ppc.js → chunk-vxc2cg5f.js} +9 -9
  22. package/dist/{chunk-ggmwpwhf.js → chunk-y1krmnbv.js} +2 -2
  23. package/dist/{chunk-pjq9bf3w.js → chunk-ynvzbgms.js} +4 -4
  24. package/dist/{chunk-gasqek3p.js → chunk-z1rve2hk.js} +6 -6
  25. package/dist/{chunk-zgraq2y3.js → chunk-zw3gf6r5.js} +28 -70
  26. package/dist/index.js +4 -4
  27. package/package.json +1 -1
@@ -1,4 +1,8 @@
1
1
  // @bun
2
+ import {
3
+ FileSystem,
4
+ Path
5
+ } from "./chunk-hakqpy8z.js";
2
6
  import {
3
7
  isObject,
4
8
  isUint8Array,
@@ -13,27 +17,23 @@ import {
13
17
  isJsonObject,
14
18
  decodeJsonString,
15
19
  encodePrettyJsonString
16
- } from "./chunk-zgraq2y3.js";
17
- import"./chunk-pxvd8w2v.js";
18
- import {
19
- FileSystem,
20
- Path
21
- } from "./chunk-x20t7xy8.js";
20
+ } from "./chunk-zw3gf6r5.js";
21
+ import"./chunk-q5w3v4k1.js";
22
22
  import {
23
23
  tomlTableHeader2,
24
24
  tomlKeyPath2,
25
25
  kitmanSkillEntry,
26
26
  isPathWithin2
27
- } from "./chunk-pvsg1ppc.js";
27
+ } from "./chunk-vxc2cg5f.js";
28
28
  import {
29
29
  instructionsStart,
30
30
  instructionsEnd,
31
31
  renderMcpServer,
32
32
  materializeKitSetup,
33
33
  tomlInline
34
- } from "./chunk-80f0p6s7.js";
35
- import"./chunk-q4ra17vf.js";
36
- import"./chunk-cbf0q15q.js";
34
+ } from "./chunk-bc8ytp0y.js";
35
+ import"./chunk-r1s1dcy0.js";
36
+ import"./chunk-84xks8tn.js";
37
37
 
38
38
  // packages/agent-runtime/src/kit-setup-sync.ts
39
39
  class KitSyncError extends TaggedError("KitSyncError") {
@@ -4,7 +4,7 @@ import {
4
4
  searchDocs2,
5
5
  readDoc2,
6
6
  pinnedLink2
7
- } from "./chunk-8nzsyz74.js";
7
+ } from "./chunk-827sgh31.js";
8
8
  export {
9
9
  DefaultDocsSearchLimit2 as DefaultDocsSearchLimit,
10
10
  pinnedLink2 as pinnedLink,
@@ -7,10 +7,10 @@ import {
7
7
  decoded2,
8
8
  readOpencode2,
9
9
  runOpencodeReader2
10
- } from "./chunk-67xn3yer.js";
11
- import"./chunk-cbf0q15q.js";
12
- import"./chunk-x20t7xy8.js";
13
- import"./chunk-zgraq2y3.js";
10
+ } from "./chunk-a7ds2jqf.js";
11
+ import"./chunk-84xks8tn.js";
12
+ import"./chunk-hakqpy8z.js";
13
+ import"./chunk-zw3gf6r5.js";
14
14
  export {
15
15
  decoded2 as decoded,
16
16
  decodedOption2 as decodedOption,
@@ -1,4 +1,12 @@
1
1
  // @bun
2
+ import {
3
+ decodeText,
4
+ mkString,
5
+ FileSystem,
6
+ Path,
7
+ withDefault,
8
+ String2
9
+ } from "./chunk-hakqpy8z.js";
2
10
  import {
3
11
  isString,
4
12
  hasProperty,
@@ -32,16 +40,8 @@ import {
32
40
  toCodecJson,
33
41
  Json,
34
42
  encodePrettyJsonString
35
- } from "./chunk-zgraq2y3.js";
36
- import"./chunk-pxvd8w2v.js";
37
- import {
38
- decodeText,
39
- mkString,
40
- FileSystem,
41
- Path,
42
- withDefault,
43
- String2
44
- } from "./chunk-x20t7xy8.js";
43
+ } from "./chunk-zw3gf6r5.js";
44
+ import"./chunk-q5w3v4k1.js";
45
45
  import {
46
46
  SecureRandom,
47
47
  layerWebCrypto,
@@ -53,23 +53,23 @@ import {
53
53
  layer4,
54
54
  kitmanMcpServer,
55
55
  RunnerRpcProtocolVersion
56
- } from "./chunk-80f0p6s7.js";
56
+ } from "./chunk-bc8ytp0y.js";
57
57
  import {
58
58
  Packument,
59
59
  tarballMatches
60
- } from "./chunk-q4ra17vf.js";
61
- import"./chunk-zcpnmgwb.js";
60
+ } from "./chunk-r1s1dcy0.js";
61
+ import"./chunk-rp4tn60z.js";
62
62
  import {
63
63
  AgentDeclaration,
64
64
  KitDeclarations,
65
65
  describeFlag,
66
66
  Described
67
- } from "./chunk-pbmadbfm.js";
67
+ } from "./chunk-03hvwd6m.js";
68
68
  import {
69
69
  ChildProcessSpawner,
70
- make2
71
- } from "./chunk-cbf0q15q.js";
72
- import"./chunk-1cr225aq.js";
70
+ make3
71
+ } from "./chunk-84xks8tn.js";
72
+ import"./chunk-940cc29s.js";
73
73
 
74
74
  // packages/sdk/src/build/index.ts
75
75
  class DependencyInstallFailed extends TaggedError2()("DependencyInstallFailed", {
@@ -108,7 +108,7 @@ var ConfigAgents = Record(String4, Struct({
108
108
  }));
109
109
  var run = (command, args, cwd) => gen(function* () {
110
110
  const spawner = yield* ChildProcessSpawner;
111
- const handle = yield* spawner.spawn(make2(command, args, { cwd, stdin: "ignore" }));
111
+ const handle = yield* spawner.spawn(make3(command, args, { cwd, stdin: "ignore" }));
112
112
  const [stdout, stderr, exitCode] = yield* all3([
113
113
  mkString(decodeText(handle.stdout)),
114
114
  mkString(decodeText(handle.stderr)),
@@ -3,7 +3,7 @@ import {
3
3
  Random,
4
4
  succeed6,
5
5
  withFiber2
6
- } from "./chunk-zgraq2y3.js";
6
+ } from "./chunk-zw3gf6r5.js";
7
7
 
8
8
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Random.js
9
9
  var Random2 = Random;
@@ -12,7 +12,7 @@ import {
12
12
  succeed,
13
13
  isSuccess,
14
14
  TaggedError,
15
- make15,
15
+ make16,
16
16
  _await,
17
17
  fail5,
18
18
  succeed5,
@@ -104,7 +104,7 @@ import {
104
104
  decodeJsonString,
105
105
  encodeJsonStringSync,
106
106
  encodePrettyJsonString
107
- } from "./chunk-zgraq2y3.js";
107
+ } from "./chunk-zw3gf6r5.js";
108
108
  import {
109
109
  tap,
110
110
  mapError,
@@ -116,7 +116,7 @@ import {
116
116
  withDefault,
117
117
  option,
118
118
  String2
119
- } from "./chunk-x20t7xy8.js";
119
+ } from "./chunk-hakqpy8z.js";
120
120
  import {
121
121
  currentTimeMillis,
122
122
  SecureRandom,
@@ -168,7 +168,7 @@ import {
168
168
  digestSha256,
169
169
  sha256Hasher,
170
170
  raw,
171
- make4,
171
+ make5,
172
172
  get,
173
173
  put,
174
174
  HttpClient,
@@ -232,14 +232,14 @@ import {
232
232
  harnessNames,
233
233
  herdrRunnerCapabilities2,
234
234
  declaredChecks
235
- } from "./chunk-80f0p6s7.js";
235
+ } from "./chunk-bc8ytp0y.js";
236
236
  import {
237
237
  Id
238
- } from "./chunk-pxvd8w2v.js";
238
+ } from "./chunk-q5w3v4k1.js";
239
239
  import {
240
240
  ChildProcessSpawner,
241
- make2
242
- } from "./chunk-cbf0q15q.js";
241
+ make3
242
+ } from "./chunk-84xks8tn.js";
243
243
 
244
244
  // apps/cli/src/cli-error.ts
245
245
  function cliErrorCode(error, status) {
@@ -1020,10 +1020,10 @@ var sandboxMissing = (sandbox, missing) => ({
1020
1020
  var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
1021
1021
  var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
1022
1022
  var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
1023
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-pjq9bf3w.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
1023
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-ynvzbgms.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
1024
1024
  });
1025
1025
  var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
1026
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-pjq9bf3w.js")), (module) => module.updateHerdrCore(options))
1026
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-ynvzbgms.js")), (module) => module.updateHerdrCore(options))
1027
1027
  });
1028
1028
  var herdrCoreMissing = (error) => {
1029
1029
  if (isTagged(error, "HerdrCoreMissing"))
@@ -1449,7 +1449,7 @@ var syncTargets = (harness) => gen(function* () {
1449
1449
  });
1450
1450
  var syncKits = (input) => gen(function* () {
1451
1451
  const fs = yield* FileSystem;
1452
- const { syncKitSetup } = yield* promise(() => import("./chunk-syhs23yk.js"));
1452
+ const { syncKitSetup } = yield* promise(() => import("./chunk-be2jf9m3.js"));
1453
1453
  const harnesses = yield* syncTargets(input.harness);
1454
1454
  const chain = yield* input.client.getKitChain(input.workspaceId);
1455
1455
  for (const { name, problem } of chain.skipped)
@@ -1966,7 +1966,7 @@ var ServiceManager = Reference("kitman/cli/ServiceManager", {
1966
1966
  run: (command, args) => runCommand2(command, args),
1967
1967
  attach: (command, args) => gen(function* () {
1968
1968
  const spawner = yield* ChildProcessSpawner;
1969
- const handle = yield* spawner.spawn(make2(command, args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" }));
1969
+ const handle = yield* spawner.spawn(make3(command, args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" }));
1970
1970
  const exitCode = yield* handle.exitCode;
1971
1971
  if (exitCode !== 0)
1972
1972
  return yield* new CommandFailed2({ command, reason: `exit code ${exitCode}` });
@@ -2368,7 +2368,7 @@ var package_default = {
2368
2368
  };
2369
2369
 
2370
2370
  // apps/cli/src/scaffold.ts
2371
- var cliVersion = "0.13.17";
2371
+ var cliVersion = "0.13.18";
2372
2372
  var packageJson = (name, scaffold) => `${JSON.stringify({
2373
2373
  name,
2374
2374
  private: true,
@@ -2520,7 +2520,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
2520
2520
 
2521
2521
  // apps/cli/src/commands.ts
2522
2522
  var ClientId = "kitman-cli";
2523
- var agentRuntime = promise(() => import("./chunk-4yca7e7x.js"));
2523
+ var agentRuntime = promise(() => import("./chunk-39m1xtbk.js"));
2524
2524
  var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
2525
2525
  defaultValue: () => gen(function* () {
2526
2526
  const tui = yield* tryPromise({
@@ -3556,7 +3556,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
3556
3556
  });
3557
3557
  var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
3558
3558
  defaultValue: () => (options) => gen(function* () {
3559
- const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-gasqek3p.js"));
3559
+ const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-z1rve2hk.js"));
3560
3560
  return yield* makeRunnerRpcClient({
3561
3561
  runnerId: options.runnerId,
3562
3562
  bearer: options.bearer,
@@ -3868,7 +3868,7 @@ function startCanonicalHerdrRunnerCommand(input) {
3868
3868
  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);
3869
3869
  yield* suspend3(() => sleep(ownerLogin.expired() ? ownerLoginRetryInterval : ownerLoginInterval)).pipe(andThen2(checkOwnerLogin), forever, forkScoped);
3870
3870
  const platform = yield* context();
3871
- const updated = yield* make15();
3871
+ const updated = yield* make16();
3872
3872
  const scope = yield* scope2;
3873
3873
  const startUpdate = (update) => update.pipe(catch_((error) => andThen2(restartOntoUpdate(input.runnerId), fail5(updated, error))), provideContext2(platform), forkIn(scope), asVoid);
3874
3874
  const refusedForProtocol = container ? updater.stopWhenDrained(new RunnerStopped({ problem: updateRequired })).pipe(catch_((stopped) => fail5(updated, stopped)), forkIn(scope), asVoid) : startUpdate(updater.updateRequired);
@@ -4123,7 +4123,7 @@ function mcpCommand(args) {
4123
4123
  if (command.action === "run") {
4124
4124
  if (command.args.length > 0)
4125
4125
  return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
4126
- const { runMcpServerCommand } = yield* promise(() => import("./chunk-b5edh1jq.js"));
4126
+ const { runMcpServerCommand } = yield* promise(() => import("./chunk-7m71m106.js"));
4127
4127
  return yield* runMcpServerCommand({ flags: command.flags });
4128
4128
  }
4129
4129
  if (command.action !== "setup")
@@ -4611,7 +4611,7 @@ function programLoopCommand(command) {
4611
4611
  return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
4612
4612
  });
4613
4613
  }
4614
- var docsModule = promise(() => import("./chunk-efyrm6bv.js"));
4614
+ var docsModule = promise(() => import("./chunk-dc0pcs3z.js"));
4615
4615
  function docsCommand(args) {
4616
4616
  return gen(function* () {
4617
4617
  const command = parseCommand(args);
@@ -5453,9 +5453,9 @@ function changeRequestCommand(args) {
5453
5453
  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}`);
5454
5454
  });
5455
5455
  }
5456
- var KitWriter = map8(promise(() => import("./chunk-g7ysb6ca.js")), (build) => build.writeKit);
5456
+ var KitWriter = map8(promise(() => import("./chunk-fv2v1sdc.js")), (build) => build.writeKit);
5457
5457
  var KitBuilder = Reference("kitman/cli/KitBuilder", {
5458
- defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-g7ysb6ca.js")), (build) => build.buildKit(directory))
5458
+ defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-fv2v1sdc.js")), (build) => build.buildKit(directory))
5459
5459
  });
5460
5460
  var uploadKit = (client, workspaceId, built) => gen(function* () {
5461
5461
  yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
@@ -6232,7 +6232,7 @@ function downloadPresignedAsset(download, outputPath) {
6232
6232
  return gen(function* () {
6233
6233
  const fs = yield* FileSystem;
6234
6234
  const failed = (cause) => new CliError({ message: `Asset download failed: ${String(cause)}` });
6235
- const response = yield* send(make4(download.method)(download.url), failed);
6235
+ const response = yield* send(make5(download.method)(download.url), failed);
6236
6236
  if (response.status < 200 || response.status >= 300)
6237
6237
  return yield* new CliError({ message: `Asset download failed with ${response.status}` });
6238
6238
  const body = yield* response.arrayBuffer.pipe(mapError2((error) => failed(error.message)));
@@ -4,9 +4,9 @@ import {
4
4
  opaqueTunnelRefusal2,
5
5
  isOpaqueConnectReason2,
6
6
  runSrtStep2
7
- } from "./chunk-ggmwpwhf.js";
8
- import"./chunk-pxvd8w2v.js";
9
- import"./chunk-zgraq2y3.js";
7
+ } from "./chunk-y1krmnbv.js";
8
+ import"./chunk-q5w3v4k1.js";
9
+ import"./chunk-zw3gf6r5.js";
10
10
  export {
11
11
  isOpaqueConnectReason2 as isOpaqueConnectReason,
12
12
  opaqueTunnelRefusal2 as opaqueTunnelRefusal,
@@ -201,7 +201,7 @@ import {
201
201
  String4,
202
202
  toCodecStringTree,
203
203
  encodeUnknownJsonStringSync
204
- } from "./chunk-zgraq2y3.js";
204
+ } from "./chunk-zw3gf6r5.js";
205
205
 
206
206
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
207
207
  var headUnsafe = (self) => {
@@ -250,6 +250,15 @@ var makeEquivalence = (equivalence) => {
250
250
  return (self, that) => is(self, that) && is(that, self);
251
251
  };
252
252
 
253
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
254
+ var BigInt2 = globalThis.BigInt;
255
+ var toNumber = (b) => {
256
+ if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
257
+ return none();
258
+ }
259
+ return some(Number(b));
260
+ };
261
+
253
262
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/ByteSize.js
254
263
  var bigint0 = /* @__PURE__ */ BigInt(0);
255
264
  var bigint1 = /* @__PURE__ */ BigInt(1);
@@ -1129,7 +1138,7 @@ var MutableRefProto = {
1129
1138
  };
1130
1139
  }
1131
1140
  };
1132
- var make7 = (value) => {
1141
+ var make8 = (value) => {
1133
1142
  const ref = Object.create(MutableRefProto);
1134
1143
  ref.current = value;
1135
1144
  return ref;
@@ -1290,7 +1299,7 @@ var remove = (self, value) => filter2(self, (v) => v !== value);
1290
1299
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/PubSub.js
1291
1300
  var TypeId3 = "~effect/PubSub";
1292
1301
  var SubscriptionTypeId = "~effect/PubSub/Subscription";
1293
- var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false), make7(false), options.strategy(), make7(none())));
1302
+ var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false), make8(false), options.strategy(), make8(none())));
1294
1303
  var unbounded = (options) => make5({
1295
1304
  atomicPubSub: () => makeAtomicUnbounded(options),
1296
1305
  strategy: () => new DroppingStrategy
@@ -1385,7 +1394,7 @@ var removeSubscribers = (subscribers, subscription, pollers) => {
1385
1394
  subscribers.delete(subscription);
1386
1395
  }
1387
1396
  };
1388
- var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false), make7(false), strategy, pubsub.replayWindow(), ended);
1397
+ var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false), make8(false), strategy, pubsub.replayWindow(), ended);
1389
1398
  class UnboundedPubSub {
1390
1399
  publisherHead = {
1391
1400
  value: AbsentValue,
@@ -1802,7 +1811,7 @@ var QueueProto = {
1802
1811
  };
1803
1812
  }
1804
1813
  };
1805
- var make8 = (options) => withFiber((fiber) => {
1814
+ var make9 = (options) => withFiber((fiber) => {
1806
1815
  const self = Object.create(QueueProto);
1807
1816
  self.dispatcher = fiber.currentDispatcher;
1808
1817
  self.capacity = options?.capacity ?? Number.POSITIVE_INFINITY;
@@ -1817,14 +1826,14 @@ var make8 = (options) => withFiber((fiber) => {
1817
1826
  };
1818
1827
  return succeed2(self);
1819
1828
  });
1820
- var bounded = (capacity) => make8({
1829
+ var bounded = (capacity) => make9({
1821
1830
  capacity
1822
1831
  });
1823
- var sliding = (capacity) => make8({
1832
+ var sliding = (capacity) => make9({
1824
1833
  capacity,
1825
1834
  strategy: "sliding"
1826
1835
  });
1827
- var unbounded2 = () => make8();
1836
+ var unbounded2 = () => make9();
1828
1837
  var offer = /* @__PURE__ */ dual(2, (self, message) => suspend2(() => offerUnsafe(self, message) ? exitTrue : self.state._tag === "Open" && self.strategy === "suspend" ? offerOrWait(self, message) : exitFalse));
1829
1838
  var offerUnsafe = (self, message) => {
1830
1839
  if (self.state._tag !== "Open") {
@@ -2250,7 +2259,7 @@ var fromTransformBracket = (f) => fromTransform(fnUntraced(function* (upstream,
2250
2259
  return onError(pull, onCause);
2251
2260
  }));
2252
2261
  var toTransform = (channel) => channel.transform;
2253
- var asyncQueue = (scope, f, options) => make8({
2262
+ var asyncQueue = (scope, f, options) => make9({
2254
2263
  capacity: options?.bufferSize,
2255
2264
  strategy: options?.strategy
2256
2265
  }).pipe(tap2((queue) => addFinalizer(scope, shutdown(queue))), tap2((queue) => provide(f(queue), scope).pipe(catchCause2((cause) => failCause(queue, cause)), forkIn(scope, {
@@ -2291,7 +2300,7 @@ var fromReadableStream2 = (options) => fromTransform((_, scope) => readableStrea
2291
2300
  }));
2292
2301
  var readableStreamToPullUnsafe = (options) => {
2293
2302
  const reader = options.readable.getReader();
2294
- const exit = options.exit ?? make7(undefined);
2303
+ const exit = options.exit ?? make8(undefined);
2295
2304
  const pull = suspend3(() => {
2296
2305
  if (exit.current)
2297
2306
  return exit.current;
@@ -2905,7 +2914,7 @@ var release = (self, state) => {
2905
2914
  };
2906
2915
 
2907
2916
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
2908
- var make9 = make6;
2917
+ var make10 = make6;
2909
2918
  var get3 = get2;
2910
2919
 
2911
2920
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
@@ -2917,7 +2926,7 @@ var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatM
2917
2926
  var toChannel2 = (stream) => stream.channel;
2918
2927
  var callback = (f, options) => fromChannel2(callbackArray(f, options));
2919
2928
  var empty2 = /* @__PURE__ */ fromChannel2(empty);
2920
- var make10 = (...values) => fromArray2(values);
2929
+ var make11 = (...values) => fromArray2(values);
2921
2930
  var suspend = (stream) => {
2922
2931
  const suspended = fromChannel2(suspend4(() => stream().channel));
2923
2932
  suspendedStreams.set(suspended, stream);
@@ -3100,7 +3109,7 @@ var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (
3100
3109
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
3101
3110
  var TypeId10 = "~effect/FileSystem";
3102
3111
  var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
3103
- var make11 = (impl) => FileSystem.of({
3112
+ var make12 = (impl) => FileSystem.of({
3104
3113
  ...impl,
3105
3114
  [TypeId10]: TypeId10,
3106
3115
  glob: make2(impl),
@@ -3160,7 +3169,7 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
3160
3169
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
3161
3170
  var TypeId11 = "~effect/Path";
3162
3171
  var Path = /* @__PURE__ */ Service2("effect/Path");
3163
- var make12 = (impl) => Path.of({
3172
+ var make13 = (impl) => Path.of({
3164
3173
  ...impl,
3165
3174
  [TypeId11]: TypeId11,
3166
3175
  resolveWithin(root, input) {
@@ -3235,7 +3244,7 @@ function makeProvider(load, mapInput) {
3235
3244
  function makeSource(get, transform) {
3236
3245
  return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
3237
3246
  }
3238
- function make13(get) {
3247
+ function make7(get) {
3239
3248
  return makeSource(get, identityPath);
3240
3249
  }
3241
3250
  function emptyStringAsMissing(value, preserveEmptyStrings) {
@@ -3244,7 +3253,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
3244
3253
  function fromEnvRecord(env, options) {
3245
3254
  const preserveEmptyStrings = options?.preserveEmptyStrings === true;
3246
3255
  const trie = buildEnvTrie(env);
3247
- return make13((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
3256
+ return make7((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
3248
3257
  }
3249
3258
  function fromEnv(options) {
3250
3259
  const env = options?.env ?? {
@@ -3575,4 +3584,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
3575
3584
  ...argv
3576
3585
  ];
3577
3586
 
3578
- export { map, makeEquivalence, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2, make7, unbounded, publishUnsafe, make8, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe3, fromTransform, mapDone, isSink, fromChannel, drain, make9, get3, isStream, fromChannel2, callback, empty2, make10, suspend, fail2, fromQueue, fromPubSub, fromReadableStream, unwrap, map2, tap, drainFork, concat, merge2, filter, catchCause, tapError, mapError, take2, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make11, FileTypeId, WatchBackend, Path, make12, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, operatorConfigHome, tempDirectoryScoped, harnessesUnsupportedInSrt2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
3587
+ export { map, makeEquivalence, toNumber, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2, make8, unbounded, publishUnsafe, make9, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe3, fromTransform, mapDone, isSink, fromChannel, drain, make10, get3, isStream, fromChannel2, callback, empty2, make11, suspend, fail2, fromQueue, fromPubSub, fromReadableStream, unwrap, map2, tap, drainFork, concat, merge2, filter, catchCause, tapError, mapError, take2, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make12, FileTypeId, WatchBackend, Path, make13, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, operatorConfigHome, tempDirectoryScoped, harnessesUnsupportedInSrt2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
@@ -18,7 +18,7 @@ import {
18
18
  isMinLength,
19
19
  isMaxLength,
20
20
  FiniteFromString
21
- } from "./chunk-zgraq2y3.js";
21
+ } from "./chunk-zw3gf6r5.js";
22
22
 
23
23
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/JsonSchema.js
24
24
  var PRE_2020_TO_2020_COLLISIONS = ["$anchor", "$defs", "$dynamicAnchor", "$dynamicRef", "$vocabulary", "contentSchema", "dependentRequired", "dependentSchemas", "maxContains", "minContains", "prefixItems", "unevaluatedItems", "unevaluatedProperties"];
@@ -24,11 +24,11 @@ import {
24
24
  Record,
25
25
  Int,
26
26
  fromJsonString
27
- } from "./chunk-zgraq2y3.js";
27
+ } from "./chunk-zw3gf6r5.js";
28
28
  import {
29
29
  withDefault,
30
30
  String2
31
- } from "./chunk-x20t7xy8.js";
31
+ } from "./chunk-hakqpy8z.js";
32
32
  import {
33
33
  newerKitmanVersion,
34
34
  digestSha256,
@@ -39,7 +39,7 @@ import {
39
39
  get2,
40
40
  layer4,
41
41
  KitDigest
42
- } from "./chunk-80f0p6s7.js";
42
+ } from "./chunk-bc8ytp0y.js";
43
43
 
44
44
  // packages/core/src/npm-registry.ts
45
45
  var KitManifest = Struct({
@@ -6,10 +6,10 @@ import {
6
6
  gen,
7
7
  flatMap3,
8
8
  provideContext2
9
- } from "./chunk-zgraq2y3.js";
9
+ } from "./chunk-zw3gf6r5.js";
10
10
  import {
11
11
  runForEach
12
- } from "./chunk-x20t7xy8.js";
12
+ } from "./chunk-hakqpy8z.js";
13
13
  import {
14
14
  WebSocketConstructor,
15
15
  layerWebSocketConstructorGlobal,
@@ -19,13 +19,13 @@ import {
19
19
  RunnerReplicaRpcs,
20
20
  RunnerRunFileRpcs,
21
21
  ProgramRpcs
22
- } from "./chunk-80f0p6s7.js";
22
+ } from "./chunk-bc8ytp0y.js";
23
23
  import {
24
24
  layerJson,
25
- make3,
25
+ make4,
26
26
  withHeaders,
27
27
  layerProtocolSocket
28
- } from "./chunk-1cr225aq.js";
28
+ } from "./chunk-940cc29s.js";
29
29
 
30
30
  // packages/live/src/rpc/runner-client.ts
31
31
  var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
@@ -46,7 +46,7 @@ var authorizer = (options) => (call) => flatMap3(options.bearer, (token) => with
46
46
  var RunnerProcessRpcs = RunnerReplicaRpcs.merge(RunnerRunFileRpcs);
47
47
  var makeRunnerRpcClient2 = (options) => gen(function* () {
48
48
  const protocol = yield* build(options.protocol);
49
- const client = yield* make3(RunnerProcessRpcs).pipe(provideContext2(protocol));
49
+ const client = yield* make4(RunnerProcessRpcs).pipe(provideContext2(protocol));
50
50
  const authorized = authorizer(options);
51
51
  return {
52
52
  claim: (input) => authorized(client.Claim(input)),
@@ -74,7 +74,7 @@ var makeRunnerRpcClient2 = (options) => gen(function* () {
74
74
  });
75
75
  var makeProgramRpcClient2 = (options) => gen(function* () {
76
76
  const protocol = yield* build(options.protocol);
77
- const client = yield* make3(ProgramRpcs).pipe(provideContext2(protocol));
77
+ const client = yield* make4(ProgramRpcs).pipe(provideContext2(protocol));
78
78
  const authorized = authorizer(options);
79
79
  return {
80
80
  recordActivity: (input) => authorized(client.RecordActivity(input)),
@@ -1,4 +1,10 @@
1
1
  // @bun
2
+ import {
3
+ FileSystem,
4
+ Path,
5
+ optionalEnv,
6
+ tempDirectoryScoped
7
+ } from "./chunk-hakqpy8z.js";
2
8
  import {
3
9
  Reference,
4
10
  TaggedError,
@@ -25,21 +31,15 @@ import {
25
31
  isString2,
26
32
  encodePrettyJsonString,
27
33
  decodeJsonStringSync
28
- } from "./chunk-zgraq2y3.js";
29
- import {
30
- FileSystem,
31
- Path,
32
- optionalEnv,
33
- tempDirectoryScoped
34
- } from "./chunk-x20t7xy8.js";
34
+ } from "./chunk-zw3gf6r5.js";
35
35
  import {
36
36
  AgentHarnessIds,
37
37
  sha2562,
38
38
  runCommand2
39
- } from "./chunk-80f0p6s7.js";
39
+ } from "./chunk-bc8ytp0y.js";
40
40
  import {
41
41
  NpmRegistry
42
- } from "./chunk-q4ra17vf.js";
42
+ } from "./chunk-r1s1dcy0.js";
43
43
 
44
44
  // packages/agent-runtime/src/config-convergence.ts
45
45
  var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
@@ -13,11 +13,11 @@ import {
13
13
  ArraySchema,
14
14
  decodeJsonStringOption,
15
15
  encodeUnknownJsonStringSync
16
- } from "./chunk-zgraq2y3.js";
16
+ } from "./chunk-zw3gf6r5.js";
17
17
  import {
18
18
  replaceSecretReferences,
19
19
  secretReferencesIn
20
- } from "./chunk-pxvd8w2v.js";
20
+ } from "./chunk-q5w3v4k1.js";
21
21
 
22
22
  // packages/agent-runtime/src/srt-step.ts
23
23
  import { SandboxRuntimeConfigSchema } from "@anthropic-ai/sandbox-runtime";
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import"./chunk-cbf0q15q.js";
2
+ import"./chunk-84xks8tn.js";
3
3
  import {
4
4
  HERDR_CORE_GENERATION2,
5
5
  HERDR_CORE_INSTALL_COMMAND2,
@@ -12,9 +12,9 @@ import {
12
12
  herdrCoreLayer2,
13
13
  herdrCoreTransportLayer2,
14
14
  updateHerdrCore2
15
- } from "./chunk-80f0p6s7.js";
16
- import"./chunk-x20t7xy8.js";
17
- import"./chunk-zgraq2y3.js";
15
+ } from "./chunk-bc8ytp0y.js";
16
+ import"./chunk-hakqpy8z.js";
17
+ import"./chunk-zw3gf6r5.js";
18
18
  export {
19
19
  HERDR_CORE_GENERATION2 as HERDR_CORE_GENERATION,
20
20
  HERDR_CORE_INSTALL_COMMAND2 as HERDR_CORE_INSTALL_COMMAND,
@@ -4,12 +4,12 @@ import {
4
4
  runnerRpcUrl2,
5
5
  makeRunnerRpcClient2,
6
6
  makeProgramRpcClient2
7
- } from "./chunk-zcpnmgwb.js";
8
- import"./chunk-1cr225aq.js";
9
- import"./chunk-80f0p6s7.js";
10
- import"./chunk-pxvd8w2v.js";
11
- import"./chunk-x20t7xy8.js";
12
- import"./chunk-zgraq2y3.js";
7
+ } from "./chunk-rp4tn60z.js";
8
+ import"./chunk-940cc29s.js";
9
+ import"./chunk-bc8ytp0y.js";
10
+ import"./chunk-q5w3v4k1.js";
11
+ import"./chunk-hakqpy8z.js";
12
+ import"./chunk-zw3gf6r5.js";
13
13
  export {
14
14
  makeProgramRpcClient2 as makeProgramRpcClient,
15
15
  makeRunnerRpcClient2 as makeRunnerRpcClient,