@dbx-tools/appkit-autopg 0.1.12 → 0.1.18

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
@@ -9,12 +9,12 @@
9
9
  }
10
10
  },
11
11
  "name": "@dbx-tools/appkit-autopg",
12
- "version": "0.1.12",
13
- "type": "module",
14
- "module": "index.ts",
12
+ "version": "0.1.18",
15
13
  "dependencies": {
16
- "@dbx-tools/appkit-shared": "0.1.12"
14
+ "@dbx-tools/shared": "0.1.18"
17
15
  },
16
+ "module": "index.ts",
17
+ "type": "module",
18
18
  "files": [
19
19
  "dist",
20
20
  "index*.ts",
@@ -28,6 +28,6 @@
28
28
  "repository": {
29
29
  "type": "git",
30
30
  "url": "git+https://github.com/reggie-db/dbx-tools-appkit.git",
31
- "directory": "packages/autopg"
31
+ "directory": "packages/appkit-autopg"
32
32
  }
33
33
  }
package/src/autopg.ts CHANGED
@@ -33,7 +33,7 @@
33
33
  * untouched and just inspect the returned record.
34
34
  */
35
35
 
36
- import { logUtils } from "@dbx-tools/appkit-shared";
36
+ import { logUtils } from "@dbx-tools/shared";
37
37
 
38
38
  import {
39
39
  applyToEnv,
package/src/resolver.ts CHANGED
@@ -34,7 +34,7 @@
34
34
  */
35
35
 
36
36
  import { getWorkspaceClient } from "@databricks/appkit";
37
- import { projectUtils, stringUtils, type logUtils } from "@dbx-tools/appkit-shared";
37
+ import { projectUtils, stringUtils, type logUtils } from "@dbx-tools/shared";
38
38
  import { setTimeout as sleep } from "node:timers/promises";
39
39
 
40
40
  import { parseAddress } from "./address.js";
@@ -289,7 +289,7 @@ export async function resolveConnection(
289
289
  log,
290
290
  );
291
291
  host = ep.status?.hosts?.host;
292
- log.info("autopg: resolved host from endpoint", { host });
292
+ log.debug("autopg: resolved host from endpoint", { host });
293
293
  }
294
294
  }
295
295
 
@@ -456,7 +456,7 @@ async function findEndpointByHost(
456
456
  const endpoints = await listEndpoints(ws, projectId, branchId);
457
457
  const match = endpoints.find((e) => e.status?.hosts?.host === host);
458
458
  if (match?.name) {
459
- log.info("autopg: matched endpoint by host", {
459
+ log.debug("autopg: matched endpoint by host", {
460
460
  host,
461
461
  endpoint: match.name,
462
462
  });
@@ -492,7 +492,7 @@ async function pickOrCreateProject(
492
492
  if (projects.length === 1) {
493
493
  const id = projectIdFromName(projects[0]!.name);
494
494
  if (id) {
495
- log.info("autopg: using only project", { project: id });
495
+ log.debug("autopg: using only project", { project: id });
496
496
  return id;
497
497
  }
498
498
  }
@@ -697,7 +697,7 @@ async function pickBranch(
697
697
  `autopg: project '${project}' has multiple branches and none marked default; set LAKEBASE_BRANCH or config.branch. Candidates: ${candidates}`,
698
698
  );
699
699
  }
700
- log.info("autopg: resolved branch", { project, branch: choice });
700
+ log.debug("autopg: resolved branch", { project, branch: choice });
701
701
  return choice;
702
702
  }
703
703
 
@@ -730,7 +730,7 @@ async function pickEndpoint(
730
730
  );
731
731
  }
732
732
  const host = primary.status?.hosts?.host;
733
- log.info("autopg: resolved endpoint", { endpoint: primary.name, host });
733
+ log.debug("autopg: resolved endpoint", { endpoint: primary.name, host });
734
734
  return { name: primary.name, host };
735
735
  }
736
736
 
@@ -766,6 +766,6 @@ async function pickDatabase(
766
766
  `autopg: multiple databases and no 'databricks_postgres'; set PGDATABASE or config.database. Candidates: ${names.join(", ")}`,
767
767
  );
768
768
  }
769
- log.info("autopg: resolved database", { database: choice });
769
+ log.debug("autopg: resolved database", { database: choice });
770
770
  return choice;
771
771
  }