@kitman-sh/cli 0.10.72 → 0.10.73
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-7g4e5fsj.js → chunk-0rzh8yfd.js} +19 -19
- package/dist/{chunk-pyt2zrwc.js → chunk-1rry0tsn.js} +2 -2
- package/dist/{chunk-gngg8j56.js → chunk-3edjgnxf.js} +2 -2
- package/dist/{chunk-hxm3bvpn.js → chunk-4wqjxfbv.js} +5 -5
- package/dist/{chunk-cefprsjj.js → chunk-5n121vsj.js} +4 -4
- package/dist/{chunk-tv94e132.js → chunk-60333x3q.js} +5 -5
- package/dist/{chunk-030xsst1.js → chunk-9e452fhe.js} +111 -266
- package/dist/{chunk-cj3ef3pv.js → chunk-cmatdpfy.js} +6 -6
- package/dist/{chunk-7sm45hhc.js → chunk-csbf77zs.js} +6 -6
- package/dist/{chunk-vrt08dk9.js → chunk-d3ksv8y1.js} +60 -60
- package/dist/{chunk-7672g0fj.js → chunk-dk0ftqwg.js} +177 -28
- package/dist/{chunk-wssfts9s.js → chunk-gmnqchsc.js} +4 -4
- package/dist/{chunk-pnsqttt3.js → chunk-gxnpdpjz.js} +7 -7
- package/dist/{chunk-2es1djpn.js → chunk-h89p59p6.js} +8 -8
- package/dist/{chunk-290se4bt.js → chunk-hr9vd6dj.js} +3 -3
- package/dist/{chunk-b63rssdn.js → chunk-q3c7vmby.js} +1 -1
- package/dist/{chunk-61by5f18.js → chunk-r8rcfjag.js} +17 -17
- package/dist/{chunk-w6qjh6q5.js → chunk-rm83dbpv.js} +2 -2
- package/dist/{chunk-se79jbha.js → chunk-rrnee9mk.js} +1 -1
- package/dist/{chunk-vd8f9brg.js → chunk-t1z7atrq.js} +17 -17
- package/dist/{chunk-g8b2z9jn.js → chunk-tkmp48ha.js} +4 -4
- package/dist/{chunk-nhd7dh79.js → chunk-v01c0k6j.js} +1 -1
- package/dist/{chunk-7wenq6ew.js → chunk-x1zqfxve.js} +4 -4
- package/dist/{chunk-d2fxfv0j.js → chunk-zwec6t49.js} +7 -7
- 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
|
+
make14,
|
|
42
42
|
strictEqual,
|
|
43
43
|
Tuple,
|
|
44
44
|
Number2,
|
|
@@ -58,15 +58,13 @@ import {
|
|
|
58
58
|
Service2,
|
|
59
59
|
makeUnsafe4,
|
|
60
60
|
empty3,
|
|
61
|
-
|
|
61
|
+
make15,
|
|
62
62
|
add,
|
|
63
63
|
getOrUndefined2,
|
|
64
64
|
getOrUndefinedUnsafe,
|
|
65
|
-
|
|
65
|
+
get4,
|
|
66
66
|
merge3,
|
|
67
67
|
Reference,
|
|
68
|
-
fromInputUnsafe,
|
|
69
|
-
isFinite,
|
|
70
68
|
millis,
|
|
71
69
|
seconds,
|
|
72
70
|
toMillis,
|
|
@@ -91,11 +89,9 @@ import {
|
|
|
91
89
|
ConsoleRef,
|
|
92
90
|
succeed3,
|
|
93
91
|
fail4,
|
|
94
|
-
void_2,
|
|
95
92
|
isSuccess2,
|
|
96
|
-
isFailure2,
|
|
97
93
|
makeUnsafe5,
|
|
98
|
-
|
|
94
|
+
make16,
|
|
99
95
|
_await,
|
|
100
96
|
fail5,
|
|
101
97
|
isDone,
|
|
@@ -103,12 +99,8 @@ import {
|
|
|
103
99
|
succeed4,
|
|
104
100
|
doneUnsafe,
|
|
105
101
|
TracerTimingEnabled,
|
|
106
|
-
Scope,
|
|
107
|
-
makeUnsafe6,
|
|
108
102
|
provide,
|
|
109
|
-
addFinalizerExit,
|
|
110
103
|
addFinalizer,
|
|
111
|
-
close,
|
|
112
104
|
succeed5,
|
|
113
105
|
effect,
|
|
114
106
|
effectContext,
|
|
@@ -160,7 +152,6 @@ import {
|
|
|
160
152
|
tapCause,
|
|
161
153
|
retry,
|
|
162
154
|
ignore,
|
|
163
|
-
ignoreCause,
|
|
164
155
|
orElseSucceed,
|
|
165
156
|
timeout,
|
|
166
157
|
timeoutOrElse,
|
|
@@ -172,7 +163,6 @@ import {
|
|
|
172
163
|
context,
|
|
173
164
|
contextWith,
|
|
174
165
|
provide3,
|
|
175
|
-
provideContext2,
|
|
176
166
|
serviceOption,
|
|
177
167
|
updateContext,
|
|
178
168
|
provideService,
|
|
@@ -183,7 +173,6 @@ import {
|
|
|
183
173
|
addFinalizer2,
|
|
184
174
|
ensuring2,
|
|
185
175
|
onError,
|
|
186
|
-
onExit,
|
|
187
176
|
cached,
|
|
188
177
|
interrupt3,
|
|
189
178
|
interruptible,
|
|
@@ -195,7 +184,6 @@ import {
|
|
|
195
184
|
withParentSpan,
|
|
196
185
|
forkScoped,
|
|
197
186
|
runFork,
|
|
198
|
-
runForkWith,
|
|
199
187
|
runPromise,
|
|
200
188
|
runPromiseWith,
|
|
201
189
|
runSync,
|
|
@@ -214,7 +202,7 @@ import {
|
|
|
214
202
|
decodeEffect,
|
|
215
203
|
decodeUnknownOption,
|
|
216
204
|
decodeOption,
|
|
217
|
-
|
|
205
|
+
make17,
|
|
218
206
|
isSchema,
|
|
219
207
|
optionalKey,
|
|
220
208
|
optional,
|
|
@@ -260,15 +248,11 @@ import {
|
|
|
260
248
|
decodeJsonStringOption,
|
|
261
249
|
encodeJsonStringSync,
|
|
262
250
|
encodePrettyJsonString
|
|
263
|
-
} from "./chunk-
|
|
251
|
+
} from "./chunk-d3ksv8y1.js";
|
|
264
252
|
import {
|
|
265
253
|
map,
|
|
266
254
|
makeEquivalence,
|
|
267
255
|
bytes,
|
|
268
|
-
join,
|
|
269
|
-
interrupt,
|
|
270
|
-
getCurrent,
|
|
271
|
-
runIn,
|
|
272
256
|
BadArgument,
|
|
273
257
|
systemError,
|
|
274
258
|
badArgument,
|
|
@@ -290,11 +274,13 @@ import {
|
|
|
290
274
|
isSink,
|
|
291
275
|
fromChannel,
|
|
292
276
|
drain,
|
|
277
|
+
make10,
|
|
278
|
+
get3,
|
|
293
279
|
isStream,
|
|
294
280
|
fromChannel2,
|
|
295
281
|
callback,
|
|
296
282
|
empty2,
|
|
297
|
-
|
|
283
|
+
make11,
|
|
298
284
|
suspend,
|
|
299
285
|
fail2,
|
|
300
286
|
fromQueue,
|
|
@@ -320,16 +306,16 @@ import {
|
|
|
320
306
|
mkArrayBuffer,
|
|
321
307
|
toReadableStreamEffect,
|
|
322
308
|
FileSystem,
|
|
323
|
-
|
|
309
|
+
make12,
|
|
324
310
|
FileTypeId,
|
|
325
311
|
WatchBackend,
|
|
326
312
|
Path,
|
|
327
|
-
|
|
313
|
+
make13,
|
|
328
314
|
option,
|
|
329
315
|
String2,
|
|
330
316
|
optionalEnv,
|
|
331
317
|
harnessesUnsupportedInSrt2
|
|
332
|
-
} from "./chunk-
|
|
318
|
+
} from "./chunk-dk0ftqwg.js";
|
|
333
319
|
import {
|
|
334
320
|
isDateTime,
|
|
335
321
|
Numeric,
|
|
@@ -341,7 +327,7 @@ import {
|
|
|
341
327
|
SecretName,
|
|
342
328
|
SecretScope,
|
|
343
329
|
SecretHosts
|
|
344
|
-
} from "./chunk-
|
|
330
|
+
} from "./chunk-rrnee9mk.js";
|
|
345
331
|
import {
|
|
346
332
|
toJsonValue,
|
|
347
333
|
isOneOf,
|
|
@@ -355,7 +341,7 @@ import {
|
|
|
355
341
|
isSymbol,
|
|
356
342
|
isUndefined,
|
|
357
343
|
kindOf
|
|
358
|
-
} from "./chunk-
|
|
344
|
+
} from "./chunk-v01c0k6j.js";
|
|
359
345
|
import {
|
|
360
346
|
isRedacted,
|
|
361
347
|
make,
|
|
@@ -369,7 +355,8 @@ import {
|
|
|
369
355
|
make3,
|
|
370
356
|
parseFdName,
|
|
371
357
|
fdName
|
|
372
|
-
} from "./chunk-
|
|
358
|
+
} from "./chunk-1rry0tsn.js";
|
|
359
|
+
|
|
373
360
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
|
|
374
361
|
var makeEquivalence3 = Tuple;
|
|
375
362
|
|
|
@@ -511,7 +498,7 @@ var fromDateUnsafe = (date) => {
|
|
|
511
498
|
}
|
|
512
499
|
return makeUtc(epochMillis);
|
|
513
500
|
};
|
|
514
|
-
var
|
|
501
|
+
var makeUnsafe6 = (input) => {
|
|
515
502
|
if (isDateTime2(input)) {
|
|
516
503
|
return input;
|
|
517
504
|
} else if (input instanceof Date) {
|
|
@@ -531,7 +518,7 @@ var makeUnsafe7 = (input) => {
|
|
|
531
518
|
var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
|
|
532
519
|
var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
|
|
533
520
|
var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
|
|
534
|
-
var make4 = /* @__PURE__ */ liftThrowable(
|
|
521
|
+
var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
|
|
535
522
|
var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
|
|
536
523
|
var nowUnsafe = () => makeUtc(Date.now());
|
|
537
524
|
var toDateUtc = (self) => new Date(self.epochMilliseconds);
|
|
@@ -638,7 +625,7 @@ class Metric$ {
|
|
|
638
625
|
}
|
|
639
626
|
hook(context) {
|
|
640
627
|
const key = this.key(context);
|
|
641
|
-
const registry =
|
|
628
|
+
const registry = get4(context, MetricRegistry);
|
|
642
629
|
let metadata = registry.get(key);
|
|
643
630
|
if (isUndefined2(metadata)) {
|
|
644
631
|
metadata = this.metadata(this.createHooks());
|
|
@@ -647,11 +634,11 @@ class Metric$ {
|
|
|
647
634
|
return metadata.hooks;
|
|
648
635
|
}
|
|
649
636
|
removeUnsafe(context) {
|
|
650
|
-
|
|
637
|
+
get4(context, MetricRegistry).delete(this.key(context));
|
|
651
638
|
}
|
|
652
639
|
registerUnsafe(context, hooks) {
|
|
653
640
|
const key = this.key(context);
|
|
654
|
-
const registry =
|
|
641
|
+
const registry = get4(context, MetricRegistry);
|
|
655
642
|
const metadata = this.metadata({
|
|
656
643
|
get: hooks.get,
|
|
657
644
|
update: constVoid,
|
|
@@ -667,7 +654,7 @@ class Metric$ {
|
|
|
667
654
|
};
|
|
668
655
|
}
|
|
669
656
|
key(context) {
|
|
670
|
-
const extraAttributes =
|
|
657
|
+
const extraAttributes = get4(context, CurrentMetricAttributes);
|
|
671
658
|
if (extraAttributes !== this.#extraAttributes) {
|
|
672
659
|
this.#extraAttributes = extraAttributes;
|
|
673
660
|
const merged = mergeAttributes(this.attributes, extraAttributes);
|
|
@@ -919,151 +906,9 @@ var toNumber = (b) => {
|
|
|
919
906
|
return some(Number(b));
|
|
920
907
|
};
|
|
921
908
|
|
|
922
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
|
|
923
|
-
var TypeId3 = "~effect/RcRef";
|
|
924
|
-
var stateEmpty = {
|
|
925
|
-
_tag: "Empty"
|
|
926
|
-
};
|
|
927
|
-
var stateClosed = {
|
|
928
|
-
_tag: "Closed"
|
|
929
|
-
};
|
|
930
|
-
var variance = {
|
|
931
|
-
_A: identity,
|
|
932
|
-
_E: identity
|
|
933
|
-
};
|
|
934
|
-
|
|
935
|
-
class RcRefImpl {
|
|
936
|
-
[TypeId3] = variance;
|
|
937
|
-
pipe() {
|
|
938
|
-
return pipeArguments(this, arguments);
|
|
939
|
-
}
|
|
940
|
-
state = stateEmpty;
|
|
941
|
-
acquire;
|
|
942
|
-
context;
|
|
943
|
-
scope;
|
|
944
|
-
idleTimeToLive;
|
|
945
|
-
constructor(acquire, context, scope, idleTimeToLive) {
|
|
946
|
-
this.acquire = acquire;
|
|
947
|
-
this.context = context;
|
|
948
|
-
this.scope = scope;
|
|
949
|
-
this.idleTimeToLive = idleTimeToLive;
|
|
950
|
-
}
|
|
951
|
-
}
|
|
952
|
-
var make17 = (options) => withFiber2((fiber) => {
|
|
953
|
-
const context = fiber.context;
|
|
954
|
-
const scope = get3(context, Scope);
|
|
955
|
-
const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
|
|
956
|
-
return as(addFinalizerExit(scope, () => {
|
|
957
|
-
const state = ref.state;
|
|
958
|
-
ref.state = stateClosed;
|
|
959
|
-
if (state._tag === "Acquired")
|
|
960
|
-
return close(state.scope, void_2);
|
|
961
|
-
if (state._tag === "Acquiring")
|
|
962
|
-
return interrupt(state.fiber);
|
|
963
|
-
return void_3;
|
|
964
|
-
}), ref);
|
|
965
|
-
});
|
|
966
|
-
var getState = (self, restore) => {
|
|
967
|
-
switch (self.state._tag) {
|
|
968
|
-
case "Closed": {
|
|
969
|
-
return interrupt3;
|
|
970
|
-
}
|
|
971
|
-
case "Acquired": {
|
|
972
|
-
const state = self.state;
|
|
973
|
-
state.refCount++;
|
|
974
|
-
return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
|
|
975
|
-
}
|
|
976
|
-
case "Acquiring": {
|
|
977
|
-
const state = self.state;
|
|
978
|
-
state.awaiters++;
|
|
979
|
-
return awaitAcquiring(self, state, restore);
|
|
980
|
-
}
|
|
981
|
-
case "Empty": {
|
|
982
|
-
const acquiring = {
|
|
983
|
-
_tag: "Acquiring",
|
|
984
|
-
fiber: undefined,
|
|
985
|
-
awaiters: 1,
|
|
986
|
-
acquired: undefined
|
|
987
|
-
};
|
|
988
|
-
self.state = acquiring;
|
|
989
|
-
const scope = makeUnsafe6();
|
|
990
|
-
const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
|
|
991
|
-
if (self.state !== acquiring) {
|
|
992
|
-
return interrupt3;
|
|
993
|
-
}
|
|
994
|
-
const state = {
|
|
995
|
-
_tag: "Acquired",
|
|
996
|
-
value,
|
|
997
|
-
scope,
|
|
998
|
-
fiber: undefined,
|
|
999
|
-
refCount: acquiring.awaiters,
|
|
1000
|
-
invalidated: false
|
|
1001
|
-
};
|
|
1002
|
-
self.state = state;
|
|
1003
|
-
acquiring.acquired = state;
|
|
1004
|
-
return succeed6(state);
|
|
1005
|
-
}), onExit((exit) => {
|
|
1006
|
-
if (isSuccess2(exit))
|
|
1007
|
-
return void_3;
|
|
1008
|
-
if (self.state === acquiring)
|
|
1009
|
-
self.state = stateEmpty;
|
|
1010
|
-
return close(scope, exit);
|
|
1011
|
-
}));
|
|
1012
|
-
acquiring.fiber = runForkWith(getCurrent().context)(acquire);
|
|
1013
|
-
return awaitAcquiring(self, acquiring, restore);
|
|
1014
|
-
}
|
|
1015
|
-
}
|
|
1016
|
-
};
|
|
1017
|
-
var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
|
|
1018
|
-
const acquired = acquiring.acquired;
|
|
1019
|
-
if (acquired !== undefined) {
|
|
1020
|
-
return isFailure2(exit) ? release(self, acquired) : void_3;
|
|
1021
|
-
}
|
|
1022
|
-
if (--acquiring.awaiters > 0 || self.state !== acquiring)
|
|
1023
|
-
return void_3;
|
|
1024
|
-
self.state = stateEmpty;
|
|
1025
|
-
return interrupt(acquiring.fiber);
|
|
1026
|
-
});
|
|
1027
|
-
var get4 = (self_) => {
|
|
1028
|
-
const self = self_;
|
|
1029
|
-
return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
|
|
1030
|
-
};
|
|
1031
|
-
var release = (self, state) => {
|
|
1032
|
-
state.refCount--;
|
|
1033
|
-
if (state.refCount > 0) {
|
|
1034
|
-
return void_3;
|
|
1035
|
-
}
|
|
1036
|
-
const idleTimeToLive = self.idleTimeToLive;
|
|
1037
|
-
if (idleTimeToLive === undefined || state.invalidated) {
|
|
1038
|
-
if (self.state === state) {
|
|
1039
|
-
self.state = stateEmpty;
|
|
1040
|
-
}
|
|
1041
|
-
return close(state.scope, void_2);
|
|
1042
|
-
} else if (!isFinite(idleTimeToLive)) {
|
|
1043
|
-
return void_3;
|
|
1044
|
-
}
|
|
1045
|
-
state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
|
|
1046
|
-
if (self.state === state && state.refCount === 0) {
|
|
1047
|
-
self.state = stateEmpty;
|
|
1048
|
-
return ignoreCause(close(state.scope, void_2), {
|
|
1049
|
-
log: "Unhandled",
|
|
1050
|
-
message: "Unhandled error in RcRef finalizer"
|
|
1051
|
-
});
|
|
1052
|
-
}
|
|
1053
|
-
return void_3;
|
|
1054
|
-
})).pipe(ensuring2(sync2(() => {
|
|
1055
|
-
state.fiber = undefined;
|
|
1056
|
-
})), runForkWith(self.context), runIn(self.scope));
|
|
1057
|
-
return void_3;
|
|
1058
|
-
};
|
|
1059
|
-
|
|
1060
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
|
|
1061
|
-
var make18 = make17;
|
|
1062
|
-
var get5 = get4;
|
|
1063
|
-
|
|
1064
909
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
|
|
1065
|
-
var makeUnsafe =
|
|
1066
|
-
var
|
|
910
|
+
var makeUnsafe = makeUnsafe6;
|
|
911
|
+
var make18 = make4;
|
|
1067
912
|
var now2 = now;
|
|
1068
913
|
var nowUnsafe2 = nowUnsafe;
|
|
1069
914
|
var toDateUtc2 = toDateUtc;
|
|
@@ -1382,7 +1227,7 @@ var taskkill = (childProcess, onExit = () => {}) => {
|
|
|
1382
1227
|
windowsHide: true
|
|
1383
1228
|
}, onExit);
|
|
1384
1229
|
};
|
|
1385
|
-
var
|
|
1230
|
+
var make19 = /* @__PURE__ */ gen(function* () {
|
|
1386
1231
|
const fs = yield* FileSystem;
|
|
1387
1232
|
const path = yield* Path;
|
|
1388
1233
|
const resolveWorkingDirectory = fnUntraced(function* (options) {
|
|
@@ -1911,7 +1756,7 @@ var make20 = /* @__PURE__ */ gen(function* () {
|
|
|
1911
1756
|
});
|
|
1912
1757
|
return make2(spawnCommand);
|
|
1913
1758
|
});
|
|
1914
|
-
var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner,
|
|
1759
|
+
var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
|
|
1915
1760
|
var flattenCommand = (command) => {
|
|
1916
1761
|
const commands = [];
|
|
1917
1762
|
const pipeOptions = [];
|
|
@@ -2395,7 +2240,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
|
|
|
2395
2240
|
resume(fail7(handleBadArgument("writeFile")(err)));
|
|
2396
2241
|
}
|
|
2397
2242
|
});
|
|
2398
|
-
var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) =>
|
|
2243
|
+
var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make12({
|
|
2399
2244
|
access: access2,
|
|
2400
2245
|
chmod: chmod2,
|
|
2401
2246
|
chown: chown2,
|
|
@@ -2455,15 +2300,15 @@ var fileUrlOps = (windows) => ({
|
|
|
2455
2300
|
})
|
|
2456
2301
|
})
|
|
2457
2302
|
});
|
|
2458
|
-
var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2303
|
+
var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
|
|
2459
2304
|
...NodePath.posix,
|
|
2460
2305
|
.../* @__PURE__ */ fileUrlOps(false)
|
|
2461
2306
|
}));
|
|
2462
|
-
var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2307
|
+
var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
|
|
2463
2308
|
...NodePath.win32,
|
|
2464
2309
|
.../* @__PURE__ */ fileUrlOps(true)
|
|
2465
2310
|
}));
|
|
2466
|
-
var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2311
|
+
var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
|
|
2467
2312
|
...NodePath,
|
|
2468
2313
|
.../* @__PURE__ */ fileUrlOps(undefined)
|
|
2469
2314
|
}));
|
|
@@ -2472,10 +2317,10 @@ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
|
|
|
2472
2317
|
var layer2 = layer7;
|
|
2473
2318
|
|
|
2474
2319
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stdio.js
|
|
2475
|
-
var
|
|
2476
|
-
var Stdio = /* @__PURE__ */ Service2(
|
|
2477
|
-
var
|
|
2478
|
-
[
|
|
2320
|
+
var TypeId3 = "~effect/Stdio";
|
|
2321
|
+
var Stdio = /* @__PURE__ */ Service2(TypeId3);
|
|
2322
|
+
var make20 = (options) => ({
|
|
2323
|
+
[TypeId3]: TypeId3,
|
|
2479
2324
|
stdinIsTerminal: succeed6(false),
|
|
2480
2325
|
stdoutIsTerminal: succeed6(false),
|
|
2481
2326
|
stderrIsTerminal: succeed6(false),
|
|
@@ -2483,7 +2328,7 @@ var make21 = (options) => ({
|
|
|
2483
2328
|
});
|
|
2484
2329
|
|
|
2485
2330
|
// node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
|
|
2486
|
-
var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */
|
|
2331
|
+
var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make20({
|
|
2487
2332
|
args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
|
|
2488
2333
|
stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
|
|
2489
2334
|
stdoutIsTerminal: /* @__PURE__ */ sync2(() => process.stdout.isTTY === true),
|
|
@@ -2683,7 +2528,7 @@ var makeUuid = (bytes, randomBytes, format) => {
|
|
|
2683
2528
|
const uuid = bytes(randomBytes(16));
|
|
2684
2529
|
return format === "bytes" ? uuid : stringify(uuid);
|
|
2685
2530
|
};
|
|
2686
|
-
var
|
|
2531
|
+
var make21 = (randomBytes) => {
|
|
2687
2532
|
const randomBytesChecked = (size) => {
|
|
2688
2533
|
checkSize(size);
|
|
2689
2534
|
return randomBytes(size);
|
|
@@ -2717,13 +2562,13 @@ var fillRandom = (crypto2, size) => {
|
|
|
2717
2562
|
}
|
|
2718
2563
|
return bytes;
|
|
2719
2564
|
};
|
|
2720
|
-
var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(
|
|
2565
|
+
var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make21((size) => fillRandom(crypto2, size)))));
|
|
2721
2566
|
|
|
2722
2567
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
|
|
2723
|
-
var
|
|
2568
|
+
var TypeId4 = "~effect/http/Cookies";
|
|
2724
2569
|
var CookieTypeId = "~effect/http/Cookies/Cookie";
|
|
2725
2570
|
var Proto2 = {
|
|
2726
|
-
[
|
|
2571
|
+
[TypeId4]: TypeId4,
|
|
2727
2572
|
...BaseProto,
|
|
2728
2573
|
toJSON() {
|
|
2729
2574
|
return {
|
|
@@ -2902,14 +2747,14 @@ var tryDecodeURIComponent = (str) => {
|
|
|
2902
2747
|
};
|
|
2903
2748
|
|
|
2904
2749
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Headers.js
|
|
2905
|
-
var
|
|
2750
|
+
var TypeId5 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
|
|
2906
2751
|
var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
|
|
2907
|
-
[
|
|
2908
|
-
value:
|
|
2752
|
+
[TypeId5]: {
|
|
2753
|
+
value: TypeId5
|
|
2909
2754
|
},
|
|
2910
2755
|
[symbolRedactable]: {
|
|
2911
2756
|
value(context) {
|
|
2912
|
-
return redact2(this,
|
|
2757
|
+
return redact2(this, get4(context, CurrentRedactedNames));
|
|
2913
2758
|
}
|
|
2914
2759
|
},
|
|
2915
2760
|
toJSON: {
|
|
@@ -2934,7 +2779,7 @@ var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
|
|
|
2934
2779
|
value: BaseProto[NodeInspectSymbol]
|
|
2935
2780
|
}
|
|
2936
2781
|
});
|
|
2937
|
-
var
|
|
2782
|
+
var make22 = (input) => Object.assign(Object.create(Proto3), input);
|
|
2938
2783
|
var Equivalence2 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
|
|
2939
2784
|
var empty = /* @__PURE__ */ Object.create(Proto3);
|
|
2940
2785
|
var fromInput = (input) => {
|
|
@@ -2959,21 +2804,21 @@ var fromInput = (input) => {
|
|
|
2959
2804
|
};
|
|
2960
2805
|
var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto3);
|
|
2961
2806
|
var set = /* @__PURE__ */ dual(3, (self, key, value) => {
|
|
2962
|
-
const out =
|
|
2807
|
+
const out = make22(self);
|
|
2963
2808
|
out[key.toLowerCase()] = value;
|
|
2964
2809
|
return out;
|
|
2965
2810
|
});
|
|
2966
|
-
var setAll = /* @__PURE__ */ dual(2, (self, headers) =>
|
|
2811
|
+
var setAll = /* @__PURE__ */ dual(2, (self, headers) => make22({
|
|
2967
2812
|
...self,
|
|
2968
2813
|
...fromInput(headers)
|
|
2969
2814
|
}));
|
|
2970
2815
|
var merge = /* @__PURE__ */ dual(2, (self, headers) => {
|
|
2971
|
-
const out =
|
|
2816
|
+
const out = make22(self);
|
|
2972
2817
|
Object.assign(out, headers);
|
|
2973
2818
|
return out;
|
|
2974
2819
|
});
|
|
2975
2820
|
var remove2 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
2976
|
-
const out =
|
|
2821
|
+
const out = make22(self);
|
|
2977
2822
|
delete out[key.toLowerCase()];
|
|
2978
2823
|
return out;
|
|
2979
2824
|
});
|
|
@@ -3030,18 +2875,18 @@ var bodyDecoder = /* @__PURE__ */ new TextDecoder("utf-8", {
|
|
|
3030
2875
|
var fromBody = (bytes) => new URLSearchParams(bodyDecoder.decode(bytes).replace(/^\?/, "%3F"));
|
|
3031
2876
|
|
|
3032
2877
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/UrlParams.js
|
|
3033
|
-
var
|
|
3034
|
-
var isUrlParams = (u) => hasProperty(u,
|
|
2878
|
+
var TypeId6 = "~effect/http/UrlParams";
|
|
2879
|
+
var isUrlParams = (u) => hasProperty(u, TypeId6);
|
|
3035
2880
|
var Proto4 = {
|
|
3036
2881
|
...PipeInspectableProto,
|
|
3037
|
-
[
|
|
2882
|
+
[TypeId6]: TypeId6,
|
|
3038
2883
|
[Symbol.iterator]() {
|
|
3039
2884
|
return this.params[Symbol.iterator]();
|
|
3040
2885
|
},
|
|
3041
2886
|
[symbolRedactable](context) {
|
|
3042
2887
|
return {
|
|
3043
2888
|
_id: "UrlParams",
|
|
3044
|
-
params: Object.fromEntries(redact3(this,
|
|
2889
|
+
params: Object.fromEntries(redact3(this, get4(context, CurrentRedactedNames2)))
|
|
3045
2890
|
};
|
|
3046
2891
|
},
|
|
3047
2892
|
toJSON() {
|
|
@@ -3054,7 +2899,7 @@ var Proto4 = {
|
|
|
3054
2899
|
return array(this.params.flat());
|
|
3055
2900
|
}
|
|
3056
2901
|
};
|
|
3057
|
-
var
|
|
2902
|
+
var make23 = (params) => {
|
|
3058
2903
|
const self = Object.create(Proto4);
|
|
3059
2904
|
self.params = params;
|
|
3060
2905
|
return self;
|
|
@@ -3073,7 +2918,7 @@ var fromInput2 = (input) => {
|
|
|
3073
2918
|
out.push(parsed[i]);
|
|
3074
2919
|
}
|
|
3075
2920
|
}
|
|
3076
|
-
return
|
|
2921
|
+
return make23(out);
|
|
3077
2922
|
};
|
|
3078
2923
|
var fromInputNested = (input) => {
|
|
3079
2924
|
const entries = typeof input[Symbol.iterator] === "function" ? fromIterable(input) : Object.entries(input);
|
|
@@ -3097,9 +2942,9 @@ var fromInputNested = (input) => {
|
|
|
3097
2942
|
return out;
|
|
3098
2943
|
};
|
|
3099
2944
|
var coerce = (value) => isRedacted(value) ? value : String(value);
|
|
3100
|
-
var Equivalence3 = /* @__PURE__ */
|
|
2945
|
+
var Equivalence3 = /* @__PURE__ */ make14((a, b) => arrayEquivalence(a.params, b.params));
|
|
3101
2946
|
var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
|
|
3102
|
-
var empty4 = /* @__PURE__ */
|
|
2947
|
+
var empty4 = /* @__PURE__ */ make23([]);
|
|
3103
2948
|
var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
3104
2949
|
const params = fromInput2(input).params.slice();
|
|
3105
2950
|
const keys = new Set;
|
|
@@ -3111,7 +2956,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
|
3111
2956
|
continue;
|
|
3112
2957
|
params.push(self.params[i]);
|
|
3113
2958
|
}
|
|
3114
|
-
return
|
|
2959
|
+
return make23(params);
|
|
3115
2960
|
});
|
|
3116
2961
|
var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
3117
2962
|
const patterns = Array.isArray(key) ? key : [key];
|
|
@@ -3166,13 +3011,13 @@ var decodeQueryKey = (key) => {
|
|
|
3166
3011
|
return key;
|
|
3167
3012
|
}
|
|
3168
3013
|
};
|
|
3169
|
-
var currentRedactedNames = () =>
|
|
3014
|
+
var currentRedactedNames = () => get4(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
|
|
3170
3015
|
var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
|
|
3171
3016
|
defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
|
|
3172
3017
|
});
|
|
3173
3018
|
|
|
3174
3019
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Terminal.js
|
|
3175
|
-
var
|
|
3020
|
+
var TypeId7 = "~effect/Terminal";
|
|
3176
3021
|
var QuitErrorTypeId = "~effect/Terminal/QuitError";
|
|
3177
3022
|
|
|
3178
3023
|
class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
|
|
@@ -3181,14 +3026,14 @@ class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
|
|
|
3181
3026
|
[QuitErrorTypeId] = QuitErrorTypeId;
|
|
3182
3027
|
}
|
|
3183
3028
|
var Terminal = /* @__PURE__ */ Service2("effect/Terminal");
|
|
3184
|
-
var
|
|
3029
|
+
var make24 = (impl) => Terminal.of({
|
|
3185
3030
|
...impl,
|
|
3186
|
-
[
|
|
3031
|
+
[TypeId7]: TypeId7
|
|
3187
3032
|
});
|
|
3188
3033
|
|
|
3189
3034
|
// node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
|
|
3190
3035
|
import * as readline from "readline";
|
|
3191
|
-
var
|
|
3036
|
+
var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
|
|
3192
3037
|
const stdin = process.stdin;
|
|
3193
3038
|
const stdout = process.stdout;
|
|
3194
3039
|
const lines = yield* make9();
|
|
@@ -3202,7 +3047,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3202
3047
|
};
|
|
3203
3048
|
stdin.once("end", onStdinEnd);
|
|
3204
3049
|
yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
|
|
3205
|
-
const rlRef = yield*
|
|
3050
|
+
const rlRef = yield* make10({
|
|
3206
3051
|
acquire: acquireRelease(sync2(() => {
|
|
3207
3052
|
const rl = readline.createInterface({
|
|
3208
3053
|
input: stdin,
|
|
@@ -3241,7 +3086,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3241
3086
|
if (stdin.isTTY)
|
|
3242
3087
|
stdin.setRawMode(enabled);
|
|
3243
3088
|
});
|
|
3244
|
-
const rawModeRef = yield*
|
|
3089
|
+
const rawModeRef = yield* make10({
|
|
3245
3090
|
acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
|
|
3246
3091
|
idleTimeToLive: "10 millis"
|
|
3247
3092
|
});
|
|
@@ -3292,14 +3137,14 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3292
3137
|
if (inputEnded) {
|
|
3293
3138
|
handleEnd();
|
|
3294
3139
|
} else {
|
|
3295
|
-
yield*
|
|
3296
|
-
yield*
|
|
3140
|
+
yield* get3(rlRef);
|
|
3141
|
+
yield* get3(rawModeRef);
|
|
3297
3142
|
stdin.once("end", handleEnd);
|
|
3298
3143
|
}
|
|
3299
3144
|
return queue;
|
|
3300
3145
|
});
|
|
3301
3146
|
const readLine = suspend3(() => poll(lines).pipe(flatMap3(match({
|
|
3302
|
-
onNone: () => scoped(andThen2(
|
|
3147
|
+
onNone: () => scoped(andThen2(get3(rlRef), take(lines))),
|
|
3303
3148
|
onSome: succeed6
|
|
3304
3149
|
})), mapError2(() => new QuitError({}))));
|
|
3305
3150
|
const display = (prompt) => uninterruptible(callback3((resume) => {
|
|
@@ -3310,7 +3155,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3310
3155
|
cause: err
|
|
3311
3156
|
}))));
|
|
3312
3157
|
}));
|
|
3313
|
-
return
|
|
3158
|
+
return make24({
|
|
3314
3159
|
columns,
|
|
3315
3160
|
rows,
|
|
3316
3161
|
size,
|
|
@@ -3319,7 +3164,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3319
3164
|
display
|
|
3320
3165
|
});
|
|
3321
3166
|
});
|
|
3322
|
-
var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */
|
|
3167
|
+
var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make25(defaultShouldQuit));
|
|
3323
3168
|
function defaultShouldQuit(input) {
|
|
3324
3169
|
const key = input.key;
|
|
3325
3170
|
return key.name === "escape" || key.ctrl && (key.name === "c" || key.name === "d");
|
|
@@ -3346,7 +3191,7 @@ function toDate(input) {
|
|
|
3346
3191
|
return toDateUtc2(makeUnsafe(input));
|
|
3347
3192
|
}
|
|
3348
3193
|
function parseDate(input) {
|
|
3349
|
-
return getOrUndefined(map4(
|
|
3194
|
+
return getOrUndefined(map4(make18(input), toDateUtc2));
|
|
3350
3195
|
}
|
|
3351
3196
|
function toIso(input) {
|
|
3352
3197
|
return formatIso(makeUnsafe(input));
|
|
@@ -9434,11 +9279,11 @@ var TranscriptSearchResult = Struct({
|
|
|
9434
9279
|
total: Int
|
|
9435
9280
|
});
|
|
9436
9281
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
|
|
9437
|
-
var
|
|
9282
|
+
var TypeId8 = "~effect/http/HttpBody";
|
|
9438
9283
|
class Proto5 {
|
|
9439
|
-
[
|
|
9284
|
+
[TypeId8];
|
|
9440
9285
|
constructor() {
|
|
9441
|
-
this[
|
|
9286
|
+
this[TypeId8] = TypeId8;
|
|
9442
9287
|
}
|
|
9443
9288
|
[NodeInspectSymbol]() {
|
|
9444
9289
|
return this.toJSON();
|
|
@@ -9517,7 +9362,7 @@ var buffer = globalThis.Buffer;
|
|
|
9517
9362
|
var encodeText = buffer !== undefined ? (body) => buffer.from(body, "utf8") : (body) => encoder.encode(body);
|
|
9518
9363
|
|
|
9519
9364
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientError.js
|
|
9520
|
-
var
|
|
9365
|
+
var TypeId9 = "~effect/http/HttpClientError";
|
|
9521
9366
|
class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
|
|
9522
9367
|
constructor(props) {
|
|
9523
9368
|
if ("cause" in props.reason) {
|
|
@@ -9529,7 +9374,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
|
|
|
9529
9374
|
super(props);
|
|
9530
9375
|
}
|
|
9531
9376
|
}
|
|
9532
|
-
[
|
|
9377
|
+
[TypeId9] = TypeId9;
|
|
9533
9378
|
get request() {
|
|
9534
9379
|
return this.reason.request;
|
|
9535
9380
|
}
|
|
@@ -9633,7 +9478,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError("EmptyBodyError")) {
|
|
|
9633
9478
|
}
|
|
9634
9479
|
}
|
|
9635
9480
|
|
|
9636
|
-
class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(
|
|
9481
|
+
class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId9)({
|
|
9637
9482
|
_tag: /* @__PURE__ */ tag("HttpError"),
|
|
9638
9483
|
kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
|
|
9639
9484
|
cause: /* @__PURE__ */ optional(/* @__PURE__ */ Defect())
|
|
@@ -9666,7 +9511,7 @@ var updateContentLength = (headers, body) => {
|
|
|
9666
9511
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Url.js
|
|
9667
9512
|
class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
|
|
9668
9513
|
}
|
|
9669
|
-
var
|
|
9514
|
+
var make26 = (url, params, hash) => try_({
|
|
9670
9515
|
try: () => {
|
|
9671
9516
|
const urlInstance = new URL(url, baseUrl());
|
|
9672
9517
|
for (let i = 0;i < params.params.length; i++) {
|
|
@@ -9697,10 +9542,10 @@ var baseUrl = () => {
|
|
|
9697
9542
|
};
|
|
9698
9543
|
|
|
9699
9544
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientRequest.js
|
|
9700
|
-
var
|
|
9701
|
-
var isHttpClientRequest = (u) => hasProperty(u,
|
|
9545
|
+
var TypeId10 = "~effect/http/HttpClientRequest";
|
|
9546
|
+
var isHttpClientRequest = (u) => hasProperty(u, TypeId10);
|
|
9702
9547
|
var Proto6 = {
|
|
9703
|
-
[
|
|
9548
|
+
[TypeId10]: TypeId10,
|
|
9704
9549
|
...BaseProto,
|
|
9705
9550
|
toJSON() {
|
|
9706
9551
|
return {
|
|
@@ -9786,7 +9631,7 @@ var setBody = /* @__PURE__ */ dual(2, (self, body) => {
|
|
|
9786
9631
|
});
|
|
9787
9632
|
var bodyUint8Array = /* @__PURE__ */ dual((args) => isHttpClientRequest(args[0]), (self, body, contentType) => setBody(self, uint8Array(body, contentType)));
|
|
9788
9633
|
function toUrl(self) {
|
|
9789
|
-
const r =
|
|
9634
|
+
const r = make26(self.url, self.urlParams, getOrUndefined(self.hash));
|
|
9790
9635
|
if (isSuccess(r)) {
|
|
9791
9636
|
return some(r.success);
|
|
9792
9637
|
}
|
|
@@ -9794,7 +9639,7 @@ function toUrl(self) {
|
|
|
9794
9639
|
}
|
|
9795
9640
|
|
|
9796
9641
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpIncomingMessage.js
|
|
9797
|
-
var
|
|
9642
|
+
var TypeId11 = "~effect/http/HttpIncomingMessage";
|
|
9798
9643
|
var schemaBodyJson = (schema, options) => {
|
|
9799
9644
|
const decode = decodeEffect(toCodecJson(schema));
|
|
9800
9645
|
const decodeJson = options?.reviver === undefined ? undefined : decodeEffect(fromJsonString(toCodecJson(schema), options));
|
|
@@ -9813,7 +9658,7 @@ var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
|
|
|
9813
9658
|
var getWebSource = (self) => self[WebSourceSymbol]?.();
|
|
9814
9659
|
|
|
9815
9660
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientResponse.js
|
|
9816
|
-
var
|
|
9661
|
+
var TypeId12 = "~effect/http/HttpClientResponse";
|
|
9817
9662
|
var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
|
|
9818
9663
|
var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail7(new HttpClientError({
|
|
9819
9664
|
reason: new StatusCodeError({
|
|
@@ -9824,16 +9669,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
|
|
|
9824
9669
|
}));
|
|
9825
9670
|
|
|
9826
9671
|
class WebHttpClientResponse extends Class {
|
|
9672
|
+
[TypeId11];
|
|
9827
9673
|
[TypeId12];
|
|
9828
|
-
[TypeId13];
|
|
9829
9674
|
request;
|
|
9830
9675
|
source;
|
|
9831
9676
|
constructor(request, source) {
|
|
9832
9677
|
super();
|
|
9833
9678
|
this.request = request;
|
|
9834
9679
|
this.source = source;
|
|
9680
|
+
this[TypeId11] = TypeId11;
|
|
9835
9681
|
this[TypeId12] = TypeId12;
|
|
9836
|
-
this[TypeId13] = TypeId13;
|
|
9837
9682
|
}
|
|
9838
9683
|
toJSON() {
|
|
9839
9684
|
return inspect(this, {
|
|
@@ -10005,7 +9850,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
|
|
|
10005
9850
|
};
|
|
10006
9851
|
|
|
10007
9852
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClient.js
|
|
10008
|
-
var
|
|
9853
|
+
var TypeId13 = "~effect/http/HttpClient";
|
|
10009
9854
|
var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
|
|
10010
9855
|
var accessor = (method) => (...args) => flatMap3(HttpClient, (client) => client[method](...args));
|
|
10011
9856
|
var execute = /* @__PURE__ */ accessor("execute");
|
|
@@ -10022,7 +9867,7 @@ var makeWith2 = (postprocess, preprocess) => {
|
|
|
10022
9867
|
return self;
|
|
10023
9868
|
};
|
|
10024
9869
|
var Proto7 = {
|
|
10025
|
-
[
|
|
9870
|
+
[TypeId13]: TypeId13,
|
|
10026
9871
|
pipe() {
|
|
10027
9872
|
return pipeArguments(this, arguments);
|
|
10028
9873
|
},
|
|
@@ -10036,10 +9881,10 @@ var Proto7 = {
|
|
|
10036
9881
|
return this.execute(make5(fullMethod)(url, options));
|
|
10037
9882
|
}]))
|
|
10038
9883
|
};
|
|
10039
|
-
var
|
|
9884
|
+
var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
|
|
10040
9885
|
const scopedController = scopedRequests.get(request);
|
|
10041
9886
|
const controller = scopedController ?? new AbortController;
|
|
10042
|
-
const urlResult =
|
|
9887
|
+
const urlResult = make26(request.url, request.urlParams, getOrUndefined(request.hash));
|
|
10043
9888
|
if (isFailure(urlResult)) {
|
|
10044
9889
|
return fail7(new HttpClientError({
|
|
10045
9890
|
reason: new InvalidUrlError({
|
|
@@ -10173,8 +10018,8 @@ class InterruptibleResponse {
|
|
|
10173
10018
|
this.original = original;
|
|
10174
10019
|
this.controller = controller;
|
|
10175
10020
|
}
|
|
10176
|
-
[TypeId13] = TypeId13;
|
|
10177
10021
|
[TypeId12] = TypeId12;
|
|
10022
|
+
[TypeId11] = TypeId11;
|
|
10178
10023
|
applyInterrupt(effect) {
|
|
10179
10024
|
return suspend3(() => {
|
|
10180
10025
|
responseRegistry.unregister(this.original);
|
|
@@ -10272,7 +10117,7 @@ var detectStreamBodySupport = () => {
|
|
|
10272
10117
|
return false;
|
|
10273
10118
|
}
|
|
10274
10119
|
};
|
|
10275
|
-
var fetch2 = /* @__PURE__ */
|
|
10120
|
+
var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
|
|
10276
10121
|
if (request.headers.upgrade !== undefined) {
|
|
10277
10122
|
return fail7(new HttpClientError({
|
|
10278
10123
|
reason: new TransportError({
|
|
@@ -10363,10 +10208,10 @@ var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
|
|
|
10363
10208
|
});
|
|
10364
10209
|
var layer4 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch2));
|
|
10365
10210
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/socket/Socket.js
|
|
10366
|
-
var
|
|
10211
|
+
var TypeId14 = "~effect/socket/Socket";
|
|
10367
10212
|
var Socket = /* @__PURE__ */ Service2("effect/socket/Socket");
|
|
10368
|
-
var
|
|
10369
|
-
[
|
|
10213
|
+
var make28 = (options) => Socket.of({
|
|
10214
|
+
[TypeId14]: TypeId14,
|
|
10370
10215
|
reader: options.reader,
|
|
10371
10216
|
writer: options.writer
|
|
10372
10217
|
});
|
|
@@ -10689,7 +10534,7 @@ var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
|
|
|
10689
10534
|
write,
|
|
10690
10535
|
writeAll
|
|
10691
10536
|
});
|
|
10692
|
-
return succeed6(
|
|
10537
|
+
return succeed6(make28({
|
|
10693
10538
|
reader,
|
|
10694
10539
|
writer
|
|
10695
10540
|
}));
|
|
@@ -13526,7 +13371,7 @@ function getStreamSchemas(schema) {
|
|
|
13526
13371
|
}
|
|
13527
13372
|
var schema = /* @__PURE__ */ declare(isStream);
|
|
13528
13373
|
function Stream(success, error) {
|
|
13529
|
-
return
|
|
13374
|
+
return make17(schema.ast, {
|
|
13530
13375
|
[StreamSchemaTypeId]: StreamSchemaTypeId,
|
|
13531
13376
|
success,
|
|
13532
13377
|
error
|
|
@@ -13534,9 +13379,9 @@ function Stream(success, error) {
|
|
|
13534
13379
|
}
|
|
13535
13380
|
|
|
13536
13381
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
|
|
13537
|
-
var
|
|
13382
|
+
var TypeId15 = "~effect/rpc/Rpc";
|
|
13538
13383
|
var Proto8 = {
|
|
13539
|
-
[
|
|
13384
|
+
[TypeId15]: TypeId15,
|
|
13540
13385
|
pipe() {
|
|
13541
13386
|
return pipeArguments(this, arguments);
|
|
13542
13387
|
},
|
|
@@ -13703,7 +13548,7 @@ class WorkerUnknownError extends (/* @__PURE__ */ Error3("effect/workers/WorkerE
|
|
|
13703
13548
|
var WorkerErrorReason = /* @__PURE__ */ Union([WorkerSpawnError, WorkerSendError, WorkerReceiveError, WorkerUnknownError]);
|
|
13704
13549
|
|
|
13705
13550
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcClientError.js
|
|
13706
|
-
var
|
|
13551
|
+
var TypeId16 = "~effect/rpc/RpcClientError";
|
|
13707
13552
|
|
|
13708
13553
|
class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError/RpcClientDefect")({
|
|
13709
13554
|
_tag: /* @__PURE__ */ tag("RpcClientDefect"),
|
|
@@ -13712,11 +13557,11 @@ class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError
|
|
|
13712
13557
|
})) {
|
|
13713
13558
|
}
|
|
13714
13559
|
|
|
13715
|
-
class RpcClientError extends (/* @__PURE__ */ Error3(
|
|
13560
|
+
class RpcClientError extends (/* @__PURE__ */ Error3(TypeId16)({
|
|
13716
13561
|
_tag: /* @__PURE__ */ tag("RpcClientError"),
|
|
13717
13562
|
reason: /* @__PURE__ */ Union([WorkerErrorReason, SocketErrorReason, HttpClientErrorSchema, RpcClientDefect])
|
|
13718
13563
|
})) {
|
|
13719
|
-
[
|
|
13564
|
+
[TypeId16] = TypeId16;
|
|
13720
13565
|
get message() {
|
|
13721
13566
|
return `${this.reason._tag}: ${this.reason.message}`;
|
|
13722
13567
|
}
|
|
@@ -13836,7 +13681,7 @@ var RpcGroupProto = {
|
|
|
13836
13681
|
});
|
|
13837
13682
|
},
|
|
13838
13683
|
annotateRpcs(service, value) {
|
|
13839
|
-
return this.annotateRpcsMerge(
|
|
13684
|
+
return this.annotateRpcsMerge(make15(service, value));
|
|
13840
13685
|
},
|
|
13841
13686
|
annotateMerge(context) {
|
|
13842
13687
|
return makeProto2({
|
|
@@ -13864,7 +13709,7 @@ var make7 = (...rpcs) => makeProto2({
|
|
|
13864
13709
|
annotations: empty3()
|
|
13865
13710
|
});
|
|
13866
13711
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
|
|
13867
|
-
var
|
|
13712
|
+
var TypeId17 = "~effect/rpc/RpcMiddleware";
|
|
13868
13713
|
var Service = () => (id, options) => {
|
|
13869
13714
|
const limit = getStackTraceLimit();
|
|
13870
13715
|
let creationError;
|
|
@@ -13882,7 +13727,7 @@ var Service = () => (id, options) => {
|
|
|
13882
13727
|
return creationError?.stack;
|
|
13883
13728
|
}
|
|
13884
13729
|
});
|
|
13885
|
-
ServiceClass_[
|
|
13730
|
+
ServiceClass_[TypeId17] = TypeId17;
|
|
13886
13731
|
ServiceClass_.error = options?.error ?? Never;
|
|
13887
13732
|
ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
|
|
13888
13733
|
return ServiceClass;
|
|
@@ -14473,7 +14318,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
|
|
|
14473
14318
|
var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
|
|
14474
14319
|
|
|
14475
14320
|
// apps/cli/src/oauth.ts
|
|
14476
|
-
var
|
|
14321
|
+
var Scope = "openid profile email offline_access kitman:cli";
|
|
14477
14322
|
var CallbackPath = "/auth/callback";
|
|
14478
14323
|
|
|
14479
14324
|
class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
|
|
@@ -14492,7 +14337,7 @@ function buildAuthorizeUrl(input) {
|
|
|
14492
14337
|
url.searchParams.set("response_type", "code");
|
|
14493
14338
|
url.searchParams.set("client_id", input.clientId);
|
|
14494
14339
|
url.searchParams.set("redirect_uri", input.redirectUri);
|
|
14495
|
-
url.searchParams.set("scope",
|
|
14340
|
+
url.searchParams.set("scope", Scope);
|
|
14496
14341
|
url.searchParams.set("code_challenge", input.codeChallenge);
|
|
14497
14342
|
url.searchParams.set("code_challenge_method", "S256");
|
|
14498
14343
|
url.searchParams.set("state", input.state);
|
|
@@ -14552,7 +14397,7 @@ function toStoredSession(token, existingRefreshToken) {
|
|
|
14552
14397
|
}
|
|
14553
14398
|
function startLoopbackServer(input) {
|
|
14554
14399
|
return gen(function* () {
|
|
14555
|
-
const code = yield*
|
|
14400
|
+
const code = yield* make16();
|
|
14556
14401
|
const context2 = yield* context();
|
|
14557
14402
|
const runSyncExit = runSyncExitWith(context2);
|
|
14558
14403
|
const server = yield* acquireRelease(sync2(() => Bun.serve({
|
|
@@ -15092,7 +14937,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
15092
14937
|
let lastId = 0;
|
|
15093
14938
|
let lost = false;
|
|
15094
14939
|
const notifications = yield* unbounded2();
|
|
15095
|
-
const ended = yield*
|
|
14940
|
+
const ended = yield* make16();
|
|
15096
14941
|
const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
|
|
15097
14942
|
onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
|
|
15098
14943
|
onNone: () => void_3,
|
|
@@ -15119,7 +14964,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
15119
14964
|
if (lost)
|
|
15120
14965
|
return yield* new HerdrCoreConnectionLost2({ method });
|
|
15121
14966
|
const id = ++lastId;
|
|
15122
|
-
const deferred = yield*
|
|
14967
|
+
const deferred = yield* make16();
|
|
15123
14968
|
pending.set(id, { method, deferred });
|
|
15124
14969
|
yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
|
|
15125
14970
|
return yield* _await(deferred);
|
|
@@ -15193,7 +15038,7 @@ var herdrCoreOver = (transport) => ({
|
|
|
15193
15038
|
return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
|
|
15194
15039
|
};
|
|
15195
15040
|
const snapshot = { type: "snapshot", terminals: subscribed.terminals };
|
|
15196
|
-
return concat(
|
|
15041
|
+
return concat(make11(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
|
|
15197
15042
|
}))
|
|
15198
15043
|
});
|
|
15199
15044
|
var spawnedTransport = (env) => gen(function* () {
|
|
@@ -15284,7 +15129,7 @@ var runProcess2 = (argv, options) => gen(function* () {
|
|
|
15284
15129
|
const spawner = yield* ChildProcessSpawner;
|
|
15285
15130
|
const [command, ...args] = argv;
|
|
15286
15131
|
const handle = yield* spawner.spawn(make3(command, args, {
|
|
15287
|
-
stdin: options.stdin === undefined ? "ignore" :
|
|
15132
|
+
stdin: options.stdin === undefined ? "ignore" : make11(new TextEncoder().encode(options.stdin)),
|
|
15288
15133
|
...options.cwd === undefined ? undefined : { cwd: options.cwd },
|
|
15289
15134
|
env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
|
|
15290
15135
|
}));
|