@amoree-code/ocean 2.11.0 → 2.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,6 +5,7 @@ import { BrowserService, } from "@ocean/services/browser/browser-service.js";
5
5
  import { BrowserSessionManager, browserDownloadsPath, } from "@ocean/services/browser/browser-session.js";
6
6
  import { BrowserTaskRunner } from "@ocean/services/browser/browser-task-runner.js";
7
7
  import { PlaywrightBrowserProvider } from "../../infrastructure/providers/playwright-browser-provider.js";
8
+ import { browserBlocklist, browserConnection, browserProfile, browserUsage, useFirefox, } from "./browser-settings.js";
8
9
  // `ocean browser use <name|path>`: which Chromium browser `dev.ocean/chrome-devtools` attaches
9
10
  // to, stored on this machine (macOS keychain) and read by every client's launch. `use chrome`
10
11
  // clears it back to the default. `ocean browser attach` lists what can be attached right now.
@@ -20,8 +21,10 @@ async function runBrowserChoice(action, args) {
20
21
  });
21
22
  }
22
23
  const choice = args[0];
24
+ if (choice?.toLowerCase() === "firefox")
25
+ return print(useFirefox(store));
23
26
  if (!choice)
24
- throw new Error(`Usage: ocean browser use <${CHROMIUM_BROWSERS.map((each) => each.id).join("|")}|/absolute/profile/path>`);
27
+ throw new Error(`Usage: ocean browser use <${CHROMIUM_BROWSERS.map((each) => each.id).join("|")}|firefox|/absolute/profile/path>`);
25
28
  const root = resolveBrowserChoice(choice);
26
29
  if (root === browserProfileRoot("chrome"))
27
30
  store.remove(BROWSER_CAPABILITY, BROWSER_PROFILE_VARIABLE);
