The VS Code of video editing, built for agents.
TypeScript
Refactor CLI command references from `dapi` to `diffusion` in source files
konstantin-paulus7a9393d4e2e4
diff --git a/apps/desktop/src/mcp-install.ts b/apps/desktop/src/mcp-install.tsindex f5cac9e2..4762badc 100644--- a/apps/desktop/src/mcp-install.ts+++ b/apps/desktop/src/mcp-install.ts@@ -84,14 +84,14 @@ function writeConfig(target: AgentTarget, text: string): void {/*** Why this agent cannot be connected from this build, or null when it can.- * Only the stdio agents have reasons: a build without the `dapi` binary has+ * Only the stdio agents have reasons: a build without the `diffusion` binary has* nothing for them to run, and a quarantined first launch runs from a* translocated read-only mount whose path won't survive the next launch —* registering it would dangle.*/function unavailableReason(target: AgentTarget, current: McpServerSpec): string | null {if (!needsBinary(target)) return null;- if (current.command === "") return "Needs the dapi command line tool, which this build does not include.";+ if (current.command === "") return "Needs the diffusion command line tool, which this build does not include.";if (app.isPackaged && current.command.includes("/AppTranslocation/")) {return "Move Diffusion Studio to the Applications folder and relaunch it first.";}diff --git a/apps/desktop/src/projects.ts b/apps/desktop/src/projects.tsindex 5924beef..f39a9ea5 100644--- a/apps/desktop/src/projects.ts+++ b/apps/desktop/src/projects.ts@@ -456,21 +456,21 @@ const SOLID_VERSION = "^1.9.10";* subcommands have no top-level namesakes to collide with.*/const SCRIPTS: Record<string, string> = {- open: "dapi open .",- context: "dapi context",- capture: "dapi capture",- probe: "dapi media probe",- transcribe: "dapi media transcribe",- grab: "dapi media grab",- filmstrip: "dapi media filmstrip",- waveform: "dapi media waveform",- listen: "dapi media listen",- models: "dapi models",- voices: "dapi voices",- fonts: "dapi fonts",- logs: "dapi logs",- screenshot: "dapi screenshot",- report: "dapi report",+ open: "diffusion open .",+ context: "diffusion context",+ capture: "diffusion capture",+ probe: "diffusion media probe",+ transcribe: "diffusion media transcribe",+ grab: "diffusion media grab",+ filmstrip: "diffusion media filmstrip",+ waveform: "diffusion media waveform",+ listen: "diffusion media listen",+ models: "diffusion models",+ voices: "diffusion voices",+ fonts: "diffusion fonts",+ logs: "diffusion logs",+ screenshot: "diffusion screenshot",+ report: "diffusion report",};const packageJson = (name: string, displayName: string): PackageJson => ({diff --git a/apps/web/src/components/dashboard/mcp-view.tsx b/apps/web/src/components/dashboard/mcp-view.tsxindex 3e075f4d..68ea264c 100644--- a/apps/web/src/components/dashboard/mcp-view.tsx+++ b/apps/web/src/components/dashboard/mcp-view.tsx@@ -212,7 +212,7 @@ function DashboardCliSection() {try {const result = await installCli();if (result.status === "installed") {- toast("CLI installed", { description: "Run dapi --help in a terminal to get started." });+ toast("CLI installed", { description: "Run diffusion --help in a terminal to get started." });}if (result.status === "error") {toast.error("Could not install the CLI", { description: result.error });@@ -247,7 +247,7 @@ function DashboardCliSection() {<DashboardInfoActionRowlayout="inline"leadingSize="sm"- title="dapi CLI"+ title="diffusion CLI"leading={<Icon name="dapi-cli" class="text-foreground" />}description="Diffusion Studio’s command-line tool for accessing its media tools and managing projects."action={diff --git a/apps/web/src/lib/db.ts b/apps/web/src/lib/db.tsindex e73dade9..25dad417 100644--- a/apps/web/src/lib/db.ts+++ b/apps/web/src/lib/db.ts@@ -25,7 +25,7 @@ export function generateProjectName(): string {/*** A project the app knows: one it created, one it was asked to open — from- * the folder picker, or `dapi open <path>` — or one found in the projects+ * the folder picker, or `diffusion open <path>` — or one found in the projects* root when that was chosen. The dashboard lists these and nothing else.* Keyed by folder, which is how main addresses a project.*/