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(ci): lift the extension store lock — both stores have published v0.8.0, so the extension may change again; drop store-lock.json and scripts/extension-lock.ts, their steps in CI and the release, and the unfreeze step of a store submission

Shahriarfd3816b5026c
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 47bbdb4..611859b 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -46,11 +46,6 @@ 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 25a795f..10fed27 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -118,11 +118,6 @@ 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/docs/internals/stores.md b/docs/internals/stores.md
index 07d1a91..630ba0a 100644
--- a/docs/internals/stores.md
+++ b/docs/internals/stores.md
@@ -32,19 +32,14 @@ once more.
## Submitting an update
-1. **Unfreeze the extension.** While a build is in review or freshly published, the extension does
- not change: [`src/extension/store-lock.json`](../../src/extension/store-lock.json) holds a hash
- of every file in it, and `node scripts/extension-lock.ts` fails CI and the release on any
- difference. The pull request that changes the extension runs `yarn build`, then
- `node scripts/extension-lock.ts write`.
-2. **Pick a version above every one spent.** The Chrome Web Store has seen 0.7.11 and 0.8.0, and
+1. **Pick a version above every one spent.** The Chrome Web Store has seen 0.7.11 and 0.8.0, and
Edge Add-ons 0.8.0. A store refuses a number it has already accepted, even for a build it
rejected.
-3. **Check the permissions** against the table below. A new permission needs a line here before it
+2. **Check the permissions** against the table below. A new permission needs a line here before it
goes up, and a permission nothing uses comes out (`activeTab` is the current candidate).
-4. **`yarn zip`**, and upload `dist/browsentic-<version>-chrome.zip` to both stores. The Edge zip is
+3. **`yarn zip`**, and upload `dist/browsentic-<version>-chrome.zip` to both stores. The Edge zip is
the same file: only Firefox branches the code, and Edge is told apart at run time.
-5. **Keep the window.** A store copy updates on the browser's schedule, so a new extension must
+4. **Keep the window.** A store copy updates on the browser's schedule, so a new extension must
still work with the Bridge already out there, and a new Bridge with the extension already out
there. The rule is in [transport.md](transport.md#protocol-version): additive changes bump
`SOCKET_PROTOCOL_VERSION` and are sent only to a peer that speaks them.
diff --git a/scripts/extension-lock.ts b/scripts/extension-lock.ts
deleted file mode 100644
index 87d8a74..0000000
--- a/scripts/extension-lock.ts
+++ /dev/null
@@ -1,75 +0,0 @@
-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
deleted file mode 100644
index 4535160..0000000
--- a/src/extension/store-lock.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "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"
- }
-}