@omnitype-code/cli 0.1.0 → 0.1.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/LICENSE +21 -0
- package/README.md +104 -0
- package/package.json +2 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 OmniType
|
|
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,104 @@
|
|
|
1
|
+
# OmniType CLI
|
|
2
|
+
|
|
3
|
+
**Know exactly who wrote every line of code — you, your AI, or a paste.**
|
|
4
|
+
|
|
5
|
+
OmniType is an editor-agnostic code provenance engine. It tracks which lines were written by a human, generated by an AI model (Claude, GPT-4, Gemini, etc.), or pasted in — across every tool you use.
|
|
6
|
+
|
|
7
|
+
No vendor lock-in. Works with Claude Code, Cursor, Windsurf, VS Code, Aider, Continue, and any AI coding tool.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Install
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npm install -g @omnitype-code/cli
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Quick Start
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
# Sign in
|
|
23
|
+
omnitype login
|
|
24
|
+
|
|
25
|
+
# Start tracking in your project
|
|
26
|
+
omnitype daemon
|
|
27
|
+
|
|
28
|
+
# See who wrote what
|
|
29
|
+
omnitype blame src/app.ts
|
|
30
|
+
|
|
31
|
+
# Check your AI vs human split
|
|
32
|
+
omnitype stats
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## Commands
|
|
38
|
+
|
|
39
|
+
| Command | Description |
|
|
40
|
+
|---|---|
|
|
41
|
+
| `omnitype login` | Sign in to OmniType Cloud |
|
|
42
|
+
| `omnitype logout` | Sign out |
|
|
43
|
+
| `omnitype status` | Show auth, detected model, and repo info |
|
|
44
|
+
| `omnitype whoami` | Display your profile |
|
|
45
|
+
| `omnitype daemon` | Watch a directory and track provenance in real time |
|
|
46
|
+
| `omnitype blame <file>` | Enhanced `git blame` with AI/model attribution overlay |
|
|
47
|
+
| `omnitype stats` | Personal provenance stats across all projects |
|
|
48
|
+
| `omnitype hooks install` | Install git hooks for commit-level tracking |
|
|
49
|
+
| `omnitype hooks uninstall` | Remove git hooks |
|
|
50
|
+
| `omnitype notes fetch` | Pull attribution notes from remote |
|
|
51
|
+
| `omnitype notes push` | Push attribution notes to remote |
|
|
52
|
+
| `omnitype setup-claude-hook` | Auto-detect model in Claude Code sessions |
|
|
53
|
+
| `omnitype setup-vscode-hook` | Install into VS Code, Cursor, Windsurf, and other forks |
|
|
54
|
+
| `omnitype signal -m <model>` | Manually report the active AI model |
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## Editor Integrations
|
|
59
|
+
|
|
60
|
+
### Claude Code
|
|
61
|
+
```bash
|
|
62
|
+
omnitype setup-claude-hook
|
|
63
|
+
```
|
|
64
|
+
Installs a hook into `~/.claude/settings.json` that captures the active model on every file edit — automatically.
|
|
65
|
+
|
|
66
|
+
### VS Code / Cursor / Windsurf / and more
|
|
67
|
+
```bash
|
|
68
|
+
omnitype setup-vscode-hook
|
|
69
|
+
```
|
|
70
|
+
Detects every installed VS Code fork and enables the OmniType extension across all of them in one shot.
|
|
71
|
+
|
|
72
|
+
### Any AI tool
|
|
73
|
+
```bash
|
|
74
|
+
omnitype signal --model gpt-4o --tool aider
|
|
75
|
+
```
|
|
76
|
+
Works with any tool that doesn't have a native integration yet.
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
## How It Works
|
|
81
|
+
|
|
82
|
+
1. **Daemon** watches your project directory for file changes and records which AI model was active at the time of each edit.
|
|
83
|
+
2. **Git hooks** capture provenance at commit time, stored as git notes so they travel with your repo.
|
|
84
|
+
3. **Blame** overlays model attribution on top of standard `git blame` output.
|
|
85
|
+
4. **Stats** aggregates your AI vs. human vs. paste ratios across all tracked projects.
|
|
86
|
+
|
|
87
|
+
Provenance data is stored locally and optionally synced to OmniType Cloud for team dashboards and org-level analytics.
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
## Options
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
omnitype daemon --path ./src --project my-app
|
|
95
|
+
omnitype blame src/index.ts --stats
|
|
96
|
+
omnitype stats --top 20
|
|
97
|
+
omnitype notes push --remote upstream
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
## License
|
|
103
|
+
|
|
104
|
+
MIT
|