@kitman-sh/cli 0.13.10 → 0.13.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/dist/{chunk-t82w7459.js → chunk-0h49y8gf.js} +17 -26
  2. package/dist/{chunk-kj1zjrs9.js → chunk-3rkhx6gq.js} +6 -6
  3. package/dist/{chunk-d4pxty7x.js → chunk-5an78wy8.js} +5 -5
  4. package/dist/{chunk-kk32jckf.js → chunk-5zhh41gb.js} +4 -4
  5. package/dist/{chunk-4crf5vhd.js → chunk-5zth85pj.js} +2 -2
  6. package/dist/{chunk-j34gensq.js → chunk-7rpd6a98.js} +1 -1
  7. package/dist/{chunk-jkddgvev.js → chunk-acneym1p.js} +30 -30
  8. package/dist/{chunk-mtdz4k32.js → chunk-cbpb2rww.js} +10 -10
  9. package/dist/{chunk-rz01craf.js → chunk-dtkejy3r.js} +118 -108
  10. package/dist/{chunk-bkecckjn.js → chunk-fcb6skhx.js} +10 -10
  11. package/dist/{chunk-24h0y27w.js → chunk-gq7y5v3e.js} +1 -1
  12. package/dist/{chunk-mmd7mjv0.js → chunk-gy9rf14f.js} +3 -3
  13. package/dist/{chunk-0nh3w4vn.js → chunk-h7mnz0w3.js} +7 -7
  14. package/dist/{chunk-s00cj5sw.js → chunk-j48k8j8y.js} +4 -4
  15. package/dist/{chunk-813vn8sn.js → chunk-jyq4790r.js} +18 -18
  16. package/dist/{chunk-2dwqak36.js → chunk-krqb80g6.js} +9 -9
  17. package/dist/{chunk-vxfajzpz.js → chunk-mtkstrh3.js} +60 -14
  18. package/dist/{chunk-r5v7df8h.js → chunk-mx3zt8v8.js} +61 -61
  19. package/dist/{chunk-6n3m0t02.js → chunk-p0vqjc0n.js} +2 -2
  20. package/dist/{chunk-6x4wkf0x.js → chunk-p8fhxfa0.js} +3 -3
  21. package/dist/{chunk-pxvd8w2v.js → chunk-q5w3v4k1.js} +1 -1
  22. package/dist/{chunk-c60xk73g.js → chunk-rh9g6sef.js} +21 -21
  23. package/dist/{chunk-hkg8s472.js → chunk-xzfj61cp.js} +7 -7
  24. package/dist/{chunk-ggmwpwhf.js → chunk-y1krmnbv.js} +2 -2
  25. package/dist/{chunk-zgraq2y3.js → chunk-zw3gf6r5.js} +28 -70
  26. package/dist/index.js +4 -4
  27. package/package.json +1 -1
@@ -12,7 +12,7 @@ import {
12
12
  succeed,
13
13
  isSuccess,
14
14
  TaggedError,
15
- make15,
15
+ make16,
16
16
  _await,
17
17
  fail5,
18
18
  succeed5,
@@ -104,7 +104,7 @@ import {
104
104
  decodeJsonString,
105
105
  encodeJsonStringSync,
106
106
  encodePrettyJsonString
107
- } from "./chunk-zgraq2y3.js";
107
+ } from "./chunk-zw3gf6r5.js";
108
108
  import {
109
109
  tap,
110
110
  mapError,
@@ -116,7 +116,7 @@ import {
116
116
  withDefault,
117
117
  option,
118
118
  String2
119
- } from "./chunk-t82w7459.js";
119
+ } from "./chunk-0h49y8gf.js";
120
120
  import {
121
121
  currentTimeMillis,
122
122
  SecureRandom,
@@ -167,7 +167,7 @@ import {
167
167
  digestSha256,
168
168
  sha256Hasher,
169
169
  raw,
170
- make4,
170
+ make5,
171
171
  get,
172
172
  put,
173
173
  HttpClient,
@@ -230,14 +230,14 @@ import {
230
230
  harnessNames,
231
231
  herdrRunnerCapabilities2,
232
232
  declaredChecks
233
- } from "./chunk-rz01craf.js";
233
+ } from "./chunk-dtkejy3r.js";
234
234
  import {
235
235
  Id
236
- } from "./chunk-pxvd8w2v.js";
236
+ } from "./chunk-q5w3v4k1.js";
237
237
  import {
238
238
  ChildProcessSpawner,
239
- make2
240
- } from "./chunk-vxfajzpz.js";
239
+ make3
240
+ } from "./chunk-mtkstrh3.js";
241
241
 
242
242
  // apps/cli/src/cli-error.ts
243
243
  function cliErrorCode(error, status) {
@@ -993,10 +993,10 @@ var sandboxMissing = (sandbox, missing) => ({
993
993
  var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
994
994
  var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
995
995
  var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
996
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-s00cj5sw.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
996
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-j48k8j8y.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
997
997
  });
998
998
  var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
999
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-s00cj5sw.js")), (module) => module.updateHerdrCore(options))
999
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-j48k8j8y.js")), (module) => module.updateHerdrCore(options))
1000
1000
  });
