@inkeep/create-agents 0.36.1 → 0.37.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.
Files changed (2) hide show
  1. package/dist/utils.js +21 -0
  2. package/package.json +2 -4
package/dist/utils.js CHANGED
@@ -311,6 +311,23 @@ async function createEnvironmentFiles(config) {
311
311
  // Convert to forward slashes for cross-platform SQLite URI compatibility
312
312
  const jwtSigningSecret = crypto.randomBytes(32).toString('hex');
313
313
  const betterAuthSecret = crypto.randomBytes(32).toString('hex');
314
+ // Generate RSA key pair for temporary JWT tokens
315
+ let tempJwtPrivateKey = '';
316
+ let tempJwtPublicKey = '';
317
+ try {
318
+ const { generateKeyPairSync } = await import('node:crypto');
319
+ const { privateKey, publicKey } = generateKeyPairSync('rsa', {
320
+ modulusLength: 2048,
321
+ publicKeyEncoding: { type: 'spki', format: 'pem' },
322
+ privateKeyEncoding: { type: 'pkcs8', format: 'pem' },
323
+ });
324
+ tempJwtPrivateKey = Buffer.from(privateKey).toString('base64');
325
+ tempJwtPublicKey = Buffer.from(publicKey).toString('base64');
326
+ }
327
+ catch (error) {
328
+ console.warn('Warning: Failed to generate JWT keys. Playground may not work.');
329
+ console.warn('You can manually generate keys later with: pnpm run generate-jwt-keys');
330
+ }
314
331
  const envContent = `# Environment
315
332
  ENVIRONMENT=development
316
333
 
@@ -345,6 +362,10 @@ NANGO_SECRET_KEY=
345
362
  # JWT Signing Secret
346
363
  INKEEP_AGENTS_JWT_SIGNING_SECRET=${jwtSigningSecret}
347
364
 
365
+ # Temporary JWT Keys for Playground
366
+ INKEEP_AGENTS_TEMP_JWT_PRIVATE_KEY=${tempJwtPrivateKey}
367
+ INKEEP_AGENTS_TEMP_JWT_PUBLIC_KEY=${tempJwtPublicKey}
368
+
348
369
  # initial project information
349
370
  DEFAULT_PROJECT_ID=${config.projectId}
350
371
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/create-agents",
3
- "version": "0.36.1",
3
+ "version": "0.37.0",
4
4
  "description": "Create an Inkeep Agent Framework project",
5
5
  "type": "module",
6
6
  "bin": {
@@ -29,14 +29,12 @@
29
29
  "license": "SEE LICENSE IN LICENSE.md",
30
30
  "dependencies": {
31
31
  "@clack/prompts": "^0.11.0",
32
- "@hono/zod-openapi": "^1.0.2",
33
32
  "commander": "^12.0.0",
34
33
  "degit": "^2.8.4",
35
34
  "drizzle-kit": "^0.31.5",
36
35
  "fs-extra": "^11.0.0",
37
36
  "picocolors": "^1.0.0",
38
- "zod": "^4.1.11",
39
- "@inkeep/agents-core": "0.36.1"
37
+ "@inkeep/agents-core": "0.37.0"
40
38
  },
41
39
  "devDependencies": {
42
40
  "@types/degit": "^2.8.6",