refactor: add approval runtime sdk seam

This commit is contained in:
Peter Steinberger
2026-03-28 06:33:07 +00:00
parent 0d98ce1065
commit 922c90e9fa
13 changed files with 70 additions and 27 deletions

View File

@@ -0,0 +1,33 @@
// Approval request/reply helpers for exec and plugin approval flows.
export {
DEFAULT_EXEC_APPROVAL_TIMEOUT_MS,
type ExecApprovalDecision,
type ExecApprovalRequest,
type ExecApprovalRequestPayload,
type ExecApprovalResolved,
type ExecHost,
} from "../infra/exec-approvals.js";
export {
buildExecApprovalPendingReplyPayload,
getExecApprovalApproverDmNoticeText,
getExecApprovalReplyMetadata,
type ExecApprovalPendingReplyParams,
type ExecApprovalReplyDecision,
type ExecApprovalReplyMetadata,
} from "../infra/exec-approval-reply.js";
export { resolveExecApprovalCommandDisplay } from "../infra/exec-approval-command-display.js";
export {
resolveExecApprovalSessionTarget,
type ExecApprovalSessionTarget,
} from "../infra/exec-approval-session-target.js";
export {
buildPluginApprovalExpiredMessage,
buildPluginApprovalRequestMessage,
buildPluginApprovalResolvedMessage,
DEFAULT_PLUGIN_APPROVAL_TIMEOUT_MS,
MAX_PLUGIN_APPROVAL_TIMEOUT_MS,
type PluginApprovalRequest,
type PluginApprovalRequestPayload,
type PluginApprovalResolved,
} from "../infra/plugin-approvals.js";