Skip to content

Convert JavaScript to TypeScript#4

Merged
jlia0 merged 2 commits intomainfrom
claude/convert-to-typescript-4q4Zk
Feb 9, 2026
Merged

Convert JavaScript to TypeScript#4
jlia0 merged 2 commits intomainfrom
claude/convert-to-typescript-4q4Zk

Conversation

@jlia0
Copy link
Copy Markdown
Collaborator

@jlia0 jlia0 commented Feb 9, 2026

Move whatsapp-client.js and queue-processor.js into src/ as TypeScript
files with proper type annotations, interfaces, and strict mode. Set up
tsconfig.json to compile to dist/, add build scripts, and update
tinyclaw.sh to reference compiled output and auto-build when source
changes.

https://claude.ai/code/session_01R6CxWY1dX5VRJWGAJmKohu

Move whatsapp-client.js and queue-processor.js into src/ as TypeScript
files with proper type annotations, interfaces, and strict mode. Set up
tsconfig.json to compile to dist/, add build scripts, and update
tinyclaw.sh to reference compiled output and auto-build when source
changes.

https://claude.ai/code/session_01R6CxWY1dX5VRJWGAJmKohu
Resolved conflict in tinyclaw.sh by combining:
- TypeScript dist/ paths from this branch
- Enhanced WhatsApp ready flag checking from main

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@jlia0 jlia0 merged commit 986b10f into main Feb 9, 2026
AgenticCurve pushed a commit to AgenticCurve/tinyclaw that referenced this pull request Feb 11, 2026
@jlia0 jlia0 deleted the claude/convert-to-typescript-4q4Zk branch February 13, 2026 20:53
malloryatefa added a commit to malloryatefa/tinyclaw that referenced this pull request Feb 16, 2026
Fix TinyAGI#1 (High): Port config now respects settings.json. Only MSTEAMS_PORT
env var overrides config; the generic PORT env var and default 3978 no
longer shadow channels.teams.port from settings.

Fix TinyAGI#2 (High): Proactive messaging works via senderId fallback. Stores
conversation references by senderId on every incoming message. Outgoing
queue falls back to senderReferences when pendingMessages has no match,
matching the pattern used by Telegram/Discord/WhatsApp clients.

Fix TinyAGI#3 (High): Real file download/upload support. Incoming attachments
are downloaded to ~/.tinyclaw/files/ with [file: /path] references in
queue messages. Outgoing files are sent as base64-encoded attachments
via the Bot Framework activity API.

Fix TinyAGI#4 (Medium): /reset command implemented. Handles both bare /reset
(shows usage) and /reset @agent_id (writes reset_flag), matching the
exact pattern from telegram-client.ts.

Fix TinyAGI#5 (Medium): Empty message guard added. responseText.trim() is
checked before calling splitMessage/sendActivity in the outgoing queue,
preventing empty activity sends for file-only responses.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

2 participants