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

@ -29,9 +29,9 @@ pkgs.stdenv.mkDerivation (finalAttrs: {
inherit src;
# Filter to only the workspace packages needed for @lamassu/machine
# Filter to only the workspace packages needed for @bitSpire/machine
pnpmWorkspaces = [
"@lamassu/machine..." # "..." suffix = include transitive workspace deps
"@bitSpire/machine..." # "..." suffix = include transitive workspace deps
];
pnpmDeps = pkgs-unstable.fetchPnpmDeps {
@ -81,7 +81,7 @@ pkgs.stdenv.mkDerivation (finalAttrs: {
popd
# Build the Electron app (turbo builds all workspace deps + app)
pnpm --filter="@lamassu/machine..." build
pnpm --filter="@bitSpire/machine..." build
runHook postBuild
'';
@ -129,10 +129,10 @@ pkgs.stdenv.mkDerivation (finalAttrs: {
copy_pnpm_pkg bindings $out/node_modules/bindings
copy_pnpm_pkg file-uri-to-path $out/node_modules/file-uri-to-path
# @lamassu/hal (workspace package, dynamically imported for hardware access)
mkdir -p $out/node_modules/@lamassu/hal/dist
cp -rL packages/hal/dist/* $out/node_modules/@lamassu/hal/dist/
cp packages/hal/package.json $out/node_modules/@lamassu/hal/package.json
# @bitSpire/hal (workspace package, dynamically imported for hardware access)
mkdir -p $out/node_modules/@bitSpire/hal/dist
cp -rL packages/hal/dist/* $out/node_modules/@bitSpire/hal/dist/
cp packages/hal/package.json $out/node_modules/@bitSpire/hal/package.json
# serialport (native RS232 driver chain)
copy_pnpm_pkg serialport $out/node_modules/serialport