feat(core): peek doc in ai doc-read tool result (#13424)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **New Features**
* Enhanced document read results with clickable cards that open a peek
view of the referenced document.
* Added support for displaying document identifiers in document read
results.

* **Bug Fixes**
* Improved compatibility with older document read results that may lack
a document identifier.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Cats Juice
2025-08-06 12:01:07 +08:00
committed by GitHub
parent e735ada758
commit 44ef06de36
3 changed files with 21 additions and 0 deletions

View File

@@ -57,6 +57,7 @@ export const buildDocContentGetter = (
}
return {
docId,
title: content.title,
markdown: content.markdown,
createdAt: docMeta.createdAt,