Commit graph

8 commits

Author SHA1 Message Date
fa4858ed66 chore: drop stragglers from the regtest-tooling removal
.gitignore still carried rules for docker/**/data/ and docker/.state/ —
paths that no longer exist — under a now-empty "# Docker" header. The
docs skill's example sync report named LIGHTNING_PUB_URL as its sample
env var; swapped for a variable that exists.
2026-10-09 22:25:42 +02:00
e907bcc085 chore: stop tracking the generated .devenv.flake.nix
devenv regenerates this file on every `devenv shell`; the committed copy
was pinned to a directory that no longer exists
(~/Work/tries/2026-01-22-lamassu-refactor-packages/lamassu-next). Untracked
and gitignored beside .devenv/. The file stays on disk.
2026-10-09 22:25:07 +02:00
Patrick Mulligan
15c1e172e3 chore: gitignore nix results, sqlite DBs, compiled JS
Ignore build artifacts and runtime data that shouldn't be tracked:
- Nix build output symlinks (result, result-*)
- SQLite database files (*.db, *.db-shm, *.db-wal)
- Compiled JS from TypeScript HAL service

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-02 13:49:50 -05:00
Patrick Mulligan
0dafb7d8a8 docs: add new dev.sh commands to README
- Add atm, zeus, mine commands to table
- Add --machine flag documentation
- Ignore docker/.state/ directory (generated files)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-15 15:02:11 -05:00
Patrick Mulligan
c98f126ba7 feat(docker): add dev.sh with auto-funding and ATM app setup
- Add dev.sh script for managing regtest development environment
- Implement cmd_fund to fund ATM app owner via Lightning.Pub API
- Add --fund flag to cmd_up for automatic funding on startup
- Update setup_atm_app to write VITE_APP_ID to machine .env
- Fix Electron IPC to pass appId and extensionApiUrl to renderer
- Restructure repo from nested lamassu-next/ to root

The dev.sh script now supports:
- ./dev.sh up --fund  # Start regtest and auto-fund ATM
- ./dev.sh fund       # Fund existing ATM app
- ./dev.sh status     # Show environment status
- ./dev.sh reset      # Clean restart

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-15 14:19:16 -05:00
Patrick Mulligan
f4cd45c81c Implement @lamassu/nostr-client package
Core Nostr client library for ATM communication:

- Identity management (generateIdentity, load from nsec/hex)
- NIP-44 encryption/decryption for sensitive data
- Event creation utilities (machine status, transactions, auth)
- NostrClient class with relay management
- NIP-42 authentication support for private relays
- Automatic reconnection with exponential backoff
- Subscription management

Types for ATM-specific events:
- Kind 30078: Machine status (replaceable)
- Kind 30079: Transaction records (replaceable)
- Kind 21001-21003: CLINK protocol events
- Kind 22242: NIP-42 auth

Includes unit tests for identity, encryption, and events.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-23 05:46:18 -05:00
Patrick Mulligan
e295a37367 Fix devenv configuration and add lock files
- Fix devenv.nix: rename pre-commit to git-hooks (devenv API change)
- Use nixpkgs rust packages directly (avoid rust-overlay dependency)
- Remove non-existent packages (nak, libnfc, httpie)
- Use webkitgtk_4_1 instead of webkitgtk for Tauri compatibility
- Add devenv.lock and pnpm-lock.yaml for reproducible builds
- Update root .gitignore to exclude .claude/ and .pre-commit-config.yaml

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-23 05:41:49 -05:00
Patrick Mulligan
9adee6e37f Initial commit: Lamassu modernization project
- Add lamassu-server, lamassu-machine, lamassu-install as submodules
- Add CLAUDE.md with development guidance
- Add docs/modernization-plan.md with 2026 refactoring roadmap
- Add .gitignore for Node.js/Nix development

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 14:19:00 -05:00