letmecode 0.1.22 → 0.1.23

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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Devforth
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 CHANGED
@@ -1,32 +1,51 @@
1
- # letmecode - Discover your detailed agent ussage Codex | Claude
1
+ # LetMeCode
2
2
 
3
- Ussage:
3
+ Terminal AI real-money value usage dashboard for Codex, Claude, Copilot, and Antigravity.
4
+
5
+ See your real $ usage data, inspect limits, see daily activity, and model-level token totals in a terminal UI.
6
+
7
+ ## Quick start
4
8
 
5
9
  ```bash
6
10
  npx -y letmecode@latest
7
11
  ```
8
12
 
13
+ ## Privacy and anonymous reporting
9
14
 
10
- Preview:
11
-
12
- <img width="2301" height="1397" alt="image" src="https://github.com/user-attachments/assets/c37d6847-9926-4977-8592-5cab8346a86f" />
15
+ By default, `letmecode` sends an anonymous usage summary which powers [aggregated real-world plans comparison](https://devforth.io/agents-for-code/).
13
16
 
17
+ The report includes aggregated limit-window percentages, token counts, plan/window metadata, the `letmecode` version, and a hashed user identifier when a provider exposes one. It does not send prompt content, usernames, email addresses, company names, or other directly identifiable personal information.
14
18
 
19
+ To disable anonymous usage reporting:
15
20
 
21
+ ```bash
22
+ npx -y letmecode@latest -- --no-usage
23
+ ```
16
24
 
17
- ## Advanced ussage
25
+ ## Options
18
26
 
27
+ ```bash
28
+ npx -y letmecode@latest -- --help
29
+ npx -y letmecode@latest -- --log-to ./letmecode.log
19
30
  ```
20
- npx -y letmecode -- -h
21
- npx -y letmecode -- --log-to log.txt
22
- ```
23
31
 
24
- `--log-to` now records Claude binary discovery, session-root selection, parsed transcript file summaries, entrypoint matching, raw `/usage` output, and live-window event matching so zero-token windows are diagnosable.
32
+ `--log-to` records provider discovery details and raw usage parsing diagnostics so empty or unexpected windows are easier to debug.
33
+
34
+ ## Providers
35
+
36
+ - Codex
37
+ - Claude
38
+ - Copilot
39
+ - Antigravity
40
+
41
+ ## Preview
25
42
 
43
+ <img width="2301" height="1397" alt="letmecode preview" src="https://github.com/user-attachments/assets/c37d6847-9926-4977-8592-5cab8346a86f" />
26
44
 
27
45
  ## Local development
28
46
 
29
47
  ```bash
30
48
  pnpm install
49
+ pnpm test
31
50
  pnpm start
32
51
  ```
@@ -4,6 +4,7 @@ export function parseCliOptions(argv) {
4
4
  let showHelp = false;
5
5
  let verbose = false;
6
6
  let logToPath;
7
+ let enableAnonymousUsageReporting = true;
7
8
  for (let index = 0; index < argv.length; index += 1) {
8
9
  const argument = argv[index] ?? "";
9
10
  if (argument === "-h" || argument === "--help") {
@@ -29,9 +30,13 @@ export function parseCliOptions(argv) {
29
30
  throw new Error("Expected a file path after --log-to=.");
30
31
  }
31
32
  logToPath = value;
33
+ continue;
34
+ }
35
+ if (argument === "--no-usage") {
36
+ enableAnonymousUsageReporting = false;
32
37
  }
33
38
  }
34
- return { showHelp, verbose, logToPath };
39
+ return { showHelp, verbose, logToPath, enableAnonymousUsageReporting };
35
40
  }
36
41
  export function buildProviderStatsOptions(options) {
37
42
  return {
@@ -41,7 +46,7 @@ export function buildProviderStatsOptions(options) {
41
46
  }
42
47
  export function buildHelpText() {
43
48
  return [
44
- "letmecode - provider-based terminal usage dashboard",
49
+ "letmecode - terminal AI usage dashboard",
45
50
  "",
46
51
  "Usage:",
47
52
  " letmecode [options]",
@@ -50,6 +55,7 @@ export function buildHelpText() {
50
55
  " -h, --help Show this help and exit",
51
56
  " -v, --verbose Show extra provider warnings",
52
57
  " --log-to PATH Write trace logs to PATH",
58
+ " --no-usage Disable anonymous usage reporting",
53
59
  "",
54
60
  "Controls:",
55
61
  " [ ] / Tab Switch providers",
@@ -64,7 +70,11 @@ export function buildHelpText() {
64
70
  " --log-to PATH writes Claude detection details,",
65
71
  " session root selection, parsed session file summaries, aggregated usage selection,",
66
72
  " every candidate binary path check, the final found/not-found result,",
67
- " and the raw /usage command output plus live window matching details."
73
+ " and the raw /usage command output plus live window matching details.",
74
+ "",
75
+ "Anonymous reporting:",
76
+ " Enabled by default. Use --no-usage to disable the best-effort",
77
+ " anonymous usage summary upload."
68
78
  ].join("\n");
69
79
  }
70
80
  export function createFileTraceLogger(logPath) {
@@ -96,7 +96,9 @@ function App(props) {
96
96
  setSelectedProviderId(topProvider.provider.id);
97
97
  }, [hasUserSelectedProvider, providerStates, sortedProviderStates]);
98
98
  useEffect(() => {
99
- if (hasReportedAnonymousUsageRef.current || providerStates.some((state) => state.status === "loading")) {
99
+ if (!props.usageReportingEnabled ||
100
+ hasReportedAnonymousUsageRef.current ||
101
+ providerStates.some((state) => state.status === "loading")) {
100
102
  return;
101
103
  }
102
104
  hasReportedAnonymousUsageRef.current = true;
@@ -106,7 +108,7 @@ function App(props) {
106
108
  void reportAnonymousUsage(readyStats).catch(() => {
107
109
  // Anonymous usage reporting is best-effort and must never disturb the TUI.
108
110
  });
109
- }, [providerStates]);
111
+ }, [props.usageReportingEnabled, providerStates]);
110
112
  useMouseClick((click) => {
111
113
  const regionId = resolveClick(click);
112
114
  if (!regionId) {
@@ -1002,7 +1004,7 @@ export function main(argv = process.argv.slice(2)) {
1002
1004
  restoreFullscreen();
1003
1005
  };
1004
1006
  process.once("exit", exitHandler);
1005
- const instance = render(_jsx(App, { statsOptions: statsOptions }), {
1007
+ const instance = render(_jsx(App, { statsOptions: statsOptions, usageReportingEnabled: cliOptions.enableAnonymousUsageReporting }), {
1006
1008
  stdout: process.stdout,
1007
1009
  stdin: process.stdin,
1008
1010
  stderr: process.stderr
package/package.json CHANGED
@@ -1,13 +1,23 @@
1
1
  {
2
2
  "name": "letmecode",
3
- "version": "0.1.22",
4
- "description": "Provider-based terminal usage dashboard for LetMeCode.",
5
- "author": "devforth.io",
3
+ "version": "0.1.23",
4
+ "description": "Terminal AI usage dashboard for Codex, Claude, Copilot, and Antigravity.",
5
+ "author": "Devforth (https://devforth.io)",
6
6
  "license": "MIT",
7
+ "packageManager": "pnpm@10.28.2",
7
8
  "type": "commonjs",
9
+ "main": "./dist/index.js",
8
10
  "bin": {
9
11
  "letmecode": "./bin/letmecode.js"
10
12
  },
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/devforth/letmecode.git"
16
+ },
17
+ "homepage": "https://github.com/devforth/letmecode#readme",
18
+ "bugs": {
19
+ "url": "https://github.com/devforth/letmecode/issues"
20
+ },
11
21
  "files": [
12
22
  "bin",
13
23
  "dist",
@@ -20,10 +30,29 @@
20
30
  "publishConfig": {
21
31
  "access": "public"
22
32
  },
33
+ "scripts": {
34
+ "clean": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true }); require('node:fs').rmSync('ink-app/dist', { recursive: true, force: true });\"",
35
+ "build": "npm run clean && tsc -p tsconfig.json && tsc -p ink-app/tsconfig.json",
36
+ "prepack": "npm run build",
37
+ "prestart": "npm run build",
38
+ "start": "node ./bin/letmecode.js",
39
+ "pretest": "npm run build",
40
+ "smoke": "node ./bin/letmecode.js",
41
+ "test": "node --test ink-app/test/*.test.mjs"
42
+ },
23
43
  "keywords": [
44
+ "ai",
45
+ "agents",
24
46
  "cli",
25
- "ink",
47
+ "dashboard",
48
+ "usage",
49
+ "terminal",
50
+ "codex",
51
+ "claude",
52
+ "copilot",
53
+ "antigravity",
26
54
  "npx",
55
+ "ink",
27
56
  "typescript"
28
57
  ],
29
58
  "dependencies": {
@@ -35,14 +64,5 @@
35
64
  "@types/node": "^24.0.7",
36
65
  "@types/react": "^18.3.24",
37
66
  "typescript": "^5.8.3"
38
- },
39
- "scripts": {
40
- "clean": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true }); require('node:fs').rmSync('ink-app/dist', { recursive: true, force: true });\"",
41
- "build": "npm run clean && tsc -p tsconfig.json && tsc -p ink-app/tsconfig.json",
42
- "prestart": "npm run build",
43
- "start": "node ./bin/letmecode.js",
44
- "pretest": "npm run build",
45
- "smoke": "node ./bin/letmecode.js",
46
- "test": "node --test ink-app/test/*.test.mjs"
47
67
  }
48
- }
68
+ }