@inkeep/create-agents 0.47.4 → 0.48.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.
@@ -79,10 +79,19 @@ describe('create-agents quickstart e2e', () => {
79
79
  console.log('Local monorepo packages linked and dependencies installed');
80
80
  console.log('Setting up project in database');
81
81
  // Pass bypass secret so setup-dev:cloud's internal push can authenticate
82
- await runCommand('pnpm', ['setup-dev:cloud'], projectDir, 600000, {
83
- INKEEP_AGENTS_MANAGE_API_BYPASS_SECRET: TEST_BYPASS_SECRET,
84
- INKEEP_API_KEY: TEST_BYPASS_SECRET,
85
- }); // 10 minutes for CI (includes pnpm install, migrations, server startup, push)
82
+ await runCommand({
83
+ command: 'pnpm',
84
+ args: ['setup-dev:cloud'],
85
+ cwd: projectDir,
86
+ timeout: 600000, // 10 minutes for CI (includes migrations, server startup, push)
87
+ env: {
88
+ INKEEP_AGENTS_MANAGE_API_BYPASS_SECRET: TEST_BYPASS_SECRET,
89
+ INKEEP_API_KEY: TEST_BYPASS_SECRET,
90
+ INKEEP_CI: 'true',
91
+ SKIP_UPGRADE: 'true', // Packages are already linked locally, skip pnpm update --latest
92
+ },
93
+ stream: true,
94
+ });
86
95
  console.log('Project setup in database');
87
96
  console.log('Starting dev servers');
88
97
  // Start dev servers in background with output monitoring
@@ -124,16 +133,20 @@ describe('create-agents quickstart e2e', () => {
124
133
  await waitForServerReady(`${manageApiUrl}/health`, 120000); // Increased to 2 minutes for CI
125
134
  console.log('Manage API is ready');
126
135
  console.log('Pushing project');
127
- const pushResult = await runCommand('pnpm', [
128
- 'inkeep',
129
- 'push',
130
- '--project',
131
- `src/projects/${projectId}`,
132
- '--config',
133
- 'src/inkeep.config.ts',
134
- ], projectDir, 30000,
135
- // Pass the bypass secret as INKEEP_API_KEY for CLI authentication in CI
136
- { INKEEP_API_KEY: TEST_BYPASS_SECRET });
136
+ const pushResult = await runCommand({
137
+ command: 'pnpm',
138
+ args: [
139
+ 'inkeep',
140
+ 'push',
141
+ '--project',
142
+ `src/projects/${projectId}`,
143
+ '--config',
144
+ 'src/inkeep.config.ts',
145
+ ],
146
+ cwd: projectDir,
147
+ timeout: 30000,
148
+ env: { INKEEP_API_KEY: TEST_BYPASS_SECRET, INKEEP_CI: 'true' },
149
+ });
137
150
  expect(pushResult.exitCode, `Push failed with exit code ${pushResult.exitCode}\nstdout: ${pushResult.stdout}\nstderr: ${pushResult.stderr}`).toBe(0);
138
151
  console.log('Testing API requests');
139
152
  // Test API requests with bypass secret authentication
@@ -9,8 +9,14 @@ export declare function runCreateAgentsCLI(args: string[], cwd: string, timeout?
9
9
  /**
10
10
  * Run a command in the created project directory
11
11
  */
12
- export declare function runCommand(command: string, args: string[], cwd: string, timeout?: number, // 2 minutes default
13
- envOverrides?: Record<string, string>): Promise<{
12
+ export declare function runCommand(opts: {
13
+ command: string;
14
+ args: string[];
15
+ cwd: string;
16
+ timeout?: number;
17
+ env?: Record<string, string>;
18
+ stream?: boolean;
19
+ }): Promise<{
14
20
  stdout: string;
15
21
  stderr: string;
16
22
  exitCode: number | undefined;
@@ -36,15 +36,20 @@ export async function runCreateAgentsCLI(args, cwd, timeout = 300000 // 5 minute
36
36
  /**
37
37
  * Run a command in the created project directory
38
38
  */
39
- export async function runCommand(command, args, cwd, timeout = 120000, // 2 minutes default
40
- envOverrides) {
39
+ export async function runCommand(opts) {
40
+ const { command, args, cwd, timeout = 120000, env: envOverrides, stream } = opts;
41
41
  try {
42
- const result = await execa(command, args, {
42
+ const child = execa(command, args, {
43
43
  cwd,
44
44
  timeout,
45
45
  env: { ...process.env, FORCE_COLOR: '0', ...envOverrides },
46
46
  shell: true,
47
47
  });
48
+ if (stream) {
49
+ child.stdout?.pipe(process.stdout);
50
+ child.stderr?.pipe(process.stderr);
51
+ }
52
+ const result = await child;
48
53
  return {
49
54
  stdout: result.stdout,
50
55
  stderr: result.stderr,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/create-agents",
3
- "version": "0.47.4",
3
+ "version": "0.48.0",
4
4
  "description": "Create an Inkeep Agent Framework project",
5
5
  "type": "module",
6
6
  "bin": {
@@ -33,7 +33,7 @@
33
33
  "degit": "^2.8.4",
34
34
  "fs-extra": "^11.0.0",
35
35
  "picocolors": "^1.0.0",
36
- "@inkeep/agents-core": "0.47.4"
36
+ "@inkeep/agents-core": "0.48.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/degit": "^2.8.6",