refactor: publish ops profiler runtime contract (#3643)

This commit is contained in:
安正超
2026-06-20 09:42:13 +08:00
committed by GitHub
parent 9a3d5bd2a0
commit 5ad47d1354
6 changed files with 398 additions and 25 deletions
+8
View File
@@ -287,6 +287,14 @@ mod tests {
assert_eq!(diagnostics.kind, ExtensionKind::OpsDiagnostics);
assert_eq!(diagnostics.runtime.boundary, ExtensionRuntimeBoundary::Builtin);
let profiler = response
.extensions
.iter()
.find(|schema| schema.extension_id == "builtin:ops-profiler")
.expect("builtin ops profiler extension should be present");
assert_eq!(profiler.kind, ExtensionKind::OpsProfiler);
assert_eq!(profiler.runtime.boundary, ExtensionRuntimeBoundary::Builtin);
assert!(!response.external_plugin_flow.enabled);
assert!(response.external_plugin_flow.install_requires_signature);
assert!(response.external_plugin_flow.install_requires_provenance);