@dondetir/ccmux 0.1.0 → 0.1.2

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 CHANGED
@@ -6,12 +6,12 @@
6
6
 
7
7
  Your GitHub Copilot subscription (including the free tier) and your Ollama Cloud key both power `claude` in your terminal.
8
8
 
9
- [![npm](https://img.shields.io/npm/v/ccmux?label=npm)](https://www.npmjs.com/package/ccmux)
9
+ [![npm](https://img.shields.io/npm/v/@dondetir/ccmux?label=npm)](https://www.npmjs.com/package/@dondetir/ccmux)
10
10
  [![node](https://img.shields.io/badge/node-%E2%89%A520-339933)](https://nodejs.org)
11
11
  [![license](https://img.shields.io/badge/license-MIT-blue)](./LICENSE)
12
12
 
13
13
  ```bash
14
- npm i -g ccmux && ccmux claude
14
+ npm i -g @dondetir/ccmux && ccmux claude
15
15
  ```
16
16
 
17
17
  *Don't switch tools. Switch backends.*
@@ -38,7 +38,7 @@ npm i -g ccmux && ccmux claude
38
38
  ## 🚀 Quickstart
39
39
 
40
40
  ```bash
41
- npm i -g ccmux # puts the `ccmux` CLI on your PATH
41
+ npm i -g @dondetir/ccmux # puts the `ccmux` CLI on your PATH
42
42
  ccmux claude # starts the proxy if needed, then launches Claude Code
43
43
  ```
44
44
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dondetir/ccmux",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Run Claude Code on GitHub Copilot's backend, a local Anthropic-to-Copilot proxy",
5
5
  "private": false,
6
6
  "publishConfig": {
package/src/index.ts CHANGED
@@ -216,6 +216,8 @@ app.get("/v1/models", async (c) => {
216
216
  if (!ollamaOnly) throw e;
217
217
  data = { data: [] };
218
218
  }
219
+ // Same filter the official Copilot CLI uses: only models it groups in its picker.
220
+ data.data = (data.data ?? []).filter((m: any) => m.model_picker_category != null);
219
221
  // Push Ollama models so the alias loop below includes them in the picker.
220
222
  for (const [key, entry] of modelCatalog) {
221
223
  if (entry.provider !== "ollama") continue;