@kitman-sh/cli 0.52.0 → 0.54.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-h5ydhdhx.js → chunk-0my9yc76.js} +72 -72
  2. package/dist/{chunk-kt26vpwf.js → chunk-0yqsrr9j.js} +9 -9
  3. package/dist/{chunk-eqh0h088.js → chunk-176b6p9g.js} +117 -42
  4. package/dist/{chunk-wb04fv2s.js → chunk-47ftjd7j.js} +50 -32
  5. package/dist/{chunk-qsbq9gvr.js → chunk-7eqzzcvj.js} +200 -347
  6. package/dist/{chunk-mmt6xq48.js → chunk-b0zap0sc.js} +2 -2
  7. package/dist/{chunk-2t1hcdeq.js → chunk-ctrk0mrt.js} +20 -20
  8. package/dist/{chunk-zb4t1yrt.js → chunk-e4ced6vj.js} +102 -60
  9. package/dist/{chunk-bhz25x76.js → chunk-fd9cfazr.js} +3 -3
  10. package/dist/{chunk-xbqd3kqc.js → chunk-h52fkf0n.js} +19 -19
  11. package/dist/{chunk-5yygjn0k.js → chunk-hnfq9egr.js} +1 -1
  12. package/dist/{chunk-tqspx38s.js → chunk-hs9frges.js} +2 -2
  13. package/dist/{chunk-bj0zchck.js → chunk-jz2b3htb.js} +193 -35
  14. package/dist/{chunk-q2z8rct0.js → chunk-keveyqbv.js} +4 -4
  15. package/dist/{chunk-a40yta1r.js → chunk-kpgkhx9j.js} +3 -3
  16. package/dist/{chunk-trtgab3h.js → chunk-p77428sa.js} +11 -19
  17. package/dist/{chunk-tfznw549.js → chunk-q22ar0q6.js} +2 -2
  18. package/dist/{chunk-axfp5tzk.js → chunk-sygnhza2.js} +10 -10
  19. package/dist/{chunk-my9db578.js → chunk-t94stfev.js} +9 -9
  20. package/dist/{chunk-84qb67e2.js → chunk-wsm4adrn.js} +1 -1
  21. package/dist/{chunk-chbdcf34.js → chunk-xfhrsdc6.js} +17 -13
  22. package/dist/{chunk-qjfzcrv5.js → chunk-xs1cdxfn.js} +4 -4
  23. package/dist/{chunk-wxg9k10v.js → chunk-xwte7af6.js} +1 -1
  24. package/dist/{chunk-pppryg54.js → chunk-yn5c3tzd.js} +12 -12
  25. package/dist/{chunk-2nq80r46.js → chunk-z1d5jx6m.js} +14 -60
  26. package/dist/{chunk-9hde8p6b.js → chunk-zs1maxqg.js} +6 -6
  27. package/dist/index.js +4 -4
  28. package/package.json +1 -1
