gearbox-code 0.1.35 → 0.1.36

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.mjs +4 -1
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -142624,6 +142624,7 @@ function updatePrefs(patch) {
142624
142624
 
142625
142625
  // src/config.ts
142626
142626
  init_providers();
142627
+ init_store();
142627
142628
  var config2 = {
142628
142629
  defaultModelId: process.env.GEARBOX_MODEL ?? "claude-sonnet-4-6",
142629
142630
  maxSteps: Number(process.env.GEARBOX_MAX_STEPS ?? 24)
@@ -142636,7 +142637,9 @@ function pickDefaultModel(preferredId) {
142636
142637
  return modelRegistry().find((m2) => providerAvailable(m2.provider));
142637
142638
  }
142638
142639
  function anyProviderAvailable() {
142639
- return modelRegistry().some((m2) => providerAvailable(m2.provider));
142640
+ if (modelRegistry().some((m2) => providerAvailable(m2.provider)))
142641
+ return true;
142642
+ return listAccounts().some((a) => a.enabled && a.exec === "cli");
142640
142643
  }
142641
142644
 
142642
142645
  // src/model/selector.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gearbox-code",
3
- "version": "0.1.35",
3
+ "version": "0.1.36",
4
4
  "description": "A beautiful multi-provider coding harness for the terminal. (Intelligent model routing lands on top of this soon.)",
5
5
  "type": "module",
6
6
  "license": "MIT",