add agent docs for wallets

This commit is contained in:
lemonknowsall committed 2025-11-03 20:55:03 -08:00
1 parent 47492df00e
commit 8cf5391817
10 files changed
+1258 -783

No files matched your search

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 282 KiB

-21
View File
@@ -1,21 +0,0 @@
{
"name": "NutStack",
"short_name": "NutStack",
"description": "Nostr application with Cashu wallet integration",
"start_url": "/",
"display": "standalone",
"background_color": "#000000",
"theme_color": "#000000",
"icons": [
{
"src": "/icon-192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/icon-512.png",
"sizes": "512x512",
"type": "image/png"
}
]
}
-33
View File
@@ -1,33 +0,0 @@
// public/sw.js
self.addEventListener("push", (event) => {
if (!event.data) return;
try {
const data = event.data.json();
const title = data.title || "New Notification";
const options = {
body: data.body,
icon: data.icon || "/icon-192.png"
// badge: data.badge || "/badge-72x72.png",
// data: data.data || {},
};
event.waitUntil(
self.registration.showNotification(title, options)
);
} catch (err) {
console.error("Push event error:", err);
}
});
self.addEventListener("notificationclick", (event) => {
event.notification.close();
// If you send a `url` in payload.data, open it
const url = event.notification.data?.url;
if (url) {
event.waitUntil(clients.openWindow(url));
}
});