Skip to content

Commit 231edae

Browse files
committed
feat: add Twilio action with sendMessage function
Introduce a new twilio-action that integrates with the Twilio Messages API for Hercules automations. Version 1 provides the core capability of sending messages (SMS, MMS, and channel messages such as WhatsApp). - sendMessage runtime function (To, Body, optional From and MediaUrl) - TWILIO_MESSAGE response data type modeling the Twilio message resource - Action configs: account_sid, auth_token, from_number, base_url - Follows the existing action conventions (hercules decorators + axios REST client, zod-backed schemas), mirroring the gls-action layout - Register twilio-action in the .gitlab-ci.yml node-actions matrix Refs #33 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Hrvb3LRhmxcrASCuSXc7Jn
1 parent c64c074 commit 231edae

13 files changed

Lines changed: 4053 additions & 0 deletions

File tree

.gitlab-ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ include:
2424
- shopify-action
2525
- woocommerce-action
2626
- shopware-action
27+
- twilio-action
2728

2829
test-node:
2930
image: node:24.10.0

actions/twilio-action/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.env
2+
node_modules/
3+
dist/

actions/twilio-action/Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM node:24.10.0-alpine
2+
3+
WORKDIR /app
4+
5+
COPY package.json package-lock.json* ./
6+
7+
RUN npm install
8+
9+
COPY . .
10+
11+
RUN npm run build
12+
13+
CMD ["npm", "run", "start"]

actions/twilio-action/README.md

Whitespace-only changes.

0 commit comments

Comments
 (0)