@kitman-sh/cli 0.24.0 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2211,7 +2211,7 @@ var pathOfLink = (link) => {
2211
2211
  return page === null ? link : page[1] || "index";
2212
2212
  };
2213
2213
  var UnpinnedSdkLink = "https://cdn.jsdelivr.net/npm/@kitman-sh/sdk/";
2214
- var pinnedLink2 = (link, version = "0.24.0") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
2214
+ var pinnedLink2 = (link, version = "0.26.0") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
2215
2215
  var pageOf = (path) => path.split("#")[0];
2216
2216
  var exportName = (section) => section.path.startsWith("sdk/") ? section.path.split("#")[1] ?? "" : "";
2217
2217
  function excerpt(text, queryTerms) {
@@ -39,7 +39,7 @@ import {
39
39
  get2,
40
40
  layer4,
41
41
  KitDigest
42
- } from "./chunk-j35nm5gm.js";
42
+ } from "./chunk-xppw33hz.js";
43
43
 
44
44
  // packages/core/src/npm-registry.ts
45
45
  var KitManifest = Struct({
@@ -12,7 +12,7 @@ import {
12
12
  herdrCoreLayer2,
13
13
  herdrCoreTransportLayer2,
14
14
  updateHerdrCore2
15
- } from "./chunk-j35nm5gm.js";
15
+ } from "./chunk-xppw33hz.js";
16
16
  import"./chunk-j4b1yvcd.js";
17
17
  import"./chunk-h2f26xbd.js";
18
18
  export {
@@ -4,7 +4,7 @@ import {
4
4
  searchDocs2,
5
5
  readDoc2,
6
6
  pinnedLink2
7
- } from "./chunk-s1xwbden.js";
7
+ } from "./chunk-007n8acn.js";
8
8
  export {
9
9
  DefaultDocsSearchLimit2 as DefaultDocsSearchLimit,
10
10
  pinnedLink2 as pinnedLink,
@@ -170,13 +170,7 @@ import {
170
170
  runMcpEffect,
171
171
  createAgentAuthSignedFetch,
172
172
  setupMcpAgentCredential
173
- } from "./chunk-j35nm5gm.js";
174
- import {
175
- guard,
176
- Id,
177
- Timestamp,
178
- ActorType
179
- } from "./chunk-4qjfn1sa.js";
173
+ } from "./chunk-xppw33hz.js";
180
174
  import {
181
175
  join,
182
176
  interrupt,
@@ -197,7 +191,7 @@ import {
197
191
  import {
198
192
  searchDocs2,
199
193
  readDoc2
200
- } from "./chunk-s1xwbden.js";
194
+ } from "./chunk-007n8acn.js";
201
195
  import {
202
196
  nextInt
203
197
  } from "./chunk-5kqt4bqp.js";
@@ -210,7 +204,13 @@ import {
210
204
  withHeaders,
211
205
  layerProtocolSocket,
212
206
  ConnectionHooks
213
- } from "./chunk-nhseg19m.js";
207
+ } from "./chunk-vv7zg8rb.js";
208
+ import {
209
+ guard,
210
+ Id,
211
+ Timestamp,
212
+ ActorType
213
+ } from "./chunk-4qjfn1sa.js";
214
214
 
215
215
  // apps/cli/src/mcp.ts
216
216
  import { tmpdir as tmpdir2 } from "os";
@@ -173,11 +173,6 @@ import {
173
173
  encodeUnknownJsonStringSync,
174
174
  storable
175
175
  } from "./chunk-h2f26xbd.js";
176
- import {
177
- Id,
178
- secretReference,
179
- secretPlaceholder
180
- } from "./chunk-4qjfn1sa.js";
181
176
  import {
182
177
  currentTimeMillis,
183
178
  SecureRandom,
@@ -266,7 +261,7 @@ import {
266
261
  checkServicesFile,
267
262
  checkServices,
268
263
  serviceChecks
269
- } from "./chunk-j35nm5gm.js";
264
+ } from "./chunk-xppw33hz.js";
270
265
  import {
271
266
  join,
272
267
  interrupt,
@@ -328,8 +323,8 @@ import {
328
323
  applyAgentEnvironmentMaterialization2,
329
324
  isPathWithin2,
330
325
  skillIdentity2
331
- } from "./chunk-a3wsye48.js";
332
- import"./chunk-j28yqnk0.js";
326
+ } from "./chunk-zysde2fp.js";
327
+ import"./chunk-1vnvmeqr.js";
333
328
  import {
334
329
  egressAllowed,
335
330
  writeSecretRegistry,
@@ -354,8 +349,8 @@ import {
354
349
  rpcRunFiles,
355
350
  programHostsEnv,
356
351
  undeclaredHostsEnv
357
- } from "./chunk-9s82d4g0.js";
358
- import"./chunk-112etn4t.js";
352
+ } from "./chunk-ja48xvcs.js";
353
+ import"./chunk-t6ynnbcb.js";
359
354
  import {
360
355
  nextInt
361
356
  } from "./chunk-5kqt4bqp.js";
@@ -364,7 +359,12 @@ import {
364
359
  ChildProcessSpawner,
365
360
  make3
366
361
  } from "./chunk-bsgvmq34.js";
367
- import"./chunk-nhseg19m.js";
362
+ import"./chunk-vv7zg8rb.js";
363
+ import {
364
+ Id,
365
+ secretReference,
366
+ secretPlaceholder
367
+ } from "./chunk-4qjfn1sa.js";
368
368
 
369
369
  // packages/core/src/sync-kit.ts
370
370
  import { createHash } from "crypto";
@@ -9051,12 +9051,36 @@ var without = (failures, taken) => {
9051
9051
  printed: failures.printed.filter((name) => !printed.has(name))
9052
9052
  };
9053
9053
  };
