@opentiny/next-remoter 0.3.3 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -318,7 +318,7 @@ const deepSeekConfig = {
318
318
  baseURL: 'https://api.deepseek.com',
319
319
  providerType: 'deepseek',
320
320
  model: 'deepseek-chat',
321
- maxSteps: 15
321
+ maxSteps: 30
322
322
  }
323
323
  </script>
324
324
  ```
@@ -259,6 +259,11 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
259
259
  deletePlugin: (plugin: PluginInfo) => Promise<void>;
260
260
  /** 注册内容渲染器 */
261
261
  registerContentRenderer: typeof registerContentRenderer;
262
+ /**
263
+ * 刷新已安装插件的工具列表(从 agent.mcpTools 同步到 UI)
264
+ * 适用于 builtin client 工具变化后的快速刷新,避免 remove + reload 导致的 UI 闪烁
265
+ */
266
+ refreshPluginTools(): Promise<void>;
262
267
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
263
268
  "before-ai-render": (currMessage: {
264
269
  role: string;
@@ -12,7 +12,7 @@ export type INextAgetOption = {
12
12
  systemPrompt?: string;
13
13
  /** 大语言模型 的 modelId, 比如:'deepseek-ai/DeepSeek-V3' */
14
14
  model: string;
15
- /** 一次对话中的最大轮数, 最大默认 5轮 */
15
+ /** 一次对话中的最大步数(模型-工具循环),默认 30 */
16
16
  maxSteps?: number;
17
17
  /** 自定义流数据处理函数,将 llm 返回的流数据,按自定义的格式,保存到messages 数组中。
18
18
  * 如果设置,则代替内部默认的流处理函数。
@@ -12,7 +12,7 @@ export declare function usePluginSession(options: {
12
12
  * - 后续变为非空字符串时:自动升级为带二维码 / 遥控器等完整菜单
13
13
  */
14
14
  sessionId: Ref<string | undefined>;
15
- agentRoot: string;
15
+ agentRoot: Ref<string>;
16
16
  mode: string;
17
17
  qrCodeUrl?: string;
18
18
  remoteUrl?: string;
@@ -18,5 +18,5 @@ export declare function useSkillWithTools(options: UseSkillWithToolsOptions): {
18
18
  }>;
19
19
  skillPromptPart: import('vue').ComputedRef<string>;
20
20
  skillTools: import('vue').ComputedRef<import('@opentiny/next-sdk').SkillToolsSet>;
21
- skillOverviews: import('vue').ComputedRef<SkillMeta[]>;
21
+ skillOverviews: import('vue').ShallowRef<SkillMeta[], SkillMeta[]>;
22
22
  };