@inkeep/create-agents 0.34.1 → 0.35.1
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 -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) {
|
|
@@ -294,6 +311,7 @@ async function createWorkspaceStructure() {
|
|
|
294
311
|
async function createEnvironmentFiles(config) {
|
|
295
312
|
// Convert to forward slashes for cross-platform SQLite URI compatibility
|
|
296
313
|
const jwtSigningSecret = crypto.randomBytes(32).toString('hex');
|
|
314
|
+
const betterAuthSecret = crypto.randomBytes(32).toString('hex');
|
|
297
315
|
const envContent = `# Environment
|
|
298
316
|
ENVIRONMENT=development
|
|
299
317
|
|
|
@@ -330,6 +348,13 @@ INKEEP_AGENTS_JWT_SIGNING_SECRET=${jwtSigningSecret}
|
|
|
330
348
|
|
|
331
349
|
# initial project information
|
|
332
350
|
DEFAULT_PROJECT_ID=${config.projectId}
|
|
351
|
+
|
|
352
|
+
# Auth Configuration
|
|
353
|
+
# INKEEP_AGENTS_MANAGE_UI_USERNAME=admin@example.com
|
|
354
|
+
# INKEEP_AGENTS_MANAGE_UI_PASSWORD=adminADMIN!@12
|
|
355
|
+
BETTER_AUTH_SECRET=${betterAuthSecret}
|
|
356
|
+
DISABLE_AUTH=true
|
|
357
|
+
|
|
333
358
|
`;
|
|
334
359
|
await fs.writeFile('.env', envContent);
|
|
335
360
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/create-agents",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.35.1",
|
|
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.
|
|
37
|
+
"@inkeep/agents-core": "0.35.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/degit": "^2.8.6",
|