diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-10 19:23:13 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-10 19:23:13 +0300 |
| commit | 82468a0e03360219898ebf3735bdf559182009f8 (patch) | |
| tree | 0ee5213fe041a539f23e846f9148493528249512 /src/app/api | |
| parent | 36a1b7f86444871f0c38ff36510a6e3c2eec48c6 (diff) | |
feat: add manifest-based detection engine
Diffstat (limited to 'src/app/api')
| -rw-r--r-- | src/app/api/agents.rs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/app/api/agents.rs b/src/app/api/agents.rs index f89be0ce..471b3052 100644 --- a/src/app/api/agents.rs +++ b/src/app/api/agents.rs @@ -159,7 +159,17 @@ impl App { ); }; - let explain = crate::detect::manifest::explain(agent, &pane.detection_text()); + let screen = pane.detection_text(); + let osc_title = pane.agent_osc_title(); + let osc_progress = pane.agent_osc_progress(); + let explain = crate::detect::manifest::explain_with_input( + agent, + crate::detect::manifest::DetectionInput { + screen: &screen, + osc_title: &osc_title, + osc_progress: &osc_progress, + }, + ); let value = crate::detect::manifest::explain_to_json_value(&explain); encode_success(id, ResponseResult::AgentExplain { explain: value }) |
