qwen-claude 0.1.0__py3-none-any.whl → 0.1.2__py3-none-any.whl
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.
- qwen_claude/__init__.py +3 -0
- qwen_claude/cli.py +20 -236
- qwen_claude/config/config.py +23 -0
- qwen_claude/{schema.json → config/schema.json} +39 -39
- qwen_claude/main.py +153 -0
- qwen_claude/utils/path.py +38 -0
- qwen_claude/utils/schema_validation.py +50 -0
- qwen_claude/utils/token.py +34 -0
- qwen_claude/utils/tools_validation.py +35 -0
- qwen_claude/utils/window.py +45 -0
- qwen_claude-0.1.2.dist-info/METADATA +137 -0
- qwen_claude-0.1.2.dist-info/RECORD +14 -0
- qwen_claude-0.1.0.dist-info/METADATA +0 -10
- qwen_claude-0.1.0.dist-info/RECORD +0 -7
- {qwen_claude-0.1.0.dist-info → qwen_claude-0.1.2.dist-info}/WHEEL +0 -0
- {qwen_claude-0.1.0.dist-info → qwen_claude-0.1.2.dist-info}/entry_points.txt +0 -0
qwen_claude/__init__.py
CHANGED
qwen_claude/cli.py
CHANGED
|
@@ -1,236 +1,20 @@
|
|
|
1
|
-
#!/usr/bin/env python3
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
# ---------------------------------------------------------------
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
def load_json(path: Path) -> dict:
|
|
25
|
-
with path.open("r", encoding="utf-8") as f:
|
|
26
|
-
return json.load(f)
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
def save_json_atomic(path: Path, data: dict) -> None:
|
|
30
|
-
tmp = path.with_suffix(path.suffix + ".tmp")
|
|
31
|
-
with tmp.open("w", encoding="utf-8") as f:
|
|
32
|
-
json.dump(data, f, indent=2)
|
|
33
|
-
tmp.replace(path)
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
def is_expiring_soon(oauth: dict, buffer_seconds: int) -> bool:
|
|
37
|
-
exp_ms = int(oauth.get("expiry_date", 0))
|
|
38
|
-
if exp_ms <= 0:
|
|
39
|
-
return True
|
|
40
|
-
exp_s = exp_ms / 1000.0
|
|
41
|
-
return time.time() >= (exp_s - buffer_seconds)
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
def which(cmd: str) -> Optional[str]:
|
|
45
|
-
return shutil.which(cmd)
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
# ------------------- DEPENDENCY & SCHEMA CHECKS -------------------
|
|
49
|
-
def verify_required_tools() -> None:
|
|
50
|
-
requirements = [
|
|
51
|
-
{
|
|
52
|
-
"name": "qwen",
|
|
53
|
-
"binary": "qwen",
|
|
54
|
-
"install": "npm install -g @qwen-code/qwen-code@latest",
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"name": "claude-code-router",
|
|
58
|
-
"binary": "ccr",
|
|
59
|
-
"install": "npm install -g @musistudio/claude-code-router",
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
"name": "claude",
|
|
63
|
-
"binary": "claude",
|
|
64
|
-
"install": "npm install -g @anthropic-ai/claude-code",
|
|
65
|
-
},
|
|
66
|
-
]
|
|
67
|
-
for req in requirements:
|
|
68
|
-
path = which(req["binary"])
|
|
69
|
-
if not path:
|
|
70
|
-
print(
|
|
71
|
-
f"[ERR] Required package '{req['name']}' is not installed.\n Install: {req['install']}"
|
|
72
|
-
)
|
|
73
|
-
raise SystemExit(1)
|
|
74
|
-
print(f"[OK] Found {req['name']} → {path}")
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
def schema_validation() -> None:
|
|
78
|
-
"""
|
|
79
|
-
Checks for api_base_url within the 'qwen' provider in config.json.
|
|
80
|
-
"""
|
|
81
|
-
target_url = "https://portal.qwen.ai/v1/chat/completions"
|
|
82
|
-
|
|
83
|
-
if not SCHEMA_FILE.exists():
|
|
84
|
-
print(f"[ERR] Schema file missing at {SCHEMA_FILE}.")
|
|
85
|
-
return
|
|
86
|
-
|
|
87
|
-
if not CCR_CONFIG.exists():
|
|
88
|
-
print(f"[INFO] {CCR_CONFIG.name} missing. Initializing from schema...")
|
|
89
|
-
save_json_atomic(CCR_CONFIG, load_json(SCHEMA_FILE))
|
|
90
|
-
return
|
|
91
|
-
|
|
92
|
-
try:
|
|
93
|
-
config_data = load_json(CCR_CONFIG)
|
|
94
|
-
except Exception:
|
|
95
|
-
config_data = {}
|
|
96
|
-
|
|
97
|
-
# Find the qwen provider block
|
|
98
|
-
providers = config_data.get("Providers", [])
|
|
99
|
-
qwen_provider = next(
|
|
100
|
-
(p for p in providers if isinstance(p, dict) and p.get("name") == "qwen"), None
|
|
101
|
-
)
|
|
102
|
-
|
|
103
|
-
needs_reset = False
|
|
104
|
-
if not qwen_provider:
|
|
105
|
-
print("[INFO] 'qwen' provider block missing in config.")
|
|
106
|
-
needs_reset = True
|
|
107
|
-
elif "api_base_url" not in qwen_provider:
|
|
108
|
-
print("[INFO] 'api_base_url' missing in qwen provider config.")
|
|
109
|
-
needs_reset = True
|
|
110
|
-
elif qwen_provider.get("api_base_url") != target_url:
|
|
111
|
-
print(f"[INFO] URL mismatch. Found: {qwen_provider.get('api_base_url')}")
|
|
112
|
-
needs_reset = True
|
|
113
|
-
|
|
114
|
-
if needs_reset:
|
|
115
|
-
print(f"[INFO] Rewriting {CCR_CONFIG.name} using {SCHEMA_FILE.name}...")
|
|
116
|
-
save_json_atomic(CCR_CONFIG, load_json(SCHEMA_FILE))
|
|
117
|
-
else:
|
|
118
|
-
print("[OK] Schema validation passed.")
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
# -------------------------------------------------------------
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
def run_windows_cmd(exe_path: str, args: list[str], quiet: bool = True) -> int:
|
|
125
|
-
exe_lower = exe_path.lower()
|
|
126
|
-
stdout = subprocess.DEVNULL if quiet else None
|
|
127
|
-
stderr = subprocess.DEVNULL if quiet else None
|
|
128
|
-
|
|
129
|
-
if exe_lower.endswith(".ps1"):
|
|
130
|
-
cmd = [
|
|
131
|
-
"powershell",
|
|
132
|
-
"-NoProfile",
|
|
133
|
-
"-ExecutionPolicy",
|
|
134
|
-
"Bypass",
|
|
135
|
-
"-File",
|
|
136
|
-
exe_path,
|
|
137
|
-
*args,
|
|
138
|
-
]
|
|
139
|
-
return subprocess.run(cmd, check=False, stdout=stdout, stderr=stderr).returncode
|
|
140
|
-
if exe_lower.endswith(".cmd") or exe_lower.endswith(".bat"):
|
|
141
|
-
cmdline = subprocess.list2cmdline([exe_path, *args])
|
|
142
|
-
return subprocess.run(
|
|
143
|
-
["cmd.exe", "/d", "/s", "/c", cmdline],
|
|
144
|
-
check=False,
|
|
145
|
-
stdout=stdout,
|
|
146
|
-
stderr=stderr,
|
|
147
|
-
).returncode
|
|
148
|
-
return subprocess.run(
|
|
149
|
-
[exe_path, *args], check=False, stdout=stdout, stderr=stderr
|
|
150
|
-
).returncode
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
def force_qwen_refresh(qwen_path: str) -> None:
|
|
154
|
-
run_windows_cmd(qwen_path, ["--version"], quiet=True)
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
def update_ccr_api_key(ccr_config: Path, new_token: str) -> bool:
|
|
158
|
-
cfg = load_json(ccr_config)
|
|
159
|
-
providers = cfg.get("Providers", [])
|
|
160
|
-
changed = False
|
|
161
|
-
for p in providers:
|
|
162
|
-
if isinstance(p, dict) and p.get("name") == "qwen":
|
|
163
|
-
if p.get("api_key") != new_token:
|
|
164
|
-
p["api_key"] = new_token
|
|
165
|
-
changed = True
|
|
166
|
-
|
|
167
|
-
if changed:
|
|
168
|
-
save_json_atomic(ccr_config, cfg)
|
|
169
|
-
return changed
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
def print_install_info():
|
|
173
|
-
print("[INFO] qwen-claude installed at:")
|
|
174
|
-
for p in site.getsitepackages():
|
|
175
|
-
if "qwen_claude" in p:
|
|
176
|
-
print(" ", p)
|
|
177
|
-
|
|
178
|
-
print("[INFO] Executable location:")
|
|
179
|
-
print(" ", Path(sys.executable).parent)
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
def main() -> int:
|
|
183
|
-
print_install_info()
|
|
184
|
-
verify_required_tools()
|
|
185
|
-
schema_validation()
|
|
186
|
-
|
|
187
|
-
qwen_path = which("qwen")
|
|
188
|
-
ccr_path = which("ccr")
|
|
189
|
-
|
|
190
|
-
# Auth logic
|
|
191
|
-
if not QWEN_OAUTH.exists():
|
|
192
|
-
print("[INFO] Launching Qwen for authentication...")
|
|
193
|
-
proc = subprocess.Popen([qwen_path])
|
|
194
|
-
while not QWEN_OAUTH.exists():
|
|
195
|
-
if proc.poll() is not None:
|
|
196
|
-
return 6
|
|
197
|
-
time.sleep(1)
|
|
198
|
-
proc.terminate()
|
|
199
|
-
|
|
200
|
-
oauth = load_json(QWEN_OAUTH)
|
|
201
|
-
if is_expiring_soon(oauth, REFRESH_BUFFER_SECONDS):
|
|
202
|
-
force_qwen_refresh(qwen_path)
|
|
203
|
-
oauth = load_json(QWEN_OAUTH)
|
|
204
|
-
|
|
205
|
-
access_token = oauth.get("access_token")
|
|
206
|
-
changed = update_ccr_api_key(CCR_CONFIG, access_token)
|
|
207
|
-
|
|
208
|
-
# RESTART LOGIC FIX: Only restart once
|
|
209
|
-
ccr_needs_restart = changed and RESTART_CCR_ON_CHANGE
|
|
210
|
-
|
|
211
|
-
if ccr_needs_restart:
|
|
212
|
-
print("[OK] Token updated. Restarting CCR...")
|
|
213
|
-
run_windows_cmd(ccr_path, ["restart"], quiet=False)
|
|
214
|
-
else:
|
|
215
|
-
print("[OK] CCR config is up to date.")
|
|
216
|
-
|
|
217
|
-
if RUN_CCR_CODE and ccr_path:
|
|
218
|
-
# If we didn't just restart it above, we might need to restart/start it here
|
|
219
|
-
# or just run 'code'. Since you had a restart here before, I'll keep it
|
|
220
|
-
# but ensure it doesn't double-trigger if changed was true.
|
|
221
|
-
if not ccr_needs_restart:
|
|
222
|
-
print("[INFO] Starting CCR...")
|
|
223
|
-
run_windows_cmd(ccr_path, ["restart"], quiet=False)
|
|
224
|
-
|
|
225
|
-
print("[INFO] Launching Claude Code...")
|
|
226
|
-
run_windows_cmd(ccr_path, ["code"], quiet=False)
|
|
227
|
-
|
|
228
|
-
return 0
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
def run():
|
|
232
|
-
raise SystemExit(main())
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
if __name__ == "__main__":
|
|
236
|
-
raise SystemExit(main())
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
|
|
3
|
+
from qwen_claude import __version__
|
|
4
|
+
from qwen_claude.main import main
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
def run():
|
|
8
|
+
try:
|
|
9
|
+
raise SystemExit(main())
|
|
10
|
+
except KeyboardInterrupt:
|
|
11
|
+
print("\n[INFO] Interrupted by user. Exiting...")
|
|
12
|
+
raise SystemExit(130)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
if __name__ == "__main__":
|
|
16
|
+
try:
|
|
17
|
+
raise SystemExit(main())
|
|
18
|
+
except KeyboardInterrupt:
|
|
19
|
+
print("\n[INFO] Interrupted by user. Exiting...")
|
|
20
|
+
raise SystemExit(130)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import os
|
|
2
|
+
from pathlib import Path
|
|
3
|
+
import json
|
|
4
|
+
|
|
5
|
+
QWEN_OAUTH = Path(os.environ["USERPROFILE"]) / ".qwen" / "oauth_creds.json"
|
|
6
|
+
CCR_CONFIG = Path(os.environ["USERPROFILE"]) / ".claude-code-router" / "config.json"
|
|
7
|
+
SCHEMA_FILE = Path(__file__).parent / "schema.json"
|
|
8
|
+
|
|
9
|
+
REFRESH_BUFFER_SECONDS = 120
|
|
10
|
+
RESTART_CCR_ON_CHANGE = True
|
|
11
|
+
RUN_CCR_CODE = True
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def save_json_atomic(path: Path, data: dict) -> None:
|
|
15
|
+
tmp = path.with_suffix(path.suffix + ".tmp")
|
|
16
|
+
with tmp.open("w", encoding="utf-8") as f:
|
|
17
|
+
json.dump(data, f, indent=2)
|
|
18
|
+
tmp.replace(path)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def load_json(path: Path) -> dict:
|
|
22
|
+
with path.open("r", encoding="utf-8") as f:
|
|
23
|
+
return json.load(f)
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
{
|
|
2
|
-
"LOG": true,
|
|
3
|
-
"LOG_LEVEL": "info",
|
|
4
|
-
"CLAUDE_PATH": "",
|
|
5
|
-
"HOST": "127.0.0.1",
|
|
6
|
-
"PORT": 3456,
|
|
7
|
-
"APIKEY": "",
|
|
8
|
-
"API_TIMEOUT_MS": "600000",
|
|
9
|
-
"PROXY_URL": "",
|
|
10
|
-
"transformers": [],
|
|
11
|
-
"Providers": [
|
|
12
|
-
{
|
|
13
|
-
"name": "qwen",
|
|
14
|
-
"api_base_url": "https://portal.qwen.ai/v1/chat/completions",
|
|
15
|
-
"api_key": "PASTE_YOUR_QWEN_ACCESS_TOKEN_HERE",
|
|
16
|
-
"models": ["qwen3-coder-plus", "qwen3-coder-plus", "qwen3-coder-plus"]
|
|
17
|
-
}
|
|
18
|
-
],
|
|
19
|
-
"StatusLine": {
|
|
20
|
-
"enabled": false,
|
|
21
|
-
"currentStyle": "default",
|
|
22
|
-
"default": {
|
|
23
|
-
"modules": []
|
|
24
|
-
},
|
|
25
|
-
"powerline": {
|
|
26
|
-
"modules": []
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
"Router": {
|
|
30
|
-
"default": "qwen,qwen3-coder-plus",
|
|
31
|
-
"background": "qwen,qwen3-coder-plus",
|
|
32
|
-
"think": "qwen,qwen3-coder-plus",
|
|
33
|
-
"longContext": "qwen,qwen3-coder-plus",
|
|
34
|
-
"longContextThreshold": 60000,
|
|
35
|
-
"webSearch": "qwen,qwen3-coder-plus",
|
|
36
|
-
"image": ""
|
|
37
|
-
},
|
|
38
|
-
"CUSTOM_ROUTER_PATH": ""
|
|
39
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"LOG": true,
|
|
3
|
+
"LOG_LEVEL": "info",
|
|
4
|
+
"CLAUDE_PATH": "",
|
|
5
|
+
"HOST": "127.0.0.1",
|
|
6
|
+
"PORT": 3456,
|
|
7
|
+
"APIKEY": "",
|
|
8
|
+
"API_TIMEOUT_MS": "600000",
|
|
9
|
+
"PROXY_URL": "",
|
|
10
|
+
"transformers": [],
|
|
11
|
+
"Providers": [
|
|
12
|
+
{
|
|
13
|
+
"name": "qwen",
|
|
14
|
+
"api_base_url": "https://portal.qwen.ai/v1/chat/completions",
|
|
15
|
+
"api_key": "PASTE_YOUR_QWEN_ACCESS_TOKEN_HERE",
|
|
16
|
+
"models": ["qwen3-coder-plus", "qwen3-coder-plus", "qwen3-coder-plus"]
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"StatusLine": {
|
|
20
|
+
"enabled": false,
|
|
21
|
+
"currentStyle": "default",
|
|
22
|
+
"default": {
|
|
23
|
+
"modules": []
|
|
24
|
+
},
|
|
25
|
+
"powerline": {
|
|
26
|
+
"modules": []
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"Router": {
|
|
30
|
+
"default": "qwen,qwen3-coder-plus",
|
|
31
|
+
"background": "qwen,qwen3-coder-plus",
|
|
32
|
+
"think": "qwen,qwen3-coder-plus",
|
|
33
|
+
"longContext": "qwen,qwen3-coder-plus",
|
|
34
|
+
"longContextThreshold": 60000,
|
|
35
|
+
"webSearch": "qwen,qwen3-coder-plus",
|
|
36
|
+
"image": ""
|
|
37
|
+
},
|
|
38
|
+
"CUSTOM_ROUTER_PATH": ""
|
|
39
|
+
}
|
qwen_claude/main.py
ADDED
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import argparse
|
|
2
|
+
import subprocess
|
|
3
|
+
import time
|
|
4
|
+
from qwen_claude import __version__
|
|
5
|
+
from qwen_claude.utils.path import print_install_info, update_ccr_api_key
|
|
6
|
+
from qwen_claude.utils.schema_validation import schema_validation
|
|
7
|
+
from qwen_claude.utils.tools_validation import verify_required_tools
|
|
8
|
+
from qwen_claude.utils.window import which, run_windows_cmd
|
|
9
|
+
from qwen_claude.utils.token import force_qwen_refresh, is_expiring_soon
|
|
10
|
+
from qwen_claude.config.config import load_json, QWEN_OAUTH, CCR_CONFIG, REFRESH_BUFFER_SECONDS, RUN_CCR_CODE
|
|
11
|
+
|
|
12
|
+
def main() -> int:
|
|
13
|
+
parser = argparse.ArgumentParser(prog="qc")
|
|
14
|
+
|
|
15
|
+
parser.add_argument(
|
|
16
|
+
"-v", "--version", action="version", version=f"qc {__version__}"
|
|
17
|
+
)
|
|
18
|
+
|
|
19
|
+
# Parse args early so --version exits immediately
|
|
20
|
+
parser.parse_args()
|
|
21
|
+
print_install_info()
|
|
22
|
+
# 🔒 NEW: Verify required tools first
|
|
23
|
+
verify_required_tools()
|
|
24
|
+
# 🔒 NEW: Validate the schema first
|
|
25
|
+
schema_validation()
|
|
26
|
+
|
|
27
|
+
qwen_path = which("qwen")
|
|
28
|
+
ccr_path = which("ccr")
|
|
29
|
+
|
|
30
|
+
if not QWEN_OAUTH.exists():
|
|
31
|
+
print(f"[WARN] Qwen oauth file not found: {QWEN_OAUTH}")
|
|
32
|
+
print("[INFO] Launching Qwen for authentication...")
|
|
33
|
+
|
|
34
|
+
# Launch qwen interactively
|
|
35
|
+
proc = subprocess.Popen(
|
|
36
|
+
[qwen_path], creationflags=subprocess.CREATE_NEW_PROCESS_GROUP
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
# Wait for oauth file to appear
|
|
40
|
+
print("[INFO] Waiting for Qwen authentication to complete...")
|
|
41
|
+
while True:
|
|
42
|
+
if QWEN_OAUTH.exists():
|
|
43
|
+
print("[OK] Qwen authentication completed.")
|
|
44
|
+
break
|
|
45
|
+
|
|
46
|
+
# If user closed Qwen without authenticating
|
|
47
|
+
if proc.poll() is not None:
|
|
48
|
+
print("[ERR] Qwen exited before authentication completed.")
|
|
49
|
+
return 6
|
|
50
|
+
|
|
51
|
+
time.sleep(1)
|
|
52
|
+
|
|
53
|
+
# Stop qwen after successful auth
|
|
54
|
+
try:
|
|
55
|
+
subprocess.run(
|
|
56
|
+
["taskkill", "/PID", str(proc.pid), "/T", "/F"],
|
|
57
|
+
stdout=subprocess.DEVNULL,
|
|
58
|
+
stderr=subprocess.DEVNULL,
|
|
59
|
+
check=False,
|
|
60
|
+
)
|
|
61
|
+
print("[INFO] Qwen CLI is Terminated...")
|
|
62
|
+
except Exception:
|
|
63
|
+
pass
|
|
64
|
+
|
|
65
|
+
# print(f"[WARN] Qwen Oauth file not found: {QWEN_OAUTH}")
|
|
66
|
+
# print("[INFO] Launching Qwen for authentication...")
|
|
67
|
+
# run_windows_cmd(qwen_path, [], quiet=False)
|
|
68
|
+
# return 0
|
|
69
|
+
|
|
70
|
+
if not CCR_CONFIG.exists():
|
|
71
|
+
print(f"[ERR] CCR config file not found: {CCR_CONFIG}")
|
|
72
|
+
print(" Edit CCR_CONFIG in the script to the correct location.")
|
|
73
|
+
return 5
|
|
74
|
+
|
|
75
|
+
oauth = load_json(QWEN_OAUTH)
|
|
76
|
+
|
|
77
|
+
if is_expiring_soon(oauth, REFRESH_BUFFER_SECONDS):
|
|
78
|
+
print("[INFO] Token expired/near expiry → triggering Qwen refresh...")
|
|
79
|
+
rc = force_qwen_refresh(qwen_path)
|
|
80
|
+
|
|
81
|
+
if rc == 1:
|
|
82
|
+
oauth = load_json(QWEN_OAUTH)
|
|
83
|
+
else:
|
|
84
|
+
raise RuntimeError("[ERR] Failed to refresh Qwen access token")
|
|
85
|
+
|
|
86
|
+
access_token = oauth.get("access_token")
|
|
87
|
+
if not access_token:
|
|
88
|
+
print("[WARN] Silent refresh failed. Interactive login required.")
|
|
89
|
+
|
|
90
|
+
# Launch qwen interactively
|
|
91
|
+
proc = subprocess.Popen(
|
|
92
|
+
[qwen_path], creationflags=subprocess.CREATE_NEW_PROCESS_GROUP
|
|
93
|
+
)
|
|
94
|
+
|
|
95
|
+
# Wait for oauth file to appear
|
|
96
|
+
print("[INFO] Waiting for Qwen authentication to complete...")
|
|
97
|
+
while True:
|
|
98
|
+
if QWEN_OAUTH.exists():
|
|
99
|
+
print("[OK] Qwen authentication completed.")
|
|
100
|
+
break
|
|
101
|
+
|
|
102
|
+
# If user closed Qwen without authenticating
|
|
103
|
+
if proc.poll() is not None:
|
|
104
|
+
print("[ERR] Qwen exited before authentication completed.")
|
|
105
|
+
return 6
|
|
106
|
+
|
|
107
|
+
time.sleep(1)
|
|
108
|
+
|
|
109
|
+
# Stop qwen after successful auth
|
|
110
|
+
try:
|
|
111
|
+
subprocess.run(
|
|
112
|
+
["taskkill", "/PID", str(proc.pid), "/T", "/F"],
|
|
113
|
+
stdout=subprocess.DEVNULL,
|
|
114
|
+
stderr=subprocess.DEVNULL,
|
|
115
|
+
check=False,
|
|
116
|
+
)
|
|
117
|
+
print("[INFO] Qwen CLI is Terminated...")
|
|
118
|
+
except Exception:
|
|
119
|
+
pass
|
|
120
|
+
|
|
121
|
+
# Reload oauth after interactive login
|
|
122
|
+
oauth = load_json(QWEN_OAUTH)
|
|
123
|
+
access_token = oauth.get("access_token")
|
|
124
|
+
|
|
125
|
+
if not access_token:
|
|
126
|
+
print("[ERR] access_token still missing after interactive login.")
|
|
127
|
+
return 7
|
|
128
|
+
|
|
129
|
+
# print("[ERR] access_token missing after refresh attempt.")
|
|
130
|
+
# print(" Refresh token may be invalid; re-authenticate in Qwen.")
|
|
131
|
+
# return 6
|
|
132
|
+
|
|
133
|
+
changed = update_ccr_api_key(CCR_CONFIG, access_token)
|
|
134
|
+
if changed:
|
|
135
|
+
print("[OK] Updated CCR config with latest Qwen access_token.")
|
|
136
|
+
# if RESTART_CCR_ON_CHANGE and ccr_path:
|
|
137
|
+
# print("[INFO] Restarting CCR...")
|
|
138
|
+
# run_windows_cmd(ccr_path, ["restart"], quiet=False)
|
|
139
|
+
else:
|
|
140
|
+
print("[OK] CCR config already has the latest token.")
|
|
141
|
+
|
|
142
|
+
if RUN_CCR_CODE and ccr_path:
|
|
143
|
+
print("[INFO] Restarting CCR...")
|
|
144
|
+
run_windows_cmd(ccr_path, ["restart"], quiet=False)
|
|
145
|
+
|
|
146
|
+
print("[INFO] Launching Claude Code via CCR (ccr code)...")
|
|
147
|
+
try:
|
|
148
|
+
run_windows_cmd(ccr_path, ["code"], quiet=False)
|
|
149
|
+
except KeyboardInterrupt:
|
|
150
|
+
print("\n[INFO] CCR session interrupted by user.")
|
|
151
|
+
return 130
|
|
152
|
+
|
|
153
|
+
return 0
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import site
|
|
2
|
+
import sys
|
|
3
|
+
import shutil
|
|
4
|
+
from pathlib import Path
|
|
5
|
+
from qwen_claude.config.config import (
|
|
6
|
+
load_json,
|
|
7
|
+
save_json_atomic,
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
def print_install_info():
|
|
11
|
+
for p in site.getsitepackages():
|
|
12
|
+
if "qwen_claude" in p:
|
|
13
|
+
print(" ", p)
|
|
14
|
+
|
|
15
|
+
print(f"[INFO] Executable Path: '{Path(sys.executable).parent}'")
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def update_ccr_api_key(ccr_config: Path, new_token: str) -> bool:
|
|
19
|
+
cfg = load_json(ccr_config)
|
|
20
|
+
providers = cfg.get("Providers", [])
|
|
21
|
+
if not isinstance(providers, list) or not providers:
|
|
22
|
+
raise RuntimeError("CCR config has no Providers[] array.")
|
|
23
|
+
|
|
24
|
+
changed = False
|
|
25
|
+
for p in providers:
|
|
26
|
+
if isinstance(p, dict) and p.get("name") == "qwen":
|
|
27
|
+
if p.get("api_key") != new_token:
|
|
28
|
+
p["api_key"] = new_token
|
|
29
|
+
changed = True
|
|
30
|
+
|
|
31
|
+
if changed:
|
|
32
|
+
try:
|
|
33
|
+
shutil.copy2(ccr_config, ccr_config.with_suffix(".json.bak"))
|
|
34
|
+
except Exception:
|
|
35
|
+
pass
|
|
36
|
+
save_json_atomic(ccr_config, cfg)
|
|
37
|
+
|
|
38
|
+
return changed
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
from qwen_claude.config.config import (
|
|
2
|
+
CCR_CONFIG,
|
|
3
|
+
SCHEMA_FILE,
|
|
4
|
+
load_json,
|
|
5
|
+
save_json_atomic,
|
|
6
|
+
)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def schema_validation() -> None:
|
|
10
|
+
"""
|
|
11
|
+
Checks for api_base_url within the 'qwen' provider in config.json.
|
|
12
|
+
"""
|
|
13
|
+
target_url = "https://portal.qwen.ai/v1/chat/completions"
|
|
14
|
+
|
|
15
|
+
if not SCHEMA_FILE.exists():
|
|
16
|
+
print(f"[ERR] Schema file missing at {SCHEMA_FILE}.")
|
|
17
|
+
return
|
|
18
|
+
|
|
19
|
+
if not CCR_CONFIG.exists():
|
|
20
|
+
print(f"[INFO] {CCR_CONFIG.name} missing. Initializing from schema...")
|
|
21
|
+
save_json_atomic(CCR_CONFIG, load_json(SCHEMA_FILE))
|
|
22
|
+
return
|
|
23
|
+
|
|
24
|
+
try:
|
|
25
|
+
config_data = load_json(CCR_CONFIG)
|
|
26
|
+
except Exception:
|
|
27
|
+
config_data = {}
|
|
28
|
+
|
|
29
|
+
# Find the qwen provider block
|
|
30
|
+
providers = config_data.get("Providers", [])
|
|
31
|
+
qwen_provider = next(
|
|
32
|
+
(p for p in providers if isinstance(p, dict) and p.get("name") == "qwen"), None
|
|
33
|
+
)
|
|
34
|
+
|
|
35
|
+
needs_reset = False
|
|
36
|
+
if not qwen_provider:
|
|
37
|
+
print("[INFO] 'qwen' provider block missing in 'ccr' config.")
|
|
38
|
+
needs_reset = True
|
|
39
|
+
elif "api_base_url" not in qwen_provider:
|
|
40
|
+
print("[INFO] 'api_base_url' missing in 'ccr' config.")
|
|
41
|
+
needs_reset = True
|
|
42
|
+
elif qwen_provider.get("api_base_url") != target_url:
|
|
43
|
+
print(f"[INFO] URL mismatch. Found: {qwen_provider.get('api_base_url')}")
|
|
44
|
+
needs_reset = True
|
|
45
|
+
|
|
46
|
+
if needs_reset:
|
|
47
|
+
print(f"[INFO] Rewriting {CCR_CONFIG.name} using {SCHEMA_FILE.name}...")
|
|
48
|
+
save_json_atomic(CCR_CONFIG, load_json(SCHEMA_FILE))
|
|
49
|
+
else:
|
|
50
|
+
print("[OK] Schema validation passed.")
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import time
|
|
2
|
+
from qwen_claude.utils.window import run_windows_cmd
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
def is_expiring_soon(oauth: dict, buffer_seconds: int) -> bool:
|
|
6
|
+
exp_ms = int(oauth.get("expiry_date", 0))
|
|
7
|
+
if exp_ms <= 0:
|
|
8
|
+
return True
|
|
9
|
+
exp_s = exp_ms / 1000.0
|
|
10
|
+
return time.time() >= (exp_s - buffer_seconds)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def force_qwen_refresh(qwen_path: str) -> None:
|
|
14
|
+
"""
|
|
15
|
+
Trigger Qwen so it refreshes credentials if refresh_token is valid.
|
|
16
|
+
"""
|
|
17
|
+
candidates = [
|
|
18
|
+
["--version"],
|
|
19
|
+
["--help"],
|
|
20
|
+
["-h"],
|
|
21
|
+
["-p", "ping"],
|
|
22
|
+
["hi"],
|
|
23
|
+
["hey"],
|
|
24
|
+
["yo"],
|
|
25
|
+
["what's up"],
|
|
26
|
+
]
|
|
27
|
+
for args in candidates:
|
|
28
|
+
rc = run_windows_cmd(qwen_path, args, quiet=True)
|
|
29
|
+
print("Qwen refresh response: ", rc, f"Arguments: {args}")
|
|
30
|
+
if rc == 1:
|
|
31
|
+
print("[INFO] Qwen access token has been successfully updated.")
|
|
32
|
+
return 1
|
|
33
|
+
|
|
34
|
+
return 0
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
from qwen_claude.utils.window import which
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
def verify_required_tools() -> None:
|
|
5
|
+
"""
|
|
6
|
+
Ensure required global CLIs are installed before continuing.
|
|
7
|
+
"""
|
|
8
|
+
requirements = [
|
|
9
|
+
{
|
|
10
|
+
"name": "qwen",
|
|
11
|
+
"binary": "qwen",
|
|
12
|
+
"install": "npm install -g @qwen-code/qwen-code@latest",
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "claude-code-router",
|
|
16
|
+
"binary": "ccr",
|
|
17
|
+
"install": "npm install -g @musistudio/claude-code-router",
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "claude",
|
|
21
|
+
"binary": "claude",
|
|
22
|
+
"install": "npm install -g @anthropic-ai/claude-code",
|
|
23
|
+
},
|
|
24
|
+
]
|
|
25
|
+
|
|
26
|
+
for req in requirements:
|
|
27
|
+
path = which(req["binary"])
|
|
28
|
+
if not path:
|
|
29
|
+
print(
|
|
30
|
+
f"[ERR] Required package '{req['name']}' is not installed or not in PATH."
|
|
31
|
+
)
|
|
32
|
+
print(f"[INFO] Install it with: `{req['install']}`")
|
|
33
|
+
raise SystemExit(1)
|
|
34
|
+
else:
|
|
35
|
+
print(f"[OK] Found {req['name']} → `{path}`")
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import subprocess
|
|
2
|
+
import shutil
|
|
3
|
+
from typing import Optional
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def which(cmd: str) -> Optional[str]:
|
|
7
|
+
return shutil.which(cmd)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
def run_windows_cmd(exe_path: str, args: list[str], quiet: bool = True) -> int:
|
|
11
|
+
"""
|
|
12
|
+
Windows-safe runner:
|
|
13
|
+
- .ps1 => powershell -File
|
|
14
|
+
- .cmd/.bat => cmd.exe /c <properly quoted>
|
|
15
|
+
- else => direct execute
|
|
16
|
+
"""
|
|
17
|
+
exe_lower = exe_path.lower()
|
|
18
|
+
stdout = subprocess.DEVNULL if quiet else None
|
|
19
|
+
stderr = subprocess.DEVNULL if quiet else None
|
|
20
|
+
|
|
21
|
+
if exe_lower.endswith(".ps1"):
|
|
22
|
+
cmd = [
|
|
23
|
+
"powershell",
|
|
24
|
+
"-NoProfile",
|
|
25
|
+
"-ExecutionPolicy",
|
|
26
|
+
"Bypass",
|
|
27
|
+
"-File",
|
|
28
|
+
exe_path,
|
|
29
|
+
*args,
|
|
30
|
+
]
|
|
31
|
+
p = subprocess.run(cmd, check=False, stdout=stdout, stderr=stderr)
|
|
32
|
+
return p.returncode
|
|
33
|
+
|
|
34
|
+
if exe_lower.endswith(".cmd") or exe_lower.endswith(".bat"):
|
|
35
|
+
cmdline = subprocess.list2cmdline([exe_path, *args])
|
|
36
|
+
p = subprocess.run(
|
|
37
|
+
["cmd.exe", "/d", "/s", "/c", cmdline],
|
|
38
|
+
check=False,
|
|
39
|
+
stdout=stdout,
|
|
40
|
+
stderr=stderr,
|
|
41
|
+
)
|
|
42
|
+
return p.returncode
|
|
43
|
+
|
|
44
|
+
p = subprocess.run([exe_path, *args], check=False, stdout=stdout, stderr=stderr)
|
|
45
|
+
return p.returncode
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: qwen-claude
|
|
3
|
+
Version: 0.1.2
|
|
4
|
+
Summary: Qwen + Claude Code Router bootstrapper
|
|
5
|
+
Author: Saad Kamran
|
|
6
|
+
Author-email: Saad Kamran <saadkamran6ft@gmail.com>
|
|
7
|
+
License: MIT
|
|
8
|
+
Requires-Dist: mypy>=1.19.1
|
|
9
|
+
Requires-Python: >=3.10
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
|
|
12
|
+
This is looking like a high-quality production tool. Since this is now a public package on PyPI, I’ve updated the `README.md` to prioritize the standard installation method while keeping the technical details that make your project look professional.
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
# 🚀 Qwen-Claude Bridge
|
|
17
|
+
|
|
18
|
+
[](https://pypi.org/project/qwen-claude/)
|
|
19
|
+
[](https://www.python.org/downloads/)
|
|
20
|
+
[](https://opensource.org/licenses/MIT)
|
|
21
|
+
|
|
22
|
+
**Qwen-Claude** is a high-performance automation CLI that bridges the gap between [Qwen’s](https://qwenlm.github.io/) authentication and the [Claude Code Router (CCR)](https://github.com/musistudio/claude-code-router). It automates the extraction of OAuth tokens and manages configuration synchronization, allowing you to use Qwen models within Claude Code seamlessly.
|
|
23
|
+
|
|
24
|
+
## ✨ Features
|
|
25
|
+
|
|
26
|
+
* **🔄 Automated Token Sync:** Extracts the latest Qwen OAuth access token and injects it directly into your CCR configuration.
|
|
27
|
+
* **🛡️ Smart Schema Validation:** Ensures your `config.json` is always valid and correctly points to the Qwen portal.
|
|
28
|
+
* **⚡ Dependency Guard:** Automatically verifies that `qwen`, `ccr`, and `claude` CLIs are installed and accessible in your PATH.
|
|
29
|
+
* **🪟 Windows Optimized:** Built-in support for Windows execution logic, handling `.ps1`, `.bat`, and `.cmd` wrappers natively.
|
|
30
|
+
* **🤖 Intelligent Fallback:** Detects expired sessions, triggers an interactive login when needed, and resumes the workflow.
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## 🛠️ Installation
|
|
35
|
+
|
|
36
|
+
Install the package directly from PyPI:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
pip install qwen-claude
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Required Global Tools
|
|
43
|
+
|
|
44
|
+
The bridge coordinates with the following Node.js-based tools. Ensure they are installed on your system:
|
|
45
|
+
|
|
46
|
+
| Tool | Purpose | Install Command |
|
|
47
|
+
| --- | --- | --- |
|
|
48
|
+
| **Qwen CLI** | Auth Provider | `npm install -g @qwen-code/qwen-code@latest` |
|
|
49
|
+
| **CCR** | Router Engine | `npm install -g @musistudio/claude-code-router` |
|
|
50
|
+
| **Claude** | AI Interface | `npm install -g @anthropic-ai/claude-code` |
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## 🚀 Usage
|
|
55
|
+
|
|
56
|
+
Launch the bridge using the `qc` command. This will validate your environment, refresh tokens if necessary, and start your Claude Code session:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
qc
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### Checking Version
|
|
63
|
+
|
|
64
|
+
To check your current version of the bridge:
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
qc -v
|
|
68
|
+
# OR
|
|
69
|
+
qc --version
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### Workflow Overview
|
|
73
|
+
|
|
74
|
+
1. **Verify:** Checks for the presence of required global binaries.
|
|
75
|
+
2. **Validate:** Ensures `~/.claude-code-router/config.json` matches the standard schema.
|
|
76
|
+
3. **Refresh:** If the token expires in < 120 seconds, it triggers a refresh via the Qwen CLI.
|
|
77
|
+
4. **Inject:** Updates the CCR configuration with the new `access_token`.
|
|
78
|
+
5. **Execute:** Restarts the CCR service and enters the Claude Code environment.
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
## ⚙️ Configuration
|
|
83
|
+
|
|
84
|
+
The bridge initializes your router using a pre-defined schema optimized for Qwen 3 Coder:
|
|
85
|
+
|
|
86
|
+
```json
|
|
87
|
+
{
|
|
88
|
+
"Providers": [
|
|
89
|
+
{
|
|
90
|
+
"name": "qwen",
|
|
91
|
+
"api_base_url": "https://portal.qwen.ai/v1/chat/completions",
|
|
92
|
+
"models": ["qwen3-coder-plus"]
|
|
93
|
+
}
|
|
94
|
+
],
|
|
95
|
+
"Router": {
|
|
96
|
+
"default": "qwen,qwen3-coder-plus",
|
|
97
|
+
"think": "qwen,qwen3-coder-plus"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
## 📁 Project Structure
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
```text
|
|
108
|
+
QWEN_CLAUDE
|
|
109
|
+
├── .github/
|
|
110
|
+
│ └── workflows/
|
|
111
|
+
│ └── publish.yml # CI/CD Pipeline
|
|
112
|
+
├── src/
|
|
113
|
+
│ └── qwen_claude/
|
|
114
|
+
│ ├── __init__.py # Version metadata
|
|
115
|
+
│ ├── cli.py # Automation logic
|
|
116
|
+
│ └── schema.json # Default CCR configuration
|
|
117
|
+
├── CODE_OF_CONDUCT.md # Community standards
|
|
118
|
+
├── CONTRIBUTING.md # Contribution guidelines
|
|
119
|
+
├── LICENSE # MIT License
|
|
120
|
+
├── pyproject.toml # Build & Entry points
|
|
121
|
+
└── README.md # Documentation
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## 🤝 Contributing
|
|
127
|
+
|
|
128
|
+
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make to **Qwen-Claude** are **greatly appreciated**.
|
|
129
|
+
|
|
130
|
+
To maintain a high standard of code and community health, please follow these steps:
|
|
131
|
+
|
|
132
|
+
1. **Read the Guidelines:** Before starting, please review our [CONTRIBUTING.md](https://www.google.com/search?q=./CONTRIBUTING.md) for technical instructions and our [CODE_OF_CONDUCT.md](https://www.google.com/search?q=./CODE_OF_CONDUCT.md) to understand our community standards.
|
|
133
|
+
2. **Fork & Clone:** Fork the repository to your own GitHub account and clone it locally.
|
|
134
|
+
3. **Create a Branch:** Dedicated to your fix or feature (`git checkout -b feature/AmazingFeature`).
|
|
135
|
+
4. **Develop & Test:** Make your changes and ensure the logic remains robust.
|
|
136
|
+
5. **Commit & Push:** Commit your changes with clear messages (`git commit -m 'Add some AmazingFeature'`) and push to your fork.
|
|
137
|
+
6. **Open a Pull Request:** Submit your PR against the `main` branch. We will review it as soon as possible!
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
qwen_claude/__init__.py,sha256=IjPkczona5giLas9Vlj85Vl5nY_Jz1zQIVEao5xG_2Y,77
|
|
2
|
+
qwen_claude/cli.py,sha256=TcMinsA4JMG8egkj8Q4Bsjsc_Op0dcX2yXaphPjQmds,456
|
|
3
|
+
qwen_claude/config/config.py,sha256=LJLK2kFQVPocEEhlOxNvZ3jyhAW7A5jWm6bmIld85-I,664
|
|
4
|
+
qwen_claude/config/schema.json,sha256=wHl_x0ixa8xJ0Fy66X5xuOOP3ClvkJur-m3Nj985rQs,913
|
|
5
|
+
qwen_claude/main.py,sha256=JCsVMv-fptLQrDtUWToftBahpPk0Q2wCV1KzUPNVtDI,5308
|
|
6
|
+
qwen_claude/utils/path.py,sha256=jPwUAjKVn60xOyraBHhMzEJ2-cgopkHUFtIA6CZK0Vo,1032
|
|
7
|
+
qwen_claude/utils/schema_validation.py,sha256=E15ICDnw-qgKx9PeCPu06ptUSk9gU8kSsKoHpUlk-bw,1576
|
|
8
|
+
qwen_claude/utils/token.py,sha256=lpeKcmvmHxHTjyDc17uGyJAGAeimyYHEj_e05MrgwXQ,899
|
|
9
|
+
qwen_claude/utils/tools_validation.py,sha256=3SjxBAGuCrz_-vqwrue6oHiPF4LQ2b3s8qieC1viLQ8,1034
|
|
10
|
+
qwen_claude/utils/window.py,sha256=OsW7O3PhIafapdKdld96Q9lE93-cE447csB5O0cVMsM,1268
|
|
11
|
+
qwen_claude-0.1.2.dist-info/WHEEL,sha256=fAguSjoiATBe7TNBkJwOjyL1Tt4wwiaQGtNtjRPNMQA,80
|
|
12
|
+
qwen_claude-0.1.2.dist-info/entry_points.txt,sha256=TOf35RaxMV8MnDInvpY1CQP35uqHwxElhtH9OKuuENo,44
|
|
13
|
+
qwen_claude-0.1.2.dist-info/METADATA,sha256=DnlBa7ndyM3zADCJohaJtXN7B2Up9dCT8o5o85c_Lnc,5285
|
|
14
|
+
qwen_claude-0.1.2.dist-info/RECORD,,
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.3
|
|
2
|
-
Name: qwen-claude
|
|
3
|
-
Version: 0.1.0
|
|
4
|
-
Summary: Qwen + Claude Code Router bootstrapper
|
|
5
|
-
Author: Saad-Kamran-2006
|
|
6
|
-
Author-email: Saad-Kamran-2006 <saadkamran6ft@gmail.com>
|
|
7
|
-
License: MIT
|
|
8
|
-
Requires-Python: >=3.13
|
|
9
|
-
Description-Content-Type: text/markdown
|
|
10
|
-
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
qwen_claude/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
qwen_claude/cli.py,sha256=PemEV1svetkWepw6lIjAJh7_x7NlfoU5CdgJlGDrNg0,7332
|
|
3
|
-
qwen_claude/schema.json,sha256=ifOWG5YRSsu7o6imu8pZLYJnHlzdqrKt7LxLMFb8wok,952
|
|
4
|
-
qwen_claude-0.1.0.dist-info/WHEEL,sha256=fAguSjoiATBe7TNBkJwOjyL1Tt4wwiaQGtNtjRPNMQA,80
|
|
5
|
-
qwen_claude-0.1.0.dist-info/entry_points.txt,sha256=TOf35RaxMV8MnDInvpY1CQP35uqHwxElhtH9OKuuENo,44
|
|
6
|
-
qwen_claude-0.1.0.dist-info/METADATA,sha256=sW0SiOOLc-R7O8hmxYeUtenzhMlWNVqr_jJaaafuMfA,263
|
|
7
|
-
qwen_claude-0.1.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|