@kitman-sh/cli 0.44.0 → 0.45.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-8a7337s1.js → chunk-04wqa07j.js} +1 -1
  2. package/dist/{chunk-d0rx9esz.js → chunk-0dfg674z.js} +7 -7
  3. package/dist/{chunk-9h16pekj.js → chunk-4vxbxjf8.js} +1 -1
  4. package/dist/{chunk-dj873p0e.js → chunk-5gbt1vhm.js} +10 -10
  5. package/dist/{chunk-1c4wk9dr.js → chunk-5pjbxhxy.js} +3 -3
  6. package/dist/{chunk-3mbp8cse.js → chunk-5smh4dp2.js} +17 -26
  7. package/dist/{chunk-1k6z8q79.js → chunk-69y8j7fs.js} +125 -116
  8. package/dist/{chunk-wh3pjr9r.js → chunk-8gkrs473.js} +13 -13
  9. package/dist/{chunk-5ccz7ghp.js → chunk-9qvgbp6k.js} +23 -23
  10. package/dist/{chunk-k2re3tp5.js → chunk-9ykh05hz.js} +1 -1
  11. package/dist/{chunk-ncp13gyf.js → chunk-a71b15k3.js} +2 -2
  12. package/dist/{chunk-d2tpz1yp.js → chunk-e3dv8hzy.js} +1 -1
  13. package/dist/{chunk-hmctc4eq.js → chunk-es6rnmyw.js} +3 -3
  14. package/dist/{chunk-wkg1v0kd.js → chunk-f957cxrx.js} +5 -5
  15. package/dist/{chunk-zvmdyf3v.js → chunk-fmvdwf5h.js} +24 -24
  16. package/dist/{chunk-134jdvs6.js → chunk-fqh4pj6b.js} +14 -60
  17. package/dist/{chunk-dre4f6s4.js → chunk-g26y214g.js} +9 -9
  18. package/dist/{chunk-x0ma41ys.js → chunk-k462v2v7.js} +70 -28
  19. package/dist/{chunk-j60f2tr1.js → chunk-k7eh8tac.js} +4 -4
  20. package/dist/{chunk-zkvrxna8.js → chunk-n3jpxd14.js} +2 -2
  21. package/dist/{chunk-7rj9d0rp.js → chunk-qzwsh96c.js} +2 -2
  22. package/dist/{chunk-dp6v658s.js → chunk-tfwgeqx5.js} +4 -4
  23. package/dist/{chunk-gw0pc35c.js → chunk-tqv14b4c.js} +19 -19
  24. package/dist/{chunk-qkwkxn4d.js → chunk-tx9aey19.js} +74 -74
  25. package/dist/{chunk-wvnsqt17.js → chunk-yyz9xrc1.js} +6 -6
  26. package/dist/{chunk-3zy2vbp0.js → chunk-zx86g3dw.js} +10 -10
  27. package/dist/index.js +4 -4
  28. package/package.json +1 -1
