@kody-ade/kody-engine-lite 0.1.72 → 0.1.74

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/README.md CHANGED
@@ -144,7 +144,7 @@ Add the provider's API key to `.env`:
144
144
  ANTHROPIC_COMPATIBLE_API_KEY=your-key-here
145
145
  ```
146
146
 
147
- That's it. Kody auto-starts the LiteLLM proxy and loads API keys from `.env`. For advanced routing (different models per tier, custom config), add a `litellm-config.yaml`. [Full LiteLLM guide →](docs/LITELLM.md)
147
+ That's it. Kody auto-starts the LiteLLM proxy and loads API keys from `.env`. For per-tier model control, configure `modelMap` in `kody.config.json`. [Full LiteLLM guide →](docs/LITELLM.md)
148
148
 
149
149
  ## Commands
150
150
 
package/dist/bin/cli.js CHANGED
@@ -3445,17 +3445,12 @@ function generateLitellmConfig(provider, modelMap) {
3445
3445
  return entries.join("\n") + "\n";
3446
3446
  }
3447
3447
  async function tryStartLitellm(url, projectDir, generatedConfig) {
3448
- const manualConfigPath = path18.join(projectDir, "litellm-config.yaml");
3449
- let configPath;
3450
- if (fs19.existsSync(manualConfigPath)) {
3451
- configPath = manualConfigPath;
3452
- } else if (generatedConfig) {
3453
- configPath = path18.join(os.tmpdir(), "kody-litellm-config.yaml");
3454
- fs19.writeFileSync(configPath, generatedConfig);
3455
- } else {
3456
- logger.warn("litellm-config.yaml not found and no provider configured \u2014 cannot start proxy");
3448
+ if (!generatedConfig) {
3449
+ logger.warn("No provider configured in kody.config.json \u2014 cannot start LiteLLM proxy");
3457
3450
  return null;
3458
3451
  }
3452
+ const configPath = path18.join(os.tmpdir(), "kody-litellm-config.yaml");
3453
+ fs19.writeFileSync(configPath, generatedConfig);
3459
3454
  const portMatch = url.match(/:(\d+)/);
3460
3455
  const port = portMatch ? portMatch[1] : "4000";
3461
3456
  let litellmFound = false;
@@ -3638,7 +3633,7 @@ async function runModelHealthCheck(config) {
3638
3633
  logger.warn(`Skipping model health check \u2014 ${keyName} not set`);
3639
3634
  return;
3640
3635
  }
3641
- const model = config.agent.modelMap.cheap;
3636
+ const model = usesProxy ? "claude-haiku-4-5" : config.agent.modelMap.cheap;
3642
3637
  logger.info(`Model health check (${model} via ${usesProxy ? "LiteLLM" : "Anthropic"})...`);
3643
3638
  const result = await checkModelHealth(baseUrl, apiKey, model);
3644
3639
  if (result.ok) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine-lite",
3
- "version": "0.1.72",
3
+ "version": "0.1.74",
4
4
  "description": "Autonomous SDLC pipeline: Kody orchestration + Claude Code + LiteLLM",
5
5
  "license": "MIT",
6
6
  "type": "module",