@bubblelab/bubble-core 0.1.150 → 0.1.151

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 (115) hide show
  1. package/dist/bubble-bundle.d.ts +76 -76
  2. package/dist/bubbles/service-bubble/agi-inc.d.ts +20 -20
  3. package/dist/bubbles/service-bubble/ai-agent.d.ts +74 -74
  4. package/dist/bubbles/service-bubble/airtable.d.ts +76 -76
  5. package/dist/bubbles/service-bubble/apify/actors/instagram-hashtag-scraper.d.ts +2 -2
  6. package/dist/bubbles/service-bubble/apify/actors/instagram-scraper.d.ts +8 -8
  7. package/dist/bubbles/service-bubble/apify/actors/linkedin-jobs-scraper.d.ts +2 -2
  8. package/dist/bubbles/service-bubble/apify/actors/linkedin-posts-search.d.ts +22 -22
  9. package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-detail.d.ts +38 -38
  10. package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-posts.d.ts +52 -52
  11. package/dist/bubbles/service-bubble/apify/actors/tiktok-scraper.d.ts +6 -6
  12. package/dist/bubbles/service-bubble/apify/actors/twitter-scraper.d.ts +12 -12
  13. package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.d.ts +12 -12
  14. package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts +126 -126
  15. package/dist/bubbles/service-bubble/apify/apify.d.ts +18 -18
  16. package/dist/bubbles/service-bubble/ashby/ashby.d.ts +2 -2
  17. package/dist/bubbles/service-bubble/ashby/ashby.schema.d.ts +2 -2
  18. package/dist/bubbles/service-bubble/browserbase/browserbase.d.ts +38 -1
  19. package/dist/bubbles/service-bubble/browserbase/browserbase.d.ts.map +1 -1
  20. package/dist/bubbles/service-bubble/browserbase/browserbase.js +80 -0
  21. package/dist/bubbles/service-bubble/browserbase/browserbase.js.map +1 -1
  22. package/dist/bubbles/service-bubble/browserbase/browserbase.schema.d.ts +34 -1
  23. package/dist/bubbles/service-bubble/browserbase/browserbase.schema.d.ts.map +1 -1
  24. package/dist/bubbles/service-bubble/browserbase/browserbase.schema.js +30 -0
  25. package/dist/bubbles/service-bubble/browserbase/browserbase.schema.js.map +1 -1
  26. package/dist/bubbles/service-bubble/firecrawl.d.ts +334 -334
  27. package/dist/bubbles/service-bubble/followupboss.d.ts +4 -4
  28. package/dist/bubbles/service-bubble/github.d.ts +60 -60
  29. package/dist/bubbles/service-bubble/gmail.d.ts +164 -164
  30. package/dist/bubbles/service-bubble/google-calendar.d.ts +6 -6
  31. package/dist/bubbles/service-bubble/google-drive.d.ts +9 -9
  32. package/dist/bubbles/service-bubble/google-drive.d.ts.map +1 -1
  33. package/dist/bubbles/service-bubble/google-drive.js +37 -1
  34. package/dist/bubbles/service-bubble/google-drive.js.map +1 -1
  35. package/dist/bubbles/service-bubble/http.d.ts +2 -2
  36. package/dist/bubbles/service-bubble/insforge-db.d.ts +8 -8
  37. package/dist/bubbles/service-bubble/jira/jira.d.ts +30 -30
  38. package/dist/bubbles/service-bubble/jira/jira.schema.d.ts +36 -36
  39. package/dist/bubbles/service-bubble/notion/notion.d.ts +164 -164
  40. package/dist/bubbles/service-bubble/notion/property-schemas.d.ts +8 -8
  41. package/dist/bubbles/service-bubble/postgresql.d.ts +8 -8
  42. package/dist/bubbles/service-bubble/resend.d.ts +4 -4
  43. package/dist/bubbles/service-bubble/salesforce/index.d.ts +4 -0
  44. package/dist/bubbles/service-bubble/salesforce/index.d.ts.map +1 -0
  45. package/dist/bubbles/service-bubble/salesforce/index.js +4 -0
  46. package/dist/bubbles/service-bubble/salesforce/index.js.map +1 -0
  47. package/dist/bubbles/service-bubble/salesforce/salesforce.d.ts +1331 -0
  48. package/dist/bubbles/service-bubble/salesforce/salesforce.d.ts.map +1 -0
  49. package/dist/bubbles/service-bubble/salesforce/salesforce.js +618 -0
  50. package/dist/bubbles/service-bubble/salesforce/salesforce.js.map +1 -0
  51. package/dist/bubbles/service-bubble/salesforce/salesforce.schema.d.ts +1445 -0
  52. package/dist/bubbles/service-bubble/salesforce/salesforce.schema.d.ts.map +1 -0
  53. package/dist/bubbles/service-bubble/salesforce/salesforce.schema.js +609 -0
  54. package/dist/bubbles/service-bubble/salesforce/salesforce.schema.js.map +1 -0
  55. package/dist/bubbles/service-bubble/salesforce/salesforce.utils.d.ts +87 -0
  56. package/dist/bubbles/service-bubble/salesforce/salesforce.utils.d.ts.map +1 -0
  57. package/dist/bubbles/service-bubble/salesforce/salesforce.utils.js +181 -0
  58. package/dist/bubbles/service-bubble/salesforce/salesforce.utils.js.map +1 -0
  59. package/dist/bubbles/service-bubble/slack/slack.d.ts +328 -328
  60. package/dist/bubbles/service-bubble/slack/slack.utils.d.ts.map +1 -1
  61. package/dist/bubbles/service-bubble/slack/slack.utils.js +17 -2
  62. package/dist/bubbles/service-bubble/slack/slack.utils.js.map +1 -1
  63. package/dist/bubbles/service-bubble/stripe/stripe.d.ts +24 -24
  64. package/dist/bubbles/service-bubble/stripe/stripe.schema.d.ts +28 -28
  65. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.d.ts +6 -6
  66. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.schema.d.ts +8 -8
  67. package/dist/bubbles/tool-bubble/browser-tools/_shared/ai/ai-browser-agent.d.ts +66 -0
  68. package/dist/bubbles/tool-bubble/browser-tools/_shared/ai/ai-browser-agent.d.ts.map +1 -0
  69. package/dist/bubbles/tool-bubble/browser-tools/_shared/ai/ai-browser-agent.js +484 -0
  70. package/dist/bubbles/tool-bubble/browser-tools/_shared/ai/ai-browser-agent.js.map +1 -0
  71. package/dist/bubbles/tool-bubble/browser-tools/_shared/ai/ai-browser-agent.types.d.ts +85 -0
  72. package/dist/bubbles/tool-bubble/browser-tools/_shared/ai/ai-browser-agent.types.d.ts.map +1 -0
  73. package/dist/bubbles/tool-bubble/browser-tools/_shared/ai/ai-browser-agent.types.js +2 -0
  74. package/dist/bubbles/tool-bubble/browser-tools/_shared/ai/ai-browser-agent.types.js.map +1 -0
  75. package/dist/bubbles/tool-bubble/browser-tools/_shared/ai/ai-fallback-step.d.ts +27 -0
  76. package/dist/bubbles/tool-bubble/browser-tools/_shared/ai/ai-fallback-step.d.ts.map +1 -0
  77. package/dist/bubbles/tool-bubble/browser-tools/_shared/ai/ai-fallback-step.js +77 -0
  78. package/dist/bubbles/tool-bubble/browser-tools/_shared/ai/ai-fallback-step.js.map +1 -0
  79. package/dist/bubbles/tool-bubble/browser-tools/_shared/ai/index.d.ts +4 -0
  80. package/dist/bubbles/tool-bubble/browser-tools/_shared/ai/index.d.ts.map +1 -0
  81. package/dist/bubbles/tool-bubble/browser-tools/_shared/ai/index.js +3 -0
  82. package/dist/bubbles/tool-bubble/browser-tools/_shared/ai/index.js.map +1 -0
  83. package/dist/bubbles/tool-bubble/browser-tools/linkedin-accept-invitations/tool.d.ts.map +1 -1
  84. package/dist/bubbles/tool-bubble/browser-tools/linkedin-accept-invitations/tool.js +254 -195
  85. package/dist/bubbles/tool-bubble/browser-tools/linkedin-accept-invitations/tool.js.map +1 -1
  86. package/dist/bubbles/tool-bubble/browser-tools/linkedin-connection/tool.d.ts +2 -0
  87. package/dist/bubbles/tool-bubble/browser-tools/linkedin-connection/tool.d.ts.map +1 -1
  88. package/dist/bubbles/tool-bubble/browser-tools/linkedin-connection/tool.js +346 -229
  89. package/dist/bubbles/tool-bubble/browser-tools/linkedin-connection/tool.js.map +1 -1
  90. package/dist/bubbles/tool-bubble/browser-tools/linkedin-received-invitations/tool.d.ts +34 -33
  91. package/dist/bubbles/tool-bubble/browser-tools/linkedin-received-invitations/tool.d.ts.map +1 -1
  92. package/dist/bubbles/tool-bubble/browser-tools/linkedin-received-invitations/tool.js +212 -151
  93. package/dist/bubbles/tool-bubble/browser-tools/linkedin-received-invitations/tool.js.map +1 -1
  94. package/dist/bubbles/tool-bubble/browser-tools/linkedin-sent-invitations/tool.d.ts +33 -32
  95. package/dist/bubbles/tool-bubble/browser-tools/linkedin-sent-invitations/tool.d.ts.map +1 -1
  96. package/dist/bubbles/tool-bubble/browser-tools/linkedin-sent-invitations/tool.js +188 -127
  97. package/dist/bubbles/tool-bubble/browser-tools/linkedin-sent-invitations/tool.js.map +1 -1
  98. package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts +4 -4
  99. package/dist/bubbles/tool-bubble/company-enrichment-tool.d.ts +20 -20
  100. package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.d.ts +8 -8
  101. package/dist/bubbles/tool-bubble/linkedin-tool.d.ts +380 -380
  102. package/dist/bubbles/tool-bubble/people-search-tool.d.ts +44 -44
  103. package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts +10 -10
  104. package/dist/bubbles/tool-bubble/research-agent-tool.d.ts +4 -4
  105. package/dist/bubbles/tool-bubble/sql-query-tool.d.ts +4 -4
  106. package/dist/bubbles/tool-bubble/tiktok-tool.d.ts +60 -60
  107. package/dist/bubbles/tool-bubble/twitter-tool.d.ts +134 -134
  108. package/dist/bubbles/tool-bubble/yc-scraper-tool.d.ts +8 -8
  109. package/dist/bubbles/tool-bubble/youtube-tool.d.ts +20 -20
  110. package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts +12 -12
  111. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +8 -8
  112. package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +2 -2
  113. package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +18 -18
  114. package/dist/bubbles.json +73 -2
  115. package/package.json +1 -1
