search-with-chatgpt-powered.../web-ext-config.mjs
golem f057c66155 doc: add extension options panel design spec
Design for an options panel reachable from about:addons, configuring a
context-menu entry on selected text and an Alt+Shift+G shortcut. Adds
storage and menus permissions only, both in Firefox's no-prompt class, so
the install dialog gains no lines and data_collection_permissions stays
"none". The gpt <query> search provider is deliberately untouched.

Technical claims were verified rather than assumed: MV2 background
type:"module" works from Firefox 112 (tested in 153.0.1), so no background
HTML shim is needed; package.json needs "type":"module" or node --test
fails on Node 22.0-22.6; the ChatGPT model/hints/temporary-chat params are
undocumented and unreliable, so every label is written at hint strength.
q= no longer auto-submits, only prefills.

Also excludes docs/ and test/ from the packaged ZIP. Verified: without
this the spec doc itself shipped inside the extension, and a bare glob
alone leaves empty directory entries behind.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-29 20:35:25 -06:00

27 lines
592 B
JavaScript

export default {
sourceDir: ".",
artifactsDir: "web-ext-artifacts",
ignoreFiles: [
"AGENTS.md",
"CHANGELOG.md",
"README.md",
"package.json",
"package-lock.json",
"web-ext-config.mjs",
// Directories need both the bare name and the glob: the glob alone removes
// the files but leaves an empty directory entry in the ZIP.
"docs",
"docs/**",
"test",
"test/**",
"web-ext-artifacts/**",
],
build: {
filename: "search-with-chatgpt-firefox-{version}.zip",
overwriteDest: true,
},
lint: {
warningsAsErrors: true,
},
};