/** * First-spawn wizard. Hatches a leviathan: * 1. Generate Solana keypair (identity/wallet.ts) * 2. Read three-laws.txt → SHA-256 → constitution hash * 3. Mint Core asset + register Agent Identity via Metaplex Agent Registry * 4. Write SHELL.md from template * 5. Insert into shell.db */ import { Keypair } from '@solana/web3.js'; import { SpawnOnchainResult } from '../identity/spawn-onchain.js'; import { type InstallResult } from '../skills/install.js'; export interface WizardInput { name: string; spawnPrompt: string; creator: string; rpcUrl: string; network?: 'mainnet' | 'devnet'; nftMetadataUri?: string; description?: string; services?: { name: string; endpoint: string; version?: string; }[]; } export interface WizardOutput { keypair: Keypair; pubkey: string; onchain: SpawnOnchainResult; constitutionHash: string; shellPath: string; skills: InstallResult; } export declare function runSpawnWizard(input: WizardInput): Promise; /** Resume an existing leviathan — load keypair + state. Used on every boot after the first. */ export declare function resumeLeviathan(): Keypair;