glimmervoid 0.52.3-next.742 → 0.52.3-next.744

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 (102) hide show
  1. package/dist/bin/glimmervoid.js +4 -4
  2. package/dist/chunks/{adapters-1k0tYLEp.js → adapters-BjWZak_C.js} +1 -1
  3. package/dist/chunks/{adapters-7j7r7afs.js → adapters-BkRfCPly.js} +1 -1
  4. package/dist/chunks/config-store-B0sTkXcn.js +1 -0
  5. package/dist/chunks/{config-store-Bslvbdpz.js → config-store-CqyR7WrE.js} +2 -0
  6. package/dist/chunks/{main-DvHJQ-eV.js → main-IWhu5WqE.js} +149 -77
  7. package/dist/chunks/{pair-cli-gFG48z3f.js → pair-cli-DwHsuMKf.js} +2 -2
  8. package/dist/chunks/{remote-config-B2Tl_OUQ.js → remote-config-CWZDCKrX.js} +1 -1
  9. package/dist/chunks/{settings-cli-Drgmjnk1.js → settings-cli-B_EZcvQj.js} +2 -2
  10. package/dist/chunks/{settings-readout-core-B58zs6gp.js → settings-readout-core-PKhnFzgs.js} +1 -1
  11. package/dist/client/assets/{agent-mark-Txvys8mc.js → agent-mark-BShRPP4E.js} +1 -1
  12. package/dist/client/assets/agent-mark-BShRPP4E.js.br +0 -0
  13. package/dist/client/assets/{arena-panel-CC3jIne3.js → arena-panel-DWAhXfBE.js} +2 -2
  14. package/dist/client/assets/arena-panel-DWAhXfBE.js.br +0 -0
  15. package/dist/client/assets/{benchmark-panel-BbUdvECy.js → benchmark-panel-BE9mx8mx.js} +1 -1
  16. package/dist/client/assets/benchmark-panel-BE9mx8mx.js.br +0 -0
  17. package/dist/client/assets/{boards-view-B-2IOr8U.js → boards-view-DIlz0LTJ.js} +1 -1
  18. package/dist/client/assets/boards-view-DIlz0LTJ.js.br +0 -0
  19. package/dist/client/assets/{community-panel-Ylki8blc.js → community-panel-BikPrqka.js} +1 -1
  20. package/dist/client/assets/community-panel-BikPrqka.js.br +0 -0
  21. package/dist/client/assets/{dialogs-Bj8FFl2x.js → dialogs-BmUIPXcN.js} +1 -1
  22. package/dist/client/assets/dialogs-BmUIPXcN.js.br +0 -0
  23. package/dist/client/assets/{doc-editor-ui-BH8MRKuA.js → doc-editor-ui-CaJBYiHg.js} +1 -1
  24. package/dist/client/assets/doc-editor-ui-CaJBYiHg.js.br +0 -0
  25. package/dist/client/assets/{feature-hint-DWydWhKm.js → feature-hint-vpNscUUv.js} +1 -1
  26. package/dist/client/assets/feature-hint-vpNscUUv.js.br +0 -0
  27. package/dist/client/assets/{first-run-checklist-BsNXJ4tD.js → first-run-checklist-CgaDjjZN.js} +1 -1
  28. package/dist/client/assets/first-run-checklist-CgaDjjZN.js.br +0 -0
  29. package/dist/client/assets/{hooks-panel-D_E1NTgA.js → hooks-panel-TdulqQf5.js} +1 -1
  30. package/dist/client/assets/hooks-panel-TdulqQf5.js.br +0 -0
  31. package/dist/client/assets/{index-D4M3fJKc.js → index-lmVxcD_1.js} +5 -5
  32. package/dist/client/assets/index-lmVxcD_1.js.br +0 -0
  33. package/dist/client/assets/{issues-panel-C6_0MyA4.js → issues-panel-BLoiDdNh.js} +1 -1
  34. package/dist/client/assets/issues-panel-BLoiDdNh.js.br +0 -0
  35. package/dist/client/assets/{lane-read-token-step-DXttYsgq.js → lane-read-token-step-X2KqN6l9.js} +1 -1
  36. package/dist/client/assets/lane-read-token-step-X2KqN6l9.js.br +0 -0
  37. package/dist/client/assets/{my-prs-panel-DuRLZ9L0.js → my-prs-panel-C_xLOpq-.js} +1 -1
  38. package/dist/client/assets/my-prs-panel-C_xLOpq-.js.br +0 -0
  39. package/dist/client/assets/{nyan-cat-aklN67ID.js → nyan-cat-BAQYmE2O.js} +1 -1
  40. package/dist/client/assets/nyan-cat-BAQYmE2O.js.br +0 -0
  41. package/dist/client/assets/{phone-shell-p8WFLDzl.js → phone-shell-DSnbJWH1.js} +1 -1
  42. package/dist/client/assets/phone-shell-DSnbJWH1.js.br +0 -0
  43. package/dist/client/assets/{plan-face-Bm_JROap.js → plan-face-vFKuex85.js} +1 -1
  44. package/dist/client/assets/plan-face-vFKuex85.js.br +0 -0
  45. package/dist/client/assets/{plan-render-DfZ_P6r-.js → plan-render--iyw83rY.js} +1 -1
  46. package/dist/client/assets/plan-render--iyw83rY.js.br +0 -0
  47. package/dist/client/assets/{pr-queue-columns-Cf1yDDiV.js → pr-queue-columns-BZFqTdin.js} +1 -1
  48. package/dist/client/assets/pr-queue-columns-BZFqTdin.js.br +0 -0
  49. package/dist/client/assets/{radar-panel-DIetSSTi.js → radar-panel-BKDMK0Lk.js} +1 -1
  50. package/dist/client/assets/radar-panel-BKDMK0Lk.js.br +0 -0
  51. package/dist/client/assets/{repo-roots-adder-CER_4Yvd.js → repo-roots-adder-Bm1IBvC4.js} +1 -1
  52. package/dist/client/assets/repo-roots-adder-Bm1IBvC4.js.br +0 -0
  53. package/dist/client/assets/{resume-dialog-4IBOj8kd.js → resume-dialog-Byn4G-Jb.js} +1 -1
  54. package/dist/client/assets/resume-dialog-Byn4G-Jb.js.br +0 -0
  55. package/dist/client/assets/{review-queue-panel-tqD57tzM.js → review-queue-panel-B0aKZfO7.js} +1 -1
  56. package/dist/client/assets/review-queue-panel-B0aKZfO7.js.br +0 -0
  57. package/dist/client/assets/{session-actions-SI8LwrQc.js → session-actions-DLDiK6a2.js} +2 -2
  58. package/dist/client/assets/session-actions-DLDiK6a2.js.br +0 -0
  59. package/dist/client/assets/{session-row-D9QsFPv7.js → session-row-C5nFcVXg.js} +1 -1
  60. package/dist/client/assets/session-row-C5nFcVXg.js.br +0 -0
  61. package/dist/client/assets/{settings-panel-y68xDs_R.js → settings-panel-BUWmlFhH.js} +2 -2
  62. package/dist/client/assets/settings-panel-BUWmlFhH.js.br +0 -0
  63. package/dist/client/assets/{trace-panel-Cxh0pJ6I.js → trace-panel-CqEJsUrm.js} +1 -1
  64. package/dist/client/assets/trace-panel-CqEJsUrm.js.br +0 -0
  65. package/dist/client/assets/{usage-panel-BnG9YQNm.js → usage-panel-Bt43ugnq.js} +1 -1
  66. package/dist/client/assets/usage-panel-Bt43ugnq.js.br +0 -0
  67. package/dist/client/assets/{your-day-tip-DiDGD8mM.js → your-day-tip-Dme5btPl.js} +1 -1
  68. package/dist/client/assets/your-day-tip-Dme5btPl.js.br +0 -0
  69. package/dist/client/index.html +4 -4
  70. package/dist/client/index.html.br +0 -0
  71. package/dist/server/index.js +1 -1
  72. package/package.json +1 -1
  73. package/dist/chunks/config-store-CK8FG1l9.js +0 -1
  74. package/dist/client/assets/agent-mark-Txvys8mc.js.br +0 -0
  75. package/dist/client/assets/arena-panel-CC3jIne3.js.br +0 -0
  76. package/dist/client/assets/benchmark-panel-BbUdvECy.js.br +0 -0
  77. package/dist/client/assets/boards-view-B-2IOr8U.js.br +0 -0
  78. package/dist/client/assets/community-panel-Ylki8blc.js.br +0 -0
  79. package/dist/client/assets/dialogs-Bj8FFl2x.js.br +0 -0
  80. package/dist/client/assets/doc-editor-ui-BH8MRKuA.js.br +0 -0
  81. package/dist/client/assets/feature-hint-DWydWhKm.js.br +0 -0
  82. package/dist/client/assets/first-run-checklist-BsNXJ4tD.js.br +0 -0
  83. package/dist/client/assets/hooks-panel-D_E1NTgA.js.br +0 -0
  84. package/dist/client/assets/index-D4M3fJKc.js.br +0 -0
  85. package/dist/client/assets/issues-panel-C6_0MyA4.js.br +0 -0
  86. package/dist/client/assets/lane-read-token-step-DXttYsgq.js.br +0 -0
  87. package/dist/client/assets/my-prs-panel-DuRLZ9L0.js.br +0 -0
  88. package/dist/client/assets/nyan-cat-aklN67ID.js.br +0 -0
  89. package/dist/client/assets/phone-shell-p8WFLDzl.js.br +0 -0
  90. package/dist/client/assets/plan-face-Bm_JROap.js.br +0 -0
  91. package/dist/client/assets/plan-render-DfZ_P6r-.js.br +0 -0
  92. package/dist/client/assets/pr-queue-columns-Cf1yDDiV.js.br +0 -0
  93. package/dist/client/assets/radar-panel-DIetSSTi.js.br +0 -0
  94. package/dist/client/assets/repo-roots-adder-CER_4Yvd.js.br +0 -0
  95. package/dist/client/assets/resume-dialog-4IBOj8kd.js.br +0 -0
  96. package/dist/client/assets/review-queue-panel-tqD57tzM.js.br +0 -0
  97. package/dist/client/assets/session-actions-SI8LwrQc.js.br +0 -0
  98. package/dist/client/assets/session-row-D9QsFPv7.js.br +0 -0
  99. package/dist/client/assets/settings-panel-y68xDs_R.js.br +0 -0
  100. package/dist/client/assets/trace-panel-Cxh0pJ6I.js.br +0 -0
  101. package/dist/client/assets/usage-panel-BnG9YQNm.js.br +0 -0
  102. package/dist/client/assets/your-day-tip-DiDGD8mM.js.br +0 -0
