Multi-topic batch. The big-ticket item is the skills audit; the rest are smaller patches that compounded during the audit work. ## Skills audit (rules→recipes split) Vendored all 26 skills from /home/samkintop/opt/skills/ into data/skills/ (the boocode-repo-local skill library — see docker-compose change below). Audited via 5 parallel Claude Code agent-teams running the mgechev/skills-best-practices 4-step protocol (Discovery → Logic → Edge Case → self-Architecture-Refinement) per skill, ~2 min wall-clock vs the ~3.7-hour serial estimate. Result: 14 skills surviving (renamed to gerund form, frontmatter matched), 11 deleted (duplicates, BooCode-irrelevant patterns, Claude-already-does- natively), 1 migrated to BOOCHAT.md/BOOCODER.md as an always-true rule (verification-before-completion). Each surviving skill had its description refined to fix specific trigger gaps surfaced by the protocol — 4 real-bug findings landed (dead refs, stale tags, broken sub-file references in the original vendored content). Audit decisions documented in openspec/changes/v1.13.12-skills-audit/ audit-notes.md. Convention codified in BOOCHAT.md/BOOCODER.md "rules vs recipes" sections — future workflow rules go to those files (100% present), recipes stay in data/skills/ (~6% invoke rate in multi-turn per the Codeminer42 measurement). ## Token tracking + stale-stream banner fix (same root cause) ws-frames.ts IsoTimestamp was z.string().min(1) but postgres returns timestamp columns as JS Date objects. Every message_complete / session_updated / chat_updated frame was failing the v1.13.11 Zod gate and being silently dropped. Symptoms: token tracking blank in the UI (no usage frames landed); the 60s no-token-activity timer tripped the stale-stream banner because the frontend's local message state never saw status='streaming' flip to 'complete'. Fix: z.preprocess(v => v instanceof Date ? v.toISOString() : v, z.string().min(1)) applied to the IsoTimestamp primitive. Centralized, no publisher changes, works identically server + web (the parity test still passes). ## Codecontext .codecontextignore auto-install services/codecontext_client.ts now copies the codecontext/.codecontextignore.template into any project's root on the first call to that project if no .codecontextignore exists. One file written per project, idempotent (in-memory Set guard + access-check), silent fallback on read-only project. Stops the upstream empty-source- file parser crash on foreign projects' node_modules — previously required manually copying the template per project. ## Tool-call budget cap 30 → 50 services/inference/budget.ts: BUDGET_READ_ONLY and BUDGET_NO_AGENT bumped to 50 (from 30). BUDGET_NON_READ_ONLY stays at 10 (no write tools landed yet). Real recon sessions were hitting 30 with ~3 turns wasted on codecontext parse failures; legitimate need was ~27, and Architect-class system overviews want deeper recon. Headroom of 20 absorbs failure-retry turns without changing the safety floor — the doom-loop guard (3 identical calls → abort) catches the actual failure mode this cap was guarding against. v1.14 (Phase C outer agent loop) will supersede this via per-agent agent.steps. Throwaway-ish patch but unblocks deeper recon today. ## UI cleanups - ChatPane queued-message dropdown removed. Each queued message now has three buttons: edit (pop back into ChatInput via sendToChat event), force-send (was the dropdown's only useful action), and cancel. Default behavior (send when streaming completes) needs no UI — it's the implicit do-nothing path. - ChatThroughput removed from desktop tab strip (ChatTabBar.tsx). Mobile tab switcher still shows it. ## Plumbing - .gitignore: data/* + !data/AGENTS.md + !data/skills/ negation patterns so the vendored skill library + agent registry become git-tracked while session DB state stays out. - docker-compose.yml: removed /opt/skills:/data/skills override mount. Skills now live in the boocode repo at data/skills/, auditable per-batch. The host-level /opt/skills/ is preserved untouched for any other tools that read from it. - .codecontextignore at repo root: auto-installed when codecontext was first called against /opt/boocode itself; matches the template. - CLAUDE.md: updated to document the v1.13.11 publishFrame wrapper + message_parts table + tool_cost_stats view + DB-integration test pattern + host-side smoke endpoint quirk. (Pre-existing in working tree before this batch; shipped here for completeness.) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
215 lines
7.5 KiB
HTML
215 lines
7.5 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Superpowers Brainstorming</title>
|
|
<style>
|
|
/*
|
|
* BRAINSTORM COMPANION FRAME TEMPLATE
|
|
*
|
|
* This template provides a consistent frame with:
|
|
* - OS-aware light/dark theming
|
|
* - Fixed header and selection indicator bar
|
|
* - Scrollable main content area
|
|
* - CSS helpers for common UI patterns
|
|
*
|
|
* Content is injected via placeholder comment in #claude-content.
|
|
*/
|
|
|
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
html, body { height: 100%; overflow: hidden; }
|
|
|
|
/* ===== THEME VARIABLES ===== */
|
|
:root {
|
|
--bg-primary: #f5f5f7;
|
|
--bg-secondary: #ffffff;
|
|
--bg-tertiary: #e5e5e7;
|
|
--border: #d1d1d6;
|
|
--text-primary: #1d1d1f;
|
|
--text-secondary: #86868b;
|
|
--text-tertiary: #aeaeb2;
|
|
--accent: #0071e3;
|
|
--accent-hover: #0077ed;
|
|
--success: #34c759;
|
|
--warning: #ff9f0a;
|
|
--error: #ff3b30;
|
|
--selected-bg: #e8f4fd;
|
|
--selected-border: #0071e3;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--bg-primary: #1d1d1f;
|
|
--bg-secondary: #2d2d2f;
|
|
--bg-tertiary: #3d3d3f;
|
|
--border: #424245;
|
|
--text-primary: #f5f5f7;
|
|
--text-secondary: #86868b;
|
|
--text-tertiary: #636366;
|
|
--accent: #0a84ff;
|
|
--accent-hover: #409cff;
|
|
--selected-bg: rgba(10, 132, 255, 0.15);
|
|
--selected-border: #0a84ff;
|
|
}
|
|
}
|
|
|
|
body {
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
display: flex;
|
|
flex-direction: column;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
/* ===== FRAME STRUCTURE ===== */
|
|
.header {
|
|
background: var(--bg-secondary);
|
|
padding: 0.5rem 1.5rem;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
border-bottom: 1px solid var(--border);
|
|
flex-shrink: 0;
|
|
}
|
|
.header h1 { font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); }
|
|
.header .status { font-size: 0.7rem; color: var(--success); display: flex; align-items: center; gap: 0.4rem; }
|
|
.header .status::before { content: ''; width: 6px; height: 6px; background: var(--success); border-radius: 50%; }
|
|
|
|
.main { flex: 1; overflow-y: auto; }
|
|
#claude-content { padding: 2rem; min-height: 100%; }
|
|
|
|
.indicator-bar {
|
|
background: var(--bg-secondary);
|
|
border-top: 1px solid var(--border);
|
|
padding: 0.5rem 1.5rem;
|
|
flex-shrink: 0;
|
|
text-align: center;
|
|
}
|
|
.indicator-bar span {
|
|
font-size: 0.75rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
.indicator-bar .selected-text {
|
|
color: var(--accent);
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* ===== TYPOGRAPHY ===== */
|
|
h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; }
|
|
h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.25rem; }
|
|
.subtitle { color: var(--text-secondary); margin-bottom: 1.5rem; }
|
|
.section { margin-bottom: 2rem; }
|
|
.label { font-size: 0.7rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
|
|
|
|
/* ===== OPTIONS (for A/B/C choices) ===== */
|
|
.options { display: flex; flex-direction: column; gap: 0.75rem; }
|
|
.option {
|
|
background: var(--bg-secondary);
|
|
border: 2px solid var(--border);
|
|
border-radius: 12px;
|
|
padding: 1rem 1.25rem;
|
|
cursor: pointer;
|
|
transition: all 0.15s ease;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 1rem;
|
|
}
|
|
.option:hover { border-color: var(--accent); }
|
|
.option.selected { background: var(--selected-bg); border-color: var(--selected-border); }
|
|
.option .letter {
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-secondary);
|
|
width: 1.75rem; height: 1.75rem;
|
|
border-radius: 6px;
|
|
display: flex; align-items: center; justify-content: center;
|
|
font-weight: 600; font-size: 0.85rem; flex-shrink: 0;
|
|
}
|
|
.option.selected .letter { background: var(--accent); color: white; }
|
|
.option .content { flex: 1; }
|
|
.option .content h3 { font-size: 0.95rem; margin-bottom: 0.15rem; }
|
|
.option .content p { color: var(--text-secondary); font-size: 0.85rem; margin: 0; }
|
|
|
|
/* ===== CARDS (for showing designs/mockups) ===== */
|
|
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
|
|
.card {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
cursor: pointer;
|
|
transition: all 0.15s ease;
|
|
}
|
|
.card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
|
|
.card.selected { border-color: var(--selected-border); border-width: 2px; }
|
|
.card-image { background: var(--bg-tertiary); aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; }
|
|
.card-body { padding: 1rem; }
|
|
.card-body h3 { margin-bottom: 0.25rem; }
|
|
.card-body p { color: var(--text-secondary); font-size: 0.85rem; }
|
|
|
|
/* ===== MOCKUP CONTAINER ===== */
|
|
.mockup {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
.mockup-header {
|
|
background: var(--bg-tertiary);
|
|
padding: 0.5rem 1rem;
|
|
font-size: 0.75rem;
|
|
color: var(--text-secondary);
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
.mockup-body { padding: 1.5rem; }
|
|
|
|
/* ===== SPLIT VIEW (side-by-side comparison) ===== */
|
|
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
|
|
@media (max-width: 700px) { .split { grid-template-columns: 1fr; } }
|
|
|
|
/* ===== PROS/CONS ===== */
|
|
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; }
|
|
.pros, .cons { background: var(--bg-secondary); border-radius: 8px; padding: 1rem; }
|
|
.pros h4 { color: var(--success); font-size: 0.85rem; margin-bottom: 0.5rem; }
|
|
.cons h4 { color: var(--error); font-size: 0.85rem; margin-bottom: 0.5rem; }
|
|
.pros ul, .cons ul { margin-left: 1.25rem; font-size: 0.85rem; color: var(--text-secondary); }
|
|
.pros li, .cons li { margin-bottom: 0.25rem; }
|
|
|
|
/* ===== PLACEHOLDER (for mockup areas) ===== */
|
|
.placeholder {
|
|
background: var(--bg-tertiary);
|
|
border: 2px dashed var(--border);
|
|
border-radius: 8px;
|
|
padding: 2rem;
|
|
text-align: center;
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
/* ===== INLINE MOCKUP ELEMENTS ===== */
|
|
.mock-nav { background: var(--accent); color: white; padding: 0.75rem 1rem; display: flex; gap: 1.5rem; font-size: 0.9rem; }
|
|
.mock-sidebar { background: var(--bg-tertiary); padding: 1rem; min-width: 180px; }
|
|
.mock-content { padding: 1.5rem; flex: 1; }
|
|
.mock-button { background: var(--accent); color: white; border: none; padding: 0.5rem 1rem; border-radius: 6px; font-size: 0.85rem; }
|
|
.mock-input { background: var(--bg-primary); border: 1px solid var(--border); border-radius: 6px; padding: 0.5rem; width: 100%; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="header">
|
|
<h1><a href="https://github.com/obra/superpowers" style="color: inherit; text-decoration: none;">Superpowers Brainstorming</a></h1>
|
|
<div class="status">Connected</div>
|
|
</div>
|
|
|
|
<div class="main">
|
|
<div id="claude-content">
|
|
<!-- CONTENT -->
|
|
</div>
|
|
</div>
|
|
|
|
<div class="indicator-bar">
|
|
<span id="indicator-text">Click an option above, then return to the terminal</span>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|