alink-cli 0.11.0 → 0.11.2

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/bin.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { $ as make$66, A as withLoggerDisabled, At as matchStatus, B as limitsServices, Bt as post$1, C as update$2, Ct as setHeader, D as compression, Dt as uint8Array$1, Et as text$2, F as schemaHeaders, Ft as appendUrlParams, G as CloseEvent, Gt as setUrl, Ht as setBody, I as schemaSearchParams, It as bodyFormData, Jt as HttpClientErrorSchema, K as SocketError, Kt as DecodeError, L as toURL, Lt as bodyJson, M as ParsedSearchParams, O as cors$1, Ot as urlParams$1, P as schemaCookies, Pt as schemaBodyJson, Q as join$1, Rt as get$4, S as set$2, Sn as __commonJSMin, T as appendPreResponseHandler, Tt as stream, Ut as setHeader$1, Vt as prependUrl, Wt as setHeaders, X as makeWebSocket, Xt as isHttpClientError, Y as make$67, Yt as StatusCodeError, Z as awaitEmpty, Zt as empty$2, _ as get$3, _n as fromInput, _t as mergeCookies, a as layer$44, an as CurrentRedactedNames, b as makeUnsafe$3, bn as hasBody, cn as fromRecordUnsafe, d as HttpClient, dn as jsonUnsafe$1, en as set$3, et as run$4, f as TracerPropagationEnabled, g as transformResponse$1, gn as urlParams, gt as jsonUnsafe, h as retryTransient, hn as uint8Array, ht as isHttpServerResponse, j as HttpServerRequest, k as logger, kt as filterStatusOk, l as serve$1, ln as merge, lt as symbol$1, m as mapRequest, mn as text$1, mt as file, o as HttpServer, on as empty$3, ot as RouteNotFound, p as filterStatusOk$1, pt as empty$1, q as SocketErrorReason, qt as HttpClientError, r as Mime_default, rt as HttpServerError, sn as fromInput$1, t as layerWebSocketConstructor, tt as runtime, u as withLogAddress, un as isHttpBody, ut as toResponse, v as getAndSet, vn as schemaRecord, w as updateAndGet, wn as __require, wt as setHeaders$1, x as modify$2, xn as map$3, xt as schemaJson, y as make$64, yn as toRecord, yt as redirect, zt as make$65 } from "./NodeSocket-CLfrrutd.mjs";
4
- import { $ as decodeUnknownExit, $a as flatMap$1, $d as hasProperty, $l as format$1, $o as scopedWith, $s as TaggedError, $t as Union$1, $u as add$2, A as StructWithRest, Aa as asVoid, Ac as _await, Ai as make$76, An as encodeBase64, Ao as matchEffect, Ar as mapEffect$1, As as withSpan, At as suspend$1, B as Union, Ba as catchTags, Bc as succeed$4, Bi as offerUnsafe, Bn as now$1, Bo as provide$1, Br as provideService$1, Bs as forever$1, Bt as value, C as Number$1, Ca as andThen, Cc as forkUnsafe, Cd as map$6, Cl as CurrentLoggers$1, Cn as parseJson, Co as map$4, Cs as useSpan, Ct as isTrimmed, Cu as flatMapNullishOr, D as String$1, Da as annotateSpans, Dc as MinimumLogLevel, Dd as Number$2, Di as pipeTo, Dn as decodeBase64String, Do as match$2, Dr as make$75, Ds as withFiber$1, Dt as mutable, E as Record, Ea as annotateLogsScoped, Ec as provide$2, Ed as some, Ei as mapEffect$2, Er as isStream, Es as withErrorReporting, Et as makeFilter, Eu as isReadonlyArrayNonEmpty, Fi as failCause$3, Fl as reportCauseUnsafe, Fn as isGreaterThan$1, Fo as onInterrupt, Fr as onExit$1, Fs as snapshotUnsafe, Ft as toJsonSchemaDocument, G as annotateKey, Ga as currentParentSpan, Gc as isFailure, Gi as takeAll, Gl as ParentSpan, Gn as InvalidValue$1, Go as result, Gr as runFoldEffect, Gs as isDoneCause, Gt as toJsonSchemaMultiDocument, Gu as getOrUndefined$2, H as UnknownFromJsonString$1, Hc as fail$4, Hd as toJson, Hi as shutdown$1, Hn as toEpochMillis, Ho as provideService, Hr as runCollect, Hs as passthrough, Ht as toMultiDocumentOpenApi3_1, Hu as fail$1, I as URLFromString, Ia as catchFilter, Ic as isDeferred, Id as isEffect$1, In as isGreaterThanOrEqualTo$1, Io as option, Is as timer, It as toType, Iu as map$7, J as decodeEffect, Ja as ensuring, Ji as shutdown$2, Jl as make$78, Jn as Path, Jo as runForkWith, Js as Clock, K as brand, Ka as die, Kc as isSuccess, Kd as equals, Ki as unbounded$2, Kl as Tracer, Ko as retry, Kr as runForEach, Ks as parse$2, Kt as escapeToken, Ku as isFailure$1, L as Uint8Array$1, La as catchIf, Ld as withFiber, Li as make$79, Ln as isLessThan$1, Lo as orDie, Lr as pipeThroughChannel, Ls as update$3, Lt as withConstructorDefault, M as TaggedStruct, Ma as callback, Md as setStackTraceLimit, Mi as bounded, Mn as encodeHex, Mo as onError, Mr as merge$2, Ms as yieldNow, Mt as toCodecJson, Mu as reverse, N as TemplateLiteral, Na as catchCause, Nc as fail$3, Nd as Prototype, Ni as end, Nn as add$3, No as onExit, Ns as zipWith, Nt as toCodecJsonAST, Nu as sort, O as StringFromUriComponent, Oa as as, Oc as TracerEnabled, Od as make$73, On as decodeBase64Url, Oo as matchCauseEffect, Or as map$8, Ot as optional$3, Ou as map$5, Pa as catchDefect, Pc as failCause$2, Pd as PipeInspectableProto, Pn as formatIso, Ps as counter, Pt as toCodecStringTree, Q as decodeUnknownEffect, Qa as filterOrFail, Qc as StackTrace, Qd as compose$1, Ql as days, Qo as scoped, Qr as toAsyncIterable, Qs as TaggedClass, Qt as isSchemaError, Qu as Service$2, R as Undefined, Ra as catchReason, Rc as make$74, Rd as assignProperty, Ri as offer$1, Rl as sync$1, Rn as make$72, Ro as orElseSucceed, Rs as withAttributes, Rt as withDecodingDefault, S as NullOr, Sa as all, Sc as closeUnsafe, Sd as isSome, Si as filterArray, Sl as ConsoleRef, Sn as onSome, So as makeSpanScoped, Sr as fromQueue, Ss as updateContext, St as isSchema, Su as findLast, T as OptionFromNullOr, Ta as annotateLogs, Tc as makeUnsafe$8, Td as none, Tl as consolePretty$1, Tn as stringifyJson, To as mapError, Tr as groupedWithin, Ts as whileLoop, Tt as make$71, Tu as isArrayNonEmpty, U as Void, Ua as context, Uc as failCause$4, Ud as format, Ui as sliding$1, Ul as MinimumTraceLevel, Un as toUtc, Uo as raceFirst, Ur as runDrain, Us as spaced, Ut as apply, Uu as failVoid, V as Unknown, Va as catch_, Vc as die$1, Vd as NodeInspectSymbol, Vn as toDate, Vo as provideContext, Vr as run$5, Vt as VALID_OPEN_API_COMPONENTS_SCHEMAS_KEY_REGEXP, W as annotate$2, Wa as contextWith, Wc as interrupt$3, Wi as take$1, Wl as NativeSpan, Wn as Forbidden$1, Wo as repeat, Wr as runFold, Ws as catchDone, Wt as toRepresentations, Wu as getOrThrow, X as decodeSync, Xa as fail, Xi as subscribe, Xn as FileSystem, Xs as currentTimeNanos, Y as decodeExit, Ya as exit, Yc as void_$2, Yi as sliding, Yo as runPromiseWith, Ys as currentTimeMillis, Yu as succeed$2, Z as decodeTo, Za as failCause$1, Zc as NoSuchElementError, Zi as unbounded$1, Zo as scope, Zr as takeWhile, Zt as SchemaError, Zu as Reference, _c as unwrap, _d as fromUndefinedOr, _f as identity, _i as forEach$1, _l as map$9, _n as Transformation, _o as logDebug, _s as try_, _t as isMaxLength, _u as ensure, a as Class, aa as join$2, ac as effectContext, ad as getUnsafe$1, af as isTagged, al as findErrorOption, an as isLiteral, ao as forever, ar as debounce, as as succeedSome, at as encodeUnknownExit, b as NonEmptyString, ba as acquireUseRelease, bc as addFinalizerExit, bd as getOrUndefined, bi as mapInput, bl as squash, bn as transformOrFail, bo as logInfo, br as fromIterable$1, bs as uninterruptible, bt as isNonEmpty, bu as findFirst, c as Defect, ca as drop$1, cd as merge$1, cf as cast, ci as has, cl as hasInterrupts, cn as isOptional, co as forkScoped, cr as drain, cs as tap, ct as instanceOf, cu as minutes, d as ErrorClass, da as isEmpty$2, dc as provide, dd as exists, df as constTrue, dl as interruptors, dn as isVoid, do as ignore$1, ds as tapError, dt as isFinite, du as toMillis, ea as makeUnsafe$7, ec as taggedEnum, ed as empty$5, ef as isNotNull, el as combine$1, es as service, et as decodeUnknownOption, eu as fromInput$2, f as Exit, fa as size$2, fc as provideMerge, fd as filter, ff as constUndefined, fl as isCause, fn as resolveAt, fo as ignoreCause, fr as fail$5, fs as tapErrorTag, ft as isGreaterThan, g as Literals, gc as tap$1, gd as fromNullishOr, gi as drain$1, go as log$1, gr as fromAsyncIterable, gs as tryPromise, gt as isLessThanOrEqualTo, gu as empty$4, h as Literal, ha as PlatformError, hc as sync$2, hd as flatten, hf as dual, hn as toEncoded, ho as isEffect, hr as flatMap$2, ht as isLessThan, i as Cause, ic as effect, id as getOrUndefined$1, if as isString, ii as withSpan$1, in as isDeclaration, io as forEach, ir as concat, is as succeedNone, it as encodeUnknownEffect, j as TaggedErrorClass, ja as cached, jc as die$2, jd as getStackTraceLimit, ji as makeUnsafe$5, jl as fnUntraced$1, jn as encodeBase64Url, jo as never, jr as mapError$1, js as withTracerEnabled, jt as tag, ju as reduce, k as Struct, ka as asSome, kc as TracerTimingEnabled, ki as splitLines, kn as decodeBase64UrlString, kr as mapArrayEffect, ks as withParentSpan, kt as optionalKey, ku as match, l as Duration, la as empty$6, lc as launch, ld as omit, lf as compose, li as invalidate, ll as hasInterruptsOnly, ln as isSuspend, lo as fromResult, lr as empty$7, ls as tapCause, lt as is, lu as nanos, m as Int, mc as succeedContext, md as flatMap$3, mf as constant, mn as resolveIdentifier, mo as interruptible, mr as filter$2, ms as timeoutOption, mt as isInt, mu as allocate, n as ArraySchema, na as getCurrent, nc as build, nd as getOption, nf as isNullish, ni as transformPull, nn as getAST, no as fn, nr as catchCause$1, ns as sleep, nt as encodeEffect, nu as hours, o as DateTimeUtc, oa as runIn, oc as effectDiscard, od as make$69, on as isNull, oo as forkChild, or as decodeText, os as suspend, ot as fieldsAssign, ou as max, p as Finite, pa as toArray, pc as succeed$3, pd as firstSomeOf, pf as constVoid, pl as isFailReason, pn as resolveDescription, po as interrupt$1, pr as failCause$5, ps as timeout, pt as isGreaterThanOrEqualTo, pu as zero, q as declare, qc as match$3, qi as publish, ql as externalSpan, qn as makeFormatterDefault, qo as runFork, qr as runForEachArray, qs as round, qt as assign, qu as isSuccess$1, r as Boolean$1, ra as interrupt$4, rc as buildWithMemoMap, rd as getOrElse$1, rf as isObject$1, ri as unwrap$1, rl as fail$2, rn as getLastEncoding, ro as fnUntraced, rr as changes, rs as succeed$1, rt as encodeSync, s as DateTimeUtcFromString, sa as append$1, sc as empty$8, sd as makeUnsafe$4, si as get$6, sl as hasDies, sn as isObjects, so as forkIn, ss as sync, st as fromJsonString, su as millis, t as Any, ta as await_, tc as CurrentMemoMap, td as get$5, tf as isNotUndefined, to as flatten$1, tr as callback$1, ts as serviceOption, tt as encode$1, tu as fromInputUnsafe, u as DurationFromMillis, ua as head, uc as mergeAll, ud as contains, uf as constFalse, ui as make$70, ul as interrupt$2, un as isUnion, uo as gen, ur as encodeText, us as tapDefect, ut as isBetween, uu as seconds, v as Never, va as Transaction, vc as Scope, vd as getOrElse, vf as pipe, vl as pretty, vo as logError, vr as fromEffect, vs as tx, vt as isMaxProperties, vu as filter$1, w as Option, wa as annotateCurrentSpan, wc as make$77, wd as match$1, wi as fromTransform, wr as fromSubscription, ws as void_$1, wu as fromIterable, x as Null, xa as addFinalizer, xc as close, xd as isNone, xi as decodeText$1, xn as trim, xo as logWarning$1, xr as fromPubSub, xt as isPattern, xu as findFirstIndex, y as NonEmptyArray, ya as acquireRelease, yc as addFinalizer$1, yd as getOrNull, yf as pipeArguments, yl as prettyErrors, yn as transform$1, yo as logFatal, yr as fromEffectSchedule, ys as txRetry, yt as isMinLength, yu as filterMap, z as UndefinedOr, za as catchTag, zi as offerAll, zl as tracerLogger$1, zn as makeUnsafe$6, zo as promise, zr as provideContext$1, zs as addDelay, zt as make$68 } from "./Schema-B4KtKnpr.mjs";
5
- import { a as isQuitError, g as ChildProcessSpawner, h as make$80, i as Terminal$1, l as Crypto, n as layer$45, o as Stdio, r as QuitError, s as make$81, u as fromReadable } from "./NodeServices-BtcL7AtO.mjs";
6
- import { _ as withDefault$2, a as all$1, c as logLevel, d as option$1, f as port, g as url$1, i as TrueValues, l as map$10, m as string$4, n as FalseValues, o as boolean$3, p as schema$1, r as Record$1, s as int, t as Boolean$2, u as number } from "./Config-CxDW-52j.mjs";
7
- import { c as getOption$1, d as make$82, f as makeWith$1, l as invalidate$1, n as SqlClient, p as set$4, s as get$7, u as keys } from "./SqlClient-BQM_tAo_.mjs";
3
+ import { $ as make$66, A as withLoggerDisabled, At as matchStatus, B as limitsServices, Bt as post$1, C as update$2, Ct as setHeader, D as compression, Dt as uint8Array$1, Et as text$2, F as schemaHeaders, Ft as appendUrlParams, G as CloseEvent, Gt as setUrl, Ht as setBody, I as schemaSearchParams, It as bodyFormData, Jt as HttpClientErrorSchema, K as SocketError, Kt as DecodeError, L as toURL, Lt as bodyJson, M as ParsedSearchParams, O as cors$1, Ot as urlParams$1, P as schemaCookies, Pt as schemaBodyJson, Q as join$1, Rt as get$4, S as set$2, Sn as __commonJSMin, T as appendPreResponseHandler, Tt as stream, Ut as setHeader$1, Vt as prependUrl, Wt as setHeaders, X as makeWebSocket, Xt as isHttpClientError, Y as make$67, Yt as StatusCodeError, Z as awaitEmpty, Zt as empty$2, _ as get$3, _n as fromInput, _t as mergeCookies, a as layer$44, an as CurrentRedactedNames, b as makeUnsafe$3, bn as hasBody, cn as fromRecordUnsafe, d as HttpClient, dn as jsonUnsafe$1, en as set$3, et as run$4, f as TracerPropagationEnabled, g as transformResponse$1, gn as urlParams, gt as jsonUnsafe, h as retryTransient, hn as uint8Array, ht as isHttpServerResponse, j as HttpServerRequest, k as logger, kt as filterStatusOk, l as serve$1, ln as merge, lt as symbol$1, m as mapRequest, mn as text$1, mt as file, o as HttpServer, on as empty$3, ot as RouteNotFound, p as filterStatusOk$1, pt as empty$1, q as SocketErrorReason, qt as HttpClientError, r as Mime_default, rt as HttpServerError, sn as fromInput$1, t as layerWebSocketConstructor, tt as runtime, u as withLogAddress, un as isHttpBody, ut as toResponse, v as getAndSet, vn as schemaRecord, w as updateAndGet, wn as __require, wt as setHeaders$1, x as modify$2, xn as map$3, xt as schemaJson, y as make$64, yn as toRecord, yt as redirect, zt as make$65 } from "./NodeSocket-C7yHTDM1.mjs";
4
+ import { $ as decodeUnknownExit, $a as flatMap$1, $d as hasProperty, $l as format$1, $o as scopedWith, $s as TaggedError, $t as Union$1, $u as add$2, A as StructWithRest, Aa as asVoid, Ac as _await, Ai as make$76, An as encodeBase64, Ao as matchEffect, Ar as mapEffect$1, As as withSpan, At as suspend$1, B as Union, Ba as catchTags, Bc as succeed$4, Bi as offerUnsafe, Bn as now$1, Bo as provide$1, Br as provideService$1, Bs as forever$1, Bt as value, C as Number$1, Ca as andThen, Cc as forkUnsafe, Cd as map$6, Cl as CurrentLoggers$1, Cn as parseJson, Co as map$4, Cs as useSpan, Ct as isTrimmed, Cu as flatMapNullishOr, D as String$1, Da as annotateSpans, Dc as MinimumLogLevel, Dd as Number$2, Di as pipeTo, Dn as decodeBase64String, Do as match$2, Dr as make$75, Ds as withFiber$1, Dt as mutable, E as Record, Ea as annotateLogsScoped, Ec as provide$2, Ed as some, Ei as mapEffect$2, Er as isStream, Es as withErrorReporting, Et as makeFilter, Eu as isReadonlyArrayNonEmpty, Fi as failCause$3, Fl as reportCauseUnsafe, Fn as isGreaterThan$1, Fo as onInterrupt, Fr as onExit$1, Fs as snapshotUnsafe, Ft as toJsonSchemaDocument, G as annotateKey, Ga as currentParentSpan, Gc as isFailure, Gi as takeAll, Gl as ParentSpan, Gn as InvalidValue$1, Go as result, Gr as runFoldEffect, Gs as isDoneCause, Gt as toJsonSchemaMultiDocument, Gu as getOrUndefined$2, H as UnknownFromJsonString$1, Hc as fail$4, Hd as toJson, Hi as shutdown$1, Hn as toEpochMillis, Ho as provideService, Hr as runCollect, Hs as passthrough, Ht as toMultiDocumentOpenApi3_1, Hu as fail$1, I as URLFromString, Ia as catchFilter, Ic as isDeferred, Id as isEffect$1, In as isGreaterThanOrEqualTo$1, Io as option, Is as timer, It as toType, Iu as map$7, J as decodeEffect, Ja as ensuring, Ji as shutdown$2, Jl as make$78, Jn as Path, Jo as runForkWith, Js as Clock, K as brand, Ka as die, Kc as isSuccess, Kd as equals, Ki as unbounded$2, Kl as Tracer, Ko as retry, Kr as runForEach, Ks as parse$2, Kt as escapeToken, Ku as isFailure$1, L as Uint8Array$1, La as catchIf, Ld as withFiber, Li as make$79, Ln as isLessThan$1, Lo as orDie, Lr as pipeThroughChannel, Ls as update$3, Lt as withConstructorDefault, M as TaggedStruct, Ma as callback, Md as setStackTraceLimit, Mi as bounded, Mn as encodeHex, Mo as onError, Mr as merge$2, Ms as yieldNow, Mt as toCodecJson, Mu as reverse, N as TemplateLiteral, Na as catchCause, Nc as fail$3, Nd as Prototype, Ni as end, Nn as add$3, No as onExit, Ns as zipWith, Nt as toCodecJsonAST, Nu as sort, O as StringFromUriComponent, Oa as as, Oc as TracerEnabled, Od as make$73, On as decodeBase64Url, Oo as matchCauseEffect, Or as map$8, Ot as optional$3, Ou as map$5, Pa as catchDefect, Pc as failCause$2, Pd as PipeInspectableProto, Pn as formatIso, Ps as counter, Pt as toCodecStringTree, Q as decodeUnknownEffect, Qa as filterOrFail, Qc as StackTrace, Qd as compose$1, Ql as days, Qo as scoped, Qr as toAsyncIterable, Qs as TaggedClass, Qt as isSchemaError, Qu as Service$2, R as Undefined, Ra as catchReason, Rc as make$74, Rd as assignProperty, Ri as offer$1, Rl as sync$1, Rn as make$72, Ro as orElseSucceed, Rs as withAttributes, Rt as withDecodingDefault, S as NullOr, Sa as all, Sc as closeUnsafe, Sd as isSome, Si as filterArray, Sl as ConsoleRef, Sn as onSome, So as makeSpanScoped, Sr as fromQueue, Ss as updateContext, St as isSchema, Su as findLast, T as OptionFromNullOr, Ta as annotateLogs, Tc as makeUnsafe$8, Td as none, Tl as consolePretty$1, Tn as stringifyJson, To as mapError, Tr as groupedWithin, Ts as whileLoop, Tt as make$71, Tu as isArrayNonEmpty, U as Void, Ua as context, Uc as failCause$4, Ud as format, Ui as sliding$1, Ul as MinimumTraceLevel, Un as toUtc, Uo as raceFirst, Ur as runDrain, Us as spaced, Ut as apply, Uu as failVoid, V as Unknown, Va as catch_, Vc as die$1, Vd as NodeInspectSymbol, Vn as toDate, Vo as provideContext, Vr as run$5, Vt as VALID_OPEN_API_COMPONENTS_SCHEMAS_KEY_REGEXP, W as annotate$2, Wa as contextWith, Wc as interrupt$3, Wi as take$1, Wl as NativeSpan, Wn as Forbidden$1, Wo as repeat, Wr as runFold, Ws as catchDone, Wt as toRepresentations, Wu as getOrThrow, X as decodeSync, Xa as fail, Xi as subscribe, Xn as FileSystem, Xs as currentTimeNanos, Y as decodeExit, Ya as exit, Yc as void_$2, Yi as sliding, Yo as runPromiseWith, Ys as currentTimeMillis, Yu as succeed$2, Z as decodeTo, Za as failCause$1, Zc as NoSuchElementError, Zi as unbounded$1, Zo as scope, Zr as takeWhile, Zt as SchemaError, Zu as Reference, _c as unwrap, _d as fromUndefinedOr, _f as identity, _i as forEach$1, _l as map$9, _n as Transformation, _o as logDebug, _s as try_, _t as isMaxLength, _u as ensure, a as Class, aa as join$2, ac as effectContext, ad as getUnsafe$1, af as isTagged, al as findErrorOption, an as isLiteral, ao as forever, ar as debounce, as as succeedSome, at as encodeUnknownExit, b as NonEmptyString, ba as acquireUseRelease, bc as addFinalizerExit, bd as getOrUndefined, bi as mapInput, bl as squash, bn as transformOrFail, bo as logInfo, br as fromIterable$1, bs as uninterruptible, bt as isNonEmpty, bu as findFirst, c as Defect, ca as drop$1, cd as merge$1, cf as cast, ci as has, cl as hasInterrupts, cn as isOptional, co as forkScoped, cr as drain, cs as tap, ct as instanceOf, cu as minutes, d as ErrorClass, da as isEmpty$2, dc as provide, dd as exists, df as constTrue, dl as interruptors, dn as isVoid, do as ignore$1, ds as tapError, dt as isFinite, du as toMillis, ea as makeUnsafe$7, ec as taggedEnum, ed as empty$5, ef as isNotNull, el as combine$1, es as service, et as decodeUnknownOption, eu as fromInput$2, f as Exit, fa as size$2, fc as provideMerge, fd as filter, ff as constUndefined, fl as isCause, fn as resolveAt, fo as ignoreCause, fr as fail$5, fs as tapErrorTag, ft as isGreaterThan, g as Literals, gc as tap$1, gd as fromNullishOr, gi as drain$1, go as log$1, gr as fromAsyncIterable, gs as tryPromise, gt as isLessThanOrEqualTo, gu as empty$4, h as Literal, ha as PlatformError, hc as sync$2, hd as flatten, hf as dual, hn as toEncoded, ho as isEffect, hr as flatMap$2, ht as isLessThan, i as Cause, ic as effect, id as getOrUndefined$1, if as isString, ii as withSpan$1, in as isDeclaration, io as forEach, ir as concat, is as succeedNone, it as encodeUnknownEffect, j as TaggedErrorClass, ja as cached, jc as die$2, jd as getStackTraceLimit, ji as makeUnsafe$5, jl as fnUntraced$1, jn as encodeBase64Url, jo as never, jr as mapError$1, js as withTracerEnabled, jt as tag, ju as reduce, k as Struct, ka as asSome, kc as TracerTimingEnabled, ki as splitLines, kn as decodeBase64UrlString, kr as mapArrayEffect, ks as withParentSpan, kt as optionalKey, ku as match, l as Duration, la as empty$6, lc as launch, ld as omit, lf as compose, li as invalidate, ll as hasInterruptsOnly, ln as isSuspend, lo as fromResult, lr as empty$7, ls as tapCause, lt as is, lu as nanos, m as Int, mc as succeedContext, md as flatMap$3, mf as constant, mn as resolveIdentifier, mo as interruptible, mr as filter$2, ms as timeoutOption, mt as isInt, mu as allocate, n as ArraySchema, na as getCurrent, nc as build, nd as getOption, nf as isNullish, ni as transformPull, nn as getAST, no as fn, nr as catchCause$1, ns as sleep, nt as encodeEffect, nu as hours, o as DateTimeUtc, oa as runIn, oc as effectDiscard, od as make$69, on as isNull, oo as forkChild, or as decodeText, os as suspend, ot as fieldsAssign, ou as max, p as Finite, pa as toArray, pc as succeed$3, pd as firstSomeOf, pf as constVoid, pl as isFailReason, pn as resolveDescription, po as interrupt$1, pr as failCause$5, ps as timeout, pt as isGreaterThanOrEqualTo, pu as zero, q as declare, qc as match$3, qi as publish, ql as externalSpan, qn as makeFormatterDefault, qo as runFork, qr as runForEachArray, qs as round, qt as assign, qu as isSuccess$1, r as Boolean$1, ra as interrupt$4, rc as buildWithMemoMap, rd as getOrElse$1, rf as isObject$1, ri as unwrap$1, rl as fail$2, rn as getLastEncoding, ro as fnUntraced, rr as changes, rs as succeed$1, rt as encodeSync, s as DateTimeUtcFromString, sa as append$1, sc as empty$8, sd as makeUnsafe$4, si as get$6, sl as hasDies, sn as isObjects, so as forkIn, ss as sync, st as fromJsonString, su as millis, t as Any, ta as await_, tc as CurrentMemoMap, td as get$5, tf as isNotUndefined, to as flatten$1, tr as callback$1, ts as serviceOption, tt as encode$1, tu as fromInputUnsafe, u as DurationFromMillis, ua as head, uc as mergeAll, ud as contains, uf as constFalse, ui as make$70, ul as interrupt$2, un as isUnion, uo as gen, ur as encodeText, us as tapDefect, ut as isBetween, uu as seconds, v as Never, va as Transaction, vc as Scope, vd as getOrElse, vf as pipe, vl as pretty, vo as logError, vr as fromEffect, vs as tx, vt as isMaxProperties, vu as filter$1, w as Option, wa as annotateCurrentSpan, wc as make$77, wd as match$1, wi as fromTransform, wr as fromSubscription, ws as void_$1, wu as fromIterable, x as Null, xa as addFinalizer, xc as close, xd as isNone, xi as decodeText$1, xn as trim, xo as logWarning$1, xr as fromPubSub, xt as isPattern, xu as findFirstIndex, y as NonEmptyArray, ya as acquireRelease, yc as addFinalizer$1, yd as getOrNull, yf as pipeArguments, yl as prettyErrors, yn as transform$1, yo as logFatal, yr as fromEffectSchedule, ys as txRetry, yt as isMinLength, yu as filterMap, z as UndefinedOr, za as catchTag, zi as offerAll, zl as tracerLogger$1, zn as makeUnsafe$6, zo as promise, zr as provideContext$1, zs as addDelay, zt as make$68 } from "./Schema-CxqR6bXx.mjs";
5
+ import { a as isQuitError, g as ChildProcessSpawner, h as make$80, i as Terminal$1, l as Crypto, n as layer$45, o as Stdio, r as QuitError, s as make$81, u as fromReadable } from "./NodeServices-D5Lui-4t.mjs";
6
+ import { _ as withDefault$2, a as all$1, c as logLevel, d as option$1, f as port, g as url$1, i as TrueValues, l as map$10, m as string$4, n as FalseValues, o as boolean$3, p as schema$1, r as Record$1, s as int, t as Boolean$2, u as number } from "./Config-nQ0ig08n.mjs";
7
+ import { c as getOption$1, d as make$82, f as makeWith$1, l as invalidate$1, n as SqlClient, p as set$4, s as get$7, u as keys } from "./SqlClient-ePUtEqLJ.mjs";
8
8
  import * as NodeModule from "node:module";
