@inkeep/create-agents 0.0.0-dev-20251119230005 → 0.0.0-dev-20251120155839
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/templates.js +13 -1
- package/package.json +2 -2
package/dist/templates.js
CHANGED
|
@@ -261,6 +261,18 @@ export async function getAvailableTemplates(localPrefix) {
|
|
|
261
261
|
}
|
|
262
262
|
// Fetch the list of templates from your repo
|
|
263
263
|
const response = await fetch(`https://api.github.com/repos/inkeep/agents/contents/agents-cookbook/template-projects`);
|
|
264
|
-
|
|
264
|
+
if (!response.ok) {
|
|
265
|
+
throw new Error(`Failed to fetch templates. Please check your internet connection and try again.`);
|
|
266
|
+
}
|
|
267
|
+
let contents;
|
|
268
|
+
try {
|
|
269
|
+
contents = await response.json();
|
|
270
|
+
}
|
|
271
|
+
catch (error) {
|
|
272
|
+
throw new Error(`Failed to parse templates response. Please check your internet connection and try again. ${error}`);
|
|
273
|
+
}
|
|
274
|
+
if (!Array.isArray(contents)) {
|
|
275
|
+
throw new Error('Unexpected response format from templates. Please check your internet connection and try again');
|
|
276
|
+
}
|
|
265
277
|
return contents.filter((item) => item.type === 'dir').map((item) => item.name);
|
|
266
278
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/create-agents",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20251120155839",
|
|
4
4
|
"description": "Create an Inkeep Agent Framework project",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"drizzle-kit": "^0.31.5",
|
|
35
35
|
"fs-extra": "^11.0.0",
|
|
36
36
|
"picocolors": "^1.0.0",
|
|
37
|
-
"@inkeep/agents-core": "0.0.0-dev-
|
|
37
|
+
"@inkeep/agents-core": "0.0.0-dev-20251120155839"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/degit": "^2.8.6",
|