deictic 0.6.0 → 0.8.0

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.
Files changed (111) hide show
  1. package/API.md +156 -31
  2. package/README.md +6 -4
  3. package/dist/annotations/client.d.ts +1 -1
  4. package/dist/annotations/client.d.ts.map +1 -1
  5. package/dist/annotations/client.js +161 -176
  6. package/dist/annotations/client.js.map +1 -1
  7. package/dist/annotations/index.d.ts +2 -11
  8. package/dist/bun.js +1 -1
  9. package/dist/client/index.d.ts +7 -6
  10. package/dist/client/index.d.ts.map +1 -1
  11. package/dist/client/index.js +1077 -236
  12. package/dist/client/index.js.map +1 -1
  13. package/dist/index.d.ts +2 -2
  14. package/dist/next.js +1 -1
  15. package/dist/recommended/index.d.ts +2 -2
  16. package/dist/recordings/client.d.ts.map +1 -1
  17. package/dist/recordings/client.js +89 -154
  18. package/dist/recordings/client.js.map +1 -1
  19. package/dist/screenshots/client.d.ts.map +1 -1
  20. package/dist/shared/annotations.js +3 -4
  21. package/dist/shared/annotations.js.map +1 -1
  22. package/dist/shared/board.js +1 -1
  23. package/dist/shared/client.js +45 -2
  24. package/dist/shared/client.js.map +1 -1
  25. package/dist/shared/component.js +62 -0
  26. package/dist/shared/component.js.map +1 -0
  27. package/dist/shared/dom.js +79 -0
  28. package/dist/shared/dom.js.map +1 -0
  29. package/dist/shared/drawer.js +217 -0
  30. package/dist/shared/drawer.js.map +1 -0
  31. package/dist/shared/endpoints.js +26 -6
  32. package/dist/shared/endpoints.js.map +1 -1
  33. package/dist/shared/index.d.ts +150 -9
  34. package/dist/shared/index.d.ts.map +1 -1
  35. package/dist/shared/index2.d.ts +9 -19
  36. package/dist/shared/index2.d.ts.map +1 -1
  37. package/dist/shared/index7.d.ts +123 -26
  38. package/dist/shared/index7.d.ts.map +1 -1
  39. package/dist/shared/index9.d.ts +1 -1
  40. package/dist/shared/integration.d.ts +1 -1
  41. package/dist/shared/integration.js +59 -5
  42. package/dist/shared/integration.js.map +1 -1
  43. package/dist/shared/package.js +23 -0
  44. package/dist/shared/package.js.map +1 -0
  45. package/dist/shared/packages.js +14 -23
  46. package/dist/shared/packages.js.map +1 -1
  47. package/dist/shared/playwright.js +11 -3
  48. package/dist/shared/playwright.js.map +1 -1
  49. package/dist/shared/recording.js +31 -3
  50. package/dist/shared/recording.js.map +1 -1
  51. package/dist/shared/src.js.map +1 -1
  52. package/dist/shared/task.js +55 -31
  53. package/dist/shared/task.js.map +1 -1
  54. package/dist/shared/tasks.js +279 -61
  55. package/dist/shared/tasks.js.map +1 -1
  56. package/dist/shared/vb.js +1 -1
  57. package/dist/shared/voice2.js +6 -4
  58. package/dist/shared/voice2.js.map +1 -1
  59. package/dist/shared/watch.js +15 -14
  60. package/dist/shared/watch.js.map +1 -1
  61. package/dist/tailwind/index.js +7 -2
  62. package/dist/tailwind/index.js.map +1 -1
  63. package/dist/tasks/client.d.ts +2 -2
  64. package/dist/tasks/client.d.ts.map +1 -1
  65. package/dist/tasks/client.js +1870 -741
  66. package/dist/tasks/client.js.map +1 -1
  67. package/dist/tasks/index.d.ts +2 -2
  68. package/dist/voice/client.d.ts.map +1 -1
  69. package/dist/voice/client.js +154 -57
  70. package/dist/voice/client.js.map +1 -1
  71. package/dist/webpack.js +1 -1
  72. package/package.json +2 -1
  73. package/skills/deictic/SKILL.md +22 -28
  74. package/src/cli/recording.ts +34 -3
  75. package/src/cli/task.ts +78 -33
  76. package/src/cli/voice.ts +9 -4
  77. package/src/cli/watch.ts +16 -13
  78. package/src/client/away.ts +3 -1
  79. package/src/client/component.ts +98 -0
  80. package/src/client/dom.ts +70 -0
  81. package/src/client/drawer.ts +258 -0
  82. package/src/client/index.ts +290 -165
  83. package/src/client/lightbox.ts +8 -8
  84. package/src/client/lighting.ts +279 -0
  85. package/src/client/style.ts +263 -44
  86. package/src/client/tools.ts +279 -0
  87. package/src/client/tooltip.ts +25 -5
  88. package/src/client/tray.ts +48 -0
  89. package/src/index.ts +148 -8
  90. package/src/plugins/annotations/client.ts +103 -129
  91. package/src/plugins/annotations/draw.ts +68 -72
  92. package/src/plugins/annotations/index.ts +12 -19
  93. package/src/plugins/recordings/client.ts +96 -168
  94. package/src/plugins/screenshots/client.ts +53 -2
  95. package/src/plugins/screenshots/playwright.ts +8 -3
  96. package/src/plugins/tailwind/index.ts +3 -2
  97. package/src/plugins/tasks/client.ts +229 -748
  98. package/src/plugins/tasks/composer.ts +797 -0
  99. package/src/plugins/tasks/drawer.ts +516 -0
  100. package/src/plugins/tasks/index.ts +436 -80
  101. package/src/plugins/tasks/pins.ts +280 -0
  102. package/src/plugins/tasks/store.ts +132 -0
  103. package/src/plugins/tasks/which.ts +34 -0
  104. package/src/plugins/voice/client.ts +96 -5
  105. package/src/tools/endpoints.ts +31 -5
  106. package/src/tools/packages.ts +12 -4
  107. package/src/tools/plugins.ts +18 -4
  108. package/src/tools/problems.ts +60 -0
  109. package/skills/deictic/references/recordings.md +0 -13
  110. package/skills/deictic/references/tasks.md +0 -22
  111. package/skills/deictic/references/watch.md +0 -17
