@tradejs/cli 3.1.29-beta.290 → 3.1.29-beta.292

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.
@@ -1355,12 +1355,18 @@ async function collectReleaseEvidenceReferences(references) {
1355
1355
  }
1356
1356
  const nested = (value) => value != null && typeof value === "object" && !Array.isArray(value) ? value : null;
1357
1357
  const array = (value) => Array.isArray(value) ? value : [];
1358
- const semanticallyValid = reference.kind === "core_research" ? artifact.schema === "tradejs-core-research-result/v1" || artifact.schema === "tradejs-core-research-manifest/v1" && artifact.status === "completed" : reference.kind === "ai_gate" ? nested(artifact.run)?.mode === "local-deterministic" && nested(artifact.research)?.lineage != null && nested(artifact.outcome) != null : reference.kind === "runtime_parity" ? artifact.reportType === "replay-runtime-evidence" && nested(nested(artifact.replay)?.runtimeComparison) != null : reference.kind === "execution_calibration" ? artifact.reportType === "execution-calibration" && nested(artifact.summary) != null : reference.kind === "runtime_evidence" ? artifact.reportType === "runtime-evidence" : artifact.reportType === "runtime-scorecard";
1358
+ const semanticallyValid = reference.kind === "core_research" ? [
1359
+ "tradejs-core-research-result/v1",
1360
+ "tradejs-core-research-result/v2"
1361
+ ].includes(String(artifact.schema)) || artifact.schema === "tradejs-core-research-manifest/v1" && artifact.status === "completed" : reference.kind === "ai_gate" ? nested(artifact.run)?.mode === "local-deterministic" && nested(artifact.research)?.lineage != null && nested(artifact.outcome) != null : reference.kind === "runtime_parity" ? artifact.reportType === "replay-runtime-evidence" && nested(nested(artifact.replay)?.runtimeComparison) != null : reference.kind === "execution_calibration" ? artifact.reportType === "execution-calibration" && nested(artifact.summary) != null : reference.kind === "runtime_evidence" ? artifact.reportType === "runtime-evidence" : artifact.reportType === "runtime-scorecard";
1359
1362
  assert2(
1360
1363
  semanticallyValid,
1361
1364
  `evidence ${reference.artifactId} does not match ${reference.kind}`
1362
1365
  );
1363
- if (reference.kind === "core_research" && artifact.schema === "tradejs-core-research-result/v1") {
1366
+ if (reference.kind === "core_research" && [
1367
+ "tradejs-core-research-result/v1",
1368
+ "tradejs-core-research-result/v2"
1369
+ ].includes(String(artifact.schema))) {
1364
1370
  await verifyCompletedCoreResearchBundle({
1365
1371
  artifact,
1366
1372
  resultPath: reference.path,