@jpcasabiancai/cayenne 0.5.21 → 0.5.22

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/cli.js +5 -1
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -27727,7 +27727,11 @@ async function compose(cfg, lock, host, preflight) {
27727
27727
  let loggedCodex = null;
27728
27728
  let loggedClaude = null;
27729
27729
  const refresh = async () => {
27730
- providers = await detect();
27730
+ const found = await detect();
27731
+ if (found.claude.available && found.claude.models.length === 0 && providers.claude.available && providers.claude.models.length > 0) {
27732
+ found.claude = { ...providers.claude, ...found.claude, models: providers.claude.models };
27733
+ }
27734
+ providers = found;
27731
27735
  const line = JSON.stringify(providers.codex);
27732
27736
  if (line !== loggedCodex) {
27733
27737
  loggedCodex = line;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jpcasabiancai/cayenne",
3
- "version": "0.5.21",
3
+ "version": "0.5.22",
4
4
  "files": [
5
5
  "dist/cli.js"
6
6
  ],