nexrall-code 0.5.111 → 0.5.112

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 +7 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -155106,14 +155106,15 @@ var BILLING_URL = "https://app.nexrall.com/?settings=billing";
155106
155106
  function hyperlink(label, url) {
155107
155107
  return `\x1B]8;;${url}\x1B\\${label}\x1B]8;;\x1B\\`;
155108
155108
  }
155109
- var lastBalanceNoticeState = null;
155109
+ var lastBalanceNoticeShown = false;
155110
155110
  function printBalanceNotice(balance, zero) {
155111
- const state = zero ? "zero" : "low";
155112
- if (lastBalanceNoticeState === state)
155111
+ if (!zero)
155113
155112
  return;
155114
- lastBalanceNoticeState = state;
155115
- const title = zero ? "Out of balance" : "Balance running low";
155116
- const detail = zero ? "You're out of funds \u2014 top up to keep the agent working." : `Your wallet is under $5${typeof balance === "number" ? ` ($${balance.toFixed(2)} left)` : ""}. Top up before it runs out.`;
155113
+ if (lastBalanceNoticeShown)
155114
+ return;
155115
+ lastBalanceNoticeShown = true;
155116
+ const title = "Out of balance";
155117
+ const detail = "You're out of funds \u2014 top up to keep the agent working.";
155117
155118
  console.log();
155118
155119
  console.log(source_default.bgYellow.black(` ${title} `) + " " + source_default.dim(detail));
155119
155120
  console.log(" " + source_default.yellow(hyperlink("\u2192 Top up", BILLING_URL)) + source_default.dim(` (${BILLING_URL})`));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexrall-code",
3
- "version": "0.5.111",
3
+ "version": "0.5.112",
4
4
  "description": "Nexrall Code — AI coding assistant for your terminal (headless agent for scripts, CI and automation)",
5
5
  "keywords": [
6
6
  "ai",