glimmervoid 0.52.2-next.717 → 0.52.2-next.718
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 +16 -16
- package/dist/chunks/{adapters-DVLB89jS.js → adapters-Dvb7KXnO.js} +1 -1
- package/dist/chunks/{adapters-BZIMzahV.js → adapters-QeHAvLKT.js} +6 -6
- package/dist/chunks/{agent-api-cli-9qUAra6H.js → agent-api-cli-CZPOzaRb.js} +3 -3
- package/dist/chunks/agent-api-cli-CqfBqnBN.js +1 -0
- package/dist/chunks/{agent-api-core-D7uXAtaD.js → agent-api-core-B3qq8oek.js} +2 -2
- package/dist/chunks/{agent-setup-cli-B5KkKpNs.js → agent-setup-cli-Dbwb7jtf.js} +1 -1
- package/dist/chunks/{config-B2OU2Iqi.js → config-BdItI6F3.js} +33 -15
- package/dist/chunks/{config-store-D4DR9OEd.js → config-store-CHFS_vNw.js} +2 -2
- package/dist/chunks/config-store-CoLRNzto.js +1 -0
- package/dist/chunks/{grok-g9A0aspr.js → grok-B_9N78_d.js} +1 -1
- package/dist/chunks/{kimi-CS5vzI0B.js → kimi-YAqn6G1W.js} +2 -2
- package/dist/chunks/kimi-_j4Imdso.js +1 -0
- package/dist/chunks/{main-BnooYTEl.js → main-BHMjdBfS.js} +165 -52
- package/dist/chunks/{pack-agent-DpnKPAtg.js → pack-agent-BY3gEwjx.js} +3 -3
- package/dist/chunks/{pack-bridge-WNNqDyiA.js → pack-bridge-BgB2p-Hg.js} +1 -1
- package/dist/chunks/{packs-cli-DQxfJFtt.js → packs-cli-CjAfzj-I.js} +4 -4
- package/dist/chunks/packs-cli-DE8O3Xt5.js +1 -0
- package/dist/chunks/{pair-cli-DNmRcl4X.js → pair-cli-BG4FUb5y.js} +2 -2
- package/dist/chunks/{pr-flows-cli-Bxt46jB7.js → pr-flows-cli-D8Njf3EF.js} +6 -6
- package/dist/chunks/{pr-flows-external-C5CFVtqo.js → pr-flows-external-CaziHHty.js} +3 -3
- package/dist/chunks/{remote-config-BALm2K3q.js → remote-config-Dm7-_lHb.js} +1 -1
- package/dist/chunks/{session-D5cMVNNw.js → session-DC6dGYjf.js} +4 -4
- package/dist/chunks/{settings-cli-DZfLJ_nm.js → settings-cli-C39NaAB1.js} +5 -5
- package/dist/chunks/{settings-readout-core-DdYT2sH-.js → settings-readout-core-CtligFID.js} +2 -2
- package/dist/chunks/{spawn-env-CpyY0k2I.js → spawn-env-aigWM-7F.js} +1 -1
- package/dist/chunks/{ssh-sign-cli-DTNecZVM.js → ssh-sign-cli-DmT55jSe.js} +2 -2
- package/dist/chunks/{whiteboard-svg-core-COyGvqjk.js → whiteboard-svg-core-tSYpbhy7.js} +130 -42
- package/dist/client/assets/{action-status-BcxZNfpU.js → action-status-CsphqLIp.js} +1 -1
- package/dist/client/assets/action-status-CsphqLIp.js.br +0 -0
- package/dist/client/assets/arena-panel-Bv1GFFYt.js +2 -0
- package/dist/client/assets/arena-panel-Bv1GFFYt.js.br +0 -0
- package/dist/client/assets/{benchmark-panel-BKsb7Etg.js → benchmark-panel-5fv_Oxla.js} +1 -1
- package/dist/client/assets/benchmark-panel-5fv_Oxla.js.br +0 -0
- package/dist/client/assets/boards-view-BaESRi6r.js +1 -0
- package/dist/client/assets/boards-view-BaESRi6r.js.br +0 -0
- package/dist/client/assets/button-oL7ZznmQ.js +1 -0
- package/dist/client/assets/button-oL7ZznmQ.js.br +0 -0
- package/dist/client/assets/{card-actions-DiKuCoZo.js → card-actions-BF783lHX.js} +1 -1
- package/dist/client/assets/{card-registry-B9qwnepu.js → card-registry-D_kyKNFR.js} +1 -1
- package/dist/client/assets/card-registry-D_kyKNFR.js.br +0 -0
- package/dist/client/assets/community-panel-B7epbRm0.js +1 -0
- package/dist/client/assets/community-panel-B7epbRm0.js.br +0 -0
- package/dist/client/assets/{control-ws-B1wIrzsT.js → control-ws-BFTcI_Sk.js} +1 -1
- package/dist/client/assets/control-ws-BFTcI_Sk.js.br +0 -0
- package/dist/client/assets/{dialogs-Ce7zHnNp.js → dialogs-Ctt5emuC.js} +1 -1
- package/dist/client/assets/dialogs-Ctt5emuC.js.br +0 -0
- package/dist/client/assets/{doc-editor-ui-DhRIbCxE.js → doc-editor-ui-xleuE4MO.js} +1 -1
- package/dist/client/assets/doc-editor-ui-xleuE4MO.js.br +0 -0
- package/dist/client/assets/{feature-hint-D-rIFIk8.js → feature-hint-b6exr5CR.js} +1 -1
- package/dist/client/assets/feature-hint-b6exr5CR.js.br +0 -0
- package/dist/client/assets/{first-run-checklist-CQRAM7P3.js → first-run-checklist-C7djtTNv.js} +1 -1
- package/dist/client/assets/first-run-checklist-C7djtTNv.js.br +0 -0
- package/dist/client/assets/{hooks-panel-Dq3q3lWO.js → hooks-panel-Dkcnyj5B.js} +1 -1
- package/dist/client/assets/hooks-panel-Dkcnyj5B.js.br +0 -0
- package/dist/client/assets/index-3fWDFbDT.js +75 -0
- package/dist/client/assets/index-3fWDFbDT.js.br +0 -0
- package/dist/client/assets/issues-panel-_JLQ_x1R.js +1 -0
- package/dist/client/assets/issues-panel-_JLQ_x1R.js.br +0 -0
- package/dist/client/assets/lane-read-token-step-C9pcz9qR.js +10 -0
- package/dist/client/assets/lane-read-token-step-C9pcz9qR.js.br +0 -0
- package/dist/client/assets/{menu-D2qOvNcJ.js → menu-YgFIqpxB.js} +1 -1
- package/dist/client/assets/menu-YgFIqpxB.js.br +0 -0
- package/dist/client/assets/{modal-Z_wy3vHz.js → modal-CmB-mwt3.js} +1 -1
- package/dist/client/assets/modal-CmB-mwt3.js.br +0 -0
- package/dist/client/assets/my-prs-panel-C0VYcvsc.js +1 -0
- package/dist/client/assets/my-prs-panel-C0VYcvsc.js.br +0 -0
- package/dist/client/assets/{nyan-cat-QgasO1Hc.js → nyan-cat-Cb_CKqJh.js} +1 -1
- package/dist/client/assets/nyan-cat-Cb_CKqJh.js.br +0 -0
- package/dist/client/assets/{phone-shell-BR_ZaAX1.js → phone-shell-CLcAGq8S.js} +1 -1
- package/dist/client/assets/phone-shell-CLcAGq8S.js.br +0 -0
- package/dist/client/assets/{plan-face-BH3XRQ8O.js → plan-face-BJORTwXM.js} +2 -2
- package/dist/client/assets/plan-face-BJORTwXM.js.br +0 -0
- package/dist/client/assets/{plan-render-XF4JURu2.js → plan-render-CaCl4QxK.js} +1 -1
- package/dist/client/assets/plan-render-CaCl4QxK.js.br +0 -0
- package/dist/client/assets/{pr-queue-columns-DBivwgyQ.js → pr-queue-columns-CfyQTUp_.js} +1 -1
- package/dist/client/assets/pr-queue-columns-CfyQTUp_.js.br +0 -0
- package/dist/client/assets/{pr-status-icon-BFjgx4k6.js → pr-status-icon-C-44DKID.js} +1 -1
- package/dist/client/assets/pr-status-icon-C-44DKID.js.br +0 -0
- package/dist/client/assets/{radar-panel-BryQCoZt.js → radar-panel-BeEemvgp.js} +1 -1
- package/dist/client/assets/radar-panel-BeEemvgp.js.br +0 -0
- package/dist/client/assets/{repo-roots-adder-CVnaeWRe.js → repo-roots-adder-BaME-IsD.js} +1 -1
- package/dist/client/assets/repo-roots-adder-BaME-IsD.js.br +0 -0
- package/dist/client/assets/{resume-dialog-CGXPpbcf.js → resume-dialog-BEWGy5_2.js} +1 -1
- package/dist/client/assets/resume-dialog-BEWGy5_2.js.br +0 -0
- package/dist/client/assets/review-queue-panel-DqGTF9JI.js +1 -0
- package/dist/client/assets/review-queue-panel-DqGTF9JI.js.br +0 -0
- package/dist/client/assets/{session-actions-B9VgzD_5.js → session-actions-Db4x4n2a.js} +2 -2
- package/dist/client/assets/session-actions-Db4x4n2a.js.br +0 -0
- package/dist/client/assets/{session-row-jv1wwMNq.js → session-row-DP1f_mpH.js} +1 -1
- package/dist/client/assets/session-row-DP1f_mpH.js.br +0 -0
- package/dist/client/assets/{session-tick-BFp2Hu24.js → session-tick-Cu958tSf.js} +1 -1
- package/dist/client/assets/session-tick-Cu958tSf.js.br +0 -0
- package/dist/client/assets/settings-panel-DDm4QfeE.js +4 -0
- package/dist/client/assets/settings-panel-DDm4QfeE.js.br +0 -0
- package/dist/client/assets/{setup-step-6fxZpk2u.js → setup-step-qMoYS0vS.js} +1 -1
- package/dist/client/assets/setup-step-qMoYS0vS.js.br +0 -0
- package/dist/client/assets/trace-panel-zuMHzaUY.js +2 -0
- package/dist/client/assets/trace-panel-zuMHzaUY.js.br +0 -0
- package/dist/client/assets/usage-panel-FcmwhFDK.js +1 -0
- package/dist/client/assets/usage-panel-FcmwhFDK.js.br +0 -0
- package/dist/client/assets/your-day-tip-B1jqywxQ.js +1 -0
- package/dist/client/assets/your-day-tip-B1jqywxQ.js.br +0 -0
- package/dist/client/index.html +12 -12
- package/dist/client/index.html.br +0 -0
- package/dist/server/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/agent-api-cli-Bp2Ybd-A.js +0 -1
- package/dist/chunks/config-store-DQb3io8f.js +0 -1
- package/dist/chunks/kimi-DxsUbHXk.js +0 -1
- package/dist/chunks/packs-cli-DHkPAEsl.js +0 -1
- package/dist/client/assets/action-status-BcxZNfpU.js.br +0 -0
- package/dist/client/assets/arena-panel-CWX9ItYR.js +0 -2
- package/dist/client/assets/arena-panel-CWX9ItYR.js.br +0 -0
- package/dist/client/assets/benchmark-panel-BKsb7Etg.js.br +0 -0
- package/dist/client/assets/boards-view-CQ1kbfmI.js +0 -1
- package/dist/client/assets/boards-view-CQ1kbfmI.js.br +0 -0
- package/dist/client/assets/button-DVUhX7ZS.js +0 -1
- package/dist/client/assets/button-DVUhX7ZS.js.br +0 -0
- package/dist/client/assets/card-registry-B9qwnepu.js.br +0 -0
- package/dist/client/assets/community-panel-DXu1PnC_.js +0 -1
- package/dist/client/assets/community-panel-DXu1PnC_.js.br +0 -0
- package/dist/client/assets/control-ws-B1wIrzsT.js.br +0 -0
- package/dist/client/assets/dialogs-Ce7zHnNp.js.br +0 -0
- package/dist/client/assets/doc-editor-ui-DhRIbCxE.js.br +0 -0
- package/dist/client/assets/feature-hint-D-rIFIk8.js.br +0 -0
- package/dist/client/assets/first-run-checklist-CQRAM7P3.js.br +0 -0
- package/dist/client/assets/hooks-panel-Dq3q3lWO.js.br +0 -0
- package/dist/client/assets/index-CuzY5Rtu.js +0 -75
- package/dist/client/assets/index-CuzY5Rtu.js.br +0 -0
- package/dist/client/assets/issues-panel-CyKLbuTd.js +0 -1
- package/dist/client/assets/issues-panel-CyKLbuTd.js.br +0 -0
- package/dist/client/assets/lane-read-token-step-C5MOm8DA.js +0 -10
- package/dist/client/assets/lane-read-token-step-C5MOm8DA.js.br +0 -0
- package/dist/client/assets/menu-D2qOvNcJ.js.br +0 -0
- package/dist/client/assets/modal-Z_wy3vHz.js.br +0 -0
- package/dist/client/assets/my-prs-panel-CsQFHR9c.js +0 -1
- package/dist/client/assets/my-prs-panel-CsQFHR9c.js.br +0 -0
- package/dist/client/assets/nyan-cat-QgasO1Hc.js.br +0 -0
- package/dist/client/assets/phone-shell-BR_ZaAX1.js.br +0 -0
- package/dist/client/assets/plan-face-BH3XRQ8O.js.br +0 -0
- package/dist/client/assets/plan-render-XF4JURu2.js.br +0 -0
- package/dist/client/assets/pr-queue-columns-DBivwgyQ.js.br +0 -0
- package/dist/client/assets/pr-status-icon-BFjgx4k6.js.br +0 -0
- package/dist/client/assets/radar-panel-BryQCoZt.js.br +0 -0
- package/dist/client/assets/repo-roots-adder-CVnaeWRe.js.br +0 -0
- package/dist/client/assets/resume-dialog-CGXPpbcf.js.br +0 -0
- package/dist/client/assets/review-queue-panel-DXkOviE-.js +0 -1
- package/dist/client/assets/review-queue-panel-DXkOviE-.js.br +0 -0
- package/dist/client/assets/session-actions-B9VgzD_5.js.br +0 -0
- package/dist/client/assets/session-row-jv1wwMNq.js.br +0 -0
- package/dist/client/assets/session-tick-BFp2Hu24.js.br +0 -0
- package/dist/client/assets/settings-panel-DBQMlt0j.js +0 -4
- package/dist/client/assets/settings-panel-DBQMlt0j.js.br +0 -0
- package/dist/client/assets/setup-step-6fxZpk2u.js.br +0 -0
- package/dist/client/assets/trace-panel-4Gq_WAui.js +0 -2
- package/dist/client/assets/trace-panel-4Gq_WAui.js.br +0 -0
- package/dist/client/assets/usage-panel-DubESWcL.js +0 -1
- package/dist/client/assets/usage-panel-DubESWcL.js.br +0 -0
- package/dist/client/assets/your-day-tip-BGO0FEmt.js +0 -1
- package/dist/client/assets/your-day-tip-BGO0FEmt.js.br +0 -0
|
@@ -2,10 +2,10 @@ 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 examplePacksDir, c as resolveFfmpegPath, d as equalsIgnoringCaseOnWindows, f as isPathInside, i as clientDir, l as resolvePackageBin, m as sanitizeWorktreeName, n as bundled, o as packageRoot, p as safePathSegment, r as cliPath, s as relayPath, t as assetRoot, u as caseFoldedPathKey } from "./runtime-paths-DfoHzN15.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 Op, $n as STATES, $t as TeamReviewStateEntry, A as SESSION_NAME_PATTERN, Bn as shortSha, Bt as PostingPlan, C as CONVERSATION_TOOL_RESULT_HOOK_EVENT, Dt as MyPrsSnapshot, Et as MyPrThreadsResponse, Fn as prActionReportPath, Ft as EarlierReview, G as Board, Gt as ReviewFinding, Hn as NODE_ID_RE, It as FindingSeverity, Jt as ReviewVerdict, K as BoardRecord, Kt as ReviewResult, M as SHOWN_FILE_CAP_BYTES, Mn as PrThreadUnresolveResponse, N as SIGN_URL_ENV, Nt as CommitSha$1, O as SESSION_DOC_BODY_CAP_BYTES, On as PrFlowsSettings, Ot as MyPrsState, P as SSH_SIGN_BODY_CAP_BYTES, Pt as DECIDING_REVIEW_STATES, Q as Note, Qn as RESTARTABLE_STATES, Qt as TeamReviewResolveResponse, Rt as GithubReviewState, S as CONVERSATION_PERMISSION_HOOK_EVENT, St as MyPrMergeWhenReadyRequest, T as ConversationQuestion, Tn as PrFlowSaveRuleRequest, Tt as MyPrThreadNode, U as BOARD_MEDIA_MAX_EDGE_PX, Un as REPO_SLUG_RE, Ut as ReviewComment, V as TaskTitle, Vn as GH_SEGMENT, Vt as PrDetail, Wn as repoParts, Wt as ReviewDraft, Xn as KILLABLE_STATES, Y as Box, Yn as BADGE_LABELS, Yt as TeamReviewActionRequest, Z as Frame, Zn as MERGEABLE_LIVE_STATES, Zt as TeamReviewCompareFiles, _ as AgentSettingsRequest, _n as PrFlowDisposeRequest, _t as MyPrLaneEntry, an as decisionAsIfApprovalRequired, b as COHERENCE_HOOKS_INACTIVE, bn as PrFlowItemRequest, c as AgentCloseRequest, cn as PR_ACTION_REPORT_BODY_CAP_BYTES, ct as sparseBoardRecord, d as AgentPacksRequest, dn as PR_ACTION_TOKEN_ENV, dt as MyPr, en as TeamReviewStatus, et as Panel, f as AgentPullRequestRequest, ft as MyPrAutoRebase, hn as PrFlowApproveRequest, ht as MyPrKeepMergeableRequest, i as ASK_USER_QUESTION_TOOL_NAME, in as canApproveAfterComment, it as WHITEBOARD_LIMITS, j as SESSION_NAME_RULE_TEXT, jn as PrThreadReplyResponse, kn as PrFlowsState, l as AgentEditRequest, ln as PR_ACTION_REPORT_ROUTE, lt as sparseBoardReply, mn as PrActionRunRequest, mt as MyPrCheckContextsResponse, nn as TeamReviewThreadResult, nt as Unit, o as AgentAttentionRequest, pn as PrActionReportBody, pt as MyPrCheckContext, qt as ReviewThreadId, r as AGENT_URL_ENV, rn as TeamReviewThreadsRepository, rt as WHITEBOARD_ASSET_ROUTE, sn as hasStandingViewerApproval, st as Wire, tn as TeamReviewThreadCommentsResponse, un as PR_ACTION_REPORT_URL_ENV, ut as LinkedPr, v as AgentSpawnRequest, vt as MyPrMergeMethod, wn as PrFlowRule, x as CONVERSATION_APPROVAL_SUMMARY_MAX_CHARS, xt as MyPrMergeStateResponse, y as AgentWhyRequest, yt as MyPrMergeRequest, z as SshSignRequest, zn as HEX_SHA_RE, zt as PostedReviewEvent } from "./session-DC6dGYjf.js";
|
|
6
6
|
import { c as runCommandSafely$1, i as execFileSync, l as spawn, n as execFile, r as execFileAsync, s as refuseLaunchesOf, t as assertLaunchable } from "./child-process-safe-BIh8yQ0I.js";
|
|
7
|
-
import { $ as WorkflowsSettings, A as BenchmarkId, At as IssuesStatus, B as CommunityDraft, Bt as changeMapFactId, C as RaceRecord, D as EFFORT_OPTION_ID, Dt as IssueUpdate, E as DEFAULT_MODELS, Et as IssueKey, F as CommitComparison, Ft as MAX_RAW_LINE_CHARS, G as SKILL_NAME_RE, H as CommunityState, I as MergedPrListing, It as TraceCheckpoint, J as GithubPrLightSearchNode, K as GithubPrDetailNode, Kt as GithubTeam, L as MinedPrReviewData, Lt as TraceRecord, M as BenchmarkRun, N as BenchmarkStatus, Nt as HookEnvelope, O as BenchmarkActionRequest, Ot as IssuesSearchResponse, P as BenchmarkSuite, Pt as SessionSetup, Q as WorkflowLabelName, Qt as pullRequestKeyFromReference, R as PrCheckoutCaseInput, Rt as CoherenceJournalOutput, T as CATALOG_AGENT_IDS, Tt as GithubIssueResponse, U as CommunityVerdict, Ut as CLIENT_LOG_TEXT_MAX_CHARS, V as CommunityItem, Vt as CHANGES_POLL_INTERVAL_MS, W as DISCORD_CHANNEL_NAME_RE, Wt as CONTROL_FRAME_MAX_BYTES, X as comparablePrKey, Y as GithubPrsFrame, Z as WorkflowCommentBody, _ as FeatureHintState, a as ConfigUpdate, an as PLAN_RESULT_HOOK_EVENT, c as SHELL_AGENT_ID, cn as PlanRevision, et as WorkflowsState, f as USAGE_COST_MODES, g as PackApproveRequest, h as ClientMessage, in as PLAN_HOOK_OUTPUT_MAX_CHARS, j as BenchmarkJudgement, jt as issuePullRequestStateFromGithub, k as BenchmarkCase, kt as IssuesState, ln as parseExitPlanModeHookPayload, n as BUILTIN_AGENT_IDS, nn as PLAN_BODY_CAP_BYTES, on as PLAN_TOOL_NAME, ot as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, p as USAGE_VENDOR_KEYS, q as GithubPrKey, r as BrowserConfig, rn as PLAN_HOOK_EVENT, s as RUNTIME_CONFIG_SCALAR_KEYS, sn as PlanDecision, tn as UpdateJournal, u as configIssueMessage, un as planTitle, v as HINT_FEATURES, w as RaceSpec, wt as GithubIssuePullRequestsRepository, x as JudgeResult, y as HINT_VIEW_BY_FEATURE, yt as USAGE_INTEGER_RANGES, z as CommunityActionRequest, zt as ChangeMap } from "./config-
|
|
8
|
-
import { $ as routeAgentNotes, A as isSubstantivePrompt, B as resolveResumeTarget, C as decideTaskTitleRefinement, D as extractOscTaskTitle, E as extractNotifiedTaskIds, F as seedTaskTitleSources, G as listRepoWorktreePaths, H as shouldAdoptReportedResumeId, I as AUTO_CONTINUE_PROMPT, J as describeSessionLimits, K as isAutoNameOf, L as RESUME_ID_RE, M as parseRefinedTaskTitle, N as resolveRefocusTaskTitle, O as extractPromptTaskTitle, P as resolveTaskTitle, Q as promptHintFor, R as isConversationReplacedAtStartup, S as cleanTaskPrompt, T as extractHookTaskTitle, U as claudeProjectsDir, V as resumePromptFor, W as listRepoConversations, X as hintFor, Z as permitsHelpCommand, _ as projectReviewDetail, a as checkAgentReply, b as buildTaskTitleRefinementPrompt, c as deriveChildSessionName, d as describePushLanding, et as supervisionLine, f as describeRoleRefusal, g as projectMyPrs, h as parseAgentVerb, j as parseRefinedSessionName, k as isSelfWakePrompt, l as describeChildEndNote, n as REFUSAL_REASON, o as decideAgentRequest, p as describeUnpushedCloseRefusal, q as nextSuggestedName, s as decideSpawnAllowance, tt as toolHookFactsOf, u as describeKeptChildAttention, v as projectReviews, w as extractAiTitle, x as chooseRefinedSessionName, y as buildPersistedTaskTitle, z as pickAutoResume } from "./agent-api-core-
|
|
7
|
+
import { $ as WorkflowsSettings, A as BenchmarkId, At as IssuesStatus, B as CommunityDraft, Bt as changeMapFactId, C as RaceRecord, D as EFFORT_OPTION_ID, Dt as IssueUpdate, E as DEFAULT_MODELS, Et as IssueKey, F as CommitComparison, Ft as MAX_RAW_LINE_CHARS, G as SKILL_NAME_RE, H as CommunityState, I as MergedPrListing, It as TraceCheckpoint, J as GithubPrLightSearchNode, K as GithubPrDetailNode, Kt as GithubTeam, L as MinedPrReviewData, Lt as TraceRecord, M as BenchmarkRun, N as BenchmarkStatus, Nt as HookEnvelope, O as BenchmarkActionRequest, Ot as IssuesSearchResponse, P as BenchmarkSuite, Pt as SessionSetup, Q as WorkflowLabelName, Qt as pullRequestKeyFromReference, R as PrCheckoutCaseInput, Rt as CoherenceJournalOutput, T as CATALOG_AGENT_IDS, Tt as GithubIssueResponse, U as CommunityVerdict, Ut as CLIENT_LOG_TEXT_MAX_CHARS, V as CommunityItem, Vt as CHANGES_POLL_INTERVAL_MS, W as DISCORD_CHANNEL_NAME_RE, Wt as CONTROL_FRAME_MAX_BYTES, X as comparablePrKey, Y as GithubPrsFrame, Z as WorkflowCommentBody, _ as FeatureHintState, a as ConfigUpdate, an as PLAN_RESULT_HOOK_EVENT, c as SHELL_AGENT_ID, cn as PlanRevision, et as WorkflowsState, f as USAGE_COST_MODES, g as PackApproveRequest, h as ClientMessage, in as PLAN_HOOK_OUTPUT_MAX_CHARS, j as BenchmarkJudgement, jt as issuePullRequestStateFromGithub, k as BenchmarkCase, kt as IssuesState, ln as parseExitPlanModeHookPayload, n as BUILTIN_AGENT_IDS, nn as PLAN_BODY_CAP_BYTES, on as PLAN_TOOL_NAME, ot as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, p as USAGE_VENDOR_KEYS, q as GithubPrKey, r as BrowserConfig, rn as PLAN_HOOK_EVENT, s as RUNTIME_CONFIG_SCALAR_KEYS, sn as PlanDecision, tn as UpdateJournal, u as configIssueMessage, un as planTitle, v as HINT_FEATURES, w as RaceSpec, wt as GithubIssuePullRequestsRepository, x as JudgeResult, y as HINT_VIEW_BY_FEATURE, yt as USAGE_INTEGER_RANGES, z as CommunityActionRequest, zt as ChangeMap } from "./config-BdItI6F3.js";
|
|
8
|
+
import { $ as routeAgentNotes, A as isSubstantivePrompt, B as resolveResumeTarget, C as decideTaskTitleRefinement, D as extractOscTaskTitle, E as extractNotifiedTaskIds, F as seedTaskTitleSources, G as listRepoWorktreePaths, H as shouldAdoptReportedResumeId, I as AUTO_CONTINUE_PROMPT, J as describeSessionLimits, K as isAutoNameOf, L as RESUME_ID_RE, M as parseRefinedTaskTitle, N as resolveRefocusTaskTitle, O as extractPromptTaskTitle, P as resolveTaskTitle, Q as promptHintFor, R as isConversationReplacedAtStartup, S as cleanTaskPrompt, T as extractHookTaskTitle, U as claudeProjectsDir, V as resumePromptFor, W as listRepoConversations, X as hintFor, Z as permitsHelpCommand, _ as projectReviewDetail, a as checkAgentReply, b as buildTaskTitleRefinementPrompt, c as deriveChildSessionName, d as describePushLanding, et as supervisionLine, f as describeRoleRefusal, g as projectMyPrs, h as parseAgentVerb, j as parseRefinedSessionName, k as isSelfWakePrompt, l as describeChildEndNote, n as REFUSAL_REASON, o as decideAgentRequest, p as describeUnpushedCloseRefusal, q as nextSuggestedName, s as decideSpawnAllowance, tt as toolHookFactsOf, u as describeKeptChildAttention, v as projectReviews, w as extractAiTitle, x as chooseRefinedSessionName, y as buildPersistedTaskTitle, z as pickAutoResume } from "./agent-api-core-B3qq8oek.js";
|
|
9
9
|
import { a as rawTextOr, i as positiveNumberOr, n as isRecord$2, o as textOr, r as numberOr, t as coercedNumberOr } from "./coerce-oz_Z_6E7.js";
|
|
10
10
|
import { i as parseCommandLine, n as warnWhenGitIsTooOld } from "./git-version-BfOQqktJ.js";
|
|
11
11
|
import { t as HOOK_URL_ENV } from "./hook-relay-core-DA_bz2KA.js";
|
|
@@ -13,20 +13,20 @@ import { n as promptContextReplyOf, o as toolHookContextReplyOf, r as refocusRep
|
|
|
13
13
|
import { n as parseJsonRecord, t as parseJsonOrNull } from "./json-core-If8h-Qgy.js";
|
|
14
14
|
import { a as saneYoloFiles } from "./sane-yolo-BjUkqIoH.js";
|
|
15
15
|
import { r as knownWriteHookInput } from "./posthog-read-gate-core-CeSY56AB.js";
|
|
16
|
-
import { a as findDependencyCycle, i as cappedWarnings, n as escapeMarkup, o as planSteps$1, r as layoutBoard, s as unitsOf, t as boardSvgDocument } from "./whiteboard-svg-core-
|
|
16
|
+
import { a as findDependencyCycle, i as cappedWarnings, n as escapeMarkup, o as planSteps$1, r as layoutBoard, s as unitsOf, t as boardSvgDocument } from "./whiteboard-svg-core-tSYpbhy7.js";
|
|
17
17
|
import { a as mcpLaunchFor, o as parsePresentedCredential } from "./agent-config-DDpOIcFv.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, f as writeTextAtomic, g as createSerialQueue, h as createMemoryAdmission, i as createJsonStateWriter, m as createKeyedSerialQueue, n as appendJsonLines, o as loadJsonStateFile, p as writeTextAtomicSync, r as createJsonStateStore, s as loadJsonStateFileSync, t as appendJsonLine, u as writeJsonAtomic, v as isQueueAdmissionTimeout, w as parseCgroupV2Path, x as headroomFromReadings, y as cgroupAncestorPaths } from "./json-file-AKRVPqG1.js";
|
|
20
|
-
import { $ as buildAiGenerationEvents, Ct as isSameDirectoryPath, 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 adapterBucket, St as comparableDirectoryPath, U as DEEP_HISTORY_SCROLLBACK_LINES, X as TELEMETRY_BATCH_URL, Y as FIRST_RUN_NOTICE, Z as TELEMETRY_FLAGS_URL, _ as sessionIdFromBranch, a as generateProjectId, at as codexUserIdOf, b as DEFAULT_TIMER_FNS, ct as decideTelemetryConsent, d as DEFAULT_CONFIG, dt as parsePosthogReleaseId, et as buildBrowserExceptionProperties, f as DEFAULT_BRANCH_GC_PREFIXES, ft as resolveProjectToken, g as planWorktreeGc, gt as TelemetryState, h as planBranchGc, ht as TELEMETRY_EVENT_SCHEMAS, i as ensureProjectIds, it as claudeAccountUuidOf, k as SETTINGS_INDEX, lt as exceptionFingerprint, m as matchedPrefix, mt as PendingCrashReport, n as createConfigStore, nt as buildPersonProperties, o as glimmervoidHomeDir$1, ot as decideIsDevInstall, p as isGcCandidateWorktree, pt as DashboardTelemetryReport, q as parseDataAttach, r as ABORT_CONFIG_SAVE, rt as classifySessionExit, st as decideRemoteTelemetryState, tt as buildExceptionProperties, ut as nodeMajorVersion, v as usablePrefixes, x as unrefTimer, xt as canonicalizePath, y as worktreeIntegrationTips, yt as stableConfigKey, z as valueAtPath } from "./config-store-
|
|
21
|
-
import { i as resolveArgvCommandMatches, t as kimi } from "./kimi-
|
|
22
|
-
import { $ as grokHomes, A as decideUploadType, At as generateToken, B as containmentRefusalReason, Bt as readStoredHooks, C as parseRegistryLatest, Ct as shouldReplace, D as openContainedFile, Dt as HOOK_EVENTS, E as shortSha$1, Et as claudeCode, F as planUploadRetention, Ft as agentHookGroupOf, G as codexFallbackRoots, Gt as sweepOrphanedHostScratch, H as planContiguousRead, Ht as upsertHook, I as MAX_TRANSCRIPT_READ_BYTES, It as appendUserHooks, J as codexSessionIdFromPath, Jt as recordSweptPath, K as codexHomes, Kt as appendRemovalRecord, L as TRACE_TAIL_SCAN_BYTES, Lt as hooksForProject, M as framePathPaste, Mt as writeSessionSettings, N as imageMimeForUploadFilename, Nt as HOOK_EVENT_CATALOG, O as MAX_UPLOAD_BYTES, Ot as PLAN_HOLD_RELEASE_MS, P as isSafePathSegment, Pt as ID_RE, Q as expandTilde, R as committedOffsetFromTraceTailOrNull, Rt as normalizeHook, S as parseRegistryDeprecation, St as parseUsageLine, T as pickNewestPublished, Tt as vendorUsageEntry, U as resumeOffsetFrom, Ut as HOOK_TOOLS, V as isOversizedPartialLine, Vt as removeHook, W as withCommittedOffset, Wt as makeHostScratchDirectory, X as decideFileRead, Xt as listClaudeGlobalConfigPathCandidates, Y as continuationDelayMs, Yt as removalsJournalPath, 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, jt as sweepOrphans, k as buildUploadFilename, kt as buildHookSettings, 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, qt as appendRemovalRecordSync, 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$1, y as isCheckFresh, yt as isWithinGenerationRecencyWindow, z as completeLineBytes, zt as rawStoredHooks } from "./adapters-
|
|
20
|
+
import { $ as buildAiGenerationEvents, Ct as isSameDirectoryPath, 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 adapterBucket, St as comparableDirectoryPath, U as DEEP_HISTORY_SCROLLBACK_LINES, X as TELEMETRY_BATCH_URL, Y as FIRST_RUN_NOTICE, Z as TELEMETRY_FLAGS_URL, _ as sessionIdFromBranch, a as generateProjectId, at as codexUserIdOf, b as DEFAULT_TIMER_FNS, ct as decideTelemetryConsent, d as DEFAULT_CONFIG, dt as parsePosthogReleaseId, et as buildBrowserExceptionProperties, f as DEFAULT_BRANCH_GC_PREFIXES, ft as resolveProjectToken, g as planWorktreeGc, gt as TelemetryState, h as planBranchGc, ht as TELEMETRY_EVENT_SCHEMAS, i as ensureProjectIds, it as claudeAccountUuidOf, k as SETTINGS_INDEX, lt as exceptionFingerprint, m as matchedPrefix, mt as PendingCrashReport, n as createConfigStore, nt as buildPersonProperties, o as glimmervoidHomeDir$1, ot as decideIsDevInstall, p as isGcCandidateWorktree, pt as DashboardTelemetryReport, q as parseDataAttach, r as ABORT_CONFIG_SAVE, rt as classifySessionExit, st as decideRemoteTelemetryState, tt as buildExceptionProperties, ut as nodeMajorVersion, v as usablePrefixes, x as unrefTimer, xt as canonicalizePath, y as worktreeIntegrationTips, yt as stableConfigKey, z as valueAtPath } from "./config-store-CHFS_vNw.js";
|
|
21
|
+
import { i as resolveArgvCommandMatches, t as kimi } from "./kimi-YAqn6G1W.js";
|
|
22
|
+
import { $ as grokHomes, A as decideUploadType, At as generateToken, B as containmentRefusalReason, Bt as readStoredHooks, C as parseRegistryLatest, Ct as shouldReplace, D as openContainedFile, Dt as HOOK_EVENTS, E as shortSha$1, Et as claudeCode, F as planUploadRetention, Ft as agentHookGroupOf, G as codexFallbackRoots, Gt as sweepOrphanedHostScratch, H as planContiguousRead, Ht as upsertHook, I as MAX_TRANSCRIPT_READ_BYTES, It as appendUserHooks, J as codexSessionIdFromPath, Jt as recordSweptPath, K as codexHomes, Kt as appendRemovalRecord, L as TRACE_TAIL_SCAN_BYTES, Lt as hooksForProject, M as framePathPaste, Mt as writeSessionSettings, N as imageMimeForUploadFilename, Nt as HOOK_EVENT_CATALOG, O as MAX_UPLOAD_BYTES, Ot as PLAN_HOLD_RELEASE_MS, P as isSafePathSegment, Pt as ID_RE, Q as expandTilde, R as committedOffsetFromTraceTailOrNull, Rt as normalizeHook, S as parseRegistryDeprecation, St as parseUsageLine, T as pickNewestPublished, Tt as vendorUsageEntry, U as resumeOffsetFrom, Ut as HOOK_TOOLS, V as isOversizedPartialLine, Vt as removeHook, W as withCommittedOffset, Wt as makeHostScratchDirectory, X as decideFileRead, Xt as listClaudeGlobalConfigPathCandidates, Y as continuationDelayMs, Yt as removalsJournalPath, 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, jt as sweepOrphans, k as buildUploadFilename, kt as buildHookSettings, 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, qt as appendRemovalRecordSync, 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$1, y as isCheckFresh, yt as isWithinGenerationRecencyWindow, z as completeLineBytes, zt as rawStoredHooks } from "./adapters-QeHAvLKT.js";
|
|
23
23
|
import { c as CODEX_HOME_PROFILE, l as KIMI_HOME_PROFILE } from "./agent-home-core-CbCN4fxx.js";
|
|
24
24
|
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-UaqVWfqV.js";
|
|
25
|
-
import { A as prActionRunAfterExit, B as unknownActionWarnings, C as fixLocallyPrompt, D as packPathsOf, E as mergeItems, F as scopedToRepo, G as withPrActionRun, H as withHandled, I as shouldTellBranchMoved, J as decideHostAllowed, K as withReopened, L as sourceCandidates$1, M as prFlowRules, N as prFlowSetup, O as plannedActions, P as savedRuleFor, R as teammateThreadItems, T as itemLocation, U as withInterruptedRuns, V as visibleRun, W as withOnlyOpenPrs, _ as packRow, b as branchMovedNote, c as packsStatePath, d as PACK_FILE_NAME, f as PacksState, g as packFileHeaders, h as approvedPackThemes, m as approvedPackPanels, n as readPacksForAgent, o as PACKS_DIR_NAME, q as withRuleRun, s as packDirsUnder, u as readPackDir, v as pendingPackNote, w as flaggingReviewers, x as commandFingerprint, y as acceptReport, z as threadCandidates } from "./pack-agent-
|
|
25
|
+
import { A as prActionRunAfterExit, B as unknownActionWarnings, C as fixLocallyPrompt, D as packPathsOf, E as mergeItems, F as scopedToRepo, G as withPrActionRun, H as withHandled, I as shouldTellBranchMoved, J as decideHostAllowed, K as withReopened, L as sourceCandidates$1, M as prFlowRules, N as prFlowSetup, O as plannedActions, P as savedRuleFor, R as teammateThreadItems, T as itemLocation, U as withInterruptedRuns, V as visibleRun, W as withOnlyOpenPrs, _ as packRow, b as branchMovedNote, c as packsStatePath, d as PACK_FILE_NAME, f as PacksState, g as packFileHeaders, h as approvedPackThemes, m as approvedPackPanels, n as readPacksForAgent, o as PACKS_DIR_NAME, q as withRuleRun, s as packDirsUnder, u as readPackDir, v as pendingPackNote, w as flaggingReviewers, x as commandFingerprint, y as acceptReport, z as threadCandidates } from "./pack-agent-BY3gEwjx.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, u as wellKnownAgentSocketPaths } from "./ssh-signing-core-BbhBpAhR.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-
|
|
29
|
-
import { t as createPrFlowsExternal } from "./pr-flows-external-
|
|
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-Dm7-_lHb.js";
|
|
28
|
+
import { n as configFileViewOf, u as readSettingsForAgent } from "./settings-readout-core-CtligFID.js";
|
|
29
|
+
import { t as createPrFlowsExternal } from "./pr-flows-external-CaziHHty.js";
|
|
30
30
|
import { createRequire } from "node:module";
|
|
31
31
|
import fs, { readFileSync } from "node:fs";
|
|
32
32
|
import path, { join, resolve } from "node:path";
|
|
@@ -7356,6 +7356,14 @@ var ELEMENT_SCHEMAS = Object.freeze({
|
|
|
7356
7356
|
});
|
|
7357
7357
|
var NOTE_PREVIEW_CHARS = 80;
|
|
7358
7358
|
var OK = { ok: true };
|
|
7359
|
+
var DIFFED_BOARD_FIELDS = [
|
|
7360
|
+
"title",
|
|
7361
|
+
"caption",
|
|
7362
|
+
"legend",
|
|
7363
|
+
"columns",
|
|
7364
|
+
"lanes",
|
|
7365
|
+
"codeSessionId"
|
|
7366
|
+
];
|
|
7359
7367
|
var OPERATOR_AUTHOR = Object.freeze({
|
|
7360
7368
|
id: "operator",
|
|
7361
7369
|
name: "operator"
|
|
@@ -7383,8 +7391,8 @@ function refuse(error) {
|
|
|
7383
7391
|
function isBox(board, id) {
|
|
7384
7392
|
return board.elements[id]?.kind === "box";
|
|
7385
7393
|
}
|
|
7386
|
-
function checkReferences(board, element) {
|
|
7387
|
-
if (element.kind === "box") return checkBoxReferences(board, element);
|
|
7394
|
+
function checkReferences(board, element, previous) {
|
|
7395
|
+
if (element.kind === "box") return checkBoxReferences(board, element, previous);
|
|
7388
7396
|
if (element.kind === "unit") return checkUnitReferences(board, element);
|
|
7389
7397
|
if (element.kind === "wire") {
|
|
7390
7398
|
if (!isBox(board, element.from)) return refuse(`wire ${element.id} starts at ${element.from}, which is not a box`);
|
|
@@ -7407,16 +7415,17 @@ function checkWireOutput(board, wire) {
|
|
|
7407
7415
|
if (!from.outputs.some((output) => output.id === wire.fromOutput)) return refuse(`wire ${wire.id} starts at output ${wire.fromOutput}, which decision ${wire.from} does not have`);
|
|
7408
7416
|
return OK;
|
|
7409
7417
|
}
|
|
7410
|
-
function checkBoxOutputs(board, box) {
|
|
7418
|
+
function checkBoxOutputs(board, box, previous) {
|
|
7411
7419
|
if (box.shape !== "decision" && box.outputs.length > 0) return refuse(`box ${box.id} has outputs, which only a decision has, so set shape to decision`);
|
|
7412
7420
|
const outputIds = new Set(box.outputs.map((output) => output.id));
|
|
7413
7421
|
if (outputIds.size !== box.outputs.length) return refuse(`box ${box.id} has two outputs with the same id`);
|
|
7422
|
+
if ((previous?.kind === "box" ? previous.outputs : []).every((output) => outputIds.has(output.id))) return OK;
|
|
7414
7423
|
const strandedWire = Object.values(board.elements).find((element) => element.kind === "wire" && element.from === box.id && element.fromOutput !== null && !outputIds.has(element.fromOutput));
|
|
7415
7424
|
if (strandedWire?.kind === "wire") return refuse(`wire ${strandedWire.id} still starts at output ${strandedWire.fromOutput} of ${box.id}, so change or remove that wire first`);
|
|
7416
7425
|
return OK;
|
|
7417
7426
|
}
|
|
7418
|
-
function checkBoxReferences(board, box) {
|
|
7419
|
-
const outputs = checkBoxOutputs(board, box);
|
|
7427
|
+
function checkBoxReferences(board, box, previous) {
|
|
7428
|
+
const outputs = checkBoxOutputs(board, box, previous);
|
|
7420
7429
|
if (!outputs.ok) return outputs;
|
|
7421
7430
|
if (box.change === "relabeled" && !box.was) return refuse(`box ${box.id} is relabeled, so give its old title in was`);
|
|
7422
7431
|
if (box.column === null && box.near === null && box.at === null) return refuse(`box ${box.id} needs a place: a column, near another box, or at a point`);
|
|
@@ -7445,14 +7454,16 @@ function checkUnitReferences(board, unit) {
|
|
|
7445
7454
|
if (strangerId) return refuse(`unit ${unit.id} comes after ${strangerId}, which is not a unit on this board`);
|
|
7446
7455
|
return OK;
|
|
7447
7456
|
}
|
|
7448
|
-
function addElement(
|
|
7457
|
+
function addElement(draft, element, author) {
|
|
7458
|
+
const { board } = draft;
|
|
7449
7459
|
if (board.elements[element.id]) return refuse(`an element with id ${element.id} already exists`);
|
|
7450
|
-
if (
|
|
7460
|
+
if (draft.elementCount >= WHITEBOARD_LIMITS.elements) return refuse(`a board holds at most ${WHITEBOARD_LIMITS.elements} elements`);
|
|
7451
7461
|
if (element.kind === "unit" && unitsOf(board).length >= WHITEBOARD_LIMITS.units) return refuse(`a board holds at most ${WHITEBOARD_LIMITS.units} units`);
|
|
7452
7462
|
const stored = element.kind === "note" ? storedNote(element, author) : element;
|
|
7453
|
-
const references = checkReferences(board, stored);
|
|
7463
|
+
const references = checkReferences(board, stored, void 0);
|
|
7454
7464
|
if (!references.ok) return references;
|
|
7455
7465
|
board.elements[element.id] = stored;
|
|
7466
|
+
draft.elementCount += 1;
|
|
7456
7467
|
return OK;
|
|
7457
7468
|
}
|
|
7458
7469
|
function rewrittenNoteStamp(existing, fields, author) {
|
|
@@ -7473,16 +7484,44 @@ function setFields(board, id, fields, author) {
|
|
|
7473
7484
|
...fields
|
|
7474
7485
|
});
|
|
7475
7486
|
if (!parsed.success) return refuse(`${id}: ${parsed.error.issues[0]?.message ?? "invalid fields"}`);
|
|
7476
|
-
const references = checkReferences(board, parsed.data);
|
|
7487
|
+
const references = checkReferences(board, parsed.data, existing);
|
|
7477
7488
|
if (!references.ok) return references;
|
|
7478
7489
|
board.elements[id] = parsed.data;
|
|
7479
7490
|
return OK;
|
|
7480
7491
|
}
|
|
7481
|
-
function
|
|
7492
|
+
function boxIdsDependedOnBy(element) {
|
|
7493
|
+
if (element.kind === "box") return element.near ? [element.near.of] : [];
|
|
7494
|
+
if (element.kind === "wire") return [element.from, element.to];
|
|
7495
|
+
if (element.kind === "note") return [element.on];
|
|
7496
|
+
if (element.kind === "frame") return element.contains;
|
|
7497
|
+
return [];
|
|
7498
|
+
}
|
|
7499
|
+
function dependentIdsByBoxIdOf(board) {
|
|
7500
|
+
const dependentIdsByBoxId = /* @__PURE__ */ new Map();
|
|
7501
|
+
for (const element of Object.values(board.elements)) for (const boxId of boxIdsDependedOnBy(element)) {
|
|
7502
|
+
const dependentIds = dependentIdsByBoxId.get(boxId) ?? /* @__PURE__ */ new Set();
|
|
7503
|
+
dependentIds.add(element.id);
|
|
7504
|
+
dependentIdsByBoxId.set(boxId, dependentIds);
|
|
7505
|
+
}
|
|
7506
|
+
return dependentIdsByBoxId;
|
|
7507
|
+
}
|
|
7508
|
+
function currentDependentsOf(draft, boxId) {
|
|
7509
|
+
draft.dependentIdsByBoxId ??= dependentIdsByBoxIdOf(draft.board);
|
|
7510
|
+
return [...draft.dependentIdsByBoxId.get(boxId) ?? []].flatMap((dependentId) => {
|
|
7511
|
+
const element = draft.board.elements[dependentId];
|
|
7512
|
+
return element && boxIdsDependedOnBy(element).includes(boxId) ? [element] : [];
|
|
7513
|
+
});
|
|
7514
|
+
}
|
|
7515
|
+
function deleteElement(draft, id) {
|
|
7516
|
+
delete draft.board.elements[id];
|
|
7517
|
+
draft.elementCount -= 1;
|
|
7518
|
+
}
|
|
7519
|
+
function removeElement(draft, id) {
|
|
7520
|
+
const { board } = draft;
|
|
7482
7521
|
const existing = board.elements[id];
|
|
7483
7522
|
if (!existing) return refuse(`no element has id ${id}`);
|
|
7484
|
-
if (existing.kind === "box") pinBoxesNear(
|
|
7485
|
-
|
|
7523
|
+
if (existing.kind === "box") pinBoxesNear(draft, id);
|
|
7524
|
+
deleteElement(draft, id);
|
|
7486
7525
|
if (existing.kind === "unit") {
|
|
7487
7526
|
for (const unit of unitsOf(board)) if (unit.after.includes(id)) board.elements[unit.id] = {
|
|
7488
7527
|
...unit,
|
|
@@ -7491,42 +7530,51 @@ function removeElement(board, id) {
|
|
|
7491
7530
|
return OK;
|
|
7492
7531
|
}
|
|
7493
7532
|
if (existing.kind !== "box") return OK;
|
|
7494
|
-
for (const
|
|
7533
|
+
for (const dependent of currentDependentsOf(draft, id)) removeDependent(draft, dependent, id);
|
|
7495
7534
|
return OK;
|
|
7496
7535
|
}
|
|
7497
|
-
function
|
|
7498
|
-
const nearBoxes = Object.values(board.elements).flatMap((element) => element.kind === "box" && element.near?.of === removedBoxId ? [element] : []);
|
|
7499
|
-
if (nearBoxes.length === 0) return;
|
|
7536
|
+
function pinPositionsOf(board) {
|
|
7500
7537
|
const layout = layoutBoard(board);
|
|
7538
|
+
return {
|
|
7539
|
+
laidOutBoxById: new Map(layout.elements.flatMap((element) => element.kind === "box" ? [[element.id, element]] : [])),
|
|
7540
|
+
pinnedOffsetY: layout.pinnedOffsetY
|
|
7541
|
+
};
|
|
7542
|
+
}
|
|
7543
|
+
function pinBoxesNear(draft, removedBoxId) {
|
|
7544
|
+
const { board } = draft;
|
|
7545
|
+
const nearBoxes = currentDependentsOf(draft, removedBoxId).flatMap((element) => element.kind === "box" ? [element] : []);
|
|
7546
|
+
if (nearBoxes.length === 0) return;
|
|
7547
|
+
draft.pinPositions ??= pinPositionsOf(board);
|
|
7548
|
+
const { laidOutBoxById, pinnedOffsetY } = draft.pinPositions;
|
|
7501
7549
|
for (const box of nearBoxes) {
|
|
7502
|
-
const laidOut =
|
|
7503
|
-
if (!laidOut
|
|
7550
|
+
const laidOut = laidOutBoxById.get(box.id);
|
|
7551
|
+
if (!laidOut) continue;
|
|
7504
7552
|
board.elements[box.id] = {
|
|
7505
7553
|
...box,
|
|
7506
7554
|
near: null,
|
|
7507
7555
|
at: {
|
|
7508
7556
|
x: laidOut.x,
|
|
7509
|
-
y: laidOut.y -
|
|
7557
|
+
y: laidOut.y - pinnedOffsetY
|
|
7510
7558
|
}
|
|
7511
7559
|
};
|
|
7512
7560
|
}
|
|
7513
7561
|
}
|
|
7514
|
-
function removeDependent(
|
|
7562
|
+
function removeDependent(draft, element, removedBoxId) {
|
|
7515
7563
|
if (element.kind === "wire" && (element.from === removedBoxId || element.to === removedBoxId)) {
|
|
7516
|
-
|
|
7564
|
+
deleteElement(draft, element.id);
|
|
7517
7565
|
return;
|
|
7518
7566
|
}
|
|
7519
7567
|
if (element.kind === "note" && element.on === removedBoxId) {
|
|
7520
|
-
|
|
7568
|
+
deleteElement(draft, element.id);
|
|
7521
7569
|
return;
|
|
7522
7570
|
}
|
|
7523
7571
|
if (element.kind !== "frame") return;
|
|
7524
7572
|
const contains = element.contains.filter((id) => id !== removedBoxId);
|
|
7525
7573
|
if (contains.length === 0) {
|
|
7526
|
-
|
|
7574
|
+
deleteElement(draft, element.id);
|
|
7527
7575
|
return;
|
|
7528
7576
|
}
|
|
7529
|
-
board.elements[element.id] = {
|
|
7577
|
+
draft.board.elements[element.id] = {
|
|
7530
7578
|
...element,
|
|
7531
7579
|
contains
|
|
7532
7580
|
};
|
|
@@ -7568,11 +7616,16 @@ function replaceLanes(board, lanes) {
|
|
|
7568
7616
|
};
|
|
7569
7617
|
return OK;
|
|
7570
7618
|
}
|
|
7571
|
-
function applyOne(
|
|
7619
|
+
function applyOne(draft, op, author) {
|
|
7620
|
+
const { board } = draft;
|
|
7621
|
+
if (op.op !== "remove") {
|
|
7622
|
+
draft.pinPositions = null;
|
|
7623
|
+
draft.dependentIdsByBoxId = null;
|
|
7624
|
+
}
|
|
7572
7625
|
switch (op.op) {
|
|
7573
|
-
case "add": return addElement(
|
|
7626
|
+
case "add": return addElement(draft, op.element, author);
|
|
7574
7627
|
case "set": return setFields(board, op.id, op.fields, author);
|
|
7575
|
-
case "remove": return removeElement(
|
|
7628
|
+
case "remove": return removeElement(draft, op.id);
|
|
7576
7629
|
case "resolve": return resolveNote(board, op.id, author);
|
|
7577
7630
|
case "columns": return replaceColumns(board, op.columns, op.move);
|
|
7578
7631
|
case "lanes": return replaceLanes(board, op.lanes);
|
|
@@ -7585,12 +7638,20 @@ function applyOne(board, op, author) {
|
|
|
7585
7638
|
}
|
|
7586
7639
|
}
|
|
7587
7640
|
function applyOps(board, ops, author, nowMs) {
|
|
7588
|
-
const draft =
|
|
7641
|
+
const draft = {
|
|
7642
|
+
board: {
|
|
7643
|
+
...board,
|
|
7644
|
+
elements: { ...board.elements }
|
|
7645
|
+
},
|
|
7646
|
+
elementCount: Object.keys(board.elements).length,
|
|
7647
|
+
pinPositions: null,
|
|
7648
|
+
dependentIdsByBoxId: null
|
|
7649
|
+
};
|
|
7589
7650
|
const version = board.version + 1;
|
|
7590
7651
|
const changes = [];
|
|
7591
7652
|
for (const [opIndex, op] of ops.entries()) {
|
|
7592
7653
|
const elementId = changedElementId(op);
|
|
7593
|
-
const previous = elementId === null ? void 0 : draft.elements[elementId];
|
|
7654
|
+
const previous = elementId === null ? void 0 : draft.board.elements[elementId];
|
|
7594
7655
|
const outcome = applyOne(draft, op, author);
|
|
7595
7656
|
if (!outcome.ok) return {
|
|
7596
7657
|
ok: false,
|
|
@@ -7601,21 +7662,62 @@ function applyOps(board, ops, author, nowMs) {
|
|
|
7601
7662
|
version,
|
|
7602
7663
|
author: author.id,
|
|
7603
7664
|
elementId,
|
|
7604
|
-
summary: `${author.name} ${describeOp(op, previous, draft)}`
|
|
7665
|
+
summary: `${author.name} ${describeOp(op, previous, draft.board)}`
|
|
7605
7666
|
});
|
|
7606
7667
|
}
|
|
7607
|
-
const cycle = findDependencyCycle(draft);
|
|
7668
|
+
const cycle = findDependencyCycle(draft.board);
|
|
7608
7669
|
if (cycle) return {
|
|
7609
7670
|
ok: false,
|
|
7610
7671
|
error: `that makes a dependency cycle: ${cycle.join(", ")}`,
|
|
7611
7672
|
opIndex: ops.length - 1
|
|
7612
7673
|
};
|
|
7613
|
-
draft.version = version;
|
|
7614
|
-
draft.updatedAt = nowMs;
|
|
7615
7674
|
return {
|
|
7616
7675
|
ok: true,
|
|
7617
|
-
board:
|
|
7618
|
-
|
|
7676
|
+
board: {
|
|
7677
|
+
...draft.board,
|
|
7678
|
+
version,
|
|
7679
|
+
updatedAt: nowMs
|
|
7680
|
+
},
|
|
7681
|
+
changes,
|
|
7682
|
+
diff: diffOf(board, draft.board)
|
|
7683
|
+
};
|
|
7684
|
+
}
|
|
7685
|
+
function isSameValue(left, right) {
|
|
7686
|
+
return JSON.stringify(left) === JSON.stringify(right);
|
|
7687
|
+
}
|
|
7688
|
+
function hasSameFieldNames(left, right) {
|
|
7689
|
+
const leftNames = Object.keys(left);
|
|
7690
|
+
const rightNames = new Set(Object.keys(right));
|
|
7691
|
+
return leftNames.length === rightNames.size && leftNames.every((name) => rightNames.has(name));
|
|
7692
|
+
}
|
|
7693
|
+
function changeOf(previous, element) {
|
|
7694
|
+
if (previous.kind !== element.kind || !hasSameFieldNames(previous, element)) return ["put", element];
|
|
7695
|
+
const previousFields = { ...previous };
|
|
7696
|
+
const changedFields = Object.fromEntries(Object.entries(element).filter(([name, value]) => !isSameValue(previousFields[name], value)));
|
|
7697
|
+
return Object.keys(changedFields).length === 0 ? null : ["patch", changedFields];
|
|
7698
|
+
}
|
|
7699
|
+
function diffOf(before, after) {
|
|
7700
|
+
const elements = {};
|
|
7701
|
+
for (const id of Object.keys(before.elements)) if (!after.elements[id]) elements[id] = ["remove"];
|
|
7702
|
+
const positionById = new Map(Object.keys(before.elements).map((id, position) => [id, position]));
|
|
7703
|
+
let lastKeptPosition = -1;
|
|
7704
|
+
let isPastMovedElement = false;
|
|
7705
|
+
for (const [id, element] of Object.entries(after.elements)) {
|
|
7706
|
+
const previous = before.elements[id];
|
|
7707
|
+
const position = positionById.get(id);
|
|
7708
|
+
isPastMovedElement ||= !previous || position === void 0 || position < lastKeptPosition;
|
|
7709
|
+
if (!previous || position === void 0 || isPastMovedElement) {
|
|
7710
|
+
elements[id] = ["put", element];
|
|
7711
|
+
continue;
|
|
7712
|
+
}
|
|
7713
|
+
lastKeptPosition = position;
|
|
7714
|
+
if (previous === element) continue;
|
|
7715
|
+
const change = changeOf(previous, element);
|
|
7716
|
+
if (change) elements[id] = change;
|
|
7717
|
+
}
|
|
7718
|
+
return {
|
|
7719
|
+
fields: Object.fromEntries(DIFFED_BOARD_FIELDS.filter((name) => !isSameValue(before[name], after[name])).map((name) => [name, after[name]])),
|
|
7720
|
+
elements
|
|
7619
7721
|
};
|
|
7620
7722
|
}
|
|
7621
7723
|
function changedElementId(op) {
|
|
@@ -8361,19 +8463,23 @@ function operatorReplyOf(reply) {
|
|
|
8361
8463
|
ok: false,
|
|
8362
8464
|
error: reply.body.error
|
|
8363
8465
|
};
|
|
8466
|
+
const patch = reply.patch ? { patch: reply.patch } : {};
|
|
8364
8467
|
if ("board" in reply.body && "changes" in reply.body) return {
|
|
8365
8468
|
ok: true,
|
|
8366
8469
|
error: null,
|
|
8367
|
-
board: reply.body.board
|
|
8470
|
+
board: reply.body.board,
|
|
8471
|
+
...patch
|
|
8368
8472
|
};
|
|
8369
8473
|
if ("board" in reply.body) return {
|
|
8370
8474
|
ok: true,
|
|
8371
8475
|
error: null,
|
|
8372
|
-
summary: reply.body.board
|
|
8476
|
+
summary: reply.body.board,
|
|
8477
|
+
...patch
|
|
8373
8478
|
};
|
|
8374
8479
|
return {
|
|
8375
8480
|
ok: true,
|
|
8376
|
-
error: null
|
|
8481
|
+
error: null,
|
|
8482
|
+
...patch
|
|
8377
8483
|
};
|
|
8378
8484
|
}
|
|
8379
8485
|
function createWhiteboardWiring({ boardsRoot, broadcastControl = () => {}, now = Date.now, newBoardId = () => crypto.randomUUID(), logger = console, codeContextOf = () => null }) {
|
|
@@ -8457,9 +8563,16 @@ function createWhiteboardWiring({ boardsRoot, broadcastControl = () => {}, now =
|
|
|
8457
8563
|
if (!outcome.ok) return outcome.reply;
|
|
8458
8564
|
if (outcome.record === current) return outcome.reply;
|
|
8459
8565
|
if (!await saveRecordInSlot(current, outcome.record)) return refusal$1(500, "the board could not be saved, so nothing changed");
|
|
8460
|
-
if (outcome.patch)
|
|
8566
|
+
if (!outcome.patch) {
|
|
8567
|
+
broadcastSummariesIfChanged(current, outcome.record);
|
|
8568
|
+
return outcome.reply;
|
|
8569
|
+
}
|
|
8570
|
+
broadcastControl(outcome.patch);
|
|
8461
8571
|
broadcastSummariesIfChanged(current, outcome.record);
|
|
8462
|
-
return
|
|
8572
|
+
return {
|
|
8573
|
+
...outcome.reply,
|
|
8574
|
+
patch: outcome.patch
|
|
8575
|
+
};
|
|
8463
8576
|
});
|
|
8464
8577
|
}
|
|
8465
8578
|
function findBoardId(ref) {
|
|
@@ -8579,7 +8692,7 @@ function createWhiteboardWiring({ boardsRoot, broadcastControl = () => {}, now =
|
|
|
8579
8692
|
name: author.name
|
|
8580
8693
|
},
|
|
8581
8694
|
updatedAt: next.board.updatedAt,
|
|
8582
|
-
|
|
8695
|
+
diff: result.diff
|
|
8583
8696
|
}
|
|
8584
8697
|
};
|
|
8585
8698
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as errorMessage } from "./text-DoirglWV.js";
|
|
2
|
-
import { Cn as
|
|
3
|
-
import { i as ThemePalette, n as packBridgeJsonSchemaText, t as PackBridgeTopic } from "./pack-bridge-
|
|
2
|
+
import { Cn as PrFlowPrAction, En as PrFlowSourceCommand, In as prFlowRulesJsonSchema, Nn as RepoScope, On as PrFlowsSettings, fn as PR_FLOW_PLACEHOLDERS_BY_KIND, gn as PrFlowCommand, wn as PrFlowRule, xn as PrFlowPackRequires, yn as PrFlowItemAction } from "./session-DC6dGYjf.js";
|
|
3
|
+
import { i as ThemePalette, n as packBridgeJsonSchemaText, t as PackBridgeTopic } from "./pack-bridge-BgB2p-Hg.js";
|
|
4
4
|
import { t as parseJsonOrNull } from "./json-core-If8h-Qgy.js";
|
|
5
|
-
import { n as withoutGlimmervoidSecrets } from "./spawn-env-
|
|
5
|
+
import { n as withoutGlimmervoidSecrets } from "./spawn-env-aigWM-7F.js";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import { z } from "zod";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $n as STATES } from "./session-DC6dGYjf.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region shared/contracts/theme-palette.ts
|
|
4
4
|
var HexColor = z.string().regex(/^#[0-9a-fA-F]{6}$/, { error: (issue) => issue.input === void 0 ? "missing; a theme sets every color as #rrggbb" : `a color is #rrggbb, not ${JSON.stringify(issue.input)}` });
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as errorMessage } from "./text-DoirglWV.js";
|
|
2
2
|
import { a as examplePacksDir } from "./runtime-paths-DfoHzN15.js";
|
|
3
3
|
import { n as glimmervoidHomeDir } from "./config-path-core-DUWk0Lui.js";
|
|
4
|
-
import {
|
|
5
|
-
import { n as packBridgeJsonSchemaText, r as THEME_STATE_NAMES, t as PackBridgeTopic } from "./pack-bridge-
|
|
6
|
-
import { J as decideHostAllowed, a as packReportText, g as packFileHeaders, i as packCheckHasProblem, l as readApprovedPackFingerprints, p as packJsonSchemaText, r as checkPack, t as packGuideText, u as readPackDir } from "./pack-agent-
|
|
4
|
+
import { $n as STATES, Ln as prFlowsOutputJsonSchemaText, n as AGENT_REPLY_SCHEMAS } from "./session-DC6dGYjf.js";
|
|
5
|
+
import { n as packBridgeJsonSchemaText, r as THEME_STATE_NAMES, t as PackBridgeTopic } from "./pack-bridge-BgB2p-Hg.js";
|
|
6
|
+
import { J as decideHostAllowed, a as packReportText, g as packFileHeaders, i as packCheckHasProblem, l as readApprovedPackFingerprints, p as packJsonSchemaText, r as checkPack, t as packGuideText, u as readPackDir } from "./pack-agent-BY3gEwjx.js";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import os from "node:os";
|
|
9
9
|
import http from "node:http";
|
|
@@ -398,7 +398,7 @@ async function runList() {
|
|
|
398
398
|
process.stderr.write("glimmervoid packs list reads the running Glimmervoid, so it works inside a Glimmervoid session; the operator sees the same list in Settings, Packs\n");
|
|
399
399
|
return 1;
|
|
400
400
|
}
|
|
401
|
-
const { askAgentApi } = await import("./agent-api-cli-
|
|
401
|
+
const { askAgentApi } = await import("./agent-api-cli-CqfBqnBN.js");
|
|
402
402
|
const reply = AGENT_REPLY_SCHEMAS.packs.safeParse(await askAgentApi("packs", { command: "list" }));
|
|
403
403
|
if (!reply.success) {
|
|
404
404
|
process.stderr.write("glimmervoid packs list: Glimmervoid did not answer with a pack list\n");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { n as runPacksCli } from "./packs-cli-CjAfzj-I.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as errorMessage } from "./text-DoirglWV.js";
|
|
2
|
-
import { c 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 { c as resolveConfigPath } from "./config-store-CHFS_vNw.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-Dm7-_lHb.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
//#region server/text-format.ts
|
|
6
6
|
function trimIso(iso) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { r as errorMessage } from "./text-DoirglWV.js";
|
|
2
2
|
import { n as glimmervoidHomeDir, t as decideConfigPath } from "./config-path-core-DUWk0Lui.js";
|
|
3
|
-
import {
|
|
3
|
+
import { dn as PR_ACTION_TOKEN_ENV, fn as PR_FLOW_PLACEHOLDERS_BY_KIND, g as AgentSettingsReply, kn as PrFlowsState, pn as PrActionReportBody, un as PR_ACTION_REPORT_URL_ENV } from "./session-DC6dGYjf.js";
|
|
4
4
|
import { c as runCommandSafely } from "./child-process-safe-BIh8yQ0I.js";
|
|
5
5
|
import { t as parseJsonOrNull } from "./json-core-If8h-Qgy.js";
|
|
6
|
-
import { B as unknownActionWarnings, F as scopedToRepo, M as prFlowRules, S as expandPlaceholders, j as prFlowCommands, x as commandFingerprint } from "./pack-agent-
|
|
7
|
-
import { t as createPrFlowsExternal } from "./pr-flows-external-
|
|
8
|
-
import { t as runPackCheckCli } from "./packs-cli-
|
|
6
|
+
import { B as unknownActionWarnings, F as scopedToRepo, M as prFlowRules, S as expandPlaceholders, j as prFlowCommands, x as commandFingerprint } from "./pack-agent-BY3gEwjx.js";
|
|
7
|
+
import { t as createPrFlowsExternal } from "./pr-flows-external-CaziHHty.js";
|
|
8
|
+
import { t as runPackCheckCli } from "./packs-cli-CjAfzj-I.js";
|
|
9
9
|
import fs from "node:fs";
|
|
10
10
|
import path from "node:path";
|
|
11
11
|
import os from "node:os";
|
|
@@ -100,7 +100,7 @@ async function readServerConfig(askSetting) {
|
|
|
100
100
|
};
|
|
101
101
|
}
|
|
102
102
|
async function readConfigFromServer() {
|
|
103
|
-
const { askAgentApi } = await import("./agent-api-cli-
|
|
103
|
+
const { askAgentApi } = await import("./agent-api-cli-CqfBqnBN.js");
|
|
104
104
|
return readServerConfig((settingPath) => askAgentApi("settings", {
|
|
105
105
|
command: "get",
|
|
106
106
|
path: settingPath
|
|
@@ -241,7 +241,7 @@ async function runPrActionReport({ outcome, message, env }, io) {
|
|
|
241
241
|
io.writeError("--outcome must be started, done, failed or refused, and --message at most 500 characters\n");
|
|
242
242
|
return 1;
|
|
243
243
|
}
|
|
244
|
-
const { postToAgentIngress } = await import("./agent-api-cli-
|
|
244
|
+
const { postToAgentIngress } = await import("./agent-api-cli-CqfBqnBN.js");
|
|
245
245
|
const reply = await postToAgentIngress({
|
|
246
246
|
endpoint: new URL(reportUrl),
|
|
247
247
|
token,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Dn as PrFlowSourceOutput, Pn as ReportedPrFlowActionOutcome } from "./session-DC6dGYjf.js";
|
|
2
2
|
import { c as runCommandSafely } from "./child-process-safe-BIh8yQ0I.js";
|
|
3
3
|
import { t as parseJsonOrNull } from "./json-core-If8h-Qgy.js";
|
|
4
|
-
import { n as withoutGlimmervoidSecrets } from "./spawn-env-
|
|
5
|
-
import { S as expandPlaceholders, k as prActionPlaceholderValues } from "./pack-agent-
|
|
4
|
+
import { n as withoutGlimmervoidSecrets } from "./spawn-env-aigWM-7F.js";
|
|
5
|
+
import { S as expandPlaceholders, k as prActionPlaceholderValues } from "./pack-agent-BY3gEwjx.js";
|
|
6
6
|
//#region server/github/pr-flows-external.ts
|
|
7
7
|
var OUTPUT_MAX_BYTES = 1048576;
|
|
8
8
|
var ACTION_OUTPUT_MAX_BYTES = 67108864;
|
|
@@ -2,7 +2,7 @@ import { n as errorLabel, r as errorMessage } from "./text-DoirglWV.js";
|
|
|
2
2
|
import { d as equalsIgnoringCaseOnWindows } from "./runtime-paths-DfoHzN15.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 { b as DEFAULT_TIMER_FNS, o as glimmervoidHomeDir, x as unrefTimer, xt as canonicalizePath } from "./config-store-
|
|
5
|
+
import { b as DEFAULT_TIMER_FNS, o as glimmervoidHomeDir, x as unrefTimer, xt as canonicalizePath } from "./config-store-CHFS_vNw.js";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import crypto from "node:crypto";
|
|
@@ -1205,9 +1205,9 @@ var MyPrMergeStateResponse = z.object({
|
|
|
1205
1205
|
//#endregion
|
|
1206
1206
|
//#region shared/contracts/whiteboard.ts
|
|
1207
1207
|
var WHITEBOARD_LIMITS = Object.freeze({
|
|
1208
|
-
elements:
|
|
1209
|
-
opsPerPut:
|
|
1210
|
-
putBytes:
|
|
1208
|
+
elements: 5e3,
|
|
1209
|
+
opsPerPut: 5e3,
|
|
1210
|
+
putBytes: 1728576,
|
|
1211
1211
|
title: 80,
|
|
1212
1212
|
line: 120,
|
|
1213
1213
|
linesPerBox: 12,
|
|
@@ -1932,4 +1932,4 @@ var AGENT_REPLY_SCHEMAS = Object.freeze({
|
|
|
1932
1932
|
answer: z.union([AgentOkReply, AgentRefusal])
|
|
1933
1933
|
});
|
|
1934
1934
|
//#endregion
|
|
1935
|
-
export {
|
|
1935
|
+
export { Op as $, STATES as $n, TeamReviewStateEntry as $t, SESSION_NAME_PATTERN as A, PrFlowsStatus as An, SessionPrLinks as At, TASK_TITLE_CONTROL_CHARACTERS as B, shortSha as Bn, PostingPlan as Bt, CONVERSATION_TOOL_RESULT_HOOK_EVENT as C, PrFlowPrAction as Cn, MyPrMergeWhenReadyResult as Ct, SESSION_COMMANDS as D, PrFlowSourceOutput as Dn, MyPrsSnapshot as Dt, RefinedTaskTitle as E, PrFlowSourceCommand as En, MyPrThreadsResponse as Et, SessionDoc as F, prActionReportPath as Fn, EarlierReview as Ft, Board as G, GithubPollingRefreshRequest as Gn, ReviewFinding as Gt, UnseenOutcome as H, NODE_ID_RE as Hn, ReviewChecksState as Ht, SessionSnapshot as I, prFlowRulesJsonSchema as In, FindingSeverity as It, BoardSummary as J, githubPollingShape as Jn, ReviewVerdict as Jt, BoardRecord as K, GithubPollingRefreshResult as Kn, ReviewResult as Kt, SessionState as L, prFlowsOutputJsonSchemaText as Ln, GithubReviewDecision as Lt, SHOWN_FILE_CAP_BYTES as M, PrThreadUnresolveResponse as Mn, repositoryName as Mt, SIGN_URL_ENV as N, RepoScope as Nn, CommitSha as Nt, SESSION_DOC_BODY_CAP_BYTES as O, PrFlowsSettings as On, MyPrsState as Ot, SSH_SIGN_BODY_CAP_BYTES as P, ReportedPrFlowActionOutcome as Pn, DECIDING_REVIEW_STATES as Pt, Note as Q, RESTARTABLE_STATES as Qn, TeamReviewResolveResponse as Qt, SshSignReply as R, FULL_SHA_RE as Rn, GithubReviewState as Rt, CONVERSATION_PERMISSION_HOOK_EVENT as S, PrFlowPendingApproval as Sn, MyPrMergeWhenReadyRequest as St, ConversationQuestion as T, PrFlowSaveRuleRequest as Tn, MyPrThreadNode as Tt, BOARD_MEDIA_MAX_EDGE_PX as U, REPO_SLUG_RE as Un, ReviewComment as Ut, TaskTitle as V, GH_SEGMENT as Vn, PrDetail as Vt, BOX_CHANGES as W, repoParts as Wn, ReviewDraft as Wt, Element as X, KILLABLE_STATES as Xn, TeamReviewActionResult as Xt, Box as Y, BADGE_LABELS as Yn, TeamReviewActionRequest as Yt, Frame as Z, MERGEABLE_LIVE_STATES as Zn, TeamReviewCompareFiles as Zt, AgentSettingsRequest as _, PrFlowDisposeRequest as _n, MyPrLaneEntry as _t, AgentAnswerRequest as a, decisionAsIfApprovalRequired as an, WhiteboardAgentReply as at, COHERENCE_HOOKS_INACTIVE as b, PrFlowItemRequest as bn, MyPrMergeResult as bt, AgentCloseRequest as c, PR_ACTION_REPORT_BODY_CAP_BYTES as cn, sparseBoardRecord as ct, AgentPacksRequest as d, PR_ACTION_TOKEN_ENV as dn, MyPr as dt, TeamReviewStatus as en, Panel as et, AgentPullRequestRequest as f, PR_FLOW_PLACEHOLDERS_BY_KIND as fn, MyPrAutoRebase as ft, AgentSettingsReply as g, PrFlowCommand as gn, MyPrKeepMergeableResult as gt, AgentSendRequest as h, PrFlowApproveRequest as hn, MyPrKeepMergeableRequest as ht, ASK_USER_QUESTION_TOOL_NAME as i, canApproveAfterComment as in, WHITEBOARD_LIMITS as it, SESSION_NAME_RULE_TEXT as j, PrThreadReplyResponse as jn, pullRequestKeyFormat as jt, SESSION_DOC_PATH_MAX_CHARS as k, PrFlowsState as kn, MyPrsStatus as kt, AgentEditRequest as l, PR_ACTION_REPORT_ROUTE as ln, sparseBoardReply as lt, AgentReviewsRequest as m, PrActionRunRequest as mn, MyPrCheckContextsResponse as mt, AGENT_REPLY_SCHEMAS as n, TeamReviewThreadResult as nn, Unit as nt, AgentAttentionRequest as o, hasRequiredActionHead as on, WhiteboardAgentRequest as ot, AgentReadRequest as p, PrActionReportBody as pn, MyPrCheckContext as pt, BoardReview as q, GithubPrsFreshness as qn, ReviewThreadId as qt, AGENT_URL_ENV as r, TeamReviewThreadsRepository as rn, WHITEBOARD_ASSET_ROUTE as rt, AgentCheckoutRequest as s, hasStandingViewerApproval as sn, Wire as st, AGENT_API_VERBS as t, TeamReviewThreadCommentsResponse as tn, UNIT_STATUSES as tt, AgentLimitsReply as u, PR_ACTION_REPORT_URL_ENV as un, LinkedPr as ut, AgentSpawnRequest as v, PrFlowDisposeResult as vn, MyPrMergeMethod as vt, CoherenceHooksState as w, PrFlowRule as wn, MyPrSearchNode as wt, CONVERSATION_APPROVAL_SUMMARY_MAX_CHARS as x, PrFlowPackRequires as xn, MyPrMergeStateResponse as xt, AgentWhyRequest as y, PrFlowItemAction as yn, MyPrMergeRequest as yt, SshSignRequest as z, HEX_SHA_RE as zn, PostedReviewEvent as zt };
|
|
@@ -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 { g as AgentSettingsReply } from "./session-
|
|
4
|
-
import { r as BrowserConfig } from "./config-
|
|
3
|
+
import { g as AgentSettingsReply } from "./session-DC6dGYjf.js";
|
|
4
|
+
import { r as BrowserConfig } from "./config-BdItI6F3.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 { A as cloneValue, F as scoreSettingsSearch, I as setValueAtPath, P as parsePosthogProjectSelection, V as SETTINGS_REGISTRY, _t as ENV_SECRET_BINDINGS, bt as withEnvSecrets, j as deleteValueAtPath, l as saveConfigFileOnce, s as loadConfigFile, t as IS_EXPERIMENTAL_BUILD, u as validateConfig, vt as readEnvSecrets, w as isSettingAvailable, z as valueAtPath } from "./config-store-
|
|
8
|
-
import { a as fail, c as listSettings, d as renderSectionTables, f as requireConfigFileSetting, g as valueText, h as succeed, i as describeSetting, l as readSetting, m as settingsRequestForServer, n as configFileViewOf, o as fitColumn, p as sectionOf, r as defaultText, s as getSetting, t as availableSettings } from "./settings-readout-core-
|
|
7
|
+
import { A as cloneValue, F as scoreSettingsSearch, I as setValueAtPath, P as parsePosthogProjectSelection, V as SETTINGS_REGISTRY, _t as ENV_SECRET_BINDINGS, bt as withEnvSecrets, j as deleteValueAtPath, l as saveConfigFileOnce, s as loadConfigFile, t as IS_EXPERIMENTAL_BUILD, u as validateConfig, vt as readEnvSecrets, w as isSettingAvailable, z as valueAtPath } from "./config-store-CHFS_vNw.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-CtligFID.js";
|
|
9
9
|
import fs from "node:fs";
|
|
10
10
|
import os from "node:os";
|
|
11
11
|
//#region server/settings-cli.ts
|
|
@@ -320,7 +320,7 @@ function runParsedSettingsCommand(parsed, io) {
|
|
|
320
320
|
async function runParsedSettingsCli(parsed, io = processIo()) {
|
|
321
321
|
const serverRequest = settingsRequestForServer(parsed, process.env);
|
|
322
322
|
if (!serverRequest) return runParsedSettingsCommand(parsed, io);
|
|
323
|
-
const { askAgentApi } = await import("./agent-api-cli-
|
|
323
|
+
const { askAgentApi } = await import("./agent-api-cli-CqfBqnBN.js");
|
|
324
324
|
const reply = AgentSettingsReply.safeParse(await askAgentApi("settings", serverRequest).catch((error) => ({
|
|
325
325
|
ok: false,
|
|
326
326
|
error: errorMessage(error)
|