hinacode 0.3.0-alpha.7 → 0.3.0-alpha.8
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/out/server/cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module";
|
|
2
2
|
globalThis.require ??= __createRequire(import.meta.url);
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
|
-
import { d as dual, r as runFork, t as tapCause, h as hasInterruptsOnly, v as void_, s as squash, l as logError, c as constVoid, i as isEffect, a as isSuccess, w as withFiber, C as ConsoleRef, b as sync, T as TaggedError, A as ArraySchema, S as String$6, U as Union, e as hasProperty, o as optional$3, L as Literal, f as optionalKey, D as Defect, g as format, j as toCodecStringTree, k as decodeUnknownEffect, m as identity, n as succeed$2, p as fail, q as is, u as TrueLiterals, F as FalseLiterals, x as mapError, B as BooleanLiterals, I as Int$4, R as Reference, y as fnUntraced, z as scoped, Q as QuitError, E as Terminal, G as cached, H as suspend, P as Prototype, J as getOrElse, K as some, M as match, N as none, O as make$2, V as map$2, W as taggedEnum, X as match$1, Y as map$3, Z as isSome, _ as flatMap$1, $ as sync$1, a0 as empty, a1 as reduce, a2 as pipe, a3 as match$2, a4 as findFirstIndex, a5 as findFirst, a6 as findLast, a7 as isReadonlyArrayNonEmpty, a8 as ensuring, a9 as orDie, aa as take, ab as raceFirst, ac as round, ad as pipeArguments, ae as catchTags, af as fromUndefinedOr, ag as isNotUndefined, ah as getOrUndefined, ai as assignProperty, aj as Service, ak as empty$1, al as exists, am as gen, an as isNone, ao as succeed$3, ap as value, aq as provideService, ar as Stdio, as as catchFilter, at as isQuitError, au as succeed$4, av as fail$1, aw as interrupt, ax as andThen, ay as catchTag, az as result, aA as make$3, aB as provideContext, aC as MinimumLogLevel, aD as Struct, aE as ApprovalRequest, aF as QuestionRequest, aG as SecretRequest, aH as Thread, aI as TaggedError$1, aJ as seconds, aK as decodeUnknownExit, aL as fromJsonString, aM as ServerFrame, aN as acquireRelease, aO as unbounded, aP as endUnsafe, aQ as encodeUnknownEffect, aR as RpcMethods, aS as timeoutOrElse, aT as callback, aU as methodKind, aV as offerUnsafe, aW as WebSocket, aX as REMOTE_PATH, aY as REMOTE_MAX_FRAME_BYTES, aZ as succeedNone, a_ as cliSocketPath, a$ as all, b0 as fromResult, b1 as Number$2, b2 as forEach, b3 as AccessMode, b4 as ProviderId, b5 as promise, b6 as isFailure, b7 as toCheckoutTarget, b8 as noticeEvents, b9 as PushEvent, ba as NullOr, bb as ThreadStatus, bc as try_, bd as as, be as isThreadBusy, bf as tryPromise, bg as map$4, bh as tapError, bi as provide, bj as layer$1 } from "./chunks/remote-
|
|
4
|
+
import { d as dual, r as runFork, t as tapCause, h as hasInterruptsOnly, v as void_, s as squash, l as logError, c as constVoid, i as isEffect, a as isSuccess, w as withFiber, C as ConsoleRef, b as sync, T as TaggedError, A as ArraySchema, S as String$6, U as Union, e as hasProperty, o as optional$3, L as Literal, f as optionalKey, D as Defect, g as format, j as toCodecStringTree, k as decodeUnknownEffect, m as identity, n as succeed$2, p as fail, q as is, u as TrueLiterals, F as FalseLiterals, x as mapError, B as BooleanLiterals, I as Int$4, R as Reference, y as fnUntraced, z as scoped, Q as QuitError, E as Terminal, G as cached, H as suspend, P as Prototype, J as getOrElse, K as some, M as match, N as none, O as make$2, V as map$2, W as taggedEnum, X as match$1, Y as map$3, Z as isSome, _ as flatMap$1, $ as sync$1, a0 as empty, a1 as reduce, a2 as pipe, a3 as match$2, a4 as findFirstIndex, a5 as findFirst, a6 as findLast, a7 as isReadonlyArrayNonEmpty, a8 as ensuring, a9 as orDie, aa as take, ab as raceFirst, ac as round, ad as pipeArguments, ae as catchTags, af as fromUndefinedOr, ag as isNotUndefined, ah as getOrUndefined, ai as assignProperty, aj as Service, ak as empty$1, al as exists, am as gen, an as isNone, ao as succeed$3, ap as value, aq as provideService, ar as Stdio, as as catchFilter, at as isQuitError, au as succeed$4, av as fail$1, aw as interrupt, ax as andThen, ay as catchTag, az as result, aA as make$3, aB as provideContext, aC as MinimumLogLevel, aD as Struct, aE as ApprovalRequest, aF as QuestionRequest, aG as SecretRequest, aH as Thread, aI as TaggedError$1, aJ as seconds, aK as decodeUnknownExit, aL as fromJsonString, aM as ServerFrame, aN as acquireRelease, aO as unbounded, aP as endUnsafe, aQ as encodeUnknownEffect, aR as RpcMethods, aS as timeoutOrElse, aT as callback, aU as methodKind, aV as offerUnsafe, aW as WebSocket, aX as REMOTE_PATH, aY as REMOTE_MAX_FRAME_BYTES, aZ as succeedNone, a_ as cliSocketPath, a$ as all, b0 as fromResult, b1 as Number$2, b2 as forEach, b3 as AccessMode, b4 as ProviderId, b5 as promise, b6 as isFailure, b7 as toCheckoutTarget, b8 as noticeEvents, b9 as PushEvent, ba as NullOr, bb as ThreadStatus, bc as try_, bd as as, be as isThreadBusy, bf as tryPromise, bg as map$4, bh as tapError, bi as provide, bj as layer$1 } from "./chunks/remote-Cc8fvZ8_.js";
|
|
5
5
|
import { homedir } from "node:os";
|
|
6
6
|
import { resolve, sep, join } from "node:path";
|
|
7
7
|
import { randomUUID } from "node:crypto";
|
package/out/server/daemon.js
CHANGED
|
@@ -7,15 +7,15 @@ import { createRequire } from "node:module";
|
|
|
7
7
|
import { homedir, networkInterfaces, tmpdir, userInfo, hostname, loadavg, cpus, totalmem } from "node:os";
|
|
8
8
|
import path__default, { join as join$1, sep, resolve as resolve$1, basename, relative, dirname, isAbsolute, extname, delimiter } from "node:path";
|
|
9
9
|
import NodeUrl__default, { fileURLToPath } from "node:url";
|
|
10
|
-
import { bk as Tuple, d as dual, ai as assignProperty, b6 as isFailure, au as succeed, av as fail$1, K as some, N as none, bl as hash, bm as equals, ad as pipeArguments, bn as NodeInspectSymbol, bo as toJson, g as format$2, Z as isSome, bp as withFiber, bq as uninterruptibleMask, br as get$6, bs as Scope, bt as flow$1, bu as fromInputUnsafe, bv as constant, bw as zero, bd as as, bx as addFinalizerExit, v as void_, b2 as forEach, by as exit, bz as tap$1, $ as sync, aw as interrupt, p as fail$2, bA as ExceededCapacityError, bB as makeUnsafe$5, bC as makeUnsafe$6, bD as makeUnsafe$7, H as suspend, bE as runForkWith, bF as runIn, bG as hasInterrupts, bH as doneUnsafe, bI as getUnsafe$1, bJ as addFinalizer, ax as andThen, bK as _await, bL as getCurrent, bM as interrupt$1, bN as close, bO as isZero, bP as isFinite$1, bQ as Clock, bR as toMillis, _ as flatMap, bS as millis, a8 as ensuring, bT as void_$1, bU as BaseProto, bV as toSeconds, aI as TaggedError, bW as Error$1, bX as symbol$2, bY as structure, bZ as symbol$3, b_ as redact$1, b$ as symbolRedactable, O as make$1o, R as Reference, c0 as strictEqual, e as hasProperty, c1 as fromIterable$2, c2 as PipeInspectableProto, c3 as array$2, c4 as make$1p, c5 as makeEquivalence$2, c6 as getOrThrow, c7 as map$1, c8 as try_, c9 as flatMap$1, ca as combine, cb as string$2, cc as number$4, cd as optimize, n as succeed$1, ce as Random$1, cf as contextWith, cg as infinity, w as withFiber$1, b as sync$1, ch as updateContext, ci as merge$3, cj as succeed$2, ck as exitHasInterrupts, cl as ClockRef, cm as forkUnsafe, cn as onExitUnsafe, co as void_$2, cp as fiberInterrupt, cq as fiberJoin, cr as filterMap, cs as failVoid, ct as isGreaterThanOrEqualTo$1, cu as LogLevelOrder, aN as acquireRelease, i as isEffect, cv as interruptAs, r as runFork, cw as isFailure$1, h as hasInterruptsOnly, cx as into, cy as asVoid, cz as done, cA as filterInterruptors, cB as interruptAllAs, cC as interruptAll, cD as empty$5, cE as forkUnsafe$1, cF as runPromise, cG as runPromiseWith, cH as runPromiseExit, cI as runPromiseExitWith, cJ as runSync, cK as runSyncWith, cL as runSyncExit, cM as runSyncExitWith, cN as runCallback, cO as runCallbackWith, cP as makeMemoMapUnsafe, aB as provideContext, cQ as buildWithMemoMap, cR as flatten, cS as await_, cT as scopeRemoveFinalizerUnsafe, cU as die, cV as isResult, cW as isSuccess, m as identity, cX as effect, aj as Service$1, cY as contextWith$1, cZ as getOrUndefined, am as gen, c_ as context, c$ as make$1q, V as map$2, d0 as fromQueue, d1 as unwrap, aq as provideService, d2 as onExit, d3 as failCauseUnsafe, aV as offerUnsafe, T as TaggedError$1, U as Union, S as String$1, o as optional$7, D as Defect, P as Prototype, d4 as makeSpanUnsafe, d5 as TracerTimingEnabled, d6 as endSpan, d7 as makeSpanScoped, d8 as useSpan, d9 as constUndefined, da as provideService$1, db as ParentSpan, z as scoped, t as tapCause, y as fnUntraced, dc as serviceOption, a3 as match, dd as make$1r, de as provide$1, df as onError, dg as catchIf, dh as scope$1, di as getOption, dj as onExitPrimitive, a as isSuccess$1, dk as catchCause, dl as matchCauseEffect, dm as failCause, dn as combine$1, a9 as orDie, dp as add$1, dq as makeUnsafe$8, dr as fromReasons, ds as isFailReason, dt as makeDieReason, du as reasonAnnotations, dv as failCause$1, dw as yieldNow, dx as constTrue, dy as normalizeNonEmpty, dz as unbounded, dA as publishUnsafe, dB as fromPubSub, dC as getDefaultExportFromCjs, a$ as all$1, M as match$1, b5 as promise$1, b4 as ProviderId, dD as now, dE as formatIso, a2 as pipe$2, dF as sort, Y as map$3, dG as flatMapNullishOr, dH as catch_, bg as map$4, dI as fromNullishOr, x as mapError, dJ as logDebug, dK as annotateLogs, dL as withSpan, ay as catchTag, dM as logInfo, dN as catchDefect, dO as filterOrFail, dP as make$1s, dQ as Number$1, dR as encodeEffect, k as decodeUnknownEffect, aZ as succeedNone, a7 as isReadonlyArrayNonEmpty, dS as asSome, dT as mutable, A as ArraySchema, dU as NoSuchElementError, dV as Literals, b1 as Number$2, ba as NullOr, aD as Struct, dW as FileSystem, dX as orElseSucceed, dY as chatFolder, dZ as Boolean$1, d_ as ProjectKind, d$ as ignore$1, e0 as logWarning, aT as callback, e1 as sleep$3, e2 as forkDetach, e3 as succeed$3, e4 as signedOutFailure, e5 as decodeUnknownOption, an as isNone, aL as fromJsonString, L as Literal, e6 as Unknown, e7 as toArray, aJ as seconds, f as optionalKey, e8 as cachedWithTTL, e9 as minutes, aO as unbounded$1, ea as toAsyncIterable, bf as tryPromise, eb as timeout, ec as addFinalizer$1, ed as callback$1, ee as offer, ef as withPermit, eg as acquireUseRelease, aP as endUnsafe, eh as shutdownUnsafe, ei as make$1t, bc as try_$1, ej as forkIn, ek as fromAsyncIterable, el as runForEach, s as squash, em as CLAUDE_EFFORT_LEVELS, en as ensuring$1, eo as currentTimeMillis, ep as sum, eq as race, er as publishedArtifactId, es as PUBLISH_DOCUMENT_TOOL, et as PUBLISH_ARTIFACT_TOOL, eu as PUBLISH_WHITEBOARD_TOOL, ev as isDone, ew as empty$6, ex as succeed$4, ey as fromIterable$3, ez as flatMap$2, eA as interruptWhen, eB as concat, eC as fromEffectDrain, eD as fromEffect, eE as fromIterableEffect, eF as suspend$1, eG as unlistedModel, eH as make$1u, eI as tap$2, eJ as tick, eK as map$5, eL as drop, eM as merge$4, eN as onInterrupt, aS as timeoutOrElse, eO as format$3, eP as getOrNull, eQ as Record, eR as make$1v, aa as take, eS as join$2, ab as raceFirst, eT as end, eU as forkScoped, eV as isObject$2, J as getOrElse, eW as repeat, ao as succeed$5, eX as subscribe, eY as fromSubscription, eZ as publish, e_ as defaultSettings, e$ as Settings$2, f0 as flatMapNullishOr$1, f1 as option, f2 as delay, f3 as effectContext, aA as make$1w, f4 as provide$2, f5 as monotonicTimeNanos, f6 as retry$3, f7 as spaced, f8 as die$1, f9 as PRIVATE_NETWORKS, fa as effectDiscard, fb as provideMerge, fc as UpdatableProviderId, fd as decodeUnknownSync, fe as spawnsSubagent, ff as isPublishArtifactTool, fg as outputText, fh as publishedArtifact, fi as toolArgument, fj as isPublishDocumentTool, fk as AgentProfile, fl as Void, fm as AccountProviderId, fn as filter$1, fo as AgentAccount, fp as commonjsGlobal, fq as isRunAgentTool, fr as presetModels, fs as encodeSync, ft as mergeAll, b9 as PushEvent, fu as filter$2, fv as take$1, fw as runDrain, fx as forever, fy as never$1, fz as min, l as logError, fA as ChildProcessSpawner, fB as make$1x, fC as mkString, fD as decodeText$1, fE as ForkPoint, fF as TokenUsage, fG as MessagePart, fH as Message, fI as sliding, fJ as parseGitHubPullRequestUrl, fK as PullRequestReviewer, fL as PullRequestLabel, fM as PullRequestComment, fN as DiffSide, fO as omit$1, fP as subtract, fQ as PULL_REQUEST_REFRESH, ae as catchTags, fR as parseGitHubRepository, I as Int, fS as request$2, fT as Class, fU as ProjectAction, fV as Project, fW as BooleanFromBit, fX as Worktree, fY as timeoutOption, be as isThreadBusy, bb as ThreadStatus, fZ as ScheduledMessage, f_ as QueuedMessage, f$ as UsageLimit, aH as Thread, g0 as getOrThrow$1, g1 as PullRequestWatch, g2 as PullRequestLink, g3 as PullRequestStatus, g4 as allWatchEventKinds, g5 as enabledProviders, g6 as transcriptThreadId, g7 as resumeGraceMs, g8 as fail$3, g9 as WAIT_AGENT_TOOL, bh as tapError, ga as filter$3, gb as isMaxLength, gc as schedule, aR as RpcMethods, gd as BrowserFrame, ge as PagePick, gf as defaultClientSettings, gg as ClientSettings$1, gh as parsePairingUrl, gi as pairingUrl, gj as Environment, ah as getOrUndefined$1, az as result$1, gk as relayWebSocketUrl, gl as remoteWebSocketUrl, aW as WebSocket, aM as ServerFrame, gm as CHALLENGE_WAIT_MS, aU as methodKind, gn as dialPlan, go as REMOTE_PROTOCOL_VERSION, gp as DIRECT_CHECK_INTERVAL_MS, gq as DIRECT_CHECK_TIMEOUT_MS, gr as LinearIssue, gs as externalSpan, af as fromUndefinedOr, gt as zero$1, gu as fromInput$2, gv as badArgument, gw as isSchemaError, gx as isNoSuchElementError, gy as StackTrace, gz as mapEager, gA as updateContext$1, gB as makeUnsafe$9, gC as tag$2, gD as Error$2, gE as fromInputUnsafe$1, gF as Path, gG as run$6, gH as mebibytes, gI as Class$1, gJ as constFalse, gK as withLogSpan, gL as log, gM as Tracer, gN as nativeTracer, gO as hasInterrupts$1, gP as succeed$6, gQ as setStackTraceLimit, gR as fail$4, gS as getStackTraceLimit, gT as fiberEnterUninterruptibleUnsafe, gU as contA, gV as effectIsExit, gW as closeUnsafe, gX as contE, gY as reportCauseUnsafe, gZ as matchCauseEffectEager, g_ as flatMapEager, g$ as fromReadable, h0 as toArrayBuffer, G as cached$1, h1 as layer$W, h2 as pipeThroughDuplex, h3 as toUint8Array, bj as layer$X, b0 as fromResult, h4 as WebSocketServer, h5 as orDie$1, h6 as runForEachArray, h7 as interruptible, h8 as die$2, h9 as merge$5, ha as succeedContext, hb as unwrap$1, hc as withFiberSucceed, hd as reverse, he as getOrUndefinedUnsafe, hf as CurrentMemoMap, a0 as empty$7, hg as fiberEnterInterruptibleUnsafe, hh as compose$1, hi as Timestamp, hj as AutomationTrigger, hk as AutomationRun, hl as isPolledTrigger, hm as launch, hn as Duration, ho as DateTimeUtc, hp as withConstructorDefault, hq as withDecodingDefault, hr as Redacted, hs as Tuple$1, ht as isRedacted, hu as MutableJson, ag as isNotUndefined, hv as Never, ak as empty$8, hw as toJsonSchemaDocument, hx as annotateCurrentSpan, hy as isUndefined, hz as failCause$2, hA as forkChild, hB as catch_$1, hC as isSchemaError$1, hD as failCause$3, hE as mapEffect, hF as onEnd, hG as isSchema, aQ as encodeUnknownEffect, hH as annotate, hI as fail$5, hJ as make$1y, hK as declare, hL as isStream, hM as Class$2, hN as Exit, bi as provide$3, hO as provideContext$1, hP as StructWithRest, hQ as JsonObject$3, hR as Opaque, hS as decodeTo, hT as transformOptional, hU as flatMap$3, hV as toType, hW as Any, hX as UndefinedOr, hY as Finite, hZ as passthrough, h_ as Uint8ArrayFromBase64, h$ as Json, i0 as TemplateLiteral, i1 as decode$3, i2 as withDefault, i3 as isBetween, W as taggedEnum, i4 as take$2, i5 as toCodecJson, i6 as isNullish, i7 as isString, i8 as bounded, i9 as withParentSpan, ia as die$3, ib as offerAll, ic as interrupt$2, id as interruptors, ie as decodeSync, ig as catchCauseIf, ih as NonEmptyArray, ii as decode$4, ij as decodeUnknownResult, ik as fn, il as isTagged, im as isReadonlyObject, io as IllegalArgumentError, ip as encode$1, iq as collect, ir as catchDone, is as takeAll, it as fromArray, iu as whileLoop, iv as isExit, iw as matchEffect, ix as defaultFormatter, iy as logFatal, iz as isDeferred, iA as hasDies, c as constVoid, iB as shutdown, iC as Scheduler, iD as CurrentLogLevel, q as is$2, iE as decodeEffect, iF as UnknownFromJsonString, iG as ignoreCause, iH as Class$3, iI as TaggedStruct, iJ as toEncoded, iK as when$2, iL as threadDeviceId, iM as devicePlatformOf, ap as value$2, iN as runLast, iO as fromOption, iP as RUN_AGENT_TOOL, iQ as ARTIFACT_THEME_GUIDE, iR as DeviceUrl, iS as DeviceApp, iT as DeviceButton, iU as WatchEventKind, iV as isPattern, iW as RelayHostList, iX as RelayMachineList, iY as GuideGroup, iZ as PullRequestGuide, i_ as uninterruptible, i$ as flatten$1, j0 as diskFullness, j1 as pretty, j2 as startingProvider, j3 as min$1, j4 as exponential, j5 as desktopOnlyPushes, j6 as reachesPhone, j7 as mutations, j8 as desktopOnlyMethods, j9 as isAddressNotUpYet, ja as ClientFrame, aY as REMOTE_MAX_FRAME_BYTES, aX as REMOTE_PATH, jb as empty$9, a_ as cliSocketPath, jc as BindHost, jd as take$3, je as getAugmentedNamespace, jf as make$1z, jg as NativeSpan, jh as currentTimeNanos, aC as MinimumLogLevel, ji as isPortInUse } from "./chunks/remote-iFIM3qRP.js";
|
|
11
|
-
import
|
|
10
|
+
import { bk as Tuple, d as dual, ai as assignProperty, b6 as isFailure, au as succeed, av as fail$1, K as some, N as none, bl as hash, bm as equals, ad as pipeArguments, bn as NodeInspectSymbol, bo as toJson, g as format$2, Z as isSome, bp as withFiber, bq as uninterruptibleMask, br as get$6, bs as Scope, bt as flow$1, bu as fromInputUnsafe, bv as constant, bw as zero, bd as as, bx as addFinalizerExit, v as void_, b2 as forEach, by as exit, bz as tap$1, $ as sync, aw as interrupt, p as fail$2, bA as ExceededCapacityError, bB as makeUnsafe$5, bC as makeUnsafe$6, bD as makeUnsafe$7, H as suspend, bE as runForkWith, bF as runIn, bG as hasInterrupts, bH as doneUnsafe, bI as getUnsafe$1, bJ as addFinalizer, ax as andThen, bK as _await, bL as getCurrent, bM as interrupt$1, bN as close, bO as isZero, bP as isFinite$1, bQ as Clock, bR as toMillis, _ as flatMap, bS as millis, a8 as ensuring, bT as void_$1, bU as BaseProto, bV as toSeconds, aI as TaggedError, bW as Error$1, bX as symbol$2, bY as structure, bZ as symbol$3, b_ as redact$1, b$ as symbolRedactable, O as make$1o, R as Reference, c0 as strictEqual, e as hasProperty, c1 as fromIterable$2, c2 as PipeInspectableProto, c3 as array$2, c4 as make$1p, c5 as makeEquivalence$2, c6 as getOrThrow, c7 as map$1, c8 as try_, c9 as flatMap$1, ca as combine, cb as string$2, cc as number$4, cd as optimize, n as succeed$1, ce as Random$1, cf as contextWith, cg as infinity, w as withFiber$1, b as sync$1, ch as updateContext, ci as merge$3, cj as succeed$2, ck as exitHasInterrupts, cl as ClockRef, cm as forkUnsafe, cn as onExitUnsafe, co as void_$2, cp as fiberInterrupt, cq as fiberJoin, cr as filterMap, cs as failVoid, ct as isGreaterThanOrEqualTo$1, cu as LogLevelOrder, aN as acquireRelease, i as isEffect, cv as interruptAs, r as runFork, cw as isFailure$1, h as hasInterruptsOnly, cx as into, cy as asVoid, cz as done, cA as filterInterruptors, cB as interruptAllAs, cC as interruptAll, cD as empty$5, cE as forkUnsafe$1, cF as runPromise, cG as runPromiseWith, cH as runPromiseExit, cI as runPromiseExitWith, cJ as runSync, cK as runSyncWith, cL as runSyncExit, cM as runSyncExitWith, cN as runCallback, cO as runCallbackWith, cP as makeMemoMapUnsafe, aB as provideContext, cQ as buildWithMemoMap, cR as flatten, cS as await_, cT as scopeRemoveFinalizerUnsafe, cU as die, cV as isResult, cW as isSuccess, m as identity, cX as effect, aj as Service$1, cY as contextWith$1, cZ as getOrUndefined, am as gen, c_ as context, c$ as make$1q, V as map$2, d0 as fromQueue, d1 as unwrap, aq as provideService, d2 as onExit, d3 as failCauseUnsafe, aV as offerUnsafe, T as TaggedError$1, U as Union, S as String$1, o as optional$7, D as Defect, P as Prototype, d4 as makeSpanUnsafe, d5 as TracerTimingEnabled, d6 as endSpan, d7 as makeSpanScoped, d8 as useSpan, d9 as constUndefined, da as provideService$1, db as ParentSpan, z as scoped, t as tapCause, y as fnUntraced, dc as serviceOption, a3 as match, dd as make$1r, de as provide$1, df as onError, dg as catchIf, dh as scope$1, di as getOption, dj as onExitPrimitive, a as isSuccess$1, dk as catchCause, dl as matchCauseEffect, dm as failCause, dn as combine$1, a9 as orDie, dp as add$1, dq as makeUnsafe$8, dr as fromReasons, ds as isFailReason, dt as makeDieReason, du as reasonAnnotations, dv as failCause$1, dw as yieldNow, dx as constTrue, dy as normalizeNonEmpty, dz as unbounded, dA as publishUnsafe, dB as fromPubSub, dC as getDefaultExportFromCjs, a$ as all$1, M as match$1, b5 as promise$1, b4 as ProviderId, dD as now, dE as formatIso, a2 as pipe$2, dF as sort, Y as map$3, dG as flatMapNullishOr, dH as catch_, bg as map$4, dI as fromNullishOr, x as mapError, dJ as logDebug, dK as annotateLogs, dL as withSpan, ay as catchTag, dM as logInfo, dN as catchDefect, dO as filterOrFail, dP as make$1s, dQ as Number$1, dR as encodeEffect, k as decodeUnknownEffect, aZ as succeedNone, a7 as isReadonlyArrayNonEmpty, dS as asSome, dT as mutable, A as ArraySchema, dU as NoSuchElementError, dV as Literals, b1 as Number$2, ba as NullOr, aD as Struct, dW as FileSystem, dX as orElseSucceed, dY as chatFolder, dZ as Boolean$1, d_ as ProjectKind, d$ as ignore$1, e0 as logWarning, aT as callback, e1 as sleep$3, e2 as forkDetach, e3 as succeed$3, e4 as signedOutFailure, e5 as decodeUnknownOption, an as isNone, aL as fromJsonString, L as Literal, e6 as Unknown, e7 as toArray, aJ as seconds, f as optionalKey, e8 as cachedWithTTL, e9 as minutes, aO as unbounded$1, ea as toAsyncIterable, bf as tryPromise, eb as timeout, ec as addFinalizer$1, ed as callback$1, ee as offer, ef as withPermit, eg as acquireUseRelease, aP as endUnsafe, eh as shutdownUnsafe, ei as make$1t, bc as try_$1, ej as forkIn, ek as fromAsyncIterable, el as runForEach, s as squash, em as CLAUDE_EFFORT_LEVELS, en as ensuring$1, eo as currentTimeMillis, ep as sum, eq as race, er as publishedArtifactId, es as PUBLISH_DOCUMENT_TOOL, et as PUBLISH_ARTIFACT_TOOL, eu as PUBLISH_WHITEBOARD_TOOL, ev as isDone, ew as empty$6, ex as succeed$4, ey as fromIterable$3, ez as flatMap$2, eA as interruptWhen, eB as concat, eC as fromEffectDrain, eD as fromEffect, eE as fromIterableEffect, eF as suspend$1, eG as unlistedModel, eH as make$1u, eI as tap$2, eJ as tick, eK as map$5, eL as drop, eM as merge$4, eN as onInterrupt, aS as timeoutOrElse, eO as format$3, eP as getOrNull, eQ as Record, eR as make$1v, aa as take, eS as join$2, ab as raceFirst, eT as end, eU as forkScoped, eV as isObject$2, J as getOrElse, eW as repeat, ao as succeed$5, eX as subscribe, eY as fromSubscription, eZ as publish, e_ as defaultSettings, e$ as Settings$2, f0 as flatMapNullishOr$1, f1 as option, f2 as delay, f3 as effectContext, aA as make$1w, f4 as provide$2, f5 as monotonicTimeNanos, f6 as retry$3, f7 as spaced, f8 as die$1, f9 as PRIVATE_NETWORKS, fa as effectDiscard, fb as provideMerge, fc as UpdatableProviderId, fd as decodeUnknownSync, fe as spawnsSubagent, ff as isPublishArtifactTool, fg as outputText, fh as publishedArtifact, fi as toolArgument, fj as isPublishDocumentTool, fk as AgentProfile, fl as Void, fm as AccountProviderId, fn as filter$1, fo as AgentAccount, fp as commonjsGlobal, fq as isRunAgentTool, fr as presetModels, fs as encodeSync, ft as mergeAll, b9 as PushEvent, fu as filter$2, fv as take$1, fw as runDrain, fx as forever, fy as never$1, fz as min, l as logError, fA as ChildProcessSpawner, fB as make$1x, fC as mkString, fD as decodeText$1, fE as ForkPoint, fF as TokenUsage, fG as MessagePart, fH as Message, fI as sliding, fJ as parseGitHubPullRequestUrl, fK as PullRequestReviewer, fL as PullRequestLabel, fM as PullRequestComment, fN as DiffSide, fO as omit$1, fP as subtract, fQ as PULL_REQUEST_REFRESH, ae as catchTags, fR as parseGitHubRepository, I as Int, fS as request$2, fT as Class, fU as ProjectAction, fV as Project, fW as BooleanFromBit, fX as Worktree, fY as timeoutOption, be as isThreadBusy, bb as ThreadStatus, fZ as ScheduledMessage, f_ as QueuedMessage, f$ as UsageLimit, aH as Thread, g0 as getOrThrow$1, g1 as PullRequestWatch, g2 as PullRequestLink, g3 as PullRequestStatus, g4 as allWatchEventKinds, g5 as enabledProviders, g6 as transcriptThreadId, g7 as resumeGraceMs, g8 as fail$3, g9 as WAIT_AGENT_TOOL, bh as tapError, ga as filter$3, gb as isMaxLength, gc as schedule, aR as RpcMethods, gd as BrowserFrame, ge as PagePick, gf as defaultClientSettings, gg as ClientSettings$1, gh as parsePairingUrl, gi as pairingUrl, gj as Environment, ah as getOrUndefined$1, az as result$1, gk as relayWebSocketUrl, gl as remoteWebSocketUrl, aW as WebSocket, aM as ServerFrame, gm as CHALLENGE_WAIT_MS, aU as methodKind, gn as dialPlan, go as REMOTE_PROTOCOL_VERSION, gp as DIRECT_CHECK_INTERVAL_MS, gq as DIRECT_CHECK_TIMEOUT_MS, gr as LinearIssue, gs as externalSpan, af as fromUndefinedOr, gt as zero$1, gu as fromInput$2, gv as badArgument, gw as isSchemaError, gx as isNoSuchElementError, gy as StackTrace, gz as mapEager, gA as updateContext$1, gB as makeUnsafe$9, gC as tag$2, gD as Error$2, gE as fromInputUnsafe$1, gF as Path, gG as run$6, gH as mebibytes, gI as Class$1, gJ as constFalse, gK as withLogSpan, gL as log, gM as Tracer, gN as nativeTracer, gO as hasInterrupts$1, gP as succeed$6, gQ as setStackTraceLimit, gR as fail$4, gS as getStackTraceLimit, gT as fiberEnterUninterruptibleUnsafe, gU as contA, gV as effectIsExit, gW as closeUnsafe, gX as contE, gY as reportCauseUnsafe, gZ as matchCauseEffectEager, g_ as flatMapEager, g$ as fromReadable, h0 as toArrayBuffer, G as cached$1, h1 as layer$W, h2 as pipeThroughDuplex, h3 as toUint8Array, bj as layer$X, b0 as fromResult, h4 as WebSocketServer, h5 as orDie$1, h6 as runForEachArray, h7 as interruptible, h8 as die$2, h9 as merge$5, ha as succeedContext, hb as unwrap$1, hc as withFiberSucceed, hd as reverse, he as getOrUndefinedUnsafe, hf as CurrentMemoMap, a0 as empty$7, hg as fiberEnterInterruptibleUnsafe, hh as compose$1, hi as Timestamp, hj as AutomationTrigger, hk as AutomationRun, hl as isPolledTrigger, hm as launch, hn as Duration, ho as DateTimeUtc, hp as withConstructorDefault, hq as withDecodingDefault, hr as Redacted, hs as Tuple$1, ht as isRedacted, hu as MutableJson, ag as isNotUndefined, hv as Never, ak as empty$8, hw as toJsonSchemaDocument, hx as annotateCurrentSpan, hy as isUndefined, hz as failCause$2, hA as forkChild, hB as catch_$1, hC as isSchemaError$1, hD as failCause$3, hE as mapEffect, hF as onEnd, hG as isSchema, aQ as encodeUnknownEffect, hH as annotate, hI as fail$5, hJ as make$1y, hK as declare, hL as isStream, hM as Class$2, hN as Exit, bi as provide$3, hO as provideContext$1, hP as StructWithRest, hQ as JsonObject$3, hR as Opaque, hS as decodeTo, hT as transformOptional, hU as flatMap$3, hV as toType, hW as Any, hX as UndefinedOr, hY as Finite, hZ as passthrough, h_ as Uint8ArrayFromBase64, h$ as Json, i0 as TemplateLiteral, i1 as decode$3, i2 as withDefault, i3 as isBetween, W as taggedEnum, i4 as take$2, i5 as toCodecJson, i6 as isNullish, i7 as isString, i8 as bounded, i9 as withParentSpan, ia as die$3, ib as offerAll, ic as interrupt$2, id as interruptors, ie as decodeSync, ig as catchCauseIf, ih as NonEmptyArray, ii as decode$4, ij as decodeUnknownResult, ik as fn, il as isTagged, im as isReadonlyObject, io as IllegalArgumentError, ip as encode$1, iq as collect, ir as catchDone, is as takeAll, it as fromArray, iu as whileLoop, iv as isExit, iw as matchEffect, ix as defaultFormatter, iy as logFatal, iz as isDeferred, iA as hasDies, c as constVoid, iB as shutdown, iC as Scheduler, iD as CurrentLogLevel, q as is$2, iE as decodeEffect, iF as UnknownFromJsonString, iG as ignoreCause, iH as Class$3, iI as TaggedStruct, iJ as toEncoded, iK as when$2, iL as threadDeviceId, iM as devicePlatformOf, ap as value$2, iN as runLast, iO as fromOption, iP as RUN_AGENT_TOOL, iQ as ARTIFACT_THEME_GUIDE, iR as DeviceUrl, iS as DeviceApp, iT as DeviceButton, iU as WatchEventKind, iV as isPattern, iW as RelayHostList, iX as RelayMachineList, iY as GuideGroup, iZ as PullRequestGuide, i_ as uninterruptible, i$ as flatten$1, j0 as diskFullness, j1 as pretty, j2 as startingProvider, j3 as min$1, j4 as exponential, j5 as desktopOnlyPushes, j6 as reachesPhone, j7 as mutations, j8 as desktopOnlyMethods, j9 as isAddressNotUpYet, ja as ClientFrame, aY as REMOTE_MAX_FRAME_BYTES, aX as REMOTE_PATH, jb as empty$9, a_ as cliSocketPath, jc as BindHost, jd as take$3, je as getAugmentedNamespace, jf as make$1z, jg as NativeSpan, jh as currentTimeNanos, aC as MinimumLogLevel, ji as isPortInUse } from "./chunks/remote-Cc8fvZ8_.js";
|
|
11
|
+
import Ee__default from "fs";
|
|
12
12
|
import require$$0 from "util";
|
|
13
13
|
import require$$1$1 from "stream";
|
|
14
14
|
import require$$0$1 from "zlib";
|
|
15
15
|
import require$$0$2 from "assert";
|
|
16
16
|
import require$$0$3 from "buffer";
|
|
17
17
|
import fs, { readFile, realpath, readlink, stat, mkdir, cp, readdir, writeFile, rename, rm, access, copyFile, constants as constants$8, open as open$1, lstat, mkdtemp, chmod, statfs } from "node:fs/promises";
|
|
18
|
-
import
|
|
18
|
+
import Pe__default from "path";
|
|
19
19
|
import crypto__default, { randomUUID, createHash, randomBytes, timingSafeEqual, createHmac } from "node:crypto";
|
|
20
20
|
import { createInterface } from "node:readline";
|
|
21
21
|
import require$$0$5 from "node:assert";
|
|
@@ -6971,7 +6971,7 @@ function requirePng() {
|
|
|
6971
6971
|
if (hasRequiredPng) return png$1;
|
|
6972
6972
|
hasRequiredPng = 1;
|
|
6973
6973
|
(function(exports) {
|
|
6974
|
-
const fs2 =
|
|
6974
|
+
const fs2 = Ee__default;
|
|
6975
6975
|
const PNG = requirePng$1().PNG;
|
|
6976
6976
|
const Utils = requireUtils$3();
|
|
6977
6977
|
exports.render = function render(qrData, options) {
|
|
@@ -7093,7 +7093,7 @@ function requireUtf8$1() {
|
|
|
7093
7093
|
cb = options;
|
|
7094
7094
|
options = void 0;
|
|
7095
7095
|
}
|
|
7096
|
-
const fs2 =
|
|
7096
|
+
const fs2 = Ee__default;
|
|
7097
7097
|
const utf82 = exports.render(qrData, options);
|
|
7098
7098
|
fs2.writeFile(path2, utf82, cb);
|
|
7099
7099
|
};
|
|
@@ -7276,7 +7276,7 @@ function requireSvg() {
|
|
|
7276
7276
|
cb = options;
|
|
7277
7277
|
options = void 0;
|
|
7278
7278
|
}
|
|
7279
|
-
const fs2 =
|
|
7279
|
+
const fs2 = Ee__default;
|
|
7280
7280
|
const svgTag2 = exports.render(qrData, options);
|
|
7281
7281
|
const xmlStr = '<?xml version="1.0" encoding="utf-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">' + svgTag2;
|
|
7282
7282
|
fs2.writeFile(path2, xmlStr, cb);
|
|
@@ -7666,7 +7666,7 @@ function requireLib() {
|
|
|
7666
7666
|
if (hasRequiredLib) return lib;
|
|
7667
7667
|
hasRequiredLib = 1;
|
|
7668
7668
|
const { isexe, sync: isexeSync } = requireIndex_min();
|
|
7669
|
-
const { join: join2, delimiter: delimiter2, sep: sep2, posix } =
|
|
7669
|
+
const { join: join2, delimiter: delimiter2, sep: sep2, posix } = Pe__default;
|
|
7670
7670
|
const isWindows = process.platform === "win32";
|
|
7671
7671
|
const rSlash = new RegExp(`[${posix.sep}${sep2 === posix.sep ? "" : sep2}]`.replace(/(\\)/g, "\\$1"));
|
|
7672
7672
|
const rRel = new RegExp(`^\\.${rSlash.source}`);
|
|
@@ -44862,7 +44862,7 @@ const shorten$1 = (text2, length) => {
|
|
|
44862
44862
|
};
|
|
44863
44863
|
const recordedCwd = (cwd) => realpath(cwd).catch(() => cwd);
|
|
44864
44864
|
const listClaudeSessions = async (home, cwd) => {
|
|
44865
|
-
const { listSessions: listSessions2 } = await import("./chunks/sdk-
|
|
44865
|
+
const { listSessions: listSessions2 } = await import("./chunks/sdk-DZclv7I1.js");
|
|
44866
44866
|
const folder = await recordedCwd(cwd);
|
|
44867
44867
|
const sessions = await listSessions2({ dir: folder, sessionStore: homeStore(home), limit: LISTED_SESSIONS });
|
|
44868
44868
|
return sessions.filter((session) => session.cwd === void 0 || session.cwd === folder).map((session) => ({
|
|
@@ -45061,7 +45061,7 @@ const fallbackModel = (id2, label) => ({
|
|
|
45061
45061
|
});
|
|
45062
45062
|
const FALLBACK_MODELS = [
|
|
45063
45063
|
fallbackModel("claude-opus-5-5", "Opus 5.5"),
|
|
45064
|
-
fallbackModel("claude-fable-5-
|
|
45064
|
+
fallbackModel("claude-fable-5-2", "Fable 5.2"),
|
|
45065
45065
|
fallbackModel("claude-sonnet-5-5", "Sonnet 5.5"),
|
|
45066
45066
|
fallbackModel("claude-haiku-5-5", "Haiku 5.5")
|
|
45067
45067
|
];
|
|
@@ -45196,7 +45196,7 @@ const baseOptions = (home) => map$2(installedBinary("claude", home?.binary ?? "c
|
|
|
45196
45196
|
const probe$2 = (read2, failure2, home, options = {}) => gen(function* () {
|
|
45197
45197
|
const prompts = yield* unbounded$1();
|
|
45198
45198
|
const base = yield* baseOptions(home);
|
|
45199
|
-
const { query } = yield* promise$1(() => import("./chunks/sdk-
|
|
45199
|
+
const { query } = yield* promise$1(() => import("./chunks/sdk-DZclv7I1.js"));
|
|
45200
45200
|
const cli = query({
|
|
45201
45201
|
prompt: toAsyncIterable(fromQueue(prompts)),
|
|
45202
45202
|
options: { ...base, settingSources: [], persistSession: false, ...options }
|
|
@@ -45484,7 +45484,7 @@ const makeClaudeHarness = ({ id: id2, listModels, launchEnv }) => gen(function*
|
|
|
45484
45484
|
const keepsGrants = previous !== void 0 && previous.sessionId === resume && sameContext(previous, input);
|
|
45485
45485
|
const base = yield* baseOptions(input.home);
|
|
45486
45486
|
const effort = effortLevelOf(input.effort);
|
|
45487
|
-
const { query } = yield* promise$1(() => import("./chunks/sdk-
|
|
45487
|
+
const { query } = yield* promise$1(() => import("./chunks/sdk-DZclv7I1.js"));
|
|
45488
45488
|
const handle = yield* try_$1({
|
|
45489
45489
|
try: () => query({
|
|
45490
45490
|
prompt: toAsyncIterable(fromQueue(prompts)),
|
|
@@ -63006,7 +63006,7 @@ var hasRequiredGracefulFs;
|
|
|
63006
63006
|
function requireGracefulFs() {
|
|
63007
63007
|
if (hasRequiredGracefulFs) return gracefulFs;
|
|
63008
63008
|
hasRequiredGracefulFs = 1;
|
|
63009
|
-
var fs2 =
|
|
63009
|
+
var fs2 = Ee__default;
|
|
63010
63010
|
var polyfills2 = requirePolyfills();
|
|
63011
63011
|
var legacy = requireLegacyStreams();
|
|
63012
63012
|
var clone2 = requireClone();
|
|
@@ -63833,7 +63833,7 @@ var hasRequiredLockfile;
|
|
|
63833
63833
|
function requireLockfile() {
|
|
63834
63834
|
if (hasRequiredLockfile) return lockfile;
|
|
63835
63835
|
hasRequiredLockfile = 1;
|
|
63836
|
-
const path2 =
|
|
63836
|
+
const path2 = Pe__default;
|
|
63837
63837
|
const fs2 = requireGracefulFs();
|
|
63838
63838
|
const retry2 = requireRetry();
|
|
63839
63839
|
const onExit2 = requireSignalExit();
|
|
@@ -69630,7 +69630,7 @@ const suggest$1 = (model, prompt) => gen(function* () {
|
|
|
69630
69630
|
try: async (signal2) => {
|
|
69631
69631
|
const abortController = new AbortController();
|
|
69632
69632
|
signal2.addEventListener("abort", () => abortController.abort());
|
|
69633
|
-
const { query } = await import("./chunks/sdk-
|
|
69633
|
+
const { query } = await import("./chunks/sdk-DZclv7I1.js");
|
|
69634
69634
|
const stream2 = query({
|
|
69635
69635
|
prompt: `<messages>
|
|
69636
69636
|
${firstAndLatest(prompt)}
|
|
@@ -94757,7 +94757,7 @@ const analyze = (detail, diff, options) => gen(function* () {
|
|
|
94757
94757
|
try: async (signal2) => {
|
|
94758
94758
|
const abortController = new AbortController();
|
|
94759
94759
|
signal2.addEventListener("abort", () => abortController.abort());
|
|
94760
|
-
const { query } = await import("./chunks/sdk-
|
|
94760
|
+
const { query } = await import("./chunks/sdk-DZclv7I1.js");
|
|
94761
94761
|
const stream2 = query({
|
|
94762
94762
|
prompt: buildAnalysisPrompt(payload, options.locale),
|
|
94763
94763
|
options: {
|
|
@@ -97200,7 +97200,7 @@ function requireTlsHelpers() {
|
|
|
97200
97200
|
Object.defineProperty(tlsHelpers, "__esModule", { value: true });
|
|
97201
97201
|
tlsHelpers.CIPHER_SUITES = void 0;
|
|
97202
97202
|
tlsHelpers.getDefaultRootsData = getDefaultRootsData;
|
|
97203
|
-
const fs2 =
|
|
97203
|
+
const fs2 = Ee__default;
|
|
97204
97204
|
tlsHelpers.CIPHER_SUITES = process.env.GRPC_SSL_CIPHER_SUITES;
|
|
97205
97205
|
const DEFAULT_ROOTS_FILE_PATH = process.env.GRPC_DEFAULT_SSL_ROOTS_FILE_PATH;
|
|
97206
97206
|
let defaultRootsData = null;
|
|
@@ -108558,8 +108558,8 @@ function requireUtil() {
|
|
|
108558
108558
|
hasRequiredUtil = 1;
|
|
108559
108559
|
Object.defineProperty(util, "__esModule", { value: true });
|
|
108560
108560
|
util.addCommonProtos = util.loadProtosWithOptionsSync = util.loadProtosWithOptions = void 0;
|
|
108561
|
-
const fs2 =
|
|
108562
|
-
const path2 =
|
|
108561
|
+
const fs2 = Ee__default;
|
|
108562
|
+
const path2 = Pe__default;
|
|
108563
108563
|
const Protobuf = requireProtobufjs();
|
|
108564
108564
|
function addIncludePathResolver(root2, includePaths) {
|
|
108565
108565
|
const originalResolvePath = root2.resolvePath;
|
|
@@ -117715,7 +117715,7 @@ function requireCertificateProvider() {
|
|
|
117715
117715
|
hasRequiredCertificateProvider = 1;
|
|
117716
117716
|
Object.defineProperty(certificateProvider, "__esModule", { value: true });
|
|
117717
117717
|
certificateProvider.FileWatcherCertificateProvider = void 0;
|
|
117718
|
-
const fs2 =
|
|
117718
|
+
const fs2 = Ee__default;
|
|
117719
117719
|
const logging2 = requireLogging();
|
|
117720
117720
|
const constants_1 = requireConstants();
|
|
117721
117721
|
const util_1 = require$$0;
|