ai-credit 1.0.1 → 1.0.3
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/reporter.js +3 -1
- package/package.json +9 -7
package/dist/reporter.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as fs from 'fs';
|
|
2
1
|
import chalk from 'chalk';
|
|
3
2
|
import Table from 'cli-table3';
|
|
3
|
+
import * as fs from 'fs';
|
|
4
4
|
import { AITool } from './types.js';
|
|
5
5
|
/**
|
|
6
6
|
* Tool display names
|
|
@@ -42,6 +42,8 @@ export class ConsoleReporter {
|
|
|
42
42
|
const repoLine = `Repository: ${stats.repoPath}`;
|
|
43
43
|
const timeLine = `Scan time: ${stats.scanTime.toLocaleString()}`;
|
|
44
44
|
console.log();
|
|
45
|
+
console.log(chalk.dim('Leave a 🌟 star if you like it: https://github.com/debugtheworldbot/ai-credit'));
|
|
46
|
+
console.log();
|
|
45
47
|
console.log(chalk.cyan('╭' + '─'.repeat(boxWidth) + '╮'));
|
|
46
48
|
console.log(chalk.cyan('│') + ' ' + chalk.bold(title.padEnd(boxWidth - 1)) + chalk.cyan('│'));
|
|
47
49
|
console.log(chalk.cyan('│') + ' ' + repoLine.substring(0, boxWidth - 1).padEnd(boxWidth - 1) + chalk.cyan('│'));
|
package/package.json
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ai-credit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "CLI tool to track and analyze AI coding assistants' contributions in your codebase",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"bin": {
|
|
8
8
|
"ai-credit": "./dist/cli.js"
|
|
9
9
|
},
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "tsc",
|
|
12
|
+
"start": "node dist/cli.js",
|
|
13
|
+
"dev": "tsc && node dist/cli.js",
|
|
14
|
+
"pub": "npm run build && npm publish",
|
|
15
|
+
"prepublishOnly": "npm run build"
|
|
16
|
+
},
|
|
10
17
|
"keywords": [
|
|
11
18
|
"ai",
|
|
12
19
|
"contribution",
|
|
@@ -36,10 +43,5 @@
|
|
|
36
43
|
"@types/node": "^20.14.0",
|
|
37
44
|
"tsx": "^4.15.0",
|
|
38
45
|
"typescript": "^5.4.5"
|
|
39
|
-
},
|
|
40
|
-
"scripts": {
|
|
41
|
-
"build": "tsc",
|
|
42
|
-
"start": "node dist/cli.js",
|
|
43
|
-
"dev": "tsc && node dist/cli.js"
|
|
44
46
|
}
|
|
45
|
-
}
|
|
47
|
+
}
|