@uzqw/shared 0.1.8 → 0.1.9

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
@@ -11,7 +11,7 @@ interface RecolxConfig {
11
11
  tokenFile?: string;
12
12
  /** token 落盘目录;缺省 ~/.recolx */
13
13
  tokenDir?: string;
14
- /** 环境:local | staging | prod;缺省按 配置文件 > RECOLX_ENV > prod */
14
+ /** 环境:local | staging | prod;缺省按 配置文件 > RECOLX_ENV > staging */
15
15
  env?: RecolxEnv;
16
16
  /** 后端地址覆盖(自定义部署逃生舱);缺省按环境预设 */
17
17
  apiBase?: string;
@@ -51,7 +51,7 @@ declare function envConfigPath(): string;
51
51
  declare function readEnvConfig(): RecolxEnv | null;
52
52
  /** 写入环境配置文件(AI set_env / install --env 共用) */
53
53
  declare function writeEnvConfig(env: RecolxEnv): void;
54
- /** 解析最终环境:实例配置 > 配置文件 > RECOLX_ENV > prod */
54
+ /** 解析最终环境:实例配置 > 配置文件 > RECOLX_ENV > staging */
55
55
  declare function resolveEnv(env?: RecolxEnv): RecolxEnv;
56
56
  declare function resolveConfig(config: RecolxConfig): Required<Pick<RecolxConfig, "clientId" | "redirectUri" | "tokenFile" | "apiBase" | "authorizationUrl" | "tokenUrl" | "logtoEndpoint" | "logtoClientId">> & {
57
57
  env: RecolxEnv;
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import { readFileSync, writeFileSync, mkdirSync } from "fs";
3
3
  import { join } from "path";
4
4
  import { homedir } from "os";
5
- var DEFAULT_ENV = "prod";
5
+ var DEFAULT_ENV = "staging";
6
6
  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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uzqw/shared",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Shared types, zod schemas, token store and API client for recolx MCP/CLI",
5
5
  "publishConfig": {
6
6
  "access": "public"