@opentiny/next-remoter 0.2.8 → 0.2.10
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/dist/components/TinyRobotChat.vue.d.ts +39 -2
- package/dist/composable/usePluginSession.d.ts +1 -1
- package/dist/next-remoter-runtime.es.js +31301 -31532
- package/dist/next-remoter.cjs.js +50 -53
- package/dist/next-remoter.css +1 -1
- package/dist/next-remoter.es.js +11394 -12449
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/composable/tools.d.ts +0 -3
|
@@ -5,6 +5,7 @@ import { ICustomAgentModelProviderLlmConfig } from '../types/type';
|
|
|
5
5
|
import { MenuItemConfig, McpServerConfig } from '@opentiny/next-sdk';
|
|
6
6
|
import { UnifiedModelConfig } from '../types/model-config';
|
|
7
7
|
|
|
8
|
+
declare function registerContentRenderer(key: string, renderer: (content: any) => VNode): void;
|
|
8
9
|
declare function __VLS_template(): Readonly<{
|
|
9
10
|
welcome(): any;
|
|
10
11
|
suggestions(): any;
|
|
@@ -143,6 +144,16 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
143
144
|
type: BooleanConstructor;
|
|
144
145
|
default: boolean;
|
|
145
146
|
};
|
|
147
|
+
/** 自定义欢迎区建议卡片(与 tr-prompts 的 items 格式一致)。不传则使用内置默认文案 */
|
|
148
|
+
promptItems: {
|
|
149
|
+
type: ArrayConstructor;
|
|
150
|
+
default: undefined;
|
|
151
|
+
};
|
|
152
|
+
/** 自定义输入框上方快捷操作按钮(与 pill 下拉菜单格式一致)。不传则使用内置默认文案 */
|
|
153
|
+
pillItems: {
|
|
154
|
+
type: ArrayConstructor;
|
|
155
|
+
default: undefined;
|
|
156
|
+
};
|
|
146
157
|
}>, {
|
|
147
158
|
/** 大模型代理 */
|
|
148
159
|
agent: import('@opentiny/next-sdk').AgentModelProvider;
|
|
@@ -255,7 +266,15 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
255
266
|
}) => Promise<boolean>;
|
|
256
267
|
/** 删除插件核心方法 */
|
|
257
268
|
deletePlugin: (plugin: PluginInfo) => Promise<void>;
|
|
258
|
-
|
|
269
|
+
/** 注册内容渲染器 */
|
|
270
|
+
registerContentRenderer: typeof registerContentRenderer;
|
|
271
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
272
|
+
"before-ai-render": (currMessage: {
|
|
273
|
+
role: string;
|
|
274
|
+
content: string;
|
|
275
|
+
uiContent: any[];
|
|
276
|
+
}) => void;
|
|
277
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
259
278
|
fullscreen: import('vue').PropType<any>;
|
|
260
279
|
show: import('vue').PropType<any>;
|
|
261
280
|
selectedModelId: import('vue').PropType<any>;
|
|
@@ -382,7 +401,23 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
382
401
|
type: BooleanConstructor;
|
|
383
402
|
default: boolean;
|
|
384
403
|
};
|
|
385
|
-
|
|
404
|
+
/** 自定义欢迎区建议卡片(与 tr-prompts 的 items 格式一致)。不传则使用内置默认文案 */
|
|
405
|
+
promptItems: {
|
|
406
|
+
type: ArrayConstructor;
|
|
407
|
+
default: undefined;
|
|
408
|
+
};
|
|
409
|
+
/** 自定义输入框上方快捷操作按钮(与 pill 下拉菜单格式一致)。不传则使用内置默认文案 */
|
|
410
|
+
pillItems: {
|
|
411
|
+
type: ArrayConstructor;
|
|
412
|
+
default: undefined;
|
|
413
|
+
};
|
|
414
|
+
}>> & Readonly<{
|
|
415
|
+
"onBefore-ai-render"?: ((currMessage: {
|
|
416
|
+
role: string;
|
|
417
|
+
content: string;
|
|
418
|
+
uiContent: any[];
|
|
419
|
+
}) => any) | undefined;
|
|
420
|
+
}>, {
|
|
386
421
|
title: string;
|
|
387
422
|
systemPrompt: string;
|
|
388
423
|
mode: string;
|
|
@@ -403,6 +438,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
403
438
|
layoutMode: "absolute" | "fixed" | "static" | "relative" | "sticky";
|
|
404
439
|
debugStream: boolean;
|
|
405
440
|
pageToolsOnDemand: boolean;
|
|
441
|
+
promptItems: unknown[];
|
|
442
|
+
pillItems: unknown[];
|
|
406
443
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
407
444
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
408
445
|
export default _default;
|
|
@@ -16,7 +16,7 @@ export declare function usePluginSession(options: {
|
|
|
16
16
|
mode: string;
|
|
17
17
|
qrCodeUrl?: string;
|
|
18
18
|
remoteUrl?: string;
|
|
19
|
-
menuItems?: MenuItemConfig[]
|
|
19
|
+
menuItems?: Ref<MenuItemConfig[] | undefined>;
|
|
20
20
|
AILogoUrl?: string;
|
|
21
21
|
show: Ref<boolean>;
|
|
22
22
|
addPluginFromScan: (sessionId: string, agentRoot: string) => Promise<boolean>;
|