@kitman-sh/cli 0.29.0 → 0.31.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-fyjet273.js → chunk-2sazk478.js} +4 -4
  2. package/dist/{chunk-f9fhdprs.js → chunk-38drrdzp.js} +4 -4
  3. package/dist/{chunk-8andwyqa.js → chunk-5qrjf4xq.js} +3 -3
  4. package/dist/{chunk-4qrb09w4.js → chunk-9a6wbk11.js} +3 -3
  5. package/dist/{chunk-pyjx5q5s.js → chunk-9vqkjkya.js} +1 -1
  6. package/dist/{chunk-801jtbdq.js → chunk-9yvknsnj.js} +3 -3
  7. package/dist/{chunk-wqdxszpm.js → chunk-emw9ragp.js} +20 -20
  8. package/dist/{chunk-89eskdmq.js → chunk-fjdp3rd6.js} +19 -19
  9. package/dist/{chunk-e491q405.js → chunk-kx8rpa62.js} +7 -7
  10. package/dist/{chunk-znhjs0t6.js → chunk-m1qp6swh.js} +1 -1
  11. package/dist/{chunk-18x6rmkq.js → chunk-njgay1ed.js} +9 -9
  12. package/dist/{chunk-cm2sr223.js → chunk-nk0ew12p.js} +145 -102
  13. package/dist/{chunk-q1medqp5.js → chunk-nndgeync.js} +6 -6
  14. package/dist/{chunk-1hgsf81a.js → chunk-pd3azxev.js} +1 -1
  15. package/dist/{chunk-1yyq4nh2.js → chunk-qb11yda6.js} +8 -8
  16. package/dist/{chunk-4tdk1w0k.js → chunk-qbrkeg49.js} +4 -4
  17. package/dist/{chunk-eshk0da5.js → chunk-qjxgew0k.js} +2 -2
  18. package/dist/{chunk-rbpn35g5.js → chunk-r2kzvdrg.js} +1 -1
  19. package/dist/{chunk-9zxzmsmm.js → chunk-s4r49vbj.js} +9 -9
  20. package/dist/{chunk-j021bman.js → chunk-vh2a72d1.js} +2 -2
  21. package/dist/{chunk-cbkj3km5.js → chunk-vwynec02.js} +1 -1
  22. package/dist/{chunk-y6petreh.js → chunk-xxcxramy.js} +6 -7
  23. package/dist/{chunk-61dmxexa.js → chunk-y64ssczv.js} +157 -13
  24. package/dist/{chunk-vshy6fm5.js → chunk-yjc2w86k.js} +10 -10
  25. package/dist/{chunk-sm340tvm.js → chunk-z59pvcbk.js} +21 -164
  26. package/dist/{chunk-q8e58p57.js → chunk-zy21drtv.js} +2 -2
  27. package/dist/index.js +4 -4
  28. package/package.json +1 -1
