glimmervoid 0.47.1-next.255 → 0.47.1-next.257
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 +5 -5
- package/dist/chunks/{adapters-CpMmp79m.js → adapters-COA7jjXs.js} +1 -1
- package/dist/chunks/{adapters-CJcD56oG.js → adapters-CX2dbKiF.js} +5 -5
- package/dist/chunks/{agent-setup-cli-BvHppwtG.js → agent-setup-cli-C0rq4LlN.js} +1 -1
- package/dist/chunks/{grok-Co0r53k-.js → grok-CNT8DCGZ.js} +1 -1
- package/dist/chunks/{kimi-B35I7Rlu.js → kimi-CROia0Qa.js} +12 -4
- package/dist/chunks/kimi-M6Q1W-rl.js +1 -0
- package/dist/chunks/{main-8l7jEAEj.js → main-1a8k55Ik.js} +10 -13
- package/dist/chunks/{sane-yolo-DSyFqbVE.js → sane-yolo-CY1F156O.js} +1 -1
- package/dist/chunks/{spawn-env-Dh1MZR4M.js → spawn-env-Cu7OdatC.js} +1 -1
- package/dist/client/assets/{alert-sound-sC9Iv9lt.js → alert-sound-CZx5Zm05.js} +1 -1
- package/dist/client/assets/alert-sound-CZx5Zm05.js.br +0 -0
- package/dist/client/assets/{benchmark-panel-CnNnzFrO.js → benchmark-panel-DyVWh3o1.js} +1 -1
- package/dist/client/assets/benchmark-panel-DyVWh3o1.js.br +0 -0
- package/dist/client/assets/{celebration-player-CAbB15Lo.js → celebration-player-DXYzqPBC.js} +1 -1
- package/dist/client/assets/celebration-player-DXYzqPBC.js.br +0 -0
- package/dist/client/assets/{community-panel-Dc5OwPoI.js → community-panel-DYt3h78v.js} +1 -1
- package/dist/client/assets/community-panel-DYt3h78v.js.br +0 -0
- package/dist/client/assets/{dialogs-BJC5oHae.js → dialogs-CeyGUQ_N.js} +2 -2
- package/dist/client/assets/dialogs-CeyGUQ_N.js.br +0 -0
- package/dist/client/assets/{doc-editor-ui-CILvo4e0.js → doc-editor-ui-DcgHaimX.js} +1 -1
- package/dist/client/assets/doc-editor-ui-DcgHaimX.js.br +0 -0
- package/dist/client/assets/feature-hint-CBerOTv5.js +1 -0
- package/dist/client/assets/feature-hint-CBerOTv5.js.br +0 -0
- package/dist/client/assets/{first-run-checklist-DMpBBRC1.js → first-run-checklist-DKeSAsQX.js} +1 -1
- package/dist/client/assets/first-run-checklist-DKeSAsQX.js.br +0 -0
- package/dist/client/assets/{hooks-panel-BSf5zEol.js → hooks-panel-BVYZMX7O.js} +1 -1
- package/dist/client/assets/hooks-panel-BVYZMX7O.js.br +0 -0
- package/dist/client/assets/{index-D4dL_C_R.js → index-CCwbxRUr.js} +14 -14
- package/dist/client/assets/index-CCwbxRUr.js.br +0 -0
- package/dist/client/assets/issues-panel-BsykEd7F.js +1 -0
- package/dist/client/assets/issues-panel-BsykEd7F.js.br +0 -0
- package/dist/client/assets/my-prs-panel-uaBodpEn.js +1 -0
- package/dist/client/assets/my-prs-panel-uaBodpEn.js.br +0 -0
- package/dist/client/assets/{nyan-cat-CZNH_B6F.js → nyan-cat-U1H9SwJO.js} +1 -1
- package/dist/client/assets/nyan-cat-U1H9SwJO.js.br +0 -0
- package/dist/client/assets/phone-shell-CqB4rMGA.js +1 -0
- package/dist/client/assets/phone-shell-CqB4rMGA.js.br +0 -0
- package/dist/client/assets/{plan-face-CMxVTLf-.js → plan-face-CEmegNLe.js} +2 -2
- package/dist/client/assets/plan-face-CEmegNLe.js.br +0 -0
- package/dist/client/assets/{plan-render-C1liUlWt.js → plan-render-DdduGzbo.js} +1 -1
- package/dist/client/assets/plan-render-DdduGzbo.js.br +0 -0
- package/dist/client/assets/{pr-queue-columns-B-A5mVxr.js → pr-queue-columns-B1zPUfHo.js} +1 -1
- package/dist/client/assets/pr-queue-columns-B1zPUfHo.js.br +0 -0
- package/dist/client/assets/{radar-panel-CI2tLvTM.js → radar-panel-CEwrIF7_.js} +1 -1
- package/dist/client/assets/radar-panel-CEwrIF7_.js.br +0 -0
- package/dist/client/assets/{repo-roots-adder-EvB7VHcB.js → repo-roots-adder-BEGxMD41.js} +1 -1
- package/dist/client/assets/repo-roots-adder-BEGxMD41.js.br +0 -0
- package/dist/client/assets/{resume-dialog-DG-BC8z8.js → resume-dialog-Bkmfe8pK.js} +1 -1
- package/dist/client/assets/resume-dialog-Bkmfe8pK.js.br +0 -0
- package/dist/client/assets/{review-queue-panel-CLEarxD3.js → review-queue-panel-mv1bYDT1.js} +1 -1
- package/dist/client/assets/review-queue-panel-mv1bYDT1.js.br +0 -0
- package/dist/client/assets/{settings-panel-DEg0ePhM.js → settings-panel-B7ooBURV.js} +4 -4
- package/dist/client/assets/settings-panel-B7ooBURV.js.br +0 -0
- package/dist/client/assets/{shown-lightbox-BhRChpG-.js → shown-lightbox-CbYuKiRV.js} +1 -1
- package/dist/client/assets/shown-lightbox-CbYuKiRV.js.br +0 -0
- package/dist/client/assets/team-review-panel-D4DYefn3.js +10 -0
- package/dist/client/assets/team-review-panel-D4DYefn3.js.br +0 -0
- package/dist/client/assets/trace-panel-bPCRO9T5.js +2 -0
- package/dist/client/assets/trace-panel-bPCRO9T5.js.br +0 -0
- package/dist/client/assets/{usage-panel-C8oH0nDq.js → usage-panel-BSIIKwHP.js} +1 -1
- package/dist/client/assets/usage-panel-BSIIKwHP.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/dist/session/hook-tool-relay.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/kimi-BhmoA__R.js +0 -1
- package/dist/client/assets/alert-sound-sC9Iv9lt.js.br +0 -0
- package/dist/client/assets/benchmark-panel-CnNnzFrO.js.br +0 -0
- package/dist/client/assets/celebration-player-CAbB15Lo.js.br +0 -0
- package/dist/client/assets/community-panel-Dc5OwPoI.js.br +0 -0
- package/dist/client/assets/dialogs-BJC5oHae.js.br +0 -0
- package/dist/client/assets/doc-editor-ui-CILvo4e0.js.br +0 -0
- package/dist/client/assets/feature-hint-Dj0lMjqS.js +0 -1
- package/dist/client/assets/feature-hint-Dj0lMjqS.js.br +0 -0
- package/dist/client/assets/first-run-checklist-DMpBBRC1.js.br +0 -0
- package/dist/client/assets/hooks-panel-BSf5zEol.js.br +0 -0
- package/dist/client/assets/index-D4dL_C_R.js.br +0 -0
- package/dist/client/assets/issues-panel-BAmp_-1c.js +0 -1
- package/dist/client/assets/issues-panel-BAmp_-1c.js.br +0 -0
- package/dist/client/assets/my-prs-panel-DMoswtos.js +0 -1
- package/dist/client/assets/my-prs-panel-DMoswtos.js.br +0 -0
- package/dist/client/assets/nyan-cat-CZNH_B6F.js.br +0 -0
- package/dist/client/assets/phone-shell-Begs3Xlo.js +0 -1
- package/dist/client/assets/phone-shell-Begs3Xlo.js.br +0 -0
- package/dist/client/assets/plan-face-CMxVTLf-.js.br +0 -0
- package/dist/client/assets/plan-render-C1liUlWt.js.br +0 -0
- package/dist/client/assets/pr-queue-columns-B-A5mVxr.js.br +0 -0
- package/dist/client/assets/radar-panel-CI2tLvTM.js.br +0 -0
- package/dist/client/assets/repo-roots-adder-EvB7VHcB.js.br +0 -0
- package/dist/client/assets/resume-dialog-DG-BC8z8.js.br +0 -0
- package/dist/client/assets/review-queue-panel-CLEarxD3.js.br +0 -0
- package/dist/client/assets/settings-panel-DEg0ePhM.js.br +0 -0
- package/dist/client/assets/shown-lightbox-BhRChpG-.js.br +0 -0
- package/dist/client/assets/team-review-panel-DXUgVTT8.js +0 -10
- package/dist/client/assets/team-review-panel-DXUgVTT8.js.br +0 -0
- package/dist/client/assets/trace-panel--XcaMloG.js +0 -2
- package/dist/client/assets/trace-panel--XcaMloG.js.br +0 -0
- package/dist/client/assets/usage-panel-C8oH0nDq.js.br +0 -0
package/dist/bin/glimmervoid.js
CHANGED
|
@@ -62,7 +62,7 @@ var OWN_SUBCOMMAND_RUNNERS = [
|
|
|
62
62
|
return runPairCli(subcommandArgs);
|
|
63
63
|
}],
|
|
64
64
|
["agent", async (subcommandArgs) => {
|
|
65
|
-
const { runAgentSetupCli } = await import("../chunks/agent-setup-cli-
|
|
65
|
+
const { runAgentSetupCli } = await import("../chunks/agent-setup-cli-C0rq4LlN.js");
|
|
66
66
|
return runAgentSetupCli(subcommandArgs);
|
|
67
67
|
}],
|
|
68
68
|
["settings", async (subcommandArgs) => {
|
|
@@ -223,7 +223,7 @@ async function runDoctor() {
|
|
|
223
223
|
}
|
|
224
224
|
switchSection("Agents");
|
|
225
225
|
try {
|
|
226
|
-
const { listAgentIds, describeAgentResolvability, setCustomAgents } = await import("../chunks/adapters-
|
|
226
|
+
const { listAgentIds, describeAgentResolvability, setCustomAgents } = await import("../chunks/adapters-COA7jjXs.js");
|
|
227
227
|
const declaredCustomAgents = await readDeclaredCustomAgents();
|
|
228
228
|
if (declaredCustomAgents.error) line("config", declaredCustomAgents.error);
|
|
229
229
|
setCustomAgents(declaredCustomAgents.declared);
|
|
@@ -231,10 +231,10 @@ async function runDoctor() {
|
|
|
231
231
|
const { label, path: resolvedPath } = describeAgentResolvability(id);
|
|
232
232
|
line(`${id} (${label})`, resolvedPath ?? missingAgentText(id));
|
|
233
233
|
}
|
|
234
|
-
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-
|
|
234
|
+
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-C0rq4LlN.js");
|
|
235
235
|
const grokSetup = inspectGrokAgentSetup();
|
|
236
236
|
line("grok hook setup", `${grokSetup.classification}: ${grokSetup.filePath}`);
|
|
237
|
-
const { default: kimi } = await import("../chunks/kimi-
|
|
237
|
+
const { default: kimi } = await import("../chunks/kimi-M6Q1W-rl.js");
|
|
238
238
|
const { describeKimiHome } = await import("../chunks/kimi-home-Czh-wcQ_.js");
|
|
239
239
|
line("kimi home", describeKimiHome(kimi.expectedHooksBlock()));
|
|
240
240
|
} catch (err) {
|
|
@@ -244,7 +244,7 @@ async function runDoctor() {
|
|
|
244
244
|
try {
|
|
245
245
|
const { resolvePackageBin } = await import("../chunks/runtime-paths-DUfaYypN.js");
|
|
246
246
|
const { execFileSync } = await import("../chunks/child-process-safe-BKjzSEYd.js");
|
|
247
|
-
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-
|
|
247
|
+
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-C0rq4LlN.js");
|
|
248
248
|
const binPath = resolvePackageBin("cc-safety-net", "cc-safety-net");
|
|
249
249
|
line("Sane YOLO", binPath || "not installed");
|
|
250
250
|
if (binPath) line("cc-safety-net version", execFileSync(process.execPath, [binPath, "--version"], {
|
|
@@ -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-CX2dbKiF.js";
|
|
@@ -7,13 +7,13 @@ import { o as supervisionLine } from "./session-routes-CmWSbar1.js";
|
|
|
7
7
|
import { a as rawTextOr, o as textOr, r as numberOr } from "./coerce-oz_Z_6E7.js";
|
|
8
8
|
import { n as resolveAgentCommand, t as buildAgentSpawnCommand } from "./spawn-command-CQECOvjC.js";
|
|
9
9
|
import { n as parseJsonRecord } from "./json-core-If8h-Qgy.js";
|
|
10
|
-
import { n as SANE_YOLO_PATH_ENV, r as saneYoloEnv } from "./sane-yolo-
|
|
11
|
-
import { t as buildAgentEnv } from "./spawn-env-
|
|
10
|
+
import { n as SANE_YOLO_PATH_ENV, r as saneYoloEnv } from "./sane-yolo-CY1F156O.js";
|
|
11
|
+
import { t as buildAgentEnv } from "./spawn-env-Cu7OdatC.js";
|
|
12
12
|
import { t as buildHookCommand } from "./hook-command-core-qTNK-xMF.js";
|
|
13
|
-
import { i as isSpinnerChar, n as classifyAgentTitle, r as isBrailleChar, t as grok } from "./grok-
|
|
13
|
+
import { i as isSpinnerChar, n as classifyAgentTitle, r as isBrailleChar, t as grok } from "./grok-CNT8DCGZ.js";
|
|
14
14
|
import { O as nextBackoffMs } from "./json-file-AKRVPqG1.js";
|
|
15
15
|
import { n as isExperimentalBuild, t as compareReleaseVersions } from "./build-channel-DkEUPQnu.js";
|
|
16
|
-
import { t as kimi } from "./kimi-
|
|
16
|
+
import { t as kimi } from "./kimi-CROia0Qa.js";
|
|
17
17
|
import fs from "node:fs";
|
|
18
18
|
import path from "node:path";
|
|
19
19
|
import { z } from "zod";
|
|
@@ -237,7 +237,7 @@ var HOOK_TOOLS = {
|
|
|
237
237
|
...saneYoloEnv(homeDir)
|
|
238
238
|
}),
|
|
239
239
|
claudeEntry: (tool) => ({
|
|
240
|
-
matcher: "Bash|PowerShell|Monitor",
|
|
240
|
+
matcher: "Bash|PowerShell|Monitor|Read|Edit|Write|MultiEdit|NotebookEdit|Glob|Grep",
|
|
241
241
|
hooks: [{
|
|
242
242
|
type: "command",
|
|
243
243
|
command: `node "${toForwardSlashes(tool.binPath)}" hook --coding-cli`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as isMissingFileError, r as errorMessage } from "./text-DoirglWV.js";
|
|
2
|
-
import { a as classifyGrokHooksFile, o as renderGrokHooksFile, t as grok } from "./grok-
|
|
2
|
+
import { a as classifyGrokHooksFile, o as renderGrokHooksFile, t as grok } from "./grok-CNT8DCGZ.js";
|
|
3
3
|
import { p as writeTextAtomicSync } from "./json-file-AKRVPqG1.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import path from "node:path";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as errorMessage } from "./text-DoirglWV.js";
|
|
2
2
|
import { o as relayPath } from "./runtime-paths-D_ZjJLE0.js";
|
|
3
3
|
import { n as isRecord } from "./coerce-oz_Z_6E7.js";
|
|
4
|
-
import { t as buildAgentEnv } from "./spawn-env-
|
|
4
|
+
import { t as buildAgentEnv } from "./spawn-env-Cu7OdatC.js";
|
|
5
5
|
import { t as buildHookCommand } from "./hook-command-core-qTNK-xMF.js";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import path from "node:path";
|
|
@@ -2,8 +2,8 @@ import { o as relayPath } from "./runtime-paths-D_ZjJLE0.js";
|
|
|
2
2
|
import { i as ASK_USER_QUESTION_TOOL_NAME } from "./session-BQaAlkib.js";
|
|
3
3
|
import { i as execFileSync } from "./child-process-safe-BCOoKfxG.js";
|
|
4
4
|
import { n as resolveAgentCommand, t as buildAgentSpawnCommand } from "./spawn-command-CQECOvjC.js";
|
|
5
|
-
import { t as KIMI_SANE_YOLO_FLAVOR } from "./sane-yolo-
|
|
6
|
-
import { t as buildAgentEnv } from "./spawn-env-
|
|
5
|
+
import { t as KIMI_SANE_YOLO_FLAVOR } from "./sane-yolo-CY1F156O.js";
|
|
6
|
+
import { t as buildAgentEnv } from "./spawn-env-Cu7OdatC.js";
|
|
7
7
|
import { a as prepareKimiHome, i as kimiHomeLinkRefusal, m as renderKimiHooksBlock, n as generatedKimiHomePath, o as realKimiHome, r as holdKimiHome, s as releaseKimiHome } from "./kimi-home-4-aMoqJC.js";
|
|
8
8
|
import fs from "node:fs";
|
|
9
9
|
import path from "node:path";
|
|
@@ -29,7 +29,15 @@ var HOOK_EVENTS = Object.freeze([
|
|
|
29
29
|
var TOOL_EVENTS = Object.freeze(["PreToolUse", "PostToolUse"]);
|
|
30
30
|
var SUBAGENT_TOOL_NAME = "Agent";
|
|
31
31
|
var MATCHED_TOOL_NAMES = Object.freeze([ASK_USER_QUESTION_TOOL_NAME, SUBAGENT_TOOL_NAME]);
|
|
32
|
-
var
|
|
32
|
+
var SANE_YOLO_TOOL_NAMES = Object.freeze([
|
|
33
|
+
"Bash",
|
|
34
|
+
"Read",
|
|
35
|
+
"ReadMediaFile",
|
|
36
|
+
"Write",
|
|
37
|
+
"Edit",
|
|
38
|
+
"Glob",
|
|
39
|
+
"Grep"
|
|
40
|
+
]);
|
|
33
41
|
var envProfile = {
|
|
34
42
|
scrub: [],
|
|
35
43
|
set: { KIMI_CODE_NO_AUTO_UPDATE: "1" }
|
|
@@ -121,7 +129,7 @@ function expectedHooksBlock() {
|
|
|
121
129
|
matchedToolNames: MATCHED_TOOL_NAMES,
|
|
122
130
|
saneYolo: {
|
|
123
131
|
relayPath: HOOK_TOOL_RELAY_PATH,
|
|
124
|
-
toolNames:
|
|
132
|
+
toolNames: SANE_YOLO_TOOL_NAMES,
|
|
125
133
|
agentFlavor: KIMI_SANE_YOLO_FLAVOR
|
|
126
134
|
}
|
|
127
135
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as default } from "./kimi-CROia0Qa.js";
|
|
@@ -15,16 +15,16 @@ import { t as HOOK_URL_ENV } from "./hook-relay-core-DA_bz2KA.js";
|
|
|
15
15
|
import { t as HOOK_VIA_GUARDRAILS_PROXY_ENV } from "./guardrails-proxy-core-BI3rdY-m.js";
|
|
16
16
|
import { n as refocusReplyFor } from "./refocus-core-CwP_KIcU.js";
|
|
17
17
|
import { n as parseJsonRecord, t as parseJsonOrNull } from "./json-core-If8h-Qgy.js";
|
|
18
|
-
import { i as saneYoloFiles } from "./sane-yolo-
|
|
18
|
+
import { i as saneYoloFiles } from "./sane-yolo-CY1F156O.js";
|
|
19
19
|
import { r as knownWriteHookInput } from "./posthog-read-gate-core-CeSY56AB.js";
|
|
20
20
|
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-Obw4gbqC.js";
|
|
21
21
|
import { n as shellQuote } from "./hook-command-core-qTNK-xMF.js";
|
|
22
22
|
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, 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-AKRVPqG1.js";
|
|
23
23
|
import { $ as stableConfigKey, B as buildPersonProperties, F as TELEMETRY_FLAGS_URL, G as decideRemoteTelemetryState, H as claudeAccountUuidOf, I as adapterBucket, J as nodeMajorVersion, K as decideTelemetryConsent, L as buildAiGenerationEvents, M as isExperimentalSetting, N as FIRST_RUN_NOTICE, P as TELEMETRY_BATCH_URL, R as buildBrowserExceptionProperties, U as codexUserIdOf, V as classifySessionExit, W as decideIsDevInstall, X as resolveProjectToken, Y as parsePosthogReleaseId, _ as settingsBlockSpecFor, a as ensureProjectIds, at as sessionIdFromBranch, ct as canonicalizePath, f as DEFAULT_TIMER_FNS, g as mergeSettingsBlock, i as createConfigStore, it as planWorktreeGc, k as valueAtPath, lt as comparableDirectoryPath, n as DEFAULT_CONFIG, nt as matchedPrefix, o as generateProjectId, ot as usablePrefixes, p as unrefTimer, q as exceptionFingerprint, rt as planBranchGc, s as glimmervoidHomeDir$1, st as worktreeIntegrationTips, t as ABORT_CONFIG_SAVE, tt as DEFAULT_BRANCH_GC_PREFIXES, ut as isSameDirectoryPath, v as validateSettingsBlock, y as SETTINGS_INDEX, z as buildExceptionProperties } from "./config-store-DzoMjEw6.js";
|
|
24
24
|
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-DkEUPQnu.js";
|
|
25
|
-
import { $ as kimiHomes, A as framePathPaste, B as planContiguousRead, C as pickNewestPublished, Ct as vendorUsageEntry, D as buildUploadFilename, E as MAX_UPLOAD_BYTES, F as TRACE_TAIL_SCAN_BYTES, G as codexRootCandidates, H as withCommittedOffset, I as committedOffsetFromTraceTailOrNull, J as decideFileRead, K as codexSessionIdFromPath, L as completeLineBytes, M as isSafePathSegment, N as planUploadRetention, O as decideUploadType, P as MAX_TRANSCRIPT_READ_BYTES, Q as isUsageFile, R as containmentRefusalReason, S as parseResolvedSha, St as totalTokensOf$1, T as openContainedFile, Tt as claudeCode, U as codexFallbackRoots, V as resumeOffsetFrom, W as codexHomes, X as expandTilde, Y as dedupeCodexFiles, Z as grokHomes, _ as isCheckFresh, _t as isWithinGenerationRecencyWindow, a as describeAgentResolvability, at as shouldEvaluateDespiteIoFailures, b as parseRegistryDeprecation, bt as parseUsageLine, c as isKnownAgentId, ct as kimiDedupIdentity, d as resolveAdapter, dt as dedupKeys, et as passOutcome, f as setCustomAgents, ft as emptyTotals, g as decideUpdateStatus, gt as identityFromRelPath, h as decideInstallFlavor, ht as foldReplacementIntoGenerationRollup, i as customAgentFingerprint, it as sessionsRootCandidates, j as imageMimeForUploadFilename, k as exceedsUploadCap, l as listAgentIds, lt as parseKimiUsageLine, m as readHostCodexVersion, mt as foldEntryIntoGenerationRollup, n as cachedAgentResolvability, nt as resolveProjectsDirs, o as getAdapter, ot as shouldPersistWarehouse, p as codex, pt as expandAdvisorIterations, q as continuationDelayMs, r as commandFor, rt as scopedClaudeRoots, s as hookProfileOf, st as splitLines, t as DEFAULT_AGENT_ID$1, tt as projectDirCandidates, u as resetCommandCache, ut as addEntryToTotals, v as normalizeSha, vt as mergeGenerationRollups, w as shortSha$1, wt as HOOK_TOOLS, x as parseRegistryLatest, xt as shouldReplace, y as normalizeUpdateChannel, yt as parseJsonLine, z as isOversizedPartialLine } from "./adapters-
|
|
25
|
+
import { $ as kimiHomes, A as framePathPaste, B as planContiguousRead, C as pickNewestPublished, Ct as vendorUsageEntry, D as buildUploadFilename, E as MAX_UPLOAD_BYTES, F as TRACE_TAIL_SCAN_BYTES, G as codexRootCandidates, H as withCommittedOffset, I as committedOffsetFromTraceTailOrNull, J as decideFileRead, K as codexSessionIdFromPath, L as completeLineBytes, M as isSafePathSegment, N as planUploadRetention, O as decideUploadType, P as MAX_TRANSCRIPT_READ_BYTES, Q as isUsageFile, R as containmentRefusalReason, S as parseResolvedSha, St as totalTokensOf$1, T as openContainedFile, Tt as claudeCode, U as codexFallbackRoots, V as resumeOffsetFrom, W as codexHomes, X as expandTilde, Y as dedupeCodexFiles, Z as grokHomes, _ as isCheckFresh, _t as isWithinGenerationRecencyWindow, a as describeAgentResolvability, at as shouldEvaluateDespiteIoFailures, b as parseRegistryDeprecation, bt as parseUsageLine, c as isKnownAgentId, ct as kimiDedupIdentity, d as resolveAdapter, dt as dedupKeys, et as passOutcome, f as setCustomAgents, ft as emptyTotals, g as decideUpdateStatus, gt as identityFromRelPath, h as decideInstallFlavor, ht as foldReplacementIntoGenerationRollup, i as customAgentFingerprint, it as sessionsRootCandidates, j as imageMimeForUploadFilename, k as exceedsUploadCap, l as listAgentIds, lt as parseKimiUsageLine, m as readHostCodexVersion, mt as foldEntryIntoGenerationRollup, n as cachedAgentResolvability, nt as resolveProjectsDirs, o as getAdapter, ot as shouldPersistWarehouse, p as codex, pt as expandAdvisorIterations, q as continuationDelayMs, r as commandFor, rt as scopedClaudeRoots, s as hookProfileOf, st as splitLines, t as DEFAULT_AGENT_ID$1, tt as projectDirCandidates, u as resetCommandCache, ut as addEntryToTotals, v as normalizeSha, vt as mergeGenerationRollups, w as shortSha$1, wt as HOOK_TOOLS, x as parseRegistryLatest, xt as shouldReplace, y as normalizeUpdateChannel, yt as parseJsonLine, z as isOversizedPartialLine } from "./adapters-CX2dbKiF.js";
|
|
26
26
|
import { c as releaseUnheldKimiHomeSecrets, d as sessionIdOfLockFile, f as trashSessionTempFolderOnceUnheld, i as kimiHomeLinkRefusal, l as createHeldSessionTempFolder, n as generatedKimiHomePath, o as realKimiHome, p as definesHooksOutsideArrayTables, u as releaseSessionLock } from "./kimi-home-4-aMoqJC.js";
|
|
27
|
-
import { t as kimi } from "./kimi-
|
|
27
|
+
import { t as kimi } from "./kimi-CROia0Qa.js";
|
|
28
28
|
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";
|
|
29
29
|
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-pztIAqaU.js";
|
|
30
30
|
import { n as configFileViewOf, u as readSettingsForAgent } from "./settings-readout-core-B9_CZx5W.js";
|
|
@@ -15060,9 +15060,9 @@ function warnOnce(toolId, message, warn) {
|
|
|
15060
15060
|
warnedTools.add(toolId);
|
|
15061
15061
|
warn(message);
|
|
15062
15062
|
}
|
|
15063
|
-
function resolveHookTools(config, {
|
|
15063
|
+
function resolveHookTools(config, { warn = console.warn } = {}) {
|
|
15064
15064
|
const hookTools = [];
|
|
15065
|
-
if (config.saneYolo === false
|
|
15065
|
+
if (config.saneYolo === false) return hookTools;
|
|
15066
15066
|
const binPath = resolvePackageBin("cc-safety-net", "cc-safety-net");
|
|
15067
15067
|
if (!binPath) {
|
|
15068
15068
|
warnOnce("saneYolo", "[sane-yolo] cc-safety-net was not found. Sessions will spawn without Sane YOLO hooks.", warn);
|
|
@@ -15080,7 +15080,7 @@ function resolveHookTools(config, { skipPermissions, warn = console.warn }) {
|
|
|
15080
15080
|
return hookTools;
|
|
15081
15081
|
}
|
|
15082
15082
|
function resolveRequiredSaneYoloHookTools({ resolve = resolveHookTools } = {}) {
|
|
15083
|
-
const hookTools = resolve({ saneYolo: true }
|
|
15083
|
+
const hookTools = resolve({ saneYolo: true });
|
|
15084
15084
|
return hookTools.some((tool) => tool.id === "saneYolo") ? hookTools : null;
|
|
15085
15085
|
}
|
|
15086
15086
|
//#endregion
|
|
@@ -27327,7 +27327,7 @@ function createTeamReviewSpawn({ reviewSessions, closeSessionDataClients, hookRo
|
|
|
27327
27327
|
laneArgs: extraClaudeArgs,
|
|
27328
27328
|
agent: agent ?? DEFAULT_AGENT_ID$1
|
|
27329
27329
|
}) : null;
|
|
27330
|
-
const sharedHookTools = hookToolConfig ? resolveHookTools$2({ saneYolo: hookToolConfig.saneYolo }
|
|
27330
|
+
const sharedHookTools = hookToolConfig ? resolveHookTools$2({ saneYolo: hookToolConfig.saneYolo }) : [];
|
|
27331
27331
|
const sess = makeSession({
|
|
27332
27332
|
id,
|
|
27333
27333
|
name,
|
|
@@ -33504,7 +33504,7 @@ function createRadarWiring({ config, investigationSessions, closeSessionDataClie
|
|
|
33504
33504
|
...facts,
|
|
33505
33505
|
readablePaths: [...facts.readablePaths, ...laneMcp?.readablePaths ?? []]
|
|
33506
33506
|
}, access), laneMcp?.posture), guardrails);
|
|
33507
|
-
const sharedHookTools = resolveHookTools$1({ saneYolo: config.saneYolo }
|
|
33507
|
+
const sharedHookTools = resolveHookTools$1({ saneYolo: config.saneYolo });
|
|
33508
33508
|
const sess = makeSession({
|
|
33509
33509
|
id,
|
|
33510
33510
|
name,
|
|
@@ -44759,7 +44759,7 @@ function createSessionFactory(dependencies) {
|
|
|
44759
44759
|
...currentConfig,
|
|
44760
44760
|
saneYolo: true
|
|
44761
44761
|
} : currentConfig;
|
|
44762
|
-
const originalHookTools = dependencies.resolveHookTools(hookToolConfig(config)
|
|
44762
|
+
const originalHookTools = dependencies.resolveHookTools(hookToolConfig(config));
|
|
44763
44763
|
const prepareCoherence = overrides.ephemeral ? null : (cwd, confine) => resolveCoherence({
|
|
44764
44764
|
worktree: cwd,
|
|
44765
44765
|
confine,
|
|
@@ -50693,10 +50693,7 @@ function createBackendSessionRuntime(dependencies) {
|
|
|
50693
50693
|
getHookPort,
|
|
50694
50694
|
getGitWorkspace: dependencies.getGitWorkspace,
|
|
50695
50695
|
getPlanReviewPort: dependencies.getPlanReviewPort || (() => null),
|
|
50696
|
-
resolveHookTools: (config
|
|
50697
|
-
...options,
|
|
50698
|
-
warn: dependencies.logger.warn.bind(dependencies.logger)
|
|
50699
|
-
}),
|
|
50696
|
+
resolveHookTools: (config) => resolveHookTools(config, { warn: dependencies.logger.warn.bind(dependencies.logger) }),
|
|
50700
50697
|
getUserHooks: (projectId) => hooksForProject(dependencies.config.hooks, projectId),
|
|
50701
50698
|
sessionGuardrails: createSessionGuardrails({
|
|
50702
50699
|
getSettings: () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { A as SIGN_URL_ENV, r as AGENT_URL_ENV } from "./session-BQaAlkib.js";
|
|
2
2
|
import { t as HOOK_URL_ENV } from "./hook-relay-core-DA_bz2KA.js";
|
|
3
|
-
import { n as SANE_YOLO_PATH_ENV, r as saneYoloEnv } from "./sane-yolo-
|
|
3
|
+
import { n as SANE_YOLO_PATH_ENV, r as saneYoloEnv } from "./sane-yolo-CY1F156O.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
//#region session/core/spawn-env.ts
|
|
6
6
|
var GLIMMERVOID_SCRUB_KEYS = [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Gi as e,
|
|
1
|
+
import{Gi as e,Ji as t,Ki as n,Ui as r,Wi as i,Xi as a,Yi as o,qi as s}from"./index-CCwbxRUr.js";var c=.3,l=null;function u(){return a(l)}function d(e){return o(e,l)}async function f(){try{let e=await fetch(r,{credentials:`same-origin`,cache:`no-store`});e.ok&&(l=t(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(t){g(e[t]??e.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(s(e),{credentials:`same-origin`});return t.ok?await t.arrayBuffer():null}catch{return null}}async function v(e){let t=await _(e);if(!t)return!1;let n=p();try{let e=await n.decodeAudioData(t),r=n.createGain();r.gain.value=c,r.connect(n.destination);let i=n.createBufferSource();return i.buffer=e,i.connect(r),i.start(),m(n,e.duration),!0}catch{return n.close().catch(()=>{}),!1}}var y=[659.25,830.61,987.77,1108.73,987.77,830.61,739.99,659.25,739.99,830.61,987.77,1108.73,987.77,830.61];function b(){try{let e=new AudioContext;if(e.state===`suspended`&&e.resume(),e.state===`suspended`)return;let t=e.createGain();t.gain.value=.05,t.connect(e.destination);let n=.125,r=e.currentTime;for(let i=0;i<y.length;i++){let a=r+i*n,o=e.createOscillator(),s=e.createGain();o.type=`square`,o.frequency.value=y[i],s.gain.setValueAtTime(.001,a),s.gain.exponentialRampToValueAtTime(1,a+.01),s.gain.exponentialRampToValueAtTime(.001,a+n*.9),o.connect(s),s.connect(t),o.start(a),o.stop(a+n)}let i=r+y.length*n;t.gain.setValueAtTime(.05,i-.05),t.gain.exponentialRampToValueAtTime(.001,i),setTimeout(()=>e.close().catch(()=>{}),(i-r+.1)*1e3)}catch{}}function x(){try{h(i)}catch{}}function S(e){try{let t=d(e),r=n(t);if(!r){h(t);return}v(r).then(e=>{e||x()})}catch{}}export{f as loadCustomSounds,S as playAlertSound,b as playNyanJingle,g as playToneSequence,d as resolveSoundId,u as soundOptions};
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./updates-view-core-ma4WYKET.js";import{n as e,o as t,r as n}from"./dom-helpers-I_SDCPvs.js";import{J as r,Y as i,q as a}from"./index-
|
|
1
|
+
import"./updates-view-core-ma4WYKET.js";import{n as e,o as t,r as n}from"./dom-helpers-I_SDCPvs.js";import{J as r,Y as i,q as a}from"./index-CCwbxRUr.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
|
package/dist/client/assets/{celebration-player-CAbB15Lo.js → celebration-player-DXYzqPBC.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,o as t,s as n}from"./dom-helpers-I_SDCPvs.js";import{ta as r,yi as i}from"./index-D4dL_C_R.js";import{playToneSequence as a}from"./alert-sound-sC9Iv9lt.js";var o=1.2,s=1.55,c=.12,l=523.25,u=2,d=8,f=(e,t,n)=>({semitone:e,startBeat:t,beats:n}),p={melody:[f(7,4,.5),f(11,4.5,.5),f(12,5,3)],bass:[f(-5,4,1),f(-12,5,3)]},m=[{melody:[f(0,0,1),f(4,1,1),f(7,2,1),f(9,3,1)],bass:[f(-12,0,2),f(-8,2,2)]},{melody:[f(7,0,.67),f(7,.67,.67),f(7,1.33,.67),f(9,2,1),f(5,3,1)],bass:[f(-12,0,2),f(-7,2,2)]},{melody:[f(5,0,1),f(9,1,1),f(7,2,1),f(4,3,1)],bass:[f(-7,0,2),f(-12,2,2)]},{melody:[f(12,0,.5),f(7,.5,.5),f(12,1,.5),f(16,1.5,.5),f(16,2,1),f(14,3,1)],bass:[f(-12,0,2),f(-3,2,2)]},{melody:[f(4,0,1),f(7,1,1),f(4,2,.5),f(5,2.5,.5),f(7,3,.5),f(4,3.5,.5)],bass:[f(-8,0,2),f(-12,2,2)]}].map(e=>({melody:[...e.melody,...p.melody],bass:[...e.bass,...p.bass]}));function h(e,t){return l*2**((e+t)/12)}function g(e,t){let n=(e,n,r)=>e.map(e=>({frequency:h(e.semitone,t),startSeconds:s+e.startBeat*c,durationSeconds:e.beats*c,waveform:n,gain:r}));return[...n(e.melody,`square`,.2),...n(e.melody,`triangle`,.5),...n(e.bass,`triangle`,.6)]}var ee=[{frequency:220,endFrequency:880,startSeconds:0,durationSeconds:.32,waveform:`triangle`,gain:.25},{frequency:160,endFrequency:45,startSeconds:o,durationSeconds:.28,waveform:`sine`,gain:1},{frequency:1400,endFrequency:380,startSeconds:o,durationSeconds:.06,waveform:`square`,gain:.12}];function te(e){let t=m[e%m.length],n=Math.min(e*u,d);return{peakGain:.1,tones:[...ee,...g(t,n)]}}function _(e){return Math.round(Math.sqrt(2*e/780)*1e3)}function v(e,t,n=Math.random){return Math.round(e+n()*(t-e))}function y(e,t=Math.random){let n=[...e];for(let e=n.length-1;e>0;--e){let r=Math.floor(t()*(e+1));[n[e],n[r]]=[n[r],n[e]]}return n}var ne=.6,re=.25,ie=1.6;function ae(e){return Math.min(ne+e*re,ie)}var b=[`var(--accent)`,`var(--state-running)`,`var(--state-idle)`,`var(--state-waiting)`,`var(--state-failed)`];function oe(e,t=Math.random){let n=v(320,520,t),r=v(1800,2800,t);return[[`--confetti-start-x`,`${v(4,96,t)}%`],[`--confetti-x`,`${v(-140,140,t)}px`],[`--confetti-rise`,`${-v(20,55,t)}px`],[`--confetti-fall`,`${v(45,70,t)}vh`],[`--confetti-rise-ms`,`${n}ms`],[`--confetti-fall-ms`,`${r}ms`],[`--confetti-flight-ms`,`${n+r}ms`],[`--confetti-tilt`,`${v(0,180,t)}deg`],[`--confetti-spin`,`${v(-360,360,t)}deg`],[`--confetti-flutter-ms`,`${v(160,340,t)}ms`],[`--confetti-delay`,`${v(0,160,t)}ms`],[`--confetti-color`,b[e%b.length]]]}var se=`<svg viewBox="0 0 36 36" aria-hidden="true"><circle class="merge-bullseye-ring-light" cx="18" cy="18" r="17"/><circle class="merge-bullseye-ring-red" cx="18" cy="18" r="13"/><circle class="merge-bullseye-ring-light" cx="18" cy="18" r="9"/><circle class="merge-bullseye-ring-red" cx="18" cy="18" r="5"/></svg>`,ce=`<svg viewBox="0 0 26 8" aria-hidden="true"><path class="merge-bullseye-dart-flight" d="M0 0L7 3V5L0 8L2 4Z"/><rect class="merge-bullseye-dart-shaft" x="6" y="3.3" width="8" height="1.4"/><rect class="merge-bullseye-dart-barrel" x="13" y="2.5" width="7" height="3" rx="1"/><path class="merge-bullseye-dart-tip" d="M20 3L26 4L20 5Z"/></svg>`;function le(){let e=n(`div`,`merge-bullseye-target`,se);return e.append(t(`span`,`merge-bullseye-ripple`)),e}function ue(){let e=t(`div`,`merge-bullseye-dart-drift`),r=t(`div`,`merge-bullseye-dart-arc`),i=t(`div`,`merge-bullseye-dart-aim`);return i.append(n(`div`,`merge-bullseye-dart`,ce)),r.append(i),e.append(r),e}function de(){let e=t(`div`,`merge-bullseye-range`),n=t(`div`,`merge-bullseye-track`);return n.append(ue()),e.append(le(),n),e}var fe={title:`BULLSEYE!`,buildScene:de},pe=6,x=30,S=-14,C=16;function w(e=Math.random){return[[`--crosshair-start-left`,`${v(pe,x,e)}%`],[`--crosshair-start-offset-y`,`${v(S,C,e)}px`]]}var T=`<svg viewBox="0 0 26 40" aria-hidden="true"><path class="merge-headshot-target-body" d="M9 13H17L18 16Q25 18 25 24V40H1V24Q1 18 8 16Z"/><circle class="merge-headshot-target-head" cx="13" cy="7" r="6"/><circle class="merge-headshot-target-ring" cx="13" cy="7" r="3"/><circle class="merge-headshot-target-ring" cx="13" cy="27" r="6"/><circle class="merge-headshot-target-ring" cx="13" cy="27" r="2.5"/></svg>`,E=`<svg viewBox="0 0 22 22" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="M11 0V5M11 17V22M0 11H5M17 11H22"/><circle class="merge-headshot-crosshair-dot" cx="11" cy="11" r="1"/></svg>`,D=`<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M3 3L8 8M21 3L16 8M3 21L8 16M21 21L16 16"/></svg>`;function O(){let r=t(`div`,`merge-headshot-sweep`);e(r,w());let i=t(`div`,`merge-headshot-aim`);i.append(n(`div`,`merge-headshot-crosshair`,E));let a=t(`div`,`merge-headshot-bob`);return a.append(i,n(`div`,`merge-headshot-hitmarker`,D)),r.append(a),r}function k(){let e=t(`div`,`merge-headshot-range`),r=t(`div`,`merge-headshot-track`);return r.append(O()),e.append(n(`div`,`merge-headshot-target`,T),r),e}var A={title:`HEADSHOT!`,buildScene:k},j=[`10`,`J`,`Q`,`K`,`A`],M=160,N=19,P=5,F=9,I=780,L=70,R=70,z=35;function B(e){let t=j.length-1,n=e-t/2;return{offsetPx:n*N,titleSpreadFraction:n/t,tiltDegrees:n*P,bottomPx:F-n**2,dealLeadMs:I-e*L,flipLeadMs:M+(t-e)*R,waveDelayMs:e*z}}function me(e){return[[`--card-offset`,`${e.offsetPx}px`],[`--card-title-spread`,String(e.titleSpreadFraction)],[`--card-tilt`,`${e.tiltDegrees}deg`],[`--card-bottom`,`${e.bottomPx}px`],[`--card-deal-lead-ms`,`${e.dealLeadMs}ms`],[`--card-flip-lead-ms`,`${e.flipLeadMs}ms`],[`--card-wave-delay-ms`,`${e.waveDelayMs}ms`]]}function he(){return[[`--card-flip-ms`,`${M}ms`]]}var ge=`<svg viewBox="0 0 10 9" aria-hidden="true"><path d="M5 8.5C5 8.5 0 5.3 0 2.6C0 1.1 1.2 0 2.6 0C3.6 0 4.5 .6 5 1.4C5.5 .6 6.4 0 7.4 0C8.8 0 10 1.1 10 2.6C10 5.3 5 8.5 5 8.5Z"/></svg>`;function _e(n,r){let i=t(`div`,`merge-flush-deal`);e(i,me(B(r)));let a=t(`div`,`merge-flush-hop`),o=t(`div`,`merge-flush-card`),s=t(`div`,`merge-flush-face`);return s.append(t(`span`,`merge-flush-rank`,n)),s.insertAdjacentHTML(`beforeend`,ge),o.append(t(`div`,`merge-flush-back`),s),a.append(o),i.append(a),i}function ve(){let n=t(`div`,`merge-flush-table`);return e(n,he()),n.append(...j.map(_e)),n}var ye={title:`ROYAL FLUSH!`,buildScene:ve},be=[1,2,3,4],xe=14,Se=3,Ce=3,V=10,we=20,Te=2,H=28,U=18,Ee=.01,De=1.5,Oe=2200,ke=1,W=120,G=.35,Ae=15,je=105,Me=4,Ne=65,Pe=145;function Fe(e){return Math.round(e/(Math.PI*U)*360)}function K(e){return we-e*Te}function q(e){return e.rowIndex*xe+e.depthIndex*Se}function J(e,t,n){return Array.from({length:n},(r,i)=>e+(t-e)*i/(n-1))}function Y(){return be.flatMap((e,t)=>Array.from({length:e},(n,r)=>({rowIndex:t,depthIndex:e-1-r})))}function Ie(e,t){let n=y(J(Ae,je,e),t),r=y(J(Ne,Pe,e),t);return n.map((e,n)=>({angleDegrees:e+v(-4,Me,t),depthScalePercent:Math.round(r[n])}))}function Le(e,t,n){let r=v(240,380,n),i=t.angleDegrees*Math.PI/180,a=r*Math.cos(i),o=(r*Math.sin(i))**2/1560,s=v(15,45,n),c=_(o),l=_(o+s),u=c+l,d=v(540,1080,n),f=a>=0?1:-1,p=q(e);return{depthIndex:e.depthIndex,launchAngleDegrees:t.angleDegrees,distanceFromHeadPinPx:p,layer:K(e.depthIndex),flyXPx:Math.round(a*u/1e3),peakRisePx:Math.round(o),landingDropPx:s,riseMs:c,fallMs:l,flightMs:u,spinDegrees:Math.round(f*d*u/1e3),glintMs:Math.round(180/d*1e3),depthScalePercent:t.depthScalePercent,delayMs:Math.round(p/G)}}function Re(e=Math.random){let t=Y(),n=Ie(t.length,e);return t.map((t,r)=>Le(t,n[r],e))}function ze(e){return[[`--pin-left`,`${e.distanceFromHeadPinPx}px`],[`--pin-raise`,`${e.depthIndex*Ce}px`],[`--pin-shade`,`${100-e.depthIndex*12}%`],[`--pin-fly-x`,`${e.flyXPx}px`],[`--pin-peak-y`,`${-e.peakRisePx}px`],[`--pin-land-y`,`${e.landingDropPx}px`],[`--pin-rise-ms`,`${e.riseMs}ms`],[`--pin-fall-ms`,`${e.fallMs}ms`],[`--pin-flight-ms`,`${e.flightMs}ms`],[`--pin-spin`,`${e.spinDegrees}deg`],[`--pin-glint-ms`,`${e.glintMs}ms`],[`--pin-depth-scale`,`${e.depthScalePercent}%`],[`--pin-depth-shade`,`${e.depthScalePercent-10}%`],[`--pin-delay`,`${e.delayMs}ms`],[`--pin-layer`,String(e.layer)]]}function Be(){return K(De)}function Ve(){return Math.max(...Y().map(q))+V}function He(){let e=Ve(),t=H+e+U-ke;return[[`--ball-follow-px`,`${W}px`],[`--ball-follow-ms`,`${Math.round(W/G)}ms`],[`--ball-follow-spin`,`${Fe(W)}deg`],[`--ball-size`,`${U}px`],[`--ball-approach-spin`,`${Oe}deg`],[`--ball-impact-inset`,`${t}px`],[`--ball-layer`,String(Be())],[`--rack-right`,`${H}px`],[`--rack-width`,`${e}px`],[`--pin-width`,`${V}px`]]}function Ue(e=Math.random){return e()>=Ee?null:r[Math.floor(e()*r.length)].sprite}var We=`<svg viewBox="0 0 10 24" aria-hidden="true"><path class="merge-strike-pin-body" d="M5 0C7 0 7.6 2 7.2 4C6.9 5.6 6.3 6.6 6.4 8C6.6 10 9.6 12 9.6 16C9.6 19.5 8.4 22 7.6 24H2.4C1.6 22 .4 19.5 .4 16C.4 12 3.4 10 3.6 8C3.7 6.6 3.1 5.6 2.8 4C2.4 2 3 0 5 0Z"/><path class="merge-strike-pin-stripe" d="M3.1 5.2H6.9V6.2H3.1ZM3.4 7H6.6V8H3.4Z"/></svg>`;function Ge(r){let i=t(`span`,`merge-strike-pin`);return i.append(n(`span`,`merge-strike-pin-arc`,We)),e(i,ze(r)),i}function Ke(){let e=Ue();if(!e)return t(`span`,`merge-strike-ball`);let n=t(`span`,`merge-strike-ball is-animal`);return n.append(t(`span`,`nyan-sprite ${e}`)),n}function qe(){let n=t(`div`,`merge-strike-lane`);e(n,He());let r=t(`div`,`merge-strike-rack`);r.append(...Re().map(Ge));let i=t(`div`,`merge-strike-track`);return i.append(Ke()),n.append(r,i),n}var Je={title:`STRIKE!`,buildScene:qe},Ye=20,Xe=92,Ze=23,Qe=7,$e=-40;function et(){let e=_(72),t=_(69),n=780*t/1e3;return{launchHeightPx:Ye,peakHeightPx:Xe,heightThroughRimPx:Ze,heightLeavingNetPx:Qe,heightOutOfCardPx:$e,riseMs:e,fallToRimMs:t,speedThroughRimPxPerSecond:n,netCatchMs:Math.round(32/n*1e3),dropMs:_(47)}}function tt(e=et()){return[[`--ball-launch-y`,`${-e.launchHeightPx}px`],[`--ball-peak-y`,`${-e.peakHeightPx}px`],[`--ball-rim-y`,`${-e.heightThroughRimPx}px`],[`--ball-net-exit-y`,`${-e.heightLeavingNetPx}px`],[`--ball-drop-out-y`,`${-e.heightOutOfCardPx}px`],[`--ball-rise-ms`,`${e.riseMs}ms`],[`--ball-fall-to-rim-ms`,`${e.fallToRimMs}ms`],[`--ball-to-rim-ms`,`${e.riseMs+e.fallToRimMs}ms`],[`--ball-net-catch-ms`,`${e.netCatchMs}ms`],[`--ball-drop-ms`,`${e.dropMs}ms`]]}var nt=`<svg viewBox="0 0 40 48" aria-hidden="true"><rect class="merge-swish-pole" x="36" y="28" width="2" height="20"/><rect class="merge-swish-backboard" x="35" y="2" width="3" height="26" rx="1"/><path class="merge-swish-rim" d="M31 18H35M7 18A12 2.5 0 0 1 31 18"/></svg>`,rt=`<svg viewBox="0 0 40 48" aria-hidden="true"><g class="merge-swish-net"><path d="M8 18L12 32M13.5 18L15.5 32M19 18V32M24.5 18L22.5 32M30 18L26 32M9.5 23Q19 25 28.5 23M11 28Q19 29.5 27 28"/></g><path class="merge-swish-rim" d="M7 18A12 2.5 0 0 0 31 18"/></svg>`;function it(){let e=t(`div`,`merge-swish-ball-drift`),n=t(`div`,`merge-swish-ball-arc`);return n.append(t(`span`,`merge-swish-ball`)),e.append(n),e}function X(){let r=t(`div`,`merge-swish-court`);e(r,tt());let i=t(`div`,`merge-swish-track`);return i.append(it()),r.append(n(`div`,`merge-swish-hoop-back`,nt),i,n(`div`,`merge-swish-hoop-front`,rt)),r}var Z=[Je,{title:`SWISH!`,buildScene:X},fe,A,ye],at=48,Q=5600,$=null;function ot(n){let r=t(`span`,`merge-confetti-piece`),i=t(`span`,`merge-confetti-arc`);return i.append(t(`span`,`merge-confetti-paper`)),r.append(i),e(r,oe(n)),r}function st(e){let n=t(`p`,`merge-celebration-title`);return n.setAttribute(`aria-hidden`,`true`),Array.from(e).forEach((e,r)=>{let i=t(`span`,`merge-celebration-letter`,e);i.style.setProperty(`--letter-delay`,`${r*45}ms`),n.append(i)}),n}function ct(e,t,n){let r=t.firstElementChild,i=t.lastElementChild;r instanceof HTMLElement&&i instanceof HTMLElement&&(e.style.setProperty(`--celebration-title-width`,`${i.offsetLeft+i.offsetWidth-r.offsetLeft}px`),e.style.setProperty(`--celebration-title-center-y`,`${t.offsetTop+t.offsetHeight/2-n.offsetTop}px`))}function lt(e){let n=t(`div`,`merge-celebration-scene`);return n.setAttribute(`aria-hidden`,`true`),n.append(e.buildScene()),n}function ut(){return Z[Math.floor(Math.random()*Z.length)]}function dt(e){if(i())try{a(te(e))}catch{}}function ft(e){let n=t(`ul`,`merge-celebration-details`);for(let r of e)n.append(t(`li`,`merge-celebration-detail`,r));return n}function pt(e,n){let r=ut();$?.remove(),dt(n);let i=t(`div`,`merge-celebration`);i.setAttribute(`role`,`status`);let a=t(`div`,`merge-celebration-card`),o=t(`div`,`merge-celebration-stage`),s=st(r.title),c=lt(r);o.append(s,t(`p`,`merge-celebration-message`,e.message),ft(e.detailLines),c);let l=t(`div`,`merge-confetti`);l.style.setProperty(`--confetti-scale`,String(ae(n)));for(let e=0;e<at;e+=1)l.append(ot(e));a.append(l,o),i.append(a),document.body.append(i),ct(o,s,c),$=i,window.setTimeout(()=>{i.remove(),$===i&&($=null)},Q)}export{Q as CELEBRATION_DURATION_MS,pt as playCelebration};
|
|
1
|
+
import{_ as e,o as t,s as n}from"./dom-helpers-I_SDCPvs.js";import{bi as r,na as i}from"./index-CCwbxRUr.js";import{playToneSequence as a}from"./alert-sound-CZx5Zm05.js";var o=1.2,s=1.55,c=.12,l=523.25,u=2,d=8,f=(e,t,n)=>({semitone:e,startBeat:t,beats:n}),p={melody:[f(7,4,.5),f(11,4.5,.5),f(12,5,3)],bass:[f(-5,4,1),f(-12,5,3)]},m=[{melody:[f(0,0,1),f(4,1,1),f(7,2,1),f(9,3,1)],bass:[f(-12,0,2),f(-8,2,2)]},{melody:[f(7,0,.67),f(7,.67,.67),f(7,1.33,.67),f(9,2,1),f(5,3,1)],bass:[f(-12,0,2),f(-7,2,2)]},{melody:[f(5,0,1),f(9,1,1),f(7,2,1),f(4,3,1)],bass:[f(-7,0,2),f(-12,2,2)]},{melody:[f(12,0,.5),f(7,.5,.5),f(12,1,.5),f(16,1.5,.5),f(16,2,1),f(14,3,1)],bass:[f(-12,0,2),f(-3,2,2)]},{melody:[f(4,0,1),f(7,1,1),f(4,2,.5),f(5,2.5,.5),f(7,3,.5),f(4,3.5,.5)],bass:[f(-8,0,2),f(-12,2,2)]}].map(e=>({melody:[...e.melody,...p.melody],bass:[...e.bass,...p.bass]}));function h(e,t){return l*2**((e+t)/12)}function g(e,t){let n=(e,n,r)=>e.map(e=>({frequency:h(e.semitone,t),startSeconds:s+e.startBeat*c,durationSeconds:e.beats*c,waveform:n,gain:r}));return[...n(e.melody,`square`,.2),...n(e.melody,`triangle`,.5),...n(e.bass,`triangle`,.6)]}var ee=[{frequency:220,endFrequency:880,startSeconds:0,durationSeconds:.32,waveform:`triangle`,gain:.25},{frequency:160,endFrequency:45,startSeconds:o,durationSeconds:.28,waveform:`sine`,gain:1},{frequency:1400,endFrequency:380,startSeconds:o,durationSeconds:.06,waveform:`square`,gain:.12}];function te(e){let t=m[e%m.length],n=Math.min(e*u,d);return{peakGain:.1,tones:[...ee,...g(t,n)]}}function _(e){return Math.round(Math.sqrt(2*e/780)*1e3)}function v(e,t,n=Math.random){return Math.round(e+n()*(t-e))}function y(e,t=Math.random){let n=[...e];for(let e=n.length-1;e>0;--e){let r=Math.floor(t()*(e+1));[n[e],n[r]]=[n[r],n[e]]}return n}var ne=.6,re=.25,ie=1.6;function ae(e){return Math.min(ne+e*re,ie)}var b=[`var(--accent)`,`var(--state-running)`,`var(--state-idle)`,`var(--state-waiting)`,`var(--state-failed)`];function oe(e,t=Math.random){let n=v(320,520,t),r=v(1800,2800,t);return[[`--confetti-start-x`,`${v(4,96,t)}%`],[`--confetti-x`,`${v(-140,140,t)}px`],[`--confetti-rise`,`${-v(20,55,t)}px`],[`--confetti-fall`,`${v(45,70,t)}vh`],[`--confetti-rise-ms`,`${n}ms`],[`--confetti-fall-ms`,`${r}ms`],[`--confetti-flight-ms`,`${n+r}ms`],[`--confetti-tilt`,`${v(0,180,t)}deg`],[`--confetti-spin`,`${v(-360,360,t)}deg`],[`--confetti-flutter-ms`,`${v(160,340,t)}ms`],[`--confetti-delay`,`${v(0,160,t)}ms`],[`--confetti-color`,b[e%b.length]]]}var se=`<svg viewBox="0 0 36 36" aria-hidden="true"><circle class="merge-bullseye-ring-light" cx="18" cy="18" r="17"/><circle class="merge-bullseye-ring-red" cx="18" cy="18" r="13"/><circle class="merge-bullseye-ring-light" cx="18" cy="18" r="9"/><circle class="merge-bullseye-ring-red" cx="18" cy="18" r="5"/></svg>`,ce=`<svg viewBox="0 0 26 8" aria-hidden="true"><path class="merge-bullseye-dart-flight" d="M0 0L7 3V5L0 8L2 4Z"/><rect class="merge-bullseye-dart-shaft" x="6" y="3.3" width="8" height="1.4"/><rect class="merge-bullseye-dart-barrel" x="13" y="2.5" width="7" height="3" rx="1"/><path class="merge-bullseye-dart-tip" d="M20 3L26 4L20 5Z"/></svg>`;function le(){let e=n(`div`,`merge-bullseye-target`,se);return e.append(t(`span`,`merge-bullseye-ripple`)),e}function ue(){let e=t(`div`,`merge-bullseye-dart-drift`),r=t(`div`,`merge-bullseye-dart-arc`),i=t(`div`,`merge-bullseye-dart-aim`);return i.append(n(`div`,`merge-bullseye-dart`,ce)),r.append(i),e.append(r),e}function de(){let e=t(`div`,`merge-bullseye-range`),n=t(`div`,`merge-bullseye-track`);return n.append(ue()),e.append(le(),n),e}var fe={title:`BULLSEYE!`,buildScene:de},pe=6,x=30,S=-14,C=16;function w(e=Math.random){return[[`--crosshair-start-left`,`${v(pe,x,e)}%`],[`--crosshair-start-offset-y`,`${v(S,C,e)}px`]]}var T=`<svg viewBox="0 0 26 40" aria-hidden="true"><path class="merge-headshot-target-body" d="M9 13H17L18 16Q25 18 25 24V40H1V24Q1 18 8 16Z"/><circle class="merge-headshot-target-head" cx="13" cy="7" r="6"/><circle class="merge-headshot-target-ring" cx="13" cy="7" r="3"/><circle class="merge-headshot-target-ring" cx="13" cy="27" r="6"/><circle class="merge-headshot-target-ring" cx="13" cy="27" r="2.5"/></svg>`,E=`<svg viewBox="0 0 22 22" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="M11 0V5M11 17V22M0 11H5M17 11H22"/><circle class="merge-headshot-crosshair-dot" cx="11" cy="11" r="1"/></svg>`,D=`<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M3 3L8 8M21 3L16 8M3 21L8 16M21 21L16 16"/></svg>`;function O(){let r=t(`div`,`merge-headshot-sweep`);e(r,w());let i=t(`div`,`merge-headshot-aim`);i.append(n(`div`,`merge-headshot-crosshair`,E));let a=t(`div`,`merge-headshot-bob`);return a.append(i,n(`div`,`merge-headshot-hitmarker`,D)),r.append(a),r}function k(){let e=t(`div`,`merge-headshot-range`),r=t(`div`,`merge-headshot-track`);return r.append(O()),e.append(n(`div`,`merge-headshot-target`,T),r),e}var A={title:`HEADSHOT!`,buildScene:k},j=[`10`,`J`,`Q`,`K`,`A`],M=160,N=19,P=5,F=9,I=780,L=70,R=70,z=35;function B(e){let t=j.length-1,n=e-t/2;return{offsetPx:n*N,titleSpreadFraction:n/t,tiltDegrees:n*P,bottomPx:F-n**2,dealLeadMs:I-e*L,flipLeadMs:M+(t-e)*R,waveDelayMs:e*z}}function me(e){return[[`--card-offset`,`${e.offsetPx}px`],[`--card-title-spread`,String(e.titleSpreadFraction)],[`--card-tilt`,`${e.tiltDegrees}deg`],[`--card-bottom`,`${e.bottomPx}px`],[`--card-deal-lead-ms`,`${e.dealLeadMs}ms`],[`--card-flip-lead-ms`,`${e.flipLeadMs}ms`],[`--card-wave-delay-ms`,`${e.waveDelayMs}ms`]]}function he(){return[[`--card-flip-ms`,`${M}ms`]]}var ge=`<svg viewBox="0 0 10 9" aria-hidden="true"><path d="M5 8.5C5 8.5 0 5.3 0 2.6C0 1.1 1.2 0 2.6 0C3.6 0 4.5 .6 5 1.4C5.5 .6 6.4 0 7.4 0C8.8 0 10 1.1 10 2.6C10 5.3 5 8.5 5 8.5Z"/></svg>`;function _e(n,r){let i=t(`div`,`merge-flush-deal`);e(i,me(B(r)));let a=t(`div`,`merge-flush-hop`),o=t(`div`,`merge-flush-card`),s=t(`div`,`merge-flush-face`);return s.append(t(`span`,`merge-flush-rank`,n)),s.insertAdjacentHTML(`beforeend`,ge),o.append(t(`div`,`merge-flush-back`),s),a.append(o),i.append(a),i}function ve(){let n=t(`div`,`merge-flush-table`);return e(n,he()),n.append(...j.map(_e)),n}var ye={title:`ROYAL FLUSH!`,buildScene:ve},be=[1,2,3,4],xe=14,Se=3,Ce=3,V=10,we=20,Te=2,H=28,U=18,Ee=.01,De=1.5,Oe=2200,ke=1,W=120,G=.35,Ae=15,je=105,Me=4,Ne=65,Pe=145;function Fe(e){return Math.round(e/(Math.PI*U)*360)}function K(e){return we-e*Te}function q(e){return e.rowIndex*xe+e.depthIndex*Se}function J(e,t,n){return Array.from({length:n},(r,i)=>e+(t-e)*i/(n-1))}function Y(){return be.flatMap((e,t)=>Array.from({length:e},(n,r)=>({rowIndex:t,depthIndex:e-1-r})))}function Ie(e,t){let n=y(J(Ae,je,e),t),r=y(J(Ne,Pe,e),t);return n.map((e,n)=>({angleDegrees:e+v(-4,Me,t),depthScalePercent:Math.round(r[n])}))}function Le(e,t,n){let r=v(240,380,n),i=t.angleDegrees*Math.PI/180,a=r*Math.cos(i),o=(r*Math.sin(i))**2/1560,s=v(15,45,n),c=_(o),l=_(o+s),u=c+l,d=v(540,1080,n),f=a>=0?1:-1,p=q(e);return{depthIndex:e.depthIndex,launchAngleDegrees:t.angleDegrees,distanceFromHeadPinPx:p,layer:K(e.depthIndex),flyXPx:Math.round(a*u/1e3),peakRisePx:Math.round(o),landingDropPx:s,riseMs:c,fallMs:l,flightMs:u,spinDegrees:Math.round(f*d*u/1e3),glintMs:Math.round(180/d*1e3),depthScalePercent:t.depthScalePercent,delayMs:Math.round(p/G)}}function Re(e=Math.random){let t=Y(),n=Ie(t.length,e);return t.map((t,r)=>Le(t,n[r],e))}function ze(e){return[[`--pin-left`,`${e.distanceFromHeadPinPx}px`],[`--pin-raise`,`${e.depthIndex*Ce}px`],[`--pin-shade`,`${100-e.depthIndex*12}%`],[`--pin-fly-x`,`${e.flyXPx}px`],[`--pin-peak-y`,`${-e.peakRisePx}px`],[`--pin-land-y`,`${e.landingDropPx}px`],[`--pin-rise-ms`,`${e.riseMs}ms`],[`--pin-fall-ms`,`${e.fallMs}ms`],[`--pin-flight-ms`,`${e.flightMs}ms`],[`--pin-spin`,`${e.spinDegrees}deg`],[`--pin-glint-ms`,`${e.glintMs}ms`],[`--pin-depth-scale`,`${e.depthScalePercent}%`],[`--pin-depth-shade`,`${e.depthScalePercent-10}%`],[`--pin-delay`,`${e.delayMs}ms`],[`--pin-layer`,String(e.layer)]]}function Be(){return K(De)}function Ve(){return Math.max(...Y().map(q))+V}function He(){let e=Ve(),t=H+e+U-ke;return[[`--ball-follow-px`,`${W}px`],[`--ball-follow-ms`,`${Math.round(W/G)}ms`],[`--ball-follow-spin`,`${Fe(W)}deg`],[`--ball-size`,`${U}px`],[`--ball-approach-spin`,`${Oe}deg`],[`--ball-impact-inset`,`${t}px`],[`--ball-layer`,String(Be())],[`--rack-right`,`${H}px`],[`--rack-width`,`${e}px`],[`--pin-width`,`${V}px`]]}function Ue(e=Math.random){return e()>=Ee?null:i[Math.floor(e()*i.length)].sprite}var We=`<svg viewBox="0 0 10 24" aria-hidden="true"><path class="merge-strike-pin-body" d="M5 0C7 0 7.6 2 7.2 4C6.9 5.6 6.3 6.6 6.4 8C6.6 10 9.6 12 9.6 16C9.6 19.5 8.4 22 7.6 24H2.4C1.6 22 .4 19.5 .4 16C.4 12 3.4 10 3.6 8C3.7 6.6 3.1 5.6 2.8 4C2.4 2 3 0 5 0Z"/><path class="merge-strike-pin-stripe" d="M3.1 5.2H6.9V6.2H3.1ZM3.4 7H6.6V8H3.4Z"/></svg>`;function Ge(r){let i=t(`span`,`merge-strike-pin`);return i.append(n(`span`,`merge-strike-pin-arc`,We)),e(i,ze(r)),i}function Ke(){let e=Ue();if(!e)return t(`span`,`merge-strike-ball`);let n=t(`span`,`merge-strike-ball is-animal`);return n.append(t(`span`,`nyan-sprite ${e}`)),n}function qe(){let n=t(`div`,`merge-strike-lane`);e(n,He());let r=t(`div`,`merge-strike-rack`);r.append(...Re().map(Ge));let i=t(`div`,`merge-strike-track`);return i.append(Ke()),n.append(r,i),n}var Je={title:`STRIKE!`,buildScene:qe},Ye=20,Xe=92,Ze=23,Qe=7,$e=-40;function et(){let e=_(72),t=_(69),n=780*t/1e3;return{launchHeightPx:Ye,peakHeightPx:Xe,heightThroughRimPx:Ze,heightLeavingNetPx:Qe,heightOutOfCardPx:$e,riseMs:e,fallToRimMs:t,speedThroughRimPxPerSecond:n,netCatchMs:Math.round(32/n*1e3),dropMs:_(47)}}function tt(e=et()){return[[`--ball-launch-y`,`${-e.launchHeightPx}px`],[`--ball-peak-y`,`${-e.peakHeightPx}px`],[`--ball-rim-y`,`${-e.heightThroughRimPx}px`],[`--ball-net-exit-y`,`${-e.heightLeavingNetPx}px`],[`--ball-drop-out-y`,`${-e.heightOutOfCardPx}px`],[`--ball-rise-ms`,`${e.riseMs}ms`],[`--ball-fall-to-rim-ms`,`${e.fallToRimMs}ms`],[`--ball-to-rim-ms`,`${e.riseMs+e.fallToRimMs}ms`],[`--ball-net-catch-ms`,`${e.netCatchMs}ms`],[`--ball-drop-ms`,`${e.dropMs}ms`]]}var nt=`<svg viewBox="0 0 40 48" aria-hidden="true"><rect class="merge-swish-pole" x="36" y="28" width="2" height="20"/><rect class="merge-swish-backboard" x="35" y="2" width="3" height="26" rx="1"/><path class="merge-swish-rim" d="M31 18H35M7 18A12 2.5 0 0 1 31 18"/></svg>`,rt=`<svg viewBox="0 0 40 48" aria-hidden="true"><g class="merge-swish-net"><path d="M8 18L12 32M13.5 18L15.5 32M19 18V32M24.5 18L22.5 32M30 18L26 32M9.5 23Q19 25 28.5 23M11 28Q19 29.5 27 28"/></g><path class="merge-swish-rim" d="M7 18A12 2.5 0 0 0 31 18"/></svg>`;function it(){let e=t(`div`,`merge-swish-ball-drift`),n=t(`div`,`merge-swish-ball-arc`);return n.append(t(`span`,`merge-swish-ball`)),e.append(n),e}function X(){let r=t(`div`,`merge-swish-court`);e(r,tt());let i=t(`div`,`merge-swish-track`);return i.append(it()),r.append(n(`div`,`merge-swish-hoop-back`,nt),i,n(`div`,`merge-swish-hoop-front`,rt)),r}var Z=[Je,{title:`SWISH!`,buildScene:X},fe,A,ye],at=48,Q=5600,$=null;function ot(n){let r=t(`span`,`merge-confetti-piece`),i=t(`span`,`merge-confetti-arc`);return i.append(t(`span`,`merge-confetti-paper`)),r.append(i),e(r,oe(n)),r}function st(e){let n=t(`p`,`merge-celebration-title`);return n.setAttribute(`aria-hidden`,`true`),Array.from(e).forEach((e,r)=>{let i=t(`span`,`merge-celebration-letter`,e);i.style.setProperty(`--letter-delay`,`${r*45}ms`),n.append(i)}),n}function ct(e,t,n){let r=t.firstElementChild,i=t.lastElementChild;r instanceof HTMLElement&&i instanceof HTMLElement&&(e.style.setProperty(`--celebration-title-width`,`${i.offsetLeft+i.offsetWidth-r.offsetLeft}px`),e.style.setProperty(`--celebration-title-center-y`,`${t.offsetTop+t.offsetHeight/2-n.offsetTop}px`))}function lt(e){let n=t(`div`,`merge-celebration-scene`);return n.setAttribute(`aria-hidden`,`true`),n.append(e.buildScene()),n}function ut(){return Z[Math.floor(Math.random()*Z.length)]}function dt(e){if(r())try{a(te(e))}catch{}}function ft(e){let n=t(`ul`,`merge-celebration-details`);for(let r of e)n.append(t(`li`,`merge-celebration-detail`,r));return n}function pt(e,n){let r=ut();$?.remove(),dt(n);let i=t(`div`,`merge-celebration`);i.setAttribute(`role`,`status`);let a=t(`div`,`merge-celebration-card`),o=t(`div`,`merge-celebration-stage`),s=st(r.title),c=lt(r);o.append(s,t(`p`,`merge-celebration-message`,e.message),ft(e.detailLines),c);let l=t(`div`,`merge-confetti`);l.style.setProperty(`--confetti-scale`,String(ae(n)));for(let e=0;e<at;e+=1)l.append(ot(e));a.append(l,o),i.append(a),document.body.append(i),ct(o,s,c),$=i,window.setTimeout(()=>{i.remove(),$===i&&($=null)},Q)}export{Q as CELEBRATION_DURATION_MS,pt as playCelebration};
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as e,o as t,u as n,y as r}from"./dom-helpers-I_SDCPvs.js";import{o as i}from"./card-registry-BTYF9l0b.js";import{i as a}from"./modal-BRwbyxA2.js";import{c as o,i as ee}from"./action-status-Cfrg8b4w.js";import{Et as te,Ft as s,It as c,Mt as l,Nt as u,Ot as d,St as f,Xr as p,
|
|
1
|
+
import{d as e,o as t,u as n,y as r}from"./dom-helpers-I_SDCPvs.js";import{o as i}from"./card-registry-BTYF9l0b.js";import{i as a}from"./modal-BRwbyxA2.js";import{c as o,i as ee}from"./action-status-Cfrg8b4w.js";import{Et as te,Ft as s,It as c,Mt as l,Nt as u,Ot as d,St as f,Xr as p,Zr as m,_t as h,gt as ne,ht as g,it as _,kt as v,m as re,mt as ie,on as ae,pt as y,sn as b,vt as x,yt as S}from"./index-CCwbxRUr.js";import{t as C}from"./team-review-panel-D4DYefn3.js";import{t as w}from"./pr-queue-columns-B1zPUfHo.js";var oe={HIGH:`High confidence`,MEDIUM:`Medium confidence`,LOW:`Low confidence`},se={HIGH:`ok`,MEDIUM:`warn`,LOW:`muted`},T={queued:`Waiting to be researched`,running:`Researching`,error:`Research failed`,aside:`Set aside`},ce={forum:`Forum`,discord:`Discord`};function E(e){return e.status===`ready`&&e.verdict?{text:oe[e.verdict],tone:se[e.verdict]}:e.status===`ready`?{text:`Researched`,tone:`muted`}:e.status===`error`?{text:T.error,tone:`danger`}:{text:T[e.status],tone:`muted`}}function D(e){let t=ce[e.item.source];return e.item.channel?`${t} #${e.item.channel}`:t}function O(e){return e.entry.item.title||`Untitled question`}function le(e){return e.status!==`running`&&e.status!==`queued`}function k(e){return e.status!==`aside`}function A(e){let t=e.find(e=>e.id===`working`)?.items.length??0;return t===0?`No community question needs you right now.`:`No community question needs you right now. ${t} ${t===1?`question is`:`questions are`} being researched.`}function j(e){return e?e.configured===!1?e.reason??`The community lane is not set up yet.`:`No community questions yet. New ones asked after you turned this on show up here.`:`Waiting for the community lane to report.`}function M(e){return e.filter(e=>!e.isWorkspace&&!e.isEphemeral).map(({id:e,name:t})=>({id:e,name:t})).toSorted((e,t)=>e.name.localeCompare(t.name))}var N=null,P=null,F=null,I=null,L=[],R=null,z=!1,B=null,V=null,H=``,U=new Map;function W(){return M([...i].map(([e,t])=>({id:e,name:t.nameEl.textContent??e,isWorkspace:t.card.dataset.workspace!==void 0,isEphemeral:t.card.dataset.ephemeral!==void 0})))}function G(e,n){let r=t(`button`,`pr-action pr-action-ghost`,e);return r.type=`button`,r.disabled=!m(n),r.addEventListener(`click`,()=>p(n)),r}function K(e,n,r){let i=t(`button`,`pr-action`,e);return i.type=`button`,i.disabled=!n,i.addEventListener(`click`,r),i}function q(e,n,r){let i=t(`ul`,e);i.setAttribute(`aria-label`,n);for(let e of r)i.append(t(`li`,null,e));return i}function ue(e){let n=t(`div`,`pr-detail-heading`),r=t(`div`,`pr-detail-title`);r.append(t(`h2`,null,e.item.title||`Untitled question`));let i=t(`div`,`pr-detail-meta`),a=Date.parse(e.item.createdAt);return i.append(t(`span`,null,e.item.author),t(`span`,null,D(e))),Number.isNaN(a)||i.append(t(`span`,null,`Asked ${re(a)}`)),n.append(r,i),n}function de(e){let n=t(`section`,`community-question`);return n.setAttribute(`aria-label`,`Question as asked`),n.append(t(`h3`,`pr-section-heading`,`Question as asked`),t(`p`,`community-question-body`,e.item.body)),n}function fe(e){let n=t(`section`,`pr-verdict-box`);n.setAttribute(`aria-label`,`Research`);let r=E(e),i=t(`div`,`pr-verdict-line`),a=t(`strong`,`community-badge`,r.text);if(a.dataset.tone=r.tone,i.append(a),n.append(i),e.error&&n.append(t(`p`,`pr-attention-detail`,e.error)),e.summary&&n.append(t(`p`,`pr-verdict-summary`,e.summary)),e.goal&&n.append(t(`p`,`community-goal`,`Goal: ${e.goal}`)),e.gaps.length>0&&n.append(q(`pr-verdict-gaps`,`Not covered`,e.gaps)),e.checked.length===0)return n;let o=t(`details`,`pr-verdict-checked`);return o.append(t(`summary`,null,`What it checked (${e.checked.length})`),q(`community-checked`,`What it checked`,e.checked)),n.append(o),n}function pe(e){if(!e.draft)return null;let n=t(`section`,`community-draft`);n.setAttribute(`aria-label`,`Draft reply`),n.append(t(`h3`,`pr-section-heading`,`Draft reply`),t(`p`,`community-draft-body`,e.draft.body));let r=e.draft.publicLinks.filter(m);if(r.length===0)return n;let i=t(`ul`,`community-links`);for(let e of r){let n=t(`li`);n.append(G(e,e)),i.append(n)}return n.append(i),n}function me(e,t){let n=e.draft?r(e.draft.body):null;n?n.then(()=>t.show(`ok`,`Draft copied. Post it yourself where the question was asked.`),()=>t.show(`error`,`Copying failed. Select the draft text instead.`)):t.show(`error`,`This browser does not allow copying here. Select the draft text instead.`)}async function he(e,t){if(!H){t.show(`error`,`Pick a session to start from first.`);return}let n=await o(`open-community-session`,{key:e.item.key,projectId:H},t,{busyText:`Starting a session with the research.`});n?.type===`open-community-session-result`&&(n.ok?(t.show(`ok`,`Started ${n.sessionName??`a session`}.`),n.sessionId&&_()?.openTerminal(n.sessionId)):t.show(`error`,n.error??`The session did not start.`))}async function J(e,t,n){let r=t===`rerun`?`Queuing the research again.`:`Setting the question aside.`,i=await o(`community-action`,{key:e.item.key,action:t},n,{busyText:r});i?.type===`community-action-result`&&(i.ok||n.show(`error`,i.error??`The change did not apply.`))}function ge(){let e=t(`select`,`community-session-picker`);e.setAttribute(`aria-label`,`Session to start from`);let n=W();n.some(e=>e.id===H)||(H=n[0]?.id??``);for(let r of n){let n=t(`option`,null,r.name);n.value=r.id,n.selected=r.id===H,e.append(n)}return e.disabled=n.length===0,e.addEventListener(`change`,()=>{H=e.value}),e}function _e(e){let n=t(`div`,`community-actions`),r=ee(`pr-action-status`),i=t(`div`,`community-action-buttons`);return i.append(K(`Copy draft`,e.draft!==null,()=>me(e,r)),G(`Open thread`,e.item.url),ge(),K(`Start session`,!0,()=>void he(e,r)),K(`Re-run`,le(e),()=>void J(e,`rerun`,r)),K(`Set aside`,k(e),()=>void J(e,`set-aside`,r))),n.append(i,r.element),n}function ve(e){let n=t(`article`,`pr-detail community-detail`),r=pe(e);return n.append(ue(e),_e(e),...r?[r]:[],fe(e),de(e)),n}function Y(){if(!F)return;let e=l(L,R),n=e?JSON.stringify(e.entry):`empty:${c(L).length}`;if(n===V)return;if(V=n,e){F.replaceChildren(ve(e.entry));return}let r=L.some(e=>e.items.length>0);F.replaceChildren(r?C({title:`All caught up`,detail:A(L)}):t(`p`,`pr-empty`,j(g())))}function ye(e,t){x(d(e))&&t.querySelector(`.pr-queue-unseen`)?.remove()}function X(){if(!I)return;let e=v(L,O);b(I,f(e),e.filter(e=>e.id!==R))}function Z(e){R=e;for(let[t,n]of U)n.setAttribute(`aria-current`,String(t===e));let t=l(L,e),n=U.get(e);t&&n&&ye(t,n),Y(),X(),N&&(N.dataset.detailOpen=`true`)}function be(){N&&(N.dataset.detailOpen=`false`),R&&U.get(R)?.focus({preventScroll:!0})}function Q(e){let t=l(L,e);if(!t)return;L.find(e=>e.items.includes(t))?.id===`aside`&&(z=!0),R=e,$(),Z(e);let n=U.get(e);n?.focus({preventScroll:!0}),n?.scrollIntoView({block:`nearest`})}function xe(t){if(t.repeat||t.defaultPrevented||!N||n(N)||a()||e(t)||document.activeElement?.classList.contains(`xterm-helper-textarea`))return;let r=u(t);if(r!==`next-row`&&r!==`previous-row`)return;let i=s([...U.keys()],R,r===`next-row`?1:-1);i&&(t.preventDefault(),i!==R&&Q(i))}function Se(e,n){let r=t(`button`,`pr-queue-row pr-queue-row-quiet`);r.type=`button`,r.dataset.queueKey=e.key,r.setAttribute(`aria-current`,String(e.key===R));let i=E(e.entry),a=t(`span`,`review-queue-action community-badge`,i.text);a.dataset.tone=i.tone;let o=t(`span`,`pr-queue-top`);if(o.append(a,t(`span`,`pr-queue-title`,O(e))),r.append(o,t(`span`,`pr-queue-elapsed`,D(e.entry))),r.title=O(e),n&&h(d(e))){let e=t(`span`,`tab-activity active pr-queue-unseen`);e.setAttribute(`aria-hidden`,`true`),r.append(e)}return r.addEventListener(`click`,()=>Z(e.key)),U.set(e.key,r),r}function Ce(e){let n=t(`h3`,`pr-section-heading review-group-heading`),r=t(`span`,`review-group-count`,String(e.items.length));if(e.id!==`aside`)return n.append(t(`span`,null,e.title),r),n;let i=t(`button`,`review-group-toggle`),a=t(`span`,`review-group-chevron`,`▸`);return a.setAttribute(`aria-hidden`,`true`),i.append(a,e.title),i.type=`button`,i.setAttribute(`aria-expanded`,String(z)),i.addEventListener(`click`,()=>{z=!z,B=null,$()}),n.append(i,r),n}function we(e){let n=t(`section`,`pr-queue-section`);if(n.dataset.group=e.id,n.append(Ce(e)),e.id===`aside`&&!z)return n;for(let t of e.items)n.append(Se(t,e.id===`turn`));return n}function $(){if(!P)return;L=ie(),R=te(L.filter(e=>e.id!==`aside`||z),R),X();let e=JSON.stringify([L,R,z,ne(),g()?.error??null]);if(e!==B){B=e,U.clear();let n=g()?.error,r=n?[t(`p`,`my-pr-note`,n)]:[],i=L.filter(e=>e.items.length>0).map(we);P.replaceChildren(...r,...i.length>0?i:[t(`p`,`pr-empty`,j(g()))])}Y()}function Te(e){if(N)return;N=t(`div`,`pr-content review-queue community-queue`),e.append(N);let r=w({queueLabel:`Community questions`,scopeTabs:null,resizerLabel:`Resize community queue`});P=r.queue,F=t(`div`,`review-queue-detail`);let i=t(`div`,`review-queue-phone-bar`),a=t(`button`,`pr-action pr-action-ghost review-queue-back`,`Back to queue`);a.type=`button`,a.addEventListener(`click`,be),i.append(a),r.detail.append(i,F),I=ae({onJump:()=>{let e=v(L,O).find(e=>e.id!==R)?.id;e&&Q(e)},rowFor:e=>U.get(e)}),I.classList.add(`review-queue-banner`),r.queue.before(I),N.append(r.columns),N.dataset.detailOpen=`false`,y(()=>!n(N)),S(e=>{e.kind===`status`&&$()}),document.addEventListener(`keydown`,xe),$()}var Ee={mount:Te,refresh:()=>{V=null,$()}};export{Ee as view};
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{G as e,U as t,W as n,dt as r,ft as i,x as a}from"./updates-view-core-ma4WYKET.js";import{h as o,m as s,o as c}from"./dom-helpers-I_SDCPvs.js";import{d as l}from"./control-ws-DS1pvNbe.js";import{n as u,r as d,t as f}from"./modal-BRwbyxA2.js";import{i as p,s as m,t as h}from"./action-status-Cfrg8b4w.js";import{n as g}from"./session-tick-Cf8vKYL1.js";import{Ar as _,Dr as v,Er as y,Or as b,
|
|
1
|
+
import{G as e,U as t,W as n,dt as r,ft as i,x as a}from"./updates-view-core-ma4WYKET.js";import{h as o,m as s,o as c}from"./dom-helpers-I_SDCPvs.js";import{d as l}from"./control-ws-DS1pvNbe.js";import{n as u,r as d,t as f}from"./modal-BRwbyxA2.js";import{i as p,s as m,t as h}from"./action-status-Cfrg8b4w.js";import{n as g}from"./session-tick-Cf8vKYL1.js";import{Ar as _,Dr as v,Er as y,Or as b,ai as x,gr as S,ii as C,jn as w,jr as T,kr as E,m as D,ri as O,wr as ee}from"./index-CCwbxRUr.js";import{t as te}from"./repo-roots-adder-BEGxMD41.js";import{t as ne}from"./sandboxed-frame-qKHbOuc_.js";var re=`<h2 class="dialog-title" id="add-session-title">Add Session</h2>
|
|
2
2
|
<fieldset class="dialog-mode-controls add-session-agent-only" aria-label="Session kind">
|
|
3
3
|
<button type="button" class="dialog-mode-button" id="add-session-single-mode" aria-pressed="true">Single repo</button>
|
|
4
4
|
<button type="button" class="dialog-mode-button" id="add-session-workspace-mode" aria-pressed="false">Workspace</button>
|
|
@@ -82,4 +82,4 @@ import{G as e,U as t,W as n,dt as r,ft as i,x as a}from"./updates-view-core-ma4W
|
|
|
82
82
|
<button type="button" class="btn-dialog btn-dialog-confirm" id="agent-connect-submit" hidden>Submit code</button>
|
|
83
83
|
<button type="button" class="btn-dialog btn-dialog-confirm" id="agent-connect-start">Start sign-in</button>
|
|
84
84
|
</div>
|
|
85
|
-
`;function A(e,{value:t,disabled:n=!1,selected:r=!1}={}){let i=c(`option`,null,e);return t!=null&&(i.value=t),n&&(i.disabled=!0),r&&(i.selected=!0),i}function re(e){return typeof e!=`object`||!e?!1:`saneYoloAvailable`in e&&e.saneYoloAvailable===!0}function ie(e){if(typeof e!=`object`||!e||!(`coderEnvironments`in e))return[];let t=r.safeParse(e.coderEnvironments);return t.success&&t.data?t.data:[]}function ae(e){let t=Object.entries(e.parameters).map(([e,t])=>`${e}=${t}`).join(`, `);return[`Template ${e.template}.`,t?`Parameters: ${t}.`:``,e.hourlyCostUsd===null?``:`Costs $${e.hourlyCostUsd.toFixed(2)} an hour.`,`Stops after ${e.idleStopMinutes} idle minutes.`].filter(Boolean).join(` `)}var j=Object.freeze({"claude-code":`Claude Code`,codex:`Codex`});function oe(e){let t=i.safeParse(e);return t.success?t.data:null}function M(e,t){let n=j[t];return e?e.state===`signed-in`&&e.source===`host`?`${n} uses the login already on this machine.`:e.state===`signed-in`?`${n} uses the login Glimmervoid connected.`:e.state===`connecting`?e.reason??`${n} sign-in is waiting for you.`:e.state===`failed`?e.reason??`${n} sign-in failed.`:`${n} has no login on this machine, so remote ${n} sessions cannot sign in.`:`Checking whether ${n} is signed in.`}function N(){l(`get-agent-logins`,{},{timeoutMs:h}).then(e=>{e.type===`agent-logins`&&O(e.logins)}).catch(()=>{})}function se(e){let t=j[e],{dialog:n,close:r}=d();n.innerHTML=k,f(n,`agent-connect-title`),s(n,`#agent-connect-title`).textContent=`Connect ${t}`,s(n,`#agent-connect-intro`).textContent=`Glimmervoid signs ${t} in for its own remote sessions and keeps that login in its own folder, apart from any login you already have on this machine. The sign-in runs here and is never recorded.`;let i=s(n,`#agent-connect-state`),a=s(n,`#agent-connect-steps`),c=o(n,`#agent-connect-link`,`a`),u=s(n,`#agent-connect-code-row`),p=s(n,`#agent-connect-code`),g=s(n,`#agent-connect-paste-label`),_=o(n,`#agent-connect-paste`,`input`),v=s(n,`#agent-connect-error`),y=o(n,`#agent-connect-close`,`button`),b=o(n,`#agent-connect-stop`,`button`),x=o(n,`#agent-connect-submit`,`button`),S=o(n,`#agent-connect-start`,`button`);function w(){if(!n.isConnected){E();return}let t=D(e),r=t?.state===`connecting`;i.textContent=M(t,e),S.hidden=r,b.hidden=!r;let o=r?t.verificationUrl:null;a.hidden=o===null,c.href=o??``,c.textContent=o??``,u.hidden=!t?.userCode,p.textContent=t?.userCode??``;let s=r&&t.needsPastedCode;g.hidden=!s,x.hidden=!s}async function T(t,n,r){r.disabled=!0,v.textContent=``;try{let r=await l(t,{agent:e,...n},{timeoutMs:h});if(r.type!==`agent-logins`)return;O(r.logins),r.error&&(v.textContent=r.error)}catch(e){v.textContent=`The server did not answer (${m(e,h)}).`}finally{r.disabled=!1}}S.addEventListener(`click`,()=>{T(`agent-connect`,{action:`start`},S)}),b.addEventListener(`click`,()=>{T(`agent-connect`,{action:`cancel`},b)}),x.addEventListener(`click`,()=>{let e=_.value;_.value=``,T(`agent-connect-code`,{code:e},x)}),_.addEventListener(`keydown`,e=>{e.key===`Enter`&&(e.preventDefault(),x.click())}),y.addEventListener(`click`,r);let E=C(w);w(),N()}function ce(){let{dialog:e,close:t,actions:n,btnCancel:r}=u({title:`Set up a remote host`}),a=c(`p`,`dialog-hint`,`The setup session runs outside the guardrails so it can use your ssh keys. It runs commands on the remote host over ssh and asks before each one. Glimmervoid deletes its working folder when the session ends.`),o=c(`p`,`dialog-label`,`Agent`),s=c(`div`,`hooks-type-row`);s.setAttribute(`role`,`radiogroup`);let d=p(),f=c(`button`,`btn-dialog btn-dialog-confirm`,`Start setup`);f.type=`button`,r.type=`button`,r.addEventListener(`click`,t),n.append(f),e.append(a,o,s,d.element,n);let g=null,_=!1;function v(){if(!e.isConnected){y();return}let t=i.options.filter(e=>D(e)?.state===`signed-in`);(g===null||!t.includes(g))&&(g=t[0]??null),s.replaceChildren(...t.map(e=>{let t=c(`label`,`settings-view-toggle hooks-choice`),n=c(`input`,`settings-view-checkbox`);return n.type=`radio`,n.name=`remote-setup-agent`,n.checked=e===g,n.addEventListener(`change`,()=>{g=e}),t.append(n,c(`span`,null,j[e])),t})),t.length===0&&s.append(c(`span`,``,`Sign in to Claude Code or Codex on this machine first.`)),f.disabled=_||g===null}f.addEventListener(`click`,async()=>{if(g!==null){_=!0,f.disabled=!0,d.show(`busy`,`Starting the setup session.`);try{let e=await l(`start-remote-setup`,{agent:g},{timeoutMs:h});if(e.type===`start-remote-setup-result`&&e.ok){t();return}d.show(`error`,e.type===`start-remote-setup-result`&&e.error?e.error:`The setup session did not start.`)}catch(e){d.show(`error`,`The server did not answer (${m(e,h)}).`)}finally{_=!1,v()}}});let y=C(v);v(),N()}function le({preferredAgentId:e=v}={}){let{dialog:t,close:n}=d();t.innerHTML=ne,f(t,`add-session-title`);let r=o(t,`#add-session-picker`,`select`),i=s(t,`#add-session-picker-label`),a=s(t,`#add-session-workspace-list`),u=o(t,`#add-session-single-mode`,`button`),g=o(t,`#add-session-workspace-mode`,`button`),E=s(t,`#add-session-agent-label`),O=o(t,`#add-session-agent`,`select`),te=s(t,`#add-session-environment-label`),k=o(t,`#add-session-environment`,`select`),j=s(t,`#add-session-environment-hint`),ce=s(t,`#add-session-agent-login`),le=s(t,`#add-session-agent-login-text`),ue=o(t,`#add-session-agent-connect`,`button`),P=s(t,`#add-session-repo-roots`),de=s(t,`#add-session-repo-roots-title`),F=o(t,`#add-session-advanced-toggle`,`button`),I=s(t,`#add-session-advanced`),L=o(t,`#add-session-name`,`input`),R=o(t,`#add-session-path`,`input`),fe=s(t,`#add-session-path-label`),z=o(t,`#add-session-skip-perms`,`input`),B=o(t,`#add-session-unguarded`,`input`),pe=o(t,`#add-session-sane-yolo-help`,`a`),me=s(t,`#add-session-sane-yolo-unavailable`),he=o(t,`#add-session-safety-toggle`,`button`),ge=s(t,`#add-session-safety`),_e=s(t,`#add-session-safety-status`),V=s(t,`#add-session-error`),ve=s(t,`#add-session-shell-hint`),ye=o(t,`#add-session-cancel`,`button`),H=o(t,`#add-session-confirm`,`button`),U=!1,be=[],W=null;function G(e){U=e,u.setAttribute(`aria-pressed`,String(!e)),g.setAttribute(`aria-pressed`,String(e)),i.hidden=e,a.hidden=!e,F.hidden=e,F.setAttribute(`aria-expanded`,String(e)),I.hidden=!e,fe.hidden=e,e&&requestAnimationFrame(()=>L.focus())}u.addEventListener(`click`,()=>G(!1)),g.addEventListener(`click`,()=>G(!0)),F.setAttribute(`aria-expanded`,`false`),F.addEventListener(`click`,()=>{let e=I.hidden;I.hidden=!e,F.setAttribute(`aria-expanded`,String(e)),e&&requestAnimationFrame(()=>L.focus())}),pe.addEventListener(`click`,()=>n()),he.addEventListener(`click`,()=>{let e=ge.hidden;ge.hidden=!e,he.setAttribute(`aria-expanded`,String(e))}),B.addEventListener(`change`,()=>{_e.textContent=B.checked?`guardrails off`:`guardrails on`});let xe=ee({onAdded:J});P.append(xe.element);let K=p(`dialog-hint`),q=c(`button`,`btn-dialog btn-dialog-cancel`,`Scan again`);q.type=`button`,q.hidden=!0,q.addEventListener(`click`,()=>{J()});let Se=c(`div`,`flex items-center gap-2`);Se.append(K.element,q),P.before(Se);function Ce(e){r.textContent=``,r.appendChild(A(`Scan failed`,{disabled:!0,selected:!0})),a.textContent=``,K.show(`error`,`The project scan failed: ${e}`),q.hidden=!1,q.disabled=!1}function we(e){let t=e.type===`repo-roots-scanned`;de.textContent=t&&e.directories.length>0?`No projects in your repository roots yet`:`No repository roots yet`,xe.setSuggestions(t?e.suggestions??[]:[]),P.hidden=!1}function J(){return q.disabled=!0,K.show(`busy`,`Scanning your repository roots`),l(`scan-repo-roots`,{includeSuggestions:!0},{timeoutMs:h}).then(e=>{if(e.type===`repo-roots-scanned`&&e.error){Ce(e.error);return}K.clear(),q.hidden=!0,r.textContent=``,a.textContent=``,P.hidden=!0,r.appendChild(A(`-- Select a project --`,{value:``,disabled:!0,selected:!0}));let t=!1,n=e.type===`repo-roots-scanned`?e.directories:[];for(let e of n){if(e.projects.length===0)continue;let n=c(`optgroup`);n.label=e.root;for(let r of e.projects){let e=x(r.name),i=e>0?`${r.name} (${e} open)`:r.name;n.appendChild(A(i,{value:JSON.stringify({name:r.name,path:r.path})})),a.appendChild(w(r.name,r.path)),t=!0}r.appendChild(n)}t||(r.textContent=``,r.appendChild(A(`No projects yet`,{disabled:!0,selected:!0})),a.textContent=`No projects yet.`,we(e))}).catch(e=>{Ce(m(e,h))})}J(),r.addEventListener(`change`,()=>{try{let e=JSON.parse(r.value);L.value=y(e.name),R.value=e.path}catch{}});let Y=v,X=!1;function Z(e){let t=c(`p`,`dialog-hint dialog-hint-warning`,e);return t.setAttribute(`role`,`status`),V.before(t),t}function Te(e){X=!0,H.disabled=!0,Z(e).id=`add-session-agent-guidance`}l(`list-agents`,{},{timeoutMs:h}).then(t=>{let n=T(t);n.canSpawn||Te(n.guidance);let r=_(t.type===`agents-listed`?t.agents:[],{defaultId:e});if(Y=r.selectedId,Ee(),r.show){O.textContent=``;for(let e of r.options)O.appendChild(A(e.label,{value:e.id,selected:e.id===r.selectedId}));E.hidden=!1}}).catch(e=>{Z(`Could not load the agent list (${m(e,h)}), so the session uses the default agent.`)}),O.addEventListener(`change`,()=>{Y=O.value,Ee(),De()});function Ee(){let e=Y===b;e&&U&&G(!1),e&&W&&(k.value=``,k.dispatchEvent(new Event(`change`))),t.classList.toggle(`add-session-shell`,e),ve.hidden=!e,I.hidden=!e&&F.getAttribute(`aria-expanded`)!==`true`,e&&(L.value.trim()||(L.value=b),requestAnimationFrame(()=>L.focus()))}function De(){if(!t.isConnected){Oe();return}let e=oe(Y),n=e?D(e):null;ce.hidden=W===null||e===null||n===null||n.state===`signed-in`,le.textContent=e?M(n,e):``}ue.addEventListener(`click`,()=>{let e=oe(Y);e&&se(e)});let Oe=C(De);N();let ke=!1,Ae=!1;z.addEventListener(`change`,()=>{ke=!0});function Q(){let e=Ae&&W===null;me.hidden=e,!ke&&(z.checked=e)}l(`get-settings`,{},{timeoutMs:h}).then(e=>{e.type===`settings-error`?(Z(`Could not load your settings (${e.message}). Check Sane YOLO mode yourself.`),Q()):(je(ie(e.settings)),Ae=re(e.settings),Q())}).catch(e=>{Z(`Could not load your settings (${m(e,h)}). Check Sane YOLO mode yourself.`),Q()});function je(e){if(e.length!==0){be=e,k.textContent=``,k.appendChild(A(`Local`,{value:``,selected:!0}));for(let t of e)k.appendChild(A(t.name,{value:t.name}));te.hidden=!1}}k.addEventListener(`change`,()=>{W=be.find(e=>e.name===k.value)??null,g.hidden=W!==null,j.hidden=W===null,j.textContent=W?ae(W):``,De(),Q(),W!==null&&U&&G(!1)}),L.addEventListener(`input`,()=>{r.selectedIndex=0}),R.addEventListener(`input`,()=>{r.selectedIndex=0});function Me(){if(X)return;let e=L.value.trim(),t=R.value.trim();if(Y===`shell`){if(!e){V.textContent=`Enter a name.`;return}$({name:y(e),path:t,agent:b});return}if(U){let t=[...a.querySelectorAll(`input:checked`)].map(e=>e.value);if(!e||t.length<2){V.textContent=`Enter a name and select at least two repositories.`;return}let n={name:y(e),path:t[0],repos:t,dangerouslySkipPermissions:z.checked,saneYolo:z.checked,unguarded:B.checked};Y&&Y!==`claude-code`&&(n.agent=Y),$(n);return}if(!e||!t){V.textContent=`Both fields are required. Select a project or use Advanced options.`;return}let n={name:y(e),path:t,dangerouslySkipPermissions:z.checked,saneYolo:z.checked,unguarded:B.checked};Y&&Y!==`claude-code`&&(n.agent=Y),W&&(n.environment=W.name),$(n)}function $(e){H.disabled=!0,V.textContent=``,l(`add-session`,e,{timeoutMs:h}).then(e=>{e.type===`add-session-result`&&e.ok?n():V.textContent=S(e)}).catch(e=>{V.textContent=`The session was not added: ${m(e,h)}`}).finally(()=>{H.disabled=X})}ye.addEventListener(`click`,n),H.addEventListener(`click`,Me),L.addEventListener(`keydown`,e=>{e.key===`Enter`&&(U&&Me(),U||R.focus())}),R.addEventListener(`keydown`,e=>{e.key===`Enter`&&Me()}),requestAnimationFrame(()=>r.focus())}function ue({issueId:e,issueTitle:t,format:n,content:r,message:i,error:a}){let{dialog:o,close:s,actions:l,btnCancel:d}=u({title:`Investigation report`,dialogClass:`dialog dialog-report`,cancelLabel:`Close`}),f=c(`div`,`dialog-report-meta`,t||e||``),p=null;n===`html`&&!a&&!i&&(p=te({source:{kind:`srcdoc`,html:r||``},className:`dialog-report-frame`,title:`Investigation report`,allowsScripts:!1})),p||=c(`pre`,a?`dialog-report-body dialog-report-error`:`dialog-report-body`,a||i||r||``),o.append(f,p,l),d.addEventListener(`click`,s),requestAnimationFrame(()=>d.focus())}function P({issueTitle:r,projectLabel:i,onOpenReport:o}){let{dialog:s,close:l,actions:d,btnCancel:f}=u({title:`Investigation`,dialogClass:`dialog dialog-report`,cancelLabel:`Close`}),p=c(`div`,`dialog-report-meta`,i?`${i}: ${r}`:r),m=c(`p`,`dialog-trail-status`),h=c(`p`,`dialog-trail-summary`),_=c(`ol`,`dialog-trail-steps`),v=c(`p`,`dialog-trail-empty`,`No tool calls yet; the session is reading the issue.`),y=c(`button`,`btn-dialog btn-dialog-cancel`,`Open report`);y.type=`button`,y.hidden=!0,y.addEventListener(`click`,()=>{l(),o()}),d.prepend(y),s.append(p,m,h,_,v,d),f.addEventListener(`click`,l),requestAnimationFrame(()=>f.focus());let b=null,x=``;function S(n){let r=_.scrollHeight-_.scrollTop-_.clientHeight<24,i=t(n);if(x!==i){_.textContent=``;for(let t of e(n.steps)){let e=c(`li`,`dialog-trail-step dialog-trail-${t.kind}`),r=t.kind===`note`?t.text:`${t.stepCount} ${t.stepCount===1?`step`:`steps`}`;e.append(c(`span`,`dialog-trail-at`,a(n.startedAt,t.at)),c(`span`,`dialog-trail-detail`,r)),_.append(e)}x=i}v.hidden=n.steps.length>0||!n.inFlight,_.hidden=n.steps.length===0,r&&(_.scrollTop=_.scrollHeight)}function C(e){m.textContent=n(e,E(e.startedAt))}function w(){b&&(C(b),m.dataset.tone=b.inFlight?`live`:`done`,h.textContent=b.summaryLine,h.hidden=!b.summaryLine,y.hidden=b.inFlight||!b.verdict,S(b))}let T=g(()=>{s.isConnected?b?.inFlight&&C(b):T()});return{update(e){b=e,w()},isOpen:()=>s.isConnected,close:()=>{T(),l()}}}export{D as agentLoginOf,M as agentLoginSummary,le as createAddSessionDialog,P as createInvestigationDialog,ue as createRadarReportDialog,C as onAgentLoginsChanged,se as openAgentConnectDialog,ce as openRemoteSetupDialog};
|
|
85
|
+
`;function A(e,{value:t,disabled:n=!1,selected:r=!1}={}){let i=c(`option`,null,e);return t!=null&&(i.value=t),n&&(i.disabled=!0),r&&(i.selected=!0),i}function ie(e){return typeof e!=`object`||!e?!1:`saneYoloAvailable`in e&&e.saneYoloAvailable===!0}function ae(e){if(typeof e!=`object`||!e||!(`coderEnvironments`in e))return[];let t=r.safeParse(e.coderEnvironments);return t.success&&t.data?t.data:[]}function oe(e){let t=Object.entries(e.parameters).map(([e,t])=>`${e}=${t}`).join(`, `);return[`Template ${e.template}.`,t?`Parameters: ${t}.`:``,e.hourlyCostUsd===null?``:`Costs $${e.hourlyCostUsd.toFixed(2)} an hour.`,`Stops after ${e.idleStopMinutes} idle minutes.`].filter(Boolean).join(` `)}var j=Object.freeze({"claude-code":`Claude Code`,codex:`Codex`});function se(e){let t=i.safeParse(e);return t.success?t.data:null}function M(e,t){let n=j[t];return e?e.state===`signed-in`&&e.source===`host`?`${n} uses the login already on this machine.`:e.state===`signed-in`?`${n} uses the login Glimmervoid connected.`:e.state===`connecting`?e.reason??`${n} sign-in is waiting for you.`:e.state===`failed`?e.reason??`${n} sign-in failed.`:`${n} has no login on this machine, so remote ${n} sessions cannot sign in.`:`Checking whether ${n} is signed in.`}function N(){l(`get-agent-logins`,{},{timeoutMs:h}).then(e=>{e.type===`agent-logins`&&C(e.logins)}).catch(()=>{})}function ce(e){let t=j[e],{dialog:n,close:r}=d();n.innerHTML=k,f(n,`agent-connect-title`),s(n,`#agent-connect-title`).textContent=`Connect ${t}`,s(n,`#agent-connect-intro`).textContent=`Glimmervoid signs ${t} in for its own remote sessions and keeps that login in its own folder, apart from any login you already have on this machine. The sign-in runs here and is never recorded.`;let i=s(n,`#agent-connect-state`),a=s(n,`#agent-connect-steps`),c=o(n,`#agent-connect-link`,`a`),u=s(n,`#agent-connect-code-row`),p=s(n,`#agent-connect-code`),g=s(n,`#agent-connect-paste-label`),_=o(n,`#agent-connect-paste`,`input`),v=s(n,`#agent-connect-error`),y=o(n,`#agent-connect-close`,`button`),b=o(n,`#agent-connect-stop`,`button`),S=o(n,`#agent-connect-submit`,`button`),w=o(n,`#agent-connect-start`,`button`);function T(){if(!n.isConnected){D();return}let t=O(e),r=t?.state===`connecting`;i.textContent=M(t,e),w.hidden=r,b.hidden=!r;let o=r?t.verificationUrl:null;a.hidden=o===null,c.href=o??``,c.textContent=o??``,u.hidden=!t?.userCode,p.textContent=t?.userCode??``;let s=r&&t.needsPastedCode;g.hidden=!s,S.hidden=!s}async function E(t,n,r){r.disabled=!0,v.textContent=``;try{let r=await l(t,{agent:e,...n},{timeoutMs:h});if(r.type!==`agent-logins`)return;C(r.logins),r.error&&(v.textContent=r.error)}catch(e){v.textContent=`The server did not answer (${m(e,h)}).`}finally{r.disabled=!1}}w.addEventListener(`click`,()=>{E(`agent-connect`,{action:`start`},w)}),b.addEventListener(`click`,()=>{E(`agent-connect`,{action:`cancel`},b)}),S.addEventListener(`click`,()=>{let e=_.value;_.value=``,E(`agent-connect-code`,{code:e},S)}),_.addEventListener(`keydown`,e=>{e.key===`Enter`&&(e.preventDefault(),S.click())}),y.addEventListener(`click`,r);let D=x(T);T(),N()}function le(){let{dialog:e,close:t,actions:n,btnCancel:r}=u({title:`Set up a remote host`}),a=c(`p`,`dialog-hint`,`The setup session runs outside the guardrails so it can use your ssh keys. It runs commands on the remote host over ssh and asks before each one. Glimmervoid deletes its working folder when the session ends.`),o=c(`p`,`dialog-label`,`Agent`),s=c(`div`,`hooks-type-row`);s.setAttribute(`role`,`radiogroup`);let d=p(),f=c(`button`,`btn-dialog btn-dialog-confirm`,`Start setup`);f.type=`button`,r.type=`button`,r.addEventListener(`click`,t),n.append(f),e.append(a,o,s,d.element,n);let g=null,_=!1;function v(){if(!e.isConnected){y();return}let t=i.options.filter(e=>O(e)?.state===`signed-in`);(g===null||!t.includes(g))&&(g=t[0]??null),s.replaceChildren(...t.map(e=>{let t=c(`label`,`settings-view-toggle hooks-choice`),n=c(`input`,`settings-view-checkbox`);return n.type=`radio`,n.name=`remote-setup-agent`,n.checked=e===g,n.addEventListener(`change`,()=>{g=e}),t.append(n,c(`span`,null,j[e])),t})),t.length===0&&s.append(c(`span`,``,`Sign in to Claude Code or Codex on this machine first.`)),f.disabled=_||g===null}f.addEventListener(`click`,async()=>{if(g!==null){_=!0,f.disabled=!0,d.show(`busy`,`Starting the setup session.`);try{let e=await l(`start-remote-setup`,{agent:g},{timeoutMs:h});if(e.type===`start-remote-setup-result`&&e.ok){t();return}d.show(`error`,e.type===`start-remote-setup-result`&&e.error?e.error:`The setup session did not start.`)}catch(e){d.show(`error`,`The server did not answer (${m(e,h)}).`)}finally{_=!1,v()}}});let y=x(v);v(),N()}function ue({preferredAgentId:e=b}={}){let{dialog:t,close:n}=d();t.innerHTML=re,f(t,`add-session-title`);let r=o(t,`#add-session-picker`,`select`),i=s(t,`#add-session-picker-label`),a=s(t,`#add-session-workspace-list`),u=o(t,`#add-session-single-mode`,`button`),g=o(t,`#add-session-workspace-mode`,`button`),C=s(t,`#add-session-agent-label`),D=o(t,`#add-session-agent`,`select`),ne=s(t,`#add-session-environment-label`),k=o(t,`#add-session-environment`,`select`),j=s(t,`#add-session-environment-hint`),le=s(t,`#add-session-agent-login`),ue=s(t,`#add-session-agent-login-text`),de=o(t,`#add-session-agent-connect`,`button`),P=s(t,`#add-session-repo-roots`),fe=s(t,`#add-session-repo-roots-title`),F=o(t,`#add-session-advanced-toggle`,`button`),I=s(t,`#add-session-advanced`),L=o(t,`#add-session-name`,`input`),R=o(t,`#add-session-path`,`input`),pe=s(t,`#add-session-path-label`),z=o(t,`#add-session-skip-perms`,`input`),B=o(t,`#add-session-unguarded`,`input`),me=o(t,`#add-session-sane-yolo-help`,`a`),he=s(t,`#add-session-sane-yolo-unavailable`),ge=o(t,`#add-session-safety-toggle`,`button`),_e=s(t,`#add-session-safety`),ve=s(t,`#add-session-safety-status`),V=s(t,`#add-session-error`),ye=s(t,`#add-session-shell-hint`),be=o(t,`#add-session-cancel`,`button`),H=o(t,`#add-session-confirm`,`button`),U=!1,xe=[],W=null;function G(e){U=e,u.setAttribute(`aria-pressed`,String(!e)),g.setAttribute(`aria-pressed`,String(e)),i.hidden=e,a.hidden=!e,F.hidden=e,F.setAttribute(`aria-expanded`,String(e)),I.hidden=!e,pe.hidden=e,e&&requestAnimationFrame(()=>L.focus())}u.addEventListener(`click`,()=>G(!1)),g.addEventListener(`click`,()=>G(!0)),F.setAttribute(`aria-expanded`,`false`),F.addEventListener(`click`,()=>{let e=I.hidden;I.hidden=!e,F.setAttribute(`aria-expanded`,String(e)),e&&requestAnimationFrame(()=>L.focus())}),me.addEventListener(`click`,()=>n()),ge.addEventListener(`click`,()=>{let e=_e.hidden;_e.hidden=!e,ge.setAttribute(`aria-expanded`,String(e))}),B.addEventListener(`change`,()=>{ve.textContent=B.checked?`guardrails off`:`guardrails on`});let Se=te({onAdded:J});P.append(Se.element);let K=p(`dialog-hint`),q=c(`button`,`btn-dialog btn-dialog-cancel`,`Scan again`);q.type=`button`,q.hidden=!0,q.addEventListener(`click`,()=>{J()});let Ce=c(`div`,`flex items-center gap-2`);Ce.append(K.element,q),P.before(Ce);function we(e){r.textContent=``,r.appendChild(A(`Scan failed`,{disabled:!0,selected:!0})),a.textContent=``,K.show(`error`,`The project scan failed: ${e}`),q.hidden=!1,q.disabled=!1}function Te(e){let t=e.type===`repo-roots-scanned`;fe.textContent=t&&e.directories.length>0?`No projects in your repository roots yet`:`No repository roots yet`,Se.setSuggestions(t?e.suggestions??[]:[]),P.hidden=!1}function J(){return q.disabled=!0,K.show(`busy`,`Scanning your repository roots`),l(`scan-repo-roots`,{includeSuggestions:!0},{timeoutMs:h}).then(e=>{if(e.type===`repo-roots-scanned`&&e.error){we(e.error);return}K.clear(),q.hidden=!0,r.textContent=``,a.textContent=``,P.hidden=!0,r.appendChild(A(`-- Select a project --`,{value:``,disabled:!0,selected:!0}));let t=!1,n=e.type===`repo-roots-scanned`?e.directories:[];for(let e of n){if(e.projects.length===0)continue;let n=c(`optgroup`);n.label=e.root;for(let r of e.projects){let e=y(r.name),i=e>0?`${r.name} (${e} open)`:r.name;n.appendChild(A(i,{value:JSON.stringify({name:r.name,path:r.path})})),a.appendChild(w(r.name,r.path)),t=!0}r.appendChild(n)}t||(r.textContent=``,r.appendChild(A(`No projects yet`,{disabled:!0,selected:!0})),a.textContent=`No projects yet.`,Te(e))}).catch(e=>{we(m(e,h))})}J(),r.addEventListener(`change`,()=>{try{let e=JSON.parse(r.value);L.value=v(e.name),R.value=e.path}catch{}});let Y=b,X=!1;function Z(e){let t=c(`p`,`dialog-hint dialog-hint-warning`,e);return t.setAttribute(`role`,`status`),V.before(t),t}function Ee(e){X=!0,H.disabled=!0,Z(e).id=`add-session-agent-guidance`}l(`list-agents`,{},{timeoutMs:h}).then(t=>{let n=_(t);n.canSpawn||Ee(n.guidance);let r=T(t.type===`agents-listed`?t.agents:[],{defaultId:e});if(Y=r.selectedId,De(),r.show){D.textContent=``;for(let e of r.options)D.appendChild(A(e.label,{value:e.id,selected:e.id===r.selectedId}));C.hidden=!1}}).catch(e=>{Z(`Could not load the agent list (${m(e,h)}), so the session uses the default agent.`)}),D.addEventListener(`change`,()=>{Y=D.value,De(),Oe()});function De(){let e=Y===E;e&&U&&G(!1),e&&W&&(k.value=``,k.dispatchEvent(new Event(`change`))),t.classList.toggle(`add-session-shell`,e),ye.hidden=!e,I.hidden=!e&&F.getAttribute(`aria-expanded`)!==`true`,e&&(L.value.trim()||(L.value=E),requestAnimationFrame(()=>L.focus()))}function Oe(){if(!t.isConnected){ke();return}let e=se(Y),n=e?O(e):null;le.hidden=W===null||e===null||n===null||n.state===`signed-in`,ue.textContent=e?M(n,e):``}de.addEventListener(`click`,()=>{let e=se(Y);e&&ce(e)});let ke=x(Oe);N();let Ae=!1,je=!1;z.addEventListener(`change`,()=>{Ae=!0});function Q(){let e=je&&W===null;he.hidden=e,!Ae&&(z.checked=e)}l(`get-settings`,{},{timeoutMs:h}).then(e=>{e.type===`settings-error`?(Z(`Could not load your settings (${e.message}). Check Sane YOLO mode yourself.`),Q()):(Me(ae(e.settings)),je=ie(e.settings),Q())}).catch(e=>{Z(`Could not load your settings (${m(e,h)}). Check Sane YOLO mode yourself.`),Q()});function Me(e){if(e.length!==0){xe=e,k.textContent=``,k.appendChild(A(`Local`,{value:``,selected:!0}));for(let t of e)k.appendChild(A(t.name,{value:t.name}));ne.hidden=!1}}k.addEventListener(`change`,()=>{W=xe.find(e=>e.name===k.value)??null,g.hidden=W!==null,j.hidden=W===null,j.textContent=W?oe(W):``,Oe(),Q(),W!==null&&U&&G(!1)}),L.addEventListener(`input`,()=>{r.selectedIndex=0}),R.addEventListener(`input`,()=>{r.selectedIndex=0});function Ne(){if(X)return;let e=L.value.trim(),t=R.value.trim();if(Y===`shell`){if(!e){V.textContent=`Enter a name.`;return}$({name:v(e),path:t,agent:E});return}if(U){let t=[...a.querySelectorAll(`input:checked`)].map(e=>e.value);if(!e||t.length<2){V.textContent=`Enter a name and select at least two repositories.`;return}let n={name:v(e),path:t[0],repos:t,dangerouslySkipPermissions:z.checked,saneYolo:z.checked,unguarded:B.checked};Y&&Y!==`claude-code`&&(n.agent=Y),$(n);return}if(!e||!t){V.textContent=`Both fields are required. Select a project or use Advanced options.`;return}let n={name:v(e),path:t,dangerouslySkipPermissions:z.checked,saneYolo:z.checked,unguarded:B.checked};Y&&Y!==`claude-code`&&(n.agent=Y),W&&(n.environment=W.name),$(n)}function $(e){H.disabled=!0,V.textContent=``,l(`add-session`,e,{timeoutMs:h}).then(e=>{e.type===`add-session-result`&&e.ok?(n(),ee(e.sessionId)):V.textContent=S(e)}).catch(e=>{V.textContent=`The session was not added: ${m(e,h)}`}).finally(()=>{H.disabled=X})}be.addEventListener(`click`,n),H.addEventListener(`click`,Ne),L.addEventListener(`keydown`,e=>{e.key===`Enter`&&(U&&Ne(),U||R.focus())}),R.addEventListener(`keydown`,e=>{e.key===`Enter`&&Ne()}),requestAnimationFrame(()=>r.focus())}function de({issueId:e,issueTitle:t,format:n,content:r,message:i,error:a}){let{dialog:o,close:s,actions:l,btnCancel:d}=u({title:`Investigation report`,dialogClass:`dialog dialog-report`,cancelLabel:`Close`}),f=c(`div`,`dialog-report-meta`,t||e||``),p=null;n===`html`&&!a&&!i&&(p=ne({source:{kind:`srcdoc`,html:r||``},className:`dialog-report-frame`,title:`Investigation report`,allowsScripts:!1})),p||=c(`pre`,a?`dialog-report-body dialog-report-error`:`dialog-report-body`,a||i||r||``),o.append(f,p,l),d.addEventListener(`click`,s),requestAnimationFrame(()=>d.focus())}function P({issueTitle:r,projectLabel:i,onOpenReport:o}){let{dialog:s,close:l,actions:d,btnCancel:f}=u({title:`Investigation`,dialogClass:`dialog dialog-report`,cancelLabel:`Close`}),p=c(`div`,`dialog-report-meta`,i?`${i}: ${r}`:r),m=c(`p`,`dialog-trail-status`),h=c(`p`,`dialog-trail-summary`),_=c(`ol`,`dialog-trail-steps`),v=c(`p`,`dialog-trail-empty`,`No tool calls yet; the session is reading the issue.`),y=c(`button`,`btn-dialog btn-dialog-cancel`,`Open report`);y.type=`button`,y.hidden=!0,y.addEventListener(`click`,()=>{l(),o()}),d.prepend(y),s.append(p,m,h,_,v,d),f.addEventListener(`click`,l),requestAnimationFrame(()=>f.focus());let b=null,x=``;function S(n){let r=_.scrollHeight-_.scrollTop-_.clientHeight<24,i=t(n);if(x!==i){_.textContent=``;for(let t of e(n.steps)){let e=c(`li`,`dialog-trail-step dialog-trail-${t.kind}`),r=t.kind===`note`?t.text:`${t.stepCount} ${t.stepCount===1?`step`:`steps`}`;e.append(c(`span`,`dialog-trail-at`,a(n.startedAt,t.at)),c(`span`,`dialog-trail-detail`,r)),_.append(e)}x=i}v.hidden=n.steps.length>0||!n.inFlight,_.hidden=n.steps.length===0,r&&(_.scrollTop=_.scrollHeight)}function C(e){m.textContent=n(e,D(e.startedAt))}function w(){b&&(C(b),m.dataset.tone=b.inFlight?`live`:`done`,h.textContent=b.summaryLine,h.hidden=!b.summaryLine,y.hidden=b.inFlight||!b.verdict,S(b))}let T=g(()=>{s.isConnected?b?.inFlight&&C(b):T()});return{update(e){b=e,w()},isOpen:()=>s.isConnected,close:()=>{T(),l()}}}export{O as agentLoginOf,M as agentLoginSummary,ue as createAddSessionDialog,P as createInvestigationDialog,de as createRadarReportDialog,x as onAgentLoginsChanged,ce as openAgentConnectDialog,le as openRemoteSetupDialog};
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./dom-helpers-I_SDCPvs.js";import{d as t}from"./control-ws-DS1pvNbe.js";import{a as n,r,t as i}from"./modal-BRwbyxA2.js";import{s as a,t as o}from"./action-status-Cfrg8b4w.js";import{
|
|
1
|
+
import{o as e}from"./dom-helpers-I_SDCPvs.js";import{d as t}from"./control-ws-DS1pvNbe.js";import{a as n,r,t as i}from"./modal-BRwbyxA2.js";import{s as a,t as o}from"./action-status-Cfrg8b4w.js";import{ti as s,yn as c}from"./index-CCwbxRUr.js";import{i as l,t as u}from"./plan-render-DdduGzbo.js";var d=null;function f(t){let n=s(t.sessionId);t.select.replaceChildren(...n.map(n=>{let r=e(`option`,null,n.name);return r.value=n.path,r.selected=n.path===t.docPath,r})),t.select.hidden=n.length<2,t.title.textContent=n.find(e=>e.path===t.docPath)?.name??t.title.textContent}function p(e){let t=s(e.sessionId).some(t=>t.path===e.docPath);e.btnEdit.setAttribute(`aria-pressed`,String(e.mode===`edit`)),e.btnPreview.setAttribute(`aria-pressed`,String(e.mode===`preview`)),e.textarea.hidden=e.mode!==`edit`,e.preview.hidden=e.mode!==`preview`,e.select.disabled=e.isBusy,e.btnReload.disabled=e.isBusy||!t,e.btnSave.disabled=e.isBusy||!t||e.baseHash===null||!e.hasUnsavedChanges}function m(e,t,n=`quiet`){e.status.textContent=t,e.status.dataset.tone=n}function h(e){e.preview.replaceChildren(u(l(e.textarea.value)))}function g(e,t){n({title:e,message:`Your unsaved edits will be lost.`,confirmLabel:`Discard`,danger:!0,onConfirm:t})}function _(e,t,n){e.hasUnsavedChanges?g(t,n):n()}async function v(e,n){try{return{reply:await t(e,n,{timeoutMs:o}),failureText:null}}catch(e){return{reply:null,failureText:a(e,o)}}}async function y(e,t){e.docPath=t,e.isBusy=!0,e.baseHash=null,e.textarea.readOnly=!0,f(e),m(e,`Loading`),p(e);let{reply:n,failureText:r}=await v(`session-doc-read`,{id:e.sessionId,path:t});if(d!==e||e.docPath!==t)return;e.isBusy=!1,e.textarea.readOnly=!1;let i=n?.type===`session-doc-response`?n:null;!i?.ok||i.text===void 0||i.hash===void 0?(m(e,i?.error||r||`Could not open this doc`,`warn`),p(e)):(e.textarea.value=i.text,e.baseHash=i.hash,e.hasUnsavedChanges=!1,e.mode===`preview`&&h(e),m(e,``),p(e))}async function b(e){if(e.btnSave.disabled||e.baseHash===null)return;e.isBusy=!0,m(e,`Saving`),p(e);let t=e.docPath,n=e.textarea.value,{reply:r,failureText:i}=await v(`session-doc-save`,{id:e.sessionId,path:t,text:n,baseHash:e.baseHash});if(d!==e||e.docPath!==t)return;e.isBusy=!1;let a=r?.type===`session-doc-save-result`?r:null;!a?.ok||a.hash===void 0?(m(e,a?.conflict?`The agent changed this file since you opened it. Reload to see its version.`:a?.error||i||`Save failed`,`warn`),p(e)):(e.baseHash=a.hash,e.hasUnsavedChanges=e.textarea.value!==n,m(e,e.hasUnsavedChanges?`Unsaved changes`:`Saved`),p(e))}function x(e,t){e.mode=t,t===`preview`&&h(e),p(e),t===`edit`&&e.textarea.focus()}function S(t,n){let r=e(`button`,`plan-control ${n}`,t);return r.type=`button`,r}function C(t){let n=s(t)[0];if(!n||d)return;let a=()=>_(M,`Close this doc?`,()=>M.close()),o=r({dialogClass:`doc-editor`,closeOnBackdrop:!1,onEscape:a}),l=`doc-editor-title-${t}`,u=e(`h3`,`doc-editor-title`,n.name);u.id=l;let f=e(`select`,`plan-control doc-editor-picker`);f.setAttribute(`aria-label`,`Doc`);let h=e(`span`,`doc-editor-status`);h.setAttribute(`role`,`status`);let g=S(`Edit`,`doc-editor-mode`),v=S(`Preview`,`doc-editor-mode`),C=S(`Reload`,`doc-editor-reload`),w=S(`Save`,`doc-editor-save`),T=S(`Close`,`doc-editor-close`),E=e(`div`,`doc-editor-modes`);E.append(g,v);let D=e(`div`,`doc-editor-actions`);D.append(h,C,w,T);let O=e(`div`,`doc-editor-header`);O.append(u,f,E,D);let k=e(`textarea`,`plan-editor doc-editor-text`);k.spellcheck=!0,k.setAttribute(`aria-labelledby`,l);let A=e(`div`,`doc-editor-preview`),j=e(`div`,`doc-editor-body`);j.append(k,A),o.dialog.append(O,j),i(o.dialog,l);let M={sessionId:t,docPath:n.path,baseHash:null,hasUnsavedChanges:!1,isBusy:!1,mode:c()?`preview`:`edit`,title:u,select:f,textarea:k,preview:A,status:h,btnEdit:g,btnPreview:v,btnReload:C,btnSave:w,close:()=>{d=null,o.close()}};d=M,k.addEventListener(`input`,()=>{M.hasUnsavedChanges||(M.hasUnsavedChanges=!0,m(M,`Unsaved changes`),p(M))}),k.addEventListener(`keydown`,e=>{(e.ctrlKey||e.metaKey)&&e.key.toLowerCase()===`s`&&(e.preventDefault(),b(M))}),f.addEventListener(`change`,()=>{let e=f.value;f.value=M.docPath,_(M,`Open another doc?`,()=>{y(M,e)})}),g.addEventListener(`click`,()=>x(M,`edit`)),v.addEventListener(`click`,()=>x(M,`preview`)),C.addEventListener(`click`,()=>{_(M,`Reload this doc?`,()=>{y(M,M.docPath)})}),w.addEventListener(`click`,()=>{b(M)}),T.addEventListener(`click`,a),y(M,n.path),M.mode===`edit`&&k.focus()}function w(e){d&&d.sessionId===e&&(f(d),p(d),!s(e).some(e=>e.path===d?.docPath)&&m(d,`This doc is no longer surfaced, so it cannot be saved.`,`warn`))}export{w as applyDocsToOpenEditor,C as openDocEditor};
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{gt as e}from"./updates-view-core-ma4WYKET.js";import{o as t}from"./dom-helpers-I_SDCPvs.js";import{u as n}from"./control-ws-DS1pvNbe.js";import{An as r,i,kn as a,na as o,oi as s,si as c}from"./index-CCwbxRUr.js";var l={teamReview:e=>`${e} pull requests reviewed this week. Reviews lines up every PR waiting on you, and it is off right now.`,issues:e=>`${e} issues touched this week. The Issues tab keeps them in one list and starts a session on any of them, and it is off right now.`,usage:()=>`Keeping an eye on tokens? Usage tracks spend per session and warns before a limit hits, and it is off right now.`,posthog:()=>`Hunting errors again? Radar watches PostHog error tracking and can investigate an issue for you, and it is off right now.`,benchmarks:()=>`Comparing agents by hand? Bench runs the same review cases across agent setups side by side, and it is off right now.`};function u(e){return`${l[e.feature](e.distinctTargetCount)} Show me takes you to its switch in Settings.`}function d(e){let t=i.find(t=>t.rule===e);return t?{sectionId:t.sectionId,settingId:t.settingId}:null}var f=null;function p(e,t){n({type:`dashboard-telemetry`,event:`operator_action`,properties:{surface:`hints`,action:t,feature:e}})}function m(e){try{return r(localStorage,a(`feature-hint`,`${e.feature}-${e.raisedAt}`),Date.now())}catch{return!0}}function h(t,n){if(n.isFeatureEnabled(t)){n.openView(e[t]);return}let r=d(t);r&&n.openSetting(r.sectionId,r.settingId)}function g(e,n){if(f?.isConnected||!m(e))return;let r=t(`aside`,`feature-hint`);r.setAttribute(`aria-live`,`polite`),r.setAttribute(`aria-label`,`Feature tip`);let i=t(`div`,`feature-hint-bubble`),a=t(`button`,`btn-dialog btn-dialog-confirm`,`Show me`),l=t(`button`,`btn-dialog btn-dialog-cancel`,`Nah`);a.type=`button`,l.type=`button`;let d=t(`div`,`feature-hint-actions`);d.append(l,a),i.append(t(`p`,`feature-hint-text`,u(e)),d);let g=c()??o[0];r.append(i,s(g,`feature-hint-animal`));function _(t){p(e.feature,t),r.remove(),f=null}a.addEventListener(`click`,()=>{_(`open`),h(e.feature,n)}),l.addEventListener(`click`,()=>_(`dismiss`)),document.body.append(r),f=r,p(e.feature,`shown`)}export{g as showFeatureHint};
|
|
Binary file
|
package/dist/client/assets/{first-run-checklist-DMpBBRC1.js → first-run-checklist-DKeSAsQX.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e,y as t}from"./dom-helpers-I_SDCPvs.js";import{d as n,u as r}from"./control-ws-DS1pvNbe.js";import{i,s as a,t as o}from"./action-status-Cfrg8b4w.js";import{En as s,mr as c,vr as l,yr as u}from"./index-
|
|
1
|
+
import{o as e,y as t}from"./dom-helpers-I_SDCPvs.js";import{d as n,u as r}from"./control-ws-DS1pvNbe.js";import{i,s as a,t as o}from"./action-status-Cfrg8b4w.js";import{En as s,mr as c,vr as l,yr as u}from"./index-CCwbxRUr.js";import{a as d,c as f,i as p,l as m,n as h,o as g,r as _,s as v,t as y}from"./repo-roots-adder-BEGxMD41.js";var b=`npm install -g @anthropic-ai/claude-code`,x={done:`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" role="img" aria-label="Done"><circle cx="12" cy="12" r="10"></circle><path d="M7.5 12.5l3 3 6-6.5"></path></svg>`,current:`<svg width="18" height="18" viewBox="0 0 24 24" role="img" aria-label="Needed"><path d="M12 3l9 9-9 9-9-9z" fill="currentColor"></path></svg>`,upcoming:`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" role="img" aria-label="Not started"><circle cx="12" cy="12" r="10"></circle></svg>`},S=null,C=null,w=null,T=null,E={steps:_,agentSummary:``,repoRoots:[],isShellAvailable:!1},D=0,O=!1,k=!1,A=new Set,j=i(`first-run-load-status`),M=s();function N(e){r({type:`dashboard-telemetry`,event:`operator_action`,properties:{surface:`onboarding`,action:e}})}function P(e){for(let t of v(A,e))r({type:`dashboard-telemetry`,event:`onboarding_step`,properties:t})&&A.add(f(t))}function F({title:t,state:n,summary:r,badge:i,body:a}){let o=e(`li`,`first-run-step`);o.dataset.state=n,n===`current`&&o.setAttribute(`aria-current`,`step`);let s=e(`div`,`first-run-step-head`),c=e(`span`,`first-run-step-icon`);if(c.innerHTML=x[n],s.append(c,e(`span`,`first-run-step-title`,t)),n===`done`&&r&&s.append(e(`span`,`first-run-step-summary`,r)),n===`current`&&i&&s.append(e(`span`,`first-run-step-badge`,i)),o.append(s),n!==`current`)return o;let l=e(`div`,`first-run-step-body`);return l.append(...a()),o.append(l),o}function I(){return c()?`No supported agent is on PATH of the machine running Glimmervoid. Install Claude Code, Codex or Grok there, then rescan.`:`No supported agent is on PATH. Install Claude Code, Codex or Grok, then rescan.`}function L(){let n=e(`div`,`first-run-command-row`);if(n.append(e(`code`,`first-run-command`,b)),!navigator.clipboard?.writeText)return n;let r=e(`button`,`btn-dialog btn-dialog-cancel`,`Copy`);r.type=`button`;let i=e(`span`,`first-run-copy-status`);return i.setAttribute(`role`,`status`),r.addEventListener(`click`,async()=>{let e=t(b);i.textContent=e?await e.then(()=>`Copied`,()=>`Copy failed`):`Copy failed`}),n.append(r,i),n}function R(){let t=e(`button`,`btn-dialog btn-dialog-cancel`,`Open shell`);return t.type=`button`,t.addEventListener(`click`,()=>{N(`open-shell`),u()}),t}function z(){let t=e(`div`,`first-run-step-actions`);w=e(`button`,`btn-dialog btn-dialog-cancel`,`Rescan`),w.type=`button`,w.addEventListener(`click`,()=>{N(`rescan`),U({rescanAgents:!0})}),t.append(w),E.isShellAvailable&&t.append(R());let n=[e(`p`,`first-run-step-text`,I()),L(),t];return O?[...n,e(`p`,`first-run-step-hint`,`Still missing after a rescan? Restart Glimmervoid from a terminal where the command runs. Other terminal agents go under customAgents.`)]:n}function B(){let t=T??y({onAdded:e=>{N(e===`typed`?`add-root-typed`:`add-root-suggested`),U({rescanAgents:!1})}});return T=t,[e(`p`,`first-run-step-text`,`The folder that holds your git checkouts. Each subfolder becomes a project you can start a session in.`),t.element]}function V(){let t=e(`div`,`first-run-step-actions`),n=e(`button`,`btn-dialog btn-dialog-confirm`,`+ Session`);return n.type=`button`,n.addEventListener(`click`,()=>{N(`add-session`),l()}),t.append(n),[e(`p`,`first-run-step-text`,`Pick a project and an agent. The session runs in its own git worktree, so your checkout is never touched.`),t]}function H(){if(!C)return;let{steps:e,agentSummary:t,repoRoots:n}=E;C.replaceChildren(F({title:`1. Agent CLI`,state:e.agent,summary:t,badge:`MISSING`,body:z}),F({title:`2. Repository roots`,state:e.repoRoots,summary:n.join(`, `),badge:`NEEDED`,body:B}),F({title:`3. First session`,state:e.firstSession,summary:``,badge:``,body:V}))}async function U({rescanAgents:e}){D+=1;let t=D;w&&(w.disabled=!0);try{let[r,i]=await Promise.all([n(`list-agents`,e?{rescan:!0}:{},{timeoutMs:o}),n(`scan-repo-roots`,{includeSuggestions:!0},{timeoutMs:o})]);if(t!==D)return;let a=i.type===`repo-roots-scanned`,s=a?i.directories.map(e=>e.root):[],c=a?i.suggestions??[]:[],l=m(s,c);if(l.length>0&&!k){k=!0;let e=await h(l).catch(e=>String(e));if(t!==D)return;if(!e){U({rescanAgents:!1});return}}let u=g({agentListing:r,repoRoots:s});e&&(O=u.agent===`current`),E={steps:u,agentSummary:p(r),repoRoots:s,isShellAvailable:d(r)},j.clear(),H(),P(E.steps),T?.setSuggestions(c)}catch(e){if(w&&(w.disabled=!1),t!==D)return;j.show(`error`,`The checklist could not load: ${a(e,o)} It loads again once the server answers. If it stays like this, check the terminal running Glimmervoid, or run glimmervoid doctor.`)}}function W(){if(S)return S;let t=e(`section`,`first-run-checklist`);t.setAttribute(`aria-labelledby`,`first-run-title`);let n=e(`h2`,`first-run-title`,`Get to your first session`);n.id=`first-run-title`,C=e(`ol`,`first-run-steps`);let r=e(`div`,`first-run-optional`);return r.append(e(`span`,`first-run-eyebrow`,`OPTIONAL`),M.element),t.append(e(`span`,`first-run-eyebrow`,`FIRST RUN`),n,C,j.element,r),S=t,H(),t}function G(e,t){if(!t){S?.parentElement===e&&!S.hidden&&(S.hidden=!0);return}let n=W(),r=!n.hidden&&n.parentElement===e;n.parentElement!==e&&e.append(n),n.hidden=!1,M.refresh(),r||U({rescanAgents:!1})}function K(){S&&!S.hidden&&S.isConnected&&U({rescanAgents:!1})}export{K as refreshFirstRunChecklist,G as showFirstRunChecklist};
|
|
Binary file
|