@kitman-sh/cli 0.10.81 → 0.10.83

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 (26) hide show
  1. package/dist/{chunk-zktywann.js → chunk-1chta572.js} +14 -14
  2. package/dist/{chunk-a10dn5vf.js → chunk-20rbya07.js} +35 -35
  3. package/dist/{chunk-1mcwey0c.js → chunk-292vjjdz.js} +1 -1
  4. package/dist/{chunk-w9j2yb0n.js → chunk-2fqry6rd.js} +40 -183
  5. package/dist/{chunk-5tezkbn0.js → chunk-2rpwpzt5.js} +119 -132
  6. package/dist/{chunk-52209e52.js → chunk-66fhj0c3.js} +12 -10
  7. package/dist/{chunk-xk8qzgn7.js → chunk-6kt28g8r.js} +69 -28
  8. package/dist/{chunk-cw2ghw7n.js → chunk-72232jhj.js} +4 -4
  9. package/dist/{chunk-p74pmd81.js → chunk-7bsf0fyh.js} +1 -6
  10. package/dist/{chunk-bjbphmyt.js → chunk-7wag4s6j.js} +4 -4
  11. package/dist/{chunk-maj4dn1b.js → chunk-93vddjpx.js} +1 -1
  12. package/dist/{chunk-dmwqvnmb.js → chunk-999xbcaa.js} +6 -6
  13. package/dist/{chunk-q0gqkem3.js → chunk-adqabkwv.js} +5 -5
  14. package/dist/{chunk-ybp1mwv9.js → chunk-bjexx93x.js} +60 -14
  15. package/dist/{chunk-aj4ev9v2.js → chunk-by54dw1n.js} +2 -2
  16. package/dist/{chunk-f5mmvr81.js → chunk-dzthc6th.js} +9 -9
  17. package/dist/{chunk-ym8t1vr6.js → chunk-hccw303w.js} +7 -7
  18. package/dist/{chunk-5dwyvg1z.js → chunk-mr30hj39.js} +5 -5
  19. package/dist/{chunk-4325dpky.js → chunk-ptp9p22x.js} +20 -20
  20. package/dist/{chunk-vne4rsj0.js → chunk-qnnsy306.js} +2 -2
  21. package/dist/{chunk-tbgxe3w0.js → chunk-smnx6fad.js} +8 -8
  22. package/dist/{chunk-symx9akd.js → chunk-tnqzvx55.js} +361 -196
  23. package/dist/{chunk-scabqmnx.js → chunk-xbyd16q3.js} +3 -3
  24. package/dist/{chunk-caqesagt.js → chunk-xq4k0mgr.js} +59 -101
  25. package/dist/index.js +4 -4
  26. package/package.json +1 -1
@@ -75,12 +75,8 @@ import {
75
75
  toEquivalence,
76
76
  toCodecJson,
77
77
  Json
78
- } from "./chunk-caqesagt.js";
78
+ } from "./chunk-xq4k0mgr.js";
79
79
  import {
80
- guard
81
- } from "./chunk-p74pmd81.js";
82
- import {
83
- currentTimeMillis,
84
80
  WebCrypto,
85
81
  SafeJson,
86
82
  AgentSandboxNetwork,
@@ -105,11 +101,15 @@ import {
105
101
  KitDigest,
106
102
  KitSetup,
107
103
  RunnerRpcError
108
- } from "./chunk-symx9akd.js";
104
+ } from "./chunk-tnqzvx55.js";
109
105
  import {
106
+ currentTimeMillis,
110
107
  runForEach,
111
108
  FileSystem
112
- } from "./chunk-w9j2yb0n.js";
109
+ } from "./chunk-2fqry6rd.js";
110
+ import {
111
+ guard
112
+ } from "./chunk-7bsf0fyh.js";
113
113
 
114
114
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/crypto/internal/webCrypto.js
115
115
  var subtleUnavailable = () => new Error("crypto.subtle is unavailable; browsers expose it only in secure contexts");