@@ -64,7 +64,7 @@ var OWNED_COMMAND_RUNNERS = {
64
64
  return await runDoctor() ? 0 : 1;
65
65
  },
66
66
  pair: async ({ values }) => {
67
- const { runPairCli } = await import("../chunks/pair-cli-gFG48z3f.js");
67
+ const { runPairCli } = await import("../chunks/pair-cli-DwHsuMKf.js");
68
68
  return runPairCli({
69
69
  isListing: values.list === true,
70
70
  revokeDeviceId: typeof values.revoke === "string" ? values.revoke : null,
@@ -76,7 +76,7 @@ var OWNED_COMMAND_RUNNERS = {
76
76
  return runAgentSetupCli();
77
77
  },
78
78
  settings: async (parsed) => {
79
- const { runParsedSettingsCli } = await import("../chunks/settings-cli-Drgmjnk1.js");
79
+ const { runParsedSettingsCli } = await import("../chunks/settings-cli-B_EZcvQj.js");
80
80
  return runParsedSettingsCli(parsed);
81
81
  },
82
82
  "pr-flows": async (parsed) => {
@@ -185,7 +185,7 @@ async function readDeclaredCustomAgents() {
185
185
  declared: [],
186
186
  error: null
187
187
  };
188
- const { loadConfigFile } = await import("../chunks/config-store-CK8FG1l9.js");
188
+ const { loadConfigFile } = await import("../chunks/config-store-B0sTkXcn.js");
189
189
  try {
190
190
  const loaded = loadConfigFile(decided.path, { exitOnError: false });
191
191
  if (!loaded.config) return {
@@ -261,7 +261,7 @@ async function runDoctor() {
261
261
  }
262
262
  switchSection("Agents");
263
263
  try {
264
- const { listAgentIds, describeAgentResolvability, setCustomAgents } = await import("../chunks/adapters-7j7r7afs.js");
264
+ const { listAgentIds, describeAgentResolvability, setCustomAgents } = await import("../chunks/adapters-BkRfCPly.js");
265
265
  const declaredCustomAgents = await readDeclaredCustomAgents();
266
266
  if (declaredCustomAgents.error) line("config", declaredCustomAgents.error);
267
267
  setCustomAgents(declaredCustomAgents.declared);
@@ -12,7 +12,7 @@ import { n as buildAgentEnv } from "./spawn-env-B5_go00h.js";
12
12
  import { n as shellQuote, t as buildHookCommand } from "./hook-command-core-qTNK-xMF.js";
13
13
  import { i as isSpinnerChar, n as classifyAgentTitle, r as isBrailleChar, t as grok } from "./grok-BjfxvxFV.js";
14
14
  import { O as nextBackoffMs, c as loadedJsonValue, d as writeJsonAtomicSync, f as writeTextAtomic, p as writeTextAtomicSync, s as loadJsonStateFileSync, t as appendJsonLine } from "./json-file-AKRVPqG1.js";
15
- import { C as isExperimentalBuild, S as compareReleaseVersions, o as glimmervoidHomeDir } from "./config-store-Bslvbdpz.js";
15
+ import { C as isExperimentalBuild, S as compareReleaseVersions, o as glimmervoidHomeDir } from "./config-store-CqyR7WrE.js";
16
16
  import { n as buildAgentSpawnCommand, r as resolveAgentCommand, t as kimi } from "./kimi-BDdLoKZh.js";
17
17
  import { _ as renderCodexHookTables, c as CODEX_HOME_PROFILE, f as QWEN_HOME_PROFILE, l as COPILOT_HOME_PROFILE, p as doesProjectConfigTurnHooksOff, t as AGENT_HOME_CONFIG_NAME, u as GEMINI_HOME_PROFILE, v as renderCodexHooksBlock, x as cleanJsonc } from "./agent-home-core-kOGl6Fwb.js";
18
18
  import { c as realAgentHome, i as holdPreparedAgentHome, l as releaseAgentHome, n as generatedAgentHomePath, s as readOptionalText } from "./agent-home-DJ4vlmD4.js";
@@ -1 +1 @@
1
- export { o as describeAgentResolvability, d as listAgentIds, m as setCustomAgents } from "./adapters-1k0tYLEp.js";
1
+ export { o as describeAgentResolvability, d as listAgentIds, m as setCustomAgents } from "./adapters-BjWZak_C.js";
@@ -0,0 +1 @@
1
+ export { s as loadConfigFile } from "./config-store-CqyR7WrE.js";
@@ -2246,6 +2246,7 @@ var LANES_QUESTION_MANAGER = {
2246
2246
  description: "Default for every repository. Questions with a risk word or no matching rule still come to you.",
2247
2247
  control: "toggle",
2248
2248
  keywords: [
2249
+ "experimental",
2249
2250
  "questions",
2250
2251
  "rules",
2251
2252
  "automation",
@@ -2260,6 +2261,7 @@ var LANES_QUESTION_MANAGER = {
2260
2261
  description: "Repositories, by path or owner/name, that do the opposite of the default.",
2261
2262
  control: "list",
2262
2263
  keywords: [
2264
+ "experimental",
2263
2265
  "repositories",
2264
2266
  "projects",
2265
2267
  "per project"
@@ -21,16 +21,16 @@ import { a as mcpLaunchFor, o as parsePresentedCredential } from "./agent-config
21
21
  import { t as DETACHED_DESKTOP_BUS_ADDRESS } from "./spawn-env-B5_go00h.js";
22
22
  import { n as shellQuote } from "./hook-command-core-qTNK-xMF.js";
23
23
  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, f as writeTextAtomic, 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";
24
- 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-Bslvbdpz.js";
24
+ 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-CqyR7WrE.js";
25
25
  import { i as resolveArgvCommandMatches, t as kimi } from "./kimi-BDdLoKZh.js";
26
- import { $ as decideFileRead, $t as listClaudeGlobalConfigPathCandidates, A as openContainedFile, At as HOOK_EVENTS, B as TRACE_TAIL_SCAN_BYTES, Bt as hooksForProject, C as normalizeSha, Ct as mergeGenerationRollups, D as parseResolvedSha, Dt as totalTokensOf$1, E as parseRegistryLatest, Et as shouldReplace, F as framePathPaste, Ft as writeSessionSettings, G as planContiguousRead, Gt as upsertHook, H as completeLineBytes, Ht as rawStoredHooks, I as imageMimeForUploadFilename, It as HOOK_EVENT_CATALOG, J as codexFallbackRoots, Jt as sweepOrphanedHostScratch, K as resumeOffsetFrom, Kt as HOOK_TOOLS, L as isSafePathSegment, Lt as ID_RE, M as buildUploadFilename, Mt as buildHookSettings, N as decideUploadType, Nt as generateToken, O as pickNewestPublished, Ot as vendorUsageEntry, P as exceedsUploadCap, Pt as sweepOrphans, Q as continuationDelayMs, Qt as removalsJournalPath, R as planUploadRetention, Rt as agentHookGroupOf, S as isCheckFresh, St as isWithinGenerationRecencyWindow, T as parseRegistryDeprecation, Tt as parseUsageLine, U as containmentRefusalReason, Ut as readStoredHooks, V as committedOffsetFromTraceTailOrNull, Vt as normalizeHook, W as isOversizedPartialLine, Wt as removeHook, X as codexRootCandidates, Xt as appendRemovalRecordSync, Y as codexHomes, Yt as appendRemovalRecord, Z as codexSessionIdFromPath, Zt as recordSweptPath, _ as readHostCodexVersion, _t as emptyTotals, a as customAgentFingerprint, at as passOutcome, b as decideInstallFlavor, bt as foldReplacementIntoGenerationRollup, c as hookProfileOf, ct as scopedClaudeRoots, d as listAgentIds, dt as shouldPersistWarehouse, et as dedupeCodexFiles, f as resetCommandCache, ft as splitLines, g as codex, gt as dedupKeys, h as folderTrustRoot, ht as addEntryToTotals, i as commandFor, it as kimiHomes, j as MAX_UPLOAD_BYTES, jt as PLAN_HOLD_RELEASE_MS, k as shortSha$1, kt as claudeCode, l as isBuiltInAgentId, lt as sessionsRootCandidates, m as setCustomAgents, mt as parseKimiUsageLine, n as DEFAULT_AGENT_ID$1, nt as grokHomes, o as describeAgentResolvability, ot as projectDirCandidates, p as resolveAdapter, pt as kimiDedupIdentity, q as withCommittedOffset, qt as makeHostScratchDirectory, r as cachedAgentResolvability, rt as isUsageFile, s as getAdapter, st as resolveProjectsDirs, tt as expandTilde, u as isKnownAgentId, ut as shouldEvaluateDespiteIoFailures, v as requestCodexAppServer, vt as expandAdvisorIterations, w as normalizeUpdateChannel, wt as parseJsonLine$1, x as decideUpdateStatus, xt as identityFromRelPath, y as NODE_PTY_INSTALL_SCRIPT_FLAG, yt as foldEntryIntoGenerationRollup, z as MAX_TRANSCRIPT_READ_BYTES, zt as appendUserHooks } from "./adapters-1k0tYLEp.js";
26
+ import { $ as decideFileRead, $t as listClaudeGlobalConfigPathCandidates, A as openContainedFile, At as HOOK_EVENTS, B as TRACE_TAIL_SCAN_BYTES, Bt as hooksForProject, C as normalizeSha, Ct as mergeGenerationRollups, D as parseResolvedSha, Dt as totalTokensOf$1, E as parseRegistryLatest, Et as shouldReplace, F as framePathPaste, Ft as writeSessionSettings, G as planContiguousRead, Gt as upsertHook, H as completeLineBytes, Ht as rawStoredHooks, I as imageMimeForUploadFilename, It as HOOK_EVENT_CATALOG, J as codexFallbackRoots, Jt as sweepOrphanedHostScratch, K as resumeOffsetFrom, Kt as HOOK_TOOLS, L as isSafePathSegment, Lt as ID_RE, M as buildUploadFilename, Mt as buildHookSettings, N as decideUploadType, Nt as generateToken, O as pickNewestPublished, Ot as vendorUsageEntry, P as exceedsUploadCap, Pt as sweepOrphans, Q as continuationDelayMs, Qt as removalsJournalPath, R as planUploadRetention, Rt as agentHookGroupOf, S as isCheckFresh, St as isWithinGenerationRecencyWindow, T as parseRegistryDeprecation, Tt as parseUsageLine, U as containmentRefusalReason, Ut as readStoredHooks, V as committedOffsetFromTraceTailOrNull, Vt as normalizeHook, W as isOversizedPartialLine, Wt as removeHook, X as codexRootCandidates, Xt as appendRemovalRecordSync, Y as codexHomes, Yt as appendRemovalRecord, Z as codexSessionIdFromPath, Zt as recordSweptPath, _ as readHostCodexVersion, _t as emptyTotals, a as customAgentFingerprint, at as passOutcome, b as decideInstallFlavor, bt as foldReplacementIntoGenerationRollup, c as hookProfileOf, ct as scopedClaudeRoots, d as listAgentIds, dt as shouldPersistWarehouse, et as dedupeCodexFiles, f as resetCommandCache, ft as splitLines, g as codex, gt as dedupKeys, h as folderTrustRoot, ht as addEntryToTotals, i as commandFor, it as kimiHomes, j as MAX_UPLOAD_BYTES, jt as PLAN_HOLD_RELEASE_MS, k as shortSha$1, kt as claudeCode, l as isBuiltInAgentId, lt as sessionsRootCandidates, m as setCustomAgents, mt as parseKimiUsageLine, n as DEFAULT_AGENT_ID$1, nt as grokHomes, o as describeAgentResolvability, ot as projectDirCandidates, p as resolveAdapter, pt as kimiDedupIdentity, q as withCommittedOffset, qt as makeHostScratchDirectory, r as cachedAgentResolvability, rt as isUsageFile, s as getAdapter, st as resolveProjectsDirs, tt as expandTilde, u as isKnownAgentId, ut as shouldEvaluateDespiteIoFailures, v as requestCodexAppServer, vt as expandAdvisorIterations, w as normalizeUpdateChannel, wt as parseJsonLine$1, x as decideUpdateStatus, xt as identityFromRelPath, y as NODE_PTY_INSTALL_SCRIPT_FLAG, yt as foldEntryIntoGenerationRollup, z as MAX_TRANSCRIPT_READ_BYTES, zt as appendUserHooks } from "./adapters-BjWZak_C.js";
27
27
  import { C as matchPathPatterns, S as createTsconfigPathsResolver, T as resolveExtendsPath, d as KIMI_HOME_PROFILE, i as AGENT_HOME_PROFILES, w as parseTsconfigJsonc } from "./agent-home-core-kOGl6Fwb.js";
28
28
  import { c as realAgentHome, d as createHeldSessionTempFolder, f as releaseSessionLock, m as trashSessionTempFolderOnceUnheld, n as generatedAgentHomePath, p as sessionIdOfLockFile, u as releaseUnheldAgentHomeSecrets } from "./agent-home-DJ4vlmD4.js";
29
29
  import { _ as decideHostAllowed, c as approvedPackPanels, d as packRow, f as pendingPackNote, g as readCappedBody, h as parseJsonBody, l as approvedPackThemes, m as decodeHeaderText, n as readPacksForAgent, p as declaredContentLength, u as packFileHeaders } from "./pack-agent-CkB9cms5.js";
30
30
  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";
31
- 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-B2Tl_OUQ.js";
31
+ 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-CWZDCKrX.js";
32
32
  import { A as shouldTellBranchMoved, B as withPrActionRun, E as prFlowsConfig, H as withRuleRun, I as visibleRun, L as withHandled, N as teammateThreadItems, O as savedRuleFor, P as threadCandidates, R as withInterruptedRuns, S as plannedActions, T as prFlowSetup, V as withReopened, _ as itemLocation, b as packPathsOf, d as acceptReport, f as branchMovedNote, g as flaggingReviewers, h as fixLocallyPrompt, i as packsStatePath, j as sourceCandidates$1, k as scopedToRepo, l as PacksState, o as readPackDir, p as commandFingerprint, r as packDirsUnder, s as PACK_FILE_NAME, t as PACKS_DIR_NAME, v as mergeItems, w as prActionRunAfterExit, z as withOnlyOpenPrs } from "./pack-files-Cfan8-2u.js";
33
- import { n as configFileViewOf, u as readSettingsForAgent } from "./settings-readout-core-B58zs6gp.js";
33
+ import { n as configFileViewOf, u as readSettingsForAgent } from "./settings-readout-core-PKhnFzgs.js";
34
34
  import { t as createPrFlowsExternal } from "./pr-flows-external-DfmjUfce.js";
35
35
  import { createRequire } from "node:module";
36
36
  import fs, { readFileSync } from "node:fs";
@@ -13854,6 +13854,16 @@ function createGithubStorePoller({ github, now, isDashboardConnected, exclusive,
13854
13854
  function recordReadFailure(error) {
13855
13855
  log.warn(`[github-store] ${errorMessage(error)}`);
13856
13856
  }
13857
+ function warnUnreadable(key) {
13858
+ log.warn(`[github-store] ${key} unreadable this refresh; keeping the last copy`);
13859
+ }
13860
+ function setOrDropLight(key, previousLight) {
13861
+ if (previousLight) {
13862
+ lightByKey.set(key, previousLight);
13863
+ return;
13864
+ }
13865
+ lightByKey.delete(key);
13866
+ }
13857
13867
  function recordSuccess() {
13858
13868
  pollingError = null;
13859
13869
  failureStreak = 0;
@@ -13865,24 +13875,21 @@ function createGithubStorePoller({ github, now, isDashboardConnected, exclusive,
13865
13875
  if (keys.length === 0) return {
13866
13876
  details: [],
13867
13877
  nodes: [],
13868
- missingKeys: []
13878
+ goneKeys: [],
13879
+ unreadableKeys: []
13869
13880
  };
13870
13881
  const references = keys.flatMap((key) => {
13871
13882
  const reference = githubStorePrReference(key);
13872
13883
  return reference ? [reference] : [];
13873
13884
  });
13874
- const detailsByKey = await github.prDetails(references);
13875
- const nodes = keys.flatMap((key) => {
13876
- const node = detailsByKey.get(key);
13877
- return node ? [node] : [];
13878
- });
13879
- const missingKeys = keys.filter((key) => !detailsByKey.has(key));
13880
- for (const key of missingKeys) unavailableKeys.add(key);
13881
- for (const node of nodes) unavailableKeys.delete(comparablePrKey({
13882
- repo: node.repository.nameWithOwner,
13883
- number: node.number
13885
+ const detailRead = await github.prDetails(references);
13886
+ const foundNodeByKey = new Map(keys.flatMap((key) => {
13887
+ const node = detailRead.byKey.get(key);
13888
+ return node ? [[key, node]] : [];
13884
13889
  }));
13885
- const openNodes = nodes.filter((node) => node.state === "OPEN");
13890
+ const goneKeys = keys.filter((key) => detailRead.goneKeys.has(key));
13891
+ for (const key of goneKeys) unavailableKeys.add(key);
13892
+ const openNodes = [...foundNodeByKey.values()].filter((node) => node.state === "OPEN");
13886
13893
  const behindCounts = openNodes.length === 0 ? /* @__PURE__ */ new Map() : await github.behindCounts(openNodes.map((node) => ({
13887
13894
  repo: node.repository.nameWithOwner,
13888
13895
  number: node.number,
@@ -13895,6 +13902,22 @@ function createGithubStorePoller({ github, now, isDashboardConnected, exclusive,
13895
13902
  })));
13896
13903
  const comparableBehindCounts = new Map([...behindCounts].map(([key, count]) => [key.toLowerCase(), count]));
13897
13904
  const comparableThreads = new Map([...threadsByPr].map(([key, threads]) => [key.toLowerCase(), threads]));
13905
+ const isFullyRead = (node) => {
13906
+ if (node.state !== "OPEN") return true;
13907
+ const key = comparablePrKey({
13908
+ repo: node.repository.nameWithOwner,
13909
+ number: node.number
13910
+ });
13911
+ return comparableBehindCounts.has(key) && (!hasUnresolvedThreads(node) || comparableThreads.has(key));
13912
+ };
13913
+ const readNodeByKey = new Map([...foundNodeByKey].filter(([, node]) => isFullyRead(node)));
13914
+ const nodes = [...readNodeByKey.values()];
13915
+ for (const node of nodes) unavailableKeys.delete(comparablePrKey({
13916
+ repo: node.repository.nameWithOwner,
13917
+ number: node.number
13918
+ }));
13919
+ const unreadableKeys = keys.filter((key) => !readNodeByKey.has(key) && !detailRead.goneKeys.has(key));
13920
+ for (const key of unreadableKeys) warnUnreadable(key);
13898
13921
  return {
13899
13922
  details: nodes.map((node) => {
13900
13923
  const key = comparablePrKey({
@@ -13904,7 +13927,8 @@ function createGithubStorePoller({ github, now, isDashboardConnected, exclusive,
13904
13927
  return normalizeGithubPr(node, node.state === "OPEN" ? comparableBehindCounts.get(key) ?? null : null, comparableThreads.get(key) ?? []);
13905
13928
  }),
13906
13929
  nodes,
13907
- missingKeys
13930
+ goneKeys,
13931
+ unreadableKeys
13908
13932
  };
13909
13933
  }
13910
13934
  function watchedKeys() {
@@ -13963,9 +13987,14 @@ function createGithubStorePoller({ github, now, isDashboardConnected, exclusive,
13963
13987
  const reference = githubStorePrReference(key);
13964
13988
  return reference ? [reference] : [];
13965
13989
  });
13966
- const refreshedLightByKey = references.length > 0 ? await github.prsLightByKey(references) : /* @__PURE__ */ new Map();
13967
- const missingLightKeys = keysToRead.filter((key) => !refreshedLightByKey.has(key));
13968
- const readKeys = new Set(keysToRead);
13990
+ const lightRead = references.length > 0 ? await github.prsLightByKey(references) : {
13991
+ byKey: /* @__PURE__ */ new Map(),
13992
+ goneKeys: /* @__PURE__ */ new Set()
13993
+ };
13994
+ const goneLightKeys = keysToRead.filter((key) => lightRead.goneKeys.has(key));
13995
+ const unreadableLightKeys = new Set(keysToRead.filter((key) => !lightRead.byKey.has(key) && !lightRead.goneKeys.has(key)));
13996
+ for (const key of unreadableLightKeys) warnUnreadable(key);
13997
+ const readKeys = new Set(keysToRead.filter((key) => !unreadableLightKeys.has(key)));
13969
13998
  const currentLightByKey = new Map([...lightByKey].filter(([key]) => knownKeys.has(key) && !readKeys.has(key)));
13970
13999
  const membershipLightKeys = /* @__PURE__ */ new Set();
13971
14000
  for (const refreshed of watchResults) for (const node of refreshed.returnedNodes) {
@@ -13976,16 +14005,12 @@ function createGithubStorePoller({ github, now, isDashboardConnected, exclusive,
13976
14005
  membershipLightKeys.add(key);
13977
14006
  if (!readKeys.has(key)) currentLightByKey.set(key, node);
13978
14007
  }
13979
- for (const [key, node] of refreshedLightByKey) currentLightByKey.set(key, node);
14008
+ for (const [key, node] of lightRead.byKey) currentLightByKey.set(key, node);
13980
14009
  const changes = githubPrChangeSet(lightByKey, [...currentLightByKey.values()]);
13981
14010
  const changedKeys = new Set(changes.detailKeys);
13982
14011
  for (const key of unavailableKeys) if (!union.detailKeys.has(key)) unavailableKeys.delete(key);
13983
14012
  const isMergeStateUnsettledAfterLightRead = (key) => (readKeys.has(key) || membershipLightKeys.has(key)) && prs[key]?.state === "OPEN" && prs[key]?.mergeStateStatus === "UNKNOWN";
13984
- const detailKeys = [...union.detailKeys].filter((key) => currentLightByKey.has(key) && (changedKeys.has(key) || isMergeStateUnsettledAfterLightRead(key) || !prs[key] && !unavailableKeys.has(key)));
13985
- const keysRereadOnlyForMergeState = new Set(detailKeys.filter((key) => !changedKeys.has(key) && isMergeStateUnsettledAfterLightRead(key)));
13986
- const { details, nodes, missingKeys } = await fetchDetails(detailKeys);
13987
- const lostDetailKeys = missingKeys.filter((key) => !keysRereadOnlyForMergeState.has(key));
13988
- for (const key of missingKeys.filter((key) => keysRereadOnlyForMergeState.has(key))) unavailableKeys.delete(key);
14013
+ const { details, nodes, goneKeys: goneDetailKeys, unreadableKeys: unreadableDetailKeys } = await fetchDetails([...union.detailKeys].filter((key) => currentLightByKey.has(key) && (changedKeys.has(key) || isMergeStateUnsettledAfterLightRead(key) || !prs[key] && !unavailableKeys.has(key))));
13989
14014
  for (const refreshed of watchResults) {
13990
14015
  if (watches.get(refreshed.watch.name) !== refreshed.watch) continue;
13991
14016
  Object.assign(refreshed.watch, {
@@ -13999,19 +14024,21 @@ function createGithubStorePoller({ github, now, isDashboardConnected, exclusive,
13999
14024
  membershipRevision: pollMembershipRevision
14000
14025
  });
14001
14026
  }
14027
+ const lightBeforeTick = lightByKey;
14002
14028
  lightByKey = changes.lightByKey;
14003
14029
  for (const node of nodes) lightByKey.set(comparablePrKey({
14004
14030
  repo: node.repository.nameWithOwner,
14005
14031
  number: node.number
14006
14032
  }), node);
14007
- for (const key of missingLightKeys) unavailableKeys.add(key);
14033
+ for (const key of unreadableDetailKeys) setOrDropLight(key, lightBeforeTick.get(key));
14034
+ for (const key of goneLightKeys) unavailableKeys.add(key);
14008
14035
  const removedKeys = [.../* @__PURE__ */ new Set([
14009
14036
  ...changes.removedKeys,
14010
- ...missingLightKeys.filter((key) => prs[key]),
14011
- ...lostDetailKeys.filter((key) => prs[key])
14037
+ ...goneLightKeys.filter((key) => prs[key]),
14038
+ ...goneDetailKeys.filter((key) => prs[key])
14012
14039
  ])];
14013
14040
  prs = applyGithubPrDetails(prs, details, removedKeys);
14014
- for (const key of [...keysToRead, ...membershipLightKeys]) lastLightPolledAtByKey.set(key, tickStartedAt);
14041
+ for (const key of [...readKeys, ...membershipLightKeys]) lastLightPolledAtByKey.set(key, tickStartedAt);
14015
14042
  for (const key of lastLightPolledAtByKey.keys()) if (!knownKeys.has(key)) lastLightPolledAtByKey.delete(key);
14016
14043
  if (!watchNames && isDefaultLightDue) lastLightPolledAt = tickStartedAt;
14017
14044
  lastRefreshedAt = now();
@@ -14167,13 +14194,17 @@ function createGithubStorePoller({ github, now, isDashboardConnected, exclusive,
14167
14194
  refreshTimersByKey.delete(comparableKey);
14168
14195
  readWhenAllowed(async () => {
14169
14196
  const previousError = pollingError;
14170
- const lightNode = (await github.prsLightByKey([reference])).get(comparableKey);
14197
+ const lightRead = await github.prsLightByKey([reference]);
14198
+ const lightNode = lightRead.byKey.get(comparableKey);
14199
+ if (!lightNode && !lightRead.goneKeys.has(comparableKey)) {
14200
+ warnUnreadable(comparableKey);
14201
+ return;
14202
+ }
14171
14203
  const previousLight = lightByKey.get(comparableKey);
14172
14204
  const changes = githubPrChangeSet(new Map(previousLight ? [[comparableKey, previousLight]] : []), lightNode ? [lightNode] : []);
14173
- const { details, nodes, missingKeys } = await fetchDetails(lightNode && !prs[comparableKey] ? [comparableKey] : changes.detailKeys);
14174
- const removedKeys = [.../* @__PURE__ */ new Set([...changes.removedKeys, ...missingKeys])].filter((key) => prs[key]);
14175
- lightByKey.delete(comparableKey);
14176
- if (lightNode) lightByKey.set(comparableKey, lightNode);
14205
+ const { details, nodes, goneKeys, unreadableKeys } = await fetchDetails(lightNode && !prs[comparableKey] ? [comparableKey] : changes.detailKeys);
14206
+ const removedKeys = [.../* @__PURE__ */ new Set([...changes.removedKeys, ...goneKeys])].filter((key) => prs[key]);
14207
+ setOrDropLight(comparableKey, unreadableKeys.includes(comparableKey) ? previousLight : lightNode);
14177
14208
  prs = applyGithubPrDetails(prs, details, removedKeys);
14178
14209
  for (const node of nodes) lightByKey.set(comparableKey, node);
14179
14210
  lastRefreshedAt = now();
@@ -36782,7 +36813,10 @@ var GRAPHQL_RESPONSE = z.object({
36782
36813
  errors: z.array(z.unknown()).optional()
36783
36814
  }).passthrough();
36784
36815
  var GRAPHQL_ERROR_ALIAS = z.object({ path: z.tuple([z.string()]).rest(z.union([z.string(), z.number()])) });
36785
- var GRAPHQL_NOT_FOUND_ERROR = GRAPHQL_ERROR_ALIAS.extend({ type: z.literal("NOT_FOUND") });
36816
+ var GRAPHQL_ALIAS_NOT_FOUND_ERROR = z.object({
36817
+ type: z.literal("NOT_FOUND"),
36818
+ path: z.union([z.tuple([z.string()]), z.tuple([z.string(), z.string()])])
36819
+ });
36786
36820
  var PR_DIFF = z.string().refine((diff) => Buffer.byteLength(diff, "utf8") <= PR_DIFF_MAX_BYTES);
36787
36821
  //#endregion
36788
36822
  //#region server/github/pr-gh/pr-gh-parsing.ts
@@ -36803,10 +36837,20 @@ function aliasesOfErrors(errors) {
36803
36837
  for (const error of errors) {
36804
36838
  const parsed = GRAPHQL_ERROR_ALIAS.safeParse(error);
36805
36839
  if (!parsed.success) return null;
36840
+ if (isWorkflowRunPath(parsed.data.path)) continue;
36806
36841
  aliases.add(parsed.data.path[0]);
36807
36842
  }
36808
36843
  return aliases;
36809
36844
  }
36845
+ function isWorkflowRunPath(path) {
36846
+ return path.some((segment, index) => segment === "checkSuite" && path[index + 1] === "workflowRun");
36847
+ }
36848
+ function aliasesReportedGone(errors) {
36849
+ return new Set(errors.flatMap((error) => {
36850
+ const parsed = GRAPHQL_ALIAS_NOT_FOUND_ERROR.safeParse(error);
36851
+ return parsed.success ? [parsed.data.path[0]] : [];
36852
+ }));
36853
+ }
36810
36854
  function isPrNumber(number) {
36811
36855
  return Number.isSafeInteger(number) && number > 0;
36812
36856
  }
@@ -36959,6 +37003,12 @@ var SEARCH_PAGE_SIZE = 100;
36959
37003
  var MAX_SEARCH_PAGES = 5;
36960
37004
  var MAX_REVIEW_THREAD_PAGES = 5;
36961
37005
  var REVIEW_SNAPSHOT_BATCH_SIZE = 25;
37006
+ function aliasedBatchFailure(response, errorCount, hasData, hasUnattributedError, isStrict) {
37007
+ if (isStrict && !response.ok && errorCount === 0) return response.err.trim() || "gh graphql batch failed";
37008
+ if (!hasData) return "invalid gh graphql response";
37009
+ if (isStrict && hasUnattributedError) return response.err.trim() || "gh graphql returned an error outside any pull request";
37010
+ return null;
37011
+ }
36962
37012
  function createPrGh(cwd, commandRunner = run) {
36963
37013
  async function runGh(args, input, preserveOutput = false, timeoutMs = GH_READ_TIMEOUT_MS) {
36964
37014
  try {
@@ -36982,7 +37032,8 @@ function createPrGh(cwd, commandRunner = run) {
36982
37032
  if (validators.lastModified !== void 0) args.push("-H", `If-Modified-Since: ${validators.lastModified}`);
36983
37033
  return conditionalGetResult(await runGh([...args, path], void 0, true));
36984
37034
  }
36985
- async function forEachAliasedPr(prs, buildQuery, visit, batchSize = REVIEW_SNAPSHOT_BATCH_SIZE, requireComplete = false, failurePolicy = "skip-failed-batch") {
37035
+ async function forEachAliasedPr(prs, buildQuery, readAlias, batchSize = REVIEW_SNAPSHOT_BATCH_SIZE, requireComplete = false, failurePolicy = "skip-failed-batch") {
37036
+ const gonePrs = [];
36986
37037
  for (let index = 0; index < prs.length; index += batchSize) {
36987
37038
  const batch = prs.slice(index, index + batchSize);
36988
37039
  const response = await runGh([
@@ -36993,29 +37044,29 @@ function createPrGh(cwd, commandRunner = run) {
36993
37044
  ]);
36994
37045
  const parsed = GRAPHQL_RESPONSE.safeParse(parseJsonOrNull(response.out));
36995
37046
  const errors = parsed.success ? parsed.data.errors ?? [] : [];
36996
- const areAllErrorsNotFound = errors.every((error) => GRAPHQL_NOT_FOUND_ERROR.safeParse(error).success);
36997
- const hasTransportFailed = !response.ok && errors.length === 0;
36998
- const shouldThrowOnBatchFailure = failurePolicy !== "skip-failed-batch";
36999
- const shouldThrowOnAnyError = failurePolicy === "throw-on-any-error";
37000
- if (shouldThrowOnBatchFailure && hasTransportFailed) throw new Error(response.err.trim() || "gh graphql batch failed");
37001
- if (shouldThrowOnAnyError && !response.ok && !areAllErrorsNotFound) throw new Error(response.err.trim() || "gh graphql batch failed");
37002
- if (shouldThrowOnBatchFailure && (!parsed.success || !parsed.data.data)) throw new Error("invalid gh graphql response");
37003
- if (shouldThrowOnAnyError && !areAllErrorsNotFound) throw new Error("gh graphql returned errors");
37004
- const erroredAliases = requireComplete ? aliasesOfErrors(errors) : /* @__PURE__ */ new Set();
37005
- if (shouldThrowOnBatchFailure && erroredAliases === null) throw new Error(response.err.trim() || "gh graphql returned an error outside any pull request");
37006
- if (erroredAliases === null) continue;
37007
- if (requireComplete && hasTransportFailed) continue;
37008
37047
  const data = parsed.success ? parsed.data.data : null;
37009
- if (!data) continue;
37048
+ const erroredAliases = aliasesOfErrors(errors);
37049
+ const isStrict = requireComplete || failurePolicy === "throw-on-batch-failure";
37050
+ const batchFailure = aliasedBatchFailure(response, errors.length, Boolean(data), erroredAliases === null, isStrict);
37051
+ if (batchFailure !== null && failurePolicy === "throw-on-batch-failure") throw new Error(batchFailure);
37052
+ if (batchFailure !== null || !data) continue;
37053
+ const goneAliases = aliasesReportedGone(errors);
37010
37054
  for (const [position, pr] of batch.entries()) {
37011
- if (erroredAliases.has(`pr${position}`)) continue;
37012
- visit(pr, data[`pr${position}`]);
37055
+ const alias = `pr${position}`;
37056
+ const hasAliasError = erroredAliases?.has(alias) ?? false;
37057
+ if (goneAliases.has(alias)) {
37058
+ gonePrs.push(pr);
37059
+ continue;
37060
+ }
37061
+ if (hasAliasError && requireComplete) continue;
37062
+ if (readAlias(pr, data[alias]) === "gone" && !hasAliasError) gonePrs.push(pr);
37013
37063
  }
37014
37064
  }
37065
+ return gonePrs;
37015
37066
  }
37016
37067
  async function pagedReviewThreads(repo, number) {
37017
37068
  const parts = repoParts(repo);
37018
- if (!parts || !isPrNumber(number)) return [];
37069
+ if (!parts || !isPrNumber(number)) return null;
37019
37070
  const threads = [];
37020
37071
  let cursor = null;
37021
37072
  for (let page = 1; page <= MAX_REVIEW_THREAD_PAGES; page += 1) {
@@ -37033,11 +37084,11 @@ function createPrGh(cwd, commandRunner = run) {
37033
37084
  `number=${number}`,
37034
37085
  ...cursorArgs
37035
37086
  ]);
37036
- if (!response.ok) return [];
37087
+ if (!response.ok) return null;
37037
37088
  const parsed = MyPrThreadsResponse.safeParse(parseJsonOrNull(response.out));
37038
- if (!parsed.success || parsed.data.errors?.length) return [];
37089
+ if (!parsed.success || parsed.data.errors?.length) return null;
37039
37090
  const reviewThreads = parsed.data.data.repository?.pullRequest?.reviewThreads;
37040
- if (!reviewThreads) return threads;
37091
+ if (!reviewThreads) return null;
37041
37092
  for (const thread of reviewThreads.nodes) {
37042
37093
  const valid = MyPrThreadNode.safeParse(thread);
37043
37094
  if (valid.success) threads.push(valid.data);
@@ -37238,25 +37289,34 @@ function createPrGh(cwd, commandRunner = run) {
37238
37289
  },
37239
37290
  async prsLightByKey(prs) {
37240
37291
  const lightByKey = /* @__PURE__ */ new Map();
37241
- await forEachAliasedPr([...new Map(uniqueValidPrs(prs).map((pr) => [comparablePrKey(pr), pr])).values()], githubPrsLightByKeyQuery, (pr, repository) => {
37292
+ const gonePrs = await forEachAliasedPr([...new Map(uniqueValidPrs(prs).map((pr) => [comparablePrKey(pr), pr])).values()], githubPrsLightByKeyQuery, (pr, repository) => {
37242
37293
  const parsed = GITHUB_PR_LIGHT_REPOSITORY.safeParse(repository);
37243
- if (!parsed.success) throw new Error("invalid gh graphql light PR response");
37294
+ if (!parsed.success) return "unreadable";
37244
37295
  const node = parsed.data?.pullRequest;
37245
- if (!node) return;
37296
+ if (!node) return "gone";
37246
37297
  lightByKey.set(comparablePrKey(pr), node);
37247
- }, 50, true, "throw-on-any-error");
37248
- return lightByKey;
37298
+ return "found";
37299
+ }, 50, true, "throw-on-batch-failure");
37300
+ return {
37301
+ byKey: lightByKey,
37302
+ goneKeys: new Set(gonePrs.map(comparablePrKey))
37303
+ };
37249
37304
  },
37250
37305
  async prDetails(prs) {
37251
37306
  const detailsByKey = /* @__PURE__ */ new Map();
37252
- await forEachAliasedPr([...new Map(uniqueValidPrs(prs).map((pr) => [comparablePrKey(pr), pr])).values()], githubPrDetailsQuery, (pr, repository) => {
37307
+ const gonePrs = await forEachAliasedPr([...new Map(uniqueValidPrs(prs).map((pr) => [comparablePrKey(pr), pr])).values()], githubPrDetailsQuery, (pr, repository) => {
37253
37308
  const parsed = GITHUB_PR_DETAIL_REPOSITORY.safeParse(repository);
37254
- const node = parsed.success ? parsed.data?.pullRequest : null;
37255
- if (!node) return;
37309
+ if (!parsed.success) return "unreadable";
37310
+ const node = parsed.data?.pullRequest;
37311
+ if (!node) return "gone";
37256
37312
  detailsByKey.set(comparablePrKey(pr), node);
37313
+ return "found";
37257
37314
  }, REVIEW_SNAPSHOT_BATCH_SIZE, true, "throw-on-batch-failure");
37258
37315
  for (const node of detailsByKey.values()) await completeCheckContexts(node);
37259
- return detailsByKey;
37316
+ return {
37317
+ byKey: detailsByKey,
37318
+ goneKeys: new Set(gonePrs.map(comparablePrKey))
37319
+ };
37260
37320
  },
37261
37321
  async notificationsSince(lastModified) {
37262
37322
  const response = await conditionalGet("notifications", lastModified === void 0 ? {} : { lastModified });
@@ -37359,16 +37419,17 @@ function createPrGh(cwd, commandRunner = run) {
37359
37419
  await forEachAliasedPr(uniqueValidPrs(prs), teamThreadsQuery, (pr, repository) => {
37360
37420
  const parsed = TeamReviewThreadsRepository.safeParse(repository);
37361
37421
  const connection = parsed.success ? parsed.data.pullRequest?.reviewThreads : null;
37362
- if (!connection) return;
37422
+ if (!connection) return "unreadable";
37363
37423
  if (!connection.pageInfo.hasNextPage) {
37364
37424
  threadsByPr.set(reviewSnapshotKey(pr.repo, pr.number), connection.nodes);
37365
- return;
37425
+ return "found";
37366
37426
  }
37367
37427
  if (connection.pageInfo.endCursor) paged.push({
37368
37428
  pr,
37369
37429
  cursor: connection.pageInfo.endCursor,
37370
37430
  threads: connection.nodes
37371
37431
  });
37432
+ return "found";
37372
37433
  }, REVIEW_SNAPSHOT_BATCH_SIZE, true);
37373
37434
  for (const pending of paged) {
37374
37435
  const parts = repoParts(pending.pr.repo);
@@ -37499,18 +37560,23 @@ function createPrGh(cwd, commandRunner = run) {
37499
37560
  const morePages = [];
37500
37561
  await forEachAliasedPr(uniqueValidPrs(prs), reviewThreadsBatchQuery, (pr, repository) => {
37501
37562
  const parsed = GRAPHQL_THREADS_REPOSITORY.safeParse(repository);
37502
- const reviewThreads = parsed.success ? parsed.data.pullRequest?.reviewThreads : void 0;
37503
- if (!reviewThreads) return;
37563
+ if (!parsed.success) return "unreadable";
37564
+ const reviewThreads = parsed.data.pullRequest?.reviewThreads;
37565
+ if (!reviewThreads) return "gone";
37504
37566
  if (reviewThreads.pageInfo.hasNextPage) {
37505
37567
  morePages.push(pr);
37506
- return;
37568
+ return "found";
37507
37569
  }
37508
37570
  threadsByPr.set(reviewSnapshotKey(pr.repo, pr.number), reviewThreads.nodes.flatMap((thread) => {
37509
37571
  const valid = MyPrThreadNode.safeParse(thread);
37510
37572
  return valid.success ? [valid.data] : [];
37511
37573
  }));
37512
- });
37513
- for (const pr of morePages) threadsByPr.set(reviewSnapshotKey(pr.repo, pr.number), await pagedReviewThreads(pr.repo, pr.number));
37574
+ return "found";
37575
+ }, REVIEW_SNAPSHOT_BATCH_SIZE, true, "skip-failed-batch");
37576
+ for (const pr of morePages) {
37577
+ const threads = await pagedReviewThreads(pr.repo, pr.number);
37578
+ if (threads) threadsByPr.set(reviewSnapshotKey(pr.repo, pr.number), threads);
37579
+ }
37514
37580
  return threadsByPr;
37515
37581
  },
37516
37582
  async listMergedPrs(repo, limit) {
@@ -37567,7 +37633,9 @@ function createPrGh(cwd, commandRunner = run) {
37567
37633
  }))), benchmarkReviewDataQuery, (pr, repository) => {
37568
37634
  const pullRequest = z.object({ pullRequest: z.unknown() }).safeParse(repository);
37569
37635
  const parsed = MinedPrReviewData.safeParse(pullRequest.success ? pullRequest.data.pullRequest : null);
37570
- if (parsed.success) dataByNumber.set(pr.number, parsed.data);
37636
+ if (!parsed.success) return "unreadable";
37637
+ dataByNumber.set(pr.number, parsed.data);
37638
+ return "found";
37571
37639
  }, BENCHMARK_REVIEW_BATCH_SIZE);
37572
37640
  return dataByNumber;
37573
37641
  },
@@ -37593,9 +37661,12 @@ function createPrGh(cwd, commandRunner = run) {
37593
37661
  const counts = /* @__PURE__ */ new Map();
37594
37662
  await forEachAliasedPr(prs.filter((pr) => repoParts(pr.repo) && isPrNumber(pr.number) && CommitSha$1.safeParse(pr.headSha).success), behindCountsQuery, (pr, repository) => {
37595
37663
  const comparison = GRAPHQL_BEHIND_REPOSITORY.safeParse(repository);
37596
- const behindBy = comparison.success ? comparison.data.pullRequest?.baseRef?.compare?.behindBy : void 0;
37597
- if (behindBy !== void 0) counts.set(reviewSnapshotKey(pr.repo, pr.number), behindBy);
37598
- });
37664
+ if (!comparison.success) return "unreadable";
37665
+ const pullRequest = comparison.data.pullRequest;
37666
+ if (!pullRequest) return "gone";
37667
+ counts.set(reviewSnapshotKey(pr.repo, pr.number), pullRequest.baseRef?.compare?.behindBy ?? null);
37668
+ return "found";
37669
+ }, REVIEW_SNAPSHOT_BATCH_SIZE, true, "throw-on-batch-failure");
37599
37670
  return counts;
37600
37671
  },
37601
37672
  async rateLimitWaitMs(nowMs, resourceNames) {
@@ -37702,7 +37773,7 @@ function createPrGh(cwd, commandRunner = run) {
37702
37773
  await forEachAliasedPr(issues, issueLinkedPullRequestsQuery, (issue, repository) => {
37703
37774
  const parsed = GithubIssuePullRequestsRepository.safeParse(repository);
37704
37775
  const connection = parsed.success ? parsed.data.issue?.closedByPullRequestsReferences : null;
37705
- if (!connection) return;
37776
+ if (!connection) return "unreadable";
37706
37777
  const pullRequests = connection.nodes.flatMap((pullRequest) => {
37707
37778
  if (!pullRequest) return [];
37708
37779
  const { isDraft, state, ...fields } = pullRequest;
@@ -37715,6 +37786,7 @@ function createPrGh(cwd, commandRunner = run) {
37715
37786
  }];
37716
37787
  });
37717
37788
  pullRequestsByIssue.set(reviewSnapshotKey(issue.repo, issue.number), pullRequests);
37789
+ return "found";
37718
37790
  }, 50, true);
37719
37791
  return pullRequestsByIssue;
37720
37792
  },
@@ -1,6 +1,6 @@
1
1
  import { r as errorMessage } from "./text-DoirglWV.js";
2
- import { c as resolveConfigPath } from "./config-store-Bslvbdpz.js";
3
- import { c as defaultPairingsPath, i as REVOCATION_PROPAGATION_SECONDS, l as defaultSeenPath, n as normalizeRemoteConfig, o as createPairingsStore, s as createSeenStore } from "./remote-config-B2Tl_OUQ.js";
2
+ import { c as resolveConfigPath } from "./config-store-CqyR7WrE.js";
3
+ import { c as defaultPairingsPath, i as REVOCATION_PROPAGATION_SECONDS, l as defaultSeenPath, n as normalizeRemoteConfig, o as createPairingsStore, s as createSeenStore } from "./remote-config-CWZDCKrX.js";
4
4
  import fs from "node:fs";
5
5
  //#region server/text-format.ts
6
6
  function trimIso(iso) {
@@ -2,7 +2,7 @@ import { n as errorLabel, r as errorMessage } from "./text-DoirglWV.js";
2
2
  import { d as equalsIgnoringCaseOnWindows } from "./runtime-paths-DfoHzN15.js";
3
3
  import { n as isRecord } from "./coerce-oz_Z_6E7.js";
4
4
  import { a as jsonStateLoadError, d as writeJsonAtomicSync, l as sleepSync, s as loadJsonStateFileSync, u as writeJsonAtomic } from "./json-file-AKRVPqG1.js";
5
- import { b as DEFAULT_TIMER_FNS, o as glimmervoidHomeDir, x as unrefTimer, xt as canonicalizePath } from "./config-store-Bslvbdpz.js";
5
+ import { b as DEFAULT_TIMER_FNS, o as glimmervoidHomeDir, x as unrefTimer, xt as canonicalizePath } from "./config-store-CqyR7WrE.js";
6
6
  import fs from "node:fs";
7
7
  import path from "node:path";
8
8
  import crypto from "node:crypto";
@@ -4,8 +4,8 @@ import { g as AgentSettingsReply } from "./session-BOzHqxD5.js";
4
4
  import { n as isRecord } from "./coerce-oz_Z_6E7.js";
5
5
  import { r as BrowserConfig } from "./config-nPlxQDp8.js";
6
6
  import { t as renderTable } from "./ascii-figure-core-pDAwtlKO.js";
7
- import { A as cloneValue, F as scoreSettingsSearch, I as setValueAtPath, P as parsePosthogProjectSelection, V as SETTINGS_REGISTRY, _t as ENV_SECRET_BINDINGS, bt as withEnvSecrets, j as deleteValueAtPath, l as saveConfigFileOnce, s as loadConfigFile, t as IS_EXPERIMENTAL_BUILD, u as validateConfig, vt as readEnvSecrets, w as isSettingAvailable, z as valueAtPath } from "./config-store-Bslvbdpz.js";
8
- import { a as fail, c as listSettings, d as renderSectionTables, f as requireConfigFileSetting, g as valueText, h as succeed, i as describeSetting, l as readSetting, m as settingsRequestForServer, n as configFileViewOf, o as fitColumn, p as sectionOf, r as defaultText, s as getSetting, t as availableSettings } from "./settings-readout-core-B58zs6gp.js";
7
+ import { A as cloneValue, F as scoreSettingsSearch, I as setValueAtPath, P as parsePosthogProjectSelection, V as SETTINGS_REGISTRY, _t as ENV_SECRET_BINDINGS, bt as withEnvSecrets, j as deleteValueAtPath, l as saveConfigFileOnce, s as loadConfigFile, t as IS_EXPERIMENTAL_BUILD, u as validateConfig, vt as readEnvSecrets, w as isSettingAvailable, z as valueAtPath } from "./config-store-CqyR7WrE.js";
8
+ import { a as fail, c as listSettings, d as renderSectionTables, f as requireConfigFileSetting, g as valueText, h as succeed, i as describeSetting, l as readSetting, m as settingsRequestForServer, n as configFileViewOf, o as fitColumn, p as sectionOf, r as defaultText, s as getSetting, t as availableSettings } from "./settings-readout-core-PKhnFzgs.js";
9
9
  import fs from "node:fs";
10
10
  import os from "node:os";
11
11
  //#region server/settings-cli.ts
@@ -1,6 +1,6 @@
1
1
  import { _ as AgentSettingsRequest } from "./session-BOzHqxD5.js";
2
2
  import { t as renderTable } from "./ascii-figure-core-pDAwtlKO.js";
3
- import { A as cloneValue, B as FILE_ONLY_GROUPS, L as settingsGroupOf, M as displayText, N as hasScaledUnit, R as settingsOf, V as SETTINGS_REGISTRY, k as SETTINGS_INDEX, vt as readEnvSecrets, w as isSettingAvailable, z as valueAtPath } from "./config-store-Bslvbdpz.js";
3
+ import { A as cloneValue, B as FILE_ONLY_GROUPS, L as settingsGroupOf, M as displayText, N as hasScaledUnit, R as settingsOf, V as SETTINGS_REGISTRY, k as SETTINGS_INDEX, vt as readEnvSecrets, w as isSettingAvailable, z as valueAtPath } from "./config-store-CqyR7WrE.js";
4
4
  //#region server/core/settings-readout-core.ts
5
5
  var VALUE_COLUMN_WIDTH = 40;
6
6
  var SECTION_BY_SETTING_ID = new Map([...SETTINGS_REGISTRY.sections.flatMap((section) => section.settings.map((setting) => [setting.id, {