@bubblelab/shared-schemas 0.1.6 → 0.1.9

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 (48) hide show
  1. package/README.md +1 -136
  2. package/dist/ai-models.d.ts +4 -0
  3. package/dist/ai-models.d.ts.map +1 -0
  4. package/dist/ai-models.js +20 -0
  5. package/dist/ai-models.js.map +1 -0
  6. package/dist/bubble-definition-schema.d.ts +133 -25
  7. package/dist/bubble-definition-schema.d.ts.map +1 -1
  8. package/dist/bubble-definition-schema.js +21 -3
  9. package/dist/bubble-definition-schema.js.map +1 -1
  10. package/dist/bubbleflow-execution-schema.d.ts +100 -48
  11. package/dist/bubbleflow-execution-schema.d.ts.map +1 -1
  12. package/dist/bubbleflow-schema.d.ts +394 -125
  13. package/dist/bubbleflow-schema.d.ts.map +1 -1
  14. package/dist/bubbleflow-schema.js +19 -0
  15. package/dist/bubbleflow-schema.js.map +1 -1
  16. package/dist/credential-schema.d.ts +46 -46
  17. package/dist/credential-schema.d.ts.map +1 -1
  18. package/dist/credential-schema.js +7 -0
  19. package/dist/credential-schema.js.map +1 -1
  20. package/dist/cron-utils.d.ts +47 -0
  21. package/dist/cron-utils.d.ts.map +1 -0
  22. package/dist/cron-utils.js +228 -0
  23. package/dist/cron-utils.js.map +1 -0
  24. package/dist/general-chat.d.ts +81 -0
  25. package/dist/general-chat.d.ts.map +1 -0
  26. package/dist/general-chat.js +58 -0
  27. package/dist/general-chat.js.map +1 -0
  28. package/dist/generate-bubbleflow-schema.d.ts +92 -40
  29. package/dist/generate-bubbleflow-schema.d.ts.map +1 -1
  30. package/dist/index.d.ts +3 -0
  31. package/dist/index.d.ts.map +1 -1
  32. package/dist/index.js +3 -0
  33. package/dist/index.js.map +1 -1
  34. package/dist/milk-tea.d.ts +108 -0
  35. package/dist/milk-tea.d.ts.map +1 -0
  36. package/dist/milk-tea.js +74 -0
  37. package/dist/milk-tea.js.map +1 -0
  38. package/dist/pearl.d.ts +276 -0
  39. package/dist/pearl.d.ts.map +1 -0
  40. package/dist/pearl.js +75 -0
  41. package/dist/pearl.js.map +1 -0
  42. package/dist/streaming-events.d.ts +70 -0
  43. package/dist/streaming-events.d.ts.map +1 -1
  44. package/dist/types.d.ts +2 -1
  45. package/dist/types.d.ts.map +1 -1
  46. package/dist/types.js +2 -0
  47. package/dist/types.js.map +1 -1
  48. package/package.json +1 -1
@@ -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"}
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,gBAAgB,CAAC"}
package/dist/index.js CHANGED
@@ -15,4 +15,7 @@ export * from './generate-bubbleflow-schema.js';
15
15
  export * from './webhook-schema.js';
16
16
  export * from './subscription-status-schema.js';
17
17
  export * from './api-schema.js';
