Rebrand to Roast Room; add waiting card, guide, and verdict PDF
- /founder-council is now /roast-room (skill folder, README, CLAUDE.md, package name) - Room shows a waiting card between rounds: round, elapsed time, what each advisor is weighing, and a nudge to check Claude Code after 4 minutes - Idle side panel is a getting-started guide: steps, what to put in your question, and a copyable example - Download PDF on the verdict and in Past sessions: a two-page branded report built in the browser (vendored jsPDF, Montserrat subset), nothing to install - .claude/settings.json pre-allows writes to sessions/ and the quote check, so a council runs without a stream of permission prompts - Quote check falls back to searching the brains when Python is missing Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8a6b473934
commit
8891669056
96 files changed
+1152
-118
No files matched your search
+4
-4
@@ -9,11 +9,11 @@ import * as watch from "./lib/watch.mjs";
|
||||
|
||||
const PORT = Number(process.env.PORT) || 4730;
|
||||
const PUBLIC = path.join(APP_ROOT, "public");
|
||||
const TYPES = { ".html": "text/html; charset=utf-8", ".js": "text/javascript; charset=utf-8", ".css": "text/css; charset=utf-8", ".svg": "image/svg+xml", ".png": "image/png", ".webp": "image/webp", ".ico": "image/x-icon", ".json": "application/json" };
|
||||
const TYPES = { ".html": "text/html; charset=utf-8", ".js": "text/javascript; charset=utf-8", ".css": "text/css; charset=utf-8", ".svg": "image/svg+xml", ".png": "image/png", ".webp": "image/webp", ".ico": "image/x-icon", ".json": "application/json", ".ttf": "font/ttf", ".txt": "text/plain; charset=utf-8" };
|
||||
|
||||
let running = null; // one council at a time (API runner)
|
||||
|
||||
// "viewer" (default): the room plays councils that /founder-council runs in Claude Code.
|
||||
// "viewer" (default): the room plays councils that /roast-room runs in Claude Code.
|
||||
// "api": the room can also run councils itself on ANTHROPIC_API_KEY (COUNCIL_RUNNER=api in .env).
|
||||
const RUNNER = (process.env.COUNCIL_RUNNER || env("COUNCIL_RUNNER") || "viewer").toLowerCase() === "api" ? "api" : "viewer";
|
||||
watch.startWatching();
|
||||
@@ -36,7 +36,7 @@ const server = http.createServer(async (req, res) => {
|
||||
if (p === "/api/seats") return send(res, 200, { seats: SEATS, models: MODELS, runner: RUNNER, hasKey: Boolean(env("ANTHROPIC_API_KEY")) });
|
||||
if (p === "/api/usage") return send(res, 200, usage);
|
||||
if (p === "/api/council" && req.method === "POST") {
|
||||
if (RUNNER !== "api") return send(res, 403, { error: "This room is a viewer. Run /founder-council in Claude Code, or set COUNCIL_RUNNER=api in .env." });
|
||||
if (RUNNER !== "api") return send(res, 403, { error: "This room is a viewer. Run /roast-room in Claude Code, or set COUNCIL_RUNNER=api in .env." });
|
||||
if (running && getSession(running)?.status === "running") return send(res, 409, { error: "A council is already in session. Wait for its verdict." });
|
||||
const { prompt, mode } = await readJson(req);
|
||||
if (!prompt || prompt.trim().length < 10) return send(res, 400, { error: "Give the council a real decision (at least a sentence)." });
|
||||
@@ -75,4 +75,4 @@ const server = http.createServer(async (req, res) => {
|
||||
}
|
||||
});
|
||||
|
||||
server.listen(PORT, "127.0.0.1", () => console.log(`Founder Council room on http://localhost:${PORT} (${RUNNER === "api" ? "viewer + API runner" : "viewer: run /founder-council in Claude Code"})`));
|
||||
server.listen(PORT, "127.0.0.1", () => console.log(`Roast Room on http://localhost:${PORT} (${RUNNER === "api" ? "viewer + API runner" : "viewer: run /roast-room in Claude Code"})`));
|
||||
Reference in new issue
Block a user