@kitman-sh/cli 0.43.0 → 0.45.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-8b02x7vv.js → chunk-04wqa07j.js} +1 -1
- package/dist/{chunk-27e7m975.js → chunk-0dfg674z.js} +7 -7
- package/dist/{chunk-ea29sbaq.js → chunk-4vxbxjf8.js} +1 -1
- package/dist/{chunk-91tvnb8f.js → chunk-5gbt1vhm.js} +9 -9
- package/dist/{chunk-d4vhrja4.js → chunk-5pjbxhxy.js} +3 -3
- package/dist/{chunk-etrfc5cn.js → chunk-5smh4dp2.js} +35 -32
- package/dist/{chunk-0qfaf9h3.js → chunk-69y8j7fs.js} +140 -138
- package/dist/{chunk-cnryphhh.js → chunk-8gkrs473.js} +7 -7
- package/dist/{chunk-b2btevxm.js → chunk-9qvgbp6k.js} +60 -46
- package/dist/{chunk-98azvx6g.js → chunk-9ykh05hz.js} +1 -1
- package/dist/{chunk-ns26fbmk.js → chunk-a71b15k3.js} +2 -2
- package/dist/{chunk-fekh3jwz.js → chunk-e3dv8hzy.js} +1 -1
- package/dist/{chunk-7ygg19wj.js → chunk-es6rnmyw.js} +3 -3
- package/dist/{chunk-qxpwkb5f.js → chunk-f957cxrx.js} +7 -7
- package/dist/{chunk-bbq7q5r6.js → chunk-fmvdwf5h.js} +69 -49
- package/dist/{chunk-6x08g7m6.js → chunk-fqh4pj6b.js} +14 -60
- package/dist/{chunk-fbddgx6q.js → chunk-g26y214g.js} +4 -4
- package/dist/{chunk-bqbfyqx6.js → chunk-k462v2v7.js} +103 -51
- package/dist/{chunk-qqc567gx.js → chunk-k7eh8tac.js} +4 -4
- package/dist/{chunk-wy6gmtd9.js → chunk-n3jpxd14.js} +2 -2
- package/dist/{chunk-rbt72xjw.js → chunk-qzwsh96c.js} +22 -3
- package/dist/{chunk-hgvft7vy.js → chunk-tfwgeqx5.js} +4 -4
- package/dist/{chunk-bqebfc06.js → chunk-tqv14b4c.js} +12 -12
- package/dist/{chunk-jq5h43a4.js → chunk-tx9aey19.js} +287 -59
- package/dist/{chunk-wv8kt4rb.js → chunk-yyz9xrc1.js} +6 -6
- package/dist/{chunk-jvwjreb0.js → chunk-zx86g3dw.js} +7 -7
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
gen,
|
|
7
7
|
flatMap3,
|
|
8
8
|
provideContext2
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-k462v2v7.js";
|
|
10
10
|
import {
|
|
11
11
|
runForEach
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-5smh4dp2.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-69y8j7fs.js";
|
|
23
23
|
import {
|
|
24
24
|
layerJson,
|
|
25
|
-
|
|
25
|
+
make3,
|
|
26
26
|
withHeaders,
|
|
27
27
|
layerProtocolSocket
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-f957cxrx.js";
|
|
29
29
|
|
|
30
30
|
// packages/live/src/rpc/runner-client.ts
|
|
31
31
|
var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
|
|
@@ -46,7 +46,7 @@ var authorizer = (options) => (call) => flatMap3(options.bearer, (token) => with
|
|
|
46
46
|
var RunnerProcessRpcs = RunnerReplicaRpcs.merge(RunnerRunFileRpcs);
|
|
47
47
|
var makeRunnerRpcClient2 = (options) => gen(function* () {
|
|
48
48
|
const protocol = yield* build(options.protocol);
|
|
49
|
-
const client = yield*
|
|
49
|
+
const client = yield* make3(RunnerProcessRpcs).pipe(provideContext2(protocol));
|
|
50
50
|
const authorized = authorizer(options);
|
|
51
51
|
return {
|
|
52
52
|
claim: (input) => authorized(client.Claim(input)),
|
|
@@ -74,7 +74,7 @@ var makeRunnerRpcClient2 = (options) => gen(function* () {
|
|
|
74
74
|
});
|
|
75
75
|
var makeProgramRpcClient2 = (options) => gen(function* () {
|
|
76
76
|
const protocol = yield* build(options.protocol);
|
|
77
|
-
const client = yield*
|
|
77
|
+
const client = yield* make3(ProgramRpcs).pipe(provideContext2(protocol));
|
|
78
78
|
const authorized = authorizer(options);
|
|
79
79
|
return {
|
|
80
80
|
recordActivity: (input) => authorized(client.RecordActivity(input)),
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
isNone,
|
|
10
10
|
getOrElse,
|
|
11
11
|
Service2,
|
|
12
|
-
|
|
12
|
+
empty4,
|
|
13
13
|
add,
|
|
14
14
|
getOrUndefined2,
|
|
15
15
|
get4,
|
|
@@ -138,7 +138,7 @@ import {
|
|
|
138
138
|
toJsonSchemaDocument,
|
|
139
139
|
toCodecJson,
|
|
140
140
|
Json
|
|
141
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-k462v2v7.js";
|
|
142
142
|
import {
|
|
143
143
|
WebCrypto,
|
|
144
144
|
makeUnsafe,
|
|
@@ -175,24 +175,24 @@ import {
|
|
|
175
175
|
StepManifest,
|
|
176
176
|
KitSetup,
|
|
177
177
|
RunnerRpcError
|
|
178
|
-
} from "./chunk-
|
|
178
|
+
} from "./chunk-69y8j7fs.js";
|
|
179
179
|
import {
|
|
180
180
|
currentTimeMillis,
|
|
181
181
|
getCurrent,
|
|
182
182
|
runForEach,
|
|
183
183
|
FileSystem
|
|
184
|
-
} from "./chunk-
|
|
184
|
+
} from "./chunk-5smh4dp2.js";
|
|
185
185
|
import {
|
|
186
186
|
splitQuestionOptions,
|
|
187
187
|
recommendationProblem,
|
|
188
188
|
questionAdvice
|
|
189
|
-
} from "./chunk-
|
|
189
|
+
} from "./chunk-9ykh05hz.js";
|
|
190
190
|
import {
|
|
191
191
|
guard,
|
|
192
192
|
Id,
|
|
193
193
|
Timestamp,
|
|
194
194
|
ActorType
|
|
195
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-4vxbxjf8.js";
|
|
196
196
|
var __defProp = Object.defineProperty;
|
|
197
197
|
var __returnValue = (v) => v;
|
|
198
198
|
function __exportSetter(name, newValue) {
|
|
@@ -755,7 +755,7 @@ var make = (tag, options) => makeProto({
|
|
|
755
755
|
payloadSchema: isSchema(options.payload) ? options.payload : Struct(options.payload),
|
|
756
756
|
successSchema: options.success ?? Void,
|
|
757
757
|
errorSchema: options.error ?? Never,
|
|
758
|
-
annotations: options.annotations ??
|
|
758
|
+
annotations: options.annotations ?? empty4(),
|
|
759
759
|
idempotencyKey: options.idempotencyKey,
|
|
760
760
|
suspendedRetrySchedule: options.suspendedRetrySchedule
|
|
761
761
|
});
|
|
@@ -935,7 +935,7 @@ var make3 = (options) => {
|
|
|
935
935
|
errorSchema,
|
|
936
936
|
exitSchema: Exit(successSchemaJson, errorSchemaJson, Defect()),
|
|
937
937
|
exitSchemaPartial: Exit(successSchemaJson, errorSchemaJson, Unknown),
|
|
938
|
-
annotations: options.annotations ??
|
|
938
|
+
annotations: options.annotations ?? empty4(),
|
|
939
939
|
annotate(tag, value) {
|
|
940
940
|
return make3({
|
|
941
941
|
...options,
|
|
@@ -1380,7 +1380,7 @@ var StepError = Union([
|
|
|
1380
1380
|
ChangeRequestClosed,
|
|
1381
1381
|
ChildFailed
|
|
1382
1382
|
]);
|
|
1383
|
-
var serviceFree = (effect) => provide3(effect,
|
|
1383
|
+
var serviceFree = (effect) => provide3(effect, empty4());
|
|
1384
1384
|
var declared = [];
|
|
1385
1385
|
var stackSite = /\(?((?:[a-z]+:\/\/)?[^\s()]+):(\d+):(\d+)\)?$/u;
|
|
1386
1386
|
var callSite = (above) => {
|
|
@@ -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-n3jpxd14.js";
|
|
8
|
+
import"./chunk-4vxbxjf8.js";
|
|
9
|
+
import"./chunk-k462v2v7.js";
|
|
10
10
|
export {
|
|
11
11
|
isOpaqueConnectReason2 as isOpaqueConnectReason,
|
|
12
12
|
opaqueTunnelRefusal2 as opaqueTunnelRefusal,
|
|
@@ -53,7 +53,7 @@ import {
|
|
|
53
53
|
isCanonicalArrayIndex,
|
|
54
54
|
getUnsafe2,
|
|
55
55
|
sort,
|
|
56
|
-
|
|
56
|
+
empty5,
|
|
57
57
|
of,
|
|
58
58
|
map6,
|
|
59
59
|
Error2,
|
|
@@ -61,6 +61,7 @@ import {
|
|
|
61
61
|
getCurrentFiber,
|
|
62
62
|
fiberJoin,
|
|
63
63
|
fiberInterrupt,
|
|
64
|
+
fiberInterruptAll,
|
|
64
65
|
succeed2,
|
|
65
66
|
sync,
|
|
66
67
|
suspend2,
|
|
@@ -100,7 +101,7 @@ import {
|
|
|
100
101
|
provide,
|
|
101
102
|
addFinalizerExit,
|
|
102
103
|
addFinalizer,
|
|
103
|
-
|
|
104
|
+
forkUnsafe2,
|
|
104
105
|
close,
|
|
105
106
|
isCause,
|
|
106
107
|
isFailReason,
|
|
@@ -205,7 +206,7 @@ import {
|
|
|
205
206
|
String4,
|
|
206
207
|
toCodecStringTree,
|
|
207
208
|
encodeUnknownJsonStringSync
|
|
208
|
-
} from "./chunk-
|
|
209
|
+
} from "./chunk-k462v2v7.js";
|
|
209
210
|
|
|
210
211
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
|
|
211
212
|
var headUnsafe = (self) => {
|
|
@@ -228,6 +229,7 @@ var constEmptyIterator = {
|
|
|
228
229
|
};
|
|
229
230
|
}
|
|
230
231
|
};
|
|
232
|
+
var empty2 = () => constEmpty;
|
|
231
233
|
|
|
232
234
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Record.js
|
|
233
235
|
var has = /* @__PURE__ */ dual(2, (self, key) => Object.hasOwn(self, key));
|
|
@@ -396,6 +398,7 @@ var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe2(value) : fro
|
|
|
396
398
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Fiber.js
|
|
397
399
|
var join = fiberJoin;
|
|
398
400
|
var interrupt = fiberInterrupt;
|
|
401
|
+
var interruptAll = fiberInterruptAll;
|
|
399
402
|
var getCurrent = getCurrentFiber;
|
|
400
403
|
var runIn = fiberRunIn;
|
|
401
404
|
|
|
@@ -1137,7 +1140,7 @@ var MutableRefProto = {
|
|
|
1137
1140
|
};
|
|
1138
1141
|
}
|
|
1139
1142
|
};
|
|
1140
|
-
var
|
|
1143
|
+
var make7 = (value) => {
|
|
1141
1144
|
const ref = Object.create(MutableRefProto);
|
|
1142
1145
|
ref.current = value;
|
|
1143
1146
|
return ref;
|
|
@@ -1298,7 +1301,7 @@ var remove = (self, value) => filter2(self, (v) => v !== value);
|
|
|
1298
1301
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/PubSub.js
|
|
1299
1302
|
var TypeId3 = "~effect/PubSub";
|
|
1300
1303
|
var SubscriptionTypeId = "~effect/PubSub/Subscription";
|
|
1301
|
-
var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false),
|
|
1304
|
+
var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false), make7(false), options.strategy(), make7(none())));
|
|
1302
1305
|
var unbounded = (options) => make5({
|
|
1303
1306
|
atomicPubSub: () => makeAtomicUnbounded(options),
|
|
1304
1307
|
strategy: () => new DroppingStrategy
|
|
@@ -1318,7 +1321,7 @@ var publishUnsafe = /* @__PURE__ */ dual(2, (self, value) => {
|
|
|
1318
1321
|
});
|
|
1319
1322
|
var subscribe = (self) => uninterruptible(contextWith((services) => {
|
|
1320
1323
|
const localScope = get4(services, Scope);
|
|
1321
|
-
const scope =
|
|
1324
|
+
const scope = forkUnsafe2(self.scope);
|
|
1322
1325
|
const subscription = makeSubscriptionUnsafe(self.pubsub, self.subscribers, self.strategy, self.ended);
|
|
1323
1326
|
return addFinalizer(scope, unsubscribe(subscription)).pipe(andThen2(addFinalizerExit(localScope, (exit) => close(scope, exit))), as(subscription));
|
|
1324
1327
|
}));
|
|
@@ -1393,7 +1396,7 @@ var removeSubscribers = (subscribers, subscription, pollers) => {
|
|
|
1393
1396
|
subscribers.delete(subscription);
|
|
1394
1397
|
}
|
|
1395
1398
|
};
|
|
1396
|
-
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false),
|
|
1399
|
+
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false), make7(false), strategy, pubsub.replayWindow(), ended);
|
|
1397
1400
|
class UnboundedPubSub {
|
|
1398
1401
|
publisherHead = {
|
|
1399
1402
|
value: AbsentValue,
|
|
@@ -1810,7 +1813,7 @@ var QueueProto = {
|
|
|
1810
1813
|
};
|
|
1811
1814
|
}
|
|
1812
1815
|
};
|
|
1813
|
-
var
|
|
1816
|
+
var make8 = (options) => withFiber((fiber) => {
|
|
1814
1817
|
const self = Object.create(QueueProto);
|
|
1815
1818
|
self.dispatcher = fiber.currentDispatcher;
|
|
1816
1819
|
self.capacity = options?.capacity ?? Number.POSITIVE_INFINITY;
|
|
@@ -1825,14 +1828,14 @@ var make9 = (options) => withFiber((fiber) => {
|
|
|
1825
1828
|
};
|
|
1826
1829
|
return succeed2(self);
|
|
1827
1830
|
});
|
|
1828
|
-
var bounded = (capacity) =>
|
|
1831
|
+
var bounded = (capacity) => make8({
|
|
1829
1832
|
capacity
|
|
1830
1833
|
});
|
|
1831
|
-
var sliding = (capacity) =>
|
|
1834
|
+
var sliding = (capacity) => make8({
|
|
1832
1835
|
capacity,
|
|
1833
1836
|
strategy: "sliding"
|
|
1834
1837
|
});
|
|
1835
|
-
var unbounded2 = () =>
|
|
1838
|
+
var unbounded2 = () => make8();
|
|
1836
1839
|
var offer = /* @__PURE__ */ dual(2, (self, message) => suspend2(() => offerUnsafe(self, message) ? exitTrue : self.state._tag === "Open" && self.strategy === "suspend" ? offerOrWait(self, message) : exitFalse));
|
|
1837
1840
|
var offerUnsafe = (self, message) => {
|
|
1838
1841
|
if (self.state._tag !== "Open") {
|
|
@@ -2252,13 +2255,13 @@ var fromTransform = (transform) => {
|
|
|
2252
2255
|
var transformPull = (self, f) => fromTransform((upstream, scope) => flatMap3(toTransform(self)(upstream, scope), (pull) => f(pull, scope)));
|
|
2253
2256
|
var fromPull = (effect) => fromTransform((_, __) => effect);
|
|
2254
2257
|
var fromTransformBracket = (f) => fromTransform(fnUntraced(function* (upstream, scope) {
|
|
2255
|
-
const closableScope =
|
|
2258
|
+
const closableScope = forkUnsafe2(scope);
|
|
2256
2259
|
const onCause = (cause) => close(closableScope, doneExitFromCause(cause));
|
|
2257
2260
|
const pull = yield* onError(f(upstream, scope, closableScope), onCause);
|
|
2258
2261
|
return onError(pull, onCause);
|
|
2259
2262
|
}));
|
|
2260
2263
|
var toTransform = (channel) => channel.transform;
|
|
2261
|
-
var asyncQueue = (scope, f, options) =>
|
|
2264
|
+
var asyncQueue = (scope, f, options) => make8({
|
|
2262
2265
|
capacity: options?.bufferSize,
|
|
2263
2266
|
strategy: options?.strategy
|
|
2264
2267
|
}).pipe(tap2((queue) => addFinalizer(scope, shutdown(queue))), tap2((queue) => provide(f(queue), scope).pipe(catchCause2((cause) => failCause(queue, cause)), forkIn(scope, {
|
|
@@ -2299,7 +2302,7 @@ var fromReadableStream2 = (options) => fromTransform((_, scope) => readableStrea
|
|
|
2299
2302
|
}));
|
|
2300
2303
|
var readableStreamToPullUnsafe = (options) => {
|
|
2301
2304
|
const reader = options.readable.getReader();
|
|
2302
|
-
const exit = options.exit ??
|
|
2305
|
+
const exit = options.exit ?? make7(undefined);
|
|
2303
2306
|
const pull = suspend3(() => {
|
|
2304
2307
|
if (exit.current)
|
|
2305
2308
|
return exit.current;
|
|
@@ -2386,7 +2389,7 @@ var flatMapSequential = (self, f) => fromTransform((upstream, scope) => map9(toT
|
|
|
2386
2389
|
let childPull;
|
|
2387
2390
|
let childScope;
|
|
2388
2391
|
const makePull = flatMap3(pull, (value) => {
|
|
2389
|
-
childScope ??=
|
|
2392
|
+
childScope ??= forkUnsafe2(scope);
|
|
2390
2393
|
return flatMapEager(toTransform(f(value))(upstream, childScope), (pull) => {
|
|
2391
2394
|
childPull = catchHalt(pull);
|
|
2392
2395
|
return childPull;
|
|
@@ -2482,14 +2485,14 @@ var mapAccum2 = /* @__PURE__ */ dual((args) => isChannel(args[0]), (self, initia
|
|
|
2482
2485
|
return pump;
|
|
2483
2486
|
})));
|
|
2484
2487
|
var catchCause3 = /* @__PURE__ */ dual(2, (self, f) => fromTransform((upstream, scope) => {
|
|
2485
|
-
let forkedScope =
|
|
2488
|
+
let forkedScope = forkUnsafe2(scope);
|
|
2486
2489
|
return map9(toTransform(self)(upstream, forkedScope), (pull) => {
|
|
2487
2490
|
let currentPull = pull.pipe(catchCause2((cause) => {
|
|
2488
2491
|
if (isDoneCause(cause)) {
|
|
2489
2492
|
return failCause3(cause);
|
|
2490
2493
|
}
|
|
2491
2494
|
const toClose = forkedScope;
|
|
2492
|
-
forkedScope =
|
|
2495
|
+
forkedScope = forkUnsafe2(scope);
|
|
2493
2496
|
return close(toClose, failCause2(cause)).pipe(andThen2(toTransform(f(cause))(upstream, forkedScope)), flatMap3((childPull) => {
|
|
2494
2497
|
currentPull = childPull;
|
|
2495
2498
|
return childPull;
|
|
@@ -2524,7 +2527,7 @@ var mergeAll = /* @__PURE__ */ dual(2, (channels, {
|
|
|
2524
2527
|
}
|
|
2525
2528
|
}
|
|
2526
2529
|
const channel = pullFiber === undefined ? yield* pull : yield* join(pullFiber);
|
|
2527
|
-
const childScope =
|
|
2530
|
+
const childScope = forkUnsafe2(forkedScope);
|
|
2528
2531
|
const childPull = yield* toTransform(channel)(upstream, childScope);
|
|
2529
2532
|
while (fibers.size >= concurrencyN) {
|
|
2530
2533
|
const [fiber, fiberScope] = headUnsafe(fibers);
|
|
@@ -2589,8 +2592,8 @@ var merge = /* @__PURE__ */ dual((args) => isChannel(args[0]) && isChannel(args[
|
|
|
2589
2592
|
onFailure: (cause) => onExit(side, cause),
|
|
2590
2593
|
onSuccess: () => onExit(side, cause)
|
|
2591
2594
|
}))), forkIn(forkedScope));
|
|
2592
|
-
yield* runSide("left", left,
|
|
2593
|
-
yield* runSide("right", right,
|
|
2595
|
+
yield* runSide("left", left, forkUnsafe2(forkedScope));
|
|
2596
|
+
yield* runSide("right", right, forkUnsafe2(forkedScope));
|
|
2594
2597
|
return take(queue);
|
|
2595
2598
|
})));
|
|
2596
2599
|
var mergeEffect = /* @__PURE__ */ dual(2, (self, effect) => merge(self, fromEffectDrain(effect), {
|
|
@@ -2960,7 +2963,7 @@ var release = (self, state) => {
|
|
|
2960
2963
|
};
|
|
2961
2964
|
|
|
2962
2965
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
|
|
2963
|
-
var
|
|
2966
|
+
var make9 = make6;
|
|
2964
2967
|
var get3 = get2;
|
|
2965
2968
|
|
|
2966
2969
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
|
|
@@ -2971,8 +2974,8 @@ var fromPull2 = (pull) => fromChannel2(fromPull(pull));
|
|
|
2971
2974
|
var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatMap3(toPullScoped(self.channel, scope), (pull) => f(pull, scope))));
|
|
2972
2975
|
var toChannel2 = (stream) => stream.channel;
|
|
2973
2976
|
var callback = (f, options) => fromChannel2(callbackArray(f, options));
|
|
2974
|
-
var
|
|
2975
|
-
var
|
|
2977
|
+
var empty3 = /* @__PURE__ */ fromChannel2(empty);
|
|
2978
|
+
var make10 = (...values) => fromArray2(values);
|
|
2976
2979
|
var suspend = (stream) => {
|
|
2977
2980
|
const suspended = fromChannel2(suspend4(() => stream().channel));
|
|
2978
2981
|
suspendedStreams.set(suspended, stream);
|
|
@@ -2981,7 +2984,7 @@ var suspend = (stream) => {
|
|
|
2981
2984
|
var suspendedStreams = /* @__PURE__ */ new WeakMap;
|
|
2982
2985
|
var fail2 = (error) => fromChannel2(fail5(error));
|
|
2983
2986
|
var die4 = (defect) => fromChannel2(die(defect));
|
|
2984
|
-
var fromArray2 = (array) => isReadonlyArrayNonEmpty(array) ? fromChannel2(succeed4(array)) :
|
|
2987
|
+
var fromArray2 = (array) => isReadonlyArrayNonEmpty(array) ? fromChannel2(succeed4(array)) : empty3;
|
|
2985
2988
|
var fromQueue = (queue) => fromChannel2(fromQueueArray(queue));
|
|
2986
2989
|
var fromPubSub = (pubsub) => fromChannel2(fromPubSubArray(pubsub));
|
|
2987
2990
|
var fromReadableStream = (options) => fromChannel2(fromReadableStream2(options));
|
|
@@ -3029,7 +3032,7 @@ var tapError = /* @__PURE__ */ dual(2, (self, f) => self.channel.pipe(tapError3(
|
|
|
3029
3032
|
var mapError = /* @__PURE__ */ dual(2, (self, f) => fromChannel2(mapError3(self.channel, f)));
|
|
3030
3033
|
var take2 = /* @__PURE__ */ dual(2, (self, n) => {
|
|
3031
3034
|
const count = normalize(n);
|
|
3032
|
-
return count === 0 ?
|
|
3035
|
+
return count === 0 ? empty3 : takeUntil(self, (_, i) => i === count - 1);
|
|
3033
3036
|
});
|
|
3034
3037
|
var takeUntil = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, predicate, options) => transformPull2(self, (pull, _scope) => sync2(() => {
|
|
3035
3038
|
let i = 0;
|
|
@@ -3046,7 +3049,7 @@ var takeUntil = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, predica
|
|
|
3046
3049
|
return pump;
|
|
3047
3050
|
})));
|
|
3048
3051
|
var mapAccum = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, initial, f, options) => fromChannel2(mapAccum2(self.channel, initial, (state, arr) => {
|
|
3049
|
-
const acc =
|
|
3052
|
+
const acc = empty5();
|
|
3050
3053
|
for (let index = 0;index < arr.length; index++) {
|
|
3051
3054
|
const [newState, values] = f(state, arr[index]);
|
|
3052
3055
|
state = newState;
|
|
@@ -3061,7 +3064,7 @@ var mapAccum = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, initial,
|
|
|
3061
3064
|
return isReadonlyArrayNonEmpty(arr) ? of(arr) : emptyArr;
|
|
3062
3065
|
}
|
|
3063
3066
|
} : undefined)));
|
|
3064
|
-
var emptyArr = /* @__PURE__ */
|
|
3067
|
+
var emptyArr = /* @__PURE__ */ empty5();
|
|
3065
3068
|
var transduce = /* @__PURE__ */ dual(2, (self, sink) => transformPull2(self, (upstream, scope) => sync2(() => {
|
|
3066
3069
|
let done2;
|
|
3067
3070
|
let leftover;
|
|
@@ -3173,7 +3176,7 @@ var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (
|
|
|
3173
3176
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
|
|
3174
3177
|
var TypeId10 = "~effect/FileSystem";
|
|
3175
3178
|
var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
|
|
3176
|
-
var
|
|
3179
|
+
var make11 = (impl) => FileSystem.of({
|
|
3177
3180
|
...impl,
|
|
3178
3181
|
[TypeId10]: TypeId10,
|
|
3179
3182
|
glob: make2(impl),
|
|
@@ -3233,7 +3236,7 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
|
|
|
3233
3236
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
|
|
3234
3237
|
var TypeId11 = "~effect/Path";
|
|
3235
3238
|
var Path = /* @__PURE__ */ Service2("effect/Path");
|
|
3236
|
-
var
|
|
3239
|
+
var make12 = (impl) => Path.of({
|
|
3237
3240
|
...impl,
|
|
3238
3241
|
[TypeId11]: TypeId11,
|
|
3239
3242
|
resolveWithin(root, input) {
|
|
@@ -3308,7 +3311,7 @@ function makeProvider(load, mapInput) {
|
|
|
3308
3311
|
function makeSource(get, transform) {
|
|
3309
3312
|
return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
|
|
3310
3313
|
}
|
|
3311
|
-
function
|
|
3314
|
+
function make13(get) {
|
|
3312
3315
|
return makeSource(get, identityPath);
|
|
3313
3316
|
}
|
|
3314
3317
|
function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
@@ -3317,7 +3320,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
|
3317
3320
|
function fromEnvRecord(env, options) {
|
|
3318
3321
|
const preserveEmptyStrings = options?.preserveEmptyStrings === true;
|
|
3319
3322
|
const trie = buildEnvTrie(env);
|
|
3320
|
-
return
|
|
3323
|
+
return make13((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
|
|
3321
3324
|
}
|
|
3322
3325
|
function fromEnv(options) {
|
|
3323
3326
|
const env = options?.env ?? {
|
|
@@ -3663,4 +3666,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
|
|
|
3663
3666
|
...argv
|
|
3664
3667
|
];
|
|
3665
3668
|
|
|
3666
|
-
export { map, makeEquivalence, Clock, currentTimeMillis, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2,
|
|
3669
|
+
export { empty2, map, makeEquivalence, Clock, currentTimeMillis, bytes, join, interrupt, interruptAll, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2, make7, unbounded, publishUnsafe, make8, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe3, fromTransform, mapDone, isSink, fromChannel, drain, make9, get3, isStream, fromChannel2, callback, empty3, make10, suspend, fail2, fromQueue, fromPubSub, fromReadableStream, unwrap, map2, tap, drainFork, concat, merge2, filter, catchCause, tapError, mapError, take2, mapAccum, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, toPull, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make11, FileTypeId, WatchBackend, Path, make12, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, operatorConfigHome, tempDirectoryScoped, harnessesUnsupportedInSrt2, harnessesUnsupportedInDocker2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
|