Skip to content

Twilio action#39

Open
nicosammito wants to merge 3 commits into
mainfrom
claude/feat-33-twilio-action-653r66
Open

Twilio action#39
nicosammito wants to merge 3 commits into
mainfrom
claude/feat-33-twilio-action-653r66

Conversation

@nicosammito

Copy link
Copy Markdown
Member

Close #33

claude and others added 3 commits July 22, 2026 07:33
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
Replace the raw axios + Twilio REST client with the official `twilio`
Node SDK for sending messages.

- helpers.ts uses twilio(accountSid, authToken) and client.messages.create,
  mapping the returned MessageInstance onto the TWILIO_MESSAGE schema
- package.json: drop axios, add twilio
- vite.config.ts: externalize twilio so it loads from node_modules at runtime
- index.ts: drop the now-unnecessary base_url config (the SDK targets
  api.twilio.com directly)

NOTE: package-lock.json must be regenerated with `npm install` so it matches
the new dependency set before CI's `npm ci` can succeed.

Refs #33

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hrvb3LRhmxcrASCuSXc7Jn
@nicosammito nicosammito self-assigned this Jul 22, 2026
@github-actions

Copy link
Copy Markdown

GitLab Pipeline Action

General information

Link to pipeline: https://gitlab.com/code0-tech/development/centaurus/-/pipelines/2697578148

Status: Passed
Duration: 8 minutes

Job summaries

docs:preview

Documentation preview available at https://code0-tech.gitlab.io/-/development/telescopium/-/jobs/15479764649/artifacts/out/index.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Twilio action

2 participants