@mulmobridge/twilio-sms 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/dist/index.js +9 -2
- package/package.json +22 -4
package/README.md
CHANGED
|
@@ -131,3 +131,10 @@ Part of the [`@mulmobridge/*`](https://www.npmjs.com/~mulmobridge) package famil
|
|
|
131
131
|
- [`@mulmobridge/xmpp`](https://www.npmjs.com/package/@mulmobridge/xmpp) — XMPP / Jabber
|
|
132
132
|
- [`@mulmobridge/zulip`](https://www.npmjs.com/package/@mulmobridge/zulip) — Zulip
|
|
133
133
|
|
|
134
|
+
## Related projects
|
|
135
|
+
|
|
136
|
+
Published from the MulmoClaude monorepo by [Receptron](https://github.com/receptron).
|
|
137
|
+
|
|
138
|
+
- **[MulmoClaude](https://github.com/receptron/mulmoclaude)** — an open-source AI assistant platform that runs on your own computer. Claude Code as the engine, a personal wiki for long-term memory, schema-driven collections for your data, and chat that summons the right GUI (markdown, charts, forms, spreadsheets, wikis) for each task.
|
|
139
|
+
- **[MulmoTerminal](https://github.com/receptron/mulmoterminal)** — a terminal-first cockpit for running many AI coding agents in parallel. One roster showing every session's summary and PR status, tmux-backed session persistence, git-worktree isolation, one-click PRs, and mobile push with remote reply.
|
|
140
|
+
- **[MulmoTerminal manual](https://receptron.github.io/mulmoterminal/)** — setup, workflows, feature reference, configuration, mobile notifications, and alternative / local model providers. Available in English and Japanese.
|
package/dist/index.js
CHANGED
|
@@ -27,7 +27,7 @@ import "dotenv/config";
|
|
|
27
27
|
import crypto from "crypto";
|
|
28
28
|
import express from "express";
|
|
29
29
|
import { createBridgeClient, chunkText } from "@mulmobridge/client";
|
|
30
|
-
import { parseCsvSet } from "@mulmoclaude/common";
|
|
30
|
+
import { isRecord, parseCsvSet } from "@mulmoclaude/common";
|
|
31
31
|
const TRANSPORT_ID = "twilio-sms";
|
|
32
32
|
const MAX_SMS_LEN = 1_600; // Twilio concatenates segments up to 1600 chars
|
|
33
33
|
const FETCH_TIMEOUT_MS = 15_000;
|
|
@@ -116,7 +116,7 @@ app.get("/health", (__req, res) => {
|
|
|
116
116
|
res.json({ status: "ok", transport: TRANSPORT_ID });
|
|
117
117
|
});
|
|
118
118
|
function parseTwilioBody(body) {
|
|
119
|
-
if (!body
|
|
119
|
+
if (!isRecord(body))
|
|
120
120
|
return null;
|
|
121
121
|
const record = body;
|
|
122
122
|
const from = typeof record.From === "string" ? record.From : "";
|
|
@@ -127,7 +127,14 @@ function parseTwilioBody(body) {
|
|
|
127
127
|
return null;
|
|
128
128
|
return { From: from, To: toField, Body: text, MessageSid: messageSid };
|
|
129
129
|
}
|
|
130
|
+
/** The string-valued subset of a form body, for signature computation.
|
|
131
|
+
*
|
|
132
|
+
* Takes `unknown` because the caller has an Express `req.body`. A non-record
|
|
133
|
+
* yields `{}`, which produces a signature that cannot match — fail closed,
|
|
134
|
+
* the same outcome as an absent body. */
|
|
130
135
|
function stringifyParams(body) {
|
|
136
|
+
if (!isRecord(body))
|
|
137
|
+
return {};
|
|
131
138
|
const out = {};
|
|
132
139
|
for (const [key, value] of Object.entries(body)) {
|
|
133
140
|
if (typeof value === "string")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mulmobridge/twilio-sms",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Twilio SMS bridge for MulmoBridge — inbound SMS via webhook, outbound via Twilio REST API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"author": "Receptron Team",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@mulmobridge/client": "^1.0.
|
|
26
|
-
"@mulmobridge/protocol": "^1.0.
|
|
27
|
-
"@mulmoclaude/common": "^1.1.
|
|
25
|
+
"@mulmobridge/client": "^1.0.1",
|
|
26
|
+
"@mulmobridge/protocol": "^1.0.1",
|
|
27
|
+
"@mulmoclaude/common": "^1.1.1",
|
|
28
28
|
"dotenv": "^17.0.0",
|
|
29
29
|
"express": "^5.0.0"
|
|
30
30
|
},
|
|
@@ -32,5 +32,23 @@
|
|
|
32
32
|
"@types/express": "^5.0.0",
|
|
33
33
|
"@types/node": "^26.1.1",
|
|
34
34
|
"typescript": "^6.0.3"
|
|
35
|
+
},
|
|
36
|
+
"homepage": "https://github.com/receptron/mulmoclaude/tree/main/packages/bridges/twilio-sms#readme",
|
|
37
|
+
"repository": {
|
|
38
|
+
"type": "git",
|
|
39
|
+
"url": "git+https://github.com/receptron/mulmoclaude.git",
|
|
40
|
+
"directory": "packages/bridges/twilio-sms"
|
|
41
|
+
},
|
|
42
|
+
"keywords": [
|
|
43
|
+
"sms",
|
|
44
|
+
"twilio",
|
|
45
|
+
"mulmobridge",
|
|
46
|
+
"chatbot",
|
|
47
|
+
"bridge",
|
|
48
|
+
"ai-agent",
|
|
49
|
+
"mulmoclaude"
|
|
50
|
+
],
|
|
51
|
+
"bugs": {
|
|
52
|
+
"url": "https://github.com/receptron/mulmoclaude/issues"
|
|
35
53
|
}
|
|
36
54
|
}
|