feat: update MarkdownView render (#13387)

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

## Summary by CodeRabbit

* **New Features**
* Introduced support for managing context blobs, including adding and
removing blobs within contexts.
  * Added the ability to generate and revoke user access tokens.
  * Implemented queries to list user access tokens and context blobs.

* **Improvements**
* Enhanced context object queries to include blobs and updated related
data structures.
* Updated type references for improved schema alignment and consistency.

* **Bug Fixes**
* Removed obsolete or incorrect error fields from certain context and
document queries.

* **Chores**
  * Upgraded the MarkdownView dependency to version 3.4.1.
  * Updated internal type names for better clarity and maintainability.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Lakr authored and GitHub committed 2025-08-01 04:38:10 +00:00
1 parent 916887e9dc
commit 19790c1b9e
19 files changed
+384 -21

No files matched your search

@@ -280,7 +280,7 @@ private extension ChatManager {
vmId: UUID
) {
let result = MarkdownParser().parse(document)
let content = MarkdownTextView.PreprocessContent(parserResult: result, theme: .default)
let content = MarkdownTextView.PreprocessedContent(parserResult: result, theme: .default)
with(sessionId: sessionId, vmId: vmId) { (viewModel: inout AssistantMessageCellViewModel) in
viewModel.content = document
@@ -38,7 +38,7 @@ struct AssistantMessageCellViewModel: ChatCellViewModel {
var citations: [CitationViewModel]?
var actions: [MessageActionViewModel]?
var preprocessedContent: MarkdownTextView.PreprocessContent
var preprocessedContent: MarkdownTextView.PreprocessedContent
init(
id: UUID,
@@ -66,7 +66,7 @@ struct AssistantMessageCellViewModel: ChatCellViewModel {
let parser = MarkdownParser()
let parserResult = parser.parse(content)
preprocessedContent = MarkdownTextView.PreprocessContent(
preprocessedContent = MarkdownTextView.PreprocessedContent(
parserResult: parserResult,
theme: .default,
)