@metricraven/cli 0.4.0 → 0.4.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.
Files changed (2) hide show
  1. package/dist/commands.js +3 -0
  2. package/package.json +1 -1
package/dist/commands.js CHANGED
@@ -1115,6 +1115,7 @@ const PROXY_STATUS = {
1115
1115
  issuing_certificate: "Issuing certificate",
1116
1116
  active: "Active",
1117
1117
  error: "Needs attention",
1118
+ paused: "Paused (plan ended)",
1118
1119
  };
1119
1120
  function printProxy(d) {
1120
1121
  const p = d.proxy;
@@ -1127,6 +1128,8 @@ function printProxy(d) {
1127
1128
  out(`${bold(p.hostname)} ${PROXY_STATUS[p.status] ?? p.status}${p.checkedAt ? dim(` (checked ${date(p.checkedAt)})`) : ""}`);
1128
1129
  if (p.error)
1129
1130
  out(p.error);
1131
+ if (p.status === "paused")
1132
+ return out("Paused because your plan ended. Choose a plan, then run `metricraven proxy check` to set it up again.");
1130
1133
  if (p.status !== "active")
1131
1134
  out(section("Add this DNS record", table(["Type", "Name / Host", "Value", ""], p.records.map((r) => [r.type, r.name, r.value, r.required ? "" : "only if the CNAME doesn't verify"]))));
1132
1135
  else
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metricraven/cli",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "MetricRaven from your terminal: traffic, revenue, goals, visitors and websites. Built for people and AI agents.",
5
5
  "type": "module",
6
6
  "license": "MIT",