@designcrowd/library.brand-page 6.1.11 → 6.1.12
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/lib/src/{CreatedOnBrandCrowd-de-de-DToCz9Tp.js → CreatedOnBrandCrowd-de-de-BDl5tMDl.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-CrjiEGmM.js → CreatedOnBrandCrowd-en-us-DQ3yQuYK.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-DgVVM-Df.js → CreatedOnBrandCrowd-es-es-YkmaVlY-.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-C_oKH8iu.js → CreatedOnBrandCrowd-fr-ca-CJqdOpf6.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-C_oKH8iu.js → CreatedOnBrandCrowd-fr-fr-CJqdOpf6.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-DRvHblvI.js → CreatedOnBrandCrowd-pt-br-Cowu2eoM.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-DRvHblvI.js → CreatedOnBrandCrowd-pt-pt-Cowu2eoM.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-uCIRFQYA.js → CreatedOnDcom-de-de-B8GFMuZG.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-DfbhIoId.js → CreatedOnDcom-en-us-D_scrBS6.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-CipmOU1-.js → CreatedOnDcom-es-es-CdSw2OLN.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-B5Cq9iJK.js → CreatedOnDcom-fr-ca-3iiq59X-.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-DIvycPcx.js → CreatedOnDcom-fr-fr-63FuI6C4.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-BQ3EajZC.js → CreatedOnDcom-pt-br-TlCzQWxx.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-DchaL_tP.js → CreatedOnDcom-pt-pt-BTS4GLd8.js} +1 -1
- package/lib/src/brand-page-maker/composables/ai-chat/useAiWebsiteBuilderChat.js +8 -0
- package/lib/src/clients/ai-assistant-client.d.ts +3 -0
- package/lib/src/index.mjs +1 -1
- package/lib/src/{lib-zpGnKGKw.js → lib-C1NaFDHh.js} +5438 -5433
- package/package.json +1 -1
- package/src/brand-page-maker/composables/ai-chat/useAiWebsiteBuilderChat.ts +9 -0
- package/src/clients/ai-assistant-client.ts +6 -0
package/package.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ref, computed, watch, nextTick } from 'vue';
|
|
2
2
|
import type { BrandPageModel } from '../../../brand-page/models';
|
|
3
|
+
import { getCurrentLocale } from '../../../composables/useTranslate';
|
|
3
4
|
import {
|
|
4
5
|
getInstance as getAiAssistantClient,
|
|
5
6
|
AI_ASSISTANT_AGENT_TYPES,
|
|
@@ -320,6 +321,11 @@ export function useAiWebsiteBuilderChat(): UseAiChatResult {
|
|
|
320
321
|
return { message: userPrompt, websiteContext };
|
|
321
322
|
};
|
|
322
323
|
|
|
324
|
+
// TCI-1349: dedicated top-level LLM-gateway locale attribution (cost tag only).
|
|
325
|
+
const buildAttributionFields = () => ({
|
|
326
|
+
locale: getCurrentLocale(),
|
|
327
|
+
});
|
|
328
|
+
|
|
323
329
|
/**
|
|
324
330
|
* Per-page vacant-slot queue for the current build session.
|
|
325
331
|
*
|
|
@@ -533,6 +539,7 @@ export function useAiWebsiteBuilderChat(): UseAiChatResult {
|
|
|
533
539
|
agentType: AI_ASSISTANT_AGENT_TYPES.WEBSITE_BUILDER,
|
|
534
540
|
userPlan,
|
|
535
541
|
connectionId,
|
|
542
|
+
...buildAttributionFields(),
|
|
536
543
|
});
|
|
537
544
|
} else {
|
|
538
545
|
buildResponse = await client.sendWebsiteMessageBuildAsync(
|
|
@@ -544,6 +551,7 @@ export function useAiWebsiteBuilderChat(): UseAiChatResult {
|
|
|
544
551
|
agentType: AI_ASSISTANT_AGENT_TYPES.WEBSITE_BUILDER,
|
|
545
552
|
userPlan,
|
|
546
553
|
connectionId,
|
|
554
|
+
...buildAttributionFields(),
|
|
547
555
|
},
|
|
548
556
|
);
|
|
549
557
|
}
|
|
@@ -752,6 +760,7 @@ export function useAiWebsiteBuilderChat(): UseAiChatResult {
|
|
|
752
760
|
connectionId,
|
|
753
761
|
retryCount,
|
|
754
762
|
userPlan,
|
|
763
|
+
...buildAttributionFields(),
|
|
755
764
|
},
|
|
756
765
|
);
|
|
757
766
|
|
|
@@ -84,6 +84,8 @@ export interface WebsiteToolSubmissionRequest {
|
|
|
84
84
|
connectionId?: string;
|
|
85
85
|
retryCount?: number;
|
|
86
86
|
userPlan?: UserPlan;
|
|
87
|
+
// TCI-1349: dedicated LLM-gateway locale attribution (cost tag only).
|
|
88
|
+
locale?: string;
|
|
87
89
|
}
|
|
88
90
|
|
|
89
91
|
// Async build request/response types
|
|
@@ -94,6 +96,8 @@ export interface WebsiteCreateThreadBuildRequest {
|
|
|
94
96
|
agentType: AiAssistantAgentType;
|
|
95
97
|
userPlan?: UserPlan;
|
|
96
98
|
connectionId: string;
|
|
99
|
+
// TCI-1349: dedicated LLM-gateway locale attribution (cost tag only).
|
|
100
|
+
locale?: string;
|
|
97
101
|
}
|
|
98
102
|
|
|
99
103
|
export interface WebsiteSendMessageBuildRequest {
|
|
@@ -103,6 +107,8 @@ export interface WebsiteSendMessageBuildRequest {
|
|
|
103
107
|
agentType: AiAssistantAgentType;
|
|
104
108
|
userPlan?: UserPlan;
|
|
105
109
|
connectionId: string;
|
|
110
|
+
// TCI-1349: dedicated LLM-gateway locale attribution (cost tag only).
|
|
111
|
+
locale?: string;
|
|
106
112
|
}
|
|
107
113
|
|
|
108
114
|
export interface AiAssistantBuildResponse {
|