mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
feat: chronicle alias (#18651)
Rename Telepathy to Chronicle and add an alias for backward compatibility
This commit is contained in:
committed by
GitHub
Unverified
parent
fc758af9eb
commit
1c24347772
@@ -344,6 +344,9 @@
|
||||
"child_agents_md": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"chronicle": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"code_mode": {
|
||||
"type": "boolean"
|
||||
},
|
||||
@@ -2319,6 +2322,9 @@
|
||||
"child_agents_md": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"chronicle": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"code_mode": {
|
||||
"type": "boolean"
|
||||
},
|
||||
|
||||
@@ -45,6 +45,10 @@ const ALIASES: &[Alias] = &[
|
||||
legacy_key: "memory_tool",
|
||||
feature: Feature::MemoryTool,
|
||||
},
|
||||
Alias {
|
||||
legacy_key: "telepathy",
|
||||
feature: Feature::Chronicle,
|
||||
},
|
||||
];
|
||||
|
||||
pub fn legacy_feature_keys() -> impl Iterator<Item = &'static str> {
|
||||
|
||||
@@ -132,8 +132,8 @@ pub enum Feature {
|
||||
Sqlite,
|
||||
/// Enable startup memory extraction and file-backed memory consolidation.
|
||||
MemoryTool,
|
||||
/// Enable the Telepathy sidecar for passive screen-context memories.
|
||||
Telepathy,
|
||||
/// Enable the Chronicle sidecar for passive screen-context memories.
|
||||
Chronicle,
|
||||
/// Append additional AGENTS.md guidance to user instructions.
|
||||
ChildAgentsMd,
|
||||
/// Compress request bodies (zstd) when sending streaming requests to codex-backend.
|
||||
@@ -711,8 +711,8 @@ pub const FEATURES: &[FeatureSpec] = &[
|
||||
default_enabled: false,
|
||||
},
|
||||
FeatureSpec {
|
||||
id: Feature::Telepathy,
|
||||
key: "telepathy",
|
||||
id: Feature::Chronicle,
|
||||
key: "chronicle",
|
||||
stage: Stage::UnderDevelopment,
|
||||
default_enabled: false,
|
||||
},
|
||||
|
||||
@@ -241,6 +241,14 @@ fn workspace_dependencies_is_stable_and_enabled_by_default() {
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn telepathy_is_legacy_alias_for_chronicle() {
|
||||
assert_eq!(Feature::Chronicle.stage(), Stage::UnderDevelopment);
|
||||
assert_eq!(Feature::Chronicle.default_enabled(), false);
|
||||
assert_eq!(feature_for_key("chronicle"), Some(Feature::Chronicle));
|
||||
assert_eq!(feature_for_key("telepathy"), Some(Feature::Chronicle));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn collab_is_legacy_alias_for_multi_agent() {
|
||||
assert_eq!(feature_for_key("multi_agent"), Some(Feature::Collab));
|
||||
|
||||
Reference in New Issue
Block a user