glimmervoid 0.46.2-next.196 → 0.46.2-next.199
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 +3 -3
- package/dist/chunks/config-store-BJCTCC4O.js +1 -0
- package/dist/chunks/{config-store-Bpg_hNYv.js → config-store-Lwe65ZGU.js} +29 -7
- package/dist/chunks/{main-BkzH4p-J.js → main-WU6gBKWf.js} +150 -102
- package/dist/chunks/{pair-cli-ByavKVrf.js → pair-cli-FWzCPd9t.js} +2 -2
- package/dist/chunks/{remote-config-Brv_0UkT.js → remote-config-CME_GcIP.js} +1 -1
- package/dist/chunks/{settings-cli-wbSUBSeT.js → settings-cli-BlRN3Byv.js} +2 -2
- package/dist/chunks/{settings-readout-core-Cyr0XLTL.js → settings-readout-core-DS-Em16W.js} +1 -1
- package/dist/client/assets/{alert-sound-BMJ32avL.js → alert-sound-BAbcBnpG.js} +1 -1
- package/dist/client/assets/alert-sound-BAbcBnpG.js.br +0 -0
- package/dist/client/assets/{benchmark-panel-DuwChZkd.js → benchmark-panel-D0QycALx.js} +1 -1
- package/dist/client/assets/benchmark-panel-D0QycALx.js.br +0 -0
- package/dist/client/assets/{celebration-player-BQ3psRIL.js → celebration-player-xifIbOl0.js} +1 -1
- package/dist/client/assets/celebration-player-xifIbOl0.js.br +0 -0
- package/dist/client/assets/{community-panel-CBUYjzwo.js → community-panel-kWdeX-lL.js} +1 -1
- package/dist/client/assets/community-panel-kWdeX-lL.js.br +0 -0
- package/dist/client/assets/{dialogs-Cochotrf.js → dialogs-BuvazbkS.js} +1 -1
- package/dist/client/assets/dialogs-BuvazbkS.js.br +0 -0
- package/dist/client/assets/{doc-editor-ui-BL8T0J6b.js → doc-editor-ui-B2hYuDCa.js} +1 -1
- package/dist/client/assets/doc-editor-ui-B2hYuDCa.js.br +0 -0
- package/dist/client/assets/{feature-hint-DMKskeoV.js → feature-hint-YRIFP7Iu.js} +1 -1
- package/dist/client/assets/feature-hint-YRIFP7Iu.js.br +0 -0
- package/dist/client/assets/{first-run-checklist-BDLuPDpP.js → first-run-checklist-BIH0rdp9.js} +1 -1
- package/dist/client/assets/first-run-checklist-BIH0rdp9.js.br +0 -0
- package/dist/client/assets/{hooks-panel-qaBBVoiG.js → hooks-panel-Dy1grl3Y.js} +1 -1
- package/dist/client/assets/hooks-panel-Dy1grl3Y.js.br +0 -0
- package/dist/client/assets/{index-CQ2WEnEd.js → index-CFlFmjIR.js} +5 -5
- package/dist/client/assets/index-CFlFmjIR.js.br +0 -0
- package/dist/client/assets/{issues-panel-rZ2itUrB.js → issues-panel-DX-KWt2q.js} +1 -1
- package/dist/client/assets/issues-panel-DX-KWt2q.js.br +0 -0
- package/dist/client/assets/{my-prs-panel-BvIoi8Eg.js → my-prs-panel-BUAyu0o7.js} +1 -1
- package/dist/client/assets/my-prs-panel-BUAyu0o7.js.br +0 -0
- package/dist/client/assets/{nyan-cat-ChruuGpK.js → nyan-cat-yhotDg-R.js} +1 -1
- package/dist/client/assets/nyan-cat-yhotDg-R.js.br +0 -0
- package/dist/client/assets/{phone-shell-D8NZ_6Bw.js → phone-shell-OiqzU_FB.js} +1 -1
- package/dist/client/assets/phone-shell-OiqzU_FB.js.br +0 -0
- package/dist/client/assets/{plan-face-DkTs_-X9.js → plan-face-DguhnNWD.js} +1 -1
- package/dist/client/assets/plan-face-DguhnNWD.js.br +0 -0
- package/dist/client/assets/{plan-render-TF9Hl__r.js → plan-render-C49wyqPs.js} +1 -1
- package/dist/client/assets/plan-render-C49wyqPs.js.br +0 -0
- package/dist/client/assets/{pr-queue-columns-CQtcEkbg.js → pr-queue-columns-CEVVLE2y.js} +1 -1
- package/dist/client/assets/pr-queue-columns-CEVVLE2y.js.br +0 -0
- package/dist/client/assets/{radar-panel-Bw_uDWC9.js → radar-panel-ARdbqdKe.js} +1 -1
- package/dist/client/assets/radar-panel-ARdbqdKe.js.br +0 -0
- package/dist/client/assets/{repo-roots-adder-CVP7rBHB.js → repo-roots-adder-DG2prHSB.js} +1 -1
- package/dist/client/assets/repo-roots-adder-DG2prHSB.js.br +0 -0
- package/dist/client/assets/{resume-dialog-C6_q1zD4.js → resume-dialog-CzcBE9a6.js} +1 -1
- package/dist/client/assets/resume-dialog-CzcBE9a6.js.br +0 -0
- package/dist/client/assets/{review-queue-panel-CvR_gZ9O.js → review-queue-panel-mLKkUyE9.js} +1 -1
- package/dist/client/assets/review-queue-panel-mLKkUyE9.js.br +0 -0
- package/dist/client/assets/{settings-panel-B50cGQ7H.js → settings-panel-7fG3IRCY.js} +2 -2
- package/dist/client/assets/settings-panel-7fG3IRCY.js.br +0 -0
- package/dist/client/assets/{shown-lightbox-BK7r8EDy.js → shown-lightbox-DloanJcJ.js} +1 -1
- package/dist/client/assets/shown-lightbox-DloanJcJ.js.br +0 -0
- package/dist/client/assets/{team-review-panel-95hFsCxY.js → team-review-panel-CmUzvE9I.js} +1 -1
- package/dist/client/assets/team-review-panel-CmUzvE9I.js.br +0 -0
- package/dist/client/assets/{trace-panel-BpXuEzPg.js → trace-panel-B1LPsBfX.js} +1 -1
- package/dist/client/assets/trace-panel-B1LPsBfX.js.br +0 -0
- package/dist/client/assets/{usage-panel-DJgzE9RO.js → usage-panel-cYwjLT6h.js} +1 -1
- package/dist/client/assets/usage-panel-cYwjLT6h.js.br +0 -0
- package/dist/client/assets/{visions-panel-CHmDGBve.js → visions-panel-6bhO_4A4.js} +1 -1
- package/dist/client/assets/visions-panel-6bhO_4A4.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-CSxyf-qk.js +0 -1
- package/dist/client/assets/alert-sound-BMJ32avL.js.br +0 -0
- package/dist/client/assets/benchmark-panel-DuwChZkd.js.br +0 -0
- package/dist/client/assets/celebration-player-BQ3psRIL.js.br +0 -0
- package/dist/client/assets/community-panel-CBUYjzwo.js.br +0 -0
- package/dist/client/assets/dialogs-Cochotrf.js.br +0 -0
- package/dist/client/assets/doc-editor-ui-BL8T0J6b.js.br +0 -0
- package/dist/client/assets/feature-hint-DMKskeoV.js.br +0 -0
- package/dist/client/assets/first-run-checklist-BDLuPDpP.js.br +0 -0
- package/dist/client/assets/hooks-panel-qaBBVoiG.js.br +0 -0
- package/dist/client/assets/index-CQ2WEnEd.js.br +0 -0
- package/dist/client/assets/issues-panel-rZ2itUrB.js.br +0 -0
- package/dist/client/assets/my-prs-panel-BvIoi8Eg.js.br +0 -0
- package/dist/client/assets/nyan-cat-ChruuGpK.js.br +0 -0
- package/dist/client/assets/phone-shell-D8NZ_6Bw.js.br +0 -0
- package/dist/client/assets/plan-face-DkTs_-X9.js.br +0 -0
- package/dist/client/assets/plan-render-TF9Hl__r.js.br +0 -0
- package/dist/client/assets/pr-queue-columns-CQtcEkbg.js.br +0 -0
- package/dist/client/assets/radar-panel-Bw_uDWC9.js.br +0 -0
- package/dist/client/assets/repo-roots-adder-CVP7rBHB.js.br +0 -0
- package/dist/client/assets/resume-dialog-C6_q1zD4.js.br +0 -0
- package/dist/client/assets/review-queue-panel-CvR_gZ9O.js.br +0 -0
- package/dist/client/assets/settings-panel-B50cGQ7H.js.br +0 -0
- package/dist/client/assets/shown-lightbox-BK7r8EDy.js.br +0 -0
- package/dist/client/assets/team-review-panel-95hFsCxY.js.br +0 -0
- package/dist/client/assets/trace-panel-BpXuEzPg.js.br +0 -0
- package/dist/client/assets/usage-panel-DJgzE9RO.js.br +0 -0
- package/dist/client/assets/visions-panel-CHmDGBve.js.br +0 -0
package/dist/bin/glimmervoid.js
CHANGED
|
@@ -65,7 +65,7 @@ var OWN_SUBCOMMAND_RUNNERS = [
|
|
|
65
65
|
return 0;
|
|
66
66
|
}],
|
|
67
67
|
["pair", async (subcommandArgs) => {
|
|
68
|
-
const { runPairCli } = await import("../chunks/pair-cli-
|
|
68
|
+
const { runPairCli } = await import("../chunks/pair-cli-FWzCPd9t.js");
|
|
69
69
|
return runPairCli(subcommandArgs);
|
|
70
70
|
}],
|
|
71
71
|
["agent", async (subcommandArgs) => {
|
|
@@ -73,7 +73,7 @@ var OWN_SUBCOMMAND_RUNNERS = [
|
|
|
73
73
|
return runAgentSetupCli(subcommandArgs);
|
|
74
74
|
}],
|
|
75
75
|
["settings", async (subcommandArgs) => {
|
|
76
|
-
const { runSettingsCli } = await import("../chunks/settings-cli-
|
|
76
|
+
const { runSettingsCli } = await import("../chunks/settings-cli-BlRN3Byv.js");
|
|
77
77
|
return runSettingsCli(subcommandArgs);
|
|
78
78
|
}],
|
|
79
79
|
["visions", async (subcommandArgs) => {
|
|
@@ -158,7 +158,7 @@ async function readDeclaredCustomAgents() {
|
|
|
158
158
|
declared: [],
|
|
159
159
|
error: null
|
|
160
160
|
};
|
|
161
|
-
const { loadConfigFile } = await import("../chunks/config-store-
|
|
161
|
+
const { loadConfigFile } = await import("../chunks/config-store-BJCTCC4O.js");
|
|
162
162
|
try {
|
|
163
163
|
const loaded = loadConfigFile(decided.path, { exitOnError: false });
|
|
164
164
|
if (!loaded.config) return {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { c as loadConfigFile } from "./config-store-Lwe65ZGU.js";
|
|
@@ -1388,7 +1388,7 @@ var SECTIONS = Object.freeze([
|
|
|
1388
1388
|
{
|
|
1389
1389
|
id: "lanes-visions",
|
|
1390
1390
|
level: "lanes",
|
|
1391
|
-
title: "Visions",
|
|
1391
|
+
title: "Visions (experimental)",
|
|
1392
1392
|
description: "Editor-buffer findings, bounded model comments, and the machine-context ingest behind them.",
|
|
1393
1393
|
legacyIds: [
|
|
1394
1394
|
"lanes",
|
|
@@ -1404,6 +1404,7 @@ var SECTIONS = Object.freeze([
|
|
|
1404
1404
|
description: "Set up supported editors detected on this machine, then show their buffer findings in the Visions view.",
|
|
1405
1405
|
control: "toggle",
|
|
1406
1406
|
keywords: [
|
|
1407
|
+
"experimental",
|
|
1407
1408
|
"editor",
|
|
1408
1409
|
"findings",
|
|
1409
1410
|
"lsp"
|
|
@@ -1417,7 +1418,11 @@ var SECTIONS = Object.freeze([
|
|
|
1417
1418
|
title: "Enable model comments",
|
|
1418
1419
|
description: "Start bounded review sessions for local editor buffers.",
|
|
1419
1420
|
control: "toggle",
|
|
1420
|
-
keywords: [
|
|
1421
|
+
keywords: [
|
|
1422
|
+
"experimental",
|
|
1423
|
+
"review",
|
|
1424
|
+
"dispatch"
|
|
1425
|
+
],
|
|
1421
1426
|
defaultValue: false,
|
|
1422
1427
|
...MACHINE_NOW
|
|
1423
1428
|
},
|
|
@@ -1429,7 +1434,11 @@ var SECTIONS = Object.freeze([
|
|
|
1429
1434
|
control: "number",
|
|
1430
1435
|
range: POSITIVE_NUMBER_RANGE,
|
|
1431
1436
|
unit: REVIEWS_PER_HOUR,
|
|
1432
|
-
keywords: [
|
|
1437
|
+
keywords: [
|
|
1438
|
+
"experimental",
|
|
1439
|
+
"rate limit",
|
|
1440
|
+
"reviews"
|
|
1441
|
+
],
|
|
1433
1442
|
defaultValue: 6,
|
|
1434
1443
|
...MACHINE_NOW
|
|
1435
1444
|
},
|
|
@@ -1439,7 +1448,11 @@ var SECTIONS = Object.freeze([
|
|
|
1439
1448
|
title: "Model override",
|
|
1440
1449
|
description: "Leave blank to use the opus model alias.",
|
|
1441
1450
|
control: "text",
|
|
1442
|
-
keywords: [
|
|
1451
|
+
keywords: [
|
|
1452
|
+
"experimental",
|
|
1453
|
+
"claude",
|
|
1454
|
+
"override"
|
|
1455
|
+
],
|
|
1443
1456
|
defaultValue: "",
|
|
1444
1457
|
...MACHINE_NOW
|
|
1445
1458
|
},
|
|
@@ -1449,7 +1462,11 @@ var SECTIONS = Object.freeze([
|
|
|
1449
1462
|
title: "Projects",
|
|
1450
1463
|
description: "Clear every selection, including unavailable projects, to accept buffers from every configured project.",
|
|
1451
1464
|
control: "projects",
|
|
1452
|
-
keywords: [
|
|
1465
|
+
keywords: [
|
|
1466
|
+
"experimental",
|
|
1467
|
+
"repositories",
|
|
1468
|
+
"filter"
|
|
1469
|
+
],
|
|
1453
1470
|
defaultValue: [],
|
|
1454
1471
|
...MACHINE_NOW
|
|
1455
1472
|
},
|
|
@@ -1459,7 +1476,11 @@ var SECTIONS = Object.freeze([
|
|
|
1459
1476
|
title: "Apply tier 1 fixes",
|
|
1460
1477
|
description: "Allow Visions to edit eligible open Markdown buffers, including inactive buffers, without asking.",
|
|
1461
1478
|
control: "toggle",
|
|
1462
|
-
keywords: [
|
|
1479
|
+
keywords: [
|
|
1480
|
+
"experimental",
|
|
1481
|
+
"automatic",
|
|
1482
|
+
"edits"
|
|
1483
|
+
],
|
|
1463
1484
|
danger: true,
|
|
1464
1485
|
warning: "Enabling this control lets Visions edit eligible buffers without a carbon unit present.",
|
|
1465
1486
|
defaultValue: false,
|
|
@@ -1472,6 +1493,7 @@ var SECTIONS = Object.freeze([
|
|
|
1472
1493
|
description: "Enable the local activity feed behind Visions. Turning Visions on enables ingest unless ingest.enabled is explicitly false.",
|
|
1473
1494
|
control: "toggle",
|
|
1474
1495
|
keywords: [
|
|
1496
|
+
"experimental",
|
|
1475
1497
|
"events",
|
|
1476
1498
|
"activity",
|
|
1477
1499
|
"ingest"
|
|
@@ -4195,4 +4217,4 @@ function createConfigStore({ settingsDefaults, readTelemetryInstallId, isExperim
|
|
|
4195
4217
|
};
|
|
4196
4218
|
}
|
|
4197
4219
|
//#endregion
|
|
4198
|
-
export {
|
|
4220
|
+
export { DEFAULT_BRANCH_GC_PREFIXES as $, isExperimentalSetting as A, claudeAccountUuidOf as B, scoreSettingsSearch as C, valueAtPath as D, settingsOf as E, buildAiGenerationEvents as F, exceptionFingerprint as G, decideIsDevInstall as H, buildBrowserExceptionProperties as I, resolveProjectToken as J, nodeMajorVersion as K, buildExceptionProperties as L, TELEMETRY_BATCH_URL as M, TELEMETRY_FLAGS_URL as N, FILE_ONLY_GROUPS as O, adapterBucket as P, withEnvSecrets as Q, buildPersonProperties as R, parsePosthogProjectSelection as S, settingsGroupOf as T, decideRemoteTelemetryState as U, codexUserIdOf as V, decideTelemetryConsent as W, readEnvSecrets as X, ENV_SECRET_BINDINGS as Y, stableConfigKey as Z, SETTINGS_INDEX as _, ensureProjectIds as a, worktreeIntegrationTips as at, displayText as b, loadConfigFile as c, isSameDirectoryPath as ct, validateConfig as d, matchedPrefix as et, isSettingAvailable as f, validateSettingsBlock as g, settingsBlockSpecFor as h, createConfigStore as i, usablePrefixes as it, FIRST_RUN_NOTICE as j, SETTINGS_REGISTRY as k, resolveConfigPath as l, mergeSettingsBlock as m, DEFAULT_CONFIG as n, planWorktreeGc as nt, generateProjectId as o, canonicalizePath as ot, SECRET_PRESENCE_SUFFIX as p, parsePosthogReleaseId as q, IS_EXPERIMENTAL_BUILD as r, sessionIdFromBranch as rt, glimmervoidHomeDir as s, comparableDirectoryPath as st, ABORT_CONFIG_SAVE as t, planBranchGc as tt, saveConfigFileOnce as u, cloneValue as v, setValueAtPath as w, hasScaledUnit as x, deleteValueAtPath as y, classifySessionExit as z };
|
|
@@ -22,14 +22,14 @@ 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
|
|
25
|
+
import { $ as DEFAULT_BRANCH_GC_PREFIXES, A as isExperimentalSetting, B as claudeAccountUuidOf, F as buildAiGenerationEvents, G as exceptionFingerprint, H as decideIsDevInstall, I as buildBrowserExceptionProperties, J as resolveProjectToken, K as nodeMajorVersion, L as buildExceptionProperties, M as TELEMETRY_BATCH_URL, N as TELEMETRY_FLAGS_URL, P as adapterBucket, R as buildPersonProperties, U as decideRemoteTelemetryState, V as codexUserIdOf, W as decideTelemetryConsent, Z as stableConfigKey, _ as SETTINGS_INDEX, a as ensureProjectIds, at as worktreeIntegrationTips, ct as isSameDirectoryPath, et as matchedPrefix, g as validateSettingsBlock, h as settingsBlockSpecFor, i as createConfigStore, it as usablePrefixes, j as FIRST_RUN_NOTICE, m as mergeSettingsBlock, n as DEFAULT_CONFIG, nt as planWorktreeGc, o as generateProjectId, ot as canonicalizePath, q as parsePosthogReleaseId, rt as sessionIdFromBranch, s as glimmervoidHomeDir$1, st as comparableDirectoryPath, t as ABORT_CONFIG_SAVE, tt as planBranchGc, z as classifySessionExit } from "./config-store-Lwe65ZGU.js";
|
|
26
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-DTKkRgUc.js";
|
|
27
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, ct as claudeCode, 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 HOOK_TOOLS, 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-CTLNjp5s.js";
|
|
28
28
|
import { c as releaseUnheldKimiHomeSecrets, d as sessionIdOfLockFile, f as trashSessionTempFolderOnceUnheld, i as kimiHomeLinkRefusal, l as createHeldSessionTempFolder, n as generatedKimiHomePath, o as realKimiHome, u as releaseSessionLock } from "./kimi-home-WZ9E4f-u.js";
|
|
29
29
|
import { t as kimi } from "./kimi-DYcsNY69.js";
|
|
30
30
|
import { a as formatSshPublicKey, c as orderAgentSockets, i as commitSigningShimText, l as parseSshPublicKey, n as NO_AGENT_HOLDS_KEY, o as isForwardedAgentDirName, r as agentListsKey, s as isSignableGitObject, t as COMMIT_SIGNING_SHIM_NAME } from "./ssh-signing-core-CRhVVWNW.js";
|
|
31
|
-
import { a as configSiblingPath, c as defaultPairingsPath, d as decideDeviceAuth, f as deviceNameFromUserAgent, l as defaultSeenPath, n as normalizeRemoteConfig, o as createPairingsStore, p as hashSecret, r as validateRemoteConfig, s as createSeenStore, t as decideBindHost, u as DEFAULT_DEVICE_MAX_AGE_MS } from "./remote-config-
|
|
32
|
-
import { n as configFileViewOf, u as readSettingsForAgent } from "./settings-readout-core-
|
|
31
|
+
import { a as configSiblingPath, c as defaultPairingsPath, d as decideDeviceAuth, f as deviceNameFromUserAgent, l as defaultSeenPath, n as normalizeRemoteConfig, o as createPairingsStore, p as hashSecret, r as validateRemoteConfig, s as createSeenStore, t as decideBindHost, u as DEFAULT_DEVICE_MAX_AGE_MS } from "./remote-config-CME_GcIP.js";
|
|
32
|
+
import { n as configFileViewOf, u as readSettingsForAgent } from "./settings-readout-core-DS-Em16W.js";
|
|
33
33
|
import { _ as escapeMarkup, g as createLaneLog, n as createVisionsSetup } from "./visions-setup-VMMyqOpl.js";
|
|
34
34
|
import { createRequire } from "node:module";
|
|
35
35
|
import fs, { readFileSync, readlinkSync } from "node:fs";
|
|
@@ -39165,6 +39165,8 @@ var DISCORD_SNOWFLAKE_RE = /^\d{1,30}$/;
|
|
|
39165
39165
|
var DISCORD_CHANNEL_URL = "https://discord.com/channels/";
|
|
39166
39166
|
var DISCORD_AUTHOR = "Discord member";
|
|
39167
39167
|
var DISCORD_TITLE_CHARS = 120;
|
|
39168
|
+
var NOTIFICATION_TITLE_CHARS = 120;
|
|
39169
|
+
var NOTIFICATION_CATEGORY = "community";
|
|
39168
39170
|
var MAX_DISCORD_CHANNELS = 50;
|
|
39169
39171
|
var JUDGE_PROMPT_FILENAME = "judge-prompt.txt";
|
|
39170
39172
|
var JUDGE_RESULT_FILENAME = "judge-result.json";
|
|
@@ -39198,6 +39200,13 @@ function readPosthogConnection(config) {
|
|
|
39198
39200
|
apiKey
|
|
39199
39201
|
};
|
|
39200
39202
|
}
|
|
39203
|
+
function readTelegramTarget(config) {
|
|
39204
|
+
const block = recordOf(config.telegram);
|
|
39205
|
+
return {
|
|
39206
|
+
botToken: typeof block.botToken === "string" ? block.botToken : "",
|
|
39207
|
+
chatId: typeof block.chatId === "string" ? block.chatId : ""
|
|
39208
|
+
};
|
|
39209
|
+
}
|
|
39201
39210
|
function communityGate(config) {
|
|
39202
39211
|
if (!readCommunitySettings(config).enabled) return { start: false };
|
|
39203
39212
|
if (!readPosthogConnection(config)) return {
|
|
@@ -39402,6 +39411,13 @@ function parseJudgeResult(raw, candidateKeys) {
|
|
|
39402
39411
|
const candidates = new Set(candidateKeys);
|
|
39403
39412
|
return new Set(questions.filter((key) => typeof key === "string" && candidates.has(key)));
|
|
39404
39413
|
}
|
|
39414
|
+
function shouldNotifyDraft(finished) {
|
|
39415
|
+
return finished.status === "ready" && finished.verdict === "HIGH" && (finished.draft?.body.trim() ?? "") !== "";
|
|
39416
|
+
}
|
|
39417
|
+
function draftNotificationText(entry) {
|
|
39418
|
+
const title = entry.item.title.trim() || "Untitled question";
|
|
39419
|
+
return `High confidence community draft ready: ${title.length > NOTIFICATION_TITLE_CHARS ? `${title.slice(0, 117)}...` : title}`;
|
|
39420
|
+
}
|
|
39405
39421
|
function shouldPruneEntry(entry, nowMs, retentionMs = ENTRY_RETENTION_MS) {
|
|
39406
39422
|
if (entry.status === "queued" || entry.status === "running") return false;
|
|
39407
39423
|
const lastTouched = Date.parse(entry.finishedAt ?? entry.seenAt);
|
|
@@ -39649,7 +39665,7 @@ function parseCommunityState(raw, warn) {
|
|
|
39649
39665
|
}
|
|
39650
39666
|
//#endregion
|
|
39651
39667
|
//#region server/community/community-poller.ts
|
|
39652
|
-
function createCommunityPoller({ intervalMinutes, queryForum, discord = null, readState, writeState, runItem, maxConcurrentRuns = 1, onTickComplete = () => {}, firstTickDelayMs, now = Date.now, log = console }) {
|
|
39668
|
+
function createCommunityPoller({ intervalMinutes, queryForum, discord = null, readState, writeState, runItem, maxConcurrentRuns = 1, onTickComplete = () => {}, onDraftReady = () => {}, firstTickDelayMs, now = Date.now, log = console }) {
|
|
39653
39669
|
let state = emptyCommunityState();
|
|
39654
39670
|
const runAborts = /* @__PURE__ */ new Map();
|
|
39655
39671
|
const loop = createTickLoop({
|
|
@@ -39722,6 +39738,7 @@ function createCommunityPoller({ intervalMinutes, queryForum, discord = null, re
|
|
|
39722
39738
|
const finished = entryFromRun(entry, run, new Date(now()).toISOString());
|
|
39723
39739
|
if (finished.warning) log.warn(`[${COMMUNITY_LANE_ID}] ${finished.warning}`);
|
|
39724
39740
|
replaceEntry(finished.entry);
|
|
39741
|
+
if (shouldNotifyDraft(finished.entry)) onDraftReady(finished.entry);
|
|
39725
39742
|
dispatchRuns();
|
|
39726
39743
|
await loop.persist();
|
|
39727
39744
|
publishStatus(null);
|
|
@@ -39838,6 +39855,98 @@ function createCommunityJudge(spawn, shutdownSignal) {
|
|
|
39838
39855
|
};
|
|
39839
39856
|
}
|
|
39840
39857
|
//#endregion
|
|
39858
|
+
//#region server/core/client-presence.ts
|
|
39859
|
+
function decideFocusSuppression(focusStates) {
|
|
39860
|
+
if (!Array.isArray(focusStates) || focusStates.length === 0) return false;
|
|
39861
|
+
return focusStates.every(Boolean);
|
|
39862
|
+
}
|
|
39863
|
+
function decideOffDashboardDelivery(connectionCount) {
|
|
39864
|
+
return connectionCount === 0;
|
|
39865
|
+
}
|
|
39866
|
+
function createClientPresence() {
|
|
39867
|
+
const focusedByConnection = /* @__PURE__ */ new Map();
|
|
39868
|
+
function connect(key) {
|
|
39869
|
+
if (focusedByConnection.has(key)) return;
|
|
39870
|
+
focusedByConnection.set(key, false);
|
|
39871
|
+
}
|
|
39872
|
+
function disconnect(key) {
|
|
39873
|
+
focusedByConnection.delete(key);
|
|
39874
|
+
}
|
|
39875
|
+
function setFocus(key, focused) {
|
|
39876
|
+
focusedByConnection.set(key, !!focused);
|
|
39877
|
+
}
|
|
39878
|
+
return {
|
|
39879
|
+
connect,
|
|
39880
|
+
disconnect,
|
|
39881
|
+
setFocus,
|
|
39882
|
+
connectionCount: () => focusedByConnection.size,
|
|
39883
|
+
shouldSuppress: () => decideFocusSuppression([...focusedByConnection.values()])
|
|
39884
|
+
};
|
|
39885
|
+
}
|
|
39886
|
+
//#endregion
|
|
39887
|
+
//#region notifications/channels/telegram.ts
|
|
39888
|
+
function decideTelegramNotification({ enabled, botToken, chatId, connectionCount, phoneEscalation = false, category = null, activeAgents = 0 }) {
|
|
39889
|
+
if (enabled !== true) return {
|
|
39890
|
+
send: false,
|
|
39891
|
+
reason: "disabled"
|
|
39892
|
+
};
|
|
39893
|
+
if (!botToken || !chatId) return {
|
|
39894
|
+
send: false,
|
|
39895
|
+
reason: "not-configured"
|
|
39896
|
+
};
|
|
39897
|
+
if (category === "complete" && activeAgents > 0) return {
|
|
39898
|
+
send: false,
|
|
39899
|
+
reason: "active-agents"
|
|
39900
|
+
};
|
|
39901
|
+
if (phoneEscalation === true) return {
|
|
39902
|
+
send: true,
|
|
39903
|
+
reason: "unacknowledged-escalation"
|
|
39904
|
+
};
|
|
39905
|
+
if (!decideOffDashboardDelivery(connectionCount)) return {
|
|
39906
|
+
send: false,
|
|
39907
|
+
reason: "dashboard-open"
|
|
39908
|
+
};
|
|
39909
|
+
return {
|
|
39910
|
+
send: true,
|
|
39911
|
+
reason: "no-dashboard-audience"
|
|
39912
|
+
};
|
|
39913
|
+
}
|
|
39914
|
+
function formatTelegramText(sessionName, message) {
|
|
39915
|
+
return message || `${sessionName} needs attention`;
|
|
39916
|
+
}
|
|
39917
|
+
function createTelegramChannel({ getConfig, getConnectionCount, getActiveAgentCount = () => 0, getSessionName = () => void 0, outbox = null, send = sendTelegramMessage }) {
|
|
39918
|
+
return function telegramChannel(sessionId, category, message, context) {
|
|
39919
|
+
const config = getConfig() || {};
|
|
39920
|
+
const telegram = config.telegram || {};
|
|
39921
|
+
const botToken = telegram.botToken;
|
|
39922
|
+
const chatId = telegram.chatId;
|
|
39923
|
+
const activeAgents = category === "complete" ? getActiveAgentCount(sessionId) : 0;
|
|
39924
|
+
const decision = decideTelegramNotification({
|
|
39925
|
+
enabled: config.telegramNotifications === true,
|
|
39926
|
+
botToken,
|
|
39927
|
+
chatId,
|
|
39928
|
+
connectionCount: getConnectionCount(),
|
|
39929
|
+
phoneEscalation: context?.phoneEscalation === true,
|
|
39930
|
+
category,
|
|
39931
|
+
activeAgents
|
|
39932
|
+
});
|
|
39933
|
+
if (!decision.send) return decision;
|
|
39934
|
+
if (!botToken || !chatId) return decision;
|
|
39935
|
+
const text = formatTelegramText(getSessionName(sessionId) || sessionId, message);
|
|
39936
|
+
if (outbox) {
|
|
39937
|
+
outbox.deliver(text);
|
|
39938
|
+
return decision;
|
|
39939
|
+
}
|
|
39940
|
+
send({
|
|
39941
|
+
botToken,
|
|
39942
|
+
chatId,
|
|
39943
|
+
text,
|
|
39944
|
+
tag: "channel:telegram"
|
|
39945
|
+
});
|
|
39946
|
+
return decision;
|
|
39947
|
+
};
|
|
39948
|
+
}
|
|
39949
|
+
//#endregion
|
|
39841
39950
|
//#region server/community/community-wiring.ts
|
|
39842
39951
|
var COMMUNITY_WORK_DIRNAME = "community-work";
|
|
39843
39952
|
var RESULT_MAX_BYTES = 1048576;
|
|
@@ -40044,13 +40153,36 @@ function createDiscordSource(api, settings, spawnDependencies) {
|
|
|
40044
40153
|
judgeQuestions: createCommunityJudge(judgeSpawn)
|
|
40045
40154
|
};
|
|
40046
40155
|
}
|
|
40047
|
-
function createCommunityWiring({ config, broadcast = () => {}, homeDir = glimmervoidHomeDir$1(), createApi = (connection) => createPosthogApi(connection), spawnDependencies = null, log = console }) {
|
|
40156
|
+
function createCommunityWiring({ config, broadcast = () => {}, homeDir = glimmervoidHomeDir$1(), createApi = (connection) => createPosthogApi(connection), spawnDependencies = null, controlClientCount = () => 0, sendTelegram = sendTelegramMessage, log = console }) {
|
|
40048
40157
|
const stateIo = createCommunityStateIo(path.join(homeDir, COMMUNITY_STATE_FILENAME), log);
|
|
40049
40158
|
const runItem = spawnDependencies ? createCommunityRunner({
|
|
40050
40159
|
spawnDependencies,
|
|
40051
40160
|
homeDir,
|
|
40052
40161
|
getSettings: () => readCommunitySettings(config)
|
|
40053
40162
|
}) : void 0;
|
|
40163
|
+
function notifyDraftReady(entry) {
|
|
40164
|
+
const message = draftNotificationText(entry);
|
|
40165
|
+
broadcast({
|
|
40166
|
+
type: "notify",
|
|
40167
|
+
session: entry.item.key,
|
|
40168
|
+
category: NOTIFICATION_CATEGORY,
|
|
40169
|
+
message,
|
|
40170
|
+
escalationCount: 0
|
|
40171
|
+
});
|
|
40172
|
+
const { botToken, chatId } = readTelegramTarget(config);
|
|
40173
|
+
if (!decideTelegramNotification({
|
|
40174
|
+
enabled: config.telegramNotifications === true,
|
|
40175
|
+
botToken,
|
|
40176
|
+
chatId,
|
|
40177
|
+
connectionCount: controlClientCount()
|
|
40178
|
+
}).send) return;
|
|
40179
|
+
sendTelegram({
|
|
40180
|
+
botToken,
|
|
40181
|
+
chatId,
|
|
40182
|
+
text: message,
|
|
40183
|
+
tag: COMMUNITY_LANE_ID
|
|
40184
|
+
});
|
|
40185
|
+
}
|
|
40054
40186
|
const runner = createLaneRunner({
|
|
40055
40187
|
tag: COMMUNITY_LANE_ID,
|
|
40056
40188
|
gate: () => communityGate(config),
|
|
@@ -40076,6 +40208,7 @@ function createCommunityWiring({ config, broadcast = () => {}, homeDir = glimmer
|
|
|
40076
40208
|
writeState: stateIo.writeState,
|
|
40077
40209
|
runItem,
|
|
40078
40210
|
onTickComplete,
|
|
40211
|
+
onDraftReady: notifyDraftReady,
|
|
40079
40212
|
firstTickDelayMs: bootStaggerDelay,
|
|
40080
40213
|
log
|
|
40081
40214
|
});
|
|
@@ -41825,6 +41958,10 @@ var TRIGGER_RULES = [
|
|
|
41825
41958
|
}
|
|
41826
41959
|
];
|
|
41827
41960
|
var RULE_BY_FEATURE = new Map(TRIGGER_RULES.map((rule) => [rule.feature, rule]));
|
|
41961
|
+
var EXPERIMENTAL_HINT_FEATURES = new Set(HINT_FEATURES.filter((feature) => {
|
|
41962
|
+
const enableSetting = SETTINGS_INDEX.byPath.get(`${feature}.enabled`);
|
|
41963
|
+
return enableSetting !== void 0 && isExperimentalSetting(enableSetting);
|
|
41964
|
+
}));
|
|
41828
41965
|
function emptyFeatureHintState() {
|
|
41829
41966
|
return {
|
|
41830
41967
|
signalsByFeature: {},
|
|
@@ -41886,14 +42023,16 @@ function noteRecentPrompt(recentPrompts, { prompt, sessionId, ts }) {
|
|
|
41886
42023
|
}] : []
|
|
41887
42024
|
};
|
|
41888
42025
|
}
|
|
41889
|
-
function
|
|
41890
|
-
if (!state.pendingHint
|
|
42026
|
+
function withoutStaleHint(state, now) {
|
|
42027
|
+
if (!state.pendingHint) return state;
|
|
42028
|
+
if (!(now - state.pendingHint.raisedAt > SIGNAL_WINDOW_MS) && !EXPERIMENTAL_HINT_FEATURES.has(state.pendingHint.feature)) return state;
|
|
41891
42029
|
return {
|
|
41892
42030
|
...state,
|
|
41893
42031
|
pendingHint: null
|
|
41894
42032
|
};
|
|
41895
42033
|
}
|
|
41896
42034
|
function isFeatureCounting(state, feature) {
|
|
42035
|
+
if (EXPERIMENTAL_HINT_FEATURES.has(feature)) return false;
|
|
41897
42036
|
if (state.settledByFeature[feature]) return false;
|
|
41898
42037
|
return state.pendingHint?.feature !== feature;
|
|
41899
42038
|
}
|
|
@@ -41922,7 +42061,7 @@ function wasViewShownRecently(state, feature, now) {
|
|
|
41922
42061
|
return typeof lastShownAt === "number" && now - lastShownAt <= RECENT_VIEW_SKIP_MS;
|
|
41923
42062
|
}
|
|
41924
42063
|
function decideHint(state, now) {
|
|
41925
|
-
if (
|
|
42064
|
+
if (withoutStaleHint(state, now).pendingHint) return null;
|
|
41926
42065
|
for (const feature of HINT_FEATURES) {
|
|
41927
42066
|
if (!isFeatureCounting(state, feature) || wasViewShownRecently(state, feature, now)) continue;
|
|
41928
42067
|
const distinctTargetCount = distinctTargetCountInWindow(state, feature, now);
|
|
@@ -41996,7 +42135,7 @@ function createFeatureHintsWiring({ statePath, broadcast, log, now = Date.now, s
|
|
|
41996
42135
|
filePath: statePath,
|
|
41997
42136
|
parse: (raw) => FeatureHintState.safeParse(raw).data ?? null,
|
|
41998
42137
|
adopt: (loadedState) => {
|
|
41999
|
-
state = loadedState ?? emptyFeatureHintState();
|
|
42138
|
+
state = withoutStaleHint(loadedState ?? emptyFeatureHintState(), now());
|
|
42000
42139
|
},
|
|
42001
42140
|
warn: (message, fields) => log.warn(`[feature-hints] ${message} ${JSON.stringify(fields)}`)
|
|
42002
42141
|
});
|
|
@@ -42004,7 +42143,7 @@ function createFeatureHintsWiring({ statePath, broadcast, log, now = Date.now, s
|
|
|
42004
42143
|
function update(nextStateOf) {
|
|
42005
42144
|
return loaded.then(() => {
|
|
42006
42145
|
if (isStopped) return;
|
|
42007
|
-
const nextState =
|
|
42146
|
+
const nextState = withoutStaleHint(nextStateOf(state), now());
|
|
42008
42147
|
const hint = decideHint(nextState, now());
|
|
42009
42148
|
state = hint ? {
|
|
42010
42149
|
...nextState,
|
|
@@ -42864,98 +43003,6 @@ function createGithubStatus({ fetchFn = fetch, now = Date.now, log }) {
|
|
|
42864
43003
|
};
|
|
42865
43004
|
}
|
|
42866
43005
|
//#endregion
|
|
42867
|
-
//#region server/core/client-presence.ts
|
|
42868
|
-
function decideFocusSuppression(focusStates) {
|
|
42869
|
-
if (!Array.isArray(focusStates) || focusStates.length === 0) return false;
|
|
42870
|
-
return focusStates.every(Boolean);
|
|
42871
|
-
}
|
|
42872
|
-
function decideOffDashboardDelivery(connectionCount) {
|
|
42873
|
-
return connectionCount === 0;
|
|
42874
|
-
}
|
|
42875
|
-
function createClientPresence() {
|
|
42876
|
-
const focusedByConnection = /* @__PURE__ */ new Map();
|
|
42877
|
-
function connect(key) {
|
|
42878
|
-
if (focusedByConnection.has(key)) return;
|
|
42879
|
-
focusedByConnection.set(key, false);
|
|
42880
|
-
}
|
|
42881
|
-
function disconnect(key) {
|
|
42882
|
-
focusedByConnection.delete(key);
|
|
42883
|
-
}
|
|
42884
|
-
function setFocus(key, focused) {
|
|
42885
|
-
focusedByConnection.set(key, !!focused);
|
|
42886
|
-
}
|
|
42887
|
-
return {
|
|
42888
|
-
connect,
|
|
42889
|
-
disconnect,
|
|
42890
|
-
setFocus,
|
|
42891
|
-
connectionCount: () => focusedByConnection.size,
|
|
42892
|
-
shouldSuppress: () => decideFocusSuppression([...focusedByConnection.values()])
|
|
42893
|
-
};
|
|
42894
|
-
}
|
|
42895
|
-
//#endregion
|
|
42896
|
-
//#region notifications/channels/telegram.ts
|
|
42897
|
-
function decideTelegramNotification({ enabled, botToken, chatId, connectionCount, phoneEscalation = false, category = null, activeAgents = 0 }) {
|
|
42898
|
-
if (enabled !== true) return {
|
|
42899
|
-
send: false,
|
|
42900
|
-
reason: "disabled"
|
|
42901
|
-
};
|
|
42902
|
-
if (!botToken || !chatId) return {
|
|
42903
|
-
send: false,
|
|
42904
|
-
reason: "not-configured"
|
|
42905
|
-
};
|
|
42906
|
-
if (category === "complete" && activeAgents > 0) return {
|
|
42907
|
-
send: false,
|
|
42908
|
-
reason: "active-agents"
|
|
42909
|
-
};
|
|
42910
|
-
if (phoneEscalation === true) return {
|
|
42911
|
-
send: true,
|
|
42912
|
-
reason: "unacknowledged-escalation"
|
|
42913
|
-
};
|
|
42914
|
-
if (!decideOffDashboardDelivery(connectionCount)) return {
|
|
42915
|
-
send: false,
|
|
42916
|
-
reason: "dashboard-open"
|
|
42917
|
-
};
|
|
42918
|
-
return {
|
|
42919
|
-
send: true,
|
|
42920
|
-
reason: "no-dashboard-audience"
|
|
42921
|
-
};
|
|
42922
|
-
}
|
|
42923
|
-
function formatTelegramText(sessionName, message) {
|
|
42924
|
-
return message || `${sessionName} needs attention`;
|
|
42925
|
-
}
|
|
42926
|
-
function createTelegramChannel({ getConfig, getConnectionCount, getActiveAgentCount = () => 0, getSessionName = () => void 0, outbox = null, send = sendTelegramMessage }) {
|
|
42927
|
-
return function telegramChannel(sessionId, category, message, context) {
|
|
42928
|
-
const config = getConfig() || {};
|
|
42929
|
-
const telegram = config.telegram || {};
|
|
42930
|
-
const botToken = telegram.botToken;
|
|
42931
|
-
const chatId = telegram.chatId;
|
|
42932
|
-
const activeAgents = category === "complete" ? getActiveAgentCount(sessionId) : 0;
|
|
42933
|
-
const decision = decideTelegramNotification({
|
|
42934
|
-
enabled: config.telegramNotifications === true,
|
|
42935
|
-
botToken,
|
|
42936
|
-
chatId,
|
|
42937
|
-
connectionCount: getConnectionCount(),
|
|
42938
|
-
phoneEscalation: context?.phoneEscalation === true,
|
|
42939
|
-
category,
|
|
42940
|
-
activeAgents
|
|
42941
|
-
});
|
|
42942
|
-
if (!decision.send) return decision;
|
|
42943
|
-
if (!botToken || !chatId) return decision;
|
|
42944
|
-
const text = formatTelegramText(getSessionName(sessionId) || sessionId, message);
|
|
42945
|
-
if (outbox) {
|
|
42946
|
-
outbox.deliver(text);
|
|
42947
|
-
return decision;
|
|
42948
|
-
}
|
|
42949
|
-
send({
|
|
42950
|
-
botToken,
|
|
42951
|
-
chatId,
|
|
42952
|
-
text,
|
|
42953
|
-
tag: "channel:telegram"
|
|
42954
|
-
});
|
|
42955
|
-
return decision;
|
|
42956
|
-
};
|
|
42957
|
-
}
|
|
42958
|
-
//#endregion
|
|
42959
43006
|
//#region server/usage/core/usage-budget-core.ts
|
|
42960
43007
|
var BUDGET_THRESHOLDS = Object.freeze([
|
|
42961
43008
|
50,
|
|
@@ -48547,6 +48594,7 @@ function createBackendLanes(dependencies) {
|
|
|
48547
48594
|
broadcast: broadcastControl,
|
|
48548
48595
|
homeDir: glimmervoidHomeDir$1(),
|
|
48549
48596
|
log: logger,
|
|
48597
|
+
controlClientCount: () => controlWss.clients.size,
|
|
48550
48598
|
spawnDependencies: {
|
|
48551
48599
|
investigationSessions,
|
|
48552
48600
|
closeSessionDataClients,
|
|
@@ -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-Lwe65ZGU.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-CME_GcIP.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 {
|
|
6
|
+
import { ot as canonicalizePath, s as glimmervoidHomeDir } from "./config-store-Lwe65ZGU.js";
|
|
7
7
|
import fs from "node:fs";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import crypto from "node:crypto";
|
|
@@ -4,8 +4,8 @@ import { f as AgentSettingsReply } from "./session-B2Wieg0a.js";
|
|
|
4
4
|
import { r as BrowserConfig } from "./config-eI1JOW7g.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 { C as scoreSettingsSearch, D as valueAtPath,
|
|
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 { C as scoreSettingsSearch, D as valueAtPath, Q as withEnvSecrets, S as parsePosthogProjectSelection, X as readEnvSecrets, Y as ENV_SECRET_BINDINGS, c as loadConfigFile, d as validateConfig, f as isSettingAvailable, k as SETTINGS_REGISTRY, r as IS_EXPERIMENTAL_BUILD, u as saveConfigFileOnce, v as cloneValue, w as setValueAtPath, y as deleteValueAtPath } from "./config-store-Lwe65ZGU.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-DS-Em16W.js";
|
|
9
9
|
import fs from "node:fs";
|
|
10
10
|
import os from "node:os";
|
|
11
11
|
import { parseArgs } from "node:util";
|
|
@@ -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 { D as valueAtPath, E as settingsOf, O as FILE_ONLY_GROUPS, T as settingsGroupOf,
|
|
3
|
+
import { D as valueAtPath, E as settingsOf, O as FILE_ONLY_GROUPS, T as settingsGroupOf, X as readEnvSecrets, _ as SETTINGS_INDEX, b as displayText, f as isSettingAvailable, k as SETTINGS_REGISTRY, v as cloneValue, x as hasScaledUnit } from "./config-store-Lwe65ZGU.js";
|
|
4
4
|
import { parseArgs } from "node:util";
|
|
5
5
|
//#region server/core/settings-readout-core.ts
|
|
6
6
|
var VALUE_COLUMN_WIDTH = 40;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$i as e,Qi as t,Xi as n,Zi as r,ea as i,na as a,ra as o,ta as s}from"./index-
|
|
1
|
+
import{$i as e,Qi as t,Xi as n,Zi as r,ea as i,na as a,ra as o,ta as s}from"./index-CFlFmjIR.js";var c=.3,l=null;function u(){return o(l)}function d(e){return a(e,l)}async function f(){try{let e=await fetch(n,{credentials:`same-origin`,cache:`no-store`});e.ok&&(l=s(await e.json()))}catch{}}function p(){let e=new AudioContext;return e.state===`suspended`&&e.resume(),e}function m(e,t){setTimeout(()=>e.close().catch(()=>{}),(t+.1)*1e3)}function h(e){g(t[e]??t.chime)}function g(e){let t=p(),n=t.createGain();n.gain.value=e.peakGain,n.connect(t.destination);let r=t.currentTime,i=0;for(let a of e.tones){let e=r+a.startSeconds,o=e+a.durationSeconds,s=t.createOscillator(),c=t.createGain();s.type=a.waveform,s.frequency.setValueAtTime(a.frequency,e),a.endFrequency&&s.frequency.exponentialRampToValueAtTime(a.endFrequency,o),c.gain.setValueAtTime(.001,e),c.gain.exponentialRampToValueAtTime(a.gain??1,e+.01),c.gain.exponentialRampToValueAtTime(.001,o),s.connect(c),c.connect(n),s.start(e),s.stop(o),i=Math.max(i,a.startSeconds+a.durationSeconds)}m(t,i)}async function _(e){try{let t=await fetch(i(e),{credentials:`same-origin`});return t.ok?await t.arrayBuffer():null}catch{return null}}async function v(e){let t=await _(e);if(!t)return!1;let n=p();try{let e=await n.decodeAudioData(t),r=n.createGain();r.gain.value=c,r.connect(n.destination);let i=n.createBufferSource();return i.buffer=e,i.connect(r),i.start(),m(n,e.duration),!0}catch{return n.close().catch(()=>{}),!1}}var y=[659.25,830.61,987.77,1108.73,987.77,830.61,739.99,659.25,739.99,830.61,987.77,1108.73,987.77,830.61];function b(){try{let e=new AudioContext;if(e.state===`suspended`&&e.resume(),e.state===`suspended`)return;let t=e.createGain();t.gain.value=.05,t.connect(e.destination);let n=.125,r=e.currentTime;for(let i=0;i<y.length;i++){let a=r+i*n,o=e.createOscillator(),s=e.createGain();o.type=`square`,o.frequency.value=y[i],s.gain.setValueAtTime(.001,a),s.gain.exponentialRampToValueAtTime(1,a+.01),s.gain.exponentialRampToValueAtTime(.001,a+n*.9),o.connect(s),s.connect(t),o.start(a),o.stop(a+n)}let i=r+y.length*n;t.gain.setValueAtTime(.05,i-.05),t.gain.exponentialRampToValueAtTime(.001,i),setTimeout(()=>e.close().catch(()=>{}),(i-r+.1)*1e3)}catch{}}function x(){try{h(r)}catch{}}function S(t){try{let n=d(t),r=e(n);if(!r){h(n);return}v(r).then(e=>{e||x()})}catch{}}export{f as loadCustomSounds,S as playAlertSound,b as playNyanJingle,g as playToneSequence,d as resolveSoundId,u as soundOptions};
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./updates-view-core-CqTQW6Ft.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-
|
|
1
|
+
import"./updates-view-core-CqTQW6Ft.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-CFlFmjIR.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
|