@phren/cli 0.2.15 → 0.2.16
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.
- package/README.md +2 -2
- package/dist/agent-instructions.d.ts +12 -0
- package/dist/agent-instructions.js +52 -0
- package/dist/bridge/agent-hook-stores.d.ts +32 -0
- package/dist/bridge/agent-hook-stores.js +67 -0
- package/dist/bridge/agent-hooks.d.ts +193 -2
- package/dist/bridge/agent-hooks.js +1045 -38
- package/dist/bridge/canary.d.ts +27 -0
- package/dist/bridge/canary.js +189 -0
- package/dist/bridge/changes.d.ts +57 -0
- package/dist/bridge/changes.js +403 -0
- package/dist/bridge/client.d.ts +3 -0
- package/dist/bridge/client.js +36 -0
- package/dist/bridge/code-note.d.ts +22 -0
- package/dist/bridge/code-note.js +42 -0
- package/dist/bridge/code-routes.d.ts +133 -0
- package/dist/bridge/code-routes.js +319 -0
- package/dist/bridge/codex-threads.d.ts +27 -0
- package/dist/bridge/codex-threads.js +442 -0
- package/dist/bridge/command.d.ts +7 -0
- package/dist/bridge/command.js +50 -5
- package/dist/bridge/computer-names.d.ts +4 -0
- package/dist/bridge/computer-names.js +16 -0
- package/dist/bridge/computers.d.ts +9 -0
- package/dist/bridge/computers.js +111 -0
- package/dist/bridge/context.d.ts +14 -0
- package/dist/bridge/context.js +149 -0
- package/dist/bridge/dispatch-command.d.ts +3 -0
- package/dist/bridge/dispatch-command.js +93 -0
- package/dist/bridge/dispatch-hosts.d.ts +23 -0
- package/dist/bridge/dispatch-hosts.js +25 -0
- package/dist/bridge/dispatch-returns.d.ts +123 -0
- package/dist/bridge/dispatch-returns.js +279 -0
- package/dist/bridge/dispatch-tree.d.ts +54 -0
- package/dist/bridge/dispatch-tree.js +198 -0
- package/dist/bridge/dispatch.d.ts +207 -0
- package/dist/bridge/dispatch.js +261 -0
- package/dist/bridge/enroll.d.ts +31 -0
- package/dist/bridge/enroll.js +236 -0
- package/dist/bridge/fanout-messages.d.ts +74 -0
- package/dist/bridge/fanout-messages.js +230 -0
- package/dist/bridge/fanouts.d.ts +160 -0
- package/dist/bridge/fanouts.js +702 -0
- package/dist/bridge/file-range.d.ts +16 -0
- package/dist/bridge/file-range.js +90 -0
- package/dist/bridge/files.d.ts +20 -0
- package/dist/bridge/files.js +54 -0
- package/dist/bridge/git-publish.d.ts +23 -0
- package/dist/bridge/git-publish.js +145 -0
- package/dist/bridge/git-worktrees.d.ts +21 -0
- package/dist/bridge/git-worktrees.js +150 -0
- package/dist/bridge/git.d.ts +54 -0
- package/dist/bridge/git.js +552 -0
- package/dist/bridge/grants.d.ts +31 -0
- package/dist/bridge/grants.js +181 -0
- package/dist/bridge/hand-off.d.ts +79 -0
- package/dist/bridge/hand-off.js +151 -0
- package/dist/bridge/health.d.ts +128 -0
- package/dist/bridge/health.js +260 -0
- package/dist/bridge/herdr.d.ts +79 -6
- package/dist/bridge/herdr.js +292 -27
- package/dist/bridge/hook-main.js +2 -0
- package/dist/bridge/install.d.ts +32 -1
- package/dist/bridge/install.js +225 -38
- package/dist/bridge/launch-worktree.d.ts +21 -0
- package/dist/bridge/launch-worktree.js +70 -0
- package/dist/bridge/limits.d.ts +20 -0
- package/dist/bridge/limits.js +65 -0
- package/dist/bridge/locate.d.ts +16 -0
- package/dist/bridge/locate.js +75 -0
- package/dist/bridge/metrics.d.ts +29 -0
- package/dist/bridge/metrics.js +71 -0
- package/dist/bridge/model-switch.d.ts +35 -0
- package/dist/bridge/model-switch.js +250 -0
- package/dist/bridge/models.d.ts +46 -0
- package/dist/bridge/models.js +257 -0
- package/dist/bridge/opencode-approvals.d.ts +6 -0
- package/dist/bridge/opencode-approvals.js +60 -0
- package/dist/bridge/pane-text.d.ts +15 -0
- package/dist/bridge/pane-text.js +23 -0
- package/dist/bridge/peers.d.ts +27 -0
- package/dist/bridge/peers.js +130 -0
- package/dist/bridge/projects.d.ts +12 -1
- package/dist/bridge/projects.js +268 -20
- package/dist/bridge/protocol.d.ts +35 -2
- package/dist/bridge/protocol.js +42 -7
- package/dist/bridge/push.d.ts +83 -0
- package/dist/bridge/push.js +199 -0
- package/dist/bridge/questions.d.ts +38 -0
- package/dist/bridge/questions.js +205 -0
- package/dist/bridge/schedule-format.d.ts +103 -0
- package/dist/bridge/schedule-format.js +266 -0
- package/dist/bridge/schedule-launch.d.ts +11 -0
- package/dist/bridge/schedule-launch.js +169 -0
- package/dist/bridge/schedule-watch.d.ts +52 -0
- package/dist/bridge/schedule-watch.js +242 -0
- package/dist/bridge/schedules.d.ts +48 -0
- package/dist/bridge/schedules.js +205 -0
- package/dist/bridge/server-launch.d.ts +14 -0
- package/dist/bridge/server-launch.js +218 -0
- package/dist/bridge/server-overview.d.ts +45 -0
- package/dist/bridge/server-overview.js +102 -0
- package/dist/bridge/server-pane-routes.d.ts +29 -0
- package/dist/bridge/server-pane-routes.js +400 -0
- package/dist/bridge/server-routes.d.ts +106 -0
- package/dist/bridge/server-routes.js +538 -0
- package/dist/bridge/server-stream.d.ts +46 -0
- package/dist/bridge/server-stream.js +253 -0
- package/dist/bridge/server.d.ts +3 -15
- package/dist/bridge/server.js +162 -264
- package/dist/bridge/session-servers.d.ts +24 -0
- package/dist/bridge/session-servers.js +136 -0
- package/dist/bridge/side-questions.d.ts +74 -0
- package/dist/bridge/side-questions.js +252 -0
- package/dist/bridge/simulators.d.ts +28 -0
- package/dist/bridge/simulators.js +198 -0
- package/dist/bridge/speech-transcribe.d.ts +24 -0
- package/dist/bridge/speech-transcribe.js +124 -0
- package/dist/bridge/speech.d.ts +35 -0
- package/dist/bridge/speech.js +98 -0
- package/dist/bridge/steps.d.ts +13 -0
- package/dist/bridge/steps.js +222 -0
- package/dist/bridge/tab-activity.d.ts +18 -0
- package/dist/bridge/tab-activity.js +99 -0
- package/dist/bridge/terminal-choice.d.ts +64 -0
- package/dist/bridge/terminal-choice.js +281 -0
- package/dist/bridge/transcript-claude.d.ts +22 -0
- package/dist/bridge/transcript-claude.js +353 -0
- package/dist/bridge/transcript-codex.d.ts +30 -0
- package/dist/bridge/transcript-codex.js +282 -0
- package/dist/bridge/transcript-copilot.d.ts +4 -0
- package/dist/bridge/transcript-copilot.js +14 -0
- package/dist/bridge/transcript-opencode.d.ts +5 -0
- package/dist/bridge/transcript-opencode.js +26 -0
- package/dist/bridge/transcript-preview.d.ts +94 -0
- package/dist/bridge/transcript-preview.js +476 -0
- package/dist/bridge/transcripts.d.ts +81 -4
- package/dist/bridge/transcripts.js +332 -67
- package/dist/bridge/transport.d.ts +3 -0
- package/dist/bridge/transport.js +96 -15
- package/dist/bridge/uploads.d.ts +15 -0
- package/dist/bridge/uploads.js +44 -2
- package/dist/bridge/usage.d.ts +124 -0
- package/dist/bridge/usage.js +859 -0
- package/dist/bridge-hook.mjs +41246 -21385
- package/dist/cli/actions.js +14 -1
- package/dist/cli/config-proactivity.d.ts +3 -1
- package/dist/cli/config-proactivity.js +35 -3
- package/dist/cli/config.js +4 -1
- package/dist/cli/extract.js +3 -6
- package/dist/cli/govern.js +5 -2
- package/dist/cli/hooks-globs.js +1 -1
- package/dist/cli/hooks.d.ts +1 -1
- package/dist/cli/hooks.js +9 -7
- package/dist/cli/namespaces-projects.js +12 -6
- package/dist/cli/namespaces-store.js +37 -6
- package/dist/cli/namespaces-tasks.js +1 -1
- package/dist/cli/schedules.d.ts +1 -0
- package/dist/cli/schedules.js +164 -0
- package/dist/cli/session-background.js +1 -1
- package/dist/cli/session-git.d.ts +8 -5
- package/dist/cli/session-git.js +45 -120
- package/dist/cli/session-start.js +3 -1
- package/dist/cli/session-stop.js +19 -8
- package/dist/cli/team.js +13 -10
- package/dist/cli-handlers.d.ts +1 -1
- package/dist/cli-handlers.js +8 -4
- package/dist/cli-help.d.ts +5 -4
- package/dist/cli-help.js +15 -15
- package/dist/cli-registry.d.ts +4 -1
- package/dist/cli-registry.js +119 -6
- package/dist/content/archive.js +2 -2
- package/dist/content/citation.d.ts +11 -0
- package/dist/content/citation.js +18 -0
- package/dist/content/learning.js +2 -0
- package/dist/content/summarize.d.ts +14 -15
- package/dist/content/summarize.js +60 -5
- package/dist/content/validate.d.ts +3 -1
- package/dist/content/validate.js +26 -8
- package/dist/core/project-registry.d.ts +26 -0
- package/dist/core/project-registry.js +573 -0
- package/dist/core/project.js +2 -3
- package/dist/data/access.d.ts +7 -1
- package/dist/data/access.js +13 -3
- package/dist/data/tasks.d.ts +18 -3
- package/dist/data/tasks.js +8 -7
- package/dist/entrypoint.js +44 -10
- package/dist/fanout/adapters/claude.d.ts +2 -0
- package/dist/fanout/adapters/claude.js +7 -0
- package/dist/fanout/adapters/codex.d.ts +2 -0
- package/dist/fanout/adapters/codex.js +9 -0
- package/dist/fanout/adapters/opencode.d.ts +4 -0
- package/dist/fanout/adapters/opencode.js +9 -0
- package/dist/fanout/adapters/types.d.ts +21 -0
- package/dist/fanout/adapters/types.js +3 -0
- package/dist/fanout/command.d.ts +2 -0
- package/dist/fanout/command.js +78 -0
- package/dist/fanout/launcher.d.ts +27 -0
- package/dist/fanout/launcher.js +156 -0
- package/dist/fanout/opencode-serve.d.ts +24 -0
- package/dist/fanout/opencode-serve.js +191 -0
- package/dist/fanout/picker.d.ts +91 -0
- package/dist/fanout/picker.js +51 -0
- package/dist/fanout/usage.d.ts +5 -0
- package/dist/fanout/usage.js +51 -0
- package/dist/fanout/watchdog.d.ts +10 -0
- package/dist/fanout/watchdog.js +27 -0
- package/dist/filenames.d.ts +9 -0
- package/dist/filenames.js +11 -0
- package/dist/finding/context.js +4 -22
- package/dist/generated/memory-ui-graph.browser.js +279 -283
- package/dist/governance/policy-constants.d.ts +11 -0
- package/dist/governance/policy-constants.js +9 -0
- package/dist/governance/policy.d.ts +5 -8
- package/dist/governance/policy.js +7 -5
- package/dist/graph-core/camera.d.ts +24 -0
- package/dist/graph-core/camera.js +18 -0
- package/dist/graph-core/index.d.ts +2 -0
- package/dist/graph-core/index.js +2 -0
- package/dist/graph-core/labels.d.ts +77 -0
- package/dist/graph-core/labels.js +124 -0
- package/dist/graph-core/model.d.ts +13 -0
- package/dist/graph-core/model.js +33 -0
- package/dist/graph-core/types.d.ts +2 -0
- package/dist/home-paths.d.ts +7 -0
- package/dist/home-paths.js +21 -0
- package/dist/hooks.d.ts +3 -0
- package/dist/hooks.js +13 -0
- package/dist/index.js +24 -2
- package/dist/init/guard-globals.d.ts +1 -1
- package/dist/init/guard-globals.js +4 -4
- package/dist/init/init-configure.js +3 -3
- package/dist/init/init-uninstall.js +2 -2
- package/dist/init/init-walkthrough.js +1 -1
- package/dist/init/init.js +26 -6
- package/dist/init/management-preset.d.ts +1 -1
- package/dist/init/management-preset.js +2 -2
- package/dist/init/preferences.js +1 -1
- package/dist/init/self-wiring.js +1 -1
- package/dist/init/setup.d.ts +3 -26
- package/dist/init/setup.js +49 -588
- package/dist/init/shared.js +2 -0
- package/dist/init/store-gitignore.d.ts +1 -1
- package/dist/init/store-gitignore.js +2 -0
- package/dist/init/teardown.d.ts +1 -1
- package/dist/init/teardown.js +2 -2
- package/dist/link/context.js +1 -1
- package/dist/link/doctor.d.ts +22 -1
- package/dist/link/doctor.js +100 -54
- package/dist/link/link.js +29 -61
- package/dist/link/refresh.js +2 -2
- package/dist/link/skills.js +26 -5
- package/dist/machine-identity.d.ts +3 -0
- package/dist/machine-identity.js +6 -0
- package/dist/mcp/profile.d.ts +2 -15
- package/dist/mcp/profile.js +64 -9
- package/dist/memory-ui-graph.runtime.js +279 -283
- package/dist/modules/code-package.d.ts +16 -0
- package/dist/modules/code-package.js +152 -0
- package/dist/modules/command.d.ts +2 -0
- package/dist/modules/command.js +67 -0
- package/dist/modules/config.d.ts +4 -0
- package/dist/modules/config.js +70 -0
- package/dist/modules/manifest.d.ts +41 -0
- package/dist/modules/manifest.js +1 -0
- package/dist/modules/provision.d.ts +3 -0
- package/dist/modules/provision.js +84 -0
- package/dist/modules/registry.d.ts +16 -0
- package/dist/modules/registry.js +250 -0
- package/dist/modules/runtime.d.ts +15 -0
- package/dist/modules/runtime.js +59 -0
- package/dist/package-metadata.js +10 -2
- package/dist/phren-dotenv.js +4 -2
- package/dist/phren-paths.d.ts +3 -2
- package/dist/phren-paths.js +4 -5
- package/dist/profile-store.js +4 -5
- package/dist/project-config.d.ts +19 -1
- package/dist/project-config.js +29 -3
- package/dist/project-topics.js +4 -4
- package/dist/provider-adapters.js +1 -4
- package/dist/query-correlation.js +6 -6
- package/dist/session/artifacts.js +5 -5
- package/dist/session/checkpoints.js +5 -0
- package/dist/session/utils.d.ts +2 -2
- package/dist/session/utils.js +6 -6
- package/dist/shared/content.d.ts +1 -1
- package/dist/shared/content.js +1 -1
- package/dist/shared/data-utils.js +1 -1
- package/dist/shared/fragment-graph.d.ts +1 -1
- package/dist/shared/fragment-graph.js +5 -5
- package/dist/shared/index.js +48 -7
- package/dist/shared/retrieval.d.ts +18 -1
- package/dist/shared/retrieval.js +100 -11
- package/dist/shared/search-fallback.js +4 -6
- package/dist/shared/sqljs.d.ts +2 -0
- package/dist/shared/sqljs.js +4 -2
- package/dist/shared.d.ts +0 -1
- package/dist/shared.js +0 -1
- package/dist/shell/input.d.ts +1 -5
- package/dist/shell/input.js +16 -10
- package/dist/shell/palette.d.ts +2 -2
- package/dist/shell/palette.js +3 -7
- package/dist/shell/render.d.ts +3 -1
- package/dist/shell/render.js +4 -4
- package/dist/shell/shell.js +4 -1
- package/dist/shell/types.d.ts +1 -0
- package/dist/shell/types.js +4 -0
- package/dist/shell/view.d.ts +0 -4
- package/dist/shell/view.js +19 -27
- package/dist/skill/registry.js +25 -17
- package/dist/skill/state.d.ts +3 -0
- package/dist/skill/state.js +13 -7
- package/dist/status.js +38 -17
- package/dist/store-registry.d.ts +44 -18
- package/dist/store-registry.js +169 -60
- package/dist/store-weight.d.ts +1 -6
- package/dist/store-weight.js +4 -2
- package/dist/sync/auth-doctor.d.ts +8 -0
- package/dist/sync/auth-doctor.js +27 -0
- package/dist/sync/auth.d.ts +27 -0
- package/dist/sync/auth.js +114 -0
- package/dist/sync/conflict-resolve.d.ts +9 -0
- package/dist/sync/conflict-resolve.js +146 -0
- package/dist/sync/git-state.d.ts +4 -0
- package/dist/sync/git-state.js +49 -0
- package/dist/sync/outcome.d.ts +34 -0
- package/dist/sync/outcome.js +57 -0
- package/dist/sync/pull.d.ts +15 -7
- package/dist/sync/pull.js +84 -35
- package/dist/sync/store-merge.d.ts +29 -0
- package/dist/sync/store-merge.js +137 -0
- package/dist/sync/task-merge.d.ts +22 -0
- package/dist/sync/task-merge.js +158 -0
- package/dist/task/github.js +1 -1
- package/dist/task/lifecycle.d.ts +5 -0
- package/dist/task/lifecycle.js +67 -23
- package/dist/terminal-text.d.ts +5 -0
- package/dist/terminal-text.js +11 -0
- package/dist/test-global-setup.js +7 -0
- package/dist/tool-registry.d.ts +1 -1
- package/dist/tool-registry.js +3 -1
- package/dist/tools/code.d.ts +3 -0
- package/dist/tools/code.js +178 -0
- package/dist/tools/config.js +5 -0
- package/dist/tools/data.js +14 -7
- package/dist/tools/dispatch.d.ts +2 -0
- package/dist/tools/dispatch.js +66 -0
- package/dist/tools/finding.js +43 -41
- package/dist/tools/ops.js +5 -2
- package/dist/tools/search.js +21 -8
- package/dist/tools/session.js +21 -22
- package/dist/tools/tasks.js +8 -2
- package/dist/tools/types.d.ts +2 -2
- package/dist/tools/types.js +2 -2
- package/dist/ui/assets.js +1 -1
- package/dist/ui/data.js +14 -15
- package/dist/ui/deep-void.d.ts +1 -1
- package/dist/ui/deep-void.js +0 -1
- package/dist/ui/graph-chrome.d.ts +1 -1
- package/dist/ui/graph-chrome.js +51 -0
- package/dist/ui/page.js +5 -5
- package/dist/ui/scripts.js +67 -30
- package/dist/ui/server.js +34 -6
- package/dist/update.js +1 -1
- package/dist/utils-fts.js +1 -0
- package/dist/utils-helpers.d.ts +7 -0
- package/dist/utils-helpers.js +17 -0
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -1
- package/package.json +45 -3
- package/plugins/opencode/phren-transcript.js +340 -0
- package/starter/README.md +4 -4
- package/starter/global/{CLAUDE.md → AGENTS.md} +2 -2
- package/starter/global/skills/conductor/SKILL.md +106 -0
- package/starter/global/skills/fanout/SKILL.md +20 -0
- package/starter/global/skills/phren-discover/SKILL.md +6 -6
- package/starter/global/skills/phren-init/SKILL.md +4 -4
- package/starter/global/skills/phren-sync/SKILL.md +3 -3
- package/starter/templates/frontend/reference/README.md +1 -1
- package/starter/templates/library/reference/README.md +1 -1
- package/starter/templates/monorepo/reference/README.md +1 -1
- package/starter/templates/python-project/reference/README.md +1 -1
- /package/starter/templates/frontend/{CLAUDE.md → AGENTS.md} +0 -0
- /package/starter/templates/library/{CLAUDE.md → AGENTS.md} +0 -0
- /package/starter/templates/monorepo/{CLAUDE.md → AGENTS.md} +0 -0
- /package/starter/templates/python-project/{CLAUDE.md → AGENTS.md} +0 -0
package/dist/ui/data.js
CHANGED
|
@@ -9,7 +9,7 @@ import { readCustomHooks } from "../hooks.js";
|
|
|
9
9
|
import { hookConfigPaths, hookConfigRoots } from "../provider-adapters.js";
|
|
10
10
|
import { readProjectConfig, isProjectHookEnabled, PROJECT_HOOK_EVENTS } from "../project-config.js";
|
|
11
11
|
import { getAllSkills } from "../skill/registry.js";
|
|
12
|
-
import {
|
|
12
|
+
import { readTasks, TASKS_FILENAME } from "../data/tasks.js";
|
|
13
13
|
import { FINDINGS_FILENAME, readFindings } from "../data/access.js";
|
|
14
14
|
import { buildIndex, queryDocBySourceKey, queryRows } from "../shared/index.js";
|
|
15
15
|
import { readProjectTopics, classifyTopicForText } from "../project-topics.js";
|
|
@@ -17,6 +17,7 @@ import { entryScoreKey } from "../governance/scores.js";
|
|
|
17
17
|
import { findingStableId } from "../finding-graph-id.js";
|
|
18
18
|
import { readRecentLookups } from "../governance/activity.js";
|
|
19
19
|
import { logger } from "../logger.js";
|
|
20
|
+
import { projectMemoryCounts } from "../content/summarize.js";
|
|
20
21
|
/** `[tag] text` → `text`, lower-cased, for matching lifecycle snippets against node labels. */
|
|
21
22
|
function lifecycleKey(text) {
|
|
22
23
|
return text.replace(/^\[[a-z_-]+\]\s+/i, "").trim().toLowerCase();
|
|
@@ -694,6 +695,13 @@ export async function buildGraph(phrenPath, profile, focusProject, existingDb, o
|
|
|
694
695
|
connectedIds.add(link.target);
|
|
695
696
|
}
|
|
696
697
|
const filteredNodes = nodes.filter((n) => n.group !== "project" || connectedIds.has(n.id));
|
|
698
|
+
// The counts beside a project are what it holds, not the slice drawn here:
|
|
699
|
+
// live findings, journal findings, the whole archive, and every open task.
|
|
700
|
+
for (const [project, projectNode] of projectNodeByName) {
|
|
701
|
+
const counts = projectMemoryCounts(phrenPath, project);
|
|
702
|
+
projectNode.findingCount = counts.findings;
|
|
703
|
+
projectNode.taskCount = counts.openTasks;
|
|
704
|
+
}
|
|
697
705
|
const total = filteredNodes.length;
|
|
698
706
|
const topics = Array.from(topicMetaMap.values());
|
|
699
707
|
return { nodes: filteredNodes, links: dedupedLinks, total, scores, topics };
|
|
@@ -718,15 +726,11 @@ export function recentAccepted(phrenPath) {
|
|
|
718
726
|
function buildProjectInfo(basePath, project, store) {
|
|
719
727
|
const dir = path.join(basePath, project);
|
|
720
728
|
const findingsPath = path.join(dir, FINDINGS_FILENAME);
|
|
721
|
-
const
|
|
722
|
-
const claudeMdPath = path.join(dir, "CLAUDE.md");
|
|
729
|
+
const claudeMdPath = path.join(dir, "AGENTS.md");
|
|
723
730
|
const summaryPath = path.join(dir, "summary.md");
|
|
724
731
|
const refPath = path.join(dir, "reference");
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
const content = fs.readFileSync(findingsPath, "utf8");
|
|
728
|
-
findingCount = (content.match(/^- /gm) || []).length;
|
|
729
|
-
}
|
|
732
|
+
const counts = projectMemoryCounts(basePath, project);
|
|
733
|
+
const findingCount = counts.findings;
|
|
730
734
|
const sparkline = new Array(8).fill(0);
|
|
731
735
|
if (fs.existsSync(findingsPath)) {
|
|
732
736
|
const now = Date.now();
|
|
@@ -741,13 +745,8 @@ function buildProjectInfo(basePath, project, store) {
|
|
|
741
745
|
sparkline[7 - weekIdx]++;
|
|
742
746
|
}
|
|
743
747
|
}
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
const content = fs.readFileSync(taskPath, "utf8");
|
|
747
|
-
const queueMatch = content.match(/## Queue[\s\S]*?(?=## |$)/);
|
|
748
|
-
if (queueMatch)
|
|
749
|
-
taskCount = (queueMatch[0].match(/^- /gm) || []).length;
|
|
750
|
-
}
|
|
748
|
+
// Every open task (Active and Queue), the same number the graph shows.
|
|
749
|
+
const taskCount = counts.openTasks;
|
|
751
750
|
let summaryText = "";
|
|
752
751
|
if (fs.existsSync(summaryPath)) {
|
|
753
752
|
summaryText = fs.readFileSync(summaryPath, "utf8").trim();
|
package/dist/ui/deep-void.d.ts
CHANGED
|
@@ -1 +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";
|
|
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-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";
|
package/dist/ui/deep-void.js
CHANGED
|
@@ -298,7 +298,6 @@ export const PHREN_DEEP_VOID_STYLES = `
|
|
|
298
298
|
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
|
|
299
299
|
}
|
|
300
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
301
|
[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
302
|
[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
303
|
[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); }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const GRAPH_HUD_STYLES = "\n/* \u2500\u2500 Full-bleed graph tab \u2014 total dark immersion (header included) \u2500\u2500 */\nbody:has(#tab-graph.active) { background: #04050b; }\nbody:has(#tab-graph.active) .main { max-width: none; padding: 0; }\nbody:has(#tab-graph.active) .header {\n background: rgba(5, 6, 13, 0.92);\n border-bottom: 1px solid rgba(103, 232, 249, 0.12);\n backdrop-filter: blur(10px);\n -webkit-backdrop-filter: blur(10px);\n}\nbody:has(#tab-graph.active) .header .nav-item { color: #7f8db8; }\nbody:has(#tab-graph.active) .header .nav-item.active { color: #67e8f9; }\nbody:has(#tab-graph.active) .header .brand-name,\nbody:has(#tab-graph.active) .header-brand { color: #dbe6ff; }\n#tab-graph .graph-container {\n background: #04050b;\n border: none;\n border-radius: 0;\n position: relative;\n overflow: hidden;\n}\n#tab-graph #graph-canvas {\n height: calc(100vh - 64px);\n min-height: 520px;\n}\n\n/* \u2500\u2500 Overlay chrome \u2014 compact HUD clustered top-right (GraphRAG) \u2500\u2500\u2500\u2500 */\n#tab-graph .graph-filters {\n background: transparent;\n border: none;\n box-shadow: none;\n padding: 0;\n left: auto;\n right: 60px;\n width: min(560px, 60%);\n z-index: 10;\n}\n#tab-graph .graph-controls { z-index: 10; }\n#tab-graph .graph-controls button {\n width: 34px;\n height: 34px;\n border-radius: 8px;\n border: 1px solid rgba(103, 232, 249, 0.2);\n background: rgba(8, 10, 22, 0.85);\n color: #9fb2e8;\n font: 700 13px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n cursor: pointer;\n transition: border-color 0.15s ease, color 0.15s ease;\n}\n#tab-graph .graph-controls button:hover {\n border-color: rgba(103, 232, 249, 0.55);\n color: #e6f6ff;\n}\n\n/* \u2500\u2500 Docked dossier \u2014 left side, compact (GraphRAG inspector) \u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n#graph-node-popover.phren-docked {\n left: 16px !important;\n right: auto !important;\n top: 68px !important;\n bottom: 16px;\n width: 340px;\n max-width: min(360px, calc(100% - 32px));\n pointer-events: none;\n z-index: 12;\n}\n/* Edge drag handle to widen/narrow the docked dossier (symmetric with the\n contents pane). The popover itself is pointer-transparent, so the handle\n re-enables pointer events for itself. */\n#graph-node-popover.phren-docked .phren-dossier-resize {\n position: absolute;\n right: -4px;\n top: 0;\n bottom: 0;\n width: 9px;\n cursor: ew-resize;\n z-index: 20;\n pointer-events: auto;\n touch-action: none;\n}\n#graph-node-popover.phren-docked .phren-dossier-resize::after {\n content: \"\";\n position: absolute;\n right: 3px;\n top: 50%;\n transform: translateY(-50%);\n width: 3px;\n height: 38px;\n border-radius: 999px;\n background: rgba(103, 232, 249, 0.28);\n opacity: 0;\n transition: opacity 0.15s ease;\n}\n#graph-node-popover.phren-docked .phren-dossier-resize:hover::after,\n#graph-node-popover.phren-docked .phren-dossier-resize.dragging::after {\n opacity: 1;\n}\n/* GraphRAG-style stats row + relationships in the inspector */\n.phren-dossier-stats {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n border: 1px solid rgba(103, 232, 249, 0.16);\n border-radius: 8px;\n overflow: hidden;\n margin: 12px 0 4px;\n}\n.phren-dossier-stats > div {\n padding: 8px 10px;\n border-right: 1px solid rgba(103, 232, 249, 0.12);\n}\n.phren-dossier-stats > div:last-child { border-right: 0; }\n.phren-dossier-stats .k {\n font: 700 8.5px/1.4 ui-monospace, Menlo, monospace;\n letter-spacing: 0.12em; color: #6b76a0; text-transform: uppercase;\n}\n.phren-dossier-stats .v {\n font: 700 14px/1.2 ui-monospace, Menlo, monospace; color: #67e8f9; margin-top: 3px;\n}\n.phren-rel-row {\n display: flex; align-items: baseline; justify-content: space-between; gap: 10px;\n padding: 7px 0; border-bottom: 1px solid rgba(120, 150, 220, 0.08); cursor: pointer;\n}\n.phren-rel-row:last-child { border-bottom: 0; }\n.phren-rel-row .n { font-size: 12px; color: #d6e2ff; overflow: hidden; text-overflow: ellipsis; }\n.phren-rel-row .n small { display: block; color: #6b76a0; font-size: 10px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n.phren-rel-row .w { font: 600 11px/1.4 ui-monospace, Menlo, monospace; color: #67e8f9; font-variant-numeric: tabular-nums; }\n.phren-rel-row:hover .n { color: #eaf2ff; }\n#graph-node-popover.phren-docked #graph-node-popover-card {\n --surface: #0a0d1e;\n --surface-raised: rgba(22, 27, 52, 0.9);\n --surface-sunken: rgba(5, 6, 15, 0.92);\n --ink: #dbe4ff;\n --muted: #8b96c9;\n --border: rgba(103, 232, 249, 0.2);\n --accent: #67e8f9;\n --accent-dim: rgba(103, 232, 249, 0.12);\n height: 100%;\n overflow: auto;\n pointer-events: auto;\n background: rgba(8, 10, 22, 0.92);\n border: 1px solid rgba(103, 232, 249, 0.22);\n box-shadow: 0 16px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(103, 232, 249, 0.05);\n border-radius: 12px;\n color: #dbe4ff;\n backdrop-filter: blur(14px);\n -webkit-backdrop-filter: blur(14px);\n}\n#graph-node-popover.phren-docked .phren-dossier-kind {\n font: 700 10px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n color: #67e8f9;\n letter-spacing: 0.16em;\n text-transform: uppercase;\n}\n#graph-node-popover.phren-docked #graph-node-popover-card { padding: 14px 15px; }\n#graph-node-popover.phren-docked .phren-dossier-text {\n white-space: pre-wrap;\n line-height: 1.6;\n font-size: 13px;\n color: #dde6fb;\n}\n.phren-dossier-section {\n font: 700 9.5px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n color: #67e8f9;\n letter-spacing: 0.14em;\n text-transform: uppercase;\n margin-top: 4px;\n}\n.phren-dossier-nav {\n display: inline-flex;\n align-items: center;\n gap: 10px;\n font: 600 11px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n color: #8b96c9;\n}\n.phren-dossier-nav button {\n width: 28px;\n height: 28px;\n border-radius: 6px;\n border: 1px solid rgba(103, 232, 249, 0.2);\n background: rgba(12, 15, 30, 0.9);\n color: #9fb2e8;\n font-size: 14px;\n line-height: 1;\n cursor: pointer;\n transition: border-color 0.15s ease, color 0.15s ease;\n}\n.phren-dossier-nav button:hover {\n border-color: rgba(103, 232, 249, 0.55);\n color: #e6f6ff;\n}\n";
|
|
1
|
+
export declare const GRAPH_HUD_STYLES = "\n/* \u2500\u2500 Full-bleed graph tab \u2014 total dark immersion (header included) \u2500\u2500 */\nbody:has(#tab-graph.active) { background: #04050b; }\nbody:has(#tab-graph.active) .main { max-width: none; padding: 0; }\nbody:has(#tab-graph.active) .header {\n background: rgba(5, 6, 13, 0.92);\n border-bottom: 1px solid rgba(103, 232, 249, 0.12);\n backdrop-filter: blur(10px);\n -webkit-backdrop-filter: blur(10px);\n}\nbody:has(#tab-graph.active) .header .nav-item { color: #7f8db8; }\nbody:has(#tab-graph.active) .header .nav-item.active { color: #67e8f9; }\nbody:has(#tab-graph.active) .header .brand-name,\nbody:has(#tab-graph.active) .header-brand { color: #dbe6ff; }\n#tab-graph .graph-container {\n background: #04050b;\n border: none;\n border-radius: 0;\n position: relative;\n overflow: hidden;\n}\n#tab-graph #graph-canvas {\n height: calc(100vh - 64px);\n min-height: 520px;\n}\n\n/* \u2500\u2500 Overlay chrome \u2014 compact HUD clustered top-right (GraphRAG) \u2500\u2500\u2500\u2500 */\n#tab-graph .graph-filters {\n background: transparent;\n border: none;\n box-shadow: none;\n padding: 0;\n left: auto;\n right: 60px;\n width: min(560px, 60%);\n z-index: 10;\n}\n#tab-graph .graph-controls { z-index: 10; }\n#tab-graph .graph-controls button {\n width: 34px;\n height: 34px;\n border-radius: 8px;\n border: 1px solid rgba(103, 232, 249, 0.2);\n background: rgba(8, 10, 22, 0.85);\n color: #9fb2e8;\n font: 700 13px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n cursor: pointer;\n transition: border-color 0.15s ease, color 0.15s ease;\n}\n#tab-graph .graph-controls button:hover {\n border-color: rgba(103, 232, 249, 0.55);\n color: #e6f6ff;\n}\n\n/* \u2500\u2500 Docked dossier \u2014 left side, compact (GraphRAG inspector) \u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n#graph-node-popover.phren-docked {\n left: 16px !important;\n right: auto !important;\n top: 68px !important;\n bottom: 16px;\n width: 340px;\n max-width: min(360px, calc(100% - 32px));\n pointer-events: none;\n z-index: 12;\n}\n/* Edge drag handle to widen/narrow the docked dossier (symmetric with the\n contents pane). The popover itself is pointer-transparent, so the handle\n re-enables pointer events for itself. */\n#graph-node-popover.phren-docked .phren-dossier-resize {\n position: absolute;\n right: -4px;\n top: 0;\n bottom: 0;\n width: 9px;\n cursor: ew-resize;\n z-index: 20;\n pointer-events: auto;\n touch-action: none;\n}\n#graph-node-popover.phren-docked .phren-dossier-resize::after {\n content: \"\";\n position: absolute;\n right: 3px;\n top: 50%;\n transform: translateY(-50%);\n width: 3px;\n height: 38px;\n border-radius: 999px;\n background: rgba(103, 232, 249, 0.28);\n opacity: 0;\n transition: opacity 0.15s ease;\n}\n#graph-node-popover.phren-docked .phren-dossier-resize:hover::after,\n#graph-node-popover.phren-docked .phren-dossier-resize.dragging::after {\n opacity: 1;\n}\n/* GraphRAG-style stats row + relationships in the inspector */\n.phren-dossier-stats {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n border: 1px solid rgba(103, 232, 249, 0.16);\n border-radius: 8px;\n overflow: hidden;\n margin: 12px 0 4px;\n}\n.phren-dossier-stats > div {\n padding: 8px 10px;\n border-right: 1px solid rgba(103, 232, 249, 0.12);\n}\n.phren-dossier-stats > div:last-child { border-right: 0; }\n.phren-dossier-stats .k {\n font: 700 8.5px/1.4 ui-monospace, Menlo, monospace;\n letter-spacing: 0.12em; color: #6b76a0; text-transform: uppercase;\n}\n.phren-dossier-stats .v {\n font: 700 14px/1.2 ui-monospace, Menlo, monospace; color: #67e8f9; margin-top: 3px;\n}\n.phren-rel-row {\n display: flex; align-items: baseline; justify-content: space-between; gap: 10px;\n padding: 7px 0; border-bottom: 1px solid rgba(120, 150, 220, 0.08); cursor: pointer;\n}\n.phren-rel-row:last-child { border-bottom: 0; }\n.phren-rel-row .n { font-size: 12px; color: #d6e2ff; overflow: hidden; text-overflow: ellipsis; }\n.phren-rel-row .n small { display: block; color: #6b76a0; font-size: 10px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n.phren-rel-row .w { font: 600 11px/1.4 ui-monospace, Menlo, monospace; color: #67e8f9; font-variant-numeric: tabular-nums; }\n.phren-rel-row:hover .n { color: #eaf2ff; }\n#graph-node-popover.phren-docked #graph-node-popover-card {\n --surface: #0a0d1e;\n --surface-raised: rgba(22, 27, 52, 0.9);\n --surface-sunken: rgba(5, 6, 15, 0.92);\n --ink: #dbe4ff;\n --muted: #8b96c9;\n --border: rgba(103, 232, 249, 0.2);\n --accent: #67e8f9;\n --accent-dim: rgba(103, 232, 249, 0.12);\n height: 100%;\n overflow: auto;\n pointer-events: auto;\n background: rgba(8, 10, 22, 0.92);\n border: 1px solid rgba(103, 232, 249, 0.22);\n box-shadow: 0 16px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(103, 232, 249, 0.05);\n border-radius: 12px;\n color: #dbe4ff;\n backdrop-filter: blur(14px);\n -webkit-backdrop-filter: blur(14px);\n}\n#graph-node-popover.phren-docked .phren-dossier-kind {\n font: 700 10px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n color: #67e8f9;\n letter-spacing: 0.16em;\n text-transform: uppercase;\n}\n#graph-node-popover.phren-docked #graph-node-popover-card { padding: 14px 15px; }\n#graph-node-popover.phren-docked .phren-dossier-text {\n white-space: pre-wrap;\n line-height: 1.6;\n font-size: 13px;\n color: #dde6fb;\n}\n.phren-dossier-section {\n font: 700 9.5px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n color: #67e8f9;\n letter-spacing: 0.14em;\n text-transform: uppercase;\n margin-top: 4px;\n}\n.phren-dossier-nav {\n display: inline-flex;\n align-items: center;\n gap: 10px;\n font: 600 11px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n color: #8b96c9;\n}\n.phren-dossier-nav button {\n width: 28px;\n height: 28px;\n border-radius: 6px;\n border: 1px solid rgba(103, 232, 249, 0.2);\n background: rgba(12, 15, 30, 0.9);\n color: #9fb2e8;\n font-size: 14px;\n line-height: 1;\n cursor: pointer;\n transition: border-color 0.15s ease, color 0.15s ease;\n}\n.phren-dossier-nav button:hover {\n border-color: rgba(103, 232, 249, 0.55);\n color: #e6f6ff;\n}\n/* Dossier header: title block left, icon-button tools (prev/next, edit,\n delete, close) right. Every target is a 44px circle. */\n.phren-dossier-head {\n display: flex;\n align-items: flex-start;\n gap: 8px;\n}\n.phren-dossier-tools {\n display: flex;\n flex: 0 0 auto;\n align-items: center;\n gap: 4px;\n}\n.phren-dossier-iconbtn {\n display: grid;\n place-items: center;\n box-sizing: border-box;\n width: 44px;\n height: 44px;\n flex: 0 0 auto;\n padding: 0;\n border: 1px solid rgba(103, 232, 249, 0.22);\n border-radius: 999px;\n background: rgba(12, 15, 30, 0.9);\n color: #dbe4ff;\n cursor: pointer;\n transition: border-color 0.15s ease, color 0.15s ease;\n}\n.phren-dossier-iconbtn:hover {\n border-color: rgba(103, 232, 249, 0.55);\n color: #e6f6ff;\n}\n.phren-dossier-iconbtn.danger {\n color: #ef9898;\n}\n.phren-dossier-iconbtn svg {\n width: 16px;\n height: 16px;\n fill: none;\n stroke: currentColor;\n stroke-width: 1.8;\n stroke-linecap: round;\n stroke-linejoin: round;\n}\n.phren-dossier-count {\n font: 600 10px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n letter-spacing: 0.06em;\n color: #8b96c9;\n white-space: nowrap;\n padding: 0 2px;\n}\n";
|
package/dist/ui/graph-chrome.js
CHANGED
|
@@ -191,4 +191,55 @@ body:has(#tab-graph.active) .header-brand { color: #dbe6ff; }
|
|
|
191
191
|
border-color: rgba(103, 232, 249, 0.55);
|
|
192
192
|
color: #e6f6ff;
|
|
193
193
|
}
|
|
194
|
+
/* Dossier header: title block left, icon-button tools (prev/next, edit,
|
|
195
|
+
delete, close) right. Every target is a 44px circle. */
|
|
196
|
+
.phren-dossier-head {
|
|
197
|
+
display: flex;
|
|
198
|
+
align-items: flex-start;
|
|
199
|
+
gap: 8px;
|
|
200
|
+
}
|
|
201
|
+
.phren-dossier-tools {
|
|
202
|
+
display: flex;
|
|
203
|
+
flex: 0 0 auto;
|
|
204
|
+
align-items: center;
|
|
205
|
+
gap: 4px;
|
|
206
|
+
}
|
|
207
|
+
.phren-dossier-iconbtn {
|
|
208
|
+
display: grid;
|
|
209
|
+
place-items: center;
|
|
210
|
+
box-sizing: border-box;
|
|
211
|
+
width: 44px;
|
|
212
|
+
height: 44px;
|
|
213
|
+
flex: 0 0 auto;
|
|
214
|
+
padding: 0;
|
|
215
|
+
border: 1px solid rgba(103, 232, 249, 0.22);
|
|
216
|
+
border-radius: 999px;
|
|
217
|
+
background: rgba(12, 15, 30, 0.9);
|
|
218
|
+
color: #dbe4ff;
|
|
219
|
+
cursor: pointer;
|
|
220
|
+
transition: border-color 0.15s ease, color 0.15s ease;
|
|
221
|
+
}
|
|
222
|
+
.phren-dossier-iconbtn:hover {
|
|
223
|
+
border-color: rgba(103, 232, 249, 0.55);
|
|
224
|
+
color: #e6f6ff;
|
|
225
|
+
}
|
|
226
|
+
.phren-dossier-iconbtn.danger {
|
|
227
|
+
color: #ef9898;
|
|
228
|
+
}
|
|
229
|
+
.phren-dossier-iconbtn svg {
|
|
230
|
+
width: 16px;
|
|
231
|
+
height: 16px;
|
|
232
|
+
fill: none;
|
|
233
|
+
stroke: currentColor;
|
|
234
|
+
stroke-width: 1.8;
|
|
235
|
+
stroke-linecap: round;
|
|
236
|
+
stroke-linejoin: round;
|
|
237
|
+
}
|
|
238
|
+
.phren-dossier-count {
|
|
239
|
+
font: 600 10px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
240
|
+
letter-spacing: 0.06em;
|
|
241
|
+
color: #8b96c9;
|
|
242
|
+
white-space: nowrap;
|
|
243
|
+
padding: 0 2px;
|
|
244
|
+
}
|
|
194
245
|
`;
|
package/dist/ui/page.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { moduleEnabled } from "../modules/runtime.js";
|
|
1
2
|
import { WEB_UI_STYLES, renderWebUiScript } from "./assets.js";
|
|
2
3
|
import { renderGraphScript } from "./graph.js";
|
|
3
4
|
import { FINDING_CAPTURE_UI_STYLES, LAYOUT_VIEWPORT_STYLES, NOTES_UI_STYLES, PROJECT_REFERENCE_UI_STYLES, REVIEW_UI_STYLES, SETTINGS_TAB_UI_STYLES, TASK_UI_STYLES } from "./styles.js";
|
|
@@ -12,6 +13,7 @@ function h(s) {
|
|
|
12
13
|
.replace(/"/g, """);
|
|
13
14
|
}
|
|
14
15
|
export function renderWebUiPage(_phrenPath, authToken, nonce) {
|
|
16
|
+
const tasksEnabled = moduleEnabled(_phrenPath, "tasks");
|
|
15
17
|
const nonceAttr = nonce ? ` nonce="${h(nonce)}"` : "";
|
|
16
18
|
return `<!doctype html>
|
|
17
19
|
<html lang="en">
|
|
@@ -115,7 +117,7 @@ ${NOTES_UI_STYLES}
|
|
|
115
117
|
<button class="nav-item" data-tab="activity">Activity</button>
|
|
116
118
|
<button class="nav-item" data-tab="search">Search</button>
|
|
117
119
|
<button class="nav-item" data-tab="graph">Graph</button>
|
|
118
|
-
<button class="nav-item" data-tab="tasks">Tasks</button>
|
|
120
|
+
${tasksEnabled ? '<button class="nav-item" data-tab="tasks">Tasks</button>' : ""}
|
|
119
121
|
<button class="nav-item" data-tab="skills">Skills</button>
|
|
120
122
|
<button class="nav-item" data-tab="hooks">Hooks</button>
|
|
121
123
|
<button class="nav-item" data-tab="settings">Settings</button>
|
|
@@ -211,7 +213,7 @@ ${NOTES_UI_STYLES}
|
|
|
211
213
|
<div id="tab-search" class="tab-content">
|
|
212
214
|
<div style="max-width:720px;margin:0 auto">
|
|
213
215
|
<div style="display:flex;gap:8px;margin-bottom:16px">
|
|
214
|
-
<input type="text" id="search-query" placeholder="Search fragments, findings, tasks..." style="flex:1;border:1px solid var(--border);border-radius:var(--radius-sm);padding:8px 12px;background:var(--surface);color:var(--ink);font-size:var(--text-base);font-family:var(--font);outline:none" />
|
|
216
|
+
<input type="text" id="search-query" placeholder="${tasksEnabled ? "Search fragments, findings, tasks..." : "Search fragments and findings..."}" style="flex:1;border:1px solid var(--border);border-radius:var(--radius-sm);padding:8px 12px;background:var(--surface);color:var(--ink);font-size:var(--text-base);font-family:var(--font);outline:none" />
|
|
215
217
|
<div id="search-project-wrap" style="position:relative">
|
|
216
218
|
<button id="search-project-btn" type="button" onclick="window._phrenToggleProjectDropdown()" style="border:1px solid var(--border);border-radius:var(--radius-sm);padding:6px 10px;background:var(--surface);color:var(--ink);font-size:var(--text-sm);cursor:pointer;font-family:var(--font);min-width:120px;text-align:left;white-space:nowrap">All projects</button>
|
|
217
219
|
<div id="search-project-dropdown" style="display:none;position:absolute;top:100%;left:0;z-index:50;margin-top:4px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);box-shadow:0 4px 12px rgba(0,0,0,.15);max-height:240px;overflow-y:auto;min-width:160px"></div>
|
|
@@ -219,7 +221,7 @@ ${NOTES_UI_STYLES}
|
|
|
219
221
|
<select id="search-type-filter" style="border:1px solid var(--border);border-radius:var(--radius-sm);padding:6px 10px;background:var(--surface);color:var(--ink);font-size:var(--text-sm)">
|
|
220
222
|
<option value="">All types</option>
|
|
221
223
|
<option value="finding">Findings</option>
|
|
222
|
-
<option value="task">Tasks</option>
|
|
224
|
+
${tasksEnabled ? '<option value="task">Tasks</option>' : ""}
|
|
223
225
|
<option value="reference">Reference</option>
|
|
224
226
|
<option value="summary">Summaries</option>
|
|
225
227
|
</select>
|
|
@@ -236,7 +238,6 @@ ${NOTES_UI_STYLES}
|
|
|
236
238
|
<div id="tab-graph" class="tab-content">
|
|
237
239
|
<div class="graph-container">
|
|
238
240
|
<div id="graph-canvas" aria-label="Knowledge graph"></div>
|
|
239
|
-
<div class="graph-tooltip" id="graph-tooltip"></div>
|
|
240
241
|
<div class="graph-controls">
|
|
241
242
|
<button id="graph-zoom-in" title="Zoom in">+</button>
|
|
242
243
|
<button id="graph-zoom-out" title="Zoom out">-</button>
|
|
@@ -250,7 +251,6 @@ ${NOTES_UI_STYLES}
|
|
|
250
251
|
</div>
|
|
251
252
|
<div id="graph-node-popover" style="display:none;position:absolute;left:0;top:0;z-index:12;max-width:min(440px,calc(100% - 24px));pointer-events:none">
|
|
252
253
|
<div id="graph-node-popover-card" class="card" style="pointer-events:auto;position:relative;box-shadow:var(--shadow-lg);border:1px solid var(--border);background:color-mix(in srgb, var(--surface) 96%, transparent);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)">
|
|
253
|
-
<button id="graph-node-close" type="button" aria-label="Close selected node" title="Close" style="position:absolute;top:10px;right:10px;width:38px;height:38px;border-radius:999px;border:1px solid var(--border);background:var(--surface-raised);color:var(--ink);cursor:pointer;font-size:20px;line-height:1;display:grid;place-items:center">×</button>
|
|
254
254
|
<div id="graph-node-content" style="padding:18px 18px 16px 18px"></div>
|
|
255
255
|
</div>
|
|
256
256
|
</div>
|
package/dist/ui/scripts.js
CHANGED
|
@@ -1320,7 +1320,7 @@ export function renderTasksAndSettingsScript(authToken) {
|
|
|
1320
1320
|
if (pi.hasFindings) files.push('FINDINGS.md');
|
|
1321
1321
|
if (pi.hasTasks) files.push('tasks.md');
|
|
1322
1322
|
if (pi.hasSummary) files.push('summary.md');
|
|
1323
|
-
if (pi.hasClaudeMd) files.push('
|
|
1323
|
+
if (pi.hasClaudeMd) files.push('AGENTS.md');
|
|
1324
1324
|
if (files.length) {
|
|
1325
1325
|
infoHtml += '<div style="margin-top:10px;font-size:var(--text-xs);color:var(--muted)">Files: ' + files.map(function(f) { return '<span class="badge" style="margin-right:4px">' + esc(f) + '</span>'; }).join('') + '</div>';
|
|
1326
1326
|
}
|
|
@@ -2282,15 +2282,6 @@ export function renderGraphHostScript() {
|
|
|
2282
2282
|
}).sort(function(a, b) { return a.id < b.id ? -1 : a.id > b.id ? 1 : 0; });
|
|
2283
2283
|
}
|
|
2284
2284
|
|
|
2285
|
-
function findingNav(node) {
|
|
2286
|
-
var list = findingSiblings(node);
|
|
2287
|
-
var index = -1;
|
|
2288
|
-
for (var i = 0; i < list.length; i++) {
|
|
2289
|
-
if (list[i].id === node.id) { index = i; break; }
|
|
2290
|
-
}
|
|
2291
|
-
return { list: list, index: index, total: list.length };
|
|
2292
|
-
}
|
|
2293
|
-
|
|
2294
2285
|
function relatedFindings(node) {
|
|
2295
2286
|
return findingSiblings(node).filter(function(candidate) {
|
|
2296
2287
|
return candidate.id !== node.id && candidate.topicSlug && candidate.topicSlug === node.topicSlug;
|
|
@@ -2359,7 +2350,29 @@ export function renderGraphHostScript() {
|
|
|
2359
2350
|
return '<div style="display:flex;flex-wrap:wrap;gap:8px">' + docs.slice(0, 12).map(function(doc) { return docChip(doc); }).join('') + '</div>';
|
|
2360
2351
|
}
|
|
2361
2352
|
|
|
2362
|
-
|
|
2353
|
+
// Icon paths for the dossier header's icon buttons: pencil, trash,
|
|
2354
|
+
// previous/next chevrons, close. Stroke follows currentColor.
|
|
2355
|
+
var DOSSIER_ICONS = {
|
|
2356
|
+
edit: '<path d="M4 16l3.4-.8L16 6.6a1.8 1.8 0 0 0-2.6-2.6l-8.6 8.6L4 16Z"></path><path d="m12.3 5.1 2.6 2.6M4.8 12.6l2.6 2.6"></path>',
|
|
2357
|
+
delete: '<path d="M3.5 5.5h13M8 5.5V3.8h4v1.7M5.5 5.5l.7 10.7h7.6l.7-10.7M8 8.5v4.8M12 8.5v4.8"></path>',
|
|
2358
|
+
'prev-node': '<path d="m12.5 5-5 5 5 5"></path>',
|
|
2359
|
+
'next-node': '<path d="m7.5 5 5 5-5 5"></path>',
|
|
2360
|
+
close: '<path d="m5 5 10 10M15 5 5 15"></path>'
|
|
2361
|
+
};
|
|
2362
|
+
|
|
2363
|
+
function dossierIconBtn(action, label, opts) {
|
|
2364
|
+
opts = opts || {};
|
|
2365
|
+
return '<button type="button" class="phren-dossier-iconbtn' + (opts.danger ? ' danger' : '') + '"'
|
|
2366
|
+
+ (opts.id ? ' id="' + opts.id + '"' : '')
|
|
2367
|
+
+ ' data-graph-action="' + action + '" aria-label="' + label + '" title="' + label + '"'
|
|
2368
|
+
+ ' style="width:44px;height:44px">'
|
|
2369
|
+
+ '<svg viewBox="0 0 20 20" aria-hidden="true" focusable="false">' + DOSSIER_ICONS[action] + '</svg></button>';
|
|
2370
|
+
}
|
|
2371
|
+
|
|
2372
|
+
// The header row: kind/title/chips on the left, icon buttons on the right
|
|
2373
|
+
// beside Close. Prev/Next walk the ranked list the list mode shows; Edit
|
|
2374
|
+
// and Delete replace the old text buttons in the actions row.
|
|
2375
|
+
function dossierHeader(node) {
|
|
2363
2376
|
var title = node.displayLabel || node.label || node.tooltipLabel || node.id;
|
|
2364
2377
|
var meta = [kindLabel(node)];
|
|
2365
2378
|
if (node.projectName) meta.push(node.projectName);
|
|
@@ -2368,7 +2381,34 @@ export function renderGraphHostScript() {
|
|
|
2368
2381
|
if (node.kind === 'finding' && node.topicLabel) meta.push(node.topicLabel);
|
|
2369
2382
|
if (node.kind === 'finding' && node.date) meta.push(node.date);
|
|
2370
2383
|
|
|
2371
|
-
var
|
|
2384
|
+
var api = graphApi();
|
|
2385
|
+
var pos = api && api.dossierPosition ? api.dossierPosition(node.id) : null;
|
|
2386
|
+
var editable = node.kind === 'finding' || node.kind === 'task';
|
|
2387
|
+
var tools = [];
|
|
2388
|
+
if (pos) {
|
|
2389
|
+
tools.push(dossierIconBtn('prev-node', 'Previous node'));
|
|
2390
|
+
tools.push(dossierIconBtn('next-node', 'Next node'));
|
|
2391
|
+
tools.push('<span class="phren-dossier-count">' + (pos.index + 1) + ' of ' + pos.total + '</span>');
|
|
2392
|
+
}
|
|
2393
|
+
if (editable) {
|
|
2394
|
+
tools.push(dossierIconBtn('edit', 'Edit'));
|
|
2395
|
+
tools.push(dossierIconBtn('delete', 'Delete', { danger: true }));
|
|
2396
|
+
}
|
|
2397
|
+
tools.push(dossierIconBtn('close', 'Close selected node', { id: 'graph-node-close' }));
|
|
2398
|
+
|
|
2399
|
+
return '<div class="phren-dossier-head">'
|
|
2400
|
+
+ '<div style="display:flex;flex-direction:column;gap:8px;flex:1 1 auto;min-width:0">'
|
|
2401
|
+
+ '<div class="phren-dossier-kind" style="font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)">' + esc(kindLabel(node)) + '</div>'
|
|
2402
|
+
+ '<div style="font-size:var(--text-lg);font-weight:600;line-height:1.2">' + esc(title) + '</div>'
|
|
2403
|
+
+ '<div style="display:flex;flex-wrap:wrap;gap:8px">' + meta.filter(Boolean).map(function(item, index) { return chip(item, index === 0); }).join('') + scoreLine(node) + '</div>'
|
|
2404
|
+
+ '</div>'
|
|
2405
|
+
+ '<div class="phren-dossier-tools">' + tools.join('') + '</div>'
|
|
2406
|
+
+ '</div>';
|
|
2407
|
+
}
|
|
2408
|
+
|
|
2409
|
+
function renderView(node) {
|
|
2410
|
+
var title = node.displayLabel || node.label || node.tooltipLabel || node.id;
|
|
2411
|
+
var header = dossierHeader(node);
|
|
2372
2412
|
|
|
2373
2413
|
var body = '';
|
|
2374
2414
|
var actions = [];
|
|
@@ -2411,23 +2451,15 @@ export function renderGraphHostScript() {
|
|
|
2411
2451
|
body += '<div class="phren-dossier-section">Community</div>';
|
|
2412
2452
|
body += '<div style="display:flex;flex-wrap:wrap;gap:8px;margin-top:6px">' + gotoChip(node.projectName, node.projectName, true) + '</div>';
|
|
2413
2453
|
}
|
|
2414
|
-
var nav = findingNav(node);
|
|
2415
|
-
if (nav.total > 1 && nav.index !== -1) {
|
|
2416
|
-
actions.push('<span class="phren-dossier-nav"><button type="button" data-graph-action="prev-finding" title="Previous finding in project">‹</button><span>' + (nav.index + 1) + ' of ' + nav.total + '</span><button type="button" data-graph-action="next-finding" title="Next finding in project">›</button></span>');
|
|
2417
|
-
}
|
|
2418
|
-
actions.push('<button type="button" class="btn btn-sm" data-graph-action="edit">Edit</button>');
|
|
2419
|
-
actions.push('<button type="button" class="btn btn-sm" data-graph-action="delete" style="border-color:var(--danger);color:var(--danger)">Delete</button>');
|
|
2420
2454
|
} else if (node.kind === 'task') {
|
|
2421
2455
|
body += '<div id="graph-node-text" style="white-space:pre-wrap;line-height:1.65;font-size:var(--text-base)">' + esc(node.tooltipLabel || node.fullLabel || title) + '</div>';
|
|
2422
2456
|
body += '<div style="display:flex;flex-wrap:wrap;gap:8px;margin-top:12px">';
|
|
2423
2457
|
body += chip('Status ' + (node.section || 'Queue'), true);
|
|
2424
2458
|
if (node.priority) body += chip('Priority ' + node.priority, false);
|
|
2425
2459
|
body += '</div>';
|
|
2426
|
-
actions.push('<button type="button" class="btn btn-sm" data-graph-action="edit">Edit</button>');
|
|
2427
2460
|
if ((node.section || '').toLowerCase() !== 'done') actions.push('<button type="button" class="btn btn-sm" data-graph-action="complete">Done</button>');
|
|
2428
2461
|
if ((node.section || '').toLowerCase() !== 'active') actions.push('<button type="button" class="btn btn-sm" data-graph-action="move-active">Move to Active</button>');
|
|
2429
2462
|
if ((node.section || '').toLowerCase() !== 'queue') actions.push('<button type="button" class="btn btn-sm" data-graph-action="move-queue">Move to Queue</button>');
|
|
2430
|
-
actions.push('<button type="button" class="btn btn-sm" data-graph-action="delete" style="border-color:var(--danger);color:var(--danger)">Delete</button>');
|
|
2431
2463
|
} else if (node.kind === 'entity') {
|
|
2432
2464
|
if (node.connectedProjects && node.connectedProjects.length) {
|
|
2433
2465
|
body += '<div style="display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px">' + node.connectedProjects.map(function(project) { return chip(project, true); }).join('') + '</div>';
|
|
@@ -2456,7 +2488,13 @@ export function renderGraphHostScript() {
|
|
|
2456
2488
|
sectionControls = '<label style="display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--muted)">Status<select id="graph-task-section" style="border:1px solid var(--border);border-radius:8px;padding:8px 10px;background:var(--surface);color:var(--ink)"><option value="Queue"' + (section === 'Queue' ? ' selected' : '') + '>Queue</option><option value="Active"' + (section === 'Active' ? ' selected' : '') + '>Active</option><option value="Done"' + (section === 'Done' ? ' selected' : '') + '>Done</option></select></label>';
|
|
2457
2489
|
priorityControls = '<label style="display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--muted)">Priority<select id="graph-task-priority" style="border:1px solid var(--border);border-radius:8px;padding:8px 10px;background:var(--surface);color:var(--ink)"><option value=""' + (!priority ? ' selected' : '') + '>None</option><option value="high"' + (priority === 'high' ? ' selected' : '') + '>High</option><option value="medium"' + (priority === 'medium' ? ' selected' : '') + '>Medium</option><option value="low"' + (priority === 'low' ? ' selected' : '') + '>Low</option></select></label>';
|
|
2458
2490
|
}
|
|
2459
|
-
return '<div
|
|
2491
|
+
return '<div class="phren-dossier-head">'
|
|
2492
|
+
+ '<div style="display:flex;flex-direction:column;gap:8px;flex:1 1 auto;min-width:0">'
|
|
2493
|
+
+ '<div style="font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)">' + esc(title) + '</div>'
|
|
2494
|
+
+ '<div style="font-size:var(--text-md);font-weight:600">' + esc(node.projectName || kindLabel(node)) + '</div>'
|
|
2495
|
+
+ '</div>'
|
|
2496
|
+
+ '<div class="phren-dossier-tools">' + dossierIconBtn('close', 'Close selected node', { id: 'graph-node-close' }) + '</div>'
|
|
2497
|
+
+ '</div>'
|
|
2460
2498
|
+ '<div style="display:flex;flex-direction:column;gap:12px;margin-top:16px">'
|
|
2461
2499
|
+ '<textarea id="graph-node-editor" style="min-height:180px;width:100%;border:1px solid var(--border);border-radius:12px;padding:12px 14px;background:var(--surface-sunken);color:var(--ink);font:inherit;line-height:1.55;resize:vertical">' + esc(text) + '</textarea>'
|
|
2462
2500
|
+ (node.kind === 'task' ? '<div style="display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px">' + sectionControls + priorityControls + '</div>' : '')
|
|
@@ -2750,9 +2788,6 @@ export function renderGraphHostScript() {
|
|
|
2750
2788
|
}
|
|
2751
2789
|
|
|
2752
2790
|
function bindPopoverActions() {
|
|
2753
|
-
var closeBtn = document.getElementById('graph-node-close');
|
|
2754
|
-
if (closeBtn) closeBtn.onclick = hidePopover;
|
|
2755
|
-
|
|
2756
2791
|
// Doc reference chips — click to search for the document
|
|
2757
2792
|
document.querySelectorAll('[data-doc-click]').forEach(function(chip) {
|
|
2758
2793
|
chip.addEventListener('click', function() {
|
|
@@ -2779,14 +2814,16 @@ export function renderGraphHostScript() {
|
|
|
2779
2814
|
document.querySelectorAll('[data-graph-action]').forEach(function(button) {
|
|
2780
2815
|
button.addEventListener('click', function() {
|
|
2781
2816
|
var action = button.getAttribute('data-graph-action');
|
|
2782
|
-
if (action === 'prev-
|
|
2817
|
+
if (action === 'prev-node' || action === 'next-node') {
|
|
2783
2818
|
if (!currentNode) return;
|
|
2784
|
-
var nav = findingNav(currentNode);
|
|
2785
|
-
if (nav.total < 2 || nav.index === -1) return;
|
|
2786
|
-
var step = action === 'next-finding' ? 1 : -1;
|
|
2787
|
-
var nextIndex = (nav.index + step + nav.total) % nav.total;
|
|
2788
2819
|
var api = graphApi();
|
|
2789
|
-
if (api
|
|
2820
|
+
if (!api || !api.stepDossier) return;
|
|
2821
|
+
var nextId = api.stepDossier(currentNode.id, action === 'next-node' ? 1 : -1);
|
|
2822
|
+
if (nextId && api.focusNode) api.focusNode(nextId);
|
|
2823
|
+
return;
|
|
2824
|
+
}
|
|
2825
|
+
if (action === 'close') {
|
|
2826
|
+
hidePopover();
|
|
2790
2827
|
return;
|
|
2791
2828
|
}
|
|
2792
2829
|
if (action === 'edit') {
|