refactor: trim browser route exports

This commit is contained in:
Peter Steinberger
2026-05-01 15:24:46 +01:00
parent efe6b37407
commit 36eec68fb9
4 changed files with 10 additions and 4 deletions

View File

@@ -22,7 +22,7 @@ function normalizeActKind(raw: unknown): ActKind {
return kind;
}
export function countBatchActions(actions: BrowserActRequest[]): number {
function countBatchActions(actions: BrowserActRequest[]): number {
let count = 0;
for (const action of actions) {
count += 1;

View File

@@ -1,4 +1,4 @@
export const ACT_KINDS = [
const ACT_KINDS = [
"batch",
"click",
"clickCoords",

View File

@@ -1 +1,7 @@
export * from "../paths.js";
export {
DEFAULT_DOWNLOAD_DIR,
DEFAULT_TRACE_DIR,
DEFAULT_UPLOAD_DIR,
resolveExistingPathsWithinRoot,
resolveWritablePathWithinRoot,
} from "../paths.js";

View File

@@ -3,7 +3,7 @@ import express from "express";
import { browserMutationGuardMiddleware } from "./csrf.js";
import { isAuthorizedBrowserRequest } from "./http-auth.js";
export const BROWSER_AUTH_VERIFIED_FLAG = "__openclawBrowserAuthVerified";
const BROWSER_AUTH_VERIFIED_FLAG = "__openclawBrowserAuthVerified";
type BrowserAuthMarkedRequest = Request & {
[BROWSER_AUTH_VERIFIED_FLAG]?: boolean;