Skip to content

An agentic browser harness: an AI side panel & orb in your own logged-in Chrome, Edge, Arc, Brave or even Firefox run by the agent/subscription you already use (Claude Code, Codex, Antigravity). Free, open source, no API key. Also an MCP server.

chore(extension): lock the extension to the v0.8.0 build the stores are reviewing — store-lock.json lists every file of it, and CI and the release fail on any change until a new store submission rewrites it

Shahriar7a7b30ce4914
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 611859b..47bbdb4 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -46,6 +46,11 @@ jobs:
node "$YARN" build
node "$YARN" daemon:build
+ - name: Keep the extension the stores have
+ # Store copies update on the stores' schedule, so the extension changes only with a new
+ # store submission: src/extension/store-lock.json lists every file of that build.
+ run: node scripts/extension-lock.ts
+
# The daemon on Windows, where an npm-installed agent is a .cmd shim, a path has backslashes, a
# kill takes nothing with it and a file has no POSIX mode. The extension's tests do not reach
# the platform, so only the daemon project runs here.
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 7098892..046b663 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -118,6 +118,11 @@ jobs:
}
done
+ - name: Verify the extension is the build the stores have
+ # The unpacked zip, the npm package and both apps ship this same extension, so a release
+ # never puts one in front of people that the stores have not reviewed.
+ run: node scripts/extension-lock.ts
+
- name: Pack and smoke-test the npm tarball
# `npm pack` runs src/daemon/scripts/stage-extension.mjs through prepack, so this exercises
# the same path a maintainer gets locally. Everything below runs against the real
diff --git a/scripts/extension-lock.ts b/scripts/extension-lock.ts
new file mode 100644
index 0000000..87d8a74
--- /dev/null
+++ b/scripts/extension-lock.ts
@@ -0,0 +1,75 @@
+import { createHash } from 'node:crypto';
+import { readFileSync, readdirSync, writeFileSync } from 'node:fs';
+import { join, relative } from 'node:path';
+
+const LOCK = 'src/extension/store-lock.json';
+
+interface Lock {
+ version: string;
+ why: string;
+ files: Record<string, string>;
+}
+
+const [command = 'check', build = 'dist/chrome-mv3'] = process.argv.slice(2);
+
+function filesOf(dir: string): string[] {
+ return readdirSync(dir, { recursive: true, withFileTypes: true })
+ .filter((entry) => entry.isFile())
+ .map((entry) => relative(dir, join(entry.parentPath, entry.name)))
+ .sort();
+}
+
+/** The manifest's version is left out, so a Bridge-only release can relabel the same build. */
+function contentOf(path: string): Buffer {
+ const bytes = readFileSync(join(build, path));
+ if (path !== 'manifest.json') return bytes;
+ const { version: _version, ...rest } = JSON.parse(bytes.toString('utf8'));
+ return Buffer.from(JSON.stringify(rest));
+}
+
+function hashesOf(): Record<string, string> {
+ return Object.fromEntries(filesOf(build).map((path) => [path, createHash('sha256').update(contentOf(path)).digest('hex')]));
+}
+
+function write(): void {
+ const { version } = JSON.parse(readFileSync(join(build, 'manifest.json'), 'utf8')) as { version: string };
+ const lock: Lock = {
+ version,
+ why: `The Chrome Web Store and Edge Add-ons are reviewing this build of v${version}. Until they publish it, a change that alters the built extension waits for the next store submission; the Bridge, the CLI and the apps can change freely.`,
+ files: hashesOf(),
+ };
+ writeFileSync(LOCK, `${JSON.stringify(lock, null, 2)}\n`);
+ console.log(`Locked ${Object.keys(lock.files).length} files of the v${version} store build in ${LOCK}.`);
+}
+
+function check(): void {
+ const lock = JSON.parse(readFileSync(LOCK, 'utf8')) as Lock;
+ const built = hashesOf();
+ const paths = [...new Set([...Object.keys(lock.files), ...Object.keys(built)])].sort();
+ const drift = paths.flatMap((path) => {
+ if (!(path in built)) return [` missing ${path}`];
+ if (!(path in lock.files)) return [` added ${path}`];
+ return lock.files[path] === built[path] ? [] : [` changed ${path}`];
+ });
+ if (drift.length === 0) {
+ console.log(`${build} is the v${lock.version} store build, file for file.`);
+ return;
+ }
+ console.error(
+ [
+ `${build} is not the v${lock.version} build the stores have:`,
+ ...drift,
+ '',
+ lock.why,
+ `To submit a new store build on purpose: yarn build, then node scripts/extension-lock.ts write, and upload that zip to both stores.`,
+ ].join('\n'),
+ );
+ process.exit(1);
+}
+
+if (command === 'write') write();
+else if (command === 'check') check();
+else {
+ console.error('usage: node scripts/extension-lock.ts [check|write] [build dir, default dist/chrome-mv3]');
+ process.exit(1);
+}
diff --git a/src/extension/store-lock.json b/src/extension/store-lock.json
new file mode 100644
index 0000000..4535160
--- /dev/null
+++ b/src/extension/store-lock.json
@@ -0,0 +1,32 @@
+{
+ "version": "0.8.0",
+ "why": "The Chrome Web Store and Edge Add-ons are reviewing this build of v0.8.0. Until they publish it, a change that alters the built extension waits for the next store submission; the Bridge, the CLI and the apps can change freely.",
+ "files": {
+ "assets/globals-BuqLaoYV.css": "9a62e993456d0db956fc214998faea4c9101c49b4eefff2c65010b75a20a00f7",
+ "background.js": "3cadf223caf1d897799891490189c1ada61e8b256cfc08012d16d900461287ea",
+ "chunks/browser-B79nNR8W.js": "12aa04600ac873160020284ae059cf62b327909650443a869b640aa8751723f3",
+ "chunks/daemon-link-BHqyAvPt.js": "1dc9ca188cb47d54abdebffec148460fea9aca7818874cc7245ca8c4ae18377f",
+ "chunks/dictation-BsvuskLp.js": "3c1d3dc9612837bbc4c0bd5dadb028f277f9a6a0b600d1927a151894be924ba1",
+ "chunks/globals-Dut_1BgH.js": "c46be5f8b341fe9937d5545bdaa071d7b07c9bd555ef46144348aee157beb6bc",
+ "chunks/mic-Z5TfY0XT.js": "b1eba9e0b45a3422ade1f7b4068f43ed5401c384087c69d83c3525864dc7fdb1",
+ "chunks/mic-permission-BJHcgxX1.js": "f853a4c153bb635599b7e097f386c7e67eed54513f03e406095964232b598a84",
+ "chunks/options-B95Qjgtb.js": "ac000f43d34fed98b14379dc6db3143fc1a51703bcf0a8292df43c21e084b26e",
+ "chunks/popup-CZJJP60k.js": "7c819b5f38cc7658d0f6f1c73f2afb99885fbf932e4da2b36413e05d8d0d287e",
+ "chunks/recognition-Cv5EBW4W.js": "412595f3c17f46572fb636c37a5fe5a7b32bfd8a53801817a16f7f5107b1b79d",
+ "chunks/sidepanel-Dgid0aw6.js": "7d3a73a71b5190f66e0924c4799ac7c4f3977e9d0f5122505bf76b408ed06e40",
+ "chunks/textarea-Ow2ayhPu.js": "2f1299a41d3a8f5d0934e3895e23582d28f6a3a487abc6bc8b3391e8e95228b4",
+ "chunks/use-voice-composer-NWfQ_Gl_.js": "a395541514f383c76df7636fd68971358a88c7335b2d5f574127dc1e9c8fde17",
+ "content-scripts/content.js": "f6d8f97eaafe02fcf32a1cdef240dc53160a5c27edfd83a7648da707909e2802",
+ "dictation.html": "a32c0d19b9ea496f18d0b1702f407fc8d8c9d1fb10505de8d9b02ee5908e5144",
+ "icon/128.png": "2dfa7b45d11ae0597a393f6e720626d8d1c6ac187cde07e7d17633460b486fb0",
+ "icon/16.png": "67aec4b0ff1b0284837af35527af77be4f77e40f5f6460c918ef7644147bdfc0",
+ "icon/32.png": "4fe007f89b3af9ef14edde0eba3f2aee3a6f347aba584bc40a3a13955c1eb005",
+ "icon/48.png": "6c08d19558c3a29ef20bcddce7d5a2ca5f19815d5ec16c8f8dfe53d0618cb11f",
+ "icon/96.png": "9f953640ca7a1e3e6f02b1b75e1060cf5c17e5c28e0ab67f87f4b5af6a5cd84e",
+ "manifest.json": "e05086c9204d84c566b4347725da4682a9ffce79a71d9ef447d80066c4e4c69b",
+ "mic-permission.html": "7587e9fb6c2f088272a69e34d1ce38666315e2fa38b123bbc5a735f651a844b0",
+ "options.html": "5f57d799cfb8065be2bd7c8649ebe739a65eb9fb1d20bae7986154105307d8e3",
+ "popup.html": "8644c32a287223d739635b056f8a60b01a7087a96a10a86f56fc203f04d3d448",
+ "sidepanel.html": "d472a3834e461ede11abf5b7d924faf295b10ca51e61200e24f7efab5093e325"
+ }
+}