@pagelines/sdk 1.0.519 → 1.0.526
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/AgentProvider.vue_vue_type_script_setup_true_lang.js +82 -81
- package/dist/AgentProvider.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/AgentWrap.vue_vue_type_script_setup_true_lang.js +1051 -1074
- package/dist/AgentWrap.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/agent/ui/ElAgentChat.vue.d.ts +0 -2
- package/dist/agent/ui/ElCreateAgent.vue.d.ts +32 -40
- package/dist/clients/AgentClient.d.ts +1 -1
- package/dist/contract/build.d.ts +1 -1
- package/dist/demo/index.d.ts +16 -20
- package/dist/index.js +1 -1
- package/dist/sdkClient.d.ts +3 -12
- package/dist/sdkClient.js +1 -1
- package/dist/sdkClient.js.map +1 -1
- package/dist/widget/composables/useWidgetState.d.ts +48 -60
- package/package.json +1 -1
|
@@ -12,8 +12,6 @@ type __VLS_Props = {
|
|
|
12
12
|
scopeName?: string;
|
|
13
13
|
setupHint?: string;
|
|
14
14
|
emptyStateMessage?: string;
|
|
15
|
-
/** Override the empty-state quick-prompts. Defaults to brief / triage / plan-this-week. */
|
|
16
|
-
starterPrompts?: readonly string[];
|
|
17
15
|
};
|
|
18
16
|
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, {
|
|
19
17
|
chatScroller: ({
|
|
@@ -4,17 +4,7 @@ type __VLS_Props = {
|
|
|
4
4
|
};
|
|
5
5
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
6
|
created: (agent: {
|
|
7
|
-
agentId?: string | undefined;
|
|
8
|
-
handle?: string | undefined;
|
|
9
|
-
ownerId?: string | undefined;
|
|
10
|
-
orgId?: string | undefined;
|
|
11
|
-
name?: string | undefined;
|
|
12
|
-
emoji?: string | null | undefined;
|
|
13
7
|
title?: string | null | undefined;
|
|
14
|
-
summary?: string | null | undefined;
|
|
15
|
-
entityType?: string | undefined;
|
|
16
|
-
avatarId?: string | null | undefined;
|
|
17
|
-
coverId?: string | null | undefined;
|
|
18
8
|
avatar?: {
|
|
19
9
|
mediaId?: string | undefined;
|
|
20
10
|
userId?: string | undefined;
|
|
@@ -61,8 +51,21 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
61
51
|
duration?: number | undefined;
|
|
62
52
|
blurhash?: string | undefined;
|
|
63
53
|
} | undefined;
|
|
54
|
+
orgId?: string | undefined;
|
|
55
|
+
agentId?: string | undefined;
|
|
56
|
+
status?: string | undefined;
|
|
57
|
+
createdAt?: string | undefined;
|
|
58
|
+
updatedAt?: string | undefined;
|
|
59
|
+
name?: string | undefined;
|
|
64
60
|
email?: string | null | undefined;
|
|
65
61
|
website?: string | null | undefined;
|
|
62
|
+
handle?: string | undefined;
|
|
63
|
+
ownerId?: string | undefined;
|
|
64
|
+
emoji?: string | null | undefined;
|
|
65
|
+
summary?: string | null | undefined;
|
|
66
|
+
entityType?: string | undefined;
|
|
67
|
+
avatarId?: string | null | undefined;
|
|
68
|
+
coverId?: string | null | undefined;
|
|
66
69
|
accounts?: {
|
|
67
70
|
platform: "email" | "website" | "linkedin" | "x" | "facebook" | "tiktok" | "youtube" | "github" | "instagram" | "threads" | "phone";
|
|
68
71
|
handle: string;
|
|
@@ -70,11 +73,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
70
73
|
model?: string | null | undefined;
|
|
71
74
|
lastActiveAt?: string | null | undefined;
|
|
72
75
|
lastMessageAt?: string | null | undefined;
|
|
73
|
-
instanceId?: string | null | undefined;
|
|
74
|
-
instanceProvider?: string | null | undefined;
|
|
75
|
-
imageVersion?: string | null | undefined;
|
|
76
76
|
runtime?: string | undefined;
|
|
77
|
-
botServerUrl?: string | null | undefined;
|
|
78
77
|
desiredStatus?: "active" | "stopped" | null | undefined;
|
|
79
78
|
onboardedAt?: string | null | undefined;
|
|
80
79
|
org?: {
|
|
@@ -86,13 +85,10 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
86
85
|
summary?: string | undefined;
|
|
87
86
|
} | undefined;
|
|
88
87
|
visibility?: "org" | "private" | "public" | undefined;
|
|
89
|
-
status?: string | undefined;
|
|
90
|
-
createdAt?: string | undefined;
|
|
91
|
-
updatedAt?: string | undefined;
|
|
92
88
|
isPrimary?: boolean | undefined;
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
89
|
+
state?: "error" | "stopped" | "unknown" | "starting" | "running" | "stopping" | undefined;
|
|
90
|
+
changedAt?: string | undefined;
|
|
91
|
+
error?: string | undefined;
|
|
96
92
|
blocker?: {
|
|
97
93
|
bucket: "error" | "account";
|
|
98
94
|
code: "billing_no_plan" | "billing_past_due" | "billing_runaway_cap" | "billing_budget_reached" | "agent_not_deployed" | "agent_boot_failed" | "agent_unreachable" | "agent_wake_timeout" | "stream_timeout" | "stream_disconnect" | "empty_stream" | "rate_limit";
|
|
@@ -104,17 +100,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
104
100
|
}) => any;
|
|
105
101
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
106
102
|
onCreated?: ((agent: {
|
|
107
|
-
agentId?: string | undefined;
|
|
108
|
-
handle?: string | undefined;
|
|
109
|
-
ownerId?: string | undefined;
|
|
110
|
-
orgId?: string | undefined;
|
|
111
|
-
name?: string | undefined;
|
|
112
|
-
emoji?: string | null | undefined;
|
|
113
103
|
title?: string | null | undefined;
|
|
114
|
-
summary?: string | null | undefined;
|
|
115
|
-
entityType?: string | undefined;
|
|
116
|
-
avatarId?: string | null | undefined;
|
|
117
|
-
coverId?: string | null | undefined;
|
|
118
104
|
avatar?: {
|
|
119
105
|
mediaId?: string | undefined;
|
|
120
106
|
userId?: string | undefined;
|
|
@@ -161,8 +147,21 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
161
147
|
duration?: number | undefined;
|
|
162
148
|
blurhash?: string | undefined;
|
|
163
149
|
} | undefined;
|
|
150
|
+
orgId?: string | undefined;
|
|
151
|
+
agentId?: string | undefined;
|
|
152
|
+
status?: string | undefined;
|
|
153
|
+
createdAt?: string | undefined;
|
|
154
|
+
updatedAt?: string | undefined;
|
|
155
|
+
name?: string | undefined;
|
|
164
156
|
email?: string | null | undefined;
|
|
165
157
|
website?: string | null | undefined;
|
|
158
|
+
handle?: string | undefined;
|
|
159
|
+
ownerId?: string | undefined;
|
|
160
|
+
emoji?: string | null | undefined;
|
|
161
|
+
summary?: string | null | undefined;
|
|
162
|
+
entityType?: string | undefined;
|
|
163
|
+
avatarId?: string | null | undefined;
|
|
164
|
+
coverId?: string | null | undefined;
|
|
166
165
|
accounts?: {
|
|
167
166
|
platform: "email" | "website" | "linkedin" | "x" | "facebook" | "tiktok" | "youtube" | "github" | "instagram" | "threads" | "phone";
|
|
168
167
|
handle: string;
|
|
@@ -170,11 +169,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
170
169
|
model?: string | null | undefined;
|
|
171
170
|
lastActiveAt?: string | null | undefined;
|
|
172
171
|
lastMessageAt?: string | null | undefined;
|
|
173
|
-
instanceId?: string | null | undefined;
|
|
174
|
-
instanceProvider?: string | null | undefined;
|
|
175
|
-
imageVersion?: string | null | undefined;
|
|
176
172
|
runtime?: string | undefined;
|
|
177
|
-
botServerUrl?: string | null | undefined;
|
|
178
173
|
desiredStatus?: "active" | "stopped" | null | undefined;
|
|
179
174
|
onboardedAt?: string | null | undefined;
|
|
180
175
|
org?: {
|
|
@@ -186,13 +181,10 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
186
181
|
summary?: string | undefined;
|
|
187
182
|
} | undefined;
|
|
188
183
|
visibility?: "org" | "private" | "public" | undefined;
|
|
189
|
-
status?: string | undefined;
|
|
190
|
-
createdAt?: string | undefined;
|
|
191
|
-
updatedAt?: string | undefined;
|
|
192
184
|
isPrimary?: boolean | undefined;
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
185
|
+
state?: "error" | "stopped" | "unknown" | "starting" | "running" | "stopping" | undefined;
|
|
186
|
+
changedAt?: string | undefined;
|
|
187
|
+
error?: string | undefined;
|
|
196
188
|
blocker?: {
|
|
197
189
|
bucket: "error" | "account";
|
|
198
190
|
code: "billing_no_plan" | "billing_past_due" | "billing_runaway_cap" | "billing_budget_reached" | "agent_not_deployed" | "agent_boot_failed" | "agent_unreachable" | "agent_wake_timeout" | "stream_timeout" | "stream_disconnect" | "empty_stream" | "rate_limit";
|
|
@@ -16,7 +16,7 @@ export declare class AgentClient {
|
|
|
16
16
|
}>;
|
|
17
17
|
/**
|
|
18
18
|
* Poll until the agent is ready. `onStatus` receives the server-reported
|
|
19
|
-
* status string verbatim ('starting', '
|
|
19
|
+
* status string verbatim ('starting', 'running', …) so
|
|
20
20
|
* the caller renders feedback tied to actual provisioner state, not a
|
|
21
21
|
* rotating set of decorative messages decoupled from reality. Per
|
|
22
22
|
* first-principles → "Always give feedback — no magic": a spinner that
|
package/dist/contract/build.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export interface WireContract {
|
|
|
24
24
|
*
|
|
25
25
|
* Schema discovery walks every export of `@pagelines/core`, picks values
|
|
26
26
|
* that are Zod schemas, and derives the contract name from the export
|
|
27
|
-
* name (`
|
|
27
|
+
* name (`zAgentState` → `AgentState`, `EnrichedAgentSchema` →
|
|
28
28
|
* `EnrichedAgent`). `*Wire` namespace exports get the same treatment for
|
|
29
29
|
* their immediate children. Anything else is ignored — types, constants
|
|
30
30
|
* like `ERROR_CODES`, helper functions all skip naturally.
|
package/dist/demo/index.d.ts
CHANGED
|
@@ -13,17 +13,7 @@ export { getStaticAgentByHandle } from '@/modules/agent/static';
|
|
|
13
13
|
*/
|
|
14
14
|
export declare function getDemoAgents(sdk: PageLinesSDK): Promise<Partial<AgentConfig>[]>;
|
|
15
15
|
export declare function getDemoAgentByHandle(handle: string): Partial<{
|
|
16
|
-
agentId?: string | undefined;
|
|
17
|
-
handle?: string | undefined;
|
|
18
|
-
ownerId?: string | undefined;
|
|
19
|
-
orgId?: string | undefined;
|
|
20
|
-
name?: string | undefined;
|
|
21
|
-
emoji?: string | null | undefined;
|
|
22
16
|
title?: string | null | undefined;
|
|
23
|
-
summary?: string | null | undefined;
|
|
24
|
-
entityType?: string | undefined;
|
|
25
|
-
avatarId?: string | null | undefined;
|
|
26
|
-
coverId?: string | null | undefined;
|
|
27
17
|
avatar?: {
|
|
28
18
|
mediaId?: string | undefined;
|
|
29
19
|
userId?: string | undefined;
|
|
@@ -70,8 +60,21 @@ export declare function getDemoAgentByHandle(handle: string): Partial<{
|
|
|
70
60
|
duration?: number | undefined;
|
|
71
61
|
blurhash?: string | undefined;
|
|
72
62
|
} | undefined;
|
|
63
|
+
orgId?: string | undefined;
|
|
64
|
+
agentId?: string | undefined;
|
|
65
|
+
status?: string | undefined;
|
|
66
|
+
createdAt?: string | undefined;
|
|
67
|
+
updatedAt?: string | undefined;
|
|
68
|
+
name?: string | undefined;
|
|
73
69
|
email?: string | null | undefined;
|
|
74
70
|
website?: string | null | undefined;
|
|
71
|
+
handle?: string | undefined;
|
|
72
|
+
ownerId?: string | undefined;
|
|
73
|
+
emoji?: string | null | undefined;
|
|
74
|
+
summary?: string | null | undefined;
|
|
75
|
+
entityType?: string | undefined;
|
|
76
|
+
avatarId?: string | null | undefined;
|
|
77
|
+
coverId?: string | null | undefined;
|
|
75
78
|
accounts?: {
|
|
76
79
|
platform: "email" | "website" | "linkedin" | "x" | "facebook" | "tiktok" | "youtube" | "github" | "instagram" | "threads" | "phone";
|
|
77
80
|
handle: string;
|
|
@@ -79,11 +82,7 @@ export declare function getDemoAgentByHandle(handle: string): Partial<{
|
|
|
79
82
|
model?: string | null | undefined;
|
|
80
83
|
lastActiveAt?: string | null | undefined;
|
|
81
84
|
lastMessageAt?: string | null | undefined;
|
|
82
|
-
instanceId?: string | null | undefined;
|
|
83
|
-
instanceProvider?: string | null | undefined;
|
|
84
|
-
imageVersion?: string | null | undefined;
|
|
85
85
|
runtime?: string | undefined;
|
|
86
|
-
botServerUrl?: string | null | undefined;
|
|
87
86
|
desiredStatus?: "active" | "stopped" | null | undefined;
|
|
88
87
|
onboardedAt?: string | null | undefined;
|
|
89
88
|
org?: {
|
|
@@ -95,13 +94,10 @@ export declare function getDemoAgentByHandle(handle: string): Partial<{
|
|
|
95
94
|
summary?: string | undefined;
|
|
96
95
|
} | undefined;
|
|
97
96
|
visibility?: "org" | "private" | "public" | undefined;
|
|
98
|
-
status?: string | undefined;
|
|
99
|
-
createdAt?: string | undefined;
|
|
100
|
-
updatedAt?: string | undefined;
|
|
101
97
|
isPrimary?: boolean | undefined;
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
98
|
+
state?: "error" | "stopped" | "unknown" | "starting" | "running" | "stopping" | undefined;
|
|
99
|
+
changedAt?: string | undefined;
|
|
100
|
+
error?: string | undefined;
|
|
105
101
|
blocker?: {
|
|
106
102
|
bucket: "error" | "account";
|
|
107
103
|
code: "billing_no_plan" | "billing_past_due" | "billing_runaway_cap" | "billing_budget_reached" | "agent_not_deployed" | "agent_boot_failed" | "agent_unreachable" | "agent_wake_timeout" | "stream_timeout" | "stream_disconnect" | "empty_stream" | "rate_limit";
|