feat(HAI-042): add file attachment support for tasks

- Expand MIME type support for text file uploads
- Add --attach flag to CLI task create command
- Surface attachments to triage agent with image content support
- Reference attachments in executor prompt for task execution context
- Add drag-and-drop file upload on dashboard task cards
This commit is contained in:
Dustin Byrne
2026-03-26 00:06:41 -04:00
parent afcd074caa
commit 123c481dfc
13 changed files with 592 additions and 27 deletions

View File

@@ -44,8 +44,11 @@ pnpm dev task list
# Move a task
pnpm dev task move HAI-001 todo
# Attach a screenshot to a task
# Attach a file to a task (images, logs, configs)
pnpm dev task attach HAI-001 ./screenshot.png
# Create a task with attachments
pnpm dev task create "Fix the login bug" -- --attach screenshot.png --attach error.log
```
Then open [http://localhost:4040](http://localhost:4040).
@@ -81,7 +84,7 @@ Tasks live on disk in `.hai/tasks/` in the project root:
└── HAI-001/
├── task.json # Metadata (column, deps, timestamps)
├── PROMPT.md # Task specification
└── attachments/ # Screenshot images (optional)
└── attachments/ # File attachments — images & text files (optional)
```
### Board UI