@bubblelab/shared-schemas 0.1.113 → 0.1.115
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.
|
@@ -7,6 +7,7 @@ import { CredentialType, type BubbleName } from './types.js';
|
|
|
7
7
|
export declare const CapabilityInputSchema: z.ZodObject<{
|
|
8
8
|
name: z.ZodString;
|
|
9
9
|
type: z.ZodEnum<["string", "number", "boolean", "string[]"]>;
|
|
10
|
+
label: z.ZodOptional<z.ZodString>;
|
|
10
11
|
description: z.ZodString;
|
|
11
12
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
12
13
|
default: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
|
|
@@ -16,12 +17,14 @@ export declare const CapabilityInputSchema: z.ZodObject<{
|
|
|
16
17
|
description: string;
|
|
17
18
|
required: boolean;
|
|
18
19
|
default?: string | number | boolean | string[] | undefined;
|
|
20
|
+
label?: string | undefined;
|
|
19
21
|
}, {
|
|
20
22
|
name: string;
|
|
21
23
|
type: "string" | "number" | "boolean" | "string[]";
|
|
22
24
|
description: string;
|
|
23
25
|
default?: string | number | boolean | string[] | undefined;
|
|
24
26
|
required?: boolean | undefined;
|
|
27
|
+
label?: string | undefined;
|
|
25
28
|
}>;
|
|
26
29
|
export type CapabilityInput = z.infer<typeof CapabilityInputSchema>;
|
|
27
30
|
/**
|
|
@@ -46,6 +49,23 @@ export declare const CapabilityToolDefSchema: z.ZodObject<{
|
|
|
46
49
|
internalBubbles?: BubbleName[] | undefined;
|
|
47
50
|
}>;
|
|
48
51
|
export type CapabilityToolDef = z.infer<typeof CapabilityToolDefSchema>;
|
|
52
|
+
/**
|
|
53
|
+
* Schema for optional model configuration overrides applied by a capability at runtime.
|
|
54
|
+
*/
|
|
55
|
+
export declare const CapabilityModelConfigOverrideSchema: z.ZodObject<{
|
|
56
|
+
model: z.ZodOptional<z.ZodString>;
|
|
57
|
+
reasoningEffort: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
|
|
58
|
+
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
59
|
+
}, "strip", z.ZodTypeAny, {
|
|
60
|
+
model?: string | undefined;
|
|
61
|
+
reasoningEffort?: "low" | "medium" | "high" | undefined;
|
|
62
|
+
maxTokens?: number | undefined;
|
|
63
|
+
}, {
|
|
64
|
+
model?: string | undefined;
|
|
65
|
+
reasoningEffort?: "low" | "medium" | "high" | undefined;
|
|
66
|
+
maxTokens?: number | undefined;
|
|
67
|
+
}>;
|
|
68
|
+
export type CapabilityModelConfigOverride = z.infer<typeof CapabilityModelConfigOverrideSchema>;
|
|
49
69
|
/**
|
|
50
70
|
* Serializable capability metadata — used by frontend, parser, and capabilities.json.
|
|
51
71
|
* Does NOT contain runtime logic (tool functions, factories).
|
|
@@ -61,6 +81,7 @@ export declare const CapabilityMetadataSchema: z.ZodObject<{
|
|
|
61
81
|
inputs: z.ZodArray<z.ZodObject<{
|
|
62
82
|
name: z.ZodString;
|
|
63
83
|
type: z.ZodEnum<["string", "number", "boolean", "string[]"]>;
|
|
84
|
+
label: z.ZodOptional<z.ZodString>;
|
|
64
85
|
description: z.ZodString;
|
|
65
86
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
66
87
|
default: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
|
|
@@ -70,12 +91,14 @@ export declare const CapabilityMetadataSchema: z.ZodObject<{
|
|
|
70
91
|
description: string;
|
|
71
92
|
required: boolean;
|
|
72
93
|
default?: string | number | boolean | string[] | undefined;
|
|
94
|
+
label?: string | undefined;
|
|
73
95
|
}, {
|
|
74
96
|
name: string;
|
|
75
97
|
type: "string" | "number" | "boolean" | "string[]";
|
|
76
98
|
description: string;
|
|
77
99
|
default?: string | number | boolean | string[] | undefined;
|
|
78
100
|
required?: boolean | undefined;
|
|
101
|
+
label?: string | undefined;
|
|
79
102
|
}>, "many">;
|
|
80
103
|
tools: z.ZodArray<z.ZodObject<{
|
|
81
104
|
name: z.ZodString;
|
|
@@ -95,6 +118,19 @@ export declare const CapabilityMetadataSchema: z.ZodObject<{
|
|
|
95
118
|
internalBubbles?: BubbleName[] | undefined;
|
|
96
119
|
}>, "many">;
|
|
97
120
|
systemPromptAddition: z.ZodOptional<z.ZodString>;
|
|
121
|
+
modelConfigOverride: z.ZodOptional<z.ZodObject<{
|
|
122
|
+
model: z.ZodOptional<z.ZodString>;
|
|
123
|
+
reasoningEffort: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
|
|
124
|
+
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
125
|
+
}, "strip", z.ZodTypeAny, {
|
|
126
|
+
model?: string | undefined;
|
|
127
|
+
reasoningEffort?: "low" | "medium" | "high" | undefined;
|
|
128
|
+
maxTokens?: number | undefined;
|
|
129
|
+
}, {
|
|
130
|
+
model?: string | undefined;
|
|
131
|
+
reasoningEffort?: "low" | "medium" | "high" | undefined;
|
|
132
|
+
maxTokens?: number | undefined;
|
|
133
|
+
}>>;
|
|
98
134
|
}, "strip", z.ZodTypeAny, {
|
|
99
135
|
name: string;
|
|
100
136
|
description: string;
|
|
@@ -113,10 +149,16 @@ export declare const CapabilityMetadataSchema: z.ZodObject<{
|
|
|
113
149
|
description: string;
|
|
114
150
|
required: boolean;
|
|
115
151
|
default?: string | number | boolean | string[] | undefined;
|
|
152
|
+
label?: string | undefined;
|
|
116
153
|
}[];
|
|
117
154
|
icon?: string | undefined;
|
|
118
155
|
category?: string | undefined;
|
|
119
156
|
systemPromptAddition?: string | undefined;
|
|
157
|
+
modelConfigOverride?: {
|
|
158
|
+
model?: string | undefined;
|
|
159
|
+
reasoningEffort?: "low" | "medium" | "high" | undefined;
|
|
160
|
+
maxTokens?: number | undefined;
|
|
161
|
+
} | undefined;
|
|
120
162
|
}, {
|
|
121
163
|
name: string;
|
|
122
164
|
description: string;
|
|
@@ -134,11 +176,17 @@ export declare const CapabilityMetadataSchema: z.ZodObject<{
|
|
|
134
176
|
description: string;
|
|
135
177
|
default?: string | number | boolean | string[] | undefined;
|
|
136
178
|
required?: boolean | undefined;
|
|
179
|
+
label?: string | undefined;
|
|
137
180
|
}[];
|
|
138
181
|
icon?: string | undefined;
|
|
139
182
|
category?: string | undefined;
|
|
140
183
|
version?: string | undefined;
|
|
141
184
|
systemPromptAddition?: string | undefined;
|
|
185
|
+
modelConfigOverride?: {
|
|
186
|
+
model?: string | undefined;
|
|
187
|
+
reasoningEffort?: "low" | "medium" | "high" | undefined;
|
|
188
|
+
maxTokens?: number | undefined;
|
|
189
|
+
} | undefined;
|
|
142
190
|
}>;
|
|
143
191
|
export type CapabilityMetadata = z.infer<typeof CapabilityMetadataSchema>;
|
|
144
192
|
//# sourceMappingURL=capability-schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capability-schema.d.ts","sourceRoot":"","sources":["../src/capability-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7D;;;GAGG;AACH,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"capability-schema.d.ts","sourceRoot":"","sources":["../src/capability-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7D;;;GAGG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;EAShC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE;;;GAGG;AACH,eAAO,MAAM,uBAAuB;;;;IAIlC,+GAA+G;;;;;;;;;;;;EAE/G,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE;;GAEG;AACH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;EAI9C,CAAC;AACH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CACjD,OAAO,mCAAmC,CAC3C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QArBnC,+GAA+G;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiC/G,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -1275,13 +1275,13 @@ export declare const generateDocumentGenerationTemplateSchema: z.ZodObject<{
|
|
|
1275
1275
|
jsonMode: z.ZodOptional<z.ZodBoolean>;
|
|
1276
1276
|
}, "strip", z.ZodTypeAny, {
|
|
1277
1277
|
model?: string | undefined;
|
|
1278
|
-
temperature?: number | undefined;
|
|
1279
1278
|
maxTokens?: number | undefined;
|
|
1279
|
+
temperature?: number | undefined;
|
|
1280
1280
|
jsonMode?: boolean | undefined;
|
|
1281
1281
|
}, {
|
|
1282
1282
|
model?: string | undefined;
|
|
1283
|
-
temperature?: number | undefined;
|
|
1284
1283
|
maxTokens?: number | undefined;
|
|
1284
|
+
temperature?: number | undefined;
|
|
1285
1285
|
jsonMode?: boolean | undefined;
|
|
1286
1286
|
}>>;
|
|
1287
1287
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -1304,8 +1304,8 @@ export declare const generateDocumentGenerationTemplateSchema: z.ZodObject<{
|
|
|
1304
1304
|
} | undefined;
|
|
1305
1305
|
aiOptions?: {
|
|
1306
1306
|
model?: string | undefined;
|
|
1307
|
-
temperature?: number | undefined;
|
|
1308
1307
|
maxTokens?: number | undefined;
|
|
1308
|
+
temperature?: number | undefined;
|
|
1309
1309
|
jsonMode?: boolean | undefined;
|
|
1310
1310
|
} | undefined;
|
|
1311
1311
|
}, {
|
|
@@ -1327,8 +1327,8 @@ export declare const generateDocumentGenerationTemplateSchema: z.ZodObject<{
|
|
|
1327
1327
|
} | undefined;
|
|
1328
1328
|
aiOptions?: {
|
|
1329
1329
|
model?: string | undefined;
|
|
1330
|
-
temperature?: number | undefined;
|
|
1331
1330
|
maxTokens?: number | undefined;
|
|
1331
|
+
temperature?: number | undefined;
|
|
1332
1332
|
jsonMode?: boolean | undefined;
|
|
1333
1333
|
} | undefined;
|
|
1334
1334
|
}>;
|
package/dist/index.js
CHANGED
|
@@ -5319,6 +5319,7 @@ import { z as z20 } from "zod";
|
|
|
5319
5319
|
var CapabilityInputSchema = z20.object({
|
|
5320
5320
|
name: z20.string().min(1),
|
|
5321
5321
|
type: z20.enum(["string", "number", "boolean", "string[]"]),
|
|
5322
|
+
label: z20.string().optional(),
|
|
5322
5323
|
description: z20.string(),
|
|
5323
5324
|
required: z20.boolean().default(true),
|
|
5324
5325
|
default: z20.union([z20.string(), z20.number(), z20.boolean(), z20.array(z20.string())]).optional()
|
|
@@ -5330,6 +5331,11 @@ var CapabilityToolDefSchema = z20.object({
|
|
|
5330
5331
|
/** Bubble names used internally by this tool (e.g., ['google-drive']). Used for dependency graph hierarchy. */
|
|
5331
5332
|
internalBubbles: z20.array(z20.string()).optional()
|
|
5332
5333
|
});
|
|
5334
|
+
var CapabilityModelConfigOverrideSchema = z20.object({
|
|
5335
|
+
model: z20.string().optional(),
|
|
5336
|
+
reasoningEffort: z20.enum(["low", "medium", "high"]).optional(),
|
|
5337
|
+
maxTokens: z20.number().positive().optional()
|
|
5338
|
+
});
|
|
5333
5339
|
var CapabilityMetadataSchema = z20.object({
|
|
5334
5340
|
id: z20.string().min(1),
|
|
5335
5341
|
name: z20.string().min(1),
|
|
@@ -5340,7 +5346,8 @@ var CapabilityMetadataSchema = z20.object({
|
|
|
5340
5346
|
requiredCredentials: z20.array(z20.nativeEnum(CredentialType)),
|
|
5341
5347
|
inputs: z20.array(CapabilityInputSchema),
|
|
5342
5348
|
tools: z20.array(CapabilityToolDefSchema),
|
|
5343
|
-
systemPromptAddition: z20.string().optional()
|
|
5349
|
+
systemPromptAddition: z20.string().optional(),
|
|
5350
|
+
modelConfigOverride: CapabilityModelConfigOverrideSchema.optional()
|
|
5344
5351
|
});
|
|
5345
5352
|
export {
|
|
5346
5353
|
AIRTABLE_DELAY_LABELS,
|
|
@@ -5366,6 +5373,7 @@ export {
|
|
|
5366
5373
|
CREDENTIAL_TYPE_CONFIG,
|
|
5367
5374
|
CapabilityInputSchema,
|
|
5368
5375
|
CapabilityMetadataSchema,
|
|
5376
|
+
CapabilityModelConfigOverrideSchema,
|
|
5369
5377
|
CapabilityToolDefSchema,
|
|
5370
5378
|
ClarificationChoiceSchema,
|
|
5371
5379
|
ClarificationQuestionSchema,
|