AI media harness for planning, generating, and editing locally
TypeScript
Rename assistant to Slop
Bitticb3b8307a72d
diff --git a/src-tauri/src/agent.rs b/src-tauri/src/agent.rsindex 6023533..cbaa646 100644--- a/src-tauri/src/agent.rs+++ b/src-tauri/src/agent.rs@@ -622,12 +622,12 @@ impl AgentRuntime {}if issue_retry_round > MAX_RETRIES_PER_VALIDATION_ISSUE {return Err(format!(- "Pol stopped after {MAX_RETRIES_PER_VALIDATION_ISSUE} correction rounds because the validator kept reporting the same failure: {failure}"+ "Slop stopped after {MAX_RETRIES_PER_VALIDATION_ISSUE} correction rounds because the validator kept reporting the same failure: {failure}"));}if total_retries >= MAX_TOTAL_VALIDATION_RETRIES {return Err(format!(- "Pol stopped after {MAX_TOTAL_VALIDATION_RETRIES} total correction rounds without reaching a valid project. Last validator failure: {failure}"+ "Slop stopped after {MAX_TOTAL_VALIDATION_RETRIES} total correction rounds without reaching a valid project. Last validator failure: {failure}"));}total_retries += 1;diff --git a/src/components/SettingsView.tsx b/src/components/SettingsView.tsxindex 61a1fc2..04255ad 100644--- a/src/components/SettingsView.tsx+++ b/src/components/SettingsView.tsx@@ -137,7 +137,7 @@ function PromptLlmSetting({ desktop }: { desktop: boolean }) {};return <div className="llm-settings">- <p className="llm-settings__intro">Configured providers appear in Pol’s prompt LLM list. Endpoints and API keys stay on this computer and are never saved in a project.</p>+ <p className="llm-settings__intro">Configured providers appear in Slop’s prompt LLM list. Endpoints and API keys stay on this computer and are never saved in a project.</p>{endpointProviders.map((provider) => {const value = settings[provider.id];const configured = isEndpointProviderConfigured(provider.id, value);diff --git a/src/components/workspace/AgentDock.test.tsx b/src/components/workspace/AgentDock.test.tsxindex 8637d9b..e6c2ba0 100644--- a/src/components/workspace/AgentDock.test.tsx+++ b/src/components/workspace/AgentDock.test.tsx@@ -49,7 +49,7 @@ afterEach(() => {delete (window as unknown as Record<string, unknown>).__TAURI_INTERNALS__;});-describe("Pol output panel", () => {+describe("Slop output panel", () => {it("can always expand and collapse, and expands itself while a turn is running", async () => {let finish!: (value: Awaited<ReturnType<typeof runAgentTurn>>) => void;vi.mocked(runAgentTurn).mockImplementation(() => new Promise((resolve) => { finish = resolve; }));@@ -57,26 +57,26 @@ describe("Pol output panel", () => {render(<AgentDock context="this generation queue" record={record} providers={providers} onRecord={() => undefined} />);await act(async () => { await Promise.resolve(); });- expect(screen.queryByRole("log", { name: "Pol output" })).not.toBeInTheDocument();- fireEvent.click(screen.getByRole("button", { name: "Expand Pol output" }));- expect(screen.getByRole("log", { name: "Pol output" })).toBeInTheDocument();- fireEvent.click(screen.getByRole("button", { name: "Collapse Pol output" }));+ expect(screen.queryByRole("log", { name: "Slop output" })).not.toBeInTheDocument();+ fireEvent.click(screen.getByRole("button", { name: "Expand Slop output" }));+ expect(screen.getByRole("log", { name: "Slop output" })).toBeInTheDocument();+ fireEvent.click(screen.getByRole("button", { name: "Collapse Slop output" }));- fireEvent.change(screen.getByRole("textbox", { name: "Ask Pol about this generation queue" }), { target: { value: "Create four shots" } });- fireEvent.click(screen.getByRole("button", { name: "Send to Pol" }));+ fireEvent.change(screen.getByRole("textbox", { name: "Ask Slop about this generation queue" }), { target: { value: "Create four shots" } });+ fireEvent.click(screen.getByRole("button", { name: "Send to Slop" }));await waitFor(() => expect(runAgentTurn).toHaveBeenCalled());- const log = screen.getByRole("log", { name: "Pol output" });+ const log = screen.getByRole("log", { name: "Slop output" });expect(log).toHaveTextContent("Sending this request to Codex");Object.defineProperty(log, "scrollHeight", { configurable: true, value: 900 });- const toggle = screen.getByRole("button", { name: "Collapse Pol output" });+ const toggle = screen.getByRole("button", { name: "Collapse Slop output" });expect(toggle.closest(".agent-dock-row")).not.toBeNull();expect(toggle.closest(".agent-dock")).toBeNull();const requestId = vi.mocked(runAgentTurn).mock.calls[0][3];act(() => eventHandler?.({ payload: { requestId, event: { type: "message", text: "{\"type\":\"item.completed\",\"item\":{\"type\":\"agent_message\",\"text\":\"{\\\"kind\\\":\\\"mutation\\\",\\\"summary\\\":\\\"Drafted the scene.\\\",\\\"project\\\":{}}\"}}" } } }));act(() => eventHandler?.({ payload: { requestId, event: { type: "validation", round: 1, maxRounds: 3, text: "Shot 4 starts at 18 seconds." } } }));- expect(screen.getByRole("log", { name: "Pol output" })).toHaveTextContent("Drafted the scene.");- expect(screen.getByRole("log", { name: "Pol output" })).toHaveTextContent("Correction 1 of 3: Shot 4 starts at 18 seconds.");+ expect(screen.getByRole("log", { name: "Slop output" })).toHaveTextContent("Drafted the scene.");+ expect(screen.getByRole("log", { name: "Slop output" })).toHaveTextContent("Correction 1 of 3: Shot 4 starts at 18 seconds.");expect(log.scrollTop).toBe(900);await act(async () => finish({ result: { kind: "answer", content: "Done" }, events: [], record }));diff --git a/src/components/workspace/AgentDock.tsx b/src/components/workspace/AgentDock.tsxindex 2c2bef0..662115c 100644--- a/src/components/workspace/AgentDock.tsx+++ b/src/components/workspace/AgentDock.tsx@@ -75,7 +75,7 @@ export function AgentDock({ context, record, providers, onRecord }: {? [selected.detail, providerNextStep(selected)].filter(Boolean).join(" "): null;const placeholder = ready- ? `Ask Pol to write a new scene from a prompt, refine ${context}, or make an edit…`+ ? `Ask Slop to write a new scene from a prompt, refine ${context}, or make an edit…`: blockedDetail ?? "No agent provider is available";const send = async () => {@@ -102,21 +102,21 @@ export function AgentDock({ context, record, providers, onRecord }: {return (<div className={`agent-dock-wrap${expanded ? " agent-dock-wrap--expanded" : ""}`}>- {expanded && <div ref={conversation} className="agent-conversation" role="log" aria-label="Pol output" aria-live="polite">- {messages.map((message) => <p key={message.id} className={`agent-conversation__${message.role}`}><b>{message.role === "user" ? "You" : "Pol"}</b><span>{message.content}</span></p>)}+ {expanded && <div ref={conversation} className="agent-conversation" role="log" aria-label="Slop output" aria-live="polite">+ {messages.map((message) => <p key={message.id} className={`agent-conversation__${message.role}`}><b>{message.role === "user" ? "You" : "Slop"}</b><span>{message.content}</span></p>)}{activity.map((item, index) => <p key={`${item.kind}-${index}`} className={`agent-conversation__${item.kind}`}><b>{activityLabel(item.kind)}</b><span>{item.text}</span></p>)}- {messages.length === 0 && activity.length === 0 && !error && <p className="agent-conversation__empty"><b>Pol</b><span>No activity yet. Send a prompt to start.</span></p>}- {error && <p className="agent-conversation__error"><b>Pol</b><span>Couldn’t finish that request. {error}</span></p>}+ {messages.length === 0 && activity.length === 0 && !error && <p className="agent-conversation__empty"><b>Slop</b><span>No activity yet. Send a prompt to start.</span></p>}+ {error && <p className="agent-conversation__error"><b>Slop</b><span>Couldn’t finish that request. {error}</span></p>}</div>}<div className="agent-dock-row"><buttontype="button"className="agent-panel-toggle"aria-expanded={expanded}- aria-label={expanded ? "Collapse Pol output" : "Expand Pol output"}- title={expanded ? "Collapse Pol output" : "Expand Pol output"}+ aria-label={expanded ? "Collapse Slop output" : "Expand Slop output"}+ title={expanded ? "Collapse Slop output" : "Expand Slop output"}onClick={() => setExpanded((visible) => !visible)}>{expanded ? <ChevronDown size={16} /> : <ChevronUp size={16} />}</button><form className="agent-dock" onSubmit={(event) => { event.preventDefault(); void send(); }}>@@ -127,7 +127,7 @@ export function AgentDock({ context, record, providers, onRecord }: {</select></label><input- aria-label={`Ask Pol about ${context}`}+ aria-label={`Ask Slop about ${context}`}value={prompt}onChange={(event) => setPrompt(event.target.value)}placeholder={placeholder}@@ -136,7 +136,7 @@ export function AgentDock({ context, record, providers, onRecord }: {/>{requestId ? <button type="button" className="agent-cancel" onClick={() => void cancelAgentTurn(requestId)} aria-label="Cancel agent turn"><Square size={14} /></button> : <>{!ready && <span className="agent-dock__blocked"><TriangleAlert size={14} aria-hidden="true" /> {selected ? providerStateLabel(selected.state) : "Unavailable"}</span>}- <button type="submit" disabled={!prompt.trim() || !ready} aria-label="Send to Pol" title={ready ? "Send to Pol — or press Enter" : blockedDetail ?? "No agent provider is available"}><ArrowUp size={16} /></button>+ <button type="submit" disabled={!prompt.trim() || !ready} aria-label="Send to Slop" title={ready ? "Send to Slop — or press Enter" : blockedDetail ?? "No agent provider is available"}><ArrowUp size={16} /></button></>}{requestId && <LoaderCircle className="agent-busy" size={16} />}</form>@@ -175,7 +175,7 @@ const providerLabel = (provider: ProviderId) => ({})[provider];/** Provider CLIs stream NDJSON. Pull out the model-authored text so the panel- * shows what Pol is saying instead of transport records. */+ * shows what Slop is saying instead of transport records. */export function readableProviderOutput(line: string): string | null {const clean = line.trim();if (!clean) return null;diff --git a/src/components/workspace/GeneratorView.tsx b/src/components/workspace/GeneratorView.tsxindex b3067f6..92e7fd4 100644--- a/src/components/workspace/GeneratorView.tsx+++ b/src/components/workspace/GeneratorView.tsx@@ -285,7 +285,7 @@ export function GeneratorView({ config, folderPath, runtime = null, generationColine for anyone, so the scene arrives with no words and carriesUNTITLED_SCENE as its name rather than a phrase this app made up.- A scene built FROM a prompt is Pol’s job: the bar along the bottom of the+ A scene built FROM a prompt is Slop’s job: the bar along the bottom of thewindow hands the request to Claude Code or Codex, which returns the wholeproject with the new scene in it. Nothing is auto-bound either way — whichreferences steer a scene is decided by writing them into a line or by the@@ -482,7 +482,7 @@ export function GeneratorView({ config, folderPath, runtime = null, generationCo{/* No scenes at all — which, on a new project, is where everyone starts.This is the whole of the "how do I start" advice now that the composer- is gone, so it has to name both doors: the button below, and Pol. */}+ is gone, so it has to name both doors: the button below, and Slop. */}{jobs.length === 0 && <div className="job-empty"><span className="job-empty__icon"><Sparkles size={26} /></span><h2>Start with one scene</h2>@@ -492,7 +492,7 @@ export function GeneratorView({ config, folderPath, runtime = null, generationCo<li>Each shot is a card. Choose one to write its line and set it up.</li><li>Drag a reference into a line and the prompt cites it as a subject.</li><li>You can read the finished prompt before anything is sent.</li>- <li>Or ask Pol in the bar along the bottom — Claude Code and Codex can write a whole scene from a prompt.</li>+ <li>Or ask Slop in the bar along the bottom — Claude Code and Codex can write a whole scene from a prompt.</li></ul><button className="primary-button job-empty__add" onClick={newScene}><Plus size={16} /> Add an empty scene</button></div>}diff --git a/src/lib/settings.ts b/src/lib/settings.tsindex 8c9e2c1..4e221b2 100644--- a/src/lib/settings.ts+++ b/src/lib/settings.ts@@ -182,7 +182,7 @@ export function withAgentEndpointSettings(config: ProjectConfig): ProjectConfig/* --- Agent provider -------------------------------------------------------- */-/* Which coding agent drives Pol is a property of the computer — it depends on+/* Which coding agent drives Slop is a property of the computer — it depends on* what is installed and signed in here — so it is remembered across restarts* next to the engine paths, not inside a project file. Projects written before* this existed still carry their own choice; that is read as a seed the firstdiff --git a/src/styles/workspace.css b/src/styles/workspace.cssindex 8f7f0ab..98b5b64 100644--- a/src/styles/workspace.css+++ b/src/styles/workspace.css@@ -1,6 +1,6 @@/* ============================================================================workspace.css — the full project editor frame: topbar, view nav, content- region, and the Pol agent dock that sits along the bottom.+ region, and the Slop agent dock that sits along the bottom.========================================================================== *//* --content-max is a MEASURE cap, not a floor. It used to sit here as@@ -180,7 +180,7 @@box-shadow: var(--shadow-up);}-/* Expanded means the Pol panel owns the workspace below the project top bar.+/* Expanded means the Slop panel owns the workspace below the project top bar.Its height is therefore stable; additional output scrolls inside it insteadof repeatedly resizing the editor behind it. */.project-agent-row:has(.agent-dock-wrap--expanded) {@@ -237,7 +237,7 @@box-shadow: 0 0 0 3px var(--accent-ring);}-/* The placeholder carries real guidance (and, when Pol is blocked, the reason+/* The placeholder carries real guidance (and, when Slop is blocked, the reasonplus the fix), so it must taper off with an ellipsis instead of being slicedthrough the middle of a word. The full text stays in the input's title. */.agent-dock input {