@kitman-sh/cli 0.10.53 → 0.10.55

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 (34) hide show
  1. package/dist/{chunk-x9dhxfts.js → chunk-148mjppg.js} +5 -5
  2. package/dist/{chunk-pp1p3g6e.js → chunk-4kssrezn.js} +6 -1
  3. package/dist/{chunk-ctasxxz5.js → chunk-5j3cxsnp.js} +10 -10
  4. package/dist/{chunk-7thnf14y.js → chunk-5y5axze6.js} +609 -6
  5. package/dist/{chunk-mbctzx7e.js → chunk-61k67vxh.js} +76 -1389
  6. package/dist/{chunk-arvwar2c.js → chunk-7evwar6b.js} +1 -1
  7. package/dist/{chunk-mej2bx5n.js → chunk-99ver3za.js} +4 -4
  8. package/dist/{chunk-jagzz148.js → chunk-axdmbr61.js} +26 -26
  9. package/dist/{chunk-p6spvbwq.js → chunk-dgb6s5vq.js} +482 -100
  10. package/dist/{chunk-v290mf51.js → chunk-dj7pp4w4.js} +179 -35
  11. package/dist/{chunk-eg8f5ncv.js → chunk-dkpqwk0q.js} +7 -7
  12. package/dist/{chunk-r8p3nxcp.js → chunk-eerh2t20.js} +10 -10
  13. package/dist/{chunk-jafetf7z.js → chunk-g53wn1q8.js} +2 -2
  14. package/dist/chunk-g7vk5tjp.js +1109 -0
  15. package/dist/{chunk-vjmz23rs.js → chunk-gwcqz1bj.js} +1 -1
  16. package/dist/{chunk-wh1pa2aa.js → chunk-m32wb6t0.js} +245 -108
  17. package/dist/{chunk-3bj7sc3v.js → chunk-mmetyep8.js} +7 -7
  18. package/dist/{chunk-30397r95.js → chunk-mtgkvbk4.js} +4 -4
  19. package/dist/{chunk-dzh9e6n2.js → chunk-q0yna8sw.js} +52 -35
  20. package/dist/{chunk-6vns3ej0.js → chunk-rjfxnk05.js} +5 -5
  21. package/dist/{chunk-g5bs3f6z.js → chunk-twp7aprz.js} +4 -6
  22. package/dist/{chunk-x0b92bjb.js → chunk-vtn088tq.js} +6 -6
  23. package/dist/{chunk-b6thzgc9.js → chunk-wczs5vrq.js} +2 -2
  24. package/dist/{chunk-11p4wf6n.js → chunk-xgwjcq4z.js} +3 -3
  25. package/dist/egress-proxy.ts +138 -21
  26. package/dist/half-close-relay.ts +125 -0
  27. package/dist/index.js +4 -4
  28. package/dist/tcp-forwarder.ts +29 -0
  29. package/package.json +1 -1
  30. package/dist/chunk-1mc9vgcr.js +0 -39
  31. package/dist/chunk-jfvq7s24.js +0 -145
  32. package/dist/chunk-txwt6r25.js +0 -1731
  33. package/dist/chunk-vyv0p5eq.js +0 -3183
  34. package/dist/chunk-z821b2gp.js +0 -164
