@stalfh233/omc-cli 0.8.12 → 0.8.13

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.
@@ -479,6 +479,13 @@ const isKeyTwinProjectionCode = (key) => key.endsWith("_") || key.endsWith("_key
479
479
  * 它们**不由视图列决定**,所以视图清单里没有也不代表「未投影」——此时 null 就是真值。
480
480
  * 只有白名单外的系统列(典型 `sequenceNo`、`version`)才随视图列证据判。
481
481
  */
482
+ /**
483
+ * 即便列在视图里,平台 `runtime/query/list` 也不回值、恒为 null 的系统列。
484
+ * `sequenceNo` 就是典型(`completeSystemFields` 白名单不含它:8.6.26
485
+ * `BizObjectFacadeImpl:4870` / 2.1.5 `QueryDisplayFieldResolver.REQUIRED_SYSTEM_FIELDS:38`),
486
+ * 而 `data.load` 同记录有值。null 因此不代表真空值——与未投影同判(省略键)。
487
+ */
488
+ const RUNTIME_NEVER_VALUED_WHEN_NULL = new Set(["sequenceNo"]);
482
489
  const RUNTIME_ALWAYS_PROJECTED_FIELD_CODES = new Set([
483
490
  "id", "name", "owner", "creater", "createdTime", "modifiedTime", "sequenceStatus",
484
491
  "workflowInstanceId", "ownerDeptId", "ownerDeptQueryCode",
@@ -495,6 +502,9 @@ export function itemUnprojectedFields(fields, projectionMiss, viewColumnCodes) {
495
502
  if (value !== null && value !== undefined)
496
503
  return false;
497
504
  if (inView !== undefined) {
505
+ // 视图含 sequenceNo 也不代表平台会回值(completeSystemFields 白名单不含它)。
506
+ if (RUNTIME_NEVER_VALUED_WHEN_NULL.has(code))
507
+ return true;
498
508
  if (RUNTIME_ALWAYS_PROJECTED_FIELD_CODES.has(code))
499
509
  return false;
500
510
  return !inView.has(code);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stalfh233/omc-cli",
3
- "version": "0.8.12",
3
+ "version": "0.8.13",
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.12",
61
+ "omc-core": "0.8.13",
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.12"
79
+ "@stalfh233/omc-fake-platform": "0.8.13"
80
80
  }
81
81
  }