@kitman-sh/cli 0.10.53 → 0.10.55

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 (34) hide show
  1. package/dist/{chunk-x9dhxfts.js → chunk-148mjppg.js} +5 -5
  2. package/dist/{chunk-pp1p3g6e.js → chunk-4kssrezn.js} +6 -1
  3. package/dist/{chunk-ctasxxz5.js → chunk-5j3cxsnp.js} +10 -10
  4. package/dist/{chunk-7thnf14y.js → chunk-5y5axze6.js} +609 -6
  5. package/dist/{chunk-mbctzx7e.js → chunk-61k67vxh.js} +76 -1389
  6. package/dist/{chunk-arvwar2c.js → chunk-7evwar6b.js} +1 -1
  7. package/dist/{chunk-mej2bx5n.js → chunk-99ver3za.js} +4 -4
  8. package/dist/{chunk-jagzz148.js → chunk-axdmbr61.js} +26 -26
  9. package/dist/{chunk-p6spvbwq.js → chunk-dgb6s5vq.js} +482 -100
  10. package/dist/{chunk-v290mf51.js → chunk-dj7pp4w4.js} +179 -35
  11. package/dist/{chunk-eg8f5ncv.js → chunk-dkpqwk0q.js} +7 -7
  12. package/dist/{chunk-r8p3nxcp.js → chunk-eerh2t20.js} +10 -10
  13. package/dist/{chunk-jafetf7z.js → chunk-g53wn1q8.js} +2 -2
  14. package/dist/chunk-g7vk5tjp.js +1109 -0
  15. package/dist/{chunk-vjmz23rs.js → chunk-gwcqz1bj.js} +1 -1
  16. package/dist/{chunk-wh1pa2aa.js → chunk-m32wb6t0.js} +245 -108
  17. package/dist/{chunk-3bj7sc3v.js → chunk-mmetyep8.js} +7 -7
  18. package/dist/{chunk-30397r95.js → chunk-mtgkvbk4.js} +4 -4
  19. package/dist/{chunk-dzh9e6n2.js → chunk-q0yna8sw.js} +52 -35
  20. package/dist/{chunk-6vns3ej0.js → chunk-rjfxnk05.js} +5 -5
  21. package/dist/{chunk-g5bs3f6z.js → chunk-twp7aprz.js} +4 -6
  22. package/dist/{chunk-x0b92bjb.js → chunk-vtn088tq.js} +6 -6
  23. package/dist/{chunk-b6thzgc9.js → chunk-wczs5vrq.js} +2 -2
  24. package/dist/{chunk-11p4wf6n.js → chunk-xgwjcq4z.js} +3 -3
  25. package/dist/egress-proxy.ts +138 -21
  26. package/dist/half-close-relay.ts +125 -0
  27. package/dist/index.js +4 -4
  28. package/dist/tcp-forwarder.ts +29 -0
  29. package/package.json +1 -1
  30. package/dist/chunk-1mc9vgcr.js +0 -39
  31. package/dist/chunk-jfvq7s24.js +0 -145
  32. package/dist/chunk-txwt6r25.js +0 -1731
  33. package/dist/chunk-vyv0p5eq.js +0 -3183
  34. package/dist/chunk-z821b2gp.js +0 -164
@@ -8,7 +8,7 @@ import {
8
8
  isFunction2,
9
9
  isUndefined2,
10
10
  isObjectOrArray
11
- } from "./chunk-mbctzx7e.js";
11
+ } from "./chunk-61k67vxh.js";
12
12
 
13
13
  // packages/core/src/runtime-type.ts
14
14
  var UnsafeJsonObjectKeys = new Set(["__proto__", "constructor", "prototype"]);
@@ -1,12 +1,12 @@
1
1
  // @bun
2
- import"./chunk-mbctzx7e.js";
3
- import"./chunk-arvwar2c.js";
4
- import"./chunk-pp1p3g6e.js";
2
+ import"./chunk-61k67vxh.js";
3
+ import"./chunk-4kssrezn.js";
4
+ import"./chunk-7evwar6b.js";
5
5
  import {
6
6
  decideSecretRequest,
7
7
  readSecretRegistry,
8
8
  appendSecretRefusals
9
- } from "./chunk-jafetf7z.js";
9
+ } from "./chunk-g53wn1q8.js";
10
10
 
11
11
  // packages/agent-runtime/src/srt-step.ts
12
12
  import { SandboxRuntimeConfigSchema } from "@anthropic-ai/sandbox-runtime";
