@pagelines/sdk 1.0.812 → 1.0.813
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.js +2 -8
- package/dist/AgentProvider.js.map +1 -1
- package/dist/AgentWrap.js +444 -498
- package/dist/AgentWrap.js.map +1 -1
- package/dist/agent/AgentController.d.ts +0 -1
- package/dist/agent/ui/AgentChat.vue.d.ts +1 -2
- package/dist/agent/ui/AgentProvider.vue.d.ts +0 -2
- package/dist/agent/ui/ElAgentChat.vue.d.ts +9 -5
- package/dist/agent/ui/ElCreateAgent.vue.d.ts +2 -2
- package/dist/contract.js +4 -2
- package/dist/contract.js.map +1 -1
- package/dist/demo/index.d.ts +1 -1
- package/dist/widget/composables/useWidgetState.d.ts +3 -3
- package/dist/widget.js +1 -1
- package/dist/widget.js.map +1 -1
- package/package.json +1 -1
|
@@ -115,7 +115,6 @@ export declare class AgentChatController extends SettingsObject<AgentChatControl
|
|
|
115
115
|
private nextStreamToken;
|
|
116
116
|
private runningStreamToken;
|
|
117
117
|
private readonly suppressedStreamTokens;
|
|
118
|
-
private pendingStartupSend?;
|
|
119
118
|
/**
|
|
120
119
|
* Client ids of messages accepted while a turn was running. Rendered dimmed
|
|
121
120
|
* until the turn that answers them starts producing output.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AgentChatControllerSettings } from '../AgentController';
|
|
2
2
|
import { PageLinesSDK } from '../../sdkClient';
|
|
3
3
|
import { ButtonIconPreset } from '../../widget/PLWidget';
|
|
4
|
-
import { ColorName
|
|
4
|
+
import { ColorName } from '@pagelines/core';
|
|
5
5
|
import { Agent } from '../schema';
|
|
6
6
|
type __VLS_Props = {
|
|
7
7
|
sdk: PageLinesSDK;
|
|
@@ -19,7 +19,6 @@ type __VLS_Props = {
|
|
|
19
19
|
/** Render chat without profile chrome so a host page can provide it. */
|
|
20
20
|
bare?: boolean;
|
|
21
21
|
emptyStateMessage?: string;
|
|
22
|
-
suggestedPrompts?: SuggestedPrompt[];
|
|
23
22
|
/** Voice transport, supplied by hosts that ship it. See the note in createChatController. */
|
|
24
23
|
createVoiceClientFn?: AgentChatControllerSettings['createVoiceClientFn'];
|
|
25
24
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PageLinesSDK } from '../../sdkClient';
|
|
2
2
|
import { ButtonIconPreset } from '../../widget/PLWidget';
|
|
3
|
-
import { SuggestedPrompt } from '@pagelines/core';
|
|
4
3
|
import { Agent, AgentConfig } from '../schema';
|
|
5
4
|
type __VLS_Props = {
|
|
6
5
|
sdk?: PageLinesSDK;
|
|
@@ -16,7 +15,6 @@ type __VLS_Props = {
|
|
|
16
15
|
bare?: boolean;
|
|
17
16
|
apiBase?: string;
|
|
18
17
|
emptyStateMessage?: string;
|
|
19
|
-
suggestedPrompts?: SuggestedPrompt[];
|
|
20
18
|
};
|
|
21
19
|
type __VLS_Slots = {
|
|
22
20
|
'empty-heading': (props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AgentChatController } from '../AgentController';
|
|
2
|
-
import {
|
|
2
|
+
import { Agent } from '@pagelines/core';
|
|
3
3
|
type ChatScope = 'private' | 'org' | 'public';
|
|
4
4
|
type __VLS_Props = {
|
|
5
5
|
chatController?: AgentChatController;
|
|
@@ -13,16 +13,20 @@ type __VLS_Props = {
|
|
|
13
13
|
headerMeta?: string;
|
|
14
14
|
/** Center transcript + composer in a 720px column — for wide desktop shells. */
|
|
15
15
|
centered?: boolean;
|
|
16
|
-
/** Optional zero-state actions supplied by the embedding surface. */
|
|
17
|
-
suggestedPrompts?: SuggestedPrompt[];
|
|
18
16
|
};
|
|
19
17
|
type __VLS_Slots = {
|
|
20
18
|
'empty-heading': (props: {
|
|
21
19
|
agent: Agent;
|
|
22
20
|
isLight: boolean;
|
|
23
21
|
}) => any;
|
|
24
|
-
/**
|
|
25
|
-
|
|
22
|
+
/**
|
|
23
|
+
* The composer's seat. Fill it while the assistant can't answer — a
|
|
24
|
+
* transition's progress, or the state and its one verb — and the SDK's
|
|
25
|
+
* own composer (with the AI notice that rides it) stays out. Empty, the
|
|
26
|
+
* default seat rules: a not-awake assistant gets one line naming the
|
|
27
|
+
* state, never a composer it can't use.
|
|
28
|
+
*/
|
|
29
|
+
'composer': () => any;
|
|
26
30
|
};
|
|
27
31
|
declare const __VLS_base: 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>;
|
|
28
32
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -134,7 +134,7 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {
|
|
|
134
134
|
help?: string | undefined;
|
|
135
135
|
} | undefined;
|
|
136
136
|
operation?: {
|
|
137
|
-
kind: "wake" | "sleep" | "restart" | "rebuild" | "config_apply";
|
|
137
|
+
kind: "wake" | "sleep" | "restart" | "rebuild" | "config_apply" | "setup";
|
|
138
138
|
status: "failed" | "running" | "coalesced";
|
|
139
139
|
startedAt: string;
|
|
140
140
|
detail?: string | undefined;
|
|
@@ -272,7 +272,7 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {
|
|
|
272
272
|
help?: string | undefined;
|
|
273
273
|
} | undefined;
|
|
274
274
|
operation?: {
|
|
275
|
-
kind: "wake" | "sleep" | "restart" | "rebuild" | "config_apply";
|
|
275
|
+
kind: "wake" | "sleep" | "restart" | "rebuild" | "config_apply" | "setup";
|
|
276
276
|
status: "failed" | "running" | "coalesced";
|
|
277
277
|
startedAt: string;
|
|
278
278
|
detail?: string | undefined;
|
package/dist/contract.js
CHANGED
|
@@ -4272,7 +4272,8 @@ var B = _enum([
|
|
|
4272
4272
|
"sleep",
|
|
4273
4273
|
"restart",
|
|
4274
4274
|
"rebuild",
|
|
4275
|
-
"config_apply"
|
|
4275
|
+
"config_apply",
|
|
4276
|
+
"setup"
|
|
4276
4277
|
]), Hr = _enum([
|
|
4277
4278
|
"running",
|
|
4278
4279
|
"coalesced",
|
|
@@ -4342,7 +4343,8 @@ var Xr = {
|
|
|
4342
4343
|
sleep: "Stopping",
|
|
4343
4344
|
restart: "Restarting",
|
|
4344
4345
|
rebuild: "Rebuilding",
|
|
4345
|
-
config_apply: "Applying config"
|
|
4346
|
+
config_apply: "Applying config",
|
|
4347
|
+
setup: "Setting up"
|
|
4346
4348
|
};
|
|
4347
4349
|
function toAgentState(e, t) {
|
|
4348
4350
|
let n = e.operation, r = Xr[e.lifecycle] ?? "Unknown", i = Kr[e.lifecycle] ?? "grey", a = n ? Zr[n.kind] ?? "Working" : void 0, o = a ? n?.status === "failed" ? `${a} failed` : a : r, s = n ? n.status === "failed" ? "red" : "amber" : i, c = `${t} · ${o}`;
|