@@ -172,53 +172,7 @@ import {
172
172
  decodeJsonStringSync,
173
173
  encodeUnknownJsonStringSync,
174
174
  storable
175
- } from "./chunk-61dmxexa.js";
176
- import {
177
- join,
178
- interrupt,
179
- unbounded,
180
- publishUnsafe,
181
- unbounded2,
182
- offer,
183
- makeUnsafe3,
184
- make10,
185
- fromQueue,
186
- fromPubSub,
187
- map2,
188
- filter,
189
- take2,
190
- mapAccum,
191
- decodeText,
192
- encodeText,
193
- splitLines,
194
- run,
195
- runCollect,
196
- runFold,
197
- runHead,
198
- runForEach,
199
- FileSystem,
200
- Path,
201
- embeddedFile,
202
- extractEmbeddedFile,
203
- optionalEnv,
204
- operatorConfigHome,
205
- tempDirectoryScoped,
206
- harnessesUnsupportedInSrt2,
207
- harnessesUnsupportedInDocker2,
208
- compiled2,
209
- pinnedSrtCommand2,
210
- pinnedSrtStepCommand2,
211
- runSrtCli2,
212
- kitmanCacheDirectory2,
213
- srtSettings2,
214
- srtCacheEnvironment2,
215
- srtInheritedEnv2,
216
- inheritedEnvironment2,
217
- withOnlyEnvironment2,
218
- writeSrtSettings2,
219
- srtStepArgv2,
220
- srtArgv2
221
- } from "./chunk-sm340tvm.js";
175
+ } from "./chunk-y64ssczv.js";
222
176
  import {
223
177
  currentTimeMillis,
224
178
  SecureRandom,
@@ -307,7 +261,53 @@ import {
307
261
  checkServicesFile,
308
262
  checkServices,
309
263
  serviceChecks
310
- } from "./chunk-y6petreh.js";
264
+ } from "./chunk-xxcxramy.js";
265
+ import {
266
+ join,
267
+ interrupt,
268
+ unbounded,
269
+ publishUnsafe,
270
+ unbounded2,
271
+ offer,
272
+ makeUnsafe3,
273
+ make10,
274
+ fromQueue,
275
+ fromPubSub,
276
+ map2,
277
+ filter,
278
+ take2,
279
+ mapAccum,
280
+ decodeText,
281
+ encodeText,
282
+ splitLines,
283
+ run,
284
+ runCollect,
285
+ runFold,
286
+ runHead,
287
+ runForEach,
288
+ FileSystem,
289
+ Path,
290
+ embeddedFile,
291
+ extractEmbeddedFile,
292
+ optionalEnv,
293
+ operatorConfigHome,
294
+ tempDirectoryScoped,
295
+ harnessesUnsupportedInSrt2,
296
+ harnessesUnsupportedInDocker2,
297
+ compiled2,
298
+ pinnedSrtCommand2,
299
+ pinnedSrtStepCommand2,
300
+ runSrtCli2,
301
+ kitmanCacheDirectory2,
302
+ srtSettings2,
303
+ srtCacheEnvironment2,
304
+ srtInheritedEnv2,
305
+ inheritedEnvironment2,
306
+ withOnlyEnvironment2,
307
+ writeSrtSettings2,
308
+ srtStepArgv2,
309
+ srtArgv2
310
+ } from "./chunk-z59pvcbk.js";
311
311
  import {
312
312
  writeAgentEnvironmentConfigFile2,
313
313
  readManifestSkillPaths2,
@@ -323,8 +323,12 @@ import {
323
323
  applyAgentEnvironmentMaterialization2,
324
324
  isPathWithin2,
325
325
  skillIdentity2
326
- } from "./chunk-9zxzmsmm.js";
327
- import"./chunk-801jtbdq.js";
326
+ } from "./chunk-s4r49vbj.js";
327
+ import"./chunk-9yvknsnj.js";
328
+ import {
329
+ ChildProcessSpawner,
330
+ make2
331
+ } from "./chunk-vh2a72d1.js";
328
332
  import {
329
333
  egressAllowed,
330
334
  writeSecretRegistry,
@@ -334,7 +338,7 @@ import {
334
338
  secretFilter2,
335
339
  opaqueTunnelRefusal2,
336
340
  isOpaqueConnectReason2
337
- } from "./chunk-q8e58p57.js";
341
+ } from "./chunk-zy21drtv.js";
338
342
  import {
339
343
  sliceBytes2,
340
344
  maxLineBytes2,
@@ -342,29 +346,25 @@ import {
342
346
  decodedOption2,
343
347
  decoded2,
344
348
  readOpencode2
345
- } from "./chunk-e491q405.js";
349
+ } from "./chunk-kx8rpa62.js";
346
350
  import {
347
351
  uploadRunFile,
348
352
  programLease,
349
353
  rpcRunFiles,
350
354
  programHostsEnv,
351
355
  undeclaredHostsEnv
352
- } from "./chunk-18x6rmkq.js";
353
- import"./chunk-4tdk1w0k.js";
356
+ } from "./chunk-njgay1ed.js";
357
+ import"./chunk-qbrkeg49.js";
354
358
  import {
355
359
  nextInt
356
- } from "./chunk-znhjs0t6.js";
357
- import"./chunk-1hgsf81a.js";
358
- import {
359
- ChildProcessSpawner,
360
- make2
361
- } from "./chunk-j021bman.js";
362
- import"./chunk-8andwyqa.js";
360
+ } from "./chunk-m1qp6swh.js";
361
+ import"./chunk-pd3azxev.js";
362
+ import"./chunk-5qrjf4xq.js";
363
363
  import {
364
364
  Id,
365
365
  secretReference,
366
366
  secretPlaceholder
367
- } from "./chunk-rbpn35g5.js";
367
+ } from "./chunk-r2kzvdrg.js";
368
368
 
