Skip to content

Commit 547bd46

Browse files
efoutsclaude
andcommitted
feat: add bin configuration for npx support and bump to 0.1.2
- Add bin entry to package.json for npx execution support - Restore npx usage instructions in README - Update troubleshooting examples to use npx - Bump version to 0.1.2 Now users can run: npx @this-dot/claude-code-context-status-line 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent d77c8d8 commit 547bd46

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

README.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,15 @@ 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: Direct Node.js (Recommended)
29-
30-
Install the package and reference it directly:
31-
32-
```bash
33-
npm install @thisdot/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": "node ./node_modules/@thisdot/claude-code-context-status-line/src/context-status.js"
36+
"command": "npx @thisdot/claude-code-context-status-line"
4337
}
4438
}
4539
```
@@ -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"}' | node ./node_modules/@thisdot/claude-code-context-status-line/src/context-status.js
82+
echo '{"transcript_path":"/path/to/transcript.jsonl"}' | npx @thisdot/claude-code-context-status-line
8983
```
9084

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

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
{
22
"name": "@this-dot/claude-code-context-status-line",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
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": {
8+
"claude-code-context-status-line": "src/context-status.js"
9+
},
710
"files": [
811
"src/",
912
"README.md",

0 commit comments

Comments
 (0)