awarts 0.3.0 → 0.3.1
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/CODE_OF_CONDUCT.md +27 -0
- package/CONTRIBUTING.md +66 -0
- package/SECURITY.md +9 -0
- package/dist/index.js +1 -1
- package/package.json +5 -2
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Code of Conduct
|
|
2
|
+
|
|
3
|
+
## Our Pledge
|
|
4
|
+
|
|
5
|
+
We are committed to making participation in this project a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
|
|
6
|
+
|
|
7
|
+
## Our Standards
|
|
8
|
+
|
|
9
|
+
**Positive behavior includes:**
|
|
10
|
+
- Using welcoming and inclusive language
|
|
11
|
+
- Being respectful of differing viewpoints
|
|
12
|
+
- Gracefully accepting constructive criticism
|
|
13
|
+
- Focusing on what is best for the community
|
|
14
|
+
|
|
15
|
+
**Unacceptable behavior includes:**
|
|
16
|
+
- Trolling, insulting comments, and personal attacks
|
|
17
|
+
- Harassment in any form
|
|
18
|
+
- Publishing others' private information without permission
|
|
19
|
+
- Other conduct which could reasonably be considered inappropriate
|
|
20
|
+
|
|
21
|
+
## Enforcement
|
|
22
|
+
|
|
23
|
+
Instances of abusive or unacceptable behavior may be reported by opening an issue or contacting the maintainer. All complaints will be reviewed and investigated.
|
|
24
|
+
|
|
25
|
+
## Attribution
|
|
26
|
+
|
|
27
|
+
This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org), version 2.1.
|
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# Contributing to AWARTS CLI
|
|
2
|
+
|
|
3
|
+
Thanks for your interest in contributing to AWARTS! Here's how to get started.
|
|
4
|
+
|
|
5
|
+
## Development Setup
|
|
6
|
+
|
|
7
|
+
1. Clone the repo:
|
|
8
|
+
```bash
|
|
9
|
+
git clone https://github.com/HarshalJain-cs/AWARTS.git
|
|
10
|
+
cd AWARTS/cli
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
2. Install dependencies:
|
|
14
|
+
```bash
|
|
15
|
+
npm install
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
3. Run in dev mode:
|
|
19
|
+
```bash
|
|
20
|
+
npm run dev
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Project Structure
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
cli/
|
|
27
|
+
src/
|
|
28
|
+
index.ts # CLI entry point (commander setup)
|
|
29
|
+
types.ts # Shared TypeScript types
|
|
30
|
+
adapters/ # Provider adapters (claude, codex, gemini, antigravity)
|
|
31
|
+
commands/ # Command implementations
|
|
32
|
+
lib/ # Core libraries (auth, daemon, api, output)
|
|
33
|
+
dist/ # Built output
|
|
34
|
+
package.json
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Adding a New Provider Adapter
|
|
38
|
+
|
|
39
|
+
1. Create `src/adapters/<provider>.ts` implementing the `Adapter` interface:
|
|
40
|
+
```typescript
|
|
41
|
+
interface Adapter {
|
|
42
|
+
name: ProviderKey;
|
|
43
|
+
displayName: string;
|
|
44
|
+
detect(): Promise<boolean>;
|
|
45
|
+
read(): Promise<UsageEntry[]>;
|
|
46
|
+
}
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
2. Register it in `src/lib/detect.ts`
|
|
50
|
+
|
|
51
|
+
3. Test with `awarts push --provider <name> --dry-run`
|
|
52
|
+
|
|
53
|
+
## Guidelines
|
|
54
|
+
|
|
55
|
+
- Write clear commit messages
|
|
56
|
+
- Keep PRs focused on a single change
|
|
57
|
+
- Test your changes locally before submitting
|
|
58
|
+
- Don't commit API keys or credentials
|
|
59
|
+
|
|
60
|
+
## Reporting Issues
|
|
61
|
+
|
|
62
|
+
Open an issue at [github.com/HarshalJain-cs/AWARTS/issues](https://github.com/HarshalJain-cs/AWARTS/issues) with:
|
|
63
|
+
- Node.js version (`node --version`)
|
|
64
|
+
- OS and version
|
|
65
|
+
- Steps to reproduce
|
|
66
|
+
- Expected vs actual behavior
|
package/SECURITY.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Security Policy
|
|
2
|
+
|
|
3
|
+
## Reporting a Vulnerability
|
|
4
|
+
|
|
5
|
+
If you discover a security vulnerability, please email **harshaljaincs@gmail.com**.
|
|
6
|
+
|
|
7
|
+
**Do NOT open a public GitHub issue for security vulnerabilities.**
|
|
8
|
+
|
|
9
|
+
See the full security policy at [github.com/HarshalJain-cs/AWARTS/SECURITY.md](https://github.com/HarshalJain-cs/AWARTS/blob/main/SECURITY.md).
|
package/dist/index.js
CHANGED
|
@@ -7408,7 +7408,7 @@ async function checkForUpdates() {
|
|
|
7408
7408
|
|
|
7409
7409
|
// src/index.ts
|
|
7410
7410
|
var program2 = new Command;
|
|
7411
|
-
program2.name("awarts").description("Track your AI coding spend across Claude, Codex, Gemini & Antigravity").version("0.3.
|
|
7411
|
+
program2.name("awarts").description("Track your AI coding spend across Claude, Codex, Gemini & Antigravity").version("0.3.1").hook("preAction", () => checkForUpdates());
|
|
7412
7412
|
program2.command("login").description("Authenticate with your AWARTS account via device auth").option("--force", "Re-authenticate even if already logged in").action(async (opts) => {
|
|
7413
7413
|
try {
|
|
7414
7414
|
if (opts.force) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "awarts",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Track your AI coding across Claude, Codex, Gemini & Antigravity",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,7 +34,10 @@
|
|
|
34
34
|
"files": [
|
|
35
35
|
"dist",
|
|
36
36
|
"README.md",
|
|
37
|
-
"LICENSE"
|
|
37
|
+
"LICENSE",
|
|
38
|
+
"CONTRIBUTING.md",
|
|
39
|
+
"CODE_OF_CONDUCT.md",
|
|
40
|
+
"SECURITY.md"
|
|
38
41
|
],
|
|
39
42
|
"sideEffects": false,
|
|
40
43
|
"scripts": {
|