@stalfh233/omc-cli 0.8.24 → 0.8.25

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.
@@ -109,19 +109,19 @@ export const ADAPTER_BUILTIN_AUTH_CODES = Object.freeze({
109
109
  */
110
110
  export const AUTH_PARAMETER_PROVENANCE = Object.freeze({
111
111
  basic: Object.freeze({
112
- username: "目标系统的账号(由对方系统提供,不是 CloudPivot 账号)",
113
- password: "该账号的密码(由对方系统提供)",
112
+ username: "目标系统的账号;自调本实例时就是 CloudPivot 自己的账号",
113
+ password: "该账号的密码;自调本实例时就是 CloudPivot 账号的密码",
114
114
  }),
115
115
  oauth_password: Object.freeze({
116
- client_id: "目标系统 OAuth 应用注册后发放的客户端 ID",
117
- client_secret: "同一 OAuth 应用的客户端密钥",
118
- username: "资源所有者账号(目标系统里的用户,不是 CloudPivot 账号)",
119
- password: "该资源所有者账号的密码",
116
+ client_id: "目标系统 OAuth 应用注册后发放的客户端 ID;自调本实例时是本平台 API 客户端",
117
+ client_secret: "同一 OAuth 应用的客户端密钥;自调本实例时是本平台 API 客户端密钥",
118
+ username: "资源所有者账号(目标系统里的用户);自调本实例时就是 CloudPivot 自己的账号",
119
+ password: "该资源所有者账号的密码;自调本实例时就是 CloudPivot 账号的密码",
120
120
  oauth_path: "目标系统的 token 端点(如 https://host/oauth/token;平台用它换 Bearer token)",
121
121
  }),
122
122
  oauth_client: Object.freeze({
123
- client_id: "目标系统 OAuth 应用注册后发放的客户端 ID",
124
- client_secret: "同一 OAuth 应用的客户端密钥",
123
+ client_id: "目标系统 OAuth 应用注册后发放的客户端 ID;自调本实例时是本平台 API 客户端",
124
+ client_secret: "同一 OAuth 应用的客户端密钥;自调本实例时是本平台 API 客户端密钥",
125
125
  oauth_path: "目标系统的 token 端点(client_credentials 模式换 Bearer token 的地址)",
126
126
  }),
127
127
  customer: Object.freeze({}),
@@ -203,12 +203,17 @@ function poolReadbackFace(pool) {
203
203
  };
204
204
  }
205
205
  /**
206
- * 探针 P/Q(0.8.24):鉴权面以平台 `adapter_config.authList` 为唯一来源——只有
206
+ * 探针 P/Q(0.8.24→0.8.25):鉴权面以平台 `adapter_config.authList` 为唯一来源——只有
207
207
  * 平台列出的 code 才能写,参数集合也按平台定义核对(离线基线内嵌 4 种,在线读平台)。
208
- * 平台证据:RestProtocolAdapterServiceImpl.java:50-90(2.1.5 :49-72)内置 4 种并追加
209
- * 扩展 RestAuthenticationService.getAuthConfig();SOAP 只有 basic/customer
210
- * (SoapProtocolAdapterServiceImpl.java:44-45);authList 由
211
- * /bizservice/service/adapter_config 原样返回(BizServiceFacadeImpl.java:322-328)。
208
+ * 平台证据(两版行号不同,均实测):
209
+ * - REST:8.6.26 RestProtocolAdapterServiceImpl.java:50 getConfig / :55-68 四个 Auth /
210
+ * :69-72 追加 SPI;2.1.5 同文件 :48 / :53-66 / :67-70。
211
+ * - SOAP:8.6.26 SoapProtocolAdapterServiceImpl.java:42 getConfig / :46-47 两个 Auth;
212
+ * 2.1.5 :40 / :44-45。
213
+ * - INTERNAL:8.6.26 InternalProtocolAdapterServiceImpl.java:50 getConfig / :55-68;
214
+ * 2.1.5 :48 / :53-66。
215
+ * - 扩展接口:RestAuthenticationService.java:15-17(@ExtensionPoint + getAuthConfig)。
216
+ * - authList 原样返回:BizServiceFacadeImpl.java:322-328。
212
217
  */
213
218
  const AUTH_ADAPTERS = new Set(["RESTFUL", "INTERNAL", "SOAP"]);
214
219
  async function loadAdapterAuthDefinitions(session, adapterCode) {
@@ -21,8 +21,8 @@ const restfulQueryService = Object.freeze({
21
21
  },
22
22
  preconditions: ["serviceCategoryId 由 service.category.list 解析(「全部」是空 id 虚拟项不可用);RESTFUL 服务 configJson 需要 auth 与 commonlist[url];带 methodName 时必须有 methodConfig"],
23
23
  conditionalRequirements: [
24
- "鉴权只有平台内置 4 种:customer(无,parameterlist=[]) / basic(username/password) / oauth_password(client_id/client_secret/username/password/oauth_path) / oauth_client(client_id/client_secret/oauth_path);SOAP 只有 basic/customer。parameterlist 每项 {code,value},code 必须与平台 adapter_config.authList 完全一致",
25
- "参数从哪来:username/password=目标系统账号与密码(不是 CloudPivot 账号);client_id/client_secret=目标系统 OAuth 应用注册后发放;oauth_path=目标系统的 token 端点(换 Bearer token 的地址)。每条鉴权的权威参数清单+来源:omc call service.adapter_config(authGuide);写失败时回执也会逐参数点名来源",
24
+ "鉴权内置 4 种(部署可用 SPI 追加,以 adapter_config.authList 为准):customer(无,parameterlist=[]) / basic(username/password) / oauth_password(client_id/client_secret/username/password/oauth_path) / oauth_client(client_id/client_secret/oauth_path);SOAP 只有 basic/customer。parameterlist 每项 {code,value},code 必须与平台 adapter_config.authList 完全一致",
25
+ "参数从哪来:username/password=目标系统账号与密码(自调本实例时就是 CloudPivot 自己的账号与密码);client_id/client_secret=目标系统 OAuth 应用注册后发放(自调本实例时是本平台 API 客户端);oauth_path=目标系统的 token 端点(换 Bearer token 的地址)。每条鉴权的权威参数清单+来源:omc call service.adapter_config(authGuide);写失败时回执也会逐参数点名来源",
26
26
  "RESTFUL 方法 configJson 必需键:httpType(Post/Get/Put/Patch/Delete)、requestBodyType(Form-urlencoded/JSON/Text)、url、frontEndExtensionEnable(布尔)",
27
27
  "RESTFUL 每个输入/输出参数必须带 configJson.position ∈ QUERY_PARAMS/REQUEST_HEADER/REQUEST_BODY/PATH_PARAMS(URL_VARIABLE 被运行时拒 501007)",
28
28
  "每个输入/输出参数必须带 bizPropertyType(如 SHORT_TEXT/NUMERICAL)——缺它提交即被 bizservice-parameter-face-invalid 拒(r19-p7 首拒根因,2026-10-26 修正本配方)",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stalfh233/omc-cli",
3
- "version": "0.8.24",
3
+ "version": "0.8.25",
4
4
  "description": "CloudPivot 8.6 configuration capability CLI — governed, fail-closed, coverage-manifest bounded.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -58,7 +58,7 @@
58
58
  },
59
59
  "dependencies": {
60
60
  "commander": "14.0.3",
61
- "omc-core": "0.8.24",
61
+ "omc-core": "0.8.25",
62
62
  "proper-lockfile": "4.1.2",
63
63
  "write-file-atomic": "6.0.0",
64
64
  "zod": "^3.23.8",
@@ -76,6 +76,6 @@
76
76
  "directory": "packages/omc-cli"
77
77
  },
78
78
  "optionalDependencies": {
79
- "@stalfh233/omc-fake-platform": "0.8.24"
79
+ "@stalfh233/omc-fake-platform": "0.8.25"
80
80
  }
81
81
  }