@kitman-sh/cli 0.10.62 → 0.10.64
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-a4798jzf.js → chunk-3z0p2wtr.js} +3 -3
- package/dist/{chunk-d3ksv8y1.js → chunk-677etczq.js} +70 -28
- package/dist/{chunk-wtpwkjws.js → chunk-9p6v3jd2.js} +4 -4
- package/dist/{chunk-hxkk42cg.js → chunk-a31qjdsm.js} +7 -7
- package/dist/{chunk-5y050gx7.js → chunk-b9xcawfx.js} +36 -36
- package/dist/{chunk-1z9p4q8b.js → chunk-byhwksbq.js} +2 -2
- package/dist/{chunk-d8awdfdj.js → chunk-dzxahdb7.js} +60 -60
- package/dist/{chunk-sdpjvc1r.js → chunk-fm4m4v6j.js} +107 -116
- package/dist/{chunk-phmma642.js → chunk-fznm6es2.js} +7 -7
- package/dist/{chunk-v01c0k6j.js → chunk-h6360r1c.js} +1 -1
- package/dist/{chunk-rrz0v4fg.js → chunk-ksx5nt4b.js} +5 -5
- package/dist/{chunk-kz8e6cfc.js → chunk-m9v1z0gz.js} +21 -21
- package/dist/{chunk-q3c7vmby.js → chunk-p23kedha.js} +1 -1
- package/dist/{chunk-0fdgam8v.js → chunk-qdn9tnav.js} +26 -17
- package/dist/{chunk-wkccjgwb.js → chunk-rv4r0n7d.js} +4 -4
- package/dist/{chunk-1w81w56v.js → chunk-rzr11xyn.js} +2 -2
- package/dist/{chunk-smgvtzd2.js → chunk-s2d1a2my.js} +7 -7
- package/dist/{chunk-z0z56a72.js → chunk-smmgt31x.js} +9 -9
- package/dist/{chunk-hvev0dve.js → chunk-t47h82ew.js} +11 -11
- package/dist/{chunk-ft2fm6ye.js → chunk-tdp34kqg.js} +19 -19
- package/dist/{chunk-e3tv8mv2.js → chunk-wjs5fpv0.js} +5 -5
- package/dist/{chunk-rrnee9mk.js → chunk-wnwyp9qn.js} +1 -1
- package/dist/{chunk-09jf8588.js → chunk-x306t6v1.js} +11 -11
- package/dist/{chunk-eawcprsb.js → chunk-zej59tf2.js} +14 -60
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -5,7 +5,46 @@ import {
|
|
|
5
5
|
isObject,
|
|
6
6
|
isJsonObject,
|
|
7
7
|
isString
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-h6360r1c.js";
|
|
9
|
+
import {
|
|
10
|
+
join,
|
|
11
|
+
interrupt,
|
|
12
|
+
unbounded,
|
|
13
|
+
publishUnsafe,
|
|
14
|
+
unbounded2,
|
|
15
|
+
offer,
|
|
16
|
+
makeUnsafe3,
|
|
17
|
+
make10,
|
|
18
|
+
fromQueue,
|
|
19
|
+
fromPubSub,
|
|
20
|
+
map2,
|
|
21
|
+
filter,
|
|
22
|
+
decodeText,
|
|
23
|
+
encodeText,
|
|
24
|
+
splitLines,
|
|
25
|
+
run,
|
|
26
|
+
runHead,
|
|
27
|
+
runForEach,
|
|
28
|
+
FileSystem,
|
|
29
|
+
Path,
|
|
30
|
+
embeddedFile,
|
|
31
|
+
extractEmbeddedFile,
|
|
32
|
+
optionalEnv,
|
|
33
|
+
harnessesUnsupportedInSrt2,
|
|
34
|
+
compiled2,
|
|
35
|
+
pinnedSrtCommand2,
|
|
36
|
+
pinnedSrtStepCommand2,
|
|
37
|
+
runSrtCli2,
|
|
38
|
+
kitmanCacheDirectory2,
|
|
39
|
+
srtSettings2,
|
|
40
|
+
srtCacheEnvironment2,
|
|
41
|
+
srtInheritedEnv2,
|
|
42
|
+
inheritedEnvironment2,
|
|
43
|
+
withOnlyEnvironment2,
|
|
44
|
+
writeSrtSettings2,
|
|
45
|
+
srtStepArgv2,
|
|
46
|
+
srtArgv2
|
|
47
|
+
} from "./chunk-qdn9tnav.js";
|
|
9
48
|
import {
|
|
10
49
|
pipeArguments,
|
|
11
50
|
dual,
|
|
@@ -42,7 +81,7 @@ import {
|
|
|
42
81
|
isFailure2,
|
|
43
82
|
hasInterrupts,
|
|
44
83
|
makeUnsafe5,
|
|
45
|
-
|
|
84
|
+
make15,
|
|
46
85
|
_await,
|
|
47
86
|
fail5,
|
|
48
87
|
isDoneUnsafe,
|
|
@@ -156,11 +195,11 @@ import {
|
|
|
156
195
|
encodePrettyJsonString,
|
|
157
196
|
decodeJsonStringSync,
|
|
158
197
|
encodeUnknownJsonStringSync
|
|
159
|
-
} from "./chunk-
|
|
198
|
+
} from "./chunk-677etczq.js";
|
|
160
199
|
import {
|
|
161
200
|
Id,
|
|
162
201
|
secretReference
|
|
163
|
-
} from "./chunk-
|
|
202
|
+
} from "./chunk-wnwyp9qn.js";
|
|
164
203
|
import {
|
|
165
204
|
currentTimeMillis,
|
|
166
205
|
SecureRandom,
|
|
@@ -225,46 +264,7 @@ import {
|
|
|
225
264
|
installCommand,
|
|
226
265
|
checkServicesFile,
|
|
227
266
|
checkServices
|
|
228
|
-
} from "./chunk-
|
|
229
|
-
import {
|
|
230
|
-
join,
|
|
231
|
-
interrupt,
|
|
232
|
-
unbounded,
|
|
233
|
-
publishUnsafe,
|
|
234
|
-
unbounded2,
|
|
235
|
-
offer,
|
|
236
|
-
makeUnsafe3,
|
|
237
|
-
make11,
|
|
238
|
-
fromQueue,
|
|
239
|
-
fromPubSub,
|
|
240
|
-
map2,
|
|
241
|
-
filter,
|
|
242
|
-
decodeText,
|
|
243
|
-
encodeText,
|
|
244
|
-
splitLines,
|
|
245
|
-
run,
|
|
246
|
-
runHead,
|
|
247
|
-
runForEach,
|
|
248
|
-
FileSystem,
|
|
249
|
-
Path,
|
|
250
|
-
embeddedFile,
|
|
251
|
-
extractEmbeddedFile,
|
|
252
|
-
optionalEnv,
|
|
253
|
-
harnessesUnsupportedInSrt2,
|
|
254
|
-
compiled2,
|
|
255
|
-
pinnedSrtCommand2,
|
|
256
|
-
pinnedSrtStepCommand2,
|
|
257
|
-
runSrtCli2,
|
|
258
|
-
kitmanCacheDirectory2,
|
|
259
|
-
srtSettings2,
|
|
260
|
-
srtCacheEnvironment2,
|
|
261
|
-
srtInheritedEnv2,
|
|
262
|
-
inheritedEnvironment2,
|
|
263
|
-
withOnlyEnvironment2,
|
|
264
|
-
writeSrtSettings2,
|
|
265
|
-
srtStepArgv2,
|
|
266
|
-
srtArgv2
|
|
267
|
-
} from "./chunk-0fdgam8v.js";
|
|
267
|
+
} from "./chunk-fm4m4v6j.js";
|
|
268
268
|
import {
|
|
269
269
|
writeAgentEnvironmentConfigFile2,
|
|
270
270
|
readManifestSkillPaths2,
|
|
@@ -280,8 +280,8 @@ import {
|
|
|
280
280
|
applyAgentEnvironmentMaterialization2,
|
|
281
281
|
isPathWithin2,
|
|
282
282
|
skillIdentity2
|
|
283
|
-
} from "./chunk-
|
|
284
|
-
import"./chunk-
|
|
283
|
+
} from "./chunk-smmgt31x.js";
|
|
284
|
+
import"./chunk-3z0p2wtr.js";
|
|
285
285
|
import {
|
|
286
286
|
sliceBytes2,
|
|
287
287
|
maxLineBytes2,
|
|
@@ -289,28 +289,28 @@ import {
|
|
|
289
289
|
decodedOption2,
|
|
290
290
|
decoded2,
|
|
291
291
|
readOpencode2
|
|
292
|
-
} from "./chunk-
|
|
292
|
+
} from "./chunk-x306t6v1.js";
|
|
293
293
|
import {
|
|
294
294
|
writeSecretRegistry,
|
|
295
295
|
secretRefusalLog,
|
|
296
296
|
parseSecretRefusals
|
|
297
|
-
} from "./chunk-
|
|
297
|
+
} from "./chunk-rzr11xyn.js";
|
|
298
298
|
import {
|
|
299
299
|
uploadRunFile,
|
|
300
300
|
programLease,
|
|
301
301
|
rpcRunFiles,
|
|
302
302
|
programHostsEnv,
|
|
303
303
|
undeclaredHostsEnv
|
|
304
|
-
} from "./chunk-
|
|
305
|
-
import"./chunk-
|
|
304
|
+
} from "./chunk-fznm6es2.js";
|
|
305
|
+
import"./chunk-a31qjdsm.js";
|
|
306
306
|
import {
|
|
307
307
|
nextInt
|
|
308
|
-
} from "./chunk-
|
|
308
|
+
} from "./chunk-p23kedha.js";
|
|
309
309
|
import {
|
|
310
310
|
ChildProcessSpawner,
|
|
311
|
-
|
|
312
|
-
} from "./chunk-
|
|
313
|
-
import"./chunk-
|
|
311
|
+
make2
|
|
312
|
+
} from "./chunk-zej59tf2.js";
|
|
313
|
+
import"./chunk-wjs5fpv0.js";
|
|
314
314
|
|
|
315
315
|
// packages/core/src/sync-kit.ts
|
|
316
316
|
import { createHash } from "crypto";
|
|
@@ -5827,7 +5827,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
|
|
|
5827
5827
|
const input = yield* unbounded2();
|
|
5828
5828
|
const pending = new Map;
|
|
5829
5829
|
let lastId = 0;
|
|
5830
|
-
const handle = yield* spawner.spawn(
|
|
5830
|
+
const handle = yield* spawner.spawn(make2(binary, ["app-server"], {
|
|
5831
5831
|
cwd: env.home,
|
|
5832
5832
|
extendEnv: true,
|
|
5833
5833
|
env: { HOME: env.home, CODEX_HOME: env.codexHome },
|
|
@@ -5850,7 +5850,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
|
|
|
5850
5850
|
return {
|
|
5851
5851
|
request: (method, params) => gen(function* () {
|
|
5852
5852
|
const id = ++lastId;
|
|
5853
|
-
const deferred = yield*
|
|
5853
|
+
const deferred = yield* make15();
|
|
5854
5854
|
pending.set(id, deferred);
|
|
5855
5855
|
yield* send({ id, method, params });
|
|
5856
5856
|
return yield* _await(deferred).pipe(mapError2((error) => new CodexAppServerFailed({ reason: `${method}: ${error.message}` })));
|
|
@@ -5990,10 +5990,10 @@ var handshake = [
|
|
|
5990
5990
|
`).join("");
|
|
5991
5991
|
var kitmanMcpPreflight = (mcp) => gen(function* () {
|
|
5992
5992
|
const spawner = yield* ChildProcessSpawner;
|
|
5993
|
-
const server = yield* spawner.spawn(
|
|
5993
|
+
const server = yield* spawner.spawn(make2(mcp.command, [...mcp.args], {
|
|
5994
5994
|
extendEnv: true,
|
|
5995
5995
|
env: mcp.env,
|
|
5996
|
-
stdin: { stream:
|
|
5996
|
+
stdin: { stream: make10(new TextEncoder().encode(handshake)), endOnDone: false },
|
|
5997
5997
|
stderr: "ignore"
|
|
5998
5998
|
}));
|
|
5999
5999
|
const reply = yield* server.stdout.pipe(decodeText, splitLines, map2((line) => getOrUndefined(decodeJsonStringOption(line))), filter((message) => isJsonObject(message) && message.id === 2), runHead);
|
|
@@ -6066,8 +6066,8 @@ var programProcessExecutor = (input) => (work) => gen(function* () {
|
|
|
6066
6066
|
};
|
|
6067
6067
|
const exitCode = sandbox === undefined ? yield* gen(function* () {
|
|
6068
6068
|
const spawner = yield* ChildProcessSpawner;
|
|
6069
|
-
const handle = yield* spawner.spawn(
|
|
6070
|
-
stdin:
|
|
6069
|
+
const handle = yield* spawner.spawn(make2(input.bun ?? process.execPath, [file], {
|
|
6070
|
+
stdin: make10(new TextEncoder().encode(stdin)),
|
|
6071
6071
|
stdout: "inherit",
|
|
6072
6072
|
stderr: "inherit",
|
|
6073
6073
|
extendEnv: false,
|