glimmervoid 0.52.2-next.680 → 0.52.2-next.682

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.
Files changed (100) hide show
  1. package/dist/bin/glimmervoid.js +4 -4
  2. package/dist/chunks/{adapters-DjtWvxmJ.js → adapters-BVZYqHuD.js} +1 -1
  3. package/dist/chunks/{adapters-Cc8ALffl.js → adapters-CIL6g9R2.js} +1 -1
  4. package/dist/chunks/{config-store-Bqag5_2n.js → config-store-Co0IYv_B.js} +47 -9
  5. package/dist/chunks/config-store-CuPthoVo.js +1 -0
  6. package/dist/chunks/{main-mQr6p3Ev.js → main-7iEQ-1lZ.js} +385 -116
  7. package/dist/chunks/{pair-cli-rFzuZV0h.js → pair-cli-Dy0bFL9m.js} +2 -2
  8. package/dist/chunks/{remote-config-C3nVcK84.js → remote-config-qbb1pXRE.js} +1 -1
  9. package/dist/chunks/{settings-cli-Bp7SFXNh.js → settings-cli-BTzrqRKC.js} +2 -2
  10. package/dist/chunks/{settings-readout-core-DhpeT094.js → settings-readout-core-Be3O8D0x.js} +1 -1
  11. package/dist/client/assets/{benchmark-panel-CY0VHbkC.js → benchmark-panel-CeADmzc1.js} +1 -1
  12. package/dist/client/assets/benchmark-panel-CeADmzc1.js.br +0 -0
  13. package/dist/client/assets/{boards-view-B_bSKyat.js → boards-view-B72AQTO3.js} +1 -1
  14. package/dist/client/assets/boards-view-B72AQTO3.js.br +0 -0
  15. package/dist/client/assets/{community-panel-i92fc4IR.js → community-panel-DqzC7L9D.js} +1 -1
  16. package/dist/client/assets/community-panel-DqzC7L9D.js.br +0 -0
  17. package/dist/client/assets/{dialogs-Rk6V83C7.js → dialogs-CYxttI_-.js} +1 -1
  18. package/dist/client/assets/dialogs-CYxttI_-.js.br +0 -0
  19. package/dist/client/assets/{doc-editor-ui-BsVwtyem.js → doc-editor-ui-CUmnGPuA.js} +1 -1
  20. package/dist/client/assets/doc-editor-ui-CUmnGPuA.js.br +0 -0
  21. package/dist/client/assets/{feature-hint-B7CA-mZd.js → feature-hint-CSxFk4_I.js} +1 -1
  22. package/dist/client/assets/feature-hint-CSxFk4_I.js.br +0 -0
  23. package/dist/client/assets/{first-run-checklist-CmgKy8Jx.js → first-run-checklist-Cvy09PVe.js} +1 -1
  24. package/dist/client/assets/first-run-checklist-Cvy09PVe.js.br +0 -0
  25. package/dist/client/assets/{hooks-panel-RR2ZdDf2.js → hooks-panel--CPyMcai.js} +1 -1
  26. package/dist/client/assets/hooks-panel--CPyMcai.js.br +0 -0
  27. package/dist/client/assets/{index-rE4BiGZz.js → index-BJ91HtGW.js} +5 -5
  28. package/dist/client/assets/index-BJ91HtGW.js.br +0 -0
  29. package/dist/client/assets/{issues-panel-CI002Sa4.js → issues-panel-DUcdzzVj.js} +1 -1
  30. package/dist/client/assets/issues-panel-DUcdzzVj.js.br +0 -0
  31. package/dist/client/assets/{lane-read-token-step-B_KgzYQY.js → lane-read-token-step-DafWgu6v.js} +1 -1
  32. package/dist/client/assets/lane-read-token-step-DafWgu6v.js.br +0 -0
  33. package/dist/client/assets/{my-prs-panel-BnX5BWwa.js → my-prs-panel-BxhBLlrC.js} +1 -1
  34. package/dist/client/assets/my-prs-panel-BxhBLlrC.js.br +0 -0
  35. package/dist/client/assets/{nyan-cat-DhXDT3zE.js → nyan-cat-C0SuX0Ul.js} +1 -1
  36. package/dist/client/assets/nyan-cat-C0SuX0Ul.js.br +0 -0
  37. package/dist/client/assets/{phone-shell-C_5TyptC.js → phone-shell-DVuMA67-.js} +1 -1
  38. package/dist/client/assets/phone-shell-DVuMA67-.js.br +0 -0
  39. package/dist/client/assets/{plan-face-DReWFWAO.js → plan-face-DOHTjQIm.js} +1 -1
  40. package/dist/client/assets/plan-face-DOHTjQIm.js.br +0 -0
  41. package/dist/client/assets/{plan-render-DpH9hL6E.js → plan-render-BxqPQmb3.js} +1 -1
  42. package/dist/client/assets/plan-render-BxqPQmb3.js.br +0 -0
  43. package/dist/client/assets/{pr-queue-columns-3w9gLVud.js → pr-queue-columns-DUXJglbf.js} +1 -1
  44. package/dist/client/assets/pr-queue-columns-DUXJglbf.js.br +0 -0
  45. package/dist/client/assets/{radar-panel-8_2t93G1.js → radar-panel-do7jZZzb.js} +1 -1
  46. package/dist/client/assets/radar-panel-do7jZZzb.js.br +0 -0
  47. package/dist/client/assets/{repo-roots-adder-B0wMYrsO.js → repo-roots-adder-Bja_yxRQ.js} +1 -1
  48. package/dist/client/assets/repo-roots-adder-Bja_yxRQ.js.br +0 -0
  49. package/dist/client/assets/{resume-dialog-ukLRYAb4.js → resume-dialog-DbmQjZ54.js} +1 -1
  50. package/dist/client/assets/resume-dialog-DbmQjZ54.js.br +0 -0
  51. package/dist/client/assets/{review-queue-panel-D7EPFEjb.js → review-queue-panel-Bj94aFOM.js} +1 -1
  52. package/dist/client/assets/review-queue-panel-Bj94aFOM.js.br +0 -0
  53. package/dist/client/assets/{session-actions-ByUeN2DK.js → session-actions-Cpe0WcNw.js} +2 -2
  54. package/dist/client/assets/session-actions-Cpe0WcNw.js.br +0 -0
  55. package/dist/client/assets/{session-row-bZ0xZako.js → session-row-Bx0e1IqT.js} +1 -1
  56. package/dist/client/assets/session-row-Bx0e1IqT.js.br +0 -0
  57. package/dist/client/assets/settings-panel-DLFX7wgj.js +4 -0
  58. package/dist/client/assets/settings-panel-DLFX7wgj.js.br +0 -0
  59. package/dist/client/assets/{shown-face-DTH_HMvh.js → shown-face-Dg0-lsQK.js} +1 -1
  60. package/dist/client/assets/shown-face-Dg0-lsQK.js.br +0 -0
  61. package/dist/client/assets/{trace-panel-ws0zMLD_.js → trace-panel-CMGxUa6n.js} +1 -1
  62. package/dist/client/assets/trace-panel-CMGxUa6n.js.br +0 -0
  63. package/dist/client/assets/{usage-panel-D-F5UoXU.js → usage-panel-CH5ByEKC.js} +1 -1
  64. package/dist/client/assets/usage-panel-CH5ByEKC.js.br +0 -0
  65. package/dist/client/assets/{your-day-tip-BW0Kb-tN.js → your-day-tip-BX7i62Mj.js} +1 -1
  66. package/dist/client/assets/your-day-tip-BX7i62Mj.js.br +0 -0
  67. package/dist/client/index.html +3 -3
  68. package/dist/client/index.html.br +0 -0
  69. package/dist/server/index.js +1 -1
  70. package/package.json +1 -1
  71. package/dist/chunks/config-store-BopqXIii.js +0 -1
  72. package/dist/client/assets/benchmark-panel-CY0VHbkC.js.br +0 -0
  73. package/dist/client/assets/boards-view-B_bSKyat.js.br +0 -0
  74. package/dist/client/assets/community-panel-i92fc4IR.js.br +0 -0
  75. package/dist/client/assets/dialogs-Rk6V83C7.js.br +0 -0
  76. package/dist/client/assets/doc-editor-ui-BsVwtyem.js.br +0 -0
  77. package/dist/client/assets/feature-hint-B7CA-mZd.js.br +0 -0
  78. package/dist/client/assets/first-run-checklist-CmgKy8Jx.js.br +0 -0
  79. package/dist/client/assets/hooks-panel-RR2ZdDf2.js.br +0 -0
  80. package/dist/client/assets/index-rE4BiGZz.js.br +0 -0
  81. package/dist/client/assets/issues-panel-CI002Sa4.js.br +0 -0
  82. package/dist/client/assets/lane-read-token-step-B_KgzYQY.js.br +0 -0
  83. package/dist/client/assets/my-prs-panel-BnX5BWwa.js.br +0 -0
  84. package/dist/client/assets/nyan-cat-DhXDT3zE.js.br +0 -0
  85. package/dist/client/assets/phone-shell-C_5TyptC.js.br +0 -0
  86. package/dist/client/assets/plan-face-DReWFWAO.js.br +0 -0
  87. package/dist/client/assets/plan-render-DpH9hL6E.js.br +0 -0
  88. package/dist/client/assets/pr-queue-columns-3w9gLVud.js.br +0 -0
  89. package/dist/client/assets/radar-panel-8_2t93G1.js.br +0 -0
  90. package/dist/client/assets/repo-roots-adder-B0wMYrsO.js.br +0 -0
  91. package/dist/client/assets/resume-dialog-ukLRYAb4.js.br +0 -0
  92. package/dist/client/assets/review-queue-panel-D7EPFEjb.js.br +0 -0
  93. package/dist/client/assets/session-actions-ByUeN2DK.js.br +0 -0
  94. package/dist/client/assets/session-row-bZ0xZako.js.br +0 -0
  95. package/dist/client/assets/settings-panel-BTHxXdtR.js +0 -4
  96. package/dist/client/assets/settings-panel-BTHxXdtR.js.br +0 -0
  97. package/dist/client/assets/shown-face-DTH_HMvh.js.br +0 -0
  98. package/dist/client/assets/trace-panel-ws0zMLD_.js.br +0 -0
  99. package/dist/client/assets/usage-panel-D-F5UoXU.js.br +0 -0
  100. package/dist/client/assets/your-day-tip-BW0Kb-tN.js.br +0 -0
@@ -1,4 +1,4 @@
1
- import { a as showHomeAsTilde, i as sanitizeOneLine, n as requireExecutableSpawnHelper, r as firstLine$1 } from "./node-pty-preflight-DbfWP9Rc.js";
1
+ import { a as showHomeAsTilde, i as sanitizeOneLine, n as requireExecutableSpawnHelper, r as firstLine$2 } from "./node-pty-preflight-DbfWP9Rc.js";
2
2
  import { a as isMissingFileError, r as errorMessage, t as errorCode } from "./text-DoirglWV.js";
3
3
  import { a as packageRoot, c as resolvePackageBin, d as isPathInside, f as safePathSegment, i as clientDir, l as caseFoldedPathKey, n as bundled, o as relayPath, p as sanitizeWorktreeName, r as cliPath, s as resolveFfmpegPath, t as assetRoot, u as equalsIgnoringCaseOnWindows } from "./runtime-paths-CYwF658V.js";
4
4
  import { n as glimmervoidHomeDir, r as isOperatorHomeUnderTest, t as decideConfigPath } from "./config-path-core-DUWk0Lui.js";
