Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
import { createSearchParams } from '@app/lib/split-router';
import { createMemo } from 'solid-js';
import { agentDetailSearch } from '../agent-route';
import type { AgentMessageTarget } from '../core/search-location';
export function createAgentRouteTarget() {
const [search] = createSearchParams(agentDetailSearch);
return createMemo<AgentMessageTarget | undefined>(() => {
search.seek;
if (search.messageTurn < 0) return;
return { messageTurn: search.messageTurn, author: search.author };
});
}