@meistrari/chat-nuxt 4.15.0-rc.4 → 4.15.0-rc.5

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.15.0-rc.4",
4
+ "version": "4.15.0-rc.5",
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;
@@ -68,11 +68,11 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
68
68
  "update:selectedReasoningEffort": (value: any) => any;
69
69
  } & {
70
70
  delete: () => any;
71
+ cancel: () => any;
71
72
  rename: () => any;
72
73
  duplicate: () => any;
73
74
  export: () => any;
74
75
  copyLink: () => any;
75
- cancel: () => any;
76
76
  debug: () => any;
77
77
  selectConversation: (id: string) => any;
78
78
  send: (content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any;
@@ -90,11 +90,11 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
90
90
  "update:workspaceSheetOpen": (value: boolean) => any;
91
91
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
92
92
  onDelete?: (() => any) | undefined;
93
+ onCancel?: (() => any) | undefined;
93
94
  onRename?: (() => any) | undefined;
94
95
  onDuplicate?: (() => any) | undefined;
95
96
  onExport?: (() => any) | undefined;
96
97
  onCopyLink?: (() => any) | undefined;
97
- onCancel?: (() => any) | undefined;
98
98
  onDebug?: (() => any) | undefined;
99
99
  onSelectConversation?: ((id: string) => any) | undefined;
100
100
  onSend?: ((content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any) | undefined;
@@ -68,11 +68,11 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
68
68
  "update:selectedReasoningEffort": (value: any) => any;
69
69
  } & {
70
70
  delete: () => any;
71
+ cancel: () => any;
71
72
  rename: () => any;
72
73
  duplicate: () => any;
73
74
  export: () => any;
74
75
  copyLink: () => any;
75
- cancel: () => any;
76
76
  debug: () => any;
77
77
  selectConversation: (id: string) => any;
78
78
  send: (content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any;
@@ -90,11 +90,11 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
90
90
  "update:workspaceSheetOpen": (value: boolean) => any;
91
91
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
92
92
  onDelete?: (() => any) | undefined;
93
+ onCancel?: (() => any) | undefined;
93
94
  onRename?: (() => any) | undefined;
94
95
  onDuplicate?: (() => any) | undefined;
95
96
  onExport?: (() => any) | undefined;
96
97
  onCopyLink?: (() => any) | undefined;
97
- onCancel?: (() => any) | undefined;
98
98
  onDebug?: (() => any) | undefined;
99
99
  onSelectConversation?: ((id: string) => any) | undefined;
100
100
  onSend?: ((content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any) | undefined;
@@ -275,8 +275,28 @@ export declare const chatV3CreateThreadSchema: z.ZodObject<{
275
275
  web: "web";
276
276
  slack: "slack";
277
277
  }>>;
278
+ preparedSession: z.ZodOptional<z.ZodString>;
278
279
  }, z.core.$strict>;
279
280
  export type ChatV3CreateThread = z.infer<typeof chatV3CreateThreadSchema>;
281
+ /**
282
+ * Opens an agent-api session ahead of the first message, so its sandbox starts while the user
283
+ * writes. The answer is a signed ticket a later creation with the same agent, branch and profile
284
+ * passes as `preparedSession`; chat-api keeps no record of it.
285
+ */
286
+ export declare const chatV3PrepareThreadSchema: z.ZodObject<{
287
+ agentId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
288
+ agentBranch: z.ZodOptional<z.ZodString>;
289
+ uiProfile: z.ZodOptional<z.ZodEnum<{
290
+ web: "web";
291
+ slack: "slack";
292
+ }>>;
293
+ }, z.core.$strict>;
294
+ export type ChatV3PrepareThread = z.infer<typeof chatV3PrepareThreadSchema>;
295
+ export declare const chatV3PreparedThreadSchema: z.ZodObject<{
296
+ preparedSession: z.ZodString;
297
+ expiresAt: z.ZodString;
298
+ }, z.core.$strip>;
299
+ export type ChatV3PreparedThread = z.infer<typeof chatV3PreparedThreadSchema>;
280
300
  /**
281
301
  * Renames the thread, moves it into a folder (`folderId`) or out of one (`folderId: null`), changes
282
302
  * its model and effort (both, or both null to go back to the agent's), or any of them; the last
@@ -166,7 +166,23 @@ export const chatV3CreateThreadSchema = z.object({
166
166
  model: v5ModelIdSchema.optional(),
167
167
  reasoningEffort: chatV3ReasoningEffortSchema.optional(),
168
168
  uiProfile: uiProfileSchema.optional(),
169
+ /** The ticket of a session prepared for this agent and caller; one that no longer fits is ignored and a session is opened as usual. */
170
+ preparedSession: z.string().min(1).max(4096).optional(),
169
171
  }).strict().refine(settingsTogether, { message: SETTINGS_TOGETHER, path: ['reasoningEffort'] });
172
+ /**
173
+ * Opens an agent-api session ahead of the first message, so its sandbox starts while the user
174
+ * writes. The answer is a signed ticket a later creation with the same agent, branch and profile
175
+ * passes as `preparedSession`; chat-api keeps no record of it.
176
+ */
177
+ export const chatV3PrepareThreadSchema = z.object({
178
+ agentId: agentIdSchema.optional(),
179
+ agentBranch: v5BranchNameSchema.optional(),
180
+ uiProfile: uiProfileSchema.optional(),
181
+ }).strict();
182
+ export const chatV3PreparedThreadSchema = z.object({
183
+ preparedSession: z.string(),
184
+ expiresAt: z.string().datetime(),
185
+ });
170
186
  /**
171
187
  * Renames the thread, moves it into a folder (`folderId`) or out of one (`folderId: null`), changes
172
188
  * its model and effort (both, or both null to go back to the agent's), or any of them; the last
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meistrari/chat-nuxt",
3
- "version": "4.15.0-rc.4",
3
+ "version": "4.15.0-rc.5",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {