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 = "forms"
publish = false
version = "0.1.0"
[features]
default = []
scheduling = ["dep:calendar_scheduling", "outbound"]
ai_tools = ["dep:ai_toolset", "dep:async-trait", "dep:anyhow", "ports"]
# Capability impls for the unified entity-mutation router (rename, trash,
# restore, permanent delete).
entity_mutation = ["dep:entity_mutation", "ports"]
# Axum HTTP router.
inbound = [
"dep:axum",
"dep:macro_authorization",
"dep:model-error-response",
"dep:utoipa",
"databases/ports",
"entity_access/inbound",
"ports",
]
# Liveness pings through the connection gateway.
gateway = ["dep:anyhow", "dep:connection_gateway_client", "dep:serde_json", "outbound"]
# Driven adapters share the port contracts.
outbound = ["dep:collab_surface", "dep:reqwest", "dep:base64", "dep:macro_tower_layers", "ports"]
ports = ["dep:schemars", "models_forms/schema", "models_databases/schema", "databases/ports", "dep:entity_access", "dep:tracing", "dep:loro", "dep:serde_json"]
# Branding images read through the static-file service.
static_files = ["dep:anyhow", "dep:static_file_service_client", "outbound"]
# Postgres persistence for forms, layouts and the submission ledger.
postgres = ["dep:entity_access_db_utils", "dep:serde_json", "dep:sqlx", "outbound"]
[dependencies]
base64 = { workspace = true, optional = true }
reqwest = { workspace = true, optional = true }
macro_tower_layers = { path = "../macro_tower_layers", optional = true }
calendar_scheduling = { path = "../calendar_scheduling", optional = true }
ai_toolset = { path = "../ai_toolset", optional = true }
async-trait = { workspace = true, optional = true }
nom = { workspace = true }
strum = { workspace = true }
schemars = { workspace = true, optional = true }
activity = { path = "../activity", default-features = false }
anyhow = { workspace = true, optional = true }
axum = { workspace = true, optional = true }
bot_id = { path = "../bot_id" }
chrono = { workspace = true, features = ["serde"] }
collab_surface = { path = "../collab_surface", optional = true, default-features = false, features = ["ports"] }
connection_gateway_client = { path = "../connection_gateway_client", optional = true }
databases = { path = "../databases" }
entity_access = { path = "../entity_access", optional = true, default-features = false, features = ["ports"] }
entity_access_db_utils = { path = "../entity_access_db_utils", optional = true }
entity_mutation = { path = "../entity_mutation", optional = true }
loro = { workspace = true, optional = true }
macro_authorization = { path = "../macro_authorization", optional = true, default-features = false, features = ["axum"] }
macro_event_broker = { path = "../macro_event_broker", default-features = false }
macro_event_topics = { path = "../macro_event_topics" }
macro_user_id = { path = "../macro_user_id" }
model-entity = { path = "../model-entity" }
model-error-response = { path = "../model-error-response", optional = true }
models_databases = { path = "../models_databases" }
models_forms = { path = "../models_forms" }
models_permissions = { path = "../models_permissions" }
rootcause = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true, optional = true }
sqlx = { workspace = true, optional = true }
static_file_service_client = { path = "../static_file_service_client", optional = true }
thiserror = { workspace = true }
tracing = { workspace = true, optional = true }
utoipa = { workspace = true, optional = true }
uuid = { workspace = true }
workspace-hack = { version = "0.1", path = "../workspace-hack" }
[dev-dependencies]
bot_id = { path = "../bot_id", features = ["test-utils"] }
entity_access = { path = "../entity_access", default-features = false, features = ["outbound"] }
macro_db_migrator = { path = "../macro_db_migrator" }
models_properties = { path = "../models_properties" }
serde_json = { workspace = true }
tokio = { workspace = true, features = ["macros", "rt-multi-thread", "sync"] }
tower = { workspace = true }
tracing-subscriber = { workspace = true }