unoverse 0.1.71 → 0.1.72

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.
@@ -114,6 +114,20 @@ _ensure_ground_config() {
114
114
  cur_size=$(grep -E '^size[[:space:]]*=' "$tfv" 2>/dev/null | sed -E 's/.*"([^"]+)".*/\1/')
115
115
  [ -n "$cur_size" ] && info "Size: ${BOLD}${cur_size}${NC} ${DIM}(small · medium · large — change it in terraform.tfvars and deploy again whenever you outgrow it)${NC}"
116
116
 
117
+ # THE DATABASE DECISION, STATED EVERY RUN. It is asked once and then recorded in
118
+ # terraform.tfvars, so later deploys correctly do not re-ask — but silence reads
119
+ # exactly like never having been asked. Say what is in force, the same way Size does.
120
+ local pg_reuse pg_byo
121
+ pg_reuse=$(grep -E '^existing_pg_cluster_name[[:space:]]*=' "$tfv" 2>/dev/null | sed -E 's/.*"([^"]+)".*/\1/')
122
+ pg_byo=$(grep -cE '^byo_postgres_url[[:space:]]*=' "$tfv" 2>/dev/null)
123
+ if [ -n "$pg_reuse" ]; then
124
+ info "Database: ${BOLD}reusing $pg_reuse${NC} ${DIM}(no new cluster, nothing added to your bill)${NC}"
125
+ elif [ "$pg_byo" = "1" ]; then
126
+ info "Database: ${BOLD}your own URL${NC} ${DIM}(byo_postgres_url in terraform.tfvars)${NC}"
127
+ else
128
+ info "Database: ${BOLD}a new managed cluster${NC} ${DIM}(~\$15/month — comment in existing_pg_cluster_name to reuse one instead)${NC}"
129
+ fi
130
+
117
131
  # STRAIGHT INTO TERRAFORM. Its plan plus its own typed "yes" IS the decision gate
118
132
  # for billable infrastructure; a [Y/n] in front of it was asking permission to ask
119
133
  # permission. Answering "no" is terraform's "no".
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unoverse",
3
- "version": "0.1.71",
3
+ "version": "0.1.72",
4
4
  "description": "The Unoverse front door — create a Studio project, a universe, or a client app, and launch Studio.",
5
5
  "license": "SEE LICENSE IN README.md",
6
6
  "type": "module",