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:
parent
adbde0eade
commit
ed6e245c7f
32 changed files with 84 additions and 84 deletions
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "@lamassu/cashu",
|
||||
"name": "@bitSpire/cashu",
|
||||
"version": "0.1.0",
|
||||
"description": "Cashu ecash integration for offline ATM operation",
|
||||
"type": "module",
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { describe, it, expect } from 'vitest'
|
||||
import { version } from '../index.js'
|
||||
|
||||
describe('@lamassu/cashu', () => {
|
||||
describe('@bitSpire/cashu', () => {
|
||||
describe('exports', () => {
|
||||
it('should export version', () => {
|
||||
expect(version).toBe('0.1.0')
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* @lamassu/cashu
|
||||
* @bitSpire/cashu
|
||||
*
|
||||
* Cashu ecash integration for offline ATM operation.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "@lamassu/clink",
|
||||
"name": "@bitSpire/clink",
|
||||
"version": "0.1.0",
|
||||
"description": "CLINK protocol implementation for Nostr-native Lightning payments",
|
||||
"type": "module",
|
||||
|
|
@ -20,7 +20,7 @@
|
|||
"lint": "eslint src/"
|
||||
},
|
||||
"dependencies": {
|
||||
"@lamassu/nostr-client": "workspace:*",
|
||||
"@bitSpire/nostr-client": "workspace:*",
|
||||
"@scure/base": "^1.2.0",
|
||||
"nostr-tools": "^2.10.0"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -12,8 +12,8 @@
|
|||
|
||||
import type { Event, UnsignedEvent } from 'nostr-tools'
|
||||
import { finalizeEvent } from 'nostr-tools'
|
||||
import type { MachineIdentity, NostrClient } from '@lamassu/nostr-client'
|
||||
import { encryptContentV2, decryptContentV2 } from '@lamassu/nostr-client'
|
||||
import type { MachineIdentity, NostrClient } from '@bitSpire/nostr-client'
|
||||
import { encryptContentV2, decryptContentV2 } from '@bitSpire/nostr-client'
|
||||
|
||||
/** CLINK protocol version tag (mandatory per CLINK spec) */
|
||||
const CLINK_VERSION_TAG: [string, string] = ['clink_version', '1']
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* @lamassu/clink
|
||||
* @bitSpire/clink
|
||||
*
|
||||
* CLINK protocol implementation for Nostr-native Lightning payments.
|
||||
*
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
*
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { CLINKClient, encodeNoffer, createOfferSuccess } from '@lamassu/clink'
|
||||
* import { CLINKClient, encodeNoffer, createOfferSuccess } from '@bitSpire/clink'
|
||||
*
|
||||
* // Create a client
|
||||
* const clink = new CLINKClient({
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "@lamassu/hal",
|
||||
"name": "@bitSpire/hal",
|
||||
"version": "0.1.0",
|
||||
"description": "Hardware Abstraction Layer for Lamassu ATM devices",
|
||||
"type": "module",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* @lamassu/hal - Hardware Abstraction Layer
|
||||
* @bitSpire/hal - Hardware Abstraction Layer
|
||||
*
|
||||
* Provides drivers for Lamassu ATM hardware devices:
|
||||
* - Bill validators (JCM iVIZION via ID003 protocol)
|
||||
|
|
@ -7,7 +7,7 @@
|
|||
*
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { createValidator, createDispenser } from '@lamassu/hal'
|
||||
* import { createValidator, createDispenser } from '@bitSpire/hal'
|
||||
*
|
||||
* // Create a bill validator
|
||||
* const validator = createValidator('id003', {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "@lamassu/lightning",
|
||||
"name": "@bitSpire/lightning",
|
||||
"version": "0.1.0",
|
||||
"description": "Lightning.Pub client for Nostr-native Lightning operations",
|
||||
"type": "module",
|
||||
|
|
@ -20,8 +20,8 @@
|
|||
"lint": "eslint src/"
|
||||
},
|
||||
"dependencies": {
|
||||
"@lamassu/nostr-client": "workspace:*",
|
||||
"@lamassu/clink": "workspace:*",
|
||||
"@bitSpire/nostr-client": "workspace:*",
|
||||
"@bitSpire/clink": "workspace:*",
|
||||
"nostr-tools": "^2.10.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
|||
|
|
@ -11,13 +11,13 @@
|
|||
* - CLINK protocol support (kinds 21001-21003)
|
||||
*
|
||||
* This client handles the RPC layer. For CLINK payments,
|
||||
* use @lamassu/clink.
|
||||
* use @bitSpire/clink.
|
||||
*/
|
||||
|
||||
import type { Event, UnsignedEvent } from 'nostr-tools'
|
||||
import { finalizeEvent } from 'nostr-tools'
|
||||
import type { MachineIdentity, NostrClient } from '@lamassu/nostr-client'
|
||||
import { encryptContent, decryptJSON } from '@lamassu/nostr-client'
|
||||
import type { MachineIdentity, NostrClient } from '@bitSpire/nostr-client'
|
||||
import { encryptContent, decryptJSON } from '@bitSpire/nostr-client'
|
||||
import {
|
||||
LightningPubEventKind,
|
||||
type LightningPubConfig,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* @lamassu/lightning
|
||||
* @bitSpire/lightning
|
||||
*
|
||||
* Lightning.Pub client for Nostr-native Lightning operations.
|
||||
*
|
||||
|
|
@ -11,11 +11,11 @@
|
|||
* - Exchange rate fetching
|
||||
*
|
||||
* For CLINK payment operations (offers, debits, management),
|
||||
* use @lamassu/clink instead.
|
||||
* use @bitSpire/clink instead.
|
||||
*
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { LightningPubClient } from '@lamassu/lightning'
|
||||
* import { LightningPubClient } from '@bitSpire/lightning'
|
||||
*
|
||||
* const client = new LightningPubClient({
|
||||
* accountPubkey: 'hex-pubkey...',
|
||||
|
|
|
|||
4
packages/nostr-client/package-lock.json
generated
4
packages/nostr-client/package-lock.json
generated
|
|
@ -1,11 +1,11 @@
|
|||
{
|
||||
"name": "@lamassu/nostr-client",
|
||||
"name": "@bitSpire/nostr-client",
|
||||
"version": "0.1.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@lamassu/nostr-client",
|
||||
"name": "@bitSpire/nostr-client",
|
||||
"version": "0.1.0",
|
||||
"dependencies": {
|
||||
"@noble/curves": "^2.0.1",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "@lamassu/nostr-client",
|
||||
"name": "@bitSpire/nostr-client",
|
||||
"version": "0.1.0",
|
||||
"description": "Nostr client library for Lamassu ATM",
|
||||
"type": "module",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* @lamassu/nostr-client
|
||||
* @bitSpire/nostr-client
|
||||
*
|
||||
* Nostr client library for Lamassu ATM communication.
|
||||
*
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
* NostrClient,
|
||||
* generateIdentity,
|
||||
* createMachineStatusEvent
|
||||
* } from '@lamassu/nostr-client'
|
||||
* } from '@bitSpire/nostr-client'
|
||||
*
|
||||
* // Create or load identity
|
||||
* const identity = generateIdentity()
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "@lamassu/state-machine",
|
||||
"name": "@bitSpire/state-machine",
|
||||
"version": "0.1.0",
|
||||
"description": "XState v5 state machine for ATM transaction flows",
|
||||
"type": "module",
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
/**
|
||||
* @lamassu/state-machine
|
||||
* @bitSpire/state-machine
|
||||
*
|
||||
* XState v5 state machine for ATM transaction flows.
|
||||
*
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { createATMMachine, createActor } from '@lamassu/state-machine'
|
||||
* import { createATMMachine, createActor } from '@bitSpire/state-machine'
|
||||
* import { createActor } from 'xstate'
|
||||
*
|
||||
* const machine = createATMMachine({
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "@lamassu/ui-shared",
|
||||
"name": "@bitSpire/ui-shared",
|
||||
"version": "0.1.0",
|
||||
"description": "Shared Vue 3 components for Lamassu ATM and dashboard",
|
||||
"type": "module",
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { describe, it, expect } from 'vitest'
|
||||
import { version } from '../index.js'
|
||||
|
||||
describe('@lamassu/ui-shared', () => {
|
||||
describe('@bitSpire/ui-shared', () => {
|
||||
describe('exports', () => {
|
||||
it('should export version', () => {
|
||||
expect(version).toBe('0.1.0')
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* @lamassu/ui-shared
|
||||
* @bitSpire/ui-shared
|
||||
*
|
||||
* Shared Vue 3 components for Lamassu ATM and dashboard.
|
||||
* This package will contain common UI components like:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue