@kitman-sh/cli 0.13.4 → 0.13.6

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-5zth85pj.js → chunk-27pv44t3.js} +2 -2
  2. package/dist/{chunk-5zhh41gb.js → chunk-2x1q8z5t.js} +4 -4
  3. package/dist/{chunk-x97wk81p.js → chunk-3teferzd.js} +4 -4
  4. package/dist/{chunk-mtkstrh3.js → chunk-4nfan8t6.js} +14 -60
  5. package/dist/{chunk-80w7aane.js → chunk-89hds8q4.js} +26 -26
  6. package/dist/{chunk-fhy47ebn.js → chunk-9t8afbrw.js} +6 -6
  7. package/dist/{chunk-fw4zkr03.js → chunk-a0wt1r43.js} +24 -24
  8. package/dist/{chunk-wyrxh8rq.js → chunk-at4e0xvg.js} +7 -7
  9. package/dist/{chunk-gy9rf14f.js → chunk-bz4bp0q7.js} +3 -3
  10. package/dist/{chunk-cbpb2rww.js → chunk-cabmcvy1.js} +7 -7
  11. package/dist/{chunk-8r76zwpy.js → chunk-cg3xstek.js} +3 -3
  12. package/dist/{chunk-1yr345dx.js → chunk-hg8wgm04.js} +4 -4
  13. package/dist/{chunk-f7qygpcv.js → chunk-j974anp7.js} +1 -1
  14. package/dist/{chunk-gq7y5v3e.js → chunk-mm2m3bys.js} +1 -1
  15. package/dist/{chunk-vys24xfp.js → chunk-mwkn1c5q.js} +113 -123
  16. package/dist/{chunk-12qchvpn.js → chunk-qj412x98.js} +11 -11
  17. package/dist/{chunk-ny4ek749.js → chunk-r08sz4ry.js} +6 -6
  18. package/dist/{chunk-9cj69m9m.js → chunk-s06x2ktk.js} +7 -7
  19. package/dist/{chunk-q5w3v4k1.js → chunk-s8m2tzdr.js} +1 -1
  20. package/dist/{chunk-y1krmnbv.js → chunk-skqn4h13.js} +2 -2
  21. package/dist/{chunk-0h49y8gf.js → chunk-vktjb2p7.js} +36 -164
  22. package/dist/{chunk-ce73tjqv.js → chunk-vmzr8xcg.js} +7 -6
  23. package/dist/{chunk-zw3gf6r5.js → chunk-x3cc7dfc.js} +226 -40
  24. package/dist/{chunk-pdrm1nty.js → chunk-xc1grg7y.js} +9 -3
  25. package/dist/{chunk-1avftsk4.js → chunk-xy7ze8dj.js} +22 -22
  26. package/dist/index.js +4 -4
  27. package/package.json +1 -1
