aKode fase 2c: eliminato il codice di invio dati (crate analytics, otel-trace-websocket, sentry, esportatori OTLP); /feedback salva solo in locale; chiavi legacy [analytics]/[otel] accettate e ignorate; test di analytics/OTLP/upload rimossi
Some checks failed
blocking-ci / rust-ci (push) Has been cancelled
blocking-ci / sdk (push) Has been cancelled
blocking-ci / CI required (push) Has been cancelled
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
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 / rust-ci (push) Has been cancelled
blocking-ci / sdk (push) Has been cancelled
blocking-ci / CI required (push) Has been cancelled
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
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:
@@ -2,7 +2,6 @@ use std::sync::Arc;
|
||||
|
||||
use crate::HostSkillsSnapshot;
|
||||
use crate::InjectedHostSkillPrompts;
|
||||
use codex_analytics::InvocationType;
|
||||
use codex_exec_server::LOCAL_ENVIRONMENT_ID;
|
||||
use codex_extension_api::ConfigContributor;
|
||||
use codex_extension_api::ContextContributor;
|
||||
@@ -29,6 +28,7 @@ use codex_extension_api::WorldStateContributionInput;
|
||||
use codex_extension_api::WorldStateSectionContribution;
|
||||
use codex_mcp::McpResourceClient;
|
||||
use codex_otel::MetricsClient;
|
||||
use codex_otel::SkillInvocationType as InvocationType;
|
||||
use codex_protocol::openai_models::ModelInfo;
|
||||
|
||||
use crate::SkillsExtensionConfig;
|
||||
@@ -64,7 +64,7 @@ use crate::state::SkillsSessionState;
|
||||
use crate::state::SkillsThreadState;
|
||||
use crate::step_state::SkillsStepState;
|
||||
use crate::telemetry::SkillTelemetry;
|
||||
use crate::tools::SkillAnalytics;
|
||||
use crate::tools::SkillInvocationRecorder;
|
||||
use crate::tools::SkillToolAuthority;
|
||||
use crate::tools::skill_tools;
|
||||
use crate::warnings::bounded_warnings;
|
||||
@@ -430,7 +430,7 @@ where
|
||||
}
|
||||
|
||||
let mut injected_host_skill_prompts = InjectedHostSkillPrompts::default();
|
||||
let analytics = SkillAnalytics::from_stores(session_store, thread_store);
|
||||
let invocations = SkillInvocationRecorder::from_stores(session_store, thread_store);
|
||||
for entry in &selected_entries {
|
||||
match self
|
||||
.read_main_prompt(
|
||||
@@ -476,10 +476,10 @@ where
|
||||
fragments.push(Box::new(fragment));
|
||||
if entry.authority.kind == SkillSourceKind::Host {
|
||||
injected_host_skill_prompts.insert_path(entry.main_prompt.as_str());
|
||||
} else if let Some(analytics) = analytics.as_ref()
|
||||
} else if let Some(invocations) = invocations.as_ref()
|
||||
&& let Some(model_info) = thread_store.get::<ModelInfo>()
|
||||
{
|
||||
analytics.track_skill_invocation(
|
||||
invocations.record_skill_invocation(
|
||||
entry,
|
||||
&entry.primary_source(),
|
||||
model_info.slug.clone(),
|
||||
|
||||
Reference in New Issue
Block a user