@inkeep/create-agents 0.0.0-dev-20260121032144 → 0.0.0-dev-20260121072051
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 -9
- package/dist/index.js +2 -0
- package/dist/utils.d.ts +1 -0
- package/dist/utils.js +5 -3
- package/package.json +2 -2
|
@@ -35,6 +35,7 @@ describe('create-agents quickstart e2e', () => {
|
|
|
35
35
|
projectTemplatesPrefix,
|
|
36
36
|
'--skip-inkeep-cli',
|
|
37
37
|
'--skip-inkeep-mcp',
|
|
38
|
+
'--skip-install', // Skip initial install so we can link local packages first
|
|
38
39
|
], testDir);
|
|
39
40
|
// Verify the CLI completed successfully
|
|
40
41
|
expect(result.exitCode, `CLI failed with exit code ${result.exitCode}\nstdout: ${result.stdout}\nstderr: ${result.stderr}`).toBe(0);
|
|
@@ -45,8 +46,7 @@ describe('create-agents quickstart e2e', () => {
|
|
|
45
46
|
'src',
|
|
46
47
|
'src/inkeep.config.ts',
|
|
47
48
|
`src/projects/${projectId}`,
|
|
48
|
-
'apps/
|
|
49
|
-
'apps/run-api',
|
|
49
|
+
'apps/agents-api',
|
|
50
50
|
'apps/mcp',
|
|
51
51
|
'apps/manage-ui',
|
|
52
52
|
'.env',
|
|
@@ -63,7 +63,6 @@ describe('create-agents quickstart e2e', () => {
|
|
|
63
63
|
/INKEEP_AGENTS_MANAGE_DATABASE_URL=postgresql:\/\/appuser:password@localhost:5432\/inkeep_agents/,
|
|
64
64
|
/INKEEP_AGENTS_RUN_DATABASE_URL=postgresql:\/\/appuser:password@localhost:5433\/inkeep_agents/,
|
|
65
65
|
/INKEEP_AGENTS_API_URL="http:\/\/127\.0\.0\.1:3002"/,
|
|
66
|
-
/INKEEP_AGENTS_RUN_API_URL="http:\/\/127\.0\.0\.1:3003"/,
|
|
67
66
|
/INKEEP_AGENTS_JWT_SIGNING_SECRET=\w+/, // Random secret should be generated
|
|
68
67
|
]);
|
|
69
68
|
console.log('.env file verified');
|
|
@@ -71,20 +70,17 @@ describe('create-agents quickstart e2e', () => {
|
|
|
71
70
|
console.log('Verifying inkeep.config.ts...');
|
|
72
71
|
await verifyFile(path.join(projectDir, 'src/inkeep.config.ts'));
|
|
73
72
|
console.log('inkeep.config.ts verified');
|
|
74
|
-
// Link to local monorepo packages
|
|
73
|
+
// Link to local monorepo packages (also runs pnpm install --no-frozen-lockfile)
|
|
75
74
|
console.log('Linking local monorepo packages...');
|
|
76
75
|
await linkLocalPackages(projectDir, monorepoRoot);
|
|
77
|
-
console.log('Local monorepo packages linked');
|
|
78
|
-
console.log('Installing dependencies...');
|
|
79
|
-
await runCommand('pnpm', ['install'], projectDir);
|
|
80
|
-
console.log('Dependencies installed');
|
|
76
|
+
console.log('Local monorepo packages linked and dependencies installed');
|
|
81
77
|
console.log('Setting up project in database');
|
|
82
78
|
await runCommand('pnpm', ['setup-dev:cloud'], projectDir, 600000); // 10 minutes for CI (includes pnpm install, migrations, server startup, push)
|
|
83
79
|
console.log('Project setup in database');
|
|
84
80
|
console.log('Starting dev servers');
|
|
85
81
|
// Start dev servers in background with output monitoring
|
|
86
82
|
const devProcess = execa('pnpm', ['dev'], {
|
|
87
|
-
cwd: path.join(projectDir, 'apps/
|
|
83
|
+
cwd: path.join(projectDir, 'apps/agents-api'),
|
|
88
84
|
env: {
|
|
89
85
|
...process.env,
|
|
90
86
|
FORCE_COLOR: '0',
|
package/dist/index.js
CHANGED
|
@@ -15,6 +15,7 @@ program
|
|
|
15
15
|
.option('--local-templates-prefix <local-templates-prefix>', 'Local prefix for project templates')
|
|
16
16
|
.option('--skip-inkeep-cli', 'Skip installing Inkeep CLI globally')
|
|
17
17
|
.option('--skip-inkeep-mcp', 'Skip installing Inkeep MCP server')
|
|
18
|
+
.option('--skip-install', 'Skip installing dependencies')
|
|
18
19
|
.parse();
|
|
19
20
|
async function main() {
|
|
20
21
|
const options = program.opts();
|
|
@@ -31,6 +32,7 @@ async function main() {
|
|
|
31
32
|
localTemplatesPrefix: options.localTemplatesPrefix,
|
|
32
33
|
skipInkeepCli: options.skipInkeepCli,
|
|
33
34
|
skipInkeepMcp: options.skipInkeepMcp,
|
|
35
|
+
skipInstall: options.skipInstall,
|
|
34
36
|
});
|
|
35
37
|
}
|
|
36
38
|
catch (error) {
|
package/dist/utils.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ export declare const createAgents: (args?: {
|
|
|
45
45
|
localTemplatesPrefix?: string;
|
|
46
46
|
skipInkeepCli?: boolean;
|
|
47
47
|
skipInkeepMcp?: boolean;
|
|
48
|
+
skipInstall?: boolean;
|
|
48
49
|
}) => Promise<void>;
|
|
49
50
|
export declare function createCommand(dirName?: string, options?: any): Promise<void>;
|
|
50
51
|
export declare function addInkeepMcp(): Promise<void>;
|
package/dist/utils.js
CHANGED
|
@@ -67,7 +67,7 @@ export const defaultAnthropicModelConfigurations = {
|
|
|
67
67
|
},
|
|
68
68
|
};
|
|
69
69
|
export const createAgents = async (args = {}) => {
|
|
70
|
-
let { dirName, openAiKey, anthropicKey, googleKey, azureKey, template, customProjectId, disableGit, localAgentsPrefix, localTemplatesPrefix, skipInkeepCli, skipInkeepMcp, } = args;
|
|
70
|
+
let { dirName, openAiKey, anthropicKey, googleKey, azureKey, template, customProjectId, disableGit, localAgentsPrefix, localTemplatesPrefix, skipInkeepCli, skipInkeepMcp, skipInstall, } = args;
|
|
71
71
|
const tenantId = 'default';
|
|
72
72
|
let projectId;
|
|
73
73
|
let templateName;
|
|
@@ -341,8 +341,10 @@ export const createAgents = async (args = {}) => {
|
|
|
341
341
|
}
|
|
342
342
|
s.message('Creating inkeep.config.ts...');
|
|
343
343
|
await createInkeepConfig(config);
|
|
344
|
-
|
|
345
|
-
|
|
344
|
+
if (!skipInstall) {
|
|
345
|
+
s.message('Installing dependencies (this may take a while)...');
|
|
346
|
+
await installDependencies();
|
|
347
|
+
}
|
|
346
348
|
if (!config.disableGit) {
|
|
347
349
|
await initializeGit();
|
|
348
350
|
}
|
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-20260121072051",
|
|
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.0.0-dev-
|
|
36
|
+
"@inkeep/agents-core": "0.0.0-dev-20260121072051"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/degit": "^2.8.6",
|