@inkeep/create-agents 0.26.1 → 0.26.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.
- package/dist/__tests__/utils.test.js +6 -3
- package/dist/utils.js +2 -2
- package/package.json +2 -2
|
@@ -73,7 +73,7 @@ describe('createAgents - Template and Project ID Logic', () => {
|
|
|
73
73
|
processChdirSpy.mockRestore();
|
|
74
74
|
});
|
|
75
75
|
describe('Default behavior (no template or customProjectId)', () => {
|
|
76
|
-
it('should use
|
|
76
|
+
it('should use activies-planner as default template and project ID', async () => {
|
|
77
77
|
await createAgents({
|
|
78
78
|
dirName: 'test-dir',
|
|
79
79
|
openAiKey: 'test-openai-key',
|
|
@@ -82,7 +82,7 @@ describe('createAgents - Template and Project ID Logic', () => {
|
|
|
82
82
|
// Should clone base template and weather-project template
|
|
83
83
|
expect(cloneTemplate).toHaveBeenCalledTimes(2);
|
|
84
84
|
expect(cloneTemplate).toHaveBeenCalledWith('https://github.com/inkeep/create-agents-template', expect.any(String));
|
|
85
|
-
expect(cloneTemplate).toHaveBeenCalledWith('https://github.com/inkeep/agents-cookbook/template-projects/
|
|
85
|
+
expect(cloneTemplate).toHaveBeenCalledWith('https://github.com/inkeep/agents-cookbook/template-projects/activities-planner', 'src/projects/activities-planner', expect.arrayContaining([
|
|
86
86
|
expect.objectContaining({
|
|
87
87
|
filePath: 'index.ts',
|
|
88
88
|
replacements: expect.objectContaining({
|
|
@@ -289,7 +289,10 @@ describe('createAgents - Template and Project ID Logic', () => {
|
|
|
289
289
|
const apiKeyCalls = textCalls.filter((call) => call[0] &&
|
|
290
290
|
typeof call[0] === 'object' &&
|
|
291
291
|
'message' in call[0] &&
|
|
292
|
-
(call[0].message.includes('API key') ||
|
|
292
|
+
(call[0].message.includes('API key') ||
|
|
293
|
+
call[0].message.includes('Anthropic') ||
|
|
294
|
+
call[0].message.includes('OpenAI') ||
|
|
295
|
+
call[0].message.includes('Google')));
|
|
293
296
|
expect(apiKeyCalls).toHaveLength(0);
|
|
294
297
|
});
|
|
295
298
|
it('should use password input for OpenAI keys', async () => {
|
package/dist/utils.js
CHANGED
|
@@ -63,8 +63,8 @@ export const createAgents = async (args = {}) => {
|
|
|
63
63
|
templateName = template;
|
|
64
64
|
}
|
|
65
65
|
else {
|
|
66
|
-
projectId = '
|
|
67
|
-
templateName = '
|
|
66
|
+
projectId = 'activities-planner';
|
|
67
|
+
templateName = 'activities-planner';
|
|
68
68
|
}
|
|
69
69
|
p.intro(color.inverse(' Create Agents Directory '));
|
|
70
70
|
if (!dirName) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/create-agents",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.2",
|
|
4
4
|
"description": "Create an Inkeep Agent Framework project",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"fs-extra": "^11.0.0",
|
|
35
35
|
"picocolors": "^1.0.0",
|
|
36
36
|
"drizzle-kit": "^0.31.5",
|
|
37
|
-
"@inkeep/agents-core": "0.26.
|
|
37
|
+
"@inkeep/agents-core": "0.26.2"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/degit": "^2.8.6",
|