1001
1001
  var herdrCoreMissing = (error) => {
1002
1002
  if (isTagged(error, "HerdrCoreMissing"))
@@ -1422,7 +1422,7 @@ var syncTargets = (harness) => gen(function* () {
1422
1422
  });
1423
1423
  var syncKits = (input) => gen(function* () {
1424
1424
  const fs = yield* FileSystem;
1425
- const { syncKitSetup } = yield* promise(() => import("./chunk-bkecckjn.js"));
1425
+ const { syncKitSetup } = yield* promise(() => import("./chunk-fcb6skhx.js"));
1426
1426
  const harnesses = yield* syncTargets(input.harness);
1427
1427
  const chain = yield* input.client.getKitChain(input.workspaceId);
1428
1428
  for (const { name, problem } of chain.skipped)
@@ -1939,7 +1939,7 @@ var ServiceManager = Reference("kitman/cli/ServiceManager", {
1939
1939
  run: (command, args) => runCommand2(command, args),
1940
1940
  attach: (command, args) => gen(function* () {
1941
1941
  const spawner = yield* ChildProcessSpawner;
1942
- const handle = yield* spawner.spawn(make2(command, args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" }));
1942
+ const handle = yield* spawner.spawn(make3(command, args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" }));
1943
1943
  const exitCode = yield* handle.exitCode;
1944
1944
  if (exitCode !== 0)
1945
1945
  return yield* new CommandFailed2({ command, reason: `exit code ${exitCode}` });
@@ -2341,7 +2341,7 @@ var package_default = {
2341
2341
  };
2342
2342
 
2343
2343
  // apps/cli/src/scaffold.ts
2344
- var cliVersion = "0.13.10";
2344
+ var cliVersion = "0.13.11";
2345
2345
  var packageJson = (name, scaffold) => `${JSON.stringify({
2346
2346
  name,
2347
2347
  private: true,
@@ -2493,7 +2493,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
2493
2493
 
2494
2494
  // apps/cli/src/commands.ts
2495
2495
  var ClientId = "kitman-cli";
2496
- var agentRuntime = promise(() => import("./chunk-r5v7df8h.js"));
2496
+ var agentRuntime = promise(() => import("./chunk-mx3zt8v8.js"));
2497
2497
  var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
2498
2498
  defaultValue: () => gen(function* () {
2499
2499
  const tui = yield* tryPromise({
@@ -3529,7 +3529,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
3529
3529
  });
3530
3530
  var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
3531
3531
  defaultValue: () => (options) => gen(function* () {
3532
- const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-kj1zjrs9.js"));
3532
+ const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-3rkhx6gq.js"));
3533
3533
  return yield* makeRunnerRpcClient({
3534
3534
  runnerId: options.runnerId,
3535
3535
  bearer: options.bearer,
@@ -3834,7 +3834,7 @@ function startCanonicalHerdrRunnerCommand(input) {
3834
3834
  const checkouts = runCheckouts(path.join(runnerRootDir, ".kitman"), rpc.gitCredential);
3835
3835
  yield* controlPlane.client.listRepoBindings(runner.workspaceId).pipe(flatMap3(({ items }) => forEach(items.filter((binding) => binding.status === "active" && (teamId === undefined || binding.teamId === teamId)), (repoBinding) => map8(checkouts.reaches(repoBinding), (reachable) => ({ repoBinding, reachable })), { concurrency: 4 })), tap2((probed) => sync2(() => reached = probed)), catch_((error) => logWarning("runner_repository_probe_failed", error.message)), flatMap3(() => sleep(reached.some((probe) => !probe.reachable) ? repositoryRetryInterval : repositoryProbeInterval)), forever, forkScoped);
3836
3836
  const platform = yield* context();
3837
- const updated = yield* make15();
3837
+ const updated = yield* make16();
3838
3838
  const scope = yield* scope2;
3839
3839
  const startUpdate = (update) => update.pipe(catch_((error) => andThen2(restartOntoUpdate(input.runnerId), fail5(updated, error))), provideContext2(platform), forkIn(scope), asVoid);
3840
3840
  const refusedForProtocol = container ? updater.stopWhenDrained(new RunnerStopped({ problem: updateRequired })).pipe(catch_((stopped) => fail5(updated, stopped)), forkIn(scope), asVoid) : startUpdate(updater.updateRequired);
@@ -4086,7 +4086,7 @@ function mcpCommand(args) {
4086
4086
  if (command.action === "run") {
4087
4087
  if (command.args.length > 0)
4088
4088
  return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
4089
- const { runMcpServerCommand } = yield* promise(() => import("./chunk-jkddgvev.js"));
4089
+ const { runMcpServerCommand } = yield* promise(() => import("./chunk-acneym1p.js"));
4090
4090
  return yield* runMcpServerCommand({ flags: command.flags });
4091
4091
  }
4092
4092
  if (command.action !== "setup")
@@ -4574,7 +4574,7 @@ function programLoopCommand(command) {
4574
4574
  return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
4575
4575
  });
4576
4576
  }
4577
- var docsModule = promise(() => import("./chunk-j34gensq.js"));
4577
+ var docsModule = promise(() => import("./chunk-7rpd6a98.js"));
4578
4578
  function docsCommand(args) {
4579
4579
  return gen(function* () {
4580
4580
  const command = parseCommand(args);
@@ -5408,9 +5408,9 @@ function changeRequestCommand(args) {
5408
5408
  yield* log(command.action === "approve" ? `Approved ${short} of ${changeRequest.title}. A Run waiting on approval of ${short} resumes; one waiting on another head does not.` : `Requested changes to ${short} of ${changeRequest.title}`);
5409
5409
  });
5410
5410
  }
5411
- var KitWriter = map8(promise(() => import("./chunk-813vn8sn.js")), (build) => build.writeKit);
5411
+ var KitWriter = map8(promise(() => import("./chunk-jyq4790r.js")), (build) => build.writeKit);
5412
5412
  var KitBuilder = Reference("kitman/cli/KitBuilder", {
5413
- defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-813vn8sn.js")), (build) => build.buildKit(directory))
5413
+ defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-jyq4790r.js")), (build) => build.buildKit(directory))
5414
5414
  });
5415
5415
  var uploadKit = (client, workspaceId, built) => gen(function* () {
5416
5416
  yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
@@ -6187,7 +6187,7 @@ function downloadPresignedAsset(download, outputPath) {
6187
6187
  return gen(function* () {
6188
6188
  const fs = yield* FileSystem;
6189
6189
  const failed = (cause) => new CliError({ message: `Asset download failed: ${String(cause)}` });
6190
- const response = yield* send(make4(download.method)(download.url), failed);
6190
+ const response = yield* send(make5(download.method)(download.url), failed);
6191
6191
  if (response.status < 200 || response.status >= 300)
6192
6192
  return yield* new CliError({ message: `Asset download failed with ${response.status}` });
6193
6193
  const body = yield* response.arrayBuffer.pipe(mapError2((error) => failed(error.message)));
@@ -75,14 +75,10 @@ import {
75
75
  toEquivalence,
76
76
  toCodecJson,
77
77
  Json
78
- } from "./chunk-zgraq2y3.js";
79
- import {
80
- runForEach,
81
- FileSystem
82
- } from "./chunk-t82w7459.js";
78
+ } from "./chunk-zw3gf6r5.js";
83
79
  import {
84
80
  guard
85
- } from "./chunk-pxvd8w2v.js";
81
+ } from "./chunk-q5w3v4k1.js";
86
82
  import {
87
83
  currentTimeMillis,
88
84
  WebCrypto,
@@ -109,7 +105,11 @@ import {
109
105
  KitDigest,
110
106
  KitSetup,
111
107
  RunnerRpcError
112
- } from "./chunk-rz01craf.js";
108
+ } from "./chunk-dtkejy3r.js";
109
+ import {
110
+ runForEach,
111
+ FileSystem
112
+ } from "./chunk-0h49y8gf.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");
@@ -13,11 +13,11 @@ import {
13
13
  ArraySchema,
14
14
  decodeJsonStringOption,
15
15
  encodeUnknownJsonStringSync
16
- } from "./chunk-zgraq2y3.js";
16
+ } from "./chunk-zw3gf6r5.js";
17
17
  import {
18
18
  replaceSecretReferences,
19
19
  secretReferencesIn
20
- } from "./chunk-pxvd8w2v.js";
20
+ } from "./chunk-q5w3v4k1.js";
21
21
 
22
22
  // packages/agent-runtime/src/srt-step.ts
23
23
  import { SandboxRuntimeConfigSchema } from "@anthropic-ai/sandbox-runtime";
@@ -1331,11 +1331,11 @@ var Prototype = (options) => makePrimitiveProto({
1331
1331
  });
1332
1332
 
1333
1333
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Equivalence.js
1334
- var make13 = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
1334
+ var make14 = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
1335
1335
  var isStrictEquivalent = (x, y) => x === y;
1336
1336
  var strictEqual = () => isStrictEquivalent;
1337
1337
  function Tuple(elements) {
1338
- return make13((self, that) => {
1338
+ return make14((self, that) => {
1339
1339
  if (self.length !== that.length) {
1340
1340
  return false;
1341
1341
  }
@@ -1348,7 +1348,7 @@ function Tuple(elements) {
1348
1348
  });
1349
1349
  }
1350
1350
  function Array_(item) {
1351
- return make13((self, that) => {
1351
+ return make14((self, that) => {
1352
1352
  if (self.length !== that.length)
1353
1353
  return false;
1354
1354
  for (let i = 0;i < self.length; i++) {
@@ -1579,7 +1579,7 @@ var ServiceProto = {
1579
1579
  return self;
1580
1580
  },
1581
1581
  context(self) {
1582
- return make14(this, self);
1582
+ return make15(this, self);
1583
1583
  },
1584
1584
  use(f) {
1585
1585
  return withFiber((fiber) => f(get4(fiber.context, this)));
@@ -1683,7 +1683,7 @@ var isContext = (u) => hasProperty(u, TypeId3);
1683
1683
  var isReference = (u) => !!u[ReferenceTypeId];
1684
1684
  var empty3 = () => emptyContext2;
1685
1685
  var emptyContext2 = /* @__PURE__ */ makeUnsafe4(/* @__PURE__ */ new Map);
1686
- var make14 = (key, service) => makeUnsafe4(new Map([[key.key, service]]));
1686
+ var make15 = (key, service) => makeUnsafe4(new Map([[key.key, service]]));
1687
1687
  var add = /* @__PURE__ */ dual(3, (self, key, service) => addUnsafe(self, key.key, service));
1688
1688
  var addUnsafe = (self, key, service) => {
1689
1689
  const impl = self;
@@ -3029,7 +3029,7 @@ class FiberImpl {
3029
3029
  }
3030
3030
  let cause = causeInterrupt(fiberId);
3031
3031
  if (this.cache.stackFrame) {
3032
- cause = causeAnnotate(cause, make14(StackTraceKey, this.cache.stackFrame));
3032
+ cause = causeAnnotate(cause, make15(StackTraceKey, this.cache.stackFrame));
3033
3033
  }
3034
3034
  if (annotations) {
3035
3035
  cause = causeAnnotate(cause, annotations);
@@ -5126,7 +5126,7 @@ var DeferredImpl = function() {
5126
5126
  };
5127
5127
  DeferredImpl.prototype = DeferredProto;
5128
5128
  var makeUnsafe5 = () => new DeferredImpl;
5129
- var make15 = () => sync(() => makeUnsafe5());
5129
+ var make16 = () => sync(() => makeUnsafe5());
5130
5130
  var _await = (self) => callback2((resume) => {
5131
5131
  if (self.effect)
5132
5132
  return resume(self.effect);
@@ -5274,9 +5274,9 @@ var build = (self) => withFiber((fiber) => buildWithMemoMap(self, CurrentMemoMap
5274
5274
  var buildWithScope = /* @__PURE__ */ dual(2, (self, scope) => withFiber((fiber) => buildWithMemoMap(self, CurrentMemoMap.forkOrCreate(fiber.context), scope)));
5275
5275
  var succeed5 = function() {
5276
5276
  if (arguments.length === 1) {
5277
- return (resource) => succeedContext(make14(arguments[0], resource));
5277
+ return (resource) => succeedContext(make15(arguments[0], resource));
5278
5278
  }
5279
- return succeedContext(make14(arguments[0], arguments[1]));
5279
+ return succeedContext(make15(arguments[0], arguments[1]));
5280
5280
  };
5281
5281
  var succeedContext = (context) => fromBuildUnsafe(constant(succeed2(context)));
5282
5282
  var effect = function() {
@@ -5285,7 +5285,7 @@ var effect = function() {
5285
5285
  }
5286
5286
  return effectImpl(arguments[0], arguments[1]);
5287
5287
  };
5288
- var effectImpl = (service, effect) => effectContext(map7(effect, (value) => make14(service, value)));
5288
+ var effectImpl = (service, effect) => effectContext(map7(effect, (value) => make15(service, value)));
5289
5289
  var effectContext = (effect) => fromBuildMemo((_, scope) => provide(effect, scope));
5290
5290
  var effectDiscard = (effect) => effectContext(as2(effect, empty3()));
5291
5291
  var mergeAllEffect = (layers, memoMap, scope) => {
@@ -5865,48 +5865,6 @@ var getCode = (charCode) => {
5865
5865
  return codes[charCode];
5866
5866
  };
5867
5867
 
5868
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/redacted.js
5869
- var redactedRegistry = /* @__PURE__ */ new WeakMap;
5870
- var value2 = (self) => {
5871
- if (redactedRegistry.has(self)) {
5872
- return redactedRegistry.get(self);
5873
- } else {
5874
- throw new Error("Unable to get redacted value" + (self.label ? ` with label: "${self.label}"` : ""));
5875
- }
5876
- };
5877
-
5878
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Redacted.js
5879
- var TypeId8 = "~effect/Redacted";
5880
- var isRedacted = (u) => hasProperty(u, TypeId8);
5881
- var make16 = (value, options) => {
5882
- const self = Object.create(Proto2);
5883
- if (options?.label) {
5884
- self.label = options.label;
5885
- }
5886
- redactedRegistry.set(self, value);
5887
- return self;
5888
- };
5889
- var Proto2 = {
5890
- [TypeId8]: {
5891
- _A: (_) => _
5892
- },
5893
- label: undefined,
5894
- ...PipeInspectableProto,
5895
- toJSON() {
5896
- return this.toString();
5897
- },
5898
- toString() {
5899
- return `<redacted${isString(this.label) ? ":" + this.label : ""}>`;
5900
- },
5901
- [symbol]() {
5902
- return hash(redactedRegistry.get(this));
5903
- },
5904
- [symbol2](that) {
5905
- return isRedacted(that) && equals(redactedRegistry.get(this), redactedRegistry.get(that));
5906
- }
5907
- };
5908
- var value = value2;
5909
-
5910
5868
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/schema/annotations.js
5911
5869
  function resolve(ast) {
5912
5870
  return ast.checks ? ast.checks[ast.checks.length - 1].annotations : ast.annotations;
@@ -5930,16 +5888,16 @@ var toOption2 = (value) => value === missing ? none() : some(value);
5930
5888
  var fromOptionExit = (option) => option._tag === "None" ? missingExit : succeed8(option.value);
5931
5889
 
5932
5890
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/SchemaIssue.js
5933
- var TypeId9 = "~effect/SchemaIssue/Issue";
5891
+ var TypeId8 = "~effect/SchemaIssue/Issue";
5934
5892
  function isIssue(u) {
5935
- return hasProperty(u, TypeId9) && u[TypeId9] === TypeId9;
5893
+ return hasProperty(u, TypeId8) && u[TypeId8] === TypeId8;
5936
5894
  }
5937
5895
  function hasInput(issue) {
5938
5896
  return Object.hasOwn(issue, "input");
5939
5897
  }
5940
5898
 
5941
5899
  class IssueNodeImpl {
5942
- [TypeId9] = TypeId9;
5900
+ [TypeId8] = TypeId8;
5943
5901
  constructor(input, options) {
5944
5902
  if (options?.reportInput === true && input !== missing) {
5945
5903
  this.input = input;
@@ -6313,9 +6271,9 @@ function setContent(operation, content) {
6313
6271
  }
6314
6272
 
6315
6273
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/SchemaTransformation.js
6316
- var TypeId10 = "~effect/SchemaTransformation/Transformation";
6274
+ var TypeId9 = "~effect/SchemaTransformation/Transformation";
6317
6275
  var Transformation = class extends Class3 {
6318
- [TypeId10] = TypeId10;
6276
+ [TypeId9] = TypeId9;
6319
6277
  _tag = "Transformation";
6320
6278
  decode;
6321
6279
  encode;
@@ -6329,7 +6287,7 @@ var Transformation = class extends Class3 {
6329
6287
  }
6330
6288
  };
6331
6289
  function isTransformation(u) {
6332
- return hasProperty(u, TypeId10) && u[TypeId10] === TypeId10;
6290
+ return hasProperty(u, TypeId9) && u[TypeId9] === TypeId9;
6333
6291
  }
6334
6292
  var makeTransformation = (options) => {
6335
6293
  if (isTransformation(options)) {
@@ -6449,10 +6407,10 @@ var Context = class {
6449
6407
  this.annotations = annotations;
6450
6408
  }
6451
6409
  };
6452
- var TypeId11 = "~effect/Schema";
6410
+ var TypeId10 = "~effect/Schema";
6453
6411
 
6454
6412
  class ASTNodeImpl {
6455
- [TypeId11] = TypeId11;
6413
+ [TypeId10] = TypeId10;
6456
6414
  annotations;
6457
6415
  checks;
6458
6416
  encoding;
@@ -8667,10 +8625,10 @@ var normalCompiler = (ast) => resolve2(ast).parser;
8667
8625
  var constructorCompiler = (ast) => resolve2(ast).makeEffect;
8668
8626
 
8669
8627
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/schema/make.js
8670
- var TypeId12 = "~effect/Schema/Schema";
8628
+ var TypeId11 = "~effect/Schema/Schema";
8671
8629
  var RebuildOptions = /* @__PURE__ */ Symbol();
8672
8630
  var SchemaProto = {
8673
- [TypeId12]: TypeId12,
8631
+ [TypeId11]: TypeId11,
8674
8632
  get make() {
8675
8633
  const value = make4(this);
8676
8634
  Object.defineProperty(this, "make", {
@@ -8931,7 +8889,7 @@ function recur(ast) {
8931
8889
  const rest = ast.rest.map(recur);
8932
8890
  const [head, ...tail] = rest;
8933
8891
  const tailLength = tail.length;
8934
- return make13((a, b) => {
8892
+ return make14((a, b) => {
8935
8893
  if (!Array.isArray(a) || !Array.isArray(b)) {
8936
8894
  return false;
8937
8895
  }
@@ -8966,7 +8924,7 @@ function recur(ast) {
8966
8924
  }
8967
8925
  const propertySignatures = ast.propertySignatures.map((ps) => recur(ps.type));
8968
8926
  const indexSignatures = ast.indexSignatures.map((is) => recur(is.type));
8969
- return make13((a, b) => {
8927
+ return make14((a, b) => {
8970
8928
  if (!isObject(a) || !isObject(b)) {
8971
8929
  return false;
8972
8930
  }
@@ -9004,7 +8962,7 @@ function recur(ast) {
9004
8962
  const types = toType2(ast).types;
9005
8963
  const index = getCandidateIndex(types);
9006
8964
  const compiled = types.map((candidate, i) => [_is(candidate), recur(ast.types[i])]);
9007
- return make13((a, b) => {
8965
+ return make14((a, b) => {
9008
8966
  const candidates = index(a, false);
9009
8967
  for (let i = 0;i < candidates.length; i++) {
9010
8968
  const [is, equivalence] = compiled[candidates[i]];
@@ -9017,7 +8975,7 @@ function recur(ast) {
9017
8975
  }
9018
8976
  case "Suspend": {
9019
8977
  let equivalence;
9020
- return make13((a, b) => (equivalence ??= toEquivalence2(ast.thunk()))(a, b));
8978
+ return make14((a, b) => (equivalence ??= toEquivalence2(ast.thunk()))(a, b));
9021
8979
  }
9022
8980
  }
9023
8981
  }
@@ -9115,7 +9073,7 @@ function isSchemaError(u) {
9115
9073
  }
9116
9074
 
9117
9075
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Schema.js
9118
- var TypeId13 = TypeId12;
9076
+ var TypeId12 = TypeId11;
9119
9077
  function declareConstructor() {
9120
9078
  return (typeParameters, run, annotations) => {
9121
9079
  return make17(new Declaration(typeParameters.map(getAST), (typeParameters) => run(typeParameters.map((ast) => make17(ast))), annotations));
@@ -9228,7 +9186,7 @@ function encodeUnknownSync(schema, options) {
9228
9186
  var encodeSync = encodeUnknownSync;
9229
9187
  var make17 = make5;
9230
9188
  function isSchema(u) {
9231
- return hasProperty(u, TypeId13) && u[TypeId13] === TypeId13;
9189
+ return hasProperty(u, TypeId12) && u[TypeId12] === TypeId12;
9232
9190
  }
9233
9191
  var optionalKey = /* @__PURE__ */ lambda((schema) => make17(optionalKey2(schema.ast), {
9234
9192
  schema
@@ -10059,7 +10017,7 @@ function makeClass(Inherited, identifier, struct2, annotations, proto) {
10059
10017
  }
10060
10018
  });
10061
10019
  }
10062
- static [TypeId13] = TypeId13;
10020
+ static [TypeId12] = TypeId12;
10063
10021
  get [ClassTypeId]() {
10064
10022
  return ClassTypeId;
10065
10023
  }
@@ -10338,4 +10296,4 @@ var encodeUnknownJsonStringSync = encodeSync(fromJsonString(Unknown));
10338
10296
  var storableText = (text) => text.replaceAll("\x00", "").replaceAll(/\p{Cs}/gu, "");
10339
10297
  var storable = (value) => isString2(value) ? storableText(value) : Array.isArray(value) ? value.map(storable) : isJsonObject(value) ? Object.fromEntries(Object.entries(value).map(([key, field]) => [storableText(key), storable(field)])) : value;
10340
10298
 
10341
- export { pipeArguments, dual, identity, constant, constTrue, constFalse, constVoid, pipe, flow, memoize, isString, isNumber, isBoolean, isFunction, isUndefined, isNotUndefined, isNotNull, isNullish, isObject, hasProperty, isTagged, isUint8Array, symbol, hash, combine, number, string, structure, array, symbol2, equals, asEquivalence, symbolRedactable, redact, currentFiberTypeId, format, NodeInspectSymbol, toJson, BaseProto, Class, getStackTraceLimit, setStackTraceLimit, assignProperty, args, evaluate, PipeInspectableProto, isExit, causeFail, makePrimitive, exitSucceed, exitFailCause, exitFail, withFiber, Done, Prototype, make13, strictEqual, Tuple, String3, Number2, mapInput, none, some, isNone, isSome, match, getOrElse, orElse, fromNullishOr, fromUndefinedOr, getOrUndefined, liftThrowable, map4, flatMap, toArray, filter2, exists, Service2, makeUnsafe4, empty3, make14, add, getOrUndefined2, getOrUndefinedUnsafe, getUnsafe, get4, merge3, Reference, fromInputUnsafe, isFinite, zero, infinity, millis, seconds, minutes, toMillis, toMinutes, min, max, subtract, format2, normalize, succeed, fail3, try_, isResult, isFailure, isSuccess, map5, getOrElse2, getOrThrow, all2, allocate, fromIterable, isArrayNonEmpty, isReadonlyArrayNonEmpty, isCanonicalArrayIndex, getUnsafe2, sort, of, map6, makeEquivalence2, TaggedClass, Error2, TaggedError, encode, DisablePropagation, getCurrentFiber, fiberJoin, fiberInterrupt, succeed2, sync, suspend2, succeedNone, void_, callback2, asSome, andThen, flatMap2, map7, exitInterrupt, exitVoid, exitZipRight, scopeAddFinalizer, scope, onExitPrimitive, onExitUnsafe, uninterruptibleMask, fiberRunIn, makeLatchUnsafe, makeLatch, ClockRef, currentTimeMillis2, ConsoleRef, succeed3, failCause2, fail4, die, interrupt2, void_2, isSuccess2, isFailure2, hasInterrupts, asVoidAll, makeUnsafe5, make15, _await, fail5, interruptWith, isDone, isDoneUnsafe, succeed4, doneUnsafe, TracerTimingEnabled, Scope, makeUnsafe6, provide, addFinalizerExit, addFinalizer, forkUnsafe, close, build, buildWithScope, succeed5, effect, effectContext, effectDiscard, mergeAll, provide2, provideMerge, isCause, isFailReason, isDieReason, fromReasons, fail6, die2, makeFailReason, makeDieReason, hasInterruptsOnly, squash, findError, findErrorOption, hasInterrupts2, interruptors, pretty, isDone2, Done2, done, IllegalArgumentError, UnknownError, reasonAnnotations, Random, catchDone, isDoneCause, filterDone, doneExitFromCause, matchEffect, max2, during, min2, exponential, jittered, spaced, isEffect, all3, findFirst, forEach, whileLoop, promise, tryPromise, succeed6, suspend3, sync2, void_3, undefined_, callback3, never, gen, fail7, failSync, failCause3, die3, try_2, yieldNow, withFiber2, fromResult, fromNullishOr2, flatMap3, flatten, andThen2, tap2, result, option2, exit, map8, as, asSome2, asVoid, zipWith, catch_, catchTag, catchTags, catchReason, catchCause2, catchDefect, catchIf, catchCauseIf, mapError2, orDie, tapError2, tapCause, retry, retryOrElse, ignore, ignoreCause, orElseSucceed, timeout, timeoutOption, timeoutOrElse, delay, sleep, raceAllFirst, raceFirst, filter3, filterOrFail, when, matchCauseEffect, matchEffect2, context, contextWith, provide3, provideContext2, service, serviceOption, updateContext, updateService, provideService, scope2, scoped, scopedWith, acquireRelease, acquireUseRelease, addFinalizer2, ensuring2, onError, onExitPrimitive2, onExit, cached, interrupt3, interruptible, onInterrupt, uninterruptible, uninterruptibleMask2, forever, repeat, annotateCurrentSpan, makeSpanScoped, useSpan, withSpan, withParentSpan, forkChild, forkIn, forkScoped, forkDetach, runFork, runForkWith, runPromise, runPromiseWith, runSync, runSyncExitWith, fnUntraced, fn, clockWith, logWarning, logError, logInfo, annotateLogs, effectify, mapEager, flatMapEager, catchEager, encode2, decode, isRedacted, make16, value, Pointer, makeFormatterStandardSchemaV1, passthrough, transformEffect, Transformation, transform, defaultParseOptions, unknown, getIndexSignatureKeys, applyToSelfOrLastLinkEncoding, decodeTo, toEncoded, decodeUnknownEffect, omit, map9, declare, SchemaError, is, decodeUnknownEffect2, decodeEffect, decodeUnknownExit, decodeUnknownOption, decodeOption, decodeSync, encodeEffect, make17, isSchema, optionalKey, optional, toType, Literal, Never, Unknown, Null, String4, Boolean2, Void, Struct, Record, StructWithRest, ArraySchema, NonEmptyArray, Union, Literals, NullOr, UndefinedOr, suspend4, decodeTo2, withDecodingDefaultKey, tag, TaggedStruct, makeFilter, isPattern, Finite, isGreaterThan, isGreaterThanOrEqualTo, isLessThanOrEqualTo, Int, isMinLength, isMaxLength, isMinProperties, isMaxProperties, isUnique, NonEmptyString, Defect, Date2, fromJsonString, FiniteFromString, Cause, Exit, Class2, Error3, TaggedError2, toEquivalence, toCodecJson, toCodecStringTree, Json, JsonObject, toJsonValue, isOneOf, isKeyOf, toJsonObject, isBigInt, isBoolean2, isFunction2, isNumber2, isObject2, isJsonObject, isString2, isSymbol, isUndefined2, kindOf, decodeJsonString, decodeJsonStringOption, encodeJsonStringSync, encodePrettyJsonString, decodeJsonStringSync, encodeUnknownJsonStringSync, storable };
10299
+ export { pipeArguments, dual, identity, constant, constTrue, constFalse, constVoid, pipe, flow, memoize, isString, isNumber, isBoolean, isFunction, isUndefined, isNotUndefined, isNotNull, isNullish, isObject, hasProperty, isTagged, isUint8Array, symbol, hash, combine, number, string, structure, array, symbol2, equals, asEquivalence, symbolRedactable, redact, currentFiberTypeId, format, NodeInspectSymbol, toJson, BaseProto, Class, getStackTraceLimit, setStackTraceLimit, assignProperty, args, evaluate, PipeInspectableProto, isExit, causeFail, makePrimitive, exitSucceed, exitFailCause, exitFail, withFiber, Done, Prototype, make14, strictEqual, Tuple, String3, Number2, mapInput, none, some, isNone, isSome, match, getOrElse, orElse, fromNullishOr, fromUndefinedOr, getOrUndefined, liftThrowable, map4, flatMap, toArray, filter2, exists, Service2, makeUnsafe4, empty3, make15, add, getOrUndefined2, getOrUndefinedUnsafe, getUnsafe, get4, merge3, Reference, fromInputUnsafe, isFinite, zero, infinity, millis, seconds, minutes, toMillis, toMinutes, min, max, subtract, format2, normalize, succeed, fail3, try_, isResult, isFailure, isSuccess, map5, getOrElse2, getOrThrow, all2, allocate, fromIterable, isArrayNonEmpty, isReadonlyArrayNonEmpty, isCanonicalArrayIndex, getUnsafe2, sort, of, map6, makeEquivalence2, TaggedClass, Error2, TaggedError, encode, DisablePropagation, getCurrentFiber, fiberJoin, fiberInterrupt, succeed2, sync, suspend2, succeedNone, void_, callback2, asSome, andThen, flatMap2, map7, exitInterrupt, exitVoid, exitZipRight, scopeAddFinalizer, scope, onExitPrimitive, onExitUnsafe, uninterruptibleMask, fiberRunIn, makeLatchUnsafe, makeLatch, ClockRef, currentTimeMillis2, ConsoleRef, succeed3, failCause2, fail4, die, interrupt2, void_2, isSuccess2, isFailure2, hasInterrupts, asVoidAll, makeUnsafe5, make16, _await, fail5, interruptWith, isDone, isDoneUnsafe, succeed4, doneUnsafe, TracerTimingEnabled, Scope, makeUnsafe6, provide, addFinalizerExit, addFinalizer, forkUnsafe, close, build, buildWithScope, succeed5, effect, effectContext, effectDiscard, mergeAll, provide2, provideMerge, isCause, isFailReason, isDieReason, fromReasons, fail6, die2, makeFailReason, makeDieReason, hasInterruptsOnly, squash, findError, findErrorOption, hasInterrupts2, interruptors, pretty, isDone2, Done2, done, IllegalArgumentError, UnknownError, reasonAnnotations, Random, catchDone, isDoneCause, filterDone, doneExitFromCause, matchEffect, max2, during, min2, exponential, jittered, spaced, isEffect, all3, findFirst, forEach, whileLoop, promise, tryPromise, succeed6, suspend3, sync2, void_3, undefined_, callback3, never, gen, fail7, failSync, failCause3, die3, try_2, yieldNow, withFiber2, fromResult, fromNullishOr2, flatMap3, flatten, andThen2, tap2, result, option2, exit, map8, as, asSome2, asVoid, zipWith, catch_, catchTag, catchTags, catchReason, catchCause2, catchDefect, catchIf, catchCauseIf, mapError2, orDie, tapError2, tapCause, retry, retryOrElse, ignore, ignoreCause, orElseSucceed, timeout, timeoutOption, timeoutOrElse, delay, sleep, raceAllFirst, raceFirst, filter3, filterOrFail, when, matchCauseEffect, matchEffect2, context, contextWith, provide3, provideContext2, service, serviceOption, updateContext, updateService, provideService, scope2, scoped, scopedWith, acquireRelease, acquireUseRelease, addFinalizer2, ensuring2, onError, onExitPrimitive2, onExit, cached, interrupt3, interruptible, onInterrupt, uninterruptible, uninterruptibleMask2, forever, repeat, annotateCurrentSpan, makeSpanScoped, useSpan, withSpan, withParentSpan, forkChild, forkIn, forkScoped, forkDetach, runFork, runForkWith, runPromise, runPromiseWith, runSync, runSyncExitWith, fnUntraced, fn, clockWith, logWarning, logError, logInfo, annotateLogs, effectify, mapEager, flatMapEager, catchEager, encode2, decode, Pointer, makeFormatterStandardSchemaV1, passthrough, transformEffect, Transformation, transform, defaultParseOptions, unknown, getIndexSignatureKeys, applyToSelfOrLastLinkEncoding, decodeTo, toEncoded, decodeUnknownEffect, omit, map9, declare, SchemaError, is, decodeUnknownEffect2, decodeEffect, decodeUnknownExit, decodeUnknownOption, decodeOption, decodeSync, encodeEffect, make17, isSchema, optionalKey, optional, toType, Literal, Never, Unknown, Null, String4, Boolean2, Void, Struct, Record, StructWithRest, ArraySchema, NonEmptyArray, Union, Literals, NullOr, UndefinedOr, suspend4, decodeTo2, withDecodingDefaultKey, tag, TaggedStruct, makeFilter, isPattern, Finite, isGreaterThan, isGreaterThanOrEqualTo, isLessThanOrEqualTo, Int, isMinLength, isMaxLength, isMinProperties, isMaxProperties, isUnique, NonEmptyString, Defect, Date2, fromJsonString, FiniteFromString, Cause, Exit, Class2, Error3, TaggedError2, toEquivalence, toCodecJson, toCodecStringTree, Json, JsonObject, toJsonValue, isOneOf, isKeyOf, toJsonObject, isBigInt, isBoolean2, isFunction2, isNumber2, isObject2, isJsonObject, isString2, isSymbol, isUndefined2, kindOf, decodeJsonString, decodeJsonStringOption, encodeJsonStringSync, encodePrettyJsonString, decodeJsonStringSync, encodeUnknownJsonStringSync, storable };
package/dist/index.js CHANGED
@@ -5,15 +5,15 @@
5
5
  var args = process.argv.slice(2);
6
6
  if (args[0] === "srt") {
7
7
  process.argv.splice(2, 1);
8
- const { runSrtCli } = await import("./chunk-4crf5vhd.js");
8
+ const { runSrtCli } = await import("./chunk-5zth85pj.js");
9
9
  await runSrtCli();
10
10
  } else if (args[0] === "srt-step") {
11
- const { runSrtStep } = await import("./chunk-mmd7mjv0.js");
11
+ const { runSrtStep } = await import("./chunk-gy9rf14f.js");
12
12
  await runSrtStep(args.slice(1));
13
13
  } else if (args[0] === "opencode-read") {
14
- const { runOpencodeReader } = await import("./chunk-kk32jckf.js");
14
+ const { runOpencodeReader } = await import("./chunk-5zhh41gb.js");
15
15
  runOpencodeReader();
16
16
  } else {
17
- const { runCli } = await import("./chunk-c60xk73g.js");
17
+ const { runCli } = await import("./chunk-rh9g6sef.js");
18
18
  runCli(args);
19
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitman-sh/cli",
3
- "version": "0.13.10",
3
+ "version": "0.13.11",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "bin": {