refactor: rename the remaining Lamassu-branded identifiers

LamassuEventKind → BitSpireEventKind (nostr-client; no consumers outside
the package), the kiosk theme localStorage keys lamassu-theme /
lamassu-color-mode → bitspire-* (a one-time theme reset on existing
kiosks), the ui-shared UMD global LamassuUIShared → BitSpireUIShared, and
the orphaned Rust HAL's Cargo name/description/repository plus its lib.rs
header — now also labelled as the unbuilt leftover it is.

nostr-client: 43/43 tests, tsc clean. Machine app: vue-tsc + electron tsc clean.
This commit is contained in:
Padreug 2026-10-09 21:58:55 +02:00
commit 34c2a6c42d
8 changed files with 14 additions and 14 deletions

View file

@ -2,7 +2,7 @@ import { describe, it, expect } from 'vitest'
import { generateIdentity } from '../identity.js'
import { LocalSigner } from '../signer.js'
import { createSignedEvent, createAuthEvent, validateEvent, generateTxId } from '../events.js'
import { LamassuEventKind } from '../types.js'
import { BitSpireEventKind } from '../types.js'
describe('events', () => {
describe('createSignedEvent', () => {
@ -33,7 +33,7 @@ describe('events', () => {
const event = await createAuthEvent(signer, relayUrl, challenge)
expect(event.kind).toBe(LamassuEventKind.Auth)
expect(event.kind).toBe(BitSpireEventKind.Auth)
expect(event.content).toBe('')
expect(event.tags).toContainEqual(['relay', relayUrl])
expect(event.tags).toContainEqual(['challenge', challenge])

View file

@ -4,7 +4,7 @@
import { type Event, type EventTemplate, type VerifiedEvent, getEventHash } from 'nostr-tools'
import type { Signer } from './signer.js'
import { LamassuEventKind } from './types.js'
import { BitSpireEventKind } from './types.js'
/**
* Sign an event template with the given signer.
@ -29,7 +29,7 @@ export function createAuthEvent(
challenge: string
): Promise<VerifiedEvent> {
return signer.signEvent({
kind: LamassuEventKind.Auth,
kind: BitSpireEventKind.Auth,
content: '',
tags: [
['relay', relayUrl],

View file

@ -96,7 +96,7 @@ export type {
ClientEvents,
} from './types.js'
export { LamassuEventKind } from './types.js'
export { BitSpireEventKind } from './types.js'
// Re-export useful nostr-tools types
export type { Event, UnsignedEvent, Filter } from 'nostr-tools'

View file

@ -86,7 +86,7 @@ export interface SubscriptionOptions {
}
/** ATM-specific event kinds */
export enum LamassuEventKind {
export enum BitSpireEventKind {
/** CLINK Offer Request/Response */
ClinkOffer = 21001,
/** CLINK Debit Request/Response */