letmecode 0.1.7 → 0.1.8
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/ink-app/dist/providers/claude.js +10 -2
- package/package.json +13 -11
|
@@ -493,6 +493,12 @@ function describeUsageOutput(output) {
|
|
|
493
493
|
}
|
|
494
494
|
return output.trim() ? output : "<empty>";
|
|
495
495
|
}
|
|
496
|
+
function buildClaudeCommandEnvironment() {
|
|
497
|
+
return {
|
|
498
|
+
...process.env,
|
|
499
|
+
TZ: "UTC"
|
|
500
|
+
};
|
|
501
|
+
}
|
|
496
502
|
async function buildLiveLimitWindows(options) {
|
|
497
503
|
const [usageOutput, subscriptionType] = await Promise.all([
|
|
498
504
|
readClaudeUsageCommandOutput(options.root, options.usageCommandKind, options.readUsageCommandOutput, options.traceLogger),
|
|
@@ -541,9 +547,10 @@ async function readClaudeAuthStatusOutput(root, usageCommandKind, override, trac
|
|
|
541
547
|
return null;
|
|
542
548
|
}
|
|
543
549
|
try {
|
|
544
|
-
traceClaude(traceLogger, usageCommandKind, `Running auth status command with ${binaryPath}.`);
|
|
550
|
+
traceClaude(traceLogger, usageCommandKind, `Running auth status command with ${binaryPath} (TZ=UTC).`);
|
|
545
551
|
const { stdout, stderr } = await execFileAsync(binaryPath, ["auth", "status"], {
|
|
546
552
|
encoding: "utf8",
|
|
553
|
+
env: buildClaudeCommandEnvironment(),
|
|
547
554
|
maxBuffer: 1024 * 1024,
|
|
548
555
|
timeout: 15000,
|
|
549
556
|
windowsHide: true
|
|
@@ -626,9 +633,10 @@ async function readClaudeUsageCommandOutput(root, usageCommandKind, override, tr
|
|
|
626
633
|
return null;
|
|
627
634
|
}
|
|
628
635
|
try {
|
|
629
|
-
traceClaude(traceLogger, usageCommandKind, `Running /usage command with ${binaryPath}.`);
|
|
636
|
+
traceClaude(traceLogger, usageCommandKind, `Running /usage command with ${binaryPath} (TZ=UTC).`);
|
|
630
637
|
const { stdout, stderr } = await execFileAsync(binaryPath, ["-p", "/usage"], {
|
|
631
638
|
encoding: "utf8",
|
|
639
|
+
env: buildClaudeCommandEnvironment(),
|
|
632
640
|
maxBuffer: 1024 * 1024,
|
|
633
641
|
timeout: 15000,
|
|
634
642
|
windowsHide: true
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "letmecode",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "Provider-based terminal usage dashboard for LetMeCode.",
|
|
5
5
|
"author": "devforth.io",
|
|
6
6
|
"license": "MIT",
|
|
7
|
+
"packageManager": "pnpm@10.28.2",
|
|
7
8
|
"type": "commonjs",
|
|
8
9
|
"bin": {
|
|
9
10
|
"letmecode": "./bin/letmecode.js"
|
|
@@ -20,6 +21,16 @@
|
|
|
20
21
|
"publishConfig": {
|
|
21
22
|
"access": "public"
|
|
22
23
|
},
|
|
24
|
+
"scripts": {
|
|
25
|
+
"clean": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true }); require('node:fs').rmSync('ink-app/dist', { recursive: true, force: true });\"",
|
|
26
|
+
"build": "npm run clean && tsc -p tsconfig.json && tsc -p ink-app/tsconfig.json",
|
|
27
|
+
"prepack": "npm run build",
|
|
28
|
+
"prestart": "npm run build",
|
|
29
|
+
"start": "node ./bin/letmecode.js",
|
|
30
|
+
"pretest": "npm run build",
|
|
31
|
+
"smoke": "node ./bin/letmecode.js",
|
|
32
|
+
"test": "node --test ink-app/test/*.test.mjs"
|
|
33
|
+
},
|
|
23
34
|
"keywords": [
|
|
24
35
|
"cli",
|
|
25
36
|
"ink",
|
|
@@ -36,14 +47,5 @@
|
|
|
36
47
|
"@types/node": "^24.0.7",
|
|
37
48
|
"@types/react": "^18.3.24",
|
|
38
49
|
"typescript": "^5.8.3"
|
|
39
|
-
},
|
|
40
|
-
"scripts": {
|
|
41
|
-
"clean": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true }); require('node:fs').rmSync('ink-app/dist', { recursive: true, force: true });\"",
|
|
42
|
-
"build": "npm run clean && tsc -p tsconfig.json && tsc -p ink-app/tsconfig.json",
|
|
43
|
-
"prestart": "npm run build",
|
|
44
|
-
"start": "node ./bin/letmecode.js",
|
|
45
|
-
"pretest": "npm run build",
|
|
46
|
-
"smoke": "node ./bin/letmecode.js",
|
|
47
|
-
"test": "node --test ink-app/test/*.test.mjs"
|
|
48
50
|
}
|
|
49
|
-
}
|
|
51
|
+
}
|