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
Merge remote-tracking branch 'origin/main' into claim/issue-2147
Adam Eivy9d2e6fa922de
diff --cc client/src/services/README.mdindex e878e254b3,019d5324ea..640246b7ca--- a/client/src/services/README.md+++ b/client/src/services/README.md@@@ -116,6 -116,7 +116,7 @@@ toasts on throw). **Custom catch ⇒ `s| `apiPalette.js` | Command-palette manifest + action dispatch. || `apiVoice.js` | Voice synthesis / processing. || `apiCity.js` | CyberCity snapshots — historical city-state series for the timeline scrubber (GET /snapshots, GET /config, POST /capture). |-| `apiPrivacy.js` | Privacy Center — encrypted PII Vault + Trusted Organizations registry (status, vault CRUD + reveal, org CRUD, org holdings replace-set). |++| `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. |## Browser-facing (DOM, voice, build) — not pure API wrappersdiff --cc client/src/services/apiPrivacy.jsindex 14ef847244,d7a07e9c7d..1a74cca202--- a/client/src/services/apiPrivacy.js+++ b/client/src/services/apiPrivacy.js@@@ -1,13 -1,65 +1,71 @@@import { request } from './apiCore.js';- // Privacy Center — Trusted Organizations registry (issues #2140, #2141, #2147).- // Only the Digital Twin cross-link surfaces are wired today; the full vault /- // org-registry client lands with the Privacy Center UI (Phase 3/5/6).+ // Privacy Center — encrypted PII Vault + Trusted Organizations registry-// (issues #2140, #2141; UI shell #2142). Every wrapper takes an optional-// `options` object so callers that own their own error UI (useAsyncAction,-// custom catch) can pass `{ silent: true }` per the toasting convention.++// (issues #2140, #2141; UI shell #2142; Digital Twin cross-link #2147). Every++// wrapper takes an optional `options` object so callers that own their own error++// UI (useAsyncAction, custom catch) can pass `{ silent: true }` per the toasting++// convention.- /** Social-account → org links for the Twin's "in org registry" badges (#2147). */+ // ── Status (doctor-style readout) ───────────────────────────────────────────+ export const getPrivacyStatus = (options) => request('/privacy/status', options);++ // ── Vault records ───────────────────────────────────────────────────────────+ export const getVaultRecords = (type, options) =>+ request(`/privacy/vault${type ? `?type=${encodeURIComponent(type)}` : ''}`, options);+ export const getVaultRecord = (id, options) => request(`/privacy/vault/${id}`, options);+ export const createVaultRecord = (data, options) => request('/privacy/vault', {+ method: 'POST',+ body: JSON.stringify(data),+ ...options,+ });+ export const updateVaultRecord = (id, patch, options) => request(`/privacy/vault/${id}`, {+ method: 'PUT',+ body: JSON.stringify(patch),+ ...options,+ });+ export const deleteVaultRecord = (id, options) => request(`/privacy/vault/${id}`, {+ method: 'DELETE',+ ...options,+ });+ // The ONE decrypt path — explicit user action. Returns { id, type, value }.+ export const revealVaultRecord = (id, options) => request(`/privacy/vault/${id}/reveal`, {+ method: 'POST',+ ...options,+ });++ // ── Trusted Organizations registry ──────────────────────────────────────────+ export const getPrivacyOrgs = (filters = {}, options) => {+ const qs = new URLSearchParams(+ Object.entries(filters).filter(([, v]) => v != null && v !== ''),+ ).toString();+ return request(`/privacy/orgs${qs ? `?${qs}` : ''}`, options);+ };+ export const getPrivacyOrg = (id, options) => request(`/privacy/orgs/${id}`, options);+ export const createPrivacyOrg = (data, options) => request('/privacy/orgs', {+ method: 'POST',+ body: JSON.stringify(data),+ ...options,+ });+ export const updatePrivacyOrg = (id, patch, options) => request(`/privacy/orgs/${id}`, {+ method: 'PUT',+ body: JSON.stringify(patch),+ ...options,+ });+ export const deletePrivacyOrg = (id, options) => request(`/privacy/orgs/${id}`, {+ method: 'DELETE',+ ...options,+ });++ // ── Org holdings (which vault records an org holds) ─────────────────────────+ export const getOrgHoldings = (id, options) => request(`/privacy/orgs/${id}/holdings`, options);+ // Replace-set semantics: `holdings` is the FULL list of { vaultRecordId, status }.+ export const setOrgHoldings = (id, holdings, options) => request(`/privacy/orgs/${id}/holdings`, {+ method: 'PUT',+ body: JSON.stringify({ holdings }),+ ...options,+ });++++// ── Digital Twin cross-link (#2147) ─────────────────────────────────────────++/** Social-account → org links for the Twin's "in org registry" badges. */+export const getSocialAccountOrgLinks = (options) =>+ request('/privacy/social-account-links', options);-- /** Create a trusted-org record (used by the Twin's "Add to org registry"). */- export const createPrivacyOrg = (data, options) =>- request('/privacy/orgs', { method: 'POST', body: JSON.stringify(data), ...options });