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:
@@ -202,14 +202,6 @@ class AllowDenyRequirement(Enum):
|
||||
deny = "deny"
|
||||
|
||||
|
||||
class AnalyticsConfig(BaseModel):
|
||||
model_config = ConfigDict(
|
||||
extra="allow",
|
||||
populate_by_name=True,
|
||||
)
|
||||
enabled: bool | None = None
|
||||
|
||||
|
||||
class AppBranding(BaseModel):
|
||||
model_config = ConfigDict(
|
||||
populate_by_name=True,
|
||||
@@ -1457,32 +1449,6 @@ class FeedbackRequirements(BaseModel):
|
||||
enabled: bool | None = None
|
||||
|
||||
|
||||
class FeedbackUploadParams(BaseModel):
|
||||
model_config = ConfigDict(
|
||||
populate_by_name=True,
|
||||
)
|
||||
classification: str
|
||||
extra_log_files: Annotated[list[str] | None, Field(alias="extraLogFiles")] = None
|
||||
include_logs: Annotated[bool | None, Field(alias="includeLogs")] = None
|
||||
reason: str | None = None
|
||||
tags: dict[str, Any] | None = None
|
||||
thread_id: Annotated[str | None, Field(alias="threadId")] = None
|
||||
|
||||
|
||||
class FeedbackUploadResponse(BaseModel):
|
||||
model_config = ConfigDict(
|
||||
populate_by_name=True,
|
||||
)
|
||||
prompt_hash: Annotated[
|
||||
str | None,
|
||||
Field(
|
||||
alias="promptHash",
|
||||
description="Whitespace-normalized SHA-256 of the session base instructions, matching the uploaded `prompt_hash` tag. Does not include later developer messages. Null when the reported rollout has no prompt metadata.",
|
||||
),
|
||||
] = None
|
||||
thread_id: Annotated[str, Field(alias="threadId")]
|
||||
|
||||
|
||||
class FileChangeOutputDeltaNotification(BaseModel):
|
||||
model_config = ConfigDict(
|
||||
populate_by_name=True,
|
||||
@@ -3172,25 +3138,6 @@ class NullableGetAccountTokenUsageParams(RootModel[GetAccountTokenUsageParams |
|
||||
]
|
||||
|
||||
|
||||
class OtelExporterValue(Enum):
|
||||
none = "none"
|
||||
statsig = "statsig"
|
||||
|
||||
|
||||
class OtelHttpProtocol(Enum):
|
||||
binary = "binary"
|
||||
json = "json"
|
||||
|
||||
|
||||
class OtelTlsConfig(BaseModel):
|
||||
model_config = ConfigDict(
|
||||
populate_by_name=True,
|
||||
)
|
||||
ca_certificate: Annotated[str | None, Field(alias="ca-certificate")] = None
|
||||
client_certificate: Annotated[str | None, Field(alias="client-certificate")] = None
|
||||
client_private_key: Annotated[str | None, Field(alias="client-private-key")] = None
|
||||
|
||||
|
||||
class OtelToolResultLogConfig(BaseModel):
|
||||
model_config = ConfigDict(
|
||||
populate_by_name=True,
|
||||
@@ -8255,15 +8202,6 @@ class AccountSendAddCreditsNudgeEmailRequest(BaseModel):
|
||||
params: SendAddCreditsNudgeEmailParams
|
||||
|
||||
|
||||
class FeedbackUploadRequest(BaseModel):
|
||||
model_config = ConfigDict(
|
||||
populate_by_name=True,
|
||||
)
|
||||
id: RequestId
|
||||
method: Annotated[Literal["feedback/upload"], Field(title="Feedback/uploadRequestMethod")]
|
||||
params: FeedbackUploadParams
|
||||
|
||||
|
||||
class CommandExecWriteRequest(BaseModel):
|
||||
model_config = ConfigDict(
|
||||
populate_by_name=True,
|
||||
@@ -8829,7 +8767,7 @@ class FeedbackSaveResponse(BaseModel):
|
||||
str | None,
|
||||
Field(
|
||||
alias="promptHash",
|
||||
description="Same prompt hash as feedback/upload; null when prompt metadata is absent.",
|
||||
description="Whitespace-normalized SHA-256 of the session base instructions, matching the saved `prompt_hash` tag. Does not include later developer messages. Null when the reported rollout has no prompt metadata.",
|
||||
),
|
||||
] = None
|
||||
saved_path: Annotated[LegacyAppPathString, Field(alias="savedPath")]
|
||||
@@ -9568,66 +9506,13 @@ class NewThreadModelDefaults(BaseModel):
|
||||
service_tier: Annotated[str | None, Field(alias="serviceTier")] = None
|
||||
|
||||
|
||||
class OtlpHttp(BaseModel):
|
||||
model_config = ConfigDict(
|
||||
populate_by_name=True,
|
||||
)
|
||||
endpoint: str
|
||||
headers: Annotated[
|
||||
dict[str, str],
|
||||
Field(description="Header names are retained; values are redacted by the server."),
|
||||
]
|
||||
protocol: OtelHttpProtocol
|
||||
tls: OtelTlsConfig | None = None
|
||||
|
||||
|
||||
class OtlpHttpOtelExporter(BaseModel):
|
||||
model_config = ConfigDict(
|
||||
extra="forbid",
|
||||
populate_by_name=True,
|
||||
)
|
||||
otlp_http: Annotated[OtlpHttp, Field(alias="otlp-http")]
|
||||
|
||||
|
||||
class OtlpGrpc(BaseModel):
|
||||
model_config = ConfigDict(
|
||||
populate_by_name=True,
|
||||
)
|
||||
endpoint: str
|
||||
headers: Annotated[
|
||||
dict[str, str],
|
||||
Field(description="Header names are retained; values are redacted by the server."),
|
||||
]
|
||||
tls: OtelTlsConfig | None = None
|
||||
|
||||
|
||||
class OtlpGrpcOtelExporter(BaseModel):
|
||||
model_config = ConfigDict(
|
||||
extra="forbid",
|
||||
populate_by_name=True,
|
||||
)
|
||||
otlp_grpc: Annotated[OtlpGrpc, Field(alias="otlp-grpc")]
|
||||
|
||||
|
||||
class OtelExporter(RootModel[OtelExporterValue | OtlpHttpOtelExporter | OtlpGrpcOtelExporter]):
|
||||
root: OtelExporterValue | OtlpHttpOtelExporter | OtlpGrpcOtelExporter
|
||||
|
||||
|
||||
class OtelRequirements(BaseModel):
|
||||
model_config = ConfigDict(
|
||||
populate_by_name=True,
|
||||
)
|
||||
environment: str | None = None
|
||||
exporter: OtelExporter | None = None
|
||||
log_agent_responses: bool | None = None
|
||||
log_guardian_assessments: bool | None = None
|
||||
log_sse_deltas: bool | None = None
|
||||
log_user_prompt: bool | None = None
|
||||
metrics_exporter: OtelExporter | None = None
|
||||
span_attributes: dict[str, Any] | None = None
|
||||
tool_result: OtelToolResultLogConfig | None = None
|
||||
trace_exporter: OtelExporter | None = None
|
||||
tracestate: dict[str, Any] | None = None
|
||||
|
||||
|
||||
class OverriddenMetadata(BaseModel):
|
||||
@@ -10675,7 +10560,7 @@ class ThreadForkParams(BaseModel):
|
||||
ThreadSource | None,
|
||||
Field(
|
||||
alias="threadSource",
|
||||
description="Optional client-supplied analytics source classification for this forked thread.",
|
||||
description="Optional client-supplied source classification for this forked thread.",
|
||||
),
|
||||
] = None
|
||||
|
||||
@@ -11286,7 +11171,7 @@ class ThreadStartParams(BaseModel):
|
||||
ThreadSource | None,
|
||||
Field(
|
||||
alias="threadSource",
|
||||
description="Optional client-supplied analytics source classification for this thread.",
|
||||
description="Optional client-supplied source classification for this thread.",
|
||||
),
|
||||
] = None
|
||||
|
||||
@@ -11719,7 +11604,6 @@ class Config(BaseModel):
|
||||
extra="allow",
|
||||
populate_by_name=True,
|
||||
)
|
||||
analytics: AnalyticsConfig | None = None
|
||||
approval_policy: AskForApproval | None = None
|
||||
approvals_reviewer: Annotated[
|
||||
ApprovalsReviewer | None,
|
||||
@@ -12912,7 +12796,7 @@ class ExternalAgentConfigImportParams(BaseModel):
|
||||
str | None,
|
||||
Field(
|
||||
alias="providerId",
|
||||
description="Opaque provider identifier supplied by the caller for analytics attribution and import history display. This does not select the migration source.",
|
||||
description="Opaque provider identifier supplied by the caller for attribution and import history display. This does not select the migration source.",
|
||||
),
|
||||
] = None
|
||||
source: Annotated[
|
||||
@@ -13259,10 +13143,7 @@ class Thread(BaseModel):
|
||||
status: Annotated[ThreadStatus, Field(description="Current runtime status for the thread.")]
|
||||
thread_source: Annotated[
|
||||
ThreadSource | None,
|
||||
Field(
|
||||
alias="threadSource",
|
||||
description="Optional analytics source classification for this thread.",
|
||||
),
|
||||
Field(alias="threadSource", description="Optional source classification for this thread."),
|
||||
] = None
|
||||
turns: Annotated[
|
||||
list[Turn],
|
||||
@@ -13756,7 +13637,6 @@ class ClientRequest(
|
||||
| AccountUsageReadRequest
|
||||
| AccountWorkspaceMessagesReadRequest
|
||||
| AccountSendAddCreditsNudgeEmailRequest
|
||||
| FeedbackUploadRequest
|
||||
| FeedbackSaveRequest
|
||||
| CommandExecRequest
|
||||
| CommandExecWriteRequest
|
||||
@@ -13868,7 +13748,6 @@ class ClientRequest(
|
||||
| AccountUsageReadRequest
|
||||
| AccountWorkspaceMessagesReadRequest
|
||||
| AccountSendAddCreditsNudgeEmailRequest
|
||||
| FeedbackUploadRequest
|
||||
| FeedbackSaveRequest
|
||||
| CommandExecRequest
|
||||
| CommandExecWriteRequest
|
||||
|
||||
Reference in New Issue
Block a user