create-bubblelab-app 0.1.14 → 0.1.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-bubblelab-app",
3
- "version": "0.1.14",
3
+ "version": "0.1.16",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "Create BubbleLab AI agent applications with one command",
@@ -37,10 +37,10 @@
37
37
  "tsx": "^4.20.3",
38
38
  "typescript": "^5.8.3",
39
39
  "vitest": "^3.2.4",
40
- "@bubblelab/bubble-core": "0.1.10",
41
- "@bubblelab/shared-schemas": "0.1.10",
42
- "@bubblelab/bubble-runtime": "0.1.14",
43
- "@bubblelab/ts-scope-manager": "0.1.10"
40
+ "@bubblelab/bubble-core": "0.1.12",
41
+ "@bubblelab/bubble-runtime": "0.1.16",
42
+ "@bubblelab/shared-schemas": "0.1.12",
43
+ "@bubblelab/ts-scope-manager": "0.1.12"
44
44
  },
45
45
  "scripts": {
46
46
  "test": "vitest run",
@@ -10,7 +10,7 @@
10
10
  */
11
11
 
12
12
  import { BubbleRunner } from '@bubblelab/bubble-runtime';
13
- import { BubbleFactory } from '@bubblelab/bubble-core';
13
+ import { BubbleFactory, LogLevel } from '@bubblelab/bubble-core';
14
14
  import { readFileSync } from 'fs';
15
15
  import { fileURLToPath } from 'url';
16
16
  import { dirname, join } from 'path';
@@ -34,7 +34,14 @@ async function main() {
34
34
  const flowCode = readFileSync(join(__dirname, 'weather-flow.ts'), 'utf-8');
35
35
 
36
36
  // Step 3: Create a BubbleRunner with your flow code
37
- const runner = new BubbleRunner(flowCode, bubbleFactory);
37
+ const runner = new BubbleRunner(flowCode, bubbleFactory, {
38
+ pricingTable: {},
39
+ useWebhookLogger: true,
40
+ logLevel: LogLevel.INFO,
41
+ streamCallback: (event) => {
42
+ console.log('🔥 Streaming log event:', event);
43
+ },
44
+ });
38
45
 
39
46
  // Step 4: (Optional) Modify bubble parameters dynamically
40
47
  const bubbles = runner.getParsedBubbles();
@@ -1,5 +1,5 @@
1
1
  import { BubbleRunner } from '@bubblelab/bubble-runtime';
2
- import { BubbleFactory } from '@bubblelab/bubble-core';
2
+ import { BubbleFactory, LogLevel } from '@bubblelab/bubble-core';
3
3
  import { readFileSync } from 'fs';
4
4
  import { fileURLToPath } from 'url';
5
5
  import { dirname, join } from 'path';
@@ -22,7 +22,14 @@ async function main() {
22
22
  );
23
23
 
24
24
  // Step 3: Create a BubbleRunner with your flow code
25
- const runner = new BubbleRunner(flowCode, bubbleFactory);
25
+ const runner = new BubbleRunner(flowCode, bubbleFactory, {
26
+ pricingTable: {},
27
+ useWebhookLogger: true,
28
+ logLevel: LogLevel.INFO,
29
+ streamCallback: (event) => {
30
+ console.log('🔥 Streaming log event:', event);
31
+ },
32
+ });
26
33
  // Step 4: (Optional) Modify bubble parameters dynamically
27
34
  const subreddit = 'worldnews';
28
35
  const limit = 10;