create-bubblelab-app 0.1.13 → 0.1.14
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.
|
|
3
|
+
"version": "0.1.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"description": "Create BubbleLab AI agent applications with one command",
|
|
@@ -31,6 +31,20 @@
|
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/node": "^20.12.12",
|
|
34
|
-
"@types/prompts": "^2.4.9"
|
|
34
|
+
"@types/prompts": "^2.4.9",
|
|
35
|
+
"@vitest/ui": "^3.2.4",
|
|
36
|
+
"dotenv": "^16.4.5",
|
|
37
|
+
"tsx": "^4.20.3",
|
|
38
|
+
"typescript": "^5.8.3",
|
|
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"
|
|
44
|
+
},
|
|
45
|
+
"scripts": {
|
|
46
|
+
"test": "vitest run",
|
|
47
|
+
"test:watch": "vitest",
|
|
48
|
+
"test:coverage": "vitest run --coverage"
|
|
35
49
|
}
|
|
36
50
|
}
|
|
@@ -39,9 +39,9 @@ async function main() {
|
|
|
39
39
|
// Step 4: (Optional) Modify bubble parameters dynamically
|
|
40
40
|
const bubbles = runner.getParsedBubbles();
|
|
41
41
|
const bubbleIds = Object.keys(bubbles).map(Number);
|
|
42
|
+
const city = process.env.CITY || 'New York';
|
|
42
43
|
|
|
43
44
|
if (bubbleIds.length > 0) {
|
|
44
|
-
const city = process.env.CITY || 'New York';
|
|
45
45
|
console.log(`🌍 Researching weather for: ${city}\n`);
|
|
46
46
|
|
|
47
47
|
runner.injector.changeBubbleParameters(
|
|
@@ -51,14 +51,14 @@ async function main() {
|
|
|
51
51
|
);
|
|
52
52
|
}
|
|
53
53
|
// Inject the credentials
|
|
54
|
-
runner.injector.injectCredentials(
|
|
54
|
+
runner.injector.injectCredentials([], {
|
|
55
55
|
[CredentialType.GOOGLE_GEMINI_CRED]: process.env.GOOGLE_API_KEY,
|
|
56
56
|
[CredentialType.FIRECRAWL_API_KEY]: process.env.FIRECRAWL_API_KEY,
|
|
57
57
|
});
|
|
58
58
|
|
|
59
59
|
// Step 5: Execute the flow
|
|
60
60
|
console.log('🤖 Running AI agent...\n');
|
|
61
|
-
const result = await runner.runAll();
|
|
61
|
+
const result = await runner.runAll({ city: city });
|
|
62
62
|
|
|
63
63
|
// Step 6: Display results
|
|
64
64
|
console.log('📊 Results:');
|
|
@@ -28,7 +28,7 @@ async function main() {
|
|
|
28
28
|
const limit = 10;
|
|
29
29
|
|
|
30
30
|
// Step 5: Set the credentials
|
|
31
|
-
runner.injector.injectCredentials(
|
|
31
|
+
runner.injector.injectCredentials([], {
|
|
32
32
|
[CredentialType.GOOGLE_GEMINI_CRED]: process.env.GOOGLE_API_KEY,
|
|
33
33
|
});
|
|
34
34
|
|