@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(
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
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(
|
|
128
|
-
'
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
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(
|
|
13
|
-
|
|
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(
|
|
40
|
-
envOverrides
|
|
39
|
+
export async function runCommand(opts) {
|
|
40
|
+
const { command, args, cwd, timeout = 120000, env: envOverrides, stream } = opts;
|
|
41
41
|
try {
|
|
42
|
-
const
|
|
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.
|
|
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.
|
|
36
|
+
"@inkeep/agents-core": "0.48.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/degit": "^2.8.6",
|