feat(mobile): add the mobile app shell, capture and the /mobile/ build page

Five tabs (Now, Globe, Capture, Threads, You) over one persistent globe:
a live situation feed whose cards open into the world with a detented
brief, the lens dock and time ribbon, AR Look and signed Witness
capture (ECDSA P-256 in IndexedDB, SHA-256 hash chain, IMU and GPS
trace, eight-check verify), the Bhote Koshi reconstruction thread with
a live ledger, and hinge-aware two-pane layouts for foldables.

The production build now emits mobile/index.html beside the app; the
panel build keeps the app alone.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VVYRAqiQj9Y1V9ZfG1RcDH
This commit is contained in:
Claude committed 2026-10-18 05:40:33 +00:00
1 parent e532c5efb6
commit 52de186005
8 files changed
+183 -8

No files matched your search

+12
View File
@@ -119,6 +119,13 @@ function guard(engine, kind) {
const v = call('credits', null);
return Array.isArray(v) ? v : null;
},
/** Screen-space label candidates (engine draws none; the shell renders them). */
labels: (max = 40) => {
const v = call('labels', [], max);
return Array.isArray(v) ? v : [];
},
project: (lon, lat, alt) => call('project', null, lon, lat, alt),
time: () => call('time', null),
};
}
@@ -130,6 +137,11 @@ export async function mountGlobe(container, opts = {}) {
const params = new URLSearchParams(location.search);
const forceStub = opts.preferStub || params.get('engine') === 'stub';
if (!forceStub) {
// vite-plugin-cesium serves Workers/Assets at /cesium/ and passes the base
// as a build-time define, which the pre-bundled dev dependency never sees;
// Cesium then resolves them next to node_modules/.vite/deps and gets HTML.
if (typeof window !== 'undefined' && !window.CESIUM_BASE_URL)
window.CESIUM_BASE_URL = '/cesium/';
try {
// A glob (not a bare dynamic import) so a checkout without the engine
// still builds; Vite re-evaluates it when mobile/globe/index.js appears.