@kitman-sh/cli 0.32.0 → 0.33.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.
Files changed (28) hide show
  1. package/dist/{chunk-a0bjjbhg.js → chunk-1zb8h7gv.js} +42 -29
  2. package/dist/{chunk-rbpn35g5.js → chunk-4qjfn1sa.js} +1 -1
  3. package/dist/{chunk-znhjs0t6.js → chunk-5kqt4bqp.js} +1 -1
  4. package/dist/{chunk-z0gqrc8c.js → chunk-8fyfsajs.js} +17 -17
  5. package/dist/{chunk-er0e8d8v.js → chunk-9nbqzdqp.js} +60 -14
  6. package/dist/{chunk-5hp8ams4.js → chunk-9tyv6211.js} +12 -12
  7. package/dist/{chunk-ah59jrtr.js → chunk-a9ncx2a8.js} +1 -1
  8. package/dist/{chunk-af8kftyw.js → chunk-ak1qrm4q.js} +7 -7
  9. package/dist/{chunk-6e6t0f8y.js → chunk-bnhb3cth.js} +2 -2
  10. package/dist/{chunk-c8eg05nh.js → chunk-gnq1ryhx.js} +4 -4
  11. package/dist/{chunk-61dmxexa.js → chunk-h2f26xbd.js} +28 -70
  12. package/dist/{chunk-awx0zevr.js → chunk-hgxhpj6m.js} +4 -4
  13. package/dist/{chunk-4tzzmrz2.js → chunk-jrwpte6y.js} +40 -40
  14. package/dist/{chunk-3cneth9k.js → chunk-mhx0tgm3.js} +7 -7
  15. package/dist/{chunk-r3mjxsmn.js → chunk-np5n54ky.js} +5 -5
  16. package/dist/{chunk-nb6h112w.js → chunk-nwbry6c8.js} +117 -116
  17. package/dist/{chunk-1an3xh3b.js → chunk-py3133q0.js} +6 -6
  18. package/dist/{chunk-x4d4t28n.js → chunk-racse7zf.js} +356 -33
  19. package/dist/{chunk-56gs4z53.js → chunk-s34am3kw.js} +7 -7
  20. package/dist/{chunk-4qrb09w4.js → chunk-samxkpbz.js} +3 -3
  21. package/dist/{chunk-acmyagwp.js → chunk-sgkgwzvb.js} +5 -5
  22. package/dist/{chunk-1hgsf81a.js → chunk-tsx0347c.js} +1 -1
  23. package/dist/{chunk-q8e58p57.js → chunk-vz38kngm.js} +2 -2
  24. package/dist/{chunk-qqb6djs7.js → chunk-x29m7k25.js} +2 -2
  25. package/dist/{chunk-abyssa8p.js → chunk-xkkyx7bn.js} +3 -3
  26. package/dist/{chunk-rnm5ybw4.js → chunk-yveqd8ye.js} +4 -4
  27. package/dist/index.js +4 -4
  28. package/package.json +1 -1
@@ -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,
@@ -108,7 +108,7 @@ import {
108
108
  decodeJsonStringOption,
109
109
  encodeJsonStringSync,
110
110
  encodePrettyJsonString
111
- } from "./chunk-61dmxexa.js";
111
+ } from "./chunk-h2f26xbd.js";
112
112
  import {
113
113
  currentTimeMillis,
114
114
  tap,
@@ -121,7 +121,7 @@ import {
121
121
  withDefault,
122
122
  option,
123
123
  String2
124
- } from "./chunk-z0gqrc8c.js";
124
+ } from "./chunk-8fyfsajs.js";
125
125
  import {
126
126
  SecureRandom,
127
127
  layerWebCrypto,
@@ -185,7 +185,7 @@ import {
185
185
  digestSha256,
186
186
  sha256Hasher,
187
187
  raw,
188
- make4,
188
+ make5,
189
189
  get,
190
190
  put,
191
191
  HttpClient,
@@ -251,15 +251,15 @@ import {
251
251
  harnessNames,
252
252
  herdrRunnerCapabilities2,
253
253
  declaredChecks
254
- } from "./chunk-nb6h112w.js";
254
+ } from "./chunk-nwbry6c8.js";
255
255
  import {
256
256
  ChildProcessSpawner,
257
- make2
258
- } from "./chunk-er0e8d8v.js";
257
+ make3
258
+ } from "./chunk-9nbqzdqp.js";
259
259
  import {
260
260
  Id,
261
261
  Timestamp
262
- } from "./chunk-rbpn35g5.js";
262
+ } from "./chunk-4qjfn1sa.js";
263
263
 
