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
add back lambdas (#1639)
Will Hutchinson9fd4bd6c73cc
diff --git a/rust/cloud-storage/Cargo.lock b/rust/cloud-storage/Cargo.lockindex ef492432c5..9eab4f7eed 100644--- a/rust/cloud-storage/Cargo.lock+++ b/rust/cloud-storage/Cargo.lock@@ -3219,6 +3219,7 @@ dependencies = ["macro_env","model","models_email",+ "openssl","sqlx","sqs_client","tokio",@@ -3240,6 +3241,7 @@ dependencies = ["macro_entrypoint","macro_env","models_email",+ "openssl","sqlx","sqs_client","tokio",@@ -3354,6 +3356,7 @@ dependencies = ["macro_aws_config","macro_entrypoint","macro_env",+ "openssl","sqlx","sqs_client","tokio",diff --git a/rust/cloud-storage/email_refresh_handler/Cargo.toml b/rust/cloud-storage/email_refresh_handler/Cargo.tomlindex 471ef32b80..115ccb4478 100644--- a/rust/cloud-storage/email_refresh_handler/Cargo.toml+++ b/rust/cloud-storage/email_refresh_handler/Cargo.toml@@ -20,9 +20,10 @@ sqs_client = { path = "../sqs_client" }tokio = { workspace = true }tracing = { workspace = true }uuid = { workspace = true }+openssl = { workspace = true }[package.metadata.cargo-machete]ignored = ["openssl"][dev-dependencies]-macro_db_migrator = { path = "../macro_db_migrator" }\ No newline at end of file+macro_db_migrator = { path = "../macro_db_migrator" }diff --git a/rust/cloud-storage/email_scheduled_handler/Cargo.toml b/rust/cloud-storage/email_scheduled_handler/Cargo.tomlindex 326c9aece7..a6ac197d49 100644--- a/rust/cloud-storage/email_scheduled_handler/Cargo.toml+++ b/rust/cloud-storage/email_scheduled_handler/Cargo.toml@@ -18,9 +18,10 @@ sqlx = { workspace = true }sqs_client = { path = "../sqs_client" }tokio = { workspace = true }tracing = { workspace = true }+openssl = { workspace = true }[package.metadata.cargo-machete]ignored = ["openssl"][dev-dependencies]-macro_db_migrator = { path = "../macro_db_migrator" }\ No newline at end of file+macro_db_migrator = { path = "../macro_db_migrator" }diff --git a/rust/cloud-storage/email_sfs_delete_handler/Cargo.toml b/rust/cloud-storage/email_sfs_delete_handler/Cargo.tomlindex 1aeff495de..b99a70aa33 100644--- a/rust/cloud-storage/email_sfs_delete_handler/Cargo.toml+++ b/rust/cloud-storage/email_sfs_delete_handler/Cargo.toml@@ -13,9 +13,10 @@ lambda_runtime = { workspace = true }macro_entrypoint = { path = "../macro_entrypoint" }macro_env = { path = "../macro_env" }sqlx = { workspace = true }-sqs_client = { path = "../sqs_client", default-features = false, features = ["sfs_delete"] }+sqs_client = { path = "../sqs_client", default-features = false, features = ["email", "sfs_delete"] }tokio = { workspace = true }tracing = { workspace = true }+openssl = { workspace = true }[package.metadata.cargo-machete]ignored = ["openssl"]diff --git a/rust/cloud-storage/justfile b/rust/cloud-storage/justfileindex 99b64a6af2..ac6d1763ae 100644--- a/rust/cloud-storage/justfile+++ b/rust/cloud-storage/justfile@@ -31,23 +31,22 @@ build_dev_service_images:# Build all lambda functionsbuild_lambdas:- #!/usr/bin/env -S parallel --shebang --ungroup --jobs {{ num_cpus() }}- just docx_unzip_handler/build- just delete_chat_handler/build- just organization_retention_handler/build- just organization_retention_trigger/build- just upload_extractor_lambda_trigger/build- just upload_extractor_lambda_handler/build- just worker_trigger/build- just dataloss_prevention_handler/build- just search_upload_handler/build- just document_text_extractor/build- just email_suppression_handler/build- just deleted_item_poller/build- just email_refresh_handler/build- just user_link_cleanup_handler/build- just email_scheduled_handler/build- just email_sfs_delete_handler/build+ ulimit -n 10240 && just docx_unzip_handler/build+ ulimit -n 10240 && just delete_chat_handler/build+ ulimit -n 10240 && just organization_retention_handler/build+ ulimit -n 10240 && just organization_retention_trigger/build+ ulimit -n 10240 && just upload_extractor_lambda_trigger/build+ ulimit -n 10240 && just upload_extractor_lambda_handler/build+ ulimit -n 10240 && just worker_trigger/build+ ulimit -n 10240 && just dataloss_prevention_handler/build+ ulimit -n 10240 && just search_upload_handler/build+ ulimit -n 10240 && just document_text_extractor/build+ ulimit -n 10240 && just email_suppression_handler/build+ ulimit -n 10240 && just deleted_item_poller/build+ ulimit -n 10240 && just email_refresh_handler/build+ ulimit -n 10240 && just user_link_cleanup_handler/build+ ulimit -n 10240 && just email_scheduled_handler/build+ ulimit -n 10240 && just email_sfs_delete_handler/build# TESTINGdiff --git a/rust/cloud-storage/sqs_client/Cargo.toml b/rust/cloud-storage/sqs_client/Cargo.tomlindex f7c44a8dce..0b20161f2a 100644--- a/rust/cloud-storage/sqs_client/Cargo.toml+++ b/rust/cloud-storage/sqs_client/Cargo.toml@@ -24,7 +24,7 @@ default = []document = []document_text_extractor = []-email = ["models_email"]+email = ["uuid", "models_email"]gmail = ["model", "uuid"]organization_retention = []search = ["chrono", "model", "models_opensearch", "uuid", "futures"]diff --git a/rust/cloud-storage/target/lambda/dataloss_prevention_handler/bootstrap.zip b/rust/cloud-storage/target/lambda/dataloss_prevention_handler/bootstrap.zipnew file mode 100644index 0000000000..56f82720eaBinary files /dev/null and b/rust/cloud-storage/target/lambda/dataloss_prevention_handler/bootstrap.zip differdiff --git a/rust/cloud-storage/target/lambda/delete_chat_handler/bootstrap.zip b/rust/cloud-storage/target/lambda/delete_chat_handler/bootstrap.zipnew file mode 100644index 0000000000..63e32dee54Binary files /dev/null and b/rust/cloud-storage/target/lambda/delete_chat_handler/bootstrap.zip differdiff --git a/rust/cloud-storage/target/lambda/deleted_item_poller/bootstrap.zip b/rust/cloud-storage/target/lambda/deleted_item_poller/bootstrap.zipnew file mode 100644index 0000000000..eee99b78e9Binary files /dev/null and b/rust/cloud-storage/target/lambda/deleted_item_poller/bootstrap.zip differdiff --git a/rust/cloud-storage/target/lambda/document_text_extractor/bootstrap.zip b/rust/cloud-storage/target/lambda/document_text_extractor/bootstrap.zipnew file mode 100644index 0000000000..5d9b4865e3Binary files /dev/null and b/rust/cloud-storage/target/lambda/document_text_extractor/bootstrap.zip differdiff --git a/rust/cloud-storage/target/lambda/docx_unzip_handler/bootstrap.zip b/rust/cloud-storage/target/lambda/docx_unzip_handler/bootstrap.zipnew file mode 100644index 0000000000..c690faa013Binary files /dev/null and b/rust/cloud-storage/target/lambda/docx_unzip_handler/bootstrap.zip differdiff --git a/rust/cloud-storage/target/lambda/email_refresh_handler/bootstrap.zip b/rust/cloud-storage/target/lambda/email_refresh_handler/bootstrap.zipnew file mode 100644index 0000000000..07bab21e51Binary files /dev/null and b/rust/cloud-storage/target/lambda/email_refresh_handler/bootstrap.zip differdiff --git a/rust/cloud-storage/target/lambda/email_scheduled_handler/bootstrap.zip b/rust/cloud-storage/target/lambda/email_scheduled_handler/bootstrap.zipnew file mode 100644index 0000000000..0c679354cdBinary files /dev/null and b/rust/cloud-storage/target/lambda/email_scheduled_handler/bootstrap.zip differdiff --git a/rust/cloud-storage/target/lambda/email_sfs_delete_handler/bootstrap.zip b/rust/cloud-storage/target/lambda/email_sfs_delete_handler/bootstrap.zipnew file mode 100644index 0000000000..443d3ec0f1Binary files /dev/null and b/rust/cloud-storage/target/lambda/email_sfs_delete_handler/bootstrap.zip differdiff --git a/rust/cloud-storage/target/lambda/email_suppression_handler/bootstrap.zip b/rust/cloud-storage/target/lambda/email_suppression_handler/bootstrap.zipnew file mode 100644index 0000000000..148b5bd6b4Binary files /dev/null and b/rust/cloud-storage/target/lambda/email_suppression_handler/bootstrap.zip differdiff --git a/rust/cloud-storage/target/lambda/organization_retention_handler/bootstrap.zip b/rust/cloud-storage/target/lambda/organization_retention_handler/bootstrap.zipnew file mode 100644index 0000000000..95b82ddb40Binary files /dev/null and b/rust/cloud-storage/target/lambda/organization_retention_handler/bootstrap.zip differdiff --git a/rust/cloud-storage/target/lambda/organization_retention_trigger/bootstrap.zip b/rust/cloud-storage/target/lambda/organization_retention_trigger/bootstrap.zipnew file mode 100644index 0000000000..ea0a2089a2Binary files /dev/null and b/rust/cloud-storage/target/lambda/organization_retention_trigger/bootstrap.zip differdiff --git a/rust/cloud-storage/target/lambda/search_upload_handler/bootstrap.zip b/rust/cloud-storage/target/lambda/search_upload_handler/bootstrap.zipnew file mode 100644index 0000000000..68da004aa5Binary files /dev/null and b/rust/cloud-storage/target/lambda/search_upload_handler/bootstrap.zip differdiff --git a/rust/cloud-storage/target/lambda/upload_extractor_lambda_handler/bootstrap.zip b/rust/cloud-storage/target/lambda/upload_extractor_lambda_handler/bootstrap.zipnew file mode 100644index 0000000000..928ec27c37Binary files /dev/null and b/rust/cloud-storage/target/lambda/upload_extractor_lambda_handler/bootstrap.zip differdiff --git a/rust/cloud-storage/target/lambda/upload_extractor_lambda_trigger/bootstrap.zip b/rust/cloud-storage/target/lambda/upload_extractor_lambda_trigger/bootstrap.zipnew file mode 100644index 0000000000..8aba093b80Binary files /dev/null and b/rust/cloud-storage/target/lambda/upload_extractor_lambda_trigger/bootstrap.zip differdiff --git a/rust/cloud-storage/target/lambda/user_link_cleanup_handler/bootstrap.zip b/rust/cloud-storage/target/lambda/user_link_cleanup_handler/bootstrap.zipnew file mode 100644index 0000000000..71419bd7e1Binary files /dev/null and b/rust/cloud-storage/target/lambda/user_link_cleanup_handler/bootstrap.zip differdiff --git a/rust/cloud-storage/target/lambda/worker_trigger/bootstrap.zip b/rust/cloud-storage/target/lambda/worker_trigger/bootstrap.zipnew file mode 100644index 0000000000..7b78cb39d6Binary files /dev/null and b/rust/cloud-storage/target/lambda/worker_trigger/bootstrap.zip differ