@@ -38,7 +38,7 @@ import {
38
38
  assignProperty,
39
39
  PipeInspectableProto,
40
40
  withFiber,
41
- make15,
41
+ make14,
42
42
  strictEqual,
43
43
  Tuple,
44
44
  Number2,
@@ -58,7 +58,7 @@ import {
58
58
  Service2,
59
59
  makeUnsafe4,
60
60
  empty3,
61
- make16,
61
+ make15,
62
62
  add,
63
63
  getOrUndefined2,
64
64
  getOrUndefinedUnsafe,
@@ -91,7 +91,7 @@ import {
91
91
  fail4,
92
92
  isSuccess2,
93
93
  makeUnsafe5,
94
- make17,
94
+ make16,
95
95
  _await,
96
96
  fail5,
97
97
  isDone,
@@ -198,12 +198,11 @@ import {
198
198
  omit,
199
199
  map9,
200
200
  declare,
201
- is,
202
201
  decodeUnknownEffect2,
203
202
  decodeEffect,
204
203
  decodeUnknownOption,
205
204
  decodeOption,
206
- make18,
205
+ make17,
207
206
  isSchema,
208
207
  optionalKey,
209
208
  optional,
@@ -249,7 +248,7 @@ import {
249
248
  decodeJsonStringOption,
250
249
  encodeJsonStringSync,
251
250
  encodePrettyJsonString
252
- } from "./chunk-mbctzx7e.js";
251
+ } from "./chunk-61k67vxh.js";
253
252
  import {
254
253
  map,
255
254
  makeEquivalence,
@@ -316,7 +315,19 @@ import {
316
315
  String2,
317
316
  optionalEnv,
318
317
  harnessesUnsupportedInSrt2
319
- } from "./chunk-11p4wf6n.js";
318
+ } from "./chunk-xgwjcq4z.js";
319
+ import {
320
+ isDateTime,
321
+ Numeric,
322
+ isWholeNumber,
323
+ guard,
324
+ Id,
325
+ Timestamp,
326
+ ActorType,
327
+ SecretName,
328
+ SecretScope,
329
+ SecretHosts
330
+ } from "./chunk-4kssrezn.js";
320
331
  import {
321
332
  toJsonValue,
322
333
  isOneOf,
@@ -330,33 +341,21 @@ import {
330
341
  isSymbol,
331
342
  isUndefined,
332
343
  kindOf
333
- } from "./chunk-arvwar2c.js";
334
- import {
335
- isDateTime,
336
- Numeric,
337
- isWholeNumber,
338
- guard,
339
- Id,
340
- Timestamp,
341
- ActorType,
342
- SecretName,
343
- SecretScope,
344
- SecretHosts
345
- } from "./chunk-pp1p3g6e.js";
344
+ } from "./chunk-7evwar6b.js";
346
345
  import {
347
346
  isRedacted,
348
- make5,
347
+ make,
349
348
  value,
350
349
  ExitCode,
351
350
  ProcessId,
352
351
  makeHandle,
353
- make6,
352
+ make2,
354
353
  ChildProcessSpawner,
355
354
  display,
356
- make7,
355
+ make3,
357
356
  parseFdName,
358
357
  fdName
359
- } from "./chunk-3bj7sc3v.js";
358
+ } from "./chunk-mmetyep8.js";
360
359
 
361
360
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
362
361
  var makeEquivalence3 = Tuple;
@@ -519,7 +518,7 @@ var makeUnsafe6 = (input) => {
519
518
  var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
520
519
  var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
521
520
  var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
522
- var make = /* @__PURE__ */ liftThrowable(makeUnsafe6);
521
+ var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
523
522
  var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
524
523
  var nowUnsafe = () => makeUtc(Date.now());
525
524
  var toDateUtc = (self) => new Date(self.epochMilliseconds);
@@ -909,7 +908,7 @@ var toNumber = (b) => {
909
908
 
910
909
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
911
910
  var makeUnsafe = makeUnsafe6;
912
- var make14 = make;
911
+ var make18 = make4;
913
912
  var now2 = now;
914
913
  var nowUnsafe2 = nowUnsafe;
915
914
  var toDateUtc2 = toDateUtc;
@@ -1688,7 +1687,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1688
1687
  const sourceStream = unwrap(succeed6(getSourceStream(handles[handles.length - 1], options.from)));
1689
1688
  const toOption = options.to ?? "stdin";
1690
1689
  if (toOption === "stdin") {
1691
- handles.push(yield* spawnCommand(make7(command.command, command.args, {
1690
+ handles.push(yield* spawnCommand(make3(command.command, command.args, {
1692
1691
  ...command.options,
1693
1692
  stdin: {
1694
1693
  ...stdinConfig,
@@ -1708,7 +1707,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1708
1707
  type: "input",
1709
1708
  stream: sourceStream
1710
1709
  };
1711
- handles.push(yield* spawnCommand(make7(command.command, command.args, {
1710
+ handles.push(yield* spawnCommand(make3(command.command, command.args, {
1712
1711
  ...command.options,
1713
1712
  additionalFds: {
1714
1713
  ...existingFds,
@@ -1716,7 +1715,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1716
1715
  }
1717
1716
  })));
1718
1717
  } else {
1719
- handles.push(yield* spawnCommand(make7(command.command, command.args, {
1718
+ handles.push(yield* spawnCommand(make3(command.command, command.args, {
1720
1719
  ...command.options,
1721
1720
  stdin: {
1722
1721
  ...stdinConfig,
@@ -1755,7 +1754,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1755
1754
  }
1756
1755
  }
1757
1756
  });
1758
- return make6(spawnCommand);
1757
+ return make2(spawnCommand);
1759
1758
  });
1760
1759
  var layer3 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
1761
1760
  var flattenCommand = (command) => {
@@ -2831,12 +2830,12 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key) => {
2831
2830
  if (typeof key === "string") {
2832
2831
  const k = key.toLowerCase();
2833
2832
  if (k in self) {
2834
- out[k] = make5(self[k]);
2833
+ out[k] = make(self[k]);
2835
2834
  }
2836
2835
  } else {
2837
2836
  for (const name in self) {
2838
2837
  if (name.search(key) !== -1) {
2839
- out[name] = make5(self[name]);
2838
+ out[name] = make(self[name]);
2840
2839
  }
2841
2840
  }
2842
2841
  }
@@ -2943,7 +2942,7 @@ var fromInputNested = (input) => {
2943
2942
  return out;
2944
2943
  };
2945
2944
  var coerce = (value) => isRedacted(value) ? value : String(value);
2946
- var Equivalence3 = /* @__PURE__ */ make15((a, b) => arrayEquivalence(a.params, b.params));
2945
+ var Equivalence3 = /* @__PURE__ */ make14((a, b) => arrayEquivalence(a.params, b.params));
2947
2946
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
2948
2947
  var empty4 = /* @__PURE__ */ make23([]);
2949
2948
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
@@ -2961,7 +2960,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2961
2960
  });
2962
2961
  var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
2963
2962
  const patterns = Array.isArray(key) ? key : [key];
2964
- return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make5(value) : value]);
2963
+ return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make(value) : value]);
2965
2964
  });
2966
2965
  var isRedactedName2 = isRedactedName;
2967
2966
  var redactUrl = (url, redactedNames = currentRedactedNames()) => {
@@ -3192,7 +3191,7 @@ function toDate(input) {
3192
3191
  return toDateUtc2(makeUnsafe(input));
3193
3192
  }
3194
3193
  function parseDate(input) {
3195
- return getOrUndefined(map4(make14(input), toDateUtc2));
3194
+ return getOrUndefined(map4(make18(input), toDateUtc2));
3196
3195
  }
3197
3196
  function toIso(input) {
3198
3197
  return formatIso(makeUnsafe(input));
@@ -5378,7 +5377,7 @@ function rotateRight(value, amount) {
5378
5377
  }
5379
5378
 
5380
5379
  // packages/core/src/loop-layers.ts
5381
- var LoopLayers = ["team", "workspace", "shipped"];
5380
+ var LoopLayers = ["team", "workspace"];
5382
5381
  var AgentEfforts = ["low", "medium", "high", "xhigh"];
5383
5382
  var AgentCapabilities = ["web", "subagents", "artifacts", "browser"];
5384
5383
 
@@ -5606,7 +5605,6 @@ var LoopForbiddenContentRegExp = new RegExp(LoopReferenceAndUrlForbiddenContentP
5606
5605
  var LoopSafeReferenceString = String4.check(isMinLength(1), isMaxLength(240), isPattern(new RegExp(LoopSafeReferencePattern, "u")));
5607
5606
  var LoopSafeInternalReferenceString = String4.check(isMinLength(1), isMaxLength(240), isPattern(new RegExp(LoopSafeInternalReferencePattern, "u")));
5608
5607
  var LoopSafeText = String4.check(isMaxLength(4000), isPattern(new RegExp(`^(?![\\s\\S]*(?:${LoopCredentialContentPattern}|[A-Za-z][A-Za-z0-9+.-]*://(?:[^\\s/?#]*@|[^\\s?#]*\\?)))[\\s\\S]*$`, "u")));
5609
- var recommendedDefault = (recommended) => recommended !== undefined && is(LoopSafeText)(recommended) ? recommended : undefined;
5610
5608
  var QuestionText = String4;
5611
5609
  var LoopSafeOutputDataString = String4.check(isMaxLength(4000), isPattern(new RegExp(LoopSafeInternalReferencePattern, "u")));
5612
5610
  var LoopSafePackageName = String4.check(isMinLength(1), isMaxLength(200), isPattern(new RegExp(LoopSafeReferencePattern, "u")));
@@ -5999,7 +5997,7 @@ var Run = Struct({
5999
5997
  trigger: RunTrigger,
6000
5998
  state: RunState,
6001
5999
  loopDigest: optionalKey(BundleDigest),
6002
- loopLayer: optionalKey(Literals(["team", "workspace", "shipped"])),
6000
+ loopLayer: optionalKey(Literals(["team", "workspace"])),
6003
6001
  loopVersion: optionalKey(String4),
6004
6002
  parentRunId: optionalKey(Id),
6005
6003
  continuesRunId: optionalKey(Id),
@@ -6382,7 +6380,7 @@ var ProgramLoop = Struct({
6382
6380
  id: String4,
6383
6381
  title: String4,
6384
6382
  version: optionalKey(LoopVersion),
6385
- layer: Literals(["team", "workspace", "shipped"]),
6383
+ layer: Literals(["team", "workspace"]),
6386
6384
  digest: String4,
6387
6385
  outcome: optionalKey(String4),
6388
6386
  offers: ArraySchema(Struct({
@@ -6411,7 +6409,7 @@ var AgentFallback = Struct({
6411
6409
  });
6412
6410
  var ProgramAgent = Struct({
6413
6411
  id: String4,
6414
- layer: Literals(["team", "workspace", "shipped"]),
6412
+ layer: Literals(["team", "workspace"]),
6415
6413
  kit: String4,
6416
6414
  extends: optionalKey(String4),
6417
6415
  instructions: optionalKey(String4),
@@ -9494,13 +9492,13 @@ function makeWith(method, url, urlParams, hash, headers, body) {
9494
9492
  return self;
9495
9493
  }
9496
9494
  var empty6 = /* @__PURE__ */ makeWith("GET", "", empty4, /* @__PURE__ */ none(), empty, empty5);
9497
- var make2 = (method) => (url, options) => modify(empty6, {
9495
+ var make5 = (method) => (url, options) => modify(empty6, {
9498
9496
  method,
9499
9497
  url,
9500
9498
  ...options ?? undefined
9501
9499
  });
9502
- var get = /* @__PURE__ */ make2("GET");
9503
- var put = /* @__PURE__ */ make2("PUT");
9500
+ var get = /* @__PURE__ */ make5("GET");
9501
+ var put = /* @__PURE__ */ make5("PUT");
9504
9502
  var modify = /* @__PURE__ */ dual(2, (self, options) => {
9505
9503
  let result = self;
9506
9504
  if (options.method) {
@@ -9799,7 +9797,7 @@ var Proto7 = {
9799
9797
  };
9800
9798
  },
9801
9799
  .../* @__PURE__ */ Object.fromEntries(/* @__PURE__ */ allShort.map(([fullMethod, method]) => [method, function(url, options) {
9802
- return this.execute(make2(fullMethod)(url, options));
9800
+ return this.execute(make5(fullMethod)(url, options));
9803
9801
  }]))
9804
9802
  };
9805
9803
  var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
@@ -10887,6 +10885,145 @@ var listedSummary = (summary) => {
10887
10885
  const line = summary.replace(/\s+/g, " ").trim();
10888
10886
  return line.length <= summaryLimit ? line : `${Array.from(line).slice(0, summaryLimit).join("").trimEnd()}\u2026`;
10889
10887
  };
10888
+ // packages/core/src/kit.ts
10889
+ var KitName = String4.check(isMinLength(1), isMaxLength(214), isPattern(new RegExp("^(@[a-z0-9-~][a-z0-9-._~]*/)?[a-z0-9-~][a-z0-9-._~]*$", "u")));
10890
+ var KitDigest = String4.check(isPattern(new RegExp("^[a-f0-9]{64}$", "u")));
10891
+ var KitLayer = Union([Literal("team"), Literal("workspace")]);
10892
+ var KitProvenance = Struct({
10893
+ repository: optionalKey(String4),
10894
+ commit: optionalKey(String4),
10895
+ clean: Boolean2
10896
+ });
10897
+ var KitBundleUpload = Struct({ bundle: String4.check(isMinLength(1)) });
10898
+ var kitBuild = {
10899
+ name: KitName,
10900
+ teamId: optionalKey(Id),
10901
+ digest: KitDigest,
10902
+ declarations: Record(String4, Unknown),
10903
+ protocolVersion: Int.check(isGreaterThanOrEqualTo(1)),
10904
+ provenance: KitProvenance
10905
+ };
10906
+ var KitPlanRequest = Struct(kitBuild);
10907
+ var KitDeployRequest = Struct({
10908
+ ...kitBuild,
10909
+ expectedVersion: Union([Int.check(isGreaterThanOrEqualTo(1)), Null])
10910
+ });
10911
+ var { name: _name, teamId: _teamId, ...devBuild } = kitBuild;
10912
+ var KitDevRequest = Struct(devBuild);
10913
+ var KitDevVersion = Struct({ id: Id, digest: KitDigest, loops: ArraySchema(String4) });
10914
+ var KitChanges = Struct({
10915
+ created: ArraySchema(String4),
10916
+ changed: ArraySchema(String4),
10917
+ removed: ArraySchema(String4)
10918
+ });
10919
+ var KitPlanConflict = Union([
10920
+ Struct({
10921
+ kind: Literal("id_taken"),
10922
+ resource: Union([Literal("loop"), Literal("agent")]),
10923
+ id: String4,
10924
+ kit: String4
10925
+ }),
10926
+ Struct({ kind: Literal("not_for_team"), declaration: String4 }),
10927
+ Struct({
10928
+ kind: Literal("schedule_team"),
10929
+ key: String4,
10930
+ problem: Union([Literal("missing"), Literal("not_allowed"), Literal("unknown")])
10931
+ }),
10932
+ Struct({
10933
+ kind: Literal("loop_unresolved"),
10934
+ record: Literal("schedule"),
10935
+ key: String4,
10936
+ loop: String4
10937
+ })
10938
+ ]);
10939
+ var OwnedRecordKind = Literal("schedule");
10940
+ var KitRecordChanges = Struct({
10941
+ created: ArraySchema(String4),
10942
+ changed: ArraySchema(String4),
10943
+ removed: ArraySchema(String4),
10944
+ adopted: ArraySchema(Struct({ key: String4, id: String4 }))
10945
+ });
10946
+ var KitDrift = Struct({
10947
+ kind: OwnedRecordKind,
10948
+ key: String4,
10949
+ field: String4,
10950
+ declared: Unknown,
10951
+ live: Unknown,
10952
+ changedBy: optionalKey(Struct({ actorType: String4, actorId: String4 })),
10953
+ changedAt: optionalKey(Timestamp)
10954
+ });
10955
+ var KitPlanWarning = Struct({
10956
+ kind: Literal("still_named"),
10957
+ resource: Union([Literal("loop"), Literal("agent")]),
10958
+ id: String4,
10959
+ record: String4
10960
+ });
10961
+ var KitPlanResult = Struct({
10962
+ name: KitName,
10963
+ layer: KitLayer,
10964
+ currentVersion: Union([Int.check(isGreaterThanOrEqualTo(1)), Null]),
10965
+ currentCommit: optionalKey(String4),
10966
+ loops: KitChanges,
10967
+ agents: KitChanges,
10968
+ schedules: KitRecordChanges,
10969
+ drift: ArraySchema(KitDrift),
10970
+ conflicts: ArraySchema(KitPlanConflict),
10971
+ warnings: ArraySchema(KitPlanWarning),
10972
+ secretsWithoutValue: ArraySchema(String4)
10973
+ });
10974
+ var KitVersionSummary = Struct({
10975
+ number: Int.check(isGreaterThanOrEqualTo(1)),
10976
+ digest: KitDigest,
10977
+ protocolVersion: Int.check(isGreaterThanOrEqualTo(1)),
10978
+ provenance: KitProvenance,
10979
+ deployedByActorType: ActorType,
10980
+ deployedByActorId: String4,
10981
+ deployBindingId: optionalKey(Id),
10982
+ carried: optionalKey(ArraySchema(Struct({ name: KitName, version: String4, setup: KitDigest }))),
10983
+ deployedAt: Timestamp,
10984
+ status: Union([
10985
+ Literal("current"),
10986
+ Literal("superseded"),
10987
+ Literal("dev"),
10988
+ Literal("removed")
10989
+ ])
10990
+ });
10991
+ var kitFields = {
10992
+ name: KitName,
10993
+ layer: KitLayer,
10994
+ teamId: optionalKey(Id),
10995
+ current: optionalKey(KitVersionSummary),
10996
+ loops: ArraySchema(String4),
10997
+ agents: ArraySchema(String4)
10998
+ };
10999
+ var KitSummary = Struct(kitFields);
11000
+ var KitList = Struct({ items: ArraySchema(KitSummary) });
11001
+ var KitDetail = Struct({
11002
+ ...kitFields,
11003
+ versions: ArraySchema(KitVersionSummary),
11004
+ schedules: ArraySchema(Struct({ key: String4, id: Id, name: optionalKey(String4) })),
11005
+ drift: ArraySchema(KitDrift)
11006
+ });
11007
+ var KitScopeQuery = Struct({ teamId: optionalKey(Id) });
11008
+ var DeployBinding = Struct({
11009
+ id: Id,
11010
+ repoBindingId: Id,
11011
+ repository: String4,
11012
+ branch: String4.check(isMinLength(1), isMaxLength(255)),
11013
+ kitName: KitName,
11014
+ layer: KitLayer,
11015
+ teamId: optionalKey(Id),
11016
+ createdByUserId: String4,
11017
+ createdAt: Timestamp
11018
+ });
11019
+ var DeployBindingCreate = Struct({
11020
+ repoBindingId: Id,
11021
+ branch: String4.check(isMinLength(1), isMaxLength(255)),
11022
+ kitName: KitName,
11023
+ teamId: optionalKey(Id)
11024
+ });
11025
+ var DeployBindingList = Struct({ items: ArraySchema(DeployBinding) });
11026
+ var defaultKitName = "@kitman-sh/software-engineering";
10890
11027
  // packages/core/src/kit-setup.ts
10891
11028
  var KitSetup = Struct({
10892
11029
  ...AgentEnvironmentFragment.fields,
@@ -13153,7 +13290,7 @@ function getStreamSchemas(schema) {
13153
13290
  }
13154
13291
  var schema = /* @__PURE__ */ declare(isStream);
13155
13292
  function Stream(success, error) {
13156
- return make18(schema.ast, {
13293
+ return make17(schema.ast, {
13157
13294
  [StreamSchemaTypeId]: StreamSchemaTypeId,
13158
13295
  success,
13159
13296
  error
@@ -13252,7 +13389,7 @@ var makeProto = (options) => {
13252
13389
  Rpc.key = `effect/rpc/Rpc/${options._tag}`;
13253
13390
  return Rpc;
13254
13391
  };
13255
- var make3 = (tag, options) => {
13392
+ var make6 = (tag, options) => {
13256
13393
  const successSchema = options?.success ?? Void;
13257
13394
  const errorSchema = options?.error ?? Never;
13258
13395
  const defectSchema = options?.defect ?? Defect();
@@ -13463,7 +13600,7 @@ var RpcGroupProto = {
13463
13600
  });
13464
13601
  },
13465
13602
  annotateRpcs(service, value) {
13466
- return this.annotateRpcsMerge(make16(service, value));
13603
+ return this.annotateRpcsMerge(make15(service, value));
13467
13604
  },
13468
13605
  annotateMerge(context) {
13469
13606
  return makeProto2({
@@ -13486,7 +13623,7 @@ var makeProto2 = (options) => Object.assign(function() {}, RpcGroupProto, {
13486
13623
  requests: options.requests,
13487
13624
  annotations: options.annotations
13488
13625
  });
13489
- var make4 = (...rpcs) => makeProto2({
13626
+ var make7 = (...rpcs) => makeProto2({
13490
13627
  requests: new Map(rpcs.map((rpc) => [rpc._tag, rpc])),
13491
13628
  annotations: empty3()
13492
13629
  });
@@ -13593,96 +13730,96 @@ var ProgramOutcome = Union([
13593
13730
  Struct({ status: Literal("failed"), failureSummary: String4 })
13594
13731
  ]);
13595
13732
 
13596
- class RunnerReplicaRpcs extends make4(make3("Claim", {
13733
+ class RunnerReplicaRpcs extends make7(make6("Claim", {
13597
13734
  payload: WorkUnitClaimInput,
13598
13735
  success: WorkUnitClaimResult,
13599
13736
  error: RunnerRpcError
13600
- }), make3("Heartbeat", {
13737
+ }), make6("Heartbeat", {
13601
13738
  payload: WorkUnitHeartbeatInput,
13602
13739
  success: WorkUnitHeartbeatResult,
13603
13740
  error: RunnerRpcError
13604
- }), make3("Complete", {
13741
+ }), make6("Complete", {
13605
13742
  payload: WorkUnitCompletion,
13606
13743
  error: RunnerRpcError
13607
- }), make3("Release", {
13744
+ }), make6("Release", {
13608
13745
  payload: WorkUnitReleaseInput,
13609
13746
  error: RunnerRpcError
13610
- }), make3("Signals", {
13747
+ }), make6("Signals", {
13611
13748
  payload: { runnerReplicaId: String4 },
13612
13749
  success: RunnerSignal,
13613
13750
  error: RunnerRpcError,
13614
13751
  stream: true
13615
- }), make3("ReportSteer", {
13752
+ }), make6("ReportSteer", {
13616
13753
  payload: { workUnitId: String4, messageId: String4, delivered: Boolean2 },
13617
13754
  success: Void,
13618
13755
  error: RunnerRpcError
13619
- }), make3("AppendTranscript", {
13756
+ }), make6("AppendTranscript", {
13620
13757
  payload: { workUnitId: String4, entries: ArraySchema(TranscriptAppendEntry).check(isMaxLength(100)) },
13621
13758
  success: Void,
13622
13759
  error: RunnerRpcError
13623
- }), make3("CreateCheckpointFile", {
13760
+ }), make6("CreateCheckpointFile", {
13624
13761
  payload: { lease: ProgramLease, byteSize: Int, sha256: String4 },
13625
13762
  success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
13626
13763
  error: Union([RunnerRpcError, RunFileRefused])
13627
- }), make3("CheckpointFileParts", {
13764
+ }), make6("CheckpointFileParts", {
13628
13765
  payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
13629
13766
  success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
13630
13767
  error: RunnerRpcError
13631
- }), make3("CompleteCheckpointFile", {
13768
+ }), make6("CompleteCheckpointFile", {
13632
13769
  payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
13633
13770
  success: RunFileRecord,
13634
13771
  error: RunnerRpcError
13635
- }), make3("SaveCheckpoint", {
13772
+ }), make6("SaveCheckpoint", {
13636
13773
  payload: { lease: ProgramLease, checkpoint: StepCheckpoint },
13637
13774
  success: Void,
13638
13775
  error: RunnerRpcError
13639
- }), make3("ResumeCheckpoint", {
13776
+ }), make6("ResumeCheckpoint", {
13640
13777
  payload: { lease: ProgramLease },
13641
13778
  success: UndefinedOr(ResumedCheckpoint),
13642
13779
  error: RunnerRpcError
13643
- }), make3("SettledCheckpoints", {
13780
+ }), make6("SettledCheckpoints", {
13644
13781
  success: ArraySchema(Struct({
13645
13782
  stepAttemptId: String4,
13646
13783
  ref: optionalKey(String4),
13647
13784
  repoBinding: optionalKey(WorkUnitRepoBinding)
13648
13785
  })),
13649
13786
  error: RunnerRpcError
13650
- }), make3("ForgetCheckpoints", {
13787
+ }), make6("ForgetCheckpoints", {
13651
13788
  payload: { stepAttemptIds: ArraySchema(String4) },
13652
13789
  success: Void,
13653
13790
  error: RunnerRpcError
13654
- }), make3("GitCredential", {
13791
+ }), make6("GitCredential", {
13655
13792
  payload: { repoBindingId: String4 },
13656
13793
  success: UndefinedOr(Struct({ username: String4, password: String4 })),
13657
13794
  error: RunnerRpcError
13658
- }), make3("Bundle", {
13795
+ }), make6("Bundle", {
13659
13796
  payload: { digest: String4 },
13660
13797
  success: Struct({ bundle: String4 }),
13661
13798
  error: RunnerRpcError
13662
- }), make3("SettledRuns", {
13799
+ }), make6("SettledRuns", {
13663
13800
  payload: { runIds: ArraySchema(String4) },
13664
13801
  success: ArraySchema(String4),
13665
13802
  error: RunnerRpcError
13666
- }), make3("KnownEvidence", {
13803
+ }), make6("KnownEvidence", {
13667
13804
  payload: { lease: ProgramLease, trees: ArraySchema(String4) },
13668
13805
  success: ArraySchema(Struct({ tree: String4, name: String4, command: String4 })),
13669
13806
  error: RunnerRpcError
13670
13807
  })).middleware(RunnerAuthentication) {
13671
13808
  }
13672
13809
 
13673
- class RunnerJournalRpcs extends make4(make3("RecordActivity", {
13810
+ class RunnerJournalRpcs extends make7(make6("RecordActivity", {
13674
13811
  payload: { lease: ProgramLease, name: String4, attempt: Int, exit: Json },
13675
13812
  error: RunnerRpcError
13676
- }), make3("DeferredDone", {
13813
+ }), make6("DeferredDone", {
13677
13814
  payload: { lease: ProgramLease, name: String4, exit: Json },
13678
13815
  error: RunnerRpcError
13679
- }), make3("ScheduleClock", {
13816
+ }), make6("ScheduleClock", {
13680
13817
  payload: { lease: ProgramLease, name: String4, deferredName: String4, durationMillis: Int },
13681
13818
  error: RunnerRpcError
13682
- }), make3("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make3("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
13819
+ }), make6("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make6("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
13683
13820
  }
13684
13821
 
13685
- class RunnerCapabilityRpcs extends make4(make3("PutQuestion", {
13822
+ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
13686
13823
  payload: {
13687
13824
  lease: ProgramLease,
13688
13825
  step: String4,
@@ -13699,7 +13836,7 @@ class RunnerCapabilityRpcs extends make4(make3("PutQuestion", {
13699
13836
  },
13700
13837
  success: Struct({ questionId: String4 }),
13701
13838
  error: RunnerRpcError
13702
- }), make3("StartAgentStep", {
13839
+ }), make6("StartAgentStep", {
13703
13840
  payload: {
13704
13841
  lease: ProgramLease,
13705
13842
  step: String4,
@@ -13715,7 +13852,7 @@ class RunnerCapabilityRpcs extends make4(make3("PutQuestion", {
13715
13852
  },
13716
13853
  success: Struct({ stepAttemptId: String4 }),
13717
13854
  error: RunnerRpcError
13718
- }), make3("StartVerification", {
13855
+ }), make6("StartVerification", {
13719
13856
  payload: {
13720
13857
  lease: ProgramLease,
13721
13858
  step: String4,
@@ -13732,7 +13869,7 @@ class RunnerCapabilityRpcs extends make4(make3("PutQuestion", {
13732
13869
  },
13733
13870
  success: Struct({ verificationId: String4 }),
13734
13871
  error: RunnerRpcError
13735
- }), make3("AwaitEvent", {
13872
+ }), make6("AwaitEvent", {
13736
13873
  payload: {
13737
13874
  lease: ProgramLease,
13738
13875
  step: String4,
@@ -13748,7 +13885,7 @@ class RunnerCapabilityRpcs extends make4(make3("PutQuestion", {
13748
13885
  })))
13749
13886
  },
13750
13887
  error: RunnerRpcError
13751
- }), make3("ClaimResource", {
13888
+ }), make6("ClaimResource", {
13752
13889
  payload: {
13753
13890
  lease: ProgramLease,
13754
13891
  step: String4,
@@ -13757,7 +13894,7 @@ class RunnerCapabilityRpcs extends make4(make3("PutQuestion", {
13757
13894
  action: Literals(["claim", "take_over", "let_go"])
13758
13895
  },
13759
13896
  error: RunnerRpcError
13760
- }), make3("AdmitChild", {
13897
+ }), make6("AdmitChild", {
13761
13898
  payload: {
13762
13899
  lease: ProgramLease,
13763
13900
  step: String4,
@@ -13767,7 +13904,7 @@ class RunnerCapabilityRpcs extends make4(make3("PutQuestion", {
13767
13904
  },
13768
13905
  success: Struct({ runId: String4 }),
13769
13906
  error: RunnerRpcError
13770
- }), make3("StoreArtifact", {
13907
+ }), make6("StoreArtifact", {
13771
13908
  payload: {
13772
13909
  lease: ProgramLease,
13773
13910
  step: String4,
@@ -13779,7 +13916,7 @@ class RunnerCapabilityRpcs extends make4(make3("PutQuestion", {
13779
13916
  },
13780
13917
  success: Struct({ artifactId: String4 }),
13781
13918
  error: RunnerRpcError
13782
- }), make3("RecordNote", {
13919
+ }), make6("RecordNote", {
13783
13920
  payload: {
13784
13921
  lease: ProgramLease,
13785
13922
  step: String4,
@@ -13787,7 +13924,7 @@ class RunnerCapabilityRpcs extends make4(make3("PutQuestion", {
13787
13924
  artifactId: optional(String4)
13788
13925
  },
13789
13926
  error: RunnerRpcError
13790
- }), make3("PerformHostEffect", {
13927
+ }), make6("PerformHostEffect", {
13791
13928
  payload: {
13792
13929
  lease: ProgramLease,
13793
13930
  step: String4,
@@ -13815,7 +13952,7 @@ class RunnerCapabilityRpcs extends make4(make3("PutQuestion", {
13815
13952
  },
13816
13953
  success: UndefinedOr(Struct({ id: String4, number: String4, url: String4 })),
13817
13954
  error: RunnerRpcError
13818
- }), make3("AlertTask", {
13955
+ }), make6("AlertTask", {
13819
13956
  payload: {
13820
13957
  lease: ProgramLease,
13821
13958
  step: String4,
@@ -13832,7 +13969,7 @@ class RunnerCapabilityRpcs extends make4(make3("PutQuestion", {
13832
13969
  joined: optionalKey(Struct({ kind: Literals(["run", "recent"]), runId: String4 }))
13833
13970
  }),
13834
13971
  error: RunnerRpcError
13835
- }), make3("ReadTranscripts", {
13972
+ }), make6("ReadTranscripts", {
13836
13973
  payload: { lease: ProgramLease, step: String4, days: Int },
13837
13974
  success: Struct({
13838
13975
  runs: ArraySchema(Struct({
@@ -13851,7 +13988,7 @@ class RunnerCapabilityRpcs extends make4(make3("PutQuestion", {
13851
13988
  }))
13852
13989
  }),
13853
13990
  error: RunnerRpcError
13854
- }), make3("PipelineStatus", {
13991
+ }), make6("PipelineStatus", {
13855
13992
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
13856
13993
  success: Struct({
13857
13994
  head: String4,
@@ -13867,11 +14004,11 @@ class RunnerCapabilityRpcs extends make4(make3("PutQuestion", {
13867
14004
  runnerChecks: optionalKey(ArraySchema(String4))
13868
14005
  }),
13869
14006
  error: RunnerRpcError
13870
- }), make3("ReportPipeline", {
14007
+ }), make6("ReportPipeline", {
13871
14008
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4, verification: String4 },
13872
14009
  success: Struct({ head: String4, status: Literals(["success", "failed"]) }),
13873
14010
  error: RunnerRpcError
13874
- }), make3("ReviewThreads", {
14011
+ }), make6("ReviewThreads", {
13875
14012
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
13876
14013
  success: Struct({
13877
14014
  threads: ArraySchema(Struct({
@@ -13883,7 +14020,7 @@ class RunnerCapabilityRpcs extends make4(make3("PutQuestion", {
13883
14020
  }))
13884
14021
  }),
13885
14022
  error: RunnerRpcError
13886
- }), make3("OpenChangeRequests", {
14023
+ }), make6("OpenChangeRequests", {
13887
14024
  payload: { lease: ProgramLease, step: String4, authors: NonEmptyArray(String4) },
13888
14025
  success: Struct({
13889
14026
  changeRequests: ArraySchema(Struct({
@@ -13897,7 +14034,7 @@ class RunnerCapabilityRpcs extends make4(make3("PutQuestion", {
13897
14034
  }))
13898
14035
  }),
13899
14036
  error: RunnerRpcError
13900
- }), make3("OwnChangeRequests", {
14037
+ }), make6("OwnChangeRequests", {
13901
14038
  payload: { lease: ProgramLease, step: String4 },
13902
14039
  success: Struct({
13903
14040
  changeRequests: ArraySchema(Struct({
@@ -13910,7 +14047,7 @@ class RunnerCapabilityRpcs extends make4(make3("PutQuestion", {
13910
14047
  }))
13911
14048
  }),
13912
14049
  error: RunnerRpcError
13913
- }), make3("Propose", {
14050
+ }), make6("Propose", {
13914
14051
  payload: {
13915
14052
  lease: ProgramLease,
13916
14053
  step: String4,
@@ -13937,7 +14074,7 @@ class RunnerCapabilityRpcs extends make4(make3("PutQuestion", {
13937
14074
  matched: optionalKey(Boolean2)
13938
14075
  }),
13939
14076
  error: RunnerRpcError
13940
- }), make3("ReadProject", {
14077
+ }), make6("ReadProject", {
13941
14078
  payload: { lease: ProgramLease, step: String4, projectId: String4 },
13942
14079
  success: Struct({
13943
14080
  project: Struct({ id: String4, name: String4 }),
@@ -13960,7 +14097,7 @@ class RunnerCapabilityRpcs extends make4(make3("PutQuestion", {
13960
14097
  taskChanges: ArraySchema(Struct({ taskKey: String4, title: String4, change: String4, at: String4 }))
13961
14098
  }),
13962
14099
  error: RunnerRpcError
13963
- }), make3("DraftUpdate", {
14100
+ }), make6("DraftUpdate", {
13964
14101
  payload: {
13965
14102
  lease: ProgramLease,
13966
14103
  step: String4,
@@ -13975,7 +14112,7 @@ class RunnerCapabilityRpcs extends make4(make3("PutQuestion", {
13975
14112
  },
13976
14113
  success: Struct({ id: String4 }),
13977
14114
  error: RunnerRpcError
13978
- }), make3("CreatePlanTasks", {
14115
+ }), make6("CreatePlanTasks", {
13979
14116
  payload: {
13980
14117
  lease: ProgramLease,
13981
14118
  projectId: optionalKey(String4),
@@ -13990,11 +14127,11 @@ class RunnerCapabilityRpcs extends make4(make3("PutQuestion", {
13990
14127
  },
13991
14128
  success: ArraySchema(Struct({ key: String4, taskId: String4 })),
13992
14129
  error: RunnerRpcError
13993
- }), make3("IntegrationBranch", {
14130
+ }), make6("IntegrationBranch", {
13994
14131
  payload: { lease: ProgramLease, repoBindingId: optionalKey(String4) },
13995
14132
  success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
13996
14133
  error: RunnerRpcError
13997
- }), make3("MergeChangeRequest", {
14134
+ }), make6("MergeChangeRequest", {
13998
14135
  payload: {
13999
14136
  lease: ProgramLease,
14000
14137
  step: String4,
@@ -14007,7 +14144,7 @@ class RunnerCapabilityRpcs extends make4(make3("PutQuestion", {
14007
14144
  Struct({ status: Literal("moved"), head: String4 })
14008
14145
  ]),
14009
14146
  error: RunnerRpcError
14010
- }), make3("ApproveChangeRequest", {
14147
+ }), make6("ApproveChangeRequest", {
14011
14148
  payload: {
14012
14149
  lease: ProgramLease,
14013
14150
  step: String4,
@@ -14022,7 +14159,7 @@ class RunnerCapabilityRpcs extends make4(make3("PutQuestion", {
14022
14159
  Struct({ approved: Literal(false), reason: String4 })
14023
14160
  ]),
14024
14161
  error: RunnerRpcError
14025
- }), make3("CloseChangeRequest", {
14162
+ }), make6("CloseChangeRequest", {
14026
14163
  payload: {
14027
14164
  lease: ProgramLease,
14028
14165
  step: String4,
@@ -14032,7 +14169,7 @@ class RunnerCapabilityRpcs extends make4(make3("PutQuestion", {
14032
14169
  },
14033
14170
  success: Struct({ closed: Boolean2, head: optionalKey(String4) }),
14034
14171
  error: RunnerRpcError
14035
- }), make3("RerunPipeline", {
14172
+ }), make6("RerunPipeline", {
14036
14173
  payload: {
14037
14174
  lease: ProgramLease,
14038
14175
  step: String4,
@@ -14042,7 +14179,7 @@ class RunnerCapabilityRpcs extends make4(make3("PutQuestion", {
14042
14179
  },
14043
14180
  success: Struct({ head: String4, pipelines: Int }),
14044
14181
  error: RunnerRpcError
14045
- }), make3("PublishRelease", {
14182
+ }), make6("PublishRelease", {
14046
14183
  payload: {
14047
14184
  lease: ProgramLease,
14048
14185
  step: String4,
@@ -14053,14 +14190,14 @@ class RunnerCapabilityRpcs extends make4(make3("PutQuestion", {
14053
14190
  },
14054
14191
  success: Struct({ tag: String4, revision: String4, url: String4 }),
14055
14192
  error: RunnerRpcError
14056
- }), make3("ProgramSecrets", {
14193
+ }), make6("ProgramSecrets", {
14057
14194
  payload: { lease: ProgramLease },
14058
14195
  success: Record(String4, String4),
14059
14196
  error: RunnerRpcError
14060
14197
  })).middleware(RunnerAuthentication) {
14061
14198
  }
14062
14199
 
14063
- class RunnerRunFileRpcs extends make4(make3("CreateRunFile", {
14200
+ class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
14064
14201
  payload: {
14065
14202
  lease: ProgramLease,
14066
14203
  step: String4,
@@ -14072,11 +14209,11 @@ class RunnerRunFileRpcs extends make4(make3("CreateRunFile", {
14072
14209
  },
14073
14210
  success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
14074
14211
  error: Union([RunnerRpcError, RunFileRefused])
14075
- }), make3("RunFileParts", {
14212
+ }), make6("RunFileParts", {
14076
14213
  payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
14077
14214
  success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
14078
14215
  error: RunnerRpcError
14079
- }), make3("CompleteRunFile", {
14216
+ }), make6("CompleteRunFile", {
14080
14217
  payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
14081
14218
  success: RunFileRecord,
14082
14219
  error: RunnerRpcError
@@ -14165,7 +14302,7 @@ function toStoredSession(token, existingRefreshToken) {
14165
14302
  }
14166
14303
  function startLoopbackServer(input) {
14167
14304
  return gen(function* () {
14168
- const code = yield* make17();
14305
+ const code = yield* make16();
14169
14306
  const context2 = yield* context();
14170
14307
  const runSyncExit = runSyncExitWith(context2);
14171
14308
  const server = yield* acquireRelease(sync2(() => Bun.serve({
@@ -14705,7 +14842,7 @@ var openConnection = (transport) => gen(function* () {
14705
14842
  let lastId = 0;
14706
14843
  let lost = false;
14707
14844
  const notifications = yield* unbounded2();
14708
- const ended = yield* make17();
14845
+ const ended = yield* make16();
14709
14846
  const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
14710
14847
  onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
14711
14848
  onNone: () => void_3,
@@ -14732,7 +14869,7 @@ var openConnection = (transport) => gen(function* () {
14732
14869
  if (lost)
14733
14870
  return yield* new HerdrCoreConnectionLost2({ method });
14734
14871
  const id = ++lastId;
14735
- const deferred = yield* make17();
14872
+ const deferred = yield* make16();
14736
14873
  pending.set(id, { method, deferred });
14737
14874
  yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
14738
14875
  return yield* _await(deferred);
@@ -14813,7 +14950,7 @@ var spawnedTransport = (env) => gen(function* () {
14813
14950
  const spawner = yield* ChildProcessSpawner;
14814
14951
  const input = yield* unbounded2();
14815
14952
  const encoder = new TextEncoder;
14816
- const handle = yield* spawner.spawn(make7("herdr-core", ["connect"], {
14953
+ const handle = yield* spawner.spawn(make3("herdr-core", ["connect"], {
14817
14954
  extendEnv: false,
14818
14955
  env,
14819
14956
  stdin: fromQueue(input),
@@ -14844,7 +14981,7 @@ var updateHerdrCore2 = (options) => gen(function* () {
14844
14981
  const spawner = yield* ChildProcessSpawner;
14845
14982
  const env = coreEnv(options);
14846
14983
  const run = (args) => gen(function* () {
14847
- const handle = yield* spawner.spawn(make7("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
14984
+ const handle = yield* spawner.spawn(make3("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
14848
14985
  const [stdout, stderr, exitCode] = yield* all3([
14849
14986
  mkString(decodeText(handle.stdout)),
14850
14987
  mkString(decodeText(handle.stderr)),
@@ -14870,7 +15007,7 @@ class CommandFailed2 extends TaggedError("CommandFailed") {
14870
15007
  }
14871
15008
  var runCommand2 = (command, args, options = {}) => gen(function* () {
14872
15009
  const spawner = yield* ChildProcessSpawner;
14873
- const handle = yield* spawner.spawn(make7(command, args, {
15010
+ const handle = yield* spawner.spawn(make3(command, args, {
14874
15011
  stdin: "ignore",
14875
15012
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
14876
15013
  ...options.env === undefined ? undefined : { extendEnv: true, env: options.env }
@@ -14896,7 +15033,7 @@ var shellOutputTailChars2 = 64 * 1024;
14896
15033
  var runProcess2 = (argv, options) => gen(function* () {
14897
15034
  const spawner = yield* ChildProcessSpawner;
14898
15035
  const [command, ...args] = argv;
14899
- const handle = yield* spawner.spawn(make7(command, args, {
15036
+ const handle = yield* spawner.spawn(make3(command, args, {
14900
15037
  stdin: options.stdin === undefined ? "ignore" : make11(new TextEncoder().encode(options.stdin)),
14901
15038
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
14902
15039
  env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
@@ -15319,4 +15456,4 @@ function checkServices(declaration) {
15319
15456
  return isSome(decoded) ? [...new Set(decoded.value.services)] : undefined;
15320
15457
  }
15321
15458
 
15322
- export { Clock, currentTimeMillis, WebCrypto, SecureRandom, layerWebCrypto, makeUnsafe, formatIso, empty, fromInput, merge, runMain, Stdio, Terminal, layer, error, log, toDate, parseDate, toIso, currentDate, wallClockMillis, waitingOnWords, queueWords, scanDurableSurface, redactResponseSurface, redactCredentials, redactedOutputTail, SafeJson, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, recommendedDefault, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, ProgramWorkUnit, CheckName, MeasurePlan, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, defaultRunnerCapabilities, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, repositoryKey, ClaimResult, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw, make2, get, put, setHeaders, bodyUint8Array, schemaBodyJson, filterStatusOk, HttpClient, execute, get2, Fetch, layer2, Socket, SocketReadError, SocketError, WebSocketConstructor, layerWebSocketConstructorGlobal, layerWebSocket, runDisplayLabels, listedSummary, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, removeAgentCredential, normalizeApiUrl, isStoredAgentCredential, isStreamSchema, getStreamSchemas, make3, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make4, Service, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, RunSettled, UpdateAvailable, RunnerReplicaRpcs, RunnerRunFileRpcs, ProgramRpcs, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, setupMcpAgentCredential, generateAgentKeyPair, HERDR_CORE_GENERATION2, HERDR_CORE_INSTALL_COMMAND2, HerdrCoreMissing2, HerdrCoreIncompatible2, HerdrCoreConnectionLost2, HerdrCoreRpcError2, HerdrCoreUpdateFailed2, HerdrCore2, herdrCoreLayer2, herdrCoreTransportLayer2, updateHerdrCore2, CommandFailed2, runCommand2, withoutPreloads2, shellOutputTailChars2, runProcess2, CommandRunner2, runShell2, detectHarnesses2, kitHarnesses, isKitHarness, instructionsStart, instructionsEnd, harnessNames, renderMcpServer, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices };
15459
+ export { Clock, currentTimeMillis, WebCrypto, SecureRandom, layerWebCrypto, makeUnsafe, formatIso, empty, fromInput, merge, runMain, Stdio, Terminal, layer, error, log, toDate, parseDate, toIso, currentDate, wallClockMillis, waitingOnWords, queueWords, scanDurableSurface, redactResponseSurface, redactCredentials, redactedOutputTail, SafeJson, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, defaultRunnerCapabilities, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, repositoryKey, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw, make5, get, put, setHeaders, bodyUint8Array, schemaBodyJson, filterStatusOk, HttpClient, execute, get2, Fetch, layer2, Socket, SocketReadError, SocketError, WebSocketConstructor, layerWebSocketConstructorGlobal, layerWebSocket, runDisplayLabels, listedSummary, KitName, KitDigest, defaultKitName, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, removeAgentCredential, normalizeApiUrl, isStoredAgentCredential, isStreamSchema, getStreamSchemas, make6, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make7, Service, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, RunSettled, UpdateAvailable, RunnerReplicaRpcs, RunnerRunFileRpcs, ProgramRpcs, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, setupMcpAgentCredential, generateAgentKeyPair, HERDR_CORE_GENERATION2, HERDR_CORE_INSTALL_COMMAND2, HerdrCoreMissing2, HerdrCoreIncompatible2, HerdrCoreConnectionLost2, HerdrCoreRpcError2, HerdrCoreUpdateFailed2, HerdrCore2, herdrCoreLayer2, herdrCoreTransportLayer2, updateHerdrCore2, CommandFailed2, runCommand2, withoutPreloads2, shellOutputTailChars2, runProcess2, CommandRunner2, runShell2, detectHarnesses2, kitHarnesses, isKitHarness, instructionsStart, instructionsEnd, harnessNames, renderMcpServer, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices };