clanka 0.8.3 → 0.8.4
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/AgentExecutor.d.ts.map +1 -1
- package/dist/AgentExecutor.js +1 -1
- package/dist/AgentExecutor.js.map +1 -1
- package/dist/AgentExecutor.test.d.ts +2 -0
- package/dist/AgentExecutor.test.d.ts.map +1 -0
- package/dist/AgentExecutor.test.js +87 -0
- package/dist/AgentExecutor.test.js.map +1 -0
- package/dist/bin/{Effect-BCeySOy1.mjs → Effect-BmOuzEIp.mjs} +243 -215
- package/dist/bin/Effect-BmOuzEIp.mjs.map +1 -0
- package/dist/bin/{McpClient-DP4jlaD1.mjs → McpClient-CLpFJSre.mjs} +3 -3
- package/dist/bin/{McpClient-DP4jlaD1.mjs.map → McpClient-CLpFJSre.mjs.map} +1 -1
- package/dist/bin/{OutputFormatter-Ch8yFytV.mjs → OutputFormatter-C_gdNUl1.mjs} +3 -3
- package/dist/bin/{OutputFormatter-Ch8yFytV.mjs.map → OutputFormatter-C_gdNUl1.mjs.map} +1 -1
- package/dist/bin/{Schema-C9JQ5hI0.mjs → Schema-C7W9nQug.mjs} +477 -382
- package/dist/bin/Schema-C7W9nQug.mjs.map +1 -0
- package/dist/bin/{SemanticSearch-BJGnYhFt.mjs → SemanticSearch-cqSnq90g.mjs} +269 -228
- package/dist/bin/SemanticSearch-cqSnq90g.mjs.map +1 -0
- package/dist/bin/{Stream-CgH3SuLu.mjs → Stream-BI6Fx9yq.mjs} +179 -171
- package/dist/bin/Stream-BI6Fx9yq.mjs.map +1 -0
- package/dist/bin/cli.mjs +169 -201
- package/dist/bin/cli.mjs.map +1 -1
- package/package.json +12 -12
- package/src/AgentExecutor.test.ts +133 -0
- package/src/AgentExecutor.ts +1 -2
- package/dist/bin/Effect-BCeySOy1.mjs.map +0 -1
- package/dist/bin/Schema-C9JQ5hI0.mjs.map +0 -1
- package/dist/bin/SemanticSearch-BJGnYhFt.mjs.map +0 -1
- package/dist/bin/Stream-CgH3SuLu.mjs.map +0 -1
package/dist/bin/cli.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env -S node --optimize-for-size
|
|
2
|
-
import { $ as isEffect, $a as
|
|
3
|
-
import { $ as tap$1, A as mapArrayEffect, At as getCurrent, B as provideService$1, Bt as round, Ct as unbounded, D as isStream, Dt as update, E as fromReadableStream, Et as set$2, F as mkString, Ft as join$2, G as runForEach, H as runCollect, I as onEnd, It as runIn, J as splitLines, K as runForEachArray, L as orDie$2, Lt as camelToSnake, M as mapError$1, Mt as interruptAll, N as merge$4, Nt as interruptAllAs, O as map$9, Ot as makeUnsafe$5, P as mergeAll$1, Q as takeUntil, R as pipeThroughChannel, Rt as toLowerCase, S as fromIterable$2, St as take, T as fromQueue, Tt as make$43, V as run$4, Vt as normalizeNonEmpty, W as runFold, X as suspend$1, Y as succeed$5, Z as take$1, _ as flattenIterable, _t as offer, a as catchTags$1, at as pipeTo, b as fromChannel$1, bt as offerUnsafe, c as die$2, ct as make$45, d as ensuring$1, dt as end, et as transduce, f as fail$5, ft as endUnsafe, g as flatMap$3, gt as make$44, h as filterMap, ht as failCauseUnsafe, i as catchReason$1, it as mapDone, j as mapEffect$1, jt as interrupt$2, k as mapArray, kt as await_, l as drop, lt as makeUnsafe$4, m as filter$2, mt as failCause$2, n as callback$1, nt as fromTransform$1, o as catch_$1, ot as toTransform, p as failCause$3, pt as fail$6, rt as map$10, s as decodeText, st as unwrap$2, t as broadcast, tt as unwrap$3, u as empty$10, ut as bounded, vt as offerAll, w as fromPull, x as fromEffect, xt as poll, yt as offerAllUnsafe, z as provideContext$1, zt as parse$1 } from "./Stream-
|
|
4
|
-
import { $ as declare, $t as Union$1, An as toString, At as tag, B as TaggedUnion, Bn as isRedacted, Bt as omit, C as Never, Ct as isSchemaError, D as NullOr, Dn as empty$11, Dt as mutable, E as Null, En as Pointer, Et as makeFilterGroup, F as String$5, Fn as formatIso, Ft as toType, G as Uint8Array$2, Gn as EncodingError, Gt as encodeEffect, H as Tuple, Hn as value, Ht as _is, I as Struct, It as withConstructorDefault, J as Union, Jn as TaggedError, Jt as FilterGroup, K as Uint8ArrayFromBase64, Kn as Error$2, Kt as Arrays, L as StructWithRest, Ln as fromDateUnsafe, Lt as withDecodingDefault, M as Record, Mn as fromSetCookie, Mt as toCodecStringTree, N as Redacted$1, Nn as decode$4, Nt as toEncoded$1, O as Number$2, On as fromInput$1, Ot as optional$2, P as SchemaError, Pn as encode, Pt as toJsonSchemaDocument, Q as check, Qn as map$11, Qt as Suspend, R as TaggedClass$2, Rt as withDecodingDefaultKey, Sn as passthrough$1, St as isSchema, T as NonEmptyString$1, Tn as InvalidValue$1, Tt as makeFilter, U as URL$1, Un as stringOrRedacted, Ut as decodeEffect$1, V as TrueLiterals, Vn as make$46, Vt as getReferenceKey, W as URLFromString, Wn as Clock, Wt as decodeUnknownEffect, X as Void, Xn as assignProperty$1, Xt as Objects, Y as Unknown, Yn as taggedEnum, Yt as Literal$1, Zn as makeEquivalence, Zt as PropertySignature, _ as Int$1, _n as transform$3, _t as isMaxLength, a as BooleanLiterals, an as null_, at as decodeUnknownSync, b as Literals$2, bt as isPattern, cn as resolveAt, ct as encodeUnknownEffect, d as Defect, dn as string, dt as is, en as applyToSelfOrLastLinkEncoding, et as decodeEffect, f as Duration, fn as toEncoded, ft as isFinite$1, g as Finite, gn as passthrough$2, gt as isLessThanOrEqualTo, h as FalseLiterals, hn as Transformation, ht as isInt, in as mapOrSame, it as decodeUnknownOption, j as OptionFromOptional, jn as empty$12, jt as toCodecJson, k as Option, kn as setAll$1, kt as optionalKey, ln as resolveDescription, lt as fromJsonString, m as Exit, mn as unknown, mt as isGreaterThanOrEqualTo, n as ArraySchema, nn as isNever, nt as decodeTo$1, o as Class$1, on as optionalKey$1, ot as encodeEffect$1, p as Error$3, pn as toType$1, pt as isGreaterThan, q as UndefinedOr, qn as TaggedClass$1, qt as Filter, r as Boolean$4, rn as isOptional, rt as decodeUnknownEffect$1, s as DateTimeUtc, sn as replaceChecks, st as encodeTo, t as Any, tn as decodeTo, tt as decodeSync, u as DateTimeUtcFromString, un as resolveIdentifier, v as Json, vn as transformEffect$1, vt as isMaxProperties, w as NonEmptyArray, wn as transformEffect, wt as make$47, x as MutableJson, xt as isPropertyNames, y as Literal, yn as transformOptional, yt as isMinLength, z as TaggedError$1 } from "./Schema-
|
|
2
|
+
import { $ as isEffect, $a as match$2, $i as fail$1, $n as buildWithScope, $o as hasProperty, $t as uninterruptibleMask, A as ensuring, Aa as getOrUndefinedUnsafe, Ai as Array$1, An as StackTrace, Ao as getStackTraceLimit, Ar as isDone, As as pipe, At as result, B as fnUntraced, Bi as isArrayNonEmpty, Bn as hasInterrupts, Br as succeed$3, Bt as sleep, C as catch_, Ca as Reference, Cr as MinimumLogLevel, Cs as constVoid, Ct as promise, Da as get$3, Dn as Done, Do as withFiber$1, Dr as doneUnsafe, Ds as identity, Dt as raceFirst, E as contextWith, Ea as empty$7, En as nextBetween, Es as flow, Et as provideService, F as filterOrFail, Fa as all, Fi as findFirstIndex, Fn as done, Fo as toJson, Fr as failCause$1, G as forkIn, Ga as getOrNull, Go as symbol$1, Gt as tap, H as forEach$2, Ha as fromNullishOr, Hi as isReadonlyArrayNonEmpty, Hn as interruptors, Ho as symbolRedactable, Ht as succeedNone, I as flatMap$1, Ia as exists, Ii as findLast, In as fail$4, Io as format, Ir as interrupt$1, It as scope, J as fromResult, Ja as isNone, Ji as of, Jo as hash, Jt as timeoutOrElse, K as forkScoped, Ka as getOrThrow, Ki as map$7, Kn as isTimeoutError, Kt as tapCause, L as flatMapEager, La as filter$1, Ln as filterInterruptors, Lt as scoped, M as fail$2, Ma as make$42, Mi as appendAll, Mn as UnknownError$1, Mo as BaseProto, Mr as makeUnsafe$2, Mt as runFork, N as failCause, Na as makeUnsafe$3, Ni as empty$6, Nn as annotate$1, No as Class, Nr as die$1, Ns as pipeArguments, Nt as runForkWith, O as die, Oa as getOption, Oi as DisablePropagation, Os as memoize, Ot as repeat, Pa as merge$2, Pi as findFirst, Po as NodeInspectSymbol, Pr as fail$3, Pt as runSync, Q as interruptible, Qa as map$8, Qi as headUnsafe, Qn as squash, Qo as symbol$2, Qt as uninterruptible, Ra as flatMap$2, Ri as fromIterable$1, Rr as isFailure$1, S as catchTags, Sa as zero, Sr as CurrentLogAnnotations, Ss as constUndefined, St as orElseSucceed, T as context, Ta as add, Tn as Random$1, Tr as _await, Ts as dual, Tt as provideContext, U as forever, Ua as fromUndefinedOr, Ui as join$1, Ur as ConsoleRef, Ut as suspend, Vi as isCanonicalArrayIndex, Vn as hasInterruptsOnly, Vo as redact$1, Vr as void_$1, Vt as succeed$2, W as forkChild, Wa as getOrElse, Wi as last$1, Wo as equals, Wr as LogToStderr$1, Wt as sync, X as ignore, Xa as isSome, Xt as try_, Y as gen, Yi as reduce, Yt as tryPromise, Z as interrupt, Zi as empty$8, Zn as pretty, Zo as structure, Zt as undefined_, _ as catchFilter, _n as min, _o as Prototype, _r as close, _s as isUndefined, _t as onExit, a as andThen, aa as map$6, an as whileLoop, ar as merge$3, at as makeSpanScoped, b as catchReason, ba as toMillis, bn as catchDone, bo as PipeInspectableProto, br as makeUnsafe$1, bs as constFalse, bt as option$1, c as as, ca as try_$1, cn as withParentSpan, cr as orDie$1, cs as isNotUndefined, ct as mapEager, d as cached, da as infinity, dn as zipWith, dr as succeed$4, dt as match$4, ea as failVoid, en as updateContext, eo as none, er as effect, et as logDebug, f as cachedWithTTL, fr as succeedContext, fs as isObject, g as catchEager, ga as minutes, gn as jittered, go as strictEqual, gr as addFinalizerExit, gs as isTagged, gt as onError, h as catchDefect, ha as millis, hn as isSchedule, hr as addFinalizer$1, hs as isString, ht as never, i as all$1, ia as isSuccess, io as toArray, ir as fresh, is as isIterable, it as logWarning, j as exit, ja as getUnsafe, jn as TimeoutError, jo as setStackTraceLimit, jr as isDoneUnsafe, jt as retry, k as effectify, ka as getOrUndefined$1, ki as ParentSpan, ko as assignProperty, kr as into, kt as request, l as asSome, la as format$1, ln as withSpan$1, lr as provide$3, ls as isNull, lt as mapError, m as catchCause, mn as exponential, mr as Scope, mt as matchEffect, na as getOrUndefined$2, nn as useSpan, no as orElseSome, nt as logFatal, o as annotateCurrentSpan, on as withFiber, or as mergeAll, os as isNotNull, ot as map$5, p as callback, pa as isFinite, pn as TaggedClass, pr as unwrap$1, pt as matchCauseEffect, q as fromOption, qa as getOrUndefined, qi as match$3, qt as timeout, r as addFinalizer, ra as isFailure, rn as void_, ro as some, rr as empty$9, rt as logInfo, s as annotateLogs, sa as succeed$1, sr as mock, ss as isNotNullish, st as mapBothEager, t as acquireRelease, tn as updateService, to as orElse$1, tr as effectContext, tt as logError, u as asVoid, ua as fromInputUnsafe$1, ui as forkUnsafe, un as yieldNow, ur as provideMerge, us as isNullish, v as catchIf, vn as passthrough, w as clockWith, wa as Service, wi as sync$1, wt as provide$1, x as catchTag, xr as provide$2, xs as constTrue, xt as orDie, ya as seconds, yn as spaced, ys as or, yt as onInterrupt, z as fn, za as flatMapNullishOr, zi as headNonEmpty, zr as isSuccess$1, zt as serviceOption } from "./Effect-BmOuzEIp.mjs";
|
|
3
|
+
import { $ as tap$1, A as mapArrayEffect, At as getCurrent, B as provideService$1, Bt as round, Ct as unbounded, D as isStream, Dt as update, E as fromReadableStream, Et as set$2, F as mkString, Ft as join$2, G as runForEach, H as runCollect, I as onEnd, It as runIn, J as splitLines, K as runForEachArray, L as orDie$2, Lt as camelToSnake, M as mapError$1, Mt as interruptAll, N as merge$4, Nt as interruptAllAs, O as map$9, Ot as makeUnsafe$5, P as mergeAll$1, Q as takeUntil, R as pipeThroughChannel, Rt as toLowerCase, S as fromIterable$2, St as take, T as fromQueue, Tt as make$43, V as run$4, Vt as normalizeNonEmpty, W as runFold, X as suspend$1, Y as succeed$5, Z as take$1, _ as flattenIterable, _t as offer, a as catchTags$1, at as pipeTo, b as fromChannel$1, bt as offerUnsafe, c as die$2, ct as make$45, d as ensuring$1, dt as end, et as transduce, f as fail$5, ft as endUnsafe, g as flatMap$3, gt as make$44, h as filterMap, ht as failCauseUnsafe, i as catchReason$1, it as mapDone, j as mapEffect$1, jt as interrupt$2, k as mapArray, kt as await_, l as drop, lt as makeUnsafe$4, m as filter$2, mt as failCause$2, n as callback$1, nt as fromTransform$1, o as catch_$1, ot as toTransform, p as failCause$3, pt as fail$6, rt as map$10, s as decodeText, st as unwrap$2, t as broadcast, tt as unwrap$3, u as empty$10, ut as bounded, vt as offerAll, w as fromPull, x as fromEffect, xt as poll, yt as offerAllUnsafe, z as provideContext$1, zt as parse$1 } from "./Stream-BI6Fx9yq.mjs";
|
|
4
|
+
import { $ as declare, $t as Union$1, An as toString, At as tag, B as TaggedUnion, Bn as isRedacted, Bt as omit, C as Never, Ct as isSchemaError, D as NullOr, Dn as empty$11, Dt as mutable, E as Null, En as Pointer, Et as makeFilterGroup, F as String$5, Fn as formatIso, Ft as toType, G as Uint8Array$2, Gn as EncodingError, Gt as encodeEffect, H as Tuple, Hn as value, Ht as _is, I as Struct, It as withConstructorDefault, J as Union, Jn as TaggedError, Jt as FilterGroup, K as Uint8ArrayFromBase64, Kn as Error$2, Kt as Arrays, L as StructWithRest, Ln as fromDateUnsafe, Lt as withDecodingDefault, M as Record, Mn as fromSetCookie, Mt as toCodecStringTree, N as Redacted$1, Nn as decode$4, Nt as toEncoded$1, O as Number$2, On as fromInput$1, Ot as optional$2, P as SchemaError, Pn as encode, Pt as toJsonSchemaDocument, Q as check, Qn as map$11, Qt as Suspend, R as TaggedClass$2, Rt as withDecodingDefaultKey, Sn as passthrough$1, St as isSchema, T as NonEmptyString$1, Tn as InvalidValue$1, Tt as makeFilter, U as URL$1, Un as stringOrRedacted, Ut as decodeEffect$1, V as TrueLiterals, Vn as make$46, Vt as getReferenceKey, W as URLFromString, Wn as Clock, Wt as decodeUnknownEffect, X as Void, Xn as assignProperty$1, Xt as Objects, Y as Unknown, Yn as taggedEnum, Yt as Literal$1, Zn as makeEquivalence, Zt as PropertySignature, _ as Int$1, _n as transform$3, _t as isMaxLength, a as BooleanLiterals, an as null_, at as decodeUnknownSync, b as Literals$2, bt as isPattern, cn as resolveAt, ct as encodeUnknownEffect, d as Defect, dn as string, dt as is, en as applyToSelfOrLastLinkEncoding, et as decodeEffect, f as Duration, fn as toEncoded, ft as isFinite$1, g as Finite, gn as passthrough$2, gt as isLessThanOrEqualTo, h as FalseLiterals, hn as Transformation, ht as isInt, in as mapOrSame, it as decodeUnknownOption, j as OptionFromOptional, jn as empty$12, jt as toCodecJson, k as Option, kn as setAll$1, kt as optionalKey, ln as resolveDescription, lt as fromJsonString, m as Exit, mn as unknown, mt as isGreaterThanOrEqualTo, n as ArraySchema, nn as isNever, nt as decodeTo$1, o as Class$1, on as optionalKey$1, ot as encodeEffect$1, p as Error$3, pn as toType$1, pt as isGreaterThan, q as UndefinedOr, qn as TaggedClass$1, qt as Filter, r as Boolean$4, rn as isOptional, rt as decodeUnknownEffect$1, s as DateTimeUtc, sn as replaceChecks, st as encodeTo, t as Any, tn as decodeTo, tt as decodeSync, u as DateTimeUtcFromString, un as resolveIdentifier, v as Json, vn as transformEffect$1, vt as isMaxProperties, w as NonEmptyArray, wn as transformEffect, wt as make$47, x as MutableJson, xt as isPropertyNames, y as Literal, yn as transformOptional, yt as isMinLength, z as TaggedError$1 } from "./Schema-C7W9nQug.mjs";
|
|
5
5
|
import * as Http from "node:http";
|
|
6
6
|
import * as Https from "node:https";
|
|
7
7
|
import { PassThrough, Readable, Writable } from "node:stream";
|
|
@@ -42,7 +42,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
42
42
|
enumerable: true
|
|
43
43
|
}) : target, mod));
|
|
44
44
|
//#endregion
|
|
45
|
-
//#region node_modules/.pnpm/effect@
|
|
45
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/Filter.js
|
|
46
46
|
const toPredicate = (self) => (input) => !isFailure(self(input));
|
|
47
47
|
const has = (key) => (input) => input.has(key) ? succeed$1(input) : fail$1(input);
|
|
48
48
|
const compose = dual(2, (left, right) => (input) => {
|
|
@@ -51,14 +51,14 @@ const compose = dual(2, (left, right) => (input) => {
|
|
|
51
51
|
return right(leftOut.success);
|
|
52
52
|
});
|
|
53
53
|
//#endregion
|
|
54
|
-
//#region node_modules/.pnpm/effect@
|
|
54
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/BigInt.js
|
|
55
55
|
const BigInt$1 = globalThis.BigInt;
|
|
56
56
|
const toNumber = (b) => {
|
|
57
57
|
if (b > BigInt$1(Number.MAX_SAFE_INTEGER) || b < BigInt$1(Number.MIN_SAFE_INTEGER)) return none();
|
|
58
58
|
return some(Number(b));
|
|
59
59
|
};
|
|
60
60
|
//#endregion
|
|
61
|
-
//#region node_modules/.pnpm/effect@
|
|
61
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/ByteSize.js
|
|
62
62
|
const bigint0 = BigInt(0);
|
|
63
63
|
const bigint1 = BigInt(1);
|
|
64
64
|
const decimalBase = BigInt(1e3);
|
|
@@ -272,7 +272,7 @@ const fromInputUnsafe = (input) => {
|
|
|
272
272
|
};
|
|
273
273
|
const bytes = (value) => typeof value === "bigint" ? fromInputUnsafe(value) : fromNumber(value);
|
|
274
274
|
//#endregion
|
|
275
|
-
//#region node_modules/.pnpm/effect@
|
|
275
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/PlatformError.js
|
|
276
276
|
const TypeId$34 = "~effect/PlatformError";
|
|
277
277
|
var BadArgument = class extends TaggedError("BadArgument") {
|
|
278
278
|
get message() {
|
|
@@ -300,7 +300,7 @@ var PlatformError = class extends TaggedError("PlatformError") {
|
|
|
300
300
|
const systemError = (options) => new PlatformError(new SystemError(options));
|
|
301
301
|
const badArgument = (options) => new PlatformError(new BadArgument(options));
|
|
302
302
|
//#endregion
|
|
303
|
-
//#region node_modules/.pnpm/effect@
|
|
303
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/Sink.js
|
|
304
304
|
const TypeId$33 = "~effect/Sink";
|
|
305
305
|
const endVoid = succeed$2([void 0]);
|
|
306
306
|
const sinkVariance = {
|
|
@@ -338,7 +338,7 @@ const forEach$1 = (f) => forEachArray(forEach$2((_) => f(_), { discard: true }))
|
|
|
338
338
|
const forEachArray = (f) => fromTransform((upstream) => upstream.pipe(flatMap$1(f), forever({ disableYield: true }), catchDone(() => endVoid)));
|
|
339
339
|
const unwrap = (effect) => fromChannel(unwrap$2(map$5(effect, toChannel)));
|
|
340
340
|
//#endregion
|
|
341
|
-
//#region node_modules/.pnpm/effect@
|
|
341
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/MutableHashMap.js
|
|
342
342
|
const TypeId$32 = "~effect/MutableHashMap";
|
|
343
343
|
const MutableHashMapProto = {
|
|
344
344
|
[TypeId$32]: TypeId$32,
|
|
@@ -376,19 +376,15 @@ const fromIterable = (entries) => {
|
|
|
376
376
|
const get$2 = dual(2, (self, key) => {
|
|
377
377
|
if (self.backing.has(key)) return some(self.backing.get(key));
|
|
378
378
|
else if (isSimpleKey(key)) return none();
|
|
379
|
-
const
|
|
380
|
-
|
|
381
|
-
const hash$1 = hash(key);
|
|
382
|
-
const bucket = self.buckets.get(hash$1);
|
|
379
|
+
const hash$2 = hash(key);
|
|
380
|
+
const bucket = self.buckets.get(hash$2);
|
|
383
381
|
if (bucket === void 0) return none();
|
|
384
382
|
return getFromBucket(self, bucket, key);
|
|
385
383
|
});
|
|
386
|
-
const referentialKeysCache = new WeakMap();
|
|
387
384
|
const isSimpleKey = (u) => typeof u !== "object" && typeof u !== "function";
|
|
388
385
|
const getFromBucket = (self, bucket, key) => {
|
|
389
386
|
for (let i = 0, len = bucket.length; i < len; i++) if (equals(key, bucket[i])) {
|
|
390
387
|
const refKey = bucket[i];
|
|
391
|
-
referentialKeysCache.set(key, refKey);
|
|
392
388
|
return some(self.backing.get(refKey));
|
|
393
389
|
}
|
|
394
390
|
return none();
|
|
@@ -398,19 +394,14 @@ const set$1 = dual(3, (self, key, value) => {
|
|
|
398
394
|
self.backing.set(key, value);
|
|
399
395
|
return self;
|
|
400
396
|
}
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
self.backing.set(refKey, value);
|
|
404
|
-
return self;
|
|
405
|
-
}
|
|
406
|
-
const hash$2 = hash(key);
|
|
407
|
-
const bucket = self.buckets.get(hash$2);
|
|
397
|
+
const hash$4 = hash(key);
|
|
398
|
+
const bucket = self.buckets.get(hash$4);
|
|
408
399
|
if (bucket === void 0) {
|
|
409
|
-
self.buckets.set(hash$
|
|
400
|
+
self.buckets.set(hash$4, [key]);
|
|
410
401
|
self.backing.set(key, value);
|
|
411
402
|
return self;
|
|
412
403
|
}
|
|
413
|
-
refKey = getRefKey(bucket, key);
|
|
404
|
+
let refKey = getRefKey(bucket, key);
|
|
414
405
|
if (refKey === void 0) {
|
|
415
406
|
bucket.push(key);
|
|
416
407
|
refKey = key;
|
|
@@ -419,29 +410,25 @@ const set$1 = dual(3, (self, key, value) => {
|
|
|
419
410
|
return self;
|
|
420
411
|
});
|
|
421
412
|
const getRefKey = (bucket, key) => {
|
|
422
|
-
for (let i = 0, len = bucket.length; i < len; i++) if (equals(key, bucket[i]))
|
|
423
|
-
referentialKeysCache.set(key, bucket[i]);
|
|
424
|
-
return bucket[i];
|
|
425
|
-
}
|
|
413
|
+
for (let i = 0, len = bucket.length; i < len; i++) if (equals(key, bucket[i])) return bucket[i];
|
|
426
414
|
};
|
|
427
415
|
const remove$2 = dual(2, (self, key_) => {
|
|
428
416
|
if (isSimpleKey(key_)) {
|
|
429
417
|
self.backing.delete(key_);
|
|
430
418
|
return self;
|
|
431
419
|
}
|
|
432
|
-
const
|
|
433
|
-
const
|
|
434
|
-
const bucket = self.buckets.get(hash$4);
|
|
420
|
+
const hash$1 = hash(key_);
|
|
421
|
+
const bucket = self.buckets.get(hash$1);
|
|
435
422
|
if (bucket === void 0) return self;
|
|
436
423
|
for (let i = 0, len = bucket.length; i < len; i++) {
|
|
437
424
|
const bkey = bucket[i];
|
|
438
|
-
if (bkey ===
|
|
425
|
+
if (bkey === key_ || equals(key_, bkey)) {
|
|
439
426
|
self.backing.delete(bkey);
|
|
440
427
|
bucket.splice(i, 1);
|
|
441
428
|
break;
|
|
442
429
|
}
|
|
443
430
|
}
|
|
444
|
-
if (bucket.length === 0) self.buckets.delete(hash$
|
|
431
|
+
if (bucket.length === 0) self.buckets.delete(hash$1);
|
|
445
432
|
return self;
|
|
446
433
|
});
|
|
447
434
|
const size = (self) => self.backing.size;
|
|
@@ -450,7 +437,7 @@ const forEach = dual(2, (self, f) => {
|
|
|
450
437
|
self.backing.forEach(f);
|
|
451
438
|
});
|
|
452
439
|
//#endregion
|
|
453
|
-
//#region node_modules/.pnpm/effect@
|
|
440
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/internal/rcRef.js
|
|
454
441
|
const TypeId$31 = "~effect/RcRef";
|
|
455
442
|
const stateEmpty = { _tag: "Empty" };
|
|
456
443
|
const stateClosed = { _tag: "Closed" };
|
|
@@ -549,12 +536,12 @@ const invalidate$1 = (self_) => {
|
|
|
549
536
|
}));
|
|
550
537
|
};
|
|
551
538
|
//#endregion
|
|
552
|
-
//#region node_modules/.pnpm/effect@
|
|
539
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/RcRef.js
|
|
553
540
|
const make$38 = make$39;
|
|
554
541
|
const get = get$1;
|
|
555
542
|
const invalidate = invalidate$1;
|
|
556
543
|
//#endregion
|
|
557
|
-
//#region node_modules/.pnpm/effect@
|
|
544
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/FileSystem.js
|
|
558
545
|
const TypeId$30 = "~effect/FileSystem";
|
|
559
546
|
const FileSystem = Service("effect/FileSystem");
|
|
560
547
|
const make$37 = (impl) => FileSystem.of({
|
|
@@ -606,11 +593,11 @@ const make$37 = (impl) => FileSystem.of({
|
|
|
606
593
|
const FileTypeId = "~effect/FileSystem/File";
|
|
607
594
|
var WatchBackend = class extends Service()("effect/FileSystem/WatchBackend") {};
|
|
608
595
|
//#endregion
|
|
609
|
-
//#region node_modules/.pnpm/effect@
|
|
596
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/Path.js
|
|
610
597
|
const TypeId$29 = "~effect/Path";
|
|
611
598
|
const Path$3 = Service("effect/Path");
|
|
612
599
|
//#endregion
|
|
613
|
-
//#region node_modules/.pnpm/effect@
|
|
600
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/http/Headers.js
|
|
614
601
|
const TypeId$28 = Symbol.for("~effect/http/Headers");
|
|
615
602
|
const Proto$15 = Object.defineProperties(Object.create(null), {
|
|
616
603
|
[TypeId$28]: { value: TypeId$28 },
|
|
@@ -692,7 +679,7 @@ const CurrentRedactedNames = Reference("effect/Headers/CurrentRedactedNames", {
|
|
|
692
679
|
"x-api-key"
|
|
693
680
|
] });
|
|
694
681
|
//#endregion
|
|
695
|
-
//#region node_modules/.pnpm/effect@
|
|
682
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/encoding/Base64Url.js
|
|
696
683
|
const decode$3 = (str) => {
|
|
697
684
|
const stripped = str.replace(/[\n\r]/g, "");
|
|
698
685
|
const length = stripped.length;
|
|
@@ -715,7 +702,7 @@ const decode$3 = (str) => {
|
|
|
715
702
|
const decodeString = (str) => map$6(decode$3(str), (_) => decoder.decode(_));
|
|
716
703
|
const decoder = new TextDecoder();
|
|
717
704
|
//#endregion
|
|
718
|
-
//#region node_modules/.pnpm/effect@
|
|
705
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/Terminal.js
|
|
719
706
|
const TypeId$27 = "~effect/Terminal";
|
|
720
707
|
const QuitErrorTypeId = "~effect/Terminal/QuitError";
|
|
721
708
|
var QuitError = class extends Error$3("QuitError")({ _tag: tag("QuitError") }) {
|
|
@@ -728,7 +715,7 @@ const make$35 = (impl) => Terminal.of({
|
|
|
728
715
|
[TypeId$27]: TypeId$27
|
|
729
716
|
});
|
|
730
717
|
//#endregion
|
|
731
|
-
//#region node_modules/.pnpm/effect@
|
|
718
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/cli/internal/ansi.js
|
|
732
719
|
const ESC = "\x1B[";
|
|
733
720
|
const BEL = "\x07";
|
|
734
721
|
const SEP = ";";
|
|
@@ -776,7 +763,7 @@ const eraseLines = (rows) => {
|
|
|
776
763
|
return command;
|
|
777
764
|
};
|
|
778
765
|
//#endregion
|
|
779
|
-
//#region node_modules/.pnpm/effect@
|
|
766
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/cli/Prompt.js
|
|
780
767
|
const TypeId$26 = "~effect/cli/Prompt";
|
|
781
768
|
const isPrompt$1 = (u) => hasProperty(u, TypeId$26);
|
|
782
769
|
const defaultTheme = {
|
|
@@ -2072,7 +2059,7 @@ const entriesToDisplay = (cursor, total, maxVisible) => {
|
|
|
2072
2059
|
};
|
|
2073
2060
|
};
|
|
2074
2061
|
//#endregion
|
|
2075
|
-
//#region node_modules/.pnpm/effect@
|
|
2062
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/http/HttpBody.js
|
|
2076
2063
|
const TypeId$25 = "~effect/http/HttpBody";
|
|
2077
2064
|
var Proto$14 = class {
|
|
2078
2065
|
[TypeId$25];
|
|
@@ -2134,7 +2121,7 @@ const text = (body, contentType) => {
|
|
|
2134
2121
|
const jsonUnsafe = (body, contentType) => text(JSON.stringify(body), contentType ?? "application/json");
|
|
2135
2122
|
const urlParams = (urlParams, contentType) => text(toString(fromInput$1(urlParams)), contentType ?? "application/x-www-form-urlencoded");
|
|
2136
2123
|
//#endregion
|
|
2137
|
-
//#region node_modules/.pnpm/effect@
|
|
2124
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/http/HttpClientError.js
|
|
2138
2125
|
const TypeId$24 = "~effect/http/HttpClientError";
|
|
2139
2126
|
const isHttpClientError = (u) => hasProperty(u, TypeId$24);
|
|
2140
2127
|
var HttpClientError = class extends TaggedError("HttpClientError") {
|
|
@@ -2210,7 +2197,7 @@ var EmptyBodyError = class extends TaggedError("EmptyBodyError") {
|
|
|
2210
2197
|
}
|
|
2211
2198
|
};
|
|
2212
2199
|
//#endregion
|
|
2213
|
-
//#region node_modules/.pnpm/effect@
|
|
2200
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/http/HttpMethod.js
|
|
2214
2201
|
const allShort = [
|
|
2215
2202
|
["GET", "get"],
|
|
2216
2203
|
["POST", "post"],
|
|
@@ -2223,14 +2210,14 @@ const allShort = [
|
|
|
2223
2210
|
["QUERY", "query"]
|
|
2224
2211
|
];
|
|
2225
2212
|
//#endregion
|
|
2226
|
-
//#region node_modules/.pnpm/effect@
|
|
2213
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/http/internal/httpBody.js
|
|
2227
2214
|
const updateHeaders$1 = (headers, body) => {
|
|
2228
2215
|
if (body._tag === "Empty" || body._tag === "FormData") return remove$1(remove$1(headers, "content-type"), "content-length");
|
|
2229
2216
|
headers = body.contentType === void 0 ? remove$1(headers, "content-type") : set(headers, "content-type", body.contentType);
|
|
2230
2217
|
return body.contentLength === void 0 ? remove$1(headers, "content-length") : set(headers, "content-length", body.contentLength.toString());
|
|
2231
2218
|
};
|
|
2232
2219
|
//#endregion
|
|
2233
|
-
//#region node_modules/.pnpm/effect@
|
|
2220
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/http/Url.js
|
|
2234
2221
|
var UrlError = class extends TaggedError("UrlError") {};
|
|
2235
2222
|
const make$34 = (url, params, hash) => try_$1({
|
|
2236
2223
|
try: () => {
|
|
@@ -2248,7 +2235,7 @@ const baseUrl = () => {
|
|
|
2248
2235
|
if ("location" in globalThis && globalThis.location !== void 0 && globalThis.location.origin !== void 0 && globalThis.location.pathname !== void 0) return location.origin + location.pathname;
|
|
2249
2236
|
};
|
|
2250
2237
|
//#endregion
|
|
2251
|
-
//#region node_modules/.pnpm/effect@
|
|
2238
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/http/HttpClientRequest.js
|
|
2252
2239
|
const TypeId$23 = "~effect/http/HttpClientRequest";
|
|
2253
2240
|
const Proto$13 = {
|
|
2254
2241
|
[TypeId$23]: TypeId$23,
|
|
@@ -2336,7 +2323,7 @@ function toUrl(self) {
|
|
|
2336
2323
|
return none();
|
|
2337
2324
|
}
|
|
2338
2325
|
//#endregion
|
|
2339
|
-
//#region node_modules/.pnpm/effect@
|
|
2326
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/http/HttpIncomingMessage.js
|
|
2340
2327
|
const TypeId$22 = "~effect/http/HttpIncomingMessage";
|
|
2341
2328
|
const schemaBodyJson = (schema, options) => {
|
|
2342
2329
|
const decode = decodeEffect(toCodecJson(schema));
|
|
@@ -2362,7 +2349,7 @@ const inspect = (self, that) => {
|
|
|
2362
2349
|
return obj;
|
|
2363
2350
|
};
|
|
2364
2351
|
//#endregion
|
|
2365
|
-
//#region node_modules/.pnpm/effect@
|
|
2352
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/http/HttpClientResponse.js
|
|
2366
2353
|
const TypeId$21 = "~effect/http/HttpClientResponse";
|
|
2367
2354
|
const fromWeb = (request, source) => new WebHttpClientResponse(request, source);
|
|
2368
2355
|
const filterStatusOk$1 = (self) => self.status >= 200 && self.status < 300 ? succeed$2(self) : fail$2(new HttpClientError({ reason: new StatusCodeError({
|
|
@@ -2477,7 +2464,7 @@ var WebHttpClientResponse = class extends Class {
|
|
|
2477
2464
|
}
|
|
2478
2465
|
};
|
|
2479
2466
|
//#endregion
|
|
2480
|
-
//#region node_modules/.pnpm/effect@
|
|
2467
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/http/HttpTraceContext.js
|
|
2481
2468
|
const toHeaders = (span) => fromRecordUnsafe({
|
|
2482
2469
|
b3: `${span.traceId}-${span.spanId}-${span.sampled ? "1" : "0"}${match$2(span.parent, {
|
|
2483
2470
|
onNone: () => "",
|
|
@@ -2486,7 +2473,7 @@ const toHeaders = (span) => fromRecordUnsafe({
|
|
|
2486
2473
|
traceparent: `00-${span.traceId}-${span.spanId}-${span.sampled ? "01" : "00"}`
|
|
2487
2474
|
});
|
|
2488
2475
|
//#endregion
|
|
2489
|
-
//#region node_modules/.pnpm/effect@
|
|
2476
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/http/HttpClient.js
|
|
2490
2477
|
const TypeId$20 = "~effect/http/HttpClient";
|
|
2491
2478
|
const isHttpClient = (u) => hasProperty(u, TypeId$20);
|
|
2492
2479
|
const HttpClient = Service("effect/HttpClient");
|
|
@@ -2725,7 +2712,7 @@ const isTransientError = (error) => isTimeoutError(error) || isTransientHttpErro
|
|
|
2725
2712
|
const isTransientHttpError = (error) => isHttpClientError(error) && (error.reason._tag === "TransportError" || error.reason._tag === "StatusCodeError" && isTransientResponse(error.reason.response));
|
|
2726
2713
|
const isTransientResponse = (response) => response.status === 408 || response.status === 429 || response.status === 500 || response.status === 502 || response.status === 503 || response.status === 504;
|
|
2727
2714
|
//#endregion
|
|
2728
|
-
//#region node_modules/.pnpm/@effect+platform-node-shared@
|
|
2715
|
+
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0_effect@4.0.0/node_modules/@effect/platform-node-shared/dist/NodeSink.js
|
|
2729
2716
|
const fromWritable = (options) => fromChannel(mapDone(fromWritableChannel(options), (_) => [_]));
|
|
2730
2717
|
const fromWritableChannel = (options) => fromTransform$1((pull) => {
|
|
2731
2718
|
const writable = options.evaluate();
|
|
@@ -2773,7 +2760,7 @@ const pullIntoWritable = (options) => options.pull.pipe(flatMap$1((chunk) => {
|
|
|
2773
2760
|
});
|
|
2774
2761
|
})));
|
|
2775
2762
|
//#endregion
|
|
2776
|
-
//#region node_modules/.pnpm/@effect+platform-node-shared@
|
|
2763
|
+
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0_effect@4.0.0/node_modules/@effect/platform-node-shared/dist/NodeStream.js
|
|
2777
2764
|
const fromReadable = (options) => fromChannel$1(fromReadableChannel(options));
|
|
2778
2765
|
const fromReadableChannel = (options) => fromTransform$1((_, scope) => readableToPullUnsafe({
|
|
2779
2766
|
scope,
|
|
@@ -2856,7 +2843,7 @@ const readableToPullUnsafe = (options) => {
|
|
|
2856
2843
|
const defaultOnError = (error) => new UnknownError$1(error);
|
|
2857
2844
|
const toMaxBytes = (maxBytes) => maxBytes === void 0 || maxBytes === Infinity ? void 0 : Number(fromInputUnsafe(maxBytes));
|
|
2858
2845
|
//#endregion
|
|
2859
|
-
//#region node_modules/.pnpm/@effect+platform-node@
|
|
2846
|
+
//#region node_modules/.pnpm/@effect+platform-node@4.0.0_effect@4.0.0_redis@6.2.1/node_modules/@effect/platform-node/dist/NodeHttpIncomingMessage.js
|
|
2860
2847
|
var NodeHttpIncomingMessage = class extends Class {
|
|
2861
2848
|
[TypeId$22];
|
|
2862
2849
|
source;
|
|
@@ -2917,7 +2904,7 @@ var NodeHttpIncomingMessage = class extends Class {
|
|
|
2917
2904
|
}
|
|
2918
2905
|
};
|
|
2919
2906
|
//#endregion
|
|
2920
|
-
//#region node_modules/.pnpm/@effect+platform-node@
|
|
2907
|
+
//#region node_modules/.pnpm/@effect+platform-node@4.0.0_effect@4.0.0_redis@6.2.1/node_modules/@effect/platform-node/dist/NodeHttpClient.js
|
|
2921
2908
|
function noopErrorHandler(_) {}
|
|
2922
2909
|
var UndiciResponse = class extends Class {
|
|
2923
2910
|
[TypeId$22];
|
|
@@ -3164,7 +3151,7 @@ var NodeHttpResponse = class extends NodeHttpIncomingMessage {
|
|
|
3164
3151
|
};
|
|
3165
3152
|
const layerNodeHttpNoAgent = layerMergedContext(makeNodeHttp);
|
|
3166
3153
|
//#endregion
|
|
3167
|
-
//#region node_modules/.pnpm/effect@
|
|
3154
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/Console.js
|
|
3168
3155
|
const Console = ConsoleRef;
|
|
3169
3156
|
const consoleWith = (f) => withFiber$1((fiber) => f(fiber.getRef(Console)));
|
|
3170
3157
|
const error = (...args) => consoleWith((console) => sync$1(() => {
|
|
@@ -3174,7 +3161,7 @@ const log = (...args) => consoleWith((console) => sync$1(() => {
|
|
|
3174
3161
|
console.log(...args);
|
|
3175
3162
|
}));
|
|
3176
3163
|
//#endregion
|
|
3177
|
-
//#region node_modules/.pnpm/effect@
|
|
3164
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/Runtime.js
|
|
3178
3165
|
const defaultTeardown = (exit, onExit) => {
|
|
3179
3166
|
if (isSuccess$1(exit)) return onExit(0);
|
|
3180
3167
|
if (hasInterruptsOnly(exit.cause)) return onExit(130);
|
|
@@ -3213,7 +3200,7 @@ const getErrorReported = (u) => {
|
|
|
3213
3200
|
return true;
|
|
3214
3201
|
};
|
|
3215
3202
|
//#endregion
|
|
3216
|
-
//#region node_modules/.pnpm/effect@
|
|
3203
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/Stdio.js
|
|
3217
3204
|
const TypeId$19 = "~effect/Stdio";
|
|
3218
3205
|
const Stdio = Service(TypeId$19);
|
|
3219
3206
|
const make$31 = (options) => ({
|
|
@@ -3223,7 +3210,7 @@ const make$31 = (options) => ({
|
|
|
3223
3210
|
...options
|
|
3224
3211
|
});
|
|
3225
3212
|
//#endregion
|
|
3226
|
-
//#region node_modules/.pnpm/effect@
|
|
3213
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/cli/CliOutput.js
|
|
3227
3214
|
const Formatter = Reference("effect/cli/CliOutput", { defaultValue: () => defaultFormatter() });
|
|
3228
3215
|
const escapeControlCharacters = (text) => text.replace(/[\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]/g, (character) => `\\x${character.charCodeAt(0).toString(16).padStart(2, "0")}`);
|
|
3229
3216
|
const defaultFormatter = (options) => {
|
|
@@ -3398,7 +3385,7 @@ const formatHelpDocImpl = (doc, colors) => {
|
|
|
3398
3385
|
return sections.join("\n");
|
|
3399
3386
|
};
|
|
3400
3387
|
//#endregion
|
|
3401
|
-
//#region node_modules/.pnpm/effect@
|
|
3388
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/cli/internal/completions/bash.js
|
|
3402
3389
|
const escapeForBash = (s) => s.replace(/'/g, "'\\''");
|
|
3403
3390
|
const sanitizeFunctionName = (s) => s.replace(/[^a-zA-Z0-9_]/g, "_");
|
|
3404
3391
|
const flagNamesForWordlist = (flag) => {
|
|
@@ -3657,7 +3644,7 @@ const generate$3 = (executableName, descriptor) => {
|
|
|
3657
3644
|
return lines.join("\n");
|
|
3658
3645
|
};
|
|
3659
3646
|
//#endregion
|
|
3660
|
-
//#region node_modules/.pnpm/effect@
|
|
3647
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/cli/internal/completions/fish.js
|
|
3661
3648
|
const escapeFishString = (s) => s.replace(/\\/g, "\\\\").replace(/'/g, "\\'");
|
|
3662
3649
|
const escapeFishChoice = (s) => escapeFishString(s.replace(/[^A-Za-z0-9_.,/@%+-]/gu, "\\$&"));
|
|
3663
3650
|
const subcommandCondition = (parentPath, childSubcommandNames) => {
|
|
@@ -3790,7 +3777,7 @@ const generate$2 = (executableName, descriptor) => {
|
|
|
3790
3777
|
return lines.join("\n");
|
|
3791
3778
|
};
|
|
3792
3779
|
//#endregion
|
|
3793
|
-
//#region node_modules/.pnpm/effect@
|
|
3780
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/cli/internal/completions/zsh.js
|
|
3794
3781
|
const escapeZsh = (s) => s.replace(/\\/g, "\\\\").replace(/'/g, "'\\''").replace(/:/g, "\\:");
|
|
3795
3782
|
const escapeZshChoice = (s) => s.replace(/[^A-Za-z0-9_.,/@%+-]/gu, "\\$&").replace(/'/g, "'\\''");
|
|
3796
3783
|
const sanitize = (s) => s.replace(/[^a-zA-Z0-9_]/g, "_");
|
|
@@ -3926,7 +3913,7 @@ const generate$1 = (executableName, descriptor) => {
|
|
|
3926
3913
|
return lines.join("\n");
|
|
3927
3914
|
};
|
|
3928
3915
|
//#endregion
|
|
3929
|
-
//#region node_modules/.pnpm/effect@
|
|
3916
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/cli/Completions.js
|
|
3930
3917
|
const generate = (executableName, shell, descriptor) => {
|
|
3931
3918
|
switch (shell) {
|
|
3932
3919
|
case "bash": return generate$3(executableName, descriptor);
|
|
@@ -3935,7 +3922,7 @@ const generate = (executableName, shell, descriptor) => {
|
|
|
3935
3922
|
}
|
|
3936
3923
|
};
|
|
3937
3924
|
//#endregion
|
|
3938
|
-
//#region node_modules/.pnpm/effect@
|
|
3925
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/ConfigProvider.js
|
|
3939
3926
|
function makeValue(value) {
|
|
3940
3927
|
return {
|
|
3941
3928
|
_tag: "Value",
|
|
@@ -3971,7 +3958,7 @@ function makeProvider(load, mapInput) {
|
|
|
3971
3958
|
return self;
|
|
3972
3959
|
}
|
|
3973
3960
|
function makeSource(get, transform) {
|
|
3974
|
-
return makeProvider((path) => get(transform(path)), (f) => makeSource(get,
|
|
3961
|
+
return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
|
|
3975
3962
|
}
|
|
3976
3963
|
function make$30(get) {
|
|
3977
3964
|
return makeSource(get, identityPath);
|
|
@@ -4022,7 +4009,7 @@ function trieNodeAt(root, path) {
|
|
|
4022
4009
|
return node;
|
|
4023
4010
|
}
|
|
4024
4011
|
//#endregion
|
|
4025
|
-
//#region node_modules/.pnpm/effect@
|
|
4012
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/Config.js
|
|
4026
4013
|
const TypeId$18 = "~effect/Config";
|
|
4027
4014
|
var ConfigError = class {
|
|
4028
4015
|
_tag = "ConfigError";
|
|
@@ -4053,42 +4040,24 @@ const Proto$10 = {
|
|
|
4053
4040
|
function make$29(evaluator) {
|
|
4054
4041
|
const self = Object.create(Proto$10);
|
|
4055
4042
|
self.evaluator = evaluator;
|
|
4056
|
-
self.parse = (provider) => evaluator(provider, [])
|
|
4043
|
+
self.parse = (provider) => flatMapEager(evaluator(provider, []), fromResult);
|
|
4057
4044
|
return self;
|
|
4058
4045
|
}
|
|
4059
4046
|
const evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
|
|
4060
|
-
const resolved = (value, hasInput) => ({
|
|
4061
|
-
_tag: "Resolved",
|
|
4062
|
-
value,
|
|
4063
|
-
hasInput
|
|
4064
|
-
});
|
|
4065
|
-
const absent = (error) => ({
|
|
4066
|
-
_tag: "Absent",
|
|
4067
|
-
error
|
|
4068
|
-
});
|
|
4069
|
-
const evaluationFailure = (error, hasInput) => ({
|
|
4070
|
-
error,
|
|
4071
|
-
hasInput
|
|
4072
|
-
});
|
|
4073
|
-
const isSourceError = (u) => isTagged(u, "SourceError");
|
|
4074
|
-
const catchSourceError = (self, hasInput) => self.pipe(catchDefect((defect) => isSourceError(defect) ? fail$2(evaluationFailure(new ConfigError(defect), hasInput)) : die(defect)));
|
|
4075
|
-
const preserveInputEvidence = (self, hasInput) => {
|
|
4076
|
-
if (!hasInput) return self;
|
|
4077
|
-
return self.pipe(mapErrorEager((failure) => evaluationFailure(failure.error, true)), flatMapEager((resolution) => resolution._tag === "Resolved" ? succeed$2(resolved(resolution.value, true)) : fail$2(evaluationFailure(resolution.error, true))));
|
|
4078
|
-
};
|
|
4079
4047
|
const map$3 = dual(2, (self, f) => {
|
|
4080
|
-
return make$29((provider, pathPrefix) => map$5(evaluateAt(self, provider, pathPrefix), (
|
|
4048
|
+
return make$29((provider, pathPrefix) => map$5(evaluateAt(self, provider, pathPrefix), map$6(f)));
|
|
4081
4049
|
});
|
|
4082
4050
|
const orElse = dual(2, (self, that) => {
|
|
4083
4051
|
return make$29((provider, pathPrefix) => matchEffect(evaluateAt(self, provider, pathPrefix), {
|
|
4084
|
-
onFailure: (
|
|
4085
|
-
onSuccess: (resolution) => resolution
|
|
4052
|
+
onFailure: (error) => evaluateAt(that(error), provider, pathPrefix),
|
|
4053
|
+
onSuccess: (resolution) => isFailure(resolution) ? evaluateAt(that(resolution.failure), provider, pathPrefix) : succeed$2(resolution)
|
|
4086
4054
|
}));
|
|
4087
4055
|
});
|
|
4088
4056
|
const withDefault$2 = dual(2, (self, defaultValue) => {
|
|
4089
|
-
return make$29((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => resolution
|
|
4057
|
+
return make$29((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed$1(defaultValue) : resolution));
|
|
4090
4058
|
});
|
|
4091
4059
|
const option = (self) => self.pipe(map$3(some), withDefault$2(none()));
|
|
4060
|
+
const isSourceError = (u) => isTagged(u, "SourceError");
|
|
4092
4061
|
const cursorToString = () => "<configuration>";
|
|
4093
4062
|
const loadCursor = (provider, path) => provider.load(path).pipe(orDie, mapEager((node) => ({
|
|
4094
4063
|
provider,
|
|
@@ -4097,7 +4066,6 @@ const loadCursor = (provider, path) => provider.load(path).pipe(orDie, mapEager(
|
|
|
4097
4066
|
toString: cursorToString
|
|
4098
4067
|
})));
|
|
4099
4068
|
const loadChildCursor = (cursor, segment) => loadCursor(cursor.provider, [...cursor.path, segment]);
|
|
4100
|
-
const getScalar = (node) => node?.value;
|
|
4101
4069
|
const decodeFromCursor = (ast, decode) => decodeTo(unknown, ast, new Transformation(transformEffect((input) => decode(input)), passthrough$1()));
|
|
4102
4070
|
const isScalarInput = (ast) => {
|
|
4103
4071
|
switch (ast._tag) {
|
|
@@ -4114,7 +4082,7 @@ const hasProviderInput = (ast, node) => {
|
|
|
4114
4082
|
case "Arrays": return node?._tag === "Array";
|
|
4115
4083
|
case "Union": return ast.types.some((ast) => hasProviderInput(ast, node));
|
|
4116
4084
|
case "Suspend": return hasProviderInput(ast.thunk(), node);
|
|
4117
|
-
default: return
|
|
4085
|
+
default: return node?.value !== void 0;
|
|
4118
4086
|
}
|
|
4119
4087
|
};
|
|
4120
4088
|
const toConfigCursorAST = memoize((root) => {
|
|
@@ -4152,7 +4120,8 @@ const toConfigCursorAST = memoize((root) => {
|
|
|
4152
4120
|
}
|
|
4153
4121
|
case "Union":
|
|
4154
4122
|
for (const member of ast.types) recur(member);
|
|
4155
|
-
|
|
4123
|
+
if (!isScalarInput(ast)) return ast.recur(recur);
|
|
4124
|
+
break;
|
|
4156
4125
|
case "Suspend": {
|
|
4157
4126
|
const target = ast.thunk();
|
|
4158
4127
|
if (!seen.has(target)) recur(target);
|
|
@@ -4160,8 +4129,8 @@ const toConfigCursorAST = memoize((root) => {
|
|
|
4160
4129
|
}
|
|
4161
4130
|
case "Declaration":
|
|
4162
4131
|
case "Any": throw new globalThis.Error("Config.schema does not support opaque StringTree encodings", { cause: ast });
|
|
4163
|
-
default: return decodeFromCursor(ast, (cursor) => succeed$2(getScalar(cursor.node)));
|
|
4164
4132
|
}
|
|
4133
|
+
return decodeFromCursor(ast, (cursor) => succeed$2(cursor.node?.value));
|
|
4165
4134
|
});
|
|
4166
4135
|
return recur(root);
|
|
4167
4136
|
});
|
|
@@ -4172,13 +4141,10 @@ function schema$1(codec, path) {
|
|
|
4172
4141
|
const localPath = typeof path === "string" ? [path] : path ?? [];
|
|
4173
4142
|
return make$29((provider, pathPrefix) => {
|
|
4174
4143
|
const fullPath = [...pathPrefix, ...localPath];
|
|
4175
|
-
return
|
|
4176
|
-
const
|
|
4177
|
-
return
|
|
4178
|
-
|
|
4179
|
-
return hasInput ? fail$2(evaluationFailure(error, true)) : succeed$2(absent(error));
|
|
4180
|
-
})), hasInput);
|
|
4181
|
-
}));
|
|
4144
|
+
return loadCursor(provider, fullPath).pipe(flatMapEager((cursor) => decodeCursor(cursor).pipe(mapEager(succeed$1), catchEager((issue) => {
|
|
4145
|
+
const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
|
|
4146
|
+
return hasProviderInput(encodedAst, cursor.node) ? fail$2(error) : succeed$2(fail$1(error));
|
|
4147
|
+
}))), catchDefect((defect) => isSourceError(defect) ? fail$2(new ConfigError(defect)) : die(defect)));
|
|
4182
4148
|
});
|
|
4183
4149
|
}
|
|
4184
4150
|
function NonEmptyString(name) {
|
|
@@ -4191,7 +4157,7 @@ function Redacted(name) {
|
|
|
4191
4157
|
return schema$1(Redacted$1(String$5), name);
|
|
4192
4158
|
}
|
|
4193
4159
|
//#endregion
|
|
4194
|
-
//#region node_modules/.pnpm/effect@
|
|
4160
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/cli/CliError.js
|
|
4195
4161
|
const TypeId$17 = "~effect/cli/CliError";
|
|
4196
4162
|
const isCliError = (u) => hasProperty(u, TypeId$17);
|
|
4197
4163
|
var UnrecognizedOption = class extends TaggedError$1(`${TypeId$17}/UnrecognizedOption`)("UnrecognizedOption", {
|
|
@@ -4293,7 +4259,7 @@ var ShowHelp = class extends TaggedError$1(`${TypeId$17}/ShowHelp`)("ShowHelp",
|
|
|
4293
4259
|
}
|
|
4294
4260
|
};
|
|
4295
4261
|
//#endregion
|
|
4296
|
-
//#region node_modules/.pnpm/effect@
|
|
4262
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/encoding/Yaml.js
|
|
4297
4263
|
const hasOwn = Object.prototype.hasOwnProperty;
|
|
4298
4264
|
const setProperty = (record, key, value) => {
|
|
4299
4265
|
Object.defineProperty(record, key, {
|
|
@@ -4742,7 +4708,7 @@ const parse = (input) => {
|
|
|
4742
4708
|
return new YamlParser(lines).parse();
|
|
4743
4709
|
};
|
|
4744
4710
|
//#endregion
|
|
4745
|
-
//#region node_modules/.pnpm/effect@
|
|
4711
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/cli/Primitive.js
|
|
4746
4712
|
const Proto$9 = { ["~effect/cli/Primitive"]: { _A: identity } };
|
|
4747
4713
|
const isTrueLiteral = is(TrueLiterals);
|
|
4748
4714
|
const isFalseLiteral = is(FalseLiterals);
|
|
@@ -4804,7 +4770,7 @@ const getTypeName = (primitive) => {
|
|
|
4804
4770
|
const getChoiceKeys = (primitive) => primitive._tag === "Choice" ? primitive.choiceKeys : void 0;
|
|
4805
4771
|
const getPathType = (primitive) => primitive._tag === "Path" ? primitive.pathType : void 0;
|
|
4806
4772
|
//#endregion
|
|
4807
|
-
//#region node_modules/.pnpm/effect@
|
|
4773
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/cli/Param.js
|
|
4808
4774
|
const TypeId$16 = "~effect/cli/Param";
|
|
4809
4775
|
const argumentKind = "argument";
|
|
4810
4776
|
const flagKind = "flag";
|
|
@@ -5090,7 +5056,7 @@ const getParamMetadata = (param) => {
|
|
|
5090
5056
|
});
|
|
5091
5057
|
};
|
|
5092
5058
|
//#endregion
|
|
5093
|
-
//#region node_modules/.pnpm/effect@
|
|
5059
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/cli/Flag.js
|
|
5094
5060
|
const String$1 = (name) => String$2(flagKind, name);
|
|
5095
5061
|
const Boolean = (name) => Boolean$1(flagKind, name);
|
|
5096
5062
|
const ChoiceWithValue = (name, choices) => ChoiceWithValue$1(flagKind, name, choices);
|
|
@@ -5106,7 +5072,7 @@ const withFallbackPrompt = dual(2, (self, prompt) => withFallbackPrompt$1(self,
|
|
|
5106
5072
|
const map$1 = dual(2, (self, f) => map$2(self, f));
|
|
5107
5073
|
const withSchema = dual(2, (self, schema) => withSchema$1(self, schema));
|
|
5108
5074
|
//#endregion
|
|
5109
|
-
//#region node_modules/.pnpm/effect@
|
|
5075
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/cli/internal/config.js
|
|
5110
5076
|
const ConfigInternalTypeId = "~effect/cli/Command/Config/Internal";
|
|
5111
5077
|
const parseConfig = (config) => {
|
|
5112
5078
|
const orderedParams = [];
|
|
@@ -5158,7 +5124,7 @@ const reconstructTree = (tree, results) => {
|
|
|
5158
5124
|
}
|
|
5159
5125
|
};
|
|
5160
5126
|
//#endregion
|
|
5161
|
-
//#region node_modules/.pnpm/effect@
|
|
5127
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/cli/internal/command.js
|
|
5162
5128
|
const TypeId$15 = "~effect/cli/Command";
|
|
5163
5129
|
const toImpl = (self) => self;
|
|
5164
5130
|
const Proto$7 = { ...Prototype({
|
|
@@ -5317,7 +5283,7 @@ const checkForDuplicateFlags = (parent, subcommands, options) => {
|
|
|
5317
5283
|
}
|
|
5318
5284
|
};
|
|
5319
5285
|
//#endregion
|
|
5320
|
-
//#region node_modules/.pnpm/effect@
|
|
5286
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/cli/internal/completions/descriptor.js
|
|
5321
5287
|
const toFlagType = (single) => {
|
|
5322
5288
|
switch (single.primitiveType._tag) {
|
|
5323
5289
|
case "Boolean": return { _tag: "Boolean" };
|
|
@@ -5418,7 +5384,7 @@ const fromCommand = (cmd, inheritedFlags = []) => {
|
|
|
5418
5384
|
};
|
|
5419
5385
|
};
|
|
5420
5386
|
//#endregion
|
|
5421
|
-
//#region node_modules/.pnpm/effect@
|
|
5387
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/cli/internal/help.js
|
|
5422
5388
|
const dedupeGlobalFlags = (flags) => {
|
|
5423
5389
|
const seen = new Set();
|
|
5424
5390
|
const deduped = [];
|
|
@@ -5504,7 +5470,7 @@ const getHelpForCommandPath = (command, commandPath, builtIns) => gen(function*
|
|
|
5504
5470
|
};
|
|
5505
5471
|
});
|
|
5506
5472
|
//#endregion
|
|
5507
|
-
//#region node_modules/.pnpm/effect@
|
|
5473
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/cli/GlobalFlag.js
|
|
5508
5474
|
const Action = (options) => ({
|
|
5509
5475
|
_tag: "Action",
|
|
5510
5476
|
flag: options.flag,
|
|
@@ -5571,11 +5537,11 @@ const BuiltIns = [
|
|
|
5571
5537
|
LogLevel
|
|
5572
5538
|
];
|
|
5573
5539
|
//#endregion
|
|
5574
|
-
//#region node_modules/.pnpm/effect@
|
|
5540
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/cli/CliConfig.js
|
|
5575
5541
|
var CliConfig = class extends Reference("effect/cli/CliConfig", { defaultValue: () => defaults }) {};
|
|
5576
5542
|
const defaults = { builtIns: BuiltIns };
|
|
5577
5543
|
//#endregion
|
|
5578
|
-
//#region node_modules/.pnpm/effect@
|
|
5544
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/cli/internal/lexer.js
|
|
5579
5545
|
function lex(argv) {
|
|
5580
5546
|
const endIndex = argv.indexOf("--");
|
|
5581
5547
|
if (endIndex === -1) return {
|
|
@@ -5587,9 +5553,10 @@ function lex(argv) {
|
|
|
5587
5553
|
trailingOperands: argv.slice(endIndex + 1)
|
|
5588
5554
|
};
|
|
5589
5555
|
}
|
|
5556
|
+
const negativeNumberRegex = /^-(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?$/;
|
|
5590
5557
|
const lexTokens = (args) => {
|
|
5591
5558
|
const tokens = [];
|
|
5592
|
-
for (const arg of args) if (!arg.startsWith("-")) tokens.push({
|
|
5559
|
+
for (const arg of args) if (!arg.startsWith("-") || negativeNumberRegex.test(arg)) tokens.push({
|
|
5593
5560
|
_tag: "Value",
|
|
5594
5561
|
value: arg
|
|
5595
5562
|
});
|
|
@@ -5633,7 +5600,7 @@ const lexTokens = (args) => {
|
|
|
5633
5600
|
return tokens;
|
|
5634
5601
|
};
|
|
5635
5602
|
//#endregion
|
|
5636
|
-
//#region node_modules/.pnpm/effect@
|
|
5603
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/cli/internal/auto-suggest.js
|
|
5637
5604
|
const levenshtein = (a, b) => {
|
|
5638
5605
|
const m = a.length;
|
|
5639
5606
|
const n = b.length;
|
|
@@ -5653,7 +5620,7 @@ const suggest = (input, candidates) => {
|
|
|
5653
5620
|
return distances.filter(([d]) => d === minDistance).map(([, c]) => c);
|
|
5654
5621
|
};
|
|
5655
5622
|
//#endregion
|
|
5656
|
-
//#region node_modules/.pnpm/effect@
|
|
5623
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/cli/internal/parser.js
|
|
5657
5624
|
const getCommandPath = (parsedInput) => match$2(parsedInput.subcommand, {
|
|
5658
5625
|
onNone: () => [],
|
|
5659
5626
|
onSome: (subcommand) => [subcommand.name, ...getCommandPath(subcommand.parsedInput)]
|
|
@@ -6081,7 +6048,7 @@ const scanCommandLevel = (tokens, context) => {
|
|
|
6081
6048
|
return toLeafResult(state);
|
|
6082
6049
|
};
|
|
6083
6050
|
//#endregion
|
|
6084
|
-
//#region node_modules/.pnpm/effect@
|
|
6051
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/cli/internal/wizard.js
|
|
6085
6052
|
const run$2 = fnUntraced(function* (command, options) {
|
|
6086
6053
|
const commandPath = options?.commandPath ?? [command.name];
|
|
6087
6054
|
const selected = getCommandAtPath(command, commandPath);
|
|
@@ -6251,7 +6218,7 @@ const wrapCommand = (commandLine) => {
|
|
|
6251
6218
|
};
|
|
6252
6219
|
const formatShellArg = (arg) => /^[A-Za-z0-9_./:@%+=,-]+$/.test(arg) ? arg : `'${arg.replaceAll("'", `'"'"'`)}'`;
|
|
6253
6220
|
//#endregion
|
|
6254
|
-
//#region node_modules/.pnpm/effect@
|
|
6221
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/cli/Command.js
|
|
6255
6222
|
const isCommand = (u) => hasProperty(u, TypeId$15);
|
|
6256
6223
|
const make$28 = (name, config, handler) => {
|
|
6257
6224
|
const parsedConfig = parseConfig(config ?? {});
|
|
@@ -6489,7 +6456,7 @@ const runWith = (command, config) => {
|
|
|
6489
6456
|
}, catchFilter((error) => isCliError(error) && error._tag === "ShowHelp" ? succeed$1(error) : fail$1(error), (error) => andThen(showHelp(command, error, config.renderErrors !== false), fail$2(error))), catchFilter((error) => config.renderErrors !== false && isCliError(error) && error._tag === "UserError" ? succeed$1(error) : fail$1(error), (error) => andThen(showUserError(error), fail$2(error))), catchFilter((e) => isQuitError(e) ? succeed$1(e) : fail$1(e), (_) => interrupt));
|
|
6490
6457
|
};
|
|
6491
6458
|
//#endregion
|
|
6492
|
-
//#region node_modules/.pnpm/effect@
|
|
6459
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/Brand.js
|
|
6493
6460
|
function nominal() {
|
|
6494
6461
|
return Object.assign((input) => input, {
|
|
6495
6462
|
option: (input) => some(input),
|
|
@@ -6498,7 +6465,7 @@ function nominal() {
|
|
|
6498
6465
|
});
|
|
6499
6466
|
}
|
|
6500
6467
|
//#endregion
|
|
6501
|
-
//#region node_modules/.pnpm/effect@
|
|
6468
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/process/ChildProcessSpawner.js
|
|
6502
6469
|
const ExitCode = nominal();
|
|
6503
6470
|
const ProcessId = nominal();
|
|
6504
6471
|
const HandleTypeId = "~effect/process/ChildProcessSpawner/ChildProcessHandle";
|
|
@@ -6527,7 +6494,7 @@ const make$27 = (spawn) => {
|
|
|
6527
6494
|
};
|
|
6528
6495
|
var ChildProcessSpawner = class extends Service()("effect/process/ChildProcessSpawner") {};
|
|
6529
6496
|
//#endregion
|
|
6530
|
-
//#region node_modules/.pnpm/effect@
|
|
6497
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/process/ChildProcess.js
|
|
6531
6498
|
const TypeId$14 = "~effect/process/ChildProcess";
|
|
6532
6499
|
const Proto$6 = {
|
|
6533
6500
|
...Prototype({
|
|
@@ -6641,7 +6608,7 @@ const concatTokens = (prevTokens, nextTokens, isSeparated) => isSeparated || pre
|
|
|
6641
6608
|
...nextTokens.slice(1)
|
|
6642
6609
|
];
|
|
6643
6610
|
//#endregion
|
|
6644
|
-
//#region node_modules/.pnpm/@effect+platform-node-shared@
|
|
6611
|
+
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0_effect@4.0.0/node_modules/@effect/platform-node-shared/dist/internal/nodeChildProcessSpawner.js
|
|
6645
6612
|
const buildSpawnOptions = (options, base, platform) => {
|
|
6646
6613
|
const detached = options.detached ?? platform !== "win32";
|
|
6647
6614
|
return {
|
|
@@ -6652,7 +6619,7 @@ const buildSpawnOptions = (options, base, platform) => {
|
|
|
6652
6619
|
};
|
|
6653
6620
|
};
|
|
6654
6621
|
//#endregion
|
|
6655
|
-
//#region node_modules/.pnpm/@effect+platform-node-shared@
|
|
6622
|
+
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0_effect@4.0.0/node_modules/@effect/platform-node-shared/dist/internal/utils.js
|
|
6656
6623
|
const handleErrnoException = (module, method) => (err, [path]) => {
|
|
6657
6624
|
let reason = "Unknown";
|
|
6658
6625
|
switch (err.code) {
|
|
@@ -6686,7 +6653,7 @@ const handleErrnoException = (module, method) => (err, [path]) => {
|
|
|
6686
6653
|
});
|
|
6687
6654
|
};
|
|
6688
6655
|
//#endregion
|
|
6689
|
-
//#region node_modules/.pnpm/@effect+platform-node-shared@
|
|
6656
|
+
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0_effect@4.0.0/node_modules/@effect/platform-node-shared/dist/NodeChildProcessSpawner.js
|
|
6690
6657
|
const toError = (error) => error instanceof globalThis.Error ? error : new globalThis.Error(String(error));
|
|
6691
6658
|
const toPlatformError = (method, error, command) => {
|
|
6692
6659
|
const { commands } = flattenCommand(command);
|
|
@@ -7111,7 +7078,7 @@ const flattenCommand = (command) => {
|
|
|
7111
7078
|
};
|
|
7112
7079
|
};
|
|
7113
7080
|
//#endregion
|
|
7114
|
-
//#region node_modules/.pnpm/effect@
|
|
7081
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/internal/ulid.js
|
|
7115
7082
|
const maxTimestamp = 2 ** 48 - 1;
|
|
7116
7083
|
const base32Chars = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
7117
7084
|
const ulidString = (timestampMillis, bytes) => {
|
|
@@ -7133,7 +7100,7 @@ const ulidString = (timestampMillis, bytes) => {
|
|
|
7133
7100
|
return out;
|
|
7134
7101
|
};
|
|
7135
7102
|
//#endregion
|
|
7136
|
-
//#region node_modules/.pnpm/effect@
|
|
7103
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/internal/uuid.js
|
|
7137
7104
|
const hex = (byte) => byte.toString(16).padStart(2, "0");
|
|
7138
7105
|
const stringify = (bytes) => {
|
|
7139
7106
|
return [
|
|
@@ -7166,7 +7133,7 @@ function v7Bytes(timestampMillis, bytes = randomBytes()) {
|
|
|
7166
7133
|
}
|
|
7167
7134
|
const v7String = (timestampMillis, bytes) => stringify(bytes === void 0 ? v7Bytes(timestampMillis) : v7Bytes(timestampMillis, bytes));
|
|
7168
7135
|
//#endregion
|
|
7169
|
-
//#region node_modules/.pnpm/effect@
|
|
7136
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/Crypto.js
|
|
7170
7137
|
const TypeId$13 = "~effect/Crypto";
|
|
7171
7138
|
const Crypto = Service("effect/Crypto");
|
|
7172
7139
|
const make$24 = (impl) => {
|
|
@@ -7221,7 +7188,7 @@ const validateSize = (method, size) => Number.isSafeInteger(size) && size >= 0 ?
|
|
|
7221
7188
|
description: "size must be a non-negative safe integer"
|
|
7222
7189
|
}));
|
|
7223
7190
|
//#endregion
|
|
7224
|
-
//#region node_modules/.pnpm/@effect+platform-node-shared@
|
|
7191
|
+
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0_effect@4.0.0/node_modules/@effect/platform-node-shared/dist/NodeCrypto.js
|
|
7225
7192
|
const toHashAlgorithm = (algorithm) => {
|
|
7226
7193
|
switch (algorithm) {
|
|
7227
7194
|
case "SHA-1": return "sha1";
|
|
@@ -7246,10 +7213,10 @@ const make$23 = make$24({
|
|
|
7246
7213
|
});
|
|
7247
7214
|
const layer$18 = succeed$4(Crypto, make$23);
|
|
7248
7215
|
//#endregion
|
|
7249
|
-
//#region node_modules/.pnpm/@effect+platform-node@
|
|
7216
|
+
//#region node_modules/.pnpm/@effect+platform-node@4.0.0_effect@4.0.0_redis@6.2.1/node_modules/@effect/platform-node/dist/NodeCrypto.js
|
|
7250
7217
|
const layer$17 = layer$18;
|
|
7251
7218
|
//#endregion
|
|
7252
|
-
//#region node_modules/.pnpm/@effect+platform-node-shared@
|
|
7219
|
+
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0_effect@4.0.0/node_modules/@effect/platform-node-shared/dist/NodeFileSystem.js
|
|
7253
7220
|
const handleBadArgument = (method) => (err) => badArgument({
|
|
7254
7221
|
module: "FileSystem",
|
|
7255
7222
|
method,
|
|
@@ -7613,10 +7580,10 @@ const makeFileSystem = map$5(serviceOption(WatchBackend), (backend) => make$37({
|
|
|
7613
7580
|
}));
|
|
7614
7581
|
const layer$16 = effect(FileSystem)(makeFileSystem);
|
|
7615
7582
|
//#endregion
|
|
7616
|
-
//#region node_modules/.pnpm/@effect+platform-node@
|
|
7583
|
+
//#region node_modules/.pnpm/@effect+platform-node@4.0.0_effect@4.0.0_redis@6.2.1/node_modules/@effect/platform-node/dist/NodeFileSystem.js
|
|
7617
7584
|
const layer$15 = layer$16;
|
|
7618
7585
|
//#endregion
|
|
7619
|
-
//#region node_modules/.pnpm/@effect+platform-node-shared@
|
|
7586
|
+
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0_effect@4.0.0/node_modules/@effect/platform-node-shared/dist/NodePath.js
|
|
7620
7587
|
const fileUrlOps = (windows) => ({
|
|
7621
7588
|
fromFileUrl: (url) => try_({
|
|
7622
7589
|
try: () => NodeUrl.fileURLToPath(url, { windows }),
|
|
@@ -7651,10 +7618,10 @@ const layer$14 = succeed$4(Path$3)({
|
|
|
7651
7618
|
...fileUrlOps(void 0)
|
|
7652
7619
|
});
|
|
7653
7620
|
//#endregion
|
|
7654
|
-
//#region node_modules/.pnpm/@effect+platform-node@
|
|
7621
|
+
//#region node_modules/.pnpm/@effect+platform-node@4.0.0_effect@4.0.0_redis@6.2.1/node_modules/@effect/platform-node/dist/NodePath.js
|
|
7655
7622
|
const layer$13 = layer$14;
|
|
7656
7623
|
//#endregion
|
|
7657
|
-
//#region node_modules/.pnpm/@effect+platform-node-shared@
|
|
7624
|
+
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0_effect@4.0.0/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
|
|
7658
7625
|
const layer$12 = succeed$4(Stdio, make$31({
|
|
7659
7626
|
args: sync(() => process.argv.slice(2)),
|
|
7660
7627
|
stdinIsTerminal: sync(() => process.stdin.isTTY === true),
|
|
@@ -7691,10 +7658,10 @@ const layer$12 = succeed$4(Stdio, make$31({
|
|
|
7691
7658
|
})
|
|
7692
7659
|
}));
|
|
7693
7660
|
//#endregion
|
|
7694
|
-
//#region node_modules/.pnpm/@effect+platform-node@
|
|
7661
|
+
//#region node_modules/.pnpm/@effect+platform-node@4.0.0_effect@4.0.0_redis@6.2.1/node_modules/@effect/platform-node/dist/NodeStdio.js
|
|
7695
7662
|
const layer$11 = layer$12;
|
|
7696
7663
|
//#endregion
|
|
7697
|
-
//#region node_modules/.pnpm/@effect+platform-node-shared@
|
|
7664
|
+
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0_effect@4.0.0/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
|
|
7698
7665
|
const make$22 = fnUntraced(function* (shouldQuit = defaultShouldQuit) {
|
|
7699
7666
|
const stdin = process.stdin;
|
|
7700
7667
|
const stdout = process.stdout;
|
|
@@ -7798,13 +7765,13 @@ function defaultShouldQuit(input) {
|
|
|
7798
7765
|
return input.key.ctrl && (input.key.name === "c" || input.key.name === "d");
|
|
7799
7766
|
}
|
|
7800
7767
|
//#endregion
|
|
7801
|
-
//#region node_modules/.pnpm/@effect+platform-node@
|
|
7768
|
+
//#region node_modules/.pnpm/@effect+platform-node@4.0.0_effect@4.0.0_redis@6.2.1/node_modules/@effect/platform-node/dist/NodeTerminal.js
|
|
7802
7769
|
const layer$9 = layer$10;
|
|
7803
7770
|
//#endregion
|
|
7804
|
-
//#region node_modules/.pnpm/@effect+platform-node@
|
|
7771
|
+
//#region node_modules/.pnpm/@effect+platform-node@4.0.0_effect@4.0.0_redis@6.2.1/node_modules/@effect/platform-node/dist/NodeServices.js
|
|
7805
7772
|
const layer$8 = provideMerge(layer$19, mergeAll(layer$15, layer$17, layer$13, layer$11, layer$9));
|
|
7806
7773
|
//#endregion
|
|
7807
|
-
//#region node_modules/.pnpm/@effect+platform-node-shared@
|
|
7774
|
+
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0_effect@4.0.0/node_modules/@effect/platform-node-shared/dist/NodeRuntime.js
|
|
7808
7775
|
const runMain$1 = makeRunMain(({ fiber, teardown }) => {
|
|
7809
7776
|
let receivedSignal = false;
|
|
7810
7777
|
fiber.addObserver((exit) => {
|
|
@@ -7822,10 +7789,10 @@ const runMain$1 = makeRunMain(({ fiber, teardown }) => {
|
|
|
7822
7789
|
process.on("SIGTERM", onSigint);
|
|
7823
7790
|
});
|
|
7824
7791
|
//#endregion
|
|
7825
|
-
//#region node_modules/.pnpm/@effect+platform-node@
|
|
7792
|
+
//#region node_modules/.pnpm/@effect+platform-node@4.0.0_effect@4.0.0_redis@6.2.1/node_modules/@effect/platform-node/dist/NodeRuntime.js
|
|
7826
7793
|
const runMain = runMain$1;
|
|
7827
7794
|
//#endregion
|
|
7828
|
-
//#region node_modules/.pnpm/effect@
|
|
7795
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/socket/Socket.js
|
|
7829
7796
|
const TypeId$12 = "~effect/socket/Socket";
|
|
7830
7797
|
const Socket = Service("effect/socket/Socket");
|
|
7831
7798
|
const make$21 = (options) => Socket.of({
|
|
@@ -8085,7 +8052,7 @@ const layerWebSocketConstructor = succeed$4(WebSocketConstructor)((url, options)
|
|
|
8085
8052
|
return new (webSocketWithOptions())(url, { headers: options.headers });
|
|
8086
8053
|
});
|
|
8087
8054
|
//#endregion
|
|
8088
|
-
//#region node_modules/.pnpm/effect@
|
|
8055
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/ai/Prompt.js
|
|
8089
8056
|
const ProviderOptions = Record(String$5, NullOr(Json));
|
|
8090
8057
|
const PartTypeId$1 = "~effect/ai/Prompt/Part";
|
|
8091
8058
|
const BasePart$1 = Struct({
|
|
@@ -8345,11 +8312,11 @@ const setSystem = dual(2, (self, content) => {
|
|
|
8345
8312
|
return makePrompt(messages);
|
|
8346
8313
|
});
|
|
8347
8314
|
//#endregion
|
|
8348
|
-
//#region node_modules/.pnpm/effect@
|
|
8315
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/UndefinedOr.js
|
|
8349
8316
|
const map = dual(2, (self, f) => self === void 0 ? void 0 : f(self));
|
|
8350
8317
|
const match$1 = dual(2, (self, { onDefined, onUndefined }) => self === void 0 ? onUndefined() : onDefined(self));
|
|
8351
8318
|
//#endregion
|
|
8352
|
-
//#region node_modules/.pnpm/effect@
|
|
8319
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/persistence/KeyValueStore.js
|
|
8353
8320
|
const TypeId$10 = "~effect/persistence/KeyValueStore";
|
|
8354
8321
|
const ErrorTypeId = "~effect/persistence/KeyValueStore/KeyValueStoreError";
|
|
8355
8322
|
var KeyValueStoreError = class extends TaggedError("KeyValueStoreError") {
|
|
@@ -8466,7 +8433,7 @@ const toSchemaStore = (self, schema) => {
|
|
|
8466
8433
|
};
|
|
8467
8434
|
};
|
|
8468
8435
|
//#endregion
|
|
8469
|
-
//#region node_modules/.pnpm/effect@
|
|
8436
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/ai/AiError.js
|
|
8470
8437
|
const HttpRequestDetails$1 = Struct({
|
|
8471
8438
|
method: Literals$2([
|
|
8472
8439
|
"GET",
|
|
@@ -8904,7 +8871,7 @@ const reasonFromHttpStatus = (params) => {
|
|
|
8904
8871
|
}
|
|
8905
8872
|
};
|
|
8906
8873
|
//#endregion
|
|
8907
|
-
//#region node_modules/.pnpm/effect@
|
|
8874
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/FiberSet.js
|
|
8908
8875
|
const TypeId$8 = "~effect/FiberSet";
|
|
8909
8876
|
const isFiberSet = (u) => hasProperty(u, TypeId$8);
|
|
8910
8877
|
const Proto$4 = {
|
|
@@ -8972,7 +8939,7 @@ const run = function() {
|
|
|
8972
8939
|
};
|
|
8973
8940
|
const runImpl = (self, effect, options) => withFiber((parent) => {
|
|
8974
8941
|
if (self.state._tag === "Closed") return sync(constInterruptedFiber);
|
|
8975
|
-
const fiber =
|
|
8942
|
+
const fiber = forkUnsafe(parent, effect, options?.startImmediately ?? true, true);
|
|
8976
8943
|
addUnsafe(self, fiber, options);
|
|
8977
8944
|
return succeed$2(fiber);
|
|
8978
8945
|
});
|
|
@@ -8983,12 +8950,12 @@ const awaitEmpty = (self) => whileLoop({
|
|
|
8983
8950
|
step: constVoid
|
|
8984
8951
|
});
|
|
8985
8952
|
//#endregion
|
|
8986
|
-
//#region node_modules/.pnpm/effect@
|
|
8953
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/Random.js
|
|
8987
8954
|
const Random = Random$1;
|
|
8988
8955
|
const randomWith = (f) => withFiber((fiber) => succeed$2(f(fiber.getRef(Random))));
|
|
8989
8956
|
const next = randomWith((r) => r.nextDoubleUnsafe());
|
|
8990
8957
|
//#endregion
|
|
8991
|
-
//#region node_modules/.pnpm/effect@
|
|
8958
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/ai/IdGenerator.js
|
|
8992
8959
|
var IdGenerator = class extends Service()("@effect/ai/IdGenerator") {};
|
|
8993
8960
|
const DEFAULT_ALPHABET = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
|
8994
8961
|
const DEFAULT_SEPARATOR = "_";
|
|
@@ -9008,7 +8975,7 @@ const makeGenerator = ({ alphabet = DEFAULT_ALPHABET, prefix, separator = DEFAUL
|
|
|
9008
8975
|
};
|
|
9009
8976
|
const defaultIdGenerator = { generateId: makeGenerator({ prefix: "id" }) };
|
|
9010
8977
|
//#endregion
|
|
9011
|
-
//#region node_modules/.pnpm/effect@
|
|
8978
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/ai/Tool.js
|
|
9012
8979
|
const TypeId$7 = "~effect/ai/Tool";
|
|
9013
8980
|
const ProviderDefinedTypeId = "~effect/ai/Tool/ProviderDefined";
|
|
9014
8981
|
const DynamicTypeId = "~effect/ai/Tool/Dynamic";
|
|
@@ -9161,7 +9128,7 @@ function isEmptyParamsRecord(indexSignature) {
|
|
|
9161
9128
|
return indexSignature.parameter === string && isNever(indexSignature.type);
|
|
9162
9129
|
}
|
|
9163
9130
|
//#endregion
|
|
9164
|
-
//#region node_modules/.pnpm/effect@
|
|
9131
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/ai/internal/structured-output.js
|
|
9165
9132
|
const REST_PROPERTY_NAME = "__rest__";
|
|
9166
9133
|
const TAIL_PROPERTY_PREFIX = "__tail_";
|
|
9167
9134
|
const RECORD_DESCRIPTION = "Object encoded as array of [key, value] pairs. Apply object constraints to the decoded object";
|
|
@@ -9410,7 +9377,7 @@ function isJsonSchema(input) {
|
|
|
9410
9377
|
return typeof input === "object" && input !== null && !Array.isArray(input);
|
|
9411
9378
|
}
|
|
9412
9379
|
//#endregion
|
|
9413
|
-
//#region node_modules/.pnpm/effect@
|
|
9380
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/ai/internal/codec-transformer.js
|
|
9414
9381
|
const makeDefaultCodecTransformer = (toJsonSchemaDocument) => {
|
|
9415
9382
|
return (codec) => {
|
|
9416
9383
|
const document = resolveTopLevelReference(toJsonSchemaDocument(codec));
|
|
@@ -9424,7 +9391,7 @@ const makeDefaultCodecTransformer = (toJsonSchemaDocument) => {
|
|
|
9424
9391
|
};
|
|
9425
9392
|
const defaultCodecTransformer$1 = makeDefaultCodecTransformer(toJsonSchemaDocument);
|
|
9426
9393
|
//#endregion
|
|
9427
|
-
//#region node_modules/.pnpm/effect@
|
|
9394
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/ai/Response.js
|
|
9428
9395
|
const PartTypeId = "~effect/ai/Response/Part";
|
|
9429
9396
|
const Part = (toolkit) => {
|
|
9430
9397
|
const toolCalls = [];
|
|
@@ -9671,7 +9638,7 @@ const ErrorPart = Struct({
|
|
|
9671
9638
|
error: Unknown
|
|
9672
9639
|
}).annotate({ identifier: "ErrorPart" });
|
|
9673
9640
|
//#endregion
|
|
9674
|
-
//#region node_modules/.pnpm/effect@
|
|
9641
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/ai/ResponseIdTracker.js
|
|
9675
9642
|
var ResponseIdTracker = class extends Service()("effect/ai/ResponseIdTracker") {};
|
|
9676
9643
|
const make$15 = sync(() => {
|
|
9677
9644
|
const sentParts = new Map();
|
|
@@ -9717,7 +9684,7 @@ const make$15 = sync(() => {
|
|
|
9717
9684
|
};
|
|
9718
9685
|
});
|
|
9719
9686
|
//#endregion
|
|
9720
|
-
//#region node_modules/.pnpm/effect@
|
|
9687
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/ai/Telemetry.js
|
|
9721
9688
|
const addSpanAttributes = (keyPrefix, transformKey) => (span, attributes) => {
|
|
9722
9689
|
for (const [key, value] of Object.entries(attributes)) if (isNotNullish(value)) span.attribute(`${keyPrefix}.${transformKey(key)}`, value);
|
|
9723
9690
|
};
|
|
@@ -9737,7 +9704,7 @@ const addGenAIAnnotations$2 = dual(2, (span, options) => {
|
|
|
9737
9704
|
});
|
|
9738
9705
|
var CurrentSpanTransformer = class extends Service()("effect/ai/Telemetry/CurrentSpanTransformer") {};
|
|
9739
9706
|
//#endregion
|
|
9740
|
-
//#region node_modules/.pnpm/effect@
|
|
9707
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/ai/Toolkit.js
|
|
9741
9708
|
const TypeId$6 = "~effect/ai/Toolkit";
|
|
9742
9709
|
const FailureOrigin = Reference("effect/ai/Toolkit/FailureOrigin", { defaultValue: () => "result" });
|
|
9743
9710
|
const failureCause = (error, origin) => annotate$1(fail$4(error), make$42(FailureOrigin, origin));
|
|
@@ -9905,7 +9872,7 @@ const merge = (...toolkits) => {
|
|
|
9905
9872
|
return makeProto$2(tools);
|
|
9906
9873
|
};
|
|
9907
9874
|
//#endregion
|
|
9908
|
-
//#region node_modules/.pnpm/effect@
|
|
9875
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/ai/LanguageModel.js
|
|
9909
9876
|
const LanguageModel = Service("effect/ai/LanguageModel");
|
|
9910
9877
|
const TypeId$5 = "~effect/ai/LanguageModel";
|
|
9911
9878
|
const defaultCodecTransformer = defaultCodecTransformer$1;
|
|
@@ -12095,7 +12062,7 @@ var ExaError = class extends TaggedError$1()("ExaError", { cause: Defect() }) {}
|
|
|
12095
12062
|
const layer$7 = effect(ExaSearch, gen(function* () {
|
|
12096
12063
|
const scope$4 = yield* scope;
|
|
12097
12064
|
const getClient = yield* cachedWithTTL(gen(function* () {
|
|
12098
|
-
const McpClient = yield* tryPromise(() => import("./McpClient-
|
|
12065
|
+
const McpClient = yield* tryPromise(() => import("./McpClient-CLpFJSre.mjs"));
|
|
12099
12066
|
const context = yield* buildWithScope(McpClient.layer, scope$4);
|
|
12100
12067
|
return get$3(context, McpClient.McpClient);
|
|
12101
12068
|
}), (exit) => isSuccess$1(exit) ? infinity : zero);
|
|
@@ -12925,7 +12892,7 @@ const renderLocation = (location) => {
|
|
|
12925
12892
|
return encoded.slice(1, -1) === location ? location : encoded;
|
|
12926
12893
|
};
|
|
12927
12894
|
//#endregion
|
|
12928
|
-
//#region node_modules/.pnpm/effect@
|
|
12895
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/workers/Transferable.js
|
|
12929
12896
|
var Collector = class extends Service()("effect/workers/Transferable/Collector") {};
|
|
12930
12897
|
const makeCollectorUnsafe = () => {
|
|
12931
12898
|
let tranferables = [];
|
|
@@ -12948,10 +12915,10 @@ const makeCollectorUnsafe = () => {
|
|
|
12948
12915
|
});
|
|
12949
12916
|
};
|
|
12950
12917
|
//#endregion
|
|
12951
|
-
//#region node_modules/.pnpm/effect@
|
|
12918
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/PrimaryKey.js
|
|
12952
12919
|
const symbol = "~effect/PrimaryKey";
|
|
12953
12920
|
//#endregion
|
|
12954
|
-
//#region node_modules/.pnpm/effect@
|
|
12921
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/rpc/RpcSchema.js
|
|
12955
12922
|
const StreamSchemaTypeId = "~effect/rpc/RpcSchema/StreamSchema";
|
|
12956
12923
|
function isStreamSchema(schema) {
|
|
12957
12924
|
return hasProperty(schema, StreamSchemaTypeId);
|
|
@@ -12978,7 +12945,7 @@ var ClientAbort = class extends Service()("effect/rpc/RpcSchema/ClientAbort") {
|
|
|
12978
12945
|
}));
|
|
12979
12946
|
};
|
|
12980
12947
|
//#endregion
|
|
12981
|
-
//#region node_modules/.pnpm/effect@
|
|
12948
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/rpc/Rpc.js
|
|
12982
12949
|
const TypeId$4 = "~effect/rpc/Rpc";
|
|
12983
12950
|
const Proto$1 = {
|
|
12984
12951
|
[TypeId$4]: TypeId$4,
|
|
@@ -13106,7 +13073,7 @@ const exitSchema = (self) => {
|
|
|
13106
13073
|
const WrapperTypeId = "~effect/rpc/Rpc/Wrapper";
|
|
13107
13074
|
const isWrapper = (u) => WrapperTypeId in u;
|
|
13108
13075
|
//#endregion
|
|
13109
|
-
//#region node_modules/.pnpm/effect@
|
|
13076
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/rpc/RpcMessage.js
|
|
13110
13077
|
const RequestId = (id) => id;
|
|
13111
13078
|
const RequestIdSchema = Union([String$5, Number$2]);
|
|
13112
13079
|
const RequestEncodedSchema = Struct({
|
|
@@ -13149,7 +13116,7 @@ const EncodedSchema = Union([
|
|
|
13149
13116
|
Struct({ _tag: tag("Pong") })
|
|
13150
13117
|
]);
|
|
13151
13118
|
//#endregion
|
|
13152
|
-
//#region node_modules/.pnpm/effect@
|
|
13119
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/rpc/Utils.js
|
|
13153
13120
|
const withRunClient = (f) => suspend(() => {
|
|
13154
13121
|
const clientIds = new Set();
|
|
13155
13122
|
const clientBuffers = new Map();
|
|
@@ -13188,7 +13155,7 @@ const withRunClient = (f) => suspend(() => {
|
|
|
13188
13155
|
}));
|
|
13189
13156
|
});
|
|
13190
13157
|
//#endregion
|
|
13191
|
-
//#region node_modules/.pnpm/effect@
|
|
13158
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/rpc/RpcClient.js
|
|
13192
13159
|
let requestIdCounter = 0;
|
|
13193
13160
|
const makeNoSerialization = fnUntraced(function* (group, options) {
|
|
13194
13161
|
const spanPrefix = options?.spanPrefix ?? "RpcClient";
|
|
@@ -13513,7 +13480,7 @@ var Protocol = class extends Service()("effect/rpc/RpcClient/Protocol") {
|
|
|
13513
13480
|
static make = withRunClient;
|
|
13514
13481
|
};
|
|
13515
13482
|
//#endregion
|
|
13516
|
-
//#region node_modules/.pnpm/effect@
|
|
13483
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/rpc/RpcGroup.js
|
|
13517
13484
|
const RpcGroupProto = {
|
|
13518
13485
|
add(...rpcs) {
|
|
13519
13486
|
const requests = new Map(this.requests);
|
|
@@ -14521,13 +14488,13 @@ var QueueWriteStream = class extends Writable {
|
|
|
14521
14488
|
}
|
|
14522
14489
|
};
|
|
14523
14490
|
//#endregion
|
|
14524
|
-
//#region node_modules/.pnpm/effect@
|
|
14491
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/ChannelSchema.js
|
|
14525
14492
|
const decode$1 = (schema, options) => () => {
|
|
14526
14493
|
const decode = decodeEffect(NonEmptyArray(schema), options);
|
|
14527
14494
|
return fromTransform$1((upstream, _scope) => succeed$2(flatMap$1(upstream, (chunk) => decode(chunk))));
|
|
14528
14495
|
};
|
|
14529
14496
|
//#endregion
|
|
14530
|
-
//#region node_modules/.pnpm/effect@
|
|
14497
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/encoding/Sse.js
|
|
14531
14498
|
const SseErrorTypeId = "~effect/encoding/Sse/SseError";
|
|
14532
14499
|
var EventTooLarge = class extends TaggedError("EventTooLarge") {
|
|
14533
14500
|
get message() {
|
|
@@ -14698,7 +14665,7 @@ var Retry = class Retry extends TaggedClass$1("Retry") {
|
|
|
14698
14665
|
}
|
|
14699
14666
|
};
|
|
14700
14667
|
//#endregion
|
|
14701
|
-
//#region node_modules/.pnpm/@effect+ai-openai@
|
|
14668
|
+
//#region node_modules/.pnpm/@effect+ai-openai@4.0.0_effect@4.0.0/node_modules/@effect/ai-openai/dist/Generated.js
|
|
14702
14669
|
const AdminApiKey = Struct({
|
|
14703
14670
|
"object": Literal("organization.admin_api_key").annotate({ "description": "The object type, which is always `organization.admin_api_key`" }),
|
|
14704
14671
|
"id": String$5.annotate({ "description": "The identifier, which can be referenced in API endpoints" }),
|
|
@@ -18733,9 +18700,10 @@ const InputItem$1 = Union([
|
|
|
18733
18700
|
"in_progress",
|
|
18734
18701
|
"searching",
|
|
18735
18702
|
"completed",
|
|
18736
|
-
"failed"
|
|
18703
|
+
"failed",
|
|
18704
|
+
"incomplete"
|
|
18737
18705
|
]).annotate({ "description": "The status of the web search tool call.\n" }),
|
|
18738
|
-
"action": Union([
|
|
18706
|
+
"action": optionalKey(Union([
|
|
18739
18707
|
Struct({
|
|
18740
18708
|
"type": Literal("search").annotate({ "description": "The action type.\n" }),
|
|
18741
18709
|
"query": optionalKey(String$5.annotate({ "description": "[DEPRECATED] The search query.\n" })),
|
|
@@ -18784,7 +18752,7 @@ const InputItem$1 = Union([
|
|
|
18784
18752
|
"title": "Find action",
|
|
18785
18753
|
"description": "An object describing the specific action taken in this web search call.\nIncludes details on how the model used the web (search, open_page, find_in_page).\n"
|
|
18786
18754
|
})
|
|
18787
|
-
], { mode: "oneOf" })
|
|
18755
|
+
], { mode: "oneOf" }))
|
|
18788
18756
|
}).annotate({
|
|
18789
18757
|
"title": "Web search tool call",
|
|
18790
18758
|
"description": "Content item used to generate a response.\n"
|
|
@@ -19902,7 +19870,7 @@ const ListSkillVersionsParams = Struct({
|
|
|
19902
19870
|
});
|
|
19903
19871
|
var OpenAiClientErrorImpl = class extends Error$2 {};
|
|
19904
19872
|
//#endregion
|
|
19905
|
-
//#region node_modules/.pnpm/@effect+ai-openai@
|
|
19873
|
+
//#region node_modules/.pnpm/@effect+ai-openai@4.0.0_effect@4.0.0/node_modules/@effect/ai-openai/dist/internal/errors.js
|
|
19906
19874
|
const OpenAiErrorBody$1 = Struct({ error: Struct({
|
|
19907
19875
|
message: String$5,
|
|
19908
19876
|
type: optional$2(NullOr(String$5)),
|
|
@@ -20112,12 +20080,12 @@ const mapStatusCodeToReason$1 = ({ status, headers, message, metadata, http }) =
|
|
|
20112
20080
|
}
|
|
20113
20081
|
};
|
|
20114
20082
|
//#endregion
|
|
20115
|
-
//#region node_modules/.pnpm/@effect+ai-openai@
|
|
20083
|
+
//#region node_modules/.pnpm/@effect+ai-openai@4.0.0_effect@4.0.0/node_modules/@effect/ai-openai/dist/OpenAiConfig.js
|
|
20116
20084
|
var OpenAiConfig$1 = class OpenAiConfig$1 extends Service()("@effect/ai-openai/OpenAiConfig") {
|
|
20117
20085
|
static getOrUndefined = map$5(context(), getOrUndefined$1(OpenAiConfig$1));
|
|
20118
20086
|
};
|
|
20119
20087
|
//#endregion
|
|
20120
|
-
//#region node_modules/.pnpm/@effect+ai-openai@
|
|
20088
|
+
//#region node_modules/.pnpm/@effect+ai-openai@4.0.0_effect@4.0.0/node_modules/@effect/ai-openai/dist/OpenAiSchema.js
|
|
20121
20089
|
const UnknownRecord = Record(String$5, Unknown);
|
|
20122
20090
|
const JsonObject = Record(String$5, Unknown);
|
|
20123
20091
|
const MessageRole = Literals$2([
|
|
@@ -20845,7 +20813,7 @@ const CreateEmbeddingResponse = Struct({
|
|
|
20845
20813
|
}))
|
|
20846
20814
|
});
|
|
20847
20815
|
//#endregion
|
|
20848
|
-
//#region node_modules/.pnpm/@effect+ai-openai@
|
|
20816
|
+
//#region node_modules/.pnpm/@effect+ai-openai@4.0.0_effect@4.0.0/node_modules/@effect/ai-openai/dist/OpenAiClient.js
|
|
20849
20817
|
var OpenAiClient$1 = class extends Service()("@effect/ai-openai/OpenAiClient") {};
|
|
20850
20818
|
const RedactedOpenAiHeaders$1 = {
|
|
20851
20819
|
OpenAiOrganization: "OpenAI-Organization",
|
|
@@ -21037,7 +21005,7 @@ const AllEvents = Union([ErrorEvent, ResponseStreamEvent]);
|
|
|
21037
21005
|
const decodeEvent = decodeUnknownSync(fromJsonString(AllEvents));
|
|
21038
21006
|
const layerWebSocketMode = effectContext(makeSocket);
|
|
21039
21007
|
//#endregion
|
|
21040
|
-
//#region node_modules/.pnpm/effect@
|
|
21008
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/RequestResolver.js
|
|
21041
21009
|
const TypeId$3 = "~effect/RequestResolver";
|
|
21042
21010
|
const RequestResolverProto = {
|
|
21043
21011
|
[TypeId$3]: {
|
|
@@ -21119,7 +21087,7 @@ const withSpan = dual((args) => isRequestResolver(args[0]), (self, name, options
|
|
|
21119
21087
|
})
|
|
21120
21088
|
}));
|
|
21121
21089
|
//#endregion
|
|
21122
|
-
//#region node_modules/.pnpm/effect@
|
|
21090
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/ai/EmbeddingModel.js
|
|
21123
21091
|
const EmbeddingModel = Service("effect/ai/EmbeddingModel");
|
|
21124
21092
|
const TypeId$2 = "~effect/ai/EmbeddingModel";
|
|
21125
21093
|
var Dimensions = class extends Service()("effect/ai/EmbeddingModel/Dimensions") {};
|
|
@@ -21162,7 +21130,7 @@ const mapProviderResults = (inputLength, results) => {
|
|
|
21162
21130
|
return succeed$2(embeddings);
|
|
21163
21131
|
};
|
|
21164
21132
|
//#endregion
|
|
21165
|
-
//#region node_modules/.pnpm/effect@
|
|
21133
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/ai/Model.js
|
|
21166
21134
|
const TypeId$1 = "~effect/ai/Model";
|
|
21167
21135
|
var ProviderName = class extends Service()("effect/ai/Model/ProviderName") {};
|
|
21168
21136
|
var ModelName = class extends Service()("effect/ai/Model/ModelName") {};
|
|
@@ -21187,7 +21155,7 @@ const Proto = {
|
|
|
21187
21155
|
};
|
|
21188
21156
|
const make$5 = (provider, modelName, layer) => Object.assign(Object.create(Proto), { provider }, merge$3(layer, succeedContext(ProviderName.context(provider).pipe(add(ModelName, modelName)))));
|
|
21189
21157
|
//#endregion
|
|
21190
|
-
//#region node_modules/.pnpm/@effect+ai-openai@
|
|
21158
|
+
//#region node_modules/.pnpm/@effect+ai-openai@4.0.0_effect@4.0.0/node_modules/@effect/ai-openai/dist/OpenAiEmbeddingModel.js
|
|
21191
21159
|
var Config$2 = class extends Service()("@effect/ai-openai/OpenAiEmbeddingModel/Config") {};
|
|
21192
21160
|
const model$2 = (model, options) => make$5("openai", model, merge$3(layer$4({
|
|
21193
21161
|
model,
|
|
@@ -21236,7 +21204,7 @@ const invalidOutput = (description) => make$18({
|
|
|
21236
21204
|
reason: new InvalidOutputError({ description })
|
|
21237
21205
|
});
|
|
21238
21206
|
//#endregion
|
|
21239
|
-
//#region node_modules/.pnpm/effect@
|
|
21207
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/ai/OpenAiStructuredOutput.js
|
|
21240
21208
|
function toCodecOpenAI(schema) {
|
|
21241
21209
|
const codec = toCodec(schema);
|
|
21242
21210
|
const document = resolveTopLevelReference(toJsonSchemaDocument(codec, {
|
|
@@ -21444,7 +21412,7 @@ const formats = new Set([
|
|
|
21444
21412
|
"uuid"
|
|
21445
21413
|
]);
|
|
21446
21414
|
//#endregion
|
|
21447
|
-
//#region node_modules/.pnpm/@effect+ai-openai@
|
|
21415
|
+
//#region node_modules/.pnpm/@effect+ai-openai@4.0.0_effect@4.0.0/node_modules/@effect/ai-openai/dist/internal/utilities.js
|
|
21448
21416
|
const finishReasonMap$1 = {
|
|
21449
21417
|
content_filter: "content-filter",
|
|
21450
21418
|
function_call: "tool-calls",
|
|
@@ -21460,7 +21428,7 @@ const resolveFinishReason$1 = (finishReason, hasToolCalls) => {
|
|
|
21460
21428
|
return reason;
|
|
21461
21429
|
};
|
|
21462
21430
|
//#endregion
|
|
21463
|
-
//#region node_modules/.pnpm/@effect+ai-openai@
|
|
21431
|
+
//#region node_modules/.pnpm/@effect+ai-openai@4.0.0_effect@4.0.0/node_modules/@effect/ai-openai/dist/OpenAiTelemetry.js
|
|
21464
21432
|
const addOpenAiRequestAttributes$1 = addSpanAttributes("gen_ai.openai.request", camelToSnake);
|
|
21465
21433
|
const addOpenAiResponseAttributes$1 = addSpanAttributes("gen_ai.openai.response", camelToSnake);
|
|
21466
21434
|
const addGenAIAnnotations$1 = dual(2, (span, options) => {
|
|
@@ -21471,7 +21439,7 @@ const addGenAIAnnotations$1 = dual(2, (span, options) => {
|
|
|
21471
21439
|
}
|
|
21472
21440
|
});
|
|
21473
21441
|
//#endregion
|
|
21474
|
-
//#region node_modules/.pnpm/@effect+ai-openai@
|
|
21442
|
+
//#region node_modules/.pnpm/@effect+ai-openai@4.0.0_effect@4.0.0/node_modules/@effect/ai-openai/dist/OpenAiLanguageModel.js
|
|
21475
21443
|
ModelIdsResponses.members[1];
|
|
21476
21444
|
ModelIdsShared.members[1];
|
|
21477
21445
|
var Config$1 = class extends Service()("@effect/ai-openai/OpenAiLanguageModel/Config") {};
|
|
@@ -21749,11 +21717,11 @@ const prepareMessages$1 = fnUntraced(function* ({ config, options, capabilities,
|
|
|
21749
21717
|
switch (part.name) {
|
|
21750
21718
|
case "OpenAiWebSearch":
|
|
21751
21719
|
case "OpenAiWebSearchPreview":
|
|
21752
|
-
if (!hasProperty(result.result, "
|
|
21720
|
+
if (!hasProperty(result.result, "status")) return yield* unreplayableProviderItem(part.name, part.id);
|
|
21753
21721
|
messages.push({
|
|
21754
21722
|
type: "web_search_call",
|
|
21755
21723
|
id: itemId,
|
|
21756
|
-
action: result.result.action,
|
|
21724
|
+
...hasProperty(result.result, "action") ? { action: result.result.action } : void 0,
|
|
21757
21725
|
status: result.result.status
|
|
21758
21726
|
});
|
|
21759
21727
|
break;
|
|
@@ -22245,7 +22213,7 @@ const makeResponse$1 = fnUntraced(function* ({ options, rawResponse, response, t
|
|
|
22245
22213
|
type: "tool-call",
|
|
22246
22214
|
id: part.id,
|
|
22247
22215
|
name: toolName,
|
|
22248
|
-
params: webSearchTool?.name === "OpenAiWebSearchPreview" ? {} : { action: part.action },
|
|
22216
|
+
params: webSearchTool?.name === "OpenAiWebSearchPreview" || isUndefined(part.action) ? {} : { action: part.action },
|
|
22249
22217
|
providerExecuted: true
|
|
22250
22218
|
});
|
|
22251
22219
|
parts.push({
|
|
@@ -22254,7 +22222,7 @@ const makeResponse$1 = fnUntraced(function* ({ options, rawResponse, response, t
|
|
|
22254
22222
|
name: toolName,
|
|
22255
22223
|
isFailure: part.status !== "completed",
|
|
22256
22224
|
result: {
|
|
22257
|
-
action: part.action,
|
|
22225
|
+
...isUndefined(part.action) ? void 0 : { action: part.action },
|
|
22258
22226
|
status: part.status
|
|
22259
22227
|
},
|
|
22260
22228
|
providerExecuted: true
|
|
@@ -22793,7 +22761,7 @@ const makeStreamResponse$1 = fnUntraced(function* ({ stream, response, config, o
|
|
|
22793
22761
|
type: "tool-call",
|
|
22794
22762
|
id: event.item.id,
|
|
22795
22763
|
name: toolName,
|
|
22796
|
-
params: { action: event.item.action },
|
|
22764
|
+
params: isUndefined(event.item.action) ? {} : { action: event.item.action },
|
|
22797
22765
|
providerExecuted: true
|
|
22798
22766
|
});
|
|
22799
22767
|
parts.push({
|
|
@@ -22802,7 +22770,7 @@ const makeStreamResponse$1 = fnUntraced(function* ({ stream, response, config, o
|
|
|
22802
22770
|
name: toolName,
|
|
22803
22771
|
isFailure: event.item.status !== "completed",
|
|
22804
22772
|
result: {
|
|
22805
|
-
action: event.item.action,
|
|
22773
|
+
...isUndefined(event.item.action) ? void 0 : { action: event.item.action },
|
|
22806
22774
|
status: event.item.status
|
|
22807
22775
|
},
|
|
22808
22776
|
providerExecuted: true
|
|
@@ -24229,7 +24197,7 @@ const layerModel = (model, options) => layer$3({
|
|
|
24229
24197
|
supportsImages: options?.supportsImages
|
|
24230
24198
|
})));
|
|
24231
24199
|
//#endregion
|
|
24232
|
-
//#region node_modules/.pnpm/@effect+ai-openai-compat@
|
|
24200
|
+
//#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.0_effect@4.0.0/node_modules/@effect/ai-openai-compat/dist/internal/errors.js
|
|
24233
24201
|
const OpenAiErrorBody = Struct({ error: Struct({
|
|
24234
24202
|
message: String$5,
|
|
24235
24203
|
type: optional$2(NullOr(String$5)),
|
|
@@ -24423,12 +24391,12 @@ const mapStatusCodeToReason = ({ status, headers, message, metadata, http }) =>
|
|
|
24423
24391
|
}
|
|
24424
24392
|
};
|
|
24425
24393
|
//#endregion
|
|
24426
|
-
//#region node_modules/.pnpm/@effect+ai-openai-compat@
|
|
24394
|
+
//#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.0_effect@4.0.0/node_modules/@effect/ai-openai-compat/dist/OpenAiConfig.js
|
|
24427
24395
|
var OpenAiConfig = class OpenAiConfig extends Service()("@effect/ai-openai-compat/OpenAiConfig") {
|
|
24428
24396
|
static getOrUndefined = map$5(context(), getOrUndefined$1(OpenAiConfig));
|
|
24429
24397
|
};
|
|
24430
24398
|
//#endregion
|
|
24431
|
-
//#region node_modules/.pnpm/@effect+ai-openai-compat@
|
|
24399
|
+
//#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.0_effect@4.0.0/node_modules/@effect/ai-openai-compat/dist/OpenAiClient.js
|
|
24432
24400
|
var OpenAiClient = class extends Service()("@effect/ai-openai-compat/OpenAiClient") {};
|
|
24433
24401
|
const RedactedOpenAiHeaders = {
|
|
24434
24402
|
OpenAiOrganization: "openai-organization",
|
|
@@ -24566,7 +24534,7 @@ const decodeChatCompletionSseData = (data) => {
|
|
|
24566
24534
|
};
|
|
24567
24535
|
};
|
|
24568
24536
|
//#endregion
|
|
24569
|
-
//#region node_modules/.pnpm/@effect+ai-openai-compat@
|
|
24537
|
+
//#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.0_effect@4.0.0/node_modules/@effect/ai-openai-compat/dist/internal/utilities.js
|
|
24570
24538
|
const finishReasonMap = {
|
|
24571
24539
|
content_filter: "content-filter",
|
|
24572
24540
|
function_call: "tool-calls",
|
|
@@ -24581,7 +24549,7 @@ const resolveFinishReason = (finishReason, hasToolCalls) => {
|
|
|
24581
24549
|
return reason;
|
|
24582
24550
|
};
|
|
24583
24551
|
//#endregion
|
|
24584
|
-
//#region node_modules/.pnpm/@effect+ai-openai-compat@
|
|
24552
|
+
//#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.0_effect@4.0.0/node_modules/@effect/ai-openai-compat/dist/OpenAiTelemetry.js
|
|
24585
24553
|
const addOpenAiRequestAttributes = addSpanAttributes("gen_ai.openai.request", camelToSnake);
|
|
24586
24554
|
const addOpenAiResponseAttributes = addSpanAttributes("gen_ai.openai.response", camelToSnake);
|
|
24587
24555
|
const addGenAIAnnotations = dual(2, (span, options) => {
|
|
@@ -24592,7 +24560,7 @@ const addGenAIAnnotations = dual(2, (span, options) => {
|
|
|
24592
24560
|
}
|
|
24593
24561
|
});
|
|
24594
24562
|
//#endregion
|
|
24595
|
-
//#region node_modules/.pnpm/@effect+ai-openai-compat@
|
|
24563
|
+
//#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.0_effect@4.0.0/node_modules/@effect/ai-openai-compat/dist/OpenAiLanguageModel.js
|
|
24596
24564
|
var Config = class extends Service()("@effect/ai-openai-compat/OpenAiLanguageModel/Config") {};
|
|
24597
24565
|
const make = fnUntraced(function* ({ model, config: providerConfig }) {
|
|
24598
24566
|
const client = yield* OpenAiClient;
|
|
@@ -25879,11 +25847,11 @@ const modelWebSocket = (model, options) => make$5("xai", model, mergeAll(layer$3
|
|
|
25879
25847
|
supportsImages: options?.supportsImages
|
|
25880
25848
|
}), succeed$4(SummarizerTransform, (effect) => withConfigOverride$1(effect, { max_output_tokens: summarizerMaxOutputTokens })), fresh(layerWebSocketMode)));
|
|
25881
25849
|
//#endregion
|
|
25882
|
-
//#region node_modules/.pnpm/effect@
|
|
25850
|
+
//#region node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/Logger.js
|
|
25883
25851
|
const LogToStderr = LogToStderr$1;
|
|
25884
25852
|
//#endregion
|
|
25885
25853
|
//#region package.json
|
|
25886
|
-
var version$1 = "0.8.
|
|
25854
|
+
var version$1 = "0.8.4";
|
|
25887
25855
|
//#endregion
|
|
25888
25856
|
//#region src/cli.ts
|
|
25889
25857
|
const version = version$1;
|
|
@@ -25945,7 +25913,7 @@ const Search = (directory) => unwrap$1(gen(function* () {
|
|
|
25945
25913
|
return empty$9;
|
|
25946
25914
|
}
|
|
25947
25915
|
const path = yield* Path$3;
|
|
25948
|
-
return (yield* promise(() => import("./SemanticSearch-
|
|
25916
|
+
return (yield* promise(() => import("./SemanticSearch-cqSnq90g.mjs"))).layer({
|
|
25949
25917
|
directory: process.cwd(),
|
|
25950
25918
|
database: path.join(directory, "search.sqlite")
|
|
25951
25919
|
}).pipe(provide$3(model$2("text-embedding-3-small", { dimensions: 1536 })), provide$3(layer$5({ apiKey: apiKey.value })));
|
|
@@ -25969,7 +25937,7 @@ make$28("clanka", {
|
|
|
25969
25937
|
compaction
|
|
25970
25938
|
}).pipe(withHandler(fnUntraced(function* ({ provider, model: modelRaw, semantic, prompt: nonInteractivePrompt }) {
|
|
25971
25939
|
const stdio = yield* Stdio;
|
|
25972
|
-
const OutputFormatter = yield* promise(() => import("./OutputFormatter-
|
|
25940
|
+
const OutputFormatter = yield* promise(() => import("./OutputFormatter-C_gdNUl1.mjs"));
|
|
25973
25941
|
const [model, reasoning] = (yield* match$2(modelRaw, {
|
|
25974
25942
|
onSome: succeed$2,
|
|
25975
25943
|
onNone: () => String$4({
|