@@ -32,9 +32,20 @@ import {
32
32
  toCodecJson,
33
33
  Json,
34
34
  encodePrettyJsonString
35
- } from "./chunk-mbctzx7e.js";
36
- import"./chunk-arvwar2c.js";
35
+ } from "./chunk-61k67vxh.js";
36
+ import"./chunk-4kssrezn.js";
37
+ import"./chunk-7evwar6b.js";
37
38
  import {
39
+ decodeText,
40
+ mkString,
41
+ FileSystem,
42
+ Path,
43
+ withDefault,
44
+ String2
45
+ } from "./chunk-xgwjcq4z.js";
46
+ import {
47
+ SecureRandom,
48
+ layerWebCrypto,
38
49
  canonicalJson,
39
50
  digestSha256,
40
51
  schemaBodyJson,
@@ -43,36 +54,23 @@ import {
43
54
  layer2,
44
55
  kitmanMcpServer,
45
56
  RunnerRpcProtocolVersion
46
- } from "./chunk-wh1pa2aa.js";
47
- import {
48
- decodeText,
49
- mkString,
50
- FileSystem,
51
- Path,
52
- withDefault,
53
- String2
54
- } from "./chunk-11p4wf6n.js";
57
+ } from "./chunk-m32wb6t0.js";
55
58
  import {
56
59
  Packument,
57
60
  tarballMatches
58
- } from "./chunk-g5bs3f6z.js";
59
- import"./chunk-pp1p3g6e.js";
60
- import"./chunk-ctasxxz5.js";
61
+ } from "./chunk-twp7aprz.js";
62
+ import"./chunk-5j3cxsnp.js";
61
63
  import {
62
64
  AgentDeclaration,
63
- KitDeclarations
64
- } from "./chunk-txwt6r25.js";
65
- import {
65
+ KitDeclarations,
66
66
  describeFlag,
67
67
  Described
68
- } from "./chunk-jfvq7s24.js";
69
- import"./chunk-x9dhxfts.js";
68
+ } from "./chunk-g7vk5tjp.js";
70
69
  import {
71
70
  ChildProcessSpawner,
72
- make7
73
- } from "./chunk-3bj7sc3v.js";
74
- import"./chunk-1mc9vgcr.js";
75
- import"./chunk-z821b2gp.js";
71
+ make3
72
+ } from "./chunk-mmetyep8.js";
73
+ import"./chunk-148mjppg.js";
76
74
 
77
75
  // packages/sdk/src/build/index.ts
78
76
  class DependencyInstallFailed extends TaggedError2()("DependencyInstallFailed", {
@@ -111,7 +109,7 @@ var ConfigAgents = Record(String4, Struct({
111
109
  }));
112
110
  var run = (command, args, cwd) => gen(function* () {
113
111
  const spawner = yield* ChildProcessSpawner;
114
- const handle = yield* spawner.spawn(make7(command, args, { cwd, stdin: "ignore" }));
112
+ const handle = yield* spawner.spawn(make3(command, args, { cwd, stdin: "ignore" }));
115
113
  const [stdout, stderr, exitCode] = yield* all3([
116
114
  mkString(decodeText(handle.stdout)),
117
115
  mkString(decodeText(handle.stderr)),
@@ -412,7 +410,9 @@ var buildKit = (directory, options = {}) => gen(function* () {
412
410
  if (!installed.ok)
413
411
  return yield* new DependencyInstallFailed({ reason: failure(installed) });
414
412
  const packages = yield* kitModules(root);
415
- const entry = path.join(root, ".kitman-build-entry.ts");
413
+ const id = yield* SecureRandom.pipe(flatMap3((random) => random.uuidV4()), provide3(layerWebCrypto));
414
+ const entryName = `.kitman-build-entry-${id}.ts`;
415
+ const entry = path.join(root, entryName);
416
416
  yield* acquireRelease(fs.writeFileString(entry, buildEntry(identity, packages)), () => ignore(fs.remove(entry)));
417
417
  const out = yield* fs.makeTempDirectoryScoped({ prefix: "kitman-kit-" });
418
418
  const bundleFile = path.join(out, "bundle.js");
@@ -478,7 +478,7 @@ var buildKit = (directory, options = {}) => gen(function* () {
478
478
  ...own.schedules === undefined ? undefined : { schedules: own.schedules },
479
479
  carried
480
480
  }).pipe(mapError2((error) => new DeclarationsInvalid({ reason: error.message })));
481
- const bundle = yield* fs.readFile(bundleFile).pipe(mapError2((error) => new BundleFailed({ reason: error.message })));
481
+ const bundle = yield* fs.readFileString(bundleFile).pipe(map8((text) => new TextEncoder().encode(text.replaceAll(entryName, ".kitman-build-entry.ts"))), mapError2((error) => new BundleFailed({ reason: error.message })));
482
482
  return {
483
483
  ...identity,
484
484
  bundle,