clanka 0.10.0 → 0.11.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.
Files changed (50) hide show
  1. package/README.md +26 -0
  2. package/dist/Agent.d.ts.map +1 -1
  3. package/dist/Agent.js +1 -0
  4. package/dist/Agent.js.map +1 -1
  5. package/dist/AgentExecutor.test.js +24 -4
  6. package/dist/AgentExecutor.test.js.map +1 -1
  7. package/dist/AgentSkills.test.js +0 -1
  8. package/dist/AgentSkills.test.js.map +1 -1
  9. package/dist/AgentSubagents.test.js +16 -6
  10. package/dist/AgentSubagents.test.js.map +1 -1
  11. package/dist/AgentTools.d.ts +4 -0
  12. package/dist/AgentTools.d.ts.map +1 -1
  13. package/dist/AgentTools.js +6 -1
  14. package/dist/AgentTools.js.map +1 -1
  15. package/dist/AgentToolsReadFile.test.d.ts +2 -0
  16. package/dist/AgentToolsReadFile.test.d.ts.map +1 -0
  17. package/dist/AgentToolsReadFile.test.js +49 -0
  18. package/dist/AgentToolsReadFile.test.js.map +1 -0
  19. package/dist/bin/{Effect-2jPlJ8eu.mjs → Effect-zUBunSAW.mjs} +70 -67
  20. package/dist/bin/Effect-zUBunSAW.mjs.map +1 -0
  21. package/dist/bin/{McpClient-1W508adc.mjs → McpClient-CnP2P7c9.mjs} +19 -19
  22. package/dist/bin/{McpClient-1W508adc.mjs.map → McpClient-CnP2P7c9.mjs.map} +1 -1
  23. package/dist/bin/{OutputFormatter-BFAv48k9.mjs → OutputFormatter-BPdc6RmH.mjs} +3 -3
  24. package/dist/bin/{OutputFormatter-BFAv48k9.mjs.map → OutputFormatter-BPdc6RmH.mjs.map} +1 -1
  25. package/dist/bin/{Schema-D-7VuCiC.mjs → Schema-C2Y2y3tU.mjs} +243 -94
  26. package/dist/bin/Schema-C2Y2y3tU.mjs.map +1 -0
  27. package/dist/bin/{SemanticSearch-Cb8aqvGv.mjs → SemanticSearch-BKZxP19F.mjs} +26 -20
  28. package/dist/bin/SemanticSearch-BKZxP19F.mjs.map +1 -0
  29. package/dist/bin/{Stream-DEu2tfCV.mjs → Stream-BvmRbTMu.mjs} +44 -27
  30. package/dist/bin/Stream-BvmRbTMu.mjs.map +1 -0
  31. package/dist/bin/cli.mjs +2874 -2820
  32. package/dist/bin/cli.mjs.map +1 -1
  33. package/dist/bin/{index.min-CI3qqohw.mjs → index.min-DbZbUHX3.mjs} +3 -3
  34. package/dist/bin/index.min-DbZbUHX3.mjs.map +1 -0
  35. package/dist/bin/turndown.cjs-DK29wZw3.mjs.map +1 -1
  36. package/dist/cli.js +23 -6
  37. package/dist/cli.js.map +1 -1
  38. package/package.json +14 -14
  39. package/src/Agent.ts +1 -0
  40. package/src/AgentExecutor.test.ts +31 -5
  41. package/src/AgentSkills.test.ts +0 -1
  42. package/src/AgentSubagents.test.ts +20 -6
  43. package/src/AgentTools.ts +12 -0
  44. package/src/AgentToolsReadFile.test.ts +61 -0
  45. package/src/cli.ts +46 -8
  46. package/dist/bin/Effect-2jPlJ8eu.mjs.map +0 -1
  47. package/dist/bin/Schema-D-7VuCiC.mjs.map +0 -1
  48. package/dist/bin/SemanticSearch-Cb8aqvGv.mjs.map +0 -1
  49. package/dist/bin/Stream-DEu2tfCV.mjs.map +0 -1
  50. package/dist/bin/index.min-CI3qqohw.mjs.map +0 -1
