scene-capability-engine 3.3.14 → 3.3.15
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/README.md +1 -1
- package/README.zh.md +1 -1
- package/docs/command-reference.md +0 -1
- package/lib/commands/scene.js +2 -24
- package/package.json +1 -1
package/README.md
CHANGED
package/README.zh.md
CHANGED
|
@@ -1353,7 +1353,6 @@ sce scene package-publish-batch --manifest docs/handoffs/handoff-manifest.json -
|
|
|
1353
1353
|
|
|
1354
1354
|
Compatibility contract note:
|
|
1355
1355
|
- Scene package compatibility uses `compatibility.min_sce_version` as canonical field.
|
|
1356
|
-
- Legacy `compatibility.kse_version` remains readable but is deprecated.
|
|
1357
1356
|
|
|
1358
1357
|
### Scene Package Ontology Backfill Batch
|
|
1359
1358
|
|
package/lib/commands/scene.js
CHANGED
|
@@ -3631,23 +3631,10 @@ function buildScenePackageCoordinate(contract = {}) {
|
|
|
3631
3631
|
return `${group}/${name}@${version}`;
|
|
3632
3632
|
}
|
|
3633
3633
|
|
|
3634
|
-
function resolveSceneCompatibilityMinSceVersion(compatibility = {}) {
|
|
3635
|
-
if (!isPlainObject(compatibility)) {
|
|
3636
|
-
return '';
|
|
3637
|
-
}
|
|
3638
|
-
|
|
3639
|
-
const minSceVersion = String(compatibility.min_sce_version || '').trim();
|
|
3640
|
-
if (minSceVersion.length > 0) {
|
|
3641
|
-
return minSceVersion;
|
|
3642
|
-
}
|
|
3643
|
-
|
|
3644
|
-
return String(compatibility.kse_version || '').trim();
|
|
3645
|
-
}
|
|
3646
|
-
|
|
3647
3634
|
function buildScenePackagePublishTemplateManifest(packageContract = {}, context = {}) {
|
|
3648
3635
|
const artifacts = isPlainObject(packageContract.artifacts) ? packageContract.artifacts : {};
|
|
3649
3636
|
const compatibility = isPlainObject(packageContract.compatibility) ? packageContract.compatibility : {};
|
|
3650
|
-
const minSceVersion =
|
|
3637
|
+
const minSceVersion = String(compatibility.min_sce_version || '').trim();
|
|
3651
3638
|
|
|
3652
3639
|
return {
|
|
3653
3640
|
apiVersion: SCENE_PACKAGE_TEMPLATE_API_VERSION,
|
|
@@ -4231,20 +4218,11 @@ function validateScenePackageContract(contract = {}) {
|
|
|
4231
4218
|
errors.push('compatibility object is required');
|
|
4232
4219
|
} else {
|
|
4233
4220
|
const minSceVersion = String(compatibility.min_sce_version || '').trim();
|
|
4234
|
-
const legacyKseVersion = String(compatibility.kse_version || '').trim();
|
|
4235
4221
|
|
|
4236
|
-
if (!minSceVersion
|
|
4222
|
+
if (!minSceVersion) {
|
|
4237
4223
|
errors.push('compatibility.min_sce_version is required');
|
|
4238
4224
|
}
|
|
4239
4225
|
|
|
4240
|
-
if (!minSceVersion && legacyKseVersion) {
|
|
4241
|
-
warnings.push('compatibility.kse_version is deprecated; use compatibility.min_sce_version');
|
|
4242
|
-
}
|
|
4243
|
-
|
|
4244
|
-
if (minSceVersion && legacyKseVersion && minSceVersion !== legacyKseVersion) {
|
|
4245
|
-
warnings.push('compatibility.min_sce_version takes precedence over compatibility.kse_version when both are defined');
|
|
4246
|
-
}
|
|
4247
|
-
|
|
4248
4226
|
if (!String(compatibility.scene_api_version || '').trim()) {
|
|
4249
4227
|
errors.push('compatibility.scene_api_version is required');
|
|
4250
4228
|
}
|
package/package.json
CHANGED