@inkeep/create-agents 0.26.1 → 0.27.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.
@@ -73,7 +73,7 @@ describe('createAgents - Template and Project ID Logic', () => {
73
73
  processChdirSpy.mockRestore();
74
74
  });
75
75
  describe('Default behavior (no template or customProjectId)', () => {
76
- it('should use event-planner as default template and project ID', async () => {
76
+ it('should use activies-planner as default template and project ID', async () => {
77
77
  await createAgents({
78
78
  dirName: 'test-dir',
79
79
  openAiKey: 'test-openai-key',
@@ -82,7 +82,7 @@ describe('createAgents - Template and Project ID Logic', () => {
82
82
  // Should clone base template and weather-project template
83
83
  expect(cloneTemplate).toHaveBeenCalledTimes(2);
84
84
  expect(cloneTemplate).toHaveBeenCalledWith('https://github.com/inkeep/create-agents-template', expect.any(String));
85
- expect(cloneTemplate).toHaveBeenCalledWith('https://github.com/inkeep/agents-cookbook/template-projects/event-planner', 'src/projects/event-planner', expect.arrayContaining([
85
+ expect(cloneTemplate).toHaveBeenCalledWith('https://github.com/inkeep/agents-cookbook/template-projects/activities-planner', 'src/projects/activities-planner', expect.arrayContaining([
86
86
  expect.objectContaining({
87
87
  filePath: 'index.ts',
88
88
  replacements: expect.objectContaining({
@@ -289,7 +289,10 @@ describe('createAgents - Template and Project ID Logic', () => {
289
289
  const apiKeyCalls = textCalls.filter((call) => call[0] &&
290
290
  typeof call[0] === 'object' &&
291
291
  'message' in call[0] &&
292
- (call[0].message.includes('API key') || call[0].message.includes('Anthropic') || call[0].message.includes('OpenAI') || call[0].message.includes('Google')));
292
+ (call[0].message.includes('API key') ||
293
+ call[0].message.includes('Anthropic') ||
294
+ call[0].message.includes('OpenAI') ||
295
+ call[0].message.includes('Google')));
293
296
  expect(apiKeyCalls).toHaveLength(0);
294
297
  });
295
298
  it('should use password input for OpenAI keys', async () => {
package/dist/utils.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import { exec } from 'node:child_process';
2
+ import crypto from 'node:crypto';
2
3
  import path from 'node:path';
3
4
  import { promisify } from 'node:util';
4
5
  import * as p from '@clack/prompts';
@@ -63,8 +64,8 @@ export const createAgents = async (args = {}) => {
63
64
  templateName = template;
64
65
  }
65
66
  else {
66
- projectId = 'event-planner';
67
- templateName = 'event-planner';
67
+ projectId = 'activities-planner';
68
+ templateName = 'activities-planner';
68
69
  }
69
70
  p.intro(color.inverse(' Create Agents Directory '));
70
71
  if (!dirName) {
@@ -260,6 +261,7 @@ async function createWorkspaceStructure() {
260
261
  async function createEnvironmentFiles(config) {
261
262
  // Convert to forward slashes for cross-platform SQLite URI compatibility
262
263
  const dbPath = process.cwd().replace(/\\/g, '/');
264
+ const jwtSigningSecret = crypto.randomBytes(32).toString('hex');
263
265
  const envContent = `# Environment
264
266
  ENVIRONMENT=development
265
267
 
@@ -285,6 +287,9 @@ OTEL_EXPORTER_OTLP_TRACES_HEADERS="signoz-ingestion-key=<your-ingestion-key>"
285
287
 
286
288
  # Nango Configuration
287
289
  NANGO_SECRET_KEY=
290
+
291
+ # JWT Signing Secret
292
+ INKEEP_AGENTS_JWT_SIGNING_SECRET=${jwtSigningSecret}
288
293
  `;
289
294
  await fs.writeFile('.env', envContent);
290
295
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/create-agents",
3
- "version": "0.26.1",
3
+ "version": "0.27.0",
4
4
  "description": "Create an Inkeep Agent Framework project",
5
5
  "type": "module",
6
6
  "bin": {
@@ -34,7 +34,7 @@
34
34
  "fs-extra": "^11.0.0",
35
35
  "picocolors": "^1.0.0",
36
36
  "drizzle-kit": "^0.31.5",
37
- "@inkeep/agents-core": "0.26.1"
37
+ "@inkeep/agents-core": "0.27.0"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/degit": "^2.8.6",