@bubblelab/shared-schemas 0.1.11 → 0.1.12
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/dist/agent-memory.d.ts +4 -4
- package/dist/bubble-definition-schema.d.ts +38 -38
- package/dist/bubble-definition-schema.d.ts.map +1 -1
- package/dist/bubble-definition-schema.js +2 -0
- package/dist/bubble-definition-schema.js.map +1 -1
- package/dist/bubbleflow-execution-schema.d.ts +102 -66
- package/dist/bubbleflow-execution-schema.d.ts.map +1 -1
- package/dist/bubbleflow-execution-schema.js +10 -4
- package/dist/bubbleflow-execution-schema.js.map +1 -1
- package/dist/bubbleflow-generation-prompts.d.ts +3 -20
- package/dist/bubbleflow-generation-prompts.d.ts.map +1 -1
- package/dist/bubbleflow-generation-prompts.js +3 -412
- package/dist/bubbleflow-generation-prompts.js.map +1 -1
- package/dist/bubbleflow-schema.d.ts +162 -162
- package/dist/coffee.d.ts +145 -145
- package/dist/coffee.d.ts.map +1 -1
- package/dist/coffee.js +3 -4
- package/dist/coffee.js.map +1 -1
- package/dist/credential-schema.d.ts +169 -14
- package/dist/credential-schema.d.ts.map +1 -1
- package/dist/credential-schema.js +372 -1
- package/dist/credential-schema.js.map +1 -1
- package/dist/generate-bubbleflow-schema.d.ts +127 -127
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/milk-tea.d.ts +12 -12
- package/dist/oauth-schema.d.ts +4 -4
- package/dist/pearl.d.ts +32 -32
- package/dist/rice.d.ts +100 -0
- package/dist/rice.d.ts.map +1 -0
- package/dist/rice.js +65 -0
- package/dist/rice.js.map +1 -0
- package/dist/streaming-events.d.ts +9 -1
- package/dist/streaming-events.d.ts.map +1 -1
- package/dist/types.d.ts +4 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +4 -0
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export * from './api-schema.js';
|
|
|
16
16
|
export * from './milk-tea.js';
|
|
17
17
|
export * from './pearl.js';
|
|
18
18
|
export * from './coffee.js';
|
|
19
|
+
export * from './rice.js';
|
|
19
20
|
export * from './ai-models.js';
|
|
20
21
|
export * from './cron-utils.js';
|
|
21
22
|
export * from './trigger.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,iBAAiB,CAAC;AAChC,cAAc,iCAAiC,CAAC;AAChD,cAAc,wBAAwB,CAAC;AACvC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC;AACjD,cAAc,iCAAiC,CAAC;AAChD,cAAc,qBAAqB,CAAC;AACpC,cAAc,iCAAiC,CAAC;AAChD,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,oCAAoC,CAAC;AACnD,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,iBAAiB,CAAC;AAChC,cAAc,iCAAiC,CAAC;AAChD,cAAc,wBAAwB,CAAC;AACvC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC;AACjD,cAAc,iCAAiC,CAAC;AAChD,cAAc,qBAAqB,CAAC;AACpC,cAAc,iCAAiC,CAAC;AAChD,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,oCAAoC,CAAC;AACnD,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -18,6 +18,7 @@ export * from './api-schema.js';
|
|
|
18
18
|
export * from './milk-tea.js';
|
|
19
19
|
export * from './pearl.js';
|
|
20
20
|
export * from './coffee.js';
|
|
21
|
+
export * from './rice.js';
|
|
21
22
|
export * from './ai-models.js';
|
|
22
23
|
export * from './cron-utils.js';
|
|
23
24
|
export * from './trigger.js';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,6CAA6C;AAC7C,cAAc,iBAAiB,CAAC;AAChC,cAAc,iCAAiC,CAAC;AAChD,cAAc,wBAAwB,CAAC;AACvC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC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cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC"}
|
package/dist/milk-tea.d.ts
CHANGED
|
@@ -20,15 +20,15 @@ export declare const MilkTeaRequestSchema: z.ZodObject<{
|
|
|
20
20
|
toolCallId: z.ZodOptional<z.ZodString>;
|
|
21
21
|
name: z.ZodOptional<z.ZodString>;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
|
-
role: "user" | "assistant" | "tool";
|
|
24
23
|
content: string;
|
|
25
|
-
|
|
24
|
+
role: "user" | "assistant" | "tool";
|
|
26
25
|
name?: string | undefined;
|
|
26
|
+
toolCallId?: string | undefined;
|
|
27
27
|
}, {
|
|
28
|
-
role: "user" | "assistant" | "tool";
|
|
29
28
|
content: string;
|
|
30
|
-
|
|
29
|
+
role: "user" | "assistant" | "tool";
|
|
31
30
|
name?: string | undefined;
|
|
31
|
+
toolCallId?: string | undefined;
|
|
32
32
|
}>, "many">>>;
|
|
33
33
|
model: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-5.1", "openai/gpt-5.2", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "google/gemini-3-pro-preview", "google/gemini-3-pro-image-preview", "google/gemini-3-flash-preview", "anthropic/claude-sonnet-4-5", "anthropic/claude-opus-4-5", "anthropic/claude-haiku-4-5", "openrouter/x-ai/grok-code-fast-1", "openrouter/z-ai/glm-4.6", "openrouter/anthropic/claude-sonnet-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/x-ai/grok-4.1-fast", "openrouter/openai/gpt-oss-120b", "openrouter/deepseek/deepseek-chat-v3.1"]>>;
|
|
34
34
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -39,10 +39,10 @@ export declare const MilkTeaRequestSchema: z.ZodObject<{
|
|
|
39
39
|
availableCredentials: string[];
|
|
40
40
|
userName: string;
|
|
41
41
|
conversationHistory: {
|
|
42
|
-
role: "user" | "assistant" | "tool";
|
|
43
42
|
content: string;
|
|
44
|
-
|
|
43
|
+
role: "user" | "assistant" | "tool";
|
|
45
44
|
name?: string | undefined;
|
|
45
|
+
toolCallId?: string | undefined;
|
|
46
46
|
}[];
|
|
47
47
|
currentCode?: string | undefined;
|
|
48
48
|
insertLocation?: string | undefined;
|
|
@@ -56,10 +56,10 @@ export declare const MilkTeaRequestSchema: z.ZodObject<{
|
|
|
56
56
|
availableCredentials?: string[] | undefined;
|
|
57
57
|
insertLocation?: string | undefined;
|
|
58
58
|
conversationHistory?: {
|
|
59
|
-
role: "user" | "assistant" | "tool";
|
|
60
59
|
content: string;
|
|
61
|
-
|
|
60
|
+
role: "user" | "assistant" | "tool";
|
|
62
61
|
name?: string | undefined;
|
|
62
|
+
toolCallId?: string | undefined;
|
|
63
63
|
}[] | undefined;
|
|
64
64
|
}>;
|
|
65
65
|
/**
|
|
@@ -72,14 +72,14 @@ export declare const MilkTeaResponseSchema: z.ZodObject<{
|
|
|
72
72
|
success: z.ZodBoolean;
|
|
73
73
|
error: z.ZodOptional<z.ZodString>;
|
|
74
74
|
}, "strip", z.ZodTypeAny, {
|
|
75
|
-
message: string;
|
|
76
75
|
type: "code" | "question" | "reject";
|
|
76
|
+
message: string;
|
|
77
77
|
success: boolean;
|
|
78
78
|
error?: string | undefined;
|
|
79
79
|
snippet?: string | undefined;
|
|
80
80
|
}, {
|
|
81
|
-
message: string;
|
|
82
81
|
type: "code" | "question" | "reject";
|
|
82
|
+
message: string;
|
|
83
83
|
success: boolean;
|
|
84
84
|
error?: string | undefined;
|
|
85
85
|
snippet?: string | undefined;
|
|
@@ -92,12 +92,12 @@ export declare const MilkTeaAgentOutputSchema: z.ZodObject<{
|
|
|
92
92
|
message: z.ZodString;
|
|
93
93
|
snippet: z.ZodOptional<z.ZodString>;
|
|
94
94
|
}, "strip", z.ZodTypeAny, {
|
|
95
|
-
message: string;
|
|
96
95
|
type: "code" | "question" | "reject";
|
|
96
|
+
message: string;
|
|
97
97
|
snippet?: string | undefined;
|
|
98
98
|
}, {
|
|
99
|
-
message: string;
|
|
100
99
|
type: "code" | "question" | "reject";
|
|
100
|
+
message: string;
|
|
101
101
|
snippet?: string | undefined;
|
|
102
102
|
}>;
|
|
103
103
|
export type MilkTeaRequest = z.infer<typeof MilkTeaRequestSchema>;
|
package/dist/oauth-schema.d.ts
CHANGED
|
@@ -17,11 +17,11 @@ export declare const oauthInitiateResponseSchema: z.ZodObject<{
|
|
|
17
17
|
authUrl: z.ZodString;
|
|
18
18
|
state: z.ZodString;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
|
-
authUrl: string;
|
|
21
20
|
state: string;
|
|
22
|
-
}, {
|
|
23
21
|
authUrl: string;
|
|
22
|
+
}, {
|
|
24
23
|
state: string;
|
|
24
|
+
authUrl: string;
|
|
25
25
|
}>;
|
|
26
26
|
export declare const oauthCallbackRequestSchema: z.ZodObject<{
|
|
27
27
|
code: z.ZodString;
|
|
@@ -29,13 +29,13 @@ export declare const oauthCallbackRequestSchema: z.ZodObject<{
|
|
|
29
29
|
name: z.ZodString;
|
|
30
30
|
description: z.ZodOptional<z.ZodString>;
|
|
31
31
|
}, "strip", z.ZodTypeAny, {
|
|
32
|
-
name: string;
|
|
33
32
|
code: string;
|
|
33
|
+
name: string;
|
|
34
34
|
state: string;
|
|
35
35
|
description?: string | undefined;
|
|
36
36
|
}, {
|
|
37
|
-
name: string;
|
|
38
37
|
code: string;
|
|
38
|
+
name: string;
|
|
39
39
|
state: string;
|
|
40
40
|
description?: string | undefined;
|
|
41
41
|
}>;
|
package/dist/pearl.d.ts
CHANGED
|
@@ -17,15 +17,15 @@ export declare const PearlRequestSchema: z.ZodObject<{
|
|
|
17
17
|
toolCallId: z.ZodOptional<z.ZodString>;
|
|
18
18
|
name: z.ZodOptional<z.ZodString>;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
|
-
role: "user" | "assistant" | "tool";
|
|
21
20
|
content: string;
|
|
22
|
-
|
|
21
|
+
role: "user" | "assistant" | "tool";
|
|
23
22
|
name?: string | undefined;
|
|
23
|
+
toolCallId?: string | undefined;
|
|
24
24
|
}, {
|
|
25
|
-
role: "user" | "assistant" | "tool";
|
|
26
25
|
content: string;
|
|
27
|
-
|
|
26
|
+
role: "user" | "assistant" | "tool";
|
|
28
27
|
name?: string | undefined;
|
|
28
|
+
toolCallId?: string | undefined;
|
|
29
29
|
}>, "many">>>;
|
|
30
30
|
model: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-5.1", "openai/gpt-5.2", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "google/gemini-3-pro-preview", "google/gemini-3-pro-image-preview", "google/gemini-3-flash-preview", "anthropic/claude-sonnet-4-5", "anthropic/claude-opus-4-5", "anthropic/claude-haiku-4-5", "openrouter/x-ai/grok-code-fast-1", "openrouter/z-ai/glm-4.6", "openrouter/anthropic/claude-sonnet-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/x-ai/grok-4.1-fast", "openrouter/openai/gpt-oss-120b", "openrouter/deepseek/deepseek-chat-v3.1"]>>;
|
|
31
31
|
additionalContext: z.ZodOptional<z.ZodString>;
|
|
@@ -34,12 +34,12 @@ export declare const PearlRequestSchema: z.ZodObject<{
|
|
|
34
34
|
content: z.ZodString;
|
|
35
35
|
fileType: z.ZodEnum<["image", "text"]>;
|
|
36
36
|
}, "strip", z.ZodTypeAny, {
|
|
37
|
-
content: string;
|
|
38
37
|
name: string;
|
|
38
|
+
content: string;
|
|
39
39
|
fileType: "text" | "image";
|
|
40
40
|
}, {
|
|
41
|
-
content: string;
|
|
42
41
|
name: string;
|
|
42
|
+
content: string;
|
|
43
43
|
fileType: "text" | "image";
|
|
44
44
|
}>, "many">>>;
|
|
45
45
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -47,15 +47,15 @@ export declare const PearlRequestSchema: z.ZodObject<{
|
|
|
47
47
|
userRequest: string;
|
|
48
48
|
userName: string;
|
|
49
49
|
conversationHistory: {
|
|
50
|
-
role: "user" | "assistant" | "tool";
|
|
51
50
|
content: string;
|
|
52
|
-
|
|
51
|
+
role: "user" | "assistant" | "tool";
|
|
53
52
|
name?: string | undefined;
|
|
53
|
+
toolCallId?: string | undefined;
|
|
54
54
|
}[];
|
|
55
55
|
availableVariables: any[];
|
|
56
56
|
uploadedFiles: {
|
|
57
|
-
content: string;
|
|
58
57
|
name: string;
|
|
58
|
+
content: string;
|
|
59
59
|
fileType: "text" | "image";
|
|
60
60
|
}[];
|
|
61
61
|
currentCode?: string | undefined;
|
|
@@ -67,15 +67,15 @@ export declare const PearlRequestSchema: z.ZodObject<{
|
|
|
67
67
|
model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1" | undefined;
|
|
68
68
|
currentCode?: string | undefined;
|
|
69
69
|
conversationHistory?: {
|
|
70
|
-
role: "user" | "assistant" | "tool";
|
|
71
70
|
content: string;
|
|
72
|
-
|
|
71
|
+
role: "user" | "assistant" | "tool";
|
|
73
72
|
name?: string | undefined;
|
|
73
|
+
toolCallId?: string | undefined;
|
|
74
74
|
}[] | undefined;
|
|
75
75
|
additionalContext?: string | undefined;
|
|
76
76
|
uploadedFiles?: {
|
|
77
|
-
content: string;
|
|
78
77
|
name: string;
|
|
78
|
+
content: string;
|
|
79
79
|
fileType: "text" | "image";
|
|
80
80
|
}[] | undefined;
|
|
81
81
|
}>;
|
|
@@ -113,9 +113,9 @@ export declare const PearlResponseSchema: z.ZodObject<{
|
|
|
113
113
|
type: z.ZodNativeEnum<typeof import("./bubble-definition-schema.js").BubbleParameterType>;
|
|
114
114
|
source: z.ZodOptional<z.ZodEnum<["object-property", "first-arg", "spread"]>>;
|
|
115
115
|
}, "strip", z.ZodTypeAny, {
|
|
116
|
-
name: string;
|
|
117
|
-
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
118
116
|
type: import("./bubble-definition-schema.js").BubbleParameterType;
|
|
117
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
118
|
+
name: string;
|
|
119
119
|
location?: {
|
|
120
120
|
startLine: number;
|
|
121
121
|
startCol: number;
|
|
@@ -125,9 +125,9 @@ export declare const PearlResponseSchema: z.ZodObject<{
|
|
|
125
125
|
variableId?: number | undefined;
|
|
126
126
|
source?: "object-property" | "first-arg" | "spread" | undefined;
|
|
127
127
|
}, {
|
|
128
|
-
name: string;
|
|
129
|
-
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
130
128
|
type: import("./bubble-definition-schema.js").BubbleParameterType;
|
|
129
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
130
|
+
name: string;
|
|
131
131
|
location?: {
|
|
132
132
|
startLine: number;
|
|
133
133
|
startCol: number;
|
|
@@ -173,12 +173,12 @@ export declare const PearlResponseSchema: z.ZodObject<{
|
|
|
173
173
|
};
|
|
174
174
|
variableId: number;
|
|
175
175
|
variableName: string;
|
|
176
|
-
nodeType: "
|
|
176
|
+
nodeType: "unknown" | "tool" | "service" | "workflow";
|
|
177
177
|
className: string;
|
|
178
178
|
parameters: {
|
|
179
|
-
name: string;
|
|
180
|
-
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
181
179
|
type: import("./bubble-definition-schema.js").BubbleParameterType;
|
|
180
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
181
|
+
name: string;
|
|
182
182
|
location?: {
|
|
183
183
|
startLine: number;
|
|
184
184
|
startCol: number;
|
|
@@ -207,12 +207,12 @@ export declare const PearlResponseSchema: z.ZodObject<{
|
|
|
207
207
|
};
|
|
208
208
|
variableId: number;
|
|
209
209
|
variableName: string;
|
|
210
|
-
nodeType: "
|
|
210
|
+
nodeType: "unknown" | "tool" | "service" | "workflow";
|
|
211
211
|
className: string;
|
|
212
212
|
parameters: {
|
|
213
|
-
name: string;
|
|
214
|
-
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
215
213
|
type: import("./bubble-definition-schema.js").BubbleParameterType;
|
|
214
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
215
|
+
name: string;
|
|
216
216
|
location?: {
|
|
217
217
|
startLine: number;
|
|
218
218
|
startCol: number;
|
|
@@ -238,8 +238,8 @@ export declare const PearlResponseSchema: z.ZodObject<{
|
|
|
238
238
|
success: z.ZodBoolean;
|
|
239
239
|
error: z.ZodOptional<z.ZodString>;
|
|
240
240
|
}, "strip", z.ZodTypeAny, {
|
|
241
|
-
message: string;
|
|
242
241
|
type: "code" | "question" | "answer" | "reject";
|
|
242
|
+
message: string;
|
|
243
243
|
success: boolean;
|
|
244
244
|
error?: string | undefined;
|
|
245
245
|
inputSchema?: Record<string, unknown> | undefined;
|
|
@@ -253,12 +253,12 @@ export declare const PearlResponseSchema: z.ZodObject<{
|
|
|
253
253
|
};
|
|
254
254
|
variableId: number;
|
|
255
255
|
variableName: string;
|
|
256
|
-
nodeType: "
|
|
256
|
+
nodeType: "unknown" | "tool" | "service" | "workflow";
|
|
257
257
|
className: string;
|
|
258
258
|
parameters: {
|
|
259
|
-
name: string;
|
|
260
|
-
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
261
259
|
type: import("./bubble-definition-schema.js").BubbleParameterType;
|
|
260
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
261
|
+
name: string;
|
|
262
262
|
location?: {
|
|
263
263
|
startLine: number;
|
|
264
264
|
startCol: number;
|
|
@@ -281,8 +281,8 @@ export declare const PearlResponseSchema: z.ZodObject<{
|
|
|
281
281
|
}> | undefined;
|
|
282
282
|
snippet?: string | undefined;
|
|
283
283
|
}, {
|
|
284
|
-
message: string;
|
|
285
284
|
type: "code" | "question" | "answer" | "reject";
|
|
285
|
+
message: string;
|
|
286
286
|
success: boolean;
|
|
287
287
|
error?: string | undefined;
|
|
288
288
|
inputSchema?: Record<string, unknown> | undefined;
|
|
@@ -296,12 +296,12 @@ export declare const PearlResponseSchema: z.ZodObject<{
|
|
|
296
296
|
};
|
|
297
297
|
variableId: number;
|
|
298
298
|
variableName: string;
|
|
299
|
-
nodeType: "
|
|
299
|
+
nodeType: "unknown" | "tool" | "service" | "workflow";
|
|
300
300
|
className: string;
|
|
301
301
|
parameters: {
|
|
302
|
-
name: string;
|
|
303
|
-
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
304
302
|
type: import("./bubble-definition-schema.js").BubbleParameterType;
|
|
303
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
304
|
+
name: string;
|
|
305
305
|
location?: {
|
|
306
306
|
startLine: number;
|
|
307
307
|
startCol: number;
|
|
@@ -332,12 +332,12 @@ export declare const PearlAgentOutputSchema: z.ZodObject<{
|
|
|
332
332
|
message: z.ZodString;
|
|
333
333
|
snippet: z.ZodOptional<z.ZodString>;
|
|
334
334
|
}, "strip", z.ZodTypeAny, {
|
|
335
|
-
message: string;
|
|
336
335
|
type: "code" | "text" | "question" | "answer" | "reject";
|
|
336
|
+
message: string;
|
|
337
337
|
snippet?: string | undefined;
|
|
338
338
|
}, {
|
|
339
|
-
message: string;
|
|
340
339
|
type: "code" | "text" | "question" | "answer" | "reject";
|
|
340
|
+
message: string;
|
|
341
341
|
snippet?: string | undefined;
|
|
342
342
|
}>;
|
|
343
343
|
export type PearlRequest = z.infer<typeof PearlRequestSchema>;
|
package/dist/rice.d.ts
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type AvailableModel } from './ai-models.js';
|
|
3
|
+
export declare const RICE_DEFAULT_MODEL: AvailableModel;
|
|
4
|
+
/**
|
|
5
|
+
* Issue type categories for Rice evaluation
|
|
6
|
+
* - setup: Configuration/credential issues (user can fix in settings, not workflow code)
|
|
7
|
+
* - workflow: Logic/code issues in the workflow itself (fixable with Pearl)
|
|
8
|
+
* - input: Issues with input data (user needs to provide different input)
|
|
9
|
+
* - null: No issues (working=true)
|
|
10
|
+
*/
|
|
11
|
+
export declare const RiceIssueTypeSchema: z.ZodNullable<z.ZodEnum<["setup", "workflow", "input"]>>;
|
|
12
|
+
export type RiceIssueType = z.infer<typeof RiceIssueTypeSchema>;
|
|
13
|
+
/**
|
|
14
|
+
* Evaluation result schema from Rice agent
|
|
15
|
+
* This represents the AI's assessment of workflow execution quality
|
|
16
|
+
*/
|
|
17
|
+
export declare const RiceEvaluationResultSchema: z.ZodObject<{
|
|
18
|
+
working: z.ZodBoolean;
|
|
19
|
+
issueType: z.ZodNullable<z.ZodEnum<["setup", "workflow", "input"]>>;
|
|
20
|
+
summary: z.ZodString;
|
|
21
|
+
rating: z.ZodNumber;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
working: boolean;
|
|
24
|
+
issueType: "setup" | "workflow" | "input" | null;
|
|
25
|
+
summary: string;
|
|
26
|
+
rating: number;
|
|
27
|
+
}, {
|
|
28
|
+
working: boolean;
|
|
29
|
+
issueType: "setup" | "workflow" | "input" | null;
|
|
30
|
+
summary: string;
|
|
31
|
+
rating: number;
|
|
32
|
+
}>;
|
|
33
|
+
/**
|
|
34
|
+
* Request schema for Rice evaluation agent
|
|
35
|
+
* Rice evaluates workflow execution quality based on logs and code
|
|
36
|
+
*/
|
|
37
|
+
export declare const RiceRequestSchema: z.ZodObject<{
|
|
38
|
+
executionLogs: z.ZodArray<z.ZodUnknown, "many">;
|
|
39
|
+
workflowCode: z.ZodString;
|
|
40
|
+
executionId: z.ZodNumber;
|
|
41
|
+
bubbleFlowId: z.ZodNumber;
|
|
42
|
+
model: z.ZodDefault<z.ZodOptional<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-5.1", "openai/gpt-5.2", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "google/gemini-3-pro-preview", "google/gemini-3-pro-image-preview", "google/gemini-3-flash-preview", "anthropic/claude-sonnet-4-5", "anthropic/claude-opus-4-5", "anthropic/claude-haiku-4-5", "openrouter/x-ai/grok-code-fast-1", "openrouter/z-ai/glm-4.6", "openrouter/anthropic/claude-sonnet-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/x-ai/grok-4.1-fast", "openrouter/openai/gpt-oss-120b", "openrouter/deepseek/deepseek-chat-v3.1"]>>>;
|
|
43
|
+
}, "strip", z.ZodTypeAny, {
|
|
44
|
+
executionLogs: unknown[];
|
|
45
|
+
workflowCode: string;
|
|
46
|
+
executionId: number;
|
|
47
|
+
bubbleFlowId: number;
|
|
48
|
+
model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1";
|
|
49
|
+
}, {
|
|
50
|
+
executionLogs: unknown[];
|
|
51
|
+
workflowCode: string;
|
|
52
|
+
executionId: number;
|
|
53
|
+
bubbleFlowId: number;
|
|
54
|
+
model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1" | undefined;
|
|
55
|
+
}>;
|
|
56
|
+
/**
|
|
57
|
+
* Response schema for Rice evaluation agent
|
|
58
|
+
*/
|
|
59
|
+
export declare const RiceResponseSchema: z.ZodObject<{
|
|
60
|
+
success: z.ZodBoolean;
|
|
61
|
+
evaluation: z.ZodOptional<z.ZodObject<{
|
|
62
|
+
working: z.ZodBoolean;
|
|
63
|
+
issueType: z.ZodNullable<z.ZodEnum<["setup", "workflow", "input"]>>;
|
|
64
|
+
summary: z.ZodString;
|
|
65
|
+
rating: z.ZodNumber;
|
|
66
|
+
}, "strip", z.ZodTypeAny, {
|
|
67
|
+
working: boolean;
|
|
68
|
+
issueType: "setup" | "workflow" | "input" | null;
|
|
69
|
+
summary: string;
|
|
70
|
+
rating: number;
|
|
71
|
+
}, {
|
|
72
|
+
working: boolean;
|
|
73
|
+
issueType: "setup" | "workflow" | "input" | null;
|
|
74
|
+
summary: string;
|
|
75
|
+
rating: number;
|
|
76
|
+
}>>;
|
|
77
|
+
error: z.ZodOptional<z.ZodString>;
|
|
78
|
+
}, "strip", z.ZodTypeAny, {
|
|
79
|
+
success: boolean;
|
|
80
|
+
evaluation?: {
|
|
81
|
+
working: boolean;
|
|
82
|
+
issueType: "setup" | "workflow" | "input" | null;
|
|
83
|
+
summary: string;
|
|
84
|
+
rating: number;
|
|
85
|
+
} | undefined;
|
|
86
|
+
error?: string | undefined;
|
|
87
|
+
}, {
|
|
88
|
+
success: boolean;
|
|
89
|
+
evaluation?: {
|
|
90
|
+
working: boolean;
|
|
91
|
+
issueType: "setup" | "workflow" | "input" | null;
|
|
92
|
+
summary: string;
|
|
93
|
+
rating: number;
|
|
94
|
+
} | undefined;
|
|
95
|
+
error?: string | undefined;
|
|
96
|
+
}>;
|
|
97
|
+
export type RiceEvaluationResult = z.infer<typeof RiceEvaluationResultSchema>;
|
|
98
|
+
export type RiceRequest = z.input<typeof RiceRequestSchema>;
|
|
99
|
+
export type RiceResponse = z.infer<typeof RiceResponseSchema>;
|
|
100
|
+
//# sourceMappingURL=rice.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rice.d.ts","sourceRoot":"","sources":["../src/rice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAmB,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAItE,eAAO,MAAM,kBAAkB,EAAE,cAAwC,CAAC;AAE1E;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,0DAEnB,CAAC;AAEd,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE;;;GAGG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;EAyBrC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;EAgB5B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAa7B,CAAC;AAGH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAK9E,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
package/dist/rice.js
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { AvailableModels } from './ai-models.js';
|
|
3
|
+
import { RECOMMENDED_MODELS } from './bubbleflow-generation-prompts.js';
|
|
4
|
+
// Default model for Rice evaluation agent
|
|
5
|
+
export const RICE_DEFAULT_MODEL = RECOMMENDED_MODELS.FAST;
|
|
6
|
+
/**
|
|
7
|
+
* Issue type categories for Rice evaluation
|
|
8
|
+
* - setup: Configuration/credential issues (user can fix in settings, not workflow code)
|
|
9
|
+
* - workflow: Logic/code issues in the workflow itself (fixable with Pearl)
|
|
10
|
+
* - input: Issues with input data (user needs to provide different input)
|
|
11
|
+
* - null: No issues (working=true)
|
|
12
|
+
*/
|
|
13
|
+
export const RiceIssueTypeSchema = z
|
|
14
|
+
.enum(['setup', 'workflow', 'input'])
|
|
15
|
+
.nullable();
|
|
16
|
+
/**
|
|
17
|
+
* Evaluation result schema from Rice agent
|
|
18
|
+
* This represents the AI's assessment of workflow execution quality
|
|
19
|
+
*/
|
|
20
|
+
export const RiceEvaluationResultSchema = z.object({
|
|
21
|
+
working: z
|
|
22
|
+
.boolean()
|
|
23
|
+
.describe('Whether the workflow is functioning correctly (true if no errors and expected behavior)'),
|
|
24
|
+
issueType: RiceIssueTypeSchema.describe('Category of issue: "setup" (config/credentials), "workflow" (code logic), "input" (bad input data), or null if working'),
|
|
25
|
+
summary: z
|
|
26
|
+
.string()
|
|
27
|
+
.describe('Brief summary of the execution. If working: what happened and any external changes made. If not working: description of the issue.'),
|
|
28
|
+
rating: z
|
|
29
|
+
.number()
|
|
30
|
+
.int()
|
|
31
|
+
.min(1)
|
|
32
|
+
.max(10)
|
|
33
|
+
.describe('Quality rating 1-10: 1-3=severe issues, 4-6=partial functionality, 7-8=working with minor issues, 9-10=excellent'),
|
|
34
|
+
});
|
|
35
|
+
/**
|
|
36
|
+
* Request schema for Rice evaluation agent
|
|
37
|
+
* Rice evaluates workflow execution quality based on logs and code
|
|
38
|
+
*/
|
|
39
|
+
export const RiceRequestSchema = z.object({
|
|
40
|
+
executionLogs: z
|
|
41
|
+
.array(z.unknown())
|
|
42
|
+
.describe('StreamingLogEvent[] from execution'),
|
|
43
|
+
workflowCode: z
|
|
44
|
+
.string()
|
|
45
|
+
.describe('The original workflow code that was executed'),
|
|
46
|
+
executionId: z.number().describe('ID of the execution being evaluated'),
|
|
47
|
+
bubbleFlowId: z.number().describe('ID of the BubbleFlow being evaluated'),
|
|
48
|
+
model: AvailableModels.optional()
|
|
49
|
+
.default(RICE_DEFAULT_MODEL)
|
|
50
|
+
.describe('AI model to use for Rice evaluation'),
|
|
51
|
+
});
|
|
52
|
+
/**
|
|
53
|
+
* Response schema for Rice evaluation agent
|
|
54
|
+
*/
|
|
55
|
+
export const RiceResponseSchema = z.object({
|
|
56
|
+
success: z
|
|
57
|
+
.boolean()
|
|
58
|
+
.describe('Whether the evaluation completed successfully'),
|
|
59
|
+
evaluation: RiceEvaluationResultSchema.optional().describe('Evaluation result (only present if success=true)'),
|
|
60
|
+
error: z
|
|
61
|
+
.string()
|
|
62
|
+
.optional()
|
|
63
|
+
.describe('Error message if the evaluation failed'),
|
|
64
|
+
});
|
|
65
|
+
//# sourceMappingURL=rice.js.map
|
package/dist/rice.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":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,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,sCAAsC,CAAC;IAEzE,KAAK,EAAE,eAAe,CAAC,QAAQ,EAAE;SAC9B,OAAO,CAAC,kBAAkB,CAAC;SAC3B,QAAQ,CAAC,qCAAqC,CAAC;CACnD,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,OAAO,EAAE,CAAC;SACP,OAAO,EAAE;SACT,QAAQ,CAAC,+CAA+C,CAAC;IAE5D,UAAU,EAAE,0BAA0B,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACxD,kDAAkD,CACnD;IAED,KAAK,EAAE,CAAC;SACL,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,wCAAwC,CAAC;CACtD,CAAC,CAAC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import type { CoffeeClarificationEvent, CoffeeContextEvent, CoffeePlanEvent, CoffeeRequestExternalContextEvent } from './coffee.js';
|
|
5
5
|
export interface StreamingLogEvent {
|
|
6
|
-
type: 'log_line' | 'bubble_instantiation' | 'bubble_execution' | 'bubble_start' | 'bubble_complete' | 'execution_complete' | 'error' | 'stream_complete' | 'info' | 'warn' | 'debug' | 'bubble_execution_complete' | 'trace' | 'fatal' | 'bubble_parameters_update' | 'tool_call_start' | 'tool_call_complete' | 'function_call_start' | 'function_call_complete';
|
|
6
|
+
type: 'log_line' | 'bubble_instantiation' | 'bubble_execution' | 'bubble_start' | 'bubble_complete' | 'execution_complete' | 'error' | 'stream_complete' | 'info' | 'warn' | 'debug' | 'bubble_execution_complete' | 'trace' | 'fatal' | 'bubble_parameters_update' | 'tool_call_start' | 'tool_call_complete' | 'function_call_start' | 'function_call_complete' | 'start_evaluating' | 'end_evaluating' | 'browser_session_start' | 'browser_session_end';
|
|
7
7
|
timestamp: string;
|
|
8
8
|
lineNumber?: number;
|
|
9
9
|
variableId?: number;
|
|
@@ -35,6 +35,14 @@ export interface StreamingLogEvent {
|
|
|
35
35
|
outputTokens: number;
|
|
36
36
|
totalTokens: number;
|
|
37
37
|
};
|
|
38
|
+
evaluationResult?: {
|
|
39
|
+
working: boolean;
|
|
40
|
+
issueType: 'setup' | 'workflow' | 'input' | null;
|
|
41
|
+
summary: string;
|
|
42
|
+
rating: number;
|
|
43
|
+
};
|
|
44
|
+
browserSessionUrl?: string;
|
|
45
|
+
browserSessionId?: string;
|
|
38
46
|
}
|
|
39
47
|
export type StreamingEvent = {
|
|
40
48
|
type: 'start';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"streaming-events.d.ts","sourceRoot":"","sources":["../src/streaming-events.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EACV,wBAAwB,EACxB,kBAAkB,EAClB,eAAe,EACf,iCAAiC,EAClC,MAAM,aAAa,CAAC;AAErB,MAAM,WAAW,iBAAiB;IAChC,IAAI,EACA,UAAU,GACV,sBAAsB,GACtB,kBAAkB,GAClB,cAAc,GACd,iBAAiB,GACjB,oBAAoB,GACpB,OAAO,GACP,iBAAiB,GACjB,MAAM,GACN,MAAM,GACN,OAAO,GACP,2BAA2B,GAC3B,OAAO,GACP,OAAO,GACP,0BAA0B,GAC1B,iBAAiB,GACjB,oBAAoB,GACpB,qBAAqB,GACrB,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"streaming-events.d.ts","sourceRoot":"","sources":["../src/streaming-events.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EACV,wBAAwB,EACxB,kBAAkB,EAClB,eAAe,EACf,iCAAiC,EAClC,MAAM,aAAa,CAAC;AAErB,MAAM,WAAW,iBAAiB;IAChC,IAAI,EACA,UAAU,GACV,sBAAsB,GACtB,kBAAkB,GAClB,cAAc,GACd,iBAAiB,GACjB,oBAAoB,GACpB,OAAO,GACP,iBAAiB,GACjB,MAAM,GACN,MAAM,GACN,O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EAAE,iBAAiB,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -23,7 +23,9 @@ export declare enum CredentialType {
|
|
|
23
23
|
AGI_API_KEY = "AGI_API_KEY",
|
|
24
24
|
AIRTABLE_CRED = "AIRTABLE_CRED",
|
|
25
25
|
INSFORGE_BASE_URL = "INSFORGE_BASE_URL",
|
|
26
|
-
INSFORGE_API_KEY = "INSFORGE_API_KEY"
|
|
26
|
+
INSFORGE_API_KEY = "INSFORGE_API_KEY",
|
|
27
|
+
CUSTOM_AUTH_KEY = "CUSTOM_AUTH_KEY",
|
|
28
|
+
AMAZON_CRED = "AMAZON_CRED"
|
|
27
29
|
}
|
|
28
|
-
export type BubbleName = 'hello-world' | 'ai-agent' | 'postgresql' | 'slack' | 'resend' | 'http' | 'slack-formatter-agent' | 'database-analyzer' | 'slack-notifier' | 'get-bubble-details-tool' | 'list-bubbles-tool' | 'sql-query-tool' | 'chart-js-tool' | 'web-search-tool' | 'web-scrape-tool' | 'web-crawl-tool' | 'web-extract-tool' | 'research-agent-tool' | 'reddit-scrape-tool' | 'slack-data-assistant' | 'bubbleflow-code-generator' | 'bubbleflow-generator' | 'pdf-form-operations' | 'pdf-ocr-workflow' | 'generate-document-workflow' | 'parse-document-workflow' | 'bubbleflow-validation-tool' | 'code-edit-tool' | 'storage' | 'google-drive' | 'gmail' | 'google-sheets' | 'google-calendar' | 'apify' | 'instagram-tool' | 'linkedin-tool' | 'tiktok-tool' | 'twitter-tool' | 'google-maps-tool' | 'youtube-tool' | 'github' | 'eleven-labs' | 'followupboss' | 'agi-inc' | 'telegram' | 'airtable' | 'notion' | 'firecrawl' | 'insforge-db';
|
|
30
|
+
export type BubbleName = 'hello-world' | 'ai-agent' | 'postgresql' | 'slack' | 'resend' | 'http' | 'slack-formatter-agent' | 'database-analyzer' | 'slack-notifier' | 'get-bubble-details-tool' | 'list-bubbles-tool' | 'sql-query-tool' | 'chart-js-tool' | 'web-search-tool' | 'web-scrape-tool' | 'web-crawl-tool' | 'web-extract-tool' | 'research-agent-tool' | 'reddit-scrape-tool' | 'slack-data-assistant' | 'bubbleflow-code-generator' | 'bubbleflow-generator' | 'pdf-form-operations' | 'pdf-ocr-workflow' | 'generate-document-workflow' | 'parse-document-workflow' | 'bubbleflow-validation-tool' | 'code-edit-tool' | 'storage' | 'google-drive' | 'gmail' | 'google-sheets' | 'google-calendar' | 'apify' | 'instagram-tool' | 'linkedin-tool' | 'tiktok-tool' | 'twitter-tool' | 'google-maps-tool' | 'youtube-tool' | 'github' | 'eleven-labs' | 'followupboss' | 'agi-inc' | 'telegram' | 'airtable' | 'notion' | 'firecrawl' | 'insforge-db' | 'browserbase' | 'amazon-shopping-tool';
|
|
29
31
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAEA,oBAAY,cAAc;IAExB,WAAW,gBAAgB;IAC3B,kBAAkB,uBAAuB;IACzC,cAAc,mBAAmB;IACjC,eAAe,oBAAoB;IAEnC,iBAAiB,sBAAsB;IAEvC,aAAa,kBAAkB;IAE/B,UAAU,eAAe;IACzB,kBAAkB,uBAAuB;IAEzC,WAAW,gBAAgB;IAE3B,wBAAwB,6BAA6B;IACrD,wBAAwB,6BAA6B;IACrD,wBAAwB,6BAA6B;IAErD,UAAU,eAAe;IAGzB,kBAAkB,uBAAuB;IAGzC,iBAAiB,sBAAsB;IACvC,UAAU,eAAe;IACzB,kBAAkB,uBAAuB;IACzC,oBAAoB,yBAAyB;IAC7C,QAAQ,aAAa;IACrB,kBAAkB,uBAAuB;IAGzC,YAAY,iBAAiB;IAG7B,WAAW,gBAAgB;IAG3B,aAAa,kBAAkB;IAG/B,iBAAiB,sBAAsB;IACvC,gBAAgB,qBAAqB;
|
|
1
|
+
{"version":3,"file":"types.d.ts","source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b,cAAc,GACd,SAAS,GACT,UAAU,GACV,UAAU,GACV,QAAQ,GACR,WAAW,GACX,aAAa,GACb,aAAa,GACb,sBAAsB,CAAC"}
|
package/dist/types.js
CHANGED
|
@@ -39,5 +39,9 @@ export var CredentialType;
|
|
|
39
39
|
// InsForge Credentials
|
|
40
40
|
CredentialType["INSFORGE_BASE_URL"] = "INSFORGE_BASE_URL";
|
|
41
41
|
CredentialType["INSFORGE_API_KEY"] = "INSFORGE_API_KEY";
|
|
42
|
+
// Custom Authentication Credentials
|
|
43
|
+
CredentialType["CUSTOM_AUTH_KEY"] = "CUSTOM_AUTH_KEY";
|
|
44
|
+
// Browser Session Credentials (BrowserBase-powered)
|
|
45
|
+
CredentialType["AMAZON_CRED"] = "AMAZON_CRED";
|
|
42
46
|
})(CredentialType || (CredentialType = {}));
|
|
43
47
|
//# sourceMappingURL=types.js.map
|
package/dist/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,iEAAiE;AAEjE,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,iEAAiE;AAEjE,MAAM,CAAN,IAAY,cAmDX;AAnDD,WAAY,cAAc;IACxB,iBAAiB;IACjB,6CAA2B,CAAA;IAC3B,2DAAyC,CAAA;IACzC,mDAAiC,CAAA;IACjC,qDAAmC,CAAA;IACnC,qBAAqB;IACrB,yDAAuC,CAAA;IACvC,uBAAuB;IACvB,iDAA+B,CAAA;IAC/B,4BAA4B;IAC5B,2CAAyB,CAAA;IACzB,2DAAyC,CAAA;IACzC,oBAAoB;IACpB,6CAA2B,CAAA;IAC3B,sBAAsB;IACtB,uEAAqD,CAAA;IACrD,uEAAqD,CAAA;IACrD,uEAAqD,CAAA;IACrD,uBAAuB;IACvB,2CAAyB,CAAA;IAEzB,oBAAoB;IACpB,2DAAyC,CAAA;IAEzC,oBAAoB;IACpB,yDAAuC,CAAA;IACvC,2CAAyB,CAAA;IACzB,2DAAyC,CAAA;IACzC,+DAA6C,CAAA;IAC7C,uCAAqB,CAAA;IACrB,2DAAyC,CAAA;IAEzC,mCAAmC;IACnC,+CAA6B,CAAA;IAE7B,iCAAiC;IACjC,6CAA2B,CAAA;IAE3B,+BAA+B;IAC/B,iDAA+B,CAAA;IAE/B,uBAAuB;IACvB,yDAAuC,CAAA;IACvC,uDAAqC,CAAA;IAErC,oCAAoC;IACpC,qDAAmC,CAAA;IAEnC,oDAAoD;IACpD,6CAA2B,CAAA;AAC7B,CAAC,EAnDW,cAAc,KAAd,cAAc,QAmDzB"}
|