@kitman-sh/cli 0.13.18 → 0.14.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-940cc29s.js → chunk-099ybrqz.js} +18 -18
- package/dist/{chunk-fv2v1sdc.js → chunk-4c6w8sb7.js} +16 -16
- package/dist/{chunk-r1s1dcy0.js → chunk-5129s1vg.js} +3 -3
- package/dist/{chunk-03hvwd6m.js → chunk-5d2sdzbz.js} +10 -10
- package/dist/{chunk-dc0pcs3z.js → chunk-84fcym2g.js} +1 -1
- package/dist/{chunk-q5w3v4k1.js → chunk-9avbsbvk.js} +1 -6
- package/dist/{chunk-39m1xtbk.js → chunk-9j4cnz4j.js} +135 -65
- package/dist/{chunk-gq7y5v3e.js → chunk-bbf0jzsc.js} +1 -1
- package/dist/{chunk-vxc2cg5f.js → chunk-bmkc5r0p.js} +9 -9
- package/dist/{chunk-rp4tn60z.js → chunk-bscvbpa1.js} +6 -6
- package/dist/{chunk-1cbnvby8.js → chunk-c4mf5mgt.js} +2 -2
- package/dist/{chunk-gy9rf14f.js → chunk-ctpgfdzf.js} +3 -3
- package/dist/{chunk-bc8ytp0y.js → chunk-f2ycw5bp.js} +308 -130
- package/dist/{chunk-z1rve2hk.js → chunk-gbr4s7nk.js} +6 -6
- package/dist/{chunk-827sgh31.js → chunk-gmdd1a74.js} +1 -1
- package/dist/{chunk-hakqpy8z.js → chunk-h7zb6d3z.js} +33 -185
- package/dist/{chunk-frjsv0ng.js → chunk-hq2xzj6f.js} +4 -4
- package/dist/{chunk-84xks8tn.js → chunk-r9tzwrnb.js} +2 -2
- package/dist/{chunk-gqy5shhk.js → chunk-t2zzamex.js} +30 -30
- package/dist/{chunk-ynvzbgms.js → chunk-vth8h56e.js} +4 -4
- package/dist/{chunk-a7ds2jqf.js → chunk-w34sq09e.js} +8 -8
- package/dist/{chunk-7m71m106.js → chunk-w8vxzc7w.js} +27 -14
- package/dist/{chunk-be2jf9m3.js → chunk-wb3wsm86.js} +10 -10
- package/dist/{chunk-y1krmnbv.js → chunk-y0y2gg8d.js} +2 -2
- package/dist/{chunk-zw3gf6r5.js → chunk-zpp4jg4a.js} +118 -60
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
add,
|
|
13
13
|
getOrUndefinedUnsafe,
|
|
14
14
|
getUnsafe,
|
|
15
|
-
|
|
15
|
+
get3,
|
|
16
16
|
Reference,
|
|
17
17
|
toMillis,
|
|
18
18
|
isSuccess,
|
|
@@ -96,21 +96,8 @@ import {
|
|
|
96
96
|
Defect,
|
|
97
97
|
Exit,
|
|
98
98
|
toCodecJson
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-zpp4jg4a.js";
|
|
100
100
|
import {
|
|
101
|
-
interrupt,
|
|
102
|
-
getCurrent,
|
|
103
|
-
makeUnsafe2,
|
|
104
|
-
bounded,
|
|
105
|
-
offerAll,
|
|
106
|
-
failCause,
|
|
107
|
-
end,
|
|
108
|
-
shutdownUnsafe,
|
|
109
|
-
fromQueue,
|
|
110
|
-
unwrap
|
|
111
|
-
} from "./chunk-hakqpy8z.js";
|
|
112
|
-
import {
|
|
113
|
-
Clock,
|
|
114
101
|
empty,
|
|
115
102
|
fromInput,
|
|
116
103
|
merge,
|
|
@@ -123,7 +110,20 @@ import {
|
|
|
123
110
|
ParseOptions,
|
|
124
111
|
RpcClientDefect,
|
|
125
112
|
RpcClientError
|
|
126
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-f2ycw5bp.js";
|
|
114
|
+
import {
|
|
115
|
+
Clock,
|
|
116
|
+
interrupt,
|
|
117
|
+
getCurrent,
|
|
118
|
+
makeUnsafe2,
|
|
119
|
+
bounded,
|
|
120
|
+
offerAll,
|
|
121
|
+
failCause,
|
|
122
|
+
end,
|
|
123
|
+
shutdownUnsafe,
|
|
124
|
+
fromQueue,
|
|
125
|
+
unwrap
|
|
126
|
+
} from "./chunk-h7zb6d3z.js";
|
|
127
127
|
|
|
128
128
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/workers/Transferable.js
|
|
129
129
|
class Collector extends (/* @__PURE__ */ Service2()("effect/workers/Transferable/Collector")) {
|
|
@@ -237,7 +237,7 @@ var makeNoSerialization = /* @__PURE__ */ fnUntraced(function* (group, options)
|
|
|
237
237
|
const disableTracing = options?.disableTracing ?? false;
|
|
238
238
|
const generateRequestId = options?.generateRequestId ?? (() => requestIdCounter++);
|
|
239
239
|
const services = yield* context();
|
|
240
|
-
const scope =
|
|
240
|
+
const scope = get3(services, Scope);
|
|
241
241
|
const entries = new Map;
|
|
242
242
|
let isShutdown = false;
|
|
243
243
|
yield* addFinalizer(scope, withFiber2((parent) => {
|
|
@@ -643,7 +643,7 @@ var makeRpcSchemas = (codecFor) => {
|
|
|
643
643
|
return entry;
|
|
644
644
|
}
|
|
645
645
|
const streamSchemas = getStreamSchemas(rpc.successSchema);
|
|
646
|
-
const parseOptions =
|
|
646
|
+
const parseOptions = get3(rpc.annotations, ParseOptions);
|
|
647
647
|
const exitSchema2 = exitSchema(rpc);
|
|
648
648
|
let decodeDiscardExit;
|
|
649
649
|
entry = {
|
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
decodeText,
|
|
4
|
-
mkString,
|
|
5
|
-
FileSystem,
|
|
6
|
-
Path,
|
|
7
|
-
withDefault,
|
|
8
|
-
String2
|
|
9
|
-
} from "./chunk-hakqpy8z.js";
|
|
10
2
|
import {
|
|
11
3
|
isString,
|
|
12
4
|
hasProperty,
|
|
@@ -40,8 +32,7 @@ import {
|
|
|
40
32
|
toCodecJson,
|
|
41
33
|
Json,
|
|
42
34
|
encodePrettyJsonString
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import"./chunk-q5w3v4k1.js";
|
|
35
|
+
} from "./chunk-zpp4jg4a.js";
|
|
45
36
|
import {
|
|
46
37
|
SecureRandom,
|
|
47
38
|
layerWebCrypto,
|
|
@@ -53,23 +44,32 @@ import {
|
|
|
53
44
|
layer4,
|
|
54
45
|
kitmanMcpServer,
|
|
55
46
|
RunnerRpcProtocolVersion
|
|
56
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-f2ycw5bp.js";
|
|
48
|
+
import {
|
|
49
|
+
decodeText,
|
|
50
|
+
mkString,
|
|
51
|
+
FileSystem,
|
|
52
|
+
Path,
|
|
53
|
+
withDefault,
|
|
54
|
+
String2
|
|
55
|
+
} from "./chunk-h7zb6d3z.js";
|
|
57
56
|
import {
|
|
58
57
|
Packument,
|
|
59
58
|
tarballMatches
|
|
60
|
-
} from "./chunk-
|
|
61
|
-
import"./chunk-
|
|
59
|
+
} from "./chunk-5129s1vg.js";
|
|
60
|
+
import"./chunk-bscvbpa1.js";
|
|
62
61
|
import {
|
|
63
62
|
AgentDeclaration,
|
|
64
63
|
KitDeclarations,
|
|
65
64
|
describeFlag,
|
|
66
65
|
Described
|
|
67
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-5d2sdzbz.js";
|
|
68
67
|
import {
|
|
69
68
|
ChildProcessSpawner,
|
|
70
69
|
make3
|
|
71
|
-
} from "./chunk-
|
|
72
|
-
import"./chunk-
|
|
70
|
+
} from "./chunk-r9tzwrnb.js";
|
|
71
|
+
import"./chunk-099ybrqz.js";
|
|
72
|
+
import"./chunk-9avbsbvk.js";
|
|
73
73
|
|
|
74
74
|
// packages/sdk/src/build/index.ts
|
|
75
75
|
class DependencyInstallFailed extends TaggedError2()("DependencyInstallFailed", {
|
|
@@ -24,11 +24,11 @@ import {
|
|
|
24
24
|
Record,
|
|
25
25
|
Int,
|
|
26
26
|
fromJsonString
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-zpp4jg4a.js";
|
|
28
28
|
import {
|
|
29
29
|
withDefault,
|
|
30
30
|
String2
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-h7zb6d3z.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-f2ycw5bp.js";
|
|
43
43
|
|
|
44
44
|
// packages/core/src/npm-registry.ts
|
|
45
45
|
var KitManifest = Struct({
|
|
@@ -75,16 +75,8 @@ import {
|
|
|
75
75
|
toEquivalence,
|
|
76
76
|
toCodecJson,
|
|
77
77
|
Json
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-zpp4jg4a.js";
|
|
79
79
|
import {
|
|
80
|
-
runForEach,
|
|
81
|
-
FileSystem
|
|
82
|
-
} from "./chunk-hakqpy8z.js";
|
|
83
|
-
import {
|
|
84
|
-
guard
|
|
85
|
-
} from "./chunk-q5w3v4k1.js";
|
|
86
|
-
import {
|
|
87
|
-
currentTimeMillis,
|
|
88
80
|
WebCrypto,
|
|
89
81
|
SafeJson,
|
|
90
82
|
AgentSandboxNetwork,
|
|
@@ -109,7 +101,15 @@ import {
|
|
|
109
101
|
KitDigest,
|
|
110
102
|
KitSetup,
|
|
111
103
|
RunnerRpcError
|
|
112
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-f2ycw5bp.js";
|
|
105
|
+
import {
|
|
106
|
+
currentTimeMillis,
|
|
107
|
+
runForEach,
|
|
108
|
+
FileSystem
|
|
109
|
+
} from "./chunk-h7zb6d3z.js";
|
|
110
|
+
import {
|
|
111
|
+
guard
|
|
112
|
+
} from "./chunk-9avbsbvk.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");
|
|
@@ -18,12 +18,7 @@ import {
|
|
|
18
18
|
isMinLength,
|
|
19
19
|
isMaxLength,
|
|
20
20
|
FiniteFromString
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
|
|
23
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/JsonSchema.js
|
|
24
|
-
var PRE_2020_TO_2020_COLLISIONS = ["$anchor", "$defs", "$dynamicAnchor", "$dynamicRef", "$vocabulary", "contentSchema", "dependentRequired", "dependentSchemas", "maxContains", "minContains", "prefixItems", "unevaluatedItems", "unevaluatedProperties"];
|
|
25
|
-
var DRAFT_07_TO_2020_COLLISIONS = [...PRE_2020_TO_2020_COLLISIONS, "deprecated"];
|
|
26
|
-
var OPEN_API_30_TO_2020_COLLISIONS = [...PRE_2020_TO_2020_COLLISIONS, "$comment", "$id", "$schema", "const", "contains", "contentEncoding", "contentMediaType", "else", "examples", "if", "patternProperties", "propertyNames", "then"];
|
|
21
|
+
} from "./chunk-zpp4jg4a.js";
|
|
27
22
|
|
|
28
23
|
// packages/core/src/schema.ts
|
|
29
24
|
var Days = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
@@ -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,57 +168,8 @@ import {
|
|
|
168
168
|
decodeJsonStringSync,
|
|
169
169
|
encodeUnknownJsonStringSync,
|
|
170
170
|
storable
|
|
171
|
-
} from "./chunk-
|
|
171
|
+
} from "./chunk-zpp4jg4a.js";
|
|
172
172
|
import {
|
|
173
|
-
join,
|
|
174
|
-
interrupt,
|
|
175
|
-
unbounded,
|
|
176
|
-
publishUnsafe,
|
|
177
|
-
unbounded2,
|
|
178
|
-
offer,
|
|
179
|
-
makeUnsafe3,
|
|
180
|
-
make11,
|
|
181
|
-
fromQueue,
|
|
182
|
-
fromPubSub,
|
|
183
|
-
map2,
|
|
184
|
-
filter,
|
|
185
|
-
take2,
|
|
186
|
-
decodeText,
|
|
187
|
-
encodeText,
|
|
188
|
-
splitLines,
|
|
189
|
-
run,
|
|
190
|
-
runCollect,
|
|
191
|
-
runHead,
|
|
192
|
-
runForEach,
|
|
193
|
-
FileSystem,
|
|
194
|
-
Path,
|
|
195
|
-
embeddedFile,
|
|
196
|
-
extractEmbeddedFile,
|
|
197
|
-
optionalEnv,
|
|
198
|
-
operatorConfigHome,
|
|
199
|
-
tempDirectoryScoped,
|
|
200
|
-
harnessesUnsupportedInSrt2,
|
|
201
|
-
compiled2,
|
|
202
|
-
pinnedSrtCommand2,
|
|
203
|
-
pinnedSrtStepCommand2,
|
|
204
|
-
runSrtCli2,
|
|
205
|
-
kitmanCacheDirectory2,
|
|
206
|
-
srtSettings2,
|
|
207
|
-
srtCacheEnvironment2,
|
|
208
|
-
srtInheritedEnv2,
|
|
209
|
-
inheritedEnvironment2,
|
|
210
|
-
withOnlyEnvironment2,
|
|
211
|
-
writeSrtSettings2,
|
|
212
|
-
srtStepArgv2,
|
|
213
|
-
srtArgv2
|
|
214
|
-
} from "./chunk-hakqpy8z.js";
|
|
215
|
-
import {
|
|
216
|
-
Id,
|
|
217
|
-
secretReference,
|
|
218
|
-
secretPlaceholder
|
|
219
|
-
} from "./chunk-q5w3v4k1.js";
|
|
220
|
-
import {
|
|
221
|
-
currentTimeMillis,
|
|
222
173
|
SecureRandom,
|
|
223
174
|
layerWebCrypto,
|
|
224
175
|
layer,
|
|
@@ -297,7 +248,52 @@ import {
|
|
|
297
248
|
checkServicesFile,
|
|
298
249
|
checkServices,
|
|
299
250
|
serviceChecks
|
|
300
|
-
} from "./chunk-
|
|
251
|
+
} from "./chunk-f2ycw5bp.js";
|
|
252
|
+
import {
|
|
253
|
+
currentTimeMillis,
|
|
254
|
+
join,
|
|
255
|
+
interrupt,
|
|
256
|
+
unbounded,
|
|
257
|
+
publishUnsafe,
|
|
258
|
+
unbounded2,
|
|
259
|
+
offer,
|
|
260
|
+
makeUnsafe3,
|
|
261
|
+
make10,
|
|
262
|
+
fromQueue,
|
|
263
|
+
fromPubSub,
|
|
264
|
+
map2,
|
|
265
|
+
filter,
|
|
266
|
+
take2,
|
|
267
|
+
decodeText,
|
|
268
|
+
encodeText,
|
|
269
|
+
splitLines,
|
|
270
|
+
run,
|
|
271
|
+
runCollect,
|
|
272
|
+
runFold,
|
|
273
|
+
runHead,
|
|
274
|
+
runForEach,
|
|
275
|
+
FileSystem,
|
|
276
|
+
Path,
|
|
277
|
+
embeddedFile,
|
|
278
|
+
extractEmbeddedFile,
|
|
279
|
+
optionalEnv,
|
|
280
|
+
operatorConfigHome,
|
|
281
|
+
tempDirectoryScoped,
|
|
282
|
+
harnessesUnsupportedInSrt2,
|
|
283
|
+
compiled2,
|
|
284
|
+
pinnedSrtCommand2,
|
|
285
|
+
pinnedSrtStepCommand2,
|
|
286
|
+
runSrtCli2,
|
|
287
|
+
kitmanCacheDirectory2,
|
|
288
|
+
srtSettings2,
|
|
289
|
+
srtCacheEnvironment2,
|
|
290
|
+
srtInheritedEnv2,
|
|
291
|
+
inheritedEnvironment2,
|
|
292
|
+
withOnlyEnvironment2,
|
|
293
|
+
writeSrtSettings2,
|
|
294
|
+
srtStepArgv2,
|
|
295
|
+
srtArgv2
|
|
296
|
+
} from "./chunk-h7zb6d3z.js";
|
|
301
297
|
import {
|
|
302
298
|
writeAgentEnvironmentConfigFile2,
|
|
303
299
|
readManifestSkillPaths2,
|
|
@@ -313,8 +309,8 @@ import {
|
|
|
313
309
|
applyAgentEnvironmentMaterialization2,
|
|
314
310
|
isPathWithin2,
|
|
315
311
|
skillIdentity2
|
|
316
|
-
} from "./chunk-
|
|
317
|
-
import"./chunk-
|
|
312
|
+
} from "./chunk-bmkc5r0p.js";
|
|
313
|
+
import"./chunk-5129s1vg.js";
|
|
318
314
|
import {
|
|
319
315
|
egressAllowed,
|
|
320
316
|
writeSecretRegistry,
|
|
@@ -324,7 +320,7 @@ import {
|
|
|
324
320
|
secretFilter2,
|
|
325
321
|
opaqueTunnelRefusal2,
|
|
326
322
|
isOpaqueConnectReason2
|
|
327
|
-
} from "./chunk-
|
|
323
|
+
} from "./chunk-y0y2gg8d.js";
|
|
328
324
|
import {
|
|
329
325
|
sliceBytes2,
|
|
330
326
|
maxLineBytes2,
|
|
@@ -332,23 +328,28 @@ import {
|
|
|
332
328
|
decodedOption2,
|
|
333
329
|
decoded2,
|
|
334
330
|
readOpencode2
|
|
335
|
-
} from "./chunk-
|
|
331
|
+
} from "./chunk-w34sq09e.js";
|
|
336
332
|
import {
|
|
337
333
|
uploadRunFile,
|
|
338
334
|
programLease,
|
|
339
335
|
rpcRunFiles,
|
|
340
336
|
programHostsEnv,
|
|
341
337
|
undeclaredHostsEnv
|
|
342
|
-
} from "./chunk-
|
|
343
|
-
import"./chunk-
|
|
338
|
+
} from "./chunk-5d2sdzbz.js";
|
|
339
|
+
import"./chunk-bscvbpa1.js";
|
|
344
340
|
import {
|
|
345
341
|
nextInt
|
|
346
|
-
} from "./chunk-
|
|
342
|
+
} from "./chunk-bbf0jzsc.js";
|
|
347
343
|
import {
|
|
348
344
|
ChildProcessSpawner,
|
|
349
345
|
make3
|
|
350
|
-
} from "./chunk-
|
|
351
|
-
import"./chunk-
|
|
346
|
+
} from "./chunk-r9tzwrnb.js";
|
|
347
|
+
import"./chunk-099ybrqz.js";
|
|
348
|
+
import {
|
|
349
|
+
Id,
|
|
350
|
+
secretReference,
|
|
351
|
+
secretPlaceholder
|
|
352
|
+
} from "./chunk-9avbsbvk.js";
|
|
352
353
|
|
|
353
354
|
// packages/core/src/sync-kit.ts
|
|
354
355
|
import { createHash } from "crypto";
|
|
@@ -565,6 +566,61 @@ function sortValue(value) {
|
|
|
565
566
|
return result;
|
|
566
567
|
}
|
|
567
568
|
|
|
569
|
+
// packages/core/src/parallel-output.ts
|
|
570
|
+
var maxLineLength = 1000;
|
|
571
|
+
var ansiColours = /\u001B\[[\d;]*m/gu;
|
|
572
|
+
var failedEnding = /^(\S(?:(?! +\| ).)*) +\| (?:Exited with code (\d+)|Signaled: (SIG[A-Z\d]+))$/u;
|
|
573
|
+
var printed = (line) => line.slice(0, maxLineLength).replaceAll(ansiColours, "").trimEnd();
|
|
574
|
+
var parallelFailureOfLine = (line) => {
|
|
575
|
+
const found = failedEnding.exec(printed(line));
|
|
576
|
+
if (found === null || found[2] === "0")
|
|
577
|
+
return;
|
|
578
|
+
return {
|
|
579
|
+
command: found[1] ?? "",
|
|
580
|
+
ending: found[2] === undefined ? `was signaled ${found[3]}` : `exited with code ${found[2]}`
|
|
581
|
+
};
|
|
582
|
+
};
|
|
583
|
+
var parallelCommandOutput = (line, command) => {
|
|
584
|
+
const text = printed(line);
|
|
585
|
+
if (!text.startsWith(command))
|
|
586
|
+
return;
|
|
587
|
+
return /^ +\| ?(.*)$/su.exec(text.slice(command.length))?.[1];
|
|
588
|
+
};
|
|
589
|
+
var failuresBudget = 3300;
|
|
590
|
+
var headerLimit = 600;
|
|
591
|
+
var headerStart = "Failed in parallel: ";
|
|
592
|
+
var lastLinesWithin = (lines, budget) => {
|
|
593
|
+
const kept = [];
|
|
594
|
+
let left = budget;
|
|
595
|
+
for (const line of [...lines].reverse()) {
|
|
596
|
+
if (line.length + 1 > left) {
|
|
597
|
+
if (left > 1)
|
|
598
|
+
kept.unshift(line.slice(-(left - 1)));
|
|
599
|
+
break;
|
|
600
|
+
}
|
|
601
|
+
kept.unshift(line);
|
|
602
|
+
left -= line.length + 1;
|
|
603
|
+
}
|
|
604
|
+
return kept;
|
|
605
|
+
};
|
|
606
|
+
var outputTailWithParallelFailures = (failures, output) => {
|
|
607
|
+
if (failures.length === 0)
|
|
608
|
+
return redactedOutputTail(output);
|
|
609
|
+
const named = failures.map((failure) => `\`${failure.command}\` ${failure.ending}`).join("; ");
|
|
610
|
+
const header = redactCredentials(`${headerStart}${named}.`).slice(0, headerLimit);
|
|
611
|
+
const each = Math.floor(failuresBudget / failures.length);
|
|
612
|
+
const sections = failures.map((failure) => {
|
|
613
|
+
const title = redactCredentials(`--- ${failure.command} ---`).slice(0, each);
|
|
614
|
+
const lines = lastLinesWithin(redactCredentials(failure.lines.join(`
|
|
615
|
+
`)).split(`
|
|
616
|
+
`), each - title.length - 1);
|
|
617
|
+
return [title, ...lines].join(`
|
|
618
|
+
`);
|
|
619
|
+
});
|
|
620
|
+
return [header, ...sections, "--- end of output ---", redactedOutputTail(output)].join(`
|
|
621
|
+
`);
|
|
622
|
+
};
|
|
623
|
+
|
|
568
624
|
// packages/agent-runtime/src/agent-environment.ts
|
|
569
625
|
class AgentEnvironmentResolutionError extends TaggedError("AgentEnvironmentResolutionError") {
|
|
570
626
|
get message() {
|
|
@@ -7113,7 +7169,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
|
|
|
7113
7169
|
return {
|
|
7114
7170
|
request: (method, params) => gen(function* () {
|
|
7115
7171
|
const id = ++lastId;
|
|
7116
|
-
const deferred = yield*
|
|
7172
|
+
const deferred = yield* make15();
|
|
7117
7173
|
pending.set(id, deferred);
|
|
7118
7174
|
yield* send({ id, method, params });
|
|
7119
7175
|
return yield* _await(deferred).pipe(mapError2((error) => new CodexAppServerFailed({ reason: `${method}: ${error.message}` })));
|
|
@@ -7256,7 +7312,7 @@ var kitmanMcpPreflight = (mcp) => gen(function* () {
|
|
|
7256
7312
|
const server = yield* spawner.spawn(make3(mcp.command, [...mcp.args], {
|
|
7257
7313
|
extendEnv: true,
|
|
7258
7314
|
env: mcp.env,
|
|
7259
|
-
stdin: { stream:
|
|
7315
|
+
stdin: { stream: make10(new TextEncoder().encode(handshake)), endOnDone: false },
|
|
7260
7316
|
stderr: "ignore"
|
|
7261
7317
|
}));
|
|
7262
7318
|
const reply = yield* server.stdout.pipe(decodeText, splitLines, map2((line) => getOrUndefined(decodeJsonStringOption(line))), filter((message) => isJsonObject(message) && message.id === 2), runHead);
|
|
@@ -7330,7 +7386,7 @@ var programProcessExecutor = (input) => (work) => gen(function* () {
|
|
|
7330
7386
|
const exitCode = sandbox === undefined ? yield* gen(function* () {
|
|
7331
7387
|
const spawner = yield* ChildProcessSpawner;
|
|
7332
7388
|
const handle = yield* spawner.spawn(make3(input.bun ?? process.execPath, [file], {
|
|
7333
|
-
stdin:
|
|
7389
|
+
stdin: make10(new TextEncoder().encode(stdin)),
|
|
7334
7390
|
stdout: "inherit",
|
|
7335
7391
|
stderr: "inherit",
|
|
7336
7392
|
extendEnv: false,
|
|
@@ -7895,6 +7951,19 @@ var printedFailures = (output) => gen(function* () {
|
|
|
7895
7951
|
const fs = yield* FileSystem;
|
|
7896
7952
|
return yield* fs.stream(output).pipe(decodeText, splitLines, map2(failedTestOfLine), filter((name) => name !== undefined), take2(failingLinesRead), runCollect);
|
|
7897
7953
|
}).pipe(orElseSucceed(() => []));
|
|
7954
|
+
var maxParallelFailures = 10;
|
|
7955
|
+
var parallelLinesKept = 200;
|
|
7956
|
+
var parallelFailures = (output) => gen(function* () {
|
|
7957
|
+
const fs = yield* FileSystem;
|
|
7958
|
+
const lines = () => fs.stream(output).pipe(decodeText, splitLines);
|
|
7959
|
+
const ended = yield* lines().pipe(map2(parallelFailureOfLine), filter((failure) => failure !== undefined), runFold(() => [], (found, failure) => found.length >= maxParallelFailures || found.some((known) => known.command === failure.command) ? found : [...found, failure]));
|
|
7960
|
+
if (ended.length === 0)
|
|
7961
|
+
return [];
|
|
7962
|
+
return yield* lines().pipe(runFold(() => ended.map((failure) => ({ ...failure, lines: [] })), (kept, line) => kept.map((failure) => {
|
|
7963
|
+
const text = parallelCommandOutput(line, failure.command);
|
|
7964
|
+
return text === undefined ? failure : { ...failure, lines: [...failure.lines, text].slice(-parallelLinesKept) };
|
|
7965
|
+
})));
|
|
7966
|
+
}).pipe(orElseSucceed(() => []));
|
|
7898
7967
|
var startedCheckPostgres = (worktree, services, run) => gen(function* () {
|
|
7899
7968
|
const started = yield* checkoutPostgres(worktree, services);
|
|
7900
7969
|
return started === undefined ? undefined : yield* reachCheckPostgres(started, services, worktree, run);
|
|
@@ -7923,6 +7992,7 @@ var runCheck = (worktree, check, run, keeper, services, postgres) => gen(functio
|
|
|
7923
7992
|
});
|
|
7924
7993
|
const durationMs = (yield* currentTimeMillis) - startedAt;
|
|
7925
7994
|
const printed = ran.exitCode === 0 ? [] : yield* printedFailures(output);
|
|
7995
|
+
const failedInParallel = ran.exitCode === 0 ? [] : yield* parallelFailures(output);
|
|
7926
7996
|
const { tests: checked, statuses } = yield* checkedTests(filesDir, printed);
|
|
7927
7997
|
const { failedTests, ...tests } = checked;
|
|
7928
7998
|
const fileIds = keeper === undefined ? undefined : yield* keeper.keep({ check: check.name, prefix: keeper.prefix, output, filesDir });
|
|
@@ -7933,7 +8003,7 @@ var runCheck = (worktree, check, run, keeper, services, postgres) => gen(functio
|
|
|
7933
8003
|
status: ran.exitCode === 0 ? "passed" : "failed",
|
|
7934
8004
|
...ran.exitCode === undefined ? undefined : { exitCode: ran.exitCode },
|
|
7935
8005
|
durationMs,
|
|
7936
|
-
outputTail:
|
|
8006
|
+
outputTail: outputTailWithParallelFailures(failedInParallel, ran.output),
|
|
7937
8007
|
...fileIds === undefined ? undefined : { fileIds },
|
|
7938
8008
|
tests: { ...tests, ...ran.exitCode === 0 || failedTests === undefined ? undefined : { failedTests } }
|
|
7939
8009
|
},
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
FileSystem,
|
|
4
|
-
Path,
|
|
5
|
-
optionalEnv,
|
|
6
|
-
tempDirectoryScoped
|
|
7
|
-
} from "./chunk-hakqpy8z.js";
|
|
8
2
|
import {
|
|
9
3
|
Reference,
|
|
10
4
|
TaggedError,
|
|
@@ -31,15 +25,21 @@ import {
|
|
|
31
25
|
isString2,
|
|
32
26
|
encodePrettyJsonString,
|
|
33
27
|
decodeJsonStringSync
|
|
34
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-zpp4jg4a.js";
|
|
29
|
+
import {
|
|
30
|
+
FileSystem,
|
|
31
|
+
Path,
|
|
32
|
+
optionalEnv,
|
|
33
|
+
tempDirectoryScoped
|
|
34
|
+
} from "./chunk-h7zb6d3z.js";
|
|
35
35
|
import {
|
|
36
36
|
AgentHarnessIds,
|
|
37
37
|
sha2562,
|
|
38
38
|
runCommand2
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-f2ycw5bp.js";
|
|
40
40
|
import {
|
|
41
41
|
NpmRegistry
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-5129s1vg.js";
|
|
43
43
|
|
|
44
44
|
// packages/agent-runtime/src/config-convergence.ts
|
|
45
45
|
var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
|
|
@@ -6,10 +6,7 @@ import {
|
|
|
6
6
|
gen,
|
|
7
7
|
flatMap3,
|
|
8
8
|
provideContext2
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
runForEach
|
|
12
|
-
} from "./chunk-hakqpy8z.js";
|
|
9
|
+
} from "./chunk-zpp4jg4a.js";
|
|
13
10
|
import {
|
|
14
11
|
WebSocketConstructor,
|
|
15
12
|
layerWebSocketConstructorGlobal,
|
|
@@ -19,13 +16,16 @@ import {
|
|
|
19
16
|
RunnerReplicaRpcs,
|
|
20
17
|
RunnerRunFileRpcs,
|
|
21
18
|
ProgramRpcs
|
|
22
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-f2ycw5bp.js";
|
|
20
|
+
import {
|
|
21
|
+
runForEach
|
|
22
|
+
} from "./chunk-h7zb6d3z.js";
|
|
23
23
|
import {
|
|
24
24
|
layerJson,
|
|
25
25
|
make4,
|
|
26
26
|
withHeaders,
|
|
27
27
|
layerProtocolSocket
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-099ybrqz.js";
|
|
29
29
|
|
|
30
30
|
// packages/live/src/rpc/runner-client.ts
|
|
31
31
|
var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
writeSrtSettings2,
|
|
15
15
|
srtStepArgv2,
|
|
16
16
|
srtArgv2
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import"./chunk-
|
|
17
|
+
} from "./chunk-h7zb6d3z.js";
|
|
18
|
+
import"./chunk-zpp4jg4a.js";
|
|
19
19
|
export {
|
|
20
20
|
compiled2 as compiled,
|
|
21
21
|
harnessesUnsupportedInSrt2 as harnessesUnsupportedInSrt,
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
opaqueTunnelRefusal2,
|
|
5
5
|
isOpaqueConnectReason2,
|
|
6
6
|
runSrtStep2
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import"./chunk-
|
|
9
|
-
import"./chunk-
|
|
7
|
+
} from "./chunk-y0y2gg8d.js";
|
|
8
|
+
import"./chunk-9avbsbvk.js";
|
|
9
|
+
import"./chunk-zpp4jg4a.js";
|
|
10
10
|
export {
|
|
11
11
|
isOpaqueConnectReason2 as isOpaqueConnectReason,
|
|
12
12
|
opaqueTunnelRefusal2 as opaqueTunnelRefusal,
|