openmates 0.12.0-alpha.1 → 0.12.0-alpha.3
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/{chunk-GJPN6PKK.js → chunk-3T6XUXII.js} +355 -65
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/package.json +2 -2
|
@@ -4031,7 +4031,8 @@ var OpenMatesClient = class _OpenMatesClient {
|
|
|
4031
4031
|
if (!topSchema) return [];
|
|
4032
4032
|
const requestsProp = topSchema.properties?.requests;
|
|
4033
4033
|
const itemsRef = requestsProp?.items;
|
|
4034
|
-
const itemSchema = itemsRef ? resolveSchema(itemsRef) :
|
|
4034
|
+
const itemSchema = itemsRef ? resolveSchema(itemsRef) : topSchema;
|
|
4035
|
+
const inputShape = itemsRef ? "requests" : "flat";
|
|
4035
4036
|
if (!itemSchema?.properties) return [];
|
|
4036
4037
|
const required = new Set(
|
|
4037
4038
|
Array.isArray(itemSchema.required) ? itemSchema.required : []
|
|
@@ -4064,7 +4065,8 @@ var OpenMatesClient = class _OpenMatesClient {
|
|
|
4064
4065
|
type: typeStr,
|
|
4065
4066
|
description: resolved.description ?? "",
|
|
4066
4067
|
required: required.has(name),
|
|
4067
|
-
default: resolved.default
|
|
4068
|
+
default: resolved.default,
|
|
4069
|
+
inputShape
|
|
4068
4070
|
};
|
|
4069
4071
|
});
|
|
4070
4072
|
}
|
|
@@ -18046,6 +18048,255 @@ var habitTrackerOnboardingDraftChat = {
|
|
|
18046
18048
|
};
|
|
18047
18049
|
|
|
18048
18050
|
// ../ui/src/demo_chats/data/example_chats/chickpea-spinach-protein-dinners.ts
|
|
18051
|
+
var imageEmbeds = [
|
|
18052
|
+
{
|
|
18053
|
+
embed_id: "ecd4fd0a-75fa-413a-80ee-5be5450ec68f",
|
|
18054
|
+
type: "image_result",
|
|
18055
|
+
content: `type: image_result
|
|
18056
|
+
title: Chickpea spinach curry process photo
|
|
18057
|
+
source_page_url: "https://www.thefieryvegetarian.com/chickpea-spinach-curry/"
|
|
18058
|
+
image_url: "https://www.thefieryvegetarian.com/wp-content/uploads/2019/03/chickpea-spinach-curry-process-photo-6.jpg"
|
|
18059
|
+
source: thefieryvegetarian.com
|
|
18060
|
+
embed_ref: thefieryvegetarian.com-3sr
|
|
18061
|
+
app_id: images
|
|
18062
|
+
skill_id: search`,
|
|
18063
|
+
parent_embed_id: null,
|
|
18064
|
+
embed_ids: null
|
|
18065
|
+
},
|
|
18066
|
+
{
|
|
18067
|
+
embed_id: "989fe7f7-6a54-48c3-9494-2cd2a3f9589d",
|
|
18068
|
+
type: "image_result",
|
|
18069
|
+
content: `type: image_result
|
|
18070
|
+
title: Chickpea and spinach curry step photo
|
|
18071
|
+
source_page_url: "https://vegancocotte.com/chickpea-spinach-curry/"
|
|
18072
|
+
image_url: "https://vegancocotte.com/wp-content/uploads/2022/09/Chickpea-and-Spinach-Curry-Steps-4.jpg"
|
|
18073
|
+
source: vegancocotte.com
|
|
18074
|
+
embed_ref: vegancocotte.com-IZt
|
|
18075
|
+
app_id: images
|
|
18076
|
+
skill_id: search`,
|
|
18077
|
+
parent_embed_id: null,
|
|
18078
|
+
embed_ids: null
|
|
18079
|
+
},
|
|
18080
|
+
{
|
|
18081
|
+
embed_id: "66de1a75-66ec-48ad-9c33-5628b89a67b4",
|
|
18082
|
+
type: "image_result",
|
|
18083
|
+
content: `type: image_result
|
|
18084
|
+
title: Chickpea and spinach curry with naan
|
|
18085
|
+
source_page_url: "https://vegancocotte.com/chickpea-spinach-curry/"
|
|
18086
|
+
image_url: "https://vegancocotte.com/wp-content/uploads/2022/09/Chickpea-and-Spinach-Curry-4.jpg"
|
|
18087
|
+
source: vegancocotte.com
|
|
18088
|
+
embed_ref: vegancocotte.com-rFn
|
|
18089
|
+
app_id: images
|
|
18090
|
+
skill_id: search`,
|
|
18091
|
+
parent_embed_id: null,
|
|
18092
|
+
embed_ids: null
|
|
18093
|
+
},
|
|
18094
|
+
{
|
|
18095
|
+
embed_id: "9e98f553-d055-446b-b274-fcef409e68f3",
|
|
18096
|
+
type: "image_result",
|
|
18097
|
+
content: `type: image_result
|
|
18098
|
+
title: Creamy chickpeas with spinach
|
|
18099
|
+
source_page_url: "https://runningonrealfood.com/spiced-chickpeas/"
|
|
18100
|
+
image_url: "https://runningonrealfood.com/wp-content/uploads/2026/01/creamy-marry-me-chickpeas-recipe-12-600x896.jpg"
|
|
18101
|
+
source: runningonrealfood.com
|
|
18102
|
+
embed_ref: runningonrealfood.com-R8H
|
|
18103
|
+
app_id: images
|
|
18104
|
+
skill_id: search`,
|
|
18105
|
+
parent_embed_id: null,
|
|
18106
|
+
embed_ids: null
|
|
18107
|
+
},
|
|
18108
|
+
{
|
|
18109
|
+
embed_id: "42f9a5c7-39d1-4f5d-aa25-64ac842ee11d",
|
|
18110
|
+
type: "image_result",
|
|
18111
|
+
content: `type: image_result
|
|
18112
|
+
title: Skillet chickpeas with spinach and tomatoes
|
|
18113
|
+
source_page_url: "https://americanhomecook.com/skillet-chickpeas-spinach-lemon/"
|
|
18114
|
+
image_url: "https://americanhomecook.com/wp-content/uploads/2023/01/Skillet-Chickpeas-with-Spinach-Tomatoes10-819x1024.jpg"
|
|
18115
|
+
source: americanhomecook.com
|
|
18116
|
+
embed_ref: americanhomecook.com-Alt
|
|
18117
|
+
app_id: images
|
|
18118
|
+
skill_id: search`,
|
|
18119
|
+
parent_embed_id: null,
|
|
18120
|
+
embed_ids: null
|
|
18121
|
+
},
|
|
18122
|
+
{
|
|
18123
|
+
embed_id: "28e60f6d-9775-48ff-abc4-e1db59106be9",
|
|
18124
|
+
type: "image_result",
|
|
18125
|
+
content: `type: image_result
|
|
18126
|
+
title: Curry with spinach, chickpeas, and tomatoes
|
|
18127
|
+
source_page_url: "https://shortgirltallorder.com/chickpea-tomato-spinach-curry"
|
|
18128
|
+
image_url: "https://shortgirltallorder.com/wp-content/uploads/2020/04/making-curry-in-cast-iron-skillet.jpg"
|
|
18129
|
+
source: shortgirltallorder.com
|
|
18130
|
+
embed_ref: shortgirltallorder.com-QXv
|
|
18131
|
+
app_id: images
|
|
18132
|
+
skill_id: search`,
|
|
18133
|
+
parent_embed_id: null,
|
|
18134
|
+
embed_ids: null
|
|
18135
|
+
},
|
|
18136
|
+
{
|
|
18137
|
+
embed_id: "43008b96-c5f7-433a-89ee-19749a79a231",
|
|
18138
|
+
type: "image_result",
|
|
18139
|
+
content: `type: image_result
|
|
18140
|
+
title: Spanish chickpeas and spinach
|
|
18141
|
+
source_page_url: "https://www.carolinescooking.com/spanish-chickpeas-and-spinach/"
|
|
18142
|
+
image_url: "https://www.carolinescooking.com/wp-content/uploads/2015/04/Spanish-chickpeas-and-spinach-pin.jpg"
|
|
18143
|
+
source: carolinescooking.com
|
|
18144
|
+
embed_ref: carolinescooking.com-Dy7
|
|
18145
|
+
app_id: images
|
|
18146
|
+
skill_id: search`,
|
|
18147
|
+
parent_embed_id: null,
|
|
18148
|
+
embed_ids: null
|
|
18149
|
+
},
|
|
18150
|
+
{
|
|
18151
|
+
embed_id: "771fae42-32e9-4e9d-b8ee-9f9c0afbce91",
|
|
18152
|
+
type: "image_result",
|
|
18153
|
+
content: `type: image_result
|
|
18154
|
+
title: Spanish spinach with chickpeas
|
|
18155
|
+
source_page_url: "https://simpleveganblog.com/spanish-spinach-with-chickpeas/"
|
|
18156
|
+
image_url: "https://simpleveganblog.com/wp-content/uploads/2015/01/Spanish-Spinach-with-chickpeas-simpleveganblog.com-vegan-2.jpg"
|
|
18157
|
+
source: simpleveganblog.com
|
|
18158
|
+
embed_ref: simpleveganblog.com-8dt
|
|
18159
|
+
app_id: images
|
|
18160
|
+
skill_id: search`,
|
|
18161
|
+
parent_embed_id: null,
|
|
18162
|
+
embed_ids: null
|
|
18163
|
+
},
|
|
18164
|
+
{
|
|
18165
|
+
embed_id: "6434fec2-7336-4318-b41c-7bf2dff7da61",
|
|
18166
|
+
type: "image_result",
|
|
18167
|
+
content: `type: image_result
|
|
18168
|
+
title: Plated Spanish sauteed chickpeas with spinach
|
|
18169
|
+
source_page_url: "https://ourplantbasedworld.com/sauteed-chickpeas-spinach-spanish/"
|
|
18170
|
+
image_url: "https://ourplantbasedworld.com/wp-content/uploads/2023/03/sauteed-chickpeas-spinach-spanish-7409231.jpg"
|
|
18171
|
+
source: ourplantbasedworld.com
|
|
18172
|
+
embed_ref: ourplantbasedworld.com-Krr
|
|
18173
|
+
app_id: images
|
|
18174
|
+
skill_id: search`,
|
|
18175
|
+
parent_embed_id: null,
|
|
18176
|
+
embed_ids: null
|
|
18177
|
+
}
|
|
18178
|
+
];
|
|
18179
|
+
var nutritionEmbeds = [
|
|
18180
|
+
{
|
|
18181
|
+
embed_id: "d7f21a46-8f13-4f14-82c4-d868ba62bb8a",
|
|
18182
|
+
type: "app_skill_use",
|
|
18183
|
+
content: `app_id: nutrition
|
|
18184
|
+
skill_id: search_recipes
|
|
18185
|
+
result_count: 3
|
|
18186
|
+
embed_ref: nutrition-search-recipes-chickpea-spinach
|
|
18187
|
+
embed_ids: 0a4679f4-b2eb-43df-ac66-30e99a98c66b|67e396cc-2a88-4b9a-abf2-be225cce0f03|ce64916b-7e17-4e01-a972-78231cb11b8c
|
|
18188
|
+
status: finished
|
|
18189
|
+
embed_id: d7f21a46-8f13-4f14-82c4-d868ba62bb8a
|
|
18190
|
+
query: chickpea and spinach dinner
|
|
18191
|
+
max_results: 3
|
|
18192
|
+
time: 1-35
|
|
18193
|
+
health: vegetarian
|
|
18194
|
+
provider: Edamam
|
|
18195
|
+
preview_results[3]{title,source,provider,image_url,calories_per_serving}:
|
|
18196
|
+
Spinach and Chickpeas,theharvestkitchen.com,Edamam,https://edamam-product-images.s3.amazonaws.com/web-img/a0a/a0a6a1e734b3db0b2c9d9b66915ead7a-l.jpg,217
|
|
18197
|
+
Chickpea and Spinach Curry,hintofhealthy.com,Edamam,https://edamam-product-images.s3.amazonaws.com/web-img/faa/faa98d303d8822dd2af21e9a55732d9f-l.jpg,220
|
|
18198
|
+
Spinach and chickpea curry,damntastyvegan.com,Edamam,https://edamam-product-images.s3.amazonaws.com/web-img/d5d/d5d8ac796cc1b5abbd778b2c22a6d63d-l.jpg,477`,
|
|
18199
|
+
parent_embed_id: null,
|
|
18200
|
+
embed_ids: [
|
|
18201
|
+
"0a4679f4-b2eb-43df-ac66-30e99a98c66b",
|
|
18202
|
+
"67e396cc-2a88-4b9a-abf2-be225cce0f03",
|
|
18203
|
+
"ce64916b-7e17-4e01-a972-78231cb11b8c"
|
|
18204
|
+
]
|
|
18205
|
+
},
|
|
18206
|
+
{
|
|
18207
|
+
embed_id: "0a4679f4-b2eb-43df-ac66-30e99a98c66b",
|
|
18208
|
+
type: "recipe",
|
|
18209
|
+
content: `type: recipe
|
|
18210
|
+
uid: recipe_60b831cae4ae4f3dbc7ec0df6b87de0f
|
|
18211
|
+
title: Spinach and Chickpeas
|
|
18212
|
+
recipe_url: "https://www.theharvestkitchen.com/spinach-and-chickpeas/"
|
|
18213
|
+
source: theharvestkitchen.com
|
|
18214
|
+
provider: Edamam
|
|
18215
|
+
embed_ref: nutrition-spinach-and-chickpeas
|
|
18216
|
+
image_url: "https://edamam-product-images.s3.amazonaws.com/web-img/a0a/a0a6a1e734b3db0b2c9d9b66915ead7a-l.jpg"
|
|
18217
|
+
total_time_minutes: 20
|
|
18218
|
+
servings: 4
|
|
18219
|
+
calories_total: 869
|
|
18220
|
+
calories_per_serving: 217
|
|
18221
|
+
diet_labels: Balanced|High-Fiber
|
|
18222
|
+
health_labels: Kidney-Friendly|Vegan|Vegetarian|Pescatarian|Mediterranean|DASH|Dairy-Free|Gluten-Free
|
|
18223
|
+
cuisine_type: middle eastern
|
|
18224
|
+
meal_type: lunch/dinner
|
|
18225
|
+
dish_type: main course
|
|
18226
|
+
ingredients: 1-1/2 tablespoons extra-virgin olive oil|2/3 cup tomatoes, diced|1/2 large white onion, diced|2 teaspoons garlic, minced|3 cups low-sodium canned garbanzo beans, drained and rinsed|2 cups baby spinach
|
|
18227
|
+
instructions: Heat olive oil in pan.|Add onion and saute for 2-3 minutes. Stir in garlic and saute another minute. Pour in tomatoes and cook a minute. Add garbanzo beans and cook for 10 minutes with 3-4 tablespoons water or vegetable broth. Fold in baby spinach and taste to adjust for seasoning.
|
|
18228
|
+
nutrition_calories_kcal: 217
|
|
18229
|
+
nutrition_protein_g: 8.7
|
|
18230
|
+
nutrition_fat_g: 8
|
|
18231
|
+
nutrition_carbs_g: 29.5
|
|
18232
|
+
nutrition_fiber_g: 7.9
|
|
18233
|
+
nutrition_sodium_mg: 248`,
|
|
18234
|
+
parent_embed_id: "d7f21a46-8f13-4f14-82c4-d868ba62bb8a",
|
|
18235
|
+
embed_ids: null
|
|
18236
|
+
},
|
|
18237
|
+
{
|
|
18238
|
+
embed_id: "67e396cc-2a88-4b9a-abf2-be225cce0f03",
|
|
18239
|
+
type: "recipe",
|
|
18240
|
+
content: `type: recipe
|
|
18241
|
+
uid: recipe_2442d3551cf54cf1bce405e62819260c
|
|
18242
|
+
title: Chickpea and Spinach Curry
|
|
18243
|
+
recipe_url: "https://www.hintofhealthy.com/chickpea-and-spinach-curry/"
|
|
18244
|
+
source: hintofhealthy.com
|
|
18245
|
+
provider: Edamam
|
|
18246
|
+
embed_ref: nutrition-chickpea-spinach-curry
|
|
18247
|
+
image_url: "https://edamam-product-images.s3.amazonaws.com/web-img/faa/faa98d303d8822dd2af21e9a55732d9f-l.jpg"
|
|
18248
|
+
total_time_minutes: 10
|
|
18249
|
+
servings: 4
|
|
18250
|
+
calories_total: 879
|
|
18251
|
+
calories_per_serving: 220
|
|
18252
|
+
diet_labels: High-Fiber
|
|
18253
|
+
health_labels: Vegan|Vegetarian|Pescatarian|Dairy-Free|Gluten-Free|Wheat-Free|Egg-Free|Peanut-Free
|
|
18254
|
+
cuisine_type: indian
|
|
18255
|
+
meal_type: lunch/dinner
|
|
18256
|
+
dish_type: main course
|
|
18257
|
+
ingredients: 1 (15 oz) can chickpeas, drained and rinsed|1 (15 oz) can diced tomatoes|1 onion|4 garlic cloves|1 red chili pepper|3 tablespoons curry paste|2 tablespoons tomato paste|1 tablespoon diced ginger|3 cups spinach|1 teaspoon vegetable oil
|
|
18258
|
+
instructions: Finely dice the onion, garlic, ginger and red chili.|Add the onion, garlic, ginger and chili to a large pot along with the vegetable oil.|Saute for about 1 minute, or until the onion is soft and fragrant.|Add tomato paste and curry paste to the pot, and saute for another minute.|Add canned diced tomatoes, and drained and rinsed canned chickpeas.|Stir to combine all ingredients, and cover the pot with a lid.|Leave the curry to simmer on medium to high heat for about 3-5 minutes.|Add washed spinach to the curry, and stir until the leaves have wilted, about 1-2 minutes.
|
|
18259
|
+
nutrition_calories_kcal: 220
|
|
18260
|
+
nutrition_protein_g: 10.5
|
|
18261
|
+
nutrition_fat_g: 5.3
|
|
18262
|
+
nutrition_carbs_g: 36.2
|
|
18263
|
+
nutrition_fiber_g: 10.8
|
|
18264
|
+
nutrition_sodium_mg: 368`,
|
|
18265
|
+
parent_embed_id: "d7f21a46-8f13-4f14-82c4-d868ba62bb8a",
|
|
18266
|
+
embed_ids: null
|
|
18267
|
+
},
|
|
18268
|
+
{
|
|
18269
|
+
embed_id: "ce64916b-7e17-4e01-a972-78231cb11b8c",
|
|
18270
|
+
type: "recipe",
|
|
18271
|
+
content: `type: recipe
|
|
18272
|
+
uid: recipe_db074a7259484379adedc360d8e793b9
|
|
18273
|
+
title: Spinach and chickpea curry
|
|
18274
|
+
recipe_url: "https://damntastyvegan.com/spinach-chickpea-curry/"
|
|
18275
|
+
source: damntastyvegan.com
|
|
18276
|
+
provider: Edamam
|
|
18277
|
+
embed_ref: nutrition-skillet-chickpeas-spinach-tomatoes
|
|
18278
|
+
total_time_minutes: 25
|
|
18279
|
+
servings: 4
|
|
18280
|
+
image_url: "https://edamam-product-images.s3.amazonaws.com/web-img/d5d/d5d8ac796cc1b5abbd778b2c22a6d63d-l.jpg"
|
|
18281
|
+
calories_total: 1907
|
|
18282
|
+
calories_per_serving: 477
|
|
18283
|
+
diet_labels: Balanced|High-Fiber
|
|
18284
|
+
health_labels: Vegan|Vegetarian|Pescatarian|Mediterranean|Dairy-Free|Gluten-Free|Wheat-Free|Egg-Free
|
|
18285
|
+
cuisine_type: indian
|
|
18286
|
+
meal_type: lunch/dinner
|
|
18287
|
+
dish_type: main course
|
|
18288
|
+
ingredients: 2 tablespoons neutral oil|1 medium onion, diced|4 cloves garlic, minced|1 teaspoon fresh ginger, minced|1 teaspoon cumin powder|2 teaspoons coriander powder|1/2 teaspoon turmeric powder|1 tablespoon curry powder|15 ounce can crushed tomatoes|2 (15 ounce) cans chickpeas
|
|
18289
|
+
instructions: Heat up oil in a large pan on medium heat.|Once pan is hot, add the onions and saute until golden brown and translucent.|Add the garlic and ginger and saute for five minutes.|Add all of the spices and saute for 30 seconds. Add the canned tomatoes, chickpeas, water, baking powder and salt.|Cover and bring to a simmer.|Simmer for 10 minutes.|After 10 minutes, add the frozen spinach, cover and simmer for another 5-10 minutes, or until the spinach is warmed through.|Smash a few chickpeas with the back of your spoon to thicken the sauce.|Add the lemon juice, cilantro and optional coconut milk.|Serve over basmati rice or with Indian bread.
|
|
18290
|
+
nutrition_calories_kcal: 477
|
|
18291
|
+
nutrition_protein_g: 18.5
|
|
18292
|
+
nutrition_fat_g: 19.8
|
|
18293
|
+
nutrition_carbs_g: 62.5
|
|
18294
|
+
nutrition_fiber_g: 17.7
|
|
18295
|
+
nutrition_sodium_mg: 1277`,
|
|
18296
|
+
parent_embed_id: "d7f21a46-8f13-4f14-82c4-d868ba62bb8a",
|
|
18297
|
+
embed_ids: null
|
|
18298
|
+
}
|
|
18299
|
+
];
|
|
18049
18300
|
var chickpeaSpinachProteinDinnersChat = {
|
|
18050
18301
|
chat_id: "example-chickpea-spinach-protein-dinners",
|
|
18051
18302
|
slug: "chickpea-spinach-protein-dinners",
|
|
@@ -18053,65 +18304,25 @@ var chickpeaSpinachProteinDinnersChat = {
|
|
|
18053
18304
|
summary: "example_chats.chickpea_spinach_protein_dinners.summary",
|
|
18054
18305
|
icon: "utensils",
|
|
18055
18306
|
category: "cooking_food",
|
|
18056
|
-
keywords: ["vegetarian recipes", "
|
|
18307
|
+
keywords: ["vegetarian recipes", "chickpeas", "spinach", "protein dinner", "Edamam"],
|
|
18057
18308
|
follow_up_suggestions: [],
|
|
18058
18309
|
messages: [
|
|
18059
18310
|
{
|
|
18060
|
-
id: "
|
|
18311
|
+
id: "dc8fb03c-e917-4b53-8e01-c131b8ab3bdb",
|
|
18061
18312
|
role: "user",
|
|
18062
18313
|
content: "example_chats.chickpea_spinach_protein_dinners.message_1",
|
|
18063
|
-
created_at:
|
|
18314
|
+
created_at: 1781353445
|
|
18064
18315
|
},
|
|
18065
18316
|
{
|
|
18066
|
-
id: "
|
|
18317
|
+
id: "dbacf972-09e4-4a86-a30f-f343598986f7",
|
|
18067
18318
|
role: "assistant",
|
|
18068
18319
|
content: "example_chats.chickpea_spinach_protein_dinners.message_2",
|
|
18069
|
-
created_at:
|
|
18320
|
+
created_at: 1781353503,
|
|
18070
18321
|
category: "cooking_food",
|
|
18071
18322
|
model_name: "Gemini 3 Flash"
|
|
18072
18323
|
}
|
|
18073
18324
|
],
|
|
18074
|
-
embeds: [
|
|
18075
|
-
{
|
|
18076
|
-
embed_id: "e6f639a6-5911-461b-8749-9e26874e56b6",
|
|
18077
|
-
type: "sheet",
|
|
18078
|
-
content: 'type: sheet\napp_id: sheets\nskill_id: sheet\ntable: "| Recipe Title | Prep/Cook Time | Protein Source | Best For... |\\n| :--- | :--- | :--- | :--- |\\n| **1. One-Pot Chana Saag (Curry)** | 25 mins | Chickpeas + Greek Yogurt | Flavor depth & meal prep |\\n| **2. Garlicky Chickpea & Spinach Pasta** | 20 mins | Chickpeas + Parmesan/Pasta | Speed & picky eaters |\\n| **3. Mediterranean Chickpea Stew** | 30 mins | Chickpeas + Feta | Comfort & hearty texture |"\ntitle: ""\nembed_ref: sheet-e6f639\nstatus: finished\nrow_count: 3\ncol_count: 4',
|
|
18079
|
-
parent_embed_id: null,
|
|
18080
|
-
embed_ids: null
|
|
18081
|
-
},
|
|
18082
|
-
{
|
|
18083
|
-
embed_id: "0f3d4856-52c7-4843-ad65-4bab26269b1e",
|
|
18084
|
-
type: "app_skill_use",
|
|
18085
|
-
content: "app_id: nutrition\nskill_id: search_recipes\nresult_count: 3\nembed_ids: 25fdb4e8-1fbe-44c2-b974-9153b58d93d7|578cdebb-f8c3-47c5-a96a-d5f9bb8838ad|6408f6a0-af18-4f8c-9996-d370e175f468\nstatus: finished\nembed_id: 0f3d4856-52c7-4843-ad65-4bab26269b1e\nquery: vegetarian chickpea spinach dinner under 35 minutes\nprovider: REWE\nproviders: REWE\nfilters: vegetarisch|hauptspeise|einfach\nmax_results: 3\npreview_title: REWE vegetarian chickpea and spinach recipes\npreview_summary: 3 current REWE recipes with timings, ingredients, instructions, and nutrition.",
|
|
18086
|
-
parent_embed_id: null,
|
|
18087
|
-
embed_ids: [
|
|
18088
|
-
"25fdb4e8-1fbe-44c2-b974-9153b58d93d7",
|
|
18089
|
-
"578cdebb-f8c3-47c5-a96a-d5f9bb8838ad",
|
|
18090
|
-
"6408f6a0-af18-4f8c-9996-d370e175f468"
|
|
18091
|
-
]
|
|
18092
|
-
},
|
|
18093
|
-
{
|
|
18094
|
-
embed_id: "25fdb4e8-1fbe-44c2-b974-9153b58d93d7",
|
|
18095
|
-
type: "recipe",
|
|
18096
|
-
content: 'uid: rewe-kichererbsen-pfanne-spinat\ntitle: Kichererbsen-Pfanne mit Spinat\nslug: kichererbsen-pfanne-spinat\nrecipe_url: "https://www.rewe.de/rezepte/kichererbsen-pfanne-spinat/"\nimage_url: "https://c.rewe-static.de/30907863/8/30907863.png?impolicy=recipe-meta-image"\ndescription: "Eine kunterbunte Freude f\xFCr Auge und Gaumen: ein schnelles Pfannengericht mit Kichererbsen, Spinat, Tomaten und Curry."\nprep_time_minutes: 10\ncook_time_minutes: 5\ntotal_time_minutes: 15\nservings: 4\ndifficulty: Einfach\nrating: 4.2\nrating_count: 436\nernaehrwert_score: null\ndietary_tags: Vegetarisch|Vegan|Low Carb|Laktosefrei\ncategories: Gem\xFCsepfannen|Pfannengericht|Fitness|gesund\ningredients: 2 Gl\xE4ser REWE Bio Kichererbsen 220g|300 g Blattspinat|400 g Tomaten|2 gro\xDFe Zwiebeln|2 EL Oliven\xF6l|Salz|1 TL Curry\ninstructions: Kichererbsen abtropfen lassen.|Spinat und Tomaten waschen.|Tomaten in grobe W\xFCrfel schneiden.|Zwiebel sch\xE4len und in feine W\xFCrfel schneiden.|\xD6l in einer Pfanne erhitzen und Zwiebeln darin anbraten.|Kichererbsen, Tomaten und Spinat dazugeben und kurz and\xFCnsten.|Mit Salz und Curry w\xFCrzen.\nnutrition_energy: 232 kcal\nnutrition_carbohydrates: 32.5 g\nnutrition_fat: 8.4 g\nnutrition_protein: 10.7 g\nsearch_rank: 1\nfrom_cache: false\ntype: recipe\nprovider: REWE\ntotal_available: 3\nembed_ref: kichererbsen-pfanne-spinat-Tx1\napp_id: nutrition\nskill_id: search_recipes',
|
|
18097
|
-
parent_embed_id: "0f3d4856-52c7-4843-ad65-4bab26269b1e",
|
|
18098
|
-
embed_ids: null
|
|
18099
|
-
},
|
|
18100
|
-
{
|
|
18101
|
-
embed_id: "578cdebb-f8c3-47c5-a96a-d5f9bb8838ad",
|
|
18102
|
-
type: "recipe",
|
|
18103
|
-
content: 'uid: rewe-spinat-shakshuka\ntitle: Shakshuka mit Spinat\nslug: spinat-shakshuka\nrecipe_url: "https://www.rewe.de/rezepte/spinat-shakshuka/"\nimage_url: "https://c.rewe-static.de/41493116/2/41493116.png?impolicy=recipe-meta-image"\ndescription: "Vegetarische Shakshuka mit Spinat, Kichererbsen, Tomatensauce und Eiern."\nprep_time_minutes: 15\ncook_time_minutes: 10\ntotal_time_minutes: 25\nservings: 4\ndifficulty: Einfach\nrating: 4.4\nrating_count: 33\nernaehrwert_score: null\ndietary_tags: Vegetarisch|Laktosefrei\ncategories: Hauptspeise|Mittagessen|Abendessen|herzhaft|Geringer Aufwand|gesund|Brunch\ningredients: 1 REWE Beste Wahl Fladenbrot 500 g|1 Pck. REWE Beste Wahl Junger Spinat 450 g, aufgetaut|1 Glas REWE Bio Kichererbsen 220 g|2 Pck. REWE Beste Wahl Tomatensauce Basilikum 380 ml|1 TL Kreuzk\xFCmmel gemahlen|Salz|Pfeffer|4 Eier M, zimmerwarm\ninstructions: Fladenbrot nach Packungsanweisung im Ofen aufbacken; Spinat gut ausdr\xFCcken; Kichererbsen abgie\xDFen; Backofen auf 200 \xB0C vorheizen.|Tomatensauce in einer hohen Pfanne erhitzen; Spinat und Kichererbsen zugeben; mit Kreuzk\xFCmmel, Salz und Pfeffer w\xFCrzen und aufkochen.|Vier Mulden in die So\xDFe dr\xFCcken; Eier aufschlagen und in die Mulden geben; im hei\xDFen Ofen 10 Minuten stocken lassen.|Mit dem Fladenbrot servieren.\nnutrition_energy: 656 kcal\nnutrition_carbohydrates: 96.8 g\nnutrition_fat: 19.7 g\nnutrition_protein: 28 g\nsearch_rank: 2\nfrom_cache: false\ntype: recipe\nprovider: REWE\ntotal_available: 3\nembed_ref: spinat-shakshuka-Fm2\napp_id: nutrition\nskill_id: search_recipes',
|
|
18104
|
-
parent_embed_id: "0f3d4856-52c7-4843-ad65-4bab26269b1e",
|
|
18105
|
-
embed_ids: null
|
|
18106
|
-
},
|
|
18107
|
-
{
|
|
18108
|
-
embed_id: "6408f6a0-af18-4f8c-9996-d370e175f468",
|
|
18109
|
-
type: "recipe",
|
|
18110
|
-
content: 'uid: rewe-auberginen-curry\ntitle: Auberginen-Curry\nslug: auberginen-curry\nrecipe_url: "https://www.rewe.de/rezepte/auberginen-curry/"\nimage_url: "https://c.rewe-static.de/35209327/1/35209327.png?impolicy=recipe-meta-image"\ndescription: "Schnelles vegetarisch-veganes Curry mit Auberginen, Kichererbsen, Babyspinat und Kokosmilch."\nprep_time_minutes: 15\ncook_time_minutes: 15\ntotal_time_minutes: 30\nservings: 4\ndifficulty: Einfach\nrating: 4.8\nrating_count: 13\nernaehrwert_score: null\ndietary_tags: Vegetarisch|Vegan|Laktosefrei|Kalorienarm\ncategories: Hauptspeise|Gem\xFCse|Curry\ningredients: 2 Auberginen|Salz|400 g Kichererbsen|200 g Babyspinat frisch|2 Zwiebeln|15 g Ingwer|5 EL Raps\xF6l|1 TL Garam Masala|1 TL Kurkuma gemahlen|200 ml Gem\xFCsefond|200 ml Kokosmilch|Pfeffer\ninstructions: Auberginen waschen, in 3 cm gro\xDFe W\xFCrfel schneiden, leicht salzen und ca. 5 Minuten ziehen lassen.|Kichererbsen absp\xFClen und abtropfen lassen; Spinat waschen und trocken schleudern.|Zwiebeln und Ingwer sch\xE4len und w\xFCrfeln.|Auberginenw\xFCrfel in 3 EL Raps\xF6l scharf anbraten und herausnehmen.|Zwiebeln und Ingwer in 2 EL Raps\xF6l anschwitzen; Garam Masala und Kurkuma zugeben und mit Gem\xFCsefond abl\xF6schen.|Auberginen, Kichererbsen und Spinat zugeben und aufkochen lassen.|Kokosmilch unterr\xFChren und ca. 10 Minuten mit Deckel k\xF6cheln lassen.|Mit Salz und Pfeffer abschmecken; dazu z. B. Reis servieren.\nnutrition_energy: 204 kcal\nnutrition_carbohydrates: 16.8 g\nnutrition_fat: 13.8 g\nnutrition_protein: 6 g\nsearch_rank: 3\nfrom_cache: false\ntype: recipe\nprovider: REWE\ntotal_available: 3\nembed_ref: auberginen-curry-Lp3\napp_id: nutrition\nskill_id: search_recipes',
|
|
18111
|
-
parent_embed_id: "0f3d4856-52c7-4843-ad65-4bab26269b1e",
|
|
18112
|
-
embed_ids: null
|
|
18113
|
-
}
|
|
18114
|
-
],
|
|
18325
|
+
embeds: [...imageEmbeds, ...nutritionEmbeds],
|
|
18115
18326
|
metadata: {
|
|
18116
18327
|
featured: true,
|
|
18117
18328
|
order: 30,
|
|
@@ -23975,17 +24186,17 @@ Only output the final Markdown table. Do NOT include explanations, notes, or any
|
|
|
23975
24186
|
search_recipes: {
|
|
23976
24187
|
text: "Search Recipes",
|
|
23977
24188
|
description: {
|
|
23978
|
-
text: "Search
|
|
24189
|
+
text: "Search recipes by query, nutrition filters, and step-by-step instructions."
|
|
23979
24190
|
},
|
|
23980
24191
|
how_to_use: {
|
|
23981
24192
|
"1": {
|
|
23982
|
-
text: "**Find
|
|
24193
|
+
text: "**Find vegan** pasta recipes with instructions"
|
|
23983
24194
|
},
|
|
23984
24195
|
"2": {
|
|
23985
|
-
text: "**Search** for quick
|
|
24196
|
+
text: "**Search** for quick dinners under 30 minutes"
|
|
23986
24197
|
},
|
|
23987
24198
|
"3": {
|
|
23988
|
-
text: "Show me **gluten-free**
|
|
24199
|
+
text: "Show me **gluten-free** pancakes with steps"
|
|
23989
24200
|
}
|
|
23990
24201
|
}
|
|
23991
24202
|
}
|
|
@@ -24757,6 +24968,12 @@ Only output the final Markdown table. Do NOT include explanations, notes, or any
|
|
|
24757
24968
|
text: "Get daily and hourly weather forecasts."
|
|
24758
24969
|
}
|
|
24759
24970
|
},
|
|
24971
|
+
rain_radar: {
|
|
24972
|
+
text: "Rain radar",
|
|
24973
|
+
description: {
|
|
24974
|
+
text: "Show nearby rain radar with an interactive timeline."
|
|
24975
|
+
}
|
|
24976
|
+
},
|
|
24760
24977
|
day: {
|
|
24761
24978
|
text: "Weather day"
|
|
24762
24979
|
}
|
|
@@ -25560,6 +25777,9 @@ Only output the final Markdown table. Do NOT include explanations, notes, or any
|
|
|
25560
25777
|
title: {
|
|
25561
25778
|
text: "Continue where you left off"
|
|
25562
25779
|
},
|
|
25780
|
+
decrypting: {
|
|
25781
|
+
text: "Decrypting chats..."
|
|
25782
|
+
},
|
|
25563
25783
|
continue_button: {
|
|
25564
25784
|
text: "Continue"
|
|
25565
25785
|
},
|
|
@@ -27365,6 +27585,34 @@ Only output the final Markdown table. Do NOT include explanations, notes, or any
|
|
|
27365
27585
|
}
|
|
27366
27586
|
},
|
|
27367
27587
|
embeds: {
|
|
27588
|
+
weather: {
|
|
27589
|
+
rain_radar: {
|
|
27590
|
+
no_rain: {
|
|
27591
|
+
text: "No rain visible near this location."
|
|
27592
|
+
},
|
|
27593
|
+
unavailable: {
|
|
27594
|
+
text: "Rain radar is unavailable for this location."
|
|
27595
|
+
},
|
|
27596
|
+
peak: {
|
|
27597
|
+
text: "Peak"
|
|
27598
|
+
},
|
|
27599
|
+
at_location: {
|
|
27600
|
+
text: "At location"
|
|
27601
|
+
},
|
|
27602
|
+
play: {
|
|
27603
|
+
text: "Play"
|
|
27604
|
+
},
|
|
27605
|
+
pause: {
|
|
27606
|
+
text: "Pause"
|
|
27607
|
+
},
|
|
27608
|
+
frames: {
|
|
27609
|
+
text: "frames"
|
|
27610
|
+
},
|
|
27611
|
+
load_failed: {
|
|
27612
|
+
text: "Radar data could not be loaded. Showing the summary view instead."
|
|
27613
|
+
}
|
|
27614
|
+
}
|
|
27615
|
+
},
|
|
27368
27616
|
search: {
|
|
27369
27617
|
text: "Search"
|
|
27370
27618
|
},
|
|
@@ -28216,8 +28464,8 @@ Only output the final Markdown table. Do NOT include explanations, notes, or any
|
|
|
28216
28464
|
health_score: {
|
|
28217
28465
|
text: "Health Score"
|
|
28218
28466
|
},
|
|
28219
|
-
|
|
28220
|
-
text: "View
|
|
28467
|
+
view_source: {
|
|
28468
|
+
text: "View source"
|
|
28221
28469
|
}
|
|
28222
28470
|
},
|
|
28223
28471
|
wiki: {
|
|
@@ -28810,13 +29058,13 @@ Only output the final Markdown table. Do NOT include explanations, notes, or any
|
|
|
28810
29058
|
text: "Chickpea Spinach Protein Dinners"
|
|
28811
29059
|
},
|
|
28812
29060
|
summary: {
|
|
28813
|
-
text: "
|
|
29061
|
+
text: "Find quick vegetarian chickpea and spinach dinners with Edamam recipe cards, instructions, and protein details."
|
|
28814
29062
|
},
|
|
28815
29063
|
message_1: {
|
|
28816
|
-
text: "Find vegetarian
|
|
29064
|
+
text: "Find 3 vegetarian chickpea and spinach dinner recipes under 35 minutes with step-by-step instructions and protein details"
|
|
28817
29065
|
},
|
|
28818
29066
|
message_2: {
|
|
28819
|
-
text: '```json\n{"type":
|
|
29067
|
+
text: '```json\n{"type":"app_skill_use","embed_id":"d7f21a46-8f13-4f14-82c4-d868ba62bb8a","app_id":"nutrition","skill_id":"search_recipes","query":"chickpea and spinach dinner","provider":"Edamam","status":"finished"}\n```\n\nHere are three delicious, protein-packed vegetarian chickpea and spinach dinner recipes that you can whip up in under 35 minutes.\n\n### 1. 10-Minute Chickpea and Spinach Curry\nThis is an incredibly fast [curry](wiki:Curry) that relies on aromatics and pantry staples for a rich, satisfying flavor in record time.\n\n[!](embed:thefieryvegetarian.com-3sr)\n[!](embed:vegancocotte.com-IZt)\n[!](embed:vegancocotte.com-rFn)\n\n* **Total Time:** 10 minutes\n* **Protein Content:** ~10.5g per serving\n* **Servings:** 4\n\n**Ingredients:**\n* 1 (15 oz) can [chickpeas](wiki:Chickpea) (drained and rinsed)\n* 1 (15 oz) can diced [tomatoes](wiki:Tomato)\n* 1 [onion](wiki:Onion), 4 [garlic](wiki:Garlic) cloves, 1 red chili, 1 tbsp ginger (all finely diced)\n* 3 tbsp curry paste & 2 tbsp [tomato paste](wiki:Tomato_paste)\n* 3 cups fresh [spinach](wiki:Spinach)\n* 1 tsp vegetable oil\n\n**Instructions:**\n1. **Saut\xE9 Aromatics:** Heat oil in a large pot. Add diced onion, garlic, ginger, and chili. Saut\xE9 for about 1 minute until fragrant.\n2. **Build Flavor:** Stir in the tomato paste and curry paste, saut\xE9ing for another minute to release the oils.\n3. **Simmer:** Pour in the canned tomatoes and chickpeas. Cover and simmer on medium-high heat for 3\u20135 minutes.\n4. **Wilt Spinach:** Stir in the fresh spinach leaves until they wilt (about 1\u20132 minutes). Serve immediately.\n\n---\n\n### 2. 15-Minute Skillet Chickpeas with Spinach and Tomatoes\nThis Mediterranean-style dish uses spices like [turmeric](wiki:Turmeric) and a finishing touch of lemon juice for a bright, healthy meal.\n\n[!](embed:runningonrealfood.com-R8H)\n[!](embed:americanhomecook.com-Alt)\n[!](embed:shortgirltallorder.com-QXv)\n\n* **Total Time:** 15 minutes\n* **Protein Content:** ~23.1g per serving\n* **Servings:** 2\n\n**Ingredients:**\n* 1 (15 oz) can chickpeas (drained and rinsed)\n* 1 (14.5 oz) can diced tomatoes\n* 5 oz baby spinach\n* 1 small onion (diced) & 4 garlic cloves (sliced)\n* \xBD tsp ground turmeric & \xBD tsp [red pepper flakes](wiki:Crushed_red_pepper)\n* 3 tbsp [olive oil](wiki:Olive_oil), lemon juice, and fresh herbs ([cilantro](wiki:Coriander) or [parsley](wiki:Parsley))\n\n**Instructions:**\n1. **Fry Aromatics:** Heat oil in a skillet over low heat. Cook onion and garlic until translucent and slightly browned (3\u20135 minutes).\n2. **Toast Spices:** Add turmeric and red pepper flakes. Toast for 1 minute, then add chickpeas with a drizzle of oil and salt/pepper. Sizzle for 5\u20137 minutes.\n3. **Combine:** Stir in the tomatoes and simmer until the liquid reduces slightly.\n4. **Finish:** Add spinach and stir until wilted. Off the heat, stir in lemon juice and top with fresh herbs and a dollop of [yogurt](wiki:Yogurt).\n\n---\n\n### 3. 20-Minute Middle Eastern Spinach and Chickpeas\nA simpler, cleaner version of the classic [tapas](wiki:Tapas) dish, focusing on the natural sweetness of saut\xE9ed onions and white beans.\n\n[!](embed:carolinescooking.com-Dy7)\n[!](embed:simpleveganblog.com-8dt)\n[!](embed:ourplantbasedworld.com-Krr)\n\n* **Total Time:** 20 minutes\n* **Protein Content:** ~8.7g per serving\n* **Servings:** 4\n\n**Ingredients:**\n* 3 cups low-sodium canned chickpeas (drained and rinsed)\n* 2 cups baby spinach\n* 2/3 cup diced tomatoes\n* \xBD large white onion (diced)\n* 2 tsp minced garlic\n* 1\xBD tbsp [extra-virgin olive oil](wiki:Olive_oil#Grades)\n\n**Instructions:**\n1. **Soften Onions:** Heat olive oil in a pan. Saut\xE9 the onion for 2\u20133 minutes.\n2. **Add Seasoning:** Stir in the garlic and saut\xE9 for another minute.\n3. **Cook Down:** Pour in the tomatoes and cook for 1 minute.\n4. **Simmer Beans:** Add the chickpeas and about 3\u20134 tablespoons of water (or [vegetable broth](wiki:Broth)). Cook for 10 minutes.\n5. **Fold Spinach:** Gently fold in the baby spinach until just wilted. Season to taste and serve.\n\n---\n\n**Next steps for your meal prep:**\n* Would you like to find some side dish suggestions, like a [basmati rice](wiki:Basmati) or [naan](wiki:Naan) recipe, to go with these?\n* Are you interested in seeing some high-protein vegan dessert ideas to round out your dinner?'
|
|
28820
29068
|
}
|
|
28821
29069
|
},
|
|
28822
29070
|
creativity_drawing_meetups_berlin: {
|
|
@@ -32108,6 +32356,22 @@ As of mid-2026, the severe supply shocks from the 2024\u20132025 avian flu have
|
|
|
32108
32356
|
}
|
|
32109
32357
|
}
|
|
32110
32358
|
},
|
|
32359
|
+
nutrition: {
|
|
32360
|
+
heading: {
|
|
32361
|
+
text: "Nutrition (only when you use the recipe search skill)"
|
|
32362
|
+
},
|
|
32363
|
+
description: {
|
|
32364
|
+
text: "These providers are only used when you invoke the nutrition recipe search skill. They receive recipe search queries and selected dietary filters without a user identifier."
|
|
32365
|
+
},
|
|
32366
|
+
edamam: {
|
|
32367
|
+
heading: {
|
|
32368
|
+
text: "Edamam"
|
|
32369
|
+
},
|
|
32370
|
+
description: {
|
|
32371
|
+
text: "Edamam's Recipe Search API is queried when you search for recipes. Edamam receives the recipe query and selected dietary or nutrition filters without a user identifier."
|
|
32372
|
+
}
|
|
32373
|
+
}
|
|
32374
|
+
},
|
|
32111
32375
|
electronics: {
|
|
32112
32376
|
heading: {
|
|
32113
32377
|
text: "Electronics (only when you use the electronics skill)"
|
|
@@ -38484,6 +38748,9 @@ As of mid-2026, the severe supply shocks from the 2024\u20132025 avian flu have
|
|
|
38484
38748
|
sign_up: {
|
|
38485
38749
|
text: "Sign up"
|
|
38486
38750
|
},
|
|
38751
|
+
test_for_free: {
|
|
38752
|
+
text: "Test for free"
|
|
38753
|
+
},
|
|
38487
38754
|
version_title: {
|
|
38488
38755
|
text: "v0.12 alpha"
|
|
38489
38756
|
},
|
|
@@ -40403,7 +40670,7 @@ The booking_token is shown in the output of:
|
|
|
40403
40670
|
} catch {
|
|
40404
40671
|
}
|
|
40405
40672
|
if (!hasExplicitInput && inlineTokens.length === 0) {
|
|
40406
|
-
const required = schemaParams
|
|
40673
|
+
const required = getEffectiveRequiredParams(schemaParams);
|
|
40407
40674
|
if (required.length > 0) {
|
|
40408
40675
|
const data = await client.getSkillInfo(app, skill, apiKey);
|
|
40409
40676
|
await printSkillInfo(client, app, data);
|
|
@@ -40411,7 +40678,7 @@ The booking_token is shown in the output of:
|
|
|
40411
40678
|
}
|
|
40412
40679
|
}
|
|
40413
40680
|
if (!hasExplicitInput && inlineTokens.length > 0 && schemaParams.length > 0) {
|
|
40414
|
-
const required = schemaParams
|
|
40681
|
+
const required = getEffectiveRequiredParams(schemaParams);
|
|
40415
40682
|
if (required.length > 1) {
|
|
40416
40683
|
const example = {};
|
|
40417
40684
|
for (const p of required) example[p.name] = `<${p.name}>`;
|
|
@@ -40419,7 +40686,7 @@ The booking_token is shown in the output of:
|
|
|
40419
40686
|
`This skill requires ${required.length} fields: ${required.map((p) => p.name).join(", ")}
|
|
40420
40687
|
|
|
40421
40688
|
Use --input to provide all fields:
|
|
40422
|
-
openmates apps ${app} ${skill} --input '
|
|
40689
|
+
openmates apps ${app} ${skill} --input '${buildInputUsageExample(schemaParams, example)}'
|
|
40423
40690
|
|
|
40424
40691
|
Run with --help for full parameter details:
|
|
40425
40692
|
openmates apps ${app} ${skill} --help
|
|
@@ -40468,7 +40735,7 @@ App details: openmates apps info <app-id>`
|
|
|
40468
40735
|
`
|
|
40469
40736
|
Usage:
|
|
40470
40737
|
openmates apps ${app} ${skill} <value>
|
|
40471
|
-
openmates apps ${app} ${skill} --input '
|
|
40738
|
+
openmates apps ${app} ${skill} --input '${buildInputUsageExample(schemaParams)}'`
|
|
40472
40739
|
);
|
|
40473
40740
|
} else {
|
|
40474
40741
|
console.error(
|
|
@@ -40613,17 +40880,38 @@ async function pollCodeRunStatus(client, statusPath, apiKey, jsonMode) {
|
|
|
40613
40880
|
}
|
|
40614
40881
|
}
|
|
40615
40882
|
function buildSkillInput(flags, inlineTokens, schemaParams) {
|
|
40883
|
+
const usesFlatInput = schemaParams?.some((p) => p.inputShape === "flat") ?? false;
|
|
40616
40884
|
if (typeof flags.input === "string") {
|
|
40617
|
-
|
|
40885
|
+
const parsed = JSON.parse(flags.input);
|
|
40886
|
+
if (usesFlatInput && Array.isArray(parsed.requests) && parsed.requests.length === 1) {
|
|
40887
|
+
const firstRequest = parsed.requests[0];
|
|
40888
|
+
if (firstRequest && typeof firstRequest === "object") {
|
|
40889
|
+
return firstRequest;
|
|
40890
|
+
}
|
|
40891
|
+
}
|
|
40892
|
+
return parsed;
|
|
40618
40893
|
}
|
|
40619
40894
|
const inlineText = inlineTokens.join(" ").trim();
|
|
40620
40895
|
if (inlineText) {
|
|
40621
|
-
const required = (schemaParams ?? [])
|
|
40622
|
-
const
|
|
40896
|
+
const required = getEffectiveRequiredParams(schemaParams ?? []);
|
|
40897
|
+
const flatLocationParam = usesFlatInput ? (schemaParams ?? []).find((p) => p.name === "location") : void 0;
|
|
40898
|
+
const paramName = required.length === 1 ? required[0].name : flatLocationParam?.name ?? "query";
|
|
40899
|
+
if (usesFlatInput) return { [paramName]: inlineText };
|
|
40623
40900
|
return { requests: [{ [paramName]: inlineText }] };
|
|
40624
40901
|
}
|
|
40625
40902
|
return {};
|
|
40626
40903
|
}
|
|
40904
|
+
function getEffectiveRequiredParams(schemaParams) {
|
|
40905
|
+
const required = schemaParams.filter((p) => p.required);
|
|
40906
|
+
if (required.length > 0) return required;
|
|
40907
|
+
const flatLocationParam = schemaParams.find((p) => p.inputShape === "flat" && p.name === "location");
|
|
40908
|
+
return flatLocationParam ? [flatLocationParam] : [];
|
|
40909
|
+
}
|
|
40910
|
+
function buildInputUsageExample(schemaParams, exampleItem) {
|
|
40911
|
+
const item = exampleItem ?? { [schemaParams[0]?.name ?? "query"]: "..." };
|
|
40912
|
+
if (schemaParams.some((p) => p.inputShape === "flat")) return JSON.stringify(item);
|
|
40913
|
+
return JSON.stringify({ requests: [item] });
|
|
40914
|
+
}
|
|
40627
40915
|
async function suggestAppOrSkill(client, app, skill, apiKey) {
|
|
40628
40916
|
try {
|
|
40629
40917
|
const data = await client.listApps(apiKey);
|
|
@@ -42861,7 +43149,9 @@ ${data.description}
|
|
|
42861
43149
|
}
|
|
42862
43150
|
process.stdout.write(`\x1B[1mExample\x1B[0m
|
|
42863
43151
|
`);
|
|
42864
|
-
const
|
|
43152
|
+
const usesFlatInput = params.some((p) => p.inputShape === "flat");
|
|
43153
|
+
const examplePayload = usesFlatInput ? exampleItem : { requests: [exampleItem] };
|
|
43154
|
+
const exampleJson = JSON.stringify(examplePayload, null, 2).split("\n").map((l) => ` ${l}`).join("\n");
|
|
42865
43155
|
process.stdout.write(
|
|
42866
43156
|
` \x1B[2mopenmates apps ${appId} ${data.id} --input '\x1B[0m
|
|
42867
43157
|
`
|
package/dist/cli.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openmates",
|
|
3
|
-
"version": "0.12.0-alpha.
|
|
3
|
+
"version": "0.12.0-alpha.3",
|
|
4
4
|
"description": "OpenMates CLI and SDK",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"ahocorasick": "1.0.2",
|
|
53
53
|
"qrcode-terminal": "^0.12.0",
|
|
54
54
|
"tweetnacl": "^1.0.3",
|
|
55
|
-
"ws": "8.
|
|
55
|
+
"ws": "8.21.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@repo/eslint-config": "workspace:*",
|