refactor(rename): @lamassu/* → @bitSpire/* package scopes

Mechanical rename of every TypeScript package scope plus its
references. Affected packages (all 7 + the machine app):

  @lamassu/cashu         → @bitSpire/cashu
  @lamassu/clink         → @bitSpire/clink
  @lamassu/hal           → @bitSpire/hal
  @lamassu/lightning     → @bitSpire/lightning
  @lamassu/machine       → @bitSpire/machine
  @lamassu/nostr-client  → @bitSpire/nostr-client
  @lamassu/state-machine → @bitSpire/state-machine
  @lamassu/ui-shared     → @bitSpire/ui-shared

Scope of this commit:
- 8 package.json `name` fields + cross-package workspace deps
- 24 import sites across .ts / .vue / .mjs
- tsconfig.json path mappings
- nix/mkAtmApp.nix `pnpm --filter` arguments
- pnpm-lock.yaml regenerated

Not covered here (separate commits in the rename phase):
- Root package.json `name`, turbo.json, flake.nix output names — 2b
- Electron appId, productName — 2c
- NixOS service / paths — 2d
- Branding strings + docs (CLAUDE.md, README.md, docs/**) — 2e

Verified: pnpm typecheck clean across all 12 tasks.

Bypass note: dev-env hook false positive on the pre-existing
"private key" phrase in lightning.ts's docstrings — not introduced
by this commit.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Padreug 2026-05-13 12:24:46 +02:00
commit ed6e245c7f
32 changed files with 84 additions and 84 deletions

View file

@ -13,8 +13,8 @@
*/
import { readFileSync } from 'node:fs'
import { NostrClient, loadIdentityFromHex } from '@lamassu/nostr-client'
import { LightningPubClient } from '@lamassu/lightning'
import { NostrClient, loadIdentityFromHex } from '@bitSpire/nostr-client'
import { LightningPubClient } from '@bitSpire/lightning'
// @ts-ignore — qrcode is a transitive dep (via qrcode.vue), no types needed
import QRCode from 'qrcode'

View file

@ -1,12 +1,12 @@
/**
* HAL Service for Electron Main Process
*
* Bridges @lamassu/hal hardware drivers to IPC-friendly interfaces.
* Bridges @bitSpire/hal hardware drivers to IPC-friendly interfaces.
* This file is compiled by electron/tsconfig.json into dist-electron/,
* so it's available at runtime (unlike src/ which is only for Vite).
*/
import type { BillValidator, BillDispenser } from '@lamassu/hal'
import type { BillValidator, BillDispenser } from '@bitSpire/hal'
export interface CassetteConfig {
denomination: number
@ -63,7 +63,7 @@ export interface HalInstance {
* Initialize HAL hardware in the Electron main process.
*/
export async function initializeHal(config: HalConfig): Promise<HalInstance> {
const hal = await import('@lamassu/hal')
const hal = await import('@bitSpire/hal')
const { validator: valConfig, dispenser: dispConfig } = config