@kitman-sh/cli 0.14.5 → 0.14.7
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-s6bcx409.js → chunk-64zvzv63.js} +6 -6
- package/dist/{chunk-4qpmjrd2.js → chunk-79g5zh2p.js} +2 -2
- package/dist/{chunk-c80dvhxf.js → chunk-8k6adfg7.js} +1 -1
- package/dist/{chunk-me5hk67r.js → chunk-9yenzg12.js} +18 -18
- package/dist/{chunk-cs0b1w4z.js → chunk-ag19ejy7.js} +9 -9
- package/dist/{chunk-mwdgz2s2.js → chunk-aj2608jz.js} +413 -146
- package/dist/{chunk-77jk3v8v.js → chunk-b009hdm0.js} +5 -5
- package/dist/{chunk-vt8aqeby.js → chunk-bbf0jzsc.js} +1 -1
- package/dist/{chunk-rbbh4f56.js → chunk-bdd62njv.js} +36 -178
- package/dist/{chunk-fch7pjzh.js → chunk-bpx2zjh7.js} +4 -2
- package/dist/{chunk-reb6rftm.js → chunk-bty0mbn4.js} +203 -31
- package/dist/{chunk-vt5p65jd.js → chunk-c9j28q63.js} +22 -22
- package/dist/{chunk-p2p3k2d5.js → chunk-cn86thbx.js} +4 -4
- package/dist/{chunk-zdfrtydr.js → chunk-d2bqqd9t.js} +5 -5
- package/dist/{chunk-07xpz8bh.js → chunk-gnhfwa99.js} +1 -1
- package/dist/{chunk-4ywn8fya.js → chunk-htxs2z8d.js} +6 -6
- package/dist/{chunk-jp7cjnng.js → chunk-hz4t408c.js} +4 -4
- package/dist/{chunk-4vrfpwcr.js → chunk-jv4p85q5.js} +32 -9
- package/dist/{chunk-hbfwyjak.js → chunk-qkh0dhad.js} +3 -3
- package/dist/{chunk-d2x7y78c.js → chunk-rjz0pnf9.js} +4 -4
- package/dist/{chunk-k32w2t9h.js → chunk-s7rhz991.js} +6 -6
- package/dist/{chunk-93xj74qp.js → chunk-w8pevmva.js} +3 -3
- package/dist/{chunk-mz803qps.js → chunk-xxx61cda.js} +34 -30
- package/dist/{chunk-cwdrhsvk.js → chunk-y6njjend.js} +2 -2
- package/dist/{chunk-wttgq85b.js → chunk-zpp4jg4a.js} +60 -60
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
assignProperty,
|
|
39
39
|
PipeInspectableProto,
|
|
40
40
|
withFiber,
|
|
41
|
-
|
|
41
|
+
make13,
|
|
42
42
|
strictEqual,
|
|
43
43
|
Tuple,
|
|
44
44
|
Number2,
|
|
@@ -58,13 +58,15 @@ import {
|
|
|
58
58
|
Service2,
|
|
59
59
|
makeUnsafe4,
|
|
60
60
|
empty3,
|
|
61
|
-
|
|
61
|
+
make14,
|
|
62
62
|
add,
|
|
63
63
|
getOrUndefined2,
|
|
64
64
|
getOrUndefinedUnsafe,
|
|
65
|
-
|
|
65
|
+
get3,
|
|
66
66
|
merge3,
|
|
67
67
|
Reference,
|
|
68
|
+
fromInputUnsafe,
|
|
69
|
+
isFinite,
|
|
68
70
|
millis,
|
|
69
71
|
seconds,
|
|
70
72
|
toMillis,
|
|
@@ -84,14 +86,14 @@ import {
|
|
|
84
86
|
DisablePropagation,
|
|
85
87
|
sync,
|
|
86
88
|
map7,
|
|
87
|
-
ClockRef,
|
|
88
|
-
currentTimeMillis2,
|
|
89
89
|
ConsoleRef,
|
|
90
90
|
succeed3,
|
|
91
91
|
fail4,
|
|
92
|
+
void_2,
|
|
92
93
|
isSuccess2,
|
|
94
|
+
isFailure2,
|
|
93
95
|
makeUnsafe5,
|
|
94
|
-
|
|
96
|
+
make15,
|
|
95
97
|
_await,
|
|
96
98
|
fail5,
|
|
97
99
|
isDone,
|
|
@@ -99,8 +101,12 @@ import {
|
|
|
99
101
|
succeed4,
|
|
100
102
|
doneUnsafe,
|
|
101
103
|
TracerTimingEnabled,
|
|
104
|
+
Scope,
|
|
105
|
+
makeUnsafe6,
|
|
102
106
|
provide,
|
|
107
|
+
addFinalizerExit,
|
|
103
108
|
addFinalizer,
|
|
109
|
+
close,
|
|
104
110
|
succeed5,
|
|
105
111
|
effect,
|
|
106
112
|
effectContext,
|
|
@@ -152,6 +158,7 @@ import {
|
|
|
152
158
|
tapCause,
|
|
153
159
|
retry,
|
|
154
160
|
ignore,
|
|
161
|
+
ignoreCause,
|
|
155
162
|
orElseSucceed,
|
|
156
163
|
timeout,
|
|
157
164
|
timeoutOrElse,
|
|
@@ -163,6 +170,7 @@ import {
|
|
|
163
170
|
context,
|
|
164
171
|
contextWith,
|
|
165
172
|
provide3,
|
|
173
|
+
provideContext2,
|
|
166
174
|
serviceOption,
|
|
167
175
|
updateContext,
|
|
168
176
|
provideService,
|
|
@@ -173,6 +181,7 @@ import {
|
|
|
173
181
|
addFinalizer2,
|
|
174
182
|
ensuring2,
|
|
175
183
|
onError,
|
|
184
|
+
onExit,
|
|
176
185
|
cached,
|
|
177
186
|
interrupt3,
|
|
178
187
|
interruptible,
|
|
@@ -184,6 +193,7 @@ import {
|
|
|
184
193
|
withParentSpan,
|
|
185
194
|
forkScoped,
|
|
186
195
|
runFork,
|
|
196
|
+
runForkWith,
|
|
187
197
|
runPromise,
|
|
188
198
|
runPromiseWith,
|
|
189
199
|
runSync,
|
|
@@ -203,7 +213,7 @@ import {
|
|
|
203
213
|
decodeEffect,
|
|
204
214
|
decodeUnknownOption,
|
|
205
215
|
decodeOption,
|
|
206
|
-
|
|
216
|
+
make16,
|
|
207
217
|
isSchema,
|
|
208
218
|
optionalKey,
|
|
209
219
|
optional,
|
|
@@ -263,11 +273,30 @@ import {
|
|
|
263
273
|
decodeJsonStringOption,
|
|
264
274
|
encodeJsonStringSync,
|
|
265
275
|
encodePrettyJsonString
|
|
266
|
-
} from "./chunk-
|
|
276
|
+
} from "./chunk-zpp4jg4a.js";
|
|
277
|
+
import {
|
|
278
|
+
isDateTime,
|
|
279
|
+
Numeric,
|
|
280
|
+
isWholeNumber,
|
|
281
|
+
guard,
|
|
282
|
+
Id,
|
|
283
|
+
Timestamp,
|
|
284
|
+
ActorType,
|
|
285
|
+
SecretName,
|
|
286
|
+
SecretScope,
|
|
287
|
+
SecretHosts,
|
|
288
|
+
isSecretReference
|
|
289
|
+
} from "./chunk-8k6adfg7.js";
|
|
267
290
|
import {
|
|
268
291
|
map,
|
|
269
292
|
makeEquivalence,
|
|
293
|
+
Clock,
|
|
294
|
+
currentTimeMillis,
|
|
270
295
|
bytes,
|
|
296
|
+
join,
|
|
297
|
+
interrupt,
|
|
298
|
+
getCurrent,
|
|
299
|
+
runIn,
|
|
271
300
|
BadArgument,
|
|
272
301
|
systemError,
|
|
273
302
|
badArgument,
|
|
@@ -289,13 +318,11 @@ import {
|
|
|
289
318
|
isSink,
|
|
290
319
|
fromChannel,
|
|
291
320
|
drain,
|
|
292
|
-
make10,
|
|
293
|
-
get3,
|
|
294
321
|
isStream,
|
|
295
322
|
fromChannel2,
|
|
296
323
|
callback,
|
|
297
324
|
empty2,
|
|
298
|
-
|
|
325
|
+
make10,
|
|
299
326
|
suspend,
|
|
300
327
|
fail2,
|
|
301
328
|
fromQueue,
|
|
@@ -321,29 +348,17 @@ import {
|
|
|
321
348
|
mkArrayBuffer,
|
|
322
349
|
toReadableStreamEffect,
|
|
323
350
|
FileSystem,
|
|
324
|
-
|
|
351
|
+
make11,
|
|
325
352
|
FileTypeId,
|
|
326
353
|
WatchBackend,
|
|
327
354
|
Path,
|
|
328
|
-
|
|
355
|
+
make12,
|
|
329
356
|
option,
|
|
330
357
|
String2,
|
|
331
358
|
optionalEnv,
|
|
332
|
-
harnessesUnsupportedInSrt2
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
isDateTime,
|
|
336
|
-
Numeric,
|
|
337
|
-
isWholeNumber,
|
|
338
|
-
guard,
|
|
339
|
-
Id,
|
|
340
|
-
Timestamp,
|
|
341
|
-
ActorType,
|
|
342
|
-
SecretName,
|
|
343
|
-
SecretScope,
|
|
344
|
-
SecretHosts,
|
|
345
|
-
isSecretReference
|
|
346
|
-
} from "./chunk-c80dvhxf.js";
|
|
359
|
+
harnessesUnsupportedInSrt2,
|
|
360
|
+
harnessesUnsupportedInDocker2
|
|
361
|
+
} from "./chunk-bdd62njv.js";
|
|
347
362
|
import {
|
|
348
363
|
isRedacted,
|
|
349
364
|
make,
|
|
@@ -357,15 +372,11 @@ import {
|
|
|
357
372
|
make3,
|
|
358
373
|
parseFdName,
|
|
359
374
|
fdName
|
|
360
|
-
} from "./chunk-
|
|
375
|
+
} from "./chunk-79g5zh2p.js";
|
|
361
376
|
|
|
362
377
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
|
|
363
378
|
var makeEquivalence3 = Tuple;
|
|
364
379
|
|
|
365
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Clock.js
|
|
366
|
-
var Clock = ClockRef;
|
|
367
|
-
var currentTimeMillis = currentTimeMillis2;
|
|
368
|
-
|
|
369
380
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/dateTime.js
|
|
370
381
|
var TypeId = "~effect/DateTime";
|
|
371
382
|
var TimeZoneTypeId = "~effect/DateTime/TimeZone";
|
|
@@ -500,7 +511,7 @@ var fromDateUnsafe = (date) => {
|
|
|
500
511
|
}
|
|
501
512
|
return makeUtc(epochMillis);
|
|
502
513
|
};
|
|
503
|
-
var
|
|
514
|
+
var makeUnsafe7 = (input) => {
|
|
504
515
|
if (isDateTime2(input)) {
|
|
505
516
|
return input;
|
|
506
517
|
} else if (input instanceof Date) {
|
|
@@ -520,7 +531,7 @@ var makeUnsafe6 = (input) => {
|
|
|
520
531
|
var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
|
|
521
532
|
var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
|
|
522
533
|
var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
|
|
523
|
-
var make4 = /* @__PURE__ */ liftThrowable(
|
|
534
|
+
var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe7);
|
|
524
535
|
var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
|
|
525
536
|
var nowUnsafe = () => makeUtc(Date.now());
|
|
526
537
|
var toDateUtc = (self) => new Date(self.epochMilliseconds);
|
|
@@ -627,7 +638,7 @@ class Metric$ {
|
|
|
627
638
|
}
|
|
628
639
|
hook(context) {
|
|
629
640
|
const key = this.key(context);
|
|
630
|
-
const registry =
|
|
641
|
+
const registry = get3(context, MetricRegistry);
|
|
631
642
|
let metadata = registry.get(key);
|
|
632
643
|
if (isUndefined(metadata)) {
|
|
633
644
|
metadata = this.metadata(this.createHooks());
|
|
@@ -636,11 +647,11 @@ class Metric$ {
|
|
|
636
647
|
return metadata.hooks;
|
|
637
648
|
}
|
|
638
649
|
removeUnsafe(context) {
|
|
639
|
-
|
|
650
|
+
get3(context, MetricRegistry).delete(this.key(context));
|
|
640
651
|
}
|
|
641
652
|
registerUnsafe(context, hooks) {
|
|
642
653
|
const key = this.key(context);
|
|
643
|
-
const registry =
|
|
654
|
+
const registry = get3(context, MetricRegistry);
|
|
644
655
|
const metadata = this.metadata({
|
|
645
656
|
get: hooks.get,
|
|
646
657
|
update: constVoid,
|
|
@@ -656,7 +667,7 @@ class Metric$ {
|
|
|
656
667
|
};
|
|
657
668
|
}
|
|
658
669
|
key(context) {
|
|
659
|
-
const extraAttributes =
|
|
670
|
+
const extraAttributes = get3(context, CurrentMetricAttributes);
|
|
660
671
|
if (extraAttributes !== this.#extraAttributes) {
|
|
661
672
|
this.#extraAttributes = extraAttributes;
|
|
662
673
|
const merged = mergeAttributes(this.attributes, extraAttributes);
|
|
@@ -908,9 +919,151 @@ var toNumber = (b) => {
|
|
|
908
919
|
return some(Number(b));
|
|
909
920
|
};
|
|
910
921
|
|
|
922
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
|
|
923
|
+
var TypeId3 = "~effect/RcRef";
|
|
924
|
+
var stateEmpty = {
|
|
925
|
+
_tag: "Empty"
|
|
926
|
+
};
|
|
927
|
+
var stateClosed = {
|
|
928
|
+
_tag: "Closed"
|
|
929
|
+
};
|
|
930
|
+
var variance = {
|
|
931
|
+
_A: identity,
|
|
932
|
+
_E: identity
|
|
933
|
+
};
|
|
934
|
+
|
|
935
|
+
class RcRefImpl {
|
|
936
|
+
[TypeId3] = variance;
|
|
937
|
+
pipe() {
|
|
938
|
+
return pipeArguments(this, arguments);
|
|
939
|
+
}
|
|
940
|
+
state = stateEmpty;
|
|
941
|
+
acquire;
|
|
942
|
+
context;
|
|
943
|
+
scope;
|
|
944
|
+
idleTimeToLive;
|
|
945
|
+
constructor(acquire, context, scope, idleTimeToLive) {
|
|
946
|
+
this.acquire = acquire;
|
|
947
|
+
this.context = context;
|
|
948
|
+
this.scope = scope;
|
|
949
|
+
this.idleTimeToLive = idleTimeToLive;
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
var make17 = (options) => withFiber2((fiber) => {
|
|
953
|
+
const context = fiber.context;
|
|
954
|
+
const scope = get3(context, Scope);
|
|
955
|
+
const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
|
|
956
|
+
return as(addFinalizerExit(scope, () => {
|
|
957
|
+
const state = ref.state;
|
|
958
|
+
ref.state = stateClosed;
|
|
959
|
+
if (state._tag === "Acquired")
|
|
960
|
+
return close(state.scope, void_2);
|
|
961
|
+
if (state._tag === "Acquiring")
|
|
962
|
+
return interrupt(state.fiber);
|
|
963
|
+
return void_3;
|
|
964
|
+
}), ref);
|
|
965
|
+
});
|
|
966
|
+
var getState = (self, restore) => {
|
|
967
|
+
switch (self.state._tag) {
|
|
968
|
+
case "Closed": {
|
|
969
|
+
return interrupt3;
|
|
970
|
+
}
|
|
971
|
+
case "Acquired": {
|
|
972
|
+
const state = self.state;
|
|
973
|
+
state.refCount++;
|
|
974
|
+
return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
|
|
975
|
+
}
|
|
976
|
+
case "Acquiring": {
|
|
977
|
+
const state = self.state;
|
|
978
|
+
state.awaiters++;
|
|
979
|
+
return awaitAcquiring(self, state, restore);
|
|
980
|
+
}
|
|
981
|
+
case "Empty": {
|
|
982
|
+
const acquiring = {
|
|
983
|
+
_tag: "Acquiring",
|
|
984
|
+
fiber: undefined,
|
|
985
|
+
awaiters: 1,
|
|
986
|
+
acquired: undefined
|
|
987
|
+
};
|
|
988
|
+
self.state = acquiring;
|
|
989
|
+
const scope = makeUnsafe6();
|
|
990
|
+
const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
|
|
991
|
+
if (self.state !== acquiring) {
|
|
992
|
+
return interrupt3;
|
|
993
|
+
}
|
|
994
|
+
const state = {
|
|
995
|
+
_tag: "Acquired",
|
|
996
|
+
value,
|
|
997
|
+
scope,
|
|
998
|
+
fiber: undefined,
|
|
999
|
+
refCount: acquiring.awaiters,
|
|
1000
|
+
invalidated: false
|
|
1001
|
+
};
|
|
1002
|
+
self.state = state;
|
|
1003
|
+
acquiring.acquired = state;
|
|
1004
|
+
return succeed6(state);
|
|
1005
|
+
}), onExit((exit) => {
|
|
1006
|
+
if (isSuccess2(exit))
|
|
1007
|
+
return void_3;
|
|
1008
|
+
if (self.state === acquiring)
|
|
1009
|
+
self.state = stateEmpty;
|
|
1010
|
+
return close(scope, exit);
|
|
1011
|
+
}));
|
|
1012
|
+
acquiring.fiber = runForkWith(getCurrent().context)(acquire);
|
|
1013
|
+
return awaitAcquiring(self, acquiring, restore);
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
};
|
|
1017
|
+
var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
|
|
1018
|
+
const acquired = acquiring.acquired;
|
|
1019
|
+
if (acquired !== undefined) {
|
|
1020
|
+
return isFailure2(exit) ? release(self, acquired) : void_3;
|
|
1021
|
+
}
|
|
1022
|
+
if (--acquiring.awaiters > 0 || self.state !== acquiring)
|
|
1023
|
+
return void_3;
|
|
1024
|
+
self.state = stateEmpty;
|
|
1025
|
+
return interrupt(acquiring.fiber);
|
|
1026
|
+
});
|
|
1027
|
+
var get4 = (self_) => {
|
|
1028
|
+
const self = self_;
|
|
1029
|
+
return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
|
|
1030
|
+
};
|
|
1031
|
+
var release = (self, state) => {
|
|
1032
|
+
state.refCount--;
|
|
1033
|
+
if (state.refCount > 0) {
|
|
1034
|
+
return void_3;
|
|
1035
|
+
}
|
|
1036
|
+
const idleTimeToLive = self.idleTimeToLive;
|
|
1037
|
+
if (idleTimeToLive === undefined || state.invalidated) {
|
|
1038
|
+
if (self.state === state) {
|
|
1039
|
+
self.state = stateEmpty;
|
|
1040
|
+
}
|
|
1041
|
+
return close(state.scope, void_2);
|
|
1042
|
+
} else if (!isFinite(idleTimeToLive)) {
|
|
1043
|
+
return void_3;
|
|
1044
|
+
}
|
|
1045
|
+
state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
|
|
1046
|
+
if (self.state === state && state.refCount === 0) {
|
|
1047
|
+
self.state = stateEmpty;
|
|
1048
|
+
return ignoreCause(close(state.scope, void_2), {
|
|
1049
|
+
log: "Unhandled",
|
|
1050
|
+
message: "Unhandled error in RcRef finalizer"
|
|
1051
|
+
});
|
|
1052
|
+
}
|
|
1053
|
+
return void_3;
|
|
1054
|
+
})).pipe(ensuring2(sync2(() => {
|
|
1055
|
+
state.fiber = undefined;
|
|
1056
|
+
})), runForkWith(self.context), runIn(self.scope));
|
|
1057
|
+
return void_3;
|
|
1058
|
+
};
|
|
1059
|
+
|
|
1060
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
|
|
1061
|
+
var make18 = make17;
|
|
1062
|
+
var get5 = get4;
|
|
1063
|
+
|
|
911
1064
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
|
|
912
|
-
var makeUnsafe =
|
|
913
|
-
var
|
|
1065
|
+
var makeUnsafe = makeUnsafe7;
|
|
1066
|
+
var make19 = make4;
|
|
914
1067
|
var now2 = now;
|
|
915
1068
|
var nowUnsafe2 = nowUnsafe;
|
|
916
1069
|
var toDateUtc2 = toDateUtc;
|
|
@@ -1229,7 +1382,7 @@ var taskkill = (childProcess, onExit = () => {}) => {
|
|
|
1229
1382
|
windowsHide: true
|
|
1230
1383
|
}, onExit);
|
|
1231
1384
|
};
|
|
1232
|
-
var
|
|
1385
|
+
var make20 = /* @__PURE__ */ gen(function* () {
|
|
1233
1386
|
const fs = yield* FileSystem;
|
|
1234
1387
|
const path = yield* Path;
|
|
1235
1388
|
const resolveWorkingDirectory = fnUntraced(function* (options) {
|
|
@@ -1758,7 +1911,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
|
|
|
1758
1911
|
});
|
|
1759
1912
|
return make2(spawnCommand);
|
|
1760
1913
|
});
|
|
1761
|
-
var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner,
|
|
1914
|
+
var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make20);
|
|
1762
1915
|
var flattenCommand = (command) => {
|
|
1763
1916
|
const commands = [];
|
|
1764
1917
|
const pipeOptions = [];
|
|
@@ -2242,7 +2395,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
|
|
|
2242
2395
|
resume(fail7(handleBadArgument("writeFile")(err)));
|
|
2243
2396
|
}
|
|
2244
2397
|
});
|
|
2245
|
-
var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) =>
|
|
2398
|
+
var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make11({
|
|
2246
2399
|
access: access2,
|
|
2247
2400
|
chmod: chmod2,
|
|
2248
2401
|
chown: chown2,
|
|
@@ -2302,15 +2455,15 @@ var fileUrlOps = (windows) => ({
|
|
|
2302
2455
|
})
|
|
2303
2456
|
})
|
|
2304
2457
|
});
|
|
2305
|
-
var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2458
|
+
var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
|
|
2306
2459
|
...NodePath.posix,
|
|
2307
2460
|
.../* @__PURE__ */ fileUrlOps(false)
|
|
2308
2461
|
}));
|
|
2309
|
-
var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2462
|
+
var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
|
|
2310
2463
|
...NodePath.win32,
|
|
2311
2464
|
.../* @__PURE__ */ fileUrlOps(true)
|
|
2312
2465
|
}));
|
|
2313
|
-
var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2466
|
+
var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
|
|
2314
2467
|
...NodePath,
|
|
2315
2468
|
.../* @__PURE__ */ fileUrlOps(undefined)
|
|
2316
2469
|
}));
|
|
@@ -2319,10 +2472,10 @@ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
|
|
|
2319
2472
|
var layer2 = layer7;
|
|
2320
2473
|
|
|
2321
2474
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stdio.js
|
|
2322
|
-
var
|
|
2323
|
-
var Stdio = /* @__PURE__ */ Service2(
|
|
2324
|
-
var
|
|
2325
|
-
[
|
|
2475
|
+
var TypeId4 = "~effect/Stdio";
|
|
2476
|
+
var Stdio = /* @__PURE__ */ Service2(TypeId4);
|
|
2477
|
+
var make21 = (options) => ({
|
|
2478
|
+
[TypeId4]: TypeId4,
|
|
2326
2479
|
stdinIsTerminal: succeed6(false),
|
|
2327
2480
|
stdoutIsTerminal: succeed6(false),
|
|
2328
2481
|
stderrIsTerminal: succeed6(false),
|
|
@@ -2330,7 +2483,7 @@ var make20 = (options) => ({
|
|
|
2330
2483
|
});
|
|
2331
2484
|
|
|
2332
2485
|
// node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
|
|
2333
|
-
var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */
|
|
2486
|
+
var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make21({
|
|
2334
2487
|
args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
|
|
2335
2488
|
stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
|
|
2336
2489
|
stdoutIsTerminal: /* @__PURE__ */ sync2(() => process.stdout.isTTY === true),
|
|
@@ -2530,7 +2683,7 @@ var makeUuid = (bytes, randomBytes, format) => {
|
|
|
2530
2683
|
const uuid = bytes(randomBytes(16));
|
|
2531
2684
|
return format === "bytes" ? uuid : stringify(uuid);
|
|
2532
2685
|
};
|
|
2533
|
-
var
|
|
2686
|
+
var make22 = (randomBytes) => {
|
|
2534
2687
|
const randomBytesChecked = (size) => {
|
|
2535
2688
|
checkSize(size);
|
|
2536
2689
|
return randomBytes(size);
|
|
@@ -2564,13 +2717,18 @@ var fillRandom = (crypto2, size) => {
|
|
|
2564
2717
|
}
|
|
2565
2718
|
return bytes;
|
|
2566
2719
|
};
|
|
2567
|
-
var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(
|
|
2720
|
+
var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make22((size) => fillRandom(crypto2, size)))));
|
|
2721
|
+
var randomBytesUnsafe = (size) => {
|
|
2722
|
+
checkSize(size);
|
|
2723
|
+
return fillRandom(globalThis.crypto, size);
|
|
2724
|
+
};
|
|
2725
|
+
var uuidV4Unsafe = (options) => makeUuid(v4Bytes, randomBytesUnsafe, options?.format);
|
|
2568
2726
|
|
|
2569
2727
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
|
|
2570
|
-
var
|
|
2728
|
+
var TypeId5 = "~effect/http/Cookies";
|
|
2571
2729
|
var CookieTypeId = "~effect/http/Cookies/Cookie";
|
|
2572
2730
|
var Proto2 = {
|
|
2573
|
-
[
|
|
2731
|
+
[TypeId5]: TypeId5,
|
|
2574
2732
|
...BaseProto,
|
|
2575
2733
|
toJSON() {
|
|
2576
2734
|
return {
|
|
@@ -2749,14 +2907,14 @@ var tryDecodeURIComponent = (str) => {
|
|
|
2749
2907
|
};
|
|
2750
2908
|
|
|
2751
2909
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Headers.js
|
|
2752
|
-
var
|
|
2910
|
+
var TypeId6 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
|
|
2753
2911
|
var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
|
|
2754
|
-
[
|
|
2755
|
-
value:
|
|
2912
|
+
[TypeId6]: {
|
|
2913
|
+
value: TypeId6
|
|
2756
2914
|
},
|
|
2757
2915
|
[symbolRedactable]: {
|
|
2758
2916
|
value(context) {
|
|
2759
|
-
return redact2(this,
|
|
2917
|
+
return redact2(this, get3(context, CurrentRedactedNames));
|
|
2760
2918
|
}
|
|
2761
2919
|
},
|
|
2762
2920
|
toJSON: {
|
|
@@ -2781,7 +2939,7 @@ var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
|
|
|
2781
2939
|
value: BaseProto[NodeInspectSymbol]
|
|
2782
2940
|
}
|
|
2783
2941
|
});
|
|
2784
|
-
var
|
|
2942
|
+
var make23 = (input) => Object.assign(Object.create(Proto3), input);
|
|
2785
2943
|
var Equivalence2 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
|
|
2786
2944
|
var empty = /* @__PURE__ */ Object.create(Proto3);
|
|
2787
2945
|
var fromInput = (input) => {
|
|
@@ -2806,21 +2964,21 @@ var fromInput = (input) => {
|
|
|
2806
2964
|
};
|
|
2807
2965
|
var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto3);
|
|
2808
2966
|
var set = /* @__PURE__ */ dual(3, (self, key, value) => {
|
|
2809
|
-
const out =
|
|
2967
|
+
const out = make23(self);
|
|
2810
2968
|
out[key.toLowerCase()] = value;
|
|
2811
2969
|
return out;
|
|
2812
2970
|
});
|
|
2813
|
-
var setAll = /* @__PURE__ */ dual(2, (self, headers) =>
|
|
2971
|
+
var setAll = /* @__PURE__ */ dual(2, (self, headers) => make23({
|
|
2814
2972
|
...self,
|
|
2815
2973
|
...fromInput(headers)
|
|
2816
2974
|
}));
|
|
2817
2975
|
var merge = /* @__PURE__ */ dual(2, (self, headers) => {
|
|
2818
|
-
const out =
|
|
2976
|
+
const out = make23(self);
|
|
2819
2977
|
Object.assign(out, headers);
|
|
2820
2978
|
return out;
|
|
2821
2979
|
});
|
|
2822
2980
|
var remove2 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
2823
|
-
const out =
|
|
2981
|
+
const out = make23(self);
|
|
2824
2982
|
delete out[key.toLowerCase()];
|
|
2825
2983
|
return out;
|
|
2826
2984
|
});
|
|
@@ -2877,18 +3035,18 @@ var bodyDecoder = /* @__PURE__ */ new TextDecoder("utf-8", {
|
|
|
2877
3035
|
var fromBody = (bytes) => new URLSearchParams(bodyDecoder.decode(bytes).replace(/^\?/, "%3F"));
|
|
2878
3036
|
|
|
2879
3037
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/UrlParams.js
|
|
2880
|
-
var
|
|
2881
|
-
var isUrlParams = (u) => hasProperty(u,
|
|
3038
|
+
var TypeId7 = "~effect/http/UrlParams";
|
|
3039
|
+
var isUrlParams = (u) => hasProperty(u, TypeId7);
|
|
2882
3040
|
var Proto4 = {
|
|
2883
3041
|
...PipeInspectableProto,
|
|
2884
|
-
[
|
|
3042
|
+
[TypeId7]: TypeId7,
|
|
2885
3043
|
[Symbol.iterator]() {
|
|
2886
3044
|
return this.params[Symbol.iterator]();
|
|
2887
3045
|
},
|
|
2888
3046
|
[symbolRedactable](context) {
|
|
2889
3047
|
return {
|
|
2890
3048
|
_id: "UrlParams",
|
|
2891
|
-
params: Object.fromEntries(redact3(this,
|
|
3049
|
+
params: Object.fromEntries(redact3(this, get3(context, CurrentRedactedNames2)))
|
|
2892
3050
|
};
|
|
2893
3051
|
},
|
|
2894
3052
|
toJSON() {
|
|
@@ -2901,7 +3059,7 @@ var Proto4 = {
|
|
|
2901
3059
|
return array(this.params.flat());
|
|
2902
3060
|
}
|
|
2903
3061
|
};
|
|
2904
|
-
var
|
|
3062
|
+
var make24 = (params) => {
|
|
2905
3063
|
const self = Object.create(Proto4);
|
|
2906
3064
|
self.params = params;
|
|
2907
3065
|
return self;
|
|
@@ -2920,7 +3078,7 @@ var fromInput2 = (input) => {
|
|
|
2920
3078
|
out.push(parsed[i]);
|
|
2921
3079
|
}
|
|
2922
3080
|
}
|
|
2923
|
-
return
|
|
3081
|
+
return make24(out);
|
|
2924
3082
|
};
|
|
2925
3083
|
var fromInputNested = (input) => {
|
|
2926
3084
|
const entries = typeof input[Symbol.iterator] === "function" ? fromIterable(input) : Object.entries(input);
|
|
@@ -2944,9 +3102,9 @@ var fromInputNested = (input) => {
|
|
|
2944
3102
|
return out;
|
|
2945
3103
|
};
|
|
2946
3104
|
var coerce = (value) => isRedacted(value) ? value : String(value);
|
|
2947
|
-
var Equivalence3 = /* @__PURE__ */
|
|
3105
|
+
var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
|
|
2948
3106
|
var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
|
|
2949
|
-
var empty4 = /* @__PURE__ */
|
|
3107
|
+
var empty4 = /* @__PURE__ */ make24([]);
|
|
2950
3108
|
var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
2951
3109
|
const params = fromInput2(input).params.slice();
|
|
2952
3110
|
const keys = new Set;
|
|
@@ -2958,7 +3116,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
|
2958
3116
|
continue;
|
|
2959
3117
|
params.push(self.params[i]);
|
|
2960
3118
|
}
|
|
2961
|
-
return
|
|
3119
|
+
return make24(params);
|
|
2962
3120
|
});
|
|
2963
3121
|
var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
|
|
2964
3122
|
var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
@@ -3014,13 +3172,13 @@ var decodeQueryKey = (key) => {
|
|
|
3014
3172
|
return key;
|
|
3015
3173
|
}
|
|
3016
3174
|
};
|
|
3017
|
-
var currentRedactedNames = () =>
|
|
3175
|
+
var currentRedactedNames = () => get3(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
|
|
3018
3176
|
var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
|
|
3019
3177
|
defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
|
|
3020
3178
|
});
|
|
3021
3179
|
|
|
3022
3180
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Terminal.js
|
|
3023
|
-
var
|
|
3181
|
+
var TypeId8 = "~effect/Terminal";
|
|
3024
3182
|
var QuitErrorTypeId = "~effect/Terminal/QuitError";
|
|
3025
3183
|
|
|
3026
3184
|
class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
|
|
@@ -3029,14 +3187,14 @@ class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
|
|
|
3029
3187
|
[QuitErrorTypeId] = QuitErrorTypeId;
|
|
3030
3188
|
}
|
|
3031
3189
|
var Terminal = /* @__PURE__ */ Service2("effect/Terminal");
|
|
3032
|
-
var
|
|
3190
|
+
var make25 = (impl) => Terminal.of({
|
|
3033
3191
|
...impl,
|
|
3034
|
-
[
|
|
3192
|
+
[TypeId8]: TypeId8
|
|
3035
3193
|
});
|
|
3036
3194
|
|
|
3037
3195
|
// node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
|
|
3038
3196
|
import * as readline from "readline";
|
|
3039
|
-
var
|
|
3197
|
+
var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
|
|
3040
3198
|
const stdin = process.stdin;
|
|
3041
3199
|
const stdout = process.stdout;
|
|
3042
3200
|
const lines = yield* make9();
|
|
@@ -3050,7 +3208,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3050
3208
|
};
|
|
3051
3209
|
stdin.once("end", onStdinEnd);
|
|
3052
3210
|
yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
|
|
3053
|
-
const rlRef = yield*
|
|
3211
|
+
const rlRef = yield* make18({
|
|
3054
3212
|
acquire: acquireRelease(sync2(() => {
|
|
3055
3213
|
const rl = readline.createInterface({
|
|
3056
3214
|
input: stdin,
|
|
@@ -3089,7 +3247,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3089
3247
|
if (stdin.isTTY)
|
|
3090
3248
|
stdin.setRawMode(enabled);
|
|
3091
3249
|
});
|
|
3092
|
-
const rawModeRef = yield*
|
|
3250
|
+
const rawModeRef = yield* make18({
|
|
3093
3251
|
acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
|
|
3094
3252
|
idleTimeToLive: "10 millis"
|
|
3095
3253
|
});
|
|
@@ -3140,14 +3298,14 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3140
3298
|
if (inputEnded) {
|
|
3141
3299
|
handleEnd();
|
|
3142
3300
|
} else {
|
|
3143
|
-
yield*
|
|
3144
|
-
yield*
|
|
3301
|
+
yield* get5(rlRef);
|
|
3302
|
+
yield* get5(rawModeRef);
|
|
3145
3303
|
stdin.once("end", handleEnd);
|
|
3146
3304
|
}
|
|
3147
3305
|
return queue;
|
|
3148
3306
|
});
|
|
3149
3307
|
const readLine = suspend3(() => poll(lines).pipe(flatMap3(match({
|
|
3150
|
-
onNone: () => scoped(andThen2(
|
|
3308
|
+
onNone: () => scoped(andThen2(get5(rlRef), take(lines))),
|
|
3151
3309
|
onSome: succeed6
|
|
3152
3310
|
})), mapError2(() => new QuitError({}))));
|
|
3153
3311
|
const display = (prompt) => uninterruptible(callback3((resume) => {
|
|
@@ -3158,7 +3316,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3158
3316
|
cause: err
|
|
3159
3317
|
}))));
|
|
3160
3318
|
}));
|
|
3161
|
-
return
|
|
3319
|
+
return make25({
|
|
3162
3320
|
columns,
|
|
3163
3321
|
rows,
|
|
3164
3322
|
size,
|
|
@@ -3167,7 +3325,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3167
3325
|
display
|
|
3168
3326
|
});
|
|
3169
3327
|
});
|
|
3170
|
-
var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */
|
|
3328
|
+
var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make26(defaultShouldQuit));
|
|
3171
3329
|
function defaultShouldQuit(input) {
|
|
3172
3330
|
const key = input.key;
|
|
3173
3331
|
return key.name === "escape" || key.ctrl && (key.name === "c" || key.name === "d");
|
|
@@ -3194,7 +3352,7 @@ function toDate(input) {
|
|
|
3194
3352
|
return toDateUtc2(makeUnsafe(input));
|
|
3195
3353
|
}
|
|
3196
3354
|
function parseDate(input) {
|
|
3197
|
-
return getOrUndefined(map4(
|
|
3355
|
+
return getOrUndefined(map4(make19(input), toDateUtc2));
|
|
3198
3356
|
}
|
|
3199
3357
|
function toIso(input) {
|
|
3200
3358
|
return formatIso(makeUnsafe(input));
|
|
@@ -7483,7 +7641,7 @@ var RunnerSandboxUnavailable = Struct({
|
|
|
7483
7641
|
backend: RunnerExecutionBackend,
|
|
7484
7642
|
missing: ArraySchema(String4.check(isMinLength(1), isMaxLength(240))).check(isMaxLength(20))
|
|
7485
7643
|
});
|
|
7486
|
-
var DetectedHarnessIds = ["pi", "claude", "codex"];
|
|
7644
|
+
var DetectedHarnessIds = ["pi", "claude", "codex", "antigravity"];
|
|
7487
7645
|
var RunnerHarnessUnavailable = Struct({
|
|
7488
7646
|
harness: RuntimeImplementationId,
|
|
7489
7647
|
missing: ArraySchema(String4.check(isMinLength(1), isMaxLength(240))).check(isMaxLength(20))
|
|
@@ -9829,11 +9987,11 @@ var TranscriptSearchResult = Struct({
|
|
|
9829
9987
|
total: Int
|
|
9830
9988
|
});
|
|
9831
9989
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
|
|
9832
|
-
var
|
|
9990
|
+
var TypeId9 = "~effect/http/HttpBody";
|
|
9833
9991
|
class Proto5 {
|
|
9834
|
-
[
|
|
9992
|
+
[TypeId9];
|
|
9835
9993
|
constructor() {
|
|
9836
|
-
this[
|
|
9994
|
+
this[TypeId9] = TypeId9;
|
|
9837
9995
|
}
|
|
9838
9996
|
[NodeInspectSymbol]() {
|
|
9839
9997
|
return this.toJSON();
|
|
@@ -9924,7 +10082,7 @@ var jsonUnsafe = (body, contentType) => text(JSON.stringify(body), contentType ?
|
|
|
9924
10082
|
var urlParams = (urlParams, contentType) => text(toString(fromInput2(urlParams)), contentType ?? "application/x-www-form-urlencoded");
|
|
9925
10083
|
|
|
9926
10084
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientError.js
|
|
9927
|
-
var
|
|
10085
|
+
var TypeId10 = "~effect/http/HttpClientError";
|
|
9928
10086
|
class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
|
|
9929
10087
|
constructor(props) {
|
|
9930
10088
|
if ("cause" in props.reason) {
|
|
@@ -9936,7 +10094,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
|
|
|
9936
10094
|
super(props);
|
|
9937
10095
|
}
|
|
9938
10096
|
}
|
|
9939
|
-
[
|
|
10097
|
+
[TypeId10] = TypeId10;
|
|
9940
10098
|
get request() {
|
|
9941
10099
|
return this.reason.request;
|
|
9942
10100
|
}
|
|
@@ -10040,7 +10198,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError("EmptyBodyError")) {
|
|
|
10040
10198
|
}
|
|
10041
10199
|
}
|
|
10042
10200
|
|
|
10043
|
-
class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(
|
|
10201
|
+
class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId10)({
|
|
10044
10202
|
_tag: /* @__PURE__ */ tag("HttpError"),
|
|
10045
10203
|
kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
|
|
10046
10204
|
cause: /* @__PURE__ */ optional(/* @__PURE__ */ Defect())
|
|
@@ -10073,7 +10231,7 @@ var updateContentLength = (headers, body) => {
|
|
|
10073
10231
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Url.js
|
|
10074
10232
|
class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
|
|
10075
10233
|
}
|
|
10076
|
-
var
|
|
10234
|
+
var make27 = (url, params, hash) => try_({
|
|
10077
10235
|
try: () => {
|
|
10078
10236
|
const urlInstance = new URL(url, baseUrl());
|
|
10079
10237
|
for (let i = 0;i < params.params.length; i++) {
|
|
@@ -10104,10 +10262,10 @@ var baseUrl = () => {
|
|
|
10104
10262
|
};
|
|
10105
10263
|
|
|
10106
10264
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientRequest.js
|
|
10107
|
-
var
|
|
10108
|
-
var isHttpClientRequest = (u) => hasProperty(u,
|
|
10265
|
+
var TypeId11 = "~effect/http/HttpClientRequest";
|
|
10266
|
+
var isHttpClientRequest = (u) => hasProperty(u, TypeId11);
|
|
10109
10267
|
var Proto6 = {
|
|
10110
|
-
[
|
|
10268
|
+
[TypeId11]: TypeId11,
|
|
10111
10269
|
...BaseProto,
|
|
10112
10270
|
toJSON() {
|
|
10113
10271
|
return {
|
|
@@ -10196,7 +10354,7 @@ var bodyUint8Array = /* @__PURE__ */ dual((args) => isHttpClientRequest(args[0])
|
|
|
10196
10354
|
var bodyJsonUnsafe = /* @__PURE__ */ dual(2, (self, body) => setBody(self, jsonUnsafe(body)));
|
|
10197
10355
|
var bodyUrlParams = /* @__PURE__ */ dual(2, (self, input) => setBody(self, urlParams(fromInput2(input))));
|
|
10198
10356
|
function toUrl(self) {
|
|
10199
|
-
const r =
|
|
10357
|
+
const r = make27(self.url, self.urlParams, getOrUndefined(self.hash));
|
|
10200
10358
|
if (isSuccess(r)) {
|
|
10201
10359
|
return some(r.success);
|
|
10202
10360
|
}
|
|
@@ -10204,7 +10362,7 @@ function toUrl(self) {
|
|
|
10204
10362
|
}
|
|
10205
10363
|
|
|
10206
10364
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpIncomingMessage.js
|
|
10207
|
-
var
|
|
10365
|
+
var TypeId12 = "~effect/http/HttpIncomingMessage";
|
|
10208
10366
|
var schemaBodyJson = (schema, options) => {
|
|
10209
10367
|
const decode = decodeEffect(toCodecJson(schema));
|
|
10210
10368
|
const decodeJson = options?.reviver === undefined ? undefined : decodeEffect(fromJsonString(toCodecJson(schema), options));
|
|
@@ -10223,7 +10381,7 @@ var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
|
|
|
10223
10381
|
var getWebSource = (self) => self[WebSourceSymbol]?.();
|
|
10224
10382
|
|
|
10225
10383
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientResponse.js
|
|
10226
|
-
var
|
|
10384
|
+
var TypeId13 = "~effect/http/HttpClientResponse";
|
|
10227
10385
|
var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
|
|
10228
10386
|
var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail7(new HttpClientError({
|
|
10229
10387
|
reason: new StatusCodeError({
|
|
@@ -10234,16 +10392,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
|
|
|
10234
10392
|
}));
|
|
10235
10393
|
|
|
10236
10394
|
class WebHttpClientResponse extends Class {
|
|
10237
|
-
[TypeId11];
|
|
10238
10395
|
[TypeId12];
|
|
10396
|
+
[TypeId13];
|
|
10239
10397
|
request;
|
|
10240
10398
|
source;
|
|
10241
10399
|
constructor(request, source) {
|
|
10242
10400
|
super();
|
|
10243
10401
|
this.request = request;
|
|
10244
10402
|
this.source = source;
|
|
10245
|
-
this[TypeId11] = TypeId11;
|
|
10246
10403
|
this[TypeId12] = TypeId12;
|
|
10404
|
+
this[TypeId13] = TypeId13;
|
|
10247
10405
|
}
|
|
10248
10406
|
toJSON() {
|
|
10249
10407
|
return inspect(this, {
|
|
@@ -10415,7 +10573,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
|
|
|
10415
10573
|
};
|
|
10416
10574
|
|
|
10417
10575
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClient.js
|
|
10418
|
-
var
|
|
10576
|
+
var TypeId14 = "~effect/http/HttpClient";
|
|
10419
10577
|
var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
|
|
10420
10578
|
var accessor = (method) => (...args) => flatMap3(HttpClient, (client) => client[method](...args));
|
|
10421
10579
|
var execute = /* @__PURE__ */ accessor("execute");
|
|
@@ -10432,7 +10590,7 @@ var makeWith2 = (postprocess, preprocess) => {
|
|
|
10432
10590
|
return self;
|
|
10433
10591
|
};
|
|
10434
10592
|
var Proto7 = {
|
|
10435
|
-
[
|
|
10593
|
+
[TypeId14]: TypeId14,
|
|
10436
10594
|
pipe() {
|
|
10437
10595
|
return pipeArguments(this, arguments);
|
|
10438
10596
|
},
|
|
@@ -10446,10 +10604,10 @@ var Proto7 = {
|
|
|
10446
10604
|
return this.execute(make5(fullMethod)(url, options));
|
|
10447
10605
|
}]))
|
|
10448
10606
|
};
|
|
10449
|
-
var
|
|
10607
|
+
var make28 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
|
|
10450
10608
|
const scopedController = scopedRequests.get(request);
|
|
10451
10609
|
const controller = scopedController ?? new AbortController;
|
|
10452
|
-
const urlResult =
|
|
10610
|
+
const urlResult = make27(request.url, request.urlParams, getOrUndefined(request.hash));
|
|
10453
10611
|
if (isFailure(urlResult)) {
|
|
10454
10612
|
return fail7(new HttpClientError({
|
|
10455
10613
|
reason: new InvalidUrlError({
|
|
@@ -10583,8 +10741,8 @@ class InterruptibleResponse {
|
|
|
10583
10741
|
this.original = original;
|
|
10584
10742
|
this.controller = controller;
|
|
10585
10743
|
}
|
|
10744
|
+
[TypeId13] = TypeId13;
|
|
10586
10745
|
[TypeId12] = TypeId12;
|
|
10587
|
-
[TypeId11] = TypeId11;
|
|
10588
10746
|
applyInterrupt(effect) {
|
|
10589
10747
|
return suspend3(() => {
|
|
10590
10748
|
responseRegistry.unregister(this.original);
|
|
@@ -10682,7 +10840,7 @@ var detectStreamBodySupport = () => {
|
|
|
10682
10840
|
return false;
|
|
10683
10841
|
}
|
|
10684
10842
|
};
|
|
10685
|
-
var fetch2 = /* @__PURE__ */
|
|
10843
|
+
var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
|
|
10686
10844
|
if (request.headers.upgrade !== undefined) {
|
|
10687
10845
|
return fail7(new HttpClientError({
|
|
10688
10846
|
reason: new TransportError({
|
|
@@ -10773,10 +10931,10 @@ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
|
|
|
10773
10931
|
});
|
|
10774
10932
|
var layer4 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch2));
|
|
10775
10933
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/socket/Socket.js
|
|
10776
|
-
var
|
|
10934
|
+
var TypeId15 = "~effect/socket/Socket";
|
|
10777
10935
|
var Socket = /* @__PURE__ */ Service2("effect/socket/Socket");
|
|
10778
|
-
var
|
|
10779
|
-
[
|
|
10936
|
+
var make29 = (options) => Socket.of({
|
|
10937
|
+
[TypeId15]: TypeId15,
|
|
10780
10938
|
reader: options.reader,
|
|
10781
10939
|
writer: options.writer
|
|
10782
10940
|
});
|
|
@@ -11099,7 +11257,7 @@ var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
|
|
|
11099
11257
|
write,
|
|
11100
11258
|
writeAll
|
|
11101
11259
|
});
|
|
11102
|
-
return succeed6(
|
|
11260
|
+
return succeed6(make29({
|
|
11103
11261
|
reader,
|
|
11104
11262
|
writer
|
|
11105
11263
|
}));
|
|
@@ -13739,6 +13897,7 @@ function decisionListQuery(options) {
|
|
|
13739
13897
|
}
|
|
13740
13898
|
|
|
13741
13899
|
// apps/cli/src/auth-lock.ts
|
|
13900
|
+
import { closeSync, constants as constants2, fstatSync, openSync, readFileSync, renameSync, rmSync, writeFileSync } from "fs";
|
|
13742
13901
|
import { DatabaseSync } from "node:sqlite";
|
|
13743
13902
|
|
|
13744
13903
|
// apps/cli/src/errors.ts
|
|
@@ -13900,12 +14059,19 @@ function withAuthLock(authPath, use) {
|
|
|
13900
14059
|
}
|
|
13901
14060
|
function acquire(lockPath) {
|
|
13902
14061
|
return gen(function* () {
|
|
13903
|
-
|
|
14062
|
+
let holder;
|
|
14063
|
+
let deadline = 0;
|
|
13904
14064
|
while (true) {
|
|
13905
14065
|
const lock = yield* tryLock(lockPath);
|
|
13906
14066
|
if (lock)
|
|
13907
14067
|
return lock;
|
|
13908
|
-
|
|
14068
|
+
const now = yield* currentTimeMillis;
|
|
14069
|
+
const current = readHolder(lockPath);
|
|
14070
|
+
if (deadline === 0 || current !== holder) {
|
|
14071
|
+
holder = current;
|
|
14072
|
+
deadline = now + WaitLimitMs;
|
|
14073
|
+
}
|
|
14074
|
+
if (now >= deadline)
|
|
13909
14075
|
return yield* new CliError({
|
|
13910
14076
|
message: `Another kitman process kept ${lockPath} for ${WaitLimitMs / 1000} seconds`
|
|
13911
14077
|
});
|
|
@@ -13919,6 +14085,7 @@ function tryLock(lockPath) {
|
|
|
13919
14085
|
const lock = new DatabaseSync(lockPath);
|
|
13920
14086
|
try {
|
|
13921
14087
|
lock.exec("BEGIN EXCLUSIVE");
|
|
14088
|
+
publishHolder(lockPath);
|
|
13922
14089
|
return lock;
|
|
13923
14090
|
} catch (error) {
|
|
13924
14091
|
lock.close();
|
|
@@ -13930,6 +14097,30 @@ function tryLock(lockPath) {
|
|
|
13930
14097
|
catch: (error) => new CliError({ message: `Could not lock ${lockPath}: ${error instanceof Error ? error.message : String(error)}` })
|
|
13931
14098
|
});
|
|
13932
14099
|
}
|
|
14100
|
+
var holderPath = (lockPath) => `${lockPath}.holder`;
|
|
14101
|
+
function publishHolder(lockPath) {
|
|
14102
|
+
const id = uuidV4Unsafe();
|
|
14103
|
+
const staged = `${holderPath(lockPath)}.${id}`;
|
|
14104
|
+
try {
|
|
14105
|
+
writeFileSync(staged, id, { flag: "wx", mode: 384 });
|
|
14106
|
+
renameSync(staged, holderPath(lockPath));
|
|
14107
|
+
} catch (error) {
|
|
14108
|
+
rmSync(staged, { force: true });
|
|
14109
|
+
throw error;
|
|
14110
|
+
}
|
|
14111
|
+
}
|
|
14112
|
+
function readHolder(lockPath) {
|
|
14113
|
+
let holder;
|
|
14114
|
+
try {
|
|
14115
|
+
holder = openSync(holderPath(lockPath), constants2.O_RDONLY | constants2.O_NOFOLLOW | constants2.O_NONBLOCK);
|
|
14116
|
+
return fstatSync(holder).isFile() ? readFileSync(holder, "utf8") : undefined;
|
|
14117
|
+
} catch {
|
|
14118
|
+
return;
|
|
14119
|
+
} finally {
|
|
14120
|
+
if (holder !== undefined)
|
|
14121
|
+
closeSync(holder);
|
|
14122
|
+
}
|
|
14123
|
+
}
|
|
13933
14124
|
|
|
13934
14125
|
// apps/cli/src/auth.ts
|
|
13935
14126
|
function sessionForApi(auth, apiUrl) {
|
|
@@ -14075,7 +14266,7 @@ function getStreamSchemas(schema) {
|
|
|
14075
14266
|
}
|
|
14076
14267
|
var schema = /* @__PURE__ */ declare(isStream);
|
|
14077
14268
|
function Stream(success, error) {
|
|
14078
|
-
return
|
|
14269
|
+
return make16(schema.ast, {
|
|
14079
14270
|
[StreamSchemaTypeId]: StreamSchemaTypeId,
|
|
14080
14271
|
success,
|
|
14081
14272
|
error
|
|
@@ -14083,9 +14274,9 @@ function Stream(success, error) {
|
|
|
14083
14274
|
}
|
|
14084
14275
|
|
|
14085
14276
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
|
|
14086
|
-
var
|
|
14277
|
+
var TypeId16 = "~effect/rpc/Rpc";
|
|
14087
14278
|
var Proto8 = {
|
|
14088
|
-
[
|
|
14279
|
+
[TypeId16]: TypeId16,
|
|
14089
14280
|
pipe() {
|
|
14090
14281
|
return pipeArguments(this, arguments);
|
|
14091
14282
|
},
|
|
@@ -14252,7 +14443,7 @@ class WorkerUnknownError extends (/* @__PURE__ */ Error3("effect/workers/WorkerE
|
|
|
14252
14443
|
var WorkerErrorReason = /* @__PURE__ */ Union([WorkerSpawnError, WorkerSendError, WorkerReceiveError, WorkerUnknownError]);
|
|
14253
14444
|
|
|
14254
14445
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcClientError.js
|
|
14255
|
-
var
|
|
14446
|
+
var TypeId17 = "~effect/rpc/RpcClientError";
|
|
14256
14447
|
|
|
14257
14448
|
class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError/RpcClientDefect")({
|
|
14258
14449
|
_tag: /* @__PURE__ */ tag("RpcClientDefect"),
|
|
@@ -14261,11 +14452,11 @@ class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError
|
|
|
14261
14452
|
})) {
|
|
14262
14453
|
}
|
|
14263
14454
|
|
|
14264
|
-
class RpcClientError extends (/* @__PURE__ */ Error3(
|
|
14455
|
+
class RpcClientError extends (/* @__PURE__ */ Error3(TypeId17)({
|
|
14265
14456
|
_tag: /* @__PURE__ */ tag("RpcClientError"),
|
|
14266
14457
|
reason: /* @__PURE__ */ Union([WorkerErrorReason, SocketErrorReason, HttpClientErrorSchema, RpcClientDefect])
|
|
14267
14458
|
})) {
|
|
14268
|
-
[
|
|
14459
|
+
[TypeId17] = TypeId17;
|
|
14269
14460
|
get message() {
|
|
14270
14461
|
return `${this.reason._tag}: ${this.reason.message}`;
|
|
14271
14462
|
}
|
|
@@ -14385,7 +14576,7 @@ var RpcGroupProto = {
|
|
|
14385
14576
|
});
|
|
14386
14577
|
},
|
|
14387
14578
|
annotateRpcs(service, value) {
|
|
14388
|
-
return this.annotateRpcsMerge(
|
|
14579
|
+
return this.annotateRpcsMerge(make14(service, value));
|
|
14389
14580
|
},
|
|
14390
14581
|
annotateMerge(context) {
|
|
14391
14582
|
return makeProto2({
|
|
@@ -14413,7 +14604,7 @@ var make7 = (...rpcs) => makeProto2({
|
|
|
14413
14604
|
annotations: empty3()
|
|
14414
14605
|
});
|
|
14415
14606
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
|
|
14416
|
-
var
|
|
14607
|
+
var TypeId18 = "~effect/rpc/RpcMiddleware";
|
|
14417
14608
|
var Service = () => (id, options) => {
|
|
14418
14609
|
const limit = getStackTraceLimit();
|
|
14419
14610
|
let creationError;
|
|
@@ -14431,7 +14622,7 @@ var Service = () => (id, options) => {
|
|
|
14431
14622
|
return creationError?.stack;
|
|
14432
14623
|
}
|
|
14433
14624
|
});
|
|
14434
|
-
ServiceClass_[
|
|
14625
|
+
ServiceClass_[TypeId18] = TypeId18;
|
|
14435
14626
|
ServiceClass_.error = options?.error ?? Never;
|
|
14436
14627
|
ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
|
|
14437
14628
|
return ServiceClass;
|
|
@@ -15075,7 +15266,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
|
|
|
15075
15266
|
var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
|
|
15076
15267
|
|
|
15077
15268
|
// apps/cli/src/oauth.ts
|
|
15078
|
-
var
|
|
15269
|
+
var Scope2 = "openid profile email offline_access kitman:cli";
|
|
15079
15270
|
var CallbackPath = "/auth/callback";
|
|
15080
15271
|
|
|
15081
15272
|
class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
|
|
@@ -15094,7 +15285,7 @@ function buildAuthorizeUrl(input) {
|
|
|
15094
15285
|
url.searchParams.set("response_type", "code");
|
|
15095
15286
|
url.searchParams.set("client_id", input.clientId);
|
|
15096
15287
|
url.searchParams.set("redirect_uri", input.redirectUri);
|
|
15097
|
-
url.searchParams.set("scope",
|
|
15288
|
+
url.searchParams.set("scope", Scope2);
|
|
15098
15289
|
url.searchParams.set("code_challenge", input.codeChallenge);
|
|
15099
15290
|
url.searchParams.set("code_challenge_method", "S256");
|
|
15100
15291
|
url.searchParams.set("state", input.state);
|
|
@@ -15154,7 +15345,7 @@ function toStoredSession(token, existingRefreshToken) {
|
|
|
15154
15345
|
}
|
|
15155
15346
|
function startLoopbackServer(input) {
|
|
15156
15347
|
return gen(function* () {
|
|
15157
|
-
const code = yield*
|
|
15348
|
+
const code = yield* make15();
|
|
15158
15349
|
const context2 = yield* context();
|
|
15159
15350
|
const runSyncExit = runSyncExitWith(context2);
|
|
15160
15351
|
const server = yield* acquireRelease(sync2(() => Bun.serve({
|
|
@@ -15702,7 +15893,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
15702
15893
|
let lastId = 0;
|
|
15703
15894
|
let lost = false;
|
|
15704
15895
|
const notifications = yield* unbounded2();
|
|
15705
|
-
const ended = yield*
|
|
15896
|
+
const ended = yield* make15();
|
|
15706
15897
|
const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
|
|
15707
15898
|
onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
|
|
15708
15899
|
onNone: () => void_3,
|
|
@@ -15729,7 +15920,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
15729
15920
|
if (lost)
|
|
15730
15921
|
return yield* new HerdrCoreConnectionLost2({ method });
|
|
15731
15922
|
const id = ++lastId;
|
|
15732
|
-
const deferred = yield*
|
|
15923
|
+
const deferred = yield* make15();
|
|
15733
15924
|
pending.set(id, { method, deferred });
|
|
15734
15925
|
yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
|
|
15735
15926
|
return yield* _await(deferred);
|
|
@@ -15803,7 +15994,7 @@ var herdrCoreOver = (transport) => ({
|
|
|
15803
15994
|
return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
|
|
15804
15995
|
};
|
|
15805
15996
|
const snapshot = { type: "snapshot", terminals: subscribed.terminals };
|
|
15806
|
-
return concat(
|
|
15997
|
+
return concat(make10(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
|
|
15807
15998
|
}))
|
|
15808
15999
|
});
|
|
15809
16000
|
var spawnedTransport = (env) => gen(function* () {
|
|
@@ -15894,7 +16085,7 @@ var runProcess2 = (argv, options) => gen(function* () {
|
|
|
15894
16085
|
const spawner = yield* ChildProcessSpawner;
|
|
15895
16086
|
const [command, ...args] = argv;
|
|
15896
16087
|
const handle = yield* spawner.spawn(make3(command, args, {
|
|
15897
|
-
stdin: options.stdin === undefined ? "ignore" :
|
|
16088
|
+
stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
|
|
15898
16089
|
...options.cwd === undefined ? undefined : { cwd: options.cwd },
|
|
15899
16090
|
env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
|
|
15900
16091
|
}));
|
|
@@ -15932,6 +16123,14 @@ var detectable = [
|
|
|
15932
16123
|
logins: [{ path: ".codex/auth.json" }],
|
|
15933
16124
|
keys: ["OPENAI_API_KEY", "CODEX_API_KEY"],
|
|
15934
16125
|
login: "run `codex login`"
|
|
16126
|
+
},
|
|
16127
|
+
{
|
|
16128
|
+
id: "antigravity",
|
|
16129
|
+
binary: "agy",
|
|
16130
|
+
name: "Antigravity",
|
|
16131
|
+
logins: [{ path: ".gemini/antigravity-cli/cache/onboarding.json", contains: '"onboardingComplete": true' }],
|
|
16132
|
+
keys: [],
|
|
16133
|
+
login: "run `agy` and sign in with Google"
|
|
15935
16134
|
}
|
|
15936
16135
|
];
|
|
15937
16136
|
var detectHarnesses2 = gen(function* () {
|
|
@@ -15952,8 +16151,9 @@ var detectHarnesses2 = gen(function* () {
|
|
|
15952
16151
|
const harnesses = [];
|
|
15953
16152
|
const unavailable = [];
|
|
15954
16153
|
for (const harness of detectable) {
|
|
15955
|
-
|
|
15956
|
-
|
|
16154
|
+
const binary = harness.binary ?? harness.id;
|
|
16155
|
+
if (!(yield* any(searchPath, (dir) => exists(path.join(dir, binary))))) {
|
|
16156
|
+
unavailable.push({ harness: harness.id, missing: [`\`${binary}\` is not installed`] });
|
|
15957
16157
|
continue;
|
|
15958
16158
|
}
|
|
15959
16159
|
const loggedIn = (yield* any(harness.keys, (key) => map8(optionalEnv(key), Boolean))) || (yield* any(harness.logins, loginFound));
|
|
@@ -15962,13 +16162,15 @@ var detectHarnesses2 = gen(function* () {
|
|
|
15962
16162
|
else
|
|
15963
16163
|
unavailable.push({
|
|
15964
16164
|
harness: harness.id,
|
|
15965
|
-
missing: [
|
|
16165
|
+
missing: [
|
|
16166
|
+
`${harness.name} is not logged in: ${harness.login}${harness.keys[0] === undefined ? "" : `, or set ${harness.keys[0]}`}`
|
|
16167
|
+
]
|
|
15966
16168
|
});
|
|
15967
16169
|
}
|
|
15968
16170
|
return { harnesses, unavailable };
|
|
15969
16171
|
});
|
|
15970
16172
|
// packages/agent-runtime/src/kit-setup-materializer.ts
|
|
15971
|
-
var kitHarnesses = ["claude", "codex", "opencode", "pi"];
|
|
16173
|
+
var kitHarnesses = ["claude", "codex", "opencode", "pi", "antigravity"];
|
|
15972
16174
|
var isKitHarness = (harness) => kitHarnesses.some((known) => known === harness);
|
|
15973
16175
|
var instructionsStart = "<!-- KITMAN_KITS_START -->";
|
|
15974
16176
|
var instructionsEnd = "<!-- KITMAN_KITS_END -->";
|
|
@@ -15976,7 +16178,8 @@ var harnessNames = {
|
|
|
15976
16178
|
claude: "Claude Code",
|
|
15977
16179
|
codex: "Codex",
|
|
15978
16180
|
opencode: "OpenCode",
|
|
15979
|
-
pi: "Pi"
|
|
16181
|
+
pi: "Pi",
|
|
16182
|
+
antigravity: "Antigravity"
|
|
15980
16183
|
};
|
|
15981
16184
|
var envReference = (value) => /^\{env:([A-Za-z_][A-Za-z0-9_]*)\}$/u.exec(value)?.[1];
|
|
15982
16185
|
var bearerReference = (value) => /^Bearer \{env:([A-Za-z_][A-Za-z0-9_]*)\}$/u.exec(value)?.[1];
|
|
@@ -15986,6 +16189,8 @@ var remoteTypes = { claude: "http", opencode: "remote" };
|
|
|
15986
16189
|
var renderMcpServer = (harness, transport) => {
|
|
15987
16190
|
if (harness === "codex")
|
|
15988
16191
|
return renderCodexMcpServer(transport);
|
|
16192
|
+
if (harness === "antigravity")
|
|
16193
|
+
return renderAntigravityMcpServer(transport);
|
|
15989
16194
|
if (transport.kind === "stdio") {
|
|
15990
16195
|
const env = spellAll(harness, transport.env);
|
|
15991
16196
|
if (harness === "opencode")
|
|
@@ -16051,6 +16256,23 @@ var renderCodexMcpServer = (transport) => {
|
|
|
16051
16256
|
...Object.keys(literal).length === 0 ? undefined : { http_headers: literal }
|
|
16052
16257
|
});
|
|
16053
16258
|
};
|
|
16259
|
+
var renderAntigravityMcpServer = (transport) => {
|
|
16260
|
+
const literal = {};
|
|
16261
|
+
const values = transport.kind === "stdio" ? transport.env : transport.headers;
|
|
16262
|
+
for (const [name, value] of Object.entries(values ?? {})) {
|
|
16263
|
+
if (transport.kind === "stdio" && envReference(value) === name)
|
|
16264
|
+
continue;
|
|
16265
|
+
if (/\{env:[A-Za-z_][A-Za-z0-9_]*\}/u.test(value))
|
|
16266
|
+
return fail3(transport.kind === "stdio" ? `Antigravity passes on only same-named variables, and ${name} reads another` : `Antigravity reads no variable in header ${name}`);
|
|
16267
|
+
literal[name] = value;
|
|
16268
|
+
}
|
|
16269
|
+
const kept = Object.keys(literal).length === 0 ? undefined : literal;
|
|
16270
|
+
return succeed(transport.kind === "stdio" ? {
|
|
16271
|
+
command: transport.command,
|
|
16272
|
+
...transport.args === undefined ? undefined : { args: transport.args },
|
|
16273
|
+
...kept === undefined ? undefined : { env: kept }
|
|
16274
|
+
} : { serverUrl: transport.url, ...kept === undefined ? undefined : { headers: kept } });
|
|
16275
|
+
};
|
|
16054
16276
|
var fileContent = (file) => ("utf8" in file) ? file.utf8 : decode(file.base64).pipe(getOrElse2(() => new Uint8Array));
|
|
16055
16277
|
var filesUnder = (archive, directory) => Object.entries(archive.files).flatMap(([path, file]) => path.startsWith(`${directory}/`) ? [[path.slice(directory.length + 1), fileContent(file)]] : []);
|
|
16056
16278
|
var json2 = (value) => `${JSON.stringify(value, null, 2)}
|
|
@@ -16066,11 +16288,45 @@ var firstByName = (kits, entries) => {
|
|
|
16066
16288
|
return [{ kit, entry }];
|
|
16067
16289
|
}));
|
|
16068
16290
|
};
|
|
16291
|
+
var antigravityPlugins = ".gemini/config/plugins";
|
|
16292
|
+
var skillsRoots = {
|
|
16293
|
+
claude: ".claude/skills",
|
|
16294
|
+
codex: "skills",
|
|
16295
|
+
opencode: "skills",
|
|
16296
|
+
pi: "skills",
|
|
16297
|
+
antigravity: ".agents/skills"
|
|
16298
|
+
};
|
|
16299
|
+
var pluginRoots = {
|
|
16300
|
+
claude: "plugins",
|
|
16301
|
+
codex: "codex-marketplace/plugins",
|
|
16302
|
+
opencode: "codex-marketplace/plugins",
|
|
16303
|
+
pi: "codex-marketplace/plugins",
|
|
16304
|
+
antigravity: antigravityPlugins
|
|
16305
|
+
};
|
|
16306
|
+
var instructionsPaths = {
|
|
16307
|
+
claude: "CLAUDE.md",
|
|
16308
|
+
codex: "AGENTS.md",
|
|
16309
|
+
opencode: "AGENTS.md",
|
|
16310
|
+
pi: "AGENTS.md",
|
|
16311
|
+
antigravity: ".gemini/config/AGENTS.md"
|
|
16312
|
+
};
|
|
16313
|
+
var antigravityMatched = new Set(["PreToolUse", "PostToolUse"]);
|
|
16314
|
+
var antigravityHooks = (hooks) => Object.fromEntries(hooks.map((hook) => {
|
|
16315
|
+
const handler = {
|
|
16316
|
+
type: "command",
|
|
16317
|
+
command: [hook.command, ...hook.args ?? []].map(shellQuote).join(" "),
|
|
16318
|
+
...hook.timeoutMs === undefined ? undefined : { timeout: Math.ceil(hook.timeoutMs / 1000) }
|
|
16319
|
+
};
|
|
16320
|
+
return [
|
|
16321
|
+
hook.name,
|
|
16322
|
+
{ [hook.event]: antigravityMatched.has(hook.event) ? [{ matcher: "*", hooks: [handler] }] : [handler] }
|
|
16323
|
+
];
|
|
16324
|
+
}));
|
|
16069
16325
|
var loadableRoot = "kitman-skills";
|
|
16070
16326
|
var materializeKitSetup = (harness, kits, listed) => {
|
|
16071
16327
|
const files = {};
|
|
16072
16328
|
const unsupported = [];
|
|
16073
|
-
const skillsRoot = harness
|
|
16329
|
+
const skillsRoot = skillsRoots[harness];
|
|
16074
16330
|
const skills = firstByName(kits, (archive) => archive.setup.skills);
|
|
16075
16331
|
const isListed = (name) => listed === undefined || listed.includes(name);
|
|
16076
16332
|
const written = [];
|
|
@@ -16090,7 +16346,7 @@ var materializeKitSetup = (harness, kits, listed) => {
|
|
|
16090
16346
|
});
|
|
16091
16347
|
}
|
|
16092
16348
|
const plugins = firstByName(kits, (archive) => archive.setup.plugins);
|
|
16093
|
-
const pluginRoot = harness
|
|
16349
|
+
const pluginRoot = pluginRoots[harness];
|
|
16094
16350
|
const writtenPlugins = [];
|
|
16095
16351
|
for (const { kit, entry } of plugins) {
|
|
16096
16352
|
const source = entry.sources.find((candidate) => candidate.kind === "local_path");
|
|
@@ -16102,6 +16358,8 @@ var materializeKitSetup = (harness, kits, listed) => {
|
|
|
16102
16358
|
continue;
|
|
16103
16359
|
for (const [path, content] of filesUnder(kit.archive, source.path))
|
|
16104
16360
|
files[`${pluginRoot}/${entry.name}/${path}`] = content;
|
|
16361
|
+
if (harness === "antigravity" && files[`${pluginRoot}/${entry.name}/plugin.json`] === undefined && files[`${pluginRoot}/${entry.name}/.antigravity-plugin/plugin.json`] === undefined)
|
|
16362
|
+
files[`${pluginRoot}/${entry.name}/plugin.json`] = json2({ name: entry.name });
|
|
16105
16363
|
writtenPlugins.push(entry.name);
|
|
16106
16364
|
}
|
|
16107
16365
|
const hooks = kits.flatMap((kit) => (kit.archive.setup.hooks ?? []).map((hook) => ({ kit, hook })));
|
|
@@ -16123,9 +16381,14 @@ var materializeKitSetup = (harness, kits, listed) => {
|
|
|
16123
16381
|
let name = hooksPlugin;
|
|
16124
16382
|
for (let suffix = 2;plugins.some(({ entry }) => entry.name === name); suffix++)
|
|
16125
16383
|
name = `${hooksPlugin}-${suffix}`;
|
|
16126
|
-
|
|
16127
|
-
|
|
16128
|
-
|
|
16384
|
+
if (harness === "antigravity") {
|
|
16385
|
+
files[`${pluginRoot}/${name}/plugin.json`] = json2({ name });
|
|
16386
|
+
files[`${pluginRoot}/${name}/hooks.json`] = json2(antigravityHooks(hooks.map(({ hook }) => hook)));
|
|
16387
|
+
} else {
|
|
16388
|
+
files[`${pluginRoot}/${name}/.claude-plugin/plugin.json`] = json2({ name });
|
|
16389
|
+
files[`${pluginRoot}/${name}/.codex-plugin/plugin.json`] = json2({ name, hooks: "./hooks/hooks.json" });
|
|
16390
|
+
files[`${pluginRoot}/${name}/hooks/hooks.json`] = json2({ hooks: events });
|
|
16391
|
+
}
|
|
16129
16392
|
writtenPlugins.push(name);
|
|
16130
16393
|
}
|
|
16131
16394
|
for (const kit of kits) {
|
|
@@ -16153,7 +16416,7 @@ var materializeKitSetup = (harness, kits, listed) => {
|
|
|
16153
16416
|
${file.utf8.trim()}`];
|
|
16154
16417
|
});
|
|
16155
16418
|
const instructions = sections.length === 0 ? undefined : {
|
|
16156
|
-
path: harness
|
|
16419
|
+
path: instructionsPaths[harness],
|
|
16157
16420
|
content: `${instructionsStart}
|
|
16158
16421
|
${sections.join(`
|
|
16159
16422
|
|
|
@@ -16211,15 +16474,19 @@ var herdrExecutionExtension2 = {
|
|
|
16211
16474
|
var herdrNativeExtensionIds2 = [nativeExtensionIdentity(herdrExecutionExtension2)];
|
|
16212
16475
|
|
|
16213
16476
|
// packages/agent-runtime/src/herdr-capabilities.ts
|
|
16477
|
+
var unsupportedIn = { host: [], srt: harnessesUnsupportedInSrt2, docker: harnessesUnsupportedInDocker2 };
|
|
16214
16478
|
var launchableHarnesses = (input) => {
|
|
16215
|
-
const
|
|
16479
|
+
const unsupported = input.agentSandbox === undefined ? [] : unsupportedIn[input.agentSandbox];
|
|
16480
|
+
const refused = input.harnesses.harnesses.filter((harness) => unsupported.includes(harness));
|
|
16216
16481
|
return {
|
|
16217
16482
|
harnesses: input.harnesses.harnesses.filter((harness) => !refused.includes(harness)),
|
|
16218
16483
|
unavailable: [
|
|
16219
16484
|
...input.harnesses.unavailable,
|
|
16220
16485
|
...refused.map((harness) => ({
|
|
16221
16486
|
harness,
|
|
16222
|
-
missing: [
|
|
16487
|
+
missing: [
|
|
16488
|
+
input.agentSandbox === "srt" && !harnessesUnsupportedInDocker2.includes(harness) ? `${harness} cannot run in srt yet; set the Runner's sandbox to docker or host to offer it` : `${harness} cannot run in ${input.agentSandbox} yet; set the Runner's sandbox to host to offer it`
|
|
16489
|
+
]
|
|
16223
16490
|
}))
|
|
16224
16491
|
]
|
|
16225
16492
|
};
|
|
@@ -16259,7 +16526,7 @@ function herdrRunnerCapabilities2(input) {
|
|
|
16259
16526
|
harnesses: [...harnesses],
|
|
16260
16527
|
...defaultHarness === undefined ? undefined : { defaultHarness },
|
|
16261
16528
|
...harnessUnavailable.length === 0 ? undefined : { harnessUnavailable },
|
|
16262
|
-
configWriters: input.fullAccess ? harnesses.
|
|
16529
|
+
configWriters: input.fullAccess ? harnesses.flatMap((harness) => harness === "antigravity" ? [] : [harness === "claude" ? "claude-code" : harness]) : [],
|
|
16263
16530
|
mcpServers: [],
|
|
16264
16531
|
skillSources: [],
|
|
16265
16532
|
providerAuthRefs: [],
|
|
@@ -16334,4 +16601,4 @@ function serviceChecks(declaration) {
|
|
|
16334
16601
|
return decoded === undefined || decoded.services.length === 0 ? [] : [...new Set(decoded.checks ?? [])];
|
|
16335
16602
|
}
|
|
16336
16603
|
|
|
16337
|
-
export {
|
|
16604
|
+
export { WebCrypto, SecureRandom, layerWebCrypto, makeUnsafe, formatIso, empty, fromInput, merge, runMain, layer, layer2, Stdio, Terminal, layer3, error, log, toDate, parseDate, toIso, currentDate, wallClockMillis, waitingOnWords, queueWords, scanDurableSurface, redactResponseSurface, redactCredentials, redactedOutputTail, SafeJson, ReleaseChannels, DefaultReleaseChannel, newerKitmanVersion, releaseChannelOffers, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, tokensSpent, tokenCountWords, isTestReportName, testDigest, failedTestOfLine, printedNotReported, failedTestsOf, testOutcomes, checkTests, reportedModelName, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, RunWaitUntils, 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, stepFallbackWords, 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, antigravityPlugins, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices, serviceChecks };
|