ardent-cli 0.0.31 → 0.0.32

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.
Files changed (2) hide show
  1. package/dist/index.js +12 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1492,6 +1492,17 @@ async function promptForUnsupportedExtensions(connectorId, unsupported, alreadyP
1492
1492
  console.log(`\u2713 Saved drop selection: ${merged.join(", ")}`);
1493
1493
  return "applied";
1494
1494
  }
1495
+ function printUnloggedTablesPreflight(preflight) {
1496
+ if (!preflight) return;
1497
+ const unavailableWarning = preflight.warning ?? "UNLOGGED-table preflight is unavailable for this connector. Contact Ardent support.";
1498
+ const message = preflight.status === "unavailable" ? unavailableWarning : (preflight.message ?? "").trim();
1499
+ if (!message) return;
1500
+ const yellow = "\x1B[33m";
1501
+ const reset2 = "\x1B[0m";
1502
+ console.log("");
1503
+ console.log(`${yellow}\u26A0 ${message}${reset2}`);
1504
+ console.log("");
1505
+ }
1495
1506
  async function createAction2(type, url, options) {
1496
1507
  const supportedTypes = ["postgresql"];
1497
1508
  if (!supportedTypes.includes(type.toLowerCase())) {
@@ -1668,6 +1679,7 @@ async function createAction2(type, url, options) {
1668
1679
  process.exit(1);
1669
1680
  }
1670
1681
  }
1682
+ printUnloggedTablesPreflight(connector.unlogged_tables_preflight ?? null);
1671
1683
  if (connector.branching_engine_status === "configuration_verified") {
1672
1684
  await handleReplicaIdentityPreflight(
1673
1685
  connectorId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ardent-cli",
3
- "version": "0.0.31",
3
+ "version": "0.0.32",
4
4
  "description": "Git for Data infrastructure",
5
5
  "type": "module",
6
6
  "bin": {