fix(web): 按评审意见调整引用职责

This commit is contained in:
creatixchu
2026-08-17 21:13:33 +08:00
parent 7d19a6c2c7
commit 29de639e99
46 changed files with 325 additions and 729 deletions
+2 -2
View File
@@ -158,11 +158,11 @@ async listCandidates( agent: Agent, query: string = '', limit: number = this.con
@Remote('candidates') async remoteExportCandidates( agent: Agent, query: string, signal: AbortSignal, ): Promise<SessionReferenceMentionCandidate[]>
/**
* Snapshot all references before enqueue and return one aggregated durable context.
* Snapshot all references for one accepted direct message and return one aggregated durable context.
* @param agent - target agent; references to it are rejected.
* @param content - already host-normalized readable message content.
* @param references - structured source sessions in mention order.
* @param signal - optional cancellation boundary for host request teardown.
* @param signal - optional cancellation boundary for the active turn.
* @returns detached content and optional referenced-session context.
*/
async prepare( agent: Agent, content: ContentBlock[], references: SessionReferenceInput[], signal?: AbortSignal, ): Promise<PreparedReferencedMessage>