glimmervoid 0.49.1-next.564 → 0.49.1-next.565
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/glimmervoid.js +5 -5
- package/dist/chunks/{adapters-BU6BvWPM.js → adapters-DWQfT5kH.js} +1 -1
- package/dist/chunks/{adapters-DDA0vISY.js → adapters-fEt5pGEB.js} +1 -1
- package/dist/chunks/{config-store-B2iX-luQ.js → config-store-1tIhtxC2.js} +229 -223
- package/dist/chunks/config-store-CRNWDIt6.js +1 -0
- package/dist/chunks/{main-BW0jctkz.js → main-CGlrwg0Z.js} +4 -4
- package/dist/chunks/{pair-cli-Cs0cD1vJ.js → pair-cli-DtA5VvL1.js} +2 -2
- package/dist/chunks/{pairings-store-DCXJizW_.js → pairings-store-CChFbNsj.js} +1 -1
- package/dist/chunks/{settings-cli-y91e4KA1.js → settings-cli-Dk8r-e8b.js} +2 -2
- package/dist/chunks/{settings-readout-core-DpkKZo7E.js → settings-readout-core-4iqZak3r.js} +1 -1
- package/dist/chunks/{why-cli-cOLoMBxJ.js → why-cli-BZO7OEac.js} +1 -1
- package/dist/client/assets/{benchmark-panel-TPv_Gsao.js → benchmark-panel-C_vrr8rb.js} +1 -1
- package/dist/client/assets/benchmark-panel-C_vrr8rb.js.br +0 -0
- package/dist/client/assets/{boards-view-Dtl0gBOD.js → boards-view-BhTs2wda.js} +1 -1
- package/dist/client/assets/boards-view-BhTs2wda.js.br +0 -0
- package/dist/client/assets/{community-panel-BoTA0O6j.js → community-panel-4ARWCVSQ.js} +1 -1
- package/dist/client/assets/community-panel-4ARWCVSQ.js.br +0 -0
- package/dist/client/assets/{dialogs-CBvyWSbC.js → dialogs-CEkWyRjl.js} +1 -1
- package/dist/client/assets/dialogs-CEkWyRjl.js.br +0 -0
- package/dist/client/assets/{doc-editor-ui-xZ5wZ80y.js → doc-editor-ui-K6z6sjDm.js} +1 -1
- package/dist/client/assets/doc-editor-ui-K6z6sjDm.js.br +0 -0
- package/dist/client/assets/{feature-hint-BKRLsNY_.js → feature-hint-95MOyI44.js} +1 -1
- package/dist/client/assets/feature-hint-95MOyI44.js.br +0 -0
- package/dist/client/assets/{first-run-checklist-BZCBRpHe.js → first-run-checklist-CIgDdKb4.js} +1 -1
- package/dist/client/assets/first-run-checklist-CIgDdKb4.js.br +0 -0
- package/dist/client/assets/{hooks-panel-CtwRKC_b.js → hooks-panel-C8QIQ-zu.js} +1 -1
- package/dist/client/assets/hooks-panel-C8QIQ-zu.js.br +0 -0
- package/dist/client/assets/{index-DvN_VTT1.js → index-DFzcqRRd.js} +5 -5
- package/dist/client/assets/index-DFzcqRRd.js.br +0 -0
- package/dist/client/assets/{issues-panel---WK6nWG.js → issues-panel-Jtx3tXGF.js} +1 -1
- package/dist/client/assets/issues-panel-Jtx3tXGF.js.br +0 -0
- package/dist/client/assets/{my-prs-panel-BiNndQ3P.js → my-prs-panel-Csn4aFPF.js} +1 -1
- package/dist/client/assets/my-prs-panel-Csn4aFPF.js.br +0 -0
- package/dist/client/assets/{nyan-cat-Bf-KHiKY.js → nyan-cat-BYyAsXTn.js} +1 -1
- package/dist/client/assets/nyan-cat-BYyAsXTn.js.br +0 -0
- package/dist/client/assets/{phone-shell-aI4npfuF.js → phone-shell-D3_k3ORG.js} +1 -1
- package/dist/client/assets/phone-shell-D3_k3ORG.js.br +0 -0
- package/dist/client/assets/{plan-face-DaOtA3_1.js → plan-face-Z8XZ6EV9.js} +1 -1
- package/dist/client/assets/plan-face-Z8XZ6EV9.js.br +0 -0
- package/dist/client/assets/{plan-render-CyVexNcj.js → plan-render-DvVT3Urc.js} +1 -1
- package/dist/client/assets/plan-render-DvVT3Urc.js.br +0 -0
- package/dist/client/assets/{pr-queue-columns-BW2EPtH3.js → pr-queue-columns-BiERfZc5.js} +1 -1
- package/dist/client/assets/pr-queue-columns-BiERfZc5.js.br +0 -0
- package/dist/client/assets/{radar-panel-CJQlEQwr.js → radar-panel-clt4oRPE.js} +1 -1
- package/dist/client/assets/radar-panel-clt4oRPE.js.br +0 -0
- package/dist/client/assets/{repo-roots-adder-CpG1m8cs.js → repo-roots-adder-CV2ecpUl.js} +1 -1
- package/dist/client/assets/repo-roots-adder-CV2ecpUl.js.br +0 -0
- package/dist/client/assets/{resume-dialog-BBL2W4g5.js → resume-dialog-DrbKV2i1.js} +1 -1
- package/dist/client/assets/resume-dialog-DrbKV2i1.js.br +0 -0
- package/dist/client/assets/{review-queue-panel-D1p2QRDw.js → review-queue-panel-BmhHLvHY.js} +1 -1
- package/dist/client/assets/review-queue-panel-BmhHLvHY.js.br +0 -0
- package/dist/client/assets/{settings-panel-9bxfFbo7.js → settings-panel-BLKxSfEm.js} +2 -2
- package/dist/client/assets/settings-panel-BLKxSfEm.js.br +0 -0
- package/dist/client/assets/{shown-face-d6s2LK1d.js → shown-face-Cl3E4P-W.js} +1 -1
- package/dist/client/assets/shown-face-Cl3E4P-W.js.br +0 -0
- package/dist/client/assets/{team-review-queue-row-BcaZg0vp.js → team-review-queue-row-DIcBwDOn.js} +1 -1
- package/dist/client/assets/team-review-queue-row-DIcBwDOn.js.br +0 -0
- package/dist/client/assets/{trace-panel-CdwHYTwS.js → trace-panel-wdQORdB6.js} +1 -1
- package/dist/client/assets/trace-panel-wdQORdB6.js.br +0 -0
- package/dist/client/assets/{usage-panel-aklK2lrm.js → usage-panel-BkNTnecX.js} +1 -1
- package/dist/client/assets/usage-panel-BkNTnecX.js.br +0 -0
- package/dist/client/assets/{your-day-tip-BAmNCnzv.js → your-day-tip-DOnwIrXf.js} +1 -1
- package/dist/client/assets/your-day-tip-DOnwIrXf.js.br +0 -0
- package/dist/client/index.html +1 -1
- package/dist/client/index.html.br +0 -0
- package/dist/server/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/config-store-DAS7gMMX.js +0 -1
- package/dist/client/assets/benchmark-panel-TPv_Gsao.js.br +0 -0
- package/dist/client/assets/boards-view-Dtl0gBOD.js.br +0 -0
- package/dist/client/assets/community-panel-BoTA0O6j.js.br +0 -0
- package/dist/client/assets/dialogs-CBvyWSbC.js.br +0 -0
- package/dist/client/assets/doc-editor-ui-xZ5wZ80y.js.br +0 -0
- package/dist/client/assets/feature-hint-BKRLsNY_.js.br +0 -0
- package/dist/client/assets/first-run-checklist-BZCBRpHe.js.br +0 -0
- package/dist/client/assets/hooks-panel-CtwRKC_b.js.br +0 -0
- package/dist/client/assets/index-DvN_VTT1.js.br +0 -0
- package/dist/client/assets/issues-panel---WK6nWG.js.br +0 -0
- package/dist/client/assets/my-prs-panel-BiNndQ3P.js.br +0 -0
- package/dist/client/assets/nyan-cat-Bf-KHiKY.js.br +0 -0
- package/dist/client/assets/phone-shell-aI4npfuF.js.br +0 -0
- package/dist/client/assets/plan-face-DaOtA3_1.js.br +0 -0
- package/dist/client/assets/plan-render-CyVexNcj.js.br +0 -0
- package/dist/client/assets/pr-queue-columns-BW2EPtH3.js.br +0 -0
- package/dist/client/assets/radar-panel-CJQlEQwr.js.br +0 -0
- package/dist/client/assets/repo-roots-adder-CpG1m8cs.js.br +0 -0
- package/dist/client/assets/resume-dialog-BBL2W4g5.js.br +0 -0
- package/dist/client/assets/review-queue-panel-D1p2QRDw.js.br +0 -0
- package/dist/client/assets/settings-panel-9bxfFbo7.js.br +0 -0
- package/dist/client/assets/shown-face-d6s2LK1d.js.br +0 -0
- package/dist/client/assets/team-review-queue-row-BcaZg0vp.js.br +0 -0
- package/dist/client/assets/trace-panel-CdwHYTwS.js.br +0 -0
- package/dist/client/assets/usage-panel-aklK2lrm.js.br +0 -0
- package/dist/client/assets/your-day-tip-BAmNCnzv.js.br +0 -0
package/dist/bin/glimmervoid.js
CHANGED
|
@@ -63,7 +63,7 @@ var OWNED_COMMAND_RUNNERS = {
|
|
|
63
63
|
return await runDoctor() ? 0 : 1;
|
|
64
64
|
},
|
|
65
65
|
pair: async ({ values }) => {
|
|
66
|
-
const { runPairCli } = await import("../chunks/pair-cli-
|
|
66
|
+
const { runPairCli } = await import("../chunks/pair-cli-DtA5VvL1.js");
|
|
67
67
|
return runPairCli({
|
|
68
68
|
isListing: values.list === true,
|
|
69
69
|
revokeDeviceId: typeof values.revoke === "string" ? values.revoke : null,
|
|
@@ -75,11 +75,11 @@ var OWNED_COMMAND_RUNNERS = {
|
|
|
75
75
|
return runAgentSetupCli();
|
|
76
76
|
},
|
|
77
77
|
settings: async (parsed) => {
|
|
78
|
-
const { runParsedSettingsCli } = await import("../chunks/settings-cli-
|
|
78
|
+
const { runParsedSettingsCli } = await import("../chunks/settings-cli-Dk8r-e8b.js");
|
|
79
79
|
return runParsedSettingsCli(parsed);
|
|
80
80
|
},
|
|
81
81
|
why: async ({ positionals }) => {
|
|
82
|
-
const { runWhyCli } = await import("../chunks/why-cli-
|
|
82
|
+
const { runWhyCli } = await import("../chunks/why-cli-BZO7OEac.js");
|
|
83
83
|
return runWhyCli({ targetArgument: positionals[0] ?? "" });
|
|
84
84
|
},
|
|
85
85
|
"ssh-sign": async ({ rawArgs }) => {
|
|
@@ -176,7 +176,7 @@ async function readDeclaredCustomAgents() {
|
|
|
176
176
|
declared: [],
|
|
177
177
|
error: null
|
|
178
178
|
};
|
|
179
|
-
const { loadConfigFile } = await import("../chunks/config-store-
|
|
179
|
+
const { loadConfigFile } = await import("../chunks/config-store-CRNWDIt6.js");
|
|
180
180
|
try {
|
|
181
181
|
const loaded = loadConfigFile(decided.path, { exitOnError: false });
|
|
182
182
|
if (!loaded.config) return {
|
|
@@ -252,7 +252,7 @@ async function runDoctor() {
|
|
|
252
252
|
}
|
|
253
253
|
switchSection("Agents");
|
|
254
254
|
try {
|
|
255
|
-
const { listAgentIds, describeAgentResolvability, setCustomAgents } = await import("../chunks/adapters-
|
|
255
|
+
const { listAgentIds, describeAgentResolvability, setCustomAgents } = await import("../chunks/adapters-DWQfT5kH.js");
|
|
256
256
|
const declaredCustomAgents = await readDeclaredCustomAgents();
|
|
257
257
|
if (declaredCustomAgents.error) line("config", declaredCustomAgents.error);
|
|
258
258
|
setCustomAgents(declaredCustomAgents.declared);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as describeAgentResolvability, l as listAgentIds, f as setCustomAgents } from "./adapters-
|
|
1
|
+
export { a as describeAgentResolvability, l as listAgentIds, f as setCustomAgents } from "./adapters-fEt5pGEB.js";
|
|
@@ -10,7 +10,7 @@ import { n as shellQuote, t as buildHookCommand } from "./hook-command-core-5G0D
|
|
|
10
10
|
import { t as buildAgentEnv } from "./spawn-env-DRk5p4Bg.js";
|
|
11
11
|
import { i as isSpinnerChar, n as classifyAgentTitle, r as isBrailleChar, t as grok } from "./grok-4t530v8H.js";
|
|
12
12
|
import { O as nextBackoffMs, c as loadedJsonValue, d as writeJsonAtomicSync, s as loadJsonStateFileSync, t as appendJsonLine } from "./json-file-AKRVPqG1.js";
|
|
13
|
-
import {
|
|
13
|
+
import { S as isExperimentalBuild, o as glimmervoidHomeDir, x as compareReleaseVersions } from "./config-store-1tIhtxC2.js";
|
|
14
14
|
import { n as buildAgentSpawnCommand, r as resolveAgentCommand, t as kimi } from "./kimi-CaetD6w-.js";
|
|
15
15
|
import { c as CODEX_HOME_PROFILE, f as renderCodexHookTables, n as AGENT_HOME_CONFIG_NAME, p as renderCodexHooksBlock } from "./agent-home-core-8U0YNRUx.js";
|
|
16
16
|
import { c as releaseAgentHome, i as holdPreparedAgentHome, n as generatedAgentHomePath, s as realAgentHome } from "./agent-home-DGjtaaCS.js";
|
|
@@ -39,165 +39,6 @@ async function comparableDirectoryPath(candidatePath) {
|
|
|
39
39
|
return canonicalPath.toLowerCase();
|
|
40
40
|
}
|
|
41
41
|
//#endregion
|
|
42
|
-
//#region server/core/branch-gc-core.ts
|
|
43
|
-
var SESSION_BRANCH_PREFIX = "glimmervoid/session/";
|
|
44
|
-
var DEFAULT_BRANCH_GC_PREFIXES = [SESSION_BRANCH_PREFIX, "worktree-agent-"];
|
|
45
|
-
var DAY_MS = 864e5;
|
|
46
|
-
var MERGED_DELETION_REASON = "merged-into-integration";
|
|
47
|
-
var STALE_DELETION_REASON = "stale-orphan";
|
|
48
|
-
var UNMERGED_KEPT_REASON = "not-merged-and-unmerged-deletion-off";
|
|
49
|
-
function sessionIdFromBranch(branchName) {
|
|
50
|
-
if (!branchName.startsWith(SESSION_BRANCH_PREFIX)) return null;
|
|
51
|
-
return branchName.slice(20);
|
|
52
|
-
}
|
|
53
|
-
function usablePrefixes(prefixes) {
|
|
54
|
-
return prefixes.filter((prefix) => prefix.length > 0);
|
|
55
|
-
}
|
|
56
|
-
function matchedPrefix(name, prefixes) {
|
|
57
|
-
for (const prefix of usablePrefixes(prefixes)) if (name.startsWith(prefix)) return prefix;
|
|
58
|
-
return null;
|
|
59
|
-
}
|
|
60
|
-
function protectedBranchNames(integrationTips) {
|
|
61
|
-
return /* @__PURE__ */ new Set([
|
|
62
|
-
"main",
|
|
63
|
-
"master",
|
|
64
|
-
...integrationTips.map((tip) => tip.branch)
|
|
65
|
-
]);
|
|
66
|
-
}
|
|
67
|
-
function planBranchGc({ remoteBranches = [], integrationTips = [], liveSessionIds = /* @__PURE__ */ new Set(), prefixes = DEFAULT_BRANCH_GC_PREFIXES, nowMs, staleDays = 14, deleteUnmerged = false }) {
|
|
68
|
-
const deletions = [];
|
|
69
|
-
const kept = [];
|
|
70
|
-
const protectedNames = protectedBranchNames(integrationTips);
|
|
71
|
-
const staleBeforeMs = nowMs - staleDays * DAY_MS;
|
|
72
|
-
for (const remoteBranch of remoteBranches) {
|
|
73
|
-
const { name, tipSha } = remoteBranch;
|
|
74
|
-
if (matchedPrefix(name, prefixes) === null) {
|
|
75
|
-
kept.push({
|
|
76
|
-
name,
|
|
77
|
-
reason: "foreign-prefix"
|
|
78
|
-
});
|
|
79
|
-
continue;
|
|
80
|
-
}
|
|
81
|
-
if (protectedNames.has(name)) {
|
|
82
|
-
kept.push({
|
|
83
|
-
name,
|
|
84
|
-
reason: "not-merged-and-fresh"
|
|
85
|
-
});
|
|
86
|
-
continue;
|
|
87
|
-
}
|
|
88
|
-
const sessionId = sessionIdFromBranch(name);
|
|
89
|
-
if (sessionId !== null && liveSessionIds.has(sessionId)) {
|
|
90
|
-
kept.push({
|
|
91
|
-
name,
|
|
92
|
-
reason: "live-session"
|
|
93
|
-
});
|
|
94
|
-
continue;
|
|
95
|
-
}
|
|
96
|
-
if (remoteBranch.mergedIntoIntegration === true) {
|
|
97
|
-
deletions.push({
|
|
98
|
-
name,
|
|
99
|
-
reason: remoteBranch.mergedReason ?? MERGED_DELETION_REASON,
|
|
100
|
-
tipSha
|
|
101
|
-
});
|
|
102
|
-
continue;
|
|
103
|
-
}
|
|
104
|
-
if (!deleteUnmerged) {
|
|
105
|
-
kept.push({
|
|
106
|
-
name,
|
|
107
|
-
reason: UNMERGED_KEPT_REASON
|
|
108
|
-
});
|
|
109
|
-
continue;
|
|
110
|
-
}
|
|
111
|
-
if (Number.isFinite(remoteBranch.tipCommitTimeMs) && remoteBranch.tipCommitTimeMs < staleBeforeMs) {
|
|
112
|
-
deletions.push({
|
|
113
|
-
name,
|
|
114
|
-
reason: STALE_DELETION_REASON,
|
|
115
|
-
tipSha
|
|
116
|
-
});
|
|
117
|
-
continue;
|
|
118
|
-
}
|
|
119
|
-
kept.push({
|
|
120
|
-
name,
|
|
121
|
-
reason: "not-merged-and-fresh"
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
return {
|
|
125
|
-
deletions,
|
|
126
|
-
kept
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
function worktreeIntegrationTips({ projectTips, worktreeOwnTips }) {
|
|
130
|
-
const tipBySha = /* @__PURE__ */ new Map();
|
|
131
|
-
for (const tip of [...projectTips, ...worktreeOwnTips]) {
|
|
132
|
-
if (!tip.sha) continue;
|
|
133
|
-
if (tipBySha.has(tip.sha)) continue;
|
|
134
|
-
tipBySha.set(tip.sha, tip);
|
|
135
|
-
}
|
|
136
|
-
return [...tipBySha.values()];
|
|
137
|
-
}
|
|
138
|
-
function protectedWorktreeBranchNames(integrationTips, worktrees) {
|
|
139
|
-
const ownIntegrationBranches = worktrees.map((worktree) => worktree.integrationBranch).filter((branch) => Boolean(branch)).map((branch) => ({ branch }));
|
|
140
|
-
return protectedBranchNames([...integrationTips, ...ownIntegrationBranches]);
|
|
141
|
-
}
|
|
142
|
-
function planWorktreeGc({ worktrees, liveWorktreePaths, integrationTips, prefixes }) {
|
|
143
|
-
const removals = [];
|
|
144
|
-
const kept = [];
|
|
145
|
-
const protectedNames = protectedWorktreeBranchNames(integrationTips, worktrees);
|
|
146
|
-
for (const worktree of worktrees) {
|
|
147
|
-
const decision = (disposition, reason) => ({
|
|
148
|
-
cwd: worktree.cwd,
|
|
149
|
-
branch: worktree.branch,
|
|
150
|
-
disposition,
|
|
151
|
-
reason
|
|
152
|
-
});
|
|
153
|
-
if (worktree.prunable === true) {
|
|
154
|
-
kept.push(decision("keep", "missing-directory"));
|
|
155
|
-
continue;
|
|
156
|
-
}
|
|
157
|
-
if (worktree.locked) {
|
|
158
|
-
kept.push(decision("keep", "locked"));
|
|
159
|
-
continue;
|
|
160
|
-
}
|
|
161
|
-
if (liveWorktreePaths.has(worktree.cwd)) {
|
|
162
|
-
kept.push(decision("keep", "live-session"));
|
|
163
|
-
continue;
|
|
164
|
-
}
|
|
165
|
-
if (protectedNames.has(worktree.branch)) {
|
|
166
|
-
kept.push(decision("keep", "protected"));
|
|
167
|
-
continue;
|
|
168
|
-
}
|
|
169
|
-
if (matchedPrefix(worktree.branch, prefixes) === null) {
|
|
170
|
-
kept.push(decision("keep", "foreign-prefix"));
|
|
171
|
-
continue;
|
|
172
|
-
}
|
|
173
|
-
if (worktree.dirty === null) {
|
|
174
|
-
kept.push(decision("keep", "status-probe-failed"));
|
|
175
|
-
continue;
|
|
176
|
-
}
|
|
177
|
-
if (worktree.dirty) {
|
|
178
|
-
kept.push(decision("keep", "uncommitted-changes"));
|
|
179
|
-
continue;
|
|
180
|
-
}
|
|
181
|
-
if (worktree.atIntegrationTip === true) {
|
|
182
|
-
kept.push(decision("keep", "no-commits"));
|
|
183
|
-
continue;
|
|
184
|
-
}
|
|
185
|
-
if (worktree.merged === null) {
|
|
186
|
-
kept.push(decision("keep", "merge-proof-failed"));
|
|
187
|
-
continue;
|
|
188
|
-
}
|
|
189
|
-
if (worktree.merged !== true) {
|
|
190
|
-
kept.push(decision("keep", "unmerged"));
|
|
191
|
-
continue;
|
|
192
|
-
}
|
|
193
|
-
removals.push(decision("remove", "merged"));
|
|
194
|
-
}
|
|
195
|
-
return {
|
|
196
|
-
removals,
|
|
197
|
-
kept
|
|
198
|
-
};
|
|
199
|
-
}
|
|
200
|
-
//#endregion
|
|
201
42
|
//#region server/core/config-secrets-core.ts
|
|
202
43
|
var ENV_SECRET_BINDINGS = Object.freeze([{
|
|
203
44
|
blockName: "posthog",
|
|
@@ -3633,7 +3474,166 @@ function unrefTimer(handle) {
|
|
|
3633
3474
|
return handle;
|
|
3634
3475
|
}
|
|
3635
3476
|
//#endregion
|
|
3636
|
-
//#region server/
|
|
3477
|
+
//#region server/core/branch-gc-core.ts
|
|
3478
|
+
var SESSION_BRANCH_PREFIX = "glimmervoid/session/";
|
|
3479
|
+
var DEFAULT_BRANCH_GC_PREFIXES = [SESSION_BRANCH_PREFIX, "worktree-agent-"];
|
|
3480
|
+
var DAY_MS = 864e5;
|
|
3481
|
+
var MERGED_DELETION_REASON = "merged-into-integration";
|
|
3482
|
+
var STALE_DELETION_REASON = "stale-orphan";
|
|
3483
|
+
var UNMERGED_KEPT_REASON = "not-merged-and-unmerged-deletion-off";
|
|
3484
|
+
function sessionIdFromBranch(branchName) {
|
|
3485
|
+
if (!branchName.startsWith(SESSION_BRANCH_PREFIX)) return null;
|
|
3486
|
+
return branchName.slice(20);
|
|
3487
|
+
}
|
|
3488
|
+
function usablePrefixes(prefixes) {
|
|
3489
|
+
return prefixes.filter((prefix) => prefix.length > 0);
|
|
3490
|
+
}
|
|
3491
|
+
function matchedPrefix(name, prefixes) {
|
|
3492
|
+
for (const prefix of usablePrefixes(prefixes)) if (name.startsWith(prefix)) return prefix;
|
|
3493
|
+
return null;
|
|
3494
|
+
}
|
|
3495
|
+
function protectedBranchNames(integrationTips) {
|
|
3496
|
+
return /* @__PURE__ */ new Set([
|
|
3497
|
+
"main",
|
|
3498
|
+
"master",
|
|
3499
|
+
...integrationTips.map((tip) => tip.branch)
|
|
3500
|
+
]);
|
|
3501
|
+
}
|
|
3502
|
+
function planBranchGc({ remoteBranches = [], integrationTips = [], liveSessionIds = /* @__PURE__ */ new Set(), prefixes = DEFAULT_BRANCH_GC_PREFIXES, nowMs, staleDays = 14, deleteUnmerged = false }) {
|
|
3503
|
+
const deletions = [];
|
|
3504
|
+
const kept = [];
|
|
3505
|
+
const protectedNames = protectedBranchNames(integrationTips);
|
|
3506
|
+
const staleBeforeMs = nowMs - staleDays * DAY_MS;
|
|
3507
|
+
for (const remoteBranch of remoteBranches) {
|
|
3508
|
+
const { name, tipSha } = remoteBranch;
|
|
3509
|
+
if (matchedPrefix(name, prefixes) === null) {
|
|
3510
|
+
kept.push({
|
|
3511
|
+
name,
|
|
3512
|
+
reason: "foreign-prefix"
|
|
3513
|
+
});
|
|
3514
|
+
continue;
|
|
3515
|
+
}
|
|
3516
|
+
if (protectedNames.has(name)) {
|
|
3517
|
+
kept.push({
|
|
3518
|
+
name,
|
|
3519
|
+
reason: "not-merged-and-fresh"
|
|
3520
|
+
});
|
|
3521
|
+
continue;
|
|
3522
|
+
}
|
|
3523
|
+
const sessionId = sessionIdFromBranch(name);
|
|
3524
|
+
if (sessionId !== null && liveSessionIds.has(sessionId)) {
|
|
3525
|
+
kept.push({
|
|
3526
|
+
name,
|
|
3527
|
+
reason: "live-session"
|
|
3528
|
+
});
|
|
3529
|
+
continue;
|
|
3530
|
+
}
|
|
3531
|
+
if (remoteBranch.mergedIntoIntegration === true) {
|
|
3532
|
+
deletions.push({
|
|
3533
|
+
name,
|
|
3534
|
+
reason: remoteBranch.mergedReason ?? MERGED_DELETION_REASON,
|
|
3535
|
+
tipSha
|
|
3536
|
+
});
|
|
3537
|
+
continue;
|
|
3538
|
+
}
|
|
3539
|
+
if (!deleteUnmerged) {
|
|
3540
|
+
kept.push({
|
|
3541
|
+
name,
|
|
3542
|
+
reason: UNMERGED_KEPT_REASON
|
|
3543
|
+
});
|
|
3544
|
+
continue;
|
|
3545
|
+
}
|
|
3546
|
+
if (Number.isFinite(remoteBranch.tipCommitTimeMs) && remoteBranch.tipCommitTimeMs < staleBeforeMs) {
|
|
3547
|
+
deletions.push({
|
|
3548
|
+
name,
|
|
3549
|
+
reason: STALE_DELETION_REASON,
|
|
3550
|
+
tipSha
|
|
3551
|
+
});
|
|
3552
|
+
continue;
|
|
3553
|
+
}
|
|
3554
|
+
kept.push({
|
|
3555
|
+
name,
|
|
3556
|
+
reason: "not-merged-and-fresh"
|
|
3557
|
+
});
|
|
3558
|
+
}
|
|
3559
|
+
return {
|
|
3560
|
+
deletions,
|
|
3561
|
+
kept
|
|
3562
|
+
};
|
|
3563
|
+
}
|
|
3564
|
+
function worktreeIntegrationTips({ projectTips, worktreeOwnTips }) {
|
|
3565
|
+
const tipBySha = /* @__PURE__ */ new Map();
|
|
3566
|
+
for (const tip of [...projectTips, ...worktreeOwnTips]) {
|
|
3567
|
+
if (!tip.sha) continue;
|
|
3568
|
+
if (tipBySha.has(tip.sha)) continue;
|
|
3569
|
+
tipBySha.set(tip.sha, tip);
|
|
3570
|
+
}
|
|
3571
|
+
return [...tipBySha.values()];
|
|
3572
|
+
}
|
|
3573
|
+
function protectedWorktreeBranchNames(integrationTips, worktrees) {
|
|
3574
|
+
const ownIntegrationBranches = worktrees.map((worktree) => worktree.integrationBranch).filter((branch) => Boolean(branch)).map((branch) => ({ branch }));
|
|
3575
|
+
return protectedBranchNames([...integrationTips, ...ownIntegrationBranches]);
|
|
3576
|
+
}
|
|
3577
|
+
function planWorktreeGc({ worktrees, liveWorktreePaths, integrationTips, prefixes }) {
|
|
3578
|
+
const removals = [];
|
|
3579
|
+
const kept = [];
|
|
3580
|
+
const protectedNames = protectedWorktreeBranchNames(integrationTips, worktrees);
|
|
3581
|
+
for (const worktree of worktrees) {
|
|
3582
|
+
const decision = (disposition, reason) => ({
|
|
3583
|
+
cwd: worktree.cwd,
|
|
3584
|
+
branch: worktree.branch,
|
|
3585
|
+
disposition,
|
|
3586
|
+
reason
|
|
3587
|
+
});
|
|
3588
|
+
if (worktree.prunable === true) {
|
|
3589
|
+
kept.push(decision("keep", "missing-directory"));
|
|
3590
|
+
continue;
|
|
3591
|
+
}
|
|
3592
|
+
if (worktree.locked) {
|
|
3593
|
+
kept.push(decision("keep", "locked"));
|
|
3594
|
+
continue;
|
|
3595
|
+
}
|
|
3596
|
+
if (liveWorktreePaths.has(worktree.cwd)) {
|
|
3597
|
+
kept.push(decision("keep", "live-session"));
|
|
3598
|
+
continue;
|
|
3599
|
+
}
|
|
3600
|
+
if (protectedNames.has(worktree.branch)) {
|
|
3601
|
+
kept.push(decision("keep", "protected"));
|
|
3602
|
+
continue;
|
|
3603
|
+
}
|
|
3604
|
+
if (matchedPrefix(worktree.branch, prefixes) === null) {
|
|
3605
|
+
kept.push(decision("keep", "foreign-prefix"));
|
|
3606
|
+
continue;
|
|
3607
|
+
}
|
|
3608
|
+
if (worktree.dirty === null) {
|
|
3609
|
+
kept.push(decision("keep", "status-probe-failed"));
|
|
3610
|
+
continue;
|
|
3611
|
+
}
|
|
3612
|
+
if (worktree.dirty) {
|
|
3613
|
+
kept.push(decision("keep", "uncommitted-changes"));
|
|
3614
|
+
continue;
|
|
3615
|
+
}
|
|
3616
|
+
if (worktree.atIntegrationTip === true) {
|
|
3617
|
+
kept.push(decision("keep", "no-commits"));
|
|
3618
|
+
continue;
|
|
3619
|
+
}
|
|
3620
|
+
if (worktree.merged === null) {
|
|
3621
|
+
kept.push(decision("keep", "merge-proof-failed"));
|
|
3622
|
+
continue;
|
|
3623
|
+
}
|
|
3624
|
+
if (worktree.merged !== true) {
|
|
3625
|
+
kept.push(decision("keep", "unmerged"));
|
|
3626
|
+
continue;
|
|
3627
|
+
}
|
|
3628
|
+
removals.push(decision("remove", "merged"));
|
|
3629
|
+
}
|
|
3630
|
+
return {
|
|
3631
|
+
removals,
|
|
3632
|
+
kept
|
|
3633
|
+
};
|
|
3634
|
+
}
|
|
3635
|
+
//#endregion
|
|
3636
|
+
//#region server/config/config-defaults.ts
|
|
3637
3637
|
var DEFAULT_CONFIG = {
|
|
3638
3638
|
port: 3e3,
|
|
3639
3639
|
notifyDebounceMs: 3e3,
|
|
@@ -3697,9 +3697,73 @@ var DEFAULT_CONFIG = {
|
|
|
3697
3697
|
projects: []
|
|
3698
3698
|
};
|
|
3699
3699
|
var DEFAULT_CONFIG_BY_KEY = DEFAULT_CONFIG;
|
|
3700
|
+
//#endregion
|
|
3701
|
+
//#region server/config/config-migrations.ts
|
|
3702
|
+
function collectBranchGcIssues(branchGc) {
|
|
3703
|
+
if (!isRecord(branchGc)) return {
|
|
3704
|
+
block: { ...DEFAULT_CONFIG.branchGc },
|
|
3705
|
+
issues: []
|
|
3706
|
+
};
|
|
3707
|
+
const accepted = {};
|
|
3708
|
+
const issues = [];
|
|
3709
|
+
for (const [field, value] of Object.entries(branchGc)) {
|
|
3710
|
+
if (!Object.hasOwn(BranchGcFileSettings.shape, field)) {
|
|
3711
|
+
issues.push(`[config] Ignoring unknown branchGc.${field}; it is not a branchGc setting, so the default block applies.`);
|
|
3712
|
+
continue;
|
|
3713
|
+
}
|
|
3714
|
+
const parsed = BranchGcFileSettings.safeParse({ [field]: value });
|
|
3715
|
+
if (!parsed.success) {
|
|
3716
|
+
issues.push(`[config] Ignoring invalid branchGc.${field}; using the default instead: ${configIssueMessage(parsed.error)}`);
|
|
3717
|
+
continue;
|
|
3718
|
+
}
|
|
3719
|
+
accepted[field] = value;
|
|
3720
|
+
}
|
|
3721
|
+
return {
|
|
3722
|
+
block: {
|
|
3723
|
+
...DEFAULT_CONFIG.branchGc,
|
|
3724
|
+
...accepted
|
|
3725
|
+
},
|
|
3726
|
+
issues
|
|
3727
|
+
};
|
|
3728
|
+
}
|
|
3729
|
+
function resolveBranchGc(branchGc) {
|
|
3730
|
+
return collectBranchGcIssues(branchGc).block;
|
|
3731
|
+
}
|
|
3732
|
+
function resolveBranchGcAndWarn(branchGc) {
|
|
3733
|
+
const resolved = collectBranchGcIssues(branchGc);
|
|
3734
|
+
for (const issue of resolved.issues) console.warn(issue);
|
|
3735
|
+
return resolved.block;
|
|
3736
|
+
}
|
|
3737
|
+
var RETIRED_PROJECT_FLAGS = Object.freeze(["unconfined", "unguarded"]);
|
|
3738
|
+
function retiredGuardrailKeysWarning(config) {
|
|
3739
|
+
const projects = Array.isArray(config.projects) ? config.projects : [];
|
|
3740
|
+
const guardrails = config.guardrails;
|
|
3741
|
+
const retiredKeys = [
|
|
3742
|
+
...Object.hasOwn(config, "sandbox") ? ["sandbox"] : [],
|
|
3743
|
+
...isRecord(guardrails) ? Object.keys(guardrails).filter((key) => key !== "unreadablePaths").map((key) => `guardrails.${key}`) : [],
|
|
3744
|
+
...RETIRED_PROJECT_FLAGS.filter((key) => projects.some((project) => isRecord(project) && Object.hasOwn(project, key))).map((key) => `projects[].${key}`)
|
|
3745
|
+
];
|
|
3746
|
+
if (retiredKeys.length === 0) return null;
|
|
3747
|
+
return `[sane-yolo] config.json still has ${retiredKeys.join(", ")}; these keys are ignored (unreadablePaths moved to saneYoloUnreadablePaths)`;
|
|
3748
|
+
}
|
|
3749
|
+
function isAbsoluteOrHomePath(entry) {
|
|
3750
|
+
if (typeof entry !== "string") return false;
|
|
3751
|
+
const trimmedEntry = entry.trim();
|
|
3752
|
+
return trimmedEntry === "~" || trimmedEntry.startsWith("~/") || path.isAbsolute(trimmedEntry);
|
|
3753
|
+
}
|
|
3754
|
+
function migrateGuardrailsUnreadablePaths(config) {
|
|
3755
|
+
const guardrails = config.guardrails;
|
|
3756
|
+
if (!isRecord(guardrails) || !Object.hasOwn(guardrails, "unreadablePaths")) return null;
|
|
3757
|
+
const { unreadablePaths: legacyUnreadablePaths, ...remainingGuardrails } = guardrails;
|
|
3758
|
+
config.guardrails = remainingGuardrails;
|
|
3759
|
+
if (config.saneYoloUnreadablePaths !== void 0) return "[config] Dropped guardrails.unreadablePaths: saneYoloUnreadablePaths is already set and takes its place.";
|
|
3760
|
+
config.saneYoloUnreadablePaths = (Array.isArray(legacyUnreadablePaths) ? legacyUnreadablePaths : []).filter(isAbsoluteOrHomePath);
|
|
3761
|
+
return "[config] Moved guardrails.unreadablePaths to saneYoloUnreadablePaths: Sane YOLO now refuses reads of those folders.";
|
|
3762
|
+
}
|
|
3763
|
+
//#endregion
|
|
3764
|
+
//#region server/config/config-file.ts
|
|
3700
3765
|
var ABORT_CONFIG_SAVE = "abort-config-save";
|
|
3701
3766
|
var CONFIG_DIR_MODE = 448;
|
|
3702
|
-
var CONFIG_RELOAD_DEBOUNCE_MS = 500;
|
|
3703
3767
|
function glimmervoidHomeDir() {
|
|
3704
3768
|
return glimmervoidHomeDir$1(os.homedir(), process.env);
|
|
3705
3769
|
}
|
|
@@ -3879,70 +3943,12 @@ function ensureProjectIds(projects) {
|
|
|
3879
3943
|
}
|
|
3880
3944
|
return changed;
|
|
3881
3945
|
}
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
issues: []
|
|
3886
|
-
};
|
|
3887
|
-
const accepted = {};
|
|
3888
|
-
const issues = [];
|
|
3889
|
-
for (const [field, value] of Object.entries(branchGc)) {
|
|
3890
|
-
if (!Object.hasOwn(BranchGcFileSettings.shape, field)) {
|
|
3891
|
-
issues.push(`[config] Ignoring unknown branchGc.${field}; it is not a branchGc setting, so the default block applies.`);
|
|
3892
|
-
continue;
|
|
3893
|
-
}
|
|
3894
|
-
const parsed = BranchGcFileSettings.safeParse({ [field]: value });
|
|
3895
|
-
if (!parsed.success) {
|
|
3896
|
-
issues.push(`[config] Ignoring invalid branchGc.${field}; using the default instead: ${configIssueMessage(parsed.error)}`);
|
|
3897
|
-
continue;
|
|
3898
|
-
}
|
|
3899
|
-
accepted[field] = value;
|
|
3900
|
-
}
|
|
3901
|
-
return {
|
|
3902
|
-
block: {
|
|
3903
|
-
...DEFAULT_CONFIG.branchGc,
|
|
3904
|
-
...accepted
|
|
3905
|
-
},
|
|
3906
|
-
issues
|
|
3907
|
-
};
|
|
3908
|
-
}
|
|
3909
|
-
function resolveBranchGc(branchGc) {
|
|
3910
|
-
return collectBranchGcIssues(branchGc).block;
|
|
3911
|
-
}
|
|
3912
|
-
function resolveBranchGcAndWarn(branchGc) {
|
|
3913
|
-
const resolved = collectBranchGcIssues(branchGc);
|
|
3914
|
-
for (const issue of resolved.issues) console.warn(issue);
|
|
3915
|
-
return resolved.block;
|
|
3916
|
-
}
|
|
3946
|
+
//#endregion
|
|
3947
|
+
//#region server/config-store.ts
|
|
3948
|
+
var CONFIG_RELOAD_DEBOUNCE_MS = 500;
|
|
3917
3949
|
function secretSourcesOf(env) {
|
|
3918
3950
|
return Object.fromEntries(readEnvSecrets(env).map((secret) => [`${secret.blockName}.${secret.secretKey}`, secret.environmentVariable]));
|
|
3919
3951
|
}
|
|
3920
|
-
var RETIRED_PROJECT_FLAGS = Object.freeze(["unconfined", "unguarded"]);
|
|
3921
|
-
function retiredGuardrailKeysWarning(config) {
|
|
3922
|
-
const projects = Array.isArray(config.projects) ? config.projects : [];
|
|
3923
|
-
const guardrails = config.guardrails;
|
|
3924
|
-
const retiredKeys = [
|
|
3925
|
-
...Object.hasOwn(config, "sandbox") ? ["sandbox"] : [],
|
|
3926
|
-
...isRecord(guardrails) ? Object.keys(guardrails).filter((key) => key !== "unreadablePaths").map((key) => `guardrails.${key}`) : [],
|
|
3927
|
-
...RETIRED_PROJECT_FLAGS.filter((key) => projects.some((project) => isRecord(project) && Object.hasOwn(project, key))).map((key) => `projects[].${key}`)
|
|
3928
|
-
];
|
|
3929
|
-
if (retiredKeys.length === 0) return null;
|
|
3930
|
-
return `[sane-yolo] config.json still has ${retiredKeys.join(", ")}; these keys are ignored (unreadablePaths moved to saneYoloUnreadablePaths)`;
|
|
3931
|
-
}
|
|
3932
|
-
function isAbsoluteOrHomePath(entry) {
|
|
3933
|
-
if (typeof entry !== "string") return false;
|
|
3934
|
-
const trimmedEntry = entry.trim();
|
|
3935
|
-
return trimmedEntry === "~" || trimmedEntry.startsWith("~/") || path.isAbsolute(trimmedEntry);
|
|
3936
|
-
}
|
|
3937
|
-
function migrateGuardrailsUnreadablePaths(config) {
|
|
3938
|
-
const guardrails = config.guardrails;
|
|
3939
|
-
if (!isRecord(guardrails) || !Object.hasOwn(guardrails, "unreadablePaths")) return null;
|
|
3940
|
-
const { unreadablePaths: legacyUnreadablePaths, ...remainingGuardrails } = guardrails;
|
|
3941
|
-
config.guardrails = remainingGuardrails;
|
|
3942
|
-
if (config.saneYoloUnreadablePaths !== void 0) return "[config] Dropped guardrails.unreadablePaths: saneYoloUnreadablePaths is already set and takes its place.";
|
|
3943
|
-
config.saneYoloUnreadablePaths = (Array.isArray(legacyUnreadablePaths) ? legacyUnreadablePaths : []).filter(isAbsoluteOrHomePath);
|
|
3944
|
-
return "[config] Moved guardrails.unreadablePaths to saneYoloUnreadablePaths: Sane YOLO now refuses reads of those folders.";
|
|
3945
|
-
}
|
|
3946
3952
|
function readIsExperimentalBuild() {
|
|
3947
3953
|
const manifest = JSON.parse(fs.readFileSync(path.join(packageRoot, "package.json"), "utf8"));
|
|
3948
3954
|
return isRecord(manifest) && isExperimentalBuild(manifest.version);
|
|
@@ -4238,4 +4244,4 @@ function createConfigStore({ settingsDefaults, readTelemetryInstallId, isExperim
|
|
|
4238
4244
|
};
|
|
4239
4245
|
}
|
|
4240
4246
|
//#endregion
|
|
4241
|
-
export {
|
|
4247
|
+
export { buildBrowserExceptionProperties as $, deleteValueAtPath as A, SETTINGS_REGISTRY as B, isSettingAvailable as C, validateSettingsBlock as D, settingsBlockSpecFor as E, setValueAtPath as F, describeDataAttach as G, DEEP_HISTORY_SCROLLBACK_LINES as H, settingsGroupOf as I, FIRST_RUN_NOTICE as J, parseDataAttach as K, settingsOf as L, hasScaledUnit as M, parsePosthogProjectSelection as N, SETTINGS_INDEX as O, scoreSettingsSearch as P, buildAiGenerationEvents as Q, valueAtPath as R, isExperimentalBuild as S, isSameDirectoryPath as St, mergeSettingsBlock as T, FAST_TERMINAL_CLOSE_MS as U, isExperimentalSetting as V, LOGGED_FAST_CLOSE_COUNTS as W, TELEMETRY_FLAGS_URL as X, TELEMETRY_BATCH_URL as Y, adapterBucket as Z, usablePrefixes as _, readEnvSecrets as _t, generateProjectId as a, decideIsDevInstall as at, unrefTimer as b, canonicalizePath as bt, resolveConfigPath as c, exceptionFingerprint as ct, DEFAULT_CONFIG as d, resolveProjectToken as dt, buildExceptionProperties as et, DEFAULT_BRANCH_GC_PREFIXES as f, DashboardTelemetryReport as ft, sessionIdFromBranch as g, ENV_SECRET_BINDINGS as gt, planWorktreeGc as h, TelemetryState as ht, ensureProjectIds as i, codexUserIdOf as it, displayText as j, cloneValue as k, saveConfigFileOnce as l, nodeMajorVersion as lt, planBranchGc as m, TELEMETRY_EVENT_SCHEMAS as mt, createConfigStore as n, classifySessionExit as nt, glimmervoidHomeDir as o, decideRemoteTelemetryState as ot, matchedPrefix as p, PendingCrashReport as pt, parseDataClientMessage as q, ABORT_CONFIG_SAVE as r, claudeAccountUuidOf as rt, loadConfigFile as s, decideTelemetryConsent as st, IS_EXPERIMENTAL_BUILD as t, buildPersonProperties as tt, validateConfig as u, parsePosthogReleaseId as ut, worktreeIntegrationTips as v, stableConfigKey as vt, SECRET_PRESENCE_SUFFIX as w, compareReleaseVersions as x, comparableDirectoryPath as xt, DEFAULT_TIMER_FNS as y, withEnvSecrets as yt, FILE_ONLY_GROUPS as z };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { s as loadConfigFile } from "./config-store-1tIhtxC2.js";
|
|
@@ -17,15 +17,15 @@ import { r as knownWriteHookInput } from "./posthog-read-gate-core-CeSY56AB.js";
|
|
|
17
17
|
import { _ as findDependencyCycle, a as filesAfterRetention, c as readPageTitle, d as thumbnailOwnerIdOf, f as thumbnailRecipeFor, g as cappedWarnings, h as layoutBoard, i as describeOverCap, l as shownMimeForFilename, m as escapeMarkup, n as SHOWN_SNIFF_BYTES, o as isShownPageMime, p as boardSvgDocument, r as decideShownKind, s as leavesVisibleRawTextOpen, t as SHOWN_PAGE_ZOOM_BRIDGE, u as thumbnailFilenameOf, v as planSteps$1, y as unitsOf } from "./shown-files-core-Bf62aEaF.js";
|
|
18
18
|
import { c as parsePresentedCredential, n as shellQuote, s as mcpLaunchFor } from "./hook-command-core-5G0De2KV.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
|
|
20
|
+
import { $ as buildBrowserExceptionProperties, D as validateSettingsBlock, E as settingsBlockSpecFor, G as describeDataAttach, H as DEEP_HISTORY_SCROLLBACK_LINES, J as FIRST_RUN_NOTICE, K as parseDataAttach, O as SETTINGS_INDEX, Q as buildAiGenerationEvents, R as valueAtPath, St as isSameDirectoryPath, T as mergeSettingsBlock, V as isExperimentalSetting, W as LOGGED_FAST_CLOSE_COUNTS, X as TELEMETRY_FLAGS_URL, Y as TELEMETRY_BATCH_URL, Z as adapterBucket, _ as usablePrefixes, a as generateProjectId, at as decideIsDevInstall, b as unrefTimer, bt as canonicalizePath, ct as exceptionFingerprint, d as DEFAULT_CONFIG, dt as resolveProjectToken, et as buildExceptionProperties, f as DEFAULT_BRANCH_GC_PREFIXES, ft as DashboardTelemetryReport, g as sessionIdFromBranch, h as planWorktreeGc, ht as TelemetryState, i as ensureProjectIds, it as codexUserIdOf, lt as nodeMajorVersion, m as planBranchGc, mt as TELEMETRY_EVENT_SCHEMAS, n as createConfigStore, nt as classifySessionExit, o as glimmervoidHomeDir$1, ot as decideRemoteTelemetryState, p as matchedPrefix, pt as PendingCrashReport, q as parseDataClientMessage, r as ABORT_CONFIG_SAVE, rt as claudeAccountUuidOf, st as decideTelemetryConsent, tt as buildPersonProperties, ut as parsePosthogReleaseId, v as worktreeIntegrationTips, vt as stableConfigKey, xt as comparableDirectoryPath, y as DEFAULT_TIMER_FNS } from "./config-store-1tIhtxC2.js";
|
|
21
21
|
import { i as resolveArgvCommandMatches } from "./kimi-CaetD6w-.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, 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, y as isCheckFresh, yt as isWithinGenerationRecencyWindow, z as completeLineBytes, zt as rawStoredHooks } from "./adapters-
|
|
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, 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, y as isCheckFresh, yt as isWithinGenerationRecencyWindow, z as completeLineBytes, zt as rawStoredHooks } from "./adapters-fEt5pGEB.js";
|
|
23
23
|
import { c as CODEX_HOME_PROFILE, l as KIMI_HOME_PROFILE } from "./agent-home-core-8U0YNRUx.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-DGjtaaCS.js";
|
|
25
25
|
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";
|
|
26
|
-
import { a as defaultPairingsPath, c as decideDeviceAuth, i as createSeenStore, l as deviceNameFromUserAgent, n as configSiblingPath, o as defaultSeenPath, r as createPairingsStore, s as DEFAULT_DEVICE_MAX_AGE_MS, u as hashSecret } from "./pairings-store-
|
|
26
|
+
import { a as defaultPairingsPath, c as decideDeviceAuth, i as createSeenStore, l as deviceNameFromUserAgent, n as configSiblingPath, o as defaultSeenPath, r as createPairingsStore, s as DEFAULT_DEVICE_MAX_AGE_MS, u as hashSecret } from "./pairings-store-CChFbNsj.js";
|
|
27
27
|
import { g as runGit, h as runGh, i as createCommitSessions, m as runCommand, p as gitCommandFailure, t as COMMIT_SESSIONS_FOLDER_NAME } from "./commit-sessions-CYR3vNx9.js";
|
|
28
|
-
import { n as configFileViewOf, u as readSettingsForAgent } from "./settings-readout-core-
|
|
28
|
+
import { n as configFileViewOf, u as readSettingsForAgent } from "./settings-readout-core-4iqZak3r.js";
|
|
29
29
|
import { n as normalizeRemoteConfig, r as validateRemoteConfig, t as decideBindHost } from "./remote-config-Dcejfz01.js";
|
|
30
30
|
import { createRequire } from "node:module";
|
|
31
31
|
import fs, { readFileSync } from "node:fs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as errorMessage } from "./text-DoirglWV.js";
|
|
2
|
-
import {
|
|
3
|
-
import { a as defaultPairingsPath, i as createSeenStore, o as defaultSeenPath, r as createPairingsStore, t as REVOCATION_PROPAGATION_SECONDS } from "./pairings-store-
|
|
2
|
+
import { c as resolveConfigPath } from "./config-store-1tIhtxC2.js";
|
|
3
|
+
import { a as defaultPairingsPath, i as createSeenStore, o as defaultSeenPath, r as createPairingsStore, t as REVOCATION_PROPAGATION_SECONDS } from "./pairings-store-CChFbNsj.js";
|
|
4
4
|
import { n as normalizeRemoteConfig } from "./remote-config-Dcejfz01.js";
|
|
5
5
|
import fs from "node:fs";
|
|
6
6
|
//#region server/text-format.ts
|
|
@@ -2,7 +2,7 @@ import { n as errorLabel, r as errorMessage } from "./text-DoirglWV.js";
|
|
|
2
2
|
import { u as equalsIgnoringCaseOnWindows } from "./runtime-paths-CYwF658V.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 {
|
|
5
|
+
import { b as unrefTimer, bt as canonicalizePath, o as glimmervoidHomeDir, y as DEFAULT_TIMER_FNS } from "./config-store-1tIhtxC2.js";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import crypto from "node:crypto";
|
|
@@ -4,8 +4,8 @@ import { m as AgentSettingsReply } from "./session-9tw89-ku.js";
|
|
|
4
4
|
import { r as BrowserConfig } from "./config-ijg-oQmK.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 {
|
|
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 deleteValueAtPath, B as SETTINGS_REGISTRY, C as isSettingAvailable, F as setValueAtPath, N as parsePosthogProjectSelection, P as scoreSettingsSearch, R as valueAtPath, _t as readEnvSecrets, gt as ENV_SECRET_BINDINGS, k as cloneValue, l as saveConfigFileOnce, s as loadConfigFile, t as IS_EXPERIMENTAL_BUILD, u as validateConfig, yt as withEnvSecrets } from "./config-store-1tIhtxC2.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-4iqZak3r.js";
|
|
9
9
|
import fs from "node:fs";
|
|
10
10
|
import os from "node:os";
|
|
11
11
|
//#region server/settings-cli.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h as AgentSettingsRequest } from "./session-9tw89-ku.js";
|
|
2
2
|
import { t as renderTable } from "./ascii-figure-core-pDAwtlKO.js";
|
|
3
|
-
import {
|
|
3
|
+
import { B as SETTINGS_REGISTRY, C as isSettingAvailable, I as settingsGroupOf, L as settingsOf, M as hasScaledUnit, O as SETTINGS_INDEX, R as valueAtPath, _t as readEnvSecrets, j as displayText, k as cloneValue, z as FILE_ONLY_GROUPS } from "./config-store-1tIhtxC2.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,5 @@
|
|
|
1
1
|
import { t as firstLine } from "./text-core-rXHoQWP9.js";
|
|
2
|
-
import { n as configSiblingPath } from "./pairings-store-
|
|
2
|
+
import { n as configSiblingPath } from "./pairings-store-CChFbNsj.js";
|
|
3
3
|
import { a as gitCommonDirectoryOf, c as findRecord, d as parseCommitLog, f as parseWhyTarget, g as runGit, l as formatWhy, n as GIT_MAX_BUFFER, o as patchIdsOfBatch, r as GIT_TIMEOUT_MS, s as storePathFor, t as COMMIT_SESSIONS_FOLDER_NAME, u as lastPromptBefore } from "./commit-sessions-CYR3vNx9.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import path from "node:path";
|