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.

715 B
Raw Blame
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
		}
	}
}