@1agh/maude 1.6.11 → 1.6.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apps/studio/client/app.jsx +27 -1
- package/apps/studio/dist/client.bundle.js +231 -231
- package/apps/studio/sync/ctl-provider.ts +5 -1
- package/apps/studio/sync/file-ledger.ts +13 -0
- package/apps/studio/sync/index.ts +291 -23
- package/apps/studio/sync/park.ts +288 -0
- package/apps/studio/sync/poke.ts +12 -0
- package/apps/studio/sync/presentation.ts +45 -0
- package/apps/studio/sync/status.ts +14 -0
- package/apps/studio/whats-new.json +9 -0
- package/apps/studio/ws.ts +4 -0
- package/package.json +8 -8
|
@@ -5269,6 +5269,7 @@ function StatusBar({
|
|
|
5269
5269
|
const detail = p.names.length ? ` (${p.names.join(', ')})` : '';
|
|
5270
5270
|
return {
|
|
5271
5271
|
online: p.online,
|
|
5272
|
+
phase: p.phase,
|
|
5272
5273
|
label: p.label,
|
|
5273
5274
|
title: `${p.title}${detail}${p.next ? ` — ${p.next}` : ''}`,
|
|
5274
5275
|
};
|
|
@@ -5281,7 +5282,12 @@ function StatusBar({
|
|
|
5281
5282
|
aria-hidden="true"
|
|
5282
5283
|
/>
|
|
5283
5284
|
<span className="lbl">hub sync</span>
|
|
5284
|
-
<span
|
|
5285
|
+
<span
|
|
5286
|
+
className="val"
|
|
5287
|
+
title={syncSlot.title}
|
|
5288
|
+
data-testid="statusbar-sync"
|
|
5289
|
+
data-phase={syncSlot.phase}
|
|
5290
|
+
>
|
|
5285
5291
|
{syncSlot.label}
|
|
5286
5292
|
</span>
|
|
5287
5293
|
</>
|
|
@@ -12266,6 +12272,26 @@ function App() {
|
|
|
12266
12272
|
} catch {}
|
|
12267
12273
|
}
|
|
12268
12274
|
|
|
12275
|
+
// A PERSON IS HERE — the desktop park's presence signal (sync/park.ts). A
|
|
12276
|
+
// parked desktop has closed its cloud link so the project can sleep; real
|
|
12277
|
+
// input brings it back, and keeps an attended desktop from parking. Real
|
|
12278
|
+
// input only (not focus): a window left focused overnight is not a person.
|
|
12279
|
+
// At most one frame per 30 s, so the socket hears a heartbeat, not a stream.
|
|
12280
|
+
useEffect(() => {
|
|
12281
|
+
let last = 0;
|
|
12282
|
+
const onInput = () => {
|
|
12283
|
+
const now = Date.now();
|
|
12284
|
+
if (now - last < 30_000) return;
|
|
12285
|
+
last = now;
|
|
12286
|
+
wsSend({ type: 'presence' });
|
|
12287
|
+
};
|
|
12288
|
+
const events = ['pointerdown', 'keydown', 'wheel'];
|
|
12289
|
+
for (const e of events) window.addEventListener(e, onInput, { capture: true, passive: true });
|
|
12290
|
+
return () => {
|
|
12291
|
+
for (const e of events) window.removeEventListener(e, onInput, { capture: true });
|
|
12292
|
+
};
|
|
12293
|
+
}, []);
|
|
12294
|
+
|
|
12269
12295
|
// ----- Phase 27 (E2) — git actions -----
|
|
12270
12296
|
// All write actions POST same-origin (the dev-server's sameOriginWrite + the
|
|
12271
12297
|
// dual-allowlist gate them main-origin only). After a mutation we refresh
|