9
9
  import * as NodeChildProcess from "node:child_process";
10
10
  import * as NodeCrypto from "node:crypto";
@@ -22,7 +22,7 @@ import { createRequire as createRequire$1 } from "module";
22
22
  import * as NodeFSP from "node:fs/promises";
23
23
  import { FileFinder } from "@ff-labs/fff-node";
24
24
  import { query } from "@anthropic-ai/claude-agent-sdk";
25
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/Runtime.js
25
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/Runtime.js
26
26
  /**
27
27
  * Helpers for turning an `Effect` program into a host application's main entry
28
28
  * point. This module is the low-level layer used by platform adapters to run a
@@ -306,7 +306,7 @@ const getErrorReported = (u) => {
306
306
  return true;
307
307
  };
308
308
  //#endregion
309
- //#region ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.103_bufferutil@4.1.0_effect@4.0.0-beta.103_patch_hash=_7eec308fcf6351488fccaf9a0edac255/node_modules/@effect/platform-node/dist/NodeRuntime.js
309
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/@effect+platform-node@4.0.0-beta.103_bufferutil@4.1.0_effect@4.0.0-beta.103_patch_hash=_7eec308fcf6351488fccaf9a0edac255/node_modules/@effect/platform-node/dist/NodeRuntime.js
310
310
  /**
311
311
  * Node.js process runner for Effect programs.
312
312
  *
@@ -358,7 +358,7 @@ const runMain = /* @__PURE__ */ makeRunMain(({ fiber, teardown }) => {
358
358
  process.on("SIGTERM", onSigint);
359
359
  });
360
360
  //#endregion
361
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/cli/CliError.js
361
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/cli/CliError.js
362
362
  /**
363
363
  * Defines structured errors for the unstable CLI parser and runner.
364
364
  *
@@ -830,7 +830,7 @@ var ShowHelp = class extends TaggedErrorClass(`${TypeId$17}/ShowHelp`)("ShowHelp
830
830
  }
831
831
  };
832
832
  //#endregion
833
- //#region ../../node_modules/.pnpm/ini@7.0.0/node_modules/ini/lib/ini.js
833
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/ini@7.0.0/node_modules/ini/lib/ini.js
834
834
  var require_ini = /* @__PURE__ */ __commonJSMin(((exports, module) => {
835
835
  const { hasOwnProperty } = Object.prototype;
836
836
  const encode = (obj, opt = {}) => {
@@ -987,7 +987,7 @@ var require_ini = /* @__PURE__ */ __commonJSMin(((exports, module) => {
987
987
  };
988
988
  }));
989
989
  //#endregion
990
- //#region ../../node_modules/.pnpm/toml@4.3.0/node_modules/toml/lib/parser.js
990
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/toml@4.3.0/node_modules/toml/lib/parser.js
991
991
  var require_parser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
992
992
  var peg$SyntaxError = class extends SyntaxError {
993
993
  constructor(message, expected, found, location) {
@@ -5068,7 +5068,7 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5068
5068
  };
5069
5069
  }));
5070
5070
  //#endregion
5071
- //#region ../../node_modules/.pnpm/toml@4.3.0/node_modules/toml/lib/compiler.js
5071
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/toml@4.3.0/node_modules/toml/lib/compiler.js
5072
5072
  var require_compiler = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5073
5073
  function compile(nodes, inputText, options) {
5074
5074
  options = options || {};
@@ -5270,7 +5270,7 @@ var require_compiler = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5270
5270
  module.exports = { compile };
5271
5271
  }));
