@meistrari/chat-nuxt 4.14.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@meistrari/chat-nuxt",
3
3
  "configKey": "chatNuxt",
4
- "version": "4.14.0-rc.10",
4
+ "version": "4.15.0-rc.1",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "unknown"
@@ -10,12 +10,12 @@ type __VLS_Props = {
10
10
  userImage?: string;
11
11
  };
12
12
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
13
- close: () => any;
14
13
  select: (id: string) => any;
14
+ close: () => any;
15
15
  newConvo: (groupId?: string | null | undefined) => any;
16
16
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
17
- onClose?: (() => any) | undefined;
18
17
  onSelect?: ((id: string) => any) | undefined;
18
+ onClose?: (() => any) | undefined;
19
19
  onNewConvo?: ((groupId?: string | null | undefined) => any) | undefined;
20
20
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
21
  declare const _default: typeof __VLS_export;
@@ -10,12 +10,12 @@ type __VLS_Props = {
10
10
  userImage?: string;
11
11
  };
12
12
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
13
- close: () => any;
14
13
  select: (id: string) => any;
14
+ close: () => any;
15
15
  newConvo: (groupId?: string | null | undefined) => any;
16
16
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
17
- onClose?: (() => any) | undefined;
18
17
  onSelect?: ((id: string) => any) | undefined;
18
+ onClose?: (() => any) | undefined;
19
19
  onNewConvo?: ((groupId?: string | null | undefined) => any) | undefined;
20
20
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
21
  declare const _default: typeof __VLS_export;
@@ -67,11 +67,11 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
67
67
  "update:selectedReasoningEffort": (value: any) => any;
68
68
  } & {
69
69
  delete: () => any;
70
+ cancel: () => any;
70
71
  rename: () => any;
71
72
  duplicate: () => any;
72
73
  export: () => any;
73
74
  copyLink: () => any;
74
- cancel: () => any;
75
75
  debug: () => any;
76
76
  selectConversation: (id: string) => any;
77
77
  send: (content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any;
@@ -89,11 +89,11 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
89
89
  "update:workspaceSheetOpen": (value: boolean) => any;
90
90
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
91
91
  onDelete?: (() => any) | undefined;
92
+ onCancel?: (() => any) | undefined;
92
93
  onRename?: (() => any) | undefined;
93
94
  onDuplicate?: (() => any) | undefined;
94
95
  onExport?: (() => any) | undefined;
95
96
  onCopyLink?: (() => any) | undefined;
96
- onCancel?: (() => any) | undefined;
97
97
  onDebug?: (() => any) | undefined;
98
98
  onSelectConversation?: ((id: string) => any) | undefined;
99
99
  onSend?: ((content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any) | undefined;
@@ -67,11 +67,11 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
67
67
  "update:selectedReasoningEffort": (value: any) => any;
68
68
  } & {
69
69
  delete: () => any;
70
+ cancel: () => any;
70
71
  rename: () => any;
71
72
  duplicate: () => any;
72
73
  export: () => any;
73
74
  copyLink: () => any;
74
- cancel: () => any;
75
75
  debug: () => any;
76
76
  selectConversation: (id: string) => any;
77
77
  send: (content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any;
@@ -89,11 +89,11 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
89
89
  "update:workspaceSheetOpen": (value: boolean) => any;
90
90
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
91
91
  onDelete?: (() => any) | undefined;
92
+ onCancel?: (() => any) | undefined;
92
93
  onRename?: (() => any) | undefined;
93
94
  onDuplicate?: (() => any) | undefined;
94
95
  onExport?: (() => any) | undefined;
95
96
  onCopyLink?: (() => any) | undefined;
96
- onCancel?: (() => any) | undefined;
97
97
  onDebug?: (() => any) | undefined;
98
98
  onSelectConversation?: ((id: string) => any) | undefined;
99
99
  onSend?: ((content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any) | undefined;
@@ -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')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meistrari/chat-nuxt",
3
- "version": "4.14.0",
3
+ "version": "4.15.0-rc.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {