@inkeep/create-agents 0.32.1 → 0.33.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.
@@ -34,7 +34,7 @@ describe('create-agents quickstart e2e', () => {
34
34
  projectTemplatesPrefix,
35
35
  ], testDir);
36
36
  // Verify the CLI completed successfully
37
- expect(result.exitCode).toBe(0);
37
+ expect(result.exitCode, `CLI failed with exit code ${result.exitCode}\nstdout: ${result.stdout}\nstderr: ${result.stderr}`).toBe(0);
38
38
  console.log('CLI completed successfully');
39
39
  // Verify the core directory structure
40
40
  console.log('Verifying directory structure...');
@@ -66,6 +66,9 @@ describe('create-agents quickstart e2e', () => {
66
66
  console.log('Verifying inkeep.config.ts...');
67
67
  await verifyFile(path.join(projectDir, 'src/inkeep.config.ts'));
68
68
  console.log('inkeep.config.ts verified');
69
+ console.log('Setting up project in database');
70
+ await runCommand('pnpm', ['setup-dev'], projectDir);
71
+ console.log('Project setup in database');
69
72
  console.log('Starting dev servers');
70
73
  // Start dev servers in background with output monitoring
71
74
  const devProcess = execa('pnpm', ['dev'], {
@@ -112,7 +115,7 @@ describe('create-agents quickstart e2e', () => {
112
115
  '--config',
113
116
  'src/inkeep.config.ts',
114
117
  ], projectDir, 30000);
115
- expect(pushResult.exitCode).toBe(0);
118
+ expect(pushResult.exitCode, `Push failed with exit code ${pushResult.exitCode}\nstdout: ${pushResult.stdout}\nstderr: ${pushResult.stderr}`).toBe(0);
116
119
  console.log('Testing API requests');
117
120
  // Test API requests
118
121
  const response = await fetch(`${manageApiUrl}/tenants/default/projects/${projectId}`);
@@ -129,7 +132,7 @@ describe('create-agents quickstart e2e', () => {
129
132
  '--config',
130
133
  'src/inkeep.config.ts',
131
134
  ], projectDir, 30000);
132
- expect(pushResultLocal.exitCode).toBe(0);
135
+ expect(pushResultLocal.exitCode, `Push with local packages failed with exit code ${pushResultLocal.exitCode}\nstdout: ${pushResultLocal.stdout}\nstderr: ${pushResultLocal.stderr}`).toBe(0);
133
136
  // Test that the project works with local packages
134
137
  const responseLocal = await fetch(`${manageApiUrl}/tenants/default/projects/${projectId}`);
135
138
  expect(responseLocal.status).toBe(200);
package/dist/templates.js CHANGED
@@ -259,10 +259,8 @@ export async function getAvailableTemplates(localPrefix) {
259
259
  const response = await fs.readdir(fullTemplatePath);
260
260
  return response.filter((item) => fs.stat(path.join(fullTemplatePath, item)).then((stat) => stat.isDirectory()));
261
261
  }
262
- else {
263
- // Fetch the list of templates from your repo
264
- const response = await fetch(`https://api.github.com/repos/inkeep/agents/contents/agents-cookbook/template-projects`);
265
- const contents = await response.json();
266
- return contents.filter((item) => item.type === 'dir').map((item) => item.name);
267
- }
262
+ // Fetch the list of templates from your repo
263
+ const response = await fetch(`https://api.github.com/repos/inkeep/agents/contents/agents-cookbook/template-projects`);
264
+ const contents = await response.json();
265
+ return contents.filter((item) => item.type === 'dir').map((item) => item.name);
268
266
  }
package/dist/utils.js CHANGED
@@ -293,9 +293,14 @@ OPENAI_API_KEY=${config.openAiKey || 'your-openai-key-here'}
293
293
  GOOGLE_GENERATIVE_AI_API_KEY=${config.googleKey || 'your-google-key-here'}
294
294
 
295
295
  # Inkeep API URLs
296
+ # Internal URLs (server-side, Docker internal networking)
296
297
  INKEEP_AGENTS_MANAGE_API_URL="http://localhost:3002"
297
298
  INKEEP_AGENTS_RUN_API_URL="http://localhost:3003"
298
299
 
300
+ # Public URLs (client-side, browser accessible)
301
+ PUBLIC_INKEEP_AGENTS_MANAGE_API_URL="http://localhost:3002"
302
+ PUBLIC_INKEEP_AGENTS_RUN_API_URL="http://localhost:3003"
303
+
299
304
  # SigNoz Configuration
300
305
  SIGNOZ_URL=your-signoz-url-here
301
306
  SIGNOZ_API_KEY=your-signoz-api-key-here
@@ -345,13 +350,6 @@ export const myProject = project({
345
350
  }
346
351
  async function installDependencies() {
347
352
  await execAsync('pnpm install');
348
- try {
349
- await execAsync('pnpm upgrade-agents');
350
- }
351
- catch (error) {
352
- console.warn('Warning: Package upgrade failed, continuing with current versions');
353
- console.warn(error instanceof Error ? error.message : 'Unknown error');
354
- }
355
353
  }
356
354
  async function initializeGit() {
357
355
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/create-agents",
3
- "version": "0.32.1",
3
+ "version": "0.33.0",
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.32.1"
37
+ "@inkeep/agents-core": "0.33.0"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/degit": "^2.8.6",