@kitman-sh/cli 0.11.0-rc.4 → 0.11.0-rc.5
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-bv9e34qz.js → chunk-0qz10ek8.js} +1 -1
- package/dist/{chunk-7d8prq0a.js → chunk-248msks2.js} +4 -4
- package/dist/{chunk-znh6xbze.js → chunk-3d4d52e5.js} +177 -28
- package/dist/{chunk-pqz98b85.js → chunk-5hx3j5x8.js} +5 -5
- package/dist/{chunk-cegdw7gw.js → chunk-5j848ckb.js} +2 -2
- package/dist/{chunk-9ew87kjc.js → chunk-6pyxykt1.js} +212 -7
- package/dist/{chunk-nb36pw5d.js → chunk-7fbpsnt7.js} +8 -8
- package/dist/{chunk-k6mfj25g.js → chunk-9a2r12ye.js} +3 -3
- package/dist/{chunk-y0q2574w.js → chunk-b6m9rfzj.js} +12 -12
- package/dist/{chunk-6zrq5xq2.js → chunk-bs81bt3q.js} +7 -7
- package/dist/{chunk-xmq9zpr1.js → chunk-c6rbt85q.js} +1 -1
- package/dist/{chunk-k2b10qys.js → chunk-cnzz61ta.js} +19 -19
- package/dist/{chunk-kbhm8p3c.js → chunk-d9bv70qb.js} +5 -5
- package/dist/{chunk-0h5et1rg.js → chunk-egb7pjjz.js} +6 -6
- package/dist/{chunk-anf9ddey.js → chunk-japwbj9n.js} +2 -2
- package/dist/{chunk-bj73db3f.js → chunk-nzjb36ad.js} +1 -1
- package/dist/{chunk-cbwmsy27.js → chunk-rtqdqr0v.js} +114 -464
- package/dist/{chunk-2sfgqfgq.js → chunk-sk6ceghr.js} +2 -2
- package/dist/{chunk-4ngdyd3k.js → chunk-vf1aatbh.js} +17 -17
- package/dist/{chunk-2aj4ym2c.js → chunk-vkgqtwqm.js} +7 -7
- package/dist/{chunk-tx61h9d8.js → chunk-vmv7gwwr.js} +6 -6
- package/dist/{chunk-txyp31q5.js → chunk-vtfwjhzh.js} +60 -60
- package/dist/{chunk-dc681k94.js → chunk-x7b9bwk6.js} +4 -4
- package/dist/{chunk-rjdptgqf.js → chunk-z450wa10.js} +4 -4
- 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
|
+
make14,
|
|
42
42
|
strictEqual,
|
|
43
43
|
Tuple,
|
|
44
44
|
Number2,
|
|
@@ -58,15 +58,13 @@ import {
|
|
|
58
58
|
Service2,
|
|
59
59
|
makeUnsafe4,
|
|
60
60
|
empty3,
|
|
61
|
-
|
|
61
|
+
make15,
|
|
62
62
|
add,
|
|
63
63
|
getOrUndefined2,
|
|
64
64
|
getOrUndefinedUnsafe,
|
|
65
|
-
|
|
65
|
+
get4,
|
|
66
66
|
merge3,
|
|
67
67
|
Reference,
|
|
68
|
-
fromInputUnsafe,
|
|
69
|
-
isFinite,
|
|
70
68
|
millis,
|
|
71
69
|
seconds,
|
|
72
70
|
toMillis,
|
|
@@ -91,11 +89,9 @@ import {
|
|
|
91
89
|
ConsoleRef,
|
|
92
90
|
succeed3,
|
|
93
91
|
fail4,
|
|
94
|
-
void_2,
|
|
95
92
|
isSuccess2,
|
|
96
|
-
isFailure2,
|
|
97
93
|
makeUnsafe5,
|
|
98
|
-
|
|
94
|
+
make16,
|
|
99
95
|
_await,
|
|
100
96
|
fail5,
|
|
101
97
|
isDone,
|
|
@@ -103,12 +99,8 @@ import {
|
|
|
103
99
|
succeed4,
|
|
104
100
|
doneUnsafe,
|
|
105
101
|
TracerTimingEnabled,
|
|
106
|
-
Scope,
|
|
107
|
-
makeUnsafe6,
|
|
108
102
|
provide,
|
|
109
|
-
addFinalizerExit,
|
|
110
103
|
addFinalizer,
|
|
111
|
-
close,
|
|
112
104
|
succeed5,
|
|
113
105
|
effect,
|
|
114
106
|
effectContext,
|
|
@@ -160,7 +152,6 @@ import {
|
|
|
160
152
|
tapCause,
|
|
161
153
|
retry,
|
|
162
154
|
ignore,
|
|
163
|
-
ignoreCause,
|
|
164
155
|
orElseSucceed,
|
|
165
156
|
timeout,
|
|
166
157
|
timeoutOrElse,
|
|
@@ -172,7 +163,6 @@ import {
|
|
|
172
163
|
context,
|
|
173
164
|
contextWith,
|
|
174
165
|
provide3,
|
|
175
|
-
provideContext2,
|
|
176
166
|
serviceOption,
|
|
177
167
|
updateContext,
|
|
178
168
|
provideService,
|
|
@@ -183,7 +173,6 @@ import {
|
|
|
183
173
|
addFinalizer2,
|
|
184
174
|
ensuring2,
|
|
185
175
|
onError,
|
|
186
|
-
onExit,
|
|
187
176
|
cached,
|
|
188
177
|
interrupt3,
|
|
189
178
|
interruptible,
|
|
@@ -195,7 +184,6 @@ import {
|
|
|
195
184
|
withParentSpan,
|
|
196
185
|
forkScoped,
|
|
197
186
|
runFork,
|
|
198
|
-
runForkWith,
|
|
199
187
|
runPromise,
|
|
200
188
|
runPromiseWith,
|
|
201
189
|
runSync,
|
|
@@ -214,7 +202,7 @@ import {
|
|
|
214
202
|
decodeEffect,
|
|
215
203
|
decodeUnknownOption,
|
|
216
204
|
decodeOption,
|
|
217
|
-
|
|
205
|
+
make17,
|
|
218
206
|
isSchema,
|
|
219
207
|
optionalKey,
|
|
220
208
|
optional,
|
|
@@ -254,7 +242,6 @@ import {
|
|
|
254
242
|
Class2,
|
|
255
243
|
Error3,
|
|
256
244
|
TaggedError2,
|
|
257
|
-
toEquivalence,
|
|
258
245
|
toCodecJson,
|
|
259
246
|
Json,
|
|
260
247
|
JsonObject,
|
|
@@ -262,15 +249,11 @@ import {
|
|
|
262
249
|
decodeJsonStringOption,
|
|
263
250
|
encodeJsonStringSync,
|
|
264
251
|
encodePrettyJsonString
|
|
265
|
-
} from "./chunk-
|
|
252
|
+
} from "./chunk-vtfwjhzh.js";
|
|
266
253
|
import {
|
|
267
254
|
map,
|
|
268
255
|
makeEquivalence,
|
|
269
256
|
bytes,
|
|
270
|
-
join,
|
|
271
|
-
interrupt,
|
|
272
|
-
getCurrent,
|
|
273
|
-
runIn,
|
|
274
257
|
BadArgument,
|
|
275
258
|
systemError,
|
|
276
259
|
badArgument,
|
|
@@ -292,11 +275,13 @@ import {
|
|
|
292
275
|
isSink,
|
|
293
276
|
fromChannel,
|
|
294
277
|
drain,
|
|
278
|
+
make10,
|
|
279
|
+
get3,
|
|
295
280
|
isStream,
|
|
296
281
|
fromChannel2,
|
|
297
282
|
callback,
|
|
298
283
|
empty2,
|
|
299
|
-
|
|
284
|
+
make11,
|
|
300
285
|
suspend,
|
|
301
286
|
fail2,
|
|
302
287
|
fromQueue,
|
|
@@ -322,16 +307,16 @@ import {
|
|
|
322
307
|
mkArrayBuffer,
|
|
323
308
|
toReadableStreamEffect,
|
|
324
309
|
FileSystem,
|
|
325
|
-
|
|
310
|
+
make12,
|
|
326
311
|
FileTypeId,
|
|
327
312
|
WatchBackend,
|
|
328
313
|
Path,
|
|
329
|
-
|
|
314
|
+
make13,
|
|
330
315
|
option,
|
|
331
316
|
String2,
|
|
332
317
|
optionalEnv,
|
|
333
318
|
harnessesUnsupportedInSrt2
|
|
334
|
-
} from "./chunk-
|
|
319
|
+
} from "./chunk-3d4d52e5.js";
|
|
335
320
|
import {
|
|
336
321
|
isDateTime,
|
|
337
322
|
Numeric,
|
|
@@ -344,7 +329,7 @@ import {
|
|
|
344
329
|
SecretScope,
|
|
345
330
|
SecretHosts,
|
|
346
331
|
isSecretReference
|
|
347
|
-
} from "./chunk-
|
|
332
|
+
} from "./chunk-0qz10ek8.js";
|
|
348
333
|
import {
|
|
349
334
|
toJsonValue,
|
|
350
335
|
isOneOf,
|
|
@@ -358,7 +343,7 @@ import {
|
|
|
358
343
|
isSymbol,
|
|
359
344
|
isUndefined,
|
|
360
345
|
kindOf
|
|
361
|
-
} from "./chunk-
|
|
346
|
+
} from "./chunk-c6rbt85q.js";
|
|
362
347
|
import {
|
|
363
348
|
isRedacted,
|
|
364
349
|
make,
|
|
@@ -372,7 +357,7 @@ import {
|
|
|
372
357
|
make3,
|
|
373
358
|
parseFdName,
|
|
374
359
|
fdName
|
|
375
|
-
} from "./chunk-
|
|
360
|
+
} from "./chunk-sk6ceghr.js";
|
|
376
361
|
|
|
377
362
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
|
|
378
363
|
var makeEquivalence3 = Tuple;
|
|
@@ -515,7 +500,7 @@ var fromDateUnsafe = (date) => {
|
|
|
515
500
|
}
|
|
516
501
|
return makeUtc(epochMillis);
|
|
517
502
|
};
|
|
518
|
-
var
|
|
503
|
+
var makeUnsafe6 = (input) => {
|
|
519
504
|
if (isDateTime2(input)) {
|
|
520
505
|
return input;
|
|
521
506
|
} else if (input instanceof Date) {
|
|
@@ -535,7 +520,7 @@ var makeUnsafe7 = (input) => {
|
|
|
535
520
|
var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
|
|
536
521
|
var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
|
|
537
522
|
var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
|
|
538
|
-
var make4 = /* @__PURE__ */ liftThrowable(
|
|
523
|
+
var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
|
|
539
524
|
var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
|
|
540
525
|
var nowUnsafe = () => makeUtc(Date.now());
|
|
541
526
|
var toDateUtc = (self) => new Date(self.epochMilliseconds);
|
|
@@ -642,7 +627,7 @@ class Metric$ {
|
|
|
642
627
|
}
|
|
643
628
|
hook(context) {
|
|
644
629
|
const key = this.key(context);
|
|
645
|
-
const registry =
|
|
630
|
+
const registry = get4(context, MetricRegistry);
|
|
646
631
|
let metadata = registry.get(key);
|
|
647
632
|
if (isUndefined2(metadata)) {
|
|
648
633
|
metadata = this.metadata(this.createHooks());
|
|
@@ -651,11 +636,11 @@ class Metric$ {
|
|
|
651
636
|
return metadata.hooks;
|
|
652
637
|
}
|
|
653
638
|
removeUnsafe(context) {
|
|
654
|
-
|
|
639
|
+
get4(context, MetricRegistry).delete(this.key(context));
|
|
655
640
|
}
|
|
656
641
|
registerUnsafe(context, hooks) {
|
|
657
642
|
const key = this.key(context);
|
|
658
|
-
const registry =
|
|
643
|
+
const registry = get4(context, MetricRegistry);
|
|
659
644
|
const metadata = this.metadata({
|
|
660
645
|
get: hooks.get,
|
|
661
646
|
update: constVoid,
|
|
@@ -671,7 +656,7 @@ class Metric$ {
|
|
|
671
656
|
};
|
|
672
657
|
}
|
|
673
658
|
key(context) {
|
|
674
|
-
const extraAttributes =
|
|
659
|
+
const extraAttributes = get4(context, CurrentMetricAttributes);
|
|
675
660
|
if (extraAttributes !== this.#extraAttributes) {
|
|
676
661
|
this.#extraAttributes = extraAttributes;
|
|
677
662
|
const merged = mergeAttributes(this.attributes, extraAttributes);
|
|
@@ -923,151 +908,9 @@ var toNumber = (b) => {
|
|
|
923
908
|
return some(Number(b));
|
|
924
909
|
};
|
|
925
910
|
|
|
926
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
|
|
927
|
-
var TypeId3 = "~effect/RcRef";
|
|
928
|
-
var stateEmpty = {
|
|
929
|
-
_tag: "Empty"
|
|
930
|
-
};
|
|
931
|
-
var stateClosed = {
|
|
932
|
-
_tag: "Closed"
|
|
933
|
-
};
|
|
934
|
-
var variance = {
|
|
935
|
-
_A: identity,
|
|
936
|
-
_E: identity
|
|
937
|
-
};
|
|
938
|
-
|
|
939
|
-
class RcRefImpl {
|
|
940
|
-
[TypeId3] = variance;
|
|
941
|
-
pipe() {
|
|
942
|
-
return pipeArguments(this, arguments);
|
|
943
|
-
}
|
|
944
|
-
state = stateEmpty;
|
|
945
|
-
acquire;
|
|
946
|
-
context;
|
|
947
|
-
scope;
|
|
948
|
-
idleTimeToLive;
|
|
949
|
-
constructor(acquire, context, scope, idleTimeToLive) {
|
|
950
|
-
this.acquire = acquire;
|
|
951
|
-
this.context = context;
|
|
952
|
-
this.scope = scope;
|
|
953
|
-
this.idleTimeToLive = idleTimeToLive;
|
|
954
|
-
}
|
|
955
|
-
}
|
|
956
|
-
var make17 = (options) => withFiber2((fiber) => {
|
|
957
|
-
const context = fiber.context;
|
|
958
|
-
const scope = get3(context, Scope);
|
|
959
|
-
const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
|
|
960
|
-
return as(addFinalizerExit(scope, () => {
|
|
961
|
-
const state = ref.state;
|
|
962
|
-
ref.state = stateClosed;
|
|
963
|
-
if (state._tag === "Acquired")
|
|
964
|
-
return close(state.scope, void_2);
|
|
965
|
-
if (state._tag === "Acquiring")
|
|
966
|
-
return interrupt(state.fiber);
|
|
967
|
-
return void_3;
|
|
968
|
-
}), ref);
|
|
969
|
-
});
|
|
970
|
-
var getState = (self, restore) => {
|
|
971
|
-
switch (self.state._tag) {
|
|
972
|
-
case "Closed": {
|
|
973
|
-
return interrupt3;
|
|
974
|
-
}
|
|
975
|
-
case "Acquired": {
|
|
976
|
-
const state = self.state;
|
|
977
|
-
state.refCount++;
|
|
978
|
-
return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
|
|
979
|
-
}
|
|
980
|
-
case "Acquiring": {
|
|
981
|
-
const state = self.state;
|
|
982
|
-
state.awaiters++;
|
|
983
|
-
return awaitAcquiring(self, state, restore);
|
|
984
|
-
}
|
|
985
|
-
case "Empty": {
|
|
986
|
-
const acquiring = {
|
|
987
|
-
_tag: "Acquiring",
|
|
988
|
-
fiber: undefined,
|
|
989
|
-
awaiters: 1,
|
|
990
|
-
acquired: undefined
|
|
991
|
-
};
|
|
992
|
-
self.state = acquiring;
|
|
993
|
-
const scope = makeUnsafe6();
|
|
994
|
-
const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
|
|
995
|
-
if (self.state !== acquiring) {
|
|
996
|
-
return interrupt3;
|
|
997
|
-
}
|
|
998
|
-
const state = {
|
|
999
|
-
_tag: "Acquired",
|
|
1000
|
-
value,
|
|
1001
|
-
scope,
|
|
1002
|
-
fiber: undefined,
|
|
1003
|
-
refCount: acquiring.awaiters,
|
|
1004
|
-
invalidated: false
|
|
1005
|
-
};
|
|
1006
|
-
self.state = state;
|
|
1007
|
-
acquiring.acquired = state;
|
|
1008
|
-
return succeed6(state);
|
|
1009
|
-
}), onExit((exit) => {
|
|
1010
|
-
if (isSuccess2(exit))
|
|
1011
|
-
return void_3;
|
|
1012
|
-
if (self.state === acquiring)
|
|
1013
|
-
self.state = stateEmpty;
|
|
1014
|
-
return close(scope, exit);
|
|
1015
|
-
}));
|
|
1016
|
-
acquiring.fiber = runForkWith(getCurrent().context)(acquire);
|
|
1017
|
-
return awaitAcquiring(self, acquiring, restore);
|
|
1018
|
-
}
|
|
1019
|
-
}
|
|
1020
|
-
};
|
|
1021
|
-
var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
|
|
1022
|
-
const acquired = acquiring.acquired;
|
|
1023
|
-
if (acquired !== undefined) {
|
|
1024
|
-
return isFailure2(exit) ? release(self, acquired) : void_3;
|
|
1025
|
-
}
|
|
1026
|
-
if (--acquiring.awaiters > 0 || self.state !== acquiring)
|
|
1027
|
-
return void_3;
|
|
1028
|
-
self.state = stateEmpty;
|
|
1029
|
-
return interrupt(acquiring.fiber);
|
|
1030
|
-
});
|
|
1031
|
-
var get4 = (self_) => {
|
|
1032
|
-
const self = self_;
|
|
1033
|
-
return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
|
|
1034
|
-
};
|
|
1035
|
-
var release = (self, state) => {
|
|
1036
|
-
state.refCount--;
|
|
1037
|
-
if (state.refCount > 0) {
|
|
1038
|
-
return void_3;
|
|
1039
|
-
}
|
|
1040
|
-
const idleTimeToLive = self.idleTimeToLive;
|
|
1041
|
-
if (idleTimeToLive === undefined || state.invalidated) {
|
|
1042
|
-
if (self.state === state) {
|
|
1043
|
-
self.state = stateEmpty;
|
|
1044
|
-
}
|
|
1045
|
-
return close(state.scope, void_2);
|
|
1046
|
-
} else if (!isFinite(idleTimeToLive)) {
|
|
1047
|
-
return void_3;
|
|
1048
|
-
}
|
|
1049
|
-
state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
|
|
1050
|
-
if (self.state === state && state.refCount === 0) {
|
|
1051
|
-
self.state = stateEmpty;
|
|
1052
|
-
return ignoreCause(close(state.scope, void_2), {
|
|
1053
|
-
log: "Unhandled",
|
|
1054
|
-
message: "Unhandled error in RcRef finalizer"
|
|
1055
|
-
});
|
|
1056
|
-
}
|
|
1057
|
-
return void_3;
|
|
1058
|
-
})).pipe(ensuring2(sync2(() => {
|
|
1059
|
-
state.fiber = undefined;
|
|
1060
|
-
})), runForkWith(self.context), runIn(self.scope));
|
|
1061
|
-
return void_3;
|
|
1062
|
-
};
|
|
1063
|
-
|
|
1064
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
|
|
1065
|
-
var make18 = make17;
|
|
1066
|
-
var get5 = get4;
|
|
1067
|
-
|
|
1068
911
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
|
|
1069
|
-
var makeUnsafe =
|
|
1070
|
-
var
|
|
912
|
+
var makeUnsafe = makeUnsafe6;
|
|
913
|
+
var make18 = make4;
|
|
1071
914
|
var now2 = now;
|
|
1072
915
|
var nowUnsafe2 = nowUnsafe;
|
|
1073
916
|
var toDateUtc2 = toDateUtc;
|
|
@@ -1386,7 +1229,7 @@ var taskkill = (childProcess, onExit = () => {}) => {
|
|
|
1386
1229
|
windowsHide: true
|
|
1387
1230
|
}, onExit);
|
|
1388
1231
|
};
|
|
1389
|
-
var
|
|
1232
|
+
var make19 = /* @__PURE__ */ gen(function* () {
|
|
1390
1233
|
const fs = yield* FileSystem;
|
|
1391
1234
|
const path = yield* Path;
|
|
1392
1235
|
const resolveWorkingDirectory = fnUntraced(function* (options) {
|
|
@@ -1915,7 +1758,7 @@ var make20 = /* @__PURE__ */ gen(function* () {
|
|
|
1915
1758
|
});
|
|
1916
1759
|
return make2(spawnCommand);
|
|
1917
1760
|
});
|
|
1918
|
-
var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner,
|
|
1761
|
+
var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
|
|
1919
1762
|
var flattenCommand = (command) => {
|
|
1920
1763
|
const commands = [];
|
|
1921
1764
|
const pipeOptions = [];
|
|
@@ -2399,7 +2242,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
|
|
|
2399
2242
|
resume(fail7(handleBadArgument("writeFile")(err)));
|
|
2400
2243
|
}
|
|
2401
2244
|
});
|
|
2402
|
-
var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) =>
|
|
2245
|
+
var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make12({
|
|
2403
2246
|
access: access2,
|
|
2404
2247
|
chmod: chmod2,
|
|
2405
2248
|
chown: chown2,
|
|
@@ -2459,15 +2302,15 @@ var fileUrlOps = (windows) => ({
|
|
|
2459
2302
|
})
|
|
2460
2303
|
})
|
|
2461
2304
|
});
|
|
2462
|
-
var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2305
|
+
var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
|
|
2463
2306
|
...NodePath.posix,
|
|
2464
2307
|
.../* @__PURE__ */ fileUrlOps(false)
|
|
2465
2308
|
}));
|
|
2466
|
-
var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2309
|
+
var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
|
|
2467
2310
|
...NodePath.win32,
|
|
2468
2311
|
.../* @__PURE__ */ fileUrlOps(true)
|
|
2469
2312
|
}));
|
|
2470
|
-
var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */
|
|
2313
|
+
var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
|
|
2471
2314
|
...NodePath,
|
|
2472
2315
|
.../* @__PURE__ */ fileUrlOps(undefined)
|
|
2473
2316
|
}));
|
|
@@ -2476,10 +2319,10 @@ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
|
|
|
2476
2319
|
var layer2 = layer7;
|
|
2477
2320
|
|
|
2478
2321
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stdio.js
|
|
2479
|
-
var
|
|
2480
|
-
var Stdio = /* @__PURE__ */ Service2(
|
|
2481
|
-
var
|
|
2482
|
-
[
|
|
2322
|
+
var TypeId3 = "~effect/Stdio";
|
|
2323
|
+
var Stdio = /* @__PURE__ */ Service2(TypeId3);
|
|
2324
|
+
var make20 = (options) => ({
|
|
2325
|
+
[TypeId3]: TypeId3,
|
|
2483
2326
|
stdinIsTerminal: succeed6(false),
|
|
2484
2327
|
stdoutIsTerminal: succeed6(false),
|
|
2485
2328
|
stderrIsTerminal: succeed6(false),
|
|
@@ -2487,7 +2330,7 @@ var make21 = (options) => ({
|
|
|
2487
2330
|
});
|
|
2488
2331
|
|
|
2489
2332
|
// node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
|
|
2490
|
-
var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */
|
|
2333
|
+
var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make20({
|
|
2491
2334
|
args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
|
|
2492
2335
|
stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
|
|
2493
2336
|
stdoutIsTerminal: /* @__PURE__ */ sync2(() => process.stdout.isTTY === true),
|
|
@@ -2687,7 +2530,7 @@ var makeUuid = (bytes, randomBytes, format) => {
|
|
|
2687
2530
|
const uuid = bytes(randomBytes(16));
|
|
2688
2531
|
return format === "bytes" ? uuid : stringify(uuid);
|
|
2689
2532
|
};
|
|
2690
|
-
var
|
|
2533
|
+
var make21 = (randomBytes) => {
|
|
2691
2534
|
const randomBytesChecked = (size) => {
|
|
2692
2535
|
checkSize(size);
|
|
2693
2536
|
return randomBytes(size);
|
|
@@ -2721,13 +2564,13 @@ var fillRandom = (crypto2, size) => {
|
|
|
2721
2564
|
}
|
|
2722
2565
|
return bytes;
|
|
2723
2566
|
};
|
|
2724
|
-
var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(
|
|
2567
|
+
var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make21((size) => fillRandom(crypto2, size)))));
|
|
2725
2568
|
|
|
2726
2569
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
|
|
2727
|
-
var
|
|
2570
|
+
var TypeId4 = "~effect/http/Cookies";
|
|
2728
2571
|
var CookieTypeId = "~effect/http/Cookies/Cookie";
|
|
2729
2572
|
var Proto2 = {
|
|
2730
|
-
[
|
|
2573
|
+
[TypeId4]: TypeId4,
|
|
2731
2574
|
...BaseProto,
|
|
2732
2575
|
toJSON() {
|
|
2733
2576
|
return {
|
|
@@ -2906,14 +2749,14 @@ var tryDecodeURIComponent = (str) => {
|
|
|
2906
2749
|
};
|
|
2907
2750
|
|
|
2908
2751
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Headers.js
|
|
2909
|
-
var
|
|
2752
|
+
var TypeId5 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
|
|
2910
2753
|
var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
|
|
2911
|
-
[
|
|
2912
|
-
value:
|
|
2754
|
+
[TypeId5]: {
|
|
2755
|
+
value: TypeId5
|
|
2913
2756
|
},
|
|
2914
2757
|
[symbolRedactable]: {
|
|
2915
2758
|
value(context) {
|
|
2916
|
-
return redact2(this,
|
|
2759
|
+
return redact2(this, get4(context, CurrentRedactedNames));
|
|
2917
2760
|
}
|
|
2918
2761
|
},
|
|
2919
2762
|
toJSON: {
|
|
@@ -2938,7 +2781,7 @@ var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
|
|
|
2938
2781
|
value: BaseProto[NodeInspectSymbol]
|
|
2939
2782
|
}
|
|
2940
2783
|
});
|
|
2941
|
-
var
|
|
2784
|
+
var make22 = (input) => Object.assign(Object.create(Proto3), input);
|
|
2942
2785
|
var Equivalence2 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
|
|
2943
2786
|
var empty = /* @__PURE__ */ Object.create(Proto3);
|
|
2944
2787
|
var fromInput = (input) => {
|
|
@@ -2963,21 +2806,21 @@ var fromInput = (input) => {
|
|
|
2963
2806
|
};
|
|
2964
2807
|
var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto3);
|
|
2965
2808
|
var set = /* @__PURE__ */ dual(3, (self, key, value) => {
|
|
2966
|
-
const out =
|
|
2809
|
+
const out = make22(self);
|
|
2967
2810
|
out[key.toLowerCase()] = value;
|
|
2968
2811
|
return out;
|
|
2969
2812
|
});
|
|
2970
|
-
var setAll = /* @__PURE__ */ dual(2, (self, headers) =>
|
|
2813
|
+
var setAll = /* @__PURE__ */ dual(2, (self, headers) => make22({
|
|
2971
2814
|
...self,
|
|
2972
2815
|
...fromInput(headers)
|
|
2973
2816
|
}));
|
|
2974
2817
|
var merge = /* @__PURE__ */ dual(2, (self, headers) => {
|
|
2975
|
-
const out =
|
|
2818
|
+
const out = make22(self);
|
|
2976
2819
|
Object.assign(out, headers);
|
|
2977
2820
|
return out;
|
|
2978
2821
|
});
|
|
2979
2822
|
var remove2 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
2980
|
-
const out =
|
|
2823
|
+
const out = make22(self);
|
|
2981
2824
|
delete out[key.toLowerCase()];
|
|
2982
2825
|
return out;
|
|
2983
2826
|
});
|
|
@@ -3034,18 +2877,18 @@ var bodyDecoder = /* @__PURE__ */ new TextDecoder("utf-8", {
|
|
|
3034
2877
|
var fromBody = (bytes) => new URLSearchParams(bodyDecoder.decode(bytes).replace(/^\?/, "%3F"));
|
|
3035
2878
|
|
|
3036
2879
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/UrlParams.js
|
|
3037
|
-
var
|
|
3038
|
-
var isUrlParams = (u) => hasProperty(u,
|
|
2880
|
+
var TypeId6 = "~effect/http/UrlParams";
|
|
2881
|
+
var isUrlParams = (u) => hasProperty(u, TypeId6);
|
|
3039
2882
|
var Proto4 = {
|
|
3040
2883
|
...PipeInspectableProto,
|
|
3041
|
-
[
|
|
2884
|
+
[TypeId6]: TypeId6,
|
|
3042
2885
|
[Symbol.iterator]() {
|
|
3043
2886
|
return this.params[Symbol.iterator]();
|
|
3044
2887
|
},
|
|
3045
2888
|
[symbolRedactable](context) {
|
|
3046
2889
|
return {
|
|
3047
2890
|
_id: "UrlParams",
|
|
3048
|
-
params: Object.fromEntries(redact3(this,
|
|
2891
|
+
params: Object.fromEntries(redact3(this, get4(context, CurrentRedactedNames2)))
|
|
3049
2892
|
};
|
|
3050
2893
|
},
|
|
3051
2894
|
toJSON() {
|
|
@@ -3058,7 +2901,7 @@ var Proto4 = {
|
|
|
3058
2901
|
return array(this.params.flat());
|
|
3059
2902
|
}
|
|
3060
2903
|
};
|
|
3061
|
-
var
|
|
2904
|
+
var make23 = (params) => {
|
|
3062
2905
|
const self = Object.create(Proto4);
|
|
3063
2906
|
self.params = params;
|
|
3064
2907
|
return self;
|
|
@@ -3077,7 +2920,7 @@ var fromInput2 = (input) => {
|
|
|
3077
2920
|
out.push(parsed[i]);
|
|
3078
2921
|
}
|
|
3079
2922
|
}
|
|
3080
|
-
return
|
|
2923
|
+
return make23(out);
|
|
3081
2924
|
};
|
|
3082
2925
|
var fromInputNested = (input) => {
|
|
3083
2926
|
const entries = typeof input[Symbol.iterator] === "function" ? fromIterable(input) : Object.entries(input);
|
|
@@ -3101,9 +2944,9 @@ var fromInputNested = (input) => {
|
|
|
3101
2944
|
return out;
|
|
3102
2945
|
};
|
|
3103
2946
|
var coerce = (value) => isRedacted(value) ? value : String(value);
|
|
3104
|
-
var Equivalence3 = /* @__PURE__ */
|
|
2947
|
+
var Equivalence3 = /* @__PURE__ */ make14((a, b) => arrayEquivalence(a.params, b.params));
|
|
3105
2948
|
var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
|
|
3106
|
-
var empty4 = /* @__PURE__ */
|
|
2949
|
+
var empty4 = /* @__PURE__ */ make23([]);
|
|
3107
2950
|
var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
3108
2951
|
const params = fromInput2(input).params.slice();
|
|
3109
2952
|
const keys = new Set;
|
|
@@ -3115,7 +2958,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
|
3115
2958
|
continue;
|
|
3116
2959
|
params.push(self.params[i]);
|
|
3117
2960
|
}
|
|
3118
|
-
return
|
|
2961
|
+
return make23(params);
|
|
3119
2962
|
});
|
|
3120
2963
|
var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
|
|
3121
2964
|
var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
@@ -3171,13 +3014,13 @@ var decodeQueryKey = (key) => {
|
|
|
3171
3014
|
return key;
|
|
3172
3015
|
}
|
|
3173
3016
|
};
|
|
3174
|
-
var currentRedactedNames = () =>
|
|
3017
|
+
var currentRedactedNames = () => get4(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
|
|
3175
3018
|
var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
|
|
3176
3019
|
defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
|
|
3177
3020
|
});
|
|
3178
3021
|
|
|
3179
3022
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Terminal.js
|
|
3180
|
-
var
|
|
3023
|
+
var TypeId7 = "~effect/Terminal";
|
|
3181
3024
|
var QuitErrorTypeId = "~effect/Terminal/QuitError";
|
|
3182
3025
|
|
|
3183
3026
|
class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
|
|
@@ -3186,14 +3029,14 @@ class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
|
|
|
3186
3029
|
[QuitErrorTypeId] = QuitErrorTypeId;
|
|
3187
3030
|
}
|
|
3188
3031
|
var Terminal = /* @__PURE__ */ Service2("effect/Terminal");
|
|
3189
|
-
var
|
|
3032
|
+
var make24 = (impl) => Terminal.of({
|
|
3190
3033
|
...impl,
|
|
3191
|
-
[
|
|
3034
|
+
[TypeId7]: TypeId7
|
|
3192
3035
|
});
|
|
3193
3036
|
|
|
3194
3037
|
// node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
|
|
3195
3038
|
import * as readline from "readline";
|
|
3196
|
-
var
|
|
3039
|
+
var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
|
|
3197
3040
|
const stdin = process.stdin;
|
|
3198
3041
|
const stdout = process.stdout;
|
|
3199
3042
|
const lines = yield* make9();
|
|
@@ -3207,7 +3050,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3207
3050
|
};
|
|
3208
3051
|
stdin.once("end", onStdinEnd);
|
|
3209
3052
|
yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
|
|
3210
|
-
const rlRef = yield*
|
|
3053
|
+
const rlRef = yield* make10({
|
|
3211
3054
|
acquire: acquireRelease(sync2(() => {
|
|
3212
3055
|
const rl = readline.createInterface({
|
|
3213
3056
|
input: stdin,
|
|
@@ -3246,7 +3089,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3246
3089
|
if (stdin.isTTY)
|
|
3247
3090
|
stdin.setRawMode(enabled);
|
|
3248
3091
|
});
|
|
3249
|
-
const rawModeRef = yield*
|
|
3092
|
+
const rawModeRef = yield* make10({
|
|
3250
3093
|
acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
|
|
3251
3094
|
idleTimeToLive: "10 millis"
|
|
3252
3095
|
});
|
|
@@ -3297,14 +3140,14 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3297
3140
|
if (inputEnded) {
|
|
3298
3141
|
handleEnd();
|
|
3299
3142
|
} else {
|
|
3300
|
-
yield*
|
|
3301
|
-
yield*
|
|
3143
|
+
yield* get3(rlRef);
|
|
3144
|
+
yield* get3(rawModeRef);
|
|
3302
3145
|
stdin.once("end", handleEnd);
|
|
3303
3146
|
}
|
|
3304
3147
|
return queue;
|
|
3305
3148
|
});
|
|
3306
3149
|
const readLine = suspend3(() => poll(lines).pipe(flatMap3(match({
|
|
3307
|
-
onNone: () => scoped(andThen2(
|
|
3150
|
+
onNone: () => scoped(andThen2(get3(rlRef), take(lines))),
|
|
3308
3151
|
onSome: succeed6
|
|
3309
3152
|
})), mapError2(() => new QuitError({}))));
|
|
3310
3153
|
const display = (prompt) => uninterruptible(callback3((resume) => {
|
|
@@ -3315,7 +3158,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3315
3158
|
cause: err
|
|
3316
3159
|
}))));
|
|
3317
3160
|
}));
|
|
3318
|
-
return
|
|
3161
|
+
return make24({
|
|
3319
3162
|
columns,
|
|
3320
3163
|
rows,
|
|
3321
3164
|
size,
|
|
@@ -3324,7 +3167,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
|
|
|
3324
3167
|
display
|
|
3325
3168
|
});
|
|
3326
3169
|
});
|
|
3327
|
-
var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */
|
|
3170
|
+
var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make25(defaultShouldQuit));
|
|
3328
3171
|
function defaultShouldQuit(input) {
|
|
3329
3172
|
const key = input.key;
|
|
3330
3173
|
return key.name === "escape" || key.ctrl && (key.name === "c" || key.name === "d");
|
|
@@ -3351,7 +3194,7 @@ function toDate(input) {
|
|
|
3351
3194
|
return toDateUtc2(makeUnsafe(input));
|
|
3352
3195
|
}
|
|
3353
3196
|
function parseDate(input) {
|
|
3354
|
-
return getOrUndefined(map4(
|
|
3197
|
+
return getOrUndefined(map4(make18(input), toDateUtc2));
|
|
3355
3198
|
}
|
|
3356
3199
|
function toIso(input) {
|
|
3357
3200
|
return formatIso(makeUnsafe(input));
|
|
@@ -9566,85 +9409,6 @@ function sha256Hasher() {
|
|
|
9566
9409
|
digest: (encoding) => hash.digest(encoding)
|
|
9567
9410
|
};
|
|
9568
9411
|
}
|
|
9569
|
-
// packages/core/src/schedule.ts
|
|
9570
|
-
var ScheduleFrequency = ["daily", "weekly"];
|
|
9571
|
-
var ScheduleMisfirePolicies = ["skip", "fire_once", "catch_up"];
|
|
9572
|
-
var ScheduleOverlapPolicies = ["allow", "skip", "coalesce"];
|
|
9573
|
-
var ScheduleVersionStatuses = ["draft", "published", "disabled", "archived"];
|
|
9574
|
-
var ScheduleCalendarRule = Struct({
|
|
9575
|
-
frequency: Literals(ScheduleFrequency),
|
|
9576
|
-
hour: Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo(23)),
|
|
9577
|
-
minute: Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo(59)),
|
|
9578
|
-
second: optionalKey(Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo(59))),
|
|
9579
|
-
daysOfWeek: optionalKey(ArraySchema(Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo(6))).check(isMinLength(1), isMaxLength(7)))
|
|
9580
|
-
});
|
|
9581
|
-
var ScheduleCronRule = Struct({
|
|
9582
|
-
cron: String4.check(isMinLength(9), isMaxLength(200), isPattern(new RegExp("^[0-9*,/-]+( [0-9*,/-]+){4}$", "u")))
|
|
9583
|
-
});
|
|
9584
|
-
var ScheduleRule = Union([ScheduleCalendarRule, ScheduleCronRule]);
|
|
9585
|
-
var cronBounds = [
|
|
9586
|
-
[0, 59],
|
|
9587
|
-
[0, 23],
|
|
9588
|
-
[1, 31],
|
|
9589
|
-
[1, 12],
|
|
9590
|
-
[0, 7]
|
|
9591
|
-
];
|
|
9592
|
-
function cronField(field, [min, max]) {
|
|
9593
|
-
const values = new Set;
|
|
9594
|
-
for (const part of field.split(",")) {
|
|
9595
|
-
const match = /^(\*|(\d+)(?:-(\d+))?)(?:\/(\d+))?$/.exec(part);
|
|
9596
|
-
if (match === null)
|
|
9597
|
-
return;
|
|
9598
|
-
const from = match[1] === "*" ? min : Number(match[2]);
|
|
9599
|
-
const to = match[1] === "*" ? max : match[3] === undefined ? match[4] === undefined ? from : max : Number(match[3]);
|
|
9600
|
-
const step = match[4] === undefined ? 1 : Number(match[4]);
|
|
9601
|
-
if (from < min || to > max || from > to || step < 1)
|
|
9602
|
-
return;
|
|
9603
|
-
for (let value = from;value <= to; value += step)
|
|
9604
|
-
values.add(value);
|
|
9605
|
-
}
|
|
9606
|
-
return values;
|
|
9607
|
-
}
|
|
9608
|
-
function parseCron(cron) {
|
|
9609
|
-
const fields = cron.split(" ");
|
|
9610
|
-
const [minutes, hours, days, months, weekdays] = fields.map((field, index) => cronField(field, cronBounds[index] ?? [0, 0]));
|
|
9611
|
-
if (fields.length !== 5 || !minutes || !hours || !days || !months || !weekdays)
|
|
9612
|
-
return;
|
|
9613
|
-
return {
|
|
9614
|
-
minutes,
|
|
9615
|
-
hours,
|
|
9616
|
-
days,
|
|
9617
|
-
months,
|
|
9618
|
-
weekdays: new Set([...weekdays].map((value) => value % 7)),
|
|
9619
|
-
dayRestricted: !(fields[2] ?? "").startsWith("*"),
|
|
9620
|
-
weekdayRestricted: !(fields[4] ?? "").startsWith("*")
|
|
9621
|
-
};
|
|
9622
|
-
}
|
|
9623
|
-
function isScheduleRule(value) {
|
|
9624
|
-
return guard(ScheduleRule)(value) && (!("cron" in value) || parseCron(value.cron) !== undefined);
|
|
9625
|
-
}
|
|
9626
|
-
var ScheduleVersion = Struct({
|
|
9627
|
-
contractVersion: Literal("schedule.v1"),
|
|
9628
|
-
id: String4.check(isMinLength(1)),
|
|
9629
|
-
scheduleId: String4.check(isMinLength(1)),
|
|
9630
|
-
workspaceId: String4.check(isMinLength(1)),
|
|
9631
|
-
teamId: optionalKey(String4.check(isMinLength(1))),
|
|
9632
|
-
loopId: optionalKey(String4.check(isMinLength(1))),
|
|
9633
|
-
name: optionalKey(String4.check(isMinLength(1), isMaxLength(200))),
|
|
9634
|
-
version: Int.check(isGreaterThanOrEqualTo(1)),
|
|
9635
|
-
status: Literals(ScheduleVersionStatuses),
|
|
9636
|
-
timezone: String4.check(isMinLength(1), isMaxLength(80)),
|
|
9637
|
-
rule: ScheduleRule,
|
|
9638
|
-
misfirePolicy: Literals(ScheduleMisfirePolicies),
|
|
9639
|
-
overlapPolicy: Literals(ScheduleOverlapPolicies),
|
|
9640
|
-
maxCatchUp: Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo(200)),
|
|
9641
|
-
misfireGraceSeconds: optionalKey(Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo(604800))),
|
|
9642
|
-
inputSchemaRef: optionalKey(LoopDataSchemaRef),
|
|
9643
|
-
input: optionalKey(SafeJson),
|
|
9644
|
-
createdAt: String4.check(isMinLength(1))
|
|
9645
|
-
});
|
|
9646
|
-
var zones = new Map;
|
|
9647
|
-
var resolvedLocalDateTimes = new Map;
|
|
9648
9412
|
// packages/core/src/transcript.ts
|
|
9649
9413
|
var Text = String4.check(isMaxLength(200000));
|
|
9650
9414
|
var AgentEvent = Union([
|
|
@@ -9727,11 +9491,11 @@ var TranscriptSearchResult = Struct({
|
|
|
9727
9491
|
total: Int
|
|
9728
9492
|
});
|
|
9729
9493
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
|
|
9730
|
-
var
|
|
9494
|
+
var TypeId8 = "~effect/http/HttpBody";
|
|
9731
9495
|
class Proto5 {
|
|
9732
|
-
[
|
|
9496
|
+
[TypeId8];
|
|
9733
9497
|
constructor() {
|
|
9734
|
-
this[
|
|
9498
|
+
this[TypeId8] = TypeId8;
|
|
9735
9499
|
}
|
|
9736
9500
|
[NodeInspectSymbol]() {
|
|
9737
9501
|
return this.toJSON();
|
|
@@ -9822,7 +9586,7 @@ var jsonUnsafe = (body, contentType) => text(JSON.stringify(body), contentType ?
|
|
|
9822
9586
|
var urlParams = (urlParams, contentType) => text(toString(fromInput2(urlParams)), contentType ?? "application/x-www-form-urlencoded");
|
|
9823
9587
|
|
|
9824
9588
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientError.js
|
|
9825
|
-
var
|
|
9589
|
+
var TypeId9 = "~effect/http/HttpClientError";
|
|
9826
9590
|
class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
|
|
9827
9591
|
constructor(props) {
|
|
9828
9592
|
if ("cause" in props.reason) {
|
|
@@ -9834,7 +9598,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
|
|
|
9834
9598
|
super(props);
|
|
9835
9599
|
}
|
|
9836
9600
|
}
|
|
9837
|
-
[
|
|
9601
|
+
[TypeId9] = TypeId9;
|
|
9838
9602
|
get request() {
|
|
9839
9603
|
return this.reason.request;
|
|
9840
9604
|
}
|
|
@@ -9938,7 +9702,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError("EmptyBodyError")) {
|
|
|
9938
9702
|
}
|
|
9939
9703
|
}
|
|
9940
9704
|
|
|
9941
|
-
class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(
|
|
9705
|
+
class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId9)({
|
|
9942
9706
|
_tag: /* @__PURE__ */ tag("HttpError"),
|
|
9943
9707
|
kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
|
|
9944
9708
|
cause: /* @__PURE__ */ optional(/* @__PURE__ */ Defect())
|
|
@@ -9971,7 +9735,7 @@ var updateContentLength = (headers, body) => {
|
|
|
9971
9735
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Url.js
|
|
9972
9736
|
class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
|
|
9973
9737
|
}
|
|
9974
|
-
var
|
|
9738
|
+
var make26 = (url, params, hash) => try_({
|
|
9975
9739
|
try: () => {
|
|
9976
9740
|
const urlInstance = new URL(url, baseUrl());
|
|
9977
9741
|
for (let i = 0;i < params.params.length; i++) {
|
|
@@ -10002,10 +9766,10 @@ var baseUrl = () => {
|
|
|
10002
9766
|
};
|
|
10003
9767
|
|
|
10004
9768
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientRequest.js
|
|
10005
|
-
var
|
|
10006
|
-
var isHttpClientRequest = (u) => hasProperty(u,
|
|
9769
|
+
var TypeId10 = "~effect/http/HttpClientRequest";
|
|
9770
|
+
var isHttpClientRequest = (u) => hasProperty(u, TypeId10);
|
|
10007
9771
|
var Proto6 = {
|
|
10008
|
-
[
|
|
9772
|
+
[TypeId10]: TypeId10,
|
|
10009
9773
|
...BaseProto,
|
|
10010
9774
|
toJSON() {
|
|
10011
9775
|
return {
|
|
@@ -10094,7 +9858,7 @@ var bodyUint8Array = /* @__PURE__ */ dual((args) => isHttpClientRequest(args[0])
|
|
|
10094
9858
|
var bodyJsonUnsafe = /* @__PURE__ */ dual(2, (self, body) => setBody(self, jsonUnsafe(body)));
|
|
10095
9859
|
var bodyUrlParams = /* @__PURE__ */ dual(2, (self, input) => setBody(self, urlParams(fromInput2(input))));
|
|
10096
9860
|
function toUrl(self) {
|
|
10097
|
-
const r =
|
|
9861
|
+
const r = make26(self.url, self.urlParams, getOrUndefined(self.hash));
|
|
10098
9862
|
if (isSuccess(r)) {
|
|
10099
9863
|
return some(r.success);
|
|
10100
9864
|
}
|
|
@@ -10102,7 +9866,7 @@ function toUrl(self) {
|
|
|
10102
9866
|
}
|
|
10103
9867
|
|
|
10104
9868
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpIncomingMessage.js
|
|
10105
|
-
var
|
|
9869
|
+
var TypeId11 = "~effect/http/HttpIncomingMessage";
|
|
10106
9870
|
var schemaBodyJson = (schema, options) => {
|
|
10107
9871
|
const decode = decodeEffect(toCodecJson(schema));
|
|
10108
9872
|
const decodeJson = options?.reviver === undefined ? undefined : decodeEffect(fromJsonString(toCodecJson(schema), options));
|
|
@@ -10121,7 +9885,7 @@ var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
|
|
|
10121
9885
|
var getWebSource = (self) => self[WebSourceSymbol]?.();
|
|
10122
9886
|
|
|
10123
9887
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientResponse.js
|
|
10124
|
-
var
|
|
9888
|
+
var TypeId12 = "~effect/http/HttpClientResponse";
|
|
10125
9889
|
var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
|
|
10126
9890
|
var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail7(new HttpClientError({
|
|
10127
9891
|
reason: new StatusCodeError({
|
|
@@ -10132,16 +9896,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
|
|
|
10132
9896
|
}));
|
|
10133
9897
|
|
|
10134
9898
|
class WebHttpClientResponse extends Class {
|
|
9899
|
+
[TypeId11];
|
|
10135
9900
|
[TypeId12];
|
|
10136
|
-
[TypeId13];
|
|
10137
9901
|
request;
|
|
10138
9902
|
source;
|
|
10139
9903
|
constructor(request, source) {
|
|
10140
9904
|
super();
|
|
10141
9905
|
this.request = request;
|
|
10142
9906
|
this.source = source;
|
|
9907
|
+
this[TypeId11] = TypeId11;
|
|
10143
9908
|
this[TypeId12] = TypeId12;
|
|
10144
|
-
this[TypeId13] = TypeId13;
|
|
10145
9909
|
}
|
|
10146
9910
|
toJSON() {
|
|
10147
9911
|
return inspect(this, {
|
|
@@ -10313,7 +10077,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
|
|
|
10313
10077
|
};
|
|
10314
10078
|
|
|
10315
10079
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClient.js
|
|
10316
|
-
var
|
|
10080
|
+
var TypeId13 = "~effect/http/HttpClient";
|
|
10317
10081
|
var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
|
|
10318
10082
|
var accessor = (method) => (...args) => flatMap3(HttpClient, (client) => client[method](...args));
|
|
10319
10083
|
var execute = /* @__PURE__ */ accessor("execute");
|
|
@@ -10330,7 +10094,7 @@ var makeWith2 = (postprocess, preprocess) => {
|
|
|
10330
10094
|
return self;
|
|
10331
10095
|
};
|
|
10332
10096
|
var Proto7 = {
|
|
10333
|
-
[
|
|
10097
|
+
[TypeId13]: TypeId13,
|
|
10334
10098
|
pipe() {
|
|
10335
10099
|
return pipeArguments(this, arguments);
|
|
10336
10100
|
},
|
|
@@ -10344,10 +10108,10 @@ var Proto7 = {
|
|
|
10344
10108
|
return this.execute(make5(fullMethod)(url, options));
|
|
10345
10109
|
}]))
|
|
10346
10110
|
};
|
|
10347
|
-
var
|
|
10111
|
+
var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
|
|
10348
10112
|
const scopedController = scopedRequests.get(request);
|
|
10349
10113
|
const controller = scopedController ?? new AbortController;
|
|
10350
|
-
const urlResult =
|
|
10114
|
+
const urlResult = make26(request.url, request.urlParams, getOrUndefined(request.hash));
|
|
10351
10115
|
if (isFailure(urlResult)) {
|
|
10352
10116
|
return fail7(new HttpClientError({
|
|
10353
10117
|
reason: new InvalidUrlError({
|
|
@@ -10481,8 +10245,8 @@ class InterruptibleResponse {
|
|
|
10481
10245
|
this.original = original;
|
|
10482
10246
|
this.controller = controller;
|
|
10483
10247
|
}
|
|
10484
|
-
[TypeId13] = TypeId13;
|
|
10485
10248
|
[TypeId12] = TypeId12;
|
|
10249
|
+
[TypeId11] = TypeId11;
|
|
10486
10250
|
applyInterrupt(effect) {
|
|
10487
10251
|
return suspend3(() => {
|
|
10488
10252
|
responseRegistry.unregister(this.original);
|
|
@@ -10580,7 +10344,7 @@ var detectStreamBodySupport = () => {
|
|
|
10580
10344
|
return false;
|
|
10581
10345
|
}
|
|
10582
10346
|
};
|
|
10583
|
-
var fetch2 = /* @__PURE__ */
|
|
10347
|
+
var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
|
|
10584
10348
|
if (request.headers.upgrade !== undefined) {
|
|
10585
10349
|
return fail7(new HttpClientError({
|
|
10586
10350
|
reason: new TransportError({
|
|
@@ -10671,10 +10435,10 @@ var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
|
|
|
10671
10435
|
});
|
|
10672
10436
|
var layer4 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch2));
|
|
10673
10437
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/socket/Socket.js
|
|
10674
|
-
var
|
|
10438
|
+
var TypeId14 = "~effect/socket/Socket";
|
|
10675
10439
|
var Socket = /* @__PURE__ */ Service2("effect/socket/Socket");
|
|
10676
|
-
var
|
|
10677
|
-
[
|
|
10440
|
+
var make28 = (options) => Socket.of({
|
|
10441
|
+
[TypeId14]: TypeId14,
|
|
10678
10442
|
reader: options.reader,
|
|
10679
10443
|
writer: options.writer
|
|
10680
10444
|
});
|
|
@@ -10997,7 +10761,7 @@ var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
|
|
|
10997
10761
|
write,
|
|
10998
10762
|
writeAll
|
|
10999
10763
|
});
|
|
11000
|
-
return succeed6(
|
|
10764
|
+
return succeed6(make28({
|
|
11001
10765
|
reader,
|
|
11002
10766
|
writer
|
|
11003
10767
|
}));
|
|
@@ -11568,120 +11332,6 @@ var DeployBindingCreate = Struct({
|
|
|
11568
11332
|
});
|
|
11569
11333
|
var DeployBindingList = Struct({ items: ArraySchema(DeployBinding) });
|
|
11570
11334
|
var defaultKitName = "@kitman-sh/software-engineering";
|
|
11571
|
-
|
|
11572
|
-
// packages/core/src/kit-declarations.ts
|
|
11573
|
-
var LoopCapabilities = [
|
|
11574
|
-
"agent_work",
|
|
11575
|
-
"ask",
|
|
11576
|
-
"call",
|
|
11577
|
-
"verify",
|
|
11578
|
-
"change_request",
|
|
11579
|
-
"write_back",
|
|
11580
|
-
"post_comment",
|
|
11581
|
-
"create_tasks",
|
|
11582
|
-
"merge_change_request",
|
|
11583
|
-
"approve_change_request",
|
|
11584
|
-
"publish_release",
|
|
11585
|
-
"read_transcripts",
|
|
11586
|
-
"read_change_request",
|
|
11587
|
-
"measure",
|
|
11588
|
-
"claim",
|
|
11589
|
-
"propose",
|
|
11590
|
-
"read_project",
|
|
11591
|
-
"draft_update"
|
|
11592
|
-
];
|
|
11593
|
-
var JsonObject2 = Record(String4, Json);
|
|
11594
|
-
var SecretName2 = String4.check(isPattern(/^[A-Za-z_][A-Za-z0-9_]{0,127}$/));
|
|
11595
|
-
var EventFilterValue = Union([String4, Finite, Boolean2, Null]);
|
|
11596
|
-
var LoopManifest = Struct({
|
|
11597
|
-
id: String4,
|
|
11598
|
-
title: String4,
|
|
11599
|
-
version: optionalKey(LoopVersion),
|
|
11600
|
-
input: JsonObject2,
|
|
11601
|
-
output: JsonObject2,
|
|
11602
|
-
outcome: optionalKey(Literals(["feature", "bug", "refactor", "investigation", "docs", "migration", "performance"])),
|
|
11603
|
-
agents: Record(String4, String4),
|
|
11604
|
-
checkout: Literals(["none", "read", "write"]),
|
|
11605
|
-
when: ArraySchema(Struct({
|
|
11606
|
-
event: String4,
|
|
11607
|
-
filter: optionalKey(Record(String4, Union([EventFilterValue, ArraySchema(EventFilterValue)]))),
|
|
11608
|
-
input: Record(String4, String4),
|
|
11609
|
-
values: optionalKey(JsonObject2)
|
|
11610
|
-
})),
|
|
11611
|
-
offers: ArraySchema(Struct({
|
|
11612
|
-
id: String4,
|
|
11613
|
-
title: String4,
|
|
11614
|
-
loop: String4,
|
|
11615
|
-
from: optionalKey(String4)
|
|
11616
|
-
})),
|
|
11617
|
-
capabilities: ArraySchema(Literals(LoopCapabilities)),
|
|
11618
|
-
ownCapabilities: optionalKey(ArraySchema(Literals(LoopCapabilities))),
|
|
11619
|
-
secrets: optionalKey(ArraySchema(SecretName2)),
|
|
11620
|
-
network: optionalKey(AgentSandboxNetwork),
|
|
11621
|
-
schedule: optionalKey(Struct({ rule: ScheduleRule, timezone: String4 }))
|
|
11622
|
-
});
|
|
11623
|
-
var LoopDetail = Struct({
|
|
11624
|
-
id: String4,
|
|
11625
|
-
resolved: optionalKey(Struct({
|
|
11626
|
-
...ProgramLoop.fields,
|
|
11627
|
-
agents: LoopManifest.fields.agents,
|
|
11628
|
-
when: LoopManifest.fields.when,
|
|
11629
|
-
schedule: optionalKey(Struct({
|
|
11630
|
-
rule: ScheduleRule,
|
|
11631
|
-
timezone: String4,
|
|
11632
|
-
on: Boolean2,
|
|
11633
|
-
nextRunAt: optionalKey(String4)
|
|
11634
|
-
}))
|
|
11635
|
-
}))
|
|
11636
|
-
});
|
|
11637
|
-
var AgentDeclaration = Struct({
|
|
11638
|
-
extends: optionalKey(String4),
|
|
11639
|
-
instructions: optionalKey(String4),
|
|
11640
|
-
harness: optionalKey(String4),
|
|
11641
|
-
model: optionalKey(String4),
|
|
11642
|
-
effort: optionalKey(Literals(AgentEfforts)),
|
|
11643
|
-
fallbacks: optionalKey(ArraySchema(AgentFallback)),
|
|
11644
|
-
tools: optionalKey(ArraySchema(Literals(AgentCapabilities))),
|
|
11645
|
-
skills: optionalKey(ArraySchema(String4.check(isMinLength(1)))),
|
|
11646
|
-
network: optionalKey(Union([Struct({ hosts: ArraySchema(String4) }), Literal("open")])),
|
|
11647
|
-
sandbox: optionalKey(Literal("docker"))
|
|
11648
|
-
});
|
|
11649
|
-
var scheduleFields = {
|
|
11650
|
-
name: String4.check(isMinLength(1)),
|
|
11651
|
-
loop: String4,
|
|
11652
|
-
team: optionalKey(String4),
|
|
11653
|
-
input: optionalKey(JsonObject2),
|
|
11654
|
-
timezone: String4,
|
|
11655
|
-
misfire: optionalKey(Literals(ScheduleMisfirePolicies)),
|
|
11656
|
-
overlap: optionalKey(Literals(ScheduleOverlapPolicies))
|
|
11657
|
-
};
|
|
11658
|
-
var ScheduleDeclaration = Union([
|
|
11659
|
-
Struct({
|
|
11660
|
-
...scheduleFields,
|
|
11661
|
-
cron: String4.check(makeFilter((cron) => isScheduleRule({ cron }) || "five cron fields, each within its range"))
|
|
11662
|
-
}),
|
|
11663
|
-
Struct({
|
|
11664
|
-
...scheduleFields,
|
|
11665
|
-
rule: declare((value) => isScheduleRule(value), {
|
|
11666
|
-
expected: "a Schedule rule: frequency daily or weekly, hour, minute, and optionally second and daysOfWeek"
|
|
11667
|
-
})
|
|
11668
|
-
})
|
|
11669
|
-
]);
|
|
11670
|
-
var CarriedKit = Struct({
|
|
11671
|
-
name: KitName,
|
|
11672
|
-
version: String4.check(isMinLength(1)),
|
|
11673
|
-
setup: KitDigest,
|
|
11674
|
-
loops: ArraySchema(String4),
|
|
11675
|
-
agents: ArraySchema(String4)
|
|
11676
|
-
});
|
|
11677
|
-
var KitDeclarations = Struct({
|
|
11678
|
-
loops: ArraySchema(LoopManifest),
|
|
11679
|
-
agents: Record(String4, AgentDeclaration),
|
|
11680
|
-
schedules: optionalKey(Record(String4, ScheduleDeclaration)),
|
|
11681
|
-
carried: optionalKey(ArraySchema(CarriedKit))
|
|
11682
|
-
});
|
|
11683
|
-
var sameLoop = toEquivalence(LoopManifest);
|
|
11684
|
-
var sameAgent = toEquivalence(AgentDeclaration);
|
|
11685
11335
|
// packages/core/src/kit-setup.ts
|
|
11686
11336
|
var KitSetup = Struct({
|
|
11687
11337
|
...AgentEnvironmentFragment.fields,
|
|
@@ -14006,7 +13656,7 @@ function getStreamSchemas(schema) {
|
|
|
14006
13656
|
}
|
|
14007
13657
|
var schema = /* @__PURE__ */ declare(isStream);
|
|
14008
13658
|
function Stream(success, error) {
|
|
14009
|
-
return
|
|
13659
|
+
return make17(schema.ast, {
|
|
14010
13660
|
[StreamSchemaTypeId]: StreamSchemaTypeId,
|
|
14011
13661
|
success,
|
|
14012
13662
|
error
|
|
@@ -14014,9 +13664,9 @@ function Stream(success, error) {
|
|
|
14014
13664
|
}
|
|
14015
13665
|
|
|
14016
13666
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
|
|
14017
|
-
var
|
|
13667
|
+
var TypeId15 = "~effect/rpc/Rpc";
|
|
14018
13668
|
var Proto8 = {
|
|
14019
|
-
[
|
|
13669
|
+
[TypeId15]: TypeId15,
|
|
14020
13670
|
pipe() {
|
|
14021
13671
|
return pipeArguments(this, arguments);
|
|
14022
13672
|
},
|
|
@@ -14183,7 +13833,7 @@ class WorkerUnknownError extends (/* @__PURE__ */ Error3("effect/workers/WorkerE
|
|
|
14183
13833
|
var WorkerErrorReason = /* @__PURE__ */ Union([WorkerSpawnError, WorkerSendError, WorkerReceiveError, WorkerUnknownError]);
|
|
14184
13834
|
|
|
14185
13835
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcClientError.js
|
|
14186
|
-
var
|
|
13836
|
+
var TypeId16 = "~effect/rpc/RpcClientError";
|
|
14187
13837
|
|
|
14188
13838
|
class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError/RpcClientDefect")({
|
|
14189
13839
|
_tag: /* @__PURE__ */ tag("RpcClientDefect"),
|
|
@@ -14192,11 +13842,11 @@ class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError
|
|
|
14192
13842
|
})) {
|
|
14193
13843
|
}
|
|
14194
13844
|
|
|
14195
|
-
class RpcClientError extends (/* @__PURE__ */ Error3(
|
|
13845
|
+
class RpcClientError extends (/* @__PURE__ */ Error3(TypeId16)({
|
|
14196
13846
|
_tag: /* @__PURE__ */ tag("RpcClientError"),
|
|
14197
13847
|
reason: /* @__PURE__ */ Union([WorkerErrorReason, SocketErrorReason, HttpClientErrorSchema, RpcClientDefect])
|
|
14198
13848
|
})) {
|
|
14199
|
-
[
|
|
13849
|
+
[TypeId16] = TypeId16;
|
|
14200
13850
|
get message() {
|
|
14201
13851
|
return `${this.reason._tag}: ${this.reason.message}`;
|
|
14202
13852
|
}
|
|
@@ -14316,7 +13966,7 @@ var RpcGroupProto = {
|
|
|
14316
13966
|
});
|
|
14317
13967
|
},
|
|
14318
13968
|
annotateRpcs(service, value) {
|
|
14319
|
-
return this.annotateRpcsMerge(
|
|
13969
|
+
return this.annotateRpcsMerge(make15(service, value));
|
|
14320
13970
|
},
|
|
14321
13971
|
annotateMerge(context) {
|
|
14322
13972
|
return makeProto2({
|
|
@@ -14344,7 +13994,7 @@ var make7 = (...rpcs) => makeProto2({
|
|
|
14344
13994
|
annotations: empty3()
|
|
14345
13995
|
});
|
|
14346
13996
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
|
|
14347
|
-
var
|
|
13997
|
+
var TypeId17 = "~effect/rpc/RpcMiddleware";
|
|
14348
13998
|
var Service = () => (id, options) => {
|
|
14349
13999
|
const limit = getStackTraceLimit();
|
|
14350
14000
|
let creationError;
|
|
@@ -14362,7 +14012,7 @@ var Service = () => (id, options) => {
|
|
|
14362
14012
|
return creationError?.stack;
|
|
14363
14013
|
}
|
|
14364
14014
|
});
|
|
14365
|
-
ServiceClass_[
|
|
14015
|
+
ServiceClass_[TypeId17] = TypeId17;
|
|
14366
14016
|
ServiceClass_.error = options?.error ?? Never;
|
|
14367
14017
|
ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
|
|
14368
14018
|
return ServiceClass;
|
|
@@ -14381,7 +14031,7 @@ class RunnerAuthentication extends Service()("RunnerAuthentication", {
|
|
|
14381
14031
|
error: RunnerRpcError
|
|
14382
14032
|
}) {
|
|
14383
14033
|
}
|
|
14384
|
-
var
|
|
14034
|
+
var EventFilterValue = Union([String4, Finite, Boolean2, Null]);
|
|
14385
14035
|
var WorkAvailable = TaggedStruct("WorkAvailable", {});
|
|
14386
14036
|
var LeaseRevoked = TaggedStruct("LeaseRevoked", { workUnitId: String4 });
|
|
14387
14037
|
var Settled = TaggedStruct("Settled", { workUnitId: String4 });
|
|
@@ -14594,12 +14244,12 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
|
|
|
14594
14244
|
step: String4,
|
|
14595
14245
|
deferredName: String4,
|
|
14596
14246
|
event: String4,
|
|
14597
|
-
filter: optional(Record(String4, Union([
|
|
14247
|
+
filter: optional(Record(String4, Union([EventFilterValue, ArraySchema(EventFilterValue)]))),
|
|
14598
14248
|
timeoutMillis: Int,
|
|
14599
14249
|
since: optionalKey(String4),
|
|
14600
14250
|
or: optionalKey(ArraySchema(Struct({
|
|
14601
14251
|
event: String4,
|
|
14602
|
-
filter: optionalKey(Record(String4, Union([
|
|
14252
|
+
filter: optionalKey(Record(String4, Union([EventFilterValue, ArraySchema(EventFilterValue)]))),
|
|
14603
14253
|
since: optionalKey(String4)
|
|
14604
14254
|
})))
|
|
14605
14255
|
},
|
|
@@ -14974,7 +14624,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
|
|
|
14974
14624
|
var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
|
|
14975
14625
|
|
|
14976
14626
|
// apps/cli/src/oauth.ts
|
|
14977
|
-
var
|
|
14627
|
+
var Scope = "openid profile email offline_access kitman:cli";
|
|
14978
14628
|
var CallbackPath = "/auth/callback";
|
|
14979
14629
|
|
|
14980
14630
|
class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
|
|
@@ -14993,7 +14643,7 @@ function buildAuthorizeUrl(input) {
|
|
|
14993
14643
|
url.searchParams.set("response_type", "code");
|
|
14994
14644
|
url.searchParams.set("client_id", input.clientId);
|
|
14995
14645
|
url.searchParams.set("redirect_uri", input.redirectUri);
|
|
14996
|
-
url.searchParams.set("scope",
|
|
14646
|
+
url.searchParams.set("scope", Scope);
|
|
14997
14647
|
url.searchParams.set("code_challenge", input.codeChallenge);
|
|
14998
14648
|
url.searchParams.set("code_challenge_method", "S256");
|
|
14999
14649
|
url.searchParams.set("state", input.state);
|
|
@@ -15053,7 +14703,7 @@ function toStoredSession(token, existingRefreshToken) {
|
|
|
15053
14703
|
}
|
|
15054
14704
|
function startLoopbackServer(input) {
|
|
15055
14705
|
return gen(function* () {
|
|
15056
|
-
const code = yield*
|
|
14706
|
+
const code = yield* make16();
|
|
15057
14707
|
const context2 = yield* context();
|
|
15058
14708
|
const runSyncExit = runSyncExitWith(context2);
|
|
15059
14709
|
const server = yield* acquireRelease(sync2(() => Bun.serve({
|
|
@@ -15593,7 +15243,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
15593
15243
|
let lastId = 0;
|
|
15594
15244
|
let lost = false;
|
|
15595
15245
|
const notifications = yield* unbounded2();
|
|
15596
|
-
const ended = yield*
|
|
15246
|
+
const ended = yield* make16();
|
|
15597
15247
|
const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
|
|
15598
15248
|
onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
|
|
15599
15249
|
onNone: () => void_3,
|
|
@@ -15620,7 +15270,7 @@ var openConnection = (transport) => gen(function* () {
|
|
|
15620
15270
|
if (lost)
|
|
15621
15271
|
return yield* new HerdrCoreConnectionLost2({ method });
|
|
15622
15272
|
const id = ++lastId;
|
|
15623
|
-
const deferred = yield*
|
|
15273
|
+
const deferred = yield* make16();
|
|
15624
15274
|
pending.set(id, { method, deferred });
|
|
15625
15275
|
yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
|
|
15626
15276
|
return yield* _await(deferred);
|
|
@@ -15694,7 +15344,7 @@ var herdrCoreOver = (transport) => ({
|
|
|
15694
15344
|
return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
|
|
15695
15345
|
};
|
|
15696
15346
|
const snapshot = { type: "snapshot", terminals: subscribed.terminals };
|
|
15697
|
-
return concat(
|
|
15347
|
+
return concat(make11(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
|
|
15698
15348
|
}))
|
|
15699
15349
|
});
|
|
15700
15350
|
var spawnedTransport = (env) => gen(function* () {
|
|
@@ -15785,7 +15435,7 @@ var runProcess2 = (argv, options) => gen(function* () {
|
|
|
15785
15435
|
const spawner = yield* ChildProcessSpawner;
|
|
15786
15436
|
const [command, ...args] = argv;
|
|
15787
15437
|
const handle = yield* spawner.spawn(make3(command, args, {
|
|
15788
|
-
stdin: options.stdin === undefined ? "ignore" :
|
|
15438
|
+
stdin: options.stdin === undefined ? "ignore" : make11(new TextEncoder().encode(options.stdin)),
|
|
15789
15439
|
...options.cwd === undefined ? undefined : { cwd: options.cwd },
|
|
15790
15440
|
env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
|
|
15791
15441
|
}));
|
|
@@ -16210,4 +15860,4 @@ function checkServices(declaration) {
|
|
|
16210
15860
|
return isSome(decoded) ? [...new Set(decoded.value.services)] : undefined;
|
|
16211
15861
|
}
|
|
16212
15862
|
|
|
16213
|
-
export { Clock, currentTimeMillis, WebCrypto, SecureRandom, layerWebCrypto, makeUnsafe, formatIso, empty, fromInput, merge, runMain, layer, layer2, Stdio, Terminal, layer3, error, log, toDate, parseDate, toIso, currentDate, wallClockMillis, waitingOnWords, queueWords, scanDurableSurface, redactResponseSurface, redactCredentials, redactedOutputTail, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, RunDisplayStates, RunWaitUntils, isTestReportName, checkTests, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, MaxRunnerConcurrency, PinnedImage, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, repositoryKey, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw, make5, get, post, put, setHeaders, acceptJson, bodyUint8Array, bodyJsonUnsafe, bodyUrlParams, schemaBodyJson, filterStatusOk, HttpClient, execute, get2, Fetch, layer4, Socket, SocketReadError, SocketError, WebSocketConstructor, layerWebSocketConstructorGlobal, layerWebSocket, runDisplayLabels, listedSummary, KitDigest, defaultKitName,
|
|
15863
|
+
export { Clock, currentTimeMillis, WebCrypto, SecureRandom, layerWebCrypto, makeUnsafe, formatIso, empty, fromInput, merge, runMain, layer, layer2, Stdio, Terminal, layer3, error, log, toDate, parseDate, toIso, currentDate, wallClockMillis, waitingOnWords, queueWords, scanDurableSurface, redactResponseSurface, redactCredentials, redactedOutputTail, SafeJson, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, RunWaitUntils, isTestReportName, checkTests, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, MaxRunnerConcurrency, PinnedImage, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, repositoryKey, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw, make5, get, post, put, setHeaders, acceptJson, bodyUint8Array, bodyJsonUnsafe, bodyUrlParams, schemaBodyJson, filterStatusOk, HttpClient, execute, get2, Fetch, layer4, Socket, SocketReadError, SocketError, WebSocketConstructor, layerWebSocketConstructorGlobal, layerWebSocket, runDisplayLabels, listedSummary, KitName, KitDigest, defaultKitName, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, removeAgentCredential, normalizeApiUrl, isStoredAgentCredential, isStreamSchema, getStreamSchemas, make6, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make7, Service, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, RunSettled, UpdateAvailable, RunnerReplicaRpcs, RunnerRunFileRpcs, ProgramRpcs, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, setupMcpAgentCredential, generateAgentKeyPair, HERDR_CORE_GENERATION2, HERDR_CORE_INSTALL_COMMAND2, HerdrCoreMissing2, HerdrCoreIncompatible2, HerdrCoreConnectionLost2, HerdrCoreRpcError2, HerdrCoreUpdateFailed2, HerdrCore2, herdrCoreLayer2, herdrCoreTransportLayer2, updateHerdrCore2, CommandFailed2, runCommand2, withoutPreloads2, shellOutputTailChars2, runProcess2, CommandRunner2, runShell2, detectHarnesses2, kitHarnesses, isKitHarness, instructionsStart, instructionsEnd, harnessNames, renderMcpServer, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices };
|