@kitman-sh/cli 0.18.0 → 0.19.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-d3gs4jvd.js → chunk-0sbd6e4d.js} +64 -64
- package/dist/{chunk-my92qn4x.js → chunk-2dhhyy04.js} +8 -8
- package/dist/{chunk-mqsxwm53.js → chunk-2y646fhs.js} +18 -18
- package/dist/{chunk-wg6xkkcr.js → chunk-36dejya4.js} +1 -1
- package/dist/{chunk-hj8ex4x6.js → chunk-3gmqn9yp.js} +4 -4
- package/dist/{chunk-mg3mxhxe.js → chunk-4rq880g6.js} +6 -6
- package/dist/{chunk-vz38kngm.js → chunk-6387vj9z.js} +2 -2
- package/dist/{chunk-samxkpbz.js → chunk-6hxtg6eb.js} +3 -3
- package/dist/{chunk-js64y97w.js → chunk-9cj8g584.js} +4 -4
- package/dist/{chunk-9jffw2mk.js → chunk-am57a75e.js} +3 -3
- package/dist/{chunk-x8zzax0f.js → chunk-bevxc9rx.js} +10 -10
- package/dist/{chunk-zmqm4mrm.js → chunk-e863b7v1.js} +277 -117
- package/dist/{chunk-h2f26xbd.js → chunk-ew07nt2d.js} +61 -61
- package/dist/{chunk-mca2zp8p.js → chunk-gqcz0d3j.js} +1 -1
- package/dist/{chunk-tsx0347c.js → chunk-haq904fk.js} +1 -1
- package/dist/{chunk-nfnw3dh1.js → chunk-hrdh72c7.js} +9 -9
- package/dist/{chunk-1j38xtvp.js → chunk-khn17hdn.js} +2 -2
- package/dist/{chunk-bqhfbng3.js → chunk-kx00yd3c.js} +13 -13
- package/dist/{chunk-2bagaygt.js → chunk-qp3kqaw1.js} +6 -6
- package/dist/{chunk-4qjfn1sa.js → chunk-qvpkwnky.js} +1 -1
- package/dist/{chunk-n05bj55h.js → chunk-t5gb7bqv.js} +30 -30
- package/dist/{chunk-gap0vmj7.js → chunk-t6y0c0ds.js} +2 -2
- package/dist/{chunk-63cyj9dh.js → chunk-w9mxqrsp.js} +33 -185
- package/dist/{chunk-jaa8qjky.js → chunk-y4nrvwgy.js} +9 -9
- package/dist/{chunk-5kqt4bqp.js → chunk-y7bth30s.js} +1 -1
- package/dist/{chunk-4p1k3yyc.js → chunk-zb8mwx3s.js} +17 -17
- 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,
|
|
@@ -203,7 +213,7 @@ import {
|
|
|
203
213
|
decodeEffect,
|
|
204
214
|
decodeUnknownOption,
|
|
205
215
|
decodeOption,
|
|
206
|
-
|
|
216
|
+
make16,
|
|
207
217
|
isSchema,
|
|
208
218
|
optionalKey,
|
|
209
219
|
optional,
|
|
@@ -264,12 +274,17 @@ import {
|
|
|
264
274
|
decodeJsonStringOption,
|
|
265
275
|
encodeJsonStringSync,
|
|
266
276
|
encodePrettyJsonString
|
|
267
|
-
} from "./chunk-
|
|
277
|
+
} from "./chunk-ew07nt2d.js";
|
|
268
278
|
import {
|
|
269
279
|
map,
|
|
270
280
|
makeEquivalence,
|
|
271
|
-
|
|
281
|
+
Clock,
|
|
282
|
+
currentTimeMillis,
|
|
272
283
|
bytes,
|
|
284
|
+
join,
|
|
285
|
+
interrupt,
|
|
286
|
+
getCurrent,
|
|
287
|
+
runIn,
|
|
273
288
|
BadArgument,
|
|
274
289
|
systemError,
|
|
275
290
|
badArgument,
|
|
@@ -291,13 +306,11 @@ import {
|
|
|
291
306
|
isSink,
|
|
292
307
|
fromChannel,
|
|
293
308
|
drain,
|
|
294
|
-
make10,
|
|
295
|
-
get3,
|
|
296
309
|
isStream,
|
|
297
310
|
fromChannel2,
|
|
298
311
|
callback,
|
|
299
312
|
empty2,
|
|
300
|
-
|
|
313
|
+
make10,
|
|
301
314
|
suspend,
|
|
302
315
|
fail2,
|
|
303
316
|
fromQueue,
|
|
@@ -323,17 +336,17 @@ import {
|
|
|
323
336
|
mkArrayBuffer,
|
|
324
337
|
toReadableStreamEffect,
|
|
325
338
|
FileSystem,
|
|
326
|
-
|
|
339
|
+
make11,
|
|
327
340
|
FileTypeId,
|
|
328
341
|
WatchBackend,
|
|
329
342
|
Path,
|
|
330
|
-
|
|
343
|
+
make12,
|
|
331
344
|
option,
|
|
332
345
|
String2,
|
|
333
346
|
optionalEnv,
|
|
334
347
|
harnessesUnsupportedInSrt2,
|
|
335
348
|
harnessesUnsupportedInDocker2
|
|
336
|
-
} from "./chunk-
|
|
349
|
+
} from "./chunk-w9mxqrsp.js";
|
|
337
350
|
import {
|
|
338
351
|
isRedacted,
|
|
339
352
|
make,
|
|
@@ -347,7 +360,7 @@ import {
|
|
|
347
360
|
make3,
|
|
348
361
|
parseFdName,
|
|
349
362
|
fdName
|
|
350
|
-
} from "./chunk-
|
|
363
|
+
} from "./chunk-t6y0c0ds.js";
|
|
351
364
|
import {
|
|
352
365
|
isDateTime,
|
|
353
366
|
Numeric,
|
|
@@ -360,15 +373,11 @@ import {
|
|
|
360
373
|
SecretScope,
|
|
361
374
|
SecretHosts,
|
|
362
375
|
isSecretReference
|
|
363
|
-
} from "./chunk-
|
|
376
|
+
} from "./chunk-qvpkwnky.js";
|
|
364
377
|
|
|
365
378
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
|
|
366
379
|
var makeEquivalence3 = Tuple;
|
|
367
380
|
|
|
368
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Clock.js
|
|
369
|
-
var Clock = ClockRef;
|
|
370
|
-
var currentTimeMillis = currentTimeMillis2;
|
|
371
|
-
|
|
372
381
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/dateTime.js
|
|
373
382
|
var TypeId = "~effect/DateTime";
|
|
374
383
|
var TimeZoneTypeId = "~effect/DateTime/TimeZone";
|
|
@@ -503,7 +512,7 @@ var fromDateUnsafe = (date) => {
|
|
|
503
512
|
}
|
|
504
513
|
return makeUtc(epochMillis);
|
|
505
514
|
};
|
|
506
|
-
var
|
|
515
|
+
var makeUnsafe7 = (input) => {
|
|
507
516
|
if (isDateTime2(input)) {
|
|
508
517
|
return input;
|
|
509
518
|
} else if (input instanceof Date) {
|
|
@@ -523,7 +532,7 @@ var makeUnsafe6 = (input) => {
|
|
|
523
532
|
var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
|
|
524
533
|
var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
|
|
525
534
|
var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
|
|
526
|
-
var make4 = /* @__PURE__ */ liftThrowable(
|
|
535
|
+
var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe7);
|
|
527
536
|
var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
|
|
528
537
|
var nowUnsafe = () => makeUtc(Date.now());
|
|
529
538
|
var toDateUtc = (self) => new Date(self.epochMilliseconds);
|
|
@@ -630,7 +639,7 @@ class Metric$ {
|
|
|
630
639
|
}
|
|
631
640
|
hook(context) {
|
|
632
641
|
const key = this.key(context);
|
|
633
|
-
const registry =
|
|
642
|
+
const registry = get3(context, MetricRegistry);
|
|
634
643
|
let metadata = registry.get(key);
|
|
635
644
|
if (isUndefined(metadata)) {
|
|
636
645
|
metadata = this.metadata(this.createHooks());
|
|
@@ -639,11 +648,11 @@ class Metric$ {
|
|
|
639
648
|
return metadata.hooks;
|
|
640
649
|
}
|
|
641
650
|
removeUnsafe(context) {
|
|
642
|
-
|
|
651
|
+
get3(context, MetricRegistry).delete(this.key(context));
|
|
643
652
|
}
|
|
644
653
|
registerUnsafe(context, hooks) {
|
|
645
654
|
const key = this.key(context);
|
|
646
|
-
const registry =
|
|
655
|
+
const registry = get3(context, MetricRegistry);
|
|
647
656
|
const metadata = this.metadata({
|
|
648
657
|
get: hooks.get,
|
|
649
658
|
update: constVoid,
|
|
@@ -659,7 +668,7 @@ class Metric$ {
|
|
|
659
668
|
};
|
|
660
669
|
}
|
|
661
670
|
key(context) {
|
|
662
|
-
const extraAttributes =
|
|
671
|
+
const extraAttributes = get3(context, CurrentMetricAttributes);
|
|
663
672
|
if (extraAttributes !== this.#extraAttributes) {
|
|
664
673
|
this.#extraAttributes = extraAttributes;
|
|
665
674
|
const merged = mergeAttributes(this.attributes, extraAttributes);
|
|
@@ -902,9 +911,160 @@ var runMain2 = /* @__PURE__ */ makeRunMain(({
|
|
|
902
911
|
// node_modules/.bun/@effect+platform-bun@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-bun/dist/BunRuntime.js
|
|
903
912
|
var runMain = runMain2;
|
|
904
913
|
|
|
914
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
|
|
915
|
+
var BigInt2 = globalThis.BigInt;
|
|
916
|
+
var toNumber = (b) => {
|
|
917
|
+
if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
|
|
918
|
+
return none();
|
|
919
|
+
}
|
|
920
|
+
return some(Number(b));
|
|
921
|
+
};
|
|
922
|
+
|
|
923
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
|
|
924
|
+
var TypeId3 = "~effect/RcRef";
|
|
925
|
+
var stateEmpty = {
|
|
926
|
+
_tag: "Empty"
|
|
927
|
+
};
|
|
928
|
+
var stateClosed = {
|
|
929
|
+
_tag: "Closed"
|
|
930
|
+
};
|
|
931
|
+
var variance = {
|
|
932
|
+
_A: identity,
|
|
933
|
+
_E: identity
|
|
934
|
+
};
|
|
935
|
+
|
|
936
|
+
class RcRefImpl {
|
|
937
|
+
[TypeId3] = variance;
|
|
938
|
+
pipe() {
|
|
939
|
+
return pipeArguments(this, arguments);
|
|
940
|
+
}
|
|
941
|
+
state = stateEmpty;
|
|
942
|
+
acquire;
|
|
943
|
+
context;
|
|
944
|
+
scope;
|
|
945
|
+
idleTimeToLive;
|
|
946
|
+
constructor(acquire, context, scope, idleTimeToLive) {
|
|
947
|
+
this.acquire = acquire;
|
|
948
|
+
this.context = context;
|
|
949
|
+
this.scope = scope;
|
|
950
|
+
this.idleTimeToLive = idleTimeToLive;
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
var make17 = (options) => withFiber2((fiber) => {
|
|
954
|
+
const context = fiber.context;
|
|
955
|
+
const scope = get3(context, Scope);
|
|
956
|
+
const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
|
|
957
|
+
return as(addFinalizerExit(scope, () => {
|
|
958
|
+
const state = ref.state;
|
|
959
|
+
ref.state = stateClosed;
|
|
960
|
+
if (state._tag === "Acquired")
|
|
961
|
+
return close(state.scope, void_2);
|
|
962
|
+
if (state._tag === "Acquiring")
|
|
963
|
+
return interrupt(state.fiber);
|
|
964
|
+
return void_3;
|
|
965
|
+
}), ref);
|
|
966
|
+
});
|
|
967
|
+
var getState = (self, restore) => {
|
|
968
|
+
switch (self.state._tag) {
|
|
969
|
+
case "Closed": {
|
|
970
|
+
return interrupt3;
|
|
971
|
+
}
|
|
972
|
+
case "Acquired": {
|
|
973
|
+
const state = self.state;
|
|
974
|
+
state.refCount++;
|
|
975
|
+
return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
|
|
976
|
+
}
|
|
977
|
+
case "Acquiring": {
|
|
978
|
+
const state = self.state;
|
|
979
|
+
state.awaiters++;
|
|
980
|
+
return awaitAcquiring(self, state, restore);
|
|
981
|
+
}
|
|
982
|
+
case "Empty": {
|
|
983
|
+
const acquiring = {
|
|
984
|
+
_tag: "Acquiring",
|
|
985
|
+
fiber: undefined,
|
|
986
|
+
awaiters: 1,
|
|
987
|
+
acquired: undefined
|
|
988
|
+
};
|
|
989
|
+
self.state = acquiring;
|
|
990
|
+
const scope = makeUnsafe6();
|
|
991
|
+
const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
|
|
992
|
+
if (self.state !== acquiring) {
|
|
993
|
+
return interrupt3;
|
|
994
|
+
}
|
|
995
|
+
const state = {
|
|
996
|
+
_tag: "Acquired",
|
|
997
|
+
value,
|
|
998
|
+
scope,
|
|
999
|
+
fiber: undefined,
|
|
1000
|
+
refCount: acquiring.awaiters,
|
|
1001
|
+
invalidated: false
|
|
1002
|
+
};
|
|
1003
|
+
self.state = state;
|
|
1004
|
+
acquiring.acquired = state;
|
|
1005
|
+
return succeed6(state);
|
|
1006
|
+
}), onExit((exit) => {
|
|
1007
|
+
if (isSuccess2(exit))
|
|
1008
|
+
return void_3;
|
|
1009
|
+
if (self.state === acquiring)
|
|
1010
|
+
self.state = stateEmpty;
|
|
1011
|
+
return close(scope, exit);
|
|
1012
|
+
}));
|
|
1013
|
+
acquiring.fiber = runForkWith(getCurrent().context)(acquire);
|
|
1014
|
+
return awaitAcquiring(self, acquiring, restore);
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
};
|
|
1018
|
+
var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
|
|
1019
|
+
const acquired = acquiring.acquired;
|
|
1020
|
+
if (acquired !== undefined) {
|
|
1021
|
+
return isFailure2(exit) ? release(self, acquired) : void_3;
|
|
1022
|
+
}
|
|
1023
|
+
if (--acquiring.awaiters > 0 || self.state !== acquiring)
|
|
1024
|
+
return void_3;
|
|
1025
|
+
self.state = stateEmpty;
|
|
1026
|
+
return interrupt(acquiring.fiber);
|
|
1027
|
+
});
|
|
1028
|
+
var get4 = (self_) => {
|
|
1029
|
+
const self = self_;
|
|
1030
|
+
return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
|
|
1031
|
+
};
|
|
1032
|
+
var release = (self, state) => {
|
|
1033
|
+
state.refCount--;
|
|
1034
|
+
if (state.refCount > 0) {
|
|
1035
|
+
return void_3;
|
|
1036
|
+
}
|
|
1037
|
+
const idleTimeToLive = self.idleTimeToLive;
|
|
1038
|
+
if (idleTimeToLive === undefined || state.invalidated) {
|
|
1039
|
+
if (self.state === state) {
|
|
1040
|
+
self.state = stateEmpty;
|
|
1041
|
+
}
|
|
1042
|
+
return close(state.scope, void_2);
|
|
1043
|
+
} else if (!isFinite(idleTimeToLive)) {
|
|
1044
|
+
return void_3;
|
|
1045
|
+
}
|
|
1046
|
+
state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
|
|
1047
|
+
if (self.state === state && state.refCount === 0) {
|
|
1048
|
+
self.state = stateEmpty;
|
|
1049
|
+
return ignoreCause(close(state.scope, void_2), {
|
|
1050
|
+
log: "Unhandled",
|
|
1051
|
+
message: "Unhandled error in RcRef finalizer"
|
|
1052
|
+
});
|
|
1053
|
+
}
|
|
1054
|
+
return void_3;
|
|
1055
|
+
})).pipe(ensuring2(sync2(() => {
|
|
1056
|
+
state.fiber = undefined;
|
|
1057
|
+
})), runForkWith(self.context), runIn(self.scope));
|
|
1058
|
+
return void_3;
|
|
1059
|
+
};
|
|
1060
|
+
|
|
1061
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
|
|
1062
|
+
var make18 = make17;
|
|
1063
|
+
var get5 = get4;
|
|
1064
|
+
|
|
905
1065
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
|
|
906
|
-
var makeUnsafe =
|
|
907
|
-
var
|
|
1066
|
+
var makeUnsafe = makeUnsafe7;
|
|
1067
|
+
var make19 = make4;
|
|
908
1068
|
var now2 = now;
|
|
909
1069
|
var nowUnsafe2 = nowUnsafe;
|
|
910
1070
|
var toDateUtc2 = toDateUtc;
|
|
@@ -1223,7 +1383,7 @@ var taskkill = (childProcess, onExit = () => {}) => {
|
|
|
1223
1383
|
windowsHide: true
|
|
1224
1384
|
}, onExit);
|
|
1225
1385
|
};
|
|
1226
|
-
var
|
|
1386
|
+
var make20 = /* @__PURE__ */ gen(function* () {
|
|
1227
1387
|
const fs = yield* FileSystem;
|
|
1228
1388
|
const path = yield* Path;
|
|
1229
1389
|
const resolveWorkingDirectory = fnUntraced(function* (options) {
|
|
@@ -1752,7 +1912,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1752
1912
|
});
|
|
1753
1913
|
return make2(spawnCommand);
|
|
1754
1914
|
});
|
|
1755
|
-
var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner,
|
|
1915
|
+
var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make20);
|
|
1756
1916
|
var flattenCommand = (command) => {
|
|
1757
1917
|
const commands = [];
|
|
1758
1918
|
const pipeOptions = [];
|
|
@@ -2236,7 +2396,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
|
|
|
2236
2396
|
resume(fail7(handleBadArgument("writeFile")(err)));
|
|
2237
2397
|
}
|
|
2238
2398
|
});
|
|
2239
|
-
var makeFileSystem = /* @__PURE__ */ map9(/* @__PURE__ */ serviceOption(WatchBackend), (backend) =>
|
|
2399
|
+
var makeFileSystem = /* @__PURE__ */ map9(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make11({
|
|
2240
2400
|
access: access2,
|
|
2241
2401
|
chmod: chmod2,
|
|
2242
2402
|
chown: chown2,
|
|
@@ -2296,15 +2456,15 @@ var fileUrlOps = (windows) => ({
|
|
|
2296
2456
|
})
|
|
2297
2457
|
})
|
|
2298
2458
|
});
|
|
2299
|
-
var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2459
|
+
var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
|
|
2300
2460
|
...NodePath.posix,
|
|
2301
2461
|
.../* @__PURE__ */ fileUrlOps(false)
|
|
2302
2462
|
}));
|
|
2303
|
-
var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2463
|
+
var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
|
|
2304
2464
|
...NodePath.win32,
|
|
2305
2465
|
.../* @__PURE__ */ fileUrlOps(true)
|
|
2306
2466
|
}));
|
|
2307
|
-
var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2467
|
+
var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
|
|
2308
2468
|
...NodePath,
|
|
2309
2469
|
.../* @__PURE__ */ fileUrlOps(undefined)
|
|
2310
2470
|
}));
|
|
@@ -2313,10 +2473,10 @@ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
|
|
|
2313
2473
|
var layer2 = layer7;
|
|
2314
2474
|
|
|
2315
2475
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stdio.js
|
|
2316
|
-
var
|
|
2317
|
-
var Stdio = /* @__PURE__ */ Service2(
|
|
2318
|
-
var
|
|
2319
|
-
[
|
|
2476
|
+
var TypeId4 = "~effect/Stdio";
|
|
2477
|
+
var Stdio = /* @__PURE__ */ Service2(TypeId4);
|
|
2478
|
+
var make21 = (options) => ({
|
|
2479
|
+
[TypeId4]: TypeId4,
|
|
2320
2480
|
stdinIsTerminal: succeed6(false),
|
|
2321
2481
|
stdoutIsTerminal: succeed6(false),
|
|
2322
2482
|
stderrIsTerminal: succeed6(false),
|
|
@@ -2324,7 +2484,7 @@ var make20 = (options) => ({
|
|
|
2324
2484
|
});
|
|
2325
2485
|
|
|
2326
2486
|
// node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
|
|
2327
|
-
var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */
|
|
2487
|
+
var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make21({
|
|
2328
2488
|
args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
|
|
2329
2489
|
stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
|
|
2330
2490
|
stdoutIsTerminal: /* @__PURE__ */ sync2(() => process.stdout.isTTY === true),
|
|
@@ -2524,7 +2684,7 @@ var makeUuid = (bytes, randomBytes, format) => {
|
|
|
2524
2684
|
const uuid = bytes(randomBytes(16));
|
|
2525
2685
|
return format === "bytes" ? uuid : stringify(uuid);
|
|
2526
2686
|
};
|
|
2527
|
-
var
|
|
2687
|
+
var make22 = (randomBytes) => {
|
|
2528
2688
|
const randomBytesChecked = (size) => {
|
|
2529
2689
|
checkSize(size);
|
|
2530
2690
|
return randomBytes(size);
|
|
@@ -2558,7 +2718,7 @@ var fillRandom = (crypto2, size) => {
|
|
|
2558
2718
|
}
|
|
2559
2719
|
return bytes;
|
|
2560
2720
|
};
|
|
2561
|
-
var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(
|
|
2721
|
+
var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make22((size) => fillRandom(crypto2, size)))));
|
|
2562
2722
|
var randomBytesUnsafe = (size) => {
|
|
2563
2723
|
checkSize(size);
|
|
2564
2724
|
return fillRandom(globalThis.crypto, size);
|
|
@@ -2566,10 +2726,10 @@ var randomBytesUnsafe = (size) => {
|
|
|
2566
2726
|
var uuidV4Unsafe = (options) => makeUuid(v4Bytes, randomBytesUnsafe, options?.format);
|
|
2567
2727
|
|
|
2568
2728
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
|
|
2569
|
-
var
|
|
2729
|
+
var TypeId5 = "~effect/http/Cookies";
|
|
2570
2730
|
var CookieTypeId = "~effect/http/Cookies/Cookie";
|
|
2571
2731
|
var Proto2 = {
|
|
2572
|
-
[
|
|
2732
|
+
[TypeId5]: TypeId5,
|
|
2573
2733
|
...BaseProto,
|
|
2574
2734
|
toJSON() {
|
|
2575
2735
|
return {
|
|
@@ -2748,14 +2908,14 @@ var tryDecodeURIComponent = (str) => {
|
|
|
2748
2908
|
};
|
|
2749
2909
|
|
|
2750
2910
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Headers.js
|
|
2751
|
-
var
|
|
2911
|
+
var TypeId6 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
|
|
2752
2912
|
var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
|
|
2753
|
-
[
|
|
2754
|
-
value:
|
|
2913
|
+
[TypeId6]: {
|
|
2914
|
+
value: TypeId6
|
|
2755
2915
|
},
|
|
2756
2916
|
[symbolRedactable]: {
|
|
2757
2917
|
value(context) {
|
|
2758
|
-
return redact2(this,
|
|
2918
|
+
return redact2(this, get3(context, CurrentRedactedNames));
|
|
2759
2919
|
}
|
|
2760
2920
|
},
|
|
2761
2921
|
toJSON: {
|
|
@@ -2780,7 +2940,7 @@ var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
|
|
|
2780
2940
|
value: BaseProto[NodeInspectSymbol]
|
|
2781
2941
|
}
|
|
2782
2942
|
});
|
|
2783
|
-
var
|
|
2943
|
+
var make23 = (input) => Object.assign(Object.create(Proto3), input);
|
|
2784
2944
|
var Equivalence2 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
|
|
2785
2945
|
var empty = /* @__PURE__ */ Object.create(Proto3);
|
|
2786
2946
|
var fromInput = (input) => {
|
|
@@ -2805,21 +2965,21 @@ var fromInput = (input) => {
|
|
|
2805
2965
|
};
|
|
2806
2966
|
var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto3);
|
|
2807
2967
|
var set = /* @__PURE__ */ dual(3, (self, key, value) => {
|
|
2808
|
-
const out =
|
|
2968
|
+
const out = make23(self);
|
|
2809
2969
|
out[key.toLowerCase()] = value;
|
|
2810
2970
|
return out;
|
|
2811
2971
|
});
|
|
2812
|
-
var setAll = /* @__PURE__ */ dual(2, (self, headers) =>
|
|
2972
|
+
var setAll = /* @__PURE__ */ dual(2, (self, headers) => make23({
|
|
2813
2973
|
...self,
|
|
2814
2974
|
...fromInput(headers)
|
|
2815
2975
|
}));
|
|
2816
2976
|
var merge = /* @__PURE__ */ dual(2, (self, headers) => {
|
|
2817
|
-
const out =
|
|
2977
|
+
const out = make23(self);
|
|
2818
2978
|
Object.assign(out, headers);
|
|
2819
2979
|
return out;
|
|
2820
2980
|
});
|
|
2821
2981
|
var remove2 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
2822
|
-
const out =
|
|
2982
|
+
const out = make23(self);
|
|
2823
2983
|
delete out[key.toLowerCase()];
|
|
2824
2984
|
return out;
|
|
2825
2985
|
});
|
|
@@ -2876,18 +3036,18 @@ var bodyDecoder = /* @__PURE__ */ new TextDecoder("utf-8", {
|
|
|
2876
3036
|
var fromBody = (bytes) => new URLSearchParams(bodyDecoder.decode(bytes).replace(/^\?/, "%3F"));
|
|
2877
3037
|
|
|
2878
3038
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/UrlParams.js
|
|
2879
|
-
var
|
|
2880
|
-
var isUrlParams = (u) => hasProperty(u,
|
|
3039
|
+
var TypeId7 = "~effect/http/UrlParams";
|
|
3040
|
+
var isUrlParams = (u) => hasProperty(u, TypeId7);
|
|
2881
3041
|
var Proto4 = {
|
|
2882
3042
|
...PipeInspectableProto,
|
|
2883
|
-
[
|
|
3043
|
+
[TypeId7]: TypeId7,
|
|
2884
3044
|
[Symbol.iterator]() {
|
|
2885
3045
|
return this.params[Symbol.iterator]();
|
|
2886
3046
|
},
|
|
2887
3047
|
[symbolRedactable](context) {
|
|
2888
3048
|
return {
|
|
2889
3049
|
_id: "UrlParams",
|
|
2890
|
-
params: Object.fromEntries(redact3(this,
|
|
3050
|
+
params: Object.fromEntries(redact3(this, get3(context, CurrentRedactedNames2)))
|
|
2891
3051
|
};
|
|
2892
3052
|
},
|
|
2893
3053
|
toJSON() {
|
|
@@ -2900,7 +3060,7 @@ var Proto4 = {
|
|
|
2900
3060
|
return array(this.params.flat());
|
|
2901
3061
|
}
|
|
2902
3062
|
};
|
|
2903
|
-
var
|
|
3063
|
+
var make24 = (params) => {
|
|
2904
3064
|
const self = Object.create(Proto4);
|
|
2905
3065
|
self.params = params;
|
|
2906
3066
|
return self;
|
|
@@ -2919,7 +3079,7 @@ var fromInput2 = (input) => {
|
|
|
2919
3079
|
out.push(parsed[i]);
|
|
2920
3080
|
}
|
|
2921
3081
|
}
|
|
2922
|
-
return
|
|
3082
|
+
return make24(out);
|
|
2923
3083
|
};
|
|
2924
3084
|
var fromInputNested = (input) => {
|
|
2925
3085
|
const entries = typeof input[Symbol.iterator] === "function" ? fromIterable(input) : Object.entries(input);
|
|
@@ -2943,9 +3103,9 @@ var fromInputNested = (input) => {
|
|
|
2943
3103
|
return out;
|
|
2944
3104
|
};
|
|
2945
3105
|
var coerce = (value) => isRedacted(value) ? value : String(value);
|
|
2946
|
-
var Equivalence3 = /* @__PURE__ */
|
|
3106
|
+
var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
|
|
2947
3107
|
var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
|
|
2948
|
-
var empty4 = /* @__PURE__ */
|
|
3108
|
+
var empty4 = /* @__PURE__ */ make24([]);
|
|
2949
3109
|
var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
2950
3110
|
const params = fromInput2(input).params.slice();
|
|
2951
3111
|
const keys = new Set;
|
|
@@ -2957,7 +3117,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
|
2957
3117
|
continue;
|
|
2958
3118
|
params.push(self.params[i]);
|
|
2959
3119
|
}
|
|
2960
|
-
return
|
|
3120
|
+
return make24(params);
|
|
2961
3121
|
});
|
|
2962
3122
|
var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
|
|
2963
3123
|
var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
@@ -3013,13 +3173,13 @@ var decodeQueryKey = (key) => {
|
|
|
3013
3173
|
return key;
|
|
3014
3174
|
}
|
|
3015
3175
|
};
|
|
3016
|
-
var currentRedactedNames = () =>
|
|
3176
|
+
var currentRedactedNames = () => get3(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
|
|
3017
3177
|
var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
|
|
3018
3178
|
defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
|
|
3019
3179
|
});
|
|
3020
3180
|
|
|
3021
3181
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Terminal.js
|
|
3022
|
-
var
|
|
3182
|
+
var TypeId8 = "~effect/Terminal";
|
|
3023
3183
|
var QuitErrorTypeId = "~effect/Terminal/QuitError";
|
|
3024
3184
|
|
|
3025
3185
|
class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
|
|
@@ -3028,14 +3188,14 @@ class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
|
|
|
3028
3188
|
[QuitErrorTypeId] = QuitErrorTypeId;
|
|
3029
3189
|
}
|
|
3030
3190
|
var Terminal = /* @__PURE__ */ Service2("effect/Terminal");
|
|
3031
|
-
var
|
|
3191
|
+
var make25 = (impl) => Terminal.of({
|
|
3032
3192
|
...impl,
|
|
3033
|
-
[
|
|
3193
|
+
[TypeId8]: TypeId8
|
|
3034
3194
|
});
|
|
3035
3195
|
|
|
3036
3196
|
// node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
|
|
3037
3197
|
import * as readline from "readline";
|
|
3038
|
-
var
|
|
3198
|
+
var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
|
|
3039
3199
|
const stdin = process.stdin;
|
|
3040
3200
|
const stdout = process.stdout;
|
|
3041
3201
|
const lines = yield* make9();
|
|
@@ -3049,7 +3209,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3049
3209
|
};
|
|
3050
3210
|
stdin.once("end", onStdinEnd);
|
|
3051
3211
|
yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
|
|
3052
|
-
const rlRef = yield*
|
|
3212
|
+
const rlRef = yield* make18({
|
|
3053
3213
|
acquire: acquireRelease(sync2(() => {
|
|
3054
3214
|
const rl = readline.createInterface({
|
|
3055
3215
|
input: stdin,
|
|
@@ -3088,7 +3248,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3088
3248
|
if (stdin.isTTY)
|
|
3089
3249
|
stdin.setRawMode(enabled);
|
|
3090
3250
|
});
|
|
3091
|
-
const rawModeRef = yield*
|
|
3251
|
+
const rawModeRef = yield* make18({
|
|
3092
3252
|
acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
|
|
3093
3253
|
idleTimeToLive: "10 millis"
|
|
3094
3254
|
});
|
|
@@ -3139,14 +3299,14 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3139
3299
|
if (inputEnded) {
|
|
3140
3300
|
handleEnd();
|
|
3141
3301
|
} else {
|
|
3142
|
-
yield*
|
|
3143
|
-
yield*
|
|
3302
|
+
yield* get5(rlRef);
|
|
3303
|
+
yield* get5(rawModeRef);
|
|
3144
3304
|
stdin.once("end", handleEnd);
|
|
3145
3305
|
}
|
|
3146
3306
|
return queue;
|
|
3147
3307
|
});
|
|
3148
3308
|
const readLine = suspend3(() => poll(lines).pipe(flatMap3(match({
|
|
3149
|
-
onNone: () => scoped(andThen2(
|
|
3309
|
+
onNone: () => scoped(andThen2(get5(rlRef), take(lines))),
|
|
3150
3310
|
onSome: succeed6
|
|
3151
3311
|
})), mapError2(() => new QuitError({}))));
|
|
3152
3312
|
const display = (prompt) => uninterruptible(callback3((resume) => {
|
|
@@ -3157,7 +3317,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3157
3317
|
cause: err
|
|
3158
3318
|
}))));
|
|
3159
3319
|
}));
|
|
3160
|
-
return
|
|
3320
|
+
return make25({
|
|
3161
3321
|
columns,
|
|
3162
3322
|
rows,
|
|
3163
3323
|
size,
|
|
@@ -3166,7 +3326,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3166
3326
|
display
|
|
3167
3327
|
});
|
|
3168
3328
|
});
|
|
3169
|
-
var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */
|
|
3329
|
+
var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make26(defaultShouldQuit));
|
|
3170
3330
|
function defaultShouldQuit(input) {
|
|
3171
3331
|
const key = input.key;
|
|
3172
3332
|
return key.name === "escape" || key.ctrl && (key.name === "c" || key.name === "d");
|
|
@@ -3193,7 +3353,7 @@ function toDate(input) {
|
|
|
3193
3353
|
return toDateUtc2(makeUnsafe(input));
|
|
3194
3354
|
}
|
|
3195
3355
|
function parseDate(input) {
|
|
3196
|
-
return getOrUndefined(map4(
|
|
3356
|
+
return getOrUndefined(map4(make19(input), toDateUtc2));
|
|
3197
3357
|
}
|
|
3198
3358
|
function toIso(input) {
|
|
3199
3359
|
return formatIso(makeUnsafe(input));
|
|
@@ -10801,11 +10961,11 @@ var TranscriptSearchResult = Struct({
|
|
|
10801
10961
|
total: Int
|
|
10802
10962
|
});
|
|
10803
10963
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
|
|
10804
|
-
var
|
|
10964
|
+
var TypeId9 = "~effect/http/HttpBody";
|
|
10805
10965
|
class Proto5 {
|
|
10806
|
-
[
|
|
10966
|
+
[TypeId9];
|
|
10807
10967
|
constructor() {
|
|
10808
|
-
this[
|
|
10968
|
+
this[TypeId9] = TypeId9;
|
|
10809
10969
|
}
|
|
10810
10970
|
[NodeInspectSymbol]() {
|
|
10811
10971
|
return this.toJSON();
|
|
@@ -10896,7 +11056,7 @@ var jsonUnsafe = (body, contentType) => text(JSON.stringify(body), contentType ?
|
|
|
10896
11056
|
var urlParams = (urlParams, contentType) => text(toString(fromInput2(urlParams)), contentType ?? "application/x-www-form-urlencoded");
|
|
10897
11057
|
|
|
10898
11058
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientError.js
|
|
10899
|
-
var
|
|
11059
|
+
var TypeId10 = "~effect/http/HttpClientError";
|
|
10900
11060
|
class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
|
|
10901
11061
|
constructor(props) {
|
|
10902
11062
|
if ("cause" in props.reason) {
|
|
@@ -10908,7 +11068,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
|
|
|
10908
11068
|
super(props);
|
|
10909
11069
|
}
|
|
10910
11070
|
}
|
|
10911
|
-
[
|
|
11071
|
+
[TypeId10] = TypeId10;
|
|
10912
11072
|
get request() {
|
|
10913
11073
|
return this.reason.request;
|
|
10914
11074
|
}
|
|
@@ -11012,7 +11172,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError("EmptyBodyError")) {
|
|
|
11012
11172
|
}
|
|
11013
11173
|
}
|
|
11014
11174
|
|
|
11015
|
-
class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(
|
|
11175
|
+
class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId10)({
|
|
11016
11176
|
_tag: /* @__PURE__ */ tag("HttpError"),
|
|
11017
11177
|
kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
|
|
11018
11178
|
cause: /* @__PURE__ */ optional(/* @__PURE__ */ Defect())
|
|
@@ -11045,7 +11205,7 @@ var updateContentLength = (headers, body) => {
|
|
|
11045
11205
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Url.js
|
|
11046
11206
|
class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
|
|
11047
11207
|
}
|
|
11048
|
-
var
|
|
11208
|
+
var make27 = (url, params, hash) => try_({
|
|
11049
11209
|
try: () => {
|
|
11050
11210
|
const urlInstance = new URL(url, baseUrl());
|
|
11051
11211
|
for (let i = 0;i < params.params.length; i++) {
|
|
@@ -11076,10 +11236,10 @@ var baseUrl = () => {
|
|
|
11076
11236
|
};
|
|
11077
11237
|
|
|
11078
11238
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientRequest.js
|
|
11079
|
-
var
|
|
11080
|
-
var isHttpClientRequest = (u) => hasProperty(u,
|
|
11239
|
+
var TypeId11 = "~effect/http/HttpClientRequest";
|
|
11240
|
+
var isHttpClientRequest = (u) => hasProperty(u, TypeId11);
|
|
11081
11241
|
var Proto6 = {
|
|
11082
|
-
[
|
|
11242
|
+
[TypeId11]: TypeId11,
|
|
11083
11243
|
...BaseProto,
|
|
11084
11244
|
toJSON() {
|
|
11085
11245
|
return {
|
|
@@ -11168,7 +11328,7 @@ var bodyUint8Array = /* @__PURE__ */ dual((args) => isHttpClientRequest(args[0])
|
|
|
11168
11328
|
var bodyJsonUnsafe = /* @__PURE__ */ dual(2, (self, body) => setBody(self, jsonUnsafe(body)));
|
|
11169
11329
|
var bodyUrlParams = /* @__PURE__ */ dual(2, (self, input) => setBody(self, urlParams(fromInput2(input))));
|
|
11170
11330
|
function toUrl(self) {
|
|
11171
|
-
const r =
|
|
11331
|
+
const r = make27(self.url, self.urlParams, getOrUndefined(self.hash));
|
|
11172
11332
|
if (isSuccess(r)) {
|
|
11173
11333
|
return some(r.success);
|
|
11174
11334
|
}
|
|
@@ -11176,7 +11336,7 @@ function toUrl(self) {
|
|
|
11176
11336
|
}
|
|
11177
11337
|
|
|
11178
11338
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpIncomingMessage.js
|
|
11179
|
-
var
|
|
11339
|
+
var TypeId12 = "~effect/http/HttpIncomingMessage";
|
|
11180
11340
|
var schemaBodyJson = (schema, options) => {
|
|
11181
11341
|
const decode = decodeEffect(toCodecJson(schema));
|
|
11182
11342
|
const decodeJson = options?.reviver === undefined ? undefined : decodeEffect(fromJsonString(toCodecJson(schema), options));
|
|
@@ -11195,7 +11355,7 @@ var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
|
|
|
11195
11355
|
var getWebSource = (self) => self[WebSourceSymbol]?.();
|
|
11196
11356
|
|
|
11197
11357
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientResponse.js
|
|
11198
|
-
var
|
|
11358
|
+
var TypeId13 = "~effect/http/HttpClientResponse";
|
|
11199
11359
|
var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
|
|
11200
11360
|
var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail7(new HttpClientError({
|
|
11201
11361
|
reason: new StatusCodeError({
|
|
@@ -11206,16 +11366,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
|
|
|
11206
11366
|
}));
|
|
11207
11367
|
|
|
11208
11368
|
class WebHttpClientResponse extends Class {
|
|
11209
|
-
[TypeId11];
|
|
11210
11369
|
[TypeId12];
|
|
11370
|
+
[TypeId13];
|
|
11211
11371
|
request;
|
|
11212
11372
|
source;
|
|
11213
11373
|
constructor(request, source) {
|
|
11214
11374
|
super();
|
|
11215
11375
|
this.request = request;
|
|
11216
11376
|
this.source = source;
|
|
11217
|
-
this[TypeId11] = TypeId11;
|
|
11218
11377
|
this[TypeId12] = TypeId12;
|
|
11378
|
+
this[TypeId13] = TypeId13;
|
|
11219
11379
|
}
|
|
11220
11380
|
toJSON() {
|
|
11221
11381
|
return inspect(this, {
|
|
@@ -11387,7 +11547,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
|
|
|
11387
11547
|
};
|
|
11388
11548
|
|
|
11389
11549
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClient.js
|
|
11390
|
-
var
|
|
11550
|
+
var TypeId14 = "~effect/http/HttpClient";
|
|
11391
11551
|
var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
|
|
11392
11552
|
var accessor = (method) => (...args) => flatMap3(HttpClient, (client) => client[method](...args));
|
|
11393
11553
|
var execute = /* @__PURE__ */ accessor("execute");
|
|
@@ -11404,7 +11564,7 @@ var makeWith2 = (postprocess, preprocess) => {
|
|
|
11404
11564
|
return self;
|
|
11405
11565
|
};
|
|
11406
11566
|
var Proto7 = {
|
|
11407
|
-
[
|
|
11567
|
+
[TypeId14]: TypeId14,
|
|
11408
11568
|
pipe() {
|
|
11409
11569
|
return pipeArguments(this, arguments);
|
|
11410
11570
|
},
|
|
@@ -11418,10 +11578,10 @@ var Proto7 = {
|
|
|
11418
11578
|
return this.execute(make5(fullMethod)(url, options));
|
|
11419
11579
|
}]))
|
|
11420
11580
|
};
|
|
11421
|
-
var
|
|
11581
|
+
var make28 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
|
|
11422
11582
|
const scopedController = scopedRequests.get(request);
|
|
11423
11583
|
const controller = scopedController ?? new AbortController;
|
|
11424
|
-
const urlResult =
|
|
11584
|
+
const urlResult = make27(request.url, request.urlParams, getOrUndefined(request.hash));
|
|
11425
11585
|
if (isFailure(urlResult)) {
|
|
11426
11586
|
return fail7(new HttpClientError({
|
|
11427
11587
|
reason: new InvalidUrlError({
|
|
@@ -11555,8 +11715,8 @@ class InterruptibleResponse {
|
|
|
11555
11715
|
this.original = original;
|
|
11556
11716
|
this.controller = controller;
|
|
11557
11717
|
}
|
|
11718
|
+
[TypeId13] = TypeId13;
|
|
11558
11719
|
[TypeId12] = TypeId12;
|
|
11559
|
-
[TypeId11] = TypeId11;
|
|
11560
11720
|
applyInterrupt(effect) {
|
|
11561
11721
|
return suspend3(() => {
|
|
11562
11722
|
responseRegistry.unregister(this.original);
|
|
@@ -11654,7 +11814,7 @@ var detectStreamBodySupport = () => {
|
|
|
11654
11814
|
return false;
|
|
11655
11815
|
}
|
|
11656
11816
|
};
|
|
11657
|
-
var fetch2 = /* @__PURE__ */
|
|
11817
|
+
var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
|
|
11658
11818
|
if (request.headers.upgrade !== undefined) {
|
|
11659
11819
|
return fail7(new HttpClientError({
|
|
11660
11820
|
reason: new TransportError({
|
|
@@ -11745,10 +11905,10 @@ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
|
|
|
11745
11905
|
});
|
|
11746
11906
|
var layer4 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch2));
|
|
11747
11907
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/socket/Socket.js
|
|
11748
|
-
var
|
|
11908
|
+
var TypeId15 = "~effect/socket/Socket";
|
|
11749
11909
|
var Socket = /* @__PURE__ */ Service2("effect/socket/Socket");
|
|
11750
|
-
var
|
|
11751
|
-
[
|
|
11910
|
+
var make29 = (options) => Socket.of({
|
|
11911
|
+
[TypeId15]: TypeId15,
|
|
11752
11912
|
reader: options.reader,
|
|
11753
11913
|
writer: options.writer
|
|
11754
11914
|
});
|
|
@@ -12071,7 +12231,7 @@ var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
|
|
|
12071
12231
|
write,
|
|
12072
12232
|
writeAll
|
|
12073
12233
|
});
|
|
12074
|
-
return succeed6(
|
|
12234
|
+
return succeed6(make29({
|
|
12075
12235
|
reader,
|
|
12076
12236
|
writer
|
|
12077
12237
|
}));
|
|
@@ -15397,7 +15557,7 @@ function getStreamSchemas(schema) {
|
|
|
15397
15557
|
}
|
|
15398
15558
|
var schema = /* @__PURE__ */ declare(isStream);
|
|
15399
15559
|
function Stream(success, error) {
|
|
15400
|
-
return
|
|
15560
|
+
return make16(schema.ast, {
|
|
15401
15561
|
[StreamSchemaTypeId]: StreamSchemaTypeId,
|
|
15402
15562
|
success,
|
|
15403
15563
|
error
|
|
@@ -15405,9 +15565,9 @@ function Stream(success, error) {
|
|
|
15405
15565
|
}
|
|
15406
15566
|
|
|
15407
15567
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
|
|
15408
|
-
var
|
|
15568
|
+
var TypeId16 = "~effect/rpc/Rpc";
|
|
15409
15569
|
var Proto8 = {
|
|
15410
|
-
[
|
|
15570
|
+
[TypeId16]: TypeId16,
|
|
15411
15571
|
pipe() {
|
|
15412
15572
|
return pipeArguments(this, arguments);
|
|
15413
15573
|
},
|
|
@@ -15574,7 +15734,7 @@ class WorkerUnknownError extends (/* @__PURE__ */ Error3("effect/workers/WorkerE
|
|
|
15574
15734
|
var WorkerErrorReason = /* @__PURE__ */ Union([WorkerSpawnError, WorkerSendError, WorkerReceiveError, WorkerUnknownError]);
|
|
15575
15735
|
|
|
15576
15736
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcClientError.js
|
|
15577
|
-
var
|
|
15737
|
+
var TypeId17 = "~effect/rpc/RpcClientError";
|
|
15578
15738
|
|
|
15579
15739
|
class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError/RpcClientDefect")({
|
|
15580
15740
|
_tag: /* @__PURE__ */ tag("RpcClientDefect"),
|
|
@@ -15583,11 +15743,11 @@ class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError
|
|
|
15583
15743
|
})) {
|
|
15584
15744
|
}
|
|
15585
15745
|
|
|
15586
|
-
class RpcClientError extends (/* @__PURE__ */ Error3(
|
|
15746
|
+
class RpcClientError extends (/* @__PURE__ */ Error3(TypeId17)({
|
|
15587
15747
|
_tag: /* @__PURE__ */ tag("RpcClientError"),
|
|
15588
15748
|
reason: /* @__PURE__ */ Union([WorkerErrorReason, SocketErrorReason, HttpClientErrorSchema, RpcClientDefect])
|
|
15589
15749
|
})) {
|
|
15590
|
-
[
|
|
15750
|
+
[TypeId17] = TypeId17;
|
|
15591
15751
|
get message() {
|
|
15592
15752
|
return `${this.reason._tag}: ${this.reason.message}`;
|
|
15593
15753
|
}
|
|
@@ -15707,7 +15867,7 @@ var RpcGroupProto = {
|
|
|
15707
15867
|
});
|
|
15708
15868
|
},
|
|
15709
15869
|
annotateRpcs(service, value) {
|
|
15710
|
-
return this.annotateRpcsMerge(
|
|
15870
|
+
return this.annotateRpcsMerge(make14(service, value));
|
|
15711
15871
|
},
|
|
15712
15872
|
annotateMerge(context) {
|
|
15713
15873
|
return makeProto2({
|
|
@@ -15735,7 +15895,7 @@ var make7 = (...rpcs) => makeProto2({
|
|
|
15735
15895
|
annotations: empty3()
|
|
15736
15896
|
});
|
|
15737
15897
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
|
|
15738
|
-
var
|
|
15898
|
+
var TypeId18 = "~effect/rpc/RpcMiddleware";
|
|
15739
15899
|
var Service = () => (id, options) => {
|
|
15740
15900
|
const limit = getStackTraceLimit();
|
|
15741
15901
|
let creationError;
|
|
@@ -15753,7 +15913,7 @@ var Service = () => (id, options) => {
|
|
|
15753
15913
|
return creationError?.stack;
|
|
15754
15914
|
}
|
|
15755
15915
|
});
|
|
15756
|
-
ServiceClass_[
|
|
15916
|
+
ServiceClass_[TypeId18] = TypeId18;
|
|
15757
15917
|
ServiceClass_.error = options?.error ?? Never;
|
|
15758
15918
|
ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
|
|
15759
15919
|
return ServiceClass;
|
|
@@ -16496,7 +16656,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
|
|
|
16496
16656
|
var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
|
|
16497
16657
|
|
|
16498
16658
|
// apps/cli/src/oauth.ts
|
|
16499
|
-
var
|
|
16659
|
+
var Scope2 = "openid profile email offline_access kitman:cli";
|
|
16500
16660
|
var CallbackPath = "/auth/callback";
|
|
16501
16661
|
|
|
16502
16662
|
class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
|
|
@@ -16515,7 +16675,7 @@ function buildAuthorizeUrl(input) {
|
|
|
16515
16675
|
url.searchParams.set("response_type", "code");
|
|
16516
16676
|
url.searchParams.set("client_id", input.clientId);
|
|
16517
16677
|
url.searchParams.set("redirect_uri", input.redirectUri);
|
|
16518
|
-
url.searchParams.set("scope",
|
|
16678
|
+
url.searchParams.set("scope", Scope2);
|
|
16519
16679
|
url.searchParams.set("code_challenge", input.codeChallenge);
|
|
16520
16680
|
url.searchParams.set("code_challenge_method", "S256");
|
|
16521
16681
|
url.searchParams.set("state", input.state);
|
|
@@ -16575,7 +16735,7 @@ function toStoredSession(token, existingRefreshToken) {
|
|
|
16575
16735
|
}
|
|
16576
16736
|
function startLoopbackServer(input) {
|
|
16577
16737
|
return gen(function* () {
|
|
16578
|
-
const code = yield*
|
|
16738
|
+
const code = yield* make15();
|
|
16579
16739
|
const context2 = yield* context();
|
|
16580
16740
|
const runSyncExit = runSyncExitWith(context2);
|
|
16581
16741
|
const server = yield* acquireRelease(sync2(() => Bun.serve({
|
|
@@ -17123,7 +17283,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
17123
17283
|
let lastId = 0;
|
|
17124
17284
|
let lost = false;
|
|
17125
17285
|
const notifications = yield* unbounded2();
|
|
17126
|
-
const ended = yield*
|
|
17286
|
+
const ended = yield* make15();
|
|
17127
17287
|
const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
|
|
17128
17288
|
onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
|
|
17129
17289
|
onNone: () => void_3,
|
|
@@ -17150,7 +17310,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
17150
17310
|
if (lost)
|
|
17151
17311
|
return yield* new HerdrCoreConnectionLost2({ method });
|
|
17152
17312
|
const id = ++lastId;
|
|
17153
|
-
const deferred = yield*
|
|
17313
|
+
const deferred = yield* make15();
|
|
17154
17314
|
pending.set(id, { method, deferred });
|
|
17155
17315
|
yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
|
|
17156
17316
|
return yield* _await(deferred);
|
|
@@ -17224,7 +17384,7 @@ var herdrCoreOver = (transport) => ({
|
|
|
17224
17384
|
return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
|
|
17225
17385
|
};
|
|
17226
17386
|
const snapshot = { type: "snapshot", terminals: subscribed.terminals };
|
|
17227
|
-
return concat(
|
|
17387
|
+
return concat(make10(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
|
|
17228
17388
|
}))
|
|
17229
17389
|
});
|
|
17230
17390
|
var spawnedTransport = (env) => gen(function* () {
|
|
@@ -17315,7 +17475,7 @@ var runProcess2 = (argv, options) => gen(function* () {
|
|
|
17315
17475
|
const spawner = yield* ChildProcessSpawner;
|
|
17316
17476
|
const [command, ...args] = argv;
|
|
17317
17477
|
const handle = yield* spawner.spawn(make3(command, args, {
|
|
17318
|
-
stdin: options.stdin === undefined ? "ignore" :
|
|
17478
|
+
stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
|
|
17319
17479
|
...options.cwd === undefined ? undefined : { cwd: options.cwd },
|
|
17320
17480
|
env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
|
|
17321
17481
|
}));
|
|
@@ -17835,4 +17995,4 @@ function serviceChecks(declaration) {
|
|
|
17835
17995
|
return decoded === undefined || decoded.services.length === 0 ? [] : [...new Set(decoded.checks ?? [])];
|
|
17836
17996
|
}
|
|
17837
17997
|
|
|
17838
|
-
export {
|
|
17998
|
+
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, ReleaseChannels, DefaultReleaseChannel, newerKitmanVersion, releaseChannelOffers, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, RepoBindingProvider, findForbiddenRepoBindingSecretPath, releaseVersion, ReleaseScope, isBranchName, baseBranchLayerWords, repositoryKey, loopInputFields, InputSourceLayers, InputSource, inputSourceWords, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, tokensSpent, tokenCountWords, endsFailing, outlineText, anyFailure, goesOn, outlineMermaid, runOutlineText, isTestReportName, testDigest, failedTestOfLine, printedNotReported, failedTestsOf, testOutcomes, checkTests, loopSafeTextMaxLength, recommendedDefault, reportedModelName, RunDisplayStates, RunWaitUntils, calverNumbers, compareCalver, DeliveryMode, defaultDeployCommand, ProgramWorkUnit, MeasureSample, MeasureEvidence, TagVersions, compareCommitMax, commitMessageMax, commandTimeoutMillisDefault, commandTextLimit, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, MaxRunnerConcurrency, PinnedImage, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, deliveryProviderActions, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, DeployTargetName, DeployRef, DeployStatus, runsDeployedTag, Deploy, DeployTargetRunning, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, ClaimResult, mergeTurnResource, 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, stepFallbackWords, runTicketsPayload, runTicketResult, ticketOutcomeLabels, runGraphLayout, KitDigest, defaultKitName, LoopCapabilities, LoopManifest, CallableLoop, AgentDeclaration, StepManifest, KitDeclarations, 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, antigravityPlugins, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices, serviceChecks };
|