mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-17 00:32:21 +00:00
feat(mobile): Live and Record lanes, Signal, Need eyes and Crews
Every room has a Twitch-style Live lane (simulated crowd chat, emotes, reactions that also rise from the globe, slow mode, witness glow) and a Reddit/X-style Record (Signal-weighted corroborate/dispute, threads, quotes, notes, synthesis). Chat lines with evidence or corroboration promote to the Record, and a rules-based clerk summarizes chat with citations. Signal is a receipts ledger; Need eyes requests reward a sealed answer with a First eyes byline. Crews add persistent groups. Simulated and example content is labelled throughout. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VVYRAqiQj9Y1V9ZfG1RcDH
This commit is contained in:
22 files changed
+9247
-370
No files matched your search
@@ -0,0 +1,33 @@
|
||||
/**
|
||||
* The social agent's mount points (rooms, chat, You) live in ./social.js.
|
||||
* Feature-detected: a checkout without it still builds and the shell shows
|
||||
* its own fallbacks. A glob (not a bare dynamic import) lets Vite pick the
|
||||
* file up as soon as it appears.
|
||||
*/
|
||||
|
||||
let mod;
|
||||
export function social() {
|
||||
if (mod !== undefined) return mod;
|
||||
const loaders = import.meta.glob('./social.js');
|
||||
const load = loaders['./social.js'];
|
||||
mod = load
|
||||
? load().catch((err) => {
|
||||
console.warn('[social] social.js failed to load', err);
|
||||
return null;
|
||||
})
|
||||
: Promise.resolve(null);
|
||||
return mod;
|
||||
}
|
||||
|
||||
/** Call an export if it exists; resolves to { ok, value }. */
|
||||
export async function callSocial(name, ...args) {
|
||||
const m = await social();
|
||||
const fn = m?.[name];
|
||||
if (typeof fn !== 'function') return { ok: false };
|
||||
try {
|
||||
return { ok: true, value: await fn(...args) };
|
||||
} catch (err) {
|
||||
console.warn(`[social] ${name} failed`, err);
|
||||
return { ok: false, error: err };
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user