- Declare data_collection_permissions in browser_specific_settings.gecko (Firefox 140+/AMO validation requirement) to reflect wallet address, auth signature, and trading-identity data sent to the backend. - Replace innerHTML assignments in blur-disable.ts and toast.ts with DOM construction (createElementNS/createElement) to clear the AMO linter's unsafe-innerHTML warning on content.js. - Add build instructions to README.md for AMO's source code submission requirement, triggered by WXT/Vite's bundling and minification. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01HoMzqFw3d93hG6c9xB4thU
35 lines
1.5 KiB
TypeScript
35 lines
1.5 KiB
TypeScript
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: '[email protected]',
|
|
// 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: [],
|
|
},
|
|
},
|
|
},
|
|
},
|
|
});
|