@pillar-ai/sdk 0.1.29 → 0.1.30
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/components/index.d.ts +0 -1
- package/dist/core/Pillar.d.ts +0 -1
- package/dist/core/config.d.ts +19 -0
- package/dist/pillar.esm.js +1 -1
- package/package.json +1 -1
package/dist/core/Pillar.d.ts
CHANGED
package/dist/core/config.d.ts
CHANGED
|
@@ -346,6 +346,11 @@ export interface PillarConfig {
|
|
|
346
346
|
* @default 'Ask anything...'
|
|
347
347
|
*/
|
|
348
348
|
inputPlaceholder?: string;
|
|
349
|
+
/**
|
|
350
|
+
* Welcome message shown in the home view.
|
|
351
|
+
* @default 'Hi! How can I help you today?'
|
|
352
|
+
*/
|
|
353
|
+
welcomeMessage?: string;
|
|
349
354
|
/**
|
|
350
355
|
* Platform identifier for code-first actions.
|
|
351
356
|
* Used to filter actions by deployment platform.
|
|
@@ -488,6 +493,8 @@ export interface ResolvedConfig {
|
|
|
488
493
|
assistantDisplayName: string;
|
|
489
494
|
/** Placeholder text shown in the chat input field */
|
|
490
495
|
inputPlaceholder: string;
|
|
496
|
+
/** Welcome message shown in the home view */
|
|
497
|
+
welcomeMessage: string;
|
|
491
498
|
/** Platform for code-first actions (default: 'web') */
|
|
492
499
|
platform: Platform;
|
|
493
500
|
/** App version for code-first actions (optional) */
|
|
@@ -520,6 +527,8 @@ export interface ServerEmbedConfig {
|
|
|
520
527
|
assistantDisplayName?: string;
|
|
521
528
|
/** Placeholder text for the chat input (from config.ai.inputPlaceholder) */
|
|
522
529
|
inputPlaceholder?: string;
|
|
530
|
+
/** Welcome message shown in the home view (from config.ai.welcomeMessage) */
|
|
531
|
+
welcomeMessage?: string;
|
|
523
532
|
panel?: {
|
|
524
533
|
enabled?: boolean;
|
|
525
534
|
position?: 'left' | 'right';
|
|
@@ -553,3 +562,13 @@ export interface ServerEmbedConfig {
|
|
|
553
562
|
* @returns Merged config with server values filling in gaps
|
|
554
563
|
*/
|
|
555
564
|
export declare function mergeServerConfig(localConfig: PillarConfig, serverConfig: ServerEmbedConfig | null): PillarConfig;
|
|
565
|
+
/**
|
|
566
|
+
* Warn about config mismatches between local and server config.
|
|
567
|
+
*
|
|
568
|
+
* Helps developers notice when their code-defined settings differ
|
|
569
|
+
* from admin dashboard settings. Local config always takes precedence.
|
|
570
|
+
*
|
|
571
|
+
* @param localConfig - Config passed to Pillar.init()
|
|
572
|
+
* @param serverConfig - Config fetched from server
|
|
573
|
+
*/
|
|
574
|
+
export declare function warnConfigMismatches(localConfig: PillarConfig, serverConfig: ServerEmbedConfig | null): void;
|