codex-supervisor-mcp 0.13.4 → 0.13.5

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/src/landing.js CHANGED
@@ -427,7 +427,7 @@ export function rebaseWorktree(task, ontoCommit) {
427
427
  // stash's third parent; they are removed before the pop that restores
428
428
  // them for good.
429
429
  const removeStashedUntracked = () => {
430
- let paths = [];
430
+ let paths;
431
431
  try {
432
432
  paths = lines(git(cwd, ["ls-tree", "-r", "--name-only", "refs/stash^3"]));
433
433
  } catch {
package/src/setup.js CHANGED
@@ -132,7 +132,7 @@ function versionManagerBinDirs() {
132
132
  const dirs = [];
133
133
  for (const [root, suffix] of VERSION_MANAGER_ROOTS) {
134
134
  if (!existsSync(root)) continue;
135
- let entries = [];
135
+ let entries;
136
136
  try {
137
137
  entries = readdirSync(root);
138
138
  } catch {
@@ -188,7 +188,7 @@ async function registeredMcp(target, client) {
188
188
  } catch (error) {
189
189
  const message = `${error.stdout ?? ""}${error.stderr ?? ""}${error.message}`;
190
190
  if (/not found|no mcp server|could not find|does not exist/i.test(message)) return null;
191
- throw new Error(`cannot read ${client.label} MCP registration: ${error.message.split("\n")[0]}`);
191
+ throw new Error(`cannot read ${client.label} MCP registration: ${error.message.split("\n")[0]}`, { cause: error });
192
192
  }
193
193
  }
194
194
 
package/src/side-chat.js CHANGED
@@ -22,7 +22,6 @@
22
22
  // turn failed / timed out / stopped error on the turn, session still usable
23
23
  // board restarted mid-turn ........ turn marked interrupted
24
24
  // session ended ................... fork deleted, history cleared
25
- import { execFileSync, spawn } from "node:child_process";
26
25
  import { randomUUID } from "node:crypto";
27
26
  import { codexConfigText, disableMcpServerArgs } from "./mcp-config.js";
28
27
  import { codexRunner } from "./runner-adapter.js";
package/src/task-store.js CHANGED
@@ -1741,7 +1741,7 @@ export async function readAgentMessages(taskId, limit = 1) {
1741
1741
  `).all(taskId, limit * 5 + 10);
1742
1742
  const messages = [];
1743
1743
  for (const row of rows) {
1744
- let text = null;
1744
+ let text;
1745
1745
  try {
1746
1746
  text = extractAgentMessage(JSON.parse(row.payload));
1747
1747
  } catch {
package/src/worktree.js CHANGED
@@ -184,7 +184,7 @@ export function readWorktreeDiff(worktreePath, { baseCommit = null, branch = nul
184
184
  truncatedFiles += 1;
185
185
  continue;
186
186
  }
187
- let patch = "";
187
+ let patch;
188
188
  try {
189
189
  if (file.status === "untracked") {
190
190
  const text = readFileSync(join(worktreePath, file.path), "utf8");
@@ -295,7 +295,7 @@ export function snapshotTaskOutput(task) {
295
295
  // base is not in; every git error is reported as null, never as 0.
296
296
  export function baseBehind(projectRoot, baseCommit) {
297
297
  if (!projectRoot || !baseCommit || !existsSync(projectRoot)) return { behind: null, contains_base: null, ref: null };
298
- let ref = null;
298
+ let ref;
299
299
  try {
300
300
  ref = git(projectRoot, ["symbolic-ref", "--short", "-q", "HEAD"]).trim() || "HEAD";
301
301
  } catch {