@arsh342/athena 0.1.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/LICENSE +21 -0
- package/README.md +58 -0
- package/dist/index.cjs +215210 -0
- package/package.json +51 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Arshdeep Singh
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# Athena
|
|
2
|
+
|
|
3
|
+
AI code provenance tracker for JavaScript and TypeScript repositories.
|
|
4
|
+
|
|
5
|
+
Athena scans JS/TS/JSX/TSX files, extracts function-level code units, scores AI-likelihood with heuristic signals, and runs targeted security checks on flagged sections.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install -g @icemandev/athena
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Use
|
|
14
|
+
|
|
15
|
+
Open the terminal selector:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
athena
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Scan a repository:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
athena scan .
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Check staged files:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
athena check
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Install the pre-commit hook:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
athena init
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Remove the hook:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
athena uninstall
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Output formats
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
athena scan . --format terminal
|
|
49
|
+
athena scan . --format json
|
|
50
|
+
athena scan . --format jsonl
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Notes
|
|
54
|
+
|
|
55
|
+
- Supports JavaScript, TypeScript, JSX, and TSX.
|
|
56
|
+
- Runs locally.
|
|
57
|
+
- Requires Node.js 18 or newer.
|
|
58
|
+
- Current release includes heuristic scoring, secret detection, hallucinated API checks, and ANSI terminal reports.
|