Files
openclaw/src/plugin-sdk/interactive-runtime.ts
Peter Steinberger f0e81b97e8 refactor(model-picker): centralize session apply contracts (#114739)
* refactor(model-picker): centralize session apply contracts

* fix(ci): keep model apply helper result internal

* fix(model-picker): require channel codec opt-in
2026-07-27 16:58:23 -04:00

70 lines
2.2 KiB
TypeScript

/**
* Runtime SDK subpath for interactive replies and message presentation helpers.
*/
export {
adaptMessagePresentationForChannel,
applyPresentationActionLimits,
presentationPageSize,
reduceInteractiveReply,
} from "../channels/plugins/outbound/interactive.js";
export type {
InteractiveButtonStyle,
InteractiveReply,
InteractiveReplyBlock,
InteractiveReplyButton,
InteractiveReplyOption,
LegacyInteractiveReply,
LegacyInteractiveReplyBlock,
LegacyInteractiveReplyButton,
LegacyInteractiveReplyOption,
LegacyInteractiveReplySelectBlock,
LegacyInteractiveReplyTextBlock,
MessagePresentation,
MessagePresentationAction,
MessagePresentationBlock,
MessagePresentationButton,
MessagePresentationButtonStyle,
MessagePresentationButtonsBlock,
MessagePresentationChartBlock,
MessagePresentationChartSegment,
MessagePresentationChartSeries,
MessagePresentationContextBlock,
MessagePresentationDividerBlock,
MessagePresentationInteractiveBlock,
MessagePresentationOption,
MessagePresentationSelectBlock,
MessagePresentationTableBlock,
MessagePresentationTableCell,
MessagePresentationTextBlock,
MessagePresentationTone,
ModelPickerAction,
ReplyPayloadDelivery,
ReplyPayloadDeliveryPin,
} from "../interactive/payload.js";
export type { ModelPickerCapabilityProfile } from "../model-picker/capabilities.js";
export {
hasInteractiveReplyBlocks,
hasLegacyInteractiveReplyBlocks,
hasMessagePresentationBlocks,
hasReplyChannelData,
hasReplyContent,
interactiveReplyToPresentation,
legacyInteractiveReplyToPresentation,
isMessagePresentationInteractiveBlock,
normalizeMessagePresentation,
normalizeInteractiveReply,
normalizeLegacyInteractiveReply,
presentationToInteractiveControlsReply,
presentationToInteractiveReply,
renderMessagePresentationChartFallbackText,
renderMessagePresentationFallbackText,
renderMessagePresentationTableFallbackText,
resolveMessagePresentationActionValue,
resolveMessagePresentationButtonAction,
resolveMessagePresentationControlValue,
resolveMessagePresentationOptionAction,
resolveInteractiveTextFallback,
reduceLegacyInteractiveReply,
resolveLegacyInteractiveTextFallback,
} from "../interactive/payload.js";