@@ -6,7 +6,7 @@ import { $ as Panel, $t as TeamReviewStatus, A as SESSION_NAME_RULE_TEXT, Bt as
6
6
  import { c as runCommandSafely$1, i as execFileSync, l as spawn, n as execFile, r as execFileAsync, s as refuseLaunchesOf, t as assertLaunchable } from "./child-process-safe-BIh8yQ0I.js";
7
7
  import { $t as PlanDecision, A as PrCheckoutCaseInput, At as CoherenceJournalOutput, B as GithubPrLightSearchNode, C as BenchmarkJudgement, Ct as issuePullRequestStateFromGithub, D as CommitComparison, Dt as MAX_RAW_LINE_CHARS, E as BenchmarkSuite, Et as SessionSetup, F as CommunityVerdict, Ft as CLIENT_LOG_TEXT_MAX_CHARS, G as WorkflowsSettings, H as comparablePrKey, I as DISCORD_CHANNEL_NAME_RE, It as CONTROL_FRAME_MAX_BYTES, Jt as PLAN_BODY_CAP_BYTES, K as WorkflowsState, L as SKILL_NAME_RE, M as CommunityDraft, Mt as changeMapFactId, N as CommunityItem, Nt as CHANGES_POLL_INTERVAL_MS, O as MergedPrListing, Ot as TraceCheckpoint, P as CommunityState, Q as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, Qt as PLAN_TOOL_NAME, R as GithubPrDetailNode, Rt as GithubTeam, S as BenchmarkId, St as IssuesStatus, T as BenchmarkStatus, Tt as HookEnvelope, U as WorkflowCommentBody, V as GithubPrsFrame, W as WorkflowLabelName, Wt as pullRequestKeyFromReference, Xt as PLAN_HOOK_OUTPUT_MAX_CHARS, Yt as PLAN_HOOK_EVENT, Zt as PLAN_RESULT_HOOK_EVENT, _ as HINT_FEATURES, _t as GithubIssueResponse, a as ConfigUpdate, b as BenchmarkActionRequest, bt as IssuesSearchResponse, c as SHELL_AGENT_ID, dt as USAGE_INTEGER_RANGES, en as PlanRevision, f as USAGE_COST_MODES, g as FeatureHintState, gt as GithubIssuePullRequestsRepository, h as ClientMessage, j as CommunityActionRequest, jt as ChangeMap, k as MinedPrReviewData, kt as TraceRecord, n as BUILTIN_AGENT_IDS, nn as planTitle, p as USAGE_VENDOR_KEYS, qt as UpdateJournal, r as BrowserConfig, s as RUNTIME_CONFIG_SCALAR_KEYS, tn as parseExitPlanModeHookPayload, u as configIssueMessage, v as HINT_VIEW_BY_FEATURE, vt as IssueKey, w as BenchmarkRun, x as BenchmarkCase, xt as IssuesState, yt as IssueUpdate, z as GithubPrKey } from "./config-C43Ovt64.js";
8
8
  import { $ as supervisionLine, A as parseRefinedSessionName, B as resumePromptFor, C as decideTaskTitleRefinement, D as extractPromptTaskTitle, E as extractOscTaskTitle, F as AUTO_CONTINUE_PROMPT, G as isAutoNameOf, H as claudeProjectsDir, I as RESUME_ID_RE, K as nextSuggestedName, L as isConversationReplacedAtStartup, M as resolveRefocusTaskTitle, N as resolveTaskTitle, O as isSelfWakePrompt, P as seedTaskTitleSources, Q as routeAgentNotes, R as pickAutoResume, S as cleanTaskPrompt, T as extractHookTaskTitle, U as listRepoConversations, V as shouldAdoptReportedResumeId, W as listRepoWorktreePaths, X as permitsHelpCommand, Y as hintFor, Z as promptHintFor, _ as projectReviewDetail, a as checkAgentReply, b as buildTaskTitleRefinementPrompt, c as deriveChildSessionName, d as describePushLanding, et as toolHookFactsOf, f as describeRoleRefusal, g as projectMyPrs, h as parseAgentVerb, j as parseRefinedTaskTitle, k as isSubstantivePrompt, l as describeChildEndNote, n as REFUSAL_REASON, o as decideAgentRequest, p as describeUnpushedCloseRefusal, q as describeSessionLimits, s as decideSpawnAllowance, u as describeKeptChildAttention, v as projectReviews, w as extractAiTitle, x as chooseRefinedSessionName, y as buildPersistedTaskTitle, z as resolveResumeTarget } from "./agent-api-core-BxJOL6Ye.js";
9
- import { a as rawTextOr, i as positiveNumberOr, n as isRecord$1, o as textOr, r as numberOr, t as coercedNumberOr } from "./coerce-oz_Z_6E7.js";
9
+ import { a as rawTextOr, i as positiveNumberOr, n as isRecord$2, o as textOr, r as numberOr, t as coercedNumberOr } from "./coerce-oz_Z_6E7.js";
10
10
  import { i as parseCommandLine, n as warnWhenGitIsTooOld } from "./git-version-BfOQqktJ.js";
11
11
  import { t as HOOK_URL_ENV } from "./hook-relay-core-DA_bz2KA.js";
12
12
  import { n as promptContextReplyOf, o as toolHookContextReplyOf, r as refocusReplyFor, t as REFOCUS_NOTE } from "./refocus-core-tjJsDDKL.js";
@@ -17,15 +17,15 @@ import { _ as findDependencyCycle, a as filesAfterRetention, c as readPageTitle,
17
17
  import { a as mcpLaunchFor, o as parsePresentedCredential } from "./agent-config-DDpOIcFv.js";
18
18
  import { n as shellQuote } from "./hook-command-core-qTNK-xMF.js";
19
19
  import { C as parseCgroupBytes, D as DEFAULT_MAX_MS, E as DEFAULT_BASE_MS, O as nextBackoffMs, S as memoryReserveBytes, T as parseMemAvailableBytes, _ as createSpawnGate, a as jsonStateLoadError, b as cgroupLimitBytes, c as loadedJsonValue, d as writeJsonAtomicSync, g as createSerialQueue, h as createMemoryAdmission, i as createJsonStateWriter, m as createKeyedSerialQueue, n as appendJsonLines, o as loadJsonStateFile, p as writeTextAtomicSync, r as createJsonStateStore, s as loadJsonStateFileSync, t as appendJsonLine, u as writeJsonAtomic, v as isQueueAdmissionTimeout, w as parseCgroupV2Path, x as headroomFromReadings, y as cgroupAncestorPaths } from "./json-file-AKRVPqG1.js";
20
- import { $ as buildAiGenerationEvents, Ct as isSameDirectoryPath, D as settingsBlockSpecFor, E as mergeSettingsBlock, G as LOGGED_FAST_CLOSE_COUNTS, H as isExperimentalSetting, J as parseDataClientMessage, K as describeDataAttach, O as validateSettingsBlock, Q as adapterBucket, St as comparableDirectoryPath, U as DEEP_HISTORY_SCROLLBACK_LINES, X as TELEMETRY_BATCH_URL, Y as FIRST_RUN_NOTICE, Z as TELEMETRY_FLAGS_URL, _ as sessionIdFromBranch, a as generateProjectId, at as codexUserIdOf, b as DEFAULT_TIMER_FNS, ct as decideTelemetryConsent, d as DEFAULT_CONFIG, dt as parsePosthogReleaseId, et as buildBrowserExceptionProperties, f as DEFAULT_BRANCH_GC_PREFIXES, ft as resolveProjectToken, g as planWorktreeGc, gt as TelemetryState, h as planBranchGc, ht as TELEMETRY_EVENT_SCHEMAS, i as ensureProjectIds, it as claudeAccountUuidOf, k as SETTINGS_INDEX, lt as exceptionFingerprint, m as matchedPrefix, mt as PendingCrashReport, n as createConfigStore, nt as buildPersonProperties, o as glimmervoidHomeDir$1, ot as decideIsDevInstall, p as isGcCandidateWorktree, pt as DashboardTelemetryReport, q as parseDataAttach, r as ABORT_CONFIG_SAVE, rt as classifySessionExit, st as decideRemoteTelemetryState, tt as buildExceptionProperties, ut as nodeMajorVersion, v as usablePrefixes, x as unrefTimer, xt as canonicalizePath, y as worktreeIntegrationTips, yt as stableConfigKey, z as valueAtPath } from "./config-store-Bqag5_2n.js";
21
- import { i as resolveArgvCommandMatches } from "./kimi-DjNUuBkC.js";
22
- import { $ as grokHomes, A as decideUploadType, At as generateToken, B as containmentRefusalReason, Bt as readStoredHooks, C as parseRegistryLatest, Ct as shouldReplace, D as openContainedFile, Dt as HOOK_EVENTS, E as shortSha$1, Et as claudeCode, F as planUploadRetention, Ft as agentHookGroupOf, G as codexFallbackRoots, Gt as sweepOrphanedHostScratch, H as planContiguousRead, Ht as upsertHook, I as MAX_TRANSCRIPT_READ_BYTES, It as appendUserHooks, J as codexSessionIdFromPath, Jt as recordSweptPath, K as codexHomes, Kt as appendRemovalRecord, L as TRACE_TAIL_SCAN_BYTES, Lt as hooksForProject, M as framePathPaste, Mt as writeSessionSettings, N as imageMimeForUploadFilename, Nt as HOOK_EVENT_CATALOG, O as MAX_UPLOAD_BYTES, Ot as PLAN_HOLD_RELEASE_MS, P as isSafePathSegment, Pt as ID_RE, Q as expandTilde, R as committedOffsetFromTraceTailOrNull, Rt as normalizeHook, S as parseRegistryDeprecation, St as parseUsageLine, T as pickNewestPublished, Tt as vendorUsageEntry, U as resumeOffsetFrom, Ut as HOOK_TOOLS, V as isOversizedPartialLine, Vt as removeHook, W as withCommittedOffset, Wt as makeHostScratchDirectory, X as decideFileRead, Y as continuationDelayMs, Yt as removalsJournalPath, Z as dedupeCodexFiles, _ as decideInstallFlavor, _t as foldReplacementIntoGenerationRollup, a as describeAgentResolvability, at as scopedClaudeRoots, b as normalizeSha, bt as mergeGenerationRollups, c as isKnownAgentId, ct as shouldPersistWarehouse, d as resolveAdapter, dt as parseKimiUsageLine, et as isUsageFile, f as setCustomAgents, ft as addEntryToTotals, g as NODE_PTY_INSTALL_SCRIPT_FLAG, gt as foldEntryIntoGenerationRollup, h as requestCodexAppServer, ht as expandAdvisorIterations, i as customAgentFingerprint, it as resolveProjectsDirs, j as exceedsUploadCap, jt as sweepOrphans, k as buildUploadFilename, kt as buildHookSettings, l as listAgentIds, lt as splitLines, m as readHostCodexVersion, mt as emptyTotals, n as cachedAgentResolvability, nt as passOutcome, o as getAdapter, ot as sessionsRootCandidates, p as codex, pt as dedupKeys, q as codexRootCandidates, qt as appendRemovalRecordSync, r as commandFor, rt as projectDirCandidates, s as hookProfileOf, st as shouldEvaluateDespiteIoFailures, t as DEFAULT_AGENT_ID$1, tt as kimiHomes, u as resetCommandCache, ut as kimiDedupIdentity, v as decideUpdateStatus, vt as identityFromRelPath, w as parseResolvedSha, wt as totalTokensOf$1, x as normalizeUpdateChannel, xt as parseJsonLine, y as isCheckFresh, yt as isWithinGenerationRecencyWindow, z as completeLineBytes, zt as rawStoredHooks } from "./adapters-Cc8ALffl.js";
20
+ import { $ as TELEMETRY_BATCH_URL, D as settingsBlockSpecFor, E as mergeSettingsBlock, Et as isSameDirectoryPath, G as EFFORT_OPTION_ID, H as isExperimentalSetting, J as LOGGED_FAST_CLOSE_COUNTS, K as DEEP_HISTORY_SCROLLBACK_LINES, O as validateSettingsBlock, Q as FIRST_RUN_NOTICE, St as stableConfigKey, Tt as comparableDirectoryPath, U as CATALOG_AGENT_IDS, W as DEFAULT_MODELS, X as parseDataAttach, Y as describeDataAttach, Z as parseDataClientMessage, _ as sessionIdFromBranch, _t as PendingCrashReport, a as generateProjectId, at as buildPersonProperties, b as DEFAULT_TIMER_FNS, ct as codexUserIdOf, d as DEFAULT_CONFIG, dt as decideTelemetryConsent, et as TELEMETRY_FLAGS_URL, f as DEFAULT_BRANCH_GC_PREFIXES, ft as exceptionFingerprint, g as planWorktreeGc, gt as DashboardTelemetryReport, h as planBranchGc, ht as resolveProjectToken, i as ensureProjectIds, it as buildExceptionProperties, k as SETTINGS_INDEX, lt as decideIsDevInstall, m as matchedPrefix, mt as parsePosthogReleaseId, n as createConfigStore, nt as buildAiGenerationEvents, o as glimmervoidHomeDir$1, ot as classifySessionExit, p as isGcCandidateWorktree, pt as nodeMajorVersion, r as ABORT_CONFIG_SAVE, rt as buildBrowserExceptionProperties, st as claudeAccountUuidOf, tt as adapterBucket, ut as decideRemoteTelemetryState, v as usablePrefixes, vt as TELEMETRY_EVENT_SCHEMAS, wt as canonicalizePath, x as unrefTimer, y as worktreeIntegrationTips, yt as TelemetryState, z as valueAtPath } from "./config-store-Co0IYv_B.js";
21
+ import { i as resolveArgvCommandMatches, t as kimi } from "./kimi-DjNUuBkC.js";
22
+ import { $ as grokHomes, A as decideUploadType, At as generateToken, B as containmentRefusalReason, Bt as readStoredHooks, C as parseRegistryLatest, Ct as shouldReplace, D as openContainedFile, Dt as HOOK_EVENTS, E as shortSha$1, Et as claudeCode, F as planUploadRetention, Ft as agentHookGroupOf, G as codexFallbackRoots, Gt as sweepOrphanedHostScratch, H as planContiguousRead, Ht as upsertHook, I as MAX_TRANSCRIPT_READ_BYTES, It as appendUserHooks, J as codexSessionIdFromPath, Jt as recordSweptPath, K as codexHomes, Kt as appendRemovalRecord, L as TRACE_TAIL_SCAN_BYTES, Lt as hooksForProject, M as framePathPaste, Mt as writeSessionSettings, N as imageMimeForUploadFilename, Nt as HOOK_EVENT_CATALOG, O as MAX_UPLOAD_BYTES, Ot as PLAN_HOLD_RELEASE_MS, P as isSafePathSegment, Pt as ID_RE, Q as expandTilde, R as committedOffsetFromTraceTailOrNull, Rt as normalizeHook, S as parseRegistryDeprecation, St as parseUsageLine, T as pickNewestPublished, Tt as vendorUsageEntry, U as resumeOffsetFrom, Ut as HOOK_TOOLS, V as isOversizedPartialLine, Vt as removeHook, W as withCommittedOffset, Wt as makeHostScratchDirectory, X as decideFileRead, Y as continuationDelayMs, Yt as removalsJournalPath, Z as dedupeCodexFiles, _ as decideInstallFlavor, _t as foldReplacementIntoGenerationRollup, a as describeAgentResolvability, at as scopedClaudeRoots, b as normalizeSha, bt as mergeGenerationRollups, c as isKnownAgentId, ct as shouldPersistWarehouse, d as resolveAdapter, dt as parseKimiUsageLine, et as isUsageFile, f as setCustomAgents, ft as addEntryToTotals, g as NODE_PTY_INSTALL_SCRIPT_FLAG, gt as foldEntryIntoGenerationRollup, h as requestCodexAppServer, ht as expandAdvisorIterations, i as customAgentFingerprint, it as resolveProjectsDirs, j as exceedsUploadCap, jt as sweepOrphans, k as buildUploadFilename, kt as buildHookSettings, l as listAgentIds, lt as splitLines, m as readHostCodexVersion, mt as emptyTotals, n as cachedAgentResolvability, nt as passOutcome, o as getAdapter, ot as sessionsRootCandidates, p as codex, pt as dedupKeys, q as codexRootCandidates, qt as appendRemovalRecordSync, r as commandFor, rt as projectDirCandidates, s as hookProfileOf, st as shouldEvaluateDespiteIoFailures, t as DEFAULT_AGENT_ID$1, tt as kimiHomes, u as resetCommandCache, ut as kimiDedupIdentity, v as decideUpdateStatus, vt as identityFromRelPath, w as parseResolvedSha, wt as totalTokensOf$1, x as normalizeUpdateChannel, xt as parseJsonLine$1, y as isCheckFresh, yt as isWithinGenerationRecencyWindow, z as completeLineBytes, zt as rawStoredHooks } from "./adapters-CIL6g9R2.js";
23
23
  import { c as CODEX_HOME_PROFILE, l as KIMI_HOME_PROFILE } from "./agent-home-core-BGvFYDNV.js";
24
24
  import { d as releaseSessionLock, f as sessionIdOfLockFile, l as releaseUnheldAgentHomeSecrets, n as generatedAgentHomePath, p as trashSessionTempFolderOnceUnheld, s as realAgentHome, u as createHeldSessionTempFolder } from "./agent-home-Bt3Itm9c.js";
25
25
  import { a as formatSshPublicKey, c as orderAgentSockets, i as commitSigningShimText, l as parseSshPublicKey, n as NO_AGENT_HOLDS_KEY, o as isForwardedAgentDirName, r as agentListsKey, s as isSignableGitObject, t as COMMIT_SIGNING_SHIM_NAME, u as wellKnownAgentSocketPaths } from "./ssh-signing-core-BbhBpAhR.js";
26
- import { a as configSiblingPath, c as defaultPairingsPath, d as decideDeviceAuth, f as deviceNameFromUserAgent, l as defaultSeenPath, n as normalizeRemoteConfig, o as createPairingsStore, p as hashSecret, r as validateRemoteConfig, s as createSeenStore, t as decideBindHost, u as DEFAULT_DEVICE_MAX_AGE_MS } from "./remote-config-C3nVcK84.js";
26
+ import { a as configSiblingPath, c as defaultPairingsPath, d as decideDeviceAuth, f as deviceNameFromUserAgent, l as defaultSeenPath, n as normalizeRemoteConfig, o as createPairingsStore, p as hashSecret, r as validateRemoteConfig, s as createSeenStore, t as decideBindHost, u as DEFAULT_DEVICE_MAX_AGE_MS } from "./remote-config-qbb1pXRE.js";
27
27
  import { A as withPrActionRun, C as teammateThreadItems, D as withHandled, E as visibleRun, M as withRuleRun, O as withInterruptedRuns, S as sourceCandidates$1, T as unknownActionWarnings, a as branchMovedNote, b as savedRuleFor, c as fixLocallyPrompt, d as mergeItems, g as prActionsForRepo, h as prActionRunAfterExit, i as acceptReport, j as withReopened, k as withOnlyOpenPrs, l as flaggingReviewers, m as plannedActions, n as loadPacks, o as commandFingerprint, p as packPathsOf, t as createPrFlowsExternal, u as itemLocation, v as prFlowRules, w as threadCandidates, x as shouldTellBranchMoved, y as prFlowSetup } from "./pr-flows-external-CbLPEQzZ.js";
28
- import { n as configFileViewOf, u as readSettingsForAgent } from "./settings-readout-core-DhpeT094.js";
28
+ import { n as configFileViewOf, u as readSettingsForAgent } from "./settings-readout-core-Be3O8D0x.js";
29
29
  import { createRequire } from "node:module";
30
30
  import fs, { readFileSync } from "node:fs";
31
31
  import path, { join, resolve } from "node:path";
@@ -4151,6 +4151,170 @@ function parseThreadJudgeResult(raw) {
4151
4151
  return parsed.success ? parsed.data : null;
4152
4152
  }
4153
4153
  //#endregion
4154
+ //#region shared/agent-models-core.ts
4155
+ var CLAUDE_DEFAULT_POINTER = "default";
4156
+ var CODEX_HIDDEN_VISIBILITY = "hide";
4157
+ var EFFORT_LABEL = "Effort";
4158
+ function isRecord$1(value) {
4159
+ return typeof value === "object" && value !== null && !Array.isArray(value);
4160
+ }
4161
+ function trimmedText(value) {
4162
+ if (typeof value !== "string") return null;
4163
+ const trimmed = value.trim();
4164
+ return trimmed === "" ? null : trimmed;
4165
+ }
4166
+ function textList(value) {
4167
+ if (!Array.isArray(value)) return [];
4168
+ return value.map(trimmedText).filter((text) => text !== null);
4169
+ }
4170
+ function effortOption(choices, defaultChoice) {
4171
+ if (choices.length === 0) return [];
4172
+ return [{
4173
+ id: EFFORT_OPTION_ID,
4174
+ label: EFFORT_LABEL,
4175
+ choices,
4176
+ defaultChoice: defaultChoice !== null && choices.includes(defaultChoice) ? defaultChoice : null
4177
+ }];
4178
+ }
4179
+ function parseJsonLine(line) {
4180
+ try {
4181
+ return JSON.parse(line);
4182
+ } catch {
4183
+ return null;
4184
+ }
4185
+ }
4186
+ function claudeInitializeModels(streamJsonOutput) {
4187
+ for (const line of streamJsonOutput.split(/\r?\n/)) {
4188
+ const message = parseJsonLine(line);
4189
+ if (!isRecord$1(message) || message.type !== "control_response" || !isRecord$1(message.response)) continue;
4190
+ const initialize = message.response.response;
4191
+ if (isRecord$1(initialize) && Array.isArray(initialize.models)) return initialize.models;
4192
+ }
4193
+ return null;
4194
+ }
4195
+ function addClaudeEntry(modelsById, defaultIds, entry) {
4196
+ if (!isRecord$1(entry)) return;
4197
+ const alias = trimmedText(entry.value);
4198
+ if (alias === null) return;
4199
+ const id = trimmedText(entry.resolvedModel) ?? alias;
4200
+ if (alias === CLAUDE_DEFAULT_POINTER) {
4201
+ defaultIds.add(id);
4202
+ return;
4203
+ }
4204
+ const existing = modelsById.get(id);
4205
+ if (existing) {
4206
+ if (alias !== id && !existing.aliases.includes(alias)) existing.aliases.push(alias);
4207
+ return;
4208
+ }
4209
+ const efforts = entry.supportsEffort === true ? textList(entry.supportedEffortLevels) : [];
4210
+ modelsById.set(id, {
4211
+ id,
4212
+ label: trimmedText(entry.displayName) ?? id,
4213
+ aliases: alias === id ? [] : [alias],
4214
+ isDefault: false,
4215
+ options: effortOption(efforts, null)
4216
+ });
4217
+ }
4218
+ function parseClaudeInitialize(streamJsonOutput) {
4219
+ const entries = claudeInitializeModels(streamJsonOutput);
4220
+ if (entries === null) return null;
4221
+ const modelsById = /* @__PURE__ */ new Map();
4222
+ const defaultIds = /* @__PURE__ */ new Set();
4223
+ for (const entry of entries) addClaudeEntry(modelsById, defaultIds, entry);
4224
+ return [...modelsById.values()].map((model) => ({
4225
+ ...model,
4226
+ isDefault: defaultIds.has(model.id)
4227
+ }));
4228
+ }
4229
+ function codexModel(entry) {
4230
+ if (!isRecord$1(entry) || entry.visibility === CODEX_HIDDEN_VISIBILITY) return null;
4231
+ const id = trimmedText(entry.slug);
4232
+ if (id === null) return null;
4233
+ const efforts = (Array.isArray(entry.supported_reasoning_levels) ? entry.supported_reasoning_levels : []).map((level) => isRecord$1(level) ? trimmedText(level.effort) : null).filter((effort) => effort !== null);
4234
+ return {
4235
+ id,
4236
+ label: trimmedText(entry.display_name) ?? id,
4237
+ aliases: [],
4238
+ isDefault: false,
4239
+ options: effortOption(efforts, trimmedText(entry.default_reasoning_level))
4240
+ };
4241
+ }
4242
+ function parseCodexModels(debugModelsOutput) {
4243
+ const parsed = parseJsonLine(debugModelsOutput);
4244
+ if (!isRecord$1(parsed) || !Array.isArray(parsed.models)) return null;
4245
+ return parsed.models.map(codexModel).filter((model) => model !== null).map((model, index) => ({
4246
+ ...model,
4247
+ isDefault: index === 0
4248
+ }));
4249
+ }
4250
+ var TOML_MODELS_HEADER = /^\[\s*models\.(?:"([^"]+)"|'([^']+)'|([A-Za-z0-9_-]+))\s*\]\s*(?:#.*)?$/;
4251
+ var TOML_STRING_KEY = /^([A-Za-z_]+)\s*=\s*(?:"([^"]*)"|'([^']*)')\s*(?:#.*)?$/;
4252
+ function parseKimiModels(configToml) {
4253
+ const models = [];
4254
+ let defaultModelId = null;
4255
+ let currentModel = null;
4256
+ let hasUnreadModelTable = false;
4257
+ for (const rawLine of configToml.split(/\r?\n/)) {
4258
+ const line = rawLine.trim();
4259
+ const header = TOML_MODELS_HEADER.exec(line);
4260
+ if (header) {
4261
+ const id = header[1] ?? header[2] ?? header[3];
4262
+ currentModel = {
4263
+ id,
4264
+ label: id,
4265
+ aliases: [],
4266
+ isDefault: false,
4267
+ options: []
4268
+ };
4269
+ models.push(currentModel);
4270
+ continue;
4271
+ }
4272
+ if (line.startsWith("[")) {
4273
+ hasUnreadModelTable ||= /^\[\s*models\./.test(line);
4274
+ currentModel = null;
4275
+ continue;
4276
+ }
4277
+ const keyValue = TOML_STRING_KEY.exec(line);
4278
+ if (!keyValue) continue;
4279
+ const key = keyValue[1];
4280
+ const value = keyValue[2] ?? keyValue[3];
4281
+ if (currentModel === null && key === "default_model") defaultModelId = value;
4282
+ if (currentModel !== null && key === "display_name" && value.trim() !== "") currentModel.label = value.trim();
4283
+ }
4284
+ if (models.length === 0 && hasUnreadModelTable) return null;
4285
+ return models.map((model) => ({
4286
+ ...model,
4287
+ isDefault: model.id === defaultModelId
4288
+ }));
4289
+ }
4290
+ function optionValue(selection, optionId) {
4291
+ return selection.options.find((option) => option.id === optionId)?.value ?? null;
4292
+ }
4293
+ var FLAGS_BY_AGENT = Object.freeze({
4294
+ "claude-code": (model, effort) => [...model ? ["--model", model] : [], ...effort ? ["--effort", effort] : []],
4295
+ codex: (model, effort) => [...model ? ["-m", model] : [], ...effort ? ["-c", `model_reasoning_effort=${effort}`] : []],
4296
+ kimi: (model) => model ? ["-m", model] : []
4297
+ });
4298
+ function selectionArgs(selection) {
4299
+ if (selection === null) return [];
4300
+ const buildFlags = FLAGS_BY_AGENT[selection.agent];
4301
+ if (!buildFlags) return [];
4302
+ return buildFlags(selection.model, optionValue(selection, EFFORT_OPTION_ID));
4303
+ }
4304
+ function choiceSelection(agent, choice) {
4305
+ const model = trimmedText(choice?.model);
4306
+ const effort = trimmedText(choice?.effort);
4307
+ if (model === null && effort === null) return null;
4308
+ return {
4309
+ agent,
4310
+ model,
4311
+ options: effort === null ? [] : [{
4312
+ id: EFFORT_OPTION_ID,
4313
+ value: effort
4314
+ }]
4315
+ };
4316
+ }
4317
+ //#endregion
4154
4318
  //#region server/github/core/github-teams-core.ts
4155
4319
  function readGithubTeams(config) {
4156
4320
  const configuredTeams = config.github?.teams;
@@ -4366,9 +4530,9 @@ function urlHostname(value) {
4366
4530
  }
4367
4531
  }
4368
4532
  function findPosthogServer(servers) {
4369
- if (!isRecord$1(servers)) return null;
4533
+ if (!isRecord$2(servers)) return null;
4370
4534
  for (const [name, entry] of Object.entries(servers)) {
4371
- if (!MCP_SERVER_NAME_RE.test(name) || !isRecord$1(entry)) continue;
4535
+ if (!MCP_SERVER_NAME_RE.test(name) || !isRecord$2(entry)) continue;
4372
4536
  if (urlHostname(entry.url) === POSTHOG_MCP_HOST) return {
4373
4537
  name,
4374
4538
  entry
@@ -4381,7 +4545,7 @@ function laneMcpConfig(server) {
4381
4545
  }
4382
4546
  function codexMcpServers(mcpListOutput) {
4383
4547
  if (!Array.isArray(mcpListOutput)) return {};
4384
- const enabledServers = mcpListOutput.filter((server) => isRecord$1(server) && server.enabled === true && typeof server.name === "string" && isRecord$1(server.transport));
4548
+ const enabledServers = mcpListOutput.filter((server) => isRecord$2(server) && server.enabled === true && typeof server.name === "string" && isRecord$2(server.transport));
4385
4549
  return Object.fromEntries(enabledServers.map((server) => [server.name, server.transport]));
4386
4550
  }
4387
4551
  function gatedPosthogTool({ server, gatePath, interpreterPath }) {
@@ -5226,8 +5390,8 @@ function readReviewerChoice(block, inheritedLegacyAgent) {
5226
5390
  effort
5227
5391
  };
5228
5392
  }
5229
- function reviewerAgentArgs({ model, effort }) {
5230
- return [...model ? ["--model", model] : [], ...effort ? ["--effort", effort] : []];
5393
+ function reviewerAgentArgs(reviewer) {
5394
+ return selectionArgs(choiceSelection("claude-code", reviewer));
5231
5395
  }
5232
5396
  function reviewerFor(settings, tier) {
5233
5397
  if (tier === "stamp" && settings.stampReviewer) return settings.stampReviewer;
@@ -5248,7 +5412,7 @@ function readTeamReviewSettings(config) {
5248
5412
  skill: typeof block?.skill === "string" ? block.skill.trim() : "",
5249
5413
  reviewer,
5250
5414
  stampReviewer: readReviewerChoice(block?.stampReviewer, legacyAgentOf(block?.reviewer)),
5251
- loadMcpServers: isRecord$1(sandbox) && sandbox.loadMcpServers === true,
5415
+ loadMcpServers: isRecord$2(sandbox) && sandbox.loadMcpServers === true,
5252
5416
  autoRebaseMyPrs: block?.autoRebaseMyPrs === true
5253
5417
  };
5254
5418
  }
@@ -7954,9 +8118,9 @@ async function readChangeFacts(buildChangeMap) {
7954
8118
  //#endregion
7955
8119
  //#region server/core/whiteboard-store-core.ts
7956
8120
  function elementWithMediaForImage(element) {
7957
- if (!isRecord$1(element) || !("image" in element)) return element;
8121
+ if (!isRecord$2(element) || !("image" in element)) return element;
7958
8122
  const { image, ...elementWithoutImage } = element;
7959
- if (!isRecord$1(image)) return {
8123
+ if (!isRecord$2(image)) return {
7960
8124
  ...elementWithoutImage,
7961
8125
  media: null
7962
8126
  };
@@ -7971,8 +8135,8 @@ function elementWithMediaForImage(element) {
7971
8135
  };
7972
8136
  }
7973
8137
  function boardRecordWithMediaForImages(raw) {
7974
- const board = isRecord$1(raw) ? raw.board : null;
7975
- if (!isRecord$1(raw) || !isRecord$1(board) || !isRecord$1(board.elements)) return raw;
8138
+ const board = isRecord$2(raw) ? raw.board : null;
8139
+ if (!isRecord$2(raw) || !isRecord$2(board) || !isRecord$2(board.elements)) return raw;
7976
8140
  const elements = Object.fromEntries(Object.entries(board.elements).map(([elementId, element]) => [elementId, elementWithMediaForImage(element)]));
7977
8141
  return {
7978
8142
  ...raw,
@@ -9222,9 +9386,9 @@ function parseTsconfigJsonc(sourceText) {
9222
9386
  const cleaned = cleanJsonc(sourceText);
9223
9387
  if (cleaned === null) return null;
9224
9388
  const config = JSON.parse(cleaned);
9225
- if (!isRecord$1(config)) return null;
9226
- const compilerOptions = isRecord$1(config.compilerOptions) ? config.compilerOptions : {};
9227
- const paths = isRecord$1(compilerOptions.paths) ? Object.fromEntries(Object.entries(compilerOptions.paths).filter((entry) => isStringArray(entry[1]))) : null;
9389
+ if (!isRecord$2(config)) return null;
9390
+ const compilerOptions = isRecord$2(config.compilerOptions) ? config.compilerOptions : {};
9391
+ const paths = isRecord$2(compilerOptions.paths) ? Object.fromEntries(Object.entries(compilerOptions.paths).filter((entry) => isStringArray(entry[1]))) : null;
9228
9392
  return {
9229
9393
  extendsPath: typeof config.extends === "string" && (config.extends.startsWith("./") || config.extends.startsWith("../")) ? config.extends : null,
9230
9394
  baseUrl: typeof compilerOptions.baseUrl === "string" ? compilerOptions.baseUrl : null,
@@ -9527,7 +9691,7 @@ function readPackageManifest(text) {
9527
9691
  if (text === null) return null;
9528
9692
  try {
9529
9693
  const manifest = JSON.parse(text);
9530
- if (!isRecord$1(manifest)) return null;
9694
+ if (!isRecord$2(manifest)) return null;
9531
9695
  const dependencies = [];
9532
9696
  for (const field of [
9533
9697
  "dependencies",
@@ -9536,7 +9700,7 @@ function readPackageManifest(text) {
9536
9700
  "optionalDependencies"
9537
9701
  ]) {
9538
9702
  const group = manifest[field];
9539
- if (!isRecord$1(group)) continue;
9703
+ if (!isRecord$2(group)) continue;
9540
9704
  for (const [packageName, spec] of Object.entries(group)) if (typeof spec === "string") dependencies.push([packageName, spec]);
9541
9705
  }
9542
9706
  return {
@@ -21284,7 +21448,7 @@ function createSessionBackgroundTracking({ detectBackgroundAgents, agentTtlMs, s
21284
21448
  const ts = raw.ts || Date.now();
21285
21449
  if (raw.signal === "wakeup-scheduled") {
21286
21450
  const toolInput = payload.tool_input;
21287
- const input = isRecord$1(toolInput) ? toolInput : {};
21451
+ const input = isRecord$2(toolInput) ? toolInput : {};
21288
21452
  if (input.stop === true) {
21289
21453
  if (removeWakeup(wakeups, SCHEDULED_WAKEUP_KEY)) emitWakeupChange();
21290
21454
  return;
@@ -23975,7 +24139,7 @@ async function prepareCodexLaneMcp(listCodexServers, gatePath, warn) {
23975
24139
  }
23976
24140
  async function prepareKimiLaneMcp(kimiHome, gatePath, warn) {
23977
24141
  const kimiMcpConfig = await fs$1.readFile(path.join(kimiHome, "mcp.json"), "utf8").then(JSON.parse, () => null);
23978
- const server = findPosthogServer(isRecord$1(kimiMcpConfig) ? kimiMcpConfig.mcpServers : null);
24142
+ const server = findPosthogServer(isRecord$2(kimiMcpConfig) ? kimiMcpConfig.mcpServers : null);
23979
24143
  if (!server) return null;
23980
24144
  const posture = kimiLaneMcpPosture({
23981
24145
  server,
@@ -24001,7 +24165,7 @@ async function prepareLaneMcp({ laneArgs, agent }, { readClaudeConfig = readOper
24001
24165
  if (agent === KIMI_AGENT_ID$2) return prepareKimiLaneMcp(kimiHome, gatePath, warn);
24002
24166
  if (agent !== void 0 && agent !== DEFAULT_AGENT_ID) return null;
24003
24167
  const claudeConfig = await readClaudeConfig().catch(() => null);
24004
- const server = findPosthogServer(isRecord$1(claudeConfig) ? claudeConfig.mcpServers : null);
24168
+ const server = findPosthogServer(isRecord$2(claudeConfig) ? claudeConfig.mcpServers : null);
24005
24169
  if (!server) return null;
24006
24170
  const configDirectory = await makeHostScratchDirectory(LANE_MCP_DIR_PREFIX);
24007
24171
  const removeConfigDirectory = () => fs$1.rm(configDirectory, {
@@ -24085,16 +24249,21 @@ function headlessPromptLaunch(agent, prompt) {
24085
24249
  initialPrompt: prompt
24086
24250
  };
24087
24251
  }
24088
- function laneAgentArgs({ isClaude, isCodex, extraArgs, model, postureArgs, standaloneArgs }) {
24252
+ function laneAgentArgs({ agent, isClaude, isCodex, extraArgs, model, postureArgs, standaloneArgs }) {
24253
+ const modelArgs = selectionArgs(choiceSelection(isClaude ? DEFAULT_AGENT_ID$1 : agent, { model }));
24089
24254
  if (isClaude) return [
24090
24255
  "-p",
24091
24256
  ...postureArgs,
24092
24257
  ...extraArgs,
24093
24258
  ...standaloneArgs,
24094
- ...model ? ["--model", model] : []
24259
+ ...modelArgs
24260
+ ];
24261
+ if (isCodex) return [
24262
+ ...CODEX_READ_ONLY_ARGS,
24263
+ ...extraArgs,
24264
+ ...modelArgs
24095
24265
  ];
24096
- if (isCodex) return [...CODEX_READ_ONLY_ARGS, ...extraArgs];
24097
- return [...extraArgs];
24266
+ return [...extraArgs, ...modelArgs];
24098
24267
  }
24099
24268
  function createLaneSpawn({ sessions = /* @__PURE__ */ new Map(), closeSessionDataClients = () => {}, hookRouter = null, getHookPort = null, spawnGate = null, replayBufferKB = void 0, recordLane = null, laneName, getSaneYoloUnreadablePaths, allowTools = [], createSession = (options) => new Session(options), settingsPermissions, spawnEnv = null, prepareMcp = prepareLaneMcp, getLaneAccessConfig = () => CLOSED_LANE_ACCESS_CONFIG }) {
24100
24269
  return async function spawnLaneSession({ id, name, prompt, cwd, agent = DEFAULT_AGENT_ID$1, extraArgs = [], model = null, signal = null, onOutput }) {
@@ -24135,6 +24304,7 @@ function createLaneSpawn({ sessions = /* @__PURE__ */ new Map(), closeSessionDat
24135
24304
  const promptLaunch = headlessPromptLaunch(agent, prompt);
24136
24305
  const agentExtraArgs = isCodex && laneMcp ? [...extraArgs, ...laneMcp.posture.args] : extraArgs;
24137
24306
  const extraClaudeArgs = laneAgentArgs({
24307
+ agent,
24138
24308
  isClaude,
24139
24309
  isCodex,
24140
24310
  extraArgs: agentExtraArgs,
@@ -24359,7 +24529,7 @@ function firstIssue(error) {
24359
24529
  if (!issue) return "unreadable";
24360
24530
  return issue.path.length > 0 ? `${issue.path.map(String).join(".")}: ${issue.message}` : issue.message;
24361
24531
  }
24362
- function firstLine(text) {
24532
+ function firstLine$1(text) {
24363
24533
  return text.split(/\r?\n/).find((line) => line.trim() !== "")?.trim() ?? "";
24364
24534
  }
24365
24535
  function runArmCommandSafely(command, args, options) {
@@ -24446,7 +24616,7 @@ function createBenchmarkWiring({ benchmarksRoot, runsRoot, isEnabled, broadcast,
24446
24616
  await fs$1.rm(directory, {
24447
24617
  recursive: true,
24448
24618
  force: true
24449
- }).catch((error) => log.warn(`[${BENCHMARK_LANE_ID}] could not remove ${directory}: ${firstLine(errorMessage(error))}`));
24619
+ }).catch((error) => log.warn(`[${BENCHMARK_LANE_ID}] could not remove ${directory}: ${firstLine$1(errorMessage(error))}`));
24450
24620
  }
24451
24621
  function currentStatus() {
24452
24622
  return BenchmarkStatus.parse({
@@ -24631,7 +24801,7 @@ function createBenchmarkWiring({ benchmarksRoot, runsRoot, isEnabled, broadcast,
24631
24801
  if (signal.aborted) return cancelled;
24632
24802
  if (!setup.ok) return {
24633
24803
  ok: false,
24634
- reason: `arm ${arm.id} setup failed: ${firstLine(setup.stderr) || "the setup command exited with an error"}`
24804
+ reason: `arm ${arm.id} setup failed: ${firstLine$1(setup.stderr) || "the setup command exited with an error"}`
24635
24805
  };
24636
24806
  }
24637
24807
  const token = await credentials.resolveArmToken(suite.subject.timeoutSeconds, signal);
@@ -24662,7 +24832,7 @@ function createBenchmarkWiring({ benchmarksRoot, runsRoot, isEnabled, broadcast,
24662
24832
  if (signal.aborted) return cancelled;
24663
24833
  if (!preflight.ok || !preflight.stdout.includes(ARM_PREFLIGHT_REPLY)) return {
24664
24834
  ok: false,
24665
- reason: `arm ${arm.id} preflight failed: ${firstLine(preflight.stdout) || firstLine(preflight.stderr) || "Claude Code did not answer"}`
24835
+ reason: `arm ${arm.id} preflight failed: ${firstLine$1(preflight.stdout) || firstLine$1(preflight.stderr) || "Claude Code did not answer"}`
24666
24836
  };
24667
24837
  }
24668
24838
  return { ok: true };
@@ -24700,7 +24870,7 @@ function createBenchmarkWiring({ benchmarksRoot, runsRoot, isEnabled, broadcast,
24700
24870
  }).then(() => null, (error) => errorMessage(error));
24701
24871
  if (cleared !== null) return {
24702
24872
  ok: false,
24703
- reason: `could not clear the previous checkout: ${firstLine(cleared)}`
24873
+ reason: `could not clear the previous checkout: ${firstLine$1(cleared)}`
24704
24874
  };
24705
24875
  const created = await gitWorkspace.stageIsolatedCheckout({
24706
24876
  projectPath,
@@ -24712,7 +24882,7 @@ function createBenchmarkWiring({ benchmarksRoot, runsRoot, isEnabled, broadcast,
24712
24882
  await removeDirectoryOrWarn(checkoutPath);
24713
24883
  return {
24714
24884
  ok: false,
24715
- reason: `could not stage a checkout: ${firstLine(created.err ?? "") || "the isolated checkout failed"}`
24885
+ reason: `could not stage a checkout: ${firstLine$1(created.err ?? "") || "the isolated checkout failed"}`
24716
24886
  };
24717
24887
  }
24718
24888
  staged.checkoutPath = checkoutPath;
@@ -24776,7 +24946,7 @@ function createBenchmarkWiring({ benchmarksRoot, runsRoot, isEnabled, broadcast,
24776
24946
  await removeCheckout(staged);
24777
24947
  if (!probe.ok) return {
24778
24948
  clean: false,
24779
- reason: `the checkout could not be checked: ${firstLine(probe.err ?? "")}`
24949
+ reason: `the checkout could not be checked: ${firstLine$1(probe.err ?? "")}`
24780
24950
  };
24781
24951
  return {
24782
24952
  clean: false,
@@ -24871,7 +25041,7 @@ function createBenchmarkWiring({ benchmarksRoot, runsRoot, isEnabled, broadcast,
24871
25041
  } catch (error) {
24872
25042
  return {
24873
25043
  ok: false,
24874
- reason: `the subject session failed: ${firstLine(errorMessage(error))}`,
25044
+ reason: `the subject session failed: ${firstLine$1(errorMessage(error))}`,
24875
25045
  costUsd: null
24876
25046
  };
24877
25047
  } finally {
@@ -24922,7 +25092,7 @@ function createBenchmarkWiring({ benchmarksRoot, runsRoot, isEnabled, broadcast,
24922
25092
  } catch (error) {
24923
25093
  return {
24924
25094
  ok: false,
24925
- reason: `the judge session failed: ${firstLine(errorMessage(error))}`,
25095
+ reason: `the judge session failed: ${firstLine$1(errorMessage(error))}`,
24926
25096
  costUsd: null
24927
25097
  };
24928
25098
  } finally {
@@ -25019,7 +25189,7 @@ function createBenchmarkWiring({ benchmarksRoot, runsRoot, isEnabled, broadcast,
25019
25189
  removalKept: void 0
25020
25190
  }));
25021
25191
  if (removal.removalKept) return;
25022
- if (!removal.ok) log.warn(`[${BENCHMARK_LANE_ID}] could not remove leftover ${worktreePath}: ${firstLine(removal.err ?? "")}`);
25192
+ if (!removal.ok) log.warn(`[${BENCHMARK_LANE_ID}] could not remove leftover ${worktreePath}: ${firstLine$1(removal.err ?? "")}`);
25023
25193
  }
25024
25194
  await removeDirectoryOrWarn(worktreePath);
25025
25195
  }
@@ -30445,7 +30615,7 @@ var BOOTSTRAP_PROMPT = `Read ${PROMPT_FILE} and follow its instructions`;
30445
30615
  var TASK_TITLE_LANE_TOOLS = Object.freeze(["Read", "Write"]);
30446
30616
  var DEFAULT_REFINER_SETTINGS = Object.freeze({
30447
30617
  enabled: true,
30448
- model: "haiku",
30618
+ model: DEFAULT_MODELS.taskTitleRefiner,
30449
30619
  minIntervalSeconds: 60,
30450
30620
  timeoutSeconds: 60
30451
30621
  });
@@ -31583,7 +31753,7 @@ function retryAfterMsFrom(headerValue) {
31583
31753
  return seconds * 1e3;
31584
31754
  }
31585
31755
  function rateLimitedResponse(res, body) {
31586
- const errorCode = isRecord$1(body) && typeof body.code === "string" ? ` ${body.code}` : "";
31756
+ const errorCode = isRecord$2(body) && typeof body.code === "string" ? ` ${body.code}` : "";
31587
31757
  const retryAfterMs = retryAfterMsFrom(res.headers?.get("retry-after") ?? null);
31588
31758
  const error = `HTTP ${RATE_LIMITED_STATUS}${errorCode}`;
31589
31759
  if (retryAfterMs === void 0) return {
@@ -32230,7 +32400,7 @@ function createRadarPoller(deps) {
32230
32400
  signal
32231
32401
  })).catch((e) => ({
32232
32402
  verdict: "ERROR",
32233
- summary: firstLine$1(errorMessage(e)),
32403
+ summary: firstLine$2(errorMessage(e)),
32234
32404
  errorReason: "crashed"
32235
32405
  })))
32236
32406
  });
@@ -32456,7 +32626,7 @@ function createRadarPoller(deps) {
32456
32626
  } catch (e) {
32457
32627
  const crashedResult = {
32458
32628
  verdict: "ERROR",
32459
- summary: firstLine$1(errorMessage(e)),
32629
+ summary: firstLine$2(errorMessage(e)),
32460
32630
  errorReason: "crashed"
32461
32631
  };
32462
32632
  if (!isFinishCaptured) captureInvestigationFinished(crashedResult, mode);
@@ -33686,7 +33856,7 @@ function createRadarWiring({ config, investigationSessions, closeSessionDataClie
33686
33856
  async function readPosthogState() {
33687
33857
  const outcome = await loadJsonStateFile({
33688
33858
  filePath: posthogStatePath,
33689
- parse: (raw) => isRecord$1(raw) ? raw : null,
33859
+ parse: (raw) => isRecord$2(raw) ? raw : null,
33690
33860
  quarantine: false
33691
33861
  });
33692
33862
  return loadedJsonValue(outcome) ?? {};
@@ -33891,7 +34061,7 @@ var MAX_DISCORD_CHANNELS = 50;
33891
34061
  var JUDGE_PROMPT_FILENAME = "judge-prompt.txt";
33892
34062
  var JUDGE_RESULT_FILENAME = "judge-result.json";
33893
34063
  var JUDGE_BOOTSTRAP_PROMPT = `Read ${JUDGE_PROMPT_FILENAME} and follow its instructions`;
33894
- var JUDGE_MODEL = "haiku";
34064
+ var JUDGE_MODEL = DEFAULT_MODELS.communityJudge;
33895
34065
  var JUDGE_TIMEOUT_MS = 12e4;
33896
34066
  var JUDGE_MESSAGE_CHARS = 2e3;
33897
34067
  var COMMUNITY_UNTRUSTED_SOURCE = "community";
@@ -34986,7 +35156,7 @@ function createCommunityRunner({ spawnDependencies, homeDir, getSettings, hookTo
34986
35156
  }
34987
35157
  });
34988
35158
  } catch (error) {
34989
- return failed(firstLine$1(errorMessage(error)) || "the research run failed");
35159
+ return failed(firstLine$2(errorMessage(error)) || "the research run failed");
34990
35160
  } finally {
34991
35161
  await fs$1.rm(workDir, {
34992
35162
  recursive: true,
@@ -36574,7 +36744,7 @@ function isSafeBaseRef(baseRef) {
36574
36744
  return baseRef.split("/").every((part) => GH_SEGMENT.test(part) && !part.endsWith(".lock"));
36575
36745
  }
36576
36746
  function isolationFailure(failedStep, gitError = "") {
36577
- const gitErrorLine = firstLine$1(gitError);
36747
+ const gitErrorLine = firstLine$2(gitError);
36578
36748
  return {
36579
36749
  ok: false,
36580
36750
  reason: gitErrorLine ? `${failedStep}: ${gitErrorLine}` : failedStep
@@ -37524,7 +37694,7 @@ function createTeamReviewRuns(context, statusReporter, headPlanning, candidateSe
37524
37694
  tier: args.tier,
37525
37695
  reasons: args.reasons,
37526
37696
  reviewedHead: args.detail.headRefOid,
37527
- error: firstLine$1(errorMessage(error)) || "review crashed"
37697
+ error: firstLine$2(errorMessage(error)) || "review crashed"
37528
37698
  }));
37529
37699
  const entry = entryFor(args.candidate.key);
37530
37700
  entry.inFlight = false;
@@ -38186,7 +38356,7 @@ async function pruneCachedClone(gitWorkspace, projectPath, log) {
38186
38356
  ok: false,
38187
38357
  err: errorMessage(error)
38188
38358
  }));
38189
- if (!pruned.ok) log.warn(`[${TEAM_REVIEW_LANE_ID}] worktree prune failed in ${projectPath}: ${firstLine$1(pruned.err ?? "")}`);
38359
+ if (!pruned.ok) log.warn(`[${TEAM_REVIEW_LANE_ID}] worktree prune failed in ${projectPath}: ${firstLine$2(pruned.err ?? "")}`);
38190
38360
  }
38191
38361
  async function deleteDirectory(directory, log) {
38192
38362
  await fs$1.rm(directory, {
@@ -38310,7 +38480,7 @@ async function readReviewReport(reportPath, expectedHead, isReReview) {
38310
38480
  const parsed = parseReviewReport(report, { isReReview });
38311
38481
  if (!parsed.ok) return {
38312
38482
  ok: false,
38313
- reason: firstLine$1(parsed.reason)
38483
+ reason: firstLine$2(parsed.reason)
38314
38484
  };
38315
38485
  if (parsed.result.head !== expectedHead) return {
38316
38486
  ok: false,
@@ -38347,7 +38517,7 @@ function createTeamReviewDispatcher({ store, repoCache, gitWorkspace, spawnSessi
38347
38517
  }));
38348
38518
  if (removal.removalKept) return;
38349
38519
  if (removal.ok && !await pathExists$1(worktreePath)) return;
38350
- log.warn(`[${TEAM_REVIEW_LANE_ID}] worktree removal failed for ${worktreePath}, deleting it directly: ${firstLine$1(removal.err ?? "") || "the directory is still present"}`);
38520
+ log.warn(`[${TEAM_REVIEW_LANE_ID}] worktree removal failed for ${worktreePath}, deleting it directly: ${firstLine$2(removal.err ?? "") || "the directory is still present"}`);
38351
38521
  await deleteCheckout(gitWorkspace, worktreePath, log);
38352
38522
  await pruneCachedClone(gitWorkspace, projectPath, log);
38353
38523
  }
@@ -38413,13 +38583,13 @@ function createTeamReviewDispatcher({ store, repoCache, gitWorkspace, spawnSessi
38413
38583
  const projectPath = await repoCache.ensureRepo(candidate.repo);
38414
38584
  if (!projectPath) return { error: `could not clone ${candidate.repo}` };
38415
38585
  const fetched = await repoCache.fetchPr(candidate.repo, detail.number, detail.baseRefName);
38416
- if (!fetched.ok || !fetched.headSha) return { error: `could not fetch ${candidate.key}${fetched.err ? `: ${firstLine$1(fetched.err)}` : ""}` };
38586
+ if (!fetched.ok || !fetched.headSha) return { error: `could not fetch ${candidate.key}${fetched.err ? `: ${firstLine$2(fetched.err)}` : ""}` };
38417
38587
  if (fetched.headSha !== detail.headRefOid) return { error: `fetched head ${fetched.headSha} is not the triaged head ${detail.headRefOid}` };
38418
38588
  const hydrated = await repoCache.hydrateTree(candidate.repo, detail.headRefOid).catch((error) => ({
38419
38589
  ok: false,
38420
38590
  err: errorMessage(error)
38421
38591
  }));
38422
- if (!hydrated.ok) return { error: `could not fetch the file contents of ${candidate.key}${hydrated.err ? `: ${firstLine$1(hydrated.err)}` : ""}` };
38592
+ if (!hydrated.ok) return { error: `could not fetch the file contents of ${candidate.key}${hydrated.err ? `: ${firstLine$2(hydrated.err)}` : ""}` };
38423
38593
  return { projectPath };
38424
38594
  }
38425
38595
  function spawnWithTimeout({ candidate, detail, tier, reasons, reportProgress, resume, priorReview, signal: cancelSignal, timeoutMs, workDir, checkoutPath, linkedCheckout, reportPath, postingPath, commentable, gitEnvPrefixes, onPending, onSessionId }) {
@@ -38483,7 +38653,7 @@ function createTeamReviewDispatcher({ store, repoCache, gitWorkspace, spawnSessi
38483
38653
  commentable,
38484
38654
  uiFiles: uiFilesOf(detail.files)
38485
38655
  });
38486
- }).catch((error) => failed(firstLine$1(errorMessage(error)) || "review session failed"))
38656
+ }).catch((error) => failed(firstLine$2(errorMessage(error)) || "review session failed"))
38487
38657
  });
38488
38658
  }
38489
38659
  return async function reviewPullRequest(requestedArgs) {
@@ -38636,9 +38806,9 @@ function createTeamReviewDispatcher({ store, repoCache, gitWorkspace, spawnSessi
38636
38806
  worktreePath,
38637
38807
  sha: detail.headRefOid
38638
38808
  });
38639
- if (!created.ok) return failed(`could not stage a checkout: ${firstLine$1(created.err ?? "") || "git worktree add failed"}`);
38809
+ if (!created.ok) return failed(`could not stage a checkout: ${firstLine$2(created.err ?? "") || "git worktree add failed"}`);
38640
38810
  const hydrated = await hydrateBlobs(candidate, detail);
38641
- if (!hydrated.ok) return failed(`could not fetch the file contents of ${candidate.key}${hydrated.err ? `: ${firstLine$1(hydrated.err)}` : ""}`);
38811
+ if (!hydrated.ok) return failed(`could not fetch the file contents of ${candidate.key}${hydrated.err ? `: ${firstLine$2(hydrated.err)}` : ""}`);
38642
38812
  const priorReview = args.priorReview ?? null;
38643
38813
  const newWork = priorReview ? await pointAtNewWork(candidate, detail, priorReview, workDir) : null;
38644
38814
  let linkedCheckout = null;
@@ -38708,7 +38878,7 @@ function createTeamReviewDispatcher({ store, repoCache, gitWorkspace, spawnSessi
38708
38878
  try {
38709
38879
  draft = await runReview();
38710
38880
  } catch (error) {
38711
- draft = failed(firstLine$1(errorMessage(error)) || "review failed");
38881
+ draft = failed(firstLine$2(errorMessage(error)) || "review failed");
38712
38882
  }
38713
38883
  try {
38714
38884
  await drainPending(pendingSession);
@@ -38866,7 +39036,7 @@ function createTeamReviewActions({ drafts, github, store, log = console, telemet
38866
39036
  }));
38867
39037
  if (!dismissal.ok) return {
38868
39038
  ok: false,
38869
- error: `${moved}, and dismissing the approval failed (${firstLine$1(dismissal.err)}), so it still stands. Dismiss it on GitHub`
39039
+ error: `${moved}, and dismissing the approval failed (${firstLine$2(dismissal.err)}), so it still stands. Dismiss it on GitHub`
38870
39040
  };
38871
39041
  requestPrRefresh?.(comparablePrKey(draft));
38872
39042
  return {
@@ -39378,7 +39548,7 @@ function createTeamReviewWiring({ config, store, reviewSessions, closeSessionDat
39378
39548
  }));
39379
39549
  if (!seeded.ok) return {
39380
39550
  ok: false,
39381
- error: `Could not fetch branch ${detail.headRefName}: ${firstLine$1(seeded.err ?? "")}`
39551
+ error: `Could not fetch branch ${detail.headRefName}: ${firstLine$2(seeded.err ?? "")}`
39382
39552
  };
39383
39553
  if (seeded.out.trim() !== detail.headRefOid) return {
39384
39554
  ok: false,
@@ -40213,7 +40383,7 @@ function createMyPrsPoller(dependencies) {
40213
40383
  if (merged.kind === "merged") mergeQueueKeys = mergeQueueKeys.filter((queuedKey) => queuedKey !== pr.key);
40214
40384
  continue;
40215
40385
  }
40216
- const message = firstLine$1(merged.error ?? "") || "GitHub refused the merge";
40386
+ const message = firstLine$2(merged.error ?? "") || "GitHub refused the merge";
40217
40387
  mergeFailuresByKey.set(pr.key, {
40218
40388
  attemptKey,
40219
40389
  failure: {
@@ -40602,7 +40772,7 @@ async function deleteHandoffRefs(projectPath, runGit, log) {
40602
40772
  "--format=%(refname)",
40603
40773
  KEEP_MERGEABLE_HANDOFF_REF_PREFIX
40604
40774
  ], projectPath);
40605
- if (!listed.ok) return log.warn(`[${MY_PRS_LANE_ID}] could not list leftover handoff refs in ${projectPath}: ${firstLine$1(listed.err)}`);
40775
+ if (!listed.ok) return log.warn(`[${MY_PRS_LANE_ID}] could not list leftover handoff refs in ${projectPath}: ${firstLine$2(listed.err)}`);
40606
40776
  const leftoverRefs = listed.out.split("\n").map((line) => line.trim()).filter((refName) => refName.startsWith(KEEP_MERGEABLE_HANDOFF_REF_PREFIX));
40607
40777
  for (const refName of leftoverRefs) {
40608
40778
  const deleted = await runGit([
@@ -40610,7 +40780,7 @@ async function deleteHandoffRefs(projectPath, runGit, log) {
40610
40780
  "-d",
40611
40781
  refName
40612
40782
  ], projectPath);
40613
- if (!deleted.ok) log.warn(`[${MY_PRS_LANE_ID}] could not delete leftover handoff ref ${refName} in ${projectPath}: ${firstLine$1(deleted.err)}`);
40783
+ if (!deleted.ok) log.warn(`[${MY_PRS_LANE_ID}] could not delete leftover handoff ref ${refName} in ${projectPath}: ${firstLine$2(deleted.err)}`);
40614
40784
  }
40615
40785
  }
40616
40786
  async function sweepKeepMergeableLeftovers({ workRoot, repoCache, gitWorkspace, runGit = runTrustedGit, reapProcesses, log = console }) {
@@ -40766,7 +40936,7 @@ async function forwardedSigningAgentEnv(projectPath, runGit, signal) {
40766
40936
  return await hostSshSigner.agentEnvFor(publicKey) ?? {};
40767
40937
  }
40768
40938
  function createMyPrMergeabilityFix({ spawnSession, repoCache, workRoot, makeWorkDir = makeTeamReviewWorkDir, runGit = runTrustedGit, log = console, timeoutSeconds = defaultSessionTimeoutSeconds, setTimeoutFn, clearTimeoutFn, signingAgentEnv = (projectPath, signal) => forwardedSigningAgentEnv(projectPath, runGit, signal), requestPrRefresh }) {
40769
- const warn = (pr, message) => log.warn(`[${MY_PRS_LANE_ID}] keep mergeable for ${pr.key}: ${firstLine$1(message)}`);
40939
+ const warn = (pr, message) => log.warn(`[${MY_PRS_LANE_ID}] keep mergeable for ${pr.key}: ${firstLine$2(message)}`);
40770
40940
  const stopped = {
40771
40941
  outcome: "stopped",
40772
40942
  reason: "The repair was stopped"
@@ -40775,7 +40945,7 @@ function createMyPrMergeabilityFix({ spawnSession, repoCache, workRoot, makeWork
40775
40945
  warn(pr, message);
40776
40946
  return {
40777
40947
  outcome,
40778
- reason: firstLine$1(message)
40948
+ reason: firstLine$2(message)
40779
40949
  };
40780
40950
  }
40781
40951
  const { stageCheckout, runSession } = createGuardedPrStaging({
@@ -41187,15 +41357,15 @@ function shouldLinkSession(session) {
41187
41357
  }
41188
41358
  function prOperationOf(gitOperation) {
41189
41359
  const pr = gitOperation.pr;
41190
- if (!isRecord$1(pr)) return null;
41360
+ if (!isRecord$2(pr)) return null;
41191
41361
  if (typeof pr.action === "string") return {
41192
41362
  action: pr.action,
41193
41363
  details: pr
41194
41364
  };
41195
- const keyedAction = KEYED_PR_ACTIONS.find((action) => isRecord$1(pr[action]));
41365
+ const keyedAction = KEYED_PR_ACTIONS.find((action) => isRecord$2(pr[action]));
41196
41366
  if (!keyedAction) return null;
41197
41367
  const keyedDetails = pr[keyedAction];
41198
- return isRecord$1(keyedDetails) ? {
41368
+ return isRecord$2(keyedDetails) ? {
41199
41369
  action: keyedAction,
41200
41370
  details: keyedDetails
41201
41371
  } : null;
@@ -41228,7 +41398,7 @@ function hookPrLink(event, payload, nowMs) {
41228
41398
  if (event.toLowerCase() !== PR_LINK_HOOK_EVENT) return null;
41229
41399
  if (payload.tool_name !== PR_LINK_TOOL_NAME) return null;
41230
41400
  const toolResponse = payload.tool_response;
41231
- if (!isRecord$1(toolResponse) || !isRecord$1(toolResponse.gitOperation)) return null;
41401
+ if (!isRecord$2(toolResponse) || !isRecord$2(toolResponse.gitOperation)) return null;
41232
41402
  const operation = prOperationOf(toolResponse.gitOperation);
41233
41403
  if (!operation || !LINKING_PR_ACTIONS.has(operation.action)) return null;
41234
41404
  const identity = identityFromUrl(operation.details.url) ?? identityFromRepoAndNumber(operation.details);
@@ -41243,7 +41413,7 @@ function hookPrLink(event, payload, nowMs) {
41243
41413
  function shouldRefreshHookPrs(event, payload) {
41244
41414
  if (event.toLowerCase() !== PR_LINK_HOOK_EVENT || payload.tool_name !== PR_LINK_TOOL_NAME) return false;
41245
41415
  const toolInput = payload.tool_input;
41246
- if (!isRecord$1(toolInput) || typeof toolInput.command !== "string") return false;
41416
+ if (!isRecord$2(toolInput) || typeof toolInput.command !== "string") return false;
41247
41417
  return /(?:^|[\s;&|()])(?:git\s+push|gh\s+pr)(?=\s|[;&|)]|$)/.test(toolInput.command);
41248
41418
  }
41249
41419
  var SAFE_BASE_REF_NAME_RE = /^(?!-)(?!.*\.\.)(?!.*\/\/)[A-Za-z0-9._/-]+(?<![./])$/;
@@ -41879,9 +42049,9 @@ function areWorkflowActionsEnabled(resolution) {
41879
42049
  return resolution.ok && resolution.enabled;
41880
42050
  }
41881
42051
  function mergeWorkflowsUpdateOverStored(stored, update) {
41882
- const storedBlock = isRecord$1(stored) ? stored : {};
42052
+ const storedBlock = isRecord$2(stored) ? stored : {};
41883
42053
  const storedRules = Array.isArray(storedBlock.rules) ? storedBlock.rules : [];
41884
- const storedRuleIds = new Set(storedRules.map((rule) => isRecord$1(rule) ? rule.id : void 0));
42054
+ const storedRuleIds = new Set(storedRules.map((rule) => isRecord$2(rule) ? rule.id : void 0));
41885
42055
  const ruleToggles = update.rules ?? [];
41886
42056
  const unknownToggle = ruleToggles.find((toggle) => !storedRuleIds.has(toggle.id));
41887
42057
  if (unknownToggle) return {
@@ -41896,7 +42066,7 @@ function mergeWorkflowsUpdateOverStored(stored, update) {
41896
42066
  "maxActionsPerPoll"
41897
42067
  ]) if (update[key] !== void 0) merged[key] = update[key];
41898
42068
  if (update.rules) merged.rules = storedRules.map((rule) => {
41899
- if (!isRecord$1(rule) || typeof rule.id !== "string") return rule;
42069
+ if (!isRecord$2(rule) || typeof rule.id !== "string") return rule;
41900
42070
  const enabled = enabledByRuleId.get(rule.id);
41901
42071
  return enabled === void 0 ? rule : {
41902
42072
  ...rule,
@@ -42143,7 +42313,7 @@ function createWorkflowSessionQueue({ spawnSession, log = console, maxConcurrent
42143
42313
  const shutdownController = new AbortController();
42144
42314
  let activeSessionsController = new AbortController();
42145
42315
  function launchSession(planned) {
42146
- const pending = spawnSession(planned, AbortSignal.any([shutdownController.signal, activeSessionsController.signal])).catch((error) => log.warn(`[${WORKFLOWS_LANE_ID}] ${planned.rule.id} session failed: ${firstLine$1(errorMessage(error))}`)).finally(() => {
42316
+ const pending = spawnSession(planned, AbortSignal.any([shutdownController.signal, activeSessionsController.signal])).catch((error) => log.warn(`[${WORKFLOWS_LANE_ID}] ${planned.rule.id} session failed: ${firstLine$2(errorMessage(error))}`)).finally(() => {
42147
42317
  pendingSessions.delete(pending);
42148
42318
  startDeferredSessions();
42149
42319
  });
@@ -42295,7 +42465,7 @@ function createWorkflowsPoller(dependencies) {
42295
42465
  ...target,
42296
42466
  body: action.body
42297
42467
  });
42298
- if (!outcome.ok) log.warn(`[${WORKFLOWS_LANE_ID}] ${rule.id} could not ${action.type} ${event.pr.repo}#${event.pr.number}: ${firstLine$1(outcome.err)}`);
42468
+ if (!outcome.ok) log.warn(`[${WORKFLOWS_LANE_ID}] ${rule.id} could not ${action.type} ${event.pr.repo}#${event.pr.number}: ${firstLine$2(outcome.err)}`);
42299
42469
  return outcome.ok && action.type === "comment";
42300
42470
  }
42301
42471
  async function runTick() {
@@ -42409,7 +42579,7 @@ function createWorkflowSpawn({ staging, workRoot, makeWorkDir = makeTeamReviewWo
42409
42579
  baseRefName: event.pr.baseRefName,
42410
42580
  headRefOid: event.pr.headRefOid
42411
42581
  };
42412
- const warn = (message) => log.warn(`[${WORKFLOWS_LANE_ID}] ${rule.id} session for ${pr.key}: ${firstLine$1(message)}`);
42582
+ const warn = (message) => log.warn(`[${WORKFLOWS_LANE_ID}] ${rule.id} session for ${pr.key}: ${firstLine$2(message)}`);
42413
42583
  const workDir = await makeWorkDir(workRoot, pr.key);
42414
42584
  let pendingSession = null;
42415
42585
  try {
@@ -43076,11 +43246,11 @@ function rateLimitWindow(usedPct, resetsAt) {
43076
43246
  };
43077
43247
  }
43078
43248
  function normalizeWindow(raw) {
43079
- if (!isRecord$1(raw)) return null;
43249
+ if (!isRecord$2(raw)) return null;
43080
43250
  return rateLimitWindow(raw.used_percentage, raw.resets_at);
43081
43251
  }
43082
43252
  function normalizeRateLimits(raw) {
43083
- if (!isRecord$1(raw)) return null;
43253
+ if (!isRecord$2(raw)) return null;
43084
43254
  const limits = raw;
43085
43255
  const fiveHour = normalizeWindow(limits.five_hour);
43086
43256
  const sevenDay = normalizeWindow(limits.seven_day);
@@ -43091,11 +43261,11 @@ function normalizeRateLimits(raw) {
43091
43261
  };
43092
43262
  }
43093
43263
  function normalizeStatuslinePayload(payload, nowMs) {
43094
- if (!isRecord$1(payload)) return null;
43264
+ if (!isRecord$2(payload)) return null;
43095
43265
  const fields = payload;
43096
43266
  const sessionId = typeof fields.session_id === "string" ? fields.session_id.trim() : "";
43097
- const cost = isRecord$1(fields.cost) ? fields.cost : null;
43098
- const context = isRecord$1(fields.context_window) ? fields.context_window : null;
43267
+ const cost = isRecord$2(fields.cost) ? fields.cost : null;
43268
+ const context = isRecord$2(fields.context_window) ? fields.context_window : null;
43099
43269
  return {
43100
43270
  rateLimits: normalizeRateLimits(fields.rate_limits),
43101
43271
  sessionCostUSD: cost ? numberOr(cost.total_cost_usd, null) : null,
@@ -43667,7 +43837,7 @@ function createCodexUsageState() {
43667
43837
  };
43668
43838
  }
43669
43839
  function parseCodexUsageLine(line, state = createCodexUsageState(), { sessionId = null } = {}) {
43670
- const raw = parseJsonLine(line);
43840
+ const raw = parseJsonLine$1(line);
43671
43841
  if (!raw) return null;
43672
43842
  const parsed = raw;
43673
43843
  if (parsed.type === "turn_context") return recordTurnContext(parsed, state);
@@ -43704,7 +43874,7 @@ var SEVEN_DAY_WINDOW_MINUTES = 10080;
43704
43874
  function codexPlanWindows(rawWindows) {
43705
43875
  const windowsByMinutes = /* @__PURE__ */ new Map();
43706
43876
  for (const rawWindow of rawWindows) {
43707
- if (!isRecord$1(rawWindow)) continue;
43877
+ if (!isRecord$2(rawWindow)) continue;
43708
43878
  windowsByMinutes.set(numberOr(rawWindow.window_minutes, 0), rateLimitWindow(rawWindow.used_percent, rawWindow.resets_at));
43709
43879
  }
43710
43880
  return {
@@ -43714,12 +43884,12 @@ function codexPlanWindows(rawWindows) {
43714
43884
  }
43715
43885
  function parseCodexRateLimitsLine(line) {
43716
43886
  if (typeof line !== "string" || !line.includes(RATE_LIMITS_MARKER)) return null;
43717
- const raw = parseJsonLine(line);
43887
+ const raw = parseJsonLine$1(line);
43718
43888
  if (!raw) return null;
43719
43889
  const parsed = raw;
43720
43890
  if (parsed.payload?.type !== "token_count") return null;
43721
43891
  const rateLimits = parsed.payload.rate_limits;
43722
- if (!isRecord$1(rateLimits)) return null;
43892
+ if (!isRecord$2(rateLimits)) return null;
43723
43893
  if (rateLimits.limit_id != null && rateLimits.limit_id !== CODEX_PLAN_LIMIT_ID) return null;
43724
43894
  const ts = Date.parse(String(parsed.timestamp));
43725
43895
  if (!Number.isFinite(ts)) return null;
@@ -43776,7 +43946,7 @@ function deltaFromTotal(totalUsage, previousTotalUsage) {
43776
43946
  //#endregion
43777
43947
  //#region server/usage/core/usage-grok-core.ts
43778
43948
  function parseGrokUsageLine(line) {
43779
- const raw = parseJsonLine(line, "\"turn_completed\"");
43949
+ const raw = parseJsonLine$1(line, "\"turn_completed\"");
43780
43950
  if (!raw) return null;
43781
43951
  const parsed = raw;
43782
43952
  const update = parsed.params?.update;
@@ -45306,13 +45476,13 @@ function absoluteDirList(value) {
45306
45476
  return value.filter((entry) => typeof entry === "string" && Boolean(entry.trim()) && path.isAbsolute(entry.trim())).map((entry) => entry.trim());
45307
45477
  }
45308
45478
  function resolveVendors(vendors) {
45309
- const source = isRecord$1(vendors) ? vendors : {};
45479
+ const source = isRecord$2(vendors) ? vendors : {};
45310
45480
  const resolved = {};
45311
45481
  for (const key of USAGE_VENDOR_KEYS) resolved[key] = source[key] !== false;
45312
45482
  return resolved;
45313
45483
  }
45314
45484
  function resolveUsageConfig(usage) {
45315
- const source = isRecord$1(usage) ? usage : {};
45485
+ const source = isRecord$2(usage) ? usage : {};
45316
45486
  return {
45317
45487
  enabled: typeof source.enabled === "boolean" ? source.enabled : DEFAULT_USAGE_CONFIG.enabled,
45318
45488
  fetchPricing: typeof source.fetchPricing === "boolean" ? source.fetchPricing : DEFAULT_USAGE_CONFIG.fetchPricing,
@@ -51513,24 +51683,106 @@ async function suggestRepoRoots({ homeDir, configuredRoots }) {
51513
51683
  return rankRepoRootSuggestions(candidates.filter((candidate) => candidate !== null), configuredRealPaths);
51514
51684
  }
51515
51685
  //#endregion
51686
+ //#region server/agent-models/agent-models.ts
51687
+ var SCAN_FRESH_FOR_MS$1 = 6e4;
51688
+ var PROBE_TIMEOUT_MS = 2e4;
51689
+ var PROBE_MAX_BUFFER_BYTES = 16777216;
51690
+ var CLAUDE_INITIALIZE_REQUEST = `${JSON.stringify({
51691
+ type: "control_request",
51692
+ request_id: "glimmervoid-models",
51693
+ request: { subtype: "initialize" }
51694
+ })}\n`;
51695
+ var CLAUDE_PROBE_ARGS = [
51696
+ "-p",
51697
+ "--setting-sources",
51698
+ "",
51699
+ "--input-format",
51700
+ "stream-json",
51701
+ "--output-format",
51702
+ "stream-json",
51703
+ "--verbose"
51704
+ ];
51705
+ var CODEX_PROBE_ARGS = ["debug", "models"];
51706
+ async function runAgentCommand(agentId, agentArgs, input) {
51707
+ const adapter = getAdapter(agentId);
51708
+ if (!adapter) throw new Error(`no adapter for ${agentId}`);
51709
+ const command = adapter.buildSpawnCommand({
51710
+ platform: process.platform,
51711
+ resolved: commandFor(adapter),
51712
+ agentArgs
51713
+ });
51714
+ const { stdout } = await execFileAsync(command.file, command.args, {
51715
+ encoding: "utf8",
51716
+ timeout: PROBE_TIMEOUT_MS,
51717
+ maxBuffer: PROBE_MAX_BUFFER_BYTES,
51718
+ windowsHide: true,
51719
+ ...input === null ? {} : { input }
51720
+ });
51721
+ return stdout;
51722
+ }
51723
+ var PROBES = Object.freeze({
51724
+ "claude-code": async () => parseClaudeInitialize(await runAgentCommand("claude-code", CLAUDE_PROBE_ARGS, CLAUDE_INITIALIZE_REQUEST)),
51725
+ codex: async () => parseCodexModels(await runAgentCommand("codex", CODEX_PROBE_ARGS, null)),
51726
+ kimi: async () => parseKimiModels(await fs$1.readFile(kimi.configFilePath(), "utf8"))
51727
+ });
51728
+ function firstLine(error) {
51729
+ const message = error instanceof Error ? error.message : String(error);
51730
+ return message.split("\n")[0] ?? message;
51731
+ }
51732
+ async function probedModels(agent) {
51733
+ try {
51734
+ const models = await PROBES[agent]();
51735
+ return {
51736
+ models,
51737
+ error: models === null ? "the agent reported no model list Glimmervoid can read" : null
51738
+ };
51739
+ } catch (error) {
51740
+ return {
51741
+ models: null,
51742
+ error: firstLine(error)
51743
+ };
51744
+ }
51745
+ }
51746
+ async function probeAgent(agent, nowMs) {
51747
+ const { models, error } = await probedModels(agent);
51748
+ const lastGoodModels = lastCatalog.agents.find((previous) => previous.agent === agent)?.models ?? [];
51749
+ return {
51750
+ agent,
51751
+ models: models ?? lastGoodModels,
51752
+ error,
51753
+ checkedAt: nowMs
51754
+ };
51755
+ }
51756
+ var lastCatalog = { agents: CATALOG_AGENT_IDS.map((agent) => ({
51757
+ agent,
51758
+ models: [],
51759
+ error: null,
51760
+ checkedAt: null
51761
+ })) };
51762
+ var lastScanStartedAtMs$1 = Number.NEGATIVE_INFINITY;
51763
+ var scanInFlight$1 = null;
51764
+ async function scanAgentModels(nowMs) {
51765
+ const agents = [];
51766
+ for (const agent of CATALOG_AGENT_IDS) agents.push(await probeAgent(agent, nowMs));
51767
+ lastCatalog = { agents };
51768
+ }
51769
+ function refreshAgentModelsWhenStale(nowMs = Date.now()) {
51770
+ if (scanInFlight$1) return scanInFlight$1;
51771
+ if (nowMs - lastScanStartedAtMs$1 < SCAN_FRESH_FOR_MS$1) return Promise.resolve();
51772
+ lastScanStartedAtMs$1 = nowMs;
51773
+ scanInFlight$1 = new Promise((resolve) => {
51774
+ setImmediate(resolve);
51775
+ }).then(() => scanAgentModels(nowMs)).finally(() => {
51776
+ scanInFlight$1 = null;
51777
+ });
51778
+ return scanInFlight$1;
51779
+ }
51780
+ function currentAgentModelCatalog(nowMs = Date.now()) {
51781
+ refreshAgentModelsWhenStale(nowMs);
51782
+ return lastCatalog;
51783
+ }
51784
+ //#endregion
51516
51785
  //#region server/github/core/team-review-environment-core.ts
51517
- var CLAUDE_EFFORTS = Object.freeze([
51518
- "low",
51519
- "medium",
51520
- "high",
51521
- "xhigh",
51522
- "max"
51523
- ]);
51524
- var CLAUDE_MODELS = Object.freeze([
51525
- "opus",
51526
- "sonnet",
51527
- "haiku"
51528
- ].map((alias) => ({
51529
- id: alias,
51530
- label: alias[0].toUpperCase() + alias.slice(1),
51531
- efforts: null,
51532
- defaultEffort: null
51533
- })));
51534
51786
  var FRONTMATTER_FENCE = "---";
51535
51787
  var FOLDED_SCALAR = /^[>|][+-]?$/;
51536
51788
  function unquoteYamlScalar(raw) {
@@ -51584,6 +51836,22 @@ function enabledClaudePluginInstalls(installedPlugins, settings) {
51584
51836
  }];
51585
51837
  });
51586
51838
  }
51839
+ function reviewModelOffer(model) {
51840
+ const effort = model.options.find((option) => option.id === "effort") ?? null;
51841
+ return {
51842
+ id: model.aliases[0] ?? model.id,
51843
+ label: model.label,
51844
+ efforts: effort ? [...effort.choices] : null,
51845
+ defaultEffort: effort?.defaultChoice ?? null
51846
+ };
51847
+ }
51848
+ function reviewModelOffers(models) {
51849
+ const offers = models.map(reviewModelOffer);
51850
+ return {
51851
+ models: offers,
51852
+ efforts: [...new Set(offers.flatMap((offer) => offer.efforts ?? []))]
51853
+ };
51854
+ }
51587
51855
  //#endregion
51588
51856
  //#region server/github/team-review-environment.ts
51589
51857
  var SCAN_FRESH_FOR_MS = 6e4;
@@ -51631,8 +51899,6 @@ async function scanClaude(homeDir, env) {
51631
51899
  const pluginSkills = await Promise.all(enabledClaudePluginInstalls(installedPlugins, settings).map(({ pluginName, installPath }) => scanSkillFolder(path.join(installPath, "skills"), "plugin", `${pluginName}:`)));
51632
51900
  return {
51633
51901
  id: "claude",
51634
- models: [...CLAUDE_MODELS],
51635
- efforts: [...CLAUDE_EFFORTS],
51636
51902
  skills: [...userSkills, ...pluginSkills.flat()]
51637
51903
  };
51638
51904
  }
@@ -51646,17 +51912,19 @@ function refreshWhenStale(nowMs, homeDir, env) {
51646
51912
  scanInFlight = null;
51647
51913
  });
51648
51914
  }
51649
- function agentOffer(scan) {
51915
+ function agentOffer(scan, nowMs) {
51650
51916
  const { label, resolvable } = cachedAgentResolvability(scan.id);
51917
+ const claudeModels = currentAgentModelCatalog(nowMs).agents.find((agentModels) => agentModels.agent === "claude-code")?.models ?? [];
51651
51918
  return {
51652
51919
  ...scan,
51920
+ ...reviewModelOffers(claudeModels),
51653
51921
  label,
51654
51922
  installed: resolvable
51655
51923
  };
51656
51924
  }
51657
51925
  function currentTeamReviewEnvironment({ nowMs = Date.now(), homeDir = os.homedir(), env = process.env } = {}) {
51658
51926
  refreshWhenStale(nowMs, homeDir, env);
51659
- return { agents: lastScan.map(agentOffer) };
51927
+ return { agents: lastScan.map((scan) => agentOffer(scan, nowMs)) };
51660
51928
  }
51661
51929
  //#endregion
51662
51930
  //#region server/settings-payload.ts
@@ -51669,7 +51937,7 @@ function summarizeCustomAgents(declarations) {
51669
51937
  resolvable: cachedAgentResolvability(declaration.id).resolvable
51670
51938
  }));
51671
51939
  }
51672
- function buildSettingsPayload({ configStore, telegramDelivery = null, coderEnvironments = null, agentLogins = null, readTeamReviewEnvironment = currentTeamReviewEnvironment }) {
51940
+ function buildSettingsPayload({ configStore, telegramDelivery = null, coderEnvironments = null, agentLogins = null, readTeamReviewEnvironment = currentTeamReviewEnvironment, readAgentModels = currentAgentModelCatalog }) {
51673
51941
  return {
51674
51942
  ...configStore.getSettings(),
51675
51943
  isExperimentalBuild: configStore.isExperimentalBuild === true,
@@ -51678,7 +51946,8 @@ function buildSettingsPayload({ configStore, telegramDelivery = null, coderEnvir
51678
51946
  telegramDelivery,
51679
51947
  coderEnvironments,
51680
51948
  agentLogins,
51681
- teamReviewEnvironment: readTeamReviewEnvironment()
51949
+ teamReviewEnvironment: readTeamReviewEnvironment(),
51950
+ agentModels: readAgentModels()
51682
51951
  };
51683
51952
  }
51684
51953
  //#endregion
@@ -51718,7 +51987,7 @@ function settingsNotSavedText(failureReason) {
51718
51987
  }
51719
51988
  var WORKFLOWS_SETTINGS_KEY = "workflows";
51720
51989
  function incomingSettingsBlocks(incoming) {
51721
- return Object.entries(incoming).filter((entry) => entry[0] !== WORKFLOWS_SETTINGS_KEY && isRecord$1(entry[1]));
51990
+ return Object.entries(incoming).filter((entry) => entry[0] !== WORKFLOWS_SETTINGS_KEY && isRecord$2(entry[1]));
51722
51991
  }
51723
51992
  function incomingSettingsBlocksError(blocks) {
51724
51993
  for (const [key, block] of blocks) {
@@ -54403,7 +54672,7 @@ var RETAINED_TASK_FIELDS = [
54403
54672
  "status"
54404
54673
  ];
54405
54674
  function projectBackgroundTask(task) {
54406
- if (!isRecord$1(task)) return {};
54675
+ if (!isRecord$2(task)) return {};
54407
54676
  const projectedTask = {};
54408
54677
  for (const field of RETAINED_TASK_FIELDS) {
54409
54678
  if (!Object.hasOwn(task, field)) continue;
@@ -57701,7 +57970,7 @@ function createCoherenceSessionFeed({ broadcastControl, debounceMs = 1500, now =
57701
57970
  for (const note of judged.notes) session.noteAttention(note);
57702
57971
  } catch (error) {
57703
57972
  if (state.isClosed) return;
57704
- session.noteAttention(`Coherence could not re-run invariants after the turn: ${firstLine$1(errorMessage(error))}`);
57973
+ session.noteAttention(`Coherence could not re-run invariants after the turn: ${firstLine$2(errorMessage(error))}`);
57705
57974
  }
57706
57975
  }
57707
57976
  async function refreshOnce(session, state) {
@@ -57728,7 +57997,7 @@ function createCoherenceSessionFeed({ broadcastControl, debounceMs = 1500, now =
57728
57997
  state.inFlight = trackReading(session.id, (async () => {
57729
57998
  do {
57730
57999
  state.isRerunWanted = false;
57731
- await refreshOnce(session, state).catch((error) => log.warn(`[coherence-feed] refresh failed for session ${session.id}: ${firstLine$1(errorMessage(error))}`));
58000
+ await refreshOnce(session, state).catch((error) => log.warn(`[coherence-feed] refresh failed for session ${session.id}: ${firstLine$2(errorMessage(error))}`));
57732
58001
  } while (state.isRerunWanted && !state.isClosed);
57733
58002
  })().finally(() => {
57734
58003
  state.inFlight = null;
@@ -57815,7 +58084,7 @@ async function blamedCommit(target, cwd, runGitFn) {
57815
58084
  return commit ? {
57816
58085
  commit,
57817
58086
  location: commit.sha.slice(0, 12)
57818
- } : { failure: `no commit ${target.sha}: ${firstLine$1(listed.err)}` };
58087
+ } : { failure: `no commit ${target.sha}: ${firstLine$2(listed.err)}` };
57819
58088
  }
57820
58089
  const location = `${target.file}:${target.line}`;
57821
58090
  const blamed = await runGitFn([
@@ -57826,7 +58095,7 @@ async function blamedCommit(target, cwd, runGitFn) {
57826
58095
  "--",
57827
58096
  path.basename(target.file)
57828
58097
  ], gitOptions);
57829
- if (!blamed.ok) return { failure: `cannot blame ${location}: ${firstLine$1(blamed.err)}` };
58098
+ if (!blamed.ok) return { failure: `cannot blame ${location}: ${firstLine$2(blamed.err)}` };
57830
58099
  if (UNCOMMITTED_SHA.test(blamed.out.slice(0, 40))) return { uncommittedLocation: location };
57831
58100
  const commit = parseBlame(blamed.out);
57832
58101
  return commit ? {