@opentiny/next-remoter 0.3.1 → 0.3.3-alpha.1

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
  ```
@@ -123,7 +123,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
123
123
  * 由 remoter 调用 next-sdk 的 skill 能力处理:生成 systemPrompt 技能说明、内置 get_skill_content 工具,大模型可自动识别并加载技能
124
124
  */
125
125
  skills: {
126
- type: () => Record<string, string>;
126
+ type: () => Record<string, string | (() => Promise<string>)>;
127
127
  default: undefined;
128
128
  };
129
129
  /** 布局模式:支持所有 CSS position 属性值 'static' | 'relative' | 'absolute' | 'fixed' | 'sticky' */
@@ -259,12 +259,18 @@ 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;
265
270
  content: string;
266
271
  uiContent: any[];
267
272
  }) => void;
273
+ "chat-stream-finish": () => void;
268
274
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
269
275
  fullscreen: import('vue').PropType<any>;
270
276
  show: import('vue').PropType<any>;
@@ -371,7 +377,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
371
377
  * 由 remoter 调用 next-sdk 的 skill 能力处理:生成 systemPrompt 技能说明、内置 get_skill_content 工具,大模型可自动识别并加载技能
372
378
  */
373
379
  skills: {
374
- type: () => Record<string, string>;
380
+ type: () => Record<string, string | (() => Promise<string>)>;
375
381
  default: undefined;
376
382
  };
377
383
  /** 布局模式:支持所有 CSS position 属性值 'static' | 'relative' | 'absolute' | 'fixed' | 'sticky' */
@@ -394,6 +400,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
394
400
  default: undefined;
395
401
  };
396
402
  }>> & Readonly<{
403
+ "onChat-stream-finish"?: (() => any) | undefined;
397
404
  "onBefore-ai-render"?: ((currMessage: {
398
405
  role: string;
399
406
  content: string;
@@ -416,7 +423,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
416
423
  genUiComponents: Record<string, any>;
417
424
  customMarketMcpServers: PluginInfo[];
418
425
  llmConfigs: UnifiedModelConfig[];
419
- skills: Record<string, string>;
426
+ skills: Record<string, string | (() => Promise<string>)>;
420
427
  layoutMode: "absolute" | "fixed" | "static" | "relative" | "sticky";
421
428
  debugStream: boolean;
422
429
  promptItems: unknown[];
@@ -15,7 +15,8 @@ export declare class CustomAgentModelProvider extends BaseModelProvider {
15
15
  /** 生成式UI启用状态 */
16
16
  isGenuiEnabled?: Ref<boolean>;
17
17
  debugStream: boolean;
18
- constructor(config: AIModelConfig, systemPrompt: string, llmConfig?: ICustomAgentModelProviderLlmConfig);
18
+ emit: ((event: string, data: any) => void) | undefined;
19
+ constructor(config: AIModelConfig, systemPrompt: string, llmConfig?: ICustomAgentModelProviderLlmConfig, emit?: (event: string, data: any) => void);
19
20
  /**
20
21
  * 更新大语言模型配置
21
22
  * Update LLM configuration
@@ -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
  };