@earntori/cli 0.2.1 → 0.2.2
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/README.md +13 -4
- package/dist/index.js +1 -1
- package/package.json +9 -1
package/README.md
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
# @earntori/cli
|
|
2
2
|
|
|
3
|
+
The Tori command line. Sign in, wire Tori into a repo, run checks, mint AI keys.
|
|
4
|
+
|
|
3
5
|
```
|
|
4
|
-
npx @earntori/cli login
|
|
5
|
-
npx @earntori/cli
|
|
6
|
-
npx @earntori/cli
|
|
6
|
+
npx @earntori/cli login sign in with GitHub (device flow)
|
|
7
|
+
npx @earntori/cli init wire Tori into this repo (MCP server + Claude Code hooks)
|
|
8
|
+
npx @earntori/cli check [paths…] run Tori's checks on changed files
|
|
9
|
+
npx @earntori/cli status balance + your AI keys
|
|
10
|
+
npx @earntori/cli key --limit 5 mint a spend-capped AI key from your credits (--write env to save it)
|
|
11
|
+
npx @earntori/cli stats your integration + developer program numbers
|
|
12
|
+
npx @earntori/cli logout
|
|
7
13
|
```
|
|
8
|
-
|
|
14
|
+
|
|
15
|
+
**Earn AI credits by building securely in Claude Code and Cursor.** Tori checks the code your coding agent writes before you ship it, tells the agent how to fix what it finds, and rewards you in AI credits for building with it. Full guide: https://www.earntori.com/docs/mcp · issues: https://github.com/GAishZOEish/Tori-MCP/issues
|
|
16
|
+
|
|
17
|
+
Sending rewards to your own users? That's the Partner API: https://github.com/GAishZOEish/tori-examples
|
package/dist/index.js
CHANGED
|
@@ -23,7 +23,7 @@ function out(o, human) { console.log(json ? JSON.stringify(o, null, 2) : human);
|
|
|
23
23
|
function die(msg) { console.error(json ? JSON.stringify({ error: msg }) : `\u2717 ${msg}`); process.exit(1); }
|
|
24
24
|
const usd = (c) => `$${(c / 100).toFixed(2)}`;
|
|
25
25
|
async function api(cfg, method, path, body) {
|
|
26
|
-
const r = await fetch(`${cfg.base}${path}`, { method, headers: { Authorization: `Bearer ${cfg.token}`, "Content-Type": "application/json", "User-Agent": "@earntori/cli/0.2.
|
|
26
|
+
const r = await fetch(`${cfg.base}${path}`, { method, headers: { Authorization: `Bearer ${cfg.token}`, "Content-Type": "application/json", "User-Agent": "@earntori/cli/0.2.2" }, body: body ? JSON.stringify(body) : undefined });
|
|
27
27
|
const t = await r.text();
|
|
28
28
|
let j = null;
|
|
29
29
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@earntori/cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Tori CLI \u2014 sign in with GitHub, check your credits, mint a capped AI key into your tools.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -25,5 +25,13 @@
|
|
|
25
25
|
},
|
|
26
26
|
"publishConfig": {
|
|
27
27
|
"access": "public"
|
|
28
|
+
},
|
|
29
|
+
"homepage": "https://www.earntori.com/docs/mcp",
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "git",
|
|
32
|
+
"url": "https://github.com/GAishZOEish/Tori-MCP.git"
|
|
33
|
+
},
|
|
34
|
+
"bugs": {
|
|
35
|
+
"url": "https://github.com/GAishZOEish/Tori-MCP/issues"
|
|
28
36
|
}
|
|
29
37
|
}
|