@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
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
assignProperty,
|
|
39
39
|
PipeInspectableProto,
|
|
40
40
|
withFiber,
|
|
41
|
-
|
|
41
|
+
make13,
|
|
42
42
|
strictEqual,
|
|
43
43
|
Tuple,
|
|
44
44
|
Number2,
|
|
@@ -58,13 +58,15 @@ import {
|
|
|
58
58
|
Service2,
|
|
59
59
|
makeUnsafe4,
|
|
60
60
|
empty3,
|
|
61
|
-
|
|
61
|
+
make14,
|
|
62
62
|
add,
|
|
63
63
|
getOrUndefined2,
|
|
64
64
|
getOrUndefinedUnsafe,
|
|
65
|
-
|
|
65
|
+
get3,
|
|
66
66
|
merge3,
|
|
67
67
|
Reference,
|
|
68
|
+
fromInputUnsafe,
|
|
69
|
+
isFinite,
|
|
68
70
|
millis,
|
|
69
71
|
seconds,
|
|
70
72
|
toMillis,
|
|
@@ -84,14 +86,14 @@ import {
|
|
|
84
86
|
DisablePropagation,
|
|
85
87
|
sync,
|
|
86
88
|
map7,
|
|
87
|
-
ClockRef,
|
|
88
|
-
currentTimeMillis2,
|
|
89
89
|
ConsoleRef,
|
|
90
90
|
succeed3,
|
|
91
91
|
fail4,
|
|
92
|
+
void_2,
|
|
92
93
|
isSuccess2,
|
|
94
|
+
isFailure2,
|
|
93
95
|
makeUnsafe5,
|
|
94
|
-
|
|
96
|
+
make15,
|
|
95
97
|
_await,
|
|
96
98
|
fail5,
|
|
97
99
|
isDone,
|
|
@@ -99,8 +101,12 @@ import {
|
|
|
99
101
|
succeed4,
|
|
100
102
|
doneUnsafe,
|
|
101
103
|
TracerTimingEnabled,
|
|
104
|
+
Scope,
|
|
105
|
+
makeUnsafe6,
|
|
102
106
|
provide,
|
|
107
|
+
addFinalizerExit,
|
|
103
108
|
addFinalizer,
|
|
109
|
+
close,
|
|
104
110
|
succeed5,
|
|
105
111
|
effect,
|
|
106
112
|
effectContext,
|
|
@@ -152,6 +158,7 @@ import {
|
|
|
152
158
|
tapCause,
|
|
153
159
|
retry,
|
|
154
160
|
ignore,
|
|
161
|
+
ignoreCause,
|
|
155
162
|
orElseSucceed,
|
|
156
163
|
timeout,
|
|
157
164
|
timeoutOrElse,
|
|
@@ -163,6 +170,7 @@ import {
|
|
|
163
170
|
context,
|
|
164
171
|
contextWith,
|
|
165
172
|
provide3,
|
|
173
|
+
provideContext2,
|
|
166
174
|
serviceOption,
|
|
167
175
|
updateContext,
|
|
168
176
|
provideService,
|
|
@@ -173,6 +181,7 @@ import {
|
|
|
173
181
|
addFinalizer2,
|
|
174
182
|
ensuring2,
|
|
175
183
|
onError,
|
|
184
|
+
onExit,
|
|
176
185
|
cached,
|
|
177
186
|
interrupt3,
|
|
178
187
|
interruptible,
|
|
@@ -184,6 +193,7 @@ import {
|
|
|
184
193
|
withParentSpan,
|
|
185
194
|
forkScoped,
|
|
186
195
|
runFork,
|
|
196
|
+
runForkWith,
|
|
187
197
|
runPromise,
|
|
188
198
|
runPromiseWith,
|
|
189
199
|
runSync,
|
|
@@ -202,7 +212,7 @@ import {
|
|
|
202
212
|
decodeEffect,
|
|
203
213
|
decodeUnknownOption,
|
|
204
214
|
decodeOption,
|
|
205
|
-
|
|
215
|
+
make16,
|
|
206
216
|
isSchema,
|
|
207
217
|
optionalKey,
|
|
208
218
|
optional,
|
|
@@ -261,11 +271,17 @@ import {
|
|
|
261
271
|
decodeJsonStringOption,
|
|
262
272
|
encodeJsonStringSync,
|
|
263
273
|
encodePrettyJsonString
|
|
264
|
-
} from "./chunk-
|
|
274
|
+
} from "./chunk-8pbnfqaz.js";
|
|
265
275
|
import {
|
|
266
276
|
map,
|
|
267
277
|
makeEquivalence,
|
|
278
|
+
Clock,
|
|
279
|
+
currentTimeMillis,
|
|
268
280
|
bytes,
|
|
281
|
+
join,
|
|
282
|
+
interrupt,
|
|
283
|
+
getCurrent,
|
|
284
|
+
runIn,
|
|
269
285
|
BadArgument,
|
|
270
286
|
systemError,
|
|
271
287
|
badArgument,
|
|
@@ -287,13 +303,11 @@ import {
|
|
|
287
303
|
isSink,
|
|
288
304
|
fromChannel,
|
|
289
305
|
drain,
|
|
290
|
-
make10,
|
|
291
|
-
get3,
|
|
292
306
|
isStream,
|
|
293
307
|
fromChannel2,
|
|
294
308
|
callback,
|
|
295
309
|
empty2,
|
|
296
|
-
|
|
310
|
+
make10,
|
|
297
311
|
suspend,
|
|
298
312
|
fail2,
|
|
299
313
|
fromQueue,
|
|
@@ -319,29 +333,16 @@ import {
|
|
|
319
333
|
mkArrayBuffer,
|
|
320
334
|
toReadableStreamEffect,
|
|
321
335
|
FileSystem,
|
|
322
|
-
|
|
336
|
+
make11,
|
|
323
337
|
FileTypeId,
|
|
324
338
|
WatchBackend,
|
|
325
339
|
Path,
|
|
326
|
-
|
|
340
|
+
make12,
|
|
327
341
|
option,
|
|
328
342
|
String2,
|
|
329
343
|
optionalEnv,
|
|
330
344
|
harnessesUnsupportedInSrt2
|
|
331
|
-
} from "./chunk-
|
|
332
|
-
import {
|
|
333
|
-
isDateTime,
|
|
334
|
-
Numeric,
|
|
335
|
-
isWholeNumber,
|
|
336
|
-
guard,
|
|
337
|
-
Id,
|
|
338
|
-
Timestamp,
|
|
339
|
-
ActorType,
|
|
340
|
-
SecretName,
|
|
341
|
-
SecretScope,
|
|
342
|
-
SecretHosts,
|
|
343
|
-
isSecretReference
|
|
344
|
-
} from "./chunk-q5w3v4k1.js";
|
|
345
|
+
} from "./chunk-szt25e0z.js";
|
|
345
346
|
import {
|
|
346
347
|
isRedacted,
|
|
347
348
|
make,
|
|
@@ -355,15 +356,24 @@ import {
|
|
|
355
356
|
make3,
|
|
356
357
|
parseFdName,
|
|
357
358
|
fdName
|
|
358
|
-
} from "./chunk-
|
|
359
|
+
} from "./chunk-3z9yz32f.js";
|
|
360
|
+
import {
|
|
361
|
+
isDateTime,
|
|
362
|
+
Numeric,
|
|
363
|
+
isWholeNumber,
|
|
364
|
+
guard,
|
|
365
|
+
Id,
|
|
366
|
+
Timestamp,
|
|
367
|
+
ActorType,
|
|
368
|
+
SecretName,
|
|
369
|
+
SecretScope,
|
|
370
|
+
SecretHosts,
|
|
371
|
+
isSecretReference
|
|
372
|
+
} from "./chunk-mcw7wvtx.js";
|
|
359
373
|
|
|
360
374
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
|
|
361
375
|
var makeEquivalence3 = Tuple;
|
|
362
376
|
|
|
363
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Clock.js
|
|
364
|
-
var Clock = ClockRef;
|
|
365
|
-
var currentTimeMillis = currentTimeMillis2;
|
|
366
|
-
|
|
367
377
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/dateTime.js
|
|
368
378
|
var TypeId = "~effect/DateTime";
|
|
369
379
|
var TimeZoneTypeId = "~effect/DateTime/TimeZone";
|
|
@@ -498,7 +508,7 @@ var fromDateUnsafe = (date) => {
|
|
|
498
508
|
}
|
|
499
509
|
return makeUtc(epochMillis);
|
|
500
510
|
};
|
|
501
|
-
var
|
|
511
|
+
var makeUnsafe7 = (input) => {
|
|
502
512
|
if (isDateTime2(input)) {
|
|
503
513
|
return input;
|
|
504
514
|
} else if (input instanceof Date) {
|
|
@@ -518,7 +528,7 @@ var makeUnsafe6 = (input) => {
|
|
|
518
528
|
var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
|
|
519
529
|
var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
|
|
520
530
|
var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
|
|
521
|
-
var make4 = /* @__PURE__ */ liftThrowable(
|
|
531
|
+
var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe7);
|
|
522
532
|
var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
|
|
523
533
|
var nowUnsafe = () => makeUtc(Date.now());
|
|
524
534
|
var toDateUtc = (self) => new Date(self.epochMilliseconds);
|
|
@@ -625,7 +635,7 @@ class Metric$ {
|
|
|
625
635
|
}
|
|
626
636
|
hook(context) {
|
|
627
637
|
const key = this.key(context);
|
|
628
|
-
const registry =
|
|
638
|
+
const registry = get3(context, MetricRegistry);
|
|
629
639
|
let metadata = registry.get(key);
|
|
630
640
|
if (isUndefined(metadata)) {
|
|
631
641
|
metadata = this.metadata(this.createHooks());
|
|
@@ -634,11 +644,11 @@ class Metric$ {
|
|
|
634
644
|
return metadata.hooks;
|
|
635
645
|
}
|
|
636
646
|
removeUnsafe(context) {
|
|
637
|
-
|
|
647
|
+
get3(context, MetricRegistry).delete(this.key(context));
|
|
638
648
|
}
|
|
639
649
|
registerUnsafe(context, hooks) {
|
|
640
650
|
const key = this.key(context);
|
|
641
|
-
const registry =
|
|
651
|
+
const registry = get3(context, MetricRegistry);
|
|
642
652
|
const metadata = this.metadata({
|
|
643
653
|
get: hooks.get,
|
|
644
654
|
update: constVoid,
|
|
@@ -654,7 +664,7 @@ class Metric$ {
|
|
|
654
664
|
};
|
|
655
665
|
}
|
|
656
666
|
key(context) {
|
|
657
|
-
const extraAttributes =
|
|
667
|
+
const extraAttributes = get3(context, CurrentMetricAttributes);
|
|
658
668
|
if (extraAttributes !== this.#extraAttributes) {
|
|
659
669
|
this.#extraAttributes = extraAttributes;
|
|
660
670
|
const merged = mergeAttributes(this.attributes, extraAttributes);
|
|
@@ -906,9 +916,151 @@ var toNumber = (b) => {
|
|
|
906
916
|
return some(Number(b));
|
|
907
917
|
};
|
|
908
918
|
|
|
919
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
|
|
920
|
+
var TypeId3 = "~effect/RcRef";
|
|
921
|
+
var stateEmpty = {
|
|
922
|
+
_tag: "Empty"
|
|
923
|
+
};
|
|
924
|
+
var stateClosed = {
|
|
925
|
+
_tag: "Closed"
|
|
926
|
+
};
|
|
927
|
+
var variance = {
|
|
928
|
+
_A: identity,
|
|
929
|
+
_E: identity
|
|
930
|
+
};
|
|
931
|
+
|
|
932
|
+
class RcRefImpl {
|
|
933
|
+
[TypeId3] = variance;
|
|
934
|
+
pipe() {
|
|
935
|
+
return pipeArguments(this, arguments);
|
|
936
|
+
}
|
|
937
|
+
state = stateEmpty;
|
|
938
|
+
acquire;
|
|
939
|
+
context;
|
|
940
|
+
scope;
|
|
941
|
+
idleTimeToLive;
|
|
942
|
+
constructor(acquire, context, scope, idleTimeToLive) {
|
|
943
|
+
this.acquire = acquire;
|
|
944
|
+
this.context = context;
|
|
945
|
+
this.scope = scope;
|
|
946
|
+
this.idleTimeToLive = idleTimeToLive;
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
var make17 = (options) => withFiber2((fiber) => {
|
|
950
|
+
const context = fiber.context;
|
|
951
|
+
const scope = get3(context, Scope);
|
|
952
|
+
const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
|
|
953
|
+
return as(addFinalizerExit(scope, () => {
|
|
954
|
+
const state = ref.state;
|
|
955
|
+
ref.state = stateClosed;
|
|
956
|
+
if (state._tag === "Acquired")
|
|
957
|
+
return close(state.scope, void_2);
|
|
958
|
+
if (state._tag === "Acquiring")
|
|
959
|
+
return interrupt(state.fiber);
|
|
960
|
+
return void_3;
|
|
961
|
+
}), ref);
|
|
962
|
+
});
|
|
963
|
+
var getState = (self, restore) => {
|
|
964
|
+
switch (self.state._tag) {
|
|
965
|
+
case "Closed": {
|
|
966
|
+
return interrupt3;
|
|
967
|
+
}
|
|
968
|
+
case "Acquired": {
|
|
969
|
+
const state = self.state;
|
|
970
|
+
state.refCount++;
|
|
971
|
+
return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
|
|
972
|
+
}
|
|
973
|
+
case "Acquiring": {
|
|
974
|
+
const state = self.state;
|
|
975
|
+
state.awaiters++;
|
|
976
|
+
return awaitAcquiring(self, state, restore);
|
|
977
|
+
}
|
|
978
|
+
case "Empty": {
|
|
979
|
+
const acquiring = {
|
|
980
|
+
_tag: "Acquiring",
|
|
981
|
+
fiber: undefined,
|
|
982
|
+
awaiters: 1,
|
|
983
|
+
acquired: undefined
|
|
984
|
+
};
|
|
985
|
+
self.state = acquiring;
|
|
986
|
+
const scope = makeUnsafe6();
|
|
987
|
+
const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
|
|
988
|
+
if (self.state !== acquiring) {
|
|
989
|
+
return interrupt3;
|
|
990
|
+
}
|
|
991
|
+
const state = {
|
|
992
|
+
_tag: "Acquired",
|
|
993
|
+
value,
|
|
994
|
+
scope,
|
|
995
|
+
fiber: undefined,
|
|
996
|
+
refCount: acquiring.awaiters,
|
|
997
|
+
invalidated: false
|
|
998
|
+
};
|
|
999
|
+
self.state = state;
|
|
1000
|
+
acquiring.acquired = state;
|
|
1001
|
+
return succeed6(state);
|
|
1002
|
+
}), onExit((exit) => {
|
|
1003
|
+
if (isSuccess2(exit))
|
|
1004
|
+
return void_3;
|
|
1005
|
+
if (self.state === acquiring)
|
|
1006
|
+
self.state = stateEmpty;
|
|
1007
|
+
return close(scope, exit);
|
|
1008
|
+
}));
|
|
1009
|
+
acquiring.fiber = runForkWith(getCurrent().context)(acquire);
|
|
1010
|
+
return awaitAcquiring(self, acquiring, restore);
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
};
|
|
1014
|
+
var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
|
|
1015
|
+
const acquired = acquiring.acquired;
|
|
1016
|
+
if (acquired !== undefined) {
|
|
1017
|
+
return isFailure2(exit) ? release(self, acquired) : void_3;
|
|
1018
|
+
}
|
|
1019
|
+
if (--acquiring.awaiters > 0 || self.state !== acquiring)
|
|
1020
|
+
return void_3;
|
|
1021
|
+
self.state = stateEmpty;
|
|
1022
|
+
return interrupt(acquiring.fiber);
|
|
1023
|
+
});
|
|
1024
|
+
var get4 = (self_) => {
|
|
1025
|
+
const self = self_;
|
|
1026
|
+
return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
|
|
1027
|
+
};
|
|
1028
|
+
var release = (self, state) => {
|
|
1029
|
+
state.refCount--;
|
|
1030
|
+
if (state.refCount > 0) {
|
|
1031
|
+
return void_3;
|
|
1032
|
+
}
|
|
1033
|
+
const idleTimeToLive = self.idleTimeToLive;
|
|
1034
|
+
if (idleTimeToLive === undefined || state.invalidated) {
|
|
1035
|
+
if (self.state === state) {
|
|
1036
|
+
self.state = stateEmpty;
|
|
1037
|
+
}
|
|
1038
|
+
return close(state.scope, void_2);
|
|
1039
|
+
} else if (!isFinite(idleTimeToLive)) {
|
|
1040
|
+
return void_3;
|
|
1041
|
+
}
|
|
1042
|
+
state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
|
|
1043
|
+
if (self.state === state && state.refCount === 0) {
|
|
1044
|
+
self.state = stateEmpty;
|
|
1045
|
+
return ignoreCause(close(state.scope, void_2), {
|
|
1046
|
+
log: "Unhandled",
|
|
1047
|
+
message: "Unhandled error in RcRef finalizer"
|
|
1048
|
+
});
|
|
1049
|
+
}
|
|
1050
|
+
return void_3;
|
|
1051
|
+
})).pipe(ensuring2(sync2(() => {
|
|
1052
|
+
state.fiber = undefined;
|
|
1053
|
+
})), runForkWith(self.context), runIn(self.scope));
|
|
1054
|
+
return void_3;
|
|
1055
|
+
};
|
|
1056
|
+
|
|
1057
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
|
|
1058
|
+
var make18 = make17;
|
|
1059
|
+
var get5 = get4;
|
|
1060
|
+
|
|
909
1061
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
|
|
910
|
-
var makeUnsafe =
|
|
911
|
-
var
|
|
1062
|
+
var makeUnsafe = makeUnsafe7;
|
|
1063
|
+
var make19 = make4;
|
|
912
1064
|
var now2 = now;
|
|
913
1065
|
var nowUnsafe2 = nowUnsafe;
|
|
914
1066
|
var toDateUtc2 = toDateUtc;
|
|
@@ -1227,7 +1379,7 @@ var taskkill = (childProcess, onExit = () => {}) => {
|
|
|
1227
1379
|
windowsHide: true
|
|
1228
1380
|
}, onExit);
|
|
1229
1381
|
};
|
|
1230
|
-
var
|
|
1382
|
+
var make20 = /* @__PURE__ */ gen(function* () {
|
|
1231
1383
|
const fs = yield* FileSystem;
|
|
1232
1384
|
const path = yield* Path;
|
|
1233
1385
|
const resolveWorkingDirectory = fnUntraced(function* (options) {
|
|
@@ -1756,7 +1908,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1756
1908
|
});
|
|
1757
1909
|
return make2(spawnCommand);
|
|
1758
1910
|
});
|
|
1759
|
-
var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner,
|
|
1911
|
+
var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make20);
|
|
1760
1912
|
var flattenCommand = (command) => {
|
|
1761
1913
|
const commands = [];
|
|
1762
1914
|
const pipeOptions = [];
|
|
@@ -2240,7 +2392,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
|
|
|
2240
2392
|
resume(fail7(handleBadArgument("writeFile")(err)));
|
|
2241
2393
|
}
|
|
2242
2394
|
});
|
|
2243
|
-
var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) =>
|
|
2395
|
+
var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make11({
|
|
2244
2396
|
access: access2,
|
|
2245
2397
|
chmod: chmod2,
|
|
2246
2398
|
chown: chown2,
|
|
@@ -2300,15 +2452,15 @@ var fileUrlOps = (windows) => ({
|
|
|
2300
2452
|
})
|
|
2301
2453
|
})
|
|
2302
2454
|
});
|
|
2303
|
-
var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2455
|
+
var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
|
|
2304
2456
|
...NodePath.posix,
|
|
2305
2457
|
.../* @__PURE__ */ fileUrlOps(false)
|
|
2306
2458
|
}));
|
|
2307
|
-
var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2459
|
+
var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
|
|
2308
2460
|
...NodePath.win32,
|
|
2309
2461
|
.../* @__PURE__ */ fileUrlOps(true)
|
|
2310
2462
|
}));
|
|
2311
|
-
var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2463
|
+
var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
|
|
2312
2464
|
...NodePath,
|
|
2313
2465
|
.../* @__PURE__ */ fileUrlOps(undefined)
|
|
2314
2466
|
}));
|
|
@@ -2317,10 +2469,10 @@ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
|
|
|
2317
2469
|
var layer2 = layer7;
|
|
2318
2470
|
|
|
2319
2471
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stdio.js
|
|
2320
|
-
var
|
|
2321
|
-
var Stdio = /* @__PURE__ */ Service2(
|
|
2322
|
-
var
|
|
2323
|
-
[
|
|
2472
|
+
var TypeId4 = "~effect/Stdio";
|
|
2473
|
+
var Stdio = /* @__PURE__ */ Service2(TypeId4);
|
|
2474
|
+
var make21 = (options) => ({
|
|
2475
|
+
[TypeId4]: TypeId4,
|
|
2324
2476
|
stdinIsTerminal: succeed6(false),
|
|
2325
2477
|
stdoutIsTerminal: succeed6(false),
|
|
2326
2478
|
stderrIsTerminal: succeed6(false),
|
|
@@ -2328,7 +2480,7 @@ var make20 = (options) => ({
|
|
|
2328
2480
|
});
|
|
2329
2481
|
|
|
2330
2482
|
// node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
|
|
2331
|
-
var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */
|
|
2483
|
+
var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make21({
|
|
2332
2484
|
args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
|
|
2333
2485
|
stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
|
|
2334
2486
|
stdoutIsTerminal: /* @__PURE__ */ sync2(() => process.stdout.isTTY === true),
|
|
@@ -2528,7 +2680,7 @@ var makeUuid = (bytes, randomBytes, format) => {
|
|
|
2528
2680
|
const uuid = bytes(randomBytes(16));
|
|
2529
2681
|
return format === "bytes" ? uuid : stringify(uuid);
|
|
2530
2682
|
};
|
|
2531
|
-
var
|
|
2683
|
+
var make22 = (randomBytes) => {
|
|
2532
2684
|
const randomBytesChecked = (size) => {
|
|
2533
2685
|
checkSize(size);
|
|
2534
2686
|
return randomBytes(size);
|
|
@@ -2562,13 +2714,13 @@ var fillRandom = (crypto2, size) => {
|
|
|
2562
2714
|
}
|
|
2563
2715
|
return bytes;
|
|
2564
2716
|
};
|
|
2565
|
-
var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(
|
|
2717
|
+
var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make22((size) => fillRandom(crypto2, size)))));
|
|
2566
2718
|
|
|
2567
2719
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
|
|
2568
|
-
var
|
|
2720
|
+
var TypeId5 = "~effect/http/Cookies";
|
|
2569
2721
|
var CookieTypeId = "~effect/http/Cookies/Cookie";
|
|
2570
2722
|
var Proto2 = {
|
|
2571
|
-
[
|
|
2723
|
+
[TypeId5]: TypeId5,
|
|
2572
2724
|
...BaseProto,
|
|
2573
2725
|
toJSON() {
|
|
2574
2726
|
return {
|
|
@@ -2747,14 +2899,14 @@ var tryDecodeURIComponent = (str) => {
|
|
|
2747
2899
|
};
|
|
2748
2900
|
|
|
2749
2901
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Headers.js
|
|
2750
|
-
var
|
|
2902
|
+
var TypeId6 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
|
|
2751
2903
|
var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
|
|
2752
|
-
[
|
|
2753
|
-
value:
|
|
2904
|
+
[TypeId6]: {
|
|
2905
|
+
value: TypeId6
|
|
2754
2906
|
},
|
|
2755
2907
|
[symbolRedactable]: {
|
|
2756
2908
|
value(context) {
|
|
2757
|
-
return redact2(this,
|
|
2909
|
+
return redact2(this, get3(context, CurrentRedactedNames));
|
|
2758
2910
|
}
|
|
2759
2911
|
},
|
|
2760
2912
|
toJSON: {
|
|
@@ -2779,7 +2931,7 @@ var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
|
|
|
2779
2931
|
value: BaseProto[NodeInspectSymbol]
|
|
2780
2932
|
}
|
|
2781
2933
|
});
|
|
2782
|
-
var
|
|
2934
|
+
var make23 = (input) => Object.assign(Object.create(Proto3), input);
|
|
2783
2935
|
var Equivalence2 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
|
|
2784
2936
|
var empty = /* @__PURE__ */ Object.create(Proto3);
|
|
2785
2937
|
var fromInput = (input) => {
|
|
@@ -2804,21 +2956,21 @@ var fromInput = (input) => {
|
|
|
2804
2956
|
};
|
|
2805
2957
|
var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto3);
|
|
2806
2958
|
var set = /* @__PURE__ */ dual(3, (self, key, value) => {
|
|
2807
|
-
const out =
|
|
2959
|
+
const out = make23(self);
|
|
2808
2960
|
out[key.toLowerCase()] = value;
|
|
2809
2961
|
return out;
|
|
2810
2962
|
});
|
|
2811
|
-
var setAll = /* @__PURE__ */ dual(2, (self, headers) =>
|
|
2963
|
+
var setAll = /* @__PURE__ */ dual(2, (self, headers) => make23({
|
|
2812
2964
|
...self,
|
|
2813
2965
|
...fromInput(headers)
|
|
2814
2966
|
}));
|
|
2815
2967
|
var merge = /* @__PURE__ */ dual(2, (self, headers) => {
|
|
2816
|
-
const out =
|
|
2968
|
+
const out = make23(self);
|
|
2817
2969
|
Object.assign(out, headers);
|
|
2818
2970
|
return out;
|
|
2819
2971
|
});
|
|
2820
2972
|
var remove2 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
2821
|
-
const out =
|
|
2973
|
+
const out = make23(self);
|
|
2822
2974
|
delete out[key.toLowerCase()];
|
|
2823
2975
|
return out;
|
|
2824
2976
|
});
|
|
@@ -2875,18 +3027,18 @@ var bodyDecoder = /* @__PURE__ */ new TextDecoder("utf-8", {
|
|
|
2875
3027
|
var fromBody = (bytes) => new URLSearchParams(bodyDecoder.decode(bytes).replace(/^\?/, "%3F"));
|
|
2876
3028
|
|
|
2877
3029
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/UrlParams.js
|
|
2878
|
-
var
|
|
2879
|
-
var isUrlParams = (u) => hasProperty(u,
|
|
3030
|
+
var TypeId7 = "~effect/http/UrlParams";
|
|
3031
|
+
var isUrlParams = (u) => hasProperty(u, TypeId7);
|
|
2880
3032
|
var Proto4 = {
|
|
2881
3033
|
...PipeInspectableProto,
|
|
2882
|
-
[
|
|
3034
|
+
[TypeId7]: TypeId7,
|
|
2883
3035
|
[Symbol.iterator]() {
|
|
2884
3036
|
return this.params[Symbol.iterator]();
|
|
2885
3037
|
},
|
|
2886
3038
|
[symbolRedactable](context) {
|
|
2887
3039
|
return {
|
|
2888
3040
|
_id: "UrlParams",
|
|
2889
|
-
params: Object.fromEntries(redact3(this,
|
|
3041
|
+
params: Object.fromEntries(redact3(this, get3(context, CurrentRedactedNames2)))
|
|
2890
3042
|
};
|
|
2891
3043
|
},
|
|
2892
3044
|
toJSON() {
|
|
@@ -2899,7 +3051,7 @@ var Proto4 = {
|
|
|
2899
3051
|
return array(this.params.flat());
|
|
2900
3052
|
}
|
|
2901
3053
|
};
|
|
2902
|
-
var
|
|
3054
|
+
var make24 = (params) => {
|
|
2903
3055
|
const self = Object.create(Proto4);
|
|
2904
3056
|
self.params = params;
|
|
2905
3057
|
return self;
|
|
@@ -2918,7 +3070,7 @@ var fromInput2 = (input) => {
|
|
|
2918
3070
|
out.push(parsed[i]);
|
|
2919
3071
|
}
|
|
2920
3072
|
}
|
|
2921
|
-
return
|
|
3073
|
+
return make24(out);
|
|
2922
3074
|
};
|
|
2923
3075
|
var fromInputNested = (input) => {
|
|
2924
3076
|
const entries = typeof input[Symbol.iterator] === "function" ? fromIterable(input) : Object.entries(input);
|
|
@@ -2942,9 +3094,9 @@ var fromInputNested = (input) => {
|
|
|
2942
3094
|
return out;
|
|
2943
3095
|
};
|
|
2944
3096
|
var coerce = (value) => isRedacted(value) ? value : String(value);
|
|
2945
|
-
var Equivalence3 = /* @__PURE__ */
|
|
3097
|
+
var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
|
|
2946
3098
|
var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
|
|
2947
|
-
var empty4 = /* @__PURE__ */
|
|
3099
|
+
var empty4 = /* @__PURE__ */ make24([]);
|
|
2948
3100
|
var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
2949
3101
|
const params = fromInput2(input).params.slice();
|
|
2950
3102
|
const keys = new Set;
|
|
@@ -2956,7 +3108,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
|
2956
3108
|
continue;
|
|
2957
3109
|
params.push(self.params[i]);
|
|
2958
3110
|
}
|
|
2959
|
-
return
|
|
3111
|
+
return make24(params);
|
|
2960
3112
|
});
|
|
2961
3113
|
var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
|
|
2962
3114
|
var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
@@ -3012,13 +3164,13 @@ var decodeQueryKey = (key) => {
|
|
|
3012
3164
|
return key;
|
|
3013
3165
|
}
|
|
3014
3166
|
};
|
|
3015
|
-
var currentRedactedNames = () =>
|
|
3167
|
+
var currentRedactedNames = () => get3(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
|
|
3016
3168
|
var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
|
|
3017
3169
|
defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
|
|
3018
3170
|
});
|
|
3019
3171
|
|
|
3020
3172
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Terminal.js
|
|
3021
|
-
var
|
|
3173
|
+
var TypeId8 = "~effect/Terminal";
|
|
3022
3174
|
var QuitErrorTypeId = "~effect/Terminal/QuitError";
|
|
3023
3175
|
|
|
3024
3176
|
class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
|
|
@@ -3027,14 +3179,14 @@ class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
|
|
|
3027
3179
|
[QuitErrorTypeId] = QuitErrorTypeId;
|
|
3028
3180
|
}
|
|
3029
3181
|
var Terminal = /* @__PURE__ */ Service2("effect/Terminal");
|
|
3030
|
-
var
|
|
3182
|
+
var make25 = (impl) => Terminal.of({
|
|
3031
3183
|
...impl,
|
|
3032
|
-
[
|
|
3184
|
+
[TypeId8]: TypeId8
|
|
3033
3185
|
});
|
|
3034
3186
|
|
|
3035
3187
|
// node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
|
|
3036
3188
|
import * as readline from "readline";
|
|
3037
|
-
var
|
|
3189
|
+
var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
|
|
3038
3190
|
const stdin = process.stdin;
|
|
3039
3191
|
const stdout = process.stdout;
|
|
3040
3192
|
const lines = yield* make9();
|
|
@@ -3048,7 +3200,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3048
3200
|
};
|
|
3049
3201
|
stdin.once("end", onStdinEnd);
|
|
3050
3202
|
yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
|
|
3051
|
-
const rlRef = yield*
|
|
3203
|
+
const rlRef = yield* make18({
|
|
3052
3204
|
acquire: acquireRelease(sync2(() => {
|
|
3053
3205
|
const rl = readline.createInterface({
|
|
3054
3206
|
input: stdin,
|
|
@@ -3087,7 +3239,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3087
3239
|
if (stdin.isTTY)
|
|
3088
3240
|
stdin.setRawMode(enabled);
|
|
3089
3241
|
});
|
|
3090
|
-
const rawModeRef = yield*
|
|
3242
|
+
const rawModeRef = yield* make18({
|
|
3091
3243
|
acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
|
|
3092
3244
|
idleTimeToLive: "10 millis"
|
|
3093
3245
|
});
|
|
@@ -3138,14 +3290,14 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3138
3290
|
if (inputEnded) {
|
|
3139
3291
|
handleEnd();
|
|
3140
3292
|
} else {
|
|
3141
|
-
yield*
|
|
3142
|
-
yield*
|
|
3293
|
+
yield* get5(rlRef);
|
|
3294
|
+
yield* get5(rawModeRef);
|
|
3143
3295
|
stdin.once("end", handleEnd);
|
|
3144
3296
|
}
|
|
3145
3297
|
return queue;
|
|
3146
3298
|
});
|
|
3147
3299
|
const readLine = suspend3(() => poll(lines).pipe(flatMap3(match({
|
|
3148
|
-
onNone: () => scoped(andThen2(
|
|
3300
|
+
onNone: () => scoped(andThen2(get5(rlRef), take(lines))),
|
|
3149
3301
|
onSome: succeed6
|
|
3150
3302
|
})), mapError2(() => new QuitError({}))));
|
|
3151
3303
|
const display = (prompt) => uninterruptible(callback3((resume) => {
|
|
@@ -3156,7 +3308,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3156
3308
|
cause: err
|
|
3157
3309
|
}))));
|
|
3158
3310
|
}));
|
|
3159
|
-
return
|
|
3311
|
+
return make25({
|
|
3160
3312
|
columns,
|
|
3161
3313
|
rows,
|
|
3162
3314
|
size,
|
|
@@ -3165,7 +3317,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3165
3317
|
display
|
|
3166
3318
|
});
|
|
3167
3319
|
});
|
|
3168
|
-
var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */
|
|
3320
|
+
var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make26(defaultShouldQuit));
|
|
3169
3321
|
function defaultShouldQuit(input) {
|
|
3170
3322
|
const key = input.key;
|
|
3171
3323
|
return key.name === "escape" || key.ctrl && (key.name === "c" || key.name === "d");
|
|
@@ -3192,7 +3344,7 @@ function toDate(input) {
|
|
|
3192
3344
|
return toDateUtc2(makeUnsafe(input));
|
|
3193
3345
|
}
|
|
3194
3346
|
function parseDate(input) {
|
|
3195
|
-
return getOrUndefined(map4(
|
|
3347
|
+
return getOrUndefined(map4(make19(input), toDateUtc2));
|
|
3196
3348
|
}
|
|
3197
3349
|
function toIso(input) {
|
|
3198
3350
|
return formatIso(makeUnsafe(input));
|
|
@@ -6186,6 +6338,7 @@ var RunEvidence = Struct({
|
|
|
6186
6338
|
durationMs: Int.check(isGreaterThanOrEqualTo(0)),
|
|
6187
6339
|
outputTail: String4,
|
|
6188
6340
|
fileIds: optionalKey(ArraySchema(String4)),
|
|
6341
|
+
failedTests: optionalKey(ArraySchema(String4)),
|
|
6189
6342
|
skippedSinceBaseline: optionalKey(ArraySchema(String4)),
|
|
6190
6343
|
newNotRun: optionalKey(ArraySchema(String4)),
|
|
6191
6344
|
recordedAt: Timestamp
|
|
@@ -6752,13 +6905,16 @@ var isTestReportName = (name) => /junit.*\.xml$/iu.test(name);
|
|
|
6752
6905
|
var maxSkippedTests = 1e4;
|
|
6753
6906
|
var maxRanDigests = 1e5;
|
|
6754
6907
|
var TestId = String4.check(isMinLength(1), isMaxLength(1000));
|
|
6908
|
+
var maxFailedTests = 50;
|
|
6909
|
+
var maxFailedTestLength = 300;
|
|
6755
6910
|
var CheckTests = Struct({
|
|
6756
6911
|
reports: Int.check(isGreaterThanOrEqualTo(0)),
|
|
6757
6912
|
passed: Int.check(isGreaterThanOrEqualTo(0)),
|
|
6758
6913
|
failed: Int.check(isGreaterThanOrEqualTo(0)),
|
|
6759
6914
|
skipped: Int.check(isGreaterThanOrEqualTo(0)),
|
|
6760
6915
|
skippedTests: ArraySchema(TestId).check(isMaxLength(maxSkippedTests)),
|
|
6761
|
-
ranDigests: ArraySchema(String4.check(isMaxLength(16))).check(isMaxLength(maxRanDigests))
|
|
6916
|
+
ranDigests: ArraySchema(String4.check(isMaxLength(16))).check(isMaxLength(maxRanDigests)),
|
|
6917
|
+
failedTests: optionalKey(ArraySchema(String4.check(isMinLength(1), isMaxLength(maxFailedTestLength))).check(isMaxLength(maxFailedTests)))
|
|
6762
6918
|
});
|
|
6763
6919
|
var entities = new Map([
|
|
6764
6920
|
["amp", "&"],
|
|
@@ -6795,7 +6951,98 @@ var fnv1a = (text, seed) => {
|
|
|
6795
6951
|
return hash.toString(16).padStart(8, "0");
|
|
6796
6952
|
};
|
|
6797
6953
|
var testDigest = (id) => `${fnv1a(id, 2166136261)}${fnv1a(id, 84696351)}`;
|
|
6798
|
-
var
|
|
6954
|
+
var scriptPrefix = /^(?:[^|]{1,300} \| |\S+ [\w:.-]+: )/u;
|
|
6955
|
+
var failedTestLines = [
|
|
6956
|
+
/^\(fail\) (.+?)(?: \[[\d.]+ ?m?s\])?$/su,
|
|
6957
|
+
/^\u25CF (?=.+? \u203A .)(.+)$/su,
|
|
6958
|
+
/^FAILED (\S+?::(?:[^[]+?(?:\[.*?\])?|.+?))(?: - .*)?$/su,
|
|
6959
|
+
/^--- FAIL: (\S+)/u,
|
|
6960
|
+
/^test (.+) \.\.\. FAILED$/su,
|
|
6961
|
+
/^not ok \d+ (?:- )?(?!.*# (?:TODO|SKIP)\b)(.+)$/isu
|
|
6962
|
+
];
|
|
6963
|
+
var failedFileStart = String.raw`FAIL +(?:\|[^|]+\| *)?(?! )(?!\S*:\/\/)`;
|
|
6964
|
+
var afterPath = String.raw` > | \[ `;
|
|
6965
|
+
var failedFilePaths = [
|
|
6966
|
+
String.raw`\S*\.[A-Za-z]\w*(?=[\s:]|$)`,
|
|
6967
|
+
String.raw`(?=\S*[A-Za-z])(?=\S*\/)\S+(?=${afterPath}|$)`,
|
|
6968
|
+
String.raw`(?:(?!${afterPath}).)*\.[A-Za-z]\w*(?=${afterPath})`,
|
|
6969
|
+
String.raw`(?=\S*\/)(?:(?!${afterPath}).)*\.[A-Za-z]\w*$`,
|
|
6970
|
+
String.raw`(?=.*(?:\.(?:test|spec)\.|\b__tests__\/))(?:(?!${afterPath}).)*\.[cm]?[jt]sx?$`
|
|
6971
|
+
];
|
|
6972
|
+
var failedFileLine = new RegExp(`^${failedFileStart}((?:${failedFilePaths.join("|")}).*)$`, "su");
|
|
6973
|
+
var jestFileStats = /^((?:(?! > ).)*) \((?:[\d.]+ m?s(?:, \d+ MB heap size)?|\d+ MB heap size)\)$/su;
|
|
6974
|
+
var isPathOf = (file, path) => `/${file}`.endsWith(`/${path.replace(/^(?:\.\.\/)+/u, "")}`);
|
|
6975
|
+
var withoutRepeatedPath = (name) => (name.endsWith(" ]") ? [...name.matchAll(/ \[ /gu)] : []).map(({ index }) => name.slice(0, index)).find((path) => isPathOf(name.slice(path.length + 3, -2), path)) ?? name;
|
|
6976
|
+
var paddedLabels = /^FAIL {2}(?:\|[^|]+\| )?(?: \S+(?: \S+)* {2})+/u;
|
|
6977
|
+
var failedFileTest = (text) => {
|
|
6978
|
+
const name = failedFileLine.exec(text.replace(paddedLabels, "FAIL ").replace(jestFileStats, "$1"))?.[1];
|
|
6979
|
+
return name === undefined ? undefined : withoutRepeatedPath(name);
|
|
6980
|
+
};
|
|
6981
|
+
var maxLineLength = 1000;
|
|
6982
|
+
var ansiColours = /\u001B\[[\d;]*m/gu;
|
|
6983
|
+
var failedTestOfLine = (line) => {
|
|
6984
|
+
const printed = line.slice(0, maxLineLength).replaceAll(ansiColours, "");
|
|
6985
|
+
const unprefixed = printed.replace(scriptPrefix, "");
|
|
6986
|
+
return [printed, unprefixed, unprefixed.replace(scriptPrefix, "")].map((text) => text.trim()).flatMap((text) => [failedFileTest(text), ...failedTestLines.map((pattern) => pattern.exec(text)?.[1]?.trim())]).find((name) => name !== undefined && name !== "");
|
|
6987
|
+
};
|
|
6988
|
+
var namedTest = (name) => {
|
|
6989
|
+
const at = name.indexOf(" > ");
|
|
6990
|
+
return at === -1 ? { name, file: name, path: "" } : { name, file: name.slice(0, at), path: name.slice(at + 3) };
|
|
6991
|
+
};
|
|
6992
|
+
var reportedTest = (name) => {
|
|
6993
|
+
const test = namedTest(name);
|
|
6994
|
+
return test.path !== "" && isPathOf(test.file, test.path) ? namedTest(test.file) : test;
|
|
6995
|
+
};
|
|
6996
|
+
var byPath = (tests) => {
|
|
6997
|
+
const grouped = new Map;
|
|
6998
|
+
for (const test of tests) {
|
|
6999
|
+
const found = grouped.get(test.path);
|
|
7000
|
+
if (found === undefined)
|
|
7001
|
+
grouped.set(test.path, [test]);
|
|
7002
|
+
else
|
|
7003
|
+
found.push(test);
|
|
7004
|
+
}
|
|
7005
|
+
return grouped;
|
|
7006
|
+
};
|
|
7007
|
+
var holds = (tests, test) => (tests.get(test.path) ?? []).some(({ file }) => isPathOf(file, test.file) || isPathOf(test.file, file));
|
|
7008
|
+
var attempt = String.raw`(?:\d+ times in )?(?:initial run|\d+[a-z]{2} (?:retry(?: of \d+[a-z]{2} repeat)?|repeat))`;
|
|
7009
|
+
var vitestAttempts = new RegExp(String.raw` \(${attempt}(?:, ${attempt})*\)$`, "u");
|
|
7010
|
+
var vitestTimes = / \(\d+ times\)$/u;
|
|
7011
|
+
var printedTest = (reports) => (name) => {
|
|
7012
|
+
const whole = namedTest(name);
|
|
7013
|
+
const attempted = /[./]/u.test(whole.file) ? namedTest(name.replace(vitestAttempts, "")) : whole;
|
|
7014
|
+
return [whole, attempted, namedTest(name.replace(vitestTimes, ""))].find((test) => holds(reports, test)) ?? attempted;
|
|
7015
|
+
};
|
|
7016
|
+
var namesWithoutFile = ({ path }) => {
|
|
7017
|
+
const parts = path.split(" > ");
|
|
7018
|
+
return [path, [...parts.slice(0, -1).reverse(), ...parts.slice(-1)].join(" > ")];
|
|
7019
|
+
};
|
|
7020
|
+
var spaced = (name) => name.replaceAll(/ [>\u203A] /gu, " ");
|
|
7021
|
+
var reportedForms = ({ name, path }) => [name, path].map((text) => [text, namedTest(text)]).map(([text, test]) => test.file === test.path ? test.file : text).flatMap((text) => [spaced(text), text.replace(" > ", ".")]);
|
|
7022
|
+
var printedForm = (name) => {
|
|
7023
|
+
if (name.includes(" \u203A "))
|
|
7024
|
+
return spaced(name);
|
|
7025
|
+
const [, file, names, rest] = /^(\S+?)\.py::([^[]*)(.*)$/su.exec(name) ?? [];
|
|
7026
|
+
return file === undefined || names === undefined ? undefined : `${file.replaceAll("/", ".")}.${names.replaceAll("::", ".")}${rest ?? ""}`;
|
|
7027
|
+
};
|
|
7028
|
+
var failedTestsOf = (reported, printed) => {
|
|
7029
|
+
const reports = [...new Set(reported)].map(reportedTest);
|
|
7030
|
+
const reportsByPath = byPath(reports);
|
|
7031
|
+
const prints = [...new Set(printed)].map(printedTest(reportsByPath));
|
|
7032
|
+
const printsByPath = byPath(prints);
|
|
7033
|
+
const unprinted = reports.filter((test) => !holds(printsByPath, test));
|
|
7034
|
+
const namedWithoutFile = new Set(unprinted.flatMap(namesWithoutFile));
|
|
7035
|
+
const namedInForm = new Set(unprinted.flatMap(reportedForms));
|
|
7036
|
+
const unreported = prints.filter((test) => !holds(reportsByPath, test) && !namedWithoutFile.has(test.name) && !namedInForm.has(printedForm(test.name)));
|
|
7037
|
+
const named = new Set;
|
|
7038
|
+
for (const { name } of [...reports, ...unreported]) {
|
|
7039
|
+
if (named.size === maxFailedTests)
|
|
7040
|
+
break;
|
|
7041
|
+
named.add(redactCredentials(name).slice(0, maxFailedTestLength));
|
|
7042
|
+
}
|
|
7043
|
+
return [...named];
|
|
7044
|
+
};
|
|
7045
|
+
var checkTests = (reports, printed = []) => {
|
|
6799
7046
|
const rank = { passed: 0, skipped: 1, failed: 2 };
|
|
6800
7047
|
const tests = new Map;
|
|
6801
7048
|
for (const found of reports.flatMap(junitTestCases)) {
|
|
@@ -6805,13 +7052,15 @@ var checkTests = (reports) => {
|
|
|
6805
7052
|
}
|
|
6806
7053
|
const of = (status) => [...tests].flatMap(([id, is]) => is === status ? [id] : []);
|
|
6807
7054
|
const skipped = of("skipped").sort();
|
|
7055
|
+
const failedTests = failedTestsOf(of("failed"), printed);
|
|
6808
7056
|
return {
|
|
6809
7057
|
reports: reports.length,
|
|
6810
7058
|
passed: of("passed").length,
|
|
6811
7059
|
failed: of("failed").length,
|
|
6812
7060
|
skipped: skipped.length,
|
|
6813
7061
|
skippedTests: skipped.slice(0, maxSkippedTests),
|
|
6814
|
-
ranDigests: [...of("passed"), ...of("failed")].map(testDigest).sort().slice(0, maxRanDigests)
|
|
7062
|
+
ranDigests: [...of("passed"), ...of("failed")].map(testDigest).sort().slice(0, maxRanDigests),
|
|
7063
|
+
...failedTests.length === 0 ? undefined : { failedTests }
|
|
6815
7064
|
};
|
|
6816
7065
|
};
|
|
6817
7066
|
|
|
@@ -7116,7 +7365,8 @@ var RunnerProblemCodes = [
|
|
|
7116
7365
|
"update_required",
|
|
7117
7366
|
"processes_unreaped",
|
|
7118
7367
|
"processes_uncontained",
|
|
7119
|
-
"full_access_refused"
|
|
7368
|
+
"full_access_refused",
|
|
7369
|
+
"cli_session_expired"
|
|
7120
7370
|
];
|
|
7121
7371
|
var RunnerProblemText = String4.check(isMinLength(1), isMaxLength(500));
|
|
7122
7372
|
var RunnerProblemReport = Struct({
|
|
@@ -9663,11 +9913,11 @@ var TranscriptSearchResult = Struct({
|
|
|
9663
9913
|
total: Int
|
|
9664
9914
|
});
|
|
9665
9915
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
|
|
9666
|
-
var
|
|
9916
|
+
var TypeId9 = "~effect/http/HttpBody";
|
|
9667
9917
|
class Proto5 {
|
|
9668
|
-
[
|
|
9918
|
+
[TypeId9];
|
|
9669
9919
|
constructor() {
|
|
9670
|
-
this[
|
|
9920
|
+
this[TypeId9] = TypeId9;
|
|
9671
9921
|
}
|
|
9672
9922
|
[NodeInspectSymbol]() {
|
|
9673
9923
|
return this.toJSON();
|
|
@@ -9758,7 +10008,7 @@ var jsonUnsafe = (body, contentType) => text(JSON.stringify(body), contentType ?
|
|
|
9758
10008
|
var urlParams = (urlParams, contentType) => text(toString(fromInput2(urlParams)), contentType ?? "application/x-www-form-urlencoded");
|
|
9759
10009
|
|
|
9760
10010
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientError.js
|
|
9761
|
-
var
|
|
10011
|
+
var TypeId10 = "~effect/http/HttpClientError";
|
|
9762
10012
|
class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
|
|
9763
10013
|
constructor(props) {
|
|
9764
10014
|
if ("cause" in props.reason) {
|
|
@@ -9770,7 +10020,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
|
|
|
9770
10020
|
super(props);
|
|
9771
10021
|
}
|
|
9772
10022
|
}
|
|
9773
|
-
[
|
|
10023
|
+
[TypeId10] = TypeId10;
|
|
9774
10024
|
get request() {
|
|
9775
10025
|
return this.reason.request;
|
|
9776
10026
|
}
|
|
@@ -9874,7 +10124,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError("EmptyBodyError")) {
|
|
|
9874
10124
|
}
|
|
9875
10125
|
}
|
|
9876
10126
|
|
|
9877
|
-
class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(
|
|
10127
|
+
class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId10)({
|
|
9878
10128
|
_tag: /* @__PURE__ */ tag("HttpError"),
|
|
9879
10129
|
kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
|
|
9880
10130
|
cause: /* @__PURE__ */ optional(/* @__PURE__ */ Defect())
|
|
@@ -9907,7 +10157,7 @@ var updateContentLength = (headers, body) => {
|
|
|
9907
10157
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Url.js
|
|
9908
10158
|
class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
|
|
9909
10159
|
}
|
|
9910
|
-
var
|
|
10160
|
+
var make27 = (url, params, hash) => try_({
|
|
9911
10161
|
try: () => {
|
|
9912
10162
|
const urlInstance = new URL(url, baseUrl());
|
|
9913
10163
|
for (let i = 0;i < params.params.length; i++) {
|
|
@@ -9938,10 +10188,10 @@ var baseUrl = () => {
|
|
|
9938
10188
|
};
|
|
9939
10189
|
|
|
9940
10190
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientRequest.js
|
|
9941
|
-
var
|
|
9942
|
-
var isHttpClientRequest = (u) => hasProperty(u,
|
|
10191
|
+
var TypeId11 = "~effect/http/HttpClientRequest";
|
|
10192
|
+
var isHttpClientRequest = (u) => hasProperty(u, TypeId11);
|
|
9943
10193
|
var Proto6 = {
|
|
9944
|
-
[
|
|
10194
|
+
[TypeId11]: TypeId11,
|
|
9945
10195
|
...BaseProto,
|
|
9946
10196
|
toJSON() {
|
|
9947
10197
|
return {
|
|
@@ -10030,7 +10280,7 @@ var bodyUint8Array = /* @__PURE__ */ dual((args) => isHttpClientRequest(args[0])
|
|
|
10030
10280
|
var bodyJsonUnsafe = /* @__PURE__ */ dual(2, (self, body) => setBody(self, jsonUnsafe(body)));
|
|
10031
10281
|
var bodyUrlParams = /* @__PURE__ */ dual(2, (self, input) => setBody(self, urlParams(fromInput2(input))));
|
|
10032
10282
|
function toUrl(self) {
|
|
10033
|
-
const r =
|
|
10283
|
+
const r = make27(self.url, self.urlParams, getOrUndefined(self.hash));
|
|
10034
10284
|
if (isSuccess(r)) {
|
|
10035
10285
|
return some(r.success);
|
|
10036
10286
|
}
|
|
@@ -10038,7 +10288,7 @@ function toUrl(self) {
|
|
|
10038
10288
|
}
|
|
10039
10289
|
|
|
10040
10290
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpIncomingMessage.js
|
|
10041
|
-
var
|
|
10291
|
+
var TypeId12 = "~effect/http/HttpIncomingMessage";
|
|
10042
10292
|
var schemaBodyJson = (schema, options) => {
|
|
10043
10293
|
const decode = decodeEffect(toCodecJson(schema));
|
|
10044
10294
|
const decodeJson = options?.reviver === undefined ? undefined : decodeEffect(fromJsonString(toCodecJson(schema), options));
|
|
@@ -10057,7 +10307,7 @@ var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
|
|
|
10057
10307
|
var getWebSource = (self) => self[WebSourceSymbol]?.();
|
|
10058
10308
|
|
|
10059
10309
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientResponse.js
|
|
10060
|
-
var
|
|
10310
|
+
var TypeId13 = "~effect/http/HttpClientResponse";
|
|
10061
10311
|
var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
|
|
10062
10312
|
var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail7(new HttpClientError({
|
|
10063
10313
|
reason: new StatusCodeError({
|
|
@@ -10068,16 +10318,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
|
|
|
10068
10318
|
}));
|
|
10069
10319
|
|
|
10070
10320
|
class WebHttpClientResponse extends Class {
|
|
10071
|
-
[TypeId11];
|
|
10072
10321
|
[TypeId12];
|
|
10322
|
+
[TypeId13];
|
|
10073
10323
|
request;
|
|
10074
10324
|
source;
|
|
10075
10325
|
constructor(request, source) {
|
|
10076
10326
|
super();
|
|
10077
10327
|
this.request = request;
|
|
10078
10328
|
this.source = source;
|
|
10079
|
-
this[TypeId11] = TypeId11;
|
|
10080
10329
|
this[TypeId12] = TypeId12;
|
|
10330
|
+
this[TypeId13] = TypeId13;
|
|
10081
10331
|
}
|
|
10082
10332
|
toJSON() {
|
|
10083
10333
|
return inspect(this, {
|
|
@@ -10249,7 +10499,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
|
|
|
10249
10499
|
};
|
|
10250
10500
|
|
|
10251
10501
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClient.js
|
|
10252
|
-
var
|
|
10502
|
+
var TypeId14 = "~effect/http/HttpClient";
|
|
10253
10503
|
var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
|
|
10254
10504
|
var accessor = (method) => (...args) => flatMap3(HttpClient, (client) => client[method](...args));
|
|
10255
10505
|
var execute = /* @__PURE__ */ accessor("execute");
|
|
@@ -10266,7 +10516,7 @@ var makeWith2 = (postprocess, preprocess) => {
|
|
|
10266
10516
|
return self;
|
|
10267
10517
|
};
|
|
10268
10518
|
var Proto7 = {
|
|
10269
|
-
[
|
|
10519
|
+
[TypeId14]: TypeId14,
|
|
10270
10520
|
pipe() {
|
|
10271
10521
|
return pipeArguments(this, arguments);
|
|
10272
10522
|
},
|
|
@@ -10280,10 +10530,10 @@ var Proto7 = {
|
|
|
10280
10530
|
return this.execute(make5(fullMethod)(url, options));
|
|
10281
10531
|
}]))
|
|
10282
10532
|
};
|
|
10283
|
-
var
|
|
10533
|
+
var make28 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
|
|
10284
10534
|
const scopedController = scopedRequests.get(request);
|
|
10285
10535
|
const controller = scopedController ?? new AbortController;
|
|
10286
|
-
const urlResult =
|
|
10536
|
+
const urlResult = make27(request.url, request.urlParams, getOrUndefined(request.hash));
|
|
10287
10537
|
if (isFailure(urlResult)) {
|
|
10288
10538
|
return fail7(new HttpClientError({
|
|
10289
10539
|
reason: new InvalidUrlError({
|
|
@@ -10417,8 +10667,8 @@ class InterruptibleResponse {
|
|
|
10417
10667
|
this.original = original;
|
|
10418
10668
|
this.controller = controller;
|
|
10419
10669
|
}
|
|
10670
|
+
[TypeId13] = TypeId13;
|
|
10420
10671
|
[TypeId12] = TypeId12;
|
|
10421
|
-
[TypeId11] = TypeId11;
|
|
10422
10672
|
applyInterrupt(effect) {
|
|
10423
10673
|
return suspend3(() => {
|
|
10424
10674
|
responseRegistry.unregister(this.original);
|
|
@@ -10516,7 +10766,7 @@ var detectStreamBodySupport = () => {
|
|
|
10516
10766
|
return false;
|
|
10517
10767
|
}
|
|
10518
10768
|
};
|
|
10519
|
-
var fetch2 = /* @__PURE__ */
|
|
10769
|
+
var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
|
|
10520
10770
|
if (request.headers.upgrade !== undefined) {
|
|
10521
10771
|
return fail7(new HttpClientError({
|
|
10522
10772
|
reason: new TransportError({
|
|
@@ -10607,10 +10857,10 @@ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
|
|
|
10607
10857
|
});
|
|
10608
10858
|
var layer4 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch2));
|
|
10609
10859
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/socket/Socket.js
|
|
10610
|
-
var
|
|
10860
|
+
var TypeId15 = "~effect/socket/Socket";
|
|
10611
10861
|
var Socket = /* @__PURE__ */ Service2("effect/socket/Socket");
|
|
10612
|
-
var
|
|
10613
|
-
[
|
|
10862
|
+
var make29 = (options) => Socket.of({
|
|
10863
|
+
[TypeId15]: TypeId15,
|
|
10614
10864
|
reader: options.reader,
|
|
10615
10865
|
writer: options.writer
|
|
10616
10866
|
});
|
|
@@ -10933,7 +11183,7 @@ var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
|
|
|
10933
11183
|
write,
|
|
10934
11184
|
writeAll
|
|
10935
11185
|
});
|
|
10936
|
-
return succeed6(
|
|
11186
|
+
return succeed6(make29({
|
|
10937
11187
|
reader,
|
|
10938
11188
|
writer
|
|
10939
11189
|
}));
|
|
@@ -13888,7 +14138,7 @@ function getStreamSchemas(schema) {
|
|
|
13888
14138
|
}
|
|
13889
14139
|
var schema = /* @__PURE__ */ declare(isStream);
|
|
13890
14140
|
function Stream(success, error) {
|
|
13891
|
-
return
|
|
14141
|
+
return make16(schema.ast, {
|
|
13892
14142
|
[StreamSchemaTypeId]: StreamSchemaTypeId,
|
|
13893
14143
|
success,
|
|
13894
14144
|
error
|
|
@@ -13896,9 +14146,9 @@ function Stream(success, error) {
|
|
|
13896
14146
|
}
|
|
13897
14147
|
|
|
13898
14148
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
|
|
13899
|
-
var
|
|
14149
|
+
var TypeId16 = "~effect/rpc/Rpc";
|
|
13900
14150
|
var Proto8 = {
|
|
13901
|
-
[
|
|
14151
|
+
[TypeId16]: TypeId16,
|
|
13902
14152
|
pipe() {
|
|
13903
14153
|
return pipeArguments(this, arguments);
|
|
13904
14154
|
},
|
|
@@ -14065,7 +14315,7 @@ class WorkerUnknownError extends (/* @__PURE__ */ Error3("effect/workers/WorkerE
|
|
|
14065
14315
|
var WorkerErrorReason = /* @__PURE__ */ Union([WorkerSpawnError, WorkerSendError, WorkerReceiveError, WorkerUnknownError]);
|
|
14066
14316
|
|
|
14067
14317
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcClientError.js
|
|
14068
|
-
var
|
|
14318
|
+
var TypeId17 = "~effect/rpc/RpcClientError";
|
|
14069
14319
|
|
|
14070
14320
|
class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError/RpcClientDefect")({
|
|
14071
14321
|
_tag: /* @__PURE__ */ tag("RpcClientDefect"),
|
|
@@ -14074,11 +14324,11 @@ class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError
|
|
|
14074
14324
|
})) {
|
|
14075
14325
|
}
|
|
14076
14326
|
|
|
14077
|
-
class RpcClientError extends (/* @__PURE__ */ Error3(
|
|
14327
|
+
class RpcClientError extends (/* @__PURE__ */ Error3(TypeId17)({
|
|
14078
14328
|
_tag: /* @__PURE__ */ tag("RpcClientError"),
|
|
14079
14329
|
reason: /* @__PURE__ */ Union([WorkerErrorReason, SocketErrorReason, HttpClientErrorSchema, RpcClientDefect])
|
|
14080
14330
|
})) {
|
|
14081
|
-
[
|
|
14331
|
+
[TypeId17] = TypeId17;
|
|
14082
14332
|
get message() {
|
|
14083
14333
|
return `${this.reason._tag}: ${this.reason.message}`;
|
|
14084
14334
|
}
|
|
@@ -14198,7 +14448,7 @@ var RpcGroupProto = {
|
|
|
14198
14448
|
});
|
|
14199
14449
|
},
|
|
14200
14450
|
annotateRpcs(service, value) {
|
|
14201
|
-
return this.annotateRpcsMerge(
|
|
14451
|
+
return this.annotateRpcsMerge(make14(service, value));
|
|
14202
14452
|
},
|
|
14203
14453
|
annotateMerge(context) {
|
|
14204
14454
|
return makeProto2({
|
|
@@ -14226,7 +14476,7 @@ var make7 = (...rpcs) => makeProto2({
|
|
|
14226
14476
|
annotations: empty3()
|
|
14227
14477
|
});
|
|
14228
14478
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
|
|
14229
|
-
var
|
|
14479
|
+
var TypeId18 = "~effect/rpc/RpcMiddleware";
|
|
14230
14480
|
var Service = () => (id, options) => {
|
|
14231
14481
|
const limit = getStackTraceLimit();
|
|
14232
14482
|
let creationError;
|
|
@@ -14244,7 +14494,7 @@ var Service = () => (id, options) => {
|
|
|
14244
14494
|
return creationError?.stack;
|
|
14245
14495
|
}
|
|
14246
14496
|
});
|
|
14247
|
-
ServiceClass_[
|
|
14497
|
+
ServiceClass_[TypeId18] = TypeId18;
|
|
14248
14498
|
ServiceClass_.error = options?.error ?? Never;
|
|
14249
14499
|
ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
|
|
14250
14500
|
return ServiceClass;
|
|
@@ -14882,7 +15132,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
|
|
|
14882
15132
|
var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
|
|
14883
15133
|
|
|
14884
15134
|
// apps/cli/src/oauth.ts
|
|
14885
|
-
var
|
|
15135
|
+
var Scope2 = "openid profile email offline_access kitman:cli";
|
|
14886
15136
|
var CallbackPath = "/auth/callback";
|
|
14887
15137
|
|
|
14888
15138
|
class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
|
|
@@ -14901,7 +15151,7 @@ function buildAuthorizeUrl(input) {
|
|
|
14901
15151
|
url.searchParams.set("response_type", "code");
|
|
14902
15152
|
url.searchParams.set("client_id", input.clientId);
|
|
14903
15153
|
url.searchParams.set("redirect_uri", input.redirectUri);
|
|
14904
|
-
url.searchParams.set("scope",
|
|
15154
|
+
url.searchParams.set("scope", Scope2);
|
|
14905
15155
|
url.searchParams.set("code_challenge", input.codeChallenge);
|
|
14906
15156
|
url.searchParams.set("code_challenge_method", "S256");
|
|
14907
15157
|
url.searchParams.set("state", input.state);
|
|
@@ -14961,7 +15211,7 @@ function toStoredSession(token, existingRefreshToken) {
|
|
|
14961
15211
|
}
|
|
14962
15212
|
function startLoopbackServer(input) {
|
|
14963
15213
|
return gen(function* () {
|
|
14964
|
-
const code = yield*
|
|
15214
|
+
const code = yield* make15();
|
|
14965
15215
|
const context2 = yield* context();
|
|
14966
15216
|
const runSyncExit = runSyncExitWith(context2);
|
|
14967
15217
|
const server = yield* acquireRelease(sync2(() => Bun.serve({
|
|
@@ -15035,7 +15285,7 @@ function postForm(input) {
|
|
|
15035
15285
|
function tokenResponse(response, failure) {
|
|
15036
15286
|
return gen(function* () {
|
|
15037
15287
|
if (!response.ok)
|
|
15038
|
-
return yield* new CliError({ message: `${failure} with ${response.status}
|
|
15288
|
+
return yield* new CliError({ message: `${failure} with ${response.status}`, status: response.status });
|
|
15039
15289
|
const body = yield* tryPromise({
|
|
15040
15290
|
try: () => response.json(),
|
|
15041
15291
|
catch: () => new CliError({ message: `${failure}: invalid JSON` })
|
|
@@ -15071,7 +15321,7 @@ function createSdkClient(input) {
|
|
|
15071
15321
|
const fetchImpl = input.fetch ?? (yield* Fetch);
|
|
15072
15322
|
let session = input.session;
|
|
15073
15323
|
const refreshPermit = makeUnsafe3(1);
|
|
15074
|
-
const refreshFrom = (stale) => refreshPermit.withPermits(1)(suspend3(() => session === stale ? tap2(refreshSession({ ...input, fetch: fetchImpl, session: stale }), (next) => sync2(() => session = next)) : succeed6(session))).pipe(mapError2(
|
|
15324
|
+
const refreshFrom = (stale) => refreshPermit.withPermits(1)(suspend3(() => session === stale ? tap2(refreshSession({ ...input, fetch: fetchImpl, session: stale }), (next) => sync2(() => session = next)) : succeed6(session))).pipe(mapError2(refreshFailure));
|
|
15075
15325
|
const authorizedFetch = (resource, init) => runPromise(gen(function* () {
|
|
15076
15326
|
if (session.refreshToken && shouldRefresh(yield* currentDate, session.expiresAt))
|
|
15077
15327
|
yield* refreshFrom(session);
|
|
@@ -15089,6 +15339,14 @@ function createSdkClient(input) {
|
|
|
15089
15339
|
});
|
|
15090
15340
|
});
|
|
15091
15341
|
}
|
|
15342
|
+
var sessionExpired = "The kitman login on this machine has expired. Run `kitman login`.";
|
|
15343
|
+
var refusedRefresh = new Set([400, 401, 403]);
|
|
15344
|
+
var expiredIfRefused = (error) => error instanceof CliError && error.status !== undefined && refusedRefresh.has(error.status) ? new CliError({ message: sessionExpired, status: 401 }) : error;
|
|
15345
|
+
var refreshFailure = (error) => new KitmanClientError({
|
|
15346
|
+
operation: "refreshSession",
|
|
15347
|
+
message: error.message,
|
|
15348
|
+
status: (error instanceof CliError ? error.status : undefined) ?? 503
|
|
15349
|
+
});
|
|
15092
15350
|
function refreshSession(input) {
|
|
15093
15351
|
const storedSession = readAuthStore(input.authPath).pipe(map8((auth) => sessionForApi(auth, input.apiUrl)));
|
|
15094
15352
|
return withAuthLock(input.authPath, gen(function* () {
|
|
@@ -15106,7 +15364,7 @@ function refreshSession(input) {
|
|
|
15106
15364
|
refreshToken: spentToken,
|
|
15107
15365
|
...input.fetch ? { fetch: input.fetch } : undefined
|
|
15108
15366
|
}).pipe(map8((token) => toStoredSession(token, spentToken)));
|
|
15109
|
-
const session = yield* refreshing.pipe(catch_((error) => storedSession.pipe(filterOrFail((current) => current !== undefined && current.refreshToken !== spentToken, () => error))));
|
|
15367
|
+
const session = yield* refreshing.pipe(catch_((error) => storedSession.pipe(filterOrFail((current) => current !== undefined && current.refreshToken !== spentToken, () => error))), mapError2(expiredIfRefused));
|
|
15110
15368
|
const current = yield* storedSession;
|
|
15111
15369
|
if (current?.refreshToken !== spentToken)
|
|
15112
15370
|
return current ?? session;
|
|
@@ -15501,7 +15759,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
15501
15759
|
let lastId = 0;
|
|
15502
15760
|
let lost = false;
|
|
15503
15761
|
const notifications = yield* unbounded2();
|
|
15504
|
-
const ended = yield*
|
|
15762
|
+
const ended = yield* make15();
|
|
15505
15763
|
const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
|
|
15506
15764
|
onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
|
|
15507
15765
|
onNone: () => void_3,
|
|
@@ -15528,7 +15786,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
15528
15786
|
if (lost)
|
|
15529
15787
|
return yield* new HerdrCoreConnectionLost2({ method });
|
|
15530
15788
|
const id = ++lastId;
|
|
15531
|
-
const deferred = yield*
|
|
15789
|
+
const deferred = yield* make15();
|
|
15532
15790
|
pending.set(id, { method, deferred });
|
|
15533
15791
|
yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
|
|
15534
15792
|
return yield* _await(deferred);
|
|
@@ -15602,7 +15860,7 @@ var herdrCoreOver = (transport) => ({
|
|
|
15602
15860
|
return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
|
|
15603
15861
|
};
|
|
15604
15862
|
const snapshot = { type: "snapshot", terminals: subscribed.terminals };
|
|
15605
|
-
return concat(
|
|
15863
|
+
return concat(make10(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
|
|
15606
15864
|
}))
|
|
15607
15865
|
});
|
|
15608
15866
|
var spawnedTransport = (env) => gen(function* () {
|
|
@@ -15693,7 +15951,7 @@ var runProcess2 = (argv, options) => gen(function* () {
|
|
|
15693
15951
|
const spawner = yield* ChildProcessSpawner;
|
|
15694
15952
|
const [command, ...args] = argv;
|
|
15695
15953
|
const handle = yield* spawner.spawn(make3(command, args, {
|
|
15696
|
-
stdin: options.stdin === undefined ? "ignore" :
|
|
15954
|
+
stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
|
|
15697
15955
|
...options.cwd === undefined ? undefined : { cwd: options.cwd },
|
|
15698
15956
|
env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
|
|
15699
15957
|
}));
|
|
@@ -16125,4 +16383,4 @@ function checkServices(declaration) {
|
|
|
16125
16383
|
return isSome(decoded) ? [...new Set(decoded.value.services)] : undefined;
|
|
16126
16384
|
}
|
|
16127
16385
|
|
|
16128
|
-
export {
|
|
16386
|
+
export { WebCrypto, SecureRandom, layerWebCrypto, makeUnsafe, formatIso, empty, fromInput, merge, runMain, layer, layer2, Stdio, Terminal, layer3, error, log, toDate, parseDate, toIso, currentDate, wallClockMillis, waitingOnWords, queueWords, scanDurableSurface, redactResponseSurface, redactCredentials, redactedOutputTail, SafeJson, ReleaseChannels, DefaultReleaseChannel, newerKitmanVersion, releaseChannelOffers, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, tokensSpent, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, RunWaitUntils, isTestReportName, failedTestOfLine, checkTests, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, MaxRunnerConcurrency, PinnedImage, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, deliveryProviderActions, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, repositoryKey, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw, make5, get, post, put, setHeaders, acceptJson, bodyUint8Array, bodyJsonUnsafe, bodyUrlParams, schemaBodyJson, filterStatusOk, HttpClient, execute, get2, Fetch, layer4, Socket, SocketReadError, SocketError, WebSocketConstructor, layerWebSocketConstructorGlobal, layerWebSocket, runDisplayLabels, listedSummary, KitName, KitDigest, defaultKitName, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, runnerReleaseChannelPath, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, removeAgentCredential, normalizeApiUrl, isStoredAgentCredential, isStreamSchema, getStreamSchemas, make6, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make7, Service, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, RunSettled, UpdateAvailable, RunnerReplicaRpcs, RunnerRunFileRpcs, ProgramRpcs, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, setupMcpAgentCredential, generateAgentKeyPair, HERDR_CORE_GENERATION2, HERDR_CORE_INSTALL_COMMAND2, HerdrCoreMissing2, HerdrCoreIncompatible2, HerdrCoreConnectionLost2, HerdrCoreRpcError2, HerdrCoreUpdateFailed2, HerdrCore2, herdrCoreLayer2, herdrCoreTransportLayer2, updateHerdrCore2, CommandFailed2, runCommand2, withoutPreloads2, shellOutputTailChars2, runProcess2, CommandRunner2, runShell2, detectHarnesses2, kitHarnesses, isKitHarness, instructionsStart, instructionsEnd, harnessNames, renderMcpServer, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices };
|