@inkeep/create-agents 0.0.0-dev-20251012022558 → 0.0.0-dev-20251012052609
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.js +1 -1
- package/package.json +2 -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.js
CHANGED
|
@@ -327,7 +327,7 @@ export const myProject = project({
|
|
|
327
327
|
id: "${config.projectId}",
|
|
328
328
|
name: "${config.projectId}",
|
|
329
329
|
description: "",
|
|
330
|
-
|
|
330
|
+
agent: () => [],
|
|
331
331
|
models: ${JSON.stringify(config.modelSettings, null, 2)},
|
|
332
332
|
});`;
|
|
333
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.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20251012052609",
|
|
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.0.0-dev-
|
|
37
|
+
"@inkeep/agents-core": "0.0.0-dev-20251012052609"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/degit": "^2.8.6",
|