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
fragment RegisteredWorkEntryFields on GraphqlRegisteredWork {
id
accountId
registeredAt
session {
id
sessionName: name
turnState
pullRequestUrl
}
}
query RegisteredWork($accountIds: [ID!]!) {
user {
id
registeredWork(accountIds: $accountIds) {
...RegisteredWorkEntryFields
}
}
}
# Start this before fetching, and fetch again after an invalidation.
subscription RegisteredWorkUpdates($accountIds: [ID!]!) {
registeredWorkUpdates(accountIds: $accountIds) {
__typename
... on GraphqlRegisteredWorkUpsert {
entry {
...RegisteredWorkEntryFields
}
}
... on GraphqlRegisteredWorkRemove {
registrationId: id
}
... on GraphqlRegisteredWorkInvalidate {
refresh
}
}
}