@inkeep/create-agents 0.18.1 → 0.19.0
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/README.md +1 -1
- package/dist/__tests__/templates.test.js +6 -6
- package/dist/utils.d.ts +9 -9
- package/dist/utils.js +11 -10
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -52,7 +52,7 @@ After running `@inkeep/create-agents`, you'll have a complete Agent Framework Di
|
|
|
52
52
|
my-agent-directory/
|
|
53
53
|
├── src/
|
|
54
54
|
│ └── <project-id>/ # Agent configurations
|
|
55
|
-
│ ├── hello.
|
|
55
|
+
│ ├── hello-agent.ts # Example agent configuration
|
|
56
56
|
│ ├── inkeep.config.ts # Inkeep CLI configuration
|
|
57
57
|
│ └── .env # CLI environment variables
|
|
58
58
|
├── apps/
|
|
@@ -192,13 +192,13 @@ describe('Template Content Replacement', () => {
|
|
|
192
192
|
describe('Integration tests', () => {
|
|
193
193
|
it('should handle real-world TypeScript project structure', async () => {
|
|
194
194
|
const projectContent = `import { project } from '@inkeep/agents-sdk';
|
|
195
|
-
import {
|
|
195
|
+
import { weatherAgent } from './agent/weather-agent';
|
|
196
196
|
|
|
197
197
|
export const myProject = project({
|
|
198
198
|
id: 'weather-project',
|
|
199
199
|
name: 'Weather Project',
|
|
200
200
|
description: 'Weather project template',
|
|
201
|
-
|
|
201
|
+
agent: () => [weatherAgent],
|
|
202
202
|
models: {
|
|
203
203
|
base: {
|
|
204
204
|
model: 'gpt-4o-mini',
|
|
@@ -225,10 +225,10 @@ export const myProject = project({
|
|
|
225
225
|
const result = await replaceObjectProperties(projectContent, { models: newModels });
|
|
226
226
|
// Should preserve imports and structure
|
|
227
227
|
expect(result).toContain("import { project } from '@inkeep/agents-sdk'");
|
|
228
|
-
expect(result).toContain("import {
|
|
228
|
+
expect(result).toContain("import { weatherAgent } from './agent/weather-agent'");
|
|
229
229
|
expect(result).toContain("id: 'weather-project'");
|
|
230
230
|
expect(result).toContain("name: 'Weather Project'");
|
|
231
|
-
expect(result).toContain('
|
|
231
|
+
expect(result).toContain('agent: () => [weatherAgent]');
|
|
232
232
|
// Should replace all model configurations
|
|
233
233
|
expect(result).toContain('anthropic/claude-3-5-haiku-20241022');
|
|
234
234
|
expect(result).not.toContain('gpt-4o-mini');
|
|
@@ -265,7 +265,7 @@ export const myProject = project({
|
|
|
265
265
|
id: 'test-project',
|
|
266
266
|
name: 'Test Project',
|
|
267
267
|
description: 'A test project without models',
|
|
268
|
-
|
|
268
|
+
agent: () => [],
|
|
269
269
|
});`;
|
|
270
270
|
const replacement = {
|
|
271
271
|
base: { model: 'anthropic/claude-3-5-haiku-20241022' },
|
|
@@ -277,7 +277,7 @@ export const myProject = project({
|
|
|
277
277
|
expect(result).toContain("'model': 'anthropic/claude-3-5-haiku-20241022'");
|
|
278
278
|
expect(result).toContain("'structuredOutput': {");
|
|
279
279
|
expect(result).toContain("id: 'test-project'");
|
|
280
|
-
expect(result).toContain('
|
|
280
|
+
expect(result).toContain('agent: () => []');
|
|
281
281
|
});
|
|
282
282
|
});
|
|
283
283
|
});
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
export declare const defaultGoogleModelConfigurations: {
|
|
2
2
|
base: {
|
|
3
|
-
model:
|
|
3
|
+
model: "google/gemini-2.5-flash";
|
|
4
4
|
};
|
|
5
5
|
structuredOutput: {
|
|
6
|
-
model:
|
|
6
|
+
model: "google/gemini-2.5-flash-lite";
|
|
7
7
|
};
|
|
8
8
|
summarizer: {
|
|
9
|
-
model:
|
|
9
|
+
model: "google/gemini-2.5-flash-lite";
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
12
|
export declare const defaultOpenaiModelConfigurations: {
|
|
13
13
|
base: {
|
|
14
|
-
model:
|
|
14
|
+
model: "openai/gpt-4.1-2025-04-14";
|
|
15
15
|
};
|
|
16
16
|
structuredOutput: {
|
|
17
|
-
model:
|
|
17
|
+
model: "openai/gpt-4.1-mini-2025-04-14";
|
|
18
18
|
};
|
|
19
19
|
summarizer: {
|
|
20
|
-
model:
|
|
20
|
+
model: "openai/gpt-4.1-nano-2025-04-14";
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
23
|
export declare const defaultAnthropicModelConfigurations: {
|
|
24
24
|
base: {
|
|
25
|
-
model:
|
|
25
|
+
model: "anthropic/claude-sonnet-4.5-20250531";
|
|
26
26
|
};
|
|
27
27
|
structuredOutput: {
|
|
28
|
-
model:
|
|
28
|
+
model: "anthropic/claude-sonnet-4.5-20250531";
|
|
29
29
|
};
|
|
30
30
|
summarizer: {
|
|
31
|
-
model:
|
|
31
|
+
model: "anthropic/claude-sonnet-4.5-20250531";
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
export declare const createAgents: (args?: {
|
package/dist/utils.js
CHANGED
|
@@ -4,39 +4,40 @@ import { promisify } from 'node:util';
|
|
|
4
4
|
import * as p from '@clack/prompts';
|
|
5
5
|
import fs from 'fs-extra';
|
|
6
6
|
import color from 'picocolors';
|
|
7
|
+
import { ANTHROPIC_MODELS, OPENAI_MODELS, GOOGLE_MODELS } from '@inkeep/agents-core';
|
|
7
8
|
import { cloneTemplate, getAvailableTemplates } from './templates.js';
|
|
8
9
|
const execAsync = promisify(exec);
|
|
9
10
|
export const defaultGoogleModelConfigurations = {
|
|
10
11
|
base: {
|
|
11
|
-
model:
|
|
12
|
+
model: GOOGLE_MODELS.GEMINI_2_5_FLASH,
|
|
12
13
|
},
|
|
13
14
|
structuredOutput: {
|
|
14
|
-
model:
|
|
15
|
+
model: GOOGLE_MODELS.GEMINI_2_5_FLASH_LITE,
|
|
15
16
|
},
|
|
16
17
|
summarizer: {
|
|
17
|
-
model:
|
|
18
|
+
model: GOOGLE_MODELS.GEMINI_2_5_FLASH_LITE,
|
|
18
19
|
},
|
|
19
20
|
};
|
|
20
21
|
export const defaultOpenaiModelConfigurations = {
|
|
21
22
|
base: {
|
|
22
|
-
model:
|
|
23
|
+
model: OPENAI_MODELS.GPT_4_1,
|
|
23
24
|
},
|
|
24
25
|
structuredOutput: {
|
|
25
|
-
model:
|
|
26
|
+
model: OPENAI_MODELS.GPT_4_1_MINI,
|
|
26
27
|
},
|
|
27
28
|
summarizer: {
|
|
28
|
-
model:
|
|
29
|
+
model: OPENAI_MODELS.GPT_4_1_NANO,
|
|
29
30
|
},
|
|
30
31
|
};
|
|
31
32
|
export const defaultAnthropicModelConfigurations = {
|
|
32
33
|
base: {
|
|
33
|
-
model:
|
|
34
|
+
model: ANTHROPIC_MODELS.CLAUDE_SONNET_4_5,
|
|
34
35
|
},
|
|
35
36
|
structuredOutput: {
|
|
36
|
-
model:
|
|
37
|
+
model: ANTHROPIC_MODELS.CLAUDE_SONNET_4_5,
|
|
37
38
|
},
|
|
38
39
|
summarizer: {
|
|
39
|
-
model:
|
|
40
|
+
model: ANTHROPIC_MODELS.CLAUDE_SONNET_4_5,
|
|
40
41
|
},
|
|
41
42
|
};
|
|
42
43
|
export const createAgents = async (args = {}) => {
|
|
@@ -326,7 +327,7 @@ export const myProject = project({
|
|
|
326
327
|
id: "${config.projectId}",
|
|
327
328
|
name: "${config.projectId}",
|
|
328
329
|
description: "",
|
|
329
|
-
|
|
330
|
+
agent: () => [],
|
|
330
331
|
models: ${JSON.stringify(config.modelSettings, null, 2)},
|
|
331
332
|
});`;
|
|
332
333
|
await fs.writeFile(`src/${config.projectId}/index.ts`, customIndexContent);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/create-agents",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"description": "Create an Inkeep Agent Framework project",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -33,7 +33,8 @@
|
|
|
33
33
|
"degit": "^2.8.4",
|
|
34
34
|
"fs-extra": "^11.0.0",
|
|
35
35
|
"picocolors": "^1.0.0",
|
|
36
|
-
"drizzle-kit": "^0.31.5"
|
|
36
|
+
"drizzle-kit": "^0.31.5",
|
|
37
|
+
"@inkeep/agents-core": "0.19.0"
|
|
37
38
|
},
|
|
38
39
|
"devDependencies": {
|
|
39
40
|
"@types/degit": "^2.8.6",
|