mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-17 16:12:21 -06:00
cb84dc76fc
Adds the sidebar approval attention chip and a dedicated approval history page backed by the new approval.history gateway RPC (30-day retention window). Extracts buildSidebarAttentionItems into its own module so the Lit component consumes it as a real cross-module dependency, and wires the strict i18n catalog for the new strings (fallbacks=0).
26 lines
757 B
TypeScript
26 lines
757 B
TypeScript
import { lazyCompile } from "./protocol-validator.js";
|
|
import {
|
|
type ApprovalDecision,
|
|
type ApprovalGetResult,
|
|
ApprovalGetResultSchema,
|
|
type ApprovalHistoryResult,
|
|
ApprovalHistoryResultSchema,
|
|
type ApprovalPresentation,
|
|
type ApprovalResolveResult,
|
|
ApprovalResolveResultSchema,
|
|
type ApprovalSnapshot,
|
|
} from "./schema/approvals.js";
|
|
|
|
export type {
|
|
ApprovalDecision,
|
|
ApprovalGetResult,
|
|
ApprovalHistoryResult,
|
|
ApprovalPresentation,
|
|
ApprovalResolveResult,
|
|
ApprovalSnapshot,
|
|
};
|
|
|
|
export const validateApprovalGetResult = lazyCompile(ApprovalGetResultSchema);
|
|
export const validateApprovalHistoryResult = lazyCompile(ApprovalHistoryResultSchema);
|
|
export const validateApprovalResolveResult = lazyCompile(ApprovalResolveResultSchema);
|