369
369
  // packages/core/src/sync-kit.ts
370
370
  import { createHash } from "crypto";
@@ -3648,7 +3648,7 @@ var removeRunnerContainers = (containers, runnerId) => containers.removeLabelled
3648
3648
 
3649
3649
  // packages/agent-runtime/src/harness-sessions.ts
3650
3650
  import { constants } from "fs";
3651
- import { open, readdir } from "fs/promises";
3651
+ import { lstat, open, readdir, stat } from "fs/promises";
3652
3652
  import { promisify } from "util";
3653
3653
  import { gunzip, gzip } from "zlib";
3654
3654
  var gzipped = promisify(gzip);
@@ -3700,7 +3700,7 @@ var sessionFiles = (root, depth, confinedTo) => gen(function* () {
3700
3700
  return yield* filesBelow(root, depth, walkLimit(confinedTo));
3701
3701
  }).pipe(orElseSucceed(() => []));
3702
3702
  var maxFirstLineBytes = 1024 * 1024;
3703
- var rolloutDirectory = (file) => gen(function* () {
3703
+ var readRolloutDirectory = (file) => gen(function* () {
3704
3704
  const start = new TextDecoder().decode(yield* readSessionRange(file, 0, maxFirstLineBytes));
3705
3705
  const line = getOrUndefined(decodeJsonStringOption(start.split(`
3706
3706
  `, 1)[0] ?? ""));
@@ -3709,11 +3709,27 @@ var rolloutDirectory = (file) => gen(function* () {
3709
3709
  }).pipe(orElseSucceed(() => {
3710
3710
  return;
3711
3711
  }));
3712
+ var rolloutDirectory = (file, known) => gen(function* () {
3713
+ if (known === undefined)
3714
+ return yield* readRolloutDirectory(file);
3715
+ const stamp = yield* sessionStamp(file).pipe(orElseSucceed(() => {
3716
+ return;
3717
+ }));
3718
+ if (stamp === undefined)
3719
+ return yield* readRolloutDirectory(file);
3720
+ const key = `${stamp.dev}:${stamp.ino}`;
3721
+ const cached = known.get(key);
3722
+ if (cached !== undefined && sameSessionStamp(cached.stamp, stamp))
3723
+ return cached.directory;
3724
+ const directory = yield* readRolloutDirectory(file);
3725
+ known.set(key, { stamp, directory });
3726
+ return directory;
3727
+ });
3712
3728
  var confinement = (location, place) => {
3713
3729
  const confinedTo = location.inConfigDir === true ? place.home : place.confinedTo;
3714
3730
  return confinedTo === undefined ? undefined : { confinedTo };
3715
3731
  };
3716
- var findSession = (adapter, place) => gen(function* () {
3732
+ var findSession = (adapter, place, rolloutDirectories) => gen(function* () {
3717
3733
  const location = adapter.session?.location;
3718
3734
  if (location === undefined)
3719
3735
  return;
@@ -3758,7 +3774,7 @@ var findSession = (adapter, place) => gen(function* () {
3758
3774
  if (id === undefined)
3759
3775
  continue;
3760
3776
  const file = { id, name, path, ...confined };
3761
- if (place.id === undefined ? (yield* rolloutDirectory(file)) === place.worktree : id === place.id)
3777
+ if (place.id === undefined ? (yield* rolloutDirectory(file, rolloutDirectories)) === place.worktree : id === place.id)
3762
3778
  return file;
3763
3779
  }
3764
3780
  return;
@@ -3786,7 +3802,7 @@ var openSession = (file) => gen(function* () {
3786
3802
  if (!opened.isFile() || opened.nlink !== 1n || named.dev !== opened.dev || getOrUndefined(named.ino) !== opened.ino || !isPathWithin2(yield* Path, yield* fs.realPath(root), real))
3787
3803
  return yield* new SessionFileRefused({ path: file.path, root });
3788
3804
  }
3789
- return { handle, size: Number(opened.size) };
3805
+ return { handle, size: Number(opened.size), stamp: stampOf(opened) };
3790
3806
  });
3791
3807
  var readAt = (handle, position, length) => map9(tryPromise(() => handle.read(new Uint8Array(length), 0, length, position)), ({ buffer, bytesRead }) => buffer.subarray(0, bytesRead));
3792
3808
  var readSessionRange = (file, position, length) => gen(function* () {
@@ -3810,8 +3826,15 @@ var sessionExtent = (file) => gen(function* () {
3810
3826
  const subagents = yield* subagentFiles(file);
3811
3827
  return subagents.reduce((total, { size }) => total + size, own);
3812
3828
  });
3813
- var packConfined = (file, root) => gen(function* () {
3814
- const { handle, size } = yield* openSession(file);
3829
+ var stampOf = (info) => ({
3830
+ dev: info.dev,
3831
+ ino: info.ino,
3832
+ size: info.size,
3833
+ mtimeNs: info.mtimeNs
3834
+ });
3835
+ var sessionStamp = (file) => map9(tryPromise(() => file.confinedTo === undefined ? stat(file.path, { bigint: true }) : lstat(file.path, { bigint: true })), stampOf);
3836
+ var sameSessionStamp = (left, right) => left !== undefined && right !== undefined && left.dev === right.dev && left.ino === right.ino && left.size === right.size && left.mtimeNs === right.mtimeNs;
3837
+ var packConfined = (handle, size, file, root) => gen(function* () {
3815
3838
  if (size > maxConfinedBytes)
3816
3839
  return yield* new SessionFileRefused({ path: file.path, root });
3817
3840
  const members = [];
@@ -3833,8 +3856,12 @@ var packConfined = (file, root) => gen(function* () {
3833
3856
  offset += member.length;
3834
3857
  }
3835
3858
  return packed;
3859
+ });
3860
+ var packStampedSession = (file) => gen(function* () {
3861
+ const { handle, size, stamp } = yield* openSession(file);
3862
+ const content = file.confinedTo === undefined ? new Uint8Array(yield* tryPromise(() => handle.readFile().then(gzipped))) : yield* packConfined(handle, size, file, file.confinedTo);
3863
+ return { content, stamp };
3836
3864
  }).pipe(scoped);
3837
- var packSession = (file) => file.confinedTo === undefined ? flatMap3(FileSystem, (fs) => fs.readFile(file.path)).pipe(flatMap3((content) => tryPromise(() => gzipped(content))), map9((content) => new Uint8Array(content))) : packConfined(file, file.confinedTo);
3838
3865
  var restoreSession = (adapter, place) => gen(function* () {
3839
3866
  const fs = yield* FileSystem;
3840
3867
  const location = adapter.session?.location;
@@ -6864,31 +6891,37 @@ var keepSession = (rpc, lease, content) => gen(function* () {
6864
6891
  return yield* new SessionNotKept({ status: kept.status });
6865
6892
  return kept;
6866
6893
  }).pipe(scoped, timeout(checkpointTransfer.timeout));
6867
- var rpcStepCheckpoints = (rpc, signals, storage) => ({
6868
- resume: (work) => gen(function* () {
6869
- const point = yield* rpc.resumeCheckpoint({ lease: programLease(work) });
6870
- if (point === undefined)
6871
- return;
6872
- const { session, ...workspace } = point;
6873
- if (session === undefined)
6874
- return workspace;
6875
- const { url, headers, ...file } = session;
6876
- const content = yield* storage.execute(get(url).pipe(setHeaders(headers ?? {}))).pipe(flatMap3(filterStatusOk), flatMap3((response) => response.arrayBuffer), tapError2((error) => logWarning("runner_session_unreadable", error.message)), option2);
6877
- return isNone(content) ? workspace : { ...workspace, session: { ...file, content: new Uint8Array(content.value) } };
6878
- }),
6879
- save: (work, { session, ...workspace }) => gen(function* () {
6880
- const lease = programLease(work);
6881
- const kept = session === undefined ? undefined : yield* keepSession(rpc, lease, session.content).pipe(provideService(HttpClient, storage));
6882
- yield* rpc.saveCheckpoint({
6883
- lease,
6884
- checkpoint: {
6885
- ...workspace,
6886
- ...session === undefined || kept === undefined ? undefined : { session: { harness: session.harness, id: session.id, name: session.name, fileId: kept.id } }
6887
- }
6888
- });
6889
- }),
6890
- sessionUpdated: (work) => signals.sessionUpdated(work.id)
6891
- });
6894
+ var rpcStepCheckpoints = (rpc, signals, storage) => {
6895
+ const keptSessions = new WeakMap;
6896
+ return {
6897
+ resume: (work) => gen(function* () {
6898
+ const point = yield* rpc.resumeCheckpoint({ lease: programLease(work) });
6899
+ if (point === undefined)
6900
+ return;
6901
+ const { session, ...workspace } = point;
6902
+ if (session === undefined)
6903
+ return workspace;
6904
+ const { url, headers, ...file } = session;
6905
+ const content = yield* storage.execute(get(url).pipe(setHeaders(headers ?? {}))).pipe(flatMap3(filterStatusOk), flatMap3((response) => response.arrayBuffer), tapError2((error) => logWarning("runner_session_unreadable", error.message)), option2);
6906
+ return isNone(content) ? workspace : { ...workspace, session: { ...file, content: new Uint8Array(content.value) } };
6907
+ }),
6908
+ save: (work, { session, ...workspace }) => gen(function* () {
6909
+ const lease = programLease(work);
6910
+ const known = session === undefined ? undefined : keptSessions.get(session.content);
6911
+ const fileId = session === undefined ? undefined : known?.attemptId === work.id ? known.fileId : (yield* keepSession(rpc, lease, session.content).pipe(provideService(HttpClient, storage))).id;
6912
+ yield* rpc.saveCheckpoint({
6913
+ lease,
6914
+ checkpoint: {
6915
+ ...workspace,
6916
+ ...session === undefined || fileId === undefined ? undefined : { session: { harness: session.harness, id: session.id, name: session.name, fileId } }
6917
+ }
6918
+ }).pipe(tapError2(() => sync2(() => session !== undefined && keptSessions.delete(session.content))));
6919
+ if (session !== undefined && fileId !== undefined)
6920
+ keptSessions.set(session.content, { attemptId: work.id, fileId });
6921
+ }),
6922
+ sessionUpdated: (work) => signals.sessionUpdated(work.id)
6923
+ };
6924
+ };
6892
6925
  var gitIdentity = ["-c", "user.name=Kitman", "-c", "user.email=runner@kitman.invalid"];
6893
6926
  var srtMaskNames = [...DANGEROUS_FILES, ...DANGEROUS_DIRECTORIES.filter((name) => name !== ".git")];
6894
6927
  var stageAll = (worktree, git) => gen(function* () {
@@ -7149,6 +7182,7 @@ var freshDirectory = (directory) => gen(function* () {
7149
7182
  yield* fs.remove(directory, { recursive: true, force: true });
7150
7183
  yield* fs.makeDirectory(directory, { recursive: true });
7151
7184
  }).pipe(orDie);
7185
+ var harnessSessionFiles = { find: findSession, pack: packStampedSession };
7152
7186
  var stepAttempt = (input, resending) => (work) => gen(function* () {
7153
7187
  const checkouts = runCheckouts(input.rootDir, input.gitCredentials);
7154
7188
  const repoBinding = work.checkout === "none" ? undefined : work.repoBinding;
@@ -7216,22 +7250,31 @@ ${afterMergeFailed}`];
7216
7250
  };
7217
7251
  const sessionId = transcript !== undefined || adapter?.session?.start !== undefined ? session.id : undefined;
7218
7252
  let last = saved?.ref === checkpointRef(work) ? saved : {};
7253
+ const rolloutDirectories = new Map;
7254
+ const sessionFiles = input.sessionFiles ?? harnessSessionFiles;
7219
7255
  const checkpointTurn = makeUnsafe3(1);
7220
7256
  const takeCheckpoint = gen(function* () {
7221
7257
  if (input.checkpoints === undefined)
7222
7258
  return;
7223
7259
  const workspace = writable ? yield* pushCheckpoint(worktree, checkpointRef(work), last.tree, yield* checkouts.transferEnv(repoBinding)) : undefined;
7224
- const file = adapter === undefined ? undefined : yield* findSession(adapter, {
7225
- ...sessions,
7226
- worktree,
7227
- ...sessionId === undefined ? undefined : { id: sessionId }
7228
- });
7229
- const content = file === undefined ? undefined : yield* packSession(file).pipe(catch_((error) => as(logWarning("runner_session_unread", error.message), undefined)));
7260
+ const file = adapter === undefined ? undefined : yield* sessionFiles.find(adapter, { ...sessions, worktree, ...sessionId === undefined ? undefined : { id: sessionId } }, rolloutDirectories);
7261
+ const unchanged = file !== undefined && last.session?.harness === adapter?.id && last.session?.id === file.id && sameSessionStamp(last.sessionStamp, yield* sessionStamp(file).pipe(orElseSucceed(() => {
7262
+ return;
7263
+ })));
7264
+ const packed = file === undefined || unchanged ? undefined : yield* sessionFiles.pack(file).pipe(catch_((error) => as(logWarning("runner_session_unread", error.message), undefined)));
7265
+ const content = packed?.content;
7230
7266
  const sessionChanged = content !== undefined && !sameBytes(last.session?.content, content);
7267
+ if (packed !== undefined && !sessionChanged)
7268
+ last = { ...last, sessionStamp: packed.stamp };
7231
7269
  if (workspace === undefined && !sessionChanged)
7232
7270
  return;
7233
7271
  const session = file === undefined || content === undefined || adapter === undefined ? last.session ?? (transcript === undefined ? undefined : storedSession) : { harness: adapter.id, id: file.id, name: file.name, content };
7234
- const next = { ...last, ...workspace, ...session === undefined ? undefined : { session } };
7272
+ const next = {
7273
+ ...last,
7274
+ ...workspace,
7275
+ ...session === undefined ? undefined : { session },
7276
+ ...packed === undefined ? undefined : { sessionStamp: packed.stamp }
7277
+ };
7235
7278
  yield* input.checkpoints.save(work, {
7236
7279
  ...next.ref === undefined || next.revision === undefined ? undefined : { ref: next.ref, revision: next.revision },
7237
7280
  ...session === undefined ? undefined : { session }
@@ -4,12 +4,12 @@ import {
4
4
  runnerRpcUrl2,
5
5
  makeRunnerRpcClient2,
6
6
  makeProgramRpcClient2
7
- } from "./chunk-4tdk1w0k.js";
8
- import"./chunk-8andwyqa.js";
9
- import"./chunk-y6petreh.js";
10
- import"./chunk-rbpn35g5.js";
11
- import"./chunk-sm340tvm.js";
12
- import"./chunk-61dmxexa.js";
7
+ } from "./chunk-qbrkeg49.js";
8
+ import"./chunk-5qrjf4xq.js";
9
+ import"./chunk-xxcxramy.js";
10
+ import"./chunk-r2kzvdrg.js";
11
+ import"./chunk-z59pvcbk.js";
12
+ import"./chunk-y64ssczv.js";
13
13
  export {
14
14
  makeProgramRpcClient2 as makeProgramRpcClient,
15
15
  makeRunnerRpcClient2 as makeRunnerRpcClient,
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  isString2
4
- } from "./chunk-61dmxexa.js";
4
+ } from "./chunk-y64ssczv.js";
5
5
 
6
6
  // packages/core/src/question-recommendation.ts
7
7
  var optionValue = (option) => isString2(option) ? option : option.value;
@@ -118,7 +118,7 @@ import {
118
118
  decodeJsonStringOption,
119
119
  encodeJsonStringSync,
120
120
  encodePrettyJsonString
121
- } from "./chunk-61dmxexa.js";
121
+ } from "./chunk-y64ssczv.js";
122
122
  import {
123
123
  currentTimeMillis,
124
124
  SecureRandom,
@@ -170,7 +170,7 @@ import {
170
170
  runMcpEffect,
171
171
  createAgentAuthSignedFetch,
172
172
  setupMcpAgentCredential
173
- } from "./chunk-y6petreh.js";
173
+ } from "./chunk-xxcxramy.js";
174
174
  import {
175
175
  join,
176
176
  interrupt,
@@ -187,30 +187,30 @@ import {
187
187
  withDefault,
188
188
  option,
189
189
  String2
190
- } from "./chunk-sm340tvm.js";
190
+ } from "./chunk-z59pvcbk.js";
191
191
  import {
192
192
  searchDocs2,
193
193
  readDoc2
194
- } from "./chunk-pyjx5q5s.js";
194
+ } from "./chunk-9vqkjkya.js";
195
195
  import {
196
196
  nextInt
197
- } from "./chunk-znhjs0t6.js";
197
+ } from "./chunk-m1qp6swh.js";
198
198
  import {
199
199
  recommendationProblem
200
- } from "./chunk-1hgsf81a.js";
200
+ } from "./chunk-pd3azxev.js";
201
201
  import {
202
202
  layerJson,
203
203
  make3,
204
204
  withHeaders,
205
205
  layerProtocolSocket,
206
206
  ConnectionHooks
207
- } from "./chunk-8andwyqa.js";
207
+ } from "./chunk-5qrjf4xq.js";
208
208
  import {
209
209
  guard,
210
210
  Id,
211
211
  Timestamp,
212
212
  ActorType
213
- } from "./chunk-rbpn35g5.js";
213
+ } from "./chunk-r2kzvdrg.js";
214
214
 
215
215
  // apps/cli/src/mcp.ts
216
216
  import { tmpdir as tmpdir2 } from "os";
@@ -6,10 +6,10 @@ import {
6
6
  gen,
7
7
  flatMap3,
8
8
  provideContext2
9
- } from "./chunk-61dmxexa.js";
9
+ } from "./chunk-y64ssczv.js";
10
10
  import {
11
11
  runForEach
12
- } from "./chunk-sm340tvm.js";
12
+ } from "./chunk-z59pvcbk.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-y6petreh.js";
22
+ } from "./chunk-xxcxramy.js";
23
23
  import {
24
24
  layerJson,
25
25
  make3,
26
26
  withHeaders,
27
27
  layerProtocolSocket
28
- } from "./chunk-8andwyqa.js";
28
+ } from "./chunk-5qrjf4xq.js";
29
29
 
30
30
  // packages/live/src/rpc/runner-client.ts
31
31
  var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
@@ -15,8 +15,8 @@ import {
15
15
  writeSrtSettings2,
16
16
  srtStepArgv2,
17
17
  srtArgv2
18
- } from "./chunk-sm340tvm.js";
19
- import"./chunk-61dmxexa.js";
18
+ } from "./chunk-z59pvcbk.js";
19
+ import"./chunk-y64ssczv.js";
20
20
  export {
21
21
  compiled2 as compiled,
22
22
  harnessesUnsupportedInDocker2 as harnessesUnsupportedInDocker,
@@ -18,7 +18,7 @@ import {
18
18
  isMinLength,
19
19
  isMaxLength,
20
20
  FiniteFromString
21
- } from "./chunk-61dmxexa.js";
21
+ } from "./chunk-y64ssczv.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];
@@ -1,10 +1,4 @@
1
1
  // @bun
2
- import {
3
- FileSystem,
4
- Path,
5
- optionalEnv,
6
- tempDirectoryScoped
7
- } from "./chunk-sm340tvm.js";
8
2
  import {
9
3
  Reference,
10
4
  TaggedError,
@@ -31,15 +25,21 @@ import {
31
25
  isString2,
32
26
  encodePrettyJsonString,
33
27
  decodeJsonStringSync
34
- } from "./chunk-61dmxexa.js";
28
+ } from "./chunk-y64ssczv.js";
29
+ import {
30
+ FileSystem,
31
+ Path,
32
+ optionalEnv,
33
+ tempDirectoryScoped
34
+ } from "./chunk-z59pvcbk.js";
35
35
  import {
36
36
  AgentHarnessIds,
37
37
  sha2562,
38
38
  runCommand2
39
- } from "./chunk-y6petreh.js";
39
+ } from "./chunk-xxcxramy.js";
40
40
  import {
41
41
  NpmRegistry
42
- } from "./chunk-801jtbdq.js";
42
+ } from "./chunk-9yvknsnj.js";
43
43
 
44
44
  // packages/agent-runtime/src/config-convergence.ts
45
45
  var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
@@ -18,7 +18,7 @@ import {
18
18
  isRedacted,
19
19
  make16,
20
20
  value
21
- } from "./chunk-61dmxexa.js";
21
+ } from "./chunk-y64ssczv.js";
22
22
  import {
23
23
  unwrap,
24
24
  drainFork,
@@ -27,7 +27,7 @@ import {
27
27
  runCollect,
28
28
  runDrain,
29
29
  mkString
30
- } from "./chunk-sm340tvm.js";
30
+ } from "./chunk-z59pvcbk.js";
31
31
 
32
32
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Brand.js
33
33
  function nominal() {
@@ -4,7 +4,7 @@ import {
4
4
  searchDocs2,
5
5
  readDoc2,
6
6
  pinnedLink2
7
- } from "./chunk-pyjx5q5s.js";
7
+ } from "./chunk-9vqkjkya.js";
8
8
  export {
9
9
  DefaultDocsSearchLimit2 as DefaultDocsSearchLimit,
10
10
  pinnedLink2 as pinnedLink,
@@ -193,6 +193,8 @@ import {
193
193
  clockWith,
194
194
  logError,
195
195
  effectify,
196
+ toNumber,
197
+ bytes,
196
198
  decode,
197
199
  isRedacted,
198
200
  make16,
@@ -267,12 +269,10 @@ import {
267
269
  decodeJsonStringOption,
268
270
  encodeJsonStringSync,
269
271
  encodePrettyJsonString
270
- } from "./chunk-61dmxexa.js";
272
+ } from "./chunk-y64ssczv.js";
271
273
  import {
272
274
  map,
273
275
  makeEquivalence,
274
- toNumber,
275
- bytes,
276
276
  BadArgument,
277
277
  systemError,
278
278
  badArgument,
@@ -336,7 +336,7 @@ import {
336
336
  optionalEnv,
337
337
  harnessesUnsupportedInSrt2,
338
338
  harnessesUnsupportedInDocker2
339
- } from "./chunk-sm340tvm.js";
339
+ } from "./chunk-z59pvcbk.js";
340
340
  import {
341
341
  ExitCode,
342
342
  ProcessId,
@@ -347,7 +347,7 @@ import {
347
347
  make2,
348
348
  parseFdName,
349
349
  fdName
350
- } from "./chunk-j021bman.js";
350
+ } from "./chunk-vh2a72d1.js";
351
351
  import {
352
352
  isDateTime,
353
353
  Numeric,
@@ -360,8 +360,7 @@ import {
360
360
  SecretScope,
361
361
  SecretHosts,
362
362
  isSecretReference
363
- } from "./chunk-rbpn35g5.js";
364
-
363
+ } from "./chunk-r2kzvdrg.js";
365
364
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
366
365
  var makeEquivalence3 = Tuple;
367
366