release: v1.3.0 - TKG node type renaming
Changes: - Rust: face_trace → face_track (45 occurrences in 8 files) - Rust: gaze_trace → gaze_track, lip_trace → lip_track - Python: tkg_builder.py unified + pipeline_checklist.py fixed - Swift: swift_hand.swift hand state detection (empty vs holding) Node type changes: face_trace → face_track person_trace → body_track gaze_trace → gaze_track lip_trace → lip_track hand_trace → hand_track speaker → speaker_segment object → detected_object text_trace → text_region Migration: PUBLIC schema: 12970 + 892 + 305 rows updated
This commit is contained in:
+6
-8
@@ -7,8 +7,8 @@ pub async fn handle_agent(tool: &str, args_str: &str) -> Result<()> {
|
||||
let db = PostgresDb::init()
|
||||
.await
|
||||
.context("Failed to initialize database")?;
|
||||
let args: serde_json::Value = serde_json::from_str(args_str)
|
||||
.context("Failed to parse JSON arguments")?;
|
||||
let args: serde_json::Value =
|
||||
serde_json::from_str(args_str).context("Failed to parse JSON arguments")?;
|
||||
|
||||
let pool = db.pool();
|
||||
let result = match tool {
|
||||
@@ -35,12 +35,10 @@ pub async fn handle_agent(tool: &str, args_str: &str) -> Result<()> {
|
||||
};
|
||||
|
||||
match result {
|
||||
Ok(json_str) => {
|
||||
match serde_json::from_str::<serde_json::Value>(&json_str) {
|
||||
Ok(value) => println!("{}", serde_json::to_string_pretty(&value)?),
|
||||
Err(_) => println!("{}", json_str),
|
||||
}
|
||||
}
|
||||
Ok(json_str) => match serde_json::from_str::<serde_json::Value>(&json_str) {
|
||||
Ok(value) => println!("{}", serde_json::to_string_pretty(&value)?),
|
||||
Err(_) => println!("{}", json_str),
|
||||
},
|
||||
Err(e) => {
|
||||
eprintln!("Error: {}", e);
|
||||
std::process::exit(1);
|
||||
|
||||
Reference in New Issue
Block a user