@m6d/cortex-angular 1.10.0 → 1.11.0

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.
@@ -2121,7 +2121,7 @@ class ChatLandingComponent {
2121
2121
  threadService = inject(CortexThreadService);
2122
2122
  translateService = inject(TranslateService);
2123
2123
  greeting = computed(() => localized(this.config().greeting, this.config().locale ?? "en"), ...ngDevMode ? [{ debugName: "greeting" }] : []);
2124
- suggestions = computed(() => localized(this.config().suggestions, this.config().locale ?? "en"), ...ngDevMode ? [{ debugName: "suggestions" }] : []);
2124
+ suggestions = computed(() => localized(this.chatService.capabilities()?.suggestions, this.config().locale ?? "en"), ...ngDevMode ? [{ debugName: "suggestions" }] : []);
2125
2125
  ready = computed(() => this.chatService.capabilities() !== undefined, ...ngDevMode ? [{ debugName: "ready" }] : []);
2126
2126
  headless = computed(() => this.chatService.capabilities()?.messages === false, ...ngDevMode ? [{ debugName: "headless" }] : []);
2127
2127
  sendSuggestion(suggestion) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m6d/cortex-angular",
3
- "version": "1.10.0",
3
+ "version": "1.11.0",
4
4
  "description": "Reusable AI agent chat UI library for Angular",
5
5
  "license": "MIT",
6
6
  "sideEffects": false,
@@ -72,6 +72,8 @@ export type AgentCapabilities = {
72
72
  attachments: boolean;
73
73
  /** False when the agent's `message` trigger is off: the widget hides its composer. */
74
74
  messages: boolean;
75
+ /** Prompt chips on the blank-chat landing per locale, the runtime contract's `suggestionsSchema` shape; clicking one sends it as the first message. */
76
+ suggestions: Record<"en" | "ar", string[]>;
75
77
  };
76
78
  export type MessageMetadata = {
77
79
  modelId?: string;
@@ -150,8 +152,6 @@ export type CortexConfig = {
150
152
  agentName?: Localized<string>;
151
153
  /** Headline of the blank-chat landing; defaults to a localized greeting. */
152
154
  greeting?: Localized<string>;
153
- /** Prompt chips on the blank-chat landing; clicking one sends it as the first message. */
154
- suggestions?: Localized<string[]>;
155
155
  showDebugButton?: boolean;
156
156
  /**
157
157
  * Render embedded tool pages served from this page's own origin with their