@@ -1,9 +1,9 @@
1
- import { $n as findError, $o as evaluate, $r as asVoidAll, Ai as flatMap$3, Bi as onExitPrimitive, Br as provide, Ci as fiberAwait, D as contextWith, Di as fiberInterruptAs, Do as map$4, Dt as provideService$2, E as context, Ea as fail$4, Ei as fiberInterruptAllAs, Et as provideContext$2, Fa as succeed$5, Fi as makeLatch, Fn as doneExitFromCause, Fr as addFinalizerExit, G as forkChild, Gi as suspend$3, Gt as succeedSome, Ii as makeLatchUnsafe, In as filterDone, Ir as close, Jt as tap$1, K as forkIn, Ki as sync$1, Kr as doneUnsafe, Kt as suspend$2, L as flatMap$2, Ln as isDoneCause, Lr as forkUnsafe, M as exit, Ma as isSuccess$1, Mi as getCurrentFiber, Mo as some, N as fail$3, Nr as Scope, Ns as hasProperty, Oi as fiberJoin, Ot as raceFirst, P as failCause$3, Pn as catchDone, Pr as addFinalizer, Pt as runForkWith, Q as interrupt$2, Qo as causeFail, Qr as makeUnsafe$3, Qt as tryPromise, R as flatMapEager, Rn as matchEffect, Si as exitZipRight, Ta as headUnsafe, Ti as fiberInterruptAll, To as isSome, U as forEach, Ui as succeed$4, Ut as succeed$3, V as fnUntraced, W as forever, Wi as succeedNone, Wt as succeedNone$1, X as gen, Xn as done, Xs as isTagged, Yi as void_$1, Yn as die$2, Yo as PipeInspectableProto, Ys as isString$1, Zo as args, _a as lastNonEmpty, _t as onError, a as andThen, ac as dual, ai as isFailure$1, as as withFiber$1, bi as exitInterrupt$1, bt as onInterrupt, c as as, ci as void_$2, cn as whileLoop, es as exitFail, fa as isArrayNonEmpty, fi as andThen$1, gt as never, ic as constant, ii as isExit$1, is as makePrimitive, j as ensuring$2, ja as isFailure, ki as fiberRunIn, ko as none, ln as withFiber, m as catchCause$1, ma as isReadonlyArrayNonEmpty, mi as callback$2, mt as matchCauseEffect, ni as failCause$4, no as get$1, ns as exitSucceed, oi as isSuccess, on as void_, p as callback$1, pc as pipeArguments, pi as asSome, pn as yieldNow, ps as toJson, q as forkScoped, qi as uninterruptibleMask, qo as Done, qr as interruptWith, qt as sync, rc as constVoid, ri as interrupt$1, rs as isExit, sc as identity, si as succeed$2, sn as when, st as map$2, t as acquireRelease, tc as constTrue, ti as fail$5, tn as uninterruptible, ts as exitFailCause, u as asVoid, ua as fromIterable$1, vt as onExit$1, w as catch_$2, wi as fiberInterrupt, wt as promise, xa as of, xi as exitVoid, ya as map$3, yt as onExitPrimitive$1, z as flatten$1, zr as makeUnsafe$2, zt as scopedWith } from "./Effect-2jPlJ8eu.mjs";
2
- //#region node_modules/.pnpm/effect@4.0.4/node_modules/effect/dist/internal/count.js
1
+ import { $n as findError, $o as evaluate, $r as asVoidAll, Ai as flatMap$3, Bi as onExitPrimitive, Br as provide, Ci as fiberAwait, D as contextWith, Di as fiberInterruptAs, Do as map$4, Dt as provideService$2, E as context, Ea as fail$4, Ei as fiberInterruptAllAs, Et as provideContext$2, Fa as succeed$5, Fi as makeLatch, Fn as doneExitFromCause, Fr as addFinalizerExit, Fs as hasProperty, G as forkChild, Gi as suspend$3, Gt as succeedSome, Ii as makeLatchUnsafe, In as filterDone, Ir as close, Jt as tap$1, K as forkIn, Ki as sync$1, Kr as doneUnsafe, Kt as suspend$2, L as flatMap$2, Ln as isDoneCause, Lr as forkUnsafe, M as exit, Ma as isSuccess$1, Mi as getCurrentFiber, Mo as some, N as fail$3, Nr as Scope, Oi as fiberJoin, Ot as raceFirst, P as failCause$3, Pn as catchDone, Pr as addFinalizer, Pt as runForkWith, Q as interrupt$2, Qo as causeFail, Qr as makeUnsafe$3, Qs as isTagged, Qt as tryPromise, R as flatMapEager, Rn as matchEffect, Si as exitZipRight, Ta as headUnsafe, Ti as fiberInterruptAll, To as isSome, U as forEach, Ui as succeed$4, Ut as succeed$3, V as fnUntraced, W as forever, Wi as succeedNone, Wt as succeedNone$1, X as gen, Xn as done, Yi as void_$1, Yn as die$2, Yo as PipeInspectableProto, Zo as args, Zs as isString$1, _a as lastNonEmpty, _t as onError, a as andThen, ac as constVoid, ai as isFailure$1, as as withFiber$1, bi as exitInterrupt$1, bt as onInterrupt, c as as, ci as void_$2, cn as whileLoop, es as exitFail, fa as isArrayNonEmpty, fi as andThen$1, gt as never, hc as pipeArguments, ii as isExit$1, is as makePrimitive, j as ensuring$2, ja as isFailure, ki as fiberRunIn, ko as none, lc as identity, ln as withFiber, m as catchCause$1, ma as isReadonlyArrayNonEmpty, mi as callback$2, mt as matchCauseEffect, ni as failCause$4, no as get$1, ns as exitSucceed, oc as constant, oi as isSuccess, on as void_, p as callback$1, pi as asSome, pn as yieldNow, ps as toJson, q as forkScoped, qi as uninterruptibleMask, qo as Done, qr as interruptWith, qt as sync, rc as constTrue, ri as interrupt$1, rs as isExit, sc as dual, si as succeed$2, sn as when, st as map$2, t as acquireRelease, ti as fail$5, tn as uninterruptible, ts as exitFailCause, u as asVoid, ua as fromIterable$1, vt as onExit$1, w as catch_$2, wi as fiberInterrupt, wt as promise, xa as of, xi as exitVoid, ya as map$3, yt as onExitPrimitive$1, z as flatten$1, zr as makeUnsafe$2, zt as scopedWith } from "./Effect-zUBunSAW.mjs";
2
+ //#region node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/count.js
3
3
  const normalize = (n) => n > 0 ? Math.floor(n) : 0;
