clanka 0.8.4 → 0.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AgentSkills.test.js +1 -0
- package/dist/AgentSkills.test.js.map +1 -1
- package/dist/AgentTools.d.ts.map +1 -1
- package/dist/AgentTools.js +2 -1
- package/dist/AgentTools.js.map +1 -1
- package/dist/Compaction.test.js +1 -0
- package/dist/Compaction.test.js.map +1 -1
- package/dist/bin/{Effect-BmOuzEIp.mjs → Effect-BEUn4I5E.mjs} +145 -122
- package/dist/bin/Effect-BEUn4I5E.mjs.map +1 -0
- package/dist/bin/{McpClient-CLpFJSre.mjs → McpClient-C0FVuDj2.mjs} +218 -62
- package/dist/bin/McpClient-C0FVuDj2.mjs.map +1 -0
- package/dist/bin/{OutputFormatter-C_gdNUl1.mjs → OutputFormatter-DffD5oxX.mjs} +8 -8
- package/dist/bin/OutputFormatter-DffD5oxX.mjs.map +1 -0
- package/dist/bin/{Schema-C7W9nQug.mjs → Schema-CjUGw2Xh.mjs} +39 -38
- package/dist/bin/Schema-CjUGw2Xh.mjs.map +1 -0
- package/dist/bin/{SemanticSearch-cqSnq90g.mjs → SemanticSearch-CFB73IPb.mjs} +74 -62
- package/dist/bin/SemanticSearch-CFB73IPb.mjs.map +1 -0
- package/dist/bin/{Stream-BI6Fx9yq.mjs → Stream-Cu6P7ZHo.mjs} +23 -23
- package/dist/bin/{Stream-BI6Fx9yq.mjs.map → Stream-Cu6P7ZHo.mjs.map} +1 -1
- package/dist/bin/cli.mjs +267 -188
- package/dist/bin/cli.mjs.map +1 -1
- package/package.json +14 -14
- package/src/AgentSkills.test.ts +1 -0
- package/src/AgentTools.ts +2 -1
- package/src/Compaction.test.ts +1 -0
- package/dist/bin/Effect-BmOuzEIp.mjs.map +0 -1
- package/dist/bin/McpClient-CLpFJSre.mjs.map +0 -1
- package/dist/bin/OutputFormatter-C_gdNUl1.mjs.map +0 -1
- package/dist/bin/Schema-C7W9nQug.mjs.map +0 -1
- package/dist/bin/SemanticSearch-cqSnq90g.mjs.map +0 -1
package/dist/bin/cli.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env -S node --optimize-for-size
|
|
2
|
-
import { $ as
|
|
3
|
-
import { $ as tap$1, A as mapArrayEffect, At as
|
|
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,
|
|
2
|
+
import { $ as interruptible, $i as empty$8, $n as squash, $o as structure, $t as uninterruptible, A as effectify, Aa as getOption, Ai as DisablePropagation, Ar as into, As as memoize, At as request, B as fn, Ba as flatMap$2, Bi as fromIterable$1, Br as isSuccess, Bt as serviceOption, C as catchTags, Cr as CurrentLogAnnotations, Cs as constTrue, Ct as orElseSucceed, D as contextWith, Da as add, Dn as nextBetween, Ds as dual, Dt as provideService, E as context, Ea as Service, Ei as sync$1, En as Random$1, Er as _await, Et as provideContext, Fa as makeUnsafe$3, Fi as empty$6, Fo as Class, Fr as fail$3, Fs as pipeArguments, Ft as runSync, G as forkChild, Ga as fromUndefinedOr, Gi as join$1, Gr as LogToStderr$1, Gt as sync, Hi as isArrayNonEmpty, Hn as hasInterruptsOnly, Hr as void_$1, Ht as succeed$2, I as filterOrFail, Ia as merge$2, Ii as findFirst, In as done, Io as NodeInspectSymbol, Ir as failCause$1, J as fromOption, Ja as getOrThrow, Ji as map$7, Jt as timeout, K as forkIn, Ka as getOrElse, Ki as last$1, Ko as equals, Kt as tap, L as flatMap$1, La as all, Li as findFirstIndex, Ln as fail$4, Lo as toJson, Lr as interrupt$1, Lt as scope, M as exit, Ma as getOrUndefinedUnsafe, Mi as Array$1, Mn as TimeoutError, Mo as getStackTraceLimit, Mr as isDoneUnsafe, Ms as pipe, Mt as retry, N as fail$2, Na as getUnsafe, Nn as UnknownError$1, No as setStackTraceLimit, Nr as makeUnsafe$2, Nt as runFork, Oa as empty$7, On as Done, Or as doneUnsafe, Os as flow, Ot as raceFirst, P as failCause, Pa as make$42, Pi as appendAll, Pn as annotate$1, Po as BaseProto, Pr as die$1, Pt as runForkWith, Q as interrupt, Qa as isSome, Qn as pretty, Qt as undefined_, R as flatMapEager, Ra as exists, Ri as findLast, Rn as filterInterruptors, Ro as format, Rt as scoped, S as catchTag, Sa as toMillis, So as PipeInspectableProto, Sr as provide$2, Ss as constFalse, St as orDie, T as clockWith, Ta as Reference, Ts as constVoid, Tt as provide$1, U as forEach$2, Ui as isCanonicalArrayIndex, Un as interruptors, Uo as redact$1, Ut as succeedNone, V as fnUntraced, Va as flatMapNullishOr, Vi as headNonEmpty, Vn as hasInterrupts, Vr as succeed$3, Vt as sleep, W as forever, Wa as fromNullishOr, Wi as isReadonlyArrayNonEmpty, Wo as symbolRedactable, Wr as ConsoleRef, Wt as suspend, X as gen, Xa as isNone, Xi as of, Xo as hash, Xt as tryPromise, Y as fromResult, Ya as getOrUndefined, Yi as match$3, Yt as timeoutOrElse, Z as ignore, Zi as reduce, Zt as try_, _ as catchEager, _a as millis, _n as jittered, _r as addFinalizerExit, _s as isString, _t as onError, a as andThen, aa as isFailure, ao as some, ar as fresh, at as logWarning, bn as spaced, bt as onInterrupt, c as as, cr as mock, cs as isNotNull, ct as mapBothEager, d as cached, da as format$1, di as forkUnsafe, dn as yieldNow, dr as provideMerge, ds as isNull, ea as headUnsafe, en as uninterruptibleMask, eo as map$8, er as buildWithScope, es as symbol$2, et as isEffect, f as cachedWithTTL, fa as fromInputUnsafe$1, fn as zipWith, fr as succeed$4, fs as isNullish, ft as match$4, g as catchDefect, gn as isSchedule, gr as addFinalizer$1, gt as never, h as catchCauseIf, ha as isFinite, hn as exponential, hr as Scope, ht as matchEffect, i as all$1, ia as getOrUndefined$2, in as void_, io as orElseSome, ir as empty$9, it as logInfo, j as ensuring, ja as getOrUndefined$1, ji as ParentSpan, jn as StackTrace, jo as assignProperty, jr as isDone, jt as result, k as die, ka as get$3, ko as withFiber$1, ks as identity, kt as repeat, l as asSome, la as succeed$1, ln as withParentSpan, lr as orDie$1, ls as isNotNullish, lt as mapEager, m as catchCause, mn as TaggedClass, mr as unwrap$1, ms as isObject, mt as matchCauseEffect, na as failVoid, nn as updateService, no as none, nr as effectContext, nt as logError, o as annotateCurrentSpan, oa as isSuccess$1, on as whileLoop, oo as toArray, or as merge$3, os as isIterable, ot as makeSpanScoped, p as callback, pa as infinity, pr as succeedContext, q as forkScoped, qa as getOrNull, qn as isTimeoutError, qo as symbol$1, qt as tapCause, r as addFinalizer, rn as useSpan, ro as orElse$1, rt as logFatal, s as annotateLogs, sa as map$6, sn as withFiber, sr as mergeAll, st as map$5, t as acquireRelease, ta as fail$1, tn as updateContext, to as match$2, tr as effect, ts as hasProperty, tt as logDebug, u as asVoid, ua as try_$1, un as withSpan$1, ur as provide$3, us as isNotUndefined, ut as mapError, v as catchFilter, va as minutes, vn as min, vo as strictEqual, vr as close, vs as isTagged, vt as onExit, w as catch_, wa as zero, wr as MinimumLogLevel, ws as constUndefined, wt as promise, x as catchReason, xa as seconds, xn as catchDone, xr as makeUnsafe$1, xs as or, xt as option$1, y as catchIf, yn as passthrough, yo as Prototype, ys as isUndefined, za as filter$1, zr as isFailure$1 } from "./Effect-BEUn4I5E.mjs";
|
|
3
|
+
import { $ as tap$1, A as mapArrayEffect, At as await_, B as provideService$1, Bt as parse$1, Ct as take, D as isStream, Dt as set$2, E as fromReadableStream, Et as make$43, F as mkString, G as runForEach, H as runCollect, Ht as normalizeNonEmpty, I as onEnd, It as join$2, J as splitLines, K as runForEachArray, L as orDie$2, Lt as runIn, M as mapError$1, Mt as interrupt$2, N as merge$4, Nt as interruptAll, O as map$9, Ot as update, P as mergeAll$1, Pt as interruptAllAs, Q as takeUntil, R as pipeThroughChannel, Rt as camelToSnake, S as fromIterable$2, St as shutdownUnsafe, T as fromQueue, V as run$4, Vt as round, 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 getCurrent, k as mapArray, kt as makeUnsafe$4, l as drop, lt as makeUnsafe$5, 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, wt as unbounded, x as fromEffect, xt as poll, yt as offerAllUnsafe, z as provideContext$1, zt as toLowerCase } from "./Stream-Cu6P7ZHo.mjs";
|
|
4
|
+
import { $ as declare, $n as map$11, $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, Gt as encodeEffect, H as Tuple, Hn as value, Ht as _is, I as Struct, It as withConstructorDefault, J as Union, Jn as TaggedClass$1, Jt as FilterGroup, K as Uint8ArrayFromBase64, Kn as EncodingError, 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 makeEquivalence, 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 taggedEnum, Xt as Objects, Y as Unknown, Yn as TaggedError, Yt as Literal$1, Zn as assignProperty$1, 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 Error$2, 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-CjUGw2Xh.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@4.0.
|
|
45
|
+
//#region node_modules/.pnpm/effect@4.0.1/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@4.0.
|
|
54
|
+
//#region node_modules/.pnpm/effect@4.0.1/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@4.0.
|
|
61
|
+
//#region node_modules/.pnpm/effect@4.0.1/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@4.0.
|
|
275
|
+
//#region node_modules/.pnpm/effect@4.0.1/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@4.0.
|
|
303
|
+
//#region node_modules/.pnpm/effect@4.0.1/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@4.0.
|
|
341
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/MutableHashMap.js
|
|
342
342
|
const TypeId$32 = "~effect/MutableHashMap";
|
|
343
343
|
const MutableHashMapProto = {
|
|
344
344
|
[TypeId$32]: TypeId$32,
|
|
@@ -437,7 +437,7 @@ const forEach = dual(2, (self, f) => {
|
|
|
437
437
|
self.backing.forEach(f);
|
|
438
438
|
});
|
|
439
439
|
//#endregion
|
|
440
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
440
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/internal/rcRef.js
|
|
441
441
|
const TypeId$31 = "~effect/RcRef";
|
|
442
442
|
const stateEmpty = { _tag: "Empty" };
|
|
443
443
|
const stateClosed = { _tag: "Closed" };
|
|
@@ -451,7 +451,6 @@ var RcRefImpl = class {
|
|
|
451
451
|
return pipeArguments(this, arguments);
|
|
452
452
|
}
|
|
453
453
|
state = stateEmpty;
|
|
454
|
-
semaphore = makeUnsafe$4(1);
|
|
455
454
|
acquire;
|
|
456
455
|
context;
|
|
457
456
|
scope;
|
|
@@ -468,9 +467,11 @@ const make$39 = (options) => withFiber((fiber) => {
|
|
|
468
467
|
const scope = get$3(context, Scope);
|
|
469
468
|
const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== void 0 ? fromInputUnsafe$1(options.idleTimeToLive) : void 0);
|
|
470
469
|
return as(addFinalizerExit(scope, () => {
|
|
471
|
-
const
|
|
470
|
+
const state = ref.state;
|
|
472
471
|
ref.state = stateClosed;
|
|
473
|
-
return close$1;
|
|
472
|
+
if (state._tag === "Acquired") return close(state.scope, void_$1);
|
|
473
|
+
if (state._tag === "Acquiring") return interrupt$2(state.fiber);
|
|
474
|
+
return void_;
|
|
474
475
|
}), ref);
|
|
475
476
|
});
|
|
476
477
|
const getState = (self, restore) => {
|
|
@@ -481,25 +482,50 @@ const getState = (self, restore) => {
|
|
|
481
482
|
state.refCount++;
|
|
482
483
|
return state.fiber ? as(interrupt$2(state.fiber), state) : succeed$2(state);
|
|
483
484
|
}
|
|
484
|
-
case "
|
|
485
|
-
|
|
485
|
+
case "Acquiring": {
|
|
486
|
+
const state = self.state;
|
|
487
|
+
state.awaiters++;
|
|
488
|
+
return awaitAcquiring(self, state, restore);
|
|
489
|
+
}
|
|
490
|
+
case "Empty": {
|
|
491
|
+
const acquiring = {
|
|
492
|
+
_tag: "Acquiring",
|
|
493
|
+
fiber: void 0,
|
|
494
|
+
awaiters: 1,
|
|
495
|
+
acquired: void 0
|
|
496
|
+
};
|
|
497
|
+
self.state = acquiring;
|
|
486
498
|
const scope = makeUnsafe$1();
|
|
487
|
-
|
|
488
|
-
if (self.state
|
|
499
|
+
const acquire = provideContext(self.acquire, add(self.context, Scope, scope)).pipe(flatMap$1((value) => {
|
|
500
|
+
if (self.state !== acquiring) return interrupt;
|
|
489
501
|
const state = {
|
|
490
502
|
_tag: "Acquired",
|
|
491
503
|
value,
|
|
492
504
|
scope,
|
|
493
505
|
fiber: void 0,
|
|
494
|
-
refCount:
|
|
506
|
+
refCount: acquiring.awaiters,
|
|
495
507
|
invalidated: false
|
|
496
508
|
};
|
|
497
509
|
self.state = state;
|
|
510
|
+
acquiring.acquired = state;
|
|
498
511
|
return succeed$2(state);
|
|
499
|
-
}), onExit((exit) =>
|
|
500
|
-
|
|
512
|
+
}), onExit((exit) => {
|
|
513
|
+
if (isSuccess(exit)) return void_;
|
|
514
|
+
if (self.state === acquiring) self.state = stateEmpty;
|
|
515
|
+
return close(scope, exit);
|
|
516
|
+
}));
|
|
517
|
+
acquiring.fiber = runForkWith(getCurrent().context)(acquire);
|
|
518
|
+
return awaitAcquiring(self, acquiring, restore);
|
|
519
|
+
}
|
|
501
520
|
}
|
|
502
521
|
};
|
|
522
|
+
const awaitAcquiring = (self, acquiring, restore) => onExit(restore(join$2(acquiring.fiber)), (exit) => {
|
|
523
|
+
const acquired = acquiring.acquired;
|
|
524
|
+
if (acquired !== void 0) return isFailure$1(exit) ? release(self, acquired) : void_;
|
|
525
|
+
if (--acquiring.awaiters > 0 || self.state !== acquiring) return void_;
|
|
526
|
+
self.state = stateEmpty;
|
|
527
|
+
return interrupt$2(acquiring.fiber);
|
|
528
|
+
});
|
|
503
529
|
const get$1 = (self_) => {
|
|
504
530
|
const self = self_;
|
|
505
531
|
return uninterruptibleMask((restore) => flatMap$1(scope, (scope) => flatMap$1(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
|
|
@@ -536,12 +562,12 @@ const invalidate$1 = (self_) => {
|
|
|
536
562
|
}));
|
|
537
563
|
};
|
|
538
564
|
//#endregion
|
|
539
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
565
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/RcRef.js
|
|
540
566
|
const make$38 = make$39;
|
|
541
567
|
const get = get$1;
|
|
542
568
|
const invalidate = invalidate$1;
|
|
543
569
|
//#endregion
|
|
544
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
570
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/FileSystem.js
|
|
545
571
|
const TypeId$30 = "~effect/FileSystem";
|
|
546
572
|
const FileSystem = Service("effect/FileSystem");
|
|
547
573
|
const make$37 = (impl) => FileSystem.of({
|
|
@@ -593,11 +619,11 @@ const make$37 = (impl) => FileSystem.of({
|
|
|
593
619
|
const FileTypeId = "~effect/FileSystem/File";
|
|
594
620
|
var WatchBackend = class extends Service()("effect/FileSystem/WatchBackend") {};
|
|
595
621
|
//#endregion
|
|
596
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
622
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Path.js
|
|
597
623
|
const TypeId$29 = "~effect/Path";
|
|
598
624
|
const Path$3 = Service("effect/Path");
|
|
599
625
|
//#endregion
|
|
600
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
626
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/http/Headers.js
|
|
601
627
|
const TypeId$28 = Symbol.for("~effect/http/Headers");
|
|
602
628
|
const Proto$15 = Object.defineProperties(Object.create(null), {
|
|
603
629
|
[TypeId$28]: { value: TypeId$28 },
|
|
@@ -679,7 +705,7 @@ const CurrentRedactedNames = Reference("effect/Headers/CurrentRedactedNames", {
|
|
|
679
705
|
"x-api-key"
|
|
680
706
|
] });
|
|
681
707
|
//#endregion
|
|
682
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
708
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/encoding/Base64Url.js
|
|
683
709
|
const decode$3 = (str) => {
|
|
684
710
|
const stripped = str.replace(/[\n\r]/g, "");
|
|
685
711
|
const length = stripped.length;
|
|
@@ -702,7 +728,7 @@ const decode$3 = (str) => {
|
|
|
702
728
|
const decodeString = (str) => map$6(decode$3(str), (_) => decoder.decode(_));
|
|
703
729
|
const decoder = new TextDecoder();
|
|
704
730
|
//#endregion
|
|
705
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
731
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Terminal.js
|
|
706
732
|
const TypeId$27 = "~effect/Terminal";
|
|
707
733
|
const QuitErrorTypeId = "~effect/Terminal/QuitError";
|
|
708
734
|
var QuitError = class extends Error$3("QuitError")({ _tag: tag("QuitError") }) {
|
|
@@ -715,7 +741,7 @@ const make$35 = (impl) => Terminal.of({
|
|
|
715
741
|
[TypeId$27]: TypeId$27
|
|
716
742
|
});
|
|
717
743
|
//#endregion
|
|
718
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
744
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/internal/ansi.js
|
|
719
745
|
const ESC = "\x1B[";
|
|
720
746
|
const BEL = "\x07";
|
|
721
747
|
const SEP = ";";
|
|
@@ -763,7 +789,7 @@ const eraseLines = (rows) => {
|
|
|
763
789
|
return command;
|
|
764
790
|
};
|
|
765
791
|
//#endregion
|
|
766
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
792
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/Prompt.js
|
|
767
793
|
const TypeId$26 = "~effect/cli/Prompt";
|
|
768
794
|
const isPrompt$1 = (u) => hasProperty(u, TypeId$26);
|
|
769
795
|
const defaultTheme = {
|
|
@@ -2059,7 +2085,7 @@ const entriesToDisplay = (cursor, total, maxVisible) => {
|
|
|
2059
2085
|
};
|
|
2060
2086
|
};
|
|
2061
2087
|
//#endregion
|
|
2062
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
2088
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/http/HttpBody.js
|
|
2063
2089
|
const TypeId$25 = "~effect/http/HttpBody";
|
|
2064
2090
|
var Proto$14 = class {
|
|
2065
2091
|
[TypeId$25];
|
|
@@ -2121,7 +2147,7 @@ const text = (body, contentType) => {
|
|
|
2121
2147
|
const jsonUnsafe = (body, contentType) => text(JSON.stringify(body), contentType ?? "application/json");
|
|
2122
2148
|
const urlParams = (urlParams, contentType) => text(toString(fromInput$1(urlParams)), contentType ?? "application/x-www-form-urlencoded");
|
|
2123
2149
|
//#endregion
|
|
2124
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
2150
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/http/HttpClientError.js
|
|
2125
2151
|
const TypeId$24 = "~effect/http/HttpClientError";
|
|
2126
2152
|
const isHttpClientError = (u) => hasProperty(u, TypeId$24);
|
|
2127
2153
|
var HttpClientError = class extends TaggedError("HttpClientError") {
|
|
@@ -2197,7 +2223,7 @@ var EmptyBodyError = class extends TaggedError("EmptyBodyError") {
|
|
|
2197
2223
|
}
|
|
2198
2224
|
};
|
|
2199
2225
|
//#endregion
|
|
2200
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
2226
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/http/HttpMethod.js
|
|
2201
2227
|
const allShort = [
|
|
2202
2228
|
["GET", "get"],
|
|
2203
2229
|
["POST", "post"],
|
|
@@ -2210,14 +2236,14 @@ const allShort = [
|
|
|
2210
2236
|
["QUERY", "query"]
|
|
2211
2237
|
];
|
|
2212
2238
|
//#endregion
|
|
2213
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
2239
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/http/internal/httpBody.js
|
|
2214
2240
|
const updateHeaders$1 = (headers, body) => {
|
|
2215
2241
|
if (body._tag === "Empty" || body._tag === "FormData") return remove$1(remove$1(headers, "content-type"), "content-length");
|
|
2216
2242
|
headers = body.contentType === void 0 ? remove$1(headers, "content-type") : set(headers, "content-type", body.contentType);
|
|
2217
2243
|
return body.contentLength === void 0 ? remove$1(headers, "content-length") : set(headers, "content-length", body.contentLength.toString());
|
|
2218
2244
|
};
|
|
2219
2245
|
//#endregion
|
|
2220
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
2246
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/http/Url.js
|
|
2221
2247
|
var UrlError = class extends TaggedError("UrlError") {};
|
|
2222
2248
|
const make$34 = (url, params, hash) => try_$1({
|
|
2223
2249
|
try: () => {
|
|
@@ -2235,7 +2261,7 @@ const baseUrl = () => {
|
|
|
2235
2261
|
if ("location" in globalThis && globalThis.location !== void 0 && globalThis.location.origin !== void 0 && globalThis.location.pathname !== void 0) return location.origin + location.pathname;
|
|
2236
2262
|
};
|
|
2237
2263
|
//#endregion
|
|
2238
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
2264
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/http/HttpClientRequest.js
|
|
2239
2265
|
const TypeId$23 = "~effect/http/HttpClientRequest";
|
|
2240
2266
|
const Proto$13 = {
|
|
2241
2267
|
[TypeId$23]: TypeId$23,
|
|
@@ -2319,11 +2345,11 @@ const bodyJsonUnsafe = dual(2, (self, body) => setBody(self, jsonUnsafe(body)));
|
|
|
2319
2345
|
const bodyUrlParams = dual(2, (self, input) => setBody(self, urlParams(fromInput$1(input))));
|
|
2320
2346
|
function toUrl(self) {
|
|
2321
2347
|
const r = make$34(self.url, self.urlParams, getOrUndefined(self.hash));
|
|
2322
|
-
if (isSuccess(r)) return some(r.success);
|
|
2348
|
+
if (isSuccess$1(r)) return some(r.success);
|
|
2323
2349
|
return none();
|
|
2324
2350
|
}
|
|
2325
2351
|
//#endregion
|
|
2326
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
2352
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/http/HttpIncomingMessage.js
|
|
2327
2353
|
const TypeId$22 = "~effect/http/HttpIncomingMessage";
|
|
2328
2354
|
const schemaBodyJson = (schema, options) => {
|
|
2329
2355
|
const decode = decodeEffect(toCodecJson(schema));
|
|
@@ -2349,7 +2375,7 @@ const inspect = (self, that) => {
|
|
|
2349
2375
|
return obj;
|
|
2350
2376
|
};
|
|
2351
2377
|
//#endregion
|
|
2352
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
2378
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/http/HttpClientResponse.js
|
|
2353
2379
|
const TypeId$21 = "~effect/http/HttpClientResponse";
|
|
2354
2380
|
const fromWeb = (request, source) => new WebHttpClientResponse(request, source);
|
|
2355
2381
|
const filterStatusOk$1 = (self) => self.status >= 200 && self.status < 300 ? succeed$2(self) : fail$2(new HttpClientError({ reason: new StatusCodeError({
|
|
@@ -2464,7 +2490,7 @@ var WebHttpClientResponse = class extends Class {
|
|
|
2464
2490
|
}
|
|
2465
2491
|
};
|
|
2466
2492
|
//#endregion
|
|
2467
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
2493
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/http/HttpTraceContext.js
|
|
2468
2494
|
const toHeaders = (span) => fromRecordUnsafe({
|
|
2469
2495
|
b3: `${span.traceId}-${span.spanId}-${span.sampled ? "1" : "0"}${match$2(span.parent, {
|
|
2470
2496
|
onNone: () => "",
|
|
@@ -2473,7 +2499,7 @@ const toHeaders = (span) => fromRecordUnsafe({
|
|
|
2473
2499
|
traceparent: `00-${span.traceId}-${span.spanId}-${span.sampled ? "01" : "00"}`
|
|
2474
2500
|
});
|
|
2475
2501
|
//#endregion
|
|
2476
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
2502
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/http/HttpClient.js
|
|
2477
2503
|
const TypeId$20 = "~effect/http/HttpClient";
|
|
2478
2504
|
const isHttpClient = (u) => hasProperty(u, TypeId$20);
|
|
2479
2505
|
const HttpClient = Service("effect/HttpClient");
|
|
@@ -2712,7 +2738,7 @@ const isTransientError = (error) => isTimeoutError(error) || isTransientHttpErro
|
|
|
2712
2738
|
const isTransientHttpError = (error) => isHttpClientError(error) && (error.reason._tag === "TransportError" || error.reason._tag === "StatusCodeError" && isTransientResponse(error.reason.response));
|
|
2713
2739
|
const isTransientResponse = (response) => response.status === 408 || response.status === 429 || response.status === 500 || response.status === 502 || response.status === 503 || response.status === 504;
|
|
2714
2740
|
//#endregion
|
|
2715
|
-
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0_effect@4.0.
|
|
2741
|
+
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0_effect@4.0.1/node_modules/@effect/platform-node-shared/dist/NodeSink.js
|
|
2716
2742
|
const fromWritable = (options) => fromChannel(mapDone(fromWritableChannel(options), (_) => [_]));
|
|
2717
2743
|
const fromWritableChannel = (options) => fromTransform$1((pull) => {
|
|
2718
2744
|
const writable = options.evaluate();
|
|
@@ -2760,7 +2786,7 @@ const pullIntoWritable = (options) => options.pull.pipe(flatMap$1((chunk) => {
|
|
|
2760
2786
|
});
|
|
2761
2787
|
})));
|
|
2762
2788
|
//#endregion
|
|
2763
|
-
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0_effect@4.0.
|
|
2789
|
+
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0_effect@4.0.1/node_modules/@effect/platform-node-shared/dist/NodeStream.js
|
|
2764
2790
|
const fromReadable = (options) => fromChannel$1(fromReadableChannel(options));
|
|
2765
2791
|
const fromReadableChannel = (options) => fromTransform$1((_, scope) => readableToPullUnsafe({
|
|
2766
2792
|
scope,
|
|
@@ -2802,7 +2828,7 @@ const readableToPullUnsafe = (options) => {
|
|
|
2802
2828
|
const readable = options.readable;
|
|
2803
2829
|
const closeOnDone = options.closeOnDone ?? true;
|
|
2804
2830
|
const exit = options.exit ?? make$43(void 0);
|
|
2805
|
-
const latch = options.latch ?? makeUnsafe$
|
|
2831
|
+
const latch = options.latch ?? makeUnsafe$4(false);
|
|
2806
2832
|
function onReadable() {
|
|
2807
2833
|
latch.openUnsafe();
|
|
2808
2834
|
}
|
|
@@ -2843,7 +2869,7 @@ const readableToPullUnsafe = (options) => {
|
|
|
2843
2869
|
const defaultOnError = (error) => new UnknownError$1(error);
|
|
2844
2870
|
const toMaxBytes = (maxBytes) => maxBytes === void 0 || maxBytes === Infinity ? void 0 : Number(fromInputUnsafe(maxBytes));
|
|
2845
2871
|
//#endregion
|
|
2846
|
-
//#region node_modules/.pnpm/@effect+platform-node@4.0.0_effect@4.0.
|
|
2872
|
+
//#region node_modules/.pnpm/@effect+platform-node@4.0.0_effect@4.0.1_redis@6.2.1/node_modules/@effect/platform-node/dist/NodeHttpIncomingMessage.js
|
|
2847
2873
|
var NodeHttpIncomingMessage = class extends Class {
|
|
2848
2874
|
[TypeId$22];
|
|
2849
2875
|
source;
|
|
@@ -2904,7 +2930,7 @@ var NodeHttpIncomingMessage = class extends Class {
|
|
|
2904
2930
|
}
|
|
2905
2931
|
};
|
|
2906
2932
|
//#endregion
|
|
2907
|
-
//#region node_modules/.pnpm/@effect+platform-node@4.0.0_effect@4.0.
|
|
2933
|
+
//#region node_modules/.pnpm/@effect+platform-node@4.0.0_effect@4.0.1_redis@6.2.1/node_modules/@effect/platform-node/dist/NodeHttpClient.js
|
|
2908
2934
|
function noopErrorHandler(_) {}
|
|
2909
2935
|
var UndiciResponse = class extends Class {
|
|
2910
2936
|
[TypeId$22];
|
|
@@ -3151,7 +3177,7 @@ var NodeHttpResponse = class extends NodeHttpIncomingMessage {
|
|
|
3151
3177
|
};
|
|
3152
3178
|
const layerNodeHttpNoAgent = layerMergedContext(makeNodeHttp);
|
|
3153
3179
|
//#endregion
|
|
3154
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
3180
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Console.js
|
|
3155
3181
|
const Console = ConsoleRef;
|
|
3156
3182
|
const consoleWith = (f) => withFiber$1((fiber) => f(fiber.getRef(Console)));
|
|
3157
3183
|
const error = (...args) => consoleWith((console) => sync$1(() => {
|
|
@@ -3161,9 +3187,9 @@ const log = (...args) => consoleWith((console) => sync$1(() => {
|
|
|
3161
3187
|
console.log(...args);
|
|
3162
3188
|
}));
|
|
3163
3189
|
//#endregion
|
|
3164
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
3190
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Runtime.js
|
|
3165
3191
|
const defaultTeardown = (exit, onExit) => {
|
|
3166
|
-
if (isSuccess
|
|
3192
|
+
if (isSuccess(exit)) return onExit(0);
|
|
3167
3193
|
if (hasInterruptsOnly(exit.cause)) return onExit(130);
|
|
3168
3194
|
return onExit(getErrorExitCode(squash(exit.cause)));
|
|
3169
3195
|
};
|
|
@@ -3200,7 +3226,7 @@ const getErrorReported = (u) => {
|
|
|
3200
3226
|
return true;
|
|
3201
3227
|
};
|
|
3202
3228
|
//#endregion
|
|
3203
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
3229
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Stdio.js
|
|
3204
3230
|
const TypeId$19 = "~effect/Stdio";
|
|
3205
3231
|
const Stdio = Service(TypeId$19);
|
|
3206
3232
|
const make$31 = (options) => ({
|
|
@@ -3210,7 +3236,7 @@ const make$31 = (options) => ({
|
|
|
3210
3236
|
...options
|
|
3211
3237
|
});
|
|
3212
3238
|
//#endregion
|
|
3213
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
3239
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/CliOutput.js
|
|
3214
3240
|
const Formatter = Reference("effect/cli/CliOutput", { defaultValue: () => defaultFormatter() });
|
|
3215
3241
|
const escapeControlCharacters = (text) => text.replace(/[\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]/g, (character) => `\\x${character.charCodeAt(0).toString(16).padStart(2, "0")}`);
|
|
3216
3242
|
const defaultFormatter = (options) => {
|
|
@@ -3385,7 +3411,7 @@ const formatHelpDocImpl = (doc, colors) => {
|
|
|
3385
3411
|
return sections.join("\n");
|
|
3386
3412
|
};
|
|
3387
3413
|
//#endregion
|
|
3388
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
3414
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/internal/completions/bash.js
|
|
3389
3415
|
const escapeForBash = (s) => s.replace(/'/g, "'\\''");
|
|
3390
3416
|
const sanitizeFunctionName = (s) => s.replace(/[^a-zA-Z0-9_]/g, "_");
|
|
3391
3417
|
const flagNamesForWordlist = (flag) => {
|
|
@@ -3644,7 +3670,7 @@ const generate$3 = (executableName, descriptor) => {
|
|
|
3644
3670
|
return lines.join("\n");
|
|
3645
3671
|
};
|
|
3646
3672
|
//#endregion
|
|
3647
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
3673
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/internal/completions/fish.js
|
|
3648
3674
|
const escapeFishString = (s) => s.replace(/\\/g, "\\\\").replace(/'/g, "\\'");
|
|
3649
3675
|
const escapeFishChoice = (s) => escapeFishString(s.replace(/[^A-Za-z0-9_.,/@%+-]/gu, "\\$&"));
|
|
3650
3676
|
const subcommandCondition = (parentPath, childSubcommandNames) => {
|
|
@@ -3777,7 +3803,7 @@ const generate$2 = (executableName, descriptor) => {
|
|
|
3777
3803
|
return lines.join("\n");
|
|
3778
3804
|
};
|
|
3779
3805
|
//#endregion
|
|
3780
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
3806
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/internal/completions/zsh.js
|
|
3781
3807
|
const escapeZsh = (s) => s.replace(/\\/g, "\\\\").replace(/'/g, "'\\''").replace(/:/g, "\\:");
|
|
3782
3808
|
const escapeZshChoice = (s) => s.replace(/[^A-Za-z0-9_.,/@%+-]/gu, "\\$&").replace(/'/g, "'\\''");
|
|
3783
3809
|
const sanitize = (s) => s.replace(/[^a-zA-Z0-9_]/g, "_");
|
|
@@ -3913,7 +3939,7 @@ const generate$1 = (executableName, descriptor) => {
|
|
|
3913
3939
|
return lines.join("\n");
|
|
3914
3940
|
};
|
|
3915
3941
|
//#endregion
|
|
3916
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
3942
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/Completions.js
|
|
3917
3943
|
const generate = (executableName, shell, descriptor) => {
|
|
3918
3944
|
switch (shell) {
|
|
3919
3945
|
case "bash": return generate$3(executableName, descriptor);
|
|
@@ -3922,7 +3948,7 @@ const generate = (executableName, shell, descriptor) => {
|
|
|
3922
3948
|
}
|
|
3923
3949
|
};
|
|
3924
3950
|
//#endregion
|
|
3925
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
3951
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/ConfigProvider.js
|
|
3926
3952
|
function makeValue(value) {
|
|
3927
3953
|
return {
|
|
3928
3954
|
_tag: "Value",
|
|
@@ -4009,7 +4035,7 @@ function trieNodeAt(root, path) {
|
|
|
4009
4035
|
return node;
|
|
4010
4036
|
}
|
|
4011
4037
|
//#endregion
|
|
4012
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
4038
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Config.js
|
|
4013
4039
|
const TypeId$18 = "~effect/Config";
|
|
4014
4040
|
var ConfigError = class {
|
|
4015
4041
|
_tag = "ConfigError";
|
|
@@ -4157,7 +4183,7 @@ function Redacted(name) {
|
|
|
4157
4183
|
return schema$1(Redacted$1(String$5), name);
|
|
4158
4184
|
}
|
|
4159
4185
|
//#endregion
|
|
4160
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
4186
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/CliError.js
|
|
4161
4187
|
const TypeId$17 = "~effect/cli/CliError";
|
|
4162
4188
|
const isCliError = (u) => hasProperty(u, TypeId$17);
|
|
4163
4189
|
var UnrecognizedOption = class extends TaggedError$1(`${TypeId$17}/UnrecognizedOption`)("UnrecognizedOption", {
|
|
@@ -4259,7 +4285,7 @@ var ShowHelp = class extends TaggedError$1(`${TypeId$17}/ShowHelp`)("ShowHelp",
|
|
|
4259
4285
|
}
|
|
4260
4286
|
};
|
|
4261
4287
|
//#endregion
|
|
4262
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
4288
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/encoding/Yaml.js
|
|
4263
4289
|
const hasOwn = Object.prototype.hasOwnProperty;
|
|
4264
4290
|
const setProperty = (record, key, value) => {
|
|
4265
4291
|
Object.defineProperty(record, key, {
|
|
@@ -4708,7 +4734,7 @@ const parse = (input) => {
|
|
|
4708
4734
|
return new YamlParser(lines).parse();
|
|
4709
4735
|
};
|
|
4710
4736
|
//#endregion
|
|
4711
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
4737
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/Primitive.js
|
|
4712
4738
|
const Proto$9 = { ["~effect/cli/Primitive"]: { _A: identity } };
|
|
4713
4739
|
const isTrueLiteral = is(TrueLiterals);
|
|
4714
4740
|
const isFalseLiteral = is(FalseLiterals);
|
|
@@ -4770,7 +4796,7 @@ const getTypeName = (primitive) => {
|
|
|
4770
4796
|
const getChoiceKeys = (primitive) => primitive._tag === "Choice" ? primitive.choiceKeys : void 0;
|
|
4771
4797
|
const getPathType = (primitive) => primitive._tag === "Path" ? primitive.pathType : void 0;
|
|
4772
4798
|
//#endregion
|
|
4773
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
4799
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/Param.js
|
|
4774
4800
|
const TypeId$16 = "~effect/cli/Param";
|
|
4775
4801
|
const argumentKind = "argument";
|
|
4776
4802
|
const flagKind = "flag";
|
|
@@ -5056,7 +5082,7 @@ const getParamMetadata = (param) => {
|
|
|
5056
5082
|
});
|
|
5057
5083
|
};
|
|
5058
5084
|
//#endregion
|
|
5059
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
5085
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/Flag.js
|
|
5060
5086
|
const String$1 = (name) => String$2(flagKind, name);
|
|
5061
5087
|
const Boolean = (name) => Boolean$1(flagKind, name);
|
|
5062
5088
|
const ChoiceWithValue = (name, choices) => ChoiceWithValue$1(flagKind, name, choices);
|
|
@@ -5072,7 +5098,7 @@ const withFallbackPrompt = dual(2, (self, prompt) => withFallbackPrompt$1(self,
|
|
|
5072
5098
|
const map$1 = dual(2, (self, f) => map$2(self, f));
|
|
5073
5099
|
const withSchema = dual(2, (self, schema) => withSchema$1(self, schema));
|
|
5074
5100
|
//#endregion
|
|
5075
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
5101
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/internal/config.js
|
|
5076
5102
|
const ConfigInternalTypeId = "~effect/cli/Command/Config/Internal";
|
|
5077
5103
|
const parseConfig = (config) => {
|
|
5078
5104
|
const orderedParams = [];
|
|
@@ -5124,7 +5150,7 @@ const reconstructTree = (tree, results) => {
|
|
|
5124
5150
|
}
|
|
5125
5151
|
};
|
|
5126
5152
|
//#endregion
|
|
5127
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
5153
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/internal/command.js
|
|
5128
5154
|
const TypeId$15 = "~effect/cli/Command";
|
|
5129
5155
|
const toImpl = (self) => self;
|
|
5130
5156
|
const Proto$7 = { ...Prototype({
|
|
@@ -5283,7 +5309,7 @@ const checkForDuplicateFlags = (parent, subcommands, options) => {
|
|
|
5283
5309
|
}
|
|
5284
5310
|
};
|
|
5285
5311
|
//#endregion
|
|
5286
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
5312
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/internal/completions/descriptor.js
|
|
5287
5313
|
const toFlagType = (single) => {
|
|
5288
5314
|
switch (single.primitiveType._tag) {
|
|
5289
5315
|
case "Boolean": return { _tag: "Boolean" };
|
|
@@ -5384,7 +5410,7 @@ const fromCommand = (cmd, inheritedFlags = []) => {
|
|
|
5384
5410
|
};
|
|
5385
5411
|
};
|
|
5386
5412
|
//#endregion
|
|
5387
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
5413
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/internal/help.js
|
|
5388
5414
|
const dedupeGlobalFlags = (flags) => {
|
|
5389
5415
|
const seen = new Set();
|
|
5390
5416
|
const deduped = [];
|
|
@@ -5470,7 +5496,7 @@ const getHelpForCommandPath = (command, commandPath, builtIns) => gen(function*
|
|
|
5470
5496
|
};
|
|
5471
5497
|
});
|
|
5472
5498
|
//#endregion
|
|
5473
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
5499
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/GlobalFlag.js
|
|
5474
5500
|
const Action = (options) => ({
|
|
5475
5501
|
_tag: "Action",
|
|
5476
5502
|
flag: options.flag,
|
|
@@ -5537,11 +5563,11 @@ const BuiltIns = [
|
|
|
5537
5563
|
LogLevel
|
|
5538
5564
|
];
|
|
5539
5565
|
//#endregion
|
|
5540
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
5566
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/CliConfig.js
|
|
5541
5567
|
var CliConfig = class extends Reference("effect/cli/CliConfig", { defaultValue: () => defaults }) {};
|
|
5542
5568
|
const defaults = { builtIns: BuiltIns };
|
|
5543
5569
|
//#endregion
|
|
5544
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
5570
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/internal/lexer.js
|
|
5545
5571
|
function lex(argv) {
|
|
5546
5572
|
const endIndex = argv.indexOf("--");
|
|
5547
5573
|
if (endIndex === -1) return {
|
|
@@ -5600,7 +5626,7 @@ const lexTokens = (args) => {
|
|
|
5600
5626
|
return tokens;
|
|
5601
5627
|
};
|
|
5602
5628
|
//#endregion
|
|
5603
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
5629
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/internal/auto-suggest.js
|
|
5604
5630
|
const levenshtein = (a, b) => {
|
|
5605
5631
|
const m = a.length;
|
|
5606
5632
|
const n = b.length;
|
|
@@ -5620,7 +5646,7 @@ const suggest = (input, candidates) => {
|
|
|
5620
5646
|
return distances.filter(([d]) => d === minDistance).map(([, c]) => c);
|
|
5621
5647
|
};
|
|
5622
5648
|
//#endregion
|
|
5623
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
5649
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/internal/parser.js
|
|
5624
5650
|
const getCommandPath = (parsedInput) => match$2(parsedInput.subcommand, {
|
|
5625
5651
|
onNone: () => [],
|
|
5626
5652
|
onSome: (subcommand) => [subcommand.name, ...getCommandPath(subcommand.parsedInput)]
|
|
@@ -6048,7 +6074,7 @@ const scanCommandLevel = (tokens, context) => {
|
|
|
6048
6074
|
return toLeafResult(state);
|
|
6049
6075
|
};
|
|
6050
6076
|
//#endregion
|
|
6051
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
6077
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/internal/wizard.js
|
|
6052
6078
|
const run$2 = fnUntraced(function* (command, options) {
|
|
6053
6079
|
const commandPath = options?.commandPath ?? [command.name];
|
|
6054
6080
|
const selected = getCommandAtPath(command, commandPath);
|
|
@@ -6218,7 +6244,7 @@ const wrapCommand = (commandLine) => {
|
|
|
6218
6244
|
};
|
|
6219
6245
|
const formatShellArg = (arg) => /^[A-Za-z0-9_./:@%+=,-]+$/.test(arg) ? arg : `'${arg.replaceAll("'", `'"'"'`)}'`;
|
|
6220
6246
|
//#endregion
|
|
6221
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
6247
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/Command.js
|
|
6222
6248
|
const isCommand = (u) => hasProperty(u, TypeId$15);
|
|
6223
6249
|
const make$28 = (name, config, handler) => {
|
|
6224
6250
|
const parsedConfig = parseConfig(config ?? {});
|
|
@@ -6456,7 +6482,7 @@ const runWith = (command, config) => {
|
|
|
6456
6482
|
}, 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));
|
|
6457
6483
|
};
|
|
6458
6484
|
//#endregion
|
|
6459
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
6485
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Brand.js
|
|
6460
6486
|
function nominal() {
|
|
6461
6487
|
return Object.assign((input) => input, {
|
|
6462
6488
|
option: (input) => some(input),
|
|
@@ -6465,7 +6491,7 @@ function nominal() {
|
|
|
6465
6491
|
});
|
|
6466
6492
|
}
|
|
6467
6493
|
//#endregion
|
|
6468
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
6494
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/process/ChildProcessSpawner.js
|
|
6469
6495
|
const ExitCode = nominal();
|
|
6470
6496
|
const ProcessId = nominal();
|
|
6471
6497
|
const HandleTypeId = "~effect/process/ChildProcessSpawner/ChildProcessHandle";
|
|
@@ -6494,7 +6520,7 @@ const make$27 = (spawn) => {
|
|
|
6494
6520
|
};
|
|
6495
6521
|
var ChildProcessSpawner = class extends Service()("effect/process/ChildProcessSpawner") {};
|
|
6496
6522
|
//#endregion
|
|
6497
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
6523
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/process/ChildProcess.js
|
|
6498
6524
|
const TypeId$14 = "~effect/process/ChildProcess";
|
|
6499
6525
|
const Proto$6 = {
|
|
6500
6526
|
...Prototype({
|
|
@@ -6608,7 +6634,7 @@ const concatTokens = (prevTokens, nextTokens, isSeparated) => isSeparated || pre
|
|
|
6608
6634
|
...nextTokens.slice(1)
|
|
6609
6635
|
];
|
|
6610
6636
|
//#endregion
|
|
6611
|
-
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0_effect@4.0.
|
|
6637
|
+
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0_effect@4.0.1/node_modules/@effect/platform-node-shared/dist/internal/nodeChildProcessSpawner.js
|
|
6612
6638
|
const buildSpawnOptions = (options, base, platform) => {
|
|
6613
6639
|
const detached = options.detached ?? platform !== "win32";
|
|
6614
6640
|
return {
|
|
@@ -6619,7 +6645,7 @@ const buildSpawnOptions = (options, base, platform) => {
|
|
|
6619
6645
|
};
|
|
6620
6646
|
};
|
|
6621
6647
|
//#endregion
|
|
6622
|
-
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0_effect@4.0.
|
|
6648
|
+
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0_effect@4.0.1/node_modules/@effect/platform-node-shared/dist/internal/utils.js
|
|
6623
6649
|
const handleErrnoException = (module, method) => (err, [path]) => {
|
|
6624
6650
|
let reason = "Unknown";
|
|
6625
6651
|
switch (err.code) {
|
|
@@ -6653,7 +6679,7 @@ const handleErrnoException = (module, method) => (err, [path]) => {
|
|
|
6653
6679
|
});
|
|
6654
6680
|
};
|
|
6655
6681
|
//#endregion
|
|
6656
|
-
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0_effect@4.0.
|
|
6682
|
+
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0_effect@4.0.1/node_modules/@effect/platform-node-shared/dist/NodeChildProcessSpawner.js
|
|
6657
6683
|
const toError = (error) => error instanceof globalThis.Error ? error : new globalThis.Error(String(error));
|
|
6658
6684
|
const toPlatformError = (method, error, command) => {
|
|
6659
6685
|
const { commands } = flattenCommand(command);
|
|
@@ -7078,7 +7104,7 @@ const flattenCommand = (command) => {
|
|
|
7078
7104
|
};
|
|
7079
7105
|
};
|
|
7080
7106
|
//#endregion
|
|
7081
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
7107
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/internal/ulid.js
|
|
7082
7108
|
const maxTimestamp = 2 ** 48 - 1;
|
|
7083
7109
|
const base32Chars = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
7084
7110
|
const ulidString = (timestampMillis, bytes) => {
|
|
@@ -7100,7 +7126,7 @@ const ulidString = (timestampMillis, bytes) => {
|
|
|
7100
7126
|
return out;
|
|
7101
7127
|
};
|
|
7102
7128
|
//#endregion
|
|
7103
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
7129
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/internal/uuid.js
|
|
7104
7130
|
const hex = (byte) => byte.toString(16).padStart(2, "0");
|
|
7105
7131
|
const stringify = (bytes) => {
|
|
7106
7132
|
return [
|
|
@@ -7133,7 +7159,7 @@ function v7Bytes(timestampMillis, bytes = randomBytes()) {
|
|
|
7133
7159
|
}
|
|
7134
7160
|
const v7String = (timestampMillis, bytes) => stringify(bytes === void 0 ? v7Bytes(timestampMillis) : v7Bytes(timestampMillis, bytes));
|
|
7135
7161
|
//#endregion
|
|
7136
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
7162
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Crypto.js
|
|
7137
7163
|
const TypeId$13 = "~effect/Crypto";
|
|
7138
7164
|
const Crypto = Service("effect/Crypto");
|
|
7139
7165
|
const make$24 = (impl) => {
|
|
@@ -7188,7 +7214,7 @@ const validateSize = (method, size) => Number.isSafeInteger(size) && size >= 0 ?
|
|
|
7188
7214
|
description: "size must be a non-negative safe integer"
|
|
7189
7215
|
}));
|
|
7190
7216
|
//#endregion
|
|
7191
|
-
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0_effect@4.0.
|
|
7217
|
+
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0_effect@4.0.1/node_modules/@effect/platform-node-shared/dist/NodeCrypto.js
|
|
7192
7218
|
const toHashAlgorithm = (algorithm) => {
|
|
7193
7219
|
switch (algorithm) {
|
|
7194
7220
|
case "SHA-1": return "sha1";
|
|
@@ -7213,10 +7239,10 @@ const make$23 = make$24({
|
|
|
7213
7239
|
});
|
|
7214
7240
|
const layer$18 = succeed$4(Crypto, make$23);
|
|
7215
7241
|
//#endregion
|
|
7216
|
-
//#region node_modules/.pnpm/@effect+platform-node@4.0.0_effect@4.0.
|
|
7242
|
+
//#region node_modules/.pnpm/@effect+platform-node@4.0.0_effect@4.0.1_redis@6.2.1/node_modules/@effect/platform-node/dist/NodeCrypto.js
|
|
7217
7243
|
const layer$17 = layer$18;
|
|
7218
7244
|
//#endregion
|
|
7219
|
-
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0_effect@4.0.
|
|
7245
|
+
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0_effect@4.0.1/node_modules/@effect/platform-node-shared/dist/NodeFileSystem.js
|
|
7220
7246
|
const handleBadArgument = (method) => (err) => badArgument({
|
|
7221
7247
|
module: "FileSystem",
|
|
7222
7248
|
method,
|
|
@@ -7580,10 +7606,10 @@ const makeFileSystem = map$5(serviceOption(WatchBackend), (backend) => make$37({
|
|
|
7580
7606
|
}));
|
|
7581
7607
|
const layer$16 = effect(FileSystem)(makeFileSystem);
|
|
7582
7608
|
//#endregion
|
|
7583
|
-
//#region node_modules/.pnpm/@effect+platform-node@4.0.0_effect@4.0.
|
|
7609
|
+
//#region node_modules/.pnpm/@effect+platform-node@4.0.0_effect@4.0.1_redis@6.2.1/node_modules/@effect/platform-node/dist/NodeFileSystem.js
|
|
7584
7610
|
const layer$15 = layer$16;
|
|
7585
7611
|
//#endregion
|
|
7586
|
-
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0_effect@4.0.
|
|
7612
|
+
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0_effect@4.0.1/node_modules/@effect/platform-node-shared/dist/NodePath.js
|
|
7587
7613
|
const fileUrlOps = (windows) => ({
|
|
7588
7614
|
fromFileUrl: (url) => try_({
|
|
7589
7615
|
try: () => NodeUrl.fileURLToPath(url, { windows }),
|
|
@@ -7618,10 +7644,10 @@ const layer$14 = succeed$4(Path$3)({
|
|
|
7618
7644
|
...fileUrlOps(void 0)
|
|
7619
7645
|
});
|
|
7620
7646
|
//#endregion
|
|
7621
|
-
//#region node_modules/.pnpm/@effect+platform-node@4.0.0_effect@4.0.
|
|
7647
|
+
//#region node_modules/.pnpm/@effect+platform-node@4.0.0_effect@4.0.1_redis@6.2.1/node_modules/@effect/platform-node/dist/NodePath.js
|
|
7622
7648
|
const layer$13 = layer$14;
|
|
7623
7649
|
//#endregion
|
|
7624
|
-
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0_effect@4.0.
|
|
7650
|
+
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0_effect@4.0.1/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
|
|
7625
7651
|
const layer$12 = succeed$4(Stdio, make$31({
|
|
7626
7652
|
args: sync(() => process.argv.slice(2)),
|
|
7627
7653
|
stdinIsTerminal: sync(() => process.stdin.isTTY === true),
|
|
@@ -7658,10 +7684,10 @@ const layer$12 = succeed$4(Stdio, make$31({
|
|
|
7658
7684
|
})
|
|
7659
7685
|
}));
|
|
7660
7686
|
//#endregion
|
|
7661
|
-
//#region node_modules/.pnpm/@effect+platform-node@4.0.0_effect@4.0.
|
|
7687
|
+
//#region node_modules/.pnpm/@effect+platform-node@4.0.0_effect@4.0.1_redis@6.2.1/node_modules/@effect/platform-node/dist/NodeStdio.js
|
|
7662
7688
|
const layer$11 = layer$12;
|
|
7663
7689
|
//#endregion
|
|
7664
|
-
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0_effect@4.0.
|
|
7690
|
+
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0_effect@4.0.1/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
|
|
7665
7691
|
const make$22 = fnUntraced(function* (shouldQuit = defaultShouldQuit) {
|
|
7666
7692
|
const stdin = process.stdin;
|
|
7667
7693
|
const stdout = process.stdout;
|
|
@@ -7765,13 +7791,13 @@ function defaultShouldQuit(input) {
|
|
|
7765
7791
|
return input.key.ctrl && (input.key.name === "c" || input.key.name === "d");
|
|
7766
7792
|
}
|
|
7767
7793
|
//#endregion
|
|
7768
|
-
//#region node_modules/.pnpm/@effect+platform-node@4.0.0_effect@4.0.
|
|
7794
|
+
//#region node_modules/.pnpm/@effect+platform-node@4.0.0_effect@4.0.1_redis@6.2.1/node_modules/@effect/platform-node/dist/NodeTerminal.js
|
|
7769
7795
|
const layer$9 = layer$10;
|
|
7770
7796
|
//#endregion
|
|
7771
|
-
//#region node_modules/.pnpm/@effect+platform-node@4.0.0_effect@4.0.
|
|
7797
|
+
//#region node_modules/.pnpm/@effect+platform-node@4.0.0_effect@4.0.1_redis@6.2.1/node_modules/@effect/platform-node/dist/NodeServices.js
|
|
7772
7798
|
const layer$8 = provideMerge(layer$19, mergeAll(layer$15, layer$17, layer$13, layer$11, layer$9));
|
|
7773
7799
|
//#endregion
|
|
7774
|
-
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0_effect@4.0.
|
|
7800
|
+
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0_effect@4.0.1/node_modules/@effect/platform-node-shared/dist/NodeRuntime.js
|
|
7775
7801
|
const runMain$1 = makeRunMain(({ fiber, teardown }) => {
|
|
7776
7802
|
let receivedSignal = false;
|
|
7777
7803
|
fiber.addObserver((exit) => {
|
|
@@ -7789,10 +7815,10 @@ const runMain$1 = makeRunMain(({ fiber, teardown }) => {
|
|
|
7789
7815
|
process.on("SIGTERM", onSigint);
|
|
7790
7816
|
});
|
|
7791
7817
|
//#endregion
|
|
7792
|
-
//#region node_modules/.pnpm/@effect+platform-node@4.0.0_effect@4.0.
|
|
7818
|
+
//#region node_modules/.pnpm/@effect+platform-node@4.0.0_effect@4.0.1_redis@6.2.1/node_modules/@effect/platform-node/dist/NodeRuntime.js
|
|
7793
7819
|
const runMain = runMain$1;
|
|
7794
7820
|
//#endregion
|
|
7795
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
7821
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/socket/Socket.js
|
|
7796
7822
|
const TypeId$12 = "~effect/socket/Socket";
|
|
7797
7823
|
const Socket = Service("effect/socket/Socket");
|
|
7798
7824
|
const make$21 = (options) => Socket.of({
|
|
@@ -7878,7 +7904,7 @@ const makeWebSocket = (url, options) => WebSocketConstructor.use((makeWs) => fro
|
|
|
7878
7904
|
const isPausable = (ws) => "pause" in ws && typeof ws.pause === "function";
|
|
7879
7905
|
const fromWebSocket = (acquire, options) => withFiber((fiber) => {
|
|
7880
7906
|
let currentWS;
|
|
7881
|
-
const latch = makeUnsafe$
|
|
7907
|
+
const latch = makeUnsafe$4(false);
|
|
7882
7908
|
const acquireContext = fiber.context;
|
|
7883
7909
|
const reader = gen(function* () {
|
|
7884
7910
|
const scope$7 = yield* scope;
|
|
@@ -8052,7 +8078,7 @@ const layerWebSocketConstructor = succeed$4(WebSocketConstructor)((url, options)
|
|
|
8052
8078
|
return new (webSocketWithOptions())(url, { headers: options.headers });
|
|
8053
8079
|
});
|
|
8054
8080
|
//#endregion
|
|
8055
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
8081
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/ai/Prompt.js
|
|
8056
8082
|
const ProviderOptions = Record(String$5, NullOr(Json));
|
|
8057
8083
|
const PartTypeId$1 = "~effect/ai/Prompt/Part";
|
|
8058
8084
|
const BasePart$1 = Struct({
|
|
@@ -8312,11 +8338,11 @@ const setSystem = dual(2, (self, content) => {
|
|
|
8312
8338
|
return makePrompt(messages);
|
|
8313
8339
|
});
|
|
8314
8340
|
//#endregion
|
|
8315
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
8341
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/UndefinedOr.js
|
|
8316
8342
|
const map = dual(2, (self, f) => self === void 0 ? void 0 : f(self));
|
|
8317
8343
|
const match$1 = dual(2, (self, { onDefined, onUndefined }) => self === void 0 ? onUndefined() : onDefined(self));
|
|
8318
8344
|
//#endregion
|
|
8319
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
8345
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/persistence/KeyValueStore.js
|
|
8320
8346
|
const TypeId$10 = "~effect/persistence/KeyValueStore";
|
|
8321
8347
|
const ErrorTypeId = "~effect/persistence/KeyValueStore/KeyValueStoreError";
|
|
8322
8348
|
var KeyValueStoreError = class extends TaggedError("KeyValueStoreError") {
|
|
@@ -8433,7 +8459,7 @@ const toSchemaStore = (self, schema) => {
|
|
|
8433
8459
|
};
|
|
8434
8460
|
};
|
|
8435
8461
|
//#endregion
|
|
8436
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
8462
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/ai/AiError.js
|
|
8437
8463
|
const HttpRequestDetails$1 = Struct({
|
|
8438
8464
|
method: Literals$2([
|
|
8439
8465
|
"GET",
|
|
@@ -8871,7 +8897,7 @@ const reasonFromHttpStatus = (params) => {
|
|
|
8871
8897
|
}
|
|
8872
8898
|
};
|
|
8873
8899
|
//#endregion
|
|
8874
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
8900
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/FiberSet.js
|
|
8875
8901
|
const TypeId$8 = "~effect/FiberSet";
|
|
8876
8902
|
const isFiberSet = (u) => hasProperty(u, TypeId$8);
|
|
8877
8903
|
const Proto$4 = {
|
|
@@ -8950,12 +8976,12 @@ const awaitEmpty = (self) => whileLoop({
|
|
|
8950
8976
|
step: constVoid
|
|
8951
8977
|
});
|
|
8952
8978
|
//#endregion
|
|
8953
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
8979
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Random.js
|
|
8954
8980
|
const Random = Random$1;
|
|
8955
8981
|
const randomWith = (f) => withFiber((fiber) => succeed$2(f(fiber.getRef(Random))));
|
|
8956
8982
|
const next = randomWith((r) => r.nextDoubleUnsafe());
|
|
8957
8983
|
//#endregion
|
|
8958
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
8984
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/ai/IdGenerator.js
|
|
8959
8985
|
var IdGenerator = class extends Service()("@effect/ai/IdGenerator") {};
|
|
8960
8986
|
const DEFAULT_ALPHABET = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
|
8961
8987
|
const DEFAULT_SEPARATOR = "_";
|
|
@@ -8975,7 +9001,7 @@ const makeGenerator = ({ alphabet = DEFAULT_ALPHABET, prefix, separator = DEFAUL
|
|
|
8975
9001
|
};
|
|
8976
9002
|
const defaultIdGenerator = { generateId: makeGenerator({ prefix: "id" }) };
|
|
8977
9003
|
//#endregion
|
|
8978
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
9004
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/ai/Tool.js
|
|
8979
9005
|
const TypeId$7 = "~effect/ai/Tool";
|
|
8980
9006
|
const ProviderDefinedTypeId = "~effect/ai/Tool/ProviderDefined";
|
|
8981
9007
|
const DynamicTypeId = "~effect/ai/Tool/Dynamic";
|
|
@@ -9128,7 +9154,7 @@ function isEmptyParamsRecord(indexSignature) {
|
|
|
9128
9154
|
return indexSignature.parameter === string && isNever(indexSignature.type);
|
|
9129
9155
|
}
|
|
9130
9156
|
//#endregion
|
|
9131
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
9157
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/ai/internal/structured-output.js
|
|
9132
9158
|
const REST_PROPERTY_NAME = "__rest__";
|
|
9133
9159
|
const TAIL_PROPERTY_PREFIX = "__tail_";
|
|
9134
9160
|
const RECORD_DESCRIPTION = "Object encoded as array of [key, value] pairs. Apply object constraints to the decoded object";
|
|
@@ -9377,7 +9403,7 @@ function isJsonSchema(input) {
|
|
|
9377
9403
|
return typeof input === "object" && input !== null && !Array.isArray(input);
|
|
9378
9404
|
}
|
|
9379
9405
|
//#endregion
|
|
9380
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
9406
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/ai/internal/codec-transformer.js
|
|
9381
9407
|
const makeDefaultCodecTransformer = (toJsonSchemaDocument) => {
|
|
9382
9408
|
return (codec) => {
|
|
9383
9409
|
const document = resolveTopLevelReference(toJsonSchemaDocument(codec));
|
|
@@ -9391,16 +9417,27 @@ const makeDefaultCodecTransformer = (toJsonSchemaDocument) => {
|
|
|
9391
9417
|
};
|
|
9392
9418
|
const defaultCodecTransformer$1 = makeDefaultCodecTransformer(toJsonSchemaDocument);
|
|
9393
9419
|
//#endregion
|
|
9394
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
9420
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/ai/Response.js
|
|
9395
9421
|
const PartTypeId = "~effect/ai/Response/Part";
|
|
9422
|
+
const toolPartSchemaCache = new WeakMap();
|
|
9423
|
+
const toolPartSchemas = (tool) => {
|
|
9424
|
+
let parts = toolPartSchemaCache.get(tool);
|
|
9425
|
+
if (parts === void 0) {
|
|
9426
|
+
parts = {
|
|
9427
|
+
toolCall: ToolCallPart(tool.name, tool.parametersSchema),
|
|
9428
|
+
toolResult: ToolResultPart(tool.name, tool.successSchema, failureResultSchema(tool))
|
|
9429
|
+
};
|
|
9430
|
+
toolPartSchemaCache.set(tool, parts);
|
|
9431
|
+
}
|
|
9432
|
+
return parts;
|
|
9433
|
+
};
|
|
9396
9434
|
const Part = (toolkit) => {
|
|
9397
9435
|
const toolCalls = [];
|
|
9398
9436
|
const toolResults = [];
|
|
9399
9437
|
for (const tool of Object.values(toolkit.tools)) {
|
|
9400
|
-
const
|
|
9401
|
-
|
|
9402
|
-
|
|
9403
|
-
toolResults.push(toolResult);
|
|
9438
|
+
const parts = toolPartSchemas(tool);
|
|
9439
|
+
toolCalls.push(parts.toolCall);
|
|
9440
|
+
toolResults.push(parts.toolResult);
|
|
9404
9441
|
}
|
|
9405
9442
|
return Union([
|
|
9406
9443
|
TextPart,
|
|
@@ -9419,10 +9456,9 @@ const StreamPart = (toolkit) => {
|
|
|
9419
9456
|
const toolCalls = [];
|
|
9420
9457
|
const toolResults = [];
|
|
9421
9458
|
for (const tool of Object.values(toolkit.tools)) {
|
|
9422
|
-
const
|
|
9423
|
-
|
|
9424
|
-
|
|
9425
|
-
toolResults.push(toolResult);
|
|
9459
|
+
const parts = toolPartSchemas(tool);
|
|
9460
|
+
toolCalls.push(parts.toolCall);
|
|
9461
|
+
toolResults.push(parts.toolResult);
|
|
9426
9462
|
}
|
|
9427
9463
|
return Union([
|
|
9428
9464
|
TextStartPart,
|
|
@@ -9638,7 +9674,7 @@ const ErrorPart = Struct({
|
|
|
9638
9674
|
error: Unknown
|
|
9639
9675
|
}).annotate({ identifier: "ErrorPart" });
|
|
9640
9676
|
//#endregion
|
|
9641
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
9677
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/ai/ResponseIdTracker.js
|
|
9642
9678
|
var ResponseIdTracker = class extends Service()("effect/ai/ResponseIdTracker") {};
|
|
9643
9679
|
const make$15 = sync(() => {
|
|
9644
9680
|
const sentParts = new Map();
|
|
@@ -9684,7 +9720,7 @@ const make$15 = sync(() => {
|
|
|
9684
9720
|
};
|
|
9685
9721
|
});
|
|
9686
9722
|
//#endregion
|
|
9687
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
9723
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/ai/Telemetry.js
|
|
9688
9724
|
const addSpanAttributes = (keyPrefix, transformKey) => (span, attributes) => {
|
|
9689
9725
|
for (const [key, value] of Object.entries(attributes)) if (isNotNullish(value)) span.attribute(`${keyPrefix}.${transformKey(key)}`, value);
|
|
9690
9726
|
};
|
|
@@ -9704,7 +9740,7 @@ const addGenAIAnnotations$2 = dual(2, (span, options) => {
|
|
|
9704
9740
|
});
|
|
9705
9741
|
var CurrentSpanTransformer = class extends Service()("effect/ai/Telemetry/CurrentSpanTransformer") {};
|
|
9706
9742
|
//#endregion
|
|
9707
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
9743
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/ai/Toolkit.js
|
|
9708
9744
|
const TypeId$6 = "~effect/ai/Toolkit";
|
|
9709
9745
|
const FailureOrigin = Reference("effect/ai/Toolkit/FailureOrigin", { defaultValue: () => "result" });
|
|
9710
9746
|
const failureCause = (error, origin) => annotate$1(fail$4(error), make$42(FailureOrigin, origin));
|
|
@@ -9872,7 +9908,7 @@ const merge = (...toolkits) => {
|
|
|
9872
9908
|
return makeProto$2(tools);
|
|
9873
9909
|
};
|
|
9874
9910
|
//#endregion
|
|
9875
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
9911
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/ai/LanguageModel.js
|
|
9876
9912
|
const LanguageModel = Service("effect/ai/LanguageModel");
|
|
9877
9913
|
const TypeId$5 = "~effect/ai/LanguageModel";
|
|
9878
9914
|
const defaultCodecTransformer = defaultCodecTransformer$1;
|
|
@@ -10318,6 +10354,7 @@ const make$13 = fnUntraced(function* (params) {
|
|
|
10318
10354
|
});
|
|
10319
10355
|
return LanguageModel.of({
|
|
10320
10356
|
[TypeId$5]: TypeId$5,
|
|
10357
|
+
supportsSystemMessagesInHistory: params.supportsSystemMessagesInHistory,
|
|
10321
10358
|
generateText,
|
|
10322
10359
|
generateObject,
|
|
10323
10360
|
streamText
|
|
@@ -10526,8 +10563,17 @@ const resolveToolCalls = (content, toolkit, messages, concurrency) => {
|
|
|
10526
10563
|
}).pipe(unwrap$3));
|
|
10527
10564
|
return mergeAll$1(streams, { concurrency });
|
|
10528
10565
|
};
|
|
10529
|
-
const
|
|
10530
|
-
const
|
|
10566
|
+
const parameterModeTools = new WeakMap();
|
|
10567
|
+
const withParameterMode = (tool, mode) => {
|
|
10568
|
+
let tools = parameterModeTools.get(tool);
|
|
10569
|
+
if (tools === void 0) {
|
|
10570
|
+
tools = {};
|
|
10571
|
+
parameterModeTools.set(tool, tools);
|
|
10572
|
+
}
|
|
10573
|
+
return tools[mode] ??= tool.setParameters(mode === "encoded" ? toEncoded$1(tool.parametersSchema) : Unknown);
|
|
10574
|
+
};
|
|
10575
|
+
const makeToolkitWithEncodedParameters = (toolkit) => make$14(...Object.values(toolkit.tools).map((tool) => withParameterMode(tool, "encoded")));
|
|
10576
|
+
const makeToolkitWithOpaqueParameters = (toolkit) => make$14(...Object.values(toolkit.tools).map((tool) => withParameterMode(tool, "opaque")));
|
|
10531
10577
|
const validateProviderExecutedToolCalls = (toolkit, parts) => forEach$2(parts, (part) => {
|
|
10532
10578
|
if (part.type !== "tool-call" || part.providerExecuted !== true) return void_;
|
|
10533
10579
|
const tool = toolkit.tools[part.name];
|
|
@@ -11650,7 +11696,7 @@ const make$12 = fnUntraced(function* (options) {
|
|
|
11650
11696
|
const exit$1 = yield* exit(join$2(session.running));
|
|
11651
11697
|
session.running = void 0;
|
|
11652
11698
|
yield* persist(session);
|
|
11653
|
-
if (isSuccess
|
|
11699
|
+
if (isSuccess(exit$1)) return { stopReason: "end_turn" };
|
|
11654
11700
|
if (hasInterruptsOnly(exit$1.cause)) return { stopReason: "cancelled" };
|
|
11655
11701
|
return yield* toRpcError(exit$1.cause);
|
|
11656
11702
|
});
|
|
@@ -12062,15 +12108,15 @@ var ExaError = class extends TaggedError$1()("ExaError", { cause: Defect() }) {}
|
|
|
12062
12108
|
const layer$7 = effect(ExaSearch, gen(function* () {
|
|
12063
12109
|
const scope$4 = yield* scope;
|
|
12064
12110
|
const getClient = yield* cachedWithTTL(gen(function* () {
|
|
12065
|
-
const McpClient = yield* tryPromise(() => import("./McpClient-
|
|
12111
|
+
const McpClient = yield* tryPromise(() => import("./McpClient-C0FVuDj2.mjs"));
|
|
12066
12112
|
const context = yield* buildWithScope(McpClient.layer, scope$4);
|
|
12067
12113
|
return get$3(context, McpClient.McpClient);
|
|
12068
|
-
}), (exit) => isSuccess
|
|
12114
|
+
}), (exit) => isSuccess(exit) ? infinity : zero);
|
|
12069
12115
|
const connect = yield* cachedWithTTL(gen(function* () {
|
|
12070
12116
|
const client = yield* getClient;
|
|
12071
12117
|
yield* client.connect({ url: "https://mcp.exa.ai/mcp" });
|
|
12072
12118
|
return client;
|
|
12073
|
-
}), (exit) => isSuccess
|
|
12119
|
+
}), (exit) => isSuccess(exit) ? infinity : zero);
|
|
12074
12120
|
const decode = decodeUnknownEffect$1(NonEmptyArray(ExaSearchResult));
|
|
12075
12121
|
return ExaSearch.of({ search: fn("ExaSearch.search")(function* (options) {
|
|
12076
12122
|
const client = yield* connect;
|
|
@@ -12370,7 +12416,7 @@ const AgentToolHandlersNoDeps = AgentToolsWithSearch.toLayer(gen(function* () {
|
|
|
12370
12416
|
return yield* promise(() => import("./index.min-CI3qqohw.mjs").then((Glob) => Glob.glob(pattern, { cwd })));
|
|
12371
12417
|
}),
|
|
12372
12418
|
bash: fn("AgentTools.bash")(function* (options) {
|
|
12373
|
-
const timeoutMs = Math.min(options.timeoutMs ??
|
|
12419
|
+
const timeoutMs = Math.min(options.timeoutMs ?? 6e5, 6e5);
|
|
12374
12420
|
yield* logInfo(`Calling "bash"`).pipe(annotateLogs({
|
|
12375
12421
|
...options,
|
|
12376
12422
|
timeoutMs
|
|
@@ -12892,7 +12938,7 @@ const renderLocation = (location) => {
|
|
|
12892
12938
|
return encoded.slice(1, -1) === location ? location : encoded;
|
|
12893
12939
|
};
|
|
12894
12940
|
//#endregion
|
|
12895
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
12941
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/workers/Transferable.js
|
|
12896
12942
|
var Collector = class extends Service()("effect/workers/Transferable/Collector") {};
|
|
12897
12943
|
const makeCollectorUnsafe = () => {
|
|
12898
12944
|
let tranferables = [];
|
|
@@ -12915,10 +12961,10 @@ const makeCollectorUnsafe = () => {
|
|
|
12915
12961
|
});
|
|
12916
12962
|
};
|
|
12917
12963
|
//#endregion
|
|
12918
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
12964
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/PrimaryKey.js
|
|
12919
12965
|
const symbol = "~effect/PrimaryKey";
|
|
12920
12966
|
//#endregion
|
|
12921
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
12967
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/rpc/RpcSchema.js
|
|
12922
12968
|
const StreamSchemaTypeId = "~effect/rpc/RpcSchema/StreamSchema";
|
|
12923
12969
|
function isStreamSchema(schema) {
|
|
12924
12970
|
return hasProperty(schema, StreamSchemaTypeId);
|
|
@@ -12945,7 +12991,7 @@ var ClientAbort = class extends Service()("effect/rpc/RpcSchema/ClientAbort") {
|
|
|
12945
12991
|
}));
|
|
12946
12992
|
};
|
|
12947
12993
|
//#endregion
|
|
12948
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
12994
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/rpc/Rpc.js
|
|
12949
12995
|
const TypeId$4 = "~effect/rpc/Rpc";
|
|
12950
12996
|
const Proto$1 = {
|
|
12951
12997
|
[TypeId$4]: TypeId$4,
|
|
@@ -13073,7 +13119,7 @@ const exitSchema = (self) => {
|
|
|
13073
13119
|
const WrapperTypeId = "~effect/rpc/Rpc/Wrapper";
|
|
13074
13120
|
const isWrapper = (u) => WrapperTypeId in u;
|
|
13075
13121
|
//#endregion
|
|
13076
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
13122
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/rpc/RpcMessage.js
|
|
13077
13123
|
const RequestId = (id) => id;
|
|
13078
13124
|
const RequestIdSchema = Union([String$5, Number$2]);
|
|
13079
13125
|
const RequestEncodedSchema = Struct({
|
|
@@ -13116,7 +13162,7 @@ const EncodedSchema = Union([
|
|
|
13116
13162
|
Struct({ _tag: tag("Pong") })
|
|
13117
13163
|
]);
|
|
13118
13164
|
//#endregion
|
|
13119
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
13165
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/rpc/Utils.js
|
|
13120
13166
|
const withRunClient = (f) => suspend(() => {
|
|
13121
13167
|
const clientIds = new Set();
|
|
13122
13168
|
const clientBuffers = new Map();
|
|
@@ -13155,7 +13201,7 @@ const withRunClient = (f) => suspend(() => {
|
|
|
13155
13201
|
}));
|
|
13156
13202
|
});
|
|
13157
13203
|
//#endregion
|
|
13158
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
13204
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/rpc/RpcClient.js
|
|
13159
13205
|
let requestIdCounter = 0;
|
|
13160
13206
|
const makeNoSerialization = fnUntraced(function* (group, options) {
|
|
13161
13207
|
const spanPrefix = options?.spanPrefix ?? "RpcClient";
|
|
@@ -13241,12 +13287,13 @@ const makeNoSerialization = fnUntraced(function* (group, options) {
|
|
|
13241
13287
|
const fiber = getCurrent();
|
|
13242
13288
|
const id = generateRequestId();
|
|
13243
13289
|
const scope = getUnsafe(fiber.context, Scope);
|
|
13290
|
+
const queue = yield* bounded(streamBufferSize);
|
|
13244
13291
|
yield* addFinalizerExit(scope, (exit) => {
|
|
13292
|
+
shutdownUnsafe(queue);
|
|
13245
13293
|
if (!entries.has(id)) return void_;
|
|
13246
13294
|
entries.delete(id);
|
|
13247
13295
|
return sendInterrupt(id, isFailure$1(exit) ? Array.from(interruptors(exit.cause)) : [], context);
|
|
13248
13296
|
});
|
|
13249
|
-
const queue = yield* bounded(streamBufferSize);
|
|
13250
13297
|
entries.set(id, {
|
|
13251
13298
|
_tag: "Queue",
|
|
13252
13299
|
rpc,
|
|
@@ -13364,6 +13411,14 @@ const make$10 = fnUntraced(function* (group, options) {
|
|
|
13364
13411
|
const rpcSchemas = makeRpcSchemas(codecFor);
|
|
13365
13412
|
const decodeDefect = decodeSync(codecFor(Defect()));
|
|
13366
13413
|
const entries = new Map();
|
|
13414
|
+
const interruptRequest = (requestId) => {
|
|
13415
|
+
if (!entries.has(requestId)) return void_;
|
|
13416
|
+
entries.delete(requestId);
|
|
13417
|
+
return send(clientId, {
|
|
13418
|
+
_tag: "Interrupt",
|
|
13419
|
+
requestId
|
|
13420
|
+
});
|
|
13421
|
+
};
|
|
13367
13422
|
const { client, write } = yield* makeNoSerialization(group, {
|
|
13368
13423
|
...options,
|
|
13369
13424
|
supportsAck,
|
|
@@ -13392,13 +13447,7 @@ const make$10 = fnUntraced(function* (group, options) {
|
|
|
13392
13447
|
_tag: "Ack",
|
|
13393
13448
|
requestId: message.requestId
|
|
13394
13449
|
});
|
|
13395
|
-
case "Interrupt":
|
|
13396
|
-
if (!entries.get(message.requestId)) return void_;
|
|
13397
|
-
entries.delete(message.requestId);
|
|
13398
|
-
return send(clientId, {
|
|
13399
|
-
_tag: "Interrupt",
|
|
13400
|
-
requestId: message.requestId
|
|
13401
|
-
});
|
|
13450
|
+
case "Interrupt": return interruptRequest(message.requestId);
|
|
13402
13451
|
case "Eof": return void_;
|
|
13403
13452
|
}
|
|
13404
13453
|
}
|
|
@@ -13409,17 +13458,18 @@ const make$10 = fnUntraced(function* (group, options) {
|
|
|
13409
13458
|
const requestId = RequestId(message.requestId);
|
|
13410
13459
|
const entry = entries.get(requestId);
|
|
13411
13460
|
if (!entry || isNone(entry.schemas.decodeChunk)) return void_;
|
|
13412
|
-
|
|
13461
|
+
const decodeChunk = entry.schemas.decodeChunk.value;
|
|
13462
|
+
return uninterruptibleMask((restore) => restore(decodeChunk(message.values).pipe(provideContext(entry.context), orDie, flatMap$1((chunk) => write({
|
|
13413
13463
|
_tag: "Chunk",
|
|
13414
13464
|
clientId: 0,
|
|
13415
|
-
requestId
|
|
13465
|
+
requestId,
|
|
13416
13466
|
values: chunk
|
|
13417
|
-
}))
|
|
13467
|
+
})))).pipe(onError((cause) => write({
|
|
13418
13468
|
_tag: "Exit",
|
|
13419
13469
|
clientId: 0,
|
|
13420
|
-
requestId
|
|
13470
|
+
requestId,
|
|
13421
13471
|
exit: failCause$1(cause)
|
|
13422
|
-
})));
|
|
13472
|
+
}).pipe(andThen(hasInterrupts(cause) ? void_ : ignore(interruptRequest(requestId))))), catchCauseIf((cause) => !hasInterrupts(cause), () => void_)));
|
|
13423
13473
|
}
|
|
13424
13474
|
case "Exit": {
|
|
13425
13475
|
const requestId = RequestId(message.requestId);
|
|
@@ -13448,7 +13498,7 @@ const make$10 = fnUntraced(function* (group, options) {
|
|
|
13448
13498
|
});
|
|
13449
13499
|
case "ClientProtocolError": {
|
|
13450
13500
|
const exit = fail$3(message.error);
|
|
13451
|
-
return forEach$2(entries.keys(), (requestId) => write({
|
|
13501
|
+
return forEach$2(Array.from(entries.keys()), (requestId) => write({
|
|
13452
13502
|
_tag: "Exit",
|
|
13453
13503
|
clientId: 0,
|
|
13454
13504
|
requestId,
|
|
@@ -13480,7 +13530,7 @@ var Protocol = class extends Service()("effect/rpc/RpcClient/Protocol") {
|
|
|
13480
13530
|
static make = withRunClient;
|
|
13481
13531
|
};
|
|
13482
13532
|
//#endregion
|
|
13483
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
13533
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/rpc/RpcGroup.js
|
|
13484
13534
|
const RpcGroupProto = {
|
|
13485
13535
|
add(...rpcs) {
|
|
13486
13536
|
const requests = new Map(this.requests);
|
|
@@ -14488,13 +14538,13 @@ var QueueWriteStream = class extends Writable {
|
|
|
14488
14538
|
}
|
|
14489
14539
|
};
|
|
14490
14540
|
//#endregion
|
|
14491
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
14541
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/ChannelSchema.js
|
|
14492
14542
|
const decode$1 = (schema, options) => () => {
|
|
14493
14543
|
const decode = decodeEffect(NonEmptyArray(schema), options);
|
|
14494
14544
|
return fromTransform$1((upstream, _scope) => succeed$2(flatMap$1(upstream, (chunk) => decode(chunk))));
|
|
14495
14545
|
};
|
|
14496
14546
|
//#endregion
|
|
14497
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
14547
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/encoding/Sse.js
|
|
14498
14548
|
const SseErrorTypeId = "~effect/encoding/Sse/SseError";
|
|
14499
14549
|
var EventTooLarge = class extends TaggedError("EventTooLarge") {
|
|
14500
14550
|
get message() {
|
|
@@ -14665,7 +14715,7 @@ var Retry = class Retry extends TaggedClass$1("Retry") {
|
|
|
14665
14715
|
}
|
|
14666
14716
|
};
|
|
14667
14717
|
//#endregion
|
|
14668
|
-
//#region node_modules/.pnpm/@effect+ai-openai@4.0.
|
|
14718
|
+
//#region node_modules/.pnpm/@effect+ai-openai@4.0.1_effect@4.0.1/node_modules/@effect/ai-openai/dist/Generated.js
|
|
14669
14719
|
const AdminApiKey = Struct({
|
|
14670
14720
|
"object": Literal("organization.admin_api_key").annotate({ "description": "The object type, which is always `organization.admin_api_key`" }),
|
|
14671
14721
|
"id": String$5.annotate({ "description": "The identifier, which can be referenced in API endpoints" }),
|
|
@@ -19870,7 +19920,7 @@ const ListSkillVersionsParams = Struct({
|
|
|
19870
19920
|
});
|
|
19871
19921
|
var OpenAiClientErrorImpl = class extends Error$2 {};
|
|
19872
19922
|
//#endregion
|
|
19873
|
-
//#region node_modules/.pnpm/@effect+ai-openai@4.0.
|
|
19923
|
+
//#region node_modules/.pnpm/@effect+ai-openai@4.0.1_effect@4.0.1/node_modules/@effect/ai-openai/dist/internal/errors.js
|
|
19874
19924
|
const OpenAiErrorBody$1 = Struct({ error: Struct({
|
|
19875
19925
|
message: String$5,
|
|
19876
19926
|
type: optional$2(NullOr(String$5)),
|
|
@@ -20080,12 +20130,12 @@ const mapStatusCodeToReason$1 = ({ status, headers, message, metadata, http }) =
|
|
|
20080
20130
|
}
|
|
20081
20131
|
};
|
|
20082
20132
|
//#endregion
|
|
20083
|
-
//#region node_modules/.pnpm/@effect+ai-openai@4.0.
|
|
20133
|
+
//#region node_modules/.pnpm/@effect+ai-openai@4.0.1_effect@4.0.1/node_modules/@effect/ai-openai/dist/OpenAiConfig.js
|
|
20084
20134
|
var OpenAiConfig$1 = class OpenAiConfig$1 extends Service()("@effect/ai-openai/OpenAiConfig") {
|
|
20085
20135
|
static getOrUndefined = map$5(context(), getOrUndefined$1(OpenAiConfig$1));
|
|
20086
20136
|
};
|
|
20087
20137
|
//#endregion
|
|
20088
|
-
//#region node_modules/.pnpm/@effect+ai-openai@4.0.
|
|
20138
|
+
//#region node_modules/.pnpm/@effect+ai-openai@4.0.1_effect@4.0.1/node_modules/@effect/ai-openai/dist/OpenAiSchema.js
|
|
20089
20139
|
const UnknownRecord = Record(String$5, Unknown);
|
|
20090
20140
|
const JsonObject = Record(String$5, Unknown);
|
|
20091
20141
|
const MessageRole = Literals$2([
|
|
@@ -20421,7 +20471,8 @@ const CreateResponse = Struct({
|
|
|
20421
20471
|
prompt_cache_key: optional$2(String$5),
|
|
20422
20472
|
prompt_cache_options: optional$2(Struct({
|
|
20423
20473
|
mode: optional$2(Literals$2(["implicit", "explicit"])),
|
|
20424
|
-
ttl: optional$2(Literal("30m"))
|
|
20474
|
+
ttl: optional$2(Literal("30m")),
|
|
20475
|
+
comparison_response_id: optional$2(NullOr(String$5))
|
|
20425
20476
|
})),
|
|
20426
20477
|
service_tier: optional$2(String$5),
|
|
20427
20478
|
previous_response_id: optional$2(String$5),
|
|
@@ -20573,6 +20624,27 @@ const ResponseError = Struct({
|
|
|
20573
20624
|
code: String$5,
|
|
20574
20625
|
message: String$5
|
|
20575
20626
|
});
|
|
20627
|
+
const PromptCacheDiagnostics = Union([
|
|
20628
|
+
Struct({
|
|
20629
|
+
type: Literal("cache_miss"),
|
|
20630
|
+
reason: Literals$2([
|
|
20631
|
+
"model_changed",
|
|
20632
|
+
"prompt_cache_key_changed",
|
|
20633
|
+
"tools_changed",
|
|
20634
|
+
"text_format_changed",
|
|
20635
|
+
"reasoning_effort_changed",
|
|
20636
|
+
"verbosity_changed",
|
|
20637
|
+
"context_compacted",
|
|
20638
|
+
"input_changed",
|
|
20639
|
+
"service_tier_changed"
|
|
20640
|
+
]),
|
|
20641
|
+
cache_missed_tokens: Int$1,
|
|
20642
|
+
comparison_reusable_tokens: optionalKey(Int$1)
|
|
20643
|
+
}),
|
|
20644
|
+
Struct({ type: Literal("cache_hit") }),
|
|
20645
|
+
Struct({ type: Literal("comparison_response_not_found") }),
|
|
20646
|
+
Struct({ type: Literal("unavailable") })
|
|
20647
|
+
]);
|
|
20576
20648
|
const Response$1 = Struct({
|
|
20577
20649
|
id: String$5,
|
|
20578
20650
|
object: optionalKey(Literal("response")),
|
|
@@ -20582,7 +20654,8 @@ const Response$1 = Struct({
|
|
|
20582
20654
|
usage: optionalKey(NullOr(ResponseUsage)),
|
|
20583
20655
|
error: optionalKey(NullOr(ResponseError)),
|
|
20584
20656
|
incomplete_details: optionalKey(NullOr(Struct({ reason: optionalKey(Literals$2(["max_output_tokens", "content_filter"])) }))),
|
|
20585
|
-
service_tier: optionalKey(String$5)
|
|
20657
|
+
service_tier: optionalKey(String$5),
|
|
20658
|
+
prompt_cache_diagnostics: optionalKey(PromptCacheDiagnostics)
|
|
20586
20659
|
});
|
|
20587
20660
|
const ResponseCreatedEvent = Struct({
|
|
20588
20661
|
type: Literal("response.created"),
|
|
@@ -20813,7 +20886,7 @@ const CreateEmbeddingResponse = Struct({
|
|
|
20813
20886
|
}))
|
|
20814
20887
|
});
|
|
20815
20888
|
//#endregion
|
|
20816
|
-
//#region node_modules/.pnpm/@effect+ai-openai@4.0.
|
|
20889
|
+
//#region node_modules/.pnpm/@effect+ai-openai@4.0.1_effect@4.0.1/node_modules/@effect/ai-openai/dist/OpenAiClient.js
|
|
20817
20890
|
var OpenAiClient$1 = class extends Service()("@effect/ai-openai/OpenAiClient") {};
|
|
20818
20891
|
const RedactedOpenAiHeaders$1 = {
|
|
20819
20892
|
OpenAiOrganization: "OpenAI-Organization",
|
|
@@ -20969,7 +21042,7 @@ const makeSocket = gen(function* () {
|
|
|
20969
21042
|
})
|
|
20970
21043
|
});
|
|
20971
21044
|
yield* scoped(get(queueRef));
|
|
20972
|
-
const semaphore = makeUnsafe$
|
|
21045
|
+
const semaphore = makeUnsafe$5(1);
|
|
20973
21046
|
const request = yield* makeRequest;
|
|
20974
21047
|
return OpenAiSocket.context({ createResponseStream(options) {
|
|
20975
21048
|
const stream = unwrap$3(gen(function* () {
|
|
@@ -21005,7 +21078,7 @@ const AllEvents = Union([ErrorEvent, ResponseStreamEvent]);
|
|
|
21005
21078
|
const decodeEvent = decodeUnknownSync(fromJsonString(AllEvents));
|
|
21006
21079
|
const layerWebSocketMode = effectContext(makeSocket);
|
|
21007
21080
|
//#endregion
|
|
21008
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
21081
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/RequestResolver.js
|
|
21009
21082
|
const TypeId$3 = "~effect/RequestResolver";
|
|
21010
21083
|
const RequestResolverProto = {
|
|
21011
21084
|
[TypeId$3]: {
|
|
@@ -21087,7 +21160,7 @@ const withSpan = dual((args) => isRequestResolver(args[0]), (self, name, options
|
|
|
21087
21160
|
})
|
|
21088
21161
|
}));
|
|
21089
21162
|
//#endregion
|
|
21090
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
21163
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/ai/EmbeddingModel.js
|
|
21091
21164
|
const EmbeddingModel = Service("effect/ai/EmbeddingModel");
|
|
21092
21165
|
const TypeId$2 = "~effect/ai/EmbeddingModel";
|
|
21093
21166
|
var Dimensions = class extends Service()("effect/ai/EmbeddingModel/Dimensions") {};
|
|
@@ -21130,7 +21203,7 @@ const mapProviderResults = (inputLength, results) => {
|
|
|
21130
21203
|
return succeed$2(embeddings);
|
|
21131
21204
|
};
|
|
21132
21205
|
//#endregion
|
|
21133
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
21206
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/ai/Model.js
|
|
21134
21207
|
const TypeId$1 = "~effect/ai/Model";
|
|
21135
21208
|
var ProviderName = class extends Service()("effect/ai/Model/ProviderName") {};
|
|
21136
21209
|
var ModelName = class extends Service()("effect/ai/Model/ModelName") {};
|
|
@@ -21155,7 +21228,7 @@ const Proto = {
|
|
|
21155
21228
|
};
|
|
21156
21229
|
const make$5 = (provider, modelName, layer) => Object.assign(Object.create(Proto), { provider }, merge$3(layer, succeedContext(ProviderName.context(provider).pipe(add(ModelName, modelName)))));
|
|
21157
21230
|
//#endregion
|
|
21158
|
-
//#region node_modules/.pnpm/@effect+ai-openai@4.0.
|
|
21231
|
+
//#region node_modules/.pnpm/@effect+ai-openai@4.0.1_effect@4.0.1/node_modules/@effect/ai-openai/dist/OpenAiEmbeddingModel.js
|
|
21159
21232
|
var Config$2 = class extends Service()("@effect/ai-openai/OpenAiEmbeddingModel/Config") {};
|
|
21160
21233
|
const model$2 = (model, options) => make$5("openai", model, merge$3(layer$4({
|
|
21161
21234
|
model,
|
|
@@ -21204,7 +21277,7 @@ const invalidOutput = (description) => make$18({
|
|
|
21204
21277
|
reason: new InvalidOutputError({ description })
|
|
21205
21278
|
});
|
|
21206
21279
|
//#endregion
|
|
21207
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
21280
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/ai/OpenAiStructuredOutput.js
|
|
21208
21281
|
function toCodecOpenAI(schema) {
|
|
21209
21282
|
const codec = toCodec(schema);
|
|
21210
21283
|
const document = resolveTopLevelReference(toJsonSchemaDocument(codec, {
|
|
@@ -21412,7 +21485,7 @@ const formats = new Set([
|
|
|
21412
21485
|
"uuid"
|
|
21413
21486
|
]);
|
|
21414
21487
|
//#endregion
|
|
21415
|
-
//#region node_modules/.pnpm/@effect+ai-openai@4.0.
|
|
21488
|
+
//#region node_modules/.pnpm/@effect+ai-openai@4.0.1_effect@4.0.1/node_modules/@effect/ai-openai/dist/internal/utilities.js
|
|
21416
21489
|
const finishReasonMap$1 = {
|
|
21417
21490
|
content_filter: "content-filter",
|
|
21418
21491
|
function_call: "tool-calls",
|
|
@@ -21428,7 +21501,7 @@ const resolveFinishReason$1 = (finishReason, hasToolCalls) => {
|
|
|
21428
21501
|
return reason;
|
|
21429
21502
|
};
|
|
21430
21503
|
//#endregion
|
|
21431
|
-
//#region node_modules/.pnpm/@effect+ai-openai@4.0.
|
|
21504
|
+
//#region node_modules/.pnpm/@effect+ai-openai@4.0.1_effect@4.0.1/node_modules/@effect/ai-openai/dist/OpenAiTelemetry.js
|
|
21432
21505
|
const addOpenAiRequestAttributes$1 = addSpanAttributes("gen_ai.openai.request", camelToSnake);
|
|
21433
21506
|
const addOpenAiResponseAttributes$1 = addSpanAttributes("gen_ai.openai.response", camelToSnake);
|
|
21434
21507
|
const addGenAIAnnotations$1 = dual(2, (span, options) => {
|
|
@@ -21439,7 +21512,7 @@ const addGenAIAnnotations$1 = dual(2, (span, options) => {
|
|
|
21439
21512
|
}
|
|
21440
21513
|
});
|
|
21441
21514
|
//#endregion
|
|
21442
|
-
//#region node_modules/.pnpm/@effect+ai-openai@4.0.
|
|
21515
|
+
//#region node_modules/.pnpm/@effect+ai-openai@4.0.1_effect@4.0.1/node_modules/@effect/ai-openai/dist/OpenAiLanguageModel.js
|
|
21443
21516
|
ModelIdsResponses.members[1];
|
|
21444
21517
|
ModelIdsShared.members[1];
|
|
21445
21518
|
var Config$1 = class extends Service()("@effect/ai-openai/OpenAiLanguageModel/Config") {};
|
|
@@ -22236,7 +22309,7 @@ const makeResponse$1 = fnUntraced(function* ({ options, rawResponse, response, t
|
|
|
22236
22309
|
reason: finishReason,
|
|
22237
22310
|
usage: getUsage$1(rawResponse.usage),
|
|
22238
22311
|
response: buildHttpResponseDetails$1(response),
|
|
22239
|
-
...
|
|
22312
|
+
...toFinishMetadata(rawResponse)
|
|
22240
22313
|
});
|
|
22241
22314
|
return parts;
|
|
22242
22315
|
});
|
|
@@ -22315,7 +22388,7 @@ const makeStreamResponse$1 = fnUntraced(function* ({ stream, response, config, o
|
|
|
22315
22388
|
reason: resolveFinishReason$1(event.response.incomplete_details?.reason, hasToolCalls),
|
|
22316
22389
|
usage: getUsage$1(event.response.usage),
|
|
22317
22390
|
response: buildHttpResponseDetails$1(response),
|
|
22318
|
-
...
|
|
22391
|
+
...toFinishMetadata(event.response)
|
|
22319
22392
|
});
|
|
22320
22393
|
break;
|
|
22321
22394
|
case "response.failed":
|
|
@@ -22328,7 +22401,7 @@ const makeStreamResponse$1 = fnUntraced(function* ({ stream, response, config, o
|
|
|
22328
22401
|
reason: "error",
|
|
22329
22402
|
usage: getUsage$1(event.response.usage),
|
|
22330
22403
|
response: buildHttpResponseDetails$1(response),
|
|
22331
|
-
...
|
|
22404
|
+
...toFinishMetadata(event.response)
|
|
22332
22405
|
});
|
|
22333
22406
|
break;
|
|
22334
22407
|
case "response.output_item.added":
|
|
@@ -23319,15 +23392,21 @@ const getUsage$1 = (usage) => {
|
|
|
23319
23392
|
}
|
|
23320
23393
|
};
|
|
23321
23394
|
};
|
|
23322
|
-
const
|
|
23323
|
-
|
|
23395
|
+
const toFinishMetadata = (response) => {
|
|
23396
|
+
let serviceTier;
|
|
23397
|
+
switch (response.service_tier) {
|
|
23324
23398
|
case "default":
|
|
23325
23399
|
case "auto":
|
|
23326
23400
|
case "flex":
|
|
23327
23401
|
case "scale":
|
|
23328
|
-
case "priority":
|
|
23329
|
-
default: return;
|
|
23402
|
+
case "priority": serviceTier = response.service_tier;
|
|
23330
23403
|
}
|
|
23404
|
+
const promptCacheDiagnostics = response.prompt_cache_diagnostics;
|
|
23405
|
+
if (serviceTier === void 0 && promptCacheDiagnostics === void 0) return;
|
|
23406
|
+
return { metadata: { openai: {
|
|
23407
|
+
...serviceTier === void 0 ? void 0 : { serviceTier },
|
|
23408
|
+
...promptCacheDiagnostics === void 0 ? void 0 : { promptCacheDiagnostics }
|
|
23409
|
+
} } };
|
|
23331
23410
|
};
|
|
23332
23411
|
const getUsageTokenDetail = (details, key) => hasProperty(details, key) && typeof details[key] === "number" ? details[key] : void 0;
|
|
23333
23412
|
const transformToolCallParams$1 = fnUntraced(function* (tools, toolName, toolParams) {
|
|
@@ -23487,7 +23566,7 @@ var CodexAuth = class CodexAuth extends Service()("clanka/CodexAuth") {
|
|
|
23487
23566
|
times: 5,
|
|
23488
23567
|
schedule: min([exponential(150), spaced(5e3)])
|
|
23489
23568
|
}));
|
|
23490
|
-
const semaphore = makeUnsafe$
|
|
23569
|
+
const semaphore = makeUnsafe$5(1);
|
|
23491
23570
|
let currentToken = yield* tokenStore.get(STORE_TOKEN_KEY$1).pipe(catchTag("SchemaError", (error) => logDebug(`Failed to decode persisted Codex token, clearing it: ${error.message}`).pipe(andThen(tokenStore.remove(STORE_TOKEN_KEY$1)), as(none()))), orDie);
|
|
23492
23571
|
const saveToken = (token) => orDie(tokenStore.set(STORE_TOKEN_KEY$1, token)).pipe(tap(() => sync(() => {
|
|
23493
23572
|
currentToken = some(token);
|
|
@@ -23801,7 +23880,7 @@ ${content}
|
|
|
23801
23880
|
const turnTimeoutReset = () => {
|
|
23802
23881
|
turnExpires = clock.currentTimeMillisUnsafe() + turnTimeoutMs;
|
|
23803
23882
|
};
|
|
23804
|
-
const toolLatch = makeUnsafe$
|
|
23883
|
+
const toolLatch = makeUnsafe$4(true);
|
|
23805
23884
|
const toolLatchAcquire = toolLatch.close;
|
|
23806
23885
|
const toolLatchRelease = sync(() => {
|
|
23807
23886
|
turnTimeoutReset();
|
|
@@ -23830,7 +23909,7 @@ ${content}
|
|
|
23830
23909
|
return compaction;
|
|
23831
23910
|
}).pipe(onExit((exit) => sync(() => {
|
|
23832
23911
|
if (!compactionStarted) return;
|
|
23833
|
-
const result = isSuccess
|
|
23912
|
+
const result = isSuccess(exit) ? exit.value : none();
|
|
23834
23913
|
let tokensBefore;
|
|
23835
23914
|
let tokensAfter;
|
|
23836
23915
|
if (isSome(result)) {
|
|
@@ -24056,7 +24135,7 @@ ${content}
|
|
|
24056
24135
|
}));
|
|
24057
24136
|
return fromQueue(output);
|
|
24058
24137
|
}, unwrap$3);
|
|
24059
|
-
const sendLock = makeUnsafe$
|
|
24138
|
+
const sendLock = makeUnsafe$5(1);
|
|
24060
24139
|
return Agent.of({
|
|
24061
24140
|
[TypeId]: TypeId,
|
|
24062
24141
|
history,
|
|
@@ -24197,7 +24276,7 @@ const layerModel = (model, options) => layer$3({
|
|
|
24197
24276
|
supportsImages: options?.supportsImages
|
|
24198
24277
|
})));
|
|
24199
24278
|
//#endregion
|
|
24200
|
-
//#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.
|
|
24279
|
+
//#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.1_effect@4.0.1/node_modules/@effect/ai-openai-compat/dist/internal/errors.js
|
|
24201
24280
|
const OpenAiErrorBody = Struct({ error: Struct({
|
|
24202
24281
|
message: String$5,
|
|
24203
24282
|
type: optional$2(NullOr(String$5)),
|
|
@@ -24391,12 +24470,12 @@ const mapStatusCodeToReason = ({ status, headers, message, metadata, http }) =>
|
|
|
24391
24470
|
}
|
|
24392
24471
|
};
|
|
24393
24472
|
//#endregion
|
|
24394
|
-
//#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.
|
|
24473
|
+
//#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.1_effect@4.0.1/node_modules/@effect/ai-openai-compat/dist/OpenAiConfig.js
|
|
24395
24474
|
var OpenAiConfig = class OpenAiConfig extends Service()("@effect/ai-openai-compat/OpenAiConfig") {
|
|
24396
24475
|
static getOrUndefined = map$5(context(), getOrUndefined$1(OpenAiConfig));
|
|
24397
24476
|
};
|
|
24398
24477
|
//#endregion
|
|
24399
|
-
//#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.
|
|
24478
|
+
//#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.1_effect@4.0.1/node_modules/@effect/ai-openai-compat/dist/OpenAiClient.js
|
|
24400
24479
|
var OpenAiClient = class extends Service()("@effect/ai-openai-compat/OpenAiClient") {};
|
|
24401
24480
|
const RedactedOpenAiHeaders = {
|
|
24402
24481
|
OpenAiOrganization: "openai-organization",
|
|
@@ -24534,7 +24613,7 @@ const decodeChatCompletionSseData = (data) => {
|
|
|
24534
24613
|
};
|
|
24535
24614
|
};
|
|
24536
24615
|
//#endregion
|
|
24537
|
-
//#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.
|
|
24616
|
+
//#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.1_effect@4.0.1/node_modules/@effect/ai-openai-compat/dist/internal/utilities.js
|
|
24538
24617
|
const finishReasonMap = {
|
|
24539
24618
|
content_filter: "content-filter",
|
|
24540
24619
|
function_call: "tool-calls",
|
|
@@ -24549,7 +24628,7 @@ const resolveFinishReason = (finishReason, hasToolCalls) => {
|
|
|
24549
24628
|
return reason;
|
|
24550
24629
|
};
|
|
24551
24630
|
//#endregion
|
|
24552
|
-
//#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.
|
|
24631
|
+
//#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.1_effect@4.0.1/node_modules/@effect/ai-openai-compat/dist/OpenAiTelemetry.js
|
|
24553
24632
|
const addOpenAiRequestAttributes = addSpanAttributes("gen_ai.openai.request", camelToSnake);
|
|
24554
24633
|
const addOpenAiResponseAttributes = addSpanAttributes("gen_ai.openai.response", camelToSnake);
|
|
24555
24634
|
const addGenAIAnnotations = dual(2, (span, options) => {
|
|
@@ -24560,7 +24639,7 @@ const addGenAIAnnotations = dual(2, (span, options) => {
|
|
|
24560
24639
|
}
|
|
24561
24640
|
});
|
|
24562
24641
|
//#endregion
|
|
24563
|
-
//#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.
|
|
24642
|
+
//#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.1_effect@4.0.1/node_modules/@effect/ai-openai-compat/dist/OpenAiLanguageModel.js
|
|
24564
24643
|
var Config = class extends Service()("@effect/ai-openai-compat/OpenAiLanguageModel/Config") {};
|
|
24565
24644
|
const make = fnUntraced(function* ({ model, config: providerConfig }) {
|
|
24566
24645
|
const client = yield* OpenAiClient;
|
|
@@ -25598,7 +25677,7 @@ var GithubCopilotAuth = class GithubCopilotAuth extends Service()("clanka/Github
|
|
|
25598
25677
|
times: 5,
|
|
25599
25678
|
schedule: min([exponential(150), spaced(5e3)])
|
|
25600
25679
|
}));
|
|
25601
|
-
const semaphore = makeUnsafe$
|
|
25680
|
+
const semaphore = makeUnsafe$5(1);
|
|
25602
25681
|
let currentToken = yield* tokenStore.get(STORE_TOKEN_KEY).pipe(catchTag("SchemaError", (error) => logDebug(`Failed to decode persisted GitHub Copilot token, clearing it: ${error.message}`).pipe(andThen(tokenStore.remove(STORE_TOKEN_KEY)), as(none()))), orDie);
|
|
25603
25682
|
const saveToken = (token) => orDie(tokenStore.set(STORE_TOKEN_KEY, token)).pipe(tap(() => sync(() => {
|
|
25604
25683
|
currentToken = some(token);
|
|
@@ -25740,7 +25819,7 @@ var XaiAuth = class XaiAuth extends Service()("clanka/XaiAuth") {
|
|
|
25740
25819
|
times: 5,
|
|
25741
25820
|
schedule: min([exponential(150), spaced(5e3)])
|
|
25742
25821
|
}));
|
|
25743
|
-
const semaphore = makeUnsafe$
|
|
25822
|
+
const semaphore = makeUnsafe$5(1);
|
|
25744
25823
|
let currentToken = yield* tokenStore.get("token").pipe(catchTag("SchemaError", () => tokenStore.remove("token").pipe(as(none()))), orDie);
|
|
25745
25824
|
const saveToken = (token) => tokenStore.set("token", token).pipe(orDie, tap(() => sync(() => {
|
|
25746
25825
|
currentToken = some(token);
|
|
@@ -25847,11 +25926,11 @@ const modelWebSocket = (model, options) => make$5("xai", model, mergeAll(layer$3
|
|
|
25847
25926
|
supportsImages: options?.supportsImages
|
|
25848
25927
|
}), succeed$4(SummarizerTransform, (effect) => withConfigOverride$1(effect, { max_output_tokens: summarizerMaxOutputTokens })), fresh(layerWebSocketMode)));
|
|
25849
25928
|
//#endregion
|
|
25850
|
-
//#region node_modules/.pnpm/effect@4.0.
|
|
25929
|
+
//#region node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Logger.js
|
|
25851
25930
|
const LogToStderr = LogToStderr$1;
|
|
25852
25931
|
//#endregion
|
|
25853
25932
|
//#region package.json
|
|
25854
|
-
var version$1 = "0.8.
|
|
25933
|
+
var version$1 = "0.8.5";
|
|
25855
25934
|
//#endregion
|
|
25856
25935
|
//#region src/cli.ts
|
|
25857
25936
|
const version = version$1;
|
|
@@ -25913,7 +25992,7 @@ const Search = (directory) => unwrap$1(gen(function* () {
|
|
|
25913
25992
|
return empty$9;
|
|
25914
25993
|
}
|
|
25915
25994
|
const path = yield* Path$3;
|
|
25916
|
-
return (yield* promise(() => import("./SemanticSearch-
|
|
25995
|
+
return (yield* promise(() => import("./SemanticSearch-CFB73IPb.mjs"))).layer({
|
|
25917
25996
|
directory: process.cwd(),
|
|
25918
25997
|
database: path.join(directory, "search.sqlite")
|
|
25919
25998
|
}).pipe(provide$3(model$2("text-embedding-3-small", { dimensions: 1536 })), provide$3(layer$5({ apiKey: apiKey.value })));
|
|
@@ -25937,7 +26016,7 @@ make$28("clanka", {
|
|
|
25937
26016
|
compaction
|
|
25938
26017
|
}).pipe(withHandler(fnUntraced(function* ({ provider, model: modelRaw, semantic, prompt: nonInteractivePrompt }) {
|
|
25939
26018
|
const stdio = yield* Stdio;
|
|
25940
|
-
const OutputFormatter = yield* promise(() => import("./OutputFormatter-
|
|
26019
|
+
const OutputFormatter = yield* promise(() => import("./OutputFormatter-DffD5oxX.mjs"));
|
|
25941
26020
|
const [model, reasoning] = (yield* match$2(modelRaw, {
|
|
25942
26021
|
onSome: succeed$2,
|
|
25943
26022
|
onNone: () => String$4({
|