@integrity-labs/agt-cli 0.10.8 → 0.10.9

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.
@@ -3540,16 +3540,13 @@ function setActiveTeam(slug) {
3540
3540
  config.active_team = slug;
3541
3541
  saveConfig(config);
3542
3542
  }
3543
+ var DEFAULT_AGT_HOST = "https://api.augmented.team";
3543
3544
  function getHost() {
3544
- return process.env["AGT_HOST"];
3545
+ return process.env["AGT_HOST"] ?? DEFAULT_AGT_HOST;
3545
3546
  }
3546
- var AGT_HOST = process.env["AGT_HOST"];
3547
+ var AGT_HOST = process.env["AGT_HOST"] ?? DEFAULT_AGT_HOST;
3547
3548
  function requireHost() {
3548
- const host = getHost();
3549
- if (!host) {
3550
- throw new Error("AGT_HOST is not set. Export it to point at the Augmented API (e.g. export AGT_HOST=https://your-api.example.com)");
3551
- }
3552
- return host;
3549
+ return getHost();
3553
3550
  }
3554
3551
 
3555
3552
  // src/lib/api-client.ts
@@ -5749,4 +5746,4 @@ export {
5749
5746
  detectDrift,
5750
5747
  provision
5751
5748
  };
5752
- //# sourceMappingURL=chunk-VDUA5FEW.js.map
5749
+ //# sourceMappingURL=chunk-PZG4XPJV.js.map