refactor: trim browser route exports · openclaw/openclaw@36eec68
steipete
·
2026-05-01
·
via Recent Commits to openclaw:main
File tree
extensions/browser/src/browser
| Original file line number | Diff line number | Diff line change |
|---|
@@ -22,7 +22,7 @@ function normalizeActKind(raw: unknown): ActKind {
|
22 | 22 | return kind; |
23 | 23 | } |
24 | 24 | |
25 | | -export function countBatchActions(actions: BrowserActRequest[]): number { |
| 25 | +function countBatchActions(actions: BrowserActRequest[]): number { |
26 | 26 | let count = 0; |
27 | 27 | for (const action of actions) { |
28 | 28 | count += 1; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | | -export const ACT_KINDS = [ |
| 1 | +const ACT_KINDS = [ |
2 | 2 | "batch", |
3 | 3 | "click", |
4 | 4 | "clickCoords", |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | | -export * from "../paths.js"; |
| 1 | +export { |
| 2 | +DEFAULT_DOWNLOAD_DIR, |
| 3 | +DEFAULT_TRACE_DIR, |
| 4 | +DEFAULT_UPLOAD_DIR, |
| 5 | +resolveExistingPathsWithinRoot, |
| 6 | +resolveWritablePathWithinRoot, |
| 7 | +} from "../paths.js"; |
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3,7 +3,7 @@ import express from "express";
|
3 | 3 | import { browserMutationGuardMiddleware } from "./csrf.js"; |
4 | 4 | import { isAuthorizedBrowserRequest } from "./http-auth.js"; |
5 | 5 | |
6 | | -export const BROWSER_AUTH_VERIFIED_FLAG = "__openclawBrowserAuthVerified"; |
| 6 | +const BROWSER_AUTH_VERIFIED_FLAG = "__openclawBrowserAuthVerified"; |
7 | 7 | |
8 | 8 | type BrowserAuthMarkedRequest = Request & { |
9 | 9 | [BROWSER_AUTH_VERIFIED_FLAG]?: boolean; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。