@pagelines/sdk 1.0.650 → 1.0.652
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/AgentWrap.vue_vue_type_script_setup_true_lang.js +2251 -2027
- package/dist/AgentWrap.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/agent/AgentController.d.ts +24 -0
- package/dist/agent/index.d.ts +1 -1
- package/dist/agent/ui/AgentToolActivityGroup.vue.d.ts +7 -0
- package/dist/index.js +227 -227
- package/dist/sdkClient.d.ts +6 -0
- package/package.json +1 -1
|
@@ -65,6 +65,15 @@ export type AgentChatComposerState = {
|
|
|
65
65
|
pendingAttachments: ChatAttachment[];
|
|
66
66
|
isUploading: boolean;
|
|
67
67
|
};
|
|
68
|
+
export type AgentToolActivityLine = {
|
|
69
|
+
activityId: string;
|
|
70
|
+
status: ChatToolActivityData['status'];
|
|
71
|
+
toolIcon: string;
|
|
72
|
+
statusIcon: string;
|
|
73
|
+
label: string;
|
|
74
|
+
detail: string;
|
|
75
|
+
note?: string;
|
|
76
|
+
};
|
|
68
77
|
type AgentChatControllerSettings = {
|
|
69
78
|
sdk?: PageLinesSDK;
|
|
70
79
|
agent: Agent | AgentConfig;
|
|
@@ -83,11 +92,15 @@ export declare class AgentChatController extends SettingsObject<AgentChatControl
|
|
|
83
92
|
private lastMessage;
|
|
84
93
|
private isConnecting;
|
|
85
94
|
private activeTurnGeneration;
|
|
95
|
+
private toolActivityClock?;
|
|
96
|
+
private readonly toolActivityClockMs;
|
|
97
|
+
private readonly toolActivityTiming;
|
|
86
98
|
private conversationId?;
|
|
87
99
|
textState: Ref<TextConnectionState>;
|
|
88
100
|
agentMode: Ref<AgentMode>;
|
|
89
101
|
sharedMessages: Ref<ChatMessage[]>;
|
|
90
102
|
readonly composerState: Ref<AgentChatComposerState>;
|
|
103
|
+
readonly toolActivityLines: ComputedRef<AgentToolActivityLine[]>;
|
|
91
104
|
readonly canUseComposer: ComputedRef<boolean>;
|
|
92
105
|
readonly canAttachFile: ComputedRef<boolean>;
|
|
93
106
|
readonly canRecordAudio: ComputedRef<boolean>;
|
|
@@ -136,9 +149,20 @@ export declare class AgentChatController extends SettingsObject<AgentChatControl
|
|
|
136
149
|
firstMessage: string;
|
|
137
150
|
};
|
|
138
151
|
private updateState;
|
|
152
|
+
private resetToolActivityTiming;
|
|
139
153
|
private resetState;
|
|
154
|
+
private startToolActivityClock;
|
|
155
|
+
private stopToolActivityClock;
|
|
156
|
+
private syncToolActivityClock;
|
|
157
|
+
private rememberToolActivity;
|
|
158
|
+
private withToolActivityTiming;
|
|
140
159
|
private updateToolActivity;
|
|
141
160
|
private finishToolActivities;
|
|
161
|
+
toolActivityLinesFor(args: {
|
|
162
|
+
activities?: ChatToolActivityData[];
|
|
163
|
+
}): AgentToolActivityLine[];
|
|
164
|
+
private toolActivityDetail;
|
|
165
|
+
private toolActivityElapsed;
|
|
142
166
|
private setupModeWatcher;
|
|
143
167
|
private setupAvailabilityWatcher;
|
|
144
168
|
/**
|
package/dist/agent/index.d.ts
CHANGED
|
@@ -6,6 +6,6 @@ import { default as AgentWrap } from './ui/AgentWrap.vue';
|
|
|
6
6
|
import { default as ElAgentChat } from './ui/ElAgentChat.vue';
|
|
7
7
|
import { default as ElAgentChatPreview } from './ui/ElAgentChatPreview.vue';
|
|
8
8
|
export { AgentChatController, AgentChatController as AgentController } from './AgentController';
|
|
9
|
-
export type { AgentChatComposerState, ChatStreamFn, ChatUploadFn } from './AgentController';
|
|
9
|
+
export type { AgentChatComposerState, AgentToolActivityLine, ChatStreamFn, ChatUploadFn } from './AgentController';
|
|
10
10
|
export * from './schema';
|
|
11
11
|
export { AgentChat, AgentModal, AgentProvider, AgentWidget, AgentWrap, ElAgentChat, ElAgentChatPreview };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AgentToolActivityLine } from '../AgentController';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
lines: AgentToolActivityLine[];
|
|
4
|
+
isLight: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
export default _default;
|