ccgather 1.3.36 → 1.3.37
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 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -549,7 +549,7 @@ function getCurrentProjectName() {
|
|
|
549
549
|
|
|
550
550
|
// src/lib/ui.ts
|
|
551
551
|
var import_chalk = __toESM(require("chalk"));
|
|
552
|
-
var VERSION = true ? "1.3.
|
|
552
|
+
var VERSION = true ? "1.3.37" : "0.0.0";
|
|
553
553
|
var colors = {
|
|
554
554
|
primary: import_chalk.default.hex("#DA7756"),
|
|
555
555
|
// Claude coral
|
|
@@ -1022,6 +1022,7 @@ async function verifyToken() {
|
|
|
1022
1022
|
}
|
|
1023
1023
|
async function submit(options) {
|
|
1024
1024
|
console.log(header("Submit Usage Data", "\u{1F4E4}"));
|
|
1025
|
+
const config = getConfig();
|
|
1025
1026
|
const verifySpinner = (0, import_ora2.default)({
|
|
1026
1027
|
text: "Verifying authentication...",
|
|
1027
1028
|
color: "cyan"
|
|
@@ -1029,6 +1030,9 @@ async function submit(options) {
|
|
|
1029
1030
|
const tokenCheck = await verifyToken();
|
|
1030
1031
|
if (!tokenCheck.valid) {
|
|
1031
1032
|
verifySpinner.stop();
|
|
1033
|
+
config.delete("apiToken");
|
|
1034
|
+
config.delete("userId");
|
|
1035
|
+
config.delete("username");
|
|
1032
1036
|
console.log();
|
|
1033
1037
|
console.log(` ${colors.warning("\u{1F510}")} ${colors.muted("Authentication required")}`);
|
|
1034
1038
|
console.log();
|
|
@@ -1050,7 +1054,6 @@ async function submit(options) {
|
|
|
1050
1054
|
process.exit(0);
|
|
1051
1055
|
}
|
|
1052
1056
|
verifySpinner.succeed(colors.success("Authenticated"));
|
|
1053
|
-
const config = getConfig();
|
|
1054
1057
|
const username = tokenCheck.username || config.get("username");
|
|
1055
1058
|
if (username) {
|
|
1056
1059
|
console.log(`
|