@bdky/chat-pilot-kit-vue3 1.0.4
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 +248 -0
- package/dist/index.css +1928 -0
- package/dist/ky-chat-pilot-kit-vue3.cjs.js +3184 -0
- package/dist/ky-chat-pilot-kit-vue3.esm.js +3080 -0
- package/dist/libs/chat-pilot-kit-vue3/src/index.d.ts +1 -0
- package/dist/libs/chat-pilot-kit-vue3/src/lib/composables/index.d.ts +8 -0
- package/dist/libs/chat-pilot-kit-vue3/src/lib/composables/useChatPilotKit.d.ts +4 -0
- package/dist/libs/chat-pilot-kit-vue3/src/lib/composables/useChatPilotKitEvents.d.ts +15 -0
- package/dist/libs/chat-pilot-kit-vue3/src/lib/composables/useConversations.d.ts +10 -0
- package/dist/libs/chat-pilot-kit-vue3/src/lib/composables/useNodeInteraction.d.ts +11 -0
- package/dist/libs/chat-pilot-kit-vue3/src/lib/i18n/index.d.ts +5 -0
- package/dist/libs/chat-pilot-kit-vue3/src/lib/i18n/translations-context.d.ts +9 -0
- package/dist/libs/chat-pilot-kit-vue3/src/lib/i18n/translations.d.ts +10 -0
- package/dist/libs/chat-pilot-kit-vue3/src/lib/i18n/zh-CN.d.ts +2 -0
- package/dist/libs/chat-pilot-kit-vue3/src/lib/index.d.ts +6 -0
- package/dist/libs/chat-pilot-kit-vue3/src/lib/nodeView/VueNodeViewRenderer.d.ts +4 -0
- package/dist/libs/chat-pilot-kit-vue3/src/lib/nodeView/defaults/index.d.ts +9 -0
- package/dist/libs/chat-pilot-kit-vue3/src/lib/nodeView/defaults/vueExtensions.d.ts +14 -0
- package/dist/libs/chat-pilot-kit-vue3/src/lib/nodeView/index.d.ts +6 -0
- package/dist/libs/chat-pilot-kit-vue3/src/lib/nodeView/types.d.ts +4 -0
- package/dist/libs/chat-pilot-kit-vue3/src/lib/providers/ChatPilotKitProvider.d.ts +8 -0
- package/dist/libs/chat-pilot-kit-vue3/src/lib/providers/index.d.ts +2 -0
- package/dist/libs/chat-pilot-kit-vue3/src/samples/vue3/components/MockAgentService.d.ts +35 -0
- package/dist/libs/chat-pilot-kit-vue3/src/samples/vue3/i18n/translations-context.d.ts +6 -0
- package/dist/libs/chat-pilot-kit-vue3/src/samples/vue3/i18n/translations.d.ts +72 -0
- package/dist/libs/chat-pilot-kit-vue3/src/samples/vue3/i18n/zh-CN.d.ts +2 -0
- package/dist/libs/chat-pilot-kit-vue3/src/samples/vue3/index.d.ts +2 -0
- package/dist/libs/chat-pilot-kit-vue3/src/test-setup.d.ts +1 -0
- package/dist/static/font/KaTeX_AMS-Regular.ttf +0 -0
- package/dist/static/font/KaTeX_AMS-Regular.woff +0 -0
- package/dist/static/font/KaTeX_AMS-Regular.woff2 +0 -0
- package/dist/static/font/KaTeX_Caligraphic-Bold.ttf +0 -0
- package/dist/static/font/KaTeX_Caligraphic-Bold.woff +0 -0
- package/dist/static/font/KaTeX_Caligraphic-Bold.woff2 +0 -0
- package/dist/static/font/KaTeX_Caligraphic-Regular.ttf +0 -0
- package/dist/static/font/KaTeX_Caligraphic-Regular.woff +0 -0
- package/dist/static/font/KaTeX_Caligraphic-Regular.woff2 +0 -0
- package/dist/static/font/KaTeX_Fraktur-Bold.ttf +0 -0
- package/dist/static/font/KaTeX_Fraktur-Bold.woff +0 -0
- package/dist/static/font/KaTeX_Fraktur-Bold.woff2 +0 -0
- package/dist/static/font/KaTeX_Fraktur-Regular.ttf +0 -0
- package/dist/static/font/KaTeX_Fraktur-Regular.woff +0 -0
- package/dist/static/font/KaTeX_Fraktur-Regular.woff2 +0 -0
- package/dist/static/font/KaTeX_Main-Bold.ttf +0 -0
- package/dist/static/font/KaTeX_Main-Bold.woff +0 -0
- package/dist/static/font/KaTeX_Main-Bold.woff2 +0 -0
- package/dist/static/font/KaTeX_Main-BoldItalic.ttf +0 -0
- package/dist/static/font/KaTeX_Main-BoldItalic.woff +0 -0
- package/dist/static/font/KaTeX_Main-BoldItalic.woff2 +0 -0
- package/dist/static/font/KaTeX_Main-Italic.ttf +0 -0
- package/dist/static/font/KaTeX_Main-Italic.woff +0 -0
- package/dist/static/font/KaTeX_Main-Italic.woff2 +0 -0
- package/dist/static/font/KaTeX_Main-Regular.ttf +0 -0
- package/dist/static/font/KaTeX_Main-Regular.woff +0 -0
- package/dist/static/font/KaTeX_Main-Regular.woff2 +0 -0
- package/dist/static/font/KaTeX_Math-BoldItalic.ttf +0 -0
- package/dist/static/font/KaTeX_Math-BoldItalic.woff +0 -0
- package/dist/static/font/KaTeX_Math-BoldItalic.woff2 +0 -0
- package/dist/static/font/KaTeX_Math-Italic.ttf +0 -0
- package/dist/static/font/KaTeX_Math-Italic.woff +0 -0
- package/dist/static/font/KaTeX_Math-Italic.woff2 +0 -0
- package/dist/static/font/KaTeX_SansSerif-Bold.ttf +0 -0
- package/dist/static/font/KaTeX_SansSerif-Bold.woff +0 -0
- package/dist/static/font/KaTeX_SansSerif-Bold.woff2 +0 -0
- package/dist/static/font/KaTeX_SansSerif-Italic.ttf +0 -0
- package/dist/static/font/KaTeX_SansSerif-Italic.woff +0 -0
- package/dist/static/font/KaTeX_SansSerif-Italic.woff2 +0 -0
- package/dist/static/font/KaTeX_SansSerif-Regular.ttf +0 -0
- package/dist/static/font/KaTeX_SansSerif-Regular.woff +0 -0
- package/dist/static/font/KaTeX_SansSerif-Regular.woff2 +0 -0
- package/dist/static/font/KaTeX_Script-Regular.ttf +0 -0
- package/dist/static/font/KaTeX_Script-Regular.woff +0 -0
- package/dist/static/font/KaTeX_Script-Regular.woff2 +0 -0
- package/dist/static/font/KaTeX_Size1-Regular.ttf +0 -0
- package/dist/static/font/KaTeX_Size1-Regular.woff +0 -0
- package/dist/static/font/KaTeX_Size1-Regular.woff2 +0 -0
- package/dist/static/font/KaTeX_Size2-Regular.ttf +0 -0
- package/dist/static/font/KaTeX_Size2-Regular.woff +0 -0
- package/dist/static/font/KaTeX_Size2-Regular.woff2 +0 -0
- package/dist/static/font/KaTeX_Size3-Regular.ttf +0 -0
- package/dist/static/font/KaTeX_Size3-Regular.woff +0 -0
- package/dist/static/font/KaTeX_Size3-Regular.woff2 +0 -0
- package/dist/static/font/KaTeX_Size4-Regular.ttf +0 -0
- package/dist/static/font/KaTeX_Size4-Regular.woff +0 -0
- package/dist/static/font/KaTeX_Size4-Regular.woff2 +0 -0
- package/dist/static/font/KaTeX_Typewriter-Regular.ttf +0 -0
- package/dist/static/font/KaTeX_Typewriter-Regular.woff +0 -0
- package/dist/static/font/KaTeX_Typewriter-Regular.woff2 +0 -0
- package/package.json +74 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lib';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { useChatPilotKit } from './useChatPilotKit';
|
|
2
|
+
export type { IUseChatPilotKitResult } from './useChatPilotKit';
|
|
3
|
+
export { useChatPilotKitEvents } from './useChatPilotKitEvents';
|
|
4
|
+
export type { IUseChatPilotKitEventsProps } from './useChatPilotKitEvents';
|
|
5
|
+
export { useConversations } from './useConversations';
|
|
6
|
+
export type { IConversationItem } from './useConversations';
|
|
7
|
+
export { useNodeInteraction } from './useNodeInteraction';
|
|
8
|
+
export type { IUseNodeInteractionProps, IUseNodeInteractionResult } from './useNodeInteraction';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { BaseAgentService } from '@bdky/chat-pilot-kit';
|
|
2
|
+
import { type IChatPilotKitContext } from '../providers/ChatPilotKitProvider';
|
|
3
|
+
export type IUseChatPilotKitResult<AS extends BaseAgentService = BaseAgentService> = IChatPilotKitContext<AS>;
|
|
4
|
+
export declare const useChatPilotKit: <AS extends BaseAgentService = BaseAgentService>() => IUseChatPilotKitResult<AS>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { IChatPilotKitEmitter } from '@bdky/chat-pilot-kit';
|
|
2
|
+
export interface IUseChatPilotKitEventsProps {
|
|
3
|
+
onReady?: () => void;
|
|
4
|
+
onConversationAdd?: (payload: IChatPilotKitEmitter['conversation_add']) => void;
|
|
5
|
+
onConversationChange?: (payload: IChatPilotKitEmitter['conversation_change']) => void;
|
|
6
|
+
onNodeAdd?: (payload: IChatPilotKitEmitter['node_add']) => void;
|
|
7
|
+
onNodeUpdate?: (payload: IChatPilotKitEmitter['node_update']) => void;
|
|
8
|
+
onError?: (payload: IChatPilotKitEmitter['error']) => void;
|
|
9
|
+
onInterrupt?: (payload: IChatPilotKitEmitter['interrupt']) => void;
|
|
10
|
+
onClear?: () => void;
|
|
11
|
+
onTtft?: (payload: IChatPilotKitEmitter['ttft']) => void;
|
|
12
|
+
onHistoryImport?: (payload: IChatPilotKitEmitter['history_import']) => void;
|
|
13
|
+
onNodeInteraction?: (payload: IChatPilotKitEmitter['node_interaction']) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const useChatPilotKitEvents: (props?: IUseChatPilotKitEventsProps) => void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type ShallowRef } from 'vue';
|
|
2
|
+
import type { ConversationNode, ConversationBean, ConversationRole } from '@bdky/chat-pilot-kit';
|
|
3
|
+
export interface IConversationItem {
|
|
4
|
+
conversationId: string;
|
|
5
|
+
role: ConversationRole;
|
|
6
|
+
nodes: ConversationNode[];
|
|
7
|
+
completed: boolean;
|
|
8
|
+
bean: ConversationBean;
|
|
9
|
+
}
|
|
10
|
+
export declare const useConversations: () => ShallowRef<IConversationItem[]>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IChatPilotKitEmitter } from '@bdky/chat-pilot-kit';
|
|
2
|
+
type TNodeInteractionPayload = IChatPilotKitEmitter['node_interaction'];
|
|
3
|
+
export interface IUseNodeInteractionProps {
|
|
4
|
+
onInteraction?: (payload: TNodeInteractionPayload) => void;
|
|
5
|
+
filter?: string | string[] | ((type: string) => boolean);
|
|
6
|
+
}
|
|
7
|
+
export interface IUseNodeInteractionResult {
|
|
8
|
+
sendCommand: <TArgs = unknown>(nodeId: string, type: string, args?: TArgs) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const useNodeInteraction: (props?: IUseNodeInteractionProps) => IUseNodeInteractionResult;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type { CpkTranslations } from './translations';
|
|
2
|
+
export type { CpkTranslationsConfig } from './translations-context';
|
|
3
|
+
export { provideCpkTranslations, useCpkTranslations } from './translations-context';
|
|
4
|
+
export { defaultTranslations } from './translations';
|
|
5
|
+
export { zhCN } from './zh-CN';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type CpkTranslations } from './translations';
|
|
2
|
+
export interface CpkTranslationsConfig {
|
|
3
|
+
locale?: 'en' | 'zh-CN';
|
|
4
|
+
translations?: Partial<CpkTranslations>;
|
|
5
|
+
}
|
|
6
|
+
export declare const provideCpkTranslations: (config?: CpkTranslationsConfig) => {
|
|
7
|
+
setLocale: (locale: "en" | "zh-CN") => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const useCpkTranslations: () => CpkTranslations;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface CpkTranslations {
|
|
2
|
+
thinkingBlockLabel: string;
|
|
3
|
+
toolCallStatusPending: string;
|
|
4
|
+
toolCallStatusRunning: string;
|
|
5
|
+
toolCallStatusCompleted: string;
|
|
6
|
+
toolCallStatusError: string;
|
|
7
|
+
toolCallArguments: string;
|
|
8
|
+
toolCallResult: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const defaultTranslations: CpkTranslations;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './providers';
|
|
2
|
+
export * from './composables';
|
|
3
|
+
export * from './nodeView';
|
|
4
|
+
export * from './i18n';
|
|
5
|
+
export type { NodeViewProps, INodeView, NodeViewFactory, ConversationNode, ConversationBean, ConversationRole, IChatPilotKitEmitter, IConversationChangePayload, IConversationBeanSnapshot, IConversationBeanInput, IImportOptions, IAttachmentInput, IConversationNodeSnapshot, IConversationNodeInput, MessageExtensionConfig, MessageExtensionInstance, AgentMessageData, INodeInteractionPayload, INodeViewCommand } from '@bdky/chat-pilot-kit';
|
|
6
|
+
export { createChatPilotKit, MessageExtension, BaseAgentService, StreamableGenericNode, GenericNode } from '@bdky/chat-pilot-kit';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ConversationNode, NodeViewFactory } from '@bdky/chat-pilot-kit';
|
|
2
|
+
import { type VueNodeViewComponent } from './types';
|
|
3
|
+
export declare const VueNodeViewRenderer: <TNode extends ConversationNode = ConversationNode>(Component: VueNodeViewComponent<TNode>) => NodeViewFactory<TNode>;
|
|
4
|
+
export declare const extractVueComponent: (factory: NodeViewFactory | null) => VueNodeViewComponent | null;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { VueTextExtension, VueThinkingBlockExtension, VueImageExtension, VueFileExtension, VueAudioExtension, VueVideoExtension, VueToolCallExtension, VueMarkdownExtension, getDefaultVueExtensions } from './vueExtensions';
|
|
2
|
+
export { default as TextNodeView } from './TextNodeView.vue';
|
|
3
|
+
export { default as MarkdownNodeView } from './MarkdownNodeView.vue';
|
|
4
|
+
export { default as ThinkingBlockNodeView } from './ThinkingBlockNodeView.vue';
|
|
5
|
+
export { default as ToolCallNodeView } from './ToolCallNodeView.vue';
|
|
6
|
+
export { default as ImageNodeView } from './ImageNodeView.vue';
|
|
7
|
+
export { default as FileNodeView } from './FileNodeView.vue';
|
|
8
|
+
export { default as AudioNodeView } from './AudioNodeView.vue';
|
|
9
|
+
export { default as VideoNodeView } from './VideoNodeView.vue';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { MessageExtensionInstance } from '@bdky/chat-pilot-kit';
|
|
2
|
+
export declare const VueTextExtension: MessageExtensionInstance;
|
|
3
|
+
export declare const VueThinkingBlockExtension: MessageExtensionInstance;
|
|
4
|
+
export declare const VueImageExtension: MessageExtensionInstance;
|
|
5
|
+
export declare const VueFileExtension: MessageExtensionInstance;
|
|
6
|
+
export declare const VueAudioExtension: MessageExtensionInstance;
|
|
7
|
+
export declare const VueVideoExtension: MessageExtensionInstance;
|
|
8
|
+
export declare const VueToolCallExtension: MessageExtensionInstance;
|
|
9
|
+
export declare const VueMarkdownExtension: MessageExtensionInstance;
|
|
10
|
+
/**
|
|
11
|
+
* 返回全部内置预绑定 Vue 扩展(含 MarkdownExtension,使用 markstream-vue 渲染)
|
|
12
|
+
* 如需自定义 Markdown 渲染,可 VueMarkdownExtension.extend({addNodeView()}) 覆盖
|
|
13
|
+
*/
|
|
14
|
+
export declare const getDefaultVueExtensions: () => MessageExtensionInstance[];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { VUE_NODE_VIEW_MARKER } from './types';
|
|
2
|
+
export type { VueNodeViewComponent } from './types';
|
|
3
|
+
export { VueNodeViewRenderer, extractVueComponent } from './VueNodeViewRenderer';
|
|
4
|
+
export { default as NodeRenderer } from './NodeRenderer.vue';
|
|
5
|
+
export { default as DomNodeRenderer } from './DomNodeRenderer.vue';
|
|
6
|
+
export * from './defaults';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Component } from 'vue';
|
|
2
|
+
import type { NodeViewProps, ConversationNode } from '@bdky/chat-pilot-kit';
|
|
3
|
+
export type VueNodeViewComponent<TNode extends ConversationNode = ConversationNode> = Component<NodeViewProps<TNode>>;
|
|
4
|
+
export declare const VUE_NODE_VIEW_MARKER: unique symbol;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type InjectionKey } from 'vue';
|
|
2
|
+
import type { BaseAgentService, ChatPilotKitController } from '@bdky/chat-pilot-kit';
|
|
3
|
+
export interface IChatPilotKitContext<AS extends BaseAgentService = BaseAgentService> {
|
|
4
|
+
controller: ChatPilotKitController<AS>;
|
|
5
|
+
}
|
|
6
|
+
export declare const ChatPilotKitProviderKey: InjectionKey<IChatPilotKitContext>;
|
|
7
|
+
export declare const provideChatPilotKit: <AS extends BaseAgentService = BaseAgentService>(controller: ChatPilotKitController<AS>) => void;
|
|
8
|
+
export declare const injectChatPilotKit: <AS extends BaseAgentService = BaseAgentService>() => IChatPilotKitContext<AS>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { BaseAgentService, type AgentMessageData, type IConversationBeanInput } from '@bdky/chat-pilot-kit';
|
|
2
|
+
export type TBehaviorDemoType = 'create' | 'append' | 'replace' | 'remove';
|
|
3
|
+
export type TTargetNodeDemoType = 'by_id' | 'by_matcher';
|
|
4
|
+
export declare const createBehaviorDemoQuery: (behavior: TBehaviorDemoType) => string;
|
|
5
|
+
export declare const createTargetNodeDemoQuery: (demoType: TTargetNodeDemoType) => string;
|
|
6
|
+
export declare const createTargetNodeDemoHistoryInputs: () => IConversationBeanInput[];
|
|
7
|
+
export interface MockMediaOptions {
|
|
8
|
+
image: boolean;
|
|
9
|
+
audio: boolean;
|
|
10
|
+
video: boolean;
|
|
11
|
+
file: boolean;
|
|
12
|
+
richtext: boolean;
|
|
13
|
+
toolCall: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare const buildBehaviorDemoPayloads: (behavior: TBehaviorDemoType, queryId: string, sessionId: string) => AgentMessageData[];
|
|
16
|
+
export declare const buildTargetNodeDemoPayloads: (demoType: TTargetNodeDemoType, queryId: string, sessionId: string) => AgentMessageData[];
|
|
17
|
+
export declare class MockAgentService extends BaseAgentService {
|
|
18
|
+
mediaOptions: MockMediaOptions;
|
|
19
|
+
private locale;
|
|
20
|
+
private timer;
|
|
21
|
+
private responseIndex;
|
|
22
|
+
private resolveCurrentQuery;
|
|
23
|
+
private _aborted;
|
|
24
|
+
setMediaOptions: (opts: MockMediaOptions) => void;
|
|
25
|
+
setLocale: (locale: "en" | "zh-CN") => void;
|
|
26
|
+
query: (_text: string) => Promise<void>;
|
|
27
|
+
abort: (reason?: string) => void;
|
|
28
|
+
dispose: () => void;
|
|
29
|
+
private readonly handleBehaviorDemoQuery;
|
|
30
|
+
private readonly handleTargetNodeDemoQuery;
|
|
31
|
+
private readonly emitMediaNodes;
|
|
32
|
+
private readonly emitBehaviorDemoPayloads;
|
|
33
|
+
private readonly streamPhase;
|
|
34
|
+
private readonly waitPhase;
|
|
35
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type PlaygroundTranslations } from './translations';
|
|
2
|
+
export declare const providePlaygroundTranslations: (initialLocale?: "en" | "zh-CN") => {
|
|
3
|
+
setLocale: (locale: "en" | "zh-CN") => void;
|
|
4
|
+
translations: PlaygroundTranslations;
|
|
5
|
+
};
|
|
6
|
+
export declare const usePlaygroundTranslations: () => PlaygroundTranslations;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
export interface PlaygroundTranslations {
|
|
2
|
+
brandName: string;
|
|
3
|
+
brandVersion: string;
|
|
4
|
+
sidebarDemos: string;
|
|
5
|
+
demoChatConversation: string;
|
|
6
|
+
demoThinkingBlock: string;
|
|
7
|
+
demoToolCallFlow: string;
|
|
8
|
+
demoMediaNodes: string;
|
|
9
|
+
sidebarTheme: string;
|
|
10
|
+
themeLight: string;
|
|
11
|
+
themeDark: string;
|
|
12
|
+
themeAuto: string;
|
|
13
|
+
clearMessages: string;
|
|
14
|
+
nodeViewPanel: string;
|
|
15
|
+
sidebarLanguage: string;
|
|
16
|
+
emptyStateTitle: string;
|
|
17
|
+
suggestionStreamingLabel: string;
|
|
18
|
+
suggestionStreamingDesc: string;
|
|
19
|
+
suggestionNodeViewLabel: string;
|
|
20
|
+
suggestionNodeViewDesc: string;
|
|
21
|
+
suggestionToolCallsLabel: string;
|
|
22
|
+
suggestionToolCallsDesc: string;
|
|
23
|
+
suggestionExtensionsLabel: string;
|
|
24
|
+
suggestionExtensionsDesc: string;
|
|
25
|
+
inputPlaceholder: string;
|
|
26
|
+
sendTooltip: string;
|
|
27
|
+
abortTooltip: string;
|
|
28
|
+
attachTooltip: string;
|
|
29
|
+
attachAriaLabel: string;
|
|
30
|
+
sdkToolsTitle: string;
|
|
31
|
+
footerHint: string;
|
|
32
|
+
copied: string;
|
|
33
|
+
copy: string;
|
|
34
|
+
sdkBehaviorDemo: string;
|
|
35
|
+
sdkTargetNodeDemo: string;
|
|
36
|
+
sdkMediaOptions: string;
|
|
37
|
+
sdkImportExport: string;
|
|
38
|
+
sdkCreateDemo: string;
|
|
39
|
+
sdkAppendDemo: string;
|
|
40
|
+
sdkReplaceDemo: string;
|
|
41
|
+
sdkRemoveDemo: string;
|
|
42
|
+
sdkTargetById: string;
|
|
43
|
+
sdkTargetByMatcher: string;
|
|
44
|
+
sdkMediaImage: string;
|
|
45
|
+
sdkMediaAudio: string;
|
|
46
|
+
sdkMediaVideo: string;
|
|
47
|
+
sdkMediaFile: string;
|
|
48
|
+
sdkMediaRichText: string;
|
|
49
|
+
sdkMediaToolCall: string;
|
|
50
|
+
sdkPrependImport: string;
|
|
51
|
+
sdkReplaceImport: string;
|
|
52
|
+
sdkExportConsole: string;
|
|
53
|
+
galleryEyebrow: string;
|
|
54
|
+
galleryTitle: string;
|
|
55
|
+
galleryDesc: string;
|
|
56
|
+
gallerySectionThinking: string;
|
|
57
|
+
galleryThinkingLabel: string;
|
|
58
|
+
galleryThinkingExpanded: string;
|
|
59
|
+
gallerySectionToolCall: string;
|
|
60
|
+
galleryToolCallPending: string;
|
|
61
|
+
galleryToolCallRunning: string;
|
|
62
|
+
galleryToolCallCompleted: string;
|
|
63
|
+
galleryToolCallError: string;
|
|
64
|
+
galleryToolCallArguments: string;
|
|
65
|
+
galleryToolCallResult: string;
|
|
66
|
+
gallerySectionFile: string;
|
|
67
|
+
gallerySectionImage: string;
|
|
68
|
+
galleryImageCaption: string;
|
|
69
|
+
gallerySectionAudio: string;
|
|
70
|
+
gallerySectionVideo: string;
|
|
71
|
+
}
|
|
72
|
+
export declare const defaultTranslations: PlaygroundTranslations;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@bdky/chat-pilot-kit-vue3",
|
|
3
|
+
"version": "1.0.4",
|
|
4
|
+
"description": "chat-pilot-kit 的 Vue3 封装,提供 Provider、Composables 和 VueNodeViewRenderer",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"vue3",
|
|
7
|
+
"vue-composables",
|
|
8
|
+
"composition-api",
|
|
9
|
+
"chat",
|
|
10
|
+
"ai-assistant",
|
|
11
|
+
"chatbot",
|
|
12
|
+
"baidu",
|
|
13
|
+
"百度",
|
|
14
|
+
"客悦"
|
|
15
|
+
],
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"author": "Baidu Keyue Team <zhangwenxi@baidu.com>",
|
|
18
|
+
"contributors": [
|
|
19
|
+
{
|
|
20
|
+
"name": "zhangwenxi",
|
|
21
|
+
"email": "zhangwenxi@baidu.com"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"main": "./dist/ky-chat-pilot-kit-vue3.cjs.js",
|
|
25
|
+
"module": "./dist/ky-chat-pilot-kit-vue3.esm.js",
|
|
26
|
+
"typings": "./dist/libs/chat-pilot-kit-vue3/src/index.d.ts",
|
|
27
|
+
"exports": {
|
|
28
|
+
".": {
|
|
29
|
+
"types": "./dist/libs/chat-pilot-kit-vue3/src/index.d.ts",
|
|
30
|
+
"import": "./dist/ky-chat-pilot-kit-vue3.esm.js",
|
|
31
|
+
"require": "./dist/ky-chat-pilot-kit-vue3.cjs.js"
|
|
32
|
+
},
|
|
33
|
+
"./styles.css": "./dist/index.css",
|
|
34
|
+
"./styles": "./dist/index.css"
|
|
35
|
+
},
|
|
36
|
+
"files": [
|
|
37
|
+
"dist"
|
|
38
|
+
],
|
|
39
|
+
"publishConfig": {
|
|
40
|
+
"access": "public",
|
|
41
|
+
"registry": "https://registry.npmjs.org"
|
|
42
|
+
},
|
|
43
|
+
"scripts": {
|
|
44
|
+
"build": "npx rslib build",
|
|
45
|
+
"dev": "npx rsbuild dev --open",
|
|
46
|
+
"analyze": "RSDOCTOR=true npx rslib build"
|
|
47
|
+
},
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"@bdky/chat-pilot-kit": "^1.0.4",
|
|
50
|
+
"@bdky/vue3-streamdown": "workspace:*",
|
|
51
|
+
"@bdky/vue3-streamdown-cjk": "workspace:*",
|
|
52
|
+
"@bdky/vue3-streamdown-code": "workspace:*",
|
|
53
|
+
"@bdky/vue3-streamdown-math": "workspace:*",
|
|
54
|
+
"@bdky/vue3-streamdown-mermaid": "workspace:*",
|
|
55
|
+
"@bdky/vue3-streamdown-table": "workspace:*"
|
|
56
|
+
},
|
|
57
|
+
"devDependencies": {
|
|
58
|
+
"@rsbuild/plugin-vue": "^1.2.0",
|
|
59
|
+
"@vitejs/plugin-vue": "^5.2.1",
|
|
60
|
+
"@vue/eslint-config-typescript": "^14.6.0",
|
|
61
|
+
"@vue/test-utils": "^2.4.6",
|
|
62
|
+
"@vue/tsconfig": "^0.7.0",
|
|
63
|
+
"emittery": "^1.2.0",
|
|
64
|
+
"eslint-plugin-vue": "^10.4.0",
|
|
65
|
+
"happy-dom": "^17.4.4",
|
|
66
|
+
"inversify": "^7.10.4",
|
|
67
|
+
"ky": "^1.14.0",
|
|
68
|
+
"vue": "^3.5.24",
|
|
69
|
+
"vue-eslint-parser": "^10.2.0"
|
|
70
|
+
},
|
|
71
|
+
"peerDependencies": {
|
|
72
|
+
"vue": ">=3.0.0"
|
|
73
|
+
}
|
|
74
|
+
}
|