Skip to content

Commit 999ef50

Browse files
efoutsclaude
andcommitted
fix: use short bin name 'ccstatus' for npx compatibility and bump to 0.1.7
Following successful scoped package patterns like @angular/cli (ng) and @vue/cli (vue): - Change bin name from 'claude-code-context-status-line' to 'ccstatus' - Update README to use npx -p syntax: npx -p @this-dot/claude-code-context-status-line ccstatus - Short bin names work better with npx scoped package resolution 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 59dc9a2 commit 999ef50

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

README.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,29 +25,23 @@ 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: 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-
```
28+
### Method 1: NPX (Recommended)
3529

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

3832
```json
3933
{
4034
"statusLine": {
4135
"type": "command",
42-
"command": "claude-code-context-status-line"
36+
"command": "npx -p @this-dot/claude-code-context-status-line ccstatus"
4337
}
4438
}
4539
```
4640

4741
**Verification:**
4842
```bash
4943
# Test the installation
50-
echo '{"transcript_path":"/tmp/test.jsonl","model":{"display_name":"Test"}}' | claude-code-context-status-line
44+
echo '{"transcript_path":"/tmp/test.jsonl","model":{"display_name":"Test"}}' | npx -p @this-dot/claude-code-context-status-line ccstatus
5145
# Expected output: Test (-)
5246
```
5347

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

9185
**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.6",
3+
"version": "0.1.7",
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+
"ccstatus": "src/context-status.js"
9+
},
810
"files": [
911
"src/",
1012
"README.md",

0 commit comments

Comments
 (0)