@phren/cli 0.1.17 → 0.1.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Read-only rendering API for the shell views, consumable by external packages
3
- * (e.g. @phren/agent) via the "@phren/cli/shell/render-api" subpath export.
3
+ * via the "@phren/cli/shell/render-api" subpath export.
4
4
  *
5
5
  * Exposes renderMenuFrame (render a full shell view frame) and handleMenuKey
6
6
  * (pure navigation logic) without pulling in mutation or MCP dependencies.
@@ -5,10 +5,35 @@ import * as path from "path";
5
5
  import { readInstallPreferences, updateInstallPreferences } from "../init/preferences.js";
6
6
  import { readCustomHooks, getHookTarget, HOOK_EVENT_VALUES, validateCustomHookCommand, validateCustomWebhookUrl } from "../hooks.js";
7
7
  import { hookConfigPath } from "../shared.js";
8
+ import { patchJsonFile, upsertCustomPrePromptSiblings } from "../init/config.js";
9
+ import { isRecord } from "../shared.js";
10
+ import { errorMessage } from "../utils.js";
8
11
  import { PROJECT_HOOK_EVENTS, isProjectHookEnabled, readProjectConfig, writeProjectHookConfig, clearProjectHookOverride } from "../project-config.js";
9
12
  import { isValidProjectName } from "../utils.js";
10
13
  const HOOK_TOOLS = ["claude", "copilot", "cursor", "codex"];
11
14
  const VALID_CUSTOM_EVENTS = HOOK_EVENT_VALUES;
15
+ /**
16
+ * Sync pre-prompt custom hooks into Claude's settings.json as siblings.
17
+ * Best-effort: errors are logged but do not fail the calling MCP tool.
18
+ * Called after add_custom_hook and remove_custom_hook update prefs so that
19
+ * the live Claude config reflects the new state without requiring `phren init`.
20
+ */
21
+ function syncPrePromptSiblingsBestEffort(phrenPath) {
22
+ try {
23
+ const settingsPath = hookConfigPath("claude", phrenPath);
24
+ if (!fs.existsSync(settingsPath))
25
+ return; // Claude not initialized; nothing to sync
26
+ patchJsonFile(settingsPath, (data) => {
27
+ const hooksMap = isRecord(data.hooks) ? data.hooks : (data.hooks = {});
28
+ upsertCustomPrePromptSiblings(hooksMap, phrenPath);
29
+ });
30
+ }
31
+ catch (err) {
32
+ // Don't crash the MCP tool — sync is a convenience, not a contract.
33
+ // The next `phren init` will re-attempt the sync from a clean slate.
34
+ console.warn(`syncPrePromptSiblingsBestEffort: ${errorMessage(err)}`);
35
+ }
36
+ }
12
37
  function normalizeHookTool(input) {
13
38
  if (!input)
14
39
  return null;
@@ -199,6 +224,12 @@ export function register(server, ctx) {
199
224
  totalAfter = existing.length + 1;
200
225
  return { customHooks: [...existing, newHook] };
201
226
  });
227
+ // Mirror the new hook (if pre-prompt) into Claude's settings.json
228
+ // immediately, so users don't have to re-run `phren init` for the
229
+ // sibling-hook fix to take effect.
230
+ if (event === "pre-prompt" && "command" in newHook) {
231
+ syncPrePromptSiblingsBestEffort(phrenPath);
232
+ }
202
233
  return mcpResponse({ ok: true, message: `Added custom hook for "${event}": ${"webhook" in newHook ? "[webhook] " : ""}${getHookTarget(newHook)}`, data: { hook: newHook, total: totalAfter } });
203
234
  });
204
235
  });
@@ -224,6 +255,13 @@ export function register(server, ctx) {
224
255
  if (removed === 0) {
225
256
  return mcpResponse({ ok: false, error: `No custom hooks matched event="${event}"${command ? ` command containing "${command}"` : ""}.` });
226
257
  }
258
+ // If we just removed any pre-prompt hooks, drop their sibling
259
+ // entries from Claude's settings.json. The sync function diffs the
260
+ // current prefs against the previously-managed list and removes
261
+ // anything that disappeared.
262
+ if (event === "pre-prompt") {
263
+ syncPrePromptSiblingsBestEffort(phrenPath);
264
+ }
227
265
  return mcpResponse({ ok: true, message: `Removed ${removed} custom hook(s) for "${event}".`, data: { removed, remaining: remainingCount } });
228
266
  });
229
267
  });
