hinacode 0.3.0-alpha.12 → 0.3.0-alpha.13

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.
@@ -15986,7 +15986,7 @@ function defaultShouldQuit(input) {
15986
15986
  }
15987
15987
  const layer$1 = layer$2;
15988
15988
  const layer = /* @__PURE__ */ provideMerge(layer$b, /* @__PURE__ */ mergeAll$1(layer$7, layer$9, layer$5, layer$3, layer$1));
15989
- const version = "0.3.0-alpha.12";
15989
+ const version = "0.3.0-alpha.13";
15990
15990
  const packageJson = {
15991
15991
  version
15992
15992
  };
package/out/server/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { createRequire as __createRequire } from "node:module";
2
2
  globalThis.require ??= __createRequire(import.meta.url);
3
- 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 NullOr, b4 as Routine, b5 as AccessMode, b6 as ProviderId, b7 as promise, b8 as isFailure, b9 as toCheckoutTarget, ba as noticeEvents, bb as PushEvent, bc as ThreadStatus, bd as try_, be as as, bf as isThreadBusy, bg as tryPromise, bh as map$4, bi as packageJson, bj as tapError, bk as provide, bl as layer$1 } from "./chunks/remote-ghM8OLgn.js";
3
+ 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 NullOr, b4 as Routine, b5 as AccessMode, b6 as ProviderId, b7 as promise, b8 as isFailure, b9 as toCheckoutTarget, ba as noticeEvents, bb as PushEvent, bc as ThreadStatus, bd as try_, be as as, bf as isThreadBusy, bg as tryPromise, bh as map$4, bi as packageJson, bj as tapError, bk as provide, bl as layer$1 } from "./chunks/remote-CbR5LZB6.js";
4
4
  import { homedir } from "node:os";
5
5
  import { resolve, sep, join } from "node:path";
6
6
  import { randomUUID } from "node:crypto";
