File tree Expand file tree Collapse file tree
verticals/ai/agent_activity Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4444 default = False ,
4545 help = "Also backfill historical MCP tool calls parsed from agent transcripts." ,
4646)
47+ @click .option (
48+ "--activity" ,
49+ "scan_activity" ,
50+ is_flag = True ,
51+ default = False ,
52+ help = "[Experimental] Also backfill all agent activity events. Will later be merged with --history." ,
53+ )
4754@add_common_options ()
4855@click .pass_context
4956def discover_cmd (
5057 ctx : click .Context ,
5158 use_json : bool ,
5259 scan_history : bool ,
60+ scan_activity : bool ,
5361 ** kwargs : Any ,
5462) -> None :
5563 """
@@ -82,6 +90,7 @@ def discover_cmd(
8290 save_discovery_cache (config )
8391 if scan_history :
8492 backfill_report = backfill_mcp_history (client , config )
93+ if scan_activity :
8594 activity_report = collect_agent_activity (
8695 client , config .user , AGENTS .values ()
8796 )
Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ class AgentActivityBatchResult:
3535class AgentActivityReport :
3636 parsed : int = 0
3737 ingested : int = 0
38- duplicates : int = 0
3938 failed_batches : int = 0
4039 # Records the server could not scan and dropped (never stored).
4140 dropped : int = 0
You can’t perform that action at this time.
0 commit comments