package/API.md CHANGED
@@ -78,10 +78,75 @@ deictic({
78
78
  });
79
79
  ```
80
80
 
81
- | Option | What it is |
82
- | ---------- | ---------------------------------------------------------------------------------------------- |
83
- | `plugins` | The plugins to load. None by default. |
84
- | `shortcut` | `{ modifiers, button }`: held to outline, pressed to open. Alt and the left button by default. |
81
+ | Option | What it is |
82
+ | ---------- | -------------------------------------------------------------------------------------------- |
83
+ | `plugins` | The plugins to load. None by default. |
84
+ | `shortcut` | `{ modifiers, button }`: held to point, pressed to open. Alt and the left button by default. |
85
+
86
+ The button is `'left'`, `'middle'` or `'right'`: `shortcut: { modifiers: ['Alt'], button: 'right' }` opens on Alt
87
+ and a right-click, which the browser's own menu then doesn't answer. A plugin's own `shortcut` is the same, for its
88
+ tab: while its keys are held, the element's caption names that tab.
89
+
90
+ While the keys are held the page dims around the element pointed at, which stays lit, with guides from its edges
91
+ across the window. Its caption says what it is: with React in development, the component whose JSX has it, `<Plan>
92
+ <li>`, or the component alone, `<Badge>`, for the only element one writes; otherwise its tag. The popup opens beside it, tied to it by a line, and the page gets its light back once the
93
+ pointer has been out on it a moment. Nothing of it takes the pointer from the page.
94
+
95
+ The tasks are on the page, too. While the keys are held, and while the Task tab is open, every element with a task
96
+ still to do has a pin on its corner: how many, in the colour of the furthest along, with a dot where one has
97
+ something unread. A pin under the pointer reads its tasks, and a click opens them in the drawer.
98
+
99
+ ### The drawer
100
+
101
+ While the keys are held, the drawer shows on the window's right (its left, with the tool panel docked on the right):
102
+ what there is for the page. It goes a moment after the keys are let go, unless the pointer is on it or a task is open
103
+ in it. The button in its corner folds it away to a pill that counts what's in it (what's unread, in green, where
104
+ there's some); press the pill to open it again. It stays folded until then, or until a task opens in it.
105
+
106
+ - **Tasks**: every task of the channel still to do, oldest first, each with its state, who holds it, the element
107
+ it's about and how many replies it has; the latest finished (completed or failed) are folded under them. A task of
108
+ another page says which. The pointer on a task lights its element on the page.
109
+ - A task opens in the drawer: its state, its words, what it has attached, what it came to, and its thread, each
110
+ reply with what it attached. A file opens in the lightbox: a screenshot, a recording's replay, a voice note, an
111
+ element's HTML as text. **Edit** changes the words and **Delete** cancels it, twice pressed, for a task no one has
112
+ claimed. The composer under the thread replies on the board, so an agent that asked is answered from the page: it's
113
+ the Task tab's, with a screenshot, a drawing, a recording, a voice note and what the tool panel made to attach.
114
+ The element is outlined while the task is open, and a press on its name scrolls to it. `Esc`, or the arrow back, is
115
+ the list again. What's typed in a reply waits there while you look elsewhere.
116
+ - **Archive** puts a finished task away, and **Archive all**, under the finished ones, all of them: out of the drawer
117
+ until something happens to one (a reply). It's kept in the browser.
118
+ - **Unread**: a task an agent answered, blocked, completed or failed since you last opened it has a dot, in the
119
+ list and on its pin, and the heading counts them; in the thread the replies that are new are outlined. It's kept
120
+ in the browser, and a browser's first look counts everything as read.
121
+ - **Screenshots, recordings, voice notes**: what the tools made that no task has taken yet, a row each: it opens,
122
+ and its × drops it.
123
+
124
+ ### The tool panel
125
+
126
+ While the keys are held, a bar of the plugins' tools shows at the bottom of the window. It goes a moment after
127
+ they're let go, unless it's in use: a tool has the page, a recording or the mic is on, or the pointer is on it. Its
128
+ grip drags it to any edge of the window, where it stays. Each tool is an icon, its tooltip its name and its key. The
129
+ keys work while the shortcut's are held, and while a tool has the page:
130
+
131
+ | Key | Tool |
132
+ | ---------------------------------- | ------------------------------------------------------------------------- |
133
+ | `V`, `Esc` | The pointer: the page is the page's again |
134
+ | `M`, `A`, `B`, `N` | Box, arrow, pen and note, drawn on the page (annotations) |
135
+ | `Ctrl+Z` (`⌘Z`), `Shift+Backspace` | Takes the last mark back, or all of them |
136
+ | `S` | A screenshot of the window, with what's drawn on it (screenshots) |
137
+ | `R`, `Shift+R` | Starts a recording, and stops it; discards it (recordings) |
138
+ | `K` | The mic: a voice note, or a recording's voice (voice) |
139
+ | `T` | A task about a point: the next press on the page opens the Task tab there |
140
+
141
+ A recording, the mic and a drawing tool keep the panel up: stop them (`R`, `K`, `Esc`) and it goes with the keys.
142
+ While a recording goes, Screenshot, the mic and Task step aside for its own controls: its time, its mic, Stop and
143
+ Discard.
144
+ What the tools make (shots, recordings, voice notes) waits for the next task, whichever element it's about: the Task
145
+ tool counts them, and the Task tab lists each as a chip, to open or to leave out, and the drawer has them meanwhile. Marks stay on the
146
+ page until a task takes them.
147
+
148
+ A task about a point is pinned on that point, not on an element's corner, and a shot taken as it goes has the point
149
+ circled. It still names an element, the marked one under the point or the nearest to it, for its file and line.
85
150
 
86
151
  `recommended()`, from `deictic/recommended`, is tasks, screenshots, annotations, recordings and voice, and logs and
87
152
  network, which put the page's console and its requests in a recording. Each takes its
@@ -108,6 +173,7 @@ the transcription model, which is outside the project. With no terminal to ask o
108
173
  | `link` | the local board's pages | `(channel, task?) => url`, where the panel links a task to |
109
174
  | `html` | `true` | Whether the Task tab offers to attach the element's HTML |
110
175
  | `shortcut` | none | Opens the Task tab directly |
176
+ | `problems` | `true` | Whether deictic's own problems become tasks |
111
177
 
112
178
  With nothing set, the dev server starts a board on your machine: `http://127.0.0.1:4100/`, kept in `.deictic/board`.