@@ -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-k462v2v7.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-69y8j7fs.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-5smh4dp2.js";
331
331
  import {
332
332
  writeAgentEnvironmentConfigFile2,
333
333
  readManifestSkillPaths2,
@@ -343,8 +343,8 @@ import {
343
343
  applyAgentEnvironmentMaterialization2,
344
344
  isPathWithin2,
345
345
  skillIdentity2
346
- } from "./chunk-dre4f6s4.js";
347
- import"./chunk-hmctc4eq.js";
346
+ } from "./chunk-g26y214g.js";
347
+ import"./chunk-es6rnmyw.js";
348
348
  import {
349
349
  egressAllowed,
350
350
  writeSecretRegistry,
@@ -354,7 +354,7 @@ import {
354
354
  secretFilter2,
355
355
  opaqueTunnelRefusal2,
356
356
  isOpaqueConnectReason2
357
- } from "./chunk-zkvrxna8.js";
357
+ } from "./chunk-n3jpxd14.js";
358
358
  import {
359
359
  sliceBytes2,
360
360
  maxLineBytes2,
@@ -364,29 +364,29 @@ import {
364
364
  lookAtOpencode2,
365
365
  readOpencode2,
366
366
  databaseStamp2
367
- } from "./chunk-wh3pjr9r.js";
367
+ } from "./chunk-8gkrs473.js";
368
368
  import {
369
369
  uploadRunFile,
370
370
  programLease,
371
371
  rpcRunFiles,
372
372
  programHostsEnv,
373
373
  undeclaredHostsEnv
374
- } from "./chunk-dj873p0e.js";
375
- import"./chunk-d0rx9esz.js";
374
+ } from "./chunk-5gbt1vhm.js";
375
+ import"./chunk-0dfg674z.js";
376
376
  import {
377
377
  nextInt
378
- } from "./chunk-8a7337s1.js";
379
- import"./chunk-k2re3tp5.js";
378
+ } from "./chunk-04wqa07j.js";
379
+ import"./chunk-9ykh05hz.js";
380
380
  import {
381
381
  ChildProcessSpawner,
382
- make3
383
- } from "./chunk-134jdvs6.js";
384
- import"./chunk-wkg1v0kd.js";
382
+ make2
383
+ } from "./chunk-fqh4pj6b.js";
384
+ import"./chunk-f957cxrx.js";
385
385
  import {
386
386
  Id,
387
387
  secretReference,
388
388
  secretPlaceholder
389
- } from "./chunk-9h16pekj.js";
389
+ } from "./chunk-4vxbxjf8.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,
@@ -4,12 +4,12 @@ import {
4
4
  runnerRpcUrl2,
5
5
  makeRunnerRpcClient2,
6
6
  makeProgramRpcClient2
7
- } from "./chunk-d0rx9esz.js";
8
- import"./chunk-wkg1v0kd.js";
9
- import"./chunk-1k6z8q79.js";
10
- import"./chunk-9h16pekj.js";
11
- import"./chunk-3mbp8cse.js";
12
- import"./chunk-x0ma41ys.js";
7
+ } from "./chunk-0dfg674z.js";
8
+ import"./chunk-f957cxrx.js";
9
+ import"./chunk-69y8j7fs.js";
10
+ import"./chunk-4vxbxjf8.js";
11
+ import"./chunk-5smh4dp2.js";
12
+ import"./chunk-k462v2v7.js";
13
13
  export {
14
14
  makeProgramRpcClient2 as makeProgramRpcClient,
15
15
  makeRunnerRpcClient2 as makeRunnerRpcClient,
@@ -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-k462v2v7.js";
17
+ import {
18
+ FileSystem,
19
+ Path
20
+ } from "./chunk-5smh4dp2.js";
21
21
  import {
22
22
  tomlTableHeader2,
23
23
  tomlKeyPath2,
24
24
  kitmanSkillEntry,
25
25
  isPathWithin2
26
- } from "./chunk-dre4f6s4.js";
26
+ } from "./chunk-g26y214g.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-69y8j7fs.js";
35
+ import"./chunk-es6rnmyw.js";
36
+ import"./chunk-fqh4pj6b.js";
37
+ import"./chunk-4vxbxjf8.js";
38
38
 
39
39
  // packages/agent-runtime/src/kit-setup-sync.ts
40
40
  class KitSyncError extends TaggedError("KitSyncError") {
package/dist/index.js CHANGED
@@ -5,15 +5,15 @@
5
5
  var args = process.argv.slice(2);
6
6
  if (args[0] === "srt") {
7
7
  process.argv.splice(2, 1);
8
- const { runSrtCli } = await import("./chunk-ncp13gyf.js");
8
+ const { runSrtCli } = await import("./chunk-a71b15k3.js");
9
9
  await runSrtCli();
10
10
  } else if (args[0] === "srt-step") {
11
- const { runSrtStep } = await import("./chunk-1c4wk9dr.js");
11
+ const { runSrtStep } = await import("./chunk-5pjbxhxy.js");
12
12
  await runSrtStep(args.slice(1));
13
13
  } else if (args[0] === "opencode-read") {
14
- const { runOpencodeReader } = await import("./chunk-dp6v658s.js");
14
+ const { runOpencodeReader } = await import("./chunk-tfwgeqx5.js");
15
15
  runOpencodeReader();
16
16
  } else {
17
- const { runCli } = await import("./chunk-5ccz7ghp.js");
17
+ const { runCli } = await import("./chunk-9qvgbp6k.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.44.0",
3
+ "version": "0.45.0",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "bin": {