glimmervoid 0.48.4-next.346 → 0.48.4-next.348
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 +13 -13
- package/dist/chunks/{adapters-CqIiC4wy.js → adapters-B47g1uBI.js} +1 -1
- package/dist/chunks/{adapters-D3A-v_38.js → adapters-lD0EO5bK.js} +7 -7
- package/dist/chunks/{agent-api-cli-CC5UBJ2s.js → agent-api-cli-CBm0QA1p.js} +130 -4
- package/dist/chunks/{agent-api-cli-w8p3TM5U.js → agent-api-cli-DkVhPYuM.js} +1 -1
- package/dist/chunks/{agent-api-core-B4dswEWq.js → agent-api-core-D_f8pw2Q.js} +58 -5
- package/dist/chunks/{agent-setup-cli-BKmMokta.js → agent-setup-cli-CgjdTtDl.js} +1 -1
- package/dist/chunks/{build-channel-DzwSAk14.js → build-channel-CCRC9F60.js} +2 -2
- package/dist/chunks/{config-VQsMVZIQ.js → config-BWa_HecL.js} +1 -1
- package/dist/chunks/config-store-BUckLoDP.js +1 -0
- package/dist/chunks/{config-store-CShBORR1.js → config-store-D8bzPCxK.js} +2 -2
- package/dist/chunks/{grok-BKgSFzBi.js → grok-Dnbs7V9T.js} +1 -1
- package/dist/chunks/{kimi-D9tvTcda.js → kimi-DGnMgNsj.js} +2 -2
- package/dist/chunks/kimi-GVihxAiR.js +1 -0
- package/dist/chunks/{main-CIv1KpwZ.js → main-DVq5LLD2.js} +77 -15
- package/dist/chunks/{pair-cli-SoQE_iE3.js → pair-cli-CkRuFX6c.js} +2 -2
- package/dist/chunks/{remote-config-CZtuA1zc.js → remote-config-BTgp5KoH.js} +1 -1
- package/dist/chunks/{session-Disk6UCW.js → session-CmkfJxzB.js} +16 -4
- package/dist/chunks/{session-routes-DgjC1v_s.js → session-routes-CgqWd0bR.js} +1 -1
- package/dist/chunks/{settings-cli-DEH7vB4p.js → settings-cli-BqIXNngN.js} +5 -5
- package/dist/chunks/{settings-readout-core-C9idkO4T.js → settings-readout-core-Bl5TqUnb.js} +2 -2
- package/dist/chunks/{shown-files-core-CQXipC3W.js → shown-files-core-D6dE97vA.js} +80 -2
- package/dist/chunks/{spawn-env-DGiSmxnR.js → spawn-env-CV-vkj60.js} +1 -1
- package/dist/chunks/{ssh-sign-cli-B2VR82P7.js → ssh-sign-cli-Dlhu1bbp.js} +2 -2
- package/dist/client/assets/{action-status-DN2GDs7f.js → action-status-pHVg6Bgs.js} +1 -1
- package/dist/client/assets/action-status-pHVg6Bgs.js.br +0 -0
- package/dist/client/assets/{benchmark-panel-C92GNY4a.js → benchmark-panel-Ciz7js8s.js} +1 -1
- package/dist/client/assets/benchmark-panel-Ciz7js8s.js.br +0 -0
- package/dist/client/assets/boards-view-CvDBknGM.css +1 -0
- package/dist/client/assets/boards-view-CvDBknGM.css.br +0 -0
- package/dist/client/assets/boards-view-CwsoX0Fp.js +1 -0
- package/dist/client/assets/boards-view-CwsoX0Fp.js.br +0 -0
- package/dist/client/assets/{card-registry-BB1ieZuJ.js → card-registry-s8eOzqNh.js} +1 -1
- package/dist/client/assets/card-registry-s8eOzqNh.js.br +0 -0
- package/dist/client/assets/{community-panel-M3LDtVfM.js → community-panel-DTCifWrQ.js} +1 -1
- package/dist/client/assets/community-panel-DTCifWrQ.js.br +0 -0
- package/dist/client/assets/{control-ws-mJyFaLSl.js → control-ws-DCUjVE8E.js} +1 -1
- package/dist/client/assets/control-ws-DCUjVE8E.js.br +0 -0
- package/dist/client/assets/{dialogs-BaHfv5Xl.js → dialogs-fB0q3Mw5.js} +1 -1
- package/dist/client/assets/dialogs-fB0q3Mw5.js.br +0 -0
- package/dist/client/assets/{doc-editor-ui-Dds11be0.js → doc-editor-ui-nIsqImec.js} +1 -1
- package/dist/client/assets/doc-editor-ui-nIsqImec.js.br +0 -0
- package/dist/client/assets/{feature-hint-DCqvbgMu.js → feature-hint-Bhd5_Z27.js} +1 -1
- package/dist/client/assets/feature-hint-Bhd5_Z27.js.br +0 -0
- package/dist/client/assets/{first-run-checklist-h1al0TUK.js → first-run-checklist-DeL-kJfo.js} +1 -1
- package/dist/client/assets/first-run-checklist-DeL-kJfo.js.br +0 -0
- package/dist/client/assets/{hooks-panel-4CRbm8O6.js → hooks-panel-DZq_y-H3.js} +1 -1
- package/dist/client/assets/hooks-panel-DZq_y-H3.js.br +0 -0
- package/dist/client/assets/index-DGWfOWbg.js +78 -0
- package/dist/client/assets/index-DGWfOWbg.js.br +0 -0
- package/dist/client/assets/{issues-panel-By-jh4Jr.js → issues-panel-YakGSPFx.js} +1 -1
- package/dist/client/assets/issues-panel-YakGSPFx.js.br +0 -0
- package/dist/client/assets/{my-prs-panel-CGAV_QDe.js → my-prs-panel-BQikaa9-.js} +1 -1
- package/dist/client/assets/my-prs-panel-BQikaa9-.js.br +0 -0
- package/dist/client/assets/{nyan-cat-GuoA4au7.js → nyan-cat-BVE2CPSX.js} +1 -1
- package/dist/client/assets/nyan-cat-BVE2CPSX.js.br +0 -0
- package/dist/client/assets/{phone-shell-DQv5x_VM.js → phone-shell-BKsNat_r.js} +1 -1
- package/dist/client/assets/phone-shell-BKsNat_r.js.br +0 -0
- package/dist/client/assets/{plan-face-MRksGuDe.js → plan-face-BtSGYLjh.js} +2 -2
- package/dist/client/assets/plan-face-BtSGYLjh.js.br +0 -0
- package/dist/client/assets/{plan-render-CZ0wGdfR.js → plan-render-NNoaguFz.js} +1 -1
- package/dist/client/assets/plan-render-NNoaguFz.js.br +0 -0
- package/dist/client/assets/{pr-queue-columns-DEhV4pDT.js → pr-queue-columns-qUMKDjRP.js} +1 -1
- package/dist/client/assets/pr-queue-columns-qUMKDjRP.js.br +0 -0
- package/dist/client/assets/{radar-panel-DAtwMFn-.js → radar-panel-DoPArxKC.js} +1 -1
- package/dist/client/assets/radar-panel-DoPArxKC.js.br +0 -0
- package/dist/client/assets/{repo-roots-adder-CBeyXJ0f.js → repo-roots-adder-qKpzQsSZ.js} +1 -1
- package/dist/client/assets/repo-roots-adder-qKpzQsSZ.js.br +0 -0
- package/dist/client/assets/{resume-dialog-CsqyiboG.js → resume-dialog-C--Qlh5J.js} +1 -1
- package/dist/client/assets/resume-dialog-C--Qlh5J.js.br +0 -0
- package/dist/client/assets/{review-queue-panel-Cr33-7Is.js → review-queue-panel-CeVppKwO.js} +1 -1
- package/dist/client/assets/review-queue-panel-CeVppKwO.js.br +0 -0
- package/dist/client/assets/{session-tick-C8B6gywP.js → session-tick-KFF-EmmX.js} +1 -1
- package/dist/client/assets/settings-panel-JQ7KOjQ2.js +4 -0
- package/dist/client/assets/settings-panel-JQ7KOjQ2.js.br +0 -0
- package/dist/client/assets/{shown-lightbox-Btygalfq.js → shown-lightbox-CBLpQjGy.js} +1 -1
- package/dist/client/assets/shown-lightbox-CBLpQjGy.js.br +0 -0
- package/dist/client/assets/{team-review-panel-BCw3OL_v.js → team-review-panel-D-Xww7bD.js} +6 -6
- package/dist/client/assets/team-review-panel-D-Xww7bD.js.br +0 -0
- package/dist/client/assets/{trace-panel-fZLEeKUY.js → trace-panel-D1WFW_3t.js} +1 -1
- package/dist/client/assets/trace-panel-D1WFW_3t.js.br +0 -0
- package/dist/client/assets/updates-view-core-haJSbqvx.js +1 -0
- package/dist/client/assets/updates-view-core-haJSbqvx.js.br +0 -0
- package/dist/client/assets/{usage-panel-CGib1NGs.js → usage-panel-Dv_NXrwG.js} +1 -1
- package/dist/client/assets/usage-panel-Dv_NXrwG.js.br +0 -0
- package/dist/client/assets/{your-day-tip-vvNADuaR.js → your-day-tip-BAjRvSAk.js} +1 -1
- package/dist/client/assets/your-day-tip-BAjRvSAk.js.br +0 -0
- package/dist/client/index.html +6 -6
- 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-DEkwz-6k.js +0 -1
- package/dist/chunks/kimi-Cm2sK8Tx.js +0 -1
- package/dist/client/assets/action-status-DN2GDs7f.js.br +0 -0
- package/dist/client/assets/benchmark-panel-C92GNY4a.js.br +0 -0
- package/dist/client/assets/boards-view-Dr4M-vaD.css +0 -1
- package/dist/client/assets/boards-view-Dr4M-vaD.css.br +0 -0
- package/dist/client/assets/boards-view-cTiQSUGG.js +0 -1
- package/dist/client/assets/boards-view-cTiQSUGG.js.br +0 -0
- package/dist/client/assets/card-registry-BB1ieZuJ.js.br +0 -0
- package/dist/client/assets/community-panel-M3LDtVfM.js.br +0 -0
- package/dist/client/assets/control-ws-mJyFaLSl.js.br +0 -0
- package/dist/client/assets/dialogs-BaHfv5Xl.js.br +0 -0
- package/dist/client/assets/doc-editor-ui-Dds11be0.js.br +0 -0
- package/dist/client/assets/feature-hint-DCqvbgMu.js.br +0 -0
- package/dist/client/assets/first-run-checklist-h1al0TUK.js.br +0 -0
- package/dist/client/assets/hooks-panel-4CRbm8O6.js.br +0 -0
- package/dist/client/assets/index-NEJoPCKQ.js +0 -78
- package/dist/client/assets/index-NEJoPCKQ.js.br +0 -0
- package/dist/client/assets/issues-panel-By-jh4Jr.js.br +0 -0
- package/dist/client/assets/my-prs-panel-CGAV_QDe.js.br +0 -0
- package/dist/client/assets/nyan-cat-GuoA4au7.js.br +0 -0
- package/dist/client/assets/phone-shell-DQv5x_VM.js.br +0 -0
- package/dist/client/assets/plan-face-MRksGuDe.js.br +0 -0
- package/dist/client/assets/plan-render-CZ0wGdfR.js.br +0 -0
- package/dist/client/assets/pr-queue-columns-DEhV4pDT.js.br +0 -2
- package/dist/client/assets/radar-panel-DAtwMFn-.js.br +0 -0
- package/dist/client/assets/repo-roots-adder-CBeyXJ0f.js.br +0 -0
- package/dist/client/assets/resume-dialog-CsqyiboG.js.br +0 -0
- package/dist/client/assets/review-queue-panel-Cr33-7Is.js.br +0 -0
- package/dist/client/assets/settings-panel-DcJ4kuD2.js +0 -4
- package/dist/client/assets/settings-panel-DcJ4kuD2.js.br +0 -0
- package/dist/client/assets/shown-lightbox-Btygalfq.js.br +0 -0
- package/dist/client/assets/team-review-panel-BCw3OL_v.js.br +0 -0
- package/dist/client/assets/trace-panel-fZLEeKUY.js.br +0 -0
- package/dist/client/assets/updates-view-core-DiTFcS0H.js +0 -1
- package/dist/client/assets/updates-view-core-DiTFcS0H.js.br +0 -0
- package/dist/client/assets/usage-panel-CGib1NGs.js.br +0 -0
- package/dist/client/assets/your-day-tip-vvNADuaR.js.br +0 -0
|
@@ -2,11 +2,11 @@ import { a as showHomeAsTilde, i as sanitizeOneLine, n as requireExecutableSpawn
|
|
|
2
2
|
import { a as isMissingFileError, r as errorMessage, t as errorCode } from "./text-DoirglWV.js";
|
|
3
3
|
import { a as packageRoot, c as caseFoldedPathKey, d as safePathSegment, f as sanitizeWorktreeName, i as clientDir, l as equalsIgnoringCaseOnWindows, n as bundled, o as relayPath, r as cliPath, s as resolvePackageBin, t as assetRoot, u as isPathInside } from "./runtime-paths-D_ZjJLE0.js";
|
|
4
4
|
import { n as glimmervoidHomeDir, r as isOperatorHomeUnderTest, t as decideConfigPath } from "./config-path-core-DUWk0Lui.js";
|
|
5
|
-
import { $ as
|
|
5
|
+
import { $ as LinkedPr, $t as shortSha, A as SIGN_URL_ENV, At as PrDetail, Bt as TeamReviewCompareFiles, Ct as DECIDING_REVIEW_STATES, D as SESSION_NAME_PATTERN, Dt as GithubReviewState, F as ShownFile, Ft as ReviewResult, G as Frame, Gt as TeamReviewThreadResult, H as BoardRecord, Ht as TeamReviewStateEntry, It as ReviewThreadId, J as Unit, Jt as decisionAsIfApprovalRequired, K as Note, Kt as TeamReviewThreadsRepository, L as SshSignRequest, Lt as ReviewVerdict, Mt as ReviewComment, Nt as ReviewDraft, O as SESSION_NAME_RULE_TEXT, Ot as PostedReviewEvent, Pt as ReviewFinding, Q as Wire, Qt as HEX_SHA_RE, Rt as TeamReviewActionRequest, S as ConversationQuestion, St as CommitSha, T as SESSION_DOC_BODY_CAP_BYTES, Tt as FindingSeverity, Ut as TeamReviewStatus, Vt as TeamReviewResolveResponse, W as Box, Wt as TeamReviewThreadCommentsResponse, Xt as hasStandingViewerApproval, Y as WHITEBOARD_LIMITS, _ as COHERENCE_HOOKS_INACTIVE, _t as MyPrsState, b as CONVERSATION_TOOL_RESULT_HOOK_EVENT, cn as BADGE_LABELS, ct as MyPrMergeRequest, dn as RESTARTABLE_STATES, dt as MyPrMergeWhenReadyRequest, en as GH_SEGMENT, et as MyPr, fn as STATES, gt as MyPrsSnapshot, ht as MyPrThreadsResponse, i as ASK_USER_QUESTION_TOOL_NAME, it as MyPrKeepMergeableRequest, j as SSH_SIGN_BODY_CAP_BYTES, k as SHOWN_FILE_CAP_BYTES, kt as PostingPlan, ln as KILLABLE_STATES, mt as MyPrThreadNode, nn as REPO_SLUG_RE, nt as MyPrCheckContext, ot as MyPrLaneEntry, qt as canApproveAfterComment, r as AGENT_URL_ENV, rn as repoParts, rt as MyPrCheckContextsResponse, st as MyPrMergeMethod, tn as NODE_ID_RE, tt as MyPrAutoRebase, un as MERGEABLE_LIVE_STATES, ut as MyPrMergeStateResponse, v as CONVERSATION_APPROVAL_SUMMARY_MAX_CHARS, wt as EarlierReview, y as CONVERSATION_PERMISSION_HOOK_EVENT, z as TaskTitle } from "./session-CmkfJxzB.js";
|
|
6
6
|
import { c as spawn, i as execFileSync, n as execFile, r as execFileAsync, s as refuseLaunchesOf, t as assertLaunchable } from "./child-process-safe-BCOoKfxG.js";
|
|
7
|
-
import { $t as IssuesStatus, A as HINT_VIEW_BY_FEATURE, At as UpdateJournal, B as MergedPrListing, Bt as PLAN_HOOK_OUTPUT_MAX_CHARS, Ct as CommunityItem, D as pullRequestKeyFromReference, Dt as SKILL_NAME_RE, Et as DISCORD_CHANNEL_NAME_RE, F as BenchmarkJudgement, Ft as CoherenceJournalOutput, G as GithubPrLightSearchNode, Gt as parseExitPlanModeHookPayload, H as PrCheckoutCaseInput, Ht as PLAN_TOOL_NAME, I as BenchmarkRun, It as ChangeMap, J as WorkflowCommentBody, Jt as GithubIssueResponse, K as GithubPrsFrame, Kt as planTitle, L as BenchmarkStatus, Lt as changeMapFactId, M as BenchmarkActionRequest, Mt as MAX_RAW_LINE_CHARS, N as BenchmarkCase, Nt as TraceCheckpoint, O as FeatureHintState, P as BenchmarkId, Pt as TraceRecord, Qt as IssuesState, R as BenchmarkSuite, Rt as PLAN_BODY_CAP_BYTES, St as CommunityDraft, Tt as CommunityVerdict, U as GithubPrDetailNode, Ut as PlanDecision, V as MinedPrReviewData, Vt as PLAN_RESULT_HOOK_EVENT, W as GithubPrKey, Wt as PlanRevision, X as WorkflowsSettings, Xt as IssueUpdate, Y as WorkflowLabelName, Yt as IssueKey, Z as WorkflowsState, Zt as IssuesSearchResponse, _ as CLIENT_LOG_TEXT_MAX_CHARS, a as ConfigUpdate, c as SHELL_AGENT_ID, en as issuePullRequestStateFromGithub, f as USAGE_COST_MODES, gt as USAGE_INTEGER_RANGES, h as CHANGES_POLL_INTERVAL_MS, jt as SessionSetup, k as HINT_FEATURES, p as USAGE_VENDOR_KEYS, q as comparablePrKey, qt as GithubIssuePullRequestsRepository, r as BrowserConfig, rt as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, s as RUNTIME_CONFIG_SCALAR_KEYS, u as configIssueMessage, v as CONTROL_FRAME_MAX_BYTES, wt as CommunityState, x as GithubTeam, xt as CommunityActionRequest, y as ClientMessage, z as CommitComparison, zt as PLAN_HOOK_EVENT } from "./config-
|
|
8
|
-
import { A as parseRefinedSessionName, B as resumePromptFor, C as decideTaskTitleRefinement, D as extractPromptTaskTitle, E as extractOscTaskTitle, F as AUTO_CONTINUE_PROMPT, G as isAutoNameOf, H as claudeProjectsDir, I as RESUME_ID_RE, K as nextSuggestedName, L as isConversationReplacedAtStartup, M as resolveRefocusTaskTitle, N as resolveTaskTitle, O as isSelfWakePrompt, P as seedTaskTitleSources, R as pickAutoResume, S as cleanTaskPrompt, T as extractHookTaskTitle, U as listRepoConversations, V as shouldAdoptReportedResumeId, W as listRepoWorktreePaths, _ as projectReviewDetail, a as checkAgentReply, b as buildTaskTitleRefinementPrompt, c as deriveChildSessionName, d as describePushLanding, f as describeRoleRefusal, g as projectMyPrs, h as parseAgentVerb, j as parseRefinedTaskTitle, k as isSubstantivePrompt, l as describeChildEndNote, n as REFUSAL_REASON, o as decideAgentRequest, p as describeUnpushedCloseRefusal, s as decideSpawnAllowance, u as describeKeptChildAttention, v as projectReviews, w as extractAiTitle, x as chooseRefinedSessionName, y as buildPersistedTaskTitle, z as resolveResumeTarget } from "./agent-api-core-
|
|
9
|
-
import { a as permitsHelpCommand, o as supervisionLine, r as describeSessionLimits } from "./session-routes-
|
|
7
|
+
import { $t as IssuesStatus, A as HINT_VIEW_BY_FEATURE, At as UpdateJournal, B as MergedPrListing, Bt as PLAN_HOOK_OUTPUT_MAX_CHARS, Ct as CommunityItem, D as pullRequestKeyFromReference, Dt as SKILL_NAME_RE, Et as DISCORD_CHANNEL_NAME_RE, F as BenchmarkJudgement, Ft as CoherenceJournalOutput, G as GithubPrLightSearchNode, Gt as parseExitPlanModeHookPayload, H as PrCheckoutCaseInput, Ht as PLAN_TOOL_NAME, I as BenchmarkRun, It as ChangeMap, J as WorkflowCommentBody, Jt as GithubIssueResponse, K as GithubPrsFrame, Kt as planTitle, L as BenchmarkStatus, Lt as changeMapFactId, M as BenchmarkActionRequest, Mt as MAX_RAW_LINE_CHARS, N as BenchmarkCase, Nt as TraceCheckpoint, O as FeatureHintState, P as BenchmarkId, Pt as TraceRecord, Qt as IssuesState, R as BenchmarkSuite, Rt as PLAN_BODY_CAP_BYTES, St as CommunityDraft, Tt as CommunityVerdict, U as GithubPrDetailNode, Ut as PlanDecision, V as MinedPrReviewData, Vt as PLAN_RESULT_HOOK_EVENT, W as GithubPrKey, Wt as PlanRevision, X as WorkflowsSettings, Xt as IssueUpdate, Y as WorkflowLabelName, Yt as IssueKey, Z as WorkflowsState, Zt as IssuesSearchResponse, _ as CLIENT_LOG_TEXT_MAX_CHARS, a as ConfigUpdate, c as SHELL_AGENT_ID, en as issuePullRequestStateFromGithub, f as USAGE_COST_MODES, gt as USAGE_INTEGER_RANGES, h as CHANGES_POLL_INTERVAL_MS, jt as SessionSetup, k as HINT_FEATURES, p as USAGE_VENDOR_KEYS, q as comparablePrKey, qt as GithubIssuePullRequestsRepository, r as BrowserConfig, rt as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, s as RUNTIME_CONFIG_SCALAR_KEYS, u as configIssueMessage, v as CONTROL_FRAME_MAX_BYTES, wt as CommunityState, x as GithubTeam, xt as CommunityActionRequest, y as ClientMessage, z as CommitComparison, zt as PLAN_HOOK_EVENT } from "./config-BWa_HecL.js";
|
|
8
|
+
import { A as parseRefinedSessionName, B as resumePromptFor, C as decideTaskTitleRefinement, D as extractPromptTaskTitle, E as extractOscTaskTitle, F as AUTO_CONTINUE_PROMPT, G as isAutoNameOf, H as claudeProjectsDir, I as RESUME_ID_RE, K as nextSuggestedName, L as isConversationReplacedAtStartup, M as resolveRefocusTaskTitle, N as resolveTaskTitle, O as isSelfWakePrompt, P as seedTaskTitleSources, R as pickAutoResume, S as cleanTaskPrompt, T as extractHookTaskTitle, U as listRepoConversations, V as shouldAdoptReportedResumeId, W as listRepoWorktreePaths, _ as projectReviewDetail, a as checkAgentReply, b as buildTaskTitleRefinementPrompt, c as deriveChildSessionName, d as describePushLanding, f as describeRoleRefusal, g as projectMyPrs, h as parseAgentVerb, j as parseRefinedTaskTitle, k as isSubstantivePrompt, l as describeChildEndNote, n as REFUSAL_REASON, o as decideAgentRequest, p as describeUnpushedCloseRefusal, s as decideSpawnAllowance, u as describeKeptChildAttention, v as projectReviews, w as extractAiTitle, x as chooseRefinedSessionName, y as buildPersistedTaskTitle, z as resolveResumeTarget } from "./agent-api-core-D_f8pw2Q.js";
|
|
9
|
+
import { a as permitsHelpCommand, o as supervisionLine, r as describeSessionLimits } from "./session-routes-CgqWd0bR.js";
|
|
10
10
|
import { a as rawTextOr, i as positiveNumberOr, n as isRecord, o as textOr, r as numberOr, t as coercedNumberOr } from "./coerce-oz_Z_6E7.js";
|
|
11
11
|
import { i as parseCommandLine, n as warnWhenGitIsTooOld } from "./git-version-xS1GFU8P.js";
|
|
12
12
|
import { t as HOOK_URL_ENV } from "./hook-relay-core-DA_bz2KA.js";
|
|
@@ -14,18 +14,18 @@ import { r as refocusReplyFor, t as promptContextReplyOf } from "./refocus-core-
|
|
|
14
14
|
import { n as parseJsonRecord, t as parseJsonOrNull } from "./json-core-If8h-Qgy.js";
|
|
15
15
|
import { a as saneYoloFiles } from "./sane-yolo-BjUkqIoH.js";
|
|
16
16
|
import { r as knownWriteHookInput } from "./posthog-read-gate-core-CeSY56AB.js";
|
|
17
|
-
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-
|
|
17
|
+
import { a as readPageTitle, i as filesAfterRetention, l as unitsOf, n as decideShownKind, o as shownMimeForFilename, r as describeOverCap, s as findDependencyCycle, t as SHOWN_SNIFF_BYTES } from "./shown-files-core-D6dE97vA.js";
|
|
18
18
|
import { n as shellQuote } from "./hook-command-core-qTNK-xMF.js";
|
|
19
19
|
import { C as parseCgroupBytes, D as DEFAULT_MAX_MS, E as DEFAULT_BASE_MS, O as nextBackoffMs, S as memoryReserveBytes, T as parseMemAvailableBytes, _ as createSpawnGate, a as jsonStateLoadError, b as cgroupLimitBytes, c as loadedJsonValue, d as writeJsonAtomicSync, g as createSerialQueue, h as createMemoryAdmission, i as createJsonStateWriter, m as createKeyedSerialQueue, n as appendJsonLines, o as loadJsonStateFile, p as writeTextAtomicSync, r as createJsonStateStore, s as loadJsonStateFileSync, t as appendJsonLine, u as writeJsonAtomic, v as isQueueAdmissionTimeout, w as parseCgroupV2Path, x as headroomFromReadings, y as cgroupAncestorPaths } from "./json-file-AKRVPqG1.js";
|
|
20
|
-
import { $ as stableConfigKey, B as buildPersonProperties, F as TELEMETRY_FLAGS_URL, G as decideRemoteTelemetryState, H as claudeAccountUuidOf, I as adapterBucket, J as nodeMajorVersion, K as decideTelemetryConsent, L as buildAiGenerationEvents, M as isExperimentalSetting, N as FIRST_RUN_NOTICE, P as TELEMETRY_BATCH_URL, R as buildBrowserExceptionProperties, U as codexUserIdOf, V as classifySessionExit, W as decideIsDevInstall, X as resolveProjectToken, Y as parsePosthogReleaseId, _ as settingsBlockSpecFor, a as ensureProjectIds, at as sessionIdFromBranch, ct as canonicalizePath, f as DEFAULT_TIMER_FNS, g as mergeSettingsBlock, i as createConfigStore, it as planWorktreeGc, k as valueAtPath, lt as comparableDirectoryPath, n as DEFAULT_CONFIG, nt as matchedPrefix, o as generateProjectId, ot as usablePrefixes, p as unrefTimer, q as exceptionFingerprint, rt as planBranchGc, s as glimmervoidHomeDir$1, st as worktreeIntegrationTips, t as ABORT_CONFIG_SAVE, tt as DEFAULT_BRANCH_GC_PREFIXES, ut as isSameDirectoryPath, v as validateSettingsBlock, y as SETTINGS_INDEX, z as buildExceptionProperties } from "./config-store-
|
|
21
|
-
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-
|
|
22
|
-
import { i as resolveArgvCommandMatches } from "./kimi-
|
|
23
|
-
import { $ as grokHomes, A as decideUploadType, B as containmentRefusalReason, C as parseRegistryLatest, Ct as shouldReplace, D as openContainedFile, Dt as claudeCode, E as shortSha$1, Et as HOOK_TOOLS, F as planUploadRetention, G as codexFallbackRoots, H as planContiguousRead, I as MAX_TRANSCRIPT_READ_BYTES, J as codexSessionIdFromPath, K as codexHomes, L as TRACE_TAIL_SCAN_BYTES, M as framePathPaste, N as imageMimeForUploadFilename, O as MAX_UPLOAD_BYTES, P as isSafePathSegment, Q as expandTilde, R as committedOffsetFromTraceTailOrNull, S as parseRegistryDeprecation, St as parseUsageLine, T as pickNewestPublished, Tt as vendorUsageEntry, U as resumeOffsetFrom, V as isOversizedPartialLine, W as withCommittedOffset, X as decideFileRead, Y as continuationDelayMs, Z as dedupeCodexFiles, _ as decideInstallFlavor, _t as foldReplacementIntoGenerationRollup, a as describeAgentResolvability, at as scopedClaudeRoots, b as normalizeSha, bt as mergeGenerationRollups, c as isKnownAgentId, ct as shouldPersistWarehouse, d as resolveAdapter, dt as parseKimiUsageLine, et as isUsageFile, f as setCustomAgents, ft as addEntryToTotals, g as NODE_PTY_INSTALL_SCRIPT_FLAG, gt as foldEntryIntoGenerationRollup, h as requestCodexAppServer, ht as expandAdvisorIterations, i as customAgentFingerprint, it as resolveProjectsDirs, j as exceedsUploadCap, k as buildUploadFilename, l as listAgentIds, lt as splitLines, m as readHostCodexVersion, mt as emptyTotals, n as cachedAgentResolvability, nt as passOutcome, o as getAdapter, ot as sessionsRootCandidates, p as codex, pt as dedupKeys, q as codexRootCandidates, r as commandFor, rt as projectDirCandidates, s as hookProfileOf, st as shouldEvaluateDespiteIoFailures, t as DEFAULT_AGENT_ID$1, tt as kimiHomes, u as resetCommandCache, ut as kimiDedupIdentity, v as decideUpdateStatus, vt as identityFromRelPath, w as parseResolvedSha, wt as totalTokensOf$1, x as normalizeUpdateChannel, xt as parseJsonLine, y as isCheckFresh, yt as isWithinGenerationRecencyWindow, z as completeLineBytes } from "./adapters-
|
|
20
|
+
import { $ as stableConfigKey, B as buildPersonProperties, F as TELEMETRY_FLAGS_URL, G as decideRemoteTelemetryState, H as claudeAccountUuidOf, I as adapterBucket, J as nodeMajorVersion, K as decideTelemetryConsent, L as buildAiGenerationEvents, M as isExperimentalSetting, N as FIRST_RUN_NOTICE, P as TELEMETRY_BATCH_URL, R as buildBrowserExceptionProperties, U as codexUserIdOf, V as classifySessionExit, W as decideIsDevInstall, X as resolveProjectToken, Y as parsePosthogReleaseId, _ as settingsBlockSpecFor, a as ensureProjectIds, at as sessionIdFromBranch, ct as canonicalizePath, f as DEFAULT_TIMER_FNS, g as mergeSettingsBlock, i as createConfigStore, it as planWorktreeGc, k as valueAtPath, lt as comparableDirectoryPath, n as DEFAULT_CONFIG, nt as matchedPrefix, o as generateProjectId, ot as usablePrefixes, p as unrefTimer, q as exceptionFingerprint, rt as planBranchGc, s as glimmervoidHomeDir$1, st as worktreeIntegrationTips, t as ABORT_CONFIG_SAVE, tt as DEFAULT_BRANCH_GC_PREFIXES, ut as isSameDirectoryPath, v as validateSettingsBlock, y as SETTINGS_INDEX, z as buildExceptionProperties } from "./config-store-D8bzPCxK.js";
|
|
21
|
+
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-CCRC9F60.js";
|
|
22
|
+
import { i as resolveArgvCommandMatches } from "./kimi-DGnMgNsj.js";
|
|
23
|
+
import { $ as grokHomes, A as decideUploadType, B as containmentRefusalReason, C as parseRegistryLatest, Ct as shouldReplace, D as openContainedFile, Dt as claudeCode, E as shortSha$1, Et as HOOK_TOOLS, F as planUploadRetention, G as codexFallbackRoots, H as planContiguousRead, I as MAX_TRANSCRIPT_READ_BYTES, J as codexSessionIdFromPath, K as codexHomes, L as TRACE_TAIL_SCAN_BYTES, M as framePathPaste, N as imageMimeForUploadFilename, O as MAX_UPLOAD_BYTES, P as isSafePathSegment, Q as expandTilde, R as committedOffsetFromTraceTailOrNull, S as parseRegistryDeprecation, St as parseUsageLine, T as pickNewestPublished, Tt as vendorUsageEntry, U as resumeOffsetFrom, V as isOversizedPartialLine, W as withCommittedOffset, X as decideFileRead, Y as continuationDelayMs, Z as dedupeCodexFiles, _ as decideInstallFlavor, _t as foldReplacementIntoGenerationRollup, a as describeAgentResolvability, at as scopedClaudeRoots, b as normalizeSha, bt as mergeGenerationRollups, c as isKnownAgentId, ct as shouldPersistWarehouse, d as resolveAdapter, dt as parseKimiUsageLine, et as isUsageFile, f as setCustomAgents, ft as addEntryToTotals, g as NODE_PTY_INSTALL_SCRIPT_FLAG, gt as foldEntryIntoGenerationRollup, h as requestCodexAppServer, ht as expandAdvisorIterations, i as customAgentFingerprint, it as resolveProjectsDirs, j as exceedsUploadCap, k as buildUploadFilename, l as listAgentIds, lt as splitLines, m as readHostCodexVersion, mt as emptyTotals, n as cachedAgentResolvability, nt as passOutcome, o as getAdapter, ot as sessionsRootCandidates, p as codex, pt as dedupKeys, q as codexRootCandidates, r as commandFor, rt as projectDirCandidates, s as hookProfileOf, st as shouldEvaluateDespiteIoFailures, t as DEFAULT_AGENT_ID$1, tt as kimiHomes, u as resetCommandCache, ut as kimiDedupIdentity, v as decideUpdateStatus, vt as identityFromRelPath, w as parseResolvedSha, wt as totalTokensOf$1, x as normalizeUpdateChannel, xt as parseJsonLine, y as isCheckFresh, yt as isWithinGenerationRecencyWindow, z as completeLineBytes } from "./adapters-lD0EO5bK.js";
|
|
24
24
|
import { c as CODEX_HOME_PROFILE, l as KIMI_HOME_PROFILE } from "./agent-home-core-DgW3orTE.js";
|
|
25
25
|
import { d as releaseSessionLock, f as sessionIdOfLockFile, l as releaseUnheldAgentHomeSecrets, n as generatedAgentHomePath, p as trashSessionTempFolderOnceUnheld, s as realAgentHome, u as createHeldSessionTempFolder } from "./agent-home-BzANIIVe.js";
|
|
26
26
|
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";
|
|
27
|
-
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-
|
|
28
|
-
import { n as configFileViewOf, u as readSettingsForAgent } from "./settings-readout-core-
|
|
27
|
+
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-BTgp5KoH.js";
|
|
28
|
+
import { n as configFileViewOf, u as readSettingsForAgent } from "./settings-readout-core-Bl5TqUnb.js";
|
|
29
29
|
import { createRequire } from "node:module";
|
|
30
30
|
import fs, { readFileSync } from "node:fs";
|
|
31
31
|
import path, { join, resolve } from "node:path";
|
|
@@ -3868,7 +3868,8 @@ var ELEMENT_SCHEMAS = Object.freeze({
|
|
|
3868
3868
|
box: Box,
|
|
3869
3869
|
frame: Frame,
|
|
3870
3870
|
wire: Wire,
|
|
3871
|
-
note: Note
|
|
3871
|
+
note: Note,
|
|
3872
|
+
unit: Unit
|
|
3872
3873
|
});
|
|
3873
3874
|
var NOTE_PREVIEW_CHARS = 80;
|
|
3874
3875
|
var OK = { ok: true };
|
|
@@ -3883,6 +3884,7 @@ function isBox(board, id) {
|
|
|
3883
3884
|
}
|
|
3884
3885
|
function checkReferences(board, element) {
|
|
3885
3886
|
if (element.kind === "box") return checkBoxReferences(board, element);
|
|
3887
|
+
if (element.kind === "unit") return checkUnitReferences(board, element);
|
|
3886
3888
|
if (element.kind === "wire") {
|
|
3887
3889
|
if (!isBox(board, element.from)) return refuse(`wire ${element.id} starts at ${element.from}, which is not a box`);
|
|
3888
3890
|
if (!isBox(board, element.to)) return refuse(`wire ${element.id} ends at ${element.to}, which is not a box`);
|
|
@@ -3892,6 +3894,7 @@ function checkReferences(board, element) {
|
|
|
3892
3894
|
if (!isBox(board, element.on)) return refuse(`note ${element.id} is on ${element.on}, which is not a box`);
|
|
3893
3895
|
return OK;
|
|
3894
3896
|
}
|
|
3897
|
+
if (element.kind !== "frame") return OK;
|
|
3895
3898
|
const strangerId = element.contains.find((id) => !isBox(board, id));
|
|
3896
3899
|
if (strangerId) return refuse(`frame ${element.id} contains ${strangerId}, which is not a box`);
|
|
3897
3900
|
return OK;
|
|
@@ -3901,9 +3904,16 @@ function checkBoxReferences(board, box) {
|
|
|
3901
3904
|
if (box.lane !== null && !board.lanes.some((lane) => lane.id === box.lane)) return refuse(`box ${box.id} names lane ${box.lane}, which the board does not have, so add it with a lanes op first`);
|
|
3902
3905
|
return OK;
|
|
3903
3906
|
}
|
|
3907
|
+
function checkUnitReferences(board, unit) {
|
|
3908
|
+
if (unit.after.includes(unit.id)) return refuse(`unit ${unit.id} cannot come after itself`);
|
|
3909
|
+
const strangerId = unit.after.find((id) => board.elements[id]?.kind !== "unit");
|
|
3910
|
+
if (strangerId) return refuse(`unit ${unit.id} comes after ${strangerId}, which is not a unit on this board`);
|
|
3911
|
+
return OK;
|
|
3912
|
+
}
|
|
3904
3913
|
function addElement(board, element, author) {
|
|
3905
3914
|
if (board.elements[element.id]) return refuse(`an element with id ${element.id} already exists`);
|
|
3906
3915
|
if (Object.keys(board.elements).length >= WHITEBOARD_LIMITS.elements) return refuse(`a board holds at most ${WHITEBOARD_LIMITS.elements} elements`);
|
|
3916
|
+
if (element.kind === "unit" && unitsOf(board).length >= WHITEBOARD_LIMITS.units) return refuse(`a board holds at most ${WHITEBOARD_LIMITS.units} units`);
|
|
3907
3917
|
const stored = element.kind === "note" ? {
|
|
3908
3918
|
...element,
|
|
3909
3919
|
author: author.name,
|
|
@@ -3941,6 +3951,13 @@ function removeElement(board, id) {
|
|
|
3941
3951
|
const existing = board.elements[id];
|
|
3942
3952
|
if (!existing) return refuse(`no element has id ${id}`);
|
|
3943
3953
|
delete board.elements[id];
|
|
3954
|
+
if (existing.kind === "unit") {
|
|
3955
|
+
for (const unit of unitsOf(board)) if (unit.after.includes(id)) board.elements[unit.id] = {
|
|
3956
|
+
...unit,
|
|
3957
|
+
after: unit.after.filter((afterId) => afterId !== id)
|
|
3958
|
+
};
|
|
3959
|
+
return OK;
|
|
3960
|
+
}
|
|
3944
3961
|
if (existing.kind !== "box") return OK;
|
|
3945
3962
|
for (const element of Object.values(board.elements)) removeDependent(board, element, id);
|
|
3946
3963
|
return OK;
|
|
@@ -4026,6 +4043,12 @@ function applyOps(board, ops, author, nowMs) {
|
|
|
4026
4043
|
summary: `${author.name} ${describeOp(op, previous, draft)}`
|
|
4027
4044
|
});
|
|
4028
4045
|
}
|
|
4046
|
+
const cycle = findDependencyCycle(draft);
|
|
4047
|
+
if (cycle) return {
|
|
4048
|
+
ok: false,
|
|
4049
|
+
error: `that makes a dependency cycle: ${cycle.join(", ")}`,
|
|
4050
|
+
opIndex: ops.length - 1
|
|
4051
|
+
};
|
|
4029
4052
|
draft.version = version;
|
|
4030
4053
|
draft.updatedAt = nowMs;
|
|
4031
4054
|
return {
|
|
@@ -4041,14 +4064,20 @@ function changedElementId(op) {
|
|
|
4041
4064
|
}
|
|
4042
4065
|
function nameOf(board, id, element = board.elements[id]) {
|
|
4043
4066
|
if (!element) return id;
|
|
4044
|
-
if (element.kind === "box" || element.kind === "frame") return `"${element.title || id}"`;
|
|
4067
|
+
if (element.kind === "box" || element.kind === "frame" || element.kind === "unit") return `"${element.title || id}"`;
|
|
4045
4068
|
if (element.kind === "wire") return `wire ${nameOf(board, element.from)} to ${nameOf(board, element.to)}`;
|
|
4046
4069
|
return `note ${id}`;
|
|
4047
4070
|
}
|
|
4071
|
+
function describeUnitAfter(board, unitId, afterIds) {
|
|
4072
|
+
if (afterIds.length === 0) return `cleared what ${nameOf(board, unitId)} comes after`;
|
|
4073
|
+
return `set ${nameOf(board, unitId)} to come after ${afterIds.map((afterId) => nameOf(board, afterId)).join(", ")}`;
|
|
4074
|
+
}
|
|
4048
4075
|
function describeSet(op, previous, after) {
|
|
4049
4076
|
const fieldNames = Object.keys(op.fields);
|
|
4050
4077
|
const afterElement = after.elements[op.id];
|
|
4051
4078
|
if (fieldNames.length === 1 && fieldNames[0] === "at") return `moved ${nameOf(after, op.id)}`;
|
|
4079
|
+
if (fieldNames.length === 1 && fieldNames[0] === "linkedBoardId") return afterElement?.kind === "unit" && afterElement.linkedBoardId === null ? `unlinked ${nameOf(after, op.id)} from its board` : `linked ${nameOf(after, op.id)} to a board`;
|
|
4080
|
+
if (fieldNames.length === 1 && fieldNames[0] === "after" && afterElement?.kind === "unit") return describeUnitAfter(after, afterElement.id, afterElement.after);
|
|
4052
4081
|
if (previous?.kind === "box" && afterElement?.kind === "box" && fieldNames.length === 1 && fieldNames[0] === "title") return `renamed "${previous.title}" to "${afterElement.title}"`;
|
|
4053
4082
|
return `changed ${fieldNames.join(", ")} of ${nameOf(after, op.id)}`;
|
|
4054
4083
|
}
|
|
@@ -5354,7 +5383,8 @@ var PUT_GUIDE = [
|
|
|
5354
5383
|
"{\"op\":\"add\",\"element\":{\"kind\":\"box\",\"id\":\"parse\",\"title\":\"Parse\",\"column\":\"intake\",\"lane\":\"pr1\",\"lines\":[{\"text\":\"reads the feed\"},{\"text\":\"skips drafts\",\"muted\":true}]}},",
|
|
5355
5384
|
"{\"op\":\"add\",\"element\":{\"kind\":\"wire\",\"id\":\"w1\",\"from\":\"parse\",\"to\":\"store\",\"dashed\":true,\"label\":\"on retry\"}},",
|
|
5356
5385
|
"{\"op\":\"set\",\"id\":\"parse\",\"fields\":{\"title\":\"Parse feed\"}},{\"op\":\"remove\",\"id\":\"w1\"}]'.",
|
|
5357
|
-
"Element kinds: box (title, column, lines, lane, ghost, order), wire (from, to, dashed, tone plain|fail|join|lane, label), frame (title, contains), note (on, text).",
|
|
5386
|
+
"Element kinds: box (title, column, lines, lane, ghost, order), wire (from, to, dashed, tone plain|fail|join|lane, label), frame (title, contains), note (on, text), unit (title, lines, after, linkedBoardId).",
|
|
5387
|
+
"Units lay out work in dependency order: glimmervoid whiteboard plan add|after|show edits and reads them.",
|
|
5358
5388
|
"Columns place boxes, so never send pixel positions. A put is applied whole or refused whole.",
|
|
5359
5389
|
"glimmervoid whiteboard get <board> returns the board and a one-line summary of each change others made since this session last read it."
|
|
5360
5390
|
].join(" ");
|
|
@@ -5362,6 +5392,10 @@ var OPERATOR_AUTHOR = Object.freeze({
|
|
|
5362
5392
|
id: "operator",
|
|
5363
5393
|
name: "operator"
|
|
5364
5394
|
});
|
|
5395
|
+
var BOARD_DELETION_AUTHOR = Object.freeze({
|
|
5396
|
+
id: "glimmervoid",
|
|
5397
|
+
name: "Glimmervoid"
|
|
5398
|
+
});
|
|
5365
5399
|
var DELETED_BOARD_TEXT = "that board was deleted";
|
|
5366
5400
|
function refusal$1(status, error) {
|
|
5367
5401
|
return {
|
|
@@ -5510,6 +5544,14 @@ function createWhiteboardWiring({ boardsRoot, broadcastControl = () => {}, now =
|
|
|
5510
5544
|
ok: false,
|
|
5511
5545
|
reply: refusal$1(400, `${result.error}, so nothing changed`)
|
|
5512
5546
|
};
|
|
5547
|
+
const strandedUnit = unitsOf(result.board).find((unit) => {
|
|
5548
|
+
const before = record.board.elements[unit.id];
|
|
5549
|
+
return (before?.kind !== "unit" || before.linkedBoardId !== unit.linkedBoardId) && unit.linkedBoardId !== null && !recordsByBoardId.has(unit.linkedBoardId);
|
|
5550
|
+
});
|
|
5551
|
+
if (strandedUnit) return {
|
|
5552
|
+
ok: false,
|
|
5553
|
+
reply: refusal$1(400, `unit ${strandedUnit.id} links to board ${strandedUnit.linkedBoardId ?? ""}, which does not exist, so nothing changed`)
|
|
5554
|
+
};
|
|
5513
5555
|
const next = recordPut(record, result);
|
|
5514
5556
|
const patch = {
|
|
5515
5557
|
type: "whiteboard-patch",
|
|
@@ -5586,7 +5628,27 @@ function createWhiteboardWiring({ boardsRoot, broadcastControl = () => {}, now =
|
|
|
5586
5628
|
};
|
|
5587
5629
|
});
|
|
5588
5630
|
}
|
|
5589
|
-
function
|
|
5631
|
+
async function clearLinksTo(deletedBoardId) {
|
|
5632
|
+
const unlinkPuts = [...recordsByBoardId.values()].flatMap((record) => {
|
|
5633
|
+
const ops = unitsOf(record.board).filter((unit) => unit.linkedBoardId === deletedBoardId).map((unit) => ({
|
|
5634
|
+
op: "set",
|
|
5635
|
+
id: unit.id,
|
|
5636
|
+
fields: { linkedBoardId: null }
|
|
5637
|
+
}));
|
|
5638
|
+
if (ops.length === 0) return [];
|
|
5639
|
+
const linkingBoardId = record.board.id;
|
|
5640
|
+
return [putOps(linkingBoardId, ops, BOARD_DELETION_AUTHOR).then((reply) => {
|
|
5641
|
+
if (!reply.body.ok) logger.warn(`[whiteboard] units on board ${linkingBoardId} still link to deleted board ${deletedBoardId}: ${reply.body.error}`);
|
|
5642
|
+
})];
|
|
5643
|
+
});
|
|
5644
|
+
await Promise.all(unlinkPuts);
|
|
5645
|
+
}
|
|
5646
|
+
async function removeBoard(boardId) {
|
|
5647
|
+
const reply = await removeBoardRecord(boardId);
|
|
5648
|
+
if (reply.body.ok) await clearLinksTo(boardId);
|
|
5649
|
+
return reply;
|
|
5650
|
+
}
|
|
5651
|
+
function removeBoardRecord(boardId) {
|
|
5590
5652
|
return writeQueue.run(boardId, async () => {
|
|
5591
5653
|
const current = recordsByBoardId.get(boardId);
|
|
5592
5654
|
if (!current) return refusal$1(404, DELETED_BOARD_TEXT);
|
|
@@ -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-D8bzPCxK.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-BTgp5KoH.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
//#region server/text-format.ts
|
|
6
6
|
function trimIso(iso) {
|
|
@@ -2,7 +2,7 @@ import { n as errorLabel, r as errorMessage } from "./text-DoirglWV.js";
|
|
|
2
2
|
import { l as equalsIgnoringCaseOnWindows } from "./runtime-paths-D_ZjJLE0.js";
|
|
3
3
|
import { n as isRecord } from "./coerce-oz_Z_6E7.js";
|
|
4
4
|
import { a as jsonStateLoadError, d as writeJsonAtomicSync, l as sleepSync, s as loadJsonStateFileSync, u as writeJsonAtomic } from "./json-file-AKRVPqG1.js";
|
|
5
|
-
import { ct as canonicalizePath, f as DEFAULT_TIMER_FNS, p as unrefTimer, s as glimmervoidHomeDir } from "./config-store-
|
|
5
|
+
import { ct as canonicalizePath, f as DEFAULT_TIMER_FNS, p as unrefTimer, s as glimmervoidHomeDir } from "./config-store-D8bzPCxK.js";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import crypto from "node:crypto";
|
|
@@ -888,7 +888,10 @@ var WHITEBOARD_LIMITS = Object.freeze({
|
|
|
888
888
|
promptContextLines: 20,
|
|
889
889
|
promptContextCharacters: 6e3,
|
|
890
890
|
promptContextLineCharacters: 300,
|
|
891
|
-
layoutWarnings: 20
|
|
891
|
+
layoutWarnings: 20,
|
|
892
|
+
units: 40,
|
|
893
|
+
unitDependencies: 12,
|
|
894
|
+
linesPerUnit: 4
|
|
892
895
|
});
|
|
893
896
|
var LANE_COLORS = [
|
|
894
897
|
"blue",
|
|
@@ -947,12 +950,21 @@ var Note = z.object({
|
|
|
947
950
|
author: z.string().max(200).default(""),
|
|
948
951
|
resolvedBy: z.string().max(200).nullable().default(null)
|
|
949
952
|
}).strict();
|
|
953
|
+
var Unit = z.object({
|
|
954
|
+
kind: z.literal("unit"),
|
|
955
|
+
id: ElementId,
|
|
956
|
+
title: Title.min(1, { error: "a unit needs a title" }),
|
|
957
|
+
lines: z.array(BoxLine).max(WHITEBOARD_LIMITS.linesPerUnit, { error: `a unit holds at most ${WHITEBOARD_LIMITS.linesPerUnit} lines` }).default([]),
|
|
958
|
+
after: z.array(ElementId).max(WHITEBOARD_LIMITS.unitDependencies, { error: `a unit comes after at most ${WHITEBOARD_LIMITS.unitDependencies} units` }).default([]),
|
|
959
|
+
linkedBoardId: z.string().min(1).max(64).nullable().default(null)
|
|
960
|
+
}).strict();
|
|
950
961
|
var Element = z.discriminatedUnion("kind", [
|
|
951
962
|
Box,
|
|
952
963
|
Frame,
|
|
953
964
|
Wire,
|
|
954
|
-
Note
|
|
955
|
-
|
|
965
|
+
Note,
|
|
966
|
+
Unit
|
|
967
|
+
], { error: "an element kind is box, frame, wire, note or unit" });
|
|
956
968
|
var BoardColumns = z.array(z.object({
|
|
957
969
|
id: ElementId,
|
|
958
970
|
title: z.string().max(60)
|
|
@@ -1413,4 +1425,4 @@ var AGENT_REPLY_SCHEMAS = Object.freeze({
|
|
|
1413
1425
|
answer: z.union([AgentOkReply, AgentRefusal])
|
|
1414
1426
|
});
|
|
1415
1427
|
//#endregion
|
|
1416
|
-
export {
|
|
1428
|
+
export { LinkedPr as $, shortSha as $t, SIGN_URL_ENV as A, PrDetail as At, UnseenOutcome as B, TeamReviewCompareFiles as Bt, RefinedTaskTitle as C, DECIDING_REVIEW_STATES as Ct, SESSION_NAME_PATTERN as D, GithubReviewState as Dt, SESSION_DOC_PATH_MAX_CHARS as E, GithubReviewDecision as Et, ShownFile as F, ReviewResult as Ft, Frame as G, TeamReviewThreadResult as Gt, BoardRecord as H, TeamReviewStateEntry as Ht, SshSignReply as I, ReviewThreadId as It, Unit as J, decisionAsIfApprovalRequired as Jt, Note as K, TeamReviewThreadsRepository as Kt, SshSignRequest as L, ReviewVerdict as Lt, SessionDoc as M, ReviewComment as Mt, SessionSnapshot as N, ReviewDraft as Nt, SESSION_NAME_RULE_TEXT as O, PostedReviewEvent as Ot, SessionState as P, ReviewFinding as Pt, Wire as Q, HEX_SHA_RE as Qt, TASK_TITLE_CONTROL_CHARACTERS as R, TeamReviewActionRequest as Rt, ConversationQuestion as S, CommitSha as St, SESSION_DOC_BODY_CAP_BYTES as T, FindingSeverity as Tt, BoardSummary as U, TeamReviewStatus as Ut, Board as V, TeamReviewResolveResponse as Vt, Box as W, TeamReviewThreadCommentsResponse as Wt, WhiteboardAgentReply as X, hasStandingViewerApproval as Xt, WHITEBOARD_LIMITS as Y, hasRequiredActionHead as Yt, WhiteboardAgentRequest as Z, FULL_SHA_RE as Zt, COHERENCE_HOOKS_INACTIVE as _, MyPrsState as _t, AgentAnswerRequest as a, GithubPollingRefreshResult as an, MyPrKeepMergeableResult as at, CONVERSATION_TOOL_RESULT_HOOK_EVENT as b, pullRequestKeyFormat as bt, AgentEditRequest as c, BADGE_LABELS as cn, MyPrMergeRequest as ct, AgentReadRequest as d, RESTARTABLE_STATES as dn, MyPrMergeWhenReadyRequest as dt, GH_SEGMENT as en, MyPr as et, AgentReviewsRequest as f, STATES as fn, MyPrMergeWhenReadyResult as ft, AgentSpawnRequest as g, MyPrsSnapshot as gt, AgentSettingsRequest as h, MyPrThreadsResponse as ht, ASK_USER_QUESTION_TOOL_NAME as i, GithubPollingRefreshRequest as in, MyPrKeepMergeableRequest as it, SSH_SIGN_BODY_CAP_BYTES as j, ReviewChecksState as jt, SHOWN_FILE_CAP_BYTES as k, PostingPlan as kt, AgentLimitsReply as l, KILLABLE_STATES as ln, MyPrMergeResult as lt, AgentSettingsReply as m, MyPrThreadNode as mt, AGENT_REPLY_SCHEMAS as n, REPO_SLUG_RE as nn, MyPrCheckContext as nt, AgentAttentionRequest as o, GithubPrsFreshness as on, MyPrLaneEntry as ot, AgentSendRequest as p, MyPrSearchNode as pt, Op as q, canApproveAfterComment as qt, AGENT_URL_ENV as r, repoParts as rn, MyPrCheckContextsResponse as rt, AgentCloseRequest as s, githubPollingShape as sn, MyPrMergeMethod as st, AGENT_API_VERBS as t, NODE_ID_RE as tn, MyPrAutoRebase as tt, AgentPullRequestRequest as u, MERGEABLE_LIVE_STATES as un, MyPrMergeStateResponse as ut, CONVERSATION_APPROVAL_SUMMARY_MAX_CHARS as v, MyPrsStatus as vt, SESSION_COMMANDS as w, EarlierReview as wt, CoherenceHooksState as x, repositoryName as xt, CONVERSATION_PERMISSION_HOOK_EVENT as y, SessionPrLinks as yt, TaskTitle as z, TeamReviewActionResult as zt };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { w as SESSION_COMMANDS } from "./session-
|
|
1
|
+
import { w as SESSION_COMMANDS } from "./session-CmkfJxzB.js";
|
|
2
2
|
//#region session/core/session-routes.ts
|
|
3
3
|
var SUPERVISION_LINE = "Glimmervoid supervises this session. Run glimmervoid --help for the commands it gives you and this session's limits.";
|
|
4
4
|
var SPAWN_LINE = "To delegate work that edits files or runs long, use glimmervoid spawn rather than an in-process subagent: the spawned session gets its own dashboard card the operator can watch. An in-process subagent stays fine for a quick read-only lookup.";
|
|
@@ -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
|
-
import { m as AgentSettingsReply } from "./session-
|
|
4
|
-
import { r as BrowserConfig } from "./config-
|
|
3
|
+
import { m as AgentSettingsReply } from "./session-CmkfJxzB.js";
|
|
4
|
+
import { r as BrowserConfig } from "./config-BWa_HecL.js";
|
|
5
5
|
import { n as isRecord } from "./coerce-oz_Z_6E7.js";
|
|
6
6
|
import { t as renderTable } from "./ascii-figure-core-pDAwtlKO.js";
|
|
7
|
-
import { E as setValueAtPath, Q as readEnvSecrets, T as scoreSettingsSearch, Z as ENV_SECRET_BINDINGS, b as cloneValue, c as loadConfigFile, d as validateConfig, et as withEnvSecrets, j as SETTINGS_REGISTRY, k as valueAtPath, m as isSettingAvailable, r as IS_EXPERIMENTAL_BUILD, u as saveConfigFileOnce, w as parsePosthogProjectSelection, x as deleteValueAtPath } 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 { E as setValueAtPath, Q as readEnvSecrets, T as scoreSettingsSearch, Z as ENV_SECRET_BINDINGS, b as cloneValue, c as loadConfigFile, d as validateConfig, et as withEnvSecrets, j as SETTINGS_REGISTRY, k as valueAtPath, m as isSettingAvailable, r as IS_EXPERIMENTAL_BUILD, u as saveConfigFileOnce, w as parsePosthogProjectSelection, x as deleteValueAtPath } from "./config-store-D8bzPCxK.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-Bl5TqUnb.js";
|
|
9
9
|
import fs from "node:fs";
|
|
10
10
|
import os from "node:os";
|
|
11
11
|
//#region server/settings-cli.ts
|
|
@@ -303,7 +303,7 @@ function runParsedSettingsCommand(parsed, io) {
|
|
|
303
303
|
async function runParsedSettingsCli(parsed, io = processIo()) {
|
|
304
304
|
const serverRequest = settingsRequestForServer(parsed, process.env);
|
|
305
305
|
if (!serverRequest) return runParsedSettingsCommand(parsed, io);
|
|
306
|
-
const { askAgentApi } = await import("./agent-api-cli-
|
|
306
|
+
const { askAgentApi } = await import("./agent-api-cli-DkVhPYuM.js");
|
|
307
307
|
const reply = AgentSettingsReply.safeParse(await askAgentApi("settings", serverRequest).catch((error) => ({
|
|
308
308
|
ok: false,
|
|
309
309
|
error: errorMessage(error)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { h as AgentSettingsRequest } from "./session-
|
|
1
|
+
import { h as AgentSettingsRequest } from "./session-CmkfJxzB.js";
|
|
2
2
|
import { t as renderTable } from "./ascii-figure-core-pDAwtlKO.js";
|
|
3
|
-
import { A as FILE_ONLY_GROUPS, C as hasScaledUnit, D as settingsGroupOf, O as settingsOf, Q as readEnvSecrets, S as displayText, b as cloneValue, j as SETTINGS_REGISTRY, k as valueAtPath, m as isSettingAvailable, y as SETTINGS_INDEX } from "./config-store-
|
|
3
|
+
import { A as FILE_ONLY_GROUPS, C as hasScaledUnit, D as settingsGroupOf, O as settingsOf, Q as readEnvSecrets, S as displayText, b as cloneValue, j as SETTINGS_REGISTRY, k as valueAtPath, m as isSettingAvailable, y as SETTINGS_INDEX } from "./config-store-D8bzPCxK.js";
|
|
4
4
|
//#region server/core/settings-readout-core.ts
|
|
5
5
|
var VALUE_COLUMN_WIDTH = 40;
|
|
6
6
|
var SECTION_BY_SETTING_ID = new Map([...SETTINGS_REGISTRY.sections.flatMap((section) => section.settings.map((setting) => [setting.id, {
|
|
@@ -1,5 +1,83 @@
|
|
|
1
|
-
import { k as SHOWN_FILE_CAP_BYTES } from "./session-
|
|
1
|
+
import { k as SHOWN_FILE_CAP_BYTES } from "./session-CmkfJxzB.js";
|
|
2
2
|
import path from "node:path";
|
|
3
|
+
//#region shared/whiteboard-plan-core.ts
|
|
4
|
+
var LETTERS_IN_ALPHABET = 26;
|
|
5
|
+
var FIRST_LETTER_CODE = 97;
|
|
6
|
+
function unitsOf(board) {
|
|
7
|
+
return Object.values(board.elements).filter((element) => element.kind === "unit");
|
|
8
|
+
}
|
|
9
|
+
function letterFor(index) {
|
|
10
|
+
const letter = String.fromCharCode(FIRST_LETTER_CODE + index % LETTERS_IN_ALPHABET);
|
|
11
|
+
const round = Math.floor(index / LETTERS_IN_ALPHABET);
|
|
12
|
+
return round === 0 ? letter : `${letter}${round + 1}`;
|
|
13
|
+
}
|
|
14
|
+
function levelsOf(units) {
|
|
15
|
+
const unitById = new Map(units.map((unit) => [unit.id, unit]));
|
|
16
|
+
const levelById = /* @__PURE__ */ new Map();
|
|
17
|
+
const visiting = /* @__PURE__ */ new Set();
|
|
18
|
+
function levelOf(unitId) {
|
|
19
|
+
const known = levelById.get(unitId);
|
|
20
|
+
if (known !== void 0) return known;
|
|
21
|
+
const unit = unitById.get(unitId);
|
|
22
|
+
if (!unit || visiting.has(unitId)) return 0;
|
|
23
|
+
visiting.add(unitId);
|
|
24
|
+
const level = 1 + Math.max(0, ...unit.after.map(levelOf));
|
|
25
|
+
visiting.delete(unitId);
|
|
26
|
+
levelById.set(unitId, level);
|
|
27
|
+
return level;
|
|
28
|
+
}
|
|
29
|
+
for (const unit of units) levelOf(unit.id);
|
|
30
|
+
return levelById;
|
|
31
|
+
}
|
|
32
|
+
function planSteps(board) {
|
|
33
|
+
const units = unitsOf(board);
|
|
34
|
+
const levelById = levelsOf(units);
|
|
35
|
+
const unitsByLevel = /* @__PURE__ */ new Map();
|
|
36
|
+
for (const unit of units) {
|
|
37
|
+
const level = levelById.get(unit.id) ?? 1;
|
|
38
|
+
unitsByLevel.set(level, [...unitsByLevel.get(level) ?? [], unit]);
|
|
39
|
+
}
|
|
40
|
+
const labelById = /* @__PURE__ */ new Map();
|
|
41
|
+
const orderedUnits = [];
|
|
42
|
+
for (const level of [...unitsByLevel.keys()].sort((left, right) => left - right)) {
|
|
43
|
+
const unitsAtLevel = (unitsByLevel.get(level) ?? []).sort((left, right) => left.title.localeCompare(right.title) || left.id.localeCompare(right.id));
|
|
44
|
+
for (const [index, unit] of unitsAtLevel.entries()) {
|
|
45
|
+
labelById.set(unit.id, unitsAtLevel.length === 1 ? String(level) : `${level}${letterFor(index)}`);
|
|
46
|
+
orderedUnits.push(unit);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return orderedUnits.map((unit) => ({
|
|
50
|
+
unitId: unit.id,
|
|
51
|
+
title: unit.title,
|
|
52
|
+
label: labelById.get(unit.id) ?? "",
|
|
53
|
+
afterLabels: unit.after.flatMap((afterId) => labelById.get(afterId) ?? []),
|
|
54
|
+
linkedBoardId: unit.linkedBoardId
|
|
55
|
+
}));
|
|
56
|
+
}
|
|
57
|
+
function findDependencyCycle(board) {
|
|
58
|
+
const unitById = new Map(unitsOf(board).map((unit) => [unit.id, unit]));
|
|
59
|
+
const finished = /* @__PURE__ */ new Set();
|
|
60
|
+
const path = [];
|
|
61
|
+
function walk(unitId) {
|
|
62
|
+
const loopStart = path.indexOf(unitId);
|
|
63
|
+
if (loopStart !== -1) return [...path.slice(loopStart), unitId];
|
|
64
|
+
if (finished.has(unitId)) return null;
|
|
65
|
+
path.push(unitId);
|
|
66
|
+
for (const afterId of unitById.get(unitId)?.after ?? []) {
|
|
67
|
+
const cycle = walk(afterId);
|
|
68
|
+
if (cycle) return cycle;
|
|
69
|
+
}
|
|
70
|
+
path.pop();
|
|
71
|
+
finished.add(unitId);
|
|
72
|
+
return null;
|
|
73
|
+
}
|
|
74
|
+
for (const unitId of unitById.keys()) {
|
|
75
|
+
const cycle = walk(unitId);
|
|
76
|
+
if (cycle) return cycle;
|
|
77
|
+
}
|
|
78
|
+
return null;
|
|
79
|
+
}
|
|
80
|
+
//#endregion
|
|
3
81
|
//#region server/core/shown-files-core.ts
|
|
4
82
|
var SHOWN_SNIFF_BYTES = 65536;
|
|
5
83
|
var PAGE_TITLE_MAX_CHARS = 200;
|
|
@@ -142,4 +220,4 @@ function filesAfterRetention(files, droppedIds) {
|
|
|
142
220
|
return files.filter((file) => !dropped.has(file.id));
|
|
143
221
|
}
|
|
144
222
|
//#endregion
|
|
145
|
-
export { readPageTitle as a, filesAfterRetention as i, decideShownKind as n, shownMimeForFilename as o, describeOverCap as r, SHOWN_SNIFF_BYTES as t };
|
|
223
|
+
export { readPageTitle as a, planSteps as c, filesAfterRetention as i, unitsOf as l, decideShownKind as n, shownMimeForFilename as o, describeOverCap as r, findDependencyCycle as s, SHOWN_SNIFF_BYTES as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as SIGN_URL_ENV, r as AGENT_URL_ENV } from "./session-
|
|
1
|
+
import { A as SIGN_URL_ENV, r as AGENT_URL_ENV } from "./session-CmkfJxzB.js";
|
|
2
2
|
import { t as HOOK_URL_ENV } from "./hook-relay-core-DA_bz2KA.js";
|
|
3
3
|
import { i as saneYoloEnv, r as SANE_YOLO_PATH_ENV } from "./sane-yolo-BjUkqIoH.js";
|
|
4
4
|
import path from "node:path";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as errorMessage } from "./text-DoirglWV.js";
|
|
2
|
-
import { A as SIGN_URL_ENV, I as SshSignReply } from "./session-
|
|
2
|
+
import { A as SIGN_URL_ENV, I as SshSignReply } from "./session-CmkfJxzB.js";
|
|
3
3
|
import { c as spawn, r as execFileAsync } from "./child-process-safe-BCOoKfxG.js";
|
|
4
4
|
import { a as isLoopbackHostname } from "./hook-relay-core-DA_bz2KA.js";
|
|
5
|
-
import { n as postToAgentIngress } from "./agent-api-cli-
|
|
5
|
+
import { n as postToAgentIngress } from "./agent-api-cli-CBm0QA1p.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{G as e,H as t,n}from"./updates-view-core-
|
|
1
|
+
import{G as e,H as t,n}from"./updates-view-core-haJSbqvx.js";import{S as r,s as i}from"./dom-helpers-DBbFg1c_.js";import{c as a,d as o,u as s}from"./control-ws-DCUjVE8E.js";var c=`http://www.w3.org/2000/svg`;function l(e,t){let n=document.createElementNS(c,e);for(let[e,r]of Object.entries(t))n.setAttribute(e,r);return n}function u(e,t){let n=document.createElementNS(c,`svg`);return n.setAttribute(`width`,String(e)),n.setAttribute(`height`,String(t)),n.setAttribute(`viewBox`,`0 0 ${e} ${t}`),n.setAttribute(`aria-hidden`,`true`),n}var d=`M4 4L12 12M12 4L4 12`,f=`M10 3L5 8L10 13`,p=`M3 8h0.01M8 8h0.01M13 8h0.01`,m=`M8 2.5v6M5 5.5h6M5 12.5h6`,h=`M4.5 12.5h7a3 3 0 0 0 0.4-5.97a4 4 0 0 0-7.7 0.57a2.7 2.7 0 0 0 0.3 5.4z`,g=`M8 1.8l5.2 2v4c0 3.2-2.2 5.4-5.2 6.4c-3-1-5.2-3.2-5.2-6.4v-4z`,_=`M9.2 1.5L3.5 9h4.3l-1 5.5L12.5 7H8.2z`,v=`M8.7 4.2L5.6 8.6h2.5l-.6 3.2l3.1-4.4H8.1z`,y=`M3 13V9M8 13V3M13 13V6.5`;function b(e,t=`2`){let n=u(16,16);return n.classList.add(`line-icon`),n.append(l(`path`,{d:e,fill:`none`,stroke:`currentColor`,"stroke-width":t,"stroke-linecap":`round`,"stroke-linejoin":`round`})),n}function x(e,t){let{class:n,...r}=t,i=u(16,16);return n!==void 0&&i.classList.add(n),i.append(l(e,r)),i}function S(e){let t=document.createElement(`span`);t.className=`status-icon`,t.dataset.icon=e;for(let n of r[e])t.append(x(n.tag,n.attributes));return t}function C(e,t){e.dataset.icon!==t&&(e.dataset.icon=t,e.replaceChildren(S(t)))}var w={busy:`text-text-muted`,ok:`text-state-done`,error:`text-state-failed`},T=15e3,E=`Something went wrong. Details are hidden in streamer mode.`;function D(e,t){return e!==`error`||t.startsWith(`Not connected to the server. Reconnecting.`)?t:document.documentElement.hasAttribute(`data-streamer`)?E:t}var O={busy:`working`,ok:`complete`,error:`failed`};function k(e){let t=e.querySelector(`:scope > .action-status-icon`),n=e.querySelector(`:scope > .action-status-text`);if(t&&n&&e.childNodes.length===2)return{iconElement:t,textElement:n};let r=i(`span`,`action-status-icon`);r.setAttribute(`aria-hidden`,`true`);let a=i(`span`,`action-status-text`);return e.replaceChildren(r,a),{iconElement:r,textElement:a}}function A(e){e.replaceChildren(),delete e.dataset.tone}function j(e,t,n){if(!n){A(e);return}if(!t){A(e),e.textContent=n;return}e.dataset.tone=t;let{iconElement:r,textElement:i}=k(e);C(r,O[t]),i.textContent=D(t,n)}function M(e=`action-status`){let t=i(`p`,e);return t.setAttribute(`role`,`status`),t.hidden=!0,{element:t,show:(n,r)=>{t.className=`${e} text-meta ${w[n]}`,j(t,n,r),t.hidden=!r},clear:()=>{t.hidden=!0,A(t)}}}function N(e,t){return s(e)?!0:(t.show(`error`,n),!1)}function P(e,t){let n=e instanceof Error?e.message:``;return n===`Request timed out`?`The server did not answer within ${Math.round(t/1e3)} s.`:n||`Not connected to the server. Reconnecting.`}async function F(e,t,n,{busyText:r,timeoutMs:i=T}={}){r&&n.show(`busy`,r);try{let r=await o(e,t,{timeoutMs:i});return n.clear(),r}catch(e){return n.show(`error`,P(e,i)),null}}var I=null,L=3e4,R=null;function z(){let e=document.getElementById(`header-status`),t=document.getElementById(`header-status-text`),n=document.getElementById(`header-status-age`),r=document.getElementById(`header-status-dismiss`);return!e||!t||!n||!r?null:(r.dataset.wired===void 0&&(r.dataset.wired=``,r.addEventListener(`click`,W)),{line:e,text:t,age:n})}function B(){let n=z();if(!n||!I)return;let r=e(Date.now()-I.raisedAt,{...t,justNowBelowSeconds:60});n.age.textContent!==r&&(n.age.textContent=r)}function V({source:e,sessionId:t,message:n,hidesInStreamerMode:r=!0}){a(e,n);let o=z();if(!o)return;let s=r?D(`error`,n):n,c=i(`strong`,`header-status-source`,e);o.text.replaceChildren(c,` ${s}`),o.text.title=`${e}: ${s}`,I={source:e,sessionId:t??null,raisedAt:Date.now()},B(),R??=window.setInterval(B,L),o.line.hidden=!1}function H(e,t){I?.source===e&&(t===void 0||I.sessionId===t)&&W()}function U(e){I?.sessionId===e&&W()}function W(){I=null,R!==null&&window.clearInterval(R),R=null;let e=z();e&&(e.line.hidden=!0,e.text.replaceChildren(),e.text.title=``,e.age.textContent=``)}export{l as S,v as _,j as a,b,F as c,f as d,_ as f,p as g,h,M as i,N as l,d as m,H as n,V as o,m as p,U as r,P as s,T as t,C as u,g as v,u as x,y};
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./updates-view-core-
|
|
1
|
+
import"./updates-view-core-haJSbqvx.js";import{n as e,r as t,s as n}from"./dom-helpers-DBbFg1c_.js";import{$ as r,Q as i,et as a}from"./index-DGWfOWbg.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,t,i){let a=n(`button`,`bench-action-button`,o[t]);return a.type=`button`,a.disabled=i,a.addEventListener(`click`,()=>r(e.id,t)),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 t=n(`td`,`bench-score`,c(e?.recall??null));return e&&e.invalid>0&&(t.title=`${e.invalid} invalid or failed cell(s)`),e&&e.degraded>0&&(t.dataset.degraded=`true`),t}function p(e){let t=e.armIds.filter(t=>t!==e.baselineArm),r=n(`table`,`bench-table`),i=n(`tr`);i.append(n(`th`,null,`Case`),...e.armIds.map(t=>n(`th`,null,t===e.baselineArm?`${t} (baseline)`:t))),i.append(...t.map(e=>n(`th`,null,`${e} vs baseline`))),r.append(i);for(let i of e.rows){let a=n(`tr`);a.append(n(`td`,`bench-case`,i.caseId),...e.armIds.map(e=>f(i.arms[e]))),a.append(...t.map(e=>n(`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=n(`tr`,`bench-total`);o.append(n(`td`,`bench-case`,`Paired recall`),...e.armIds.map(t=>f(e.totals[t]))),r.append(o);for(let t of a){let i=n(`tr`,`bench-total`);i.append(n(`td`,`bench-case`,`Recall, ${t}`),...e.armIds.map(r=>n(`td`,`bench-score`,c(e.totals[r]?.recallByTag[t]??null)))),r.append(i)}return r}function m(e,r){let{isServerConnected:a,pendingActionBySuite:o,outcomeBySuite:s}=i(),c=n(`div`,`bench-suite`),l=e.inFlight?.suiteId===r.id,f=!!e.inFlight&&!l,m=o.has(r.id)||!a,h=n(`div`,`bench-summary`);h.append(n(`span`,`bench-suite-title`,r.title),t(`bench`,r.caseCount===1?`case`:`cases`,String(r.caseCount)),t(`bench`,r.candidateCount===1?`candidate`:`candidates`,String(r.candidateCount)),t(`bench`,`arms`,String(r.armIds.length))),c.append(h);let g=n(`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=n(`span`,`bench-status`,(a?``:`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(n(`p`,`bench-error`,r.error)),c;let y=r.latestReport;return y?(c.append(n(`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(n(`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:t}=i(),r=e(`bench`,`Benchmarks`,`Suites from the benchmarks folder of the Glimmervoid home, one run at a time.`);if(s.append(r),!t)s.append(n(`p`,`bench-empty`,`Waiting for the server.`));else if(!t.configured)s.append(n(`p`,`bench-empty`,t.reason||`Benchmarks are off.`));else if(t.suites.length===0)s.append(n(`p`,`bench-empty`,`No suites yet. Create a folder holding suite.json under benchmarks in the Glimmervoid home.`));else for(let e of t.suites)s.append(m(t,e))}function g(e){s||(s=n(`div`,`bench-content`),e.append(s),a(h),h())}var _={mount:g};export{_ as view};
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer components{.boards-view{--wb-font:"ComicMono", var(--font-mono);--wb-board:#0d0b16;--wb-ink:#e6e0f5;--wb-ink-dim:#a79fc4;--wb-line:#4a4268;--wb-note:#f5c26b;min-height:0;font-family:var(--font-mono);font-size:var(--type-meta);color:var(--text-dim);flex:1;grid-template-rows:auto minmax(0,1fr);grid-template-columns:minmax(0,1fr);gap:10px;padding:12px clamp(10px,1.6vw,24px);display:grid}.boards-view[hidden]{display:none}.boards-view:has(>.wb-dock:not([hidden])){grid-template-columns:auto minmax(0,1fr)}.boards-view:has(>.wb-dock:not([hidden]))>:is(.wb-canvas,.wb-empty){grid-column:2}.boards-view>.wb-top{grid-column:1/-1}.boards-view>.wb-canvas{grid-area:2/1}.boards-view>.wb-empty{grid-area:2/1;align-self:start}.wb-top,.wb-title-row,.wb-toolbar{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.wb-board-list{flex-wrap:wrap;gap:6px;display:flex}.wb-board-tab,.wb-button{border:1px solid var(--border);border-radius:var(--radius);background:var(--bg-card);height:28px;color:var(--text);font:inherit;cursor:pointer;transition:border-color var(--transition-fast), color var(--transition-fast);align-items:center;gap:6px;padding:0 10px;display:inline-flex}.wb-button:before{content:"[" / "";color:var(--text-muted)}.wb-button:after{content:"]" / "";color:var(--text-muted)}.wb-board-tab:hover,.wb-button:hover:not(:disabled){border-color:var(--border-hover);color:var(--text-head)}.wb-board-tab[aria-pressed=true]{border-color:var(--accent-dim);color:var(--text-head);font-weight:700}.wb-board-tab:focus-visible,.wb-button:focus-visible,.wb-svg:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.wb-board-tab-count{background:var(--bg-surface);min-width:18px;color:var(--text-dim);text-align:center;border-radius:9px;padding:0 5px}.wb-button:disabled{cursor:default;color:var(--text-muted);opacity:.55}.wb-button-danger:hover:not(:disabled){border-color:var(--state-failed);color:var(--state-failed)}.wb-board-head{flex-wrap:wrap;align-items:center;gap:8px;margin-left:auto;display:flex}.wb-board-head[hidden]{display:none}.wb-board-meta{color:var(--text-muted)}.wb-presence{flex-wrap:wrap;gap:6px;display:flex}.wb-presence-pill{border:1px solid var(--state-running);color:var(--state-running);border-radius:10px;padding:1px 8px}.wb-presence-none{color:var(--text-muted)}.wb-status{margin:0}.wb-canvas{border:1px solid var(--border-dim);border-radius:var(--radius-lg);background:radial-gradient(circle at 1px 1px, #1d1930 1px, transparent 0) 0 0 / 22px 22px, var(--wb-board);min-height:320px;position:relative;overflow:hidden}.wb-canvas[hidden]{display:none}.wb-svg{touch-action:none;-webkit-user-select:none;user-select:none;width:100%;height:100%;font-family:var(--wb-font);cursor:grab;display:block}.wb-empty{border:1px dashed var(--border);border-radius:var(--radius);color:var(--text-muted);margin:0;padding:24px 14px}.wb-empty[hidden]{display:none}.wb-title-input{z-index:2;border:1px solid var(--accent);background:var(--bg-card);height:32px;color:var(--text-head);font:700 var(--type-body) var(--wb-font);border-radius:6px;padding:0 8px;position:absolute}.wb-dialog-select{margin-top:8px}.wb-column-title{fill:var(--wb-ink-dim);font-size:var(--type-meta);letter-spacing:.08em;text-transform:uppercase;font-weight:700}.wb-column-rule{stroke:var(--wb-line);stroke-width:1px;stroke-dasharray:2 5}.wb-box{cursor:move}.wb-box-outline{fill:#15122a;stroke:var(--wb-ink-dim);stroke-width:1.6px}.wb-ghost{opacity:.6}.wb-ghost .wb-box-outline{fill:#0000;stroke-dasharray:7 5}.wb-box-title{fill:var(--wb-ink);font-size:var(--type-title);font-weight:700}.wb-box-line{fill:var(--wb-ink);font-size:var(--type-meta)}.wb-box-line.wb-muted{fill:var(--wb-ink-dim)}.wb-lane-pill{fill:#0000;stroke-width:1.2px}.wb-lane-pill-text{font-size:var(--type-meta);font-weight:700}.wb-frame-outline{fill:#c084fc0a;stroke:var(--wb-line);stroke-width:1.4px;stroke-dasharray:10 6;pointer-events:stroke}.wb-frame-title{fill:var(--wb-ink-dim);font-size:var(--type-meta);font-weight:700}.wb-wire-hit{fill:none;stroke:#0000;stroke-width:14px;cursor:pointer}.wb-wire-line{fill:none;stroke:var(--wb-ink-dim);stroke-width:1.6px;pointer-events:none}.wb-wire-line.wb-dashed{stroke-dasharray:7 6}.wb-tone-fail .wb-wire-line{stroke:var(--state-failed)}.wb-tone-join .wb-wire-line{stroke:var(--accent)}.wb-wire-dot{fill:var(--wb-ink-dim);pointer-events:none}.wb-wire-label{fill:var(--wb-ink);font-size:var(--type-meta);text-anchor:middle;paint-order:stroke;stroke:var(--wb-board);stroke-width:5px;pointer-events:none}.wb-note{cursor:pointer}.wb-note-card{fill:#2a2213;stroke:var(--wb-note);stroke-width:1.2px}.wb-note-text{fill:#f8e7c4;font-size:var(--type-meta)}.wb-note-byline{fill:#c9a868;font-size:var(--type-meta)}.wb-resolved{opacity:.5}.wb-legend-text{fill:var(--wb-ink-dim);font-size:var(--type-meta)}.wb-caption{fill:var(--wb-ink-dim);font-size:var(--type-body)}.wb-element.is-selected .wb-box-outline,.wb-element.is-selected .wb-frame-outline,.wb-element.is-selected .wb-note-card{stroke:var(--accent);stroke-width:2.4px}.wb-element.is-selected .wb-wire-line{stroke:var(--accent);stroke-width:2.6px}.wb-dock{border:1px solid var(--border-dim);border-radius:var(--radius-lg);flex-direction:column;grid-area:2/1;width:42vw;min-width:320px;max-width:70vw;min-height:0;display:flex;overflow:hidden}.wb-dock[hidden]{display:none}.wb-dock-bar{border-bottom:1px solid var(--border-dim);font-size:var(--type-meta);color:var(--text-dim);flex-wrap:wrap;align-items:center;gap:8px;padding:4px 8px;display:flex}.wb-dock-bar .wb-button{white-space:nowrap;flex:none}.wb-dock>.wb-docked-card{flex:1;min-height:0}[data-layout=phone] .boards-view{padding:8px}[data-layout=phone] .wb-toolbar .wb-button{display:none}[data-layout=phone] .wb-toolbar .wb-button[data-phone-visible]{display:inline-flex}[data-layout=phone] .wb-canvas{min-height:60vh}}
|
|
Binary file
|