@meistrari/chat-nuxt 4.15.0-rc.0 → 4.15.0-rc.1
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/module.json +1 -1
- package/dist/runtime/conversations/components/chat-new-conversation-modal.d.vue.ts +1 -1
- package/dist/runtime/conversations/components/chat-new-conversation-modal.vue.d.ts +1 -1
- package/dist/runtime/embed/components/mobile/chat-mobile-header.d.vue.ts +6 -6
- package/dist/runtime/embed/components/mobile/chat-mobile-header.vue.d.ts +6 -6
- package/dist/runtime/embed/components/mobile/chat-mobile-shell.d.vue.ts +13 -13
- package/dist/runtime/embed/components/mobile/chat-mobile-shell.vue.d.ts +13 -13
- package/dist/runtime/messages/components/widgets/chat-tool-section.d.vue.ts +1 -1
- package/dist/runtime/messages/components/widgets/chat-tool-section.vue.d.ts +1 -1
- package/dist/runtime/types/schemas/chat/v3.d.ts +6 -1
- package/dist/runtime/types/schemas/chat/v3.js +4 -1
- package/dist/runtime/types/schemas/integrations/agent-events.d.ts +9 -0
- package/dist/runtime/types/schemas/integrations/agent-events.js +3 -0
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -6,8 +6,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
6
6
|
} & {
|
|
7
7
|
create: (canvasTools: CanvasTool[]) => any;
|
|
8
8
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
9
|
-
onCreate?: ((canvasTools: CanvasTool[]) => any) | undefined;
|
|
10
9
|
"onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined;
|
|
10
|
+
onCreate?: ((canvasTools: CanvasTool[]) => any) | undefined;
|
|
11
11
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
12
|
declare const _default: typeof __VLS_export;
|
|
13
13
|
export default _default;
|
|
@@ -6,8 +6,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
6
6
|
} & {
|
|
7
7
|
create: (canvasTools: CanvasTool[]) => any;
|
|
8
8
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
9
|
-
onCreate?: ((canvasTools: CanvasTool[]) => any) | undefined;
|
|
10
9
|
"onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined;
|
|
10
|
+
onCreate?: ((canvasTools: CanvasTool[]) => any) | undefined;
|
|
11
11
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
12
|
declare const _default: typeof __VLS_export;
|
|
13
13
|
export default _default;
|
|
@@ -15,23 +15,23 @@ type __VLS_Props = {
|
|
|
15
15
|
};
|
|
16
16
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
17
17
|
delete: () => any;
|
|
18
|
-
openDrawer: () => any;
|
|
19
|
-
copyLink: () => any;
|
|
20
|
-
openOutdatedSettings: () => any;
|
|
21
18
|
rename: () => any;
|
|
22
19
|
duplicate: () => any;
|
|
23
20
|
export: () => any;
|
|
21
|
+
copyLink: () => any;
|
|
24
22
|
debug: () => any;
|
|
23
|
+
openDrawer: () => any;
|
|
24
|
+
openOutdatedSettings: () => any;
|
|
25
25
|
tabChange: (tab: TopbarTab) => any;
|
|
26
26
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
27
27
|
onDelete?: (() => any) | undefined;
|
|
28
|
-
onOpenDrawer?: (() => any) | undefined;
|
|
29
|
-
onCopyLink?: (() => any) | undefined;
|
|
30
|
-
onOpenOutdatedSettings?: (() => any) | undefined;
|
|
31
28
|
onRename?: (() => any) | undefined;
|
|
32
29
|
onDuplicate?: (() => any) | undefined;
|
|
33
30
|
onExport?: (() => any) | undefined;
|
|
31
|
+
onCopyLink?: (() => any) | undefined;
|
|
34
32
|
onDebug?: (() => any) | undefined;
|
|
33
|
+
onOpenDrawer?: (() => any) | undefined;
|
|
34
|
+
onOpenOutdatedSettings?: (() => any) | undefined;
|
|
35
35
|
onTabChange?: ((tab: TopbarTab) => any) | undefined;
|
|
36
36
|
}>, {
|
|
37
37
|
showDrawerButton: boolean;
|
|
@@ -15,23 +15,23 @@ type __VLS_Props = {
|
|
|
15
15
|
};
|
|
16
16
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
17
17
|
delete: () => any;
|
|
18
|
-
openDrawer: () => any;
|
|
19
|
-
copyLink: () => any;
|
|
20
|
-
openOutdatedSettings: () => any;
|
|
21
18
|
rename: () => any;
|
|
22
19
|
duplicate: () => any;
|
|
23
20
|
export: () => any;
|
|
21
|
+
copyLink: () => any;
|
|
24
22
|
debug: () => any;
|
|
23
|
+
openDrawer: () => any;
|
|
24
|
+
openOutdatedSettings: () => any;
|
|
25
25
|
tabChange: (tab: TopbarTab) => any;
|
|
26
26
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
27
27
|
onDelete?: (() => any) | undefined;
|
|
28
|
-
onOpenDrawer?: (() => any) | undefined;
|
|
29
|
-
onCopyLink?: (() => any) | undefined;
|
|
30
|
-
onOpenOutdatedSettings?: (() => any) | undefined;
|
|
31
28
|
onRename?: (() => any) | undefined;
|
|
32
29
|
onDuplicate?: (() => any) | undefined;
|
|
33
30
|
onExport?: (() => any) | undefined;
|
|
31
|
+
onCopyLink?: (() => any) | undefined;
|
|
34
32
|
onDebug?: (() => any) | undefined;
|
|
33
|
+
onOpenDrawer?: (() => any) | undefined;
|
|
34
|
+
onOpenOutdatedSettings?: (() => any) | undefined;
|
|
35
35
|
onTabChange?: ((tab: TopbarTab) => any) | undefined;
|
|
36
36
|
}>, {
|
|
37
37
|
showDrawerButton: boolean;
|
|
@@ -68,46 +68,46 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
68
68
|
} & {
|
|
69
69
|
delete: () => any;
|
|
70
70
|
cancel: () => any;
|
|
71
|
-
settings: () => any;
|
|
72
|
-
send: (content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any;
|
|
73
|
-
newConversation: (groupId?: string | null | undefined) => any;
|
|
74
|
-
selectExecutionProfile: (profile: ChatExecutionProfile) => any;
|
|
75
|
-
copyLink: () => any;
|
|
76
71
|
rename: () => any;
|
|
77
72
|
duplicate: () => any;
|
|
78
73
|
export: () => any;
|
|
74
|
+
copyLink: () => any;
|
|
79
75
|
debug: () => any;
|
|
76
|
+
selectConversation: (id: string) => any;
|
|
77
|
+
send: (content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any;
|
|
78
|
+
settings: () => any;
|
|
79
|
+
newConversation: (groupId?: string | null | undefined) => any;
|
|
80
|
+
selectExecutionProfile: (profile: ChatExecutionProfile) => any;
|
|
80
81
|
tabChange: (tab: TopbarTab) => any;
|
|
81
82
|
switchWorkspace: () => any;
|
|
82
83
|
signout: () => any;
|
|
83
84
|
cancelEditing: () => any;
|
|
84
85
|
dismissOutdatedBanner: () => any;
|
|
85
86
|
saveTitle: () => any;
|
|
86
|
-
selectConversation: (id: string) => any;
|
|
87
87
|
"update:drawerOpen": (value: boolean) => any;
|
|
88
88
|
"update:editTitle": (value: string) => any;
|
|
89
89
|
"update:workspaceSheetOpen": (value: boolean) => any;
|
|
90
90
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
91
91
|
onDelete?: (() => any) | undefined;
|
|
92
92
|
onCancel?: (() => any) | undefined;
|
|
93
|
-
|
|
93
|
+
onRename?: (() => any) | undefined;
|
|
94
|
+
onDuplicate?: (() => any) | undefined;
|
|
95
|
+
onExport?: (() => any) | undefined;
|
|
96
|
+
onCopyLink?: (() => any) | undefined;
|
|
97
|
+
onDebug?: (() => any) | undefined;
|
|
98
|
+
onSelectConversation?: ((id: string) => any) | undefined;
|
|
94
99
|
onSend?: ((content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any) | undefined;
|
|
100
|
+
onSettings?: (() => any) | undefined;
|
|
95
101
|
onNewConversation?: ((groupId?: string | null | undefined) => any) | undefined;
|
|
96
102
|
onSelectExecutionProfile?: ((profile: ChatExecutionProfile) => any) | undefined;
|
|
97
103
|
"onUpdate:selectedModel"?: ((value: string | null) => any) | undefined;
|
|
98
104
|
"onUpdate:selectedReasoningEffort"?: ((value: any) => any) | undefined;
|
|
99
|
-
onCopyLink?: (() => any) | undefined;
|
|
100
|
-
onRename?: (() => any) | undefined;
|
|
101
|
-
onDuplicate?: (() => any) | undefined;
|
|
102
|
-
onExport?: (() => any) | undefined;
|
|
103
|
-
onDebug?: (() => any) | undefined;
|
|
104
105
|
onTabChange?: ((tab: TopbarTab) => any) | undefined;
|
|
105
106
|
onSwitchWorkspace?: (() => any) | undefined;
|
|
106
107
|
onSignout?: (() => any) | undefined;
|
|
107
108
|
onCancelEditing?: (() => any) | undefined;
|
|
108
109
|
onDismissOutdatedBanner?: (() => any) | undefined;
|
|
109
110
|
onSaveTitle?: (() => any) | undefined;
|
|
110
|
-
onSelectConversation?: ((id: string) => any) | undefined;
|
|
111
111
|
"onUpdate:drawerOpen"?: ((value: boolean) => any) | undefined;
|
|
112
112
|
"onUpdate:editTitle"?: ((value: string) => any) | undefined;
|
|
113
113
|
"onUpdate:workspaceSheetOpen"?: ((value: boolean) => any) | undefined;
|
|
@@ -68,46 +68,46 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
68
68
|
} & {
|
|
69
69
|
delete: () => any;
|
|
70
70
|
cancel: () => any;
|
|
71
|
-
settings: () => any;
|
|
72
|
-
send: (content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any;
|
|
73
|
-
newConversation: (groupId?: string | null | undefined) => any;
|
|
74
|
-
selectExecutionProfile: (profile: ChatExecutionProfile) => any;
|
|
75
|
-
copyLink: () => any;
|
|
76
71
|
rename: () => any;
|
|
77
72
|
duplicate: () => any;
|
|
78
73
|
export: () => any;
|
|
74
|
+
copyLink: () => any;
|
|
79
75
|
debug: () => any;
|
|
76
|
+
selectConversation: (id: string) => any;
|
|
77
|
+
send: (content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any;
|
|
78
|
+
settings: () => any;
|
|
79
|
+
newConversation: (groupId?: string | null | undefined) => any;
|
|
80
|
+
selectExecutionProfile: (profile: ChatExecutionProfile) => any;
|
|
80
81
|
tabChange: (tab: TopbarTab) => any;
|
|
81
82
|
switchWorkspace: () => any;
|
|
82
83
|
signout: () => any;
|
|
83
84
|
cancelEditing: () => any;
|
|
84
85
|
dismissOutdatedBanner: () => any;
|
|
85
86
|
saveTitle: () => any;
|
|
86
|
-
selectConversation: (id: string) => any;
|
|
87
87
|
"update:drawerOpen": (value: boolean) => any;
|
|
88
88
|
"update:editTitle": (value: string) => any;
|
|
89
89
|
"update:workspaceSheetOpen": (value: boolean) => any;
|
|
90
90
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
91
91
|
onDelete?: (() => any) | undefined;
|
|
92
92
|
onCancel?: (() => any) | undefined;
|
|
93
|
-
|
|
93
|
+
onRename?: (() => any) | undefined;
|
|
94
|
+
onDuplicate?: (() => any) | undefined;
|
|
95
|
+
onExport?: (() => any) | undefined;
|
|
96
|
+
onCopyLink?: (() => any) | undefined;
|
|
97
|
+
onDebug?: (() => any) | undefined;
|
|
98
|
+
onSelectConversation?: ((id: string) => any) | undefined;
|
|
94
99
|
onSend?: ((content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any) | undefined;
|
|
100
|
+
onSettings?: (() => any) | undefined;
|
|
95
101
|
onNewConversation?: ((groupId?: string | null | undefined) => any) | undefined;
|
|
96
102
|
onSelectExecutionProfile?: ((profile: ChatExecutionProfile) => any) | undefined;
|
|
97
103
|
"onUpdate:selectedModel"?: ((value: string | null) => any) | undefined;
|
|
98
104
|
"onUpdate:selectedReasoningEffort"?: ((value: any) => any) | undefined;
|
|
99
|
-
onCopyLink?: (() => any) | undefined;
|
|
100
|
-
onRename?: (() => any) | undefined;
|
|
101
|
-
onDuplicate?: (() => any) | undefined;
|
|
102
|
-
onExport?: (() => any) | undefined;
|
|
103
|
-
onDebug?: (() => any) | undefined;
|
|
104
105
|
onTabChange?: ((tab: TopbarTab) => any) | undefined;
|
|
105
106
|
onSwitchWorkspace?: (() => any) | undefined;
|
|
106
107
|
onSignout?: (() => any) | undefined;
|
|
107
108
|
onCancelEditing?: (() => any) | undefined;
|
|
108
109
|
onDismissOutdatedBanner?: (() => any) | undefined;
|
|
109
110
|
onSaveTitle?: (() => any) | undefined;
|
|
110
|
-
onSelectConversation?: ((id: string) => any) | undefined;
|
|
111
111
|
"onUpdate:drawerOpen"?: ((value: boolean) => any) | undefined;
|
|
112
112
|
"onUpdate:editTitle"?: ((value: string) => any) | undefined;
|
|
113
113
|
"onUpdate:workspaceSheetOpen"?: ((value: boolean) => any) | undefined;
|
|
@@ -9,9 +9,9 @@ type __VLS_Slots = {} & {
|
|
|
9
9
|
default?: (props: typeof __VLS_1) => any;
|
|
10
10
|
};
|
|
11
11
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
12
|
+
flush: boolean;
|
|
12
13
|
tone: "mono" | "prose" | "error";
|
|
13
14
|
limit: "input" | "output" | "none";
|
|
14
|
-
flush: boolean;
|
|
15
15
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
16
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
17
|
declare const _default: typeof __VLS_export;
|
|
@@ -9,9 +9,9 @@ type __VLS_Slots = {} & {
|
|
|
9
9
|
default?: (props: typeof __VLS_1) => any;
|
|
10
10
|
};
|
|
11
11
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
12
|
+
flush: boolean;
|
|
12
13
|
tone: "mono" | "prose" | "error";
|
|
13
14
|
limit: "input" | "output" | "none";
|
|
14
|
-
flush: boolean;
|
|
15
15
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
16
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
17
|
declare const _default: typeof __VLS_export;
|
|
@@ -255,7 +255,8 @@ export type ChatV3ThreadDetail = z.infer<typeof chatV3ThreadDetailSchema>;
|
|
|
255
255
|
* Without `agentId` the agent is chosen as v1 does: the workspace's own agent, else the default.
|
|
256
256
|
* `agentBranch` runs the head of that branch of the agent's repository instead of its publication;
|
|
257
257
|
* the session stays on that commit. The model and effort are optional, both or neither: agent-api
|
|
258
|
-
* checks them when a message goes.
|
|
258
|
+
* checks them when a message goes. `uiProfile` declares the widgets the client renders, and the
|
|
259
|
+
* agent is given that catalog for the whole conversation; without it, the answers carry no widgets.
|
|
259
260
|
*/
|
|
260
261
|
export declare const chatV3CreateThreadSchema: z.ZodObject<{
|
|
261
262
|
agentId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
@@ -270,6 +271,10 @@ export declare const chatV3CreateThreadSchema: z.ZodObject<{
|
|
|
270
271
|
xhigh: "xhigh";
|
|
271
272
|
max: "max";
|
|
272
273
|
}>>;
|
|
274
|
+
uiProfile: z.ZodOptional<z.ZodEnum<{
|
|
275
|
+
web: "web";
|
|
276
|
+
slack: "slack";
|
|
277
|
+
}>>;
|
|
273
278
|
}, z.core.$strict>;
|
|
274
279
|
export type ChatV3CreateThread = z.infer<typeof chatV3CreateThreadSchema>;
|
|
275
280
|
/**
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { parseV5EventHint, v5ArtifactPageSchema, v5BranchNameSchema, v5EventIdSchema, v5HarnessSchema, v5InputNameSchema, v5Limits, v5ModelIdSchema, v5ReasoningEffortSchema, v5SessionEventSchema, v5TurnIdSchema, v5UserInputRequestSchema, v5VaultReferenceSchema } from '../integrations/agent-events';
|
|
3
|
+
import { uiProfileSchema } from './ui-language';
|
|
3
4
|
import { conversationUsageResponseSchema } from './usage';
|
|
4
5
|
/**
|
|
5
6
|
* Chat API v3 (`/v3/chat`): the conversational surface over agent-api v5 events-v1.
|
|
@@ -153,7 +154,8 @@ export const chatV3ThreadDetailSchema = chatV3ThreadSchema.extend({ session: cha
|
|
|
153
154
|
* Without `agentId` the agent is chosen as v1 does: the workspace's own agent, else the default.
|
|
154
155
|
* `agentBranch` runs the head of that branch of the agent's repository instead of its publication;
|
|
155
156
|
* the session stays on that commit. The model and effort are optional, both or neither: agent-api
|
|
156
|
-
* checks them when a message goes.
|
|
157
|
+
* checks them when a message goes. `uiProfile` declares the widgets the client renders, and the
|
|
158
|
+
* agent is given that catalog for the whole conversation; without it, the answers carry no widgets.
|
|
157
159
|
*/
|
|
158
160
|
export const chatV3CreateThreadSchema = z.object({
|
|
159
161
|
agentId: agentIdSchema.optional(),
|
|
@@ -163,6 +165,7 @@ export const chatV3CreateThreadSchema = z.object({
|
|
|
163
165
|
folderId: folderIdSchema.optional(),
|
|
164
166
|
model: v5ModelIdSchema.optional(),
|
|
165
167
|
reasoningEffort: chatV3ReasoningEffortSchema.optional(),
|
|
168
|
+
uiProfile: uiProfileSchema.optional(),
|
|
166
169
|
}).strict().refine(settingsTogether, { message: SETTINGS_TOGETHER, path: ['reasoningEffort'] });
|
|
167
170
|
/**
|
|
168
171
|
* Renames the thread, moves it into a folder (`folderId`) or out of one (`folderId: null`), changes
|
|
@@ -783,6 +783,15 @@ export declare const v5SessionCreateSchema: z.ZodObject<{
|
|
|
783
783
|
telaAgentId: z.ZodOptional<z.ZodString>;
|
|
784
784
|
projectId: z.ZodOptional<z.ZodString>;
|
|
785
785
|
tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
786
|
+
uiLanguage: z.ZodOptional<z.ZodObject<{
|
|
787
|
+
id: z.ZodEnum<{
|
|
788
|
+
openui: "openui";
|
|
789
|
+
}>;
|
|
790
|
+
profile: z.ZodEnum<{
|
|
791
|
+
web: "web";
|
|
792
|
+
slack: "slack";
|
|
793
|
+
}>;
|
|
794
|
+
}, z.core.$strip>>;
|
|
786
795
|
}, z.core.$strict>;
|
|
787
796
|
export type V5SessionCreate = z.infer<typeof v5SessionCreateSchema>;
|
|
788
797
|
export declare const v5SessionCreationReceiptSchema: z.ZodObject<{
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { uiLanguageSchema } from '../chat/ui-language';
|
|
2
3
|
/**
|
|
3
4
|
* Agent events: client-side mirror of the agent-api v5 events-v1 contract (`packages/models` in
|
|
4
5
|
* meistrari/agent-api). Responses are parsed as loose objects so a field the API adds
|
|
@@ -333,6 +334,8 @@ export const v5SessionCreateSchema = z.object({
|
|
|
333
334
|
telaAgentId: z.string().min(1).max(v5Limits.attributionChars).optional(),
|
|
334
335
|
projectId: z.string().min(1).max(v5Limits.attributionChars).optional(),
|
|
335
336
|
tags: z.record(z.string(), z.unknown()).optional(),
|
|
337
|
+
/** The widget catalog the agent is given: only for a `chat` session, fixed for its life. */
|
|
338
|
+
uiLanguage: uiLanguageSchema.optional(),
|
|
336
339
|
}).strict().superRefine((body, ctx) => {
|
|
337
340
|
for (const [index, event] of (body.events ?? []).entries()) {
|
|
338
341
|
if (event.type !== 'message-queue' && event.type !== 'input')
|