@bahulam/code 2.6.6 → 2.6.7
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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bahulam/code",
|
|
3
|
-
"version": "2.6.
|
|
4
|
-
"description": "Bahulam Code
|
|
3
|
+
"version": "2.6.7",
|
|
4
|
+
"description": "Bahulam Code — abundance, in your terminal. CLI-first, reliability-first, sub-agents, 65.6% SWE-bench Verified.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"bahulam": "src/terminal/main.mjs",
|
package/src/core/backend-url.mjs
CHANGED
|
@@ -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://
|
|
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:
|
|
147
|
-
//
|
|
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
|
-
|| '
|
|
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;
|