@@ -186,7 +186,60 @@ import {
186
186
  decodeJsonStringSync,
187
187
  encodeUnknownJsonStringSync,
188
188
  storable
189
- } from "./chunk-zb4t1yrt.js";
189
+ } from "./chunk-e4ced6vj.js";
190
+ import {
191
+ empty2,
192
+ currentTimeMillis,
193
+ join,
194
+ interrupt,
195
+ interruptAll,
196
+ unbounded,
197
+ publishUnsafe,
198
+ unbounded2,
199
+ offer,
200
+ makeUnsafe3,
201
+ make10,
202
+ fromQueue,
203
+ fromPubSub,
204
+ map2,
205
+ tap,
206
+ merge2,
207
+ filter,
208
+ take2,
209
+ mapAccum,
210
+ decodeText,
211
+ encodeText,
212
+ splitLines,
213
+ run,
214
+ runCollect,
215
+ runFold,
216
+ runHead,
217
+ runForEach,
218
+ FileSystem,
219
+ Path,
220
+ embeddedFile,
221
+ extractEmbeddedFile,
222
+ withDefault,
223
+ String2,
224
+ optionalEnv,
225
+ operatorConfigHome,
226
+ tempDirectoryScoped,
227
+ harnessesUnsupportedInSrt2,
228
+ harnessesUnsupportedInDocker2,
229
+ compiled2,
230
+ pinnedSrtCommand2,
231
+ pinnedSrtStepCommand2,
232
+ runSrtCli2,
233
+ kitmanCacheDirectory2,
234
+ srtSettings2,
235
+ srtCacheEnvironment2,
236
+ srtInheritedEnv2,
237
+ inheritedEnvironment2,
238
+ withOnlyEnvironment2,
239
+ writeSrtSettings2,
240
+ srtStepArgv2,
241
+ srtArgv2
242
+ } from "./chunk-jz2b3htb.js";
190
243
  import {
191
244
  SecureRandom,
192
245
  layerWebCrypto,
@@ -277,60 +330,7 @@ import {
277
330
  checkServicesFile,
278
331
  checkServices,
279
332
  serviceChecks
280
- } from "./chunk-qsbq9gvr.js";
281
- import {
282
- empty2,
283
- currentTimeMillis,
284
- join,
285
- interrupt,
286
- interruptAll,
287
- unbounded,
288
- publishUnsafe,
289
- unbounded2,
290
- offer,
291
- makeUnsafe3,
292
- make10,
293
- fromQueue,
294
- fromPubSub,
295
- map2,
296
- tap,
297
- merge2,
298
- filter,
299
- take2,
300
- mapAccum,
301
- decodeText,
302
- encodeText,
303
- splitLines,
304
- run,
305
- runCollect,
306
- runFold,
307
- runHead,
308
- runForEach,
309
- FileSystem,
310
- Path,
311
- embeddedFile,
312
- extractEmbeddedFile,
313
- withDefault,
314
- String2,
315
- optionalEnv,
316
- operatorConfigHome,
317
- tempDirectoryScoped,
318
- harnessesUnsupportedInSrt2,
319
- harnessesUnsupportedInDocker2,
320
- compiled2,
321
- pinnedSrtCommand2,
322
- pinnedSrtStepCommand2,
323
- runSrtCli2,
324
- kitmanCacheDirectory2,
325
- srtSettings2,
326
- srtCacheEnvironment2,
327
- srtInheritedEnv2,
328
- inheritedEnvironment2,
329
- withOnlyEnvironment2,
330
- writeSrtSettings2,
331
- srtStepArgv2,
332
- srtArgv2
333
- } from "./chunk-bj0zchck.js";
333
+ } from "./chunk-7eqzzcvj.js";
334
334
  import {
335
335
  writeAgentEnvironmentConfigFile2,
336
336
  readManifestSkillPaths2,
@@ -346,8 +346,8 @@ import {
346
346
  applyAgentEnvironmentMaterialization2,
347
347
  isPathWithin2,
348
348
  skillIdentity2
349
- } from "./chunk-my9db578.js";
350
- import"./chunk-a40yta1r.js";
349
+ } from "./chunk-t94stfev.js";
350
+ import"./chunk-kpgkhx9j.js";
351
351
  import {
352
352
  egressAllowed,
353
353
  writeSecretRegistry,
@@ -357,7 +357,7 @@ import {
357
357
  secretFilter2,
358
358
  opaqueTunnelRefusal2,
359
359
  isOpaqueConnectReason2
360
- } from "./chunk-tfznw549.js";
360
+ } from "./chunk-q22ar0q6.js";
361
361
  import {
362
362
  sliceBytes2,
363
363
  maxLineBytes2,
@@ -367,29 +367,29 @@ import {
367
367
  lookAtOpencode2,
368
368
  readOpencode2,
369
369
  databaseStamp2
370
- } from "./chunk-pppryg54.js";
370
+ } from "./chunk-yn5c3tzd.js";
371
371
  import {
372
372
  uploadRunFile,
373
373
  programLease,
374
374
  rpcRunFiles,
375
375
  programHostsEnv,
376
376
  undeclaredHostsEnv
377
- } from "./chunk-chbdcf34.js";
378
- import"./chunk-kt26vpwf.js";
377
+ } from "./chunk-xfhrsdc6.js";
378
+ import"./chunk-0yqsrr9j.js";
379
379
  import {
380
380
  nextInt
381
- } from "./chunk-5yygjn0k.js";
382
- import"./chunk-tqspx38s.js";
381
+ } from "./chunk-hnfq9egr.js";
382
+ import"./chunk-hs9frges.js";
383
383
  import {
384
384
  ChildProcessSpawner,
385
- make3
386
- } from "./chunk-2nq80r46.js";
387
- import"./chunk-2t1hcdeq.js";
385
+ make2
386
+ } from "./chunk-z1d5jx6m.js";
387
+ import"./chunk-ctrk0mrt.js";
388
388
  import {
389
389
  Id,
390
390
  secretReference,
391
391
  secretPlaceholder
392
- } from "./chunk-wxg9k10v.js";
392
+ } from "./chunk-xwte7af6.js";
393
393
 
