Skip to content

Commit 36eec68

Browse files
committed
refactor: trim browser route exports
1 parent efe6b37 commit 36eec68

4 files changed

Lines changed: 10 additions & 4 deletions

File tree

‎extensions/browser/src/browser/routes/agent.act.normalize.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function normalizeActKind(raw: unknown): ActKind {
2222
return kind;
2323
}
2424

25-
export function countBatchActions(actions: BrowserActRequest[]): number {
25+
function countBatchActions(actions: BrowserActRequest[]): number {
2626
let count = 0;
2727
for (const action of actions) {
2828
count += 1;

‎extensions/browser/src/browser/routes/agent.act.shared.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const ACT_KINDS = [
1+
const ACT_KINDS = [
22
"batch",
33
"click",
44
"clickCoords",
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
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";

‎extensions/browser/src/browser/server-middleware.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import express from "express";
33
import { browserMutationGuardMiddleware } from "./csrf.js";
44
import { isAuthorizedBrowserRequest } from "./http-auth.js";
55

6-
export const BROWSER_AUTH_VERIFIED_FLAG = "__openclawBrowserAuthVerified";
6+
const BROWSER_AUTH_VERIFIED_FLAG = "__openclawBrowserAuthVerified";
77

88
type BrowserAuthMarkedRequest = Request & {
99
[BROWSER_AUTH_VERIFIED_FLAG]?: boolean;

0 commit comments

Comments
 (0)