惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
GbyAI
GbyAI
P
Proofpoint News Feed
B
Blog
MyScale Blog
MyScale Blog
V
V2EX
B
Blog RSS Feed
Microsoft Security Blog
Microsoft Security Blog
量子位
Jina AI
Jina AI
博客园 - 叶小钗
Recent Announcements
Recent Announcements
有赞技术团队
有赞技术团队
罗磊的独立博客
L
LangChain Blog
I
InfoQ
云风的 BLOG
云风的 BLOG
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
人人都是产品经理
人人都是产品经理
小众软件
小众软件
V
Visual Studio Blog
月光博客
月光博客
The Cloudflare Blog
雷峰网
雷峰网

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
docs: document presentation API surface · openclaw/opencl...
steipete · 2026-05-17 · via Recent Commits to openclaw:main

@@ -5,14 +5,21 @@ import {

5566

export type InteractiveButtonStyle = "primary" | "secondary" | "success" | "danger";

778+

/** Visual tone for a portable message presentation. */

89

export type MessagePresentationTone = "info" | "success" | "warning" | "danger" | "neutral";

91011+

/** Button style hint for renderers that support styled actions. */

1012

export type MessagePresentationButtonStyle = InteractiveButtonStyle;

111314+

/** Portable action control rendered as a button or link by channel adapters. */

1215

export type MessagePresentationButton = {

16+

/** User-visible button label. */

1317

label: string;

18+

/** Callback command or opaque value sent when the button is pressed. */

1419

value?: string;

20+

/** External URL opened by the button instead of sending a callback value. */

1521

url?: string;

22+

/** Telegram-style web app launch target. */

1623

webApp?: {

1724

url: string;

1825

};

@@ -22,13 +29,19 @@ export type MessagePresentationButton = {

2229

web_app?: {

2330

url: string;

2431

};

32+

/** Higher-priority buttons are kept first when channel limits require truncation. */

2533

priority?: number;

34+

/** Disable the button when the target channel supports disabled controls. */

2635

disabled?: boolean;

36+

/** Optional visual style hint; unsupported channels ignore or normalize it. */

2737

style?: InteractiveButtonStyle;

2838

};

293940+

/** Portable select/menu option. */

3041

export type MessagePresentationOption = {

42+

/** User-visible option label. */

3143

label: string;

44+

/** Callback command or opaque value sent when the option is selected. */

3245

value: string;

3346

};

3447

@@ -84,11 +97,13 @@ export type InteractiveReply = {

84978598

export type MessagePresentationTextBlock = {

8699

type: "text";

100+

/** Primary markdown-ish text rendered in the message body. */

87101

text: string;

88102

};

8910390104

export type MessagePresentationContextBlock = {

91105

type: "context";

106+

/** Lower-emphasis contextual text, or normal text on channels without context support. */

92107

text: string;

93108

};

94109

@@ -98,12 +113,15 @@ export type MessagePresentationDividerBlock = {

9811399114

export type MessagePresentationButtonsBlock = {

100115

type: "buttons";

116+

/** Button row candidates; core may split or truncate them for channel limits. */

101117

buttons: MessagePresentationButton[];

102118

};

103119104120

export type MessagePresentationSelectBlock = {

105121

type: "select";

122+

/** Optional prompt shown above or inside the select control. */

106123

placeholder?: string;

124+

/** Menu options; core may truncate them for channel limits. */

107125

options: MessagePresentationOption[];

108126

};

109127

@@ -119,8 +137,11 @@ export type MessagePresentationBlock =

119137

| MessagePresentationSelectBlock;

120138121139

export type MessagePresentation = {

140+

/** Optional short heading rendered before blocks when the channel supports it. */

122141

title?: string;

142+

/** Optional severity/status tone for renderers that support toned presentations. */

123143

tone?: MessagePresentationTone;

144+

/** Ordered portable blocks rendered or downgraded by the target channel adapter. */

124145

blocks: MessagePresentationBlock[];

125146

};

126147