@bubblelab/shared-schemas 0.1.10 → 0.1.11

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 (94) hide show
  1. package/dist/agent-memory.d.ts +21 -0
  2. package/dist/agent-memory.d.ts.map +1 -0
  3. package/dist/agent-memory.js +11 -0
  4. package/dist/agent-memory.js.map +1 -0
  5. package/dist/ai-models.d.ts +1 -1
  6. package/dist/ai-models.d.ts.map +1 -1
  7. package/dist/ai-models.js +12 -0
  8. package/dist/ai-models.js.map +1 -1
  9. package/dist/api-schema.d.ts +2 -2
  10. package/dist/bubble-definition-schema.d.ts +559 -75
  11. package/dist/bubble-definition-schema.d.ts.map +1 -1
  12. package/dist/bubble-definition-schema.js +184 -0
  13. package/dist/bubble-definition-schema.js.map +1 -1
  14. package/dist/bubbleflow-execution-schema.d.ts +586 -175
  15. package/dist/bubbleflow-execution-schema.d.ts.map +1 -1
  16. package/dist/bubbleflow-execution-schema.js +40 -26
  17. package/dist/bubbleflow-execution-schema.js.map +1 -1
  18. package/dist/bubbleflow-generation-prompts.d.ts +13 -7
  19. package/dist/bubbleflow-generation-prompts.d.ts.map +1 -1
  20. package/dist/bubbleflow-generation-prompts.js +384 -15
  21. package/dist/bubbleflow-generation-prompts.js.map +1 -1
  22. package/dist/bubbleflow-schema.d.ts +1112 -123
  23. package/dist/bubbleflow-schema.d.ts.map +1 -1
  24. package/dist/bubbleflow-schema.js +94 -4
  25. package/dist/bubbleflow-schema.js.map +1 -1
  26. package/dist/coffee.d.ts +2201 -0
  27. package/dist/coffee.d.ts.map +1 -0
  28. package/dist/coffee.js +258 -0
  29. package/dist/coffee.js.map +1 -0
  30. package/dist/credential-schema.d.ts +27 -13
  31. package/dist/credential-schema.d.ts.map +1 -1
  32. package/dist/credential-schema.js +137 -4
  33. package/dist/credential-schema.js.map +1 -1
  34. package/dist/database-definition-schema.d.ts +8 -8
  35. package/dist/error-enhancer.d.ts +6 -0
  36. package/dist/error-enhancer.d.ts.map +1 -0
  37. package/dist/error-enhancer.js +88 -0
  38. package/dist/error-enhancer.js.map +1 -0
  39. package/dist/generate-bubbleflow-schema.d.ts +1001 -79
  40. package/dist/generate-bubbleflow-schema.d.ts.map +1 -1
  41. package/dist/generate-bubbleflow-schema.js +23 -7
  42. package/dist/generate-bubbleflow-schema.js.map +1 -1
  43. package/dist/hash-utils.d.ts +26 -0
  44. package/dist/hash-utils.d.ts.map +1 -0
  45. package/dist/hash-utils.js +37 -0
  46. package/dist/hash-utils.js.map +1 -0
  47. package/dist/index.d.ts +6 -0
  48. package/dist/index.d.ts.map +1 -1
  49. package/dist/index.js +6 -0
  50. package/dist/index.js.map +1 -1
  51. package/dist/milk-tea.d.ts +18 -20
  52. package/dist/milk-tea.d.ts.map +1 -1
  53. package/dist/milk-tea.js +1 -4
  54. package/dist/milk-tea.js.map +1 -1
  55. package/dist/oauth-schema.d.ts +2 -2
  56. package/dist/param-utils.d.ts +10 -0
  57. package/dist/param-utils.d.ts.map +1 -0
  58. package/dist/param-utils.js +13 -0
  59. package/dist/param-utils.js.map +1 -0
  60. package/dist/pearl.d.ts +96 -29
  61. package/dist/pearl.d.ts.map +1 -1
  62. package/dist/pearl.js +20 -9
  63. package/dist/pearl.js.map +1 -1
  64. package/dist/storage-utils.d.ts +19 -0
  65. package/dist/storage-utils.d.ts.map +1 -0
  66. package/dist/storage-utils.js +54 -0
  67. package/dist/storage-utils.js.map +1 -0
  68. package/dist/streaming-events.d.ts +28 -2
  69. package/dist/streaming-events.d.ts.map +1 -1
  70. package/dist/subscription-status-schema.d.ts +192 -32
  71. package/dist/subscription-status-schema.d.ts.map +1 -1
  72. package/dist/subscription-status-schema.js +85 -7
  73. package/dist/subscription-status-schema.js.map +1 -1
  74. package/dist/trigger.d.ts +45 -51
  75. package/dist/trigger.d.ts.map +1 -1
  76. package/dist/trigger.js +0 -2
  77. package/dist/trigger.js.map +1 -1
  78. package/dist/types.d.ts +11 -2
  79. package/dist/types.d.ts.map +1 -1
  80. package/dist/types.js +14 -0
  81. package/dist/types.js.map +1 -1
  82. package/package.json +1 -1
  83. package/dist/general-chat.d.ts +0 -81
  84. package/dist/general-chat.d.ts.map +0 -1
  85. package/dist/general-chat.js +0 -58
  86. package/dist/general-chat.js.map +0 -1
  87. package/dist/generation-result-schema.d.ts +0 -73
  88. package/dist/generation-result-schema.d.ts.map +0 -1
  89. package/dist/generation-result-schema.js +0 -55
  90. package/dist/generation-result-schema.js.map +0 -1
  91. package/dist/mock-data-generator.test.d.ts +0 -2
  92. package/dist/mock-data-generator.test.d.ts.map +0 -1
  93. package/dist/mock-data-generator.test.js +0 -176
  94. package/dist/mock-data-generator.test.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"bubbleflow-execution-schema.d.ts","sourceRoot":"","sources":["../src/bubbleflow-execution-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAGtC,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;EAmBL,CAAC;AAEzB,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiJL,CAAC;AAE/B,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAGtE,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBpC,CAAC;AAGH,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;WAEL,CAAC;AAE/C,MAAM,M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"}
