Feature/email automation#13
Merged
Merged
Conversation
Introduce the email-automation plugin package (@agentbase/plugin-email-automation). Adds full implementation (src/index.ts), manifest, package.json, tsconfig files and comprehensive Jest tests. Plugin supports Resend/SendGrid providers, AI-generated copy, transactional sends, drip campaigns, system templates, endpoints, cron jobs and hooks (user:register, conversation:end). Includes unit tests covering DB helpers, interpolation, provider integrations, email sending, campaign management, cron advancement logic and endpoint behaviors.
Reformat code and tests in the email-automation plugin for improved readability. Changes include consistent object/array formatting, wrapped long lines, normalized mock implementations in tests, and minor multiline type/variable formatting in src/index.ts. No functional or behavioral changes intended.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces the new
email-automationplugin to the codebase, including all necessary configuration, package management, and test setup. The changes establish the plugin’s metadata, build and test scripts, TypeScript configuration, and update the monorepo’s dependency lockfile to include the new package and its dependencies.Introduction of the
email-automationplugin:packages/plugins/official/email-automation/manifest.json: Adds the plugin manifest, specifying the plugin’s name, version, description, entry point, required permissions, and compatibility with the Agentbase platform.packages/plugins/official/email-automation/package.json: Adds the npm package definition with build and test scripts, dependencies, and Jest configuration for the plugin.TypeScript and test configuration:
packages/plugins/official/email-automation/tsconfig.json,tsconfig.test.json,__tests__/tsconfig.json: Adds TypeScript configuration files for both main and test code, enabling strict typing, source maps, and proper path mapping for the plugin SDK. [1] [2] [3]Monorepo dependency and lockfile updates:
pnpm-lock.yaml: Updates the lockfile to register the new plugin package, add its dependencies (including@types/jest,@types/node,jest,ts-jest,typescript), and ensure correct peer dependency resolution for Jest and ts-jest across the workspace. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]These changes collectively set up the
email-automationplugin for development and testing within the monorepo, ensuring it is properly configured and integrated with the existing build and dependency management systems.