Initialize repository with harness code and assets
Initial import of all source code, config, and README assets: the packages workspace (cli, core, server, web, docs, landing, skills), build scripts, tooling config, and CI workflows. Includes the data-layout revision made on this branch: the local data root defaults to ~/.penguin/data (PENGUIN_HOME still overrides; the installer keeps its binaries in ~/.penguin), and every Agent lives under <project>/agents/<agent>/ — path helpers, the three agent-enumeration scans, the system prompt, built-in Skills, tests and docs all follow the new layout. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018ihk8iQuo3kv2aPjAYEPuR
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* Sync the browser tab title (document.title): "{title} · PenguinHarness"
|
||||
* when a page title is set, falling back to the app name otherwise. Called
|
||||
* at the top level of each page component, updating instantly on route
|
||||
* changes or title changes (e.g. an auto-generated Session title delivered
|
||||
* via a session_title event).
|
||||
*/
|
||||
import { useEffect } from "react";
|
||||
import { S } from "./strings";
|
||||
|
||||
export function useDocumentTitle(title: string | null | undefined): void {
|
||||
useEffect(() => {
|
||||
document.title = title ? `${title} · ${S.appName}` : S.appName;
|
||||
}, [title]);
|
||||
}
|
||||
Reference in New Issue
Block a user