@@ -1,25 +1,34 @@
1
1
  import { z } from '@hono/zod-openapi';
2
- import { ParsedBubbleWithInfoSchema } from './bubble-definition-schema';
3
- export const TokenUsageSchema = z
2
+ import { ParsedBubbleWithInfoSchema, ParsedWorkflowSchema, } from './bubble-definition-schema';
3
+ import { CredentialType } from './types';
4
+ export const ServiceUsageSchema = z
4
5
  .object({
5
- inputTokens: z.number().openapi({
6
- description: 'Number of input tokens used',
7
- example: 150,
6
+ service: z.nativeEnum(CredentialType).openapi({
7
+ description: 'Service identifier',
8
+ example: CredentialType.OPENAI_CRED,
8
9
  }),
9
- outputTokens: z.number().openapi({
10
- description: 'Number of output tokens generated',
11
- example: 75,
10
+ subService: z.string().optional().openapi({
11
+ description: 'Sub-service identifier',
12
+ example: 'gpt-4',
12
13
  }),
13
- totalTokens: z.number().openapi({
14
- description: 'Total number of tokens used (input + output)',
15
- example: 225,
14
+ unit: z.string().openapi({
15
+ description: 'Unit type for this service',
16
+ example: 'per_1m_tokens',
16
17
  }),
17
- modelName: z.string().optional().openapi({
18
- description: 'Name of the model used for token consumption',
19
- example: 'google/gemini-2.5-flash',
18
+ usage: z.number().openapi({
19
+ description: 'Units used this month',
20
+ example: 2250000,
21
+ }),
22
+ unitCost: z.number().openapi({
23
+ description: 'Bubble Lab price per unit (with multiplier applied)',
24
+ example: 2.1,
25
+ }),
26
+ totalCost: z.number().openapi({
27
+ description: 'Total cost for this service (usage * unitCost)',
28
+ example: 4.725,
20
29
  }),
21
30
  })
22
- .openapi('TokenUsage');
31
+ .openapi('ServiceUsage');
23
32
  export const ExecutionSummarySchema = z
24
33
  .object({
25
34
  result: z.any().optional().openapi({
@@ -42,6 +51,9 @@ export const ExecutionSummarySchema = z
42
51
  description: 'Number of errors encountered',
43
52
  example: 0,
44
53
  }),
54
+ totalCost: z
55
+ .number()
56
+ .openapi({ description: 'Total cost of the execution' }),
45
57
  warningCount: z.number().optional().openapi({
46
58
  description: 'Number of warnings encountered',
47
59
  example: 1,
@@ -140,21 +152,14 @@ export const ExecutionSummarySchema = z
140
152
  description: 'Execution end timestamp (Unix timestamp)',
141
153
  example: 1703123458289,
142
154
  }),
143
- tokenUsage: TokenUsageSchema.optional().openapi({
155
+ serviceUsage: z.array(ServiceUsageSchema).optional().openapi({
144
156
  description: 'Token usage during execution',
145
157
  }),
146
- tokenUsageByModel: z
147
- .record(z.string(), TokenUsageSchema.omit({ modelName: true }))
158
+ serviceUsageByService: z
159
+ .record(z.string(), ServiceUsageSchema)
148
160
  .optional()
149
161
  .openapi({
150
- description: 'Token usage breakdown by model (key: model name, value: token usage)',
151
- example: {
152
- 'google/gemini-2.5-flash': {
153
- inputTokens: 1500,
154
- outputTokens: 750,
155
- totalTokens: 2250,
156
- },
157
- },
162
+ description: 'Service usage breakdown by service',
158
163
  }),
159
164
  })
160
165
  .openapi('ExecutionSummary');
@@ -178,6 +183,12 @@ export const bubbleFlowExecutionSchema = z.object({
178
183
  .string()
179
184
  .optional()
180
185
  .openapi({ description: 'Execution completion timestamp' }),
186
+ code: z
187
+ .string()
188
+ .optional()
189
+ .openapi({
190
+ description: 'The code that was executed (snapshot of the code at execution time)',
191
+ }),
181
192
  });
182
193
  // GET /bubble-flow/:id/executions - List BubbleFlow executions response
183
194
  export const listBubbleFlowExecutionsResponseSchema = z
@@ -292,6 +303,9 @@ export const validateBubbleFlowCodeResponseSchema = z.object({
292
303
  bubbles: z.record(z.string(), ParsedBubbleWithInfoSchema).optional().openapi({
293
304
  description: 'Record mapping bubble IDs to their detailed information',
294
305
  }),
306
+ workflow: ParsedWorkflowSchema.optional().openapi({
307
+ description: 'Hierarchical workflow structure with control flow',
308
+ }),
295
309
  requiredCredentials: z
296
310
  .record(z.string(), z.array(z.string()))
297
311
  .optional()
@@ -1 +1 @@
1
- {"version":3,"file":"bubbleflow-execution-schema.js","sourceRoot":"","sources":["../src/bubbleflow-execution-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AACtC,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ACnC,CAAC;IACJ,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC;QAC7C,WAAW,EAAE,qCAAqC;QAClD,OAAO,EAAE,WAAW;KACrB,CAAC;IACF,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC;QACzC,WAAW,EAAE,6CAA6C;QAC1D,OAAO,EAAE,KAAK;KACf,CAAC;IACF,aAAa,EAAE,CAAC;SACb,MAAM,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;SACnB,QAAQ,EAAE;SACV,OAAO,CAAC;QACP,WAAW,EAAE,6CAA6C;QAC1D,OAAO,EAAE;YACP,OAAO,EAAE,aAAa;YACtB,OAAO,EAAE,UAAU;SACpB;KACF,CAAC;IACJ,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC"}
@@ -2,11 +2,10 @@
2
2
  * Shared system prompts and critical instructions for BubbleFlow code generation
3
3
  * Used by both Pearl AI agent and BubbleFlow Generator Workflow
4
4
  */
5
- /**
6
- * Critical instructions for AI agents generating BubbleFlow code
7
- * These instructions ensure consistent, correct code generation
8
- */
9
- export declare const CRITICAL_INSTRUCTIONS = "CRITICAL INSTRUCTIONS:\n1. Start with the exact boilerplate template above (it has all the correct imports and class structure), come up with a name for the flow based on the user's request, export class [name] extends BubbleFlow\n2. Properly type the payload import and output interface based on the user's request, create typescript interfaces for them\n3. BEFORE writing any code, identify which bubbles you plan to use from the available list\n4. For EACH bubble you plan to use, ALWAYS call get-bubble-details-tool first to understand:\n - The correct input parameters and their types\n - The expected output structure in result.data\n - How to properly handle success/error cases\n5. Replace the handle method with logic that fulfills the user's request\n6. Use the exact parameter structures shown in the bubble details\n7. If deterministic tool calls and branch logic are possible, there is no need to use AI agent.\n8. Access bubble outputs safely using result.data with null checking (e.g., result.data?.someProperty or check if result.data exists first)\n9. Return meaningful data from the handle method\n10. DO NOT include credentials in bubble parameters - credentials are handled automatically\n11. CRITICAL: Always use the pattern: const result = await new SomeBubble({params}).action() - NEVER use runBubble, this.runBubble, or any other method\n12. When using AI Agent, ensure your prompt includes comprehensive context and explicitly pass in all relevant information needed for the task. Be thorough in providing complete data rather than expecting the AI to infer or assume missing details (unless the information must be retrieved from an online source)\n13. When generating and dealing with images, process them one at a time to ensure proper handling and avoid overwhelming the system\n14. When dealing with other async operations in for loops, batch the requests 5 at a time at most and use Promise.all to handle them efficiently. Always declare bubble instances separately outside of callbacks, loops, or maps before calling .action() - avoid instantiating bubbles directly within map(), forEach(), or other callback functions.\n15. If the location of the output is unknown or not specified by the user, use this.logger?.info(message:string) to print the output to the console.\n16. DO NOT repeat the user's request in your response or thinking process. Do not include \"The user says: <user's request>\" in your response.\n\nCRITICAL: You MUST use get-bubble-details-tool for every bubble before using it in your code!";
5
+ import { AvailableModel } from './ai-models.js';
6
+ export declare const RECOMMENDED_MODELS: Record<string, AvailableModel>;
7
+ export declare const CRITICAL_INSTRUCTIONS = "CRITICAL INSTRUCTIONS:\n1. Start with the exact boilerplate template above (it has all the correct imports and class structure), come up with a name for the flow based on the user's request, export class [name] extends BubbleFlow\n2. CRITICAL: Only ONE class extending BubbleFlow is allowed per file. Do NOT create multiple BubbleFlow classes (e.g., a webhook flow and a cron flow).\n3. Properly type the payload import and output interface based on the user's request, create typescript interfaces for them\n4. BEFORE writing any code, identify which bubbles you plan to use from the available list, prioritize choosing tools over services unless the user specifically requests a service. \n5. For EACH bubble you plan to use, ALWAYS call get-bubble-details-tool first to understand:\n - The correct input parameters and their types\n - The expected output structure in result.data\n - How to properly handle success/error cases\n6. IMPLEMENTATION ARCHITECTURE (CRITICAL):\n - Break the workflow into atomic PRIVATE methods (do NOT call them \"steps\" or use \"step\" terminology).\n - Types of methods:\n a) Transformation Methods: Pure functions for data cleaning, validation, or formatting. NO Bubble usage here.\n b) Bubble Methods: Async functions that instantiate and run SINGLE Bubble (or logically grouped Bubbles).\n - The 'handle()' method must be a CLEAN orchestrator:\n - ONLY call private methods sequentially.\n - Use 'if' statements and 'for' loops inside handle() to control execution flow.\n - NO switch statements.\n - NO direct Bubble instantiation inside handle().\n - NO try-catch blocks inside handle() (handle errors inside private methods if needed, otherwise let them bubble up).\n - NO complex logic inside handle() - use Transformation Methods instead.\n - CRITICAL: Each private method MUST have a ONE-LINE comment describing WHAT the method does in specific, concrete terms (not generic phrases like \"processes data\" or \"transforms input\").\n ONLY add a second \"Condition:\" line if the method is CONDITIONALLY executed (e.g., inside an if-statement, only runs when X is true). Do NOT add \"Condition: Always runs\" - if it always runs, omit the Condition line entirely.\n - Example:\n // Sanitizes raw webhook input by trimming whitespace and converting to uppercase\n private transformData(input: string): string { ... }\n\n // Sends cleaned input to AI for natural language processing\n // Only runs when input length is greater than 3 characters\n private async processWithAI(input: string): Promise<string> { ... }\n7. Use the exact parameter structures shown in the bubble details\n8. If deterministic tool calls and branch logic are possible, there is no need to use AI agent.\n9. Access bubble outputs safely using result.data with null checking (e.g., result.data?.someProperty or check if result.data exists first)\n10. Return meaningful data from the handle method, this is the data that will be shown to the user.\n11. DO NOT include credentials in bubble parameters - credentials are handled automatically\n12. CRITICAL: In Bubble methods, always use the pattern: const result = await new SomeBubble({params}).action() - NEVER use runBubble, this.runBubble, or any other method.\n13. When using AI Agent, ensure your prompt includes comprehensive context and explicitly pass in all relevant information needed for the task. Be thorough in providing complete data rather than expecting the AI to infer or assume missing details (unless the information must be retrieved from an online source)\n14. When generating and dealing with images, process them one at a time to ensure proper handling and avoid overwhelming the system\n15. If the location of the output is unknown or not specified by the user, use this.logger?.info(message:string) to print the output to the console.\n16. DO NOT repeat the user's request in your response or thinking process. Do not include \"The user says: <user's request>\" in your response.\n17. Write short and concise comments throughout the code. Name methods clearly (e.g., 'transformInput', 'performResearch', 'formatOutput'). The variable name for bubble should describe the bubble's purpose and its role in the workflow. NEVER use the word \"step\" in method names, comments, or variable names.\n18. If user does not specify a communication channel to get the result, use email sending via resend and do not set the 'from' parameter, it will be set automatically and use bubble lab's default email, unless the user has their own resend setup and account domain verified.\n19. When importing JSON workflows from other platforms, focus on capturing the ESSENCE and INTENT of the workflow, not the exact architecture. Convert to appropriate BubbleFlow patterns - use deterministic workflows when the logic is linear and predictable, only use AI agents when dynamic decision-making is truly needed.\n20. NEVER generate placeholder values like \"YOUR_API_KEY_HERE\", \"YOUR_FOLDER_ID\", \"REPLACE_THIS\", etc. in constants. ALL user-specific or environment-specific values MUST be defined in the payload interface and passed as inputs. Constants should only contain truly static values that never change (like MIME types, fixed strings, enum values, etc.). If a value needs to be configured by the user, it belongs in the payload interface, NOT in a constant.\n21. NEVER use the 'any' type. TypeScript's type inference is powerful - let it work for you:\n - For bubble results: DO NOT annotate the type. Just write `const result = await new GmailBubble({...}).readEmail()` and TypeScript will infer the correct type automatically.\n - For function return types: Omit return type annotations when the return value is obvious from the implementation. TypeScript infers them correctly.\n - When you MUST annotate: Use the specific type (e.g., `BubbleResult<GmailReadEmailData>`), generic parameters, or `unknown` if truly unknown.\n - WRONG: `const result: any = await bubble.action()` or `function transform(data: any)`\n - RIGHT: `const result = await bubble.action()` (let TypeScript infer) or `function transform(data: EmailData)` (use specific type)\n\nCRITICAL: You MUST use get-bubble-details-tool for every bubble before using it in your code!";
8
+ export declare const BUBBLE_STUDIO_INSTRUCTIONS: string;
10
9
  /**
11
10
  * Validation process instructions for ensuring generated code is valid
12
11
  */
@@ -14,6 +13,13 @@ export declare const VALIDATION_PROCESS = "CRITICAL VALIDATION PROCESS:\n1. Afte
14
13
  /**
15
14
  * Additional instructions for input schema handling
16
15
  */
17
- export declare const INPUT_SCHEMA_INSTRUCTIONS = "For input schema, ie. the interface passed to the handle method. Decide based on how\nthe workflow should typically be ran (if it should be variable or fixed). If all\ninputs are fixed take out the interface and just use handle() without the payload.\n\nIf no particular trigger is specified, use the webhook/http trigger.";
18
- export declare const BUBBLE_SPECIFIC_INSTRUCTIONS = "BUBBLE SPECIFIC INSTRUCTIONS:\n1. When using the storage bubble, always use the bubble-lab-bucket bucket name, unless the user has their own s3/cloudflare bucket setup.\n2. When using the resend bubble, do not set the from parameter, it will be set automatically and use bubble lab's default email, unless the user has their own resend setup and account domain verified.\n";
16
+ export declare const INPUT_SCHEMA_INSTRUCTIONS = "For input schema, ie. the interface passed to the handle method. Decide based on how\nthe workflow should typically be ran (if it should be variable or fixed). If all\ninputs are fixed take out the interface and just use handle() without the payload.\n\nCRITICAL: EVERY input field MUST have a helpful, user-friendly comment that explains:\n1. WHAT the field means (what information it represents)\n2. WHERE to find the information (specific location, URL, settings page, etc.)\n3. HOW to provide the input (format, extraction steps)\n\nWrite comments in plain, conversational language as if explaining to a non-technical user.\nDO NOT include example values in comments - example values should ONLY be provided as default values in the destructuring assignment using the = operator.\n\nFILE UPLOAD CONTROL (@canBeFile):\nFor each string field, decide if it makes sense to upload file content. Use the @canBeFile JSDoc tag to control whether the file upload icon appears in the UI.\n\nALLOW file uploads (@canBeFile true or omit the tag - default behavior) for:\n- Fields that hold document/media CONTENT (body, text, document, attachment, content, data, fileContent)\n- Fields where pasting large text content would be cumbersome\n- Fields that semantically represent file data to be processed\n\nDISABLE file uploads (@canBeFile false) for:\n- Identifiers and references (IDs, names, paths, URLs, emails, usernames)\n- Configuration values (settings, options, formats, modes)\n- Short user inputs (prompts, queries, search terms, titles)\n- Credential-like values (API keys, tokens, secrets)\n\nExample usage:\n```typescript\nexport interface DocumentProcessorPayload extends WebhookEvent {\n /**\n * Email address where the results should be sent.\n * @canBeFile false\n */\n email: string;\n \n /**\n * The document content to process. Paste text or upload a file.\n * @canBeFile true\n */\n documentContent: string;\n \n /**\n * Google Drive folder ID where files will be saved.\n * @canBeFile false\n */\n folderId: string;\n \n /**\n * File to attach to the email. Upload any document, image, or file.\n */\n attachment?: string; // @canBeFile defaults to true, so no need to specify\n}\n```\n\nUse your judgment based on what the field semantically represents, not just its name.\n\nExamples of EXCELLENT field comments (note: example values go in destructuring, not in comments):\n\n// The spreadsheet ID is the long string in the URL right after /d/ and before the next / in the URL.\nspreadsheetId: string;\n\n// Slack: Right-click channel \u2192 \"View channel details\" \u2192 Copy the \"Channel ID\" (starts with 'C')\nchannelId: string;\n\n// Email address where notifications should be sent.\nrecipientEmail: string;\n\n// Folder path using forward slashes to separate directories.\noutputFolderPath: string;\n\n// API key from Dashboard > Settings > API Keys. Generate new key and copy the full string (32-64 chars).\napiKey: string;\n\n// Priority level: 'low' (non-urgent), 'medium' (normal), 'high' (urgent)\npriority?: 'low' | 'medium' | 'high';\n\nCOMMENT PATTERNS BY TYPE:\n\n- URLs/IDs: Explain exact location in URL (after /d/, in query params) - describe the format, not show examples\n- UI IDs: Explain steps to find it (right-click menu, settings page) and format (length, prefix)\n- File paths: Explain format (forward slashes, relative vs absolute) - describe the structure\n- API keys: Explain where to generate (dashboard location) and format (length, appearance)\n- Emails/strings: Explain the format and any validation requirements\n- Enums: List all valid values with brief descriptions\n- Dates: Explain format (ISO 8601, Unix timestamp) and timezone if relevant\n- Arrays: Explain what each item represents and the structure\n\nRemember: Example values go in the destructuring default values, NOT in comments!\n\nExamples of BAD comments (DO NOT USE):\n// The spreadsheet ID \u274C Too vague\n// User email \u274C No format/explanation\n// API key for authentication \u274C Doesn't tell where to get it\n// Priority level. Defaults to 'medium' \u274C Don't mention defaults in comments\n// Email address. Example: \"user@example.com\" \u274C Don't include examples in comments - put them in destructuring defaults\n\nFor example, for a workflow that processes user data and sends notifications:\n \nexport interface UserNotificationPayload extends WebhookEvent {\n /**\n * Email address where notifications should be sent.\n * @canBeFile false\n */\n email: string;\n /** Custom message content to include in the notification. */\n message?: string;\n /** Priority level: 'low' (non-urgent), 'medium' (normal), 'high' (urgent) */\n priority?: 'low' | 'medium' | 'high';\n /** Whether to send SMS in addition to email. Set to true to enable SMS notifications, false to only send email. */\n includeSMS?: boolean;\n /**\n * The spreadsheet ID is the long string in the URL right after /d/ and before the next / in the URL.\n * @canBeFile false\n */\n spreadsheetId: string;\n}\n\nconst { \n email = 'user@example.com', \n message = 'Welcome to our platform! Thanks for signing up.', \n priority = 'medium',\n spreadsheetId = '1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms',\n includeSMS = false \n} = payload;\n\nCRITICAL: ALWAYS provide example values as default values using the = operator in the destructuring assignment.\nThese example values help users understand the expected format. For instance:\n- Google Sheets ID: spreadsheetId = '1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms'\n- Email: email = 'user@example.com'\n- Channel ID: channelId = 'C01234567AB'\n\nREQUIRED vs OPTIONAL FIELD DECISION:\n1. User specified a value in their request \u2192 OPTIONAL with that value as default\n (e.g., user says \"research AI agents\" \u2192 topic?: string with default \"AI Agents\")\n2. Value must change per execution \u2192 REQUIRED\n (e.g., recipient email when user says \"send me\" but doesn't provide one, target URL that varies each run)\n3. Nice-to-have configuration \u2192 OPTIONAL\n (e.g., output format preferences, depth settings)\n\nThe goal is to minimize required fields. If the user already told you what they want, don't make them type it again - use their value as the default.\nWhen setting schedule, you must take into account of the timezone of the user (don't worry about daylight time, just whatever the current timezone currently) and convert it to UTC offset! The cron expression is in UTC timezone.\nIf no particular trigger is specified, use the webhook/http trigger.\n\nREMEMBER: Users should be able to fill out inputs without asking questions or looking up documentation. Be thorough and specific!";
17
+ export declare const COMMON_DEBUGGING_INSTRUCTIONS = "\nWhen an error occurs, the issue is most likely with misconfiguration, using the wrong task / model / technique.\nYou should carefully observe the data flow and the context to understand what happened.\n\nRegarding 404 error for google drive files, remind the user to recreate a new credential and check the \"allow all files permission\", since by default bubble lab only allows access to files that the user has created on bubble lab.\nRegarding errors reading gmail emails, remind the user to recreate a new credential and check the \"allow access to all your email\", since by default bubble lab only can only send emails to the user's own email address.\nRegarding JSON parsing for ai-agent, if JSON mode is enabled in ai-agent, the response should be a valid JSON object unless the user's request cannot be fulfilled, then the response should be a text output explaining why it can't perform the task and make it unable to be parsed as JSON.\nRegarding variables not found errors, it is because the system does not yet support complex syntaxes like mapping multiple arrow functions inside loops, etc. Tell the user why and attempt to fix the issue by simplifying the code.\n";
18
+ export declare const BUBBLE_SPECIFIC_INSTRUCTIONS: string;
19
+ export declare const DEBUGGING_INSTRUCTIONS = "\n**WORKFLOW ANALYSIS:**\n- Examine the data flow through each bubble in the workflow\n- Identify bottlenecks where data quality or detail is being lost\n- Trace execution outputs to understand why results are generic vs specific\n- Look for mismatched expectations between data extraction and content generation\n\n**QUALITY DETECTION PATTERNS:**\n- Generic language detection: Look for phrases like 'transform', 'leverage', 'paradigm shift' without concrete examples\n- Data density analysis: Check if source material contains sufficient detail for the intended output\n- Schema mismatch: Verify if data extraction schemas are too narrow (e.g., only 'summary' instead of full content)\n- Content specificity: Determine if outputs include concrete examples, technical details, or quantifiable data\n\n**ROOT CAUSE ANALYSIS:**\n- When content is generic, trace back to: (1) insufficient source data, (2) poor extraction parameters, or (3) vague prompts\n- Identify if research tools are only pulling URLs/titles/summaries instead of full detailed content\n- Check if AI agent system prompts have enough specificity requirements\n\n**PROACTIVE ISSUE IDENTIFICATION:**\n- Before suggesting fixes, analyze: Is the problem in data gathering, processing, or generation?\n- Look for patterns in execution outputs that indicate quality degradation\n- Identify when workflows are producing 'minimum viable content' instead of comprehensive analysis\n\n";
20
+ /**
21
+ * AI Agent behavior and model selection guide
22
+ * Instructions for when to use research-agent-tool and how to select appropriate models
23
+ */
24
+ export declare const AI_AGENT_BEHAVIOR_INSTRUCTIONS: string;
19
25
  //# sourceMappingURL=bubbleflow-generation-prompts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bubbleflow-generation-prompts.d.ts","sourceRoot":"","sources":["../src/bubbleflow-generation-prompts.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;GAGG;AACH,eAAO,MAAM,qBAAqB,0/EAqB4D,CAAC;AAE/F;;GAEG;AACH,eAAO,MAAM,kBAAkB,02BAUuE,CAAC;AAEvG;;GAEG;AACH,eAAO,MAAM,yBAAyB,uUAI+B,CAAC;AAEtE,eAAO,MAAM,4BAA4B,yXAGxC,CAAC"}
1
+ {"version":3,"file":"bubbleflow-generation-prompts.d.ts","sourceRoot":"","sources":["../src/bubbleflow-generation-prompts.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAOH,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,eAAO,MAAM,kBAAkB,EAS1B,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;AAEpC,eAAO,MAAM,qBAAqB,+qMAmD4D,CAAC;AAE/F,eAAO,MAAM,0BAA0B,QAkDtC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,02BAUuE,CAAC;AAEvG;;GAEG;AACH,eAAO,MAAM,yBAAyB,slNA+I4F,CAAC;AAEnI,eAAO,MAAM,6BAA6B,kqCAQzC,CAAC;AAEF,eAAO,MAAM,4BAA4B,QAiDxC,CAAC;AAEF,eAAO,MAAM,sBAAsB,y6CAuBlC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,8BAA8B,QAqD1C,CAAC"}