refactor(extensions): move cmux into sf extension as internal module

cmux was a standalone extension directory with no extension-manifest.json,
functioning as a utility library for the sf extension. Moving it into sf/cmux/
makes the dependency explicit and removes the orphaned extension directory.

Import paths updated:
- commands-cmux.js, notifications.js, auto.js: ../cmux → ./cmux
- bootstrap/system-context.js: ../../cmux → ../cmux
- subagent/index.js: ../../cmux → ../cmux

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Mikael Hugo 2026-05-15 02:34:35 +02:00
parent 534ed85ee1
commit f6619b792c
7 changed files with 5 additions and 5 deletions

View file

@ -33,7 +33,7 @@ import {
clearCmuxSidebar, clearCmuxSidebar,
logCmuxEvent, logCmuxEvent,
syncCmuxSidebar, syncCmuxSidebar,
} from "../cmux/index.js"; } from "./cmux/index.js";
import { collectSecretsFromManifest } from "../get-secrets-from-user.js"; import { collectSecretsFromManifest } from "../get-secrets-from-user.js";
import { getRtkSessionSavings } from "../shared/rtk-session-stats.js"; import { getRtkSessionSavings } from "../shared/rtk-session-stats.js";
import { deactivateSF } from "../shared/sf-phase-state.js"; import { deactivateSF } from "../shared/sf-phase-state.js";

View file

@ -4,7 +4,7 @@ import { join } from "node:path";
import { import {
markCmuxPromptShown, markCmuxPromptShown,
shouldPromptToEnableCmux, shouldPromptToEnableCmux,
} from "../../cmux/index.js"; } from "../cmux/index.js";
import { toPosixPath } from "../../shared/mod.js"; import { toPosixPath } from "../../shared/mod.js";
import { isCanAskUser } from "../auto.js"; import { isCanAskUser } from "../auto.js";
import { getActiveAutoWorktreeContext } from "../auto-worktree.js"; import { getActiveAutoWorktreeContext } from "../auto-worktree.js";

View file

@ -4,7 +4,7 @@ import {
clearCmuxSidebar, clearCmuxSidebar,
detectCmuxEnvironment, detectCmuxEnvironment,
resolveCmuxConfig, resolveCmuxConfig,
} from "../cmux/index.js"; } from "./cmux/index.js";
import { import {
ensurePreferencesFile, ensurePreferencesFile,
serializePreferencesToFrontmatter, serializePreferencesToFrontmatter,

View file

@ -5,7 +5,7 @@ import {
CmuxClient, CmuxClient,
emitOsc777Notification, emitOsc777Notification,
resolveCmuxConfig, resolveCmuxConfig,
} from "../cmux/index.js"; } from "./cmux/index.js";
import { loadEffectiveSFPreferences } from "./preferences.js"; import { loadEffectiveSFPreferences } from "./preferences.js";
/** /**
* Send a native desktop notification. Non-blocking, non-fatal. * Send a native desktop notification. Non-blocking, non-fatal.

View file

@ -21,7 +21,7 @@ import { Type } from "@sinclair/typebox";
import { StringEnum } from "@singularity-forge/ai"; import { StringEnum } from "@singularity-forge/ai";
import { getMarkdownTheme } from "@singularity-forge/coding-agent"; import { getMarkdownTheme } from "@singularity-forge/coding-agent";
import { Container, Markdown, Spacer, Text } from "@singularity-forge/tui"; import { Container, Markdown, Spacer, Text } from "@singularity-forge/tui";
import { CmuxClient, shellEscape } from "../../cmux/index.js"; import { CmuxClient, shellEscape } from "../cmux/index.js";
import { formatTokenCount } from "../../shared/mod.js"; import { formatTokenCount } from "../../shared/mod.js";
import { getCurrentPhase } from "../../shared/sf-phase-state.js"; import { getCurrentPhase } from "../../shared/sf-phase-state.js";
import { delay } from "../atomic-write.js"; import { delay } from "../atomic-write.js";