mirror of
https://gitee.com/mateos/mateclaw.git
synced 2026-09-15 11:58:34 +08:00
refactor(chat): replace external-project comment refs with functional descriptions
The chat composables (useStickToBottom / useStream / useMessages / useTyping) carried '参考 @agentscope-ai/chat …' attribution comments. That package is not a dependency and is never imported — the lines were pure citation. Rewrite them as objective functional descriptions so shipped code does not name external projects.
This commit is contained in:
parent
20b8b63320
commit
d12e959add
@ -1,6 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* 消息状态管理 Composable
|
* 消息状态管理 Composable
|
||||||
* 参考 @agentscope-ai/chat 的消息管理实现
|
|
||||||
*/
|
*/
|
||||||
import { ref, computed } from 'vue'
|
import { ref, computed } from 'vue'
|
||||||
import type { Message, MessageContentPart } from '@/types'
|
import type { Message, MessageContentPart } from '@/types'
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* 智能滚动 Composable
|
* 智能滚动 Composable
|
||||||
* 参考 @agentscope-ai/chat 的 StickToBottom 实现,提供智能的自动滚动体验
|
* 提供"贴底/脱离锁定"的智能自动滚动体验:内容增长时自动贴底,用户上滚后释放锁定
|
||||||
*/
|
*/
|
||||||
import { ref, computed, onMounted, onUnmounted } from 'vue'
|
import { ref, computed, onMounted, onUnmounted } from 'vue'
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* SSE 流处理 Composable
|
* SSE 流处理 Composable
|
||||||
* 参考 @agentscope-ai/chat 的 Stream 实现,提供标准的 SSE 解析
|
* 提供标准的 SSE 流式解析
|
||||||
*/
|
*/
|
||||||
import { ref, computed } from 'vue'
|
import { ref, computed } from 'vue'
|
||||||
import { handleAuthFailure, updateTokenFromHeader } from '@/utils/auth'
|
import { handleAuthFailure, updateTokenFromHeader } from '@/utils/auth'
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* 打字机效果 Composable
|
* 打字机效果 Composable
|
||||||
* 参考 @agentscope-ai/chat 的实现,提供流畅的逐字显示效果
|
* 提供流畅的逐字打字显示效果
|
||||||
*/
|
*/
|
||||||
import { ref, computed, watch, nextTick } from 'vue'
|
import { ref, computed, watch, nextTick } from 'vue'
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user