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
chore: drop unused client API wrappers (#5727)
Adam Eivy4a4f9b069549
diff --git a/client/src/pages/LocalLlmPlayground.test.jsx b/client/src/pages/LocalLlmPlayground.test.jsxindex 9d538573f8..34b3029370 100644--- a/client/src/pages/LocalLlmPlayground.test.jsx+++ b/client/src/pages/LocalLlmPlayground.test.jsx@@ -6,7 +6,6 @@ vi.mock('../services/api', () => ({getLocalLlmStatus: vi.fn(),getLocalLlmCatalog: vi.fn(),getLoadedLlmModels: vi.fn(),- testLocalLlmModel: vi.fn(),streamLocalLlmTest: vi.fn(),compareLocalLlmModels: vi.fn(),}));diff --git a/client/src/services/README.md b/client/src/services/README.mdindex 73464a8b0b..1487054eb6 100644--- a/client/src/services/README.md+++ b/client/src/services/README.md@@ -38,7 +38,7 @@ toasts on throw). **Custom catch ⇒ `silent: true`** — otherwise toasts fire| File | Purpose ||---|---|-| `apiApps.js` | App CRUD + PM2 ops (start/stop/restart/logs) + local open actions (editor, Claude Code, folder, Xcode) + `getAppIssues` (open GitHub/GitLab issues for the Issues tab). |+| `apiApps.js` | App CRUD + PM2 ops (start/stop/restart) + local open actions (editor, folder, Xcode) + `getAppIssues` (open GitHub/GitLab issues for the Issues tab). || `apiWorkspaceContexts.js` | Per-project working-context save/restore (branch, shells, tasks). || `apiAccounts.js` | Platform accounts. || `apiAgents.js` | Running-agent process management, CoS run-event diagnostics, and persistent-mind conversation, lifecycle, context, and runtime-telemetry calls. |@@ -50,20 +50,20 @@ toasts on throw). **Custom catch ⇒ `silent: true`** — otherwise toasts fire| `apiGithub.js` | GitHub repo metadata. || `apiHistory.js` | Historical logs / runs. || `apiLogs.js` | PM2 system logs: fetch a process's recent log tail (process list comes from `apiCommands.getProcessesList`). |-| `apiPorts.js` | Port forwarding / allocation. |+| `apiPorts.js` | Port scan/detect wrappers (no current UI callers; module kept for the catalog). || `apiProviders.js` | AI provider configuration, plus provider-runtime (CLI) install readiness for the per-card Install buttons, and the Codex / ChatGPT-subscription account calls (`getCodexAccount`, `startCodexLogin`, `cancelCodexLogin`, `codexLogout`) — sign-in STATE only, never a token. || `apiPrompts.js` | Prompt Manager: stage templates, variables, and job-skill templates (providers list reuses `apiProviders.getProviders`). || `apiReferenceRepos.js` | Per-app reference-repo registry. || `apiReview.js` | Review hub. || `apiCodeReview.js` | Code Review Defaults (Review Loop reviewer chain + per-backend local-LLM model). |-| `apiCatalog.js` | Creative catalog ingredients (list/create/update/delete scraps + `listCatalogIngredientsByIds` / facets). |+| `apiCatalog.js` | Creative catalog ingredients (list/create/update/delete + `listCatalogIngredientsByIds` / facets) and scrap ingest (create/extract/commit + url/file/voice/brain). || `apiCatalogTypes.js` | User-defined catalog ingredient types (list active registry + create/update/delete user types). || `apiRuns.js` | Agent run history. || `apiScaffold.js` | App scaffolding templates. || `apiSchedules.js` | Automation schedules. || `apiQuotaBurn.js` | Quota Burn plan + live status, the job-type catalog its config form renders, and manual runs (`getQuotaBurn`/`getQuotaBurnCatalog`/`saveQuotaBurn`/`runQuotaBurn`), plus `rearmQuotaBurn` to put spent `run once` steps back into the rotation. || `apiRapidReader.js` | Rapid Reader's optional author-hosted Accelerando loader and machine-local shelf API. |-| `apiSystem.js` | System info (CPU/memory/ports/alerts/active processing and local hardware capabilities) + D&D-style character sheet getter, plus the usage cost report and explicit historical reconciliation (`getUsage`/`getUsageRaw`/`resetUsage`, `getProviderUsage`, `getUsageBackfillStatus`/`startUsageBackfill`, `updateSubscriptionCosts` for the subscription-vs-API savings comparison). |+| `apiSystem.js` | System info (CPU/memory/ports/alerts/active processing and local hardware capabilities) + D&D-style character sheet getter, plus the usage cost report and explicit historical reconciliation (`getUsage`, `getProviderUsage`, `getUsageBackfillStatus`/`startUsageBackfill`, `updateSubscriptionCosts` for the subscription-vs-API savings comparison). || `apiAuth.js` | Optional login password — status, login/logout, set/clear password. || `apiLoops.js` | Scheduled loops. |@@ -82,7 +82,7 @@ toasts on throw). **Custom catch ⇒ `silent: true`** — otherwise toasts fire| `apiMortalLoom.js` | Mortality tracking. || `apiMoodBoard.js` | Mood boards (inspiration canvas + items). || `apiTribe.js` | Tribe people (relationship rings + contacts). |-| `apiTimeline.js` | Human-activity timeline: `/timeline/day` + `/timeline/events`. |+| `apiTimeline.js` | Human-activity timeline: `/timeline/day`. || `apiCalendar.js` | Calendar events. || `apiMessages.js` | Messages / notifications + iMessage manager (#2413). || `apiStackerNews.js` | Stacker News account, territory, review-action, and safe analysis APIs. |@@ -99,7 +99,7 @@ toasts on throw). **Custom catch ⇒ `silent: true`** — otherwise toasts fire|---|---|| `apiImageVideo.js` | Image-gen local backend extras (gallery, models, LoRAs, cancel, delete). || `apiLoraTraining.js` | Character LoRA training — datasets (CRUD, upload, generate, slice, caption), training runs (start/list/cancel/delete + status), character→LoRA link lookup. |-| `apiMedia.js` | Screenshots + media assets. Also owns the multi-file upload orchestration — `processScreenshotUploads` / `processAttachmentUploads` and their single-file variants (`uploadScreenshotFile` / `uploadAttachmentFile`) — moved from `utils/fileUpload.js` since they perform network I/O, not pure transforms. `utils/fileUpload.js` keeps only the pure helpers/constants and no longer re-exports these. |+| `apiMedia.js` | Screenshots + media assets. Also owns the multi-file upload orchestration — `processScreenshotUploads` / `processAttachmentUploads` — moved from `utils/fileUpload.js` since they perform network I/O, not pure transforms. `utils/fileUpload.js` keeps only the pure helpers/constants and no longer re-exports these. || `apiMediaJobs.js` | Media generation job tracking + `refineMediaPrompt` / `promptFromMedia` (vision reverse-prompt). || `apiCreativeDirector.js` | Creative Director (video production). || `apiCreativeCommission.js` | Creative Commissions (Autonomous Creation Engine — standing recurring briefs). |@@ -115,7 +115,7 @@ toasts on throw). **Custom catch ⇒ `silent: true`** — otherwise toasts fire| `apiAuthors.js` | Author personas (name, writing style, bio, headshot description/style). || `apiArtists.js` | Music artist personas (name, genre, bio, musical style, portrait description/style). || `apiAlbums.js` | Music albums (title, artist FK + name, description, genre, release year, cover art, ordered track ids). |-| `apiTracks.js` | Music tracks (title, album/artist FKs, lyrics, prompt, gen metadata, audio-library pointer) + shared music-library list + audio upload/attach/clear. |+| `apiTracks.js` | Music tracks (title, album/artist FKs, lyrics, prompt, gen metadata, audio-library pointer) + shared music-library list + audio upload/attach. || `apiVideoDownload.js` | Dev Tools video downloader (#1946): start/cancel a YouTube/x.com full-video download via yt-dlp (SSE progress), list + delete downloaded clips. || `apiMusic.js` | On-device music generation (MusicGen / AudioLDM2 / ACE-Step): list engines (+ readiness), the stepped designer's AI describe/lyrics steps, and generate a track from a prompt/lyrics. || `apiWritersRoom.js` | Writers Room (folders + works + drafts, live continuation + render-preview reservation, scene-image attach). |@@ -136,7 +136,7 @@ toasts on throw). **Custom catch ⇒ `silent: true`** — otherwise toasts fire| `apiOpenClaw.js` | File browser / picker backend. || `apiPalette.js` | Command-palette manifest + action dispatch. || `apiVoice.js` | Voice synthesis / processing. |-| `apiOpenWorld.js` | OpenWorld snapshots — historical world-state series for the timeline scrubber (GET /snapshots, GET /config, POST /capture). |+| `apiOpenWorld.js` | OpenWorld snapshots — historical world-state series for the timeline scrubber (GET /snapshots) plus introspection. || `apiPrivacy.js` | Privacy Center — encrypted PII Vault + Trusted Organizations registry (status, vault CRUD + reveal, org CRUD, org holdings replace-set) + Digital Twin social-account cross-link + household subjects (subject CRUD, consent audit, and a `subjectId` scope passed in each wrapper's trailing `options`). |## Browser-facing (DOM, voice, build) — not pure API wrappersdiff --git a/client/src/services/api.deadExports.test.js b/client/src/services/api.deadExports.test.jsnew file mode 100644index 0000000000..9f0439c770--- /dev/null+++ b/client/src/services/api.deadExports.test.js@@ -0,0 +1,107 @@+import { describe, it, expect } from 'vitest';+import { readdirSync, readFileSync, statSync } from 'node:fs';+import { dirname, join, relative } from 'node:path';+import { fileURLToPath } from 'node:url';++const HERE = dirname(fileURLToPath(import.meta.url));+const SRC_ROOT = join(HERE, '..');+const BARRELS = new Set(['api.js']);++// Deliberate keeps — a one-line, reviewed decision rather than silent+// accumulation. CLIENT_BUILD_ID lives on socket.js (a build-injected identity+// for the stale-client check) and is listed here so a future api*.js keep+// follows the same seam.+const INTENTIONALLY_UNREFERENCED = Object.freeze(['CLIENT_BUILD_ID']);++const isTest = (name) => /\.test\.(js|jsx)$/.test(name);++function walk(dir, acc = []) {+ for (const name of readdirSync(dir)) {+ const p = join(dir, name);+ if (statSync(p).isDirectory()) walk(p, acc);+ else if (/\.(js|jsx)$/.test(name)) acc.push(p);+ }+ return acc;+}++function collectNamedExports(src) {+ const names = new Set();+ let m;+ const decl = /^export (?:async function|function|const|let|var|class) (\w+)/gm;+ while ((m = decl.exec(src))) names.add(m[1]);+ const braced = /^export \{([^}]+)\}/gm;+ while ((m = braced.exec(src))) {+ for (const part of m[1].split(',')) {+ const bit = part.trim();+ if (!bit) continue;+ const as = bit.split(/\s+as\s+/);+ names.add((as[1] || as[0]).trim());+ }+ }+ return names;+}++function identFiles(files) {+ const map = new Map();+ const ident = /\b[A-Za-z_][A-Za-z0-9_]*\b/g;+ for (const file of files) {+ const src = readFileSync(file, 'utf8');+ const seen = new Set();+ let m;+ while ((m = ident.exec(src))) {+ if (seen.has(m[0])) continue;+ seen.add(m[0]);+ let arr = map.get(m[0]);+ if (!arr) map.set(m[0], arr = []);+ arr.push(file);+ }+ }+ return map;+}++function findDeadExports({ extra } = {}) {+ const all = walk(SRC_ROOT);+ const sources = all.filter((f) => !isTest(f));+ const apiFiles = readdirSync(HERE)+ .filter((f) => f.startsWith('api') && f.endsWith('.js') && !isTest(f) && f !== 'api.js')+ .map((f) => join(HERE, f));++ const corpus = sources.filter((f) => !BARRELS.has(relative(HERE, f)));+ const filesFor = identFiles(corpus);++ const dead = [];+ for (const file of apiFiles) {+ const names = collectNamedExports(readFileSync(file, 'utf8'));+ for (const name of names) {+ if (INTENTIONALLY_UNREFERENCED.includes(name)) continue;+ const hits = (filesFor.get(name) || []).filter((f) => f !== file);+ if (hits.length === 0) dead.push(`${relative(SRC_ROOT, file)}:${name}`);+ }+ }+ if (extra) {+ const hits = (filesFor.get(extra.name) || []).filter((f) => f !== extra.file);+ if (hits.length === 0 && !INTENTIONALLY_UNREFERENCED.includes(extra.name)) {+ dead.push(`${extra.file}:${extra.name}`);+ }+ }+ return dead;+}++describe('client API wrappers have callers', () => {+ it('lists no export referenced nowhere outside its module and the barrels', () => {+ const dead = findDeadExports();+ expect(dead, `caller-less wrappers:\n${dead.join('\n')}`).toEqual([]);+ });++ it('fails when a caller-less wrapper is added', () => {+ const dead = findDeadExports({+ extra: { file: 'services/apiFake.js', name: 'definitelyUnusedApiWrapper5727' },+ });+ expect(dead.some((row) => row.endsWith(':definitelyUnusedApiWrapper5727'))).toBe(true);+ });++ it('keeps the intentional-unreferenced allowlist explicit', () => {+ expect(INTENTIONALLY_UNREFERENCED).toEqual(['CLIENT_BUILD_ID']);+ });+});+// @vitest-environment nodediff --git a/client/src/services/apiAccounts.js b/client/src/services/apiAccounts.jsindex 76ac0855ae..354525d4f5 100644--- a/client/src/services/apiAccounts.js+++ b/client/src/services/apiAccounts.js@@ -8,11 +8,6 @@ export const getPlatformAccounts = (agentId = null, platform = null, options = {const query = params.toString();return request(`/agents/accounts${query ? `?${query}` : ''}`, options);};-export const getPlatformAccount = (id) => request(`/agents/accounts/${id}`);-export const createPlatformAccount = (data) => request('/agents/accounts', {- method: 'POST',- body: JSON.stringify(data)-});export const registerPlatformAccount = (agentId, platform, name, description) => request('/agents/accounts', {method: 'POST',body: JSON.stringify({ agentId, platform, name, description })@@ -63,13 +58,6 @@ export const checkAgentPosts = (agentId, accountId, days, maxReplies, maxUpvotesmethod: 'POST',body: JSON.stringify({ agentId, accountId, days, maxReplies, maxUpvotes })});--// Moltworld Tools-export const moltworldJoin = (accountId, x, y, thinking, say, sayTo, agentId) =>- request('/agents/tools/moltworld/join', {- method: 'POST',- body: JSON.stringify({ accountId, agentId, x, y, thinking, say, sayTo })- });export const moltworldBuild = (accountId, agentId, x, y, z, type, action) =>request('/agents/tools/moltworld/build', {method: 'POST',@@ -82,8 +70,6 @@ export const moltworldExplore = (accountId, agentId, x, y, thinking) =>});export const moltworldStatus = (accountId) =>request(`/agents/tools/moltworld/status?accountId=${accountId}`);-export const moltworldBalance = (accountId) =>- request(`/agents/tools/moltworld/balance?accountId=${accountId}`);export const moltworldRateLimits = (accountId) =>request(`/agents/tools/moltworld/rate-limits?accountId=${accountId}`);export const moltworldThink = (accountId, thought, agentId) =>@@ -128,11 +114,6 @@ export const moltworldWsThink = (thought) =>method: 'POST',body: JSON.stringify({ thought })});-export const moltworldWsNearby = (radius) =>- request('/agents/tools/moltworld/ws/nearby', {- method: 'POST',- body: JSON.stringify({ ...(radius ? { radius } : {}) })- });export const moltworldWsInteract = (to, payload) =>request('/agents/tools/moltworld/ws/interact', {method: 'POST',diff --git a/client/src/services/apiAgents.js b/client/src/services/apiAgents.jsindex a48bcf87d5..5897ee5596 100644--- a/client/src/services/apiAgents.js+++ b/client/src/services/apiAgents.js@@ -2,11 +2,9 @@ import { request } from './apiCore.js';// Running Agents (Process Management)export const getRunningAgents = (options) => request('/agents', options);-export const getRunningAgentInfo = (pid) => request(`/agents/${pid}`);-export const killRunningAgent = (pid) => request(`/agents/${pid}`, { method: 'DELETE' });+const killRunningAgent = (pid) => request(`/agents/${pid}`, { method: 'DELETE' });// Legacy aliasesexport const getAgents = getRunningAgents;-export const getAgentInfo = getRunningAgentInfo;export const killAgent = killRunningAgent;// Agent Activity@@ -24,14 +22,6 @@ export const getAgentActivityTimeline = (limit = 50, agentIds = null, before = nif (before) params.set('before', before);return request(`/agents/activity/timeline?${params}`);};-export const getAgentActivityByAgent = (agentId, options = {}) => {- const params = new URLSearchParams();- if (options.date) params.set('date', options.date);- if (options.limit) params.set('limit', options.limit);- if (options.offset) params.set('offset', options.offset);- if (options.action) params.set('action', options.action);- return request(`/agents/activity/agent/${agentId}?${params}`);-};export const getAgentActivityStats = (agentId, days = 7) =>request(`/agents/activity/agent/${agentId}/stats?days=${days}`);@@ -47,8 +37,6 @@ const runEventQuery = (filters = {}) => {const query = params.toString();return query ? `?${query}` : '';};-export const getRunEvents = (filters = {}, options = {}) =>- request(`/agents/activity/run-events${runEventQuery(filters)}`, options);export const getRunEventStats = (options = {}) =>request('/agents/activity/run-events/stats', options);export const getRunEventProjections = (filters = {}, options = {}) =>@@ -72,14 +60,6 @@ export const getCosToolCatalog = ({ scope = 'all', format = 'portos', intent, ..if (intent) params.set('intent', intent);return request(`/cos/tools?${params}`, options);};-export const callCosTool = (call, options = {}) => request('/cos/tools/call', {- method: 'POST',- body: JSON.stringify(call),- ...options,- headers: { 'Idempotency-Key': call.requestId, ...(options.headers || {}) },-});-export const getCosToolCall = (requestId, options = {}) =>- request(`/cos/tools/calls/${encodeURIComponent(requestId)}`, options);export const getPersistentMindRuntime = (options = {}) => request('/cos/mind/runtime', options);export const getPersistentMindVisibility = (options = {}) => {const { refresh, ...requestOptions } = options;@@ -189,7 +169,6 @@ export const getCosAgents = (options) => request('/cos/agents', options);export const getCosAgentDates = () => request('/cos/agents/history');export const getCosAgentsByDate = (date) => request(`/cos/agents/history/${date}`);export const getCosAgent = (id) => request(`/cos/agents/${id}`);-export const terminateCosAgent = (id) => request(`/cos/agents/${id}/terminate`, { method: 'POST' });export const pauseCosAgent = (id, reason, options = {}) => request(`/cos/agents/${id}/pause`, {method: 'POST',body: JSON.stringify({ reason }),@@ -220,9 +199,6 @@ export const sendCosAgentBtw = (id, message, options = {}) => request(`/cos/agen...options});export const getCosFeedbackStats = (options = {}) => request('/cos/feedback/stats', options);-export const getCosReports = () => request('/cos/reports');-export const getCosTodayReport = () => request('/cos/reports/today');-export const getCosReport = (date) => request(`/cos/reports/${date}`);// CoS Briefingsexport const getCosBriefings = () => request('/cos/briefings');@@ -256,28 +232,16 @@ export const restoreCosRecommendation = (id) => request('/cos/learning/recommendbody: JSON.stringify({ id })});export const clearDismissedCosRecommendations = () => request('/cos/learning/recommendations/clear-dismissed', { method: 'POST' });--// CoS Quick Task Templates-export const getCosTaskTemplates = () => request('/cos/templates');export const getCosPopularTemplates = (limit = 5) => request(`/cos/templates/popular?limit=${limit}`);-export const getCosTemplateCategories = () => request('/cos/templates/categories');export const createCosTaskTemplate = (data, options = {}) => request('/cos/templates', {method: 'POST',body: JSON.stringify(data),...options});-export const createCosTemplateFromTask = (task, templateName) => request('/cos/templates/from-task', {- method: 'POST',- body: JSON.stringify({ task, templateName })-});export const applyCosTaskTemplate = (id, options = {}) => request(`/cos/templates/${id}/use`, {method: 'POST',...options});-export const updateCosTaskTemplate = (id, data) => request(`/cos/templates/${id}`, {- method: 'PUT',- body: JSON.stringify(data)-});export const deleteCosTaskTemplate = (id, options = {}) => request(`/cos/templates/${id}`, { method: 'DELETE', ...options });// Weekly Digest@@ -287,80 +251,48 @@ export const getCosWeeklyDigest = (weekId = null) => {};export const listCosWeeklyDigests = () => request('/cos/digest/list');export const getCosWeekProgress = () => request('/cos/digest/progress');-export const getCosDigestText = async () => {- const response = await fetch('/api/cos/digest/text');- if (!response.ok) throw new Error(`HTTP ${response.status}`);- return response.text();-};export const generateCosDigest = (weekId = null) => request('/cos/digest/generate', {method: 'POST',body: JSON.stringify({ weekId })});-export const compareCosWeeks = (week1, week2) => request(`/cos/digest/compare?week1=${week1}&week2=${week2}`);// Productivityexport const getCosProductivity = () => request('/cos/productivity');-export const getCosProductivitySummary = () => request('/cos/productivity/summary');export const recalculateCosProductivity = () => request('/cos/productivity/recalculate', { method: 'POST' });export const getCosProductivityTrends = (days = 30) => request(`/cos/productivity/trends?days=${days}`);export const getCosActivityCalendar = (weeks = 12, options) => request(`/cos/productivity/calendar?weeks=${weeks}`, options);export const getCosQuickSummary = (options) => request('/cos/quick-summary', options);export const getCosRecentTasks = (limit = 10, options) => request(`/cos/recent-tasks?limit=${limit}`, options);export const getCosActionableInsights = (options) => request('/cos/actionable-insights', options);-export const getCosGoalProgress = () => request('/cos/goal-progress');export const getCosGoalProgressSummary = (options) => request('/cos/goal-progress/summary', options);// Auto-Fix Telemetry (issue #2328) — aggregated from persisted metadata.diagnosticsexport const getAutoFixMetrics = (options) => request('/autofix/metrics', options);--// Decision Log-export const getCosDecisions = (limit = 20, type = null) => {- const params = new URLSearchParams({ limit: limit.toString() });- if (type) params.append('type', type);- return request(`/cos/decisions?${params}`);-};export const getCosDecisionSummary = (options) => request('/cos/decisions/summary', options);-export const getCosDecisionPatterns = () => request('/cos/decisions/patterns');// Task Schedule (Configurable Intervals)export const getCosUpcomingTasks = (limit = 10, options) => request(`/cos/upcoming?limit=${limit}`, options);export const getCosSchedule = () => request('/cos/schedule');-export const getCosScheduleIntervalTypes = () => request('/cos/schedule/interval-types');-export const getCosScheduleDueTasks = () => request('/cos/schedule/due');-export const getCosScheduleDueAppTasks = (appId) => request(`/cos/schedule/due/${appId}`);// Unified task interval updateexport const updateCosTaskInterval = (taskType, settings, options = {}) => request(`/cos/schedule/task/${taskType}`, {method: 'PUT',body: JSON.stringify(settings),...options});-// Deprecated aliases — delegate to unified endpoint-export const updateCosSelfImprovementInterval = (taskType, settings) => updateCosTaskInterval(taskType, settings);-export const updateCosAppImprovementInterval = (taskType, settings) => updateCosTaskInterval(taskType, settings);export const triggerCosOnDemandTask = (taskType, appId = null, options = {}) => request('/cos/schedule/trigger', {method: 'POST',body: JSON.stringify({ taskType, appId }),...options});-export const getCosOnDemandRequests = () => request('/cos/schedule/on-demand');export const resetCosTaskHistory = (taskType, appId = null, options = {}) => request('/cos/schedule/reset', {method: 'POST',body: JSON.stringify({ taskType, appId }),...options});-export const getCosScheduleTemplates = () => request('/cos/schedule/templates');-export const addCosScheduleTemplate = (template) => request('/cos/schedule/templates', {- method: 'POST',- body: JSON.stringify(template)-});-export const deleteCosScheduleTemplate = (templateId) => request(`/cos/schedule/templates/${templateId}`, { method: 'DELETE' });// Autonomous Jobsexport const getCosJobs = (options = {}) => request('/cos/jobs', options);-export const getCosJobsDue = () => request('/cos/jobs/due');-export const getCosJobIntervals = () => request('/cos/jobs/intervals');-export const getCosJobAllowedCommands = () => request('/cos/jobs/allowed-commands');export const getCosJob = (id, options = {}) => request(`/cos/jobs/${id}`, options);export const createCosJob = (data, options = {}) => request('/cos/jobs', {method: 'POST',diff --git a/client/src/services/apiAlbums.js b/client/src/services/apiAlbums.jsindex e01ef7c9b0..aaf7e8a8cd 100644--- a/client/src/services/apiAlbums.js+++ b/client/src/services/apiAlbums.js@@ -5,7 +5,6 @@ import { request } from './apiCore.js';// FK; `artist` is the denormalized name (renders before the artist record syncs).// `options` lets a caller suppress request()'s auto-toast with `{ silent: true }`.export const listAlbums = (options = {}) => request('/albums', options);-export const getAlbum = (id, options = {}) => request(`/albums/${encodeURIComponent(id)}`, options);export const createAlbum = (data, requestOptions = {}) => request('/albums', {method: 'POST',body: JSON.stringify(data),@@ -25,6 +24,5 @@ export const deleteAlbum = (id, requestOptions = {}) => request(`/albums/${encodexport const ALBUM_TITLE_MAX = 200;export const ALBUM_DESCRIPTION_MAX = 4000;export const ALBUM_GENRE_MAX = 120;-export const ALBUM_COVER_IMAGE_URL_MAX = 1000;export const ALBUM_RELEASE_YEAR_MIN = 1850;export const ALBUM_RELEASE_YEAR_MAX = 2200;diff --git a/client/src/services/apiApps.js b/client/src/services/apiApps.jsindex a81eecf5d7..891d6126fa 100644--- a/client/src/services/apiApps.js+++ b/client/src/services/apiApps.js@@ -146,7 +146,6 @@ export const fixAppViteHosts = (id, body) => request(`/apps/${id}/fix-vite-hostsexport const archiveApp = (id) => request(`/apps/${id}/archive`, { method: 'POST' });export const unarchiveApp = (id) => request(`/apps/${id}/unarchive`, { method: 'POST' });export const openAppInEditor = (id) => request(`/apps/${id}/open-editor`, { method: 'POST' });-export const openAppInClaude = (id) => request(`/apps/${id}/open-claude`, { method: 'POST' });export const openAppFolder = (id) => request(`/apps/${id}/open-folder`, { method: 'POST' });// The server resolves the real .xcworkspace/.xcodeproj name and opens it on the// machine Xcode runs on — so this works from a phone, and a missing project@@ -172,7 +171,6 @@ export const pullAndUpdateApp = (id, body = {}, options = {}) => request(`/apps/// `options` lets a caller suppress request()'s auto-toast with `{ silent: true }`// when it already renders its own error UI.export const buildApp = (id, options = {}) => request(`/apps/${id}/build`, { method: 'POST', ...options });-export const getAppStatus = (id) => request(`/apps/${id}/status`);export const getAppTaskTypes = (id) => request(`/apps/${id}/task-types`);export const toggleAllAppTaskTypes = (id, enabled, options = {}) => request(`/apps/${id}/task-types/all`, {method: 'PUT',@@ -192,13 +190,7 @@ export const bulkUpdateAppTaskTypeOverride = (taskType, { enabled }, options = {body: JSON.stringify({ enabled }),...options});-export const detectAppIcons = () => request('/apps/detect-icons', { method: 'POST' });export const detectAppIcon = (id) => request(`/apps/${id}/detect-icon`, { method: 'POST' });-export const getAppLogs = (id, lines = 100, processName) => {- const params = new URLSearchParams({ lines: String(lines) });- if (processName) params.set('process', processName);- return request(`/apps/${id}/logs?${params}`);-};export const installXcodeScripts = (id, scripts) => request(`/apps/${id}/xcode-scripts/install`, {method: 'POST',diff --git a/client/src/services/apiArtists.js b/client/src/services/apiArtists.jsindex 4f981df437..7383f1cb47 100644--- a/client/src/services/apiArtists.js+++ b/client/src/services/apiArtists.js@@ -6,7 +6,6 @@ import { request } from './apiCore.js';// to generate an artist portrait. `options` lets a caller suppress request()'s// auto-toast with `{ silent: true }`.export const listArtists = (options = {}) => request('/artists', options);-export const getArtist = (id, options = {}) => request(`/artists/${encodeURIComponent(id)}`, options);export const createArtist = (data, requestOptions = {}) => request('/artists', {method: 'POST',body: JSON.stringify(data),diff --git a/client/src/services/apiAuth.js b/client/src/services/apiAuth.jsindex 473c5ac477..4c073d53ac 100644--- a/client/src/services/apiAuth.js+++ b/client/src/services/apiAuth.js@@ -4,18 +4,12 @@ import { request } from './apiCore.js';// the login gate at all.export const getAuthStatus = (options) => request('/auth/status', options);-// `silent: true` everywhere — the LoginGate handles 401 / auth flows itself,-// so the default error-toast layer would just double up.-export const getWhoami = (options) => request('/auth/whoami', { silent: true, ...options });-export const loginWithPassword = (password) => request('/auth/login', {method: 'POST',body: JSON.stringify({ password }),silent: true,});-export const logout = () => request('/auth/logout', { method: 'POST', silent: true });-export const setAuthPassword = ({ newPassword, currentPassword }) => request('/auth/password', {method: 'POST',body: JSON.stringify({ newPassword, ...(currentPassword ? { currentPassword } : {}) }),diff --git a/client/src/services/apiAuthors.js b/client/src/services/apiAuthors.jsindex 8675e86777..c77e846232 100644--- a/client/src/services/apiAuthors.js+++ b/client/src/services/apiAuthors.js@@ -5,7 +5,6 @@ import { request } from './apiCore.js';// description + headshot style used to generate a book-cover author headshot.// `options` lets a caller suppress request()'s auto-toast with `{ silent: true }`.export const listAuthors = (options = {}) => request('/authors', options);-export const getAuthor = (id, options = {}) => request(`/authors/${encodeURIComponent(id)}`, options);export const createAuthor = (data, requestOptions = {}) => request('/authors', {method: 'POST',body: JSON.stringify(data),diff --git a/client/src/services/apiBrain.js b/client/src/services/apiBrain.jsindex d9cb188ea1..5a968ca57b 100644--- a/client/src/services/apiBrain.js+++ b/client/src/services/apiBrain.js@@ -29,7 +29,6 @@ export const getBrainInbox = (options = {}) => {// the rest of `options` is query params handled above.return request(`/brain/inbox?${params}`, { silent: options.silent });};-export const getBrainInboxEntry = (id) => request(`/brain/inbox/${id}`);export const resolveBrainReview = (inboxLogId, destination, editedExtracted, options = {}) => request('/brain/review/resolve', {method: 'POST',body: JSON.stringify({ inboxLogId, destination, editedExtracted }),@@ -177,9 +176,6 @@ export const updateBrainMemory = (id, data, options = {}) => request(`/brain/mem...options});export const deleteBrainMemory = (id, options = {}) => request(`/brain/memories/${id}`, { method: 'DELETE', ...options });--// Brain - Third-party Imports-export const getBrainImportSources = () => request('/brain/import/sources');export const previewChatgptImport = (data) => request('/brain/import/chatgpt/preview', {method: 'POST',body: JSON.stringify({ data })@@ -393,10 +389,6 @@ export const cancelYoutubeIngest = (jobId, options = {}) => request({ method: 'POST', ...options });export const getYoutubeIngests = (options = {}) => request('/brain/youtube/ingests', options);-export const getYoutubeIngest = (videoId, options = {}) => request(- `/brain/youtube/ingests/${encodeURIComponent(videoId)}`,- options-);export const deleteYoutubeIngest = (videoId, options = {}) => request(`/brain/youtube/ingests/${encodeURIComponent(videoId)}`,{ method: 'DELETE', ...options }diff --git a/client/src/services/apiCalendar.js b/client/src/services/apiCalendar.jsindex 9153e15695..ecf9c2e0a5 100644--- a/client/src/services/apiCalendar.js+++ b/client/src/services/apiCalendar.js@@ -6,7 +6,6 @@ export const createCalendarAccount = (data, options = {}) => request('/calendar/export const updateCalendarAccount = (id, data, options = {}) => request(`/calendar/accounts/${id}`, { method: 'PUT', body: JSON.stringify(data), ...options });export const deleteCalendarAccount = (id) => request(`/calendar/accounts/${id}`, { method: 'DELETE' });export const syncCalendarAccount = (accountId) => request(`/calendar/sync/${accountId}`, { method: 'POST' });-export const getCalendarSyncStatus = (accountId) => request(`/calendar/sync/${accountId}/status`);export const getCalendarEvents = (params = {}) => {const str = new URLSearchParams(Object.entries(params).filter(([, v]) => v != null)).toString();return request(`/calendar/events${str ? `?${str}` : ''}`);@@ -31,7 +30,3 @@ export const startGoogleAutoConfig = (options = {}) => request('/calendar/googleexport const runGoogleAutoConfig = (email, options = {}) => request('/calendar/google/auto-configure/run', { method: 'POST', body: JSON.stringify({ email }), ...options });export const getDailyReview = (date) => request(`/calendar/review/${date}`);export const confirmDailyReviewEvent = (date, data, options = {}) => request(`/calendar/review/${date}/confirm`, { method: 'POST', body: JSON.stringify(data), ...options });-export const getDailyReviewHistory = (params = {}) => {- const str = new URLSearchParams(Object.entries(params).filter(([, v]) => v)).toString();- return request(`/calendar/review/history${str ? `?${str}` : ''}`);-};diff --git a/client/src/services/apiCatalog.js b/client/src/services/apiCatalog.jsindex 75fd6c3e8f..a583b74287 100644--- a/client/src/services/apiCatalog.js+++ b/client/src/services/apiCatalog.js@@ -22,21 +22,6 @@ export const getCatalogFacets = (options) => request('/catalog/facets', options)export const createCatalogScrap = (body = {}, options) =>request('/catalog/scraps', { method: 'POST', body: JSON.stringify(body), ...options });-export const listCatalogScraps = ({ limit, offset, ...options } = {}) => {- const params = new URLSearchParams();- if (limit) params.set('limit', String(limit));- if (offset) params.set('offset', String(offset));- return request(`/catalog/scraps${params.toString() ? `?${params}` : ''}`, options);-};--export const getCatalogScrap = (id, options) => request(`/catalog/scraps/${enc(id)}`, options);--export const updateCatalogScrap = (id, patch, options) =>- request(`/catalog/scraps/${enc(id)}`, { method: 'PATCH', body: JSON.stringify(patch), ...options });--export const deleteCatalogScrap = (id, options) =>- request(`/catalog/scraps/${enc(id)}`, { method: 'DELETE', ...options });-export const extractFromCatalogScrap = (id, body = {}, options) =>request(`/catalog/scraps/${enc(id)}/extract`, { method: 'POST', body: JSON.stringify(body), ...options });@@ -97,9 +82,6 @@ export const listCatalogIngredientsByIds = async (ids = [], options) => {return list.map((id) => byId.get(id)).filter(Boolean);};-export const getCatalogIngredient = (id, options) =>- request(`/catalog/ingredients/${enc(id)}`, options);-// Batched detail hydration — one request for ingredient + refs + sources +// relations + revisions + media + missingMedia, used by the detail page's// initial load in place of five separate calls.@@ -151,11 +133,6 @@ export const unlinkCatalogIngredient = (id, body, options) =>export const listCatalogIngredientsForRef = (refKind, refId, options) =>request(`/catalog/refs/${enc(refKind)}/${enc(refId)}/ingredients`, options);-// --- Relations (ingredient ↔ ingredient) ----------------------------------export const listCatalogIngredientRelations = (id, options) =>- request(`/catalog/ingredients/${enc(id)}/relations`, options);-export const linkCatalogIngredientRelation = (id, body, options) =>request(`/catalog/ingredients/${enc(id)}/relations`, { method: 'POST', body: JSON.stringify(body), ...options });@@ -194,19 +171,5 @@ export const recordCatalogIngredientVoiceMemo = (id, body, options) =>export const bulkImportCatalogIngredients = (body, options) =>request('/catalog/bulk-import', { method: 'POST', body: JSON.stringify(body), ...options });-// Returns the raw bundle text/JSON; the caller is responsible for triggering-// a browser download (typically by constructing a Blob and clicking an-// anchor). For programmatic use (round-trip ingest), the JSON form is the-// canonical shape.-export const exportCatalogSlice = ({ refKind, refId, format = 'json' } = {}, options) => {- const params = new URLSearchParams({ refKind, refId, format });- return request(`/catalog/export?${params}`, { responseType: 'text', ...options });-};--// --- Admin ----------------------------------------------------------------export const backfillCatalogEmbeddings = ({ limit, ...options } = {}) =>- request('/catalog/embeddings/backfill', { method: 'POST', body: JSON.stringify({ limit }), ...options });-export const rerunCatalogMigration = ({ force, ...options } = {}) =>request('/catalog/migration/rerun', { method: 'POST', body: JSON.stringify({ force }), ...options });diff --git a/client/src/services/apiContacts.js b/client/src/services/apiContacts.jsindex 3250c8db97..885957365a 100644--- a/client/src/services/apiContacts.js+++ b/client/src/services/apiContacts.js@@ -4,15 +4,6 @@ import { request } from './apiCore.js';export const getContactsStatus = (options = {}) => request('/contacts/status', options);export const checkContactsSetup = (options = {}) => request('/contacts/setup-check', options);export const syncContacts = (options = {}) => request('/contacts/sync', { method: 'POST', ...options });-export const searchContacts = ({ q, limit, silent } = {}) => {- const params = new URLSearchParams();- if (q) params.set('q', q);- if (limit) params.set('limit', String(limit));- const qs = params.toString();- return request(`/contacts/search${qs ? `?${qs}` : ''}`, { silent });-};-export const resolveContactHandle = (handle, options = {}) =>- request(`/contacts/resolve?handle=${encodeURIComponent(handle)}`, options);export const enrichTribeFromContacts = ({ dryRun = false, ...options } = {}) =>request('/contacts/enrich-tribe', {method: 'POST',diff --git a/client/src/services/apiCreativeDirector.js b/client/src/services/apiCreativeDirector.jsindex e8fc44f4e3..320e518204 100644--- a/client/src/services/apiCreativeDirector.js+++ b/client/src/services/apiCreativeDirector.js@@ -81,18 +81,6 @@ export const updateCreativeDirectorPlanStep = (id, stepId, action, options = {})body: JSON.stringify({ action }),...options,});-// Autonomous auto-cast (#1810). `suggest` previews the catalog ingredients the-// director would propose for a free-text brief (no mutation). `apply` derives the-// brief from the project (or accepts an explicit one), appends the fresh-// candidates to the project cast, and links them — returning-// `{ project, added, suggestions }`. `options.silent` defers error toasting to a-// caller that owns its own error UI.-export const suggestCreativeDirectorAutoCast = (brief, { types, limit } = {}, options = {}) =>- request('/creative-director/auto-cast/suggest', {- method: 'POST',- body: JSON.stringify({ brief, ...(types ? { types } : {}), ...(limit ? { limit } : {}) }),- ...options,- });// `compose: true` (#1817) tells the director to autonomously write a treatment +// scene plan grounded in the freshly-seeded cast — the response carries// `composing: true` when the server actually kicked the agent off.diff --git a/client/src/services/apiDigitalTwin.js b/client/src/services/apiDigitalTwin.jsindex 7e3c94585b..39d31a7a31 100644--- a/client/src/services/apiDigitalTwin.js+++ b/client/src/services/apiDigitalTwin.js@@ -16,15 +16,15 @@ export const updateDigitalTwinDocument = (id, data, options = {}) => request(`/dbody: JSON.stringify(data),...options});-export const deleteDigitalTwinDocument = (id) => request(`/digital-twin/documents/${id}`, { method: 'DELETE' });+const deleteDigitalTwinDocument = (id) => request(`/digital-twin/documents/${id}`, { method: 'DELETE' });// Digital Twin - Testingexport const getDigitalTwinTests = () => request('/digital-twin/tests');-export const runDigitalTwinTests = (providerId, model, testIds = null, personaId = null) => request('/digital-twin/tests/run', {+const runDigitalTwinTests = (providerId, model, testIds = null, personaId = null) => request('/digital-twin/tests/run', {method: 'POST',body: JSON.stringify({ providerId, model, testIds, personaId })});-export const runDigitalTwinMultiTests = (providers, testIds = null, personaId = null) => request('/digital-twin/tests/run-multi', {+const runDigitalTwinMultiTests = (providers, testIds = null, personaId = null) => request('/digital-twin/tests/run-multi', {method: 'POST',body: JSON.stringify({ providers, testIds, personaId })});@@ -56,15 +56,12 @@ export const runMultiTurnTests = (providerId, model, testIds = null, personaId =...options});export const getMultiTurnTestHistory = (limit = 10, options = {}) => request(`/digital-twin/multi-turn-tests/history?limit=${limit}`, options);--// Digital Twin - Enrichment-export const getDigitalTwinEnrichCategories = () => request('/digital-twin/enrich/categories');export const getDigitalTwinEnrichProgress = () => request('/digital-twin/enrich/progress');export const getDigitalTwinEnrichQuestion = (category, providerOverride, modelOverride, skipIndices) => request('/digital-twin/enrich/question', {method: 'POST',body: JSON.stringify({ category, providerOverride, modelOverride, ...(skipIndices?.length ? { skipIndices } : {}) })});-export const submitDigitalTwinEnrichAnswer = (data, options = {}) => request('/digital-twin/enrich/answer', {+const submitDigitalTwinEnrichAnswer = (data, options = {}) => request('/digital-twin/enrich/answer', {method: 'POST',body: JSON.stringify(data),...options@@ -72,7 +69,7 @@ export const submitDigitalTwinEnrichAnswer = (data, options = {}) => request('/d// Digital Twin - Exportexport const getDigitalTwinExportFormats = () => request('/digital-twin/export/formats');-export const exportDigitalTwin = (format, documentIds = null, includeDisabled = false) => request('/digital-twin/export', {+const exportDigitalTwin = (format, documentIds = null, includeDisabled = false) => request('/digital-twin/export', {method: 'POST',body: JSON.stringify({ format, documentIds, includeDisabled })});@@ -102,7 +99,7 @@ export const downloadLegacyExport = ({ sections = null, includePdf = false } = {// Digital Twin - Settingsexport const getDigitalTwinSettings = (options) => request('/digital-twin/settings', options);-export const updateDigitalTwinSettings = (settings) => request('/digital-twin/settings', {+const updateDigitalTwinSettings = (settings) => request('/digital-twin/settings', {method: 'PUT',body: JSON.stringify(settings)});@@ -126,12 +123,12 @@ export const setActiveDigitalTwinPersona = (personaId) => request('/digital-twin// Digital Twin - Validation & Analysisexport const getDigitalTwinCompleteness = () => request('/digital-twin/validate/completeness');-export const detectDigitalTwinContradictions = (providerId, model, options = {}) => request('/digital-twin/validate/contradictions', {+const detectDigitalTwinContradictions = (providerId, model, options = {}) => request('/digital-twin/validate/contradictions', {method: 'POST',body: JSON.stringify({ providerId, model }),...options});-export const generateDigitalTwinTests = (providerId, model, options = {}) => request('/digital-twin/tests/generate', {+const generateDigitalTwinTests = (providerId, model, options = {}) => request('/digital-twin/tests/generate', {method: 'POST',body: JSON.stringify({ providerId, model }),...options@@ -224,19 +221,9 @@ export const submitBehavioralFeedback = (data, options = {}) => request('/digita...options});export const getBehavioralFeedbackStats = () => request('/digital-twin/feedback/stats');-export const recalculateFeedbackWeights = () => request('/digital-twin/feedback/recalculate', {- method: 'POST'-});-export const getRecentFeedback = (contentType, limit) => {- const params = new URLSearchParams();- if (contentType) params.set('contentType', contentType);- if (limit) params.set('limit', limit);- return request(`/digital-twin/feedback/recent?${params}`);-};// Digital Twin - Taste Questionnaireexport const getTasteProfile = () => request('/digital-twin/taste');-export const getTasteSections = () => request('/digital-twin/taste/sections');export const getTasteNextQuestion = (section) => request(`/digital-twin/taste/${section}/next`);export const submitTasteAnswer = (section, questionId, answer, meta = {}, options = {}) => request('/digital-twin/taste/answer', {method: 'POST',@@ -287,17 +274,12 @@ export const deleteAutobiographyStory = (id, options = {}) => request(`/digital-method: 'DELETE',...options});-export const triggerAutobiographyPrompt = () => request('/digital-twin/autobiography/trigger', {- method: 'POST'-});export const generateAutobiographyFollowUps = (storyId, providerId, options = {}) =>request(`/digital-twin/autobiography/stories/${storyId}/follow-ups`, {method: 'POST',body: JSON.stringify({ providerId }),...options});-export const getAutobiographyStoryChain = (storyId) =>- request(`/digital-twin/autobiography/stories/${storyId}/chain`);export const weaveAutobiographyNarrative = (storyId, providerId) =>request(`/digital-twin/autobiography/stories/${storyId}/weave`, {method: 'POST',@@ -319,15 +301,10 @@ export const getSocialAccounts = (params = {}) => {};export const getSocialAccountPlatforms = () => request('/digital-twin/social-accounts/platforms');export const getSocialAccountStats = () => request('/digital-twin/social-accounts/stats');-export const getSocialAccount = (id) => request(`/digital-twin/social-accounts/${id}`);export const createSocialAccount = (data) => request('/digital-twin/social-accounts', {method: 'POST',body: JSON.stringify(data)});-export const createSocialAccountsBulk = (accounts) => request('/digital-twin/social-accounts/bulk', {- method: 'POST',- body: JSON.stringify({ accounts })-});export const updateSocialAccount = (id, data) => request(`/digital-twin/social-accounts/${id}`, {method: 'PUT',body: JSON.stringify(data)diff --git a/client/src/services/apiDigitalTwin.test.js b/client/src/services/apiDigitalTwin.test.jsindex 42acb0df64..5efec352d1 100644--- a/client/src/services/apiDigitalTwin.test.js+++ b/client/src/services/apiDigitalTwin.test.js@@ -5,24 +5,24 @@ vi.mock('./apiCore.js', () => ({}));let request;-let detectDigitalTwinContradictions;+let detectSoulContradictions;let openDigitalTwinSpotifyBrowser;let importDigitalTwinSpotifyBrowser;beforeEach(async () => {vi.resetModules();({ request } = await import('./apiCore.js'));- ({ detectDigitalTwinContradictions, openDigitalTwinSpotifyBrowser, importDigitalTwinSpotifyBrowser } = await import('./apiDigitalTwin.js'));+ ({ detectSoulContradictions, openDigitalTwinSpotifyBrowser, importDigitalTwinSpotifyBrowser } = await import('./apiDigitalTwin.js'));request.mockReset();});-describe('detectDigitalTwinContradictions', () => {+describe('detectSoulContradictions', () => {// OverviewTab renders the failure inline (contradictions.error), so it needs a// way to suppress request()'s own toast — otherwise one failure reports twice.it('forwards caller options (e.g. silent) into the request', async () => {request.mockResolvedValue({ issues: [] });- await detectDigitalTwinContradictions('openai', 'gpt-4', { silent: true });+ await detectSoulContradictions('openai', 'gpt-4', { silent: true });const [path, options] = request.mock.calls[0];expect(path).toBe('/digital-twin/validate/contradictions');@@ -35,7 +35,7 @@ describe('detectDigitalTwinContradictions', () => {it('stays callable without options (back-compat) and then toasts by default', async () => {request.mockResolvedValue({ issues: [] });- await detectDigitalTwinContradictions('openai', 'gpt-4');+ await detectSoulContradictions('openai', 'gpt-4');const [, options] = request.mock.calls[0];expect(options.silent).toBeUndefined();diff --git a/client/src/services/apiFableLoom.js b/client/src/services/apiFableLoom.jsindex 8420da948d..5c5603cc2b 100644--- a/client/src/services/apiFableLoom.js+++ b/client/src/services/apiFableLoom.js@@ -150,9 +150,6 @@ export const createHostedLoomSession = (id, episodeId, body = {}, options = {})method: 'POST', body: JSON.stringify(body), ...options,});-export const getHostedLoomSession = (sessionId, options = {}) =>- request(`/fableloom/sessions/${encodeURIComponent(sessionId)}`, options);-export const updateHostedLoomSession = (sessionId, patch = {}, options = {}) =>request(`/fableloom/sessions/${encodeURIComponent(sessionId)}`, {method: 'PATCH', body: JSON.stringify(patch), ...options,diff --git a/client/src/services/apiGSD.js b/client/src/services/apiGSD.jsindex a2d9349eaf..98839d6cf9 100644--- a/client/src/services/apiGSD.js+++ b/client/src/services/apiGSD.js@@ -3,9 +3,7 @@ import { request } from './apiCore.js';// GSD (Get Stuff Done) Integrationexport const getGsdProjects = () => request('/cos/gsd/projects');export const getGsdProject = (appId, options = {}) => request(`/cos/gsd/projects/${appId}`, options);-export const getGsdConcerns = (appId) => request(`/cos/gsd/projects/${appId}/concerns`);export const getGsdPhases = (appId, options) => request(`/cos/gsd/projects/${appId}/phases`, options);-export const getGsdPhase = (appId, phaseId) => request(`/cos/gsd/projects/${appId}/phases/${phaseId}`);export const createGsdConcernTasks = (appId, data, options = {}) => request(`/cos/gsd/projects/${appId}/concerns/tasks`, {method: 'POST',body: JSON.stringify(data),diff --git a/client/src/services/apiGames.js b/client/src/services/apiGames.jsindex 685c0d0ed2..55c58a4642 100644--- a/client/src/services/apiGames.js+++ b/client/src/services/apiGames.js@@ -11,17 +11,6 @@ export const createGame = (body, options = {}) => request('/games', {...options,});-export const updateGame = (id, patch, options = {}) => request(`/games/${encodeURIComponent(id)}`, {- method: 'PATCH',- body: JSON.stringify(patch),- ...options,-});--export const deleteGame = (id, options = {}) => request(`/games/${encodeURIComponent(id)}`, {- method: 'DELETE',- ...options,-});-export const bindGameSprite = (id, spriteId, options = {}) => request(`/games/${encodeURIComponent(id)}/sprites`,{ method: 'POST', body: JSON.stringify({ spriteId }), ...options },diff --git a/client/src/services/apiGit.js b/client/src/services/apiGit.jsindex 6157d5fc16..f5baf96622 100644--- a/client/src/services/apiGit.js+++ b/client/src/services/apiGit.js@@ -5,18 +5,10 @@ export const getGitInfo = (path) => request('/git/info', {method: 'POST',body: JSON.stringify({ path })});-export const getGitStatus = (path) => request('/git/status', {- method: 'POST',- body: JSON.stringify({ path })-});export const getGitDiff = (path, staged = false) => request('/git/diff', {method: 'POST',body: JSON.stringify({ path, staged })});-export const getGitCommits = (path, limit = 10) => request('/git/commits', {- method: 'POST',- body: JSON.stringify({ path, limit })-});export const stageFiles = (path, files) => request('/git/stage', {method: 'POST',body: JSON.stringify({ path, files })@@ -53,10 +45,6 @@ export const checkoutBranch = (path, branch) => request('/git/checkout', {method: 'POST',body: JSON.stringify({ path, branch })});-export const pullBranch = (path) => request('/git/pull', {- method: 'POST',- body: JSON.stringify({ path })-});export const syncBranch = (path, branch) => request('/git/sync', {method: 'POST',body: JSON.stringify({ path, branch })diff --git a/client/src/services/apiGoals.js b/client/src/services/apiGoals.jsindex 7c13995943..5c4c1b9932 100644--- a/client/src/services/apiGoals.js+++ b/client/src/services/apiGoals.js@@ -6,10 +6,6 @@ export const getCrossInsights = () => request('/digital-twin/identity/cross-insiexport const getChronotype = (options) => request('/digital-twin/identity/chronotype', options);export const getChronotypeEnergySchedule = () => request('/digital-twin/identity/chronotype/energy-schedule');export const deriveChronotype = () => request('/digital-twin/identity/chronotype/derive', { method: 'POST' });-export const updateChronotypeBehavioral = (data) => request('/digital-twin/identity/chronotype', {- method: 'PUT',- body: JSON.stringify(data)-});export const getLongevity = () => request('/digital-twin/identity/longevity');export const deriveLongevity = () => request('/digital-twin/identity/longevity/derive', { method: 'POST' });export const getGoals = (options) => request('/digital-twin/identity/goals', options);@@ -53,10 +49,6 @@ export const deleteGoalProgress = (goalId, entryId) =>// Goal Calendar linkingexport const linkGoalCalendar = (goalId, data) => request(`/digital-twin/identity/goals/${goalId}/calendars`, { method: 'POST', body: JSON.stringify(data) });export const unlinkGoalCalendar = (goalId, subcalendarId) => request(`/digital-twin/identity/goals/${goalId}/calendars/${encodeURIComponent(subcalendarId)}`, { method: 'DELETE' });-export const getGoalCalendarEvents = (goalId, params = {}) => {- const str = new URLSearchParams(Object.entries(params).filter(([, v]) => v)).toString();- return request(`/digital-twin/identity/goals/${goalId}/calendar-events${str ? `?${str}` : ''}`);-};// Goal Progress & Todosexport const updateGoalProgress = (goalId, value) => request(`/digital-twin/identity/goals/${goalId}/progress`, { method: 'PUT', body: JSON.stringify({ value }) });diff --git a/client/src/services/apiHealth.js b/client/src/services/apiHealth.jsindex 3915c667ab..a8fe2b8d3c 100644--- a/client/src/services/apiHealth.js+++ b/client/src/services/apiHealth.js@@ -11,16 +11,9 @@ export const getAppleHealthMetrics = (metricName, from, to) => {if (to) params.set('to', to);return request(`/health/metrics/${metricName}/daily?${params}`);};-export const getAppleHealthSummary = (metricName, from, to) => {- const params = new URLSearchParams();- if (from) params.set('from', from);- if (to) params.set('to', to);- return request(`/health/metrics/${metricName}?${params}`);-};export const getAvailableHealthMetrics = () => request('/health/metrics/available');export const getLatestHealthMetrics = (metricNames, options = {}) =>request(`/health/metrics/latest?metrics=${metricNames.join(',')}`, options);-export const getAppleHealthRange = () => request('/health/range');export const getAppleHealthCorrelation = (from, to) => {const params = new URLSearchParams();if (from) params.set('from', from);diff --git a/client/src/services/apiImageVideo.js b/client/src/services/apiImageVideo.jsindex f2431889b1..fb307904fb 100644--- a/client/src/services/apiImageVideo.js+++ b/client/src/services/apiImageVideo.js@@ -26,7 +26,6 @@ export const repairImageModel = (modelId, { deep = false } = {}) => request(`/imbody: JSON.stringify({ deep }),silent: true,});-export const listLoras = () => request('/image-gen/loras');export const listImageGallery = (options = {}) => request('/image-gen/gallery', options);export const getActiveImageJob = () => request('/image-gen/active');// cancelImageGen({ all: true }) cancels every queued/running image job.@@ -166,16 +165,6 @@ export const getVideoGenStatus = (options = {}) => request('/video-gen/status',export const listVideoModels = ({ includeUnavailable = false, ...options } = {}) =>request('/video-gen/models', options).then((models) => filterHardwareCompatibleModels(models, { includeUnavailable }));-// Install-wide acknowledgement of a restricted model's reviewed license, keyed-// by the exact `termsGate.id`. Persisted server-side so accepting once (on any-// render surface) authorizes every other one, including background producers.-// Both return `{ accepted: [termsId, ...] }`.-export const getVideoModelTerms = (options = {}) => request('/video-gen/model-terms', options);-export const setVideoModelTerms = (termsId, accepted, options = {}) => request('/video-gen/model-terms', {- method: 'POST',- body: JSON.stringify({ termsId, accepted }),- ...options,-});// `{ models: [...], textEncoder: { repo, cached, sizeBytes } }`. Same shape// contract as the image variant + a text-encoder block since the active// encoder is a separate multi-GB pull.@@ -316,9 +305,6 @@ export const renderTimelineProject = (id, options = {}) => request(`/video-timelmethod: 'POST',...options,});-export const cancelTimelineRender = (jobId) => request(`/video-timeline/${encodeURIComponent(jobId)}/cancel`, {- method: 'POST',-});// Media collections — user-named buckets that can hold any mix of images// and videos. An item key is "<kind>:<ref>" (e.g. "image:foo.png" or@@ -395,18 +381,6 @@ export const deleteLora = (filename, options = {}) => request(`/image-video/mode// manager can install/delete their separate prompt-conditioner pulls.export const listMediaModelRegistry = () => request('/image-video/models/registry');-// Search the HuggingFace Hub for candidate base-model repos. `pipeline` scopes-// to e.g. 'text-to-image'/'text-to-video'. `silent` (default true) because the-// caller owns its own error UI. Returns `{ items: [{ id, likes, downloads, pipeline_tag }] }`.-export const searchHfMediaModels = ({ query = '', pipeline, limit, silent = true } = {}) => {- const params = new URLSearchParams();- if (query) params.set('query', query);- if (pipeline) params.set('pipeline', pipeline);- if (limit) params.set('limit', String(limit));- const qs = params.toString();- return request(`/image-video/models/search${qs ? `?${qs}` : ''}`, { silent });-};-// Add a custom base model from a HuggingFace repo. The server strictly refuses// GGUF-only / wan / hunyuan / unclassifiable repos, so a rejection carries a// typed `.code` (HF_UNSUPPORTED_FORMAT, HF_UNKNOWN_KIND, HF_UNKNOWN_RUNNER, …)@@ -456,22 +430,10 @@ export const installLoraFromCivitai = ({ url, silent = false } = {}) => request(silent,});-// Install an image or video LoRA from a HuggingFace repo (Flux.2 Klein, fal /-// Lightricks LTX, MiniMax H3). `family` is an optional override (e.g. 'flux2'-// or 'ltx-video') when autodetection from the repo id/tags/filenames can't-// classify it. `silent` lets the page route HF_AUTH / HF_UNKNOWN_FAMILY errors-// into its own inline UI.-export const installLoraFromHuggingface = ({ url, family, file, silent = false } = {}) => request('/loras/install/huggingface', {- method: 'POST',- body: JSON.stringify({ url, ...(family ? { family } : {}), ...(file ? { file } : {}) }),- silent,-});--// Streaming HF LoRA install — same install as installLoraFromHuggingface but-// reads a byte-level progress stream. Resolves with the new sidecar on the-// `complete` frame; rejects with an Error carrying `.code` (e.g.-// 'HF_UNKNOWN_FAMILY', 'HF_ALREADY_INSTALLED') on an `error` frame, so the page-// can drive the same inline family-confirm retry it does for the POST path.+// Streaming HF LoRA install — reads a byte-level progress stream. Resolves+// with the new sidecar on the `complete` frame; rejects with an Error carrying+// `.code` (e.g. 'HF_UNKNOWN_FAMILY', 'HF_ALREADY_INSTALLED') on an `error`+// frame, so the page can drive an inline family-confirm retry.// `onProgress({ received, total, progress })` fires per throttled download tick// — `progress` is 0..1, or null when the server had no Content-Length to divide.//@@ -567,11 +529,6 @@ export const setCivitaiAuth = (apiKey, options = {}) => request('/loras/auth/civ...options,});export const clearCivitaiAuth = (options = {}) => request('/loras/auth/civitai', { method: 'DELETE', ...options });-export const getLora = (filename) => request(`/loras/${encodeURIComponent(filename)}`);-export const patchLora = (filename, patch) => request(`/loras/${encodeURIComponent(filename)}`, {- method: 'PATCH',- body: JSON.stringify(patch),-});export const deleteLoraFull = (filename, options = {}) => request(`/loras/${encodeURIComponent(filename)}`, { method: 'DELETE', ...options });// Adapter-effect diagnostic (#4872) — measures whether a LoRA actually changes// anything before a long render commits to it. POST because it spawns the probediff --git a/client/src/services/apiLocalLlm.js b/client/src/services/apiLocalLlm.jsindex 9aaa101cfc..5a2a567e8c 100644--- a/client/src/services/apiLocalLlm.js+++ b/client/src/services/apiLocalLlm.js@@ -172,22 +172,18 @@ export const unloadLmStudioModel = (modelId, options) =>...options,});-export const testLocalLlmModel = (payload, options) =>- request('/local-llm/test', { method: 'POST', body: JSON.stringify(payload), ...options });-export const compareLocalLlmModels = (payload, options) =>request('/local-llm/compare', { method: 'POST', body: JSON.stringify(payload), ...options });-// Streaming variant of testLocalLlmModel. POSTs the same payload but reads the-// NDJSON response body so `onToken(delta, kind)` fires per chunk for live-// rendering — kind is 'content' or 'reasoning' so the caller can render a-// reasoning model's chain-of-thought on its own channel. Resolves with the-// terminal result object (same shape as-// testLocalLlmModel, including `error`/`text` for a timed-out partial). The-// caller passes `signal` to cancel — aborting rejects the read with AbortError,-// which the caller should swallow when `signal.aborted` (intentional cancel).-// Can't use the EventSource-based useSseProgress hook here: that's GET-only and-// this request carries a prompt body.+// Streaming playground test. POSTs the prompt payload and reads the NDJSON+// response body so `onToken(delta, kind)` fires per chunk for live rendering —+// kind is 'content' or 'reasoning' so the caller can render a reasoning model's+// chain-of-thought on its own channel. Resolves with the terminal result object+// (including `error`/`text` for a timed-out partial). The caller passes+// `signal` to cancel — aborting rejects the read with AbortError, which the+// caller should swallow when `signal.aborted` (intentional cancel). Can't use+// the EventSource-based useSseProgress hook here: that's GET-only and this+// request carries a prompt body.export async function streamLocalLlmTest(payload, { signal, onToken } = {}) {const response = await fetch(`${API_BASE}/local-llm/test/stream`, {method: 'POST',diff --git a/client/src/services/apiLoops.js b/client/src/services/apiLoops.jsindex 04bd19fbcb..8af68e0198 100644--- a/client/src/services/apiLoops.js+++ b/client/src/services/apiLoops.js@@ -2,10 +2,8 @@ import { request } from './apiCore.js';// Loopsexport const getLoops = () => request('/loops');-export const getLoop = (id) => request(`/loops/${id}`);export const getLoopProviders = () => request('/loops/providers');export const createLoop = (data) => request('/loops', { method: 'POST', body: JSON.stringify(data) });-export const updateLoop = (id, data) => request(`/loops/${id}`, { method: 'PUT', body: JSON.stringify(data) });export const stopLoop = (id) => request(`/loops/${id}/stop`, { method: 'POST' });export const resumeLoop = (id) => request(`/loops/${id}/resume`, { method: 'POST' });export const triggerLoop = (id) => request(`/loops/${id}/trigger`, { method: 'POST' });diff --git a/client/src/services/apiLoraTraining.js b/client/src/services/apiLoraTraining.jsindex 3bdc639896..9195b0372b 100644--- a/client/src/services/apiLoraTraining.js+++ b/client/src/services/apiLoraTraining.js@@ -112,8 +112,6 @@ export const listLoraTrainingRuns = (filters = {}) => {return request(`/lora-training/runs${qs ? `?${qs}` : ''}`);};-export const getLoraTrainingRun = (runId) => request(`/lora-training/runs/${runId}`);-export const cancelLoraTrainingRun = (runId) =>request(`/lora-training/runs/${runId}/cancel`, { method: 'POST' });@@ -139,9 +137,6 @@ export const promoteLoraTrainingCheckpoint = (runId, step, { silent = false } =method: 'POST', body: JSON.stringify({ step }), silent,});-export const deleteLoraTrainingRun = (runId, { deleteLora = false } = {}) =>- request(`/lora-training/runs/${runId}${deleteLora ? '?deleteLora=true' : ''}`, { method: 'DELETE' });-// ---- Character → trained-LoRA link ----export const getCharacterLoras = ({ entryId, ingredientId } = {}, { silent = false } = {}) => {diff --git a/client/src/services/apiMeatspace.js b/client/src/services/apiMeatspace.jsindex a7056955a2..51dc04e9b9 100644--- a/client/src/services/apiMeatspace.js+++ b/client/src/services/apiMeatspace.js@@ -27,7 +27,6 @@ export const deleteGenomeData = () => request('/meatspace/genome', { method: 'DEexport const getClinvarStatus = () => request('/meatspace/genome/clinvar/status');export const syncClinvar = () => request('/meatspace/genome/clinvar/sync', { method: 'POST' });export const scanClinvar = () => request('/meatspace/genome/clinvar/scan', { method: 'POST' });-export const deleteClinvar = () => request('/meatspace/genome/clinvar', { method: 'DELETE' });// MeatSpace - Epigenetic Lifestyle Trackingexport const getEpigeneticInterventions = () => request('/meatspace/genome/epigenetic');@@ -58,10 +57,6 @@ export const updateMeatspaceConfig = (data) => request('/meatspace/config', {method: 'PUT',body: JSON.stringify(data)});-export const updateMeatspaceLifestyle = (data) => request('/meatspace/lifestyle', {- method: 'PUT',- body: JSON.stringify(data)-});export const getMeatspaceBirthDate = () => request('/meatspace/birth-date');export const setMeatspaceBirthDate = (birthDate) => request('/meatspace/birth-date', {method: 'PUT',@@ -69,7 +64,6 @@ export const setMeatspaceBirthDate = (birthDate) => request('/meatspace/birth-da});export const getDeathClock = () => request('/meatspace/death-clock');export const getMeatspaceLoggingStats = (options = {}) => request('/meatspace/logging-stats', options);-export const getLEV = () => request('/meatspace/lev');export const getAlcoholSummary = () => request('/meatspace/alcohol');export const getDailyAlcohol = (from, to) => {const params = new URLSearchParams();@@ -135,30 +129,14 @@ export const removeCustomNicotineProduct = (index) => request(`/meatspace/nicotimethod: 'DELETE'});export const getBloodTests = () => request('/meatspace/blood');-export const addBloodTest = (data) => request('/meatspace/blood', {- method: 'POST',- body: JSON.stringify(data)-});export const getBodyHistory = () => request('/meatspace/body');-export const addBodyEntry = (data) => request('/meatspace/body', {- method: 'POST',- body: JSON.stringify(data)-});export const getBloodPressure = () => request('/meatspace/blood-pressure');export const addBloodPressure = (data) => request('/meatspace/blood-pressure', {method: 'POST',body: JSON.stringify(data)});export const getWorkouts = () => request('/meatspace/workouts');-export const addWorkout = (data) => request('/meatspace/workouts', {- method: 'POST',- body: JSON.stringify(data)-});export const getEpigeneticTests = () => request('/meatspace/epigenetic');-export const addEpigeneticTest = (data) => request('/meatspace/epigenetic', {- method: 'POST',- body: JSON.stringify(data)-});export const getEyeExams = () => request('/meatspace/eyes');export const addEyeExam = (data) => request('/meatspace/eyes', {method: 'POST',@@ -251,10 +229,6 @@ export const createMemoryItem = (data) => request('/meatspace/post/memory-items'method: 'POST',body: JSON.stringify(data)});-export const updateMemoryItem = (id, data) => request(`/meatspace/post/memory-items/${id}`, {- method: 'PUT',- body: JSON.stringify(data)-});export const deleteMemoryItem = (id) => request(`/meatspace/post/memory-items/${id}`, {method: 'DELETE'});@@ -269,10 +243,6 @@ export const attestMemoryMastery = (id, options = {}) => request(`/meatspace/pos});export const getMemoryMastery = (id) => request(`/meatspace/post/memory-items/${id}/mastery`);export const getChunkMastery = (id) => request(`/meatspace/post/memory-items/${id}/chunk-mastery`);-export const generateMemoryDrill = (data) => request('/meatspace/post/memory-drill', {- method: 'POST',- body: JSON.stringify(data)-});// MeatSpace - POST Training Logexport const submitTrainingEntry = (data, options = {}) => request('/meatspace/post/training', {@@ -286,7 +256,6 @@ export const submitTrainingRun = (data, options = {}) => request('/meatspace/pos...options});export const getTrainingStats = (days) => request(`/meatspace/post/training/stats${days != null ? `?days=${days}` : ''}`);-export const getTrainingEntries = (limit) => request(`/meatspace/post/training/entries${limit ? `?limit=${limit}` : ''}`);// MeatSpace - POST Morse Trainer progress (server-side Koch level, round history,// accuracy/WPM trends, per-character confusion matrix). Callers own their error@@ -312,13 +281,7 @@ export const getActivities = () => request('/meatspace/activities');export const addActivity = (data) => request('/meatspace/activities', {method: 'POST', body: JSON.stringify(data)});-export const updateActivity = (index, data) => request(`/meatspace/activities/${index}`, {- method: 'PUT', body: JSON.stringify(data)-});export const removeActivity = (index) => request(`/meatspace/activities/${index}`, { method: 'DELETE' });--// Life Events-export const getLifeEvents = () => request('/meatspace/life-events');export const addLifeEvent = (data) => request('/meatspace/life-events', {method: 'POST', body: JSON.stringify(data)});diff --git a/client/src/services/apiMedia.js b/client/src/services/apiMedia.jsindex 3aedf1cf81..e0748473e3 100644--- a/client/src/services/apiMedia.js+++ b/client/src/services/apiMedia.js@@ -8,19 +8,16 @@ import {} from '../utils/fileUpload.js';// Screenshots-export const uploadScreenshot = (base64Data, filename, mimeType) => request('/screenshots', {+const uploadScreenshot = (base64Data, filename, mimeType) => request('/screenshots', {method: 'POST',body: JSON.stringify({ data: base64Data, filename, mimeType })});// Attachments (generic file uploads for tasks)-export const uploadAttachment = (base64Data, filename) => request('/attachments', {+const uploadAttachment = (base64Data, filename) => request('/attachments', {method: 'POST',body: JSON.stringify({ data: base64Data, filename })});-export const getAttachment = (filename) => request(`/attachments/${encodeURIComponent(filename)}`);-export const deleteAttachment = (filename) => request(`/attachments/${encodeURIComponent(filename)}`, { method: 'DELETE' });-export const listAttachments = () => request('/attachments');/*** Upload a single screenshot file@@ -31,7 +28,7 @@ export const listAttachments = () => request('/attachments');* @param {Function} options.onError - Callback for errors* @returns {Promise<Object|null>} Uploaded file info or null on failure*/-export async function uploadScreenshotFile(file, options = {}) {+async function uploadScreenshotFile(file, options = {}) {const { onSuccess, onError } = options;return new Promise((resolve) => {@@ -188,7 +185,7 @@ export async function processAttachmentUploads(files, options = {}) {* @param {Function} options.onError - Callback for errors* @returns {Promise<Object|null>} Uploaded file info or null on failure*/-export async function uploadAttachmentFile(file, options = {}) {+async function uploadAttachmentFile(file, options = {}) {const { onSuccess, onError } = options;return new Promise((resolve) => {diff --git a/client/src/services/apiMemory.js b/client/src/services/apiMemory.jsindex 51af7f346b..51c838fdc1 100644--- a/client/src/services/apiMemory.js+++ b/client/src/services/apiMemory.js@@ -16,10 +16,6 @@ export const getMemories = (options = {}) => {return request(`/memory?${params}`);};export const getMemory = (id) => request(`/memory/${id}`);-export const createMemory = (data) => request('/memory', {- method: 'POST',- body: JSON.stringify(data)-});export const updateMemory = (id, data, options = {}) => request(`/memory/${id}`, {method: 'PUT',body: JSON.stringify(data),@@ -30,27 +26,8 @@ export const searchMemories = (query, options = {}) => request('/memory/search',method: 'POST',body: JSON.stringify({ query, ...options })});-export const getMemoryCategories = () => request('/memory/categories');-export const getMemoryTags = () => request('/memory/tags');-export const getMemoryTimeline = (options = {}) => {- const params = new URLSearchParams();- if (options.startDate) params.set('startDate', options.startDate);- if (options.endDate) params.set('endDate', options.endDate);- if (options.types) params.set('types', options.types.join(','));- if (options.limit) params.set('limit', options.limit);- return request(`/memory/timeline?${params}`);-};export const getMemoryGraph = (options = {}) => request('/memory/graph', options);export const getMemoryStats = () => request('/memory/stats');-export const getRelatedMemories = (id, limit = 10) => request(`/memory/${id}/related?limit=${limit}`);-export const linkMemories = (sourceId, targetId) => request('/memory/link', {- method: 'POST',- body: JSON.stringify({ sourceId, targetId })-});-export const consolidateMemories = (options = {}) => request('/memory/consolidate', {- method: 'POST',- body: JSON.stringify(options)-});export const getEmbeddingStatus = () => request('/memory/embeddings/status');export const getMemoryBackendStatus = () => request('/memory/backend/status', { silent: true });export const approveMemory = (id, options = {}) => request(`/memory/${id}/approve`, { method: 'POST', ...options });diff --git a/client/src/services/apiMessages.js b/client/src/services/apiMessages.jsindex fe3094b542..1c43219fb4 100644--- a/client/src/services/apiMessages.js+++ b/client/src/services/apiMessages.js@@ -6,7 +6,6 @@ export const createMessageAccount = (data, options = {}) => request('/messages/aexport const updateMessageAccount = (id, data, options = {}) => request(`/messages/accounts/${id}`, { method: 'PUT', body: JSON.stringify(data), ...options });export const deleteMessageAccount = (id) => request(`/messages/accounts/${id}`, { method: 'DELETE' });export const syncMessageAccount = (accountId, mode = 'unread', options = {}) => request(`/messages/sync/${accountId}`, { method: 'POST', body: JSON.stringify({ mode }), ...options });-export const getMessageSyncStatus = (accountId) => request(`/messages/sync/${accountId}/status`);export const evaluateMessages = (data = {}, options = {}) => request('/messages/evaluate', { method: 'POST', body: JSON.stringify(data), ...options });export const getMessageInbox = (params = {}) => {const qs = new URLSearchParams();@@ -72,8 +71,6 @@ export const purgeImessageConversation = (chatKey, options = {}) =>export const deleteImessageEvent = (id, options = {}) =>request(`/imessage/events/${encodeURIComponent(id)}`, { method: 'DELETE', ...options });export const getImessageBlocklist = (options = {}) => request('/imessage/blocklist', options);-export const setImessageBlocklist = (handles, options = {}) =>- request('/imessage/blocklist', { method: 'PUT', body: JSON.stringify({ handles }), ...options });export const addImessageBlocklist = (handles, { purgeExisting = false, ...options } = {}) =>request('/imessage/blocklist', {method: 'POST',diff --git a/client/src/services/apiMortalLoom.js b/client/src/services/apiMortalLoom.jsindex c5d0d8b38e..010a7dc17b 100644--- a/client/src/services/apiMortalLoom.js+++ b/client/src/services/apiMortalLoom.js@@ -2,4 +2,3 @@ import { request } from './apiCore.js';export const getMortalLoomStatus = () => request('/mortalloom/status');export const importMortalLoom = (options) => request('/mortalloom/import', { method: 'POST', ...options });-export const getMortalLoomAppStoreUrl = () => request('/mortalloom/app-store');diff --git a/client/src/services/apiMusic.js b/client/src/services/apiMusic.jsindex 85ffe12140..cbebbf3489 100644--- a/client/src/services/apiMusic.js+++ b/client/src/services/apiMusic.js@@ -46,9 +46,6 @@ export const generateLyrics = (body, requestOptions = {}) => request('/music/lyr...requestOptions,});-// The merged shipped+user model list for one engine → { models }.-export const listEngineModels = (engine, options = {}) => request(`/music/models/${encodeURIComponent(engine)}`, options);-// De-register a user-installed model (id is the HF repo id) → { removed }.export const removeAudioModel = (engine, id, requestOptions = {}) =>request(`/music/models/${encodeURIComponent(engine)}/${id.split('/').map(encodeURIComponent).join('/')}`, {diff --git a/client/src/services/apiMusicVideo.js b/client/src/services/apiMusicVideo.jsindex a2c99c95a3..ec217b265a 100644--- a/client/src/services/apiMusicVideo.js+++ b/client/src/services/apiMusicVideo.js@@ -5,7 +5,6 @@ import { request } from './apiCore.js';// request()'s auto-toast with `{ silent: true }` when it owns its own error UI.export const listMusicVideoProjects = (options = {}) => request('/music-video', options);-export const getMusicVideoProject = (id, options = {}) => request(`/music-video/${encodeURIComponent(id)}`, options);export const createMusicVideoProject = (data, options = {}) => request('/music-video', {method: 'POST', body: JSON.stringify(data), ...options,});diff --git a/client/src/services/apiNotes.js b/client/src/services/apiNotes.jsindex 21be212a61..ae4a20c738 100644--- a/client/src/services/apiNotes.js+++ b/client/src/services/apiNotes.js@@ -7,11 +7,6 @@ export const addNotesVault = (data) => request('/notes/vaults', {method: 'POST',body: JSON.stringify(data)});-export const updateNotesVault = (id, data) => request(`/notes/vaults/${id}`, {- method: 'PUT',- body: JSON.stringify(data)-});-export const deleteNotesVault = (id) => request(`/notes/vaults/${id}`, { method: 'DELETE' });// Notes - Scanning & Readingexport const scanNotesVault = (id, options = {}) => {diff --git a/client/src/services/apiOpenClaw.js b/client/src/services/apiOpenClaw.jsindex 502764cdd3..d24956babb 100644--- a/client/src/services/apiOpenClaw.js+++ b/client/src/services/apiOpenClaw.js@@ -9,12 +9,6 @@ export const getOpenClawMessages = (sessionId, options = {}) => {return request(`/openclaw/sessions/${encodeURIComponent(sessionId)}/messages${query ? `?${query}` : ''}`, { silent: true });};-export const sendOpenClawMessage = (sessionId, message, context, attachments) => request(`/openclaw/sessions/${encodeURIComponent(sessionId)}/messages`, {- method: 'POST',- body: JSON.stringify({ message, context, attachments }),- silent: true-});-export async function streamOpenClawMessage(sessionId, { message, context, attachments, signal, onEvent }) {const response = await fetch(`${API_BASE}/openclaw/sessions/${encodeURIComponent(sessionId)}/messages/stream`, {method: 'POST',diff --git a/client/src/services/apiOpenWorld.js b/client/src/services/apiOpenWorld.jsindex b8c21ed09a..0128a1596f 100644--- a/client/src/services/apiOpenWorld.js+++ b/client/src/services/apiOpenWorld.js@@ -14,14 +14,6 @@ export const getOpenWorldSnapshots = (options = {}) => {return request(`/openworld/snapshots${qs ? `?${qs}` : ''}`, rest);};-// GET /api/openworld/snapshots/config — effective capture config + next run time.-export const getOpenWorldSnapshotConfig = (options = {}) =>- request('/openworld/snapshots/config', options);--// POST /api/openworld/snapshots/capture — capture a frame on demand.-export const captureOpenWorldSnapshot = (options = {}) =>- request('/openworld/snapshots/capture', { method: 'POST', ...options });-// GET /api/openworld/introspection — DB tables + data/ domain sizes for the Data// Harbor district. Server-cached; `db: null` means the database is unreachable.export const getOpenWorldIntrospection = (options = {}) =>diff --git a/client/src/services/apiPeerSync.js b/client/src/services/apiPeerSync.jsindex c5c62b26b4..310328030e 100644--- a/client/src/services/apiPeerSync.js+++ b/client/src/services/apiPeerSync.js@@ -16,10 +16,6 @@import { request } from './apiCore.js';-export const PEER_SUBSCRIBABLE_KINDS = Object.freeze([- 'universe', 'series', 'mediaCollection', 'fableLoom',-]);-export const listPeerSubscriptions = (filter = {}, options) => {const qs = new URLSearchParams();if (filter.peerId) qs.set('peerId', filter.peerId);@@ -95,17 +91,6 @@ export const pullRecordFromPeer = (peerId, recordKind, recordId, options = {}) =...options,});-/**- * Trigger a full sync-now for all subscribed records to a peer.- * Same silent-capable pattern as `syncRecordToPeer`.- */-export const syncNowForPeer = (peerId, options = {}) =>- request('/peer-sync/sync-now', {- method: 'POST',- body: JSON.stringify({ peerId }),- ...options,- });-// The server validates each /pull-metadata request at ≤5000 filenames// (peerPullMetadataSchema). Chunk larger lists so big libraries don't hard-400.const PULL_METADATA_BATCH = 5000;diff --git a/client/src/services/apiPeerSync.test.js b/client/src/services/apiPeerSync.test.jsindex 20027260af..b50d0459f0 100644--- a/client/src/services/apiPeerSync.test.js+++ b/client/src/services/apiPeerSync.test.js@@ -8,7 +8,6 @@ vi.mock('./apiCore.js', () => ({let request;let fetchSyncIntegrity;let syncRecordToPeer;-let syncNowForPeer;let pullMissingMetadata;let pullRecordFromPeer;@@ -18,7 +17,6 @@ beforeEach(async () => {({fetchSyncIntegrity,syncRecordToPeer,- syncNowForPeer,pullMissingMetadata,pullRecordFromPeer,} = await import('./apiPeerSync.js'));@@ -67,22 +65,6 @@ describe('syncRecordToPeer', () => {});});-describe('syncNowForPeer', () => {- it('calls POST /peer-sync/sync-now with peerId in body', async () => {- await syncNowForPeer('peer-c');- expect(request).toHaveBeenCalledWith('/peer-sync/sync-now', {- method: 'POST',- body: JSON.stringify({ peerId: 'peer-c' }),- });- });-- it('spreads caller options', async () => {- await syncNowForPeer('peer-c', { silent: true });- const [, opts] = request.mock.calls[0];- expect(opts.silent).toBe(true);- });-});-describe('pullRecordFromPeer', () => {it('POSTs /peer-sync/pull-record with the record tuple', async () => {await pullRecordFromPeer('peer-a', 'mediaCollection', 'uc-7', { silent: true });diff --git a/client/src/services/apiPersonalities.js b/client/src/services/apiPersonalities.jsindex b17982da54..a268c4562e 100644--- a/client/src/services/apiPersonalities.js+++ b/client/src/services/apiPersonalities.js@@ -14,7 +14,6 @@ export const updateAgentPersonality = (id, data) => request(`/agents/personalitimethod: 'PUT',body: JSON.stringify(data)});-export const deleteAgentPersonality = (id) => request(`/agents/personalities/${id}`, { method: 'DELETE' });export const toggleAgentPersonality = (id, enabled) => request(`/agents/personalities/${id}/toggle`, {method: 'POST',body: JSON.stringify({ enabled })diff --git a/client/src/services/apiPipeline.js b/client/src/services/apiPipeline.jsindex aa9235f227..2dcba1f467 100644--- a/client/src/services/apiPipeline.js+++ b/client/src/services/apiPipeline.js@@ -8,9 +8,9 @@ import { buildFormData } from './apiImageVideo.js';// between Prose and Comic Pages, but it's NOT in server TEXT_STAGE_IDS — so// auto-run text chain skips it and POST /stages/nouns/generate would 400.export const PIPELINE_TEXT_STAGES = Object.freeze(['idea', 'prose', 'comicScript', 'teleplay']);-export const PIPELINE_VISUAL_STAGES = Object.freeze(['comicPages', 'storyboards', 'episodeVideo']);-export const PIPELINE_AUDIO_STAGES = Object.freeze(['audio']);-export const PIPELINE_UI_STAGES = Object.freeze(['nouns']);+const PIPELINE_VISUAL_STAGES = Object.freeze(['comicPages', 'storyboards', 'episodeVideo']);+const PIPELINE_AUDIO_STAGES = Object.freeze(['audio']);+const PIPELINE_UI_STAGES = Object.freeze(['nouns']);export const PIPELINE_STAGES = Object.freeze([...PIPELINE_TEXT_STAGES, ...PIPELINE_VISUAL_STAGES, ...PIPELINE_AUDIO_STAGES, ...PIPELINE_UI_STAGES,]);@@ -48,8 +48,6 @@ export const PIPELINE_DEFAULT_FORWARD_SOURCE = Object.freeze({teleplay: ['prose'],});-export const PIPELINE_TARGET_FORMATS = Object.freeze(['comic', 'tv', 'comic+tv']);-export const PIPELINE_STAGE_STATUS_LABEL = Object.freeze({empty: 'Not started',generating: 'Generating…',@@ -133,7 +131,6 @@ export const discoverSeriesVoice = (id, opts = {}, requestOptions = {}) =>// Mirror server caps in `server/services/pipeline/series.js` — bump both sides.export const SERIES_TITLE_LOGO_MAX = 2000;-export const SERIES_AUTHOR_MAX = 120;// ---- Issues ----export const listPipelineIssues = (seriesId, options = {}) =>@@ -426,10 +423,6 @@ export const generatePipelineSceneImagePrompts = (issueId, sceneIndex, opts = {}...options,});-// ---- Seasons (Phase 2 of Story Arc Planning) -----export const listPipelineSeasons = (seriesId) =>- request(`/pipeline/series/${encodeURIComponent(seriesId)}/seasons`);-export const createPipelineSeason = (seriesId, data, options = {}) =>request(`/pipeline/series/${encodeURIComponent(seriesId)}/seasons`, {method: 'POST',@@ -637,25 +630,6 @@ export const reformatPipelineManuscriptText = (seriesId, { stageId, content, pro...options,});-// ---- Adversarial cuts (#2168) -----// Preview cuts — dry-run that returns before/after diffs without applying.-// Returns { preview: [{ issueNumber, before, after, applied, refused, refusedDetails }], totalApplied, totalRefused }.-export const previewPipelineManuscriptCuts = (seriesId, { commentIds, allowTypes, safeTypesOnly } = {}, options = {}) =>- request(`/pipeline/series/${encodeURIComponent(seriesId)}/manuscript/cuts/preview`, {- method: 'POST',- body: JSON.stringify({ commentIds, allowTypes, safeTypesOnly }),- ...options,- });--// Apply cuts — writes through the serialized stage-write path with snapshots.-// Returns { applied, refused, sections, refusedDetails, acceptedCount }.-export const applyPipelineManuscriptCuts = (seriesId, { commentIds, allowTypes, safeTypesOnly } = {}, options = {}) =>- request(`/pipeline/series/${encodeURIComponent(seriesId)}/manuscript/cuts/apply`, {- method: 'POST',- body: JSON.stringify({ commentIds, allowTypes, safeTypesOnly }),- ...options,- });-// ---- Volume beat-sheet bulk generator ----// Sequential idea-stage run across every issue in a volume. `mode` is// 'skip-existing' (default) or 'regenerate-all'. Returns@@ -999,13 +973,6 @@ export const getPipelineAutopilotStatus = (seriesId, options = {}) =>export const getPipelineAutopilotModelMetrics = (seriesId, options = {}) =>request(`/pipeline/series/${encodeURIComponent(seriesId)}/autopilot/model-metrics`, options);-export const recordPipelineAutopilotModelOutcome = (seriesId, outcome, options = {}) =>- request(`/pipeline/series/${encodeURIComponent(seriesId)}/autopilot/model-outcomes`, {- method: 'POST',- body: JSON.stringify(outcome),- ...options,- });-export const pipelineAutopilotSseUrl = (seriesId) =>`/api/pipeline/series/${encodeURIComponent(seriesId)}/autopilot/progress`;@@ -1057,21 +1024,9 @@ export const startPipelineSeriesFix = (seriesId, opts = {}, options = {}) =>export const getPipelineSeriesFixStatus = (seriesId, options = {}) =>request(`/pipeline/series/${encodeURIComponent(seriesId)}/review/fix/status`, options);-export const cancelPipelineSeriesFix = (seriesId, options = {}) =>- request(`/pipeline/series/${encodeURIComponent(seriesId)}/review/fix/cancel`, {- method: 'POST',- ...options,- });-export const pipelineSeriesFixSseUrl = (seriesId) =>`/api/pipeline/series/${encodeURIComponent(seriesId)}/review/fix/progress`;-// ---- Canon descriptive-integrity (production readiness) -----// Read-only: which canon nouns appear where they'd be drawn but lack a-// description (blocking visual production).-export const getPipelineIssueCanonReadiness = (issueId, options = {}) =>- request(`/pipeline/issues/${encodeURIComponent(issueId)}/canon-readiness`, options);-export const getPipelineSeriesCanonReadiness = (seriesId, options = {}) =>request(`/pipeline/series/${encodeURIComponent(seriesId)}/canon-readiness`, options);diff --git a/client/src/services/apiPorts.js b/client/src/services/apiPorts.jsindex 2da72145fa..7960a2cf9c 100644--- a/client/src/services/apiPorts.js+++ b/client/src/services/apiPorts.js@@ -1,33 +1 @@-import { request } from './apiCore.js';--// Ports-export const scanPorts = () => request('/ports/scan');-export const checkPorts = (ports) => request('/ports/check', {- method: 'POST',- body: JSON.stringify({ ports })-});-export const allocatePorts = (count = 1) => request('/ports/allocate', {- method: 'POST',- body: JSON.stringify({ count })-});--// Detect-export const detectRepo = (path) => request('/detect/repo', {- method: 'POST',- body: JSON.stringify({ path })-});--export const detectPort = (port) => request('/detect/port', {- method: 'POST',- body: JSON.stringify({ port })-});--export const detectPm2 = (name) => request('/detect/pm2', {- method: 'POST',- body: JSON.stringify({ name })-});--export const detectWithAi = (path, providerId) => request('/detect/ai', {- method: 'POST',- body: JSON.stringify({ path, providerId })-});+// No current UI callers for port scan/detect. Kept so the api.js catalog stays complete.diff --git a/client/src/services/apiPrivacy.js b/client/src/services/apiPrivacy.jsindex 288be769b9..0a2d1b184e 100644--- a/client/src/services/apiPrivacy.js+++ b/client/src/services/apiPrivacy.js@@ -53,7 +53,6 @@ export const getPrivacyStatus = (options) => request(...scoped('/privacy/status'// ── Vault records ───────────────────────────────────────────────────────────export const getVaultRecords = (type, options) =>request(...scoped('/privacy/vault', options, { type }));-export const getVaultRecord = (id, options) => request(`/privacy/vault/${id}`, options);export const createVaultRecord = (data, options) => request('/privacy/vault', {method: 'POST',body: JSON.stringify(data),@@ -77,7 +76,6 @@ export const revealVaultRecord = (id, options) => request(`/privacy/vault/${id}/// ── Trusted Organizations registry ──────────────────────────────────────────export const getPrivacyOrgs = (filters = {}, options) =>request(...scoped('/privacy/orgs', options, filters));-export const getPrivacyOrg = (id, options) => request(`/privacy/orgs/${id}`, options);export const createPrivacyOrg = (data, options) => request('/privacy/orgs', {method: 'POST',body: JSON.stringify(data),diff --git a/client/src/services/apiProviders.js b/client/src/services/apiProviders.jsindex 8f3fffc9ad..2098fb13c3 100644--- a/client/src/services/apiProviders.js+++ b/client/src/services/apiProviders.js@@ -9,7 +9,6 @@ export const setActiveProvider = (id) => request('/providers/active', {method: 'PUT',body: JSON.stringify({ id })});-export const getProvider = (id) => request(`/providers/${id}`);export const createProvider = (data) => request('/providers', {method: 'POST',body: JSON.stringify(data)@@ -45,7 +44,6 @@ export const serveProviderModel = (id, options) => request(// Provider status (usage limits, availability)export const getProviderStatuses = () => request('/providers/status');-export const getProviderStatus = (id) => request(`/providers/${id}/status`);export const recoverProvider = (id, options) => request(`/providers/${id}/status/recover`, { method: 'POST', ...options });// Codex / ChatGPT subscription account (#5589). The Codex app-server owns thediff --git a/client/src/services/apiRuns.js b/client/src/services/apiRuns.jsindex a5137b39ef..5099692deb 100644--- a/client/src/services/apiRuns.js+++ b/client/src/services/apiRuns.js@@ -8,7 +8,6 @@ export const createRun = (data, options) => request('/runs', {body: JSON.stringify(data),...options});-export const getRun = (id) => request(`/runs/${id}`);// These endpoints deliberately return text/plain. A model response can itself// be valid JSON; forcing the shared request helper's default JSON parser turns// it into an object that React cannot render inside <pre>.diff --git a/client/src/services/apiScaffold.js b/client/src/services/apiScaffold.jsindex 9e7c2a9fdc..1faacb4e9f 100644--- a/client/src/services/apiScaffold.js+++ b/client/src/services/apiScaffold.js@@ -8,11 +8,6 @@ export const getDirectories = (path = null) => {return request(`/scaffold/directories${params}`);};-export const scaffoldApp = (data) => request('/scaffold', {- method: 'POST',- body: JSON.stringify(data)-});-export const createFromTemplate = (data) => request('/scaffold/templates/create', {method: 'POST',body: JSON.stringify(data)diff --git a/client/src/services/apiSchedules.js b/client/src/services/apiSchedules.jsindex d632306108..c908097817 100644--- a/client/src/services/apiSchedules.js+++ b/client/src/services/apiSchedules.js@@ -8,16 +8,11 @@ export const getAutomationSchedules = (agentId = null, accountId = null, optionsconst query = params.toString();return request(`/agents/schedules${query ? `?${query}` : ''}`, options);};-export const getAutomationSchedule = (id) => request(`/agents/schedules/${id}`);export const getScheduleStats = (options = {}) => request('/agents/schedules/stats', options);export const createAutomationSchedule = (data) => request('/agents/schedules', {method: 'POST',body: JSON.stringify(data)});-export const updateAutomationSchedule = (id, data) => request(`/agents/schedules/${id}`, {- method: 'PUT',- body: JSON.stringify(data)-});export const deleteAutomationSchedule = (id) => request(`/agents/schedules/${id}`, { method: 'DELETE' });export const toggleAutomationSchedule = (id, enabled) => request(`/agents/schedules/${id}/toggle`, {method: 'POST',diff --git a/client/src/services/apiSharing.js b/client/src/services/apiSharing.jsindex a8bc314796..8c600a791f 100644--- a/client/src/services/apiSharing.js+++ b/client/src/services/apiSharing.js@@ -1,7 +1,5 @@import { request } from './apiCore.js';-export const BUCKET_MODES = Object.freeze(['auto-merge', 'inbox']);-// ---- Buckets ----export const listShareBuckets = (options) => request('/sharing/buckets', options);diff --git a/client/src/services/apiStackerNews.js b/client/src/services/apiStackerNews.jsindex 7f0f144dd6..baa3bee88d 100644--- a/client/src/services/apiStackerNews.js+++ b/client/src/services/apiStackerNews.js@@ -1,10 +1,8 @@import { request } from './apiCore.js';export const getStackerNewsAccounts = (options = {}) => request('/stacker-news/accounts', options);-export const getStackerNewsAccount = (id, options = {}) => request(`/stacker-news/accounts/${id}`, options);export const createStackerNewsAccount = (data, options = {}) => request('/stacker-news/accounts', { method: 'POST', body: JSON.stringify(data), ...options });export const updateStackerNewsAccount = (id, data, options = {}) => request(`/stacker-news/accounts/${id}`, { method: 'PATCH', body: JSON.stringify(data), ...options });-export const deleteStackerNewsAccount = (id, options = {}) => request(`/stacker-news/accounts/${id}`, { method: 'DELETE', ...options });// `transport` forces which read source answers ('api' | 'browser'); omit it to// use the account's configured read transport.export const verifyStackerNewsAccount = (id, transport = null, options = {}) => request(`/stacker-news/accounts/${id}/verify`, { method: 'POST', body: JSON.stringify(transport ? { transport } : {}), ...options });@@ -17,9 +15,7 @@ export const deleteStackerNewsTerritory = (id, options = {}) => request(`/stackeexport const getStackerNewsItems = (accountId, options = {}) => request(`/stacker-news/accounts/${accountId}/items`, options);export const getStackerNewsActions = (accountId, options = {}) => request(`/stacker-news/accounts/${accountId}/actions`, options);export const analyzeStackerNewsItem = (id, options = {}) => request(`/stacker-news/items/${id}/analyze`, { method: 'POST', ...options });-export const getStackerNewsAnalyses = (id, options = {}) => request(`/stacker-news/items/${id}/analyses`, options);export const addStackerNewsAnalysisFeedback = (id, feedback, options = {}) => request(`/stacker-news/analyses/${id}/feedback`, { method: 'POST', body: JSON.stringify({ feedback }), ...options });export const createStackerNewsAction = (data, options = {}) => request('/stacker-news/actions', { method: 'POST', body: JSON.stringify(data), ...options });export const reviewStackerNewsAction = (id, data, options = {}) => request(`/stacker-news/actions/${id}/review`, { method: 'POST', body: JSON.stringify(data), ...options });export const executeStackerNewsAction = (id, options = {}) => request(`/stacker-news/actions/${id}/execute`, { method: 'POST', ...options });-export const getStackerNewsActionEvents = (id, options = {}) => request(`/stacker-news/actions/${id}/events`, options);diff --git a/client/src/services/apiStoryBuilder.js b/client/src/services/apiStoryBuilder.jsindex 95f520964e..aad1caa5ca 100644--- a/client/src/services/apiStoryBuilder.js+++ b/client/src/services/apiStoryBuilder.js@@ -25,11 +25,6 @@ export const updateStorySession = (id, patch, options = {}) => request(`/story-b...options,});-export const deleteStorySession = (id, options = {}) => request(`/story-builder/${id}`, {- method: 'DELETE',- ...options,-});-// Cross-machine resume (#730). setStorySessionSync toggles whether a session// participates in peer sync; reconcileStorySession re-baselines a synced// session's staleness baseline to the current machine's live records (rejecteddiff --git a/client/src/services/apiSyncReview.js b/client/src/services/apiSyncReview.jsindex 30324fda43..22644b3cb5 100644--- a/client/src/services/apiSyncReview.js+++ b/client/src/services/apiSyncReview.js@@ -40,9 +40,6 @@ export const aiResolveSeriesMerge = (body, options) =>export const listConflicts = (status, options) =>request(`/conflict-journal${status ? `?status=${encodeURIComponent(status)}` : ''}`, options);-export const getConflict = (id, options) =>- request(`/conflict-journal/${encodeURIComponent(id)}`, options);-// body: { action: 'restore-all'|'merge-fields'|'discard', fields?: string[] }export const resolveConflict = (id, body, options) =>request(`/conflict-journal/${encodeURIComponent(id)}/resolve`, { method: 'POST', body: JSON.stringify(body), ...options });diff --git a/client/src/services/apiSystem.js b/client/src/services/apiSystem.jsindex 7bac2bf517..aa4e5bee94 100644--- a/client/src/services/apiSystem.js+++ b/client/src/services/apiSystem.js@@ -25,7 +25,6 @@ export const getCharacter = ({ skills = true, metrics = true, ...options } = {})// Healthexport const checkHealth = (options) => request('/system/health', options);export const getSystemHealth = (options) => request('/system/health/details', options);-export const getSystemCapabilities = (options) => request('/system/capabilities', options);// Its own route, not a field on health/details — peers scrape that payload and// persist it verbatim, and the build stamp must stay machine-local (#4694).export const getSystemBuild = (options) => request('/system/build', options);@@ -94,24 +93,10 @@ export const updateEidoverseWorldConfig = (payload, options = {}) => request('/ebody: JSON.stringify(payload),...options,});-export const ensureEidoverseWorldPresence = (options = {}) => request('/eidoverse/world/presence', {- method: 'POST',- ...options,-});export const projectEidoverseWorld = (options = {}) => request('/eidoverse/world/project', {method: 'POST',...options,});-export const augmentEidoverseWorld = (operations, options = {}) => request('/eidoverse/world/augment', {- method: 'POST',- body: JSON.stringify({ operations }),- ...options,-});-export const sayInEidoverseWorld = (text, options = {}) => request('/eidoverse/world/say', {- method: 'POST',- body: JSON.stringify({ text }),- ...options,-});export const updateSettings = (data, options) => request('/settings', {method: 'PUT',body: JSON.stringify(data),@@ -126,7 +111,6 @@ export const getMediaShareCandidates = (options) => request('/settings/media-sha// API Access — the OpenAPI 3.0.3 spec for the public API surface (built from the// exposed entries in apiAccess settings). Rendered by the API Access settings tab.export const getOpenApiSpec = (options) => request('/api-docs/openapi.json', options);-export const getInternalOpenApiSpec = (options) => request('/api-docs/internal/openapi.json', options);export const getApiCatalog = (options) => request('/api-docs/catalog.json', options);export const getSocketEventCatalog = (options) => request('/api-docs/events.json', options);export const updateAiAssignment = (id, data, options) => request(`/settings/ai-assignments/${encodeURIComponent(id)}`, {@@ -179,8 +163,6 @@ export const getUsage = (params = {}) => {).toString();return request(`/usage${qs ? `?${qs}` : ''}`);};-export const getUsageRaw = () => request('/usage/raw');-export const resetUsage = () => request('/usage', { method: 'DELETE' });export const getUsageBackfillStatus = (options = {}) => request('/usage/backfill', options);// Monthly plan prices per provider family, used to compare subscription spend// against the report's estimated API cost. `costs` is a partial patch: an@@ -190,7 +172,6 @@ export const updateSubscriptionCosts = (costs, options = {}) =>request('/usage/subscriptions', { method: 'PUT', body: JSON.stringify({ costs }), ...options });export const startUsageBackfill = (options = {}) => request('/usage/backfill', { method: 'POST', ...options });-// Subscription-quota status for every enabled provider family (claude, codex,// agy, grok). Callers own their inline error UI — silent by default. `family`// narrows the read to a single card (the usage page's per-card Refresh) so one@@ -288,7 +269,6 @@ export const getNotifications = (options = {}) => {return request(`/notifications?${params}`);};export const getNotificationCount = () => request('/notifications/count');-export const getNotificationCounts = () => request('/notifications/counts');export const markNotificationRead = (id) => request(`/notifications/${id}/read`, { method: 'POST' });export const markAllNotificationsRead = () => request('/notifications/read-all', { method: 'POST' });export const deleteNotification = (id) => request(`/notifications/${id}`, { method: 'DELETE' });@@ -317,7 +297,6 @@ export const updateTelegramMethod = (method, options) => request('/telegram/methbody: JSON.stringify({ method }),...options});-export const reloadTelegramBridge = () => request('/telegram/bridge/reload', { method: 'POST' });// Browser - CDP browser managementexport const getBrowserStatus = () => request('/browser');@@ -330,12 +309,7 @@ export const updateBrowserConfig = (config, options = {}) => request('/browser/cexport const launchBrowser = (options = {}) => request('/browser/launch', { method: 'POST', ...options });export const stopBrowser = (options = {}) => request('/browser/stop', { method: 'POST', ...options });export const restartBrowser = (options = {}) => request('/browser/restart', { method: 'POST', ...options });-export const getBrowserHealth = () => request('/browser/health');-export const getBrowserProcess = () => request('/browser/process');-export const getBrowserPages = () => request('/browser/pages');-export const getBrowserVersion = () => request('/browser/version');export const getBrowserLogs = (lines = 50) => request(`/browser/logs?lines=${lines}`);-export const getBrowserDownloads = () => request('/browser/downloads');export const deleteBrowserDownload = (name, options = {}) =>request(`/browser/downloads/${encodeURIComponent(name)}`, { method: 'DELETE', ...options });export const browserDownloadUrl = (name) =>@@ -360,7 +334,6 @@ export const reciprocatePeer = (id, options) => request(`/instances/peers/${id}/export const probePeer = (id) => request(`/instances/peers/${id}/probe`, { method: 'POST' });export const syncPeer = (id, options) => request(`/instances/peers/${id}/sync`, { method: 'POST', ...options });export const getPeerFullSyncCoverage = (id, options) => request(`/instances/peers/${id}/full-sync-coverage`, options);-export const queryPeer = (id, path) => request(`/instances/peers/${id}/query?path=${encodeURIComponent(path)}`);export const getTailnetInfo = () => request('/instances/tailnet-suffix');export const provisionTailnetCert = () => request('/instances/provision-cert', { method: 'POST' });@@ -406,7 +379,6 @@ export const uploadGalleryImage = (base64Data, options = {}) => request('/image-// Tools Registryexport const getToolsList = (options) => request('/tools', options);-export const getEnabledTools = () => request('/tools/enabled');export const registerTool = (data, options) => request('/tools', {method: 'POST',body: JSON.stringify(data),@@ -417,7 +389,6 @@ export const updateTool = (id, data, options) => request(`/tools/${id}`, {body: JSON.stringify(data),...options});-export const deleteTool = (id) => request(`/tools/${id}`, { method: 'DELETE' });// DataDogexport const getDatadogInstances = () => request('/datadog/instances');@@ -456,30 +427,6 @@ export const generateJiraReport = (appId) => request('/jira/reports/generate', {body: JSON.stringify(appId ? { appId } : {})});export const getJiraReport = (appId, date) => request(`/jira/reports/${appId}/${date}`);-export const getLatestJiraReport = (appId) => request(`/jira/reports/${appId}/latest`);--// PM2 Standardization-export const analyzeStandardization = (repoPath, providerId) => request('/standardize/analyze', {- method: 'POST',- body: JSON.stringify({ repoPath, providerId })-});-export const analyzeStandardizationByApp = (appId, providerId) => request('/standardize/analyze', {- method: 'POST',- body: JSON.stringify({ appId, providerId })-});-export const applyStandardization = (repoPath, plan) => request('/standardize/apply', {- method: 'POST',- body: JSON.stringify({ repoPath, plan })-});-export const applyStandardizationByApp = (appId, plan) => request('/standardize/apply', {- method: 'POST',- body: JSON.stringify({ appId, plan })-});-export const getStandardizeTemplate = () => request('/standardize/template');-export const createGitBackup = (repoPath) => request('/standardize/backup', {- method: 'POST',- body: JSON.stringify({ repoPath })-});// Insightsexport const getInsightThemes = () => request('/insights/themes');@@ -515,12 +462,3 @@ export const updateGoalScorecardSettings = (partial) => request('/insights/goal-method: 'PUT',body: JSON.stringify(partial ?? {})});--// Media - Server media devices-export const getMediaDevices = () => request('/media/devices');-export const getMediaStatus = () => request('/media/status');-export const startMediaStream = (videoDeviceId, audioDeviceId, video = true, audio = true) => request('/media/start', {- method: 'POST',- body: JSON.stringify({ videoDeviceId, audioDeviceId, video, audio })-});-export const stopMediaStream = () => request('/media/stop', { method: 'POST' });diff --git a/client/src/services/apiTimeline.js b/client/src/services/apiTimeline.jsindex cd3f64e03b..d151deb1a7 100644--- a/client/src/services/apiTimeline.js+++ b/client/src/services/apiTimeline.js@@ -9,18 +9,6 @@ export const getTimelineDay = (options = {}) => {return request(`/timeline/day${qs ? `?${qs}` : ''}`, { silent: options.silent });};-export const getTimelineEvents = (options = {}) => {- const params = new URLSearchParams();- if (options.from) params.set('from', options.from);- if (options.to) params.set('to', options.to);- if (options.source) params.set('source', options.source);- if (options.kind) params.set('kind', options.kind);- if (options.personId) params.set('personId', options.personId);- if (options.limit) params.set('limit', String(options.limit));- const qs = params.toString();- return request(`/timeline/events${qs ? `?${qs}` : ''}`, { silent: options.silent });-};-// Bulk-backfill importers (#2160). Upload an export file (ZIP or single JSON).// `preview: true` returns parse-only counts + a summary without writing; a real// import is idempotent so re-imports are safe. request() detects the FormDatadiff --git a/client/src/services/apiTracks.js b/client/src/services/apiTracks.jsindex 2e83d07252..a9ed36c1b2 100644--- a/client/src/services/apiTracks.js+++ b/client/src/services/apiTracks.js@@ -54,12 +54,6 @@ export const attachTrackAudio = (id, filename, requestOptions = {}) => request(`...requestOptions,});-// Clear the audio pointer (leaves the library file in place — it may be shared).-export const clearTrackAudio = (id, requestOptions = {}) => request(`/tracks/${encodeURIComponent(id)}/audio`, {- method: 'DELETE',- ...requestOptions,-});-// --- Render history ----// A track keeps every generated/uploaded take in `track.renders[]`. The active// take is mirrored onto the top-level `audioFilename`/`engine`/`modelId`/@@ -112,8 +106,5 @@ export const publishTrackChiptune = (id, body, requestOptions = {}) => request(`// Mirror server caps in server/services/tracks/logic.js — bump both sides.export const TRACK_TITLE_MAX = 200;-export const TRACK_CONCEPT_MAX = 8000;export const TRACK_LYRICS_MAX = 20000;export const TRACK_PROMPT_MAX = 8000;-export const TRACK_DURATION_MIN_SEC = 1;-export const TRACK_DURATION_MAX_SEC = 3600;diff --git a/client/src/services/apiTribe.js b/client/src/services/apiTribe.jsindex c183ec5b13..25628ce220 100644--- a/client/src/services/apiTribe.js+++ b/client/src/services/apiTribe.js@@ -40,12 +40,6 @@ export const createTribeTouchpoint = (personId, data = {}, options = {}) => requ...options,});-export const createTribeCalendarTouchpoint = (personId, data) =>- request(`/tribe/people/${personId}/touchpoints/calendar`, {- method: 'POST',- body: JSON.stringify(data),- });-export const getTribeMemoryLinks = (personId) => request(`/tribe/people/${personId}/memories`);export const linkTribeMemory = (personId, data, options = {}) => request(`/tribe/people/${personId}/memories`, {diff --git a/client/src/services/apiUniverseBuilder.js b/client/src/services/apiUniverseBuilder.jsindex 23a854bc14..63a838a75b 100644--- a/client/src/services/apiUniverseBuilder.js+++ b/client/src/services/apiUniverseBuilder.js@@ -264,11 +264,6 @@ export const WORLD_LOCKABLE_FIELDS = ['influencesAvoid',];-// Mirror of `normalizeLabelKey` in server/services/universeBuilder.js — used for-// case-insensitive identity matching between original and refined items.-export const normalizeLabelKey = (label) =>- typeof label === 'string' ? label.trim().toLowerCase() : '';-// Coerce whatever shape the server / draft / patch hands us into a strict// `{ embrace: [], avoid: [] }` so consumers never have to guard undefined.// Fast-path: if the input is already shape-correct, return it unchanged so@@ -286,7 +281,7 @@ export const ensureInfluences = (raw) => {// (embrace + avoid). Use this instead of `.startsWith('influences')` so a// future LOCKABLE_FIELDS entry like `influencesPriority` doesn't get silently// swept into per-list handling.-export const WORLD_INFLUENCE_LOCK_FIELDS = ['influencesEmbrace', 'influencesAvoid'];+const WORLD_INFLUENCE_LOCK_FIELDS = ['influencesEmbrace', 'influencesAvoid'];export const isInfluenceLockField = (key) => WORLD_INFLUENCE_LOCK_FIELDS.includes(key);// Build a refined influences object that honors per-list locks. Locked lists@@ -430,15 +425,6 @@ export const setUniverseCanonLockAll = (universeId, kind, locked, options = {})...options,}));-// Bulk lock/unlock variations across one bucket (`category`) or every bucket-// (`category: null`). Pass `includeSheets: true` to also flip composite-// sheets in the same call.-export const setUniverseVariationsLockAll = (universeId, { locked, category = null, includeSheets = false } = {}) =>- trackUniverseWrite(universeId, request(`/universe-builder/${encodeURIComponent(universeId)}/variations/lock-all`, {- method: 'PATCH',- body: JSON.stringify({ locked, category, includeSheets }),- }));-// Promote a category variation into a full canon entry. `targetKind` is// required only when the source bucket's `kind` is 'other' (otherwise the// server derives it from the bucket). Pass `{ silent: true }` in `options`diff --git a/client/src/services/apiVoice.js b/client/src/services/apiVoice.jsindex 3c7eb4cf93..3a2a286e48 100644--- a/client/src/services/apiVoice.js+++ b/client/src/services/apiVoice.js@@ -19,7 +19,6 @@ export const listVoiceProfiles = ({ universeId, characterId } = {}, options) =>export const listVoiceEngines = (options) => api.get('/voice/engines', options);export const promoteVoicePreset = (payload, options) => api.post('/voice/profiles/preset', payload, options);-export const promotePresetProfile = promoteVoicePreset;export const createVoiceDesignCandidate = (payload, options) => api.post('/voice/profiles/design', payload, options);export const createClonedVoiceCandidate = (payload, options) => api.post('/voice/profiles/clone', payload, options);export const promoteVoiceProfile = (profileId, payload = {}, options) => api.post(@@ -32,23 +31,10 @@ export const benchmarkProfileInteractive = (profileId, payload = {}, options) =>`/voice/profiles/${encodeURIComponent(profileId)}/benchmark-interactive`, payload, options,);-// Qwen3-TTS runtime and model management-export const getQwen3Status = (options) => api.get('/voice/qwen3/status', options);-export const downloadQwen3Model = (modelId, options) => api.post('/voice/qwen3/download-model', { modelId }, options);-// Fine-tuningexport const startFineTuningJob = (profileId, payload = {}, options) => api.post(`/voice/profiles/${encodeURIComponent(profileId)}/fine-tune/start`, payload, options,);-export const getFineTuningJobStatus = (profileId, jobId, options) => api.get(- `/voice/profiles/${encodeURIComponent(profileId)}/fine-tune/${encodeURIComponent(jobId)}`, options,-);-export const cancelFineTuningJob = (profileId, jobId, options) => api.post(- `/voice/profiles/${encodeURIComponent(profileId)}/fine-tune/${encodeURIComponent(jobId)}/cancel`, {}, options,-);-export const promoteFineTunedCheckpoint = (profileId, jobId, checkpointId, options) => api.post(- `/voice/profiles/${encodeURIComponent(profileId)}/fine-tune/${encodeURIComponent(jobId)}/promote`, { checkpointId }, options,-);// Returns the raw WAV bytes of the test utterance.export const testTts = (text, voice, engine) => {diff --git a/client/src/services/apiWritersRoom.js b/client/src/services/apiWritersRoom.jsindex bc6407ec00..5a98b31731 100644--- a/client/src/services/apiWritersRoom.js+++ b/client/src/services/apiWritersRoom.js@@ -87,8 +87,6 @@ export const getWritersRoomPolishStatus = (workId) =>request(`/writers-room/works/${enc(workId)}/polish/status`);export const listWritersRoomPolishSnapshots = (workId) =>request(`/writers-room/works/${enc(workId)}/polish/snapshots`);-export const getWritersRoomPolishSnapshot = (workId, snapshotId) =>- request(`/writers-room/works/${enc(workId)}/polish/snapshots/${enc(snapshotId)}`);export const revertWritersRoomPolishSnapshot = (workId, snapshotId, options = {}) =>request(`/writers-room/works/${enc(workId)}/polish/revert`, {method: 'POST',diff --git a/client/src/services/apiX.js b/client/src/services/apiX.jsindex 5927b4ca8f..e6fc3f09e3 100644--- a/client/src/services/apiX.js+++ b/client/src/services/apiX.js@@ -1,7 +1,6 @@import { request } from './apiCore.js';export const getXAccounts = (options = {}) => request('/x/accounts', options);-export const getXAccount = (id, options = {}) => request(`/x/accounts/${id}`, options);export const createXAccount = (data, options = {}) => request('/x/accounts', { method: 'POST', body: JSON.stringify(data), ...options });export const updateXAccount = (id, data, options = {}) => request(`/x/accounts/${id}`, { method: 'PATCH', body: JSON.stringify(data), ...options });export const deleteXAccount = (id, options = {}) => request(`/x/accounts/${id}`, { method: 'DELETE', ...options });diff --git a/client/src/utils/fileUpload.js b/client/src/utils/fileUpload.jsindex 157b21fd45..bc10e0faf8 100644--- a/client/src/utils/fileUpload.js+++ b/client/src/utils/fileUpload.js@@ -4,9 +4,8 @@** This module holds only pure helpers (base64 read, validation, constants) —* no I/O. The upload orchestration that actually POSTs to the server- * (`uploadScreenshotFile` / `processScreenshotUploads` / `uploadAttachmentFile`- * / `processAttachmentUploads`) lives in `../services/apiMedia.js`; import it- * from there directly.+ * (`processScreenshotUploads` / `processAttachmentUploads`) lives in+ * `../services/apiMedia.js`; import those from there directly.*/import { formatBytes } from './formatters';