Files
openclaw/src/plugin-sdk/approval-native-runtime.ts
T
Ayaan Zaidi 9935ca3b30 fix(approvals): bind native requests to channel accounts (#121673)
Native approval delivery and resolution now stay bound to the originating or explicitly targeted channel account. Unbound requests fail closed across multiple eligible accounts; trusted reviewer-less SDK callers remain compatible.

Co-authored-by: Ayaan Zaidi <hi@obviy.us>
2026-08-11 01:42:41 +05:30

33 lines
1.3 KiB
TypeScript

/**
* Runtime SDK subpath for native approval routing, target matching, and forwarding gates.
*/
export {
createChannelApprovalForwardingEvaluator,
createChannelApproverDmTargetResolver,
createChannelNativeOriginTargetResolver,
createNativeApprovalChannelRouteGates,
createNativeApprovalForwardingFallbackSuppressor,
createNativeApprovalMessagingTargetResolvers,
nativeApprovalTargetsMatch,
resolveApprovalKind,
shouldSuppressLocalNativeExecApprovalPrompt,
type ChannelApprovalExplicitTargetEligibilityParams,
type ChannelApprovalForwardingEligibilityParams,
type ChannelApprovalPotentialRouteParams,
} from "./approval-native-helpers.js";
export {
resolveApprovalRequestSessionConversation,
resolveApprovalRequestOriginTarget,
resolveApprovalRequestSessionTarget,
resolveExecApprovalSessionTarget,
type ApprovalRequestSessionConversation,
type ExecApprovalSessionTarget,
} from "../infra/exec-approval-session-target.js";
export { buildChannelApprovalNativeTargetKey } from "../infra/approval-native-target-key.js";
export {
doesApprovalRequestMatchChannelAccount,
doesApprovalRequestSelectChannelAccount,
resolveApprovalRequestAccountId,
resolveApprovalRequestChannelAccountId,
} from "../infra/approval-request-account-binding.js";