5272
5272
  //#endregion
5273
- //#region ../../node_modules/.pnpm/toml@4.3.0/node_modules/toml/index.js
5273
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/toml@4.3.0/node_modules/toml/index.js
5274
5274
  var require_toml = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5275
5275
  var parser = require_parser();
5276
5276
  var compiler = require_compiler();
@@ -5530,7 +5530,7 @@ const getTypeName = (primitive) => {
5530
5530
  /** @internal */
5531
5531
  const getChoiceKeys = (primitive) => primitive._tag === "Choice" ? primitive.choiceKeys : void 0;
5532
5532
  //#endregion
5533
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/cli/internal/ansi.js
5533
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/cli/internal/ansi.js
5534
5534
  /**
5535
5535
  * Internal ANSI escape sequence helpers used by the unstable CLI rendering
5536
5536
  * implementation. This module centralizes the control codes for text styling,
@@ -5610,7 +5610,7 @@ const eraseLines = (rows) => {
5610
5610
  return command;
5611
5611
  };
5612
5612
  //#endregion
5613
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/cli/Prompt.js
5613
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/cli/Prompt.js
5614
5614
  /**
5615
5615
  * Builds interactive terminal prompts for CLI applications.
5616
5616
  *
@@ -7054,7 +7054,7 @@ const entriesToDisplay = (cursor, total, maxVisible) => {
7054
7054
  };
7055
7055
  };
7056
7056
  //#endregion
7057
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/cli/Param.js
7057
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/cli/Param.js
7058
7058
  const TypeId$15 = "~effect/cli/Param";
7059
7059
  /**
7060
7060
  * Defines the kind discriminator for positional argument parameters.
@@ -7783,7 +7783,7 @@ const getParamMetadata = (param) => {
7783
7783
  });
7784
7784
  };
7785
7785
  //#endregion
7786
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/cli/Argument.js
7786
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/cli/Argument.js
7787
7787
  /**
7788
7788
  * Creates a positional string argument.
7789
7789
  *
@@ -7854,7 +7854,7 @@ const withDescription$2 = /*#__PURE__*/ dual(2, (self, description) => withDescr
7854
7854
  */
7855
7855
  const withSchema$1 = /*#__PURE__*/ dual(2, (self, schema) => withSchema$2(self, schema));
7856
7856
  //#endregion
7857
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/Console.js
7857
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/Console.js
7858
7858
  /**
7859
7859
  * Context reference for the current console service in the Effect system, allowing access to the active console implementation from within the Effect context.
7860
7860
  *
@@ -7989,7 +7989,7 @@ const log = (...args) => consoleWith((console) => sync$1(() => {
7989
7989
  console.log(...args);
7990
7990
  }));
7991
7991
  //#endregion
7992
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/cli/CliOutput.js
7992
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/cli/CliOutput.js
7993
7993
  /**
7994
7994
  * Formats CLI help and errors as text.
7995
7995
  *
@@ -8237,7 +8237,7 @@ const formatHelpDocImpl = (doc, colors) => {
8237
8237
  return sections.join("\n");
8238
8238
  };
8239
8239
  //#endregion
8240
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/cli/internal/completions/bash.js
8240
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/cli/internal/completions/bash.js
8241
8241
  const escapeForBash = (s) => s.replace(/'/g, "'\\''");
8242
8242
  const sanitizeFunctionName = (s) => s.replace(/[^a-zA-Z0-9_]/g, "_");
8243
8243
  const flagNamesForWordlist = (flag) => {
@@ -8388,7 +8388,7 @@ const generate$3 = (executableName, descriptor) => {
8388
8388
  return lines.join("\n");
8389
8389
  };
8390
8390
  //#endregion
8391
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/cli/internal/completions/fish.js
8391
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/cli/internal/completions/fish.js
8392
8392
  const escapeFishString = (s) => s.replace(/'/g, "\\'");
8393
8393
  /**
8394
8394
  * Build a Fish condition that checks the current subcommand context.
@@ -8527,7 +8527,7 @@ const generate$2 = (executableName, descriptor) => {
8527
8527
  return lines.join("\n");
8528
8528
  };
8529
8529
  //#endregion
8530
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/cli/internal/completions/zsh.js
8530
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/cli/internal/completions/zsh.js
8531
8531
  const escapeZsh = (s) => s.replace(/\\/g, "\\\\").replace(/'/g, "'\\''").replace(/:/g, "\\:");
8532
8532
  const sanitize = (s) => s.replace(/[^a-zA-Z0-9_]/g, "_");
8533
8533
  /**
@@ -8664,7 +8664,7 @@ const generate$1 = (executableName, descriptor) => {
8664
8664
  return lines.join("\n");
8665
8665
  };
8666
8666
  //#endregion
8667
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/cli/Completions.js
8667
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/cli/Completions.js
8668
8668
  /**
8669
8669
  * The `Completions` module turns a plain description of an Effect CLI command
8670
8670
  * tree into shell completion scripts for Bash, Zsh, and Fish. It is the
@@ -8700,7 +8700,7 @@ const generate = (executableName, shell, descriptor) => {
8700
8700
  }
8701
8701
  };
8702
8702
  //#endregion
8703
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/cli/Flag.js
8703
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/cli/Flag.js
8704
8704
  /**
8705
8705
  * Creates a string flag that accepts text input.
8706
8706
  *
@@ -9005,7 +9005,7 @@ const map = /*#__PURE__*/ dual(2, (self, f) => map$1(self, f));
9005
9005
  */
9006
9006
  const withSchema = /*#__PURE__*/ dual(2, (self, schema) => withSchema$2(self, schema));
9007
9007
  //#endregion
9008
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/cli/internal/config.js
9008
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/cli/internal/config.js
9009
9009
  /**
9010
9010
  * Config Internal
9011
9011
  * ================
@@ -9124,7 +9124,7 @@ const reconstructTree = (tree, results) => {
9124
9124
  }
9125
9125
  };
9126
9126
  //#endregion
9127
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/cli/internal/command.js
9127
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/cli/internal/command.js
9128
9128
  /**
9129
9129
  * Command Implementation
9130
9130
  * ======================
@@ -9315,7 +9315,7 @@ const checkForDuplicateFlags = (parent, subcommands, options) => {
9315
9315
  }
9316
9316
  };
9317
9317
  //#endregion
9318
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/cli/internal/completions/descriptor.js
9318
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/cli/internal/completions/descriptor.js
9319
9319
  /**
9320
9320
  * CommandDescriptor — pure-data representation of a command tree for
9321
9321
  * shell completion generation.
@@ -9407,7 +9407,7 @@ const fromCommand = (cmd) => {
9407
9407
  };
9408
9408
  };
9409
9409
  //#endregion
9410
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/cli/internal/help.js
9410
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/cli/internal/help.js
9411
9411
  /**
9412
9412
  * Help Documentation
9413
9413
  * ================
@@ -9514,7 +9514,7 @@ const getHelpForCommandPath = (command, commandPath, builtIns) => gen(function*
9514
9514
  };
9515
9515
  });
9516
9516
  //#endregion
9517
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/cli/GlobalFlag.js
9517
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/cli/GlobalFlag.js
9518
9518
  /**
9519
9519
  * Global flags for Effect CLI command trees. Global flags are parsed outside a
9520
9520
  * single command's local flags and can apply to a command and its descendants.
@@ -9686,7 +9686,7 @@ const BuiltIns = [
9686
9686
  LogLevel
9687
9687
  ];
9688
9688
  //#endregion
9689
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/cli/CliConfig.js
9689
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/cli/CliConfig.js
9690
9690
  /**
9691
9691
  * Configuration for Effect CLI command execution.
9692
9692
  *
@@ -9713,7 +9713,7 @@ var CliConfig = class extends Reference("effect/unstable/cli/CliConfig", { defau
9713
9713
  */
9714
9714
  const defaults = { builtIns: BuiltIns };
9715
9715
  //#endregion
9716
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/cli/internal/lexer.js
9716
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/cli/internal/lexer.js
9717
9717
  /** @internal */
9718
9718
  function lex(argv) {
9719
9719
  const endIndex = argv.indexOf("--");
@@ -9772,7 +9772,7 @@ const lexTokens = (args) => {
9772
9772
  return tokens;
9773
9773
  };
9774
9774
  //#endregion
9775
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/cli/internal/auto-suggest.js
9775
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/cli/internal/auto-suggest.js
9776
9776
  /**
9777
9777
  * Simple Levenshtein distance implementation (small N, no perf worries)
9778
9778
  */
@@ -9800,7 +9800,7 @@ const suggest = (input, candidates) => {
9800
9800
  return distances.filter(([d]) => d === minDistance).map(([, c]) => c);
9801
9801
  };
9802
9802
  //#endregion
9803
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/cli/internal/parser.js
9803
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/cli/internal/parser.js
9804
9804
  /**
9805
9805
  * Parsing Pipeline for CLI Commands
9806
9806
  * ==================================
@@ -10328,7 +10328,7 @@ const scanCommandLevel = (tokens, context) => {
10328
10328
  return toLeafResult(state);
10329
10329
  };
10330
10330
  //#endregion
10331
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/cli/internal/wizard.js
10331
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/cli/internal/wizard.js
10332
10332
  const run$2 = /*#__PURE__*/ fnUntraced(function* (command, options) {
10333
10333
  const commandPath = options?.commandPath ?? [command.name];
10334
10334
  const selected = getCommandAtPath(command, commandPath);
@@ -10491,7 +10491,7 @@ const wrapCommand = (commandLine) => {
10491
10491
  };
10492
10492
  const formatShellArg = (arg) => /^[A-Za-z0-9_./:@%+=,-]+$/.test(arg) ? arg : `'${arg.replaceAll("'", `'"'"'`)}'`;
10493
10493
  //#endregion
10494
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/cli/Command.js
10494
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/cli/Command.js
10495
10495
  /**
10496
10496
  * Returns `true` if the provided value is a `Command`.
10497
10497
  *
@@ -11091,7 +11091,7 @@ const runWith = (command, config) => {
11091
11091
  }, catchFilter((error) => isCliError(error) && error._tag === "ShowHelp" ? succeed$2(error) : fail$1(error), (error) => andThen(showHelp(command, error), fail(error))), catchFilter((e) => isQuitError(e) ? succeed$2(e) : fail$1(e), (_) => interrupt$1));
11092
11092
  };
11093
11093
  //#endregion
11094
- //#region ../t3-shared/src/Net.ts
11094
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-shared/src/Net.ts
11095
11095
  var NetError = class extends TaggedError("NetError") {};
11096
11096
  const isErrnoExceptionWithCode = (cause) => isObject$1(cause) && hasProperty(cause, "code") && isString(cause.code);
11097
11097
  const closeServer = (server) => {
@@ -11217,7 +11217,7 @@ const layer$43 = sync$2(NetService, make$62);
11217
11217
  //#region package.json
11218
11218
  var version = "0.0.31";
11219
11219
  //#endregion
11220
- //#region ../t3-contracts/src/baseSchemas.ts
11220
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-contracts/src/baseSchemas.ts
11221
11221
  const TrimmedString = String$1.pipe(decodeTo(String$1, transformOrFail({
11222
11222
  decode: (value) => succeed$1(value.trim()),
11223
11223
  encode: (value) => succeed$1(value.trim())
@@ -11268,7 +11268,7 @@ const RuntimeTaskId = makeEntityId("RuntimeTaskId");
11268
11268
  const ApprovalRequestId = makeEntityId("ApprovalRequestId");
11269
11269
  const CheckpointRef = makeEntityId("CheckpointRef");
11270
11270
  //#endregion
11271
- //#region ../t3-contracts/src/providerInstance.ts
11271
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-contracts/src/providerInstance.ts
11272
11272
  /**
11273
11273
  * Provider-instance contracts.
11274
11274
  *
@@ -11375,7 +11375,7 @@ Record(ProviderInstanceId, ProviderInstanceConfig);
11375
11375
  */
11376
11376
  const defaultInstanceIdForDriver = (driver) => ProviderInstanceId.make(driver);
11377
11377
  //#endregion
11378
- //#region ../t3-contracts/src/background.ts
11378
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-contracts/src/background.ts
11379
11379
  const BackgroundBooleanState = Literals([
11380
11380
  "true",
11381
11381
  "false",
@@ -11493,7 +11493,7 @@ const BackgroundPolicySnapshot = Struct({
11493
11493
  updatedAt: DateTimeUtc
11494
11494
  });
11495
11495
  //#endregion
11496
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/httpapi/HttpApiSchema.js
11496
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/httpapi/HttpApiSchema.js
11497
11497
  const statusCodeByLiteral = {
11498
11498
  Continue: 100,
11499
11499
  SwitchingProtocols: 101,
@@ -11673,7 +11673,7 @@ function getStatusError(self) {
11673
11673
  return resolveHttpApiStatus(self) ?? 500;
11674
11674
  }
11675
11675
  //#endregion
11676
- //#region ../t3-contracts/src/auth.ts
11676
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-contracts/src/auth.ts
11677
11677
  /**
11678
11678
  * Declares the server's overall authentication posture.
11679
11679
  *
@@ -12018,7 +12018,7 @@ Struct({
12018
12018
  threadId: ThreadId
12019
12019
  });
12020
12020
  //#endregion
12021
- //#region ../../node_modules/.pnpm/find-my-way-ts@0.1.6/node_modules/find-my-way-ts/dist/esm/QueryString.js
12021
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/find-my-way-ts@0.1.6/node_modules/find-my-way-ts/dist/esm/QueryString.js
12022
12022
  /**
12023
12023
  * @since 1.0.0
12024
12024
  */
@@ -12083,7 +12083,7 @@ function parse$1(input) {
12083
12083
  return result;
12084
12084
  }
12085
12085
  //#endregion
12086
- //#region ../../node_modules/.pnpm/find-my-way-ts@0.1.6/node_modules/find-my-way-ts/dist/esm/internal/router.js
12086
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/find-my-way-ts@0.1.6/node_modules/find-my-way-ts/dist/esm/internal/router.js
12087
12087
  const FULL_PATH_REGEXP = /^https?:\/\/.*?\//;
12088
12088
  const OPTIONAL_PARAM_REGEXP = /(\/:[^/()]*?)\?(\/?)/;
12089
12089
  /** @internal */
@@ -12598,7 +12598,7 @@ const httpMethods = [
12598
12598
  "UNSUBSCRIBE"
12599
12599
  ];
12600
12600
  //#endregion
12601
- //#region ../../node_modules/.pnpm/find-my-way-ts@0.1.6/node_modules/find-my-way-ts/dist/esm/index.js
12601
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/find-my-way-ts@0.1.6/node_modules/find-my-way-ts/dist/esm/index.js
12602
12602
  /**
12603
12603
  * @since 1.0.0
12604
12604
  */
@@ -12608,7 +12608,7 @@ const httpMethods = [
12608
12608
  */
12609
12609
  const make$60 = make$61;
12610
12610
  //#endregion
12611
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/http/HttpRouter.js
12611
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/http/HttpRouter.js
12612
12612
  /**
12613
12613
  * Builds server-side routers for Effect HTTP applications.
12614
12614
  *
@@ -12999,7 +12999,7 @@ const serve = (appLayer, options) => {
12999
12999
  }).pipe(unwrap, provideMerge(appLayer), provide(RouterLayer), options?.disableListenLog ? identity : withLogAddress);
13000
13000
  };
13001
13001
  //#endregion
13002
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/httpapi/internal/mediaType.js
13002
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/httpapi/internal/mediaType.js
13003
13003
  /** @internal */
13004
13004
  function normalize(contentType) {
13005
13005
  const normalized = contentType.toLowerCase().trim();
@@ -13007,7 +13007,7 @@ function normalize(contentType) {
13007
13007
  return index === -1 ? normalized : normalized.slice(0, index).trim();
13008
13008
  }
13009
13009
  //#endregion
13010
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/httpapi/HttpApiEndpoint.js
13010
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/httpapi/HttpApiEndpoint.js
13011
13011
  /**
13012
13012
  * Defines endpoint declarations used inside an HTTP API group.
13013
13013
  *
@@ -13250,7 +13250,7 @@ const get$2 = /*#__PURE__*/ make$58("GET");
13250
13250
  const post = /*#__PURE__*/ make$58("POST");
13251
13251
  const del = /*#__PURE__*/ make$58("DELETE");
13252
13252
  //#endregion
13253
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/httpapi/HttpApi.js
13253
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/httpapi/HttpApi.js
13254
13254
  const TypeId$11 = "~effect/httpapi/HttpApi";
13255
13255
  const Proto$4 = {
13256
13256
  [TypeId$11]: TypeId$11,
@@ -13386,7 +13386,7 @@ const extractResponseContent = (schemas, getStatus) => {
13386
13386
  */
13387
13387
  var AdditionalSchemas = class extends Service$2()("effect/httpapi/HttpApi/AdditionalSchemas") {};
13388
13388
  //#endregion
13389
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/httpapi/HttpApiGroup.js
13389
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/httpapi/HttpApiGroup.js
13390
13390
  const TypeId$10 = "~effect/httpapi/HttpApiGroup";
13391
13391
  const Proto$3 = {
13392
13392
  [TypeId$10]: TypeId$10,
@@ -13469,7 +13469,7 @@ const make$56 = (identifier, options) => makeProto$2({
13469
13469
  annotations: empty$5()
13470
13470
  });
13471
13471
  //#endregion
13472
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/httpapi/HttpApiError.js
13472
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/httpapi/HttpApiError.js
13473
13473
  /**
13474
13474
  * Built-in error schemas for common HTTP API failure responses.
13475
13475
  *
@@ -13567,7 +13567,7 @@ var HttpApiSchemaError = class HttpApiSchemaError extends TaggedClass("HttpApiSc
13567
13567
  }
13568
13568
  };
13569
13569
  //#endregion
13570
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/httpapi/HttpApiMiddleware.js
13570
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/httpapi/HttpApiMiddleware.js
13571
13571
  /**
13572
13572
  * Declares middleware for schema-driven HTTP APIs.
13573
13573
  *
@@ -13702,6 +13702,7 @@ const CLAUDE_DRIVER_KIND = ProviderDriverKind.make("claudeAgent");
13702
13702
  const GEMINI_DRIVER_KIND = ProviderDriverKind.make("gemini");
13703
13703
  const QWEN_DRIVER_KIND = ProviderDriverKind.make("qwen");
13704
13704
  const KIMI_DRIVER_KIND = ProviderDriverKind.make("kimi");
13705
+ const JOYCODE_DRIVER_KIND = ProviderDriverKind.make("joycode");
13705
13706
  const DEFAULT_MODEL = "gpt-5.6-sol";
13706
13707
  /**
13707
13708
  * Codex default-model preference, most preferred first. The provider snapshot
@@ -13715,7 +13716,8 @@ const DEFAULT_MODEL_BY_PROVIDER = {
13715
13716
  [CLAUDE_DRIVER_KIND]: "claude-sonnet-5",
13716
13717
  [GEMINI_DRIVER_KIND]: "gemini-2.5-pro",
13717
13718
  [QWEN_DRIVER_KIND]: "qwen3-coder-plus",
13718
- [KIMI_DRIVER_KIND]: "kimi-k2"
13719
+ [KIMI_DRIVER_KIND]: "kimi-k2",
13720
+ [JOYCODE_DRIVER_KIND]: "default"
13719
13721
  };
13720
13722
  /** Per-provider text generation model defaults. */
13721
13723
  const DEFAULT_TEXT_GENERATION_MODEL_BY_PROVIDER = {
@@ -13723,7 +13725,8 @@ const DEFAULT_TEXT_GENERATION_MODEL_BY_PROVIDER = {
13723
13725
  [CLAUDE_DRIVER_KIND]: "claude-haiku-4-5",
13724
13726
  [GEMINI_DRIVER_KIND]: "gemini-2.5-flash",
13725
13727
  [QWEN_DRIVER_KIND]: "qwen3-coder-flash",
13726
- [KIMI_DRIVER_KIND]: "kimi-k2"
13728
+ [KIMI_DRIVER_KIND]: "kimi-k2",
13729
+ [JOYCODE_DRIVER_KIND]: "default"
13727
13730
  };
13728
13731
  const MODEL_SLUG_ALIASES_BY_PROVIDER = {
13729
13732
  [CODEX_DRIVER_KIND]: {
@@ -13760,10 +13763,11 @@ const MODEL_SLUG_ALIASES_BY_PROVIDER = {
13760
13763
  },
13761
13764
  [GEMINI_DRIVER_KIND]: {},
13762
13765
  [QWEN_DRIVER_KIND]: {},
13763
- [KIMI_DRIVER_KIND]: {}
13766
+ [KIMI_DRIVER_KIND]: {},
13767
+ [JOYCODE_DRIVER_KIND]: {}
13764
13768
  };
13765
13769
  //#endregion
13766
- //#region ../t3-contracts/src/orchestration.ts
13770
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-contracts/src/orchestration.ts
13767
13771
  const ORCHESTRATION_WS_METHODS = {
13768
13772
  dispatchCommand: "orchestration.dispatchCommand",
13769
13773
  getWorkflowScript: "orchestration.getWorkflowScript",
@@ -15019,7 +15023,7 @@ var OrchestrationSearchThreadsError = class extends TaggedErrorClass()("Orchestr
15019
15023
  cause: optional$3(Defect())
15020
15024
  }) {};
15021
15025
  //#endregion
15022
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/httpapi/HttpApiSecurity.js
15026
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/httpapi/HttpApiSecurity.js
15023
15027
  /**
15024
15028
  * Defines security scheme declarations for declarative HTTP APIs.
15025
15029
  *
@@ -15072,7 +15076,7 @@ const annotate = /*#__PURE__*/ dual(3, (self, service, value) => Object.assign(O
15072
15076
  annotations: add$2(self.annotations, service, value)
15073
15077
  }));
15074
15078
  //#endregion
15075
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/httpapi/OpenApi.js
15079
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/httpapi/OpenApi.js
15076
15080
  /**
15077
15081
  * Generates OpenAPI 3.1 documents from declarative `HttpApi` contracts.
15078
15082
  *
@@ -15671,7 +15675,7 @@ const securitySchemeForComparison = (scheme) => {
15671
15675
  return scheme;
15672
15676
  };
15673
15677
  //#endregion
15674
- //#region ../t3-contracts/src/relay.ts
15678
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-contracts/src/relay.ts
15675
15679
  const RelayAgentAwarenessPlatform = Literal("ios");
15676
15680
  const RelayAgentAwarenessPhase = Literals([
15677
15681
  "starting",
@@ -16272,7 +16276,7 @@ const RelayServerGroup = make$56("server").add(post("publishAgentActivity", "/v1
16272
16276
  }).annotate(Summary, "Publish agent activity")).annotate(Description, "Environment-authenticated activity publication.").middleware(RelayEnvironmentAuth);
16273
16277
  make$57("RelayApi").add(RelayHealthGroup, RelayMetadataGroup, RelayMobileGroup, RelayClientGroup, RelayTokenGroup, RelayDpopClientGroup, RelayServerGroup).annotate(Title$1, "AgentLink Relay API").annotate(Version, "1.0.0").annotate(Description, "Control-plane API for linking T3 environments, connecting authorized clients, and publishing agent activity.");
16274
16278
  //#endregion
16275
- //#region ../t3-contracts/src/environmentHttp.ts
16279
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-contracts/src/environmentHttp.ts
16276
16280
  const OptionalBearerHeaders = Struct({
16277
16281
  authorization: optionalKey(String$1),
16278
16282
  dpop: optionalKey(String$1)
@@ -16552,7 +16556,7 @@ var EnvironmentConnectHttpApi = class extends make$56("connect").add(post("linkP
16552
16556
  })) {};
16553
16557
  var EnvironmentHttpApi = class extends make$57("environment").add(EnvironmentMetadataHttpApi).add(EnvironmentAuthHttpApi).add(EnvironmentOrchestrationHttpApi).add(EnvironmentConnectHttpApi) {};
16554
16558
  //#endregion
16555
- //#region ../t3-contracts/src/relayClient.ts
16559
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-contracts/src/relayClient.ts
16556
16560
  const RelayClientStatusSchema = Union([
16557
16561
  Struct({
16558
16562
  status: Literal("available"),
@@ -16605,7 +16609,7 @@ var RelayClientInstallFailedError = class extends TaggedErrorClass()("RelayClien
16605
16609
  message: String$1
16606
16610
  }) {};
16607
16611
  //#endregion
16608
- //#region ../t3-contracts/src/desktopBootstrap.ts
16612
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-contracts/src/desktopBootstrap.ts
16609
16613
  const DesktopBackendBootstrap = Struct({
16610
16614
  mode: Literal("desktop"),
16611
16615
  noBrowser: Boolean$1,
@@ -16622,7 +16626,7 @@ const DesktopBackendBootstrap = Struct({
16622
16626
  resourceMonitorPath: optionalKey(TrimmedNonEmptyString)
16623
16627
  });
16624
16628
  //#endregion
16625
- //#region ../t3-contracts/src/remoteAccess.ts
16629
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-contracts/src/remoteAccess.ts
16626
16630
  const AdvertisedEndpointProviderKind = Literals([
16627
16631
  "core",
16628
16632
  "private-network",
@@ -16674,7 +16678,7 @@ Struct({
16674
16678
  description: optional$3(TrimmedNonEmptyString)
16675
16679
  });
16676
16680
  //#endregion
16677
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/ChannelSchema.js
16681
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/ChannelSchema.js
16678
16682
  /**
16679
16683
  * Creates a channel that decodes non-empty chunks from the schema's encoded
16680
16684
  * representation into schema values.
@@ -16700,7 +16704,7 @@ const decode$3 = (schema) => () => {
16700
16704
  return fromTransform((upstream, _scope) => succeed$1(flatMap$1(upstream, (chunk) => decode(chunk))));
16701
16705
  };
16702
16706
  //#endregion
16703
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/PrimaryKey.js
16707
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/PrimaryKey.js
16704
16708
  /**
16705
16709
  * Defines the unique identifier used to identify objects that implement the `PrimaryKey` interface.
16706
16710
  *
@@ -16718,7 +16722,7 @@ const decode$3 = (schema) => () => {
16718
16722
  */
16719
16723
  const symbol = "~effect/interfaces/PrimaryKey";
16720
16724
  //#endregion
16721
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/LayerMap.js
16725
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/LayerMap.js
16722
16726
  /**
16723
16727
  * Caches scoped services selected by key and built from layers.
16724
16728
  *
@@ -16911,7 +16915,7 @@ const Service = () => (id, options) => {
16911
16915
  return TagClass;
16912
16916
  };
16913
16917
  //#endregion
16914
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/Logger.js
16918
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/Logger.js
16915
16919
  /**
16916
16920
  * Context reference containing the active loggers for the current fiber.
16917
16921
  *
@@ -17034,7 +17038,7 @@ const layer$41 = (loggers, options) => effect(CurrentLoggers, withFiber(fnUntrac
17034
17038
  return currentLoggers;
17035
17039
  })));
17036
17040
  //#endregion
17037
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/SynchronizedRef.js
17041
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/SynchronizedRef.js
17038
17042
  /**
17039
17043
  * Stores mutable state whose updates run one at a time.
17040
17044
  *
@@ -17132,7 +17136,7 @@ const modifyEffect = /*#__PURE__*/ dual(2, (self, f) => self.semaphore.withPermi
17132
17136
  });
17133
17137
  })));
17134
17138
  //#endregion
17135
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/TxRef.js
17139
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/TxRef.js
17136
17140
  /**
17137
17141
  * Transactional references for coordinating mutable state with Effect
17138
17142
  * transactions. A `TxRef` stores a current value, but reads and writes inside
@@ -17343,7 +17347,7 @@ const get$1 = (self) => modify$1(self, (current) => [current, current]);
17343
17347
  */
17344
17348
  const set$1 = /*#__PURE__*/ dual(2, (self, value) => update$1(self, () => value));
17345
17349
  //#endregion
17346
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/TxChunk.js
17350
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/TxChunk.js
17347
17351
  /**
17348
17352
  * Stores a `Chunk` inside transactional state.
17349
17353
  *
@@ -17667,7 +17671,7 @@ const isEmpty$1 = (self) => modify(self, (current) => [isEmpty$2(current), curre
17667
17671
  */
17668
17672
  const drop = /*#__PURE__*/ dual(2, (self, n) => update(self, (current) => drop$1(current, n)));
17669
17673
  //#endregion
17670
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/TxQueue.js
17674
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/TxQueue.js
17671
17675
  const EnqueueTypeId = "~effect/transactions/TxQueue/Enqueue";
17672
17676
  const DequeueTypeId = "~effect/transactions/TxQueue/Dequeue";
17673
17677
  const TypeId$3 = "~effect/transactions/TxQueue";
@@ -18024,7 +18028,7 @@ const shutdown = (self) => gen(function* () {
18024
18028
  return yield* interrupt(self);
18025
18029
  }).pipe(tx);
18026
18030
  //#endregion
18027
- //#region ../t3-contracts/src/preview.ts
18031
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-contracts/src/preview.ts
18028
18032
  /**
18029
18033
  * Preview - Schemas for the in-app browser preview surface.
18030
18034
  *
@@ -18246,7 +18250,7 @@ var PreviewInvalidUrlError = class extends TaggedErrorClass()("PreviewInvalidUrl
18246
18250
  };
18247
18251
  const PreviewError = Union([PreviewSessionLookupError, PreviewInvalidUrlError]);
18248
18252
  //#endregion
18249
- //#region ../t3-contracts/src/previewAutomation.ts
18253
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-contracts/src/previewAutomation.ts
18250
18254
  const BoundedUrl = String$1.check(isTrimmed()).check(isNonEmpty()).check(isMaxLength(2048));
18251
18255
  const URL_GUIDANCE = "Absolute http(s) URL or a schemeless host such as t3.chat or localhost:5173. Schemeless public hosts use https; loopback hosts use http.";
18252
18256
  const OptionalTimeoutMs = optional$3(Int.check(isGreaterThan(0)).check(isLessThanOrEqualTo(6e4)).annotate({ description: "Maximum wait in milliseconds. Defaults to 15000; maximum 60000." })).annotate({ description: "Maximum wait in milliseconds. Defaults to 15000; maximum 60000." });
@@ -18715,7 +18719,7 @@ Struct({
18715
18719
  environmentId: EnvironmentId
18716
18720
  });
18717
18721
  //#endregion
18718
- //#region ../t3-contracts/src/ipc.ts
18722
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-contracts/src/ipc.ts
18719
18723
  const ContextMenuItemSchema = Struct({
18720
18724
  id: String$1,
18721
18725
  label: String$1,
@@ -19102,7 +19106,7 @@ Struct({
19102
19106
  input: PreviewAutomationWaitForInput
19103
19107
  });
19104
19108
  //#endregion
19105
- //#region ../t3-contracts/src/terminal.ts
19109
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-contracts/src/terminal.ts
19106
19110
  const TrimmedNonEmptyStringSchema$2 = TrimmedNonEmptyString;
19107
19111
  const TerminalColsSchema = Int.check(isGreaterThanOrEqualTo(1)).check(isLessThanOrEqualTo(1e3));
19108
19112
  const TerminalRowsSchema = Int.check(isGreaterThanOrEqualTo(1)).check(isLessThanOrEqualTo(500));
@@ -19356,7 +19360,7 @@ const TerminalError = Union([
19356
19360
  TerminalResizeError
19357
19361
  ]);
19358
19362
  //#endregion
19359
- //#region ../t3-contracts/src/provider.ts
19363
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-contracts/src/provider.ts
19360
19364
  const ProviderSessionStatus = Literals([
19361
19365
  "connecting",
19362
19366
  "ready",
@@ -19438,7 +19442,7 @@ Struct({
19438
19442
  payload: optional$3(Unknown)
19439
19443
  });
19440
19444
  //#endregion
19441
- //#region ../t3-contracts/src/providerRuntime.ts
19445
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-contracts/src/providerRuntime.ts
19442
19446
  const TrimmedNonEmptyStringSchema$1 = TrimmedNonEmptyString;
19443
19447
  const UnknownRecordSchema = Record(String$1, Unknown);
19444
19448
  const RuntimeEventRaw = Struct({
@@ -20576,7 +20580,7 @@ const ExternalLauncherError = Union([
20576
20580
  ]);
20577
20581
  is(ExternalLauncherError);
20578
20582
  //#endregion
20579
- //#region ../t3-contracts/src/settings.ts
20583
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-contracts/src/settings.ts
20580
20584
  const TimestampFormat = Literals([
20581
20585
  "locale",
20582
20586
  "12-hour",
@@ -20758,7 +20762,7 @@ const ClaudeSettings = makeProviderSettingsSchema({
20758
20762
  ] });
20759
20763
  /**
20760
20764
  * Shared shape for ACP-based agents (agentlink fork additions): Gemini CLI,
20761
- * Qwen Code, Kimi CLI. Each only needs an enable switch, a binary path, and
20765
+ * Qwen Code, Kimi CLI, JoyCode. Each only needs an enable switch, a binary path, and
20762
20766
  * a custom-model list — everything else is negotiated over ACP at runtime.
20763
20767
  */
20764
20768
  const makeAcpAgentSettingsSchema = (input) => makeProviderSettingsSchema({
@@ -20788,6 +20792,11 @@ const KimiSettings = makeAcpAgentSettingsSchema({
20788
20792
  binaryTitle: "Binary path",
20789
20793
  binaryDescription: "Path to the Kimi CLI binary (started with `kimi acp`)."
20790
20794
  });
20795
+ const JoyCodeSettings = makeAcpAgentSettingsSchema({
20796
+ binaryFallback: "joycode",
20797
+ binaryTitle: "Binary path",
20798
+ binaryDescription: "Path to the JoyCode CLI binary (started with `joycode app-server`)."
20799
+ });
20791
20800
  const ObservabilitySettings = Struct({
20792
20801
  otlpTracesUrl: TrimmedString.pipe(withDecodingDefault(succeed$1(""))),
20793
20802
  otlpMetricsUrl: TrimmedString.pipe(withDecodingDefault(succeed$1("")))
@@ -20858,7 +20867,8 @@ const ServerSettings = Struct({
20858
20867
  claudeAgent: ClaudeSettings.pipe(withDecodingDefault(succeed$1({}))),
20859
20868
  gemini: GeminiSettings.pipe(withDecodingDefault(succeed$1({}))),
20860
20869
  qwen: QwenSettings.pipe(withDecodingDefault(succeed$1({}))),
20861
- kimi: KimiSettings.pipe(withDecodingDefault(succeed$1({})))
20870
+ kimi: KimiSettings.pipe(withDecodingDefault(succeed$1({}))),
20871
+ joycode: JoyCodeSettings.pipe(withDecodingDefault(succeed$1({})))
20862
20872
  }).pipe(withDecodingDefault(succeed$1({}))),
20863
20873
  providerInstances: Record(ProviderInstanceId, ProviderInstanceConfig).pipe(withDecodingDefault(succeed$1({}))),
20864
20874
  observability: ObservabilitySettings.pipe(withDecodingDefault(succeed$1({})))
@@ -20948,7 +20958,8 @@ const ServerSettingsPatch = Struct({
20948
20958
  claudeAgent: optionalKey(ClaudeSettingsPatch),
20949
20959
  gemini: optionalKey(AcpAgentSettingsPatch),
20950
20960
  qwen: optionalKey(AcpAgentSettingsPatch),
20951
- kimi: optionalKey(AcpAgentSettingsPatch)
20961
+ kimi: optionalKey(AcpAgentSettingsPatch),
20962
+ joycode: optionalKey(AcpAgentSettingsPatch)
20952
20963
  })),
20953
20964
  providerInstances: optionalKey(Record(ProviderInstanceId, ProviderInstanceConfig))
20954
20965
  });
@@ -21406,7 +21417,7 @@ var ServerSelfUpdateError = class extends TaggedErrorClass()("ServerSelfUpdateEr
21406
21417
  }
21407
21418
  };
21408
21419
  //#endregion
21409
- //#region ../t3-contracts/src/vcs.ts
21420
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-contracts/src/vcs.ts
21410
21421
  const VcsDriverKind = Literals([
21411
21422
  "git",
21412
21423
  "jj",
@@ -21595,7 +21606,7 @@ const VcsError = Union([
21595
21606
  VcsUnsupportedOperationError
21596
21607
  ]);
21597
21608
  //#endregion
21598
- //#region ../t3-contracts/src/sourceControl.ts
21609
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-contracts/src/sourceControl.ts
21599
21610
  const SourceControlProviderKind = Literals([
21600
21611
  "github",
21601
21612
  "gitlab",
@@ -21734,7 +21745,7 @@ var SourceControlRepositoryError = class extends TaggedErrorClass()("SourceContr
21734
21745
  }
21735
21746
  };
21736
21747
  //#endregion
21737
- //#region ../t3-contracts/src/git.ts
21748
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-contracts/src/git.ts
21738
21749
  const TrimmedNonEmptyStringSchema = TrimmedNonEmptyString;
21739
21750
  const GIT_LIST_BRANCHES_MAX_LIMIT = 200;
21740
21751
  const GitStackedAction = Literals([
@@ -22082,7 +22093,7 @@ const GitActionProgressEvent = Union([
22082
22093
  })
22083
22094
  ]);
22084
22095
  //#endregion
22085
- //#region ../t3-contracts/src/t3ProjectFile.ts
22096
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-contracts/src/t3ProjectFile.ts
22086
22097
  /** File name of the checked-in T3 project file, resolved at the workspace root. */
22087
22098
  const T3_PROJECT_FILE_NAME = "t3.json";
22088
22099
  /** Public URL of the published JSON Schema for {@link T3ProjectFile}. */
@@ -22111,7 +22122,7 @@ const T3ProjectFile = Struct({
22111
22122
  description: "Checked-in project configuration for AgentLink (t3.json at the repository root)."
22112
22123
  });
22113
22124
  //#endregion
22114
- //#region ../t3-contracts/src/project.ts
22125
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-contracts/src/project.ts
22115
22126
  const PROJECT_SEARCH_ENTRIES_MAX_LIMIT = 200;
22116
22127
  const PROJECT_SEARCH_CONTENTS_MAX_LIMIT = 500;
22117
22128
  const PROJECT_WRITE_FILE_PATH_MAX_LENGTH = 512;
@@ -22292,7 +22303,7 @@ var ProjectWriteFileError = class extends TaggedErrorClass()("ProjectWriteFileEr
22292
22303
  }
22293
22304
  };
22294
22305
  //#endregion
22295
- //#region ../t3-contracts/src/filesystem.ts
22306
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-contracts/src/filesystem.ts
22296
22307
  const FILESYSTEM_PATH_MAX_LENGTH = 512;
22297
22308
  const FilesystemBrowseInput = Struct({
22298
22309
  partialPath: TrimmedNonEmptyString.check(isMaxLength(FILESYSTEM_PATH_MAX_LENGTH)),
@@ -22332,7 +22343,7 @@ var FilesystemBrowseError = class extends TaggedErrorClass()("FilesystemBrowseEr
22332
22343
  }
22333
22344
  };
22334
22345
  //#endregion
22335
- //#region ../t3-contracts/src/assets.ts
22346
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-contracts/src/assets.ts
22336
22347
  const ASSET_PATH_MAX_LENGTH = 1024;
22337
22348
  const AssetResource = Union([
22338
22349
  TaggedStruct("workspace-file", {
@@ -22452,7 +22463,7 @@ const AssetAccessError = Union([
22452
22463
  AssetSigningKeyLoadError
22453
22464
  ]);
22454
22465
  //#endregion
22455
- //#region ../t3-contracts/src/review.ts
22466
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-contracts/src/review.ts
22456
22467
  const ReviewDiffPreviewInput = Struct({
22457
22468
  cwd: TrimmedNonEmptyString,
22458
22469
  baseRef: optional$3(TrimmedNonEmptyString),
@@ -22817,7 +22828,7 @@ const ResourceTelemetryRetryResult = Struct({
22817
22828
  snapshot: ResourceTelemetrySnapshot
22818
22829
  });
22819
22830
  //#endregion
22820
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/rpc/RpcSchema.js
22831
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/rpc/RpcSchema.js
22821
22832
  /**
22822
22833
  * RPC schema markers and interruption annotations.
22823
22834
  *
@@ -22876,7 +22887,7 @@ var ClientAbort = class extends Service$2()("effect/rpc/RpcSchema/ClientAbort")
22876
22887
  }));
22877
22888
  };
22878
22889
  //#endregion
22879
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/rpc/Rpc.js
22890
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/rpc/Rpc.js
22880
22891
  const TypeId$2 = "~effect/rpc/Rpc";
22881
22892
  /**
22882
22893
  * Represents server-side metadata for the client associated with an RPC request.
@@ -23063,7 +23074,7 @@ const WrapperTypeId = "~effect/rpc/Rpc/Wrapper";
23063
23074
  */
23064
23075
  const isWrapper = (u) => WrapperTypeId in u;
23065
23076
  //#endregion
23066
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/rpc/RpcGroup.js
23077
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/rpc/RpcGroup.js
23067
23078
  const RpcGroupProto = {
23068
23079
  add(...rpcs) {
23069
23080
  const requests = new Map(this.requests);
@@ -23197,7 +23208,7 @@ const make$51 = (...rpcs) => makeProto({
23197
23208
  annotations: empty$5()
23198
23209
  });
23199
23210
  //#endregion
23200
- //#region ../t3-contracts/src/rpc.ts
23211
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-contracts/src/rpc.ts
23201
23212
  const WS_METHODS = {
23202
23213
  projectsList: "projects.list",
23203
23214
  projectsAdd: "projects.add",
@@ -23699,7 +23710,7 @@ const WsRpcGroup = make$51(WsServerProbeRpc, WsServerGetConfigRpc, WsServerRefre
23699
23710
  stream: true
23700
23711
  }), WsOrchestrationDispatchCommandRpc, WsOrchestrationGetWorkflowScriptRpc, WsOrchestrationGetTurnDiffRpc, WsOrchestrationGetFullThreadDiffRpc, WsOrchestrationSearchThreadsRpc, WsOrchestrationGetArchivedShellSnapshotRpc, WsOrchestrationSubscribeShellRpc, WsOrchestrationSubscribeThreadRpc);
23701
23712
  //#endregion
23702
- //#region ../t3-shared/src/oauthScope.ts
23713
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-shared/src/oauthScope.ts
23703
23714
  const OAUTH_SCOPE_TOKEN = /^[\u0021\u0023-\u005b\u005d-\u007e]+$/u;
23704
23715
  var OAuthScopeEncodingError = class extends TaggedErrorClass()("OAuthScopeEncodingError", {
23705
23716
  scopes: ArraySchema(String$1),
@@ -23980,7 +23991,7 @@ const layer$39 = effect(EnvironmentAuthPolicy, gen(function* () {
23980
23991
  return EnvironmentAuthPolicy.of({ getDescriptor: () => succeed$1(descriptor).pipe(withSpan("EnvironmentAuthPolicy.getDescriptor")) });
23981
23992
  }));
23982
23993
  //#endregion
23983
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/sql/SqlSchema.js
23994
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/sql/SqlSchema.js
23984
23995
  /**
23985
23996
  * Wraps SQL execution callbacks with request encoding and result decoding.
23986
23997
  *
@@ -25507,7 +25518,7 @@ const layer$34 = effect(SessionStore, gen(function* () {
25507
25518
  });
25508
25519
  })).pipe(provideMerge(layer$35));
25509
25520
  //#endregion
25510
- //#region ../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/cryptoNode.js
25521
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/cryptoNode.js
25511
25522
  /**
25512
25523
  * Internal webcrypto alias.
25513
25524
  * We prefer WebCrypto aka globalThis.crypto, which exists in node.js 16+.
@@ -25517,7 +25528,7 @@ const layer$34 = effect(SessionStore, gen(function* () {
25517
25528
  */
25518
25529
  const crypto = NodeCrypto && typeof NodeCrypto === "object" && "webcrypto" in NodeCrypto ? NodeCrypto.webcrypto : NodeCrypto && typeof NodeCrypto === "object" && "randomBytes" in NodeCrypto ? NodeCrypto : void 0;
25519
25530
  //#endregion
25520
- //#region ../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/utils.js
25531
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/utils.js
25521
25532
  /**
25522
25533
  * Utilities for hex, bytes, CSPRNG.
25523
25534
  * @module
@@ -25617,7 +25628,7 @@ function randomBytes$1(bytesLength = 32) {
25617
25628
  throw new Error("crypto.getRandomValues must be defined");
25618
25629
  }
25619
25630
  //#endregion
25620
- //#region ../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/_md.js
25631
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/_md.js
25621
25632
  /**
25622
25633
  * Internal Merkle-Damgard hash utils.
25623
25634
  * @module
@@ -25784,7 +25795,7 @@ const SHA512_IV = /* @__PURE__ */ Uint32Array.from([
25784
25795
  327033209
25785
25796
  ]);
25786
25797
  //#endregion
25787
- //#region ../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/_u64.js
25798
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/_u64.js
25788
25799
  /**
25789
25800
  * Internal helpers for u64. BigUint64Array is too slow as per 2025, so we implement it using Uint32Array.
25790
25801
  * @todo re-check https://issues.chromium.org/issues/42212588
@@ -25832,7 +25843,7 @@ const add4H = (low, Ah, Bh, Ch, Dh) => Ah + Bh + Ch + Dh + (low / 2 ** 32 | 0) |
25832
25843
  const add5L = (Al, Bl, Cl, Dl, El) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0) + (El >>> 0);
25833
25844
  const add5H = (low, Ah, Bh, Ch, Dh, Eh) => Ah + Bh + Ch + Dh + Eh + (low / 2 ** 32 | 0) | 0;
25834
25845
  //#endregion
25835
- //#region ../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/sha2.js
25846
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/sha2.js
25836
25847
  /**
25837
25848
  * SHA2 hash function. A.k.a. sha256, sha384, sha512, sha512_224, sha512_256.
25838
25849
  * SHA256 is the fastest hash implementable in JS, even faster than Blake3.
@@ -26234,7 +26245,7 @@ const sha512 = /* @__PURE__ */ createHasher(() => new SHA512());
26234
26245
  /** SHA2-384 hash function from RFC 4634. */
26235
26246
  const sha384 = /* @__PURE__ */ createHasher(() => new SHA384());
26236
26247
  //#endregion
26237
- //#region ../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/hmac.js
26248
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/hmac.js
26238
26249
  /**
26239
26250
  * HMAC: RFC2104 message authentication code.
26240
26251
  * @module
@@ -26313,7 +26324,7 @@ var HMAC = class extends Hash {
26313
26324
  const hmac = (hash, key, message) => new HMAC(hash, key).update(message).digest();
26314
26325
  hmac.create = (hash, key) => new HMAC(hash, key);
26315
26326
  //#endregion
26316
- //#region ../../node_modules/.pnpm/@noble+curves@1.9.1/node_modules/@noble/curves/esm/abstract/utils.js
26327
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/@noble+curves@1.9.1/node_modules/@noble/curves/esm/abstract/utils.js
26317
26328
  /**
26318
26329
  * Hex, bytes and number utilities.
26319
26330
  * @module
@@ -26555,7 +26566,7 @@ function memoized(fn) {
26555
26566
  };
26556
26567
  }
26557
26568
  //#endregion
26558
- //#region ../../node_modules/.pnpm/@noble+curves@1.9.1/node_modules/@noble/curves/esm/abstract/modular.js
26569
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/@noble+curves@1.9.1/node_modules/@noble/curves/esm/abstract/modular.js
26559
26570
  /**
26560
26571
  * Utils for modular division and finite fields.
26561
26572
  * A finite field over 11 is integer number operations `mod 11`.
@@ -26866,7 +26877,7 @@ function mapHashToField(key, fieldOrder, isLE = false) {
26866
26877
  return isLE ? numberToBytesLE(reduced, fieldLen) : numberToBytesBE(reduced, fieldLen);
26867
26878
  }
26868
26879
  //#endregion
26869
- //#region ../../node_modules/.pnpm/@noble+curves@1.9.1/node_modules/@noble/curves/esm/abstract/curve.js
26880
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/@noble+curves@1.9.1/node_modules/@noble/curves/esm/abstract/curve.js
26870
26881
  /**
26871
26882
  * Methods for elliptic curve multiplication by scalars.
26872
26883
  * Contains wNAF, pippenger
@@ -27120,7 +27131,7 @@ function validateBasic(curve) {
27120
27131
  });
27121
27132
  }
27122
27133
  //#endregion
27123
- //#region ../../node_modules/.pnpm/@noble+curves@1.9.1/node_modules/@noble/curves/esm/abstract/weierstrass.js
27134
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/@noble+curves@1.9.1/node_modules/@noble/curves/esm/abstract/weierstrass.js
27124
27135
  /**
27125
27136
  * Short Weierstrass curve methods. The formula is: y² = x³ + ax + b.
27126
27137
  *
@@ -28022,7 +28033,7 @@ function weierstrass(curveDef) {
28022
28033
  };
28023
28034
  }
28024
28035
  //#endregion
28025
- //#region ../../node_modules/.pnpm/@noble+curves@1.9.1/node_modules/@noble/curves/esm/_shortw_utils.js
28036
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/@noble+curves@1.9.1/node_modules/@noble/curves/esm/_shortw_utils.js
28026
28037
  /**
28027
28038
  * Utilities for short weierstrass curves, combined with noble-hashes.
28028
28039
  * @module
@@ -28047,7 +28058,7 @@ function createCurve(curveDef, defHash) {
28047
28058
  };
28048
28059
  }
28049
28060
  //#endregion
28050
- //#region ../../node_modules/.pnpm/@noble+curves@1.9.1/node_modules/@noble/curves/esm/nist.js
28061
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/@noble+curves@1.9.1/node_modules/@noble/curves/esm/nist.js
28051
28062
  /**
28052
28063
  * Internal module for NIST P256, P384, P521 curves.
28053
28064
  * Do not use for now.
@@ -28097,7 +28108,7 @@ createCurve({
28097
28108
  ]
28098
28109
  }, sha512);
28099
28110
  //#endregion
28100
- //#region ../t3-shared/src/dpopCommon.ts
28111
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-shared/src/dpopCommon.ts
28101
28112
  const DpopPublicJwk = Struct({
28102
28113
  kty: Literal("EC"),
28103
28114
  crv: Literal("P-256"),
@@ -28115,7 +28126,7 @@ function normalizeDpopHtu(url) {
28115
28126
  }
28116
28127
  }
28117
28128
  //#endregion
28118
- //#region ../t3-shared/src/relaySigning.ts
28129
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-shared/src/relaySigning.ts
28119
28130
  function isRecord$3(value) {
28120
28131
  return typeof value === "object" && value !== null && !Array.isArray(value);
28121
28132
  }
@@ -28125,7 +28136,7 @@ function stableStringify(value) {
28125
28136
  return JSON.stringify(value) ?? "null";
28126
28137
  }
28127
28138
  //#endregion
28128
- //#region ../t3-shared/src/dpop.ts
28139
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-shared/src/dpop.ts
28129
28140
  const DPOP_TYP = "dpop+jwt";
28130
28141
  const DPOP_ALG = "ES256";
28131
28142
  const DEFAULT_MAX_AGE_SECONDS = 300;
@@ -29969,7 +29980,7 @@ effectDiscard(runMigrations());
29969
29980
  //#region src/persistence/Layers/Sqlite.ts
29970
29981
  const defaultSqliteClientLoaders = {
29971
29982
  bun: () => import("@effect/sql-sqlite-bun/SqliteClient"),
29972
- node: () => import("./NodeSqliteClient-FfrElFAX.mjs")
29983
+ node: () => import("./NodeSqliteClient-S86HxjMf.mjs")
29973
29984
  };
29974
29985
  const makeRuntimeSqliteLayer = fn("makeRuntimeSqliteLayer")(function* (config) {
29975
29986
  const runtime = process.versions.bun !== void 0 ? "bun" : "node";
@@ -30507,7 +30518,7 @@ function formatSessionList(sessions, options) {
30507
30518
  ].join(newline)).join(`${newline}${newline}`) + newline;
30508
30519
  }
30509
30520
  //#endregion
30510
- //#region ../t3-shared/src/Struct.ts
30521
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-shared/src/Struct.ts
30511
30522
  function deepMerge(current, patch) {
30512
30523
  if (!isObject$1(current) || !isObject$1(patch)) return patch;
30513
30524
  const next = { ...current };
@@ -30519,7 +30530,7 @@ function deepMerge(current, patch) {
30519
30530
  return next;
30520
30531
  }
30521
30532
  //#endregion
30522
- //#region ../t3-shared/src/schemaJson.ts
30533
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-shared/src/schemaJson.ts
30523
30534
  const decodeJsonResult = (schema) => {
30524
30535
  const decode = decodeExit(fromJsonString(schema));
30525
30536
  return (input) => {
@@ -30598,7 +30609,7 @@ const fromJsonStringPretty = (schema) => fromJsonString(schema).pipe(encode$1({
30598
30609
  encode: prettyJsonString
30599
30610
  }));
30600
30611
  //#endregion
30601
- //#region ../t3-shared/src/model.ts
30612
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-shared/src/model.ts
30602
30613
  const DEFAULT_PROVIDER_DRIVER_KIND = ProviderDriverKind.make("codex");
30603
30614
  function createModelCapabilities(input) {
30604
30615
  return { optionDescriptors: input.optionDescriptors.map(cloneDescriptor) };
@@ -30723,7 +30734,7 @@ function applyClaudePromptEffortPrefix(text, effort) {
30723
30734
  return `Ultrathink:\n${trimmed}`;
30724
30735
  }
30725
30736
  //#endregion
30726
- //#region ../t3-shared/src/backgroundActivitySettings.ts
30737
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-shared/src/backgroundActivitySettings.ts
30727
30738
  const PRESET_SETTINGS = {
30728
30739
  performance: {
30729
30740
  profile: "performance",
@@ -30962,7 +30973,7 @@ function applyServerSettingsPatch(current, patch) {
30962
30973
  };
30963
30974
  }
30964
30975
  //#endregion
30965
- //#region ../t3-shared/src/hostProcess.ts
30976
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-shared/src/hostProcess.ts
30966
30977
  const HostProcessPlatform = Reference("@t3tools/shared/hostProcess/HostProcessPlatform", { defaultValue: () => process.platform });
30967
30978
  const HostProcessArchitecture = Reference("@t3tools/shared/hostProcess/HostProcessArchitecture", { defaultValue: () => process.arch });
30968
30979
  const HostProcessHostname = Reference("@t3tools/shared/hostProcess/HostProcessHostname", { defaultValue: () => NodeOS.hostname() });
@@ -31119,7 +31130,7 @@ function resolveFdPath(fd, platform) {
31119
31130
  return `/dev/fd/${fd}`;
31120
31131
  }
31121
31132
  //#endregion
31122
- //#region ../t3-shared/src/shell.ts
31133
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-shared/src/shell.ts
31123
31134
  const SHELL_ENV_NAME_PATTERN = /^[A-Z0-9_]+$/;
31124
31135
  const WINDOWS_PATH_DELIMITER = ";";
31125
31136
  const POSIX_PATH_DELIMITER = ":";
@@ -31886,7 +31897,7 @@ const sessionCommand = make$63("session").pipe(withDescription("Manage bearer se
31886
31897
  ]));
31887
31898
  const authCommand = make$63("auth").pipe(withDescription("Manage the local auth control plane for headless deployments."), withSubcommands([pairingCommand, sessionCommand]));
31888
31899
  //#endregion
31889
- //#region ../t3-shared/src/devHome.ts
31900
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-shared/src/devHome.ts
31890
31901
  /**
31891
31902
  * Where development state lives, and how to keep it away from the shared
31892
31903
  * `~/.t3` that a user's installed T3 Code runs against.
@@ -32171,7 +32182,7 @@ const writeFileStringAtomically = (input) => scoped(gen(function* () {
32171
32182
  yield* fs.rename(tempPath, input.filePath);
32172
32183
  }));
32173
32184
  //#endregion
32174
- //#region ../t3-shared/src/qrCode.ts
32185
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-shared/src/qrCode.ts
32175
32186
  var QrCode = class QrCode {
32176
32187
  static Ecc;
32177
32188
  static encodeText(text, ecl) {
@@ -33464,7 +33475,7 @@ const pairCommand = make$63("pair", {
33464
33475
  }));
33465
33476
  }).pipe(provide$1(layer$44))));
33466
33477
  //#endregion
33467
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/encoding/Sse.js
33478
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/encoding/Sse.js
33468
33479
  const SseErrorTypeId = "~effect/encoding/Sse/SseError";
33469
33480
  /**
33470
33481
  * Error reason raised when pending Server-Sent Events state exceeds the
@@ -33742,7 +33753,7 @@ const encoder$3 = { write(event) {
33742
33753
  }
33743
33754
  } };
33744
33755
  //#endregion
33745
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/httpapi/HttpApiClient.js
33756
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/httpapi/HttpApiClient.js
33746
33757
  /**
33747
33758
  * Builds HTTP clients from `HttpApi` declarations.
33748
33759
  *
@@ -34465,7 +34476,7 @@ function toProjectorDecodeError(eventType) {
34465
34476
  });
34466
34477
  }
34467
34478
  //#endregion
34468
- //#region ../t3-shared/src/path.ts
34479
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-shared/src/path.ts
34469
34480
  function isWindowsDrivePath(value) {
34470
34481
  return /^[a-zA-Z]:([/\\]|$)/.test(value);
34471
34482
  }
@@ -38594,7 +38605,7 @@ function make$40() {
38594
38605
  }
38595
38606
  const layer$32 = effect(ThreadBackgroundLivenessService, sync(make$40));
38596
38607
  //#endregion
38597
- //#region ../t3-shared/src/sourceControl.ts
38608
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-shared/src/sourceControl.ts
38598
38609
  function parseRemoteHost(remoteUrl) {
38599
38610
  const trimmed = remoteUrl.trim();
38600
38611
  if (trimmed.length === 0) return null;
@@ -40508,7 +40519,7 @@ const OrchestrationInfrastructureLayerLive = mergeAll(effect(ProjectionSnapshotQ
40508
40519
  })), mergeAll(OrchestrationEventStoreLive, OrchestrationCommandReceiptRepositoryLive), OrchestrationProjectionPipelineLive.pipe(provide(OrchestrationEventStoreLive))).pipe(provideMerge(layer$32));
40509
40520
  const OrchestrationLayerLive = mergeAll(OrchestrationInfrastructureLayerLive, OrchestrationEngineLive.pipe(provide(OrchestrationInfrastructureLayerLive)));
40510
40521
  //#endregion
40511
- //#region ../t3-shared/src/keybindings.ts
40522
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-shared/src/keybindings.ts
40512
40523
  const DEFAULT_KEYBINDINGS = [
40513
40524
  {
40514
40525
  key: "mod+b",
@@ -42998,7 +43009,7 @@ function acquireDaemonLock(stateDir) {
42998
43009
  }
42999
43010
  }
43000
43011
  //#endregion
43001
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/httpapi/HttpApiBuilder.js
43012
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/httpapi/HttpApiBuilder.js
43002
43013
  /**
43003
43014
  * Registers an `HttpApi` with a `HttpRouter`.
43004
43015
  *
@@ -43402,7 +43413,7 @@ const subscribeBeforeSnapshotWithoutMutex = fn("subscribeBeforeSnapshotWithoutMu
43402
43413
  };
43403
43414
  });
43404
43415
  //#endregion
43405
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/encoding/Ndjson.js
43416
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/encoding/Ndjson.js
43406
43417
  /**
43407
43418
  * Encodes and decodes newline-delimited JSON streams in Effect channels.
43408
43419
  *
@@ -44027,7 +44038,7 @@ const layer$17 = effect(ResourceAttribution, fn("resourceTelemetry.resourceAttri
44027
44038
  });
44028
44039
  })());
44029
44040
  //#endregion
44030
- //#region ../t3-shared/src/devProxy.ts
44041
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-shared/src/devProxy.ts
44031
44042
  /**
44032
44043
  * Backend paths the web dev server proxies in single-origin browser dev.
44033
44044
  *
@@ -44048,7 +44059,7 @@ function isDevProxiedPath(pathname) {
44048
44059
  return DEV_PROXIED_PATH_PREFIXES.some((prefix) => pathname === prefix || pathname.startsWith(`${prefix}/`));
44049
44060
  }
44050
44061
  //#endregion
44051
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/observability/OtlpExporter.js
44062
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/observability/OtlpExporter.js
44052
44063
  /**
44053
44064
  * Shared batch exporter for OTLP/HTTP observability modules.
44054
44065
  *
@@ -44185,7 +44196,7 @@ const make$25 = /*#__PURE__*/ fnUntraced(function* (options) {
44185
44196
  } };
44186
44197
  });
44187
44198
  //#endregion
44188
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/observability/OtlpResource.js
44199
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/observability/OtlpResource.js
44189
44200
  /**
44190
44201
  * Builds OTLP resource metadata shared by exported telemetry.
44191
44202
  *
@@ -44316,7 +44327,7 @@ const unknownToAttributeValue = (value) => {
44316
44327
  }
44317
44328
  };
44318
44329
  //#endregion
44319
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/observability/OtlpSerialization.js
44330
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/observability/OtlpSerialization.js
44320
44331
  /**
44321
44332
  * Serializes OTLP payloads into HTTP request bodies.
44322
44333
  *
@@ -44346,7 +44357,7 @@ const layerJson$1 = /*#__PURE__*/ succeed$3(OtlpSerialization, {
44346
44357
  logs: (logs) => jsonUnsafe$1(logs)
44347
44358
  });
44348
44359
  //#endregion
44349
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/observability/OtlpMetrics.js
44360
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/observability/OtlpMetrics.js
44350
44361
  /**
44351
44362
  * Exports Effect metrics over OTLP/HTTP.
44352
44363
  *
@@ -44741,7 +44752,7 @@ const EAggregationTemporality = {
44741
44752
  AGGREGATION_TEMPORALITY_CUMULATIVE: 2
44742
44753
  };
44743
44754
  //#endregion
44744
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/observability/OtlpTracer.js
44755
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/observability/OtlpTracer.js
44745
44756
  /**
44746
44757
  * Exports Effect tracing spans over OTLP/HTTP.
44747
44758
  *
@@ -44937,7 +44948,7 @@ const SpanKind = {
44937
44948
  };
44938
44949
  const constOtelStatusSuccess = { code: StatusCode.Ok };
44939
44950
  //#endregion
44940
- //#region ../t3-shared/src/logging.ts
44951
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-shared/src/logging.ts
44941
44952
  var RotatingFileSinkConfigurationError = class extends TaggedErrorClass()("RotatingFileSinkConfigurationError", {
44942
44953
  option: Literals(["maxBytes", "maxFiles"]),
44943
44954
  received: Number$1,
@@ -45069,7 +45080,7 @@ var RotatingFileSink = class {
45069
45080
  }
45070
45081
  };
45071
45082
  //#endregion
45072
- //#region ../t3-shared/src/observability.ts
45083
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-shared/src/observability.ts
45073
45084
  const FLUSH_BUFFER_THRESHOLD = 256;
45074
45085
  const textEncoder$2 = new TextEncoder();
45075
45086
  function isStructuralTag(value) {
@@ -45413,7 +45424,7 @@ function parseBigInt(input) {
45413
45424
  }
45414
45425
  }
45415
45426
  //#endregion
45416
- //#region ../t3-shared/src/filePreview.ts
45427
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-shared/src/filePreview.ts
45417
45428
  const WORKSPACE_BROWSER_PREVIEW_EXTENSIONS = [
45418
45429
  ".htm",
45419
45430
  ".html",
@@ -45443,7 +45454,7 @@ function isWorkspacePreviewEntryPath(path) {
45443
45454
  return isWorkspaceBrowserPreviewPath(path) || isWorkspaceImagePreviewPath(path);
45444
45455
  }
45445
45456
  //#endregion
45446
- //#region ../t3-shared/src/projectFavicon.ts
45457
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-shared/src/projectFavicon.ts
45447
45458
  const PROJECT_FAVICON_FALLBACK_MARKER = "project-favicon-missing";
45448
45459
  //#endregion
45449
45460
  //#region src/project/T3ProjectFileLoader.ts
@@ -46246,7 +46257,7 @@ const staticAndDevRouteLayer = add$1("GET", "*", gen(function* () {
46246
46257
  });
46247
46258
  }));
46248
46259
  //#endregion
46249
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/workers/Transferable.js
46260
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/workers/Transferable.js
46250
46261
  /**
46251
46262
  * Marks encoded worker message fields that should move through `postMessage` as
46252
46263
  * transfer-list entries.
@@ -46295,7 +46306,7 @@ const makeCollectorUnsafe = () => {
46295
46306
  });
46296
46307
  };
46297
46308
  //#endregion
46298
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/workers/WorkerError.js
46309
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/workers/WorkerError.js
46299
46310
  const TypeId$1 = "~effect/workers/WorkerError";
46300
46311
  /**
46301
46312
  * Worker error reason for failures while spawning or setting up a worker.
@@ -46359,7 +46370,7 @@ ErrorClass(TypeId$1)({
46359
46370
  reason: WorkerErrorReason
46360
46371
  });
46361
46372
  //#endregion
46362
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/rpc/RpcClientError.js
46373
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/rpc/RpcClientError.js
46363
46374
  /**
46364
46375
  * Client-side protocol failures reported by unstable RPC transports.
46365
46376
  *
@@ -46410,7 +46421,7 @@ var RpcClientError = class extends ErrorClass(TypeId)({
46410
46421
  }
46411
46422
  };
46412
46423
  //#endregion
46413
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/rpc/RpcMessage.js
46424
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/rpc/RpcMessage.js
46414
46425
  /**
46415
46426
  * Converts a bigint or string request id into the branded `RequestId` type.
46416
46427
  *
@@ -46438,7 +46449,7 @@ const ResponseDefectEncoded$1 = (input) => ({
46438
46449
  */
46439
46450
  const constPong = { _tag: "Pong" };
46440
46451
  //#endregion
46441
- //#region ../../node_modules/.pnpm/msgpackr@2.0.5/node_modules/msgpackr/unpack.js
46452
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/msgpackr@2.0.5/node_modules/msgpackr/unpack.js
46442
46453
  var decoder;
46443
46454
  try {
46444
46455
  decoder = new TextDecoder();
@@ -47417,7 +47428,7 @@ const FLOAT32_OPTIONS = {
47417
47428
  new Uint8Array((/* @__PURE__ */ new Float32Array(1)).buffer, 0, 4);
47418
47429
  Unpackr.SUPPORTS_STRUCT_HOOKS = true;
47419
47430
  //#endregion
47420
- //#region ../../node_modules/.pnpm/msgpackr@2.0.5/node_modules/msgpackr/pack.js
47431
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/msgpackr@2.0.5/node_modules/msgpackr/pack.js
47421
47432
  let textEncoder$1;
47422
47433
  try {
47423
47434
  textEncoder$1 = new TextEncoder();
@@ -48313,7 +48324,7 @@ defaultPackr.pack;
48313
48324
  defaultPackr.pack;
48314
48325
  const { NEVER, ALWAYS, DECIMAL_ROUND, DECIMAL_FIT } = FLOAT32_OPTIONS;
48315
48326
  //#endregion
48316
- //#region ../../node_modules/.pnpm/detect-libc@2.1.2/node_modules/detect-libc/lib/process.js
48327
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/detect-libc@2.1.2/node_modules/detect-libc/lib/process.js
48317
48328
  var require_process = /* @__PURE__ */ __commonJSMin(((exports, module) => {
48318
48329
  const isLinux = () => process.platform === "linux";
48319
48330
  let report = null;
@@ -48334,7 +48345,7 @@ var require_process = /* @__PURE__ */ __commonJSMin(((exports, module) => {
48334
48345
  };
48335
48346
  }));
48336
48347
  //#endregion
48337
- //#region ../../node_modules/.pnpm/detect-libc@2.1.2/node_modules/detect-libc/lib/filesystem.js
48348
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/detect-libc@2.1.2/node_modules/detect-libc/lib/filesystem.js
48338
48349
  var require_filesystem = /* @__PURE__ */ __commonJSMin(((exports, module) => {
48339
48350
  const fs$1 = __require("fs");
48340
48351
  const LDD_PATH = "/usr/bin/ldd";
@@ -48379,7 +48390,7 @@ var require_filesystem = /* @__PURE__ */ __commonJSMin(((exports, module) => {
48379
48390
  };
48380
48391
  }));
48381
48392
  //#endregion
48382
- //#region ../../node_modules/.pnpm/detect-libc@2.1.2/node_modules/detect-libc/lib/elf.js
48393
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/detect-libc@2.1.2/node_modules/detect-libc/lib/elf.js
48383
48394
  var require_elf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
48384
48395
  const interpreterPath = (elf) => {
48385
48396
  if (elf.length < 64) return null;
@@ -48402,7 +48413,7 @@ var require_elf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
48402
48413
  module.exports = { interpreterPath };
48403
48414
  }));
48404
48415
  //#endregion
48405
- //#region ../../node_modules/.pnpm/detect-libc@2.1.2/node_modules/detect-libc/lib/detect-libc.js
48416
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/detect-libc@2.1.2/node_modules/detect-libc/lib/detect-libc.js
48406
48417
  var require_detect_libc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
48407
48418
  const childProcess = __require("child_process");
48408
48419
  const { isLinux, getReport } = require_process();
@@ -48635,7 +48646,7 @@ var require_detect_libc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
48635
48646
  };
48636
48647
  }));
48637
48648
  //#endregion
48638
- //#region ../../node_modules/.pnpm/node-gyp-build-optional-packages@5.2.2/node_modules/node-gyp-build-optional-packages/node-gyp-build.js
48649
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/node-gyp-build-optional-packages@5.2.2/node_modules/node-gyp-build-optional-packages/node-gyp-build.js
48639
48650
  var require_node_gyp_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
48640
48651
  var fs = __require("fs");
48641
48652
  var path = __require("path");
@@ -48812,19 +48823,19 @@ var require_node_gyp_build = /* @__PURE__ */ __commonJSMin(((exports, module) =>
48812
48823
  load.compareTuples = compareTuples;
48813
48824
  }));
48814
48825
  //#endregion
48815
- //#region ../../node_modules/.pnpm/node-gyp-build-optional-packages@5.2.2/node_modules/node-gyp-build-optional-packages/index.js
48826
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/node-gyp-build-optional-packages@5.2.2/node_modules/node-gyp-build-optional-packages/index.js
48816
48827
  var require_node_gyp_build_optional_packages = /* @__PURE__ */ __commonJSMin(((exports, module) => {
48817
48828
  const runtimeRequire = typeof __webpack_require__ === "function" ? __non_webpack_require__ : __require;
48818
48829
  if (typeof runtimeRequire.addon === "function") module.exports = runtimeRequire.addon.bind(runtimeRequire);
48819
48830
  else module.exports = require_node_gyp_build();
48820
48831
  }));
48821
48832
  //#endregion
48822
- //#region ../../node_modules/.pnpm/msgpackr-extract@3.0.4/node_modules/msgpackr-extract/index.js
48833
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/msgpackr-extract@3.0.4/node_modules/msgpackr-extract/index.js
48823
48834
  var require_msgpackr_extract = /* @__PURE__ */ __commonJSMin(((exports, module) => {
48824
48835
  module.exports = require_node_gyp_build_optional_packages()(__dirname);
48825
48836
  }));
48826
48837
  //#endregion
48827
- //#region ../../node_modules/.pnpm/msgpackr@2.0.5/node_modules/msgpackr/node-index.js
48838
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/msgpackr@2.0.5/node_modules/msgpackr/node-index.js
48828
48839
  if (!(process.env.MSGPACKR_NATIVE_ACCELERATION_DISABLED !== void 0 && process.env.MSGPACKR_NATIVE_ACCELERATION_DISABLED.toLowerCase() === "true")) {
48829
48840
  let extractor;
48830
48841
  try {
@@ -48834,7 +48845,7 @@ if (!(process.env.MSGPACKR_NATIVE_ACCELERATION_DISABLED !== void 0 && process.en
48834
48845
  } catch (error) {}
48835
48846
  }
48836
48847
  //#endregion
48837
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/rpc/RpcSerialization.js
48848
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/rpc/RpcSerialization.js
48838
48849
  /**
48839
48850
  * Service that describes how RPC protocol messages are encoded and decoded,
48840
48851
  * including the content type and whether the serialization format provides
@@ -49138,7 +49149,7 @@ const jsonRpcInternalError = -32603;
49138
49149
  */
49139
49150
  const layerJson = /*#__PURE__*/ succeed$3(RpcSerialization)(json);
49140
49151
  //#endregion
49141
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/rpc/Utils.js
49152
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/rpc/Utils.js
49142
49153
  /**
49143
49154
  * Builds a service with a `run` method that buffers writes until `run` installs
49144
49155
  * a writer, replays buffered writes with their original contexts, and restores
@@ -49216,7 +49227,7 @@ const withRunClient = (f) => suspend(() => {
49216
49227
  }));
49217
49228
  });
49218
49229
  //#endregion
49219
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/rpc/RpcClient.js
49230
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/rpc/RpcClient.js
49220
49231
  let requestIdCounter = 0;
49221
49232
  /**
49222
49233
  * Creates an RPC client for an already-decoded message channel, returning the
@@ -49615,7 +49626,7 @@ var RequestHooks = class extends Service$2()("effect/rpc/RpcClient/RequestHooks"
49615
49626
  Service$2()("effect/rpc/RpcClient/ConnectionHooks");
49616
49627
  const decodeDefect = /*#__PURE__*/ decodeSync(/*#__PURE__*/ Defect());
49617
49628
  //#endregion
49618
- //#region ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/rpc/RpcServer.js
49629
+ //#region ../../../../../Users/chenbai/Projects/agentlink/node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=a18f963109656ddbeb2a99ca45f942ecf54830986259eb01ce6a970421c9c6a9/node_modules/effect/dist/unstable/rpc/RpcServer.js
49619
49630
  /**
49620
49631
  * Creates an RPC server for an already-decoded message channel, running
49621
49632
  * handlers for a group and sending decoded server responses through
@@ -50179,7 +50190,7 @@ const makeProviderMaintenanceCommandCoordinator = fn("makeProviderMaintenanceCom
50179
50190
  return { withCommandLock };
50180
50191
  });
50181
50192
  //#endregion
50182
- //#region ../t3-shared/src/semver.ts
50193
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-shared/src/semver.ts
50183
50194
  const SEMVER_NUMBER_SEGMENT = /^\d+$/;
50184
50195
  function normalizeSemverVersion(version) {
50185
50196
  const [main, prerelease] = version.trim().split("-", 2);
@@ -51028,7 +51039,7 @@ const observeRpcStreamEffect = (method, effect, traceAttributes) => {
51028
51039
  return withRpcStreamTracing(method, instrumented, traceAttributes);
51029
51040
  };
51030
51041
  //#endregion
51031
- //#region ../t3-shared/src/searchRanking.ts
51042
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-shared/src/searchRanking.ts
51032
51043
  function normalizeSearchQuery(input, options) {
51033
51044
  const trimmed = input.trim();
51034
51045
  if (!trimmed) return "";
@@ -53581,7 +53592,7 @@ const runHubTunnel = (config) => gen(function* () {
53581
53592
  }).pipe(tapDefect((cause) => logError("hub tunnel: worker defect", { cause: String(cause) })), catchCause((cause) => logError("hub tunnel: worker failed", { cause: String(cause) })));
53582
53593
  const layer$6 = (config) => effectDiscard(forkScoped(runHubTunnel(config)));
53583
53594
  //#endregion
53584
- //#region ../t3-shared/src/agentAwareness.ts
53595
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-shared/src/agentAwareness.ts
53585
53596
  function buildAgentAwarenessDeepLink(input) {
53586
53597
  return `/threads/${encodeURIComponent(input.environmentId)}/${encodeURIComponent(input.threadId)}`;
53587
53598
  }
@@ -53634,7 +53645,7 @@ function detailForPhase(phase, thread) {
53634
53645
  if (phase === "running" && thread.session?.providerName) return `${thread.session.providerName} is active.`;
53635
53646
  }
53636
53647
  //#endregion
53637
- //#region ../t3-shared/src/DrainableWorker.ts
53648
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-shared/src/DrainableWorker.ts
53638
53649
  /**
53639
53650
  * Create a drainable worker that processes items from an unbounded queue.
53640
53651
  *
@@ -56912,7 +56923,7 @@ const makeClaudeTextGeneration = fn("makeClaudeTextGeneration")(function* (claud
56912
56923
  };
56913
56924
  });
56914
56925
  //#endregion
56915
- //#region ../t3-shared/src/cliArgs.ts
56926
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-shared/src/cliArgs.ts
56916
56927
  function tokenizeCliArgs(args) {
56917
56928
  const input = args?.trim();
56918
56929
  if (!input) return [];
@@ -60125,7 +60136,7 @@ const makeCodexTextGeneration = fn("makeCodexTextGeneration")(function* (codexCo
60125
60136
  };
60126
60137
  });
60127
60138
  //#endregion
60128
- //#region ../effect-codex-app-server/src/errors.ts
60139
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/effect-codex-app-server/src/errors.ts
60129
60140
  const CodexAppServerRequestOperation = Literals([
60130
60141
  "decode-payload",
60131
60142
  "encode-payload",
@@ -60423,7 +60434,7 @@ const CodexAppServerError = Union([
60423
60434
  CodexAppServerInputStreamEndedError
60424
60435
  ]);
60425
60436
  //#endregion
60426
- //#region ../effect-codex-app-server/src/_generated/schema.gen.ts
60437
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/effect-codex-app-server/src/_generated/schema.gen.ts
60427
60438
  const ApplyPatchApprovalParams__FileChange = Union([
60428
60439
  Struct({
60429
60440
  content: String$1,
@@ -77521,7 +77532,7 @@ const V2WindowsWorldWritableWarningNotification = Struct({
77521
77532
  samplePaths: ArraySchema(String$1)
77522
77533
  }).annotate({ title: "WindowsWorldWritableWarningNotification" });
77523
77534
  //#endregion
77524
- //#region ../effect-codex-app-server/src/_generated/meta.gen.ts
77535
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/effect-codex-app-server/src/_generated/meta.gen.ts
77525
77536
  const SERVER_NOTIFICATION_METHODS = {
77526
77537
  error: "error",
77527
77538
  "thread/started": "thread/started",
@@ -77884,7 +77895,7 @@ const SERVER_NOTIFICATION_PARAMS = {
77884
77895
  "account/login/completed": V2AccountLoginCompletedNotification
77885
77896
  };
77886
77897
  //#endregion
77887
- //#region ../effect-codex-app-server/src/_internal/shared.ts
77898
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/effect-codex-app-server/src/_internal/shared.ts
77888
77899
  const JsonRpcId$1 = Union([Number$1, String$1]);
77889
77900
  const JsonRpcError = Struct({
77890
77901
  code: Number$1,
@@ -77916,7 +77927,7 @@ const runHandler$1 = fnUntraced(function* (handler, payload, method) {
77916
77927
  return yield* handler(payload).pipe(mapError((error) => CodexAppServerRequestError.fromAppServerError(error, method)));
77917
77928
  });
77918
77929
  //#endregion
77919
- //#region ../effect-codex-app-server/src/protocol.ts
77930
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/effect-codex-app-server/src/protocol.ts
77920
77931
  const isJsonRpcId = is(JsonRpcId$1);
77921
77932
  const isJsonRpcResponseEnvelope = is(JsonRpcResponseEnvelope);
77922
77933
  const isCodexAppServerError = is(CodexAppServerError);
@@ -78085,7 +78096,7 @@ const makeCodexAppServerPatchedProtocol = fn("makeCodexAppServerPatchedProtocol"
78085
78096
  };
78086
78097
  });
78087
78098
  //#endregion
78088
- //#region ../effect-codex-app-server/src/_internal/stdio.ts
78099
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/effect-codex-app-server/src/_internal/stdio.ts
78089
78100
  const encoder$2 = new TextEncoder();
78090
78101
  const makeChildStdio$1 = (handle) => make$81({
78091
78102
  args: succeed$1([]),
@@ -78120,7 +78131,7 @@ const makeTerminationError$1 = (handle) => match$2(handle.exitCode, {
78120
78131
  })
78121
78132
  });
78122
78133
  //#endregion
78123
- //#region ../effect-codex-app-server/src/client.ts
78134
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/effect-codex-app-server/src/client.ts
78124
78135
  var CodexAppServerClient = class extends Service$2()("effect-codex-app-server/client/CodexAppServerClient") {};
78125
78136
  const make$6 = fn("effect-codex-app-server/CodexAppServerClient.make")(function* (stdio, options = {}, terminationError) {
78126
78137
  const requestHandlers = /* @__PURE__ */ new Map();
@@ -81392,7 +81403,7 @@ const GeminiAcpAgent = {
81392
81403
  supportsSessionLoad: false
81393
81404
  };
81394
81405
  //#endregion
81395
- //#region ../effect-acp/src/_generated/schema.gen.ts
81406
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/effect-acp/src/_generated/schema.gen.ts
81396
81407
  const AuthEnvVar = Struct({
81397
81408
  _meta: optionalKey(Union([Record(String$1, Unknown).annotate({ description: "The _meta property is reserved by ACP to allow clients and agents to attach additional\nmetadata to their interactions. Implementations MUST NOT make assumptions about values at\nthese keys.\n\nSee protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/extensibility)" }), Null])),
81398
81409
  label: optionalKey(Union([String$1.annotate({ description: "Human-readable label for this variable, displayed in client UI." }), Null])),
@@ -84318,7 +84329,7 @@ const WriteTextFileRequest = Struct({
84318
84329
  }).annotate({ description: "Request to write content to a text file.\n\nOnly available if the client supports the `fs.writeTextFile` capability." });
84319
84330
  const WriteTextFileResponse = Struct({ _meta: optionalKey(Union([Record(String$1, Unknown).annotate({ description: "The _meta property is reserved by ACP to allow clients and agents to attach additional\nmetadata to their interactions. Implementations MUST NOT make assumptions about values at\nthese keys.\n\nSee protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/extensibility)" }), Null])) }).annotate({ description: "Response to `fs/write_text_file`" });
84320
84331
  //#endregion
84321
- //#region ../effect-acp/src/errors.ts
84332
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/effect-acp/src/errors.ts
84322
84333
  const AcpRequestOperation = Literals([
84323
84334
  "decode-extension-request-payload",
84324
84335
  "encode-extension-response",
@@ -84586,7 +84597,7 @@ const AcpError = Union([
84586
84597
  AcpInputStreamEndedError
84587
84598
  ]);
84588
84599
  //#endregion
84589
- //#region ../effect-acp/src/_generated/meta.gen.ts
84600
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/effect-acp/src/_generated/meta.gen.ts
84590
84601
  const AGENT_METHODS = {
84591
84602
  authenticate: "authenticate",
84592
84603
  initialize: "initialize",
@@ -84617,7 +84628,7 @@ const CLIENT_METHODS = {
84617
84628
  terminal_wait_for_exit: "terminal/wait_for_exit"
84618
84629
  };
84619
84630
  //#endregion
84620
- //#region ../effect-acp/src/protocol.ts
84631
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/effect-acp/src/protocol.ts
84621
84632
  const isAcpError = is(AcpError);
84622
84633
  const decodeSessionUpdate = decodeUnknownEffect(SessionNotification);
84623
84634
  const decodeElicitationComplete = decodeUnknownEffect(ElicitationCompleteNotification);
@@ -84870,7 +84881,7 @@ function isProtocolError(value) {
84870
84881
  return typeof value === "object" && value !== null && "code" in value && typeof value.code === "number" && "message" in value && typeof value.message === "string";
84871
84882
  }
84872
84883
  //#endregion
84873
- //#region ../effect-acp/src/rpc.ts
84884
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/effect-acp/src/rpc.ts
84874
84885
  const InitializeRpc = make$52(AGENT_METHODS.initialize, {
84875
84886
  payload: InitializeRequest,
84876
84887
  success: InitializeResponse,
@@ -84979,7 +84990,7 @@ const KillTerminalRpc = make$52(CLIENT_METHODS.terminal_kill, {
84979
84990
  const AgentRpcs = make$51(InitializeRpc, AuthenticateRpc, LogoutRpc, NewSessionRpc, LoadSessionRpc, ListSessionsRpc, ForkSessionRpc, ResumeSessionRpc, CloseSessionRpc, PromptRpc, SetSessionModelRpc, SetSessionConfigOptionRpc);
84980
84991
  const ClientRpcs = make$51(ReadTextFileRpc, WriteTextFileRpc, RequestPermissionRpc, ElicitationRpc, CreateTerminalRpc, TerminalOutputRpc, ReleaseTerminalRpc, WaitForTerminalExitRpc, KillTerminalRpc);
84981
84992
  //#endregion
84982
- //#region ../effect-acp/src/_internal/shared.ts
84993
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/effect-acp/src/_internal/shared.ts
84983
84994
  const isError = is(Error$1);
84984
84995
  const callRpc = (method, effect) => effect.pipe(catchIf(isError, (error) => fail(AcpRequestError.fromProtocolError(error, { method }))), catchTags({ RpcClientError: (cause) => fail(new AcpTransportError({
84985
84996
  operation: "call-rpc",
@@ -85000,7 +85011,7 @@ new TextEncoder();
85000
85011
  Union([Number$1, String$1]);
85001
85012
  ArraySchema(Unknown);
85002
85013
  //#endregion
85003
- //#region ../effect-acp/src/_internal/stdio.ts
85014
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/effect-acp/src/_internal/stdio.ts
85004
85015
  const encoder = new TextEncoder();
85005
85016
  const makeChildStdio = (handle) => make$81({
85006
85017
  args: succeed$1([]),
@@ -85035,7 +85046,7 @@ const makeTerminationError = (handle) => match$2(handle.exitCode, {
85035
85046
  })
85036
85047
  });
85037
85048
  //#endregion
85038
- //#region ../effect-acp/src/client.ts
85049
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/effect-acp/src/client.ts
85039
85050
  var AcpClient = class extends Service$2()("effect-acp/client/AcpClient") {};
85040
85051
  const make$5 = fn("effect-acp/AcpClient.make")(function* (stdio, options = {}, terminationError) {
85041
85052
  const coreHandlers = {};
@@ -85340,7 +85351,7 @@ const registerLocalToolHandlers = (input) => gen(function* () {
85340
85351
  }));
85341
85352
  });
85342
85353
  //#endregion
85343
- //#region ../t3-shared/src/toolActivity.ts
85354
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-shared/src/toolActivity.ts
85344
85355
  function asRecord(value) {
85345
85356
  return value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0;
85346
85357
  }
@@ -86687,7 +86698,7 @@ const makeAcpNativeLoggerFactory = fn("makeAcpNativeLoggerFactory")(function* ()
86687
86698
  //#region src/provider/Layers/AcpAgentAdapter.ts
86688
86699
  /**
86689
86700
  * AcpAgentAdapter — generic `ProviderAdapter` over `AcpSessionRuntime` for
86690
- * the fork's ACP CLIs (Gemini / Qwen / Kimi).
86701
+ * the fork's ACP CLIs (Gemini / Qwen / Kimi / JoyCode).
86691
86702
  *
86692
86703
  * Ported from the upstream `GrokAdapter`, minus the Grok-specific pieces the
86693
86704
  * fork doesn't need: the MCP provider-session bridge (the `mcp/` subsystem
@@ -86698,7 +86709,7 @@ const makeAcpNativeLoggerFactory = fn("makeAcpNativeLoggerFactory")(function* ()
86698
86709
  * cursors.
86699
86710
  *
86700
86711
  * One instance of this adapter is created per provider instance by the
86701
- * driver (`Drivers/<X>Driver.ts`); behavior differences between the three
86712
+ * driver (`Drivers/<X>Driver.ts`); behavior differences between the
86702
86713
  * CLIs live entirely in their `AcpAgentDescriptor`.
86703
86714
  *
86704
86715
  * @module provider/Layers/AcpAgentAdapter
@@ -87544,8 +87555,27 @@ function buildDiscoveredModelsFromSessionModelState(descriptor, modelState) {
87544
87555
  };
87545
87556
  }).filter((model) => model !== void 0);
87546
87557
  }
87558
+ function buildDiscoveredAcpAgentModels(descriptor, sessionSetupResult) {
87559
+ const models = buildDiscoveredModelsFromSessionModelState(descriptor, sessionSetupResult.models);
87560
+ if (models.length > 0) return models;
87561
+ const modelConfig = sessionSetupResult.configOptions?.find((option) => option.category === "model" && option.type === "select");
87562
+ if (!modelConfig || modelConfig.type !== "select") return [];
87563
+ const options = modelConfig.options.flatMap((entry) => "value" in entry ? [entry] : entry.options);
87564
+ const seen = /* @__PURE__ */ new Set();
87565
+ return options.map((option) => {
87566
+ const slug = resolveAcpAgentModelId(descriptor, option.value);
87567
+ if (!slug || seen.has(slug)) return;
87568
+ seen.add(slug);
87569
+ return {
87570
+ slug,
87571
+ name: option.name.trim() || slug,
87572
+ isCustom: false,
87573
+ capabilities: EMPTY_CAPABILITIES
87574
+ };
87575
+ }).filter((model) => model !== void 0);
87576
+ }
87547
87577
  const discoverModelsViaAcp = (descriptor, settings, environment = process.env) => gen(function* () {
87548
- return buildDiscoveredModelsFromSessionModelState(descriptor, (yield* (yield* makeAcpAgentRuntime(descriptor, {
87578
+ return buildDiscoveredAcpAgentModels(descriptor, (yield* (yield* makeAcpAgentRuntime(descriptor, {
87549
87579
  settings,
87550
87580
  environment,
87551
87581
  childProcessSpawner: yield* ChildProcessSpawner,
@@ -87554,7 +87584,7 @@ const discoverModelsViaAcp = (descriptor, settings, environment = process.env) =
87554
87584
  name: "agentlink-provider-probe",
87555
87585
  version: "0.0.0"
87556
87586
  }
87557
- })).start()).sessionSetupResult.models);
87587
+ })).start()).sessionSetupResult);
87558
87588
  }).pipe(scoped);
87559
87589
  const runVersionCommand = (descriptor, settings, environment = process.env) => gen(function* () {
87560
87590
  const command = settings.binaryPath.trim() || descriptor.defaultBinary;
@@ -87595,7 +87625,7 @@ const checkAcpAgentProviderStatus = (descriptor, settings, environment = process
87595
87625
  version: null,
87596
87626
  status: "error",
87597
87627
  auth: { status: "unknown" },
87598
- message: isCommandMissingCause(error) ? `${descriptor.displayName} (\`${descriptor.defaultBinary}\`) is not installed or not on PATH.` : `Failed to execute ${descriptor.displayName} health check.`
87628
+ message: isCommandMissingCause(error) ? descriptor.missingBinaryMessage ?? `${descriptor.displayName} (\`${descriptor.defaultBinary}\`) is not installed or not on PATH.` : `Failed to execute ${descriptor.displayName} health check.`
87599
87629
  }
87600
87630
  });
87601
87631
  }
@@ -87797,6 +87827,41 @@ const GeminiDriver = makeAcpAgentDriver({
87797
87827
  defaultConfig: () => decodeGeminiSettings({})
87798
87828
  });
87799
87829
  //#endregion
87830
+ //#region src/provider/acp/JoyCodeAcpAgent.ts
87831
+ /**
87832
+ * JoyCodeAcpAgent — descriptor for JoyCode CLI. `joycode app-server` starts
87833
+ * its ACP server over stdio.
87834
+ *
87835
+ * JoyCode 1.0.1 advertises both `loadSession` and `session/resume`, but its
87836
+ * `session/load` response is currently JSON-RPC `null`. daemon-t3 decodes
87837
+ * that response as an ACP LoadSessionResponse object, so the probe driver
87838
+ * deliberately starts fresh until that compatibility boundary is resolved.
87839
+ *
87840
+ * @module provider/acp/JoyCodeAcpAgent
87841
+ */
87842
+ const JoyCodeAcpAgent = {
87843
+ provider: ProviderDriverKind.make("joycode"),
87844
+ displayName: "JoyCode",
87845
+ defaultBinary: "joycode",
87846
+ acpArgs: ["app-server"],
87847
+ defaultModel: "default",
87848
+ builtInModels: ["default"],
87849
+ missingBinaryMessage: "请安装 joycode-cli,参考内部文档。",
87850
+ supportsSessionLoad: false
87851
+ };
87852
+ //#endregion
87853
+ //#region src/provider/Drivers/JoyCodeDriver.ts
87854
+ /** JoyCodeDriver — JoyCode CLI (`joycode app-server`) via generic ACP. */
87855
+ const decodeJoyCodeSettings = decodeSync(JoyCodeSettings);
87856
+ const JoyCodeDriver = makeAcpAgentDriver({
87857
+ driver: {
87858
+ descriptor: JoyCodeAcpAgent,
87859
+ npmPackageName: "@joycode/joycode-cli"
87860
+ },
87861
+ configSchema: JoyCodeSettings,
87862
+ defaultConfig: () => decodeJoyCodeSettings({})
87863
+ });
87864
+ //#endregion
87800
87865
  //#region src/provider/acp/KimiAcpAgent.ts
87801
87866
  /**
87802
87867
  * KimiAcpAgent — descriptor for the Kimi CLI (Kimi Code CLI, Moonshot),
@@ -87886,7 +87951,7 @@ const decodeQwenSettings = decodeSync(QwenSettings);
87886
87951
  * satisfy it.
87887
87952
  *
87888
87953
  * agentlink fork: Cursor/Grok/OpenCode drivers were removed; ACP-based
87889
- * drivers (Gemini/Qwen/Kimi) land here on top of `acp/AcpSessionRuntime.ts`.
87954
+ * drivers (Gemini/Qwen/Kimi/JoyCode) land here on top of `acp/AcpSessionRuntime.ts`.
87890
87955
  *
87891
87956
  * @module provider/builtInDrivers
87892
87957
  */
@@ -87907,7 +87972,8 @@ const BUILT_IN_DRIVERS = [
87907
87972
  configSchema: QwenSettings,
87908
87973
  defaultConfig: () => decodeQwenSettings({})
87909
87974
  }),
87910
- KimiDriver
87975
+ KimiDriver,
87976
+ JoyCodeDriver
87911
87977
  ];
87912
87978
  //#endregion
87913
87979
  //#region src/provider/Services/ProviderInstanceRegistryMutator.ts
@@ -90765,7 +90831,7 @@ const layer = effect(PtyAdapter, fn("NodePtyAdapter.make")(function* (loadNodePt
90765
90831
  }) });
90766
90832
  })());
90767
90833
  //#endregion
90768
- //#region ../t3-shared/src/httpObservability.ts
90834
+ //#region ../../../../../Users/chenbai/Projects/agentlink/packages/t3-shared/src/httpObservability.ts
90769
90835
  const httpHeaderRedactionLayer = effect(CurrentRedactedNames, map$4(CurrentRedactedNames, (names) => [...names, "dpop"]));
90770
90836
  //#endregion
90771
90837
  //#region src/serverLogger.ts
@@ -90884,7 +90950,7 @@ const HttpServerLive = unwrap(gen(function* () {
90884
90950
  } }
90885
90951
  });
90886
90952
  else {
90887
- const [NodeHttpServer, NodeHttp] = yield* all([promise(() => import("./NodeHttpServer-D2VeYRw1.mjs")), promise(() => import("node:http"))]);
90953
+ const [NodeHttpServer, NodeHttp] = yield* all([promise(() => import("./NodeHttpServer-D8xOGdyN.mjs")), promise(() => import("node:http"))]);
90888
90954
  return NodeHttpServer.layer(NodeHttp.createServer, {
90889
90955
  host: config.host ?? "127.0.0.1",
90890
90956
  port: config.port,
@@ -90898,7 +90964,7 @@ const PlatformServicesLive = unwrap(gen(function* () {
90898
90964
  const { layer } = yield* promise(() => import("@effect/platform-bun/BunServices"));
90899
90965
  return layer;
90900
90966
  } else {
90901
- const { layer } = yield* promise(() => import("./NodeServices-BtcL7AtO.mjs").then((n) => n.t));
90967
+ const { layer } = yield* promise(() => import("./NodeServices-D5Lui-4t.mjs").then((n) => n.t));
90902
90968
  return layer;
90903
90969
  }
90904
90970
  }));