394
394
  // packages/core/src/sync-kit.ts
395
395
  import { createHash } from "crypto";
@@ -3335,7 +3335,7 @@ var Proto2 = {
3335
3335
  };
3336
3336
  }
3337
3337
  };
3338
- var make2 = (value) => map9(unbounded({
3338
+ var make3 = (value) => map9(unbounded({
3339
3339
  replay: 1
3340
3340
  }), (pubsub) => {
3341
3341
  const self = Object.create(Proto2);
@@ -5168,7 +5168,7 @@ var runAttempt = (request, options) => gen(function* () {
5168
5168
  return isTagged(terminal.failure, "HerdrCoreRpcError") ? failed("harness_launch_failed", `herdr-core refused to start the Harness: ${terminal.failure.message}`) : { status: "unreported", reason: "herdr_unavailable" };
5169
5169
  }
5170
5170
  const { address } = terminal.success;
5171
- const seen = yield* make2({ status: null, turn: 0, end: undefined });
5171
+ const seen = yield* make3({ status: null, turn: 0, end: undefined });
5172
5172
  yield* forkScoped(follow(options.core, attempt.id, address, seen));
5173
5173
  const stop = gen(function* () {
5174
5174
  if ((yield* get2(seen)).end === "unreachable")
@@ -8909,7 +8909,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
8909
8909
  const input = yield* unbounded2();
8910
8910
  const pending = new Map;
8911
8911
  let lastId = 0;
8912
- const handle = yield* spawner.spawn(make3(binary, ["app-server"], {
8912
+ const handle = yield* spawner.spawn(make2(binary, ["app-server"], {
8913
8913
  cwd: env.home,
8914
8914
  extendEnv: true,
8915
8915
  env: { HOME: env.home, CODEX_HOME: env.codexHome },
@@ -9072,7 +9072,7 @@ var handshake = [
9072
9072
  `).join("");
9073
9073
  var kitmanMcpPreflight = (mcp) => gen(function* () {
9074
9074
  const spawner = yield* ChildProcessSpawner;
9075
- const server = yield* spawner.spawn(make3(mcp.command, [...mcp.args], {
9075
+ const server = yield* spawner.spawn(make2(mcp.command, [...mcp.args], {
9076
9076
  extendEnv: true,
9077
9077
  env: mcp.env,
9078
9078
  stdin: { stream: make10(new TextEncoder().encode(handshake)), endOnDone: false },
@@ -9155,7 +9155,7 @@ var programProcessExecutor = (input) => (work) => gen(function* () {
9155
9155
  };
9156
9156
  const { ended, output } = sandbox === undefined ? yield* gen(function* () {
9157
9157
  const spawner = yield* ChildProcessSpawner;
9158
- const handle = yield* spawner.spawn(make3(input.bun ?? process.execPath, [file], {
9158
+ const handle = yield* spawner.spawn(make2(input.bun ?? process.execPath, [file], {
9159
9159
  stdin: make10(new TextEncoder().encode(stdin)),
9160
9160
  stdout: "pipe",
9161
9161
  stderr: "pipe",
@@ -6,7 +6,10 @@ import {
6
6
  gen,
7
7
  flatMap3,
8
8
  provideContext2
9
- } from "./chunk-zb4t1yrt.js";
9
+ } from "./chunk-e4ced6vj.js";
10
+ import {
11
+ runForEach
12
+ } from "./chunk-jz2b3htb.js";
10
13
  import {
11
14
  WebSocketConstructor,
12
15
  layerWebSocketConstructorGlobal,
@@ -16,16 +19,13 @@ import {
16
19
  RunnerReplicaRpcs,
17
20
  RunnerRunFileRpcs,
18
21
  ProgramRpcs
19
- } from "./chunk-qsbq9gvr.js";
20
- import {
21
- runForEach
22
- } from "./chunk-bj0zchck.js";
22
+ } from "./chunk-7eqzzcvj.js";
23
23
  import {
24
24
  layerJson,
25
- make4,
25
+ make3,
26
26
  withHeaders,
27
27
  layerProtocolSocket
28
- } from "./chunk-2t1hcdeq.js";
28
+ } from "./chunk-ctrk0mrt.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)),