9054
+ var holds = (suite, id) => {
9055
+ const at = suite.indexOf(" > ");
9056
+ if (at === -1)
9057
+ return false;
9058
+ const file = suite.slice(0, at);
9059
+ const name = suite.slice(at + 3);
9060
+ if (!id.startsWith(`${file} > `))
9061
+ return false;
9062
+ const path = id.slice(file.length + 3);
9063
+ return name === file || path.startsWith(`${name} > `) || path.includes(` > ${name} > `);
9064
+ };
9065
+ var outcomeIn = (statuses, id) => {
9066
+ const own = statuses.get(id);
9067
+ if (own !== undefined)
9068
+ return own;
9069
+ const inside = [...statuses].flatMap(([test, is]) => holds(id, test) ? [is] : []);
9070
+ if (inside.length === 0)
9071
+ return;
9072
+ return inside.includes("failed") ? "failed" : inside.includes("passed") ? "passed" : "skipped";
9073
+ };
9074
+ var failedInSetup = (ran) => {
9075
+ const skipped = withStatus(ran.statuses, "skipped");
9076
+ return withStatus(ran.statuses, "failed").filter((suite) => skipped.some((id) => holds(suite, id)));
9077
+ };
9054
9078
  var passedIn = (ran, failures) => {
9055
9079
  const passed = withStatus(ran.statuses, "passed");
9056
9080
  const unmatched = new Set(printedNotReported(passed, failures.printed));
9057
9081
  const passedUnreported = ran.statuses.size === 0 && ran.evidence.status === "passed";
9058
9082
  return {
9059
- reported: failures.reported.filter((id) => ran.statuses.get(id) === "passed"),
9083
+ reported: failures.reported.filter((id) => outcomeIn(ran.statuses, id) === "passed"),
9060
9084
  printed: failures.printed.filter((name) => passedUnreported || !unmatched.has(name))
9061
9085
  };
9062
9086
  };
@@ -9081,17 +9105,21 @@ var judged = (evidence) => ({
9081
9105
  ...evidence,
9082
9106
  tests: { ...evidence.tests, environmentJudged: true }
9083
9107
  });