18
+ export * from './milk-tea.js';
19
+ export * from './pearl.js';
20
+ export * from './ai-models.js';
18
21
  //# sourceMappingURL=index.js.map
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,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"}
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,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,gBAAgB,CAAC"}
@@ -0,0 +1,108 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Conversation message schema for milk tea multi-turn conversations
4
+ */
5
+ declare const ConversationMessageSchema: z.ZodObject<{
6
+ role: z.ZodEnum<["user", "assistant"]>;
7
+ content: z.ZodString;
8
+ }, "strip", z.ZodTypeAny, {
9
+ role: "user" | "assistant";
10
+ content: string;
11
+ }, {
12
+ role: "user" | "assistant";
13
+ content: string;
14
+ }>;
15
+ /**
16
+ * Request schema for Milk Tea agent
17
+ * Milk Tea helps users configure bubble parameters through conversation
18
+ */
19
+ export declare const MilkTeaRequestSchema: z.ZodObject<{
20
+ userRequest: z.ZodString;
21
+ bubbleName: z.ZodString;
22
+ bubbleSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
23
+ currentCode: z.ZodOptional<z.ZodString>;
24
+ availableCredentials: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
25
+ userName: z.ZodString;
26
+ insertLocation: z.ZodOptional<z.ZodString>;
27
+ conversationHistory: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
28
+ role: z.ZodEnum<["user", "assistant"]>;
29
+ content: z.ZodString;
30
+ }, "strip", z.ZodTypeAny, {
31
+ role: "user" | "assistant";
32
+ content: string;
33
+ }, {
34
+ role: "user" | "assistant";
35
+ content: string;
36
+ }>, "many">>>;
37
+ model: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-o4-mini", "openai/gpt-4o", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "anthropic/claude-sonnet-4-5-20250929", "openrouter/x-ai/grok-code-fast-1", "openrouter/z-ai/glm-4.6"]>>;
38
+ }, "strip", z.ZodTypeAny, {
39
+ userRequest: string;
40
+ bubbleName: string;
41
+ bubbleSchema: Record<string, unknown>;
42
+ availableCredentials: string[];
43
+ userName: string;
44
+ conversationHistory: {
45
+ role: "user" | "assistant";
46
+ content: string;
47
+ }[];
48
+ model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6";
49
+ currentCode?: string | undefined;
50
+ insertLocation?: string | undefined;
51
+ }, {
52
+ userRequest: string;
53
+ bubbleName: string;
54
+ bubbleSchema: Record<string, unknown>;
55
+ userName: string;
56
+ currentCode?: string | undefined;
57
+ availableCredentials?: string[] | undefined;
58
+ insertLocation?: string | undefined;
59
+ conversationHistory?: {
60
+ role: "user" | "assistant";
61
+ content: string;
62
+ }[] | undefined;
63
+ model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | undefined;
64
+ }>;
65
+ /**
66
+ * Response schema for Milk Tea agent
67
+ */
68
+ export declare const MilkTeaResponseSchema: z.ZodObject<{
69
+ type: z.ZodEnum<["code", "question", "reject"]>;
70
+ message: z.ZodString;
71
+ snippet: z.ZodOptional<z.ZodString>;
72
+ success: z.ZodBoolean;
73
+ error: z.ZodOptional<z.ZodString>;
74
+ }, "strip", z.ZodTypeAny, {
75
+ message: string;
76
+ type: "code" | "question" | "reject";
77
+ success: boolean;
78
+ snippet?: string | undefined;
79
+ error?: string | undefined;
80
+ }, {
81
+ message: string;
82
+ type: "code" | "question" | "reject";
83
+ success: boolean;
84
+ snippet?: string | undefined;
85
+ error?: string | undefined;
86
+ }>;
87
+ /**
88
+ * Internal agent response format (JSON mode output from AI)
89
+ */
90
+ export declare const MilkTeaAgentOutputSchema: z.ZodObject<{
91
+ type: z.ZodEnum<["code", "question", "reject"]>;
92
+ message: z.ZodString;
93
+ snippet: z.ZodOptional<z.ZodString>;
94
+ }, "strip", z.ZodTypeAny, {
95
+ message: string;
96
+ type: "code" | "question" | "reject";
97
+ snippet?: string | undefined;
98
+ }, {
99
+ message: string;
100
+ type: "code" | "question" | "reject";
101
+ snippet?: string | undefined;
102
+ }>;
103
+ export type MilkTeaRequest = z.infer<typeof MilkTeaRequestSchema>;
104
+ export type MilkTeaResponse = z.infer<typeof MilkTeaResponseSchema>;
105
+ export type MilkTeaAgentOutput = z.infer<typeof MilkTeaAgentOutputSchema>;
106
+ export type ConversationMessage = z.infer<typeof ConversationMessageSchema>;
107
+ export {};
108
+ //# sourceMappingURL=milk-tea.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"milk-tea.d.ts","sourceRoot":"","sources":["../src/milk-tea.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,QAAA,MAAM,yBAAyB;;;;;;;;;EAG7B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6C/B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;EA0BhC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;EAInC,CAAC;AAGH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
@@ -0,0 +1,74 @@
1
+ import { z } from 'zod';
2
+ import { AvailableModels } from './ai-models.js';
3
+ /**
4
+ * Conversation message schema for milk tea multi-turn conversations
5
+ */
6
+ const ConversationMessageSchema = z.object({
7
+ role: z.enum(['user', 'assistant']),
8
+ content: z.string(),
9
+ });
10
+ /**
11
+ * Request schema for Milk Tea agent
12
+ * Milk Tea helps users configure bubble parameters through conversation
13
+ */
14
+ export const MilkTeaRequestSchema = z.object({
15
+ userRequest: z
16
+ .string()
17
+ .min(1, 'User request is required')
18
+ .describe('The user request or question about configuring the bubble'),
19
+ bubbleName: z
20
+ .string()
21
+ .min(1, 'Bubble name is required')
22
+ .describe('The name of the bubble to configure (e.g., "email-tool")'),
23
+ bubbleSchema: z
24
+ .record(z.unknown())
25
+ .describe('The full schema/interface definition of the bubble including parameters and types'),
26
+ currentCode: z
27
+ .string()
28
+ .optional()
29
+ .describe('The current workflow code context for validation'),
30
+ availableCredentials: z
31
+ .array(z.string())
32
+ .default([])
33
+ .describe('List of credential types available to the user'),
34
+ userName: z.string().describe('Name of the user making the request'),
35
+ insertLocation: z
36
+ .string()
37
+ .optional()
38
+ .describe('Location in code where the snippet should be inserted'),
39
+ conversationHistory: z
40
+ .array(ConversationMessageSchema)
41
+ .optional()
42
+ .default([])
43
+ .describe('Previous conversation messages for multi-turn interactions (frontend manages state)'),
44
+ model: AvailableModels.default('google/gemini-2.5-pro').describe('AI model to use for Milk Tea agent'),
45
+ });
46
+ /**
47
+ * Response schema for Milk Tea agent
48
+ */
49
+ export const MilkTeaResponseSchema = z.object({
50
+ type: z
51
+ .enum(['code', 'question', 'reject'])
52
+ .describe('Type of response: code (generated snippet), question (needs clarification), reject (infeasible request)'),
53
+ message: z
54
+ .string()
55
+ .describe('Human-readable message: explanation for code, question text, or rejection reason'),
56
+ snippet: z
57
+ .string()
58
+ .optional()
59
+ .describe('Generated TypeScript code snippet (only present when type is "code")'),
60
+ success: z.boolean().describe('Whether the operation completed successfully'),
61
+ error: z
62
+ .string()
63
+ .optional()
64
+ .describe('Error message if the operation failed'),
65
+ });
66
+ /**
67
+ * Internal agent response format (JSON mode output from AI)
68
+ */
69
+ export const MilkTeaAgentOutputSchema = z.object({
70
+ type: z.enum(['code', 'question', 'reject']),
71
+ message: z.string(),
72
+ snippet: z.string().optional(),
73
+ });
74
+ //# sourceMappingURL=milk-tea.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"milk-tea.js","sourceRoot":"","sources":["../src/milk-tea.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEjD;;GAEG;AACH,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IACnC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,EAAE,0BAA0B,CAAC;SAClC,QAAQ,CAAC,2DAA2D,CAAC;IAExE,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,EAAE,yBAAyB,CAAC;SACjC,QAAQ,CAAC,0DAA0D,CAAC;IAEvE,YAAY,EAAE,CAAC;SACZ,MAAM,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;SACnB,QAAQ,CACP,mFAAmF,CACpF;IAEH,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,QAAQ,EAA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AE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC;IAC5C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAC"}
@@ -0,0 +1,276 @@
1
+ import { z } from 'zod';
2
+ import { CredentialType } from './types.js';
3
+ /**
4
+ * Request schema for Pearl agent
5
+ * Pearl helps users build complete workflows without requiring specific bubbles
6
+ */
7
+ export declare const PearlRequestSchema: z.ZodObject<{
8
+ userRequest: z.ZodString;
9
+ currentCode: z.ZodOptional<z.ZodString>;
10
+ userName: z.ZodString;
11
+ availableVariables: z.ZodArray<z.ZodAny, "many">;
12
+ conversationHistory: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
13
+ role: z.ZodEnum<["user", "assistant"]>;
14
+ content: z.ZodString;
15
+ }, "strip", z.ZodTypeAny, {
16
+ content: string;
17
+ role: "user" | "assistant";
18
+ }, {
19
+ content: string;
20
+ role: "user" | "assistant";
21
+ }>, "many">>>;
22
+ model: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-o4-mini", "openai/gpt-4o", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "anthropic/claude-sonnet-4-5-20250929", "openrouter/x-ai/grok-code-fast-1", "openrouter/z-ai/glm-4.6"]>>;
23
+ }, "strip", z.ZodTypeAny, {
24
+ model: "google/gemini-2.5-flash" | "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6";
25
+ userRequest: string;
26
+ userName: string;
27
+ availableVariables: any[];
28
+ conversationHistory: {
29
+ content: string;
30
+ role: "user" | "assistant";
31
+ }[];
32
+ currentCode?: string | undefined;
33
+ }, {
34
+ userRequest: string;
35
+ userName: string;
36
+ availableVariables: any[];
37
+ model?: "google/gemini-2.5-flash" | "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | undefined;
38
+ currentCode?: string | undefined;
39
+ conversationHistory?: {
40
+ content: string;
41
+ role: "user" | "assistant";
42
+ }[] | undefined;
43
+ }>;
44
+ /**
45
+ * Response schema for Pearl agent
46
+ */
47
+ export declare const PearlResponseSchema: z.ZodObject<{
48
+ type: z.ZodEnum<["code", "question", "reject"]>;
49
+ message: z.ZodString;
50
+ snippet: z.ZodOptional<z.ZodString>;
51
+ bubbleParameters: z.ZodOptional<z.ZodRecord<z.ZodNumber, z.ZodObject<{
52
+ variableName: z.ZodString;
53
+ bubbleName: z.ZodString;
54
+ className: z.ZodString;
55
+ parameters: z.ZodArray<z.ZodObject<{
56
+ location: z.ZodOptional<z.ZodObject<{
57
+ startLine: z.ZodNumber;
58
+ startCol: z.ZodNumber;
59
+ endLine: z.ZodNumber;
60
+ endCol: z.ZodNumber;
61
+ }, "strip", z.ZodTypeAny, {
62
+ startLine: number;
63
+ startCol: number;
64
+ endLine: number;
65
+ endCol: number;
66
+ }, {
67
+ startLine: number;
68
+ startCol: number;
69
+ endLine: number;
70
+ endCol: number;
71
+ }>>;
72
+ variableId: z.ZodOptional<z.ZodNumber>;
73
+ name: z.ZodString;
74
+ value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown, "many">]>;
75
+ type: z.ZodNativeEnum<typeof import("./bubble-definition-schema.js").BubbleParameterType>;
76
+ }, "strip", z.ZodTypeAny, {
77
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
78
+ type: import("./bubble-definition-schema.js").BubbleParameterType;
79
+ name: string;
80
+ location?: {
81
+ startLine: number;
82
+ startCol: number;
83
+ endLine: number;
84
+ endCol: number;
85
+ } | undefined;
86
+ variableId?: number | undefined;
87
+ }, {
88
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
89
+ type: import("./bubble-definition-schema.js").BubbleParameterType;
90
+ name: string;
91
+ location?: {
92
+ startLine: number;
93
+ startCol: number;
94
+ endLine: number;
95
+ endCol: number;
96
+ } | undefined;
97
+ variableId?: number | undefined;
98
+ }>, "many">;
99
+ hasAwait: z.ZodBoolean;
100
+ hasActionCall: z.ZodBoolean;
101
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodType<import("./types.js").BubbleName, z.ZodTypeDef, import("./types.js").BubbleName>, "many">>;
102
+ dependencyGraph: z.ZodOptional<z.ZodType<import("./bubble-definition-schema.js").DependencyGraphNode, z.ZodTypeDef, import("./bubble-definition-schema.js").DependencyGraphNode>>;
103
+ variableId: z.ZodNumber;
104
+ nodeType: z.ZodEnum<["service", "tool", "workflow", "unknown"]>;
105
+ location: z.ZodObject<{
106
+ startLine: z.ZodNumber;
107
+ startCol: z.ZodNumber;
108
+ endLine: z.ZodNumber;
109
+ endCol: z.ZodNumber;
110
+ }, "strip", z.ZodTypeAny, {
111
+ startLine: number;
112
+ startCol: number;
113
+ endLine: number;
114
+ endCol: number;
115
+ }, {
116
+ startLine: number;
117
+ startCol: number;
118
+ endLine: number;
119
+ endCol: number;
120
+ }>;
121
+ }, "strip", z.ZodTypeAny, {
122
+ location: {
123
+ startLine: number;
124
+ startCol: number;
125
+ endLine: number;
126
+ endCol: number;
127
+ };
128
+ variableId: number;
129
+ variableName: string;
130
+ bubbleName: string;
131
+ className: string;
132
+ parameters: {
133
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
134
+ type: import("./bubble-definition-schema.js").BubbleParameterType;
135
+ name: string;
136
+ location?: {
137
+ startLine: number;
138
+ startCol: number;
139
+ endLine: number;
140
+ endCol: number;
141
+ } | undefined;
142
+ variableId?: number | undefined;
143
+ }[];
144
+ hasAwait: boolean;
145
+ hasActionCall: boolean;
146
+ nodeType: "unknown" | "service" | "tool" | "workflow";
147
+ dependencies?: import("./types.js").BubbleName[] | undefined;
148
+ dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined;
149
+ }, {
150
+ location: {
151
+ startLine: number;
152
+ startCol: number;
153
+ endLine: number;
154
+ endCol: number;
155
+ };
156
+ variableId: number;
157
+ variableName: string;
158
+ bubbleName: string;
159
+ className: string;
160
+ parameters: {
161
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
162
+ type: import("./bubble-definition-schema.js").BubbleParameterType;
163
+ name: string;
164
+ location?: {
165
+ startLine: number;
166
+ startCol: number;
167
+ endLine: number;
168
+ endCol: number;
169
+ } | undefined;
170
+ variableId?: number | undefined;
171
+ }[];
172
+ hasAwait: boolean;
173
+ hasActionCall: boolean;
174
+ nodeType: "unknown" | "service" | "tool" | "workflow";
175
+ dependencies?: import("./types.js").BubbleName[] | undefined;
176
+ dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined;
177
+ }>>>;
178
+ inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
179
+ requiredCredentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">>>;
180
+ success: z.ZodBoolean;
181
+ error: z.ZodOptional<z.ZodString>;
182
+ }, "strip", z.ZodTypeAny, {
183
+ message: string;
184
+ type: "code" | "question" | "reject";
185
+ success: boolean;
186
+ error?: string | undefined;
187
+ inputSchema?: Record<string, unknown> | undefined;
188
+ requiredCredentials?: Record<string, CredentialType[]> | undefined;
189
+ bubbleParameters?: Record<number, {
190
+ location: {
191
+ startLine: number;
192
+ startCol: number;
193
+ endLine: number;
194
+ endCol: number;
195
+ };
196
+ variableId: number;
197
+ variableName: string;
198
+ bubbleName: string;
199
+ className: string;
200
+ parameters: {
201
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
202
+ type: import("./bubble-definition-schema.js").BubbleParameterType;
203
+ name: string;
204
+ location?: {
205
+ startLine: number;
206
+ startCol: number;
207
+ endLine: number;
208
+ endCol: number;
209
+ } | undefined;
210
+ variableId?: number | undefined;
211
+ }[];
212
+ hasAwait: boolean;
213
+ hasActionCall: boolean;
214
+ nodeType: "unknown" | "service" | "tool" | "workflow";
215
+ dependencies?: import("./types.js").BubbleName[] | undefined;
216
+ dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined;
217
+ }> | undefined;
218
+ snippet?: string | undefined;
219
+ }, {
220
+ message: string;
221
+ type: "code" | "question" | "reject";
222
+ success: boolean;
223
+ error?: string | undefined;
224
+ inputSchema?: Record<string, unknown> | undefined;
225
+ requiredCredentials?: Record<string, CredentialType[]> | undefined;
226
+ bubbleParameters?: Record<number, {
227
+ location: {
228
+ startLine: number;
229
+ startCol: number;
230
+ endLine: number;
231
+ endCol: number;
232
+ };
233
+ variableId: number;
234
+ variableName: string;
235
+ bubbleName: string;
236
+ className: string;
237
+ parameters: {
238
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
239
+ type: import("./bubble-definition-schema.js").BubbleParameterType;
240
+ name: string;
241
+ location?: {
242
+ startLine: number;
243
+ startCol: number;
244
+ endLine: number;
245
+ endCol: number;
246
+ } | undefined;
247
+ variableId?: number | undefined;
248
+ }[];
249
+ hasAwait: boolean;
250
+ hasActionCall: boolean;
251
+ nodeType: "unknown" | "service" | "tool" | "workflow";
252
+ dependencies?: import("./types.js").BubbleName[] | undefined;
253
+ dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined;
254
+ }> | undefined;
255
+ snippet?: string | undefined;
256
+ }>;
257
+ /**
258
+ * Internal agent response format (JSON mode output from AI)
259
+ */
260
+ export declare const PearlAgentOutputSchema: z.ZodObject<{
261
+ type: z.ZodEnum<["code", "question", "reject"]>;
262
+ message: z.ZodString;
263
+ snippet: z.ZodOptional<z.ZodString>;
264
+ }, "strip", z.ZodTypeAny, {
265
+ message: string;
266
+ type: "code" | "question" | "reject";
267
+ snippet?: string | undefined;
268
+ }, {
269
+ message: string;
270
+ type: "code" | "question" | "reject";
271
+ snippet?: string | undefined;
272
+ }>;
273
+ export type PearlRequest = z.infer<typeof PearlRequestSchema>;
274
+ export type PearlResponse = z.infer<typeof PearlResponseSchema>;
275
+ export type PearlAgentOutput = z.infer<typeof PearlAgentOutputSchema>;
276
+ //# sourceMappingURL=pearl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pearl.d.ts","sourceRoot":"","sources":["../src/pearl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAQ5C;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0B7B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+C9B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;EAIjC,CAAC;AAGH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
package/dist/pearl.js ADDED
@@ -0,0 +1,75 @@
1
+ import { z } from 'zod';
2
+ import { AvailableModels } from './ai-models.js';
3
+ import { ParsedBubbleWithInfoSchema } from './bubble-definition-schema.js';
4
+ import { CredentialType } from './types.js';
5
+ // Reuse the ConversationMessageSchema from milk-tea to avoid duplication
6
+ const ConversationMessageSchema = z.object({
7
+ role: z.enum(['user', 'assistant']),
8
+ content: z.string(),
9
+ });
10
+ /**
11
+ * Request schema for Pearl agent
12
+ * Pearl helps users build complete workflows without requiring specific bubbles
13
+ */
14
+ export const PearlRequestSchema = z.object({
15
+ userRequest: z
16
+ .string()
17
+ .min(1, 'User request is required')
18
+ .describe('The user request or question about building a workflow'),
19
+ currentCode: z
20
+ .string()
21
+ .optional()
22
+ .describe('The current workflow code for context and modification'),
23
+ userName: z.string().describe('Name of the user making the request'),
24
+ availableVariables: z
25
+ .array(z.any())
26
+ .describe('List of available variables in the current code'),
27
+ conversationHistory: z
28
+ .array(ConversationMessageSchema)
29
+ .optional()
30
+ .default([])
31
+ .describe('Previous conversation messages for multi-turn interactions (frontend manages state)'),
32
+ model: AvailableModels.default('google/gemini-2.5-pro').describe('AI model to use for Pearl agent'),
33
+ });
34
+ /**
35
+ * Response schema for Pearl agent
36
+ */
37
+ export const PearlResponseSchema = z.object({
38
+ type: z
39
+ .enum(['code', 'question', 'reject'])
40
+ .describe('Type of response: code (generated workflow), question (needs clarification), reject (infeasible request)'),
41
+ message: z
42
+ .string()
43
+ .describe('Human-readable message: explanation for code, question text, or rejection reason'),
44
+ snippet: z
45
+ .string()
46
+ .optional()
47
+ .describe('Generated TypeScript code for complete workflow (only present when type is "code")'),
48
+ bubbleParameters: z
49
+ .record(z.number(), ParsedBubbleWithInfoSchema)
50
+ .optional()
51
+ .describe('Parsed bubble parameters from the generated workflow (only present when type is "code")'),
52
+ inputSchema: z
53
+ .record(z.unknown())
54
+ .optional()
55
+ .describe('Input schema for the generated workflow (only present when type is "code")'),
56
+ requiredCredentials: z
57
+ .record(z.string(), z.array(z.nativeEnum(CredentialType)))
58
+ .optional()
59
+ .describe('Required credentials for the bubbles in the workflow (only present when type is "code")'),
60
+ success: z.boolean().describe('Whether the operation completed successfully'),
61
+ error: z
62
+ .string()
63
+ .optional()
64
+ .describe('Error message if the operation failed'),
65
+ });
66
+ /**
67
+ * Internal agent response format (JSON mode output from AI)
68
+ */
69
+ export const PearlAgentOutputSchema = z.object({
70
+ type: z.enum(['code', 'question', 'reject']),
71
+ message: z.string(),
72
+ snippet: z.string().optional(),
73
+ });
74
+ // Note: ConversationMessage type is exported from milk-tea.ts to avoid duplication
75
+ //# sourceMappingURL=pearl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pearl.js","sourceRoot":"","sources":["../src/pearl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,yEAAyE;AACzE,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IACnC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,EAAE,0BAA0B,CAAC;SAClC,QAAQ,CAAC,wDAAwD,CAAC;IAErE,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,QAAQ,EAAE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C,CAAC;SACzD,QAAQ,EAAE;SACV,QAAQ,CACP,yFAAyF,CAC1F;IAEH,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,8CAA8C,CAAC;IAE7E,KAAK,EAAE,CAAC;SACL,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,uCAAuC,CAAC;CACrD,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC;IAC5C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAC;AAMH,mFAAmF"}
@@ -31,5 +31,75 @@ export interface StreamingLogEvent {
31
31
  totalTokens: number;
32
32
  };
