fix: convert send_message skill from TS to plain Node.js#195
Conversation
ts-node compilation was failing because @types/node wasn't installed. Converted to plain JS to eliminate the ts-node and @types/node dependency entirely. Removed tsconfig.json as it's no longer needed. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Greptile SummaryThis PR converts the
Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Agent
participant send-message.sh
participant send_message.js
participant TinyClaw API
Agent->>send-message.sh: bash send-message.sh send --channel telegram ...
send-message.sh->>send_message.js: exec node send_message.js send ...
send_message.js->>send_message.js: parseArgs(argv)
send_message.js->>send_message.js: validate required args & channel
send_message.js->>TinyClaw API: POST /api/responses (fetch)
TinyClaw API-->>send_message.js: { ok, messageId }
send_message.js-->>Agent: console.log("Message queued: ...")
|
Summary
send_message.tstosend_message.js(plain Node.js) to fix ts-node compilation failure caused by missing@types/nodesend-message.shwrapper to invokenodedirectly instead ofnpx ts-nodetsconfig.jsonas it's no longer neededTest plan
node send_message.js list-targetsruns without errorsbash send-message.sh list-targetsruns without errorssendcommand works end-to-end with a live API🤖 Generated with Claude Code