@kitman-sh/cli 0.44.0 → 0.46.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.
Files changed (28) hide show
  1. package/dist/{chunk-gw0pc35c.js → chunk-0511zsxk.js} +430 -55
  2. package/dist/{chunk-5ccz7ghp.js → chunk-16wyj1eq.js} +42 -33
  3. package/dist/{chunk-3mbp8cse.js → chunk-2xeq2a7j.js} +31 -174
  4. package/dist/{chunk-9h16pekj.js → chunk-5tgpa02q.js} +1 -1
  5. package/dist/{chunk-134jdvs6.js → chunk-6evexbdx.js} +14 -60
  6. package/dist/{chunk-wh3pjr9r.js → chunk-7wq13jgx.js} +13 -13
  7. package/dist/{chunk-zvmdyf3v.js → chunk-8qbem52x.js} +39 -39
  8. package/dist/{chunk-ncp13gyf.js → chunk-9hqskzqc.js} +2 -2
  9. package/dist/{chunk-8a7337s1.js → chunk-apv9h5tz.js} +1 -1
  10. package/dist/{chunk-qkwkxn4d.js → chunk-bc40mcq9.js} +76 -76
  11. package/dist/{chunk-d0rx9esz.js → chunk-c6pnj2aj.js} +7 -7
  12. package/dist/{chunk-3zy2vbp0.js → chunk-e1v0c57f.js} +10 -10
  13. package/dist/{chunk-wkg1v0kd.js → chunk-j0b47jdz.js} +5 -5
  14. package/dist/{chunk-k2re3tp5.js → chunk-k1fdsn2c.js} +1 -1
  15. package/dist/{chunk-hmctc4eq.js → chunk-m5wqyzhk.js} +3 -3
  16. package/dist/{chunk-dp6v658s.js → chunk-mxy4wzhs.js} +4 -4
  17. package/dist/{chunk-zkvrxna8.js → chunk-n00cpb86.js} +2 -2
  18. package/dist/{chunk-x0ma41ys.js → chunk-n381rqax.js} +226 -40
  19. package/dist/{chunk-7rj9d0rp.js → chunk-nyagtr2t.js} +3 -3
  20. package/dist/{chunk-1k6z8q79.js → chunk-pty4b78m.js} +299 -117
  21. package/dist/{chunk-1c4wk9dr.js → chunk-qfwhsqej.js} +3 -3
  22. package/dist/{chunk-dre4f6s4.js → chunk-qy0enebe.js} +9 -9
  23. package/dist/{chunk-j60f2tr1.js → chunk-t2x4p5sp.js} +4 -4
  24. package/dist/{chunk-d2tpz1yp.js → chunk-tsw66qp3.js} +1 -1
  25. package/dist/{chunk-wvnsqt17.js → chunk-w0tzm3fg.js} +6 -6
  26. package/dist/{chunk-dj873p0e.js → chunk-x38fytew.js} +92 -26
  27. package/dist/index.js +4 -4
  28. package/package.json +1 -1
@@ -15,8 +15,8 @@ import {
15
15
  writeSrtSettings2,
16
16
  srtStepArgv2,
17
17
  srtArgv2
18
- } from "./chunk-3mbp8cse.js";
19
- import"./chunk-x0ma41ys.js";
18
+ } from "./chunk-2xeq2a7j.js";
19
+ import"./chunk-n381rqax.js";
20
20
  export {
21
21
  compiled2 as compiled,
22
22
  harnessesUnsupportedInDocker2 as harnessesUnsupportedInDocker,
@@ -3,7 +3,7 @@ import {
3
3
  Random,
4
4
  succeed6,
5
5
  withFiber2
6
- } from "./chunk-x0ma41ys.js";
6
+ } from "./chunk-n381rqax.js";
7
7
 
8
8
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Random.js
9
9
  var Random2 = Random;
