@app-studio/web 0.9.44 → 0.9.45

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 (41) hide show
  1. package/dist/pages/themeTest.page.d.ts +3 -0
  2. package/dist/web.cjs.development.js +1 -1
  3. package/dist/web.cjs.development.js.map +1 -1
  4. package/dist/web.cjs.production.min.js +1 -1
  5. package/dist/web.cjs.production.min.js.map +1 -1
  6. package/dist/web.esm.js +1 -1
  7. package/dist/web.esm.js.map +1 -1
  8. package/dist/web.umd.development.js +1 -1
  9. package/dist/web.umd.development.js.map +1 -1
  10. package/dist/web.umd.production.min.js +1 -1
  11. package/dist/web.umd.production.min.js.map +1 -1
  12. package/docs/components/Badge.mdx +1 -1
  13. package/docs/components/ColorPicker.mdx +16 -16
  14. package/docs/components/DragAndDrop.mdx +11 -11
  15. package/docs/components/Drawer.mdx +3 -3
  16. package/docs/components/Gradient.mdx +40 -40
  17. package/docs/components/Loader.mdx +17 -17
  18. package/docs/components/ProgressBar.mdx +14 -14
  19. package/docs/components/StatusIndicator.mdx +5 -5
  20. package/package.json +1 -1
  21. package/dist/bot/Bot.d.ts +0 -15
  22. package/dist/bot/Cache.d.ts +0 -13
  23. package/dist/bot/Config.d.ts +0 -13
  24. package/dist/bot/ContentFetcher.d.ts +0 -9
  25. package/dist/bot/DocuCode.d.ts +0 -19
  26. package/dist/bot/FileHandler.d.ts +0 -39
  27. package/dist/bot/ai/AnthropicConnector.d.ts +0 -6
  28. package/dist/bot/ai/GeminiConnector.d.ts +0 -7
  29. package/dist/bot/ai/GroqConnector.d.ts +0 -7
  30. package/dist/bot/ai/HuggingFaceConnector.d.ts +0 -6
  31. package/dist/bot/ai/OpenAIConnector.d.ts +0 -11
  32. package/dist/bot/ai/ReplicateConnector.d.ts +0 -7
  33. package/dist/bot/ai/SambaNovaConnector.d.ts +0 -6
  34. package/dist/bot/ai/ai.config.d.ts +0 -12
  35. package/dist/bot/ai/ai.service.d.ts +0 -36
  36. package/dist/bot/data.d.ts +0 -19
  37. package/dist/bot/extractors.d.ts +0 -8
  38. package/dist/bot/index.d.ts +0 -1
  39. package/dist/bot/prompt/1-project.d.ts +0 -1
  40. package/dist/bot/prompt/2-response.d.ts +0 -1
  41. package/dist/bot/prompt/3-comment.d.ts +0 -1
