ccgather 2.0.11 → 2.0.12
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 +8 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -202,9 +202,6 @@ function countryCodeToFlag(countryCode) {
|
|
|
202
202
|
if (!countryCode || countryCode.length !== 2) return "\u{1F310}";
|
|
203
203
|
return countryCode.toUpperCase();
|
|
204
204
|
}
|
|
205
|
-
function success(message) {
|
|
206
|
-
return `${colors.success("\u2713")} ${message}`;
|
|
207
|
-
}
|
|
208
205
|
function error(message) {
|
|
209
206
|
return `${colors.error("\u2717")} ${message}`;
|
|
210
207
|
}
|
|
@@ -329,7 +326,7 @@ var init_ui = __esm({
|
|
|
329
326
|
"use strict";
|
|
330
327
|
import_chalk = __toESM(require("chalk"));
|
|
331
328
|
import_string_width = __toESM(require("string-width"));
|
|
332
|
-
VERSION = true ? "2.0.
|
|
329
|
+
VERSION = true ? "2.0.12" : "0.0.0";
|
|
333
330
|
colors = {
|
|
334
331
|
primary: import_chalk.default.hex("#DA7756"),
|
|
335
332
|
// Claude coral
|
|
@@ -1301,15 +1298,19 @@ async function submit(options) {
|
|
|
1301
1298
|
if (lastProgress > 0) {
|
|
1302
1299
|
process.stdout.write("\r" + " ".repeat(60) + "\r");
|
|
1303
1300
|
}
|
|
1304
|
-
|
|
1301
|
+
const processSpinner = (0, import_ora2.default)({
|
|
1302
|
+
text: "Processing scan data...",
|
|
1303
|
+
color: "cyan"
|
|
1304
|
+
}).start();
|
|
1305
1305
|
if (!scannedData) {
|
|
1306
|
-
|
|
1307
|
-
${error("No usage data found.")}`);
|
|
1306
|
+
processSpinner.fail(colors.error("No usage data found."));
|
|
1308
1307
|
console.log(` ${colors.muted("Make sure you have used Claude Code at least once.")}
|
|
1309
1308
|
`);
|
|
1310
1309
|
process.exit(1);
|
|
1311
1310
|
}
|
|
1312
1311
|
const usageData = ccgatherToUsageData(scannedData);
|
|
1312
|
+
await sleep(350);
|
|
1313
|
+
processSpinner.succeed(colors.success("Scan complete!"));
|
|
1313
1314
|
console.log();
|
|
1314
1315
|
const formatDate = (dateStr) => {
|
|
1315
1316
|
if (!dateStr) return "------";
|