Skip to main content

tracevault_cli/hooks/
amp.rs

1use std::path::Path;
2use tracevault_protocol::streaming::StreamEventRequest;
3
4use super::HookAdapter;
5
6/// Detection-only stub for the (currently dormant) `HookAdapter` trait, like
7/// `OpenCodeAdapter`: Amp capture runs through the bundled plugin
8/// (`assets/amp-plugin/index.ts`) and `commands::stream::stamp_agent`.
9pub struct AmpAdapter;
10
11impl HookAdapter for AmpAdapter {
12    fn tool_name(&self) -> &str {
13        "amp"
14    }
15
16    fn parse_event(&self, _raw: &str) -> Result<StreamEventRequest, String> {
17        Err("Amp capture uses the bundled plugin + stamp_agent".to_string())
18    }
19
20    fn parse_transcript(&self, _path: &Path) -> Result<Vec<serde_json::Value>, String> {
21        Err("Amp capture uses the bundled plugin + stamp_agent".to_string())
22    }
23}