@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.
- package/dist/{chunk-x9dhxfts.js → chunk-148mjppg.js} +5 -5
- package/dist/{chunk-pp1p3g6e.js → chunk-4kssrezn.js} +6 -1
- package/dist/{chunk-ctasxxz5.js → chunk-5j3cxsnp.js} +10 -10
- package/dist/{chunk-7thnf14y.js → chunk-5y5axze6.js} +609 -6
- package/dist/{chunk-mbctzx7e.js → chunk-61k67vxh.js} +76 -1389
- package/dist/{chunk-arvwar2c.js → chunk-7evwar6b.js} +1 -1
- package/dist/{chunk-mej2bx5n.js → chunk-99ver3za.js} +4 -4
- package/dist/{chunk-jagzz148.js → chunk-axdmbr61.js} +26 -26
- package/dist/{chunk-p6spvbwq.js → chunk-dgb6s5vq.js} +482 -100
- package/dist/{chunk-v290mf51.js → chunk-dj7pp4w4.js} +179 -35
- package/dist/{chunk-eg8f5ncv.js → chunk-dkpqwk0q.js} +7 -7
- package/dist/{chunk-r8p3nxcp.js → chunk-eerh2t20.js} +10 -10
- package/dist/{chunk-jafetf7z.js → chunk-g53wn1q8.js} +2 -2
- package/dist/chunk-g7vk5tjp.js +1109 -0
- package/dist/{chunk-vjmz23rs.js → chunk-gwcqz1bj.js} +1 -1
- package/dist/{chunk-wh1pa2aa.js → chunk-m32wb6t0.js} +245 -108
- package/dist/{chunk-3bj7sc3v.js → chunk-mmetyep8.js} +7 -7
- package/dist/{chunk-30397r95.js → chunk-mtgkvbk4.js} +4 -4
- package/dist/{chunk-dzh9e6n2.js → chunk-q0yna8sw.js} +52 -35
- package/dist/{chunk-6vns3ej0.js → chunk-rjfxnk05.js} +5 -5
- package/dist/{chunk-g5bs3f6z.js → chunk-twp7aprz.js} +4 -6
- package/dist/{chunk-x0b92bjb.js → chunk-vtn088tq.js} +6 -6
- package/dist/{chunk-b6thzgc9.js → chunk-wczs5vrq.js} +2 -2
- package/dist/{chunk-11p4wf6n.js → chunk-xgwjcq4z.js} +3 -3
- package/dist/egress-proxy.ts +138 -21
- package/dist/half-close-relay.ts +125 -0
- package/dist/index.js +4 -4
- package/dist/tcp-forwarder.ts +29 -0
- package/package.json +1 -1
- package/dist/chunk-1mc9vgcr.js +0 -39
- package/dist/chunk-jfvq7s24.js +0 -145
- package/dist/chunk-txwt6r25.js +0 -1731
- package/dist/chunk-vyv0p5eq.js +0 -3183
- package/dist/chunk-z821b2gp.js +0 -164
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
3
|
-
import"./chunk-
|
|
4
|
-
import"./chunk-
|
|
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-
|
|
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-
|
|
36
|
-
import"./chunk-
|
|
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-
|
|
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-
|
|
59
|
-
import"./chunk-
|
|
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-
|
|
69
|
-
import"./chunk-x9dhxfts.js";
|
|
68
|
+
} from "./chunk-g7vk5tjp.js";
|
|
70
69
|
import {
|
|
71
70
|
ChildProcessSpawner,
|
|
72
|
-
|
|
73
|
-
} from "./chunk-
|
|
74
|
-
import"./chunk-
|
|
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(
|
|
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
|
|
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.
|
|
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,
|