@kitman-sh/cli 0.10.98 → 0.10.100
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-nym2zmz3.js → chunk-0rf10v29.js} +4 -4
- package/dist/{chunk-g1xmj2nb.js → chunk-1k3cvdbt.js} +4 -4
- package/dist/{chunk-qrxkpwzy.js → chunk-1kww1jdz.js} +1 -1
- package/dist/{chunk-7c3pgktm.js → chunk-1nw7sbtr.js} +8 -8
- package/dist/{chunk-gfqm22x7.js → chunk-4c78jfqk.js} +5 -5
- package/dist/{chunk-s90hj0mb.js → chunk-5z0cwmet.js} +348 -120
- package/dist/{chunk-n8c1wh6t.js → chunk-6sanfepb.js} +4 -4
- package/dist/{chunk-fd39ch4n.js → chunk-9xj0djtp.js} +8 -8
- package/dist/{chunk-07p2dcq3.js → chunk-ayfdkptb.js} +100 -338
- package/dist/{chunk-6dc0x5cg.js → chunk-cpx45jzk.js} +8 -8
- package/dist/{chunk-j8vq6sk1.js → chunk-cy7cy84h.js} +19 -19
- package/dist/{chunk-xwhybbj2.js → chunk-gs6qdy2k.js} +2 -2
- package/dist/{chunk-95mkdtzk.js → chunk-hcpjfshb.js} +4 -4
- package/dist/{chunk-s5p94z8x.js → chunk-mjrr0wzp.js} +44 -44
- package/dist/{chunk-7ya2q09c.js → chunk-mk8vsaj7.js} +1 -1
- package/dist/{chunk-797w5qe6.js → chunk-mtz8f1hn.js} +7 -7
- package/dist/{chunk-p83y21hp.js → chunk-p3kwtm82.js} +4 -4
- package/dist/{chunk-cgjyv52e.js → chunk-qv9te9gr.js} +2 -2
- package/dist/{chunk-sy8d7bfa.js → chunk-r3rap6hz.js} +117 -105
- package/dist/{chunk-aba9zdpb.js → chunk-tk85pw4z.js} +144 -48
- package/dist/{chunk-bqg9gy2e.js → chunk-tqw2rkc9.js} +7 -7
- package/dist/{chunk-c6h3fhtb.js → chunk-vatjyw59.js} +11 -11
- package/dist/{chunk-3bjekzn7.js → chunk-wyh06par.js} +501 -193
- package/dist/{chunk-d1sqb8rt.js → chunk-wzkdjdb7.js} +1 -1
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -17,9 +17,14 @@ import {
|
|
|
17
17
|
isNullish,
|
|
18
18
|
hasProperty,
|
|
19
19
|
symbol,
|
|
20
|
+
hash,
|
|
21
|
+
combine,
|
|
22
|
+
number,
|
|
23
|
+
string,
|
|
20
24
|
structure,
|
|
21
25
|
array,
|
|
22
26
|
symbol2,
|
|
27
|
+
equals,
|
|
23
28
|
asEquivalence,
|
|
24
29
|
symbolRedactable,
|
|
25
30
|
redact,
|
|
@@ -47,10 +52,11 @@ import {
|
|
|
47
52
|
fromNullishOr,
|
|
48
53
|
fromUndefinedOr,
|
|
49
54
|
getOrUndefined,
|
|
55
|
+
liftThrowable,
|
|
50
56
|
map4,
|
|
51
57
|
flatMap,
|
|
52
58
|
Service2,
|
|
53
|
-
|
|
59
|
+
makeUnsafe4,
|
|
54
60
|
empty3,
|
|
55
61
|
make14,
|
|
56
62
|
add,
|
|
@@ -79,13 +85,16 @@ import {
|
|
|
79
85
|
TaggedError,
|
|
80
86
|
DisablePropagation,
|
|
81
87
|
sync,
|
|
88
|
+
map7,
|
|
89
|
+
ClockRef,
|
|
90
|
+
currentTimeMillis2,
|
|
82
91
|
ConsoleRef,
|
|
83
92
|
succeed3,
|
|
84
93
|
fail4,
|
|
85
94
|
void_2,
|
|
86
95
|
isSuccess2,
|
|
87
96
|
isFailure2,
|
|
88
|
-
|
|
97
|
+
makeUnsafe5,
|
|
89
98
|
make15,
|
|
90
99
|
_await,
|
|
91
100
|
fail5,
|
|
@@ -95,7 +104,7 @@ import {
|
|
|
95
104
|
doneUnsafe,
|
|
96
105
|
TracerTimingEnabled,
|
|
97
106
|
Scope,
|
|
98
|
-
|
|
107
|
+
makeUnsafe6,
|
|
99
108
|
provide,
|
|
100
109
|
addFinalizerExit,
|
|
101
110
|
addFinalizer,
|
|
@@ -112,9 +121,8 @@ import {
|
|
|
112
121
|
hasInterrupts2,
|
|
113
122
|
Done2,
|
|
114
123
|
done,
|
|
124
|
+
IllegalArgumentError,
|
|
115
125
|
UnknownError,
|
|
116
|
-
Clock,
|
|
117
|
-
currentTimeMillis,
|
|
118
126
|
catchDone,
|
|
119
127
|
isDoneCause,
|
|
120
128
|
exponential,
|
|
@@ -140,7 +148,7 @@ import {
|
|
|
140
148
|
flatMap3,
|
|
141
149
|
andThen2,
|
|
142
150
|
tap2,
|
|
143
|
-
|
|
151
|
+
map8,
|
|
144
152
|
as,
|
|
145
153
|
asVoid,
|
|
146
154
|
catch_,
|
|
@@ -198,22 +206,15 @@ import {
|
|
|
198
206
|
logError,
|
|
199
207
|
effectify,
|
|
200
208
|
decode,
|
|
201
|
-
makeUnsafe6,
|
|
202
|
-
make16,
|
|
203
|
-
now,
|
|
204
|
-
nowUnsafe,
|
|
205
|
-
toDateUtc,
|
|
206
|
-
toEpochMillis,
|
|
207
|
-
formatIso,
|
|
208
209
|
defaultParseOptions,
|
|
209
210
|
omit,
|
|
210
|
-
|
|
211
|
+
map9,
|
|
211
212
|
declare,
|
|
212
213
|
decodeUnknownEffect2,
|
|
213
214
|
decodeEffect,
|
|
214
215
|
decodeUnknownOption,
|
|
215
216
|
decodeOption,
|
|
216
|
-
|
|
217
|
+
make16,
|
|
217
218
|
isSchema,
|
|
218
219
|
optionalKey,
|
|
219
220
|
optional,
|
|
@@ -260,7 +261,7 @@ import {
|
|
|
260
261
|
decodeJsonStringOption,
|
|
261
262
|
encodeJsonStringSync,
|
|
262
263
|
encodePrettyJsonString
|
|
263
|
-
} from "./chunk-
|
|
264
|
+
} from "./chunk-ayfdkptb.js";
|
|
264
265
|
import {
|
|
265
266
|
isDateTime,
|
|
266
267
|
Numeric,
|
|
@@ -273,7 +274,7 @@ import {
|
|
|
273
274
|
SecretScope,
|
|
274
275
|
SecretHosts,
|
|
275
276
|
isSecretReference
|
|
276
|
-
} from "./chunk-
|
|
277
|
+
} from "./chunk-1kww1jdz.js";
|
|
277
278
|
import {
|
|
278
279
|
toJsonValue,
|
|
279
280
|
isOneOf,
|
|
@@ -287,7 +288,7 @@ import {
|
|
|
287
288
|
isSymbol,
|
|
288
289
|
isUndefined,
|
|
289
290
|
kindOf
|
|
290
|
-
} from "./chunk-
|
|
291
|
+
} from "./chunk-wzkdjdb7.js";
|
|
291
292
|
import {
|
|
292
293
|
map,
|
|
293
294
|
makeEquivalence,
|
|
@@ -299,7 +300,7 @@ import {
|
|
|
299
300
|
BadArgument,
|
|
300
301
|
systemError,
|
|
301
302
|
badArgument,
|
|
302
|
-
|
|
303
|
+
makeUnsafe2,
|
|
303
304
|
make8,
|
|
304
305
|
make9,
|
|
305
306
|
sliding,
|
|
@@ -311,7 +312,7 @@ import {
|
|
|
311
312
|
endUnsafe,
|
|
312
313
|
take,
|
|
313
314
|
poll,
|
|
314
|
-
|
|
315
|
+
makeUnsafe3,
|
|
315
316
|
fromTransform,
|
|
316
317
|
mapDone,
|
|
317
318
|
isSink,
|
|
@@ -356,7 +357,7 @@ import {
|
|
|
356
357
|
String2,
|
|
357
358
|
optionalEnv,
|
|
358
359
|
harnessesUnsupportedInSrt2
|
|
359
|
-
} from "./chunk-
|
|
360
|
+
} from "./chunk-mjrr0wzp.js";
|
|
360
361
|
import {
|
|
361
362
|
isRedacted,
|
|
362
363
|
make,
|
|
@@ -370,11 +371,241 @@ import {
|
|
|
370
371
|
make3,
|
|
371
372
|
parseFdName,
|
|
372
373
|
fdName
|
|
373
|
-
} from "./chunk-
|
|
374
|
+
} from "./chunk-p3kwtm82.js";
|
|
374
375
|
|
|
375
376
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
|
|
376
377
|
var makeEquivalence3 = Tuple;
|
|
377
378
|
|
|
379
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Clock.js
|
|
380
|
+
var Clock = ClockRef;
|
|
381
|
+
var currentTimeMillis = currentTimeMillis2;
|
|
382
|
+
|
|
383
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/dateTime.js
|
|
384
|
+
var TypeId = "~effect/DateTime";
|
|
385
|
+
var TimeZoneTypeId = "~effect/DateTime/TimeZone";
|
|
386
|
+
var Proto = {
|
|
387
|
+
[TypeId]: TypeId,
|
|
388
|
+
pipe() {
|
|
389
|
+
return pipeArguments(this, arguments);
|
|
390
|
+
},
|
|
391
|
+
[NodeInspectSymbol]() {
|
|
392
|
+
return this.toString();
|
|
393
|
+
},
|
|
394
|
+
toJSON() {
|
|
395
|
+
return toDateUtc(this).toJSON();
|
|
396
|
+
}
|
|
397
|
+
};
|
|
398
|
+
var ProtoUtc = {
|
|
399
|
+
...Proto,
|
|
400
|
+
_tag: "Utc",
|
|
401
|
+
[symbol]() {
|
|
402
|
+
return number(this.epochMilliseconds);
|
|
403
|
+
},
|
|
404
|
+
[symbol2](that) {
|
|
405
|
+
return isDateTime2(that) && that._tag === "Utc" && this.epochMilliseconds === that.epochMilliseconds;
|
|
406
|
+
},
|
|
407
|
+
toString() {
|
|
408
|
+
return `DateTime.Utc(${toDateUtc(this).toJSON()})`;
|
|
409
|
+
}
|
|
410
|
+
};
|
|
411
|
+
var ProtoZoned = {
|
|
412
|
+
...Proto,
|
|
413
|
+
_tag: "Zoned",
|
|
414
|
+
[symbol]() {
|
|
415
|
+
return combine(number(this.epochMilliseconds))(hash(this.zone));
|
|
416
|
+
},
|
|
417
|
+
[symbol2](that) {
|
|
418
|
+
return isDateTime2(that) && that._tag === "Zoned" && this.epochMilliseconds === that.epochMilliseconds && equals(this.zone, that.zone);
|
|
419
|
+
},
|
|
420
|
+
toString() {
|
|
421
|
+
return `DateTime.Zoned(${formatIsoZoned(this)})`;
|
|
422
|
+
}
|
|
423
|
+
};
|
|
424
|
+
var ProtoTimeZone = {
|
|
425
|
+
[TimeZoneTypeId]: TimeZoneTypeId,
|
|
426
|
+
[NodeInspectSymbol]() {
|
|
427
|
+
return this.toString();
|
|
428
|
+
}
|
|
429
|
+
};
|
|
430
|
+
var ProtoTimeZoneNamed = {
|
|
431
|
+
...ProtoTimeZone,
|
|
432
|
+
_tag: "Named",
|
|
433
|
+
[symbol]() {
|
|
434
|
+
return string(`Named:${this.id}`);
|
|
435
|
+
},
|
|
436
|
+
[symbol2](that) {
|
|
437
|
+
return isTimeZone(that) && that._tag === "Named" && this.id === that.id;
|
|
438
|
+
},
|
|
439
|
+
toString() {
|
|
440
|
+
return `TimeZone.Named(${this.id})`;
|
|
441
|
+
},
|
|
442
|
+
toJSON() {
|
|
443
|
+
return {
|
|
444
|
+
_id: "TimeZone",
|
|
445
|
+
_tag: "Named",
|
|
446
|
+
id: this.id
|
|
447
|
+
};
|
|
448
|
+
}
|
|
449
|
+
};
|
|
450
|
+
var ProtoTimeZoneOffset = {
|
|
451
|
+
...ProtoTimeZone,
|
|
452
|
+
_tag: "Offset",
|
|
453
|
+
[symbol]() {
|
|
454
|
+
return string(`Offset:${this.offset}`);
|
|
455
|
+
},
|
|
456
|
+
[symbol2](that) {
|
|
457
|
+
return isTimeZone(that) && that._tag === "Offset" && this.offset === that.offset;
|
|
458
|
+
},
|
|
459
|
+
toString() {
|
|
460
|
+
return `TimeZone.Offset(${offsetToString(this.offset)})`;
|
|
461
|
+
},
|
|
462
|
+
toJSON() {
|
|
463
|
+
return {
|
|
464
|
+
_id: "TimeZone",
|
|
465
|
+
_tag: "Offset",
|
|
466
|
+
offset: this.offset
|
|
467
|
+
};
|
|
468
|
+
}
|
|
469
|
+
};
|
|
470
|
+
var cacheSlot = {
|
|
471
|
+
value: undefined,
|
|
472
|
+
enumerable: false,
|
|
473
|
+
writable: true
|
|
474
|
+
};
|
|
475
|
+
var sealedCaches = /* @__PURE__ */ new WeakMap;
|
|
476
|
+
var cacheAccessor = (key, slots) => ({
|
|
477
|
+
get() {
|
|
478
|
+
return Object.isExtensible(this) ? undefined : sealedCaches.get(this)?.[key];
|
|
479
|
+
},
|
|
480
|
+
set(value) {
|
|
481
|
+
if (Object.isExtensible(this)) {
|
|
482
|
+
for (const slot of slots) {
|
|
483
|
+
Object.defineProperty(this, slot, cacheSlot);
|
|
484
|
+
}
|
|
485
|
+
this[key] = value;
|
|
486
|
+
} else {
|
|
487
|
+
let caches = sealedCaches.get(this);
|
|
488
|
+
if (caches === undefined) {
|
|
489
|
+
caches = {};
|
|
490
|
+
sealedCaches.set(this, caches);
|
|
491
|
+
}
|
|
492
|
+
caches[key] = value;
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
});
|
|
496
|
+
var zonedSlots = ["partsUtc", "adjustedEpochMilliseconds", "partsAdjusted"];
|
|
497
|
+
Object.defineProperty(ProtoUtc, "partsUtc", cacheAccessor("partsUtc", ["partsUtc"]));
|
|
498
|
+
Object.defineProperties(ProtoZoned, {
|
|
499
|
+
partsUtc: cacheAccessor("partsUtc", zonedSlots),
|
|
500
|
+
adjustedEpochMilliseconds: cacheAccessor("adjustedEpochMilliseconds", zonedSlots),
|
|
501
|
+
partsAdjusted: cacheAccessor("partsAdjusted", zonedSlots)
|
|
502
|
+
});
|
|
503
|
+
var isDateTime2 = (u) => hasProperty(u, TypeId);
|
|
504
|
+
var isTimeZone = (u) => hasProperty(u, TimeZoneTypeId);
|
|
505
|
+
var makeUtc = (epochMillis) => {
|
|
506
|
+
const self = Object.create(ProtoUtc);
|
|
507
|
+
self.epochMilliseconds = epochMillis;
|
|
508
|
+
return self;
|
|
509
|
+
};
|
|
510
|
+
var fromDateUnsafe = (date) => {
|
|
511
|
+
const epochMillis = date.getTime();
|
|
512
|
+
if (Number.isNaN(epochMillis)) {
|
|
513
|
+
throw new IllegalArgumentError("Invalid date");
|
|
514
|
+
}
|
|
515
|
+
return makeUtc(epochMillis);
|
|
516
|
+
};
|
|
517
|
+
var makeUnsafe7 = (input) => {
|
|
518
|
+
if (isDateTime2(input)) {
|
|
519
|
+
return input;
|
|
520
|
+
} else if (input instanceof Date) {
|
|
521
|
+
return fromDateUnsafe(input);
|
|
522
|
+
} else if (typeof input === "object") {
|
|
523
|
+
if ("epochMilliseconds" in input) {
|
|
524
|
+
return fromDateUnsafe(new Date(input.epochMilliseconds));
|
|
525
|
+
}
|
|
526
|
+
const date = new Date(0);
|
|
527
|
+
setPartsDate(date, input);
|
|
528
|
+
return fromDateUnsafe(date);
|
|
529
|
+
} else if (typeof input === "string" && !hasZone(input)) {
|
|
530
|
+
return fromDateUnsafe(new Date(input + "Z"));
|
|
531
|
+
}
|
|
532
|
+
return fromDateUnsafe(new Date(input));
|
|
533
|
+
};
|
|
534
|
+
var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
|
|
535
|
+
var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
|
|
536
|
+
var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
|
|
537
|
+
var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe7);
|
|
538
|
+
var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
|
|
539
|
+
var nowUnsafe = () => makeUtc(Date.now());
|
|
540
|
+
var toDateUtc = (self) => new Date(self.epochMilliseconds);
|
|
541
|
+
var toDate2 = (self) => {
|
|
542
|
+
if (self._tag === "Utc") {
|
|
543
|
+
return new Date(self.epochMilliseconds);
|
|
544
|
+
} else if (self.zone._tag === "Offset") {
|
|
545
|
+
return new Date(self.epochMilliseconds + self.zone.offset);
|
|
546
|
+
} else if (self.adjustedEpochMilliseconds !== undefined) {
|
|
547
|
+
return new Date(self.adjustedEpochMilliseconds);
|
|
548
|
+
}
|
|
549
|
+
let bc = false;
|
|
550
|
+
const parts = self.zone.format.formatToParts(self.epochMilliseconds).filter((_) => {
|
|
551
|
+
if (_.type === "era") {
|
|
552
|
+
bc = _.value === "BC";
|
|
553
|
+
return false;
|
|
554
|
+
}
|
|
555
|
+
return _.type !== "literal";
|
|
556
|
+
});
|
|
557
|
+
const year = Number(parts[2].value);
|
|
558
|
+
const date = new Date(0);
|
|
559
|
+
date.setUTCFullYear(bc ? 1 - year : year, Number(parts[0].value) - 1, Number(parts[1].value));
|
|
560
|
+
date.setUTCHours(Number(parts[3].value), Number(parts[4].value), Number(parts[5].value), parts[6]?.type === "fractionalSecond" ? Number(parts[6].value) : (self.epochMilliseconds % 1000 + 1000) % 1000);
|
|
561
|
+
self.adjustedEpochMilliseconds = date.getTime();
|
|
562
|
+
return date;
|
|
563
|
+
};
|
|
564
|
+
var zonedOffset = (self) => {
|
|
565
|
+
const date = toDate2(self);
|
|
566
|
+
return date.getTime() - toEpochMillis(self);
|
|
567
|
+
};
|
|
568
|
+
var offsetToString = (offset) => {
|
|
569
|
+
const abs = Math.abs(offset);
|
|
570
|
+
let hours = Math.floor(abs / (60 * 60 * 1000));
|
|
571
|
+
let minutes = Math.round(abs % (60 * 60 * 1000) / (60 * 1000));
|
|
572
|
+
if (minutes === 60) {
|
|
573
|
+
hours += 1;
|
|
574
|
+
minutes = 0;
|
|
575
|
+
}
|
|
576
|
+
return `${offset < 0 ? "-" : "+"}${String(hours).padStart(2, "0")}:${String(minutes).padStart(2, "0")}`;
|
|
577
|
+
};
|
|
578
|
+
var zonedOffsetIso = (self) => offsetToString(zonedOffset(self));
|
|
579
|
+
var toEpochMillis = (self) => self.epochMilliseconds;
|
|
580
|
+
var setPartsDate = (date, parts) => {
|
|
581
|
+
if (parts.year !== undefined || parts.month !== undefined || parts.day !== undefined) {
|
|
582
|
+
date.setUTCFullYear(parts.year ?? date.getUTCFullYear(), parts.month !== undefined ? parts.month - 1 : date.getUTCMonth(), parts.day ?? date.getUTCDate());
|
|
583
|
+
}
|
|
584
|
+
if (parts.weekDay !== undefined) {
|
|
585
|
+
const diff = parts.weekDay - date.getUTCDay();
|
|
586
|
+
date.setUTCDate(date.getUTCDate() + diff);
|
|
587
|
+
}
|
|
588
|
+
if (parts.hour !== undefined) {
|
|
589
|
+
date.setUTCHours(parts.hour);
|
|
590
|
+
}
|
|
591
|
+
if (parts.minute !== undefined) {
|
|
592
|
+
date.setUTCMinutes(parts.minute);
|
|
593
|
+
}
|
|
594
|
+
if (parts.second !== undefined) {
|
|
595
|
+
date.setUTCSeconds(parts.second);
|
|
596
|
+
}
|
|
597
|
+
if (parts.millisecond !== undefined) {
|
|
598
|
+
date.setUTCMilliseconds(parts.millisecond);
|
|
599
|
+
}
|
|
600
|
+
};
|
|
601
|
+
var constDayMillis = 24 * 60 * 60 * 1000;
|
|
602
|
+
var formatIso2 = (self) => toDateUtc(self).toISOString();
|
|
603
|
+
var formatIsoOffset = (self) => {
|
|
604
|
+
const date = toDate2(self);
|
|
605
|
+
return self._tag === "Utc" ? date.toISOString() : `${date.toISOString().slice(0, -1)}${zonedOffsetIso(self)}`;
|
|
606
|
+
};
|
|
607
|
+
var formatIsoZoned = (self) => self.zone._tag === "Offset" ? formatIsoOffset(self) : `${formatIsoOffset(self)}[${self.zone.id}]`;
|
|
608
|
+
|
|
378
609
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Metric.js
|
|
379
610
|
var CurrentMetricAttributesKey = "effect/Metric/CurrentMetricAttributes";
|
|
380
611
|
var CurrentMetricAttributes = /* @__PURE__ */ Reference(CurrentMetricAttributesKey, {
|
|
@@ -384,10 +615,10 @@ var MetricRegistryKey = "effect/Metric/MetricRegistry";
|
|
|
384
615
|
var MetricRegistry = /* @__PURE__ */ Reference(MetricRegistryKey, {
|
|
385
616
|
defaultValue: () => new Map
|
|
386
617
|
});
|
|
387
|
-
var
|
|
618
|
+
var TypeId2 = "~effect/Metric";
|
|
388
619
|
|
|
389
620
|
class Metric$ {
|
|
390
|
-
[
|
|
621
|
+
[TypeId2] = TypeId2;
|
|
391
622
|
#extraAttributes;
|
|
392
623
|
#mergedAttributes;
|
|
393
624
|
#key = "";
|
|
@@ -692,7 +923,7 @@ var toNumber = (b) => {
|
|
|
692
923
|
};
|
|
693
924
|
|
|
694
925
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
|
|
695
|
-
var
|
|
926
|
+
var TypeId3 = "~effect/RcRef";
|
|
696
927
|
var stateEmpty = {
|
|
697
928
|
_tag: "Empty"
|
|
698
929
|
};
|
|
@@ -705,7 +936,7 @@ var variance = {
|
|
|
705
936
|
};
|
|
706
937
|
|
|
707
938
|
class RcRefImpl {
|
|
708
|
-
[
|
|
939
|
+
[TypeId3] = variance;
|
|
709
940
|
pipe() {
|
|
710
941
|
return pipeArguments(this, arguments);
|
|
711
942
|
}
|
|
@@ -721,7 +952,7 @@ class RcRefImpl {
|
|
|
721
952
|
this.idleTimeToLive = idleTimeToLive;
|
|
722
953
|
}
|
|
723
954
|
}
|
|
724
|
-
var
|
|
955
|
+
var make17 = (options) => withFiber2((fiber) => {
|
|
725
956
|
const context = fiber.context;
|
|
726
957
|
const scope = get3(context, Scope);
|
|
727
958
|
const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
|
|
@@ -758,7 +989,7 @@ var getState = (self, restore) => {
|
|
|
758
989
|
acquired: undefined
|
|
759
990
|
};
|
|
760
991
|
self.state = acquiring;
|
|
761
|
-
const scope =
|
|
992
|
+
const scope = makeUnsafe6();
|
|
762
993
|
const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
|
|
763
994
|
if (self.state !== acquiring) {
|
|
764
995
|
return interrupt3;
|
|
@@ -830,9 +1061,18 @@ var release = (self, state) => {
|
|
|
830
1061
|
};
|
|
831
1062
|
|
|
832
1063
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
|
|
833
|
-
var make18 =
|
|
1064
|
+
var make18 = make17;
|
|
834
1065
|
var get5 = get4;
|
|
835
1066
|
|
|
1067
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
|
|
1068
|
+
var makeUnsafe = makeUnsafe7;
|
|
1069
|
+
var make19 = make4;
|
|
1070
|
+
var now2 = now;
|
|
1071
|
+
var nowUnsafe2 = nowUnsafe;
|
|
1072
|
+
var toDateUtc2 = toDateUtc;
|
|
1073
|
+
var toEpochMillis2 = toEpochMillis;
|
|
1074
|
+
var formatIso = formatIso2;
|
|
1075
|
+
|
|
836
1076
|
// node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeChildProcessSpawner.js
|
|
837
1077
|
import * as NodeChildProcess from "child_process";
|
|
838
1078
|
import { PassThrough } from "stream";
|
|
@@ -947,8 +1187,8 @@ var releaseWritable = (writable) => callback3((resume) => {
|
|
|
947
1187
|
});
|
|
948
1188
|
var pullIntoWritable = (options) => withFiber2((fiber) => {
|
|
949
1189
|
const dispatcher = fiber.currentDispatcher;
|
|
950
|
-
const completion =
|
|
951
|
-
const failure =
|
|
1190
|
+
const completion = makeUnsafe5();
|
|
1191
|
+
const failure = makeUnsafe5();
|
|
952
1192
|
const onError = (error) => doneUnsafe(failure, failSync(() => options.onError(error)));
|
|
953
1193
|
let errorEmitted = false;
|
|
954
1194
|
const onStreamError = (error) => {
|
|
@@ -1042,7 +1282,7 @@ var readableToPullUnsafe = (options) => {
|
|
|
1042
1282
|
const chunkSize = options.chunkSize ?? 4096;
|
|
1043
1283
|
const closeOnDone = options.closeOnDone ?? true;
|
|
1044
1284
|
const exit = options.exit ?? make8(undefined);
|
|
1045
|
-
const latch = options.latch ??
|
|
1285
|
+
const latch = options.latch ?? makeUnsafe2(false);
|
|
1046
1286
|
function onReadable() {
|
|
1047
1287
|
latch.openUnsafe();
|
|
1048
1288
|
}
|
|
@@ -1145,7 +1385,7 @@ var taskkill = (childProcess, onExit = () => {}) => {
|
|
|
1145
1385
|
windowsHide: true
|
|
1146
1386
|
}, onExit);
|
|
1147
1387
|
};
|
|
1148
|
-
var
|
|
1388
|
+
var make20 = /* @__PURE__ */ gen(function* () {
|
|
1149
1389
|
const fs = yield* FileSystem;
|
|
1150
1390
|
const path = yield* Path;
|
|
1151
1391
|
const resolveWorkingDirectory = fnUntraced(function* (options) {
|
|
@@ -1272,7 +1512,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1272
1512
|
});
|
|
1273
1513
|
}
|
|
1274
1514
|
if (stream) {
|
|
1275
|
-
return
|
|
1515
|
+
return map8(runInputStream(stream, sink, inputFailure), () => {
|
|
1276
1516
|
inputSinks.set(fd, sink);
|
|
1277
1517
|
});
|
|
1278
1518
|
}
|
|
@@ -1378,7 +1618,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1378
1618
|
};
|
|
1379
1619
|
};
|
|
1380
1620
|
const spawn2 = (command, spawnOptions) => callback3((resume) => {
|
|
1381
|
-
const deferred =
|
|
1621
|
+
const deferred = makeUnsafe5();
|
|
1382
1622
|
const handle = NodeChildProcess.spawn(command.command, command.args.map(unwrap2), spawnOptions);
|
|
1383
1623
|
handle.on("error", (error) => {
|
|
1384
1624
|
if (command.args.some(isRedacted)) {
|
|
@@ -1554,7 +1794,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1554
1794
|
}
|
|
1555
1795
|
return reref;
|
|
1556
1796
|
});
|
|
1557
|
-
const inputFailure =
|
|
1797
|
+
const inputFailure = makeUnsafe5();
|
|
1558
1798
|
const stdin = yield* setupChildStdin(cmd, childProcess, stdinConfig, inputFailure);
|
|
1559
1799
|
const {
|
|
1560
1800
|
all,
|
|
@@ -1565,7 +1805,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1565
1805
|
getInputFd,
|
|
1566
1806
|
getOutputFd
|
|
1567
1807
|
} = yield* setupAdditionalFds(cmd, childProcess, resolvedAdditionalFds, inputFailure);
|
|
1568
|
-
const isRunning =
|
|
1808
|
+
const isRunning = map8(isDone(exitSignal), (done) => !done);
|
|
1569
1809
|
const exitCode = flatMap3(raceFirst(_await(exitSignal), _await(inputFailure)), ([code, signal]) => {
|
|
1570
1810
|
if (isDoneUnsafe(inputFailure)) {
|
|
1571
1811
|
return _await(inputFailure);
|
|
@@ -1674,7 +1914,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1674
1914
|
});
|
|
1675
1915
|
return make2(spawnCommand);
|
|
1676
1916
|
});
|
|
1677
|
-
var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner,
|
|
1917
|
+
var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make20);
|
|
1678
1918
|
var flattenCommand = (command) => {
|
|
1679
1919
|
const commands = [];
|
|
1680
1920
|
const pipeOptions = [];
|
|
@@ -1846,7 +2086,7 @@ var noFollowFlags = (method, flag) => suspend3(() => {
|
|
|
1846
2086
|
var openFactory = (method) => {
|
|
1847
2087
|
const nodeOpen = effectify(NFS.open, handleErrnoException("FileSystem", method), handleBadArgument(method));
|
|
1848
2088
|
const nodeClose = effectify(NFS.close, handleErrnoException("FileSystem", method), handleBadArgument(method));
|
|
1849
|
-
return (path, options) => pipe(acquireRelease(options?.noFollow === true ? flatMap3(noFollowFlags(method, options.flag ?? "r"), (flags) => nodeOpen(path, flags, options.mode)) : nodeOpen(path, options?.flag ?? "r", options?.mode), (fd) => orDie(nodeClose(fd))),
|
|
2089
|
+
return (path, options) => pipe(acquireRelease(options?.noFollow === true ? flatMap3(noFollowFlags(method, options.flag ?? "r"), (flags) => nodeOpen(path, flags, options.mode)) : nodeOpen(path, options?.flag ?? "r", options?.mode), (fd) => orDie(nodeClose(fd))), map8((fd) => makeFile(fd, options?.flag?.startsWith("a") ?? false)));
|
|
1850
2090
|
};
|
|
1851
2091
|
var open2 = /* @__PURE__ */ openFactory("open");
|
|
1852
2092
|
var negativePosition = (method) => badArgument({
|
|
@@ -1907,7 +2147,7 @@ var makeFile = /* @__PURE__ */ (() => {
|
|
|
1907
2147
|
});
|
|
1908
2148
|
}
|
|
1909
2149
|
const position = this.position;
|
|
1910
|
-
return
|
|
2150
|
+
return map8(nodeRead(this.fd, {
|
|
1911
2151
|
buffer,
|
|
1912
2152
|
position
|
|
1913
2153
|
}), (bytesRead) => {
|
|
@@ -1928,7 +2168,7 @@ var makeFile = /* @__PURE__ */ (() => {
|
|
|
1928
2168
|
}
|
|
1929
2169
|
const buffer = Buffer.allocUnsafeSlow(size);
|
|
1930
2170
|
const position = explicit ?? this.position;
|
|
1931
|
-
return
|
|
2171
|
+
return map8(nodeReadAlloc(this.fd, {
|
|
1932
2172
|
buffer,
|
|
1933
2173
|
position
|
|
1934
2174
|
}), (bytesRead) => {
|
|
@@ -1951,7 +2191,7 @@ var makeFile = /* @__PURE__ */ (() => {
|
|
|
1951
2191
|
});
|
|
1952
2192
|
}
|
|
1953
2193
|
truncate(length) {
|
|
1954
|
-
return
|
|
2194
|
+
return map8(nodeTruncate(this.fd, length || undefined), () => {
|
|
1955
2195
|
if (!this.append) {
|
|
1956
2196
|
const len = BigInt(length ?? 0);
|
|
1957
2197
|
if (this.position > len) {
|
|
@@ -1963,7 +2203,7 @@ var makeFile = /* @__PURE__ */ (() => {
|
|
|
1963
2203
|
write(buffer) {
|
|
1964
2204
|
return suspend3(() => {
|
|
1965
2205
|
const position = this.position;
|
|
1966
|
-
return flatMap3(this.append ? succeed6(undefined) : positionToNumber(position, "write"), (nodePosition) =>
|
|
2206
|
+
return flatMap3(this.append ? succeed6(undefined) : positionToNumber(position, "write"), (nodePosition) => map8(nodeWrite(this.fd, buffer, undefined, undefined, nodePosition), (bytesWritten) => {
|
|
1967
2207
|
if (!this.append) {
|
|
1968
2208
|
this.position = position + BigInt(bytesWritten);
|
|
1969
2209
|
}
|
|
@@ -2025,7 +2265,7 @@ var readDirectoryEntries = (path) => tryPromise({
|
|
|
2025
2265
|
withFileTypes: true
|
|
2026
2266
|
}),
|
|
2027
2267
|
catch: (err) => handleErrnoException("FileSystem", "readDirectoryEntries")(err, [path])
|
|
2028
|
-
}).pipe(
|
|
2268
|
+
}).pipe(map8((entries) => entries.map((entry) => ({
|
|
2029
2269
|
name: entry.name,
|
|
2030
2270
|
type: fileType(entry)
|
|
2031
2271
|
}))));
|
|
@@ -2140,7 +2380,7 @@ var watchNode = (path, info, options) => callback((queue) => acquireRelease(sync
|
|
|
2140
2380
|
});
|
|
2141
2381
|
return watcher;
|
|
2142
2382
|
}), (watcher) => sync2(() => watcher.close())).pipe(tap2(() => sync2(() => options?.onReady?.()))));
|
|
2143
|
-
var watch2 = (backend, path, options) => all3([stat2(path), serviceOption(WatchBackend)]).pipe(
|
|
2383
|
+
var watch2 = (backend, path, options) => all3([stat2(path), serviceOption(WatchBackend)]).pipe(map8(([stat, callerBackend]) => orElse(callerBackend, () => backend).pipe(flatMap((_) => _.register(path, stat, options)), getOrElse(() => watchNode(path, stat, options)))), unwrap);
|
|
2144
2384
|
var writeFile2 = (path, data, options) => callback3((resume, signal) => {
|
|
2145
2385
|
try {
|
|
2146
2386
|
NFS.writeFile(path, data, {
|
|
@@ -2158,7 +2398,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
|
|
|
2158
2398
|
resume(fail7(handleBadArgument("writeFile")(err)));
|
|
2159
2399
|
}
|
|
2160
2400
|
});
|
|
2161
|
-
var makeFileSystem = /* @__PURE__ */
|
|
2401
|
+
var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make11({
|
|
2162
2402
|
access: access2,
|
|
2163
2403
|
chmod: chmod2,
|
|
2164
2404
|
chown: chown2,
|
|
@@ -2235,10 +2475,10 @@ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
|
|
|
2235
2475
|
var layer2 = layer7;
|
|
2236
2476
|
|
|
2237
2477
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stdio.js
|
|
2238
|
-
var
|
|
2239
|
-
var Stdio = /* @__PURE__ */ Service2(
|
|
2240
|
-
var
|
|
2241
|
-
[
|
|
2478
|
+
var TypeId4 = "~effect/Stdio";
|
|
2479
|
+
var Stdio = /* @__PURE__ */ Service2(TypeId4);
|
|
2480
|
+
var make21 = (options) => ({
|
|
2481
|
+
[TypeId4]: TypeId4,
|
|
2242
2482
|
stdinIsTerminal: succeed6(false),
|
|
2243
2483
|
stdoutIsTerminal: succeed6(false),
|
|
2244
2484
|
stderrIsTerminal: succeed6(false),
|
|
@@ -2246,7 +2486,7 @@ var make20 = (options) => ({
|
|
|
2246
2486
|
});
|
|
2247
2487
|
|
|
2248
2488
|
// node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
|
|
2249
|
-
var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */
|
|
2489
|
+
var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make21({
|
|
2250
2490
|
args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
|
|
2251
2491
|
stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
|
|
2252
2492
|
stdoutIsTerminal: /* @__PURE__ */ sync2(() => process.stdout.isTTY === true),
|
|
@@ -2446,7 +2686,7 @@ var makeUuid = (bytes, randomBytes, format) => {
|
|
|
2446
2686
|
const uuid = bytes(randomBytes(16));
|
|
2447
2687
|
return format === "bytes" ? uuid : stringify(uuid);
|
|
2448
2688
|
};
|
|
2449
|
-
var
|
|
2689
|
+
var make22 = (randomBytes) => {
|
|
2450
2690
|
const randomBytesChecked = (size) => {
|
|
2451
2691
|
checkSize(size);
|
|
2452
2692
|
return randomBytes(size);
|
|
@@ -2480,13 +2720,13 @@ var fillRandom = (crypto2, size) => {
|
|
|
2480
2720
|
}
|
|
2481
2721
|
return bytes;
|
|
2482
2722
|
};
|
|
2483
|
-
var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(
|
|
2723
|
+
var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make22((size) => fillRandom(crypto2, size)))));
|
|
2484
2724
|
|
|
2485
2725
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
|
|
2486
|
-
var
|
|
2726
|
+
var TypeId5 = "~effect/http/Cookies";
|
|
2487
2727
|
var CookieTypeId = "~effect/http/Cookies/Cookie";
|
|
2488
|
-
var
|
|
2489
|
-
[
|
|
2728
|
+
var Proto2 = {
|
|
2729
|
+
[TypeId5]: TypeId5,
|
|
2490
2730
|
...BaseProto,
|
|
2491
2731
|
toJSON() {
|
|
2492
2732
|
return {
|
|
@@ -2499,7 +2739,7 @@ var Proto = {
|
|
|
2499
2739
|
}
|
|
2500
2740
|
};
|
|
2501
2741
|
var fromReadonlyRecord = (cookies) => {
|
|
2502
|
-
const self = Object.create(
|
|
2742
|
+
const self = Object.create(Proto2);
|
|
2503
2743
|
self.cookies = cookies;
|
|
2504
2744
|
return self;
|
|
2505
2745
|
};
|
|
@@ -2665,10 +2905,10 @@ var tryDecodeURIComponent = (str) => {
|
|
|
2665
2905
|
};
|
|
2666
2906
|
|
|
2667
2907
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Headers.js
|
|
2668
|
-
var
|
|
2669
|
-
var
|
|
2670
|
-
[
|
|
2671
|
-
value:
|
|
2908
|
+
var TypeId6 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
|
|
2909
|
+
var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
|
|
2910
|
+
[TypeId6]: {
|
|
2911
|
+
value: TypeId6
|
|
2672
2912
|
},
|
|
2673
2913
|
[symbolRedactable]: {
|
|
2674
2914
|
value(context) {
|
|
@@ -2682,7 +2922,7 @@ var Proto2 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
|
|
|
2682
2922
|
},
|
|
2683
2923
|
[symbol2]: {
|
|
2684
2924
|
value(that) {
|
|
2685
|
-
return
|
|
2925
|
+
return Equivalence2(this, that);
|
|
2686
2926
|
}
|
|
2687
2927
|
},
|
|
2688
2928
|
[symbol]: {
|
|
@@ -2697,20 +2937,20 @@ var Proto2 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
|
|
|
2697
2937
|
value: BaseProto[NodeInspectSymbol]
|
|
2698
2938
|
}
|
|
2699
2939
|
});
|
|
2700
|
-
var
|
|
2701
|
-
var
|
|
2702
|
-
var empty = /* @__PURE__ */ Object.create(
|
|
2940
|
+
var make23 = (input) => Object.assign(Object.create(Proto3), input);
|
|
2941
|
+
var Equivalence2 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
|
|
2942
|
+
var empty = /* @__PURE__ */ Object.create(Proto3);
|
|
2703
2943
|
var fromInput = (input) => {
|
|
2704
2944
|
if (input === undefined) {
|
|
2705
2945
|
return empty;
|
|
2706
2946
|
} else if (Symbol.iterator in input) {
|
|
2707
|
-
const out = Object.create(
|
|
2947
|
+
const out = Object.create(Proto3);
|
|
2708
2948
|
for (const [k, v] of input) {
|
|
2709
2949
|
out[k.toLowerCase()] = v;
|
|
2710
2950
|
}
|
|
2711
2951
|
return out;
|
|
2712
2952
|
}
|
|
2713
|
-
const out = Object.create(
|
|
2953
|
+
const out = Object.create(Proto3);
|
|
2714
2954
|
for (const [k, v] of Object.entries(input)) {
|
|
2715
2955
|
if (Array.isArray(v)) {
|
|
2716
2956
|
out[k.toLowerCase()] = v.join(", ");
|
|
@@ -2720,23 +2960,23 @@ var fromInput = (input) => {
|
|
|
2720
2960
|
}
|
|
2721
2961
|
return out;
|
|
2722
2962
|
};
|
|
2723
|
-
var fromRecordUnsafe = (input) => Object.setPrototypeOf(input,
|
|
2963
|
+
var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto3);
|
|
2724
2964
|
var set = /* @__PURE__ */ dual(3, (self, key, value) => {
|
|
2725
|
-
const out =
|
|
2965
|
+
const out = make23(self);
|
|
2726
2966
|
out[key.toLowerCase()] = value;
|
|
2727
2967
|
return out;
|
|
2728
2968
|
});
|
|
2729
|
-
var setAll = /* @__PURE__ */ dual(2, (self, headers) =>
|
|
2969
|
+
var setAll = /* @__PURE__ */ dual(2, (self, headers) => make23({
|
|
2730
2970
|
...self,
|
|
2731
2971
|
...fromInput(headers)
|
|
2732
2972
|
}));
|
|
2733
2973
|
var merge = /* @__PURE__ */ dual(2, (self, headers) => {
|
|
2734
|
-
const out =
|
|
2974
|
+
const out = make23(self);
|
|
2735
2975
|
Object.assign(out, headers);
|
|
2736
2976
|
return out;
|
|
2737
2977
|
});
|
|
2738
2978
|
var remove2 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
2739
|
-
const out =
|
|
2979
|
+
const out = make23(self);
|
|
2740
2980
|
delete out[key.toLowerCase()];
|
|
2741
2981
|
return out;
|
|
2742
2982
|
});
|
|
@@ -2793,11 +3033,11 @@ var bodyDecoder = /* @__PURE__ */ new TextDecoder("utf-8", {
|
|
|
2793
3033
|
var fromBody = (bytes) => new URLSearchParams(bodyDecoder.decode(bytes).replace(/^\?/, "%3F"));
|
|
2794
3034
|
|
|
2795
3035
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/UrlParams.js
|
|
2796
|
-
var
|
|
2797
|
-
var isUrlParams = (u) => hasProperty(u,
|
|
2798
|
-
var
|
|
3036
|
+
var TypeId7 = "~effect/http/UrlParams";
|
|
3037
|
+
var isUrlParams = (u) => hasProperty(u, TypeId7);
|
|
3038
|
+
var Proto4 = {
|
|
2799
3039
|
...PipeInspectableProto,
|
|
2800
|
-
[
|
|
3040
|
+
[TypeId7]: TypeId7,
|
|
2801
3041
|
[Symbol.iterator]() {
|
|
2802
3042
|
return this.params[Symbol.iterator]();
|
|
2803
3043
|
},
|
|
@@ -2811,14 +3051,14 @@ var Proto3 = {
|
|
|
2811
3051
|
return redact(this);
|
|
2812
3052
|
},
|
|
2813
3053
|
[symbol2](that) {
|
|
2814
|
-
return
|
|
3054
|
+
return Equivalence3(this, that);
|
|
2815
3055
|
},
|
|
2816
3056
|
[symbol]() {
|
|
2817
3057
|
return array(this.params.flat());
|
|
2818
3058
|
}
|
|
2819
3059
|
};
|
|
2820
|
-
var
|
|
2821
|
-
const self = Object.create(
|
|
3060
|
+
var make24 = (params) => {
|
|
3061
|
+
const self = Object.create(Proto4);
|
|
2822
3062
|
self.params = params;
|
|
2823
3063
|
return self;
|
|
2824
3064
|
};
|
|
@@ -2836,7 +3076,7 @@ var fromInput2 = (input) => {
|
|
|
2836
3076
|
out.push(parsed[i]);
|
|
2837
3077
|
}
|
|
2838
3078
|
}
|
|
2839
|
-
return
|
|
3079
|
+
return make24(out);
|
|
2840
3080
|
};
|
|
2841
3081
|
var fromInputNested = (input) => {
|
|
2842
3082
|
const entries = typeof input[Symbol.iterator] === "function" ? fromIterable(input) : Object.entries(input);
|
|
@@ -2860,9 +3100,9 @@ var fromInputNested = (input) => {
|
|
|
2860
3100
|
return out;
|
|
2861
3101
|
};
|
|
2862
3102
|
var coerce = (value) => isRedacted(value) ? value : String(value);
|
|
2863
|
-
var
|
|
3103
|
+
var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
|
|
2864
3104
|
var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
|
|
2865
|
-
var empty4 = /* @__PURE__ */
|
|
3105
|
+
var empty4 = /* @__PURE__ */ make24([]);
|
|
2866
3106
|
var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
2867
3107
|
const params = fromInput2(input).params.slice();
|
|
2868
3108
|
const keys = new Set;
|
|
@@ -2874,7 +3114,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
|
2874
3114
|
continue;
|
|
2875
3115
|
params.push(self.params[i]);
|
|
2876
3116
|
}
|
|
2877
|
-
return
|
|
3117
|
+
return make24(params);
|
|
2878
3118
|
});
|
|
2879
3119
|
var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
|
|
2880
3120
|
var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
@@ -2936,7 +3176,7 @@ var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/Cur
|
|
|
2936
3176
|
});
|
|
2937
3177
|
|
|
2938
3178
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Terminal.js
|
|
2939
|
-
var
|
|
3179
|
+
var TypeId8 = "~effect/Terminal";
|
|
2940
3180
|
var QuitErrorTypeId = "~effect/Terminal/QuitError";
|
|
2941
3181
|
|
|
2942
3182
|
class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
|
|
@@ -2945,14 +3185,14 @@ class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
|
|
|
2945
3185
|
[QuitErrorTypeId] = QuitErrorTypeId;
|
|
2946
3186
|
}
|
|
2947
3187
|
var Terminal = /* @__PURE__ */ Service2("effect/Terminal");
|
|
2948
|
-
var
|
|
3188
|
+
var make25 = (impl) => Terminal.of({
|
|
2949
3189
|
...impl,
|
|
2950
|
-
[
|
|
3190
|
+
[TypeId8]: TypeId8
|
|
2951
3191
|
});
|
|
2952
3192
|
|
|
2953
3193
|
// node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
|
|
2954
3194
|
import * as readline from "readline";
|
|
2955
|
-
var
|
|
3195
|
+
var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
|
|
2956
3196
|
const stdin = process.stdin;
|
|
2957
3197
|
const stdout = process.stdout;
|
|
2958
3198
|
const lines = yield* make9();
|
|
@@ -3074,7 +3314,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3074
3314
|
cause: err
|
|
3075
3315
|
}))));
|
|
3076
3316
|
}));
|
|
3077
|
-
return
|
|
3317
|
+
return make25({
|
|
3078
3318
|
columns,
|
|
3079
3319
|
rows,
|
|
3080
3320
|
size,
|
|
@@ -3083,7 +3323,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3083
3323
|
display
|
|
3084
3324
|
});
|
|
3085
3325
|
});
|
|
3086
|
-
var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */
|
|
3326
|
+
var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make26(defaultShouldQuit));
|
|
3087
3327
|
function defaultShouldQuit(input) {
|
|
3088
3328
|
const key = input.key;
|
|
3089
3329
|
return key.name === "escape" || key.ctrl && (key.name === "c" || key.name === "d");
|
|
@@ -3107,17 +3347,17 @@ var log = (...args) => consoleWith((console) => sync(() => {
|
|
|
3107
3347
|
|
|
3108
3348
|
// packages/core/src/time.ts
|
|
3109
3349
|
function toDate(input) {
|
|
3110
|
-
return
|
|
3350
|
+
return toDateUtc2(makeUnsafe(input));
|
|
3111
3351
|
}
|
|
3112
3352
|
function parseDate(input) {
|
|
3113
|
-
return getOrUndefined(map4(
|
|
3353
|
+
return getOrUndefined(map4(make19(input), toDateUtc2));
|
|
3114
3354
|
}
|
|
3115
3355
|
function toIso(input) {
|
|
3116
|
-
return formatIso(
|
|
3356
|
+
return formatIso(makeUnsafe(input));
|
|
3117
3357
|
}
|
|
3118
|
-
var currentDate =
|
|
3358
|
+
var currentDate = map8(now2, toDateUtc2);
|
|
3119
3359
|
function wallClockMillis() {
|
|
3120
|
-
return
|
|
3360
|
+
return toEpochMillis2(nowUnsafe2());
|
|
3121
3361
|
}
|
|
3122
3362
|
|
|
3123
3363
|
// packages/core/src/waiting-on.ts
|
|
@@ -4549,6 +4789,25 @@ function normalizedSecretKey(key) {
|
|
|
4549
4789
|
return key.replace(/([a-z0-9])([A-Z])/g, "$1_$2").replace(/[-\s]+/g, "_").toLowerCase();
|
|
4550
4790
|
}
|
|
4551
4791
|
|
|
4792
|
+
// packages/core/src/network-host.ts
|
|
4793
|
+
var label = "[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?";
|
|
4794
|
+
var port = "(?:[1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])";
|
|
4795
|
+
var NetworkHost = String4.check(isMaxLength(260), isPattern(new RegExp(`^(?:localhost|${label}(?:\\.${label})+|\\*\\.${label}\\.${label}(?:\\.${label})*)(?::${port})?$`, "u")));
|
|
4796
|
+
var NetworkHostScope = Union([Struct({ teamId: Id }), Struct({ repoBindingId: Id })]);
|
|
4797
|
+
var NetworkHostSummary = Struct({
|
|
4798
|
+
host: NetworkHost,
|
|
4799
|
+
teamId: optionalKey(Id),
|
|
4800
|
+
repoBindingId: optionalKey(Id),
|
|
4801
|
+
addedByActorType: ActorType,
|
|
4802
|
+
addedByActorId: String4,
|
|
4803
|
+
addedAt: Timestamp
|
|
4804
|
+
});
|
|
4805
|
+
var NetworkHostList = Struct({ items: ArraySchema(NetworkHostSummary) });
|
|
4806
|
+
var NetworkHostQuery = Struct({
|
|
4807
|
+
teamId: optionalKey(Id),
|
|
4808
|
+
repoBindingId: optionalKey(Id)
|
|
4809
|
+
});
|
|
4810
|
+
|
|
4552
4811
|
// packages/core/src/task-key.ts
|
|
4553
4812
|
var TaskKeyPattern = /^[A-Z][A-Z0-9]{1,11}-[1-9][0-9]*$/;
|
|
4554
4813
|
var TaskKey = String4.check(isPattern(new RegExp(TaskKeyPattern.source, "u")));
|
|
@@ -6485,25 +6744,6 @@ var RunActionSummary = Struct({
|
|
|
6485
6744
|
var RunActionList = Struct({ items: ArraySchema(RunActionSummary) });
|
|
6486
6745
|
var RunActionTaken = Struct({ action: String4, run: Run });
|
|
6487
6746
|
|
|
6488
|
-
// packages/core/src/network-host.ts
|
|
6489
|
-
var label = "[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?";
|
|
6490
|
-
var port = "(?:[1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])";
|
|
6491
|
-
var NetworkHost = String4.check(isMaxLength(260), isPattern(new RegExp(`^(?:localhost|${label}(?:\\.${label})+|\\*\\.${label}\\.${label}(?:\\.${label})*)(?::${port})?$`, "u")));
|
|
6492
|
-
var NetworkHostScope = Union([Struct({ teamId: Id }), Struct({ repoBindingId: Id })]);
|
|
6493
|
-
var NetworkHostSummary = Struct({
|
|
6494
|
-
host: NetworkHost,
|
|
6495
|
-
teamId: optionalKey(Id),
|
|
6496
|
-
repoBindingId: optionalKey(Id),
|
|
6497
|
-
addedByActorType: ActorType,
|
|
6498
|
-
addedByActorId: String4,
|
|
6499
|
-
addedAt: Timestamp
|
|
6500
|
-
});
|
|
6501
|
-
var NetworkHostList = Struct({ items: ArraySchema(NetworkHostSummary) });
|
|
6502
|
-
var NetworkHostQuery = Struct({
|
|
6503
|
-
teamId: optionalKey(Id),
|
|
6504
|
-
repoBindingId: optionalKey(Id)
|
|
6505
|
-
});
|
|
6506
|
-
|
|
6507
6747
|
// packages/core/src/test-report.ts
|
|
6508
6748
|
var isTestReportName = (name) => /junit.*\.xml$/iu.test(name);
|
|
6509
6749
|
var maxSkippedTests = 1e4;
|
|
@@ -6583,7 +6823,7 @@ var WorkUnitLease = Struct({
|
|
|
6583
6823
|
leaseExpiresAt: Timestamp,
|
|
6584
6824
|
lastHeartbeatAt: Timestamp
|
|
6585
6825
|
});
|
|
6586
|
-
var WorkUnitLeaseProjection = Struct(
|
|
6826
|
+
var WorkUnitLeaseProjection = Struct(map9(WorkUnitLease.fields, optionalKey));
|
|
6587
6827
|
var WorkUnitRepoBinding = Struct({
|
|
6588
6828
|
id: Id,
|
|
6589
6829
|
provider: RepoBindingProvider,
|
|
@@ -6851,7 +7091,8 @@ var RunnerProblemCodes = [
|
|
|
6851
7091
|
"herdr_core_missing",
|
|
6852
7092
|
"update_failed",
|
|
6853
7093
|
"processes_unreaped",
|
|
6854
|
-
"processes_uncontained"
|
|
7094
|
+
"processes_uncontained",
|
|
7095
|
+
"full_access_refused"
|
|
6855
7096
|
];
|
|
6856
7097
|
var RunnerProblemText = String4.check(isMinLength(1), isMaxLength(500));
|
|
6857
7098
|
var RunnerProblemReport = Struct({
|
|
@@ -7094,6 +7335,57 @@ var RunnerCapabilities = Struct({
|
|
|
7094
7335
|
measure: optionalKey(Boolean2),
|
|
7095
7336
|
resolve: optionalKey(Boolean2)
|
|
7096
7337
|
});
|
|
7338
|
+
var MaxRunnerConcurrency = 4;
|
|
7339
|
+
var PinnedImage = String4.check(isMaxLength(500), isPattern(new RegExp("^[^\\s@]+@sha256:[a-f0-9]{64}$", "u")));
|
|
7340
|
+
var RunnerSettings = Struct({
|
|
7341
|
+
concurrency: Int.check(isGreaterThanOrEqualTo(1), isLessThanOrEqualTo(MaxRunnerConcurrency)),
|
|
7342
|
+
sandbox: RunnerExecutionBackend,
|
|
7343
|
+
dockerImage: NullOr(PinnedImage),
|
|
7344
|
+
checkHosts: ArraySchema(NetworkHost).check(isMaxLength(50)),
|
|
7345
|
+
checkDockerImage: NullOr(PinnedImage),
|
|
7346
|
+
checkRegistryImage: NullOr(PinnedImage)
|
|
7347
|
+
});
|
|
7348
|
+
var RunnerSettingNames = [
|
|
7349
|
+
"concurrency",
|
|
7350
|
+
"sandbox",
|
|
7351
|
+
"dockerImage",
|
|
7352
|
+
"checkHosts",
|
|
7353
|
+
"checkDockerImage",
|
|
7354
|
+
"checkRegistryImage"
|
|
7355
|
+
];
|
|
7356
|
+
var RunnerSettingsUpdate = Struct({
|
|
7357
|
+
concurrency: optionalKey(RunnerSettings.fields.concurrency),
|
|
7358
|
+
sandbox: optionalKey(RunnerSettings.fields.sandbox),
|
|
7359
|
+
dockerImage: optionalKey(RunnerSettings.fields.dockerImage),
|
|
7360
|
+
checkHosts: optionalKey(RunnerSettings.fields.checkHosts),
|
|
7361
|
+
checkDockerImage: optionalKey(RunnerSettings.fields.checkDockerImage),
|
|
7362
|
+
checkRegistryImage: optionalKey(RunnerSettings.fields.checkRegistryImage)
|
|
7363
|
+
});
|
|
7364
|
+
var RunnerAppliedSettings = Struct({
|
|
7365
|
+
...RunnerSettings.fields,
|
|
7366
|
+
fullAccessAllowed: Boolean2
|
|
7367
|
+
});
|
|
7368
|
+
var defaultRunnerSettings = (personal) => ({
|
|
7369
|
+
concurrency: 1,
|
|
7370
|
+
sandbox: personal ? "srt" : "docker",
|
|
7371
|
+
dockerImage: null,
|
|
7372
|
+
checkHosts: [],
|
|
7373
|
+
checkDockerImage: null,
|
|
7374
|
+
checkRegistryImage: null
|
|
7375
|
+
});
|
|
7376
|
+
var RunnerSettingValue = Union([Finite, String4, ArraySchema(String4), Null]);
|
|
7377
|
+
var RunnerSettingChange = Struct({
|
|
7378
|
+
id: Id,
|
|
7379
|
+
setting: Literals(RunnerSettingNames),
|
|
7380
|
+
from: RunnerSettingValue,
|
|
7381
|
+
to: RunnerSettingValue,
|
|
7382
|
+
actorType: ActorType,
|
|
7383
|
+
actorId: String4,
|
|
7384
|
+
source: Literals(["person", "environment"]),
|
|
7385
|
+
changedAt: Timestamp
|
|
7386
|
+
});
|
|
7387
|
+
var RunnerSettingsHistory = Struct({ items: ArraySchema(RunnerSettingChange) });
|
|
7388
|
+
var shownRunnerSetting = (value) => Array.isArray(value) ? value.length === 0 ? "none" : value.join(",") : value === null ? "none" : String(value);
|
|
7097
7389
|
var Runner = Struct({
|
|
7098
7390
|
id: Id,
|
|
7099
7391
|
workspaceId: Id,
|
|
@@ -7112,6 +7404,8 @@ var Runner = Struct({
|
|
|
7112
7404
|
latestVersion: optionalKey(RunnerVersion),
|
|
7113
7405
|
container: Boolean2,
|
|
7114
7406
|
automaticUpdates: Boolean2,
|
|
7407
|
+
settings: optionalKey(RunnerSettings),
|
|
7408
|
+
appliedSettings: optionalKey(RunnerAppliedSettings),
|
|
7115
7409
|
lastHeartbeatAt: optionalKey(Timestamp),
|
|
7116
7410
|
createdByUserId: optionalKey(Id),
|
|
7117
7411
|
createdAt: Timestamp,
|
|
@@ -7257,7 +7551,9 @@ var RunnerHeartbeatInput = Struct({
|
|
|
7257
7551
|
container: optionalKey(Boolean2),
|
|
7258
7552
|
problems: optionalKey(ArraySchema(RunnerProblemReport).check(isMaxLength(RunnerProblemCodes.length))),
|
|
7259
7553
|
capabilities: optionalKey(RunnerCapabilities),
|
|
7260
|
-
labels: optionalKey(ArraySchema(String4.check(isMinLength(1))).check(isMaxLength(50)))
|
|
7554
|
+
labels: optionalKey(ArraySchema(String4.check(isMinLength(1))).check(isMaxLength(50))),
|
|
7555
|
+
environmentSettings: optionalKey(RunnerSettingsUpdate),
|
|
7556
|
+
appliedSettings: optionalKey(RunnerAppliedSettings)
|
|
7261
7557
|
});
|
|
7262
7558
|
var RunnerCapabilitiesUpdate = Struct({
|
|
7263
7559
|
capabilities: RunnerCapabilities,
|
|
@@ -9315,11 +9611,11 @@ var TranscriptSearchResult = Struct({
|
|
|
9315
9611
|
total: Int
|
|
9316
9612
|
});
|
|
9317
9613
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
|
|
9318
|
-
var
|
|
9319
|
-
class
|
|
9320
|
-
[
|
|
9614
|
+
var TypeId9 = "~effect/http/HttpBody";
|
|
9615
|
+
class Proto5 {
|
|
9616
|
+
[TypeId9];
|
|
9321
9617
|
constructor() {
|
|
9322
|
-
this[
|
|
9618
|
+
this[TypeId9] = TypeId9;
|
|
9323
9619
|
}
|
|
9324
9620
|
[NodeInspectSymbol]() {
|
|
9325
9621
|
return this.toJSON();
|
|
@@ -9331,7 +9627,7 @@ class Proto4 {
|
|
|
9331
9627
|
}
|
|
9332
9628
|
}
|
|
9333
9629
|
|
|
9334
|
-
class Empty extends
|
|
9630
|
+
class Empty extends Proto5 {
|
|
9335
9631
|
_tag = "Empty";
|
|
9336
9632
|
toJSON() {
|
|
9337
9633
|
return {
|
|
@@ -9342,7 +9638,7 @@ class Empty extends Proto4 {
|
|
|
9342
9638
|
}
|
|
9343
9639
|
var empty5 = /* @__PURE__ */ new Empty;
|
|
9344
9640
|
|
|
9345
|
-
class Raw extends
|
|
9641
|
+
class Raw extends Proto5 {
|
|
9346
9642
|
_tag = "Raw";
|
|
9347
9643
|
body;
|
|
9348
9644
|
contentType;
|
|
@@ -9365,7 +9661,7 @@ class Raw extends Proto4 {
|
|
|
9365
9661
|
}
|
|
9366
9662
|
var raw = (body, options) => new Raw(body, options?.contentType, options?.contentLength);
|
|
9367
9663
|
|
|
9368
|
-
class Uint8Array2 extends
|
|
9664
|
+
class Uint8Array2 extends Proto5 {
|
|
9369
9665
|
_tag = "Uint8Array";
|
|
9370
9666
|
contentType;
|
|
9371
9667
|
contentLength;
|
|
@@ -9410,7 +9706,7 @@ var jsonUnsafe = (body, contentType) => text(JSON.stringify(body), contentType ?
|
|
|
9410
9706
|
var urlParams = (urlParams, contentType) => text(toString(fromInput2(urlParams)), contentType ?? "application/x-www-form-urlencoded");
|
|
9411
9707
|
|
|
9412
9708
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientError.js
|
|
9413
|
-
var
|
|
9709
|
+
var TypeId10 = "~effect/http/HttpClientError";
|
|
9414
9710
|
class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
|
|
9415
9711
|
constructor(props) {
|
|
9416
9712
|
if ("cause" in props.reason) {
|
|
@@ -9422,7 +9718,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
|
|
|
9422
9718
|
super(props);
|
|
9423
9719
|
}
|
|
9424
9720
|
}
|
|
9425
|
-
[
|
|
9721
|
+
[TypeId10] = TypeId10;
|
|
9426
9722
|
get request() {
|
|
9427
9723
|
return this.reason.request;
|
|
9428
9724
|
}
|
|
@@ -9526,7 +9822,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError("EmptyBodyError")) {
|
|
|
9526
9822
|
}
|
|
9527
9823
|
}
|
|
9528
9824
|
|
|
9529
|
-
class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(
|
|
9825
|
+
class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId10)({
|
|
9530
9826
|
_tag: /* @__PURE__ */ tag("HttpError"),
|
|
9531
9827
|
kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
|
|
9532
9828
|
cause: /* @__PURE__ */ optional(/* @__PURE__ */ Defect())
|
|
@@ -9559,7 +9855,7 @@ var updateContentLength = (headers, body) => {
|
|
|
9559
9855
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Url.js
|
|
9560
9856
|
class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
|
|
9561
9857
|
}
|
|
9562
|
-
var
|
|
9858
|
+
var make27 = (url, params, hash) => try_({
|
|
9563
9859
|
try: () => {
|
|
9564
9860
|
const urlInstance = new URL(url, baseUrl());
|
|
9565
9861
|
for (let i = 0;i < params.params.length; i++) {
|
|
@@ -9590,10 +9886,10 @@ var baseUrl = () => {
|
|
|
9590
9886
|
};
|
|
9591
9887
|
|
|
9592
9888
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientRequest.js
|
|
9593
|
-
var
|
|
9594
|
-
var isHttpClientRequest = (u) => hasProperty(u,
|
|
9595
|
-
var
|
|
9596
|
-
[
|
|
9889
|
+
var TypeId11 = "~effect/http/HttpClientRequest";
|
|
9890
|
+
var isHttpClientRequest = (u) => hasProperty(u, TypeId11);
|
|
9891
|
+
var Proto6 = {
|
|
9892
|
+
[TypeId11]: TypeId11,
|
|
9597
9893
|
...BaseProto,
|
|
9598
9894
|
toJSON() {
|
|
9599
9895
|
return {
|
|
@@ -9611,7 +9907,7 @@ var Proto5 = {
|
|
|
9611
9907
|
}
|
|
9612
9908
|
};
|
|
9613
9909
|
function makeWith(method, url, urlParams, hash, headers, body) {
|
|
9614
|
-
const self = Object.create(
|
|
9910
|
+
const self = Object.create(Proto6);
|
|
9615
9911
|
self.method = method;
|
|
9616
9912
|
self.url = url;
|
|
9617
9913
|
self.urlParams = urlParams;
|
|
@@ -9682,7 +9978,7 @@ var bodyUint8Array = /* @__PURE__ */ dual((args) => isHttpClientRequest(args[0])
|
|
|
9682
9978
|
var bodyJsonUnsafe = /* @__PURE__ */ dual(2, (self, body) => setBody(self, jsonUnsafe(body)));
|
|
9683
9979
|
var bodyUrlParams = /* @__PURE__ */ dual(2, (self, input) => setBody(self, urlParams(fromInput2(input))));
|
|
9684
9980
|
function toUrl(self) {
|
|
9685
|
-
const r =
|
|
9981
|
+
const r = make27(self.url, self.urlParams, getOrUndefined(self.hash));
|
|
9686
9982
|
if (isSuccess(r)) {
|
|
9687
9983
|
return some(r.success);
|
|
9688
9984
|
}
|
|
@@ -9690,7 +9986,7 @@ function toUrl(self) {
|
|
|
9690
9986
|
}
|
|
9691
9987
|
|
|
9692
9988
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpIncomingMessage.js
|
|
9693
|
-
var
|
|
9989
|
+
var TypeId12 = "~effect/http/HttpIncomingMessage";
|
|
9694
9990
|
var schemaBodyJson = (schema, options) => {
|
|
9695
9991
|
const decode = decodeEffect(toCodecJson(schema));
|
|
9696
9992
|
const decodeJson = options?.reviver === undefined ? undefined : decodeEffect(fromJsonString(toCodecJson(schema), options));
|
|
@@ -9709,7 +10005,7 @@ var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
|
|
|
9709
10005
|
var getWebSource = (self) => self[WebSourceSymbol]?.();
|
|
9710
10006
|
|
|
9711
10007
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientResponse.js
|
|
9712
|
-
var
|
|
10008
|
+
var TypeId13 = "~effect/http/HttpClientResponse";
|
|
9713
10009
|
var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
|
|
9714
10010
|
var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail7(new HttpClientError({
|
|
9715
10011
|
reason: new StatusCodeError({
|
|
@@ -9720,16 +10016,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
|
|
|
9720
10016
|
}));
|
|
9721
10017
|
|
|
9722
10018
|
class WebHttpClientResponse extends Class {
|
|
9723
|
-
[TypeId11];
|
|
9724
10019
|
[TypeId12];
|
|
10020
|
+
[TypeId13];
|
|
9725
10021
|
request;
|
|
9726
10022
|
source;
|
|
9727
10023
|
constructor(request, source) {
|
|
9728
10024
|
super();
|
|
9729
10025
|
this.request = request;
|
|
9730
10026
|
this.source = source;
|
|
9731
|
-
this[TypeId11] = TypeId11;
|
|
9732
10027
|
this[TypeId12] = TypeId12;
|
|
10028
|
+
this[TypeId13] = TypeId13;
|
|
9733
10029
|
}
|
|
9734
10030
|
toJSON() {
|
|
9735
10031
|
return inspect(this, {
|
|
@@ -9798,7 +10094,7 @@ class WebHttpClientResponse extends Class {
|
|
|
9798
10094
|
}
|
|
9799
10095
|
textBody;
|
|
9800
10096
|
get text() {
|
|
9801
|
-
return this.textBody ??=
|
|
10097
|
+
return this.textBody ??= map8(this.arrayBuffer, (_) => new TextDecoder().decode(_));
|
|
9802
10098
|
}
|
|
9803
10099
|
get urlParamsBody() {
|
|
9804
10100
|
return flatMap3(this.arrayBuffer, (bytes) => try_2({
|
|
@@ -9901,7 +10197,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
|
|
|
9901
10197
|
};
|
|
9902
10198
|
|
|
9903
10199
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClient.js
|
|
9904
|
-
var
|
|
10200
|
+
var TypeId14 = "~effect/http/HttpClient";
|
|
9905
10201
|
var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
|
|
9906
10202
|
var accessor = (method) => (...args) => flatMap3(HttpClient, (client) => client[method](...args));
|
|
9907
10203
|
var execute = /* @__PURE__ */ accessor("execute");
|
|
@@ -9909,7 +10205,7 @@ var get2 = /* @__PURE__ */ accessor("get");
|
|
|
9909
10205
|
var transform = /* @__PURE__ */ dual(2, (self, f) => makeWith2(flatMap3((request) => f(self.postprocess(succeed6(request)), request)), self.preprocess));
|
|
9910
10206
|
var transformResponse = /* @__PURE__ */ dual(2, (self, f) => makeWith2((request) => f(self.postprocess(request)), self.preprocess));
|
|
9911
10207
|
var makeWith2 = (postprocess, preprocess) => {
|
|
9912
|
-
const self = Object.create(
|
|
10208
|
+
const self = Object.create(Proto7);
|
|
9913
10209
|
self.preprocess = preprocess;
|
|
9914
10210
|
self.postprocess = postprocess;
|
|
9915
10211
|
self.execute = function(request) {
|
|
@@ -9917,8 +10213,8 @@ var makeWith2 = (postprocess, preprocess) => {
|
|
|
9917
10213
|
};
|
|
9918
10214
|
return self;
|
|
9919
10215
|
};
|
|
9920
|
-
var
|
|
9921
|
-
[
|
|
10216
|
+
var Proto7 = {
|
|
10217
|
+
[TypeId14]: TypeId14,
|
|
9922
10218
|
pipe() {
|
|
9923
10219
|
return pipeArguments(this, arguments);
|
|
9924
10220
|
},
|
|
@@ -9932,10 +10228,10 @@ var Proto6 = {
|
|
|
9932
10228
|
return this.execute(make5(fullMethod)(url, options));
|
|
9933
10229
|
}]))
|
|
9934
10230
|
};
|
|
9935
|
-
var
|
|
10231
|
+
var make28 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
|
|
9936
10232
|
const scopedController = scopedRequests.get(request);
|
|
9937
10233
|
const controller = scopedController ?? new AbortController;
|
|
9938
|
-
const urlResult =
|
|
10234
|
+
const urlResult = make27(request.url, request.urlParams, getOrUndefined(request.hash));
|
|
9939
10235
|
if (isFailure(urlResult)) {
|
|
9940
10236
|
return fail7(new HttpClientError({
|
|
9941
10237
|
reason: new InvalidUrlError({
|
|
@@ -9949,7 +10245,7 @@ var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFibe
|
|
|
9949
10245
|
if (tracerDisabled) {
|
|
9950
10246
|
const effect = f(request, url, controller.signal, fiber);
|
|
9951
10247
|
if (scopedController)
|
|
9952
|
-
return
|
|
10248
|
+
return map8(effect, (response) => trackResponse(response, controller, true));
|
|
9953
10249
|
return uninterruptibleMask2((restore) => matchCauseEffect(restore(effect), {
|
|
9954
10250
|
onSuccess(response) {
|
|
9955
10251
|
return succeed6(trackResponse(response, controller, false));
|
|
@@ -10020,7 +10316,7 @@ var TracerPropagationEnabled = /* @__PURE__ */ Reference("effect/http/HttpClient
|
|
|
10020
10316
|
var SpanNameGenerator = /* @__PURE__ */ Reference("effect/http/HttpClient/SpanNameGenerator", {
|
|
10021
10317
|
defaultValue: () => (request) => request.method
|
|
10022
10318
|
});
|
|
10023
|
-
var layerMergedContext = (effect2) => effect(HttpClient)(contextWith((context) =>
|
|
10319
|
+
var layerMergedContext = (effect2) => effect(HttpClient)(contextWith((context) => map8(effect2, (client) => transformResponse(client, updateContext((input) => merge3(context, input))))));
|
|
10024
10320
|
var responseRegistry = /* @__PURE__ */ (() => {
|
|
10025
10321
|
if ("FinalizationRegistry" in globalThis && globalThis.FinalizationRegistry) {
|
|
10026
10322
|
const registry = /* @__PURE__ */ new FinalizationRegistry((controller) => {
|
|
@@ -10069,8 +10365,8 @@ class InterruptibleResponse {
|
|
|
10069
10365
|
this.original = original;
|
|
10070
10366
|
this.controller = controller;
|
|
10071
10367
|
}
|
|
10368
|
+
[TypeId13] = TypeId13;
|
|
10072
10369
|
[TypeId12] = TypeId12;
|
|
10073
|
-
[TypeId11] = TypeId11;
|
|
10074
10370
|
applyInterrupt(effect) {
|
|
10075
10371
|
return suspend3(() => {
|
|
10076
10372
|
responseRegistry.unregister(this.original);
|
|
@@ -10168,7 +10464,7 @@ var detectStreamBodySupport = () => {
|
|
|
10168
10464
|
return false;
|
|
10169
10465
|
}
|
|
10170
10466
|
};
|
|
10171
|
-
var fetch2 = /* @__PURE__ */
|
|
10467
|
+
var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
|
|
10172
10468
|
if (request.headers.upgrade !== undefined) {
|
|
10173
10469
|
return fail7(new HttpClientError({
|
|
10174
10470
|
reason: new TransportError({
|
|
@@ -10185,7 +10481,7 @@ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
|
|
|
10185
10481
|
}
|
|
10186
10482
|
let uploadController;
|
|
10187
10483
|
const stopUpload = sync2(() => uploadController?.abort());
|
|
10188
|
-
const send = (body) =>
|
|
10484
|
+
const send = (body) => map8(tryPromise({
|
|
10189
10485
|
try: () => fetch2(url, {
|
|
10190
10486
|
...options,
|
|
10191
10487
|
method: request.method,
|
|
@@ -10259,10 +10555,10 @@ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
|
|
|
10259
10555
|
});
|
|
10260
10556
|
var layer4 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch2));
|
|
10261
10557
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/socket/Socket.js
|
|
10262
|
-
var
|
|
10558
|
+
var TypeId15 = "~effect/socket/Socket";
|
|
10263
10559
|
var Socket = /* @__PURE__ */ Service2("effect/socket/Socket");
|
|
10264
|
-
var
|
|
10265
|
-
[
|
|
10560
|
+
var make29 = (options) => Socket.of({
|
|
10561
|
+
[TypeId15]: TypeId15,
|
|
10266
10562
|
reader: options.reader,
|
|
10267
10563
|
writer: options.writer
|
|
10268
10564
|
});
|
|
@@ -10356,14 +10652,14 @@ var layerWebSocketConstructorGlobal = /* @__PURE__ */ succeed5(WebSocketConstruc
|
|
|
10356
10652
|
}
|
|
10357
10653
|
return new globalThis.WebSocket(url, options);
|
|
10358
10654
|
});
|
|
10359
|
-
var makeWebSocket = (url, options) => WebSocketConstructor.use((makeWs) => fromWebSocket(acquireRelease((typeof url === "string" ? succeed6(url) : url).pipe(
|
|
10655
|
+
var makeWebSocket = (url, options) => WebSocketConstructor.use((makeWs) => fromWebSocket(acquireRelease((typeof url === "string" ? succeed6(url) : url).pipe(map8((url) => makeWs(url, options?.headers === undefined ? options?.protocols : {
|
|
10360
10656
|
protocols: options.protocols,
|
|
10361
10657
|
headers: options.headers
|
|
10362
10658
|
}))), (ws) => sync2(() => ws.close(1000))), options));
|
|
10363
10659
|
var isPausable = (ws) => ("pause" in ws) && typeof ws.pause === "function";
|
|
10364
10660
|
var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
|
|
10365
10661
|
let currentWS;
|
|
10366
|
-
const latch =
|
|
10662
|
+
const latch = makeUnsafe2(false);
|
|
10367
10663
|
const acquireContext = fiber.context;
|
|
10368
10664
|
const reader = gen(function* () {
|
|
10369
10665
|
const scope = yield* scope2;
|
|
@@ -10585,7 +10881,7 @@ var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
|
|
|
10585
10881
|
write,
|
|
10586
10882
|
writeAll
|
|
10587
10883
|
});
|
|
10588
|
-
return succeed6(
|
|
10884
|
+
return succeed6(make29({
|
|
10589
10885
|
reader,
|
|
10590
10886
|
writer
|
|
10591
10887
|
}));
|
|
@@ -10991,7 +11287,7 @@ var effectMetrics = new Map(MetricDefinitions.map((definition) => {
|
|
|
10991
11287
|
var processTelemetryRegistry = new Map;
|
|
10992
11288
|
var processMetricRegistry = new Map;
|
|
10993
11289
|
var collectorTimeout = "10 seconds";
|
|
10994
|
-
var collectorHttpClient = effect(HttpClient)(
|
|
11290
|
+
var collectorHttpClient = effect(HttpClient)(map8(HttpClient, (client) => transform(client, (response, request) => timeoutOrElse(response, {
|
|
10995
11291
|
duration: collectorTimeout,
|
|
10996
11292
|
orElse: () => fail7(new HttpClientError({
|
|
10997
11293
|
reason: new TransportError({
|
|
@@ -12405,6 +12701,18 @@ class KitmanEffectClient {
|
|
|
12405
12701
|
removeRunner(runnerId) {
|
|
12406
12702
|
return this.request("removeRunner", `/runners/${segment(runnerId)}`, { method: "DELETE", headers: this.headers() });
|
|
12407
12703
|
}
|
|
12704
|
+
updateRunnerSettings(runnerId, input) {
|
|
12705
|
+
return this.request("updateRunnerSettings", `/runners/${segment(runnerId)}/settings`, {
|
|
12706
|
+
method: "PATCH",
|
|
12707
|
+
headers: this.headers(true),
|
|
12708
|
+
body: JSON.stringify(input)
|
|
12709
|
+
});
|
|
12710
|
+
}
|
|
12711
|
+
listRunnerSettingsHistory(runnerId) {
|
|
12712
|
+
return this.request("listRunnerSettingsHistory", `/runners/${segment(runnerId)}/settings/history`, {
|
|
12713
|
+
headers: this.headers()
|
|
12714
|
+
});
|
|
12715
|
+
}
|
|
12408
12716
|
setRunnerDefaultHarness(runnerId, input) {
|
|
12409
12717
|
return this.request("setRunnerDefaultHarness", `/runners/${segment(runnerId)}/default-harness`, {
|
|
12410
12718
|
method: "PUT",
|
|
@@ -12788,7 +13096,7 @@ class KitmanEffectClient {
|
|
|
12788
13096
|
return tryPromise({
|
|
12789
13097
|
try: () => this.fetchImpl(this.url(path), { ...init, headers, signal: abort.signal }),
|
|
12790
13098
|
catch: failed
|
|
12791
|
-
}).pipe(flatMap3((answer) => tryPromise({ try: () => answer.arrayBuffer(), catch: failed }).pipe(
|
|
13099
|
+
}).pipe(flatMap3((answer) => tryPromise({ try: () => answer.arrayBuffer(), catch: failed }).pipe(map8((body) => new Response(body.byteLength === 0 ? null : body, answer)))), onInterrupt(() => sync2(() => abort.abort())));
|
|
12792
13100
|
});
|
|
12793
13101
|
const response = yield* method !== "GET" ? send.pipe(retry({ schedule: unansweredGetRetry, times: 5, while: refusedConnection })) : sendAndRead.pipe(timeoutOrElse({
|
|
12794
13102
|
duration: getAnswerTimeout,
|
|
@@ -12850,8 +13158,8 @@ class KitmanEffectClient {
|
|
|
12850
13158
|
function errorResponseDetails(response) {
|
|
12851
13159
|
const contentType = response.headers.get("content-type") ?? "";
|
|
12852
13160
|
if (contentType.includes("application/json"))
|
|
12853
|
-
return tryPromise(() => response.json()).pipe(
|
|
12854
|
-
return tryPromise(() => response.text()).pipe(
|
|
13161
|
+
return tryPromise(() => response.json()).pipe(map8(parseErrorResponse), orElseSucceed(() => ({})));
|
|
13162
|
+
return tryPromise(() => response.text()).pipe(map8((text) => {
|
|
12855
13163
|
const message = sanitizeErrorDetail(text);
|
|
12856
13164
|
return message === undefined ? {} : { message };
|
|
12857
13165
|
}), orElseSucceed(() => ({})));
|
|
@@ -13147,13 +13455,13 @@ function resolveConfig(input) {
|
|
|
13147
13455
|
...userAgentPreferences === undefined ? undefined : { userAgentPreferences }
|
|
13148
13456
|
};
|
|
13149
13457
|
}
|
|
13150
|
-
var apiUrlFromEnv = String2("KITMAN_API_URL").pipe(option,
|
|
13151
|
-
var stepCredentialFromEnv = String2("KITMAN_STEP_CREDENTIAL").pipe(option,
|
|
13152
|
-
var stepWorkspaceFromEnv = String2("KITMAN_STEP_WORKSPACE").pipe(option,
|
|
13153
|
-
var stepSkillsDirFromEnv = String2("KITMAN_STEP_SKILLS_DIR").pipe(option,
|
|
13154
|
-
var stepFittingSkillsFromEnv = String2("KITMAN_STEP_FITTING_SKILLS").pipe(option,
|
|
13155
|
-
var stepOutputOnlyFromEnv = String2("KITMAN_STEP_TOOLS").pipe(option,
|
|
13156
|
-
var mcpCredentialNameFromEnv = String2("KITMAN_MCP_CREDENTIAL_NAME").pipe(option,
|
|
13458
|
+
var apiUrlFromEnv = String2("KITMAN_API_URL").pipe(option, map8(getOrUndefined));
|
|
13459
|
+
var stepCredentialFromEnv = String2("KITMAN_STEP_CREDENTIAL").pipe(option, map8(getOrUndefined));
|
|
13460
|
+
var stepWorkspaceFromEnv = String2("KITMAN_STEP_WORKSPACE").pipe(option, map8(getOrUndefined));
|
|
13461
|
+
var stepSkillsDirFromEnv = String2("KITMAN_STEP_SKILLS_DIR").pipe(option, map8(getOrUndefined));
|
|
13462
|
+
var stepFittingSkillsFromEnv = String2("KITMAN_STEP_FITTING_SKILLS").pipe(option, map8((names) => getOrElse(names, () => "").split(",").filter((name) => name !== "")));
|
|
13463
|
+
var stepOutputOnlyFromEnv = String2("KITMAN_STEP_TOOLS").pipe(option, map8((tools) => getOrUndefined(tools) === "output"));
|
|
13464
|
+
var mcpCredentialNameFromEnv = String2("KITMAN_MCP_CREDENTIAL_NAME").pipe(option, map8(getOrUndefined));
|
|
13157
13465
|
var kitmanConfigDir = gen(function* () {
|
|
13158
13466
|
const path = yield* Path;
|
|
13159
13467
|
const xdgConfigHome = yield* String2("XDG_CONFIG_HOME").pipe(option);
|
|
@@ -13170,7 +13478,7 @@ var userAuthPath = configFile("auth.json");
|
|
|
13170
13478
|
var userHarnessSyncPath = configFile("harness-sync.json");
|
|
13171
13479
|
var kitSetupCacheDir = configFile("kit-setups");
|
|
13172
13480
|
var bundleCacheDir = configFile("bundles");
|
|
13173
|
-
var localConfigPath = Path.pipe(
|
|
13481
|
+
var localConfigPath = Path.pipe(map8((path) => path.resolve(".kitman/config.json")));
|
|
13174
13482
|
function readUserConfig(path) {
|
|
13175
13483
|
return gen(function* () {
|
|
13176
13484
|
const filePath = path ?? (yield* userConfigPath);
|
|
@@ -13298,7 +13606,7 @@ function sessionForApi(auth, apiUrl) {
|
|
|
13298
13606
|
return auth.sessions[normalizeApiUrl(apiUrl)];
|
|
13299
13607
|
}
|
|
13300
13608
|
function readAuthStore(path) {
|
|
13301
|
-
return readUserAuth(path).pipe(
|
|
13609
|
+
return readUserAuth(path).pipe(map8((auth) => isAuthStore(auth) ? normalizeAuthStore(auth) : { sessions: {} }), catchTag("SchemaError", () => succeed6({ sessions: {} })));
|
|
13302
13610
|
}
|
|
13303
13611
|
function writeAuthStore(auth, path) {
|
|
13304
13612
|
return writeUserAuth(auth, path);
|
|
@@ -13437,7 +13745,7 @@ function getStreamSchemas(schema) {
|
|
|
13437
13745
|
}
|
|
13438
13746
|
var schema = /* @__PURE__ */ declare(isStream);
|
|
13439
13747
|
function Stream(success, error) {
|
|
13440
|
-
return
|
|
13748
|
+
return make16(schema.ast, {
|
|
13441
13749
|
[StreamSchemaTypeId]: StreamSchemaTypeId,
|
|
13442
13750
|
success,
|
|
13443
13751
|
error
|
|
@@ -13445,9 +13753,9 @@ function Stream(success, error) {
|
|
|
13445
13753
|
}
|
|
13446
13754
|
|
|
13447
13755
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
|
|
13448
|
-
var
|
|
13449
|
-
var
|
|
13450
|
-
[
|
|
13756
|
+
var TypeId16 = "~effect/rpc/Rpc";
|
|
13757
|
+
var Proto8 = {
|
|
13758
|
+
[TypeId16]: TypeId16,
|
|
13451
13759
|
pipe() {
|
|
13452
13760
|
return pipeArguments(this, arguments);
|
|
13453
13761
|
},
|
|
@@ -13531,7 +13839,7 @@ var Proto7 = {
|
|
|
13531
13839
|
};
|
|
13532
13840
|
var makeProto = (options) => {
|
|
13533
13841
|
function Rpc() {}
|
|
13534
|
-
Object.setPrototypeOf(Rpc,
|
|
13842
|
+
Object.setPrototypeOf(Rpc, Proto8);
|
|
13535
13843
|
Object.assign(Rpc, options);
|
|
13536
13844
|
Rpc.key = `effect/rpc/Rpc/${options._tag}`;
|
|
13537
13845
|
return Rpc;
|
|
@@ -13614,7 +13922,7 @@ class WorkerUnknownError extends (/* @__PURE__ */ Error3("effect/workers/WorkerE
|
|
|
13614
13922
|
var WorkerErrorReason = /* @__PURE__ */ Union([WorkerSpawnError, WorkerSendError, WorkerReceiveError, WorkerUnknownError]);
|
|
13615
13923
|
|
|
13616
13924
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcClientError.js
|
|
13617
|
-
var
|
|
13925
|
+
var TypeId17 = "~effect/rpc/RpcClientError";
|
|
13618
13926
|
|
|
13619
13927
|
class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError/RpcClientDefect")({
|
|
13620
13928
|
_tag: /* @__PURE__ */ tag("RpcClientDefect"),
|
|
@@ -13623,11 +13931,11 @@ class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError
|
|
|
13623
13931
|
})) {
|
|
13624
13932
|
}
|
|
13625
13933
|
|
|
13626
|
-
class RpcClientError extends (/* @__PURE__ */ Error3(
|
|
13934
|
+
class RpcClientError extends (/* @__PURE__ */ Error3(TypeId17)({
|
|
13627
13935
|
_tag: /* @__PURE__ */ tag("RpcClientError"),
|
|
13628
13936
|
reason: /* @__PURE__ */ Union([WorkerErrorReason, SocketErrorReason, HttpClientErrorSchema, RpcClientDefect])
|
|
13629
13937
|
})) {
|
|
13630
|
-
[
|
|
13938
|
+
[TypeId17] = TypeId17;
|
|
13631
13939
|
get message() {
|
|
13632
13940
|
return `${this.reason._tag}: ${this.reason.message}`;
|
|
13633
13941
|
}
|
|
@@ -13657,7 +13965,7 @@ var RpcGroupProto = {
|
|
|
13657
13965
|
}
|
|
13658
13966
|
return makeProto2({
|
|
13659
13967
|
requests,
|
|
13660
|
-
annotations:
|
|
13968
|
+
annotations: makeUnsafe4(annotations)
|
|
13661
13969
|
});
|
|
13662
13970
|
},
|
|
13663
13971
|
omit(...tags) {
|
|
@@ -13693,7 +14001,7 @@ var RpcGroupProto = {
|
|
|
13693
14001
|
context: services
|
|
13694
14002
|
});
|
|
13695
14003
|
});
|
|
13696
|
-
return
|
|
14004
|
+
return makeUnsafe4(contextMap);
|
|
13697
14005
|
});
|
|
13698
14006
|
},
|
|
13699
14007
|
prefix(prefix) {
|
|
@@ -13722,7 +14030,7 @@ var RpcGroupProto = {
|
|
|
13722
14030
|
handler,
|
|
13723
14031
|
context: services
|
|
13724
14032
|
});
|
|
13725
|
-
return
|
|
14033
|
+
return makeUnsafe4(contextMap);
|
|
13726
14034
|
}));
|
|
13727
14035
|
},
|
|
13728
14036
|
accessHandler(service) {
|
|
@@ -13775,7 +14083,7 @@ var make7 = (...rpcs) => makeProto2({
|
|
|
13775
14083
|
annotations: empty3()
|
|
13776
14084
|
});
|
|
13777
14085
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
|
|
13778
|
-
var
|
|
14086
|
+
var TypeId18 = "~effect/rpc/RpcMiddleware";
|
|
13779
14087
|
var Service = () => (id, options) => {
|
|
13780
14088
|
const limit = getStackTraceLimit();
|
|
13781
14089
|
let creationError;
|
|
@@ -13793,7 +14101,7 @@ var Service = () => (id, options) => {
|
|
|
13793
14101
|
return creationError?.stack;
|
|
13794
14102
|
}
|
|
13795
14103
|
});
|
|
13796
|
-
ServiceClass_[
|
|
14104
|
+
ServiceClass_[TypeId18] = TypeId18;
|
|
13797
14105
|
ServiceClass_.error = options?.error ?? Never;
|
|
13798
14106
|
ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
|
|
13799
14107
|
return ServiceClass;
|
|
@@ -14590,7 +14898,7 @@ function createSdkClient(input) {
|
|
|
14590
14898
|
const runPromise = runPromiseWith(yield* context());
|
|
14591
14899
|
const fetchImpl = input.fetch ?? (yield* Fetch);
|
|
14592
14900
|
let session = input.session;
|
|
14593
|
-
const refreshPermit =
|
|
14901
|
+
const refreshPermit = makeUnsafe3(1);
|
|
14594
14902
|
const refreshFrom = (stale) => refreshPermit.withPermits(1)(suspend3(() => session === stale ? tap2(refreshSession({ ...input, fetch: fetchImpl, session: stale }), (next) => sync2(() => session = next)) : succeed6(session))).pipe(mapError2((error) => new KitmanClientError({ operation: "refreshSession", message: error.message, status: 401 })));
|
|
14595
14903
|
const authorizedFetch = (resource, init) => runPromise(gen(function* () {
|
|
14596
14904
|
if (session.refreshToken && shouldRefresh(yield* currentDate, session.expiresAt))
|
|
@@ -14610,7 +14918,7 @@ function createSdkClient(input) {
|
|
|
14610
14918
|
});
|
|
14611
14919
|
}
|
|
14612
14920
|
function refreshSession(input) {
|
|
14613
|
-
const storedSession = readAuthStore(input.authPath).pipe(
|
|
14921
|
+
const storedSession = readAuthStore(input.authPath).pipe(map8((auth) => sessionForApi(auth, input.apiUrl)));
|
|
14614
14922
|
return withAuthLock(input.authPath, gen(function* () {
|
|
14615
14923
|
const stored = yield* storedSession;
|
|
14616
14924
|
if (!stored)
|
|
@@ -14625,7 +14933,7 @@ function refreshSession(input) {
|
|
|
14625
14933
|
clientId: input.clientId ?? ClientId,
|
|
14626
14934
|
refreshToken: spentToken,
|
|
14627
14935
|
...input.fetch ? { fetch: input.fetch } : undefined
|
|
14628
|
-
}).pipe(
|
|
14936
|
+
}).pipe(map8((token) => toStoredSession(token, spentToken)));
|
|
14629
14937
|
const session = yield* refreshing.pipe(catch_((error) => storedSession.pipe(filterOrFail((current) => current !== undefined && current.refreshToken !== spentToken, () => error))));
|
|
14630
14938
|
const current = yield* storedSession;
|
|
14631
14939
|
if (current?.refreshToken !== spentToken)
|
|
@@ -15080,9 +15388,9 @@ var herdrCoreOver = (transport) => ({
|
|
|
15080
15388
|
...input.name === undefined ? undefined : { name: input.name },
|
|
15081
15389
|
no_parent: input.noParent === true
|
|
15082
15390
|
}),
|
|
15083
|
-
list: (filter = {}) => request("terminal.list", Listed, { labels: filter.labels ?? {}, all: filter.all === true }).pipe(
|
|
15391
|
+
list: (filter = {}) => request("terminal.list", Listed, { labels: filter.labels ?? {}, all: filter.all === true }).pipe(map8((listed) => listed.terminals)),
|
|
15084
15392
|
get: (terminal) => request("terminal.get", Terminal2, { terminal }),
|
|
15085
|
-
read: (terminal) => request("terminal.read", Screen, { terminal }).pipe(
|
|
15393
|
+
read: (terminal) => request("terminal.read", Screen, { terminal }).pipe(map8((screen) => screen.text)),
|
|
15086
15394
|
interrupt: (terminal, options = {}) => request("terminal.interrupt", Interrupted, {
|
|
15087
15395
|
terminal,
|
|
15088
15396
|
...options.timeoutSeconds === undefined ? undefined : { timeout: options.timeoutSeconds }
|
|
@@ -15145,7 +15453,7 @@ var coreEnv = (options) => {
|
|
|
15145
15453
|
const env = Object.fromEntries(Object.entries(options.env ?? process.env).filter((entry) => entry[0] !== "HC_SESSION" && entry[1] !== undefined));
|
|
15146
15454
|
return options.session === undefined ? env : { ...env, HC_SESSION: options.session };
|
|
15147
15455
|
};
|
|
15148
|
-
var herdrCoreLayer2 = (options) => effect(HerdrCore2,
|
|
15456
|
+
var herdrCoreLayer2 = (options) => effect(HerdrCore2, map8(ChildProcessSpawner, (spawner) => herdrCoreOver(spawnedTransport(coreEnv(options)).pipe(provideService(ChildProcessSpawner, spawner)))));
|
|
15149
15457
|
var herdrCoreTransportLayer2 = (transport) => succeed5(HerdrCore2, herdrCoreOver(transport));
|
|
15150
15458
|
var UpdateRefused = Struct({
|
|
15151
15459
|
error: Struct({ message: String4, hint: optionalKey(String4) })
|
|
@@ -15168,13 +15476,13 @@ var updateHerdrCore2 = (options) => gen(function* () {
|
|
|
15168
15476
|
], { concurrency: 3 });
|
|
15169
15477
|
return { stdout, stderr, exitCode };
|
|
15170
15478
|
}).pipe(scoped, catchReason("PlatformError", "NotFound", () => fail7(new HerdrCoreMissing2)));
|
|
15171
|
-
const reason = yield* run(["update", "--json"]).pipe(
|
|
15479
|
+
const reason = yield* run(["update", "--json"]).pipe(map8(({ stdout, stderr, exitCode }) => exitCode === 0 ? undefined : refusalReason(stdout) ?? (stderr.trim() || `it exited with code ${exitCode}`)), catchTag("PlatformError", (error) => succeed6(error.message)), timeoutOrElse({
|
|
15172
15480
|
duration: options.timeout,
|
|
15173
15481
|
orElse: () => succeed6(`it did not finish within ${options.timeout}`)
|
|
15174
15482
|
}));
|
|
15175
15483
|
if (reason === undefined)
|
|
15176
15484
|
return;
|
|
15177
|
-
const version = yield* run(["--version"]).pipe(
|
|
15485
|
+
const version = yield* run(["--version"]).pipe(map8(({ stdout }) => stdout.trim() || "an unknown version"), timeout("10 seconds"), orElseSucceed(() => "an unknown version"));
|
|
15178
15486
|
return yield* new HerdrCoreUpdateFailed2({ version, reason: reason.slice(0, 400) });
|
|
15179
15487
|
});
|
|
15180
15488
|
|
|
@@ -15259,7 +15567,7 @@ var detectHarnesses2 = gen(function* () {
|
|
|
15259
15567
|
const home = (yield* optionalEnv("HOME")) ?? "/";
|
|
15260
15568
|
const searchPath = ((yield* optionalEnv("PATH")) ?? "").split(":").filter(Boolean);
|
|
15261
15569
|
const exists = (file) => fs.exists(file).pipe(orElseSucceed(() => false));
|
|
15262
|
-
const any = (items, test) =>
|
|
15570
|
+
const any = (items, test) => map8(findFirst(items, test), isSome);
|
|
15263
15571
|
const loginFound = (login) => gen(function* () {
|
|
15264
15572
|
const file = path.join(home, login.path);
|
|
15265
15573
|
if (!(yield* exists(file)))
|
|
@@ -15275,7 +15583,7 @@ var detectHarnesses2 = gen(function* () {
|
|
|
15275
15583
|
unavailable.push({ harness: harness.id, missing: [`\`${harness.id}\` is not installed`] });
|
|
15276
15584
|
continue;
|
|
15277
15585
|
}
|
|
15278
|
-
const loggedIn = (yield* any(harness.keys, (key) =>
|
|
15586
|
+
const loggedIn = (yield* any(harness.keys, (key) => map8(optionalEnv(key), Boolean))) || (yield* any(harness.logins, loginFound));
|
|
15279
15587
|
if (loggedIn)
|
|
15280
15588
|
harnesses.push(harness.id);
|
|
15281
15589
|
else
|
|
@@ -15538,7 +15846,7 @@ var launchableHarnesses = (input) => {
|
|
|
15538
15846
|
...input.harnesses.unavailable,
|
|
15539
15847
|
...refused.map((harness) => ({
|
|
15540
15848
|
harness,
|
|
15541
|
-
missing: [`${harness} cannot run in srt yet; set
|
|
15849
|
+
missing: [`${harness} cannot run in srt yet; set the Runner's sandbox to docker or host to offer it`]
|
|
15542
15850
|
}))
|
|
15543
15851
|
]
|
|
15544
15852
|
};
|
|
@@ -15636,4 +15944,4 @@ function checkServices(declaration) {
|
|
|
15636
15944
|
return isSome(decoded) ? [...new Set(decoded.value.services)] : undefined;
|
|
15637
15945
|
}
|
|
15638
15946
|
|
|
15639
|
-
export { WebCrypto, SecureRandom, layerWebCrypto, empty, fromInput, merge, runMain, layer, layer2, Stdio, Terminal, layer3, error, log, toDate, parseDate, toIso, currentDate, wallClockMillis, waitingOnWords, queueWords, scanDurableSurface, redactResponseSurface, redactCredentials, redactedOutputTail, SafeJson, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, RunWaitUntils, isTestReportName, checkTests, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, defaultRunnerCapabilities, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, repositoryKey, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw, make5, get, post, put, setHeaders, acceptJson, bodyUint8Array, bodyJsonUnsafe, bodyUrlParams, schemaBodyJson, filterStatusOk, HttpClient, execute, get2, Fetch, layer4, Socket, SocketReadError, SocketError, WebSocketConstructor, layerWebSocketConstructorGlobal, layerWebSocket, runDisplayLabels, listedSummary, KitName, KitDigest, defaultKitName, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, removeAgentCredential, normalizeApiUrl, isStoredAgentCredential, isStreamSchema, getStreamSchemas, make6, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make7, Service, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, RunSettled, UpdateAvailable, RunnerReplicaRpcs, RunnerRunFileRpcs, ProgramRpcs, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, setupMcpAgentCredential, generateAgentKeyPair, HERDR_CORE_GENERATION2, HERDR_CORE_INSTALL_COMMAND2, HerdrCoreMissing2, HerdrCoreIncompatible2, HerdrCoreConnectionLost2, HerdrCoreRpcError2, HerdrCoreUpdateFailed2, HerdrCore2, herdrCoreLayer2, herdrCoreTransportLayer2, updateHerdrCore2, CommandFailed2, runCommand2, withoutPreloads2, shellOutputTailChars2, runProcess2, CommandRunner2, runShell2, detectHarnesses2, kitHarnesses, isKitHarness, instructionsStart, instructionsEnd, harnessNames, renderMcpServer, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices };
|
|
15947
|
+
export { Clock, currentTimeMillis, WebCrypto, SecureRandom, layerWebCrypto, makeUnsafe, formatIso, empty, fromInput, merge, runMain, layer, layer2, Stdio, Terminal, layer3, error, log, toDate, parseDate, toIso, currentDate, wallClockMillis, waitingOnWords, queueWords, scanDurableSurface, redactResponseSurface, redactCredentials, redactedOutputTail, SafeJson, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, RunWaitUntils, isTestReportName, checkTests, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, MaxRunnerConcurrency, PinnedImage, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, repositoryKey, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw, make5, get, post, put, setHeaders, acceptJson, bodyUint8Array, bodyJsonUnsafe, bodyUrlParams, schemaBodyJson, filterStatusOk, HttpClient, execute, get2, Fetch, layer4, Socket, SocketReadError, SocketError, WebSocketConstructor, layerWebSocketConstructorGlobal, layerWebSocket, runDisplayLabels, listedSummary, KitName, KitDigest, defaultKitName, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, removeAgentCredential, normalizeApiUrl, isStoredAgentCredential, isStreamSchema, getStreamSchemas, make6, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make7, Service, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, RunSettled, UpdateAvailable, RunnerReplicaRpcs, RunnerRunFileRpcs, ProgramRpcs, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, setupMcpAgentCredential, generateAgentKeyPair, HERDR_CORE_GENERATION2, HERDR_CORE_INSTALL_COMMAND2, HerdrCoreMissing2, HerdrCoreIncompatible2, HerdrCoreConnectionLost2, HerdrCoreRpcError2, HerdrCoreUpdateFailed2, HerdrCore2, herdrCoreLayer2, herdrCoreTransportLayer2, updateHerdrCore2, CommandFailed2, runCommand2, withoutPreloads2, shellOutputTailChars2, runProcess2, CommandRunner2, runShell2, detectHarnesses2, kitHarnesses, isKitHarness, instructionsStart, instructionsEnd, harnessNames, renderMcpServer, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices };
|