Clean up and fixes

This commit is contained in:
2026-02-08 02:32:50 +00:00
parent eb1bf9020e
commit da096af0fa
36 changed files with 2119 additions and 1751 deletions
+11 -11
View File
@@ -2,8 +2,8 @@
* Shared types for the CLI TUI.
*/
import type { WalletController } from '../controllers/wallet-controller.js';
import type { InvitationController } from '../controllers/invitation-controller.js';
import type { AppService } from '../services/app.js';
import type { AppConfig } from '../app.js';
/**
* Screen names for navigation.
@@ -51,13 +51,17 @@ export interface NavigationContextType {
}
/**
* App context interface - provides access to controllers and app-level functions.
* App context interface - provides access to AppService and app-level functions.
*/
export interface AppContextType {
/** Wallet controller for wallet operations */
walletController: WalletController;
/** Invitation controller for invitation operations */
invitationController: InvitationController;
/** AppService instance (null before wallet initialization) */
appService: AppService | null;
/** Initialize wallet with seed phrase and create AppService */
initializeWallet: (seed: string) => Promise<void>;
/** Whether the wallet is initialized */
isWalletInitialized: boolean;
/** Application configuration */
config: AppConfig;
/** Show an error message dialog */
showError: (message: string) => void;
/** Show an info message dialog */
@@ -68,10 +72,6 @@ export interface AppContextType {
exit: () => void;
/** Update status bar message */
setStatus: (message: string) => void;
/** Whether the wallet is initialized */
isWalletInitialized: boolean;
/** Set wallet initialized state */
setWalletInitialized: (initialized: boolean) => void;
}
/**