@@ -37,6 +40,14 @@ async function runBrowserChoice(action, args) {
37
40
  export async function runBrowserCommand(action, args) {
38
41
  if (action === "use" || action === "attach")
39
42
  return runBrowserChoice(action, args);
43
+ if (action === "profile")
44
+ return print(browserProfile(keychainStore(), args[0]));
45
+ if (action === "block")
46
+ return print(browserBlocklist(keychainStore(), args[0], args[1]));
47
+ if (action === "usage")
48
+ return print(browserUsage(undefined, { days: numberFlag(args, "--days") }));
49
+ if (action === "status" || action === "stop")
50
+ return browserConnection(action);
40
51
  const store = await openSessionStore();
41
52
  const manager = new BrowserSessionManager(store, new BrowserService(new PlaywrightBrowserProvider()));
42
53
  const runner = new BrowserTaskRunner(manager);
@@ -147,6 +158,6 @@ function print(value) {
147
158
  console.log(JSON.stringify(value, null, 2));
148
159
  }
149
160
  function usage() {
150
- console.error("Usage: ocean browser use|attach|detect|open|show|events|close|approve|navigate|read|observe|extract|click|type|replace-text|select|scroll|wait|upload|download|submit|run");
161
+ console.error("Usage: ocean browser use|attach|profile|block|usage|status|stop|detect|open|show|events|close|approve|navigate|read|observe|extract|click|type|replace-text|select|scroll|wait|upload|download|submit|run");
151
162
  }
152
163
  //# sourceMappingURL=browser-command.js.map
@@ -1,4 +1,4 @@
1
- import { existsSync } from "node:fs";
1
+ import { existsSync, readFileSync } from "node:fs";
2
2
  import path from "node:path";
3
3
  import { mcpServerFile } from "@ocean/market/adapters/mcp-adapter.js";
4
4
  import { marketplacePaths } from "@ocean/market/install/default-marketplace.js";
@@ -9,6 +9,20 @@ export const BROWSER_CAPABILITIES = [
9
9
  "dev.ocean/chrome-devtools",
10
10
  "dev.ocean/browser",
11
11
  ];
12
+ // chrome-devtools-mcp attaches with --autoConnect, which needs the inspect page's remote
13
+ // debugging switch: Chromium 144 or later.
14
+ export const MIN_AUTO_CONNECT_MAJOR = 144;
15
+ // The Chromium major the browser last ran, from the `Last Version` file it keeps in its profile
16
+ // root (Brave writes the Chromium version there too). No DevTools connection, so no prompt.
17
+ export function browserMajorVersion(root) {
18
+ try {
19
+ const major = Number.parseInt(readFileSync(path.join(root, "Last Version"), "utf8"), 10);
20
+ return Number.isInteger(major) ? major : undefined;
21
+ }
22
+ catch {
23
+ return undefined;
24
+ }
25
+ }
12
26
  // `ocean doctor`: once a browser capability is installed, whether the chosen browser is there
13
27
  // to attach to — and, when it is not, whether another Chromium browser is. Nothing installed is
14
28
  // nothing to report.
@@ -26,6 +40,9 @@ export async function browserFindings(options = {}) {
26
40
  stored: () => keychainStore().get(BROWSER_CAPABILITY, BROWSER_PROFILE_VARIABLE),
27
41
  });
28
42
  const label = browserLabel(root);
43
+ const major = (options.major ?? browserMajorVersion)(root);
44
+ if (major !== undefined && major < MIN_AUTO_CONNECT_MAJOR)
45
+ return finding("WARN", `${label} is on Chromium ${major}; attaching needs ${MIN_AUTO_CONNECT_MAJOR} or later: update the browser`);
29
46
  if (await probe(path.join(root, "DevToolsActivePort")))
30
47
  return finding("OK", `${installed.join(", ")} installed and ${label} debugging is listening`);
31
48
  const other = (await listeningBrowsers({ listening: probe })).find((each) => each.root !== root);
@@ -0,0 +1,173 @@
1
+ import { spawnSync } from "node:child_process";
2
+ import { existsSync, readFileSync } from "node:fs";
3
+ import os from "node:os";
4
+ import path from "node:path";
5
+ import { mcpServerFile } from "@ocean/market/adapters/mcp-adapter.js";
6
+ import { marketplacePaths } from "@ocean/market/install/default-marketplace.js";
7
+ import { BROWSER_CAPABILITY } from "@ocean/market/mcp/chrome-debugging.js";
8
+ // Settings of ocean-browser-mcp (T-324), stored like `ocean browser use`: one value per
9
+ // variable in the secret store, read by every client's launch of `dev.ocean/chrome-devtools`.
10
+ // Restart open clients after a change.
11
+ export const PROFILE_VARIABLE = "OCEAN_BROWSER_PROFILE";
12
+ export const BLOCKED_VARIABLE = "OCEAN_BROWSER_BLOCKED";
13
+ export const BROWSER_PROFILES = ["standard", "full", "lean", "slim"];
14
+ const DEFAULT_PROFILE = "standard";
15
+ // `dev.ocean/firefox-devtools` keeps its own profile folder once `ocean browser use firefox`
16
+ // names one; unset, Mozilla's server starts a fresh temporary profile each run.
17
+ export const FIREFOX_CAPABILITY = "dev.ocean/firefox-devtools";
18
+ export const FIREFOX_PROFILE_VARIABLE = "OCEAN_FIREFOX_PROFILE";
19
+ export function firefoxProfileDir(env = process.env) {
20
+ const base = env.XDG_STATE_HOME || path.join(os.homedir(), ".local", "state");
21
+ return path.join(base, "ocean-firefox", "profile");
22
+ }
23
+ export function useFirefox(store, env = process.env) {
24
+ const profile = firefoxProfileDir(env);
25
+ store.set(FIREFOX_CAPABILITY, FIREFOX_PROFILE_VARIABLE, profile);
26
+ return {
27
+ browser: "Firefox",
28
+ capability: FIREFOX_CAPABILITY,
29
+ profile,
30
+ in: store.name,
31
+ next: `ocean market add ${FIREFOX_CAPABILITY} (once), then restart open clients. To drive your own running Firefox instead, start it with --marionette --remote-debugging-port and set CONNECT_EXISTING=true.`,
32
+ };
33
+ }
34
+ // `ocean browser profile [standard|full|lean|slim]`: which tools clients see.
35
+ export function browserProfile(store, name) {
36
+ if (name !== undefined) {
37
+ const chosen = name.trim().toLowerCase();
38
+ if (!BROWSER_PROFILES.includes(chosen))
39
+ throw new Error(`Usage: ocean browser profile <${BROWSER_PROFILES.join("|")}>`);
40
+ if (chosen === DEFAULT_PROFILE)
41
+ store.remove(BROWSER_CAPABILITY, PROFILE_VARIABLE);
42
+ else
43
+ store.set(BROWSER_CAPABILITY, PROFILE_VARIABLE, chosen);
44
+ }
45
+ return {
46
+ profile: store.get(BROWSER_CAPABILITY, PROFILE_VARIABLE) ?? DEFAULT_PROFILE,
47
+ profiles: {
48
+ standard: "default: browsing, forms, network, console, Lighthouse, traces",
49
+ full: "every upstream tool",
50
+ lean: "browsing only: no performance, emulation, CSS or drag tools",
51
+ slim: "3 tools: navigate, evaluate, screenshot",
52
+ },
53
+ ...(name === undefined ? {} : { next: "restart open clients" }),
54
+ };
55
+ }
56
+ // `ocean browser block [list|add <pattern>|rm <pattern>]`: URL patterns
57
+ // (https://urlpattern.spec.whatwg.org/) the browser refuses while an agent is attached.
58
+ // Stored comma-separated: the keychain's command form keeps a value on one line.
59
+ export function browserBlocklist(store, action = "list", pattern) {
60
+ const read = () => (store.get(BROWSER_CAPABILITY, BLOCKED_VARIABLE) ?? "")
61
+ .split(/[\n,]/)
62
+ .map((each) => each.trim())
63
+ .filter(Boolean);
64
+ let patterns = read();
65
+ if (action === "add" || action === "rm") {
66
+ const value = pattern?.trim();
67
+ if (!value || value.includes(","))
68
+ throw new Error(`Usage: ocean browser block ${action} <url-pattern> (no commas), e.g. https://*.mybank.com/*`);
69
+ patterns =
70
+ action === "add"
71
+ ? [...new Set([...patterns, value])]
72
+ : patterns.filter((each) => each !== value);
73
+ if (patterns.length)
74
+ store.set(BROWSER_CAPABILITY, BLOCKED_VARIABLE, patterns.join(","));
75
+ else
76
+ store.remove(BROWSER_CAPABILITY, BLOCKED_VARIABLE);
77
+ }
78
+ else if (action !== "list")
79
+ throw new Error("Usage: ocean browser block list|add|rm <url-pattern>");
80
+ return {
81
+ blocked: patterns,
82
+ ...(action === "list" ? {} : { next: "restart open clients" }),
83
+ };
84
+ }
85
+ // The wrapper's own state folder (usage log, screenshot previews); same rule as its stateDir().
86
+ export function browserStateDir(env = process.env) {
87
+ if (env.OCEAN_BROWSER_STATE_DIR)
88
+ return env.OCEAN_BROWSER_STATE_DIR;
89
+ const base = env.XDG_STATE_HOME || path.join(os.homedir(), ".local", "state");
90
+ return path.join(base, "ocean-browser-mcp");
91
+ }
92
+ // `ocean browser usage [--days N]`: totals per tool from the wrapper's usage log. Text is
93
+ // counted in characters (about 4 per token); images in KB as sent.
94
+ export function browserUsage(dir = browserStateDir(), options = {}) {
95
+ const now = options.now ?? Date.now();
96
+ const since = options.days ? now - options.days * 86_400_000 : 0;
97
+ const lines = [];
98
+ for (const file of ["usage.1.jsonl", "usage.jsonl"]) {
99
+ const full = path.join(dir, file);
100
+ if (!existsSync(full))
101
+ continue;
102
+ for (const raw of readFileSync(full, "utf8").split("\n")) {
103
+ if (!raw.trim())
104
+ continue;
105
+ try {
106
+ const line = JSON.parse(raw);
107
+ if (line.tool && (!since || Date.parse(line.t ?? "") >= since))
108
+ lines.push(line);
109
+ }
110
+ catch {
111
+ // A line cut by a crash is skipped.
112
+ }
113
+ }
114
+ }
115
+ const tools = new Map();
116
+ for (const line of lines) {
117
+ const row = tools.get(line.tool) ?? {
118
+ calls: 0,
119
+ chars: 0,
120
+ imageKB: 0,
121
+ ms: 0,
122
+ errors: 0,
123
+ };
124
+ row.calls += 1;
125
+ row.chars += line.chars ?? 0;
126
+ row.imageKB += line.imageKB ?? 0;
127
+ row.ms += line.ms ?? 0;
128
+ if (line.error)
129
+ row.errors += 1;
130
+ tools.set(line.tool, row);
131
+ }
132
+ const rows = [...tools.entries()]
133
+ .map(([tool, row]) => ({
134
+ tool,
135
+ calls: row.calls,
136
+ textTokens: Math.round(row.chars / 4),
137
+ imageKB: Math.round(row.imageKB),
138
+ avgMs: Math.round(row.ms / row.calls),
139
+ errors: row.errors,
140
+ }))
141
+ .sort((a, b) => b.textTokens - a.textTokens);
142
+ return {
143
+ log: path.join(dir, "usage.jsonl"),
144
+ calls: lines.length,
145
+ textTokens: rows.reduce((sum, row) => sum + row.textTokens, 0),
146
+ imageKB: rows.reduce((sum, row) => sum + row.imageKB, 0),
147
+ since: lines[0]?.t,
148
+ tools: rows,
149
+ };
150
+ }
151
+ // The ocean-browser-mcp version the installed capability runs, so `status`/`stop` talk to the
152
+ // daemons that version started.
153
+ export function installedWrapperVersion(serversRoot = marketplacePaths().mcpServers) {
154
+ try {
155
+ const server = JSON.parse(readFileSync(mcpServerFile(serversRoot, BROWSER_CAPABILITY), "utf8"));
156
+ const found = (server?.server?.packages ?? server?.packages ?? []).find((each) => each?.identifier === "ocean-browser-mcp");
157
+ return found?.version;
158
+ }
159
+ catch {
160
+ return undefined;
161
+ }
162
+ }
163
+ // `ocean browser status|stop`: the wrapper lists or stops its shared background connections
164
+ // (the browser stays open; the next call reconnects and the browser asks to allow it again).
165
+ export function browserConnection(action) {
166
+ const version = installedWrapperVersion();
167
+ if (!version)
168
+ throw new Error(`${BROWSER_CAPABILITY} is not installed: ocean market add ${BROWSER_CAPABILITY}`);
169
+ const result = spawnSync("npx", ["-y", `ocean-browser-mcp@${version}`, action], { stdio: "inherit" });
170
+ if (result.status !== 0)
171
+ process.exitCode = result.status ?? 1;
172
+ }
173
+ //# sourceMappingURL=browser-settings.js.map
@@ -28,7 +28,9 @@ export async function runContextCommand(json = false) {
28
28
  const resolution = await resolveProject(process.cwd());
29
29
  const project = resolution.status === "bound" ? resolution.projectId : null;
30
30
  const tasks = project
31
- ? (await listTasks(undefined, project)).filter((task) => task.state === "active" || task.state === "blocked")
31
+ ? (await listTasks(undefined, project)).filter((task) => task.state === "active" ||
32
+ task.state === "in-qa" ||
33
+ task.state === "blocked")
32
34
  : [];
33
35
  // Unreadable rules are shown as such, never as an empty list.
34
36
  const problems = [];
@@ -134,7 +134,7 @@ export const commandHelp = {
134
134
  ],
135
135
  browser: [
136
136
  "Drive a browser session; uploads and submits need --approve.",
137
- "ocean browser use|attach|detect|open|show|events|close|approve|navigate|read|observe|extract|click|type|replace-text|select|scroll|wait|upload|download|submit|run",
137
+ "ocean browser use|attach|profile|block|usage|status|stop|detect|open|show|events|close|approve|navigate|read|observe|extract|click|type|replace-text|select|scroll|wait|upload|download|submit|run",
138
138
  ],
139
139
  memory: [
140
140
  "Search, read, review and maintain memory records and the brain index.",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "kind": "mcp",
3
3
  "name": "dev.ocean/chrome-devtools",
4
- "description": "Control the owner's real, signed-in Chromium browser (Chrome by default; Brave, Edge, Arc, Vivaldi, Opera or Chromium through `ocean browser use`) through the ocean-browser-mcp package (pinned Chrome DevTools MCP): tabs, navigation, clicks, forms, uploads, screenshots, console and network errors. Reads every open tab and acts inside any signed-in session of the attached browser, for every client wired to it. The browser asks to allow each new connection. The filesystem permission is declared for consent but not enforced at runtime, and the npm package is pinned by version, not by digest.",
4
+ "description": "Control the owner's real, signed-in Chromium browser (Chrome by default; Brave, Edge, Arc, Vivaldi, Opera or Chromium through `ocean browser use`) through the ocean-browser-mcp package (pinned Chrome DevTools MCP): tabs, navigation, clicks, forms, uploads, screenshots, console and network errors. Reads every open tab and acts inside any signed-in session of the attached browser, for every client wired to it. The browser asks to allow the connection once: one background connection (disconnected after 8 idle hours) serves every session; a pointer and a blue frame show which tab the agent is using. Cookies and auth headers are redacted, file:// pages are refused, and URL patterns can be blocked. Writes a usage log (tool names and sizes, no URLs), screenshot previews and oversized page snapshots under ~/.local/state/ocean-browser-mcp (kept 7 days). The filesystem permission is declared for consent but not enforced at runtime, and the npm package is pinned by version, not by digest.",
5
5
  "permissions": {
6
6
  "filesystem": {
7
7
  "read": [
@@ -12,23 +12,32 @@
12
12
  "~/Library/Application Support/Vivaldi",
13
13
  "~/Library/Application Support/com.operasoftware.Opera",
14
14
  "~/Library/Application Support/Arc"
15
- ]
15
+ ],
16
+ "write": ["~/.local/state/ocean-browser-mcp"]
16
17
  },
17
18
  "network": ["registry.npmjs.org", "localhost", "127.0.0.1"],
18
19
  "env": [
19
20
  "CHROME_DEVTOOLS_MCP_NO_UPDATE_CHECKS",
20
- "OCEAN_BROWSER_USER_DATA_DIR"
21
+ "OCEAN_BROWSER_USER_DATA_DIR",
22
+ "OCEAN_BROWSER_PROFILE",
23
+ "OCEAN_BROWSER_BLOCKED",
24
+ "OCEAN_BROWSER_CURSOR",
25
+ "OCEAN_BROWSER_PREVIEW",
26
+ "OCEAN_BROWSER_USAGE",
27
+ "OCEAN_BROWSER_SHARED",
28
+ "OCEAN_BROWSER_IDLE_MIN",
29
+ "OCEAN_BROWSER_SNAPSHOT_MAX_CHARS"
21
30
  ],
22
31
  "exec": ["npx"]
23
32
  },
24
33
  "server": {
25
34
  "name": "dev.ocean/chrome-devtools",
26
- "description": "ocean-browser-mcp runs Chrome DevTools MCP 1.12.0 attached to the owner's running Chromium browser, with usage statistics and CrUX lookups off, so page URLs stay on this machine.",
35
+ "description": "ocean-browser-mcp runs Chrome DevTools MCP 1.13.0 attached to the owner's running Chromium browser, with usage statistics and CrUX lookups off, so page URLs stay on this machine.",
27
36
  "packages": [
28
37
  {
29
38
  "registryType": "npm",
30
39
  "identifier": "ocean-browser-mcp",
31
- "version": "0.2.0",
40
+ "version": "0.3.0",
32
41
  "transport": {
33
42
  "type": "stdio"
34
43
  },
@@ -47,6 +56,46 @@
47
56
  "default": "1",
48
57
  "isRequired": false,
49
58
  "description": "Skips upstream's update check (an npm child process and a registry fetch) on every start; the version is pinned."
59
+ },
60
+ {
61
+ "name": "OCEAN_BROWSER_PROFILE",
62
+ "isRequired": false,
63
+ "description": "Tool profile: standard (default), full, lean or slim. Set with `ocean browser profile <name>`."
64
+ },
65
+ {
66
+ "name": "OCEAN_BROWSER_BLOCKED",
67
+ "isRequired": false,
68
+ "description": "URL patterns the browser refuses while attached, comma- or newline-separated. Set with `ocean browser block`."
69
+ },
70
+ {
71
+ "name": "OCEAN_BROWSER_CURSOR",
72
+ "isRequired": false,
73
+ "description": "0 hides the agent pointer and frame."
74
+ },
75
+ {
76
+ "name": "OCEAN_BROWSER_PREVIEW",
77
+ "isRequired": false,
78
+ "description": "0 stops saving screenshot previews."
79
+ },
80
+ {
81
+ "name": "OCEAN_BROWSER_USAGE",
82
+ "isRequired": false,
83
+ "description": "0 stops the usage log."
84
+ },
85
+ {
86
+ "name": "OCEAN_BROWSER_SHARED",
87
+ "isRequired": false,
88
+ "description": "0 gives each session its own connection (and its own allow prompt)."
89
+ },
90
+ {
91
+ "name": "OCEAN_BROWSER_IDLE_MIN",
92
+ "isRequired": false,
93
+ "description": "Minutes without a call before the shared connection disconnects (default 480; 0 or never keeps it)."
94
+ },
95
+ {
96
+ "name": "OCEAN_BROWSER_SNAPSHOT_MAX_CHARS",
97
+ "isRequired": false,
98
+ "description": "Largest page snapshot sent whole, in characters (default 40000; 0 = no cap). Larger ones keep interactive elements and headings; the whole tree is saved to a file."
50
99
  }
51
100
  ]
52
101
  }
@@ -0,0 +1,71 @@
1
+ {
2
+ "kind": "mcp",
3
+ "name": "dev.ocean/firefox-devtools",
4
+ "description": "Control Firefox through Mozilla's Firefox MCP (WebDriver BiDi): tabs, navigation, clicks, forms, screenshots, console and network. By default it starts its own Firefox with a separate profile, never the owner's daily one; `ocean browser use firefox` keeps that profile between runs. CONNECT_EXISTING=true attaches to a Firefox the owner started with `--marionette --remote-debugging-port` instead, with that session's cookies and logins. On first use it downloads geckodriver from GitHub. The filesystem permission is declared for consent but not enforced at runtime, and the npm package is pinned by version, not by digest.",
5
+ "permissions": {
6
+ "filesystem": {
7
+ "read": ["/Applications/Firefox.app"],
8
+ "write": ["~/.local/state/ocean-firefox", "~/.cache/selenium"]
9
+ },
10
+ "network": [
11
+ "registry.npmjs.org",
12
+ "github.com",
13
+ "objects.githubusercontent.com",
14
+ "release-assets.githubusercontent.com",
15
+ "localhost",
16
+ "127.0.0.1"
17
+ ],
18
+ "env": [
19
+ "OCEAN_FIREFOX_PROFILE",
20
+ "CONNECT_EXISTING",
21
+ "MARIONETTE_PORT",
22
+ "FIREFOX_HEADLESS",
23
+ "TOOL_PRESET"
24
+ ],
25
+ "exec": ["npx"]
26
+ },
27
+ "server": {
28
+ "name": "dev.ocean/firefox-devtools",
29
+ "description": "Mozilla's Firefox MCP 0.11.0: drives Firefox over WebDriver BiDi and Marionette, in a separate profile unless told to attach to a running Firefox.",
30
+ "packages": [
31
+ {
32
+ "registryType": "npm",
33
+ "identifier": "@mozilla/firefox-mcp",
34
+ "version": "0.11.0",
35
+ "transport": { "type": "stdio" },
36
+ "packageArguments": [
37
+ {
38
+ "type": "named",
39
+ "name": "--profile-path",
40
+ "value": "{OCEAN_FIREFOX_PROFILE}",
41
+ "isRequired": false,
42
+ "description": "Folder for the dedicated Firefox profile; unset uses a fresh temporary one each run. Set with `ocean browser use firefox`."
43
+ }
44
+ ],
45
+ "environmentVariables": [
46
+ {
47
+ "name": "CONNECT_EXISTING",
48
+ "isRequired": false,
49
+ "description": "true attaches to a running Firefox started with --marionette --remote-debugging-port, instead of starting one."
50
+ },
51
+ {
52
+ "name": "MARIONETTE_PORT",
53
+ "isRequired": false,
54
+ "description": "Marionette port of that running Firefox (default 2828)."
55
+ },
56
+ {
57
+ "name": "FIREFOX_HEADLESS",
58
+ "isRequired": false,
59
+ "description": "true starts Firefox without a window."
60
+ },
61
+ {
62
+ "name": "TOOL_PRESET",
63
+ "isRequired": false,
64
+ "description": "slim, basic (default), developer (debugging, network, console, profiler) or all."
65
+ }
66
+ ]
67
+ }
68
+ ],
69
+ "_meta": { "dev.ocean": { "clientKey": "firefox-devtools" } }
70
+ }
71
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ocean/brain",
3
- "version": "2.11.0",
3
+ "version": "2.13.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ocean/context",
3
- "version": "2.11.0",
3
+ "version": "2.13.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ocean/core",
3
- "version": "2.11.0",
3
+ "version": "2.13.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ocean/loop",
3
- "version": "2.11.0",
3
+ "version": "2.13.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ocean/market",
3
- "version": "2.11.0",
3
+ "version": "2.13.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -16,6 +16,7 @@ const LOOP_DAYS = 14;
16
16
  const EVENT = /\b(exam|deadline|due|interview|meeting|appointment|call|submit|test)\b|موعد|امتحان|مقابلة/i;
17
17
  const OPEN_STATES = new Set([
18
18
  "active",
19
+ "in-qa",
19
20
  "in_progress",
20
21
  "blocked",
21
22
  "todo",
@@ -10,7 +10,7 @@ import { listTasks } from "@ocean/loop/tasks/list-tasks.js";
10
10
  const execFile = promisify(execFileCallback);
11
11
  const ACTIVE_DAYS = 60;
12
12
  const WARM_DAYS = 365;
13
- const OPEN_STATES = new Set(["active", "todo", "paused", "blocked"]);
13
+ const OPEN_STATES = new Set(["active", "in-qa", "todo", "paused", "blocked"]);
14
14
  async function git(cwd, args) {
15
15
  try {
16
16
  const { stdout } = await execFile("git", ["-C", cwd, ...args], {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ocean/services",
3
- "version": "2.11.0",
3
+ "version": "2.13.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -5,9 +5,9 @@
5
5
  {
6
6
  "kind": "skill",
7
7
  "name": "dev.ocean.skills.business-logic",
8
- "version": "2.11.0",
8
+ "version": "2.13.0",
9
9
  "engines": {
10
- "ocean": ">=2.11.0"
10
+ "ocean": ">=2.13.0"
11
11
  },
12
12
  "source": {
13
13
  "type": "path",
@@ -23,9 +23,9 @@
23
23
  {
24
24
  "kind": "skill",
25
25
  "name": "dev.ocean.skills.catch-up",
26
- "version": "2.11.0",
26
+ "version": "2.13.0",
27
27
  "engines": {
28
- "ocean": ">=2.11.0"
28
+ "ocean": ">=2.13.0"
29
29
  },
30
30
  "source": {
31
31
  "type": "path",
@@ -41,9 +41,9 @@
41
41
  {
42
42
  "kind": "skill",
43
43
  "name": "dev.ocean.skills.core-thinking",
44
- "version": "2.11.0",
44
+ "version": "2.13.0",
45
45
  "engines": {
46
- "ocean": ">=2.11.0"
46
+ "ocean": ">=2.13.0"
47
47
  },
48
48
  "source": {
49
49
  "type": "path",
@@ -59,9 +59,9 @@
59
59
  {
60
60
  "kind": "skill",
61
61
  "name": "dev.ocean.skills.daily-harvest",
62
- "version": "2.11.0",
62
+ "version": "2.13.0",
63
63
  "engines": {
64
- "ocean": ">=2.11.0"
64
+ "ocean": ">=2.13.0"
65
65
  },
66
66
  "source": {
67
67
  "type": "path",
@@ -77,9 +77,9 @@
77
77
  {
78
78
  "kind": "skill",
79
79
  "name": "dev.ocean.skills.design-thinking",
80
- "version": "2.11.0",
80
+ "version": "2.13.0",
81
81
  "engines": {
82
- "ocean": ">=2.11.0"
82
+ "ocean": ">=2.13.0"
83
83
  },
84
84
  "source": {
85
85
  "type": "path",
@@ -95,9 +95,9 @@
95
95
  {
96
96
  "kind": "skill",
97
97
  "name": "dev.ocean.skills.graft",
98
- "version": "2.11.0",
98
+ "version": "2.13.0",
99
99
  "engines": {
100
- "ocean": ">=2.11.0"
100
+ "ocean": ">=2.13.0"
101
101
  },
102
102
  "source": {
103
103
  "type": "path",
@@ -113,9 +113,9 @@
113
113
  {
114
114
  "kind": "skill",
115
115
  "name": "dev.ocean.skills.loop",
116
- "version": "2.11.0",
116
+ "version": "2.13.0",
117
117
  "engines": {
118
- "ocean": ">=2.11.0"
118
+ "ocean": ">=2.13.0"
119
119
  },
120
120
  "source": {
121
121
  "type": "path",
@@ -131,9 +131,9 @@
131
131
  {
132
132
  "kind": "skill",
133
133
  "name": "dev.ocean.skills.memory-review",
134
- "version": "2.11.0",
134
+ "version": "2.13.0",
135
135
  "engines": {
136
- "ocean": ">=2.11.0"
136
+ "ocean": ">=2.13.0"
137
137
  },
138
138
  "source": {
139
139
  "type": "path",
@@ -149,9 +149,9 @@
149
149
  {
150
150
  "kind": "skill",
151
151
  "name": "dev.ocean.skills.session-handoff",
152
- "version": "2.11.0",
152
+ "version": "2.13.0",
153
153
  "engines": {
154
- "ocean": ">=2.11.0"
154
+ "ocean": ">=2.13.0"
155
155
  },
156
156
  "source": {
157
157
  "type": "path",
@@ -167,16 +167,16 @@
167
167
  {
168
168
  "kind": "skill",
169
169
  "name": "dev.ocean.skills.use-browser",
170
- "version": "2.11.0",
170
+ "version": "2.13.0",
171
171
  "engines": {
172
- "ocean": ">=2.11.0"
172
+ "ocean": ">=2.13.0"
173
173
  },
174
174
  "source": {
175
175
  "type": "path",
176
176
  "path": "skills/core/use-browser"
177
177
  },
178
178
  "integrity": {
179
- "sha256": "460fdc789084cbb07d320e12a9e96e803f02ee101f533c913530b71538d05b5b"
179
+ "sha256": "c63bfe03130634e262e838b30bf2d54188de69b1225b4a57a7d69be57dc5a8ad"
180
180
  },
181
181
  "spec": {
182
182
  "directory": "use-browser"
@@ -185,9 +185,9 @@
185
185
  {
186
186
  "kind": "skill",
187
187
  "name": "dev.ocean.skills.verification",
188
- "version": "2.11.0",
188
+ "version": "2.13.0",
189
189
  "engines": {
190
- "ocean": ">=2.11.0"
190
+ "ocean": ">=2.13.0"
191
191
  },
192
192
  "source": {
193
193
  "type": "path",
@@ -203,16 +203,16 @@
203
203
  {
204
204
  "kind": "skill",
205
205
  "name": "dev.ocean.skills.weekly-review",
206
- "version": "2.11.0",
206
+ "version": "2.13.0",
207
207
  "engines": {
208
- "ocean": ">=2.11.0"
208
+ "ocean": ">=2.13.0"
209
209
  },
210
210
  "source": {
211
211
  "type": "path",
212
212
  "path": "skills/core/weekly-review"
213
213
  },
214
214
  "integrity": {
215
- "sha256": "346d7a276b8fccbd693ec766fe726c4f2d1887fae4d82fa728e619441fe7ef97"
215
+ "sha256": "112aac4a9ec788a8c818dedec28989f62172ce1a0957112e979518f3dcb2452d"
216
216
  },
217
217
  "spec": {
218
218
  "directory": "weekly-review"
@@ -221,7 +221,7 @@
221
221
  {
222
222
  "kind": "mcp",
223
223
  "name": "dev.ocean/chrome-devtools",
224
- "description": "Control the owner's real, signed-in Chromium browser (Chrome by default; Brave, Edge, Arc, Vivaldi, Opera or Chromium through `ocean browser use`) through the ocean-browser-mcp package (pinned Chrome DevTools MCP): tabs, navigation, clicks, forms, uploads, screenshots, console and network errors. Reads every open tab and acts inside any signed-in session of the attached browser, for every client wired to it. The browser asks to allow each new connection. The filesystem permission is declared for consent but not enforced at runtime, and the npm package is pinned by version, not by digest.",
224
+ "description": "Control the owner's real, signed-in Chromium browser (Chrome by default; Brave, Edge, Arc, Vivaldi, Opera or Chromium through `ocean browser use`) through the ocean-browser-mcp package (pinned Chrome DevTools MCP): tabs, navigation, clicks, forms, uploads, screenshots, console and network errors. Reads every open tab and acts inside any signed-in session of the attached browser, for every client wired to it. The browser asks to allow the connection once: one background connection (disconnected after 8 idle hours) serves every session; a pointer and a blue frame show which tab the agent is using. Cookies and auth headers are redacted, file:// pages are refused, and URL patterns can be blocked. Writes a usage log (tool names and sizes, no URLs), screenshot previews and oversized page snapshots under ~/.local/state/ocean-browser-mcp (kept 7 days). The filesystem permission is declared for consent but not enforced at runtime, and the npm package is pinned by version, not by digest.",
225
225
  "permissions": {
226
226
  "filesystem": {
227
227
  "read": [
@@ -232,6 +232,9 @@
232
232
  "~/Library/Application Support/Vivaldi",
233
233
  "~/Library/Application Support/com.operasoftware.Opera",
234
234
  "~/Library/Application Support/Arc"
235
+ ],
236
+ "write": [
237
+ "~/.local/state/ocean-browser-mcp"
235
238
  ]
236
239
  },
237
240
  "network": [
@@ -241,31 +244,39 @@
241
244
  ],
242
245
  "env": [
243
246
  "CHROME_DEVTOOLS_MCP_NO_UPDATE_CHECKS",
244
- "OCEAN_BROWSER_USER_DATA_DIR"
247
+ "OCEAN_BROWSER_USER_DATA_DIR",
248
+ "OCEAN_BROWSER_PROFILE",
249
+ "OCEAN_BROWSER_BLOCKED",
250
+ "OCEAN_BROWSER_CURSOR",
251
+ "OCEAN_BROWSER_PREVIEW",
252
+ "OCEAN_BROWSER_USAGE",
253
+ "OCEAN_BROWSER_SHARED",
254
+ "OCEAN_BROWSER_IDLE_MIN",
255
+ "OCEAN_BROWSER_SNAPSHOT_MAX_CHARS"
245
256
  ],
246
257
  "exec": [
247
258
  "npx"
248
259
  ]
249
260
  },
250
- "version": "2.11.0",
261
+ "version": "2.13.0",
251
262
  "engines": {
252
- "ocean": ">=2.11.0"
263
+ "ocean": ">=2.13.0"
253
264
  },
254
265
  "source": {
255
266
  "type": "path",
256
267
  "path": "market/mcp/chrome-devtools"
257
268
  },
258
269
  "integrity": {
259
- "sha256": "135cae4e9d1b2e6792670826f346d685251509fb9ac8c1ea5c83f2a9c972d064"
270
+ "sha256": "7ba422768c1d32a595f6a3cb77884c199978fc1e689e83c94d52708b867cdb8e"
260
271
  },
261
272
  "spec": {
262
273
  "name": "dev.ocean/chrome-devtools",
263
- "description": "ocean-browser-mcp runs Chrome DevTools MCP 1.12.0 attached to the owner's running Chromium browser, with usage statistics and CrUX lookups off, so page URLs stay on this machine.",
274
+ "description": "ocean-browser-mcp runs Chrome DevTools MCP 1.13.0 attached to the owner's running Chromium browser, with usage statistics and CrUX lookups off, so page URLs stay on this machine.",
264
275
  "packages": [
265
276
  {
266
277
  "registryType": "npm",
267
278
  "identifier": "ocean-browser-mcp",
268
- "version": "0.2.0",
279
+ "version": "0.3.0",
269
280
  "transport": {
270
281
  "type": "stdio"
271
282
  },
@@ -284,6 +295,46 @@
284
295
  "default": "1",
285
296
  "isRequired": false,
286
297
  "description": "Skips upstream's update check (an npm child process and a registry fetch) on every start; the version is pinned."
298
+ },
299
+ {
300
+ "name": "OCEAN_BROWSER_PROFILE",
301
+ "isRequired": false,
302
+ "description": "Tool profile: standard (default), full, lean or slim. Set with `ocean browser profile <name>`."
303
+ },
304
+ {
305
+ "name": "OCEAN_BROWSER_BLOCKED",
306
+ "isRequired": false,
307
+ "description": "URL patterns the browser refuses while attached, comma- or newline-separated. Set with `ocean browser block`."
308
+ },
309
+ {
310
+ "name": "OCEAN_BROWSER_CURSOR",
311
+ "isRequired": false,
312
+ "description": "0 hides the agent pointer and frame."
313
+ },
314
+ {
315
+ "name": "OCEAN_BROWSER_PREVIEW",
316
+ "isRequired": false,
317
+ "description": "0 stops saving screenshot previews."
318
+ },
319
+ {
320
+ "name": "OCEAN_BROWSER_USAGE",
321
+ "isRequired": false,
322
+ "description": "0 stops the usage log."
323
+ },
324
+ {
325
+ "name": "OCEAN_BROWSER_SHARED",
326
+ "isRequired": false,
327
+ "description": "0 gives each session its own connection (and its own allow prompt)."
328
+ },
329
+ {
330
+ "name": "OCEAN_BROWSER_IDLE_MIN",
331
+ "isRequired": false,
332
+ "description": "Minutes without a call before the shared connection disconnects (default 480; 0 or never keeps it)."
333
+ },
334
+ {
335
+ "name": "OCEAN_BROWSER_SNAPSHOT_MAX_CHARS",
336
+ "isRequired": false,
337
+ "description": "Largest page snapshot sent whole, in characters (default 40000; 0 = no cap). Larger ones keep interactive elements and headings; the whole tree is saved to a file."
287
338
  }
288
339
  ]
289
340
  }
@@ -295,13 +346,108 @@
295
346
  }
296
347
  }
297
348
  },
349
+ {
350
+ "kind": "mcp",
351
+ "name": "dev.ocean/firefox-devtools",
352
+ "description": "Control Firefox through Mozilla's Firefox MCP (WebDriver BiDi): tabs, navigation, clicks, forms, screenshots, console and network. By default it starts its own Firefox with a separate profile, never the owner's daily one; `ocean browser use firefox` keeps that profile between runs. CONNECT_EXISTING=true attaches to a Firefox the owner started with `--marionette --remote-debugging-port` instead, with that session's cookies and logins. On first use it downloads geckodriver from GitHub. The filesystem permission is declared for consent but not enforced at runtime, and the npm package is pinned by version, not by digest.",
353
+ "permissions": {
354
+ "filesystem": {
355
+ "read": [
356
+ "/Applications/Firefox.app"
357
+ ],
358
+ "write": [
359
+ "~/.local/state/ocean-firefox",
360
+ "~/.cache/selenium"
361
+ ]
362
+ },
363
+ "network": [
364
+ "registry.npmjs.org",
365
+ "github.com",
366
+ "objects.githubusercontent.com",
367
+ "release-assets.githubusercontent.com",
368
+ "localhost",
369
+ "127.0.0.1"
370
+ ],
371
+ "env": [
372
+ "OCEAN_FIREFOX_PROFILE",
373
+ "CONNECT_EXISTING",
374
+ "MARIONETTE_PORT",
375
+ "FIREFOX_HEADLESS",
376
+ "TOOL_PRESET"
377
+ ],
378
+ "exec": [
379
+ "npx"
380
+ ]
381
+ },
382
+ "version": "2.13.0",
383
+ "engines": {
384
+ "ocean": ">=2.13.0"
385
+ },
386
+ "source": {
387
+ "type": "path",
388
+ "path": "market/mcp/firefox-devtools"
389
+ },
390
+ "integrity": {
391
+ "sha256": "c0de223b6deefdf7df07edfa5037e540c8e02da85ee2d6e15c9da23f3bd5caca"
392
+ },
393
+ "spec": {
394
+ "name": "dev.ocean/firefox-devtools",
395
+ "description": "Mozilla's Firefox MCP 0.11.0: drives Firefox over WebDriver BiDi and Marionette, in a separate profile unless told to attach to a running Firefox.",
396
+ "packages": [
397
+ {
398
+ "registryType": "npm",
399
+ "identifier": "@mozilla/firefox-mcp",
400
+ "version": "0.11.0",
401
+ "transport": {
402
+ "type": "stdio"
403
+ },
404
+ "packageArguments": [
405
+ {
406
+ "type": "named",
407
+ "name": "--profile-path",
408
+ "value": "{OCEAN_FIREFOX_PROFILE}",
409
+ "isRequired": false,
410
+ "description": "Folder for the dedicated Firefox profile; unset uses a fresh temporary one each run. Set with `ocean browser use firefox`."
411
+ }
412
+ ],
413
+ "environmentVariables": [
414
+ {
415
+ "name": "CONNECT_EXISTING",
416
+ "isRequired": false,
417
+ "description": "true attaches to a running Firefox started with --marionette --remote-debugging-port, instead of starting one."
418
+ },
419
+ {
420
+ "name": "MARIONETTE_PORT",
421
+ "isRequired": false,
422
+ "description": "Marionette port of that running Firefox (default 2828)."
423
+ },
424
+ {
425
+ "name": "FIREFOX_HEADLESS",
426
+ "isRequired": false,
427
+ "description": "true starts Firefox without a window."
428
+ },
429
+ {
430
+ "name": "TOOL_PRESET",
431
+ "isRequired": false,
432
+ "description": "slim, basic (default), developer (debugging, network, console, profiler) or all."
433
+ }
434
+ ]
435
+ }
436
+ ],
437
+ "_meta": {
438
+ "dev.ocean": {
439
+ "clientKey": "firefox-devtools"
440
+ }
441
+ }
442
+ }
443
+ },
298
444
  {
299
445
  "kind": "mcp",
300
446
  "name": "dev.ocean/mcp-gateway",
301
447
  "description": "One MCP endpoint for every registered server: Ocean's own and those installed from the marketplace.",
302
- "version": "2.11.0",
448
+ "version": "2.13.0",
303
449
  "engines": {
304
- "ocean": ">=2.11.0"
450
+ "ocean": ">=2.13.0"
305
451
  },
306
452
  "source": {
307
453
  "type": "path",
@@ -343,9 +489,9 @@
343
489
  "kind": "mcp",
344
490
  "name": "dev.ocean/obsidian",
345
491
  "description": "Ocean's Obsidian vault bridge over MCP.",
346
- "version": "2.11.0",
492
+ "version": "2.13.0",
347
493
  "engines": {
348
- "ocean": ">=2.11.0"
494
+ "ocean": ">=2.13.0"
349
495
  },
350
496
  "source": {
351
497
  "type": "path",
@@ -387,9 +533,9 @@
387
533
  "kind": "mcp",
388
534
  "name": "dev.ocean/ocean",
389
535
  "description": "Ocean's own MCP server: workspace status, tasks, handoffs, sessions and the brain.",
390
- "version": "2.11.0",
536
+ "version": "2.13.0",
391
537
  "engines": {
392
- "ocean": ">=2.11.0"
538
+ "ocean": ">=2.13.0"
393
539
  },
394
540
  "source": {
395
541
  "type": "path",
@@ -441,9 +587,9 @@
441
587
  "npx"
442
588
  ]
443
589
  },
444
- "version": "2.11.0",
590
+ "version": "2.13.0",
445
591
  "engines": {
446
- "ocean": ">=2.11.0"
592
+ "ocean": ">=2.13.0"
447
593
  },
448
594
  "source": {
449
595
  "type": "path",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@amoree-code/ocean",
3
3
  "description": "Local-first memory, tasks and session capture shared by every AI coding client: one private workspace for Claude, Codex, Gemini and more.",
4
- "version": "2.11.0",
4
+ "version": "2.13.0",
5
5
  "private": false,
6
6
  "license": "MIT",
7
7
  "author": "AMEER ABDULKAREEM JABBAR LAMI",
@@ -53,12 +53,12 @@
53
53
  "@langchain/core": "1.2.14",
54
54
  "@langchain/langgraph": "1.4.19",
55
55
  "@modelcontextprotocol/sdk": "1.32.0",
56
- "@ocean/brain": "2.11.0",
57
- "@ocean/context": "2.11.0",
58
- "@ocean/core": "2.11.0",
59
- "@ocean/loop": "2.11.0",
60
- "@ocean/market": "2.11.0",
61
- "@ocean/services": "2.11.0",
56
+ "@ocean/brain": "2.13.0",
57
+ "@ocean/context": "2.13.0",
58
+ "@ocean/core": "2.13.0",
59
+ "@ocean/loop": "2.13.0",
60
+ "@ocean/market": "2.13.0",
61
+ "@ocean/services": "2.13.0",
62
62
  "playwright-core": "^1.48.0",
63
63
  "sqlite-vec": "0.1.9",
64
64
  "zod": "^4.6.5"
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: use-browser
3
3
  description: Open a supplied URL, understand the user's requested outcome from the live page, complete the browser task, and verify the result.
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  category: core
6
6
  ---
7
7
 
@@ -9,23 +9,34 @@ category: core
9
9
 
10
10
  Use when the user gives a URL and asks the agent to complete, fill, test, submit, or otherwise operate the page.
11
11
 
12
- The skill defines the task and verification contract. When the user asks for their own
13
- signed-in Chrome, the routes are in `docs/browser-clients.md`: the marketplace
14
- `dev.ocean/chrome-devtools` entry (wired into every client by `ocean clients apply`), or Playwright MCP.
15
- Ocean's `ocean browser` capability remains the deterministic local backend for repeatable
16
- JSON task files.
12
+ The skill defines the task and verification contract. Pick the backend in this order:
17
13
 
18
- Use Ocean's `ocean browser` capability through the terminal as the default browser backend. Do not switch to `claude-in-chrome`, an extension, or another browser connector unless the user explicitly asks for that backend. If Ocean cannot detect or open a browser, report the exact command result and stop; do not ask the user to install a different browser extension as the first workaround.
14
+ 1. **The `dev.ocean/chrome-devtools` MCP tools** (`list_pages`, `navigate_page`, `take_snapshot`,
15
+ `click`, `fill`, …), when the client has them: they drive the owner's own signed-in browser
16
+ (`ocean browser use` picks which one), and the owner sees a pointer and a blue "Ocean" frame
17
+ on the tab being driven. Routes and setup: `docs/browser-clients.md`.
18
+ 2. **`dev.ocean/firefox-devtools`**, only when the user asks for Firefox.
19
+ 3. **The `ocean browser` terminal capability** for repeatable JSON task files, or when the client
20
+ has no browser MCP tools.
21
+
22
+ Do not switch to `claude-in-chrome`, an extension, or another browser connector unless the user explicitly asks for that backend. If the browser cannot be reached, report the exact error and stop (the usual cause: the browser is closed or its inspect page's remote debugging is off, and `ocean doctor` says which); do not ask the user to install a different browser extension as the first workaround.
23
+
24
+ With the MCP tools:
25
+
26
+ - Act on snapshot `uid`s. After the first full snapshot, later snapshots on the same page carry only the lines that changed, and unchanged `uid`s still work; call `take_snapshot` when you need the whole tree again. A very large page is cut to its interactive elements and headings, with the whole tree saved to the file the note names.
27
+ - `list_pages` shows every tab; other replies show only the selected tab.
28
+ - Take a screenshot only when the answer is visual (layout, RTL/Arabic rendering, charts, proof of a result). The reply carries a `Preview:` path the owner can open.
29
+ - The browser asks the owner once to allow the connection; it is shared by every session. `ocean browser stop` ends it.
19
30
 
20
31
  ## Cost-aware execution
21
32
 
22
- Keep browser work bounded and token-efficient. Use one `observe` and one targeted `read` before acting, prefer `extract` over rereading the whole page, and keep page text bounded. Do not run exploratory shell scripts or repeated reload/undo cycles when a deterministic browser operation is unavailable. Use at most one retry for a reversible step and no automatic retry for submit, upload, purchase, message, or other consequential actions. If the live state is ambiguous after the bounded attempt, stop and report the blocker instead of spending more tokens guessing.
33
+ Keep browser work bounded and token-efficient. With the terminal capability, use one `observe` and one targeted `read` before acting, prefer `extract` over rereading the whole page, and keep page text bounded. Do not run exploratory shell scripts or repeated reload/undo cycles when a deterministic browser operation is unavailable. Use at most one retry for a reversible step and no automatic retry for submit, upload, purchase, message, or other consequential actions. If the live state is ambiguous after the bounded attempt, stop and report the blocker instead of spending more tokens guessing.
23
34
 
24
35
  ## Workflow
25
36
 
26
37
  1. Treat the URL as the starting location, not as permission to perform every possible action on the site.
27
- 2. Open or reconnect to an Ocean browser session with a persistent profile. Navigate to the URL.
28
- 3. Inspect the live page with `observe`, `read`, and targeted `extract`. Identify the page's current state, the user's intended outcome, required fields, available controls, and a concrete success signal.
38
+ 2. With the MCP tools, `list_pages`, then `select_page` an existing tab or `new_page` for the URL; with the terminal, open or reconnect to an Ocean browser session with a persistent profile and navigate to the URL.
39
+ 3. Inspect the live page (`take_snapshot`; in the terminal, `observe`, `read`, and targeted `extract`). Identify the page's current state, the user's intended outcome, required fields, available controls, and a concrete success signal.
29
40
  4. Build the smallest step sequence that reaches the requested outcome. Prefer stable labels, roles, names, ids, and visible text. Use editor selectors for `contenteditable`, CodeMirror/Monaco containers, and `frame >>> editor` for same-origin iframe editors.
30
41
  5. For code-editor changes, use `ocean browser replace-text <session-id> <selector> <old-text> <new-text> --occurrence <n>` when replacing a specific token. Never simulate a precise replacement by clicking and typing into the middle of a Monaco/CodeMirror line. Verify the returned editor value and then re-read the page.
31
42
  6. Execute through Ocean browser operations or a bounded browser task file. Keep the task file small, cap retries at 0–1, and cap total steps to the minimum needed. After every state-changing step, verify the live post-condition. Stop if the page state contradicts the plan.
@@ -47,9 +58,9 @@ verify: <observable success signal>
47
58
  Use one bounded loop, verify every state-changing action, and stop when the
48
59
  success signal is present or a required human decision is reached.
49
60
 
50
- ## Ocean execution shape
61
+ ## Ocean terminal execution shape
51
62
 
52
- Use the browser capability's session lifecycle and task runner:
63
+ When using the terminal capability, use its session lifecycle and task runner:
53
64
 
54
65
  ```text
55
66
  ocean browser detect
@@ -18,7 +18,7 @@ Take the owner from a full inbox to zero, one decision at a time. He decides; yo
18
18
  3. Walk `00-inbox/captures/`: for each capture, file it where its type lives (routing.json),
19
19
  turn it into a task or backlog line, or mark it `status: processed`.
20
20
  4. List his notes in `02-personal/notes/` still `status: todo` and older than 7 days. For each,
21
- suggest one of: a folder (`study/`, `work/`, `ideas/`, `archive/`), a status (`active`,
21
+ suggest one of: a folder (`study/`, `work/`, `ideas/`, `archive/`), a status (`active`, `in-qa`,
22
22
  `paused`, `blocked`, `done`, `cancelled`), or "make it a project" (QuickAdd: Project from
23
23
  this note). He acts on it in Obsidian; never move, rename or edit a note yourself.
24
24
  5. Run `ocean interests decay` (dry run) and the brief's keep/skip feedback he gives.
package/skills/index.json CHANGED
@@ -56,7 +56,7 @@
56
56
  {
57
57
  "name": "use-browser",
58
58
  "description": "Open a supplied URL, understand the user's requested outcome from the live page, complete the browser task, and verify the result.",
59
- "version": "1.0.0",
59
+ "version": "1.1.0",
60
60
  "category": "core"
61
61
  },
62
62
  {
@@ -126,8 +126,9 @@ before. An empty list is the normal, healthy value.
126
126
  ## 3. States
127
127
 
128
128
  ```
129
- todo ──▶ active ──▶ done ──▶ (archive/)
130
- │ ▲
129
+ todo ──▶ active ──▶ in-qa ──▶ done ──▶ (archive/)
130
+ │ ▲ ▲ │ PR open, waiting on test or review
131
+ │ │ └───────┘ a fix is needed
131
132
  │ └──── paused ──┐ deliberately set aside; resumable by choice
132
133
  ├──────▶ blocked ─┤ cannot proceed; waiting on something external
133
134
  │ ▲ │
@@ -139,6 +140,7 @@ todo ──▶ active ──▶ done ──▶ (archive/)
139
140
  | ----------- | ----------------------------------------------------------- | --------------------------------------- |
140
141
  | `todo` | promoted to a durable task, not started | work begins → `active` |
141
142
  | `active` | being worked now | paused, blocked, finished, or abandoned |
143
+ | `in-qa` | built, PR open, waiting on test or review | PR merged → `done`; fix needed → `active` |
142
144
  | `paused` | set aside by choice, resumable | picked up again → `active` |
143
145
  | `blocked` | cannot proceed; the blocker is named in the body | blocker clears → `active` |
144
146
  | `done` | finished **and** verified — the verification ran and passed | archived |
@@ -44,8 +44,9 @@ fails when a view has drifted. Never hand-edit a generated table, and never writ
44
44
  task's status into project state, a daily log or a session record as if it were
45
45
  authoritative there.
46
46
 
47
- States: `todo` · `active` · `paused` · `blocked` · `done` · `cancelled`. Several being
48
- `active` is normal. There is no current task and no stored pointer to one — the active
47
+ States: `todo` · `active` · `in-qa` · `paused` · `blocked` · `done` · `cancelled`. Several
48
+ being `active` is normal. `in-qa`: built and its PR is open, waiting on test or review; it
49
+ moves to `done` once the PR merges and verification passed, or back to `active` on a fix. There is no current task and no stored pointer to one — the active
49
50
  set is derived from the records. A bare id resolves directly at
50
51
  `04-projects/<project>/tasks/<ID>/` (`ocean-paths` was a resolver in an earlier CLI
51
52
  generation and was consolidated away — it is not a real command anymore); if two