agent-tracker-vscode 0.1.2 → 0.2.0
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 +39 -106
- package/bin/cli.cjs +1 -1
- package/extension.json +3 -3
- package/extension.vsix +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,106 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
```sh
|
|
41
|
-
npx agent-tracker-vscode@latest
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
To install the installer command globally with npm:
|
|
45
|
-
|
|
46
|
-
```sh
|
|
47
|
-
npm install -g agent-tracker-vscode@latest
|
|
48
|
-
agent-tracker-vscode
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
After installation, run **Developer: Reload Window** from the VS Code Command Palette. Use the same installation commands to update. On macOS, if `code` is unavailable, first run **Shell Command: Install 'code' command in PATH**.
|
|
52
|
-
|
|
53
|
-
To install into a specific profile, provide the name of a profile you have already created:
|
|
54
|
-
|
|
55
|
-
```sh
|
|
56
|
-
npx agent-tracker-vscode@latest --profile "Work"
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
Clicking the card's status bar item again to close it requires the optional [local VS Code patch (Korean)](https://github.com/lsc892/Agent-Tracker/blob/main/docs/research/StatusBarPopup.md).
|
|
60
|
-
|
|
61
|
-
### Uninstall
|
|
62
|
-
|
|
63
|
-
Select **Agent Tracker → Uninstall** in the VS Code Extensions view, or run:
|
|
64
|
-
|
|
65
|
-
```sh
|
|
66
|
-
code --uninstall-extension agent-tracker.agent-tracker
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
If you installed into a specific profile, add `--profile "Work"` to the uninstall command. To also remove the globally installed npm package:
|
|
70
|
-
|
|
71
|
-
```sh
|
|
72
|
-
npm uninstall -g agent-tracker-vscode
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
The npm package and the VS Code extension are uninstalled separately.
|
|
76
|
-
|
|
77
|
-
## VS Code extension settings
|
|
78
|
-
|
|
79
|
-
Click **Settings** in the card or search for `@ext:agent-tracker.agent-tracker` in VS Code Settings.
|
|
80
|
-
All setting keys below use the `agentTracker.` prefix.
|
|
81
|
-
|
|
82
|
-
| Setting | Default | Description |
|
|
83
|
-
| --- | --- | --- |
|
|
84
|
-
| `language` | `auto` | Follow the VS Code language. Choose Korean, English, Simplified Chinese, Japanese, Spanish, or French |
|
|
85
|
-
| `claude.enabled` / `codex.enabled` | `true` | Track subscription usage and log statistics for each provider |
|
|
86
|
-
| `quota.refreshPolicy` | `automatic` | Refresh automatically. `manual` fetches usage only when you click refresh |
|
|
87
|
-
| `quota.pollingIntervalSeconds` | `900` | Automatic refresh interval in seconds. Minimum 30; pauses in inactive windows |
|
|
88
|
-
| `codex.showStatusBar` | `true` | Show Codex in the status bar. Usage queries continue when hidden |
|
|
89
|
-
| `display.percentage` | `used` | Show the used percentage. `remaining` shows the remaining percentage |
|
|
90
|
-
| `display.detail` | `detailed` | Show 7-day and 5-hour usage. `compact` shows only 5-hour usage |
|
|
91
|
-
| `display.colorMode` | `automatic` | Use the theme color. Also supports `white`, `black`, and `custom` |
|
|
92
|
-
| `display.customColor` | `#ffffff` | HEX color for `custom` mode |
|
|
93
|
-
| `codex.showReserve` | `false` | Show GPT Reserve usage when available for your account |
|
|
94
|
-
| `codex.showResetCredits` | `true` | Show available usage resets and their next expiry when provided by your account |
|
|
95
|
-
| `usage.enabled` | `true` | Enable token and time statistics from local conversation logs |
|
|
96
|
-
| `usage.skillsEnabled` | `true` | Count skill, plugin, subagent, and model usage |
|
|
97
|
-
| `usage.showApiCosts` | `false` | Show estimated API costs in USD. Subscription usage is shown as zero |
|
|
98
|
-
| `usage.excludeEmptyUsage` | `true` | Exclude requests with neither model nor token information from charts and averages; keep them in tables |
|
|
99
|
-
| `usage.timezone` | System time zone | Time zone for daily and monthly statistics. Example: `Asia/Seoul` |
|
|
100
|
-
| `dataHome` | `~` | Shared parent folder containing `.claude` and `.codex`. Set in user settings |
|
|
101
|
-
| `claude.cleanupPeriodDays` | `null` | Claude log retention in days. Values of 1 or more update Claude settings; `null` preserves the existing value |
|
|
102
|
-
| `codex.executable` | `codex` | Codex CLI command or executable path |
|
|
103
|
-
|
|
104
|
-
Use **Agent Tracker: Delete Statistics Data** to clear aggregated statistics. Original conversation logs are preserved, and statistics are recalculated when you reopen the view.
|
|
105
|
-
|
|
106
|
-
[Usage and development reference](https://github.com/lsc892/Agent-Tracker/blob/main/docs/Development.md)
|
|
1
|
+
# Agent Tracker for VS Code
|
|
2
|
+
|
|
3
|
+
Install the Agent Tracker extension to see Claude and Codex subscription quota
|
|
4
|
+
and local conversation usage in VS Code.
|
|
5
|
+
|
|
6
|
+
Requires Node.js 22.15+ and VS Code 1.101+ with the `code` command on PATH.
|
|
7
|
+
|
|
8
|
+
```sh
|
|
9
|
+
npx agent-tracker-vscode@latest
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
The installer includes the VSIX, installs it with the VS Code CLI, and verifies
|
|
13
|
+
the installed extension ID and version. Reload an open VS Code window with
|
|
14
|
+
**Developer: Reload Window**, then run **Agent Tracker: Open Dashboard**.
|
|
15
|
+
|
|
16
|
+
Run the same command with `@latest` to update. Install a specific version with
|
|
17
|
+
`npx agent-tracker-vscode@0.2.0`.
|
|
18
|
+
|
|
19
|
+
```sh
|
|
20
|
+
npx agent-tracker-vscode --help
|
|
21
|
+
npx agent-tracker-vscode --profile "Work"
|
|
22
|
+
npx agent-tracker-vscode --code code-insiders
|
|
23
|
+
npx agent-tracker-vscode --code "/path/to/code"
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
The default profile is used unless `--profile` is given. Create the named profile
|
|
27
|
+
in VS Code first; extension installation fails if it does not exist.
|
|
28
|
+
`--extensions-dir` and `--user-data-dir`
|
|
29
|
+
select separate VS Code directories when needed.
|
|
30
|
+
|
|
31
|
+
On macOS, use **Shell Command: Install 'code' command in PATH** in VS Code first.
|
|
32
|
+
On Windows, the official `code.cmd` launcher is supported, including installations
|
|
33
|
+
with versioned runtime directories.
|
|
34
|
+
|
|
35
|
+
Existing Claude/Codex CLI logins are used by the extension. The installer does
|
|
36
|
+
not log in to either provider. The optional workbench click-toggle patch is a
|
|
37
|
+
separate local setup step documented in the repository.
|
|
38
|
+
|
|
39
|
+
Source and full documentation: [Agent Tracker](https://github.com/lsc892/Agent-Tracker).
|
package/bin/cli.cjs
CHANGED
|
@@ -96,7 +96,7 @@ Install the bundled Agent Tracker VSIX into VS Code.
|
|
|
96
96
|
if (options.version) { log(manifest.version); return; }
|
|
97
97
|
|
|
98
98
|
const metadata = JSON.parse(readFileSync(join(packageRoot, 'extension.json'), 'utf8'));
|
|
99
|
-
if (metadata.id !== '
|
|
99
|
+
if (metadata.id !== 'AgentTracker.agent-tracker' || metadata.version !== manifest.version) throw new Error('The bundled extension identity or version does not match the installer.');
|
|
100
100
|
const vsix = join(packageRoot, 'extension.vsix');
|
|
101
101
|
if (!existsSync(vsix)) throw new Error('The bundled extension.vsix is missing. Reinstall the npm package.');
|
|
102
102
|
if (createHash('sha256').update(readFileSync(vsix)).digest('hex') !== metadata.sha256) throw new Error('The bundled VSIX checksum does not match. Reinstall the npm package.');
|
package/extension.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"id": "
|
|
3
|
-
"version": "0.
|
|
2
|
+
"id": "AgentTracker.agent-tracker",
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"vscode": "^1.101.0",
|
|
5
|
-
"sha256": "
|
|
5
|
+
"sha256": "8eb552a3daee7e5420c8b38b6281d181c98aa6057e36226dc05dc42a6c4aedb9"
|
|
6
6
|
}
|
package/extension.vsix
CHANGED
|
Binary file
|