33
33
  }
34
+ export type StreamingEvent = {
35
+ type: 'start';
36
+ data: {
37
+ message: string;
38
+ maxIterations: number;
39
+ timestamp: string;
40
+ };
41
+ } | {
42
+ type: 'llm_start';
43
+ data: {
44
+ model: string;
45
+ temperature: number;
46
+ };
47
+ } | {
48
+ type: 'token';
49
+ data: {
50
+ content: string;
51
+ messageId: string;
52
+ };
53
+ } | {
54
+ type: 'think';
55
+ data: {
56
+ content: string;
57
+ messageId: string;
58
+ };
59
+ } | {
60
+ type: 'llm_complete';
61
+ data: {
62
+ messageId: string;
63
+ totalTokens?: number;
64
+ };
65
+ } | {
66
+ type: 'tool_start';
67
+ data: {
68
+ tool: string;
69
+ input: unknown;
70
+ callId: string;
71
+ };
72
+ } | {
73
+ type: 'tool_complete';
74
+ data: {
75
+ callId: string;
76
+ tool: string;
77
+ output: unknown;
78
+ duration: number;
79
+ };
80
+ } | {
81
+ type: 'iteration_start';
82
+ data: {
83
+ iteration: number;
84
+ };
85
+ } | {
86
+ type: 'iteration_complete';
87
+ data: {
88
+ iteration: number;
89
+ hasToolCalls: boolean;
90
+ };
91
+ } | {
92
+ type: 'error';
93
+ data: {
94
+ error: string;
95
+ recoverable: boolean;
96
+ };
97
+ } | {
98
+ type: 'complete';
99
+ data: {
100
+ result: unknown;
101
+ totalDuration: number;
102
+ };
103
+ };
34
104
  export type StreamCallback = (event: StreamingLogEvent) => void | Promise<void>;
35
105
  //# sourceMappingURL=streaming-events.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"streaming-events.d.ts","sourceRoot":"","sources":["../src/streaming-events.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,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,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,gBAAgB,CAAC,EAAE,MAAM,CACvB,MAAM,EACN,OAAO,4BAA4B,EAAE,oBAAoB,CAC1D,CAAC;IAEF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,UAAU,CAAC,EAAE;QACX,WAAW,EAAE,MAAM,CAAC;QACpB,YAAY,EAAE,MAAM,CAAC;QACrB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,oBAAoB,CAAC,EAAE;QACrB,WAAW,EAAE,MAAM,CAAC;QACpB,YAAY,EAAE,MAAM,CAAC;QACrB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;CACH;AAED,MAAM,MAAM,cAAc,GAAG,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC"}
1
+ {"version":3,"file":"streaming-events.d.ts","sourceRoot":"","sources":["../src/streaming-events.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,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,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,M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