@kitman-sh/cli 0.38.0 → 0.41.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-x3t9f61a.js → chunk-0jphb7hd.js} +4 -4
- package/dist/{chunk-hc2yvtze.js → chunk-32fc44tx.js} +10 -10
- package/dist/{chunk-g7za9rja.js → chunk-5rvn8bah.js} +152 -147
- package/dist/{chunk-x127f2bb.js → chunk-amnctk9f.js} +6 -6
- package/dist/{chunk-bqbfyqx6.js → chunk-b4td2pgc.js} +61 -61
- package/dist/{chunk-71m1n92b.js → chunk-c8rck2r5.js} +4 -4
- package/dist/{chunk-6x08g7m6.js → chunk-cs66re9p.js} +10 -10
- package/dist/{chunk-wy6gmtd9.js → chunk-dhe1fwhw.js} +2 -2
- package/dist/{chunk-ns26fbmk.js → chunk-drw8m50d.js} +2 -2
- package/dist/{chunk-bhfytevh.js → chunk-f7qdzedh.js} +278 -121
- package/dist/{chunk-d4vhrja4.js → chunk-hfy8nmat.js} +3 -3
- package/dist/{chunk-pkpzf7cp.js → chunk-j4s7r8hg.js} +18 -18
- package/dist/{chunk-a2x5s9kp.js → chunk-p9ykk8h7.js} +3 -3
- package/dist/{chunk-hgvft7vy.js → chunk-pz7s0apf.js} +4 -4
- package/dist/{chunk-ea29sbaq.js → chunk-qndcafax.js} +1 -1
- package/dist/{chunk-cxr41x50.js → chunk-rt2sh0jh.js} +65 -65
- package/dist/{chunk-etrfc5cn.js → chunk-sasjamqz.js} +29 -178
- package/dist/{chunk-cnryphhh.js → chunk-svq8b6fq.js} +5 -5
- package/dist/{chunk-98azvx6g.js → chunk-tpmyf5mk.js} +1 -1
- package/dist/{chunk-an3rg14h.js → chunk-v2pk0b62.js} +3 -3
- package/dist/{chunk-wzphgw0t.js → chunk-vd9wjvwt.js} +7 -7
- package/dist/{chunk-8b02x7vv.js → chunk-wre79w3z.js} +1 -1
- package/dist/{chunk-nedj1g2c.js → chunk-xat27r93.js} +101 -27
- package/dist/{chunk-kpx9mb4f.js → chunk-yv80rgfx.js} +1 -1
- package/dist/{chunk-fyg6wzms.js → chunk-yxj4dmef.js} +13 -13
- package/dist/{chunk-rv36r6r0.js → chunk-zvp4wm6b.js} +6 -6
- 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,
|
|
@@ -87,9 +89,11 @@ import {
|
|
|
87
89
|
ConsoleRef,
|
|
88
90
|
succeed3,
|
|
89
91
|
fail4,
|
|
92
|
+
void_2,
|
|
90
93
|
isSuccess2,
|
|
94
|
+
isFailure2,
|
|
91
95
|
makeUnsafe5,
|
|
92
|
-
|
|
96
|
+
make15,
|
|
93
97
|
_await,
|
|
94
98
|
fail5,
|
|
95
99
|
isDone,
|
|
@@ -97,8 +101,12 @@ import {
|
|
|
97
101
|
succeed4,
|
|
98
102
|
doneUnsafe,
|
|
99
103
|
TracerTimingEnabled,
|
|
104
|
+
Scope,
|
|
105
|
+
makeUnsafe6,
|
|
100
106
|
provide,
|
|
107
|
+
addFinalizerExit,
|
|
101
108
|
addFinalizer,
|
|
109
|
+
close,
|
|
102
110
|
succeed5,
|
|
103
111
|
effect,
|
|
104
112
|
effectContext,
|
|
@@ -150,6 +158,7 @@ import {
|
|
|
150
158
|
tapCause,
|
|
151
159
|
retry,
|
|
152
160
|
ignore,
|
|
161
|
+
ignoreCause,
|
|
153
162
|
orElseSucceed,
|
|
154
163
|
timeout,
|
|
155
164
|
timeoutOrElse,
|
|
@@ -161,6 +170,7 @@ import {
|
|
|
161
170
|
context,
|
|
162
171
|
contextWith,
|
|
163
172
|
provide3,
|
|
173
|
+
provideContext2,
|
|
164
174
|
serviceOption,
|
|
165
175
|
updateContext,
|
|
166
176
|
provideService,
|
|
@@ -171,6 +181,7 @@ import {
|
|
|
171
181
|
addFinalizer2,
|
|
172
182
|
ensuring2,
|
|
173
183
|
onError,
|
|
184
|
+
onExit,
|
|
174
185
|
cached,
|
|
175
186
|
interrupt3,
|
|
176
187
|
interruptible,
|
|
@@ -182,6 +193,7 @@ import {
|
|
|
182
193
|
withParentSpan,
|
|
183
194
|
forkScoped,
|
|
184
195
|
runFork,
|
|
196
|
+
runForkWith,
|
|
185
197
|
runPromise,
|
|
186
198
|
runPromiseWith,
|
|
187
199
|
runSync,
|
|
@@ -201,7 +213,7 @@ import {
|
|
|
201
213
|
decodeEffect,
|
|
202
214
|
decodeUnknownOption,
|
|
203
215
|
decodeOption,
|
|
204
|
-
|
|
216
|
+
make16,
|
|
205
217
|
isSchema,
|
|
206
218
|
optionalKey,
|
|
207
219
|
optional,
|
|
@@ -262,13 +274,30 @@ import {
|
|
|
262
274
|
decodeJsonStringOption,
|
|
263
275
|
encodeJsonStringSync,
|
|
264
276
|
encodePrettyJsonString
|
|
265
|
-
} from "./chunk-
|
|
277
|
+
} from "./chunk-b4td2pgc.js";
|
|
278
|
+
import {
|
|
279
|
+
isDateTime,
|
|
280
|
+
Numeric,
|
|
281
|
+
isWholeNumber,
|
|
282
|
+
guard,
|
|
283
|
+
Id,
|
|
284
|
+
Timestamp,
|
|
285
|
+
ActorType,
|
|
286
|
+
SecretName,
|
|
287
|
+
SecretScope,
|
|
288
|
+
SecretHosts,
|
|
289
|
+
isSecretReference
|
|
290
|
+
} from "./chunk-qndcafax.js";
|
|
266
291
|
import {
|
|
267
292
|
map,
|
|
268
293
|
makeEquivalence,
|
|
269
294
|
Clock,
|
|
270
295
|
currentTimeMillis,
|
|
271
296
|
bytes,
|
|
297
|
+
join,
|
|
298
|
+
interrupt,
|
|
299
|
+
getCurrent,
|
|
300
|
+
runIn,
|
|
272
301
|
BadArgument,
|
|
273
302
|
systemError,
|
|
274
303
|
badArgument,
|
|
@@ -290,13 +319,11 @@ import {
|
|
|
290
319
|
isSink,
|
|
291
320
|
fromChannel,
|
|
292
321
|
drain,
|
|
293
|
-
make10,
|
|
294
|
-
get3,
|
|
295
322
|
isStream,
|
|
296
323
|
fromChannel2,
|
|
297
324
|
callback,
|
|
298
325
|
empty2,
|
|
299
|
-
|
|
326
|
+
make10,
|
|
300
327
|
suspend,
|
|
301
328
|
fail2,
|
|
302
329
|
fromQueue,
|
|
@@ -322,17 +349,17 @@ import {
|
|
|
322
349
|
mkArrayBuffer,
|
|
323
350
|
toReadableStreamEffect,
|
|
324
351
|
FileSystem,
|
|
325
|
-
|
|
352
|
+
make11,
|
|
326
353
|
FileTypeId,
|
|
327
354
|
WatchBackend,
|
|
328
355
|
Path,
|
|
329
|
-
|
|
356
|
+
make12,
|
|
330
357
|
option,
|
|
331
358
|
String2,
|
|
332
359
|
optionalEnv,
|
|
333
360
|
harnessesUnsupportedInSrt2,
|
|
334
361
|
harnessesUnsupportedInDocker2
|
|
335
|
-
} from "./chunk-
|
|
362
|
+
} from "./chunk-sasjamqz.js";
|
|
336
363
|
import {
|
|
337
364
|
isRedacted,
|
|
338
365
|
make,
|
|
@@ -346,20 +373,7 @@ import {
|
|
|
346
373
|
make3,
|
|
347
374
|
parseFdName,
|
|
348
375
|
fdName
|
|
349
|
-
} from "./chunk-
|
|
350
|
-
import {
|
|
351
|
-
isDateTime,
|
|
352
|
-
Numeric,
|
|
353
|
-
isWholeNumber,
|
|
354
|
-
guard,
|
|
355
|
-
Id,
|
|
356
|
-
Timestamp,
|
|
357
|
-
ActorType,
|
|
358
|
-
SecretName,
|
|
359
|
-
SecretScope,
|
|
360
|
-
SecretHosts,
|
|
361
|
-
isSecretReference
|
|
362
|
-
} from "./chunk-ea29sbaq.js";
|
|
376
|
+
} from "./chunk-cs66re9p.js";
|
|
363
377
|
|
|
364
378
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
|
|
365
379
|
var makeEquivalence3 = Tuple;
|
|
@@ -498,7 +512,7 @@ var fromDateUnsafe = (date) => {
|
|
|
498
512
|
}
|
|
499
513
|
return makeUtc(epochMillis);
|
|
500
514
|
};
|
|
501
|
-
var
|
|
515
|
+
var makeUnsafe7 = (input) => {
|
|
502
516
|
if (isDateTime2(input)) {
|
|
503
517
|
return input;
|
|
504
518
|
} else if (input instanceof Date) {
|
|
@@ -518,7 +532,7 @@ var makeUnsafe6 = (input) => {
|
|
|
518
532
|
var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
|
|
519
533
|
var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
|
|
520
534
|
var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
|
|
521
|
-
var make4 = /* @__PURE__ */ liftThrowable(
|
|
535
|
+
var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe7);
|
|
522
536
|
var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
|
|
523
537
|
var nowUnsafe = () => makeUtc(Date.now());
|
|
524
538
|
var toDateUtc = (self) => new Date(self.epochMilliseconds);
|
|
@@ -625,7 +639,7 @@ class Metric$ {
|
|
|
625
639
|
}
|
|
626
640
|
hook(context) {
|
|
627
641
|
const key = this.key(context);
|
|
628
|
-
const registry =
|
|
642
|
+
const registry = get3(context, MetricRegistry);
|
|
629
643
|
let metadata = registry.get(key);
|
|
630
644
|
if (isUndefined(metadata)) {
|
|
631
645
|
metadata = this.metadata(this.createHooks());
|
|
@@ -634,11 +648,11 @@ class Metric$ {
|
|
|
634
648
|
return metadata.hooks;
|
|
635
649
|
}
|
|
636
650
|
removeUnsafe(context) {
|
|
637
|
-
|
|
651
|
+
get3(context, MetricRegistry).delete(this.key(context));
|
|
638
652
|
}
|
|
639
653
|
registerUnsafe(context, hooks) {
|
|
640
654
|
const key = this.key(context);
|
|
641
|
-
const registry =
|
|
655
|
+
const registry = get3(context, MetricRegistry);
|
|
642
656
|
const metadata = this.metadata({
|
|
643
657
|
get: hooks.get,
|
|
644
658
|
update: constVoid,
|
|
@@ -654,7 +668,7 @@ class Metric$ {
|
|
|
654
668
|
};
|
|
655
669
|
}
|
|
656
670
|
key(context) {
|
|
657
|
-
const extraAttributes =
|
|
671
|
+
const extraAttributes = get3(context, CurrentMetricAttributes);
|
|
658
672
|
if (extraAttributes !== this.#extraAttributes) {
|
|
659
673
|
this.#extraAttributes = extraAttributes;
|
|
660
674
|
const merged = mergeAttributes(this.attributes, extraAttributes);
|
|
@@ -906,9 +920,151 @@ var toNumber = (b) => {
|
|
|
906
920
|
return some(Number(b));
|
|
907
921
|
};
|
|
908
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
|
+
|
|
909
1065
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
|
|
910
|
-
var makeUnsafe =
|
|
911
|
-
var
|
|
1066
|
+
var makeUnsafe = makeUnsafe7;
|
|
1067
|
+
var make19 = make4;
|
|
912
1068
|
var now2 = now;
|
|
913
1069
|
var nowUnsafe2 = nowUnsafe;
|
|
914
1070
|
var toDateUtc2 = toDateUtc;
|
|
@@ -1227,7 +1383,7 @@ var taskkill = (childProcess, onExit = () => {}) => {
|
|
|
1227
1383
|
windowsHide: true
|
|
1228
1384
|
}, onExit);
|
|
1229
1385
|
};
|
|
1230
|
-
var
|
|
1386
|
+
var make20 = /* @__PURE__ */ gen(function* () {
|
|
1231
1387
|
const fs = yield* FileSystem;
|
|
1232
1388
|
const path = yield* Path;
|
|
1233
1389
|
const resolveWorkingDirectory = fnUntraced(function* (options) {
|
|
@@ -1756,7 +1912,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1756
1912
|
});
|
|
1757
1913
|
return make2(spawnCommand);
|
|
1758
1914
|
});
|
|
1759
|
-
var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner,
|
|
1915
|
+
var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make20);
|
|
1760
1916
|
var flattenCommand = (command) => {
|
|
1761
1917
|
const commands = [];
|
|
1762
1918
|
const pipeOptions = [];
|
|
@@ -2240,7 +2396,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
|
|
|
2240
2396
|
resume(fail7(handleBadArgument("writeFile")(err)));
|
|
2241
2397
|
}
|
|
2242
2398
|
});
|
|
2243
|
-
var makeFileSystem = /* @__PURE__ */ map9(/* @__PURE__ */ serviceOption(WatchBackend), (backend) =>
|
|
2399
|
+
var makeFileSystem = /* @__PURE__ */ map9(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make11({
|
|
2244
2400
|
access: access2,
|
|
2245
2401
|
chmod: chmod2,
|
|
2246
2402
|
chown: chown2,
|
|
@@ -2300,15 +2456,15 @@ var fileUrlOps = (windows) => ({
|
|
|
2300
2456
|
})
|
|
2301
2457
|
})
|
|
2302
2458
|
});
|
|
2303
|
-
var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2459
|
+
var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
|
|
2304
2460
|
...NodePath.posix,
|
|
2305
2461
|
.../* @__PURE__ */ fileUrlOps(false)
|
|
2306
2462
|
}));
|
|
2307
|
-
var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2463
|
+
var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
|
|
2308
2464
|
...NodePath.win32,
|
|
2309
2465
|
.../* @__PURE__ */ fileUrlOps(true)
|
|
2310
2466
|
}));
|
|
2311
|
-
var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2467
|
+
var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
|
|
2312
2468
|
...NodePath,
|
|
2313
2469
|
.../* @__PURE__ */ fileUrlOps(undefined)
|
|
2314
2470
|
}));
|
|
@@ -2317,10 +2473,10 @@ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
|
|
|
2317
2473
|
var layer2 = layer7;
|
|
2318
2474
|
|
|
2319
2475
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stdio.js
|
|
2320
|
-
var
|
|
2321
|
-
var Stdio = /* @__PURE__ */ Service2(
|
|
2322
|
-
var
|
|
2323
|
-
[
|
|
2476
|
+
var TypeId4 = "~effect/Stdio";
|
|
2477
|
+
var Stdio = /* @__PURE__ */ Service2(TypeId4);
|
|
2478
|
+
var make21 = (options) => ({
|
|
2479
|
+
[TypeId4]: TypeId4,
|
|
2324
2480
|
stdinIsTerminal: succeed6(false),
|
|
2325
2481
|
stdoutIsTerminal: succeed6(false),
|
|
2326
2482
|
stderrIsTerminal: succeed6(false),
|
|
@@ -2328,7 +2484,7 @@ var make20 = (options) => ({
|
|
|
2328
2484
|
});
|
|
2329
2485
|
|
|
2330
2486
|
// node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
|
|
2331
|
-
var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */
|
|
2487
|
+
var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make21({
|
|
2332
2488
|
args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
|
|
2333
2489
|
stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
|
|
2334
2490
|
stdoutIsTerminal: /* @__PURE__ */ sync2(() => process.stdout.isTTY === true),
|
|
@@ -2528,7 +2684,7 @@ var makeUuid = (bytes, randomBytes, format) => {
|
|
|
2528
2684
|
const uuid = bytes(randomBytes(16));
|
|
2529
2685
|
return format === "bytes" ? uuid : stringify(uuid);
|
|
2530
2686
|
};
|
|
2531
|
-
var
|
|
2687
|
+
var make22 = (randomBytes) => {
|
|
2532
2688
|
const randomBytesChecked = (size) => {
|
|
2533
2689
|
checkSize(size);
|
|
2534
2690
|
return randomBytes(size);
|
|
@@ -2562,7 +2718,7 @@ var fillRandom = (crypto2, size) => {
|
|
|
2562
2718
|
}
|
|
2563
2719
|
return bytes;
|
|
2564
2720
|
};
|
|
2565
|
-
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)))));
|
|
2566
2722
|
var randomBytesUnsafe = (size) => {
|
|
2567
2723
|
checkSize(size);
|
|
2568
2724
|
return fillRandom(globalThis.crypto, size);
|
|
@@ -2570,10 +2726,10 @@ var randomBytesUnsafe = (size) => {
|
|
|
2570
2726
|
var uuidV4Unsafe = (options) => makeUuid(v4Bytes, randomBytesUnsafe, options?.format);
|
|
2571
2727
|
|
|
2572
2728
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
|
|
2573
|
-
var
|
|
2729
|
+
var TypeId5 = "~effect/http/Cookies";
|
|
2574
2730
|
var CookieTypeId = "~effect/http/Cookies/Cookie";
|
|
2575
2731
|
var Proto2 = {
|
|
2576
|
-
[
|
|
2732
|
+
[TypeId5]: TypeId5,
|
|
2577
2733
|
...BaseProto,
|
|
2578
2734
|
toJSON() {
|
|
2579
2735
|
return {
|
|
@@ -2752,14 +2908,14 @@ var tryDecodeURIComponent = (str) => {
|
|
|
2752
2908
|
};
|
|
2753
2909
|
|
|
2754
2910
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Headers.js
|
|
2755
|
-
var
|
|
2911
|
+
var TypeId6 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
|
|
2756
2912
|
var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
|
|
2757
|
-
[
|
|
2758
|
-
value:
|
|
2913
|
+
[TypeId6]: {
|
|
2914
|
+
value: TypeId6
|
|
2759
2915
|
},
|
|
2760
2916
|
[symbolRedactable]: {
|
|
2761
2917
|
value(context) {
|
|
2762
|
-
return redact2(this,
|
|
2918
|
+
return redact2(this, get3(context, CurrentRedactedNames));
|
|
2763
2919
|
}
|
|
2764
2920
|
},
|
|
2765
2921
|
toJSON: {
|
|
@@ -2784,7 +2940,7 @@ var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
|
|
|
2784
2940
|
value: BaseProto[NodeInspectSymbol]
|
|
2785
2941
|
}
|
|
2786
2942
|
});
|
|
2787
|
-
var
|
|
2943
|
+
var make23 = (input) => Object.assign(Object.create(Proto3), input);
|
|
2788
2944
|
var Equivalence2 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
|
|
2789
2945
|
var empty = /* @__PURE__ */ Object.create(Proto3);
|
|
2790
2946
|
var fromInput = (input) => {
|
|
@@ -2809,21 +2965,21 @@ var fromInput = (input) => {
|
|
|
2809
2965
|
};
|
|
2810
2966
|
var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto3);
|
|
2811
2967
|
var set = /* @__PURE__ */ dual(3, (self, key, value) => {
|
|
2812
|
-
const out =
|
|
2968
|
+
const out = make23(self);
|
|
2813
2969
|
out[key.toLowerCase()] = value;
|
|
2814
2970
|
return out;
|
|
2815
2971
|
});
|
|
2816
|
-
var setAll = /* @__PURE__ */ dual(2, (self, headers) =>
|
|
2972
|
+
var setAll = /* @__PURE__ */ dual(2, (self, headers) => make23({
|
|
2817
2973
|
...self,
|
|
2818
2974
|
...fromInput(headers)
|
|
2819
2975
|
}));
|
|
2820
2976
|
var merge = /* @__PURE__ */ dual(2, (self, headers) => {
|
|
2821
|
-
const out =
|
|
2977
|
+
const out = make23(self);
|
|
2822
2978
|
Object.assign(out, headers);
|
|
2823
2979
|
return out;
|
|
2824
2980
|
});
|
|
2825
2981
|
var remove2 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
2826
|
-
const out =
|
|
2982
|
+
const out = make23(self);
|
|
2827
2983
|
delete out[key.toLowerCase()];
|
|
2828
2984
|
return out;
|
|
2829
2985
|
});
|
|
@@ -2880,18 +3036,18 @@ var bodyDecoder = /* @__PURE__ */ new TextDecoder("utf-8", {
|
|
|
2880
3036
|
var fromBody = (bytes) => new URLSearchParams(bodyDecoder.decode(bytes).replace(/^\?/, "%3F"));
|
|
2881
3037
|
|
|
2882
3038
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/UrlParams.js
|
|
2883
|
-
var
|
|
2884
|
-
var isUrlParams = (u) => hasProperty(u,
|
|
3039
|
+
var TypeId7 = "~effect/http/UrlParams";
|
|
3040
|
+
var isUrlParams = (u) => hasProperty(u, TypeId7);
|
|
2885
3041
|
var Proto4 = {
|
|
2886
3042
|
...PipeInspectableProto,
|
|
2887
|
-
[
|
|
3043
|
+
[TypeId7]: TypeId7,
|
|
2888
3044
|
[Symbol.iterator]() {
|
|
2889
3045
|
return this.params[Symbol.iterator]();
|
|
2890
3046
|
},
|
|
2891
3047
|
[symbolRedactable](context) {
|
|
2892
3048
|
return {
|
|
2893
3049
|
_id: "UrlParams",
|
|
2894
|
-
params: Object.fromEntries(redact3(this,
|
|
3050
|
+
params: Object.fromEntries(redact3(this, get3(context, CurrentRedactedNames2)))
|
|
2895
3051
|
};
|
|
2896
3052
|
},
|
|
2897
3053
|
toJSON() {
|
|
@@ -2904,7 +3060,7 @@ var Proto4 = {
|
|
|
2904
3060
|
return array(this.params.flat());
|
|
2905
3061
|
}
|
|
2906
3062
|
};
|
|
2907
|
-
var
|
|
3063
|
+
var make24 = (params) => {
|
|
2908
3064
|
const self = Object.create(Proto4);
|
|
2909
3065
|
self.params = params;
|
|
2910
3066
|
return self;
|
|
@@ -2923,7 +3079,7 @@ var fromInput2 = (input) => {
|
|
|
2923
3079
|
out.push(parsed[i]);
|
|
2924
3080
|
}
|
|
2925
3081
|
}
|
|
2926
|
-
return
|
|
3082
|
+
return make24(out);
|
|
2927
3083
|
};
|
|
2928
3084
|
var fromInputNested = (input) => {
|
|
2929
3085
|
const entries = typeof input[Symbol.iterator] === "function" ? fromIterable(input) : Object.entries(input);
|
|
@@ -2947,9 +3103,9 @@ var fromInputNested = (input) => {
|
|
|
2947
3103
|
return out;
|
|
2948
3104
|
};
|
|
2949
3105
|
var coerce = (value) => isRedacted(value) ? value : String(value);
|
|
2950
|
-
var Equivalence3 = /* @__PURE__ */
|
|
3106
|
+
var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
|
|
2951
3107
|
var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
|
|
2952
|
-
var empty4 = /* @__PURE__ */
|
|
3108
|
+
var empty4 = /* @__PURE__ */ make24([]);
|
|
2953
3109
|
var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
2954
3110
|
const params = fromInput2(input).params.slice();
|
|
2955
3111
|
const keys = new Set;
|
|
@@ -2961,7 +3117,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
|
2961
3117
|
continue;
|
|
2962
3118
|
params.push(self.params[i]);
|
|
2963
3119
|
}
|
|
2964
|
-
return
|
|
3120
|
+
return make24(params);
|
|
2965
3121
|
});
|
|
2966
3122
|
var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
|
|
2967
3123
|
var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
@@ -3017,13 +3173,13 @@ var decodeQueryKey = (key) => {
|
|
|
3017
3173
|
return key;
|
|
3018
3174
|
}
|
|
3019
3175
|
};
|
|
3020
|
-
var currentRedactedNames = () =>
|
|
3176
|
+
var currentRedactedNames = () => get3(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
|
|
3021
3177
|
var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
|
|
3022
3178
|
defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
|
|
3023
3179
|
});
|
|
3024
3180
|
|
|
3025
3181
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Terminal.js
|
|
3026
|
-
var
|
|
3182
|
+
var TypeId8 = "~effect/Terminal";
|
|
3027
3183
|
var QuitErrorTypeId = "~effect/Terminal/QuitError";
|
|
3028
3184
|
|
|
3029
3185
|
class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
|
|
@@ -3032,14 +3188,14 @@ class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
|
|
|
3032
3188
|
[QuitErrorTypeId] = QuitErrorTypeId;
|
|
3033
3189
|
}
|
|
3034
3190
|
var Terminal = /* @__PURE__ */ Service2("effect/Terminal");
|
|
3035
|
-
var
|
|
3191
|
+
var make25 = (impl) => Terminal.of({
|
|
3036
3192
|
...impl,
|
|
3037
|
-
[
|
|
3193
|
+
[TypeId8]: TypeId8
|
|
3038
3194
|
});
|
|
3039
3195
|
|
|
3040
3196
|
// node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
|
|
3041
3197
|
import * as readline from "readline";
|
|
3042
|
-
var
|
|
3198
|
+
var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
|
|
3043
3199
|
const stdin = process.stdin;
|
|
3044
3200
|
const stdout = process.stdout;
|
|
3045
3201
|
const lines = yield* make9();
|
|
@@ -3053,7 +3209,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3053
3209
|
};
|
|
3054
3210
|
stdin.once("end", onStdinEnd);
|
|
3055
3211
|
yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
|
|
3056
|
-
const rlRef = yield*
|
|
3212
|
+
const rlRef = yield* make18({
|
|
3057
3213
|
acquire: acquireRelease(sync2(() => {
|
|
3058
3214
|
const rl = readline.createInterface({
|
|
3059
3215
|
input: stdin,
|
|
@@ -3092,7 +3248,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3092
3248
|
if (stdin.isTTY)
|
|
3093
3249
|
stdin.setRawMode(enabled);
|
|
3094
3250
|
});
|
|
3095
|
-
const rawModeRef = yield*
|
|
3251
|
+
const rawModeRef = yield* make18({
|
|
3096
3252
|
acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
|
|
3097
3253
|
idleTimeToLive: "10 millis"
|
|
3098
3254
|
});
|
|
@@ -3143,14 +3299,14 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3143
3299
|
if (inputEnded) {
|
|
3144
3300
|
handleEnd();
|
|
3145
3301
|
} else {
|
|
3146
|
-
yield*
|
|
3147
|
-
yield*
|
|
3302
|
+
yield* get5(rlRef);
|
|
3303
|
+
yield* get5(rawModeRef);
|
|
3148
3304
|
stdin.once("end", handleEnd);
|
|
3149
3305
|
}
|
|
3150
3306
|
return queue;
|
|
3151
3307
|
});
|
|
3152
3308
|
const readLine = suspend3(() => poll(lines).pipe(flatMap3(match({
|
|
3153
|
-
onNone: () => scoped(andThen2(
|
|
3309
|
+
onNone: () => scoped(andThen2(get5(rlRef), take(lines))),
|
|
3154
3310
|
onSome: succeed6
|
|
3155
3311
|
})), mapError2(() => new QuitError({}))));
|
|
3156
3312
|
const display = (prompt) => uninterruptible(callback3((resume) => {
|
|
@@ -3161,7 +3317,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3161
3317
|
cause: err
|
|
3162
3318
|
}))));
|
|
3163
3319
|
}));
|
|
3164
|
-
return
|
|
3320
|
+
return make25({
|
|
3165
3321
|
columns,
|
|
3166
3322
|
rows,
|
|
3167
3323
|
size,
|
|
@@ -3170,7 +3326,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3170
3326
|
display
|
|
3171
3327
|
});
|
|
3172
3328
|
});
|
|
3173
|
-
var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */
|
|
3329
|
+
var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make26(defaultShouldQuit));
|
|
3174
3330
|
function defaultShouldQuit(input) {
|
|
3175
3331
|
const key = input.key;
|
|
3176
3332
|
return key.name === "escape" || key.ctrl && (key.name === "c" || key.name === "d");
|
|
@@ -3197,7 +3353,7 @@ function toDate(input) {
|
|
|
3197
3353
|
return toDateUtc2(makeUnsafe(input));
|
|
3198
3354
|
}
|
|
3199
3355
|
function parseDate(input) {
|
|
3200
|
-
return getOrUndefined(map4(
|
|
3356
|
+
return getOrUndefined(map4(make19(input), toDateUtc2));
|
|
3201
3357
|
}
|
|
3202
3358
|
function toIso(input) {
|
|
3203
3359
|
return formatIso(makeUnsafe(input));
|
|
@@ -8094,6 +8250,7 @@ var WorkUnitOutcome = Struct({
|
|
|
8094
8250
|
cleanSync: optionalKey(Literals(["up_to_date", "merged"])),
|
|
8095
8251
|
appliedChange: optionalKey(RunnerAppliedChange),
|
|
8096
8252
|
harnessHold: optionalKey(HarnessHold),
|
|
8253
|
+
harnessStarted: optionalKey(Literal(false)),
|
|
8097
8254
|
restart: optionalKey(StepRestart),
|
|
8098
8255
|
tokens: optionalKey(AttemptTokens),
|
|
8099
8256
|
ranModel: optionalKey(String4.check(isMinLength(1), isMaxLength(200))),
|
|
@@ -10838,11 +10995,11 @@ var TranscriptSearchResult = Struct({
|
|
|
10838
10995
|
total: Int
|
|
10839
10996
|
});
|
|
10840
10997
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
|
|
10841
|
-
var
|
|
10998
|
+
var TypeId9 = "~effect/http/HttpBody";
|
|
10842
10999
|
class Proto5 {
|
|
10843
|
-
[
|
|
11000
|
+
[TypeId9];
|
|
10844
11001
|
constructor() {
|
|
10845
|
-
this[
|
|
11002
|
+
this[TypeId9] = TypeId9;
|
|
10846
11003
|
}
|
|
10847
11004
|
[NodeInspectSymbol]() {
|
|
10848
11005
|
return this.toJSON();
|
|
@@ -10933,7 +11090,7 @@ var jsonUnsafe = (body, contentType) => text(JSON.stringify(body), contentType ?
|
|
|
10933
11090
|
var urlParams = (urlParams, contentType) => text(toString(fromInput2(urlParams)), contentType ?? "application/x-www-form-urlencoded");
|
|
10934
11091
|
|
|
10935
11092
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientError.js
|
|
10936
|
-
var
|
|
11093
|
+
var TypeId10 = "~effect/http/HttpClientError";
|
|
10937
11094
|
class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
|
|
10938
11095
|
constructor(props) {
|
|
10939
11096
|
if ("cause" in props.reason) {
|
|
@@ -10945,7 +11102,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
|
|
|
10945
11102
|
super(props);
|
|
10946
11103
|
}
|
|
10947
11104
|
}
|
|
10948
|
-
[
|
|
11105
|
+
[TypeId10] = TypeId10;
|
|
10949
11106
|
get request() {
|
|
10950
11107
|
return this.reason.request;
|
|
10951
11108
|
}
|
|
@@ -11049,7 +11206,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError("EmptyBodyError")) {
|
|
|
11049
11206
|
}
|
|
11050
11207
|
}
|
|
11051
11208
|
|
|
11052
|
-
class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(
|
|
11209
|
+
class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId10)({
|
|
11053
11210
|
_tag: /* @__PURE__ */ tag("HttpError"),
|
|
11054
11211
|
kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
|
|
11055
11212
|
cause: /* @__PURE__ */ optional(/* @__PURE__ */ Defect())
|
|
@@ -11082,7 +11239,7 @@ var updateContentLength = (headers, body) => {
|
|
|
11082
11239
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Url.js
|
|
11083
11240
|
class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
|
|
11084
11241
|
}
|
|
11085
|
-
var
|
|
11242
|
+
var make27 = (url, params, hash) => try_({
|
|
11086
11243
|
try: () => {
|
|
11087
11244
|
const urlInstance = new URL(url, baseUrl());
|
|
11088
11245
|
for (let i = 0;i < params.params.length; i++) {
|
|
@@ -11113,10 +11270,10 @@ var baseUrl = () => {
|
|
|
11113
11270
|
};
|
|
11114
11271
|
|
|
11115
11272
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientRequest.js
|
|
11116
|
-
var
|
|
11117
|
-
var isHttpClientRequest = (u) => hasProperty(u,
|
|
11273
|
+
var TypeId11 = "~effect/http/HttpClientRequest";
|
|
11274
|
+
var isHttpClientRequest = (u) => hasProperty(u, TypeId11);
|
|
11118
11275
|
var Proto6 = {
|
|
11119
|
-
[
|
|
11276
|
+
[TypeId11]: TypeId11,
|
|
11120
11277
|
...BaseProto,
|
|
11121
11278
|
toJSON() {
|
|
11122
11279
|
return {
|
|
@@ -11205,7 +11362,7 @@ var bodyUint8Array = /* @__PURE__ */ dual((args) => isHttpClientRequest(args[0])
|
|
|
11205
11362
|
var bodyJsonUnsafe = /* @__PURE__ */ dual(2, (self, body) => setBody(self, jsonUnsafe(body)));
|
|
11206
11363
|
var bodyUrlParams = /* @__PURE__ */ dual(2, (self, input) => setBody(self, urlParams(fromInput2(input))));
|
|
11207
11364
|
function toUrl(self) {
|
|
11208
|
-
const r =
|
|
11365
|
+
const r = make27(self.url, self.urlParams, getOrUndefined(self.hash));
|
|
11209
11366
|
if (isSuccess(r)) {
|
|
11210
11367
|
return some(r.success);
|
|
11211
11368
|
}
|
|
@@ -11213,7 +11370,7 @@ function toUrl(self) {
|
|
|
11213
11370
|
}
|
|
11214
11371
|
|
|
11215
11372
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpIncomingMessage.js
|
|
11216
|
-
var
|
|
11373
|
+
var TypeId12 = "~effect/http/HttpIncomingMessage";
|
|
11217
11374
|
var schemaBodyJson = (schema, options) => {
|
|
11218
11375
|
const decode = decodeEffect(toCodecJson(schema));
|
|
11219
11376
|
const decodeJson = options?.reviver === undefined ? undefined : decodeEffect(fromJsonString(toCodecJson(schema), options));
|
|
@@ -11232,7 +11389,7 @@ var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
|
|
|
11232
11389
|
var getWebSource = (self) => self[WebSourceSymbol]?.();
|
|
11233
11390
|
|
|
11234
11391
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientResponse.js
|
|
11235
|
-
var
|
|
11392
|
+
var TypeId13 = "~effect/http/HttpClientResponse";
|
|
11236
11393
|
var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
|
|
11237
11394
|
var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail7(new HttpClientError({
|
|
11238
11395
|
reason: new StatusCodeError({
|
|
@@ -11243,16 +11400,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
|
|
|
11243
11400
|
}));
|
|
11244
11401
|
|
|
11245
11402
|
class WebHttpClientResponse extends Class {
|
|
11246
|
-
[TypeId11];
|
|
11247
11403
|
[TypeId12];
|
|
11404
|
+
[TypeId13];
|
|
11248
11405
|
request;
|
|
11249
11406
|
source;
|
|
11250
11407
|
constructor(request, source) {
|
|
11251
11408
|
super();
|
|
11252
11409
|
this.request = request;
|
|
11253
11410
|
this.source = source;
|
|
11254
|
-
this[TypeId11] = TypeId11;
|
|
11255
11411
|
this[TypeId12] = TypeId12;
|
|
11412
|
+
this[TypeId13] = TypeId13;
|
|
11256
11413
|
}
|
|
11257
11414
|
toJSON() {
|
|
11258
11415
|
return inspect(this, {
|
|
@@ -11424,7 +11581,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
|
|
|
11424
11581
|
};
|
|
11425
11582
|
|
|
11426
11583
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClient.js
|
|
11427
|
-
var
|
|
11584
|
+
var TypeId14 = "~effect/http/HttpClient";
|
|
11428
11585
|
var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
|
|
11429
11586
|
var accessor = (method) => (...args) => flatMap3(HttpClient, (client) => client[method](...args));
|
|
11430
11587
|
var execute = /* @__PURE__ */ accessor("execute");
|
|
@@ -11441,7 +11598,7 @@ var makeWith2 = (postprocess, preprocess) => {
|
|
|
11441
11598
|
return self;
|
|
11442
11599
|
};
|
|
11443
11600
|
var Proto7 = {
|
|
11444
|
-
[
|
|
11601
|
+
[TypeId14]: TypeId14,
|
|
11445
11602
|
pipe() {
|
|
11446
11603
|
return pipeArguments(this, arguments);
|
|
11447
11604
|
},
|
|
@@ -11455,10 +11612,10 @@ var Proto7 = {
|
|
|
11455
11612
|
return this.execute(make5(fullMethod)(url, options));
|
|
11456
11613
|
}]))
|
|
11457
11614
|
};
|
|
11458
|
-
var
|
|
11615
|
+
var make28 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
|
|
11459
11616
|
const scopedController = scopedRequests.get(request);
|
|
11460
11617
|
const controller = scopedController ?? new AbortController;
|
|
11461
|
-
const urlResult =
|
|
11618
|
+
const urlResult = make27(request.url, request.urlParams, getOrUndefined(request.hash));
|
|
11462
11619
|
if (isFailure(urlResult)) {
|
|
11463
11620
|
return fail7(new HttpClientError({
|
|
11464
11621
|
reason: new InvalidUrlError({
|
|
@@ -11592,8 +11749,8 @@ class InterruptibleResponse {
|
|
|
11592
11749
|
this.original = original;
|
|
11593
11750
|
this.controller = controller;
|
|
11594
11751
|
}
|
|
11752
|
+
[TypeId13] = TypeId13;
|
|
11595
11753
|
[TypeId12] = TypeId12;
|
|
11596
|
-
[TypeId11] = TypeId11;
|
|
11597
11754
|
applyInterrupt(effect) {
|
|
11598
11755
|
return suspend3(() => {
|
|
11599
11756
|
responseRegistry.unregister(this.original);
|
|
@@ -11691,7 +11848,7 @@ var detectStreamBodySupport = () => {
|
|
|
11691
11848
|
return false;
|
|
11692
11849
|
}
|
|
11693
11850
|
};
|
|
11694
|
-
var fetch2 = /* @__PURE__ */
|
|
11851
|
+
var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
|
|
11695
11852
|
if (request.headers.upgrade !== undefined) {
|
|
11696
11853
|
return fail7(new HttpClientError({
|
|
11697
11854
|
reason: new TransportError({
|
|
@@ -11782,10 +11939,10 @@ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
|
|
|
11782
11939
|
});
|
|
11783
11940
|
var layer4 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch2));
|
|
11784
11941
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/socket/Socket.js
|
|
11785
|
-
var
|
|
11942
|
+
var TypeId15 = "~effect/socket/Socket";
|
|
11786
11943
|
var Socket = /* @__PURE__ */ Service2("effect/socket/Socket");
|
|
11787
|
-
var
|
|
11788
|
-
[
|
|
11944
|
+
var make29 = (options) => Socket.of({
|
|
11945
|
+
[TypeId15]: TypeId15,
|
|
11789
11946
|
reader: options.reader,
|
|
11790
11947
|
writer: options.writer
|
|
11791
11948
|
});
|
|
@@ -12108,7 +12265,7 @@ var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
|
|
|
12108
12265
|
write,
|
|
12109
12266
|
writeAll
|
|
12110
12267
|
});
|
|
12111
|
-
return succeed6(
|
|
12268
|
+
return succeed6(make29({
|
|
12112
12269
|
reader,
|
|
12113
12270
|
writer
|
|
12114
12271
|
}));
|
|
@@ -15443,7 +15600,7 @@ function getStreamSchemas(schema) {
|
|
|
15443
15600
|
}
|
|
15444
15601
|
var schema = /* @__PURE__ */ declare(isStream);
|
|
15445
15602
|
function Stream(success, error) {
|
|
15446
|
-
return
|
|
15603
|
+
return make16(schema.ast, {
|
|
15447
15604
|
[StreamSchemaTypeId]: StreamSchemaTypeId,
|
|
15448
15605
|
success,
|
|
15449
15606
|
error
|
|
@@ -15451,9 +15608,9 @@ function Stream(success, error) {
|
|
|
15451
15608
|
}
|
|
15452
15609
|
|
|
15453
15610
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
|
|
15454
|
-
var
|
|
15611
|
+
var TypeId16 = "~effect/rpc/Rpc";
|
|
15455
15612
|
var Proto8 = {
|
|
15456
|
-
[
|
|
15613
|
+
[TypeId16]: TypeId16,
|
|
15457
15614
|
pipe() {
|
|
15458
15615
|
return pipeArguments(this, arguments);
|
|
15459
15616
|
},
|
|
@@ -15620,7 +15777,7 @@ class WorkerUnknownError extends (/* @__PURE__ */ Error3("effect/workers/WorkerE
|
|
|
15620
15777
|
var WorkerErrorReason = /* @__PURE__ */ Union([WorkerSpawnError, WorkerSendError, WorkerReceiveError, WorkerUnknownError]);
|
|
15621
15778
|
|
|
15622
15779
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcClientError.js
|
|
15623
|
-
var
|
|
15780
|
+
var TypeId17 = "~effect/rpc/RpcClientError";
|
|
15624
15781
|
|
|
15625
15782
|
class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError/RpcClientDefect")({
|
|
15626
15783
|
_tag: /* @__PURE__ */ tag("RpcClientDefect"),
|
|
@@ -15629,11 +15786,11 @@ class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError
|
|
|
15629
15786
|
})) {
|
|
15630
15787
|
}
|
|
15631
15788
|
|
|
15632
|
-
class RpcClientError extends (/* @__PURE__ */ Error3(
|
|
15789
|
+
class RpcClientError extends (/* @__PURE__ */ Error3(TypeId17)({
|
|
15633
15790
|
_tag: /* @__PURE__ */ tag("RpcClientError"),
|
|
15634
15791
|
reason: /* @__PURE__ */ Union([WorkerErrorReason, SocketErrorReason, HttpClientErrorSchema, RpcClientDefect])
|
|
15635
15792
|
})) {
|
|
15636
|
-
[
|
|
15793
|
+
[TypeId17] = TypeId17;
|
|
15637
15794
|
get message() {
|
|
15638
15795
|
return `${this.reason._tag}: ${this.reason.message}`;
|
|
15639
15796
|
}
|
|
@@ -15753,7 +15910,7 @@ var RpcGroupProto = {
|
|
|
15753
15910
|
});
|
|
15754
15911
|
},
|
|
15755
15912
|
annotateRpcs(service, value) {
|
|
15756
|
-
return this.annotateRpcsMerge(
|
|
15913
|
+
return this.annotateRpcsMerge(make14(service, value));
|
|
15757
15914
|
},
|
|
15758
15915
|
annotateMerge(context) {
|
|
15759
15916
|
return makeProto2({
|
|
@@ -15781,7 +15938,7 @@ var make7 = (...rpcs) => makeProto2({
|
|
|
15781
15938
|
annotations: empty3()
|
|
15782
15939
|
});
|
|
15783
15940
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
|
|
15784
|
-
var
|
|
15941
|
+
var TypeId18 = "~effect/rpc/RpcMiddleware";
|
|
15785
15942
|
var Service = () => (id, options) => {
|
|
15786
15943
|
const limit = getStackTraceLimit();
|
|
15787
15944
|
let creationError;
|
|
@@ -15799,7 +15956,7 @@ var Service = () => (id, options) => {
|
|
|
15799
15956
|
return creationError?.stack;
|
|
15800
15957
|
}
|
|
15801
15958
|
});
|
|
15802
|
-
ServiceClass_[
|
|
15959
|
+
ServiceClass_[TypeId18] = TypeId18;
|
|
15803
15960
|
ServiceClass_.error = options?.error ?? Never;
|
|
15804
15961
|
ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
|
|
15805
15962
|
return ServiceClass;
|
|
@@ -16545,7 +16702,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
|
|
|
16545
16702
|
var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
|
|
16546
16703
|
|
|
16547
16704
|
// apps/cli/src/oauth.ts
|
|
16548
|
-
var
|
|
16705
|
+
var Scope2 = "openid profile email offline_access kitman:cli";
|
|
16549
16706
|
var CallbackPath = "/auth/callback";
|
|
16550
16707
|
|
|
16551
16708
|
class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
|
|
@@ -16564,7 +16721,7 @@ function buildAuthorizeUrl(input) {
|
|
|
16564
16721
|
url.searchParams.set("response_type", "code");
|
|
16565
16722
|
url.searchParams.set("client_id", input.clientId);
|
|
16566
16723
|
url.searchParams.set("redirect_uri", input.redirectUri);
|
|
16567
|
-
url.searchParams.set("scope",
|
|
16724
|
+
url.searchParams.set("scope", Scope2);
|
|
16568
16725
|
url.searchParams.set("code_challenge", input.codeChallenge);
|
|
16569
16726
|
url.searchParams.set("code_challenge_method", "S256");
|
|
16570
16727
|
url.searchParams.set("state", input.state);
|
|
@@ -16624,7 +16781,7 @@ function toStoredSession(token, existingRefreshToken) {
|
|
|
16624
16781
|
}
|
|
16625
16782
|
function startLoopbackServer(input) {
|
|
16626
16783
|
return gen(function* () {
|
|
16627
|
-
const code = yield*
|
|
16784
|
+
const code = yield* make15();
|
|
16628
16785
|
const context2 = yield* context();
|
|
16629
16786
|
const runSyncExit = runSyncExitWith(context2);
|
|
16630
16787
|
const server = yield* acquireRelease(sync2(() => Bun.serve({
|
|
@@ -17172,7 +17329,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
17172
17329
|
let lastId = 0;
|
|
17173
17330
|
let lost = false;
|
|
17174
17331
|
const notifications = yield* unbounded2();
|
|
17175
|
-
const ended = yield*
|
|
17332
|
+
const ended = yield* make15();
|
|
17176
17333
|
const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
|
|
17177
17334
|
onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
|
|
17178
17335
|
onNone: () => void_3,
|
|
@@ -17199,7 +17356,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
17199
17356
|
if (lost)
|
|
17200
17357
|
return yield* new HerdrCoreConnectionLost2({ method });
|
|
17201
17358
|
const id = ++lastId;
|
|
17202
|
-
const deferred = yield*
|
|
17359
|
+
const deferred = yield* make15();
|
|
17203
17360
|
pending.set(id, { method, deferred });
|
|
17204
17361
|
yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
|
|
17205
17362
|
return yield* _await(deferred);
|
|
@@ -17273,7 +17430,7 @@ var herdrCoreOver = (transport) => ({
|
|
|
17273
17430
|
return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
|
|
17274
17431
|
};
|
|
17275
17432
|
const snapshot = { type: "snapshot", terminals: subscribed.terminals };
|
|
17276
|
-
return concat(
|
|
17433
|
+
return concat(make10(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
|
|
17277
17434
|
}))
|
|
17278
17435
|
});
|
|
17279
17436
|
var spawnedTransport = (env) => gen(function* () {
|
|
@@ -17364,7 +17521,7 @@ var runProcess2 = (argv, options) => gen(function* () {
|
|
|
17364
17521
|
const spawner = yield* ChildProcessSpawner;
|
|
17365
17522
|
const [command, ...args] = argv;
|
|
17366
17523
|
const handle = yield* spawner.spawn(make3(command, args, {
|
|
17367
|
-
stdin: options.stdin === undefined ? "ignore" :
|
|
17524
|
+
stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
|
|
17368
17525
|
...options.cwd === undefined ? undefined : { cwd: options.cwd },
|
|
17369
17526
|
env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
|
|
17370
17527
|
}));
|