@inkeep/create-agents 0.0.0-dev-20250916184039 → 0.0.0-dev-20250916192201

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.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare const defaultDualModelConfigurations: {
1
+ export declare const defaultGoogleModelConfigurations: {
2
2
  base: {
3
3
  model: string;
4
4
  };
@@ -36,6 +36,7 @@ export declare const createAgents: (args?: {
36
36
  templateName?: string;
37
37
  openAiKey?: string;
38
38
  anthropicKey?: string;
39
+ googleKey?: string;
39
40
  template?: string;
40
41
  customProjectId?: string;
41
42
  }) => Promise<void>;
package/dist/utils.js CHANGED
@@ -1,20 +1,20 @@
1
- import color from 'picocolors';
2
1
  import * as p from '@clack/prompts';
3
- import fs from 'fs-extra';
4
2
  import { exec } from 'child_process';
5
- import { promisify } from 'util';
3
+ import fs from 'fs-extra';
6
4
  import path from 'path';
5
+ import color from 'picocolors';
6
+ import { promisify } from 'util';
7
7
  import { cloneTemplate, getAvailableTemplates } from './templates.js';
8
8
  const execAsync = promisify(exec);
9
- export const defaultDualModelConfigurations = {
9
+ export const defaultGoogleModelConfigurations = {
10
10
  base: {
11
- model: 'anthropic/claude-sonnet-4-20250514',
11
+ model: 'google/gemini-2.5-flash',
12
12
  },
13
13
  structuredOutput: {
14
- model: 'openai/gpt-4.1-mini-2025-04-14',
14
+ model: 'google/gemini-2.5-flash-lite',
15
15
  },
16
16
  summarizer: {
17
- model: 'openai/gpt-4.1-nano-2025-04-14',
17
+ model: 'google/gemini-2.5-flash-lite',
18
18
  },
19
19
  };
20
20
  export const defaultOpenaiModelConfigurations = {
@@ -33,14 +33,14 @@ export const defaultAnthropicModelConfigurations = {
33
33
  model: 'anthropic/claude-sonnet-4-20250514',
34
34
  },
35
35
  structuredOutput: {
36
- model: 'anthropic/claude-sonnet-4-20250514',
36
+ model: 'anthropic/claude-3-5-haiku-20241022',
37
37
  },
38
38
  summarizer: {
39
- model: 'anthropic/claude-sonnet-4-20250514',
39
+ model: 'anthropic/claude-3-5-haiku-20241022',
40
40
  },
41
41
  };
42
42
  export const createAgents = async (args = {}) => {
43
- let { dirName, openAiKey, anthropicKey, template, customProjectId } = args;
43
+ let { dirName, openAiKey, anthropicKey, googleKey, template, customProjectId } = args;
44
44
  const tenantId = 'default';
45
45
  const manageApiPort = '3002';
46
46
  const runApiPort = '3003';
@@ -97,6 +97,7 @@ export const createAgents = async (args = {}) => {
97
97
  options: [
98
98
  { value: 'anthropic', label: 'Anthropic only' },
99
99
  { value: 'openai', label: 'OpenAI only' },
100
+ { value: 'google', label: 'Google only' },
100
101
  ],
101
102
  });
102
103
  if (p.isCancel(providerChoice)) {
@@ -121,7 +122,7 @@ export const createAgents = async (args = {}) => {
121
122
  }
122
123
  anthropicKey = anthropicKeyResponse;
123
124
  }
124
- if (providerChoice === 'openai') {
125
+ else if (providerChoice === 'openai') {
125
126
  const openAiKeyResponse = await p.text({
126
127
  message: 'Enter your OpenAI API key:',
127
128
  placeholder: 'sk-...',
@@ -138,49 +139,41 @@ export const createAgents = async (args = {}) => {
138
139
  }
139
140
  openAiKey = openAiKeyResponse;
140
141
  }
141
- }
142
- else {
143
- // If some keys are provided via CLI args, prompt for missing ones
144
- if (!anthropicKey) {
145
- const anthropicKeyResponse = await p.text({
146
- message: 'Enter your Anthropic API key (optional):',
147
- placeholder: 'sk-ant-...',
148
- defaultValue: '',
149
- });
150
- if (p.isCancel(anthropicKeyResponse)) {
151
- p.cancel('Operation cancelled');
152
- process.exit(0);
153
- }
154
- anthropicKey = anthropicKeyResponse || undefined;
155
- }
156
- if (!openAiKey) {
157
- const openAiKeyResponse = await p.text({
158
- message: 'Enter your OpenAI API key (optional):',
159
- placeholder: 'sk-...',
160
- defaultValue: '',
142
+ else if (providerChoice === 'google') {
143
+ const googleKeyResponse = await p.text({
144
+ message: 'Enter your Google API key:',
145
+ placeholder: 'AIzaSy...',
146
+ validate: (value) => {
147
+ if (!value || value.trim() === '') {
148
+ return 'Google API key is required';
149
+ }
150
+ return undefined;
151
+ },
161
152
  });
162
- if (p.isCancel(openAiKeyResponse)) {
153
+ if (p.isCancel(googleKeyResponse)) {
163
154
  p.cancel('Operation cancelled');
164
155
  process.exit(0);
165
156
  }
166
- openAiKey = openAiKeyResponse || undefined;
157
+ googleKey = googleKeyResponse;
167
158
  }
168
159
  }
169
160
  let defaultModelSettings = {};
170
- if (anthropicKey && openAiKey) {
171
- defaultModelSettings = defaultDualModelConfigurations;
172
- }
173
- else if (anthropicKey) {
161
+ if (anthropicKey) {
174
162
  defaultModelSettings = defaultAnthropicModelConfigurations;
175
163
  }
176
164
  else if (openAiKey) {
177
165
  defaultModelSettings = defaultOpenaiModelConfigurations;
178
166
  }
167
+ else if (googleKey) {
168
+ defaultModelSettings = defaultGoogleModelConfigurations;
169
+ }
179
170
  const s = p.spinner();
180
171
  s.start('Creating directory structure...');
181
172
  try {
182
173
  const agentsTemplateRepo = 'https://github.com/inkeep/create-agents-template';
183
- const projectTemplateRepo = templateName ? `https://github.com/inkeep/agents-cookbook/templates/${templateName}` : null;
174
+ const projectTemplateRepo = templateName
175
+ ? `https://github.com/inkeep/agents-cookbook/templates/${templateName}`
176
+ : null;
184
177
  const directoryPath = path.resolve(process.cwd(), dirName);
185
178
  // Check if directory already exists
186
179
  if (await fs.pathExists(directoryPath)) {
@@ -284,6 +277,7 @@ DB_FILE_NAME=file:./local.db
284
277
  # AI Provider Keys
285
278
  ANTHROPIC_API_KEY=${config.anthropicKey || 'your-anthropic-key-here'}
286
279
  OPENAI_API_KEY=${config.openAiKey || 'your-openai-key-here'}
280
+ GOOGLE_GENERATIVE_AI_API_KEY=${config.googleKey || 'your-google-key-here'}
287
281
  `;
288
282
  await fs.writeFile('.env', envContent);
289
283
  // Create .env.example
@@ -299,6 +293,7 @@ DB_FILE_NAME=file:../../local.db
299
293
  # AI Provider Keys
300
294
  ANTHROPIC_API_KEY=${config.anthropicKey || 'your-anthropic-key-here'}
301
295
  OPENAI_API_KEY=${config.openAiKey || 'your-openai-key-here'}
296
+ GOOGLE_GENERATIVE_AI_API_KEY=${config.googleKey || 'your-google-key-here'}
302
297
 
303
298
  AGENTS_RUN_API_URL=http://localhost:${config.runApiPort}
304
299
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/create-agents",
3
- "version": "0.0.0-dev-20250916184039",
3
+ "version": "0.0.0-dev-20250916192201",
4
4
  "description": "Create an Inkeep Agent Framework project",
5
5
  "type": "module",
6
6
  "bin": {