ccgather 2.0.21 → 2.0.22
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/dist/index.js +5 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -304,7 +304,7 @@ var init_ui = __esm({
|
|
|
304
304
|
"use strict";
|
|
305
305
|
import_chalk = __toESM(require("chalk"));
|
|
306
306
|
import_string_width = __toESM(require("string-width"));
|
|
307
|
-
VERSION = true ? "2.0.
|
|
307
|
+
VERSION = true ? "2.0.22" : "0.0.0";
|
|
308
308
|
colors = {
|
|
309
309
|
primary: import_chalk.default.hex("#DA7756"),
|
|
310
310
|
// Claude coral
|
|
@@ -1470,11 +1470,11 @@ async function submit(options) {
|
|
|
1470
1470
|
console.log();
|
|
1471
1471
|
const previousTokens = result.previous?.totalTokens || 0;
|
|
1472
1472
|
const previousLevelInfo = getLevelProgress(previousTokens);
|
|
1473
|
-
const
|
|
1474
|
-
const
|
|
1473
|
+
const previousLevelNum = previousLevelInfo.current.level;
|
|
1474
|
+
const serverLevel = result.currentLevel || currentLevel.level;
|
|
1475
1475
|
let levelChangeText = "";
|
|
1476
|
-
if (previousTokens > 0 &&
|
|
1477
|
-
const levelChange =
|
|
1476
|
+
if (previousTokens > 0 && serverLevel > previousLevelNum) {
|
|
1477
|
+
const levelChange = serverLevel - previousLevelNum;
|
|
1478
1478
|
levelChangeText = ` ${colors.success(`\u2191${levelChange}`)}`;
|
|
1479
1479
|
}
|
|
1480
1480
|
await sleep(200);
|