Skip to content

Interface: AiuiPluginOptions

Defined in: index.ts:56

Properties

devKeys?

optional devKeys?: VendorProvider[]

Defined in: index.ts:78

OPT-IN, DEV-SERVE ONLY: inject these vendors' API keys into served pages as window.__AIUI__.devKeys (e.g. devKeys: ["openai"] for an embedded oracle). Resolution is the house vendor-key machinery (aiui-util): a source checkout honors the environment first, then the OS vault; an installed aiui reads the vault only (aiui keys set <provider>). The seeding plugin applies to serve alone — a production bundle structurally cannot contain a key — but every DEV-SERVED page carries it (LAN-readable under server.host: true), which is why this is never on by default.


locator?

optional locator?: boolean | SourceLocatorViteOptions

Defined in: index.ts:62

The locator pass's options (factories, stampJsx, include/exclude). true/omitted = defaults; false disables the pass entirely (rare — durable factory identity dies with it).


sourceRoot?

optional sourceRoot?: string

Defined in: index.ts:67

The app's source root for absolutizing stamps (dev-only injection); defaults to the Vite root at config-resolve time.