Repository navigation
v0.3.0-preview.4
Pre-release
Pre-release
·
47 commits
to main
since this release
安装 / Install
dotnet add package TKCode.Arc --version 0.3.0-preview.4TKCode.Arc.Blocks、TKCode.Arc.AdvancedCharts、TKCode.Arc.Special、TKCode.Arc.Fonts、TKCode.Arc.Icons.Lucide 同版本发布。
The other packages (TKCode.Arc.Blocks, TKCode.Arc.AdvancedCharts, TKCode.Arc.Special, TKCode.Arc.Fonts, TKCode.Arc.Icons.Lucide) ship with the same version.
中文
新增
- 特别组件 › AI:
TKCode.Arc.Special中的五个智能体界面组件:AgentStatus(实时状态胶囊,可展开查看最近的步骤)、ToolCall与ToolCallGroup(显示输入与输出的工具调用行,可批准和重试)、AgentPlan(可编辑的计划草稿,批准后成为实时清单)、AgentTimeline(在同一时间轴上回放多智能体运行)和ContextWindow(带压缩阈值的 200 格令牌预算网格)。 - Blocks › 页眉与页脚:
SiteHeader、SiteFooter、CtaSection和NewsletterSignup,移植自 Arc 的免费区块。 - Blocks › AI:模型竞技场(
ModelArena,两个模型的盲测:流式回答、投票和排行)和文档提取(DocumentExtraction,文档旁的表单随模型阅读逐项填写,每个值都链接到其来源文本)。九个 AI 区块现已全部可用。 - AnnouncementBar:
DismissalDuration让记住的关闭状态在一段时间后失效。
变更
- Gallery:语言在顶栏有了独立的菜单,首次启动跟随系统语言并会被记住。首页新增友情链接,文档页加载时显示占位内容。
修复
- Combobox(#9):聚焦时不再显示深色的环,只把边框变为
BorderStrong,与 Arc 一致。 - Gallery(#8、#10):示例不再切掉行内编辑框和焦点环的左侧。
- Gallery(#11):以 NativeAOT 发布的桌面 Gallery 能重新加载文档页和截图。
English
Added
- Special components › AI (
TKCode.Arc.Special, original designs that take Arc's Pro behaviour and motion as a
reference):AgentStatus(live status pill that opens into the recent steps, with a built-inAgentRunSimulation),
ToolCallandToolCallGroup(tool call rows with input and output, inline approval and retry, a transcript
simulation),AgentPlan(editable, reorderable draft plan that becomes a live checklist),AgentTimeline(replay of a
multi-agent run on one time axis, with handoffs, span cards, pinning, scrubbing and a live mode) andContextWindow
(200-cell token budget grid with a compaction threshold, legend and send / attach / compact actions). Docs and demos in
English, 简体中文 and 繁體中文. - Blocks › Headers and footers (ported from Arc's free blocks):
SiteHeader(sticky header that turns solid on
scroll, gliding current-link marker, mega menu panels whose height springs and whose content slides in from the side
you moved toward, mobile menu sheet),SiteFooter(link columns with a validating newsletter, a minimal row, and a
large fading arch mark),CtaSection(centered, split beside a setup card that completes itself, dismissible
banner) andNewsletterSignup(email signup framed by a stack of past issues; subscribing drops the next issue onto
the front). - Blocks: the model arena, the eighth block of the AI group (original design): a blind test of two models. One prompt goes
to two anonymous models, both answers stream in on one shared clock in whole words whatever the real speeds, and the
vote reveals the models. Each answer shows time to first token, speed and cost measured on the raw stream, a failed
answer keeps its text and offers a retry of that model alone, and the standings rank the models by win rate and replay the
change the first time they are opened after a vote.ModelArenatakesContestants,Promptsand anIArenaRunner; in a
narrow container the answers become tabs. - Blocks: document extraction, the ninth and last block of the AI group (original design): turns a document into typed data
and shows where each value came from. A quiet viewer draws the document on white paper beside an editable form; while a
model reads, the fields fill in one by one, the text each value came from is tinted, and pointing at a field or its text lights
both and draws a curved link. Values below a confidence threshold carry the model's reason and a "Looks right" button, a
value that does not fit its type is null and blocks "Accept all", and the JSON and Schema tabs show the typed result and the
schema sent to the model.DocumentExtractiontakesSamples(document plus schema) and anIDocumentExtractor. - AnnouncementBar:
DismissalDurationlets a remembered dismissal expire (the gallery's sponsor banner comes back
after a day);null, the default, keeps the bar hidden for good, as before.
Changed
- Gallery: the language has its own menu in the top bar instead of a row in the Appearance popover. The first start
picks English, 简体中文 or 繁體中文 from the system's language (the browser's preferred languages on the web), and a
language chosen in the menu is remembered for the next start (local storage on the web, a small file in the local
application data folder on the desktop). - Gallery: a Friends section and page on the home page, a sponsor banner, a placeholder while a docs page loads, and a
page that opens at the top and stays there until you scroll.
Fixed
- Combobox (#9): a focused field drew a dark 3px ring around a dark border. Arc's focused combobox only turns its border
toBorderStrong; its halo is transparent, so the ring is gone. - Gallery (#8, #10): the examples stage no longer clips a view to its bounds, which cut off the left side of the inline edit
frame and of the focus rings that sit a few pixels outside a control. - Gallery (#11): a NativeAOT publish of the desktop gallery (
-p:PublishAot=true) showed "This page could not be loaded"
on every docs page, and no screenshots. The page text and the screenshots are resource-only assemblies that Avalonia
finds by name, and NativeAOT keeps no metadata for an assembly whose types nothing uses; the desktop host now roots
both (TrimmerRootAssembly).
Full Changelog: v0.3.0-preview.3...v0.3.0-preview.4