deictic 0.5.0 → 0.7.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.
- package/API.md +150 -37
- package/README.md +4 -3
- package/dist/annotations/client.d.ts +1 -1
- package/dist/annotations/client.d.ts.map +1 -1
- package/dist/annotations/client.js +161 -176
- package/dist/annotations/client.js.map +1 -1
- package/dist/annotations/index.d.ts +2 -11
- package/dist/client/index.d.ts +7 -6
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +1007 -192
- package/dist/client/index.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/recommended/index.d.ts +2 -2
- package/dist/recordings/client.d.ts.map +1 -1
- package/dist/recordings/client.js +82 -153
- package/dist/recordings/client.js.map +1 -1
- package/dist/screenshots/client.d.ts.map +1 -1
- package/dist/shared/annotations.js +3 -4
- package/dist/shared/annotations.js.map +1 -1
- package/dist/shared/board.js +1 -1
- package/dist/shared/client.js +45 -2
- package/dist/shared/client.js.map +1 -1
- package/dist/shared/component.js +62 -0
- package/dist/shared/component.js.map +1 -0
- package/dist/shared/dom.js +79 -0
- package/dist/shared/dom.js.map +1 -0
- package/dist/shared/drawer.js +217 -0
- package/dist/shared/drawer.js.map +1 -0
- package/dist/shared/endpoints.js +34 -8
- package/dist/shared/endpoints.js.map +1 -1
- package/dist/shared/find.js +2 -1
- package/dist/shared/find.js.map +1 -1
- package/dist/shared/index.d.ts +124 -11
- package/dist/shared/index.d.ts.map +1 -1
- package/dist/shared/index2.d.ts +9 -19
- package/dist/shared/index2.d.ts.map +1 -1
- package/dist/shared/index7.d.ts +105 -26
- package/dist/shared/index7.d.ts.map +1 -1
- package/dist/shared/index9.d.ts +1 -1
- package/dist/shared/init.js +12 -10
- package/dist/shared/init.js.map +1 -1
- package/dist/shared/integration.d.ts +1 -1
- package/dist/shared/packages.js +1 -1
- package/dist/shared/recording.js +31 -3
- package/dist/shared/recording.js.map +1 -1
- package/dist/shared/src.js.map +1 -1
- package/dist/shared/task.js +72 -21
- package/dist/shared/task.js.map +1 -1
- package/dist/shared/tasks.js +330 -166
- package/dist/shared/tasks.js.map +1 -1
- package/dist/shared/vb.js +1 -1
- package/dist/shared/voice2.js +6 -4
- package/dist/shared/voice2.js.map +1 -1
- package/dist/shared/watch.js +14 -14
- package/dist/shared/watch.js.map +1 -1
- package/dist/tailwind/index.js +6 -2
- package/dist/tailwind/index.js.map +1 -1
- package/dist/tasks/client.d.ts +2 -2
- package/dist/tasks/client.d.ts.map +1 -1
- package/dist/tasks/client.js +1829 -742
- package/dist/tasks/client.js.map +1 -1
- package/dist/tasks/index.d.ts +2 -2
- package/dist/voice/client.d.ts.map +1 -1
- package/dist/voice/client.js +154 -57
- package/dist/voice/client.js.map +1 -1
- package/package.json +1 -1
- package/skills/deictic/SKILL.md +22 -28
- package/src/cli/find.ts +3 -1
- package/src/cli/init.ts +13 -11
- package/src/cli/recording.ts +34 -3
- package/src/cli/task.ts +94 -23
- package/src/cli/voice.ts +9 -4
- package/src/cli/watch.ts +14 -13
- package/src/client/away.ts +3 -1
- package/src/client/component.ts +98 -0
- package/src/client/dom.ts +70 -0
- package/src/client/drawer.ts +258 -0
- package/src/client/index.ts +220 -128
- package/src/client/lightbox.ts +8 -8
- package/src/client/lighting.ts +279 -0
- package/src/client/style.ts +263 -44
- package/src/client/tools.ts +279 -0
- package/src/client/tooltip.ts +25 -5
- package/src/client/tray.ts +48 -0
- package/src/index.ts +121 -10
- package/src/plugins/annotations/client.ts +103 -129
- package/src/plugins/annotations/draw.ts +68 -72
- package/src/plugins/annotations/index.ts +12 -19
- package/src/plugins/recordings/client.ts +89 -167
- package/src/plugins/screenshots/client.ts +53 -2
- package/src/plugins/tailwind/index.ts +6 -2
- package/src/plugins/tasks/client.ts +219 -749
- package/src/plugins/tasks/composer.ts +797 -0
- package/src/plugins/tasks/drawer.ts +516 -0
- package/src/plugins/tasks/index.ts +459 -192
- package/src/plugins/tasks/pins.ts +275 -0
- package/src/plugins/tasks/store.ts +132 -0
- package/src/plugins/voice/client.ts +96 -5
- package/src/tools/endpoints.ts +18 -7
- package/src/tools/source.ts +25 -5
- package/skills/deictic/references/recordings.md +0 -13
- package/skills/deictic/references/tasks.md +0 -21
- package/skills/deictic/references/watch.md +0 -17
package/API.md
CHANGED
|
@@ -20,12 +20,13 @@ adds it to the bundler's config, and offers the agent skill (`--dry-run`, `--no-
|
|
|
20
20
|
For Bun it writes `deictic.plugin.ts`, names it in `bunfig.toml` and spreads its routes into `Bun.serve`'s, where a
|
|
21
21
|
server of the project's has Bun bundle an HTML page (a Bun project that runs Vite or Next.js is theirs). This is what
|
|
22
22
|
it adds, and what to add by hand where it can't (a config it can't read). Every integration takes the same options
|
|
23
|
-
and runs in the dev server only.
|
|
23
|
+
and runs in the dev server only. deictic goes first among the plugins: one before it that changes a module would have
|
|
24
|
+
the page point at that plugin's code, not the file.
|
|
24
25
|
|
|
25
26
|
```ts
|
|
26
27
|
// Vite, and anything on it (React Router, TanStack Start…): vite.config.ts
|
|
27
28
|
import { deictic } from 'deictic/vite';
|
|
28
|
-
export default defineConfig({ plugins: [
|
|
29
|
+
export default defineConfig({ plugins: [deictic({ plugins: recommended() }), react()] });
|
|
29
30
|
|
|
30
31
|
// Next.js (`next dev`, Turbopack or webpack): next.config.ts
|
|
31
32
|
import { withDeictic } from 'deictic/next';
|
|
@@ -77,10 +78,75 @@ deictic({
|
|
|
77
78
|
});
|
|
78
79
|
```
|
|
79
80
|
|
|
80
|
-
| Option | What it is
|
|
81
|
-
| ---------- |
|
|
82
|
-
| `plugins` | The plugins to load. None by default.
|
|
83
|
-
| `shortcut` | `{ modifiers, button }`: held to
|
|
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.
|
|
84
150
|
|
|
85
151
|
`recommended()`, from `deictic/recommended`, is tasks, screenshots, annotations, recordings and voice, and logs and
|
|
86
152
|
network, which put the page's console and its requests in a recording. Each takes its
|
|
@@ -126,31 +192,51 @@ recommended({ tasks: { board: local({ port: 4200 }) } }); // the one on your mac
|
|
|
126
192
|
`local()` takes `port`, `dir` (its folder, from the root), `inspect: false` for none of the board's own pages, and
|
|
127
193
|
`args`, more of `vb serve`'s.
|
|
128
194
|
|
|
129
|
-
In the
|
|
130
|
-
|
|
131
|
-
A task is the words typed and
|
|
132
|
-
`file:line:column`), `deictic.file`, `deictic.url`, `deictic.viewport` and more, with your
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
195
|
+
In the drawer a task's dot says its state, and who holds it while it's claimed (`claimed by claude`).
|
|
196
|
+
|
|
197
|
+
A task's text is the words typed, and nothing else. The rest is its attachments and labels: `deictic.project`,
|
|
198
|
+
`deictic.at` (the element's `file:line:column`), `deictic.file`, `deictic.url`, `deictic.viewport` and more, with your
|
|
199
|
+
own beside them. What the attached files don't say is numbered from 1: `deictic.screenshot.1.position` and `.size`
|
|
200
|
+
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
|
|
201
|
+
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
|
|
202
|
+
what was pointed at inside the element; `deictic.dropped.1` is something attached that wasn't kept any more.
|
|
203
|
+
`deictic.point` is the spot a task about a point is on, `x,y` in CSS pixels from the element's top left.
|
|
204
|
+
`deictic.also.1` is the next element a task about several is about, as `src/Nav.tsx:4:7 <a>`, its HTML attached as
|
|
205
|
+
`element.2.html`; a task with no element attached has no `deictic.at`, and is about the page.
|
|
206
|
+
`deictic.source` is what it rendered through, out from its own place, as `Field (src/Field.tsx:20) ← Panel` (a shared
|
|
207
|
+
component's line is the same wherever it's used; these say where: with React in development the components that use
|
|
208
|
+
it, three at most, and otherwise the files around it). The element's HTML as it rendered is attached as `element.html`,
|
|
137
209
|
masked as screenshots are, for whoever can't open the page as you had it: a file, so the task stays short.
|
|
138
|
-
Untick **Attach HTML snapshot** for a task without it; `html: false` takes the box away. A screenshot attached by the
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
tag's first line is still the same and
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
-
|
|
153
|
-
|
|
210
|
+
Untick **Attach HTML snapshot** for a task without it; `html: false` takes the box away. A screenshot attached by the
|
|
211
|
+
button has the element outlined in it, or the point circled; one you drew on is as you drew it, and one taken from
|
|
212
|
+
the tool panel is the window as it was.
|
|
213
|
+
|
|
214
|
+
A task stays with its element as lines above it change, while the opening tag's first line is still the same and
|
|
215
|
+
the file has it once.
|
|
216
|
+
|
|
217
|
+
The Task tab is for a new task. The ones there are, are in the drawer. In the tab:
|
|
218
|
+
|
|
219
|
+
- The field is a composer: what's attached is over the words, a chip each, and the buttons that attach are under
|
|
220
|
+
them, each an icon named by its tooltip. `Enter`, or the arrow, adds the task; `Shift+Enter` is a new line.
|
|
221
|
+
- The element is attached to begin with, a chip like the rest. **Element** (the crosshair) attaches another: the
|
|
222
|
+
next press on the page picks it. A task about several is pinned at its first, and names the others;
|
|
223
|
+
each is outlined in its screenshot. Take every element out, and the task is about the page.
|
|
224
|
+
- **Screenshot** is on or off: on, a shot of the page goes with the task as it's added, the element outlined in it.
|
|
225
|
+
It's on to begin with, and goes off once something else is attached, until you turn it on again.
|
|
226
|
+
- **HTML snapshot** is on or off too: the element as the page has it, as a file.
|
|
227
|
+
- **Draw** takes a screenshot and opens it to draw boxes, arrows and notes on, with the tool panel's drawing tools
|
|
228
|
+
and their keys: `Ctrl+Enter` (`⌘Enter`) saves it as a chip, `Esc` leaves it. Open the chip to change its marks.
|
|
229
|
+
- What's drawn on the page itself, with the tool panel, goes with the task too, in its screenshot and as
|
|
230
|
+
`deictic.note` labels, and is cleared once the task is added.
|
|
231
|
+
- **Record** closes the popup and records the page as you use it. A reload, or a link to another page of your
|
|
232
|
+
site, leaves it going: stop it in the tool panel, and the Task tab comes back with what you'd typed and the
|
|
233
|
+
recording, about the element you started on, whether that page has it or not.
|
|
234
|
+
- **Voice** records a note, here.
|
|
235
|
+
- What the tool panel's tools made since the last task is attached too: a shot, a recording, a voice note. A chip
|
|
236
|
+
opens it, and its × leaves it out.
|
|
237
|
+
- A picture pasted in (`Ctrl+V`, `⌘V`) or dropped on the composer is attached as a screenshot, to draw on from its
|
|
238
|
+
chip. A reply's composer takes them too.
|
|
239
|
+
- A task that's added is in the drawer at once. Undo takes it back.
|
|
154
240
|
- Beside the channel it says who's watching it, `claude watching`, or `no agent watching`: whether a task you add
|
|
155
241
|
now is taken up. It knows of an agent watching with the skill from the project's folder, and of one holding a
|
|
156
242
|
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
|
|
@@ -170,7 +256,7 @@ for ever. `init` offers to add it; otherwise `npx skills add gkurt/deictic`.
|
|
|
170
256
|
| Plugin | Options |
|
|
171
257
|
| --------------------- | ------------------------------------------------- |
|
|
172
258
|
| `deictic/screenshots` | `renderer`, `keep` (100), `dir`, masking |
|
|
173
|
-
| `deictic/annotations` | `color
|
|
259
|
+
| `deictic/annotations` | `color` |
|
|
174
260
|
| `deictic/recordings` | `keep` (20), `dir`, `canvas`, masking |
|
|
175
261
|
| `deictic/voice` | `keep` (50), `dir` |
|
|
176
262
|
| `deictic/logs` | `levels` |
|
|
@@ -251,18 +337,20 @@ export default (async (request) => Response.json({ model: null })) satisfies Sta
|
|
|
251
337
|
|
|
252
338
|
What a plugin's routes would keep, the module keeps, and answers with the `url` it's at: screenshots' `add`; voice's
|
|
253
339
|
`add` and then `more/<id>`, a take as it's spoken (the `url` with `?last`); recordings' `begin`, `part/<id>?seq=<n>`
|
|
254
|
-
and `end/<id>` (the `url`) or `discard/<id
|
|
340
|
+
and `end/<id>` (the `url`) or `discard/<id>`; tasks' `page` (`{ channel, tasks }`, what the drawer lists) and
|
|
341
|
+
`thread/<id>`, `reply/<id>`, `edit/<id>` and `remove/<id>`, what it does to one (a thread's files with the `url` each
|
|
342
|
+
is at). A recording's is a replay page for the build to publish:
|
|
255
343
|
`replayPage({ player, source })`, from `deictic/recordings`, is its HTML.
|
|
256
344
|
|
|
257
345
|
## Events
|
|
258
346
|
|
|
259
347
|
The page hears these on `window`:
|
|
260
348
|
|
|
261
|
-
| Event | When | `detail`
|
|
262
|
-
| --------------- | ----------------------------- |
|
|
263
|
-
| `deictic:open` | the popup opens over the page | the element and the tab
|
|
264
|
-
| `deictic:close` | it closes | none
|
|
265
|
-
| `deictic:task` | a task is added | its ID, title, state, channel, element and
|
|
349
|
+
| Event | When | `detail` |
|
|
350
|
+
| --------------- | ----------------------------- | ----------------------------------------------------------------------- |
|
|
351
|
+
| `deictic:open` | the popup opens over the page | the element and the tab |
|
|
352
|
+
| `deictic:close` | it closes | none |
|
|
353
|
+
| `deictic:task` | a task is added | its ID, title, state, channel, element, attachments and its shots' URLs |
|
|
266
354
|
|
|
267
355
|
`openPopup(element, { tab })`, from `deictic/client`, opens the popup from a gesture of your own.
|
|
268
356
|
|
|
@@ -302,6 +390,31 @@ export default defineClientPlugin<Model, Op>({
|
|
|
302
390
|
screenshots and recordings.
|
|
303
391
|
- A change that isn't to a file answers `{ done: record }`, and the plugin's `undo` and `redo` get the record back.
|
|
304
392
|
- Throw a `Refusal` for an op the plugin won't make. The panel shows its message.
|
|
393
|
+
- `read` and `apply` get the element's source, or a `Refusal` saying why it isn't to be found (the file doesn't parse,
|
|
394
|
+
or the page runs other code than the file has): throw it where the plugin needs the source, or go on without, as
|
|
395
|
+
tasks do. Text edits without it are refused.
|
|
396
|
+
- `pointing(context)` on the page half draws what the plugin has on the page while a shortcut's keys are held, and
|
|
397
|
+
answers what takes it away: tasks pins each task where its element is.
|
|
398
|
+
- `context.open(plugin, element, at?)` opens the popup on another element, or on a point in it (`at`, in CSS pixels
|
|
399
|
+
from its top left, which the panel then gets as `context.at`). Not while the open one holds something `unsaved`:
|
|
400
|
+
its button shakes, and it answers false.
|
|
401
|
+
- A panel's `apply(op, on)` sends an op on another element than the popup's, where the op is about that one: tasks
|
|
402
|
+
sends a task on the first element attached.
|
|
403
|
+
- `context.tools` is the tool panel, for a page half's `setup`: `add(group)` puts a group of controls in it (buttons
|
|
404
|
+
with a `title`, and their keys in `aria-keyshortcuts`, which the panel hears; groups given one `section` sit
|
|
405
|
+
together after the others, as the screenshots', recordings', voice's and tasks' do in `capture`, and `last` puts a
|
|
406
|
+
group at the end of its section), `hold(left)` takes the page for a
|
|
407
|
+
tool until the panel gives it back, `keep()` keeps the panel up while something goes on, and `pick()` answers the
|
|
408
|
+
next point pressed on the page, as a `Spot` (the element and the point in it).
|
|
409
|
+
- `context.drawer` is the drawer, for a page half's `setup`: `add(section)` puts a section in it, which hides
|
|
410
|
+
itself (`hidden`) while it has nothing, `show(view, { title, closed })` opens one of its items in the sections'
|
|
411
|
+
place and answers what closes it, and `keep()` keeps the drawer up while something goes on. A section says how many
|
|
412
|
+
things it lists in `data-count`, and how many are unread in `data-unread`, for the pill the drawer folds to.
|
|
413
|
+
- `context.light(element)` lights an element on the page as pointing at it does, for something of yours that stands
|
|
414
|
+
for it; `context.light()` puts the light back.
|
|
415
|
+
- `context.tray` is what the tools made that no task has taken: `add(plugin, id, value)`, `list(plugin?)`,
|
|
416
|
+
`remove(plugin, id?)` and `subscribe`. It's kept for the tab, over page loads. A plugin of yours can add to it, or
|
|
417
|
+
take from it as tasks does.
|
|
305
418
|
- A panel leaves the popup for something on the page with `away(state, task)`, and is mounted again with `resumed`.
|
|
306
419
|
Where the task outlasts a page load, as a recording does, the page half's `resume` answers it on the next page, and
|
|
307
420
|
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
|
|
28
|
-
say what should change
|
|
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,7 +34,7 @@ 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
|
|
37
|
+
- **Show, don't type.** Draw on the page, record the bug as it happens, or just say it.
|
|
37
38
|
- **Agents pick it up.** A bundled skill watches the board and works each task as it arrives.
|
|
38
39
|
- **Nothing in production.** It runs in your dev server only. A build has none of it.
|
|
39
40
|
- **Any JSX.** Vite, Next.js, webpack, Rspack, Astro and Bun, server components too.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { r as Annotations } from "../shared/index2.js";
|
|
2
|
-
declare const _default: import("deictic").ClientPlugin<
|
|
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":";
|
|
1
|
+
{"version":3,"file":"client.d.ts","names":[],"sources":["../../src/plugins/annotations/client.ts"],"mappings":";cAgPA,4B"}
|