@@ -49,7 +49,7 @@ import {
49
49
  isFailure2,
50
50
  hasInterrupts,
51
51
  makeUnsafe5,
52
- make16,
52
+ make15,
53
53
  _await,
54
54
  fail5,
55
55
  isDoneUnsafe,
@@ -186,58 +186,7 @@ import {
186
186
  decodeJsonStringSync,
187
187
  encodeUnknownJsonStringSync,
188
188
  storable
189
- } from "./chunk-x0ma41ys.js";
190
- import {
191
- empty2,
192
- currentTimeMillis,
193
- join,
194
- interrupt,
195
- interruptAll,
196
- unbounded,
197
- publishUnsafe,
198
- unbounded2,
199
- offer,
200
- makeUnsafe3,
201
- make11,
202
- fromQueue,
203
- fromPubSub,
204
- map2,
205
- filter,
206
- take2,
207
- mapAccum,
208
- decodeText,
209
- encodeText,
210
- splitLines,
211
- run,
212
- runCollect,
213
- runFold,
214
- runHead,
215
- runForEach,
216
- FileSystem,
217
- Path,
218
- embeddedFile,
219
- extractEmbeddedFile,
220
- withDefault,
221
- String2,
222
- optionalEnv,
223
- operatorConfigHome,
224
- tempDirectoryScoped,
225
- harnessesUnsupportedInSrt2,
226
- harnessesUnsupportedInDocker2,
227
- compiled2,
228
- pinnedSrtCommand2,
229
- pinnedSrtStepCommand2,
230
- runSrtCli2,
231
- kitmanCacheDirectory2,
232
- srtSettings2,
233
- srtCacheEnvironment2,
234
- srtInheritedEnv2,
235
- inheritedEnvironment2,
236
- withOnlyEnvironment2,
237
- writeSrtSettings2,
238
- srtStepArgv2,
239
- srtArgv2
240
- } from "./chunk-3mbp8cse.js";
189
+ } from "./chunk-n381rqax.js";
241
190
  import {
242
191
  SecureRandom,
243
192
  layerWebCrypto,
@@ -327,7 +276,58 @@ import {
327
276
  checkServicesFile,
328
277
  checkServices,
329
278
  serviceChecks
330
- } from "./chunk-1k6z8q79.js";
279
+ } from "./chunk-pty4b78m.js";
280
+ import {
281
+ empty2,
282
+ currentTimeMillis,
283
+ join,
284
+ interrupt,
285
+ interruptAll,
286
+ unbounded,
287
+ publishUnsafe,
288
+ unbounded2,
289
+ offer,
290
+ makeUnsafe3,
291
+ make10,
292
+ fromQueue,
293
+ fromPubSub,
294
+ map2,
295
+ filter,
296
+ take2,
297
+ mapAccum,
298
+ decodeText,
299
+ encodeText,
300
+ splitLines,
301
+ run,
302
+ runCollect,
303
+ runFold,
304
+ runHead,
305
+ runForEach,
306
+ FileSystem,
307
+ Path,
308
+ embeddedFile,
309
+ extractEmbeddedFile,
310
+ withDefault,
311
+ String2,
312
+ optionalEnv,
313
+ operatorConfigHome,
314
+ tempDirectoryScoped,
315
+ harnessesUnsupportedInSrt2,
316
+ harnessesUnsupportedInDocker2,
317
+ compiled2,
318
+ pinnedSrtCommand2,
319
+ pinnedSrtStepCommand2,
320
+ runSrtCli2,
321
+ kitmanCacheDirectory2,
322
+ srtSettings2,
323
+ srtCacheEnvironment2,
324
+ srtInheritedEnv2,
325
+ inheritedEnvironment2,
326
+ withOnlyEnvironment2,
327
+ writeSrtSettings2,
328
+ srtStepArgv2,
329
+ srtArgv2
330
+ } from "./chunk-2xeq2a7j.js";
331
331
  import {
332
332
  writeAgentEnvironmentConfigFile2,
333
333
  readManifestSkillPaths2,
@@ -343,8 +343,12 @@ import {
343
343
  applyAgentEnvironmentMaterialization2,
344
344
  isPathWithin2,
345
345
  skillIdentity2
346
- } from "./chunk-dre4f6s4.js";
347
- import"./chunk-hmctc4eq.js";
346
+ } from "./chunk-qy0enebe.js";
347
+ import"./chunk-m5wqyzhk.js";
348
+ import {
349
+ ChildProcessSpawner,
350
+ make2
351
+ } from "./chunk-6evexbdx.js";
348
352
  import {
349
353
  egressAllowed,
350
354
  writeSecretRegistry,
@@ -354,7 +358,7 @@ import {
354
358
  secretFilter2,
355
359
  opaqueTunnelRefusal2,
356
360
  isOpaqueConnectReason2
357
- } from "./chunk-zkvrxna8.js";
361
+ } from "./chunk-n00cpb86.js";
358
362
  import {
359
363
  sliceBytes2,
360
364
  maxLineBytes2,
@@ -364,29 +368,25 @@ import {
364
368
  lookAtOpencode2,
365
369
  readOpencode2,
366
370
  databaseStamp2
367
- } from "./chunk-wh3pjr9r.js";
371
+ } from "./chunk-7wq13jgx.js";
368
372
  import {
369
373
  uploadRunFile,
370
374
  programLease,
371
375
  rpcRunFiles,
372
376
  programHostsEnv,
373
377
  undeclaredHostsEnv
374
- } from "./chunk-dj873p0e.js";
375
- import"./chunk-d0rx9esz.js";
378
+ } from "./chunk-x38fytew.js";
379
+ import"./chunk-c6pnj2aj.js";
376
380
  import {
377
381
  nextInt
378
- } from "./chunk-8a7337s1.js";
379
- import"./chunk-k2re3tp5.js";
380
- import {
381
- ChildProcessSpawner,
382
- make3
383
- } from "./chunk-134jdvs6.js";
384
- import"./chunk-wkg1v0kd.js";
382
+ } from "./chunk-apv9h5tz.js";
383
+ import"./chunk-k1fdsn2c.js";
384
+ import"./chunk-j0b47jdz.js";
385
385
  import {
386
386
  Id,
387
387
  secretReference,
388
388
  secretPlaceholder
389
- } from "./chunk-9h16pekj.js";
389
+ } from "./chunk-5tgpa02q.js";
390
390
 