9084
- var afterFreshService = (first, again) => {
9108
+ var afterFreshService = (first, again, judging = failuresOf(first)) => {
9085
9109
  const failures = failuresOf(first);
9086
- const cleared = passedIn(again, failures);
9110
+ const cleared = passedIn(again, judging);
9087
9111
  const remaining = without(failures, cleared);
9088
9112
  const newlyFailed = failedOnlyIn(again, failures);
9089
9113
  const passedBefore = passedIn(first, newlyFailed);
9090
9114
  const charged = without(newlyFailed, passedBefore);
9091
9115
  const againPassed = again.evidence.status === "passed";
9116
+ const environmentJudged = hasNone(without(failures, judging));
9092
9117
  const recovered = hasNone(remaining) && hasNone(charged) && (againPassed || !hasNone(failures) && !hasNone(newlyFailed));
9093
9118
  if (!recovered && hasNone(cleared))
9094
- return { ...judged(first.evidence), ...bothFileIds(first.evidence, again.evidence) };
9119
+ return {
9120
+ ...environmentJudged ? judged(first.evidence) : first.evidence,
9121
+ ...bothFileIds(first.evidence, again.evidence)
9122
+ };
9095
9123
  const ranFirst = new Set(first.evidence.tests.ranDigests);
9096
9124
  const skippedTests = again.evidence.tests.skippedTests.filter((id) => !ranFirst.has(testDigest(id)));
9097
9125
  const { failedTests: _failedAgain, ...againTests } = again.evidence.tests;
@@ -9120,7 +9148,7 @@ var afterFreshService = (first, again) => {
9120
9148
  outputTail: first.evidence.outputTail,
9121
9149
  ...retryFailedTests.length === 0 ? undefined : { retryFailedTests }
9122
9150
  },
9123
- environmentJudged: true
9151
+ ...environmentJudged ? { environmentJudged } : undefined
9124
9152
  }
9125
9153
  };
9126
9154
  };
