Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
client: prep src for biome's stricter unused-param and FP-prone rules
Adam Eivy9fdb5299d86f
diff --git a/client/src/components/Layout.jsx b/client/src/components/Layout.jsxindex 1fc7e1a263..b9cf2eff23 100644--- a/client/src/components/Layout.jsx+++ b/client/src/components/Layout.jsx@@ -98,7 +98,9 @@ import {Boxes,Gamepad2} from 'lucide-react';-/* global __APP_VERSION__ */+// `__APP_VERSION__` is a Vite build-time define (see vite.config.js). Biome does+// not honour ESLint-style "global" block comments, so it is declared in+// biome.jsonc's `javascript.globals` instead.import { safeReadStorage, safeWriteStorage } from '../lib/safeStorage';import Logo from './Logo';import { useErrorNotifications } from '../hooks/useErrorNotifications';@@ -574,7 +576,7 @@ export default function Layout() {// Build dynamic nav items with app children + pipeline series.// `decoratePipelineChild` is defined inside the memo so its closure over- // `pipelineSeries` doesn't require an eslint-disable, and so it isn't+ // `pipelineSeries` doesn't require a lint suppression, and so it isn't// reallocated on every render.const resolvedNavItems = useMemo(() => {const decoratePipelineChild = (child) => {diff --git a/client/src/components/apps/tabs/GsdTab.jsx b/client/src/components/apps/tabs/GsdTab.jsxindex 90231f1308..e6bfe55192 100644--- a/client/src/components/apps/tabs/GsdTab.jsx+++ b/client/src/components/apps/tabs/GsdTab.jsx@@ -1,6 +1,6 @@import { useState, useEffect, useCallback } from 'react';import { useSearchParams, useNavigate } from 'react-router';-import { RefreshCw, Compass, CheckCircle, ArrowRight, FolderSearch, FileText, Map, Play, Terminal } from 'lucide-react';+import { RefreshCw, Compass, CheckCircle, ArrowRight, FolderSearch, FileText, Map as MapIcon, Play, Terminal } from 'lucide-react';import toast from '../../ui/Toast';import BrailleSpinner from '../../BrailleSpinner';import GsdProjectHeader from '../../gsd/GsdProjectHeader';@@ -43,7 +43,7 @@ function GsdSetupGuide({ gsd, appId, repoPath, onRefresh }) {command: '/gsd:plan-phase',description: 'Create a roadmap with phase breakdown and execution plans',done: gsd.hasRoadmap,- icon: Map,+ icon: MapIcon,},];diff --git a/client/src/components/city/Building.jsx b/client/src/components/city/Building.jsxindex 1c0e12aee6..5cf6cfec58 100644--- a/client/src/components/city/Building.jsx+++ b/client/src/components/city/Building.jsx@@ -144,7 +144,7 @@ const PIXEL_ICONS = [// Generate a pixel window texture with icon mural for a building face. `tintStructure`// is passed in (bound to the active palette accent) so the facade base tracks the theme.-const createWindowTexture = (accentColor, width, height, seed, tintStructure) => {+const createWindowTexture = (accentColor, _width, height, seed, tintStructure) => {const canvas = document.createElement('canvas');const px = 8;const cols = 12;diff --git a/client/src/components/cos/TaskAddForm.jsx b/client/src/components/cos/TaskAddForm.jsxindex eb3e874800..ab84067329 100644--- a/client/src/components/cos/TaskAddForm.jsx+++ b/client/src/components/cos/TaskAddForm.jsx@@ -190,6 +190,7 @@ export default function TaskAddForm({ providers, apps, onTaskAdded, compact = faif (settings.simplify !== undefined) setSimplify(settings.simplify);}descriptionRef.current?.focus();+ // biome-ignore lint/correctness/useHookAtTopLevel: `api.useCosTaskTemplate` is an HTTP call (POST .../use), not a React hook — Biome matches on the `use` prefix alone.await api.useCosTaskTemplate(template.id).catch(() => {});toast.success(`Template applied: ${template.name}`);}, [newTask.app]);diff --git a/client/src/components/cos/tabs/BriefingTab.jsx b/client/src/components/cos/tabs/BriefingTab.jsxindex 092caad37f..9d27154b4f 100644--- a/client/src/components/cos/tabs/BriefingTab.jsx+++ b/client/src/components/cos/tabs/BriefingTab.jsx@@ -175,7 +175,7 @@ export default function BriefingTab() {// Expand all sections by defaultconst parsed = parseBriefingMarkdown(latest.content);const expanded = {};- parsed.sections.forEach((s, i) => { expanded[i] = true; });+ parsed.sections.forEach((_s, i) => { expanded[i] = true; });setExpandedSections(expanded);}setLoading(false);@@ -189,7 +189,7 @@ export default function BriefingTab() {setCurrentBriefing(briefing);const parsed = parseBriefingMarkdown(briefing.content);const expanded = {};- parsed.sections.forEach((s, i) => { expanded[i] = true; });+ parsed.sections.forEach((_s, i) => { expanded[i] = true; });setExpandedSections(expanded);}setLoading(false);diff --git a/client/src/components/cos/tabs/ConfigTab.jsx b/client/src/components/cos/tabs/ConfigTab.jsxindex 7ac4c469c6..324600efca 100644--- a/client/src/components/cos/tabs/ConfigTab.jsx+++ b/client/src/components/cos/tabs/ConfigTab.jsx@@ -38,7 +38,7 @@ const PARAM_LABELS = {};// Format param value for display-const formatParamValue = (key, value) => {+const formatParamValue = (_key, value) => {if (typeof value === 'boolean') return value ? 'Yes' : 'No';return String(value);};diff --git a/client/src/components/gsd/PhaseCard.jsx b/client/src/components/gsd/PhaseCard.jsxindex 2cdbfb2f83..5c2d143d43 100644--- a/client/src/components/gsd/PhaseCard.jsx+++ b/client/src/components/gsd/PhaseCard.jsx@@ -17,7 +17,7 @@ const ACTION_CONFIG = {verify: { label: 'Verify', icon: ShieldCheck, style: 'bg-port-accent-2/20 text-port-accent-2 border-port-accent-2/30 hover:bg-port-accent-2/30' },};-function getPhaseStatus(phase, pendingAction) {+function getPhaseStatus(_phase, pendingAction) {if (!pendingAction) return 'completed';return pendingAction.currentStep;}diff --git a/client/src/components/meatspace/tabs/calendar/lifeGridMath.js b/client/src/components/meatspace/tabs/calendar/lifeGridMath.jsindex 9eb78536e2..8e098b42b8 100644--- a/client/src/components/meatspace/tabs/calendar/lifeGridMath.js+++ b/client/src/components/meatspace/tabs/calendar/lifeGridMath.js@@ -55,7 +55,7 @@ export const EVENT_TYPE_STYLES = {* Uses server-provided events plus birthdays.* Returns a Map<string, { type, name }> where key is "age-week".*/-export function computeEventWeeks(birthDate, grid, stats, lifeEvents) {+export function computeEventWeeks(birthDate, grid, _stats, lifeEvents) {const events = new Map();if (!birthDate) return events;diff --git a/client/src/components/pipeline/manuscript/constants.js b/client/src/components/pipeline/manuscript/constants.jsindex 9267fd5397..a8ab14160b 100644--- a/client/src/components/pipeline/manuscript/constants.js+++ b/client/src/components/pipeline/manuscript/constants.js@@ -75,6 +75,7 @@ export const SUBTYPE_LABEL = {// an inherited Object.prototype member — a truthy non-string that the `|| subtype`// fallback wouldn't catch and that React then throws on as a non-element child.export const subtypeLabel = (subtype) =>+ // biome-ignore lint/suspicious/noPrototypeBuiltins: `Object.prototype.hasOwnProperty.call(obj, k)` IS the safe form — Biome flags it anyway, unlike ESLint's no-prototype-builtins.(Object.prototype.hasOwnProperty.call(SUBTYPE_LABEL, subtype) ? SUBTYPE_LABEL[subtype] : null) || subtype;// Approximate a textarea's height to its content so the manuscript reads as onediff --git a/client/src/components/pipeline/stages/ComicScriptStage.jsx b/client/src/components/pipeline/stages/ComicScriptStage.jsxindex e4533603f1..373236b64f 100644--- a/client/src/components/pipeline/stages/ComicScriptStage.jsx+++ b/client/src/components/pipeline/stages/ComicScriptStage.jsx@@ -235,7 +235,7 @@ export default function ComicScriptStage({ issue, series, onStageUpdate, actionsreturn out;}, [comicPages.pages, filenameByJobId, buildPageItem]);const [preview, setPreview] = usePreviewRoute(previewItems);- const openPreview = useCallback((pageIndex, filename) => {+ const openPreview = useCallback((_pageIndex, filename) => {if (!filename) return;const match = previewItems.find((i) => i.filename === filename);if (match) setPreview(match);diff --git a/client/src/components/songs/PitchTuner.test.jsx b/client/src/components/songs/PitchTuner.test.jsxindex 18d3cd3fba..80e615d338 100644--- a/client/src/components/songs/PitchTuner.test.jsx+++ b/client/src/components/songs/PitchTuner.test.jsx@@ -17,7 +17,7 @@ vi.mock('../../lib/pitchDetect.js', async (importActual) => {const actual = await importActual(); // keep the real tuningQualityreturn {...actual,- createPitchTracker: vi.fn((analyser, opts) => {+ createPitchTracker: vi.fn((_analyser, opts) => {lastOnUpdate = opts.onUpdate;return { stop: trackerStop };}),diff --git a/client/src/components/songs/ReferenceAnalysis.test.jsx b/client/src/components/songs/ReferenceAnalysis.test.jsxindex 64d18779d7..a58ef5da21 100644--- a/client/src/components/songs/ReferenceAnalysis.test.jsx+++ b/client/src/components/songs/ReferenceAnalysis.test.jsx@@ -107,7 +107,7 @@ function ControlledAnalysis({ initialRef, ...props }) {return (<ReferenceAnalysisreference={ref}- onUpdateReference={(id, key, val) => setRef((r) => ({ ...r, [key]: val }))}+ onUpdateReference={(_id, key, val) => setRef((r) => ({ ...r, [key]: val }))}{...props}/>);diff --git a/client/src/components/universe/VisionDescribeModal.test.jsx b/client/src/components/universe/VisionDescribeModal.test.jsxindex 502b77a72c..2608ffb855 100644--- a/client/src/components/universe/VisionDescribeModal.test.jsx+++ b/client/src/components/universe/VisionDescribeModal.test.jsx@@ -21,7 +21,7 @@ vi.mock('../ProviderModelSelector', () => ({ default: () => null }));// Stub the upload helper so adding an image enables the actions without real I/O.vi.mock('../../services/apiMedia', () => ({- processScreenshotUploads: vi.fn(async (files, { onSuccess }) => {+ processScreenshotUploads: vi.fn(async (_files, { onSuccess }) => {onSuccess({ filename: 'up.png', preview: 'data:image/png;base64,x' });}),}));diff --git a/client/src/hooks/useCitySettings.js b/client/src/hooks/useCitySettings.jsindex b6729212eb..3564cb25a7 100644--- a/client/src/hooks/useCitySettings.js+++ b/client/src/hooks/useCitySettings.js@@ -70,6 +70,7 @@ const loadSettings = () => {// Such installs keep their chosen fixed preset — Manual — rather than being// silently opted into adaptation. Presence of the key (even 'auto') is honored;// this is the "absent vs. present" distinction, so a stored 'auto' survives.+ // biome-ignore lint/suspicious/noPrototypeBuiltins: `Object.prototype.hasOwnProperty.call(obj, k)` IS the safe form — Biome flags it anyway, unlike ESLint's no-prototype-builtins.if (!Object.prototype.hasOwnProperty.call(parsed, 'qualityMode')) {merged.qualityMode = 'manual';}diff --git a/client/src/hooks/useSingToScore.test.js b/client/src/hooks/useSingToScore.test.jsindex 30e25474c9..902d5a709b 100644--- a/client/src/hooks/useSingToScore.test.js+++ b/client/src/hooks/useSingToScore.test.js@@ -17,7 +17,7 @@ vi.mock('../lib/audioRecorder.js', () => ({}));vi.mock('../lib/pitchDetect.js', () => ({- createPitchTracker: vi.fn((analyser, opts) => { trackerOnUpdate = opts.onUpdate; return { stop: trackerStop }; }),+ createPitchTracker: vi.fn((_analyser, opts) => { trackerOnUpdate = opts.onUpdate; return { stop: trackerStop }; }),}));vi.mock('../lib/metronome.js', async (importActual) => {diff --git a/client/src/hooks/useSingToVerify.test.js b/client/src/hooks/useSingToVerify.test.jsindex 4f336ae037..dc0bf0907c 100644--- a/client/src/hooks/useSingToVerify.test.js+++ b/client/src/hooks/useSingToVerify.test.js@@ -15,7 +15,7 @@ vi.mock('../lib/audioRecorder.js', () => ({}));vi.mock('../lib/pitchDetect.js', () => ({- createPitchTracker: vi.fn((analyser, options) => {+ createPitchTracker: vi.fn((_analyser, options) => {trackerOnUpdate = options.onUpdate;return { stop: trackerStop };}),diff --git a/client/src/pages/CatalogIngredient.jsx b/client/src/pages/CatalogIngredient.jsxindex fe51a656df..1c09a4c996 100644--- a/client/src/pages/CatalogIngredient.jsx+++ b/client/src/pages/CatalogIngredient.jsx@@ -1368,6 +1368,7 @@ function RefsPanel({ refsByKind }) {const label = r.refName || r.refId || '(unnamed)';const role = r.role ? ` · ${r.role}` : '';const chip = (+ // biome-ignore lint/correctness/useJsxKeyInIterable: `chip` is a child of the keyed <Link>/<span> returned below, not the list element itself.<span className="inline-flex items-center gap-1 text-xs px-2 py-0.5 rounded border border-port-border bg-port-bg text-gray-200">{label}{role}{path && <ExternalLink size={10} aria-hidden="true" />}diff --git a/client/src/pages/PipelineEditorialChecks.muteFilter.test.jsx b/client/src/pages/PipelineEditorialChecks.muteFilter.test.jsxindex 0e1cbbce35..b8fa88a2c2 100644--- a/client/src/pages/PipelineEditorialChecks.muteFilter.test.jsx+++ b/client/src/pages/PipelineEditorialChecks.muteFilter.test.jsx@@ -87,7 +87,7 @@ describe('PipelineEditorialChecks — muted checks drop out of the health-paneltrend: { points: [], regressions: [], checkRegressions: [] },});getEditorialChecksRunStatus.mockResolvedValue({ active: false });- patchEditorialCheck.mockImplementation((id, body) => Promise.resolve({ ...CHECK, ...body }));+ patchEditorialCheck.mockImplementation((_id, body) => Promise.resolve({ ...CHECK, ...body }));});it('makes the health-panel check + category rows non-interactive after the check is muted in the triage', async () => {@@ -144,7 +144,7 @@ describe('PipelineEditorialChecks — muted checks drop out of the health-panel});it('reconciles the health-panel rows back when the disable PATCH fails', async () => {- patchEditorialCheck.mockImplementation((id, body) => (+ patchEditorialCheck.mockImplementation((_id, body) => (body.enabled === false ? Promise.reject(new Error('nope')) : Promise.resolve({ ...CHECK, ...body })));renderPage();diff --git a/client/src/pages/PipelineIssue.jsx b/client/src/pages/PipelineIssue.jsxindex ac95f76504..e849a487f4 100644--- a/client/src/pages/PipelineIssue.jsx+++ b/client/src/pages/PipelineIssue.jsx@@ -255,7 +255,9 @@ export default function PipelineIssue() {? `${PIPELINE_STAGE_LABELS[id]} stage is locked — unlock it to regenerate`: ambientLockHint;const trailing = tabLockHint+ // biome-ignore lint/correctness/useJsxKeyInIterable: this callback returns an object, not JSX — `trailing` is passed as a prop, so it needs no key.? <Lock size={11} className="text-port-warning" aria-label={tabLockHint} />+ // biome-ignore lint/correctness/useJsxKeyInIterable: this callback returns an object, not JSX — `trailing` is passed as a prop, so it needs no key.: <span className={`w-1.5 h-1.5 rounded-full ${STATUS_DOT[status] || STATUS_DOT.empty}`} aria-hidden="true" />;return {id,diff --git a/client/src/pages/SongBookViewer.test.jsx b/client/src/pages/SongBookViewer.test.jsxindex b44227ac75..dd21d4972d 100644--- a/client/src/pages/SongBookViewer.test.jsx+++ b/client/src/pages/SongBookViewer.test.jsx@@ -403,7 +403,7 @@ K: o - - - - - o -`;instrument: 'hurdy-gurdy',content: { format: 'futureformat', text: 'anything' },}));- api.updateSong.mockImplementation((sid, patch) => Promise.resolve(song({ ...patch })));+ api.updateSong.mockImplementation((_sid, patch) => Promise.resolve(song({ ...patch })));renderPage('/songbook/abc?mode=edit');const instrument = await screen.findByLabelText('Instrument');expect(instrument.value).toBe('hurdy-gurdy');@@ -434,7 +434,7 @@ K: o - - - - - o -`;});it('renders the edit form in ?mode=edit and saves the whole content object', async () => {- api.updateSong.mockImplementation((id, patch) => Promise.resolve(song({ ...patch })));+ api.updateSong.mockImplementation((_id, patch) => Promise.resolve(song({ ...patch })));renderPage('/songbook/abc?mode=edit');const titleInput = await screen.findByLabelText('Title');expect(titleInput.value).toBe('Example Song');diff --git a/client/src/utils/cityPlan.js b/client/src/utils/cityPlan.jsindex 275f59e9ab..bd15040321 100644--- a/client/src/utils/cityPlan.js+++ b/client/src/utils/cityPlan.js@@ -96,7 +96,7 @@ export const TRANSIT = {// True when a ground position sits in the bay (used by the skyline ring to skip silhouettes// that would otherwise stand in the water, and by the player controller to keep walking// players on land). `margin` extends the water zone toward land (positive = stricter).-export const isInWater = (x, z, margin = 0) => z < WORLD.shorelineZ + margin;+export const isInWater = (_x, z, margin = 0) => z < WORLD.shorelineZ + margin;// True where a ground-level player may stand: any land, plus the Data Harbor's piers —// the one parcel built over the water (reached by the avenue gangway). Flying playersdiff --git a/client/src/utils/cityRenderBudget.js b/client/src/utils/cityRenderBudget.jsindex 091658676f..d092303e82 100644--- a/client/src/utils/cityRenderBudget.js+++ b/client/src/utils/cityRenderBudget.js@@ -155,7 +155,7 @@ function classifyWindow(state, { p75, fps, sampleCount, now, windowStart }, conf// Reset the whole machine to a fresh start at `startTier` (e.g. Manual→Auto switch, or// the Auto starting tier changing). Keeps the module pure — caller passes `now`.-export function resetRenderBudget(state, startTier, now) {+export function resetRenderBudget(_state, startTier, now) {return createRenderBudget(startTier, now);}