This repository has been archived on 2026-11-17. You can view files and clone it, but cannot push or open issues or pull requests.
caelum0x 49b183818c Unify gitgram + aitimemachine into the monorepo (de-submodule) and merge vendored engines
Convert gitgram/ and aitimemachine/ from embedded git repos (which showed as
opaque submodule gitlinks on GitHub) into fully-tracked first-party content.

AITM now merges its 7 vendored repos as first-party engines:
- memory: beads (Go task DAG) + context7 (docs SDK), unified into saved_contexts
- git: vendored C git (bundled binary) + gitnexus (in-process code intelligence)
- agentic: a2a (@a2a-js/sdk) + pal (AITM-managed Python subprocess)

Includes the full session's product build: Gitgram web/mobile/backend features,
AITM website/CLI/MCP, the unified memory layer, engine build tooling
(scripts/build-engines.sh, Dockerfile, CI), docs (README, ENGINES.md, ARCHITECTURE.md),
and extensive test suites.

Build artifacts, node_modules, external/, and gemini-cli are gitignored.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-23 14:14:09 +03:00

193 lines
4.0 KiB
TypeScript

import gql from 'graphql-tag';
export const MUTATION_ADD_MESSAGE = gql`
mutation AddChatMessage($chatId: String!, $authorId: String!, $body: String!) {
addChatMessage(
chatId: $chatId
authorId: $authorId
body: $body
) {
messages {
id
body
createdAt
author {
id
name
avatar
}
}
}
}
`;
export const MUTATION_UPDATE_FOLLOWING = gql`
mutation UpdateFollowing($userId: String!, $targetId: String!, $action: UpdateFollowingAction!) {
updateFollowing(
userId: $userId
targetId: $targetId
action: $action
)
}
`;
export const MUTATION_CREATE_TEMPORARY_CHAT = gql`
mutation CreateTemporaryChat {
createTemporaryChat {
id
}
}
`;
export const MUTATION_CONNECT_CHAT_TO_USERS = gql`
mutation ConnectChatToUsers($chatId: String!, $userId: String!, $targetId: String!) {
connectChatToUsers(
chatId: $chatId,
userId: $userId,
targetId: $targetId
) {
id
}
}
`;
export const MUTATION_UPDATE_USER = gql`
mutation UpdateUser($userId: String!, $avatar: String!, $name: String!, $handle: String!, $about: String!) {
updateUser(
userId: $userId,
avatar: $avatar,
name: $name,
handle: $handle,
about: $about
) {
id
avatar
handle
}
}
`;
export const MUTATION_CREATE_POST = gql`
mutation CreatePost($userId: String!, $uri: String!, $caption: String) {
createPost(userId: $userId, uri: $uri, caption: $caption) {
id
}
}
`;
export const MUTATION_UPDATE_FCM_TOKEN = gql`
mutation UpdateFcmToken($userId: String!, $fcmToken: String!) {
updateFcmToken(userId: $userId, fcmToken: $fcmToken) {
id
}
}
`;
export const MUTATION_CREATE_USER = gql`
mutation CreateUser($token: String!, $avatar: String, $name: String!, $email: String!) {
createUser(token: $token, avatar: $avatar, name: $name, email: $email) {
id
avatar
handle
}
}
`;
export const MUTATION_ADD_COMMENT = gql`
mutation AddComment($userId: String!, $postId: String!, $body: String!) {
addComment(userId: $userId, postId: $postId, body: $body) {
id
}
}
`;
export const MUTATION_LIKE_INTERACTION = gql`
mutation LikeInteraction($postId: String!, $userId: String!, $action: LikeAction!) {
likeInteraction(postId: $postId, userId: $userId, action: $action) {
id
}
}
`;
export const MUTATION_SEEN_MESSAGE = gql`
mutation MessageSeen($messageId: String!) {
messageSeen(messageId: $messageId) {
id
}
}
`;
export const MUTATION_LAST_SEEN = gql`
mutation LastSeen($userId: String!) {
updateLastSeen(userId: $userId) {
chats {
messages(last: 1) {
author {
id
}
seen
}
}
}
}
`;
export const MUTATION_DELETE_CHAT = gql`
mutation DeleteChat($chatId: String!) {
deleteChat(chatId: $chatId) {
id
}
}
`;
export const MUTATION_REPORT_POST = gql`
mutation ReportPost($postId: String!) {
reportPost(postId: $postId) {
id
}
}
`;
export const MUTATION_EDIT_POST = gql`
mutation EditPost($postId: String!, $caption: String!) {
editPost(postId: $postId, caption: $caption) {
id
}
}
`;
export const MUTATION_DELETE_POST = gql`
mutation DeletePost($postId: String!) {
deletePost(postId: $postId) {
id
}
}
`;
export const MUTATION_DELETE_COMMENT = gql`
mutation DeleteComment($postId: String!, $commentId: String!) {
deleteComment(postId: $postId, commentId: $commentId) {
id
}
}
`;
export const MUTATION_DELETE_NOTIFICATION = gql`
mutation DeleteNotification($notificationId: String!) {
deleteNotification(notificationId: $notificationId) {
id
}
}
`;
export const MUTATION_BLOCK_USER = gql`
mutation BlockUser($from: String!, $to: String!) {
blockUser(from: $from, to: $to)
}
`;
export const MUTATION_UNBLOCK_USER = gql`
mutation UnblockUser($from: String!, $to: String!) {
unblockUser(from: $from, to: $to)
}
`;