391
391
  // packages/core/src/sync-kit.ts
392
392
  import { createHash } from "crypto";
@@ -3332,7 +3332,7 @@ var Proto2 = {
3332
3332
  };
3333
3333
  }
3334
3334
  };
3335
- var make2 = (value) => map9(unbounded({
3335
+ var make3 = (value) => map9(unbounded({
3336
3336
  replay: 1
3337
3337
  }), (pubsub) => {
3338
3338
  const self = Object.create(Proto2);
@@ -5165,7 +5165,7 @@ var runAttempt = (request, options) => gen(function* () {
5165
5165
  return isTagged(terminal.failure, "HerdrCoreRpcError") ? failed("harness_launch_failed", `herdr-core refused to start the Harness: ${terminal.failure.message}`) : { status: "unreported", reason: "herdr_unavailable" };
5166
5166
  }
5167
5167
  const { address } = terminal.success;
5168
- const seen = yield* make2({ status: null, turn: 0, end: undefined });
5168
+ const seen = yield* make3({ status: null, turn: 0, end: undefined });
5169
5169
  yield* forkScoped(follow(options.core, attempt.id, address, seen));
5170
5170
  const stop = gen(function* () {
5171
5171
  if ((yield* get2(seen)).end === "unreachable")
@@ -8906,7 +8906,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
8906
8906
  const input = yield* unbounded2();
8907
8907
  const pending = new Map;
8908
8908
  let lastId = 0;
8909
- const handle = yield* spawner.spawn(make3(binary, ["app-server"], {
8909
+ const handle = yield* spawner.spawn(make2(binary, ["app-server"], {
8910
8910
  cwd: env.home,
8911
8911
  extendEnv: true,
8912
8912
  env: { HOME: env.home, CODEX_HOME: env.codexHome },
@@ -8929,7 +8929,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
8929
8929
  return {
8930
8930
  request: (method, params) => gen(function* () {
8931
8931
  const id = ++lastId;
8932
- const deferred = yield* make16();
8932
+ const deferred = yield* make15();
8933
8933
  pending.set(id, deferred);
8934
8934
  yield* send({ id, method, params });
8935
8935
  return yield* _await(deferred).pipe(mapError2((error) => new CodexAppServerFailed({ reason: `${method}: ${error.message}` })));
@@ -9069,10 +9069,10 @@ var handshake = [
9069
9069
  `).join("");
9070
9070
  var kitmanMcpPreflight = (mcp) => gen(function* () {
9071
9071
  const spawner = yield* ChildProcessSpawner;
9072
- const server = yield* spawner.spawn(make3(mcp.command, [...mcp.args], {
9072
+ const server = yield* spawner.spawn(make2(mcp.command, [...mcp.args], {
9073
9073
  extendEnv: true,
9074
9074
  env: mcp.env,
9075
- stdin: { stream: make11(new TextEncoder().encode(handshake)), endOnDone: false },
9075
+ stdin: { stream: make10(new TextEncoder().encode(handshake)), endOnDone: false },
9076
9076
  stderr: "ignore"
9077
9077
  }));
9078
9078
  const reply = yield* server.stdout.pipe(decodeText, splitLines, map2((line) => getOrUndefined(decodeJsonStringOption(line))), filter((message) => isJsonObject(message) && message.id === 2), runHead);
@@ -9145,8 +9145,8 @@ var programProcessExecutor = (input) => (work) => gen(function* () {
9145
9145
  };
9146
9146
  const exitCode = sandbox === undefined ? yield* gen(function* () {
9147
9147
  const spawner = yield* ChildProcessSpawner;
9148
- const handle = yield* spawner.spawn(make3(input.bun ?? process.execPath, [file], {
9149
- stdin: make11(new TextEncoder().encode(stdin)),
9148
+ const handle = yield* spawner.spawn(make2(input.bun ?? process.execPath, [file], {
9149
+ stdin: make10(new TextEncoder().encode(stdin)),
9150
9150
  stdout: "inherit",
9151
9151
  stderr: "inherit",
9152
9152
  extendEnv: false,
@@ -6,10 +6,10 @@ import {
6
6
  gen,
7
7
  flatMap3,
8
8
  provideContext2
9
- } from "./chunk-x0ma41ys.js";
9
+ } from "./chunk-n381rqax.js";
10
10
  import {
11
11
  runForEach
12
- } from "./chunk-3mbp8cse.js";
12
+ } from "./chunk-2xeq2a7j.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-1k6z8q79.js";
22
+ } from "./chunk-pty4b78m.js";
23
23
  import {
24
24
  layerJson,
25
- make4,
25
+ make3,
26
26
  withHeaders,
27
27
  layerProtocolSocket
28
- } from "./chunk-wkg1v0kd.js";
28
+ } from "./chunk-j0b47jdz.js";
29
29
 
30
30
  // packages/live/src/rpc/runner-client.ts
31
31
  var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
@@ -46,7 +46,7 @@ var authorizer = (options) => (call) => flatMap3(options.bearer, (token) => with
46
46
  var RunnerProcessRpcs = RunnerReplicaRpcs.merge(RunnerRunFileRpcs);
47
47
  var makeRunnerRpcClient2 = (options) => gen(function* () {
48
48
  const protocol = yield* build(options.protocol);
49
- const client = yield* make4(RunnerProcessRpcs).pipe(provideContext2(protocol));
49
+ const client = yield* make3(RunnerProcessRpcs).pipe(provideContext2(protocol));
50
50
  const authorized = authorizer(options);
51
51
  return {
52
52
  claim: (input) => authorized(client.Claim(input)),
@@ -74,7 +74,7 @@ var makeRunnerRpcClient2 = (options) => gen(function* () {
74
74
  });
75
75
  var makeProgramRpcClient2 = (options) => gen(function* () {
76
76
  const protocol = yield* build(options.protocol);
77
- const client = yield* make4(ProgramRpcs).pipe(provideContext2(protocol));
77
+ const client = yield* make3(ProgramRpcs).pipe(provideContext2(protocol));
78
78
  const authorized = authorizer(options);
79
79
  return {
80
80
  recordActivity: (input) => authorized(client.RecordActivity(input)),
@@ -1,8 +1,4 @@
1
1
  // @bun
2
- import {
3
- FileSystem,
4
- Path
5
- } from "./chunk-3mbp8cse.js";
6
2
  import {
7
3
  isObject,
8
4
  isUint8Array,
@@ -17,13 +13,17 @@ import {
17
13
  isJsonObject,
18
14
  decodeJsonString,
19
15
  encodePrettyJsonString
20
- } from "./chunk-x0ma41ys.js";
16
+ } from "./chunk-n381rqax.js";
17
+ import {
18
+ FileSystem,
19
+ Path
20
+ } from "./chunk-2xeq2a7j.js";
21
21
  import {
22
22
  tomlTableHeader2,
23
23
  tomlKeyPath2,
24
24
  kitmanSkillEntry,
25
25
  isPathWithin2
26
- } from "./chunk-dre4f6s4.js";
26
+ } from "./chunk-qy0enebe.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-1k6z8q79.js";
35
- import"./chunk-hmctc4eq.js";
36
- import"./chunk-134jdvs6.js";
37
- import"./chunk-9h16pekj.js";
34
+ } from "./chunk-pty4b78m.js";
35
+ import"./chunk-6evexbdx.js";
36
+ import"./chunk-m5wqyzhk.js";
37
+ import"./chunk-5tgpa02q.js";
38
38
 
39
39
  // packages/agent-runtime/src/kit-setup-sync.ts
40
40
  class KitSyncError extends TaggedError("KitSyncError") {
@@ -96,7 +96,7 @@ import {
96
96
  Defect,
97
97
  Exit,
98
98
  toCodecJson
99
- } from "./chunk-x0ma41ys.js";
99
+ } from "./chunk-n381rqax.js";
100
100
  import {
101
101
  Clock,
102
102
  interrupt,
@@ -109,7 +109,7 @@ import {
109
109
  shutdownUnsafe,
110
110
  fromQueue,
111
111
  unwrap
112
- } from "./chunk-3mbp8cse.js";
112
+ } from "./chunk-2xeq2a7j.js";
113
113
  import {
114
114
  empty,
115
115
  fromInput,
@@ -123,7 +123,7 @@ import {
123
123
  ParseOptions,
124
124
  RpcClientDefect,
125
125
  RpcClientError
126
- } from "./chunk-1k6z8q79.js";
126
+ } from "./chunk-pty4b78m.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")) {
@@ -483,7 +483,7 @@ var makeNoSerialization = /* @__PURE__ */ fnUntraced(function* (group, options)
483
483
  };
484
484
  });
485
485
  var clientIdCounter = 0;
486
- var make4 = /* @__PURE__ */ fnUntraced(function* (group, options) {
486
+ var make3 = /* @__PURE__ */ fnUntraced(function* (group, options) {
487
487
  const clientId = clientIdCounter++;
488
488
  const {
489
489
  codecFor,
@@ -829,4 +829,4 @@ var layerProtocolSocket = (options) => effect(Protocol)(makeProtocolSocket(optio
829
829
  class ConnectionHooks extends (/* @__PURE__ */ Service2()("effect/rpc/RpcClient/ConnectionHooks")) {
830
830
  }
831
831
 
832
- export { layerJson, make4, withHeaders, layerProtocolSocket, ConnectionHooks };
832
+ export { layerJson, make3, withHeaders, layerProtocolSocket, ConnectionHooks };
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  isString2
4
- } from "./chunk-x0ma41ys.js";
4
+ } from "./chunk-n381rqax.js";
5
5
 
6
6
  // packages/core/src/question-recommendation.ts
7
7
  var optionValue = (option) => isString2(option) ? option : option.value;
@@ -24,11 +24,11 @@ import {
24
24
  Record,
25
25
  Int,
26
26
  fromJsonString
27
- } from "./chunk-x0ma41ys.js";
27
+ } from "./chunk-n381rqax.js";
28
28
  import {
29
29
  withDefault,
30
30
  String2
31
- } from "./chunk-3mbp8cse.js";
31
+ } from "./chunk-2xeq2a7j.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-1k6z8q79.js";
42
+ } from "./chunk-pty4b78m.js";
43
43
 
44
44
  // packages/core/src/npm-registry.ts
45
45
  var KitManifest = Struct({
@@ -9,10 +9,10 @@ import {
9
9
  readOpencode2,
10
10
  databaseStamp2,
11
11
  runOpencodeReader2
12
- } from "./chunk-wh3pjr9r.js";
13
- import"./chunk-134jdvs6.js";
14
- import"./chunk-3mbp8cse.js";
15
- import"./chunk-x0ma41ys.js";
12
+ } from "./chunk-7wq13jgx.js";
13
+ import"./chunk-6evexbdx.js";
14
+ import"./chunk-2xeq2a7j.js";
15
+ import"./chunk-n381rqax.js";
16
16
  export {
17
17
  databaseStamp2 as databaseStamp,
18
18
  decoded2 as decoded,
@@ -13,11 +13,11 @@ import {
13
13
  ArraySchema,
14
14
  decodeJsonStringOption,
15
15
  encodeUnknownJsonStringSync
16
- } from "./chunk-x0ma41ys.js";
16
+ } from "./chunk-n381rqax.js";
17
17
  import {
18
18
  replaceSecretReferences,
19
19
  secretReferencesIn
20
- } from "./chunk-9h16pekj.js";
20
+ } from "./chunk-5tgpa02q.js";
21
21
 
22
22
  // packages/agent-runtime/src/srt-step.ts
23
23
  import { SandboxRuntimeConfigSchema } from "@anthropic-ai/sandbox-runtime";