113
179
  For another:
@@ -127,34 +193,64 @@ recommended({ tasks: { board: local({ port: 4200 }) } }); // the one on your mac
127
193
  `local()` takes `port`, `dir` (its folder, from the root), `inspect: false` for none of the board's own pages, and
128
194
  `args`, more of `vb serve`'s.
129
195
 
130
- In the Task tab a task's dot says its state, and who holds it while it's claimed (`claimed by claude`).
196
+ In the drawer a task's dot says its state, and who holds it while it's claimed (`claimed by claude`).
131
197
 
132
198
  A task's text is the words typed, and nothing else. The rest is its attachments and labels: `deictic.project`,
133
199
  `deictic.at` (the element's `file:line:column`), `deictic.file`, `deictic.url`, `deictic.viewport` and more, with your
134
200
  own beside them. What the attached files don't say is numbered from 1: `deictic.screenshot.1.position` and `.size`
135
- are where the element is in the first PNG attached, and `.note.1` a note drawn on it; `deictic.note.1` is a note drawn
136
- on the page; `deictic.recording.1.replay` is where the first recording plays back; `deictic.pointed` is the path to
201
+ are where the element is in the first PNG attached, where that's a shot taken of it, and `.note.1` a note drawn on
202
+ it; `deictic.note.1` is a note drawn on the page; `deictic.recording.1.replay` is where the first recording plays back; `deictic.pointed` is the path to
137
203
  what was pointed at inside the element; `deictic.dropped.1` is something attached that wasn't kept any more.
204
+ `deictic.point` is the spot a task about a point is on, `x,y` in CSS pixels from the element's top left.
205
+ Where one line renders several elements (`deictic.count`), `deictic.nth` is which of them, from 1 in the page's
206
+ order, and `deictic.text` its text: the pins find it by its text, then by its place among them.
207
+ `deictic.also.1` is the next element a task about several is about, as `src/Nav.tsx:4:7 <a>`, its HTML attached as
208
+ `element.2.html`; a task with no element attached has no `deictic.at`, and is about the page.
138
209
  `deictic.source` is what it rendered through, out from its own place, as `Field (src/Field.tsx:20) ← Panel` (a shared
139
210
  component's line is the same wherever it's used; these say where: with React in development the components that use
140
211
  it, three at most, and otherwise the files around it). The element's HTML as it rendered is attached as `element.html`,
141
212
  masked as screenshots are, for whoever can't open the page as you had it: a file, so the task stays short.
142
- Untick **Attach HTML snapshot** for a task without it; `html: false` takes the box away. A screenshot attached by the box has the element outlined in it; one you annotated is as you drew it.
143
-
144
- The tab lists the element's tasks, then the rest of its file's, folded away: each with its tag and line, which opens
145
- that element's tasks when it's on the page. A task stays with its element as lines above it change, while the opening
146
- tag's first line is still the same and the file has it once.
147
-
148
- In the Task tab:
149
-
150
- - **Attach** adds a screenshot of the page, and **Annotate** opens it to draw boxes, arrows and notes on.
151
- - **Attach HTML snapshot** adds the element as the page has it, as a file.
152
- - **Record** records the page as you use it, drawing as you go, with the mic on if you like. A reload, or a link to
153
- another page of your site, leaves it going: stop it there, and the Task tab comes back with it, about the element
154
- you started on, whether that page has it or not.
155
- - **Voice** records a note.
156
- - The tasks already about the element are listed. An ID opens the task on the board, and a task no one has claimed
157
- can be edited or deleted. Undo takes any of it back.
213
+ Untick **Attach HTML snapshot** for a task without it; `html: false` takes the box away. A screenshot attached by the
214
+ button has the element outlined in it, or the point circled; one you drew on is as you drew it, and one taken from
215
+ the tool panel is the window as it was.
216
+
217
+ ### deictic's own problems
218
+
219
+ What goes wrong in deictic itself is a task too, for whoever works the board: a package the project hasn't installed,
220
+ a plugin that failed to set up (on the dev server or in the page), a request that broke. Each says what went wrong and
221
+ what to do, its details (a stack) after a `---`, which the drawer leaves out and `deictic task` prints. A `setup` one
222
+ is the project's to fix (`npm install -D rrweb`); a `bug` is deictic's, to report, not to patch where it's installed.
223
+ There's one task per problem while it's open: `deictic.problem` is its key, `deictic.problem.kind` `setup` or `bug`,
224
+ `deictic.problem.plugin` the plugin it's about. A dev server started again finds the same problem and adds nothing;
225
+ once that task is over, the problem coming back is a new one. `problems: false` posts none: they're still said in the
226
+ dev server's output.
227
+
228
+ A task stays with its element as lines above it change, while the opening tag's first line is still the same and
229
+ the file has it once.
230
+
231
+ The Task tab is for a new task. The ones there are, are in the drawer. In the tab:
232
+
233
+ - The field is a composer: what's attached is over the words, a chip each, and the buttons that attach are under
234
+ them, each an icon named by its tooltip. `Enter`, or the arrow, adds the task; `Shift+Enter` is a new line.
235
+ - The element is attached to begin with, a chip like the rest. **Element** (the crosshair) attaches another: the
236
+ next press on the page picks it. A task about several is pinned at its first, and names the others;
237
+ each is outlined in its screenshot. Take every element out, and the task is about the page.
238
+ - **Screenshot** is on or off: on, a shot of the page goes with the task as it's added, the element outlined in it.
239
+ It's on to begin with, and goes off once something else is attached, until you turn it on again.
240
+ - **HTML snapshot** is on or off too: the element as the page has it, as a file.
241
+ - **Draw** takes a screenshot and opens it to draw boxes, arrows and notes on, with the tool panel's drawing tools
242
+ and their keys: `Ctrl+Enter` (`⌘Enter`) saves it as a chip, `Esc` leaves it. Open the chip to change its marks.
243
+ - What's drawn on the page itself, with the tool panel, goes with the task too, in its screenshot and as
244
+ `deictic.note` labels, and is cleared once the task is added.
245
+ - **Record** closes the popup and records the page as you use it. A reload, or a link to another page of your
246
+ site, leaves it going: stop it in the tool panel, and the Task tab comes back with what you'd typed and the
247
+ recording, about the element you started on, whether that page has it or not.
248
+ - **Voice** records a note, here.
249
+ - What the tool panel's tools made since the last task is attached too: a shot, a recording, a voice note. A chip
250
+ opens it, and its × leaves it out.
251
+ - A picture pasted in (`Ctrl+V`, `⌘V`) or dropped on the composer is attached as a screenshot, to draw on from its
252
+ chip. A reply's composer takes them too.
253
+ - A task that's added is in the drawer at once, and the popup closes. Undo takes it back.
158
254
  - Beside the channel it says who's watching it, `claude watching`, or `no agent watching`: whether a task you add
159
255
  now is taken up. It knows of an agent watching with the skill from the project's folder, and of one holding a
160
256
  claim on a task of the channel's; with a board that isn't this machine's own it says nothing where it knows of
@@ -174,7 +270,7 @@ for ever. `init` offers to add it; otherwise `npx skills add gkurt/deictic`.
174
270
  | Plugin | Options |
175
271
  | --------------------- | ------------------------------------------------- |
176
272
  | `deictic/screenshots` | `renderer`, `keep` (100), `dir`, masking |
177
- | `deictic/annotations` | `color`, `shortcut` |
273
+ | `deictic/annotations` | `color` |
178
274
  | `deictic/recordings` | `keep` (20), `dir`, `canvas`, masking |
179
275
  | `deictic/voice` | `keep` (50), `dir` |
180
276
  | `deictic/logs` | `levels` |
@@ -255,18 +351,20 @@ export default (async (request) => Response.json({ model: null })) satisfies Sta
255
351
 
256
352
  What a plugin's routes would keep, the module keeps, and answers with the `url` it's at: screenshots' `add`; voice's
257
353
  `add` and then `more/<id>`, a take as it's spoken (the `url` with `?last`); recordings' `begin`, `part/<id>?seq=<n>`
258
- and `end/<id>` (the `url`) or `discard/<id>`. A recording's is a replay page for the build to publish:
354
+ and `end/<id>` (the `url`) or `discard/<id>`; tasks' `page` (`{ channel, tasks }`, what the drawer lists) and
355
+ `thread/<id>`, `reply/<id>`, `edit/<id>` and `remove/<id>`, what it does to one (a thread's files with the `url` each
356
+ is at). A recording's is a replay page for the build to publish:
259
357
  `replayPage({ player, source })`, from `deictic/recordings`, is its HTML.
260
358
 
261
359
  ## Events
262
360
 
263
361
  The page hears these on `window`:
264
362
 
265
- | Event | When | `detail` |
266
- | --------------- | ----------------------------- | ------------------------------------------------------ |
267
- | `deictic:open` | the popup opens over the page | the element and the tab |
268
- | `deictic:close` | it closes | none |
269
- | `deictic:task` | a task is added | its ID, title, state, channel, element and attachments |
363
+ | Event | When | `detail` |
364
+ | --------------- | ----------------------------- | ----------------------------------------------------------------------- |
365
+ | `deictic:open` | the popup opens over the page | the element and the tab |
366
+ | `deictic:close` | it closes | none |
367
+ | `deictic:task` | a task is added | its ID, title, state, channel, element, attachments and its shots' URLs |
270
368
 
271
369
  `openPopup(element, { tab })`, from `deictic/client`, opens the popup from a gesture of your own.
272
370
 
@@ -301,7 +399,12 @@ export default defineClientPlugin<Model, Op>({
301
399
 
302
400
  - `routes` adds routes to the dev server, which the page half reaches with `request(route)`.
303
401
  - `packages` names what it imports that the project installs itself (its optional peers): as the dev server starts,
304
- one that's missing is said, with the command that installs it.
402
+ one that's missing is reported, with the command that installs it.
403
+ - `context.report(problem)`, on either half, reports a problem of the plugin's own (a `Problem`: a `key` that's the
404
+ same each time it happens, `setup` or `bug`, the message with its fix, and `details`): said in the dev server's
405
+ output, once per key, and handed to every plugin's `problem(problem)`, which is how tasks posts them. A `setup`
406
+ that throws, a page half that throws as it sets up, shows its panel or draws on the page, and a request that fails
407
+ with anything but a `Refusal` are reported for it.
305
408
  - `setup` answers an API for other plugins, which reach it with `context.use(name)`. That's how tasks attaches
306
409
  screenshots and recordings.
307
410
  - A change that isn't to a file answers `{ done: record }`, and the plugin's `undo` and `redo` get the record back.
@@ -309,6 +412,28 @@ export default defineClientPlugin<Model, Op>({
309
412
  - `read` and `apply` get the element's source, or a `Refusal` saying why it isn't to be found (the file doesn't parse,
310
413
  or the page runs other code than the file has): throw it where the plugin needs the source, or go on without, as
311
414
  tasks do. Text edits without it are refused.
415
+ - `pointing(context)` on the page half draws what the plugin has on the page while a shortcut's keys are held, and
416
+ answers what takes it away: tasks pins each task where its element is.
417
+ - `context.open(plugin, element, at?)` opens the popup on another element, or on a point in it (`at`, in CSS pixels
418
+ from its top left, which the panel then gets as `context.at`). Not while the open one holds something `unsaved`:
419
+ its button shakes, and it answers false.
420
+ - A panel's `apply(op, on)` sends an op on another element than the popup's, where the op is about that one: tasks
421
+ sends a task on the first element attached.
422
+ - `context.tools` is the tool panel, for a page half's `setup`: `add(group)` puts a group of controls in it (buttons
423
+ with a `title`, and their keys in `aria-keyshortcuts`, which the panel hears; groups given one `section` sit
424
+ together after the others, as the screenshots', recordings', voice's and tasks' do in `capture`, and `last` puts a
425
+ group at the end of its section), `hold(left)` takes the page for a
426
+ tool until the panel gives it back, `keep()` keeps the panel up while something goes on, and `pick()` answers the
427
+ next point pressed on the page, as a `Spot` (the element and the point in it).
428
+ - `context.drawer` is the drawer, for a page half's `setup`: `add(section)` puts a section in it, which hides
429
+ itself (`hidden`) while it has nothing, `show(view, { title, closed })` opens one of its items in the sections'
430
+ place and answers what closes it, and `keep()` keeps the drawer up while something goes on. A section says how many
431
+ things it lists in `data-count`, and how many are unread in `data-unread`, for the pill the drawer folds to.
432
+ - `context.light(element)` lights an element on the page as pointing at it does, for something of yours that stands
433
+ for it; `context.light()` puts the light back.
434
+ - `context.tray` is what the tools made that no task has taken: `add(plugin, id, value)`, `list(plugin?)`,
435
+ `remove(plugin, id?)` and `subscribe`. It's kept for the tab, over page loads. A plugin of yours can add to it, or
436
+ take from it as tasks does.
312
437
  - A panel leaves the popup for something on the page with `away(state, task)`, and is mounted again with `resumed`.
313
438
  Where the task outlasts a page load, as a recording does, the page half's `resume` answers it on the next page, and
314
439
  the popup comes back there: on the element, or without it (`element.isConnected` is false) where that page has none.
package/README.md CHANGED
@@ -24,8 +24,9 @@
24
24
 
25
25
  ## What
26
26
 
27
- Hold **Alt** and point: the element is outlined with its tag and the file and line that rendered it. **Alt-click**,
28
- say what should change, and attach a screenshot to draw on, a screen recording or a voice note.
27
+ Hold **Alt** and point: the page dims around the element, lit with its tag and the file and line that rendered it. **Alt-click**,
28
+ and say what should change. Alt also brings up the tools: draw on the page, take a screenshot, record the screen or
29
+ your voice, or pin a task to any point. What they make goes with your next task.
29
30
 
30
31
  The task goes to a [Vercel Board](https://vercel.com/docs/board), for you, a teammate or an agent to work.
31
32
 
@@ -33,8 +34,9 @@ The task goes to a [Vercel Board](https://vercel.com/docs/board), for you, a tea
33
34
 
34
35
  - **No describing where.** "The second button in the header on the pricing page" becomes `src/Header.tsx:12:5`.
35
36
  Every task carries the element's place in the source, the page and the viewport.
36
- - **Show, don't type.** Draw on a screenshot, record the bug as it happens, or just say it.
37
- - **Agents pick it up.** A bundled skill watches the board and works each task as it arrives.
37
+ - **Show, don't type.** Draw on the page, record the bug as it happens, or just say it.
38
+ - **Agents pick it up.** A bundled skill watches the board and works each task as it arrives. When deictic itself
39
+ goes wrong (a package not installed, a plugin that broke), that's a task too, for the agent to fix or tell you of.
38
40
  - **Nothing in production.** It runs in your dev server only. A build has none of it.
39
41
  - **Any JSX.** Vite, Next.js, webpack, Rspack, Astro and Bun, server components too.
40
42
 
@@ -1,4 +1,4 @@
1
1
  import { r as Annotations } from "../shared/index2.js";
2
- declare const _default: import("deictic").ClientPlugin<null, never, Annotations>;
2
+ declare const _default: import("deictic").ClientPlugin<never, never, Annotations>;
3
3
  export { _default as default };
4
4
  //# sourceMappingURL=client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","names":[],"sources":["../../src/plugins/annotations/client.ts"],"mappings":";cA+PA,4B"}
1
+ {"version":3,"file":"client.d.ts","names":[],"sources":["../../src/plugins/annotations/client.ts"],"mappings":";cAgPA,4B"}