@@ -4,12 +4,12 @@ import {
4
4
  runnerRpcUrl2,
5
5
  makeRunnerRpcClient2,
6
6
  makeProgramRpcClient2
7
- } from "./chunk-wyrxh8rq.js";
8
- import"./chunk-ny4ek749.js";
9
- import"./chunk-vys24xfp.js";
10
- import"./chunk-q5w3v4k1.js";
11
- import"./chunk-0h49y8gf.js";
12
- import"./chunk-zw3gf6r5.js";
7
+ } from "./chunk-at4e0xvg.js";
8
+ import"./chunk-r08sz4ry.js";
9
+ import"./chunk-mwkn1c5q.js";
10
+ import"./chunk-s8m2tzdr.js";
11
+ import"./chunk-vktjb2p7.js";
12
+ import"./chunk-x3cc7dfc.js";
13
13
  export {
14
14
  makeProgramRpcClient2 as makeProgramRpcClient,
15
15
  makeRunnerRpcClient2 as makeRunnerRpcClient,
@@ -41,7 +41,7 @@ import {
41
41
  isFailure2,
42
42
  hasInterrupts,
43
43
  makeUnsafe5,
44
- make16,
44
+ make15,
45
45
  _await,
46
46
  fail5,
47
47
  isDoneUnsafe,
@@ -168,14 +168,13 @@ import {
168
168
  decodeJsonStringSync,
169
169
  encodeUnknownJsonStringSync,
170
170
  storable
171
- } from "./chunk-zw3gf6r5.js";
171
+ } from "./chunk-x3cc7dfc.js";
172
172
  import {
173
173
  Id,
174
174
  secretReference,
175
175
  secretPlaceholder
176
- } from "./chunk-q5w3v4k1.js";
176
+ } from "./chunk-s8m2tzdr.js";
177
177
  import {
178
- currentTimeMillis,
179
178
  SecureRandom,
180
179
  layerWebCrypto,
181
180
  layer,
@@ -247,8 +246,9 @@ import {
247
246
  installCommand,
248
247
  checkServicesFile,
249
248
  checkServices
250
- } from "./chunk-vys24xfp.js";
249
+ } from "./chunk-mwkn1c5q.js";
251
250
  import {
251
+ currentTimeMillis,
252
252
  join,
253
253
  interrupt,
254
254
  unbounded,
@@ -256,7 +256,7 @@ import {
256
256
  unbounded2,
257
257
  offer,
258
258
  makeUnsafe3,
259
- make11,
259
+ make10,
260
260
  fromQueue,
261
261
  fromPubSub,
262
262
  map2,
@@ -288,7 +288,7 @@ import {
288
288
  writeSrtSettings2,
289
289
  srtStepArgv2,
290
290
  srtArgv2
291
- } from "./chunk-0h49y8gf.js";
291
+ } from "./chunk-vktjb2p7.js";
292
292
  import {
293
293
  writeAgentEnvironmentConfigFile2,
294
294
  readManifestSkillPaths2,
@@ -304,8 +304,8 @@ import {
304
304
  applyAgentEnvironmentMaterialization2,
305
305
  isPathWithin2,
306
306
  skillIdentity2
307
- } from "./chunk-x97wk81p.js";
308
- import"./chunk-8r76zwpy.js";
307
+ } from "./chunk-3teferzd.js";
308
+ import"./chunk-cg3xstek.js";
309
309
  import {
310
310
  egressAllowed,
311
311
  writeSecretRegistry,
@@ -315,7 +315,7 @@ import {
315
315
  secretFilter2,
316
316
  opaqueTunnelRefusal2,
317
317
  isOpaqueConnectReason2
318
- } from "./chunk-y1krmnbv.js";
318
+ } from "./chunk-skqn4h13.js";
319
319
  import {
320
320
  sliceBytes2,
321
321
  maxLineBytes2,
@@ -323,23 +323,23 @@ import {
323
323
  decodedOption2,
324
324
  decoded2,
325
325
  readOpencode2
326
- } from "./chunk-cbpb2rww.js";
326
+ } from "./chunk-cabmcvy1.js";
327
327
  import {
328
328
  uploadRunFile,
329
329
  programLease,
330
330
  rpcRunFiles,
331
331
  programHostsEnv,
332
332
  undeclaredHostsEnv
333
- } from "./chunk-ce73tjqv.js";
334
- import"./chunk-wyrxh8rq.js";
333
+ } from "./chunk-vmzr8xcg.js";
334
+ import"./chunk-at4e0xvg.js";
335
335
  import {
336
336
  nextInt
337
- } from "./chunk-gq7y5v3e.js";
337
+ } from "./chunk-mm2m3bys.js";
338
338
  import {
339
339
  ChildProcessSpawner,
340
- make3
341
- } from "./chunk-mtkstrh3.js";
342
- import"./chunk-ny4ek749.js";
340
+ make2
341
+ } from "./chunk-4nfan8t6.js";
342
+ import"./chunk-r08sz4ry.js";
343
343
 
344
344
  // packages/core/src/sync-kit.ts
345
345
  import { createHash } from "crypto";
@@ -4324,7 +4324,7 @@ var runAttempt = (request, options) => gen(function* () {
4324
4324
  [RunnerLabel]: request.runnerId,
4325
4325
  "kitman.run": attempt.runId,
4326
4326
  "kitman.attempt": attempt.id,
4327
- ...request.sharedRunner ? undefined : { "herdr.space": `kitman-${attempt.runId}`, "herdr.tab": attempt.stepKey }
4327
+ ...request.sharedRunner ? undefined : { "herdr.space": `kitman-${attempt.runId}`, "herdr.tab": `${attempt.stepKey}-${attempt.id}` }
4328
4328
  }
4329
4329
  });
