新增: obscura 安装引导(prompt AI 看 hint 帮装 + 前端工具卡片 AI 帮装按钮)
This commit is contained in:
@@ -98,13 +98,14 @@
|
||||
{{ tc.result || $t('aiTool.rejectedHint') }}
|
||||
</div>
|
||||
|
||||
<!-- 各工具结果展示(read_file/list_directory/search_files/write_file/patch_file/run_command/http_request/通用)
|
||||
委托 ToolResultBody 子组件,透传 tc + 内容展开态 + expand-content 冒泡 -->
|
||||
<!-- 各工具结果展示(read_file/list_directory/search_files/write_file/patch_file/run_command/http_request/fetch_url/通用)
|
||||
委托 ToolResultBody 子组件,透传 tc + 内容展开态 + expand-content/install-obscura 冒泡 -->
|
||||
<ToolResultBody
|
||||
v-if="tc.status === 'completed'"
|
||||
:tc="tc"
|
||||
:isContentExpanded="isContentExpanded"
|
||||
@expand-content="(id) => emit('expand-content', id)"
|
||||
@install-obscura="() => emit('install-obscura')"
|
||||
/>
|
||||
</div><!-- /.ai-tool-body -->
|
||||
|
||||
@@ -156,6 +157,11 @@ const emit = defineEmits<{
|
||||
toggle: [id: string]
|
||||
/** read_file "展开全部/收起" → 内容级展开 */
|
||||
'expand-content': [id: string]
|
||||
/**
|
||||
* fetch_url static_fallback(obscura 未装)时"AI 帮装"按钮 → 透传父级 → MessageList
|
||||
* 调 store.sendMessage 触发 AI 装流式。仅 fetch_url 工具会发此事件。
|
||||
*/
|
||||
'install-obscura': []
|
||||
/**
|
||||
* 审批按钮 → 父级转发 store.approveToolCall。
|
||||
* path_auth 审批链阶段3b:risk 类带 approved boolean;path 类带 decision('once'|'always'|'deny')。
|
||||
|
||||
Reference in New Issue
Block a user