惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
Docker
I
InfoQ
L
LangChain Blog
阮一峰的网络日志
阮一峰的网络日志
Y
Y Combinator Blog
博客园_首页
Martin Fowler
Martin Fowler
宝玉的分享
宝玉的分享
A
About on SuperTechFans
Apple Machine Learning Research
Apple Machine Learning Research
Vercel News
Vercel News
T
The Blog of Author Tim Ferriss
C
Check Point Blog
B
Blog RSS Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Engineering at Meta
Engineering at Meta
B
Blog
爱范儿
爱范儿
Stack Overflow Blog
Stack Overflow Blog
aimingoo的专栏
aimingoo的专栏
WordPress大学
WordPress大学
F
Fortinet All Blogs
月光博客
月光博客
GbyAI
GbyAI

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
refactor: trim browser helper exports · openclaw/openclaw...
steipete · 2026-05-02 · via Recent Commits to openclaw:main

File tree

  • extensions/browser/src

    • browser

      • routes

    • cli

      • browser-cli-actions-input

Original file line numberDiff line numberDiff line change

@@ -1,4 +1,4 @@

1-

export type ChromeMcpModule = typeof import("./chrome-mcp.js");

1+

type ChromeMcpModule = typeof import("./chrome-mcp.js");

22
33

export async function getChromeMcpModule(): Promise<ChromeMcpModule> {

44

return await import("./chrome-mcp.js");

Original file line numberDiff line numberDiff line change

@@ -11,9 +11,9 @@ import {

1111

DEFAULT_BROWSER_SCREENSHOT_TIMEOUT_MS,

1212

} from "./constants.js";

1313
14-

export type { BrowserActRequest, BrowserFormField } from "./client-actions.types.js";

14+

export type { BrowserFormField } from "./client-actions.types.js";

1515
16-

export type BrowserActResponse = {

16+

type BrowserActResponse = {

1717

ok: true;

1818

targetId: string;

1919

url?: string;

Original file line numberDiff line numberDiff line change

@@ -8,12 +8,7 @@ import type {

88

} from "./client.types.js";

99

import type { BrowserDoctorReport } from "./doctor.js";

1010
11-

export type {

12-

BrowserStatus,

13-

BrowserTab,

14-

BrowserTransport,

15-

SnapshotAriaNode,

16-

} from "./client.types.js";

11+

export type { BrowserStatus, BrowserTab, BrowserTransport } from "./client.types.js";

1712

export type { BrowserDoctorCheck, BrowserDoctorReport } from "./doctor.js";

1813
1914

export type ProfileStatus = {

Original file line numberDiff line numberDiff line change

@@ -1,5 +1,5 @@

11

export type BrowserTransport = "cdp" | "chrome-mcp";

2-

export type BrowserHeadlessSource =

2+

type BrowserHeadlessSource =

33

| "request"

44

| "env"

55

| "profile"

Original file line numberDiff line numberDiff line change

@@ -1,6 +1,6 @@

11

import type { BrowserStatus, BrowserTransport } from "./client.types.js";

22
3-

export type BrowserDoctorCheckStatus = "pass" | "warn" | "fail" | "info";

3+

type BrowserDoctorCheckStatus = "pass" | "warn" | "fail" | "info";

44
55

export type BrowserDoctorCheck = {

66

id: string;

Original file line numberDiff line numberDiff line change

@@ -5,11 +5,11 @@ export const DEFAULT_FILL_FIELD_TYPE = "text";

55
66

type BrowserFormFieldValue = NonNullable<BrowserFormField["value"]>;

77
8-

export function normalizeBrowserFormFieldRef(value: unknown): string {

8+

function normalizeBrowserFormFieldRef(value: unknown): string {

99

return normalizeOptionalString(value) ?? "";

1010

}

1111
12-

export function normalizeBrowserFormFieldType(value: unknown): string {

12+

function normalizeBrowserFormFieldType(value: unknown): string {

1313

const type = normalizeOptionalString(value) ?? "";

1414

return type || DEFAULT_FILL_FIELD_TYPE;

1515

}

Original file line numberDiff line numberDiff line change

@@ -22,7 +22,7 @@ function canUseNodeFs(): boolean {

2222

}

2323

}

2424
25-

export const DEFAULT_BROWSER_TMP_DIR = canUseNodeFs()

25+

const DEFAULT_BROWSER_TMP_DIR = canUseNodeFs()

2626

? resolvePreferredOpenClawTmpDir()

2727

: DEFAULT_FALLBACK_BROWSER_TMP_DIR;

2828

export const DEFAULT_TRACE_DIR = DEFAULT_BROWSER_TMP_DIR;

Original file line numberDiff line numberDiff line change

@@ -15,7 +15,7 @@

1515

export const CDP_PORT_RANGE_START = 18800;

1616

export const CDP_PORT_RANGE_END = 18899;

1717
18-

export const PROFILE_NAME_REGEX = /^[a-z0-9][a-z0-9-]*$/;

18+

const PROFILE_NAME_REGEX = /^[a-z0-9][a-z0-9-]*$/;

1919
2020

export function isValidProfileName(name: string): boolean {

2121

if (!name || name.length > 64) {

Original file line numberDiff line numberDiff line change

@@ -1,6 +1,6 @@

11

import { saveMediaBuffer } from "../media/store.js";

22
3-

export type BrowserProxyFile = {

3+

type BrowserProxyFile = {

44

path: string;

55

base64: string;

66

mimeType?: string;

Original file line numberDiff line numberDiff line change

@@ -1,7 +1,7 @@

11

import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/text-runtime";

22

import { CONTENT_ROLES, INTERACTIVE_ROLES, STRUCTURAL_ROLES } from "./snapshot-roles.js";

33
4-

export type RoleRef = {

4+

type RoleRef = {

55

role: string;

66

name?: string;

77

/** Index used only when role+name duplicates exist. */

@@ -10,7 +10,7 @@ export type RoleRef = {

1010
1111

export type RoleRefMap = Record<string, RoleRef>;

1212
13-

export type RoleSnapshotStats = {

13+

type RoleSnapshotStats = {

1414

lines: number;

1515

chars: number;

1616

refs: number;