@kitman-sh/cli 0.33.0 → 0.34.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-nwbry6c8.js → chunk-0m8ktgmz.js} +286 -114
- package/dist/{chunk-hgxhpj6m.js → chunk-2a40hhfz.js} +4 -4
- package/dist/{chunk-a9ncx2a8.js → chunk-2gz59jcx.js} +1 -1
- package/dist/{chunk-8fyfsajs.js → chunk-337drcr7.js} +29 -178
- package/dist/{chunk-np5n54ky.js → chunk-3jxdtkwd.js} +18 -18
- package/dist/{chunk-vz38kngm.js → chunk-6387vj9z.js} +2 -2
- package/dist/{chunk-samxkpbz.js → chunk-6hxtg6eb.js} +3 -3
- package/dist/{chunk-yveqd8ye.js → chunk-89ygm64f.js} +4 -4
- package/dist/{chunk-jrwpte6y.js → chunk-8p5csa63.js} +46 -46
- package/dist/{chunk-9tyv6211.js → chunk-9da9b7ys.js} +17 -17
- package/dist/{chunk-bnhb3cth.js → chunk-a230abnk.js} +2 -2
- package/dist/{chunk-ak1qrm4q.js → chunk-d64j8v9n.js} +7 -7
- package/dist/{chunk-racse7zf.js → chunk-djzfaqaq.js} +20 -20
- package/dist/{chunk-h2f26xbd.js → chunk-ew07nt2d.js} +61 -61
- package/dist/{chunk-gnq1ryhx.js → chunk-fr0qseam.js} +4 -4
- package/dist/{chunk-s34am3kw.js → chunk-g5b61tek.js} +5 -5
- package/dist/{chunk-9nbqzdqp.js → chunk-gy7nygep.js} +2 -2
- package/dist/{chunk-tsx0347c.js → chunk-haq904fk.js} +1 -1
- package/dist/{chunk-x29m7k25.js → chunk-hwjp28rh.js} +2 -2
- package/dist/{chunk-sgkgwzvb.js → chunk-phx3zffc.js} +8 -8
- package/dist/{chunk-4qjfn1sa.js → chunk-qvpkwnky.js} +1 -1
- package/dist/{chunk-mhx0tgm3.js → chunk-r90j80q5.js} +6 -6
- package/dist/{chunk-xkkyx7bn.js → chunk-swc0ctf2.js} +3 -3
- package/dist/{chunk-1zb8h7gv.js → chunk-w8hf2etp.js} +59 -40
- package/dist/{chunk-py3133q0.js → chunk-wkbsbxp8.js} +6 -6
- package/dist/{chunk-5kqt4bqp.js → chunk-y7bth30s.js} +1 -1
- 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,17 @@ import {
|
|
|
262
274
|
decodeJsonStringOption,
|
|
263
275
|
encodeJsonStringSync,
|
|
264
276
|
encodePrettyJsonString
|
|
265
|
-
} from "./chunk-
|
|
277
|
+
} from "./chunk-ew07nt2d.js";
|
|
266
278
|
import {
|
|
267
279
|
map,
|
|
268
280
|
makeEquivalence,
|
|
269
281
|
Clock,
|
|
270
282
|
currentTimeMillis,
|
|
271
283
|
bytes,
|
|
284
|
+
join,
|
|
285
|
+
interrupt,
|
|
286
|
+
getCurrent,
|
|
287
|
+
runIn,
|
|
272
288
|
BadArgument,
|
|
273
289
|
systemError,
|
|
274
290
|
badArgument,
|
|
@@ -290,13 +306,11 @@ import {
|
|
|
290
306
|
isSink,
|
|
291
307
|
fromChannel,
|
|
292
308
|
drain,
|
|
293
|
-
make10,
|
|
294
|
-
get3,
|
|
295
309
|
isStream,
|
|
296
310
|
fromChannel2,
|
|
297
311
|
callback,
|
|
298
312
|
empty2,
|
|
299
|
-
|
|
313
|
+
make10,
|
|
300
314
|
suspend,
|
|
301
315
|
fail2,
|
|
302
316
|
fromQueue,
|
|
@@ -322,17 +336,17 @@ import {
|
|
|
322
336
|
mkArrayBuffer,
|
|
323
337
|
toReadableStreamEffect,
|
|
324
338
|
FileSystem,
|
|
325
|
-
|
|
339
|
+
make11,
|
|
326
340
|
FileTypeId,
|
|
327
341
|
WatchBackend,
|
|
328
342
|
Path,
|
|
329
|
-
|
|
343
|
+
make12,
|
|
330
344
|
option,
|
|
331
345
|
String2,
|
|
332
346
|
optionalEnv,
|
|
333
347
|
harnessesUnsupportedInSrt2,
|
|
334
348
|
harnessesUnsupportedInDocker2
|
|
335
|
-
} from "./chunk-
|
|
349
|
+
} from "./chunk-337drcr7.js";
|
|
336
350
|
import {
|
|
337
351
|
isRedacted,
|
|
338
352
|
make,
|
|
@@ -346,7 +360,7 @@ import {
|
|
|
346
360
|
make3,
|
|
347
361
|
parseFdName,
|
|
348
362
|
fdName
|
|
349
|
-
} from "./chunk-
|
|
363
|
+
} from "./chunk-gy7nygep.js";
|
|
350
364
|
import {
|
|
351
365
|
isDateTime,
|
|
352
366
|
Numeric,
|
|
@@ -359,7 +373,7 @@ import {
|
|
|
359
373
|
SecretScope,
|
|
360
374
|
SecretHosts,
|
|
361
375
|
isSecretReference
|
|
362
|
-
} from "./chunk-
|
|
376
|
+
} from "./chunk-qvpkwnky.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));
|
|
@@ -3224,7 +3380,8 @@ var utcTime = (timestamp) => {
|
|
|
3224
3380
|
var queueWords = (place) => {
|
|
3225
3381
|
const held = [
|
|
3226
3382
|
...place.quotaUntil === undefined ? [] : [`waiting on quota until ${utcTime(place.quotaUntil)}`],
|
|
3227
|
-
...place.unrunnable === undefined ? [] : [`no online Runner can run it: ${place.unrunnable}`]
|
|
3383
|
+
...place.unrunnable === undefined ? [] : [`no online Runner can run it: ${place.unrunnable}`],
|
|
3384
|
+
...place.updating === undefined ? [] : [place.updating]
|
|
3228
3385
|
];
|
|
3229
3386
|
return held.length === 0 ? `#${place.position} in the queue, ${place.reason}` : held.join("; ");
|
|
3230
3387
|
};
|
|
@@ -6935,7 +7092,8 @@ var RunWaiting = Union([
|
|
|
6935
7092
|
reason: String4,
|
|
6936
7093
|
movesUpAt: optionalKey(String4),
|
|
6937
7094
|
unrunnable: optionalKey(String4),
|
|
6938
|
-
quotaUntil: optionalKey(Timestamp)
|
|
7095
|
+
quotaUntil: optionalKey(Timestamp),
|
|
7096
|
+
updating: optionalKey(String4)
|
|
6939
7097
|
})
|
|
6940
7098
|
]);
|
|
6941
7099
|
var RunEvidence = Struct({
|
|
@@ -8424,6 +8582,12 @@ var RunnerSettingChange = Struct({
|
|
|
8424
8582
|
});
|
|
8425
8583
|
var RunnerSettingsHistory = Struct({ items: ArraySchema(RunnerSettingChange) });
|
|
8426
8584
|
var shownRunnerSetting = (value) => Array.isArray(value) ? value.length === 0 ? "none" : value.join(",") : value === null ? "none" : String(value);
|
|
8585
|
+
var RunnerUpdateDrainReport = Struct({ version: RunnerVersion, since: Timestamp, until: Timestamp });
|
|
8586
|
+
var RunnerUpdateDrain = Struct({
|
|
8587
|
+
...RunnerUpdateDrainReport.fields,
|
|
8588
|
+
waitingFor: ArraySchema(Struct({ runId: Id, loopId: String4, taskKey: optionalKey(String4) })),
|
|
8589
|
+
othersWaitingFor: optionalKey(Int.check(isGreaterThanOrEqualTo(1)))
|
|
8590
|
+
});
|
|
8427
8591
|
var Runner = Struct({
|
|
8428
8592
|
id: Id,
|
|
8429
8593
|
workspaceId: Id,
|
|
@@ -8442,6 +8606,7 @@ var Runner = Struct({
|
|
|
8442
8606
|
latestVersion: optionalKey(RunnerVersion),
|
|
8443
8607
|
container: Boolean2,
|
|
8444
8608
|
automaticUpdates: Boolean2,
|
|
8609
|
+
updateDrain: optionalKey(RunnerUpdateDrain),
|
|
8445
8610
|
releaseChannel: optionalKey(ReleaseChannel),
|
|
8446
8611
|
settings: optionalKey(RunnerSettings),
|
|
8447
8612
|
appliedSettings: optionalKey(RunnerAppliedSettings),
|
|
@@ -8469,7 +8634,10 @@ var RunnerUpdate = Struct({
|
|
|
8469
8634
|
name: optionalKey(String4.check(isMinLength(1), isMaxLength(120))),
|
|
8470
8635
|
automaticUpdates: optionalKey(Boolean2)
|
|
8471
8636
|
});
|
|
8472
|
-
var RunnerUpdateRequested = Struct({
|
|
8637
|
+
var RunnerUpdateRequested = Struct({
|
|
8638
|
+
version: RunnerVersion,
|
|
8639
|
+
switchingNow: optionalKey(Boolean2)
|
|
8640
|
+
});
|
|
8473
8641
|
var RunnerRemoveResult = Struct({
|
|
8474
8642
|
removed: Boolean2
|
|
8475
8643
|
});
|
|
@@ -8592,7 +8760,8 @@ var RunnerHeartbeatInput = Struct({
|
|
|
8592
8760
|
capabilities: optionalKey(RunnerCapabilities),
|
|
8593
8761
|
labels: optionalKey(ArraySchema(String4.check(isMinLength(1))).check(isMaxLength(50))),
|
|
8594
8762
|
environmentSettings: optionalKey(RunnerSettingsUpdate),
|
|
8595
|
-
appliedSettings: optionalKey(RunnerAppliedSettings)
|
|
8763
|
+
appliedSettings: optionalKey(RunnerAppliedSettings),
|
|
8764
|
+
updateDrain: optionalKey(RunnerUpdateDrainReport)
|
|
8596
8765
|
});
|
|
8597
8766
|
var RunnerCapabilitiesUpdate = Struct({
|
|
8598
8767
|
capabilities: RunnerCapabilities,
|
|
@@ -10814,11 +10983,11 @@ var TranscriptSearchResult = Struct({
|
|
|
10814
10983
|
total: Int
|
|
10815
10984
|
});
|
|
10816
10985
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
|
|
10817
|
-
var
|
|
10986
|
+
var TypeId9 = "~effect/http/HttpBody";
|
|
10818
10987
|
class Proto5 {
|
|
10819
|
-
[
|
|
10988
|
+
[TypeId9];
|
|
10820
10989
|
constructor() {
|
|
10821
|
-
this[
|
|
10990
|
+
this[TypeId9] = TypeId9;
|
|
10822
10991
|
}
|
|
10823
10992
|
[NodeInspectSymbol]() {
|
|
10824
10993
|
return this.toJSON();
|
|
@@ -10909,7 +11078,7 @@ var jsonUnsafe = (body, contentType) => text(JSON.stringify(body), contentType ?
|
|
|
10909
11078
|
var urlParams = (urlParams, contentType) => text(toString(fromInput2(urlParams)), contentType ?? "application/x-www-form-urlencoded");
|
|
10910
11079
|
|
|
10911
11080
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientError.js
|
|
10912
|
-
var
|
|
11081
|
+
var TypeId10 = "~effect/http/HttpClientError";
|
|
10913
11082
|
class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
|
|
10914
11083
|
constructor(props) {
|
|
10915
11084
|
if ("cause" in props.reason) {
|
|
@@ -10921,7 +11090,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
|
|
|
10921
11090
|
super(props);
|
|
10922
11091
|
}
|
|
10923
11092
|
}
|
|
10924
|
-
[
|
|
11093
|
+
[TypeId10] = TypeId10;
|
|
10925
11094
|
get request() {
|
|
10926
11095
|
return this.reason.request;
|
|
10927
11096
|
}
|
|
@@ -11025,7 +11194,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError("EmptyBodyError")) {
|
|
|
11025
11194
|
}
|
|
11026
11195
|
}
|
|
11027
11196
|
|
|
11028
|
-
class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(
|
|
11197
|
+
class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId10)({
|
|
11029
11198
|
_tag: /* @__PURE__ */ tag("HttpError"),
|
|
11030
11199
|
kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
|
|
11031
11200
|
cause: /* @__PURE__ */ optional(/* @__PURE__ */ Defect())
|
|
@@ -11058,7 +11227,7 @@ var updateContentLength = (headers, body) => {
|
|
|
11058
11227
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Url.js
|
|
11059
11228
|
class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
|
|
11060
11229
|
}
|
|
11061
|
-
var
|
|
11230
|
+
var make27 = (url, params, hash) => try_({
|
|
11062
11231
|
try: () => {
|
|
11063
11232
|
const urlInstance = new URL(url, baseUrl());
|
|
11064
11233
|
for (let i = 0;i < params.params.length; i++) {
|
|
@@ -11089,10 +11258,10 @@ var baseUrl = () => {
|
|
|
11089
11258
|
};
|
|
11090
11259
|
|
|
11091
11260
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientRequest.js
|
|
11092
|
-
var
|
|
11093
|
-
var isHttpClientRequest = (u) => hasProperty(u,
|
|
11261
|
+
var TypeId11 = "~effect/http/HttpClientRequest";
|
|
11262
|
+
var isHttpClientRequest = (u) => hasProperty(u, TypeId11);
|
|
11094
11263
|
var Proto6 = {
|
|
11095
|
-
[
|
|
11264
|
+
[TypeId11]: TypeId11,
|
|
11096
11265
|
...BaseProto,
|
|
11097
11266
|
toJSON() {
|
|
11098
11267
|
return {
|
|
@@ -11181,7 +11350,7 @@ var bodyUint8Array = /* @__PURE__ */ dual((args) => isHttpClientRequest(args[0])
|
|
|
11181
11350
|
var bodyJsonUnsafe = /* @__PURE__ */ dual(2, (self, body) => setBody(self, jsonUnsafe(body)));
|
|
11182
11351
|
var bodyUrlParams = /* @__PURE__ */ dual(2, (self, input) => setBody(self, urlParams(fromInput2(input))));
|
|
11183
11352
|
function toUrl(self) {
|
|
11184
|
-
const r =
|
|
11353
|
+
const r = make27(self.url, self.urlParams, getOrUndefined(self.hash));
|
|
11185
11354
|
if (isSuccess(r)) {
|
|
11186
11355
|
return some(r.success);
|
|
11187
11356
|
}
|
|
@@ -11189,7 +11358,7 @@ function toUrl(self) {
|
|
|
11189
11358
|
}
|
|
11190
11359
|
|
|
11191
11360
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpIncomingMessage.js
|
|
11192
|
-
var
|
|
11361
|
+
var TypeId12 = "~effect/http/HttpIncomingMessage";
|
|
11193
11362
|
var schemaBodyJson = (schema, options) => {
|
|
11194
11363
|
const decode = decodeEffect(toCodecJson(schema));
|
|
11195
11364
|
const decodeJson = options?.reviver === undefined ? undefined : decodeEffect(fromJsonString(toCodecJson(schema), options));
|
|
@@ -11208,7 +11377,7 @@ var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
|
|
|
11208
11377
|
var getWebSource = (self) => self[WebSourceSymbol]?.();
|
|
11209
11378
|
|
|
11210
11379
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientResponse.js
|
|
11211
|
-
var
|
|
11380
|
+
var TypeId13 = "~effect/http/HttpClientResponse";
|
|
11212
11381
|
var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
|
|
11213
11382
|
var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail7(new HttpClientError({
|
|
11214
11383
|
reason: new StatusCodeError({
|
|
@@ -11219,16 +11388,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
|
|
|
11219
11388
|
}));
|
|
11220
11389
|
|
|
11221
11390
|
class WebHttpClientResponse extends Class {
|
|
11222
|
-
[TypeId11];
|
|
11223
11391
|
[TypeId12];
|
|
11392
|
+
[TypeId13];
|
|
11224
11393
|
request;
|
|
11225
11394
|
source;
|
|
11226
11395
|
constructor(request, source) {
|
|
11227
11396
|
super();
|
|
11228
11397
|
this.request = request;
|
|
11229
11398
|
this.source = source;
|
|
11230
|
-
this[TypeId11] = TypeId11;
|
|
11231
11399
|
this[TypeId12] = TypeId12;
|
|
11400
|
+
this[TypeId13] = TypeId13;
|
|
11232
11401
|
}
|
|
11233
11402
|
toJSON() {
|
|
11234
11403
|
return inspect(this, {
|
|
@@ -11400,7 +11569,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
|
|
|
11400
11569
|
};
|
|
11401
11570
|
|
|
11402
11571
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClient.js
|
|
11403
|
-
var
|
|
11572
|
+
var TypeId14 = "~effect/http/HttpClient";
|
|
11404
11573
|
var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
|
|
11405
11574
|
var accessor = (method) => (...args) => flatMap3(HttpClient, (client) => client[method](...args));
|
|
11406
11575
|
var execute = /* @__PURE__ */ accessor("execute");
|
|
@@ -11417,7 +11586,7 @@ var makeWith2 = (postprocess, preprocess) => {
|
|
|
11417
11586
|
return self;
|
|
11418
11587
|
};
|
|
11419
11588
|
var Proto7 = {
|
|
11420
|
-
[
|
|
11589
|
+
[TypeId14]: TypeId14,
|
|
11421
11590
|
pipe() {
|
|
11422
11591
|
return pipeArguments(this, arguments);
|
|
11423
11592
|
},
|
|
@@ -11431,10 +11600,10 @@ var Proto7 = {
|
|
|
11431
11600
|
return this.execute(make5(fullMethod)(url, options));
|
|
11432
11601
|
}]))
|
|
11433
11602
|
};
|
|
11434
|
-
var
|
|
11603
|
+
var make28 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
|
|
11435
11604
|
const scopedController = scopedRequests.get(request);
|
|
11436
11605
|
const controller = scopedController ?? new AbortController;
|
|
11437
|
-
const urlResult =
|
|
11606
|
+
const urlResult = make27(request.url, request.urlParams, getOrUndefined(request.hash));
|
|
11438
11607
|
if (isFailure(urlResult)) {
|
|
11439
11608
|
return fail7(new HttpClientError({
|
|
11440
11609
|
reason: new InvalidUrlError({
|
|
@@ -11568,8 +11737,8 @@ class InterruptibleResponse {
|
|
|
11568
11737
|
this.original = original;
|
|
11569
11738
|
this.controller = controller;
|
|
11570
11739
|
}
|
|
11740
|
+
[TypeId13] = TypeId13;
|
|
11571
11741
|
[TypeId12] = TypeId12;
|
|
11572
|
-
[TypeId11] = TypeId11;
|
|
11573
11742
|
applyInterrupt(effect) {
|
|
11574
11743
|
return suspend3(() => {
|
|
11575
11744
|
responseRegistry.unregister(this.original);
|
|
@@ -11667,7 +11836,7 @@ var detectStreamBodySupport = () => {
|
|
|
11667
11836
|
return false;
|
|
11668
11837
|
}
|
|
11669
11838
|
};
|
|
11670
|
-
var fetch2 = /* @__PURE__ */
|
|
11839
|
+
var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
|
|
11671
11840
|
if (request.headers.upgrade !== undefined) {
|
|
11672
11841
|
return fail7(new HttpClientError({
|
|
11673
11842
|
reason: new TransportError({
|
|
@@ -11758,10 +11927,10 @@ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
|
|
|
11758
11927
|
});
|
|
11759
11928
|
var layer4 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch2));
|
|
11760
11929
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/socket/Socket.js
|
|
11761
|
-
var
|
|
11930
|
+
var TypeId15 = "~effect/socket/Socket";
|
|
11762
11931
|
var Socket = /* @__PURE__ */ Service2("effect/socket/Socket");
|
|
11763
|
-
var
|
|
11764
|
-
[
|
|
11932
|
+
var make29 = (options) => Socket.of({
|
|
11933
|
+
[TypeId15]: TypeId15,
|
|
11765
11934
|
reader: options.reader,
|
|
11766
11935
|
writer: options.writer
|
|
11767
11936
|
});
|
|
@@ -12084,7 +12253,7 @@ var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
|
|
|
12084
12253
|
write,
|
|
12085
12254
|
writeAll
|
|
12086
12255
|
});
|
|
12087
|
-
return succeed6(
|
|
12256
|
+
return succeed6(make29({
|
|
12088
12257
|
reader,
|
|
12089
12258
|
writer
|
|
12090
12259
|
}));
|
|
@@ -15418,7 +15587,7 @@ function getStreamSchemas(schema) {
|
|
|
15418
15587
|
}
|
|
15419
15588
|
var schema = /* @__PURE__ */ declare(isStream);
|
|
15420
15589
|
function Stream(success, error) {
|
|
15421
|
-
return
|
|
15590
|
+
return make16(schema.ast, {
|
|
15422
15591
|
[StreamSchemaTypeId]: StreamSchemaTypeId,
|
|
15423
15592
|
success,
|
|
15424
15593
|
error
|
|
@@ -15426,9 +15595,9 @@ function Stream(success, error) {
|
|
|
15426
15595
|
}
|
|
15427
15596
|
|
|
15428
15597
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
|
|
15429
|
-
var
|
|
15598
|
+
var TypeId16 = "~effect/rpc/Rpc";
|
|
15430
15599
|
var Proto8 = {
|
|
15431
|
-
[
|
|
15600
|
+
[TypeId16]: TypeId16,
|
|
15432
15601
|
pipe() {
|
|
15433
15602
|
return pipeArguments(this, arguments);
|
|
15434
15603
|
},
|
|
@@ -15595,7 +15764,7 @@ class WorkerUnknownError extends (/* @__PURE__ */ Error3("effect/workers/WorkerE
|
|
|
15595
15764
|
var WorkerErrorReason = /* @__PURE__ */ Union([WorkerSpawnError, WorkerSendError, WorkerReceiveError, WorkerUnknownError]);
|
|
15596
15765
|
|
|
15597
15766
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcClientError.js
|
|
15598
|
-
var
|
|
15767
|
+
var TypeId17 = "~effect/rpc/RpcClientError";
|
|
15599
15768
|
|
|
15600
15769
|
class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError/RpcClientDefect")({
|
|
15601
15770
|
_tag: /* @__PURE__ */ tag("RpcClientDefect"),
|
|
@@ -15604,11 +15773,11 @@ class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError
|
|
|
15604
15773
|
})) {
|
|
15605
15774
|
}
|
|
15606
15775
|
|
|
15607
|
-
class RpcClientError extends (/* @__PURE__ */ Error3(
|
|
15776
|
+
class RpcClientError extends (/* @__PURE__ */ Error3(TypeId17)({
|
|
15608
15777
|
_tag: /* @__PURE__ */ tag("RpcClientError"),
|
|
15609
15778
|
reason: /* @__PURE__ */ Union([WorkerErrorReason, SocketErrorReason, HttpClientErrorSchema, RpcClientDefect])
|
|
15610
15779
|
})) {
|
|
15611
|
-
[
|
|
15780
|
+
[TypeId17] = TypeId17;
|
|
15612
15781
|
get message() {
|
|
15613
15782
|
return `${this.reason._tag}: ${this.reason.message}`;
|
|
15614
15783
|
}
|
|
@@ -15728,7 +15897,7 @@ var RpcGroupProto = {
|
|
|
15728
15897
|
});
|
|
15729
15898
|
},
|
|
15730
15899
|
annotateRpcs(service, value) {
|
|
15731
|
-
return this.annotateRpcsMerge(
|
|
15900
|
+
return this.annotateRpcsMerge(make14(service, value));
|
|
15732
15901
|
},
|
|
15733
15902
|
annotateMerge(context) {
|
|
15734
15903
|
return makeProto2({
|
|
@@ -15756,7 +15925,7 @@ var make7 = (...rpcs) => makeProto2({
|
|
|
15756
15925
|
annotations: empty3()
|
|
15757
15926
|
});
|
|
15758
15927
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
|
|
15759
|
-
var
|
|
15928
|
+
var TypeId18 = "~effect/rpc/RpcMiddleware";
|
|
15760
15929
|
var Service = () => (id, options) => {
|
|
15761
15930
|
const limit = getStackTraceLimit();
|
|
15762
15931
|
let creationError;
|
|
@@ -15774,7 +15943,7 @@ var Service = () => (id, options) => {
|
|
|
15774
15943
|
return creationError?.stack;
|
|
15775
15944
|
}
|
|
15776
15945
|
});
|
|
15777
|
-
ServiceClass_[
|
|
15946
|
+
ServiceClass_[TypeId18] = TypeId18;
|
|
15778
15947
|
ServiceClass_.error = options?.error ?? Never;
|
|
15779
15948
|
ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
|
|
15780
15949
|
return ServiceClass;
|
|
@@ -15805,7 +15974,10 @@ var Steer = TaggedStruct("Steer", {
|
|
|
15805
15974
|
text: String4
|
|
15806
15975
|
});
|
|
15807
15976
|
var SessionUpdated = TaggedStruct("SessionUpdated", { workUnitId: String4 });
|
|
15808
|
-
var UpdateAvailable = TaggedStruct("UpdateAvailable", {
|
|
15977
|
+
var UpdateAvailable = TaggedStruct("UpdateAvailable", {
|
|
15978
|
+
version: String4,
|
|
15979
|
+
now: optionalKey(Boolean2)
|
|
15980
|
+
});
|
|
15809
15981
|
var RunnerSignal = Union([
|
|
15810
15982
|
WorkAvailable,
|
|
15811
15983
|
LeaseRevoked,
|
|
@@ -16517,7 +16689,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
|
|
|
16517
16689
|
var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
|
|
16518
16690
|
|
|
16519
16691
|
// apps/cli/src/oauth.ts
|
|
16520
|
-
var
|
|
16692
|
+
var Scope2 = "openid profile email offline_access kitman:cli";
|
|
16521
16693
|
var CallbackPath = "/auth/callback";
|
|
16522
16694
|
|
|
16523
16695
|
class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
|
|
@@ -16536,7 +16708,7 @@ function buildAuthorizeUrl(input) {
|
|
|
16536
16708
|
url.searchParams.set("response_type", "code");
|
|
16537
16709
|
url.searchParams.set("client_id", input.clientId);
|
|
16538
16710
|
url.searchParams.set("redirect_uri", input.redirectUri);
|
|
16539
|
-
url.searchParams.set("scope",
|
|
16711
|
+
url.searchParams.set("scope", Scope2);
|
|
16540
16712
|
url.searchParams.set("code_challenge", input.codeChallenge);
|
|
16541
16713
|
url.searchParams.set("code_challenge_method", "S256");
|
|
16542
16714
|
url.searchParams.set("state", input.state);
|
|
@@ -16596,7 +16768,7 @@ function toStoredSession(token, existingRefreshToken) {
|
|
|
16596
16768
|
}
|
|
16597
16769
|
function startLoopbackServer(input) {
|
|
16598
16770
|
return gen(function* () {
|
|
16599
|
-
const code = yield*
|
|
16771
|
+
const code = yield* make15();
|
|
16600
16772
|
const context2 = yield* context();
|
|
16601
16773
|
const runSyncExit = runSyncExitWith(context2);
|
|
16602
16774
|
const server = yield* acquireRelease(sync2(() => Bun.serve({
|
|
@@ -17144,7 +17316,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
17144
17316
|
let lastId = 0;
|
|
17145
17317
|
let lost = false;
|
|
17146
17318
|
const notifications = yield* unbounded2();
|
|
17147
|
-
const ended = yield*
|
|
17319
|
+
const ended = yield* make15();
|
|
17148
17320
|
const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
|
|
17149
17321
|
onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
|
|
17150
17322
|
onNone: () => void_3,
|
|
@@ -17171,7 +17343,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
17171
17343
|
if (lost)
|
|
17172
17344
|
return yield* new HerdrCoreConnectionLost2({ method });
|
|
17173
17345
|
const id = ++lastId;
|
|
17174
|
-
const deferred = yield*
|
|
17346
|
+
const deferred = yield* make15();
|
|
17175
17347
|
pending.set(id, { method, deferred });
|
|
17176
17348
|
yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
|
|
17177
17349
|
return yield* _await(deferred);
|
|
@@ -17245,7 +17417,7 @@ var herdrCoreOver = (transport) => ({
|
|
|
17245
17417
|
return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
|
|
17246
17418
|
};
|
|
17247
17419
|
const snapshot = { type: "snapshot", terminals: subscribed.terminals };
|
|
17248
|
-
return concat(
|
|
17420
|
+
return concat(make10(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
|
|
17249
17421
|
}))
|
|
17250
17422
|
});
|
|
17251
17423
|
var spawnedTransport = (env) => gen(function* () {
|
|
@@ -17336,7 +17508,7 @@ var runProcess2 = (argv, options) => gen(function* () {
|
|
|
17336
17508
|
const spawner = yield* ChildProcessSpawner;
|
|
17337
17509
|
const [command, ...args] = argv;
|
|
17338
17510
|
const handle = yield* spawner.spawn(make3(command, args, {
|
|
17339
|
-
stdin: options.stdin === undefined ? "ignore" :
|
|
17511
|
+
stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
|
|
17340
17512
|
...options.cwd === undefined ? undefined : { cwd: options.cwd },
|
|
17341
17513
|
env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
|
|
17342
17514
|
}));
|