glimmervoid 0.46.2-next.159 → 0.46.2-next.161

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 (118) hide show
  1. package/dist/bin/glimmervoid.js +8 -8
  2. package/dist/chunks/{adapters-COeELdKT.js → adapters-BEHP94Wf.js} +2 -2
  3. package/dist/chunks/{adapters-CnInGTuC.js → adapters-CeXianY1.js} +1 -1
  4. package/dist/chunks/{agent-api-cli-bNlTz-7w.js → agent-api-cli-Dc109B-V.js} +1 -1
  5. package/dist/chunks/{agent-api-cli-DOzlY0Hz.js → agent-api-cli-t7wPNYN7.js} +1 -1
  6. package/dist/chunks/{agent-api-core-jge0D-nX.js → agent-api-core-BrDGCKCC.js} +1 -1
  7. package/dist/chunks/{build-channel-DJ1dJt9u.js → build-channel-DqsP-nkH.js} +8 -4
  8. package/dist/chunks/{config-CfYYorC4.js → config-C4Oslz0q.js} +54 -11
  9. package/dist/chunks/{config-store-BDnviJpb.js → config-store-B6tDGKyB.js} +2 -2
  10. package/dist/chunks/config-store-LEjs6GVf.js +1 -0
  11. package/dist/chunks/{main-DVqugKl7.js → main-X2L9rEeb.js} +357 -10
  12. package/dist/chunks/{pair-cli-06TbsthF.js → pair-cli-DpgOETkB.js} +2 -2
  13. package/dist/chunks/{remote-config-DCeelB8P.js → remote-config-DKXELcNh.js} +1 -1
  14. package/dist/chunks/{settings-cli-iqcvii_8.js → settings-cli-Lm9xQkZ8.js} +4 -4
  15. package/dist/chunks/{settings-readout-core-DQ07GLzg.js → settings-readout-core-DCcVODuW.js} +1 -1
  16. package/dist/chunks/{ssh-sign-cli-C0Zm53au.js → ssh-sign-cli-Bczq4tDP.js} +1 -1
  17. package/dist/client/assets/{alert-sound-CHcHzSCZ.js → alert-sound-CwCABHaq.js} +1 -1
  18. package/dist/client/assets/alert-sound-CwCABHaq.js.br +0 -0
  19. package/dist/client/assets/{benchmark-panel-Ooi63dby.js → benchmark-panel-B4hh3iSP.js} +1 -1
  20. package/dist/client/assets/benchmark-panel-B4hh3iSP.js.br +0 -0
  21. package/dist/client/assets/{card-registry-DITW3gYA.js → card-registry-CPdgaEfI.js} +1 -1
  22. package/dist/client/assets/card-registry-CPdgaEfI.js.br +0 -0
  23. package/dist/client/assets/{celebration-player-Drb1_qg4.js → celebration-player-B7V2Di9i.js} +1 -1
  24. package/dist/client/assets/celebration-player-B7V2Di9i.js.br +0 -0
  25. package/dist/client/assets/{control-ws-DUGWJI0x.js → control-ws-H2e01_5q.js} +1 -1
  26. package/dist/client/assets/control-ws-H2e01_5q.js.br +0 -0
  27. package/dist/client/assets/{dialogs-DQr5s5HF.js → dialogs-BrSPnOPm.js} +2 -2
  28. package/dist/client/assets/dialogs-BrSPnOPm.js.br +0 -0
  29. package/dist/client/assets/{doc-editor-ui-Dvt3COhG.js → doc-editor-ui-BUE8uues.js} +1 -1
  30. package/dist/client/assets/doc-editor-ui-BUE8uues.js.br +0 -0
  31. package/dist/client/assets/feature-hint-B1s17OLH.css +1 -0
  32. package/dist/client/assets/feature-hint-B1s17OLH.css.br +0 -0
  33. package/dist/client/assets/feature-hint-BO6OqfR1.js +1 -0
  34. package/dist/client/assets/feature-hint-BO6OqfR1.js.br +0 -0
  35. package/dist/client/assets/{first-run-checklist-46RoMPXH.js → first-run-checklist-C_0r88ot.js} +1 -1
  36. package/dist/client/assets/first-run-checklist-C_0r88ot.js.br +0 -0
  37. package/dist/client/assets/{hooks-panel-BuowI-Hq.js → hooks-panel-C3r93Udl.js} +1 -1
  38. package/dist/client/assets/hooks-panel-C3r93Udl.js.br +0 -0
  39. package/dist/client/assets/index-D2EjyhP2.js +78 -0
  40. package/dist/client/assets/index-D2EjyhP2.js.br +0 -0
  41. package/dist/client/assets/{issues-panel-C5eDWEqX.js → issues-panel-B8yasXaA.js} +1 -1
  42. package/dist/client/assets/issues-panel-B8yasXaA.js.br +0 -0
  43. package/dist/client/assets/{nyan-cat-D9okUl94.js → nyan-cat-C5M8FTYt.js} +1 -1
  44. package/dist/client/assets/nyan-cat-C5M8FTYt.js.br +0 -0
  45. package/dist/client/assets/phone-shell-DneyBioh.js +1 -0
  46. package/dist/client/assets/phone-shell-DneyBioh.js.br +0 -0
  47. package/dist/client/assets/plan-face-CSD5ToGZ.js +3 -0
  48. package/dist/client/assets/plan-face-CSD5ToGZ.js.br +0 -0
  49. package/dist/client/assets/{plan-render-DsEXXsPI.js → plan-render-CCMXkbFL.js} +1 -1
  50. package/dist/client/assets/plan-render-CCMXkbFL.js.br +0 -0
  51. package/dist/client/assets/{pr-scope-tabs-_eJO2yGR.js → pr-scope-tabs-BaASkwl0.js} +1 -1
  52. package/dist/client/assets/pr-scope-tabs-BaASkwl0.js.br +0 -0
  53. package/dist/client/assets/radar-panel-BX8-gfvN.js +1 -0
  54. package/dist/client/assets/radar-panel-BX8-gfvN.js.br +0 -0
  55. package/dist/client/assets/{repo-roots-adder-B4qgw7oP.js → repo-roots-adder-Blxoifau.js} +1 -1
  56. package/dist/client/assets/repo-roots-adder-Blxoifau.js.br +0 -0
  57. package/dist/client/assets/{resume-dialog-JyH_tYgK.js → resume-dialog-BU48CSw-.js} +1 -1
  58. package/dist/client/assets/resume-dialog-BU48CSw-.js.br +0 -0
  59. package/dist/client/assets/review-queue-panel-DX368l3V.js +10 -0
  60. package/dist/client/assets/review-queue-panel-DX368l3V.js.br +0 -0
  61. package/dist/client/assets/{session-tick-D8pYTYt7.js → session-tick-D3Nw7wV5.js} +1 -1
  62. package/dist/client/assets/session-tick-D3Nw7wV5.js.br +0 -0
  63. package/dist/client/assets/settings-panel-BbV8OsJB.js +4 -0
  64. package/dist/client/assets/settings-panel-BbV8OsJB.js.br +0 -0
  65. package/dist/client/assets/{shown-lightbox-BFUB32xS.js → shown-lightbox-BVqIMGem.js} +1 -1
  66. package/dist/client/assets/shown-lightbox-BVqIMGem.js.br +0 -0
  67. package/dist/client/assets/trace-panel-D8BCAwG1.js +2 -0
  68. package/dist/client/assets/trace-panel-D8BCAwG1.js.br +0 -0
  69. package/dist/client/assets/updates-view-core-D1HrhoS5.js +1 -0
  70. package/dist/client/assets/updates-view-core-D1HrhoS5.js.br +0 -0
  71. package/dist/client/assets/usage-panel-Bm_QO36e.js +1 -0
  72. package/dist/client/assets/usage-panel-Bm_QO36e.js.br +0 -0
  73. package/dist/client/assets/{visions-panel-BdoHPH7P.js → visions-panel-hMGdijjp.js} +1 -1
  74. package/dist/client/assets/visions-panel-hMGdijjp.js.br +0 -0
  75. package/dist/client/assets/{zod-BRLv4KqJ.js → zod-PTDW0N7l.js} +1 -1
  76. package/dist/client/assets/zod-PTDW0N7l.js.br +0 -0
  77. package/dist/client/index.html +6 -6
  78. package/dist/client/index.html.br +0 -0
  79. package/dist/server/index.js +1 -1
  80. package/package.json +1 -1
  81. package/dist/chunks/config-store-D2i_r1cn.js +0 -1
  82. package/dist/client/assets/alert-sound-CHcHzSCZ.js.br +0 -0
  83. package/dist/client/assets/benchmark-panel-Ooi63dby.js.br +0 -0
  84. package/dist/client/assets/card-registry-DITW3gYA.js.br +0 -0
  85. package/dist/client/assets/celebration-player-Drb1_qg4.js.br +0 -0
  86. package/dist/client/assets/control-ws-DUGWJI0x.js.br +0 -0
  87. package/dist/client/assets/dialogs-DQr5s5HF.js.br +0 -0
  88. package/dist/client/assets/doc-editor-ui-Dvt3COhG.js.br +0 -0
  89. package/dist/client/assets/first-run-checklist-46RoMPXH.js.br +0 -0
  90. package/dist/client/assets/hooks-panel-BuowI-Hq.js.br +0 -0
  91. package/dist/client/assets/index-CYei8v9s.js +0 -78
  92. package/dist/client/assets/index-CYei8v9s.js.br +0 -0
  93. package/dist/client/assets/issues-panel-C5eDWEqX.js.br +0 -0
  94. package/dist/client/assets/nyan-cat-D9okUl94.js.br +0 -0
  95. package/dist/client/assets/phone-shell-BJHNIpe4.js +0 -1
  96. package/dist/client/assets/phone-shell-BJHNIpe4.js.br +0 -0
  97. package/dist/client/assets/plan-face-BqZO45ea.js +0 -3
  98. package/dist/client/assets/plan-face-BqZO45ea.js.br +0 -0
  99. package/dist/client/assets/plan-render-DsEXXsPI.js.br +0 -0
  100. package/dist/client/assets/pr-scope-tabs-_eJO2yGR.js.br +0 -0
  101. package/dist/client/assets/radar-panel-DPyiGtKt.js +0 -1
  102. package/dist/client/assets/radar-panel-DPyiGtKt.js.br +0 -0
  103. package/dist/client/assets/repo-roots-adder-B4qgw7oP.js.br +0 -0
  104. package/dist/client/assets/resume-dialog-JyH_tYgK.js.br +0 -0
  105. package/dist/client/assets/review-queue-panel-N_Qswno3.js +0 -10
  106. package/dist/client/assets/review-queue-panel-N_Qswno3.js.br +0 -0
  107. package/dist/client/assets/session-tick-D8pYTYt7.js.br +0 -0
  108. package/dist/client/assets/settings-panel-BQyFqfP-.js +0 -4
  109. package/dist/client/assets/settings-panel-BQyFqfP-.js.br +0 -0
  110. package/dist/client/assets/shown-lightbox-BFUB32xS.js.br +0 -0
  111. package/dist/client/assets/trace-panel-BRa49jxo.js +0 -2
  112. package/dist/client/assets/trace-panel-BRa49jxo.js.br +0 -0
  113. package/dist/client/assets/updates-view-core-BYoMfzXj.js +0 -1
  114. package/dist/client/assets/updates-view-core-BYoMfzXj.js.br +0 -0
  115. package/dist/client/assets/usage-panel-B3hsmW9x.js +0 -1
  116. package/dist/client/assets/usage-panel-B3hsmW9x.js.br +0 -0
  117. package/dist/client/assets/visions-panel-BdoHPH7P.js.br +0 -0
  118. package/dist/client/assets/zod-BRLv4KqJ.js.br +0 -0