@@ -0,0 +1,85 @@
1
+ import type { z } from 'zod';
2
+ /**
3
+ * Represents an interactive element extracted from the page.
4
+ * Used to provide context to the AI for suggesting recovery actions.
5
+ */
6
+ export interface InteractiveElement {
7
+ tagName: string;
8
+ role?: string;
9
+ name?: string;
10
+ id?: string;
11
+ selector: string;
12
+ boundingBox: {
13
+ x: number;
14
+ y: number;
15
+ width: number;
16
+ height: number;
17
+ };
18
+ isVisible: boolean;
19
+ isEnabled: boolean;
20
+ }
21
+ /**
22
+ * Possible actions the AI can suggest for error recovery.
23
+ */
24
+ export type AIBrowserAction = {
25
+ action: 'click';
26
+ selector: string;
27
+ } | {
28
+ action: 'click_coordinates';
29
+ coordinates: [number, number];
30
+ } | {
31
+ action: 'type';
32
+ selector: string;
33
+ value: string;
34
+ } | {
35
+ action: 'scroll';
36
+ direction: 'up' | 'down';
37
+ amount: number;
38
+ } | {
39
+ action: 'wait';
40
+ milliseconds: number;
41
+ } | {
42
+ action: 'extract';
43
+ data: unknown;
44
+ } | {
45
+ action: 'none';
46
+ reason: string;
47
+ };
48
+ /**
49
+ * Context provided to the AI for recovery decision making.
50
+ */
51
+ export interface AIRecoveryContext {
52
+ taskDescription: string;
53
+ errorMessage: string;
54
+ currentUrl: string;
55
+ screenshotBase64: string;
56
+ interactiveElements: InteractiveElement[];
57
+ }
58
+ /**
59
+ * Configuration for the AI browser agent.
60
+ */
61
+ export interface AIBrowserAgentConfig {
62
+ sessionId: string;
63
+ context?: unknown;
64
+ credentials?: Record<string, string>;
65
+ }
66
+ /**
67
+ * Result of an AI recovery attempt.
68
+ */
69
+ export interface AIRecoveryResult {
70
+ success: boolean;
71
+ action: AIBrowserAction;
72
+ error?: string;
73
+ }
74
+ /**
75
+ * Extended options for RecordableStep with AI fallback support.
76
+ */
77
+ export interface AIFallbackOptions {
78
+ /** Enable AI fallback for error recovery */
79
+ aiFallback?: boolean;
80
+ /** Additional context for the AI about what this step is trying to accomplish */
81
+ taskDescription?: string;
82
+ /** Zod schema for data extraction - when provided, AI extracts data matching the schema */
83
+ extractionSchema?: z.ZodType<unknown>;
84
+ }
85
+ //# sourceMappingURL=ai-browser-agent.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai-browser-agent.types.d.ts","sourceRoot":"","sources":["../../../../../../src/bubbles/tool-bubble/browser-tools/_shared/ai/ai-browser-agent.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK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,MAAM,CAAC;IACzB,mBAAmB,EAAE,kBAAkB,EAAE,CAAC;CAC3C;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACtC;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,eAAe,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,4CAA4C;IAC5C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iFAAiF;IACjF,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,2FAA2F;IAC3F,gBAAgB,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;CACvC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ai-browser-agent.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai-browser-agent.types.js","sourceRoot":"","sources":["../../../../../../src/bubbles/tool-bubble/browser-tools/_shared/ai/ai-browser-agent.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,27 @@
1
+ import type { z } from 'zod';
2
+ /**
3
+ * Options for the AI fallback decorator.
4
+ */
5
+ interface AIFallbackStepOptions {
6
+ taskDescription?: string;
7
+ extractionSchema?: z.ZodType<unknown>;
8
+ }
9
+ /**
10
+ * Lightweight decorator that wraps a method with AI fallback error recovery.
11
+ * This is the OSS-compatible version of @RecordableStep — no recording,
12
+ * just AI-powered recovery when selectors/actions fail.
13
+ *
14
+ * When the decorated method throws, the decorator:
15
+ * 1. Creates an AIBrowserAgent with the active session
16
+ * 2. If extractionSchema is provided: uses AI vision to extract data
17
+ * 3. Otherwise: asks AI to suggest a recovery action (click, type, scroll, etc.)
18
+ * 4. Executes the suggested action
19
+ * 5. For wait/scroll: retries the original method
20
+ * 6. For click/type/click_coordinates: returns true (action completed)
21
+ *
22
+ * @param stepName - Human-readable name for logging
23
+ * @param options - Task description and optional extraction schema
24
+ */
25
+ export declare function AIFallbackStep(stepName: string, options?: AIFallbackStepOptions): <This, Args extends unknown[], Return>(originalMethod: (this: This, ...args: Args) => Promise<Return>, _context: ClassMethodDecoratorContext<This, (this: This, ...args: Args) => Promise<Return>>) => (this: This, ...args: Args) => Promise<Return>;
26
+ export {};
27
+ //# sourceMappingURL=ai-fallback-step.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai-fallback-step.d.ts","sourceRoot":"","sources":["../../../../../../src/bubbles/tool-bubble/browser-tools/_shared/ai/ai-fallback-step.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAG7B;;GAEG;AACH,UAAU,qBAAqB;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;CACvC;AAWD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,qBAA0B,IAElB,IAAI,EAAE,IAAI,SAAS,OAAO,EAAE,EAAE,MAAM,EACnD,gBAAgB,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,MAAM,CAAC,EAC9D,UAAU,2BAA2B,CACnC,IAAI,EACJ,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,MAAM,CAAC,CAC/C,MAEsB,MAAM,IAAI,EAAE,GAAG,MAAM,IAAI,KAAG,OAAO,CAAC,MAAM,CAAC,CAoErE"}
@@ -0,0 +1,77 @@
1
+ import { AIBrowserAgent } from './ai-browser-agent.js';
2
+ /**
3
+ * Lightweight decorator that wraps a method with AI fallback error recovery.
4
+ * This is the OSS-compatible version of @RecordableStep — no recording,
5
+ * just AI-powered recovery when selectors/actions fail.
6
+ *
7
+ * When the decorated method throws, the decorator:
8
+ * 1. Creates an AIBrowserAgent with the active session
9
+ * 2. If extractionSchema is provided: uses AI vision to extract data
10
+ * 3. Otherwise: asks AI to suggest a recovery action (click, type, scroll, etc.)
11
+ * 4. Executes the suggested action
12
+ * 5. For wait/scroll: retries the original method
13
+ * 6. For click/type/click_coordinates: returns true (action completed)
14
+ *
15
+ * @param stepName - Human-readable name for logging
16
+ * @param options - Task description and optional extraction schema
17
+ */
18
+ export function AIFallbackStep(stepName, options = {}) {
19
+ return function (originalMethod, _context) {
20
+ return async function (...args) {
21
+ try {
22
+ return await originalMethod.apply(this, args);
23
+ }
24
+ catch (error) {
25
+ const self = this;
26
+ const errorMsg = error instanceof Error ? error.message : String(error);
27
+ const sessionId = self.sessionId;
28
+ if (!sessionId)
29
+ throw error;
30
+ const aiAgent = new AIBrowserAgent({
31
+ sessionId,
32
+ context: self.context,
33
+ credentials: self.params?.credentials,
34
+ });
35
+ const taskDesc = options.taskDescription || stepName;
36
+ if (options.extractionSchema) {
37
+ console.log(`[AIFallback] Extracting data for "${stepName}"`);
38
+ const extracted = await aiAgent.extractData(options.extractionSchema, taskDesc);
39
+ if (extracted !== null) {
40
+ console.log(`[AIFallback] Extraction succeeded for "${stepName}"`);
41
+ return extracted;
42
+ }
43
+ }
44
+ else {
45
+ console.log(`[AIFallback] Suggesting recovery for "${stepName}"`);
46
+ const action = await aiAgent.suggestRecoveryAction(taskDesc, errorMsg);
47
+ console.log(`[AIFallback] AI suggested:`, action);
48
+ if (action.action !== 'none') {
49
+ const success = await aiAgent.executeAction(action);
50
+ if (success) {
51
+ if (action.action === 'wait' || action.action === 'scroll') {
52
+ console.log(`[AIFallback] Retrying "${stepName}" after ${action.action}`);
53
+ try {
54
+ return await originalMethod.apply(this, args);
55
+ }
56
+ catch (retryError) {
57
+ console.log(`[AIFallback] Retry failed for "${stepName}":`, retryError);
58
+ }
59
+ }
60
+ else if (action.action === 'click' ||
61
+ action.action === 'type' ||
62
+ action.action === 'click_coordinates') {
63
+ console.log(`[AIFallback] Action completed for "${stepName}"`);
64
+ return true;
65
+ }
66
+ }
67
+ }
68
+ else {
69
+ console.log(`[AIFallback] AI could not help: ${action.reason}`);
70
+ }
71
+ }
72
+ throw error;
73
+ }
74
+ };
75
+ };
76
+ }
77
+ //# sourceMappingURL=ai-fallback-step.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai-fallback-step.js","sourceRoot":"","sources":["../../../../../../src/bubbles/tool-bubble/browser-tools/_shared/ai/ai-fallback-step.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAmBvD;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,cAAc,CAC5B,QAAgB,EAChB,UAAiC,EAAE;IAEnC,OAAO,UACL,cAA8D,EAC9D,QAGC;QAED,OAAO,KAAK,WAAuB,GAAG,IAAU;YAC9C,IAAI,CAAC;gBACH,OAAO,MAAM,cAAc,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;YAChD,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,MAAM,IAAI,GAAG,IAAmC,CAAC;gBACjD,MAAM,QAAQ,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;gBACxE,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;gBACjC,IAAI,CAAC,SAAS;oBAAE,MAAM,KAAK,CAAC;gBAE5B,MAAM,OAAO,GAAG,IAAI,cAAc,CAAC;oBACjC,SAAS;oBACT,OAAO,EAAE,IAAI,CAAC,OAAO;oBACrB,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE,WAAW;iBACtC,CAAC,CAAC;gB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ACH,CAAC;iCAAM,IACL,MAAM,CAAC,MAAM,KAAK,OAAO;gCACzB,MAAM,CAAC,MAAM,KAAK,MAAM;gCACxB,MAAM,CAAC,MAAM,KAAK,mBAAmB,EACrC,CAAC;gCACD,OAAO,CAAC,GAAG,CAAC,sCAAsC,QAAQ,GAAG,CAAC,CAAC;gCAC/D,OAAO,IAAc,CAAC;4BACxB,CAAC;wBACH,CAAC;oBACH,CAAC;yBAAM,CAAC;wBACN,OAAO,CAAC,GAAG,CAAC,mCAAmC,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;oBAClE,CAAC;gBACH,CAAC;gBAED,MAAM,KAAK,CAAC;YACd,CAAC;QACH,CAAC,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { AIBrowserAgent } from './ai-browser-agent.js';
2
+ export { AIFallbackStep } from './ai-fallback-step.js';
3
+ export type { AIBrowserAction, AIBrowserAgentConfig, } from './ai-browser-agent.types.js';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/bubbles/tool-bubble/browser-tools/_shared/ai/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,YAAY,EACV,eAAe,EACf,oBAAoB,GACrB,MAAM,6BAA6B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { AIBrowserAgent } from './ai-browser-agent.js';
2
+ export { AIFallbackStep } from './ai-fallback-step.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/bubbles/tool-bubble/browser-tools/_shared/ai/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,cAAc,EAA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