From 38c1171caea473eca5c8fadda662c67121e4a90a Mon Sep 17 00:00:00 2001
From: MasterPtato <23087326+MasterPtato@users.noreply.github.com>
Date: Fri, 2 Aug 2024 03:29:43 +0000
Subject: [PATCH] feat(workflows): add messages (#977)
## Changes
---
lib/api-helper/build/src/anchor.rs | 13 +-
lib/api-helper/build/src/macro_util.rs | 2 +-
lib/chirp-workflow/core/Cargo.toml | 2 +
lib/chirp-workflow/core/src/ctx/activity.rs | 39 +-
lib/chirp-workflow/core/src/ctx/api.rs | 61 +-
lib/chirp-workflow/core/src/ctx/message.rs | 607 ++++++++++++++++++++
lib/chirp-workflow/core/src/ctx/mod.rs | 2 +
lib/chirp-workflow/core/src/ctx/test.rs | 74 ++-
lib/chirp-workflow/core/src/ctx/workflow.rs | 3 +-
lib/chirp-workflow/core/src/error.rs | 42 +-
lib/chirp-workflow/core/src/lib.rs | 1 +
lib/chirp-workflow/core/src/message.rs | 132 +++++
lib/chirp-workflow/core/src/prelude.rs | 4 +-
lib/chirp-workflow/macros/src/lib.rs | 73 +++
lib/connection/src/lib.rs | 8 +
svc/Cargo.lock | 2 +
16 files changed, 1041 insertions(+), 24 deletions(-)
create mode 100644 lib/chirp-workflow/core/src/ctx/message.rs
create mode 100644 lib/chirp-workflow/core/src/message.rs
diff --git a/lib/api-helper/build/src/anchor.rs b/lib/api-helper/build/src/anchor.rs
index 3222290ecc..582a212a0e 100644
--- a/lib/api-helper/build/src/anchor.rs
+++ b/lib/api-helper/build/src/anchor.rs
@@ -25,7 +25,18 @@ impl WatchIndexQuery {
/// Converts the `WatchIndexQuery` into a `TailAnchor` for use with the Chirp client.
pub fn to_consumer(self) -> Result