gbos 1.3.22 → 1.3.23
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 +2 -1
- package/package.json +1 -1
- package/src/lib/api.js +6 -1
package/README.md
CHANGED
|
@@ -155,6 +155,7 @@ Stored at `~/.gbos/session.json`:
|
|
|
155
155
|
| Variable | Description |
|
|
156
156
|
|----------|-------------|
|
|
157
157
|
| `DEBUG=1` | Enable debug output |
|
|
158
|
+
| `GBOS_API_URL` | Override API endpoint (default: `https://api.gbos.io/api/v1`) |
|
|
158
159
|
|
|
159
160
|
## API Endpoints
|
|
160
161
|
|
|
@@ -260,7 +261,7 @@ gbos auth --force
|
|
|
260
261
|
## Links
|
|
261
262
|
|
|
262
263
|
- **GBOS Platform**: [https://gbos.io](https://gbos.io)
|
|
263
|
-
- **API Documentation**: [https://
|
|
264
|
+
- **API Documentation**: [https://api.gbos.io/docs](https://api.gbos.io/docs)
|
|
264
265
|
- **Issues**: [https://github.com/mystroanalytics/gbos-node-local/issues](https://github.com/mystroanalytics/gbos-node-local/issues)
|
|
265
266
|
|
|
266
267
|
## License
|
package/package.json
CHANGED
package/src/lib/api.js
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
const config = require('./config');
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// Default API endpoint (new domain)
|
|
4
|
+
const DEFAULT_API_URL = 'https://api.gbos.io/api/v1';
|
|
5
|
+
|
|
6
|
+
// Support GBOS_API_URL env var for backwards compatibility or custom endpoints
|
|
7
|
+
// e.g., GBOS_API_URL=https://gbos-api-579767694933.us-south1.run.app/api/v1
|
|
8
|
+
const API_BASE_URL = process.env.GBOS_API_URL || DEFAULT_API_URL;
|
|
4
9
|
|
|
5
10
|
class GbosApiClient {
|
|
6
11
|
constructor() {
|