- /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>
29 lines
1.2 KiB
JavaScript
29 lines
1.2 KiB
JavaScript
import fs from "node:fs";
|
|
import path from "node:path";
|
|
import { fileURLToPath } from "node:url";
|
|
|
|
export const APP_ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
|
|
// Two layouts: nested two folders deep in a larger workspace, or the standalone
|
|
// student repo (app/ beside .claude/). The kit has .claude one level up.
|
|
const KIT = fs.existsSync(path.join(APP_ROOT, "..", ".claude", "skills", "roast-room"));
|
|
export const REPO_ROOT = KIT ? path.resolve(APP_ROOT, "..") : path.resolve(APP_ROOT, "..", "..");
|
|
export const BRAINS_DIR = path.join(REPO_ROOT, ".claude", "skills", "roast-room", "brains");
|
|
export const AGENTS_DIR = path.join(REPO_ROOT, ".claude", "agents");
|
|
export const SESSIONS_DIR = KIT ? path.join(REPO_ROOT, "sessions") : path.join(REPO_ROOT, "projects", "founder-council", "sessions");
|
|
|
|
let cache = null;
|
|
export function env(key) {
|
|
if (process.env[key]) return process.env[key];
|
|
if (!cache) {
|
|
cache = {};
|
|
const p = path.join(REPO_ROOT, ".env");
|
|
if (fs.existsSync(p)) {
|
|
for (const line of fs.readFileSync(p, "utf8").split(/\r?\n/)) {
|
|
const m = line.match(/^([A-Z0-9_]+)=(.*)$/);
|
|
if (m && !(m[1] in cache)) cache[m[1]] = m[2].trim();
|
|
}
|
|
}
|
|
}
|
|
return cache[key] || "";
|
|
}
|