@rizzmo/tokochi-cli 0.1.3 → 0.1.4
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 +2 -2
- package/dist/index.js +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,10 +4,10 @@ Connect local Codex, Claude Code, and GitHub Copilot token usage to your Tokochi
|
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
6
|
npm install -g @rizzmo/tokochi-cli
|
|
7
|
-
tokochi connect
|
|
7
|
+
tokochi connect
|
|
8
8
|
```
|
|
9
9
|
|
|
10
|
-
The browser handles GitHub authentication and device approval
|
|
10
|
+
The CLI connects to `https://www.tokochi.me` by default. The browser handles GitHub authentication and device approval; no token copying is required.
|
|
11
11
|
|
|
12
12
|
```bash
|
|
13
13
|
tokochi auto-sync enable --interval 15m
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { disableAutoSync, enableAutoSync, getAutoSyncStatus, parseInterval } fro
|
|
|
4
4
|
import { openBrowser } from "./browser.js";
|
|
5
5
|
import { collectUsageEvents } from "./collectors.js";
|
|
6
6
|
import { deleteConfig, loadConfig, saveConfig } from "./config.js";
|
|
7
|
-
const DEFAULT_URL = "https://tokochi.
|
|
7
|
+
const DEFAULT_URL = "https://www.tokochi.me";
|
|
8
8
|
const command = process.argv[2] ?? "help";
|
|
9
9
|
try {
|
|
10
10
|
if (command === "connect")
|
|
@@ -88,7 +88,7 @@ async function runSync(config) {
|
|
|
88
88
|
async function status() {
|
|
89
89
|
const config = await loadConfig();
|
|
90
90
|
if (!config) {
|
|
91
|
-
console.log("Not connected. Run `tokochi connect
|
|
91
|
+
console.log("Not connected. Run `tokochi connect`.");
|
|
92
92
|
return;
|
|
93
93
|
}
|
|
94
94
|
const events = await collectUsageEvents();
|
|
@@ -150,10 +150,10 @@ Tokochi CLI
|
|
|
150
150
|
|
|
151
151
|
Install globally:
|
|
152
152
|
npm install -g @rizzmo/tokochi-cli
|
|
153
|
-
tokochi connect
|
|
153
|
+
tokochi connect
|
|
154
154
|
|
|
155
155
|
Run without installing:
|
|
156
|
-
npx @rizzmo/tokochi-cli connect
|
|
156
|
+
npx @rizzmo/tokochi-cli connect
|
|
157
157
|
`.trim());
|
|
158
158
|
}
|
|
159
159
|
async function requireConfig() {
|