@inkeep/create-agents 0.12.0 → 0.13.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 +8 -3
  2. package/package.json +1 -1
package/dist/utils.js CHANGED
@@ -33,10 +33,10 @@ export const defaultAnthropicModelConfigurations = {
33
33
  model: 'anthropic/claude-sonnet-4-20250514',
34
34
  },
35
35
  structuredOutput: {
36
- model: 'anthropic/claude-3-5-haiku-20241022',
36
+ model: 'anthropic/claude-sonnet-4-20250514',
37
37
  },
38
38
  summarizer: {
39
- model: 'anthropic/claude-3-5-haiku-20241022',
39
+ model: 'anthropic/claude-sonnet-4-20250514',
40
40
  },
41
41
  };
42
42
  export const createAgents = async (args = {}) => {
@@ -91,7 +91,7 @@ export const createAgents = async (args = {}) => {
91
91
  }
92
92
  // Project ID is already determined above based on template/customProjectId logic
93
93
  // If keys aren't provided via CLI args, prompt for provider selection and keys
94
- if (!anthropicKey && !openAiKey) {
94
+ if (!anthropicKey && !openAiKey && !googleKey) {
95
95
  const providerChoice = await p.select({
96
96
  message: 'Which AI provider would you like to use?',
97
97
  options: [
@@ -167,6 +167,11 @@ export const createAgents = async (args = {}) => {
167
167
  else if (googleKey) {
168
168
  defaultModelSettings = defaultGoogleModelConfigurations;
169
169
  }
170
+ // Ensure models are always configured - fail if none were set
171
+ if (Object.keys(defaultModelSettings).length === 0) {
172
+ p.cancel('Cannot continue without a model configuration for project. Please provide an API key for at least one AI provider.');
173
+ process.exit(1);
174
+ }
170
175
  const s = p.spinner();
171
176
  s.start('Creating directory structure...');
172
177
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/create-agents",
3
- "version": "0.12.0",
3
+ "version": "0.13.0",
4
4
  "description": "Create an Inkeep Agent Framework project",
5
5
  "type": "module",
6
6
  "bin": {