@@ -7,7 +7,7 @@ import { homedir, tmpdir, networkInterfaces, hostname, userInfo, loadavg, cpus,
7
7
  import path__default, { join as join$1, sep, resolve as resolve$1, basename, relative, dirname, isAbsolute, extname, delimiter } from "node:path";
8
8
  import { isSea } from "node:sea";
9
9
  import NodeUrl__default, { fileURLToPath } from "node:url";
10
- import { d as dual, ai as assignProperty, b8 as isFailure, au as succeed, av as fail$1, K as some, N as none, bm as hash, bn as equals, ad as pipeArguments, bo as NodeInspectSymbol, bp as toJson, g as format$2, Z as isSome, bq as withFiber, br as uninterruptibleMask, bs as get$7, bt as Scope, bu as flow$1, bv as fromInputUnsafe, bw as constant, bx as zero, be as as, by as addFinalizerExit, v as void_, b2 as forEach, bz as exit, bA as tap$1, $ as sync, aw as interrupt, p as fail$2, bB as ExceededCapacityError, bC as makeUnsafe$5, bD as makeUnsafe$6, bE as makeUnsafe$7, H as suspend, bF as runForkWith, bG as runIn, bH as hasInterrupts, bI as doneUnsafe, bJ as getUnsafe$1, bK as addFinalizer, ax as andThen, bL as _await, bM as getCurrent, bN as interrupt$1, bO as close, bP as isZero, bQ as isFinite$1, bR as Clock, bS as toMillis, _ as flatMap, bT as millis, a8 as ensuring, bU as void_$1, bV as getOrThrow, e as hasProperty, bW as BaseProto, aI as TaggedError, bX as Error$1, bY as toSeconds, bZ as symbol$2, b_ as structure, b$ as symbol$3, c0 as redact$1, c1 as symbolRedactable, O as make$1p, R as Reference, c2 as strictEqual, c3 as map$1, c4 as try_, c5 as flatMap$1, c6 as combine, c7 as string$2, c8 as number$4, c9 as optimize, ca as contextWith, w as withFiber$1, b as sync$1, cb as infinity, cc as PipeInspectableProto, cd as updateContext, ce as merge$4, cf as succeed$1, cg as exitHasInterrupts, ch as ClockRef, ci as forkUnsafe, cj as onExitUnsafe, ck as void_$2, cl as fiberInterrupt, cm as fiberJoin, cn as filterMap, co as failVoid, cp as isGreaterThanOrEqualTo$1, cq as LogLevelOrder, aN as acquireRelease, i as isEffect, cr as interruptAs, n as succeed$2, r as runFork, cs as isFailure$1, h as hasInterruptsOnly, ct as into, cu as asVoid, cv as done, cw as filterInterruptors, cx as interruptAllAs, cy as interruptAll, cz as empty$5, cA as forkUnsafe$1, cB as runPromise, cC as runPromiseWith, cD as runPromiseExit, cE as runPromiseExitWith, cF as runSync, cG as runSyncWith, cH as runSyncExit, cI as runSyncExitWith, cJ as runCallback, cK as runCallbackWith, cL as makeMemoMapUnsafe, aB as provideContext, cM as buildWithMemoMap, cN as flatten, cO as await_, cP as scopeRemoveFinalizerUnsafe, cQ as die, cR as isResult, cS as isSuccess$1, m as identity, cT as set$5, cU as make$1q, cV as effect, aj as Service$1, cW as contextWith$1, cX as getOrUndefined, am as gen, cY as context, cZ as make$1r, V as map$2, c_ as fromQueue, c$ as unwrap, aq as provideService, d0 as onExit, d1 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, d2 as makeSpanUnsafe, d3 as TracerTimingEnabled, d4 as endSpan, d5 as makeSpanScoped, d6 as useSpan, d7 as constUndefined, d8 as provideService$1, d9 as ParentSpan, z as scoped, t as tapCause, y as fnUntraced, da as serviceOption, a3 as match, db as make$1s, dc as provide$1, dd as onError, de as catchIf, df as scope$1, dg as getOption, dh as onExitPrimitive, a as isSuccess$2, di as catchCause, dj as matchCauseEffect, dk as failCause, dl as combine$1, a9 as orDie, dm as add$1, dn as makeUnsafe$8, dp as fromReasons, dq as isFailReason, dr as makeDieReason, ds as reasonAnnotations, dt as failCause$1, du as yieldNow, dv as constTrue, dw as normalizeNonEmpty, dx as unbounded, dy as publishUnsafe, dz as fromPubSub, dA as getDefaultExportFromCjs, a$ as all$1, M as match$1, b7 as promise$1, b6 as ProviderId, dB as now, dC as formatIso, a2 as pipe$2, dD as sort, Y as map$3, dE as flatMapNullishOr, dF as catch_, bh as map$4, dG as fromNullishOr, x as mapError, dH as logDebug, dI as annotateLogs, dJ as withSpan, ay as catchTag, dK as logInfo, dL as catchDefect, dM as filterOrFail, dN as make$1t, dO as Number$1, dP as encodeEffect, k as decodeUnknownEffect, aZ as succeedNone, a7 as isReadonlyArrayNonEmpty, dQ as asSome, dR as mutable, A as ArraySchema, dS as NoSuchElementError, dT as Literals, b1 as Number$2, b3 as NullOr, aD as Struct, dU as FileSystem, dV as orElseSucceed, dW as chatFolder, dX as Boolean$1, dY as ProjectKind, dZ as ignore$1, d_ as logWarning, aT as callback, d$ as sleep$3, e0 as forkDetach, e1 as signedOutFailure, e2 as succeed$3, e3 as decodeUnknownOption, an as isNone, aL as fromJsonString, L as Literal, e4 as Unknown, e5 as toArray, aJ as seconds, f as optionalKey, e6 as cachedWithTTL, e7 as minutes, aO as unbounded$1, e8 as toAsyncIterable, bg as tryPromise, e9 as timeout, ea as addFinalizer$1, eb as callback$1, ec as offer, ed as withPermit, ee as acquireUseRelease, aP as endUnsafe, ef as shutdownUnsafe, eg as make$1u, bd as try_$1, bj as tapError, eh as forkIn, ei as fromAsyncIterable, ej as runForEach, s as squash, ek as CLAUDE_EFFORT_LEVELS, el as ensuring$1, em as currentTimeMillis, en as sum, eo as race, ep as publishedArtifactId, eq as PUBLISH_DOCUMENT_TOOL, er as PUBLISH_ARTIFACT_TOOL, es as PUBLISH_WHITEBOARD_TOOL, et as isDone, eu as empty$6, ev as succeed$4, ew as fromIterable$2, ex as flatMap$2, ey as interruptWhen, ez as concat, eA as fromEffectDrain, eB as fromEffect, eC as fromIterableEffect, eD as suspend$1, eE as unlistedModel, eF as make$1v, eG as tap$2, eH as tick, eI as map$5, eJ as drop, eK as merge$5, eL as onInterrupt, aS as timeoutOrElse, eM as format$3, eN as getOrNull, eO as Record, eP as make$1w, aa as take, eQ as join$2, ab as raceFirst, eR as end, eS as takeUnsafe, eT as forkScoped, eU as isObject$2, J as getOrElse, eV as repeat, ao as succeed$5, eW as subscribe, eX as fromSubscription, eY as applySettingsPatch, eZ as publish, e_ as defaultSettings, e$ as Settings$2, f0 as vmProviderBeforeTheChoice, f1 as flatMapNullishOr$1, f2 as option, f3 as delay, f4 as isTailscaleHost, f5 as PRIVATE_NETWORKS, f6 as RelayHostList, f7 as RelayMachineList, f8 as encodeSync, f9 as mergeAll, bb as PushEvent, fa as makeUnsafe$9, fb as effectDiscard, fc as changes$1, fd as Void, fe as AppConnection, ff as decodeEffect, fg as toCodecJson, fh as RecordFromUrlParams, fi as decodeTo, fj as externalSpan, fk as isOption, fl as isExit, af as fromUndefinedOr, fm as zero$1, fn as fromInput$1, fo as badArgument, fp as isSchemaError, fq as isNoSuchElementError, fr as StackTrace, fs as mapEager, ft as updateContext$1, fu as makeUnsafe$a, fv as tag$2, fw as Error$2, I as Int, fx as fromInputUnsafe$1, fy as Path, fz as run$5, fA as mebibytes, fB as Class, fC as constFalse, fD as withLogSpan, fE as log, ah as getOrUndefined$1, fF as Tracer, fG as nativeTracer, fH as hasInterrupts$1, fI as succeed$6, fJ as setStackTraceLimit, fK as fail$3, fL as getStackTraceLimit, fM as fiberEnterUninterruptibleUnsafe, fN as contA, fO as effectIsExit, fP as closeUnsafe, fQ as contE, fR as reportCauseUnsafe, fS as matchCauseEffectEager, fT as flatMapEager, fU as provideMerge, fV as fromInput$2, fW as fromReadable, fX as toArrayBuffer, G as cached$1, fY as provide$2, fZ as layer$X, f_ as pipeThroughDuplex, f$ as toUint8Array, bl as layer$Y, b0 as fromResult, g0 as WebSocketServer, g1 as orDie$1, g2 as runForEachArray, g3 as interruptible, g4 as die$1, g5 as Duration, g6 as DateTimeUtc, g7 as withConstructorDefault, g8 as withDecodingDefault, g9 as Redacted, ga as Tuple, gb as isRedacted, gc as MutableJson, ag as isNotUndefined, gd as Never, ak as empty$7, ge as toJsonSchemaDocument, gf as effectContext, gg as annotateCurrentSpan, gh as isUndefined, az as result$1, gi as failCause$2, gj as forkChild, gk as catch_$1, gl as isSchemaError$1, gm as failCause$3, gn as mapEffect, go as onEnd, gp as isSchema, aQ as encodeUnknownEffect, gq as annotate, gr as fail$4, aA as make$1x, gs as make$1y, gt as declare, gu as isStream, gv as Class$1, gw as Exit, gx as getOrUndefinedUnsafe, bk as provide$3, gy as provideContext$1, gz as Opaque, gA as StructWithRest, gB as JsonObject$3, gC as transformOptional, gD as flatMap$3, gE as toType, gF as Any, gG as UndefinedOr, gH as Finite, gI as passthrough, gJ as Uint8ArrayFromBase64, gK as Json, gL as TemplateLiteral, gM as decode$3, gN as withDefault, gO as isBetween, W as taggedEnum, gP as take$1, gQ as isNullish, gR as isString, gS as never$1, gT as bounded, gU as withParentSpan, gV as die$2, gW as offerAll, gX as decodeSync, l as logError, gY as NonEmptyArray, gZ as interrupt$2, g_ as interruptors, g$ as catchCauseIf, h0 as decode$4, h1 as decodeUnknownResult, h2 as fn, h3 as isTagged, h4 as isReadonlyObject, h5 as IllegalArgumentError, h6 as encode$1, h7 as omit$1, h8 as merge$6, h9 as succeedContext, ha as unwrap$1, hb as CurrentMemoMap, hc as fromIterable$3, hd as reverse, a0 as empty$8, he as withFiberSucceed, hf as fiberEnterInterruptibleUnsafe, hg as compose$1, hh as collect, hi as catchDone, hj as takeAll, hk as fromArray, hl as whileLoop, hm as matchEffect, hn as defaultFormatter, ho as logFatal, hp as isDeferred, hq as hasDies, c as constVoid, hr as shutdown, hs as Scheduler$1, ae as catchTags, ht as CurrentLogLevel, q as is$2, hu as UnknownFromJsonString, hv as ignoreCause, hw as forever, hx as Class$2, hy as TaggedStruct, hz as toEncoded, hA as isMaxLength, hB as makeFilter, hC as isPattern, hD as runLast, hE as fromOption, hF as decodeUnknownSync, hG as spawnsSubagent, hH as isPublishArtifactTool, hI as outputText, hJ as publishedArtifact, hK as toolArgument, hL as isPublishDocumentTool, hM as commonjsGlobal, hN as isRunAgentTool, hO as presetModels, hP as filter$1, hQ as take$2, hR as runDrain, hS as min, hT as ChildProcessSpawner, hU as make$1z, hV as mkString, hW as decodeText$1, hX as ForkPoint, hY as TokenUsage, hZ as MessagePart, h_ as Message, h$ as parseGitHubPullRequestUrl, i0 as PullRequestReviewer, i1 as PullRequestLabel, i2 as PullRequestComment, i3 as DiffSide, i4 as subtract, i5 as PULL_REQUEST_REFRESH, i6 as parseGitHubIssueUrl, i7 as parseGitHubRepository, i8 as request$2, i9 as Class$3, ia as AgentProfile, ib as AccountProviderId, ic as ProjectAction, id as Project, ie as BooleanFromBit, ig as Worktree, ih as timeoutOption, bf as isThreadBusy, bc as ThreadStatus, ii as ScheduledMessage, ij as QueuedMessage, ik as UsageLimit, aH as Thread, il as getOrThrow$1, im as PullRequestWatch, io as PullRequestLink, ip as allWatchEventKinds, iq as enabledProviders, ir as transcriptThreadId, is as resumeGraceMs, it as fail$5, iu as isDoneUnsafe, iv as filter$2, iw as WAIT_AGENT_TOOL, ix as startingProvider, iy as kilobytes, iz as monotonicTimeNanos, iA as retry$3, iB as spaced, iC as die$3, iD as snakeToCamel, iE as camelToSnake, iF as UpdatableProviderId, iG as filter$3, iH as AgentAccount, iI as schedule, aR as RpcMethods, iJ as BrowserFrame, iK as PagePick, iL as defaultClientSettings, iM as ClientSettings$1, iN as parsePairingUrl, iO as pairingUrl, aM as ServerFrame, iP as Environment, iQ as relayWebSocketUrl, iR as remoteWebSocketUrl, aW as WebSocket$1, iS as CHALLENGE_WAIT_MS, aU as methodKind, iT as dialPlan, iU as REMOTE_PROTOCOL_VERSION, iV as DIRECT_CHECK_INTERVAL_MS, iW as DIRECT_CHECK_TIMEOUT_MS, iX as next, iY as bytes, iZ as Timestamp, i_ as RoutineSchedule, i$ as RoutineRun, j0 as launch, j1 as uninterruptible, j2 as parseUnsafe, j3 as RoutineWorkspace, j4 as LinearIssue, j5 as when$2, j6 as threadDeviceId, j7 as shownScreen, j8 as devicePlatformOf, ap as value$2, j9 as BoatVmSize, ja as RUN_AGENT_TOOL, jb as ARTIFACT_THEME_GUIDE, jc as DeviceUrl, jd as DeviceApp, je as DeviceButton, jf as WatchEventKind, jg as GuideGroup, jh as PullRequestGuide, ji as flatten$1, jj as diskFullness, jk as pretty, jl as min$1, jm as exponential, jn as desktopOnlyPushes, jo as reachesPhone, jp as mutations, jq as desktopOnlyMethods, jr as isAddressNotUpYet, js as ClientFrame, aY as REMOTE_MAX_FRAME_BYTES, aX as REMOTE_PATH, jt as empty$9, a_ as cliSocketPath, ju as RemoteFeature, jv as BindHost, jw as getAugmentedNamespace, jx as make$1A, jy as NativeSpan, jz as currentTimeNanos, aC as MinimumLogLevel, bi as packageJson, jA as isPortInUse } from "./chunks/remote-ghM8OLgn.js";
10
+ import { d as dual, ai as assignProperty, b8 as isFailure, au as succeed, av as fail$1, K as some, N as none, bm as hash, bn as equals, ad as pipeArguments, bo as NodeInspectSymbol, bp as toJson, g as format$2, Z as isSome, bq as withFiber, br as uninterruptibleMask, bs as get$7, bt as Scope, bu as flow$1, bv as fromInputUnsafe, bw as constant, bx as zero, be as as, by as addFinalizerExit, v as void_, b2 as forEach, bz as exit, bA as tap$1, $ as sync, aw as interrupt, p as fail$2, bB as ExceededCapacityError, bC as makeUnsafe$5, bD as makeUnsafe$6, bE as makeUnsafe$7, H as suspend, bF as runForkWith, bG as runIn, bH as hasInterrupts, bI as doneUnsafe, bJ as getUnsafe$1, bK as addFinalizer, ax as andThen, bL as _await, bM as getCurrent, bN as interrupt$1, bO as close, bP as isZero, bQ as isFinite$1, bR as Clock, bS as toMillis, _ as flatMap, bT as millis, a8 as ensuring, bU as void_$1, bV as getOrThrow, e as hasProperty, bW as BaseProto, aI as TaggedError, bX as Error$1, bY as toSeconds, bZ as symbol$2, b_ as structure, b$ as symbol$3, c0 as redact$1, c1 as symbolRedactable, O as make$1p, R as Reference, c2 as strictEqual, c3 as map$1, c4 as try_, c5 as flatMap$1, c6 as combine, c7 as string$2, c8 as number$4, c9 as optimize, ca as contextWith, w as withFiber$1, b as sync$1, cb as infinity, cc as PipeInspectableProto, cd as updateContext, ce as merge$4, cf as succeed$1, cg as exitHasInterrupts, ch as ClockRef, ci as forkUnsafe, cj as onExitUnsafe, ck as void_$2, cl as fiberInterrupt, cm as fiberJoin, cn as filterMap, co as failVoid, cp as isGreaterThanOrEqualTo$1, cq as LogLevelOrder, aN as acquireRelease, i as isEffect, cr as interruptAs, n as succeed$2, r as runFork, cs as isFailure$1, h as hasInterruptsOnly, ct as into, cu as asVoid, cv as done, cw as filterInterruptors, cx as interruptAllAs, cy as interruptAll, cz as empty$5, cA as forkUnsafe$1, cB as runPromise, cC as runPromiseWith, cD as runPromiseExit, cE as runPromiseExitWith, cF as runSync, cG as runSyncWith, cH as runSyncExit, cI as runSyncExitWith, cJ as runCallback, cK as runCallbackWith, cL as makeMemoMapUnsafe, aB as provideContext, cM as buildWithMemoMap, cN as flatten, cO as await_, cP as scopeRemoveFinalizerUnsafe, cQ as die, cR as isResult, cS as isSuccess$1, m as identity, cT as set$5, cU as make$1q, cV as effect, aj as Service$1, cW as contextWith$1, cX as getOrUndefined, am as gen, cY as context, cZ as make$1r, V as map$2, c_ as fromQueue, c$ as unwrap, aq as provideService, d0 as onExit, d1 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, d2 as makeSpanUnsafe, d3 as TracerTimingEnabled, d4 as endSpan, d5 as makeSpanScoped, d6 as useSpan, d7 as constUndefined, d8 as provideService$1, d9 as ParentSpan, z as scoped, t as tapCause, y as fnUntraced, da as serviceOption, a3 as match, db as make$1s, dc as provide$1, dd as onError, de as catchIf, df as scope$1, dg as getOption, dh as onExitPrimitive, a as isSuccess$2, di as catchCause, dj as matchCauseEffect, dk as failCause, dl as combine$1, a9 as orDie, dm as add$1, dn as makeUnsafe$8, dp as fromReasons, dq as isFailReason, dr as makeDieReason, ds as reasonAnnotations, dt as failCause$1, du as yieldNow, dv as constTrue, dw as normalizeNonEmpty, dx as unbounded, dy as publishUnsafe, dz as fromPubSub, dA as getDefaultExportFromCjs, a$ as all$1, M as match$1, b7 as promise$1, b6 as ProviderId, dB as now, dC as formatIso, a2 as pipe$2, dD as sort, Y as map$3, dE as flatMapNullishOr, dF as catch_, bh as map$4, dG as fromNullishOr, x as mapError, dH as logDebug, dI as annotateLogs, dJ as withSpan, ay as catchTag, dK as logInfo, dL as catchDefect, dM as filterOrFail, dN as make$1t, dO as Number$1, dP as encodeEffect, k as decodeUnknownEffect, aZ as succeedNone, a7 as isReadonlyArrayNonEmpty, dQ as asSome, dR as mutable, A as ArraySchema, dS as NoSuchElementError, dT as Literals, b1 as Number$2, b3 as NullOr, aD as Struct, dU as FileSystem, dV as orElseSucceed, dW as chatFolder, dX as Boolean$1, dY as ProjectKind, dZ as ignore$1, d_ as logWarning, aT as callback, d$ as sleep$3, e0 as forkDetach, e1 as signedOutFailure, e2 as succeed$3, e3 as decodeUnknownOption, an as isNone, aL as fromJsonString, L as Literal, e4 as Unknown, e5 as toArray, aJ as seconds, f as optionalKey, e6 as cachedWithTTL, e7 as minutes, aO as unbounded$1, e8 as toAsyncIterable, bg as tryPromise, e9 as timeout, ea as addFinalizer$1, eb as callback$1, ec as offer, ed as withPermit, ee as acquireUseRelease, aP as endUnsafe, ef as shutdownUnsafe, eg as make$1u, bd as try_$1, bj as tapError, eh as forkIn, ei as fromAsyncIterable, ej as runForEach, s as squash, ek as CLAUDE_EFFORT_LEVELS, el as ensuring$1, em as currentTimeMillis, en as sum, eo as race, ep as publishedArtifactId, eq as PUBLISH_DOCUMENT_TOOL, er as PUBLISH_ARTIFACT_TOOL, es as PUBLISH_WHITEBOARD_TOOL, et as isDone, eu as empty$6, ev as succeed$4, ew as fromIterable$2, ex as flatMap$2, ey as interruptWhen, ez as concat, eA as fromEffectDrain, eB as fromEffect, eC as fromIterableEffect, eD as suspend$1, eE as unlistedModel, eF as make$1v, eG as tap$2, eH as tick, eI as map$5, eJ as drop, eK as merge$5, eL as onInterrupt, aS as timeoutOrElse, eM as format$3, eN as getOrNull, eO as Record, eP as make$1w, aa as take, eQ as join$2, ab as raceFirst, eR as end, eS as takeUnsafe, eT as forkScoped, eU as isObject$2, J as getOrElse, eV as repeat, ao as succeed$5, eW as subscribe, eX as fromSubscription, eY as applySettingsPatch, eZ as publish, e_ as defaultSettings, e$ as Settings$2, f0 as vmProviderBeforeTheChoice, f1 as flatMapNullishOr$1, f2 as option, f3 as delay, f4 as isTailscaleHost, f5 as PRIVATE_NETWORKS, f6 as RelayHostList, f7 as RelayMachineList, f8 as encodeSync, f9 as mergeAll, bb as PushEvent, fa as makeUnsafe$9, fb as effectDiscard, fc as changes$1, fd as Void, fe as AppConnection, ff as decodeEffect, fg as toCodecJson, fh as RecordFromUrlParams, fi as decodeTo, fj as externalSpan, fk as isOption, fl as isExit, af as fromUndefinedOr, fm as zero$1, fn as fromInput$1, fo as badArgument, fp as isSchemaError, fq as isNoSuchElementError, fr as StackTrace, fs as mapEager, ft as updateContext$1, fu as makeUnsafe$a, fv as tag$2, fw as Error$2, I as Int, fx as fromInputUnsafe$1, fy as Path, fz as run$5, fA as mebibytes, fB as Class, fC as constFalse, fD as withLogSpan, fE as log, ah as getOrUndefined$1, fF as Tracer, fG as nativeTracer, fH as hasInterrupts$1, fI as succeed$6, fJ as setStackTraceLimit, fK as fail$3, fL as getStackTraceLimit, fM as fiberEnterUninterruptibleUnsafe, fN as contA, fO as effectIsExit, fP as closeUnsafe, fQ as contE, fR as reportCauseUnsafe, fS as matchCauseEffectEager, fT as flatMapEager, fU as provideMerge, fV as fromInput$2, fW as fromReadable, fX as toArrayBuffer, G as cached$1, fY as provide$2, fZ as layer$X, f_ as pipeThroughDuplex, f$ as toUint8Array, bl as layer$Y, b0 as fromResult, g0 as WebSocketServer, g1 as orDie$1, g2 as runForEachArray, g3 as interruptible, g4 as die$1, g5 as Duration, g6 as DateTimeUtc, g7 as withConstructorDefault, g8 as withDecodingDefault, g9 as Redacted, ga as Tuple, gb as isRedacted, gc as MutableJson, ag as isNotUndefined, gd as Never, ak as empty$7, ge as toJsonSchemaDocument, gf as effectContext, gg as annotateCurrentSpan, gh as isUndefined, az as result$1, gi as failCause$2, gj as forkChild, gk as catch_$1, gl as isSchemaError$1, gm as failCause$3, gn as mapEffect, go as onEnd, gp as isSchema, aQ as encodeUnknownEffect, gq as annotate, gr as fail$4, aA as make$1x, gs as make$1y, gt as declare, gu as isStream, gv as Class$1, gw as Exit, gx as getOrUndefinedUnsafe, bk as provide$3, gy as provideContext$1, gz as Opaque, gA as StructWithRest, gB as JsonObject$3, gC as transformOptional, gD as flatMap$3, gE as toType, gF as Any, gG as UndefinedOr, gH as Finite, gI as passthrough, gJ as Uint8ArrayFromBase64, gK as Json, gL as TemplateLiteral, gM as decode$3, gN as withDefault, gO as isBetween, W as taggedEnum, gP as take$1, gQ as isNullish, gR as isString, gS as never$1, gT as bounded, gU as withParentSpan, gV as die$2, gW as offerAll, gX as decodeSync, l as logError, gY as NonEmptyArray, gZ as interrupt$2, g_ as interruptors, g$ as catchCauseIf, h0 as decode$4, h1 as decodeUnknownResult, h2 as fn, h3 as isTagged, h4 as isReadonlyObject, h5 as IllegalArgumentError, h6 as encode$1, h7 as omit$1, h8 as merge$6, h9 as succeedContext, ha as unwrap$1, hb as CurrentMemoMap, hc as fromIterable$3, hd as reverse, a0 as empty$8, he as withFiberSucceed, hf as fiberEnterInterruptibleUnsafe, hg as compose$1, hh as collect, hi as catchDone, hj as takeAll, hk as fromArray, hl as whileLoop, hm as matchEffect, hn as defaultFormatter, ho as logFatal, hp as isDeferred, hq as hasDies, c as constVoid, hr as shutdown, hs as Scheduler$1, ae as catchTags, ht as CurrentLogLevel, q as is$2, hu as UnknownFromJsonString, hv as ignoreCause, hw as forever, hx as Class$2, hy as TaggedStruct, hz as toEncoded, hA as isMaxLength, hB as makeFilter, hC as isPattern, hD as runLast, hE as fromOption, hF as decodeUnknownSync, hG as spawnsSubagent, hH as isPublishArtifactTool, hI as outputText, hJ as publishedArtifact, hK as toolArgument, hL as isPublishDocumentTool, hM as commonjsGlobal, hN as isRunAgentTool, hO as presetModels, hP as filter$1, hQ as take$2, hR as runDrain, hS as min, hT as ChildProcessSpawner, hU as make$1z, hV as mkString, hW as decodeText$1, hX as ForkPoint, hY as TokenUsage, hZ as MessagePart, h_ as Message, h$ as parseGitHubPullRequestUrl, i0 as PullRequestReviewer, i1 as PullRequestLabel, i2 as PullRequestComment, i3 as DiffSide, i4 as subtract, i5 as PULL_REQUEST_REFRESH, i6 as parseGitHubIssueUrl, i7 as parseGitHubRepository, i8 as request$2, i9 as Class$3, ia as AgentProfile, ib as AccountProviderId, ic as ProjectAction, id as Project, ie as BooleanFromBit, ig as Worktree, ih as timeoutOption, bf as isThreadBusy, bc as ThreadStatus, ii as ScheduledMessage, ij as QueuedMessage, ik as UsageLimit, aH as Thread, il as getOrThrow$1, im as PullRequestWatch, io as PullRequestLink, ip as allWatchEventKinds, iq as enabledProviders, ir as transcriptThreadId, is as resumeGraceMs, it as fail$5, iu as isDoneUnsafe, iv as filter$2, iw as WAIT_AGENT_TOOL, ix as startingProvider, iy as kilobytes, iz as monotonicTimeNanos, iA as retry$3, iB as spaced, iC as die$3, iD as snakeToCamel, iE as camelToSnake, iF as UpdatableProviderId, iG as filter$3, iH as AgentAccount, iI as schedule, aR as RpcMethods, iJ as BrowserFrame, iK as PagePick, iL as defaultClientSettings, iM as ClientSettings$1, iN as parsePairingUrl, iO as pairingUrl, aM as ServerFrame, iP as Environment, iQ as relayWebSocketUrl, iR as remoteWebSocketUrl, aW as WebSocket$1, iS as CHALLENGE_WAIT_MS, aU as methodKind, iT as dialPlan, iU as REMOTE_PROTOCOL_VERSION, iV as DIRECT_CHECK_INTERVAL_MS, iW as DIRECT_CHECK_TIMEOUT_MS, iX as next, iY as bytes, iZ as Timestamp, i_ as RoutineSchedule, i$ as RoutineRun, j0 as launch, j1 as uninterruptible, j2 as parseUnsafe, j3 as RoutineWorkspace, j4 as LinearIssue, j5 as when$2, j6 as threadDeviceId, j7 as shownScreen, j8 as devicePlatformOf, ap as value$2, j9 as BoatVmSize, ja as RUN_AGENT_TOOL, jb as ARTIFACT_THEME_GUIDE, jc as DeviceUrl, jd as DeviceApp, je as DeviceButton, jf as WatchEventKind, jg as GuideGroup, jh as PullRequestGuide, ji as flatten$1, jj as diskFullness, jk as pretty, jl as min$1, jm as exponential, jn as desktopOnlyPushes, jo as reachesPhone, jp as mutations, jq as desktopOnlyMethods, jr as isAddressNotUpYet, js as ClientFrame, aY as REMOTE_MAX_FRAME_BYTES, aX as REMOTE_PATH, jt as empty$9, a_ as cliSocketPath, ju as RemoteFeature, jv as BindHost, jw as getAugmentedNamespace, jx as make$1A, jy as NativeSpan, jz as currentTimeNanos, aC as MinimumLogLevel, bi as packageJson, jA as isPortInUse } from "./chunks/remote-CbR5LZB6.js";
11
11
  import Ee__default from "fs";
12
12
  import require$$0 from "util";
13
13
  import require$$1$1 from "stream";
@@ -8718,6 +8718,7 @@ const parseMention = (token) => {
8718
8718
  const segmentText = (segment) => segment.kind === "fence" ? [segment.open, ...segment.lines, ...segment.close === null ? [] : [segment.close]].join("\n") : segment.text;
8719
8719
  const FENCE$1 = /^\s*```\s*([^\s`]*)/;
