diff --git a/extensions/telegram/src/format.ts b/extensions/telegram/src/format.ts index 283ba7a1089c..284b48e286db 100644 --- a/extensions/telegram/src/format.ts +++ b/extensions/telegram/src/format.ts @@ -8,7 +8,6 @@ import { markdownToIRWithMeta, type MarkdownLinkSpan, type MarkdownIR, - type MarkdownTableAlignment, type MarkdownTableCell, type MarkdownTableMeta, renderMarkdownIRChunksWithinLimit, @@ -347,6 +346,8 @@ type TelegramHtmlTagSupport = { attrPatterns: ReadonlyMap; }; +type TelegramTableAlignment = NonNullable[number]; + const TELEGRAM_LEGACY_HTML_TAG_SUPPORT: TelegramHtmlTagSupport = { simpleTags: TELEGRAM_SIMPLE_HTML_TAGS, attrPatterns: TELEGRAM_ATTR_HTML_TAG_PATTERNS, @@ -976,7 +977,7 @@ function renderTelegramRichHtmlTable(table: MarkdownTableMeta): string { const renderCell = ( tag: "td" | "th", value: MarkdownTableCell | undefined, - align: MarkdownTableAlignment | undefined, + align: TelegramTableAlignment | undefined, ) => { const alignAttr = align ? ` align="${align}"` : ""; return `<${tag}${alignAttr}>${renderCellValue(value)}`; diff --git a/packages/markdown-core/src/ir.ts b/packages/markdown-core/src/ir.ts index 0c2f009ced8c..552e5bb92070 100644 --- a/packages/markdown-core/src/ir.ts +++ b/packages/markdown-core/src/ir.ts @@ -78,7 +78,7 @@ function createStyleSpan(params: MarkdownStyleSpan): MarkdownStyleSpan { return span; } -export type MarkdownTableAlignment = "left" | "center" | "right"; +type MarkdownTableAlignment = "left" | "center" | "right"; export type MarkdownTableData = { headers: string[]; diff --git a/scripts/plugin-sdk-surface-report.mjs b/scripts/plugin-sdk-surface-report.mjs index 19e9fb3b351f..3640f305a419 100644 --- a/scripts/plugin-sdk-surface-report.mjs +++ b/scripts/plugin-sdk-surface-report.mjs @@ -131,7 +131,7 @@ const defaultPublicDeprecatedExportsByEntrypointBudget = Object.freeze({ "ssrf-policy": 1, "ssrf-runtime": 1, "media-runtime": 2, - "text-runtime": 190, + "text-runtime": 189, "agent-runtime": 7, "plugin-runtime": 13, "channel-secret-runtime": 23, @@ -202,11 +202,11 @@ let publicDeprecatedExportsByEntrypointBudget; try { budgets = { publicEntrypoints: readBudgetEnv("OPENCLAW_PLUGIN_SDK_MAX_PUBLIC_ENTRYPOINTS", 322), - publicExports: readBudgetEnv("OPENCLAW_PLUGIN_SDK_MAX_PUBLIC_EXPORTS", 10383), + publicExports: readBudgetEnv("OPENCLAW_PLUGIN_SDK_MAX_PUBLIC_EXPORTS", 10381), publicFunctionExports: readBudgetEnv("OPENCLAW_PLUGIN_SDK_MAX_PUBLIC_FUNCTION_EXPORTS", 5210), publicDeprecatedExports: readBudgetEnv( "OPENCLAW_PLUGIN_SDK_MAX_PUBLIC_DEPRECATED_EXPORTS", - 3248, + 3247, ), publicWildcardReexports: readBudgetEnv( "OPENCLAW_PLUGIN_SDK_MAX_PUBLIC_WILDCARD_REEXPORTS", diff --git a/src/plugin-sdk/text-chunking.ts b/src/plugin-sdk/text-chunking.ts index ddcc8d61d9d6..14d3ce42e45a 100644 --- a/src/plugin-sdk/text-chunking.ts +++ b/src/plugin-sdk/text-chunking.ts @@ -25,7 +25,6 @@ export { type MarkdownParseOptions, type MarkdownStyle, type MarkdownStyleSpan, - type MarkdownTableAlignment, type MarkdownTableCell, type MarkdownTableMeta, } from "../../packages/markdown-core/src/ir.js";