Draft
Conversation
…iness logic Restructure the codebase into a Bun workspace monorepo with @agicash/core (portable business logic, no DOM dependencies) and the web app (React/browser glue). Core enforces environment-agnosticism at compile time via tsconfig with no DOM lib. Key changes: - Create packages/core/ with its own package.json, tsconfig (no DOM lib), biome config - Move pure lib modules (money, cashu, bolt11, ecies, etc.) to core - Move types, errors, DB types, feature entities to core - Split mixed files: encryption, cryptography, cashu, spark have pure logic in core with React hooks/query wrappers remaining in web - Move repositories and services to core, using Cache/KeyProvider interfaces instead of direct QueryClient/@opensecret/react dependencies - Add runtime config (configure/getConfig) and injectable performance measurement - Web app files become thin re-exports from @agicash/core for zero consumer import changes - Fix generate-db-types pre-commit hook (add pass_filenames = false) - Add biome format step to db:generate-types to prevent hook cycle
…oken receive - Scaffold packages/cli with SeedKeyProvider (BIP32/BIP85), MapCache, and seed-auth - CLI commands: `accounts` (list with balances) and `receive <token>` (claim cashu token) - Copy seed-auth edge function from demo branch with Deno import maps - Exclude supabase/functions from root tsconfig (Deno runtime) - Format BTC balances as sats
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Updates to Preview Branch (workspace-refactor) ↗︎
Tasks are run on every commit but only new migration files are pushed.
View logs for this Workflow Run ↗︎. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
first commit is the refactor to a bun workspace, second commit is just an mvp cli that uses a supabase edge function to mint a JWT with no open secret.
I didn't review at all, this is just proof of concept