clanka 0.8.1 → 0.8.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/dist/Acp.d.ts.map +1 -1
- package/dist/Acp.js +3 -3
- package/dist/Acp.js.map +1 -1
- package/dist/Acp.test.js +6 -5
- package/dist/Acp.test.js.map +1 -1
- package/dist/SemanticSearch.js +1 -1
- package/dist/SemanticSearch.js.map +1 -1
- package/dist/bin/{Effect-DvI8YVcR.mjs → Effect-BCeySOy1.mjs} +248 -247
- package/dist/bin/Effect-BCeySOy1.mjs.map +1 -0
- package/dist/bin/{McpClient-CM7u8ZVd.mjs → McpClient-DP4jlaD1.mjs} +3 -3
- package/dist/bin/{McpClient-CM7u8ZVd.mjs.map → McpClient-DP4jlaD1.mjs.map} +1 -1
- package/dist/bin/{OutputFormatter-BpggeGvI.mjs → OutputFormatter-Ch8yFytV.mjs} +3 -3
- package/dist/bin/{OutputFormatter-BpggeGvI.mjs.map → OutputFormatter-Ch8yFytV.mjs.map} +1 -1
- package/dist/bin/{Schema-DyJ738Wp.mjs → Schema-C9JQ5hI0.mjs} +36 -36
- package/dist/bin/Schema-C9JQ5hI0.mjs.map +1 -0
- package/dist/bin/{SemanticSearch-BHUGFT1y.mjs → SemanticSearch-BJGnYhFt.mjs} +19 -19
- package/dist/bin/{SemanticSearch-BHUGFT1y.mjs.map → SemanticSearch-BJGnYhFt.mjs.map} +1 -1
- package/dist/bin/{Stream-Dg7AGCgJ.mjs → Stream-CgH3SuLu.mjs} +16 -16
- package/dist/bin/{Stream-Dg7AGCgJ.mjs.map → Stream-CgH3SuLu.mjs.map} +1 -1
- package/dist/bin/cli.mjs +191 -191
- package/dist/bin/cli.mjs.map +1 -1
- package/package.json +7 -7
- package/src/Acp.test.ts +6 -5
- package/src/Acp.ts +6 -3
- package/src/SemanticSearch.ts +1 -1
- package/dist/bin/Effect-DvI8YVcR.mjs.map +0 -1
- package/dist/bin/Schema-DyJ738Wp.mjs.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { $i as headUnsafe, $r as exitInterrupt$1, A as ensuring$2, B as fnUntraced, Br as succeed$3, C as catch_$2, Ci as succeedNone, Cn as isDoneCause, Ct as promise, Do as exitSucceed, Dr as doneUnsafe, Dt as raceFirst, E as contextWith, Ei as uninterruptibleMask, Eo as exitFailCause, Es as dual, Et as provideService$2, Fn as done, Fr as failCause$4, G as forkIn, Gr as andThen$1, Gt as tap$1, H as forEach, I as flatMap$2, Io as toJson, Ir as interrupt$1, K as forkScoped, Kr as asSome, L as flatMapEager, Lr as isExit, M as fail$3, Mr as makeUnsafe$3, N as failCause$3, Nt as runForkWith, Oa as get$1, Oi as void_$1, Oo as withFiber$1, Or as interruptWith, Os as identity, Pn as die$2, Pr as fail$5, Ps as pipeArguments, Qt as uninterruptible, R as flatten$1, Rn as findError, Rt as scopedWith, Si as succeed$4, Sn as filterDone, Ss as constTrue, T as context, Ti as sync$1, To as exitFail, Tr as _await, Ts as constant, Tt as provideContext$2, U as forever, Ui as isReadonlyArrayNonEmpty, Ut as suspend$2, Vi as isArrayNonEmpty, Vr as void_$2, Vt as succeed$2, W as forkChild, Wt as sync, Y as gen, Yi as of, Yt as tryPromise, Z as interrupt$2, _r as close, _s as isTagged, _t as onExit$1, a as andThen, aa as isSuccess$1, ai as fiberInterruptAllAs, an as whileLoop, bn as catchDone, br as makeUnsafe$2, c as as, ca as succeed$5, ci as fiberRunIn, di as getCurrentFiber, ea as fail$4, ei as exitVoid, es as hasProperty, gr as addFinalizerExit, gs as isString$1, gt as onError, hi as makeLatchUnsafe, hr as addFinalizer, ht as never, ia as isFailure, ii as fiberInterruptAll, in as when, io as some, j as exit, li as flatMap$3, m as catchCause$1, mi as makeLatch, mr as Scope, ni as fiberAwait, oi as fiberInterruptAs, on as withFiber, ot as map$2, pt as matchCauseEffect, qi as map$3, qr as callback$1, ri as fiberInterrupt, rn as void_, si as fiberJoin, t as acquireRelease, ti as exitZipRight, to as none, u as asVoid, un as yieldNow, vr as forkUnsafe, wi as suspend$3, wn as matchEffect, wo as causeFail, ws as constVoid, xi as scopeFinalizerCountUnsafe, xn as doneExitFromCause, xo as PipeInspectableProto, xr as provide, yi as onExitPrimitive, yo as Done, yt as onInterrupt, zi as fromIterable$1, zr as isSuccess } from "./Effect-
|
|
2
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
1
|
+
import { $i as headUnsafe, $r as exitInterrupt$1, A as ensuring$2, B as fnUntraced, Br as succeed$3, C as catch_$2, Ci as succeedNone, Cn as isDoneCause, Ct as promise, Do as exitSucceed, Dr as doneUnsafe, Dt as raceFirst, E as contextWith, Ei as uninterruptibleMask, Eo as exitFailCause, Es as dual, Et as provideService$2, Fn as done, Fr as failCause$4, G as forkIn, Gr as andThen$1, Gt as tap$1, H as forEach, I as flatMap$2, Io as toJson, Ir as interrupt$1, K as forkScoped, Kr as asSome, L as flatMapEager, Lr as isExit, M as fail$3, Mr as makeUnsafe$3, N as failCause$3, Nt as runForkWith, Oa as get$1, Oi as void_$1, Oo as withFiber$1, Or as interruptWith, Os as identity, Pn as die$2, Pr as fail$5, Ps as pipeArguments, Qt as uninterruptible, R as flatten$1, Rn as findError, Rt as scopedWith, Si as succeed$4, Sn as filterDone, Ss as constTrue, T as context, Ti as sync$1, To as exitFail, Tr as _await, Ts as constant, Tt as provideContext$2, U as forever, Ui as isReadonlyArrayNonEmpty, Ut as suspend$2, Vi as isArrayNonEmpty, Vr as void_$2, Vt as succeed$2, W as forkChild, Wt as sync, Y as gen, Yi as of, Yt as tryPromise, Z as interrupt$2, _r as close, _s as isTagged, _t as onExit$1, a as andThen, aa as isSuccess$1, ai as fiberInterruptAllAs, an as whileLoop, bn as catchDone, br as makeUnsafe$2, c as as, ca as succeed$5, ci as fiberRunIn, di as getCurrentFiber, ea as fail$4, ei as exitVoid, es as hasProperty, gr as addFinalizerExit, gs as isString$1, gt as onError, hi as makeLatchUnsafe, hr as addFinalizer, ht as never, ia as isFailure, ii as fiberInterruptAll, in as when, io as some, j as exit, li as flatMap$3, m as catchCause$1, mi as makeLatch, mr as Scope, ni as fiberAwait, oi as fiberInterruptAs, on as withFiber, ot as map$2, pt as matchCauseEffect, qi as map$3, qr as callback$1, ri as fiberInterrupt, rn as void_, si as fiberJoin, t as acquireRelease, ti as exitZipRight, to as none, u as asVoid, un as yieldNow, vr as forkUnsafe, wi as suspend$3, wn as matchEffect, wo as causeFail, ws as constVoid, xi as scopeFinalizerCountUnsafe, xn as doneExitFromCause, xo as PipeInspectableProto, xr as provide, yi as onExitPrimitive, yo as Done, yt as onInterrupt, zi as fromIterable$1, zr as isSuccess } from "./Effect-BCeySOy1.mjs";
|
|
2
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/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@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
6
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/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@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
25
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/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@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
31
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/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@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
41
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/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@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
45
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/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@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
69
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/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,
|
|
@@ -179,7 +179,7 @@ const filter$1 = (self, f) => {
|
|
|
179
179
|
};
|
|
180
180
|
const remove = (self, value) => filter$1(self, (v) => v !== value);
|
|
181
181
|
//#endregion
|
|
182
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
182
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/PubSub.js
|
|
183
183
|
const TypeId$4 = "~effect/PubSub";
|
|
184
184
|
const SubscriptionTypeId = "~effect/PubSub/Subscription";
|
|
185
185
|
const make$2 = (options) => sync(() => makePubSubUnsafe(options.atomicPubSub(), new Map(), makeUnsafe$2(), makeUnsafe$1(false), make$4(false), options.strategy()));
|
|
@@ -1132,7 +1132,7 @@ const emptyReplayWindow = {
|
|
|
1132
1132
|
close: () => void 0
|
|
1133
1133
|
};
|
|
1134
1134
|
//#endregion
|
|
1135
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
1135
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/Queue.js
|
|
1136
1136
|
const TypeId$3 = "~effect/Queue";
|
|
1137
1137
|
const EnqueueTypeId = "~effect/Queue/Enqueue";
|
|
1138
1138
|
const DequeueTypeId = "~effect/Queue/Dequeue";
|
|
@@ -1416,7 +1416,7 @@ const finalize = (self, exit) => {
|
|
|
1416
1416
|
openState.awaiters.clear();
|
|
1417
1417
|
};
|
|
1418
1418
|
//#endregion
|
|
1419
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
1419
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/Semaphore.js
|
|
1420
1420
|
const makeUnsafe = (permits) => new SemaphoreImpl(permits);
|
|
1421
1421
|
const waitForPermits = (self, n, effect) => callback$1((resume) => {
|
|
1422
1422
|
if (self.free >= n) return resume(effect);
|
|
@@ -1507,10 +1507,10 @@ var SemaphoreImpl = class {
|
|
|
1507
1507
|
};
|
|
1508
1508
|
const make = (permits) => sync$1(() => new SemaphoreImpl(permits));
|
|
1509
1509
|
//#endregion
|
|
1510
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
1510
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/Take.js
|
|
1511
1511
|
const toPull = (take) => isExit(take) ? isSuccess(take) ? done(take.value) : take : succeed$2(take);
|
|
1512
1512
|
//#endregion
|
|
1513
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
1513
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/Channel.js
|
|
1514
1514
|
const TypeId$2 = "~effect/Channel";
|
|
1515
1515
|
const isChannel = (u) => hasProperty(u, TypeId$2);
|
|
1516
1516
|
const ChannelProto = {
|
|
@@ -1930,7 +1930,7 @@ const toPubSubTake$1 = dual(2, fnUntraced(function* (self, options) {
|
|
|
1930
1930
|
return pubsub;
|
|
1931
1931
|
}));
|
|
1932
1932
|
//#endregion
|
|
1933
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
1933
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/internal/stream.js
|
|
1934
1934
|
const TypeId$1 = "~effect/Stream";
|
|
1935
1935
|
const streamVariance = {
|
|
1936
1936
|
_R: identity,
|
|
@@ -1948,7 +1948,7 @@ Stream.prototype = {
|
|
|
1948
1948
|
};
|
|
1949
1949
|
const fromChannel$1 = (channel) => new Stream(channel);
|
|
1950
1950
|
//#endregion
|
|
1951
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
1951
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/Stream.js
|
|
1952
1952
|
const TypeId = "~effect/Stream";
|
|
1953
1953
|
const isStream = (u) => hasProperty(u, TypeId);
|
|
1954
1954
|
const fromChannel = fromChannel$1;
|
|
@@ -2086,4 +2086,4 @@ const toPubSubTake = dual(2, (self, options) => toPubSubTake$1(self.channel, opt
|
|
|
2086
2086
|
//#endregion
|
|
2087
2087
|
export { tap as $, mapArrayEffect as A, getCurrent as At, provideService as B, round as Bt, fromPubSub as C, unbounded as Ct, isStream as D, update as Dt, fromReadableStream as E, set as Et, mkString as F, join as Ft, runForEach as G, runCollect as H, onEnd as I, runIn as It, splitLines as J, runForEachArray as K, orDie as L, camelToSnake as Lt, mapError as M, interruptAll as Mt, merge as N, interruptAllAs as Nt, map as O, makeUnsafe$1 as Ot, mergeAll as P, interruptAs as Pt, takeUntil as Q, pipeThroughChannel as R, toLowerCase as Rt, fromIterable as S, take$1 as St, fromQueue as T, make$4 as Tt, runDrain as U, run as V, normalizeNonEmpty as Vt, runFold as W, suspend as X, succeed as Y, take as Z, flattenIterable as _, offer as _t, catchTags as a, pipeTo as at, fromChannel as b, offerUnsafe as bt, die as c, make as ct, ensuring as d, end as dt, transduce as et, fail as f, endUnsafe as ft, flatMap as g, make$1 as gt, filterMap as h, failCauseUnsafe as ht, catchReason as i, mapDone as it, mapEffect as j, interrupt as jt, mapArray as k, await_ as kt, drop as l, makeUnsafe as lt, filter as m, failCause$2 as mt, callback as n, fromTransform as nt, catch_ as o, toTransform as ot, failCause as p, fail$2 as pt, runIntoPubSub as q, catchIf as r, map$1 as rt, decodeText as s, unwrap$1 as st, broadcast as t, unwrap as tt, empty as u, bounded as ut, fromArray as v, offerAll as vt, fromPull as w, unbounded$1 as wt, fromEffect as x, poll as xt, fromArrayEffect as y, offerAllUnsafe as yt, provideContext as z, parse as zt };
|
|
2088
2088
|
|
|
2089
|
-
//# sourceMappingURL=Stream-
|
|
2089
|
+
//# sourceMappingURL=Stream-CgH3SuLu.mjs.map
|