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
address review: forward options through getInstances + clarify test comments
Adam Eivy02f05ea21086
diff --git a/client/src/services/apiSystem.js b/client/src/services/apiSystem.jsindex 11936de973..7225b6a801 100644--- a/client/src/services/apiSystem.js+++ b/client/src/services/apiSystem.js@@ -111,7 +111,7 @@ export const navigateBrowser = (url) => request('/browser/navigate', {});// Instances (Federation)-export const getInstances = () => request('/instances');+export const getInstances = (options) => request('/instances', options);export const getSelfInstance = () => request('/instances/self');export const updateSelfInstance = (data) => request('/instances/self', { method: 'PUT', body: JSON.stringify(data) });export const addPeer = (data) => request('/instances/peers', { method: 'POST', body: JSON.stringify(data) });diff --git a/server/services/universeBuilderCollectionHook.test.js b/server/services/universeBuilderCollectionHook.test.jsindex 648b82b99d..2494afa108 100644--- a/server/services/universeBuilderCollectionHook.test.js+++ b/server/services/universeBuilderCollectionHook.test.js@@ -159,10 +159,12 @@ describe('universeBuilderCollectionHook', () => {name,characters,categories: { [categoryKey]: { variations } },- // Test uses a real tempdir but doesn't mock instances.js, so a- // non-ephemeral create would fire autoSubscribeRecordToAllPeers and- // initial-push a fixture universe to every real peer in- // data/instances.json — see series.js#createSeries auto-subscribe.+ // Defense-in-depth: the file-top vi.mock of ./instances.js+ // already stubs getPeers to []. Without that mock, a non-ephemeral+ // create would fire autoSubscribeRecordToAllPeers and initial-push+ // the fixture to every real peer in data/instances.json. ephemeral+ // protects the wire even if the mock ever regresses or a future+ // production code path bypasses getPeers.ephemeral: true,});return created;diff --git a/server/services/writersRoom/promoteToPipeline.test.js b/server/services/writersRoom/promoteToPipeline.test.jsindex e183fa5b4a..5cb3f5fcb0 100644--- a/server/services/writersRoom/promoteToPipeline.test.js+++ b/server/services/writersRoom/promoteToPipeline.test.js@@ -151,10 +151,12 @@ describe('promoteWorkToPipeline', () => {// Simulate a corrupted link: rewrite the work manifest to point at the// first series but a DIFFERENT (unrelated) series' issue. Mirrors a// manual edit, partial delete, or migration bug.- // ephemeral:true keeps the fixture out of peer-sync. Test uses a real- // tempdir but doesn't mock instances.js; without this, autosubscribe-- // on-create initial-pushes the 'Strayer' record to every real peer in- // data/instances.json.+ // ephemeral:true is defense-in-depth here. The file-top vi.mock of+ // ./instances.js already stubs getPeers to return []; without that+ // mock, autosubscribe-on-create would initial-push 'Strayer' to every+ // real peer in data/instances.json. The ephemeral flag protects the+ // wire even if the mock ever regresses or a future production code+ // path bypasses getPeers.const strayerSeries = await seriesSvc.createSeries({ name: 'Strayer', ephemeral: true });const strayerIssue = await issuesSvc.createIssue({ seriesId: strayerSeries.id, title: 'Stray', ephemeral: true });await wrLocal.linkToPipeline(work.id, { seriesId: first.series.id, issueId: strayerIssue.id });