mirror of
https://github.com/openai/codex.git
synced 2026-11-09 20:50:33 +00:00
[codex-analytics] add system and automation thread sources
This commit is contained in:
@@ -3798,6 +3798,8 @@
|
||||
"enum": [
|
||||
"user",
|
||||
"subagent",
|
||||
"system",
|
||||
"automation",
|
||||
"memory_consolidation"
|
||||
],
|
||||
"type": "string"
|
||||
|
||||
@@ -4578,6 +4578,8 @@
|
||||
"enum": [
|
||||
"user",
|
||||
"subagent",
|
||||
"system",
|
||||
"automation",
|
||||
"memory_consolidation"
|
||||
],
|
||||
"type": "string"
|
||||
|
||||
+2
@@ -18020,6 +18020,8 @@
|
||||
"enum": [
|
||||
"user",
|
||||
"subagent",
|
||||
"system",
|
||||
"automation",
|
||||
"memory_consolidation"
|
||||
],
|
||||
"type": "string"
|
||||
|
||||
+2
@@ -15837,6 +15837,8 @@
|
||||
"enum": [
|
||||
"user",
|
||||
"subagent",
|
||||
"system",
|
||||
"automation",
|
||||
"memory_consolidation"
|
||||
],
|
||||
"type": "string"
|
||||
|
||||
@@ -76,6 +76,8 @@
|
||||
"enum": [
|
||||
"user",
|
||||
"subagent",
|
||||
"system",
|
||||
"automation",
|
||||
"memory_consolidation"
|
||||
],
|
||||
"type": "string"
|
||||
|
||||
@@ -1793,6 +1793,8 @@
|
||||
"enum": [
|
||||
"user",
|
||||
"subagent",
|
||||
"system",
|
||||
"automation",
|
||||
"memory_consolidation"
|
||||
],
|
||||
"type": "string"
|
||||
|
||||
@@ -1608,6 +1608,8 @@
|
||||
"enum": [
|
||||
"user",
|
||||
"subagent",
|
||||
"system",
|
||||
"automation",
|
||||
"memory_consolidation"
|
||||
],
|
||||
"type": "string"
|
||||
|
||||
+2
@@ -1608,6 +1608,8 @@
|
||||
"enum": [
|
||||
"user",
|
||||
"subagent",
|
||||
"system",
|
||||
"automation",
|
||||
"memory_consolidation"
|
||||
],
|
||||
"type": "string"
|
||||
|
||||
@@ -1608,6 +1608,8 @@
|
||||
"enum": [
|
||||
"user",
|
||||
"subagent",
|
||||
"system",
|
||||
"automation",
|
||||
"memory_consolidation"
|
||||
],
|
||||
"type": "string"
|
||||
|
||||
@@ -1793,6 +1793,8 @@
|
||||
"enum": [
|
||||
"user",
|
||||
"subagent",
|
||||
"system",
|
||||
"automation",
|
||||
"memory_consolidation"
|
||||
],
|
||||
"type": "string"
|
||||
|
||||
@@ -1608,6 +1608,8 @@
|
||||
"enum": [
|
||||
"user",
|
||||
"subagent",
|
||||
"system",
|
||||
"automation",
|
||||
"memory_consolidation"
|
||||
],
|
||||
"type": "string"
|
||||
|
||||
@@ -110,6 +110,8 @@
|
||||
"enum": [
|
||||
"user",
|
||||
"subagent",
|
||||
"system",
|
||||
"automation",
|
||||
"memory_consolidation"
|
||||
],
|
||||
"type": "string"
|
||||
|
||||
@@ -1793,6 +1793,8 @@
|
||||
"enum": [
|
||||
"user",
|
||||
"subagent",
|
||||
"system",
|
||||
"automation",
|
||||
"memory_consolidation"
|
||||
],
|
||||
"type": "string"
|
||||
|
||||
@@ -1608,6 +1608,8 @@
|
||||
"enum": [
|
||||
"user",
|
||||
"subagent",
|
||||
"system",
|
||||
"automation",
|
||||
"memory_consolidation"
|
||||
],
|
||||
"type": "string"
|
||||
|
||||
@@ -1608,6 +1608,8 @@
|
||||
"enum": [
|
||||
"user",
|
||||
"subagent",
|
||||
"system",
|
||||
"automation",
|
||||
"memory_consolidation"
|
||||
],
|
||||
"type": "string"
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type ThreadSource = "user" | "subagent" | "memory_consolidation";
|
||||
export type ThreadSource = "user" | "subagent" | "system" | "automation" | "memory_consolidation";
|
||||
|
||||
@@ -67,6 +67,8 @@ impl From<SessionSource> for CoreSessionSource {
|
||||
pub enum ThreadSource {
|
||||
User,
|
||||
Subagent,
|
||||
System,
|
||||
Automation,
|
||||
MemoryConsolidation,
|
||||
}
|
||||
|
||||
@@ -75,6 +77,8 @@ impl From<CoreThreadSource> for ThreadSource {
|
||||
match value {
|
||||
CoreThreadSource::User => ThreadSource::User,
|
||||
CoreThreadSource::Subagent => ThreadSource::Subagent,
|
||||
CoreThreadSource::System => ThreadSource::System,
|
||||
CoreThreadSource::Automation => ThreadSource::Automation,
|
||||
CoreThreadSource::MemoryConsolidation => ThreadSource::MemoryConsolidation,
|
||||
}
|
||||
}
|
||||
@@ -85,6 +89,8 @@ impl From<ThreadSource> for CoreThreadSource {
|
||||
match value {
|
||||
ThreadSource::User => CoreThreadSource::User,
|
||||
ThreadSource::Subagent => CoreThreadSource::Subagent,
|
||||
ThreadSource::System => CoreThreadSource::System,
|
||||
ThreadSource::Automation => CoreThreadSource::Automation,
|
||||
ThreadSource::MemoryConsolidation => CoreThreadSource::MemoryConsolidation,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2501,6 +2501,8 @@ pub enum SessionSource {
|
||||
pub enum ThreadSource {
|
||||
User,
|
||||
Subagent,
|
||||
System,
|
||||
Automation,
|
||||
MemoryConsolidation,
|
||||
}
|
||||
|
||||
@@ -2509,6 +2511,8 @@ impl ThreadSource {
|
||||
match self {
|
||||
ThreadSource::User => "user",
|
||||
ThreadSource::Subagent => "subagent",
|
||||
ThreadSource::System => "system",
|
||||
ThreadSource::Automation => "automation",
|
||||
ThreadSource::MemoryConsolidation => "memory_consolidation",
|
||||
}
|
||||
}
|
||||
@@ -2527,6 +2531,8 @@ impl FromStr for ThreadSource {
|
||||
match value {
|
||||
"user" => Ok(ThreadSource::User),
|
||||
"subagent" => Ok(ThreadSource::Subagent),
|
||||
"system" => Ok(ThreadSource::System),
|
||||
"automation" => Ok(ThreadSource::Automation),
|
||||
"memory_consolidation" => Ok(ThreadSource::MemoryConsolidation),
|
||||
other => Err(format!("unknown thread source: {other}")),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user