@inkeep/create-agents 0.37.2 → 0.38.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/dist/__tests__/e2e/quickstart.test.js +5 -4
- package/dist/utils.js +12 -10
- package/package.json +3 -3
|
@@ -2,7 +2,8 @@ import path from 'node:path';
|
|
|
2
2
|
import { execa } from 'execa';
|
|
3
3
|
import { afterEach, beforeEach, describe, expect, it } from 'vitest';
|
|
4
4
|
import { cleanupDir, createTempDir, linkLocalPackages, runCommand, runCreateAgentsCLI, verifyDirectoryStructure, verifyFile, waitForServerReady, } from './utils';
|
|
5
|
-
|
|
5
|
+
// Use 127.0.0.1 instead of localhost to avoid IPv6/IPv4 resolution issues on CI (Ubuntu)
|
|
6
|
+
const manageApiUrl = 'http://127.0.0.1:3002';
|
|
6
7
|
describe('create-agents quickstart e2e', () => {
|
|
7
8
|
let testDir;
|
|
8
9
|
let projectDir;
|
|
@@ -59,8 +60,8 @@ describe('create-agents quickstart e2e', () => {
|
|
|
59
60
|
/ENVIRONMENT=development/,
|
|
60
61
|
/OPENAI_API_KEY=test-openai-key/,
|
|
61
62
|
/DATABASE_URL=postgresql:\/\/appuser:password@localhost:5432\/inkeep_agents/,
|
|
62
|
-
/INKEEP_AGENTS_MANAGE_API_URL="http:\/\/
|
|
63
|
-
/INKEEP_AGENTS_RUN_API_URL="http:\/\/
|
|
63
|
+
/INKEEP_AGENTS_MANAGE_API_URL="http:\/\/127\.0\.0\.1:3002"/,
|
|
64
|
+
/INKEEP_AGENTS_RUN_API_URL="http:\/\/127\.0\.0\.1:3003"/,
|
|
64
65
|
/INKEEP_AGENTS_JWT_SIGNING_SECRET=\w+/, // Random secret should be generated
|
|
65
66
|
]);
|
|
66
67
|
console.log('.env file verified');
|
|
@@ -69,7 +70,7 @@ describe('create-agents quickstart e2e', () => {
|
|
|
69
70
|
await verifyFile(path.join(projectDir, 'src/inkeep.config.ts'));
|
|
70
71
|
console.log('inkeep.config.ts verified');
|
|
71
72
|
console.log('Setting up project in database');
|
|
72
|
-
await runCommand('pnpm', ['
|
|
73
|
+
await runCommand('pnpm', ['setup-dev:cloud'], projectDir);
|
|
73
74
|
console.log('Project setup in database');
|
|
74
75
|
console.log('Starting dev servers');
|
|
75
76
|
// Start dev servers in background with output monitoring
|
package/dist/utils.js
CHANGED
|
@@ -290,8 +290,8 @@ export const createAgents = async (args = {}) => {
|
|
|
290
290
|
` pnpm setup # Setup project in database\n` +
|
|
291
291
|
` pnpm dev # Start development servers\n\n` +
|
|
292
292
|
`${color.yellow('Available services:')}\n` +
|
|
293
|
-
` • Manage API: http://
|
|
294
|
-
` • Run API: http://
|
|
293
|
+
` • Manage API: http://127.0.0.1:3002\n` +
|
|
294
|
+
` • Run API: http://127.0.0.1:3003\n` +
|
|
295
295
|
` • Manage UI: Available with management API\n` +
|
|
296
296
|
`\n${color.yellow('Configuration:')}\n` +
|
|
297
297
|
` • Edit .env for environment variables\n` +
|
|
@@ -324,7 +324,7 @@ async function createEnvironmentFiles(config) {
|
|
|
324
324
|
tempJwtPrivateKey = Buffer.from(privateKey).toString('base64');
|
|
325
325
|
tempJwtPublicKey = Buffer.from(publicKey).toString('base64');
|
|
326
326
|
}
|
|
327
|
-
catch
|
|
327
|
+
catch {
|
|
328
328
|
console.warn('Warning: Failed to generate JWT keys. Playground may not work.');
|
|
329
329
|
console.warn('You can manually generate keys later with: pnpm run generate-jwt-keys');
|
|
330
330
|
}
|
|
@@ -341,12 +341,13 @@ GOOGLE_GENERATIVE_AI_API_KEY=${config.googleKey || 'your-google-key-here'}
|
|
|
341
341
|
|
|
342
342
|
# Inkeep API URLs
|
|
343
343
|
# Internal URLs (server-side, Docker internal networking)
|
|
344
|
-
|
|
345
|
-
|
|
344
|
+
# Using 127.0.0.1 instead of localhost to avoid IPv6/IPv4 resolution issues
|
|
345
|
+
INKEEP_AGENTS_MANAGE_API_URL="http://127.0.0.1:3002"
|
|
346
|
+
INKEEP_AGENTS_RUN_API_URL="http://127.0.0.1:3003"
|
|
346
347
|
|
|
347
348
|
# Public URLs (client-side, browser accessible)
|
|
348
|
-
PUBLIC_INKEEP_AGENTS_MANAGE_API_URL="http://
|
|
349
|
-
PUBLIC_INKEEP_AGENTS_RUN_API_URL="http://
|
|
349
|
+
PUBLIC_INKEEP_AGENTS_MANAGE_API_URL="http://127.0.0.1:3002"
|
|
350
|
+
PUBLIC_INKEEP_AGENTS_RUN_API_URL="http://127.0.0.1:3003"
|
|
350
351
|
|
|
351
352
|
# SigNoz Configuration
|
|
352
353
|
SIGNOZ_URL=your-signoz-url-here
|
|
@@ -384,10 +385,11 @@ async function createInkeepConfig(config) {
|
|
|
384
385
|
const config = defineConfig({
|
|
385
386
|
tenantId: "${config.tenantId}",
|
|
386
387
|
agentsManageApi: {
|
|
387
|
-
|
|
388
|
+
// Using 127.0.0.1 instead of localhost to avoid IPv6/IPv4 resolution issues
|
|
389
|
+
url: 'http://127.0.0.1:3002',
|
|
388
390
|
},
|
|
389
391
|
agentsRunApi: {
|
|
390
|
-
url: 'http://
|
|
392
|
+
url: 'http://127.0.0.1:3003',
|
|
391
393
|
},
|
|
392
394
|
});
|
|
393
395
|
|
|
@@ -472,7 +474,7 @@ async function isPortAvailable(port) {
|
|
|
472
474
|
const server = net.createServer();
|
|
473
475
|
server.once('error', (err) => {
|
|
474
476
|
// Only treat EADDRINUSE as "port in use", other errors might be transient
|
|
475
|
-
resolve(err.code
|
|
477
|
+
resolve(err.code !== 'EADDRINUSE');
|
|
476
478
|
});
|
|
477
479
|
server.once('listening', () => {
|
|
478
480
|
server.close(() => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/create-agents",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.38.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.
|
|
37
|
+
"@inkeep/agents-core": "0.38.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/degit": "^2.8.6",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"scripts": {
|
|
64
64
|
"dev": "tsx src/index.ts",
|
|
65
65
|
"build": "tsc",
|
|
66
|
-
"lint": "biome lint
|
|
66
|
+
"lint": "biome lint --error-on-warnings",
|
|
67
67
|
"lint:fix": "biome check --write .",
|
|
68
68
|
"format": "biome format --write .",
|
|
69
69
|
"test": "vitest --run src/__tests__ --exclude src/__tests__/e2e/** --passWithNoTests",
|