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.

add back lambdas (#1639)

Will Hutchinson9fd4bd6c73cc
diff --git a/rust/cloud-storage/Cargo.lock b/rust/cloud-storage/Cargo.lock
index 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.toml
index 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.toml
index 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.toml
index 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/justfile
index 99b64a6af2..ac6d1763ae 100644
--- a/rust/cloud-storage/justfile
+++ b/rust/cloud-storage/justfile
@@ -31,23 +31,22 @@ build_dev_service_images:
# Build all lambda functions
build_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
# TESTING
diff --git a/rust/cloud-storage/sqs_client/Cargo.toml b/rust/cloud-storage/sqs_client/Cargo.toml
index 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.zip
new file mode 100644
index 0000000000..56f82720ea
Binary files /dev/null and b/rust/cloud-storage/target/lambda/dataloss_prevention_handler/bootstrap.zip differ
diff --git a/rust/cloud-storage/target/lambda/delete_chat_handler/bootstrap.zip b/rust/cloud-storage/target/lambda/delete_chat_handler/bootstrap.zip
new file mode 100644
index 0000000000..63e32dee54
Binary files /dev/null and b/rust/cloud-storage/target/lambda/delete_chat_handler/bootstrap.zip differ
diff --git a/rust/cloud-storage/target/lambda/deleted_item_poller/bootstrap.zip b/rust/cloud-storage/target/lambda/deleted_item_poller/bootstrap.zip
new file mode 100644
index 0000000000..eee99b78e9
Binary files /dev/null and b/rust/cloud-storage/target/lambda/deleted_item_poller/bootstrap.zip differ
diff --git a/rust/cloud-storage/target/lambda/document_text_extractor/bootstrap.zip b/rust/cloud-storage/target/lambda/document_text_extractor/bootstrap.zip
new file mode 100644
index 0000000000..5d9b4865e3
Binary files /dev/null and b/rust/cloud-storage/target/lambda/document_text_extractor/bootstrap.zip differ
diff --git a/rust/cloud-storage/target/lambda/docx_unzip_handler/bootstrap.zip b/rust/cloud-storage/target/lambda/docx_unzip_handler/bootstrap.zip
new file mode 100644
index 0000000000..c690faa013
Binary files /dev/null and b/rust/cloud-storage/target/lambda/docx_unzip_handler/bootstrap.zip differ
diff --git a/rust/cloud-storage/target/lambda/email_refresh_handler/bootstrap.zip b/rust/cloud-storage/target/lambda/email_refresh_handler/bootstrap.zip
new file mode 100644
index 0000000000..07bab21e51
Binary files /dev/null and b/rust/cloud-storage/target/lambda/email_refresh_handler/bootstrap.zip differ
diff --git a/rust/cloud-storage/target/lambda/email_scheduled_handler/bootstrap.zip b/rust/cloud-storage/target/lambda/email_scheduled_handler/bootstrap.zip
new file mode 100644
index 0000000000..0c679354cd
Binary files /dev/null and b/rust/cloud-storage/target/lambda/email_scheduled_handler/bootstrap.zip differ
diff --git a/rust/cloud-storage/target/lambda/email_sfs_delete_handler/bootstrap.zip b/rust/cloud-storage/target/lambda/email_sfs_delete_handler/bootstrap.zip
new file mode 100644
index 0000000000..443d3ec0f1
Binary files /dev/null and b/rust/cloud-storage/target/lambda/email_sfs_delete_handler/bootstrap.zip differ
diff --git a/rust/cloud-storage/target/lambda/email_suppression_handler/bootstrap.zip b/rust/cloud-storage/target/lambda/email_suppression_handler/bootstrap.zip
new file mode 100644
index 0000000000..148b5bd6b4
Binary files /dev/null and b/rust/cloud-storage/target/lambda/email_suppression_handler/bootstrap.zip differ
diff --git a/rust/cloud-storage/target/lambda/organization_retention_handler/bootstrap.zip b/rust/cloud-storage/target/lambda/organization_retention_handler/bootstrap.zip
new file mode 100644
index 0000000000..95b82ddb40
Binary files /dev/null and b/rust/cloud-storage/target/lambda/organization_retention_handler/bootstrap.zip differ
diff --git a/rust/cloud-storage/target/lambda/organization_retention_trigger/bootstrap.zip b/rust/cloud-storage/target/lambda/organization_retention_trigger/bootstrap.zip
new file mode 100644
index 0000000000..ea0a2089a2
Binary files /dev/null and b/rust/cloud-storage/target/lambda/organization_retention_trigger/bootstrap.zip differ
diff --git a/rust/cloud-storage/target/lambda/search_upload_handler/bootstrap.zip b/rust/cloud-storage/target/lambda/search_upload_handler/bootstrap.zip
new file mode 100644
index 0000000000..68da004aa5
Binary files /dev/null and b/rust/cloud-storage/target/lambda/search_upload_handler/bootstrap.zip differ
diff --git a/rust/cloud-storage/target/lambda/upload_extractor_lambda_handler/bootstrap.zip b/rust/cloud-storage/target/lambda/upload_extractor_lambda_handler/bootstrap.zip
new file mode 100644
index 0000000000..928ec27c37
Binary files /dev/null and b/rust/cloud-storage/target/lambda/upload_extractor_lambda_handler/bootstrap.zip differ
diff --git a/rust/cloud-storage/target/lambda/upload_extractor_lambda_trigger/bootstrap.zip b/rust/cloud-storage/target/lambda/upload_extractor_lambda_trigger/bootstrap.zip
new file mode 100644
index 0000000000..8aba093b80
Binary files /dev/null and b/rust/cloud-storage/target/lambda/upload_extractor_lambda_trigger/bootstrap.zip differ
diff --git a/rust/cloud-storage/target/lambda/user_link_cleanup_handler/bootstrap.zip b/rust/cloud-storage/target/lambda/user_link_cleanup_handler/bootstrap.zip
new file mode 100644
index 0000000000..71419bd7e1
Binary files /dev/null and b/rust/cloud-storage/target/lambda/user_link_cleanup_handler/bootstrap.zip differ
diff --git a/rust/cloud-storage/target/lambda/worker_trigger/bootstrap.zip b/rust/cloud-storage/target/lambda/worker_trigger/bootstrap.zip
new file mode 100644
index 0000000000..7b78cb39d6
Binary files /dev/null and b/rust/cloud-storage/target/lambda/worker_trigger/bootstrap.zip differ