glimmervoid 0.51.1-next.650 → 0.51.1-next.652
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 +7 -7
- package/dist/chunks/{adapters-CNZ0ranN.js → adapters-BU37FLqo.js} +1 -1
- package/dist/chunks/{adapters-CPRfXBjs.js → adapters-QYejudMO.js} +1 -1
- 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/config-store-CHn9TGw2.js +1 -0
- package/dist/chunks/{config-store-BmHUAm3O.js → config-store-DVWnxI-S.js} +1 -1
- package/dist/chunks/{main-C3kmeAVf.js → main-CzD_CUEb.js} +6 -6
- package/dist/chunks/{pair-cli-BIftd437.js → pair-cli-BufdmSlv.js} +2 -2
- package/dist/chunks/{remote-config-CIOpNyCX.js → remote-config-Bgd2cJp5.js} +1 -1
- package/dist/chunks/{settings-cli-D8-zxDbO.js → settings-cli-79NvDbPA.js} +3 -3
- package/dist/chunks/{settings-readout-core-yg-ANYeL.js → settings-readout-core-BpoxjFmz.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-BvKXCaZ1.js → benchmark-panel-Bz5I-9Zr.js} +1 -1
- package/dist/client/assets/benchmark-panel-Bz5I-9Zr.js.br +0 -0
- package/dist/client/assets/{boards-view-CUT0oG0D.js → boards-view-DyRbW9T9.js} +1 -1
- package/dist/client/assets/boards-view-DyRbW9T9.js.br +0 -0
- package/dist/client/assets/{community-panel-B3_hLkO6.js → community-panel-Aazq1i2t.js} +1 -1
- package/dist/client/assets/community-panel-Aazq1i2t.js.br +0 -0
- package/dist/client/assets/{dialogs-CkyIrcOo.js → dialogs-zwJu0RSL.js} +1 -1
- package/dist/client/assets/dialogs-zwJu0RSL.js.br +0 -0
- package/dist/client/assets/{doc-editor-ui-ISBO4yFw.js → doc-editor-ui-DOJ-HDf2.js} +1 -1
- package/dist/client/assets/doc-editor-ui-DOJ-HDf2.js.br +0 -0
- package/dist/client/assets/{feature-hint-DHm1jVrP.js → feature-hint-oGaas9RI.js} +1 -1
- package/dist/client/assets/feature-hint-oGaas9RI.js.br +0 -0
- package/dist/client/assets/{first-run-checklist-Cm43AcHn.js → first-run-checklist-BuiZgsm2.js} +1 -1
- package/dist/client/assets/first-run-checklist-BuiZgsm2.js.br +0 -0
- package/dist/client/assets/{hooks-panel-BKakTifn.js → hooks-panel-BSREOnp4.js} +1 -1
- package/dist/client/assets/hooks-panel-BSREOnp4.js.br +0 -0
- package/dist/client/assets/{index-BetxB7CF.js → index--tEVxxT-.js} +6 -6
- package/dist/client/assets/index--tEVxxT-.js.br +0 -0
- package/dist/client/assets/{issues-panel-DgYnrPPX.js → issues-panel-CFjNhImJ.js} +1 -1
- package/dist/client/assets/issues-panel-CFjNhImJ.js.br +0 -0
- package/dist/client/assets/{lane-read-token-step-BN8LiarN.js → lane-read-token-step-CKPpsNUN.js} +1 -1
- package/dist/client/assets/lane-read-token-step-CKPpsNUN.js.br +0 -0
- package/dist/client/assets/{my-prs-panel-CUlwJdHv.js → my-prs-panel-Di00nsFC.js} +1 -1
- package/dist/client/assets/my-prs-panel-Di00nsFC.js.br +0 -0
- package/dist/client/assets/{nyan-cat-CG7v-lWK.js → nyan-cat-BGrzrm53.js} +1 -1
- package/dist/client/assets/nyan-cat-BGrzrm53.js.br +0 -0
- package/dist/client/assets/{phone-shell-B_HMSnqy.js → phone-shell-BdHQeaTL.js} +1 -1
- package/dist/client/assets/phone-shell-BdHQeaTL.js.br +0 -0
- package/dist/client/assets/{plan-face-0rlEA6Bs.js → plan-face-DFwT8eB0.js} +1 -1
- package/dist/client/assets/plan-face-DFwT8eB0.js.br +0 -0
- package/dist/client/assets/{plan-render-QiyW3hEs.js → plan-render-BAPRDzXJ.js} +1 -1
- package/dist/client/assets/plan-render-BAPRDzXJ.js.br +0 -0
- package/dist/client/assets/{pr-queue-columns-DKNAByri.js → pr-queue-columns-pYfkxw8K.js} +1 -1
- package/dist/client/assets/pr-queue-columns-pYfkxw8K.js.br +0 -0
- package/dist/client/assets/{radar-panel-EgUxZZle.js → radar-panel-BjBc0c-A.js} +1 -1
- package/dist/client/assets/radar-panel-BjBc0c-A.js.br +0 -0
- package/dist/client/assets/{repo-roots-adder-C6aj-vKy.js → repo-roots-adder-Bi-L90c6.js} +1 -1
- package/dist/client/assets/repo-roots-adder-Bi-L90c6.js.br +0 -0
- package/dist/client/assets/{resume-dialog-DBXSZmUa.js → resume-dialog-D36UVny8.js} +1 -1
- package/dist/client/assets/resume-dialog-D36UVny8.js.br +0 -0
- package/dist/client/assets/{review-queue-panel-CK0mkAv0.js → review-queue-panel-DAcZSOW9.js} +1 -1
- package/dist/client/assets/review-queue-panel-DAcZSOW9.js.br +0 -0
- package/dist/client/assets/{settings-panel-D6Kj7_ZK.js → settings-panel-B1GFg_6X.js} +2 -2
- package/dist/client/assets/settings-panel-B1GFg_6X.js.br +0 -0
- package/dist/client/assets/{shown-face-CJGpnBUn.js → shown-face-DHtu4896.js} +1 -1
- package/dist/client/assets/shown-face-DHtu4896.js.br +0 -0
- package/dist/client/assets/{trace-panel-BP0u_YkV.js → trace-panel-D8EtcAlr.js} +1 -1
- package/dist/client/assets/trace-panel-D8EtcAlr.js.br +0 -0
- package/dist/client/assets/{usage-panel-D-7-fie7.js → usage-panel-CX451Hhp.js} +1 -1
- package/dist/client/assets/usage-panel-CX451Hhp.js.br +0 -0
- package/dist/client/assets/{your-day-tip-BIDKcmnX.js → your-day-tip-Cfetu0Ui.js} +1 -1
- package/dist/client/assets/your-day-tip-Cfetu0Ui.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/chunks/config-store-ehEDMacn.js +0 -1
- package/dist/client/assets/benchmark-panel-BvKXCaZ1.js.br +0 -0
- package/dist/client/assets/boards-view-CUT0oG0D.js.br +0 -0
- package/dist/client/assets/community-panel-B3_hLkO6.js.br +0 -0
- package/dist/client/assets/dialogs-CkyIrcOo.js.br +0 -0
- package/dist/client/assets/doc-editor-ui-ISBO4yFw.js.br +0 -0
- package/dist/client/assets/feature-hint-DHm1jVrP.js.br +0 -0
- package/dist/client/assets/first-run-checklist-Cm43AcHn.js.br +0 -0
- package/dist/client/assets/hooks-panel-BKakTifn.js.br +0 -0
- package/dist/client/assets/index-BetxB7CF.js.br +0 -0
- package/dist/client/assets/issues-panel-DgYnrPPX.js.br +0 -0
- package/dist/client/assets/lane-read-token-step-BN8LiarN.js.br +0 -0
- package/dist/client/assets/my-prs-panel-CUlwJdHv.js.br +0 -0
- package/dist/client/assets/nyan-cat-CG7v-lWK.js.br +0 -0
- package/dist/client/assets/phone-shell-B_HMSnqy.js.br +0 -0
- package/dist/client/assets/plan-face-0rlEA6Bs.js.br +0 -0
- package/dist/client/assets/plan-render-QiyW3hEs.js.br +0 -0
- package/dist/client/assets/pr-queue-columns-DKNAByri.js.br +0 -2
- package/dist/client/assets/radar-panel-EgUxZZle.js.br +0 -0
- package/dist/client/assets/repo-roots-adder-C6aj-vKy.js.br +0 -0
- package/dist/client/assets/resume-dialog-DBXSZmUa.js.br +0 -0
- package/dist/client/assets/review-queue-panel-CK0mkAv0.js.br +0 -0
- package/dist/client/assets/settings-panel-D6Kj7_ZK.js.br +0 -0
- package/dist/client/assets/shown-face-CJGpnBUn.js.br +0 -0
- package/dist/client/assets/trace-panel-BP0u_YkV.js.br +0 -0
- package/dist/client/assets/usage-panel-D-7-fie7.js.br +0 -0
- package/dist/client/assets/your-day-tip-BIDKcmnX.js.br +0 -3
package/dist/bin/glimmervoid.js
CHANGED
|
@@ -61,7 +61,7 @@ var OWNED_COMMAND_RUNNERS = {
|
|
|
61
61
|
return await runDoctor() ? 0 : 1;
|
|
62
62
|
},
|
|
63
63
|
pair: async ({ values }) => {
|
|
64
|
-
const { runPairCli } = await import("../chunks/pair-cli-
|
|
64
|
+
const { runPairCli } = await import("../chunks/pair-cli-BufdmSlv.js");
|
|
65
65
|
return runPairCli({
|
|
66
66
|
isListing: values.list === true,
|
|
67
67
|
revokeDeviceId: typeof values.revoke === "string" ? values.revoke : null,
|
|
@@ -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
|
}
|
|
@@ -170,7 +170,7 @@ async function readDeclaredCustomAgents() {
|
|
|
170
170
|
declared: [],
|
|
171
171
|
error: null
|
|
172
172
|
};
|
|
173
|
-
const { loadConfigFile } = await import("../chunks/config-store-
|
|
173
|
+
const { loadConfigFile } = await import("../chunks/config-store-CHn9TGw2.js");
|
|
174
174
|
try {
|
|
175
175
|
const loaded = loadConfigFile(decided.path, { exitOnError: false });
|
|
176
176
|
if (!loaded.config) return {
|
|
@@ -246,7 +246,7 @@ async function runDoctor() {
|
|
|
246
246
|
}
|
|
247
247
|
switchSection("Agents");
|
|
248
248
|
try {
|
|
249
|
-
const { listAgentIds, describeAgentResolvability, setCustomAgents } = await import("../chunks/adapters-
|
|
249
|
+
const { listAgentIds, describeAgentResolvability, setCustomAgents } = await import("../chunks/adapters-BU37FLqo.js");
|
|
250
250
|
const declaredCustomAgents = await readDeclaredCustomAgents();
|
|
251
251
|
if (declaredCustomAgents.error) line("config", declaredCustomAgents.error);
|
|
252
252
|
setCustomAgents(declaredCustomAgents.declared);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as describeAgentResolvability, l as listAgentIds, f as setCustomAgents } from "./adapters-
|
|
1
|
+
export { a as describeAgentResolvability, l as listAgentIds, f as setCustomAgents } from "./adapters-QYejudMO.js";
|
|
@@ -10,7 +10,7 @@ import { n as shellQuote, t as buildHookCommand } from "./hook-command-core-5G0D
|
|
|
10
10
|
import { t as buildAgentEnv } from "./spawn-env-BdKZMEme.js";
|
|
11
11
|
import { i as isSpinnerChar, n as classifyAgentTitle, r as isBrailleChar, t as grok } from "./grok-YfkRRPzE.js";
|
|
12
12
|
import { O as nextBackoffMs, c as loadedJsonValue, d as writeJsonAtomicSync, s as loadJsonStateFileSync, t as appendJsonLine } from "./json-file-AKRVPqG1.js";
|
|
13
|
-
import { S as isExperimentalBuild, o as glimmervoidHomeDir, x as compareReleaseVersions } from "./config-store-
|
|
13
|
+
import { S as isExperimentalBuild, o as glimmervoidHomeDir, x as compareReleaseVersions } from "./config-store-DVWnxI-S.js";
|
|
14
14
|
import { n as buildAgentSpawnCommand, r as resolveAgentCommand, t as kimi } from "./kimi-DuFGEMHP.js";
|
|
15
15
|
import { c as CODEX_HOME_PROFILE, f as renderCodexHookTables, n as AGENT_HOME_CONFIG_NAME, p as renderCodexHooksBlock } from "./agent-home-core-8U0YNRUx.js";
|
|
16
16
|
import { c as releaseAgentHome, i as holdPreparedAgentHome, n as generatedAgentHomePath, s as realAgentHome } from "./agent-home-DGjtaaCS.js";
|
|
@@ -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";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { s as loadConfigFile } from "./config-store-DVWnxI-S.js";
|
|
@@ -13,17 +13,17 @@ 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
|
-
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-
|
|
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";
|
|
20
20
|
import { i as resolveArgvCommandMatches } from "./kimi-DuFGEMHP.js";
|
|
21
|
-
import { $ as grokHomes, A as decideUploadType, At as generateToken, B as containmentRefusalReason, Bt as readStoredHooks, C as parseRegistryLatest, Ct as shouldReplace, D as openContainedFile, Dt as HOOK_EVENTS, E as shortSha$1, Et as claudeCode, F as planUploadRetention, Ft as agentHookGroupOf, G as codexFallbackRoots, Gt as sweepOrphanedHostScratch, H as planContiguousRead, Ht as upsertHook, I as MAX_TRANSCRIPT_READ_BYTES, It as appendUserHooks, J as codexSessionIdFromPath, Jt as recordSweptPath, K as codexHomes, Kt as appendRemovalRecord, L as TRACE_TAIL_SCAN_BYTES, Lt as hooksForProject, M as framePathPaste, Mt as writeSessionSettings, N as imageMimeForUploadFilename, Nt as HOOK_EVENT_CATALOG, O as MAX_UPLOAD_BYTES, Ot as PLAN_HOLD_RELEASE_MS, P as isSafePathSegment, Pt as ID_RE, Q as expandTilde, R as committedOffsetFromTraceTailOrNull, Rt as normalizeHook, S as parseRegistryDeprecation, St as parseUsageLine, T as pickNewestPublished, Tt as vendorUsageEntry, U as resumeOffsetFrom, Ut as HOOK_TOOLS, V as isOversizedPartialLine, Vt as removeHook, W as withCommittedOffset, Wt as makeHostScratchDirectory, X as decideFileRead, Y as continuationDelayMs, Yt as removalsJournalPath, Z as dedupeCodexFiles, _ as decideInstallFlavor, _t as foldReplacementIntoGenerationRollup, a as describeAgentResolvability, at as scopedClaudeRoots, b as normalizeSha, bt as mergeGenerationRollups, c as isKnownAgentId, ct as shouldPersistWarehouse, d as resolveAdapter, dt as parseKimiUsageLine, et as isUsageFile, f as setCustomAgents, ft as addEntryToTotals, g as NODE_PTY_INSTALL_SCRIPT_FLAG, gt as foldEntryIntoGenerationRollup, h as requestCodexAppServer, ht as expandAdvisorIterations, i as customAgentFingerprint, it as resolveProjectsDirs, j as exceedsUploadCap, jt as sweepOrphans, k as buildUploadFilename, kt as buildHookSettings, l as listAgentIds, lt as splitLines, m as readHostCodexVersion, mt as emptyTotals, n as cachedAgentResolvability, nt as passOutcome, o as getAdapter, ot as sessionsRootCandidates, p as codex, pt as dedupKeys, q as codexRootCandidates, qt as appendRemovalRecordSync, r as commandFor, rt as projectDirCandidates, s as hookProfileOf, st as shouldEvaluateDespiteIoFailures, t as DEFAULT_AGENT_ID$1, tt as kimiHomes, u as resetCommandCache, ut as kimiDedupIdentity, v as decideUpdateStatus, vt as identityFromRelPath, w as parseResolvedSha, wt as totalTokensOf$1, x as normalizeUpdateChannel, xt as parseJsonLine, y as isCheckFresh, yt as isWithinGenerationRecencyWindow, z as completeLineBytes, zt as rawStoredHooks } from "./adapters-
|
|
21
|
+
import { $ as grokHomes, A as decideUploadType, At as generateToken, B as containmentRefusalReason, Bt as readStoredHooks, C as parseRegistryLatest, Ct as shouldReplace, D as openContainedFile, Dt as HOOK_EVENTS, E as shortSha$1, Et as claudeCode, F as planUploadRetention, Ft as agentHookGroupOf, G as codexFallbackRoots, Gt as sweepOrphanedHostScratch, H as planContiguousRead, Ht as upsertHook, I as MAX_TRANSCRIPT_READ_BYTES, It as appendUserHooks, J as codexSessionIdFromPath, Jt as recordSweptPath, K as codexHomes, Kt as appendRemovalRecord, L as TRACE_TAIL_SCAN_BYTES, Lt as hooksForProject, M as framePathPaste, Mt as writeSessionSettings, N as imageMimeForUploadFilename, Nt as HOOK_EVENT_CATALOG, O as MAX_UPLOAD_BYTES, Ot as PLAN_HOLD_RELEASE_MS, P as isSafePathSegment, Pt as ID_RE, Q as expandTilde, R as committedOffsetFromTraceTailOrNull, Rt as normalizeHook, S as parseRegistryDeprecation, St as parseUsageLine, T as pickNewestPublished, Tt as vendorUsageEntry, U as resumeOffsetFrom, Ut as HOOK_TOOLS, V as isOversizedPartialLine, Vt as removeHook, W as withCommittedOffset, Wt as makeHostScratchDirectory, X as decideFileRead, Y as continuationDelayMs, Yt as removalsJournalPath, Z as dedupeCodexFiles, _ as decideInstallFlavor, _t as foldReplacementIntoGenerationRollup, a as describeAgentResolvability, at as scopedClaudeRoots, b as normalizeSha, bt as mergeGenerationRollups, c as isKnownAgentId, ct as shouldPersistWarehouse, d as resolveAdapter, dt as parseKimiUsageLine, et as isUsageFile, f as setCustomAgents, ft as addEntryToTotals, g as NODE_PTY_INSTALL_SCRIPT_FLAG, gt as foldEntryIntoGenerationRollup, h as requestCodexAppServer, ht as expandAdvisorIterations, i as customAgentFingerprint, it as resolveProjectsDirs, j as exceedsUploadCap, jt as sweepOrphans, k as buildUploadFilename, kt as buildHookSettings, l as listAgentIds, lt as splitLines, m as readHostCodexVersion, mt as emptyTotals, n as cachedAgentResolvability, nt as passOutcome, o as getAdapter, ot as sessionsRootCandidates, p as codex, pt as dedupKeys, q as codexRootCandidates, qt as appendRemovalRecordSync, r as commandFor, rt as projectDirCandidates, s as hookProfileOf, st as shouldEvaluateDespiteIoFailures, t as DEFAULT_AGENT_ID$1, tt as kimiHomes, u as resetCommandCache, ut as kimiDedupIdentity, v as decideUpdateStatus, vt as identityFromRelPath, w as parseResolvedSha, wt as totalTokensOf$1, x as normalizeUpdateChannel, xt as parseJsonLine, y as isCheckFresh, yt as isWithinGenerationRecencyWindow, z as completeLineBytes, zt as rawStoredHooks } from "./adapters-QYejudMO.js";
|
|
22
22
|
import { c as CODEX_HOME_PROFILE, l as KIMI_HOME_PROFILE } from "./agent-home-core-8U0YNRUx.js";
|
|
23
23
|
import { d as releaseSessionLock, f as sessionIdOfLockFile, l as releaseUnheldAgentHomeSecrets, n as generatedAgentHomePath, p as trashSessionTempFolderOnceUnheld, s as realAgentHome, u as createHeldSessionTempFolder } from "./agent-home-DGjtaaCS.js";
|
|
24
24
|
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";
|
|
25
|
-
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-
|
|
26
|
-
import { n as configFileViewOf, u as readSettingsForAgent } from "./settings-readout-core-
|
|
25
|
+
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-Bgd2cJp5.js";
|
|
26
|
+
import { n as configFileViewOf, u as readSettingsForAgent } from "./settings-readout-core-BpoxjFmz.js";
|
|
27
27
|
import { createRequire } from "node:module";
|
|
28
28
|
import fs, { readFileSync } from "node:fs";
|
|
29
29
|
import path, { join, resolve } from "node:path";
|
|
@@ -32944,7 +32944,7 @@ function createRadarWiring({ config, investigationSessions, closeSessionDataClie
|
|
|
32944
32944
|
var COMMUNITY_LANE_ID = "community";
|
|
32945
32945
|
var COMMUNITY_STATE_FILENAME = "community-state.json";
|
|
32946
32946
|
var DEFAULT_PROJECT_ID = 2;
|
|
32947
|
-
var DEFAULT_INTERVAL_MINUTES =
|
|
32947
|
+
var DEFAULT_INTERVAL_MINUTES = 30;
|
|
32948
32948
|
var SOURCE_ROW_LIMIT = 50;
|
|
32949
32949
|
var ENTRY_RETENTION_MS = 12096e5;
|
|
32950
32950
|
var FORUM_QUESTION_URL = "https://posthog.com/forum/p/";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as errorMessage } from "./text-DoirglWV.js";
|
|
2
|
-
import { c 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 { c as resolveConfigPath } from "./config-store-DVWnxI-S.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-Bgd2cJp5.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
//#region server/text-format.ts
|
|
6
6
|
function trimIso(iso) {
|
|
@@ -2,7 +2,7 @@ import { n as errorLabel, r as errorMessage } from "./text-DoirglWV.js";
|
|
|
2
2
|
import { u as equalsIgnoringCaseOnWindows } from "./runtime-paths-CYwF658V.js";
|
|
3
3
|
import { n as isRecord } from "./coerce-oz_Z_6E7.js";
|
|
4
4
|
import { a as jsonStateLoadError, d as writeJsonAtomicSync, l as sleepSync, s as loadJsonStateFileSync, u as writeJsonAtomic } from "./json-file-AKRVPqG1.js";
|
|
5
|
-
import { b as unrefTimer, bt as canonicalizePath, o as glimmervoidHomeDir, y as DEFAULT_TIMER_FNS } from "./config-store-
|
|
5
|
+
import { b as unrefTimer, bt as canonicalizePath, o as glimmervoidHomeDir, y as DEFAULT_TIMER_FNS } from "./config-store-DVWnxI-S.js";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import crypto from "node:crypto";
|
|
@@ -4,8 +4,8 @@ import { m as AgentSettingsReply } from "./session-D-C2x8yg.js";
|
|
|
4
4
|
import { r as BrowserConfig } from "./config-Cdx4cMno.js";
|
|
5
5
|
import { n as isRecord } from "./coerce-oz_Z_6E7.js";
|
|
6
6
|
import { t as renderTable } from "./ascii-figure-core-pDAwtlKO.js";
|
|
7
|
-
import { A as deleteValueAtPath, B as SETTINGS_REGISTRY, C as isSettingAvailable, F as setValueAtPath, N as parsePosthogProjectSelection, P as scoreSettingsSearch, R as valueAtPath, _t as readEnvSecrets, gt as ENV_SECRET_BINDINGS, k as cloneValue, l as saveConfigFileOnce, s as loadConfigFile, t as IS_EXPERIMENTAL_BUILD, u as validateConfig, yt as withEnvSecrets } 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 deleteValueAtPath, B as SETTINGS_REGISTRY, C as isSettingAvailable, F as setValueAtPath, N as parsePosthogProjectSelection, P as scoreSettingsSearch, R as valueAtPath, _t as readEnvSecrets, gt as ENV_SECRET_BINDINGS, k as cloneValue, l as saveConfigFileOnce, s as loadConfigFile, t as IS_EXPERIMENTAL_BUILD, u as validateConfig, yt as withEnvSecrets } from "./config-store-DVWnxI-S.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-BpoxjFmz.js";
|
|
9
9
|
import fs from "node:fs";
|
|
10
10
|
import os from "node:os";
|
|
11
11
|
//#region server/settings-cli.ts
|
|
@@ -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)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h as AgentSettingsRequest } from "./session-D-C2x8yg.js";
|
|
2
2
|
import { t as renderTable } from "./ascii-figure-core-pDAwtlKO.js";
|
|
3
|
-
import { B as SETTINGS_REGISTRY, C as isSettingAvailable, I as settingsGroupOf, L as settingsOf, M as hasScaledUnit, O as SETTINGS_INDEX, R as valueAtPath, _t as readEnvSecrets, j as displayText, k as cloneValue, z as FILE_ONLY_GROUPS } from "./config-store-
|
|
3
|
+
import { B as SETTINGS_REGISTRY, C as isSettingAvailable, I as settingsGroupOf, L as settingsOf, M as hasScaledUnit, O as SETTINGS_INDEX, R as valueAtPath, _t as readEnvSecrets, j as displayText, k as cloneValue, z as FILE_ONLY_GROUPS } from "./config-store-DVWnxI-S.js";
|
|
4
4
|
//#region server/core/settings-readout-core.ts
|
|
5
5
|
var VALUE_COLUMN_WIDTH = 40;
|
|
6
6
|
var SECTION_BY_SETTING_ID = new Map([...SETTINGS_REGISTRY.sections.flatMap((section) => section.settings.map((setting) => [setting.id, {
|
|
@@ -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--tEVxxT-.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
|