@@ -9598,23 +9626,30 @@ var verificationExecutor = (input) => (work) => gen(function* () {
9598
9626
  const rejudged = (entry) => entry.tree === baselineTree && failedOnPostgres.some((ran) => sameCheck(ran.evidence)(entry));
9599
9627
  const baselineRan = comparable ? yield* runChecks(baseline, work.checks.filter((check) => check.pipeline !== true), baselineTree, known.filter((entry) => !rejudged(entry)), runIn(baseline), keeper("baseline-"), services(`${work.id}-baseline`)).pipe(scoped) : [];
9600
9628
  const headRevision = (yield* runCommand2("git", ["-C", head, "rev-parse", "HEAD"])).trim();
9601
- const onFreshService = (check, attempt) => gen(function* () {
9629
+ const onFreshService = (check, attempt, onPostgres) => gen(function* () {
9602
9630
  const worktree = yield* checkouts.checkout({ runId: work.runId, id: `${work.id}-rerun`, baseRevision: headRevision }, work.repoBinding);
9603
9631
  const run = runIn(worktree);
9604
9632
  const fresh = services(`${work.id}-rerun-${attempt}`);
9605
9633
  yield* installIn(worktree, run);
9606
9634
  const postgres = yield* startedCheckPostgres(worktree, fresh, run);
9607
- return postgres === undefined ? undefined : yield* runCheck(worktree, check, run, keeper("rerun-"), fresh, postgres);
9635
+ return postgres === undefined && onPostgres ? undefined : yield* runCheck(worktree, check, run, keeper("rerun-"), fresh, postgres);
9608
9636
  }).pipe(scoped);
9609
9637
  const headChecks = yield* forEach(firstHead, (ran, index) => gen(function* () {
9610
9638
  const check = work.checks.find(sameCheck(ran.evidence));
9611
9639
  const atBaseline = baselineRan.find((other) => sameCheck(other.evidence)(ran.evidence));
9612
- if (check === undefined || atBaseline === undefined || !failedOnPostgres.includes(ran))
9640
+ if (check === undefined)
9641
+ return ran.evidence;
9642
+ const judgesFailure = atBaseline !== undefined && failedOnPostgres.includes(ran) && passedAtBaseline(ran, atBaseline);
9643
+ const setupFailed = comparable && check.pipeline !== true && ran.evidence.status === "failed" ? failedInSetup(ran).filter((suite) => {
9644
+ const before = atBaseline === undefined ? undefined : outcomeIn(atBaseline.statuses, suite);
9645
+ return before !== "failed" && before !== "skipped";
9646
+ }) : [];
9647
+ if (!judgesFailure && setupFailed.length === 0)
9613
9648
  return ran.evidence;
9614
- if (!passedAtBaseline(ran, atBaseline))
9649
+ const again = yield* onFreshService(check, index + 1, ran.onPostgres);
9650
+ if (again === undefined)
9615
9651
  return ran.evidence;
9616
- const again = yield* onFreshService(check, index + 1);
9617
- return again === undefined ? ran.evidence : afterFreshService(ran, again);
9652
+ return judgesFailure ? afterFreshService(ran, again) : afterFreshService(ran, again, { reported: setupFailed, printed: [] });
9618
9653
  }));
9619
9654
  const baselineChecks = baselineRan.filter((ran) => !known.some((entry) => entry.tree === baselineTree && sameCheck(ran.evidence)(entry))).map((ran) => ran.evidence);
9620
9655
  return {
@@ -176,13 +176,7 @@ import {
176
176
  StepManifest,
177
177
  KitSetup,
178
178
  RunnerRpcError
179
- } from "./chunk-j35nm5gm.js";
180
- import {
181
- guard,
182
- Id,
183
- Timestamp,
184
- ActorType
185
- } from "./chunk-4qjfn1sa.js";
179
+ } from "./chunk-xppw33hz.js";
186
180
  import {
187
181
  getCurrent,
188
182
  runForEach,
@@ -193,6 +187,12 @@ import {
193
187
  recommendationProblem,
194
188
  questionAdvice
195
189
  } from "./chunk-tsx0347c.js";
190
+ import {
191
+ guard,
192
+ Id,
193
+ Timestamp,
194
+ ActorType
195
+ } from "./chunk-4qjfn1sa.js";
196
196
  var __defProp = Object.defineProperty;
197
197
  var __returnValue = (v) => v;
198
198
  function __exportSetter(name, newValue) {
@@ -4,9 +4,9 @@ import {
4
4
  runnerRpcUrl2,
5
5
  makeRunnerRpcClient2,
6
6
  makeProgramRpcClient2
7
- } from "./chunk-112etn4t.js";
8
- import"./chunk-nhseg19m.js";
9
- import"./chunk-j35nm5gm.js";
7
+ } from "./chunk-t6ynnbcb.js";
8
+ import"./chunk-vv7zg8rb.js";
9
+ import"./chunk-xppw33hz.js";
10
10
  import"./chunk-4qjfn1sa.js";
11
11
  import"./chunk-j4b1yvcd.js";
12
12
  import"./chunk-h2f26xbd.js";
@@ -36,14 +36,6 @@ import {
36
36
  Json,
37
37
  encodePrettyJsonString
38
38
  } from "./chunk-h2f26xbd.js";
39
- import {
40
- decodeText,
41
- mkString,
42
- FileSystem,
43
- Path,
44
- withDefault,
45
- String2
46
- } from "./chunk-j4b1yvcd.js";
47
39
  import {
48
40
  SecureRandom,
49
41
  layerWebCrypto,
@@ -60,26 +52,34 @@ import {
60
52
  KitDeclarations,
61
53
  kitmanMcpServer,
62
54
  RunnerRpcProtocolVersion
63
- } from "./chunk-j35nm5gm.js";
55
+ } from "./chunk-xppw33hz.js";
56
+ import {
57
+ decodeText,
58
+ mkString,
59
+ FileSystem,
60
+ Path,
61
+ withDefault,
62
+ String2
63
+ } from "./chunk-j4b1yvcd.js";
64
64
  import {
65
65
  Packument,
66
66
  tarballMatches
67
- } from "./chunk-j28yqnk0.js";
68
- import"./chunk-4qjfn1sa.js";
67
+ } from "./chunk-1vnvmeqr.js";
69
68
  import {
70
69
  stepDefinedTwice,
71
70
  hostSteps,
72
71
  exports_activities,
73
72
  describeFlag,
74
73
  Described
75
- } from "./chunk-9s82d4g0.js";
76
- import"./chunk-112etn4t.js";
74
+ } from "./chunk-ja48xvcs.js";
75
+ import"./chunk-t6ynnbcb.js";
77
76
  import"./chunk-tsx0347c.js";
78
77
  import {
79
78
  ChildProcessSpawner,
80
79
  make3
81
80
  } from "./chunk-bsgvmq34.js";
82
- import"./chunk-nhseg19m.js";
81
+ import"./chunk-vv7zg8rb.js";
82
+ import"./chunk-4qjfn1sa.js";
83
83
 
84
84
  // packages/sdk/src/build/outline/graph.ts
85
85
  import {
@@ -251,15 +251,15 @@ import {
251
251
  harnessNames,
252
252
  herdrRunnerCapabilities2,
253
253
  declaredChecks
254
- } from "./chunk-j35nm5gm.js";
255
- import {
256
- Id,
257
- Timestamp
258
- } from "./chunk-4qjfn1sa.js";
254
+ } from "./chunk-xppw33hz.js";
259
255
  import {
260
256
  ChildProcessSpawner,
261
257
  make3
262
258
  } from "./chunk-bsgvmq34.js";
259
+ import {
260
+ Id,
261
+ Timestamp
262
+ } from "./chunk-4qjfn1sa.js";
263
263
 
264
264
  // apps/cli/src/cli-error.ts
265
265
  function cliErrorCode(error, status) {
@@ -1326,10 +1326,10 @@ var sandboxMissing = (sandbox, missing) => ({
1326
1326
  var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
1327
1327
  var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
1328
1328
  var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
1329
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-t37r3rg3.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
1329
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-220vzyz9.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
1330
1330
  });
1331
1331
  var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
1332
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-t37r3rg3.js")), (module) => module.updateHerdrCore(options))
1332
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-220vzyz9.js")), (module) => module.updateHerdrCore(options))
1333
1333
  });
1334
1334
  var herdrCoreMissing = (error) => {
1335
1335
  if (isTagged(error, "HerdrCoreMissing"))
@@ -1773,7 +1773,7 @@ var syncTargets = (harness) => gen(function* () {
1773
1773
  });
1774
1774
  var syncKits = (input) => gen(function* () {
1775
1775
  const fs = yield* FileSystem;
1776
- const { syncKitSetup } = yield* promise(() => import("./chunk-zk8rctse.js"));
1776
+ const { syncKitSetup } = yield* promise(() => import("./chunk-z05pkzhf.js"));
1777
1777
  const harnesses = yield* syncTargets(input.harness);
1778
1778
  const chain = yield* input.client.getKitChain(input.workspaceId);
1779
1779
  for (const { name, problem } of chain.skipped)
@@ -3268,7 +3268,7 @@ var shipped_steps_generated_default = {
3268
3268
  };
3269
3269
 
3270
3270
  // apps/cli/src/scaffold-files.ts
3271
- var cliVersion = "0.24.0";
3271
+ var cliVersion = "0.26.0";
3272
3272
  var shippedLoopSteps = new Map(Object.entries(shipped_steps_generated_default));
3273
3273
  var loopSteps = (loop) => shippedLoopSteps.get(loop) ?? [];
3274
3274
  var replacedStep = (loop) => loopSteps(loop).find((step) => step.from === defaultKitName && step.exported?.startsWith("steps.") === true);
@@ -3533,7 +3533,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
3533
3533
 
3534
3534
  // apps/cli/src/commands.ts
3535
3535
  var ClientId = "kitman-cli";
3536
- var agentRuntime = promise(() => import("./chunk-b9er95qh.js"));
3536
+ var agentRuntime = promise(() => import("./chunk-dfvamygr.js"));
3537
3537
  var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
3538
3538
  defaultValue: () => gen(function* () {
3539
3539
  const tui = yield* tryPromise({
@@ -5072,7 +5072,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
5072
5072
  });
5073
5073
  var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
5074
5074
  defaultValue: () => (options) => gen(function* () {
5075
- const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-swc2ra32.js"));
5075
+ const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-ks4q040v.js"));
5076
5076
  return yield* makeRunnerRpcClient({
5077
5077
  runnerId: options.runnerId,
5078
5078
  bearer: options.bearer,
@@ -5645,7 +5645,7 @@ function mcpCommand(args) {
5645
5645
  if (command.action === "run") {
5646
5646
  if (command.args.length > 0)
5647
5647
  return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
5648
- const { runMcpServerCommand } = yield* promise(() => import("./chunk-qmbz7jch.js"));
5648
+ const { runMcpServerCommand } = yield* promise(() => import("./chunk-aax2a975.js"));
5649
5649
  return yield* runMcpServerCommand({ flags: command.flags });
5650
5650
  }
5651
5651
  if (command.action !== "setup")
@@ -6145,7 +6145,7 @@ function programLoopCommand(command) {
6145
6145
  return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
6146
6146
  });
6147
6147
  }
6148
- var docsModule = promise(() => import("./chunk-0v7bz5y1.js"));
6148
+ var docsModule = promise(() => import("./chunk-83nqkmbj.js"));
6149
6149
  function docsCommand(args) {
6150
6150
  return gen(function* () {
6151
6151
  const command = parseCommand(args);
@@ -7149,7 +7149,7 @@ function changeRequestCommand(args) {
7149
7149
  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}`);
7150
7150
  });
7151
7151
  }
7152
- var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-wh096b50.js")), (build) => build.readOutlines(directory)).pipe(mapError2((error) => new CliError({ message: error.message })));
7152
+ var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-mvqggmpj.js")), (build) => build.readOutlines(directory)).pipe(mapError2((error) => new CliError({ message: error.message })));
7153
7153
  var loopOutline = (command) => gen(function* () {
7154
7154
  const path = yield* Path;
7155
7155
  const loop = requiredArg(command, "a Loop id");
@@ -7169,9 +7169,9 @@ var loopOutline = (command) => gen(function* () {
7169
7169
  `).pipe(mapError2((error) => new CliError({ message: error.message })));
7170
7170
  yield* log(`Wrote the outline of ${loop} to ${out}`);
7171
7171
  });
7172
- var KitWriter = map9(promise(() => import("./chunk-wh096b50.js")), (build) => build.writeKit);
7172
+ var KitWriter = map9(promise(() => import("./chunk-mvqggmpj.js")), (build) => build.writeKit);
7173
7173
  var KitBuilder = Reference("kitman/cli/KitBuilder", {
7174
- defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-wh096b50.js")), (build) => build.buildKit(directory))
7174
+ defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-mvqggmpj.js")), (build) => build.buildKit(directory))
7175
7175
  });
7176
7176
  var uploadKit = (client, workspaceId, built) => gen(function* () {
7177
7177
  yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
@@ -19,13 +19,13 @@ import {
19
19
  RunnerReplicaRpcs,
20
20
  RunnerRunFileRpcs,
21
21
  ProgramRpcs
22
- } from "./chunk-j35nm5gm.js";
22
+ } from "./chunk-xppw33hz.js";
23
23
  import {
24
24
  layerJson,
25
25
  make4,
26
26
  withHeaders,
27
27
  layerProtocolSocket
28
- } from "./chunk-nhseg19m.js";
28
+ } from "./chunk-vv7zg8rb.js";
29
29
 
30
30
  // packages/live/src/rpc/runner-client.ts
31
31
  var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
@@ -123,7 +123,7 @@ import {
123
123
  ParseOptions,
124
124
  RpcClientDefect,
125
125
  RpcClientError
126
- } from "./chunk-j35nm5gm.js";
126
+ } from "./chunk-xppw33hz.js";
127
127
 
128
128
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/workers/Transferable.js
129
129
  class Collector extends (/* @__PURE__ */ Service2()("effect/workers/Transferable/Collector")) {
@@ -23,7 +23,7 @@ import {
23
23
  tomlKeyPath2,
24
24
  kitmanSkillEntry,
25
25
  isPathWithin2
26
- } from "./chunk-a3wsye48.js";
26
+ } from "./chunk-zysde2fp.js";
27
27
  import {
28
28
  instructionsStart,
29
29
  instructionsEnd,
@@ -31,10 +31,10 @@ import {
31
31
  antigravityPlugins,
32
32
  materializeKitSetup,
33
33
  tomlInline
34
- } from "./chunk-j35nm5gm.js";
35
- import"./chunk-4qjfn1sa.js";
36
- import"./chunk-j28yqnk0.js";
34
+ } from "./chunk-xppw33hz.js";
35
+ import"./chunk-1vnvmeqr.js";
37
36
  import"./chunk-bsgvmq34.js";
37
+ import"./chunk-4qjfn1sa.js";
38
38
 
39
39
  // packages/agent-runtime/src/kit-setup-sync.ts
40
40
  class KitSyncError extends TaggedError("KitSyncError") {
@@ -36,10 +36,10 @@ import {
36
36
  AgentHarnessIds,
37
37
  sha2562,
38
38
  runCommand2
39
- } from "./chunk-j35nm5gm.js";
39
+ } from "./chunk-xppw33hz.js";
40
40
  import {
41
41
  NpmRegistry
42
- } from "./chunk-j28yqnk0.js";
42
+ } from "./chunk-1vnvmeqr.js";
43
43
 
44
44
  // packages/agent-runtime/src/config-convergence.ts
45
45
  var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
package/dist/index.js CHANGED
@@ -14,6 +14,6 @@ if (args[0] === "srt") {
14
14
  const { runOpencodeReader } = await import("./chunk-npfdbssf.js");
15
15
  runOpencodeReader();
16
16
  } else {
17
- const { runCli } = await import("./chunk-236jyzyz.js");
17
+ const { runCli } = await import("./chunk-sc93ezsw.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.24.0",
3
+ "version": "0.26.0",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "bin": {
@@ -333,19 +333,6 @@ import {
333
333
  harnessesUnsupportedInSrt2,
334
334
  harnessesUnsupportedInDocker2
335
335
  } from "./chunk-j4b1yvcd.js";
336
- import {
337
- isDateTime,
338
- Numeric,
339
- isWholeNumber,
340
- guard,
341
- Id,
342
- Timestamp,
343
- ActorType,
344
- SecretName,
345
- SecretScope,
346
- SecretHosts,
347
- isSecretReference
348
- } from "./chunk-4qjfn1sa.js";
349
336
  import {
350
337
  isRedacted,
351
338
  make,
@@ -360,6 +347,19 @@ import {
360
347
  parseFdName,
361
348
  fdName
362
349
  } from "./chunk-bsgvmq34.js";
350
+ import {
351
+ isDateTime,
352
+ Numeric,
353
+ isWholeNumber,
354
+ guard,
355
+ Id,
356
+ Timestamp,
357
+ ActorType,
358
+ SecretName,
359
+ SecretScope,
360
+ SecretHosts,
361
+ isSecretReference
362
+ } from "./chunk-4qjfn1sa.js";
363
363
 
364
364
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
365
365
  var makeEquivalence3 = Tuple;