8720
8720
  const BULLET = /^(\s*)([-*+]|\d+[.)])(?=\s)/;
8721
+ const QUOTE$1 = "> ";
8721
8722
  const RULE = /^ {0,3}(?:-{3,}|\*{3,}|_{3,})\s*$/;
8722
8723
  const NAME = String.raw`[\w:-]+(?:\.[\w:-]+)*`;
8723
8724
  const INLINE = new RegExp(
@@ -8787,6 +8788,10 @@ function highlight(text2, known) {
8787
8788
  segments2.push({ kind: "rule", text: line });
8788
8789
  continue;
8789
8790
  }
8791
+ if (line.startsWith(QUOTE$1)) {
8792
+ segments2.push({ kind: "quote", text: QUOTE$1 }, ...inline(line.slice(QUOTE$1.length), known));
8793
+ continue;
8794
+ }
8790
8795
  const bullet2 = BULLET.exec(line);
8791
8796
  const markerEnd = bullet2 ? bullet2[0].length : 0;
8792
8797
  if (bullet2) segments2.push({ kind: "text", text: bullet2[1] ?? "" }, { kind: "bullet", text: bullet2[2] ?? "" });
@@ -56945,10 +56950,13 @@ const copySession = (threadId, from, to) => tryPromise({
56945
56950
  )
56946
56951
  )
56947
56952
  );
