Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

844 B
Raw Blame
use super::*;

#[test]
fn connection_prompt_matches_the_lexical_service_request() {
    let prompt = AgentConnectionPrompt {
        agent_tag: "@codex".into(),
        message: "Connect Codex, then mention me again.".into(),
        chip: AgentConnectionChip {
            app_slug: "codex-cloud".into(),
            name: "Codex".into(),
            target: "harness".into(),
        },
    };
    let wire = serde_json::to_value(AgentConnectionPromptRequest {
        connection_prompt: &prompt,
    })
    .unwrap();
    assert_eq!(
        wire,
        serde_json::json!({
            "connectionPrompt": {
                "agentTag": "@codex",
                "message": "Connect Codex, then mention me again.",
                "chip": { "appSlug": "codex-cloud", "name": "Codex", "target": "harness" }
            }
        })
    );
}