@kitman-sh/cli 0.41.0 → 0.42.1
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-amnctk9f.js → chunk-1ay659hm.js} +6 -6
- package/dist/{chunk-xat27r93.js → chunk-4pcknv14.js} +29 -23
- package/dist/{chunk-v2pk0b62.js → chunk-4v0dkm5t.js} +2 -2
- package/dist/{chunk-vd9wjvwt.js → chunk-6e1fq0ct.js} +7 -7
- package/dist/{chunk-cs66re9p.js → chunk-6x08g7m6.js} +10 -10
- package/dist/{chunk-5rvn8bah.js → chunk-6xnkbrs7.js} +144 -144
- package/dist/{chunk-c8rck2r5.js → chunk-7091bpsv.js} +4 -4
- package/dist/{chunk-yxj4dmef.js → chunk-7n64vjb2.js} +8 -8
- package/dist/{chunk-wre79w3z.js → chunk-8b02x7vv.js} +1 -1
- package/dist/{chunk-zvp4wm6b.js → chunk-8q04gtg1.js} +6 -6
- package/dist/{chunk-tpmyf5mk.js → chunk-98azvx6g.js} +1 -1
- package/dist/{chunk-b4td2pgc.js → chunk-bqbfyqx6.js} +61 -61
- package/dist/{chunk-svq8b6fq.js → chunk-cnryphhh.js} +5 -5
- package/dist/{chunk-hfy8nmat.js → chunk-d4vhrja4.js} +3 -3
- package/dist/{chunk-j4s7r8hg.js → chunk-dgqjmd95.js} +18 -18
- package/dist/{chunk-qndcafax.js → chunk-ea29sbaq.js} +1 -1
- package/dist/{chunk-sasjamqz.js → chunk-etrfc5cn.js} +178 -29
- package/dist/{chunk-32fc44tx.js → chunk-evpyks4h.js} +10 -10
- package/dist/{chunk-rt2sh0jh.js → chunk-gf2np1ak.js} +59 -59
- package/dist/{chunk-pz7s0apf.js → chunk-hgvft7vy.js} +4 -4
- package/dist/{chunk-f7qdzedh.js → chunk-kqr3ts9q.js} +122 -278
- package/dist/{chunk-p9ykk8h7.js → chunk-nk35kh6w.js} +3 -3
- package/dist/{chunk-drw8m50d.js → chunk-ns26fbmk.js} +2 -2
- package/dist/{chunk-yv80rgfx.js → chunk-p4asjq9r.js} +1 -1
- package/dist/{chunk-0jphb7hd.js → chunk-rv8t9jzj.js} +4 -4
- package/dist/{chunk-dhe1fwhw.js → chunk-wy6gmtd9.js} +2 -2
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -1331,11 +1331,11 @@ var Prototype = (options) => makePrimitiveProto({
|
|
|
1331
1331
|
});
|
|
1332
1332
|
|
|
1333
1333
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Equivalence.js
|
|
1334
|
-
var
|
|
1334
|
+
var make14 = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
|
|
1335
1335
|
var isStrictEquivalent = (x, y) => x === y;
|
|
1336
1336
|
var strictEqual = () => isStrictEquivalent;
|
|
1337
1337
|
function Tuple(elements) {
|
|
1338
|
-
return
|
|
1338
|
+
return make14((self, that) => {
|
|
1339
1339
|
if (self.length !== that.length) {
|
|
1340
1340
|
return false;
|
|
1341
1341
|
}
|
|
@@ -1348,7 +1348,7 @@ function Tuple(elements) {
|
|
|
1348
1348
|
});
|
|
1349
1349
|
}
|
|
1350
1350
|
function Array_(item) {
|
|
1351
|
-
return
|
|
1351
|
+
return make14((self, that) => {
|
|
1352
1352
|
if (self.length !== that.length)
|
|
1353
1353
|
return false;
|
|
1354
1354
|
for (let i = 0;i < self.length; i++) {
|
|
@@ -1568,7 +1568,7 @@ var ServiceProto = {
|
|
|
1568
1568
|
.../* @__PURE__ */ Prototype({
|
|
1569
1569
|
label: "Service",
|
|
1570
1570
|
evaluate(fiber) {
|
|
1571
|
-
return exitSucceed(
|
|
1571
|
+
return exitSucceed(get4(fiber.context, this));
|
|
1572
1572
|
}
|
|
1573
1573
|
}),
|
|
1574
1574
|
toJSON() {
|
|
@@ -1581,13 +1581,13 @@ var ServiceProto = {
|
|
|
1581
1581
|
return self;
|
|
1582
1582
|
},
|
|
1583
1583
|
context(self) {
|
|
1584
|
-
return
|
|
1584
|
+
return make15(this, self);
|
|
1585
1585
|
},
|
|
1586
1586
|
use(f) {
|
|
1587
|
-
return withFiber((fiber) => f(
|
|
1587
|
+
return withFiber((fiber) => f(get4(fiber.context, this)));
|
|
1588
1588
|
},
|
|
1589
1589
|
useSync(f) {
|
|
1590
|
-
return withFiber((fiber) => exitSucceed(f(
|
|
1590
|
+
return withFiber((fiber) => exitSucceed(f(get4(fiber.context, this))));
|
|
1591
1591
|
}
|
|
1592
1592
|
};
|
|
1593
1593
|
var cacheKeys = /* @__PURE__ */ new Set;
|
|
@@ -1685,7 +1685,7 @@ var isContext = (u) => hasProperty(u, TypeId3);
|
|
|
1685
1685
|
var isReference = (u) => !!u[ReferenceTypeId];
|
|
1686
1686
|
var empty3 = () => emptyContext2;
|
|
1687
1687
|
var emptyContext2 = /* @__PURE__ */ makeUnsafe4(/* @__PURE__ */ new Map);
|
|
1688
|
-
var
|
|
1688
|
+
var make15 = (key, service) => makeUnsafe4(new Map([[key.key, service]]));
|
|
1689
1689
|
var add = /* @__PURE__ */ dual(3, (self, key, service) => addUnsafe(self, key.key, service));
|
|
1690
1690
|
var addUnsafe = (self, key, service) => {
|
|
1691
1691
|
const impl = self;
|
|
@@ -1717,7 +1717,7 @@ var getUnsafe = /* @__PURE__ */ dual(2, (self, service) => {
|
|
|
1717
1717
|
}
|
|
1718
1718
|
return value;
|
|
1719
1719
|
});
|
|
1720
|
-
var
|
|
1720
|
+
var get4 = getUnsafe;
|
|
1721
1721
|
var defaultValueCacheKey = "~effect/Context/defaultValue";
|
|
1722
1722
|
var getDefaultValue = (ref) => {
|
|
1723
1723
|
if (defaultValueCacheKey in ref) {
|
|
@@ -3049,7 +3049,7 @@ class FiberImpl {
|
|
|
3049
3049
|
return this._dispatcher ??= this.cache.scheduler.makeDispatcher();
|
|
3050
3050
|
}
|
|
3051
3051
|
getRef(ref) {
|
|
3052
|
-
return
|
|
3052
|
+
return get4(this.context, ref);
|
|
3053
3053
|
}
|
|
3054
3054
|
addObserver(cb) {
|
|
3055
3055
|
if (this._exit) {
|
|
@@ -3077,7 +3077,7 @@ class FiberImpl {
|
|
|
3077
3077
|
}
|
|
3078
3078
|
let cause = causeInterrupt(fiberId);
|
|
3079
3079
|
if (this.cache.stackFrame) {
|
|
3080
|
-
cause = causeAnnotate(cause,
|
|
3080
|
+
cause = causeAnnotate(cause, make15(StackTraceKey, this.cache.stackFrame));
|
|
3081
3081
|
}
|
|
3082
3082
|
if (annotations) {
|
|
3083
3083
|
cause = causeAnnotate(cause, annotations);
|
|
@@ -3250,17 +3250,17 @@ class FiberImpl {
|
|
|
3250
3250
|
var makeFiberContextCache = (context) => {
|
|
3251
3251
|
const currentTracer = getOrUndefinedUnsafe(context, TracerKey);
|
|
3252
3252
|
return {
|
|
3253
|
-
scheduler:
|
|
3253
|
+
scheduler: get4(context, Scheduler),
|
|
3254
3254
|
tracer: currentTracer,
|
|
3255
3255
|
tracerContext: currentTracer ? currentTracer["context"] : undefined,
|
|
3256
|
-
tracerEnabled:
|
|
3256
|
+
tracerEnabled: get4(context, TracerEnabled),
|
|
3257
3257
|
span: getOrUndefinedUnsafe(context, ParentSpanKey),
|
|
3258
|
-
logLevel:
|
|
3259
|
-
minimumLogLevel:
|
|
3260
|
-
stackFrame:
|
|
3258
|
+
logLevel: get4(context, CurrentLogLevel),
|
|
3259
|
+
minimumLogLevel: get4(context, MinimumLogLevel),
|
|
3260
|
+
stackFrame: get4(context, CurrentStackFrame),
|
|
3261
3261
|
runtimeMetrics: getOrUndefinedUnsafe(context, FiberRuntimeMetricsKey),
|
|
3262
|
-
maxOpsBeforeYield:
|
|
3263
|
-
preventYield:
|
|
3262
|
+
maxOpsBeforeYield: get4(context, MaxOpsBeforeYield),
|
|
3263
|
+
preventYield: get4(context, PreventSchedulerYield)
|
|
3264
3264
|
};
|
|
3265
3265
|
};
|
|
3266
3266
|
var deferredInterruptCont = {
|
|
@@ -4767,10 +4767,10 @@ var noopSpan = (options) => Object.assign(Object.create(NoopSpanProto), options)
|
|
|
4767
4767
|
var filterDisablePropagation = (span) => {
|
|
4768
4768
|
if (!span)
|
|
4769
4769
|
return none();
|
|
4770
|
-
return
|
|
4770
|
+
return get4(span.annotations, DisablePropagation) ? span._tag === "Span" ? filterDisablePropagation(getOrUndefined(span.parent)) : none() : some(span);
|
|
4771
4771
|
};
|
|
4772
4772
|
var makeSpanUnsafe = (fiber, name, options) => {
|
|
4773
|
-
const disablePropagation = !fiber.cache.tracerEnabled || options?.annotations &&
|
|
4773
|
+
const disablePropagation = !fiber.cache.tracerEnabled || options?.annotations && get4(options.annotations, DisablePropagation);
|
|
4774
4774
|
const parent = options?.parent !== undefined ? some(options.parent) : options?.root ? none() : filterDisablePropagation(fiber.cache.span);
|
|
4775
4775
|
let span;
|
|
4776
4776
|
if (disablePropagation) {
|
|
@@ -5185,7 +5185,7 @@ var DeferredImpl = function() {
|
|
|
5185
5185
|
};
|
|
5186
5186
|
DeferredImpl.prototype = DeferredProto;
|
|
5187
5187
|
var makeUnsafe5 = () => new DeferredImpl;
|
|
5188
|
-
var
|
|
5188
|
+
var make16 = () => sync(() => makeUnsafe5());
|
|
5189
5189
|
var _await = (self) => callback2((resume) => {
|
|
5190
5190
|
if (self.effect)
|
|
5191
5191
|
return resume(self.effect);
|
|
@@ -5333,9 +5333,9 @@ var build = (self) => withFiber((fiber) => buildWithMemoMap(self, CurrentMemoMap
|
|
|
5333
5333
|
var buildWithScope = /* @__PURE__ */ dual(2, (self, scope) => withFiber((fiber) => buildWithMemoMap(self, CurrentMemoMap.forkOrCreate(fiber.context), scope)));
|
|
5334
5334
|
var succeed5 = function() {
|
|
5335
5335
|
if (arguments.length === 1) {
|
|
5336
|
-
return (resource) => succeedContext(
|
|
5336
|
+
return (resource) => succeedContext(make15(arguments[0], resource));
|
|
5337
5337
|
}
|
|
5338
|
-
return succeedContext(
|
|
5338
|
+
return succeedContext(make15(arguments[0], arguments[1]));
|
|
5339
5339
|
};
|
|
5340
5340
|
var succeedContext = (context) => fromBuildUnsafe(constant(succeed2(context)));
|
|
5341
5341
|
var effect = function() {
|
|
@@ -5344,7 +5344,7 @@ var effect = function() {
|
|
|
5344
5344
|
}
|
|
5345
5345
|
return effectImpl(arguments[0], arguments[1]);
|
|
5346
5346
|
};
|
|
5347
|
-
var effectImpl = (service, effect) => effectContext(map7(effect, (value) =>
|
|
5347
|
+
var effectImpl = (service, effect) => effectContext(map7(effect, (value) => make15(service, value)));
|
|
5348
5348
|
var effectContext = (effect) => fromBuildMemo((_, scope) => provide(effect, scope));
|
|
5349
5349
|
var effectDiscard = (effect) => effectContext(as2(effect, empty3()));
|
|
5350
5350
|
var mergeAllEffect = (layers, memoMap, scope) => {
|
|
@@ -10252,7 +10252,7 @@ function recur(ast) {
|
|
|
10252
10252
|
const rest = ast.rest.map(recur);
|
|
10253
10253
|
const [head, ...tail] = rest;
|
|
10254
10254
|
const tailLength = tail.length;
|
|
10255
|
-
return
|
|
10255
|
+
return make14((a, b) => {
|
|
10256
10256
|
if (!Array.isArray(a) || !Array.isArray(b)) {
|
|
10257
10257
|
return false;
|
|
10258
10258
|
}
|
|
@@ -10287,7 +10287,7 @@ function recur(ast) {
|
|
|
10287
10287
|
}
|
|
10288
10288
|
const propertySignatures = ast.propertySignatures.map((ps) => recur(ps.type));
|
|
10289
10289
|
const indexSignatures = ast.indexSignatures.map((is) => recur(is.type));
|
|
10290
|
-
return
|
|
10290
|
+
return make14((a, b) => {
|
|
10291
10291
|
if (!isObject(a) || !isObject(b)) {
|
|
10292
10292
|
return false;
|
|
10293
10293
|
}
|
|
@@ -10325,7 +10325,7 @@ function recur(ast) {
|
|
|
10325
10325
|
const types = toType2(ast).types;
|
|
10326
10326
|
const index = getCandidateIndex(types);
|
|
10327
10327
|
const compiled = types.map((candidate, i) => [_is(candidate), recur(ast.types[i])]);
|
|
10328
|
-
return
|
|
10328
|
+
return make14((a, b) => {
|
|
10329
10329
|
const candidates = index(a, false);
|
|
10330
10330
|
for (let i = 0;i < candidates.length; i++) {
|
|
10331
10331
|
const [is, equivalence] = compiled[candidates[i]];
|
|
@@ -10338,7 +10338,7 @@ function recur(ast) {
|
|
|
10338
10338
|
}
|
|
10339
10339
|
case "Suspend": {
|
|
10340
10340
|
let equivalence;
|
|
10341
|
-
return
|
|
10341
|
+
return make14((a, b) => (equivalence ??= toEquivalence2(ast.thunk()))(a, b));
|
|
10342
10342
|
}
|
|
10343
10343
|
}
|
|
10344
10344
|
}
|
|
@@ -10439,7 +10439,7 @@ function isSchemaError(u) {
|
|
|
10439
10439
|
var TypeId12 = TypeId11;
|
|
10440
10440
|
function declareConstructor() {
|
|
10441
10441
|
return (typeParameters, run, annotations) => {
|
|
10442
|
-
return
|
|
10442
|
+
return make17(new Declaration(typeParameters.map(getAST), (typeParameters) => run(typeParameters.map((ast) => make17(ast))), annotations));
|
|
10443
10443
|
};
|
|
10444
10444
|
}
|
|
10445
10445
|
function declare(is, annotations) {
|
|
@@ -10547,27 +10547,27 @@ function encodeUnknownSync(schema, options) {
|
|
|
10547
10547
|
};
|
|
10548
10548
|
}
|
|
10549
10549
|
var encodeSync = encodeUnknownSync;
|
|
10550
|
-
var
|
|
10550
|
+
var make17 = make5;
|
|
10551
10551
|
function isSchema(u) {
|
|
10552
10552
|
return hasProperty(u, TypeId12) && u[TypeId12] === TypeId12;
|
|
10553
10553
|
}
|
|
10554
|
-
var optionalKey = /* @__PURE__ */ lambda((schema) =>
|
|
10554
|
+
var optionalKey = /* @__PURE__ */ lambda((schema) => make17(optionalKey2(schema.ast), {
|
|
10555
10555
|
schema
|
|
10556
10556
|
}));
|
|
10557
10557
|
var optional = /* @__PURE__ */ lambda((self) => {
|
|
10558
10558
|
const schema = UndefinedOr(self);
|
|
10559
|
-
return
|
|
10559
|
+
return make17(optional2(self.ast), {
|
|
10560
10560
|
schema
|
|
10561
10561
|
});
|
|
10562
10562
|
});
|
|
10563
|
-
var toType = /* @__PURE__ */ lambda((schema) =>
|
|
10563
|
+
var toType = /* @__PURE__ */ lambda((schema) => make17(toType2(schema.ast), {
|
|
10564
10564
|
schema
|
|
10565
10565
|
}));
|
|
10566
|
-
var toEncoded2 = /* @__PURE__ */ lambda((schema) =>
|
|
10566
|
+
var toEncoded2 = /* @__PURE__ */ lambda((schema) => make17(toEncoded(schema.ast), {
|
|
10567
10567
|
schema
|
|
10568
10568
|
}));
|
|
10569
10569
|
function Literal(literal) {
|
|
10570
|
-
const out =
|
|
10570
|
+
const out = make17(new Literal2(literal), {
|
|
10571
10571
|
literal,
|
|
10572
10572
|
transform(to) {
|
|
10573
10573
|
return out.pipe(decodeTo2(Literal(to), {
|
|
@@ -10578,16 +10578,16 @@ function Literal(literal) {
|
|
|
10578
10578
|
});
|
|
10579
10579
|
return out;
|
|
10580
10580
|
}
|
|
10581
|
-
var Never = /* @__PURE__ */
|
|
10582
|
-
var Unknown = /* @__PURE__ */
|
|
10583
|
-
var Null = /* @__PURE__ */
|
|
10584
|
-
var Undefined2 = /* @__PURE__ */
|
|
10585
|
-
var String4 = /* @__PURE__ */
|
|
10586
|
-
var Number5 = /* @__PURE__ */
|
|
10587
|
-
var Boolean2 = /* @__PURE__ */
|
|
10588
|
-
var Void = /* @__PURE__ */
|
|
10581
|
+
var Never = /* @__PURE__ */ make17(never3);
|
|
10582
|
+
var Unknown = /* @__PURE__ */ make17(unknown);
|
|
10583
|
+
var Null = /* @__PURE__ */ make17(null_);
|
|
10584
|
+
var Undefined2 = /* @__PURE__ */ make17(undefined_3);
|
|
10585
|
+
var String4 = /* @__PURE__ */ make17(string2);
|
|
10586
|
+
var Number5 = /* @__PURE__ */ make17(number2);
|
|
10587
|
+
var Boolean2 = /* @__PURE__ */ make17(boolean);
|
|
10588
|
+
var Void = /* @__PURE__ */ make17(void_4);
|
|
10589
10589
|
function makeStruct(ast, fields) {
|
|
10590
|
-
return
|
|
10590
|
+
return make17(ast, {
|
|
10591
10591
|
fields,
|
|
10592
10592
|
mapFields(f, options) {
|
|
10593
10593
|
const fields = f(this.fields);
|
|
@@ -10599,19 +10599,19 @@ function Struct(fields) {
|
|
|
10599
10599
|
return makeStruct(struct(fields, undefined), fields);
|
|
10600
10600
|
}
|
|
10601
10601
|
function Record(key, value) {
|
|
10602
|
-
return
|
|
10602
|
+
return make17(record(key.ast, value.ast), {
|
|
10603
10603
|
key,
|
|
10604
10604
|
value
|
|
10605
10605
|
});
|
|
10606
10606
|
}
|
|
10607
10607
|
function StructWithRest(schema, records) {
|
|
10608
|
-
return
|
|
10608
|
+
return make17(structWithRest(schema.ast, records.map(getAST)), {
|
|
10609
10609
|
schema,
|
|
10610
10610
|
records
|
|
10611
10611
|
});
|
|
10612
10612
|
}
|
|
10613
10613
|
function makeTuple(ast, elements) {
|
|
10614
|
-
return
|
|
10614
|
+
return make17(ast, {
|
|
10615
10615
|
elements,
|
|
10616
10616
|
mapElements(f, options) {
|
|
10617
10617
|
const elements = f(this.elements);
|
|
@@ -10622,14 +10622,14 @@ function makeTuple(ast, elements) {
|
|
|
10622
10622
|
function Tuple2(elements) {
|
|
10623
10623
|
return makeTuple(tuple(elements), elements);
|
|
10624
10624
|
}
|
|
10625
|
-
var ArraySchema = /* @__PURE__ */ lambda((schema) =>
|
|
10625
|
+
var ArraySchema = /* @__PURE__ */ lambda((schema) => make17(new Arrays(false, [], [schema.ast]), {
|
|
10626
10626
|
value: schema
|
|
10627
10627
|
}));
|
|
10628
|
-
var NonEmptyArray = /* @__PURE__ */ lambda((schema) =>
|
|
10628
|
+
var NonEmptyArray = /* @__PURE__ */ lambda((schema) => make17(new Arrays(false, [schema.ast], [schema.ast]), {
|
|
10629
10629
|
value: schema
|
|
10630
10630
|
}));
|
|
10631
10631
|
function makeUnion(ast, members) {
|
|
10632
|
-
return
|
|
10632
|
+
return make17(ast, {
|
|
10633
10633
|
members,
|
|
10634
10634
|
mapMembers(f, options) {
|
|
10635
10635
|
const members = f(this.members);
|
|
@@ -10642,7 +10642,7 @@ function Union(members, options) {
|
|
|
10642
10642
|
}
|
|
10643
10643
|
function Literals(literals) {
|
|
10644
10644
|
const members = literals.map(Literal);
|
|
10645
|
-
return
|
|
10645
|
+
return make17(union(members, undefined, undefined), {
|
|
10646
10646
|
literals,
|
|
10647
10647
|
members,
|
|
10648
10648
|
mapMembers(f) {
|
|
@@ -10659,18 +10659,18 @@ function Literals(literals) {
|
|
|
10659
10659
|
var NullOr = /* @__PURE__ */ lambda((self) => Union([self, Null]));
|
|
10660
10660
|
var UndefinedOr = /* @__PURE__ */ lambda((self) => Union([self, Undefined2]));
|
|
10661
10661
|
function suspend4(f) {
|
|
10662
|
-
return
|
|
10662
|
+
return make17(new Suspend(() => f().ast));
|
|
10663
10663
|
}
|
|
10664
10664
|
function decodeTo2(to, transformation) {
|
|
10665
10665
|
return (from) => {
|
|
10666
|
-
return
|
|
10666
|
+
return make17(decodeTo(from.ast, to.ast, transformation ? makeTransformation(transformation) : passthrough3()), {
|
|
10667
10667
|
from,
|
|
10668
10668
|
to
|
|
10669
10669
|
});
|
|
10670
10670
|
};
|
|
10671
10671
|
}
|
|
10672
10672
|
function withConstructorDefault2(defaultValue) {
|
|
10673
|
-
return (schema) =>
|
|
10673
|
+
return (schema) => make17(withConstructorDefault(schema.ast, defaultValue), {
|
|
10674
10674
|
schema
|
|
10675
10675
|
});
|
|
10676
10676
|
}
|
|
@@ -10746,7 +10746,7 @@ function isBase64(annotations) {
|
|
|
10746
10746
|
...annotations
|
|
10747
10747
|
});
|
|
10748
10748
|
}
|
|
10749
|
-
var Finite = /* @__PURE__ */
|
|
10749
|
+
var Finite = /* @__PURE__ */ make17(finite);
|
|
10750
10750
|
function makeIsGreaterThan(options) {
|
|
10751
10751
|
const gt = isGreaterThan2(options.order);
|
|
10752
10752
|
const formatter = options.formatter ?? format;
|
|
@@ -11326,7 +11326,7 @@ function CauseReason(error, defect) {
|
|
|
11326
11326
|
}
|
|
11327
11327
|
}))
|
|
11328
11328
|
});
|
|
11329
|
-
return
|
|
11329
|
+
return make17(schema.ast, {
|
|
11330
11330
|
error,
|
|
11331
11331
|
defect
|
|
11332
11332
|
});
|
|
@@ -11363,7 +11363,7 @@ function Cause(error, defect) {
|
|
|
11363
11363
|
}) => failures
|
|
11364
11364
|
}))
|
|
11365
11365
|
});
|
|
11366
|
-
return
|
|
11366
|
+
return make17(schema.ast, {
|
|
11367
11367
|
error,
|
|
11368
11368
|
defect
|
|
11369
11369
|
});
|
|
@@ -11424,7 +11424,7 @@ function Exit(value, error, defect) {
|
|
|
11424
11424
|
}
|
|
11425
11425
|
}))
|
|
11426
11426
|
});
|
|
11427
|
-
return
|
|
11427
|
+
return make17(schema.ast, {
|
|
11428
11428
|
value,
|
|
11429
11429
|
error,
|
|
11430
11430
|
defect
|
|
@@ -11528,7 +11528,7 @@ function getClassSchemaFactory(from, identifier, annotations) {
|
|
|
11528
11528
|
const ClassTypeId = getClassTypeId(identifier);
|
|
11529
11529
|
const isClassValue = (input) => input instanceof self || hasProperty(input, ClassTypeId);
|
|
11530
11530
|
const transformation = getClassTransformation(self);
|
|
11531
|
-
const to =
|
|
11531
|
+
const to = make17(new Declaration([from.ast], () => (input, ast, options) => {
|
|
11532
11532
|
return isClassValue(input) ? succeed6(input) : fail7(new InvalidType(ast, input, options));
|
|
11533
11533
|
}, {
|
|
11534
11534
|
identifier,
|
|
@@ -11596,7 +11596,7 @@ function toJsonSchemaDocument(schema, options) {
|
|
|
11596
11596
|
}
|
|
11597
11597
|
var toCodecJson = toCodecJson2;
|
|
11598
11598
|
var toCodecStringTree = toCodecStringTree2;
|
|
11599
|
-
var Json = /* @__PURE__ */
|
|
11599
|
+
var Json = /* @__PURE__ */ make17(/* @__PURE__ */ annotate(Json2, {
|
|
11600
11600
|
toCode: () => ({
|
|
11601
11601
|
runtime: "Schema.Json",
|
|
11602
11602
|
Type: "Schema.Json"
|
|
@@ -11743,4 +11743,4 @@ var encodeUnknownJsonStringSync = encodeSync(fromJsonString(Unknown));
|
|
|
11743
11743
|
var storableText = (text) => text.replaceAll("\x00", "").replaceAll(/\p{Cs}/gu, "");
|
|
11744
11744
|
var storable = (value) => isString2(value) ? storableText(value) : Array.isArray(value) ? value.map(storable) : isJsonObject(value) ? Object.fromEntries(Object.entries(value).map(([key, field]) => [storableText(key), storable(field)])) : value;
|
|
11745
11745
|
|
|
11746
|
-
export { pipeArguments, dual, identity, constant, constTrue, constFalse, constVoid, pipe, flow, memoize, isString, isNumber, isBoolean, isFunction, isUndefined, isNotUndefined, isNotNull, isNullish, isObject, hasProperty, isTagged, isUint8Array, symbol, hash, combine, number, string, structure, array, symbol2, equals, asEquivalence, symbolRedactable, redact, currentFiberTypeId, format, NodeInspectSymbol, toJson, BaseProto, Class, getStackTraceLimit, setStackTraceLimit, assignProperty, args, evaluate, PipeInspectableProto, isExit, causeFail, makePrimitive, exitSucceed, exitFailCause, exitFail, withFiber, Done, Prototype,
|
|
11746
|
+
export { pipeArguments, dual, identity, constant, constTrue, constFalse, constVoid, pipe, flow, memoize, isString, isNumber, isBoolean, isFunction, isUndefined, isNotUndefined, isNotNull, isNullish, isObject, hasProperty, isTagged, isUint8Array, symbol, hash, combine, number, string, structure, array, symbol2, equals, asEquivalence, symbolRedactable, redact, currentFiberTypeId, format, NodeInspectSymbol, toJson, BaseProto, Class, getStackTraceLimit, setStackTraceLimit, assignProperty, args, evaluate, PipeInspectableProto, isExit, causeFail, makePrimitive, exitSucceed, exitFailCause, exitFail, withFiber, Done, Prototype, make14, strictEqual, Tuple, String3, Number2, mapInput, none, some, isNone, isSome, match, getOrElse, orElse, fromNullishOr, fromUndefinedOr, getOrUndefined, liftThrowable, map4, flatMap, toArray, filter2, exists, Service2, makeUnsafe4, empty3, make15, add, getOrUndefined2, getOrUndefinedUnsafe, getUnsafe, get4, merge3, Reference, fromInputUnsafe, isFinite, zero, infinity, millis, seconds, minutes, toMillis, toMinutes, min, max, subtract, format2, normalize, succeed, fail3, try_, isResult, isFailure, isSuccess, getSuccess, map5, getOrElse2, getOrThrow, all2, allocate, fromIterable, isArray, isArrayNonEmpty, isReadonlyArrayNonEmpty, isCanonicalArrayIndex, getUnsafe2, sort, chunksOf, empty4, of, map6, makeEquivalence2, TaggedClass, Error2, TaggedError, encode, DisablePropagation, getCurrentFiber, fiberJoin, fiberInterrupt, succeed2, sync, suspend2, succeedNone, void_, callback2, asSome, andThen, flatMap2, map7, exitInterrupt, exitVoid, exitZipRight, scopeAddFinalizer, scope, onExitPrimitive, onExitUnsafe, uninterruptibleMask, fiberRunIn, makeLatchUnsafe, makeLatch, ClockRef, currentTimeMillis2, ConsoleRef, succeed3, failCause2, fail4, die, interrupt2, void_2, isSuccess2, isFailure2, hasInterrupts, map8, asVoidAll, makeUnsafe5, make16, _await, fail5, interruptWith, isDone, isDoneUnsafe, succeed4, doneUnsafe, TracerTimingEnabled, Scope, makeUnsafe6, provide, addFinalizerExit, addFinalizer, forkUnsafe, close, build, buildWithScope, succeed5, effect, effectContext, effectDiscard, mergeAll, provide2, provideMerge, isCause, isFailReason, isDieReason, fromReasons, fail6, die2, makeFailReason, makeDieReason, hasInterruptsOnly, combine2, squash, findError, findErrorOption, hasInterrupts2, interruptors, pretty, isDone2, Done2, done, IllegalArgumentError, UnknownError, reasonAnnotations, Random, catchDone, isDoneCause, filterDone, doneExitFromCause, matchEffect, max2, during, min2, exponential, jittered, spaced, upTo, while_, setInputType, isEffect, all3, validate, findFirst, forEach, whileLoop, promise, tryPromise, succeed6, suspend3, sync2, void_3, undefined_, callback3, never, gen, fail7, failSync, failCause3, die3, try_2, yieldNow, withFiber2, fromResult, fromNullishOr2, flatMap3, flatten, andThen2, tap2, result, option2, exit, map9, as, asSome2, asVoid, zipWith, catch_, catchTag, catchTags, catchReason, catchCause2, catchDefect, catchIf, catchCauseIf, mapError2, orDie, tapError2, tapCause, retry, retryOrElse, sandbox, ignore, ignoreCause, orElseSucceed, timeout, timeoutOption, timeoutOrElse, delay, sleep, raceAllFirst, raceFirst, filter3, filterOrFail, when, matchCauseEffect, matchEffect2, context, contextWith, provide3, provideContext2, service, serviceOption, updateContext, updateService, provideService, scope2, scoped, scopedWith, acquireRelease, acquireUseRelease, addFinalizer2, ensuring2, onError, onExitPrimitive2, onExit, cached, interrupt3, interruptible, onInterrupt, uninterruptible, uninterruptibleMask2, forever, repeat, annotateCurrentSpan, makeSpanScoped, useSpan, withSpan, withParentSpan, forkChild, forkIn, forkScoped, forkDetach, runFork, runForkWith, runPromise, runPromiseWith, runSync, runSyncExitWith, fnUntraced, fn, clockWith, logWarning, logError, logInfo, annotateLogs, effectify, mapEager, flatMapEager, catchEager, encode2, decode, encode3, Pointer, makeFormatterStandardSchemaV1, passthrough, transform, transformEffect, encodeBase64Url, decodeBase64UrlString, Transformation, transform2, defaultParseOptions, unknown, getIndexSignatureKeys, applyToSelfOrLastLinkEncoding, decodeTo, toEncoded, decodeUnknownEffect, omit, map10, declare, SchemaError, is, decodeUnknownEffect2, decodeEffect, decodeUnknownExit, decodeUnknownOption, decodeOption, decodeSync, encodeUnknownEffect, encodeEffect, encodeSync, make17, isSchema, optionalKey, optional, toType, Literal, Never, Unknown, Null, String4, Boolean2, Void, Struct, Record, StructWithRest, Tuple2, ArraySchema, NonEmptyArray, Union, Literals, NullOr, UndefinedOr, suspend4, decodeTo2, withDecodingDefaultKey, tag, TaggedStruct, link, makeFilter, isPattern, Finite, isGreaterThan, isGreaterThanOrEqualTo, isLessThanOrEqualTo, isBetween, Int, isMinLength, isMaxLength, isMinProperties, isMaxProperties, isUnique, NonEmptyString, Defect, Date2, fromJsonString, FiniteFromString, Cause, Exit, Class2, TaggedClass2, Error3, TaggedError2, toEquivalence, toJsonSchemaDocument, toCodecJson, toCodecStringTree, Json, JsonObject, toJsonValue, isOneOf, isKeyOf, toJsonObject, isBigInt, isBoolean2, isFunction2, isNumber2, isObject2, isJsonObject, isString2, isSymbol, isUndefined2, kindOf, decodeJsonString, decodeJsonStringOption, encodeJsonStringSync, encodePrettyJsonString, decodeJsonStringSync, encodeUnknownJsonStringSync, storable };
|
|
@@ -35,19 +35,19 @@ import {
|
|
|
35
35
|
isJsonObject,
|
|
36
36
|
isString2,
|
|
37
37
|
encodeUnknownJsonStringSync
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-bqbfyqx6.js";
|
|
39
39
|
import {
|
|
40
40
|
currentTimeMillis,
|
|
41
|
-
|
|
41
|
+
make11,
|
|
42
42
|
runForEach,
|
|
43
43
|
toPull,
|
|
44
44
|
FileSystem,
|
|
45
45
|
compiled2
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-etrfc5cn.js";
|
|
47
47
|
import {
|
|
48
48
|
ChildProcessSpawner,
|
|
49
49
|
make3
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-6x08g7m6.js";
|
|
51
51
|
|
|
52
52
|
// packages/agent-runtime/src/opencode-store.ts
|
|
53
53
|
import { lstatSync, readFileSync, realpathSync, writeSync } from "fs";
|
|
@@ -266,7 +266,7 @@ var spawnReader = (request) => gen(function* () {
|
|
|
266
266
|
const spawner = yield* ChildProcessSpawner;
|
|
267
267
|
const [command, ...args] = opencodeReaderCommand();
|
|
268
268
|
return yield* spawner.spawn(make3(command, args, {
|
|
269
|
-
stdin:
|
|
269
|
+
stdin: make11(new TextEncoder().encode(request)),
|
|
270
270
|
stderr: "ignore",
|
|
271
271
|
extendEnv: false,
|
|
272
272
|
env: {},
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
opaqueTunnelRefusal2,
|
|
5
5
|
isOpaqueConnectReason2,
|
|
6
6
|
runSrtStep2
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import"./chunk-
|
|
9
|
-
import"./chunk-
|
|
7
|
+
} from "./chunk-wy6gmtd9.js";
|
|
8
|
+
import"./chunk-ea29sbaq.js";
|
|
9
|
+
import"./chunk-bqbfyqx6.js";
|
|
10
10
|
export {
|
|
11
11
|
isOpaqueConnectReason2 as isOpaqueConnectReason,
|
|
12
12
|
opaqueTunnelRefusal2 as opaqueTunnelRefusal,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
add,
|
|
13
13
|
getOrUndefinedUnsafe,
|
|
14
14
|
getUnsafe,
|
|
15
|
-
|
|
15
|
+
get4,
|
|
16
16
|
Reference,
|
|
17
17
|
toMillis,
|
|
18
18
|
isSuccess,
|
|
@@ -96,7 +96,20 @@ import {
|
|
|
96
96
|
Defect,
|
|
97
97
|
Exit,
|
|
98
98
|
toCodecJson
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-bqbfyqx6.js";
|
|
100
|
+
import {
|
|
101
|
+
Clock,
|
|
102
|
+
interrupt,
|
|
103
|
+
getCurrent,
|
|
104
|
+
makeUnsafe2,
|
|
105
|
+
bounded,
|
|
106
|
+
offerAll,
|
|
107
|
+
failCause,
|
|
108
|
+
end,
|
|
109
|
+
shutdownUnsafe,
|
|
110
|
+
fromQueue,
|
|
111
|
+
unwrap
|
|
112
|
+
} from "./chunk-etrfc5cn.js";
|
|
100
113
|
import {
|
|
101
114
|
empty,
|
|
102
115
|
fromInput,
|
|
@@ -110,20 +123,7 @@ import {
|
|
|
110
123
|
ParseOptions,
|
|
111
124
|
RpcClientDefect,
|
|
112
125
|
RpcClientError
|
|
113
|
-
} from "./chunk-
|
|
114
|
-
import {
|
|
115
|
-
Clock,
|
|
116
|
-
interrupt,
|
|
117
|
-
getCurrent,
|
|
118
|
-
makeUnsafe2,
|
|
119
|
-
bounded,
|
|
120
|
-
offerAll,
|
|
121
|
-
failCause,
|
|
122
|
-
end,
|
|
123
|
-
shutdownUnsafe,
|
|
124
|
-
fromQueue,
|
|
125
|
-
unwrap
|
|
126
|
-
} from "./chunk-sasjamqz.js";
|
|
126
|
+
} from "./chunk-kqr3ts9q.js";
|
|
127
127
|
|
|
128
128
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/workers/Transferable.js
|
|
129
129
|
class Collector extends (/* @__PURE__ */ Service2()("effect/workers/Transferable/Collector")) {
|
|
@@ -237,7 +237,7 @@ var makeNoSerialization = /* @__PURE__ */ fnUntraced(function* (group, options)
|
|
|
237
237
|
const disableTracing = options?.disableTracing ?? false;
|
|
238
238
|
const generateRequestId = options?.generateRequestId ?? (() => requestIdCounter++);
|
|
239
239
|
const services = yield* context();
|
|
240
|
-
const scope =
|
|
240
|
+
const scope = get4(services, Scope);
|
|
241
241
|
const entries = new Map;
|
|
242
242
|
let isShutdown = false;
|
|
243
243
|
yield* addFinalizer(scope, withFiber2((parent) => {
|
|
@@ -643,7 +643,7 @@ var makeRpcSchemas = (codecFor) => {
|
|
|
643
643
|
return entry;
|
|
644
644
|
}
|
|
645
645
|
const streamSchemas = getStreamSchemas(rpc.successSchema);
|
|
646
|
-
const parseOptions =
|
|
646
|
+
const parseOptions = get4(rpc.annotations, ParseOptions);
|
|
647
647
|
const exitSchema2 = exitSchema(rpc);
|
|
648
648
|
let decodeDiscardExit;
|
|
649
649
|
entry = {
|