@willh/copilotstatusline 0.2.2 → 0.2.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/LICENSE +2 -2
- package/README.md +13 -0
- package/dist/copilotstatusline.js +628 -254
- package/docs/DEVELOPMENT.md +2 -0
- package/docs/USAGE.md +40 -0
- package/package.json +1 -1
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2025 Matthew Breedlove (https://github.com/sirmalloc)
|
|
3
|
+
Copyright (c) 2025 Will 保哥, Matthew Breedlove (https://github.com/sirmalloc)
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -26,6 +26,8 @@ Choose `Install or repair Copilot integration`, or install non-interactively:
|
|
|
26
26
|
npx -y @willh/copilotstatusline@latest --install npm
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
+
Interactive menus support both the arrow keys and Vim-style navigation: `j` moves down and `k` moves up. Text and search inputs continue to treat these keys as ordinary characters.
|
|
30
|
+
|
|
29
31
|
The installer merges the following keys into the existing Copilot settings and preserves unrelated settings:
|
|
30
32
|
|
|
31
33
|
```json
|
|
@@ -43,6 +45,17 @@ The installer merges the following keys into the existing Copilot settings and p
|
|
|
43
45
|
|
|
44
46
|
Restart Copilot CLI after changing its settings.
|
|
45
47
|
|
|
48
|
+
## Local token usage history
|
|
49
|
+
|
|
50
|
+
Every valid Copilot status payload is recorded automatically as a local token-usage entry. No formatter setting or separate collector script is required. Records use the TokenUsageInsights-compatible JSONL format and are stored at:
|
|
51
|
+
|
|
52
|
+
- `$COPILOT_HOME/usage/usage-YYYY-MM-DD.jsonl`, or `~/.copilot/usage/usage-YYYY-MM-DD.jsonl` by default;
|
|
53
|
+
- `$COPILOT_HOME/copilotstatusline-usage-state.json` for per-session delta tracking.
|
|
54
|
+
|
|
55
|
+
The history includes token counters plus local session metadata such as the session name, working directory, and transcript path. It is never uploaded, and status rendering does not make network calls. Set `COPILOTSTATUSLINE_DISABLE_USAGE_RECORDING=1` to disable recording. Uninstalling the status-line integration preserves existing history.
|
|
56
|
+
|
|
57
|
+
TokenUsageInsights reads `~/.copilot/usage` by default. If `COPILOT_HOME` points elsewhere, set TokenUsageInsights' `COPILOT_DIR` to the same directory.
|
|
58
|
+
|
|
46
59
|
## Command line
|
|
47
60
|
|
|
48
61
|
```text
|