@rcrsr/rill-ext-gemini 0.19.0 → 0.19.1
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/index.js +10 -5
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -221,11 +221,11 @@ function buildPropertyFromStructuralType(rillType) {
|
|
|
221
221
|
}
|
|
222
222
|
if (rillType.kind === "list") {
|
|
223
223
|
const listType = rillType;
|
|
224
|
-
const
|
|
224
|
+
const property2 = { type: "array" };
|
|
225
225
|
if (listType.element !== void 0) {
|
|
226
|
-
|
|
226
|
+
property2.items = buildPropertyFromStructuralType(listType.element);
|
|
227
227
|
}
|
|
228
|
-
return
|
|
228
|
+
return property2;
|
|
229
229
|
}
|
|
230
230
|
if (rillType.kind === "dict") {
|
|
231
231
|
const dictType = rillType;
|
|
@@ -238,9 +238,14 @@ function buildPropertyFromStructuralType(rillType) {
|
|
|
238
238
|
additionalProperties: false
|
|
239
239
|
};
|
|
240
240
|
}
|
|
241
|
-
return { type: "object" };
|
|
241
|
+
return { type: "object", additionalProperties: false };
|
|
242
242
|
}
|
|
243
|
-
|
|
243
|
+
const jsonType = mapRillType(rillType.kind);
|
|
244
|
+
const property = { type: jsonType };
|
|
245
|
+
if (jsonType === "object") {
|
|
246
|
+
property.additionalProperties = false;
|
|
247
|
+
}
|
|
248
|
+
return property;
|
|
244
249
|
}
|
|
245
250
|
function buildDictSchema(dictType) {
|
|
246
251
|
const properties = {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rcrsr/rill-ext-gemini",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.1",
|
|
4
4
|
"description": "rill extension for Google Gemini API integration",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Andre Bremer",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"dts-bundle-generator": "^9.5.1",
|
|
26
26
|
"tsup": "^8.5.1",
|
|
27
27
|
"undici-types": "^8.0.2",
|
|
28
|
-
"@rcrsr/rill-ext-
|
|
29
|
-
"@rcrsr/rill-ext-
|
|
28
|
+
"@rcrsr/rill-ext-llm-shared": "^0.19.0",
|
|
29
|
+
"@rcrsr/rill-ext-param-shared": "0.19.0"
|
|
30
30
|
},
|
|
31
31
|
"files": [
|
|
32
32
|
"dist"
|