@@ -5,9 +5,9 @@ import { c as resolvePackageBin, i as clientDir, n as bundled, o as packageRoot,
5
5
  import { n as glimmervoidHomeDir, r as isOperatorHomeUnderTest, t as decideConfigPath } from "./config-path-core-DUWk0Lui.js";
6
6
  import { At as TeamReviewThreadCommentsResponse, B as MyPr, Bt as GH_SEGMENT, C as SESSION_DOC_BODY_CAP_BYTES, Ct as ReviewVerdict, D as SHOWN_FILE_CAP_BYTES, Dt as TeamReviewResolveResponse, E as SESSION_NAME_RULE_TEXT, Et as TeamReviewCompareFiles, F as SshSignRequest, H as MyPrCheckContext, Ht as REPO_SLUG_RE, It as hasStandingViewerApproval, J as MyPrMergeRequest, Jt as BADGE_LABELS, K as MyPrLaneEntry, L as TaskTitle, Mt as TeamReviewThreadsRepository, N as ShownFile, Nt as canApproveAfterComment, O as SIGN_URL_ENV, Ot as TeamReviewStateEntry, Pt as decisionAsIfApprovalRequired, Qt as STATES, Rt as HEX_SHA_RE, St as ReviewThreadId, T as SESSION_NAME_PATTERN, U as MyPrCheckContextsResponse, Ut as repoParts, V as MyPrAutoRebase, Vt as NODE_ID_RE, W as MyPrKeepMergeableRequest, X as MyPrMergeStateResponse, Xt as MERGEABLE_LIVE_STATES, Yt as KILLABLE_STATES, Z as MyPrMergeWhenReadyRequest, Zt as RESTARTABLE_STATES, _ as CONVERSATION_PERMISSION_HOOK_EVENT, b as ConversationQuestion, bt as ReviewFinding, ct as CommitSha, dt as FindingSeverity, et as MyPrThreadNode, g as CONVERSATION_APPROVAL_SUMMARY_MAX_CHARS, gt as PrDetail, h as COHERENCE_HOOKS_INACTIVE, ht as PostingPlan, jt as TeamReviewThreadResult, k as SSH_SIGN_BODY_CAP_BYTES, kt as TeamReviewStatus, lt as DECIDING_REVIEW_STATES, mt as PostedReviewEvent, n as AGENT_URL_ENV, nt as MyPrsSnapshot, pt as GithubReviewState, q as MyPrMergeMethod, r as ASK_USER_QUESTION_TOOL_NAME, rt as MyPrsState, tt as MyPrThreadsResponse, ut as EarlierReview, v as CONVERSATION_TOOL_RESULT_HOOK_EVENT, vt as ReviewComment, wt as TeamReviewActionRequest, xt as ReviewResult, yt as ReviewDraft, z as LinkedPr, zt as shortSha } from "./session-B2Wieg0a.js";
7
7
  import { n as execFileAsync, o as spawn, r as execFileSync, t as execFile } from "./child-process-safe-D4hyVIXj.js";
8
- import { A as BenchmarkRun, At as parseExitPlanModeHookPayload, B as GithubPrsFrame, Ct as PLAN_BODY_CAP_BYTES, D as BenchmarkCase, Dt as PLAN_TOOL_NAME, E as BenchmarkActionRequest, Et as PLAN_RESULT_HOOK_EVENT, F as MinedPrReviewData, Ft as IssueUpdate, G as WorkflowsState, H as WorkflowCommentBody, I as PrCheckoutCaseInput, It as IssuesSearchResponse, L as GithubPrDetailNode, Lt as IssuesState, M as BenchmarkSuite, Mt as GithubIssuePullRequestsRepository, N as CommitComparison, Nt as GithubIssueResponse, O as BenchmarkId, Ot as PlanDecision, P as MergedPrListing, Pt as IssueKey, R as GithubPrKey, Rt as IssuesStatus, St as changeMapFactId, T as pullRequestKeyFromReference, Tt as PLAN_HOOK_OUTPUT_MAX_CHARS, U as WorkflowLabelName, V as comparablePrKey, W as WorkflowsSettings, X as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, _ as CONTROL_FRAME_MAX_BYTES, _t as MAX_RAW_LINE_CHARS, a as ConfigUpdate, bt as CoherenceJournalOutput, ct as USAGE_INTEGER_RANGES, d as USAGE_COST_MODES, f as USAGE_VENDOR_KEYS, g as CLIENT_LOG_TEXT_MAX_CHARS, gt as SessionSetup, ht as UpdateJournal, j as BenchmarkStatus, jt as planTitle, k as BenchmarkJudgement, kt as PlanRevision, l as configIssueMessage, m as CHANGES_POLL_INTERVAL_MS, r as BrowserConfig, s as RUNTIME_CONFIG_SCALAR_KEYS, v as ClientMessage, vt as TraceCheckpoint, wt as PLAN_HOOK_EVENT, xt as ChangeMap, yt as TraceRecord, z as GithubPrLightSearchNode, zt as issuePullRequestStateFromGithub } from "./config-CfYYorC4.js";
8
+ import { A as BenchmarkActionRequest, At as PLAN_RESULT_HOOK_EVENT, B as PrCheckoutCaseInput, Bt as IssuesSearchResponse, Ct as TraceRecord, D as HINT_FEATURES, Dt as PLAN_BODY_CAP_BYTES, E as FeatureHintState, Et as changeMapFactId, F as BenchmarkStatus, Ft as planTitle, G as comparablePrKey, H as GithubPrKey, Ht as IssuesStatus, I as BenchmarkSuite, It as GithubIssuePullRequestsRepository, J as WorkflowsSettings, K as WorkflowCommentBody, L as CommitComparison, Lt as GithubIssueResponse, M as BenchmarkId, Mt as PlanDecision, N as BenchmarkJudgement, Nt as PlanRevision, O as HINT_VIEW_BY_FEATURE, Ot as PLAN_HOOK_EVENT, P as BenchmarkRun, Pt as parseExitPlanModeHookPayload, R as MergedPrListing, Rt as IssueKey, St as TraceCheckpoint, T as pullRequestKeyFromReference, Tt as ChangeMap, U as GithubPrLightSearchNode, Ut as issuePullRequestStateFromGithub, V as GithubPrDetailNode, Vt as IssuesState, W as GithubPrsFrame, Y as WorkflowsState, _ as CONTROL_FRAME_MAX_BYTES, a as ConfigUpdate, bt as SessionSetup, d as USAGE_COST_MODES, et as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, f as USAGE_VENDOR_KEYS, ft as USAGE_INTEGER_RANGES, g as CLIENT_LOG_TEXT_MAX_CHARS, j as BenchmarkCase, jt as PLAN_TOOL_NAME, kt as PLAN_HOOK_OUTPUT_MAX_CHARS, l as configIssueMessage, m as CHANGES_POLL_INTERVAL_MS, q as WorkflowLabelName, r as BrowserConfig, s as RUNTIME_CONFIG_SCALAR_KEYS, v as ClientMessage, wt as CoherenceJournalOutput, xt as MAX_RAW_LINE_CHARS, yt as UpdateJournal, z as MinedPrReviewData, zt as IssueUpdate } from "./config-C4Oslz0q.js";
9
9
  import { a as permitsHelpCommand, o as supervisionLine, r as describeSessionLimits } from "./session-routes-Cr9S--Nf.js";
10
- import { A as seedTaskTitleSources, B as listRepoWorktreePaths, C as extractPromptTaskTitle, D as parseRefinedTaskTitle, E as parseRefinedSessionName, F as resumePromptFor, H as nextSuggestedName, I as shouldAdoptReportedResumeId, L as claudeProjectsDir, M as RESUME_ID_RE, N as pickAutoResume, O as resolveRefocusTaskTitle, P as resolveResumeTarget, R as encodeProjectDir, S as extractOscTaskTitle, T as isSubstantivePrompt, V as isAutoNameOf, _ as buildTaskTitleRefinementPrompt, a as decideSpawnAllowance, b as decideTaskTitleRefinement, c as describeKeptChildAttention, d as describeUnpushedCloseRefusal, g as buildPersistedTaskTitle, h as projectReviews, i as decideAgentRequest, j as AUTO_CONTINUE_PROMPT, k as resolveTaskTitle, l as describePushLanding, m as projectMyPrs, n as REFUSAL_REASON, o as deriveChildSessionName, p as parseAgentVerb, s as describeChildEndNote, u as describeRoleRefusal, v as chooseRefinedSessionName, w as isSelfWakePrompt, x as extractAiTitle, y as cleanTaskPrompt, z as listRepoConversations } from "./agent-api-core-jge0D-nX.js";
10
+ import { A as seedTaskTitleSources, B as listRepoWorktreePaths, C as extractPromptTaskTitle, D as parseRefinedTaskTitle, E as parseRefinedSessionName, F as resumePromptFor, H as nextSuggestedName, I as shouldAdoptReportedResumeId, L as claudeProjectsDir, M as RESUME_ID_RE, N as pickAutoResume, O as resolveRefocusTaskTitle, P as resolveResumeTarget, R as encodeProjectDir, S as extractOscTaskTitle, T as isSubstantivePrompt, V as isAutoNameOf, _ as buildTaskTitleRefinementPrompt, a as decideSpawnAllowance, b as decideTaskTitleRefinement, c as describeKeptChildAttention, d as describeUnpushedCloseRefusal, g as buildPersistedTaskTitle, h as projectReviews, i as decideAgentRequest, j as AUTO_CONTINUE_PROMPT, k as resolveTaskTitle, l as describePushLanding, m as projectMyPrs, n as REFUSAL_REASON, o as deriveChildSessionName, p as parseAgentVerb, s as describeChildEndNote, u as describeRoleRefusal, v as chooseRefinedSessionName, w as isSelfWakePrompt, x as extractAiTitle, y as cleanTaskPrompt, z as listRepoConversations } from "./agent-api-core-BrDGCKCC.js";
11
11
  import { a as positiveIntOr, c as textOr, i as numberOr, n as isRecord, o as positiveNumberOr, r as nonNegativeIntOr, s as rawTextOr, t as coercedNumberOr } from "./coerce-NSst8oRP.js";
12
12
  import { i as parseCommandLine, n as warnWhenGitIsTooOld } from "./git-version-WyrLHANY.js";
13
13
  import { n as checkGuardrailsDependencies, t as allowGuardedSpawn } from "./guardrails-deps-BjPzk1rE.js";
@@ -23,13 +23,13 @@ import { a as readPageTitle, i as filesAfterRetention, n as decideShownKind, o a
23
23
  import { t as kimi } from "./kimi-VBamp5vp.js";
24
24
  import { n as shellQuote } from "./hook-command-core-qTNK-xMF.js";
25
25
  import { C as parseCgroupBytes, 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-BjFK_eSH.js";
26
- import { $ as resolveProjectToken, B as buildAiGenerationEvents, G as claudeAccountUuidOf, H as buildExceptionProperties, I as FIRST_RUN_NOTICE, J as decideRemoteTelemetryState, K as codexUserIdOf, L as TELEMETRY_BATCH_URL, Q as parsePosthogReleaseId, R as TELEMETRY_FLAGS_URL, S as validateSettingsBlock, U as buildPersonProperties, V as buildBrowserExceptionProperties, W as classifySessionExit, X as exceptionFingerprint, Y as decideTelemetryConsent, Z as nodeMajorVersion, _ as isRtkBinaryName, a as ensureProjectIds, at as matchedPrefix, b as mergeSettingsBlock, ct as sessionIdFromBranch, dt as canonicalizePath, ft as comparableDirectoryPath, g as installTargetPath, h as findEscapingArchiveMember, i as createConfigStore, it as DEFAULT_BRANCH_GC_PREFIXES, lt as usablePrefixes, m as decideRtkInstall, n as DEFAULT_CONFIG, nt as stableConfigKey, o as generateProjectId, ot as planBranchGc, p as assetForPlatform, pt as isSameDirectoryPath, q as decideIsDevInstall, s as glimmervoidHomeDir$1, st as planWorktreeGc, t as ABORT_CONFIG_SAVE, ut as worktreeIntegrationTips, v as verifyDigest, x as settingsBlockSpecFor, z as adapterBucket } from "./config-store-BDnviJpb.js";
27
- import { _ as TelemetryState, a as DEEP_HISTORY_SCROLLBACK_LINES, c as describeDataAttach, d as DashboardTelemetryReport, h as TELEMETRY_EVENT_SCHEMAS, i as HookEnvelope, l as parseDataAttach, m as PendingCrashReport, r as HTTP_URL_RE, s as LOGGED_FAST_CLOSE_COUNTS, u as parseDataClientMessage } from "./build-channel-DJ1dJt9u.js";
28
- import { $ as identityFromRelPath, A as decideFileRead, B as sessionsRootCandidates, C as pickNewestPublished, D as codexRootCandidates, E as codexHomes, F as kimiHomes, G as kimiSessionIdFromPath, H as shouldPersistWarehouse, I as passOutcome, J as dedupKeys, K as parseKimiUsageLine, L as projectDirCandidates, M as expandTilde, N as grokHomes, O as codexSessionIdFromPath, P as isUsageFile, Q as foldReplacementIntoGenerationRollup, R as resolveProjectsDirs, S as parseResolvedSha, T as codexFallbackRoots, U as splitLines$1, V as shouldEvaluateDespiteIoFailures, W as kimiDedupIdentity, X as expandAdvisorIterations, Y as emptyTotals, Z as foldEntryIntoGenerationRollup, _ as isCheckFresh, a as describeAgentResolvability, at as totalTokensOf$1, b as parseRegistryDeprecation, c as isKnownAgentId, d as resolveAdapter, et as isWithinGenerationRecencyWindow, f as setCustomAgents, g as decideUpdateStatus, h as decideInstallFlavor, i as customAgentFingerprint, it as shouldReplace, j as dedupeCodexFiles, k as continuationDelayMs, l as listAgentIds, m as readHostCodexVersion, n as cachedAgentResolvability, nt as parseJsonLine, o as getAdapter, ot as vendorUsageEntry, p as codex, q as addEntryToTotals, r as commandFor, rt as parseUsageLine, s as hookProfileOf, st as claudeCode, t as DEFAULT_AGENT_ID, tt as mergeGenerationRollups, u as resetCommandCache, v as normalizeSha, w as shortSha$1, x as parseRegistryLatest, y as normalizeUpdateChannel, z as scopedClaudeRoots } from "./adapters-COeELdKT.js";
26
+ import { $ as resolveProjectToken, B as buildAiGenerationEvents, G as claudeAccountUuidOf, H as buildExceptionProperties, I as FIRST_RUN_NOTICE, J as decideRemoteTelemetryState, K as codexUserIdOf, L as TELEMETRY_BATCH_URL, Q as parsePosthogReleaseId, R as TELEMETRY_FLAGS_URL, S as validateSettingsBlock, U as buildPersonProperties, V as buildBrowserExceptionProperties, W as classifySessionExit, X as exceptionFingerprint, Y as decideTelemetryConsent, Z as nodeMajorVersion, _ as isRtkBinaryName, a as ensureProjectIds, at as matchedPrefix, b as mergeSettingsBlock, ct as sessionIdFromBranch, dt as canonicalizePath, ft as comparableDirectoryPath, g as installTargetPath, h as findEscapingArchiveMember, i as createConfigStore, it as DEFAULT_BRANCH_GC_PREFIXES, lt as usablePrefixes, m as decideRtkInstall, n as DEFAULT_CONFIG, nt as stableConfigKey, o as generateProjectId, ot as planBranchGc, p as assetForPlatform, pt as isSameDirectoryPath, q as decideIsDevInstall, s as glimmervoidHomeDir$1, st as planWorktreeGc, t as ABORT_CONFIG_SAVE, ut as worktreeIntegrationTips, v as verifyDigest, x as settingsBlockSpecFor, z as adapterBucket } from "./config-store-B6tDGKyB.js";
27
+ import { _ as TelemetryState, a as DEEP_HISTORY_SCROLLBACK_LINES, c as describeDataAttach, d as DashboardTelemetryReport, h as TELEMETRY_EVENT_SCHEMAS, i as HookEnvelope, l as parseDataAttach, m as PendingCrashReport, r as HTTP_URL_RE, s as LOGGED_FAST_CLOSE_COUNTS, u as parseDataClientMessage } from "./build-channel-DqsP-nkH.js";
28
+ import { $ as identityFromRelPath, A as decideFileRead, B as sessionsRootCandidates, C as pickNewestPublished, D as codexRootCandidates, E as codexHomes, F as kimiHomes, G as kimiSessionIdFromPath, H as shouldPersistWarehouse, I as passOutcome, J as dedupKeys, K as parseKimiUsageLine, L as projectDirCandidates, M as expandTilde, N as grokHomes, O as codexSessionIdFromPath, P as isUsageFile, Q as foldReplacementIntoGenerationRollup, R as resolveProjectsDirs, S as parseResolvedSha, T as codexFallbackRoots, U as splitLines$1, V as shouldEvaluateDespiteIoFailures, W as kimiDedupIdentity, X as expandAdvisorIterations, Y as emptyTotals, Z as foldEntryIntoGenerationRollup, _ as isCheckFresh, a as describeAgentResolvability, at as totalTokensOf$1, b as parseRegistryDeprecation, c as isKnownAgentId, d as resolveAdapter, et as isWithinGenerationRecencyWindow, f as setCustomAgents, g as decideUpdateStatus, h as decideInstallFlavor, i as customAgentFingerprint, it as shouldReplace, j as dedupeCodexFiles, k as continuationDelayMs, l as listAgentIds, m as readHostCodexVersion, n as cachedAgentResolvability, nt as parseJsonLine, o as getAdapter, ot as vendorUsageEntry, p as codex, q as addEntryToTotals, r as commandFor, rt as parseUsageLine, s as hookProfileOf, st as claudeCode, t as DEFAULT_AGENT_ID, tt as mergeGenerationRollups, u as resetCommandCache, v as normalizeSha, w as shortSha$1, x as parseRegistryLatest, y as normalizeUpdateChannel, z as scopedClaudeRoots } from "./adapters-BEHP94Wf.js";
29
29
  import { t as HOOK_TOOLS } from "./hook-tools-Cr97Vdap.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 } from "./ssh-signing-core-CRhVVWNW.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-DCeelB8P.js";
32
- import { n as configFileViewOf, u as readSettingsForAgent } from "./settings-readout-core-DQ07GLzg.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-DKXELcNh.js";
32
+ import { n as configFileViewOf, u as readSettingsForAgent } from "./settings-readout-core-DCcVODuW.js";
33
33
  import { _ as escapeMarkup, g as createLaneLog, n as createVisionsSetup } from "./visions-setup-VMMyqOpl.js";
34
34
  import { t as getRtkPath } from "./rtk-resolver-BifDj_oS.js";
35
35
  import { createRequire } from "node:module";
@@ -30359,7 +30359,7 @@ var CoderWorkspaceListing = z.array(z.object({
30359
30359
  resources: z.array(z.object({ agents: z.array(z.object({ lifecycle_state: z.string() }).loose()).optional() }).loose()).optional()
30360
30360
  }).loose()
30361
30361
  }).loose());
30362
- var DAY_MS = 864e5;
30362
+ var DAY_MS$1 = 864e5;
30363
30363
  var KNOWN_STATUSES = /* @__PURE__ */ new Set([
30364
30364
  "running",
30365
30365
  "stopped",
@@ -30432,7 +30432,7 @@ function planReconcile({ workspaces, mappings, busyWorkspaces, ownedWorkspaces,
30432
30432
  const listedNames = new Set(workspaces.map((workspace) => workspace.name));
30433
30433
  const presentMappings = mappings.filter((mapping) => !busyWorkspaces.has(mapping.workspace)).filter((mapping) => listedNames.has(mapping.workspace));
30434
30434
  const unmapped = workspaces.filter((workspace) => !mappedNames.has(workspace.name) && !busyWorkspaces.has(workspace.name) && workspace.status !== "deleting" && ownedWorkspaces.has(workspace.name));
30435
- const isStale = (workspace) => workspace.stoppedAtMs !== null && nowMs - workspace.stoppedAtMs >= deleteAfterStoppedDays * DAY_MS;
30435
+ const isStale = (workspace) => workspace.stoppedAtMs !== null && nowMs - workspace.stoppedAtMs >= deleteAfterStoppedDays * DAY_MS$1;
30436
30436
  return {
30437
30437
  resume: presentMappings.filter((mapping) => mapping.wasActive),
30438
30438
  stop: presentMappings.filter((mapping) => !mapping.wasActive),
@@ -40541,6 +40541,332 @@ function createSessionPrLinkWiring({ store, now = Date.now, git, log = console }
40541
40541
  return { attachSession };
40542
40542
  }
40543
40543
  //#endregion
40544
+ //#region server/core/feature-hints-core.ts
40545
+ var DAY_MS = 864e5;
40546
+ var SIGNAL_WINDOW_MS = 7 * DAY_MS;
40547
+ var RECENT_VIEW_SKIP_MS = 14 * DAY_MS;
40548
+ var REPEATED_PROMPT_WINDOW_MS = 36e5;
40549
+ var MIN_REPEATED_PROMPT_CHARS = 20;
40550
+ var MAX_TARGET_CHARS = 200;
40551
+ var AGENT_NAMES = "claude|codex|kimi|grok|gemini|cursor|copilot";
40552
+ function firstNumberArgument(argumentText) {
40553
+ return /(?:^|\s)(?:\S*\/(?:pull|issues)\/)?#?(\d+)\b/.exec(argumentText)?.[1] ?? null;
40554
+ }
40555
+ function ghSubcommandTargets(command, noun, verbs, targetPrefix) {
40556
+ const subcommandPattern = new RegExp(`\\bgh\\s+${noun}\\s+(${verbs.join("|")})\\b([^|;&\\n]*)`, "g");
40557
+ return [...command.matchAll(subcommandPattern)].map((subcommandMatch) => {
40558
+ const targetNumber = firstNumberArgument(subcommandMatch[2] ?? "");
40559
+ return targetNumber ? `${targetPrefix}:${targetNumber}` : `${targetPrefix}:${subcommandMatch[1]}`;
40560
+ });
40561
+ }
40562
+ function numberedTargets(text, patterns, targetPrefix) {
40563
+ return patterns.flatMap((pattern) => [...text.matchAll(pattern)].map((textMatch) => `${targetPrefix}:${textMatch[1] ?? "any"}`));
40564
+ }
40565
+ function hitWhenAnyMatches(text, patterns) {
40566
+ return patterns.some((pattern) => pattern.test(text)) ? ["hit"] : [];
40567
+ }
40568
+ var REVIEW_PROMPT_PATTERNS = [
40569
+ /\/reviewing-prs\b(?:\s+\S*?#?(\d+)\b)?/gi,
40570
+ /\/code-review\b[^\n]*?\b(\d+)\b/gi,
40571
+ /\breview(?:ing)?\s+(?:the\s+|this\s+)?(?:pr|pull\s+request)\s*#?(\d+)?/gi,
40572
+ /github\.com\/[^/\s]+\/[^/\s]+\/pull\/(\d+)/gi
40573
+ ];
40574
+ var ISSUE_PROMPT_PATTERNS = [/\bissue\s+#(\d+)\b/gi, /github\.com\/[^/\s]+\/[^/\s]+\/issues\/(\d+)/gi];
40575
+ var TRIGGER_RULES = [
40576
+ {
40577
+ feature: "teamReview",
40578
+ minDistinctTargets: 3,
40579
+ countsEveryHit: false,
40580
+ matchCommand: (command) => ghSubcommandTargets(command, "pr", [
40581
+ "review",
40582
+ "diff",
40583
+ "checkout",
40584
+ "view"
40585
+ ], "pr").filter((target) => /\d$/.test(target)),
40586
+ matchPrompt: (prompt) => numberedTargets(prompt, REVIEW_PROMPT_PATTERNS, "pr")
40587
+ },
40588
+ {
40589
+ feature: "issues",
40590
+ minDistinctTargets: 3,
40591
+ countsEveryHit: false,
40592
+ matchCommand: (command) => ghSubcommandTargets(command, "issue", [
40593
+ "view",
40594
+ "list",
40595
+ "create",
40596
+ "comment"
40597
+ ], "issue"),
40598
+ matchPrompt: (prompt) => numberedTargets(prompt, ISSUE_PROMPT_PATTERNS, "issue")
40599
+ },
40600
+ {
40601
+ feature: "usage",
40602
+ minDistinctTargets: 2,
40603
+ countsEveryHit: true,
40604
+ matchCommand: (command) => hitWhenAnyMatches(command, [/\bccusage\b/]),
40605
+ matchPrompt: (prompt) => hitWhenAnyMatches(prompt, [
40606
+ /^\s*\/(?:cost|usage|stats)\b/i,
40607
+ /\btoken\s+usage\b/i,
40608
+ /\brate[\s-]limit/i,
40609
+ /\bspend(?:ing)?\b/i
40610
+ ])
40611
+ },
40612
+ {
40613
+ feature: "posthog",
40614
+ minDistinctTargets: 2,
40615
+ countsEveryHit: true,
40616
+ matchCommand: () => [],
40617
+ matchPrompt: (prompt) => hitWhenAnyMatches(prompt, [
40618
+ /\berror\s+tracking\b/i,
40619
+ /\bwhat'?s\s+broken\b/i,
40620
+ /\/triaging-posthog-errors\b/i,
40621
+ /\bposthog\s+errors?\b/i
40622
+ ])
40623
+ },
40624
+ {
40625
+ feature: "visions",
40626
+ minDistinctTargets: 3,
40627
+ countsEveryHit: true,
40628
+ matchCommand: (command) => hitWhenAnyMatches(command, [/(?:^|[\s;&|(])(?:code|cursor)\s+(?!-)\S/]),
40629
+ matchPrompt: (prompt) => {
40630
+ const isEditorPhrase = /\bin\s+my\s+editor\b/i.test(prompt);
40631
+ const isFileLineReference = /\bthis\s+file\b/i.test(prompt) && /\S+\.\w+:\d+/.test(prompt);
40632
+ return isEditorPhrase || isFileLineReference ? ["hit"] : [];
40633
+ }
40634
+ },
40635
+ {
40636
+ feature: "benchmarks",
40637
+ minDistinctTargets: 2,
40638
+ countsEveryHit: true,
40639
+ matchCommand: () => [],
40640
+ matchPrompt: (prompt) => hitWhenAnyMatches(prompt, [/\bbenchmark/i, new RegExp(`\\bcompare\\b[^\\n]*\\b(?:${AGENT_NAMES})\\b[^\\n]*\\b(?:${AGENT_NAMES})\\b`, "i")])
40641
+ }
40642
+ ];
40643
+ var RULE_BY_FEATURE = new Map(TRIGGER_RULES.map((rule) => [rule.feature, rule]));
40644
+ function emptyFeatureHintState() {
40645
+ return {
40646
+ signalsByFeature: {},
40647
+ settledByFeature: {},
40648
+ lastShownAtByView: {},
40649
+ pendingHint: null
40650
+ };
40651
+ }
40652
+ function fingerprintOf(text) {
40653
+ let hash = 2166136261;
40654
+ for (let index = 0; index < text.length; index += 1) hash = Math.imul(hash ^ text.charCodeAt(index), 16777619);
40655
+ return (hash >>> 0).toString(16);
40656
+ }
40657
+ function signalsFromMatches(origin, text, ts, matchTargets) {
40658
+ return TRIGGER_RULES.flatMap((rule) => {
40659
+ const matchedTargets = [...new Set(matchTargets(rule))];
40660
+ if (matchedTargets.length === 0) return [];
40661
+ if (rule.countsEveryHit) return [{
40662
+ feature: rule.feature,
40663
+ target: `${origin}@${ts}:${fingerprintOf(text)}`,
40664
+ ts
40665
+ }];
40666
+ return matchedTargets.map((target) => ({
40667
+ feature: rule.feature,
40668
+ target: target.slice(0, MAX_TARGET_CHARS),
40669
+ ts
40670
+ }));
40671
+ });
40672
+ }
40673
+ function classifyCommand(command, origin, ts) {
40674
+ if (!command.trim()) return [];
40675
+ return signalsFromMatches(origin, command, ts, (rule) => rule.matchCommand(command));
40676
+ }
40677
+ function classifyPrompt(prompt, ts) {
40678
+ if (!prompt.trim()) return [];
40679
+ return signalsFromMatches("agent-prompt", prompt, ts, (rule) => rule.matchPrompt(prompt));
40680
+ }
40681
+ function normalizePrompt(prompt) {
40682
+ return prompt.trim().toLowerCase().replace(/\s+/g, " ");
40683
+ }
40684
+ function noteRecentPrompt(recentPrompts, { prompt, sessionId, ts }) {
40685
+ const normalizedPrompt = normalizePrompt(prompt);
40686
+ const freshPrompts = recentPrompts.filter((recentPrompt) => ts - recentPrompt.ts <= REPEATED_PROMPT_WINDOW_MS);
40687
+ if (normalizedPrompt.length < MIN_REPEATED_PROMPT_CHARS) return {
40688
+ recentPrompts: freshPrompts,
40689
+ signals: []
40690
+ };
40691
+ const isRepeatedAcrossSessions = freshPrompts.some((recentPrompt) => recentPrompt.normalizedPrompt === normalizedPrompt && recentPrompt.sessionId !== sessionId);
40692
+ return {
40693
+ recentPrompts: [...freshPrompts, {
40694
+ normalizedPrompt,
40695
+ sessionId,
40696
+ ts
40697
+ }].slice(-20),
40698
+ signals: isRepeatedAcrossSessions ? [{
40699
+ feature: "benchmarks",
40700
+ target: `repeated-prompt@${ts}`,
40701
+ ts
40702
+ }] : []
40703
+ };
40704
+ }
40705
+ function withoutExpiredHint(state, now) {
40706
+ if (!state.pendingHint || now - state.pendingHint.raisedAt <= SIGNAL_WINDOW_MS) return state;
40707
+ return {
40708
+ ...state,
40709
+ pendingHint: null
40710
+ };
40711
+ }
40712
+ function isFeatureCounting(state, feature) {
40713
+ if (state.settledByFeature[feature]) return false;
40714
+ return state.pendingHint?.feature !== feature;
40715
+ }
40716
+ function recordSignals(state, signals, now) {
40717
+ const countingSignals = signals.filter((signal) => isFeatureCounting(state, signal.feature));
40718
+ if (countingSignals.length === 0) return state;
40719
+ const signalsByFeature = { ...state.signalsByFeature };
40720
+ for (const signal of countingSignals) {
40721
+ const freshSignals = (signalsByFeature[signal.feature] ?? []).filter((recorded) => now - recorded.ts <= SIGNAL_WINDOW_MS && recorded.target !== signal.target);
40722
+ signalsByFeature[signal.feature] = [...freshSignals, {
40723
+ target: signal.target,
40724
+ ts: signal.ts
40725
+ }].slice(-50);
40726
+ }
40727
+ return {
40728
+ ...state,
40729
+ signalsByFeature
40730
+ };
40731
+ }
40732
+ function distinctTargetCountInWindow(state, feature, now) {
40733
+ const recentTargets = (state.signalsByFeature[feature] ?? []).filter((recorded) => now - recorded.ts <= SIGNAL_WINDOW_MS).map((recorded) => recorded.target);
40734
+ return new Set(recentTargets).size;
40735
+ }
40736
+ function wasViewShownRecently(state, feature, now) {
40737
+ const lastShownAt = state.lastShownAtByView[HINT_VIEW_BY_FEATURE[feature]];
40738
+ return typeof lastShownAt === "number" && now - lastShownAt <= RECENT_VIEW_SKIP_MS;
40739
+ }
40740
+ function decideHint(state, now) {
40741
+ if (withoutExpiredHint(state, now).pendingHint) return null;
40742
+ for (const feature of HINT_FEATURES) {
40743
+ if (!isFeatureCounting(state, feature) || wasViewShownRecently(state, feature, now)) continue;
40744
+ const distinctTargetCount = distinctTargetCountInWindow(state, feature, now);
40745
+ if (distinctTargetCount >= (RULE_BY_FEATURE.get(feature)?.minDistinctTargets ?? Number.POSITIVE_INFINITY)) return {
40746
+ feature,
40747
+ distinctTargetCount,
40748
+ raisedAt: now
40749
+ };
40750
+ }
40751
+ return null;
40752
+ }
40753
+ function settleHint(state, feature, outcome) {
40754
+ if (state.settledByFeature[feature]) return state;
40755
+ const { [feature]: _settledSignals, ...signalsByFeature } = state.signalsByFeature;
40756
+ return {
40757
+ ...state,
40758
+ signalsByFeature,
40759
+ settledByFeature: {
40760
+ ...state.settledByFeature,
40761
+ [feature]: outcome
40762
+ },
40763
+ pendingHint: state.pendingHint?.feature === feature ? null : state.pendingHint
40764
+ };
40765
+ }
40766
+ function noteViewShown(state, view, now) {
40767
+ const viewedState = {
40768
+ ...state,
40769
+ lastShownAtByView: {
40770
+ ...state.lastShownAtByView,
40771
+ [view]: now
40772
+ }
40773
+ };
40774
+ const pendingFeature = state.pendingHint?.feature;
40775
+ if (!pendingFeature || HINT_VIEW_BY_FEATURE[pendingFeature] !== view) return viewedState;
40776
+ return settleHint(viewedState, pendingFeature, "opened");
40777
+ }
40778
+ //#endregion
40779
+ //#region server/feature-hints-wiring.ts
40780
+ function bashCommandOf(payload) {
40781
+ if (payload.tool_name !== "Bash") return null;
40782
+ const toolInput = payload.tool_input;
40783
+ if (typeof toolInput !== "object" || toolInput === null || !("command" in toolInput)) return null;
40784
+ return typeof toolInput.command === "string" ? toolInput.command : null;
40785
+ }
40786
+ function createFeatureHintsWiring({ statePath, broadcast, log, now = Date.now }) {
40787
+ let state = emptyFeatureHintState();
40788
+ let recentPrompts = [];
40789
+ const attachedSessions = /* @__PURE__ */ new WeakSet();
40790
+ const store = createJsonStateStore({
40791
+ name: "feature hints",
40792
+ filePath: statePath,
40793
+ parse: (raw) => FeatureHintState.safeParse(raw).data ?? null,
40794
+ adopt: (loadedState) => {
40795
+ state = loadedState ?? emptyFeatureHintState();
40796
+ },
40797
+ warn: (message, fields) => log.warn(`[feature-hints] ${message} ${JSON.stringify(fields)}`)
40798
+ });
40799
+ const loaded = store.load();
40800
+ function update(nextStateOf) {
40801
+ return loaded.then(() => {
40802
+ const nextState = withoutExpiredHint(nextStateOf(state), now());
40803
+ const hint = decideHint(nextState, now());
40804
+ state = hint ? {
40805
+ ...nextState,
40806
+ pendingHint: hint
40807
+ } : nextState;
40808
+ if (hint) broadcast({
40809
+ type: "feature-hint",
40810
+ hint
40811
+ });
40812
+ const persistedState = state;
40813
+ return store.write(persistedState, () => `${JSON.stringify(persistedState, null, 2)}\n`);
40814
+ });
40815
+ }
40816
+ function recordSignals$1(signals) {
40817
+ if (signals.length === 0) return Promise.resolve();
40818
+ return update((current) => recordSignals(current, signals, now()));
40819
+ }
40820
+ function signalsFromHookEvent(session, { event, payload }) {
40821
+ const ts = now();
40822
+ if (event === "PostToolUse") {
40823
+ const command = bashCommandOf(payload);
40824
+ return command ? classifyCommand(command, "agent-command", ts) : [];
40825
+ }
40826
+ if (event !== "UserPromptSubmit" || typeof payload.prompt !== "string") return [];
40827
+ const repeated = noteRecentPrompt(recentPrompts, {
40828
+ prompt: payload.prompt,
40829
+ sessionId: session.id,
40830
+ ts
40831
+ });
40832
+ recentPrompts = repeated.recentPrompts;
40833
+ return [...classifyPrompt(payload.prompt, ts), ...repeated.signals];
40834
+ }
40835
+ function attachSession(session) {
40836
+ if (attachedSessions.has(session)) return;
40837
+ attachedSessions.add(session);
40838
+ function onHookEvent(notice) {
40839
+ recordSignals$1(signalsFromHookEvent(session, notice));
40840
+ }
40841
+ function detach() {
40842
+ attachedSessions.delete(session);
40843
+ session.off("hook-event", onHookEvent);
40844
+ session.off("teardown", detach);
40845
+ }
40846
+ session.on("hook-event", onHookEvent);
40847
+ session.on("teardown", detach);
40848
+ }
40849
+ function noteViewShown$1(view) {
40850
+ return update((current) => noteViewShown(current, view, now()));
40851
+ }
40852
+ function settle(feature, outcome) {
40853
+ return update((current) => settleHint(current, feature, outcome));
40854
+ }
40855
+ function pendingHintMessage() {
40856
+ return state.pendingHint ? {
40857
+ type: "feature-hint",
40858
+ hint: state.pendingHint
40859
+ } : null;
40860
+ }
40861
+ return {
40862
+ attachSession,
40863
+ noteViewShown: noteViewShown$1,
40864
+ settle,
40865
+ pendingHintMessage,
40866
+ idle: () => loaded.then(() => store.idle())
40867
+ };
40868
+ }
40869
+ //#endregion
40544
40870
  //#region server/core/workflows-core.ts
40545
40871
  var WORKFLOWS_LANE_ID = "workflows";
40546
40872
  var WORKFLOWS_STATE_FILENAME = "workflows-state.json";
@@ -46931,6 +47257,11 @@ function createBackendLanes(dependencies) {
46931
47257
  git: gitWorkspace,
46932
47258
  log: logger
46933
47259
  });
47260
+ const featureHints = createFeatureHintsWiring({
47261
+ statePath: configSiblingPath(configStore.configPath, "feature-hints.json"),
47262
+ broadcast: broadcastControl,
47263
+ log: logger
47264
+ });
46934
47265
  const myPrsWorkRoot = path.join(glimmervoidHome, "my-prs-work");
46935
47266
  const myPrs = createMyPrsWiring({
46936
47267
  config,
@@ -47167,6 +47498,7 @@ function createBackendLanes(dependencies) {
47167
47498
  }
47168
47499
  function tapIngestForSession(session) {
47169
47500
  sessionPrLink.attachSession(session);
47501
+ featureHints.attachSession(session);
47170
47502
  if (ingestLane?.terminalEnabled) ingestLane.attachSessionTap(session);
47171
47503
  if (ingestLane?.fsEnabled) ingestLane.noteSessionRoots(session);
47172
47504
  }
@@ -47284,6 +47616,7 @@ function createBackendLanes(dependencies) {
47284
47616
  taskTitleSessions,
47285
47617
  current,
47286
47618
  currentIngest,
47619
+ featureHints,
47287
47620
  currentVisions,
47288
47621
  gitWorkspace,
47289
47622
  gitWorkspaceSync,
@@ -51413,7 +51746,7 @@ function parseSinceParam(url) {
51413
51746
  return Number.isFinite(n) ? n : null;
51414
51747
  }
51415
51748
  function registerControlHandlers(controlWss, deps) {
51416
- const { sessions, agentSessions = /* @__PURE__ */ new Map(), markChildWorktreeDiscard = null, config, configStore, broadcastControl, generateProjectId, applyConfigReload, applySettingsReload, requestShutdown, requestRestart, handleClientFocus, buildHealthSnapshot, getUpdateStatus, getUpdateJournal = null, getPostTurnLeftoversNotice = null, recheckPostTurnLeftovers = null, checkNow = null, applyUpdate = null, noteRestartRequested = null, getRadarStatus, posthogReportsDir = null, posthogSetIssueStatus = null, radarArchiveInvestigation = null, getTeamReviewStatus = null, getMyPrsStatus = null, getIssuesStatus = null, githubStore = null, issues = null, teamReview = null, myPrs = null, getBenchmarkStatus = null, benchmarks = null, requestIssue = async () => ({
51749
+ const { sessions, agentSessions = /* @__PURE__ */ new Map(), markChildWorktreeDiscard = null, config, configStore, broadcastControl, generateProjectId, applyConfigReload, applySettingsReload, requestShutdown, requestRestart, handleClientFocus, buildHealthSnapshot, getUpdateStatus, getUpdateJournal = null, getPostTurnLeftoversNotice = null, recheckPostTurnLeftovers = null, featureHints = null, checkNow = null, applyUpdate = null, noteRestartRequested = null, getRadarStatus, posthogReportsDir = null, posthogSetIssueStatus = null, radarArchiveInvestigation = null, getTeamReviewStatus = null, getMyPrsStatus = null, getIssuesStatus = null, githubStore = null, issues = null, teamReview = null, myPrs = null, getBenchmarkStatus = null, benchmarks = null, requestIssue = async () => ({
51417
51750
  isRateLimited: false,
51418
51751
  value: {
51419
51752
  ok: false,
@@ -52200,9 +52533,20 @@ function registerControlHandlers(controlWss, deps) {
52200
52533
  action
52201
52534
  });
52202
52535
  }
52536
+ function noteFeatureHintReport(report) {
52537
+ if (!featureHints) return;
52538
+ if (report.event === "view_shown") {
52539
+ featureHints.noteViewShown(report.properties.view);
52540
+ return;
52541
+ }
52542
+ if (report.event !== "operator_action" || report.properties.surface !== "hints" || !report.properties.feature) return;
52543
+ if (report.properties.action === "open") featureHints.settle(report.properties.feature, "opened");
52544
+ if (report.properties.action === "dismiss") featureHints.settle(report.properties.feature, "dismissed");
52545
+ }
52203
52546
  function captureDashboardTelemetry(msg) {
52204
52547
  const report = DashboardTelemetryReport.safeParse(msg);
52205
52548
  if (!report.success) return;
52549
+ noteFeatureHintReport(report.data);
52206
52550
  if (report.data.event === "header_error_shown") {
52207
52551
  const { source, message } = report.data.properties;
52208
52552
  deps.telemetry?.capture?.("header_error_shown", {
@@ -53402,6 +53746,8 @@ function registerControlHandlers(controlWss, deps) {
53402
53746
  }));
53403
53747
  const postTurnLeftoversNotice = getPostTurnLeftoversNotice?.() ?? null;
53404
53748
  if (postTurnLeftoversNotice) ws.send(JSON.stringify(postTurnLeftoversNotice));
53749
+ const featureHintMessage = featureHints?.pendingHintMessage() ?? null;
53750
+ if (featureHintMessage) ws.send(JSON.stringify(featureHintMessage));
53405
53751
  recheckPostTurnLeftovers?.();
53406
53752
  const radarStatus = typeof getRadarStatus === "function" ? getRadarStatus() : null;
53407
53753
  if (radarStatus) ws.send(JSON.stringify(radarStatus));
@@ -53500,6 +53846,7 @@ function createBackendControl(dependencies) {
53500
53846
  getUpdateStatus: dependencies.getUpdateStatus,
53501
53847
  getUpdateJournal: dependencies.getUpdateJournal,
53502
53848
  getPostTurnLeftoversNotice: dependencies.getPostTurnLeftoversNotice,
53849
+ featureHints: laneAssembly.featureHints,
53503
53850
  recheckPostTurnLeftovers: dependencies.recheckPostTurnLeftovers,
53504
53851
  checkNow: dependencies.checkNow,
53505
53852
  applyUpdate: dependencies.applyUpdate,
@@ -1,6 +1,6 @@
1
1
  import { r as errorMessage } from "./text-DoirglWV.js";
2
- import { l as resolveConfigPath } from "./config-store-BDnviJpb.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-DCeelB8P.js";
2
+ import { l as resolveConfigPath } from "./config-store-B6tDGKyB.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-DKXELcNh.js";
4
4
  import fs from "node:fs";
5
5
  //#region server/text-format.ts
6
6
  function trimIso(iso) {
@@ -3,7 +3,7 @@ import { n as equalsIgnoringCaseOnWindows } from "./paths-Bu4eH1Yd.js";
3
3
  import { n as isRecord } from "./coerce-NSst8oRP.js";
4
4
  import { n as unrefTimer, t as DEFAULT_TIMER_FNS } from "./timer-deps-u2DAQLok.js";
5
5
  import { a as jsonStateLoadError, d as writeJsonAtomicSync, l as sleepSync, s as loadJsonStateFileSync, u as writeJsonAtomic } from "./json-file-BjFK_eSH.js";
6
- import { dt as canonicalizePath, s as glimmervoidHomeDir } from "./config-store-BDnviJpb.js";
6
+ import { dt as canonicalizePath, s as glimmervoidHomeDir } from "./config-store-B6tDGKyB.js";
7
7
  import fs from "node:fs";
8
8
  import path from "node:path";
9
9
  import crypto from "node:crypto";
@@ -1,11 +1,11 @@
1
1
  import { r as errorMessage, t as errorCode } from "./text-DoirglWV.js";
2
2
  import { n as glimmervoidHomeDir, t as decideConfigPath } from "./config-path-core-DUWk0Lui.js";
3
3
  import { f as AgentSettingsReply } from "./session-B2Wieg0a.js";
4
- import { r as BrowserConfig } from "./config-CfYYorC4.js";
4
+ import { r as BrowserConfig } from "./config-C4Oslz0q.js";
5
5
  import { n as isRecord } from "./coerce-NSst8oRP.js";
6
6
  import { t as renderTable } from "./ascii-figure-core-pDAwtlKO.js";
7
- import { A as setValueAtPath, F as SETTINGS_REGISTRY, N as valueAtPath, O as parsePosthogProjectSelection, T as deleteValueAtPath, c as loadConfigFile, d as validateConfig, et as ENV_SECRET_BINDINGS, f as isSettingAvailable, k as scoreSettingsSearch, r as IS_EXPERIMENTAL_BUILD, rt as withEnvSecrets, tt as readEnvSecrets, u as saveConfigFileOnce, w as cloneValue } from "./config-store-BDnviJpb.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-DQ07GLzg.js";
7
+ import { A as setValueAtPath, F as SETTINGS_REGISTRY, N as valueAtPath, O as parsePosthogProjectSelection, T as deleteValueAtPath, c as loadConfigFile, d as validateConfig, et as ENV_SECRET_BINDINGS, f as isSettingAvailable, k as scoreSettingsSearch, r as IS_EXPERIMENTAL_BUILD, rt as withEnvSecrets, tt as readEnvSecrets, u as saveConfigFileOnce, w as cloneValue } from "./config-store-B6tDGKyB.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-DCcVODuW.js";
9
9
  import fs from "node:fs";
10
10
  import os from "node:os";
11
11
  import { parseArgs } from "node:util";
@@ -330,7 +330,7 @@ function processIo() {
330
330
  async function runSettingsCli(commandArguments, io = processIo()) {
331
331
  const serverRequest = settingsRequestForServer(commandArguments, process.env);
332
332
  if (!serverRequest) return runSettingsCommand(commandArguments, io);
333
- const { askAgentApi } = await import("./agent-api-cli-bNlTz-7w.js");
333
+ const { askAgentApi } = await import("./agent-api-cli-Dc109B-V.js");
334
334
  const reply = AgentSettingsReply.safeParse(await askAgentApi("settings", serverRequest).catch((error) => ({
335
335
  ok: false,
336
336
  error: errorMessage(error)
@@ -1,6 +1,6 @@
1
1
  import { p as AgentSettingsRequest } from "./session-B2Wieg0a.js";
2
2
  import { t as renderTable } from "./ascii-figure-core-pDAwtlKO.js";
3
- import { C as SETTINGS_INDEX, D as hasScaledUnit, E as displayText, F as SETTINGS_REGISTRY, M as settingsOf, N as valueAtPath, P as FILE_ONLY_GROUPS, f as isSettingAvailable, j as settingsGroupOf, tt as readEnvSecrets, w as cloneValue } from "./config-store-BDnviJpb.js";
3
+ import { C as SETTINGS_INDEX, D as hasScaledUnit, E as displayText, F as SETTINGS_REGISTRY, M as settingsOf, N as valueAtPath, P as FILE_ONLY_GROUPS, f as isSettingAvailable, j as settingsGroupOf, tt as readEnvSecrets, w as cloneValue } from "./config-store-B6tDGKyB.js";
4
4
  import { parseArgs } from "node:util";
5
5
  //#region server/core/settings-readout-core.ts
6
6
  var VALUE_COLUMN_WIDTH = 40;
@@ -2,7 +2,7 @@ import { r as errorMessage } from "./text-DoirglWV.js";
2
2
  import { O as SIGN_URL_ENV, P as SshSignReply } from "./session-B2Wieg0a.js";
3
3
  import { n as execFileAsync, o as spawn } from "./child-process-safe-D4hyVIXj.js";
4
4
  import { a as isLoopbackHostname } from "./hook-relay-core-DA_bz2KA.js";
5
- import { n as postToAgentIngress } from "./agent-api-cli-DOzlY0Hz.js";
5
+ import { n as postToAgentIngress } from "./agent-api-cli-t7wPNYN7.js";
6
6
  import { l as parseSshPublicKey } from "./ssh-signing-core-CRhVVWNW.js";
7
7
  import path from "node:path";
8
8
  import fs from "node:fs/promises";
@@ -1 +1 @@
1
- import{Bi as e,Gi as t,Hi as n,Ki as r,Ui as i,Vi as a,Wi as o,zi as s}from"./index-CYei8v9s.js";var c=.3,l=null;function u(){return r(l)}function d(e){return t(e,l)}async function f(){try{let e=await fetch(s,{credentials:`same-origin`,cache:`no-store`});e.ok&&(l=o(await e.json()))}catch{}}function p(){let e=new AudioContext;return e.state===`suspended`&&e.resume(),e}function m(e,t){setTimeout(()=>e.close().catch(()=>{}),(t+.1)*1e3)}function h(e){g(a[e]??a.chime)}function g(e){let t=p(),n=t.createGain();n.gain.value=e.peakGain,n.connect(t.destination);let r=t.currentTime,i=0;for(let a of e.tones){let e=r+a.startSeconds,o=e+a.durationSeconds,s=t.createOscillator(),c=t.createGain();s.type=a.waveform,s.frequency.setValueAtTime(a.frequency,e),a.endFrequency&&s.frequency.exponentialRampToValueAtTime(a.endFrequency,o),c.gain.setValueAtTime(.001,e),c.gain.exponentialRampToValueAtTime(a.gain??1,e+.01),c.gain.exponentialRampToValueAtTime(.001,o),s.connect(c),c.connect(n),s.start(e),s.stop(o),i=Math.max(i,a.startSeconds+a.durationSeconds)}m(t,i)}async function _(e){try{let t=await fetch(i(e),{credentials:`same-origin`});return t.ok?await t.arrayBuffer():null}catch{return null}}async function v(e){let t=await _(e);if(!t)return!1;let n=p();try{let e=await n.decodeAudioData(t),r=n.createGain();r.gain.value=c,r.connect(n.destination);let i=n.createBufferSource();return i.buffer=e,i.connect(r),i.start(),m(n,e.duration),!0}catch{return n.close().catch(()=>{}),!1}}var y=[659.25,830.61,987.77,1108.73,987.77,830.61,739.99,659.25,739.99,830.61,987.77,1108.73,987.77,830.61];function b(){try{let e=new AudioContext;if(e.state===`suspended`&&e.resume(),e.state===`suspended`)return;let t=e.createGain();t.gain.value=.05,t.connect(e.destination);let n=.125,r=e.currentTime;for(let i=0;i<y.length;i++){let a=r+i*n,o=e.createOscillator(),s=e.createGain();o.type=`square`,o.frequency.value=y[i],s.gain.setValueAtTime(.001,a),s.gain.exponentialRampToValueAtTime(1,a+.01),s.gain.exponentialRampToValueAtTime(.001,a+n*.9),o.connect(s),s.connect(t),o.start(a),o.stop(a+n)}let i=r+y.length*n;t.gain.setValueAtTime(.05,i-.05),t.gain.exponentialRampToValueAtTime(.001,i),setTimeout(()=>e.close().catch(()=>{}),(i-r+.1)*1e3)}catch{}}function x(){try{h(e)}catch{}}function S(e){try{let t=d(e),r=n(t);if(!r){h(t);return}v(r).then(e=>{e||x()})}catch{}}export{f as loadCustomSounds,S as playAlertSound,b as playNyanJingle,g as playToneSequence,d as resolveSoundId,u as soundOptions};
1
+ import{Gi as e,Hi as t,Ji as n,Ki as r,Ui as i,Wi as a,Yi as o,qi as s}from"./index-D2EjyhP2.js";var c=.3,l=null;function u(){return o(l)}function d(e){return n(e,l)}async function f(){try{let e=await fetch(t,{credentials:`same-origin`,cache:`no-store`});e.ok&&(l=s(await e.json()))}catch{}}function p(){let e=new AudioContext;return e.state===`suspended`&&e.resume(),e}function m(e,t){setTimeout(()=>e.close().catch(()=>{}),(t+.1)*1e3)}function h(e){g(a[e]??a.chime)}function g(e){let t=p(),n=t.createGain();n.gain.value=e.peakGain,n.connect(t.destination);let r=t.currentTime,i=0;for(let a of e.tones){let e=r+a.startSeconds,o=e+a.durationSeconds,s=t.createOscillator(),c=t.createGain();s.type=a.waveform,s.frequency.setValueAtTime(a.frequency,e),a.endFrequency&&s.frequency.exponentialRampToValueAtTime(a.endFrequency,o),c.gain.setValueAtTime(.001,e),c.gain.exponentialRampToValueAtTime(a.gain??1,e+.01),c.gain.exponentialRampToValueAtTime(.001,o),s.connect(c),c.connect(n),s.start(e),s.stop(o),i=Math.max(i,a.startSeconds+a.durationSeconds)}m(t,i)}async function _(e){try{let t=await fetch(r(e),{credentials:`same-origin`});return t.ok?await t.arrayBuffer():null}catch{return null}}async function v(e){let t=await _(e);if(!t)return!1;let n=p();try{let e=await n.decodeAudioData(t),r=n.createGain();r.gain.value=c,r.connect(n.destination);let i=n.createBufferSource();return i.buffer=e,i.connect(r),i.start(),m(n,e.duration),!0}catch{return n.close().catch(()=>{}),!1}}var y=[659.25,830.61,987.77,1108.73,987.77,830.61,739.99,659.25,739.99,830.61,987.77,1108.73,987.77,830.61];function b(){try{let e=new AudioContext;if(e.state===`suspended`&&e.resume(),e.state===`suspended`)return;let t=e.createGain();t.gain.value=.05,t.connect(e.destination);let n=.125,r=e.currentTime;for(let i=0;i<y.length;i++){let a=r+i*n,o=e.createOscillator(),s=e.createGain();o.type=`square`,o.frequency.value=y[i],s.gain.setValueAtTime(.001,a),s.gain.exponentialRampToValueAtTime(1,a+.01),s.gain.exponentialRampToValueAtTime(.001,a+n*.9),o.connect(s),s.connect(t),o.start(a),o.stop(a+n)}let i=r+y.length*n;t.gain.setValueAtTime(.05,i-.05),t.gain.exponentialRampToValueAtTime(.001,i),setTimeout(()=>e.close().catch(()=>{}),(i-r+.1)*1e3)}catch{}}function x(){try{h(i)}catch{}}function S(t){try{let n=d(t),r=e(n);if(!r){h(n);return}v(r).then(e=>{e||x()})}catch{}}export{f as loadCustomSounds,S as playAlertSound,b as playNyanJingle,g as playToneSequence,d as resolveSoundId,u as soundOptions};
@@ -1 +1 @@
1
- import"./updates-view-core-BYoMfzXj.js";import{n as e,o as t,r as n}from"./dom-helpers-C7P3_59O.js";import{J as r,Y as i,q as a}from"./index-CYei8v9s.js";var o={mine:`Mine`,run:`Run`,cancel:`Cancel`},s=null;function c(e){return e===null?`n/a`:`${Math.round(e*100)}%`}function l(e){if(e===null)return`n/a`;let t=Math.round(e*100);return t>0?`+${t}`:String(t)}function u(e,n,i){let a=t(`button`,`bench-action-button`,o[n]);return a.type=`button`,a.disabled=i,a.addEventListener(`click`,()=>r(e.id,n)),a}function d(e,t){let n=e.inFlight;if(!n||n.suiteId!==t.id)return``;let r=n.caseId?`case ${n.caseId}, `:``;return`Cell ${n.cellIndex+1} of ${n.cellCount}: ${r}arm ${n.armId}, trial ${n.trial}, ${n.phase}.`}function f(e){let n=t(`td`,`bench-score`,c(e?.recall??null));return e&&e.invalid>0&&(n.title=`${e.invalid} invalid or failed cell(s)`),e&&e.degraded>0&&(n.dataset.degraded=`true`),n}function p(e){let n=e.armIds.filter(t=>t!==e.baselineArm),r=t(`table`,`bench-table`),i=t(`tr`);i.append(t(`th`,null,`Case`),...e.armIds.map(n=>t(`th`,null,n===e.baselineArm?`${n} (baseline)`:n))),i.append(...n.map(e=>t(`th`,null,`${e} vs baseline`))),r.append(i);for(let i of e.rows){let a=t(`tr`);a.append(t(`td`,`bench-case`,i.caseId),...e.armIds.map(e=>f(i.arms[e]))),a.append(...n.map(e=>t(`td`,`bench-delta`,l(i.deltaVsBaseline[e]??null)))),r.append(a)}let a=[...new Set(e.armIds.flatMap(t=>Object.keys(e.totals[t]?.recallByTag??{})))].sort(),o=t(`tr`,`bench-total`);o.append(t(`td`,`bench-case`,`Paired recall`),...e.armIds.map(t=>f(e.totals[t]))),r.append(o);for(let n of a){let i=t(`tr`,`bench-total`);i.append(t(`td`,`bench-case`,`Recall, ${n}`),...e.armIds.map(r=>t(`td`,`bench-score`,c(e.totals[r]?.recallByTag[n]??null)))),r.append(i)}return r}function m(e,r){let{isServerConnected:i,pendingActionBySuite:o,outcomeBySuite:s}=a(),c=t(`div`,`bench-suite`),l=e.inFlight?.suiteId===r.id,f=!!e.inFlight&&!l,m=o.has(r.id)||!i,h=t(`div`,`bench-summary`);h.append(t(`span`,`bench-suite-title`,r.title),n(`bench`,r.caseCount===1?`case`:`cases`,String(r.caseCount)),n(`bench`,r.candidateCount===1?`candidate`:`candidates`,String(r.candidateCount)),n(`bench`,`arms`,String(r.armIds.length))),c.append(h);let g=t(`div`,`bench-controls`),_=e.configured===!0&&r.error===null;g.append(u(r,`mine`,!_||m||l),u(r,`run`,!_||m||l||f||r.caseCount===0),u(r,`cancel`,m||!l));let v=t(`span`,`bench-status`,(i?``:`Not connected to the server. Reconnecting.`)||d(e,r)||s.get(r.id)||``);if(v.setAttribute(`role`,`status`),g.append(v),c.append(g),r.error)return c.append(t(`p`,`bench-error`,r.error)),c;let y=r.latestReport;return y?(c.append(t(`p`,`bench-run-line`,`Latest run ${y.runId}: ${y.status}. Only cases every arm scored count toward paired recall.`)),y.rows.length>0&&c.append(p(y)),c):(c.append(t(`p`,`bench-empty`,r.caseCount===0?`Move approved candidates into the cases folder, then choose Run.`:`No run yet.`)),c)}function h(){if(!s)return;s.textContent=``;let{status:n}=a(),r=e(`bench`,`Benchmarks`,`Suites from the benchmarks folder of the Glimmervoid home, one run at a time.`);if(s.append(r),!n)s.append(t(`p`,`bench-empty`,`Waiting for the server.`));else if(!n.configured)s.append(t(`p`,`bench-empty`,n.reason||`Benchmarks are off.`));else if(n.suites.length===0)s.append(t(`p`,`bench-empty`,`No suites yet. Create a folder holding suite.json under benchmarks in the Glimmervoid home.`));else for(let e of n.suites)s.append(m(n,e))}function g(e){s||(s=t(`div`,`bench-content`),e.append(s),i(h),h())}var _={mount:g};export{_ as view};
1
+ import"./updates-view-core-D1HrhoS5.js";import{n as e,o as t,r as n}from"./dom-helpers-C7P3_59O.js";import{J as r,Y as i,q as a}from"./index-D2EjyhP2.js";var o={mine:`Mine`,run:`Run`,cancel:`Cancel`},s=null;function c(e){return e===null?`n/a`:`${Math.round(e*100)}%`}function l(e){if(e===null)return`n/a`;let t=Math.round(e*100);return t>0?`+${t}`:String(t)}function u(e,n,i){let a=t(`button`,`bench-action-button`,o[n]);return a.type=`button`,a.disabled=i,a.addEventListener(`click`,()=>r(e.id,n)),a}function d(e,t){let n=e.inFlight;if(!n||n.suiteId!==t.id)return``;let r=n.caseId?`case ${n.caseId}, `:``;return`Cell ${n.cellIndex+1} of ${n.cellCount}: ${r}arm ${n.armId}, trial ${n.trial}, ${n.phase}.`}function f(e){let n=t(`td`,`bench-score`,c(e?.recall??null));return e&&e.invalid>0&&(n.title=`${e.invalid} invalid or failed cell(s)`),e&&e.degraded>0&&(n.dataset.degraded=`true`),n}function p(e){let n=e.armIds.filter(t=>t!==e.baselineArm),r=t(`table`,`bench-table`),i=t(`tr`);i.append(t(`th`,null,`Case`),...e.armIds.map(n=>t(`th`,null,n===e.baselineArm?`${n} (baseline)`:n))),i.append(...n.map(e=>t(`th`,null,`${e} vs baseline`))),r.append(i);for(let i of e.rows){let a=t(`tr`);a.append(t(`td`,`bench-case`,i.caseId),...e.armIds.map(e=>f(i.arms[e]))),a.append(...n.map(e=>t(`td`,`bench-delta`,l(i.deltaVsBaseline[e]??null)))),r.append(a)}let a=[...new Set(e.armIds.flatMap(t=>Object.keys(e.totals[t]?.recallByTag??{})))].sort(),o=t(`tr`,`bench-total`);o.append(t(`td`,`bench-case`,`Paired recall`),...e.armIds.map(t=>f(e.totals[t]))),r.append(o);for(let n of a){let i=t(`tr`,`bench-total`);i.append(t(`td`,`bench-case`,`Recall, ${n}`),...e.armIds.map(r=>t(`td`,`bench-score`,c(e.totals[r]?.recallByTag[n]??null)))),r.append(i)}return r}function m(e,r){let{isServerConnected:i,pendingActionBySuite:o,outcomeBySuite:s}=a(),c=t(`div`,`bench-suite`),l=e.inFlight?.suiteId===r.id,f=!!e.inFlight&&!l,m=o.has(r.id)||!i,h=t(`div`,`bench-summary`);h.append(t(`span`,`bench-suite-title`,r.title),n(`bench`,r.caseCount===1?`case`:`cases`,String(r.caseCount)),n(`bench`,r.candidateCount===1?`candidate`:`candidates`,String(r.candidateCount)),n(`bench`,`arms`,String(r.armIds.length))),c.append(h);let g=t(`div`,`bench-controls`),_=e.configured===!0&&r.error===null;g.append(u(r,`mine`,!_||m||l),u(r,`run`,!_||m||l||f||r.caseCount===0),u(r,`cancel`,m||!l));let v=t(`span`,`bench-status`,(i?``:`Not connected to the server. Reconnecting.`)||d(e,r)||s.get(r.id)||``);if(v.setAttribute(`role`,`status`),g.append(v),c.append(g),r.error)return c.append(t(`p`,`bench-error`,r.error)),c;let y=r.latestReport;return y?(c.append(t(`p`,`bench-run-line`,`Latest run ${y.runId}: ${y.status}. Only cases every arm scored count toward paired recall.`)),y.rows.length>0&&c.append(p(y)),c):(c.append(t(`p`,`bench-empty`,r.caseCount===0?`Move approved candidates into the cases folder, then choose Run.`:`No run yet.`)),c)}function h(){if(!s)return;s.textContent=``;let{status:n}=a(),r=e(`bench`,`Benchmarks`,`Suites from the benchmarks folder of the Glimmervoid home, one run at a time.`);if(s.append(r),!n)s.append(t(`p`,`bench-empty`,`Waiting for the server.`));else if(!n.configured)s.append(t(`p`,`bench-empty`,n.reason||`Benchmarks are off.`));else if(n.suites.length===0)s.append(t(`p`,`bench-empty`,`No suites yet. Create a folder holding suite.json under benchmarks in the Glimmervoid home.`));else for(let e of n.suites)s.append(m(n,e))}function g(e){s||(s=t(`div`,`bench-content`),e.append(s),i(h),h())}var _={mount:g};export{_ as view};
@@ -1 +1 @@
1
- import{bt as e}from"./updates-view-core-BYoMfzXj.js";import{E as t}from"./dom-helpers-C7P3_59O.js";var n=new Map(Object.entries({WAITING:`now`,COMPLETE:`later`,FAILED:`resting`,IDLE:`resting`,RUNNING:`resting`,STARTING:`resting`,INITIALIZING:`resting`,DORMANT:`resting`,DONE:`resting`}));function r(e){return(typeof e.state==`string`?n.get(e.state):void 0)??`resting`}function i(e,n){return[...e].map(([e,r])=>{let i=r.currentState||t.DORMANT;return{id:e,ui:r,name:n(r),isDormant:i===t.DORMANT,state:i,unseenOutcome:r.unseenOutcome??null,ownerId:r.ownerId??null}})}function a(e){let t=new Set(e.map(({id:e})=>e)),n=e=>e.ownerId&&t.has(e.ownerId)?e.ownerId:null,r=new Map;for(let t of e){let e=n(t);e&&r.set(e,[...r.get(e)??[],t])}return e.flatMap(e=>n(e)?[]:[e,...r.get(e.id)??[]])}function o(e){return a([...e].sort((e,t)=>Number(e.isDormant===!0)-Number(t.isDormant===!0)))}function s({ownerName:e,ownedCount:t}){return e===null?t===1?`Owns 1 session`:t>1?`Owns ${t} sessions`:null:`Owned by ${e}`}function c(e,t,n){if(!e.length)return null;let r=n<0?-1:1,i=t==null?-1:e.indexOf(t);return e[((i===-1?r===1?-1:0:i)+r+e.length)%e.length]}function l({state:n,unseenOutcome:r}){if(n===t.WAITING)return`waiting`;let i=e.safeParse(r);return i.success?i.data:null}function u(e={}){return l(e)!==null}var d=new Map([[`failed`,0],[`waiting`,1],[`finished`,2]]);function f(e){let t=l(e);return t===null?void 0:d.get(t)}function p(e){return e.filter(e=>f(e)!==void 0).sort((e,t)=>(f(e)??0)-(f(t)??0)).map(({id:e})=>e)}function m(e,t){let n=new Map(e.map(e=>[e.id,e]));return p(e).flatMap(e=>{let r=n.get(e),i=r?l(r):null;return!r||i===null||e===t?[]:[{id:e,kind:i,name:r.name??``}]})}var h={headTile:32,tile:26,tileGap:4,overflowSlot:40};function g(e,t){if(t===0)return 0;let{headTile:n,tile:r,tileGap:i,overflowSlot:a}=h,o=r+i;if(n+(t-1)*o<=e)return t;let s=e-a-i-n,c=Math.floor(s/o);return Math.max(1,Math.min(t-1,1+c))}var _={waiting:`waitingCount`,failed:`failedCount`,finished:`finishedCount`};function v(e,t,n){let r=l(t||{});r!==null&&(e[_[r]]+=n)}function y(e){let t={waitingCount:0,finishedCount:0,failedCount:0};for(let n of e||[])v(t,n,1);return t}function b(){return{counts:{waitingCount:0,finishedCount:0,failedCount:0},ownedCountByOwnerId:new Map}}function x(e,t,n){if(v(e.counts,t,n),t.ownerId===null)return;let r=(e.ownedCountByOwnerId.get(t.ownerId)??0)+n;r>0?e.ownedCountByOwnerId.set(t.ownerId,r):e.ownedCountByOwnerId.delete(t.ownerId)}function S(e,t){x(e,t,1)}function C(e,t){x(e,t,-1)}function w({waitingCount:e,finishedCount:t,failedCount:n}){return e+n+t}function T({waitingCount:e,failedCount:t}){return e+t}function E({waitingCount:e,finishedCount:t,failedCount:n}){let r=[];return n>0&&r.push(`${n} FAILED`),e===1&&r.push(`1 NEEDS YOU`),e>1&&r.push(`${e} NEED YOU`),t>0&&r.push(`${t} FINISHED`),r.length===0?`ALL CLEAR`:r.join(`, `)}var D=new Map([[`hand`,2]]),O=1;function k(e){return e?typeof e==`string`&&D.get(e)||O:0}function A(e){let t=!1,n=0;for(let r of e||[]){let e=k(r);e<=n||(t=typeof r!=`string`||r,n=e)}return t}var j=new Map,M=b();function N(e){return e.card?.dataset.session||e.nameEl?.textContent||``}function P(e){return typeof e==`string`?e:String(e)}function F(e){return typeof e==`string`?j.get(e):void 0}var I=document.getElementById(`sessions-container`);export{T as S,c as _,N as a,S as b,E as c,s as d,g as f,o as g,m as h,P as i,i as l,u as m,I as n,j as o,w as p,F as r,h as s,M as t,y as u,A as v,C as x,r as y};
1
+ import{xt as e}from"./updates-view-core-D1HrhoS5.js";import{E as t}from"./dom-helpers-C7P3_59O.js";var n=new Map(Object.entries({WAITING:`now`,COMPLETE:`later`,FAILED:`resting`,IDLE:`resting`,RUNNING:`resting`,STARTING:`resting`,INITIALIZING:`resting`,DORMANT:`resting`,DONE:`resting`}));function r(e){return(typeof e.state==`string`?n.get(e.state):void 0)??`resting`}function i(e,n){return[...e].map(([e,r])=>{let i=r.currentState||t.DORMANT;return{id:e,ui:r,name:n(r),isDormant:i===t.DORMANT,state:i,unseenOutcome:r.unseenOutcome??null,ownerId:r.ownerId??null}})}function a(e){let t=new Set(e.map(({id:e})=>e)),n=e=>e.ownerId&&t.has(e.ownerId)?e.ownerId:null,r=new Map;for(let t of e){let e=n(t);e&&r.set(e,[...r.get(e)??[],t])}return e.flatMap(e=>n(e)?[]:[e,...r.get(e.id)??[]])}function o(e){return a([...e].sort((e,t)=>Number(e.isDormant===!0)-Number(t.isDormant===!0)))}function s({ownerName:e,ownedCount:t}){return e===null?t===1?`Owns 1 session`:t>1?`Owns ${t} sessions`:null:`Owned by ${e}`}function c(e,t,n){if(!e.length)return null;let r=n<0?-1:1,i=t==null?-1:e.indexOf(t);return e[((i===-1?r===1?-1:0:i)+r+e.length)%e.length]}function l({state:n,unseenOutcome:r}){if(n===t.WAITING)return`waiting`;let i=e.safeParse(r);return i.success?i.data:null}function u(e={}){return l(e)!==null}var d=new Map([[`failed`,0],[`waiting`,1],[`finished`,2]]);function f(e){let t=l(e);return t===null?void 0:d.get(t)}function p(e){return e.filter(e=>f(e)!==void 0).sort((e,t)=>(f(e)??0)-(f(t)??0)).map(({id:e})=>e)}function m(e,t){let n=new Map(e.map(e=>[e.id,e]));return p(e).flatMap(e=>{let r=n.get(e),i=r?l(r):null;return!r||i===null||e===t?[]:[{id:e,kind:i,name:r.name??``}]})}var h={headTile:32,tile:26,tileGap:4,overflowSlot:40};function g(e,t){if(t===0)return 0;let{headTile:n,tile:r,tileGap:i,overflowSlot:a}=h,o=r+i;if(n+(t-1)*o<=e)return t;let s=e-a-i-n,c=Math.floor(s/o);return Math.max(1,Math.min(t-1,1+c))}var _={waiting:`waitingCount`,failed:`failedCount`,finished:`finishedCount`};function v(e,t,n){let r=l(t||{});r!==null&&(e[_[r]]+=n)}function y(e){let t={waitingCount:0,finishedCount:0,failedCount:0};for(let n of e||[])v(t,n,1);return t}function b(){return{counts:{waitingCount:0,finishedCount:0,failedCount:0},ownedCountByOwnerId:new Map}}function x(e,t,n){if(v(e.counts,t,n),t.ownerId===null)return;let r=(e.ownedCountByOwnerId.get(t.ownerId)??0)+n;r>0?e.ownedCountByOwnerId.set(t.ownerId,r):e.ownedCountByOwnerId.delete(t.ownerId)}function S(e,t){x(e,t,1)}function C(e,t){x(e,t,-1)}function w({waitingCount:e,finishedCount:t,failedCount:n}){return e+n+t}function T({waitingCount:e,failedCount:t}){return e+t}function E({waitingCount:e,finishedCount:t,failedCount:n}){let r=[];return n>0&&r.push(`${n} FAILED`),e===1&&r.push(`1 NEEDS YOU`),e>1&&r.push(`${e} NEED YOU`),t>0&&r.push(`${t} FINISHED`),r.length===0?`ALL CLEAR`:r.join(`, `)}var D=new Map([[`hand`,2]]),O=1;function k(e){return e?typeof e==`string`&&D.get(e)||O:0}function A(e){let t=!1,n=0;for(let r of e||[]){let e=k(r);e<=n||(t=typeof r!=`string`||r,n=e)}return t}var j=new Map,M=b();function N(e){return e.card?.dataset.session||e.nameEl?.textContent||``}function P(e){return typeof e==`string`?e:String(e)}function F(e){return typeof e==`string`?j.get(e):void 0}var I=document.getElementById(`sessions-container`);export{T as S,c as _,N as a,S as b,E as c,s as d,g as f,o as g,m as h,P as i,i as l,u as m,I as n,j as o,w as p,F as r,h as s,M as t,y as u,A as v,C as x,r as y};