import { BACKEND_HTTP_URL } from './src/shared/config'; import { defineConfig } from 'wxt'; // See https://wxt.dev/api/config.html export default defineConfig({ srcDir: 'src', modules: ['@wxt-dev/module-react'], // Target Manifest V3 on both Chromium and Firefox (modern Firefox / Zen support it). manifestVersion: 3, manifest: { name: 'Osias', description: 'Your blockchain powered agent to help with your trading emotions.', permissions: ['storage'], // axiom.trade: the site adapter target. The other entry is the Osias backend. host_permissions: ['https://axiom.trade/*', BACKEND_HTTP_URL + "/*"], browser_specific_settings: { gecko: { // Placeholder id for local/dev builds; replace before publishing to AMO. id: 'osias-extension@osias.trade', // Firefox-required data collection disclosure (Firefox 140+ / AMO // validation). Reflects what the extension actually transmits to the // backend: wallet address + signature during Phantom sign-in // (authenticationInfo, personallyIdentifyingInfo), and the wallet // identity that ties the account to on-chain trading activity // (financialAndPaymentInfo). See copilot/CLAUDE.md's "Backend // connection" and "Wallet auth" sections. data_collection_permissions: { required: ['authenticationInfo', 'personallyIdentifyingInfo', 'financialAndPaymentInfo'], optional: [], }, }, }, }, });