glimmervoid 0.46.2-next.172 → 0.46.2-next.175
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 +8 -8
- package/dist/chunks/{adapters-D6Ahh-0N.js → adapters-B0FRgNMD.js} +1 -1
- package/dist/chunks/{adapters-DcwEFAL6.js → adapters-uj1hQlDB.js} +2 -2
- package/dist/chunks/{agent-api-cli-Da6Mnsgd.js → agent-api-cli-C7rOK_j2.js} +1 -1
- package/dist/chunks/{agent-api-cli-D3QOc599.js → agent-api-cli-DN6W8Xwx.js} +1 -1
- package/dist/chunks/{agent-api-core-DCWsT3Go.js → agent-api-core-CkplLc3H.js} +1 -1
- package/dist/chunks/{build-channel-DpjXts1H.js → build-channel-B7N0y2ED.js} +1 -1
- package/dist/chunks/{config-CJdmvb1o.js → config-FWXqJcc5.js} +5 -1
- package/dist/chunks/{config-store-DWSMumb7.js → config-store-ByTf734U.js} +63 -15
- package/dist/chunks/config-store-CfexUCju.js +1 -0
- package/dist/chunks/{main-Be-bJ9I6.js → main-CWUVOH3k.js} +137 -59
- package/dist/chunks/{pair-cli-DM6Xq2ih.js → pair-cli-1f912zOk.js} +2 -2
- package/dist/chunks/{remote-config-iLIA4R6l.js → remote-config--aXh1Cd8.js} +1 -1
- package/dist/chunks/{settings-cli-BllYJrN0.js → settings-cli-D5r4x085.js} +4 -4
- package/dist/chunks/{settings-readout-core-IdcIhB9-.js → settings-readout-core-CVlJx8Jy.js} +1 -1
- package/dist/chunks/{ssh-sign-cli-OGA1oFoB.js → ssh-sign-cli-hDAdQeDt.js} +1 -1
- package/dist/client/assets/{alert-sound-BgYd0ypF.js → alert-sound-_z7Dm3R9.js} +1 -1
- package/dist/client/assets/alert-sound-_z7Dm3R9.js.br +0 -0
- package/dist/client/assets/{benchmark-panel-CK-gegL7.js → benchmark-panel-BbRdSInP.js} +1 -1
- package/dist/client/assets/benchmark-panel-BbRdSInP.js.br +0 -0
- package/dist/client/assets/{celebration-player-Dq-R2Wcv.js → celebration-player-DTiFbb35.js} +1 -1
- package/dist/client/assets/celebration-player-DTiFbb35.js.br +0 -0
- package/dist/client/assets/{dialogs-C4urfCX5.js → dialogs-DzbiOmY7.js} +1 -1
- package/dist/client/assets/dialogs-DzbiOmY7.js.br +0 -0
- package/dist/client/assets/{doc-editor-ui-BWALmn1j.js → doc-editor-ui-ClrU3oDa.js} +1 -1
- package/dist/client/assets/doc-editor-ui-ClrU3oDa.js.br +0 -0
- package/dist/client/assets/{feature-hint-7DZVKLnC.js → feature-hint-BpEWrzZN.js} +1 -1
- package/dist/client/assets/feature-hint-BpEWrzZN.js.br +0 -0
- package/dist/client/assets/{first-run-checklist-BaLByGQ_.js → first-run-checklist-DkQzY1pW.js} +1 -1
- package/dist/client/assets/first-run-checklist-DkQzY1pW.js.br +0 -0
- package/dist/client/assets/{hooks-panel-Dl1VF0JJ.js → hooks-panel-CDpDGmY5.js} +1 -1
- package/dist/client/assets/hooks-panel-CDpDGmY5.js.br +0 -0
- package/dist/client/assets/{index-CqQFS_Q3.js → index-Cd02aQnA.js} +5 -5
- package/dist/client/assets/index-Cd02aQnA.js.br +0 -0
- package/dist/client/assets/{issues-panel-D3htmAvu.js → issues-panel-A5LJ61Cq.js} +1 -1
- package/dist/client/assets/issues-panel-A5LJ61Cq.js.br +0 -0
- package/dist/client/assets/{nyan-cat-ZjB6TUA5.js → nyan-cat-B7_txP1j.js} +1 -1
- package/dist/client/assets/nyan-cat-B7_txP1j.js.br +0 -0
- package/dist/client/assets/{phone-shell-C8OI4l_f.js → phone-shell-DehKjRr3.js} +1 -1
- package/dist/client/assets/phone-shell-DehKjRr3.js.br +0 -0
- package/dist/client/assets/{plan-face-3AAdtxb-.js → plan-face-CT2hwIEG.js} +1 -1
- package/dist/client/assets/plan-face-CT2hwIEG.js.br +0 -0
- package/dist/client/assets/{plan-render-Cuafb6dS.js → plan-render-DsrdUpcq.js} +1 -1
- package/dist/client/assets/plan-render-DsrdUpcq.js.br +0 -0
- package/dist/client/assets/{pr-scope-tabs-CZ49XA5T.js → pr-scope-tabs-DucWOmEZ.js} +1 -1
- package/dist/client/assets/pr-scope-tabs-DucWOmEZ.js.br +0 -0
- package/dist/client/assets/{radar-panel-BujAUNbW.js → radar-panel-vU7dCSxg.js} +1 -1
- package/dist/client/assets/radar-panel-vU7dCSxg.js.br +0 -0
- package/dist/client/assets/{resume-dialog-CQzhWvvS.js → resume-dialog-Crlm72y7.js} +1 -1
- package/dist/client/assets/resume-dialog-Crlm72y7.js.br +0 -0
- package/dist/client/assets/{review-queue-panel-DoFR1Vot.js → review-queue-panel-VFash4bY.js} +1 -1
- package/dist/client/assets/review-queue-panel-VFash4bY.js.br +0 -0
- package/dist/client/assets/settings-panel-jhCHPrkw.js +4 -0
- package/dist/client/assets/settings-panel-jhCHPrkw.js.br +0 -0
- package/dist/client/assets/{shown-lightbox-DefsDlvD.js → shown-lightbox-BmAQRZeO.js} +1 -1
- package/dist/client/assets/shown-lightbox-BmAQRZeO.js.br +0 -0
- package/dist/client/assets/{trace-panel-ufbRf4Mu.js → trace-panel-CFtimqT1.js} +1 -1
- package/dist/client/assets/trace-panel-CFtimqT1.js.br +0 -0
- package/dist/client/assets/{usage-panel-B8d4L8l5.js → usage-panel-E3_iIpqO.js} +1 -1
- package/dist/client/assets/usage-panel-E3_iIpqO.js.br +0 -0
- package/dist/client/assets/{visions-panel-CK6VjHue.js → visions-panel-U0WY3yRu.js} +1 -1
- package/dist/client/assets/visions-panel-U0WY3yRu.js.br +0 -0
- package/dist/client/index.html +1 -1
- package/dist/client/index.html.br +0 -0
- package/dist/server/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/config-store-D-DLX3ow.js +0 -1
- package/dist/client/assets/alert-sound-BgYd0ypF.js.br +0 -0
- package/dist/client/assets/benchmark-panel-CK-gegL7.js.br +0 -0
- package/dist/client/assets/celebration-player-Dq-R2Wcv.js.br +0 -0
- package/dist/client/assets/dialogs-C4urfCX5.js.br +0 -0
- package/dist/client/assets/doc-editor-ui-BWALmn1j.js.br +0 -0
- package/dist/client/assets/feature-hint-7DZVKLnC.js.br +0 -0
- package/dist/client/assets/first-run-checklist-BaLByGQ_.js.br +0 -0
- package/dist/client/assets/hooks-panel-Dl1VF0JJ.js.br +0 -0
- package/dist/client/assets/index-CqQFS_Q3.js.br +0 -0
- package/dist/client/assets/issues-panel-D3htmAvu.js.br +0 -0
- package/dist/client/assets/nyan-cat-ZjB6TUA5.js.br +0 -0
- package/dist/client/assets/phone-shell-C8OI4l_f.js.br +0 -0
- package/dist/client/assets/plan-face-3AAdtxb-.js.br +0 -0
- package/dist/client/assets/plan-render-Cuafb6dS.js.br +0 -0
- package/dist/client/assets/pr-scope-tabs-CZ49XA5T.js.br +0 -0
- package/dist/client/assets/radar-panel-BujAUNbW.js.br +0 -0
- package/dist/client/assets/resume-dialog-CQzhWvvS.js.br +0 -0
- package/dist/client/assets/review-queue-panel-DoFR1Vot.js.br +0 -0
- package/dist/client/assets/settings-panel-DlfybW7k.js +0 -4
- package/dist/client/assets/settings-panel-DlfybW7k.js.br +0 -0
- package/dist/client/assets/shown-lightbox-DefsDlvD.js.br +0 -0
- package/dist/client/assets/trace-panel-ufbRf4Mu.js.br +0 -0
- package/dist/client/assets/usage-panel-B8d4L8l5.js.br +0 -0
- package/dist/client/assets/visions-panel-CK6VjHue.js.br +0 -0
|
@@ -5,9 +5,9 @@ import { c as resolvePackageBin, i as clientDir, n as bundled, o as packageRoot,
|
|
|
5
5
|
import { n as glimmervoidHomeDir, r as isOperatorHomeUnderTest, t as decideConfigPath } from "./config-path-core-DUWk0Lui.js";
|
|
6
6
|
import { At as TeamReviewThreadCommentsResponse, B as MyPr, Bt as GH_SEGMENT, C as SESSION_DOC_BODY_CAP_BYTES, Ct as ReviewVerdict, D as SHOWN_FILE_CAP_BYTES, Dt as TeamReviewResolveResponse, E as SESSION_NAME_RULE_TEXT, Et as TeamReviewCompareFiles, F as SshSignRequest, H as MyPrCheckContext, Ht as REPO_SLUG_RE, It as hasStandingViewerApproval, J as MyPrMergeRequest, Jt as BADGE_LABELS, K as MyPrLaneEntry, L as TaskTitle, Mt as TeamReviewThreadsRepository, N as ShownFile, Nt as canApproveAfterComment, O as SIGN_URL_ENV, Ot as TeamReviewStateEntry, Pt as decisionAsIfApprovalRequired, Qt as STATES, Rt as HEX_SHA_RE, St as ReviewThreadId, T as SESSION_NAME_PATTERN, U as MyPrCheckContextsResponse, Ut as repoParts, V as MyPrAutoRebase, Vt as NODE_ID_RE, W as MyPrKeepMergeableRequest, X as MyPrMergeStateResponse, Xt as MERGEABLE_LIVE_STATES, Yt as KILLABLE_STATES, Z as MyPrMergeWhenReadyRequest, Zt as RESTARTABLE_STATES, _ as CONVERSATION_PERMISSION_HOOK_EVENT, b as ConversationQuestion, bt as ReviewFinding, ct as CommitSha, dt as FindingSeverity, et as MyPrThreadNode, g as CONVERSATION_APPROVAL_SUMMARY_MAX_CHARS, gt as PrDetail, h as COHERENCE_HOOKS_INACTIVE, ht as PostingPlan, jt as TeamReviewThreadResult, k as SSH_SIGN_BODY_CAP_BYTES, kt as TeamReviewStatus, lt as DECIDING_REVIEW_STATES, mt as PostedReviewEvent, n as AGENT_URL_ENV, nt as MyPrsSnapshot, pt as GithubReviewState, q as MyPrMergeMethod, r as ASK_USER_QUESTION_TOOL_NAME, rt as MyPrsState, tt as MyPrThreadsResponse, ut as EarlierReview, v as CONVERSATION_TOOL_RESULT_HOOK_EVENT, vt as ReviewComment, wt as TeamReviewActionRequest, xt as ReviewResult, yt as ReviewDraft, z as LinkedPr, zt as shortSha } from "./session-B2Wieg0a.js";
|
|
7
7
|
import { n as execFileAsync, o as spawn, r as execFileSync, t as execFile } from "./child-process-safe-D4hyVIXj.js";
|
|
8
|
-
import { At as PLAN_HOOK_OUTPUT_MAX_CHARS, B as MinedPrReviewData, Bt as IssueUpdate, Ct as TraceCheckpoint, D as FeatureHintState, Dt as changeMapFactId, E as pullRequestKeyFromReference, Et as ChangeMap, F as BenchmarkRun, Ft as parseExitPlanModeHookPayload, G as GithubPrsFrame, H as GithubPrDetailNode, Ht as IssuesState, I as BenchmarkStatus, It as planTitle, J as WorkflowLabelName, K as comparablePrKey, L as BenchmarkSuite, Lt as GithubIssuePullRequestsRepository, M as BenchmarkCase, Mt as PLAN_TOOL_NAME, N as BenchmarkId, Nt as PlanDecision, O as HINT_FEATURES, Ot as PLAN_BODY_CAP_BYTES, P as BenchmarkJudgement, Pt as PlanRevision, R as CommitComparison, Rt as GithubIssueResponse, St as MAX_RAW_LINE_CHARS, Tt as CoherenceJournalOutput, U as GithubPrKey, Ut as IssuesStatus, V as PrCheckoutCaseInput, Vt as IssuesSearchResponse, W as GithubPrLightSearchNode, Wt as issuePullRequestStateFromGithub, X as WorkflowsState, Y as WorkflowsSettings, _ as CLIENT_LOG_TEXT_MAX_CHARS, a as ConfigUpdate, bt as UpdateJournal, d as ReviewAgentId, f as USAGE_COST_MODES, h as CHANGES_POLL_INTERVAL_MS, j as BenchmarkActionRequest, jt as PLAN_RESULT_HOOK_EVENT, k as HINT_VIEW_BY_FEATURE, kt as PLAN_HOOK_EVENT, l as configIssueMessage, p as USAGE_VENDOR_KEYS, pt as USAGE_INTEGER_RANGES, q as WorkflowCommentBody, r as BrowserConfig, s as RUNTIME_CONFIG_SCALAR_KEYS, tt as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, v as CONTROL_FRAME_MAX_BYTES, wt as TraceRecord, xt as SessionSetup, y as ClientMessage, z as MergedPrListing, zt as IssueKey } from "./config-
|
|
8
|
+
import { At as PLAN_HOOK_OUTPUT_MAX_CHARS, B as MinedPrReviewData, Bt as IssueUpdate, Ct as TraceCheckpoint, D as FeatureHintState, Dt as changeMapFactId, E as pullRequestKeyFromReference, Et as ChangeMap, F as BenchmarkRun, Ft as parseExitPlanModeHookPayload, G as GithubPrsFrame, H as GithubPrDetailNode, Ht as IssuesState, I as BenchmarkStatus, It as planTitle, J as WorkflowLabelName, K as comparablePrKey, L as BenchmarkSuite, Lt as GithubIssuePullRequestsRepository, M as BenchmarkCase, Mt as PLAN_TOOL_NAME, N as BenchmarkId, Nt as PlanDecision, O as HINT_FEATURES, Ot as PLAN_BODY_CAP_BYTES, P as BenchmarkJudgement, Pt as PlanRevision, R as CommitComparison, Rt as GithubIssueResponse, St as MAX_RAW_LINE_CHARS, Tt as CoherenceJournalOutput, U as GithubPrKey, Ut as IssuesStatus, V as PrCheckoutCaseInput, Vt as IssuesSearchResponse, W as GithubPrLightSearchNode, Wt as issuePullRequestStateFromGithub, X as WorkflowsState, Y as WorkflowsSettings, _ as CLIENT_LOG_TEXT_MAX_CHARS, a as ConfigUpdate, bt as UpdateJournal, d as ReviewAgentId, f as USAGE_COST_MODES, h as CHANGES_POLL_INTERVAL_MS, j as BenchmarkActionRequest, jt as PLAN_RESULT_HOOK_EVENT, k as HINT_VIEW_BY_FEATURE, kt as PLAN_HOOK_EVENT, l as configIssueMessage, p as USAGE_VENDOR_KEYS, pt as USAGE_INTEGER_RANGES, q as WorkflowCommentBody, r as BrowserConfig, s as RUNTIME_CONFIG_SCALAR_KEYS, tt as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, v as CONTROL_FRAME_MAX_BYTES, wt as TraceRecord, xt as SessionSetup, y as ClientMessage, z as MergedPrListing, zt as IssueKey } from "./config-FWXqJcc5.js";
|
|
9
9
|
import { a as permitsHelpCommand, o as supervisionLine, r as describeSessionLimits } from "./session-routes-Cr9S--Nf.js";
|
|
10
|
-
import { A as seedTaskTitleSources, B as listRepoWorktreePaths, C as extractPromptTaskTitle, D as parseRefinedTaskTitle, E as parseRefinedSessionName, F as resumePromptFor, H as nextSuggestedName, I as shouldAdoptReportedResumeId, L as claudeProjectsDir, M as RESUME_ID_RE, N as pickAutoResume, O as resolveRefocusTaskTitle, P as resolveResumeTarget, R as encodeProjectDir, S as extractOscTaskTitle, T as isSubstantivePrompt, V as isAutoNameOf, _ as buildTaskTitleRefinementPrompt, a as decideSpawnAllowance, b as decideTaskTitleRefinement, c as describeKeptChildAttention, d as describeUnpushedCloseRefusal, g as buildPersistedTaskTitle, h as projectReviews, i as decideAgentRequest, j as AUTO_CONTINUE_PROMPT, k as resolveTaskTitle, l as describePushLanding, m as projectMyPrs, n as REFUSAL_REASON, o as deriveChildSessionName, p as parseAgentVerb, s as describeChildEndNote, u as describeRoleRefusal, v as chooseRefinedSessionName, w as isSelfWakePrompt, x as extractAiTitle, y as cleanTaskPrompt, z as listRepoConversations } from "./agent-api-core-
|
|
10
|
+
import { A as seedTaskTitleSources, B as listRepoWorktreePaths, C as extractPromptTaskTitle, D as parseRefinedTaskTitle, E as parseRefinedSessionName, F as resumePromptFor, H as nextSuggestedName, I as shouldAdoptReportedResumeId, L as claudeProjectsDir, M as RESUME_ID_RE, N as pickAutoResume, O as resolveRefocusTaskTitle, P as resolveResumeTarget, R as encodeProjectDir, S as extractOscTaskTitle, T as isSubstantivePrompt, V as isAutoNameOf, _ as buildTaskTitleRefinementPrompt, a as decideSpawnAllowance, b as decideTaskTitleRefinement, c as describeKeptChildAttention, d as describeUnpushedCloseRefusal, g as buildPersistedTaskTitle, h as projectReviews, i as decideAgentRequest, j as AUTO_CONTINUE_PROMPT, k as resolveTaskTitle, l as describePushLanding, m as projectMyPrs, n as REFUSAL_REASON, o as deriveChildSessionName, p as parseAgentVerb, s as describeChildEndNote, u as describeRoleRefusal, v as chooseRefinedSessionName, w as isSelfWakePrompt, x as extractAiTitle, y as cleanTaskPrompt, z as listRepoConversations } from "./agent-api-core-CkplLc3H.js";
|
|
11
11
|
import { a as positiveIntOr, c as textOr, i as numberOr, n as isRecord, o as positiveNumberOr, r as nonNegativeIntOr, s as rawTextOr, t as coercedNumberOr } from "./coerce-NSst8oRP.js";
|
|
12
12
|
import { i as parseCommandLine, n as warnWhenGitIsTooOld } from "./git-version-WyrLHANY.js";
|
|
13
13
|
import { n as checkGuardrailsDependencies, t as allowGuardedSpawn } from "./guardrails-deps-BjPzk1rE.js";
|
|
@@ -22,15 +22,15 @@ import { n as unrefTimer, t as DEFAULT_TIMER_FNS } from "./timer-deps-u2DAQLok.j
|
|
|
22
22
|
import { a as readPageTitle, i as filesAfterRetention, n as decideShownKind, o as shownMimeForFilename, r as describeOverCap, t as SHOWN_SNIFF_BYTES } from "./shown-files-core-C7ER2sw2.js";
|
|
23
23
|
import { n as shellQuote } from "./hook-command-core-qTNK-xMF.js";
|
|
24
24
|
import { C as parseCgroupBytes, S as memoryReserveBytes, T as parseMemAvailableBytes, _ as createSpawnGate, a as jsonStateLoadError, b as cgroupLimitBytes, c as loadedJsonValue, d as writeJsonAtomicSync, f as writeTextAtomic, g as createSerialQueue, h as createMemoryAdmission, i as createJsonStateWriter, m as createKeyedSerialQueue, n as appendJsonLines, o as loadJsonStateFile, p as writeTextAtomicSync, r as createJsonStateStore, s as loadJsonStateFileSync, t as appendJsonLine, u as writeJsonAtomic, v as isQueueAdmissionTimeout, w as parseCgroupV2Path, x as headroomFromReadings, y as cgroupAncestorPaths } from "./json-file-BjFK_eSH.js";
|
|
25
|
-
import { $ as resolveProjectToken, B as buildAiGenerationEvents, G as claudeAccountUuidOf, H as buildExceptionProperties, I as FIRST_RUN_NOTICE, J as decideRemoteTelemetryState, K as codexUserIdOf, L as TELEMETRY_BATCH_URL, Q as parsePosthogReleaseId, R as TELEMETRY_FLAGS_URL, S as validateSettingsBlock, U as buildPersonProperties, V as buildBrowserExceptionProperties, W as classifySessionExit, X as exceptionFingerprint, Y as decideTelemetryConsent, Z as nodeMajorVersion, _ as isRtkBinaryName, a as ensureProjectIds, at as matchedPrefix, b as mergeSettingsBlock, ct as sessionIdFromBranch, dt as canonicalizePath, ft as comparableDirectoryPath, g as installTargetPath, h as findEscapingArchiveMember, i as createConfigStore, it as DEFAULT_BRANCH_GC_PREFIXES, lt as usablePrefixes, m as decideRtkInstall, n as DEFAULT_CONFIG, nt as stableConfigKey, o as generateProjectId, ot as planBranchGc, p as assetForPlatform, pt as isSameDirectoryPath, q as decideIsDevInstall, s as glimmervoidHomeDir$1, st as planWorktreeGc, t as ABORT_CONFIG_SAVE, ut as worktreeIntegrationTips, v as verifyDigest, x as settingsBlockSpecFor, z as adapterBucket } from "./config-store-
|
|
26
|
-
import { _ as TelemetryState, a as DEEP_HISTORY_SCROLLBACK_LINES, c as describeDataAttach, d as DashboardTelemetryReport, h as TELEMETRY_EVENT_SCHEMAS, i as HookEnvelope, l as parseDataAttach, m as PendingCrashReport, r as HTTP_URL_RE, s as LOGGED_FAST_CLOSE_COUNTS, u as parseDataClientMessage } from "./build-channel-
|
|
27
|
-
import { $ as identityFromRelPath, A as decideFileRead, B as sessionsRootCandidates, C as pickNewestPublished, D as codexRootCandidates, E as codexHomes, F as kimiHomes, G as kimiSessionIdFromPath, H as shouldPersistWarehouse, I as passOutcome, J as dedupKeys, K as parseKimiUsageLine, L as projectDirCandidates, M as expandTilde, N as grokHomes, O as codexSessionIdFromPath, P as isUsageFile, Q as foldReplacementIntoGenerationRollup, R as resolveProjectsDirs, S as parseResolvedSha, T as codexFallbackRoots, U as splitLines$1, V as shouldEvaluateDespiteIoFailures, W as kimiDedupIdentity, X as expandAdvisorIterations, Y as emptyTotals, Z as foldEntryIntoGenerationRollup, _ as isCheckFresh, a as describeAgentResolvability, at as totalTokensOf$1, b as parseRegistryDeprecation, c as isKnownAgentId, d as resolveAdapter, et as isWithinGenerationRecencyWindow, f as setCustomAgents, g as decideUpdateStatus, h as decideInstallFlavor, i as customAgentFingerprint, it as shouldReplace, j as dedupeCodexFiles, k as continuationDelayMs, l as listAgentIds, m as readHostCodexVersion, n as cachedAgentResolvability, nt as parseJsonLine, o as getAdapter, ot as vendorUsageEntry, p as codex, q as addEntryToTotals, r as commandFor, rt as parseUsageLine, s as hookProfileOf, st as claudeCode, t as DEFAULT_AGENT_ID, tt as mergeGenerationRollups, u as resetCommandCache, v as normalizeSha, w as shortSha$1, x as parseRegistryLatest, y as normalizeUpdateChannel, z as scopedClaudeRoots } from "./adapters-
|
|
25
|
+
import { $ as resolveProjectToken, B as buildAiGenerationEvents, G as claudeAccountUuidOf, H as buildExceptionProperties, I as FIRST_RUN_NOTICE, J as decideRemoteTelemetryState, K as codexUserIdOf, L as TELEMETRY_BATCH_URL, Q as parsePosthogReleaseId, R as TELEMETRY_FLAGS_URL, S as validateSettingsBlock, U as buildPersonProperties, V as buildBrowserExceptionProperties, W as classifySessionExit, X as exceptionFingerprint, Y as decideTelemetryConsent, Z as nodeMajorVersion, _ as isRtkBinaryName, a as ensureProjectIds, at as matchedPrefix, b as mergeSettingsBlock, ct as sessionIdFromBranch, dt as canonicalizePath, ft as comparableDirectoryPath, g as installTargetPath, h as findEscapingArchiveMember, i as createConfigStore, it as DEFAULT_BRANCH_GC_PREFIXES, lt as usablePrefixes, m as decideRtkInstall, n as DEFAULT_CONFIG, nt as stableConfigKey, o as generateProjectId, ot as planBranchGc, p as assetForPlatform, pt as isSameDirectoryPath, q as decideIsDevInstall, s as glimmervoidHomeDir$1, st as planWorktreeGc, t as ABORT_CONFIG_SAVE, ut as worktreeIntegrationTips, v as verifyDigest, x as settingsBlockSpecFor, z as adapterBucket } from "./config-store-ByTf734U.js";
|
|
26
|
+
import { _ as TelemetryState, a as DEEP_HISTORY_SCROLLBACK_LINES, c as describeDataAttach, d as DashboardTelemetryReport, h as TELEMETRY_EVENT_SCHEMAS, i as HookEnvelope, l as parseDataAttach, m as PendingCrashReport, r as HTTP_URL_RE, s as LOGGED_FAST_CLOSE_COUNTS, u as parseDataClientMessage } from "./build-channel-B7N0y2ED.js";
|
|
27
|
+
import { $ as identityFromRelPath, A as decideFileRead, B as sessionsRootCandidates, C as pickNewestPublished, D as codexRootCandidates, E as codexHomes, F as kimiHomes, G as kimiSessionIdFromPath, H as shouldPersistWarehouse, I as passOutcome, J as dedupKeys, K as parseKimiUsageLine, L as projectDirCandidates, M as expandTilde, N as grokHomes, O as codexSessionIdFromPath, P as isUsageFile, Q as foldReplacementIntoGenerationRollup, R as resolveProjectsDirs, S as parseResolvedSha, T as codexFallbackRoots, U as splitLines$1, V as shouldEvaluateDespiteIoFailures, W as kimiDedupIdentity, X as expandAdvisorIterations, Y as emptyTotals, Z as foldEntryIntoGenerationRollup, _ as isCheckFresh, a as describeAgentResolvability, at as totalTokensOf$1, b as parseRegistryDeprecation, c as isKnownAgentId, d as resolveAdapter, et as isWithinGenerationRecencyWindow, f as setCustomAgents, g as decideUpdateStatus, h as decideInstallFlavor, i as customAgentFingerprint, it as shouldReplace, j as dedupeCodexFiles, k as continuationDelayMs, l as listAgentIds, m as readHostCodexVersion, n as cachedAgentResolvability, nt as parseJsonLine, o as getAdapter, ot as vendorUsageEntry, p as codex, q as addEntryToTotals, r as commandFor, rt as parseUsageLine, s as hookProfileOf, st as claudeCode, t as DEFAULT_AGENT_ID, tt as mergeGenerationRollups, u as resetCommandCache, v as normalizeSha, w as shortSha$1, x as parseRegistryLatest, y as normalizeUpdateChannel, z as scopedClaudeRoots } from "./adapters-uj1hQlDB.js";
|
|
28
28
|
import { t as HOOK_TOOLS } from "./hook-tools-Cr97Vdap.js";
|
|
29
29
|
import { d as releaseSessionLock, f as sessionIdOfLockFile, l as releaseUnheldKimiHomeSecrets, n as generatedKimiHomePath, o as realKimiHome, p as trashSessionTempFolderOnceUnheld, u as createHeldSessionTempFolder } from "./kimi-home-CYJpt82i.js";
|
|
30
30
|
import { t as kimi } from "./kimi-BiLAVDKd.js";
|
|
31
31
|
import { a as formatSshPublicKey, c as orderAgentSockets, i as commitSigningShimText, l as parseSshPublicKey, n as NO_AGENT_HOLDS_KEY, o as isForwardedAgentDirName, r as agentListsKey, s as isSignableGitObject, t as COMMIT_SIGNING_SHIM_NAME } from "./ssh-signing-core-CRhVVWNW.js";
|
|
32
|
-
import { a as configSiblingPath, c as defaultPairingsPath, d as decideDeviceAuth, f as deviceNameFromUserAgent, l as defaultSeenPath, n as normalizeRemoteConfig, o as createPairingsStore, p as hashSecret, r as validateRemoteConfig, s as createSeenStore, t as decideBindHost, u as DEFAULT_DEVICE_MAX_AGE_MS } from "./remote-config
|
|
33
|
-
import { n as configFileViewOf, u as readSettingsForAgent } from "./settings-readout-core-
|
|
32
|
+
import { a as configSiblingPath, c as defaultPairingsPath, d as decideDeviceAuth, f as deviceNameFromUserAgent, l as defaultSeenPath, n as normalizeRemoteConfig, o as createPairingsStore, p as hashSecret, r as validateRemoteConfig, s as createSeenStore, t as decideBindHost, u as DEFAULT_DEVICE_MAX_AGE_MS } from "./remote-config--aXh1Cd8.js";
|
|
33
|
+
import { n as configFileViewOf, u as readSettingsForAgent } from "./settings-readout-core-CVlJx8Jy.js";
|
|
34
34
|
import { _ as escapeMarkup, g as createLaneLog, n as createVisionsSetup } from "./visions-setup-VMMyqOpl.js";
|
|
35
35
|
import { t as getRtkPath } from "./rtk-resolver-BifDj_oS.js";
|
|
36
36
|
import { createRequire } from "node:module";
|
|
@@ -9064,6 +9064,26 @@ var DEFAULT_SANDBOX = Object.freeze({
|
|
|
9064
9064
|
openNetwork: false,
|
|
9065
9065
|
loadMcpServers: false
|
|
9066
9066
|
});
|
|
9067
|
+
var REVIEW_AGENT_ADAPTER_IDS = Object.freeze({
|
|
9068
|
+
claude: "claude-code",
|
|
9069
|
+
codex: "codex",
|
|
9070
|
+
kimi: "kimi"
|
|
9071
|
+
});
|
|
9072
|
+
var CODEX_HEADLESS_ARGS = Object.freeze(["exec", "--skip-git-repo-check"]);
|
|
9073
|
+
var REVIEWER_AGENT_ARGS = Object.freeze({
|
|
9074
|
+
claude: ({ model, effort }) => [...model ? ["--model", model] : [], ...effort ? ["--effort", effort] : []],
|
|
9075
|
+
codex: ({ model, effort }) => [
|
|
9076
|
+
...CODEX_HEADLESS_ARGS,
|
|
9077
|
+
...model ? ["-m", model] : [],
|
|
9078
|
+
...effort ? ["-c", `model_reasoning_effort=${effort}`] : []
|
|
9079
|
+
],
|
|
9080
|
+
kimi: ({ model }) => model ? ["-m", model] : []
|
|
9081
|
+
});
|
|
9082
|
+
var SKILL_INVOCATIONS = Object.freeze({
|
|
9083
|
+
claude: (skill) => `Invoke the ${skill} skill with the Skill tool`,
|
|
9084
|
+
codex: (skill) => `Use your ${skill} skill`,
|
|
9085
|
+
kimi: (skill) => `Use your ${skill} skill`
|
|
9086
|
+
});
|
|
9067
9087
|
var STAMP_MAX_LINES = 200;
|
|
9068
9088
|
var STAMP_MAX_FILES = 10;
|
|
9069
9089
|
var MAX_REVIEW_ATTEMPTS = 3;
|
|
@@ -9118,6 +9138,16 @@ function readSandboxSettings(block) {
|
|
|
9118
9138
|
loadMcpServers: sandbox.loadMcpServers === true
|
|
9119
9139
|
};
|
|
9120
9140
|
}
|
|
9141
|
+
function reviewerAgentArgs(choice) {
|
|
9142
|
+
return REVIEWER_AGENT_ARGS[choice.agent](choice);
|
|
9143
|
+
}
|
|
9144
|
+
function reviewerRefusal(reviewer, sandbox) {
|
|
9145
|
+
if (reviewer.agent === "claude" || sandbox.loadMcpServers) return null;
|
|
9146
|
+
return `${reviewer.agent} always loads your MCP servers, so it reviews only once Load my MCP servers is on`;
|
|
9147
|
+
}
|
|
9148
|
+
function reviewAgentAdapterId(agent) {
|
|
9149
|
+
return REVIEW_AGENT_ADAPTER_IDS[agent];
|
|
9150
|
+
}
|
|
9121
9151
|
function reviewerFor(settings, tier) {
|
|
9122
9152
|
if (tier === "stamp" && settings.stampReviewer) return settings.stampReviewer;
|
|
9123
9153
|
return settings.reviewer;
|
|
@@ -10157,8 +10187,8 @@ function prSessionPrompt({ repo, detail, draft }) {
|
|
|
10157
10187
|
"Read the change and get oriented, then wait for my instructions before editing anything."
|
|
10158
10188
|
].join("\n");
|
|
10159
10189
|
}
|
|
10160
|
-
function reviewProcedure(reviewSkill) {
|
|
10161
|
-
if (reviewSkill) return [
|
|
10190
|
+
function reviewProcedure(reviewSkill, reviewAgent) {
|
|
10191
|
+
if (reviewSkill) return [`${SKILL_INVOCATIONS[reviewAgent](reviewSkill)} to review the range BASE_SHA..HEAD_SHA in the checkout,`, "then translate its findings into the report format below."];
|
|
10162
10192
|
return ["Review the range BASE_SHA..HEAD_SHA in the checkout using whatever review skills or tools you have available,", "then write the report below."];
|
|
10163
10193
|
}
|
|
10164
10194
|
function renderPriorReview(priorReview) {
|
|
@@ -10215,7 +10245,7 @@ function priorReviewSection(priorReview, newWork, checkoutPath, head) {
|
|
|
10215
10245
|
function oneOf(values) {
|
|
10216
10246
|
return values.join(", ");
|
|
10217
10247
|
}
|
|
10218
|
-
function buildReviewPrompt({ candidate, detail, tier, reasons, checkoutPath, reportPath, postingPath, dependencyState = "none", reviewSkill = "", priorReview = null, newWork = null }) {
|
|
10248
|
+
function buildReviewPrompt({ candidate, detail, tier, reasons, checkoutPath, reportPath, postingPath, dependencyState = "none", reviewSkill = "", reviewAgent = DEFAULT_REVIEWER.agent, priorReview = null, newWork = null }) {
|
|
10219
10249
|
const head = detail.headRefOid;
|
|
10220
10250
|
const headRef = prHeadRef(detail.number);
|
|
10221
10251
|
const baseRef = prBaseRef(detail.number);
|
|
@@ -10258,7 +10288,7 @@ function buildReviewPrompt({ candidate, detail, tier, reasons, checkoutPath, rep
|
|
|
10258
10288
|
"",
|
|
10259
10289
|
...priorReviewSection(priorReview, newWork, checkoutPath, head),
|
|
10260
10290
|
"Procedure:",
|
|
10261
|
-
...reviewProcedure(reviewSkill),
|
|
10291
|
+
...reviewProcedure(reviewSkill, reviewAgent),
|
|
10262
10292
|
"",
|
|
10263
10293
|
`Report file: use the Write tool to write ${reportPath} with exactly this layout and nothing else:`,
|
|
10264
10294
|
`- first line: HEAD_SHA: ${head}`,
|
|
@@ -21969,6 +21999,7 @@ function isTrailNote(entry) {
|
|
|
21969
21999
|
//#endregion
|
|
21970
22000
|
//#region server/lanes/lane-spawn.ts
|
|
21971
22001
|
var SETTINGS_DIR_PREFIX = "glimmervoid-lane-settings-";
|
|
22002
|
+
var KIMI_AGENT_ID = "kimi";
|
|
21972
22003
|
var UNWRAPPED_PLATFORM$2 = "win32";
|
|
21973
22004
|
var UNWRAPPED_CODEX_GUARDRAILS_ARGS = Object.freeze(["-s", "read-only"]);
|
|
21974
22005
|
var GUARD_HOOK_UNAVAILABLE_ERROR = "Sane YOLO is unavailable";
|
|
@@ -22003,32 +22034,62 @@ async function writeStandaloneDenySettings(permissions, userHooks) {
|
|
|
22003
22034
|
cleanup: removeSettingsDirectory
|
|
22004
22035
|
};
|
|
22005
22036
|
}
|
|
22037
|
+
function headlessPromptLaunch(agent, prompt) {
|
|
22038
|
+
if (agent === KIMI_AGENT_ID) return {
|
|
22039
|
+
args: ["-p", prompt],
|
|
22040
|
+
initialPrompt: null
|
|
22041
|
+
};
|
|
22042
|
+
return {
|
|
22043
|
+
args: [],
|
|
22044
|
+
initialPrompt: prompt
|
|
22045
|
+
};
|
|
22046
|
+
}
|
|
22047
|
+
function laneVendor(agent) {
|
|
22048
|
+
if (agent === "codex" || agent === KIMI_AGENT_ID) return agent;
|
|
22049
|
+
return "claude";
|
|
22050
|
+
}
|
|
22051
|
+
function laneAgentArgs({ isClaude, isWrapped, isCodex, extraArgs, model, postureArgs, standaloneArgs }) {
|
|
22052
|
+
if (isClaude) return [
|
|
22053
|
+
"-p",
|
|
22054
|
+
...postureArgs,
|
|
22055
|
+
...extraArgs,
|
|
22056
|
+
...standaloneArgs,
|
|
22057
|
+
...model ? ["--model", model] : []
|
|
22058
|
+
];
|
|
22059
|
+
if (isCodex && !isWrapped) return [...UNWRAPPED_CODEX_GUARDRAILS_ARGS, ...extraArgs];
|
|
22060
|
+
return [...extraArgs];
|
|
22061
|
+
}
|
|
22006
22062
|
function createLaneSpawn({ sessions = /* @__PURE__ */ new Map(), closeSessionDataClients = () => {}, hookRouter = null, getHookPort = null, spawnGate = null, replayBufferKB = void 0, recordLane = null, laneName, allowTools = [], createSession = (options) => new Session(options), settingsPermissions, spawnEnv = null, prepareGuardrails = prepareGuardrailsLaunch, guardrailsRefusal = allowGuardedSpawn, platform = process.platform }) {
|
|
22007
22063
|
return async function spawnLaneSession({ id, name, prompt, cwd, agent = DEFAULT_AGENT_ID, extraArgs = [], model = null, signal = null, onOutput, readablePaths = [] }) {
|
|
22008
22064
|
const isCodex = agent === "codex";
|
|
22009
|
-
const
|
|
22065
|
+
const isKimi = agent === KIMI_AGENT_ID;
|
|
22066
|
+
const isClaude = !isCodex && !isKimi;
|
|
22067
|
+
const hasClaudeShell = isClaude && settingsPermissions !== void 0;
|
|
22010
22068
|
const isWrapped = platform !== UNWRAPPED_PLATFORM$2;
|
|
22011
|
-
if (!isWrapped && hasClaudeShell) throw new Error(`${laneName} lane needs the sandbox runtime, which does not run on ${platform}`);
|
|
22069
|
+
if (!isWrapped && (hasClaudeShell || isKimi)) throw new Error(`${laneName} lane needs the sandbox runtime, which does not run on ${platform}`);
|
|
22012
22070
|
const guardrailsRefusalReason = isWrapped ? guardrailsRefusal() : null;
|
|
22013
22071
|
if (guardrailsRefusalReason !== null) throw new Error(guardrailsRefusalReason);
|
|
22014
22072
|
const guardHookTools = hasClaudeShell && hookRouter ? resolveRequiredSaneYoloHookTools({}) ?? [] : null;
|
|
22015
22073
|
if (guardHookTools && !guardHookTools.some((tool) => tool.id === "saneYolo")) throw new Error(GUARD_HOOK_UNAVAILABLE_ERROR);
|
|
22016
22074
|
await runLaneSession();
|
|
22017
22075
|
async function runLaneSession() {
|
|
22018
|
-
const posture =
|
|
22076
|
+
const posture = isClaude ? buildLanePermissions({
|
|
22019
22077
|
denyTools: LANE_SPAWN_DENY_TOOLS,
|
|
22020
22078
|
allowTools
|
|
22021
|
-
});
|
|
22079
|
+
}) : null;
|
|
22022
22080
|
const permissions = settingsPermissions ?? posture?.permissions ?? null;
|
|
22023
22081
|
const standalone = !hookRouter && permissions ? await writeStandaloneDenySettings(permissions, []) : null;
|
|
22024
|
-
const
|
|
22025
|
-
const extraClaudeArgs =
|
|
22026
|
-
|
|
22027
|
-
|
|
22028
|
-
|
|
22029
|
-
|
|
22030
|
-
|
|
22031
|
-
|
|
22082
|
+
const promptLaunch = headlessPromptLaunch(agent, prompt);
|
|
22083
|
+
const extraClaudeArgs = laneAgentArgs({
|
|
22084
|
+
isClaude,
|
|
22085
|
+
isWrapped,
|
|
22086
|
+
isCodex,
|
|
22087
|
+
extraArgs,
|
|
22088
|
+
model,
|
|
22089
|
+
postureArgs: posture?.args ?? [],
|
|
22090
|
+
standaloneArgs: standalone?.args ?? []
|
|
22091
|
+
});
|
|
22092
|
+
extraClaudeArgs.push(...promptLaunch.args);
|
|
22032
22093
|
const options = {
|
|
22033
22094
|
...guardHookTools ? {
|
|
22034
22095
|
hookTools: guardHookTools,
|
|
@@ -22040,7 +22101,7 @@ function createLaneSpawn({ sessions = /* @__PURE__ */ new Map(), closeSessionDat
|
|
|
22040
22101
|
agent,
|
|
22041
22102
|
dangerouslySkipPermissions: false,
|
|
22042
22103
|
extraClaudeArgs,
|
|
22043
|
-
initialPrompt:
|
|
22104
|
+
initialPrompt: promptLaunch.initialPrompt,
|
|
22044
22105
|
ephemeral: true,
|
|
22045
22106
|
settingsPermissions: permissions,
|
|
22046
22107
|
spawnEnv: spawnEnv || isWrapped ? {
|
|
@@ -22052,7 +22113,7 @@ function createLaneSpawn({ sessions = /* @__PURE__ */ new Map(), closeSessionDat
|
|
|
22052
22113
|
getHookPort,
|
|
22053
22114
|
prepareGuardrails: isWrapped ? (facts) => prepareGuardrails({
|
|
22054
22115
|
role: judgeRole({
|
|
22055
|
-
vendor:
|
|
22116
|
+
vendor: laneVendor(agent),
|
|
22056
22117
|
cwd: facts.cwd,
|
|
22057
22118
|
hookPort: facts.hookPort,
|
|
22058
22119
|
agentSessionId: facts.agentSessionId,
|
|
@@ -22097,6 +22158,7 @@ var THREAD_JUDGE_TIMEOUT_MS = 12e4;
|
|
|
22097
22158
|
function createThreadJudge(spawn, readReviewer, shutdownSignal) {
|
|
22098
22159
|
return async (prompt) => {
|
|
22099
22160
|
const reviewer = readReviewer();
|
|
22161
|
+
if (reviewer === null) return null;
|
|
22100
22162
|
const workDir = await fs$1.mkdtemp(path.join(os.tmpdir(), "glimmervoid-thread-judge-"));
|
|
22101
22163
|
const controller = new AbortController();
|
|
22102
22164
|
const timeout = setTimeout(() => controller.abort(), THREAD_JUDGE_TIMEOUT_MS);
|
|
@@ -22110,9 +22172,8 @@ function createThreadJudge(spawn, readReviewer, shutdownSignal) {
|
|
|
22110
22172
|
name: "Review thread judgement",
|
|
22111
22173
|
cwd: workDir,
|
|
22112
22174
|
prompt: "Read thread-prompt.txt and follow its instructions",
|
|
22113
|
-
agent: reviewer.agent,
|
|
22114
|
-
|
|
22115
|
-
extraArgs: reviewer.effort ? ["--effort", reviewer.effort] : [],
|
|
22175
|
+
agent: reviewAgentAdapterId(reviewer.agent),
|
|
22176
|
+
extraArgs: reviewerAgentArgs(reviewer),
|
|
22116
22177
|
signal
|
|
22117
22178
|
});
|
|
22118
22179
|
if (signal.aborted) return null;
|
|
@@ -28072,7 +28133,7 @@ function teamReviewNetwork(sandbox, hookPort) {
|
|
|
28072
28133
|
hookPort
|
|
28073
28134
|
};
|
|
28074
28135
|
}
|
|
28075
|
-
function teamReviewRole(facts, { checkoutPath, cachedClone, unreadablePaths, sandbox = DEFAULT_SANDBOX }) {
|
|
28136
|
+
function teamReviewRole(facts, { checkoutPath, cachedClone, unreadablePaths, sandbox = DEFAULT_SANDBOX, reviewAgents = [DEFAULT_REVIEWER.agent] }) {
|
|
28076
28137
|
return {
|
|
28077
28138
|
...judgeRole({
|
|
28078
28139
|
vendor: "claude",
|
|
@@ -28085,12 +28146,16 @@ function teamReviewRole(facts, { checkoutPath, cachedClone, unreadablePaths, san
|
|
|
28085
28146
|
cachedClone
|
|
28086
28147
|
]
|
|
28087
28148
|
}),
|
|
28088
|
-
vendors: [
|
|
28149
|
+
vendors: [.../* @__PURE__ */ new Set([
|
|
28150
|
+
"claude",
|
|
28151
|
+
"codex",
|
|
28152
|
+
...reviewAgents
|
|
28153
|
+
])],
|
|
28089
28154
|
network: teamReviewNetwork(sandbox, facts.hookPort),
|
|
28090
28155
|
readDenied: [...unreadablePaths]
|
|
28091
28156
|
};
|
|
28092
28157
|
}
|
|
28093
|
-
function describeTeamReviewSandbox(sandbox) {
|
|
28158
|
+
function describeTeamReviewSandbox(sandbox, reviewAgents) {
|
|
28094
28159
|
const role = teamReviewRole({
|
|
28095
28160
|
launchId: "",
|
|
28096
28161
|
cwd: "",
|
|
@@ -28102,13 +28167,14 @@ function describeTeamReviewSandbox(sandbox) {
|
|
|
28102
28167
|
checkoutPath: "",
|
|
28103
28168
|
cachedClone: "",
|
|
28104
28169
|
unreadablePaths: [],
|
|
28105
|
-
sandbox
|
|
28170
|
+
sandbox,
|
|
28171
|
+
reviewAgents
|
|
28106
28172
|
});
|
|
28107
28173
|
return {
|
|
28108
28174
|
networkOpen: role.network.access === "open",
|
|
28109
28175
|
networkDomains: role.network.access === "allowlist" ? [...role.network.domains] : [],
|
|
28110
28176
|
...describeRoleSandbox(role),
|
|
28111
|
-
mcpLoaded: sandbox.loadMcpServers,
|
|
28177
|
+
mcpLoaded: sandbox.loadMcpServers || reviewAgents.some((agent) => agent !== "claude"),
|
|
28112
28178
|
unreadableCheckoutEntries: [...LINKED_CHECKOUT_UNREADABLE_NAMES],
|
|
28113
28179
|
githubTokenStripped: true,
|
|
28114
28180
|
allowedTools: [TEAM_REVIEW_SHELL_ALLOW_RULE, "Read"],
|
|
@@ -28116,22 +28182,20 @@ function describeTeamReviewSandbox(sandbox) {
|
|
|
28116
28182
|
threadJudgeTools: [...THREAD_JUDGE_TOOLS]
|
|
28117
28183
|
};
|
|
28118
28184
|
}
|
|
28119
|
-
async function describeTeamReviewRole({ checkoutPath, cachedClone, linkedCheckout, sandbox = DEFAULT_SANDBOX }) {
|
|
28185
|
+
async function describeTeamReviewRole({ checkoutPath, cachedClone, linkedCheckout, sandbox = DEFAULT_SANDBOX, reviewAgent = DEFAULT_REVIEWER.agent }) {
|
|
28120
28186
|
const unreadablePaths = await linkedCheckoutUnreadablePaths(linkedCheckout);
|
|
28121
28187
|
return (facts) => teamReviewRole(facts, {
|
|
28122
28188
|
checkoutPath,
|
|
28123
28189
|
cachedClone,
|
|
28124
28190
|
unreadablePaths,
|
|
28125
|
-
sandbox
|
|
28191
|
+
sandbox,
|
|
28192
|
+
reviewAgents: [reviewAgent]
|
|
28126
28193
|
});
|
|
28127
28194
|
}
|
|
28128
28195
|
async function linkedCheckoutUnreadablePaths(linkedCheckout) {
|
|
28129
28196
|
if (linkedCheckout === null) return [];
|
|
28130
28197
|
return (await fs$1.readdir(linkedCheckout)).filter((entryName) => LINKED_CHECKOUT_UNREADABLE_ENTRY.test(entryName)).map((entryName) => path.join(linkedCheckout, entryName));
|
|
28131
28198
|
}
|
|
28132
|
-
function reviewerModelArgs({ model, effort }) {
|
|
28133
|
-
return [...model ? ["--model", model] : [], ...effort ? ["--effort", effort] : []];
|
|
28134
|
-
}
|
|
28135
28199
|
function teamReviewClaudeArgs(reviewer, sandbox, readable) {
|
|
28136
28200
|
return [
|
|
28137
28201
|
"-p",
|
|
@@ -28141,9 +28205,16 @@ function teamReviewClaudeArgs(reviewer, sandbox, readable) {
|
|
|
28141
28205
|
...sandbox.loadMcpServers ? [] : ["--strict-mcp-config"],
|
|
28142
28206
|
"--disallowedTools",
|
|
28143
28207
|
...TEAM_REVIEW_SESSION_DENY_RULES,
|
|
28144
|
-
...
|
|
28208
|
+
...reviewerAgentArgs({
|
|
28209
|
+
...reviewer,
|
|
28210
|
+
agent: "claude"
|
|
28211
|
+
})
|
|
28145
28212
|
];
|
|
28146
28213
|
}
|
|
28214
|
+
function teamReviewAgentArgs(reviewer, sandbox, readable) {
|
|
28215
|
+
if (reviewer.agent === "claude") return teamReviewClaudeArgs(reviewer, sandbox, readable);
|
|
28216
|
+
return reviewerAgentArgs(reviewer);
|
|
28217
|
+
}
|
|
28147
28218
|
function emptyGhConfigDir(workDir) {
|
|
28148
28219
|
return path.join(workDir, EMPTY_GH_CONFIG_DIRNAME);
|
|
28149
28220
|
}
|
|
@@ -28433,6 +28504,11 @@ function createTeamReviewDispatcher({ store, repoCache, gitWorkspace, spawnSessi
|
|
|
28433
28504
|
error
|
|
28434
28505
|
});
|
|
28435
28506
|
const setup = readReviewSetup();
|
|
28507
|
+
const reviewer = reviewerFor(setup, tier);
|
|
28508
|
+
const refusal = reviewerRefusal(reviewer, setup.sandbox);
|
|
28509
|
+
if (refusal !== null) return Promise.resolve(failed(refusal));
|
|
28510
|
+
const resumeSessionId = reviewer.agent === "claude" ? resume?.sessionId : void 0;
|
|
28511
|
+
const promptLaunch = headlessPromptLaunch(reviewAgentAdapterId(reviewer.agent), resumeSessionId ? REVIEW_RESUME_PROMPT : REVIEW_BOOTSTRAP_PROMPT);
|
|
28436
28512
|
return raceWithAbort({
|
|
28437
28513
|
timeoutMs,
|
|
28438
28514
|
setTimeoutFn,
|
|
@@ -28445,16 +28521,18 @@ function createTeamReviewDispatcher({ store, repoCache, gitWorkspace, spawnSessi
|
|
|
28445
28521
|
name: `Team review ${candidate.key}`,
|
|
28446
28522
|
cwd: workDir,
|
|
28447
28523
|
spawnEnv: hooksPathPinnedSpawnEnv(workDir),
|
|
28448
|
-
|
|
28524
|
+
agent: reviewAgentAdapterId(reviewer.agent),
|
|
28525
|
+
extraClaudeArgs: [...teamReviewAgentArgs(reviewer, setup.sandbox, {
|
|
28449
28526
|
checkoutPath,
|
|
28450
28527
|
linkedCheckout
|
|
28451
|
-
}),
|
|
28528
|
+
}), ...promptLaunch.args],
|
|
28452
28529
|
settingsPermissions: teamReviewAcceptEditsPermissions(),
|
|
28453
28530
|
guardrailsRole: await describeTeamReviewRole({
|
|
28454
28531
|
checkoutPath,
|
|
28455
28532
|
cachedClone,
|
|
28456
28533
|
linkedCheckout,
|
|
28457
|
-
sandbox: setup.sandbox
|
|
28534
|
+
sandbox: setup.sandbox,
|
|
28535
|
+
reviewAgent: reviewer.agent
|
|
28458
28536
|
}),
|
|
28459
28537
|
signal: AbortSignal.any([
|
|
28460
28538
|
signal,
|
|
@@ -28462,8 +28540,8 @@ function createTeamReviewDispatcher({ store, repoCache, gitWorkspace, spawnSessi
|
|
|
28462
28540
|
cancelSignal
|
|
28463
28541
|
].filter((candidate) => candidate instanceof AbortSignal)),
|
|
28464
28542
|
onSessionId,
|
|
28465
|
-
resumeSessionId
|
|
28466
|
-
initialPrompt:
|
|
28543
|
+
resumeSessionId,
|
|
28544
|
+
initialPrompt: promptLaunch.initialPrompt,
|
|
28467
28545
|
onToolStep: (step) => reportProgress?.({
|
|
28468
28546
|
kind: "step",
|
|
28469
28547
|
...step
|
|
@@ -28664,6 +28742,7 @@ function createTeamReviewDispatcher({ store, repoCache, gitWorkspace, spawnSessi
|
|
|
28664
28742
|
} catch (error) {
|
|
28665
28743
|
log.warn(`[${TEAM_REVIEW_LANE_ID}] node_modules sharing failed for ${candidate.key}: ${errorMessage(error)}`);
|
|
28666
28744
|
}
|
|
28745
|
+
const reviewSetup = readReviewSetup();
|
|
28667
28746
|
const prompt = buildReviewPrompt({
|
|
28668
28747
|
candidate,
|
|
28669
28748
|
detail,
|
|
@@ -28673,7 +28752,8 @@ function createTeamReviewDispatcher({ store, repoCache, gitWorkspace, spawnSessi
|
|
|
28673
28752
|
reportPath,
|
|
28674
28753
|
postingPath,
|
|
28675
28754
|
dependencyState,
|
|
28676
|
-
reviewSkill:
|
|
28755
|
+
reviewSkill: reviewSetup.skill,
|
|
28756
|
+
reviewAgent: reviewerFor(reviewSetup, tier).agent,
|
|
28677
28757
|
priorReview,
|
|
28678
28758
|
newWork
|
|
28679
28759
|
});
|
|
@@ -28754,20 +28834,21 @@ function createTeamReviewDispatcher({ store, repoCache, gitWorkspace, spawnSessi
|
|
|
28754
28834
|
};
|
|
28755
28835
|
}
|
|
28756
28836
|
function createTeamReviewSpawn({ reviewSessions, closeSessionDataClients, hookRouter, getHookPort, spawnGate, recordLane = null, replayBufferKB, makeSession = (options) => new Session(options), laneName = TEAM_REVIEW_LANE_ID, hookToolConfig = null, resolveHookTools: resolveHookTools$2 = resolveHookTools, prepareGuardrails = prepareGuardrailsLaunch, platform = process.platform }) {
|
|
28757
|
-
return async function spawnTeamReviewSession({ id, name, cwd, spawnEnv, extraClaudeArgs, settingsPermissions, settingsGuardrails, guardrailsRole, signal, onToolStep, onSessionId, resumeSessionId, initialPrompt, extraUserHooks, prependPathDirs }) {
|
|
28837
|
+
return async function spawnTeamReviewSession({ id, name, cwd, spawnEnv, extraClaudeArgs, settingsPermissions, settingsGuardrails, guardrailsRole, signal, onToolStep, onSessionId, resumeSessionId, initialPrompt, agent, extraUserHooks, prependPathDirs }) {
|
|
28758
28838
|
if (guardrailsRole !== void 0 && platform === SANDBOX_RUNTIME_UNSUPPORTED_PLATFORM) throw new Error(`${laneName} lane needs the sandbox runtime, which does not run on ${platform}`);
|
|
28759
28839
|
const skipPermissions = settingsPermissions.defaultMode === "bypassPermissions";
|
|
28760
28840
|
const sess = makeSession({
|
|
28761
28841
|
id,
|
|
28762
28842
|
name,
|
|
28763
28843
|
path: cwd,
|
|
28844
|
+
...agent ? { agent } : {},
|
|
28764
28845
|
spawnEnv,
|
|
28765
28846
|
dangerouslySkipPermissions: skipPermissions,
|
|
28766
28847
|
hookTools: hookToolConfig ? resolveHookTools$2({ saneYolo: hookToolConfig.saneYolo }, { skipPermissions }) : [],
|
|
28767
28848
|
extraClaudeArgs,
|
|
28768
28849
|
...extraUserHooks ? { extraUserHooks } : {},
|
|
28769
28850
|
...prependPathDirs ? { prependPathDirs } : {},
|
|
28770
|
-
initialPrompt: initialPrompt
|
|
28851
|
+
initialPrompt: initialPrompt === void 0 ? REVIEW_BOOTSTRAP_PROMPT : initialPrompt,
|
|
28771
28852
|
resumeSessionId,
|
|
28772
28853
|
ephemeral: true,
|
|
28773
28854
|
observeToolCalls: onToolStep !== void 0,
|
|
@@ -29226,7 +29307,10 @@ function createTeamReviewWiring({ config, store, reviewSessions, closeSessionDat
|
|
|
29226
29307
|
replayBufferKB: config.replayBufferKB,
|
|
29227
29308
|
allowTools: THREAD_JUDGE_TOOLS,
|
|
29228
29309
|
guardrailsRefusal
|
|
29229
|
-
}), () =>
|
|
29310
|
+
}), () => {
|
|
29311
|
+
const { reviewer, sandbox } = readTeamReviewSettings(config);
|
|
29312
|
+
return reviewerRefusal(reviewer, sandbox) === null ? reviewer : null;
|
|
29313
|
+
}, shutdownController.signal),
|
|
29230
29314
|
guardrailsRefusal,
|
|
29231
29315
|
beforeStart: (keepPaths) => sweepLeftoverCheckouts({
|
|
29232
29316
|
worktreeRoot,
|
|
@@ -50385,7 +50469,6 @@ var KIMI_MODEL_SECTION = /^\[models\."([^"]+)"\]\s*$/;
|
|
|
50385
50469
|
var TOML_TABLE_HEADER = /^\[/;
|
|
50386
50470
|
var TOML_KEY_VALUE = /^([A-Za-z0-9_]+)\s*=\s*(.+)$/;
|
|
50387
50471
|
var TOML_STRING = /^"((?:[^"\\]|\\.)*)"/;
|
|
50388
|
-
var TOML_STRING_ITEM = /"((?:[^"\\]|\\.)*)"/g;
|
|
50389
50472
|
function unquoteYamlScalar(raw) {
|
|
50390
50473
|
const trimmed = raw.trim();
|
|
50391
50474
|
return trimmed.length >= 2 && (trimmed[0] === "\"" || trimmed[0] === "'") && trimmed.at(-1) === trimmed[0] ? trimmed.slice(1, -1) : trimmed;
|
|
@@ -50422,10 +50505,6 @@ function parseSkillFrontmatter(markdown) {
|
|
|
50422
50505
|
function readTomlString(rawValue) {
|
|
50423
50506
|
return TOML_STRING.exec(rawValue.trim())?.[1] ?? null;
|
|
50424
50507
|
}
|
|
50425
|
-
function readTomlStringArray(rawValue) {
|
|
50426
|
-
if (!rawValue.trim().startsWith("[")) return null;
|
|
50427
|
-
return [...rawValue.matchAll(TOML_STRING_ITEM)].map((match) => match[1]);
|
|
50428
|
-
}
|
|
50429
50508
|
function parseKimiModels(configToml) {
|
|
50430
50509
|
const models = [];
|
|
50431
50510
|
let current = null;
|
|
@@ -50449,8 +50528,6 @@ function parseKimiModels(configToml) {
|
|
|
50449
50528
|
if (!current || !keyValue) continue;
|
|
50450
50529
|
const [, key, rawValue] = keyValue;
|
|
50451
50530
|
if (key === "display_name") current.label = readTomlString(rawValue) ?? current.label;
|
|
50452
|
-
if (key === "support_efforts") current.efforts = readTomlStringArray(rawValue);
|
|
50453
|
-
if (key === "default_effort") current.defaultEffort = readTomlString(rawValue);
|
|
50454
50531
|
}
|
|
50455
50532
|
return models;
|
|
50456
50533
|
}
|
|
@@ -50569,11 +50646,10 @@ async function scanCodex(homeDir, env) {
|
|
|
50569
50646
|
async function scanKimi(homeDir, env) {
|
|
50570
50647
|
const kimiHome = realKimiHome(env, homeDir);
|
|
50571
50648
|
const [configToml, skills] = await Promise.all([readTextOrNull(path.join(kimiHome, "config.toml")), scanSkillFolder(path.join(kimiHome, "skills"), "user")]);
|
|
50572
|
-
const models = configToml === null ? [] : parseKimiModels(configToml);
|
|
50573
50649
|
return {
|
|
50574
50650
|
id: "kimi",
|
|
50575
|
-
models,
|
|
50576
|
-
efforts:
|
|
50651
|
+
models: configToml === null ? [] : parseKimiModels(configToml),
|
|
50652
|
+
efforts: [],
|
|
50577
50653
|
skills
|
|
50578
50654
|
};
|
|
50579
50655
|
}
|
|
@@ -50601,9 +50677,11 @@ function agentOffer(scan) {
|
|
|
50601
50677
|
}
|
|
50602
50678
|
function currentTeamReviewEnvironment(settingsSource, { nowMs = Date.now(), homeDir = os.homedir(), env = process.env } = {}) {
|
|
50603
50679
|
refreshWhenStale(nowMs, homeDir, env);
|
|
50680
|
+
const settings = readTeamReviewSettings(settingsSource);
|
|
50681
|
+
const reviewAgents = [settings.reviewer.agent, ...settings.stampReviewer ? [settings.stampReviewer.agent] : []];
|
|
50604
50682
|
return {
|
|
50605
50683
|
agents: lastScan.map(agentOffer),
|
|
50606
|
-
sandbox: describeTeamReviewSandbox(
|
|
50684
|
+
sandbox: describeTeamReviewSandbox(settings.sandbox, reviewAgents)
|
|
50607
50685
|
};
|
|
50608
50686
|
}
|
|
50609
50687
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as errorMessage } from "./text-DoirglWV.js";
|
|
2
|
-
import { l as resolveConfigPath } from "./config-store-
|
|
3
|
-
import { c as defaultPairingsPath, i as REVOCATION_PROPAGATION_SECONDS, l as defaultSeenPath, n as normalizeRemoteConfig, o as createPairingsStore, s as createSeenStore } from "./remote-config
|
|
2
|
+
import { l as resolveConfigPath } from "./config-store-ByTf734U.js";
|
|
3
|
+
import { c as defaultPairingsPath, i as REVOCATION_PROPAGATION_SECONDS, l as defaultSeenPath, n as normalizeRemoteConfig, o as createPairingsStore, s as createSeenStore } from "./remote-config--aXh1Cd8.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
//#region server/text-format.ts
|
|
6
6
|
function trimIso(iso) {
|
|
@@ -3,7 +3,7 @@ import { n as equalsIgnoringCaseOnWindows } from "./paths-Bu4eH1Yd.js";
|
|
|
3
3
|
import { n as isRecord } from "./coerce-NSst8oRP.js";
|
|
4
4
|
import { n as unrefTimer, t as DEFAULT_TIMER_FNS } from "./timer-deps-u2DAQLok.js";
|
|
5
5
|
import { a as jsonStateLoadError, d as writeJsonAtomicSync, l as sleepSync, s as loadJsonStateFileSync, u as writeJsonAtomic } from "./json-file-BjFK_eSH.js";
|
|
6
|
-
import { dt as canonicalizePath, s as glimmervoidHomeDir } from "./config-store-
|
|
6
|
+
import { dt as canonicalizePath, s as glimmervoidHomeDir } from "./config-store-ByTf734U.js";
|
|
7
7
|
import fs from "node:fs";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import crypto from "node:crypto";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { r as errorMessage, t as errorCode } from "./text-DoirglWV.js";
|
|
2
2
|
import { n as glimmervoidHomeDir, t as decideConfigPath } from "./config-path-core-DUWk0Lui.js";
|
|
3
3
|
import { f as AgentSettingsReply } from "./session-B2Wieg0a.js";
|
|
4
|
-
import { r as BrowserConfig } from "./config-
|
|
4
|
+
import { r as BrowserConfig } from "./config-FWXqJcc5.js";
|
|
5
5
|
import { n as isRecord } from "./coerce-NSst8oRP.js";
|
|
6
6
|
import { t as renderTable } from "./ascii-figure-core-pDAwtlKO.js";
|
|
7
|
-
import { A as setValueAtPath, F as SETTINGS_REGISTRY, N as valueAtPath, O as parsePosthogProjectSelection, T as deleteValueAtPath, c as loadConfigFile, d as validateConfig, et as ENV_SECRET_BINDINGS, f as isSettingAvailable, k as scoreSettingsSearch, r as IS_EXPERIMENTAL_BUILD, rt as withEnvSecrets, tt as readEnvSecrets, u as saveConfigFileOnce, w as cloneValue } from "./config-store-
|
|
8
|
-
import { a as fail, c as listSettings, d as renderSectionTables, f as requireConfigFileSetting, g as valueText, h as succeed, i as describeSetting, l as readSetting, m as settingsRequestForServer, n as configFileViewOf, o as fitColumn, p as sectionOf, r as defaultText, s as getSetting, t as availableSettings } from "./settings-readout-core-
|
|
7
|
+
import { A as setValueAtPath, F as SETTINGS_REGISTRY, N as valueAtPath, O as parsePosthogProjectSelection, T as deleteValueAtPath, c as loadConfigFile, d as validateConfig, et as ENV_SECRET_BINDINGS, f as isSettingAvailable, k as scoreSettingsSearch, r as IS_EXPERIMENTAL_BUILD, rt as withEnvSecrets, tt as readEnvSecrets, u as saveConfigFileOnce, w as cloneValue } from "./config-store-ByTf734U.js";
|
|
8
|
+
import { a as fail, c as listSettings, d as renderSectionTables, f as requireConfigFileSetting, g as valueText, h as succeed, i as describeSetting, l as readSetting, m as settingsRequestForServer, n as configFileViewOf, o as fitColumn, p as sectionOf, r as defaultText, s as getSetting, t as availableSettings } from "./settings-readout-core-CVlJx8Jy.js";
|
|
9
9
|
import fs from "node:fs";
|
|
10
10
|
import os from "node:os";
|
|
11
11
|
import { parseArgs } from "node:util";
|
|
@@ -330,7 +330,7 @@ function processIo() {
|
|
|
330
330
|
async function runSettingsCli(commandArguments, io = processIo()) {
|
|
331
331
|
const serverRequest = settingsRequestForServer(commandArguments, process.env);
|
|
332
332
|
if (!serverRequest) return runSettingsCommand(commandArguments, io);
|
|
333
|
-
const { askAgentApi } = await import("./agent-api-cli-
|
|
333
|
+
const { askAgentApi } = await import("./agent-api-cli-DN6W8Xwx.js");
|
|
334
334
|
const reply = AgentSettingsReply.safeParse(await askAgentApi("settings", serverRequest).catch((error) => ({
|
|
335
335
|
ok: false,
|
|
336
336
|
error: errorMessage(error)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as AgentSettingsRequest } from "./session-B2Wieg0a.js";
|
|
2
2
|
import { t as renderTable } from "./ascii-figure-core-pDAwtlKO.js";
|
|
3
|
-
import { C as SETTINGS_INDEX, D as hasScaledUnit, E as displayText, F as SETTINGS_REGISTRY, M as settingsOf, N as valueAtPath, P as FILE_ONLY_GROUPS, f as isSettingAvailable, j as settingsGroupOf, tt as readEnvSecrets, w as cloneValue } from "./config-store-
|
|
3
|
+
import { C as SETTINGS_INDEX, D as hasScaledUnit, E as displayText, F as SETTINGS_REGISTRY, M as settingsOf, N as valueAtPath, P as FILE_ONLY_GROUPS, f as isSettingAvailable, j as settingsGroupOf, tt as readEnvSecrets, w as cloneValue } from "./config-store-ByTf734U.js";
|
|
4
4
|
import { parseArgs } from "node:util";
|
|
5
5
|
//#region server/core/settings-readout-core.ts
|
|
6
6
|
var VALUE_COLUMN_WIDTH = 40;
|
|
@@ -2,7 +2,7 @@ import { r as errorMessage } from "./text-DoirglWV.js";
|
|
|
2
2
|
import { O as SIGN_URL_ENV, P as SshSignReply } from "./session-B2Wieg0a.js";
|
|
3
3
|
import { n as execFileAsync, o as spawn } from "./child-process-safe-D4hyVIXj.js";
|
|
4
4
|
import { a as isLoopbackHostname } from "./hook-relay-core-DA_bz2KA.js";
|
|
5
|
-
import { n as postToAgentIngress } from "./agent-api-cli-
|
|
5
|
+
import { n as postToAgentIngress } from "./agent-api-cli-C7rOK_j2.js";
|
|
6
6
|
import { l as parseSshPublicKey } from "./ssh-signing-core-CRhVVWNW.js";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import fs from "node:fs/promises";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Gi as e,Hi as t,Ji as n,Ki as r,Ui as i,Wi as a,Yi as o,qi as s}from"./index-
|
|
1
|
+
import{Gi as e,Hi as t,Ji as n,Ki as r,Ui as i,Wi as a,Yi as o,qi as s}from"./index-Cd02aQnA.js";var c=.3,l=null;function u(){return o(l)}function d(e){return n(e,l)}async function f(){try{let e=await fetch(t,{credentials:`same-origin`,cache:`no-store`});e.ok&&(l=s(await e.json()))}catch{}}function p(){let e=new AudioContext;return e.state===`suspended`&&e.resume(),e}function m(e,t){setTimeout(()=>e.close().catch(()=>{}),(t+.1)*1e3)}function h(e){g(a[e]??a.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(r(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(t){try{let n=d(t),r=e(n);if(!r){h(n);return}v(r).then(e=>{e||x()})}catch{}}export{f as loadCustomSounds,S as playAlertSound,b as playNyanJingle,g as playToneSequence,d as resolveSoundId,u as soundOptions};
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./updates-view-core-D1HrhoS5.js";import{n as e,o as t,r as n}from"./dom-helpers-C7P3_59O.js";import{J as r,Y as i,q as a}from"./index-
|
|
1
|
+
import"./updates-view-core-D1HrhoS5.js";import{n as e,o as t,r as n}from"./dom-helpers-C7P3_59O.js";import{J as r,Y as i,q as a}from"./index-Cd02aQnA.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
|