kubeagent 0.1.34 → 0.1.35
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/README.md +9 -0
- package/dist/cli.js +5 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -89,6 +89,15 @@ Supported channels:
|
|
|
89
89
|
| **Microsoft Teams** | Paste a Teams incoming webhook URL |
|
|
90
90
|
| **Custom Webhook** | Any HTTP endpoint that accepts JSON payloads |
|
|
91
91
|
|
|
92
|
+
## Observability
|
|
93
|
+
|
|
94
|
+
The SaaS server exposes:
|
|
95
|
+
|
|
96
|
+
- `GET /health` for Kubernetes readiness/liveness probes
|
|
97
|
+
- `GET /metrics` for Prometheus scraping
|
|
98
|
+
|
|
99
|
+
Kubernetes monitoring manifests live in [`k8s/servicemonitor.yaml`](k8s/servicemonitor.yaml) and [`k8s/prometheusrule.yaml`](k8s/prometheusrule.yaml). Internal rollout notes are in [`docs/MONITORING.md`](docs/MONITORING.md).
|
|
100
|
+
|
|
92
101
|
## Requirements
|
|
93
102
|
|
|
94
103
|
- Node.js >= 22
|
package/dist/cli.js
CHANGED
|
@@ -462,9 +462,11 @@ program
|
|
|
462
462
|
console.log(` Extra credits: ${balance.extraRemaining.toLocaleString()}`);
|
|
463
463
|
}
|
|
464
464
|
console.log(` Total remaining: ${balance.totalRemaining.toLocaleString()}`);
|
|
465
|
+
const isTrial = balance.plan === "trial";
|
|
465
466
|
if (balance.resetsAt) {
|
|
466
467
|
const resetDate = new Date(balance.resetsAt).toLocaleDateString(undefined, { month: "short", day: "numeric", year: "numeric" });
|
|
467
|
-
|
|
468
|
+
const label = isTrial ? "Trial ends: " : "Resets: ";
|
|
469
|
+
console.log(` ${label} ${resetDate}`);
|
|
468
470
|
}
|
|
469
471
|
// Exhausted balance warning
|
|
470
472
|
if (balance.totalRemaining === 0) {
|
|
@@ -473,7 +475,8 @@ program
|
|
|
473
475
|
}
|
|
474
476
|
else if (balance.monthlyTotal > 0 && balance.monthlyRemaining < balance.monthlyTotal * 0.2) {
|
|
475
477
|
const pct = Math.round((balance.monthlyRemaining / balance.monthlyTotal) * 100);
|
|
476
|
-
|
|
478
|
+
const noun = isTrial ? "trial tokens" : "monthly tokens";
|
|
479
|
+
console.log("\n" + chalk.yellow(` ⚠ Low balance: ${pct}% of ${noun} remaining.`));
|
|
477
480
|
console.log(chalk.dim(` Upgrade or buy extra credits: `) + chalk.cyan(upgradeUrl));
|
|
478
481
|
}
|
|
479
482
|
console.log();
|