56948
- const TERMINAL_POLL_INTERVAL = seconds(2);
56953
+ const TerminalPollInterval = Reference("hinacode/CodexTerminalPollInterval", {
56954
+ defaultValue: () => seconds(2)
56955
+ });
56949
56956
  const sameTasks = (a, b) => a.length === b.length && a.every((task, index) => task.id === b[index]?.id);
56950
56957
  const make$19 = gen(function* () {
56951
56958
  const providerScope = yield* scope$1;
56959
+ const terminalPollInterval = yield* TerminalPollInterval;
56952
56960
  const clientLock = yield* make$1w(1);
56953
56961
  const clients = /* @__PURE__ */ new Map();
56954
56962
  const getClient = (home) => withPermit(
@@ -57056,7 +57064,7 @@ const make$19 = gen(function* () {
57056
57064
  terminalsByThread.set(threadId, terminals);
57057
57065
  terminals.poll = yield* gen(function* () {
57058
57066
  while (true) {
57059
- yield* sleep$3(TERMINAL_POLL_INTERVAL);
57067
+ yield* sleep$3(terminalPollInterval);
57060
57068
  const tasks = yield* refreshTerminals(threadId, terminals);
57061
57069
  if (tasks.length === 0 && !runs.has(threadId)) return;
57062
57070
  }
@@ -78890,7 +78898,7 @@ const makeExec = (spawner) => (command, args, cwd, options) => gen(function* ()
78890
78898
  stdin: "ignore",
78891
78899
  env: options?.env,
78892
78900
  extendEnv: true,
78893
- forceKillAfter: "3 seconds"
78901
+ forceKillAfter: options?.forceKillAfter ?? "3 seconds"
78894
78902
  })
78895
78903
  );
78896
78904
  const [stdout, stderr, exitCode] = yield* all$1(
@@ -81506,9 +81514,12 @@ const gitBash = async () => {
81506
81514
  return void 0;
81507
81515
  };
81508
81516
  const scriptShell = async () => process.platform === "win32" ? gitBash() : process.env["SHELL"] || "/bin/sh";
81509
- const SETUP_TIMEOUT = "60 seconds";
81517
+ const SETUP_TIMING = {
81518
+ timeout: "60 seconds",
81519
+ forceKillAfter: "3 seconds",
81520
+ outputDrainTimeout: "1 second"
81521
+ };
81510
81522
  const FETCH_INTERVAL = "5 minutes";
81511
- const SETUP_OUTPUT_DRAIN_TIMEOUT = "1 second";
81512
81523
  const GIT_BASH_MISSING = "Setup scripts on Windows run in Git Bash, which comes with Git for Windows. Install it from https://git-scm.com, then try again.";
81513
81524
  class Worktrees extends Service$1()("hinacode/Worktrees") {
81514
81525
  }
@@ -81521,7 +81532,7 @@ const parseCheckouts = (output) => output.split("\0\0").map((record2) => {
81521
81532
  const value2 = (key2) => fields.find((field2) => field2.startsWith(`${key2} `))?.slice(key2.length + 1);
81522
81533
  return { path: value2("worktree") ?? "", ref: value2("branch") ?? null };
81523
81534
  }).filter((checkout) => checkout.path !== "");
81524
- const make$t = fnUntraced(function* (setupTimeout) {
81535
+ const make$t = fnUntraced(function* (setupTiming) {
81525
81536
  const sql = yield* SqlClient;
81526
81537
  const projects = yield* Projects;
81527
81538
  const git2 = yield* Git;
@@ -81623,7 +81634,7 @@ const make$t = fnUntraced(function* (setupTimeout) {
81623
81634
  },
81624
81635
  extendEnv: true,
81625
81636
  stdin: "ignore",
81626
- forceKillAfter: "3 seconds"
81637
+ forceKillAfter: setupTiming.forceKillAfter
81627
81638
  })
81628
81639
  );
81629
81640
  const logging2 = yield* handle.all.pipe(
@@ -81632,7 +81643,7 @@ const make$t = fnUntraced(function* (setupTimeout) {
81632
81643
  forkScoped
81633
81644
  );
81634
81645
  const exitCode = yield* handle.exitCode;
81635
- const drained = yield* join$2(logging2).pipe(timeoutOption(SETUP_OUTPUT_DRAIN_TIMEOUT));
81646
+ const drained = yield* join$2(logging2).pipe(timeoutOption(setupTiming.outputDrainTimeout));
81636
81647
  if (isNone(drained)) {
81637
81648
  yield* reportSetup(
81638
81649
  worktree,
@@ -81649,9 +81660,9 @@ const make$t = fnUntraced(function* (setupTimeout) {
81649
81660
  const setup2 = (worktree, project2) => gen(function* () {
81650
81661
  const script = project2.setupScript?.trim();
81651
81662
  if (!script) return yield* setStatus2(worktree.id, "ready");
81652
- const finished2 = yield* runSetupScript(worktree, project2, script).pipe(timeoutOption(setupTimeout));
81663
+ const finished2 = yield* runSetupScript(worktree, project2, script).pipe(timeoutOption(setupTiming.timeout));
81653
81664
  if (isNone(finished2)) {
81654
- const after = format$3(fromInputUnsafe(setupTimeout));
81665
+ const after = format$3(fromInputUnsafe(setupTiming.timeout));
81655
81666
  yield* reportSetup(worktree, "timedOut", `
81656
81667
  Setup script timed out after ${after} and was stopped.
81657
81668
  `);
@@ -81962,8 +81973,8 @@ Setup script exited with code ${exitCode}
81962
81973
  stopSetup
81963
81974
  });
81964
81975
  });
81965
- const layerWithSetupTimeout = (setupTimeout) => effect(Worktrees, make$t(setupTimeout));
81966
- const layer$z = layerWithSetupTimeout(SETUP_TIMEOUT);
81976
+ const layerWithSetupTiming = (setupTiming) => effect(Worktrees, make$t(setupTiming));
81977
+ const layer$z = layerWithSetupTiming(SETUP_TIMING);
81967
81978
  const MAX_LISTED_FILES = 5e4;
81968
81979
  const randomName = () => `thread-${randomUUID().slice(0, 5)}`;
81969
81980
  const ThreadRow$1 = Struct({
@@ -86836,6 +86847,7 @@ const executablePath = async (override) => {
86836
86847
  return void 0;
86837
86848
  };
86838
86849
  const make$j = (options) => gen(function* () {
86850
+ const clock = yield* Clock;
86839
86851
  const activeWorkspace = yield* makeActiveWorkspace;
86840
86852
  const attachments = yield* Attachments;
86841
86853
  const scope2 = yield* scope$1;
@@ -87260,7 +87272,7 @@ const make$j = (options) => gen(function* () {
87260
87272
  if (!live || live.closed || live.threadId !== threadId) {
87261
87273
  throw new BrowserError({ message: "Browser session does not belong to this thread or has expired" });
87262
87274
  }
87263
- live.lease = Date.now();
87275
+ live.lease = clock.currentTimeMillisUnsafe();
87264
87276
  return live;
87265
87277
  };
87266
87278
  const open2 = (input) => gen(function* () {
@@ -87297,7 +87309,7 @@ const make$j = (options) => gen(function* () {
87297
87309
  viewport: { width: input.width, height: input.height },
87298
87310
  latest: null,
87299
87311
  sequence: 0,
87300
- lease: Date.now(),
87312
+ lease: clock.currentTimeMillisUnsafe(),
87301
87313
  casting: false,
87302
87314
  closed: false,
87303
87315
  pickEpoch: 0,
@@ -87448,7 +87460,9 @@ const make$j = (options) => gen(function* () {
87448
87460
  catch: failure$2
87449
87461
  });
87450
87462
  const sweep = promise$1(async () => {
87451
- const expired = [...sessions.values()].filter((live) => Date.now() - live.lease > (options.leaseMs ?? 6e4));
87463
+ const expired = [...sessions.values()].filter(
87464
+ (live) => clock.currentTimeMillisUnsafe() - live.lease > (options.leaseMs ?? 6e4)
87465
+ );
87452
87466
  await Promise.all(expired.map((live) => closeLive(live)));
87453
87467
  }).pipe(catchCause((cause) => logWarning("browser cleanup failed", cause)));
87454
87468
  yield* sweep.pipe(schedule(spaced(options.sweepMs ?? 1e4)), forkScoped);
@@ -88769,8 +88783,8 @@ const fetchIcon = async (url2, deadline2) => {
88769
88783
  const type2 = truncated ? null : sniffImage(bytes2);
88770
88784
  return type2 && `data:${type2};base64,${bytes2.toString("base64")}`;
88771
88785
  };
88772
- const lookup = async (origin) => {
88773
- const deadline2 = AbortSignal.timeout(LOOKUP_TIMEOUT_MS);
88786
+ const lookup = async (origin, lookupTimeoutMs) => {
88787
+ const deadline2 = AbortSignal.timeout(lookupTimeoutMs);
88774
88788
  const page2 = await get(new URL("/", origin), deadline2).catch(() => null);
88775
88789
  const html2 = page2 ? (await readUpTo(page2.response, PAGE_LIMIT_BYTES)).bytes.toString("utf8") : "";
88776
88790
  const linked = page2 && linkedIcon(html2, page2.url);
@@ -88793,12 +88807,12 @@ class Host {
88793
88807
  return string$2(this.hostname);
88794
88808
  }
88795
88809
  }
88796
- const make$g = gen(function* () {
88810
+ const make$g = fnUntraced(function* (lookupTimeoutMs) {
88797
88811
  const lookups = yield* make$1w(MAX_CONCURRENT_LOOKUPS);
88798
88812
  const icons = yield* makeWith$1(
88799
88813
  (host) => withPermit(
88800
88814
  lookups,
88801
- promise$1(() => lookup(host.origin).catch(() => null))
88815
+ promise$1(() => lookup(host.origin, lookupTimeoutMs).catch(() => null))
88802
88816
  ),
88803
88817
  {
88804
88818
  capacity: CACHE_CAPACITY,
@@ -88812,7 +88826,8 @@ const make$g = gen(function* () {
88812
88826
  }
88813
88827
  });
88814
88828
  });
88815
- const layer$h = effect(Favicons, make$g);
88829
+ const layerWithLookupTimeout = (lookupTimeoutMs) => effect(Favicons, make$g(lookupTimeoutMs));
88830
+ const layer$h = layerWithLookupTimeout(LOOKUP_TIMEOUT_MS);
88816
88831
  class Scheduler extends Service$1()("hinacode/Scheduler") {
88817
88832
  }
88818
88833
  const LONGEST_NAP_MS = 6e4;
@@ -90406,6 +90421,8 @@ const errorOf = (status, body2, sandboxId) => {
90406
90421
  };
90407
90422
  const boatClient = (input) => {
90408
90423
  const base = input.baseUrl.replace(/\/+$/, "");
90424
+ const pollSeconds = input.pollSeconds ?? WAIT_READY_POLL_SECONDS;
90425
+ const signedRetrySeconds = input.signedRetrySeconds ?? SIGNED_FETCH_RETRY_SECONDS;
90409
90426
  const authorization = () => `Bearer ${value$2(input.apiKey)}`;
90410
90427
  const request2 = (method2, path2, options = {}) => tryPromise({
90411
90428
  try: (signal2) => fetch(`${base}${path2}`, {
@@ -90469,7 +90486,7 @@ const boatClient = (input) => {
90469
90486
  return fail$2(
90470
90487
  new BoatError({ message: `boat sandbox ${id2} did not become ready; last state is ${sandbox.state}` })
90471
90488
  );
90472
- return sleep$3(`${WAIT_READY_POLL_SECONDS} seconds`).pipe(andThen(poll(attempt2 + 1)));
90489
+ return sleep$3(`${pollSeconds} seconds`).pipe(andThen(poll(attempt2 + 1)));
90473
90490
  });
90474
90491
  return poll(1);
90475
90492
  };
@@ -90488,7 +90505,7 @@ const boatClient = (input) => {
90488
90505
  );
90489
90506
  const retrySigned = (once2) => {
90490
90507
  const attempt2 = (index) => catch_(once2, ({ retryable, error: error2 }) => {
90491
- const delay2 = SIGNED_FETCH_RETRY_SECONDS[index];
90508
+ const delay2 = signedRetrySeconds[index];
90492
90509
  return retryable && delay2 !== void 0 ? sleep$3(`${delay2} seconds`).pipe(andThen(attempt2(index + 1))) : fail$2(error2);
90493
90510
  });
90494
90511
  return attempt2(0);
@@ -90707,7 +90724,7 @@ const boatClient = (input) => {
90707
90724
  if (response2.provisioning !== true && candidate.length > 0) return succeed$2(withOverlayZero(candidate));
90708
90725
  if (remaining <= 1)
90709
90726
  return fail$2(new BoatError({ message: "boat desktop is still provisioning. Try again in a moment." }));
90710
- return sleep$3(`${WAIT_READY_POLL_SECONDS} seconds`).pipe(andThen(attempt2(remaining - 1)));
90727
+ return sleep$3(`${pollSeconds} seconds`).pipe(andThen(attempt2(remaining - 1)));
90711
90728
  })
90712
90729
  );
90713
90730
  return attempt2(DESKTOP_MAX_ATTEMPTS);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hinacode",
3
- "version": "0.3.0-alpha.12",
3
+ "version": "0.3.0-alpha.13",
4
4
  "description": "Run coding agents on this machine and drive them from the HinaCode desktop or phone app",
5
5
  "license": "MIT",
6
6
  "repository": {