mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-05 16:33:36 +00:00
Extract NWC and Lightning zap code into an nwc skill
Moves NWC wallet connection (useNWC, NWCContext, WalletModal) along with the WebLN wallet detection (useWallet) and NIP-57 zap stack (useZaps, ZapButton, ZapDialog) out of src/ and into .agents/skills/nwc/ as an opt-in skill. Removes NWCProvider from App.tsx and TestApp.tsx, drops the NWC-only dependencies (@getalby/sdk, @webbtc/webln-types) from package.json, and updates AGENTS.md to stop referencing the extracted hooks and components. The new SKILL.md explains how to reinstall the dependencies, copy the files back into src/, and wire up NWCProvider when a project actually needs Lightning wallet and zap functionality.
This commit is contained in:
14 files changed
+302
-176
No files matched your search
@@ -10,7 +10,6 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@fontsource-variable/inter": "^5.2.6",
|
||||
"@getalby/sdk": "^5.1.1",
|
||||
"@hookform/resolvers": "^5.2.2",
|
||||
"@nostrify/nostrify": "^0.51.0",
|
||||
"@nostrify/react": "^0.4.0",
|
||||
@@ -80,7 +79,6 @@
|
||||
"@types/react": "^19.2.14",
|
||||
"@types/react-dom": "^19.2.3",
|
||||
"@vitejs/plugin-react": "^6.0.1",
|
||||
"@webbtc/webln-types": "^3.0.0",
|
||||
"autoprefixer": "^10.4.20",
|
||||
"eslint": "^9.9.0",
|
||||
"eslint-plugin-react-hooks": "^5.1.0-rc.0",
|
||||
|
||||
Reference in new issue
Block a user