Skip to content

Commit 0a76585

Browse files
efoutsclaude
andcommitted
fix: apply npm scoped package research findings and bump to 0.1.5
Based on web research, npx has known issues with scoped packages: - npm 6.14.13-7.13.0 bug where bins from scoped packages don't install to node_modules/.bin/ - Scoped package names with '/' cause bin resolution issues in npx - String bin config doesn't work properly for scoped packages Changes: - Restore explicit bin object configuration (more reliable for scoped packages) - Update README to recommend global install instead of npx (working solution) - Update troubleshooting examples to use working command - Version bump to 0.1.5 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 2601039 commit 0a76585

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,23 +25,29 @@ Custom Claude Code status line to restore context window visibility for AWS Bedr
2525
**Choose Method 1 if:** You want automatic updates and minimal maintenance
2626
**Choose Method 2 if:** You need offline access or want to modify the script
2727

28-
### Method 1: NPX (Recommended)
28+
### Method 1: Global Install (Recommended)
29+
30+
Install globally and use the command directly:
31+
32+
```bash
33+
npm install -g @this-dot/claude-code-context-status-line
34+
```
2935

3036
Add this to your Claude Code settings (`~/.claude/settings.json`):
3137

3238
```json
3339
{
3440
"statusLine": {
3541
"type": "command",
36-
"command": "npx @this-dot/claude-code-context-status-line"
42+
"command": "claude-code-context-status-line"
3743
}
3844
}
3945
```
4046

4147
**Verification:**
4248
```bash
4349
# Test the installation
44-
echo '{"transcript_path":"/tmp/test.jsonl","model":{"display_name":"Test"}}' | npx @this-dot/claude-code-context-status-line
50+
echo '{"transcript_path":"/tmp/test.jsonl","model":{"display_name":"Test"}}' | claude-code-context-status-line
4551
# Expected output: Test (-)
4652
```
4753

@@ -79,7 +85,7 @@ chmod +x context-status.js
7985
2. Verify settings.json syntax with a JSON validator
8086
3. Test the script manually:
8187
```bash
82-
echo '{"transcript_path":"/path/to/transcript.jsonl"}' | npx @this-dot/claude-code-context-status-line
88+
echo '{"transcript_path":"/path/to/transcript.jsonl"}' | claude-code-context-status-line
8389
```
8490

8591
**Node.js not found errors:**

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
{
22
"name": "@this-dot/claude-code-context-status-line",
3-
"version": "0.1.4",
3+
"version": "0.1.5",
44
"description": "Custom Claude Code status line to restore context window visibility for AWS Bedrock users by displaying token usage.",
55
"type": "module",
66
"main": "src/context-status.js",
7-
"bin": "src/context-status.js",
7+
"bin": {
8+
"claude-code-context-status-line": "src/context-status.js"
9+
},
810
"files": [
911
"src/",
1012
"README.md",

0 commit comments

Comments
 (0)