@bubblelab/bubble-core 0.1.2 → 0.1.5

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 (66) hide show
  1. package/dist/bubble-bundle.d.ts +28 -28
  2. package/dist/bubbles/service-bubble/ai-agent.d.ts +24 -24
  3. package/dist/bubbles/service-bubble/ai-agent.d.ts.map +1 -1
  4. package/dist/bubbles/service-bubble/ai-agent.js +16 -2
  5. package/dist/bubbles/service-bubble/ai-agent.js.map +1 -1
  6. package/dist/bubbles/service-bubble/gmail.d.ts +4 -4
  7. package/dist/bubbles/service-bubble/google-calendar.d.ts +6 -6
  8. package/dist/bubbles/service-bubble/google-drive.d.ts +4 -4
  9. package/dist/bubbles/service-bubble/google-sheets.d.ts +20 -20
  10. package/dist/bubbles/service-bubble/http.d.ts +2 -2
  11. package/dist/bubbles/service-bubble/postgresql.d.ts +4 -4
  12. package/dist/bubbles/service-bubble/slack.d.ts +58 -58
  13. package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts +4 -4
  14. package/dist/bubbles/tool-bubble/get-bubble-details-tool.d.ts +4 -4
  15. package/dist/bubbles/tool-bubble/list-bubbles-tool.d.ts +4 -4
  16. package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts +10 -10
  17. package/dist/bubbles/tool-bubble/research-agent-tool.d.ts +14 -14
  18. package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts +8 -8
  19. package/dist/bubbles/tool-bubble/web-scrape-tool.d.ts +10 -10
  20. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.d.ts +8 -8
  21. package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts +66 -66
  22. package/dist/bubbles/workflow-bubble/parse-document.workflow.d.ts +50 -50
  23. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +92 -92
  24. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts +36 -36
  25. package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +46 -46
  26. package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +60 -60
  27. package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts +14 -14
  28. package/dist/logging/BubbleLogger.d.ts.map +1 -1
  29. package/dist/logging/BubbleLogger.js +16 -4
  30. package/dist/logging/BubbleLogger.js.map +1 -1
  31. package/dist/types/ai-models.d.ts +1 -1
  32. package/dist/types/ai-models.d.ts.map +1 -1
  33. package/dist/types/ai-models.js +2 -0
  34. package/dist/types/ai-models.js.map +1 -1
  35. package/dist/types/base-bubble-class.d.ts.map +1 -1
  36. package/dist/types/base-bubble-class.js +7 -1
  37. package/dist/types/base-bubble-class.js.map +1 -1
  38. package/package.json +4 -3
  39. package/dist/bubbles/tool-bubble/virtual-file-editor-example.d.ts +0 -8
  40. package/dist/bubbles/tool-bubble/virtual-file-editor-example.d.ts.map +0 -1
  41. package/dist/bubbles/tool-bubble/virtual-file-editor-example.js +0 -65
  42. package/dist/bubbles/tool-bubble/virtual-file-editor-example.js.map +0 -1
  43. package/dist/bubbles/tool-bubble/virtual-file-editor.tool.d.ts +0 -125
  44. package/dist/bubbles/tool-bubble/virtual-file-editor.tool.d.ts.map +0 -1
  45. package/dist/bubbles/tool-bubble/virtual-file-editor.tool.js +0 -169
  46. package/dist/bubbles/tool-bubble/virtual-file-editor.tool.js.map +0 -1
  47. package/dist/bubbles/workflow-bubble/bubblscript-generateor.workflow.d.ts +0 -97
  48. package/dist/bubbles/workflow-bubble/bubblscript-generateor.workflow.d.ts.map +0 -1
  49. package/dist/bubbles/workflow-bubble/bubblscript-generateor.workflow.js +0 -327
  50. package/dist/bubbles/workflow-bubble/bubblscript-generateor.workflow.js.map +0 -1
  51. package/dist/bubbles/workflow-bubble/file-editor-agent.workflow.d.ts +0 -157
  52. package/dist/bubbles/workflow-bubble/file-editor-agent.workflow.d.ts.map +0 -1
  53. package/dist/bubbles/workflow-bubble/file-editor-agent.workflow.js +0 -310
  54. package/dist/bubbles/workflow-bubble/file-editor-agent.workflow.js.map +0 -1
  55. package/dist/bubbles/workflow-bubble/workflow-template.d.ts +0 -144
  56. package/dist/bubbles/workflow-bubble/workflow-template.d.ts.map +0 -1
  57. package/dist/bubbles/workflow-bubble/workflow-template.js +0 -124
  58. package/dist/bubbles/workflow-bubble/workflow-template.js.map +0 -1
  59. package/dist/types/streaming-events.d.ts +0 -18
  60. package/dist/types/streaming-events.d.ts.map +0 -1
  61. package/dist/types/streaming-events.js +0 -5
  62. package/dist/types/streaming-events.js.map +0 -1
  63. package/dist/utils/mock-data-generator.d.ts +0 -43
  64. package/dist/utils/mock-data-generator.d.ts.map +0 -1
  65. package/dist/utils/mock-data-generator.js +0 -312
  66. package/dist/utils/mock-data-generator.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ai-models.js","sourceRoot":"","sources":["../../src/types/ai-models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,0DAA0D;AAC1D,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,IAAI,CAAC;IACpC,gBAAgB;IAChB,cAAc;IACd,mBAAmB;IACnB,oBAAoB;IACpB,uBAAuB;IACvB,uBAAuB;IACvB,yBAAyB;IACzB,8BAA8B;IAC9B,uCAAuC;CACxC,CAAC,CAAC"}
