@tiens.nguyen/gonext-local-worker 1.0.303 → 1.0.305

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/gonext-repl.mjs +9 -7
  2. package/package.json +1 -1
package/gonext-repl.mjs CHANGED
@@ -2071,21 +2071,22 @@ async function main() {
2071
2071
  continue;
2072
2072
  }
2073
2073
  if (line === "/reset-output-token-global") {
2074
- // Task #104: zero the GLOBAL (user + coding-URL) output-token counter after confirm.
2074
+ // Task #104: zero the GLOBAL (user + coding-URL) output-token counter AND clear all
2075
+ // per-workspace counters, after confirm.
2075
2076
  const ok = await askYesNo(
2076
- `Reset the GLOBAL output-token total (currently ${fmtTokens(globalOutputTokens)}) to 0?`,
2077
+ `Reset the GLOBAL output-token total (currently ${fmtTokens(globalOutputTokens)}) to 0? This also clears every workspace's output-token total.`,
2077
2078
  false
2078
2079
  );
2079
2080
  if (!ok) {
2080
- console.log(dim("Cancelled — global output-token total unchanged.\n"));
2081
+ console.log(dim("Cancelled — output-token totals unchanged.\n"));
2081
2082
  continue;
2082
2083
  }
2083
2084
  const done = await resetGlobalOutputTokens();
2084
2085
  if (done) {
2085
2086
  globalOutputTokens = 0;
2086
- console.log(green("✓ global output-token total reset to 0.\n"));
2087
+ console.log(green("✓ global + workspace output-token totals reset to 0.\n"));
2087
2088
  } else {
2088
- console.log(dim("Could not reset the global output-token total (API error).\n"));
2089
+ console.log(dim("Could not reset the output-token totals (API error).\n"));
2089
2090
  }
2090
2091
  continue;
2091
2092
  }
@@ -2142,9 +2143,10 @@ async function main() {
2142
2143
  // Only for turns that actually used the code model (plain-reply greetings = 0/0).
2143
2144
  if ((inputTokens ?? 0) > 0 || (outputTokens ?? 0) > 0) {
2144
2145
  console.log(
2145
- dim(" tokens · in ") +
2146
+ dim("tokens ·in ") +
2146
2147
  fmtTokens(inputTokens ?? 0) +
2147
- cyan(` · out ${fmtTokens(outputTokens ?? 0)}`)
2148
+ dim(" · ") +
2149
+ cyan(`↓ out ${fmtTokens(outputTokens ?? 0)}`)
2148
2150
  );
2149
2151
  }
2150
2152
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiens.nguyen/gonext-local-worker",
3
- "version": "1.0.303",
3
+ "version": "1.0.305",
4
4
  "description": "Polls GoNext cloud API for async local LLM jobs and runs them against Ollama/OpenAI-compatible servers on this Mac",
5
5
  "type": "module",
6
6
  "license": "MIT",