@inkeep/create-agents 0.0.0-dev-20251119173442 → 0.0.0-dev-20251119223723
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/utils.js +30 -0
- package/package.json +2 -2
package/dist/utils.js
CHANGED
|
@@ -255,6 +255,12 @@ export const createAgents = async (args = {}) => {
|
|
|
255
255
|
}
|
|
256
256
|
await checkPortsAvailability();
|
|
257
257
|
s.stop();
|
|
258
|
+
const installInkeepCLIResponse = await p.confirm({
|
|
259
|
+
message: 'Would you like to install the Inkeep CLI globally?',
|
|
260
|
+
});
|
|
261
|
+
if (!p.isCancel(installInkeepCLIResponse) && installInkeepCLIResponse) {
|
|
262
|
+
await installInkeepCLI();
|
|
263
|
+
}
|
|
258
264
|
p.note(`${color.green('✓')} Workspace created at: ${color.cyan(directoryPath)}\n\n` +
|
|
259
265
|
`${color.yellow('Next steps:')}\n` +
|
|
260
266
|
` cd ${dirName}\n` +
|
|
@@ -348,6 +354,30 @@ export const myProject = project({
|
|
|
348
354
|
await fs.writeFile(`src/projects/${config.projectId}/index.ts`, customIndexContent);
|
|
349
355
|
}
|
|
350
356
|
}
|
|
357
|
+
async function installInkeepCLI() {
|
|
358
|
+
const s = p.spinner();
|
|
359
|
+
s.start('Installing Inkeep CLI globally with pnpm...');
|
|
360
|
+
try {
|
|
361
|
+
await execAsync('pnpm add -g @inkeep/agents-cli');
|
|
362
|
+
s.stop('✓ Inkeep CLI installed successfully with pnpm');
|
|
363
|
+
return;
|
|
364
|
+
}
|
|
365
|
+
catch (_pnpmError) {
|
|
366
|
+
s.message('pnpm failed, trying npm...');
|
|
367
|
+
try {
|
|
368
|
+
await execAsync('npm install -g @inkeep/agents-cli');
|
|
369
|
+
s.stop('✓ Inkeep CLI installed successfully with npm');
|
|
370
|
+
return;
|
|
371
|
+
}
|
|
372
|
+
catch (_npmError) {
|
|
373
|
+
s.stop('⚠️ Could not automatically install Inkeep CLI globally');
|
|
374
|
+
console.warn('You can install it manually later by running:');
|
|
375
|
+
console.warn(' npm install -g @inkeep/agents-cli');
|
|
376
|
+
console.warn(' or');
|
|
377
|
+
console.warn(' pnpm add -g @inkeep/agents-cli\n');
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
}
|
|
351
381
|
async function installDependencies() {
|
|
352
382
|
try {
|
|
353
383
|
const { stderr } = await execAsync('pnpm install');
|
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-20251119223723",
|
|
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.0.0-dev-
|
|
37
|
+
"@inkeep/agents-core": "0.0.0-dev-20251119223723"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/degit": "^2.8.6",
|