refactor: rename the project to JerapahFlow (jerapah-flow)

Update package names, env vars, cookie, and default ntfy topics while keeping SCRUNNER_* fallbacks.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-15 21:21:24 +07:00
co-authored by Cursor
parent 97bb8d7429
commit 4a78f66e2d
20 changed files with 53 additions and 42 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
{
"name": "@scrunner/web",
"name": "@jerapah-flow/web",
"private": true,
"version": "1.0.0",
"type": "module",
+2 -2
View File
@@ -27,8 +27,8 @@ export function App() {
function onUnauthorized() {
qc.setQueryData(["me"], null);
}
window.addEventListener("scrunner:unauthorized", onUnauthorized);
return () => window.removeEventListener("scrunner:unauthorized", onUnauthorized);
window.addEventListener("jerapah-flow:unauthorized", onUnauthorized);
return () => window.removeEventListener("jerapah-flow:unauthorized", onUnauthorized);
}, [qc]);
const user = me.data?.user;
+1 -1
View File
@@ -11,7 +11,7 @@ api.interceptors.response.use(
const url = err.config?.url ?? "";
const isAuthCall = url.includes("/auth/login") || url.includes("/auth/register") || url.includes("/auth/me") || url.includes("/auth/bootstrap");
if (err.response?.status === 401 && !isAuthCall) {
window.dispatchEvent(new Event("scrunner:unauthorized"));
window.dispatchEvent(new Event("jerapah-flow:unauthorized"));
}
return Promise.reject(err);
},