glimmervoid 0.51.1-next.651 → 0.51.1-next.653
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 +4 -4
- package/dist/chunks/{agent-api-cli-aja87UOL.js → agent-api-cli-DgVeVa0h.js} +1 -1
- package/dist/chunks/{agent-api-cli-BdwTL3M6.js → agent-api-cli-m2vQhZQA.js} +1 -1
- package/dist/chunks/{main-BbUntQYI.js → main-7oweMpoV.js} +62 -12
- package/dist/chunks/{settings-cli-RY1YHU7C.js → settings-cli-79NvDbPA.js} +1 -1
- package/dist/chunks/{shown-files-core-COUHtaR5.js → shown-files-core-Dpas35wM.js} +72 -35
- package/dist/chunks/{ssh-sign-cli-DZaRTIqg.js → ssh-sign-cli-BoN-bVK9.js} +1 -1
- package/dist/client/assets/{benchmark-panel-lirp8NDT.js → benchmark-panel-Dv8-1lsq.js} +1 -1
- package/dist/client/assets/benchmark-panel-Dv8-1lsq.js.br +0 -0
- package/dist/client/assets/{boards-view-CkZ3K_7f.js → boards-view-qwrSsQeH.js} +1 -1
- package/dist/client/assets/boards-view-qwrSsQeH.js.br +0 -0
- package/dist/client/assets/{community-panel-DXl7ikzu.js → community-panel-B0M7vGaZ.js} +1 -1
- package/dist/client/assets/community-panel-B0M7vGaZ.js.br +0 -0
- package/dist/client/assets/{dialogs-CaI33kBT.js → dialogs-6mPuxTQN.js} +1 -1
- package/dist/client/assets/dialogs-6mPuxTQN.js.br +0 -0
- package/dist/client/assets/{doc-editor-ui-Wkvs9BkN.js → doc-editor-ui-CLNQD3Q4.js} +1 -1
- package/dist/client/assets/doc-editor-ui-CLNQD3Q4.js.br +0 -0
- package/dist/client/assets/{feature-hint-DzdXwDJp.js → feature-hint-DSwJP6QC.js} +1 -1
- package/dist/client/assets/feature-hint-DSwJP6QC.js.br +0 -0
- package/dist/client/assets/{first-run-checklist-CroxSY-O.js → first-run-checklist-BeZCNSuA.js} +1 -1
- package/dist/client/assets/first-run-checklist-BeZCNSuA.js.br +0 -0
- package/dist/client/assets/{hooks-panel-Ci6Uz95t.js → hooks-panel-fYRjBy-R.js} +1 -1
- package/dist/client/assets/hooks-panel-fYRjBy-R.js.br +0 -0
- package/dist/client/assets/{index-CNU2Do4s.js → index-DaaLGL3v.js} +6 -6
- package/dist/client/assets/index-DaaLGL3v.js.br +0 -0
- package/dist/client/assets/{issues-panel-B4GN5Mph.js → issues-panel-DniBy4yC.js} +1 -1
- package/dist/client/assets/issues-panel-DniBy4yC.js.br +0 -0
- package/dist/client/assets/{lane-read-token-step-h0E5LKWg.js → lane-read-token-step-Cl8Scl9o.js} +1 -1
- package/dist/client/assets/lane-read-token-step-Cl8Scl9o.js.br +0 -0
- package/dist/client/assets/{my-prs-panel-DiDJPc5X.js → my-prs-panel-DqPi0zvb.js} +1 -1
- package/dist/client/assets/my-prs-panel-DqPi0zvb.js.br +0 -0
- package/dist/client/assets/{nyan-cat-CKCmJrdo.js → nyan-cat-8I6stHr-.js} +1 -1
- package/dist/client/assets/nyan-cat-8I6stHr-.js.br +0 -0
- package/dist/client/assets/{phone-shell-CYpht3Aj.js → phone-shell-Dw2afDNA.js} +1 -1
- package/dist/client/assets/phone-shell-Dw2afDNA.js.br +0 -0
- package/dist/client/assets/{plan-face-B0xWXbrw.js → plan-face-CnIAr18t.js} +1 -1
- package/dist/client/assets/plan-face-CnIAr18t.js.br +0 -0
- package/dist/client/assets/{plan-render-Bre2f3li.js → plan-render-DZg4xNVR.js} +1 -1
- package/dist/client/assets/plan-render-DZg4xNVR.js.br +0 -0
- package/dist/client/assets/{pr-queue-columns-5ygGeYVp.js → pr-queue-columns-D2g6PCsq.js} +1 -1
- package/dist/client/assets/pr-queue-columns-D2g6PCsq.js.br +0 -0
- package/dist/client/assets/{radar-panel-h4bLRQYq.js → radar-panel-DaZZKEUH.js} +1 -1
- package/dist/client/assets/radar-panel-DaZZKEUH.js.br +0 -0
- package/dist/client/assets/{repo-roots-adder-C725oApt.js → repo-roots-adder-DdbiebCf.js} +1 -1
- package/dist/client/assets/repo-roots-adder-DdbiebCf.js.br +0 -0
- package/dist/client/assets/{resume-dialog-CX3yfT_L.js → resume-dialog-CEy-pxvI.js} +1 -1
- package/dist/client/assets/resume-dialog-CEy-pxvI.js.br +0 -0
- package/dist/client/assets/{review-queue-panel-DoSvwUNm.js → review-queue-panel-BrXXN2WJ.js} +1 -1
- package/dist/client/assets/review-queue-panel-BrXXN2WJ.js.br +0 -0
- package/dist/client/assets/{settings-panel-COutNGIS.js → settings-panel-CUBnyjCP.js} +2 -2
- package/dist/client/assets/settings-panel-CUBnyjCP.js.br +0 -0
- package/dist/client/assets/{shown-face-bwenQwGo.js → shown-face-Chsc7ukb.js} +1 -1
- package/dist/client/assets/shown-face-Chsc7ukb.js.br +0 -0
- package/dist/client/assets/{trace-panel-BoyfZaB0.js → trace-panel-DHQo1vEj.js} +1 -1
- package/dist/client/assets/trace-panel-DHQo1vEj.js.br +0 -0
- package/dist/client/assets/{usage-panel-U-xVvIny.js → usage-panel-BQtWhfsT.js} +1 -1
- package/dist/client/assets/usage-panel-BQtWhfsT.js.br +0 -0
- package/dist/client/assets/{your-day-tip-Bo4UPteV.js → your-day-tip-CVs7rVSZ.js} +1 -1
- package/dist/client/assets/your-day-tip-CVs7rVSZ.js.br +0 -0
- package/dist/client/index.html +1 -1
- package/dist/client/index.html.br +0 -0
- package/dist/server/index.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/benchmark-panel-lirp8NDT.js.br +0 -0
- package/dist/client/assets/boards-view-CkZ3K_7f.js.br +0 -0
- package/dist/client/assets/community-panel-DXl7ikzu.js.br +0 -0
- package/dist/client/assets/dialogs-CaI33kBT.js.br +0 -0
- package/dist/client/assets/doc-editor-ui-Wkvs9BkN.js.br +0 -0
- package/dist/client/assets/feature-hint-DzdXwDJp.js.br +0 -0
- package/dist/client/assets/first-run-checklist-CroxSY-O.js.br +0 -0
- package/dist/client/assets/hooks-panel-Ci6Uz95t.js.br +0 -0
- package/dist/client/assets/index-CNU2Do4s.js.br +0 -0
- package/dist/client/assets/issues-panel-B4GN5Mph.js.br +0 -0
- package/dist/client/assets/lane-read-token-step-h0E5LKWg.js.br +0 -0
- package/dist/client/assets/my-prs-panel-DiDJPc5X.js.br +0 -0
- package/dist/client/assets/nyan-cat-CKCmJrdo.js.br +0 -0
- package/dist/client/assets/phone-shell-CYpht3Aj.js.br +0 -0
- package/dist/client/assets/plan-face-B0xWXbrw.js.br +0 -0
- package/dist/client/assets/plan-render-Bre2f3li.js.br +0 -0
- package/dist/client/assets/pr-queue-columns-5ygGeYVp.js.br +0 -0
- package/dist/client/assets/radar-panel-h4bLRQYq.js.br +0 -0
- package/dist/client/assets/repo-roots-adder-C725oApt.js.br +0 -0
- package/dist/client/assets/resume-dialog-CX3yfT_L.js.br +0 -0
- package/dist/client/assets/review-queue-panel-DoSvwUNm.js.br +0 -0
- package/dist/client/assets/settings-panel-COutNGIS.js.br +0 -0
- package/dist/client/assets/shown-face-bwenQwGo.js.br +0 -0
- package/dist/client/assets/trace-panel-BoyfZaB0.js.br +0 -0
- package/dist/client/assets/usage-panel-U-xVvIny.js.br +0 -0
- package/dist/client/assets/your-day-tip-Bo4UPteV.js.br +0 -0
package/dist/bin/glimmervoid.js
CHANGED
|
@@ -73,11 +73,11 @@ var OWNED_COMMAND_RUNNERS = {
|
|
|
73
73
|
return runAgentSetupCli();
|
|
74
74
|
},
|
|
75
75
|
settings: async (parsed) => {
|
|
76
|
-
const { runParsedSettingsCli } = await import("../chunks/settings-cli-
|
|
76
|
+
const { runParsedSettingsCli } = await import("../chunks/settings-cli-79NvDbPA.js");
|
|
77
77
|
return runParsedSettingsCli(parsed);
|
|
78
78
|
},
|
|
79
79
|
"ssh-sign": async ({ rawArgs }) => {
|
|
80
|
-
const { runSshSignCli } = await import("../chunks/ssh-sign-cli-
|
|
80
|
+
const { runSshSignCli } = await import("../chunks/ssh-sign-cli-BoN-bVK9.js");
|
|
81
81
|
return runSshSignCli(rawArgs);
|
|
82
82
|
}
|
|
83
83
|
};
|
|
@@ -99,7 +99,7 @@ async function runOwnedCommand(name, subcommandArgs) {
|
|
|
99
99
|
return OWNED_COMMAND_RUNNERS[name](parsed);
|
|
100
100
|
}
|
|
101
101
|
var SUBCOMMAND_RUNNERS = new Map([...Object.keys(OWNED_COMMAND_SPECS).filter(isOwnedCommandName).map((name) => [name, (subcommandArgs) => runOwnedCommand(name, subcommandArgs)]), ...AGENT_API_VERBS.filter((verb) => !isOwnedCommandName(verb)).map((verb) => [verb, async (subcommandArgs, subcommandName) => {
|
|
102
|
-
const { runAgentApiCli } = await import("../chunks/agent-api-cli-
|
|
102
|
+
const { runAgentApiCli } = await import("../chunks/agent-api-cli-m2vQhZQA.js");
|
|
103
103
|
return runAgentApiCli([subcommandName, ...subcommandArgs]);
|
|
104
104
|
}])]);
|
|
105
105
|
var AGENT_INSTALL_COMMAND_BY_ID = {
|
|
@@ -113,7 +113,7 @@ function missingAgentText(agentId) {
|
|
|
113
113
|
}
|
|
114
114
|
async function printSessionLimits() {
|
|
115
115
|
if (!process.env["GLIMMERVOID_AGENT_URL"]) return;
|
|
116
|
-
const { sessionLimitsHelpLines } = await import("../chunks/agent-api-cli-
|
|
116
|
+
const { sessionLimitsHelpLines } = await import("../chunks/agent-api-cli-m2vQhZQA.js");
|
|
117
117
|
const limitsLines = await sessionLimitsHelpLines();
|
|
118
118
|
console.log(`\n${limitsLines.join("\n")}`);
|
|
119
119
|
}
|
|
@@ -2,7 +2,7 @@ import { Q as UNIT_STATUSES, l as AgentLimitsReply, nt as WhiteboardAgentReply,
|
|
|
2
2
|
import { J as formatSessionLimits, i as agentCommandSpec, m as isAgentApiVerb, rt as parseCommand, t as AGENT_COMMAND_HELP } from "./agent-api-core-CWPNeptA.js";
|
|
3
3
|
import { i as resolveHookTarget } from "./hook-relay-core-DA_bz2KA.js";
|
|
4
4
|
import { t as parseJsonOrNull } from "./json-core-If8h-Qgy.js";
|
|
5
|
-
import { g as layoutBoard, i as describeOverCap, m as boardSvgDocument, y as planSteps } from "./shown-files-core-
|
|
5
|
+
import { g as layoutBoard, i as describeOverCap, m as boardSvgDocument, y as planSteps } from "./shown-files-core-Dpas35wM.js";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import http from "node:http";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as askAgentApi, r as runAgentApiCli, i as sessionLimitsHelpLines } from "./agent-api-cli-
|
|
1
|
+
export { t as askAgentApi, r as runAgentApiCli, i as sessionLimitsHelpLines } from "./agent-api-cli-DgVeVa0h.js";
|
|
@@ -13,7 +13,7 @@ import { n as promptContextReplyOf, o as toolHookContextReplyOf, r as refocusRep
|
|
|
13
13
|
import { n as parseJsonRecord, t as parseJsonOrNull } from "./json-core-If8h-Qgy.js";
|
|
14
14
|
import { a as saneYoloFiles } from "./sane-yolo-BjUkqIoH.js";
|
|
15
15
|
import { r as knownWriteHookInput } from "./posthog-read-gate-core-CeSY56AB.js";
|
|
16
|
-
import { _ as cappedWarnings, a as filesAfterRetention, b as unitsOf, c as readPageTitle, d as thumbnailFilenameOf, f as thumbnailOwnerIdOf, g as layoutBoard, h as escapeMarkup, i as describeOverCap, l as shownMimeForFilename, m as boardSvgDocument, n as SHOWN_SNIFF_BYTES, o as isShownPageMime, p as thumbnailRecipeFor, r as decideShownKind, s as leavesVisibleRawTextOpen, t as SHOWN_PAGE_ZOOM_BRIDGE, u as sniffRasterImageMime, v as findDependencyCycle, y as planSteps$1 } from "./shown-files-core-
|
|
16
|
+
import { _ as cappedWarnings, a as filesAfterRetention, b as unitsOf, c as readPageTitle, d as thumbnailFilenameOf, f as thumbnailOwnerIdOf, g as layoutBoard, h as escapeMarkup, i as describeOverCap, l as shownMimeForFilename, m as boardSvgDocument, n as SHOWN_SNIFF_BYTES, o as isShownPageMime, p as thumbnailRecipeFor, r as decideShownKind, s as leavesVisibleRawTextOpen, t as SHOWN_PAGE_ZOOM_BRIDGE, u as sniffRasterImageMime, v as findDependencyCycle, y as planSteps$1 } from "./shown-files-core-Dpas35wM.js";
|
|
17
17
|
import { c as parsePresentedCredential, n as shellQuote, s as mcpLaunchFor } from "./hook-command-core-5G0De2KV.js";
|
|
18
18
|
import { C as parseCgroupBytes, D as DEFAULT_MAX_MS, E as DEFAULT_BASE_MS, O as nextBackoffMs, S as memoryReserveBytes, T as parseMemAvailableBytes, _ as createSpawnGate, a as jsonStateLoadError, b as cgroupLimitBytes, c as loadedJsonValue, d as writeJsonAtomicSync, g as createSerialQueue, h as createMemoryAdmission, i as createJsonStateWriter, m as createKeyedSerialQueue, n as appendJsonLines, o as loadJsonStateFile, p as writeTextAtomicSync, r as createJsonStateStore, s as loadJsonStateFileSync, t as appendJsonLine, u as writeJsonAtomic, v as isQueueAdmissionTimeout, w as parseCgroupV2Path, x as headroomFromReadings, y as cgroupAncestorPaths } from "./json-file-AKRVPqG1.js";
|
|
19
19
|
import { $ as buildBrowserExceptionProperties, D as validateSettingsBlock, E as settingsBlockSpecFor, G as describeDataAttach, H as DEEP_HISTORY_SCROLLBACK_LINES, J as FIRST_RUN_NOTICE, K as parseDataAttach, O as SETTINGS_INDEX, Q as buildAiGenerationEvents, R as valueAtPath, St as isSameDirectoryPath, T as mergeSettingsBlock, V as isExperimentalSetting, W as LOGGED_FAST_CLOSE_COUNTS, X as TELEMETRY_FLAGS_URL, Y as TELEMETRY_BATCH_URL, Z as adapterBucket, _ as usablePrefixes, a as generateProjectId, at as decideIsDevInstall, b as unrefTimer, bt as canonicalizePath, ct as exceptionFingerprint, d as DEFAULT_CONFIG, dt as resolveProjectToken, et as buildExceptionProperties, f as DEFAULT_BRANCH_GC_PREFIXES, ft as DashboardTelemetryReport, g as sessionIdFromBranch, h as planWorktreeGc, ht as TelemetryState, i as ensureProjectIds, it as codexUserIdOf, lt as nodeMajorVersion, m as planBranchGc, mt as TELEMETRY_EVENT_SCHEMAS, n as createConfigStore, nt as classifySessionExit, o as glimmervoidHomeDir$1, ot as decideRemoteTelemetryState, p as matchedPrefix, pt as PendingCrashReport, q as parseDataClientMessage, r as ABORT_CONFIG_SAVE, rt as claudeAccountUuidOf, st as decideTelemetryConsent, tt as buildPersonProperties, ut as parsePosthogReleaseId, v as worktreeIntegrationTips, vt as stableConfigKey, xt as comparableDirectoryPath, y as DEFAULT_TIMER_FNS } from "./config-store-DVWnxI-S.js";
|
|
@@ -13534,7 +13534,7 @@ function createGithubStoreWiring({ github, clock, now = Date.now, isDashboardCon
|
|
|
13534
13534
|
}
|
|
13535
13535
|
//#endregion
|
|
13536
13536
|
//#region server/lanes/lane-runner.ts
|
|
13537
|
-
function createTickLoop({ tag, quickRetries = false, onScheduleChange = () => {}, rateLimitWaitMs = async () => null, intervalMs, tick: tickBody, writeState = async () => {}, setIntervalFn = DEFAULT_TIMER_FNS.setIntervalFn, clearIntervalFn = DEFAULT_TIMER_FNS.clearIntervalFn, clock, firstTickDelayMs = () => 0, setTimeoutFn = DEFAULT_TIMER_FNS.setTimeoutFn, clearTimeoutFn = DEFAULT_TIMER_FNS.clearTimeoutFn, backoffBaseMs = Math.max(intervalMs, DEFAULT_BASE_MS), backoffMaxMs = DEFAULT_MAX_MS, now = Date.now, random = Math.random, log = console }) {
|
|
13537
|
+
function createTickLoop({ tag, quickRetries = false, onScheduleChange = () => {}, rateLimitWaitMs = async () => null, intervalMs, tick: tickBody, writeState = async () => {}, setIntervalFn = DEFAULT_TIMER_FNS.setIntervalFn, clearIntervalFn = DEFAULT_TIMER_FNS.clearIntervalFn, clock, firstTickDelayMs = () => 0, setTimeoutFn = DEFAULT_TIMER_FNS.setTimeoutFn, clearTimeoutFn = DEFAULT_TIMER_FNS.clearTimeoutFn, backoffBaseMs = Math.max(intervalMs, DEFAULT_BASE_MS), backoffMaxMs = DEFAULT_MAX_MS, minFailureWaitMs = 0, now = Date.now, random = Math.random, log = console }) {
|
|
13538
13538
|
let timer = null;
|
|
13539
13539
|
let unschedule = null;
|
|
13540
13540
|
let firstTickTimer = null;
|
|
@@ -13597,6 +13597,7 @@ function createTickLoop({ tag, quickRetries = false, onScheduleChange = () => {}
|
|
|
13597
13597
|
}
|
|
13598
13598
|
async function runTick(trigger, beforeTick) {
|
|
13599
13599
|
const isManual = trigger === "manual";
|
|
13600
|
+
const tickStartedAt = now();
|
|
13600
13601
|
if (stopped) return {
|
|
13601
13602
|
ok: false,
|
|
13602
13603
|
error: "Reviews polling is stopped."
|
|
@@ -13685,8 +13686,9 @@ function createTickLoop({ tag, quickRetries = false, onScheduleChange = () => {}
|
|
|
13685
13686
|
});
|
|
13686
13687
|
if (scheduled.retry) quickRetryCount += 1;
|
|
13687
13688
|
if (outcome.retryAfterMs && outcome.retryAfterMs > 0) rateLimitedUntil = now() + outcome.retryAfterMs;
|
|
13688
|
-
|
|
13689
|
-
|
|
13689
|
+
const waitMs = Math.max(scheduled.waitMs, minFailureWaitMs - (now() - tickStartedAt));
|
|
13690
|
+
scheduleAttempt(waitMs, scheduled.retry);
|
|
13691
|
+
log.warn(`[${tag}] poll failed (${failureStreak} in a row)${outcome.error ? `: ${outcome.error}` : ""} - backing off ${Math.round(waitMs / 1e3)}s`);
|
|
13690
13692
|
return {
|
|
13691
13693
|
ok: false,
|
|
13692
13694
|
error: "Could not refresh from GitHub."
|
|
@@ -30689,6 +30691,30 @@ function clampBaselineDays(value) {
|
|
|
30689
30691
|
if (!Number.isFinite(n)) return DEFAULT_BASELINE_DAYS;
|
|
30690
30692
|
return Math.min(MAX_BASELINE_DAYS, Math.max(1, n));
|
|
30691
30693
|
}
|
|
30694
|
+
var RATE_LIMITED_STATUS = 429;
|
|
30695
|
+
function retryAfterMsFrom(headerValue) {
|
|
30696
|
+
const seconds = Number(headerValue ?? "");
|
|
30697
|
+
if (!headerValue || !Number.isFinite(seconds) || seconds <= 0) return void 0;
|
|
30698
|
+
return seconds * 1e3;
|
|
30699
|
+
}
|
|
30700
|
+
function rateLimitedResponse(res, body) {
|
|
30701
|
+
const errorCode = isRecord$1(body) && typeof body.code === "string" ? ` ${body.code}` : "";
|
|
30702
|
+
const retryAfterMs = retryAfterMsFrom(res.headers?.get("retry-after") ?? null);
|
|
30703
|
+
const error = `HTTP ${RATE_LIMITED_STATUS}${errorCode}`;
|
|
30704
|
+
if (retryAfterMs === void 0) return {
|
|
30705
|
+
ok: false,
|
|
30706
|
+
status: RATE_LIMITED_STATUS,
|
|
30707
|
+
body,
|
|
30708
|
+
error
|
|
30709
|
+
};
|
|
30710
|
+
return {
|
|
30711
|
+
ok: false,
|
|
30712
|
+
status: RATE_LIMITED_STATUS,
|
|
30713
|
+
body,
|
|
30714
|
+
error,
|
|
30715
|
+
retryAfterMs
|
|
30716
|
+
};
|
|
30717
|
+
}
|
|
30692
30718
|
function createPosthogApi({ host, apiKey, fetchFn } = {}) {
|
|
30693
30719
|
const base = String(host || "").replace(/\/+$/, "");
|
|
30694
30720
|
const doFetch = fetchFn || ((url, init) => fetch(url, init));
|
|
@@ -30709,6 +30735,7 @@ function createPosthogApi({ host, apiKey, fetchFn } = {}) {
|
|
|
30709
30735
|
} catch {
|
|
30710
30736
|
parsed = null;
|
|
30711
30737
|
}
|
|
30738
|
+
if (res.status === RATE_LIMITED_STATUS) return rateLimitedResponse(res, parsed);
|
|
30712
30739
|
if (!res.ok) return {
|
|
30713
30740
|
ok: false,
|
|
30714
30741
|
status: res.status,
|
|
@@ -33646,12 +33673,23 @@ function parseCommunityState(raw, warn) {
|
|
|
33646
33673
|
}
|
|
33647
33674
|
//#endregion
|
|
33648
33675
|
//#region server/community/community-poller.ts
|
|
33676
|
+
var MAX_RATE_LIMIT_WAIT_MS = 36e5;
|
|
33677
|
+
function sourceFailure(fetched) {
|
|
33678
|
+
return {
|
|
33679
|
+
error: fetched.error,
|
|
33680
|
+
isRateLimited: fetched.isRateLimited === true,
|
|
33681
|
+
retryAfterMs: fetched.retryAfterMs
|
|
33682
|
+
};
|
|
33683
|
+
}
|
|
33649
33684
|
function createCommunityPoller({ intervalMinutes, queryForum, discord = null, readState, writeState, runItem, maxConcurrentRuns = 1, onTickComplete = () => {}, onDraftReady = () => {}, firstTickDelayMs, now = Date.now, log = console }) {
|
|
33650
33685
|
let state = emptyCommunityState();
|
|
33651
33686
|
const runAborts = /* @__PURE__ */ new Map();
|
|
33687
|
+
const intervalMs = intervalMinutes * 6e4;
|
|
33652
33688
|
const loop = createTickLoop({
|
|
33653
33689
|
tag: COMMUNITY_LANE_ID,
|
|
33654
|
-
intervalMs
|
|
33690
|
+
intervalMs,
|
|
33691
|
+
minFailureWaitMs: intervalMs,
|
|
33692
|
+
backoffMaxMs: Math.max(MAX_RATE_LIMIT_WAIT_MS, intervalMs),
|
|
33655
33693
|
tick: () => runTick(),
|
|
33656
33694
|
writeState: () => writeState(state),
|
|
33657
33695
|
firstTickDelayMs,
|
|
@@ -33675,7 +33713,7 @@ function createCommunityPoller({ intervalMinutes, queryForum, discord = null, re
|
|
|
33675
33713
|
return null;
|
|
33676
33714
|
}
|
|
33677
33715
|
const fetched = await queryForum(watermark);
|
|
33678
|
-
if (!fetched.ok) return fetched
|
|
33716
|
+
if (!fetched.ok) return sourceFailure(fetched);
|
|
33679
33717
|
const { items, droppedRows, newestRowAt } = forumItemsFromRows(fetched.rows);
|
|
33680
33718
|
if (droppedRows > 0) log.warn(`[${COMMUNITY_LANE_ID}] dropped ${droppedRows} malformed forum row(s)`);
|
|
33681
33719
|
state = withWatermarkAtLeast(admitSourceItems(state, "forum", items, nowIso).state, "forum", newestRowAt);
|
|
@@ -33689,13 +33727,16 @@ function createCommunityPoller({ intervalMinutes, queryForum, discord = null, re
|
|
|
33689
33727
|
return null;
|
|
33690
33728
|
}
|
|
33691
33729
|
const fetched = await source.query(watermark);
|
|
33692
|
-
if (!fetched.ok) return fetched
|
|
33730
|
+
if (!fetched.ok) return sourceFailure(fetched);
|
|
33693
33731
|
const { items, replyFacts, dropReasons, newestRowAt } = discordItemsFromRows(fetched.rows, source.channels);
|
|
33694
33732
|
const dropSummary = discordDropSummary(dropReasons);
|
|
33695
33733
|
if (dropSummary) log.warn(`[${COMMUNITY_LANE_ID}] ${dropSummary}`);
|
|
33696
33734
|
const candidates = freshItems(state, "discord", items);
|
|
33697
33735
|
const questionKeys = candidates.length > 0 ? await source.judgeQuestions(candidates, replyFacts).catch(() => null) : /* @__PURE__ */ new Set();
|
|
33698
|
-
if (questionKeys === null) return
|
|
33736
|
+
if (questionKeys === null) return {
|
|
33737
|
+
error: "The Discord question judge gave no usable answer; these messages are checked again next poll",
|
|
33738
|
+
isRateLimited: false
|
|
33739
|
+
};
|
|
33699
33740
|
const admitted = admitSourceItems(state, "discord", items, nowIso, (key) => questionKeys.has(key)).state;
|
|
33700
33741
|
state = withWatermarkAtLeast(admitted, "discord", newestRowAt);
|
|
33701
33742
|
return null;
|
|
@@ -33744,13 +33785,20 @@ function createCommunityPoller({ intervalMinutes, queryForum, discord = null, re
|
|
|
33744
33785
|
for (const key of selectRuns(state, maxConcurrentRuns - runAborts.size)) startRun(key);
|
|
33745
33786
|
}
|
|
33746
33787
|
async function runTick() {
|
|
33747
|
-
const
|
|
33748
|
-
const
|
|
33749
|
-
const pollError =
|
|
33788
|
+
const forumFailure = await pollForum();
|
|
33789
|
+
const discordFailure = discord !== null && discord.channels.length > 0 && !forumFailure?.isRateLimited ? await pollDiscord(discord) : null;
|
|
33790
|
+
const pollError = (forumFailure ?? discordFailure)?.error ?? null;
|
|
33791
|
+
const retryAfterWaits = [forumFailure?.retryAfterMs, discordFailure?.retryAfterMs].filter((waitMs) => waitMs !== void 0);
|
|
33792
|
+
const longestRetryAfterMs = retryAfterWaits.length > 0 ? Math.max(...retryAfterWaits) : void 0;
|
|
33750
33793
|
state = prunedState(state, now());
|
|
33751
33794
|
dispatchRuns();
|
|
33752
33795
|
await loop.persist();
|
|
33753
33796
|
publishStatus(pollError);
|
|
33797
|
+
if (pollError && longestRetryAfterMs !== void 0) return {
|
|
33798
|
+
failed: true,
|
|
33799
|
+
error: pollError,
|
|
33800
|
+
retryAfterMs: longestRetryAfterMs
|
|
33801
|
+
};
|
|
33754
33802
|
if (pollError) return {
|
|
33755
33803
|
failed: true,
|
|
33756
33804
|
error: pollError
|
|
@@ -33943,7 +33991,9 @@ function hogQLRows(api, projectId, query, values) {
|
|
|
33943
33991
|
return api.runHogQL(projectId, query, values).then((response) => {
|
|
33944
33992
|
if (!response.ok) return {
|
|
33945
33993
|
ok: false,
|
|
33946
|
-
error: response.error
|
|
33994
|
+
error: response.error,
|
|
33995
|
+
isRateLimited: "status" in response && response.status === 429,
|
|
33996
|
+
retryAfterMs: "retryAfterMs" in response ? response.retryAfterMs : void 0
|
|
33947
33997
|
};
|
|
33948
33998
|
return {
|
|
33949
33999
|
ok: true,
|
|
@@ -303,7 +303,7 @@ function runParsedSettingsCommand(parsed, io) {
|
|
|
303
303
|
async function runParsedSettingsCli(parsed, io = processIo()) {
|
|
304
304
|
const serverRequest = settingsRequestForServer(parsed, process.env);
|
|
305
305
|
if (!serverRequest) return runParsedSettingsCommand(parsed, io);
|
|
306
|
-
const { askAgentApi } = await import("./agent-api-cli-
|
|
306
|
+
const { askAgentApi } = await import("./agent-api-cli-m2vQhZQA.js");
|
|
307
307
|
const reply = AgentSettingsReply.safeParse(await askAgentApi("settings", serverRequest).catch((error) => ({
|
|
308
308
|
ok: false,
|
|
309
309
|
error: errorMessage(error)
|
|
@@ -754,9 +754,9 @@ function reconstructNodes(cameFrom, goalState) {
|
|
|
754
754
|
for (let state = goalState; state !== -1; state = cameFrom[state] ?? -1) states.push(state);
|
|
755
755
|
return states.reverse();
|
|
756
756
|
}
|
|
757
|
-
function
|
|
757
|
+
function adjustUsage(grid, usage, plan, states, delta) {
|
|
758
758
|
const width = grid.xs.length;
|
|
759
|
-
const increment = (countByKey, key) => countByKey.set(key, (countByKey.get(key) ?? 0) +
|
|
759
|
+
const increment = (countByKey, key) => countByKey.set(key, (countByKey.get(key) ?? 0) + delta);
|
|
760
760
|
const remember = (usageByKey, key) => {
|
|
761
761
|
const keyUsage = usageByKey.get(key) ?? {
|
|
762
762
|
total: 0,
|
|
@@ -765,7 +765,7 @@ function recordUsage(grid, usage, plan, states) {
|
|
|
765
765
|
countByBusAndExitKey: /* @__PURE__ */ new Map()
|
|
766
766
|
};
|
|
767
767
|
usageByKey.set(key, keyUsage);
|
|
768
|
-
keyUsage.total +=
|
|
768
|
+
keyUsage.total += delta;
|
|
769
769
|
increment(keyUsage.countByExitKey, plan.exitKey);
|
|
770
770
|
if (plan.busKey === null) return;
|
|
771
771
|
increment(keyUsage.countByBusKey, plan.busKey);
|
|
@@ -813,6 +813,26 @@ function backInteriorOf(plan, loopFrames) {
|
|
|
813
813
|
if (!span) return null;
|
|
814
814
|
return loopFrames.find((frame) => frame.x <= span.x && frame.y <= span.y && frame.x + frame.width >= span.x + span.width && frame.y + frame.height >= span.y + span.height) ?? span;
|
|
815
815
|
}
|
|
816
|
+
function longestFirst(items, planOf) {
|
|
817
|
+
const routeLength = (plan) => Math.abs(plan.start.x - plan.end.x) + Math.abs(plan.start.y - plan.end.y);
|
|
818
|
+
return [...items].sort((left, right) => routeLength(planOf(right)) - routeLength(planOf(left)) || planOf(left).wire.id.localeCompare(planOf(right).wire.id));
|
|
819
|
+
}
|
|
820
|
+
function drawnWireOf(grid, plan, states) {
|
|
821
|
+
const points = grid && states ? withoutBends(states.map((state) => {
|
|
822
|
+
const node = state >> 2;
|
|
823
|
+
const xIndex = node % grid.xs.length;
|
|
824
|
+
return {
|
|
825
|
+
x: grid.xs[xIndex] ?? 0,
|
|
826
|
+
y: grid.ys[(node - xIndex) / grid.xs.length] ?? 0
|
|
827
|
+
};
|
|
828
|
+
})) : fallbackPoints(plan);
|
|
829
|
+
return {
|
|
830
|
+
plan,
|
|
831
|
+
points,
|
|
832
|
+
segments: segmentsOf(points),
|
|
833
|
+
states
|
|
834
|
+
};
|
|
835
|
+
}
|
|
816
836
|
function routeAll(plans, input, budget) {
|
|
817
837
|
const grid = buildGrid(plans, [...input.boxesById.values(), ...input.panels], input.softObstacles, input.contentTop);
|
|
818
838
|
const buffers = grid ? createSearchBuffers(grid) : null;
|
|
@@ -820,28 +840,44 @@ function routeAll(plans, input, budget) {
|
|
|
820
840
|
usageByEdge: /* @__PURE__ */ new Map(),
|
|
821
841
|
usageByNodeAndAxis: /* @__PURE__ */ new Map()
|
|
822
842
|
};
|
|
823
|
-
const routeLength = (plan) => Math.abs(plan.start.x - plan.end.x) + Math.abs(plan.start.y - plan.end.y);
|
|
824
|
-
const ordered = [...plans].sort((left, right) => routeLength(right) - routeLength(left) || left.wire.id.localeCompare(right.wire.id));
|
|
825
843
|
const drawnById = /* @__PURE__ */ new Map();
|
|
826
|
-
for (const plan of
|
|
844
|
+
for (const plan of longestFirst(plans, (plan) => plan)) {
|
|
827
845
|
const states = grid && buffers ? routeOnGrid(grid, plan, usage, backInteriorOf(plan, input.loopFrames), buffers, budget) : null;
|
|
828
|
-
if (grid && states)
|
|
829
|
-
|
|
830
|
-
const node = state >> 2;
|
|
831
|
-
const xIndex = node % grid.xs.length;
|
|
832
|
-
return {
|
|
833
|
-
x: grid.xs[xIndex] ?? 0,
|
|
834
|
-
y: grid.ys[(node - xIndex) / grid.xs.length] ?? 0
|
|
835
|
-
};
|
|
836
|
-
})) : fallbackPoints(plan);
|
|
837
|
-
drawnById.set(plan.wire.id, {
|
|
838
|
-
plan,
|
|
839
|
-
points,
|
|
840
|
-
segments: segmentsOf(points),
|
|
841
|
-
isFallback: !states
|
|
842
|
-
});
|
|
846
|
+
if (grid && states) adjustUsage(grid, usage, plan, states, 1);
|
|
847
|
+
drawnById.set(plan.wire.id, drawnWireOf(grid, plan, states));
|
|
843
848
|
}
|
|
844
|
-
return
|
|
849
|
+
return {
|
|
850
|
+
drawn: plans.flatMap((plan) => drawnById.get(plan.wire.id) ?? []),
|
|
851
|
+
grid,
|
|
852
|
+
usage
|
|
853
|
+
};
|
|
854
|
+
}
|
|
855
|
+
function bendCountOf(wire) {
|
|
856
|
+
return Math.max(0, wire.points.length - 2);
|
|
857
|
+
}
|
|
858
|
+
function crossingCostOf(wire, others, input) {
|
|
859
|
+
const wireCrossingCount = others.filter((other) => pairCrossingOf(wire, other) !== null).length;
|
|
860
|
+
return findBoxCrossings([wire], input).length * BOX_CROSSING_COST + wireCrossingCount;
|
|
861
|
+
}
|
|
862
|
+
function rerouteCrossedWires(routed, input) {
|
|
863
|
+
const { grid, usage } = routed;
|
|
864
|
+
if (!grid) return routed.drawn;
|
|
865
|
+
const buffers = createSearchBuffers(grid);
|
|
866
|
+
const budget = { remainingExpansions: MAX_TOTAL_EXPANSIONS };
|
|
867
|
+
const drawnById = new Map(routed.drawn.map((wire) => [wire.plan.wire.id, wire]));
|
|
868
|
+
for (const current of longestFirst(routed.drawn, (wire) => wire.plan)) {
|
|
869
|
+
if (!current.states || budget.remainingExpansions <= 0) continue;
|
|
870
|
+
const others = [...drawnById.values()].filter((other) => other.plan !== current.plan);
|
|
871
|
+
const currentCost = crossingCostOf(current, others, input);
|
|
872
|
+
if (currentCost === 0) continue;
|
|
873
|
+
adjustUsage(grid, usage, current.plan, current.states, -1);
|
|
874
|
+
const rerouted = drawnWireOf(grid, current.plan, routeOnGrid(grid, current.plan, usage, backInteriorOf(current.plan, input.loopFrames), buffers, budget));
|
|
875
|
+
const staysWithinBendLimit = bendCountOf(rerouted) <= Math.max(bendCountOf(current), MAX_BENDS);
|
|
876
|
+
const kept = rerouted.states && staysWithinBendLimit && crossingCostOf(rerouted, others, input) < currentCost ? rerouted : current;
|
|
877
|
+
adjustUsage(grid, usage, kept.plan, kept.states ?? current.states, 1);
|
|
878
|
+
drawnById.set(kept.plan.wire.id, kept);
|
|
879
|
+
}
|
|
880
|
+
return routed.drawn.map((wire) => drawnById.get(wire.plan.wire.id) ?? wire);
|
|
845
881
|
}
|
|
846
882
|
function labelWidthOf(label) {
|
|
847
883
|
return Math.ceil(label.length * LABEL_CHAR_WIDTH);
|
|
@@ -940,13 +976,14 @@ function areSiblings(first, second) {
|
|
|
940
976
|
if (first.plan.busKey !== null && first.plan.busKey === second.plan.busKey) return true;
|
|
941
977
|
return first.plan.exitKey === second.plan.exitKey;
|
|
942
978
|
}
|
|
979
|
+
function pairCrossingOf(first, second) {
|
|
980
|
+
if (areSiblings(first, second)) return null;
|
|
981
|
+
const pairs = first.segments.flatMap((firstSegment) => second.segments.map((secondSegment) => [firstSegment, secondSegment]));
|
|
982
|
+
if (pairs.some(([firstSegment, secondSegment]) => segmentsCross(firstSegment, secondSegment))) return `wire ${first.plan.wire.id} crosses wire ${second.plan.wire.id}`;
|
|
983
|
+
return pairs.some(([firstSegment, secondSegment]) => segmentsOverlap(firstSegment, secondSegment)) ? `wire ${first.plan.wire.id} overlaps wire ${second.plan.wire.id}` : null;
|
|
984
|
+
}
|
|
943
985
|
function findCrossings(drawn) {
|
|
944
|
-
return drawn.flatMap((first, index) => drawn.slice(index + 1).flatMap((second) =>
|
|
945
|
-
if (areSiblings(first, second)) return [];
|
|
946
|
-
const pairs = first.segments.flatMap((firstSegment) => second.segments.map((secondSegment) => [firstSegment, secondSegment]));
|
|
947
|
-
if (pairs.some(([firstSegment, secondSegment]) => segmentsCross(firstSegment, secondSegment))) return [`wire ${first.plan.wire.id} crosses wire ${second.plan.wire.id}`];
|
|
948
|
-
return pairs.some(([firstSegment, secondSegment]) => segmentsOverlap(firstSegment, secondSegment)) ? [`wire ${first.plan.wire.id} overlaps wire ${second.plan.wire.id}`] : [];
|
|
949
|
-
}));
|
|
986
|
+
return drawn.flatMap((first, index) => drawn.slice(index + 1).flatMap((second) => pairCrossingOf(first, second) ?? []));
|
|
950
987
|
}
|
|
951
988
|
function findBoxCrossings(drawn, input) {
|
|
952
989
|
const solids = [...input.boxesById.values(), ...input.panels];
|
|
@@ -958,8 +995,8 @@ function findBoxCrossings(drawn, input) {
|
|
|
958
995
|
}
|
|
959
996
|
function routeQualityWarnings(drawn) {
|
|
960
997
|
return drawn.flatMap((wire) => {
|
|
961
|
-
if (wire.
|
|
962
|
-
const bends =
|
|
998
|
+
if (!wire.states) return [`wire ${wire.plan.wire.id} found no clear route, so it is drawn as a straight dog-leg`];
|
|
999
|
+
const bends = bendCountOf(wire);
|
|
963
1000
|
return bends > MAX_BENDS ? [`wire ${wire.plan.wire.id} bends ${bends} times`] : [];
|
|
964
1001
|
});
|
|
965
1002
|
}
|
|
@@ -983,15 +1020,15 @@ function swapNeighbors(order, index) {
|
|
|
983
1020
|
function routeWithPortOrder(plans, input, requestsBySide, groupOrderBySide, budget) {
|
|
984
1021
|
assignPorts(requestsBySide, groupOrderBySide);
|
|
985
1022
|
alignLonePorts(plans, groupOrderBySide);
|
|
986
|
-
const
|
|
1023
|
+
const routed = routeAll(plans, input, budget);
|
|
987
1024
|
return {
|
|
988
|
-
|
|
989
|
-
crossingCost: findBoxCrossings(drawn, input).length * BOX_CROSSING_COST + findCrossings(drawn).length
|
|
1025
|
+
routed,
|
|
1026
|
+
crossingCost: findBoxCrossings(routed.drawn, input).length * BOX_CROSSING_COST + findCrossings(routed.drawn).length
|
|
990
1027
|
};
|
|
991
1028
|
}
|
|
992
1029
|
function routeWithFewestCrossings(plans, input, requestsBySide, groupOrderBySide, budget) {
|
|
993
1030
|
let best = routeWithPortOrder(plans, input, requestsBySide, groupOrderBySide, budget);
|
|
994
|
-
if (plans.length > MAX_WIRES_FOR_PORT_SEARCH) return best.
|
|
1031
|
+
if (plans.length > MAX_WIRES_FOR_PORT_SEARCH) return rerouteCrossedWires(best.routed, input);
|
|
995
1032
|
for (const groupOrder of groupOrderBySide.values()) for (let index = 0; best.crossingCost > 0 && index + 1 < groupOrder.length; index += 1) {
|
|
996
1033
|
swapNeighbors(groupOrder, index);
|
|
997
1034
|
const trial = routeWithPortOrder(plans, input, requestsBySide, groupOrderBySide, budget);
|
|
@@ -1001,7 +1038,7 @@ function routeWithFewestCrossings(plans, input, requestsBySide, groupOrderBySide
|
|
|
1001
1038
|
}
|
|
1002
1039
|
swapNeighbors(groupOrder, index);
|
|
1003
1040
|
}
|
|
1004
|
-
return routeWithPortOrder(plans, input, requestsBySide, groupOrderBySide, budget).
|
|
1041
|
+
return rerouteCrossedWires(routeWithPortOrder(plans, input, requestsBySide, groupOrderBySide, budget).routed, input);
|
|
1005
1042
|
}
|
|
1006
1043
|
function routeWires(input) {
|
|
1007
1044
|
const plans = planWires(input);
|
|
@@ -2,7 +2,7 @@ import { r as errorMessage } from "./text-DoirglWV.js";
|
|
|
2
2
|
import { L as SshSignReply, j as SIGN_URL_ENV } from "./session-D-C2x8yg.js";
|
|
3
3
|
import { c as spawn, r as execFileAsync } from "./child-process-safe-BCOoKfxG.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-DgVeVa0h.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{t as e}from"./button-C22nHZZN.js";import{n as t,r as n,s as r}from"./dom-helpers-qjWTsLGI.js";import{Fi as i,Ii as a,Li as o}from"./index-
|
|
1
|
+
import{t as e}from"./button-C22nHZZN.js";import{n as t,r as n,s as r}from"./dom-helpers-qjWTsLGI.js";import{Fi as i,Ii as a,Li as o}from"./index-DaaLGL3v.js";var s={mine:`Mine`,run:`Run`,cancel:`Cancel`},c=null;function l(e){return e===null?`n/a`:`${Math.round(e*100)}%`}function u(e){if(e===null)return`n/a`;let t=Math.round(e*100);return t>0?`+${t}`:String(t)}function d(t,n,r){return e({variant:n===`cancel`?`secondary`:`primary`,size:`small`,label:s[n],action:`benchmark-${n}`,disabled:r,onClick:()=>a(t.id,n)})}function f(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 p(e){let t=r(`td`,`bench-score`,l(e?.recall??null));return e&&e.invalid>0&&(t.title=`${e.invalid} invalid or failed cell(s)`),e&&e.degraded>0&&(t.dataset.degraded=`true`),t}function m(e){let t=e.armIds.filter(t=>t!==e.baselineArm),n=r(`table`,`bench-table`),i=r(`tr`);i.append(r(`th`,null,`Case`),...e.armIds.map(t=>r(`th`,null,t===e.baselineArm?`${t} (baseline)`:t))),i.append(...t.map(e=>r(`th`,null,`${e} vs baseline`))),n.append(i);for(let i of e.rows){let a=r(`tr`);a.append(r(`td`,`bench-case`,i.caseId),...e.armIds.map(e=>p(i.arms[e]))),a.append(...t.map(e=>r(`td`,`bench-delta`,u(i.deltaVsBaseline[e]??null)))),n.append(a)}let a=[...new Set(e.armIds.flatMap(t=>Object.keys(e.totals[t]?.recallByTag??{})))].sort(),o=r(`tr`,`bench-total`);o.append(r(`td`,`bench-case`,`Paired recall`),...e.armIds.map(t=>p(e.totals[t]))),n.append(o);for(let t of a){let i=r(`tr`,`bench-total`);i.append(r(`td`,`bench-case`,`Recall, ${t}`),...e.armIds.map(n=>r(`td`,`bench-score`,l(e.totals[n]?.recallByTag[t]??null)))),n.append(i)}return n}function h(e,t){let{isServerConnected:a,pendingActionBySuite:o,outcomeBySuite:s}=i(),c=r(`div`,`bench-suite`),l=e.inFlight?.suiteId===t.id,u=!!e.inFlight&&!l,p=o.has(t.id)||!a,h=r(`div`,`bench-summary`);h.append(r(`span`,`bench-suite-title`,t.title),n(`bench`,t.caseCount===1?`case`:`cases`,String(t.caseCount)),n(`bench`,t.candidateCount===1?`candidate`:`candidates`,String(t.candidateCount)),n(`bench`,`arms`,String(t.armIds.length))),c.append(h);let g=r(`div`,`bench-controls`),_=e.configured===!0&&t.error===null;g.append(d(t,`mine`,!_||p||l),d(t,`run`,!_||p||l||u||t.caseCount===0),d(t,`cancel`,p||!l));let v=r(`span`,`bench-status`,(a?``:`Not connected to the server. Reconnecting.`)||f(e,t)||s.get(t.id)||``);if(v.setAttribute(`role`,`status`),g.append(v),c.append(g),t.error)return c.append(r(`p`,`bench-error`,t.error)),c;let y=t.latestReport;return y?(c.append(r(`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(m(y)),c):(c.append(r(`p`,`bench-empty`,t.caseCount===0?`Move approved candidates into the cases folder, then choose Run.`:`No run yet.`)),c)}function g(){if(!c)return;c.textContent=``;let{status:e}=i(),n=t(`bench`,`Benchmarks`,`Suites from the benchmarks folder of the Glimmervoid home, one run at a time.`);if(c.append(n),!e)c.append(r(`p`,`bench-empty`,`Waiting for the server.`));else if(!e.configured)c.append(r(`p`,`bench-empty`,e.reason||`Benchmarks are off.`));else if(e.suites.length===0)c.append(r(`p`,`bench-empty`,`No suites yet. Create a folder holding suite.json under benchmarks in the Glimmervoid home.`));else for(let t of e.suites)c.append(h(e,t))}function _(e){c||(c=r(`div`,`bench-content`),e.append(c),o(g),g())}var v={mount:_};export{v as view};
|
|
Binary file
|