aKode fase 2b-1 (WIP): rimossi cloud-config, apps MCP ChatGPT, upload file, connectors-extension, rate limits backend; plugin remoti in corso (test non ancora compilanti)
Some checks failed
blocking-ci / Bazel (push) Has been cancelled
blocking-ci / Blob size policy (push) Has been cancelled
blocking-ci / cargo-deny (push) Has been cancelled
blocking-ci / Codespell (push) Has been cancelled
blocking-ci / repo-checks (push) Has been cancelled
blocking-ci / rust-ci (push) Has been cancelled
blocking-ci / sdk (push) Has been cancelled
blocking-ci / CI required (push) Has been cancelled
postmerge-ci / rust-ci-full (push) Has been cancelled
postmerge-ci / v8-canary (push) Has been cancelled
postmerge-ci / Postmerge CI results (push) Has been cancelled
Some checks failed
blocking-ci / Bazel (push) Has been cancelled
blocking-ci / Blob size policy (push) Has been cancelled
blocking-ci / cargo-deny (push) Has been cancelled
blocking-ci / Codespell (push) Has been cancelled
blocking-ci / repo-checks (push) Has been cancelled
blocking-ci / rust-ci (push) Has been cancelled
blocking-ci / sdk (push) Has been cancelled
blocking-ci / CI required (push) Has been cancelled
postmerge-ci / rust-ci-full (push) Has been cancelled
postmerge-ci / v8-canary (push) Has been cancelled
postmerge-ci / Postmerge CI results (push) Has been cancelled
This commit is contained in:
@@ -124,31 +124,6 @@ impl PluginMeasurementTarget {
|
||||
}
|
||||
|
||||
impl TrustedPluginRoots {
|
||||
/// Called only after the authenticated remote bundle installer has prepared
|
||||
/// an isolated store. Read declarations without loading plugin capabilities.
|
||||
pub(crate) fn from_measurement_reference(
|
||||
codex_home: &Path,
|
||||
plugin_id: &PluginId,
|
||||
version: &str,
|
||||
remote_id: &str,
|
||||
) -> Option<Self> {
|
||||
let store = PluginStore::try_new(codex_home.to_owned()).ok()?;
|
||||
if store.active_plugin_version(plugin_id).as_deref() != Some(version)
|
||||
|| store.remote_plugin_id(plugin_id).ok()?.as_deref() != Some(remote_id)
|
||||
{
|
||||
return None;
|
||||
}
|
||||
let root = store.plugin_root(plugin_id, version).canonicalize().ok()?;
|
||||
let metrics_operations_by_path = load_plugin_metrics_operations(&root).unwrap_or_default();
|
||||
Some(Self {
|
||||
roots: vec![TrustedPluginRoot {
|
||||
plugin_id: plugin_id.clone(),
|
||||
version: version.to_owned(),
|
||||
root,
|
||||
metrics_operations_by_path,
|
||||
}],
|
||||
})
|
||||
}
|
||||
|
||||
/// Adds already-trusted roots, preserving the existing root for each plugin and version.
|
||||
/// Distinct versions remain eligible for exact executor-version matching.
|
||||
|
||||
Reference in New Issue
Block a user