Rename project from Nexa to Osias

Renames the npm package (nexa-extension -> osias-extension), the
extension manifest name and Firefox gecko id
([email protected]), the internal runtime message-type
namespace and storage keys ('nexa:...' -> 'osias:...'), the
NexaMessage type, and all remaining Nexa branding in source comments,
UI copy, and CLAUDE.md to match the new osias.trade domain and the
osias-trade GitHub org.

No wire-protocol changes — purely internal naming plus user-facing
strings.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Tn7uDYjTuZEbLPwpEiSCUw
This commit is contained in:
2026-09-08 12:32:53 +02:00
co-authored by claude
parent ca66c2e1b3
commit 59157c7e76
21 changed files with 129 additions and 129 deletions
+19 -19
View File
@@ -1,7 +1,7 @@
import type { ConnectionStatus, LockState, ThresholdSettings } from './types';
/** browser.storage.local key backing the lock state seam in the background script. */
export const LOCK_STATE_STORAGE_KEY = 'nexa:lockState';
export const LOCK_STATE_STORAGE_KEY = 'osias:lockState';
/**
* Typed message contracts between background <-> content scripts <-> popup.
@@ -12,30 +12,30 @@ export const LOCK_STATE_STORAGE_KEY = 'nexa:lockState';
* in ../../CLAUDE.md) — only the WS client (ws-client.ts) may apply a new
* lock state, and only because the server told it to.
*/
export type NexaMessage =
| { type: 'nexa:get-lock-state' }
| { type: 'nexa:lock-state-changed'; state: LockState }
| { type: 'nexa:get-connection-status' }
| { type: 'nexa:connection-status-changed'; status: ConnectionStatus }
| { type: 'nexa:open-popup' }
export type OsiasMessage =
| { type: 'osias:get-lock-state' }
| { type: 'osias:lock-state-changed'; state: LockState }
| { type: 'osias:get-connection-status' }
| { type: 'osias:connection-status-changed'; status: ConnectionStatus }
| { type: 'osias:open-popup' }
// Wallet auth (content script <-> background). See
// content-scripts/wallet-connect.ts and background/wallet-auth.ts.
| { type: 'nexa:wallet-connected'; walletAddress: string }
| { type: 'nexa:wallet-disconnected' }
| { type: 'nexa:wallet-sign-request'; nonce: string }
| { type: 'nexa:request-wallet-connect' }
| { type: 'nexa:wallet-disconnect-request' }
| { type: 'nexa:switch-account-request' }
| { type: 'osias:wallet-connected'; walletAddress: string }
| { type: 'osias:wallet-disconnected' }
| { type: 'osias:wallet-sign-request'; nonce: string }
| { type: 'osias:request-wallet-connect' }
| { type: 'osias:wallet-disconnect-request' }
| { type: 'osias:switch-account-request' }
// Sign-out / switch account (popup -> background). See entrypoints/popup/App.tsx.
| { type: 'nexa:sign-out' }
| { type: 'nexa:switch-account' }
| { type: 'osias:sign-out' }
| { type: 'osias:switch-account' }
// Loss-threshold settings (popup -> background -> GET/PATCH /me/settings).
// See background/settings-client.ts and entrypoints/popup/App.tsx.
| { type: 'nexa:get-settings' }
| { type: 'nexa:update-settings'; settings: Partial<ThresholdSettings> };
| { type: 'osias:get-settings' }
| { type: 'osias:update-settings'; settings: Partial<ThresholdSettings> };
/** Response shape for 'nexa:get-settings'/'nexa:update-settings', returned via sendResponse. */
/** Response shape for 'osias:get-settings'/'osias:update-settings', returned via sendResponse. */
export type SettingsResult = { settings: ThresholdSettings } | { error: string };
/** Response shape for 'nexa:wallet-sign-request', returned via sendResponse (not a dispatched NexaMessage). */
/** Response shape for 'osias:wallet-sign-request', returned via sendResponse (not a dispatched OsiasMessage). */
export type WalletSignResult = { signature: string } | { error: string };