@kitman-sh/cli 0.10.97 → 0.10.98
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-dstm8aen.js → chunk-07p2dcq3.js} +308 -111
- package/dist/{chunk-y8dzp1t8.js → chunk-3bjekzn7.js} +376 -459
- package/dist/{chunk-gfe4kk5k.js → chunk-6dc0x5cg.js} +8 -8
- package/dist/{chunk-q4q69zgm.js → chunk-797w5qe6.js} +7 -7
- package/dist/{chunk-nwqcmdtz.js → chunk-7c3pgktm.js} +9 -8
- package/dist/{chunk-c3k32vw4.js → chunk-7ya2q09c.js} +1 -1
- package/dist/{chunk-t8ny8exc.js → chunk-95mkdtzk.js} +9 -9
- package/dist/{chunk-k6ndhjcd.js → chunk-aba9zdpb.js} +48 -48
- package/dist/{chunk-mkr1nwdy.js → chunk-bqg9gy2e.js} +7 -7
- package/dist/{chunk-mxqrv47k.js → chunk-c6h3fhtb.js} +26 -26
- package/dist/{chunk-hsf2sj69.js → chunk-cgjyv52e.js} +2 -2
- package/dist/{chunk-k4fvnphp.js → chunk-d1sqb8rt.js} +1 -1
- package/dist/{chunk-3tjssyvf.js → chunk-fd39ch4n.js} +8 -8
- package/dist/{chunk-mrzmq4jq.js → chunk-g1xmj2nb.js} +4 -4
- package/dist/{chunk-yzmyy4vs.js → chunk-gfqm22x7.js} +5 -5
- package/dist/{chunk-qr0n7rde.js → chunk-j8vq6sk1.js} +21 -21
- package/dist/{chunk-2ndnvcp3.js → chunk-n8c1wh6t.js} +6 -6
- package/dist/{chunk-rmsm8vnc.js → chunk-nym2zmz3.js} +4 -4
- package/dist/{chunk-w0sehmpd.js → chunk-p83y21hp.js} +62 -16
- package/dist/{chunk-mbqeakm1.js → chunk-qrxkpwzy.js} +1 -1
- package/dist/{chunk-25q7mg6g.js → chunk-s5p94z8x.js} +69 -218
- package/dist/{chunk-3snbxcct.js → chunk-s90hj0mb.js} +55 -55
- package/dist/{chunk-jtyxjjvs.js → chunk-sy8d7bfa.js} +97 -97
- package/dist/{chunk-9m9cv82t.js → chunk-xwhybbj2.js} +2 -2
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -17,14 +17,9 @@ import {
|
|
|
17
17
|
isNullish,
|
|
18
18
|
hasProperty,
|
|
19
19
|
symbol,
|
|
20
|
-
hash,
|
|
21
|
-
combine,
|
|
22
|
-
number,
|
|
23
|
-
string,
|
|
24
20
|
structure,
|
|
25
21
|
array,
|
|
26
22
|
symbol2,
|
|
27
|
-
equals,
|
|
28
23
|
asEquivalence,
|
|
29
24
|
symbolRedactable,
|
|
30
25
|
redact,
|
|
@@ -52,19 +47,20 @@ import {
|
|
|
52
47
|
fromNullishOr,
|
|
53
48
|
fromUndefinedOr,
|
|
54
49
|
getOrUndefined,
|
|
55
|
-
liftThrowable,
|
|
56
50
|
map4,
|
|
57
51
|
flatMap,
|
|
58
52
|
Service2,
|
|
59
|
-
|
|
53
|
+
makeUnsafe3,
|
|
60
54
|
empty3,
|
|
61
55
|
make14,
|
|
62
56
|
add,
|
|
63
57
|
getOrUndefined2,
|
|
64
58
|
getOrUndefinedUnsafe,
|
|
65
|
-
|
|
59
|
+
get3,
|
|
66
60
|
merge3,
|
|
67
61
|
Reference,
|
|
62
|
+
fromInputUnsafe,
|
|
63
|
+
isFinite,
|
|
68
64
|
millis,
|
|
69
65
|
seconds,
|
|
70
66
|
toMillis,
|
|
@@ -83,14 +79,13 @@ import {
|
|
|
83
79
|
TaggedError,
|
|
84
80
|
DisablePropagation,
|
|
85
81
|
sync,
|
|
86
|
-
map7,
|
|
87
|
-
ClockRef,
|
|
88
|
-
currentTimeMillis2,
|
|
89
82
|
ConsoleRef,
|
|
90
83
|
succeed3,
|
|
91
84
|
fail4,
|
|
85
|
+
void_2,
|
|
92
86
|
isSuccess2,
|
|
93
|
-
|
|
87
|
+
isFailure2,
|
|
88
|
+
makeUnsafe4,
|
|
94
89
|
make15,
|
|
95
90
|
_await,
|
|
96
91
|
fail5,
|
|
@@ -99,8 +94,12 @@ import {
|
|
|
99
94
|
succeed4,
|
|
100
95
|
doneUnsafe,
|
|
101
96
|
TracerTimingEnabled,
|
|
97
|
+
Scope,
|
|
98
|
+
makeUnsafe5,
|
|
102
99
|
provide,
|
|
100
|
+
addFinalizerExit,
|
|
103
101
|
addFinalizer,
|
|
102
|
+
close,
|
|
104
103
|
succeed5,
|
|
105
104
|
effect,
|
|
106
105
|
effectContext,
|
|
@@ -113,8 +112,9 @@ import {
|
|
|
113
112
|
hasInterrupts2,
|
|
114
113
|
Done2,
|
|
115
114
|
done,
|
|
116
|
-
IllegalArgumentError,
|
|
117
115
|
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
|
+
map7,
|
|
144
144
|
as,
|
|
145
145
|
asVoid,
|
|
146
146
|
catch_,
|
|
@@ -152,6 +152,7 @@ import {
|
|
|
152
152
|
tapCause,
|
|
153
153
|
retry,
|
|
154
154
|
ignore,
|
|
155
|
+
ignoreCause,
|
|
155
156
|
orElseSucceed,
|
|
156
157
|
timeout,
|
|
157
158
|
timeoutOrElse,
|
|
@@ -163,6 +164,7 @@ import {
|
|
|
163
164
|
context,
|
|
164
165
|
contextWith,
|
|
165
166
|
provide3,
|
|
167
|
+
provideContext2,
|
|
166
168
|
serviceOption,
|
|
167
169
|
updateContext,
|
|
168
170
|
provideService,
|
|
@@ -173,6 +175,7 @@ import {
|
|
|
173
175
|
addFinalizer2,
|
|
174
176
|
ensuring2,
|
|
175
177
|
onError,
|
|
178
|
+
onExit,
|
|
176
179
|
cached,
|
|
177
180
|
interrupt3,
|
|
178
181
|
interruptible,
|
|
@@ -184,6 +187,7 @@ import {
|
|
|
184
187
|
withParentSpan,
|
|
185
188
|
forkScoped,
|
|
186
189
|
runFork,
|
|
190
|
+
runForkWith,
|
|
187
191
|
runPromise,
|
|
188
192
|
runPromiseWith,
|
|
189
193
|
runSync,
|
|
@@ -194,12 +198,16 @@ import {
|
|
|
194
198
|
logError,
|
|
195
199
|
effectify,
|
|
196
200
|
decode,
|
|
197
|
-
|
|
201
|
+
makeUnsafe6,
|
|
198
202
|
make16,
|
|
199
|
-
|
|
203
|
+
now,
|
|
204
|
+
nowUnsafe,
|
|
205
|
+
toDateUtc,
|
|
206
|
+
toEpochMillis,
|
|
207
|
+
formatIso,
|
|
200
208
|
defaultParseOptions,
|
|
201
209
|
omit,
|
|
202
|
-
|
|
210
|
+
map8,
|
|
203
211
|
declare,
|
|
204
212
|
decodeUnknownEffect2,
|
|
205
213
|
decodeEffect,
|
|
@@ -252,17 +260,48 @@ import {
|
|
|
252
260
|
decodeJsonStringOption,
|
|
253
261
|
encodeJsonStringSync,
|
|
254
262
|
encodePrettyJsonString
|
|
255
|
-
} from "./chunk-
|
|
263
|
+
} from "./chunk-07p2dcq3.js";
|
|
264
|
+
import {
|
|
265
|
+
isDateTime,
|
|
266
|
+
Numeric,
|
|
267
|
+
isWholeNumber,
|
|
268
|
+
guard,
|
|
269
|
+
Id,
|
|
270
|
+
Timestamp,
|
|
271
|
+
ActorType,
|
|
272
|
+
SecretName,
|
|
273
|
+
SecretScope,
|
|
274
|
+
SecretHosts,
|
|
275
|
+
isSecretReference
|
|
276
|
+
} from "./chunk-qrxkpwzy.js";
|
|
277
|
+
import {
|
|
278
|
+
toJsonValue,
|
|
279
|
+
isOneOf,
|
|
280
|
+
isBigInt,
|
|
281
|
+
isBoolean,
|
|
282
|
+
isFunction,
|
|
283
|
+
isNumber,
|
|
284
|
+
isObject,
|
|
285
|
+
isJsonObject,
|
|
286
|
+
isString,
|
|
287
|
+
isSymbol,
|
|
288
|
+
isUndefined,
|
|
289
|
+
kindOf
|
|
290
|
+
} from "./chunk-d1sqb8rt.js";
|
|
256
291
|
import {
|
|
257
292
|
map,
|
|
258
293
|
makeEquivalence,
|
|
259
294
|
bytes,
|
|
295
|
+
join,
|
|
296
|
+
interrupt,
|
|
297
|
+
getCurrent,
|
|
298
|
+
runIn,
|
|
260
299
|
BadArgument,
|
|
261
300
|
systemError,
|
|
262
301
|
badArgument,
|
|
263
|
-
|
|
264
|
-
make7,
|
|
302
|
+
makeUnsafe,
|
|
265
303
|
make8,
|
|
304
|
+
make9,
|
|
266
305
|
sliding,
|
|
267
306
|
unbounded2,
|
|
268
307
|
offer,
|
|
@@ -272,14 +311,12 @@ import {
|
|
|
272
311
|
endUnsafe,
|
|
273
312
|
take,
|
|
274
313
|
poll,
|
|
275
|
-
|
|
314
|
+
makeUnsafe2,
|
|
276
315
|
fromTransform,
|
|
277
316
|
mapDone,
|
|
278
317
|
isSink,
|
|
279
318
|
fromChannel,
|
|
280
319
|
drain,
|
|
281
|
-
make9,
|
|
282
|
-
get3,
|
|
283
320
|
isStream,
|
|
284
321
|
fromChannel2,
|
|
285
322
|
callback,
|
|
@@ -319,279 +356,25 @@ import {
|
|
|
319
356
|
String2,
|
|
320
357
|
optionalEnv,
|
|
321
358
|
harnessesUnsupportedInSrt2
|
|
322
|
-
} from "./chunk-
|
|
323
|
-
import {
|
|
324
|
-
isDateTime,
|
|
325
|
-
Numeric,
|
|
326
|
-
isWholeNumber,
|
|
327
|
-
guard,
|
|
328
|
-
Id,
|
|
329
|
-
Timestamp,
|
|
330
|
-
ActorType,
|
|
331
|
-
SecretName,
|
|
332
|
-
SecretScope,
|
|
333
|
-
SecretHosts,
|
|
334
|
-
isSecretReference
|
|
335
|
-
} from "./chunk-mbqeakm1.js";
|
|
336
|
-
import {
|
|
337
|
-
toJsonValue,
|
|
338
|
-
isOneOf,
|
|
339
|
-
isBigInt,
|
|
340
|
-
isBoolean,
|
|
341
|
-
isFunction,
|
|
342
|
-
isNumber,
|
|
343
|
-
isObject,
|
|
344
|
-
isJsonObject,
|
|
345
|
-
isString,
|
|
346
|
-
isSymbol,
|
|
347
|
-
isUndefined,
|
|
348
|
-
kindOf
|
|
349
|
-
} from "./chunk-k4fvnphp.js";
|
|
359
|
+
} from "./chunk-s5p94z8x.js";
|
|
350
360
|
import {
|
|
361
|
+
isRedacted,
|
|
362
|
+
make,
|
|
363
|
+
value,
|
|
351
364
|
ExitCode,
|
|
352
365
|
ProcessId,
|
|
353
366
|
makeHandle,
|
|
354
|
-
|
|
367
|
+
make2,
|
|
355
368
|
ChildProcessSpawner,
|
|
356
369
|
display,
|
|
357
|
-
|
|
370
|
+
make3,
|
|
358
371
|
parseFdName,
|
|
359
372
|
fdName
|
|
360
|
-
} from "./chunk-
|
|
373
|
+
} from "./chunk-p83y21hp.js";
|
|
361
374
|
|
|
362
375
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
|
|
363
376
|
var makeEquivalence3 = Tuple;
|
|
364
377
|
|
|
365
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Clock.js
|
|
366
|
-
var Clock = ClockRef;
|
|
367
|
-
var currentTimeMillis = currentTimeMillis2;
|
|
368
|
-
|
|
369
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/dateTime.js
|
|
370
|
-
var TypeId = "~effect/DateTime";
|
|
371
|
-
var TimeZoneTypeId = "~effect/DateTime/TimeZone";
|
|
372
|
-
var Proto = {
|
|
373
|
-
[TypeId]: TypeId,
|
|
374
|
-
pipe() {
|
|
375
|
-
return pipeArguments(this, arguments);
|
|
376
|
-
},
|
|
377
|
-
[NodeInspectSymbol]() {
|
|
378
|
-
return this.toString();
|
|
379
|
-
},
|
|
380
|
-
toJSON() {
|
|
381
|
-
return toDateUtc(this).toJSON();
|
|
382
|
-
}
|
|
383
|
-
};
|
|
384
|
-
var ProtoUtc = {
|
|
385
|
-
...Proto,
|
|
386
|
-
_tag: "Utc",
|
|
387
|
-
[symbol]() {
|
|
388
|
-
return number(this.epochMilliseconds);
|
|
389
|
-
},
|
|
390
|
-
[symbol2](that) {
|
|
391
|
-
return isDateTime2(that) && that._tag === "Utc" && this.epochMilliseconds === that.epochMilliseconds;
|
|
392
|
-
},
|
|
393
|
-
toString() {
|
|
394
|
-
return `DateTime.Utc(${toDateUtc(this).toJSON()})`;
|
|
395
|
-
}
|
|
396
|
-
};
|
|
397
|
-
var ProtoZoned = {
|
|
398
|
-
...Proto,
|
|
399
|
-
_tag: "Zoned",
|
|
400
|
-
[symbol]() {
|
|
401
|
-
return combine(number(this.epochMilliseconds))(hash(this.zone));
|
|
402
|
-
},
|
|
403
|
-
[symbol2](that) {
|
|
404
|
-
return isDateTime2(that) && that._tag === "Zoned" && this.epochMilliseconds === that.epochMilliseconds && equals(this.zone, that.zone);
|
|
405
|
-
},
|
|
406
|
-
toString() {
|
|
407
|
-
return `DateTime.Zoned(${formatIsoZoned(this)})`;
|
|
408
|
-
}
|
|
409
|
-
};
|
|
410
|
-
var ProtoTimeZone = {
|
|
411
|
-
[TimeZoneTypeId]: TimeZoneTypeId,
|
|
412
|
-
[NodeInspectSymbol]() {
|
|
413
|
-
return this.toString();
|
|
414
|
-
}
|
|
415
|
-
};
|
|
416
|
-
var ProtoTimeZoneNamed = {
|
|
417
|
-
...ProtoTimeZone,
|
|
418
|
-
_tag: "Named",
|
|
419
|
-
[symbol]() {
|
|
420
|
-
return string(`Named:${this.id}`);
|
|
421
|
-
},
|
|
422
|
-
[symbol2](that) {
|
|
423
|
-
return isTimeZone(that) && that._tag === "Named" && this.id === that.id;
|
|
424
|
-
},
|
|
425
|
-
toString() {
|
|
426
|
-
return `TimeZone.Named(${this.id})`;
|
|
427
|
-
},
|
|
428
|
-
toJSON() {
|
|
429
|
-
return {
|
|
430
|
-
_id: "TimeZone",
|
|
431
|
-
_tag: "Named",
|
|
432
|
-
id: this.id
|
|
433
|
-
};
|
|
434
|
-
}
|
|
435
|
-
};
|
|
436
|
-
var ProtoTimeZoneOffset = {
|
|
437
|
-
...ProtoTimeZone,
|
|
438
|
-
_tag: "Offset",
|
|
439
|
-
[symbol]() {
|
|
440
|
-
return string(`Offset:${this.offset}`);
|
|
441
|
-
},
|
|
442
|
-
[symbol2](that) {
|
|
443
|
-
return isTimeZone(that) && that._tag === "Offset" && this.offset === that.offset;
|
|
444
|
-
},
|
|
445
|
-
toString() {
|
|
446
|
-
return `TimeZone.Offset(${offsetToString(this.offset)})`;
|
|
447
|
-
},
|
|
448
|
-
toJSON() {
|
|
449
|
-
return {
|
|
450
|
-
_id: "TimeZone",
|
|
451
|
-
_tag: "Offset",
|
|
452
|
-
offset: this.offset
|
|
453
|
-
};
|
|
454
|
-
}
|
|
455
|
-
};
|
|
456
|
-
var cacheSlot = {
|
|
457
|
-
value: undefined,
|
|
458
|
-
enumerable: false,
|
|
459
|
-
writable: true
|
|
460
|
-
};
|
|
461
|
-
var sealedCaches = /* @__PURE__ */ new WeakMap;
|
|
462
|
-
var cacheAccessor = (key, slots) => ({
|
|
463
|
-
get() {
|
|
464
|
-
return Object.isExtensible(this) ? undefined : sealedCaches.get(this)?.[key];
|
|
465
|
-
},
|
|
466
|
-
set(value) {
|
|
467
|
-
if (Object.isExtensible(this)) {
|
|
468
|
-
for (const slot of slots) {
|
|
469
|
-
Object.defineProperty(this, slot, cacheSlot);
|
|
470
|
-
}
|
|
471
|
-
this[key] = value;
|
|
472
|
-
} else {
|
|
473
|
-
let caches = sealedCaches.get(this);
|
|
474
|
-
if (caches === undefined) {
|
|
475
|
-
caches = {};
|
|
476
|
-
sealedCaches.set(this, caches);
|
|
477
|
-
}
|
|
478
|
-
caches[key] = value;
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
});
|
|
482
|
-
var zonedSlots = ["partsUtc", "adjustedEpochMilliseconds", "partsAdjusted"];
|
|
483
|
-
Object.defineProperty(ProtoUtc, "partsUtc", cacheAccessor("partsUtc", ["partsUtc"]));
|
|
484
|
-
Object.defineProperties(ProtoZoned, {
|
|
485
|
-
partsUtc: cacheAccessor("partsUtc", zonedSlots),
|
|
486
|
-
adjustedEpochMilliseconds: cacheAccessor("adjustedEpochMilliseconds", zonedSlots),
|
|
487
|
-
partsAdjusted: cacheAccessor("partsAdjusted", zonedSlots)
|
|
488
|
-
});
|
|
489
|
-
var isDateTime2 = (u) => hasProperty(u, TypeId);
|
|
490
|
-
var isTimeZone = (u) => hasProperty(u, TimeZoneTypeId);
|
|
491
|
-
var makeUtc = (epochMillis) => {
|
|
492
|
-
const self = Object.create(ProtoUtc);
|
|
493
|
-
self.epochMilliseconds = epochMillis;
|
|
494
|
-
return self;
|
|
495
|
-
};
|
|
496
|
-
var fromDateUnsafe = (date) => {
|
|
497
|
-
const epochMillis = date.getTime();
|
|
498
|
-
if (Number.isNaN(epochMillis)) {
|
|
499
|
-
throw new IllegalArgumentError("Invalid date");
|
|
500
|
-
}
|
|
501
|
-
return makeUtc(epochMillis);
|
|
502
|
-
};
|
|
503
|
-
var makeUnsafe6 = (input) => {
|
|
504
|
-
if (isDateTime2(input)) {
|
|
505
|
-
return input;
|
|
506
|
-
} else if (input instanceof Date) {
|
|
507
|
-
return fromDateUnsafe(input);
|
|
508
|
-
} else if (typeof input === "object") {
|
|
509
|
-
if ("epochMilliseconds" in input) {
|
|
510
|
-
return fromDateUnsafe(new Date(input.epochMilliseconds));
|
|
511
|
-
}
|
|
512
|
-
const date = new Date(0);
|
|
513
|
-
setPartsDate(date, input);
|
|
514
|
-
return fromDateUnsafe(date);
|
|
515
|
-
} else if (typeof input === "string" && !hasZone(input)) {
|
|
516
|
-
return fromDateUnsafe(new Date(input + "Z"));
|
|
517
|
-
}
|
|
518
|
-
return fromDateUnsafe(new Date(input));
|
|
519
|
-
};
|
|
520
|
-
var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
|
|
521
|
-
var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
|
|
522
|
-
var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
|
|
523
|
-
var make3 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
|
|
524
|
-
var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
|
|
525
|
-
var nowUnsafe = () => makeUtc(Date.now());
|
|
526
|
-
var toDateUtc = (self) => new Date(self.epochMilliseconds);
|
|
527
|
-
var toDate2 = (self) => {
|
|
528
|
-
if (self._tag === "Utc") {
|
|
529
|
-
return new Date(self.epochMilliseconds);
|
|
530
|
-
} else if (self.zone._tag === "Offset") {
|
|
531
|
-
return new Date(self.epochMilliseconds + self.zone.offset);
|
|
532
|
-
} else if (self.adjustedEpochMilliseconds !== undefined) {
|
|
533
|
-
return new Date(self.adjustedEpochMilliseconds);
|
|
534
|
-
}
|
|
535
|
-
let bc = false;
|
|
536
|
-
const parts = self.zone.format.formatToParts(self.epochMilliseconds).filter((_) => {
|
|
537
|
-
if (_.type === "era") {
|
|
538
|
-
bc = _.value === "BC";
|
|
539
|
-
return false;
|
|
540
|
-
}
|
|
541
|
-
return _.type !== "literal";
|
|
542
|
-
});
|
|
543
|
-
const year = Number(parts[2].value);
|
|
544
|
-
const date = new Date(0);
|
|
545
|
-
date.setUTCFullYear(bc ? 1 - year : year, Number(parts[0].value) - 1, Number(parts[1].value));
|
|
546
|
-
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);
|
|
547
|
-
self.adjustedEpochMilliseconds = date.getTime();
|
|
548
|
-
return date;
|
|
549
|
-
};
|
|
550
|
-
var zonedOffset = (self) => {
|
|
551
|
-
const date = toDate2(self);
|
|
552
|
-
return date.getTime() - toEpochMillis(self);
|
|
553
|
-
};
|
|
554
|
-
var offsetToString = (offset) => {
|
|
555
|
-
const abs = Math.abs(offset);
|
|
556
|
-
let hours = Math.floor(abs / (60 * 60 * 1000));
|
|
557
|
-
let minutes = Math.round(abs % (60 * 60 * 1000) / (60 * 1000));
|
|
558
|
-
if (minutes === 60) {
|
|
559
|
-
hours += 1;
|
|
560
|
-
minutes = 0;
|
|
561
|
-
}
|
|
562
|
-
return `${offset < 0 ? "-" : "+"}${String(hours).padStart(2, "0")}:${String(minutes).padStart(2, "0")}`;
|
|
563
|
-
};
|
|
564
|
-
var zonedOffsetIso = (self) => offsetToString(zonedOffset(self));
|
|
565
|
-
var toEpochMillis = (self) => self.epochMilliseconds;
|
|
566
|
-
var setPartsDate = (date, parts) => {
|
|
567
|
-
if (parts.year !== undefined || parts.month !== undefined || parts.day !== undefined) {
|
|
568
|
-
date.setUTCFullYear(parts.year ?? date.getUTCFullYear(), parts.month !== undefined ? parts.month - 1 : date.getUTCMonth(), parts.day ?? date.getUTCDate());
|
|
569
|
-
}
|
|
570
|
-
if (parts.weekDay !== undefined) {
|
|
571
|
-
const diff = parts.weekDay - date.getUTCDay();
|
|
572
|
-
date.setUTCDate(date.getUTCDate() + diff);
|
|
573
|
-
}
|
|
574
|
-
if (parts.hour !== undefined) {
|
|
575
|
-
date.setUTCHours(parts.hour);
|
|
576
|
-
}
|
|
577
|
-
if (parts.minute !== undefined) {
|
|
578
|
-
date.setUTCMinutes(parts.minute);
|
|
579
|
-
}
|
|
580
|
-
if (parts.second !== undefined) {
|
|
581
|
-
date.setUTCSeconds(parts.second);
|
|
582
|
-
}
|
|
583
|
-
if (parts.millisecond !== undefined) {
|
|
584
|
-
date.setUTCMilliseconds(parts.millisecond);
|
|
585
|
-
}
|
|
586
|
-
};
|
|
587
|
-
var constDayMillis = 24 * 60 * 60 * 1000;
|
|
588
|
-
var formatIso2 = (self) => toDateUtc(self).toISOString();
|
|
589
|
-
var formatIsoOffset = (self) => {
|
|
590
|
-
const date = toDate2(self);
|
|
591
|
-
return self._tag === "Utc" ? date.toISOString() : `${date.toISOString().slice(0, -1)}${zonedOffsetIso(self)}`;
|
|
592
|
-
};
|
|
593
|
-
var formatIsoZoned = (self) => self.zone._tag === "Offset" ? formatIsoOffset(self) : `${formatIsoOffset(self)}[${self.zone.id}]`;
|
|
594
|
-
|
|
595
378
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Metric.js
|
|
596
379
|
var CurrentMetricAttributesKey = "effect/Metric/CurrentMetricAttributes";
|
|
597
380
|
var CurrentMetricAttributes = /* @__PURE__ */ Reference(CurrentMetricAttributesKey, {
|
|
@@ -601,10 +384,10 @@ var MetricRegistryKey = "effect/Metric/MetricRegistry";
|
|
|
601
384
|
var MetricRegistry = /* @__PURE__ */ Reference(MetricRegistryKey, {
|
|
602
385
|
defaultValue: () => new Map
|
|
603
386
|
});
|
|
604
|
-
var
|
|
387
|
+
var TypeId = "~effect/Metric";
|
|
605
388
|
|
|
606
389
|
class Metric$ {
|
|
607
|
-
[
|
|
390
|
+
[TypeId] = TypeId;
|
|
608
391
|
#extraAttributes;
|
|
609
392
|
#mergedAttributes;
|
|
610
393
|
#key = "";
|
|
@@ -627,7 +410,7 @@ class Metric$ {
|
|
|
627
410
|
}
|
|
628
411
|
hook(context) {
|
|
629
412
|
const key = this.key(context);
|
|
630
|
-
const registry =
|
|
413
|
+
const registry = get3(context, MetricRegistry);
|
|
631
414
|
let metadata = registry.get(key);
|
|
632
415
|
if (isUndefined2(metadata)) {
|
|
633
416
|
metadata = this.metadata(this.createHooks());
|
|
@@ -636,11 +419,11 @@ class Metric$ {
|
|
|
636
419
|
return metadata.hooks;
|
|
637
420
|
}
|
|
638
421
|
removeUnsafe(context) {
|
|
639
|
-
|
|
422
|
+
get3(context, MetricRegistry).delete(this.key(context));
|
|
640
423
|
}
|
|
641
424
|
registerUnsafe(context, hooks) {
|
|
642
425
|
const key = this.key(context);
|
|
643
|
-
const registry =
|
|
426
|
+
const registry = get3(context, MetricRegistry);
|
|
644
427
|
const metadata = this.metadata({
|
|
645
428
|
get: hooks.get,
|
|
646
429
|
update: constVoid,
|
|
@@ -656,7 +439,7 @@ class Metric$ {
|
|
|
656
439
|
};
|
|
657
440
|
}
|
|
658
441
|
key(context) {
|
|
659
|
-
const extraAttributes =
|
|
442
|
+
const extraAttributes = get3(context, CurrentMetricAttributes);
|
|
660
443
|
if (extraAttributes !== this.#extraAttributes) {
|
|
661
444
|
this.#extraAttributes = extraAttributes;
|
|
662
445
|
const merged = mergeAttributes(this.attributes, extraAttributes);
|
|
@@ -908,14 +691,147 @@ var toNumber = (b) => {
|
|
|
908
691
|
return some(Number(b));
|
|
909
692
|
};
|
|
910
693
|
|
|
911
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/
|
|
912
|
-
var
|
|
913
|
-
var
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
var
|
|
917
|
-
|
|
918
|
-
|
|
694
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
|
|
695
|
+
var TypeId2 = "~effect/RcRef";
|
|
696
|
+
var stateEmpty = {
|
|
697
|
+
_tag: "Empty"
|
|
698
|
+
};
|
|
699
|
+
var stateClosed = {
|
|
700
|
+
_tag: "Closed"
|
|
701
|
+
};
|
|
702
|
+
var variance = {
|
|
703
|
+
_A: identity,
|
|
704
|
+
_E: identity
|
|
705
|
+
};
|
|
706
|
+
|
|
707
|
+
class RcRefImpl {
|
|
708
|
+
[TypeId2] = variance;
|
|
709
|
+
pipe() {
|
|
710
|
+
return pipeArguments(this, arguments);
|
|
711
|
+
}
|
|
712
|
+
state = stateEmpty;
|
|
713
|
+
acquire;
|
|
714
|
+
context;
|
|
715
|
+
scope;
|
|
716
|
+
idleTimeToLive;
|
|
717
|
+
constructor(acquire, context, scope, idleTimeToLive) {
|
|
718
|
+
this.acquire = acquire;
|
|
719
|
+
this.context = context;
|
|
720
|
+
this.scope = scope;
|
|
721
|
+
this.idleTimeToLive = idleTimeToLive;
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
var make4 = (options) => withFiber2((fiber) => {
|
|
725
|
+
const context = fiber.context;
|
|
726
|
+
const scope = get3(context, Scope);
|
|
727
|
+
const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
|
|
728
|
+
return as(addFinalizerExit(scope, () => {
|
|
729
|
+
const state = ref.state;
|
|
730
|
+
ref.state = stateClosed;
|
|
731
|
+
if (state._tag === "Acquired")
|
|
732
|
+
return close(state.scope, void_2);
|
|
733
|
+
if (state._tag === "Acquiring")
|
|
734
|
+
return interrupt(state.fiber);
|
|
735
|
+
return void_3;
|
|
736
|
+
}), ref);
|
|
737
|
+
});
|
|
738
|
+
var getState = (self, restore) => {
|
|
739
|
+
switch (self.state._tag) {
|
|
740
|
+
case "Closed": {
|
|
741
|
+
return interrupt3;
|
|
742
|
+
}
|
|
743
|
+
case "Acquired": {
|
|
744
|
+
const state = self.state;
|
|
745
|
+
state.refCount++;
|
|
746
|
+
return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
|
|
747
|
+
}
|
|
748
|
+
case "Acquiring": {
|
|
749
|
+
const state = self.state;
|
|
750
|
+
state.awaiters++;
|
|
751
|
+
return awaitAcquiring(self, state, restore);
|
|
752
|
+
}
|
|
753
|
+
case "Empty": {
|
|
754
|
+
const acquiring = {
|
|
755
|
+
_tag: "Acquiring",
|
|
756
|
+
fiber: undefined,
|
|
757
|
+
awaiters: 1,
|
|
758
|
+
acquired: undefined
|
|
759
|
+
};
|
|
760
|
+
self.state = acquiring;
|
|
761
|
+
const scope = makeUnsafe5();
|
|
762
|
+
const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
|
|
763
|
+
if (self.state !== acquiring) {
|
|
764
|
+
return interrupt3;
|
|
765
|
+
}
|
|
766
|
+
const state = {
|
|
767
|
+
_tag: "Acquired",
|
|
768
|
+
value,
|
|
769
|
+
scope,
|
|
770
|
+
fiber: undefined,
|
|
771
|
+
refCount: acquiring.awaiters,
|
|
772
|
+
invalidated: false
|
|
773
|
+
};
|
|
774
|
+
self.state = state;
|
|
775
|
+
acquiring.acquired = state;
|
|
776
|
+
return succeed6(state);
|
|
777
|
+
}), onExit((exit) => {
|
|
778
|
+
if (isSuccess2(exit))
|
|
779
|
+
return void_3;
|
|
780
|
+
if (self.state === acquiring)
|
|
781
|
+
self.state = stateEmpty;
|
|
782
|
+
return close(scope, exit);
|
|
783
|
+
}));
|
|
784
|
+
acquiring.fiber = runForkWith(getCurrent().context)(acquire);
|
|
785
|
+
return awaitAcquiring(self, acquiring, restore);
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
};
|
|
789
|
+
var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
|
|
790
|
+
const acquired = acquiring.acquired;
|
|
791
|
+
if (acquired !== undefined) {
|
|
792
|
+
return isFailure2(exit) ? release(self, acquired) : void_3;
|
|
793
|
+
}
|
|
794
|
+
if (--acquiring.awaiters > 0 || self.state !== acquiring)
|
|
795
|
+
return void_3;
|
|
796
|
+
self.state = stateEmpty;
|
|
797
|
+
return interrupt(acquiring.fiber);
|
|
798
|
+
});
|
|
799
|
+
var get4 = (self_) => {
|
|
800
|
+
const self = self_;
|
|
801
|
+
return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
|
|
802
|
+
};
|
|
803
|
+
var release = (self, state) => {
|
|
804
|
+
state.refCount--;
|
|
805
|
+
if (state.refCount > 0) {
|
|
806
|
+
return void_3;
|
|
807
|
+
}
|
|
808
|
+
const idleTimeToLive = self.idleTimeToLive;
|
|
809
|
+
if (idleTimeToLive === undefined || state.invalidated) {
|
|
810
|
+
if (self.state === state) {
|
|
811
|
+
self.state = stateEmpty;
|
|
812
|
+
}
|
|
813
|
+
return close(state.scope, void_2);
|
|
814
|
+
} else if (!isFinite(idleTimeToLive)) {
|
|
815
|
+
return void_3;
|
|
816
|
+
}
|
|
817
|
+
state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
|
|
818
|
+
if (self.state === state && state.refCount === 0) {
|
|
819
|
+
self.state = stateEmpty;
|
|
820
|
+
return ignoreCause(close(state.scope, void_2), {
|
|
821
|
+
log: "Unhandled",
|
|
822
|
+
message: "Unhandled error in RcRef finalizer"
|
|
823
|
+
});
|
|
824
|
+
}
|
|
825
|
+
return void_3;
|
|
826
|
+
})).pipe(ensuring2(sync2(() => {
|
|
827
|
+
state.fiber = undefined;
|
|
828
|
+
})), runForkWith(self.context), runIn(self.scope));
|
|
829
|
+
return void_3;
|
|
830
|
+
};
|
|
831
|
+
|
|
832
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
|
|
833
|
+
var make18 = make4;
|
|
834
|
+
var get5 = get4;
|
|
919
835
|
|
|
920
836
|
// node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeChildProcessSpawner.js
|
|
921
837
|
import * as NodeChildProcess from "child_process";
|
|
@@ -1031,8 +947,8 @@ var releaseWritable = (writable) => callback3((resume) => {
|
|
|
1031
947
|
});
|
|
1032
948
|
var pullIntoWritable = (options) => withFiber2((fiber) => {
|
|
1033
949
|
const dispatcher = fiber.currentDispatcher;
|
|
1034
|
-
const completion =
|
|
1035
|
-
const failure =
|
|
950
|
+
const completion = makeUnsafe4();
|
|
951
|
+
const failure = makeUnsafe4();
|
|
1036
952
|
const onError = (error) => doneUnsafe(failure, failSync(() => options.onError(error)));
|
|
1037
953
|
let errorEmitted = false;
|
|
1038
954
|
const onStreamError = (error) => {
|
|
@@ -1125,8 +1041,8 @@ var readableToPullUnsafe = (options) => {
|
|
|
1125
1041
|
const readable = options.readable;
|
|
1126
1042
|
const chunkSize = options.chunkSize ?? 4096;
|
|
1127
1043
|
const closeOnDone = options.closeOnDone ?? true;
|
|
1128
|
-
const exit = options.exit ??
|
|
1129
|
-
const latch = options.latch ??
|
|
1044
|
+
const exit = options.exit ?? make8(undefined);
|
|
1045
|
+
const latch = options.latch ?? makeUnsafe(false);
|
|
1130
1046
|
function onReadable() {
|
|
1131
1047
|
latch.openUnsafe();
|
|
1132
1048
|
}
|
|
@@ -1356,7 +1272,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1356
1272
|
});
|
|
1357
1273
|
}
|
|
1358
1274
|
if (stream) {
|
|
1359
|
-
return
|
|
1275
|
+
return map7(runInputStream(stream, sink, inputFailure), () => {
|
|
1360
1276
|
inputSinks.set(fd, sink);
|
|
1361
1277
|
});
|
|
1362
1278
|
}
|
|
@@ -1462,7 +1378,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1462
1378
|
};
|
|
1463
1379
|
};
|
|
1464
1380
|
const spawn2 = (command, spawnOptions) => callback3((resume) => {
|
|
1465
|
-
const deferred =
|
|
1381
|
+
const deferred = makeUnsafe4();
|
|
1466
1382
|
const handle = NodeChildProcess.spawn(command.command, command.args.map(unwrap2), spawnOptions);
|
|
1467
1383
|
handle.on("error", (error) => {
|
|
1468
1384
|
if (command.args.some(isRedacted)) {
|
|
@@ -1638,7 +1554,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1638
1554
|
}
|
|
1639
1555
|
return reref;
|
|
1640
1556
|
});
|
|
1641
|
-
const inputFailure =
|
|
1557
|
+
const inputFailure = makeUnsafe4();
|
|
1642
1558
|
const stdin = yield* setupChildStdin(cmd, childProcess, stdinConfig, inputFailure);
|
|
1643
1559
|
const {
|
|
1644
1560
|
all,
|
|
@@ -1649,7 +1565,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1649
1565
|
getInputFd,
|
|
1650
1566
|
getOutputFd
|
|
1651
1567
|
} = yield* setupAdditionalFds(cmd, childProcess, resolvedAdditionalFds, inputFailure);
|
|
1652
|
-
const isRunning =
|
|
1568
|
+
const isRunning = map7(isDone(exitSignal), (done) => !done);
|
|
1653
1569
|
const exitCode = flatMap3(raceFirst(_await(exitSignal), _await(inputFailure)), ([code, signal]) => {
|
|
1654
1570
|
if (isDoneUnsafe(inputFailure)) {
|
|
1655
1571
|
return _await(inputFailure);
|
|
@@ -1689,7 +1605,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1689
1605
|
const sourceStream = unwrap(succeed6(getSourceStream(handles[handles.length - 1], options.from)));
|
|
1690
1606
|
const toOption = options.to ?? "stdin";
|
|
1691
1607
|
if (toOption === "stdin") {
|
|
1692
|
-
handles.push(yield* spawnCommand(
|
|
1608
|
+
handles.push(yield* spawnCommand(make3(command.command, command.args, {
|
|
1693
1609
|
...command.options,
|
|
1694
1610
|
stdin: {
|
|
1695
1611
|
...stdinConfig,
|
|
@@ -1709,7 +1625,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1709
1625
|
type: "input",
|
|
1710
1626
|
stream: sourceStream
|
|
1711
1627
|
};
|
|
1712
|
-
handles.push(yield* spawnCommand(
|
|
1628
|
+
handles.push(yield* spawnCommand(make3(command.command, command.args, {
|
|
1713
1629
|
...command.options,
|
|
1714
1630
|
additionalFds: {
|
|
1715
1631
|
...existingFds,
|
|
@@ -1717,7 +1633,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1717
1633
|
}
|
|
1718
1634
|
})));
|
|
1719
1635
|
} else {
|
|
1720
|
-
handles.push(yield* spawnCommand(
|
|
1636
|
+
handles.push(yield* spawnCommand(make3(command.command, command.args, {
|
|
1721
1637
|
...command.options,
|
|
1722
1638
|
stdin: {
|
|
1723
1639
|
...stdinConfig,
|
|
@@ -1756,7 +1672,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1756
1672
|
}
|
|
1757
1673
|
}
|
|
1758
1674
|
});
|
|
1759
|
-
return
|
|
1675
|
+
return make2(spawnCommand);
|
|
1760
1676
|
});
|
|
1761
1677
|
var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
|
|
1762
1678
|
var flattenCommand = (command) => {
|
|
@@ -1930,7 +1846,7 @@ var noFollowFlags = (method, flag) => suspend3(() => {
|
|
|
1930
1846
|
var openFactory = (method) => {
|
|
1931
1847
|
const nodeOpen = effectify(NFS.open, handleErrnoException("FileSystem", method), handleBadArgument(method));
|
|
1932
1848
|
const nodeClose = effectify(NFS.close, handleErrnoException("FileSystem", method), handleBadArgument(method));
|
|
1933
|
-
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))),
|
|
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))), map7((fd) => makeFile(fd, options?.flag?.startsWith("a") ?? false)));
|
|
1934
1850
|
};
|
|
1935
1851
|
var open2 = /* @__PURE__ */ openFactory("open");
|
|
1936
1852
|
var negativePosition = (method) => badArgument({
|
|
@@ -1991,7 +1907,7 @@ var makeFile = /* @__PURE__ */ (() => {
|
|
|
1991
1907
|
});
|
|
1992
1908
|
}
|
|
1993
1909
|
const position = this.position;
|
|
1994
|
-
return
|
|
1910
|
+
return map7(nodeRead(this.fd, {
|
|
1995
1911
|
buffer,
|
|
1996
1912
|
position
|
|
1997
1913
|
}), (bytesRead) => {
|
|
@@ -2012,7 +1928,7 @@ var makeFile = /* @__PURE__ */ (() => {
|
|
|
2012
1928
|
}
|
|
2013
1929
|
const buffer = Buffer.allocUnsafeSlow(size);
|
|
2014
1930
|
const position = explicit ?? this.position;
|
|
2015
|
-
return
|
|
1931
|
+
return map7(nodeReadAlloc(this.fd, {
|
|
2016
1932
|
buffer,
|
|
2017
1933
|
position
|
|
2018
1934
|
}), (bytesRead) => {
|
|
@@ -2035,7 +1951,7 @@ var makeFile = /* @__PURE__ */ (() => {
|
|
|
2035
1951
|
});
|
|
2036
1952
|
}
|
|
2037
1953
|
truncate(length) {
|
|
2038
|
-
return
|
|
1954
|
+
return map7(nodeTruncate(this.fd, length || undefined), () => {
|
|
2039
1955
|
if (!this.append) {
|
|
2040
1956
|
const len = BigInt(length ?? 0);
|
|
2041
1957
|
if (this.position > len) {
|
|
@@ -2047,7 +1963,7 @@ var makeFile = /* @__PURE__ */ (() => {
|
|
|
2047
1963
|
write(buffer) {
|
|
2048
1964
|
return suspend3(() => {
|
|
2049
1965
|
const position = this.position;
|
|
2050
|
-
return flatMap3(this.append ? succeed6(undefined) : positionToNumber(position, "write"), (nodePosition) =>
|
|
1966
|
+
return flatMap3(this.append ? succeed6(undefined) : positionToNumber(position, "write"), (nodePosition) => map7(nodeWrite(this.fd, buffer, undefined, undefined, nodePosition), (bytesWritten) => {
|
|
2051
1967
|
if (!this.append) {
|
|
2052
1968
|
this.position = position + BigInt(bytesWritten);
|
|
2053
1969
|
}
|
|
@@ -2109,7 +2025,7 @@ var readDirectoryEntries = (path) => tryPromise({
|
|
|
2109
2025
|
withFileTypes: true
|
|
2110
2026
|
}),
|
|
2111
2027
|
catch: (err) => handleErrnoException("FileSystem", "readDirectoryEntries")(err, [path])
|
|
2112
|
-
}).pipe(
|
|
2028
|
+
}).pipe(map7((entries) => entries.map((entry) => ({
|
|
2113
2029
|
name: entry.name,
|
|
2114
2030
|
type: fileType(entry)
|
|
2115
2031
|
}))));
|
|
@@ -2224,7 +2140,7 @@ var watchNode = (path, info, options) => callback((queue) => acquireRelease(sync
|
|
|
2224
2140
|
});
|
|
2225
2141
|
return watcher;
|
|
2226
2142
|
}), (watcher) => sync2(() => watcher.close())).pipe(tap2(() => sync2(() => options?.onReady?.()))));
|
|
2227
|
-
var watch2 = (backend, path, options) => all3([stat2(path), serviceOption(WatchBackend)]).pipe(
|
|
2143
|
+
var watch2 = (backend, path, options) => all3([stat2(path), serviceOption(WatchBackend)]).pipe(map7(([stat, callerBackend]) => orElse(callerBackend, () => backend).pipe(flatMap((_) => _.register(path, stat, options)), getOrElse(() => watchNode(path, stat, options)))), unwrap);
|
|
2228
2144
|
var writeFile2 = (path, data, options) => callback3((resume, signal) => {
|
|
2229
2145
|
try {
|
|
2230
2146
|
NFS.writeFile(path, data, {
|
|
@@ -2242,7 +2158,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
|
|
|
2242
2158
|
resume(fail7(handleBadArgument("writeFile")(err)));
|
|
2243
2159
|
}
|
|
2244
2160
|
});
|
|
2245
|
-
var makeFileSystem = /* @__PURE__ */
|
|
2161
|
+
var makeFileSystem = /* @__PURE__ */ map7(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make11({
|
|
2246
2162
|
access: access2,
|
|
2247
2163
|
chmod: chmod2,
|
|
2248
2164
|
chown: chown2,
|
|
@@ -2569,7 +2485,7 @@ var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCry
|
|
|
2569
2485
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
|
|
2570
2486
|
var TypeId4 = "~effect/http/Cookies";
|
|
2571
2487
|
var CookieTypeId = "~effect/http/Cookies/Cookie";
|
|
2572
|
-
var
|
|
2488
|
+
var Proto = {
|
|
2573
2489
|
[TypeId4]: TypeId4,
|
|
2574
2490
|
...BaseProto,
|
|
2575
2491
|
toJSON() {
|
|
@@ -2583,7 +2499,7 @@ var Proto2 = {
|
|
|
2583
2499
|
}
|
|
2584
2500
|
};
|
|
2585
2501
|
var fromReadonlyRecord = (cookies) => {
|
|
2586
|
-
const self = Object.create(
|
|
2502
|
+
const self = Object.create(Proto);
|
|
2587
2503
|
self.cookies = cookies;
|
|
2588
2504
|
return self;
|
|
2589
2505
|
};
|
|
@@ -2750,13 +2666,13 @@ var tryDecodeURIComponent = (str) => {
|
|
|
2750
2666
|
|
|
2751
2667
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Headers.js
|
|
2752
2668
|
var TypeId5 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
|
|
2753
|
-
var
|
|
2669
|
+
var Proto2 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
|
|
2754
2670
|
[TypeId5]: {
|
|
2755
2671
|
value: TypeId5
|
|
2756
2672
|
},
|
|
2757
2673
|
[symbolRedactable]: {
|
|
2758
2674
|
value(context) {
|
|
2759
|
-
return redact2(this,
|
|
2675
|
+
return redact2(this, get3(context, CurrentRedactedNames));
|
|
2760
2676
|
}
|
|
2761
2677
|
},
|
|
2762
2678
|
toJSON: {
|
|
@@ -2766,7 +2682,7 @@ var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
|
|
|
2766
2682
|
},
|
|
2767
2683
|
[symbol2]: {
|
|
2768
2684
|
value(that) {
|
|
2769
|
-
return
|
|
2685
|
+
return Equivalence(this, that);
|
|
2770
2686
|
}
|
|
2771
2687
|
},
|
|
2772
2688
|
[symbol]: {
|
|
@@ -2781,20 +2697,20 @@ var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
|
|
|
2781
2697
|
value: BaseProto[NodeInspectSymbol]
|
|
2782
2698
|
}
|
|
2783
2699
|
});
|
|
2784
|
-
var make22 = (input) => Object.assign(Object.create(
|
|
2785
|
-
var
|
|
2786
|
-
var empty = /* @__PURE__ */ Object.create(
|
|
2700
|
+
var make22 = (input) => Object.assign(Object.create(Proto2), input);
|
|
2701
|
+
var Equivalence = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
|
|
2702
|
+
var empty = /* @__PURE__ */ Object.create(Proto2);
|
|
2787
2703
|
var fromInput = (input) => {
|
|
2788
2704
|
if (input === undefined) {
|
|
2789
2705
|
return empty;
|
|
2790
2706
|
} else if (Symbol.iterator in input) {
|
|
2791
|
-
const out = Object.create(
|
|
2707
|
+
const out = Object.create(Proto2);
|
|
2792
2708
|
for (const [k, v] of input) {
|
|
2793
2709
|
out[k.toLowerCase()] = v;
|
|
2794
2710
|
}
|
|
2795
2711
|
return out;
|
|
2796
2712
|
}
|
|
2797
|
-
const out = Object.create(
|
|
2713
|
+
const out = Object.create(Proto2);
|
|
2798
2714
|
for (const [k, v] of Object.entries(input)) {
|
|
2799
2715
|
if (Array.isArray(v)) {
|
|
2800
2716
|
out[k.toLowerCase()] = v.join(", ");
|
|
@@ -2804,7 +2720,7 @@ var fromInput = (input) => {
|
|
|
2804
2720
|
}
|
|
2805
2721
|
return out;
|
|
2806
2722
|
};
|
|
2807
|
-
var fromRecordUnsafe = (input) => Object.setPrototypeOf(input,
|
|
2723
|
+
var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto2);
|
|
2808
2724
|
var set = /* @__PURE__ */ dual(3, (self, key, value) => {
|
|
2809
2725
|
const out = make22(self);
|
|
2810
2726
|
out[key.toLowerCase()] = value;
|
|
@@ -2832,12 +2748,12 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
|
2832
2748
|
if (typeof key === "string") {
|
|
2833
2749
|
const k = key.toLowerCase();
|
|
2834
2750
|
if (k in self) {
|
|
2835
|
-
out[k] =
|
|
2751
|
+
out[k] = make(self[k]);
|
|
2836
2752
|
}
|
|
2837
2753
|
} else {
|
|
2838
2754
|
for (const name in self) {
|
|
2839
2755
|
if (name.search(key) !== -1) {
|
|
2840
|
-
out[name] =
|
|
2756
|
+
out[name] = make(self[name]);
|
|
2841
2757
|
}
|
|
2842
2758
|
}
|
|
2843
2759
|
}
|
|
@@ -2879,7 +2795,7 @@ var fromBody = (bytes) => new URLSearchParams(bodyDecoder.decode(bytes).replace(
|
|
|
2879
2795
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/UrlParams.js
|
|
2880
2796
|
var TypeId6 = "~effect/http/UrlParams";
|
|
2881
2797
|
var isUrlParams = (u) => hasProperty(u, TypeId6);
|
|
2882
|
-
var
|
|
2798
|
+
var Proto3 = {
|
|
2883
2799
|
...PipeInspectableProto,
|
|
2884
2800
|
[TypeId6]: TypeId6,
|
|
2885
2801
|
[Symbol.iterator]() {
|
|
@@ -2888,21 +2804,21 @@ var Proto4 = {
|
|
|
2888
2804
|
[symbolRedactable](context) {
|
|
2889
2805
|
return {
|
|
2890
2806
|
_id: "UrlParams",
|
|
2891
|
-
params: Object.fromEntries(redact3(this,
|
|
2807
|
+
params: Object.fromEntries(redact3(this, get3(context, CurrentRedactedNames2)))
|
|
2892
2808
|
};
|
|
2893
2809
|
},
|
|
2894
2810
|
toJSON() {
|
|
2895
2811
|
return redact(this);
|
|
2896
2812
|
},
|
|
2897
2813
|
[symbol2](that) {
|
|
2898
|
-
return
|
|
2814
|
+
return Equivalence2(this, that);
|
|
2899
2815
|
},
|
|
2900
2816
|
[symbol]() {
|
|
2901
2817
|
return array(this.params.flat());
|
|
2902
2818
|
}
|
|
2903
2819
|
};
|
|
2904
2820
|
var make23 = (params) => {
|
|
2905
|
-
const self = Object.create(
|
|
2821
|
+
const self = Object.create(Proto3);
|
|
2906
2822
|
self.params = params;
|
|
2907
2823
|
return self;
|
|
2908
2824
|
};
|
|
@@ -2944,7 +2860,7 @@ var fromInputNested = (input) => {
|
|
|
2944
2860
|
return out;
|
|
2945
2861
|
};
|
|
2946
2862
|
var coerce = (value) => isRedacted(value) ? value : String(value);
|
|
2947
|
-
var
|
|
2863
|
+
var Equivalence2 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
|
|
2948
2864
|
var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
|
|
2949
2865
|
var empty4 = /* @__PURE__ */ make23([]);
|
|
2950
2866
|
var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
@@ -2963,7 +2879,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
|
2963
2879
|
var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
|
|
2964
2880
|
var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
2965
2881
|
const patterns = Array.isArray(key) ? key : [key];
|
|
2966
|
-
return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ?
|
|
2882
|
+
return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make(value) : value]);
|
|
2967
2883
|
});
|
|
2968
2884
|
var isRedactedName2 = isRedactedName;
|
|
2969
2885
|
var redactUrl = (url, redactedNames = currentRedactedNames()) => {
|
|
@@ -3014,7 +2930,7 @@ var decodeQueryKey = (key) => {
|
|
|
3014
2930
|
return key;
|
|
3015
2931
|
}
|
|
3016
2932
|
};
|
|
3017
|
-
var currentRedactedNames = () =>
|
|
2933
|
+
var currentRedactedNames = () => get3(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
|
|
3018
2934
|
var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
|
|
3019
2935
|
defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
|
|
3020
2936
|
});
|
|
@@ -3039,7 +2955,7 @@ import * as readline from "readline";
|
|
|
3039
2955
|
var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
|
|
3040
2956
|
const stdin = process.stdin;
|
|
3041
2957
|
const stdout = process.stdout;
|
|
3042
|
-
const lines = yield*
|
|
2958
|
+
const lines = yield* make9();
|
|
3043
2959
|
let inputEnded = stdin.readableEnded;
|
|
3044
2960
|
let readlineActive = false;
|
|
3045
2961
|
const onStdinEnd = () => {
|
|
@@ -3050,7 +2966,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3050
2966
|
};
|
|
3051
2967
|
stdin.once("end", onStdinEnd);
|
|
3052
2968
|
yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
|
|
3053
|
-
const rlRef = yield*
|
|
2969
|
+
const rlRef = yield* make18({
|
|
3054
2970
|
acquire: acquireRelease(sync2(() => {
|
|
3055
2971
|
const rl = readline.createInterface({
|
|
3056
2972
|
input: stdin,
|
|
@@ -3089,7 +3005,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3089
3005
|
if (stdin.isTTY)
|
|
3090
3006
|
stdin.setRawMode(enabled);
|
|
3091
3007
|
});
|
|
3092
|
-
const rawModeRef = yield*
|
|
3008
|
+
const rawModeRef = yield* make18({
|
|
3093
3009
|
acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
|
|
3094
3010
|
idleTimeToLive: "10 millis"
|
|
3095
3011
|
});
|
|
@@ -3110,7 +3026,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3110
3026
|
return queue;
|
|
3111
3027
|
});
|
|
3112
3028
|
const readInput = gen(function* () {
|
|
3113
|
-
const queue = yield*
|
|
3029
|
+
const queue = yield* make9();
|
|
3114
3030
|
const handleKeypress = (s, k) => {
|
|
3115
3031
|
const userInput = {
|
|
3116
3032
|
input: fromUndefinedOr(s),
|
|
@@ -3140,14 +3056,14 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3140
3056
|
if (inputEnded) {
|
|
3141
3057
|
handleEnd();
|
|
3142
3058
|
} else {
|
|
3143
|
-
yield*
|
|
3144
|
-
yield*
|
|
3059
|
+
yield* get5(rlRef);
|
|
3060
|
+
yield* get5(rawModeRef);
|
|
3145
3061
|
stdin.once("end", handleEnd);
|
|
3146
3062
|
}
|
|
3147
3063
|
return queue;
|
|
3148
3064
|
});
|
|
3149
3065
|
const readLine = suspend3(() => poll(lines).pipe(flatMap3(match({
|
|
3150
|
-
onNone: () => scoped(andThen2(
|
|
3066
|
+
onNone: () => scoped(andThen2(get5(rlRef), take(lines))),
|
|
3151
3067
|
onSome: succeed6
|
|
3152
3068
|
})), mapError2(() => new QuitError({}))));
|
|
3153
3069
|
const display = (prompt) => uninterruptible(callback3((resume) => {
|
|
@@ -3191,17 +3107,17 @@ var log = (...args) => consoleWith((console) => sync(() => {
|
|
|
3191
3107
|
|
|
3192
3108
|
// packages/core/src/time.ts
|
|
3193
3109
|
function toDate(input) {
|
|
3194
|
-
return
|
|
3110
|
+
return toDateUtc(makeUnsafe6(input));
|
|
3195
3111
|
}
|
|
3196
3112
|
function parseDate(input) {
|
|
3197
|
-
return getOrUndefined(map4(
|
|
3113
|
+
return getOrUndefined(map4(make16(input), toDateUtc));
|
|
3198
3114
|
}
|
|
3199
3115
|
function toIso(input) {
|
|
3200
|
-
return formatIso(
|
|
3116
|
+
return formatIso(makeUnsafe6(input));
|
|
3201
3117
|
}
|
|
3202
|
-
var currentDate =
|
|
3118
|
+
var currentDate = map7(now, toDateUtc);
|
|
3203
3119
|
function wallClockMillis() {
|
|
3204
|
-
return
|
|
3120
|
+
return toEpochMillis(nowUnsafe());
|
|
3205
3121
|
}
|
|
3206
3122
|
|
|
3207
3123
|
// packages/core/src/waiting-on.ts
|
|
@@ -6667,7 +6583,7 @@ var WorkUnitLease = Struct({
|
|
|
6667
6583
|
leaseExpiresAt: Timestamp,
|
|
6668
6584
|
lastHeartbeatAt: Timestamp
|
|
6669
6585
|
});
|
|
6670
|
-
var WorkUnitLeaseProjection = Struct(
|
|
6586
|
+
var WorkUnitLeaseProjection = Struct(map8(WorkUnitLease.fields, optionalKey));
|
|
6671
6587
|
var WorkUnitRepoBinding = Struct({
|
|
6672
6588
|
id: Id,
|
|
6673
6589
|
provider: RepoBindingProvider,
|
|
@@ -9400,7 +9316,7 @@ var TranscriptSearchResult = Struct({
|
|
|
9400
9316
|
});
|
|
9401
9317
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
|
|
9402
9318
|
var TypeId8 = "~effect/http/HttpBody";
|
|
9403
|
-
class
|
|
9319
|
+
class Proto4 {
|
|
9404
9320
|
[TypeId8];
|
|
9405
9321
|
constructor() {
|
|
9406
9322
|
this[TypeId8] = TypeId8;
|
|
@@ -9415,7 +9331,7 @@ class Proto5 {
|
|
|
9415
9331
|
}
|
|
9416
9332
|
}
|
|
9417
9333
|
|
|
9418
|
-
class Empty extends
|
|
9334
|
+
class Empty extends Proto4 {
|
|
9419
9335
|
_tag = "Empty";
|
|
9420
9336
|
toJSON() {
|
|
9421
9337
|
return {
|
|
@@ -9426,7 +9342,7 @@ class Empty extends Proto5 {
|
|
|
9426
9342
|
}
|
|
9427
9343
|
var empty5 = /* @__PURE__ */ new Empty;
|
|
9428
9344
|
|
|
9429
|
-
class Raw extends
|
|
9345
|
+
class Raw extends Proto4 {
|
|
9430
9346
|
_tag = "Raw";
|
|
9431
9347
|
body;
|
|
9432
9348
|
contentType;
|
|
@@ -9449,7 +9365,7 @@ class Raw extends Proto5 {
|
|
|
9449
9365
|
}
|
|
9450
9366
|
var raw = (body, options) => new Raw(body, options?.contentType, options?.contentLength);
|
|
9451
9367
|
|
|
9452
|
-
class Uint8Array2 extends
|
|
9368
|
+
class Uint8Array2 extends Proto4 {
|
|
9453
9369
|
_tag = "Uint8Array";
|
|
9454
9370
|
contentType;
|
|
9455
9371
|
contentLength;
|
|
@@ -9676,7 +9592,7 @@ var baseUrl = () => {
|
|
|
9676
9592
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientRequest.js
|
|
9677
9593
|
var TypeId10 = "~effect/http/HttpClientRequest";
|
|
9678
9594
|
var isHttpClientRequest = (u) => hasProperty(u, TypeId10);
|
|
9679
|
-
var
|
|
9595
|
+
var Proto5 = {
|
|
9680
9596
|
[TypeId10]: TypeId10,
|
|
9681
9597
|
...BaseProto,
|
|
9682
9598
|
toJSON() {
|
|
@@ -9695,7 +9611,7 @@ var Proto6 = {
|
|
|
9695
9611
|
}
|
|
9696
9612
|
};
|
|
9697
9613
|
function makeWith(method, url, urlParams, hash, headers, body) {
|
|
9698
|
-
const self = Object.create(
|
|
9614
|
+
const self = Object.create(Proto5);
|
|
9699
9615
|
self.method = method;
|
|
9700
9616
|
self.url = url;
|
|
9701
9617
|
self.urlParams = urlParams;
|
|
@@ -9705,14 +9621,14 @@ function makeWith(method, url, urlParams, hash, headers, body) {
|
|
|
9705
9621
|
return self;
|
|
9706
9622
|
}
|
|
9707
9623
|
var empty6 = /* @__PURE__ */ makeWith("GET", "", empty4, /* @__PURE__ */ none(), empty, empty5);
|
|
9708
|
-
var
|
|
9624
|
+
var make5 = (method) => (url, options) => modify(empty6, {
|
|
9709
9625
|
method,
|
|
9710
9626
|
url,
|
|
9711
9627
|
...options ?? undefined
|
|
9712
9628
|
});
|
|
9713
|
-
var get = /* @__PURE__ */
|
|
9714
|
-
var post = /* @__PURE__ */
|
|
9715
|
-
var put = /* @__PURE__ */
|
|
9629
|
+
var get = /* @__PURE__ */ make5("GET");
|
|
9630
|
+
var post = /* @__PURE__ */ make5("POST");
|
|
9631
|
+
var put = /* @__PURE__ */ make5("PUT");
|
|
9716
9632
|
var modify = /* @__PURE__ */ dual(2, (self, options) => {
|
|
9717
9633
|
let result = self;
|
|
9718
9634
|
if (options.method) {
|
|
@@ -9882,7 +9798,7 @@ class WebHttpClientResponse extends Class {
|
|
|
9882
9798
|
}
|
|
9883
9799
|
textBody;
|
|
9884
9800
|
get text() {
|
|
9885
|
-
return this.textBody ??=
|
|
9801
|
+
return this.textBody ??= map7(this.arrayBuffer, (_) => new TextDecoder().decode(_));
|
|
9886
9802
|
}
|
|
9887
9803
|
get urlParamsBody() {
|
|
9888
9804
|
return flatMap3(this.arrayBuffer, (bytes) => try_2({
|
|
@@ -9993,7 +9909,7 @@ var get2 = /* @__PURE__ */ accessor("get");
|
|
|
9993
9909
|
var transform = /* @__PURE__ */ dual(2, (self, f) => makeWith2(flatMap3((request) => f(self.postprocess(succeed6(request)), request)), self.preprocess));
|
|
9994
9910
|
var transformResponse = /* @__PURE__ */ dual(2, (self, f) => makeWith2((request) => f(self.postprocess(request)), self.preprocess));
|
|
9995
9911
|
var makeWith2 = (postprocess, preprocess) => {
|
|
9996
|
-
const self = Object.create(
|
|
9912
|
+
const self = Object.create(Proto6);
|
|
9997
9913
|
self.preprocess = preprocess;
|
|
9998
9914
|
self.postprocess = postprocess;
|
|
9999
9915
|
self.execute = function(request) {
|
|
@@ -10001,7 +9917,7 @@ var makeWith2 = (postprocess, preprocess) => {
|
|
|
10001
9917
|
};
|
|
10002
9918
|
return self;
|
|
10003
9919
|
};
|
|
10004
|
-
var
|
|
9920
|
+
var Proto6 = {
|
|
10005
9921
|
[TypeId13]: TypeId13,
|
|
10006
9922
|
pipe() {
|
|
10007
9923
|
return pipeArguments(this, arguments);
|
|
@@ -10013,7 +9929,7 @@ var Proto7 = {
|
|
|
10013
9929
|
};
|
|
10014
9930
|
},
|
|
10015
9931
|
.../* @__PURE__ */ Object.fromEntries(/* @__PURE__ */ allShort.map(([fullMethod, method]) => [method, function(url, options) {
|
|
10016
|
-
return this.execute(
|
|
9932
|
+
return this.execute(make5(fullMethod)(url, options));
|
|
10017
9933
|
}]))
|
|
10018
9934
|
};
|
|
10019
9935
|
var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
|
|
@@ -10033,7 +9949,7 @@ var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFibe
|
|
|
10033
9949
|
if (tracerDisabled) {
|
|
10034
9950
|
const effect = f(request, url, controller.signal, fiber);
|
|
10035
9951
|
if (scopedController)
|
|
10036
|
-
return
|
|
9952
|
+
return map7(effect, (response) => trackResponse(response, controller, true));
|
|
10037
9953
|
return uninterruptibleMask2((restore) => matchCauseEffect(restore(effect), {
|
|
10038
9954
|
onSuccess(response) {
|
|
10039
9955
|
return succeed6(trackResponse(response, controller, false));
|
|
@@ -10104,7 +10020,7 @@ var TracerPropagationEnabled = /* @__PURE__ */ Reference("effect/http/HttpClient
|
|
|
10104
10020
|
var SpanNameGenerator = /* @__PURE__ */ Reference("effect/http/HttpClient/SpanNameGenerator", {
|
|
10105
10021
|
defaultValue: () => (request) => request.method
|
|
10106
10022
|
});
|
|
10107
|
-
var layerMergedContext = (effect2) => effect(HttpClient)(contextWith((context) =>
|
|
10023
|
+
var layerMergedContext = (effect2) => effect(HttpClient)(contextWith((context) => map7(effect2, (client) => transformResponse(client, updateContext((input) => merge3(context, input))))));
|
|
10108
10024
|
var responseRegistry = /* @__PURE__ */ (() => {
|
|
10109
10025
|
if ("FinalizationRegistry" in globalThis && globalThis.FinalizationRegistry) {
|
|
10110
10026
|
const registry = /* @__PURE__ */ new FinalizationRegistry((controller) => {
|
|
@@ -10269,7 +10185,7 @@ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
|
|
|
10269
10185
|
}
|
|
10270
10186
|
let uploadController;
|
|
10271
10187
|
const stopUpload = sync2(() => uploadController?.abort());
|
|
10272
|
-
const send = (body) =>
|
|
10188
|
+
const send = (body) => map7(tryPromise({
|
|
10273
10189
|
try: () => fetch2(url, {
|
|
10274
10190
|
...options,
|
|
10275
10191
|
method: request.method,
|
|
@@ -10440,14 +10356,14 @@ var layerWebSocketConstructorGlobal = /* @__PURE__ */ succeed5(WebSocketConstruc
|
|
|
10440
10356
|
}
|
|
10441
10357
|
return new globalThis.WebSocket(url, options);
|
|
10442
10358
|
});
|
|
10443
|
-
var makeWebSocket = (url, options) => WebSocketConstructor.use((makeWs) => fromWebSocket(acquireRelease((typeof url === "string" ? succeed6(url) : url).pipe(
|
|
10359
|
+
var makeWebSocket = (url, options) => WebSocketConstructor.use((makeWs) => fromWebSocket(acquireRelease((typeof url === "string" ? succeed6(url) : url).pipe(map7((url) => makeWs(url, options?.headers === undefined ? options?.protocols : {
|
|
10444
10360
|
protocols: options.protocols,
|
|
10445
10361
|
headers: options.headers
|
|
10446
10362
|
}))), (ws) => sync2(() => ws.close(1000))), options));
|
|
10447
10363
|
var isPausable = (ws) => ("pause" in ws) && typeof ws.pause === "function";
|
|
10448
10364
|
var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
|
|
10449
10365
|
let currentWS;
|
|
10450
|
-
const latch =
|
|
10366
|
+
const latch = makeUnsafe(false);
|
|
10451
10367
|
const acquireContext = fiber.context;
|
|
10452
10368
|
const reader = gen(function* () {
|
|
10453
10369
|
const scope = yield* scope2;
|
|
@@ -11075,7 +10991,7 @@ var effectMetrics = new Map(MetricDefinitions.map((definition) => {
|
|
|
11075
10991
|
var processTelemetryRegistry = new Map;
|
|
11076
10992
|
var processMetricRegistry = new Map;
|
|
11077
10993
|
var collectorTimeout = "10 seconds";
|
|
11078
|
-
var collectorHttpClient = effect(HttpClient)(
|
|
10994
|
+
var collectorHttpClient = effect(HttpClient)(map7(HttpClient, (client) => transform(client, (response, request) => timeoutOrElse(response, {
|
|
11079
10995
|
duration: collectorTimeout,
|
|
11080
10996
|
orElse: () => fail7(new HttpClientError({
|
|
11081
10997
|
reason: new TransportError({
|
|
@@ -12872,7 +12788,7 @@ class KitmanEffectClient {
|
|
|
12872
12788
|
return tryPromise({
|
|
12873
12789
|
try: () => this.fetchImpl(this.url(path), { ...init, headers, signal: abort.signal }),
|
|
12874
12790
|
catch: failed
|
|
12875
|
-
}).pipe(flatMap3((answer) => tryPromise({ try: () => answer.arrayBuffer(), catch: failed }).pipe(
|
|
12791
|
+
}).pipe(flatMap3((answer) => tryPromise({ try: () => answer.arrayBuffer(), catch: failed }).pipe(map7((body) => new Response(body.byteLength === 0 ? null : body, answer)))), onInterrupt(() => sync2(() => abort.abort())));
|
|
12876
12792
|
});
|
|
12877
12793
|
const response = yield* method !== "GET" ? send.pipe(retry({ schedule: unansweredGetRetry, times: 5, while: refusedConnection })) : sendAndRead.pipe(timeoutOrElse({
|
|
12878
12794
|
duration: getAnswerTimeout,
|
|
@@ -12934,8 +12850,8 @@ class KitmanEffectClient {
|
|
|
12934
12850
|
function errorResponseDetails(response) {
|
|
12935
12851
|
const contentType = response.headers.get("content-type") ?? "";
|
|
12936
12852
|
if (contentType.includes("application/json"))
|
|
12937
|
-
return tryPromise(() => response.json()).pipe(
|
|
12938
|
-
return tryPromise(() => response.text()).pipe(
|
|
12853
|
+
return tryPromise(() => response.json()).pipe(map7(parseErrorResponse), orElseSucceed(() => ({})));
|
|
12854
|
+
return tryPromise(() => response.text()).pipe(map7((text) => {
|
|
12939
12855
|
const message = sanitizeErrorDetail(text);
|
|
12940
12856
|
return message === undefined ? {} : { message };
|
|
12941
12857
|
}), orElseSucceed(() => ({})));
|
|
@@ -13231,13 +13147,13 @@ function resolveConfig(input) {
|
|
|
13231
13147
|
...userAgentPreferences === undefined ? undefined : { userAgentPreferences }
|
|
13232
13148
|
};
|
|
13233
13149
|
}
|
|
13234
|
-
var apiUrlFromEnv = String2("KITMAN_API_URL").pipe(option,
|
|
13235
|
-
var stepCredentialFromEnv = String2("KITMAN_STEP_CREDENTIAL").pipe(option,
|
|
13236
|
-
var stepWorkspaceFromEnv = String2("KITMAN_STEP_WORKSPACE").pipe(option,
|
|
13237
|
-
var stepSkillsDirFromEnv = String2("KITMAN_STEP_SKILLS_DIR").pipe(option,
|
|
13238
|
-
var stepFittingSkillsFromEnv = String2("KITMAN_STEP_FITTING_SKILLS").pipe(option,
|
|
13239
|
-
var stepOutputOnlyFromEnv = String2("KITMAN_STEP_TOOLS").pipe(option,
|
|
13240
|
-
var mcpCredentialNameFromEnv = String2("KITMAN_MCP_CREDENTIAL_NAME").pipe(option,
|
|
13150
|
+
var apiUrlFromEnv = String2("KITMAN_API_URL").pipe(option, map7(getOrUndefined));
|
|
13151
|
+
var stepCredentialFromEnv = String2("KITMAN_STEP_CREDENTIAL").pipe(option, map7(getOrUndefined));
|
|
13152
|
+
var stepWorkspaceFromEnv = String2("KITMAN_STEP_WORKSPACE").pipe(option, map7(getOrUndefined));
|
|
13153
|
+
var stepSkillsDirFromEnv = String2("KITMAN_STEP_SKILLS_DIR").pipe(option, map7(getOrUndefined));
|
|
13154
|
+
var stepFittingSkillsFromEnv = String2("KITMAN_STEP_FITTING_SKILLS").pipe(option, map7((names) => getOrElse(names, () => "").split(",").filter((name) => name !== "")));
|
|
13155
|
+
var stepOutputOnlyFromEnv = String2("KITMAN_STEP_TOOLS").pipe(option, map7((tools) => getOrUndefined(tools) === "output"));
|
|
13156
|
+
var mcpCredentialNameFromEnv = String2("KITMAN_MCP_CREDENTIAL_NAME").pipe(option, map7(getOrUndefined));
|
|
13241
13157
|
var kitmanConfigDir = gen(function* () {
|
|
13242
13158
|
const path = yield* Path;
|
|
13243
13159
|
const xdgConfigHome = yield* String2("XDG_CONFIG_HOME").pipe(option);
|
|
@@ -13254,7 +13170,7 @@ var userAuthPath = configFile("auth.json");
|
|
|
13254
13170
|
var userHarnessSyncPath = configFile("harness-sync.json");
|
|
13255
13171
|
var kitSetupCacheDir = configFile("kit-setups");
|
|
13256
13172
|
var bundleCacheDir = configFile("bundles");
|
|
13257
|
-
var localConfigPath = Path.pipe(
|
|
13173
|
+
var localConfigPath = Path.pipe(map7((path) => path.resolve(".kitman/config.json")));
|
|
13258
13174
|
function readUserConfig(path) {
|
|
13259
13175
|
return gen(function* () {
|
|
13260
13176
|
const filePath = path ?? (yield* userConfigPath);
|
|
@@ -13382,7 +13298,7 @@ function sessionForApi(auth, apiUrl) {
|
|
|
13382
13298
|
return auth.sessions[normalizeApiUrl(apiUrl)];
|
|
13383
13299
|
}
|
|
13384
13300
|
function readAuthStore(path) {
|
|
13385
|
-
return readUserAuth(path).pipe(
|
|
13301
|
+
return readUserAuth(path).pipe(map7((auth) => isAuthStore(auth) ? normalizeAuthStore(auth) : { sessions: {} }), catchTag("SchemaError", () => succeed6({ sessions: {} })));
|
|
13386
13302
|
}
|
|
13387
13303
|
function writeAuthStore(auth, path) {
|
|
13388
13304
|
return writeUserAuth(auth, path);
|
|
@@ -13530,7 +13446,7 @@ function Stream(success, error) {
|
|
|
13530
13446
|
|
|
13531
13447
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
|
|
13532
13448
|
var TypeId15 = "~effect/rpc/Rpc";
|
|
13533
|
-
var
|
|
13449
|
+
var Proto7 = {
|
|
13534
13450
|
[TypeId15]: TypeId15,
|
|
13535
13451
|
pipe() {
|
|
13536
13452
|
return pipeArguments(this, arguments);
|
|
@@ -13615,12 +13531,12 @@ var Proto8 = {
|
|
|
13615
13531
|
};
|
|
13616
13532
|
var makeProto = (options) => {
|
|
13617
13533
|
function Rpc() {}
|
|
13618
|
-
Object.setPrototypeOf(Rpc,
|
|
13534
|
+
Object.setPrototypeOf(Rpc, Proto7);
|
|
13619
13535
|
Object.assign(Rpc, options);
|
|
13620
13536
|
Rpc.key = `effect/rpc/Rpc/${options._tag}`;
|
|
13621
13537
|
return Rpc;
|
|
13622
13538
|
};
|
|
13623
|
-
var
|
|
13539
|
+
var make6 = (tag, options) => {
|
|
13624
13540
|
const successSchema = options?.success ?? Void;
|
|
13625
13541
|
const errorSchema = options?.error ?? Never;
|
|
13626
13542
|
const defectSchema = options?.defect ?? Defect();
|
|
@@ -13741,7 +13657,7 @@ var RpcGroupProto = {
|
|
|
13741
13657
|
}
|
|
13742
13658
|
return makeProto2({
|
|
13743
13659
|
requests,
|
|
13744
|
-
annotations:
|
|
13660
|
+
annotations: makeUnsafe3(annotations)
|
|
13745
13661
|
});
|
|
13746
13662
|
},
|
|
13747
13663
|
omit(...tags) {
|
|
@@ -13777,7 +13693,7 @@ var RpcGroupProto = {
|
|
|
13777
13693
|
context: services
|
|
13778
13694
|
});
|
|
13779
13695
|
});
|
|
13780
|
-
return
|
|
13696
|
+
return makeUnsafe3(contextMap);
|
|
13781
13697
|
});
|
|
13782
13698
|
},
|
|
13783
13699
|
prefix(prefix) {
|
|
@@ -13806,7 +13722,7 @@ var RpcGroupProto = {
|
|
|
13806
13722
|
handler,
|
|
13807
13723
|
context: services
|
|
13808
13724
|
});
|
|
13809
|
-
return
|
|
13725
|
+
return makeUnsafe3(contextMap);
|
|
13810
13726
|
}));
|
|
13811
13727
|
},
|
|
13812
13728
|
accessHandler(service) {
|
|
@@ -13854,7 +13770,7 @@ var makeProto2 = (options) => Object.assign(function() {}, RpcGroupProto, {
|
|
|
13854
13770
|
requests: options.requests,
|
|
13855
13771
|
annotations: options.annotations
|
|
13856
13772
|
});
|
|
13857
|
-
var
|
|
13773
|
+
var make7 = (...rpcs) => makeProto2({
|
|
13858
13774
|
requests: new Map(rpcs.map((rpc) => [rpc._tag, rpc])),
|
|
13859
13775
|
annotations: empty3()
|
|
13860
13776
|
});
|
|
@@ -13961,96 +13877,96 @@ var ProgramOutcome = Union([
|
|
|
13961
13877
|
Struct({ status: Literal("failed"), failureSummary: String4 })
|
|
13962
13878
|
]);
|
|
13963
13879
|
|
|
13964
|
-
class RunnerReplicaRpcs extends make6(
|
|
13880
|
+
class RunnerReplicaRpcs extends make7(make6("Claim", {
|
|
13965
13881
|
payload: WorkUnitClaimInput,
|
|
13966
13882
|
success: WorkUnitClaimResult,
|
|
13967
13883
|
error: RunnerRpcError
|
|
13968
|
-
}),
|
|
13884
|
+
}), make6("Heartbeat", {
|
|
13969
13885
|
payload: WorkUnitHeartbeatInput,
|
|
13970
13886
|
success: WorkUnitHeartbeatResult,
|
|
13971
13887
|
error: RunnerRpcError
|
|
13972
|
-
}),
|
|
13888
|
+
}), make6("Complete", {
|
|
13973
13889
|
payload: WorkUnitCompletion,
|
|
13974
13890
|
error: RunnerRpcError
|
|
13975
|
-
}),
|
|
13891
|
+
}), make6("Release", {
|
|
13976
13892
|
payload: WorkUnitReleaseInput,
|
|
13977
13893
|
error: RunnerRpcError
|
|
13978
|
-
}),
|
|
13894
|
+
}), make6("Signals", {
|
|
13979
13895
|
payload: { runnerReplicaId: String4 },
|
|
13980
13896
|
success: RunnerSignal,
|
|
13981
13897
|
error: RunnerRpcError,
|
|
13982
13898
|
stream: true
|
|
13983
|
-
}),
|
|
13899
|
+
}), make6("ReportSteer", {
|
|
13984
13900
|
payload: { workUnitId: String4, messageId: String4, delivered: Boolean2 },
|
|
13985
13901
|
success: Void,
|
|
13986
13902
|
error: RunnerRpcError
|
|
13987
|
-
}),
|
|
13903
|
+
}), make6("AppendTranscript", {
|
|
13988
13904
|
payload: { workUnitId: String4, entries: ArraySchema(TranscriptAppendEntry).check(isMaxLength(100)) },
|
|
13989
13905
|
success: Void,
|
|
13990
13906
|
error: RunnerRpcError
|
|
13991
|
-
}),
|
|
13907
|
+
}), make6("CreateCheckpointFile", {
|
|
13992
13908
|
payload: { lease: ProgramLease, byteSize: Int, sha256: String4 },
|
|
13993
13909
|
success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
|
|
13994
13910
|
error: Union([RunnerRpcError, RunFileRefused])
|
|
13995
|
-
}),
|
|
13911
|
+
}), make6("CheckpointFileParts", {
|
|
13996
13912
|
payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
|
|
13997
13913
|
success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
|
|
13998
13914
|
error: RunnerRpcError
|
|
13999
|
-
}),
|
|
13915
|
+
}), make6("CompleteCheckpointFile", {
|
|
14000
13916
|
payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
|
|
14001
13917
|
success: RunFileRecord,
|
|
14002
13918
|
error: RunnerRpcError
|
|
14003
|
-
}),
|
|
13919
|
+
}), make6("SaveCheckpoint", {
|
|
14004
13920
|
payload: { lease: ProgramLease, checkpoint: StepCheckpoint },
|
|
14005
13921
|
success: Void,
|
|
14006
13922
|
error: RunnerRpcError
|
|
14007
|
-
}),
|
|
13923
|
+
}), make6("ResumeCheckpoint", {
|
|
14008
13924
|
payload: { lease: ProgramLease },
|
|
14009
13925
|
success: UndefinedOr(ResumedCheckpoint),
|
|
14010
13926
|
error: RunnerRpcError
|
|
14011
|
-
}),
|
|
13927
|
+
}), make6("SettledCheckpoints", {
|
|
14012
13928
|
success: ArraySchema(Struct({
|
|
14013
13929
|
stepAttemptId: String4,
|
|
14014
13930
|
ref: optionalKey(String4),
|
|
14015
13931
|
repoBinding: optionalKey(WorkUnitRepoBinding)
|
|
14016
13932
|
})),
|
|
14017
13933
|
error: RunnerRpcError
|
|
14018
|
-
}),
|
|
13934
|
+
}), make6("ForgetCheckpoints", {
|
|
14019
13935
|
payload: { stepAttemptIds: ArraySchema(String4) },
|
|
14020
13936
|
success: Void,
|
|
14021
13937
|
error: RunnerRpcError
|
|
14022
|
-
}),
|
|
13938
|
+
}), make6("GitCredential", {
|
|
14023
13939
|
payload: { repoBindingId: String4 },
|
|
14024
13940
|
success: UndefinedOr(Struct({ username: String4, password: String4 })),
|
|
14025
13941
|
error: RunnerRpcError
|
|
14026
|
-
}),
|
|
13942
|
+
}), make6("Bundle", {
|
|
14027
13943
|
payload: { digest: String4 },
|
|
14028
13944
|
success: Struct({ bundle: String4 }),
|
|
14029
13945
|
error: RunnerRpcError
|
|
14030
|
-
}),
|
|
13946
|
+
}), make6("SettledRuns", {
|
|
14031
13947
|
payload: { runIds: ArraySchema(String4) },
|
|
14032
13948
|
success: ArraySchema(String4),
|
|
14033
13949
|
error: RunnerRpcError
|
|
14034
|
-
}),
|
|
13950
|
+
}), make6("KnownEvidence", {
|
|
14035
13951
|
payload: { lease: ProgramLease, trees: ArraySchema(String4) },
|
|
14036
13952
|
success: ArraySchema(Struct({ tree: String4, name: String4, command: String4 })),
|
|
14037
13953
|
error: RunnerRpcError
|
|
14038
13954
|
})).middleware(RunnerAuthentication) {
|
|
14039
13955
|
}
|
|
14040
13956
|
|
|
14041
|
-
class RunnerJournalRpcs extends make6(
|
|
13957
|
+
class RunnerJournalRpcs extends make7(make6("RecordActivity", {
|
|
14042
13958
|
payload: { lease: ProgramLease, name: String4, attempt: Int, exit: Json },
|
|
14043
13959
|
error: RunnerRpcError
|
|
14044
|
-
}),
|
|
13960
|
+
}), make6("DeferredDone", {
|
|
14045
13961
|
payload: { lease: ProgramLease, name: String4, exit: Json },
|
|
14046
13962
|
error: RunnerRpcError
|
|
14047
|
-
}),
|
|
13963
|
+
}), make6("ScheduleClock", {
|
|
14048
13964
|
payload: { lease: ProgramLease, name: String4, deferredName: String4, durationMillis: Int },
|
|
14049
13965
|
error: RunnerRpcError
|
|
14050
|
-
}),
|
|
13966
|
+
}), make6("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make6("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
|
|
14051
13967
|
}
|
|
14052
13968
|
|
|
14053
|
-
class RunnerCapabilityRpcs extends make6(
|
|
13969
|
+
class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
14054
13970
|
payload: {
|
|
14055
13971
|
lease: ProgramLease,
|
|
14056
13972
|
step: String4,
|
|
@@ -14069,7 +13985,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14069
13985
|
},
|
|
14070
13986
|
success: Struct({ questionId: String4 }),
|
|
14071
13987
|
error: RunnerRpcError
|
|
14072
|
-
}),
|
|
13988
|
+
}), make6("StartAgentStep", {
|
|
14073
13989
|
payload: {
|
|
14074
13990
|
lease: ProgramLease,
|
|
14075
13991
|
step: String4,
|
|
@@ -14085,7 +14001,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14085
14001
|
},
|
|
14086
14002
|
success: Struct({ stepAttemptId: String4 }),
|
|
14087
14003
|
error: RunnerRpcError
|
|
14088
|
-
}),
|
|
14004
|
+
}), make6("StartVerification", {
|
|
14089
14005
|
payload: {
|
|
14090
14006
|
lease: ProgramLease,
|
|
14091
14007
|
step: String4,
|
|
@@ -14104,7 +14020,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14104
14020
|
},
|
|
14105
14021
|
success: Struct({ verificationId: String4 }),
|
|
14106
14022
|
error: RunnerRpcError
|
|
14107
|
-
}),
|
|
14023
|
+
}), make6("AwaitEvent", {
|
|
14108
14024
|
payload: {
|
|
14109
14025
|
lease: ProgramLease,
|
|
14110
14026
|
step: String4,
|
|
@@ -14120,7 +14036,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14120
14036
|
})))
|
|
14121
14037
|
},
|
|
14122
14038
|
error: RunnerRpcError
|
|
14123
|
-
}),
|
|
14039
|
+
}), make6("ClaimResource", {
|
|
14124
14040
|
payload: {
|
|
14125
14041
|
lease: ProgramLease,
|
|
14126
14042
|
step: String4,
|
|
@@ -14129,7 +14045,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14129
14045
|
action: Literals(["claim", "take_over", "let_go"])
|
|
14130
14046
|
},
|
|
14131
14047
|
error: RunnerRpcError
|
|
14132
|
-
}),
|
|
14048
|
+
}), make6("AdmitChild", {
|
|
14133
14049
|
payload: {
|
|
14134
14050
|
lease: ProgramLease,
|
|
14135
14051
|
step: String4,
|
|
@@ -14140,7 +14056,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14140
14056
|
},
|
|
14141
14057
|
success: Struct({ runId: String4 }),
|
|
14142
14058
|
error: RunnerRpcError
|
|
14143
|
-
}),
|
|
14059
|
+
}), make6("StoreArtifact", {
|
|
14144
14060
|
payload: {
|
|
14145
14061
|
lease: ProgramLease,
|
|
14146
14062
|
step: String4,
|
|
@@ -14152,7 +14068,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14152
14068
|
},
|
|
14153
14069
|
success: Struct({ artifactId: String4 }),
|
|
14154
14070
|
error: RunnerRpcError
|
|
14155
|
-
}),
|
|
14071
|
+
}), make6("RecordNote", {
|
|
14156
14072
|
payload: {
|
|
14157
14073
|
lease: ProgramLease,
|
|
14158
14074
|
step: String4,
|
|
@@ -14161,7 +14077,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14161
14077
|
kind: optional(Literals(["note", "blocker"]))
|
|
14162
14078
|
},
|
|
14163
14079
|
error: RunnerRpcError
|
|
14164
|
-
}),
|
|
14080
|
+
}), make6("PerformHostEffect", {
|
|
14165
14081
|
payload: {
|
|
14166
14082
|
lease: ProgramLease,
|
|
14167
14083
|
step: String4,
|
|
@@ -14189,7 +14105,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14189
14105
|
},
|
|
14190
14106
|
success: UndefinedOr(Struct({ id: String4, number: String4, url: String4 })),
|
|
14191
14107
|
error: RunnerRpcError
|
|
14192
|
-
}),
|
|
14108
|
+
}), make6("AlertTask", {
|
|
14193
14109
|
payload: {
|
|
14194
14110
|
lease: ProgramLease,
|
|
14195
14111
|
step: String4,
|
|
@@ -14206,7 +14122,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14206
14122
|
joined: optionalKey(Struct({ kind: Literals(["run", "recent"]), runId: String4 }))
|
|
14207
14123
|
}),
|
|
14208
14124
|
error: RunnerRpcError
|
|
14209
|
-
}),
|
|
14125
|
+
}), make6("ReadTranscripts", {
|
|
14210
14126
|
payload: { lease: ProgramLease, step: String4, days: Int, teamId: optionalKey(String4) },
|
|
14211
14127
|
success: Struct({
|
|
14212
14128
|
runs: ArraySchema(Struct({
|
|
@@ -14234,7 +14150,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14234
14150
|
})))
|
|
14235
14151
|
}),
|
|
14236
14152
|
error: RunnerRpcError
|
|
14237
|
-
}),
|
|
14153
|
+
}), make6("PipelineStatus", {
|
|
14238
14154
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
|
|
14239
14155
|
success: Struct({
|
|
14240
14156
|
head: String4,
|
|
@@ -14250,6 +14166,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14250
14166
|
runnerChecks: optionalKey(ArraySchema(String4)),
|
|
14251
14167
|
approved: optionalKey(String4),
|
|
14252
14168
|
repository: optionalKey(String4),
|
|
14169
|
+
sourceBranch: optionalKey(String4),
|
|
14253
14170
|
targetBranch: optionalKey(String4),
|
|
14254
14171
|
conflicts: optionalKey(Boolean2),
|
|
14255
14172
|
needsRebase: optionalKey(Boolean2),
|
|
@@ -14265,11 +14182,11 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14265
14182
|
}))
|
|
14266
14183
|
}),
|
|
14267
14184
|
error: RunnerRpcError
|
|
14268
|
-
}),
|
|
14185
|
+
}), make6("ReportPipeline", {
|
|
14269
14186
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4, verification: String4 },
|
|
14270
14187
|
success: Struct({ head: String4, status: Literals(["success", "failed"]) }),
|
|
14271
14188
|
error: RunnerRpcError
|
|
14272
|
-
}),
|
|
14189
|
+
}), make6("ReviewThreads", {
|
|
14273
14190
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
|
|
14274
14191
|
success: Struct({
|
|
14275
14192
|
threads: ArraySchema(Struct({
|
|
@@ -14281,7 +14198,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14281
14198
|
}))
|
|
14282
14199
|
}),
|
|
14283
14200
|
error: RunnerRpcError
|
|
14284
|
-
}),
|
|
14201
|
+
}), make6("OpenChangeRequests", {
|
|
14285
14202
|
payload: { lease: ProgramLease, step: String4, authors: NonEmptyArray(String4) },
|
|
14286
14203
|
success: Struct({
|
|
14287
14204
|
changeRequests: ArraySchema(Struct({
|
|
@@ -14295,7 +14212,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14295
14212
|
}))
|
|
14296
14213
|
}),
|
|
14297
14214
|
error: RunnerRpcError
|
|
14298
|
-
}),
|
|
14215
|
+
}), make6("OwnChangeRequests", {
|
|
14299
14216
|
payload: { lease: ProgramLease, step: String4 },
|
|
14300
14217
|
success: Struct({
|
|
14301
14218
|
changeRequests: ArraySchema(Struct({
|
|
@@ -14308,7 +14225,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14308
14225
|
}))
|
|
14309
14226
|
}),
|
|
14310
14227
|
error: RunnerRpcError
|
|
14311
|
-
}),
|
|
14228
|
+
}), make6("Propose", {
|
|
14312
14229
|
payload: {
|
|
14313
14230
|
lease: ProgramLease,
|
|
14314
14231
|
step: String4,
|
|
@@ -14336,7 +14253,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14336
14253
|
task: optionalKey(Struct({ id: String4, active: Boolean2 }))
|
|
14337
14254
|
}),
|
|
14338
14255
|
error: RunnerRpcError
|
|
14339
|
-
}),
|
|
14256
|
+
}), make6("ReadProject", {
|
|
14340
14257
|
payload: { lease: ProgramLease, step: String4, projectId: String4 },
|
|
14341
14258
|
success: Struct({
|
|
14342
14259
|
project: Struct({ id: String4, name: String4 }),
|
|
@@ -14359,7 +14276,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14359
14276
|
taskChanges: ArraySchema(Struct({ taskKey: String4, title: String4, change: String4, at: String4 }))
|
|
14360
14277
|
}),
|
|
14361
14278
|
error: RunnerRpcError
|
|
14362
|
-
}),
|
|
14279
|
+
}), make6("DraftUpdate", {
|
|
14363
14280
|
payload: {
|
|
14364
14281
|
lease: ProgramLease,
|
|
14365
14282
|
step: String4,
|
|
@@ -14374,7 +14291,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14374
14291
|
},
|
|
14375
14292
|
success: Struct({ id: String4 }),
|
|
14376
14293
|
error: RunnerRpcError
|
|
14377
|
-
}),
|
|
14294
|
+
}), make6("CreatePlanTasks", {
|
|
14378
14295
|
payload: {
|
|
14379
14296
|
lease: ProgramLease,
|
|
14380
14297
|
projectId: optionalKey(String4),
|
|
@@ -14389,11 +14306,11 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14389
14306
|
},
|
|
14390
14307
|
success: ArraySchema(Struct({ key: String4, taskId: String4 })),
|
|
14391
14308
|
error: RunnerRpcError
|
|
14392
|
-
}),
|
|
14309
|
+
}), make6("IntegrationBranch", {
|
|
14393
14310
|
payload: { lease: ProgramLease, repoBindingId: optionalKey(String4) },
|
|
14394
14311
|
success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
|
|
14395
14312
|
error: RunnerRpcError
|
|
14396
|
-
}),
|
|
14313
|
+
}), make6("MergeChangeRequest", {
|
|
14397
14314
|
payload: {
|
|
14398
14315
|
lease: ProgramLease,
|
|
14399
14316
|
step: String4,
|
|
@@ -14406,7 +14323,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14406
14323
|
Struct({ status: Literal("moved"), head: String4 })
|
|
14407
14324
|
]),
|
|
14408
14325
|
error: RunnerRpcError
|
|
14409
|
-
}),
|
|
14326
|
+
}), make6("ApproveChangeRequest", {
|
|
14410
14327
|
payload: {
|
|
14411
14328
|
lease: ProgramLease,
|
|
14412
14329
|
step: String4,
|
|
@@ -14421,7 +14338,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14421
14338
|
Struct({ approved: Literal(false), reason: String4 })
|
|
14422
14339
|
]),
|
|
14423
14340
|
error: RunnerRpcError
|
|
14424
|
-
}),
|
|
14341
|
+
}), make6("CloseChangeRequest", {
|
|
14425
14342
|
payload: {
|
|
14426
14343
|
lease: ProgramLease,
|
|
14427
14344
|
step: String4,
|
|
@@ -14431,7 +14348,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14431
14348
|
},
|
|
14432
14349
|
success: Struct({ closed: Boolean2, head: optionalKey(String4) }),
|
|
14433
14350
|
error: RunnerRpcError
|
|
14434
|
-
}),
|
|
14351
|
+
}), make6("RerunPipeline", {
|
|
14435
14352
|
payload: {
|
|
14436
14353
|
lease: ProgramLease,
|
|
14437
14354
|
step: String4,
|
|
@@ -14441,7 +14358,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14441
14358
|
},
|
|
14442
14359
|
success: Struct({ head: String4, pipelines: Int }),
|
|
14443
14360
|
error: RunnerRpcError
|
|
14444
|
-
}),
|
|
14361
|
+
}), make6("PublishRelease", {
|
|
14445
14362
|
payload: {
|
|
14446
14363
|
lease: ProgramLease,
|
|
14447
14364
|
step: String4,
|
|
@@ -14452,14 +14369,14 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14452
14369
|
},
|
|
14453
14370
|
success: Struct({ tag: String4, revision: String4, url: String4 }),
|
|
14454
14371
|
error: RunnerRpcError
|
|
14455
|
-
}),
|
|
14372
|
+
}), make6("ProgramSecrets", {
|
|
14456
14373
|
payload: { lease: ProgramLease },
|
|
14457
14374
|
success: Record(String4, String4),
|
|
14458
14375
|
error: RunnerRpcError
|
|
14459
14376
|
})).middleware(RunnerAuthentication) {
|
|
14460
14377
|
}
|
|
14461
14378
|
|
|
14462
|
-
class RunnerRunFileRpcs extends make6(
|
|
14379
|
+
class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
|
|
14463
14380
|
payload: {
|
|
14464
14381
|
lease: ProgramLease,
|
|
14465
14382
|
step: String4,
|
|
@@ -14471,11 +14388,11 @@ class RunnerRunFileRpcs extends make6(make5("CreateRunFile", {
|
|
|
14471
14388
|
},
|
|
14472
14389
|
success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
|
|
14473
14390
|
error: Union([RunnerRpcError, RunFileRefused])
|
|
14474
|
-
}),
|
|
14391
|
+
}), make6("RunFileParts", {
|
|
14475
14392
|
payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
|
|
14476
14393
|
success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
|
|
14477
14394
|
error: RunnerRpcError
|
|
14478
|
-
}),
|
|
14395
|
+
}), make6("CompleteRunFile", {
|
|
14479
14396
|
payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
|
|
14480
14397
|
success: RunFileRecord,
|
|
14481
14398
|
error: RunnerRpcError
|
|
@@ -14485,7 +14402,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
|
|
|
14485
14402
|
var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
|
|
14486
14403
|
|
|
14487
14404
|
// apps/cli/src/oauth.ts
|
|
14488
|
-
var
|
|
14405
|
+
var Scope2 = "openid profile email offline_access kitman:cli";
|
|
14489
14406
|
var CallbackPath = "/auth/callback";
|
|
14490
14407
|
|
|
14491
14408
|
class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
|
|
@@ -14504,7 +14421,7 @@ function buildAuthorizeUrl(input) {
|
|
|
14504
14421
|
url.searchParams.set("response_type", "code");
|
|
14505
14422
|
url.searchParams.set("client_id", input.clientId);
|
|
14506
14423
|
url.searchParams.set("redirect_uri", input.redirectUri);
|
|
14507
|
-
url.searchParams.set("scope",
|
|
14424
|
+
url.searchParams.set("scope", Scope2);
|
|
14508
14425
|
url.searchParams.set("code_challenge", input.codeChallenge);
|
|
14509
14426
|
url.searchParams.set("code_challenge_method", "S256");
|
|
14510
14427
|
url.searchParams.set("state", input.state);
|
|
@@ -14673,7 +14590,7 @@ function createSdkClient(input) {
|
|
|
14673
14590
|
const runPromise = runPromiseWith(yield* context());
|
|
14674
14591
|
const fetchImpl = input.fetch ?? (yield* Fetch);
|
|
14675
14592
|
let session = input.session;
|
|
14676
|
-
const refreshPermit =
|
|
14593
|
+
const refreshPermit = makeUnsafe2(1);
|
|
14677
14594
|
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 })));
|
|
14678
14595
|
const authorizedFetch = (resource, init) => runPromise(gen(function* () {
|
|
14679
14596
|
if (session.refreshToken && shouldRefresh(yield* currentDate, session.expiresAt))
|
|
@@ -14693,7 +14610,7 @@ function createSdkClient(input) {
|
|
|
14693
14610
|
});
|
|
14694
14611
|
}
|
|
14695
14612
|
function refreshSession(input) {
|
|
14696
|
-
const storedSession = readAuthStore(input.authPath).pipe(
|
|
14613
|
+
const storedSession = readAuthStore(input.authPath).pipe(map7((auth) => sessionForApi(auth, input.apiUrl)));
|
|
14697
14614
|
return withAuthLock(input.authPath, gen(function* () {
|
|
14698
14615
|
const stored = yield* storedSession;
|
|
14699
14616
|
if (!stored)
|
|
@@ -14708,7 +14625,7 @@ function refreshSession(input) {
|
|
|
14708
14625
|
clientId: input.clientId ?? ClientId,
|
|
14709
14626
|
refreshToken: spentToken,
|
|
14710
14627
|
...input.fetch ? { fetch: input.fetch } : undefined
|
|
14711
|
-
}).pipe(
|
|
14628
|
+
}).pipe(map7((token) => toStoredSession(token, spentToken)));
|
|
14712
14629
|
const session = yield* refreshing.pipe(catch_((error) => storedSession.pipe(filterOrFail((current) => current !== undefined && current.refreshToken !== spentToken, () => error))));
|
|
14713
14630
|
const current = yield* storedSession;
|
|
14714
14631
|
if (current?.refreshToken !== spentToken)
|
|
@@ -15163,9 +15080,9 @@ var herdrCoreOver = (transport) => ({
|
|
|
15163
15080
|
...input.name === undefined ? undefined : { name: input.name },
|
|
15164
15081
|
no_parent: input.noParent === true
|
|
15165
15082
|
}),
|
|
15166
|
-
list: (filter = {}) => request("terminal.list", Listed, { labels: filter.labels ?? {}, all: filter.all === true }).pipe(
|
|
15083
|
+
list: (filter = {}) => request("terminal.list", Listed, { labels: filter.labels ?? {}, all: filter.all === true }).pipe(map7((listed) => listed.terminals)),
|
|
15167
15084
|
get: (terminal) => request("terminal.get", Terminal2, { terminal }),
|
|
15168
|
-
read: (terminal) => request("terminal.read", Screen, { terminal }).pipe(
|
|
15085
|
+
read: (terminal) => request("terminal.read", Screen, { terminal }).pipe(map7((screen) => screen.text)),
|
|
15169
15086
|
interrupt: (terminal, options = {}) => request("terminal.interrupt", Interrupted, {
|
|
15170
15087
|
terminal,
|
|
15171
15088
|
...options.timeoutSeconds === undefined ? undefined : { timeout: options.timeoutSeconds }
|
|
@@ -15212,7 +15129,7 @@ var spawnedTransport = (env) => gen(function* () {
|
|
|
15212
15129
|
const spawner = yield* ChildProcessSpawner;
|
|
15213
15130
|
const input = yield* unbounded2();
|
|
15214
15131
|
const encoder = new TextEncoder;
|
|
15215
|
-
const handle = yield* spawner.spawn(
|
|
15132
|
+
const handle = yield* spawner.spawn(make3("herdr-core", ["connect"], {
|
|
15216
15133
|
extendEnv: false,
|
|
15217
15134
|
env,
|
|
15218
15135
|
stdin: fromQueue(input),
|
|
@@ -15228,7 +15145,7 @@ var coreEnv = (options) => {
|
|
|
15228
15145
|
const env = Object.fromEntries(Object.entries(options.env ?? process.env).filter((entry) => entry[0] !== "HC_SESSION" && entry[1] !== undefined));
|
|
15229
15146
|
return options.session === undefined ? env : { ...env, HC_SESSION: options.session };
|
|
15230
15147
|
};
|
|
15231
|
-
var herdrCoreLayer2 = (options) => effect(HerdrCore2,
|
|
15148
|
+
var herdrCoreLayer2 = (options) => effect(HerdrCore2, map7(ChildProcessSpawner, (spawner) => herdrCoreOver(spawnedTransport(coreEnv(options)).pipe(provideService(ChildProcessSpawner, spawner)))));
|
|
15232
15149
|
var herdrCoreTransportLayer2 = (transport) => succeed5(HerdrCore2, herdrCoreOver(transport));
|
|
15233
15150
|
var UpdateRefused = Struct({
|
|
15234
15151
|
error: Struct({ message: String4, hint: optionalKey(String4) })
|
|
@@ -15243,7 +15160,7 @@ var updateHerdrCore2 = (options) => gen(function* () {
|
|
|
15243
15160
|
const spawner = yield* ChildProcessSpawner;
|
|
15244
15161
|
const env = coreEnv(options);
|
|
15245
15162
|
const run = (args) => gen(function* () {
|
|
15246
|
-
const handle = yield* spawner.spawn(
|
|
15163
|
+
const handle = yield* spawner.spawn(make3("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
|
|
15247
15164
|
const [stdout, stderr, exitCode] = yield* all3([
|
|
15248
15165
|
mkString(decodeText(handle.stdout)),
|
|
15249
15166
|
mkString(decodeText(handle.stderr)),
|
|
@@ -15251,13 +15168,13 @@ var updateHerdrCore2 = (options) => gen(function* () {
|
|
|
15251
15168
|
], { concurrency: 3 });
|
|
15252
15169
|
return { stdout, stderr, exitCode };
|
|
15253
15170
|
}).pipe(scoped, catchReason("PlatformError", "NotFound", () => fail7(new HerdrCoreMissing2)));
|
|
15254
|
-
const reason = yield* run(["update", "--json"]).pipe(
|
|
15171
|
+
const reason = yield* run(["update", "--json"]).pipe(map7(({ stdout, stderr, exitCode }) => exitCode === 0 ? undefined : refusalReason(stdout) ?? (stderr.trim() || `it exited with code ${exitCode}`)), catchTag("PlatformError", (error) => succeed6(error.message)), timeoutOrElse({
|
|
15255
15172
|
duration: options.timeout,
|
|
15256
15173
|
orElse: () => succeed6(`it did not finish within ${options.timeout}`)
|
|
15257
15174
|
}));
|
|
15258
15175
|
if (reason === undefined)
|
|
15259
15176
|
return;
|
|
15260
|
-
const version = yield* run(["--version"]).pipe(
|
|
15177
|
+
const version = yield* run(["--version"]).pipe(map7(({ stdout }) => stdout.trim() || "an unknown version"), timeout("10 seconds"), orElseSucceed(() => "an unknown version"));
|
|
15261
15178
|
return yield* new HerdrCoreUpdateFailed2({ version, reason: reason.slice(0, 400) });
|
|
15262
15179
|
});
|
|
15263
15180
|
|
|
@@ -15269,7 +15186,7 @@ class CommandFailed2 extends TaggedError("CommandFailed") {
|
|
|
15269
15186
|
}
|
|
15270
15187
|
var runCommand2 = (command, args, options = {}) => gen(function* () {
|
|
15271
15188
|
const spawner = yield* ChildProcessSpawner;
|
|
15272
|
-
const handle = yield* spawner.spawn(
|
|
15189
|
+
const handle = yield* spawner.spawn(make3(command, args, {
|
|
15273
15190
|
stdin: "ignore",
|
|
15274
15191
|
...options.cwd === undefined ? undefined : { cwd: options.cwd },
|
|
15275
15192
|
...options.env === undefined ? undefined : { extendEnv: true, env: options.env }
|
|
@@ -15295,7 +15212,7 @@ var shellOutputTailChars2 = 64 * 1024;
|
|
|
15295
15212
|
var runProcess2 = (argv, options) => gen(function* () {
|
|
15296
15213
|
const spawner = yield* ChildProcessSpawner;
|
|
15297
15214
|
const [command, ...args] = argv;
|
|
15298
|
-
const handle = yield* spawner.spawn(
|
|
15215
|
+
const handle = yield* spawner.spawn(make3(command, args, {
|
|
15299
15216
|
stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
|
|
15300
15217
|
...options.cwd === undefined ? undefined : { cwd: options.cwd },
|
|
15301
15218
|
env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
|
|
@@ -15342,7 +15259,7 @@ var detectHarnesses2 = gen(function* () {
|
|
|
15342
15259
|
const home = (yield* optionalEnv("HOME")) ?? "/";
|
|
15343
15260
|
const searchPath = ((yield* optionalEnv("PATH")) ?? "").split(":").filter(Boolean);
|
|
15344
15261
|
const exists = (file) => fs.exists(file).pipe(orElseSucceed(() => false));
|
|
15345
|
-
const any = (items, test) =>
|
|
15262
|
+
const any = (items, test) => map7(findFirst(items, test), isSome);
|
|
15346
15263
|
const loginFound = (login) => gen(function* () {
|
|
15347
15264
|
const file = path.join(home, login.path);
|
|
15348
15265
|
if (!(yield* exists(file)))
|
|
@@ -15358,7 +15275,7 @@ var detectHarnesses2 = gen(function* () {
|
|
|
15358
15275
|
unavailable.push({ harness: harness.id, missing: [`\`${harness.id}\` is not installed`] });
|
|
15359
15276
|
continue;
|
|
15360
15277
|
}
|
|
15361
|
-
const loggedIn = (yield* any(harness.keys, (key) =>
|
|
15278
|
+
const loggedIn = (yield* any(harness.keys, (key) => map7(optionalEnv(key), Boolean))) || (yield* any(harness.logins, loginFound));
|
|
15362
15279
|
if (loggedIn)
|
|
15363
15280
|
harnesses.push(harness.id);
|
|
15364
15281
|
else
|
|
@@ -15719,4 +15636,4 @@ function checkServices(declaration) {
|
|
|
15719
15636
|
return isSome(decoded) ? [...new Set(decoded.value.services)] : undefined;
|
|
15720
15637
|
}
|
|
15721
15638
|
|
|
15722
|
-
export {
|
|
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 };
|