@kitman-sh/cli 0.17.0 → 0.18.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.
- package/dist/{chunk-qjxgew0k.js → chunk-1j38xtvp.js} +2 -2
- package/dist/{chunk-ebpjd7kg.js → chunk-2bagaygt.js} +6 -6
- package/dist/{chunk-jg1pjhba.js → chunk-4p1k3yyc.js} +21 -21
- package/dist/{chunk-r2kzvdrg.js → chunk-4qjfn1sa.js} +1 -1
- package/dist/{chunk-m1qp6swh.js → chunk-5kqt4bqp.js} +1 -1
- package/dist/{chunk-z59pvcbk.js → chunk-63cyj9dh.js} +174 -31
- package/dist/{chunk-0wqkz371.js → chunk-9jffw2mk.js} +3 -3
- package/dist/{chunk-0f67q0tf.js → chunk-bqhfbng3.js} +9 -9
- package/dist/{chunk-2928qj8m.js → chunk-d3gs4jvd.js} +69 -69
- package/dist/{chunk-vh2a72d1.js → chunk-gap0vmj7.js} +60 -14
- package/dist/{chunk-y64ssczv.js → chunk-h2f26xbd.js} +40 -226
- package/dist/{chunk-829r4kya.js → chunk-hj8ex4x6.js} +4 -4
- package/dist/{chunk-8r1a93rc.js → chunk-jaa8qjky.js} +9 -9
- package/dist/{chunk-2sazk478.js → chunk-js64y97w.js} +4 -4
- package/dist/{chunk-5me7tnrw.js → chunk-mca2zp8p.js} +2 -2
- package/dist/{chunk-g3jqqpky.js → chunk-mg3mxhxe.js} +7 -7
- package/dist/{chunk-pnckztvv.js → chunk-mqsxwm53.js} +5 -5
- package/dist/{chunk-kx8rpa62.js → chunk-my92qn4x.js} +10 -10
- package/dist/{chunk-nf9rfrvv.js → chunk-n05bj55h.js} +24 -24
- package/dist/{chunk-r3d2yjsh.js → chunk-nfnw3dh1.js} +24 -24
- package/dist/{chunk-9a6wbk11.js → chunk-samxkpbz.js} +3 -3
- package/dist/{chunk-pd3azxev.js → chunk-tsx0347c.js} +1 -1
- package/dist/{chunk-zy21drtv.js → chunk-vz38kngm.js} +2 -2
- package/dist/{chunk-nqh0pbgt.js → chunk-wg6xkkcr.js} +1 -1
- package/dist/{chunk-ekyj0bps.js → chunk-x8zzax0f.js} +10 -10
- package/dist/{chunk-j37p2y71.js → chunk-zmqm4mrm.js} +118 -117
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
isFailure2,
|
|
44
44
|
hasInterrupts,
|
|
45
45
|
makeUnsafe5,
|
|
46
|
-
|
|
46
|
+
make16,
|
|
47
47
|
_await,
|
|
48
48
|
fail5,
|
|
49
49
|
isDoneUnsafe,
|
|
@@ -172,7 +172,53 @@ import {
|
|
|
172
172
|
decodeJsonStringSync,
|
|
173
173
|
encodeUnknownJsonStringSync,
|
|
174
174
|
storable
|
|
175
|
-
} from "./chunk-
|
|
175
|
+
} from "./chunk-h2f26xbd.js";
|
|
176
|
+
import {
|
|
177
|
+
join,
|
|
178
|
+
interrupt,
|
|
179
|
+
unbounded,
|
|
180
|
+
publishUnsafe,
|
|
181
|
+
unbounded2,
|
|
182
|
+
offer,
|
|
183
|
+
makeUnsafe3,
|
|
184
|
+
make11,
|
|
185
|
+
fromQueue,
|
|
186
|
+
fromPubSub,
|
|
187
|
+
map2,
|
|
188
|
+
filter,
|
|
189
|
+
take2,
|
|
190
|
+
mapAccum,
|
|
191
|
+
decodeText,
|
|
192
|
+
encodeText,
|
|
193
|
+
splitLines,
|
|
194
|
+
run,
|
|
195
|
+
runCollect,
|
|
196
|
+
runFold,
|
|
197
|
+
runHead,
|
|
198
|
+
runForEach,
|
|
199
|
+
FileSystem,
|
|
200
|
+
Path,
|
|
201
|
+
embeddedFile,
|
|
202
|
+
extractEmbeddedFile,
|
|
203
|
+
optionalEnv,
|
|
204
|
+
operatorConfigHome,
|
|
205
|
+
tempDirectoryScoped,
|
|
206
|
+
harnessesUnsupportedInSrt2,
|
|
207
|
+
harnessesUnsupportedInDocker2,
|
|
208
|
+
compiled2,
|
|
209
|
+
pinnedSrtCommand2,
|
|
210
|
+
pinnedSrtStepCommand2,
|
|
211
|
+
runSrtCli2,
|
|
212
|
+
kitmanCacheDirectory2,
|
|
213
|
+
srtSettings2,
|
|
214
|
+
srtCacheEnvironment2,
|
|
215
|
+
srtInheritedEnv2,
|
|
216
|
+
inheritedEnvironment2,
|
|
217
|
+
withOnlyEnvironment2,
|
|
218
|
+
writeSrtSettings2,
|
|
219
|
+
srtStepArgv2,
|
|
220
|
+
srtArgv2
|
|
221
|
+
} from "./chunk-63cyj9dh.js";
|
|
176
222
|
import {
|
|
177
223
|
currentTimeMillis,
|
|
178
224
|
SecureRandom,
|
|
@@ -261,53 +307,7 @@ import {
|
|
|
261
307
|
checkServicesFile,
|
|
262
308
|
checkServices,
|
|
263
309
|
serviceChecks
|
|
264
|
-
} from "./chunk-
|
|
265
|
-
import {
|
|
266
|
-
join,
|
|
267
|
-
interrupt,
|
|
268
|
-
unbounded,
|
|
269
|
-
publishUnsafe,
|
|
270
|
-
unbounded2,
|
|
271
|
-
offer,
|
|
272
|
-
makeUnsafe3,
|
|
273
|
-
make10,
|
|
274
|
-
fromQueue,
|
|
275
|
-
fromPubSub,
|
|
276
|
-
map2,
|
|
277
|
-
filter,
|
|
278
|
-
take2,
|
|
279
|
-
mapAccum,
|
|
280
|
-
decodeText,
|
|
281
|
-
encodeText,
|
|
282
|
-
splitLines,
|
|
283
|
-
run,
|
|
284
|
-
runCollect,
|
|
285
|
-
runFold,
|
|
286
|
-
runHead,
|
|
287
|
-
runForEach,
|
|
288
|
-
FileSystem,
|
|
289
|
-
Path,
|
|
290
|
-
embeddedFile,
|
|
291
|
-
extractEmbeddedFile,
|
|
292
|
-
optionalEnv,
|
|
293
|
-
operatorConfigHome,
|
|
294
|
-
tempDirectoryScoped,
|
|
295
|
-
harnessesUnsupportedInSrt2,
|
|
296
|
-
harnessesUnsupportedInDocker2,
|
|
297
|
-
compiled2,
|
|
298
|
-
pinnedSrtCommand2,
|
|
299
|
-
pinnedSrtStepCommand2,
|
|
300
|
-
runSrtCli2,
|
|
301
|
-
kitmanCacheDirectory2,
|
|
302
|
-
srtSettings2,
|
|
303
|
-
srtCacheEnvironment2,
|
|
304
|
-
srtInheritedEnv2,
|
|
305
|
-
inheritedEnvironment2,
|
|
306
|
-
withOnlyEnvironment2,
|
|
307
|
-
writeSrtSettings2,
|
|
308
|
-
srtStepArgv2,
|
|
309
|
-
srtArgv2
|
|
310
|
-
} from "./chunk-z59pvcbk.js";
|
|
310
|
+
} from "./chunk-zmqm4mrm.js";
|
|
311
311
|
import {
|
|
312
312
|
writeAgentEnvironmentConfigFile2,
|
|
313
313
|
readManifestSkillPaths2,
|
|
@@ -323,12 +323,8 @@ import {
|
|
|
323
323
|
applyAgentEnvironmentMaterialization2,
|
|
324
324
|
isPathWithin2,
|
|
325
325
|
skillIdentity2
|
|
326
|
-
} from "./chunk-
|
|
327
|
-
import"./chunk-
|
|
328
|
-
import {
|
|
329
|
-
ChildProcessSpawner,
|
|
330
|
-
make2
|
|
331
|
-
} from "./chunk-vh2a72d1.js";
|
|
326
|
+
} from "./chunk-jaa8qjky.js";
|
|
327
|
+
import"./chunk-9jffw2mk.js";
|
|
332
328
|
import {
|
|
333
329
|
egressAllowed,
|
|
334
330
|
writeSecretRegistry,
|
|
@@ -338,7 +334,7 @@ import {
|
|
|
338
334
|
secretFilter2,
|
|
339
335
|
opaqueTunnelRefusal2,
|
|
340
336
|
isOpaqueConnectReason2
|
|
341
|
-
} from "./chunk-
|
|
337
|
+
} from "./chunk-vz38kngm.js";
|
|
342
338
|
import {
|
|
343
339
|
sliceBytes2,
|
|
344
340
|
maxLineBytes2,
|
|
@@ -346,25 +342,29 @@ import {
|
|
|
346
342
|
decodedOption2,
|
|
347
343
|
decoded2,
|
|
348
344
|
readOpencode2
|
|
349
|
-
} from "./chunk-
|
|
345
|
+
} from "./chunk-my92qn4x.js";
|
|
350
346
|
import {
|
|
351
347
|
uploadRunFile,
|
|
352
348
|
programLease,
|
|
353
349
|
rpcRunFiles,
|
|
354
350
|
programHostsEnv,
|
|
355
351
|
undeclaredHostsEnv
|
|
356
|
-
} from "./chunk-
|
|
357
|
-
import"./chunk-
|
|
352
|
+
} from "./chunk-bqhfbng3.js";
|
|
353
|
+
import"./chunk-mg3mxhxe.js";
|
|
358
354
|
import {
|
|
359
355
|
nextInt
|
|
360
|
-
} from "./chunk-
|
|
361
|
-
import"./chunk-
|
|
362
|
-
import
|
|
356
|
+
} from "./chunk-5kqt4bqp.js";
|
|
357
|
+
import"./chunk-tsx0347c.js";
|
|
358
|
+
import {
|
|
359
|
+
ChildProcessSpawner,
|
|
360
|
+
make3
|
|
361
|
+
} from "./chunk-gap0vmj7.js";
|
|
362
|
+
import"./chunk-mqsxwm53.js";
|
|
363
363
|
import {
|
|
364
364
|
Id,
|
|
365
365
|
secretReference,
|
|
366
366
|
secretPlaceholder
|
|
367
|
-
} from "./chunk-
|
|
367
|
+
} from "./chunk-4qjfn1sa.js";
|
|
368
368
|
|
|
369
369
|
// packages/core/src/sync-kit.ts
|
|
370
370
|
import { createHash } from "crypto";
|
|
@@ -8004,7 +8004,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
|
|
|
8004
8004
|
const input = yield* unbounded2();
|
|
8005
8005
|
const pending = new Map;
|
|
8006
8006
|
let lastId = 0;
|
|
8007
|
-
const handle = yield* spawner.spawn(
|
|
8007
|
+
const handle = yield* spawner.spawn(make3(binary, ["app-server"], {
|
|
8008
8008
|
cwd: env.home,
|
|
8009
8009
|
extendEnv: true,
|
|
8010
8010
|
env: { HOME: env.home, CODEX_HOME: env.codexHome },
|
|
@@ -8027,7 +8027,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
|
|
|
8027
8027
|
return {
|
|
8028
8028
|
request: (method, params) => gen(function* () {
|
|
8029
8029
|
const id = ++lastId;
|
|
8030
|
-
const deferred = yield*
|
|
8030
|
+
const deferred = yield* make16();
|
|
8031
8031
|
pending.set(id, deferred);
|
|
8032
8032
|
yield* send({ id, method, params });
|
|
8033
8033
|
return yield* _await(deferred).pipe(mapError2((error) => new CodexAppServerFailed({ reason: `${method}: ${error.message}` })));
|
|
@@ -8167,10 +8167,10 @@ var handshake = [
|
|
|
8167
8167
|
`).join("");
|
|
8168
8168
|
var kitmanMcpPreflight = (mcp) => gen(function* () {
|
|
8169
8169
|
const spawner = yield* ChildProcessSpawner;
|
|
8170
|
-
const server = yield* spawner.spawn(
|
|
8170
|
+
const server = yield* spawner.spawn(make3(mcp.command, [...mcp.args], {
|
|
8171
8171
|
extendEnv: true,
|
|
8172
8172
|
env: mcp.env,
|
|
8173
|
-
stdin: { stream:
|
|
8173
|
+
stdin: { stream: make11(new TextEncoder().encode(handshake)), endOnDone: false },
|
|
8174
8174
|
stderr: "ignore"
|
|
8175
8175
|
}));
|
|
8176
8176
|
const reply = yield* server.stdout.pipe(decodeText, splitLines, map2((line) => getOrUndefined(decodeJsonStringOption(line))), filter((message) => isJsonObject(message) && message.id === 2), runHead);
|
|
@@ -8243,8 +8243,8 @@ var programProcessExecutor = (input) => (work) => gen(function* () {
|
|
|
8243
8243
|
};
|
|
8244
8244
|
const exitCode = sandbox === undefined ? yield* gen(function* () {
|
|
8245
8245
|
const spawner = yield* ChildProcessSpawner;
|
|
8246
|
-
const handle = yield* spawner.spawn(
|
|
8247
|
-
stdin:
|
|
8246
|
+
const handle = yield* spawner.spawn(make3(input.bun ?? process.execPath, [file], {
|
|
8247
|
+
stdin: make11(new TextEncoder().encode(stdin)),
|
|
8248
8248
|
stdout: "inherit",
|
|
8249
8249
|
stderr: "inherit",
|
|
8250
8250
|
extendEnv: false,
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
|
+
isString,
|
|
4
|
+
hasProperty,
|
|
5
|
+
symbol,
|
|
6
|
+
hash,
|
|
7
|
+
symbol2,
|
|
8
|
+
equals,
|
|
3
9
|
BaseProto,
|
|
10
|
+
PipeInspectableProto,
|
|
4
11
|
Prototype,
|
|
5
12
|
some,
|
|
6
13
|
Service2,
|
|
@@ -14,11 +21,8 @@ import {
|
|
|
14
21
|
andThen2,
|
|
15
22
|
map9,
|
|
16
23
|
raceFirst,
|
|
17
|
-
scoped
|
|
18
|
-
|
|
19
|
-
make16,
|
|
20
|
-
value
|
|
21
|
-
} from "./chunk-y64ssczv.js";
|
|
24
|
+
scoped
|
|
25
|
+
} from "./chunk-h2f26xbd.js";
|
|
22
26
|
import {
|
|
23
27
|
unwrap,
|
|
24
28
|
drainFork,
|
|
@@ -27,7 +31,49 @@ import {
|
|
|
27
31
|
runCollect,
|
|
28
32
|
runDrain,
|
|
29
33
|
mkString
|
|
30
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-63cyj9dh.js";
|
|
35
|
+
|
|
36
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/redacted.js
|
|
37
|
+
var redactedRegistry = /* @__PURE__ */ new WeakMap;
|
|
38
|
+
var value2 = (self) => {
|
|
39
|
+
if (redactedRegistry.has(self)) {
|
|
40
|
+
return redactedRegistry.get(self);
|
|
41
|
+
} else {
|
|
42
|
+
throw new Error("Unable to get redacted value" + (self.label ? ` with label: "${self.label}"` : ""));
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Redacted.js
|
|
47
|
+
var TypeId = "~effect/Redacted";
|
|
48
|
+
var isRedacted = (u) => hasProperty(u, TypeId);
|
|
49
|
+
var make = (value, options) => {
|
|
50
|
+
const self = Object.create(Proto);
|
|
51
|
+
if (options?.label) {
|
|
52
|
+
self.label = options.label;
|
|
53
|
+
}
|
|
54
|
+
redactedRegistry.set(self, value);
|
|
55
|
+
return self;
|
|
56
|
+
};
|
|
57
|
+
var Proto = {
|
|
58
|
+
[TypeId]: {
|
|
59
|
+
_A: (_) => _
|
|
60
|
+
},
|
|
61
|
+
label: undefined,
|
|
62
|
+
...PipeInspectableProto,
|
|
63
|
+
toJSON() {
|
|
64
|
+
return this.toString();
|
|
65
|
+
},
|
|
66
|
+
toString() {
|
|
67
|
+
return `<redacted${isString(this.label) ? ":" + this.label : ""}>`;
|
|
68
|
+
},
|
|
69
|
+
[symbol]() {
|
|
70
|
+
return hash(redactedRegistry.get(this));
|
|
71
|
+
},
|
|
72
|
+
[symbol2](that) {
|
|
73
|
+
return isRedacted(that) && equals(redactedRegistry.get(this), redactedRegistry.get(that));
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
var value = value2;
|
|
31
77
|
|
|
32
78
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Brand.js
|
|
33
79
|
function nominal() {
|
|
@@ -55,7 +101,7 @@ var HandleProto = {
|
|
|
55
101
|
var makeHandle = (params) => Object.setPrototypeOf({
|
|
56
102
|
...params
|
|
57
103
|
}, HandleProto);
|
|
58
|
-
var
|
|
104
|
+
var make2 = (spawn) => {
|
|
59
105
|
const streamString = (command, options) => spawn(command).pipe(map9((handle) => decodeText(options?.includeStderr === true ? handle.all : drainFork(handle.stdout, handle.stderr))), unwrap);
|
|
60
106
|
const streamLines = (command, options) => splitLines(streamString(command, options));
|
|
61
107
|
return ChildProcessSpawner.of({
|
|
@@ -176,7 +222,7 @@ var parseTemplate = (texts, values) => {
|
|
|
176
222
|
if (word.length === 0)
|
|
177
223
|
return;
|
|
178
224
|
const value = word.map(unwrap2).join("");
|
|
179
|
-
words.push(word.length === 1 && isRedacted(word[0]) ? word[0] : word.some(isRedacted) ?
|
|
225
|
+
words.push(word.length === 1 && isRedacted(word[0]) ? word[0] : word.some(isRedacted) ? make(value) : value);
|
|
180
226
|
word = [];
|
|
181
227
|
plain = true;
|
|
182
228
|
braceDepth = 0;
|
|
@@ -266,23 +312,23 @@ var parseTemplate = (texts, values) => {
|
|
|
266
312
|
};
|
|
267
313
|
|
|
268
314
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/process/ChildProcess.js
|
|
269
|
-
var
|
|
270
|
-
var
|
|
315
|
+
var TypeId2 = "~effect/process/ChildProcess";
|
|
316
|
+
var Proto2 = {
|
|
271
317
|
.../* @__PURE__ */ Prototype({
|
|
272
318
|
label: "Command",
|
|
273
319
|
evaluate(fiber) {
|
|
274
320
|
return getUnsafe(fiber.context, ChildProcessSpawner).spawn(this);
|
|
275
321
|
}
|
|
276
322
|
}),
|
|
277
|
-
[
|
|
323
|
+
[TypeId2]: TypeId2
|
|
278
324
|
};
|
|
279
|
-
var makeStandardCommand = (command, args, options) => Object.assign(Object.create(
|
|
325
|
+
var makeStandardCommand = (command, args, options) => Object.assign(Object.create(Proto2), {
|
|
280
326
|
_tag: "StandardCommand",
|
|
281
327
|
command,
|
|
282
328
|
args,
|
|
283
329
|
options
|
|
284
330
|
});
|
|
285
|
-
var
|
|
331
|
+
var make3 = function make(...args) {
|
|
286
332
|
if (isTemplateString(args[0])) {
|
|
287
333
|
const [templates, ...expressions] = args;
|
|
288
334
|
const [command, cmdArgs] = parseTemplate2(templates, expressions);
|
|
@@ -340,4 +386,4 @@ var shellScript = (templates, expressions) => {
|
|
|
340
386
|
}
|
|
341
387
|
return script;
|
|
342
388
|
};
|
|
343
|
-
export { ExitCode, ProcessId, makeHandle,
|
|
389
|
+
export { isRedacted, make, value, ExitCode, ProcessId, makeHandle, make2, ChildProcessSpawner, display, make3, parseFdName, fdName };
|