glimmervoid 0.53.2-next.968 → 0.53.2-next.969
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/binary-main.js +1 -1
- package/dist/bin/glimmervoid.js +39 -20
- package/dist/chunks/{adapters-Bvg4IsdW.js → adapters-BpRMaOqW.js} +42 -43
- package/dist/chunks/{adapters-BKAruwl6.js → adapters-D3Vpgj4x.js} +1 -1
- package/dist/chunks/{agent-api-cli-BxM3JxWj.js → agent-api-cli-CXVV57k-.js} +1 -1
- package/dist/chunks/agent-api-cli-Q4K2h2B1.js +1 -0
- package/dist/chunks/{agent-api-core-BGpJNhH5.js → agent-api-core-rEEiI8Pd.js} +2 -2
- package/dist/chunks/{agent-setup-cli-CZ82pLNW.js → agent-setup-cli-T5QkEnun.js} +1 -1
- package/dist/chunks/{board-store-client-DNlvZvGx.js → board-store-client-DZPYuiZo.js} +1 -1
- package/dist/chunks/{config-CHKlCDpY.js → config-K4Ajx_x7.js} +1 -2
- package/dist/chunks/{config-store-CQpMnLFi.js → config-store-CAzc6z1i.js} +50 -67
- package/dist/chunks/config-store-xEFhZ57s.js +1 -0
- package/dist/chunks/{control-messages-DkKr9vbw.js → control-messages-B6l3aVFK.js} +5 -4
- package/dist/chunks/{grok-BTD32YhV.js → grok-myTC9O74.js} +1 -1
- package/dist/chunks/{host-cli-CtHOXwr5.js → host-cli-BFLDVJ4m.js} +3 -3
- package/dist/chunks/{host-registry-core-BZJqNz7o.js → host-registry-core-BgHHO4VK.js} +1 -1
- package/dist/chunks/{kimi-bJFSfqLq.js → kimi-DJ6HUYC6.js} +1 -1
- package/dist/chunks/kimi-DftdHIcL.js +1 -0
- package/dist/chunks/{main-COJdeh96.js → main-u7J8_QOC.js} +136 -318
- package/dist/chunks/{native-probes-Dhs6LeOq.js → native-probes-SNVdVUU7.js} +2 -2
- package/dist/chunks/{pack-agent-D-Uh314s.js → pack-agent-c_74clVP.js} +1 -1
- package/dist/chunks/{packs-cli-Cf5nsDBr.js → packs-cli-BDOP5FaV.js} +3 -3
- package/dist/chunks/{pair-cli-CXd8czCK.js → pair-cli-Dqy4a3Pi.js} +2 -2
- package/dist/chunks/{path-doctor-CHyvHUpg.js → path-doctor-R9RhGNdk.js} +37 -1
- package/dist/chunks/{pr-flows-cli-H-G7ndCk.js → pr-flows-cli-D_B5T3Wp.js} +2 -2
- package/dist/chunks/{remote-config-CX87T8kk.js → remote-config-Ch63m7CJ.js} +1 -1
- package/dist/chunks/{runtime-paths-DrDchzfV.js → runtime-paths-BhtVY5Kw.js} +1 -1
- package/dist/chunks/{runtime-paths-DCVulpER.js → runtime-paths-Cef9baZq.js} +1 -1
- package/dist/chunks/settings-cli-C3Et1vDZ.js +1 -0
- package/dist/chunks/{settings-cli-D5FDGWpl.js → settings-cli-Csw0REjR.js} +4 -4
- package/dist/chunks/{settings-readout-core-CawQ72Tn.js → settings-readout-core-DAFEnqa5.js} +2 -2
- package/dist/chunks/{ssh-sign-cli-pSVnAjqf.js → ssh-sign-cli-CJpFuHst.js} +1 -1
- package/dist/client/assets/{action-status-rETkOMJb.js → action-status-CYnvXmb6.js} +1 -1
- package/dist/client/assets/action-status-CYnvXmb6.js.br +0 -0
- package/dist/client/assets/{agent-core-BmzljZal.js → agent-core-5pahO20g.js} +2 -2
- package/dist/client/assets/agent-core-5pahO20g.js.br +0 -0
- package/dist/client/assets/{agent-mark-vCo0zsWP.js → agent-mark-BQ6GWoMr.js} +1 -1
- package/dist/client/assets/agent-mark-BQ6GWoMr.js.br +0 -0
- package/dist/client/assets/{arena-panel-azL51Ses.js → arena-panel-ESQaDRzw.js} +2 -2
- package/dist/client/assets/arena-panel-ESQaDRzw.js.br +0 -0
- package/dist/client/assets/{benchmark-panel-8mimXsjK.js → benchmark-panel-C-5-_mw9.js} +1 -1
- package/dist/client/assets/benchmark-panel-C-5-_mw9.js.br +0 -0
- package/dist/client/assets/{boards-view-DIh7lkLS.js → boards-view-C2KW_DGj.js} +1 -1
- package/dist/client/assets/boards-view-C2KW_DGj.js.br +0 -0
- package/dist/client/assets/button-CMQWs0VA.js +1 -0
- package/dist/client/assets/button-CMQWs0VA.js.br +0 -0
- package/dist/client/assets/{card-actions-tzD2Tm0H.js → card-actions-CELKX1cn.js} +1 -1
- package/dist/client/assets/{community-panel-oPNEjWVB.js → community-panel-C0yACNBn.js} +1 -1
- package/dist/client/assets/community-panel-C0yACNBn.js.br +0 -0
- package/dist/client/assets/{control-ws-DEfwcMni.js → control-ws-7yhbi9n0.js} +1 -1
- package/dist/client/assets/control-ws-7yhbi9n0.js.br +0 -0
- package/dist/client/assets/{dialogs-BJQhXF-i.js → dialogs-D7hBCR1a.js} +1 -1
- package/dist/client/assets/dialogs-D7hBCR1a.js.br +0 -0
- package/dist/client/assets/{doc-editor-ui-qzAOMLgj.js → doc-editor-ui-DsshrSMT.js} +1 -1
- package/dist/client/assets/doc-editor-ui-DsshrSMT.js.br +0 -0
- package/dist/client/assets/{feature-hint-DYaAH_FS.js → feature-hint-DeKRVPni.js} +1 -1
- package/dist/client/assets/feature-hint-DeKRVPni.js.br +0 -0
- package/dist/client/assets/{first-run-checklist-B-J9-hZq.js → first-run-checklist-BlWuVccS.js} +1 -1
- package/dist/client/assets/first-run-checklist-BlWuVccS.js.br +0 -0
- package/dist/client/assets/{hooks-panel-leiYaWxz.js → hooks-panel-BHe0NfgP.js} +1 -1
- package/dist/client/assets/hooks-panel-BHe0NfgP.js.br +0 -0
- package/dist/client/assets/{index-CCAFwpgb.js → index-C5JAyqA-.js} +6 -6
- package/dist/client/assets/index-C5JAyqA-.js.br +0 -0
- package/dist/client/assets/{issues-panel-I6N9hEcg.js → issues-panel-Dgy6w2wP.js} +1 -1
- package/dist/client/assets/issues-panel-Dgy6w2wP.js.br +0 -0
- package/dist/client/assets/{lane-read-token-step-nbabpx3_.js → lane-read-token-step-smGOCQpS.js} +1 -1
- package/dist/client/assets/lane-read-token-step-smGOCQpS.js.br +0 -0
- package/dist/client/assets/{menu-DzZGGGGN.js → menu-D8rPo2sW.js} +1 -1
- package/dist/client/assets/menu-D8rPo2sW.js.br +0 -0
- package/dist/client/assets/{modal-CjIIQMho.js → modal-CrCrVLFZ.js} +1 -1
- package/dist/client/assets/modal-CrCrVLFZ.js.br +0 -0
- package/dist/client/assets/{my-prs-panel-8vwDuQYH.js → my-prs-panel-CrDSZpdN.js} +1 -1
- package/dist/client/assets/my-prs-panel-CrDSZpdN.js.br +0 -0
- package/dist/client/assets/{nyan-cat-CyLs6Ah3.js → nyan-cat-Y4DKSNpt.js} +1 -1
- package/dist/client/assets/nyan-cat-Y4DKSNpt.js.br +0 -0
- package/dist/client/assets/{phone-shell-6J_LT8oK.js → phone-shell-BfUzchP7.js} +1 -1
- package/dist/client/assets/phone-shell-BfUzchP7.js.br +0 -0
- package/dist/client/assets/{plan-face-VwtdBhdq.js → plan-face-p_Q4xZ-H.js} +2 -2
- package/dist/client/assets/plan-face-p_Q4xZ-H.js.br +0 -0
- package/dist/client/assets/{plan-render-BeX_KU2k.js → plan-render-Bi_AbHKi.js} +1 -1
- package/dist/client/assets/plan-render-Bi_AbHKi.js.br +0 -0
- package/dist/client/assets/{pr-queue-columns-BwjW6ZSu.js → pr-queue-columns-BM9haK7M.js} +1 -1
- package/dist/client/assets/pr-queue-columns-BM9haK7M.js.br +0 -0
- package/dist/client/assets/{pr-status-icon-dpJOgyIo.js → pr-status-icon-wvSUvmPS.js} +1 -1
- package/dist/client/assets/pr-status-icon-wvSUvmPS.js.br +0 -0
- package/dist/client/assets/{radar-panel-U8kArKZ3.js → radar-panel-CutSh8oR.js} +1 -1
- package/dist/client/assets/radar-panel-CutSh8oR.js.br +0 -0
- package/dist/client/assets/{repo-roots-adder-C57e0__D.js → repo-roots-adder-CRwLG3jd.js} +1 -1
- package/dist/client/assets/repo-roots-adder-CRwLG3jd.js.br +0 -0
- package/dist/client/assets/{resume-dialog-DRD_GKrw.js → resume-dialog-Ct0dtFpq.js} +1 -1
- package/dist/client/assets/resume-dialog-Ct0dtFpq.js.br +0 -0
- package/dist/client/assets/{review-queue-panel-DAk2WHrm.js → review-queue-panel-CyUV0h31.js} +1 -1
- package/dist/client/assets/review-queue-panel-CyUV0h31.js.br +0 -0
- package/dist/client/assets/{session-row-U1g9MCRj.js → session-row-B54nJze6.js} +1 -1
- package/dist/client/assets/session-row-B54nJze6.js.br +0 -0
- package/dist/client/assets/{session-tick-DxsZqUxX.js → session-tick-BCeOQ9qf.js} +1 -1
- package/dist/client/assets/session-tick-BCeOQ9qf.js.br +0 -0
- package/dist/client/assets/settings-panel-mMlTwl2_.js +4 -0
- package/dist/client/assets/settings-panel-mMlTwl2_.js.br +0 -0
- package/dist/client/assets/{setup-step-B9ALtknc.js → setup-step-CR1WGQhX.js} +1 -1
- package/dist/client/assets/setup-step-CR1WGQhX.js.br +0 -0
- package/dist/client/assets/{trace-panel-CHusMzMn.js → trace-panel-CxF4QOxU.js} +1 -1
- package/dist/client/assets/trace-panel-CxF4QOxU.js.br +0 -0
- package/dist/client/assets/{usage-panel-CuIScVal.js → usage-panel-CrAJMOkk.js} +1 -1
- package/dist/client/assets/usage-panel-CrAJMOkk.js.br +0 -0
- package/dist/client/assets/{whiteboard-undo-core-DFpJR7c5.js → whiteboard-undo-core-D1P82mGD.js} +1 -1
- package/dist/client/assets/whiteboard-undo-core-D1P82mGD.js.br +0 -0
- package/dist/client/assets/{your-day-tip-_pFQLziL.js → your-day-tip-Cjr_jrYW.js} +1 -1
- package/dist/client/assets/your-day-tip-Cjr_jrYW.js.br +0 -0
- package/dist/client/index.html +12 -12
- package/dist/client/index.html.br +0 -0
- package/dist/scripts/postinstall-path-check.js +1 -1
- package/dist/server/index.js +2 -2
- package/dist/server/whiteboard/layout-worker.js +1 -1
- package/dist/session/hook-tool-relay.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/agent-api-cli-ly6UBwlj.js +0 -1
- package/dist/chunks/config-store-BCB2IgBC.js +0 -1
- package/dist/chunks/kimi-BsXxRPQ_.js +0 -1
- package/dist/chunks/settings-cli-O5kaFTNh.js +0 -1
- package/dist/client/assets/action-status-rETkOMJb.js.br +0 -0
- package/dist/client/assets/agent-core-BmzljZal.js.br +0 -0
- package/dist/client/assets/agent-mark-vCo0zsWP.js.br +0 -0
- package/dist/client/assets/arena-panel-azL51Ses.js.br +0 -0
- package/dist/client/assets/benchmark-panel-8mimXsjK.js.br +0 -0
- package/dist/client/assets/boards-view-DIh7lkLS.js.br +0 -0
- package/dist/client/assets/button-CfhUK7Jn.js +0 -1
- package/dist/client/assets/button-CfhUK7Jn.js.br +0 -0
- package/dist/client/assets/community-panel-oPNEjWVB.js.br +0 -0
- package/dist/client/assets/control-ws-DEfwcMni.js.br +0 -0
- package/dist/client/assets/dialogs-BJQhXF-i.js.br +0 -0
- package/dist/client/assets/doc-editor-ui-qzAOMLgj.js.br +0 -0
- package/dist/client/assets/feature-hint-DYaAH_FS.js.br +0 -0
- package/dist/client/assets/first-run-checklist-B-J9-hZq.js.br +0 -0
- package/dist/client/assets/hooks-panel-leiYaWxz.js.br +0 -0
- package/dist/client/assets/index-CCAFwpgb.js.br +0 -0
- package/dist/client/assets/issues-panel-I6N9hEcg.js.br +0 -0
- package/dist/client/assets/lane-read-token-step-nbabpx3_.js.br +0 -0
- package/dist/client/assets/menu-DzZGGGGN.js.br +0 -0
- package/dist/client/assets/modal-CjIIQMho.js.br +0 -0
- package/dist/client/assets/my-prs-panel-8vwDuQYH.js.br +0 -0
- package/dist/client/assets/nyan-cat-CyLs6Ah3.js.br +0 -0
- package/dist/client/assets/phone-shell-6J_LT8oK.js.br +0 -0
- package/dist/client/assets/plan-face-VwtdBhdq.js.br +0 -0
- package/dist/client/assets/plan-render-BeX_KU2k.js.br +0 -0
- package/dist/client/assets/pr-queue-columns-BwjW6ZSu.js.br +0 -0
- package/dist/client/assets/pr-status-icon-dpJOgyIo.js.br +0 -0
- package/dist/client/assets/radar-panel-U8kArKZ3.js.br +0 -0
- package/dist/client/assets/repo-roots-adder-C57e0__D.js.br +0 -0
- package/dist/client/assets/resume-dialog-DRD_GKrw.js.br +0 -0
- package/dist/client/assets/review-queue-panel-DAk2WHrm.js.br +0 -0
- package/dist/client/assets/session-row-U1g9MCRj.js.br +0 -0
- package/dist/client/assets/session-tick-DxsZqUxX.js.br +0 -0
- package/dist/client/assets/settings-panel-CMQPJBaI.js +0 -4
- package/dist/client/assets/settings-panel-CMQPJBaI.js.br +0 -0
- package/dist/client/assets/setup-step-B9ALtknc.js.br +0 -0
- package/dist/client/assets/trace-panel-CHusMzMn.js.br +0 -0
- package/dist/client/assets/usage-panel-CuIScVal.js.br +0 -0
- package/dist/client/assets/whiteboard-undo-core-DFpJR7c5.js.br +0 -0
- package/dist/client/assets/your-day-tip-_pFQLziL.js.br +0 -0
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { $t as
|
|
1
|
+
import { $t as CLIENT_LOG_TEXT_MAX_CHARS, A as BenchmarkSuite, B as DISCORD_CHANNEL_NAME_RE, Bt as issuePullRequestStateFromGithub, C as EFFORT_OPTION_ID, D as BenchmarkJudgement, E as BenchmarkId, F as CommunityActionRequest, Ft as IssueKey, G as GithubPrsFrame, Gt as TraceCheckpoint, H as GithubPrDetailNode, Ht as HookEnvelope, I as CommunityDraft, It as IssueUpdate, J as WorkflowLabelName, Jt as ChangeMap, K as comparablePrKey, Kt as TraceRecord, L as CommunityItem, Lt as IssuesSearchResponse, M as MergedPrListing, N as MinedPrReviewData, Nt as GithubIssuePullRequestsRepository, O as BenchmarkRun, Ot as USAGE_INTEGER_RANGES, P as PrCheckoutCaseInput, Pt as GithubIssueResponse, R as CommunityState, Rt as IssuesState, S as DEFAULT_MODELS, T as BenchmarkCase, U as GithubPrKey, Ut as SessionSetup, V as SKILL_NAME_RE, W as GithubPrLightSearchNode, Wt as MAX_RAW_LINE_CHARS, Y as WorkflowsSettings, Yt as changeMapFactId, Z as WorkflowsState, Zt as CHANGES_POLL_INTERVAL_MS, _ as RaceSpec, _n as PlanDecision, b as CATALOG_AGENT_IDS, bn as planTitle, c as HINT_FEATURES, cn as STANDALONE_BINARY_PATH, d as ContestantMetrics, dn as UpdateJournal, en as CONTROL_FRAME_MAX_BYTES, fn as PLAN_BODY_CAP_BYTES, g as RaceRecord, gn as PLAN_TOOL_NAME, h as RaceJudgeAgent, hn as PLAN_RESULT_HOOK_EVENT, j as CommitComparison, k as BenchmarkStatus, l as HINT_VIEW_BY_FEATURE, ln as pullRequestKeyFromReference, mn as PLAN_HOOK_OUTPUT_MAX_CHARS, n as PackApproveRequest, nn as GithubTeam, o as HubPhoneAlertFrame, ot as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, p as RACE_CRITERIA, pn as PLAN_HOOK_EVENT, q as WorkflowCommentBody, qt as CoherenceJournalOutput, r as HUB_PHONE_ALERT_TEXT_MAX, s as FeatureHintState, t as ClientMessage, vn as PlanRevision, w as BenchmarkActionRequest, x as CatalogAgentId, yn as parseExitPlanModeHookPayload, z as CommunityVerdict, zt as IssuesStatus } from "./control-messages-B6l3aVFK.js";
|
|
2
2
|
import { a as rawTextOr, i as positiveNumberOr, n as isRecord$2, o as textOr, r as numberOr, t as coercedNumberOr } from "./coerce-D6vRlIGO.js";
|
|
3
|
-
import { $ as
|
|
4
|
-
import { $ as buildBrowserExceptionProperties, C as isExperimentalBuild, D as settingsBlockSpecFor, E as mergeSettingsBlock, G as LOGGED_FAST_CLOSE_COUNTS, H as isExperimentalSetting, J as parseDataClientMessage, K as describeDataAttach, O as validateSettingsBlock, Q as buildAiGenerationEvents, S as compareReleaseVersions, U as DEEP_HISTORY_SCROLLBACK_LINES, X as POSTHOG_INGEST_HOST_ENV, Y as FIRST_RUN_NOTICE, Z as adapterBucket, _ as sessionIdFromBranch, _t as TELEMETRY_EVENT_SCHEMAS, a as generateProjectId, at as decideIsDevInstall, b as DEFAULT_TIMER_FNS, bt as comparableDirectoryPath, ct as exceptionFingerprint, d as DEFAULT_CONFIG, dt as parsePosthogReleaseId, et as buildExceptionProperties, f as DEFAULT_BRANCH_GC_PREFIXES, ft as resolveProjectToken, g as planWorktreeGc, gt as PendingCrashReport, h as planBranchGc, ht as DashboardTelemetryReport, i as ensureProjectIds, it as codexUserIdOf, k as SETTINGS_INDEX, lt as isIngestOverrideIgnored, m as matchedPrefix, mt as telemetryFlagsUrl, n as createConfigStore, nt as classifySessionExit, o as glimmervoidHomeDir, ot as decideRemoteTelemetryState, p as isGcCandidateWorktree, pt as telemetryBatchUrl, q as parseDataAttach, r as ABORT_CONFIG_SAVE, rt as claudeAccountUuidOf, st as decideTelemetryConsent, tt as buildPersonProperties, ut as nodeMajorVersion, v as usablePrefixes, vt as TelemetryState, x as unrefTimer, xt as isSameDirectoryPath, y as worktreeIntegrationTips, yt as canonicalizePath, z as valueAtPath } from "./config-store-
|
|
3
|
+
import { $ as withCommittedOffset, $t as sweepOrphanedHostScratch, A as normalizeUpdateChannel, At as parseJsonLine$1, B as exceedsUploadCap, Bt as sweepOrphans, C as decideInstallFlavor, Ct as emptyTotals, D as isBinarySwitchFlavor, Dt as identityFromRelPath, E as installerUrl, Et as foldReplacementIntoGenerationRollup, F as REPO_SLUG, Ft as claudeCode, G as MAX_TRANSCRIPT_READ_BYTES, Gt as appendUserHooks, H as imageMimeForUploadFilename, Ht as HOOK_EVENT_CATALOG, I as openContainedFile, It as HOOK_EVENTS, J as completeLineBytes, Jt as rawStoredHooks, K as TRACE_TAIL_SCAN_BYTES, Kt as hooksForProject, L as MAX_UPLOAD_BYTES, Lt as PLAN_HOLD_RELEASE_MS, M as parseRemoteTagSha, Mt as shouldReplace, N as parseResolvedSha, Nt as totalTokensOf$1, O as isCheckFresh, Ot as isWithinGenerationRecencyWindow, P as shortSha, Pt as vendorUsageEntry, Q as resumeOffsetFrom, Qt as makeHostScratchDirectory, R as buildUploadFilename, Rt as buildHookSettings, S as HOMEBREW_COMMAND, St as dedupKeys, T as installerFileName, Tt as foldEntryIntoGenerationRollup, U as isSafePathSegment, Ut as ID_RE, V as framePathPaste, Vt as writeSessionSettings, W as planUploadRetention, Wt as agentHookGroupOf, X as isOversizedPartialLine, Xt as removeHook, Y as containmentRefusalReason, Yt as readStoredHooks, Z as planContiguousRead, Zt as upsertHook, _ as folderTrustRoot, _t as shouldPersistWarehouse, a as customAgentFingerprint, an as HOOK_TOOLS, at as decideFileRead, b as requestCodexAppServer, bt as parseKimiUsageLine, c as hookProfileOf, ct as grokHomes, d as isKnownAgentId, dt as passOutcome, en as appendRemovalRecord, et as codexFallbackRoots, f as listAgentIds, ft as projectDirCandidates, g as setCustomAgents, gt as shouldEvaluateDespiteIoFailures, h as resolveAdapter, ht as sessionsRootCandidates, i as commandFor, in as listClaudeGlobalConfigPathCandidates, it as continuationDelayMs, j as parseLatestRelease, jt as parseUsageLine, k as normalizeSha, kt as mergeGenerationRollups, l as isBuiltInAgentId, lt as isUsageFile, m as resetCommandCache, mt as scopedClaudeRoots, n as DEFAULT_AGENT_ID$1, nn as recordSweptPath, nt as codexRootCandidates, o as describeAgentResolvability, ot as dedupeCodexFiles, p as projectHookConfigRelPaths, pt as resolveProjectsDirs, q as committedOffsetFromTraceTailOrNull, qt as normalizeHook, r as cachedAgentResolvability, rn as removalsJournalPath, rt as codexSessionIdFromPath, s as getAdapter, st as expandTilde, tn as appendRemovalRecordSync, tt as codexHomes, u as isFirstClassAgent, ut as kimiHomes, v as codex, vt as splitLines, w as decideUpdateStatus, wt as expandAdvisorIterations, x as BINARY_UPDATER_NAME, xt as addEntryToTotals, y as readHostCodexVersion, yt as kimiDedupIdentity, z as decideUploadType, zt as generateToken } from "./adapters-BpRMaOqW.js";
|
|
4
|
+
import { $ as buildBrowserExceptionProperties, C as isExperimentalBuild, D as settingsBlockSpecFor, E as mergeSettingsBlock, G as LOGGED_FAST_CLOSE_COUNTS, H as isExperimentalSetting, J as parseDataClientMessage, K as describeDataAttach, O as validateSettingsBlock, Q as buildAiGenerationEvents, S as compareReleaseVersions, U as DEEP_HISTORY_SCROLLBACK_LINES, X as POSTHOG_INGEST_HOST_ENV, Y as FIRST_RUN_NOTICE, Z as adapterBucket, _ as sessionIdFromBranch, _t as TELEMETRY_EVENT_SCHEMAS, a as generateProjectId, at as decideIsDevInstall, b as DEFAULT_TIMER_FNS, bt as comparableDirectoryPath, ct as exceptionFingerprint, d as DEFAULT_CONFIG, dt as parsePosthogReleaseId, et as buildExceptionProperties, f as DEFAULT_BRANCH_GC_PREFIXES, ft as resolveProjectToken, g as planWorktreeGc, gt as PendingCrashReport, h as planBranchGc, ht as DashboardTelemetryReport, i as ensureProjectIds, it as codexUserIdOf, k as SETTINGS_INDEX, lt as isIngestOverrideIgnored, m as matchedPrefix, mt as telemetryFlagsUrl, n as createConfigStore, nt as classifySessionExit, o as glimmervoidHomeDir, ot as decideRemoteTelemetryState, p as isGcCandidateWorktree, pt as telemetryBatchUrl, q as parseDataAttach, r as ABORT_CONFIG_SAVE, rt as claudeAccountUuidOf, st as decideTelemetryConsent, tt as buildPersonProperties, ut as nodeMajorVersion, v as usablePrefixes, vt as TelemetryState, x as unrefTimer, xt as isSameDirectoryPath, y as worktreeIntegrationTips, yt as canonicalizePath, z as valueAtPath } from "./config-store-CAzc6z1i.js";
|
|
5
5
|
import { C as memoryReserveBytes, E as parseMemAvailableBytes, S as headroomFromReadings, T as parseCgroupV2Path, _ as createSerialQueue, a as jsonStateLoadError, b as cgroupAncestorPaths, c as loadedJsonValue, d as writeJsonAtomic, f as writeJsonAtomicSync, g as createMemoryAdmission, h as createKeyedSerialQueue, i as createJsonStateWriter, m as writeTextAtomicSync, n as appendJsonLines, o as loadJsonStateFile, p as writeTextAtomic, r as createJsonStateStore, s as loadJsonStateFileSync, t as appendJsonLine, v as createSpawnGate, w as parseCgroupBytes, x as cgroupLimitBytes, y as isQueueAdmissionTimeout } from "./json-file-BmnDu2ZM.js";
|
|
6
6
|
import { a as sanitizeWorktreeName, i as safePathSegment, n as equalsIgnoringCaseOnWindows, r as isPathInside, t as caseFoldedPathKey } from "./paths-C2u2R_6l.js";
|
|
7
7
|
import { o as isMissingFileError, r as errorMessage, t as errorCode } from "./text-BDF4aFhQ.js";
|
|
8
|
-
import { _ as stableLauncherPath, a as examplePacksDir, d as relayPath, f as resolveFfmpegPath, g as selfRelaunch, h as selfLaunch, i as clientDir, l as packageRoot, m as scriptLaunch, o as findNodeLauncherPath, p as resolvePackageBin, r as bundled, t as assetRoot, u as refuseUnstableSelfLaunches
|
|
8
|
+
import { _ as stableLauncherPath, a as examplePacksDir, d as relayPath, f as resolveFfmpegPath, g as selfRelaunch, h as selfLaunch, i as clientDir, l as packageRoot, m as scriptLaunch, o as findNodeLauncherPath, p as resolvePackageBin, r as bundled, t as assetRoot, u as refuseUnstableSelfLaunches } from "./runtime-paths-BhtVY5Kw.js";
|
|
9
9
|
import { c as runCommandSafely$1, i as execFileSync, l as spawn, n as execFile, r as execFileAsync, t as assertLaunchable } from "./child-process-safe-DAaWFLd1.js";
|
|
10
10
|
import { $ as MyPrCheckContextsResponse, $t as PR_ACTION_TOKEN_ENV, A as QUIET_NOTIFY_CATEGORIES, An as GH_SEGMENT, B as SSH_SIGN_BODY_CAP_BYTES, Bn as MERGEABLE_LIVE_STATES, Bt as TeamReviewResolveResponse, C as COHERENCE_HOOKS_INACTIVE, Dt as PostingPlan, E as CONVERSATION_TOOL_RESULT_HOOK_EVENT, Et as PostedReviewEvent, Ft as ReviewThreadId, G as SshSignRequest, Gt as TeamReviewThreadsRepository, Hn as STATES, Ht as TeamReviewStatus, I as SESSION_NAME_PATTERN, It as ReviewVerdict, K as TASK_TITLE_CONTROL_CHARACTERS, Kt as canApproveAfterComment, L as SESSION_NAME_RULE_TEXT, Lt as TeamReviewActionRequest, Mn as REPO_SLUG_RE, Mt as ReviewDraft, Nn as repoParts, Nt as ReviewFinding, O as ConversationQuestion, On as HEX_SHA_RE, Ot as PrDetail, P as SESSION_DOC_BODY_CAP_BYTES, Pt as ReviewResult, Q as MyPrCheckContext, Qt as PR_ACTION_REPORT_URL_ENV, R as SHOWN_FILE_CAP_BYTES, Rn as BADGE_LABELS, S as AttentionNoteOrigin, St as FindingSeverity, T as CONVERSATION_PERMISSION_HOOK_EVENT, Ut as TeamReviewThreadCommentsResponse, Vn as RESTARTABLE_STATES, Vt as TeamReviewStateEntry, Wt as TeamReviewThreadResult, X as MyPr, Xt as PR_ACTION_REPORT_BODY_CAP_BYTES, Y as LinkedPr, Yt as hasStandingViewerApproval, Z as MyPrAutoRebase, Zt as PR_ACTION_REPORT_ROUTE, _n as PrFlowsSettings, a as ATTENTION_NOTE_NOTIFY_CATEGORY, b as AgentWhyRequest, bn as PrThreadReplyResponse, bt as DECIDING_REVIEW_STATES, dt as MyPrThreadNode, et as MyPrKeepMergeableRequest, f as AgentPacksRequest, ft as MyPrThreadsResponse, i as ASK_USER_QUESTION_TOOL_NAME, in as PrFlowApproveRequest, it as MyPrMergeRequest, j as REQUEST_USER_INPUT_TOOL_NAME, jn as NODE_ID_RE, jt as ReviewComment, kn as shortSha$1, l as AgentCloseRequest, ln as PrFlowItemRequest, mn as PrFlowSaveRuleRequest, mt as MyPrsState, nn as PrActionReportBody, nt as MyPrLaneEntry, on as PrFlowDisposeRequest, ot as MyPrMergeStateResponse, p as AgentPullRequestRequest, pn as PrFlowRule, pt as MyPrsSnapshot, q as TaskTitle, qt as decisionAsIfApprovalRequired, r as AGENT_URL_ENV, rn as PrActionRunRequest, rt as MyPrMergeMethod, s as AgentAttentionRequest, st as MyPrMergeWhenReadyRequest, u as AgentEditRequest, ut as MyPrStage, v as AgentSettingsRequest, vn as PrFlowsState, w as CONVERSATION_APPROVAL_SUMMARY_MAX_CHARS, wn as prActionReportPath, wt as GithubReviewState, xn as PrThreadUnresolveResponse, xt as EarlierReview, y as AgentSpawnRequest, yt as CommitSha$1, z as SIGN_URL_ENV, zn as KILLABLE_STATES, zt as TeamReviewCompareFiles } from "./session-BygOlxkV.js";
|
|
11
11
|
import { a as QUESTION_ANSWERED_NOTIFY_CATEGORY, c as QuestionManagerSettings, i as ManagerLaneResult, n as MANAGER_DECISION_EVENT, r as ManagerDecision, t as MANAGER_DECISION_AUDIT_KIND } from "./question-manager-C_RzS1Ot.js";
|
|
12
12
|
import { E as Op, H as mediaOfBox, M as WHITEBOARD_ASSET_ROUTE, N as WHITEBOARD_LIMITS, O as STICKY_TONES, Q as ICON_NAMES, U as sparseBoardReply, V as linesOfBox, a as BOARD_PAGE_PARAMS_MESSAGE, b as DialManifest, i as BOARD_PAGE_GESTURE_MESSAGE, m as BoardRegion, n as BOARD_MEDIA_MAX_EDGE_PX, nt as DEVICE_NAMES, o as BOARD_PAGE_THEME_MESSAGE, p as BoardRecord, r as BOARD_PAGE_ESCAPE_MESSAGE, s as BOARD_PAGE_ZOOMED_MESSAGE, t as BOARD_DOC_CAP_BYTES } from "./whiteboard-BRwReLkT.js";
|
|
13
13
|
import { n as promptContextReplyOf, o as toolHookContextReplyOf, r as refocusReplyFor, t as REFOCUS_NOTE } from "./refocus-core-DlEDNY3E.js";
|
|
14
|
-
import { $ as hintFor, A as fencedUntrustedSections, B as RESUME_ID_RE, C as cleanTaskPrompt, D as extractNotifiedTaskIds, E as extractHookTaskTitle, F as resolveRefocusTaskTitle, G as shouldAdoptReportedResumeId, H as pickAutoResume, I as resolveTaskTitle, J as listRepoWorktreePaths, K as claudeProjectsDir, L as seedTaskTitleSources, M as isSubstantivePrompt, N as parseRefinedSessionName, O as extractOscTaskTitle, P as parseRefinedTaskTitle, R as startsWithSessionName, S as chooseRefinedSessionName, T as extractAiTitle, U as resolveResumeTarget, V as isConversationReplacedAtStartup, W as resumePromptFor, X as nextSuggestedName, Y as isAutoNameOf, Z as describeSessionLimits, _ as projectReviewDetail, a as checkAgentReply, b as buildPersistedTaskTitle, c as deriveChildSessionName, d as describePushLanding, et as permitsHelpCommand, f as describeRoleRefusal, g as projectMyPrs, h as parseAgentVerb, it as toolHookFactsOf, j as isSelfWakePrompt, k as extractPromptTaskTitle, l as describeChildEndNote, n as REFUSAL_REASON, nt as routeAgentNotes, o as decideAgentRequest, p as describeUnpushedCloseRefusal, q as listRepoConversations, rt as supervisionLine, s as decideSpawnAllowance, tt as promptHintFor, u as describeKeptChildAttention, v as projectReviews, w as decideTaskTitleRefinement, x as buildTaskTitleRefinementPrompt, y as tokensMatch, z as AUTO_CONTINUE_PROMPT } from "./agent-api-core-
|
|
14
|
+
import { $ as hintFor, A as fencedUntrustedSections, B as RESUME_ID_RE, C as cleanTaskPrompt, D as extractNotifiedTaskIds, E as extractHookTaskTitle, F as resolveRefocusTaskTitle, G as shouldAdoptReportedResumeId, H as pickAutoResume, I as resolveTaskTitle, J as listRepoWorktreePaths, K as claudeProjectsDir, L as seedTaskTitleSources, M as isSubstantivePrompt, N as parseRefinedSessionName, O as extractOscTaskTitle, P as parseRefinedTaskTitle, R as startsWithSessionName, S as chooseRefinedSessionName, T as extractAiTitle, U as resolveResumeTarget, V as isConversationReplacedAtStartup, W as resumePromptFor, X as nextSuggestedName, Y as isAutoNameOf, Z as describeSessionLimits, _ as projectReviewDetail, a as checkAgentReply, b as buildPersistedTaskTitle, c as deriveChildSessionName, d as describePushLanding, et as permitsHelpCommand, f as describeRoleRefusal, g as projectMyPrs, h as parseAgentVerb, it as toolHookFactsOf, j as isSelfWakePrompt, k as extractPromptTaskTitle, l as describeChildEndNote, n as REFUSAL_REASON, nt as routeAgentNotes, o as decideAgentRequest, p as describeUnpushedCloseRefusal, q as listRepoConversations, rt as supervisionLine, s as decideSpawnAllowance, tt as promptHintFor, u as describeKeptChildAttention, v as projectReviews, w as decideTaskTitleRefinement, x as buildTaskTitleRefinementPrompt, y as tokensMatch, z as AUTO_CONTINUE_PROMPT } from "./agent-api-core-rEEiI8Pd.js";
|
|
15
15
|
import { a as mcpLaunchFor, o as parsePresentedCredential } from "./agent-config-BJVJpVzX.js";
|
|
16
16
|
import { a as elementPageOf, c as tileKeysFor, l as pictureRefusalOf, o as fitsOnePage, s as tileIdOf } from "./layout-worker-core-Bo1IQfa3.js";
|
|
17
17
|
import { c as VAULT_REPLACED_CLOSE_CODE, d as VaultCompanionMessage, f as VaultJob, l as VAULT_SOCKET_PATH, n as AgentNeedRequest } from "./secrets-DUjhXqjU.js";
|
|
18
|
-
import { a as ConfigUpdate, c as SHELL_AGENT_ID, f as USAGE_COST_MODES, n as BUILTIN_AGENT_IDS, p as USAGE_VENDOR_KEYS, r as BrowserConfig, s as RUNTIME_CONFIG_SCALAR_KEYS, u as configIssueMessage } from "./config-
|
|
19
|
-
import { _ as decideHostAllowed, c as approvedPackPanels, d as packRow, f as pendingPackNote, g as readCappedBody, h as parseJsonBody, l as approvedPackThemes, m as decodeHeaderText, n as readPacksForAgent, p as declaredContentLength, u as packFileHeaders } from "./pack-agent-
|
|
18
|
+
import { a as ConfigUpdate, c as SHELL_AGENT_ID, f as USAGE_COST_MODES, n as BUILTIN_AGENT_IDS, p as USAGE_VENDOR_KEYS, r as BrowserConfig, s as RUNTIME_CONFIG_SCALAR_KEYS, u as configIssueMessage } from "./config-K4Ajx_x7.js";
|
|
19
|
+
import { _ as decideHostAllowed, c as approvedPackPanels, d as packRow, f as pendingPackNote, g as readCappedBody, h as parseJsonBody, l as approvedPackThemes, m as decodeHeaderText, n as readPacksForAgent, p as declaredContentLength, u as packFileHeaders } from "./pack-agent-c_74clVP.js";
|
|
20
20
|
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, u as wellKnownAgentSocketPaths } from "./ssh-signing-core-CmYFjvrx.js";
|
|
21
|
-
import { a as configSiblingPath, c as defaultPairingsPath, d as decideDeviceAuth, f as deviceNameFromUserAgent, i as validateRemoteConfig, l as defaultSeenPath, n as isLoopbackHost, o as createPairingsStore, p as hashSecret, r as normalizeRemoteConfig, s as createSeenStore, t as decideBindHost, u as DEFAULT_DEVICE_MAX_AGE_MS } from "./remote-config-
|
|
21
|
+
import { a as configSiblingPath, c as defaultPairingsPath, d as decideDeviceAuth, f as deviceNameFromUserAgent, i as validateRemoteConfig, l as defaultSeenPath, n as isLoopbackHost, o as createPairingsStore, p as hashSecret, r as normalizeRemoteConfig, s as createSeenStore, t as decideBindHost, u as DEFAULT_DEVICE_MAX_AGE_MS } from "./remote-config-Ch63m7CJ.js";
|
|
22
22
|
import { r as shellQuote } from "./hook-command-core-9E3QR9Bk.js";
|
|
23
23
|
import { c as realAgentHome, f as createHeldSessionTempFolder, h as trashSessionTempFolderOnceUnheld, m as sessionIdOfLockFile, p as releaseSessionLock, u as releaseEveryUnheldAgentHomeSecrets } from "./agent-home-KhnohDHV.js";
|
|
24
24
|
import { A as savedRuleFor, B as withInterruptedRuns, D as prFlowSetup, E as prActionRunAfterExit, F as teammateThreadItems, G as defineTransitions, H as withPrActionRun, I as threadCandidates, M as shouldTellBranchMoved, N as sourceCandidates$1, O as prFlowsConfig, R as visibleRun, S as packPathsOf, U as withReopened, V as withOnlyOpenPrs, W as withRuleRun, _ as isCommandStillRunning, b as newPrActionRun, d as acceptReport, f as branchMovedNote, g as flaggingReviewers, h as fixLocallyPrompt, i as packsStatePath, j as scopedToRepo, l as PacksState, o as readPackDir, p as commandFingerprint, r as packDirsUnder, s as PACK_FILE_NAME, t as PACKS_DIR_NAME, v as itemLocation, w as plannedActions, y as mergeItems, z as withHandled } from "./pack-files-DggkYpgV.js";
|
|
25
25
|
import { A as stageOps, C as recordPut, D as upgradedBoardRecord, E as summarizeBoard, O as OPERATOR_AUTHOR, S as projectBoardsNoticeFor, T as shownBoxOp, _ as isFiledFor, b as markRead, f as BOARD_CONTEXT_NOTE, g as disconnectSession, h as connectSession, j as unplacedNearTargetIdsOf, k as createBoard, m as changesForReader, p as boardNoticeFor, v as isListedFor, w as resolveBoardRef, x as pickShowBoardId, y as isSameProject } from "./board-store-core-uF82zqRK.js";
|
|
26
26
|
import { B as planSteps$1, G as boardIndexOf, T as cappedWarnings, U as assetIdOf, V as stepBoxesOf, W as assetIdsOf } from "./whiteboard-layout-core-BHYSQ2pZ.js";
|
|
27
|
-
import { n as createLayoutClient, t as createBoardStore } from "./board-store-client-
|
|
27
|
+
import { n as createLayoutClient, t as createBoardStore } from "./board-store-client-DZPYuiZo.js";
|
|
28
28
|
import { t as LAYOUT_CACHE_FILENAME } from "./layout-cache-msy3RopJ.js";
|
|
29
29
|
import { C as createTsconfigPathsResolver, E as resolveExtendsPath, T as parseTsconfigJsonc, d as KIMI_HOME_PROFILE, w as matchPathPatterns } from "./agent-home-core-DxJ5_9_c.js";
|
|
30
|
-
import { n as configFileViewOf, u as readSettingsForAgent } from "./settings-readout-core-
|
|
30
|
+
import { n as configFileViewOf, u as readSettingsForAgent } from "./settings-readout-core-DAFEnqa5.js";
|
|
31
31
|
import { n as escapeMarkup } from "./whiteboard-svg-core-C8es_jiE.js";
|
|
32
32
|
import { n as DEFAULT_MAX_MS, r as nextBackoffMs, t as DEFAULT_BASE_MS } from "./backoff-CMhw1Fu8.js";
|
|
33
33
|
import { _ as WatcherStatus, a as LINK_SERVER_URL_ENV, c as Nudge, f as STATUS_PATH, i as LINK_SECRET_ENV, m as WATCHER_LANE_IDS, n as GITHUB_API_BASE_ENV, p as WATCHER_HOME_ENV, v as githubApiOrigin } from "./watcher-link-xW9PMs77.js";
|
|
@@ -43,8 +43,8 @@ import { n as sanitizeOneLine, r as showHomeAsTilde, t as firstLine$2 } from "./
|
|
|
43
43
|
import { a as PackStoreData, d as packStoreSizeError, u as packStoreAfterSet } from "./pack-bridge-LK2GtXo2.js";
|
|
44
44
|
import { t as createPrFlowsExternal } from "./pr-flows-external-CFMQl11W.js";
|
|
45
45
|
import { a as signedRequestFromHeaders, i as signedHeaders, o as verifyRequest, r as directionKey, t as createRecentRequestIds } from "./link-signing-core-QyQDc4XP.js";
|
|
46
|
-
import { n as isSameHostEntry, r as removeHostFrom, t as addHostTo } from "./host-registry-core-
|
|
47
|
-
import { t as kimi } from "./kimi-
|
|
46
|
+
import { n as isSameHostEntry, r as removeHostFrom, t as addHostTo } from "./host-registry-core-BgHHO4VK.js";
|
|
47
|
+
import { t as kimi } from "./kimi-DJ6HUYC6.js";
|
|
48
48
|
import { i as parseCommandLine, n as warnWhenGitIsTooOld } from "./git-version-Nd3lkOqC.js";
|
|
49
49
|
import { a as missingReferenceNames, c as withoutApproval, i as denialEndsAtMs, n as approvalsOf, r as decideNeed, s as withApprovals, t as approvalRowsOf } from "./secrets-broker-core-R0yZwtMq.js";
|
|
50
50
|
import { createRequire } from "node:module";
|
|
@@ -2169,7 +2169,7 @@ function closeExtraServers(extraServers) {
|
|
|
2169
2169
|
} catch {}
|
|
2170
2170
|
}
|
|
2171
2171
|
}
|
|
2172
|
-
function createLifecycle({ shutdown, httpServer, extraServers = [], onRestart = null, spawn, exit = process.exit, getArgv = () => process.argv, cwd = () => process.cwd(), env = process.env, log = console.log, capMs = 3e3, closeTimeoutMs = 2e3, beforeHandOff, beforeHandOffCapMs = 3e5
|
|
2172
|
+
function createLifecycle({ shutdown, httpServer, extraServers = [], onRestart = null, spawn, exit = process.exit, getArgv = () => process.argv, cwd = () => process.cwd(), env = process.env, log = console.log, capMs = 3e3, closeTimeoutMs = 2e3, beforeHandOff, beforeHandOffCapMs = 3e5 }) {
|
|
2173
2173
|
let requested = false;
|
|
2174
2174
|
let handOffPrepared = false;
|
|
2175
2175
|
function fallbackTimer(fn, keepProcessAlive = false) {
|
|
@@ -2240,11 +2240,6 @@ function createLifecycle({ shutdown, httpServer, extraServers = [], onRestart =
|
|
|
2240
2240
|
}
|
|
2241
2241
|
const successor = await spawnReplacement();
|
|
2242
2242
|
if (!successor) return;
|
|
2243
|
-
if (superviseSuccessor ? await superviseSuccessor(successor) : false) {
|
|
2244
|
-
const rolledBackServer = await spawnReplacement();
|
|
2245
|
-
if (!rolledBackServer) return;
|
|
2246
|
-
rolledBackServer.unref();
|
|
2247
|
-
}
|
|
2248
2243
|
successor.unref();
|
|
2249
2244
|
exit(0);
|
|
2250
2245
|
}
|
|
@@ -52313,7 +52308,7 @@ function createBackendLanes(dependencies) {
|
|
|
52313
52308
|
external: createPrFlowsExternal({ homeDir: glimmervoidHome }),
|
|
52314
52309
|
broadcast: broadcastControl,
|
|
52315
52310
|
log: logger,
|
|
52316
|
-
reportUrlFor: (runId) => `http://127.0.0.1:${dashboardPort}${prActionReportPath(runId)}`,
|
|
52311
|
+
reportUrlFor: (runId) => `http://127.0.0.1:${dashboardPort()}${prActionReportPath(runId)}`,
|
|
52317
52312
|
loadPacks: async (configFile) => {
|
|
52318
52313
|
packStore.setListedPaths(packPathsOf(configFile));
|
|
52319
52314
|
const approvedPacks = await packStore.approvedPacks();
|
|
@@ -58658,11 +58653,7 @@ var SUPPORTED_UPDATE_REMOTE = "origin";
|
|
|
58658
58653
|
var LOWEST_SCHEDULING_PRIORITY = "19";
|
|
58659
58654
|
var NPM_PACKAGE_FOLDER_NAME = "glimmervoid";
|
|
58660
58655
|
var NPM_GLOBAL_UPDATE_FOLDER_NAME = ".glimmervoid-update";
|
|
58661
|
-
var DASHBOARD_UPDATABLE_FLAVORS = /* @__PURE__ */ new Set([
|
|
58662
|
-
"clone",
|
|
58663
|
-
"npm-global",
|
|
58664
|
-
"binary"
|
|
58665
|
-
]);
|
|
58656
|
+
var DASHBOARD_UPDATABLE_FLAVORS = /* @__PURE__ */ new Set(["clone", "binary"]);
|
|
58666
58657
|
var TRANSITIONS_ALLOWED_BY_STATE = Object.freeze({
|
|
58667
58658
|
idle: Object.freeze(["begin-run"]),
|
|
58668
58659
|
running: Object.freeze([
|
|
@@ -58670,6 +58661,7 @@ var TRANSITIONS_ALLOWED_BY_STATE = Object.freeze({
|
|
|
58670
58661
|
"finish-step",
|
|
58671
58662
|
"fail-run",
|
|
58672
58663
|
"mark-staged",
|
|
58664
|
+
"mark-succeeded",
|
|
58673
58665
|
"mark-interrupted"
|
|
58674
58666
|
]),
|
|
58675
58667
|
staged: Object.freeze([
|
|
@@ -58713,11 +58705,7 @@ function retireAtBoot(journal, { wasPersisted }) {
|
|
|
58713
58705
|
return journal;
|
|
58714
58706
|
}
|
|
58715
58707
|
function decidePreflight(facts) {
|
|
58716
|
-
if (facts.flavor
|
|
58717
|
-
ok: false,
|
|
58718
|
-
reason: "unsupported-flavor",
|
|
58719
|
-
message: "Glimmervoid runs from the npx cache. Stop Glimmervoid and run the command shown."
|
|
58720
|
-
};
|
|
58708
|
+
if (isBinarySwitchFlavor(facts.flavor)) return decideBinarySwitchPreflight(facts);
|
|
58721
58709
|
if (facts.flavor === "homebrew") return {
|
|
58722
58710
|
ok: false,
|
|
58723
58711
|
reason: "unsupported-flavor",
|
|
@@ -58743,7 +58731,6 @@ function decidePreflight(facts) {
|
|
|
58743
58731
|
reason: "no-update-available",
|
|
58744
58732
|
message: "No update is available."
|
|
58745
58733
|
};
|
|
58746
|
-
if (facts.flavor === "npm-global") return decideNpmGlobalPreflight(facts);
|
|
58747
58734
|
if (facts.flavor === "binary") return decideBinaryPreflight(facts);
|
|
58748
58735
|
return decideClonePreflight(facts);
|
|
58749
58736
|
}
|
|
@@ -58781,17 +58768,21 @@ function decideRunPreflight(facts) {
|
|
|
58781
58768
|
lockfileCheckNeeded: true
|
|
58782
58769
|
};
|
|
58783
58770
|
}
|
|
58784
|
-
function
|
|
58785
|
-
|
|
58786
|
-
if (!install) return {
|
|
58771
|
+
function decideBinarySwitchPreflight(facts) {
|
|
58772
|
+
if (facts.isSupervised) return {
|
|
58787
58773
|
ok: false,
|
|
58788
|
-
reason: "
|
|
58789
|
-
message:
|
|
58774
|
+
reason: "supervised-install",
|
|
58775
|
+
message: `Glimmervoid runs as a systemd or launchd service, so Update cannot switch it. Run the install command, point the service's ExecStart (systemd) or ProgramArguments (launchd) at ${STANDALONE_BINARY_PATH}, restart the service, then run npm uninstall -g glimmervoid.`
|
|
58776
|
+
};
|
|
58777
|
+
if (facts.statusChannel !== facts.configuredChannel) return {
|
|
58778
|
+
ok: false,
|
|
58779
|
+
reason: "channel-mismatch",
|
|
58780
|
+
message: "The update status is for another channel. Check for updates again."
|
|
58790
58781
|
};
|
|
58791
|
-
if (
|
|
58782
|
+
if (!facts.updateAvailable) return {
|
|
58792
58783
|
ok: false,
|
|
58793
|
-
reason: "
|
|
58794
|
-
message:
|
|
58784
|
+
reason: "no-update-available",
|
|
58785
|
+
message: "No release is available to install. Check for updates again."
|
|
58795
58786
|
};
|
|
58796
58787
|
return decideRunPreflight(facts);
|
|
58797
58788
|
}
|
|
@@ -58908,34 +58899,13 @@ function decideNpmGlobalLayout(packageRoot) {
|
|
|
58908
58899
|
const segments = packageRoot.replace(/\/+$/, "").split("/");
|
|
58909
58900
|
const [libName, nodeModulesName, packageName] = segments.slice(-3);
|
|
58910
58901
|
if (packageName !== NPM_PACKAGE_FOLDER_NAME || nodeModulesName !== "node_modules" || libName !== "lib") return null;
|
|
58911
|
-
const
|
|
58912
|
-
|
|
58913
|
-
|
|
58914
|
-
return {
|
|
58915
|
-
installFolder,
|
|
58916
|
-
livePackagePath: segments.join("/"),
|
|
58917
|
-
updatePath,
|
|
58918
|
-
stagePrefix,
|
|
58919
|
-
stagedPackagePath: `${stagePrefix}/lib/node_modules/${NPM_PACKAGE_FOLDER_NAME}`,
|
|
58902
|
+
const updatePath = `${segments.slice(0, -1).join("/")}/${NPM_GLOBAL_UPDATE_FOLDER_NAME}`;
|
|
58903
|
+
return {
|
|
58904
|
+
stagePrefix: `${updatePath}/stage`,
|
|
58920
58905
|
previousPackagePath: `${updatePath}/previous`,
|
|
58921
58906
|
quarantinedPackagePath: `${updatePath}/broken`
|
|
58922
58907
|
};
|
|
58923
58908
|
}
|
|
58924
|
-
function planNpmGlobalHandOffRenames(layout) {
|
|
58925
|
-
const renames = [{
|
|
58926
|
-
from: layout.livePackagePath,
|
|
58927
|
-
to: layout.previousPackagePath,
|
|
58928
|
-
artifact: "package"
|
|
58929
|
-
}, {
|
|
58930
|
-
from: layout.stagedPackagePath,
|
|
58931
|
-
to: layout.livePackagePath,
|
|
58932
|
-
artifact: "package"
|
|
58933
|
-
}];
|
|
58934
|
-
return {
|
|
58935
|
-
renames,
|
|
58936
|
-
reversalsByFailureIndex: reversalsFor(renames)
|
|
58937
|
-
};
|
|
58938
|
-
}
|
|
58939
58909
|
function reversalsFor(renames) {
|
|
58940
58910
|
return renames.map((_, failureIndex) => renames.slice(0, failureIndex).reverse().map(({ from, to, artifact }) => ({
|
|
58941
58911
|
from: to,
|
|
@@ -59063,19 +59033,18 @@ function markInterrupted(journal, { reason, now }) {
|
|
|
59063
59033
|
}));
|
|
59064
59034
|
}
|
|
59065
59035
|
// server/update-check.ts
|
|
59066
|
-
var
|
|
59067
|
-
var
|
|
59068
|
-
|
|
59069
|
-
var REGISTRY_REQUEST_HEADERS = {
|
|
59070
|
-
Accept: "application/json",
|
|
59036
|
+
var LATEST_RELEASE_URL = `https://api.github.com/repos/${REPO_SLUG}/releases/latest`;
|
|
59037
|
+
var RELEASE_REQUEST_HEADERS = {
|
|
59038
|
+
Accept: "application/vnd.github+json",
|
|
59071
59039
|
"User-Agent": "glimmervoid-update-check"
|
|
59072
59040
|
};
|
|
59073
59041
|
var DEFAULT_TIMEOUT_MS = 8e3;
|
|
59074
59042
|
var GIT_HEAD_TIMEOUT_MS = 3e3;
|
|
59075
59043
|
var RELEASE_ANCESTRY_TIMEOUT_MS = 3e3;
|
|
59044
|
+
var RELEASE_TAG_LOOKUP_TIMEOUT_MS = 5e3;
|
|
59076
59045
|
var STATE_FILE_NAME = "update-check.json";
|
|
59077
59046
|
var STATE_TTL_MS = 216e5;
|
|
59078
|
-
var RELEASE_SOURCE = "
|
|
59047
|
+
var RELEASE_SOURCE = "github-latest-release";
|
|
59079
59048
|
function defaultStatePath() {
|
|
59080
59049
|
return path.join(glimmervoidHomeDir(), STATE_FILE_NAME);
|
|
59081
59050
|
}
|
|
@@ -59192,11 +59161,11 @@ async function resolveInstalledIdentity({ packageRoot, runCommand, signal }) {
|
|
|
59192
59161
|
isTreeClean: null
|
|
59193
59162
|
};
|
|
59194
59163
|
}
|
|
59195
|
-
async function
|
|
59164
|
+
async function fetchLatestRelease(fetchFn, signal) {
|
|
59196
59165
|
try {
|
|
59197
|
-
const response = await fetchFn(
|
|
59166
|
+
const response = await fetchFn(LATEST_RELEASE_URL, {
|
|
59198
59167
|
signal,
|
|
59199
|
-
headers:
|
|
59168
|
+
headers: RELEASE_REQUEST_HEADERS
|
|
59200
59169
|
});
|
|
59201
59170
|
if (!response?.ok) return null;
|
|
59202
59171
|
return await response.json();
|
|
@@ -59204,30 +59173,38 @@ async function fetchRegistryDocument(url, fetchFn, signal) {
|
|
|
59204
59173
|
return null;
|
|
59205
59174
|
}
|
|
59206
59175
|
}
|
|
59207
|
-
async function
|
|
59208
|
-
|
|
59209
|
-
|
|
59210
|
-
|
|
59176
|
+
async function resolveReleaseTagSha(version, { packageRoot, runCommand, signal }) {
|
|
59177
|
+
const listing = await runGitProbe(runCommand, [
|
|
59178
|
+
"ls-remote",
|
|
59179
|
+
"--tags",
|
|
59180
|
+
"origin",
|
|
59181
|
+
`v${version}`,
|
|
59182
|
+
`v${version}^{}`
|
|
59183
|
+
], {
|
|
59184
|
+
cwd: packageRoot,
|
|
59185
|
+
timeout: RELEASE_TAG_LOOKUP_TIMEOUT_MS,
|
|
59186
|
+
signal
|
|
59187
|
+
});
|
|
59188
|
+
if (!listing.ok) return null;
|
|
59189
|
+
return parseRemoteTagSha(listing.out, version);
|
|
59211
59190
|
}
|
|
59212
|
-
async function
|
|
59213
|
-
const
|
|
59214
|
-
|
|
59215
|
-
updateChannel === "experimental" ? fetchRegistryDocument(NPM_REGISTRY_EXPERIMENTAL_URL, fetchFn, signal) : null,
|
|
59216
|
-
resolveInstalledDeprecation({
|
|
59217
|
-
currentVersion,
|
|
59218
|
-
fetchFn,
|
|
59219
|
-
signal
|
|
59220
|
-
})
|
|
59221
|
-
]);
|
|
59222
|
-
const published = pickNewestPublished(parseRegistryLatest(latestDocument), parseRegistryLatest(experimentalDocument));
|
|
59223
|
-
if (!published) return {
|
|
59191
|
+
async function resolveLatestRelease({ currentVersion, isClone, packageRoot, runCommand, fetchFn, signal }) {
|
|
59192
|
+
const release = parseLatestRelease(await fetchLatestRelease(fetchFn, signal));
|
|
59193
|
+
if (!release) return {
|
|
59224
59194
|
version: null,
|
|
59225
59195
|
sha: null,
|
|
59226
59196
|
reason: "release-check-failed",
|
|
59227
|
-
deprecation
|
|
59197
|
+
deprecation: null
|
|
59228
59198
|
};
|
|
59199
|
+
const deprecation = release.hasSecurityFix && compareReleaseVersions(release.version, currentVersion ?? null) > 0 ? `Glimmervoid ${release.version} fixes a security issue.` : null;
|
|
59200
|
+
const sha = isClone ? await resolveReleaseTagSha(release.version, {
|
|
59201
|
+
packageRoot,
|
|
59202
|
+
runCommand,
|
|
59203
|
+
signal
|
|
59204
|
+
}) : null;
|
|
59229
59205
|
return {
|
|
59230
|
-
|
|
59206
|
+
version: release.version,
|
|
59207
|
+
sha,
|
|
59231
59208
|
reason: null,
|
|
59232
59209
|
deprecation
|
|
59233
59210
|
};
|
|
@@ -59300,9 +59277,11 @@ async function checkForUpdate({ currentVersion, updateChannel = "release", fetch
|
|
|
59300
59277
|
const isCacheFromSameSource = cached?.releaseSource === RELEASE_SOURCE;
|
|
59301
59278
|
if (cached?.channel === updateChannel && isCacheFromSameSource && !cacheOutrunByInstall && isCheckFresh(cached.lastCheckAt, now, ttlMs)) return finish(installed, targetFromCache(cached, currentVersion), currentVersion, updateChannel, now, packageRoot$1, runCommand, signal);
|
|
59302
59279
|
signal.throwIfAborted();
|
|
59303
|
-
const latestTarget = await
|
|
59280
|
+
const latestTarget = await resolveLatestRelease({
|
|
59304
59281
|
currentVersion,
|
|
59305
|
-
|
|
59282
|
+
isClone: installed.flavor === "clone",
|
|
59283
|
+
packageRoot: packageRoot$1,
|
|
59284
|
+
runCommand,
|
|
59306
59285
|
fetchFn,
|
|
59307
59286
|
signal
|
|
59308
59287
|
});
|
|
@@ -59378,7 +59357,7 @@ function createBackendUpdateCheck(dependencies) {
|
|
|
59378
59357
|
targetSha: recorded.latestSha,
|
|
59379
59358
|
journalState: journal?.state || "idle",
|
|
59380
59359
|
restartRequested: dependencies.isRestartRequested?.() === true,
|
|
59381
|
-
|
|
59360
|
+
isSupervised: dependencies.isSupervised?.() === true,
|
|
59382
59361
|
binaryUpdaterPath: dependencies.getBinaryUpdaterPath?.() ?? null,
|
|
59383
59362
|
targetVersion: recorded.latest
|
|
59384
59363
|
});
|
|
@@ -59457,7 +59436,7 @@ function createBackendUpdateCheck(dependencies) {
|
|
|
59457
59436
|
function downloadInBackground(status) {
|
|
59458
59437
|
const downloadUpdate = dependencies.downloadUpdate;
|
|
59459
59438
|
if (!downloadUpdate || dependencies.config.checkForUpdates === false) return;
|
|
59460
|
-
if (!status.updateAvailable || status.applyRefusal) return;
|
|
59439
|
+
if (!status.updateAvailable || status.applyRefusal || isBinarySwitchFlavor(status.flavor)) return;
|
|
59461
59440
|
const identity = status.latestSha || status.latest;
|
|
59462
59441
|
if (!identity || identity === lastDownloadedIdentity) return;
|
|
59463
59442
|
lastDownloadedIdentity = identity;
|
|
@@ -61832,14 +61811,13 @@ function createOutcomesLane({ logger = console, setIntervalFn = DEFAULT_TIMER_FN
|
|
|
61832
61811
|
};
|
|
61833
61812
|
}
|
|
61834
61813
|
// server/update-apply.ts
|
|
61814
|
+
var RETIRED_UPDATE_CHANNELS = /* @__PURE__ */ new Set(["experimental", "main"]);
|
|
61835
61815
|
var FETCH_TIMEOUT_MS = 6e4;
|
|
61836
61816
|
var HANDOFF_QUEUE_ADMISSION_TIMEOUT_MS = 3e4;
|
|
61837
61817
|
var MERGE_COMMAND_TIMEOUT_MS = 3e4;
|
|
61838
61818
|
var INSTALL_TIMEOUT_MS = 9e5;
|
|
61839
61819
|
var BUILD_TIMEOUT_MS = 6e5;
|
|
61840
61820
|
var VERIFY_TIMEOUT_MS = 6e4;
|
|
61841
|
-
var SUCCESSOR_LISTEN_TIMEOUT_MS = 3e4;
|
|
61842
|
-
var SUCCESSOR_POLL_INTERVAL_MS = 500;
|
|
61843
61821
|
var COMMAND_MAX_BUFFER = 16777216;
|
|
61844
61822
|
var RESTORE_MARKER_NAME = "restore.json";
|
|
61845
61823
|
var RELEASE_VERSION_LINE = /^\d+\.\d+\.\d+(?:-[0-9A-Za-z.]+)?$/;
|
|
@@ -61871,8 +61849,6 @@ function createUpdateApplyLane(dependencies) {
|
|
|
61871
61849
|
const updatePath = path.join(dependencies.packageRoot, ".glimmervoid", "update");
|
|
61872
61850
|
const stagingPath = path.join(updatePath, "next");
|
|
61873
61851
|
const npmGlobalLayout = decideNpmGlobalLayout(dependencies.packageRoot);
|
|
61874
|
-
const nodePath = dependencies.nodePath || stableLauncherPathFor("node");
|
|
61875
|
-
const npmPath = path.join(path.dirname(nodePath), "npm");
|
|
61876
61852
|
const standaloneExecutablePath = dependencies.standaloneExecutablePath === void 0 ? standaloneExecutableRealpath() : dependencies.standaloneExecutablePath;
|
|
61877
61853
|
let knownBinaryUpdaterPath = standaloneExecutablePath ? executableUpdaterOrNull(standaloneExecutablePath) : null;
|
|
61878
61854
|
function binaryUpdaterPathBeside(executablePath) {
|
|
@@ -61888,8 +61864,6 @@ function createUpdateApplyLane(dependencies) {
|
|
|
61888
61864
|
return null;
|
|
61889
61865
|
}
|
|
61890
61866
|
}
|
|
61891
|
-
let isInstallWritable = null;
|
|
61892
|
-
let hasSwappedNpmGlobalPackage = false;
|
|
61893
61867
|
let journal = idleJournal(dependencies.getUpdateChannel());
|
|
61894
61868
|
let stagedDescriptor = null;
|
|
61895
61869
|
let inFlight = false;
|
|
@@ -61910,22 +61884,8 @@ function createUpdateApplyLane(dependencies) {
|
|
|
61910
61884
|
function getJournal() {
|
|
61911
61885
|
return structuredClone(journal);
|
|
61912
61886
|
}
|
|
61913
|
-
function
|
|
61914
|
-
|
|
61915
|
-
return {
|
|
61916
|
-
installFolder: npmGlobalLayout.installFolder,
|
|
61917
|
-
isWritable: isInstallWritable
|
|
61918
|
-
};
|
|
61919
|
-
}
|
|
61920
|
-
async function refreshInstallWritability() {
|
|
61921
|
-
if (!npmGlobalLayout) return;
|
|
61922
|
-
try {
|
|
61923
|
-
await fsPromises.access(npmGlobalLayout.installFolder, fs.constants.W_OK);
|
|
61924
|
-
await fsPromises.access(npmGlobalLayout.livePackagePath, fs.constants.W_OK);
|
|
61925
|
-
isInstallWritable = true;
|
|
61926
|
-
} catch {
|
|
61927
|
-
isInstallWritable = false;
|
|
61928
|
-
}
|
|
61887
|
+
function isSupervised() {
|
|
61888
|
+
return decideRestartStrategy(dependencies.env ?? process.env) === "exit-for-supervisor";
|
|
61929
61889
|
}
|
|
61930
61890
|
async function publish(nextJournal, failOnWrite = true) {
|
|
61931
61891
|
journal = nextJournal;
|
|
@@ -62068,7 +62028,7 @@ function createUpdateApplyLane(dependencies) {
|
|
|
62068
62028
|
if (!status) return refusal("missing-update-status", "Check for updates before applying one.");
|
|
62069
62029
|
if (journal.state === "staged" || stagedDescriptor?.state === "staged") return refusal("already-staged", "Restart to apply the staged update.");
|
|
62070
62030
|
if (restartRequested) return refusal("restart-requested", "Wait for the requested restart to finish.");
|
|
62071
|
-
if (status.flavor
|
|
62031
|
+
if (isBinarySwitchFlavor(status.flavor)) return installStandaloneBinary(status, channel);
|
|
62072
62032
|
if (standaloneExecutablePath) return stageBinaryUpdate(status, channel, standaloneExecutablePath);
|
|
62073
62033
|
const tree = await dependencies.gitWorkspace.probeWorktreeDirty({
|
|
62074
62034
|
projectPath: dependencies.packageRoot,
|
|
@@ -62174,11 +62134,42 @@ function createUpdateApplyLane(dependencies) {
|
|
|
62174
62134
|
activeRun = run;
|
|
62175
62135
|
return run;
|
|
62176
62136
|
}
|
|
62177
|
-
async function
|
|
62178
|
-
await
|
|
62137
|
+
async function downloadInstaller(url, installerPath) {
|
|
62138
|
+
const response = await (dependencies.fetchFn ?? fetch)(url, { signal: AbortSignal.timeout(FETCH_TIMEOUT_MS) });
|
|
62139
|
+
if (!response.ok) throw new Error(`installer-download-failed: ${url} answered HTTP ${response.status}`);
|
|
62140
|
+
await fsPromises.writeFile(installerPath, await response.text(), { mode: 448 });
|
|
62141
|
+
}
|
|
62142
|
+
async function runInstaller(targetVersion, platform) {
|
|
62143
|
+
const installerFolder = await fsPromises.mkdtemp(path.join(os.tmpdir(), "glimmervoid-installer-"));
|
|
62144
|
+
try {
|
|
62145
|
+
const installerPath = path.join(installerFolder, installerFileName(platform));
|
|
62146
|
+
await downloadInstaller(installerUrl(targetVersion, platform), installerPath);
|
|
62147
|
+
const installer = platform === "win32" ? {
|
|
62148
|
+
file: "powershell",
|
|
62149
|
+
args: [
|
|
62150
|
+
"-NoProfile",
|
|
62151
|
+
"-ExecutionPolicy",
|
|
62152
|
+
"Bypass",
|
|
62153
|
+
"-File",
|
|
62154
|
+
installerPath
|
|
62155
|
+
]
|
|
62156
|
+
} : {
|
|
62157
|
+
file: "sh",
|
|
62158
|
+
args: [installerPath]
|
|
62159
|
+
};
|
|
62160
|
+
await runInstallCommand(installer.file, installer.args, installerFolder, INSTALL_TIMEOUT_MS);
|
|
62161
|
+
} finally {
|
|
62162
|
+
await fsPromises.rm(installerFolder, {
|
|
62163
|
+
recursive: true,
|
|
62164
|
+
force: true
|
|
62165
|
+
});
|
|
62166
|
+
}
|
|
62167
|
+
}
|
|
62168
|
+
async function installStandaloneBinary(status, channel) {
|
|
62169
|
+
const platform = dependencies.platform || process.platform;
|
|
62179
62170
|
const decision = decidePreflight({
|
|
62180
62171
|
flavor: status.flavor,
|
|
62181
|
-
platform
|
|
62172
|
+
platform,
|
|
62182
62173
|
statusChannel: status.channel,
|
|
62183
62174
|
configuredChannel: channel,
|
|
62184
62175
|
updateAvailable: status.updateAvailable,
|
|
@@ -62191,50 +62182,42 @@ function createUpdateApplyLane(dependencies) {
|
|
|
62191
62182
|
targetSha: null,
|
|
62192
62183
|
journalState: journal.state,
|
|
62193
62184
|
restartRequested,
|
|
62194
|
-
|
|
62185
|
+
isSupervised: isSupervised()
|
|
62195
62186
|
});
|
|
62196
62187
|
if (!decision.ok) return refusal(decision.reason, decision.message);
|
|
62197
|
-
if (!
|
|
62198
|
-
const layout = npmGlobalLayout;
|
|
62188
|
+
if (!status.latest) return refusal("missing-target-version", "The target version is unknown. Check for updates again.");
|
|
62199
62189
|
const targetVersion = status.latest;
|
|
62200
62190
|
try {
|
|
62201
62191
|
await publish(beginRun(journal, {
|
|
62202
62192
|
stepIds: ["install"],
|
|
62203
62193
|
fromSha: status.currentSha,
|
|
62204
|
-
toSha:
|
|
62194
|
+
toSha: null,
|
|
62205
62195
|
toVersion: targetVersion,
|
|
62206
62196
|
channel,
|
|
62207
62197
|
now: clock()
|
|
62208
62198
|
}));
|
|
62209
|
-
await fsPromises.rm(layout.stagePrefix, {
|
|
62210
|
-
recursive: true,
|
|
62211
|
-
force: true
|
|
62212
|
-
});
|
|
62213
|
-
await fsPromises.mkdir(layout.stagePrefix, { recursive: true });
|
|
62214
62199
|
await publish(beginStep(journal, {
|
|
62215
62200
|
stepId: "install",
|
|
62216
62201
|
now: clock()
|
|
62217
62202
|
}));
|
|
62218
|
-
await
|
|
62219
|
-
await verifyStagedPackage(layout, targetVersion);
|
|
62203
|
+
await runInstaller(targetVersion, platform);
|
|
62220
62204
|
await publish(finishStep(journal, {
|
|
62221
62205
|
stepId: "install",
|
|
62222
62206
|
now: clock()
|
|
62223
62207
|
}));
|
|
62224
|
-
await publish(
|
|
62225
|
-
|
|
62226
|
-
state: "staged",
|
|
62227
|
-
kind: "npm-global",
|
|
62228
|
-
layout
|
|
62229
|
-
};
|
|
62230
|
-
dependencies.logger.log(`[update] staged glimmervoid@${targetVersion} in ${layout.stagedPackagePath}`);
|
|
62208
|
+
await publish(markSucceeded(journal, { now: clock() }));
|
|
62209
|
+
dependencies.logger.log(`[update] installed the standalone ${targetVersion} binary at ${STANDALONE_BINARY_PATH}`);
|
|
62231
62210
|
return {
|
|
62232
62211
|
ok: true,
|
|
62233
62212
|
reason: null,
|
|
62234
|
-
message:
|
|
62213
|
+
message: `Installed at ${STANDALONE_BINARY_PATH}.`
|
|
62235
62214
|
};
|
|
62236
62215
|
} catch (error) {
|
|
62237
|
-
|
|
62216
|
+
await publish(failRun(journal, {
|
|
62217
|
+
reason: errorText(error),
|
|
62218
|
+
now: clock()
|
|
62219
|
+
}), false);
|
|
62220
|
+
return refusal(errorText(error), errorText(error));
|
|
62238
62221
|
}
|
|
62239
62222
|
}
|
|
62240
62223
|
async function findBinaryUpdater(executablePath) {
|
|
@@ -62321,44 +62304,6 @@ function createUpdateApplyLane(dependencies) {
|
|
|
62321
62304
|
if (!outcome.ok) throw new Error(outcome.reason || `${path.basename(file)} failed`);
|
|
62322
62305
|
return outcome.output;
|
|
62323
62306
|
}
|
|
62324
|
-
async function runNpmGlobalInstall(layout, targetVersion) {
|
|
62325
|
-
const platform = dependencies.platform || process.platform;
|
|
62326
|
-
const installArgs = [
|
|
62327
|
-
"install",
|
|
62328
|
-
"--global",
|
|
62329
|
-
"--prefix",
|
|
62330
|
-
layout.stagePrefix,
|
|
62331
|
-
"--no-audit",
|
|
62332
|
-
"--no-fund",
|
|
62333
|
-
"--prefer-online",
|
|
62334
|
-
`glimmervoid@${targetVersion}`,
|
|
62335
|
-
NATIVE_INSTALL_SCRIPTS_FLAG
|
|
62336
|
-
];
|
|
62337
|
-
const throttled = lowPriorityCommand({
|
|
62338
|
-
file: npmPath,
|
|
62339
|
-
args: installArgs,
|
|
62340
|
-
platform
|
|
62341
|
-
});
|
|
62342
|
-
await runInstallCommand(throttled.file, throttled.args, layout.updatePath, INSTALL_TIMEOUT_MS);
|
|
62343
|
-
}
|
|
62344
|
-
async function verifyStagedPackage(layout, targetVersion) {
|
|
62345
|
-
const stagedBin = path.join(layout.stagedPackagePath, "dist", "bin", "glimmervoid.js");
|
|
62346
|
-
const printedVersion = (await runInstallCommand(nodePath, [stagedBin, "--version"], layout.updatePath, VERIFY_TIMEOUT_MS)).trim();
|
|
62347
|
-
if (printedVersion !== targetVersion) throw new Error(`staged-version-mismatch: expected ${targetVersion}, the staged build printed ${printedVersion || "nothing"}`);
|
|
62348
|
-
await runInstallCommand(nodePath, [stagedBin, "doctor"], layout.updatePath, VERIFY_TIMEOUT_MS);
|
|
62349
|
-
}
|
|
62350
|
-
async function failAndCleanNpmGlobal(layout, reason) {
|
|
62351
|
-
stagedDescriptor = null;
|
|
62352
|
-
await fsPromises.rm(layout.stagePrefix, {
|
|
62353
|
-
recursive: true,
|
|
62354
|
-
force: true
|
|
62355
|
-
});
|
|
62356
|
-
await publish(failRun(journal, {
|
|
62357
|
-
reason,
|
|
62358
|
-
now: clock()
|
|
62359
|
-
}), false);
|
|
62360
|
-
return refusal(reason, reason);
|
|
62361
|
-
}
|
|
62362
62307
|
async function writeRestoreMarker(failedReversals) {
|
|
62363
62308
|
const restore = failedReversals.map((operation) => ({
|
|
62364
62309
|
from: operation.artifact === "node_modules" ? PREVIOUS_DEPENDENCIES_BACKUP_NAME : PREVIOUS_DIST_BACKUP_NAME,
|
|
@@ -62411,121 +62356,6 @@ function createUpdateApplyLane(dependencies) {
|
|
|
62411
62356
|
atHandOff: true
|
|
62412
62357
|
}), false);
|
|
62413
62358
|
}
|
|
62414
|
-
async function performNpmGlobalHandOff(descriptor) {
|
|
62415
|
-
const plan = planNpmGlobalHandOffRenames(descriptor.layout);
|
|
62416
|
-
try {
|
|
62417
|
-
await fsPromises.rm(descriptor.layout.previousPackagePath, {
|
|
62418
|
-
recursive: true,
|
|
62419
|
-
force: true
|
|
62420
|
-
});
|
|
62421
|
-
for (let renameIndex = 0; renameIndex < plan.renames.length; renameIndex += 1) {
|
|
62422
|
-
const rename = plan.renames[renameIndex];
|
|
62423
|
-
try {
|
|
62424
|
-
await fsPromises.rename(rename.from, rename.to);
|
|
62425
|
-
} catch (error) {
|
|
62426
|
-
const failedReversals = await reverseRenames(plan.reversalsByFailureIndex[renameIndex] || []);
|
|
62427
|
-
const reversalNote = failedReversals.length === 0 ? "" : `; could not move ${failedReversals.map((reversal) => reversal.from).join(", ")} back`;
|
|
62428
|
-
await publish(failRun(journal, {
|
|
62429
|
-
reason: `handoff-rename-failed: ${errorText(error)}${reversalNote}`,
|
|
62430
|
-
now: clock(),
|
|
62431
|
-
atHandOff: true
|
|
62432
|
-
}), false);
|
|
62433
|
-
return;
|
|
62434
|
-
}
|
|
62435
|
-
}
|
|
62436
|
-
hasSwappedNpmGlobalPackage = true;
|
|
62437
|
-
await publish(markSucceeded(journal, { now: clock() }), false);
|
|
62438
|
-
stagedDescriptor = null;
|
|
62439
|
-
} catch (error) {
|
|
62440
|
-
await publish(failRun(journal, {
|
|
62441
|
-
reason: errorText(error),
|
|
62442
|
-
now: clock(),
|
|
62443
|
-
atHandOff: true
|
|
62444
|
-
}), false);
|
|
62445
|
-
}
|
|
62446
|
-
}
|
|
62447
|
-
async function isPathPresent(candidatePath) {
|
|
62448
|
-
try {
|
|
62449
|
-
await fsPromises.access(candidatePath);
|
|
62450
|
-
return true;
|
|
62451
|
-
} catch {
|
|
62452
|
-
return false;
|
|
62453
|
-
}
|
|
62454
|
-
}
|
|
62455
|
-
function awaitSuccessorFate(successor, previousPackagePath) {
|
|
62456
|
-
return new Promise((resolve) => {
|
|
62457
|
-
const deadline = clock() + SUCCESSOR_LISTEN_TIMEOUT_MS;
|
|
62458
|
-
let pollTimer = null;
|
|
62459
|
-
let isSettled = false;
|
|
62460
|
-
const settle = (fate) => {
|
|
62461
|
-
if (isSettled) return;
|
|
62462
|
-
isSettled = true;
|
|
62463
|
-
if (pollTimer) clearTimeout(pollTimer);
|
|
62464
|
-
resolve(fate);
|
|
62465
|
-
};
|
|
62466
|
-
successor.once("exit", () => settle("exited"));
|
|
62467
|
-
const poll = async () => {
|
|
62468
|
-
if (isSettled) return;
|
|
62469
|
-
if (!await isPathPresent(previousPackagePath)) {
|
|
62470
|
-
settle("listening");
|
|
62471
|
-
return;
|
|
62472
|
-
}
|
|
62473
|
-
if (clock() >= deadline) {
|
|
62474
|
-
settle("still-starting");
|
|
62475
|
-
return;
|
|
62476
|
-
}
|
|
62477
|
-
pollTimer = setTimeout(() => {
|
|
62478
|
-
poll();
|
|
62479
|
-
}, SUCCESSOR_POLL_INTERVAL_MS);
|
|
62480
|
-
};
|
|
62481
|
-
poll();
|
|
62482
|
-
});
|
|
62483
|
-
}
|
|
62484
|
-
async function restorePreviousPackage(layout) {
|
|
62485
|
-
try {
|
|
62486
|
-
await fsPromises.rm(layout.quarantinedPackagePath, {
|
|
62487
|
-
recursive: true,
|
|
62488
|
-
force: true
|
|
62489
|
-
});
|
|
62490
|
-
await fsPromises.rename(layout.livePackagePath, layout.quarantinedPackagePath);
|
|
62491
|
-
} catch (error) {
|
|
62492
|
-
return errorText(error);
|
|
62493
|
-
}
|
|
62494
|
-
try {
|
|
62495
|
-
await fsPromises.rename(layout.previousPackagePath, layout.livePackagePath);
|
|
62496
|
-
return null;
|
|
62497
|
-
} catch (restoreError) {
|
|
62498
|
-
try {
|
|
62499
|
-
await fsPromises.rename(layout.quarantinedPackagePath, layout.livePackagePath);
|
|
62500
|
-
return errorText(restoreError);
|
|
62501
|
-
} catch (unquarantineError) {
|
|
62502
|
-
return `${errorText(restoreError)}; moving the new version back also failed: ${errorText(unquarantineError)}`;
|
|
62503
|
-
}
|
|
62504
|
-
}
|
|
62505
|
-
}
|
|
62506
|
-
async function superviseSuccessor(successor) {
|
|
62507
|
-
if (!npmGlobalLayout || !hasSwappedNpmGlobalPackage) return false;
|
|
62508
|
-
if (await awaitSuccessorFate(successor, npmGlobalLayout.previousPackagePath) !== "exited") return false;
|
|
62509
|
-
if (!await isPathPresent(npmGlobalLayout.previousPackagePath)) return false;
|
|
62510
|
-
const failedVersion = journal.toVersion || "the new version";
|
|
62511
|
-
const rollbackFailure = await restorePreviousPackage(npmGlobalLayout);
|
|
62512
|
-
if (rollbackFailure) {
|
|
62513
|
-
await publish(failRun(journal, {
|
|
62514
|
-
reason: `${failedVersion} exited before listening and the rollback failed: ${rollbackFailure}`,
|
|
62515
|
-
now: clock(),
|
|
62516
|
-
atHandOff: true
|
|
62517
|
-
}), false);
|
|
62518
|
-
return false;
|
|
62519
|
-
}
|
|
62520
|
-
hasSwappedNpmGlobalPackage = false;
|
|
62521
|
-
dependencies.logger.warn(`[update] ${failedVersion} exited before listening; restored the previous version`);
|
|
62522
|
-
await publish(failRun(journal, {
|
|
62523
|
-
reason: `${failedVersion} exited before listening, so the previous version was restored`,
|
|
62524
|
-
now: clock(),
|
|
62525
|
-
atHandOff: true
|
|
62526
|
-
}), false);
|
|
62527
|
-
return true;
|
|
62528
|
-
}
|
|
62529
62359
|
async function rebuildStagingAt(descriptor, headSha) {
|
|
62530
62360
|
if (await hasLockfileChanged(descriptor.fromSha, headSha)) return "handoff-preflight-failed";
|
|
62531
62361
|
const checkout = await gitCommand([
|
|
@@ -62641,10 +62471,7 @@ function createUpdateApplyLane(dependencies) {
|
|
|
62641
62471
|
await handOffBinaryUpdate(descriptor);
|
|
62642
62472
|
return;
|
|
62643
62473
|
}
|
|
62644
|
-
if (npmGlobalLayout)
|
|
62645
|
-
await handOffNpmGlobalUpdate(npmGlobalLayout, descriptor);
|
|
62646
|
-
return;
|
|
62647
|
-
}
|
|
62474
|
+
if (npmGlobalLayout) return;
|
|
62648
62475
|
if (descriptor?.kind !== "clone" || inFlight) {
|
|
62649
62476
|
await dependencies.gitWorkspace.removeWorktreeByPath({
|
|
62650
62477
|
projectPath: dependencies.packageRoot,
|
|
@@ -62666,21 +62493,6 @@ function createUpdateApplyLane(dependencies) {
|
|
|
62666
62493
|
stagedDescriptor = null;
|
|
62667
62494
|
await publish(markSucceeded(journal, { now: clock() }), false);
|
|
62668
62495
|
}
|
|
62669
|
-
async function handOffNpmGlobalUpdate(layout, descriptor) {
|
|
62670
|
-
if (descriptor?.kind !== "npm-global" || inFlight) {
|
|
62671
|
-
await fsPromises.rm(layout.stagePrefix, {
|
|
62672
|
-
recursive: true,
|
|
62673
|
-
force: true
|
|
62674
|
-
});
|
|
62675
|
-
return;
|
|
62676
|
-
}
|
|
62677
|
-
inFlight = true;
|
|
62678
|
-
const run = performNpmGlobalHandOff(descriptor).finally(() => {
|
|
62679
|
-
inFlight = false;
|
|
62680
|
-
});
|
|
62681
|
-
activeRun = run;
|
|
62682
|
-
await run;
|
|
62683
|
-
}
|
|
62684
62496
|
function isRestartRequested() {
|
|
62685
62497
|
return restartRequested;
|
|
62686
62498
|
}
|
|
@@ -62690,6 +62502,10 @@ function createUpdateApplyLane(dependencies) {
|
|
|
62690
62502
|
async function readPersistedJournal() {
|
|
62691
62503
|
try {
|
|
62692
62504
|
const parsedJson = JSON.parse(await fsPromises.readFile(dependencies.journalPath, "utf8"));
|
|
62505
|
+
if (isRecord$2(parsedJson) && RETIRED_UPDATE_CHANNELS.has(String(parsedJson.channel))) {
|
|
62506
|
+
parsedJson.channel = "release";
|
|
62507
|
+
await writeJsonAtomic(dependencies.journalPath, parsedJson, { fsPromises });
|
|
62508
|
+
}
|
|
62693
62509
|
const parsed = UpdateJournal.safeParse(parsedJson);
|
|
62694
62510
|
if (parsed.success) return {
|
|
62695
62511
|
journal: parsed.data,
|
|
@@ -62808,14 +62624,12 @@ function createUpdateApplyLane(dependencies) {
|
|
|
62808
62624
|
}
|
|
62809
62625
|
return whenIdle();
|
|
62810
62626
|
}
|
|
62811
|
-
refreshInstallWritability();
|
|
62812
62627
|
return {
|
|
62813
62628
|
applyUpdate,
|
|
62814
62629
|
getJournal,
|
|
62815
|
-
|
|
62630
|
+
isSupervised,
|
|
62816
62631
|
getBinaryUpdaterPath,
|
|
62817
62632
|
handOffStagedUpdate,
|
|
62818
|
-
superviseSuccessor,
|
|
62819
62633
|
isRestartRequested,
|
|
62820
62634
|
noteRestartRequested,
|
|
62821
62635
|
startAfterListening,
|
|
@@ -65362,6 +65176,11 @@ function createBackend(httpServer, options = {}) {
|
|
|
65362
65176
|
const { config } = configStore;
|
|
65363
65177
|
applyCustomAgents(config);
|
|
65364
65178
|
const port = process.env.GLIMMERVOID_PORT ? Number.parseInt(process.env.GLIMMERVOID_PORT, 10) : config.port || 3e3;
|
|
65179
|
+
const boundDashboardPort = () => {
|
|
65180
|
+
const address = httpServer.address();
|
|
65181
|
+
if (address === null || typeof address === "string") return port;
|
|
65182
|
+
return address.port;
|
|
65183
|
+
};
|
|
65365
65184
|
const { remote, bindDecision, remoteListenerPort, pageToken, allowedHosts, remoteAuth, tokenMatches, listenerPortsFor } = createBackendTrust({
|
|
65366
65185
|
localPort: port,
|
|
65367
65186
|
remoteConfig: config.remote,
|
|
@@ -65563,7 +65382,7 @@ function createBackend(httpServer, options = {}) {
|
|
|
65563
65382
|
closeSessionDataClients,
|
|
65564
65383
|
hookRouter,
|
|
65565
65384
|
getHookPort,
|
|
65566
|
-
dashboardPort:
|
|
65385
|
+
dashboardPort: boundDashboardPort,
|
|
65567
65386
|
broadcastControl,
|
|
65568
65387
|
onControlConnection,
|
|
65569
65388
|
viewerControlClientCount,
|
|
@@ -65786,7 +65605,7 @@ function createBackend(httpServer, options = {}) {
|
|
|
65786
65605
|
checkForUpdate: options.checkForUpdate || void 0,
|
|
65787
65606
|
getUpdateJournal: () => updateApply.getJournal(),
|
|
65788
65607
|
isRestartRequested: () => updateApply.isRestartRequested(),
|
|
65789
|
-
|
|
65608
|
+
isSupervised: () => updateApply.isSupervised(),
|
|
65790
65609
|
getBinaryUpdaterPath: () => updateApply.getBinaryUpdaterPath(),
|
|
65791
65610
|
getControlClientCount: viewerControlClientCount,
|
|
65792
65611
|
broadcastControl,
|
|
@@ -65923,8 +65742,7 @@ function createBackend(httpServer, options = {}) {
|
|
|
65923
65742
|
onRestart: options.onRestart || null,
|
|
65924
65743
|
exit: options.exit,
|
|
65925
65744
|
spawn,
|
|
65926
|
-
beforeHandOff: updateApply.handOffStagedUpdate
|
|
65927
|
-
superviseSuccessor: updateApply.superviseSuccessor
|
|
65745
|
+
beforeHandOff: updateApply.handOffStagedUpdate
|
|
65928
65746
|
});
|
|
65929
65747
|
({removeExitedSession} = createBackendControl({
|
|
65930
65748
|
onControlConnection,
|