unoverse 0.1.66 → 0.1.68

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.
@@ -12,7 +12,11 @@
12
12
  # away, and the SAVED plan is what runs, so what was approved is what happens. Identical
13
13
  # for every cloud: the summary reads the plan JSON, which is provider-agnostic.
14
14
  _ground_apply() {
15
- local cloud="$1" dir="$ROOT/infra/$cloud" tmp planfile rc
15
+ local cloud="$1" tmp planfile rc
16
+ # SEPARATE STATEMENT. On macOS bash 3.2 a single `local a="$1" b="...$a"` expands $a
17
+ # EMPTY, so dir became "$ROOT/infra/" and terraform answered "No configuration files".
18
+ # Same trap that once made the release publish the repo root.
19
+ local dir="$ROOT/infra/$cloud"
16
20
  tmp=$(mktemp -d); planfile="$tmp/plan"
17
21
 
18
22
  terraform -chdir="$dir" init -input=false >/dev/null 2>&1 || { fail "terraform init failed"; rm -rf "$tmp"; return 1; }
@@ -202,6 +206,13 @@ cmd_deploy() {
202
206
  fi
203
207
  ok "terraform.tfvars is complete"
204
208
 
209
+ # SIZE IS NOT A ONE-WAY DOOR. small is the POC box, and the plan below is about to
210
+ # quote its monthly cost — the moment someone wonders whether they are committing to
211
+ # it. One line, here, rather than a discovery later.
212
+ local cur_size
213
+ cur_size=$(grep -E '^size[[:space:]]*=' "$tfv" 2>/dev/null | sed -E 's/.*"([^"]+)".*/\1/')
214
+ [ -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}"
215
+
205
216
  # STRAIGHT INTO TERRAFORM. Its plan plus its own typed "yes" IS the decision gate
206
217
  # for billable infrastructure; a [Y/n] in front of it was asking permission to ask
207
218
  # 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.66",
3
+ "version": "0.1.68",
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",