4330
4330
  const terminal = yield* result(call(run, (connection) => flatMap3(connection.list({ labels: { "kitman.attempt": attempt.id }, all: true }), ([started]) => started === undefined ? run(connection) : succeed6(started))));
@@ -7037,7 +7037,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
7037
7037
  const input = yield* unbounded2();
7038
7038
  const pending = new Map;
7039
7039
  let lastId = 0;
7040
- const handle = yield* spawner.spawn(make3(binary, ["app-server"], {
7040
+ const handle = yield* spawner.spawn(make2(binary, ["app-server"], {
7041
7041
  cwd: env.home,
7042
7042
  extendEnv: true,
7043
7043
  env: { HOME: env.home, CODEX_HOME: env.codexHome },
@@ -7060,7 +7060,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
7060
7060
  return {
7061
7061
  request: (method, params) => gen(function* () {
7062
7062
  const id = ++lastId;
7063
- const deferred = yield* make16();
7063
+ const deferred = yield* make15();
7064
7064
  pending.set(id, deferred);
7065
7065
  yield* send({ id, method, params });
7066
7066
  return yield* _await(deferred).pipe(mapError2((error) => new CodexAppServerFailed({ reason: `${method}: ${error.message}` })));
@@ -7200,10 +7200,10 @@ var handshake = [
7200
7200
  `).join("");
7201
7201
  var kitmanMcpPreflight = (mcp) => gen(function* () {
7202
7202
  const spawner = yield* ChildProcessSpawner;
7203
- const server = yield* spawner.spawn(make3(mcp.command, [...mcp.args], {
7203
+ const server = yield* spawner.spawn(make2(mcp.command, [...mcp.args], {
7204
7204
  extendEnv: true,
7205
7205
  env: mcp.env,
7206
- stdin: { stream: make11(new TextEncoder().encode(handshake)), endOnDone: false },
7206
+ stdin: { stream: make10(new TextEncoder().encode(handshake)), endOnDone: false },
7207
7207
  stderr: "ignore"
7208
7208
  }));
7209
7209
  const reply = yield* server.stdout.pipe(decodeText, splitLines, map2((line) => getOrUndefined(decodeJsonStringOption(line))), filter((message) => isJsonObject(message) && message.id === 2), runHead);
@@ -7276,8 +7276,8 @@ var programProcessExecutor = (input) => (work) => gen(function* () {
7276
7276
  };
7277
7277
  const exitCode = sandbox === undefined ? yield* gen(function* () {
7278
7278
  const spawner = yield* ChildProcessSpawner;
7279
- const handle = yield* spawner.spawn(make3(input.bun ?? process.execPath, [file], {
7280
- stdin: make11(new TextEncoder().encode(stdin)),
7279
+ const handle = yield* spawner.spawn(make2(input.bun ?? process.execPath, [file], {
7280
+ stdin: make10(new TextEncoder().encode(stdin)),
7281
7281
  stdout: "inherit",
7282
7282
  stderr: "inherit",
7283
7283
  extendEnv: false,
@@ -6,10 +6,10 @@ import {
6
6
  gen,
7
7
  flatMap3,
8
8
  provideContext2
9
- } from "./chunk-zw3gf6r5.js";
9
+ } from "./chunk-x3cc7dfc.js";
10
10
  import {
11
11
  runForEach
12
- } from "./chunk-0h49y8gf.js";
12
+ } from "./chunk-vktjb2p7.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-vys24xfp.js";
22
+ } from "./chunk-mwkn1c5q.js";
23
23
  import {
24
24
  layerJson,
25
- make4,
25
+ make3,
26
26
  withHeaders,
27
27
  layerProtocolSocket
28
- } from "./chunk-ny4ek749.js";
28
+ } from "./chunk-r08sz4ry.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)),
@@ -4,9 +4,9 @@ import {
4
4
  opaqueTunnelRefusal2,
5
5
  isOpaqueConnectReason2,
6
6
  runSrtStep2
7
- } from "./chunk-y1krmnbv.js";
8
- import"./chunk-q5w3v4k1.js";
9
- import"./chunk-zw3gf6r5.js";
7
+ } from "./chunk-skqn4h13.js";
8
+ import"./chunk-s8m2tzdr.js";
9
+ import"./chunk-x3cc7dfc.js";
10
10
  export {
11
11
  isOpaqueConnectReason2 as isOpaqueConnectReason,
12
12
  opaqueTunnelRefusal2 as opaqueTunnelRefusal,
@@ -25,16 +25,16 @@ import {
25
25
  isJsonObject,
26
26
  isString2,
27
27
  encodeUnknownJsonStringSync
28
- } from "./chunk-zw3gf6r5.js";
28
+ } from "./chunk-x3cc7dfc.js";
29
29
  import {
30
- make11,
30
+ make10,
31
31
  runForEach,
32
32
  compiled2
33
- } from "./chunk-0h49y8gf.js";
33
+ } from "./chunk-vktjb2p7.js";
34
34
  import {
35
35
  ChildProcessSpawner,
36
- make3
37
- } from "./chunk-mtkstrh3.js";
36
+ make2
37
+ } from "./chunk-4nfan8t6.js";
38
38
 
39
39
  // packages/agent-runtime/src/opencode-store.ts
40
40
  import { lstatSync, readFileSync, realpathSync } from "fs";
@@ -167,8 +167,8 @@ var opencodeReaderCommand = () => compiled2 ? [process.execPath, "opencode-read"
167
167
  var isolatedRead = (store, name, input) => gen(function* () {
168
168
  const spawner = yield* ChildProcessSpawner;
169
169
  const [command, ...args] = opencodeReaderCommand();
170
- const handle = yield* spawner.spawn(make3(command, args, {
171
- stdin: make11(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
170
+ const handle = yield* spawner.spawn(make2(command, args, {
171
+ stdin: make10(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
172
172
  stderr: "ignore",
173
173
  extendEnv: false,
174
174
  env: {},
@@ -24,11 +24,11 @@ import {
24
24
  Record,
25
25
  Int,
26
26
  fromJsonString
27
- } from "./chunk-zw3gf6r5.js";
27
+ } from "./chunk-x3cc7dfc.js";
28
28
  import {
29
29
  withDefault,
30
30
  String2
31
- } from "./chunk-0h49y8gf.js";
31
+ } from "./chunk-vktjb2p7.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-vys24xfp.js";
42
+ } from "./chunk-mwkn1c5q.js";
43
43
 
44
44
  // packages/core/src/npm-registry.ts
45
45
  var KitManifest = Struct({
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import"./chunk-mtkstrh3.js";
2
+ import"./chunk-4nfan8t6.js";
3
3
  import {
4
4
  HERDR_CORE_GENERATION2,
5
5
  HERDR_CORE_INSTALL_COMMAND2,
@@ -12,9 +12,9 @@ import {
12
12
  herdrCoreLayer2,
13
13
  herdrCoreTransportLayer2,
14
14
  updateHerdrCore2
15
- } from "./chunk-vys24xfp.js";
16
- import"./chunk-0h49y8gf.js";
17
- import"./chunk-zw3gf6r5.js";
15
+ } from "./chunk-mwkn1c5q.js";
16
+ import"./chunk-vktjb2p7.js";
17
+ import"./chunk-x3cc7dfc.js";
18
18
  export {
19
19
  HERDR_CORE_GENERATION2 as HERDR_CORE_GENERATION,
20
20
  HERDR_CORE_INSTALL_COMMAND2 as HERDR_CORE_INSTALL_COMMAND,
@@ -4,7 +4,7 @@ import {
4
4
  searchDocs2,
5
5
  readDoc2,
6
6
  pinnedLink2
7
- } from "./chunk-pdrm1nty.js";
7
+ } from "./chunk-xc1grg7y.js";
8
8
  export {
9
9
  DefaultDocsSearchLimit2 as DefaultDocsSearchLimit,
10
10
  pinnedLink2 as pinnedLink,
@@ -3,7 +3,7 @@ import {
3
3
  Random,
4
4
  succeed6,
5
5
  withFiber2
6
- } from "./chunk-zw3gf6r5.js";
6
+ } from "./chunk-x3cc7dfc.js";
7
7
 
8
8
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Random.js
9
9
  var Random2 = Random;