4
4
  const normalizeNonEmpty = (n) => Math.max(1, normalize(n));
5
5
  //#endregion
6
- //#region node_modules/.pnpm/effect@4.0.4/node_modules/effect/dist/Number.js
6
+ //#region node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/Number.js
7
7
  const Number$1 = globalThis.Number;
8
8
  const nextPow2 = (n) => {
9
9
  const nextPow = Math.ceil(Math.log(n) / Math.log(2));
@@ -22,13 +22,13 @@ const round = dual(2, (self, precision) => {
22
22
  return Math.round(self * factor) / factor;
23
23
  });
24
24
  //#endregion
25
- //#region node_modules/.pnpm/effect@4.0.4/node_modules/effect/dist/String.js
25
+ //#region node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/String.js
26
26
  const String = globalThis.String;
27
27
  const isString = isString$1;
28
28
  const toLowerCase = (self) => self.toLowerCase();
29
29
  const camelToSnake = (self) => self.replace(/([A-Z])/g, "_$1").toLowerCase();
30
30
  //#endregion
31
- //#region node_modules/.pnpm/effect@4.0.4/node_modules/effect/dist/Fiber.js
31
+ //#region node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/Fiber.js
32
32
  const await_ = fiberAwait;
33
33
  const join = fiberJoin;
34
34
  const interrupt = fiberInterrupt;
@@ -38,11 +38,11 @@ const interruptAllAs = fiberInterruptAllAs;
38
38
  const getCurrent = getCurrentFiber;
39
39
  const runIn = fiberRunIn;
40
40
  //#endregion
41
- //#region node_modules/.pnpm/effect@4.0.4/node_modules/effect/dist/Latch.js
41
+ //#region node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/Latch.js
42
42
  const makeUnsafe$1 = makeLatchUnsafe;
43
43
  const make$5 = makeLatch;
44
44
  //#endregion
45
- //#region node_modules/.pnpm/effect@4.0.4/node_modules/effect/dist/MutableRef.js
45
+ //#region node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/MutableRef.js
46
46
  const TypeId$5 = "~effect/MutableRef";
47
47
  const MutableRefProto = {
48
48
  [TypeId$5]: TypeId$5,
@@ -66,7 +66,7 @@ const set = dual(2, (self, value) => {
66
66
  });
67
67
  const update = dual(2, (self, f) => set(self, f(get(self))));
68
68
  //#endregion
69
- //#region node_modules/.pnpm/effect@4.0.4/node_modules/effect/dist/MutableList.js
69
+ //#region node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/MutableList.js
70
70
  const Empty = Symbol.for("effect/MutableList/Empty");
71
71
  const make$3 = () => ({
72
72
  head: void 0,
@@ -190,7 +190,7 @@ const filter$1 = (self, f) => {
190
190
  };
191
191
  const remove = (self, value) => filter$1(self, (v) => v !== value);
192
192
  //#endregion
193
- //#region node_modules/.pnpm/effect@4.0.4/node_modules/effect/dist/PubSub.js
193
+ //#region node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/PubSub.js
194
194
  const TypeId$4 = "~effect/PubSub";
195
195
  const SubscriptionTypeId = "~effect/PubSub/Subscription";
196
196
  const make$2 = (options) => sync(() => makePubSubUnsafe(options.atomicPubSub(), new Map(), makeUnsafe$2(), makeUnsafe$1(false), make$4(false), options.strategy(), make$4(none())));
@@ -1176,7 +1176,7 @@ const emptyReplayWindow = {
1176
1176
  close: () => void 0
1177
1177
  };
1178
1178
  //#endregion
1179
- //#region node_modules/.pnpm/effect@4.0.4/node_modules/effect/dist/Queue.js
1179
+ //#region node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/Queue.js
1180
1180
  const TypeId$3 = "~effect/Queue";
1181
1181
  const EnqueueTypeId = "~effect/Queue/Enqueue";
1182
1182
  const DequeueTypeId = "~effect/Queue/Dequeue";
@@ -1440,7 +1440,7 @@ const finalize = (self, exit) => {
1440
1440
  openState.awaiters.clear();
1441
1441
  };
1442
1442
  //#endregion
1443
- //#region node_modules/.pnpm/effect@4.0.4/node_modules/effect/dist/Semaphore.js
1443
+ //#region node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/Semaphore.js
1444
1444
  const makeUnsafe = (permits) => new SemaphoreImpl(permits);
1445
1445
  const waitForPermits = (self, n, effect) => callback$2((resume) => {
1446
1446
  if (self.free >= n) return resume(effect);
@@ -1531,10 +1531,10 @@ var SemaphoreImpl = class {
1531
1531
  };
1532
1532
  const make = (permits) => sync$1(() => new SemaphoreImpl(permits));
1533
1533
  //#endregion
1534
- //#region node_modules/.pnpm/effect@4.0.4/node_modules/effect/dist/Take.js
1534
+ //#region node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/Take.js
1535
1535
  const toPull = (take) => isExit$1(take) ? isSuccess(take) ? done(take.value) : take : succeed$3(take);
1536
1536
  //#endregion
1537
- //#region node_modules/.pnpm/effect@4.0.4/node_modules/effect/dist/Channel.js
1537
+ //#region node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/Channel.js
1538
1538
  const TypeId$2 = "~effect/Channel";
1539
1539
  const isChannel = (u) => hasProperty(u, TypeId$2);
1540
1540
  const ChannelProto = {
@@ -1574,15 +1574,15 @@ const fromIteratorArray = (iterator, chunkSize = DefaultChunkSize) => {
1574
1574
  const size = normalizeNonEmpty(chunkSize);
1575
1575
  return fromPull$1(sync(() => {
1576
1576
  const iter = iterator();
1577
- let done$14 = none();
1577
+ let done$15 = none();
1578
1578
  return suspend$2(() => {
1579
- if (done$14._tag === "Some") return done(done$14.value);
1579
+ if (done$15._tag === "Some") return done(done$15.value);
1580
1580
  const buffer = [];
1581
1581
  while (buffer.length < size) {
1582
1582
  const state = iter.next();
1583
1583
  if (state.done) {
1584
1584
  if (buffer.length === 0) return done(state.value);
1585
- done$14 = some(state.value);
1585
+ done$15 = some(state.value);
1586
1586
  break;
1587
1587
  }
1588
1588
  buffer.push(state.value);
@@ -1639,7 +1639,7 @@ const map$1 = dual(2, (self, f) => transformPull$1(self, (pull) => sync(() => {
1639
1639
  return map$2(pull, (o) => f(o, i++));
1640
1640
  })));
1641
1641
  const mapDone = dual(2, (self, f) => mapDoneEffect(self, (o) => succeed$3(f(o))));
1642
- const mapDoneEffect = dual(2, (self, f) => transformPull$1(self, (pull) => succeed$3(catchDone(pull, (done$12) => flatMap$2(f(done$12), done)))));
1642
+ const mapDoneEffect = dual(2, (self, f) => transformPull$1(self, (pull) => succeed$3(catchDone(pull, (done$13) => flatMap$2(f(done$13), done)))));
1643
1643
  const concurrencyIsSequential = (concurrency) => concurrency === void 0 || concurrency !== "unbounded" && concurrency <= 1;
1644
1644
  const mapEffect$1 = dual((args) => isChannel(args[0]), (self, f, options) => concurrencyIsSequential(options?.concurrency) ? mapEffectSequential(self, f) : mapEffectConcurrent(self, f, options));
1645
1645
  const mapEffectSequential = (self, f) => fromTransform((upstream, scope) => {
@@ -1708,7 +1708,7 @@ const flatMapSequential = (self, f) => fromTransform((upstream, scope) => map$2(
1708
1708
  return suspend$2(() => childPull ?? makePull);
1709
1709
  }));
1710
1710
  const flatMapConcurrent = (self, f, options) => self.pipe(map$1(f), mergeAll$1(options));
1711
- const flattenArray = (self) => transformPull$1(self, (pull) => {
1711
+ const flattenArray$1 = (self) => transformPull$1(self, (pull) => {
1712
1712
  let array;
1713
1713
  let index = 0;
1714
1714
  const pump = suspend$2(function loop() {
@@ -1853,7 +1853,7 @@ const merge$1 = dual((args) => isChannel(args[0]) && isChannel(args[1]), (left,
1853
1853
  const splitLines$1 = () => fromTransform((upstream, _scope) => sync(() => {
1854
1854
  let stringBuilder = "";
1855
1855
  let midCRLF = false;
1856
- let done$11 = none();
1856
+ let done$12 = none();
1857
1857
  function splitLinesArray(chunk) {
1858
1858
  const chunkBuilder = [];
1859
1859
  function pushLine(segment) {
@@ -1898,12 +1898,12 @@ const splitLines$1 = () => fromTransform((upstream, _scope) => sync(() => {
1898
1898
  return isReadonlyArrayNonEmpty(chunkBuilder) ? chunkBuilder : null;
1899
1899
  }
1900
1900
  const pullOrFlush = suspend$2(() => {
1901
- if (done$11._tag === "Some") return done(done$11.value);
1901
+ if (done$12._tag === "Some") return done(done$12.value);
1902
1902
  return matchEffect(upstream, {
1903
1903
  onSuccess: loop,
1904
1904
  onFailure: failCause$3,
1905
1905
  onDone: (leftover) => {
1906
- done$11 = some(leftover);
1906
+ done$12 = some(leftover);
1907
1907
  if (stringBuilder.length > 0) {
1908
1908
  const last = stringBuilder;
1909
1909
  stringBuilder = "";
@@ -1967,7 +1967,7 @@ const toPubSubTake$1 = dual(2, fnUntraced(function* (self, options) {
1967
1967
  return pubsub;
1968
1968
  }));
1969
1969
  //#endregion
1970
- //#region node_modules/.pnpm/effect@4.0.4/node_modules/effect/dist/internal/stream.js
1970
+ //#region node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/stream.js
1971
1971
  const TypeId$1 = "~effect/Stream";
1972
1972
  const streamVariance = {
1973
1973
  _R: identity,
@@ -1985,7 +1985,7 @@ Stream.prototype = {
1985
1985
  };
1986
1986
  const fromChannel$1 = (channel) => new Stream(channel);
1987
1987
  //#endregion
1988
- //#region node_modules/.pnpm/effect@4.0.4/node_modules/effect/dist/Stream.js
1988
+ //#region node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/Stream.js
1989
1989
  const TypeId = "~effect/Stream";
1990
1990
  const isStream = (u) => hasProperty(u, TypeId);
1991
1991
  const fromChannel = fromChannel$1;
@@ -2013,11 +2013,12 @@ const map = dual(2, (self, f) => suspend(() => {
2013
2013
  return fromChannel(map$1(self.channel, map$3((o) => f(o, i++))));
2014
2014
  }));
2015
2015
  const mapArray = dual(2, (self, f) => fromChannel(map$1(self.channel, f)));
2016
- const mapEffect = dual((args) => isStream(args[0]), (self, f, options) => self.channel.pipe(flattenArray, mapEffect$1(f, options), map$1(of), fromChannel));
2016
+ const mapEffect = dual((args) => isStream(args[0]), (self, f, options) => self.channel.pipe(flattenArray$1, mapEffect$1(f, options), map$1(of), fromChannel));
2017
2017
  const mapArrayEffect = dual(2, (self, f) => fromChannel(mapEffect$1(self.channel, f)));
2018
2018
  const tap = dual((args) => isStream(args[0]), (self, f, options) => mapEffect(self, (a) => as(f(a), a), options));
2019
- const flatMap = dual((args) => isStream(args[0]), (self, f, options) => self.channel.pipe(flattenArray, flatMap$1((a) => f(a).channel, options), fromChannel));
2019
+ const flatMap = dual((args) => isStream(args[0]), (self, f, options) => self.channel.pipe(flattenArray$1, flatMap$1((a) => f(a).channel, options), fromChannel));
2020
2020
  const flatten = dual((args) => isStream(args[0]), (self, options) => flatMap(self, identity, options));
2021
+ const flattenArray = (self) => fromChannel(flattenArray$1(self.channel));
2021
2022
  const flattenIterable = (self) => flatMap(self, fromIterable);
2022
2023
  const merge = dual((args) => isStream(args[0]) && isStream(args[1]), (self, that, options) => fromChannel(merge$1(toChannel(self), toChannel(that), options)));
2023
2024
  const mergeAll = dual(2, (streams, options) => flatten(fromIterable(streams), options));
@@ -2053,6 +2054,22 @@ const takeUntil = dual((args) => isStream(args[0]), (self, predicate, options) =
2053
2054
  return succeed$3(chunk);
2054
2055
  });
2055
2056
  })));
2057
+ const takeWhile = dual(2, (self, predicate) => transformPull(self, (pull, _scope) => sync(() => {
2058
+ let i = 0;
2059
+ let done$7 = false;
2060
+ const pump = flatMap$2(suspend$2(() => done$7 ? done() : pull), (chunk) => {
2061
+ const out = [];
2062
+ for (let j = 0; j < chunk.length; j++) {
2063
+ if (!predicate(chunk[j], i++)) {
2064
+ done$7 = true;
2065
+ break;
2066
+ }
2067
+ out.push(chunk[j]);
2068
+ }
2069
+ return isReadonlyArrayNonEmpty(out) ? succeed$3(out) : done$7 ? done() : pump;
2070
+ });
2071
+ return pump;
2072
+ })));
2056
2073
  const drop = dual(2, (self, n) => {
2057
2074
  const count = normalize(n);
2058
2075
  if (count === 0) return self;
@@ -2122,6 +2139,6 @@ const mkString = (self) => runFold$1(self.channel, () => "", (acc, chunk) => acc
2122
2139
  const runIntoPubSub = dual((args) => isStream(args[0]), (self, pubsub, options) => runIntoPubSubArray(self.channel, pubsub, options));
2123
2140
  const toPubSubTake = dual(2, (self, options) => toPubSubTake$1(self.channel, options));
2124
2141
  //#endregion
2125
- export { takeUntil as $, mapArrayEffect as A, makeUnsafe$1 as At, provideService as B, toLowerCase as Bt, fromPubSub as C, shutdownUnsafe as Ct, isStream as D, make$4 as Dt, fromReadableStream as E, unbounded$1 as Et, mkString as F, interruptAllAs as Ft, runForEach as G, runCollect as H, round as Ht, onEnd as I, interruptAs as It, runLast as J, runForEachArray as K, orDie as L, join as Lt, mapError as M, getCurrent as Mt, merge as N, interrupt as Nt, map as O, set as Ot, mergeAll as P, interruptAll as Pt, take as Q, pipeThroughChannel as R, runIn as Rt, fromIterable as S, poll as St, fromQueue as T, unbounded as Tt, runDrain as U, normalizeNonEmpty as Ut, run as V, parse as Vt, runFold as W, succeed as X, splitLines as Y, suspend as Z, flattenIterable as _, make$1 as _t, catchTags as a, mapDone as at, fromChannel as b, offerAllUnsafe as bt, die as c, unwrap$1 as ct, ensuring as d, bounded as dt, tap as et, fail as f, end as ft, flatMap as g, failCauseUnsafe as gt, filterMap as h, failCause$2 as ht, catchReason as i, map$1 as it, mapEffect as j, await_ as jt, mapArray as k, update as kt, drop as l, make as lt, filter as m, fail$2 as mt, callback as n, unwrap as nt, catch_ as o, pipeTo as ot, failCause as p, endUnsafe as pt, runIntoPubSub as q, catchIf as r, fromTransform as rt, decodeText as s, toTransform as st, broadcast as t, transduce as tt, empty as u, makeUnsafe as ut, fromArray as v, offer as vt, fromPull as w, take$1 as wt, fromEffect as x, offerUnsafe as xt, fromArrayEffect as y, offerAll as yt, provideContext as z, camelToSnake as zt };
2142
+ export { takeUntil as $, mapArrayEffect as A, await_ as At, provideService as B, parse as Bt, fromPubSub as C, take$1 as Ct, isStream as D, set as Dt, fromReadableStream as E, make$4 as Et, mkString as F, interruptAs as Ft, runForEach as G, runCollect as H, normalizeNonEmpty as Ht, onEnd as I, join as It, runLast as J, runForEachArray as K, orDie as L, runIn as Lt, mapError as M, interrupt as Mt, merge as N, interruptAll as Nt, map as O, update as Ot, mergeAll as P, interruptAllAs as Pt, take as Q, pipeThroughChannel as R, camelToSnake as Rt, fromEffect as S, shutdownUnsafe as St, fromQueue as T, unbounded$1 as Tt, runDrain as U, run as V, round as Vt, runFold as W, succeed as X, splitLines as Y, suspend as Z, flattenArray as _, offer as _t, catchTags as a, mapDone as at, fromArrayEffect as b, offerUnsafe as bt, die as c, make as ct, ensuring as d, end as dt, takeWhile as et, fail as f, endUnsafe as ft, flatMap as g, make$1 as gt, filterMap as h, failCauseUnsafe as ht, catchReason as i, fromTransform as it, mapEffect as j, getCurrent as jt, mapArray as k, makeUnsafe$1 as kt, drop as l, makeUnsafe as lt, filter as m, failCause$2 as mt, callback as n, transduce as nt, catch_ as o, toTransform as ot, failCause as p, fail$2 as pt, runIntoPubSub as q, catchIf as r, unwrap as rt, decodeText as s, unwrap$1 as st, broadcast as t, tap as tt, empty as u, bounded as ut, flattenIterable as v, offerAll as vt, fromPull as w, unbounded as wt, fromChannel as x, poll as xt, fromArray as y, offerAllUnsafe as yt, provideContext as z, toLowerCase as zt };
2126
2143
 
2127
- //# sourceMappingURL=Stream-DEu2tfCV.mjs.map
2144
+ //# sourceMappingURL=Stream-BvmRbTMu.mjs.map