@kitman-sh/cli 0.21.0 → 0.22.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.
@@ -15,7 +15,7 @@ import {
15
15
  writeSrtSettings2,
16
16
  srtStepArgv2,
17
17
  srtArgv2
18
- } from "./chunk-j4b1yvcd.js";
18
+ } from "./chunk-63cyj9dh.js";
19
19
  import"./chunk-h2f26xbd.js";
20
20
  export {
21
21
  compiled2 as compiled,
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import"./chunk-bsgvmq34.js";
2
+ import"./chunk-gap0vmj7.js";
3
3
  import {
4
4
  HERDR_CORE_GENERATION2,
5
5
  HERDR_CORE_INSTALL_COMMAND2,
@@ -12,8 +12,8 @@ import {
12
12
  herdrCoreLayer2,
13
13
  herdrCoreTransportLayer2,
14
14
  updateHerdrCore2
15
- } from "./chunk-d1826dj4.js";
16
- import"./chunk-j4b1yvcd.js";
15
+ } from "./chunk-bgwp50wv.js";
16
+ import"./chunk-63cyj9dh.js";
17
17
  import"./chunk-h2f26xbd.js";
18
18
  export {
19
19
  HERDR_CORE_GENERATION2 as HERDR_CORE_GENERATION,
@@ -28,7 +28,7 @@ import {
28
28
  import {
29
29
  withDefault,
30
30
  String2
31
- } from "./chunk-j4b1yvcd.js";
31
+ } from "./chunk-63cyj9dh.js";
32
32
  import {
33
33
  newerKitmanVersion,
34
34
  digestSha256,
@@ -39,7 +39,7 @@ import {
39
39
  get2,
40
40
  layer4,
41
41
  KitDigest
42
- } from "./chunk-d1826dj4.js";
42
+ } from "./chunk-bgwp50wv.js";
43
43
 
44
44
  // packages/core/src/npm-registry.ts
45
45
  var KitManifest = Struct({
@@ -252,6 +252,15 @@ var makeEquivalence = (equivalence) => {
252
252
  return (self, that) => is(self, that) && is(that, self);
253
253
  };
254
254
 
255
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
256
+ var BigInt2 = globalThis.BigInt;
257
+ var toNumber = (b) => {
258
+ if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
259
+ return none();
260
+ }
261
+ return some(Number(b));
262
+ };
263
+
255
264
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/ByteSize.js
256
265
  var bigint0 = /* @__PURE__ */ BigInt(0);
257
266
  var bigint1 = /* @__PURE__ */ BigInt(1);
@@ -3635,4 +3644,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
3635
3644
  ...argv
3636
3645
  ];
3637
3646
 
3638
- export { map, makeEquivalence, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2, make8, unbounded, publishUnsafe, make9, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe3, fromTransform, mapDone, isSink, fromChannel, drain, make10, get3, isStream, fromChannel2, callback, empty2, make11, suspend, fail2, fromQueue, fromPubSub, fromReadableStream, unwrap, map2, tap, drainFork, concat, merge2, filter, catchCause, tapError, mapError, take2, mapAccum, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make12, FileTypeId, WatchBackend, Path, make13, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, operatorConfigHome, tempDirectoryScoped, harnessesUnsupportedInSrt2, harnessesUnsupportedInDocker2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
3647
+ export { map, makeEquivalence, toNumber, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2, make8, unbounded, publishUnsafe, make9, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe3, fromTransform, mapDone, isSink, fromChannel, drain, make10, get3, isStream, fromChannel2, callback, empty2, make11, suspend, fail2, fromQueue, fromPubSub, fromReadableStream, unwrap, map2, tap, drainFork, concat, merge2, filter, catchCause, tapError, mapError, take2, mapAccum, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make12, FileTypeId, WatchBackend, Path, make13, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, operatorConfigHome, tempDirectoryScoped, harnessesUnsupportedInSrt2, harnessesUnsupportedInDocker2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
@@ -1,4 +1,8 @@
1
1
  // @bun
2
+ import {
3
+ FileSystem,
4
+ Path
5
+ } from "./chunk-63cyj9dh.js";
2
6
  import {
3
7
  isObject,
4
8
  isUint8Array,
@@ -14,16 +18,12 @@ import {
14
18
  decodeJsonString,
15
19
  encodePrettyJsonString
16
20
  } from "./chunk-h2f26xbd.js";
17
- import {
18
- FileSystem,
19
- Path
20
- } from "./chunk-j4b1yvcd.js";
21
21
  import {
22
22
  tomlTableHeader2,
23
23
  tomlKeyPath2,
24
24
  kitmanSkillEntry,
25
25
  isPathWithin2
26
- } from "./chunk-js28a12p.js";
26
+ } from "./chunk-ytknm7wg.js";
27
27
  import {
28
28
  instructionsStart,
29
29
  instructionsEnd,
@@ -31,9 +31,9 @@ import {
31
31
  antigravityPlugins,
32
32
  materializeKitSetup,
33
33
  tomlInline
34
- } from "./chunk-d1826dj4.js";
35
- import"./chunk-0j884359.js";
36
- import"./chunk-bsgvmq34.js";
34
+ } from "./chunk-bgwp50wv.js";
35
+ import"./chunk-5gx52vjz.js";
36
+ import"./chunk-gap0vmj7.js";
37
37
  import"./chunk-4qjfn1sa.js";
38
38
 
39
39
  // packages/agent-runtime/src/kit-setup-sync.ts
@@ -268,6 +268,7 @@ import {
268
268
  import {
269
269
  map,
270
270
  makeEquivalence,
271
+ toNumber,
271
272
  bytes,
272
273
  BadArgument,
273
274
  systemError,
@@ -332,7 +333,7 @@ import {
332
333
  optionalEnv,
333
334
  harnessesUnsupportedInSrt2,
334
335
  harnessesUnsupportedInDocker2
335
- } from "./chunk-j4b1yvcd.js";
336
+ } from "./chunk-63cyj9dh.js";
336
337
  import {
337
338
  isRedacted,
338
339
  make,
@@ -346,7 +347,7 @@ import {
346
347
  make3,
347
348
  parseFdName,
348
349
  fdName
349
- } from "./chunk-bsgvmq34.js";
350
+ } from "./chunk-gap0vmj7.js";
350
351
  import {
351
352
  isDateTime,
352
353
  Numeric,
@@ -901,15 +902,6 @@ var runMain2 = /* @__PURE__ */ makeRunMain(({
901
902
  // node_modules/.bun/@effect+platform-bun@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-bun/dist/BunRuntime.js
902
903
  var runMain = runMain2;
903
904
 
904
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
905
- var BigInt2 = globalThis.BigInt;
906
- var toNumber = (b) => {
907
- if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
908
- return none();
909
- }
910
- return some(Number(b));
911
- };
912
-
913
905
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
914
906
  var makeUnsafe = makeUnsafe6;
915
907
  var make18 = make4;
@@ -7467,7 +7459,8 @@ var ProgramLoop = Struct({
7467
7459
  from: optionalKey(String4)
7468
7460
  })),
7469
7461
  publishedAt: Timestamp,
7470
- kit: String4
7462
+ kit: String4,
7463
+ agents: optionalKey(Record(String4, String4))
7471
7464
  });
7472
7465
  var AutomaticStart = Struct({
7473
7466
  eventId: String4,
@@ -7511,7 +7504,6 @@ var ProgramAgent = Struct({
7511
7504
  }))
7512
7505
  });
7513
7506
  var ProgramAgentList = Struct({ items: ArraySchema(ProgramAgent) });
7514
- var ProgramLoopList = Struct({ items: ArraySchema(ProgramLoop) });
7515
7507
  var RunListItem = Struct({
7516
7508
  run: Run,
7517
7509
  loop: Struct({ id: String4, title: String4 }),
@@ -12791,6 +12783,8 @@ var LoopManifest = Struct({
12791
12783
  schedule: optionalKey(Struct({ rule: ScheduleRule, timezone: String4 })),
12792
12784
  outline: optionalKey(LoopOutline)
12793
12785
  });
12786
+ var ProgramLoopListing = Struct({ ...ProgramLoop.fields, schedule: LoopManifest.fields.schedule });
12787
+ var ProgramLoopList = Struct({ items: ArraySchema(ProgramLoopListing) });
12794
12788
  var LoopEnd = Struct({
12795
12789
  statuses: optionalKey(ArraySchema(String4)),
12796
12790
  failure: optionalKey(String4),
@@ -108,7 +108,7 @@ import {
108
108
  shutdownUnsafe,
109
109
  fromQueue,
110
110
  unwrap
111
- } from "./chunk-j4b1yvcd.js";
111
+ } from "./chunk-63cyj9dh.js";
112
112
  import {
113
113
  Clock,
114
114
  empty,
@@ -123,7 +123,7 @@ import {
123
123
  ParseOptions,
124
124
  RpcClientDefect,
125
125
  RpcClientError
126
- } from "./chunk-d1826dj4.js";
126
+ } from "./chunk-bgwp50wv.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")) {
@@ -31,7 +31,7 @@ import {
31
31
  runCollect,
32
32
  runDrain,
33
33
  mkString
34
- } from "./chunk-j4b1yvcd.js";
34
+ } from "./chunk-63cyj9dh.js";
35
35
 
36
36
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/redacted.js
37
37
  var redactedRegistry = /* @__PURE__ */ new WeakMap;
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-h2f26xbd.js";
10
10
  import {
11
11
  runForEach
12
- } from "./chunk-j4b1yvcd.js";
12
+ } from "./chunk-63cyj9dh.js";
13
13
  import {
14
14
  WebSocketConstructor,
15
15
  layerWebSocketConstructorGlobal,
@@ -19,13 +19,13 @@ import {
19
19
  RunnerReplicaRpcs,
20
20
  RunnerRunFileRpcs,
21
21
  ProgramRpcs
22
- } from "./chunk-d1826dj4.js";
22
+ } from "./chunk-bgwp50wv.js";
23
23
  import {
24
24
  layerJson,
25
25
  make4,
26
26
  withHeaders,
27
27
  layerProtocolSocket
28
- } from "./chunk-atswrrsb.js";
28
+ } from "./chunk-cswzx3jj.js";
29
29
 
30
30
  // packages/live/src/rpc/runner-client.ts
31
31
  var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
@@ -7,9 +7,9 @@ import {
7
7
  decoded2,
8
8
  readOpencode2,
9
9
  runOpencodeReader2
10
- } from "./chunk-7re3n1ze.js";
11
- import"./chunk-bsgvmq34.js";
12
- import"./chunk-j4b1yvcd.js";
10
+ } from "./chunk-my92qn4x.js";
11
+ import"./chunk-gap0vmj7.js";
12
+ import"./chunk-63cyj9dh.js";
13
13
  import"./chunk-h2f26xbd.js";
14
14
  export {
15
15
  decoded2 as decoded,
@@ -1,4 +1,9 @@
1
1
  // @bun
2
+ import {
3
+ make11,
4
+ runForEach,
5
+ compiled2
6
+ } from "./chunk-63cyj9dh.js";
2
7
  import {
3
8
  getOrUndefined,
4
9
  liftThrowable,
@@ -26,15 +31,10 @@ import {
26
31
  isString2,
27
32
  encodeUnknownJsonStringSync
28
33
  } from "./chunk-h2f26xbd.js";
29
- import {
30
- make11,
31
- runForEach,
32
- compiled2
33
- } from "./chunk-j4b1yvcd.js";
34
34
  import {
35
35
  ChildProcessSpawner,
36
36
  make3
37
- } from "./chunk-bsgvmq34.js";
37
+ } from "./chunk-gap0vmj7.js";
38
38
 
39
39
  // packages/agent-runtime/src/opencode-store.ts
40
40
  import { lstatSync, readFileSync, realpathSync } from "fs";
@@ -4,11 +4,11 @@ import {
4
4
  runnerRpcUrl2,
5
5
  makeRunnerRpcClient2,
6
6
  makeProgramRpcClient2
7
- } from "./chunk-remt6mfx.js";
8
- import"./chunk-atswrrsb.js";
9
- import"./chunk-d1826dj4.js";
7
+ } from "./chunk-jq8hbcnf.js";
8
+ import"./chunk-cswzx3jj.js";
9
+ import"./chunk-bgwp50wv.js";
10
10
  import"./chunk-4qjfn1sa.js";
11
- import"./chunk-j4b1yvcd.js";
11
+ import"./chunk-63cyj9dh.js";
12
12
  import"./chunk-h2f26xbd.js";
13
13
  export {
14
14
  makeProgramRpcClient2 as makeProgramRpcClient,
@@ -634,6 +634,20 @@ Two of the software-engineering Kit's starts are off until a Team turns them on:
634
634
  - Release, once per head, when such a ChangeRequest is approved at that head, by the forge or through Kitman, and its pipeline passed there, while no Run works it. A ChangeRequest a Build lands through Shepherd is merged and released by that Shepherd instead. Release asks before it publishes, unless the Team delivers in full auto. It releases only under a \`merge\` release trigger: under a \`milestone\` or \`project\` trigger each Run it starts ends \`not_due\`, so leave it off there.
635
635
 
636
636
  Turning a start off stops new Runs from it. Runs it already started go on. \`kitman loop starts\` lists what each Event started, or why it started nothing.`
637
+ },
638
+ {
639
+ title: "Loop Operations Guide \u203A Schedules",
640
+ path: "loop-operations#schedules",
641
+ level: 2,
642
+ link: "https://kitman.sh/knowledge/docs/loop-operations#schedules",
643
+ text: `## Schedules
644
+
645
+ Schedules start Runs at set times, and they come from Kits. There are two ways to get one:
646
+
647
+ - **Turn on a Loop's offered Schedule.** A Loop can offer one, such as Hindsight's weekly run. Its page shows a switch for it under Starts when; turning it on schedules it for the Workspace, and its Runs act for whoever turned it on. When a Team has no Schedules, its Schedules page lists the Loops that offer one.
648
+ - **Declare it in a Kit.** A Kit's \`defineKit\` can declare Schedules, each naming a Loop, a rule and a timezone. Deploying the Kit creates them, and the Kit owns them: a rename in the web lasts until its next deploy.
649
+
650
+ The Schedules page and a Loop's page show each daily or weekly time in your own time zone, and in UTC when you hover it. A cron rule is read in its Schedule's timezone, so it is shown as written, with that timezone.`
637
651
  },
638
652
  {
639
653
  title: "Loop Operations Guide \u203A Input Defaults",
@@ -2195,7 +2209,7 @@ var pathOfLink = (link) => {
2195
2209
  return page === null ? link : page[1] || "index";
2196
2210
  };
2197
2211
  var UnpinnedSdkLink = "https://cdn.jsdelivr.net/npm/@kitman-sh/sdk/";
2198
- var pinnedLink2 = (link, version = "0.21.0") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
2212
+ var pinnedLink2 = (link, version = "0.22.0") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
2199
2213
  var pageOf = (path) => path.split("#")[0];
2200
2214
  var exportName = (section) => section.path.startsWith("sdk/") ? section.path.split("#")[1] ?? "" : "";
2201
2215
  function excerpt(text, queryTerms) {
@@ -173,6 +173,52 @@ import {
173
173
  encodeUnknownJsonStringSync,
174
174
  storable
175
175
  } from "./chunk-h2f26xbd.js";
176
+ import {
177
+ join,
178
+ interrupt,
179
+ unbounded,
180
+ publishUnsafe,
181
+ unbounded2,
182
+ offer,
183
+ makeUnsafe3,
184
+ make11,
185
+ fromQueue,
186
+ fromPubSub,
187
+ map2,
188
+ filter,
189
+ take2,
190
+ mapAccum,
191
+ decodeText,
192
+ encodeText,
193
+ splitLines,
194
+ run,
195
+ runCollect,
196
+ runFold,
197
+ runHead,
198
+ runForEach,
199
+ FileSystem,
200
+ Path,
201
+ embeddedFile,
202
+ extractEmbeddedFile,
203
+ optionalEnv,
204
+ operatorConfigHome,
205
+ tempDirectoryScoped,
206
+ harnessesUnsupportedInSrt2,
207
+ harnessesUnsupportedInDocker2,
208
+ compiled2,
209
+ pinnedSrtCommand2,
210
+ pinnedSrtStepCommand2,
211
+ runSrtCli2,
212
+ kitmanCacheDirectory2,
213
+ srtSettings2,
214
+ srtCacheEnvironment2,
215
+ srtInheritedEnv2,
216
+ inheritedEnvironment2,
217
+ withOnlyEnvironment2,
218
+ writeSrtSettings2,
219
+ srtStepArgv2,
220
+ srtArgv2
221
+ } from "./chunk-63cyj9dh.js";
176
222
  import {
177
223
  currentTimeMillis,
178
224
  SecureRandom,
@@ -261,53 +307,7 @@ import {
261
307
  checkServicesFile,
262
308
  checkServices,
263
309
  serviceChecks
264
- } from "./chunk-d1826dj4.js";
265
- import {
266
- join,
267
- interrupt,
268
- unbounded,
269
- publishUnsafe,
270
- unbounded2,
271
- offer,
272
- makeUnsafe3,
273
- make11,
274
- fromQueue,
275
- fromPubSub,
276
- map2,
277
- filter,
278
- take2,
279
- mapAccum,
280
- decodeText,
281
- encodeText,
282
- splitLines,
283
- run,
284
- runCollect,
285
- runFold,
286
- runHead,
287
- runForEach,
288
- FileSystem,
289
- Path,
290
- embeddedFile,
291
- extractEmbeddedFile,
292
- optionalEnv,
293
- operatorConfigHome,
294
- tempDirectoryScoped,
295
- harnessesUnsupportedInSrt2,
296
- harnessesUnsupportedInDocker2,
297
- compiled2,
298
- pinnedSrtCommand2,
299
- pinnedSrtStepCommand2,
300
- runSrtCli2,
301
- kitmanCacheDirectory2,
302
- srtSettings2,
303
- srtCacheEnvironment2,
304
- srtInheritedEnv2,
305
- inheritedEnvironment2,
306
- withOnlyEnvironment2,
307
- writeSrtSettings2,
308
- srtStepArgv2,
309
- srtArgv2
310
- } from "./chunk-j4b1yvcd.js";
310
+ } from "./chunk-bgwp50wv.js";
311
311
  import {
312
312
  writeAgentEnvironmentConfigFile2,
313
313
  readManifestSkillPaths2,
@@ -323,8 +323,8 @@ import {
323
323
  applyAgentEnvironmentMaterialization2,
324
324
  isPathWithin2,
325
325
  skillIdentity2
326
- } from "./chunk-js28a12p.js";
327
- import"./chunk-0j884359.js";
326
+ } from "./chunk-ytknm7wg.js";
327
+ import"./chunk-5gx52vjz.js";
328
328
  import {
329
329
  egressAllowed,
330
330
  writeSecretRegistry,
@@ -342,15 +342,15 @@ import {
342
342
  decodedOption2,
343
343
  decoded2,
344
344
  readOpencode2
345
- } from "./chunk-7re3n1ze.js";
345
+ } from "./chunk-my92qn4x.js";
346
346
  import {
347
347
  uploadRunFile,
348
348
  programLease,
349
349
  rpcRunFiles,
350
350
  programHostsEnv,
351
351
  undeclaredHostsEnv
352
- } from "./chunk-7swf974v.js";
353
- import"./chunk-remt6mfx.js";
352
+ } from "./chunk-xqc3fc72.js";
353
+ import"./chunk-jq8hbcnf.js";
354
354
  import {
355
355
  nextInt
356
356
  } from "./chunk-5kqt4bqp.js";
@@ -358,8 +358,8 @@ import"./chunk-tsx0347c.js";
358
358
  import {
359
359
  ChildProcessSpawner,
360
360
  make3
361
- } from "./chunk-bsgvmq34.js";
362
- import"./chunk-atswrrsb.js";
361
+ } from "./chunk-gap0vmj7.js";
362
+ import"./chunk-cswzx3jj.js";
363
363
  import {
364
364
  Id,
365
365
  secretReference,
@@ -1,4 +1,12 @@
1
1
  // @bun
2
+ import {
3
+ decodeText,
4
+ mkString,
5
+ FileSystem,
6
+ Path,
7
+ withDefault,
8
+ String2
9
+ } from "./chunk-63cyj9dh.js";
2
10
  import {
3
11
  isString,
4
12
  isObject,
@@ -36,14 +44,6 @@ import {
36
44
  Json,
37
45
  encodePrettyJsonString
38
46
  } from "./chunk-h2f26xbd.js";
39
- import {
40
- decodeText,
41
- mkString,
42
- FileSystem,
43
- Path,
44
- withDefault,
45
- String2
46
- } from "./chunk-j4b1yvcd.js";
47
47
  import {
48
48
  SecureRandom,
49
49
  layerWebCrypto,
@@ -60,25 +60,25 @@ import {
60
60
  KitDeclarations,
61
61
  kitmanMcpServer,
62
62
  RunnerRpcProtocolVersion
63
- } from "./chunk-d1826dj4.js";
63
+ } from "./chunk-bgwp50wv.js";
64
64
  import {
65
65
  Packument,
66
66
  tarballMatches
67
- } from "./chunk-0j884359.js";
67
+ } from "./chunk-5gx52vjz.js";
68
68
  import {
69
69
  stepDefinedTwice,
70
70
  hostSteps,
71
71
  exports_activities,
72
72
  describeFlag,
73
73
  Described
74
- } from "./chunk-7swf974v.js";
75
- import"./chunk-remt6mfx.js";
74
+ } from "./chunk-xqc3fc72.js";
75
+ import"./chunk-jq8hbcnf.js";
76
76
  import"./chunk-tsx0347c.js";
77
77
  import {
78
78
  ChildProcessSpawner,
79
79
  make3
80
- } from "./chunk-bsgvmq34.js";
81
- import"./chunk-atswrrsb.js";
80
+ } from "./chunk-gap0vmj7.js";
81
+ import"./chunk-cswzx3jj.js";
82
82
  import"./chunk-4qjfn1sa.js";
83
83
 
84
84
  // packages/sdk/src/build/outline/graph.ts
@@ -120,7 +120,7 @@ import {
120
120
  withDefault,
121
121
  option,
122
122
  String2
123
- } from "./chunk-j4b1yvcd.js";
123
+ } from "./chunk-63cyj9dh.js";
124
124
  import {
125
125
  currentTimeMillis,
126
126
  SecureRandom,
@@ -251,11 +251,11 @@ import {
251
251
  harnessNames,
252
252
  herdrRunnerCapabilities2,
253
253
  declaredChecks
254
- } from "./chunk-d1826dj4.js";
254
+ } from "./chunk-bgwp50wv.js";
255
255
  import {
256
256
  ChildProcessSpawner,
257
257
  make3
258
- } from "./chunk-bsgvmq34.js";
258
+ } from "./chunk-gap0vmj7.js";
259
259
  import {
260
260
  Id,
261
261
  Timestamp
@@ -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-kw46ktwg.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
1329
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-2gm1qkd1.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-kw46ktwg.js")), (module) => module.updateHerdrCore(options))
1332
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-2gm1qkd1.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-0v70erwa.js"));
1776
+ const { syncKitSetup } = yield* promise(() => import("./chunk-an5jcv2h.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.21.0";
3271
+ var cliVersion = "0.22.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-wmf3hq5w.js"));
3536
+ var agentRuntime = promise(() => import("./chunk-rfa7t28t.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-y756hc0e.js"));
5075
+ const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-pbe77xf2.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-mqs553x5.js"));
5648
+ const { runMcpServerCommand } = yield* promise(() => import("./chunk-zh3djymt.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-t8e5ky8f.js"));
6148
+ var docsModule = promise(() => import("./chunk-y4a78x63.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-7vngg2n8.js")), (build) => build.readOutlines(directory)).pipe(mapError2((error) => new CliError({ message: error.message })));
7152
+ var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-rns9z6k9.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-7vngg2n8.js")), (build) => build.writeKit);
7172
+ var KitWriter = map9(promise(() => import("./chunk-rns9z6k9.js")), (build) => build.writeKit);
7173
7173
  var KitBuilder = Reference("kitman/cli/KitBuilder", {
7174
- defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-7vngg2n8.js")), (build) => build.buildKit(directory))
7174
+ defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-rns9z6k9.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) });
@@ -139,6 +139,11 @@ import {
139
139
  toCodecJson,
140
140
  Json
141
141
  } from "./chunk-h2f26xbd.js";
142
+ import {
143
+ getCurrent,
144
+ runForEach,
145
+ FileSystem
146
+ } from "./chunk-63cyj9dh.js";
142
147
  import {
143
148
  currentTimeMillis,
144
149
  WebCrypto,
@@ -176,12 +181,7 @@ import {
176
181
  StepManifest,
177
182
  KitSetup,
178
183
  RunnerRpcError
179
- } from "./chunk-d1826dj4.js";
180
- import {
181
- getCurrent,
182
- runForEach,
183
- FileSystem
184
- } from "./chunk-j4b1yvcd.js";
184
+ } from "./chunk-bgwp50wv.js";
185
185
  import {
186
186
  splitQuestionOptions,
187
187
  recommendationProblem,
@@ -4,7 +4,7 @@ import {
4
4
  searchDocs2,
5
5
  readDoc2,
6
6
  pinnedLink2
7
- } from "./chunk-pr7wx6vh.js";
7
+ } from "./chunk-q3kvaas4.js";
8
8
  export {
9
9
  DefaultDocsSearchLimit2 as DefaultDocsSearchLimit,
10
10
  pinnedLink2 as pinnedLink,