@vornrun/connector-sdk 0.7.1-beta.1 → 0.7.1-beta.2
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.
|
@@ -3251,12 +3251,13 @@ function inputShape(inputs) {
|
|
|
3251
3251
|
function scalar(type) {
|
|
3252
3252
|
if (type === "number") return z.number();
|
|
3253
3253
|
if (type === "boolean") return z.boolean();
|
|
3254
|
-
return z.string();
|
|
3254
|
+
if (type === "string") return z.string();
|
|
3255
|
+
return z.unknown();
|
|
3255
3256
|
}
|
|
3256
3257
|
function outputSchema(outputs) {
|
|
3257
3258
|
const shape = {};
|
|
3258
3259
|
for (const output of outputs) {
|
|
3259
|
-
shape[output.key] = scalar(output.type).
|
|
3260
|
+
shape[output.key] = scalar(output.type).nullish().describe(output.description ?? output.key);
|
|
3260
3261
|
}
|
|
3261
3262
|
return z.looseObject(shape);
|
|
3262
3263
|
}
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED