@kitman-sh/cli 0.14.2 → 0.14.3
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/LICENSE.md +10 -0
- package/dist/{chunk-avhqm9p0.js → chunk-2w9a76nr.js} +34 -183
- package/dist/{chunk-ryxff0xk.js → chunk-34748vfg.js} +337 -181
- package/dist/{chunk-gwz39037.js → chunk-3f6mzrm7.js} +1 -1
- package/dist/{chunk-m9x7feh0.js → chunk-44kx62t6.js} +7 -7
- package/dist/{chunk-t9chwen8.js → chunk-65dpe0ev.js} +2 -2
- package/dist/{chunk-ge9qjp6s.js → chunk-7q3t3x0x.js} +6 -6
- package/dist/{chunk-jzfy127y.js → chunk-7v1n7a6k.js} +4 -4
- package/dist/{chunk-v86jpzpr.js → chunk-91j33xf2.js} +9 -9
- package/dist/{chunk-4xez238w.js → chunk-9anvghq2.js} +2 -2
- package/dist/{chunk-h6kd80nr.js → chunk-9avbsbvk.js} +1 -6
- package/dist/{chunk-q4ch3t9q.js → chunk-a4mkjaxa.js} +6 -6
- package/dist/{chunk-scdr623z.js → chunk-bbf0jzsc.js} +1 -1
- package/dist/{chunk-vfw3xn1e.js → chunk-ctpgfdzf.js} +3 -3
- package/dist/{chunk-80vwvv5x.js → chunk-daem5h1c.js} +28 -28
- package/dist/{chunk-39pdxhcv.js → chunk-dhtx14r5.js} +3 -3
- package/dist/{chunk-z7c2ndfg.js → chunk-er9n65mh.js} +11 -11
- package/dist/{chunk-0r9tp5pz.js → chunk-f96vy2h9.js} +4 -4
- package/dist/{chunk-ffq8vvvx.js → chunk-hasfatd4.js} +5 -5
- package/dist/{chunk-hza25m2e.js → chunk-my9vcmfw.js} +31 -31
- package/dist/{chunk-24j1cmsm.js → chunk-rgrpvnwg.js} +21 -21
- package/dist/{chunk-3csj1ve1.js → chunk-rvnem2bt.js} +4 -4
- package/dist/{chunk-yfag1eey.js → chunk-tebzffha.js} +19 -19
- package/dist/{chunk-e024f8af.js → chunk-y0y2gg8d.js} +2 -2
- package/dist/{chunk-1jabs81x.js → chunk-zpp4jg4a.js} +59 -101
- package/dist/{chunk-qqmxhk9w.js → chunk-zxmx605h.js} +60 -14
- package/dist/index.js +4 -4
- package/package.json +4 -3
|
@@ -1567,7 +1567,7 @@ var ServiceProto = {
|
|
|
1567
1567
|
.../* @__PURE__ */ Prototype({
|
|
1568
1568
|
label: "Service",
|
|
1569
1569
|
evaluate(fiber) {
|
|
1570
|
-
return exitSucceed(
|
|
1570
|
+
return exitSucceed(get3(fiber.context, this));
|
|
1571
1571
|
}
|
|
1572
1572
|
}),
|
|
1573
1573
|
toJSON() {
|
|
@@ -1583,10 +1583,10 @@ var ServiceProto = {
|
|
|
1583
1583
|
return make14(this, self);
|
|
1584
1584
|
},
|
|
1585
1585
|
use(f) {
|
|
1586
|
-
return withFiber((fiber) => f(
|
|
1586
|
+
return withFiber((fiber) => f(get3(fiber.context, this)));
|
|
1587
1587
|
},
|
|
1588
1588
|
useSync(f) {
|
|
1589
|
-
return withFiber((fiber) => exitSucceed(f(
|
|
1589
|
+
return withFiber((fiber) => exitSucceed(f(get3(fiber.context, this))));
|
|
1590
1590
|
}
|
|
1591
1591
|
};
|
|
1592
1592
|
var cacheKeys = /* @__PURE__ */ new Set;
|
|
@@ -1716,7 +1716,7 @@ var getUnsafe = /* @__PURE__ */ dual(2, (self, service) => {
|
|
|
1716
1716
|
}
|
|
1717
1717
|
return value;
|
|
1718
1718
|
});
|
|
1719
|
-
var
|
|
1719
|
+
var get3 = getUnsafe;
|
|
1720
1720
|
var defaultValueCacheKey = "~effect/Context/defaultValue";
|
|
1721
1721
|
var getDefaultValue = (ref) => {
|
|
1722
1722
|
if (defaultValueCacheKey in ref) {
|
|
@@ -3002,7 +3002,7 @@ class FiberImpl {
|
|
|
3002
3002
|
return this._dispatcher ??= this.cache.scheduler.makeDispatcher();
|
|
3003
3003
|
}
|
|
3004
3004
|
getRef(ref) {
|
|
3005
|
-
return
|
|
3005
|
+
return get3(this.context, ref);
|
|
3006
3006
|
}
|
|
3007
3007
|
addObserver(cb) {
|
|
3008
3008
|
if (this._exit) {
|
|
@@ -3203,17 +3203,17 @@ class FiberImpl {
|
|
|
3203
3203
|
var makeFiberContextCache = (context) => {
|
|
3204
3204
|
const currentTracer = getOrUndefinedUnsafe(context, TracerKey);
|
|
3205
3205
|
return {
|
|
3206
|
-
scheduler:
|
|
3206
|
+
scheduler: get3(context, Scheduler),
|
|
3207
3207
|
tracer: currentTracer,
|
|
3208
3208
|
tracerContext: currentTracer ? currentTracer["context"] : undefined,
|
|
3209
|
-
tracerEnabled:
|
|
3209
|
+
tracerEnabled: get3(context, TracerEnabled),
|
|
3210
3210
|
span: getOrUndefinedUnsafe(context, ParentSpanKey),
|
|
3211
|
-
logLevel:
|
|
3212
|
-
minimumLogLevel:
|
|
3213
|
-
stackFrame:
|
|
3211
|
+
logLevel: get3(context, CurrentLogLevel),
|
|
3212
|
+
minimumLogLevel: get3(context, MinimumLogLevel),
|
|
3213
|
+
stackFrame: get3(context, CurrentStackFrame),
|
|
3214
3214
|
runtimeMetrics: getOrUndefinedUnsafe(context, FiberRuntimeMetricsKey),
|
|
3215
|
-
maxOpsBeforeYield:
|
|
3216
|
-
preventYield:
|
|
3215
|
+
maxOpsBeforeYield: get3(context, MaxOpsBeforeYield),
|
|
3216
|
+
preventYield: get3(context, PreventSchedulerYield)
|
|
3217
3217
|
};
|
|
3218
3218
|
};
|
|
3219
3219
|
var deferredInterruptCont = {
|
|
@@ -4710,10 +4710,10 @@ var noopSpan = (options) => Object.assign(Object.create(NoopSpanProto), options)
|
|
|
4710
4710
|
var filterDisablePropagation = (span) => {
|
|
4711
4711
|
if (!span)
|
|
4712
4712
|
return none();
|
|
4713
|
-
return
|
|
4713
|
+
return get3(span.annotations, DisablePropagation) ? span._tag === "Span" ? filterDisablePropagation(getOrUndefined(span.parent)) : none() : some(span);
|
|
4714
4714
|
};
|
|
4715
4715
|
var makeSpanUnsafe = (fiber, name, options) => {
|
|
4716
|
-
const disablePropagation = !fiber.cache.tracerEnabled || options?.annotations &&
|
|
4716
|
+
const disablePropagation = !fiber.cache.tracerEnabled || options?.annotations && get3(options.annotations, DisablePropagation);
|
|
4717
4717
|
const parent = options?.parent !== undefined ? some(options.parent) : options?.root ? none() : filterDisablePropagation(fiber.cache.span);
|
|
4718
4718
|
let span;
|
|
4719
4719
|
if (disablePropagation) {
|
|
@@ -5866,48 +5866,6 @@ var getCode = (charCode) => {
|
|
|
5866
5866
|
return codes[charCode];
|
|
5867
5867
|
};
|
|
5868
5868
|
|
|
5869
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/redacted.js
|
|
5870
|
-
var redactedRegistry = /* @__PURE__ */ new WeakMap;
|
|
5871
|
-
var value2 = (self) => {
|
|
5872
|
-
if (redactedRegistry.has(self)) {
|
|
5873
|
-
return redactedRegistry.get(self);
|
|
5874
|
-
} else {
|
|
5875
|
-
throw new Error("Unable to get redacted value" + (self.label ? ` with label: "${self.label}"` : ""));
|
|
5876
|
-
}
|
|
5877
|
-
};
|
|
5878
|
-
|
|
5879
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Redacted.js
|
|
5880
|
-
var TypeId8 = "~effect/Redacted";
|
|
5881
|
-
var isRedacted = (u) => hasProperty(u, TypeId8);
|
|
5882
|
-
var make16 = (value, options) => {
|
|
5883
|
-
const self = Object.create(Proto2);
|
|
5884
|
-
if (options?.label) {
|
|
5885
|
-
self.label = options.label;
|
|
5886
|
-
}
|
|
5887
|
-
redactedRegistry.set(self, value);
|
|
5888
|
-
return self;
|
|
5889
|
-
};
|
|
5890
|
-
var Proto2 = {
|
|
5891
|
-
[TypeId8]: {
|
|
5892
|
-
_A: (_) => _
|
|
5893
|
-
},
|
|
5894
|
-
label: undefined,
|
|
5895
|
-
...PipeInspectableProto,
|
|
5896
|
-
toJSON() {
|
|
5897
|
-
return this.toString();
|
|
5898
|
-
},
|
|
5899
|
-
toString() {
|
|
5900
|
-
return `<redacted${isString(this.label) ? ":" + this.label : ""}>`;
|
|
5901
|
-
},
|
|
5902
|
-
[symbol]() {
|
|
5903
|
-
return hash(redactedRegistry.get(this));
|
|
5904
|
-
},
|
|
5905
|
-
[symbol2](that) {
|
|
5906
|
-
return isRedacted(that) && equals(redactedRegistry.get(this), redactedRegistry.get(that));
|
|
5907
|
-
}
|
|
5908
|
-
};
|
|
5909
|
-
var value = value2;
|
|
5910
|
-
|
|
5911
5869
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/schema/annotations.js
|
|
5912
5870
|
function resolve(ast) {
|
|
5913
5871
|
return ast.checks ? ast.checks[ast.checks.length - 1].annotations : ast.annotations;
|
|
@@ -5931,16 +5889,16 @@ var toOption2 = (value) => value === missing ? none() : some(value);
|
|
|
5931
5889
|
var fromOptionExit = (option) => option._tag === "None" ? missingExit : succeed8(option.value);
|
|
5932
5890
|
|
|
5933
5891
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/SchemaIssue.js
|
|
5934
|
-
var
|
|
5892
|
+
var TypeId8 = "~effect/SchemaIssue/Issue";
|
|
5935
5893
|
function isIssue(u) {
|
|
5936
|
-
return hasProperty(u,
|
|
5894
|
+
return hasProperty(u, TypeId8) && u[TypeId8] === TypeId8;
|
|
5937
5895
|
}
|
|
5938
5896
|
function hasInput(issue) {
|
|
5939
5897
|
return Object.hasOwn(issue, "input");
|
|
5940
5898
|
}
|
|
5941
5899
|
|
|
5942
5900
|
class IssueNodeImpl {
|
|
5943
|
-
[
|
|
5901
|
+
[TypeId8] = TypeId8;
|
|
5944
5902
|
constructor(input, options) {
|
|
5945
5903
|
if (options?.reportInput === true && input !== missing) {
|
|
5946
5904
|
this.input = input;
|
|
@@ -6314,9 +6272,9 @@ function setContent(operation, content) {
|
|
|
6314
6272
|
}
|
|
6315
6273
|
|
|
6316
6274
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/SchemaTransformation.js
|
|
6317
|
-
var
|
|
6275
|
+
var TypeId9 = "~effect/SchemaTransformation/Transformation";
|
|
6318
6276
|
var Transformation = class extends Class3 {
|
|
6319
|
-
[
|
|
6277
|
+
[TypeId9] = TypeId9;
|
|
6320
6278
|
_tag = "Transformation";
|
|
6321
6279
|
decode;
|
|
6322
6280
|
encode;
|
|
@@ -6330,7 +6288,7 @@ var Transformation = class extends Class3 {
|
|
|
6330
6288
|
}
|
|
6331
6289
|
};
|
|
6332
6290
|
function isTransformation(u) {
|
|
6333
|
-
return hasProperty(u,
|
|
6291
|
+
return hasProperty(u, TypeId9) && u[TypeId9] === TypeId9;
|
|
6334
6292
|
}
|
|
6335
6293
|
var makeTransformation = (options) => {
|
|
6336
6294
|
if (isTransformation(options)) {
|
|
@@ -6450,10 +6408,10 @@ var Context = class {
|
|
|
6450
6408
|
this.annotations = annotations;
|
|
6451
6409
|
}
|
|
6452
6410
|
};
|
|
6453
|
-
var
|
|
6411
|
+
var TypeId10 = "~effect/Schema";
|
|
6454
6412
|
|
|
6455
6413
|
class ASTNodeImpl {
|
|
6456
|
-
[
|
|
6414
|
+
[TypeId10] = TypeId10;
|
|
6457
6415
|
annotations;
|
|
6458
6416
|
checks;
|
|
6459
6417
|
encoding;
|
|
@@ -8668,10 +8626,10 @@ var normalCompiler = (ast) => resolve2(ast).parser;
|
|
|
8668
8626
|
var constructorCompiler = (ast) => resolve2(ast).makeEffect;
|
|
8669
8627
|
|
|
8670
8628
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/schema/make.js
|
|
8671
|
-
var
|
|
8629
|
+
var TypeId11 = "~effect/Schema/Schema";
|
|
8672
8630
|
var RebuildOptions = /* @__PURE__ */ Symbol();
|
|
8673
8631
|
var SchemaProto = {
|
|
8674
|
-
[
|
|
8632
|
+
[TypeId11]: TypeId11,
|
|
8675
8633
|
get make() {
|
|
8676
8634
|
const value = make4(this);
|
|
8677
8635
|
Object.defineProperty(this, "make", {
|
|
@@ -9116,10 +9074,10 @@ function isSchemaError(u) {
|
|
|
9116
9074
|
}
|
|
9117
9075
|
|
|
9118
9076
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Schema.js
|
|
9119
|
-
var
|
|
9077
|
+
var TypeId12 = TypeId11;
|
|
9120
9078
|
function declareConstructor() {
|
|
9121
9079
|
return (typeParameters, run, annotations) => {
|
|
9122
|
-
return
|
|
9080
|
+
return make16(new Declaration(typeParameters.map(getAST), (typeParameters) => run(typeParameters.map((ast) => make16(ast))), annotations));
|
|
9123
9081
|
};
|
|
9124
9082
|
}
|
|
9125
9083
|
function declare(is, annotations) {
|
|
@@ -9227,27 +9185,27 @@ function encodeUnknownSync(schema, options) {
|
|
|
9227
9185
|
};
|
|
9228
9186
|
}
|
|
9229
9187
|
var encodeSync = encodeUnknownSync;
|
|
9230
|
-
var
|
|
9188
|
+
var make16 = make5;
|
|
9231
9189
|
function isSchema(u) {
|
|
9232
|
-
return hasProperty(u,
|
|
9190
|
+
return hasProperty(u, TypeId12) && u[TypeId12] === TypeId12;
|
|
9233
9191
|
}
|
|
9234
|
-
var optionalKey = /* @__PURE__ */ lambda((schema) =>
|
|
9192
|
+
var optionalKey = /* @__PURE__ */ lambda((schema) => make16(optionalKey2(schema.ast), {
|
|
9235
9193
|
schema
|
|
9236
9194
|
}));
|
|
9237
9195
|
var optional = /* @__PURE__ */ lambda((self) => {
|
|
9238
9196
|
const schema = UndefinedOr(self);
|
|
9239
|
-
return
|
|
9197
|
+
return make16(optional2(self.ast), {
|
|
9240
9198
|
schema
|
|
9241
9199
|
});
|
|
9242
9200
|
});
|
|
9243
|
-
var toType = /* @__PURE__ */ lambda((schema) =>
|
|
9201
|
+
var toType = /* @__PURE__ */ lambda((schema) => make16(toType2(schema.ast), {
|
|
9244
9202
|
schema
|
|
9245
9203
|
}));
|
|
9246
|
-
var toEncoded2 = /* @__PURE__ */ lambda((schema) =>
|
|
9204
|
+
var toEncoded2 = /* @__PURE__ */ lambda((schema) => make16(toEncoded(schema.ast), {
|
|
9247
9205
|
schema
|
|
9248
9206
|
}));
|
|
9249
9207
|
function Literal(literal) {
|
|
9250
|
-
const out =
|
|
9208
|
+
const out = make16(new Literal2(literal), {
|
|
9251
9209
|
literal,
|
|
9252
9210
|
transform(to) {
|
|
9253
9211
|
return out.pipe(decodeTo2(Literal(to), {
|
|
@@ -9258,16 +9216,16 @@ function Literal(literal) {
|
|
|
9258
9216
|
});
|
|
9259
9217
|
return out;
|
|
9260
9218
|
}
|
|
9261
|
-
var Never = /* @__PURE__ */
|
|
9262
|
-
var Unknown = /* @__PURE__ */
|
|
9263
|
-
var Null = /* @__PURE__ */
|
|
9264
|
-
var Undefined2 = /* @__PURE__ */
|
|
9265
|
-
var String4 = /* @__PURE__ */
|
|
9266
|
-
var Number5 = /* @__PURE__ */
|
|
9267
|
-
var Boolean2 = /* @__PURE__ */
|
|
9268
|
-
var Void = /* @__PURE__ */
|
|
9219
|
+
var Never = /* @__PURE__ */ make16(never3);
|
|
9220
|
+
var Unknown = /* @__PURE__ */ make16(unknown);
|
|
9221
|
+
var Null = /* @__PURE__ */ make16(null_);
|
|
9222
|
+
var Undefined2 = /* @__PURE__ */ make16(undefined_3);
|
|
9223
|
+
var String4 = /* @__PURE__ */ make16(string2);
|
|
9224
|
+
var Number5 = /* @__PURE__ */ make16(number2);
|
|
9225
|
+
var Boolean2 = /* @__PURE__ */ make16(boolean);
|
|
9226
|
+
var Void = /* @__PURE__ */ make16(void_4);
|
|
9269
9227
|
function makeStruct(ast, fields) {
|
|
9270
|
-
return
|
|
9228
|
+
return make16(ast, {
|
|
9271
9229
|
fields,
|
|
9272
9230
|
mapFields(f, options) {
|
|
9273
9231
|
const fields = f(this.fields);
|
|
@@ -9279,25 +9237,25 @@ function Struct(fields) {
|
|
|
9279
9237
|
return makeStruct(struct(fields, undefined), fields);
|
|
9280
9238
|
}
|
|
9281
9239
|
function Record(key, value) {
|
|
9282
|
-
return
|
|
9240
|
+
return make16(record(key.ast, value.ast), {
|
|
9283
9241
|
key,
|
|
9284
9242
|
value
|
|
9285
9243
|
});
|
|
9286
9244
|
}
|
|
9287
9245
|
function StructWithRest(schema, records) {
|
|
9288
|
-
return
|
|
9246
|
+
return make16(structWithRest(schema.ast, records.map(getAST)), {
|
|
9289
9247
|
schema,
|
|
9290
9248
|
records
|
|
9291
9249
|
});
|
|
9292
9250
|
}
|
|
9293
|
-
var ArraySchema = /* @__PURE__ */ lambda((schema) =>
|
|
9251
|
+
var ArraySchema = /* @__PURE__ */ lambda((schema) => make16(new Arrays(false, [], [schema.ast]), {
|
|
9294
9252
|
value: schema
|
|
9295
9253
|
}));
|
|
9296
|
-
var NonEmptyArray = /* @__PURE__ */ lambda((schema) =>
|
|
9254
|
+
var NonEmptyArray = /* @__PURE__ */ lambda((schema) => make16(new Arrays(false, [schema.ast], [schema.ast]), {
|
|
9297
9255
|
value: schema
|
|
9298
9256
|
}));
|
|
9299
9257
|
function makeUnion(ast, members) {
|
|
9300
|
-
return
|
|
9258
|
+
return make16(ast, {
|
|
9301
9259
|
members,
|
|
9302
9260
|
mapMembers(f, options) {
|
|
9303
9261
|
const members = f(this.members);
|
|
@@ -9310,7 +9268,7 @@ function Union(members, options) {
|
|
|
9310
9268
|
}
|
|
9311
9269
|
function Literals(literals) {
|
|
9312
9270
|
const members = literals.map(Literal);
|
|
9313
|
-
return
|
|
9271
|
+
return make16(union(members, undefined, undefined), {
|
|
9314
9272
|
literals,
|
|
9315
9273
|
members,
|
|
9316
9274
|
mapMembers(f) {
|
|
@@ -9327,18 +9285,18 @@ function Literals(literals) {
|
|
|
9327
9285
|
var NullOr = /* @__PURE__ */ lambda((self) => Union([self, Null]));
|
|
9328
9286
|
var UndefinedOr = /* @__PURE__ */ lambda((self) => Union([self, Undefined2]));
|
|
9329
9287
|
function suspend4(f) {
|
|
9330
|
-
return
|
|
9288
|
+
return make16(new Suspend(() => f().ast));
|
|
9331
9289
|
}
|
|
9332
9290
|
function decodeTo2(to, transformation) {
|
|
9333
9291
|
return (from) => {
|
|
9334
|
-
return
|
|
9292
|
+
return make16(decodeTo(from.ast, to.ast, transformation ? makeTransformation(transformation) : passthrough3()), {
|
|
9335
9293
|
from,
|
|
9336
9294
|
to
|
|
9337
9295
|
});
|
|
9338
9296
|
};
|
|
9339
9297
|
}
|
|
9340
9298
|
function withConstructorDefault2(defaultValue) {
|
|
9341
|
-
return (schema) =>
|
|
9299
|
+
return (schema) => make16(withConstructorDefault(schema.ast, defaultValue), {
|
|
9342
9300
|
schema
|
|
9343
9301
|
});
|
|
9344
9302
|
}
|
|
@@ -9414,7 +9372,7 @@ function isBase64(annotations) {
|
|
|
9414
9372
|
...annotations
|
|
9415
9373
|
});
|
|
9416
9374
|
}
|
|
9417
|
-
var Finite = /* @__PURE__ */
|
|
9375
|
+
var Finite = /* @__PURE__ */ make16(finite);
|
|
9418
9376
|
function makeIsGreaterThan(options) {
|
|
9419
9377
|
const gt = isGreaterThan2(options.order);
|
|
9420
9378
|
const formatter = options.formatter ?? format;
|
|
@@ -9994,7 +9952,7 @@ function CauseReason(error, defect) {
|
|
|
9994
9952
|
}
|
|
9995
9953
|
}))
|
|
9996
9954
|
});
|
|
9997
|
-
return
|
|
9955
|
+
return make16(schema.ast, {
|
|
9998
9956
|
error,
|
|
9999
9957
|
defect
|
|
10000
9958
|
});
|
|
@@ -10031,7 +9989,7 @@ function Cause(error, defect) {
|
|
|
10031
9989
|
}) => failures
|
|
10032
9990
|
}))
|
|
10033
9991
|
});
|
|
10034
|
-
return
|
|
9992
|
+
return make16(schema.ast, {
|
|
10035
9993
|
error,
|
|
10036
9994
|
defect
|
|
10037
9995
|
});
|
|
@@ -10092,7 +10050,7 @@ function Exit(value, error, defect) {
|
|
|
10092
10050
|
}
|
|
10093
10051
|
}))
|
|
10094
10052
|
});
|
|
10095
|
-
return
|
|
10053
|
+
return make16(schema.ast, {
|
|
10096
10054
|
value,
|
|
10097
10055
|
error,
|
|
10098
10056
|
defect
|
|
@@ -10117,7 +10075,7 @@ function makeClass(Inherited, identifier, struct2, annotations, proto) {
|
|
|
10117
10075
|
}
|
|
10118
10076
|
});
|
|
10119
10077
|
}
|
|
10120
|
-
static [
|
|
10078
|
+
static [TypeId12] = TypeId12;
|
|
10121
10079
|
get [ClassTypeId]() {
|
|
10122
10080
|
return ClassTypeId;
|
|
10123
10081
|
}
|
|
@@ -10196,7 +10154,7 @@ function getClassSchemaFactory(from, identifier, annotations) {
|
|
|
10196
10154
|
const ClassTypeId = getClassTypeId(identifier);
|
|
10197
10155
|
const isClassValue = (input) => input instanceof self || hasProperty(input, ClassTypeId);
|
|
10198
10156
|
const transformation = getClassTransformation(self);
|
|
10199
|
-
const to =
|
|
10157
|
+
const to = make16(new Declaration([from.ast], () => (input, ast, options) => {
|
|
10200
10158
|
return isClassValue(input) ? succeed6(input) : fail7(new InvalidType(ast, input, options));
|
|
10201
10159
|
}, {
|
|
10202
10160
|
identifier,
|
|
@@ -10249,7 +10207,7 @@ function toEquivalence(schema) {
|
|
|
10249
10207
|
}
|
|
10250
10208
|
var toCodecJson = toCodecJson2;
|
|
10251
10209
|
var toCodecStringTree = toCodecStringTree2;
|
|
10252
|
-
var Json = /* @__PURE__ */
|
|
10210
|
+
var Json = /* @__PURE__ */ make16(/* @__PURE__ */ annotate(Json2, {
|
|
10253
10211
|
toCode: () => ({
|
|
10254
10212
|
runtime: "Schema.Json",
|
|
10255
10213
|
Type: "Schema.Json"
|
|
@@ -10396,4 +10354,4 @@ var encodeUnknownJsonStringSync = encodeSync(fromJsonString(Unknown));
|
|
|
10396
10354
|
var storableText = (text) => text.replaceAll("\x00", "").replaceAll(/\p{Cs}/gu, "");
|
|
10397
10355
|
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;
|
|
10398
10356
|
|
|
10399
|
-
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, make13, strictEqual, Tuple, String3, Number2, mapInput, none, some, isNone, isSome, match, getOrElse, orElse, fromNullishOr, fromUndefinedOr, getOrUndefined, liftThrowable, map4, flatMap, toArray, filter2, exists, Service2, makeUnsafe4, empty3, make14, add, getOrUndefined2, getOrUndefinedUnsafe, getUnsafe,
|
|
10357
|
+
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, make13, strictEqual, Tuple, String3, Number2, mapInput, none, some, isNone, isSome, match, getOrElse, orElse, fromNullishOr, fromUndefinedOr, getOrUndefined, liftThrowable, map4, flatMap, toArray, filter2, exists, Service2, makeUnsafe4, empty3, make14, add, getOrUndefined2, getOrUndefinedUnsafe, getUnsafe, get3, 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, isArrayNonEmpty, isReadonlyArrayNonEmpty, isCanonicalArrayIndex, getUnsafe2, sort, 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, asVoidAll, makeUnsafe5, make15, _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, squash, findError, findErrorOption, hasInterrupts2, interruptors, pretty, isDone2, Done2, done, IllegalArgumentError, UnknownError, reasonAnnotations, Random, catchDone, isDoneCause, filterDone, doneExitFromCause, matchEffect, max2, during, min2, exponential, jittered, spaced, isEffect, all3, 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, map8, as, asSome2, asVoid, zipWith, catch_, catchTag, catchTags, catchReason, catchCause2, catchDefect, catchIf, catchCauseIf, mapError2, orDie, tapError2, tapCause, retry, retryOrElse, 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, Pointer, makeFormatterStandardSchemaV1, passthrough, transformEffect, Transformation, transform, defaultParseOptions, unknown, getIndexSignatureKeys, applyToSelfOrLastLinkEncoding, decodeTo, toEncoded, decodeUnknownEffect, omit, map9, declare, SchemaError, is, decodeUnknownEffect2, decodeEffect, decodeUnknownExit, decodeUnknownOption, decodeOption, decodeSync, encodeEffect, make16, isSchema, optionalKey, optional, toType, Literal, Never, Unknown, Null, String4, Boolean2, Void, Struct, Record, StructWithRest, ArraySchema, NonEmptyArray, Union, Literals, NullOr, UndefinedOr, suspend4, decodeTo2, withDecodingDefaultKey, tag, TaggedStruct, makeFilter, isPattern, Finite, isGreaterThan, isGreaterThanOrEqualTo, isLessThanOrEqualTo, isBetween, Int, isMinLength, isMaxLength, isMinProperties, isMaxProperties, isUnique, NonEmptyString, Defect, Date2, fromJsonString, FiniteFromString, Cause, Exit, Class2, Error3, TaggedError2, toEquivalence, 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 };
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
|
+
isString,
|
|
4
|
+
hasProperty,
|
|
5
|
+
symbol,
|
|
6
|
+
hash,
|
|
7
|
+
symbol2,
|
|
8
|
+
equals,
|
|
3
9
|
BaseProto,
|
|
10
|
+
PipeInspectableProto,
|
|
4
11
|
Prototype,
|
|
5
12
|
some,
|
|
6
13
|
Service2,
|
|
@@ -14,11 +21,8 @@ import {
|
|
|
14
21
|
andThen2,
|
|
15
22
|
map8,
|
|
16
23
|
raceFirst,
|
|
17
|
-
scoped
|
|
18
|
-
|
|
19
|
-
make16,
|
|
20
|
-
value
|
|
21
|
-
} from "./chunk-1jabs81x.js";
|
|
24
|
+
scoped
|
|
25
|
+
} from "./chunk-zpp4jg4a.js";
|
|
22
26
|
import {
|
|
23
27
|
unwrap,
|
|
24
28
|
drainFork,
|
|
@@ -27,7 +31,49 @@ import {
|
|
|
27
31
|
runCollect,
|
|
28
32
|
runDrain,
|
|
29
33
|
mkString
|
|
30
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-2w9a76nr.js";
|
|
35
|
+
|
|
36
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/redacted.js
|
|
37
|
+
var redactedRegistry = /* @__PURE__ */ new WeakMap;
|
|
38
|
+
var value2 = (self) => {
|
|
39
|
+
if (redactedRegistry.has(self)) {
|
|
40
|
+
return redactedRegistry.get(self);
|
|
41
|
+
} else {
|
|
42
|
+
throw new Error("Unable to get redacted value" + (self.label ? ` with label: "${self.label}"` : ""));
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Redacted.js
|
|
47
|
+
var TypeId = "~effect/Redacted";
|
|
48
|
+
var isRedacted = (u) => hasProperty(u, TypeId);
|
|
49
|
+
var make = (value, options) => {
|
|
50
|
+
const self = Object.create(Proto);
|
|
51
|
+
if (options?.label) {
|
|
52
|
+
self.label = options.label;
|
|
53
|
+
}
|
|
54
|
+
redactedRegistry.set(self, value);
|
|
55
|
+
return self;
|
|
56
|
+
};
|
|
57
|
+
var Proto = {
|
|
58
|
+
[TypeId]: {
|
|
59
|
+
_A: (_) => _
|
|
60
|
+
},
|
|
61
|
+
label: undefined,
|
|
62
|
+
...PipeInspectableProto,
|
|
63
|
+
toJSON() {
|
|
64
|
+
return this.toString();
|
|
65
|
+
},
|
|
66
|
+
toString() {
|
|
67
|
+
return `<redacted${isString(this.label) ? ":" + this.label : ""}>`;
|
|
68
|
+
},
|
|
69
|
+
[symbol]() {
|
|
70
|
+
return hash(redactedRegistry.get(this));
|
|
71
|
+
},
|
|
72
|
+
[symbol2](that) {
|
|
73
|
+
return isRedacted(that) && equals(redactedRegistry.get(this), redactedRegistry.get(that));
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
var value = value2;
|
|
31
77
|
|
|
32
78
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Brand.js
|
|
33
79
|
function nominal() {
|
|
@@ -55,7 +101,7 @@ var HandleProto = {
|
|
|
55
101
|
var makeHandle = (params) => Object.setPrototypeOf({
|
|
56
102
|
...params
|
|
57
103
|
}, HandleProto);
|
|
58
|
-
var
|
|
104
|
+
var make2 = (spawn) => {
|
|
59
105
|
const streamString = (command, options) => spawn(command).pipe(map8((handle) => decodeText(options?.includeStderr === true ? handle.all : drainFork(handle.stdout, handle.stderr))), unwrap);
|
|
60
106
|
const streamLines = (command, options) => splitLines(streamString(command, options));
|
|
61
107
|
return ChildProcessSpawner.of({
|
|
@@ -176,7 +222,7 @@ var parseTemplate = (texts, values) => {
|
|
|
176
222
|
if (word.length === 0)
|
|
177
223
|
return;
|
|
178
224
|
const value = word.map(unwrap2).join("");
|
|
179
|
-
words.push(word.length === 1 && isRedacted(word[0]) ? word[0] : word.some(isRedacted) ?
|
|
225
|
+
words.push(word.length === 1 && isRedacted(word[0]) ? word[0] : word.some(isRedacted) ? make(value) : value);
|
|
180
226
|
word = [];
|
|
181
227
|
plain = true;
|
|
182
228
|
braceDepth = 0;
|
|
@@ -266,23 +312,23 @@ var parseTemplate = (texts, values) => {
|
|
|
266
312
|
};
|
|
267
313
|
|
|
268
314
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/process/ChildProcess.js
|
|
269
|
-
var
|
|
270
|
-
var
|
|
315
|
+
var TypeId2 = "~effect/process/ChildProcess";
|
|
316
|
+
var Proto2 = {
|
|
271
317
|
.../* @__PURE__ */ Prototype({
|
|
272
318
|
label: "Command",
|
|
273
319
|
evaluate(fiber) {
|
|
274
320
|
return getUnsafe(fiber.context, ChildProcessSpawner).spawn(this);
|
|
275
321
|
}
|
|
276
322
|
}),
|
|
277
|
-
[
|
|
323
|
+
[TypeId2]: TypeId2
|
|
278
324
|
};
|
|
279
|
-
var makeStandardCommand = (command, args, options) => Object.assign(Object.create(
|
|
325
|
+
var makeStandardCommand = (command, args, options) => Object.assign(Object.create(Proto2), {
|
|
280
326
|
_tag: "StandardCommand",
|
|
281
327
|
command,
|
|
282
328
|
args,
|
|
283
329
|
options
|
|
284
330
|
});
|
|
285
|
-
var
|
|
331
|
+
var make3 = function make(...args) {
|
|
286
332
|
if (isTemplateString(args[0])) {
|
|
287
333
|
const [templates, ...expressions] = args;
|
|
288
334
|
const [command, cmdArgs] = parseTemplate2(templates, expressions);
|
|
@@ -340,4 +386,4 @@ var shellScript = (templates, expressions) => {
|
|
|
340
386
|
}
|
|
341
387
|
return script;
|
|
342
388
|
};
|
|
343
|
-
export { ExitCode, ProcessId, makeHandle,
|
|
389
|
+
export { isRedacted, make, value, ExitCode, ProcessId, makeHandle, make2, ChildProcessSpawner, display, make3, parseFdName, fdName };
|
package/dist/index.js
CHANGED
|
@@ -5,15 +5,15 @@
|
|
|
5
5
|
var args = process.argv.slice(2);
|
|
6
6
|
if (args[0] === "srt") {
|
|
7
7
|
process.argv.splice(2, 1);
|
|
8
|
-
const { runSrtCli } = await import("./chunk-
|
|
8
|
+
const { runSrtCli } = await import("./chunk-9anvghq2.js");
|
|
9
9
|
await runSrtCli();
|
|
10
10
|
} else if (args[0] === "srt-step") {
|
|
11
|
-
const { runSrtStep } = await import("./chunk-
|
|
11
|
+
const { runSrtStep } = await import("./chunk-ctpgfdzf.js");
|
|
12
12
|
await runSrtStep(args.slice(1));
|
|
13
13
|
} else if (args[0] === "opencode-read") {
|
|
14
|
-
const { runOpencodeReader } = await import("./chunk-
|
|
14
|
+
const { runOpencodeReader } = await import("./chunk-7v1n7a6k.js");
|
|
15
15
|
runOpencodeReader();
|
|
16
16
|
} else {
|
|
17
|
-
const { runCli } = await import("./chunk-
|
|
17
|
+
const { runCli } = await import("./chunk-my9vcmfw.js");
|
|
18
18
|
runCli(args);
|
|
19
19
|
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitman-sh/cli",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.3",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"license": "
|
|
5
|
+
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"bin": {
|
|
7
7
|
"kitman": "./dist/index.js"
|
|
8
8
|
},
|
|
9
9
|
"files": [
|
|
10
|
-
"dist"
|
|
10
|
+
"dist",
|
|
11
|
+
"LICENSE.md"
|
|
11
12
|
],
|
|
12
13
|
"dependencies": {
|
|
13
14
|
"@anthropic-ai/sandbox-runtime": "^0.0.81",
|