@bahulam/code 2.6.6 → 2.6.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bahulam/code",
3
- "version": "2.6.6",
3
+ "version": "2.6.8",
4
4
  "description": "Bahulam Code \u2014 abundance, in your terminal. CLI-first, reliability-first, sub-agents, 65.6% SWE-bench Verified.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -49,6 +49,7 @@
49
49
  "web-tree-sitter": "^0.26.9"
50
50
  },
51
51
  "optionalDependencies": {
52
- "@bahulam/runtime-darwin-arm64": "2.6.6"
52
+ "@bahulam/runtime-darwin-arm64": "2.6.8",
53
+ "@bahulam/runtime-linux-x64": "2.6.8"
53
54
  }
54
55
  }
@@ -17,7 +17,7 @@ const BACKEND_URLS = {
17
17
  // value below is only used if the runtime isn't up yet.
18
18
  local: 'http://127.0.0.1:8150',
19
19
  dev: 'https://codekepler-backend-dev.kindisland-9034322d.eastus.azurecontainerapps.io',
20
- production: 'https://codekepler-backend-prod.gentlerock-9816c6b8.centralus.azurecontainerapps.io',
20
+ production: 'https://api.bahulam.ai',
21
21
  bundled: 'http://127.0.0.1:0', // sentinel — real URL comes from bundled-runtime.mjs
22
22
  };
23
23
 
@@ -143,12 +143,23 @@ export class TarangStreamClient {
143
143
  this._abort = null;
144
144
  this._toolAbort = null;
145
145
 
146
- // Transport mode: 'bundled' → local Python runtime (PRD-091 §6), 'remote' → cloud backend.
147
- // Explicit opt precedence: constructor arg > env var > default 'remote'.
146
+ // Transport mode:
147
+ // 'bundled' local Python runtime (PRD-091 §6). Framework calls
148
+ // the Bahulam Gateway directly. Metering runs. THIS IS THE
149
+ // PUBLIC CLI DEFAULT.
150
+ // 'remote' → cloud backend runs the agent loop server-side.
151
+ // Backend hits its provider directly (bypasses gateway metering).
152
+ // Retained for enterprise flows (Power BI workspaces, scheduled
153
+ // jobs) that need a persistent host. Not for individual devs.
154
+ //
155
+ // Explicit opt precedence: constructor arg > env vars > sniff runtime
156
+ // package availability > default 'bundled'.
148
157
  this.mode = mode
158
+ || (process.env.BAHULAM_RUNTIME_MODE === 'remote' ? 'remote' : null)
149
159
  || (process.env.BAHULAM_RUNTIME_MODE === 'bundled' ? 'bundled' : null)
160
+ || (process.env.TARANG_ENV === 'remote' ? 'remote' : null)
150
161
  || (process.env.TARANG_ENV === 'bundled' ? 'bundled' : null)
151
- || 'remote';
162
+ || 'bundled';
152
163
  // Bundled runtime binds to a random localhost port on first use. Cached
153
164
  // here so every method sees the same baseUrl without re-spawning.
154
165
  this._bundledReady = false;