1
+ {"version":3,"file":"ai-models.js","sourceRoot":"","sources":["../../src/types/ai-models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,0DAA0D;AAC1D,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,IAAI,CAAC;IACpC,gBAAgB;IAChB,cAAc;IACd,mBAAmB;IACnB,oBAAoB;IACpB,eAAe;IACf,uBAAuB;IACvB,uBAAuB;IACvB,yBAAyB;IACzB,8BAA8B;IAC9B,uCAAuC;IAEvC,sCAAsC;CACvC,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"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EpD;;;;;OAKG;IACH,OAAO,CAAC,mBAAmB;IAqE3B,UAAU,CAAC,CAAC,SAAS,qBAAqB,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,IAAI;IAI1E,gBAAgB,IAAI,IAAI;IAIxB;;OAEG;IACG,MAAM,IAAI,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;IAyG9C;;;OAGG;IACH,kBAAkB,IAAI,YAAY,CAAC,OAAO,CAAC;IAI3C;;;OAGG;IACH,0BAA0B,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,CAAC,OAAO,CAAC;IAc/D;;OAEG;IACH,SAAS,CAAC,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,OAAO,CAAC;CAC5E"}
@@ -206,7 +206,13 @@ export class BaseBubble {
206
206
  * Useful for consistent testing scenarios
207
207
  */
208
208
  generateMockResultWithSeed(seed) {
209
- return MockDataGenerator.generateMockWithSeed(this.resultSchema, seed);
209
+ const mockResult = MockDataGenerator.generateMockWithSeed(this.resultSchema, seed);
210
+ // Override executionId to use randomUUID() instead of seeded value
211
+ // This ensures executionId is always unique even with the same seed
212
+ return {
213
+ ...mockResult,
214
+ executionId: randomUUID(),
215
+ };
210
216
  }
211
217
  }
212
218
  //# sourceMappingURL=base-bubble-class.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"base-bubble-class.js","sourceRoot":"","sources":["../../src/types/base-bubble-class.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAQpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EACL,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D;;;GAGG;AACH,MAAM,O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AAE;YACzB,WAAW,EAAE,UAAU,EAAE;YACzB,SAAS,EAAE,IAAI,IAAI,EAAE;SACtB,CAAC;QAEF,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;YACpB,MAAM,EAAE,KAAK,CACX,IAAI,IAAI,CAAC,IAAI,6CAA6C,MAAM,CAAC,KAAK,EAAE,CACzE,CAAC;QACJ,CAAC;QAED,kCAAkC;QAClC,MAAM,EAAE,0BAA0B,CAChC,IAAI,CAAC,OAAO,EAAE,UAAU,IAAI,CAAC,GAAG,EAChC,IAAI,CAAC,IAAI,EACT,IAAI,CAAC,IAAI,EACT,WAAW,CACZ,CAAC;QAEF,OAAO,WAAW,CAAC;IACrB,CAAC;IAED;;;OAGG;IACH,kBAAkB;QAChB,OAAO,iBAAiB,CAAC,kBAAkB,CAAU,IAAI,CAAC,YAAY,CAAC,CAAC;IAC1E,CAAC;IAED;;;OAGG;IACH,0BAA0B,CAAC,IAAY;QACrC,MAAM,UAAU,GAAG,iBAAiB,CAAC,oBAAoB,CACvD,IAAI,CAAC,YAAY,EACjB,IAAI,CACL,CAAC;QAEF,mEAAmE;QACnE,oEAAoE;QACpE,OAAO;YACL,GAAG,UAAU;YACb,WAAW,EAAE,UAAU,EAAE;SAC1B,CAAC;IACJ,CAAC;CAMF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bubblelab/bubble-core",
3
- "version": "0.1.2",
3
+ "version": "0.1.5",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./dist/index.js",
@@ -24,21 +24,22 @@
24
24
  "dependencies": {
25
25
  "@aws-sdk/client-s3": "^3.873.0",
26
26
  "@aws-sdk/s3-request-presigner": "^3.873.0",
27
+ "@langchain/anthropic": "^0.3.30",
27
28
  "@langchain/community": "^0.3.53",
28
29
  "@langchain/core": "^0.3.66",
29
30
  "@langchain/google-genai": "^0.2.15",
30
31
  "@langchain/langgraph": "^0.3.10",
31
32
  "@langchain/openai": "^0.6.2",
32
33
  "@mendable/firecrawl-js": "^3.2.1",
33
- "@typescript-eslint/typescript-estree": "8.46.0",
34
34
  "@types/pg": "^8.15.4",
35
+ "@typescript-eslint/typescript-estree": "8.46.0",
35
36
  "chart.js": "^4.5.0",
36
37
  "chartjs-node-canvas": "^5.0.0",
37
38
  "pg": "^8.16.3",
38
39
  "resend": "^4.8.0",
39
40
  "zod": "^3.24.1",
40
41
  "zod-to-json-schema": "^3.24.6",
41
- "@bubblelab/shared-schemas": "0.1.2"
42
+ "@bubblelab/shared-schemas": "0.1.5"
42
43
  },
43
44
  "devDependencies": {
44
45
  "@types/node": "^20.12.12",
@@ -1,8 +0,0 @@
1
- /**
2
- * EXAMPLE: Virtual File Editor Tool with Hidden Parameters
3
- *
4
- * This example demonstrates how the VirtualFileEditorTool now works with
5
- * codeLines hidden from AI agents and stored in the config field.
6
- */
7
- export {};
8
- //# sourceMappingURL=virtual-file-editor-example.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"virtual-file-editor-example.d.ts","sourceRoot":"","sources":["../../../src/bubbles/tool-bubble/virtual-file-editor-example.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
@@ -1,65 +0,0 @@
1
- /**
2
- * EXAMPLE: Virtual File Editor Tool with Hidden Parameters
3
- *
4
- * This example demonstrates how the VirtualFileEditorTool now works with
5
- * codeLines hidden from AI agents and stored in the config field.
6
- */
7
- import { VirtualFileEditorTool } from './virtual-file-editor.tool.js';
8
- // Example 1: AI Agent sees clean interface
9
- console.log('=== AI Agent Interface ===');
10
- console.log('AI agents only see these parameters:');
11
- console.log('- edits: Array of edit operations');
12
- console.log('- (credentials and config are hidden)');
13
- // Example 2: How the tool is used internally
14
- console.log('\n=== Internal Usage ===');
15
- // First call - initialize with empty file
16
- const tool1 = new VirtualFileEditorTool({
17
- edits: [
18
- {
19
- op: 'insert',
20
- startLine: 1,
21
- text: 'function hello() {\n console.log("Hello World");\n}',
22
- },
23
- ],
24
- config: {
25
- codeLines: [], // Hidden from AI - starts with empty file
26
- },
27
- });
28
- const result1 = await tool1.performAction();
29
- console.log('First call result:');
30
- console.log('Code lines:', result1.codeLines);
31
- console.log('Success:', result1.success);
32
- // Second call - AI agent only provides edits, codeLines maintained in config
33
- const tool2 = new VirtualFileEditorTool({
34
- edits: [
35
- {
36
- op: 'insert',
37
- startLine: 2,
38
- text: ' // Added comment',
39
- },
40
- ],
41
- config: {
42
- codeLines: result1.codeLines, // Previous state maintained
43
- },
44
- });
45
- const result2 = await tool2.performAction();
46
- console.log('\nSecond call result:');
47
- console.log('Code lines:', result2.codeLines);
48
- console.log('Success:', result2.success);
49
- // Example 3: How AI agents would use this tool
50
- console.log('\n=== AI Agent Usage ===');
51
- console.log('AI agents would call the tool like this:');
52
- console.log(`
53
- {
54
- "edits": [
55
- {
56
- "op": "insert",
57
- "startLine": 1,
58
- "text": "// New comment"
59
- }
60
- ]
61
- }
62
- `);
63
- console.log('The codeLines parameter is completely hidden from AI agents!');
64
- console.log('The tool maintains state through the config field internally.');
65
- //# sourceMappingURL=virtual-file-editor-example.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"virtual-file-editor-example.js","sourceRoot":"","sources":["../../../src/bubbles/tool-bubble/virtual-file-editor-example.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,2CAA2C;AAC3C,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;AAC1C,OAAO,CAAC,GAAG,CAAC,sCAAsC,CAAC,CAAC;AACpD,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,CAAC;AACjD,OAAO,CAAC,GAAG,CAAC,uCAAuC,CAAC,CAAC;AAErD,6CAA6C;AAC7C,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC;AAExC,0CAA0C;AAC1C,MAAM,KAAK,GAAG,IAAI,qBAAqB,CAAC;IACtC,KAAK,EAAE;QACL;YACE,E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@@
1
- /**
2
- * VIRTUAL FILE EDITOR TOOL
3
- *
4
- * Provides line-based edits on a virtual file represented as an array of lines.
5
- * This tool does not touch disk; it returns the updated array and a rendered view.
6
- */
7
- import { z } from 'zod';
8
- import { ToolBubble } from '../../types/tool-bubble-class.js';
9
- import type { BubbleContext } from '../../types/bubble.js';
10
- import { CredentialType } from '@nodex/shared-schemas';
11
- declare const VirtualFileEditorParamsSchema: z.ZodObject<{
12
- edit: z.ZodObject<{
13
- op: z.ZodEnum<["insert", "delete", "replace"]>;
14
- startLine: z.ZodNumber;
15
- endLine: z.ZodOptional<z.ZodNumber>;
16
- text: z.ZodOptional<z.ZodString>;
17
- }, "strip", z.ZodTypeAny, {
18
- op: "insert" | "delete" | "replace";
19
- startLine: number;
20
- endLine?: number | undefined;
21
- text?: string | undefined;
22
- }, {
23
- op: "insert" | "delete" | "replace";
24
- startLine: number;
25
- endLine?: number | undefined;
26
- text?: string | undefined;
27
- }>;
28
- credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
29
- config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
30
- }, "strip", z.ZodTypeAny, {
31
- edit: {
32
- op: "insert" | "delete" | "replace";
33
- startLine: number;
34
- endLine?: number | undefined;
35
- text?: string | undefined;
36
- };
37
- credentials?: Partial<Record<CredentialType, string>> | undefined;
38
- config?: Record<string, unknown> | undefined;
39
- }, {
40
- edit: {
41
- op: "insert" | "delete" | "replace";
42
- startLine: number;
43
- endLine?: number | undefined;
44
- text?: string | undefined;
45
- };
46
- credentials?: Partial<Record<CredentialType, string>> | undefined;
47
- config?: Record<string, unknown> | undefined;
48
- }>;
49
- declare const VirtualFileEditorResultSchema: z.ZodObject<{
50
- updatedCodeLines: z.ZodArray<z.ZodString, "many">;
51
- success: z.ZodBoolean;
52
- error: z.ZodString;
53
- }, "strip", z.ZodTypeAny, {
54
- updatedCodeLines: string[];
55
- success: boolean;
56
- error: string;
57
- }, {
58
- updatedCodeLines: string[];
59
- success: boolean;
60
- error: string;
61
- }>;
62
- type VFEParams = z.input<typeof VirtualFileEditorParamsSchema>;
63
- type VFEResult = z.output<typeof VirtualFileEditorResultSchema>;
64
- export declare class VirtualFileEditorTool extends ToolBubble<VFEParams, VFEResult> {
65
- static readonly type: "tool";
66
- static readonly bubbleName = "virtual-file-editor-tool";
67
- static readonly schema: z.ZodObject<{
68
- edit: z.ZodObject<{
69
- op: z.ZodEnum<["insert", "delete", "replace"]>;
70
- startLine: z.ZodNumber;
71
- endLine: z.ZodOptional<z.ZodNumber>;
72
- text: z.ZodOptional<z.ZodString>;
73
- }, "strip", z.ZodTypeAny, {
74
- op: "insert" | "delete" | "replace";
75
- startLine: number;
76
- endLine?: number | undefined;
77
- text?: string | undefined;
78
- }, {
79
- op: "insert" | "delete" | "replace";
80
- startLine: number;
81
- endLine?: number | undefined;
82
- text?: string | undefined;
83
- }>;
84
- credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
85
- config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
86
- }, "strip", z.ZodTypeAny, {
87
- edit: {
88
- op: "insert" | "delete" | "replace";
89
- startLine: number;
90
- endLine?: number | undefined;
91
- text?: string | undefined;
92
- };
93
- credentials?: Partial<Record<CredentialType, string>> | undefined;
94
- config?: Record<string, unknown> | undefined;
95
- }, {
96
- edit: {
97
- op: "insert" | "delete" | "replace";
98
- startLine: number;
99
- endLine?: number | undefined;
100
- text?: string | undefined;
101
- };
102
- credentials?: Partial<Record<CredentialType, string>> | undefined;
103
- config?: Record<string, unknown> | undefined;
104
- }>;
105
- static readonly resultSchema: z.ZodObject<{
106
- updatedCodeLines: z.ZodArray<z.ZodString, "many">;
107
- success: z.ZodBoolean;
108
- error: z.ZodString;
109
- }, "strip", z.ZodTypeAny, {
110
- updatedCodeLines: string[];
111
- success: boolean;
112
- error: string;
113
- }, {
114
- updatedCodeLines: string[];
115
- success: boolean;
116
- error: string;
117
- }>;
118
- static readonly shortDescription = "Edits a virtual file using a single insert/delete/replace operation per call.";
119
- static readonly longDescription = "\n A utility tool for agentic coding loops. Applies a single edit to a virtual file and\n returns the updated file content and a rendered numbered view for the prompt.\n The current file content is maintained in the tool's internal state.\n Only one edit operation is allowed per call.\n\n OPERATION TYPES:\n \n 1. INSERT: Adds new lines BEFORE the specified startLine\n Example: { \"op\": \"insert\", \"startLine\": 5, \"text\": \"const x = 1;\" }\n - This adds the new line BEFORE line 5, pushing existing line 5 to line 6\n \n 2. DELETE: Removes lines from startLine to endLine (inclusive)\n Example: { \"op\": \"delete\", \"startLine\": 3, \"endLine\": 5 }\n - This removes lines 3, 4, and 5\n - For single line: { \"op\": \"delete\", \"startLine\": 3 } (endLine defaults to startLine)\n - DO NOT include 'text' parameter for delete operations\n \n 3. REPLACE: Replaces lines from startLine to endLine with new text\n Example: { \"op\": \"replace\", \"startLine\": 2, \"endLine\": 4, \"text\": \"new content\\nline 2\" }\n - This replaces lines 2, 3, and 4 with the new text\n - For single line: { \"op\": \"replace\", \"startLine\": 2, \"text\": \"new content\" }\n - For multi-line replacement, ALWAYS specify both startLine AND endLine\n \n CRITICAL RULES:\n - Line numbers are 1-based (first line is 1, not 0)\n - For multi-line operations, ALWAYS specify both startLine AND endLine\n - For delete operations, NEVER include the 'text' parameter\n - Use \\n in text to create multiple lines\n - Each call can only perform ONE operation\n ";
120
- static readonly alias = "vfe";
121
- constructor(params: VFEParams, context?: BubbleContext);
122
- performAction(context?: BubbleContext): Promise<VFEResult>;
123
- }
124
- export {};
125
- //# sourceMappingURL=virtual-file-editor.tool.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"virtual-file-editor.tool.d.ts","sourceRoot":"","sources":["../../../src/bubbles/tool-bubble/virtual-file-editor.tool.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AA+BvD,QAAA,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMjC,CAAC;AAEH,QAAA,MAAM,6BAA6B;;;;;;;;;;;;EAMjC,CAAC;AAEH,KAAK,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAC/D,KAAK,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAuDhE,qBAAa,qBAAsB,SAAQ,UAAU,CAAC,SAAS,EAAE,SAAS,CAAC;IACzE,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAG,MAAM,CAAU;IACvC,MAAM,CAAC,QAAQ,CAAC,UAAU,8BAA8B;IACxD,MAAM,CAAC,QAAQ,CAAC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAiC;IACvD,MAAM,CAAC,QAAQ,CAAC,YAAY;;;;;;;;;;;;OAAiC;IAC7D,MAAM,CAAC,QAAQ,CAAC,gBAAgB,mFACkD;IAClF,MAAM,CAAC,QAAQ,CAAC,eAAe,koDA8B7B;IACF,MAAM,CAAC,QAAQ,CAAC,KAAK,SAAS;gBAElB,MAAM,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,aAAa;IAIhD,aAAa,CAAC,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,SAAS,CAAC;CAsDjE"}
@@ -1,169 +0,0 @@
1
- /**
2
- * VIRTUAL FILE EDITOR TOOL
3
- *
4
- * Provides line-based edits on a virtual file represented as an array of lines.
5
- * This tool does not touch disk; it returns the updated array and a rendered view.
6
- */
7
- import { z } from 'zod';
8
- import { ToolBubble } from '../../types/tool-bubble-class.js';
9
- import { CredentialType } from '@nodex/shared-schemas';
10
- const FileEditSchema = z.object({
11
- op: z
12
- .enum(['insert', 'delete', 'replace'])
13
- .describe('Operation type: "insert" adds new lines BEFORE startLine, "delete" removes lines from startLine to endLine (inclusive), "replace" replaces lines from startLine to endLine with new text. For delete operations, do NOT include text parameter.'),
14
- startLine: z
15
- .number()
16
- .int()
17
- .min(1)
18
- .describe('Line number (1-based). For insert: new lines added BEFORE this line. For delete/replace: first line to modify (inclusive)'),
19
- endLine: z
20
- .number()
21
- .int()
22
- .min(1)
23
- .optional()
24
- .describe('Last line to modify (inclusive). OPTIONAL - defaults to startLine for single-line delete/replace. Specify range for multi-line operations.'),
25
- text: z
26
- .string()
27
- .optional()
28
- .describe('Text content for insert or replace operations. Use \\n for multiple lines. DO NOT include this parameter for delete operations.'),
29
- });
30
- const VirtualFileEditorParamsSchema = z.object({
31
- edit: FileEditSchema.describe('Single edit operation. Examples: Replace line 2: { "op": "replace", "startLine": 2, "text": "new content" }. Insert before line 1: { "op": "insert", "startLine": 1, "text": "new line" }. Delete line 5: { "op": "delete", "startLine": 5 }. Multi-line replace: { "op": "replace", "startLine": 2, "endLine": 4, "text": "new content" }. For delete operations, do NOT include text parameter.'),
32
- credentials: z.record(z.nativeEnum(CredentialType), z.string()).optional(),
33
- config: z.record(z.string(), z.unknown()).optional(),
34
- });
35
- const VirtualFileEditorResultSchema = z.object({
36
- updatedCodeLines: z
37
- .array(z.string())
38
- .describe('Updated file content as array of lines'),
39
- success: z.boolean(),
40
- error: z.string(),
41
- });
42
- function splitLines(text) {
43
- return text.replace(/\r\n?/g, '\n').split('\n');
44
- }
45
- function applyEdit(codeLines, edit) {
46
- const lines = [...codeLines];
47
- const startIdx = Math.max(1, edit.startLine) - 1;
48
- // Default endLine to startLine for single-line operations if not provided
49
- const endIdx = edit.endLine !== undefined
50
- ? Math.max(1, edit.endLine) - 1
51
- : edit.op === 'delete' || edit.op === 'replace'
52
- ? startIdx // Default to single line for delete/replace
53
- : undefined;
54
- if (edit.op === 'insert') {
55
- const insertLines = splitLines(edit.text ?? '');
56
- const clampIdx = Math.min(Math.max(0, startIdx), lines.length);
57
- lines.splice(clampIdx, 0, ...insertLines);
58
- return lines;
59
- }
60
- // For delete/replace, endIdx should now always be defined (defaulted to startIdx)
61
- if (endIdx === undefined) {
62
- console.warn('[VirtualFileEditor] Invalid edit: endIdx is undefined for', edit.op);
63
- return lines; // Safety fallback
64
- }
65
- const from = Math.min(Math.max(0, startIdx), lines.length - 1);
66
- const to = Math.min(Math.max(from, endIdx), lines.length - 1);
67
- const deleteCount = to - from + 1;
68
- if (edit.op === 'delete') {
69
- lines.splice(from, deleteCount);
70
- return lines;
71
- }
72
- if (edit.op === 'replace') {
73
- const replaceLines = splitLines(edit.text ?? '');
74
- lines.splice(from, deleteCount, ...replaceLines);
75
- return lines;
76
- }
77
- return lines;
78
- }
79
- export class VirtualFileEditorTool extends ToolBubble {
80
- static type = 'tool';
81
- static bubbleName = 'virtual-file-editor-tool';
82
- static schema = VirtualFileEditorParamsSchema;
83
- static resultSchema = VirtualFileEditorResultSchema;
84
- static shortDescription = 'Edits a virtual file using a single insert/delete/replace operation per call.';
85
- static longDescription = `
86
- A utility tool for agentic coding loops. Applies a single edit to a virtual file and
87
- returns the updated file content and a rendered numbered view for the prompt.
88
- The current file content is maintained in the tool's internal state.
89
- Only one edit operation is allowed per call.
90
-
91
- OPERATION TYPES:
92
-
93
- 1. INSERT: Adds new lines BEFORE the specified startLine
94
- Example: { "op": "insert", "startLine": 5, "text": "const x = 1;" }
95
- - This adds the new line BEFORE line 5, pushing existing line 5 to line 6
96
-
97
- 2. DELETE: Removes lines from startLine to endLine (inclusive)
98
- Example: { "op": "delete", "startLine": 3, "endLine": 5 }
99
- - This removes lines 3, 4, and 5
100
- - For single line: { "op": "delete", "startLine": 3 } (endLine defaults to startLine)
101
- - DO NOT include 'text' parameter for delete operations
102
-
103
- 3. REPLACE: Replaces lines from startLine to endLine with new text
104
- Example: { "op": "replace", "startLine": 2, "endLine": 4, "text": "new content\\nline 2" }
105
- - This replaces lines 2, 3, and 4 with the new text
106
- - For single line: { "op": "replace", "startLine": 2, "text": "new content" }
107
- - For multi-line replacement, ALWAYS specify both startLine AND endLine
108
-
109
- CRITICAL RULES:
110
- - Line numbers are 1-based (first line is 1, not 0)
111
- - For multi-line operations, ALWAYS specify both startLine AND endLine
112
- - For delete operations, NEVER include the 'text' parameter
113
- - Use \\n in text to create multiple lines
114
- - Each call can only perform ONE operation
115
- `;
116
- static alias = 'vfe';
117
- constructor(params, context) {
118
- super(params, context);
119
- }
120
- async performAction(context) {
121
- void context; // Context available but not currently used
122
- try {
123
- // Get codeLines from config (injected at runtime)
124
- const codeLines = this.params.config?.codeLines || [];
125
- console.log('[VirtualFileEditorTool] PARAMS DEBUG:', {
126
- 'this.params.edit': this.params.edit,
127
- 'this.params.config': this.params.config
128
- ? {
129
- hasCodeLines: !!this.params.config.codeLines,
130
- codeLinesLength: this.params.config.codeLines
131
- ?.length,
132
- isArray: Array.isArray(this.params.config.codeLines),
133
- }
134
- : 'NO CONFIG',
135
- });
136
- console.log('[VirtualFileEditorTool] INPUT:', {
137
- operation: this.params.edit.op,
138
- startLine: this.params.edit.startLine,
139
- endLine: this.params.edit.endLine,
140
- inputLines: codeLines.length,
141
- });
142
- // If no codeLines in config, initialize with empty array
143
- if (codeLines.length === 0) {
144
- console.log('[VirtualFileEditorTool] No existing codeLines in config, starting with empty file');
145
- }
146
- const updated = applyEdit(codeLines, this.params.edit);
147
- console.log('[VirtualFileEditorTool] OUTPUT:', {
148
- outputLines: updated.length,
149
- changed: updated.length !== codeLines.length,
150
- });
151
- // Return the updated file - the workflow's afterToolCall will update the shared state
152
- return {
153
- updatedCodeLines: updated,
154
- success: true,
155
- error: '',
156
- };
157
- }
158
- catch (e) {
159
- // Fallback to empty file on error
160
- const fallbackCodeLines = [];
161
- return {
162
- updatedCodeLines: fallbackCodeLines,
163
- success: false,
164
- error: e instanceof Error ? e.message : 'Unknown error',
165
- };
166
- }
167
- }
168
- }
169
- //# sourceMappingURL=virtual-file-editor.tool.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"virtual-file-editor.tool.js","sourceRoot":"","sources":["../../../src/bubbles/tool-bubble/virtual-file-editor.tool.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAE9D,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9B,EAAE,EAAE,CAAC;SACF,IAAI,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;SACrC,QAAQ,CACP,iPAAiP,CAClP;IACH,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,GAAG,EAAE;SACL,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,CACP,2HAA2H,CAC5H;IACH,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,GAAG,EAAE;SACL,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,EAAE;SACV,QAAQ,CACP,4IAA4I,CAC7I;IACH,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,iIAAiI,CAClI;CACJ,CAAC,CAAC;AAEH,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,IAAI,EAAE,cAAc,CAAC,QAAQ,CAC3B,mYAAmY,CACpY;IACD,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC1E,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE;CACr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CAAC;YAEH,yDAAyD;YACzD,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBAC3B,OAAO,CAAC,GAAG,CACT,mFAAmF,CACpF,CAAC;YACJ,CAAC;YACD,MAAM,OAAO,GAAG,SAAS,CAAC,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;YAEvD,OAAO,CAAC,GAAG,CAAC,iCAAiC,EAAE;gBAC7C,WAAW,EAAE,OAAO,CAAC,MAAM;gBAC3B,OAAO,EAAE,OAAO,CAAC,MAAM,KAAK,SAAS,CAAC,MAAM;aAC7C,CAAC,CAAC;YAEH,sFAAsF;YACtF,OAAO;gBACL,gBAAgB,EAAE,OAAO;gBACzB,OAAO,EAAE,IAAI;gBACb,KAAK,EAAE,EAAE;aACV,CAAC;QACJ,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,kCAAkC;YAClC,MAAM,iBAAiB,GAAa,EAAE,CAAC;YACvC,OAAO;gBACL,gBAAgB,EAAE,iBAAiB;gBACnC,OAAO,EAAE,KAAK;gBACd,KAAK,EAAE,CAAC,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe;aACxD,CAAC;QACJ,CAAC;IACH,CAAC"}
@@ -1,97 +0,0 @@
1
- /**
2
- * BUBBLSCRIPT GENERATOR WORKFLOW (no streaming)
3
- *
4
- * Builds BubbleFlow code via an iterative loop:
5
- * 1) Requirement Agent gates the request
6
- * 2) Coding Agent proposes file edits (insert/delete/replace) using tools:
7
- * - list-bubbles-tool (discover)
8
- * - get-bubble-details-tool (inspect)
9
- * 3) Validation runs as a separate tool outside the agent each iteration
10
- * 4) Summarize Agent outputs a short usage summary on success
11
- *
12
- * The coding state is maintained as an array of lines (codeLines: string[]).
13
- * Each iteration re-creates the agent with an updated system prompt containing
14
- * the virtual file view (with line numbers) and any validation errors.
15
- */
16
- import { z } from 'zod';
17
- import { WorkflowBubble } from '../../types/workflow-bubble-class.js';
18
- import type { BubbleContext } from '../../types/bubble.js';
19
- import { CredentialType } from '@nodex/shared-schemas';
20
- declare const BubblscriptGeneratorParamsSchema: z.ZodObject<{
21
- prompt: z.ZodString;
22
- credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
23
- }, "strip", z.ZodTypeAny, {
24
- prompt: string;
25
- credentials?: Partial<Record<CredentialType, string>> | undefined;
26
- }, {
27
- prompt: string;
28
- credentials?: Partial<Record<CredentialType, string>> | undefined;
29
- }>;
30
- declare const BubblscriptGeneratorResultSchema: z.ZodObject<{
31
- generatedCode: z.ZodString;
32
- isValid: z.ZodBoolean;
33
- success: z.ZodBoolean;
34
- error: z.ZodString;
35
- toolCalls: z.ZodDefault<z.ZodArray<z.ZodAny, "many">>;
36
- summary: z.ZodDefault<z.ZodString>;
37
- }, "strip", z.ZodTypeAny, {
38
- toolCalls: any[];
39
- error: string;
40
- success: boolean;
41
- summary: string;
42
- generatedCode: string;
43
- isValid: boolean;
44
- }, {
45
- error: string;
46
- success: boolean;
47
- generatedCode: string;
48
- isValid: boolean;
49
- toolCalls?: any[] | undefined;
50
- summary?: string | undefined;
51
- }>;
52
- type BubblscriptGeneratorParams = z.output<typeof BubblscriptGeneratorParamsSchema>;
53
- type BubblscriptGeneratorResult = z.output<typeof BubblscriptGeneratorResultSchema>;
54
- export declare class BubblscriptGenerateorWorkflow extends WorkflowBubble<BubblscriptGeneratorParams, BubblscriptGeneratorResult> {
55
- static readonly type: "workflow";
56
- static readonly bubbleName = "bubblscript-generateor";
57
- static readonly schema: z.ZodObject<{
58
- prompt: z.ZodString;
59
- credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
60
- }, "strip", z.ZodTypeAny, {
61
- prompt: string;
62
- credentials?: Partial<Record<CredentialType, string>> | undefined;
63
- }, {
64
- prompt: string;
65
- credentials?: Partial<Record<CredentialType, string>> | undefined;
66
- }>;
67
- static readonly resultSchema: z.ZodObject<{
68
- generatedCode: z.ZodString;
69
- isValid: z.ZodBoolean;
70
- success: z.ZodBoolean;
71
- error: z.ZodString;
72
- toolCalls: z.ZodDefault<z.ZodArray<z.ZodAny, "many">>;
73
- summary: z.ZodDefault<z.ZodString>;
74
- }, "strip", z.ZodTypeAny, {
75
- toolCalls: any[];
76
- error: string;
77
- success: boolean;
78
- summary: string;
79
- generatedCode: string;
80
- isValid: boolean;
81
- }, {
82
- error: string;
83
- success: boolean;
84
- generatedCode: string;
85
- isValid: boolean;
86
- toolCalls?: any[] | undefined;
87
- summary?: string | undefined;
88
- }>;
89
- static readonly shortDescription = "Generate BubbleFlow code using a virtual-file edit loop with validation.";
90
- static readonly longDescription = "\n A highly efficient BubbleFlow generator that follows a strict agent graph:\n Requirement \u2192 Coding (edits) \u21BA Validation \u2192 Summarize.\n The Coding Agent operates on a virtual file via line-based edits and can only use\n discovery/inspection tools (list-bubbles-tool, get-bubble-details-tool). Validation is separate.\n ";
91
- static readonly alias = "bubblscript-gen";
92
- private factory;
93
- constructor(params: z.input<typeof BubblscriptGeneratorParamsSchema>, context?: BubbleContext);
94
- protected performAction(context?: BubbleContext): Promise<BubblscriptGeneratorResult>;
95
- }
96
- export {};
97
- //# sourceMappingURL=bubblscript-generateor.workflow.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bubblscript-generateor.workflow.d.ts","sourceRoot":"","sources":["../../../src/bubbles/workflow-bubble/bubblscript-generateor.workflow.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAQvD,QAAA,MAAM,gCAAgC;;;;;;;;;EAGpC,CAAC;AAGH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