@kitman-sh/cli 0.13.11 → 0.13.12
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-jyq4790r.js → chunk-02ye1s9f.js} +9 -9
- package/dist/{chunk-5zth85pj.js → chunk-1bkrxc3v.js} +2 -2
- package/dist/{chunk-xzfj61cp.js → chunk-2xh5p0na.js} +8 -7
- package/dist/{chunk-mx3zt8v8.js → chunk-36s51mp6.js} +39 -30
- package/dist/{chunk-mtkstrh3.js → chunk-3z9yz32f.js} +2 -2
- package/dist/{chunk-p8fhxfa0.js → chunk-4m923rz8.js} +3 -3
- package/dist/{chunk-5zhh41gb.js → chunk-4t6nrgxw.js} +4 -4
- package/dist/{chunk-acneym1p.js → chunk-8cxh8j07.js} +129 -39
- package/dist/{chunk-zw3gf6r5.js → chunk-8pbnfqaz.js} +60 -60
- package/dist/{chunk-j48k8j8y.js → chunk-8t1vygmr.js} +4 -4
- package/dist/{chunk-3rkhx6gq.js → chunk-95w14qxp.js} +6 -6
- package/dist/{chunk-krqb80g6.js → chunk-9d03t0pn.js} +5 -5
- package/dist/{chunk-y1krmnbv.js → chunk-eahqsd8h.js} +2 -2
- package/dist/{chunk-gq7y5v3e.js → chunk-fwja3qb1.js} +1 -1
- package/dist/{chunk-q5w3v4k1.js → chunk-mcw7wvtx.js} +1 -6
- package/dist/{chunk-fcb6skhx.js → chunk-n1aqwdc2.js} +7 -7
- package/dist/{chunk-7rpd6a98.js → chunk-n734b61f.js} +1 -1
- package/dist/{chunk-cbpb2rww.js → chunk-nge8fq10.js} +5 -5
- package/dist/{chunk-h7mnz0w3.js → chunk-npjpmb0w.js} +6 -6
- package/dist/{chunk-0h49y8gf.js → chunk-szt25e0z.js} +56 -181
- package/dist/{chunk-dtkejy3r.js → chunk-ths93svq.js} +393 -135
- package/dist/{chunk-p0vqjc0n.js → chunk-x5nv63jj.js} +2 -2
- package/dist/{chunk-gy9rf14f.js → chunk-yab3j170.js} +3 -3
- package/dist/{chunk-5an78wy8.js → chunk-z74fnmqb.js} +18 -18
- package/dist/{chunk-rh9g6sef.js → chunk-zb5pnthp.js} +64 -31
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -32,8 +32,7 @@ import {
|
|
|
32
32
|
toCodecJson,
|
|
33
33
|
Json,
|
|
34
34
|
encodePrettyJsonString
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import"./chunk-q5w3v4k1.js";
|
|
35
|
+
} from "./chunk-8pbnfqaz.js";
|
|
37
36
|
import {
|
|
38
37
|
SecureRandom,
|
|
39
38
|
layerWebCrypto,
|
|
@@ -45,7 +44,7 @@ import {
|
|
|
45
44
|
layer4,
|
|
46
45
|
kitmanMcpServer,
|
|
47
46
|
RunnerRpcProtocolVersion
|
|
48
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-ths93svq.js";
|
|
49
48
|
import {
|
|
50
49
|
decodeText,
|
|
51
50
|
mkString,
|
|
@@ -53,23 +52,24 @@ import {
|
|
|
53
52
|
Path,
|
|
54
53
|
withDefault,
|
|
55
54
|
String2
|
|
56
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-szt25e0z.js";
|
|
57
56
|
import {
|
|
58
57
|
Packument,
|
|
59
58
|
tarballMatches
|
|
60
|
-
} from "./chunk-
|
|
61
|
-
import"./chunk-
|
|
59
|
+
} from "./chunk-4m923rz8.js";
|
|
60
|
+
import"./chunk-npjpmb0w.js";
|
|
62
61
|
import {
|
|
63
62
|
AgentDeclaration,
|
|
64
63
|
KitDeclarations,
|
|
65
64
|
describeFlag,
|
|
66
65
|
Described
|
|
67
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-2xh5p0na.js";
|
|
68
67
|
import {
|
|
69
68
|
ChildProcessSpawner,
|
|
70
69
|
make3
|
|
71
|
-
} from "./chunk-
|
|
72
|
-
import"./chunk-
|
|
70
|
+
} from "./chunk-3z9yz32f.js";
|
|
71
|
+
import"./chunk-z74fnmqb.js";
|
|
72
|
+
import"./chunk-mcw7wvtx.js";
|
|
73
73
|
|
|
74
74
|
// packages/sdk/src/build/index.ts
|
|
75
75
|
class DependencyInstallFailed extends TaggedError2()("DependencyInstallFailed", {
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
writeSrtSettings2,
|
|
15
15
|
srtStepArgv2,
|
|
16
16
|
srtArgv2
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import"./chunk-
|
|
17
|
+
} from "./chunk-szt25e0z.js";
|
|
18
|
+
import"./chunk-8pbnfqaz.js";
|
|
19
19
|
export {
|
|
20
20
|
compiled2 as compiled,
|
|
21
21
|
harnessesUnsupportedInSrt2 as harnessesUnsupportedInSrt,
|
|
@@ -75,12 +75,8 @@ import {
|
|
|
75
75
|
toEquivalence,
|
|
76
76
|
toCodecJson,
|
|
77
77
|
Json
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-8pbnfqaz.js";
|
|
79
79
|
import {
|
|
80
|
-
guard
|
|
81
|
-
} from "./chunk-q5w3v4k1.js";
|
|
82
|
-
import {
|
|
83
|
-
currentTimeMillis,
|
|
84
80
|
WebCrypto,
|
|
85
81
|
SafeJson,
|
|
86
82
|
AgentSandboxNetwork,
|
|
@@ -105,11 +101,15 @@ import {
|
|
|
105
101
|
KitDigest,
|
|
106
102
|
KitSetup,
|
|
107
103
|
RunnerRpcError
|
|
108
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-ths93svq.js";
|
|
109
105
|
import {
|
|
106
|
+
currentTimeMillis,
|
|
110
107
|
runForEach,
|
|
111
108
|
FileSystem
|
|
112
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-szt25e0z.js";
|
|
110
|
+
import {
|
|
111
|
+
guard
|
|
112
|
+
} from "./chunk-mcw7wvtx.js";
|
|
113
113
|
|
|
114
114
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/crypto/internal/webCrypto.js
|
|
115
115
|
var subtleUnavailable = () => new Error("crypto.subtle is unavailable; browsers expose it only in secure contexts");
|
|
@@ -497,6 +497,7 @@ var EvidenceCheck = Struct({
|
|
|
497
497
|
durationMs: Finite,
|
|
498
498
|
evidenceId: String4,
|
|
499
499
|
outputTail: optionalKey(String4),
|
|
500
|
+
failedTests: optionalKey(ArraySchema(String4)),
|
|
500
501
|
suggested: optionalKey(Boolean2),
|
|
501
502
|
skippedSinceBaseline: optionalKey(ArraySchema(String4)),
|
|
502
503
|
newNotRun: optionalKey(ArraySchema(String4))
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
isFailure2,
|
|
42
42
|
hasInterrupts,
|
|
43
43
|
makeUnsafe5,
|
|
44
|
-
|
|
44
|
+
make15,
|
|
45
45
|
_await,
|
|
46
46
|
fail5,
|
|
47
47
|
isDoneUnsafe,
|
|
@@ -168,14 +168,8 @@ import {
|
|
|
168
168
|
decodeJsonStringSync,
|
|
169
169
|
encodeUnknownJsonStringSync,
|
|
170
170
|
storable
|
|
171
|
-
} from "./chunk-
|
|
171
|
+
} from "./chunk-8pbnfqaz.js";
|
|
172
172
|
import {
|
|
173
|
-
Id,
|
|
174
|
-
secretReference,
|
|
175
|
-
secretPlaceholder
|
|
176
|
-
} from "./chunk-q5w3v4k1.js";
|
|
177
|
-
import {
|
|
178
|
-
currentTimeMillis,
|
|
179
173
|
SecureRandom,
|
|
180
174
|
layerWebCrypto,
|
|
181
175
|
layer,
|
|
@@ -197,6 +191,7 @@ import {
|
|
|
197
191
|
canonicalSha256,
|
|
198
192
|
tokensSpent,
|
|
199
193
|
isTestReportName,
|
|
194
|
+
failedTestOfLine,
|
|
200
195
|
checkTests,
|
|
201
196
|
MeasureSample,
|
|
202
197
|
catchUpPathLimit,
|
|
@@ -247,8 +242,9 @@ import {
|
|
|
247
242
|
installCommand,
|
|
248
243
|
checkServicesFile,
|
|
249
244
|
checkServices
|
|
250
|
-
} from "./chunk-
|
|
245
|
+
} from "./chunk-ths93svq.js";
|
|
251
246
|
import {
|
|
247
|
+
currentTimeMillis,
|
|
252
248
|
join,
|
|
253
249
|
interrupt,
|
|
254
250
|
unbounded,
|
|
@@ -256,15 +252,17 @@ import {
|
|
|
256
252
|
unbounded2,
|
|
257
253
|
offer,
|
|
258
254
|
makeUnsafe3,
|
|
259
|
-
|
|
255
|
+
make10,
|
|
260
256
|
fromQueue,
|
|
261
257
|
fromPubSub,
|
|
262
258
|
map2,
|
|
263
259
|
filter,
|
|
260
|
+
take2,
|
|
264
261
|
decodeText,
|
|
265
262
|
encodeText,
|
|
266
263
|
splitLines,
|
|
267
264
|
run,
|
|
265
|
+
runCollect,
|
|
268
266
|
runHead,
|
|
269
267
|
runForEach,
|
|
270
268
|
FileSystem,
|
|
@@ -288,7 +286,7 @@ import {
|
|
|
288
286
|
writeSrtSettings2,
|
|
289
287
|
srtStepArgv2,
|
|
290
288
|
srtArgv2
|
|
291
|
-
} from "./chunk-
|
|
289
|
+
} from "./chunk-szt25e0z.js";
|
|
292
290
|
import {
|
|
293
291
|
writeAgentEnvironmentConfigFile2,
|
|
294
292
|
readManifestSkillPaths2,
|
|
@@ -304,8 +302,8 @@ import {
|
|
|
304
302
|
applyAgentEnvironmentMaterialization2,
|
|
305
303
|
isPathWithin2,
|
|
306
304
|
skillIdentity2
|
|
307
|
-
} from "./chunk-
|
|
308
|
-
import"./chunk-
|
|
305
|
+
} from "./chunk-9d03t0pn.js";
|
|
306
|
+
import"./chunk-4m923rz8.js";
|
|
309
307
|
import {
|
|
310
308
|
egressAllowed,
|
|
311
309
|
writeSecretRegistry,
|
|
@@ -315,7 +313,7 @@ import {
|
|
|
315
313
|
secretFilter2,
|
|
316
314
|
opaqueTunnelRefusal2,
|
|
317
315
|
isOpaqueConnectReason2
|
|
318
|
-
} from "./chunk-
|
|
316
|
+
} from "./chunk-eahqsd8h.js";
|
|
319
317
|
import {
|
|
320
318
|
sliceBytes2,
|
|
321
319
|
maxLineBytes2,
|
|
@@ -323,23 +321,28 @@ import {
|
|
|
323
321
|
decodedOption2,
|
|
324
322
|
decoded2,
|
|
325
323
|
readOpencode2
|
|
326
|
-
} from "./chunk-
|
|
324
|
+
} from "./chunk-nge8fq10.js";
|
|
327
325
|
import {
|
|
328
326
|
uploadRunFile,
|
|
329
327
|
programLease,
|
|
330
328
|
rpcRunFiles,
|
|
331
329
|
programHostsEnv,
|
|
332
330
|
undeclaredHostsEnv
|
|
333
|
-
} from "./chunk-
|
|
334
|
-
import"./chunk-
|
|
331
|
+
} from "./chunk-2xh5p0na.js";
|
|
332
|
+
import"./chunk-npjpmb0w.js";
|
|
335
333
|
import {
|
|
336
334
|
nextInt
|
|
337
|
-
} from "./chunk-
|
|
335
|
+
} from "./chunk-fwja3qb1.js";
|
|
338
336
|
import {
|
|
339
337
|
ChildProcessSpawner,
|
|
340
338
|
make3
|
|
341
|
-
} from "./chunk-
|
|
342
|
-
import"./chunk-
|
|
339
|
+
} from "./chunk-3z9yz32f.js";
|
|
340
|
+
import"./chunk-z74fnmqb.js";
|
|
341
|
+
import {
|
|
342
|
+
Id,
|
|
343
|
+
secretReference,
|
|
344
|
+
secretPlaceholder
|
|
345
|
+
} from "./chunk-mcw7wvtx.js";
|
|
343
346
|
|
|
344
347
|
// packages/core/src/sync-kit.ts
|
|
345
348
|
import { createHash } from "crypto";
|
|
@@ -7060,7 +7063,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
|
|
|
7060
7063
|
return {
|
|
7061
7064
|
request: (method, params) => gen(function* () {
|
|
7062
7065
|
const id = ++lastId;
|
|
7063
|
-
const deferred = yield*
|
|
7066
|
+
const deferred = yield* make15();
|
|
7064
7067
|
pending.set(id, deferred);
|
|
7065
7068
|
yield* send({ id, method, params });
|
|
7066
7069
|
return yield* _await(deferred).pipe(mapError2((error) => new CodexAppServerFailed({ reason: `${method}: ${error.message}` })));
|
|
@@ -7203,7 +7206,7 @@ var kitmanMcpPreflight = (mcp) => gen(function* () {
|
|
|
7203
7206
|
const server = yield* spawner.spawn(make3(mcp.command, [...mcp.args], {
|
|
7204
7207
|
extendEnv: true,
|
|
7205
7208
|
env: mcp.env,
|
|
7206
|
-
stdin: { stream:
|
|
7209
|
+
stdin: { stream: make10(new TextEncoder().encode(handshake)), endOnDone: false },
|
|
7207
7210
|
stderr: "ignore"
|
|
7208
7211
|
}));
|
|
7209
7212
|
const reply = yield* server.stdout.pipe(decodeText, splitLines, map2((line) => getOrUndefined(decodeJsonStringOption(line))), filter((message) => isJsonObject(message) && message.id === 2), runHead);
|
|
@@ -7277,7 +7280,7 @@ var programProcessExecutor = (input) => (work) => gen(function* () {
|
|
|
7277
7280
|
const exitCode = sandbox === undefined ? yield* gen(function* () {
|
|
7278
7281
|
const spawner = yield* ChildProcessSpawner;
|
|
7279
7282
|
const handle = yield* spawner.spawn(make3(input.bun ?? process.execPath, [file], {
|
|
7280
|
-
stdin:
|
|
7283
|
+
stdin: make10(new TextEncoder().encode(stdin)),
|
|
7281
7284
|
stdout: "inherit",
|
|
7282
7285
|
stderr: "inherit",
|
|
7283
7286
|
extendEnv: false,
|
|
@@ -7640,13 +7643,13 @@ var checkFileKeeper = (work, runFiles, storage) => {
|
|
|
7640
7643
|
return kept.flat();
|
|
7641
7644
|
}).pipe(catch_((error) => as(logWarning("check_run_files_not_kept", `${input.check}: ${error.message}`), [])));
|
|
7642
7645
|
};
|
|
7643
|
-
var
|
|
7646
|
+
var checkedTests = (filesDir, printed) => gen(function* () {
|
|
7644
7647
|
const fs = yield* FileSystem;
|
|
7645
7648
|
const path = yield* Path;
|
|
7646
7649
|
const names = (yield* regularFiles(filesDir)).filter(isTestReportName);
|
|
7647
7650
|
const reports = yield* forEach(names, (name) => fs.readFileString(path.join(filesDir, name)).pipe(map8((text) => [text]), orElseSucceed(() => [])));
|
|
7648
|
-
return checkTests(reports.flat());
|
|
7649
|
-
}).pipe(orElseSucceed(() => checkTests([])));
|
|
7651
|
+
return checkTests(reports.flat(), printed);
|
|
7652
|
+
}).pipe(orElseSucceed(() => checkTests([], printed)));
|
|
7650
7653
|
|
|
7651
7654
|
class ServicesUnavailable extends TaggedError("ServicesUnavailable") {
|
|
7652
7655
|
get message() {
|
|
@@ -7837,6 +7840,11 @@ var installIn = (worktree, run) => gen(function* () {
|
|
|
7837
7840
|
if (unresolved.length > 0)
|
|
7838
7841
|
return yield* new InstallFailed({ command: forced, output: unresolved.join("; ") });
|
|
7839
7842
|
});
|
|
7843
|
+
var failingLinesRead = 1000;
|
|
7844
|
+
var printedFailures = (output) => gen(function* () {
|
|
7845
|
+
const fs = yield* FileSystem;
|
|
7846
|
+
return yield* fs.stream(output).pipe(decodeText, splitLines, map2(failedTestOfLine), filter((name) => name !== undefined), take2(failingLinesRead), runCollect);
|
|
7847
|
+
}).pipe(orElseSucceed(() => []));
|
|
7840
7848
|
var runChecks = (worktree, checks, tree, known, run, keeper, services) => gen(function* () {
|
|
7841
7849
|
const path = yield* Path;
|
|
7842
7850
|
const due = checks.filter((check) => !known.some((entry) => entry.tree === tree && entry.name === check.name && entry.command === check.command));
|
|
@@ -7850,7 +7858,7 @@ var runChecks = (worktree, checks, tree, known, run, keeper, services) => gen(fu
|
|
|
7850
7858
|
const startedAt = yield* currentTimeMillis;
|
|
7851
7859
|
const filesDir = yield* tempDirectoryScoped(fs, { prefix: "kitman-check-files-" });
|
|
7852
7860
|
const output = path.join(yield* tempDirectoryScoped(fs, { prefix: "kitman-check-output-" }), "output");
|
|
7853
|
-
const sink =
|
|
7861
|
+
const sink = yield* fs.open(output, { flag: "w" });
|
|
7854
7862
|
const docker = check.pipeline === true ? yield* pipelineDaemon(services, check.name) : undefined;
|
|
7855
7863
|
const ran = yield* run({
|
|
7856
7864
|
command: check.command,
|
|
@@ -7858,10 +7866,11 @@ var runChecks = (worktree, checks, tree, known, run, keeper, services) => gen(fu
|
|
|
7858
7866
|
filesDir,
|
|
7859
7867
|
...postgres === undefined ? undefined : { postgres },
|
|
7860
7868
|
...docker === undefined ? undefined : { docker },
|
|
7861
|
-
|
|
7869
|
+
onOutput: (chunk) => sink.writeAll(chunk)
|
|
7862
7870
|
});
|
|
7863
7871
|
const durationMs = (yield* currentTimeMillis) - startedAt;
|
|
7864
|
-
const
|
|
7872
|
+
const printed = ran.exitCode === 0 ? [] : yield* printedFailures(output);
|
|
7873
|
+
const { failedTests, ...tests } = yield* checkedTests(filesDir, printed);
|
|
7865
7874
|
const fileIds = keeper === undefined ? undefined : yield* keeper.keep({ check: check.name, prefix: keeper.prefix, output, filesDir });
|
|
7866
7875
|
return {
|
|
7867
7876
|
name: check.name,
|
|
@@ -7871,7 +7880,7 @@ var runChecks = (worktree, checks, tree, known, run, keeper, services) => gen(fu
|
|
|
7871
7880
|
durationMs,
|
|
7872
7881
|
outputTail: redactedOutputTail(ran.output),
|
|
7873
7882
|
...fileIds === undefined ? undefined : { fileIds },
|
|
7874
|
-
tests
|
|
7883
|
+
tests: { ...tests, ...ran.exitCode === 0 || failedTests === undefined ? undefined : { failedTests } }
|
|
7875
7884
|
};
|
|
7876
7885
|
}).pipe(scoped));
|
|
7877
7886
|
});
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
map8,
|
|
23
23
|
raceFirst,
|
|
24
24
|
scoped
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-8pbnfqaz.js";
|
|
26
26
|
import {
|
|
27
27
|
unwrap,
|
|
28
28
|
drainFork,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
runCollect,
|
|
32
32
|
runDrain,
|
|
33
33
|
mkString
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-szt25e0z.js";
|
|
35
35
|
|
|
36
36
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/redacted.js
|
|
37
37
|
var redactedRegistry = /* @__PURE__ */ new WeakMap;
|
|
@@ -24,11 +24,11 @@ import {
|
|
|
24
24
|
Record,
|
|
25
25
|
Int,
|
|
26
26
|
fromJsonString
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-8pbnfqaz.js";
|
|
28
28
|
import {
|
|
29
29
|
withDefault,
|
|
30
30
|
String2
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-szt25e0z.js";
|
|
32
32
|
import {
|
|
33
33
|
newerKitmanVersion,
|
|
34
34
|
digestSha256,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
get2,
|
|
40
40
|
layer4,
|
|
41
41
|
KitDigest
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-ths93svq.js";
|
|
43
43
|
|
|
44
44
|
// packages/core/src/npm-registry.ts
|
|
45
45
|
var KitManifest = Struct({
|
|
@@ -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-nge8fq10.js";
|
|
11
|
+
import"./chunk-3z9yz32f.js";
|
|
12
|
+
import"./chunk-szt25e0z.js";
|
|
13
|
+
import"./chunk-8pbnfqaz.js";
|
|
14
14
|
export {
|
|
15
15
|
decoded2 as decoded,
|
|
16
16
|
decodedOption2 as decodedOption,
|