@@ -757,6 +757,7 @@ var PipelineStatus = Struct({
757
757
  runnerChecks: optionalKey(ArraySchema(String4)),
758
758
  approved: optionalKey(String4),
759
759
  repository: optionalKey(String4),
760
+ targetBranch: optionalKey(String4),
760
761
  conflicts: optionalKey(Boolean2),
761
762
  needsRebase: optionalKey(Boolean2),
762
763
  target: optionalKey(Struct({ branch: String4, head: String4, jobs: ArraySchema(PipelineJob) }))
@@ -1012,10 +1013,11 @@ var merged = {
1012
1013
  settled: ArraySchema(String4)
1013
1014
  };
1014
1015
  var SyncAnswer = Union([UpToDate, Struct(merged), Conflict]);
1016
+ var reported = { base: optionalKey(String4) };
1015
1017
  var BaseSync = Union([
1016
- UpToDate,
1017
- Struct({ ...merged, catchUp: optionalKey(CatchUp) }),
1018
- Conflict
1018
+ Struct({ ...UpToDate.fields, ...reported }),
1019
+ Struct({ ...merged, catchUp: optionalKey(CatchUp), ...reported }),
1020
+ Struct({ ...Conflict.fields, ...reported })
1019
1021
  ]);
1020
1022
  // packages/sdk/src/loop/continuing.ts
1021
1023
  var Continuing = Struct({
@@ -6,7 +6,7 @@ import {
6
6
  isObject,
7
7
  isJsonObject,
8
8
  isString
9
- } from "./chunk-1mcwey0c.js";
9
+ } from "./chunk-292vjjdz.js";
10
10
  import {
11
11
  pipeArguments,
12
12
  dual,
@@ -165,14 +165,8 @@ import {
165
165
  encodePrettyJsonString,
166
166
  decodeJsonStringSync,
167
167
  encodeUnknownJsonStringSync
168
- } from "./chunk-caqesagt.js";
168
+ } from "./chunk-xq4k0mgr.js";
169
169
  import {
170
- Id,
171
- secretReference,
172
- secretPlaceholder
173
- } from "./chunk-p74pmd81.js";
174
- import {
175
- currentTimeMillis,
176
170
  SecureRandom,
177
171
  layerWebCrypto,
178
172
  layer,
@@ -243,8 +237,9 @@ import {
243
237
  installCommand,
244
238
  checkServicesFile,
245
239
  checkServices
246
- } from "./chunk-symx9akd.js";
240
+ } from "./chunk-tnqzvx55.js";
247
241
  import {
242
+ currentTimeMillis,
248
243
  join,
249
244
  interrupt,
250
245
  unbounded,
@@ -283,7 +278,7 @@ import {
283
278
  writeSrtSettings2,
284
279
  srtStepArgv2,
285
280
  srtArgv2
286
- } from "./chunk-w9j2yb0n.js";
281
+ } from "./chunk-2fqry6rd.js";
287
282
  import {
288
283
  writeAgentEnvironmentConfigFile2,
289
284
  readManifestSkillPaths2,
@@ -299,12 +294,8 @@ import {
299
294
  applyAgentEnvironmentMaterialization2,
300
295
  isPathWithin2,
301
296
  skillIdentity2
302
- } from "./chunk-q0gqkem3.js";
303
- import"./chunk-scabqmnx.js";
304
- import {
305
- ChildProcessSpawner,
306
- make2
307
- } from "./chunk-ybp1mwv9.js";
297
+ } from "./chunk-adqabkwv.js";
298
+ import"./chunk-xbyd16q3.js";
308
299
  import {
309
300
  egressAllowed,
310
301
  writeSecretRegistry,
@@ -314,7 +305,7 @@ import {
314
305
  secretFilter2,
315
306
  opaqueTunnelRefusal2,
316
307
  isOpaqueConnectReason2
317
- } from "./chunk-aj4ev9v2.js";
308
+ } from "./chunk-by54dw1n.js";
318
309
  import {
319
310
  sliceBytes2,
320
311
  maxLineBytes2,
@@ -322,19 +313,28 @@ import {
322
313
  decodedOption2,
323
314
  decoded2,
324
315
  readOpencode2
325
- } from "./chunk-dmwqvnmb.js";
316
+ } from "./chunk-999xbcaa.js";
326
317
  import {
327
318
  uploadRunFile,
328
319
  programLease,
329
320
  rpcRunFiles,
330
321
  programHostsEnv,
331
322
  undeclaredHostsEnv
332
- } from "./chunk-52209e52.js";
333
- import"./chunk-f5mmvr81.js";
323
+ } from "./chunk-66fhj0c3.js";
324
+ import"./chunk-dzthc6th.js";
334
325
  import {
335
326
  nextInt
336
- } from "./chunk-maj4dn1b.js";
337
- import"./chunk-4325dpky.js";
327
+ } from "./chunk-93vddjpx.js";
328
+ import {
329
+ ChildProcessSpawner,
330
+ make3
331
+ } from "./chunk-bjexx93x.js";
332
+ import"./chunk-ptp9p22x.js";
333
+ import {
334
+ Id,
335
+ secretReference,
336
+ secretPlaceholder
337
+ } from "./chunk-7bsf0fyh.js";
338
338
 
339
339
  // packages/core/src/sync-kit.ts
340
340
  import { createHash } from "crypto";
@@ -5660,11 +5660,13 @@ var automergedTree = (worktree, conflicted) => gen(function* () {
5660
5660
  var mergeTarget = (worktree, target) => gen(function* () {
5661
5661
  const git = (...args) => runCommand2("git", ["-C", worktree, ...gitIdentity, ...args]);
5662
5662
  const before = yield* git("rev-parse", "HEAD");
5663
- const merged = yield* exit(git("merge", "--no-edit", `origin/${target}`));
5663
+ const targetCommit = (yield* git("rev-parse", "--verify", `origin/${target}^{commit}`)).trim();
5664
+ const merged = yield* exit(git("merge", "--no-edit", "-m", `Merge remote-tracking branch 'origin/${target}'`, targetCommit));
5664
5665
  const subject = `Kitman's merge of \`origin/${target}\``;
5665
5666
  if (isSuccess2(merged))
5666
5667
  return {
5667
5668
  from: before.trim(),
5669
+ target: targetCommit,
5668
5670
  conflicted: [],
5669
5671
  note: (yield* git("rev-parse", "HEAD")) === before ? `${subject}: already up to date.` : `${subject}: merged cleanly and committed.`
5670
5672
  };
@@ -5676,6 +5678,7 @@ var mergeTarget = (worktree, target) => gen(function* () {
5676
5678
  const conflicts = [...marked.length === 0 ? [] : [`${list(marked)}: it holds conflict markers`], ...unmarked];
5677
5679
  return {
5678
5680
  from: before.trim(),
5681
+ target: targetCommit,
5679
5682
  conflicted,
5680
5683
  automerged: yield* automergedTree(worktree, conflicted),
5681
5684
  note: [
@@ -5960,9 +5963,10 @@ var stepAttempt = (input, resending) => (work) => gen(function* () {
5960
5963
  conflicted: merge.conflicted,
5961
5964
  ...merge.automerged === undefined ? undefined : { automerged: merge.automerged }
5962
5965
  }).pipe(catch_((error) => as(logWarning("runner_catch_up_unread", error.message), undefined)));
5966
+ const syncedTarget = merge?.target;
5963
5967
  if (catchUp !== undefined)
5964
- return boundary === undefined ? { status: "completed", revision, catchUp } : { status: "completed", revision, boundary, catchUp };
5965
- return boundary === undefined ? { status: "completed", revision } : { status: "completed", revision, boundary };
5968
+ return boundary === undefined ? syncedTarget === undefined ? { status: "completed", revision, catchUp } : { status: "completed", revision, catchUp, syncedTarget } : syncedTarget === undefined ? { status: "completed", revision, boundary, catchUp } : { status: "completed", revision, boundary, catchUp, syncedTarget };
5969
+ return boundary === undefined ? syncedTarget === undefined ? { status: "completed", revision } : { status: "completed", revision, syncedTarget } : syncedTarget === undefined ? { status: "completed", revision, boundary } : { status: "completed", revision, boundary, syncedTarget };
5966
5970
  }).pipe(scoped);
5967
5971
  var agentStepExecutor = (input) => stepAttempt(input, new Map);
5968
5972
  var checkpointRef = (work) => `refs/kitman/checkpoints/${work.runId}/${work.id}`;
@@ -6532,7 +6536,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
6532
6536
  const input = yield* unbounded2();
6533
6537
  const pending = new Map;
6534
6538
  let lastId = 0;
6535
- const handle = yield* spawner.spawn(make2(binary, ["app-server"], {
6539
+ const handle = yield* spawner.spawn(make3(binary, ["app-server"], {
6536
6540
  cwd: env.home,
6537
6541
  extendEnv: true,
6538
6542
  env: { HOME: env.home, CODEX_HOME: env.codexHome },
@@ -6695,7 +6699,7 @@ var handshake = [
6695
6699
  `).join("");
6696
6700
  var kitmanMcpPreflight = (mcp) => gen(function* () {
6697
6701
  const spawner = yield* ChildProcessSpawner;
6698
- const server = yield* spawner.spawn(make2(mcp.command, [...mcp.args], {
6702
+ const server = yield* spawner.spawn(make3(mcp.command, [...mcp.args], {
6699
6703
  extendEnv: true,
6700
6704
  env: mcp.env,
6701
6705
  stdin: { stream: make10(new TextEncoder().encode(handshake)), endOnDone: false },
@@ -6771,7 +6775,7 @@ var programProcessExecutor = (input) => (work) => gen(function* () {
6771
6775
  };
6772
6776
  const exitCode = sandbox === undefined ? yield* gen(function* () {
6773
6777
  const spawner = yield* ChildProcessSpawner;
6774
- const handle = yield* spawner.spawn(make2(input.bun ?? process.execPath, [file], {
6778
+ const handle = yield* spawner.spawn(make3(input.bun ?? process.execPath, [file], {
6775
6779
  stdin: make10(new TextEncoder().encode(stdin)),
6776
6780
  stdout: "inherit",
6777
6781
  stderr: "inherit",
@@ -7398,6 +7402,41 @@ var ownRepository = (worktree, clone, targetBranch) => gen(function* () {
7398
7402
  yield* fs.rename(gitDir, path.join(worktree, ".git"));
7399
7403
  yield* runCommand2("git", ["-C", worktree, "reset", "--quiet"]);
7400
7404
  }).pipe(scoped);
7405
+ var resolveRevisions = (work, revisions, checkouts) => gen(function* () {
7406
+ const checkout = yield* checkouts.checkout({ runId: work.runId, id: work.id, baseRevision: work.revision }, work.repoBinding);
7407
+ const commits = [];
7408
+ for (const revision of revisions) {
7409
+ const commit = yield* exit(runCommand2("git", [
7410
+ "-C",
7411
+ checkout,
7412
+ "rev-parse",
7413
+ "--verify",
7414
+ "--quiet",
7415
+ "--end-of-options",
7416
+ `${revision}^{commit}`
7417
+ ]));
7418
+ if (isFailure2(commit)) {
7419
+ const unresolved = {
7420
+ status: "failed",
7421
+ failureSummary: `\`${revision}\` names no commit in ${work.repoBinding.id}'s clone`
7422
+ };
7423
+ return unresolved;
7424
+ }
7425
+ commits.push(commit.value.trim());
7426
+ }
7427
+ const resolved = {
7428
+ status: "completed",
7429
+ evidence: {
7430
+ head: {
7431
+ revision: (yield* runCommand2("git", ["-C", checkout, "rev-parse", "HEAD"])).trim(),
7432
+ tree: yield* treeOf(checkout),
7433
+ checks: []
7434
+ },
7435
+ resolved: { commits }
7436
+ }
7437
+ };
7438
+ return resolved;
7439
+ });
7401
7440
  var treeOf = (worktree) => map8(runCommand2("git", ["-C", worktree, "rev-parse", "HEAD^{tree}"]), (tree) => tree.trim());
7402
7441
  var verificationExecutor = (input) => (work) => gen(function* () {
7403
7442
  if (input.sandbox !== undefined && input.sandbox.backend === undefined)
@@ -7408,6 +7447,8 @@ var verificationExecutor = (input) => (work) => gen(function* () {
7408
7447
  const cache = yield* (yield* FileSystem).makeTempDirectoryScoped({ prefix: "kitman-verify-cache-" });
7409
7448
  const runIn = checkRunner(work, input.sandbox, cache, yield* inheritedEnvironment2(srtInheritedEnv2));
7410
7449
  const checkouts = runCheckouts(input.rootDir, input.gitCredentials);
7450
+ if (work.resolve !== undefined)
7451
+ return yield* resolveRevisions(work, work.resolve.revisions, checkouts);
7411
7452
  if (work.measure !== undefined) {
7412
7453
  const measured = yield* measureRevisions(work, work.measure, checkouts, runIn);
7413
7454
  const outcome = "failed" in measured ? { status: "failed", failureSummary: measured.failed } : { status: "completed", evidence: measured.measured };
@@ -4,10 +4,10 @@ import {
4
4
  opaqueTunnelRefusal2,
5
5
  isOpaqueConnectReason2,
6
6
  runSrtStep2
7
- } from "./chunk-aj4ev9v2.js";
8
- import"./chunk-p74pmd81.js";
9
- import"./chunk-1mcwey0c.js";
10
- import"./chunk-caqesagt.js";
7
+ } from "./chunk-by54dw1n.js";
8
+ import"./chunk-7bsf0fyh.js";
9
+ import"./chunk-292vjjdz.js";
10
+ import"./chunk-xq4k0mgr.js";
11
11
  export {
12
12
  isOpaqueConnectReason2 as isOpaqueConnectReason,
13
13
  opaqueTunnelRefusal2 as opaqueTunnelRefusal,
@@ -18,12 +18,7 @@ import {
18
18
  isMinLength,
19
19
  isMaxLength,
20
20
  FiniteFromString
21
- } from "./chunk-caqesagt.js";
22
-
23
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/JsonSchema.js
24
- var PRE_2020_TO_2020_COLLISIONS = ["$anchor", "$defs", "$dynamicAnchor", "$dynamicRef", "$vocabulary", "contentSchema", "dependentRequired", "dependentSchemas", "maxContains", "minContains", "prefixItems", "unevaluatedItems", "unevaluatedProperties"];
25
- var DRAFT_07_TO_2020_COLLISIONS = [...PRE_2020_TO_2020_COLLISIONS, "deprecated"];
26
- var OPEN_API_30_TO_2020_COLLISIONS = [...PRE_2020_TO_2020_COLLISIONS, "$comment", "$id", "$schema", "const", "contains", "contentEncoding", "contentMediaType", "else", "examples", "if", "patternProperties", "propertyNames", "then"];
21
+ } from "./chunk-xq4k0mgr.js";
27
22
 
28
23
  // packages/core/src/schema.ts
29
24
  var Days = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import"./chunk-ybp1mwv9.js";
2
+ import"./chunk-bjexx93x.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-symx9akd.js";
16
- import"./chunk-w9j2yb0n.js";
17
- import"./chunk-caqesagt.js";
15
+ } from "./chunk-tnqzvx55.js";
16
+ import"./chunk-2fqry6rd.js";
17
+ import"./chunk-xq4k0mgr.js";
18
18
  export {
19
19
  HERDR_CORE_GENERATION2 as HERDR_CORE_GENERATION,
20
20
  HERDR_CORE_INSTALL_COMMAND2 as HERDR_CORE_INSTALL_COMMAND,
@@ -3,7 +3,7 @@ import {
3
3
  Random,
4
4
  succeed6,
5
5
  withFiber2
6
- } from "./chunk-caqesagt.js";
6
+ } from "./chunk-xq4k0mgr.js";
7
7
 
8
8
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Random.js
9
9
  var Random2 = Random;
@@ -22,21 +22,21 @@ import {
22
22
  NullOr,
23
23
  Finite,
24
24
  encodeUnknownJsonStringSync
25
- } from "./chunk-caqesagt.js";
25
+ } from "./chunk-xq4k0mgr.js";
26
26
  import {
27
27
  isNumber,
28
28
  isJsonObject,
29
29
  isString
30
- } from "./chunk-1mcwey0c.js";
30
+ } from "./chunk-292vjjdz.js";
31
31
  import {
32
32
  make10,
33
33
  runForEach,
34
34
  compiled2
35
- } from "./chunk-w9j2yb0n.js";
35
+ } from "./chunk-2fqry6rd.js";
36
36
  import {
37
37
  ChildProcessSpawner,
38
- make2
39
- } from "./chunk-ybp1mwv9.js";
38
+ make3
39
+ } from "./chunk-bjexx93x.js";
40
40
 
41
41
  // packages/agent-runtime/src/opencode-store.ts
42
42
  import { lstatSync, readFileSync, realpathSync } from "fs";
@@ -169,7 +169,7 @@ var opencodeReaderCommand = () => compiled2 ? [process.execPath, "opencode-read"
169
169
  var isolatedRead = (store, name, input) => gen(function* () {
170
170
  const spawner = yield* ChildProcessSpawner;
171
171
  const [command, ...args] = opencodeReaderCommand();
172
- const handle = yield* spawner.spawn(make2(command, args, {
172
+ const handle = yield* spawner.spawn(make3(command, args, {
173
173
  stdin: make10(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
174
174
  stderr: "ignore",
175
175
  extendEnv: false,
@@ -23,24 +23,24 @@ import {
23
23
  fnUntraced,
24
24
  encodePrettyJsonString,
25
25
  decodeJsonStringSync
26
- } from "./chunk-caqesagt.js";
26
+ } from "./chunk-xq4k0mgr.js";
27
27
  import {
28
28
  isJsonObject,
29
29
  isString
30
- } from "./chunk-1mcwey0c.js";
30
+ } from "./chunk-292vjjdz.js";
31
31
  import {
32
32
  FileSystem,
33
33
  Path,
34
34
  optionalEnv
35
- } from "./chunk-w9j2yb0n.js";
35
+ } from "./chunk-2fqry6rd.js";
36
36
  import {
37
37
  AgentHarnessIds,
38
38
  sha2562,
39
39
  runCommand2
40
- } from "./chunk-symx9akd.js";
40
+ } from "./chunk-tnqzvx55.js";
41
41
  import {
42
42
  NpmRegistry
43
- } from "./chunk-scabqmnx.js";
43
+ } from "./chunk-xbyd16q3.js";
44
44
 
45
45
  // packages/agent-runtime/src/config-convergence.ts
46
46
  var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
@@ -1,6 +1,13 @@
1
1
  // @bun
2
2
  import {
3
+ isString2,
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
  map8,
16
23
  raceFirst,
17
- scoped,
18
- isRedacted,
19
- make16,
20
- value
21
- } from "./chunk-caqesagt.js";
24
+ scoped
25
+ } from "./chunk-xq4k0mgr.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-w9j2yb0n.js";
34
+ } from "./chunk-2fqry6rd.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${isString2(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(map8((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 };
@@ -13,11 +13,11 @@ import {
13
13
  ArraySchema,
14
14
  decodeJsonStringOption,
15
15
  encodeUnknownJsonStringSync
16
- } from "./chunk-caqesagt.js";
16
+ } from "./chunk-xq4k0mgr.js";
17
17
  import {
18
18
  replaceSecretReferences,
19
19
  secretReferencesIn
20
- } from "./chunk-p74pmd81.js";
20
+ } from "./chunk-7bsf0fyh.js";
21
21
 
22
22
  // packages/agent-runtime/src/srt-step.ts
23
23
  import { SandboxRuntimeConfigSchema } from "@anthropic-ai/sandbox-runtime";
@@ -6,10 +6,7 @@ import {
6
6
  gen,
7
7
  flatMap3,
8
8
  provideContext2
9
- } from "./chunk-caqesagt.js";
10
- import {
11
- runForEach
12
- } from "./chunk-w9j2yb0n.js";
9
+ } from "./chunk-xq4k0mgr.js";
13
10
  import {
14
11
  WebSocketConstructor,
15
12
  layerWebSocketConstructorGlobal,
@@ -19,13 +16,16 @@ import {
19
16
  RunnerReplicaRpcs,
20
17
  RunnerRunFileRpcs,
21
18
  ProgramRpcs
22
- } from "./chunk-symx9akd.js";
19
+ } from "./chunk-tnqzvx55.js";
20
+ import {
21
+ runForEach
22
+ } from "./chunk-2fqry6rd.js";
23
23
  import {
24
24
  layerJson,
25
- make3,
25
+ make4,
26
26
  withHeaders,
27
27
  layerProtocolSocket
28
- } from "./chunk-4325dpky.js";
28
+ } from "./chunk-ptp9p22x.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)),
@@ -4,13 +4,13 @@ import {
4
4
  runnerRpcUrl2,
5
5
  makeRunnerRpcClient2,
6
6
  makeProgramRpcClient2
7
- } from "./chunk-f5mmvr81.js";
8
- import"./chunk-4325dpky.js";
9
- import"./chunk-symx9akd.js";
10
- import"./chunk-p74pmd81.js";
11
- import"./chunk-1mcwey0c.js";
12
- import"./chunk-w9j2yb0n.js";
13
- import"./chunk-caqesagt.js";
7
+ } from "./chunk-dzthc6th.js";
8
+ import"./chunk-ptp9p22x.js";
9
+ import"./chunk-tnqzvx55.js";
10
+ import"./chunk-7bsf0fyh.js";
11
+ import"./chunk-292vjjdz.js";
12
+ import"./chunk-2fqry6rd.js";
13
+ import"./chunk-xq4k0mgr.js";
14
14
  export {
15
15
  makeProgramRpcClient2 as makeProgramRpcClient,
16
16
  makeRunnerRpcClient2 as makeRunnerRpcClient,
@@ -7,11 +7,11 @@ import {
7
7
  decoded2,
8
8
  readOpencode2,
9
9
  runOpencodeReader2
10
- } from "./chunk-dmwqvnmb.js";
11
- import"./chunk-ybp1mwv9.js";
12
- import"./chunk-1mcwey0c.js";
13
- import"./chunk-w9j2yb0n.js";
14
- import"./chunk-caqesagt.js";
10
+ } from "./chunk-999xbcaa.js";
11
+ import"./chunk-bjexx93x.js";
12
+ import"./chunk-292vjjdz.js";
13
+ import"./chunk-2fqry6rd.js";
14
+ import"./chunk-xq4k0mgr.js";
15
15
  export {
16
16
  decoded2 as decoded,
17
17
  decodedOption2 as decodedOption,