mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:40:44 +00:00
refactor: trim browser route exports
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export const ACT_KINDS = [
|
||||
const ACT_KINDS = [
|
||||
"batch",
|
||||
"click",
|
||||
"clickCoords",
|
||||
|
||||
@@ -1 +1,7 @@
|
||||
export * from "../paths.js";
|
||||
export {
|
||||
DEFAULT_DOWNLOAD_DIR,
|
||||
DEFAULT_TRACE_DIR,
|
||||
DEFAULT_UPLOAD_DIR,
|
||||
resolveExistingPathsWithinRoot,
|
||||
resolveWritablePathWithinRoot,
|
||||
} from "../paths.js";
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user