@8wave/ai-elements 0.119.0-beta.17 → 0.119.0-beta.22

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.
Files changed (32) hide show
  1. package/dist/_chunks/PkToolShowWeather-DfLsFayn.js +340 -0
  2. package/dist/_chunks/PkToolShowWeather-DfLsFayn.js.map +1 -0
  3. package/dist/ai-elements.es.js +1244 -1242
  4. package/dist/ai-elements.es.js.map +1 -1
  5. package/dist-vue/PkChatbot.js +1 -1
  6. package/dist-vue/PkChatbotMessages.js +1 -1
  7. package/dist-vue/PkChatbotViewChat.js +1 -1
  8. package/dist-vue/_chunks/PkChatbot-536vsOfp.js +276 -0
  9. package/dist-vue/_chunks/PkChatbot-536vsOfp.js.map +1 -0
  10. package/dist-vue/_chunks/{PkChatbotMessages-D9uf0NMI.js → PkChatbotMessages-CnI3e9wF.js} +3 -3
  11. package/dist-vue/_chunks/{PkChatbotMessages-D9uf0NMI.js.map → PkChatbotMessages-CnI3e9wF.js.map} +1 -1
  12. package/dist-vue/_chunks/{PkChatbotViewChat-B_7IdZIz.js → PkChatbotViewChat-CVT6OUIv.js} +3 -3
  13. package/dist-vue/_chunks/{PkChatbotViewChat-B_7IdZIz.js.map → PkChatbotViewChat-CVT6OUIv.js.map} +1 -1
  14. package/dist-vue/_chunks/{PkToolShowDiagram-BJ_ryTsD.js → PkToolShowDiagram-7WxDObZ6.js} +2 -2
  15. package/dist-vue/_chunks/{PkToolShowDiagram-BJ_ryTsD.js.map → PkToolShowDiagram-7WxDObZ6.js.map} +1 -1
  16. package/dist-vue/_chunks/PkToolShowWeather-BOuNrvY2.js +339 -0
  17. package/dist-vue/_chunks/PkToolShowWeather-BOuNrvY2.js.map +1 -0
  18. package/dist-vue/composables.js +4 -2
  19. package/dist-vue/composables.js.map +1 -1
  20. package/dist-vue/index.js +3 -3
  21. package/dist-vue/index.js.map +1 -1
  22. package/dist-vue/locales.js +2 -0
  23. package/dist-vue/packages/models/src/schema/AgentApiTool.d.ts +8 -0
  24. package/dist-vue/packages/models/src/schema/Weather.d.ts +7 -0
  25. package/dist-vue/style.css +1 -1
  26. package/package.json +1 -1
  27. package/dist/_chunks/PkToolShowWeather-BFOlS1AS.js +0 -280
  28. package/dist/_chunks/PkToolShowWeather-BFOlS1AS.js.map +0 -1
  29. package/dist-vue/_chunks/PkChatbot-UzdAjTRl.js +0 -276
  30. package/dist-vue/_chunks/PkChatbot-UzdAjTRl.js.map +0 -1
  31. package/dist-vue/_chunks/PkToolShowWeather-BH-FtLpk.js +0 -279
  32. package/dist-vue/_chunks/PkToolShowWeather-BH-FtLpk.js.map +0 -1
@@ -612,6 +612,7 @@ var e = {
612
612
  },
613
613
  weather: {
614
614
  today: "Today",
615
+ unavailable: "The weather forecast is not available.",
615
616
  feelsLike: "Feels like",
616
617
  dailyForecast: "Daily forecast",
617
618
  airQuality: "Air quality"
@@ -1237,6 +1238,7 @@ var e = {
1237
1238
  },
1238
1239
  weather: {
1239
1240
  today: "Oggi",
1241
+ unavailable: "Le previsioni meteo non sono disponibili.",
1240
1242
  feelsLike: "Percepita",
1241
1243
  dailyForecast: "Previsioni giornaliere",
1242
1244
  airQuality: "Qualità dell'aria"
@@ -85,6 +85,14 @@ export declare const AgentApiToolSchema: z.ZodObject<{
85
85
  deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
86
86
  deletedBy: z.ZodNullable<z.ZodString>;
87
87
  }, z.core.$strip>;
88
+ /**
89
+ * Turns what is typed in the name field into the characters an API tool name
90
+ * allows: accents dropped, camelCase split with a hyphen, lowercase, every run
91
+ * of other characters a hyphen. Underscores and hyphens are kept, so a valid
92
+ * name comes back unchanged: the field applies this on every update, including
93
+ * the one the input emits when the dialog loads a stored tool.
94
+ */
95
+ export declare function toApiToolName(value?: string): string;
88
96
  export declare const AgentApiToolCreateSchema: z.ZodObject<{
89
97
  name: z.ZodString;
90
98
  description: z.ZodString;
@@ -42,3 +42,10 @@ export declare const WeatherDataSchema: z.ZodObject<{
42
42
  }, z.core.$strip>>;
43
43
  }, z.core.$strip>;
44
44
  export type WeatherData = z.infer<typeof WeatherDataSchema>;
45
+ /**
46
+ * Whether a value carries something the weather card can draw: current
47
+ * conditions, or at least one hourly or daily entry. `showWeather` takes only
48
+ * a `weatherKey`, so its input is a forecast only in conversations from before
49
+ * the key, and a call that failed (a mangled key, expired data) has no output.
50
+ */
51
+ export declare function hasWeatherForecast(value: unknown): value is WeatherData;