better-ccflare 3.1.11 → 3.1.13
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/README.md +72 -1
- package/dist/better-ccflare +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -126,6 +126,8 @@ Continue to [Configure Claude SDK](https://github.com/tombii/better-ccflare#conf
|
|
|
126
126
|
#### Windows x86_64
|
|
127
127
|
Download [`better-ccflare-windows-x64.exe`](https://github.com/tombii/better-ccflare/releases/latest/download/better-ccflare-windows-x64.exe) and run it.
|
|
128
128
|
Continue to [Configure Claude SDK](https://github.com/tombii/better-ccflare#configure-claude-sdk).
|
|
129
|
+
|
|
130
|
+
**⚠️ Windows npm Installation Issue**: If you installed via npm and encounter a path error like `"C:\\Program Files\\nodejs\\\\node_modules\\better-ccflare\\dist\\better-ccflare" is either misspelled or could not be found`, this is a known [npm bug on Windows](https://github.com/npm/cli/issues/969) affecting how npm generates wrapper scripts. See [Windows Troubleshooting](#windows-troubleshooting) for workarounds.
|
|
129
131
|
### Run without installation (npx/bunx)
|
|
130
132
|
|
|
131
133
|
```bash
|
|
@@ -533,6 +535,75 @@ No `NODE_OPTIONS` needed - Traefik provides trusted certificates automatically!
|
|
|
533
535
|
curl -k https://yourhostname:8080/health
|
|
534
536
|
```
|
|
535
537
|
|
|
538
|
+
## Windows Troubleshooting
|
|
539
|
+
|
|
540
|
+
### Issue: "Command is misspelled or could not be found" after npm install
|
|
541
|
+
|
|
542
|
+
If you installed better-ccflare via npm on Windows and encounter an error like:
|
|
543
|
+
|
|
544
|
+
```
|
|
545
|
+
The command "C:\Program Files\nodejs\\node_modules\better-ccflare\dist\better-ccflare" is either
|
|
546
|
+
misspelled or could not be found.
|
|
547
|
+
```
|
|
548
|
+
|
|
549
|
+
This is a **known npm bug on Windows** (see [npm/cli#969](https://github.com/npm/cli/issues/969) and [nodejs/node#39010](https://github.com/nodejs/node/issues/39010)) affecting how npm generates wrapper scripts with double backslashes in paths.
|
|
550
|
+
|
|
551
|
+
### Workarounds
|
|
552
|
+
|
|
553
|
+
**Option 1: Use `npx` (Recommended)**
|
|
554
|
+
|
|
555
|
+
```powershell
|
|
556
|
+
npx better-ccflare
|
|
557
|
+
```
|
|
558
|
+
|
|
559
|
+
This bypasses the npm wrapper script entirely and runs better-ccflare directly.
|
|
560
|
+
|
|
561
|
+
**Option 2: Use the Pre-compiled Binary**
|
|
562
|
+
|
|
563
|
+
Download the standalone Windows executable from [GitHub Releases](https://github.com/tombii/better-ccflare/releases/latest):
|
|
564
|
+
|
|
565
|
+
```powershell
|
|
566
|
+
# Download better-ccflare-windows-x64.exe and run it directly
|
|
567
|
+
.\better-ccflare-windows-x64.exe
|
|
568
|
+
```
|
|
569
|
+
|
|
570
|
+
**Option 3: Update npm**
|
|
571
|
+
|
|
572
|
+
Sometimes updating to the latest npm version fixes the issue:
|
|
573
|
+
|
|
574
|
+
```powershell
|
|
575
|
+
npm install -g npm@latest
|
|
576
|
+
npm install -g better-ccflare
|
|
577
|
+
```
|
|
578
|
+
|
|
579
|
+
**Option 4: Direct Execution**
|
|
580
|
+
|
|
581
|
+
If you need to use the npm-installed version, you can execute the binary directly:
|
|
582
|
+
|
|
583
|
+
```powershell
|
|
584
|
+
node "%APPDATA%\npm\node_modules\better-ccflare\dist\better-ccflare"
|
|
585
|
+
```
|
|
586
|
+
|
|
587
|
+
**Option 5: Use Bun Package Manager**
|
|
588
|
+
|
|
589
|
+
Bun doesn't have this bug and works correctly on Windows:
|
|
590
|
+
|
|
591
|
+
```powershell
|
|
592
|
+
# Install bun from https://bun.sh
|
|
593
|
+
bun install -g better-ccflare
|
|
594
|
+
better-ccflare
|
|
595
|
+
```
|
|
596
|
+
|
|
597
|
+
### Root Cause
|
|
598
|
+
|
|
599
|
+
This issue is caused by a bug in npm's wrapper script generation on Windows, where it incorrectly constructs paths with double backslashes (`\\nodejs\\\\node_modules`). This is a longstanding npm bug that affects many CLI packages, not just better-ccflare.
|
|
600
|
+
|
|
601
|
+
The issue is being tracked in:
|
|
602
|
+
- [npm/cli#969](https://github.com/npm/cli/issues/969) - Generated .cmd script bugs
|
|
603
|
+
- [nodejs/node#39010](https://github.com/nodejs/node/issues/39010) - Double slashes in Windows paths
|
|
604
|
+
|
|
605
|
+
We recommend using one of the workarounds above until the npm bug is fixed.
|
|
606
|
+
|
|
536
607
|
## Features
|
|
537
608
|
|
|
538
609
|
### 🎯 Intelligent Load Balancing
|
|
@@ -573,7 +644,7 @@ No `NODE_OPTIONS` needed - Traefik provides trusted certificates automatically!
|
|
|
573
644
|
- **OpenAI-Compatible** - OpenAI-compatible providers (OpenRouter, Together AI, etc.) with Claude API format
|
|
574
645
|
- **Universal API Format** - Use OpenAI-compatible providers (OpenRouter, Together AI, etc.) with Claude API format
|
|
575
646
|
- **Automatic Format Conversion** - Seamless conversion between Anthropic and OpenAI request/response formats
|
|
576
|
-
- **Model Mapping** - Map Claude models (
|
|
647
|
+
- **Model Mapping** - Map Claude models (Opus, Sonnet, Haiku) to equivalent OpenAI models
|
|
577
648
|
- **Streaming Support** - Full support for streaming responses from OpenAI-compatible providers
|
|
578
649
|
- **API Key Authentication** - Secure API key management for OpenAI-compatible providers
|
|
579
650
|
- **Cost Tracking** - Automatic cost calculation for usage monitoring and budgeting
|
package/dist/better-ccflare
CHANGED
|
Binary file
|
package/package.json
CHANGED