@kitman-sh/cli 0.13.7 → 0.13.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-pxvd8w2v.js → chunk-0tjg9eya.js} +1 -1
- package/dist/{chunk-9g8tc40f.js → chunk-0wj65j5e.js} +7 -7
- package/dist/{chunk-4bgj3b5r.js → chunk-1ht6jwzm.js} +10 -9
- package/dist/{chunk-4crf5vhd.js → chunk-53qp6kcp.js} +2 -2
- package/dist/{chunk-xt97vb58.js → chunk-69fcvx7d.js} +109 -65
- package/dist/{chunk-bbks1scp.js → chunk-6jtjcvnc.js} +60 -46
- package/dist/{chunk-4x3zm541.js → chunk-9gg1w4aa.js} +353 -434
- package/dist/{chunk-m406nanz.js → chunk-a44ebqzx.js} +6 -6
- package/dist/{chunk-t82w7459.js → chunk-aezq3fyy.js} +69 -218
- package/dist/{chunk-24h0y27w.js → chunk-cw61zyh5.js} +1 -1
- package/dist/{chunk-kk32jckf.js → chunk-ezv4p0zr.js} +4 -4
- package/dist/{chunk-mmd7mjv0.js → chunk-fh58za51.js} +3 -3
- package/dist/{chunk-m079pjdy.js → chunk-hezxa6q5.js} +7 -7
- package/dist/{chunk-vxfajzpz.js → chunk-kq88aaa3.js} +62 -16
- package/dist/{chunk-x44re8th.js → chunk-ksgt1tdc.js} +7 -7
- package/dist/{chunk-t37qzgmb.js → chunk-pj3mer60.js} +4 -4
- package/dist/{chunk-zgraq2y3.js → chunk-qjqa338f.js} +308 -111
- package/dist/{chunk-1nxcn08k.js → chunk-qkjfx2ts.js} +16 -16
- package/dist/{chunk-byg71zra.js → chunk-rz18qefg.js} +7 -7
- package/dist/{chunk-bs5bh8ys.js → chunk-s63fjc69.js} +20 -20
- package/dist/{chunk-mtdz4k32.js → chunk-tspf987k.js} +5 -5
- package/dist/{chunk-8v0t5kzg.js → chunk-v190zzc5.js} +1 -1
- package/dist/{chunk-22z1yemd.js → chunk-wzr1n3zy.js} +11 -5
- package/dist/{chunk-jbjz7b6n.js → chunk-x8sewxzm.js} +106 -106
- package/dist/{chunk-ggmwpwhf.js → chunk-z5f7g1w1.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,
|
|
@@ -264,18 +272,22 @@ import {
|
|
|
264
272
|
decodeJsonStringOption,
|
|
265
273
|
encodeJsonStringSync,
|
|
266
274
|
encodePrettyJsonString
|
|
267
|
-
} from "./chunk-
|
|
275
|
+
} from "./chunk-qjqa338f.js";
|
|
268
276
|
import {
|
|
269
277
|
map,
|
|
270
278
|
makeEquivalence,
|
|
271
279
|
toNumber,
|
|
272
280
|
bytes,
|
|
281
|
+
join,
|
|
282
|
+
interrupt,
|
|
283
|
+
getCurrent,
|
|
284
|
+
runIn,
|
|
273
285
|
BadArgument,
|
|
274
286
|
systemError,
|
|
275
287
|
badArgument,
|
|
276
|
-
|
|
277
|
-
make7,
|
|
288
|
+
makeUnsafe,
|
|
278
289
|
make8,
|
|
290
|
+
make9,
|
|
279
291
|
sliding,
|
|
280
292
|
unbounded2,
|
|
281
293
|
offer,
|
|
@@ -285,14 +297,12 @@ import {
|
|
|
285
297
|
endUnsafe,
|
|
286
298
|
take,
|
|
287
299
|
poll,
|
|
288
|
-
|
|
300
|
+
makeUnsafe2,
|
|
289
301
|
fromTransform,
|
|
290
302
|
mapDone,
|
|
291
303
|
isSink,
|
|
292
304
|
fromChannel,
|
|
293
305
|
drain,
|
|
294
|
-
make9,
|
|
295
|
-
get3,
|
|
296
306
|
isStream,
|
|
297
307
|
fromChannel2,
|
|
298
308
|
callback,
|
|
@@ -332,7 +342,7 @@ import {
|
|
|
332
342
|
String2,
|
|
333
343
|
optionalEnv,
|
|
334
344
|
harnessesUnsupportedInSrt2
|
|
335
|
-
} from "./chunk-
|
|
345
|
+
} from "./chunk-aezq3fyy.js";
|
|
336
346
|
import {
|
|
337
347
|
isDateTime,
|
|
338
348
|
Numeric,
|
|
@@ -345,251 +355,25 @@ import {
|
|
|
345
355
|
SecretScope,
|
|
346
356
|
SecretHosts,
|
|
347
357
|
isSecretReference
|
|
348
|
-
} from "./chunk-
|
|
358
|
+
} from "./chunk-0tjg9eya.js";
|
|
349
359
|
import {
|
|
360
|
+
isRedacted,
|
|
361
|
+
make,
|
|
362
|
+
value,
|
|
350
363
|
ExitCode,
|
|
351
364
|
ProcessId,
|
|
352
365
|
makeHandle,
|
|
353
|
-
|
|
366
|
+
make2,
|
|
354
367
|
ChildProcessSpawner,
|
|
355
368
|
display,
|
|
356
|
-
|
|
369
|
+
make3,
|
|
357
370
|
parseFdName,
|
|
358
371
|
fdName
|
|
359
|
-
} from "./chunk-
|
|
372
|
+
} from "./chunk-kq88aaa3.js";
|
|
373
|
+
|
|
360
374
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
|
|
361
375
|
var makeEquivalence3 = Tuple;
|
|
362
376
|
|
|
363
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Clock.js
|
|
364
|
-
var Clock = ClockRef;
|
|
365
|
-
var currentTimeMillis = currentTimeMillis2;
|
|
366
|
-
|
|
367
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/dateTime.js
|
|
368
|
-
var TypeId = "~effect/DateTime";
|
|
369
|
-
var TimeZoneTypeId = "~effect/DateTime/TimeZone";
|
|
370
|
-
var Proto = {
|
|
371
|
-
[TypeId]: TypeId,
|
|
372
|
-
pipe() {
|
|
373
|
-
return pipeArguments(this, arguments);
|
|
374
|
-
},
|
|
375
|
-
[NodeInspectSymbol]() {
|
|
376
|
-
return this.toString();
|
|
377
|
-
},
|
|
378
|
-
toJSON() {
|
|
379
|
-
return toDateUtc(this).toJSON();
|
|
380
|
-
}
|
|
381
|
-
};
|
|
382
|
-
var ProtoUtc = {
|
|
383
|
-
...Proto,
|
|
384
|
-
_tag: "Utc",
|
|
385
|
-
[symbol]() {
|
|
386
|
-
return number(this.epochMilliseconds);
|
|
387
|
-
},
|
|
388
|
-
[symbol2](that) {
|
|
389
|
-
return isDateTime2(that) && that._tag === "Utc" && this.epochMilliseconds === that.epochMilliseconds;
|
|
390
|
-
},
|
|
391
|
-
toString() {
|
|
392
|
-
return `DateTime.Utc(${toDateUtc(this).toJSON()})`;
|
|
393
|
-
}
|
|
394
|
-
};
|
|
395
|
-
var ProtoZoned = {
|
|
396
|
-
...Proto,
|
|
397
|
-
_tag: "Zoned",
|
|
398
|
-
[symbol]() {
|
|
399
|
-
return combine(number(this.epochMilliseconds))(hash(this.zone));
|
|
400
|
-
},
|
|
401
|
-
[symbol2](that) {
|
|
402
|
-
return isDateTime2(that) && that._tag === "Zoned" && this.epochMilliseconds === that.epochMilliseconds && equals(this.zone, that.zone);
|
|
403
|
-
},
|
|
404
|
-
toString() {
|
|
405
|
-
return `DateTime.Zoned(${formatIsoZoned(this)})`;
|
|
406
|
-
}
|
|
407
|
-
};
|
|
408
|
-
var ProtoTimeZone = {
|
|
409
|
-
[TimeZoneTypeId]: TimeZoneTypeId,
|
|
410
|
-
[NodeInspectSymbol]() {
|
|
411
|
-
return this.toString();
|
|
412
|
-
}
|
|
413
|
-
};
|
|
414
|
-
var ProtoTimeZoneNamed = {
|
|
415
|
-
...ProtoTimeZone,
|
|
416
|
-
_tag: "Named",
|
|
417
|
-
[symbol]() {
|
|
418
|
-
return string(`Named:${this.id}`);
|
|
419
|
-
},
|
|
420
|
-
[symbol2](that) {
|
|
421
|
-
return isTimeZone(that) && that._tag === "Named" && this.id === that.id;
|
|
422
|
-
},
|
|
423
|
-
toString() {
|
|
424
|
-
return `TimeZone.Named(${this.id})`;
|
|
425
|
-
},
|
|
426
|
-
toJSON() {
|
|
427
|
-
return {
|
|
428
|
-
_id: "TimeZone",
|
|
429
|
-
_tag: "Named",
|
|
430
|
-
id: this.id
|
|
431
|
-
};
|
|
432
|
-
}
|
|
433
|
-
};
|
|
434
|
-
var ProtoTimeZoneOffset = {
|
|
435
|
-
...ProtoTimeZone,
|
|
436
|
-
_tag: "Offset",
|
|
437
|
-
[symbol]() {
|
|
438
|
-
return string(`Offset:${this.offset}`);
|
|
439
|
-
},
|
|
440
|
-
[symbol2](that) {
|
|
441
|
-
return isTimeZone(that) && that._tag === "Offset" && this.offset === that.offset;
|
|
442
|
-
},
|
|
443
|
-
toString() {
|
|
444
|
-
return `TimeZone.Offset(${offsetToString(this.offset)})`;
|
|
445
|
-
},
|
|
446
|
-
toJSON() {
|
|
447
|
-
return {
|
|
448
|
-
_id: "TimeZone",
|
|
449
|
-
_tag: "Offset",
|
|
450
|
-
offset: this.offset
|
|
451
|
-
};
|
|
452
|
-
}
|
|
453
|
-
};
|
|
454
|
-
var cacheSlot = {
|
|
455
|
-
value: undefined,
|
|
456
|
-
enumerable: false,
|
|
457
|
-
writable: true
|
|
458
|
-
};
|
|
459
|
-
var sealedCaches = /* @__PURE__ */ new WeakMap;
|
|
460
|
-
var cacheAccessor = (key, slots) => ({
|
|
461
|
-
get() {
|
|
462
|
-
return Object.isExtensible(this) ? undefined : sealedCaches.get(this)?.[key];
|
|
463
|
-
},
|
|
464
|
-
set(value) {
|
|
465
|
-
if (Object.isExtensible(this)) {
|
|
466
|
-
for (const slot of slots) {
|
|
467
|
-
Object.defineProperty(this, slot, cacheSlot);
|
|
468
|
-
}
|
|
469
|
-
this[key] = value;
|
|
470
|
-
} else {
|
|
471
|
-
let caches = sealedCaches.get(this);
|
|
472
|
-
if (caches === undefined) {
|
|
473
|
-
caches = {};
|
|
474
|
-
sealedCaches.set(this, caches);
|
|
475
|
-
}
|
|
476
|
-
caches[key] = value;
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
});
|
|
480
|
-
var zonedSlots = ["partsUtc", "adjustedEpochMilliseconds", "partsAdjusted"];
|
|
481
|
-
Object.defineProperty(ProtoUtc, "partsUtc", cacheAccessor("partsUtc", ["partsUtc"]));
|
|
482
|
-
Object.defineProperties(ProtoZoned, {
|
|
483
|
-
partsUtc: cacheAccessor("partsUtc", zonedSlots),
|
|
484
|
-
adjustedEpochMilliseconds: cacheAccessor("adjustedEpochMilliseconds", zonedSlots),
|
|
485
|
-
partsAdjusted: cacheAccessor("partsAdjusted", zonedSlots)
|
|
486
|
-
});
|
|
487
|
-
var isDateTime2 = (u) => hasProperty(u, TypeId);
|
|
488
|
-
var isTimeZone = (u) => hasProperty(u, TimeZoneTypeId);
|
|
489
|
-
var makeUtc = (epochMillis) => {
|
|
490
|
-
const self = Object.create(ProtoUtc);
|
|
491
|
-
self.epochMilliseconds = epochMillis;
|
|
492
|
-
return self;
|
|
493
|
-
};
|
|
494
|
-
var fromDateUnsafe = (date) => {
|
|
495
|
-
const epochMillis = date.getTime();
|
|
496
|
-
if (Number.isNaN(epochMillis)) {
|
|
497
|
-
throw new IllegalArgumentError("Invalid date");
|
|
498
|
-
}
|
|
499
|
-
return makeUtc(epochMillis);
|
|
500
|
-
};
|
|
501
|
-
var makeUnsafe6 = (input) => {
|
|
502
|
-
if (isDateTime2(input)) {
|
|
503
|
-
return input;
|
|
504
|
-
} else if (input instanceof Date) {
|
|
505
|
-
return fromDateUnsafe(input);
|
|
506
|
-
} else if (typeof input === "object") {
|
|
507
|
-
if ("epochMilliseconds" in input) {
|
|
508
|
-
return fromDateUnsafe(new Date(input.epochMilliseconds));
|
|
509
|
-
}
|
|
510
|
-
const date = new Date(0);
|
|
511
|
-
setPartsDate(date, input);
|
|
512
|
-
return fromDateUnsafe(date);
|
|
513
|
-
} else if (typeof input === "string" && !hasZone(input)) {
|
|
514
|
-
return fromDateUnsafe(new Date(input + "Z"));
|
|
515
|
-
}
|
|
516
|
-
return fromDateUnsafe(new Date(input));
|
|
517
|
-
};
|
|
518
|
-
var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
|
|
519
|
-
var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
|
|
520
|
-
var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
|
|
521
|
-
var make3 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
|
|
522
|
-
var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
|
|
523
|
-
var nowUnsafe = () => makeUtc(Date.now());
|
|
524
|
-
var toDateUtc = (self) => new Date(self.epochMilliseconds);
|
|
525
|
-
var toDate2 = (self) => {
|
|
526
|
-
if (self._tag === "Utc") {
|
|
527
|
-
return new Date(self.epochMilliseconds);
|
|
528
|
-
} else if (self.zone._tag === "Offset") {
|
|
529
|
-
return new Date(self.epochMilliseconds + self.zone.offset);
|
|
530
|
-
} else if (self.adjustedEpochMilliseconds !== undefined) {
|
|
531
|
-
return new Date(self.adjustedEpochMilliseconds);
|
|
532
|
-
}
|
|
533
|
-
let bc = false;
|
|
534
|
-
const parts = self.zone.format.formatToParts(self.epochMilliseconds).filter((_) => {
|
|
535
|
-
if (_.type === "era") {
|
|
536
|
-
bc = _.value === "BC";
|
|
537
|
-
return false;
|
|
538
|
-
}
|
|
539
|
-
return _.type !== "literal";
|
|
540
|
-
});
|
|
541
|
-
const year = Number(parts[2].value);
|
|
542
|
-
const date = new Date(0);
|
|
543
|
-
date.setUTCFullYear(bc ? 1 - year : year, Number(parts[0].value) - 1, Number(parts[1].value));
|
|
544
|
-
date.setUTCHours(Number(parts[3].value), Number(parts[4].value), Number(parts[5].value), parts[6]?.type === "fractionalSecond" ? Number(parts[6].value) : (self.epochMilliseconds % 1000 + 1000) % 1000);
|
|
545
|
-
self.adjustedEpochMilliseconds = date.getTime();
|
|
546
|
-
return date;
|
|
547
|
-
};
|
|
548
|
-
var zonedOffset = (self) => {
|
|
549
|
-
const date = toDate2(self);
|
|
550
|
-
return date.getTime() - toEpochMillis(self);
|
|
551
|
-
};
|
|
552
|
-
var offsetToString = (offset) => {
|
|
553
|
-
const abs = Math.abs(offset);
|
|
554
|
-
let hours = Math.floor(abs / (60 * 60 * 1000));
|
|
555
|
-
let minutes = Math.round(abs % (60 * 60 * 1000) / (60 * 1000));
|
|
556
|
-
if (minutes === 60) {
|
|
557
|
-
hours += 1;
|
|
558
|
-
minutes = 0;
|
|
559
|
-
}
|
|
560
|
-
return `${offset < 0 ? "-" : "+"}${String(hours).padStart(2, "0")}:${String(minutes).padStart(2, "0")}`;
|
|
561
|
-
};
|
|
562
|
-
var zonedOffsetIso = (self) => offsetToString(zonedOffset(self));
|
|
563
|
-
var toEpochMillis = (self) => self.epochMilliseconds;
|
|
564
|
-
var setPartsDate = (date, parts) => {
|
|
565
|
-
if (parts.year !== undefined || parts.month !== undefined || parts.day !== undefined) {
|
|
566
|
-
date.setUTCFullYear(parts.year ?? date.getUTCFullYear(), parts.month !== undefined ? parts.month - 1 : date.getUTCMonth(), parts.day ?? date.getUTCDate());
|
|
567
|
-
}
|
|
568
|
-
if (parts.weekDay !== undefined) {
|
|
569
|
-
const diff = parts.weekDay - date.getUTCDay();
|
|
570
|
-
date.setUTCDate(date.getUTCDate() + diff);
|
|
571
|
-
}
|
|
572
|
-
if (parts.hour !== undefined) {
|
|
573
|
-
date.setUTCHours(parts.hour);
|
|
574
|
-
}
|
|
575
|
-
if (parts.minute !== undefined) {
|
|
576
|
-
date.setUTCMinutes(parts.minute);
|
|
577
|
-
}
|
|
578
|
-
if (parts.second !== undefined) {
|
|
579
|
-
date.setUTCSeconds(parts.second);
|
|
580
|
-
}
|
|
581
|
-
if (parts.millisecond !== undefined) {
|
|
582
|
-
date.setUTCMilliseconds(parts.millisecond);
|
|
583
|
-
}
|
|
584
|
-
};
|
|
585
|
-
var constDayMillis = 24 * 60 * 60 * 1000;
|
|
586
|
-
var formatIso2 = (self) => toDateUtc(self).toISOString();
|
|
587
|
-
var formatIsoOffset = (self) => {
|
|
588
|
-
const date = toDate2(self);
|
|
589
|
-
return self._tag === "Utc" ? date.toISOString() : `${date.toISOString().slice(0, -1)}${zonedOffsetIso(self)}`;
|
|
590
|
-
};
|
|
591
|
-
var formatIsoZoned = (self) => self.zone._tag === "Offset" ? formatIsoOffset(self) : `${formatIsoOffset(self)}[${self.zone.id}]`;
|
|
592
|
-
|
|
593
377
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Metric.js
|
|
594
378
|
var CurrentMetricAttributesKey = "effect/Metric/CurrentMetricAttributes";
|
|
595
379
|
var CurrentMetricAttributes = /* @__PURE__ */ Reference(CurrentMetricAttributesKey, {
|
|
@@ -599,10 +383,10 @@ var MetricRegistryKey = "effect/Metric/MetricRegistry";
|
|
|
599
383
|
var MetricRegistry = /* @__PURE__ */ Reference(MetricRegistryKey, {
|
|
600
384
|
defaultValue: () => new Map
|
|
601
385
|
});
|
|
602
|
-
var
|
|
386
|
+
var TypeId = "~effect/Metric";
|
|
603
387
|
|
|
604
388
|
class Metric$ {
|
|
605
|
-
[
|
|
389
|
+
[TypeId] = TypeId;
|
|
606
390
|
#extraAttributes;
|
|
607
391
|
#mergedAttributes;
|
|
608
392
|
#key = "";
|
|
@@ -625,7 +409,7 @@ class Metric$ {
|
|
|
625
409
|
}
|
|
626
410
|
hook(context) {
|
|
627
411
|
const key = this.key(context);
|
|
628
|
-
const registry =
|
|
412
|
+
const registry = get3(context, MetricRegistry);
|
|
629
413
|
let metadata = registry.get(key);
|
|
630
414
|
if (isUndefined(metadata)) {
|
|
631
415
|
metadata = this.metadata(this.createHooks());
|
|
@@ -634,11 +418,11 @@ class Metric$ {
|
|
|
634
418
|
return metadata.hooks;
|
|
635
419
|
}
|
|
636
420
|
removeUnsafe(context) {
|
|
637
|
-
|
|
421
|
+
get3(context, MetricRegistry).delete(this.key(context));
|
|
638
422
|
}
|
|
639
423
|
registerUnsafe(context, hooks) {
|
|
640
424
|
const key = this.key(context);
|
|
641
|
-
const registry =
|
|
425
|
+
const registry = get3(context, MetricRegistry);
|
|
642
426
|
const metadata = this.metadata({
|
|
643
427
|
get: hooks.get,
|
|
644
428
|
update: constVoid,
|
|
@@ -654,7 +438,7 @@ class Metric$ {
|
|
|
654
438
|
};
|
|
655
439
|
}
|
|
656
440
|
key(context) {
|
|
657
|
-
const extraAttributes =
|
|
441
|
+
const extraAttributes = get3(context, CurrentMetricAttributes);
|
|
658
442
|
if (extraAttributes !== this.#extraAttributes) {
|
|
659
443
|
this.#extraAttributes = extraAttributes;
|
|
660
444
|
const merged = mergeAttributes(this.attributes, extraAttributes);
|
|
@@ -897,14 +681,147 @@ var runMain2 = /* @__PURE__ */ makeRunMain(({
|
|
|
897
681
|
// node_modules/.bun/@effect+platform-bun@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-bun/dist/BunRuntime.js
|
|
898
682
|
var runMain = runMain2;
|
|
899
683
|
|
|
900
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/
|
|
901
|
-
var
|
|
902
|
-
var
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
var
|
|
906
|
-
|
|
907
|
-
|
|
684
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
|
|
685
|
+
var TypeId2 = "~effect/RcRef";
|
|
686
|
+
var stateEmpty = {
|
|
687
|
+
_tag: "Empty"
|
|
688
|
+
};
|
|
689
|
+
var stateClosed = {
|
|
690
|
+
_tag: "Closed"
|
|
691
|
+
};
|
|
692
|
+
var variance = {
|
|
693
|
+
_A: identity,
|
|
694
|
+
_E: identity
|
|
695
|
+
};
|
|
696
|
+
|
|
697
|
+
class RcRefImpl {
|
|
698
|
+
[TypeId2] = variance;
|
|
699
|
+
pipe() {
|
|
700
|
+
return pipeArguments(this, arguments);
|
|
701
|
+
}
|
|
702
|
+
state = stateEmpty;
|
|
703
|
+
acquire;
|
|
704
|
+
context;
|
|
705
|
+
scope;
|
|
706
|
+
idleTimeToLive;
|
|
707
|
+
constructor(acquire, context, scope, idleTimeToLive) {
|
|
708
|
+
this.acquire = acquire;
|
|
709
|
+
this.context = context;
|
|
710
|
+
this.scope = scope;
|
|
711
|
+
this.idleTimeToLive = idleTimeToLive;
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
var make4 = (options) => withFiber2((fiber) => {
|
|
715
|
+
const context = fiber.context;
|
|
716
|
+
const scope = get3(context, Scope);
|
|
717
|
+
const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
|
|
718
|
+
return as(addFinalizerExit(scope, () => {
|
|
719
|
+
const state = ref.state;
|
|
720
|
+
ref.state = stateClosed;
|
|
721
|
+
if (state._tag === "Acquired")
|
|
722
|
+
return close(state.scope, void_2);
|
|
723
|
+
if (state._tag === "Acquiring")
|
|
724
|
+
return interrupt(state.fiber);
|
|
725
|
+
return void_3;
|
|
726
|
+
}), ref);
|
|
727
|
+
});
|
|
728
|
+
var getState = (self, restore) => {
|
|
729
|
+
switch (self.state._tag) {
|
|
730
|
+
case "Closed": {
|
|
731
|
+
return interrupt3;
|
|
732
|
+
}
|
|
733
|
+
case "Acquired": {
|
|
734
|
+
const state = self.state;
|
|
735
|
+
state.refCount++;
|
|
736
|
+
return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
|
|
737
|
+
}
|
|
738
|
+
case "Acquiring": {
|
|
739
|
+
const state = self.state;
|
|
740
|
+
state.awaiters++;
|
|
741
|
+
return awaitAcquiring(self, state, restore);
|
|
742
|
+
}
|
|
743
|
+
case "Empty": {
|
|
744
|
+
const acquiring = {
|
|
745
|
+
_tag: "Acquiring",
|
|
746
|
+
fiber: undefined,
|
|
747
|
+
awaiters: 1,
|
|
748
|
+
acquired: undefined
|
|
749
|
+
};
|
|
750
|
+
self.state = acquiring;
|
|
751
|
+
const scope = makeUnsafe5();
|
|
752
|
+
const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
|
|
753
|
+
if (self.state !== acquiring) {
|
|
754
|
+
return interrupt3;
|
|
755
|
+
}
|
|
756
|
+
const state = {
|
|
757
|
+
_tag: "Acquired",
|
|
758
|
+
value,
|
|
759
|
+
scope,
|
|
760
|
+
fiber: undefined,
|
|
761
|
+
refCount: acquiring.awaiters,
|
|
762
|
+
invalidated: false
|
|
763
|
+
};
|
|
764
|
+
self.state = state;
|
|
765
|
+
acquiring.acquired = state;
|
|
766
|
+
return succeed6(state);
|
|
767
|
+
}), onExit((exit) => {
|
|
768
|
+
if (isSuccess2(exit))
|
|
769
|
+
return void_3;
|
|
770
|
+
if (self.state === acquiring)
|
|
771
|
+
self.state = stateEmpty;
|
|
772
|
+
return close(scope, exit);
|
|
773
|
+
}));
|
|
774
|
+
acquiring.fiber = runForkWith(getCurrent().context)(acquire);
|
|
775
|
+
return awaitAcquiring(self, acquiring, restore);
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
};
|
|
779
|
+
var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
|
|
780
|
+
const acquired = acquiring.acquired;
|
|
781
|
+
if (acquired !== undefined) {
|
|
782
|
+
return isFailure2(exit) ? release(self, acquired) : void_3;
|
|
783
|
+
}
|
|
784
|
+
if (--acquiring.awaiters > 0 || self.state !== acquiring)
|
|
785
|
+
return void_3;
|
|
786
|
+
self.state = stateEmpty;
|
|
787
|
+
return interrupt(acquiring.fiber);
|
|
788
|
+
});
|
|
789
|
+
var get4 = (self_) => {
|
|
790
|
+
const self = self_;
|
|
791
|
+
return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
|
|
792
|
+
};
|
|
793
|
+
var release = (self, state) => {
|
|
794
|
+
state.refCount--;
|
|
795
|
+
if (state.refCount > 0) {
|
|
796
|
+
return void_3;
|
|
797
|
+
}
|
|
798
|
+
const idleTimeToLive = self.idleTimeToLive;
|
|
799
|
+
if (idleTimeToLive === undefined || state.invalidated) {
|
|
800
|
+
if (self.state === state) {
|
|
801
|
+
self.state = stateEmpty;
|
|
802
|
+
}
|
|
803
|
+
return close(state.scope, void_2);
|
|
804
|
+
} else if (!isFinite(idleTimeToLive)) {
|
|
805
|
+
return void_3;
|
|
806
|
+
}
|
|
807
|
+
state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
|
|
808
|
+
if (self.state === state && state.refCount === 0) {
|
|
809
|
+
self.state = stateEmpty;
|
|
810
|
+
return ignoreCause(close(state.scope, void_2), {
|
|
811
|
+
log: "Unhandled",
|
|
812
|
+
message: "Unhandled error in RcRef finalizer"
|
|
813
|
+
});
|
|
814
|
+
}
|
|
815
|
+
return void_3;
|
|
816
|
+
})).pipe(ensuring2(sync2(() => {
|
|
817
|
+
state.fiber = undefined;
|
|
818
|
+
})), runForkWith(self.context), runIn(self.scope));
|
|
819
|
+
return void_3;
|
|
820
|
+
};
|
|
821
|
+
|
|
822
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
|
|
823
|
+
var make18 = make4;
|
|
824
|
+
var get5 = get4;
|
|
908
825
|
|
|
909
826
|
// node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeChildProcessSpawner.js
|
|
910
827
|
import * as NodeChildProcess from "child_process";
|
|
@@ -1020,8 +937,8 @@ var releaseWritable = (writable) => callback3((resume) => {
|
|
|
1020
937
|
});
|
|
1021
938
|
var pullIntoWritable = (options) => withFiber2((fiber) => {
|
|
1022
939
|
const dispatcher = fiber.currentDispatcher;
|
|
1023
|
-
const completion =
|
|
1024
|
-
const failure =
|
|
940
|
+
const completion = makeUnsafe4();
|
|
941
|
+
const failure = makeUnsafe4();
|
|
1025
942
|
const onError = (error) => doneUnsafe(failure, failSync(() => options.onError(error)));
|
|
1026
943
|
let errorEmitted = false;
|
|
1027
944
|
const onStreamError = (error) => {
|
|
@@ -1114,8 +1031,8 @@ var readableToPullUnsafe = (options) => {
|
|
|
1114
1031
|
const readable = options.readable;
|
|
1115
1032
|
const chunkSize = options.chunkSize ?? 4096;
|
|
1116
1033
|
const closeOnDone = options.closeOnDone ?? true;
|
|
1117
|
-
const exit = options.exit ??
|
|
1118
|
-
const latch = options.latch ??
|
|
1034
|
+
const exit = options.exit ?? make8(undefined);
|
|
1035
|
+
const latch = options.latch ?? makeUnsafe(false);
|
|
1119
1036
|
function onReadable() {
|
|
1120
1037
|
latch.openUnsafe();
|
|
1121
1038
|
}
|
|
@@ -1345,7 +1262,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1345
1262
|
});
|
|
1346
1263
|
}
|
|
1347
1264
|
if (stream) {
|
|
1348
|
-
return
|
|
1265
|
+
return map7(runInputStream(stream, sink, inputFailure), () => {
|
|
1349
1266
|
inputSinks.set(fd, sink);
|
|
1350
1267
|
});
|
|
1351
1268
|
}
|
|
@@ -1451,7 +1368,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1451
1368
|
};
|
|
1452
1369
|
};
|
|
1453
1370
|
const spawn2 = (command, spawnOptions) => callback3((resume) => {
|
|
1454
|
-
const deferred =
|
|
1371
|
+
const deferred = makeUnsafe4();
|
|
1455
1372
|
const handle = NodeChildProcess.spawn(command.command, command.args.map(unwrap2), spawnOptions);
|
|
1456
1373
|
handle.on("error", (error) => {
|
|
1457
1374
|
if (command.args.some(isRedacted)) {
|
|
@@ -1627,7 +1544,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1627
1544
|
}
|
|
1628
1545
|
return reref;
|
|
1629
1546
|
});
|
|
1630
|
-
const inputFailure =
|
|
1547
|
+
const inputFailure = makeUnsafe4();
|
|
1631
1548
|
const stdin = yield* setupChildStdin(cmd, childProcess, stdinConfig, inputFailure);
|
|
1632
1549
|
const {
|
|
1633
1550
|
all,
|
|
@@ -1638,7 +1555,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1638
1555
|
getInputFd,
|
|
1639
1556
|
getOutputFd
|
|
1640
1557
|
} = yield* setupAdditionalFds(cmd, childProcess, resolvedAdditionalFds, inputFailure);
|
|
1641
|
-
const isRunning =
|
|
1558
|
+
const isRunning = map7(isDone(exitSignal), (done) => !done);
|
|
1642
1559
|
const exitCode = flatMap3(raceFirst(_await(exitSignal), _await(inputFailure)), ([code, signal]) => {
|
|
1643
1560
|
if (isDoneUnsafe(inputFailure)) {
|
|
1644
1561
|
return _await(inputFailure);
|
|
@@ -1678,7 +1595,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1678
1595
|
const sourceStream = unwrap(succeed6(getSourceStream(handles[handles.length - 1], options.from)));
|
|
1679
1596
|
const toOption = options.to ?? "stdin";
|
|
1680
1597
|
if (toOption === "stdin") {
|
|
1681
|
-
handles.push(yield* spawnCommand(
|
|
1598
|
+
handles.push(yield* spawnCommand(make3(command.command, command.args, {
|
|
1682
1599
|
...command.options,
|
|
1683
1600
|
stdin: {
|
|
1684
1601
|
...stdinConfig,
|
|
@@ -1698,7 +1615,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1698
1615
|
type: "input",
|
|
1699
1616
|
stream: sourceStream
|
|
1700
1617
|
};
|
|
1701
|
-
handles.push(yield* spawnCommand(
|
|
1618
|
+
handles.push(yield* spawnCommand(make3(command.command, command.args, {
|
|
1702
1619
|
...command.options,
|
|
1703
1620
|
additionalFds: {
|
|
1704
1621
|
...existingFds,
|
|
@@ -1706,7 +1623,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1706
1623
|
}
|
|
1707
1624
|
})));
|
|
1708
1625
|
} else {
|
|
1709
|
-
handles.push(yield* spawnCommand(
|
|
1626
|
+
handles.push(yield* spawnCommand(make3(command.command, command.args, {
|
|
1710
1627
|
...command.options,
|
|
1711
1628
|
stdin: {
|
|
1712
1629
|
...stdinConfig,
|
|
@@ -1745,7 +1662,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1745
1662
|
}
|
|
1746
1663
|
}
|
|
1747
1664
|
});
|
|
1748
|
-
return
|
|
1665
|
+
return make2(spawnCommand);
|
|
1749
1666
|
});
|
|
1750
1667
|
var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
|
|
1751
1668
|
var flattenCommand = (command) => {
|
|
@@ -1919,7 +1836,7 @@ var noFollowFlags = (method, flag) => suspend3(() => {
|
|
|
1919
1836
|
var openFactory = (method) => {
|
|
1920
1837
|
const nodeOpen = effectify(NFS.open, handleErrnoException("FileSystem", method), handleBadArgument(method));
|
|
1921
1838
|
const nodeClose = effectify(NFS.close, handleErrnoException("FileSystem", method), handleBadArgument(method));
|
|
1922
|
-
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))),
|
|
1839
|
+
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)));
|
|
1923
1840
|
};
|
|
1924
1841
|
var open2 = /* @__PURE__ */ openFactory("open");
|
|
1925
1842
|
var negativePosition = (method) => badArgument({
|
|
@@ -1980,7 +1897,7 @@ var makeFile = /* @__PURE__ */ (() => {
|
|
|
1980
1897
|
});
|
|
1981
1898
|
}
|
|
1982
1899
|
const position = this.position;
|
|
1983
|
-
return
|
|
1900
|
+
return map7(nodeRead(this.fd, {
|
|
1984
1901
|
buffer,
|
|
1985
1902
|
position
|
|
1986
1903
|
}), (bytesRead) => {
|
|
@@ -2001,7 +1918,7 @@ var makeFile = /* @__PURE__ */ (() => {
|
|
|
2001
1918
|
}
|
|
2002
1919
|
const buffer = Buffer.allocUnsafeSlow(size);
|
|
2003
1920
|
const position = explicit ?? this.position;
|
|
2004
|
-
return
|
|
1921
|
+
return map7(nodeReadAlloc(this.fd, {
|
|
2005
1922
|
buffer,
|
|
2006
1923
|
position
|
|
2007
1924
|
}), (bytesRead) => {
|
|
@@ -2024,7 +1941,7 @@ var makeFile = /* @__PURE__ */ (() => {
|
|
|
2024
1941
|
});
|
|
2025
1942
|
}
|
|
2026
1943
|
truncate(length) {
|
|
2027
|
-
return
|
|
1944
|
+
return map7(nodeTruncate(this.fd, length || undefined), () => {
|
|
2028
1945
|
if (!this.append) {
|
|
2029
1946
|
const len = BigInt(length ?? 0);
|
|
2030
1947
|
if (this.position > len) {
|
|
@@ -2036,7 +1953,7 @@ var makeFile = /* @__PURE__ */ (() => {
|
|
|
2036
1953
|
write(buffer) {
|
|
2037
1954
|
return suspend3(() => {
|
|
2038
1955
|
const position = this.position;
|
|
2039
|
-
return flatMap3(this.append ? succeed6(undefined) : positionToNumber(position, "write"), (nodePosition) =>
|
|
1956
|
+
return flatMap3(this.append ? succeed6(undefined) : positionToNumber(position, "write"), (nodePosition) => map7(nodeWrite(this.fd, buffer, undefined, undefined, nodePosition), (bytesWritten) => {
|
|
2040
1957
|
if (!this.append) {
|
|
2041
1958
|
this.position = position + BigInt(bytesWritten);
|
|
2042
1959
|
}
|
|
@@ -2098,7 +2015,7 @@ var readDirectoryEntries = (path) => tryPromise({
|
|
|
2098
2015
|
withFileTypes: true
|
|
2099
2016
|
}),
|
|
2100
2017
|
catch: (err) => handleErrnoException("FileSystem", "readDirectoryEntries")(err, [path])
|
|
2101
|
-
}).pipe(
|
|
2018
|
+
}).pipe(map7((entries) => entries.map((entry) => ({
|
|
2102
2019
|
name: entry.name,
|
|
2103
2020
|
type: fileType(entry)
|
|
2104
2021
|
}))));
|
|
@@ -2213,7 +2130,7 @@ var watchNode = (path, info, options) => callback((queue) => acquireRelease(sync
|
|
|
2213
2130
|
});
|
|
2214
2131
|
return watcher;
|
|
2215
2132
|
}), (watcher) => sync2(() => watcher.close())).pipe(tap2(() => sync2(() => options?.onReady?.()))));
|
|
2216
|
-
var watch2 = (backend, path, options) => all3([stat2(path), serviceOption(WatchBackend)]).pipe(
|
|
2133
|
+
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);
|
|
2217
2134
|
var writeFile2 = (path, data, options) => callback3((resume, signal) => {
|
|
2218
2135
|
try {
|
|
2219
2136
|
NFS.writeFile(path, data, {
|
|
@@ -2231,7 +2148,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
|
|
|
2231
2148
|
resume(fail7(handleBadArgument("writeFile")(err)));
|
|
2232
2149
|
}
|
|
2233
2150
|
});
|
|
2234
|
-
var makeFileSystem = /* @__PURE__ */
|
|
2151
|
+
var makeFileSystem = /* @__PURE__ */ map7(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make11({
|
|
2235
2152
|
access: access2,
|
|
2236
2153
|
chmod: chmod2,
|
|
2237
2154
|
chown: chown2,
|
|
@@ -2558,7 +2475,7 @@ var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCry
|
|
|
2558
2475
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
|
|
2559
2476
|
var TypeId4 = "~effect/http/Cookies";
|
|
2560
2477
|
var CookieTypeId = "~effect/http/Cookies/Cookie";
|
|
2561
|
-
var
|
|
2478
|
+
var Proto = {
|
|
2562
2479
|
[TypeId4]: TypeId4,
|
|
2563
2480
|
...BaseProto,
|
|
2564
2481
|
toJSON() {
|
|
@@ -2572,7 +2489,7 @@ var Proto2 = {
|
|
|
2572
2489
|
}
|
|
2573
2490
|
};
|
|
2574
2491
|
var fromReadonlyRecord = (cookies) => {
|
|
2575
|
-
const self = Object.create(
|
|
2492
|
+
const self = Object.create(Proto);
|
|
2576
2493
|
self.cookies = cookies;
|
|
2577
2494
|
return self;
|
|
2578
2495
|
};
|
|
@@ -2739,13 +2656,13 @@ var tryDecodeURIComponent = (str) => {
|
|
|
2739
2656
|
|
|
2740
2657
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Headers.js
|
|
2741
2658
|
var TypeId5 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
|
|
2742
|
-
var
|
|
2659
|
+
var Proto2 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
|
|
2743
2660
|
[TypeId5]: {
|
|
2744
2661
|
value: TypeId5
|
|
2745
2662
|
},
|
|
2746
2663
|
[symbolRedactable]: {
|
|
2747
2664
|
value(context) {
|
|
2748
|
-
return redact2(this,
|
|
2665
|
+
return redact2(this, get3(context, CurrentRedactedNames));
|
|
2749
2666
|
}
|
|
2750
2667
|
},
|
|
2751
2668
|
toJSON: {
|
|
@@ -2755,7 +2672,7 @@ var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
|
|
|
2755
2672
|
},
|
|
2756
2673
|
[symbol2]: {
|
|
2757
2674
|
value(that) {
|
|
2758
|
-
return
|
|
2675
|
+
return Equivalence(this, that);
|
|
2759
2676
|
}
|
|
2760
2677
|
},
|
|
2761
2678
|
[symbol]: {
|
|
@@ -2770,20 +2687,20 @@ var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
|
|
|
2770
2687
|
value: BaseProto[NodeInspectSymbol]
|
|
2771
2688
|
}
|
|
2772
2689
|
});
|
|
2773
|
-
var make22 = (input) => Object.assign(Object.create(
|
|
2774
|
-
var
|
|
2775
|
-
var empty = /* @__PURE__ */ Object.create(
|
|
2690
|
+
var make22 = (input) => Object.assign(Object.create(Proto2), input);
|
|
2691
|
+
var Equivalence = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
|
|
2692
|
+
var empty = /* @__PURE__ */ Object.create(Proto2);
|
|
2776
2693
|
var fromInput = (input) => {
|
|
2777
2694
|
if (input === undefined) {
|
|
2778
2695
|
return empty;
|
|
2779
2696
|
} else if (Symbol.iterator in input) {
|
|
2780
|
-
const out = Object.create(
|
|
2697
|
+
const out = Object.create(Proto2);
|
|
2781
2698
|
for (const [k, v] of input) {
|
|
2782
2699
|
out[k.toLowerCase()] = v;
|
|
2783
2700
|
}
|
|
2784
2701
|
return out;
|
|
2785
2702
|
}
|
|
2786
|
-
const out = Object.create(
|
|
2703
|
+
const out = Object.create(Proto2);
|
|
2787
2704
|
for (const [k, v] of Object.entries(input)) {
|
|
2788
2705
|
if (Array.isArray(v)) {
|
|
2789
2706
|
out[k.toLowerCase()] = v.join(", ");
|
|
@@ -2793,7 +2710,7 @@ var fromInput = (input) => {
|
|
|
2793
2710
|
}
|
|
2794
2711
|
return out;
|
|
2795
2712
|
};
|
|
2796
|
-
var fromRecordUnsafe = (input) => Object.setPrototypeOf(input,
|
|
2713
|
+
var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto2);
|
|
2797
2714
|
var set = /* @__PURE__ */ dual(3, (self, key, value) => {
|
|
2798
2715
|
const out = make22(self);
|
|
2799
2716
|
out[key.toLowerCase()] = value;
|
|
@@ -2821,12 +2738,12 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
|
2821
2738
|
if (typeof key === "string") {
|
|
2822
2739
|
const k = key.toLowerCase();
|
|
2823
2740
|
if (k in self) {
|
|
2824
|
-
out[k] =
|
|
2741
|
+
out[k] = make(self[k]);
|
|
2825
2742
|
}
|
|
2826
2743
|
} else {
|
|
2827
2744
|
for (const name in self) {
|
|
2828
2745
|
if (name.search(key) !== -1) {
|
|
2829
|
-
out[name] =
|
|
2746
|
+
out[name] = make(self[name]);
|
|
2830
2747
|
}
|
|
2831
2748
|
}
|
|
2832
2749
|
}
|
|
@@ -2868,7 +2785,7 @@ var fromBody = (bytes) => new URLSearchParams(bodyDecoder.decode(bytes).replace(
|
|
|
2868
2785
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/UrlParams.js
|
|
2869
2786
|
var TypeId6 = "~effect/http/UrlParams";
|
|
2870
2787
|
var isUrlParams = (u) => hasProperty(u, TypeId6);
|
|
2871
|
-
var
|
|
2788
|
+
var Proto3 = {
|
|
2872
2789
|
...PipeInspectableProto,
|
|
2873
2790
|
[TypeId6]: TypeId6,
|
|
2874
2791
|
[Symbol.iterator]() {
|
|
@@ -2877,21 +2794,21 @@ var Proto4 = {
|
|
|
2877
2794
|
[symbolRedactable](context) {
|
|
2878
2795
|
return {
|
|
2879
2796
|
_id: "UrlParams",
|
|
2880
|
-
params: Object.fromEntries(redact3(this,
|
|
2797
|
+
params: Object.fromEntries(redact3(this, get3(context, CurrentRedactedNames2)))
|
|
2881
2798
|
};
|
|
2882
2799
|
},
|
|
2883
2800
|
toJSON() {
|
|
2884
2801
|
return redact(this);
|
|
2885
2802
|
},
|
|
2886
2803
|
[symbol2](that) {
|
|
2887
|
-
return
|
|
2804
|
+
return Equivalence2(this, that);
|
|
2888
2805
|
},
|
|
2889
2806
|
[symbol]() {
|
|
2890
2807
|
return array(this.params.flat());
|
|
2891
2808
|
}
|
|
2892
2809
|
};
|
|
2893
2810
|
var make23 = (params) => {
|
|
2894
|
-
const self = Object.create(
|
|
2811
|
+
const self = Object.create(Proto3);
|
|
2895
2812
|
self.params = params;
|
|
2896
2813
|
return self;
|
|
2897
2814
|
};
|
|
@@ -2933,7 +2850,7 @@ var fromInputNested = (input) => {
|
|
|
2933
2850
|
return out;
|
|
2934
2851
|
};
|
|
2935
2852
|
var coerce = (value) => isRedacted(value) ? value : String(value);
|
|
2936
|
-
var
|
|
2853
|
+
var Equivalence2 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
|
|
2937
2854
|
var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
|
|
2938
2855
|
var empty4 = /* @__PURE__ */ make23([]);
|
|
2939
2856
|
var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
@@ -2952,7 +2869,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
|
2952
2869
|
var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
|
|
2953
2870
|
var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
2954
2871
|
const patterns = Array.isArray(key) ? key : [key];
|
|
2955
|
-
return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ?
|
|
2872
|
+
return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make(value) : value]);
|
|
2956
2873
|
});
|
|
2957
2874
|
var isRedactedName2 = isRedactedName;
|
|
2958
2875
|
var redactUrl = (url, redactedNames = currentRedactedNames()) => {
|
|
@@ -3003,7 +2920,7 @@ var decodeQueryKey = (key) => {
|
|
|
3003
2920
|
return key;
|
|
3004
2921
|
}
|
|
3005
2922
|
};
|
|
3006
|
-
var currentRedactedNames = () =>
|
|
2923
|
+
var currentRedactedNames = () => get3(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
|
|
3007
2924
|
var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
|
|
3008
2925
|
defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
|
|
3009
2926
|
});
|
|
@@ -3028,7 +2945,7 @@ import * as readline from "readline";
|
|
|
3028
2945
|
var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
|
|
3029
2946
|
const stdin = process.stdin;
|
|
3030
2947
|
const stdout = process.stdout;
|
|
3031
|
-
const lines = yield*
|
|
2948
|
+
const lines = yield* make9();
|
|
3032
2949
|
let inputEnded = stdin.readableEnded;
|
|
3033
2950
|
let readlineActive = false;
|
|
3034
2951
|
const onStdinEnd = () => {
|
|
@@ -3039,7 +2956,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3039
2956
|
};
|
|
3040
2957
|
stdin.once("end", onStdinEnd);
|
|
3041
2958
|
yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
|
|
3042
|
-
const rlRef = yield*
|
|
2959
|
+
const rlRef = yield* make18({
|
|
3043
2960
|
acquire: acquireRelease(sync2(() => {
|
|
3044
2961
|
const rl = readline.createInterface({
|
|
3045
2962
|
input: stdin,
|
|
@@ -3078,7 +2995,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3078
2995
|
if (stdin.isTTY)
|
|
3079
2996
|
stdin.setRawMode(enabled);
|
|
3080
2997
|
});
|
|
3081
|
-
const rawModeRef = yield*
|
|
2998
|
+
const rawModeRef = yield* make18({
|
|
3082
2999
|
acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
|
|
3083
3000
|
idleTimeToLive: "10 millis"
|
|
3084
3001
|
});
|
|
@@ -3099,7 +3016,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3099
3016
|
return queue;
|
|
3100
3017
|
});
|
|
3101
3018
|
const readInput = gen(function* () {
|
|
3102
|
-
const queue = yield*
|
|
3019
|
+
const queue = yield* make9();
|
|
3103
3020
|
const handleKeypress = (s, k) => {
|
|
3104
3021
|
const userInput = {
|
|
3105
3022
|
input: fromUndefinedOr(s),
|
|
@@ -3129,14 +3046,14 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3129
3046
|
if (inputEnded) {
|
|
3130
3047
|
handleEnd();
|
|
3131
3048
|
} else {
|
|
3132
|
-
yield*
|
|
3133
|
-
yield*
|
|
3049
|
+
yield* get5(rlRef);
|
|
3050
|
+
yield* get5(rawModeRef);
|
|
3134
3051
|
stdin.once("end", handleEnd);
|
|
3135
3052
|
}
|
|
3136
3053
|
return queue;
|
|
3137
3054
|
});
|
|
3138
3055
|
const readLine = suspend3(() => poll(lines).pipe(flatMap3(match({
|
|
3139
|
-
onNone: () => scoped(andThen2(
|
|
3056
|
+
onNone: () => scoped(andThen2(get5(rlRef), take(lines))),
|
|
3140
3057
|
onSome: succeed6
|
|
3141
3058
|
})), mapError2(() => new QuitError({}))));
|
|
3142
3059
|
const display = (prompt) => uninterruptible(callback3((resume) => {
|
|
@@ -3180,17 +3097,17 @@ var log = (...args) => consoleWith((console) => sync(() => {
|
|
|
3180
3097
|
|
|
3181
3098
|
// packages/core/src/time.ts
|
|
3182
3099
|
function toDate(input) {
|
|
3183
|
-
return
|
|
3100
|
+
return toDateUtc(makeUnsafe6(input));
|
|
3184
3101
|
}
|
|
3185
3102
|
function parseDate(input) {
|
|
3186
|
-
return getOrUndefined(map4(
|
|
3103
|
+
return getOrUndefined(map4(make16(input), toDateUtc));
|
|
3187
3104
|
}
|
|
3188
3105
|
function toIso(input) {
|
|
3189
|
-
return formatIso(
|
|
3106
|
+
return formatIso(makeUnsafe6(input));
|
|
3190
3107
|
}
|
|
3191
|
-
var currentDate =
|
|
3108
|
+
var currentDate = map7(now, toDateUtc);
|
|
3192
3109
|
function wallClockMillis() {
|
|
3193
|
-
return
|
|
3110
|
+
return toEpochMillis(nowUnsafe());
|
|
3194
3111
|
}
|
|
3195
3112
|
|
|
3196
3113
|
// packages/core/src/waiting-on.ts
|
|
@@ -6815,7 +6732,7 @@ var WorkUnitLease = Struct({
|
|
|
6815
6732
|
leaseExpiresAt: Timestamp,
|
|
6816
6733
|
lastHeartbeatAt: Timestamp
|
|
6817
6734
|
});
|
|
6818
|
-
var WorkUnitLeaseProjection = Struct(
|
|
6735
|
+
var WorkUnitLeaseProjection = Struct(map8(WorkUnitLease.fields, optionalKey));
|
|
6819
6736
|
var WorkUnitRepoBinding = Struct({
|
|
6820
6737
|
id: Id,
|
|
6821
6738
|
provider: RepoBindingProvider,
|
|
@@ -8178,6 +8095,7 @@ var TeamDeliverySettings = Struct({
|
|
|
8178
8095
|
isolatedChildBranchTemplate: BranchTemplate,
|
|
8179
8096
|
delivery: DeliveryMode,
|
|
8180
8097
|
hoursPerPriorityLevel: HoursPerPriorityLevel,
|
|
8098
|
+
agentsStateScope: Boolean2,
|
|
8181
8099
|
revision: Int.check(isGreaterThanOrEqualTo(1))
|
|
8182
8100
|
});
|
|
8183
8101
|
var TeamDeliverySettingsUpdate = Struct({
|
|
@@ -8187,6 +8105,7 @@ var TeamDeliverySettingsUpdate = Struct({
|
|
|
8187
8105
|
isolatedChildBranchTemplate: optionalKey(BranchTemplate),
|
|
8188
8106
|
delivery: optionalKey(DeliveryMode),
|
|
8189
8107
|
hoursPerPriorityLevel: optionalKey(HoursPerPriorityLevel),
|
|
8108
|
+
agentsStateScope: optionalKey(Boolean2),
|
|
8190
8109
|
expectedRevision: Int.check(isGreaterThanOrEqualTo(1))
|
|
8191
8110
|
});
|
|
8192
8111
|
var TeamReference = Struct({ id: Id, workspaceId: Id, key: String4, name: String4 });
|
|
@@ -9651,7 +9570,7 @@ var TranscriptSearchResult = Struct({
|
|
|
9651
9570
|
});
|
|
9652
9571
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
|
|
9653
9572
|
var TypeId8 = "~effect/http/HttpBody";
|
|
9654
|
-
class
|
|
9573
|
+
class Proto4 {
|
|
9655
9574
|
[TypeId8];
|
|
9656
9575
|
constructor() {
|
|
9657
9576
|
this[TypeId8] = TypeId8;
|
|
@@ -9666,7 +9585,7 @@ class Proto5 {
|
|
|
9666
9585
|
}
|
|
9667
9586
|
}
|
|
9668
9587
|
|
|
9669
|
-
class Empty extends
|
|
9588
|
+
class Empty extends Proto4 {
|
|
9670
9589
|
_tag = "Empty";
|
|
9671
9590
|
toJSON() {
|
|
9672
9591
|
return {
|
|
@@ -9677,7 +9596,7 @@ class Empty extends Proto5 {
|
|
|
9677
9596
|
}
|
|
9678
9597
|
var empty5 = /* @__PURE__ */ new Empty;
|
|
9679
9598
|
|
|
9680
|
-
class Raw extends
|
|
9599
|
+
class Raw extends Proto4 {
|
|
9681
9600
|
_tag = "Raw";
|
|
9682
9601
|
body;
|
|
9683
9602
|
contentType;
|
|
@@ -9700,7 +9619,7 @@ class Raw extends Proto5 {
|
|
|
9700
9619
|
}
|
|
9701
9620
|
var raw = (body, options) => new Raw(body, options?.contentType, options?.contentLength);
|
|
9702
9621
|
|
|
9703
|
-
class Uint8Array2 extends
|
|
9622
|
+
class Uint8Array2 extends Proto4 {
|
|
9704
9623
|
_tag = "Uint8Array";
|
|
9705
9624
|
contentType;
|
|
9706
9625
|
contentLength;
|
|
@@ -9927,7 +9846,7 @@ var baseUrl = () => {
|
|
|
9927
9846
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientRequest.js
|
|
9928
9847
|
var TypeId10 = "~effect/http/HttpClientRequest";
|
|
9929
9848
|
var isHttpClientRequest = (u) => hasProperty(u, TypeId10);
|
|
9930
|
-
var
|
|
9849
|
+
var Proto5 = {
|
|
9931
9850
|
[TypeId10]: TypeId10,
|
|
9932
9851
|
...BaseProto,
|
|
9933
9852
|
toJSON() {
|
|
@@ -9946,7 +9865,7 @@ var Proto6 = {
|
|
|
9946
9865
|
}
|
|
9947
9866
|
};
|
|
9948
9867
|
function makeWith(method, url, urlParams, hash, headers, body) {
|
|
9949
|
-
const self = Object.create(
|
|
9868
|
+
const self = Object.create(Proto5);
|
|
9950
9869
|
self.method = method;
|
|
9951
9870
|
self.url = url;
|
|
9952
9871
|
self.urlParams = urlParams;
|
|
@@ -9956,14 +9875,14 @@ function makeWith(method, url, urlParams, hash, headers, body) {
|
|
|
9956
9875
|
return self;
|
|
9957
9876
|
}
|
|
9958
9877
|
var empty6 = /* @__PURE__ */ makeWith("GET", "", empty4, /* @__PURE__ */ none(), empty, empty5);
|
|
9959
|
-
var
|
|
9878
|
+
var make5 = (method) => (url, options) => modify(empty6, {
|
|
9960
9879
|
method,
|
|
9961
9880
|
url,
|
|
9962
9881
|
...options ?? undefined
|
|
9963
9882
|
});
|
|
9964
|
-
var get = /* @__PURE__ */
|
|
9965
|
-
var post = /* @__PURE__ */
|
|
9966
|
-
var put = /* @__PURE__ */
|
|
9883
|
+
var get = /* @__PURE__ */ make5("GET");
|
|
9884
|
+
var post = /* @__PURE__ */ make5("POST");
|
|
9885
|
+
var put = /* @__PURE__ */ make5("PUT");
|
|
9967
9886
|
var modify = /* @__PURE__ */ dual(2, (self, options) => {
|
|
9968
9887
|
let result = self;
|
|
9969
9888
|
if (options.method) {
|
|
@@ -10133,7 +10052,7 @@ class WebHttpClientResponse extends Class {
|
|
|
10133
10052
|
}
|
|
10134
10053
|
textBody;
|
|
10135
10054
|
get text() {
|
|
10136
|
-
return this.textBody ??=
|
|
10055
|
+
return this.textBody ??= map7(this.arrayBuffer, (_) => new TextDecoder().decode(_));
|
|
10137
10056
|
}
|
|
10138
10057
|
get urlParamsBody() {
|
|
10139
10058
|
return flatMap3(this.arrayBuffer, (bytes) => try_2({
|
|
@@ -10244,7 +10163,7 @@ var get2 = /* @__PURE__ */ accessor("get");
|
|
|
10244
10163
|
var transform = /* @__PURE__ */ dual(2, (self, f) => makeWith2(flatMap3((request) => f(self.postprocess(succeed6(request)), request)), self.preprocess));
|
|
10245
10164
|
var transformResponse = /* @__PURE__ */ dual(2, (self, f) => makeWith2((request) => f(self.postprocess(request)), self.preprocess));
|
|
10246
10165
|
var makeWith2 = (postprocess, preprocess) => {
|
|
10247
|
-
const self = Object.create(
|
|
10166
|
+
const self = Object.create(Proto6);
|
|
10248
10167
|
self.preprocess = preprocess;
|
|
10249
10168
|
self.postprocess = postprocess;
|
|
10250
10169
|
self.execute = function(request) {
|
|
@@ -10252,7 +10171,7 @@ var makeWith2 = (postprocess, preprocess) => {
|
|
|
10252
10171
|
};
|
|
10253
10172
|
return self;
|
|
10254
10173
|
};
|
|
10255
|
-
var
|
|
10174
|
+
var Proto6 = {
|
|
10256
10175
|
[TypeId13]: TypeId13,
|
|
10257
10176
|
pipe() {
|
|
10258
10177
|
return pipeArguments(this, arguments);
|
|
@@ -10264,7 +10183,7 @@ var Proto7 = {
|
|
|
10264
10183
|
};
|
|
10265
10184
|
},
|
|
10266
10185
|
.../* @__PURE__ */ Object.fromEntries(/* @__PURE__ */ allShort.map(([fullMethod, method]) => [method, function(url, options) {
|
|
10267
|
-
return this.execute(
|
|
10186
|
+
return this.execute(make5(fullMethod)(url, options));
|
|
10268
10187
|
}]))
|
|
10269
10188
|
};
|
|
10270
10189
|
var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
|
|
@@ -10284,7 +10203,7 @@ var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFibe
|
|
|
10284
10203
|
if (tracerDisabled) {
|
|
10285
10204
|
const effect = f(request, url, controller.signal, fiber);
|
|
10286
10205
|
if (scopedController)
|
|
10287
|
-
return
|
|
10206
|
+
return map7(effect, (response) => trackResponse(response, controller, true));
|
|
10288
10207
|
return uninterruptibleMask2((restore) => matchCauseEffect(restore(effect), {
|
|
10289
10208
|
onSuccess(response) {
|
|
10290
10209
|
return succeed6(trackResponse(response, controller, false));
|
|
@@ -10355,7 +10274,7 @@ var TracerPropagationEnabled = /* @__PURE__ */ Reference("effect/http/HttpClient
|
|
|
10355
10274
|
var SpanNameGenerator = /* @__PURE__ */ Reference("effect/http/HttpClient/SpanNameGenerator", {
|
|
10356
10275
|
defaultValue: () => (request) => request.method
|
|
10357
10276
|
});
|
|
10358
|
-
var layerMergedContext = (effect2) => effect(HttpClient)(contextWith((context) =>
|
|
10277
|
+
var layerMergedContext = (effect2) => effect(HttpClient)(contextWith((context) => map7(effect2, (client) => transformResponse(client, updateContext((input) => merge3(context, input))))));
|
|
10359
10278
|
var responseRegistry = /* @__PURE__ */ (() => {
|
|
10360
10279
|
if ("FinalizationRegistry" in globalThis && globalThis.FinalizationRegistry) {
|
|
10361
10280
|
const registry = /* @__PURE__ */ new FinalizationRegistry((controller) => {
|
|
@@ -10520,7 +10439,7 @@ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
|
|
|
10520
10439
|
}
|
|
10521
10440
|
let uploadController;
|
|
10522
10441
|
const stopUpload = sync2(() => uploadController?.abort());
|
|
10523
|
-
const send = (body) =>
|
|
10442
|
+
const send = (body) => map7(tryPromise({
|
|
10524
10443
|
try: () => fetch2(url, {
|
|
10525
10444
|
...options,
|
|
10526
10445
|
method: request.method,
|
|
@@ -10691,14 +10610,14 @@ var layerWebSocketConstructorGlobal = /* @__PURE__ */ succeed5(WebSocketConstruc
|
|
|
10691
10610
|
}
|
|
10692
10611
|
return new globalThis.WebSocket(url, options);
|
|
10693
10612
|
});
|
|
10694
|
-
var makeWebSocket = (url, options) => WebSocketConstructor.use((makeWs) => fromWebSocket(acquireRelease((typeof url === "string" ? succeed6(url) : url).pipe(
|
|
10613
|
+
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 : {
|
|
10695
10614
|
protocols: options.protocols,
|
|
10696
10615
|
headers: options.headers
|
|
10697
10616
|
}))), (ws) => sync2(() => ws.close(1000))), options));
|
|
10698
10617
|
var isPausable = (ws) => ("pause" in ws) && typeof ws.pause === "function";
|
|
10699
10618
|
var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
|
|
10700
10619
|
let currentWS;
|
|
10701
|
-
const latch =
|
|
10620
|
+
const latch = makeUnsafe(false);
|
|
10702
10621
|
const acquireContext = fiber.context;
|
|
10703
10622
|
const reader = gen(function* () {
|
|
10704
10623
|
const scope = yield* scope2;
|
|
@@ -11326,7 +11245,7 @@ var effectMetrics = new Map(MetricDefinitions.map((definition) => {
|
|
|
11326
11245
|
var processTelemetryRegistry = new Map;
|
|
11327
11246
|
var processMetricRegistry = new Map;
|
|
11328
11247
|
var collectorTimeout = "10 seconds";
|
|
11329
|
-
var collectorHttpClient = effect(HttpClient)(
|
|
11248
|
+
var collectorHttpClient = effect(HttpClient)(map7(HttpClient, (client) => transform(client, (response, request) => timeoutOrElse(response, {
|
|
11330
11249
|
duration: collectorTimeout,
|
|
11331
11250
|
orElse: () => fail7(new HttpClientError({
|
|
11332
11251
|
reason: new TransportError({
|
|
@@ -13225,7 +13144,7 @@ class KitmanEffectClient {
|
|
|
13225
13144
|
return tryPromise({
|
|
13226
13145
|
try: () => this.fetchImpl(this.url(path), { ...init, headers, signal: abort.signal }),
|
|
13227
13146
|
catch: failed
|
|
13228
|
-
}).pipe(flatMap3((answer) => tryPromise({ try: () => answer.arrayBuffer(), catch: failed }).pipe(
|
|
13147
|
+
}).pipe(flatMap3((answer) => tryPromise({ try: () => answer.arrayBuffer(), catch: failed }).pipe(map7((body) => new Response(body.byteLength === 0 ? null : body, answer)))), onInterrupt(() => sync2(() => abort.abort())));
|
|
13229
13148
|
});
|
|
13230
13149
|
const response = yield* method !== "GET" ? send.pipe(retry({ schedule: unansweredGetRetry, times: 5, while: refusedConnection })) : sendAndRead.pipe(timeoutOrElse({
|
|
13231
13150
|
duration: getAnswerTimeout,
|
|
@@ -13287,8 +13206,8 @@ class KitmanEffectClient {
|
|
|
13287
13206
|
function errorResponseDetails(response) {
|
|
13288
13207
|
const contentType = response.headers.get("content-type") ?? "";
|
|
13289
13208
|
if (contentType.includes("application/json"))
|
|
13290
|
-
return tryPromise(() => response.json()).pipe(
|
|
13291
|
-
return tryPromise(() => response.text()).pipe(
|
|
13209
|
+
return tryPromise(() => response.json()).pipe(map7(parseErrorResponse), orElseSucceed(() => ({})));
|
|
13210
|
+
return tryPromise(() => response.text()).pipe(map7((text) => {
|
|
13292
13211
|
const message = sanitizeErrorDetail(text);
|
|
13293
13212
|
return message === undefined ? {} : { message };
|
|
13294
13213
|
}), orElseSucceed(() => ({})));
|
|
@@ -13584,13 +13503,13 @@ function resolveConfig(input) {
|
|
|
13584
13503
|
...userAgentPreferences === undefined ? undefined : { userAgentPreferences }
|
|
13585
13504
|
};
|
|
13586
13505
|
}
|
|
13587
|
-
var apiUrlFromEnv = String2("KITMAN_API_URL").pipe(option,
|
|
13588
|
-
var stepCredentialFromEnv = String2("KITMAN_STEP_CREDENTIAL").pipe(option,
|
|
13589
|
-
var stepWorkspaceFromEnv = String2("KITMAN_STEP_WORKSPACE").pipe(option,
|
|
13590
|
-
var stepSkillsDirFromEnv = String2("KITMAN_STEP_SKILLS_DIR").pipe(option,
|
|
13591
|
-
var stepFittingSkillsFromEnv = String2("KITMAN_STEP_FITTING_SKILLS").pipe(option,
|
|
13592
|
-
var stepOutputOnlyFromEnv = String2("KITMAN_STEP_TOOLS").pipe(option,
|
|
13593
|
-
var mcpCredentialNameFromEnv = String2("KITMAN_MCP_CREDENTIAL_NAME").pipe(option,
|
|
13506
|
+
var apiUrlFromEnv = String2("KITMAN_API_URL").pipe(option, map7(getOrUndefined));
|
|
13507
|
+
var stepCredentialFromEnv = String2("KITMAN_STEP_CREDENTIAL").pipe(option, map7(getOrUndefined));
|
|
13508
|
+
var stepWorkspaceFromEnv = String2("KITMAN_STEP_WORKSPACE").pipe(option, map7(getOrUndefined));
|
|
13509
|
+
var stepSkillsDirFromEnv = String2("KITMAN_STEP_SKILLS_DIR").pipe(option, map7(getOrUndefined));
|
|
13510
|
+
var stepFittingSkillsFromEnv = String2("KITMAN_STEP_FITTING_SKILLS").pipe(option, map7((names) => getOrElse(names, () => "").split(",").filter((name) => name !== "")));
|
|
13511
|
+
var stepOutputOnlyFromEnv = String2("KITMAN_STEP_TOOLS").pipe(option, map7((tools) => getOrUndefined(tools) === "output"));
|
|
13512
|
+
var mcpCredentialNameFromEnv = String2("KITMAN_MCP_CREDENTIAL_NAME").pipe(option, map7(getOrUndefined));
|
|
13594
13513
|
var kitmanConfigDir = gen(function* () {
|
|
13595
13514
|
const path = yield* Path;
|
|
13596
13515
|
const xdgConfigHome = yield* String2("XDG_CONFIG_HOME").pipe(option);
|
|
@@ -13608,7 +13527,7 @@ var userHarnessSyncPath = configFile("harness-sync.json");
|
|
|
13608
13527
|
var kitSetupCacheDir = configFile("kit-setups");
|
|
13609
13528
|
var bundleCacheDir = configFile("bundles");
|
|
13610
13529
|
var runnerReleaseChannelPath = (runnerId) => configFile(`runner-release-channels/${runnerId}`);
|
|
13611
|
-
var localConfigPath = Path.pipe(
|
|
13530
|
+
var localConfigPath = Path.pipe(map7((path) => path.resolve(".kitman/config.json")));
|
|
13612
13531
|
function readUserConfig(path) {
|
|
13613
13532
|
return gen(function* () {
|
|
13614
13533
|
const filePath = path ?? (yield* userConfigPath);
|
|
@@ -13736,7 +13655,7 @@ function sessionForApi(auth, apiUrl) {
|
|
|
13736
13655
|
return auth.sessions[normalizeApiUrl(apiUrl)];
|
|
13737
13656
|
}
|
|
13738
13657
|
function readAuthStore(path) {
|
|
13739
|
-
return readUserAuth(path).pipe(
|
|
13658
|
+
return readUserAuth(path).pipe(map7((auth) => isAuthStore(auth) ? normalizeAuthStore(auth) : { sessions: {} }), catchTag("SchemaError", () => succeed6({ sessions: {} })));
|
|
13740
13659
|
}
|
|
13741
13660
|
function writeAuthStore(auth, path) {
|
|
13742
13661
|
return writeUserAuth(auth, path);
|
|
@@ -13884,7 +13803,7 @@ function Stream(success, error) {
|
|
|
13884
13803
|
|
|
13885
13804
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
|
|
13886
13805
|
var TypeId15 = "~effect/rpc/Rpc";
|
|
13887
|
-
var
|
|
13806
|
+
var Proto7 = {
|
|
13888
13807
|
[TypeId15]: TypeId15,
|
|
13889
13808
|
pipe() {
|
|
13890
13809
|
return pipeArguments(this, arguments);
|
|
@@ -13969,12 +13888,12 @@ var Proto8 = {
|
|
|
13969
13888
|
};
|
|
13970
13889
|
var makeProto = (options) => {
|
|
13971
13890
|
function Rpc() {}
|
|
13972
|
-
Object.setPrototypeOf(Rpc,
|
|
13891
|
+
Object.setPrototypeOf(Rpc, Proto7);
|
|
13973
13892
|
Object.assign(Rpc, options);
|
|
13974
13893
|
Rpc.key = `effect/rpc/Rpc/${options._tag}`;
|
|
13975
13894
|
return Rpc;
|
|
13976
13895
|
};
|
|
13977
|
-
var
|
|
13896
|
+
var make6 = (tag, options) => {
|
|
13978
13897
|
const successSchema = options?.success ?? Void;
|
|
13979
13898
|
const errorSchema = options?.error ?? Never;
|
|
13980
13899
|
const defectSchema = options?.defect ?? Defect();
|
|
@@ -14095,7 +14014,7 @@ var RpcGroupProto = {
|
|
|
14095
14014
|
}
|
|
14096
14015
|
return makeProto2({
|
|
14097
14016
|
requests,
|
|
14098
|
-
annotations:
|
|
14017
|
+
annotations: makeUnsafe3(annotations)
|
|
14099
14018
|
});
|
|
14100
14019
|
},
|
|
14101
14020
|
omit(...tags) {
|
|
@@ -14131,7 +14050,7 @@ var RpcGroupProto = {
|
|
|
14131
14050
|
context: services
|
|
14132
14051
|
});
|
|
14133
14052
|
});
|
|
14134
|
-
return
|
|
14053
|
+
return makeUnsafe3(contextMap);
|
|
14135
14054
|
});
|
|
14136
14055
|
},
|
|
14137
14056
|
prefix(prefix) {
|
|
@@ -14160,7 +14079,7 @@ var RpcGroupProto = {
|
|
|
14160
14079
|
handler,
|
|
14161
14080
|
context: services
|
|
14162
14081
|
});
|
|
14163
|
-
return
|
|
14082
|
+
return makeUnsafe3(contextMap);
|
|
14164
14083
|
}));
|
|
14165
14084
|
},
|
|
14166
14085
|
accessHandler(service) {
|
|
@@ -14208,7 +14127,7 @@ var makeProto2 = (options) => Object.assign(function() {}, RpcGroupProto, {
|
|
|
14208
14127
|
requests: options.requests,
|
|
14209
14128
|
annotations: options.annotations
|
|
14210
14129
|
});
|
|
14211
|
-
var
|
|
14130
|
+
var make7 = (...rpcs) => makeProto2({
|
|
14212
14131
|
requests: new Map(rpcs.map((rpc) => [rpc._tag, rpc])),
|
|
14213
14132
|
annotations: empty3()
|
|
14214
14133
|
});
|
|
@@ -14314,96 +14233,96 @@ var ProgramOutcome = Union([
|
|
|
14314
14233
|
Struct({ status: Literal("failed"), failureSummary: String4 })
|
|
14315
14234
|
]);
|
|
14316
14235
|
|
|
14317
|
-
class RunnerReplicaRpcs extends make6(
|
|
14236
|
+
class RunnerReplicaRpcs extends make7(make6("Claim", {
|
|
14318
14237
|
payload: WorkUnitClaimInput,
|
|
14319
14238
|
success: WorkUnitClaimResult,
|
|
14320
14239
|
error: RunnerRpcError
|
|
14321
|
-
}),
|
|
14240
|
+
}), make6("Heartbeat", {
|
|
14322
14241
|
payload: WorkUnitHeartbeatInput,
|
|
14323
14242
|
success: WorkUnitHeartbeatResult,
|
|
14324
14243
|
error: RunnerRpcError
|
|
14325
|
-
}),
|
|
14244
|
+
}), make6("Complete", {
|
|
14326
14245
|
payload: WorkUnitCompletion,
|
|
14327
14246
|
error: RunnerRpcError
|
|
14328
|
-
}),
|
|
14247
|
+
}), make6("Release", {
|
|
14329
14248
|
payload: WorkUnitReleaseInput,
|
|
14330
14249
|
error: RunnerRpcError
|
|
14331
|
-
}),
|
|
14250
|
+
}), make6("Signals", {
|
|
14332
14251
|
payload: { runnerReplicaId: String4 },
|
|
14333
14252
|
success: RunnerSignal,
|
|
14334
14253
|
error: RunnerRpcError,
|
|
14335
14254
|
stream: true
|
|
14336
|
-
}),
|
|
14255
|
+
}), make6("ReportSteer", {
|
|
14337
14256
|
payload: { workUnitId: String4, messageId: String4, delivered: Boolean2 },
|
|
14338
14257
|
success: Void,
|
|
14339
14258
|
error: RunnerRpcError
|
|
14340
|
-
}),
|
|
14259
|
+
}), make6("AppendTranscript", {
|
|
14341
14260
|
payload: { workUnitId: String4, entries: ArraySchema(TranscriptAppendEntry).check(isMaxLength(100)) },
|
|
14342
14261
|
success: Void,
|
|
14343
14262
|
error: RunnerRpcError
|
|
14344
|
-
}),
|
|
14263
|
+
}), make6("CreateCheckpointFile", {
|
|
14345
14264
|
payload: { lease: ProgramLease, byteSize: Int, sha256: String4 },
|
|
14346
14265
|
success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
|
|
14347
14266
|
error: Union([RunnerRpcError, RunFileRefused])
|
|
14348
|
-
}),
|
|
14267
|
+
}), make6("CheckpointFileParts", {
|
|
14349
14268
|
payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
|
|
14350
14269
|
success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
|
|
14351
14270
|
error: RunnerRpcError
|
|
14352
|
-
}),
|
|
14271
|
+
}), make6("CompleteCheckpointFile", {
|
|
14353
14272
|
payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
|
|
14354
14273
|
success: RunFileRecord,
|
|
14355
14274
|
error: RunnerRpcError
|
|
14356
|
-
}),
|
|
14275
|
+
}), make6("SaveCheckpoint", {
|
|
14357
14276
|
payload: { lease: ProgramLease, checkpoint: StepCheckpoint },
|
|
14358
14277
|
success: Void,
|
|
14359
14278
|
error: RunnerRpcError
|
|
14360
|
-
}),
|
|
14279
|
+
}), make6("ResumeCheckpoint", {
|
|
14361
14280
|
payload: { lease: ProgramLease },
|
|
14362
14281
|
success: UndefinedOr(ResumedCheckpoint),
|
|
14363
14282
|
error: RunnerRpcError
|
|
14364
|
-
}),
|
|
14283
|
+
}), make6("SettledCheckpoints", {
|
|
14365
14284
|
success: ArraySchema(Struct({
|
|
14366
14285
|
stepAttemptId: String4,
|
|
14367
14286
|
ref: optionalKey(String4),
|
|
14368
14287
|
repoBinding: optionalKey(WorkUnitRepoBinding)
|
|
14369
14288
|
})),
|
|
14370
14289
|
error: RunnerRpcError
|
|
14371
|
-
}),
|
|
14290
|
+
}), make6("ForgetCheckpoints", {
|
|
14372
14291
|
payload: { stepAttemptIds: ArraySchema(String4) },
|
|
14373
14292
|
success: Void,
|
|
14374
14293
|
error: RunnerRpcError
|
|
14375
|
-
}),
|
|
14294
|
+
}), make6("GitCredential", {
|
|
14376
14295
|
payload: { repoBindingId: String4 },
|
|
14377
14296
|
success: UndefinedOr(Struct({ username: String4, password: String4 })),
|
|
14378
14297
|
error: RunnerRpcError
|
|
14379
|
-
}),
|
|
14298
|
+
}), make6("Bundle", {
|
|
14380
14299
|
payload: { digest: String4 },
|
|
14381
14300
|
success: Struct({ bundle: String4 }),
|
|
14382
14301
|
error: RunnerRpcError
|
|
14383
|
-
}),
|
|
14302
|
+
}), make6("SettledRuns", {
|
|
14384
14303
|
payload: { runIds: ArraySchema(String4) },
|
|
14385
14304
|
success: ArraySchema(String4),
|
|
14386
14305
|
error: RunnerRpcError
|
|
14387
|
-
}),
|
|
14306
|
+
}), make6("KnownEvidence", {
|
|
14388
14307
|
payload: { lease: ProgramLease, trees: ArraySchema(String4) },
|
|
14389
14308
|
success: ArraySchema(Struct({ tree: String4, name: String4, command: String4 })),
|
|
14390
14309
|
error: RunnerRpcError
|
|
14391
14310
|
})).middleware(RunnerAuthentication) {
|
|
14392
14311
|
}
|
|
14393
14312
|
|
|
14394
|
-
class RunnerJournalRpcs extends make6(
|
|
14313
|
+
class RunnerJournalRpcs extends make7(make6("RecordActivity", {
|
|
14395
14314
|
payload: { lease: ProgramLease, name: String4, attempt: Int, exit: Json },
|
|
14396
14315
|
error: RunnerRpcError
|
|
14397
|
-
}),
|
|
14316
|
+
}), make6("DeferredDone", {
|
|
14398
14317
|
payload: { lease: ProgramLease, name: String4, exit: Json },
|
|
14399
14318
|
error: RunnerRpcError
|
|
14400
|
-
}),
|
|
14319
|
+
}), make6("ScheduleClock", {
|
|
14401
14320
|
payload: { lease: ProgramLease, name: String4, deferredName: String4, durationMillis: Int },
|
|
14402
14321
|
error: RunnerRpcError
|
|
14403
|
-
}),
|
|
14322
|
+
}), make6("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make6("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
|
|
14404
14323
|
}
|
|
14405
14324
|
|
|
14406
|
-
class RunnerCapabilityRpcs extends make6(
|
|
14325
|
+
class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
14407
14326
|
payload: {
|
|
14408
14327
|
lease: ProgramLease,
|
|
14409
14328
|
step: String4,
|
|
@@ -14423,7 +14342,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14423
14342
|
},
|
|
14424
14343
|
success: Struct({ questionId: String4 }),
|
|
14425
14344
|
error: RunnerRpcError
|
|
14426
|
-
}),
|
|
14345
|
+
}), make6("StartAgentStep", {
|
|
14427
14346
|
payload: {
|
|
14428
14347
|
lease: ProgramLease,
|
|
14429
14348
|
step: String4,
|
|
@@ -14439,7 +14358,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14439
14358
|
},
|
|
14440
14359
|
success: Struct({ stepAttemptId: String4 }),
|
|
14441
14360
|
error: RunnerRpcError
|
|
14442
|
-
}),
|
|
14361
|
+
}), make6("StartVerification", {
|
|
14443
14362
|
payload: {
|
|
14444
14363
|
lease: ProgramLease,
|
|
14445
14364
|
step: String4,
|
|
@@ -14460,7 +14379,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14460
14379
|
},
|
|
14461
14380
|
success: Struct({ verificationId: String4 }),
|
|
14462
14381
|
error: RunnerRpcError
|
|
14463
|
-
}),
|
|
14382
|
+
}), make6("AwaitEvent", {
|
|
14464
14383
|
payload: {
|
|
14465
14384
|
lease: ProgramLease,
|
|
14466
14385
|
step: String4,
|
|
@@ -14476,7 +14395,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14476
14395
|
})))
|
|
14477
14396
|
},
|
|
14478
14397
|
error: RunnerRpcError
|
|
14479
|
-
}),
|
|
14398
|
+
}), make6("ClaimResource", {
|
|
14480
14399
|
payload: {
|
|
14481
14400
|
lease: ProgramLease,
|
|
14482
14401
|
step: String4,
|
|
@@ -14485,7 +14404,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14485
14404
|
action: Literals(["claim", "take_over", "let_go"])
|
|
14486
14405
|
},
|
|
14487
14406
|
error: RunnerRpcError
|
|
14488
|
-
}),
|
|
14407
|
+
}), make6("AdmitChild", {
|
|
14489
14408
|
payload: {
|
|
14490
14409
|
lease: ProgramLease,
|
|
14491
14410
|
step: String4,
|
|
@@ -14496,7 +14415,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14496
14415
|
},
|
|
14497
14416
|
success: Struct({ runId: String4 }),
|
|
14498
14417
|
error: RunnerRpcError
|
|
14499
|
-
}),
|
|
14418
|
+
}), make6("StoreArtifact", {
|
|
14500
14419
|
payload: {
|
|
14501
14420
|
lease: ProgramLease,
|
|
14502
14421
|
step: String4,
|
|
@@ -14508,7 +14427,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14508
14427
|
},
|
|
14509
14428
|
success: Struct({ artifactId: String4 }),
|
|
14510
14429
|
error: RunnerRpcError
|
|
14511
|
-
}),
|
|
14430
|
+
}), make6("RecordNote", {
|
|
14512
14431
|
payload: {
|
|
14513
14432
|
lease: ProgramLease,
|
|
14514
14433
|
step: String4,
|
|
@@ -14517,7 +14436,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14517
14436
|
kind: optional(Literals(["note", "blocker"]))
|
|
14518
14437
|
},
|
|
14519
14438
|
error: RunnerRpcError
|
|
14520
|
-
}),
|
|
14439
|
+
}), make6("PerformHostEffect", {
|
|
14521
14440
|
payload: {
|
|
14522
14441
|
lease: ProgramLease,
|
|
14523
14442
|
step: String4,
|
|
@@ -14546,7 +14465,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14546
14465
|
},
|
|
14547
14466
|
success: UndefinedOr(Struct({ id: String4, number: String4, url: String4 })),
|
|
14548
14467
|
error: RunnerRpcError
|
|
14549
|
-
}),
|
|
14468
|
+
}), make6("AlertTask", {
|
|
14550
14469
|
payload: {
|
|
14551
14470
|
lease: ProgramLease,
|
|
14552
14471
|
step: String4,
|
|
@@ -14563,7 +14482,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14563
14482
|
joined: optionalKey(Struct({ kind: Literals(["run", "recent"]), runId: String4 }))
|
|
14564
14483
|
}),
|
|
14565
14484
|
error: RunnerRpcError
|
|
14566
|
-
}),
|
|
14485
|
+
}), make6("ReadTranscripts", {
|
|
14567
14486
|
payload: {
|
|
14568
14487
|
lease: ProgramLease,
|
|
14569
14488
|
step: String4,
|
|
@@ -14598,7 +14517,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14598
14517
|
})))
|
|
14599
14518
|
}),
|
|
14600
14519
|
error: RunnerRpcError
|
|
14601
|
-
}),
|
|
14520
|
+
}), make6("PipelineStatus", {
|
|
14602
14521
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
|
|
14603
14522
|
success: Struct({
|
|
14604
14523
|
head: String4,
|
|
@@ -14632,11 +14551,11 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14632
14551
|
}))
|
|
14633
14552
|
}),
|
|
14634
14553
|
error: RunnerRpcError
|
|
14635
|
-
}),
|
|
14554
|
+
}), make6("ReportPipeline", {
|
|
14636
14555
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4, verification: String4 },
|
|
14637
14556
|
success: Struct({ head: String4, status: Literals(["success", "failed"]) }),
|
|
14638
14557
|
error: RunnerRpcError
|
|
14639
|
-
}),
|
|
14558
|
+
}), make6("ReviewThreads", {
|
|
14640
14559
|
payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
|
|
14641
14560
|
success: Struct({
|
|
14642
14561
|
threads: ArraySchema(Struct({
|
|
@@ -14648,7 +14567,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14648
14567
|
}))
|
|
14649
14568
|
}),
|
|
14650
14569
|
error: RunnerRpcError
|
|
14651
|
-
}),
|
|
14570
|
+
}), make6("OpenChangeRequests", {
|
|
14652
14571
|
payload: { lease: ProgramLease, step: String4, authors: NonEmptyArray(String4) },
|
|
14653
14572
|
success: Struct({
|
|
14654
14573
|
changeRequests: ArraySchema(Struct({
|
|
@@ -14662,7 +14581,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14662
14581
|
}))
|
|
14663
14582
|
}),
|
|
14664
14583
|
error: RunnerRpcError
|
|
14665
|
-
}),
|
|
14584
|
+
}), make6("OwnChangeRequests", {
|
|
14666
14585
|
payload: { lease: ProgramLease, step: String4 },
|
|
14667
14586
|
success: Struct({
|
|
14668
14587
|
changeRequests: ArraySchema(Struct({
|
|
@@ -14675,7 +14594,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14675
14594
|
}))
|
|
14676
14595
|
}),
|
|
14677
14596
|
error: RunnerRpcError
|
|
14678
|
-
}),
|
|
14597
|
+
}), make6("Propose", {
|
|
14679
14598
|
payload: {
|
|
14680
14599
|
lease: ProgramLease,
|
|
14681
14600
|
step: String4,
|
|
@@ -14704,7 +14623,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14704
14623
|
task: optionalKey(Struct({ id: String4, active: Boolean2 }))
|
|
14705
14624
|
}),
|
|
14706
14625
|
error: RunnerRpcError
|
|
14707
|
-
}),
|
|
14626
|
+
}), make6("ReadProject", {
|
|
14708
14627
|
payload: { lease: ProgramLease, step: String4, projectId: String4 },
|
|
14709
14628
|
success: Struct({
|
|
14710
14629
|
project: Struct({ id: String4, name: String4 }),
|
|
@@ -14727,7 +14646,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14727
14646
|
taskChanges: ArraySchema(Struct({ taskKey: String4, title: String4, change: String4, at: String4 }))
|
|
14728
14647
|
}),
|
|
14729
14648
|
error: RunnerRpcError
|
|
14730
|
-
}),
|
|
14649
|
+
}), make6("DraftUpdate", {
|
|
14731
14650
|
payload: {
|
|
14732
14651
|
lease: ProgramLease,
|
|
14733
14652
|
step: String4,
|
|
@@ -14742,7 +14661,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14742
14661
|
},
|
|
14743
14662
|
success: Struct({ id: String4 }),
|
|
14744
14663
|
error: RunnerRpcError
|
|
14745
|
-
}),
|
|
14664
|
+
}), make6("CreatePlanTasks", {
|
|
14746
14665
|
payload: {
|
|
14747
14666
|
lease: ProgramLease,
|
|
14748
14667
|
projectId: optionalKey(String4),
|
|
@@ -14762,15 +14681,15 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14762
14681
|
},
|
|
14763
14682
|
success: ArraySchema(Struct({ key: String4, taskId: String4 })),
|
|
14764
14683
|
error: RunnerRpcError
|
|
14765
|
-
}),
|
|
14684
|
+
}), make6("IntegrationBranch", {
|
|
14766
14685
|
payload: { lease: ProgramLease, repoBindingId: optionalKey(String4) },
|
|
14767
14686
|
success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
|
|
14768
14687
|
error: RunnerRpcError
|
|
14769
|
-
}),
|
|
14688
|
+
}), make6("DeliveryBase", {
|
|
14770
14689
|
payload: { lease: ProgramLease },
|
|
14771
14690
|
success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
|
|
14772
14691
|
error: RunnerRpcError
|
|
14773
|
-
}),
|
|
14692
|
+
}), make6("MergeChangeRequest", {
|
|
14774
14693
|
payload: {
|
|
14775
14694
|
lease: ProgramLease,
|
|
14776
14695
|
step: String4,
|
|
@@ -14788,7 +14707,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14788
14707
|
Struct({ status: Literal("moved"), head: String4 })
|
|
14789
14708
|
]),
|
|
14790
14709
|
error: RunnerRpcError
|
|
14791
|
-
}),
|
|
14710
|
+
}), make6("ApproveChangeRequest", {
|
|
14792
14711
|
payload: {
|
|
14793
14712
|
lease: ProgramLease,
|
|
14794
14713
|
step: String4,
|
|
@@ -14804,7 +14723,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14804
14723
|
Struct({ approved: Literal(false), reason: String4 })
|
|
14805
14724
|
]),
|
|
14806
14725
|
error: RunnerRpcError
|
|
14807
|
-
}),
|
|
14726
|
+
}), make6("CloseChangeRequest", {
|
|
14808
14727
|
payload: {
|
|
14809
14728
|
lease: ProgramLease,
|
|
14810
14729
|
step: String4,
|
|
@@ -14814,7 +14733,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14814
14733
|
},
|
|
14815
14734
|
success: Struct({ closed: Boolean2, head: optionalKey(String4) }),
|
|
14816
14735
|
error: RunnerRpcError
|
|
14817
|
-
}),
|
|
14736
|
+
}), make6("RerunPipeline", {
|
|
14818
14737
|
payload: {
|
|
14819
14738
|
lease: ProgramLease,
|
|
14820
14739
|
step: String4,
|
|
@@ -14824,7 +14743,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14824
14743
|
},
|
|
14825
14744
|
success: Struct({ head: String4, pipelines: Int }),
|
|
14826
14745
|
error: RunnerRpcError
|
|
14827
|
-
}),
|
|
14746
|
+
}), make6("PublishRelease", {
|
|
14828
14747
|
payload: {
|
|
14829
14748
|
lease: ProgramLease,
|
|
14830
14749
|
step: String4,
|
|
@@ -14836,14 +14755,14 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
|
|
|
14836
14755
|
},
|
|
14837
14756
|
success: Struct({ tag: String4, revision: String4, url: String4 }),
|
|
14838
14757
|
error: RunnerRpcError
|
|
14839
|
-
}),
|
|
14758
|
+
}), make6("ProgramSecrets", {
|
|
14840
14759
|
payload: { lease: ProgramLease },
|
|
14841
14760
|
success: Record(String4, String4),
|
|
14842
14761
|
error: RunnerRpcError
|
|
14843
14762
|
})).middleware(RunnerAuthentication) {
|
|
14844
14763
|
}
|
|
14845
14764
|
|
|
14846
|
-
class RunnerRunFileRpcs extends make6(
|
|
14765
|
+
class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
|
|
14847
14766
|
payload: {
|
|
14848
14767
|
lease: ProgramLease,
|
|
14849
14768
|
step: String4,
|
|
@@ -14855,11 +14774,11 @@ class RunnerRunFileRpcs extends make6(make5("CreateRunFile", {
|
|
|
14855
14774
|
},
|
|
14856
14775
|
success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
|
|
14857
14776
|
error: Union([RunnerRpcError, RunFileRefused])
|
|
14858
|
-
}),
|
|
14777
|
+
}), make6("RunFileParts", {
|
|
14859
14778
|
payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
|
|
14860
14779
|
success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
|
|
14861
14780
|
error: RunnerRpcError
|
|
14862
|
-
}),
|
|
14781
|
+
}), make6("CompleteRunFile", {
|
|
14863
14782
|
payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
|
|
14864
14783
|
success: RunFileRecord,
|
|
14865
14784
|
error: RunnerRpcError
|
|
@@ -14869,7 +14788,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
|
|
|
14869
14788
|
var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
|
|
14870
14789
|
|
|
14871
14790
|
// apps/cli/src/oauth.ts
|
|
14872
|
-
var
|
|
14791
|
+
var Scope2 = "openid profile email offline_access kitman:cli";
|
|
14873
14792
|
var CallbackPath = "/auth/callback";
|
|
14874
14793
|
|
|
14875
14794
|
class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
|
|
@@ -14888,7 +14807,7 @@ function buildAuthorizeUrl(input) {
|
|
|
14888
14807
|
url.searchParams.set("response_type", "code");
|
|
14889
14808
|
url.searchParams.set("client_id", input.clientId);
|
|
14890
14809
|
url.searchParams.set("redirect_uri", input.redirectUri);
|
|
14891
|
-
url.searchParams.set("scope",
|
|
14810
|
+
url.searchParams.set("scope", Scope2);
|
|
14892
14811
|
url.searchParams.set("code_challenge", input.codeChallenge);
|
|
14893
14812
|
url.searchParams.set("code_challenge_method", "S256");
|
|
14894
14813
|
url.searchParams.set("state", input.state);
|
|
@@ -15057,7 +14976,7 @@ function createSdkClient(input) {
|
|
|
15057
14976
|
const runPromise = runPromiseWith(yield* context());
|
|
15058
14977
|
const fetchImpl = input.fetch ?? (yield* Fetch);
|
|
15059
14978
|
let session = input.session;
|
|
15060
|
-
const refreshPermit =
|
|
14979
|
+
const refreshPermit = makeUnsafe2(1);
|
|
15061
14980
|
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 })));
|
|
15062
14981
|
const authorizedFetch = (resource, init) => runPromise(gen(function* () {
|
|
15063
14982
|
if (session.refreshToken && shouldRefresh(yield* currentDate, session.expiresAt))
|
|
@@ -15077,7 +14996,7 @@ function createSdkClient(input) {
|
|
|
15077
14996
|
});
|
|
15078
14997
|
}
|
|
15079
14998
|
function refreshSession(input) {
|
|
15080
|
-
const storedSession = readAuthStore(input.authPath).pipe(
|
|
14999
|
+
const storedSession = readAuthStore(input.authPath).pipe(map7((auth) => sessionForApi(auth, input.apiUrl)));
|
|
15081
15000
|
return withAuthLock(input.authPath, gen(function* () {
|
|
15082
15001
|
const stored = yield* storedSession;
|
|
15083
15002
|
if (!stored)
|
|
@@ -15092,7 +15011,7 @@ function refreshSession(input) {
|
|
|
15092
15011
|
clientId: input.clientId ?? ClientId,
|
|
15093
15012
|
refreshToken: spentToken,
|
|
15094
15013
|
...input.fetch ? { fetch: input.fetch } : undefined
|
|
15095
|
-
}).pipe(
|
|
15014
|
+
}).pipe(map7((token) => toStoredSession(token, spentToken)));
|
|
15096
15015
|
const session = yield* refreshing.pipe(catch_((error) => storedSession.pipe(filterOrFail((current) => current !== undefined && current.refreshToken !== spentToken, () => error))));
|
|
15097
15016
|
const current = yield* storedSession;
|
|
15098
15017
|
if (current?.refreshToken !== spentToken)
|
|
@@ -15547,9 +15466,9 @@ var herdrCoreOver = (transport) => ({
|
|
|
15547
15466
|
...input.name === undefined ? undefined : { name: input.name },
|
|
15548
15467
|
no_parent: input.noParent === true
|
|
15549
15468
|
}),
|
|
15550
|
-
list: (filter = {}) => request("terminal.list", Listed, { labels: filter.labels ?? {}, all: filter.all === true }).pipe(
|
|
15469
|
+
list: (filter = {}) => request("terminal.list", Listed, { labels: filter.labels ?? {}, all: filter.all === true }).pipe(map7((listed) => listed.terminals)),
|
|
15551
15470
|
get: (terminal) => request("terminal.get", Terminal2, { terminal }),
|
|
15552
|
-
read: (terminal) => request("terminal.read", Screen, { terminal }).pipe(
|
|
15471
|
+
read: (terminal) => request("terminal.read", Screen, { terminal }).pipe(map7((screen) => screen.text)),
|
|
15553
15472
|
interrupt: (terminal, options = {}) => request("terminal.interrupt", Interrupted, {
|
|
15554
15473
|
terminal,
|
|
15555
15474
|
...options.timeoutSeconds === undefined ? undefined : { timeout: options.timeoutSeconds }
|
|
@@ -15596,7 +15515,7 @@ var spawnedTransport = (env) => gen(function* () {
|
|
|
15596
15515
|
const spawner = yield* ChildProcessSpawner;
|
|
15597
15516
|
const input = yield* unbounded2();
|
|
15598
15517
|
const encoder = new TextEncoder;
|
|
15599
|
-
const handle = yield* spawner.spawn(
|
|
15518
|
+
const handle = yield* spawner.spawn(make3("herdr-core", ["connect"], {
|
|
15600
15519
|
extendEnv: false,
|
|
15601
15520
|
env,
|
|
15602
15521
|
stdin: fromQueue(input),
|
|
@@ -15612,7 +15531,7 @@ var coreEnv = (options) => {
|
|
|
15612
15531
|
const env = Object.fromEntries(Object.entries(options.env ?? process.env).filter((entry) => entry[0] !== "HC_SESSION" && entry[1] !== undefined));
|
|
15613
15532
|
return options.session === undefined ? env : { ...env, HC_SESSION: options.session };
|
|
15614
15533
|
};
|
|
15615
|
-
var herdrCoreLayer2 = (options) => effect(HerdrCore2,
|
|
15534
|
+
var herdrCoreLayer2 = (options) => effect(HerdrCore2, map7(ChildProcessSpawner, (spawner) => herdrCoreOver(spawnedTransport(coreEnv(options)).pipe(provideService(ChildProcessSpawner, spawner)))));
|
|
15616
15535
|
var herdrCoreTransportLayer2 = (transport) => succeed5(HerdrCore2, herdrCoreOver(transport));
|
|
15617
15536
|
var UpdateRefused = Struct({
|
|
15618
15537
|
error: Struct({ message: String4, hint: optionalKey(String4) })
|
|
@@ -15627,7 +15546,7 @@ var updateHerdrCore2 = (options) => gen(function* () {
|
|
|
15627
15546
|
const spawner = yield* ChildProcessSpawner;
|
|
15628
15547
|
const env = coreEnv(options);
|
|
15629
15548
|
const run = (args) => gen(function* () {
|
|
15630
|
-
const handle = yield* spawner.spawn(
|
|
15549
|
+
const handle = yield* spawner.spawn(make3("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
|
|
15631
15550
|
const [stdout, stderr, exitCode] = yield* all3([
|
|
15632
15551
|
mkString(decodeText(handle.stdout)),
|
|
15633
15552
|
mkString(decodeText(handle.stderr)),
|
|
@@ -15635,13 +15554,13 @@ var updateHerdrCore2 = (options) => gen(function* () {
|
|
|
15635
15554
|
], { concurrency: 3 });
|
|
15636
15555
|
return { stdout, stderr, exitCode };
|
|
15637
15556
|
}).pipe(scoped, catchReason("PlatformError", "NotFound", () => fail7(new HerdrCoreMissing2)));
|
|
15638
|
-
const reason = yield* run(["update", "--json"]).pipe(
|
|
15557
|
+
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({
|
|
15639
15558
|
duration: options.timeout,
|
|
15640
15559
|
orElse: () => succeed6(`it did not finish within ${options.timeout}`)
|
|
15641
15560
|
}));
|
|
15642
15561
|
if (reason === undefined)
|
|
15643
15562
|
return;
|
|
15644
|
-
const version = yield* run(["--version"]).pipe(
|
|
15563
|
+
const version = yield* run(["--version"]).pipe(map7(({ stdout }) => stdout.trim() || "an unknown version"), timeout("10 seconds"), orElseSucceed(() => "an unknown version"));
|
|
15645
15564
|
return yield* new HerdrCoreUpdateFailed2({ version, reason: reason.slice(0, 400) });
|
|
15646
15565
|
});
|
|
15647
15566
|
|
|
@@ -15653,7 +15572,7 @@ class CommandFailed2 extends TaggedError("CommandFailed") {
|
|
|
15653
15572
|
}
|
|
15654
15573
|
var runCommand2 = (command, args, options = {}) => gen(function* () {
|
|
15655
15574
|
const spawner = yield* ChildProcessSpawner;
|
|
15656
|
-
const handle = yield* spawner.spawn(
|
|
15575
|
+
const handle = yield* spawner.spawn(make3(command, args, {
|
|
15657
15576
|
stdin: "ignore",
|
|
15658
15577
|
...options.cwd === undefined ? undefined : { cwd: options.cwd },
|
|
15659
15578
|
...options.env === undefined ? undefined : { extendEnv: true, env: options.env }
|
|
@@ -15679,7 +15598,7 @@ var shellOutputTailChars2 = 64 * 1024;
|
|
|
15679
15598
|
var runProcess2 = (argv, options) => gen(function* () {
|
|
15680
15599
|
const spawner = yield* ChildProcessSpawner;
|
|
15681
15600
|
const [command, ...args] = argv;
|
|
15682
|
-
const handle = yield* spawner.spawn(
|
|
15601
|
+
const handle = yield* spawner.spawn(make3(command, args, {
|
|
15683
15602
|
stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
|
|
15684
15603
|
...options.cwd === undefined ? undefined : { cwd: options.cwd },
|
|
15685
15604
|
env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
|
|
@@ -15726,7 +15645,7 @@ var detectHarnesses2 = gen(function* () {
|
|
|
15726
15645
|
const home = (yield* optionalEnv("HOME")) ?? "/";
|
|
15727
15646
|
const searchPath = ((yield* optionalEnv("PATH")) ?? "").split(":").filter(Boolean);
|
|
15728
15647
|
const exists = (file) => fs.exists(file).pipe(orElseSucceed(() => false));
|
|
15729
|
-
const any = (items, test) =>
|
|
15648
|
+
const any = (items, test) => map7(findFirst(items, test), isSome);
|
|
15730
15649
|
const loginFound = (login) => gen(function* () {
|
|
15731
15650
|
const file = path.join(home, login.path);
|
|
15732
15651
|
if (!(yield* exists(file)))
|
|
@@ -15742,7 +15661,7 @@ var detectHarnesses2 = gen(function* () {
|
|
|
15742
15661
|
unavailable.push({ harness: harness.id, missing: [`\`${harness.id}\` is not installed`] });
|
|
15743
15662
|
continue;
|
|
15744
15663
|
}
|
|
15745
|
-
const loggedIn = (yield* any(harness.keys, (key) =>
|
|
15664
|
+
const loggedIn = (yield* any(harness.keys, (key) => map7(optionalEnv(key), Boolean))) || (yield* any(harness.logins, loginFound));
|
|
15746
15665
|
if (loggedIn)
|
|
15747
15666
|
harnesses.push(harness.id);
|
|
15748
15667
|
else
|
|
@@ -16112,4 +16031,4 @@ function checkServices(declaration) {
|
|
|
16112
16031
|
return isSome(decoded) ? [...new Set(decoded.value.services)] : undefined;
|
|
16113
16032
|
}
|
|
16114
16033
|
|
|
16115
|
-
export {
|
|
16034
|
+
export { WebCrypto, SecureRandom, layerWebCrypto, empty, fromInput, merge, runMain, layer, layer2, Stdio, Terminal, layer3, error, log, toDate, parseDate, toIso, currentDate, wallClockMillis, waitingOnWords, queueWords, scanDurableSurface, redactResponseSurface, redactCredentials, redactedOutputTail, SafeJson, ReleaseChannels, DefaultReleaseChannel, newerKitmanVersion, releaseChannelOffers, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, tokensSpent, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, RunWaitUntils, isTestReportName, checkTests, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, MaxRunnerConcurrency, PinnedImage, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, deliveryProviderActions, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, repositoryKey, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw, make5, get, post, put, setHeaders, acceptJson, bodyUint8Array, bodyJsonUnsafe, bodyUrlParams, schemaBodyJson, filterStatusOk, HttpClient, execute, get2, Fetch, layer4, Socket, SocketReadError, SocketError, WebSocketConstructor, layerWebSocketConstructorGlobal, layerWebSocket, runDisplayLabels, listedSummary, KitName, KitDigest, defaultKitName, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, runnerReleaseChannelPath, 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 };
|