@kitman-sh/cli 0.20.0 → 0.22.0
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-spazhq67.js → chunk-1j38xtvp.js} +2 -2
- package/dist/{chunk-centvmrd.js → chunk-2gm1qkd1.js} +4 -4
- package/dist/{chunk-qvpkwnky.js → chunk-4qjfn1sa.js} +1 -1
- package/dist/{chunk-s9fwm42m.js → chunk-5gx52vjz.js} +3 -3
- package/dist/{chunk-y7bth30s.js → chunk-5kqt4bqp.js} +1 -1
- package/dist/{chunk-kntnw6r0.js → chunk-63cyj9dh.js} +177 -28
- package/dist/{chunk-rekh8azw.js → chunk-an5jcv2h.js} +7 -7
- package/dist/{chunk-535m9qxp.js → chunk-bgwp50wv.js} +128 -267
- package/dist/{chunk-3vgv5ba7.js → chunk-cswzx3jj.js} +6 -6
- package/dist/{chunk-v30yf453.js → chunk-gap0vmj7.js} +2 -2
- package/dist/{chunk-ew07nt2d.js → chunk-h2f26xbd.js} +61 -61
- package/dist/{chunk-fvdnmgsy.js → chunk-jq8hbcnf.js} +4 -4
- package/dist/{chunk-3hyggg9w.js → chunk-js64y97w.js} +4 -4
- package/dist/{chunk-89a53j2y.js → chunk-my92qn4x.js} +5 -5
- package/dist/{chunk-rrbnxea1.js → chunk-pbe77xf2.js} +6 -6
- package/dist/{chunk-3wct0tsd.js → chunk-q3kvaas4.js} +15 -1
- package/dist/{chunk-g00ewhrb.js → chunk-rfa7t28t.js} +19 -19
- package/dist/{chunk-yecj64ke.js → chunk-rns9z6k9.js} +10 -10
- package/dist/{chunk-6hxtg6eb.js → chunk-samxkpbz.js} +3 -3
- package/dist/{chunk-haq904fk.js → chunk-tsx0347c.js} +1 -1
- package/dist/{chunk-8xd2jvgj.js → chunk-vmc9xnvh.js} +18 -18
- package/dist/{chunk-6387vj9z.js → chunk-vz38kngm.js} +2 -2
- package/dist/{chunk-7dcq58d0.js → chunk-xqc3fc72.js} +8 -8
- package/dist/{chunk-dtgp724s.js → chunk-y4a78x63.js} +1 -1
- package/dist/{chunk-avg3cz82.js → chunk-ytknm7wg.js} +4 -4
- package/dist/{chunk-2scq36fm.js → chunk-zh3djymt.js} +25 -12
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -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,7 @@ import {
|
|
|
96
96
|
Defect,
|
|
97
97
|
Exit,
|
|
98
98
|
toCodecJson
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-h2f26xbd.js";
|
|
100
100
|
import {
|
|
101
101
|
interrupt,
|
|
102
102
|
getCurrent,
|
|
@@ -108,7 +108,7 @@ import {
|
|
|
108
108
|
shutdownUnsafe,
|
|
109
109
|
fromQueue,
|
|
110
110
|
unwrap
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-63cyj9dh.js";
|
|
112
112
|
import {
|
|
113
113
|
Clock,
|
|
114
114
|
empty,
|
|
@@ -123,7 +123,7 @@ import {
|
|
|
123
123
|
ParseOptions,
|
|
124
124
|
RpcClientDefect,
|
|
125
125
|
RpcClientError
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-bgwp50wv.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 = {
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
map9,
|
|
23
23
|
raceFirst,
|
|
24
24
|
scoped
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-h2f26xbd.js";
|
|
26
26
|
import {
|
|
27
27
|
unwrap,
|
|
28
28
|
drainFork,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
runCollect,
|
|
32
32
|
runDrain,
|
|
33
33
|
mkString
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-63cyj9dh.js";
|
|
35
35
|
|
|
36
36
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/redacted.js
|
|
37
37
|
var redactedRegistry = /* @__PURE__ */ new WeakMap;
|
|
@@ -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++) {
|
|
@@ -1567,7 +1567,7 @@ var ServiceProto = {
|
|
|
1567
1567
|
.../* @__PURE__ */ Prototype({
|
|
1568
1568
|
label: "Service",
|
|
1569
1569
|
evaluate(fiber) {
|
|
1570
|
-
return exitSucceed(
|
|
1570
|
+
return exitSucceed(get4(fiber.context, this));
|
|
1571
1571
|
}
|
|
1572
1572
|
}),
|
|
1573
1573
|
toJSON() {
|
|
@@ -1580,13 +1580,13 @@ var ServiceProto = {
|
|
|
1580
1580
|
return self;
|
|
1581
1581
|
},
|
|
1582
1582
|
context(self) {
|
|
1583
|
-
return
|
|
1583
|
+
return make15(this, self);
|
|
1584
1584
|
},
|
|
1585
1585
|
use(f) {
|
|
1586
|
-
return withFiber((fiber) => f(
|
|
1586
|
+
return withFiber((fiber) => f(get4(fiber.context, this)));
|
|
1587
1587
|
},
|
|
1588
1588
|
useSync(f) {
|
|
1589
|
-
return withFiber((fiber) => exitSucceed(f(
|
|
1589
|
+
return withFiber((fiber) => exitSucceed(f(get4(fiber.context, this))));
|
|
1590
1590
|
}
|
|
1591
1591
|
};
|
|
1592
1592
|
var cacheKeys = /* @__PURE__ */ new Set;
|
|
@@ -1684,7 +1684,7 @@ var isContext = (u) => hasProperty(u, TypeId3);
|
|
|
1684
1684
|
var isReference = (u) => !!u[ReferenceTypeId];
|
|
1685
1685
|
var empty3 = () => emptyContext2;
|
|
1686
1686
|
var emptyContext2 = /* @__PURE__ */ makeUnsafe4(/* @__PURE__ */ new Map);
|
|
1687
|
-
var
|
|
1687
|
+
var make15 = (key, service) => makeUnsafe4(new Map([[key.key, service]]));
|
|
1688
1688
|
var add = /* @__PURE__ */ dual(3, (self, key, service) => addUnsafe(self, key.key, service));
|
|
1689
1689
|
var addUnsafe = (self, key, service) => {
|
|
1690
1690
|
const impl = self;
|
|
@@ -1716,7 +1716,7 @@ var getUnsafe = /* @__PURE__ */ dual(2, (self, service) => {
|
|
|
1716
1716
|
}
|
|
1717
1717
|
return value;
|
|
1718
1718
|
});
|
|
1719
|
-
var
|
|
1719
|
+
var get4 = getUnsafe;
|
|
1720
1720
|
var defaultValueCacheKey = "~effect/Context/defaultValue";
|
|
1721
1721
|
var getDefaultValue = (ref) => {
|
|
1722
1722
|
if (defaultValueCacheKey in ref) {
|
|
@@ -3047,7 +3047,7 @@ class FiberImpl {
|
|
|
3047
3047
|
return this._dispatcher ??= this.cache.scheduler.makeDispatcher();
|
|
3048
3048
|
}
|
|
3049
3049
|
getRef(ref) {
|
|
3050
|
-
return
|
|
3050
|
+
return get4(this.context, ref);
|
|
3051
3051
|
}
|
|
3052
3052
|
addObserver(cb) {
|
|
3053
3053
|
if (this._exit) {
|
|
@@ -3075,7 +3075,7 @@ class FiberImpl {
|
|
|
3075
3075
|
}
|
|
3076
3076
|
let cause = causeInterrupt(fiberId);
|
|
3077
3077
|
if (this.cache.stackFrame) {
|
|
3078
|
-
cause = causeAnnotate(cause,
|
|
3078
|
+
cause = causeAnnotate(cause, make15(StackTraceKey, this.cache.stackFrame));
|
|
3079
3079
|
}
|
|
3080
3080
|
if (annotations) {
|
|
3081
3081
|
cause = causeAnnotate(cause, annotations);
|
|
@@ -3248,17 +3248,17 @@ class FiberImpl {
|
|
|
3248
3248
|
var makeFiberContextCache = (context) => {
|
|
3249
3249
|
const currentTracer = getOrUndefinedUnsafe(context, TracerKey);
|
|
3250
3250
|
return {
|
|
3251
|
-
scheduler:
|
|
3251
|
+
scheduler: get4(context, Scheduler),
|
|
3252
3252
|
tracer: currentTracer,
|
|
3253
3253
|
tracerContext: currentTracer ? currentTracer["context"] : undefined,
|
|
3254
|
-
tracerEnabled:
|
|
3254
|
+
tracerEnabled: get4(context, TracerEnabled),
|
|
3255
3255
|
span: getOrUndefinedUnsafe(context, ParentSpanKey),
|
|
3256
|
-
logLevel:
|
|
3257
|
-
minimumLogLevel:
|
|
3258
|
-
stackFrame:
|
|
3256
|
+
logLevel: get4(context, CurrentLogLevel),
|
|
3257
|
+
minimumLogLevel: get4(context, MinimumLogLevel),
|
|
3258
|
+
stackFrame: get4(context, CurrentStackFrame),
|
|
3259
3259
|
runtimeMetrics: getOrUndefinedUnsafe(context, FiberRuntimeMetricsKey),
|
|
3260
|
-
maxOpsBeforeYield:
|
|
3261
|
-
preventYield:
|
|
3260
|
+
maxOpsBeforeYield: get4(context, MaxOpsBeforeYield),
|
|
3261
|
+
preventYield: get4(context, PreventSchedulerYield)
|
|
3262
3262
|
};
|
|
3263
3263
|
};
|
|
3264
3264
|
var deferredInterruptCont = {
|
|
@@ -4765,10 +4765,10 @@ var noopSpan = (options) => Object.assign(Object.create(NoopSpanProto), options)
|
|
|
4765
4765
|
var filterDisablePropagation = (span) => {
|
|
4766
4766
|
if (!span)
|
|
4767
4767
|
return none();
|
|
4768
|
-
return
|
|
4768
|
+
return get4(span.annotations, DisablePropagation) ? span._tag === "Span" ? filterDisablePropagation(getOrUndefined(span.parent)) : none() : some(span);
|
|
4769
4769
|
};
|
|
4770
4770
|
var makeSpanUnsafe = (fiber, name, options) => {
|
|
4771
|
-
const disablePropagation = !fiber.cache.tracerEnabled || options?.annotations &&
|
|
4771
|
+
const disablePropagation = !fiber.cache.tracerEnabled || options?.annotations && get4(options.annotations, DisablePropagation);
|
|
4772
4772
|
const parent = options?.parent !== undefined ? some(options.parent) : options?.root ? none() : filterDisablePropagation(fiber.cache.span);
|
|
4773
4773
|
let span;
|
|
4774
4774
|
if (disablePropagation) {
|
|
@@ -5183,7 +5183,7 @@ var DeferredImpl = function() {
|
|
|
5183
5183
|
};
|
|
5184
5184
|
DeferredImpl.prototype = DeferredProto;
|
|
5185
5185
|
var makeUnsafe5 = () => new DeferredImpl;
|
|
5186
|
-
var
|
|
5186
|
+
var make16 = () => sync(() => makeUnsafe5());
|
|
5187
5187
|
var _await = (self) => callback2((resume) => {
|
|
5188
5188
|
if (self.effect)
|
|
5189
5189
|
return resume(self.effect);
|
|
@@ -5331,9 +5331,9 @@ var build = (self) => withFiber((fiber) => buildWithMemoMap(self, CurrentMemoMap
|
|
|
5331
5331
|
var buildWithScope = /* @__PURE__ */ dual(2, (self, scope) => withFiber((fiber) => buildWithMemoMap(self, CurrentMemoMap.forkOrCreate(fiber.context), scope)));
|
|
5332
5332
|
var succeed5 = function() {
|
|
5333
5333
|
if (arguments.length === 1) {
|
|
5334
|
-
return (resource) => succeedContext(
|
|
5334
|
+
return (resource) => succeedContext(make15(arguments[0], resource));
|
|
5335
5335
|
}
|
|
5336
|
-
return succeedContext(
|
|
5336
|
+
return succeedContext(make15(arguments[0], arguments[1]));
|
|
5337
5337
|
};
|
|
5338
5338
|
var succeedContext = (context) => fromBuildUnsafe(constant(succeed2(context)));
|
|
5339
5339
|
var effect = function() {
|
|
@@ -5342,7 +5342,7 @@ var effect = function() {
|
|
|
5342
5342
|
}
|
|
5343
5343
|
return effectImpl(arguments[0], arguments[1]);
|
|
5344
5344
|
};
|
|
5345
|
-
var effectImpl = (service, effect) => effectContext(map7(effect, (value) =>
|
|
5345
|
+
var effectImpl = (service, effect) => effectContext(map7(effect, (value) => make15(service, value)));
|
|
5346
5346
|
var effectContext = (effect) => fromBuildMemo((_, scope) => provide(effect, scope));
|
|
5347
5347
|
var effectDiscard = (effect) => effectContext(as2(effect, empty3()));
|
|
5348
5348
|
var mergeAllEffect = (layers, memoMap, scope) => {
|
|
@@ -10250,7 +10250,7 @@ function recur(ast) {
|
|
|
10250
10250
|
const rest = ast.rest.map(recur);
|
|
10251
10251
|
const [head, ...tail] = rest;
|
|
10252
10252
|
const tailLength = tail.length;
|
|
10253
|
-
return
|
|
10253
|
+
return make14((a, b) => {
|
|
10254
10254
|
if (!Array.isArray(a) || !Array.isArray(b)) {
|
|
10255
10255
|
return false;
|
|
10256
10256
|
}
|
|
@@ -10285,7 +10285,7 @@ function recur(ast) {
|
|
|
10285
10285
|
}
|
|
10286
10286
|
const propertySignatures = ast.propertySignatures.map((ps) => recur(ps.type));
|
|
10287
10287
|
const indexSignatures = ast.indexSignatures.map((is) => recur(is.type));
|
|
10288
|
-
return
|
|
10288
|
+
return make14((a, b) => {
|
|
10289
10289
|
if (!isObject(a) || !isObject(b)) {
|
|
10290
10290
|
return false;
|
|
10291
10291
|
}
|
|
@@ -10323,7 +10323,7 @@ function recur(ast) {
|
|
|
10323
10323
|
const types = toType2(ast).types;
|
|
10324
10324
|
const index = getCandidateIndex(types);
|
|
10325
10325
|
const compiled = types.map((candidate, i) => [_is(candidate), recur(ast.types[i])]);
|
|
10326
|
-
return
|
|
10326
|
+
return make14((a, b) => {
|
|
10327
10327
|
const candidates = index(a, false);
|
|
10328
10328
|
for (let i = 0;i < candidates.length; i++) {
|
|
10329
10329
|
const [is, equivalence] = compiled[candidates[i]];
|
|
@@ -10336,7 +10336,7 @@ function recur(ast) {
|
|
|
10336
10336
|
}
|
|
10337
10337
|
case "Suspend": {
|
|
10338
10338
|
let equivalence;
|
|
10339
|
-
return
|
|
10339
|
+
return make14((a, b) => (equivalence ??= toEquivalence2(ast.thunk()))(a, b));
|
|
10340
10340
|
}
|
|
10341
10341
|
}
|
|
10342
10342
|
}
|
|
@@ -10437,7 +10437,7 @@ function isSchemaError(u) {
|
|
|
10437
10437
|
var TypeId12 = TypeId11;
|
|
10438
10438
|
function declareConstructor() {
|
|
10439
10439
|
return (typeParameters, run, annotations) => {
|
|
10440
|
-
return
|
|
10440
|
+
return make17(new Declaration(typeParameters.map(getAST), (typeParameters) => run(typeParameters.map((ast) => make17(ast))), annotations));
|
|
10441
10441
|
};
|
|
10442
10442
|
}
|
|
10443
10443
|
function declare(is, annotations) {
|
|
@@ -10545,27 +10545,27 @@ function encodeUnknownSync(schema, options) {
|
|
|
10545
10545
|
};
|
|
10546
10546
|
}
|
|
10547
10547
|
var encodeSync = encodeUnknownSync;
|
|
10548
|
-
var
|
|
10548
|
+
var make17 = make5;
|
|
10549
10549
|
function isSchema(u) {
|
|
10550
10550
|
return hasProperty(u, TypeId12) && u[TypeId12] === TypeId12;
|
|
10551
10551
|
}
|
|
10552
|
-
var optionalKey = /* @__PURE__ */ lambda((schema) =>
|
|
10552
|
+
var optionalKey = /* @__PURE__ */ lambda((schema) => make17(optionalKey2(schema.ast), {
|
|
10553
10553
|
schema
|
|
10554
10554
|
}));
|
|
10555
10555
|
var optional = /* @__PURE__ */ lambda((self) => {
|
|
10556
10556
|
const schema = UndefinedOr(self);
|
|
10557
|
-
return
|
|
10557
|
+
return make17(optional2(self.ast), {
|
|
10558
10558
|
schema
|
|
10559
10559
|
});
|
|
10560
10560
|
});
|
|
10561
|
-
var toType = /* @__PURE__ */ lambda((schema) =>
|
|
10561
|
+
var toType = /* @__PURE__ */ lambda((schema) => make17(toType2(schema.ast), {
|
|
10562
10562
|
schema
|
|
10563
10563
|
}));
|
|
10564
|
-
var toEncoded2 = /* @__PURE__ */ lambda((schema) =>
|
|
10564
|
+
var toEncoded2 = /* @__PURE__ */ lambda((schema) => make17(toEncoded(schema.ast), {
|
|
10565
10565
|
schema
|
|
10566
10566
|
}));
|
|
10567
10567
|
function Literal(literal) {
|
|
10568
|
-
const out =
|
|
10568
|
+
const out = make17(new Literal2(literal), {
|
|
10569
10569
|
literal,
|
|
10570
10570
|
transform(to) {
|
|
10571
10571
|
return out.pipe(decodeTo2(Literal(to), {
|
|
@@ -10576,16 +10576,16 @@ function Literal(literal) {
|
|
|
10576
10576
|
});
|
|
10577
10577
|
return out;
|
|
10578
10578
|
}
|
|
10579
|
-
var Never = /* @__PURE__ */
|
|
10580
|
-
var Unknown = /* @__PURE__ */
|
|
10581
|
-
var Null = /* @__PURE__ */
|
|
10582
|
-
var Undefined2 = /* @__PURE__ */
|
|
10583
|
-
var String4 = /* @__PURE__ */
|
|
10584
|
-
var Number5 = /* @__PURE__ */
|
|
10585
|
-
var Boolean2 = /* @__PURE__ */
|
|
10586
|
-
var Void = /* @__PURE__ */
|
|
10579
|
+
var Never = /* @__PURE__ */ make17(never3);
|
|
10580
|
+
var Unknown = /* @__PURE__ */ make17(unknown);
|
|
10581
|
+
var Null = /* @__PURE__ */ make17(null_);
|
|
10582
|
+
var Undefined2 = /* @__PURE__ */ make17(undefined_3);
|
|
10583
|
+
var String4 = /* @__PURE__ */ make17(string2);
|
|
10584
|
+
var Number5 = /* @__PURE__ */ make17(number2);
|
|
10585
|
+
var Boolean2 = /* @__PURE__ */ make17(boolean);
|
|
10586
|
+
var Void = /* @__PURE__ */ make17(void_4);
|
|
10587
10587
|
function makeStruct(ast, fields) {
|
|
10588
|
-
return
|
|
10588
|
+
return make17(ast, {
|
|
10589
10589
|
fields,
|
|
10590
10590
|
mapFields(f, options) {
|
|
10591
10591
|
const fields = f(this.fields);
|
|
@@ -10597,19 +10597,19 @@ function Struct(fields) {
|
|
|
10597
10597
|
return makeStruct(struct(fields, undefined), fields);
|
|
10598
10598
|
}
|
|
10599
10599
|
function Record(key, value) {
|
|
10600
|
-
return
|
|
10600
|
+
return make17(record(key.ast, value.ast), {
|
|
10601
10601
|
key,
|
|
10602
10602
|
value
|
|
10603
10603
|
});
|
|
10604
10604
|
}
|
|
10605
10605
|
function StructWithRest(schema, records) {
|
|
10606
|
-
return
|
|
10606
|
+
return make17(structWithRest(schema.ast, records.map(getAST)), {
|
|
10607
10607
|
schema,
|
|
10608
10608
|
records
|
|
10609
10609
|
});
|
|
10610
10610
|
}
|
|
10611
10611
|
function makeTuple(ast, elements) {
|
|
10612
|
-
return
|
|
10612
|
+
return make17(ast, {
|
|
10613
10613
|
elements,
|
|
10614
10614
|
mapElements(f, options) {
|
|
10615
10615
|
const elements = f(this.elements);
|
|
@@ -10620,14 +10620,14 @@ function makeTuple(ast, elements) {
|
|
|
10620
10620
|
function Tuple2(elements) {
|
|
10621
10621
|
return makeTuple(tuple(elements), elements);
|
|
10622
10622
|
}
|
|
10623
|
-
var ArraySchema = /* @__PURE__ */ lambda((schema) =>
|
|
10623
|
+
var ArraySchema = /* @__PURE__ */ lambda((schema) => make17(new Arrays(false, [], [schema.ast]), {
|
|
10624
10624
|
value: schema
|
|
10625
10625
|
}));
|
|
10626
|
-
var NonEmptyArray = /* @__PURE__ */ lambda((schema) =>
|
|
10626
|
+
var NonEmptyArray = /* @__PURE__ */ lambda((schema) => make17(new Arrays(false, [schema.ast], [schema.ast]), {
|
|
10627
10627
|
value: schema
|
|
10628
10628
|
}));
|
|
10629
10629
|
function makeUnion(ast, members) {
|
|
10630
|
-
return
|
|
10630
|
+
return make17(ast, {
|
|
10631
10631
|
members,
|
|
10632
10632
|
mapMembers(f, options) {
|
|
10633
10633
|
const members = f(this.members);
|
|
@@ -10640,7 +10640,7 @@ function Union(members, options) {
|
|
|
10640
10640
|
}
|
|
10641
10641
|
function Literals(literals) {
|
|
10642
10642
|
const members = literals.map(Literal);
|
|
10643
|
-
return
|
|
10643
|
+
return make17(union(members, undefined, undefined), {
|
|
10644
10644
|
literals,
|
|
10645
10645
|
members,
|
|
10646
10646
|
mapMembers(f) {
|
|
@@ -10657,18 +10657,18 @@ function Literals(literals) {
|
|
|
10657
10657
|
var NullOr = /* @__PURE__ */ lambda((self) => Union([self, Null]));
|
|
10658
10658
|
var UndefinedOr = /* @__PURE__ */ lambda((self) => Union([self, Undefined2]));
|
|
10659
10659
|
function suspend4(f) {
|
|
10660
|
-
return
|
|
10660
|
+
return make17(new Suspend(() => f().ast));
|
|
10661
10661
|
}
|
|
10662
10662
|
function decodeTo2(to, transformation) {
|
|
10663
10663
|
return (from) => {
|
|
10664
|
-
return
|
|
10664
|
+
return make17(decodeTo(from.ast, to.ast, transformation ? makeTransformation(transformation) : passthrough3()), {
|
|
10665
10665
|
from,
|
|
10666
10666
|
to
|
|
10667
10667
|
});
|
|
10668
10668
|
};
|
|
10669
10669
|
}
|
|
10670
10670
|
function withConstructorDefault2(defaultValue) {
|
|
10671
|
-
return (schema) =>
|
|
10671
|
+
return (schema) => make17(withConstructorDefault(schema.ast, defaultValue), {
|
|
10672
10672
|
schema
|
|
10673
10673
|
});
|
|
10674
10674
|
}
|
|
@@ -10744,7 +10744,7 @@ function isBase64(annotations) {
|
|
|
10744
10744
|
...annotations
|
|
10745
10745
|
});
|
|
10746
10746
|
}
|
|
10747
|
-
var Finite = /* @__PURE__ */
|
|
10747
|
+
var Finite = /* @__PURE__ */ make17(finite);
|
|
10748
10748
|
function makeIsGreaterThan(options) {
|
|
10749
10749
|
const gt = isGreaterThan2(options.order);
|
|
10750
10750
|
const formatter = options.formatter ?? format;
|
|
@@ -11324,7 +11324,7 @@ function CauseReason(error, defect) {
|
|
|
11324
11324
|
}
|
|
11325
11325
|
}))
|
|
11326
11326
|
});
|
|
11327
|
-
return
|
|
11327
|
+
return make17(schema.ast, {
|
|
11328
11328
|
error,
|
|
11329
11329
|
defect
|
|
11330
11330
|
});
|
|
@@ -11361,7 +11361,7 @@ function Cause(error, defect) {
|
|
|
11361
11361
|
}) => failures
|
|
11362
11362
|
}))
|
|
11363
11363
|
});
|
|
11364
|
-
return
|
|
11364
|
+
return make17(schema.ast, {
|
|
11365
11365
|
error,
|
|
11366
11366
|
defect
|
|
11367
11367
|
});
|
|
@@ -11422,7 +11422,7 @@ function Exit(value, error, defect) {
|
|
|
11422
11422
|
}
|
|
11423
11423
|
}))
|
|
11424
11424
|
});
|
|
11425
|
-
return
|
|
11425
|
+
return make17(schema.ast, {
|
|
11426
11426
|
value,
|
|
11427
11427
|
error,
|
|
11428
11428
|
defect
|
|
@@ -11526,7 +11526,7 @@ function getClassSchemaFactory(from, identifier, annotations) {
|
|
|
11526
11526
|
const ClassTypeId = getClassTypeId(identifier);
|
|
11527
11527
|
const isClassValue = (input) => input instanceof self || hasProperty(input, ClassTypeId);
|
|
11528
11528
|
const transformation = getClassTransformation(self);
|
|
11529
|
-
const to =
|
|
11529
|
+
const to = make17(new Declaration([from.ast], () => (input, ast, options) => {
|
|
11530
11530
|
return isClassValue(input) ? succeed6(input) : fail7(new InvalidType(ast, input, options));
|
|
11531
11531
|
}, {
|
|
11532
11532
|
identifier,
|
|
@@ -11594,7 +11594,7 @@ function toJsonSchemaDocument(schema, options) {
|
|
|
11594
11594
|
}
|
|
11595
11595
|
var toCodecJson = toCodecJson2;
|
|
11596
11596
|
var toCodecStringTree = toCodecStringTree2;
|
|
11597
|
-
var Json = /* @__PURE__ */
|
|
11597
|
+
var Json = /* @__PURE__ */ make17(/* @__PURE__ */ annotate(Json2, {
|
|
11598
11598
|
toCode: () => ({
|
|
11599
11599
|
runtime: "Schema.Json",
|
|
11600
11600
|
Type: "Schema.Json"
|
|
@@ -11741,4 +11741,4 @@ var encodeUnknownJsonStringSync = encodeSync(fromJsonString(Unknown));
|
|
|
11741
11741
|
var storableText = (text) => text.replaceAll("\x00", "").replaceAll(/\p{Cs}/gu, "");
|
|
11742
11742
|
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;
|
|
11743
11743
|
|
|
11744
|
-
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,
|
|
11744
|
+
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, 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 };
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
gen,
|
|
7
7
|
flatMap3,
|
|
8
8
|
provideContext2
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-h2f26xbd.js";
|
|
10
10
|
import {
|
|
11
11
|
runForEach
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-63cyj9dh.js";
|
|
13
13
|
import {
|
|
14
14
|
WebSocketConstructor,
|
|
15
15
|
layerWebSocketConstructorGlobal,
|
|
@@ -19,13 +19,13 @@ import {
|
|
|
19
19
|
RunnerReplicaRpcs,
|
|
20
20
|
RunnerRunFileRpcs,
|
|
21
21
|
ProgramRpcs
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-bgwp50wv.js";
|
|
23
23
|
import {
|
|
24
24
|
layerJson,
|
|
25
25
|
make4,
|
|
26
26
|
withHeaders,
|
|
27
27
|
layerProtocolSocket
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-cswzx3jj.js";
|
|
29
29
|
|
|
30
30
|
// packages/live/src/rpc/runner-client.ts
|
|
31
31
|
var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
decoded2,
|
|
8
8
|
readOpencode2,
|
|
9
9
|
runOpencodeReader2
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import"./chunk-
|
|
12
|
-
import"./chunk-
|
|
13
|
-
import"./chunk-
|
|
10
|
+
} from "./chunk-my92qn4x.js";
|
|
11
|
+
import"./chunk-gap0vmj7.js";
|
|
12
|
+
import"./chunk-63cyj9dh.js";
|
|
13
|
+
import"./chunk-h2f26xbd.js";
|
|
14
14
|
export {
|
|
15
15
|
decoded2 as decoded,
|
|
16
16
|
decodedOption2 as decodedOption,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
|
-
|
|
3
|
+
make11,
|
|
4
4
|
runForEach,
|
|
5
5
|
compiled2
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-63cyj9dh.js";
|
|
7
7
|
import {
|
|
8
8
|
getOrUndefined,
|
|
9
9
|
liftThrowable,
|
|
@@ -30,11 +30,11 @@ import {
|
|
|
30
30
|
isJsonObject,
|
|
31
31
|
isString2,
|
|
32
32
|
encodeUnknownJsonStringSync
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-h2f26xbd.js";
|
|
34
34
|
import {
|
|
35
35
|
ChildProcessSpawner,
|
|
36
36
|
make3
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-gap0vmj7.js";
|
|
38
38
|
|
|
39
39
|
// packages/agent-runtime/src/opencode-store.ts
|
|
40
40
|
import { lstatSync, readFileSync, realpathSync } from "fs";
|
|
@@ -173,7 +173,7 @@ var isolatedRead = (store, name, input) => gen(function* () {
|
|
|
173
173
|
const spawner = yield* ChildProcessSpawner;
|
|
174
174
|
const [command, ...args] = opencodeReaderCommand();
|
|
175
175
|
const handle = yield* spawner.spawn(make3(command, args, {
|
|
176
|
-
stdin:
|
|
176
|
+
stdin: make11(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
|
|
177
177
|
stderr: "ignore",
|
|
178
178
|
extendEnv: false,
|
|
179
179
|
env: {},
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
runnerRpcUrl2,
|
|
5
5
|
makeRunnerRpcClient2,
|
|
6
6
|
makeProgramRpcClient2
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import"./chunk-
|
|
9
|
-
import"./chunk-
|
|
10
|
-
import"./chunk-
|
|
11
|
-
import"./chunk-
|
|
12
|
-
import"./chunk-
|
|
7
|
+
} from "./chunk-jq8hbcnf.js";
|
|
8
|
+
import"./chunk-cswzx3jj.js";
|
|
9
|
+
import"./chunk-bgwp50wv.js";
|
|
10
|
+
import"./chunk-4qjfn1sa.js";
|
|
11
|
+
import"./chunk-63cyj9dh.js";
|
|
12
|
+
import"./chunk-h2f26xbd.js";
|
|
13
13
|
export {
|
|
14
14
|
makeProgramRpcClient2 as makeProgramRpcClient,
|
|
15
15
|
makeRunnerRpcClient2 as makeRunnerRpcClient,
|
|
@@ -634,6 +634,20 @@ Two of the software-engineering Kit's starts are off until a Team turns them on:
|
|
|
634
634
|
- Release, once per head, when such a ChangeRequest is approved at that head, by the forge or through Kitman, and its pipeline passed there, while no Run works it. A ChangeRequest a Build lands through Shepherd is merged and released by that Shepherd instead. Release asks before it publishes, unless the Team delivers in full auto. It releases only under a \`merge\` release trigger: under a \`milestone\` or \`project\` trigger each Run it starts ends \`not_due\`, so leave it off there.
|
|
635
635
|
|
|
636
636
|
Turning a start off stops new Runs from it. Runs it already started go on. \`kitman loop starts\` lists what each Event started, or why it started nothing.`
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
title: "Loop Operations Guide \u203A Schedules",
|
|
640
|
+
path: "loop-operations#schedules",
|
|
641
|
+
level: 2,
|
|
642
|
+
link: "https://kitman.sh/knowledge/docs/loop-operations#schedules",
|
|
643
|
+
text: `## Schedules
|
|
644
|
+
|
|
645
|
+
Schedules start Runs at set times, and they come from Kits. There are two ways to get one:
|
|
646
|
+
|
|
647
|
+
- **Turn on a Loop's offered Schedule.** A Loop can offer one, such as Hindsight's weekly run. Its page shows a switch for it under Starts when; turning it on schedules it for the Workspace, and its Runs act for whoever turned it on. When a Team has no Schedules, its Schedules page lists the Loops that offer one.
|
|
648
|
+
- **Declare it in a Kit.** A Kit's \`defineKit\` can declare Schedules, each naming a Loop, a rule and a timezone. Deploying the Kit creates them, and the Kit owns them: a rename in the web lasts until its next deploy.
|
|
649
|
+
|
|
650
|
+
The Schedules page and a Loop's page show each daily or weekly time in your own time zone, and in UTC when you hover it. A cron rule is read in its Schedule's timezone, so it is shown as written, with that timezone.`
|
|
637
651
|
},
|
|
638
652
|
{
|
|
639
653
|
title: "Loop Operations Guide \u203A Input Defaults",
|
|
@@ -2195,7 +2209,7 @@ var pathOfLink = (link) => {
|
|
|
2195
2209
|
return page === null ? link : page[1] || "index";
|
|
2196
2210
|
};
|
|
2197
2211
|
var UnpinnedSdkLink = "https://cdn.jsdelivr.net/npm/@kitman-sh/sdk/";
|
|
2198
|
-
var pinnedLink2 = (link, version = "0.
|
|
2212
|
+
var pinnedLink2 = (link, version = "0.22.0") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
|
|
2199
2213
|
var pageOf = (path) => path.split("#")[0];
|
|
2200
2214
|
var exportName = (section) => section.path.startsWith("sdk/") ? section.path.split("#")[1] ?? "" : "";
|
|
2201
2215
|
function excerpt(text, queryTerms) {
|