Frontend - Large World: collapse org/company/team tiers into one expandable React Flow hierarchy (WorldFlow) with per-click expand, persisted node positions, a compact tree sidebar, wrench multi-select delete across levels, and a sized right slide-out (phone/tablet/full) showing an agent summary + drill button. - Agent page: GitHub-style animated contribution grid (VitalsCard), collapsible System Prompt + Personality cards, restructured anatomy cards, bigger avatar with name/title header row, Markdown/JSON-aware rendering, brain registry + history, avatar generate/upload. - User-icon menu (Infrastructure/Brains/Tools/Profile/Credits) + ToolPanel; Master Planner deploy wizard (Specialists/Swarm/Scheduled/Triggered); Team Runs view; reap-progress modal; dashboard is the single live interface. Backend - cm-brain crate (.brain as the agent definition) + brain apply/history. - Hard-purge reap (FK-ordered) + sandbox release + SSE batch-delete. - Swarm self-verifying loop, mode-aware planner, web.search tool, webhooks (migration 0013), org/company/team delete endpoints, scheduler sweeps. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
29 lines
1.1 KiB
JavaScript
29 lines
1.1 KiB
JavaScript
// Clawmates service worker — KILL SWITCH.
|
|
//
|
|
// A previous caching service worker (tc-static-v*) could serve stale or
|
|
// mismatched /_next/static chunks after a deploy, which broke client-side
|
|
// hydration (React Flow nodes stayed `visibility:hidden`, blank dashboard).
|
|
// Rather than ship another caching SW, this version removes the SW entirely:
|
|
// it deletes every cache and unregisters itself, returning every client to a
|
|
// clean, network-only state. There is intentionally no `fetch` handler, so the
|
|
// browser handles all requests directly even before unregister completes.
|
|
//
|
|
// Re-register loops are avoided because the new RegisterServiceWorker no longer
|
|
// calls register() — it only cleans up (see RegisterServiceWorker.tsx).
|
|
|
|
self.addEventListener("install", () => {
|
|
self.skipWaiting();
|
|
});
|
|
|
|
self.addEventListener("activate", (event) => {
|
|
event.waitUntil(
|
|
(async () => {
|
|
for (const key of await caches.keys()) {
|
|
await caches.delete(key);
|
|
}
|
|
await self.clients.claim();
|
|
await self.registration.unregister();
|
|
})(),
|
|
);
|
|
});
|