@inkeep/create-agents 0.0.0-dev-20251120231034 → 0.0.0-dev-20251121000440
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 +22 -5
- package/package.json +2 -2
package/dist/utils.js
CHANGED
|
@@ -258,11 +258,28 @@ export const createAgents = async (args = {}) => {
|
|
|
258
258
|
await checkPortsAvailability();
|
|
259
259
|
s.stop();
|
|
260
260
|
if (!skipInkeepCli) {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
261
|
+
let isGloballyInstalled = false;
|
|
262
|
+
try {
|
|
263
|
+
const { stdout } = await execAsync('pnpm list -g @inkeep/agents-cli --json');
|
|
264
|
+
const result = JSON.parse(stdout);
|
|
265
|
+
isGloballyInstalled = result?.[0]?.dependencies?.['@inkeep/agents-cli'] !== undefined;
|
|
266
|
+
}
|
|
267
|
+
catch (_error) {
|
|
268
|
+
try {
|
|
269
|
+
await execAsync('npm list -g @inkeep/agents-cli');
|
|
270
|
+
isGloballyInstalled = true;
|
|
271
|
+
}
|
|
272
|
+
catch (_npmError) {
|
|
273
|
+
isGloballyInstalled = false;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
if (!isGloballyInstalled) {
|
|
277
|
+
const installInkeepCLIResponse = await p.confirm({
|
|
278
|
+
message: 'Would you like to install the Inkeep CLI globally?',
|
|
279
|
+
});
|
|
280
|
+
if (!p.isCancel(installInkeepCLIResponse) && installInkeepCLIResponse) {
|
|
281
|
+
await installInkeepCLIGlobally();
|
|
282
|
+
}
|
|
266
283
|
}
|
|
267
284
|
}
|
|
268
285
|
if (!skipInkeepMcp) {
|
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-20251121000440",
|
|
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-20251121000440"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/degit": "^2.8.6",
|