waygate-qoder 0.1.1 → 0.1.3

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
@@ -34,11 +34,12 @@ qoc
34
34
  ```
35
35
 
36
36
  ```
37
- 途关 · Qoder CN 反代 v0.1.0
37
+ 途关 · Qoder CN 反代 v0.1.2
38
38
 
39
39
  凭证 ✓ 已登录:你的账号(uid 01a0d156…)
40
40
  上游 https://gateway.qoder.com.cn (COSY 签名协议)
41
- 代理 http://127.0.0.1:8789
41
+ 代理 http://127.0.0.1:8789/v1 (OpenAI 系客户端:Cursor / Cherry Studio / OpenAI SDK)
42
+ http://127.0.0.1:8789 (Anthropic 系客户端:Claude Code,它自己会补 /v1)
42
43
  密钥 sk-qoc-1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d
43
44
 
44
45
  模型 ID(填进你的客户端):
package/dist/index.js CHANGED
@@ -5,8 +5,10 @@
5
5
  * 读取本机 Qoder 客户端的登录态,在本机提供一个 Anthropic/OpenAI 兼容的聊天端点,
6
6
  * 供 Cursor / Claude Code / Cherry Studio 等客户端使用。只在本机读写与转发,不上传任何数据。
7
7
  */
8
+ import { createRequire } from 'node:module';
8
9
  import { runCli } from 'waygate-core';
9
10
  import { createQoderAdapter } from './adapter.js';
10
- const VERSION = '0.1.0';
11
+ /* 版本从 package.json 读 —— 硬编码会与 npm 发布版本漂移(已踩过:package 升 0.1.2 而 CLI 仍显示 0.1.0)。 */
12
+ const VERSION = createRequire(import.meta.url)('../package.json').version;
11
13
  const code = await runCli(createQoderAdapter(), { version: VERSION });
12
14
  process.exit(code);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waygate-qoder",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Qoder CN 本地反代:读取本机客户端登录态,提供 Anthropic/OpenAI 兼容的本地聊天端点",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -40,6 +40,6 @@
40
40
  "access": "public"
41
41
  },
42
42
  "dependencies": {
43
- "waygate-core": "^0.2.1"
43
+ "waygate-core": "^0.2.3"
44
44
  }
45
45
  }