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:
@@ -8,7 +8,7 @@ import {
|
||||
type LockState,
|
||||
type ThresholdSettings,
|
||||
} from '@/shared/types';
|
||||
import type { NexaMessage, SettingsResult } from '@/shared/messaging';
|
||||
import type { OsiasMessage, SettingsResult } from '@/shared/messaging';
|
||||
|
||||
const CONNECTION_LABELS: Record<ConnectionStatus, string> = {
|
||||
connecting: 'Connecting…',
|
||||
@@ -23,17 +23,17 @@ export function App() {
|
||||
|
||||
useEffect(() => {
|
||||
browser.runtime
|
||||
.sendMessage({ type: 'nexa:get-lock-state' } satisfies NexaMessage)
|
||||
.sendMessage({ type: 'osias:get-lock-state' } satisfies OsiasMessage)
|
||||
.then((state: LockState | undefined) => setLockState(state ?? DEFAULT_LOCK_STATE));
|
||||
|
||||
browser.runtime
|
||||
.sendMessage({ type: 'nexa:get-connection-status' } satisfies NexaMessage)
|
||||
.sendMessage({ type: 'osias:get-connection-status' } satisfies OsiasMessage)
|
||||
.then((status: ConnectionStatus | undefined) => setConnectionStatus(status ?? DEFAULT_CONNECTION_STATUS));
|
||||
|
||||
const listener = (message: NexaMessage) => {
|
||||
if (message?.type === 'nexa:lock-state-changed') {
|
||||
const listener = (message: OsiasMessage) => {
|
||||
if (message?.type === 'osias:lock-state-changed') {
|
||||
setLockState(message.state);
|
||||
} else if (message?.type === 'nexa:connection-status-changed') {
|
||||
} else if (message?.type === 'osias:connection-status-changed') {
|
||||
setConnectionStatus(message.status);
|
||||
}
|
||||
};
|
||||
@@ -42,17 +42,17 @@ export function App() {
|
||||
}, []);
|
||||
|
||||
function signOut(): void {
|
||||
void browser.runtime.sendMessage({ type: 'nexa:sign-out' } satisfies NexaMessage);
|
||||
void browser.runtime.sendMessage({ type: 'osias:sign-out' } satisfies OsiasMessage);
|
||||
}
|
||||
|
||||
function switchAccount(): void {
|
||||
void browser.runtime.sendMessage({ type: 'nexa:switch-account' } satisfies NexaMessage);
|
||||
void browser.runtime.sendMessage({ type: 'osias:switch-account' } satisfies OsiasMessage);
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
<header>
|
||||
<h1>Nexa</h1>
|
||||
<h1>Osias</h1>
|
||||
<p className="subtitle">Trading companion</p>
|
||||
</header>
|
||||
|
||||
@@ -140,7 +140,7 @@ function ThresholdsPanel() {
|
||||
setStatus('loading');
|
||||
setError(undefined);
|
||||
browser.runtime
|
||||
.sendMessage({ type: 'nexa:get-settings' } satisfies NexaMessage)
|
||||
.sendMessage({ type: 'osias:get-settings' } satisfies OsiasMessage)
|
||||
.then((result: SettingsResult | undefined) => {
|
||||
if (result && 'settings' in result) {
|
||||
setForm(toForm(result.settings));
|
||||
@@ -160,7 +160,7 @@ function ThresholdsPanel() {
|
||||
setStatus('saving');
|
||||
setError(undefined);
|
||||
browser.runtime
|
||||
.sendMessage({ type: 'nexa:update-settings', settings: fromForm(form) } satisfies NexaMessage)
|
||||
.sendMessage({ type: 'osias:update-settings', settings: fromForm(form) } satisfies OsiasMessage)
|
||||
.then((result: SettingsResult | undefined) => {
|
||||
setStatus('idle');
|
||||
if (result && 'settings' in result) {
|
||||
|
||||
Reference in New Issue
Block a user