postgresai 0.17.0-dev.0 → 0.17.0-dev.1

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.
@@ -13524,7 +13524,7 @@ var {
13524
13524
  // package.json
13525
13525
  var package_default = {
13526
13526
  name: "postgresai",
13527
- version: "0.17.0-dev.0",
13527
+ version: "0.17.0-dev.1",
13528
13528
  description: "postgres_ai CLI",
13529
13529
  license: "Apache-2.0",
13530
13530
  private: false,
@@ -16867,7 +16867,7 @@ var Result = import_lib.default.Result;
16867
16867
  var TypeOverrides = import_lib.default.TypeOverrides;
16868
16868
  var defaults = import_lib.default.defaults;
16869
16869
  // package.json
16870
- var version = "0.17.0-dev.0";
16870
+ var version = "0.17.0-dev.1";
16871
16871
  var package_default2 = {
16872
16872
  name: "postgresai",
16873
16873
  version,
@@ -17228,9 +17228,9 @@ var ORG_ALIAS_HEADER = "x-pgai-org";
17228
17228
  var ORG_ID_HEADER = "x-pgai-org-id";
17229
17229
  class OrgScopeError extends Error {
17230
17230
  }
17231
- var activeOrgScope;
17231
+ var ACTIVE_ORG_SCOPE_KEY = Symbol.for("postgres-ai.cli.activeOrgScope");
17232
17232
  function getActiveOrgScope() {
17233
- return activeOrgScope;
17233
+ return globalThis[ACTIVE_ORG_SCOPE_KEY];
17234
17234
  }
17235
17235
  function orgScopeHeaders(scope) {
17236
17236
  if (!scope)
@@ -17246,7 +17246,7 @@ function buildAuthHeaders(apiKey, scope, extra = {}) {
17246
17246
  "access-token": apiKey,
17247
17247
  "Content-Type": "application/json",
17248
17248
  Connection: "close",
17249
- ...orgScopeHeaders(scope ?? activeOrgScope),
17249
+ ...orgScopeHeaders(scope ?? getActiveOrgScope()),
17250
17250
  ...extra
17251
17251
  };
17252
17252
  }
@@ -32145,12 +32145,12 @@ function requireOrgScope(opts = {}, apiKey) {
32145
32145
  }
32146
32146
  return { source: "token" };
32147
32147
  }
32148
- var activeOrgScope2;
32148
+ var ACTIVE_ORG_SCOPE_KEY2 = Symbol.for("postgres-ai.cli.activeOrgScope");
32149
32149
  function setActiveOrgScope(scope) {
32150
- activeOrgScope2 = scope;
32150
+ globalThis[ACTIVE_ORG_SCOPE_KEY2] = scope;
32151
32151
  }
32152
32152
  function getActiveOrgScope2() {
32153
- return activeOrgScope2;
32153
+ return globalThis[ACTIVE_ORG_SCOPE_KEY2];
32154
32154
  }
32155
32155
  function configOrgIdForBody(apiKey, cfgOrgId) {
32156
32156
  if (isGlobalTokenValue2(apiKey))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postgresai",
3
- "version": "0.17.0-dev.0",
3
+ "version": "0.17.0-dev.1",
4
4
  "description": "postgres_ai CLI",
5
5
  "license": "Apache-2.0",
6
6
  "private": false,