@kitman-sh/cli 0.13.16 → 0.13.17
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-ttk3d0z2.js → chunk-0vv8cbye.js} +136 -136
- package/dist/{chunk-5w6r4mw6.js → chunk-1cr225aq.js} +30 -30
- package/dist/{chunk-gq7y5v3e.js → chunk-24h0y27w.js} +1 -1
- package/dist/{chunk-t4xwk14b.js → chunk-4yca7e7x.js} +101 -101
- package/dist/{chunk-4zh7qxck.js → chunk-643pxp2k.js} +4 -4
- package/dist/{chunk-bt22cd13.js → chunk-67xn3yer.js} +7 -7
- package/dist/{chunk-zd6y6ka8.js → chunk-80f0p6s7.js} +119 -119
- package/dist/{chunk-y7p4d14b.js → chunk-8nzsyz74.js} +2 -2
- package/dist/{chunk-fc2bhh5v.js → chunk-ahvpwkyk.js} +2 -2
- package/dist/{chunk-tntbdpmy.js → chunk-b5edh1jq.js} +78 -78
- package/dist/{chunk-vsrjg9nm.js → chunk-cbf0q15q.js} +22 -68
- package/dist/{chunk-v1e4g2re.js → chunk-efyrm6bv.js} +1 -1
- package/dist/{chunk-at5dh2te.js → chunk-g7ysb6ca.js} +18 -18
- package/dist/{chunk-49gbakce.js → chunk-gasqek3p.js} +6 -6
- package/dist/{chunk-x7acexnm.js → chunk-ggmwpwhf.js} +5 -5
- package/dist/{chunk-s88vcvtd.js → chunk-mmd7mjv0.js} +3 -3
- package/dist/{chunk-d9z9cyzt.js → chunk-pbmadbfm.js} +32 -32
- package/dist/{chunk-c9rvst3x.js → chunk-pjq9bf3w.js} +4 -4
- package/dist/{chunk-cbzqfz1k.js → chunk-pvsg1ppc.js} +4 -4
- package/dist/{chunk-q5w3v4k1.js → chunk-pxvd8w2v.js} +1 -1
- package/dist/{chunk-mbqb40ev.js → chunk-q4ra17vf.js} +16 -16
- package/dist/{chunk-sjdze64n.js → chunk-syhs23yk.js} +7 -7
- package/dist/{chunk-nf9gdnsf.js → chunk-x20t7xy8.js} +17 -17
- package/dist/{chunk-5cevjkrb.js → chunk-zcpnmgwb.js} +16 -16
- package/dist/{chunk-zw3gf6r5.js → chunk-zgraq2y3.js} +70 -28
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -1,85 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
Id,
|
|
4
|
-
secretReference,
|
|
5
|
-
secretPlaceholder
|
|
6
|
-
} from "./chunk-q5w3v4k1.js";
|
|
7
|
-
import {
|
|
8
|
-
currentTimeMillis,
|
|
9
|
-
SecureRandom,
|
|
10
|
-
layerWebCrypto,
|
|
11
|
-
layer,
|
|
12
|
-
layer2,
|
|
13
|
-
toDate,
|
|
14
|
-
toIso,
|
|
15
|
-
wallClockMillis,
|
|
16
|
-
redactCredentials,
|
|
17
|
-
redactedOutputTail,
|
|
18
|
-
AgentSkillRequirement,
|
|
19
|
-
AgentMcpServerRequirement,
|
|
20
|
-
AgentEnvironmentFragment,
|
|
21
|
-
findForbiddenAgentEnvironmentSecretPath,
|
|
22
|
-
findForbiddenRepoBindingSecretPath,
|
|
23
|
-
runnerAgentSandboxPolicy,
|
|
24
|
-
agentNetworkAllowlist,
|
|
25
|
-
verificationNetworkAllowlist,
|
|
26
|
-
programNetworkHosts,
|
|
27
|
-
canonicalSha256,
|
|
28
|
-
tokensSpent,
|
|
29
|
-
reportedModelName,
|
|
30
|
-
isTestReportName,
|
|
31
|
-
failedTestOfLine,
|
|
32
|
-
checkTests,
|
|
33
|
-
MeasureSample,
|
|
34
|
-
catchUpPathLimit,
|
|
35
|
-
createId,
|
|
36
|
-
digestSha256,
|
|
37
|
-
AgentEvent,
|
|
38
|
-
get,
|
|
39
|
-
post,
|
|
40
|
-
setHeaders,
|
|
41
|
-
acceptJson,
|
|
42
|
-
bodyJsonUnsafe,
|
|
43
|
-
bodyUrlParams,
|
|
44
|
-
schemaBodyJson,
|
|
45
|
-
filterStatusOk,
|
|
46
|
-
HttpClient,
|
|
47
|
-
layer4,
|
|
48
|
-
SetupArchive,
|
|
49
|
-
kitMcpSecretNames,
|
|
50
|
-
RunSettled,
|
|
51
|
-
UpdateAvailable,
|
|
52
|
-
HERDR_CORE_GENERATION2,
|
|
53
|
-
HERDR_CORE_INSTALL_COMMAND2,
|
|
54
|
-
HerdrCoreMissing2,
|
|
55
|
-
HerdrCoreIncompatible2,
|
|
56
|
-
HerdrCoreConnectionLost2,
|
|
57
|
-
HerdrCoreRpcError2,
|
|
58
|
-
HerdrCoreUpdateFailed2,
|
|
59
|
-
HerdrCore2,
|
|
60
|
-
herdrCoreLayer2,
|
|
61
|
-
herdrCoreTransportLayer2,
|
|
62
|
-
updateHerdrCore2,
|
|
63
|
-
CommandFailed2,
|
|
64
|
-
runCommand2,
|
|
65
|
-
withoutPreloads2,
|
|
66
|
-
shellOutputTailChars2,
|
|
67
|
-
runProcess2,
|
|
68
|
-
CommandRunner2,
|
|
69
|
-
runShell2,
|
|
70
|
-
detectHarnesses2,
|
|
71
|
-
isKitHarness,
|
|
72
|
-
materializeKitSetup,
|
|
73
|
-
tomlInline,
|
|
74
|
-
herdrExecutionExtension2,
|
|
75
|
-
herdrNativeExtensionIds2,
|
|
76
|
-
herdrRunnerCapabilitiesForRepoBinding2,
|
|
77
|
-
herdrRunnerCapabilities2,
|
|
78
|
-
assertHerdrRunnerCapability2,
|
|
79
|
-
installCommand,
|
|
80
|
-
checkServicesFile,
|
|
81
|
-
checkServices
|
|
82
|
-
} from "./chunk-zd6y6ka8.js";
|
|
83
2
|
import {
|
|
84
3
|
pipeArguments,
|
|
85
4
|
dual,
|
|
@@ -122,7 +41,7 @@ import {
|
|
|
122
41
|
isFailure2,
|
|
123
42
|
hasInterrupts,
|
|
124
43
|
makeUnsafe5,
|
|
125
|
-
|
|
44
|
+
make15,
|
|
126
45
|
_await,
|
|
127
46
|
fail5,
|
|
128
47
|
isDoneUnsafe,
|
|
@@ -249,7 +168,88 @@ import {
|
|
|
249
168
|
decodeJsonStringSync,
|
|
250
169
|
encodeUnknownJsonStringSync,
|
|
251
170
|
storable
|
|
252
|
-
} from "./chunk-
|
|
171
|
+
} from "./chunk-zgraq2y3.js";
|
|
172
|
+
import {
|
|
173
|
+
Id,
|
|
174
|
+
secretReference,
|
|
175
|
+
secretPlaceholder
|
|
176
|
+
} from "./chunk-pxvd8w2v.js";
|
|
177
|
+
import {
|
|
178
|
+
currentTimeMillis,
|
|
179
|
+
SecureRandom,
|
|
180
|
+
layerWebCrypto,
|
|
181
|
+
layer,
|
|
182
|
+
layer2,
|
|
183
|
+
toDate,
|
|
184
|
+
toIso,
|
|
185
|
+
wallClockMillis,
|
|
186
|
+
redactCredentials,
|
|
187
|
+
redactedOutputTail,
|
|
188
|
+
AgentSkillRequirement,
|
|
189
|
+
AgentMcpServerRequirement,
|
|
190
|
+
AgentEnvironmentFragment,
|
|
191
|
+
findForbiddenAgentEnvironmentSecretPath,
|
|
192
|
+
findForbiddenRepoBindingSecretPath,
|
|
193
|
+
runnerAgentSandboxPolicy,
|
|
194
|
+
agentNetworkAllowlist,
|
|
195
|
+
verificationNetworkAllowlist,
|
|
196
|
+
programNetworkHosts,
|
|
197
|
+
canonicalSha256,
|
|
198
|
+
tokensSpent,
|
|
199
|
+
reportedModelName,
|
|
200
|
+
isTestReportName,
|
|
201
|
+
failedTestOfLine,
|
|
202
|
+
checkTests,
|
|
203
|
+
MeasureSample,
|
|
204
|
+
catchUpPathLimit,
|
|
205
|
+
createId,
|
|
206
|
+
digestSha256,
|
|
207
|
+
AgentEvent,
|
|
208
|
+
get,
|
|
209
|
+
post,
|
|
210
|
+
setHeaders,
|
|
211
|
+
acceptJson,
|
|
212
|
+
bodyJsonUnsafe,
|
|
213
|
+
bodyUrlParams,
|
|
214
|
+
schemaBodyJson,
|
|
215
|
+
filterStatusOk,
|
|
216
|
+
HttpClient,
|
|
217
|
+
layer4,
|
|
218
|
+
SetupArchive,
|
|
219
|
+
kitMcpSecretNames,
|
|
220
|
+
RunSettled,
|
|
221
|
+
UpdateAvailable,
|
|
222
|
+
HERDR_CORE_GENERATION2,
|
|
223
|
+
HERDR_CORE_INSTALL_COMMAND2,
|
|
224
|
+
HerdrCoreMissing2,
|
|
225
|
+
HerdrCoreIncompatible2,
|
|
226
|
+
HerdrCoreConnectionLost2,
|
|
227
|
+
HerdrCoreRpcError2,
|
|
228
|
+
HerdrCoreUpdateFailed2,
|
|
229
|
+
HerdrCore2,
|
|
230
|
+
herdrCoreLayer2,
|
|
231
|
+
herdrCoreTransportLayer2,
|
|
232
|
+
updateHerdrCore2,
|
|
233
|
+
CommandFailed2,
|
|
234
|
+
runCommand2,
|
|
235
|
+
withoutPreloads2,
|
|
236
|
+
shellOutputTailChars2,
|
|
237
|
+
runProcess2,
|
|
238
|
+
CommandRunner2,
|
|
239
|
+
runShell2,
|
|
240
|
+
detectHarnesses2,
|
|
241
|
+
isKitHarness,
|
|
242
|
+
materializeKitSetup,
|
|
243
|
+
tomlInline,
|
|
244
|
+
herdrExecutionExtension2,
|
|
245
|
+
herdrNativeExtensionIds2,
|
|
246
|
+
herdrRunnerCapabilitiesForRepoBinding2,
|
|
247
|
+
herdrRunnerCapabilities2,
|
|
248
|
+
assertHerdrRunnerCapability2,
|
|
249
|
+
installCommand,
|
|
250
|
+
checkServicesFile,
|
|
251
|
+
checkServices
|
|
252
|
+
} from "./chunk-80f0p6s7.js";
|
|
253
253
|
import {
|
|
254
254
|
join,
|
|
255
255
|
interrupt,
|
|
@@ -258,7 +258,7 @@ import {
|
|
|
258
258
|
unbounded2,
|
|
259
259
|
offer,
|
|
260
260
|
makeUnsafe3,
|
|
261
|
-
|
|
261
|
+
make10,
|
|
262
262
|
fromQueue,
|
|
263
263
|
fromPubSub,
|
|
264
264
|
map2,
|
|
@@ -292,7 +292,7 @@ import {
|
|
|
292
292
|
writeSrtSettings2,
|
|
293
293
|
srtStepArgv2,
|
|
294
294
|
srtArgv2
|
|
295
|
-
} from "./chunk-
|
|
295
|
+
} from "./chunk-x20t7xy8.js";
|
|
296
296
|
import {
|
|
297
297
|
writeAgentEnvironmentConfigFile2,
|
|
298
298
|
readManifestSkillPaths2,
|
|
@@ -308,8 +308,8 @@ import {
|
|
|
308
308
|
applyAgentEnvironmentMaterialization2,
|
|
309
309
|
isPathWithin2,
|
|
310
310
|
skillIdentity2
|
|
311
|
-
} from "./chunk-
|
|
312
|
-
import"./chunk-
|
|
311
|
+
} from "./chunk-pvsg1ppc.js";
|
|
312
|
+
import"./chunk-q4ra17vf.js";
|
|
313
313
|
import {
|
|
314
314
|
egressAllowed,
|
|
315
315
|
writeSecretRegistry,
|
|
@@ -319,7 +319,7 @@ import {
|
|
|
319
319
|
secretFilter2,
|
|
320
320
|
opaqueTunnelRefusal2,
|
|
321
321
|
isOpaqueConnectReason2
|
|
322
|
-
} from "./chunk-
|
|
322
|
+
} from "./chunk-ggmwpwhf.js";
|
|
323
323
|
import {
|
|
324
324
|
sliceBytes2,
|
|
325
325
|
maxLineBytes2,
|
|
@@ -327,23 +327,23 @@ import {
|
|
|
327
327
|
decodedOption2,
|
|
328
328
|
decoded2,
|
|
329
329
|
readOpencode2
|
|
330
|
-
} from "./chunk-
|
|
330
|
+
} from "./chunk-67xn3yer.js";
|
|
331
331
|
import {
|
|
332
332
|
uploadRunFile,
|
|
333
333
|
programLease,
|
|
334
334
|
rpcRunFiles,
|
|
335
335
|
programHostsEnv,
|
|
336
336
|
undeclaredHostsEnv
|
|
337
|
-
} from "./chunk-
|
|
338
|
-
import"./chunk-
|
|
337
|
+
} from "./chunk-pbmadbfm.js";
|
|
338
|
+
import"./chunk-zcpnmgwb.js";
|
|
339
339
|
import {
|
|
340
340
|
nextInt
|
|
341
|
-
} from "./chunk-
|
|
341
|
+
} from "./chunk-24h0y27w.js";
|
|
342
342
|
import {
|
|
343
343
|
ChildProcessSpawner,
|
|
344
|
-
|
|
345
|
-
} from "./chunk-
|
|
346
|
-
import"./chunk-
|
|
344
|
+
make2
|
|
345
|
+
} from "./chunk-cbf0q15q.js";
|
|
346
|
+
import"./chunk-1cr225aq.js";
|
|
347
347
|
|
|
348
348
|
// packages/core/src/sync-kit.ts
|
|
349
349
|
import { createHash } from "crypto";
|
|
@@ -7085,7 +7085,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
|
|
|
7085
7085
|
const input = yield* unbounded2();
|
|
7086
7086
|
const pending = new Map;
|
|
7087
7087
|
let lastId = 0;
|
|
7088
|
-
const handle = yield* spawner.spawn(
|
|
7088
|
+
const handle = yield* spawner.spawn(make2(binary, ["app-server"], {
|
|
7089
7089
|
cwd: env.home,
|
|
7090
7090
|
extendEnv: true,
|
|
7091
7091
|
env: { HOME: env.home, CODEX_HOME: env.codexHome },
|
|
@@ -7108,7 +7108,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
|
|
|
7108
7108
|
return {
|
|
7109
7109
|
request: (method, params) => gen(function* () {
|
|
7110
7110
|
const id = ++lastId;
|
|
7111
|
-
const deferred = yield*
|
|
7111
|
+
const deferred = yield* make15();
|
|
7112
7112
|
pending.set(id, deferred);
|
|
7113
7113
|
yield* send({ id, method, params });
|
|
7114
7114
|
return yield* _await(deferred).pipe(mapError2((error) => new CodexAppServerFailed({ reason: `${method}: ${error.message}` })));
|
|
@@ -7248,10 +7248,10 @@ var handshake = [
|
|
|
7248
7248
|
`).join("");
|
|
7249
7249
|
var kitmanMcpPreflight = (mcp) => gen(function* () {
|
|
7250
7250
|
const spawner = yield* ChildProcessSpawner;
|
|
7251
|
-
const server = yield* spawner.spawn(
|
|
7251
|
+
const server = yield* spawner.spawn(make2(mcp.command, [...mcp.args], {
|
|
7252
7252
|
extendEnv: true,
|
|
7253
7253
|
env: mcp.env,
|
|
7254
|
-
stdin: { stream:
|
|
7254
|
+
stdin: { stream: make10(new TextEncoder().encode(handshake)), endOnDone: false },
|
|
7255
7255
|
stderr: "ignore"
|
|
7256
7256
|
}));
|
|
7257
7257
|
const reply = yield* server.stdout.pipe(decodeText, splitLines, map2((line) => getOrUndefined(decodeJsonStringOption(line))), filter((message) => isJsonObject(message) && message.id === 2), runHead);
|
|
@@ -7324,8 +7324,8 @@ var programProcessExecutor = (input) => (work) => gen(function* () {
|
|
|
7324
7324
|
};
|
|
7325
7325
|
const exitCode = sandbox === undefined ? yield* gen(function* () {
|
|
7326
7326
|
const spawner = yield* ChildProcessSpawner;
|
|
7327
|
-
const handle = yield* spawner.spawn(
|
|
7328
|
-
stdin:
|
|
7327
|
+
const handle = yield* spawner.spawn(make2(input.bun ?? process.execPath, [file], {
|
|
7328
|
+
stdin: make10(new TextEncoder().encode(stdin)),
|
|
7329
7329
|
stdout: "inherit",
|
|
7330
7330
|
stderr: "inherit",
|
|
7331
7331
|
extendEnv: false,
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
decoded2,
|
|
8
8
|
readOpencode2,
|
|
9
9
|
runOpencodeReader2
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import"./chunk-
|
|
12
|
-
import"./chunk-
|
|
13
|
-
import"./chunk-
|
|
10
|
+
} from "./chunk-67xn3yer.js";
|
|
11
|
+
import"./chunk-cbf0q15q.js";
|
|
12
|
+
import"./chunk-x20t7xy8.js";
|
|
13
|
+
import"./chunk-zgraq2y3.js";
|
|
14
14
|
export {
|
|
15
15
|
decoded2 as decoded,
|
|
16
16
|
decodedOption2 as decodedOption,
|
|
@@ -25,16 +25,16 @@ import {
|
|
|
25
25
|
isJsonObject,
|
|
26
26
|
isString2,
|
|
27
27
|
encodeUnknownJsonStringSync
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-zgraq2y3.js";
|
|
29
29
|
import {
|
|
30
|
-
|
|
30
|
+
make10,
|
|
31
31
|
runForEach,
|
|
32
32
|
compiled2
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-x20t7xy8.js";
|
|
34
34
|
import {
|
|
35
35
|
ChildProcessSpawner,
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
36
|
+
make2
|
|
37
|
+
} from "./chunk-cbf0q15q.js";
|
|
38
38
|
|
|
39
39
|
// packages/agent-runtime/src/opencode-store.ts
|
|
40
40
|
import { lstatSync, readFileSync, realpathSync } from "fs";
|
|
@@ -172,8 +172,8 @@ var opencodeReaderCommand = () => compiled2 ? [process.execPath, "opencode-read"
|
|
|
172
172
|
var isolatedRead = (store, name, input) => gen(function* () {
|
|
173
173
|
const spawner = yield* ChildProcessSpawner;
|
|
174
174
|
const [command, ...args] = opencodeReaderCommand();
|
|
175
|
-
const handle = yield* spawner.spawn(
|
|
176
|
-
stdin:
|
|
175
|
+
const handle = yield* spawner.spawn(make2(command, args, {
|
|
176
|
+
stdin: make10(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
|
|
177
177
|
stderr: "ignore",
|
|
178
178
|
extendEnv: false,
|
|
179
179
|
env: {},
|