openyida 2026.11.2-2 → 2026.11.3-beta.0

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.
@@ -9,7 +9,7 @@
9
9
  * 2. authData.base_url(登录后实际跳转域名)
10
10
  * 3. 环境变量 OPENYIDA_ENV 指定的环境配置
11
11
  * 4. 当前激活的环境配置(openyida-envs.json current 字段)
12
- * 5. 默认公有云 https://www.aliwork.com
12
+ * 5. 默认公有云 https://davidtest.aliwork.com
13
13
  *
14
14
  * 导出函数:
15
15
  * loadEnvsConfig() - 读取环境配置文件(不存在则返回默认公有云配置)
@@ -25,8 +25,8 @@ const fs = require('fs');
25
25
  const path = require('path');
26
26
  const { findProjectRoot } = require('./utils');
27
27
 
28
- const DEFAULT_BASE_URL = 'https://www.aliwork.com';
29
- const DEFAULT_LOGIN_URL = 'https://www.aliwork.com/workPlatform';
28
+ const DEFAULT_BASE_URL = 'https://davidtest.aliwork.com';
29
+ const DEFAULT_LOGIN_URL = 'https://davidtest.aliwork.com/workPlatform';
30
30
  const INTERNATIONAL_BASE_URL = 'https://www.yidaapps.com';
31
31
  const DINGTALK_OAUTH_CLIENT_ID = 'suite9xvlxxerybljwheo';
32
32
  const DINGTALK_LOGIN_ORIGIN = 'https://login.dingtalk.com';
@@ -151,7 +151,7 @@ const ENV_ALIASES = {
151
151
  };
152
152
 
153
153
  const KNOWN_YIDA_HOSTS = new Set([
154
- 'www.aliwork.com',
154
+ 'davidtest.aliwork.com',
155
155
  'www.yidaapps.com',
156
156
  'yida-group.alibaba-inc.com',
157
157
  'www.yidaapps.com',
package/lib/core/utils.js CHANGED
@@ -1070,7 +1070,7 @@ function isHttpAuthStatus(statusCode) {
1070
1070
  * @returns {string}
1071
1071
  */
1072
1072
  function resolveBaseUrl(authData, defaultBaseUrl) {
1073
- const { normalizeBaseUrl, resolveEndpoint } = require('./env-manager');
1073
+ const { DEFAULT_BASE_URL, normalizeBaseUrl, resolveEndpoint } = require('./env-manager');
1074
1074
  const businessBaseUrl = normalizeBaseUrl(
1075
1075
  authData && authData.base_url,
1076
1076
  null
@@ -1079,7 +1079,7 @@ function resolveBaseUrl(authData, defaultBaseUrl) {
1079
1079
  return businessBaseUrl;
1080
1080
  }
1081
1081
  const resolved = resolveEndpoint(null, undefined);
1082
- if (defaultBaseUrl && resolved === 'https://www.aliwork.com' && (!authData || !authData.base_url)) {
1082
+ if (defaultBaseUrl && resolved === DEFAULT_BASE_URL && (!authData || !authData.base_url)) {
1083
1083
  return defaultBaseUrl.replace(/\/+$/, '');
1084
1084
  }
1085
1085
  return resolved;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openyida",
3
- "version": "2026.11.2-2",
3
+ "version": "2026.11.3-beta.0",
4
4
  "description": "OpenYida CLI - 宜搭低代码 AI 开发工具(安装即用,零配置)",
5
5
  "bin": {
6
6
  "openyida": "bin/yida.js",
@@ -120,7 +120,7 @@
120
120
  "node": ">=18"
121
121
  },
122
122
  "openyidaAgent": {
123
- "endpoint": "https://www.aliwork.com/openyida/agent-api"
123
+ "endpoint": "https://davidtest.aliwork.com/openyida/agent-api"
124
124
  },
125
125
  "optionalDependencies": {
126
126
  "@openyida/local-agent-runtime-darwin-arm64": "0.1.4",