@@ -1,39 +0,0 @@
1
- export declare class FileHandler {
2
- /**
3
- * Reads the content of a file as a string.
4
- * @param filePath Path to the file
5
- * @returns File content as a string
6
- */
7
- readFile(filePath: string): string;
8
- /**
9
- * Reads all filenames in a directory, creating the directory if it doesn't exist.
10
- * @param directory Directory path
11
- * @returns Array of filenames
12
- */
13
- readFiles(directory: string): string[];
14
- /**
15
- * Writes content to a file, creating the parent directory if it doesn't exist.
16
- * @param filePath Path to the file
17
- * @param content Content to write
18
- */
19
- writeFile(filePath: string, content: string): void;
20
- /**
21
- * Writes content to a file directly without checking or creating directories.
22
- * @param filePath Path to the file
23
- * @param content Content to write
24
- */
25
- writeFileDirect(filePath: string, content: string): void;
26
- /**
27
- * Checks if a file or directory exists.
28
- * @param filePath Path to check
29
- * @returns True if the path exists, false otherwise
30
- */
31
- pathExists(filePath: string): boolean;
32
- /**
33
- * Reads and parses a JSON file.
34
- * @param filePath Path to the JSON file
35
- * @returns Parsed JSON object
36
- * @throws Error if the file doesn't exist or contains invalid JSON
37
- */
38
- readJsonFile(filePath: string): any;
39
- }
@@ -1,6 +0,0 @@
1
- export declare class AnthropicConnector {
2
- private readonly apiKey;
3
- private readonly anthropic;
4
- constructor(apiKey: string);
5
- sendChatMessage(model: string, messages: any[], props?: {}): Promise<any>;
6
- }
@@ -1,7 +0,0 @@
1
- export declare class GeminiConnector {
2
- private readonly apiKey;
3
- private readonly googleAI;
4
- constructor(apiKey: string);
5
- sendChatMessage(GeminiModel: string, messages: any[], props?: {}, json?: boolean): Promise<string>;
6
- token(GeminiModel: string, prompt: string, props?: {}): Promise<number>;
7
- }
@@ -1,7 +0,0 @@
1
- export declare class GroqConnector {
2
- private readonly apiKey;
3
- private readonly groq;
4
- constructor(apiKey: string);
5
- sendChatMessage(model: string, messages: any[], props?: {}, json?: boolean): Promise<any>;
6
- token(messages: any[]): Promise<number>;
7
- }
@@ -1,6 +0,0 @@
1
- export declare class HuggingFaceConnector {
2
- private readonly apiKey;
3
- private readonly hf;
4
- constructor(apiKey: string);
5
- sendChatMessage(model: string, messages: any[], props?: {}): Promise<string | undefined>;
6
- }
@@ -1,11 +0,0 @@
1
- import { TiktokenModel } from 'tiktoken';
2
- export declare class OpenAIConnector {
3
- private readonly openai;
4
- constructor({ apiKey, baseURL, organization, }: {
5
- apiKey: string;
6
- organization?: string;
7
- baseURL?: string;
8
- });
9
- sendChatMessage(model: string, messages: any[], props?: {}, json?: boolean): Promise<any>;
10
- token(model: TiktokenModel, messages: any[]): Promise<any>;
11
- }
@@ -1,7 +0,0 @@
1
- export declare class ReplicateConnector {
2
- private readonly apiKey;
3
- private readonly replicate;
4
- constructor(apiKey: string);
5
- sendChatMessage(model: string, messages: any[], props?: {}): Promise<any>;
6
- removeBackground(image: string): Promise<any>;
7
- }
@@ -1,6 +0,0 @@
1
- export declare class SambaNovaConnector {
2
- private readonly apiKey;
3
- private readonly openai;
4
- constructor(apiKey: string);
5
- sendChatMessage(model: string, messages: any[], props?: {}, json?: boolean): Promise<any>;
6
- }
@@ -1,12 +0,0 @@
1
- export declare type ModelInfos = {
2
- creditCost: number;
3
- tokenLimit: number;
4
- cost?: {
5
- prompt_token: number;
6
- completion_token: number;
7
- };
8
- provider: string;
9
- };
10
- export declare type ProviderType = 'groq' | 'google' | 'openai' | 'huggingFace' | 'replicate' | 'openrouter' | 'anthropic' | 'deepseek' | 'mistralai' | 'sambaNova';
11
- export declare const Providers: ProviderType[];
12
- export declare const MODEL_INFO: Record<string, ModelInfos>;
@@ -1,36 +0,0 @@
1
- import { ProviderType } from './ai.config';
2
- import { OpenAIConnector } from './OpenAIConnector';
3
- import 'dotenv/config';
4
- export declare const DEFAULT_IMAGE_MODEL = "black-forest-labs/flux-schnell";
5
- export declare const MODEL_IMAGE_CREDIT_COST = 2;
6
- export declare class AiService {
7
- private models;
8
- private config;
9
- private readonly MAX_RETRIES;
10
- private readonly RETRY_DELAY;
11
- openRouter: OpenAIConnector;
12
- constructor();
13
- private addLanguageInstruction;
14
- getProvider(provider: ProviderType, useOpenRouter?: boolean): any;
15
- /**
16
- * Simple delay utility function.
17
- */
18
- private delay;
19
- /**
20
- * Enhanced send method with improved error handling and account verification.
21
- */
22
- send({ model, provider, temperature, messages, props, options, json, }: {
23
- model: string;
24
- provider: ProviderType;
25
- temperature?: Number;
26
- messages: any[];
27
- props?: {};
28
- options?: {
29
- retries?: number;
30
- language?: string;
31
- };
32
- json?: boolean;
33
- }): Promise<string>;
34
- token(model: string, provider: ProviderType, messages: any[] | string, props?: {}): Promise<string>;
35
- handleTokenLimitError(error: any): boolean;
36
- }
@@ -1,19 +0,0 @@
1
- export interface Sections {
2
- [sectionTitle: string]: Chapter[];
3
- }
4
- export interface Chapter {
5
- title: string;
6
- subchapters: Subchapter[];
7
- }
8
- export interface Subchapter {
9
- subtitle: string;
10
- minWordCount: number;
11
- maxWordCount: number;
12
- summary: string;
13
- points: string[];
14
- }
15
- export interface NewsletterSettings {
16
- language: string;
17
- tone: string;
18
- style: string;
19
- }
@@ -1,8 +0,0 @@
1
- /**
2
- extractJsonCode : Extrait un bloc de code JSON d'une réponse. Utile si la réponse contient des blocs de code formatés.
3
- extractTextResponse : Nettoie une réponse pour ne garder que le texte, en supprimant les blocs de code et les formattages spéciaux.
4
- extractKeyValuePairs : Extrait des paires clé-valeur d'une réponse. Cette fonction peut être utile pour traiter des réponses formatées comme des listes de propriétés.
5
- */
6
- export declare function extractJsonCode(response: string): any;
7
- export declare const extractTextResponse: (response: string) => string;
8
- export declare const extractKeyValuePairs: (response: string) => Record<string, string>;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export declare const ProjectPrompt: () => string;
@@ -1 +0,0 @@
1
- export declare const RespondPrompt: (props: string, view: string, type?: string | undefined) => string;
@@ -1 +0,0 @@
1
- export declare const CommentPrompt: (componentName: string, fileName: string, codeContent: string) => string;