@@ -0,0 +1 @@
1
+ export declare const PHREN_DEEP_VOID_STYLES = "\n /* \u2500\u2500 Phren Deep Void \u2014 palette tokens \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n [data-theme=\"dark\"] {\n --bg: #0a0a1a;\n --surface: rgba(18, 18, 42, 0.72);\n --surface-raised: rgba(22, 22, 53, 0.78);\n --surface-sunken: #0d0d22;\n --surface-solid: #12122a;\n\n --ink: #ece9f5;\n --ink-secondary: #c8c3e3;\n --muted: rgba(236, 233, 245, 0.55);\n\n --accent: #9058f0;\n --accent-hover: #b07aff;\n --accent-solid: #7C3AED;\n --accent-dim: rgba(124, 58, 237, 0.16);\n --accent-glow: rgba(124, 58, 237, 0.42);\n\n --cyan: #28D3F2;\n --cyan-dim: rgba(40, 211, 242, 0.14);\n --cyan-glow: rgba(40, 211, 242, 0.36);\n\n --purple: #9058f0;\n --purple-dim: rgba(124, 58, 237, 0.14);\n\n --border: rgba(156, 143, 248, 0.18);\n --border-light: rgba(156, 143, 248, 0.08);\n --border-strong: rgba(156, 143, 248, 0.32);\n\n --danger: #f87171;\n --danger-dim: rgba(248, 113, 113, 0.14);\n --warning: #fbbf24;\n --warning-dim: rgba(251, 191, 36, 0.14);\n --success: #4ade80;\n --success-dim: rgba(74, 222, 128, 0.14);\n\n --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.55);\n --shadow: 0 6px 24px rgba(0, 0, 0, 0.55), 0 0 1px rgba(124, 58, 237, 0.35);\n --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.65),\n 0 0 0 1px rgba(156, 143, 248, 0.12),\n 0 0 32px rgba(124, 58, 237, 0.18);\n\n --font: \"Space Grotesk\", \"Inter\", system-ui, -apple-system, sans-serif;\n --mono: \"JetBrains Mono\", \"Fira Code\", \"Cascadia Code\", ui-monospace, monospace;\n\n /* pixel-art crispness */\n --radius: 6px;\n --radius-sm: 4px;\n }\n\n /* \u2500\u2500 Ambient starfield + cosmic gradient \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n [data-theme=\"dark\"] body {\n background:\n radial-gradient(1200px 800px at 15% -5%, rgba(124, 58, 237, 0.18), transparent 55%),\n radial-gradient(900px 700px at 105% 20%, rgba(40, 211, 242, 0.12), transparent 55%),\n radial-gradient(700px 500px at 50% 110%, rgba(103, 226, 248, 0.08), transparent 60%),\n var(--bg);\n background-attachment: fixed;\n }\n [data-theme=\"dark\"] body::before {\n /* drifting pixel-dust stars \u2014 transform-only, GPU composited */\n content: \"\";\n position: fixed;\n inset: 0;\n pointer-events: none;\n will-change: transform;\n transform: translate3d(0, 0, 0);\n background-image:\n radial-gradient(1px 1px at 10% 20%, rgba(236, 233, 245, 0.5), transparent 60%),\n radial-gradient(1px 1px at 70% 35%, rgba(40, 211, 242, 0.55), transparent 60%),\n radial-gradient(1px 1px at 25% 70%, rgba(124, 58, 237, 0.5), transparent 60%),\n radial-gradient(1px 1px at 85% 80%, rgba(236, 233, 245, 0.45), transparent 60%),\n radial-gradient(1px 1px at 45% 50%, rgba(40, 211, 242, 0.4), transparent 60%),\n radial-gradient(1px 1px at 90% 12%, rgba(236, 233, 245, 0.55), transparent 60%),\n radial-gradient(1px 1px at 5% 55%, rgba(124, 58, 237, 0.45), transparent 60%);\n opacity: 0.9;\n animation: phren-stars-drift 80s linear infinite;\n z-index: 0;\n }\n @keyframes phren-stars-drift {\n 0% { transform: translate3d(0, 0, 0); }\n 100% { transform: translate3d(-40px, -24px, 0); }\n }\n /* Respect users who prefer calmer motion: kill long-running ambient loops. */\n @media (prefers-reduced-motion: reduce) {\n [data-theme=\"dark\"] body::before,\n [data-theme=\"dark\"] .graph-nebula,\n [data-theme=\"dark\"] .project-detail-empty::before,\n [data-theme=\"dark\"] .reader-empty::before,\n [data-theme=\"dark\"] .cmdpal-empty::before { animation: none !important; }\n }\n /* Ensure chrome sits above the starfield */\n [data-theme=\"dark\"] .header,\n [data-theme=\"dark\"] .main,\n [data-theme=\"dark\"] .cmdpal-overlay,\n [data-theme=\"dark\"] .toast-container,\n [data-theme=\"dark\"] .batch-bar {\n position: relative;\n z-index: 1;\n }\n [data-theme=\"dark\"] .header { z-index: 100; }\n\n /* \u2500\u2500 Glass header \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n [data-theme=\"dark\"] .header {\n background: rgba(10, 10, 26, 0.68);\n backdrop-filter: blur(20px) saturate(1.4);\n -webkit-backdrop-filter: blur(20px) saturate(1.4);\n border-bottom: 1px solid rgba(156, 143, 248, 0.14);\n box-shadow:\n 0 1px 0 rgba(156, 143, 248, 0.12),\n 0 0 40px rgba(124, 58, 237, 0.06);\n }\n [data-theme=\"dark\"] .header-brand {\n color: var(--ink);\n font-family: var(--font);\n font-weight: 700;\n letter-spacing: -0.02em;\n }\n [data-theme=\"dark\"] .header-brand svg {\n filter: drop-shadow(0 0 6px rgba(124, 58, 237, 0.55));\n }\n\n /* Active tab: cyan rail + soft glow */\n [data-theme=\"dark\"] .nav-item {\n font-family: var(--font);\n letter-spacing: 0.01em;\n transition: color .18s ease, border-color .18s ease, text-shadow .18s ease;\n }\n [data-theme=\"dark\"] .nav-item:hover {\n color: var(--ink);\n text-shadow: 0 0 12px rgba(40, 211, 242, 0.35);\n }\n [data-theme=\"dark\"] .nav-item.active {\n color: var(--cyan);\n border-bottom-color: var(--cyan);\n text-shadow: 0 0 12px rgba(40, 211, 242, 0.55);\n }\n [data-theme=\"dark\"] .nav-item .count {\n background: var(--accent-dim);\n color: #c8b4ff;\n border: 1px solid rgba(156, 143, 248, 0.22);\n font-family: var(--mono);\n box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.08);\n }\n\n /* \u2500\u2500 Cards and panels \u2014 glass with violet rim \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n /* backdrop-filter is expensive on large grids; keep blur modest (10px) and\n only apply where it materially improves the glass feel (cards, nav,\n overlays). Solid surfaces use plain translucent rgba instead. */\n [data-theme=\"dark\"] .card,\n [data-theme=\"dark\"] .project-card,\n [data-theme=\"dark\"] .review-card,\n [data-theme=\"dark\"] .skill-card,\n [data-theme=\"dark\"] .review-help,\n [data-theme=\"dark\"] .split-view,\n [data-theme=\"dark\"] .graph-container,\n [data-theme=\"dark\"] .cmdpal-box {\n background: rgba(18, 18, 42, 0.78);\n backdrop-filter: blur(10px) saturate(1.25);\n -webkit-backdrop-filter: blur(10px) saturate(1.25);\n border: 1px solid rgba(156, 143, 248, 0.16);\n box-shadow:\n inset 0 1px 0 rgba(255, 255, 255, 0.02),\n 0 4px 24px rgba(0, 0, 0, 0.45);\n }\n [data-theme=\"dark\"] .card-header { background: rgba(13, 13, 34, 0.6); border-bottom-color: rgba(156, 143, 248, 0.1); }\n [data-theme=\"dark\"] .split-sidebar { background: rgba(10, 10, 26, 0.55); border-right-color: rgba(156, 143, 248, 0.12); }\n [data-theme=\"dark\"] .reader-toolbar { background: rgba(10, 10, 26, 0.6); border-bottom-color: rgba(156, 143, 248, 0.1); }\n [data-theme=\"dark\"] .project-card:hover {\n transform: translateY(-2px);\n border-color: rgba(124, 58, 237, 0.42);\n box-shadow:\n 0 12px 36px rgba(0, 0, 0, 0.55),\n 0 0 0 1px rgba(124, 58, 237, 0.22),\n 0 0 40px rgba(124, 58, 237, 0.18);\n }\n [data-theme=\"dark\"] .project-card.selected {\n border-color: var(--cyan);\n box-shadow:\n 0 0 0 1px var(--cyan),\n 0 0 32px rgba(40, 211, 242, 0.28);\n }\n [data-theme=\"dark\"] .review-card:hover {\n border-color: rgba(124, 58, 237, 0.36);\n box-shadow:\n 0 0 0 1px rgba(124, 58, 237, 0.22),\n 0 8px 28px rgba(0, 0, 0, 0.5),\n 0 0 30px rgba(124, 58, 237, 0.14);\n }\n\n /* \u2500\u2500 Buttons \u2014 solid violet, cyan focus ring \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n [data-theme=\"dark\"] .btn {\n background: rgba(18, 18, 42, 0.68);\n border-color: rgba(156, 143, 248, 0.22);\n color: var(--ink-secondary);\n font-family: var(--font);\n letter-spacing: 0.01em;\n transition: all .18s ease;\n }\n [data-theme=\"dark\"] .btn:hover {\n border-color: rgba(156, 143, 248, 0.5);\n color: var(--ink);\n background: rgba(28, 28, 64, 0.78);\n box-shadow: 0 0 24px rgba(124, 58, 237, 0.22);\n }\n [data-theme=\"dark\"] .btn-primary {\n background: linear-gradient(180deg, #8b5cf6, #6d32d9);\n color: #fff;\n border: 1px solid rgba(156, 143, 248, 0.55);\n box-shadow:\n 0 6px 20px rgba(124, 58, 237, 0.45),\n inset 0 1px 0 rgba(255, 255, 255, 0.18);\n }\n [data-theme=\"dark\"] .btn-primary:hover {\n background: linear-gradient(180deg, #9870ff, #7a3de8);\n box-shadow:\n 0 8px 28px rgba(124, 58, 237, 0.55),\n inset 0 1px 0 rgba(255, 255, 255, 0.22);\n }\n [data-theme=\"dark\"] .btn-approve {\n background: rgba(74, 222, 128, 0.14);\n color: #8ef0a8;\n border-color: rgba(74, 222, 128, 0.28);\n }\n [data-theme=\"dark\"] .btn-approve:hover {\n background: linear-gradient(180deg, #4ade80, #22c55e);\n color: #0a0a1a;\n box-shadow: 0 0 24px rgba(74, 222, 128, 0.4);\n }\n\n /* \u2500\u2500 Inputs \u2014 cyan focus glow \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n [data-theme=\"dark\"] .projects-search,\n [data-theme=\"dark\"] .task-filter-select,\n [data-theme=\"dark\"] .review-filters select,\n [data-theme=\"dark\"] .review-edit-textarea,\n [data-theme=\"dark\"] .cmdpal-input,\n [data-theme=\"dark\"] input[type=\"text\"],\n [data-theme=\"dark\"] input[type=\"search\"],\n [data-theme=\"dark\"] textarea:not(.review-edit-textarea) {\n background: rgba(13, 13, 34, 0.8) !important;\n color: var(--ink);\n border-color: rgba(156, 143, 248, 0.2);\n font-family: var(--mono);\n }\n [data-theme=\"dark\"] .projects-search:focus,\n [data-theme=\"dark\"] input[type=\"text\"]:focus,\n [data-theme=\"dark\"] input[type=\"search\"]:focus,\n [data-theme=\"dark\"] textarea:focus,\n [data-theme=\"dark\"] .cmdpal-input:focus,\n [data-theme=\"dark\"] .review-edit-textarea:focus {\n border-color: var(--cyan) !important;\n box-shadow: 0 0 0 3px var(--cyan-dim), 0 0 24px rgba(40, 211, 242, 0.18) !important;\n outline: none !important;\n }\n\n /* \u2500\u2500 Badges \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n [data-theme=\"dark\"] .badge { background: rgba(18, 18, 42, 0.7); color: var(--ink-secondary); border: 1px solid rgba(156, 143, 248, 0.15); font-family: var(--mono); }\n [data-theme=\"dark\"] .badge-project { background: rgba(124, 58, 237, 0.18); color: #c8b4ff; border-color: rgba(124, 58, 237, 0.35); }\n [data-theme=\"dark\"] .badge-on { background: rgba(74, 222, 128, 0.16); color: #8ef0a8; border-color: rgba(74, 222, 128, 0.3); }\n [data-theme=\"dark\"] .badge-off { background: rgba(248, 113, 113, 0.14); color: #f9a0a0; border-color: rgba(248, 113, 113, 0.28); }\n [data-theme=\"dark\"] .badge-count { background: var(--accent-solid); color: #fff; box-shadow: 0 0 12px rgba(124, 58, 237, 0.5); }\n\n /* \u2500\u2500 Split list (skills / hooks) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n [data-theme=\"dark\"] .split-item.selected,\n [data-theme=\"dark\"] .hook-item.selected {\n background: linear-gradient(90deg, rgba(124, 58, 237, 0.22), rgba(124, 58, 237, 0) 85%);\n border-left: 3px solid var(--cyan);\n box-shadow: inset 0 0 18px rgba(40, 211, 242, 0.08);\n }\n [data-theme=\"dark\"] .split-item:hover,\n [data-theme=\"dark\"] .hook-item:hover { background: rgba(124, 58, 237, 0.08); }\n [data-theme=\"dark\"] .split-group-label { background: rgba(10, 10, 26, 0.7); color: var(--cyan); font-family: var(--mono); letter-spacing: 0.12em; border-bottom-color: rgba(156, 143, 248, 0.12); }\n\n /* \u2500\u2500 Graph container + controls \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n [data-theme=\"dark\"] .graph-container { background: radial-gradient(1600px 900px at 50% 50%, rgba(18, 18, 42, 0.6), rgba(10, 10, 26, 0.9) 70%); border: 1px solid rgba(156, 143, 248, 0.18); }\n [data-theme=\"dark\"] #graph-canvas { filter: drop-shadow(0 0 30px rgba(124, 58, 237, 0.04)); }\n [data-theme=\"dark\"] .graph-controls button {\n background: rgba(18, 18, 42, 0.68);\n border-color: rgba(156, 143, 248, 0.22);\n color: var(--ink);\n font-family: var(--mono);\n box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);\n }\n [data-theme=\"dark\"] .graph-controls button:hover { background: rgba(28, 28, 64, 0.85); border-color: var(--cyan); box-shadow: 0 0 18px rgba(40, 211, 242, 0.25); }\n [data-theme=\"dark\"] .graph-tooltip { background: rgba(10, 10, 26, 0.92); border: 1px solid rgba(124, 58, 237, 0.35); color: var(--ink); box-shadow: 0 0 20px rgba(124, 58, 237, 0.25); font-family: var(--mono); font-size: 11px; }\n [data-theme=\"dark\"] .graph-filter-btn { background: rgba(18, 18, 42, 0.72); border: 1px solid rgba(156, 143, 248, 0.2); color: var(--muted); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; border-radius: 4px; }\n [data-theme=\"dark\"] .graph-filter-btn:hover { border-color: var(--cyan); color: var(--ink); background: rgba(40, 211, 242, 0.08); box-shadow: 0 0 16px rgba(40, 211, 242, 0.2); }\n [data-theme=\"dark\"] .graph-filter-btn.active { background: linear-gradient(180deg, rgba(124, 58, 237, 0.38), rgba(124, 58, 237, 0.22)); color: #fff; border-color: rgba(156, 143, 248, 0.55); box-shadow: 0 0 20px rgba(124, 58, 237, 0.42); }\n [data-theme=\"dark\"] .graph-legend { background: rgba(10, 10, 26, 0.72); border-top: 1px solid rgba(156, 143, 248, 0.14); backdrop-filter: blur(12px); }\n [data-theme=\"dark\"] .graph-legend-item { color: var(--ink-secondary); font-family: var(--mono); }\n [data-theme=\"dark\"] .graph-legend-dot { box-shadow: 0 0 10px currentColor; }\n [data-theme=\"dark\"] .graph-filters { background: rgba(18, 18, 42, 0.72); border-color: rgba(156, 143, 248, 0.18); backdrop-filter: blur(18px); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4); }\n\n /* \u2500\u2500 Toast + batch bar \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n [data-theme=\"dark\"] .toast { background: rgba(18, 18, 42, 0.78); border-color: rgba(156, 143, 248, 0.28); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(124, 58, 237, 0.2); backdrop-filter: blur(20px); }\n [data-theme=\"dark\"] .toast.ok { background: rgba(74, 222, 128, 0.12); border-color: rgba(74, 222, 128, 0.4); color: #8ef0a8; }\n [data-theme=\"dark\"] .toast.err { background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.4); color: #f9a0a0; }\n [data-theme=\"dark\"] .batch-bar { background: rgba(18, 18, 42, 0.82); border-color: rgba(156, 143, 248, 0.28); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 40px rgba(124, 58, 237, 0.22); backdrop-filter: blur(24px); }\n\n /* \u2500\u2500 Command palette \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n [data-theme=\"dark\"] .cmdpal-overlay { background: rgba(5, 5, 15, 0.55); backdrop-filter: blur(8px); }\n [data-theme=\"dark\"] .cmdpal-box { background: rgba(18, 18, 42, 0.88); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(124, 58, 237, 0.24); }\n [data-theme=\"dark\"] .cmdpal-item.selected { background: linear-gradient(90deg, rgba(124, 58, 237, 0.35), rgba(40, 211, 242, 0.12)); }\n [data-theme=\"dark\"] .cmdpal-item-name { color: var(--ink); }\n\n /* \u2500\u2500 Section accents (settings) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n [data-theme=\"dark\"] .settings-section-findings { border-top: 3px solid var(--cyan); box-shadow: 0 -6px 24px rgba(40, 211, 242, 0.08); }\n [data-theme=\"dark\"] .settings-section-behavior { border-top: 3px solid #8b5cf6; }\n [data-theme=\"dark\"] .settings-section-integrations { border-top: 3px solid var(--accent-solid); }\n\n /* \u2500\u2500 Card header label \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n [data-theme=\"dark\"] .card-header h2 { color: var(--cyan); font-family: var(--mono); letter-spacing: 0.14em; }\n\n /* \u2500\u2500 Review diff \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n [data-theme=\"dark\"] .review-diff { background: rgba(156, 143, 248, 0.08); border-color: rgba(156, 143, 248, 0.16); }\n [data-theme=\"dark\"] .review-diff-pane { background: rgba(10, 10, 26, 0.6); }\n [data-theme=\"dark\"] .diff-del { background: rgba(248, 113, 113, 0.18); color: #fca5a5; }\n [data-theme=\"dark\"] .diff-ins { background: rgba(74, 222, 128, 0.18); color: #86efac; }\n\n /* \u2500\u2500 Status LED gets a wider aura \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n [data-theme=\"dark\"] .status-led-ok { background: #4ade80; box-shadow: 0 0 14px rgba(74, 222, 128, 0.7); }\n [data-theme=\"dark\"] .status-led-warn { background: #fbbf24; box-shadow: 0 0 14px rgba(251, 191, 36, 0.7); }\n [data-theme=\"dark\"] .status-led-err { background: #f87171; box-shadow: 0 0 14px rgba(248, 113, 113, 0.7); }\n\n /* \u2500\u2500 Scrollbars \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n [data-theme=\"dark\"] ::-webkit-scrollbar { width: 10px; height: 10px; }\n [data-theme=\"dark\"] ::-webkit-scrollbar-track { background: rgba(10, 10, 26, 0.6); }\n [data-theme=\"dark\"] ::-webkit-scrollbar-thumb {\n background: linear-gradient(180deg, rgba(124, 58, 237, 0.55), rgba(40, 211, 242, 0.35));\n border-radius: 6px;\n border: 2px solid rgba(10, 10, 26, 0.8);\n }\n [data-theme=\"dark\"] ::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, rgba(124, 58, 237, 0.75), rgba(40, 211, 242, 0.55)); }\n\n /* \u2500\u2500 Selection colour \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n [data-theme=\"dark\"] ::selection { background: rgba(124, 58, 237, 0.55); color: #fff; }\n\n /* \u2500\u2500 Finding detail cards \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n [data-theme=\"dark\"] .finding-detail-card { background: rgba(18, 18, 42, 0.65); border-color: rgba(156, 143, 248, 0.16); }\n [data-theme=\"dark\"] .finding-detail-card[open] summary { background: linear-gradient(90deg, rgba(124, 58, 237, 0.2), transparent); }\n [data-theme=\"dark\"] .finding-score-indicator.healthy { background: #4ade80; box-shadow: 0 0 8px rgba(74, 222, 128, 0.8); }\n [data-theme=\"dark\"] .finding-score-indicator.decaying { background: #fbbf24; box-shadow: 0 0 8px rgba(251, 191, 36, 0.8); }\n [data-theme=\"dark\"] .finding-score-indicator.stale { background: #f87171; box-shadow: 0 0 8px rgba(248, 113, 113, 0.8); }\n\n /* \u2500\u2500 kbd chip \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n [data-theme=\"dark\"] kbd { background: rgba(10, 10, 26, 0.7); border: 1px solid rgba(156, 143, 248, 0.22); color: var(--ink-secondary); box-shadow: 0 1px 0 rgba(124, 58, 237, 0.18); }\n\n /* \u2500\u2500 Mono numerals \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n [data-theme=\"dark\"] .project-card-stat strong,\n [data-theme=\"dark\"] .count,\n [data-theme=\"dark\"] .badge-count { font-family: var(--mono); font-variant-numeric: tabular-nums; }\n\n /* \u2500\u2500 Phren pixel mascot for empty states \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n /* Data URI = the 24\u00D724 phren sprite (base palette, default idle pose). */\n [data-theme=\"dark\"] .project-detail-empty::before,\n [data-theme=\"dark\"] .reader-empty::before,\n [data-theme=\"dark\"] .cmdpal-empty::before {\n content: \"\";\n display: block;\n width: 96px;\n height: 96px;\n margin: 0 auto 18px;\n image-rendering: pixelated;\n opacity: 0.92;\n filter: drop-shadow(0 0 16px rgba(124, 58, 237, 0.45));\n animation: phrenBreathe 3.4s ease-in-out infinite;\n background-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" shape-rendering=\"crispEdges\"><g fill=\"rgb(103,226,248)\"><rect x=\"16\" y=\"5\" width=\"1\" height=\"1\"/><rect x=\"18\" y=\"5\" width=\"1\" height=\"1\"/></g><g fill=\"rgb(156,143,248)\"><rect x=\"8\" y=\"7\" width=\"9\" height=\"1\"/><rect x=\"7\" y=\"8\" width=\"11\" height=\"1\"/><rect x=\"6\" y=\"9\" width=\"13\" height=\"1\"/><rect x=\"6\" y=\"10\" width=\"13\" height=\"1\"/><rect x=\"6\" y=\"11\" width=\"13\" height=\"1\"/><rect x=\"6\" y=\"12\" width=\"13\" height=\"1\"/></g><g fill=\"rgb(126,107,245)\"><rect x=\"6\" y=\"13\" width=\"13\" height=\"1\"/><rect x=\"6\" y=\"14\" width=\"13\" height=\"1\"/></g><g fill=\"rgb(107,87,232)\"><rect x=\"7\" y=\"15\" width=\"11\" height=\"1\"/></g><g fill=\"rgb(89,69,197)\"><rect x=\"8\" y=\"16\" width=\"9\" height=\"1\"/></g><g fill=\"rgb(18,18,42)\"><rect x=\"7\" y=\"12\" width=\"1\" height=\"1\"/><rect x=\"11\" y=\"12\" width=\"1\" height=\"1\"/><rect x=\"11\" y=\"15\" width=\"2\" height=\"1\"/></g><g fill=\"rgb(158,161,248)\"><rect x=\"9\" y=\"19\" width=\"2\" height=\"1\"/><rect x=\"12\" y=\"19\" width=\"2\" height=\"1\"/></g></svg>');\n background-repeat: no-repeat;\n background-size: contain;\n }\n @keyframes phrenBreathe {\n 0%, 100% { transform: scale(1) translateY(0); filter: drop-shadow(0 0 16px rgba(124, 58, 237, 0.45)); }\n 50% { transform: scale(1.03) translateY(-3px); filter: drop-shadow(0 0 24px rgba(124, 58, 237, 0.65)); }\n }\n [data-theme=\"dark\"] .project-detail-empty,\n [data-theme=\"dark\"] .reader-empty,\n [data-theme=\"dark\"] .cmdpal-empty {\n padding-top: 42px !important;\n color: var(--muted);\n font-family: var(--font);\n }\n\n /* \u2500\u2500 Title chromatic hint (very subtle RGB offset) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n [data-theme=\"dark\"] .project-detail-header h2,\n [data-theme=\"dark\"] .reader-title {\n text-shadow:\n -0.5px 0 rgba(124, 58, 237, 0.55),\n 0.5px 0 rgba(40, 211, 242, 0.5);\n letter-spacing: -0.01em;\n }\n\n /* \u2500\u2500 Graph canvas breathe \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n @keyframes graphCanvasPulse {\n 0%, 100% { filter-opacity: 1; }\n 50% { filter-opacity: 1.08; }\n }\n";
@@ -0,0 +1,413 @@
1
+ // Phren Deep Void — a futuristic dark skin for the web UI.
2
+ //
3
+ // Ships on top of the base styles in assets.ts. Activates via the existing
4
+ // `data-theme="dark"` toggle; the palette swap and glow treatments all scope
5
+ // to that attribute so the light "paper" theme is untouched.
6
+ //
7
+ // Visual language mirrors docs/index.html + docs/motion-lab/:
8
+ // bg #0a0a1a cosmic navy
9
+ // panel #12122a phren translucent panel
10
+ // accent #7C3AED phren violet
11
+ // cyan #28D3F2 sparkle cyan
12
+ // ink #ece9f5 soft lavender-white
13
+ //
14
+ // Tokens override existing vars. Supplementary rules add glow, glass
15
+ // panels, a subtle starfield, and richer graph node auras.
16
+ export const PHREN_DEEP_VOID_STYLES = `
17
+ /* ── Phren Deep Void — palette tokens ─────────────────────────── */
18
+ [data-theme="dark"] {
19
+ --bg: #0a0a1a;
20
+ --surface: rgba(18, 18, 42, 0.72);
21
+ --surface-raised: rgba(22, 22, 53, 0.78);
22
+ --surface-sunken: #0d0d22;
23
+ --surface-solid: #12122a;
24
+
25
+ --ink: #ece9f5;
26
+ --ink-secondary: #c8c3e3;
27
+ --muted: rgba(236, 233, 245, 0.55);
28
+
29
+ --accent: #9058f0;
30
+ --accent-hover: #b07aff;
31
+ --accent-solid: #7C3AED;
32
+ --accent-dim: rgba(124, 58, 237, 0.16);
33
+ --accent-glow: rgba(124, 58, 237, 0.42);
34
+
35
+ --cyan: #28D3F2;
36
+ --cyan-dim: rgba(40, 211, 242, 0.14);
37
+ --cyan-glow: rgba(40, 211, 242, 0.36);
38
+
39
+ --purple: #9058f0;
40
+ --purple-dim: rgba(124, 58, 237, 0.14);
41
+
42
+ --border: rgba(156, 143, 248, 0.18);
43
+ --border-light: rgba(156, 143, 248, 0.08);
44
+ --border-strong: rgba(156, 143, 248, 0.32);
45
+
46
+ --danger: #f87171;
47
+ --danger-dim: rgba(248, 113, 113, 0.14);
48
+ --warning: #fbbf24;
49
+ --warning-dim: rgba(251, 191, 36, 0.14);
50
+ --success: #4ade80;
51
+ --success-dim: rgba(74, 222, 128, 0.14);
52
+
53
+ --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.55);
54
+ --shadow: 0 6px 24px rgba(0, 0, 0, 0.55), 0 0 1px rgba(124, 58, 237, 0.35);
55
+ --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.65),
56
+ 0 0 0 1px rgba(156, 143, 248, 0.12),
57
+ 0 0 32px rgba(124, 58, 237, 0.18);
58
+
59
+ --font: "Space Grotesk", "Inter", system-ui, -apple-system, sans-serif;
60
+ --mono: "JetBrains Mono", "Fira Code", "Cascadia Code", ui-monospace, monospace;
61
+
62
+ /* pixel-art crispness */
63
+ --radius: 6px;
64
+ --radius-sm: 4px;
65
+ }
66
+
67
+ /* ── Ambient starfield + cosmic gradient ──────────────────────── */
68
+ [data-theme="dark"] body {
69
+ background:
70
+ radial-gradient(1200px 800px at 15% -5%, rgba(124, 58, 237, 0.18), transparent 55%),
71
+ radial-gradient(900px 700px at 105% 20%, rgba(40, 211, 242, 0.12), transparent 55%),
72
+ radial-gradient(700px 500px at 50% 110%, rgba(103, 226, 248, 0.08), transparent 60%),
73
+ var(--bg);
74
+ background-attachment: fixed;
75
+ }
76
+ [data-theme="dark"] body::before {
77
+ /* drifting pixel-dust stars — transform-only, GPU composited */
78
+ content: "";
79
+ position: fixed;
80
+ inset: 0;
81
+ pointer-events: none;
82
+ will-change: transform;
83
+ transform: translate3d(0, 0, 0);
84
+ background-image:
85
+ radial-gradient(1px 1px at 10% 20%, rgba(236, 233, 245, 0.5), transparent 60%),
86
+ radial-gradient(1px 1px at 70% 35%, rgba(40, 211, 242, 0.55), transparent 60%),
87
+ radial-gradient(1px 1px at 25% 70%, rgba(124, 58, 237, 0.5), transparent 60%),
88
+ radial-gradient(1px 1px at 85% 80%, rgba(236, 233, 245, 0.45), transparent 60%),
89
+ radial-gradient(1px 1px at 45% 50%, rgba(40, 211, 242, 0.4), transparent 60%),
90
+ radial-gradient(1px 1px at 90% 12%, rgba(236, 233, 245, 0.55), transparent 60%),
91
+ radial-gradient(1px 1px at 5% 55%, rgba(124, 58, 237, 0.45), transparent 60%);
92
+ opacity: 0.9;
93
+ animation: phren-stars-drift 80s linear infinite;
94
+ z-index: 0;
95
+ }
96
+ @keyframes phren-stars-drift {
97
+ 0% { transform: translate3d(0, 0, 0); }
98
+ 100% { transform: translate3d(-40px, -24px, 0); }
99
+ }
100
+ /* Respect users who prefer calmer motion: kill long-running ambient loops. */
101
+ @media (prefers-reduced-motion: reduce) {
102
+ [data-theme="dark"] body::before,
103
+ [data-theme="dark"] .graph-nebula,
104
+ [data-theme="dark"] .project-detail-empty::before,
105
+ [data-theme="dark"] .reader-empty::before,
106
+ [data-theme="dark"] .cmdpal-empty::before { animation: none !important; }
107
+ }
108
+ /* Ensure chrome sits above the starfield */
109
+ [data-theme="dark"] .header,
110
+ [data-theme="dark"] .main,
111
+ [data-theme="dark"] .cmdpal-overlay,
112
+ [data-theme="dark"] .toast-container,
113
+ [data-theme="dark"] .batch-bar {
114
+ position: relative;
115
+ z-index: 1;
116
+ }
117
+ [data-theme="dark"] .header { z-index: 100; }
118
+
119
+ /* ── Glass header ─────────────────────────────────────────────── */
120
+ [data-theme="dark"] .header {
121
+ background: rgba(10, 10, 26, 0.68);
122
+ backdrop-filter: blur(20px) saturate(1.4);
123
+ -webkit-backdrop-filter: blur(20px) saturate(1.4);
124
+ border-bottom: 1px solid rgba(156, 143, 248, 0.14);
125
+ box-shadow:
126
+ 0 1px 0 rgba(156, 143, 248, 0.12),
127
+ 0 0 40px rgba(124, 58, 237, 0.06);
128
+ }
129
+ [data-theme="dark"] .header-brand {
130
+ color: var(--ink);
131
+ font-family: var(--font);
132
+ font-weight: 700;
133
+ letter-spacing: -0.02em;
134
+ }
135
+ [data-theme="dark"] .header-brand svg {
136
+ filter: drop-shadow(0 0 6px rgba(124, 58, 237, 0.55));
137
+ }
138
+
139
+ /* Active tab: cyan rail + soft glow */
140
+ [data-theme="dark"] .nav-item {
141
+ font-family: var(--font);
142
+ letter-spacing: 0.01em;
143
+ transition: color .18s ease, border-color .18s ease, text-shadow .18s ease;
144
+ }
145
+ [data-theme="dark"] .nav-item:hover {
146
+ color: var(--ink);
147
+ text-shadow: 0 0 12px rgba(40, 211, 242, 0.35);
148
+ }
149
+ [data-theme="dark"] .nav-item.active {
150
+ color: var(--cyan);
151
+ border-bottom-color: var(--cyan);
152
+ text-shadow: 0 0 12px rgba(40, 211, 242, 0.55);
153
+ }
154
+ [data-theme="dark"] .nav-item .count {
155
+ background: var(--accent-dim);
156
+ color: #c8b4ff;
157
+ border: 1px solid rgba(156, 143, 248, 0.22);
158
+ font-family: var(--mono);
159
+ box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.08);
160
+ }
161
+
162
+ /* ── Cards and panels — glass with violet rim ─────────────────── */
163
+ /* backdrop-filter is expensive on large grids; keep blur modest (10px) and
164
+ only apply where it materially improves the glass feel (cards, nav,
165
+ overlays). Solid surfaces use plain translucent rgba instead. */
166
+ [data-theme="dark"] .card,
167
+ [data-theme="dark"] .project-card,
168
+ [data-theme="dark"] .review-card,
169
+ [data-theme="dark"] .skill-card,
170
+ [data-theme="dark"] .review-help,
171
+ [data-theme="dark"] .split-view,
172
+ [data-theme="dark"] .graph-container,
173
+ [data-theme="dark"] .cmdpal-box {
174
+ background: rgba(18, 18, 42, 0.78);
175
+ backdrop-filter: blur(10px) saturate(1.25);
176
+ -webkit-backdrop-filter: blur(10px) saturate(1.25);
177
+ border: 1px solid rgba(156, 143, 248, 0.16);
178
+ box-shadow:
179
+ inset 0 1px 0 rgba(255, 255, 255, 0.02),
180
+ 0 4px 24px rgba(0, 0, 0, 0.45);
181
+ }
182
+ [data-theme="dark"] .card-header { background: rgba(13, 13, 34, 0.6); border-bottom-color: rgba(156, 143, 248, 0.1); }
183
+ [data-theme="dark"] .split-sidebar { background: rgba(10, 10, 26, 0.55); border-right-color: rgba(156, 143, 248, 0.12); }
184
+ [data-theme="dark"] .reader-toolbar { background: rgba(10, 10, 26, 0.6); border-bottom-color: rgba(156, 143, 248, 0.1); }
185
+ [data-theme="dark"] .project-card:hover {
186
+ transform: translateY(-2px);
187
+ border-color: rgba(124, 58, 237, 0.42);
188
+ box-shadow:
189
+ 0 12px 36px rgba(0, 0, 0, 0.55),
190
+ 0 0 0 1px rgba(124, 58, 237, 0.22),
191
+ 0 0 40px rgba(124, 58, 237, 0.18);
192
+ }
193
+ [data-theme="dark"] .project-card.selected {
194
+ border-color: var(--cyan);
195
+ box-shadow:
196
+ 0 0 0 1px var(--cyan),
197
+ 0 0 32px rgba(40, 211, 242, 0.28);
198
+ }
199
+ [data-theme="dark"] .review-card:hover {
200
+ border-color: rgba(124, 58, 237, 0.36);
201
+ box-shadow:
202
+ 0 0 0 1px rgba(124, 58, 237, 0.22),
203
+ 0 8px 28px rgba(0, 0, 0, 0.5),
204
+ 0 0 30px rgba(124, 58, 237, 0.14);
205
+ }
206
+
207
+ /* ── Buttons — solid violet, cyan focus ring ──────────────────── */
208
+ [data-theme="dark"] .btn {
209
+ background: rgba(18, 18, 42, 0.68);
210
+ border-color: rgba(156, 143, 248, 0.22);
211
+ color: var(--ink-secondary);
212
+ font-family: var(--font);
213
+ letter-spacing: 0.01em;
214
+ transition: all .18s ease;
215
+ }
216
+ [data-theme="dark"] .btn:hover {
217
+ border-color: rgba(156, 143, 248, 0.5);
218
+ color: var(--ink);
219
+ background: rgba(28, 28, 64, 0.78);
220
+ box-shadow: 0 0 24px rgba(124, 58, 237, 0.22);
221
+ }
222
+ [data-theme="dark"] .btn-primary {
223
+ background: linear-gradient(180deg, #8b5cf6, #6d32d9);
224
+ color: #fff;
225
+ border: 1px solid rgba(156, 143, 248, 0.55);
226
+ box-shadow:
227
+ 0 6px 20px rgba(124, 58, 237, 0.45),
228
+ inset 0 1px 0 rgba(255, 255, 255, 0.18);
229
+ }
230
+ [data-theme="dark"] .btn-primary:hover {
231
+ background: linear-gradient(180deg, #9870ff, #7a3de8);
232
+ box-shadow:
233
+ 0 8px 28px rgba(124, 58, 237, 0.55),
234
+ inset 0 1px 0 rgba(255, 255, 255, 0.22);
235
+ }
236
+ [data-theme="dark"] .btn-approve {
237
+ background: rgba(74, 222, 128, 0.14);
238
+ color: #8ef0a8;
239
+ border-color: rgba(74, 222, 128, 0.28);
240
+ }
241
+ [data-theme="dark"] .btn-approve:hover {
242
+ background: linear-gradient(180deg, #4ade80, #22c55e);
243
+ color: #0a0a1a;
244
+ box-shadow: 0 0 24px rgba(74, 222, 128, 0.4);
245
+ }
246
+
247
+ /* ── Inputs — cyan focus glow ─────────────────────────────────── */
248
+ [data-theme="dark"] .projects-search,
249
+ [data-theme="dark"] .task-filter-select,
250
+ [data-theme="dark"] .review-filters select,
251
+ [data-theme="dark"] .review-edit-textarea,
252
+ [data-theme="dark"] .cmdpal-input,
253
+ [data-theme="dark"] input[type="text"],
254
+ [data-theme="dark"] input[type="search"],
255
+ [data-theme="dark"] textarea:not(.review-edit-textarea) {
256
+ background: rgba(13, 13, 34, 0.8) !important;
257
+ color: var(--ink);
258
+ border-color: rgba(156, 143, 248, 0.2);
259
+ font-family: var(--mono);
260
+ }
261
+ [data-theme="dark"] .projects-search:focus,
262
+ [data-theme="dark"] input[type="text"]:focus,
263
+ [data-theme="dark"] input[type="search"]:focus,
264
+ [data-theme="dark"] textarea:focus,
265
+ [data-theme="dark"] .cmdpal-input:focus,
266
+ [data-theme="dark"] .review-edit-textarea:focus {
267
+ border-color: var(--cyan) !important;
268
+ box-shadow: 0 0 0 3px var(--cyan-dim), 0 0 24px rgba(40, 211, 242, 0.18) !important;
269
+ outline: none !important;
270
+ }
271
+
272
+ /* ── Badges ──────────────────────────────────────────────────── */
273
+ [data-theme="dark"] .badge { background: rgba(18, 18, 42, 0.7); color: var(--ink-secondary); border: 1px solid rgba(156, 143, 248, 0.15); font-family: var(--mono); }
274
+ [data-theme="dark"] .badge-project { background: rgba(124, 58, 237, 0.18); color: #c8b4ff; border-color: rgba(124, 58, 237, 0.35); }
275
+ [data-theme="dark"] .badge-on { background: rgba(74, 222, 128, 0.16); color: #8ef0a8; border-color: rgba(74, 222, 128, 0.3); }
276
+ [data-theme="dark"] .badge-off { background: rgba(248, 113, 113, 0.14); color: #f9a0a0; border-color: rgba(248, 113, 113, 0.28); }
277
+ [data-theme="dark"] .badge-count { background: var(--accent-solid); color: #fff; box-shadow: 0 0 12px rgba(124, 58, 237, 0.5); }
278
+
279
+ /* ── Split list (skills / hooks) ─────────────────────────────── */
280
+ [data-theme="dark"] .split-item.selected,
281
+ [data-theme="dark"] .hook-item.selected {
282
+ background: linear-gradient(90deg, rgba(124, 58, 237, 0.22), rgba(124, 58, 237, 0) 85%);
283
+ border-left: 3px solid var(--cyan);
284
+ box-shadow: inset 0 0 18px rgba(40, 211, 242, 0.08);
285
+ }
286
+ [data-theme="dark"] .split-item:hover,
287
+ [data-theme="dark"] .hook-item:hover { background: rgba(124, 58, 237, 0.08); }
288
+ [data-theme="dark"] .split-group-label { background: rgba(10, 10, 26, 0.7); color: var(--cyan); font-family: var(--mono); letter-spacing: 0.12em; border-bottom-color: rgba(156, 143, 248, 0.12); }
289
+
290
+ /* ── Graph container + controls ──────────────────────────────── */
291
+ [data-theme="dark"] .graph-container { background: radial-gradient(1600px 900px at 50% 50%, rgba(18, 18, 42, 0.6), rgba(10, 10, 26, 0.9) 70%); border: 1px solid rgba(156, 143, 248, 0.18); }
292
+ [data-theme="dark"] #graph-canvas { filter: drop-shadow(0 0 30px rgba(124, 58, 237, 0.04)); }
293
+ [data-theme="dark"] .graph-controls button {
294
+ background: rgba(18, 18, 42, 0.68);
295
+ border-color: rgba(156, 143, 248, 0.22);
296
+ color: var(--ink);
297
+ font-family: var(--mono);
298
+ box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
299
+ }
300
+ [data-theme="dark"] .graph-controls button:hover { background: rgba(28, 28, 64, 0.85); border-color: var(--cyan); box-shadow: 0 0 18px rgba(40, 211, 242, 0.25); }
301
+ [data-theme="dark"] .graph-tooltip { background: rgba(10, 10, 26, 0.92); border: 1px solid rgba(124, 58, 237, 0.35); color: var(--ink); box-shadow: 0 0 20px rgba(124, 58, 237, 0.25); font-family: var(--mono); font-size: 11px; }
302
+ [data-theme="dark"] .graph-filter-btn { background: rgba(18, 18, 42, 0.72); border: 1px solid rgba(156, 143, 248, 0.2); color: var(--muted); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; border-radius: 4px; }
303
+ [data-theme="dark"] .graph-filter-btn:hover { border-color: var(--cyan); color: var(--ink); background: rgba(40, 211, 242, 0.08); box-shadow: 0 0 16px rgba(40, 211, 242, 0.2); }
304
+ [data-theme="dark"] .graph-filter-btn.active { background: linear-gradient(180deg, rgba(124, 58, 237, 0.38), rgba(124, 58, 237, 0.22)); color: #fff; border-color: rgba(156, 143, 248, 0.55); box-shadow: 0 0 20px rgba(124, 58, 237, 0.42); }
305
+ [data-theme="dark"] .graph-legend { background: rgba(10, 10, 26, 0.72); border-top: 1px solid rgba(156, 143, 248, 0.14); backdrop-filter: blur(12px); }
306
+ [data-theme="dark"] .graph-legend-item { color: var(--ink-secondary); font-family: var(--mono); }
307
+ [data-theme="dark"] .graph-legend-dot { box-shadow: 0 0 10px currentColor; }
308
+ [data-theme="dark"] .graph-filters { background: rgba(18, 18, 42, 0.72); border-color: rgba(156, 143, 248, 0.18); backdrop-filter: blur(18px); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4); }
309
+
310
+ /* ── Toast + batch bar ───────────────────────────────────────── */
311
+ [data-theme="dark"] .toast { background: rgba(18, 18, 42, 0.78); border-color: rgba(156, 143, 248, 0.28); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(124, 58, 237, 0.2); backdrop-filter: blur(20px); }
312
+ [data-theme="dark"] .toast.ok { background: rgba(74, 222, 128, 0.12); border-color: rgba(74, 222, 128, 0.4); color: #8ef0a8; }
313
+ [data-theme="dark"] .toast.err { background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.4); color: #f9a0a0; }
314
+ [data-theme="dark"] .batch-bar { background: rgba(18, 18, 42, 0.82); border-color: rgba(156, 143, 248, 0.28); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 40px rgba(124, 58, 237, 0.22); backdrop-filter: blur(24px); }
315
+
316
+ /* ── Command palette ─────────────────────────────────────────── */
317
+ [data-theme="dark"] .cmdpal-overlay { background: rgba(5, 5, 15, 0.55); backdrop-filter: blur(8px); }
318
+ [data-theme="dark"] .cmdpal-box { background: rgba(18, 18, 42, 0.88); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(124, 58, 237, 0.24); }
319
+ [data-theme="dark"] .cmdpal-item.selected { background: linear-gradient(90deg, rgba(124, 58, 237, 0.35), rgba(40, 211, 242, 0.12)); }
320
+ [data-theme="dark"] .cmdpal-item-name { color: var(--ink); }
321
+
322
+ /* ── Section accents (settings) ──────────────────────────────── */
323
+ [data-theme="dark"] .settings-section-findings { border-top: 3px solid var(--cyan); box-shadow: 0 -6px 24px rgba(40, 211, 242, 0.08); }
324
+ [data-theme="dark"] .settings-section-behavior { border-top: 3px solid #8b5cf6; }
325
+ [data-theme="dark"] .settings-section-integrations { border-top: 3px solid var(--accent-solid); }
326
+
327
+ /* ── Card header label ───────────────────────────────────────── */
328
+ [data-theme="dark"] .card-header h2 { color: var(--cyan); font-family: var(--mono); letter-spacing: 0.14em; }
329
+
330
+ /* ── Review diff ─────────────────────────────────────────────── */
331
+ [data-theme="dark"] .review-diff { background: rgba(156, 143, 248, 0.08); border-color: rgba(156, 143, 248, 0.16); }
332
+ [data-theme="dark"] .review-diff-pane { background: rgba(10, 10, 26, 0.6); }
333
+ [data-theme="dark"] .diff-del { background: rgba(248, 113, 113, 0.18); color: #fca5a5; }
334
+ [data-theme="dark"] .diff-ins { background: rgba(74, 222, 128, 0.18); color: #86efac; }
335
+
336
+ /* ── Status LED gets a wider aura ────────────────────────────── */
337
+ [data-theme="dark"] .status-led-ok { background: #4ade80; box-shadow: 0 0 14px rgba(74, 222, 128, 0.7); }
338
+ [data-theme="dark"] .status-led-warn { background: #fbbf24; box-shadow: 0 0 14px rgba(251, 191, 36, 0.7); }
339
+ [data-theme="dark"] .status-led-err { background: #f87171; box-shadow: 0 0 14px rgba(248, 113, 113, 0.7); }
340
+
341
+ /* ── Scrollbars ──────────────────────────────────────────────── */
342
+ [data-theme="dark"] ::-webkit-scrollbar { width: 10px; height: 10px; }
343
+ [data-theme="dark"] ::-webkit-scrollbar-track { background: rgba(10, 10, 26, 0.6); }
344
+ [data-theme="dark"] ::-webkit-scrollbar-thumb {
345
+ background: linear-gradient(180deg, rgba(124, 58, 237, 0.55), rgba(40, 211, 242, 0.35));
346
+ border-radius: 6px;
347
+ border: 2px solid rgba(10, 10, 26, 0.8);
348
+ }
349
+ [data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, rgba(124, 58, 237, 0.75), rgba(40, 211, 242, 0.55)); }
350
+
351
+ /* ── Selection colour ────────────────────────────────────────── */
352
+ [data-theme="dark"] ::selection { background: rgba(124, 58, 237, 0.55); color: #fff; }
353
+
354
+ /* ── Finding detail cards ────────────────────────────────────── */
355
+ [data-theme="dark"] .finding-detail-card { background: rgba(18, 18, 42, 0.65); border-color: rgba(156, 143, 248, 0.16); }
356
+ [data-theme="dark"] .finding-detail-card[open] summary { background: linear-gradient(90deg, rgba(124, 58, 237, 0.2), transparent); }
357
+ [data-theme="dark"] .finding-score-indicator.healthy { background: #4ade80; box-shadow: 0 0 8px rgba(74, 222, 128, 0.8); }
358
+ [data-theme="dark"] .finding-score-indicator.decaying { background: #fbbf24; box-shadow: 0 0 8px rgba(251, 191, 36, 0.8); }
359
+ [data-theme="dark"] .finding-score-indicator.stale { background: #f87171; box-shadow: 0 0 8px rgba(248, 113, 113, 0.8); }
360
+
361
+ /* ── kbd chip ────────────────────────────────────────────────── */
362
+ [data-theme="dark"] kbd { background: rgba(10, 10, 26, 0.7); border: 1px solid rgba(156, 143, 248, 0.22); color: var(--ink-secondary); box-shadow: 0 1px 0 rgba(124, 58, 237, 0.18); }
363
+
364
+ /* ── Mono numerals ───────────────────────────────────────────── */
365
+ [data-theme="dark"] .project-card-stat strong,
366
+ [data-theme="dark"] .count,
367
+ [data-theme="dark"] .badge-count { font-family: var(--mono); font-variant-numeric: tabular-nums; }
368
+
369
+ /* ── Phren pixel mascot for empty states ─────────────────────── */
370
+ /* Data URI = the 24×24 phren sprite (base palette, default idle pose). */
371
+ [data-theme="dark"] .project-detail-empty::before,
372
+ [data-theme="dark"] .reader-empty::before,
373
+ [data-theme="dark"] .cmdpal-empty::before {
374
+ content: "";
375
+ display: block;
376
+ width: 96px;
377
+ height: 96px;
378
+ margin: 0 auto 18px;
379
+ image-rendering: pixelated;
380
+ opacity: 0.92;
381
+ filter: drop-shadow(0 0 16px rgba(124, 58, 237, 0.45));
382
+ animation: phrenBreathe 3.4s ease-in-out infinite;
383
+ background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" shape-rendering="crispEdges"><g fill="rgb(103,226,248)"><rect x="16" y="5" width="1" height="1"/><rect x="18" y="5" width="1" height="1"/></g><g fill="rgb(156,143,248)"><rect x="8" y="7" width="9" height="1"/><rect x="7" y="8" width="11" height="1"/><rect x="6" y="9" width="13" height="1"/><rect x="6" y="10" width="13" height="1"/><rect x="6" y="11" width="13" height="1"/><rect x="6" y="12" width="13" height="1"/></g><g fill="rgb(126,107,245)"><rect x="6" y="13" width="13" height="1"/><rect x="6" y="14" width="13" height="1"/></g><g fill="rgb(107,87,232)"><rect x="7" y="15" width="11" height="1"/></g><g fill="rgb(89,69,197)"><rect x="8" y="16" width="9" height="1"/></g><g fill="rgb(18,18,42)"><rect x="7" y="12" width="1" height="1"/><rect x="11" y="12" width="1" height="1"/><rect x="11" y="15" width="2" height="1"/></g><g fill="rgb(158,161,248)"><rect x="9" y="19" width="2" height="1"/><rect x="12" y="19" width="2" height="1"/></g></svg>');
384
+ background-repeat: no-repeat;
385
+ background-size: contain;
386
+ }
387
+ @keyframes phrenBreathe {
388
+ 0%, 100% { transform: scale(1) translateY(0); filter: drop-shadow(0 0 16px rgba(124, 58, 237, 0.45)); }
389
+ 50% { transform: scale(1.03) translateY(-3px); filter: drop-shadow(0 0 24px rgba(124, 58, 237, 0.65)); }
390
+ }
391
+ [data-theme="dark"] .project-detail-empty,
392
+ [data-theme="dark"] .reader-empty,
393
+ [data-theme="dark"] .cmdpal-empty {
394
+ padding-top: 42px !important;
395
+ color: var(--muted);
396
+ font-family: var(--font);
397
+ }
398
+
399
+ /* ── Title chromatic hint (very subtle RGB offset) ───────────── */
400
+ [data-theme="dark"] .project-detail-header h2,
401
+ [data-theme="dark"] .reader-title {
402
+ text-shadow:
403
+ -0.5px 0 rgba(124, 58, 237, 0.55),
404
+ 0.5px 0 rgba(40, 211, 242, 0.5);
405
+ letter-spacing: -0.01em;
406
+ }
407
+
408
+ /* ── Graph canvas breathe ────────────────────────────────────── */
409
+ @keyframes graphCanvasPulse {
410
+ 0%, 100% { filter-opacity: 1; }
411
+ 50% { filter-opacity: 1.08; }
412
+ }
413
+ `;
package/dist/ui/graph.js CHANGED
@@ -4,9 +4,12 @@ import { fileURLToPath } from "url";
4
4
  const __filename = fileURLToPath(import.meta.url);
