clanka 0.8.4 → 0.8.5
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/AgentSkills.test.js +1 -0
- package/dist/AgentSkills.test.js.map +1 -1
- package/dist/AgentTools.d.ts.map +1 -1
- package/dist/AgentTools.js +2 -1
- package/dist/AgentTools.js.map +1 -1
- package/dist/Compaction.test.js +1 -0
- package/dist/Compaction.test.js.map +1 -1
- package/dist/bin/{Effect-BmOuzEIp.mjs → Effect-BEUn4I5E.mjs} +145 -122
- package/dist/bin/Effect-BEUn4I5E.mjs.map +1 -0
- package/dist/bin/{McpClient-CLpFJSre.mjs → McpClient-C0FVuDj2.mjs} +218 -62
- package/dist/bin/McpClient-C0FVuDj2.mjs.map +1 -0
- package/dist/bin/{OutputFormatter-C_gdNUl1.mjs → OutputFormatter-DffD5oxX.mjs} +8 -8
- package/dist/bin/OutputFormatter-DffD5oxX.mjs.map +1 -0
- package/dist/bin/{Schema-C7W9nQug.mjs → Schema-CjUGw2Xh.mjs} +39 -38
- package/dist/bin/Schema-CjUGw2Xh.mjs.map +1 -0
- package/dist/bin/{SemanticSearch-cqSnq90g.mjs → SemanticSearch-CFB73IPb.mjs} +74 -62
- package/dist/bin/SemanticSearch-CFB73IPb.mjs.map +1 -0
- package/dist/bin/{Stream-BI6Fx9yq.mjs → Stream-Cu6P7ZHo.mjs} +23 -23
- package/dist/bin/{Stream-BI6Fx9yq.mjs.map → Stream-Cu6P7ZHo.mjs.map} +1 -1
- package/dist/bin/cli.mjs +267 -188
- package/dist/bin/cli.mjs.map +1 -1
- package/package.json +14 -14
- package/src/AgentSkills.test.ts +1 -0
- package/src/AgentTools.ts +2 -1
- package/src/Compaction.test.ts +1 -0
- package/dist/bin/Effect-BmOuzEIp.mjs.map +0 -1
- package/dist/bin/McpClient-CLpFJSre.mjs.map +0 -1
- package/dist/bin/OutputFormatter-C_gdNUl1.mjs.map +0 -1
- package/dist/bin/Schema-C7W9nQug.mjs.map +0 -1
- package/dist/bin/SemanticSearch-cqSnq90g.mjs.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { $
|
|
2
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
1
|
+
import { $t as uninterruptible, Bi as fromIterable$1, Br as isSuccess, Ci as succeed$4, Cn as filterDone, Cs as constTrue, D as contextWith, Di as uninterruptibleMask, Do as exitFailCause, Ds as dual, Dt as provideService$2, E as context, Ei as sync$1, Eo as exitFail, Es as constant, Et as provideContext$2, Fn as die$2, Fr as fail$5, Fs as pipeArguments, G as forkChild, Gt as sync, Hi as isArrayNonEmpty, Hr as void_$2, Ht as succeed$3, In as done, Ir as failCause$4, Ji as map$3, Jr as callback$2, K as forkIn, Kr as andThen$1, Kt as tap$1, L as flatMap$2, Lo as toJson, Lr as interrupt$1, M as exit, N as fail$3, Nr as makeUnsafe$3, Oo as exitSucceed, Or as doneUnsafe, Ot as raceFirst, P as failCause$3, Pt as runForkWith, Q as interrupt$2, Qa as isSome, R as flatMapEager, Rr as isExit, Sn as doneExitFromCause, So as PipeInspectableProto, Sr as provide, Ti as suspend$3, Tn as matchEffect, To as causeFail, Ts as constVoid, U as forEach, V as fnUntraced, Vr as succeed$2, W as forever, Wi as isReadonlyArrayNonEmpty, Wt as suspend$2, X as gen, Xi as of, Xt as tryPromise, _r as addFinalizerExit, _s as isString$1, _t as onError, a as andThen, aa as isFailure, ai as fiberInterruptAll, an as when, ao as some, bo as Done, bt as onInterrupt, c as as, ci as fiberJoin, dn as yieldNow, ea as headUnsafe, ei as exitInterrupt$1, fi as getCurrentFiber, gi as makeLatchUnsafe, gr as addFinalizer, gt as never, hi as makeLatch, hr as Scope, ii as fiberInterrupt, in as void_, j as ensuring$2, ka as get$1, ki as void_$1, ko as withFiber$1, kr as interruptWith, ks as identity, la as succeed$5, li as fiberRunIn, m as catchCause$1, mt as matchCauseEffect, ni as exitZipRight, no as none, oa as isSuccess$1, oi as fiberInterruptAllAs, on as whileLoop, p as callback$1, q as forkScoped, qr as asSome, ri as fiberAwait, si as fiberInterruptAs, sn as withFiber, st as map$2, t as acquireRelease, ta as fail$4, ti as exitVoid, ts as hasProperty, u as asVoid, ui as flatMap$3, vr as close, vs as isTagged, vt as onExit$1, w as catch_$2, wi as succeedNone, wn as isDoneCause, wt as promise, xi as onExitPrimitive, xn as catchDone, xr as makeUnsafe$2, yr as forkUnsafe, z as flatten$1, zn as findError, zt as scopedWith } from "./Effect-BEUn4I5E.mjs";
|
|
2
|
+
//#region node_modules/.pnpm/effect@4.0.1/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.
|
|
6
|
+
//#region node_modules/.pnpm/effect@4.0.1/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.
|
|
25
|
+
//#region node_modules/.pnpm/effect@4.0.1/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.
|
|
31
|
+
//#region node_modules/.pnpm/effect@4.0.1/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.
|
|
41
|
+
//#region node_modules/.pnpm/effect@4.0.1/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.
|
|
45
|
+
//#region node_modules/.pnpm/effect@4.0.1/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.
|
|
69
|
+
//#region node_modules/.pnpm/effect@4.0.1/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.
|
|
193
|
+
//#region node_modules/.pnpm/effect@4.0.1/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())));
|
|
@@ -1167,7 +1167,7 @@ const emptyReplayWindow = {
|
|
|
1167
1167
|
close: () => void 0
|
|
1168
1168
|
};
|
|
1169
1169
|
//#endregion
|
|
1170
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
1170
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Queue.js
|
|
1171
1171
|
const TypeId$3 = "~effect/Queue";
|
|
1172
1172
|
const EnqueueTypeId = "~effect/Queue/Enqueue";
|
|
1173
1173
|
const DequeueTypeId = "~effect/Queue/Dequeue";
|
|
@@ -1422,7 +1422,7 @@ const finalize = (self, exit) => {
|
|
|
1422
1422
|
openState.awaiters.clear();
|
|
1423
1423
|
};
|
|
1424
1424
|
//#endregion
|
|
1425
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
1425
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Semaphore.js
|
|
1426
1426
|
const makeUnsafe = (permits) => new SemaphoreImpl(permits);
|
|
1427
1427
|
const waitForPermits = (self, n, effect) => callback$2((resume) => {
|
|
1428
1428
|
if (self.free >= n) return resume(effect);
|
|
@@ -1513,10 +1513,10 @@ var SemaphoreImpl = class {
|
|
|
1513
1513
|
};
|
|
1514
1514
|
const make = (permits) => sync$1(() => new SemaphoreImpl(permits));
|
|
1515
1515
|
//#endregion
|
|
1516
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
1516
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Take.js
|
|
1517
1517
|
const toPull = (take) => isExit(take) ? isSuccess(take) ? done(take.value) : take : succeed$3(take);
|
|
1518
1518
|
//#endregion
|
|
1519
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
1519
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Channel.js
|
|
1520
1520
|
const TypeId$2 = "~effect/Channel";
|
|
1521
1521
|
const isChannel = (u) => hasProperty(u, TypeId$2);
|
|
1522
1522
|
const ChannelProto = {
|
|
@@ -1938,7 +1938,7 @@ const toPubSubTake$1 = dual(2, fnUntraced(function* (self, options) {
|
|
|
1938
1938
|
return pubsub;
|
|
1939
1939
|
}));
|
|
1940
1940
|
//#endregion
|
|
1941
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
1941
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/internal/stream.js
|
|
1942
1942
|
const TypeId$1 = "~effect/Stream";
|
|
1943
1943
|
const streamVariance = {
|
|
1944
1944
|
_R: identity,
|
|
@@ -1956,7 +1956,7 @@ Stream.prototype = {
|
|
|
1956
1956
|
};
|
|
1957
1957
|
const fromChannel$1 = (channel) => new Stream(channel);
|
|
1958
1958
|
//#endregion
|
|
1959
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
1959
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Stream.js
|
|
1960
1960
|
const TypeId = "~effect/Stream";
|
|
1961
1961
|
const isStream = (u) => hasProperty(u, TypeId);
|
|
1962
1962
|
const fromChannel = fromChannel$1;
|
|
@@ -2013,11 +2013,11 @@ const take = dual(2, (self, n) => {
|
|
|
2013
2013
|
});
|
|
2014
2014
|
const takeUntil = dual((args) => isStream(args[0]), (self, predicate, options) => transformPull(self, (pull, _scope) => sync(() => {
|
|
2015
2015
|
let i = 0;
|
|
2016
|
-
let done$
|
|
2017
|
-
return flatMap$2(suspend$2(() => done$
|
|
2016
|
+
let done$7 = false;
|
|
2017
|
+
return flatMap$2(suspend$2(() => done$7 ? done() : pull), (chunk) => {
|
|
2018
2018
|
const index = chunk.findIndex((a) => predicate(a, i++));
|
|
2019
2019
|
if (index >= 0) {
|
|
2020
|
-
done$
|
|
2020
|
+
done$7 = true;
|
|
2021
2021
|
const arr = chunk.slice(0, options?.excludeLast ? index : index + 1);
|
|
2022
2022
|
return isReadonlyArrayNonEmpty(arr) ? succeed$3(arr) : done();
|
|
2023
2023
|
}
|
|
@@ -2039,7 +2039,7 @@ const drop = dual(2, (self, n) => {
|
|
|
2039
2039
|
}));
|
|
2040
2040
|
});
|
|
2041
2041
|
const transduce = dual(2, (self, sink) => transformPull(self, (upstream, scope) => sync(() => {
|
|
2042
|
-
let done$
|
|
2042
|
+
let done$5;
|
|
2043
2043
|
let leftover;
|
|
2044
2044
|
const upstreamWithLeftover = suspend$2(() => {
|
|
2045
2045
|
if (leftover !== void 0) {
|
|
@@ -2049,14 +2049,14 @@ const transduce = dual(2, (self, sink) => transformPull(self, (upstream, scope)
|
|
|
2049
2049
|
}
|
|
2050
2050
|
return upstream;
|
|
2051
2051
|
}).pipe(catch_$2((error) => {
|
|
2052
|
-
done$
|
|
2052
|
+
done$5 = fail$5(error);
|
|
2053
2053
|
return done();
|
|
2054
2054
|
}));
|
|
2055
2055
|
const pull = map$2(suspend$2(() => sink.transform(upstreamWithLeftover, scope)), ([value, leftover_]) => {
|
|
2056
2056
|
leftover = leftover_;
|
|
2057
2057
|
return of(value);
|
|
2058
2058
|
});
|
|
2059
|
-
return suspend$2(() => done$
|
|
2059
|
+
return suspend$2(() => done$5 ? done$5 : pull);
|
|
2060
2060
|
})));
|
|
2061
2061
|
const broadcast = dual(2, (self, options) => map$2(toPubSubTake(self, options), fromPubSubTake));
|
|
2062
2062
|
const pipeThroughChannel = dual(2, (self, channel) => fromChannel(pipeTo(self.channel, channel)));
|
|
@@ -2092,6 +2092,6 @@ const mkString = (self) => runFold$1(self.channel, () => "", (acc, chunk) => acc
|
|
|
2092
2092
|
const runIntoPubSub = dual((args) => isStream(args[0]), (self, pubsub, options) => runIntoPubSubArray(self.channel, pubsub, options));
|
|
2093
2093
|
const toPubSubTake = dual(2, (self, options) => toPubSubTake$1(self.channel, options));
|
|
2094
2094
|
//#endregion
|
|
2095
|
-
export { tap as $, mapArrayEffect as A,
|
|
2095
|
+
export { tap 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, splitLines 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, takeUntil as Q, pipeThroughChannel as R, camelToSnake as Rt, fromIterable as S, shutdownUnsafe as St, fromQueue as T, unbounded$1 as Tt, runDrain as U, run as V, round 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, 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, 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 as wt, fromEffect as x, poll as xt, fromArrayEffect as y, offerAllUnsafe as yt, provideContext as z, toLowerCase as zt };
|
|
2096
2096
|
|
|
2097
|
-
//# sourceMappingURL=Stream-
|
|
2097
|
+
//# sourceMappingURL=Stream-Cu6P7ZHo.mjs.map
|