chore: establish YCode replication baseline and TODO
This commit is contained in:
commit
6dc59f89ba
1118 files changed
+196002
No files matched your search
@@ -0,0 +1,37 @@
|
||||
// Offline verification only. No model request or product session is created.
|
||||
const now = Date.now()
|
||||
const content = [
|
||||
'## 对话渲染源码还原验证',
|
||||
'',
|
||||
'行内公式:$E=mc^2$,集合宏:$\\RR$。',
|
||||
'',
|
||||
'$$',
|
||||
'\\int_0^1 x^2\\,dx = \\frac{1}{3}',
|
||||
'$$',
|
||||
'',
|
||||
'带文件和行号的代码:',
|
||||
'',
|
||||
'```ts:12:15:src/components/Message.tsx',
|
||||
'export function Message({ text }: { text: string }) {',
|
||||
' return <p>{text}</p>',
|
||||
'}',
|
||||
'```',
|
||||
'',
|
||||
'| 检查项 | 行为 |',
|
||||
'| --- | --- |',
|
||||
'| 公式 | KaTeX 渲染 |',
|
||||
'| 代码 | 原文复制、文件行号 |',
|
||||
'| 表格 | 引用原始 Markdown |',
|
||||
'',
|
||||
'- [x] 完成内容保持原顺序',
|
||||
'- [ ] 继续补齐宿主能力',
|
||||
'',
|
||||
'<function_calls><invoke name="hidden">protocol payload</invoke></function_calls>'
|
||||
].join('\n')
|
||||
export const sourceRecoveryFixture = {
|
||||
sessions: [{ id: 'source-recovery', title: '对话渲染源码还原', createdAt: now, updatedAt: now }],
|
||||
messages: { 'source-recovery': [
|
||||
{ id: 'recovery-user', role: 'user', content: '验证数学公式、代码文件行号和表格引用。', status: 'done', createdAt: now },
|
||||
{ id: 'recovery-assistant', role: 'assistant', content, parts: [{ type: 'text', text: content }], tools: [], status: 'done', createdAt: now }
|
||||
] }
|
||||
}
|
||||
Reference in new issue
Block a user