5
5
  const __dirname = path.dirname(__filename);
6
6
  function graphAssetCandidates() {
7
+ const distRoot = path.resolve(__dirname, "..");
7
8
  return [
8
9
  path.join(__dirname, "generated", "memory-ui-graph.browser.js"),
9
10
  path.join(__dirname, "memory-ui-graph.runtime.js"),
11
+ path.join(distRoot, "generated", "memory-ui-graph.browser.js"),
12
+ path.join(distRoot, "memory-ui-graph.runtime.js"),
10
13
  path.join(process.cwd(), "mcp", "dist", "generated", "memory-ui-graph.browser.js"),
11
14
  path.join(process.cwd(), "mcp", "dist", "memory-ui-graph.runtime.js"),
12
15
  ];
package/dist/ui/page.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { WEB_UI_STYLES, renderWebUiScript } from "./assets.js";
2
2
  import { renderGraphScript } from "./graph.js";
3
3
  import { PROJECT_REFERENCE_UI_STYLES, REVIEW_UI_STYLES, SETTINGS_TAB_UI_STYLES, TASK_UI_STYLES } from "./styles.js";
4
+ import { PHREN_DEEP_VOID_STYLES } from "./deep-void.js";
4
5
  import { renderSharedWebUiHelpers, renderSkillUiEnhancementScript, renderProfileSwitcherScript, renderProjectReferenceEnhancementScript, renderTasksAndSettingsScript, renderReviewQueueKeyboardScript, renderSearchScript, renderEventWiringScript, renderGraphHostScript, } from "./scripts.js";
5
6
  function h(s) {
6
7
  return s
@@ -17,7 +18,7 @@ export function renderWebUiPage(_phrenPath, authToken, nonce) {
17
18
  <meta charset="utf-8" />
18
19
  <meta name="viewport" content="width=device-width, initial-scale=1" />
19
20
  <link rel="preconnect" href="https://fonts.bunny.net" />
20
- <link href="https://fonts.bunny.net/css?family=inter:400,500,600,700&display=swap" rel="stylesheet" />
21
+ <link href="https://fonts.bunny.net/css?family=inter:400,500,600,700|space-grotesk:400,500,600,700|jetbrains-mono:400,500,700&display=swap" rel="stylesheet" />
21
22
  <title>phren</title>
22
23
  <style>
23
24
  ${WEB_UI_STYLES}
@@ -25,6 +26,7 @@ ${PROJECT_REFERENCE_UI_STYLES}
25
26
  ${SETTINGS_TAB_UI_STYLES}
26
27
  ${TASK_UI_STYLES}
27
28
  ${REVIEW_UI_STYLES}
29
+ ${PHREN_DEEP_VOID_STYLES}
28
30
  </style>
29
31
  </head>
30
32
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phren/cli",
3
- "version": "0.1.17",
3
+ "version": "0.1.19",
4
4
  "description": "Knowledge layer for AI agents — CLI, MCP server, and data layer",
5
5
  "type": "module",
6
6
  "bin": {
@@ -74,12 +74,12 @@
74
74
  "preuninstall": "node scripts/preuninstall.mjs"
75
75
  },
76
76
  "dependencies": {
77
- "@modelcontextprotocol/sdk": "^1.28.0",
77
+ "@modelcontextprotocol/sdk": "^1.29.0",
78
78
  "chalk": "^5.6.2",
79
79
  "glob": "^13.0.6",
80
80
  "graphology": "^0.26.0",
81
81
  "graphology-layout-forceatlas2": "^0.10.1",
82
- "inquirer": "^13.3.2",
82
+ "inquirer": "^13.4.1",
83
83
  "js-yaml": "^4.1.1",
84
84
  "sigma": "^3.0.2",
85
85
  "sql.js-fts5": "^1.4.0",
@@ -1 +0,0 @@
1
- export declare function runBundledAgentCli(args: string[]): Promise<void>;