264
264
  // apps/cli/src/cli-error.ts
265
265
  function cliErrorCode(error, status) {
@@ -306,7 +306,7 @@ function cliErrorJson(error) {
306
306
  var cliErrorLine = (error) => error instanceof Error ? error.message : String(error);
307
307
 
308
308
  // apps/cli/src/commands.ts
309
- import { homedir } from "os";
309
+ import { homedir, tmpdir } from "os";
310
310
 
311
311
  // packages/core/src/marketplace.ts
312
312
  import { parse } from "@babel/parser";
@@ -1326,10 +1326,10 @@ var sandboxMissing = (sandbox, missing) => ({
1326
1326
  var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
1327
1327
  var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
1328
1328
  var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
1329
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-rnm5ybw4.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
1329
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-yveqd8ye.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
1330
1330
  });
1331
1331
  var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
1332
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-rnm5ybw4.js")), (module) => module.updateHerdrCore(options))
1332
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-yveqd8ye.js")), (module) => module.updateHerdrCore(options))
1333
1333
  });
1334
1334
  var herdrCoreMissing = (error) => {
1335
1335
  if (isTagged(error, "HerdrCoreMissing"))
@@ -1773,7 +1773,7 @@ var syncTargets = (harness) => gen(function* () {
1773
1773
  });
1774
1774
  var syncKits = (input) => gen(function* () {
1775
1775
  const fs = yield* FileSystem;
1776
- const { syncKitSetup } = yield* promise(() => import("./chunk-af8kftyw.js"));
1776
+ const { syncKitSetup } = yield* promise(() => import("./chunk-ak1qrm4q.js"));
1777
1777
  const harnesses = yield* syncTargets(input.harness);
1778
1778
  const chain = yield* input.client.getKitChain(input.workspaceId);
1779
1779
  for (const { name, problem } of chain.skipped)
@@ -2290,7 +2290,7 @@ var ServiceManager = Reference("kitman/cli/ServiceManager", {
2290
2290
  run: (command, args) => runCommand2(command, args),
2291
2291
  attach: (command, args) => gen(function* () {
2292
2292
  const spawner = yield* ChildProcessSpawner;
2293
- const handle = yield* spawner.spawn(make2(command, args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" }));
2293
+ const handle = yield* spawner.spawn(make3(command, args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" }));
2294
2294
  const exitCode = yield* handle.exitCode;
2295
2295
  if (exitCode !== 0)
2296
2296
  return yield* new CommandFailed2({ command, reason: `exit code ${exitCode}` });
@@ -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.32.0";
3271
+ var cliVersion = "0.33.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-x4d4t28n.js"));
3536
+ var agentRuntime = promise(() => import("./chunk-racse7zf.js"));
3537
3537
  var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
3538
3538
  defaultValue: () => gen(function* () {
3539
3539
  const tui = yield* tryPromise({
@@ -5072,7 +5072,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
5072
5072
  });
5073
5073
  var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
5074
5074
  defaultValue: () => (options) => gen(function* () {
5075
- const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-1an3xh3b.js"));
5075
+ const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-py3133q0.js"));
5076
5076
  return yield* makeRunnerRpcClient({
5077
5077
  runnerId: options.runnerId,
5078
5078
  bearer: options.bearer,
@@ -5189,6 +5189,10 @@ function startCanonicalHerdrRunnerCommand(input) {
5189
5189
  programProcessExecutor,
5190
5190
  removeRunnerTerminals,
5191
5191
  makeStepProcesses,
5192
+ dockerStepContainers,
5193
+ dockerRootDirectory,
5194
+ diskSpaceProblem,
5195
+ diskSpaceMeter,
5192
5196
  StepProcesses,
5193
5197
  stepProcessesUncontained,
5194
5198
  systemProcessTable,
@@ -5249,7 +5253,10 @@ function startCanonicalHerdrRunnerCommand(input) {
5249
5253
  const core = yield* (yield* OpenHerdrCore)(session === undefined ? {} : { session });
5250
5254
  if (!personal)
5251
5255
  yield* addFinalizer2(() => core.stopServer.pipe(timeout("10 seconds"), ignore));
5252
- const stepProcesses = makeStepProcesses(yield* systemProcessTable, { scopes: yield* systemdScopes });
5256
+ const stepProcesses = makeStepProcesses(yield* systemProcessTable, {
5257
+ scopes: yield* systemdScopes,
5258
+ containers: yield* dockerStepContainers
5259
+ });
5253
5260
  const unready = yield* startupStep("connect to herdr-core", "30 seconds", core.connect.pipe(flatMap3((connection) => removeRunnerTerminals(connection, input.runnerId)), scoped, andThen2(stepProcesses.reapRunner(input.runnerId)), as(undefined), catchTags({
5254
5261
  HerdrCoreMissing: (error) => succeed6(herdrCoreMissing(error)),
5255
5262
  HerdrCoreIncompatible: (error) => succeed6(herdrCoreMissing(error))
@@ -5274,6 +5281,12 @@ function startCanonicalHerdrRunnerCommand(input) {
5274
5281
  authStore,
5275
5282
  toolchain: homeDirectories([...searchPath.split(":"), ...kitmanInstall], homedir())
5276
5283
  };
5284
+ const dockerRoot = yield* dockerRootDirectory;
5285
+ const measureDiskSpace = yield* diskSpaceMeter;
5286
+ const diskProblems = map9(measureDiskSpace([runnerState.workRoot, tmpdir(), ...dockerRoot === undefined ? [] : [dockerRoot]]), (disks) => {
5287
+ const problem = diskSpaceProblem(disks);
5288
+ return problem === undefined ? [] : [problem];
5289
+ });
5277
5290
  const detected = yield* detectHarnesses;
5278
5291
  const inSrt = sandbox === "srt" ? yield* startupStep("start each Harness in srt", "120 seconds", harnessesInSrt({ detection: detected, runner: runnerState })) : undefined;
5279
5292
  const live = { settings, sandbox, sandboxProblem: chosen.problem, inSrt };
@@ -5360,13 +5373,13 @@ function startCanonicalHerdrRunnerCommand(input) {
5360
5373
  return yield* gen(function* () {
5361
5374
  const agentBackend = yield* AgentBackend;
5362
5375
  const spawner = yield* ChildProcessSpawner;
5363
- yield* startupStep("heartbeat", "30 seconds", stopOnRefusal(controlPlane.client.heartbeatRunner(input.runnerId, {
5376
+ yield* startupStep("heartbeat", "30 seconds", stopOnRefusal(flatMap3(diskProblems, (disk) => controlPlane.client.heartbeatRunner(input.runnerId, {
5364
5377
  ...reported,
5365
- problems: problemsNow(),
5378
+ problems: [...problemsNow(), ...disk],
5366
5379
  capabilities: capabilitiesNow(),
5367
5380
  labels: runner.labels,
5368
5381
  ...appliedSettingsReport()
5369
- }).pipe(tap2(followReleaseChannel), andThen2(controlPlane.client.heartbeatRunnerReplica(input.runnerId, replica.id, {
5382
+ })).pipe(tap2(followReleaseChannel), andThen2(controlPlane.client.heartbeatRunnerReplica(input.runnerId, replica.id, {
5370
5383
  healthStatus: "healthy",
5371
5384
  drainState: "accepting",
5372
5385
  capacity: { maxConcurrentRuns: live.settings.concurrency },
@@ -5387,7 +5400,7 @@ function startCanonicalHerdrRunnerCommand(input) {
5387
5400
  yield* controlPlane.client.listRepoBindings(runner.workspaceId).pipe(flatMap3(({ items }) => forEach(items.filter((binding) => binding.status === "active" && (teamId === undefined || binding.teamId === teamId)), (repoBinding) => map9(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);
5388
5401
  yield* suspend3(() => sleep(ownerLogin.expired() ? ownerLoginRetryInterval : ownerLoginInterval)).pipe(andThen2(checkOwnerLogin), forever, forkScoped);
5389
5402
  const platform = yield* context();
5390
- const updated = yield* make15();
5403
+ const updated = yield* make16();
5391
5404
  const scope = yield* scope2;
5392
5405
  const startUpdate = (update) => update.pipe(catch_((error) => andThen2(restartOntoUpdate(input.runnerId), fail5(updated, error))), provideContext2(platform), forkIn(scope), asVoid);
5393
5406
  const refusedForProtocol = container ? updater.stopWhenDrained(new RunnerStopped({ problem: updateRequired })).pipe(catch_((stopped) => fail5(updated, stopped)), forkIn(scope), asVoid) : startUpdate(updater.updateRequired);
@@ -5564,9 +5577,9 @@ function startCanonicalHerdrRunnerCommand(input) {
5564
5577
  })), ensuring2(sync2(() => claimsInFlight -= 1)), tapError2(onProtocolRefusal));
5565
5578
  }),
5566
5579
  finished: () => sync2(() => activeSlots.delete(capacitySlot)),
5567
- heartbeatReplica: () => flatMap3(stepProcesses.problems, (unreaped) => controlPlane.client.heartbeatRunner(input.runnerId, {
5580
+ heartbeatReplica: () => flatMap3(all3([stepProcesses.problems, diskProblems]), ([unreaped, disk]) => controlPlane.client.heartbeatRunner(input.runnerId, {
5568
5581
  ...reported,
5569
- problems: [...problemsNow(), ...updater.problems(), ...unreaped],
5582
+ problems: [...problemsNow(), ...updater.problems(), ...unreaped, ...disk],
5570
5583
  capabilities: capabilitiesNow(),
5571
5584
  labels: runner.labels,
5572
5585
  ...appliedSettingsReport()
@@ -5648,7 +5661,7 @@ function mcpCommand(args) {
5648
5661
  if (command.action === "run") {
5649
5662
  if (command.args.length > 0)
5650
5663
  return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
5651
- const { runMcpServerCommand } = yield* promise(() => import("./chunk-4tzzmrz2.js"));
5664
+ const { runMcpServerCommand } = yield* promise(() => import("./chunk-jrwpte6y.js"));
5652
5665
  return yield* runMcpServerCommand({ flags: command.flags });
5653
5666
  }
5654
5667
  if (command.action !== "setup")
@@ -6148,7 +6161,7 @@ function programLoopCommand(command) {
6148
6161
  return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
6149
6162
  });
6150
6163
  }
6151
- var docsModule = promise(() => import("./chunk-ah59jrtr.js"));
6164
+ var docsModule = promise(() => import("./chunk-a9ncx2a8.js"));
6152
6165
  function docsCommand(args) {
6153
6166
  return gen(function* () {
6154
6167
  const command = parseCommand(args);
@@ -7152,7 +7165,7 @@ function changeRequestCommand(args) {
7152
7165
  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}`);
7153
7166
  });
7154
7167
  }
7155
- var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-5hp8ams4.js")), (build) => build.readOutlines(directory)).pipe(mapError2((error) => new CliError({ message: error.message })));
7168
+ var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-9tyv6211.js")), (build) => build.readOutlines(directory)).pipe(mapError2((error) => new CliError({ message: error.message })));
7156
7169
  var loopOutline = (command) => gen(function* () {
7157
7170
  const path = yield* Path;
7158
7171
  const loop = requiredArg(command, "a Loop id");
@@ -7172,9 +7185,9 @@ var loopOutline = (command) => gen(function* () {
7172
7185
  `).pipe(mapError2((error) => new CliError({ message: error.message })));
7173
7186
  yield* log(`Wrote the outline of ${loop} to ${out}`);
7174
7187
  });
7175
- var KitWriter = map9(promise(() => import("./chunk-5hp8ams4.js")), (build) => build.writeKit);
7188
+ var KitWriter = map9(promise(() => import("./chunk-9tyv6211.js")), (build) => build.writeKit);
7176
7189
  var KitBuilder = Reference("kitman/cli/KitBuilder", {
7177
- defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-5hp8ams4.js")), (build) => build.buildKit(directory))
7190
+ defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-9tyv6211.js")), (build) => build.buildKit(directory))
7178
7191
  });
7179
7192
  var uploadKit = (client, workspaceId, built) => gen(function* () {
7180
7193
  yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
@@ -7953,7 +7966,7 @@ function downloadPresignedAsset(download, outputPath) {
7953
7966
  return gen(function* () {
7954
7967
  const fs = yield* FileSystem;
7955
7968
  const failed = (cause) => new CliError({ message: `Asset download failed: ${String(cause)}` });
7956
- const response = yield* send(make4(download.method)(download.url), failed);
7969
+ const response = yield* send(make5(download.method)(download.url), failed);
7957
7970
  if (response.status < 200 || response.status >= 300)
7958
7971
  return yield* new CliError({ message: `Asset download failed with ${response.status}` });
7959
7972
  const body = yield* response.arrayBuffer.pipe(mapError2((error) => failed(error.message)));
@@ -18,7 +18,7 @@ import {
18
18
  isMinLength,
19
19
  isMaxLength,
20
20
  FiniteFromString
21
- } from "./chunk-61dmxexa.js";
21
+ } from "./chunk-h2f26xbd.js";
22
22
 
23
23
  // packages/core/src/schema.ts
24
24
  var Days = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
@@ -3,7 +3,7 @@ import {
3
3
  Random,
4
4
  succeed6,
5
5
  withFiber2
6
- } from "./chunk-61dmxexa.js";
6
+ } from "./chunk-h2f26xbd.js";
7
7
 
8
8
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Random.js
9
9
  var Random2 = Random;
@@ -205,7 +205,7 @@ import {
205
205
  String4,
206
206
  toCodecStringTree,
207
207
  encodeUnknownJsonStringSync
208
- } from "./chunk-61dmxexa.js";
208
+ } from "./chunk-h2f26xbd.js";
209
209
 
210
210
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
211
211
  var headUnsafe = (self) => {
@@ -1137,7 +1137,7 @@ var MutableRefProto = {
1137
1137
  };
1138
1138
  }
1139
1139
  };
1140
- var make7 = (value) => {
1140
+ var make8 = (value) => {
1141
1141
  const ref = Object.create(MutableRefProto);
1142
1142
  ref.current = value;
1143
1143
  return ref;
@@ -1298,7 +1298,7 @@ var remove = (self, value) => filter2(self, (v) => v !== value);
1298
1298
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/PubSub.js
1299
1299
  var TypeId3 = "~effect/PubSub";
1300
1300
  var SubscriptionTypeId = "~effect/PubSub/Subscription";
1301
- var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false), make7(false), options.strategy(), make7(none())));
1301
+ var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false), make8(false), options.strategy(), make8(none())));
1302
1302
  var unbounded = (options) => make5({
1303
1303
  atomicPubSub: () => makeAtomicUnbounded(options),
1304
1304
  strategy: () => new DroppingStrategy
@@ -1393,7 +1393,7 @@ var removeSubscribers = (subscribers, subscription, pollers) => {
1393
1393
  subscribers.delete(subscription);
1394
1394
  }
1395
1395
  };
1396
- var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false), make7(false), strategy, pubsub.replayWindow(), ended);
1396
+ var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false), make8(false), strategy, pubsub.replayWindow(), ended);
1397
1397
  class UnboundedPubSub {
1398
1398
  publisherHead = {
1399
1399
  value: AbsentValue,
@@ -1810,7 +1810,7 @@ var QueueProto = {
1810
1810
  };
1811
1811
  }
1812
1812
  };
1813
- var make8 = (options) => withFiber((fiber) => {
1813
+ var make9 = (options) => withFiber((fiber) => {
1814
1814
  const self = Object.create(QueueProto);
1815
1815
  self.dispatcher = fiber.currentDispatcher;
1816
1816
  self.capacity = options?.capacity ?? Number.POSITIVE_INFINITY;
@@ -1825,14 +1825,14 @@ var make8 = (options) => withFiber((fiber) => {
1825
1825
  };
1826
1826
  return succeed2(self);
1827
1827
  });
1828
- var bounded = (capacity) => make8({
1828
+ var bounded = (capacity) => make9({
1829
1829
  capacity
1830
1830
  });
1831
- var sliding = (capacity) => make8({
1831
+ var sliding = (capacity) => make9({
1832
1832
  capacity,
1833
1833
  strategy: "sliding"
1834
1834
  });
1835
- var unbounded2 = () => make8();
1835
+ var unbounded2 = () => make9();
1836
1836
  var offer = /* @__PURE__ */ dual(2, (self, message) => suspend2(() => offerUnsafe(self, message) ? exitTrue : self.state._tag === "Open" && self.strategy === "suspend" ? offerOrWait(self, message) : exitFalse));
1837
1837
  var offerUnsafe = (self, message) => {
1838
1838
  if (self.state._tag !== "Open") {
@@ -2258,7 +2258,7 @@ var fromTransformBracket = (f) => fromTransform(fnUntraced(function* (upstream,
2258
2258
  return onError(pull, onCause);
2259
2259
  }));
2260
2260
  var toTransform = (channel) => channel.transform;
2261
- var asyncQueue = (scope, f, options) => make8({
2261
+ var asyncQueue = (scope, f, options) => make9({
2262
2262
  capacity: options?.bufferSize,
2263
2263
  strategy: options?.strategy
2264
2264
  }).pipe(tap2((queue) => addFinalizer(scope, shutdown(queue))), tap2((queue) => provide(f(queue), scope).pipe(catchCause2((cause) => failCause(queue, cause)), forkIn(scope, {
@@ -2299,7 +2299,7 @@ var fromReadableStream2 = (options) => fromTransform((_, scope) => readableStrea
2299
2299
  }));
2300
2300
  var readableStreamToPullUnsafe = (options) => {
2301
2301
  const reader = options.readable.getReader();
2302
- const exit = options.exit ?? make7(undefined);
2302
+ const exit = options.exit ?? make8(undefined);
2303
2303
  const pull = suspend3(() => {
2304
2304
  if (exit.current)
2305
2305
  return exit.current;
@@ -2960,7 +2960,7 @@ var release = (self, state) => {
2960
2960
  };
2961
2961
 
2962
2962
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
2963
- var make9 = make6;
2963
+ var make10 = make6;
2964
2964
  var get3 = get2;
2965
2965
 
2966
2966
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
@@ -2972,7 +2972,7 @@ var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatM
2972
2972
  var toChannel2 = (stream) => stream.channel;
2973
2973
  var callback = (f, options) => fromChannel2(callbackArray(f, options));
2974
2974
  var empty2 = /* @__PURE__ */ fromChannel2(empty);
2975
- var make10 = (...values) => fromArray2(values);
2975
+ var make11 = (...values) => fromArray2(values);
2976
2976
  var suspend = (stream) => {
2977
2977
  const suspended = fromChannel2(suspend4(() => stream().channel));
2978
2978
  suspendedStreams.set(suspended, stream);
@@ -3173,7 +3173,7 @@ var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (
3173
3173
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
3174
3174
  var TypeId10 = "~effect/FileSystem";
3175
3175
  var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
3176
- var make11 = (impl) => FileSystem.of({
3176
+ var make12 = (impl) => FileSystem.of({
3177
3177
  ...impl,
3178
3178
  [TypeId10]: TypeId10,
3179
3179
  glob: make2(impl),
@@ -3233,7 +3233,7 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
3233
3233
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
3234
3234
  var TypeId11 = "~effect/Path";
3235
3235
  var Path = /* @__PURE__ */ Service2("effect/Path");
3236
- var make12 = (impl) => Path.of({
3236
+ var make13 = (impl) => Path.of({
3237
3237
  ...impl,
3238
3238
  [TypeId11]: TypeId11,
3239
3239
  resolveWithin(root, input) {
@@ -3308,7 +3308,7 @@ function makeProvider(load, mapInput) {
3308
3308
  function makeSource(get, transform) {
3309
3309
  return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
3310
3310
  }
3311
- function make13(get) {
3311
+ function make7(get) {
3312
3312
  return makeSource(get, identityPath);
3313
3313
  }
3314
3314
  function emptyStringAsMissing(value, preserveEmptyStrings) {
@@ -3317,7 +3317,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
3317
3317
  function fromEnvRecord(env, options) {
3318
3318
  const preserveEmptyStrings = options?.preserveEmptyStrings === true;
3319
3319
  const trie = buildEnvTrie(env);
3320
- return make13((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
3320
+ return make7((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
3321
3321
  }
3322
3322
  function fromEnv(options) {
3323
3323
  const env = options?.env ?? {
@@ -3649,4 +3649,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
3649
3649
  ...argv
3650
3650
  ];
3651
3651
 
3652
- export { map, makeEquivalence, Clock, currentTimeMillis, 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, mapAccum, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, toPull, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make11, FileTypeId, WatchBackend, Path, make12, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, operatorConfigHome, tempDirectoryScoped, harnessesUnsupportedInSrt2, harnessesUnsupportedInDocker2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
3652
+ export { map, makeEquivalence, Clock, currentTimeMillis, 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, mapAccum, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, toPull, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make12, FileTypeId, WatchBackend, Path, make13, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, operatorConfigHome, tempDirectoryScoped, harnessesUnsupportedInSrt2, harnessesUnsupportedInDocker2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
@@ -1,6 +1,13 @@
1
1
  // @bun
2
2
  import {
3
+ isString,
4
+ hasProperty,
5
+ symbol,
6
+ hash,
7
+ symbol2,
8
+ equals,
3
9
  BaseProto,
10
+ PipeInspectableProto,
4
11
  Prototype,
5
12
  some,
6
13
  Service2,
@@ -14,11 +21,8 @@ import {
14
21
  andThen2,
15
22
  map9,
16
23
  raceFirst,
17
- scoped,
18
- isRedacted,
19
- make16,
20
- value
21
- } from "./chunk-61dmxexa.js";
24
+ scoped
25
+ } from "./chunk-h2f26xbd.js";
22
26
  import {
23
27
  unwrap,
24
28
  drainFork,
@@ -27,7 +31,49 @@ import {
27
31
  runCollect,
28
32
  runDrain,
29
33
  mkString
30
- } from "./chunk-z0gqrc8c.js";
34
+ } from "./chunk-8fyfsajs.js";
35
+
36
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/redacted.js
37
+ var redactedRegistry = /* @__PURE__ */ new WeakMap;
38
+ var value2 = (self) => {
39
+ if (redactedRegistry.has(self)) {
40
+ return redactedRegistry.get(self);
41
+ } else {
42
+ throw new Error("Unable to get redacted value" + (self.label ? ` with label: "${self.label}"` : ""));
43
+ }
44
+ };
45
+
46
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Redacted.js
47
+ var TypeId = "~effect/Redacted";
48
+ var isRedacted = (u) => hasProperty(u, TypeId);
49
+ var make = (value, options) => {
50
+ const self = Object.create(Proto);
51
+ if (options?.label) {
52
+ self.label = options.label;
53
+ }
54
+ redactedRegistry.set(self, value);
55
+ return self;
56
+ };
57
+ var Proto = {
58
+ [TypeId]: {
59
+ _A: (_) => _
60
+ },
61
+ label: undefined,
62
+ ...PipeInspectableProto,
63
+ toJSON() {
64
+ return this.toString();
65
+ },
66
+ toString() {
67
+ return `<redacted${isString(this.label) ? ":" + this.label : ""}>`;
68
+ },
69
+ [symbol]() {
70
+ return hash(redactedRegistry.get(this));
71
+ },
72
+ [symbol2](that) {
73
+ return isRedacted(that) && equals(redactedRegistry.get(this), redactedRegistry.get(that));
74
+ }
75
+ };
76
+ var value = value2;
31
77
 
32
78
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Brand.js
33
79
  function nominal() {
@@ -55,7 +101,7 @@ var HandleProto = {
55
101
  var makeHandle = (params) => Object.setPrototypeOf({
56
102
  ...params
57
103
  }, HandleProto);
58
- var make = (spawn) => {
104
+ var make2 = (spawn) => {
59
105
  const streamString = (command, options) => spawn(command).pipe(map9((handle) => decodeText(options?.includeStderr === true ? handle.all : drainFork(handle.stdout, handle.stderr))), unwrap);
60
106
  const streamLines = (command, options) => splitLines(streamString(command, options));
61
107
  return ChildProcessSpawner.of({
@@ -176,7 +222,7 @@ var parseTemplate = (texts, values) => {
176
222
  if (word.length === 0)
177
223
  return;
178
224
  const value = word.map(unwrap2).join("");
179
- words.push(word.length === 1 && isRedacted(word[0]) ? word[0] : word.some(isRedacted) ? make16(value) : value);
225
+ words.push(word.length === 1 && isRedacted(word[0]) ? word[0] : word.some(isRedacted) ? make(value) : value);
180
226
  word = [];
181
227
  plain = true;
182
228
  braceDepth = 0;
@@ -266,23 +312,23 @@ var parseTemplate = (texts, values) => {
266
312
  };
267
313
 
268
314
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/process/ChildProcess.js
269
- var TypeId = "~effect/process/ChildProcess";
270
- var Proto = {
315
+ var TypeId2 = "~effect/process/ChildProcess";
316
+ var Proto2 = {
271
317
  .../* @__PURE__ */ Prototype({
272
318
  label: "Command",
273
319
  evaluate(fiber) {
274
320
  return getUnsafe(fiber.context, ChildProcessSpawner).spawn(this);
275
321
  }
276
322
  }),
277
- [TypeId]: TypeId
323
+ [TypeId2]: TypeId2
278
324
  };
279
- var makeStandardCommand = (command, args, options) => Object.assign(Object.create(Proto), {
325
+ var makeStandardCommand = (command, args, options) => Object.assign(Object.create(Proto2), {
280
326
  _tag: "StandardCommand",
281
327
  command,
282
328
  args,
283
329
  options
284
330
  });
285
- var make2 = function make(...args) {
331
+ var make3 = function make(...args) {
286
332
  if (isTemplateString(args[0])) {
287
333
  const [templates, ...expressions] = args;
288
334
  const [command, cmdArgs] = parseTemplate2(templates, expressions);
@@ -340,4 +386,4 @@ var shellScript = (templates, expressions) => {
340
386
  }
341
387
  return script;
342
388
  };
343
- export { ExitCode, ProcessId, makeHandle, make, ChildProcessSpawner, display, make2, parseFdName, fdName };
389
+ export { isRedacted, make, value, ExitCode, ProcessId, makeHandle, make2, ChildProcessSpawner, display, make3, parseFdName, fdName };
@@ -35,7 +35,7 @@ import {
35
35
  toCodecJson,
36
36
  Json,
37
37
  encodePrettyJsonString
38
- } from "./chunk-61dmxexa.js";
38
+ } from "./chunk-h2f26xbd.js";
39
39
  import {
40
40
  decodeText,
41
41
  mkString,
@@ -43,7 +43,7 @@ import {
43
43
  Path,
44
44
  withDefault,
45
45
  String2
46
- } from "./chunk-z0gqrc8c.js";
46
+ } from "./chunk-8fyfsajs.js";
47
47
  import {
48
48
  SecureRandom,
49
49
  layerWebCrypto,
@@ -60,26 +60,26 @@ import {
60
60
  KitDeclarations,
61
61
  kitmanMcpServer,
62
62
  RunnerRpcProtocolVersion
63
- } from "./chunk-nb6h112w.js";
63
+ } from "./chunk-nwbry6c8.js";
64
64
  import {
65
65
  Packument,
66
66
  tarballMatches
67
- } from "./chunk-abyssa8p.js";
67
+ } from "./chunk-xkkyx7bn.js";
68
68
  import {
69
69
  stepDefinedTwice,
70
70
  hostSteps,
71
71
  exports_activities,
72
72
  describeFlag,
73
73
  Described
74
- } from "./chunk-acmyagwp.js";
75
- import"./chunk-3cneth9k.js";
76
- import"./chunk-1hgsf81a.js";
74
+ } from "./chunk-sgkgwzvb.js";
75
+ import"./chunk-mhx0tgm3.js";
76
+ import"./chunk-tsx0347c.js";
77
77
  import {
78
78
  ChildProcessSpawner,
79
- make2
80
- } from "./chunk-er0e8d8v.js";
81
- import"./chunk-r3mjxsmn.js";
82
- import"./chunk-rbpn35g5.js";
79
+ make3
80
+ } from "./chunk-9nbqzdqp.js";
81
+ import"./chunk-np5n54ky.js";
82
+ import"./chunk-4qjfn1sa.js";
83
83
 
84
84
  // packages/sdk/src/build/outline/graph.ts
85
85
  import {
@@ -3891,7 +3891,7 @@ var ConfigAgents = Record(String4, Struct({
3891
3891
  }));
3892
3892
  var run = (command, args, cwd) => gen(function* () {
3893
3893
  const spawner = yield* ChildProcessSpawner;
3894
- const handle = yield* spawner.spawn(make2(command, args, { cwd, stdin: "ignore" }));
3894
+ const handle = yield* spawner.spawn(make3(command, args, { cwd, stdin: "ignore" }));
3895
3895
  const [stdout, stderr, exitCode] = yield* all3([
3896
3896
  mkString(decodeText(handle.stdout)),
3897
3897
  mkString(decodeText(handle.stderr)),
@@ -4,7 +4,7 @@ import {
4
4
  searchDocs2,
5
5
  readDoc2,
6
6
  pinnedLink2
7
- } from "./chunk-6e6t0f8y.js";
7
+ } from "./chunk-bnhb3cth.js";
8
8
  export {
9
9
  DefaultDocsSearchLimit2 as DefaultDocsSearchLimit,
10
10
  pinnedLink2 as pinnedLink,
@@ -13,17 +13,17 @@ import {
13
13
  isJsonObject,
14
14
  decodeJsonString,
15
15
  encodePrettyJsonString
16
- } from "./chunk-61dmxexa.js";
16
+ } from "./chunk-h2f26xbd.js";
17
17
  import {
18
18
  FileSystem,
19
19
  Path
20
- } from "./chunk-z0gqrc8c.js";
20
+ } from "./chunk-8fyfsajs.js";
21
21
  import {
22
22
  tomlTableHeader2,
23
23
  tomlKeyPath2,
24
24
  kitmanSkillEntry,
25
25
  isPathWithin2
26
- } from "./chunk-awx0zevr.js";
26
+ } from "./chunk-hgxhpj6m.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-nb6h112w.js";
35
- import"./chunk-abyssa8p.js";
36
- import"./chunk-er0e8d8v.js";
37
- import"./chunk-rbpn35g5.js";
34
+ } from "./chunk-nwbry6c8.js";
35
+ import"./chunk-xkkyx7bn.js";
36
+ import"./chunk-9nbqzdqp.js";
37
+ import"./chunk-4qjfn1sa.js";
38
38
 
39
39
  // packages/agent-runtime/src/kit-setup-sync.ts
40
40
  class KitSyncError extends TaggedError("KitSyncError") {