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
[package]
edition = "2024"
name = "messages"
publish = false
version = "0.1.0"
[features]
ai_tools = ["dep:ai_toolset", "dep:schemars", "ports"]
annotations = ["dep:model", "ports"]
broker = ["dep:macro_event_broker", "dep:macro_event_topics", "ports"]
default = []
delivery = [
"dep:properties",
"dep:models_properties",
"dep:connection_gateway_client",
"dep:model-entity",
"dep:model_notifications",
"dep:model_owner",
"dep:notification",
"dep:system_properties",
"outbound",
]
inbound = [
"dep:axum",
"dep:ip_extractor",
"dep:rate_limit",
"dep:macro_authorization",
"entity_access/inbound",
"ports",
"schema",
]
json-schema = ["dep:schemars"]
outbound = ["dep:initiative", "dep:macro_uuid", "dep:sqlx", "ports"]
ports = ["dep:async-trait", "dep:entity_access", "dep:futures", "dep:rootcause", "entity_access/ports"]
schema = ["channel_sender/schema", "dep:utoipa", "activity/schema"]
test-utils = ["dep:mockall", "ports"]
[dependencies]
activity = { path = "../activity", default-features = false }
ai_toolset = { path = "../ai_toolset", optional = true }
async-trait = { workspace = true, optional = true }
axum = { workspace = true, optional = true }
ip_extractor = { path = "../ip_extractor", optional = true }
rate_limit = { path = "../rate_limit", features = ["axum"], optional = true }
futures = { workspace = true, optional = true }
bot_id = { path = "../bot_id" }
channel_sender = { path = "../channel_sender" }
chrono = { workspace = true }
connection_gateway_client = { path = "../connection_gateway_client", optional = true }
entity_access = { path = "../entity_access", default-features = false, optional = true }
initiative = { path = "../initiative", default-features = false, features = ["ports"], optional = true }
macro_authorization = { path = "../macro_authorization", default-features = false, features = [
"axum",
], optional = true }
macro_event_broker = { path = "../macro_event_broker", default-features = false, optional = true }
macro_event_topics = { path = "../macro_event_topics", optional = true }
macro_user_id = { path = "../macro_user_id" }
macro_uuid = { path = "../macro_uuid", optional = true }
mockall = { workspace = true, optional = true }
model = { path = "../model", optional = true }
model-entity = { path = "../model-entity", optional = true }
model_notifications = { path = "../model_notifications", optional = true }
model_owner = { path = "../model_owner", optional = true }
models_pagination = { path = "../models_pagination" }
models_properties = { path = "../models_properties", optional = true }
properties = { path = "../properties", default-features = false, features = ["ports"], optional = true }
notification = { path = "../notification", optional = true }
rootcause = { workspace = true, optional = true }
schemars = { workspace = true, optional = true }
serde = { workspace = true }
serde_json = { workspace = true }
sqlx = { workspace = true, optional = true }
system_properties = { path = "../system_properties", optional = true }
thiserror = { workspace = true }
tracing = { workspace = true }
utoipa = { workspace = true, optional = true }
uuid = { workspace = true }
workspace-hack = { version = "0.1", path = "../workspace-hack" }
[dev-dependencies]
initiative = { path = "../initiative", default-features = false, features = ["postgres"] }
macro_db_migrator = { path = "../macro_db_migrator" }
models_permissions = { path = "../models_permissions" }
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }