@uzqw/shared 0.1.3 → 0.1.4

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/dist/index.d.ts CHANGED
@@ -33,8 +33,10 @@ declare const DEFAULT_CLIENT_ID: string;
33
33
  declare const DEFAULT_REDIRECT_URI = "http://localhost:8199/auth/callback";
34
34
  declare const DEFAULT_LOGTO_ENDPOINT: string;
35
35
  declare const DEFAULT_LOGTO_CLIENT_ID: string;
36
- /** 默认后端地址(prod 预设;RECOLX_API_BASE 可覆盖) */
37
- declare const DEFAULT_API_BASE = "https://api.recolx.ai/api";
36
+ /** 默认后端地址(prod 预设;RECOLX_API_BASE 可覆盖)。
37
+ * 注意:所有请求走 gateway /open/oauth 与 /open/third-party 路由,
38
+ * 不在 /api 前缀下,因此 base 不带 /api。 */
39
+ declare const DEFAULT_API_BASE = "https://api.recolx.ai";
38
40
  /** 环境预设:后端地址 + 鉴权模式 + Logto 配置(logto 模式用)。authMode 由环境推导,不再猜 IP。
39
41
  * prod 的 Logto 为独立实例,地址/应用 id 未知——留空,logto 模式登录时明确报错,绝不静默连到测试实例。 */
40
42
  declare const ENV_PRESETS: Record<RecolxEnv, {
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ var DEFAULT_CLIENT_ID = process.env.RECOLX_MCP_CLIENT_ID ?? "recolx-mcp";
7
7
  var DEFAULT_REDIRECT_URI = "http://localhost:8199/auth/callback";
8
8
  var DEFAULT_LOGTO_ENDPOINT = process.env.RECOLX_LOGTO_ENDPOINT ?? "https://test-auth.recolx.ai";
9
9
  var DEFAULT_LOGTO_CLIENT_ID = process.env.RECOLX_LOGTO_CLIENT_ID ?? "7gxhhlqavsei898azq1e9";
10
- var DEFAULT_API_BASE = "https://api.recolx.ai/api";
10
+ var DEFAULT_API_BASE = "https://api.recolx.ai";
11
11
  var LEGACY_BAKED_API_BASE = "http://192.168.3.194:8000";
12
12
  var ENV_PRESETS = {
13
13
  // local 与 staging 共用同一套 Logto(test-auth.recolx.ai):本地测试环境不再走 developer OAuth 单独体系。
@@ -19,7 +19,7 @@ var ENV_PRESETS = {
19
19
  logtoClientId: DEFAULT_LOGTO_CLIENT_ID
20
20
  },
21
21
  staging: {
22
- apiBase: "https://test-202412-api.recolx.cn/api",
22
+ apiBase: "https://test-202412-api.recolx.cn",
23
23
  authMode: "logto",
24
24
  logtoEndpoint: DEFAULT_LOGTO_ENDPOINT,
25
25
  logtoClientId: DEFAULT_LOGTO_CLIENT_ID
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uzqw/shared",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Shared types, zod schemas, token store and API client for recolx MCP/CLI",
5
5
  "publishConfig": {
6
6
  "access": "public"