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 type { AgentConversation } from '@service-agent-harness/agent-conversations';
import { type Accessor, createContext, useContext } from 'solid-js';
/**
* The durable state of the agent conversations in a channel: each agent's
* sessions and the attempt behind each message it answers. The agents'
* replies are ordinary channel messages, and what an agent is doing right now
* arrives as its typing.
*/
export type AgentConversationsContextValue = {
conversations: Accessor<AgentConversation[] | undefined>;
refresh: () => void;
};
export const AgentConversationsContext =
createContext<AgentConversationsContextValue>();
export const useOptionalAgentConversations = () =>
useContext(AgentConversationsContext);