annotask 0.0.5 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -48,7 +48,7 @@ This copies skill files to `.claude/skills/` and `.agents/skills/` so your agent
48
48
 
49
49
  | Agent | Skill directory | Notes |
50
50
  |-------|----------------|-------|
51
- | Claude Code | `.claude/skills/` | Invoke with `/annotask-apply`, `/annotask-init`, `/annotask-watch` |
51
+ | Claude Code | `.claude/skills/` | Invoke with `/annotask-apply`, `/annotask-init` |
52
52
  | GitHub Copilot | `.agents/skills/` | Auto-discovered by Copilot agents |
53
53
  | OpenAI Codex | `.agents/skills/` | Uses the same `.agents/` convention |
54
54
  | Other agents | `.agents/skills/` | Any agent that reads `.agents/skills/` |
@@ -59,7 +59,6 @@ This copies skill files to `.claude/skills/` and `.agents/skills/` so your agent
59
59
  |-------|-------------|
60
60
  | `/annotask-init` | Scans your project and generates `.annotask/design-spec.json` with detected tokens, fonts, colors, and component library. Run once per project. |
61
61
  | `/annotask-apply` | Fetches pending tasks from the Annotask API, applies changes to source files, and marks them for review. |
62
- | `/annotask-watch` | Streams live changes from the Annotask WebSocket so your agent can narrate what you're doing in real time. |
63
62
 
64
63
  ## Quick Start
65
64
 
@@ -151,7 +150,6 @@ Start your dev server, then open:
151
150
  - **Arrows** — Draw arrows to reference other elements or parts of the page
152
151
  - **Drawn sections** — Draw a rectangle where new content should go, with a prompt
153
152
  - **Text highlights** — Select text to mark it for editing
154
- - **Notes** — Attach free-text design notes to any element
155
153
 
156
154
  ### Visual editing (experimental)
157
155
  - **Element inspection** — Click any element to see its source file, line, component, and computed styles
@@ -169,15 +167,30 @@ Start your dev server, then open:
169
167
  - **Violation cards** — Shows impact level, rule, description, and affected element count
170
168
  - **One-click fix tasks** — Create tasks from violations with full context (HTML snippets, CSS selectors, source file/line, and fix suggestions)
171
169
 
170
+ ### Screenshots
171
+ - **Snipping tool** — Click "Add Screenshot" on any task form, then drag a region or click for full-page capture
172
+ - **Thumbnail preview** — Screenshot appears as a preview on the task form before submitting (removable)
173
+ - **Task-attached** — Screenshots are stored on the server and referenced by filename in the task
174
+ - **Multimodal AI context** — AI agents can download and view screenshots for visual understanding of what the user sees
175
+ - **Auto-cleanup** — Screenshot files are deleted when the task is accepted
176
+
172
177
  ### AI agent context
173
- - **Interaction history** — Optionally track user navigation and button/link clicks in the app so the AI agent understands how the user reached the current state
174
- - **Element context** Optionally capture ancestor layout chain (3 levels of parent display, flex-direction, gap, grid-template) and DOM subtree (3 levels of children with tag, classes, text) for each task
175
- - **Breakpoint detection** — `/annotask-init` detects responsive breakpoints from Tailwind, Bootstrap, CSS variables, or media query patterns and includes them in the design spec
178
+
179
+ These optional features give the AI agent richer context beyond just "change this element" helping it make better decisions about how and where to apply changes.
180
+
181
+ - **Interaction history** — Optionally track user navigation and button/link clicks in the app. Toggle per-task, off by default.
182
+ > Without this, the agent only sees the task description and a file path. With it, the agent knows the user navigated from `/settings` → `/profile` → clicked "Edit" → scrolled down before creating the task. This helps reproduce bugs and understand which user flow is affected.
183
+
184
+ - **Element context** — Optionally capture the ancestor layout chain (3 levels of parent display, flex-direction, gap, grid-template) and DOM subtree (3 levels of children with tag, classes, text). Toggle per-task, off by default.
185
+ > The agent can usually determine this by reading the source file — and in most cases it will. This feature provides the same information upfront as a shortcut, saving the agent a round-trip of reading and parsing the file. It includes the computed layout state from the live browser (display, flex-direction, gap, grid-template, child count) which may differ from what's in the source when styles are inherited, overridden, or applied dynamically.
186
+
187
+ - **Breakpoint detection** — `annotask init` detects responsive breakpoints from Tailwind, Bootstrap, CSS variables, or media query patterns and includes them in the design spec.
188
+ > The agent can find breakpoints by reading config files and stylesheets — and usually will. This pre-detects them so the agent has the project's breakpoint system immediately alongside the viewport dimensions on each task. When a task is created at 375px, the agent can instantly map that to the right Tailwind prefix, Bootstrap tier, or custom media query without searching the codebase first.
176
189
 
177
190
  ### Infrastructure
178
191
  - **Change reports** — Structured JSON of all changes, ready for agents to consume
179
192
  - **Task pipeline** — Create, review, accept, or deny design change tasks
180
- - **CLI** — `annotask watch` for live streaming, `annotask report` for current state
193
+ - **CLI** — `annotask tasks`, `annotask report`, `annotask watch` for terminal access
181
194
  - **API** — HTTP and WebSocket endpoints for programmatic access
182
195
 
183
196
  ## CLI
@@ -186,10 +199,11 @@ Start your dev server, then open:
186
199
  annotask watch # Live stream of changes
187
200
  annotask report # Fetch current report JSON
188
201
  annotask status # Check connection
202
+ annotask screenshot <id> # Download a task's screenshot
189
203
  annotask init-skills # Install agent skills into your project
190
204
  ```
191
205
 
192
- Options: `--port=N`, `--host=H`, `--server=URL` (override server.json), `--mfe=NAME` (filter by MFE).
206
+ Options: `--port=N`, `--host=H`, `--server=URL` (override server.json), `--mfe=NAME` (filter by MFE), `--output=PATH` (for screenshot command).
193
207
 
194
208
  ## API
195
209
 
@@ -197,6 +211,8 @@ Options: `--port=N`, `--host=H`, `--server=URL` (override server.json), `--mfe=N
197
211
  - `GET /__annotask/api/tasks` — Task list (supports `?mfe=NAME` filter)
198
212
  - `POST /__annotask/api/tasks` — Create a task
199
213
  - `PATCH /__annotask/api/tasks/:id` — Update task status
214
+ - `POST /__annotask/api/screenshots` — Upload a screenshot (base64 PNG)
215
+ - `GET /__annotask/screenshots/:filename` — Serve a screenshot
200
216
  - `GET /__annotask/api/status` — Health check
201
217
  - `ws://localhost:5173/__annotask/ws` — Live WebSocket stream
202
218