glimmervoid 0.46.2-next.179 → 0.46.2-next.182
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/glimmervoid.js +9 -9
- package/dist/chunks/{adapters-AiMCdqav.js → adapters-B_ddfyAw.js} +1 -1
- package/dist/chunks/{adapters-DU6jnKd3.js → adapters-C6vgZD_b.js} +3 -3
- package/dist/chunks/{agent-api-cli-Blh4i-e_.js → agent-api-cli-Cf1UtaOo.js} +1 -1
- package/dist/chunks/{agent-api-cli-nIoMZ9c4.js → agent-api-cli-Cuyxj5tx.js} +1 -1
- package/dist/chunks/{agent-api-core-B3fuAlaR.js → agent-api-core-Cdriunz5.js} +12 -3
- package/dist/chunks/{build-channel-BpphxZcy.js → build-channel-CM3aRlZL.js} +1 -1
- package/dist/chunks/{config-jnDuttam.js → config-3tODElm8.js} +22 -2
- package/dist/chunks/config-store-CsSQeSbV.js +1 -0
- package/dist/chunks/{config-store-eMlT56kt.js → config-store-nOMY9dW-.js} +67 -2
- package/dist/chunks/kimi-1B-KsOSh.js +1 -0
- package/dist/chunks/{kimi-BiLAVDKd.js → kimi-CNmvb0ck.js} +7 -2
- package/dist/chunks/{main-DNzhW4PF.js → main-D70TtHQi.js} +391 -14
- package/dist/chunks/{pair-cli-D1PaM0jr.js → pair-cli-Czpg17m-.js} +2 -2
- package/dist/chunks/{remote-config-Cpg-SS0f.js → remote-config-CWBPs1hL.js} +1 -1
- package/dist/chunks/{settings-cli-DaGPZte_.js → settings-cli-DRF_F9An.js} +4 -4
- package/dist/chunks/{settings-readout-core-DNiU1YXo.js → settings-readout-core-it_-CnI9.js} +1 -1
- package/dist/chunks/{ssh-sign-cli-BJQ2g9zn.js → ssh-sign-cli-DqVHdyzw.js} +1 -1
- package/dist/client/assets/{alert-sound-tY8BNk3j.js → alert-sound-DP0EY-4k.js} +1 -1
- package/dist/client/assets/alert-sound-DP0EY-4k.js.br +0 -0
- package/dist/client/assets/{benchmark-panel-Ze2zvYcv.js → benchmark-panel-CFHL7mOm.js} +1 -1
- package/dist/client/assets/benchmark-panel-CFHL7mOm.js.br +0 -0
- package/dist/client/assets/{card-registry-CPdgaEfI.js → card-registry-DUB2NTBV.js} +1 -1
- package/dist/client/assets/card-registry-DUB2NTBV.js.br +0 -0
- package/dist/client/assets/{celebration-player-mDmW-nWB.js → celebration-player-CAP-7l7p.js} +1 -1
- package/dist/client/assets/celebration-player-CAP-7l7p.js.br +0 -0
- package/dist/client/assets/{control-ws-H2e01_5q.js → control-ws-B0r21qOO.js} +1 -1
- package/dist/client/assets/control-ws-B0r21qOO.js.br +0 -0
- package/dist/client/assets/dialogs-43bStMxb.js +85 -0
- package/dist/client/assets/dialogs-43bStMxb.js.br +0 -0
- package/dist/client/assets/{doc-editor-ui-CLNX22bJ.js → doc-editor-ui-BmNc0Bqh.js} +1 -1
- package/dist/client/assets/doc-editor-ui-BmNc0Bqh.js.br +0 -0
- package/dist/client/assets/dom-helpers-ScgOMqDW.js +1 -0
- package/dist/client/assets/dom-helpers-ScgOMqDW.js.br +0 -0
- package/dist/client/assets/{feature-hint-DP4noGJc.js → feature-hint-CJ6bXbod.js} +1 -1
- package/dist/client/assets/feature-hint-CJ6bXbod.js.br +0 -0
- package/dist/client/assets/first-run-checklist-CtqFDYe4.js +1 -0
- package/dist/client/assets/first-run-checklist-CtqFDYe4.js.br +0 -0
- package/dist/client/assets/{hooks-panel-BNlPvi4a.js → hooks-panel-BbxI_Zuk.js} +1 -1
- package/dist/client/assets/hooks-panel-BbxI_Zuk.js.br +0 -0
- package/dist/client/assets/{index-CD_fdlu5.js → index-ZzhBsA3G.js} +26 -26
- package/dist/client/assets/index-ZzhBsA3G.js.br +0 -0
- package/dist/client/assets/issues-panel-DCEVOEvY.js +1 -0
- package/dist/client/assets/issues-panel-DCEVOEvY.js.br +0 -0
- package/dist/client/assets/{modal-Bh-cVr-I.js → modal-KRdHzhQs.js} +1 -1
- package/dist/client/assets/modal-KRdHzhQs.js.br +0 -0
- package/dist/client/assets/{nyan-cat-Gde5v_cX.js → nyan-cat-BeqxT8-w.js} +1 -1
- package/dist/client/assets/nyan-cat-BeqxT8-w.js.br +0 -0
- package/dist/client/assets/phone-shell-Bs4He0ZA.js +1 -0
- package/dist/client/assets/phone-shell-Bs4He0ZA.js.br +0 -0
- package/dist/client/assets/plan-face-wXATP8vk.js +3 -0
- package/dist/client/assets/plan-face-wXATP8vk.js.br +0 -0
- package/dist/client/assets/{plan-render-b29lLzWk.js → plan-render-Dym-6F9d.js} +1 -1
- package/dist/client/assets/plan-render-Dym-6F9d.js.br +0 -0
- package/dist/client/assets/{pr-scope-tabs-BRFdNouL.js → pr-scope-tabs-BoL-RQ3U.js} +1 -1
- package/dist/client/assets/pr-scope-tabs-BoL-RQ3U.js.br +0 -0
- package/dist/client/assets/radar-panel-CxvOnLwa.js +1 -0
- package/dist/client/assets/radar-panel-CxvOnLwa.js.br +0 -0
- package/dist/client/assets/repo-roots-adder-DXMk98Sm.js +1 -0
- package/dist/client/assets/repo-roots-adder-DXMk98Sm.js.br +0 -0
- package/dist/client/assets/{resume-dialog-CwC-AsbX.js → resume-dialog-Dq1MpxBM.js} +1 -1
- package/dist/client/assets/resume-dialog-Dq1MpxBM.js.br +0 -0
- package/dist/client/assets/review-queue-panel-DRustOk6.js +10 -0
- package/dist/client/assets/review-queue-panel-DRustOk6.js.br +0 -0
- package/dist/client/assets/{sandboxed-frame-C5WnwN5w.js → sandboxed-frame-DT7MIpqw.js} +1 -1
- package/dist/client/assets/{session-tick-D3Nw7wV5.js → session-tick-BM1o_si_.js} +1 -1
- package/dist/client/assets/session-tick-BM1o_si_.js.br +0 -0
- package/dist/client/assets/settings-panel-CSV2-vPe.js +4 -0
- package/dist/client/assets/settings-panel-CSV2-vPe.js.br +0 -0
- package/dist/client/assets/{shown-lightbox-3qK5Mp8Z.js → shown-lightbox-BI6GGOQh.js} +1 -1
- package/dist/client/assets/shown-lightbox-BI6GGOQh.js.br +0 -0
- package/dist/client/assets/trace-panel-sowAJHlP.js +2 -0
- package/dist/client/assets/trace-panel-sowAJHlP.js.br +0 -0
- package/dist/client/assets/{updates-view-core-D1HrhoS5.js → updates-view-core-Bbg_pIU7.js} +1 -1
- package/dist/client/assets/updates-view-core-Bbg_pIU7.js.br +0 -0
- package/dist/client/assets/{usage-panel-Bqjw_j64.js → usage-panel-Bw5VNHrC.js} +1 -1
- package/dist/client/assets/usage-panel-Bw5VNHrC.js.br +0 -0
- package/dist/client/assets/{visions-panel-BWEzkvod.js → visions-panel-n9YAanNp.js} +1 -1
- package/dist/client/assets/visions-panel-n9YAanNp.js.br +0 -0
- package/dist/client/index.html +7 -7
- package/dist/client/index.html.br +0 -0
- package/dist/server/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/config-store-Ck7QZdt0.js +0 -1
- package/dist/chunks/kimi-CjswbYS5.js +0 -1
- package/dist/client/assets/alert-sound-tY8BNk3j.js.br +0 -0
- package/dist/client/assets/benchmark-panel-Ze2zvYcv.js.br +0 -0
- package/dist/client/assets/card-registry-CPdgaEfI.js.br +0 -0
- package/dist/client/assets/celebration-player-mDmW-nWB.js.br +0 -0
- package/dist/client/assets/control-ws-H2e01_5q.js.br +0 -0
- package/dist/client/assets/dialogs-UJ2Lew0s.js +0 -85
- package/dist/client/assets/dialogs-UJ2Lew0s.js.br +0 -0
- package/dist/client/assets/doc-editor-ui-CLNX22bJ.js.br +0 -0
- package/dist/client/assets/dom-helpers-C7P3_59O.js +0 -1
- package/dist/client/assets/dom-helpers-C7P3_59O.js.br +0 -0
- package/dist/client/assets/feature-hint-DP4noGJc.js.br +0 -0
- package/dist/client/assets/first-run-checklist-C1LaIrP7.js +0 -1
- package/dist/client/assets/first-run-checklist-C1LaIrP7.js.br +0 -0
- package/dist/client/assets/hooks-panel-BNlPvi4a.js.br +0 -0
- package/dist/client/assets/index-CD_fdlu5.js.br +0 -0
- package/dist/client/assets/issues-panel-vWujh6hV.js +0 -1
- package/dist/client/assets/issues-panel-vWujh6hV.js.br +0 -0
- package/dist/client/assets/modal-Bh-cVr-I.js.br +0 -0
- package/dist/client/assets/nyan-cat-Gde5v_cX.js.br +0 -0
- package/dist/client/assets/phone-shell-CWrKBPpc.js +0 -1
- package/dist/client/assets/phone-shell-CWrKBPpc.js.br +0 -0
- package/dist/client/assets/plan-face-B-kXejUR.js +0 -3
- package/dist/client/assets/plan-face-B-kXejUR.js.br +0 -0
- package/dist/client/assets/plan-render-b29lLzWk.js.br +0 -0
- package/dist/client/assets/pr-scope-tabs-BRFdNouL.js.br +0 -0
- package/dist/client/assets/radar-panel-ruhmTxTw.js +0 -1
- package/dist/client/assets/radar-panel-ruhmTxTw.js.br +0 -0
- package/dist/client/assets/repo-roots-adder-Ct0r9lH8.js +0 -1
- package/dist/client/assets/repo-roots-adder-Ct0r9lH8.js.br +0 -0
- package/dist/client/assets/resume-dialog-CwC-AsbX.js.br +0 -0
- package/dist/client/assets/review-queue-panel-sxltqRid.js +0 -10
- package/dist/client/assets/review-queue-panel-sxltqRid.js.br +0 -0
- package/dist/client/assets/session-tick-D3Nw7wV5.js.br +0 -0
- package/dist/client/assets/settings-panel-D1T_xI0T.js +0 -4
- package/dist/client/assets/settings-panel-D1T_xI0T.js.br +0 -0
- package/dist/client/assets/shown-lightbox-3qK5Mp8Z.js.br +0 -0
- package/dist/client/assets/trace-panel-Bz99xhWJ.js +0 -2
- package/dist/client/assets/trace-panel-Bz99xhWJ.js.br +0 -0
- package/dist/client/assets/updates-view-core-D1HrhoS5.js.br +0 -0
- package/dist/client/assets/usage-panel-Bqjw_j64.js.br +0 -0
- package/dist/client/assets/visions-panel-BWEzkvod.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 HINT_VIEW_BY_FEATURE, At as
|
|
8
|
+
import { A as HINT_VIEW_BY_FEATURE, At as changeMapFactId, B as MergedPrListing, Bt as GithubIssuePullRequestsRepository, Ct as UpdateJournal, D as pullRequestKeyFromReference, Dt as TraceRecord, Et as TraceCheckpoint, F as BenchmarkJudgement, Ft as PLAN_TOOL_NAME, G as GithubPrLightSearchNode, Gt as IssuesState, H as PrCheckoutCaseInput, Ht as IssueKey, I as BenchmarkRun, It as PlanDecision, J as WorkflowCommentBody, K as GithubPrsFrame, Kt as IssuesStatus, L as BenchmarkStatus, Lt as PlanRevision, M as BenchmarkActionRequest, Mt as PLAN_HOOK_EVENT, N as BenchmarkCase, Nt as PLAN_HOOK_OUTPUT_MAX_CHARS, O as FeatureHintState, Ot as CoherenceJournalOutput, P as BenchmarkId, Pt as PLAN_RESULT_HOOK_EVENT, R as BenchmarkSuite, Rt as parseExitPlanModeHookPayload, Tt as MAX_RAW_LINE_CHARS, U as GithubPrDetailNode, Ut as IssueUpdate, V as MinedPrReviewData, Vt as GithubIssueResponse, W as GithubPrKey, Wt as IssuesSearchResponse, X as WorkflowsSettings, Y as WorkflowLabelName, Z as WorkflowsState, a as ConfigUpdate, b as ClientMessage, c as SHELL_AGENT_ID, f as ReviewAgentId, g as CHANGES_POLL_INTERVAL_MS, gt as USAGE_INTEGER_RANGES, jt as PLAN_BODY_CAP_BYTES, k as HINT_FEATURES, kt as ChangeMap, m as USAGE_VENDOR_KEYS, p as USAGE_COST_MODES, q as comparablePrKey, qt as issuePullRequestStateFromGithub, r as BrowserConfig, rt as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, s as RUNTIME_CONFIG_SCALAR_KEYS, u as configIssueMessage, v as CLIENT_LOG_TEXT_MAX_CHARS, wt as SessionSetup, y as CONTROL_FRAME_MAX_BYTES, z as CommitComparison, zt as planTitle } from "./config-3tODElm8.js";
|
|
9
9
|
import { a as permitsHelpCommand, o as supervisionLine, r as describeSessionLimits } from "./session-routes-Cr9S--Nf.js";
|
|
10
|
-
import { A as
|
|
10
|
+
import { A as resolveTaskTitle, B as listRepoConversations, C as extractOscTaskTitle, D as parseRefinedSessionName, E as isSubstantivePrompt, F as resolveResumeTarget, H as isAutoNameOf, I as resumePromptFor, L as shouldAdoptReportedResumeId, M as AUTO_CONTINUE_PROMPT, N as RESUME_ID_RE, O as parseRefinedTaskTitle, P as pickAutoResume, R as claudeProjectsDir, S as extractHookTaskTitle, T as isSelfWakePrompt, U as nextSuggestedName, V as listRepoWorktreePaths, _ 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 seedTaskTitleSources, k as resolveRefocusTaskTitle, 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 extractPromptTaskTitle, x as extractAiTitle, y as cleanTaskPrompt, z as encodeProjectDir } from "./agent-api-core-Cdriunz5.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";
|
|
@@ -22,15 +22,15 @@ import { n as unrefTimer, t as DEFAULT_TIMER_FNS } from "./timer-deps-u2DAQLok.j
|
|
|
22
22
|
import { a as readPageTitle, i as filesAfterRetention, n as decideShownKind, o as shownMimeForFilename, r as describeOverCap, t as SHOWN_SNIFF_BYTES } from "./shown-files-core-C7ER2sw2.js";
|
|
23
23
|
import { n as shellQuote } from "./hook-command-core-qTNK-xMF.js";
|
|
24
24
|
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";
|
|
25
|
-
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-
|
|
26
|
-
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-
|
|
27
|
-
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-
|
|
25
|
+
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-nOMY9dW-.js";
|
|
26
|
+
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-CM3aRlZL.js";
|
|
27
|
+
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-C6vgZD_b.js";
|
|
28
28
|
import { t as HOOK_TOOLS } from "./hook-tools-Cr97Vdap.js";
|
|
29
29
|
import { d as releaseSessionLock, f as sessionIdOfLockFile, l as releaseUnheldKimiHomeSecrets, n as generatedKimiHomePath, o as realKimiHome, p as trashSessionTempFolderOnceUnheld, u as createHeldSessionTempFolder } from "./kimi-home-CYJpt82i.js";
|
|
30
|
-
import { t as kimi } from "./kimi-
|
|
30
|
+
import { t as kimi } from "./kimi-CNmvb0ck.js";
|
|
31
31
|
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";
|
|
32
|
-
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-
|
|
33
|
-
import { n as configFileViewOf, u as readSettingsForAgent } from "./settings-readout-core-
|
|
32
|
+
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-CWBPs1hL.js";
|
|
33
|
+
import { n as configFileViewOf, u as readSettingsForAgent } from "./settings-readout-core-it_-CnI9.js";
|
|
34
34
|
import { _ as escapeMarkup, g as createLaneLog, n as createVisionsSetup } from "./visions-setup-VMMyqOpl.js";
|
|
35
35
|
import { t as getRtkPath } from "./rtk-resolver-BifDj_oS.js";
|
|
36
36
|
import { createRequire } from "node:module";
|
|
@@ -5852,6 +5852,7 @@ function createBackendShutdown(dependencies) {
|
|
|
5852
5852
|
if (teamReview) stoppers.add("team-review", () => teamReview.stopPoller());
|
|
5853
5853
|
if (dependencies.myPrs) stoppers.add("my-prs", () => dependencies.myPrs?.stopPoller());
|
|
5854
5854
|
if (dependencies.issues) stoppers.add("issues", () => dependencies.issues?.stopPoller());
|
|
5855
|
+
if (dependencies.community) stoppers.add("community", () => dependencies.community?.stopPoller());
|
|
5855
5856
|
const workflows = dependencies.workflows;
|
|
5856
5857
|
if (workflows) stoppers.add("workflows", () => workflows.stopPoller());
|
|
5857
5858
|
const benchmarks = dependencies.benchmarks;
|
|
@@ -9673,7 +9674,7 @@ function earlierReviewToKeep(entry, currentHead) {
|
|
|
9673
9674
|
if (entry.priorReview?.head === currentHead) return entry.priorReview;
|
|
9674
9675
|
return null;
|
|
9675
9676
|
}
|
|
9676
|
-
function shouldPruneEntry(entry, isStillCandidate, nowMs, isPullRequestClosed = false) {
|
|
9677
|
+
function shouldPruneEntry$1(entry, isStillCandidate, nowMs, isPullRequestClosed = false) {
|
|
9677
9678
|
if (isStillCandidate || entry.inFlight) return false;
|
|
9678
9679
|
if (entry.draft?.status !== "posted") return true;
|
|
9679
9680
|
if (isPullRequestClosed) return true;
|
|
@@ -19696,6 +19697,11 @@ var Session = class extends EventEmitter {
|
|
|
19696
19697
|
if (raw?.payload) {
|
|
19697
19698
|
const sessionIdOf = typeof this._adapter.sessionIdOf === "function" ? this._adapter.sessionIdOf : (payload) => payload?.session_id;
|
|
19698
19699
|
this._captureClaudeSessionId(sessionIdOf(raw.payload), raw.payload.source, raw.payload.transcript_path, raw.signal, raw.confidence);
|
|
19700
|
+
const hookTitle = extractHookTaskTitle(raw.payload, path.basename(this.effectiveCwd()), this._adapter.titleProfile.taskTitle);
|
|
19701
|
+
if (hookTitle && hookTitle !== this._taskTitleSources.aiTitle) {
|
|
19702
|
+
this._taskTitleSources.aiTitle = hookTitle;
|
|
19703
|
+
this._updateTaskTitle();
|
|
19704
|
+
}
|
|
19699
19705
|
}
|
|
19700
19706
|
const hookEvent = String(raw.event || "").toLowerCase();
|
|
19701
19707
|
if (hookEvent === "stop") this._observeCompaction("stop");
|
|
@@ -24291,7 +24297,7 @@ function createTeamReviewPoller(deps) {
|
|
|
24291
24297
|
entry.resumable = null;
|
|
24292
24298
|
isDirty = true;
|
|
24293
24299
|
}
|
|
24294
|
-
if (!shouldPruneEntry(entry, false, now(), isClosed)) continue;
|
|
24300
|
+
if (!shouldPruneEntry$1(entry, false, now(), isClosed)) continue;
|
|
24295
24301
|
delete state[key];
|
|
24296
24302
|
isDirty = true;
|
|
24297
24303
|
}
|
|
@@ -37108,12 +37114,13 @@ function createPosthogApi({ host, apiKey, fetchFn } = {}) {
|
|
|
37108
37114
|
}
|
|
37109
37115
|
});
|
|
37110
37116
|
}
|
|
37111
|
-
function runHogQL(projectId, query) {
|
|
37117
|
+
function runHogQL(projectId, query, values) {
|
|
37112
37118
|
return request(`/api/projects/${encodeURIComponent(projectId)}/query/`, {
|
|
37113
37119
|
method: "POST",
|
|
37114
37120
|
body: { query: {
|
|
37115
37121
|
kind: "HogQLQuery",
|
|
37116
|
-
query
|
|
37122
|
+
query,
|
|
37123
|
+
...values ? { values } : {}
|
|
37117
37124
|
} }
|
|
37118
37125
|
});
|
|
37119
37126
|
}
|
|
@@ -37160,7 +37167,8 @@ function createPosthogApi({ host, apiKey, fetchFn } = {}) {
|
|
|
37160
37167
|
queryTrafficBuckets,
|
|
37161
37168
|
listSpikeEvents,
|
|
37162
37169
|
listRecommendations,
|
|
37163
|
-
updateIssueStatus
|
|
37170
|
+
updateIssueStatus,
|
|
37171
|
+
runHogQL
|
|
37164
37172
|
};
|
|
37165
37173
|
}
|
|
37166
37174
|
var SIGNATURES_KEY = "_signatures";
|
|
@@ -39168,6 +39176,364 @@ function createRadarWiring({ config, investigationSessions, closeSessionDataClie
|
|
|
39168
39176
|
};
|
|
39169
39177
|
}
|
|
39170
39178
|
//#endregion
|
|
39179
|
+
//#region shared/contracts/community.ts
|
|
39180
|
+
var CommunitySource = z.enum(["forum", "discord"]);
|
|
39181
|
+
var CommunityVerdict = z.enum([
|
|
39182
|
+
"HIGH",
|
|
39183
|
+
"MEDIUM",
|
|
39184
|
+
"LOW"
|
|
39185
|
+
]);
|
|
39186
|
+
var COMMUNITY_ITEM_KEY_RE = /^(forum|discord):[A-Za-z0-9_-]{1,128}$/;
|
|
39187
|
+
var CommunityItem = z.strictObject({
|
|
39188
|
+
key: z.string().regex(COMMUNITY_ITEM_KEY_RE),
|
|
39189
|
+
source: CommunitySource,
|
|
39190
|
+
title: z.string().max(300),
|
|
39191
|
+
body: z.string().max(2e4),
|
|
39192
|
+
url: z.url(),
|
|
39193
|
+
author: z.string().max(100),
|
|
39194
|
+
channel: z.string().max(100).nullable(),
|
|
39195
|
+
createdAt: z.string()
|
|
39196
|
+
});
|
|
39197
|
+
var CommunityDraft = z.strictObject({
|
|
39198
|
+
body: z.string().max(8e3),
|
|
39199
|
+
publicLinks: z.array(z.url()).max(20)
|
|
39200
|
+
});
|
|
39201
|
+
var CommunityRunStatus = z.enum([
|
|
39202
|
+
"queued",
|
|
39203
|
+
"running",
|
|
39204
|
+
"ready",
|
|
39205
|
+
"error",
|
|
39206
|
+
"aside"
|
|
39207
|
+
]);
|
|
39208
|
+
var CommunityStateEntry = z.strictObject({
|
|
39209
|
+
item: CommunityItem,
|
|
39210
|
+
status: CommunityRunStatus,
|
|
39211
|
+
verdict: CommunityVerdict.nullable(),
|
|
39212
|
+
summary: z.string(),
|
|
39213
|
+
goal: z.string(),
|
|
39214
|
+
checked: z.array(z.string()),
|
|
39215
|
+
gaps: z.array(z.string()),
|
|
39216
|
+
draft: CommunityDraft.nullable(),
|
|
39217
|
+
error: z.string().optional(),
|
|
39218
|
+
attempts: z.number().int().nonnegative(),
|
|
39219
|
+
seenAt: z.string(),
|
|
39220
|
+
finishedAt: z.string().nullable()
|
|
39221
|
+
});
|
|
39222
|
+
var CommunityWatermarks = z.strictObject({
|
|
39223
|
+
forum: z.string().nullable(),
|
|
39224
|
+
discord: z.string().nullable()
|
|
39225
|
+
});
|
|
39226
|
+
var CommunityState = z.strictObject({
|
|
39227
|
+
watermarks: CommunityWatermarks,
|
|
39228
|
+
entries: z.record(z.string().regex(COMMUNITY_ITEM_KEY_RE), CommunityStateEntry)
|
|
39229
|
+
});
|
|
39230
|
+
//#endregion
|
|
39231
|
+
//#region server/community/core/community-core.ts
|
|
39232
|
+
var COMMUNITY_LANE_ID = "community";
|
|
39233
|
+
var COMMUNITY_STATE_FILENAME = "community-state.json";
|
|
39234
|
+
var DEFAULT_PROJECT_ID = 2;
|
|
39235
|
+
var DEFAULT_INTERVAL_MINUTES = 5;
|
|
39236
|
+
var SOURCE_ROW_LIMIT = 50;
|
|
39237
|
+
var ENTRY_RETENTION_MS = 12096e5;
|
|
39238
|
+
var FORUM_QUESTION_URL = "https://posthog.com/questions/";
|
|
39239
|
+
var MAX_TITLE_CHARS = 300;
|
|
39240
|
+
var MAX_BODY_CHARS = 2e4;
|
|
39241
|
+
var MAX_AUTHOR_CHARS = 100;
|
|
39242
|
+
function recordOf(value) {
|
|
39243
|
+
return value && typeof value === "object" && !Array.isArray(value) ? value : {};
|
|
39244
|
+
}
|
|
39245
|
+
function positiveIntegerOr(value, fallback) {
|
|
39246
|
+
return typeof value === "number" && Number.isInteger(value) && value > 0 ? value : fallback;
|
|
39247
|
+
}
|
|
39248
|
+
function readCommunitySettings(config) {
|
|
39249
|
+
const block = recordOf(config.community);
|
|
39250
|
+
return {
|
|
39251
|
+
enabled: block.enabled === true,
|
|
39252
|
+
skill: typeof block.skill === "string" ? block.skill.trim() : "",
|
|
39253
|
+
projectId: positiveIntegerOr(block.projectId, DEFAULT_PROJECT_ID),
|
|
39254
|
+
intervalMinutes: positiveIntegerOr(block.intervalMinutes, DEFAULT_INTERVAL_MINUTES)
|
|
39255
|
+
};
|
|
39256
|
+
}
|
|
39257
|
+
function readPosthogConnection(config) {
|
|
39258
|
+
const block = recordOf(config.posthog);
|
|
39259
|
+
const apiKey = typeof block.apiKey === "string" ? block.apiKey.trim() : "";
|
|
39260
|
+
if (!apiKey) return null;
|
|
39261
|
+
return {
|
|
39262
|
+
host: resolvePosthogHost(typeof block.host === "string" ? block.host.trim() : null),
|
|
39263
|
+
apiKey
|
|
39264
|
+
};
|
|
39265
|
+
}
|
|
39266
|
+
function communityGate(config) {
|
|
39267
|
+
if (!readCommunitySettings(config).enabled) return { start: false };
|
|
39268
|
+
if (!readPosthogConnection(config)) return {
|
|
39269
|
+
start: false,
|
|
39270
|
+
reason: "community.enabled but posthog.apiKey is missing"
|
|
39271
|
+
};
|
|
39272
|
+
return { start: true };
|
|
39273
|
+
}
|
|
39274
|
+
function emptyCommunityState() {
|
|
39275
|
+
return {
|
|
39276
|
+
watermarks: {
|
|
39277
|
+
forum: null,
|
|
39278
|
+
discord: null
|
|
39279
|
+
},
|
|
39280
|
+
entries: {}
|
|
39281
|
+
};
|
|
39282
|
+
}
|
|
39283
|
+
function forumQuery() {
|
|
39284
|
+
return [
|
|
39285
|
+
"SELECT id, attributes FROM custom.squeak.questions",
|
|
39286
|
+
"WHERE parseDateTimeBestEffort(JSONExtractString(attributes, 'createdAt')) > parseDateTimeBestEffort({since})",
|
|
39287
|
+
"ORDER BY parseDateTimeBestEffort(JSONExtractString(attributes, 'createdAt')) ASC",
|
|
39288
|
+
`LIMIT ${SOURCE_ROW_LIMIT}`
|
|
39289
|
+
].join(" ");
|
|
39290
|
+
}
|
|
39291
|
+
function parsedAttributes(raw) {
|
|
39292
|
+
if (typeof raw !== "string") return recordOf(raw);
|
|
39293
|
+
try {
|
|
39294
|
+
return recordOf(JSON.parse(raw));
|
|
39295
|
+
} catch {
|
|
39296
|
+
return {};
|
|
39297
|
+
}
|
|
39298
|
+
}
|
|
39299
|
+
function forumAuthor(profile) {
|
|
39300
|
+
const firstName = recordOf(recordOf(recordOf(profile).data).attributes).firstName;
|
|
39301
|
+
return typeof firstName === "string" && firstName.trim() ? firstName.trim().slice(0, MAX_AUTHOR_CHARS) : "unknown";
|
|
39302
|
+
}
|
|
39303
|
+
function forumItemFromRow(row) {
|
|
39304
|
+
const attributes = parsedAttributes(row.attributes);
|
|
39305
|
+
const permalink = typeof attributes.permalink === "string" ? attributes.permalink : "";
|
|
39306
|
+
const createdAt = typeof attributes.createdAt === "string" ? attributes.createdAt : "";
|
|
39307
|
+
if (!permalink || Number.isNaN(Date.parse(createdAt))) return null;
|
|
39308
|
+
const parsed = CommunityItem.safeParse({
|
|
39309
|
+
key: `forum:${String(row.id)}`,
|
|
39310
|
+
source: "forum",
|
|
39311
|
+
title: String(attributes.subject ?? "").slice(0, MAX_TITLE_CHARS),
|
|
39312
|
+
body: String(attributes.body ?? "").slice(0, MAX_BODY_CHARS),
|
|
39313
|
+
url: `${FORUM_QUESTION_URL}${encodeURIComponent(permalink)}`,
|
|
39314
|
+
author: forumAuthor(attributes.profile),
|
|
39315
|
+
channel: null,
|
|
39316
|
+
createdAt: new Date(createdAt).toISOString()
|
|
39317
|
+
});
|
|
39318
|
+
return parsed.success ? parsed.data : null;
|
|
39319
|
+
}
|
|
39320
|
+
function forumItemsFromRows(rows) {
|
|
39321
|
+
const items = rows.map(forumItemFromRow).filter((item) => item !== null);
|
|
39322
|
+
return {
|
|
39323
|
+
items,
|
|
39324
|
+
droppedRows: rows.length - items.length
|
|
39325
|
+
};
|
|
39326
|
+
}
|
|
39327
|
+
function queuedEntry(item, nowIso) {
|
|
39328
|
+
return {
|
|
39329
|
+
item,
|
|
39330
|
+
status: "queued",
|
|
39331
|
+
verdict: null,
|
|
39332
|
+
summary: "",
|
|
39333
|
+
goal: "",
|
|
39334
|
+
checked: [],
|
|
39335
|
+
gaps: [],
|
|
39336
|
+
draft: null,
|
|
39337
|
+
attempts: 0,
|
|
39338
|
+
seenAt: nowIso,
|
|
39339
|
+
finishedAt: null
|
|
39340
|
+
};
|
|
39341
|
+
}
|
|
39342
|
+
function latestCreatedAt(items, watermark) {
|
|
39343
|
+
return items.reduce((latest, item) => Date.parse(item.createdAt) > Date.parse(latest) ? item.createdAt : latest, watermark);
|
|
39344
|
+
}
|
|
39345
|
+
function admitForumItems(state, items, nowIso) {
|
|
39346
|
+
const watermark = state.watermarks.forum;
|
|
39347
|
+
if (watermark === null) return {
|
|
39348
|
+
state: {
|
|
39349
|
+
...state,
|
|
39350
|
+
watermarks: {
|
|
39351
|
+
...state.watermarks,
|
|
39352
|
+
forum: nowIso
|
|
39353
|
+
}
|
|
39354
|
+
},
|
|
39355
|
+
admittedKeys: []
|
|
39356
|
+
};
|
|
39357
|
+
const freshItems = items.filter((item) => Date.parse(item.createdAt) > Date.parse(watermark) && !state.entries[item.key]);
|
|
39358
|
+
const entries = { ...state.entries };
|
|
39359
|
+
for (const item of freshItems) entries[item.key] = queuedEntry(item, nowIso);
|
|
39360
|
+
return {
|
|
39361
|
+
state: {
|
|
39362
|
+
watermarks: {
|
|
39363
|
+
...state.watermarks,
|
|
39364
|
+
forum: latestCreatedAt(items, watermark)
|
|
39365
|
+
},
|
|
39366
|
+
entries
|
|
39367
|
+
},
|
|
39368
|
+
admittedKeys: freshItems.map((item) => item.key)
|
|
39369
|
+
};
|
|
39370
|
+
}
|
|
39371
|
+
function shouldPruneEntry(entry, nowMs, retentionMs = ENTRY_RETENTION_MS) {
|
|
39372
|
+
if (entry.status === "queued" || entry.status === "running") return false;
|
|
39373
|
+
const lastTouched = Date.parse(entry.finishedAt ?? entry.seenAt);
|
|
39374
|
+
return Number.isNaN(lastTouched) || nowMs - lastTouched > retentionMs;
|
|
39375
|
+
}
|
|
39376
|
+
function prunedState(state, nowMs) {
|
|
39377
|
+
const entries = Object.fromEntries(Object.entries(state.entries).filter(([, entry]) => !shouldPruneEntry(entry, nowMs)));
|
|
39378
|
+
return {
|
|
39379
|
+
...state,
|
|
39380
|
+
entries
|
|
39381
|
+
};
|
|
39382
|
+
}
|
|
39383
|
+
function parseCommunityState(raw, warn) {
|
|
39384
|
+
const block = recordOf(raw);
|
|
39385
|
+
const watermarks = CommunityState.shape.watermarks.safeParse(block.watermarks);
|
|
39386
|
+
if (!watermarks.success) return null;
|
|
39387
|
+
const entries = {};
|
|
39388
|
+
for (const [key, value] of Object.entries(recordOf(block.entries))) {
|
|
39389
|
+
const parsed = CommunityState.shape.entries.safeParse({ [key]: value });
|
|
39390
|
+
if (!parsed.success) {
|
|
39391
|
+
warn(`dropped an invalid saved community item ${key.slice(0, 160)}`);
|
|
39392
|
+
continue;
|
|
39393
|
+
}
|
|
39394
|
+
Object.assign(entries, parsed.data);
|
|
39395
|
+
}
|
|
39396
|
+
return {
|
|
39397
|
+
watermarks: watermarks.data,
|
|
39398
|
+
entries
|
|
39399
|
+
};
|
|
39400
|
+
}
|
|
39401
|
+
//#endregion
|
|
39402
|
+
//#region server/community/community-poller.ts
|
|
39403
|
+
function createCommunityPoller({ intervalMinutes, queryForum, readState, writeState, onTickComplete = () => {}, firstTickDelayMs, now = Date.now, log = console }) {
|
|
39404
|
+
let state = emptyCommunityState();
|
|
39405
|
+
const loop = createTickLoop({
|
|
39406
|
+
tag: COMMUNITY_LANE_ID,
|
|
39407
|
+
intervalMs: intervalMinutes * 6e4,
|
|
39408
|
+
tick: () => runTick(),
|
|
39409
|
+
writeState: () => writeState(state),
|
|
39410
|
+
firstTickDelayMs,
|
|
39411
|
+
log
|
|
39412
|
+
});
|
|
39413
|
+
function publishStatus(error) {
|
|
39414
|
+
onTickComplete({
|
|
39415
|
+
type: "community-status",
|
|
39416
|
+
ts: now(),
|
|
39417
|
+
intervalMinutes,
|
|
39418
|
+
error,
|
|
39419
|
+
entries: Object.values(state.entries)
|
|
39420
|
+
});
|
|
39421
|
+
}
|
|
39422
|
+
async function pollForum() {
|
|
39423
|
+
const watermark = state.watermarks.forum;
|
|
39424
|
+
const nowIso = new Date(now()).toISOString();
|
|
39425
|
+
if (watermark === null) {
|
|
39426
|
+
state = admitForumItems(state, [], nowIso).state;
|
|
39427
|
+
return null;
|
|
39428
|
+
}
|
|
39429
|
+
const fetched = await queryForum(watermark);
|
|
39430
|
+
if (!fetched.ok) return fetched.error;
|
|
39431
|
+
const { items, droppedRows } = forumItemsFromRows(fetched.rows);
|
|
39432
|
+
if (droppedRows > 0) log.warn(`[${COMMUNITY_LANE_ID}] dropped ${droppedRows} malformed forum row(s)`);
|
|
39433
|
+
state = admitForumItems(state, items, nowIso).state;
|
|
39434
|
+
return null;
|
|
39435
|
+
}
|
|
39436
|
+
async function runTick() {
|
|
39437
|
+
const forumError = await pollForum();
|
|
39438
|
+
state = prunedState(state, now());
|
|
39439
|
+
await loop.persist();
|
|
39440
|
+
publishStatus(forumError);
|
|
39441
|
+
if (forumError) return {
|
|
39442
|
+
failed: true,
|
|
39443
|
+
error: forumError
|
|
39444
|
+
};
|
|
39445
|
+
return {};
|
|
39446
|
+
}
|
|
39447
|
+
async function start() {
|
|
39448
|
+
await loop.start(async () => {
|
|
39449
|
+
state = await readState();
|
|
39450
|
+
publishStatus(null);
|
|
39451
|
+
});
|
|
39452
|
+
}
|
|
39453
|
+
return {
|
|
39454
|
+
start,
|
|
39455
|
+
stop: () => loop.stop(),
|
|
39456
|
+
tick: loop.tick,
|
|
39457
|
+
state: () => state
|
|
39458
|
+
};
|
|
39459
|
+
}
|
|
39460
|
+
//#endregion
|
|
39461
|
+
//#region server/community/community-wiring.ts
|
|
39462
|
+
function createCommunityStateIo(statePath, log) {
|
|
39463
|
+
let loaded = emptyCommunityState();
|
|
39464
|
+
const warn = (message) => log.warn(`[${COMMUNITY_LANE_ID}] ${message}`);
|
|
39465
|
+
const store = createJsonStateStore({
|
|
39466
|
+
name: "community state",
|
|
39467
|
+
filePath: statePath,
|
|
39468
|
+
parse: (raw) => parseCommunityState(raw, warn),
|
|
39469
|
+
adopt: (value) => {
|
|
39470
|
+
loaded = value ?? emptyCommunityState();
|
|
39471
|
+
},
|
|
39472
|
+
warn: (message, fields) => warn(`${message} ${JSON.stringify(fields)}`)
|
|
39473
|
+
});
|
|
39474
|
+
return {
|
|
39475
|
+
async readState() {
|
|
39476
|
+
await store.load();
|
|
39477
|
+
return loaded;
|
|
39478
|
+
},
|
|
39479
|
+
async writeState(state) {
|
|
39480
|
+
const parsed = CommunityState.parse(state);
|
|
39481
|
+
await store.write(parsed, () => `${JSON.stringify(parsed, null, 2)}\n`);
|
|
39482
|
+
loaded = parsed;
|
|
39483
|
+
}
|
|
39484
|
+
};
|
|
39485
|
+
}
|
|
39486
|
+
function hogQLRows(api, projectId, query, values) {
|
|
39487
|
+
return api.runHogQL(projectId, query, values).then((response) => {
|
|
39488
|
+
if (!response.ok) return {
|
|
39489
|
+
ok: false,
|
|
39490
|
+
error: response.error
|
|
39491
|
+
};
|
|
39492
|
+
return {
|
|
39493
|
+
ok: true,
|
|
39494
|
+
rows: extractRows(response.body)
|
|
39495
|
+
};
|
|
39496
|
+
});
|
|
39497
|
+
}
|
|
39498
|
+
function createCommunityWiring({ config, broadcast = () => {}, homeDir = glimmervoidHomeDir$1(), createApi = (connection) => createPosthogApi(connection), log = console }) {
|
|
39499
|
+
const stateIo = createCommunityStateIo(path.join(homeDir, COMMUNITY_STATE_FILENAME), log);
|
|
39500
|
+
const runner = createLaneRunner({
|
|
39501
|
+
tag: COMMUNITY_LANE_ID,
|
|
39502
|
+
gate: () => communityGate(config),
|
|
39503
|
+
cfgKey: () => stableConfigKey({
|
|
39504
|
+
community: config.community ?? null,
|
|
39505
|
+
posthog: readPosthogConnection(config)
|
|
39506
|
+
}),
|
|
39507
|
+
emptyStatus: () => ({
|
|
39508
|
+
...emptyLaneStatus("community-status", communityGate(config)),
|
|
39509
|
+
entries: []
|
|
39510
|
+
}),
|
|
39511
|
+
broadcast,
|
|
39512
|
+
createPoller: ({ onTickComplete }) => {
|
|
39513
|
+
const connection = readPosthogConnection(config);
|
|
39514
|
+
if (!connection) throw new Error("Community poller started without a PostHog apiKey");
|
|
39515
|
+
const settings = readCommunitySettings(config);
|
|
39516
|
+
const api = createApi(connection);
|
|
39517
|
+
return createCommunityPoller({
|
|
39518
|
+
intervalMinutes: settings.intervalMinutes,
|
|
39519
|
+
queryForum: (sinceIso) => hogQLRows(api, settings.projectId, forumQuery(), { since: sinceIso }),
|
|
39520
|
+
readState: stateIo.readState,
|
|
39521
|
+
writeState: stateIo.writeState,
|
|
39522
|
+
onTickComplete,
|
|
39523
|
+
firstTickDelayMs: bootStaggerDelay,
|
|
39524
|
+
log
|
|
39525
|
+
});
|
|
39526
|
+
}
|
|
39527
|
+
});
|
|
39528
|
+
return {
|
|
39529
|
+
startPoller: runner.startPoller,
|
|
39530
|
+
stopPoller: runner.stopPoller,
|
|
39531
|
+
restartIfConfigChanged: runner.restartIfConfigChanged,
|
|
39532
|
+
getStatus: runner.getStatus,
|
|
39533
|
+
getPoller: runner.getPoller
|
|
39534
|
+
};
|
|
39535
|
+
}
|
|
39536
|
+
//#endregion
|
|
39171
39537
|
//#region server/memory-probe.ts
|
|
39172
39538
|
var CGROUP_ROOT = "/sys/fs/cgroup";
|
|
39173
39539
|
var MACOS_FREE_MEMORY_REASON = "macOS reports only never-used pages as free, so headroom is not measured there";
|
|
@@ -47482,6 +47848,12 @@ function createBackendLanes(dependencies) {
|
|
|
47482
47848
|
broadcast: broadcastControl,
|
|
47483
47849
|
telemetry: laneTelemetry
|
|
47484
47850
|
});
|
|
47851
|
+
const community = createCommunityWiring({
|
|
47852
|
+
config,
|
|
47853
|
+
broadcast: broadcastControl,
|
|
47854
|
+
homeDir: glimmervoidHomeDir$1(),
|
|
47855
|
+
log: logger
|
|
47856
|
+
});
|
|
47485
47857
|
const githubClock = createGithubClock({
|
|
47486
47858
|
baseIntervalMs: 6e4,
|
|
47487
47859
|
log: logger,
|
|
@@ -47819,6 +48191,7 @@ function createBackendLanes(dependencies) {
|
|
|
47819
48191
|
const fixedLanes = new Map(Object.entries({
|
|
47820
48192
|
"branch-gc": branchGc,
|
|
47821
48193
|
posthog,
|
|
48194
|
+
community,
|
|
47822
48195
|
"team-review": teamReview,
|
|
47823
48196
|
"my-prs": myPrs,
|
|
47824
48197
|
issues,
|
|
@@ -47842,6 +48215,7 @@ function createBackendLanes(dependencies) {
|
|
|
47842
48215
|
() => coderActivity.start(),
|
|
47843
48216
|
() => coderEnv.start(),
|
|
47844
48217
|
() => posthog.startPoller(),
|
|
48218
|
+
() => community.startPoller(),
|
|
47845
48219
|
() => teamReview.startPoller(),
|
|
47846
48220
|
() => myPrs.startPoller(),
|
|
47847
48221
|
() => issues.startPoller(),
|
|
@@ -47861,6 +48235,7 @@ function createBackendLanes(dependencies) {
|
|
|
47861
48235
|
() => coderActivity.restartIfConfigChanged(),
|
|
47862
48236
|
() => coderEnv.restartIfConfigChanged(),
|
|
47863
48237
|
() => posthog.restartIfConfigChanged(),
|
|
48238
|
+
() => community.restartIfConfigChanged(),
|
|
47864
48239
|
() => teamReview.restartIfConfigChanged(),
|
|
47865
48240
|
() => myPrs.restartIfConfigChanged(),
|
|
47866
48241
|
() => issues.restartIfConfigChanged(),
|
|
@@ -47900,6 +48275,7 @@ function createBackendLanes(dependencies) {
|
|
|
47900
48275
|
teamReview,
|
|
47901
48276
|
myPrs,
|
|
47902
48277
|
issues,
|
|
48278
|
+
community,
|
|
47903
48279
|
workflows,
|
|
47904
48280
|
startRuntimeLanes,
|
|
47905
48281
|
tapIngestForSession,
|
|
@@ -58213,7 +58589,7 @@ function createBackend(httpServer, options = {}) {
|
|
|
58213
58589
|
logger: console,
|
|
58214
58590
|
renameSessionFromTaskTitle
|
|
58215
58591
|
});
|
|
58216
|
-
const { allLiveSessions, branchGc, coderActivity, gitWorkspace: assembledGitWorkspace, gitWorkspaceSync, posthog, recordLane, spawnGate, tapIngestForSession, teamReview, myPrs, issues, traceChangeBroadcast, traceWiring, uploadsWiring, usage, visionsSessions, visionsSetup } = laneAssembly;
|
|
58592
|
+
const { allLiveSessions, branchGc, coderActivity, gitWorkspace: assembledGitWorkspace, gitWorkspaceSync, posthog, recordLane, spawnGate, tapIngestForSession, teamReview, myPrs, issues, community, traceChangeBroadcast, traceWiring, uploadsWiring, usage, visionsSessions, visionsSetup } = laneAssembly;
|
|
58217
58593
|
gitWorkspace = assembledGitWorkspace;
|
|
58218
58594
|
agentApi = createAgentApiWiring({
|
|
58219
58595
|
config,
|
|
@@ -58427,6 +58803,7 @@ function createBackend(httpServer, options = {}) {
|
|
|
58427
58803
|
teamReview,
|
|
58428
58804
|
myPrs,
|
|
58429
58805
|
issues,
|
|
58806
|
+
community,
|
|
58430
58807
|
workflows: laneAssembly.workflows,
|
|
58431
58808
|
benchmarks: laneAssembly.benchmarks,
|
|
58432
58809
|
featureHints: laneAssembly.featureHints,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as errorMessage } from "./text-DoirglWV.js";
|
|
2
|
-
import { l as resolveConfigPath } from "./config-store-
|
|
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-
|
|
2
|
+
import { l as resolveConfigPath } from "./config-store-nOMY9dW-.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-CWBPs1hL.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-
|
|
6
|
+
import { dt as canonicalizePath, s as glimmervoidHomeDir } from "./config-store-nOMY9dW-.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-
|
|
4
|
+
import { r as BrowserConfig } from "./config-3tODElm8.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-
|
|
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-
|
|
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-nOMY9dW-.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-it_-CnI9.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-
|
|
333
|
+
const { askAgentApi } = await import("./agent-api-cli-Cuyxj5tx.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-
|
|
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-nOMY9dW-.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-
|
|
5
|
+
import { n as postToAgentIngress } from "./agent-api-cli-Cf1UtaOo.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{
|
|
1
|
+
import{$i as e,Ji as t,Qi as n,Xi as r,Yi as i,Zi as a,ea as o,qi as s}from"./index-ZzhBsA3G.js";var c=.3,l=null;function u(){return o(l)}function d(t){return e(t,l)}async function f(){try{let e=await fetch(s,{credentials:`same-origin`,cache:`no-store`});e.ok&&(l=n(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(i[e]??i.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(a(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(t)}catch{}}function S(e){try{let t=d(e),n=r(t);if(!n){h(t);return}v(n).then(e=>{e||x()})}catch{}}export{f as loadCustomSounds,S as playAlertSound,b as playNyanJingle,g as playToneSequence,d as resolveSoundId,u as soundOptions};
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./updates-view-core-
|
|
1
|
+
import"./updates-view-core-Bbg_pIU7.js";import{n as e,o as t,r as n}from"./dom-helpers-ScgOMqDW.js";import{J as r,Y as i,q as a}from"./index-ZzhBsA3G.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};
|
|
Binary file
|