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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user