twilio-opencode

A lightweight express server to handle Twilio voice and messaging webhooks for prompting Opencode.
git clone https://unitehenry.com/git/twilio-opencode.git
Log | Files | Refs | README | LICENSE

commit 18c16d82739298835dc02507b2a965e0110f8aa0
parent 849c1855f6107aa5099d57bf2be25cfed1518f58
Author: Henry Unite <unitehenry@gmail.com>
Date:   Thu, 26 Feb 2026 08:09:28 +0000

chore: format

Diffstat:
Mapp.ts | 4++--
Mlog.ts | 14+++++++++-----
2 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/app.ts b/app.ts @@ -1,6 +1,6 @@ import express, { type Request, type Response } from "express"; -import log, { LogLevel } from './log.ts'; -import { prompt } from './prompt.ts'; +import log, { LogLevel } from "./log.ts"; +import { prompt } from "./prompt.ts"; const app = express(); diff --git a/log.ts b/log.ts @@ -1,10 +1,14 @@ export enum LogLevel { - 'INFO', - 'WARN', - 'ERROR' + "INFO", + "WARN", + "ERROR", } -export default function log(level : LogLevel, message : string, data : Record<string, any> = {}) : void { +export default function log( + level: LogLevel, + message: string, + data: Record<string, any> = {}, +): void { const time = new Date().toISOString(); const entry = { @@ -14,5 +18,5 @@ export default function log(level : LogLevel, message : string, data : Record<st ...data, }; - process.stdout.write(JSON.stringify(entry) + '\n'); + process.stdout.write(JSON.stringify(entry) + "\n"); }