@kitman-sh/cli 0.12.8 → 0.12.9
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-c8wpw9nh.js → chunk-0h49y8gf.js} +214 -65
- package/dist/{chunk-bh9k3kty.js → chunk-4gkp713b.js} +55 -55
- package/dist/{chunk-gyek54h3.js → chunk-4gy4ty6k.js} +8 -8
- package/dist/{chunk-cr3qw0xf.js → chunk-4w0c1ykv.js} +381 -297
- package/dist/{chunk-j1cnq2j0.js → chunk-5zhh41gb.js} +4 -4
- package/dist/{chunk-kzwdhdej.js → chunk-5zth85pj.js} +2 -2
- package/dist/{chunk-9qp59fht.js → chunk-6pq0yj40.js} +32 -32
- package/dist/{chunk-tgwa9vqw.js → chunk-7afnkx5b.js} +6 -6
- package/dist/{chunk-n9351czb.js → chunk-azfjx5d8.js} +7 -7
- package/dist/{chunk-31gpnkq3.js → chunk-cbpb2rww.js} +5 -5
- package/dist/{chunk-wcvfkdwd.js → chunk-fr79hgq2.js} +24 -24
- package/dist/{chunk-6w7ajkm8.js → chunk-fyvtc3xv.js} +18 -18
- package/dist/{chunk-cw61zyh5.js → chunk-gq7y5v3e.js} +1 -1
- package/dist/{chunk-jwrs9pfa.js → chunk-gwnyxm1r.js} +107 -107
- package/dist/{chunk-3x6cbhzd.js → chunk-gxbcvd4q.js} +4 -4
- package/dist/{chunk-fh58za51.js → chunk-gy9rf14f.js} +3 -3
- package/dist/{chunk-c8hwfktd.js → chunk-jn7w2ntt.js} +7 -7
- package/dist/{chunk-6d53ezj1.js → chunk-mtkstrh3.js} +4 -4
- package/dist/{chunk-0tjg9eya.js → chunk-q5w3v4k1.js} +1 -1
- package/dist/{chunk-xng6j3a8.js → chunk-rtpk65fj.js} +1 -1
- package/dist/{chunk-93ypzdpa.js → chunk-vkg40ysx.js} +7 -7
- package/dist/{chunk-z5f7g1w1.js → chunk-y1krmnbv.js} +2 -2
- package/dist/{chunk-s5pzy86v.js → chunk-ywzxwgrz.js} +6 -6
- package/dist/{chunk-pjpfc3sd.js → chunk-z0q62687.js} +1 -1
- package/dist/{chunk-qjqa338f.js → chunk-zw3gf6r5.js} +94 -333
- 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,
|
|
@@ -33,7 +38,7 @@ import {
|
|
|
33
38
|
assignProperty,
|
|
34
39
|
PipeInspectableProto,
|
|
35
40
|
withFiber,
|
|
36
|
-
|
|
41
|
+
make14,
|
|
37
42
|
strictEqual,
|
|
38
43
|
Tuple,
|
|
39
44
|
Number2,
|
|
@@ -47,20 +52,19 @@ 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
|
+
make15,
|
|
56
62
|
add,
|
|
57
63
|
getOrUndefined2,
|
|
58
64
|
getOrUndefinedUnsafe,
|
|
59
|
-
|
|
65
|
+
get4,
|
|
60
66
|
merge3,
|
|
61
67
|
Reference,
|
|
62
|
-
fromInputUnsafe,
|
|
63
|
-
isFinite,
|
|
64
68
|
millis,
|
|
65
69
|
seconds,
|
|
66
70
|
toMillis,
|
|
@@ -79,14 +83,15 @@ import {
|
|
|
79
83
|
TaggedError,
|
|
80
84
|
DisablePropagation,
|
|
81
85
|
sync,
|
|
86
|
+
map7,
|
|
87
|
+
ClockRef,
|
|
88
|
+
currentTimeMillis2,
|
|
82
89
|
ConsoleRef,
|
|
83
90
|
succeed3,
|
|
84
91
|
fail4,
|
|
85
|
-
void_2,
|
|
86
92
|
isSuccess2,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
make15,
|
|
93
|
+
makeUnsafe5,
|
|
94
|
+
make16,
|
|
90
95
|
_await,
|
|
91
96
|
fail5,
|
|
92
97
|
isDone,
|
|
@@ -94,12 +99,8 @@ import {
|
|
|
94
99
|
succeed4,
|
|
95
100
|
doneUnsafe,
|
|
96
101
|
TracerTimingEnabled,
|
|
97
|
-
Scope,
|
|
98
|
-
makeUnsafe5,
|
|
99
102
|
provide,
|
|
100
|
-
addFinalizerExit,
|
|
101
103
|
addFinalizer,
|
|
102
|
-
close,
|
|
103
104
|
succeed5,
|
|
104
105
|
effect,
|
|
105
106
|
effectContext,
|
|
@@ -112,9 +113,8 @@ import {
|
|
|
112
113
|
hasInterrupts2,
|
|
113
114
|
Done2,
|
|
114
115
|
done,
|
|
116
|
+
IllegalArgumentError,
|
|
115
117
|
UnknownError,
|
|
116
|
-
Clock,
|
|
117
|
-
currentTimeMillis,
|
|
118
118
|
catchDone,
|
|
119
119
|
isDoneCause,
|
|
120
120
|
exponential,
|
|
@@ -140,7 +140,7 @@ import {
|
|
|
140
140
|
flatMap3,
|
|
141
141
|
andThen2,
|
|
142
142
|
tap2,
|
|
143
|
-
|
|
143
|
+
map8,
|
|
144
144
|
as,
|
|
145
145
|
asVoid,
|
|
146
146
|
catch_,
|
|
@@ -152,7 +152,6 @@ import {
|
|
|
152
152
|
tapCause,
|
|
153
153
|
retry,
|
|
154
154
|
ignore,
|
|
155
|
-
ignoreCause,
|
|
156
155
|
orElseSucceed,
|
|
157
156
|
timeout,
|
|
158
157
|
timeoutOrElse,
|
|
@@ -164,7 +163,6 @@ import {
|
|
|
164
163
|
context,
|
|
165
164
|
contextWith,
|
|
166
165
|
provide3,
|
|
167
|
-
provideContext2,
|
|
168
166
|
serviceOption,
|
|
169
167
|
updateContext,
|
|
170
168
|
provideService,
|
|
@@ -175,7 +173,6 @@ import {
|
|
|
175
173
|
addFinalizer2,
|
|
176
174
|
ensuring2,
|
|
177
175
|
onError,
|
|
178
|
-
onExit,
|
|
179
176
|
cached,
|
|
180
177
|
interrupt3,
|
|
181
178
|
interruptible,
|
|
@@ -187,7 +184,6 @@ import {
|
|
|
187
184
|
withParentSpan,
|
|
188
185
|
forkScoped,
|
|
189
186
|
runFork,
|
|
190
|
-
runForkWith,
|
|
191
187
|
runPromise,
|
|
192
188
|
runPromiseWith,
|
|
193
189
|
runSync,
|
|
@@ -198,16 +194,9 @@ import {
|
|
|
198
194
|
logError,
|
|
199
195
|
effectify,
|
|
200
196
|
decode,
|
|
201
|
-
makeUnsafe6,
|
|
202
|
-
make16,
|
|
203
|
-
now,
|
|
204
|
-
nowUnsafe,
|
|
205
|
-
toDateUtc,
|
|
206
|
-
toEpochMillis,
|
|
207
|
-
formatIso,
|
|
208
197
|
defaultParseOptions,
|
|
209
198
|
omit,
|
|
210
|
-
|
|
199
|
+
map9,
|
|
211
200
|
declare,
|
|
212
201
|
decodeUnknownEffect2,
|
|
213
202
|
decodeEffect,
|
|
@@ -272,32 +261,15 @@ import {
|
|
|
272
261
|
decodeJsonStringOption,
|
|
273
262
|
encodeJsonStringSync,
|
|
274
263
|
encodePrettyJsonString
|
|
275
|
-
} from "./chunk-
|
|
276
|
-
import {
|
|
277
|
-
isDateTime,
|
|
278
|
-
Numeric,
|
|
279
|
-
isWholeNumber,
|
|
280
|
-
guard,
|
|
281
|
-
Id,
|
|
282
|
-
Timestamp,
|
|
283
|
-
ActorType,
|
|
284
|
-
SecretName,
|
|
285
|
-
SecretScope,
|
|
286
|
-
SecretHosts,
|
|
287
|
-
isSecretReference
|
|
288
|
-
} from "./chunk-0tjg9eya.js";
|
|
264
|
+
} from "./chunk-zw3gf6r5.js";
|
|
289
265
|
import {
|
|
290
266
|
map,
|
|
291
267
|
makeEquivalence,
|
|
292
268
|
bytes,
|
|
293
|
-
join,
|
|
294
|
-
interrupt,
|
|
295
|
-
getCurrent,
|
|
296
|
-
runIn,
|
|
297
269
|
BadArgument,
|
|
298
270
|
systemError,
|
|
299
271
|
badArgument,
|
|
300
|
-
|
|
272
|
+
makeUnsafe2,
|
|
301
273
|
make8,
|
|
302
274
|
make9,
|
|
303
275
|
sliding,
|
|
@@ -309,17 +281,19 @@ import {
|
|
|
309
281
|
endUnsafe,
|
|
310
282
|
take,
|
|
311
283
|
poll,
|
|
312
|
-
|
|
284
|
+
makeUnsafe3,
|
|
313
285
|
fromTransform,
|
|
314
286
|
mapDone,
|
|
315
287
|
isSink,
|
|
316
288
|
fromChannel,
|
|
317
289
|
drain,
|
|
290
|
+
make10,
|
|
291
|
+
get3,
|
|
318
292
|
isStream,
|
|
319
293
|
fromChannel2,
|
|
320
294
|
callback,
|
|
321
295
|
empty2,
|
|
322
|
-
|
|
296
|
+
make11,
|
|
323
297
|
suspend,
|
|
324
298
|
fail2,
|
|
325
299
|
fromQueue,
|
|
@@ -345,16 +319,29 @@ import {
|
|
|
345
319
|
mkArrayBuffer,
|
|
346
320
|
toReadableStreamEffect,
|
|
347
321
|
FileSystem,
|
|
348
|
-
|
|
322
|
+
make12,
|
|
349
323
|
FileTypeId,
|
|
350
324
|
WatchBackend,
|
|
351
325
|
Path,
|
|
352
|
-
|
|
326
|
+
make13,
|
|
353
327
|
option,
|
|
354
328
|
String2,
|
|
355
329
|
optionalEnv,
|
|
356
330
|
harnessesUnsupportedInSrt2
|
|
357
|
-
} from "./chunk-
|
|
331
|
+
} from "./chunk-0h49y8gf.js";
|
|
332
|
+
import {
|
|
333
|
+
isDateTime,
|
|
334
|
+
Numeric,
|
|
335
|
+
isWholeNumber,
|
|
336
|
+
guard,
|
|
337
|
+
Id,
|
|
338
|
+
Timestamp,
|
|
339
|
+
ActorType,
|
|
340
|
+
SecretName,
|
|
341
|
+
SecretScope,
|
|
342
|
+
SecretHosts,
|
|
343
|
+
isSecretReference
|
|
344
|
+
} from "./chunk-q5w3v4k1.js";
|
|
358
345
|
import {
|
|
359
346
|
isRedacted,
|
|
360
347
|
make,
|
|
@@ -368,11 +355,241 @@ import {
|
|
|
368
355
|
make3,
|
|
369
356
|
parseFdName,
|
|
370
357
|
fdName
|
|
371
|
-
} from "./chunk-
|
|
358
|
+
} from "./chunk-mtkstrh3.js";
|
|
372
359
|
|
|
373
360
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
|
|
374
361
|
var makeEquivalence3 = Tuple;
|
|
375
362
|
|
|
363
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Clock.js
|
|
364
|
+
var Clock = ClockRef;
|
|
365
|
+
var currentTimeMillis = currentTimeMillis2;
|
|
366
|
+
|
|
367
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/dateTime.js
|
|
368
|
+
var TypeId = "~effect/DateTime";
|
|
369
|
+
var TimeZoneTypeId = "~effect/DateTime/TimeZone";
|
|
370
|
+
var Proto = {
|
|
371
|
+
[TypeId]: TypeId,
|
|
372
|
+
pipe() {
|
|
373
|
+
return pipeArguments(this, arguments);
|
|
374
|
+
},
|
|
375
|
+
[NodeInspectSymbol]() {
|
|
376
|
+
return this.toString();
|
|
377
|
+
},
|
|
378
|
+
toJSON() {
|
|
379
|
+
return toDateUtc(this).toJSON();
|
|
380
|
+
}
|
|
381
|
+
};
|
|
382
|
+
var ProtoUtc = {
|
|
383
|
+
...Proto,
|
|
384
|
+
_tag: "Utc",
|
|
385
|
+
[symbol]() {
|
|
386
|
+
return number(this.epochMilliseconds);
|
|
387
|
+
},
|
|
388
|
+
[symbol2](that) {
|
|
389
|
+
return isDateTime2(that) && that._tag === "Utc" && this.epochMilliseconds === that.epochMilliseconds;
|
|
390
|
+
},
|
|
391
|
+
toString() {
|
|
392
|
+
return `DateTime.Utc(${toDateUtc(this).toJSON()})`;
|
|
393
|
+
}
|
|
394
|
+
};
|
|
395
|
+
var ProtoZoned = {
|
|
396
|
+
...Proto,
|
|
397
|
+
_tag: "Zoned",
|
|
398
|
+
[symbol]() {
|
|
399
|
+
return combine(number(this.epochMilliseconds))(hash(this.zone));
|
|
400
|
+
},
|
|
401
|
+
[symbol2](that) {
|
|
402
|
+
return isDateTime2(that) && that._tag === "Zoned" && this.epochMilliseconds === that.epochMilliseconds && equals(this.zone, that.zone);
|
|
403
|
+
},
|
|
404
|
+
toString() {
|
|
405
|
+
return `DateTime.Zoned(${formatIsoZoned(this)})`;
|
|
406
|
+
}
|
|
407
|
+
};
|
|
408
|
+
var ProtoTimeZone = {
|
|
409
|
+
[TimeZoneTypeId]: TimeZoneTypeId,
|
|
410
|
+
[NodeInspectSymbol]() {
|
|
411
|
+
return this.toString();
|
|
412
|
+
}
|
|
413
|
+
};
|
|
414
|
+
var ProtoTimeZoneNamed = {
|
|
415
|
+
...ProtoTimeZone,
|
|
416
|
+
_tag: "Named",
|
|
417
|
+
[symbol]() {
|
|
418
|
+
return string(`Named:${this.id}`);
|
|
419
|
+
},
|
|
420
|
+
[symbol2](that) {
|
|
421
|
+
return isTimeZone(that) && that._tag === "Named" && this.id === that.id;
|
|
422
|
+
},
|
|
423
|
+
toString() {
|
|
424
|
+
return `TimeZone.Named(${this.id})`;
|
|
425
|
+
},
|
|
426
|
+
toJSON() {
|
|
427
|
+
return {
|
|
428
|
+
_id: "TimeZone",
|
|
429
|
+
_tag: "Named",
|
|
430
|
+
id: this.id
|
|
431
|
+
};
|
|
432
|
+
}
|
|
433
|
+
};
|
|
434
|
+
var ProtoTimeZoneOffset = {
|
|
435
|
+
...ProtoTimeZone,
|
|
436
|
+
_tag: "Offset",
|
|
437
|
+
[symbol]() {
|
|
438
|
+
return string(`Offset:${this.offset}`);
|
|
439
|
+
},
|
|
440
|
+
[symbol2](that) {
|
|
441
|
+
return isTimeZone(that) && that._tag === "Offset" && this.offset === that.offset;
|
|
442
|
+
},
|
|
443
|
+
toString() {
|
|
444
|
+
return `TimeZone.Offset(${offsetToString(this.offset)})`;
|
|
445
|
+
},
|
|
446
|
+
toJSON() {
|
|
447
|
+
return {
|
|
448
|
+
_id: "TimeZone",
|
|
449
|
+
_tag: "Offset",
|
|
450
|
+
offset: this.offset
|
|
451
|
+
};
|
|
452
|
+
}
|
|
453
|
+
};
|
|
454
|
+
var cacheSlot = {
|
|
455
|
+
value: undefined,
|
|
456
|
+
enumerable: false,
|
|
457
|
+
writable: true
|
|
458
|
+
};
|
|
459
|
+
var sealedCaches = /* @__PURE__ */ new WeakMap;
|
|
460
|
+
var cacheAccessor = (key, slots) => ({
|
|
461
|
+
get() {
|
|
462
|
+
return Object.isExtensible(this) ? undefined : sealedCaches.get(this)?.[key];
|
|
463
|
+
},
|
|
464
|
+
set(value) {
|
|
465
|
+
if (Object.isExtensible(this)) {
|
|
466
|
+
for (const slot of slots) {
|
|
467
|
+
Object.defineProperty(this, slot, cacheSlot);
|
|
468
|
+
}
|
|
469
|
+
this[key] = value;
|
|
470
|
+
} else {
|
|
471
|
+
let caches = sealedCaches.get(this);
|
|
472
|
+
if (caches === undefined) {
|
|
473
|
+
caches = {};
|
|
474
|
+
sealedCaches.set(this, caches);
|
|
475
|
+
}
|
|
476
|
+
caches[key] = value;
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
});
|
|
480
|
+
var zonedSlots = ["partsUtc", "adjustedEpochMilliseconds", "partsAdjusted"];
|
|
481
|
+
Object.defineProperty(ProtoUtc, "partsUtc", cacheAccessor("partsUtc", ["partsUtc"]));
|
|
482
|
+
Object.defineProperties(ProtoZoned, {
|
|
483
|
+
partsUtc: cacheAccessor("partsUtc", zonedSlots),
|
|
484
|
+
adjustedEpochMilliseconds: cacheAccessor("adjustedEpochMilliseconds", zonedSlots),
|
|
485
|
+
partsAdjusted: cacheAccessor("partsAdjusted", zonedSlots)
|
|
486
|
+
});
|
|
487
|
+
var isDateTime2 = (u) => hasProperty(u, TypeId);
|
|
488
|
+
var isTimeZone = (u) => hasProperty(u, TimeZoneTypeId);
|
|
489
|
+
var makeUtc = (epochMillis) => {
|
|
490
|
+
const self = Object.create(ProtoUtc);
|
|
491
|
+
self.epochMilliseconds = epochMillis;
|
|
492
|
+
return self;
|
|
493
|
+
};
|
|
494
|
+
var fromDateUnsafe = (date) => {
|
|
495
|
+
const epochMillis = date.getTime();
|
|
496
|
+
if (Number.isNaN(epochMillis)) {
|
|
497
|
+
throw new IllegalArgumentError("Invalid date");
|
|
498
|
+
}
|
|
499
|
+
return makeUtc(epochMillis);
|
|
500
|
+
};
|
|
501
|
+
var makeUnsafe6 = (input) => {
|
|
502
|
+
if (isDateTime2(input)) {
|
|
503
|
+
return input;
|
|
504
|
+
} else if (input instanceof Date) {
|
|
505
|
+
return fromDateUnsafe(input);
|
|
506
|
+
} else if (typeof input === "object") {
|
|
507
|
+
if ("epochMilliseconds" in input) {
|
|
508
|
+
return fromDateUnsafe(new Date(input.epochMilliseconds));
|
|
509
|
+
}
|
|
510
|
+
const date = new Date(0);
|
|
511
|
+
setPartsDate(date, input);
|
|
512
|
+
return fromDateUnsafe(date);
|
|
513
|
+
} else if (typeof input === "string" && !hasZone(input)) {
|
|
514
|
+
return fromDateUnsafe(new Date(input + "Z"));
|
|
515
|
+
}
|
|
516
|
+
return fromDateUnsafe(new Date(input));
|
|
517
|
+
};
|
|
518
|
+
var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
|
|
519
|
+
var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
|
|
520
|
+
var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
|
|
521
|
+
var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
|
|
522
|
+
var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
|
|
523
|
+
var nowUnsafe = () => makeUtc(Date.now());
|
|
524
|
+
var toDateUtc = (self) => new Date(self.epochMilliseconds);
|
|
525
|
+
var toDate2 = (self) => {
|
|
526
|
+
if (self._tag === "Utc") {
|
|
527
|
+
return new Date(self.epochMilliseconds);
|
|
528
|
+
} else if (self.zone._tag === "Offset") {
|
|
529
|
+
return new Date(self.epochMilliseconds + self.zone.offset);
|
|
530
|
+
} else if (self.adjustedEpochMilliseconds !== undefined) {
|
|
531
|
+
return new Date(self.adjustedEpochMilliseconds);
|
|
532
|
+
}
|
|
533
|
+
let bc = false;
|
|
534
|
+
const parts = self.zone.format.formatToParts(self.epochMilliseconds).filter((_) => {
|
|
535
|
+
if (_.type === "era") {
|
|
536
|
+
bc = _.value === "BC";
|
|
537
|
+
return false;
|
|
538
|
+
}
|
|
539
|
+
return _.type !== "literal";
|
|
540
|
+
});
|
|
541
|
+
const year = Number(parts[2].value);
|
|
542
|
+
const date = new Date(0);
|
|
543
|
+
date.setUTCFullYear(bc ? 1 - year : year, Number(parts[0].value) - 1, Number(parts[1].value));
|
|
544
|
+
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);
|
|
545
|
+
self.adjustedEpochMilliseconds = date.getTime();
|
|
546
|
+
return date;
|
|
547
|
+
};
|
|
548
|
+
var zonedOffset = (self) => {
|
|
549
|
+
const date = toDate2(self);
|
|
550
|
+
return date.getTime() - toEpochMillis(self);
|
|
551
|
+
};
|
|
552
|
+
var offsetToString = (offset) => {
|
|
553
|
+
const abs = Math.abs(offset);
|
|
554
|
+
let hours = Math.floor(abs / (60 * 60 * 1000));
|
|
555
|
+
let minutes = Math.round(abs % (60 * 60 * 1000) / (60 * 1000));
|
|
556
|
+
if (minutes === 60) {
|
|
557
|
+
hours += 1;
|
|
558
|
+
minutes = 0;
|
|
559
|
+
}
|
|
560
|
+
return `${offset < 0 ? "-" : "+"}${String(hours).padStart(2, "0")}:${String(minutes).padStart(2, "0")}`;
|
|
561
|
+
};
|
|
562
|
+
var zonedOffsetIso = (self) => offsetToString(zonedOffset(self));
|
|
563
|
+
var toEpochMillis = (self) => self.epochMilliseconds;
|
|
564
|
+
var setPartsDate = (date, parts) => {
|
|
565
|
+
if (parts.year !== undefined || parts.month !== undefined || parts.day !== undefined) {
|
|
566
|
+
date.setUTCFullYear(parts.year ?? date.getUTCFullYear(), parts.month !== undefined ? parts.month - 1 : date.getUTCMonth(), parts.day ?? date.getUTCDate());
|
|
567
|
+
}
|
|
568
|
+
if (parts.weekDay !== undefined) {
|
|
569
|
+
const diff = parts.weekDay - date.getUTCDay();
|
|
570
|
+
date.setUTCDate(date.getUTCDate() + diff);
|
|
571
|
+
}
|
|
572
|
+
if (parts.hour !== undefined) {
|
|
573
|
+
date.setUTCHours(parts.hour);
|
|
574
|
+
}
|
|
575
|
+
if (parts.minute !== undefined) {
|
|
576
|
+
date.setUTCMinutes(parts.minute);
|
|
577
|
+
}
|
|
578
|
+
if (parts.second !== undefined) {
|
|
579
|
+
date.setUTCSeconds(parts.second);
|
|
580
|
+
}
|
|
581
|
+
if (parts.millisecond !== undefined) {
|
|
582
|
+
date.setUTCMilliseconds(parts.millisecond);
|
|
583
|
+
}
|
|
584
|
+
};
|
|
585
|
+
var constDayMillis = 24 * 60 * 60 * 1000;
|
|
586
|
+
var formatIso2 = (self) => toDateUtc(self).toISOString();
|
|
587
|
+
var formatIsoOffset = (self) => {
|
|
588
|
+
const date = toDate2(self);
|
|
589
|
+
return self._tag === "Utc" ? date.toISOString() : `${date.toISOString().slice(0, -1)}${zonedOffsetIso(self)}`;
|
|
590
|
+
};
|
|
591
|
+
var formatIsoZoned = (self) => self.zone._tag === "Offset" ? formatIsoOffset(self) : `${formatIsoOffset(self)}[${self.zone.id}]`;
|
|
592
|
+
|
|
376
593
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Metric.js
|
|
377
594
|
var CurrentMetricAttributesKey = "effect/Metric/CurrentMetricAttributes";
|
|
378
595
|
var CurrentMetricAttributes = /* @__PURE__ */ Reference(CurrentMetricAttributesKey, {
|
|
@@ -382,10 +599,10 @@ var MetricRegistryKey = "effect/Metric/MetricRegistry";
|
|
|
382
599
|
var MetricRegistry = /* @__PURE__ */ Reference(MetricRegistryKey, {
|
|
383
600
|
defaultValue: () => new Map
|
|
384
601
|
});
|
|
385
|
-
var
|
|
602
|
+
var TypeId2 = "~effect/Metric";
|
|
386
603
|
|
|
387
604
|
class Metric$ {
|
|
388
|
-
[
|
|
605
|
+
[TypeId2] = TypeId2;
|
|
389
606
|
#extraAttributes;
|
|
390
607
|
#mergedAttributes;
|
|
391
608
|
#key = "";
|
|
@@ -408,7 +625,7 @@ class Metric$ {
|
|
|
408
625
|
}
|
|
409
626
|
hook(context) {
|
|
410
627
|
const key = this.key(context);
|
|
411
|
-
const registry =
|
|
628
|
+
const registry = get4(context, MetricRegistry);
|
|
412
629
|
let metadata = registry.get(key);
|
|
413
630
|
if (isUndefined(metadata)) {
|
|
414
631
|
metadata = this.metadata(this.createHooks());
|
|
@@ -417,11 +634,11 @@ class Metric$ {
|
|
|
417
634
|
return metadata.hooks;
|
|
418
635
|
}
|
|
419
636
|
removeUnsafe(context) {
|
|
420
|
-
|
|
637
|
+
get4(context, MetricRegistry).delete(this.key(context));
|
|
421
638
|
}
|
|
422
639
|
registerUnsafe(context, hooks) {
|
|
423
640
|
const key = this.key(context);
|
|
424
|
-
const registry =
|
|
641
|
+
const registry = get4(context, MetricRegistry);
|
|
425
642
|
const metadata = this.metadata({
|
|
426
643
|
get: hooks.get,
|
|
427
644
|
update: constVoid,
|
|
@@ -437,7 +654,7 @@ class Metric$ {
|
|
|
437
654
|
};
|
|
438
655
|
}
|
|
439
656
|
key(context) {
|
|
440
|
-
const extraAttributes =
|
|
657
|
+
const extraAttributes = get4(context, CurrentMetricAttributes);
|
|
441
658
|
if (extraAttributes !== this.#extraAttributes) {
|
|
442
659
|
this.#extraAttributes = extraAttributes;
|
|
443
660
|
const merged = mergeAttributes(this.attributes, extraAttributes);
|
|
@@ -689,147 +906,14 @@ var toNumber = (b) => {
|
|
|
689
906
|
return some(Number(b));
|
|
690
907
|
};
|
|
691
908
|
|
|
692
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/
|
|
693
|
-
var
|
|
694
|
-
var stateEmpty = {
|
|
695
|
-
_tag: "Empty"
|
|
696
|
-
};
|
|
697
|
-
var stateClosed = {
|
|
698
|
-
_tag: "Closed"
|
|
699
|
-
};
|
|
700
|
-
var variance = {
|
|
701
|
-
_A: identity,
|
|
702
|
-
_E: identity
|
|
703
|
-
};
|
|
704
|
-
|
|
705
|
-
class RcRefImpl {
|
|
706
|
-
[TypeId2] = variance;
|
|
707
|
-
pipe() {
|
|
708
|
-
return pipeArguments(this, arguments);
|
|
709
|
-
}
|
|
710
|
-
state = stateEmpty;
|
|
711
|
-
acquire;
|
|
712
|
-
context;
|
|
713
|
-
scope;
|
|
714
|
-
idleTimeToLive;
|
|
715
|
-
constructor(acquire, context, scope, idleTimeToLive) {
|
|
716
|
-
this.acquire = acquire;
|
|
717
|
-
this.context = context;
|
|
718
|
-
this.scope = scope;
|
|
719
|
-
this.idleTimeToLive = idleTimeToLive;
|
|
720
|
-
}
|
|
721
|
-
}
|
|
722
|
-
var make4 = (options) => withFiber2((fiber) => {
|
|
723
|
-
const context = fiber.context;
|
|
724
|
-
const scope = get3(context, Scope);
|
|
725
|
-
const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
|
|
726
|
-
return as(addFinalizerExit(scope, () => {
|
|
727
|
-
const state = ref.state;
|
|
728
|
-
ref.state = stateClosed;
|
|
729
|
-
if (state._tag === "Acquired")
|
|
730
|
-
return close(state.scope, void_2);
|
|
731
|
-
if (state._tag === "Acquiring")
|
|
732
|
-
return interrupt(state.fiber);
|
|
733
|
-
return void_3;
|
|
734
|
-
}), ref);
|
|
735
|
-
});
|
|
736
|
-
var getState = (self, restore) => {
|
|
737
|
-
switch (self.state._tag) {
|
|
738
|
-
case "Closed": {
|
|
739
|
-
return interrupt3;
|
|
740
|
-
}
|
|
741
|
-
case "Acquired": {
|
|
742
|
-
const state = self.state;
|
|
743
|
-
state.refCount++;
|
|
744
|
-
return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
|
|
745
|
-
}
|
|
746
|
-
case "Acquiring": {
|
|
747
|
-
const state = self.state;
|
|
748
|
-
state.awaiters++;
|
|
749
|
-
return awaitAcquiring(self, state, restore);
|
|
750
|
-
}
|
|
751
|
-
case "Empty": {
|
|
752
|
-
const acquiring = {
|
|
753
|
-
_tag: "Acquiring",
|
|
754
|
-
fiber: undefined,
|
|
755
|
-
awaiters: 1,
|
|
756
|
-
acquired: undefined
|
|
757
|
-
};
|
|
758
|
-
self.state = acquiring;
|
|
759
|
-
const scope = makeUnsafe5();
|
|
760
|
-
const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
|
|
761
|
-
if (self.state !== acquiring) {
|
|
762
|
-
return interrupt3;
|
|
763
|
-
}
|
|
764
|
-
const state = {
|
|
765
|
-
_tag: "Acquired",
|
|
766
|
-
value,
|
|
767
|
-
scope,
|
|
768
|
-
fiber: undefined,
|
|
769
|
-
refCount: acquiring.awaiters,
|
|
770
|
-
invalidated: false
|
|
771
|
-
};
|
|
772
|
-
self.state = state;
|
|
773
|
-
acquiring.acquired = state;
|
|
774
|
-
return succeed6(state);
|
|
775
|
-
}), onExit((exit) => {
|
|
776
|
-
if (isSuccess2(exit))
|
|
777
|
-
return void_3;
|
|
778
|
-
if (self.state === acquiring)
|
|
779
|
-
self.state = stateEmpty;
|
|
780
|
-
return close(scope, exit);
|
|
781
|
-
}));
|
|
782
|
-
acquiring.fiber = runForkWith(getCurrent().context)(acquire);
|
|
783
|
-
return awaitAcquiring(self, acquiring, restore);
|
|
784
|
-
}
|
|
785
|
-
}
|
|
786
|
-
};
|
|
787
|
-
var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
|
|
788
|
-
const acquired = acquiring.acquired;
|
|
789
|
-
if (acquired !== undefined) {
|
|
790
|
-
return isFailure2(exit) ? release(self, acquired) : void_3;
|
|
791
|
-
}
|
|
792
|
-
if (--acquiring.awaiters > 0 || self.state !== acquiring)
|
|
793
|
-
return void_3;
|
|
794
|
-
self.state = stateEmpty;
|
|
795
|
-
return interrupt(acquiring.fiber);
|
|
796
|
-
});
|
|
797
|
-
var get4 = (self_) => {
|
|
798
|
-
const self = self_;
|
|
799
|
-
return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
|
|
800
|
-
};
|
|
801
|
-
var release = (self, state) => {
|
|
802
|
-
state.refCount--;
|
|
803
|
-
if (state.refCount > 0) {
|
|
804
|
-
return void_3;
|
|
805
|
-
}
|
|
806
|
-
const idleTimeToLive = self.idleTimeToLive;
|
|
807
|
-
if (idleTimeToLive === undefined || state.invalidated) {
|
|
808
|
-
if (self.state === state) {
|
|
809
|
-
self.state = stateEmpty;
|
|
810
|
-
}
|
|
811
|
-
return close(state.scope, void_2);
|
|
812
|
-
} else if (!isFinite(idleTimeToLive)) {
|
|
813
|
-
return void_3;
|
|
814
|
-
}
|
|
815
|
-
state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
|
|
816
|
-
if (self.state === state && state.refCount === 0) {
|
|
817
|
-
self.state = stateEmpty;
|
|
818
|
-
return ignoreCause(close(state.scope, void_2), {
|
|
819
|
-
log: "Unhandled",
|
|
820
|
-
message: "Unhandled error in RcRef finalizer"
|
|
821
|
-
});
|
|
822
|
-
}
|
|
823
|
-
return void_3;
|
|
824
|
-
})).pipe(ensuring2(sync2(() => {
|
|
825
|
-
state.fiber = undefined;
|
|
826
|
-
})), runForkWith(self.context), runIn(self.scope));
|
|
827
|
-
return void_3;
|
|
828
|
-
};
|
|
829
|
-
|
|
830
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
|
|
909
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
|
|
910
|
+
var makeUnsafe = makeUnsafe6;
|
|
831
911
|
var make18 = make4;
|
|
832
|
-
var
|
|
912
|
+
var now2 = now;
|
|
913
|
+
var nowUnsafe2 = nowUnsafe;
|
|
914
|
+
var toDateUtc2 = toDateUtc;
|
|
915
|
+
var toEpochMillis2 = toEpochMillis;
|
|
916
|
+
var formatIso = formatIso2;
|
|
833
917
|
|
|
834
918
|
// node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeChildProcessSpawner.js
|
|
835
919
|
import * as NodeChildProcess from "child_process";
|
|
@@ -945,8 +1029,8 @@ var releaseWritable = (writable) => callback3((resume) => {
|
|
|
945
1029
|
});
|
|
946
1030
|
var pullIntoWritable = (options) => withFiber2((fiber) => {
|
|
947
1031
|
const dispatcher = fiber.currentDispatcher;
|
|
948
|
-
const completion =
|
|
949
|
-
const failure =
|
|
1032
|
+
const completion = makeUnsafe5();
|
|
1033
|
+
const failure = makeUnsafe5();
|
|
950
1034
|
const onError = (error) => doneUnsafe(failure, failSync(() => options.onError(error)));
|
|
951
1035
|
let errorEmitted = false;
|
|
952
1036
|
const onStreamError = (error) => {
|
|
@@ -1040,7 +1124,7 @@ var readableToPullUnsafe = (options) => {
|
|
|
1040
1124
|
const chunkSize = options.chunkSize ?? 4096;
|
|
1041
1125
|
const closeOnDone = options.closeOnDone ?? true;
|
|
1042
1126
|
const exit = options.exit ?? make8(undefined);
|
|
1043
|
-
const latch = options.latch ??
|
|
1127
|
+
const latch = options.latch ?? makeUnsafe2(false);
|
|
1044
1128
|
function onReadable() {
|
|
1045
1129
|
latch.openUnsafe();
|
|
1046
1130
|
}
|
|
@@ -1270,7 +1354,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1270
1354
|
});
|
|
1271
1355
|
}
|
|
1272
1356
|
if (stream) {
|
|
1273
|
-
return
|
|
1357
|
+
return map8(runInputStream(stream, sink, inputFailure), () => {
|
|
1274
1358
|
inputSinks.set(fd, sink);
|
|
1275
1359
|
});
|
|
1276
1360
|
}
|
|
@@ -1376,7 +1460,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1376
1460
|
};
|
|
1377
1461
|
};
|
|
1378
1462
|
const spawn2 = (command, spawnOptions) => callback3((resume) => {
|
|
1379
|
-
const deferred =
|
|
1463
|
+
const deferred = makeUnsafe5();
|
|
1380
1464
|
const handle = NodeChildProcess.spawn(command.command, command.args.map(unwrap2), spawnOptions);
|
|
1381
1465
|
handle.on("error", (error) => {
|
|
1382
1466
|
if (command.args.some(isRedacted)) {
|
|
@@ -1552,7 +1636,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1552
1636
|
}
|
|
1553
1637
|
return reref;
|
|
1554
1638
|
});
|
|
1555
|
-
const inputFailure =
|
|
1639
|
+
const inputFailure = makeUnsafe5();
|
|
1556
1640
|
const stdin = yield* setupChildStdin(cmd, childProcess, stdinConfig, inputFailure);
|
|
1557
1641
|
const {
|
|
1558
1642
|
all,
|
|
@@ -1563,7 +1647,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1563
1647
|
getInputFd,
|
|
1564
1648
|
getOutputFd
|
|
1565
1649
|
} = yield* setupAdditionalFds(cmd, childProcess, resolvedAdditionalFds, inputFailure);
|
|
1566
|
-
const isRunning =
|
|
1650
|
+
const isRunning = map8(isDone(exitSignal), (done) => !done);
|
|
1567
1651
|
const exitCode = flatMap3(raceFirst(_await(exitSignal), _await(inputFailure)), ([code, signal]) => {
|
|
1568
1652
|
if (isDoneUnsafe(inputFailure)) {
|
|
1569
1653
|
return _await(inputFailure);
|
|
@@ -1844,7 +1928,7 @@ var noFollowFlags = (method, flag) => suspend3(() => {
|
|
|
1844
1928
|
var openFactory = (method) => {
|
|
1845
1929
|
const nodeOpen = effectify(NFS.open, handleErrnoException("FileSystem", method), handleBadArgument(method));
|
|
1846
1930
|
const nodeClose = effectify(NFS.close, handleErrnoException("FileSystem", method), handleBadArgument(method));
|
|
1847
|
-
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))),
|
|
1931
|
+
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)));
|
|
1848
1932
|
};
|
|
1849
1933
|
var open2 = /* @__PURE__ */ openFactory("open");
|
|
1850
1934
|
var negativePosition = (method) => badArgument({
|
|
@@ -1905,7 +1989,7 @@ var makeFile = /* @__PURE__ */ (() => {
|
|
|
1905
1989
|
});
|
|
1906
1990
|
}
|
|
1907
1991
|
const position = this.position;
|
|
1908
|
-
return
|
|
1992
|
+
return map8(nodeRead(this.fd, {
|
|
1909
1993
|
buffer,
|
|
1910
1994
|
position
|
|
1911
1995
|
}), (bytesRead) => {
|
|
@@ -1926,7 +2010,7 @@ var makeFile = /* @__PURE__ */ (() => {
|
|
|
1926
2010
|
}
|
|
1927
2011
|
const buffer = Buffer.allocUnsafeSlow(size);
|
|
1928
2012
|
const position = explicit ?? this.position;
|
|
1929
|
-
return
|
|
2013
|
+
return map8(nodeReadAlloc(this.fd, {
|
|
1930
2014
|
buffer,
|
|
1931
2015
|
position
|
|
1932
2016
|
}), (bytesRead) => {
|
|
@@ -1949,7 +2033,7 @@ var makeFile = /* @__PURE__ */ (() => {
|
|
|
1949
2033
|
});
|
|
1950
2034
|
}
|
|
1951
2035
|
truncate(length) {
|
|
1952
|
-
return
|
|
2036
|
+
return map8(nodeTruncate(this.fd, length || undefined), () => {
|
|
1953
2037
|
if (!this.append) {
|
|
1954
2038
|
const len = BigInt(length ?? 0);
|
|
1955
2039
|
if (this.position > len) {
|
|
@@ -1961,7 +2045,7 @@ var makeFile = /* @__PURE__ */ (() => {
|
|
|
1961
2045
|
write(buffer) {
|
|
1962
2046
|
return suspend3(() => {
|
|
1963
2047
|
const position = this.position;
|
|
1964
|
-
return flatMap3(this.append ? succeed6(undefined) : positionToNumber(position, "write"), (nodePosition) =>
|
|
2048
|
+
return flatMap3(this.append ? succeed6(undefined) : positionToNumber(position, "write"), (nodePosition) => map8(nodeWrite(this.fd, buffer, undefined, undefined, nodePosition), (bytesWritten) => {
|
|
1965
2049
|
if (!this.append) {
|
|
1966
2050
|
this.position = position + BigInt(bytesWritten);
|
|
1967
2051
|
}
|
|
@@ -2023,7 +2107,7 @@ var readDirectoryEntries = (path) => tryPromise({
|
|
|
2023
2107
|
withFileTypes: true
|
|
2024
2108
|
}),
|
|
2025
2109
|
catch: (err) => handleErrnoException("FileSystem", "readDirectoryEntries")(err, [path])
|
|
2026
|
-
}).pipe(
|
|
2110
|
+
}).pipe(map8((entries) => entries.map((entry) => ({
|
|
2027
2111
|
name: entry.name,
|
|
2028
2112
|
type: fileType(entry)
|
|
2029
2113
|
}))));
|
|
@@ -2138,7 +2222,7 @@ var watchNode = (path, info, options) => callback((queue) => acquireRelease(sync
|
|
|
2138
2222
|
});
|
|
2139
2223
|
return watcher;
|
|
2140
2224
|
}), (watcher) => sync2(() => watcher.close())).pipe(tap2(() => sync2(() => options?.onReady?.()))));
|
|
2141
|
-
var watch2 = (backend, path, options) => all3([stat2(path), serviceOption(WatchBackend)]).pipe(
|
|
2225
|
+
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);
|
|
2142
2226
|
var writeFile2 = (path, data, options) => callback3((resume, signal) => {
|
|
2143
2227
|
try {
|
|
2144
2228
|
NFS.writeFile(path, data, {
|
|
@@ -2156,7 +2240,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
|
|
|
2156
2240
|
resume(fail7(handleBadArgument("writeFile")(err)));
|
|
2157
2241
|
}
|
|
2158
2242
|
});
|
|
2159
|
-
var makeFileSystem = /* @__PURE__ */
|
|
2243
|
+
var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make12({
|
|
2160
2244
|
access: access2,
|
|
2161
2245
|
chmod: chmod2,
|
|
2162
2246
|
chown: chown2,
|
|
@@ -2216,15 +2300,15 @@ var fileUrlOps = (windows) => ({
|
|
|
2216
2300
|
})
|
|
2217
2301
|
})
|
|
2218
2302
|
});
|
|
2219
|
-
var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2303
|
+
var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
|
|
2220
2304
|
...NodePath.posix,
|
|
2221
2305
|
.../* @__PURE__ */ fileUrlOps(false)
|
|
2222
2306
|
}));
|
|
2223
|
-
var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2307
|
+
var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
|
|
2224
2308
|
...NodePath.win32,
|
|
2225
2309
|
.../* @__PURE__ */ fileUrlOps(true)
|
|
2226
2310
|
}));
|
|
2227
|
-
var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2311
|
+
var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
|
|
2228
2312
|
...NodePath,
|
|
2229
2313
|
.../* @__PURE__ */ fileUrlOps(undefined)
|
|
2230
2314
|
}));
|
|
@@ -2483,7 +2567,7 @@ var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCry
|
|
|
2483
2567
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
|
|
2484
2568
|
var TypeId4 = "~effect/http/Cookies";
|
|
2485
2569
|
var CookieTypeId = "~effect/http/Cookies/Cookie";
|
|
2486
|
-
var
|
|
2570
|
+
var Proto2 = {
|
|
2487
2571
|
[TypeId4]: TypeId4,
|
|
2488
2572
|
...BaseProto,
|
|
2489
2573
|
toJSON() {
|
|
@@ -2497,7 +2581,7 @@ var Proto = {
|
|
|
2497
2581
|
}
|
|
2498
2582
|
};
|
|
2499
2583
|
var fromReadonlyRecord = (cookies) => {
|
|
2500
|
-
const self = Object.create(
|
|
2584
|
+
const self = Object.create(Proto2);
|
|
2501
2585
|
self.cookies = cookies;
|
|
2502
2586
|
return self;
|
|
2503
2587
|
};
|
|
@@ -2664,13 +2748,13 @@ var tryDecodeURIComponent = (str) => {
|
|
|
2664
2748
|
|
|
2665
2749
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Headers.js
|
|
2666
2750
|
var TypeId5 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
|
|
2667
|
-
var
|
|
2751
|
+
var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
|
|
2668
2752
|
[TypeId5]: {
|
|
2669
2753
|
value: TypeId5
|
|
2670
2754
|
},
|
|
2671
2755
|
[symbolRedactable]: {
|
|
2672
2756
|
value(context) {
|
|
2673
|
-
return redact2(this,
|
|
2757
|
+
return redact2(this, get4(context, CurrentRedactedNames));
|
|
2674
2758
|
}
|
|
2675
2759
|
},
|
|
2676
2760
|
toJSON: {
|
|
@@ -2680,7 +2764,7 @@ var Proto2 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
|
|
|
2680
2764
|
},
|
|
2681
2765
|
[symbol2]: {
|
|
2682
2766
|
value(that) {
|
|
2683
|
-
return
|
|
2767
|
+
return Equivalence2(this, that);
|
|
2684
2768
|
}
|
|
2685
2769
|
},
|
|
2686
2770
|
[symbol]: {
|
|
@@ -2695,20 +2779,20 @@ var Proto2 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
|
|
|
2695
2779
|
value: BaseProto[NodeInspectSymbol]
|
|
2696
2780
|
}
|
|
2697
2781
|
});
|
|
2698
|
-
var make22 = (input) => Object.assign(Object.create(
|
|
2699
|
-
var
|
|
2700
|
-
var empty = /* @__PURE__ */ Object.create(
|
|
2782
|
+
var make22 = (input) => Object.assign(Object.create(Proto3), input);
|
|
2783
|
+
var Equivalence2 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
|
|
2784
|
+
var empty = /* @__PURE__ */ Object.create(Proto3);
|
|
2701
2785
|
var fromInput = (input) => {
|
|
2702
2786
|
if (input === undefined) {
|
|
2703
2787
|
return empty;
|
|
2704
2788
|
} else if (Symbol.iterator in input) {
|
|
2705
|
-
const out = Object.create(
|
|
2789
|
+
const out = Object.create(Proto3);
|
|
2706
2790
|
for (const [k, v] of input) {
|
|
2707
2791
|
out[k.toLowerCase()] = v;
|
|
2708
2792
|
}
|
|
2709
2793
|
return out;
|
|
2710
2794
|
}
|
|
2711
|
-
const out = Object.create(
|
|
2795
|
+
const out = Object.create(Proto3);
|
|
2712
2796
|
for (const [k, v] of Object.entries(input)) {
|
|
2713
2797
|
if (Array.isArray(v)) {
|
|
2714
2798
|
out[k.toLowerCase()] = v.join(", ");
|
|
@@ -2718,7 +2802,7 @@ var fromInput = (input) => {
|
|
|
2718
2802
|
}
|
|
2719
2803
|
return out;
|
|
2720
2804
|
};
|
|
2721
|
-
var fromRecordUnsafe = (input) => Object.setPrototypeOf(input,
|
|
2805
|
+
var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto3);
|
|
2722
2806
|
var set = /* @__PURE__ */ dual(3, (self, key, value) => {
|
|
2723
2807
|
const out = make22(self);
|
|
2724
2808
|
out[key.toLowerCase()] = value;
|
|
@@ -2793,7 +2877,7 @@ var fromBody = (bytes) => new URLSearchParams(bodyDecoder.decode(bytes).replace(
|
|
|
2793
2877
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/UrlParams.js
|
|
2794
2878
|
var TypeId6 = "~effect/http/UrlParams";
|
|
2795
2879
|
var isUrlParams = (u) => hasProperty(u, TypeId6);
|
|
2796
|
-
var
|
|
2880
|
+
var Proto4 = {
|
|
2797
2881
|
...PipeInspectableProto,
|
|
2798
2882
|
[TypeId6]: TypeId6,
|
|
2799
2883
|
[Symbol.iterator]() {
|
|
@@ -2802,21 +2886,21 @@ var Proto3 = {
|
|
|
2802
2886
|
[symbolRedactable](context) {
|
|
2803
2887
|
return {
|
|
2804
2888
|
_id: "UrlParams",
|
|
2805
|
-
params: Object.fromEntries(redact3(this,
|
|
2889
|
+
params: Object.fromEntries(redact3(this, get4(context, CurrentRedactedNames2)))
|
|
2806
2890
|
};
|
|
2807
2891
|
},
|
|
2808
2892
|
toJSON() {
|
|
2809
2893
|
return redact(this);
|
|
2810
2894
|
},
|
|
2811
2895
|
[symbol2](that) {
|
|
2812
|
-
return
|
|
2896
|
+
return Equivalence3(this, that);
|
|
2813
2897
|
},
|
|
2814
2898
|
[symbol]() {
|
|
2815
2899
|
return array(this.params.flat());
|
|
2816
2900
|
}
|
|
2817
2901
|
};
|
|
2818
2902
|
var make23 = (params) => {
|
|
2819
|
-
const self = Object.create(
|
|
2903
|
+
const self = Object.create(Proto4);
|
|
2820
2904
|
self.params = params;
|
|
2821
2905
|
return self;
|
|
2822
2906
|
};
|
|
@@ -2858,7 +2942,7 @@ var fromInputNested = (input) => {
|
|
|
2858
2942
|
return out;
|
|
2859
2943
|
};
|
|
2860
2944
|
var coerce = (value) => isRedacted(value) ? value : String(value);
|
|
2861
|
-
var
|
|
2945
|
+
var Equivalence3 = /* @__PURE__ */ make14((a, b) => arrayEquivalence(a.params, b.params));
|
|
2862
2946
|
var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
|
|
2863
2947
|
var empty4 = /* @__PURE__ */ make23([]);
|
|
2864
2948
|
var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
@@ -2928,7 +3012,7 @@ var decodeQueryKey = (key) => {
|
|
|
2928
3012
|
return key;
|
|
2929
3013
|
}
|
|
2930
3014
|
};
|
|
2931
|
-
var currentRedactedNames = () =>
|
|
3015
|
+
var currentRedactedNames = () => get4(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
|
|
2932
3016
|
var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
|
|
2933
3017
|
defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
|
|
2934
3018
|
});
|
|
@@ -2964,7 +3048,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
2964
3048
|
};
|
|
2965
3049
|
stdin.once("end", onStdinEnd);
|
|
2966
3050
|
yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
|
|
2967
|
-
const rlRef = yield*
|
|
3051
|
+
const rlRef = yield* make10({
|
|
2968
3052
|
acquire: acquireRelease(sync2(() => {
|
|
2969
3053
|
const rl = readline.createInterface({
|
|
2970
3054
|
input: stdin,
|
|
@@ -3003,7 +3087,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3003
3087
|
if (stdin.isTTY)
|
|
3004
3088
|
stdin.setRawMode(enabled);
|
|
3005
3089
|
});
|
|
3006
|
-
const rawModeRef = yield*
|
|
3090
|
+
const rawModeRef = yield* make10({
|
|
3007
3091
|
acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
|
|
3008
3092
|
idleTimeToLive: "10 millis"
|
|
3009
3093
|
});
|
|
@@ -3054,14 +3138,14 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3054
3138
|
if (inputEnded) {
|
|
3055
3139
|
handleEnd();
|
|
3056
3140
|
} else {
|
|
3057
|
-
yield*
|
|
3058
|
-
yield*
|
|
3141
|
+
yield* get3(rlRef);
|
|
3142
|
+
yield* get3(rawModeRef);
|
|
3059
3143
|
stdin.once("end", handleEnd);
|
|
3060
3144
|
}
|
|
3061
3145
|
return queue;
|
|
3062
3146
|
});
|
|
3063
3147
|
const readLine = suspend3(() => poll(lines).pipe(flatMap3(match({
|
|
3064
|
-
onNone: () => scoped(andThen2(
|
|
3148
|
+
onNone: () => scoped(andThen2(get3(rlRef), take(lines))),
|
|
3065
3149
|
onSome: succeed6
|
|
3066
3150
|
})), mapError2(() => new QuitError({}))));
|
|
3067
3151
|
const display = (prompt) => uninterruptible(callback3((resume) => {
|
|
@@ -3105,17 +3189,17 @@ var log = (...args) => consoleWith((console) => sync(() => {
|
|
|
3105
3189
|
|
|
3106
3190
|
// packages/core/src/time.ts
|
|
3107
3191
|
function toDate(input) {
|
|
3108
|
-
return
|
|
3192
|
+
return toDateUtc2(makeUnsafe(input));
|
|
3109
3193
|
}
|
|
3110
3194
|
function parseDate(input) {
|
|
3111
|
-
return getOrUndefined(map4(
|
|
3195
|
+
return getOrUndefined(map4(make18(input), toDateUtc2));
|
|
3112
3196
|
}
|
|
3113
3197
|
function toIso(input) {
|
|
3114
|
-
return formatIso(
|
|
3198
|
+
return formatIso(makeUnsafe(input));
|
|
3115
3199
|
}
|
|
3116
|
-
var currentDate =
|
|
3200
|
+
var currentDate = map8(now2, toDateUtc2);
|
|
3117
3201
|
function wallClockMillis() {
|
|
3118
|
-
return
|
|
3202
|
+
return toEpochMillis2(nowUnsafe2());
|
|
3119
3203
|
}
|
|
3120
3204
|
|
|
3121
3205
|
// packages/core/src/waiting-on.ts
|
|
@@ -6731,7 +6815,7 @@ var WorkUnitLease = Struct({
|
|
|
6731
6815
|
leaseExpiresAt: Timestamp,
|
|
6732
6816
|
lastHeartbeatAt: Timestamp
|
|
6733
6817
|
});
|
|
6734
|
-
var WorkUnitLeaseProjection = Struct(
|
|
6818
|
+
var WorkUnitLeaseProjection = Struct(map9(WorkUnitLease.fields, optionalKey));
|
|
6735
6819
|
var WorkUnitRepoBinding = Struct({
|
|
6736
6820
|
id: Id,
|
|
6737
6821
|
provider: RepoBindingProvider,
|
|
@@ -9565,7 +9649,7 @@ var TranscriptSearchResult = Struct({
|
|
|
9565
9649
|
});
|
|
9566
9650
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
|
|
9567
9651
|
var TypeId8 = "~effect/http/HttpBody";
|
|
9568
|
-
class
|
|
9652
|
+
class Proto5 {
|
|
9569
9653
|
[TypeId8];
|
|
9570
9654
|
constructor() {
|
|
9571
9655
|
this[TypeId8] = TypeId8;
|
|
@@ -9580,7 +9664,7 @@ class Proto4 {
|
|
|
9580
9664
|
}
|
|
9581
9665
|
}
|
|
9582
9666
|
|
|
9583
|
-
class Empty extends
|
|
9667
|
+
class Empty extends Proto5 {
|
|
9584
9668
|
_tag = "Empty";
|
|
9585
9669
|
toJSON() {
|
|
9586
9670
|
return {
|
|
@@ -9591,7 +9675,7 @@ class Empty extends Proto4 {
|
|
|
9591
9675
|
}
|
|
9592
9676
|
var empty5 = /* @__PURE__ */ new Empty;
|
|
9593
9677
|
|
|
9594
|
-
class Raw extends
|
|
9678
|
+
class Raw extends Proto5 {
|
|
9595
9679
|
_tag = "Raw";
|
|
9596
9680
|
body;
|
|
9597
9681
|
contentType;
|
|
@@ -9614,7 +9698,7 @@ class Raw extends Proto4 {
|
|
|
9614
9698
|
}
|
|
9615
9699
|
var raw = (body, options) => new Raw(body, options?.contentType, options?.contentLength);
|
|
9616
9700
|
|
|
9617
|
-
class Uint8Array2 extends
|
|
9701
|
+
class Uint8Array2 extends Proto5 {
|
|
9618
9702
|
_tag = "Uint8Array";
|
|
9619
9703
|
contentType;
|
|
9620
9704
|
contentLength;
|
|
@@ -9841,7 +9925,7 @@ var baseUrl = () => {
|
|
|
9841
9925
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientRequest.js
|
|
9842
9926
|
var TypeId10 = "~effect/http/HttpClientRequest";
|
|
9843
9927
|
var isHttpClientRequest = (u) => hasProperty(u, TypeId10);
|
|
9844
|
-
var
|
|
9928
|
+
var Proto6 = {
|
|
9845
9929
|
[TypeId10]: TypeId10,
|
|
9846
9930
|
...BaseProto,
|
|
9847
9931
|
toJSON() {
|
|
@@ -9860,7 +9944,7 @@ var Proto5 = {
|
|
|
9860
9944
|
}
|
|
9861
9945
|
};
|
|
9862
9946
|
function makeWith(method, url, urlParams, hash, headers, body) {
|
|
9863
|
-
const self = Object.create(
|
|
9947
|
+
const self = Object.create(Proto6);
|
|
9864
9948
|
self.method = method;
|
|
9865
9949
|
self.url = url;
|
|
9866
9950
|
self.urlParams = urlParams;
|
|
@@ -10047,7 +10131,7 @@ class WebHttpClientResponse extends Class {
|
|
|
10047
10131
|
}
|
|
10048
10132
|
textBody;
|
|
10049
10133
|
get text() {
|
|
10050
|
-
return this.textBody ??=
|
|
10134
|
+
return this.textBody ??= map8(this.arrayBuffer, (_) => new TextDecoder().decode(_));
|
|
10051
10135
|
}
|
|
10052
10136
|
get urlParamsBody() {
|
|
10053
10137
|
return flatMap3(this.arrayBuffer, (bytes) => try_2({
|
|
@@ -10158,7 +10242,7 @@ var get2 = /* @__PURE__ */ accessor("get");
|
|
|
10158
10242
|
var transform = /* @__PURE__ */ dual(2, (self, f) => makeWith2(flatMap3((request) => f(self.postprocess(succeed6(request)), request)), self.preprocess));
|
|
10159
10243
|
var transformResponse = /* @__PURE__ */ dual(2, (self, f) => makeWith2((request) => f(self.postprocess(request)), self.preprocess));
|
|
10160
10244
|
var makeWith2 = (postprocess, preprocess) => {
|
|
10161
|
-
const self = Object.create(
|
|
10245
|
+
const self = Object.create(Proto7);
|
|
10162
10246
|
self.preprocess = preprocess;
|
|
10163
10247
|
self.postprocess = postprocess;
|
|
10164
10248
|
self.execute = function(request) {
|
|
@@ -10166,7 +10250,7 @@ var makeWith2 = (postprocess, preprocess) => {
|
|
|
10166
10250
|
};
|
|
10167
10251
|
return self;
|
|
10168
10252
|
};
|
|
10169
|
-
var
|
|
10253
|
+
var Proto7 = {
|
|
10170
10254
|
[TypeId13]: TypeId13,
|
|
10171
10255
|
pipe() {
|
|
10172
10256
|
return pipeArguments(this, arguments);
|
|
@@ -10198,7 +10282,7 @@ var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFibe
|
|
|
10198
10282
|
if (tracerDisabled) {
|
|
10199
10283
|
const effect = f(request, url, controller.signal, fiber);
|
|
10200
10284
|
if (scopedController)
|
|
10201
|
-
return
|
|
10285
|
+
return map8(effect, (response) => trackResponse(response, controller, true));
|
|
10202
10286
|
return uninterruptibleMask2((restore) => matchCauseEffect(restore(effect), {
|
|
10203
10287
|
onSuccess(response) {
|
|
10204
10288
|
return succeed6(trackResponse(response, controller, false));
|
|
@@ -10269,7 +10353,7 @@ var TracerPropagationEnabled = /* @__PURE__ */ Reference("effect/http/HttpClient
|
|
|
10269
10353
|
var SpanNameGenerator = /* @__PURE__ */ Reference("effect/http/HttpClient/SpanNameGenerator", {
|
|
10270
10354
|
defaultValue: () => (request) => request.method
|
|
10271
10355
|
});
|
|
10272
|
-
var layerMergedContext = (effect2) => effect(HttpClient)(contextWith((context) =>
|
|
10356
|
+
var layerMergedContext = (effect2) => effect(HttpClient)(contextWith((context) => map8(effect2, (client) => transformResponse(client, updateContext((input) => merge3(context, input))))));
|
|
10273
10357
|
var responseRegistry = /* @__PURE__ */ (() => {
|
|
10274
10358
|
if ("FinalizationRegistry" in globalThis && globalThis.FinalizationRegistry) {
|
|
10275
10359
|
const registry = /* @__PURE__ */ new FinalizationRegistry((controller) => {
|
|
@@ -10434,7 +10518,7 @@ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
|
|
|
10434
10518
|
}
|
|
10435
10519
|
let uploadController;
|
|
10436
10520
|
const stopUpload = sync2(() => uploadController?.abort());
|
|
10437
|
-
const send = (body) =>
|
|
10521
|
+
const send = (body) => map8(tryPromise({
|
|
10438
10522
|
try: () => fetch2(url, {
|
|
10439
10523
|
...options,
|
|
10440
10524
|
method: request.method,
|
|
@@ -10605,14 +10689,14 @@ var layerWebSocketConstructorGlobal = /* @__PURE__ */ succeed5(WebSocketConstruc
|
|
|
10605
10689
|
}
|
|
10606
10690
|
return new globalThis.WebSocket(url, options);
|
|
10607
10691
|
});
|
|
10608
|
-
var makeWebSocket = (url, options) => WebSocketConstructor.use((makeWs) => fromWebSocket(acquireRelease((typeof url === "string" ? succeed6(url) : url).pipe(
|
|
10692
|
+
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 : {
|
|
10609
10693
|
protocols: options.protocols,
|
|
10610
10694
|
headers: options.headers
|
|
10611
10695
|
}))), (ws) => sync2(() => ws.close(1000))), options));
|
|
10612
10696
|
var isPausable = (ws) => ("pause" in ws) && typeof ws.pause === "function";
|
|
10613
10697
|
var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
|
|
10614
10698
|
let currentWS;
|
|
10615
|
-
const latch =
|
|
10699
|
+
const latch = makeUnsafe2(false);
|
|
10616
10700
|
const acquireContext = fiber.context;
|
|
10617
10701
|
const reader = gen(function* () {
|
|
10618
10702
|
const scope = yield* scope2;
|
|
@@ -11240,7 +11324,7 @@ var effectMetrics = new Map(MetricDefinitions.map((definition) => {
|
|
|
11240
11324
|
var processTelemetryRegistry = new Map;
|
|
11241
11325
|
var processMetricRegistry = new Map;
|
|
11242
11326
|
var collectorTimeout = "10 seconds";
|
|
11243
|
-
var collectorHttpClient = effect(HttpClient)(
|
|
11327
|
+
var collectorHttpClient = effect(HttpClient)(map8(HttpClient, (client) => transform(client, (response, request) => timeoutOrElse(response, {
|
|
11244
11328
|
duration: collectorTimeout,
|
|
11245
11329
|
orElse: () => fail7(new HttpClientError({
|
|
11246
11330
|
reason: new TransportError({
|
|
@@ -13127,7 +13211,7 @@ class KitmanEffectClient {
|
|
|
13127
13211
|
return tryPromise({
|
|
13128
13212
|
try: () => this.fetchImpl(this.url(path), { ...init, headers, signal: abort.signal }),
|
|
13129
13213
|
catch: failed
|
|
13130
|
-
}).pipe(flatMap3((answer) => tryPromise({ try: () => answer.arrayBuffer(), catch: failed }).pipe(
|
|
13214
|
+
}).pipe(flatMap3((answer) => tryPromise({ try: () => answer.arrayBuffer(), catch: failed }).pipe(map8((body) => new Response(body.byteLength === 0 ? null : body, answer)))), onInterrupt(() => sync2(() => abort.abort())));
|
|
13131
13215
|
});
|
|
13132
13216
|
const response = yield* method !== "GET" ? send.pipe(retry({ schedule: unansweredGetRetry, times: 5, while: refusedConnection })) : sendAndRead.pipe(timeoutOrElse({
|
|
13133
13217
|
duration: getAnswerTimeout,
|
|
@@ -13189,8 +13273,8 @@ class KitmanEffectClient {
|
|
|
13189
13273
|
function errorResponseDetails(response) {
|
|
13190
13274
|
const contentType = response.headers.get("content-type") ?? "";
|
|
13191
13275
|
if (contentType.includes("application/json"))
|
|
13192
|
-
return tryPromise(() => response.json()).pipe(
|
|
13193
|
-
return tryPromise(() => response.text()).pipe(
|
|
13276
|
+
return tryPromise(() => response.json()).pipe(map8(parseErrorResponse), orElseSucceed(() => ({})));
|
|
13277
|
+
return tryPromise(() => response.text()).pipe(map8((text) => {
|
|
13194
13278
|
const message = sanitizeErrorDetail(text);
|
|
13195
13279
|
return message === undefined ? {} : { message };
|
|
13196
13280
|
}), orElseSucceed(() => ({})));
|
|
@@ -13486,13 +13570,13 @@ function resolveConfig(input) {
|
|
|
13486
13570
|
...userAgentPreferences === undefined ? undefined : { userAgentPreferences }
|
|
13487
13571
|
};
|
|
13488
13572
|
}
|
|
13489
|
-
var apiUrlFromEnv = String2("KITMAN_API_URL").pipe(option,
|
|
13490
|
-
var stepCredentialFromEnv = String2("KITMAN_STEP_CREDENTIAL").pipe(option,
|
|
13491
|
-
var stepWorkspaceFromEnv = String2("KITMAN_STEP_WORKSPACE").pipe(option,
|
|
13492
|
-
var stepSkillsDirFromEnv = String2("KITMAN_STEP_SKILLS_DIR").pipe(option,
|
|
13493
|
-
var stepFittingSkillsFromEnv = String2("KITMAN_STEP_FITTING_SKILLS").pipe(option,
|
|
13494
|
-
var stepOutputOnlyFromEnv = String2("KITMAN_STEP_TOOLS").pipe(option,
|
|
13495
|
-
var mcpCredentialNameFromEnv = String2("KITMAN_MCP_CREDENTIAL_NAME").pipe(option,
|
|
13573
|
+
var apiUrlFromEnv = String2("KITMAN_API_URL").pipe(option, map8(getOrUndefined));
|
|
13574
|
+
var stepCredentialFromEnv = String2("KITMAN_STEP_CREDENTIAL").pipe(option, map8(getOrUndefined));
|
|
13575
|
+
var stepWorkspaceFromEnv = String2("KITMAN_STEP_WORKSPACE").pipe(option, map8(getOrUndefined));
|
|
13576
|
+
var stepSkillsDirFromEnv = String2("KITMAN_STEP_SKILLS_DIR").pipe(option, map8(getOrUndefined));
|
|
13577
|
+
var stepFittingSkillsFromEnv = String2("KITMAN_STEP_FITTING_SKILLS").pipe(option, map8((names) => getOrElse(names, () => "").split(",").filter((name) => name !== "")));
|
|
13578
|
+
var stepOutputOnlyFromEnv = String2("KITMAN_STEP_TOOLS").pipe(option, map8((tools) => getOrUndefined(tools) === "output"));
|
|
13579
|
+
var mcpCredentialNameFromEnv = String2("KITMAN_MCP_CREDENTIAL_NAME").pipe(option, map8(getOrUndefined));
|
|
13496
13580
|
var kitmanConfigDir = gen(function* () {
|
|
13497
13581
|
const path = yield* Path;
|
|
13498
13582
|
const xdgConfigHome = yield* String2("XDG_CONFIG_HOME").pipe(option);
|
|
@@ -13509,7 +13593,7 @@ var userAuthPath = configFile("auth.json");
|
|
|
13509
13593
|
var userHarnessSyncPath = configFile("harness-sync.json");
|
|
13510
13594
|
var kitSetupCacheDir = configFile("kit-setups");
|
|
13511
13595
|
var bundleCacheDir = configFile("bundles");
|
|
13512
|
-
var localConfigPath = Path.pipe(
|
|
13596
|
+
var localConfigPath = Path.pipe(map8((path) => path.resolve(".kitman/config.json")));
|
|
13513
13597
|
function readUserConfig(path) {
|
|
13514
13598
|
return gen(function* () {
|
|
13515
13599
|
const filePath = path ?? (yield* userConfigPath);
|
|
@@ -13637,7 +13721,7 @@ function sessionForApi(auth, apiUrl) {
|
|
|
13637
13721
|
return auth.sessions[normalizeApiUrl(apiUrl)];
|
|
13638
13722
|
}
|
|
13639
13723
|
function readAuthStore(path) {
|
|
13640
|
-
return readUserAuth(path).pipe(
|
|
13724
|
+
return readUserAuth(path).pipe(map8((auth) => isAuthStore(auth) ? normalizeAuthStore(auth) : { sessions: {} }), catchTag("SchemaError", () => succeed6({ sessions: {} })));
|
|
13641
13725
|
}
|
|
13642
13726
|
function writeAuthStore(auth, path) {
|
|
13643
13727
|
return writeUserAuth(auth, path);
|
|
@@ -13785,7 +13869,7 @@ function Stream(success, error) {
|
|
|
13785
13869
|
|
|
13786
13870
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
|
|
13787
13871
|
var TypeId15 = "~effect/rpc/Rpc";
|
|
13788
|
-
var
|
|
13872
|
+
var Proto8 = {
|
|
13789
13873
|
[TypeId15]: TypeId15,
|
|
13790
13874
|
pipe() {
|
|
13791
13875
|
return pipeArguments(this, arguments);
|
|
@@ -13870,7 +13954,7 @@ var Proto7 = {
|
|
|
13870
13954
|
};
|
|
13871
13955
|
var makeProto = (options) => {
|
|
13872
13956
|
function Rpc() {}
|
|
13873
|
-
Object.setPrototypeOf(Rpc,
|
|
13957
|
+
Object.setPrototypeOf(Rpc, Proto8);
|
|
13874
13958
|
Object.assign(Rpc, options);
|
|
13875
13959
|
Rpc.key = `effect/rpc/Rpc/${options._tag}`;
|
|
13876
13960
|
return Rpc;
|
|
@@ -13996,7 +14080,7 @@ var RpcGroupProto = {
|
|
|
13996
14080
|
}
|
|
13997
14081
|
return makeProto2({
|
|
13998
14082
|
requests,
|
|
13999
|
-
annotations:
|
|
14083
|
+
annotations: makeUnsafe4(annotations)
|
|
14000
14084
|
});
|
|
14001
14085
|
},
|
|
14002
14086
|
omit(...tags) {
|
|
@@ -14032,7 +14116,7 @@ var RpcGroupProto = {
|
|
|
14032
14116
|
context: services
|
|
14033
14117
|
});
|
|
14034
14118
|
});
|
|
14035
|
-
return
|
|
14119
|
+
return makeUnsafe4(contextMap);
|
|
14036
14120
|
});
|
|
14037
14121
|
},
|
|
14038
14122
|
prefix(prefix) {
|
|
@@ -14061,7 +14145,7 @@ var RpcGroupProto = {
|
|
|
14061
14145
|
handler,
|
|
14062
14146
|
context: services
|
|
14063
14147
|
});
|
|
14064
|
-
return
|
|
14148
|
+
return makeUnsafe4(contextMap);
|
|
14065
14149
|
}));
|
|
14066
14150
|
},
|
|
14067
14151
|
accessHandler(service) {
|
|
@@ -14086,7 +14170,7 @@ var RpcGroupProto = {
|
|
|
14086
14170
|
});
|
|
14087
14171
|
},
|
|
14088
14172
|
annotateRpcs(service, value) {
|
|
14089
|
-
return this.annotateRpcsMerge(
|
|
14173
|
+
return this.annotateRpcsMerge(make15(service, value));
|
|
14090
14174
|
},
|
|
14091
14175
|
annotateMerge(context) {
|
|
14092
14176
|
return makeProto2({
|
|
@@ -14768,7 +14852,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
|
|
|
14768
14852
|
var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
|
|
14769
14853
|
|
|
14770
14854
|
// apps/cli/src/oauth.ts
|
|
14771
|
-
var
|
|
14855
|
+
var Scope = "openid profile email offline_access kitman:cli";
|
|
14772
14856
|
var CallbackPath = "/auth/callback";
|
|
14773
14857
|
|
|
14774
14858
|
class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
|
|
@@ -14787,7 +14871,7 @@ function buildAuthorizeUrl(input) {
|
|
|
14787
14871
|
url.searchParams.set("response_type", "code");
|
|
14788
14872
|
url.searchParams.set("client_id", input.clientId);
|
|
14789
14873
|
url.searchParams.set("redirect_uri", input.redirectUri);
|
|
14790
|
-
url.searchParams.set("scope",
|
|
14874
|
+
url.searchParams.set("scope", Scope);
|
|
14791
14875
|
url.searchParams.set("code_challenge", input.codeChallenge);
|
|
14792
14876
|
url.searchParams.set("code_challenge_method", "S256");
|
|
14793
14877
|
url.searchParams.set("state", input.state);
|
|
@@ -14847,7 +14931,7 @@ function toStoredSession(token, existingRefreshToken) {
|
|
|
14847
14931
|
}
|
|
14848
14932
|
function startLoopbackServer(input) {
|
|
14849
14933
|
return gen(function* () {
|
|
14850
|
-
const code = yield*
|
|
14934
|
+
const code = yield* make16();
|
|
14851
14935
|
const context2 = yield* context();
|
|
14852
14936
|
const runSyncExit = runSyncExitWith(context2);
|
|
14853
14937
|
const server = yield* acquireRelease(sync2(() => Bun.serve({
|
|
@@ -14956,7 +15040,7 @@ function createSdkClient(input) {
|
|
|
14956
15040
|
const runPromise = runPromiseWith(yield* context());
|
|
14957
15041
|
const fetchImpl = input.fetch ?? (yield* Fetch);
|
|
14958
15042
|
let session = input.session;
|
|
14959
|
-
const refreshPermit =
|
|
15043
|
+
const refreshPermit = makeUnsafe3(1);
|
|
14960
15044
|
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 })));
|
|
14961
15045
|
const authorizedFetch = (resource, init) => runPromise(gen(function* () {
|
|
14962
15046
|
if (session.refreshToken && shouldRefresh(yield* currentDate, session.expiresAt))
|
|
@@ -14976,7 +15060,7 @@ function createSdkClient(input) {
|
|
|
14976
15060
|
});
|
|
14977
15061
|
}
|
|
14978
15062
|
function refreshSession(input) {
|
|
14979
|
-
const storedSession = readAuthStore(input.authPath).pipe(
|
|
15063
|
+
const storedSession = readAuthStore(input.authPath).pipe(map8((auth) => sessionForApi(auth, input.apiUrl)));
|
|
14980
15064
|
return withAuthLock(input.authPath, gen(function* () {
|
|
14981
15065
|
const stored = yield* storedSession;
|
|
14982
15066
|
if (!stored)
|
|
@@ -14991,7 +15075,7 @@ function refreshSession(input) {
|
|
|
14991
15075
|
clientId: input.clientId ?? ClientId,
|
|
14992
15076
|
refreshToken: spentToken,
|
|
14993
15077
|
...input.fetch ? { fetch: input.fetch } : undefined
|
|
14994
|
-
}).pipe(
|
|
15078
|
+
}).pipe(map8((token) => toStoredSession(token, spentToken)));
|
|
14995
15079
|
const session = yield* refreshing.pipe(catch_((error) => storedSession.pipe(filterOrFail((current) => current !== undefined && current.refreshToken !== spentToken, () => error))));
|
|
14996
15080
|
const current = yield* storedSession;
|
|
14997
15081
|
if (current?.refreshToken !== spentToken)
|
|
@@ -15387,7 +15471,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
15387
15471
|
let lastId = 0;
|
|
15388
15472
|
let lost = false;
|
|
15389
15473
|
const notifications = yield* unbounded2();
|
|
15390
|
-
const ended = yield*
|
|
15474
|
+
const ended = yield* make16();
|
|
15391
15475
|
const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
|
|
15392
15476
|
onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
|
|
15393
15477
|
onNone: () => void_3,
|
|
@@ -15414,7 +15498,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
15414
15498
|
if (lost)
|
|
15415
15499
|
return yield* new HerdrCoreConnectionLost2({ method });
|
|
15416
15500
|
const id = ++lastId;
|
|
15417
|
-
const deferred = yield*
|
|
15501
|
+
const deferred = yield* make16();
|
|
15418
15502
|
pending.set(id, { method, deferred });
|
|
15419
15503
|
yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
|
|
15420
15504
|
return yield* _await(deferred);
|
|
@@ -15446,9 +15530,9 @@ var herdrCoreOver = (transport) => ({
|
|
|
15446
15530
|
...input.name === undefined ? undefined : { name: input.name },
|
|
15447
15531
|
no_parent: input.noParent === true
|
|
15448
15532
|
}),
|
|
15449
|
-
list: (filter = {}) => request("terminal.list", Listed, { labels: filter.labels ?? {}, all: filter.all === true }).pipe(
|
|
15533
|
+
list: (filter = {}) => request("terminal.list", Listed, { labels: filter.labels ?? {}, all: filter.all === true }).pipe(map8((listed) => listed.terminals)),
|
|
15450
15534
|
get: (terminal) => request("terminal.get", Terminal2, { terminal }),
|
|
15451
|
-
read: (terminal) => request("terminal.read", Screen, { terminal }).pipe(
|
|
15535
|
+
read: (terminal) => request("terminal.read", Screen, { terminal }).pipe(map8((screen) => screen.text)),
|
|
15452
15536
|
interrupt: (terminal, options = {}) => request("terminal.interrupt", Interrupted, {
|
|
15453
15537
|
terminal,
|
|
15454
15538
|
...options.timeoutSeconds === undefined ? undefined : { timeout: options.timeoutSeconds }
|
|
@@ -15488,7 +15572,7 @@ var herdrCoreOver = (transport) => ({
|
|
|
15488
15572
|
return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
|
|
15489
15573
|
};
|
|
15490
15574
|
const snapshot = { type: "snapshot", terminals: subscribed.terminals };
|
|
15491
|
-
return concat(
|
|
15575
|
+
return concat(make11(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
|
|
15492
15576
|
}))
|
|
15493
15577
|
});
|
|
15494
15578
|
var spawnedTransport = (env) => gen(function* () {
|
|
@@ -15511,7 +15595,7 @@ var coreEnv = (options) => {
|
|
|
15511
15595
|
const env = Object.fromEntries(Object.entries(options.env ?? process.env).filter((entry) => entry[0] !== "HC_SESSION" && entry[1] !== undefined));
|
|
15512
15596
|
return options.session === undefined ? env : { ...env, HC_SESSION: options.session };
|
|
15513
15597
|
};
|
|
15514
|
-
var herdrCoreLayer2 = (options) => effect(HerdrCore2,
|
|
15598
|
+
var herdrCoreLayer2 = (options) => effect(HerdrCore2, map8(ChildProcessSpawner, (spawner) => herdrCoreOver(spawnedTransport(coreEnv(options)).pipe(provideService(ChildProcessSpawner, spawner)))));
|
|
15515
15599
|
var herdrCoreTransportLayer2 = (transport) => succeed5(HerdrCore2, herdrCoreOver(transport));
|
|
15516
15600
|
var UpdateRefused = Struct({
|
|
15517
15601
|
error: Struct({ message: String4, hint: optionalKey(String4) })
|
|
@@ -15534,13 +15618,13 @@ var updateHerdrCore2 = (options) => gen(function* () {
|
|
|
15534
15618
|
], { concurrency: 3 });
|
|
15535
15619
|
return { stdout, stderr, exitCode };
|
|
15536
15620
|
}).pipe(scoped, catchReason("PlatformError", "NotFound", () => fail7(new HerdrCoreMissing2)));
|
|
15537
|
-
const reason = yield* run(["update", "--json"]).pipe(
|
|
15621
|
+
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({
|
|
15538
15622
|
duration: options.timeout,
|
|
15539
15623
|
orElse: () => succeed6(`it did not finish within ${options.timeout}`)
|
|
15540
15624
|
}));
|
|
15541
15625
|
if (reason === undefined)
|
|
15542
15626
|
return;
|
|
15543
|
-
const version = yield* run(["--version"]).pipe(
|
|
15627
|
+
const version = yield* run(["--version"]).pipe(map8(({ stdout }) => stdout.trim() || "an unknown version"), timeout("10 seconds"), orElseSucceed(() => "an unknown version"));
|
|
15544
15628
|
return yield* new HerdrCoreUpdateFailed2({ version, reason: reason.slice(0, 400) });
|
|
15545
15629
|
});
|
|
15546
15630
|
|
|
@@ -15579,7 +15663,7 @@ var runProcess2 = (argv, options) => gen(function* () {
|
|
|
15579
15663
|
const spawner = yield* ChildProcessSpawner;
|
|
15580
15664
|
const [command, ...args] = argv;
|
|
15581
15665
|
const handle = yield* spawner.spawn(make3(command, args, {
|
|
15582
|
-
stdin: options.stdin === undefined ? "ignore" :
|
|
15666
|
+
stdin: options.stdin === undefined ? "ignore" : make11(new TextEncoder().encode(options.stdin)),
|
|
15583
15667
|
...options.cwd === undefined ? undefined : { cwd: options.cwd },
|
|
15584
15668
|
env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
|
|
15585
15669
|
}));
|
|
@@ -15625,7 +15709,7 @@ var detectHarnesses2 = gen(function* () {
|
|
|
15625
15709
|
const home = (yield* optionalEnv("HOME")) ?? "/";
|
|
15626
15710
|
const searchPath = ((yield* optionalEnv("PATH")) ?? "").split(":").filter(Boolean);
|
|
15627
15711
|
const exists = (file) => fs.exists(file).pipe(orElseSucceed(() => false));
|
|
15628
|
-
const any = (items, test) =>
|
|
15712
|
+
const any = (items, test) => map8(findFirst(items, test), isSome);
|
|
15629
15713
|
const loginFound = (login) => gen(function* () {
|
|
15630
15714
|
const file = path.join(home, login.path);
|
|
15631
15715
|
if (!(yield* exists(file)))
|
|
@@ -15641,7 +15725,7 @@ var detectHarnesses2 = gen(function* () {
|
|
|
15641
15725
|
unavailable.push({ harness: harness.id, missing: [`\`${harness.id}\` is not installed`] });
|
|
15642
15726
|
continue;
|
|
15643
15727
|
}
|
|
15644
|
-
const loggedIn = (yield* any(harness.keys, (key) =>
|
|
15728
|
+
const loggedIn = (yield* any(harness.keys, (key) => map8(optionalEnv(key), Boolean))) || (yield* any(harness.logins, loginFound));
|
|
15645
15729
|
if (loggedIn)
|
|
15646
15730
|
harnesses.push(harness.id);
|
|
15647
15731
|
else
|
|
@@ -16011,4 +16095,4 @@ function checkServices(declaration) {
|
|
|
16011
16095
|
return isSome(decoded) ? [...new Set(decoded.value.services)] : undefined;
|
|
16012
16096
|
}
|
|
16013
16097
|
|
|
16014
|
-
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, ReleaseChannels, DefaultReleaseChannel, newerKitmanVersion, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, tokensSpent, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, RunWaitUntils, isTestReportName, checkTests, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, MaxRunnerConcurrency, PinnedImage, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, deliveryProviderActions, 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 };
|
|
16098
|
+
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, ReleaseChannels, DefaultReleaseChannel, newerKitmanVersion, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, tokensSpent, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, RunWaitUntils, isTestReportName, checkTests, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, MaxRunnerConcurrency, PinnedImage, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, deliveryProviderActions, 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 };
|