From 58f5ebca68a3be58be86d80e126f4a6b15635f0e Mon Sep 17 00:00:00 2001 From: Markov Date: Mon, 23 Feb 2026 14:12:39 +0100 Subject: [PATCH] fix: restore file attachment stubs with proper TODO --- src/tracker/client.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/tracker/client.ts b/src/tracker/client.ts index 9a52674..d2fad3f 100644 --- a/src/tracker/client.ts +++ b/src/tracker/client.ts @@ -111,8 +111,15 @@ export class TrackerClient { return this.request('GET', `/api/v1/messages?${qs}`); } - // --- Files --- - // TODO: file upload/download not implemented yet in Tracker + // --- Files (Attachments) --- + // Files are attachments on Messages. To attach a file to a task, + // send a message with task_id + attachment. + // Upload endpoint: POST /api/v1/messages/{id}/attachments (TODO in Tracker) + // Download endpoint: GET /api/v1/attachments/{id} (TODO in Tracker) + + // async uploadAttachment(messageId: string, filename: string, data: Buffer): Promise> { + // return this.request('POST', `/api/v1/messages/${messageId}/attachments`, ...); + // } // --- Projects ---