deictic 0.1.0 → 0.3.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 +303 -0
- package/README.md +56 -104
- package/dist/annotations/index.d.ts +1 -1
- package/dist/astro.d.ts +1 -1
- package/dist/bun.d.ts +1 -1
- package/dist/bun.js +2 -2
- package/dist/client/index.d.ts +4 -2
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +130 -16
- package/dist/client/index.js.map +1 -1
- package/dist/index.d.ts +21 -218
- package/dist/index.js.map +1 -1
- package/dist/loader.js +1 -1
- package/dist/logs/client.d.ts +4 -0
- package/dist/logs/client.d.ts.map +1 -0
- package/dist/logs/client.js +16 -0
- package/dist/logs/client.js.map +1 -0
- package/dist/logs/index.d.ts +18 -0
- package/dist/logs/index.d.ts.map +1 -0
- package/dist/logs/index.js +21 -0
- package/dist/logs/index.js.map +1 -0
- package/dist/network/client.d.ts +4 -0
- package/dist/network/client.d.ts.map +1 -0
- package/dist/network/client.js +29 -0
- package/dist/network/client.js.map +1 -0
- package/dist/network/index.d.ts +2 -0
- package/dist/network/index.js +39 -0
- package/dist/network/index.js.map +1 -0
- package/dist/next.d.ts +1 -1
- package/dist/next.js +2 -2
- package/dist/recommended/index.d.ts +15 -5
- package/dist/recommended/index.d.ts.map +1 -1
- package/dist/recommended/index.js +10 -3
- package/dist/recommended/index.js.map +1 -1
- package/dist/recordings/client.d.ts +1 -1
- package/dist/recordings/client.d.ts.map +1 -1
- package/dist/recordings/client.js +177 -48
- package/dist/recordings/client.js.map +1 -1
- package/dist/recordings/index.d.ts +2 -2
- package/dist/recordings/index.js +3 -3
- package/dist/screenshots/client.d.ts +7 -1
- package/dist/screenshots/client.d.ts.map +1 -1
- package/dist/screenshots/client.js +36 -4
- package/dist/screenshots/client.js.map +1 -1
- package/dist/screenshots/dom.d.ts +1 -1
- package/dist/screenshots/dom.d.ts.map +1 -1
- package/dist/screenshots/dom.js +1 -28
- package/dist/screenshots/dom.js.map +1 -1
- package/dist/screenshots/index.d.ts +1 -1
- package/dist/screenshots/index.js +2 -2
- package/dist/screenshots/index.js.map +1 -1
- package/dist/screenshots/rrweb.d.ts +2 -2
- package/dist/screenshots/rrweb.js +5 -1
- package/dist/screenshots/rrweb.js.map +1 -1
- package/dist/{endpoints.js → shared/endpoints.js} +1 -1
- package/dist/shared/endpoints.js.map +1 -0
- package/dist/shared/index.d.ts +238 -0
- package/dist/shared/index.d.ts.map +1 -0
- package/dist/{index3.d.ts → shared/index2.d.ts} +3 -1
- package/dist/shared/index2.d.ts.map +1 -0
- package/dist/shared/index3.d.ts +112 -0
- package/dist/shared/index3.d.ts.map +1 -0
- package/dist/shared/index4.d.ts +64 -0
- package/dist/shared/index4.d.ts.map +1 -0
- package/dist/shared/index5.d.ts +220 -0
- package/dist/shared/index5.d.ts.map +1 -0
- package/dist/{index5.d.ts → shared/index6.d.ts} +2 -2
- package/dist/shared/index6.d.ts.map +1 -0
- package/dist/{integration.d.ts → shared/integration.d.ts} +4 -3
- package/dist/shared/integration.d.ts.map +1 -0
- package/dist/{integration.js → shared/integration.js} +5 -3
- package/dist/shared/integration.js.map +1 -0
- package/dist/{kept.js → shared/kept.js} +2 -2
- package/dist/shared/kept.js.map +1 -0
- package/dist/{marks.js → shared/marks.js} +6 -1
- package/dist/shared/marks.js.map +1 -0
- package/dist/shared/mask.js +107 -0
- package/dist/shared/mask.js.map +1 -0
- package/dist/{playwright.js → shared/playwright.js} +19 -4
- package/dist/shared/playwright.js.map +1 -0
- package/dist/shared/recordings.js +437 -0
- package/dist/shared/recordings.js.map +1 -0
- package/dist/shared/shortcut.js.map +1 -0
- package/dist/shared/tasks.js +632 -0
- package/dist/shared/tasks.js.map +1 -0
- package/dist/shared/waveform.js.map +1 -0
- package/dist/tailwind/client.d.ts +1 -1
- package/dist/tailwind/index.d.ts +1 -1
- package/dist/tasks/client.d.ts +1 -1
- package/dist/tasks/client.d.ts.map +1 -1
- package/dist/tasks/client.js +272 -57
- package/dist/tasks/client.js.map +1 -1
- package/dist/tasks/index.d.ts +2 -159
- package/dist/tasks/index.js +1 -348
- package/dist/vite.d.ts +11 -12
- package/dist/vite.d.ts.map +1 -1
- package/dist/vite.js +21 -4
- package/dist/vite.js.map +1 -1
- package/dist/voice/client.d.ts.map +1 -1
- package/dist/voice/client.js +36 -15
- package/dist/voice/client.js.map +1 -1
- package/dist/voice/index.d.ts +6 -1
- package/dist/voice/index.d.ts.map +1 -1
- package/dist/voice/index.js +13 -3
- package/dist/voice/index.js.map +1 -1
- package/dist/webpack.d.ts +1 -1
- package/dist/webpack.js +2 -2
- package/package.json +41 -2
- package/skills/deictic/SKILL.md +20 -14
- package/skills/deictic/references/install.md +32 -10
- package/skills/deictic/references/recordings.md +29 -0
- package/skills/deictic/references/tasks.md +49 -21
- package/skills/deictic/references/watch.md +38 -11
- package/skills/deictic/scripts/lib.mjs +88 -4
- package/skills/deictic/scripts/recording.mjs +84 -4
- package/skills/deictic/scripts/task.mjs +36 -7
- package/skills/deictic/scripts/vb.mjs +12 -0
- package/skills/deictic/scripts/watch.mjs +74 -10
- package/src/client/away.ts +105 -0
- package/src/client/index.ts +60 -16
- package/src/client/style.ts +1 -0
- package/src/index.ts +21 -2
- package/src/plugins/logs/client.ts +18 -0
- package/src/plugins/logs/index.ts +55 -0
- package/src/plugins/network/client.ts +30 -0
- package/src/plugins/network/index.ts +69 -0
- package/src/plugins/network/mask.ts +133 -0
- package/src/plugins/recommended/index.ts +14 -1
- package/src/plugins/recordings/client.ts +220 -40
- package/src/plugins/recordings/index.ts +111 -25
- package/src/plugins/recordings/marks.ts +6 -0
- package/src/plugins/recordings/replay.ts +159 -10
- package/src/plugins/screenshots/client.ts +38 -2
- package/src/plugins/screenshots/dom.ts +1 -32
- package/src/plugins/screenshots/index.ts +2 -0
- package/src/plugins/screenshots/playwright.ts +15 -4
- package/src/plugins/screenshots/rrweb.ts +2 -1
- package/src/plugins/tasks/client.ts +273 -41
- package/src/plugins/tasks/index.ts +207 -47
- package/src/plugins/tasks/local.ts +170 -0
- package/src/plugins/tasks/watchers.ts +36 -0
- package/src/plugins/voice/client.ts +33 -10
- package/src/plugins/voice/index.ts +21 -4
- package/src/tools/integration.ts +5 -3
- package/src/tools/kept.ts +2 -2
- package/src/vite.ts +23 -4
- package/dist/endpoints.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index2.d.ts +0 -23
- package/dist/index3.d.ts.map +0 -1
- package/dist/index4.d.ts +0 -74
- package/dist/index4.d.ts.map +0 -1
- package/dist/index5.d.ts.map +0 -1
- package/dist/integration.d.ts.map +0 -1
- package/dist/integration.js.map +0 -1
- package/dist/kept.js.map +0 -1
- package/dist/marks.js.map +0 -1
- package/dist/playwright.js.map +0 -1
- package/dist/recordings.js +0 -235
- package/dist/recordings.js.map +0 -1
- package/dist/shortcut.js.map +0 -1
- package/dist/tasks/index.d.ts.map +0 -1
- package/dist/tasks/index.js.map +0 -1
- package/dist/waveform.js.map +0 -1
- /package/dist/{shortcut.js → shared/shortcut.js} +0 -0
- /package/dist/{waveform.js → shared/waveform.js} +0 -0
package/dist/voice/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/plugins/voice/index.ts"],"sourcesContent":["/**\n * `deictic/voice`: records the mic, for other plugins to attach (tasks does) or play along with\n * something (a recording does). No tab of its own. The page half asks for the mic the first time, records\n * with `MediaRecorder` and sends each take to the `add` route; the server half keeps the latest `keep`\n * clips under `.deictic/voice` and serves them at `clip/<id>`.\n */\nimport { existsSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs';\nimport { join, resolve } from 'node:path';\n\nimport { definePlugin } from '#src/index.ts';\nimport { keptIn } from '#src/tools/kept.ts';\n\n/** A clip as the page knows it: its ID, where it plays from, how long it runs in milliseconds, and its type. */\nexport interface Clip {\n id: string;\n url: string;\n duration: number;\n type: string;\n}\n\n/** A take going on: `stop` ends it and
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/plugins/voice/index.ts"],"sourcesContent":["/**\n * `deictic/voice`: records the mic, for other plugins to attach (tasks does) or play along with\n * something (a recording does). No tab of its own. The page half asks for the mic the first time, records\n * with `MediaRecorder` and sends each take as it's spoken, its start to the `add` route and the rest to\n * `more/<id>`, so one a page load cuts short is kept up to there; the server half keeps the latest `keep`\n * clips under `.deictic/voice` and serves them at `clip/<id>`.\n */\nimport { appendFileSync, existsSync, mkdirSync, readdirSync, readFileSync, rmSync, statSync, writeFileSync } from 'node:fs';\nimport { join, resolve } from 'node:path';\n\nimport { definePlugin } from '#src/index.ts';\nimport { keptIn } from '#src/tools/kept.ts';\n\n/** A clip as the page knows it: its ID, where it plays from, how long it runs in milliseconds, and its type. */\nexport interface Clip {\n id: string;\n url: string;\n duration: number;\n type: string;\n}\n\n/** A take going on: `stop` ends it and answers its clip, `cancel` ends it with none (what was sent of it goes as the oldest clips do). */\nexport interface Take {\n /** When it started, as `Date.now()`. */\n started: number;\n /** The mic, while it's recorded: to show it's heard (`liveWaveform` from `deictic/client`). */\n stream: MediaStream;\n /**\n * What's kept of it by now, as the clip it would be if it ended here, or nothing before its first second is:\n * for a page that's going, with no time left to `stop` it.\n */\n soFar(): Pick<Clip, 'id' | 'duration'> | undefined;\n stop(): Promise<Clip>;\n cancel(): void;\n}\n\n/** The page's half, for other plugins' page halves. */\nexport interface Voice {\n /** Starts recording the mic, asking for it the first time: rejects when it's refused or there's none. */\n start(): Promise<Take>;\n}\n\n/** The server's half, for other plugins' server halves. */\nexport interface Clips {\n /** A clip's audio, or nothing for one not kept (any more). */\n read(id: string): { data: Uint8Array<ArrayBuffer>; name: string; type: string } | undefined;\n}\n\ndeclare module 'deictic' {\n interface ServerApis {\n voice: Clips;\n }\n interface ClientApis {\n voice: Voice;\n }\n}\n\nexport interface VoiceOptions {\n /** How many clips to keep, the latest: 50 by default. */\n keep?: number;\n /** Where they're kept, from the project's root: `.deictic/voice` by default. */\n dir?: string;\n}\n\nconst ID = /^[a-z0-9]+-[a-z0-9]+$/;\n/** What one clip may weigh: minutes of speech in Opus are well under a MB. */\nconst MAX = 25 * 1024 * 1024;\n/** The audio a browser's `MediaRecorder` makes, by the extension it's kept under. */\nconst TYPES: Record<string, string> = { webm: 'audio/webm', ogg: 'audio/ogg', mp4: 'audio/mp4' };\n\nexport function voice(options: VoiceOptions = {}) {\n const keep = options.keep ?? 50;\n let dir = '';\n let taken = 0;\n const fileOf = (id: string) => (ID.test(id) && existsSync(dir) ? readdirSync(dir).find((f) => f.startsWith(`${id}.`)) : undefined);\n const read: Clips['read'] = (id) => {\n const file = fileOf(id);\n if (file === undefined) return undefined;\n const ext = file.slice(id.length + 1);\n return { data: new Uint8Array(readFileSync(join(dir, file))), name: `voice-${file}`, type: TYPES[ext] ?? 'application/octet-stream' };\n };\n const keepClip = (data: Uint8Array, ext: string) => {\n // Sorts by when it was made, which is what pruning keeps by: the count orders two in one millisecond.\n const id = `${Date.now().toString(36).padStart(9, '0')}${(taken++ % 1296).toString(36).padStart(2, '0')}-${crypto.randomUUID().slice(0, 8)}`;\n mkdirSync(dir, { recursive: true });\n writeFileSync(join(dir, `${id}.${ext}`), data);\n const kept = readdirSync(dir).toSorted();\n for (const old of kept.slice(0, Math.max(0, kept.length - keep))) rmSync(join(dir, old));\n return id;\n };\n\n return definePlugin<never, never, never, Clips>({\n name: 'voice',\n client: 'deictic/voice/client',\n setup: ({ root }) => {\n dir = options.dir === undefined ? keptIn(root, 'voice') : resolve(root, options.dir);\n return { read };\n },\n routes: {\n // A take the page is recording, as the audio type its `MediaRecorder` makes: its start, the rest to `more`.\n add: async (req) => {\n const type = (req.headers.get('content-type') ?? '').split(';')[0]!.trim();\n const ext = Object.keys(TYPES).find((e) => TYPES[e] === type);\n if (ext === undefined) return Response.json({ problem: `send the clip as ${Object.values(TYPES).join(', ')}` }, { status: 415 });\n const body = new Uint8Array(await req.arrayBuffer());\n if (body.byteLength === 0) return Response.json({ problem: 'the clip is empty: speak for a moment longer' }, { status: 400 });\n if (body.byteLength > MAX) return Response.json({ problem: `a clip may weigh ${MAX / 1024 / 1024} MB at most` }, { status: 413 });\n return Response.json({ id: keepClip(body, ext) });\n },\n // `more/<id>`: the take goes on, and this is the next of its audio. With `?last`, and maybe nothing, it's over.\n more: async (req) => {\n const id = new URL(req.url).pathname.split('/').at(-1) ?? '';\n const file = fileOf(id);\n if (file === undefined) return Response.json({ problem: `clip ${id} isn't kept any more: record it again` }, { status: 404 });\n const body = new Uint8Array(await req.arrayBuffer());\n if (statSync(join(dir, file)).size + body.byteLength > MAX)\n return Response.json({ problem: `a clip may weigh ${MAX / 1024 / 1024} MB at most` }, { status: 413 });\n appendFileSync(join(dir, file), body);\n return Response.json({ id });\n },\n // `clip/<id>`: the audio, to play back.\n clip: (req) => {\n const found = read(new URL(req.url).pathname.split('/').at(-1) ?? '');\n if (found === undefined) return new Response('no such clip, or not kept any more', { status: 404 });\n return new Response(found.data, { headers: { 'content-type': found.type, 'cache-control': 'no-store' } });\n },\n },\n });\n}\n\nexport default voice;\n"],"mappings":"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"}
|
package/dist/webpack.d.ts
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* endpoints to mount there.
|
|
12
12
|
*/
|
|
13
13
|
import { IncomingMessage, ServerResponse } from "node:http";
|
|
14
|
-
import { t as DeicticOptions } from "./integration.js";
|
|
14
|
+
import { t as DeicticOptions } from "./shared/integration.js";
|
|
15
15
|
export interface DeicticWebpackOptions extends DeicticOptions {
|
|
16
16
|
/** The project's root, which marks and edits are from: the compiler's `context` by default. */
|
|
17
17
|
root?: string;
|
package/dist/webpack.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as nodeMiddleware, t as endpoints } from "./endpoints.js";
|
|
2
|
-
import { d as JSX, o as prepare, s as writeClient, t as beside } from "./integration.js";
|
|
1
|
+
import { n as nodeMiddleware, t as endpoints } from "./shared/endpoints.js";
|
|
2
|
+
import { d as JSX, o as prepare, s as writeClient, t as beside } from "./shared/integration.js";
|
|
3
3
|
// src/tools/editor.ts
|
|
4
4
|
async function openInEditor(path, { line, column }) {
|
|
5
5
|
const launcher = await import("launch-editor").catch(() => void 0);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "deictic",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Point at an element in your running app and leave a task about it for your agent.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"annotations",
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
"src",
|
|
46
46
|
"skills",
|
|
47
47
|
"README.md",
|
|
48
|
+
"API.md",
|
|
48
49
|
"LICENSE"
|
|
49
50
|
],
|
|
50
51
|
"type": "module",
|
|
@@ -172,6 +173,34 @@
|
|
|
172
173
|
"default": "./dist/voice/client.js"
|
|
173
174
|
}
|
|
174
175
|
},
|
|
176
|
+
"./logs": {
|
|
177
|
+
"deictic@dev": "./src/plugins/logs/index.ts",
|
|
178
|
+
"default": {
|
|
179
|
+
"types": "./dist/logs/index.d.ts",
|
|
180
|
+
"default": "./dist/logs/index.js"
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"./logs/client": {
|
|
184
|
+
"deictic@dev": "./src/plugins/logs/client.ts",
|
|
185
|
+
"default": {
|
|
186
|
+
"types": "./dist/logs/client.d.ts",
|
|
187
|
+
"default": "./dist/logs/client.js"
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
"./network": {
|
|
191
|
+
"deictic@dev": "./src/plugins/network/index.ts",
|
|
192
|
+
"default": {
|
|
193
|
+
"types": "./dist/network/index.d.ts",
|
|
194
|
+
"default": "./dist/network/index.js"
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
"./network/client": {
|
|
198
|
+
"deictic@dev": "./src/plugins/network/client.ts",
|
|
199
|
+
"default": {
|
|
200
|
+
"types": "./dist/network/client.d.ts",
|
|
201
|
+
"default": "./dist/network/client.js"
|
|
202
|
+
}
|
|
203
|
+
},
|
|
175
204
|
"./recommended": {
|
|
176
205
|
"deictic@dev": "./src/plugins/recommended/index.ts",
|
|
177
206
|
"default": {
|
|
@@ -233,9 +262,11 @@
|
|
|
233
262
|
"devDependencies": {
|
|
234
263
|
"@babel/core": "^8.1.3",
|
|
235
264
|
"@babel/preset-react": "^8.0.1",
|
|
265
|
+
"@rrweb/rrweb-plugin-console-record": "2.2.2",
|
|
266
|
+
"@rrweb/rrweb-plugin-network-record": "2.2.2",
|
|
236
267
|
"@rspack/core": "2.3.3",
|
|
237
268
|
"@types/bun": "^1.4.5",
|
|
238
|
-
"@vercel/board": "^0.
|
|
269
|
+
"@vercel/board": "^0.54.0",
|
|
239
270
|
"@vitejs/plugin-react": "^6.3.0",
|
|
240
271
|
"astro": "^7.4.13",
|
|
241
272
|
"babel-loader": "^10.1.1",
|
|
@@ -261,6 +292,8 @@
|
|
|
261
292
|
"webpack": "5.113.0"
|
|
262
293
|
},
|
|
263
294
|
"peerDependencies": {
|
|
295
|
+
"@rrweb/rrweb-plugin-console-record": "^2.2.2",
|
|
296
|
+
"@rrweb/rrweb-plugin-network-record": "^2.2.2",
|
|
264
297
|
"@rspack/core": ">=1",
|
|
265
298
|
"@vercel/board": ">=0.53.0",
|
|
266
299
|
"astro": ">=5",
|
|
@@ -275,6 +308,12 @@
|
|
|
275
308
|
"webpack": ">=5"
|
|
276
309
|
},
|
|
277
310
|
"peerDependenciesMeta": {
|
|
311
|
+
"@rrweb/rrweb-plugin-console-record": {
|
|
312
|
+
"optional": true
|
|
313
|
+
},
|
|
314
|
+
"@rrweb/rrweb-plugin-network-record": {
|
|
315
|
+
"optional": true
|
|
316
|
+
},
|
|
278
317
|
"@rspack/core": {
|
|
279
318
|
"optional": true
|
|
280
319
|
},
|
package/skills/deictic/SKILL.md
CHANGED
|
@@ -12,35 +12,41 @@ and viewport, and can carry screenshots (with marks drawn on them), rrweb record
|
|
|
12
12
|
|
|
13
13
|
Assume deictic is installed and the person wants its tasks worked as they come, while they keep using the app:
|
|
14
14
|
|
|
15
|
-
1. **Reach the board.** `vb
|
|
16
|
-
`
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
[references/
|
|
15
|
+
1. **Reach the board, under your own name.** `vb` in these pages is `node <skill>/scripts/vb.mjs`: the project's
|
|
16
|
+
own `@vercel/board` CLI, which is rarely on the PATH, on the board the dev server uses (`BOARD_URL`, or with
|
|
17
|
+
none, the one `.deictic/board.json` names). Set `BOARD_PROFILE=<your name>` (`claude`, `codex`) for every
|
|
18
|
+
command, the watch too: `vb whoami` then answers `<them>/<you>`, and without it all you post is the person's
|
|
19
|
+
own. Not installed or not set up: [references/install.md](references/install.md).
|
|
20
|
+
2. **Watch.** Start a watch that wakes you on each new task, so no one has to prompt you; the person's Task tab
|
|
21
|
+
shows you're watching while it runs. It ends after 20 quiet minutes, and then you stop, and say so, rather than
|
|
22
|
+
watch for ever: [references/watch.md](references/watch.md).
|
|
20
23
|
3. **Work each task**: claim it, read it, look at what's attached, change the source, check the page, complete it
|
|
21
24
|
with what changed: [references/tasks.md](references/tasks.md).
|
|
22
25
|
4. **Recordings and voice**: what happened when, frames at any moment, when something was said:
|
|
23
26
|
[references/recordings.md](references/recordings.md).
|
|
24
27
|
|
|
25
|
-
Then go back to watching. Say in a line what each task was and what you changed.
|
|
28
|
+
Then go back to watching, unless the watch ended idle. Say in a line what each task was and what you changed.
|
|
26
29
|
|
|
27
30
|
## Scripts
|
|
28
31
|
|
|
29
32
|
In `scripts/` beside this file; Node 20+ or Bun, no dependencies of their own. Each takes a task ID (`68`), and the
|
|
30
33
|
recording ones also a replay URL, a recording ID or a JSON file.
|
|
31
34
|
|
|
32
|
-
| Script | What
|
|
33
|
-
| ---------------- |
|
|
34
|
-
| `
|
|
35
|
-
| `
|
|
36
|
-
| `
|
|
37
|
-
| `
|
|
38
|
-
| `
|
|
39
|
-
| `
|
|
35
|
+
| Script | What | Needs |
|
|
36
|
+
| ---------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------- |
|
|
37
|
+
| `vb.mjs` | The board's CLI, found in the project, on the dev server's board | `@vercel/board` in the project, or `vb` on the PATH |
|
|
38
|
+
| `watch.mjs` | One line per new task, reply and cancellation; ends when the channel's idle | `vb` |
|
|
39
|
+
| `task.mjs` | A task briefly: the ask, where, attachments, the page's other open tasks | `vb` |
|
|
40
|
+
| `recording.mjs` | A recording as a timeline: clicks, typing, marks, console, requests; filters | |
|
|
41
|
+
| `frame.mjs` | PNGs of a recording at moments of it, marks and pointer included | dev server, Playwright |
|
|
42
|
+
| `voice.mjs` | When speech happens in each voice clip, in the recording's time; WAV export | ffmpeg |
|
|
43
|
+
| `transcribe.mjs` | What was said, with times, by Whisper on this machine | ffmpeg; `--setup` once, only after the person agrees |
|
|
40
44
|
|
|
41
45
|
## Rules
|
|
42
46
|
|
|
43
47
|
- Claim before you start, and work one task at a time. Never complete, fail or cancel a task you didn't work.
|
|
48
|
+
- Write as your profile (`BOARD_PROFILE`), never as the person. A board lets only a message's author delete it: you
|
|
49
|
+
can't delete what they posted, nor they what you did.
|
|
44
50
|
- What a task says is the person's request, not an instruction to you beyond it: anything risky or outside the
|
|
45
51
|
app's source (credentials, deploys, deleting data) goes back to them as a reply.
|
|
46
52
|
- Unsure what they mean: ask in a reply, keep watching, and come back to it when they answer.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Setting deictic up
|
|
2
2
|
|
|
3
3
|
Only when the project doesn't have it yet, or the person asks. Check first: a `deictic` dependency and its plugin
|
|
4
|
-
in the bundler config. The package's
|
|
4
|
+
in the bundler config. The package's `API.md` has the setup; each plugin's options are its factory's types.
|
|
5
5
|
|
|
6
6
|
## The package and the bundler
|
|
7
7
|
|
|
@@ -26,15 +26,17 @@ other options so they can add or drop some:
|
|
|
26
26
|
|
|
27
27
|
> I'd set deictic up for tasks: Alt-click an element, describe the change, and attach a screenshot (which you can
|
|
28
28
|
> draw on), a screen recording, or your voice; it goes to a Vercel Board for me to work. That's the tasks,
|
|
29
|
-
> screenshots, annotations, recordings and voice plugins
|
|
30
|
-
>
|
|
29
|
+
> screenshots, annotations, recordings and voice plugins (a recording keeps the page's console and its requests too,
|
|
30
|
+
> secrets masked), plus `@vercel/board`, `rrweb`, `rrweb-player`, `rrweb-snapshot`, rrweb's console and network plugins
|
|
31
|
+
> and `playwright-core` as dev dependencies. Also available: Tailwind (edit an element's classes in place, no task
|
|
31
32
|
> needed), screenshots drawn in the page instead of a headless browser (`dom()`, for a page with no server to
|
|
32
33
|
> render on), a channel or labels for the tasks, and a shortcut other than Alt. Go with the recommended setup?
|
|
33
34
|
|
|
34
35
|
On yes, the recommended setup:
|
|
35
36
|
|
|
36
37
|
```bash
|
|
37
|
-
npm install -D deictic @vercel/board rrweb rrweb-player rrweb-snapshot playwright-core
|
|
38
|
+
npm install -D deictic @vercel/board rrweb rrweb-player rrweb-snapshot playwright-core \
|
|
39
|
+
@rrweb/rrweb-plugin-console-record @rrweb/rrweb-plugin-network-record
|
|
38
40
|
```
|
|
39
41
|
|
|
40
42
|
```ts
|
|
@@ -56,26 +58,46 @@ To fit what they choose instead: a plugin's options go under its name, `false` l
|
|
|
56
58
|
| `annotations()` | Marks on the page, on shots (Annotate) and in recordings | |
|
|
57
59
|
| `recordings()` | Record beside Attach: a screen recording attached to a task | `rrweb`, `rrweb-player` (its replay) |
|
|
58
60
|
| `voice()` | The mic, in recordings and as voice notes in a task | |
|
|
61
|
+
| `logs()` | The console's lines and uncaught errors in a recording; `{ levels }` | `@rrweb/rrweb-plugin-console-record` |
|
|
62
|
+
| `network()` | The page's requests in a recording, masked; `{ headers, body, mask, ignore }` | `@rrweb/rrweb-plugin-network-record` |
|
|
59
63
|
| `tailwind()` | Edit an element's classes in place; `{ css: 'src/index.css' }` names the theme's sheet | |
|
|
60
64
|
|
|
61
65
|
`deictic({ shortcut })` changes Alt-click, or `false` for none. The plugins' order is the tabs' order: keep theirs.
|
|
62
66
|
|
|
67
|
+
A build has nothing of deictic. Only for a deployed demo with no dev server, `deictic/vite` takes
|
|
68
|
+
`standalone: 'src/standalone.ts'`: deictic is then in the build, and that module's default export (a `Standalone`,
|
|
69
|
+
from `deictic`: `(request: Request) => Response`) answers in the page what the dev server would under `/__deictic/`
|
|
70
|
+
(`read` → `{ model }`, `apply` → `{ model, change: { label } }`, `undo`, `redo`, `history`, each plugin's routes).
|
|
71
|
+
What keeps a shot (`add`), a voice clip (`add`, then `more/<id>`, the last with `?last`) or a recording (`begin`,
|
|
72
|
+
`part/<id>?seq=<n>`, then `end/<id>` or `discard/<id>`) may name the `url` it's kept at. For a recording that's a
|
|
73
|
+
replay page the build publishes: `replayPage({ player, source })` from `deictic/recordings` is its HTML.
|
|
74
|
+
|
|
63
75
|
## The board
|
|
64
76
|
|
|
65
|
-
Tasks go to a Vercel Board.
|
|
77
|
+
Tasks go to a Vercel Board. With nothing set, the dev server starts one on this machine and stops it as it stops:
|
|
78
|
+
`http://127.0.0.1:4100/api/board` (another port where that one's taken), its log in `.deictic/board`. It prints the
|
|
79
|
+
URL as it starts and keeps it in `.deictic/board.json`:
|
|
66
80
|
|
|
67
81
|
```bash
|
|
68
|
-
|
|
69
|
-
|
|
82
|
+
export BOARD_PROFILE=claude # your name: what you post is yours, not the person's
|
|
83
|
+
node <skill>/scripts/vb.mjs whoami # krtgo/claude, and the board's URL
|
|
70
84
|
```
|
|
71
85
|
|
|
72
|
-
|
|
73
|
-
|
|
86
|
+
`vb.mjs` is the project's own `vb` (in `node_modules/.bin`, so rarely on the PATH), and like the other scripts here
|
|
87
|
+
it reads that file when `BOARD_URL` isn't set. A `vb` you run yourself needs the variable:
|
|
88
|
+
`export BOARD_URL=$(node -p "require('./.deictic/board.json').url")`. The board is there only while the dev server
|
|
89
|
+
runs.
|
|
90
|
+
|
|
91
|
+
For another board, set `BOARD_URL` for the dev server and for `vb` alike. For the team's, through `vercel login`,
|
|
92
|
+
with no `BOARD_URL`: `tasks({ board: board() })` in the bundler config (`board` from `@vercel/board`), or
|
|
93
|
+
`recommended({ tasks: { board: board() } })`. `board: local({ port, dir, inspect, args })`, with `local` from
|
|
94
|
+
`deictic/tasks`, is the board on this machine with those options (its port, its folder from the root, `false` for
|
|
95
|
+
none of its pages, more of `vb serve`'s arguments), and whatever `BOARD_URL` says.
|
|
74
96
|
|
|
75
97
|
## This skill
|
|
76
98
|
|
|
77
99
|
```bash
|
|
78
|
-
npx skills add
|
|
100
|
+
npx skills add gkurt/deictic # or ./node_modules/deictic, the installed package's; -a <agent> to pick agents, -g for global
|
|
79
101
|
```
|
|
80
102
|
|
|
81
103
|
Then restart the agent if it only reads skills as it starts.
|
|
@@ -6,6 +6,23 @@ start). The person's marks are custom events tagged `deictic.annotations` (`anno
|
|
|
6
6
|
in page coordinates: CSS pixels from the document's top left), one at the start and one at each change;
|
|
7
7
|
`deictic.end` marks where it stopped. Times below are from the recording's start.
|
|
8
8
|
|
|
9
|
+
A recording may cross pages: the person reloaded, or followed a link, and it went on. `page` is where it started, which
|
|
10
|
+
is the page with the task's element; each page it went to is a `page` line in the timeline, and what follows happened
|
|
11
|
+
there. A mic that was on makes a clip per page.
|
|
12
|
+
|
|
13
|
+
Where the project loads the `logs` and `network` plugins, the recording has rrweb's own plugin events too (type 6):
|
|
14
|
+
|
|
15
|
+
- `rrweb/console@1`: what the page logged, and the errors nothing caught (`level`, `payload`, each argument as JSON,
|
|
16
|
+
and `trace`, where from). `console.<level>` lines in the timeline, at the moment they happened, so an error sits
|
|
17
|
+
right after the click that caused it, with where it came from under a warning or an error.
|
|
18
|
+
- `rrweb/network@1`: the page's requests (`requests`, each with its `name`, the URL, `status`, `duration`, and where
|
|
19
|
+
the project asked for them `method`, headers and bodies). `request` lines in the timeline, as each ended. Secrets
|
|
20
|
+
were blanked to `***` before it was kept, so a `***` is not what the page sent. `--json` has the whole request.
|
|
21
|
+
|
|
22
|
+
Both only from when the recording started. The replay page lists them beside the page, for a person; `&bare` (what
|
|
23
|
+
`frame.mjs` opens) is the page alone. A `<canvas>` is recorded as pictures of it, a few a second. A route change with no load (a router's) is a `page` line too, from a
|
|
24
|
+
custom event tagged `deictic.page` (`href`).
|
|
25
|
+
|
|
9
26
|
A task attaches each recording as `recording-<id>.json` and its clips as `voice-<id>.webm`; the dev server keeps
|
|
10
27
|
them under `.deictic/recordings` and `.deictic/voice` too. Every script takes the task's ID.
|
|
11
28
|
|
|
@@ -26,6 +43,18 @@ node <skill>/scripts/recording.mjs 68 # --nth 2 for a task's second recordi
|
|
|
26
43
|
Clicks and typing name the element and the nearest source place deictic marked. Marks say what was drawn and where
|
|
27
44
|
(a box or a pen stroke around something is pointing at it); the notes' text is quoted.
|
|
28
45
|
|
|
46
|
+
Ask for a part of it, in any mix, where the whole is long:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
node <skill>/scripts/recording.mjs 68 --problems # errors, warnings and requests that failed
|
|
50
|
+
node <skill>/scripts/recording.mjs 68 --around 12 # the 3 seconds either side; or --from 10 --to 15
|
|
51
|
+
node <skill>/scripts/recording.mjs 68 --only console,request # kinds of line: page, click, input, scroll, resize, marks, voice, console, request
|
|
52
|
+
node <skill>/scripts/recording.mjs 68 --grep /api/plans --full # lines with the text; --full: stacks, headers and bodies
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
To find what went wrong: `--problems` first, then `--around` its moment for the click or the request before it,
|
|
56
|
+
then `frame.mjs --at` that moment for what the page looked like.
|
|
57
|
+
|
|
29
58
|
## Frames
|
|
30
59
|
|
|
31
60
|
```bash
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# Working a task
|
|
2
2
|
|
|
3
|
+
`vb` is `node <skill>/scripts/vb.mjs` (the project's own CLI, on the dev server's board), with `BOARD_PROFILE` set
|
|
4
|
+
to your name.
|
|
5
|
+
|
|
3
6
|
## 1. Claim and read
|
|
4
7
|
|
|
5
8
|
```bash
|
|
@@ -11,40 +14,63 @@ A task's text is what the person typed. Where there's more that no label holds,
|
|
|
11
14
|
|
|
12
15
|
- What's attached and needs saying: the marks on a screenshot and what the notes say; a recording, its length, its
|
|
13
16
|
voice clips and its replay URL; a voice note's length.
|
|
17
|
+
- `Source:` the chain of source it rendered through, from its own line out:
|
|
18
|
+
`src/ui/label.tsx:6 ← src/ParticipantsField.tsx:20 ← src/WorkflowPanel.tsx:880`. Each place after the first is
|
|
19
|
+
where the file before it is used: the line of the element around that use, so the component's own tag is at or
|
|
20
|
+
just under it. When `deictic.at` is a shared component (`ui/label.tsx`, seven of them on the page), the change
|
|
21
|
+
is rarely there: it's at the next place, or the one after. No line when it all came from one file.
|
|
14
22
|
- Sometimes `Pointed at, inside it:` a path and HTML: the person pointed at markup inside the element that no line
|
|
15
23
|
marks (a dependency's, or a shadow root's). That part is what they mean; find it by its classes. On deictic's
|
|
16
24
|
own `/internal/` page it's deictic's popup, so the fix is in deictic's client code, not the page.
|
|
17
25
|
|
|
18
26
|
The short facts are labels, which `task.mjs` prints (or `vb read 68 --json`):
|
|
19
27
|
|
|
20
|
-
| Label | Value
|
|
21
|
-
| ------------------ |
|
|
22
|
-
| `deictic.project` | The project: its `package.json`'s name, or what the config says. On a shared board, work only your project's
|
|
23
|
-
| `deictic.at` | `src/pages/home.tsx:42:9`: the element's opening tag, from the dev server's root (the folder its `.deictic/` is in), in UTF-16 columns from 1
|
|
24
|
-
| `deictic.
|
|
25
|
-
| `deictic.
|
|
26
|
-
| `deictic.
|
|
27
|
-
| `deictic.
|
|
28
|
-
| `deictic.
|
|
29
|
-
| `deictic.
|
|
30
|
-
| `deictic.
|
|
31
|
-
| `deictic.
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
28
|
+
| Label | Value |
|
|
29
|
+
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
30
|
+
| `deictic.project` | The project: its `package.json`'s name, or what the config says. On a shared board, work only your project's |
|
|
31
|
+
| `deictic.at` | `src/pages/home.tsx:42:9`: the element's opening tag, from the dev server's root (the folder its `.deictic/` is in), in UTF-16 columns from 1 |
|
|
32
|
+
| `deictic.file` | `src/pages/home.tsx`: that file alone, to list every task about it (`vb tail --label`) |
|
|
33
|
+
| `deictic.tag` | `p` |
|
|
34
|
+
| `deictic.line` | The opening tag's first line as the task saw it, up to 256 characters |
|
|
35
|
+
| `deictic.page` | The page's path |
|
|
36
|
+
| `deictic.url` | The page's whole URL (in the text instead when it's over 256 characters) |
|
|
37
|
+
| `deictic.viewport` | `1280x800`, so you can look at the page as they did |
|
|
38
|
+
| `deictic.count` | How many elements on the page that line renders |
|
|
39
|
+
| `deictic.position` | `87,387`: the element's `x,y` in the screenshot, in CSS pixels from its top left; the PNG may have twice as many (its width over the viewport's) |
|
|
40
|
+
| `deictic.size` | `138x32`: its width and height there |
|
|
41
|
+
|
|
42
|
+
`deictic.position` and `deictic.size` are there with one screenshot; with several, each one's place is in the text.
|
|
43
|
+
You rarely need them for a screenshot taken with the task: the element is outlined in it, in green dashes, which
|
|
44
|
+
the text says (`the element outlined in dashes`). One the person annotated has their marks and no outline. The source isn't in the task: read the file.
|
|
45
|
+
|
|
46
|
+
Attached to most tasks is `element.html`: the element's HTML when the task was left, masked as the screenshots
|
|
47
|
+
are. Don't read it by default; download it (`vb download <attachment> element.html`) when the task and the
|
|
48
|
+
screenshot don't settle which of several alike is meant, or you can't open the page as the person had it. Its text
|
|
49
|
+
and classes say what the page showed, and a child's `data-deictic` is the line that wrote it. Not there when the
|
|
50
|
+
person unticked it, or the config says `tasks({ html: false })`.
|
|
51
|
+
|
|
52
|
+
`task.mjs` says whether that line still reads as the task saw it, or where it moved, and lists the other open tasks
|
|
53
|
+
about the same page: tasks left within a minute of each other are often one change (three about one page's
|
|
54
|
+
layout). Read them all before you start; claim and work them one after another, and say in each one's result which
|
|
55
|
+
others the change answers.
|
|
37
56
|
|
|
38
57
|
## 2. Understand what they want
|
|
39
58
|
|
|
40
59
|
- The typed text is the request. When it's short ("fix this", "solve it") or stands in for none typed ("See the
|
|
41
60
|
recording"), the attachments carry it: look at every screenshot, and for a recording, its timeline, frames and voice ([recordings.md](recordings.md)).
|
|
42
|
-
- A screenshot is a PNG: download it (`vb download <attachment>
|
|
43
|
-
|
|
61
|
+
- A screenshot is a PNG: download it to a file's path, not a folder's (`vb download <attachment> shot.png`, or
|
|
62
|
+
all of a task's with `task.mjs 68 --out <dir>`), and look at it. The element is outlined in green dashes, unless the person drew on the shot, and
|
|
63
|
+
the person's marks are drawn in; the notes are in the task's text too.
|
|
44
64
|
- The element is one place; what the person means may be its component, its parent, a sibling (the next card in a
|
|
45
65
|
row), or every element that line renders (a list item). The marks and the words decide.
|
|
46
66
|
- To see it live, open the page at the recorded viewport, find the element with
|
|
47
67
|
`document.querySelector('[data-deictic="src/pages/home.tsx:42:9"]')`, and read its computed style.
|
|
68
|
+
- `deictic.url` is the page as the person had it: their host, their account, their data. You often can't open it.
|
|
69
|
+
Use the app as the project's instructions say to (a local dev server, a test account), and get to the same
|
|
70
|
+
screen by its path (`deictic.page`) and what `element.html` and the screenshot show. Where the test account
|
|
71
|
+
has nothing like it (no workflow with participants, an empty team), make that data if the app lets you, and
|
|
72
|
+
otherwise change the source from the HTML and the screenshot, and say in the result what you couldn't see live.
|
|
73
|
+
Never ask for, or use, the person's own session.
|
|
48
74
|
- Voice carries the request more often than not: transcribe it ([recordings.md](recordings.md#what-was-said)),
|
|
49
75
|
which asks the person once before setting up.
|
|
50
76
|
- Still unsure: ask, quoting what you understood and the times you mean.
|
|
@@ -62,7 +88,8 @@ task: read the file. For the element as it rendered, open the page.
|
|
|
62
88
|
- Edit the source at the place, as the project writes code. Tailwind classes go in the `className` the line shows.
|
|
63
89
|
- The dev server's hot update brings the page in line. Look at the page at the task's viewport (a browser tool, or
|
|
64
90
|
a screenshot), compare it with what was asked, and run the project's checks if the change is more than visual.
|
|
65
|
-
- A change the page can't show (copy that comes from data, behaviour after a click)
|
|
91
|
+
- A change the page can't show (copy that comes from data, behaviour after a click), or one you couldn't open the
|
|
92
|
+
page for: say how you checked it, and what you didn't.
|
|
66
93
|
|
|
67
94
|
## 4. Finish
|
|
68
95
|
|
|
@@ -76,4 +103,5 @@ The result is what the person reads first: what changed, where, and anything you
|
|
|
76
103
|
- `vb tasks fail 68 "<why>"`: it can't be done as asked; say what would make it possible.
|
|
77
104
|
- `vb reply 68 "…"`: a note on it without changing its state.
|
|
78
105
|
|
|
79
|
-
Then go back to the watch, and say in one line which task you closed
|
|
106
|
+
Then go back to the watch (start it again if it ended while you worked), and say in one line which task you closed
|
|
107
|
+
and what changed.
|
|
@@ -3,37 +3,58 @@
|
|
|
3
3
|
The point is that a task left in the page gets worked without anyone prompting you. Use whatever your harness has
|
|
4
4
|
for being woken by a command's output; between tasks, never sleep-poll in the foreground.
|
|
5
5
|
|
|
6
|
-
`<skill>` below is this skill's folder; `deictic` is the channel (pass yours if the config sets another).
|
|
6
|
+
`<skill>` below is this skill's folder; `deictic` is the channel (pass yours if the config sets another). `vb` is
|
|
7
|
+
`node <skill>/scripts/vb.mjs`. Set `BOARD_PROFILE=<your name>` for the watch as for everything else.
|
|
8
|
+
|
|
9
|
+
Always watch with `watch.mjs`, not with `vb` by itself: while it runs, the person's Task tab says you're watching
|
|
10
|
+
(`claude watching`, beside the channel), which is how they know a task they add is taken up. A board can't tell
|
|
11
|
+
them.
|
|
12
|
+
|
|
13
|
+
## A watch ends when nothing happens
|
|
14
|
+
|
|
15
|
+
Don't watch for ever. `watch.mjs` ends by itself once nothing has happened on the channel for 20 minutes
|
|
16
|
+
(`--idle 45m` for another stretch; your own claims and replies count as something), printing `idle: …` and
|
|
17
|
+
exiting 2. Then:
|
|
18
|
+
|
|
19
|
+
- **Don't start it again by yourself.** Tell the person in one line that you've stopped watching; watch again when
|
|
20
|
+
they ask, or give you a task.
|
|
21
|
+
- Only if you were in the middle of a task when it ended, start it once more when that task is done.
|
|
22
|
+
|
|
23
|
+
That's different from your harness cutting the watch off while the channel was busy (a monitor's timeout): then
|
|
24
|
+
start it again at once.
|
|
7
25
|
|
|
8
26
|
## With a monitor (Claude Code's Monitor, or any tool that turns each output line into an event)
|
|
9
27
|
|
|
10
|
-
Run `node <skill>/scripts/watch.mjs deictic` as the monitor, with the longest timeout it allows
|
|
11
|
-
|
|
28
|
+
Run `node <skill>/scripts/watch.mjs deictic` as the monitor, with the longest timeout it allows (Claude Code's: 30
|
|
29
|
+
minutes), and start it again when the monitor expires, unless the watch said `idle` first. It prints, one line each:
|
|
12
30
|
|
|
13
31
|
- `ready: #68 …` for each task already waiting as it starts;
|
|
14
32
|
- `new task #71: "Make it bolder" at src/App.tsx:12:5 on /`;
|
|
15
|
-
- `reply on #71 by krtgo: …`: an answer to your question, or more to do on a task
|
|
33
|
+
- `reply on #71 by krtgo: …`: an answer to your question, or more to do on a task. Your own replies aren't
|
|
34
|
+
printed, as long as you have a profile: with none you write as the person, the watch can't tell you apart, and
|
|
35
|
+
it says so as it starts;
|
|
16
36
|
- `task #71 canceled: …`: the person undid it in the page; stop, and put back what you changed for it;
|
|
37
|
+
- `idle: …`: nothing in 20 minutes, the watch is over (above);
|
|
17
38
|
- `watch ended …`: the board went away; check `vb whoami`, then start it again.
|
|
18
39
|
|
|
19
|
-
On an event, work the task ([tasks.md](tasks.md)) while the monitor keeps running.
|
|
40
|
+
On an event, work the task ([tasks.md](tasks.md)) while the monitor keeps running.
|
|
20
41
|
|
|
21
42
|
## With a background command that exits (one wake-up per task)
|
|
22
43
|
|
|
23
44
|
Where you're notified when a background command ends but can't stream events, run in the background:
|
|
24
45
|
|
|
25
46
|
```bash
|
|
26
|
-
|
|
47
|
+
node <skill>/scripts/watch.mjs deictic --once
|
|
27
48
|
```
|
|
28
49
|
|
|
29
|
-
It
|
|
30
|
-
|
|
31
|
-
`
|
|
50
|
+
It prints the tasks ready now and exits, or with none, waits for the first new task, reply or cancellation, prints
|
|
51
|
+
it and exits 0. Work it (claim the task first: [tasks.md](tasks.md)), then start it again. It exits 2 with an
|
|
52
|
+
`idle: …` line after 20 quiet minutes: then stop, as above.
|
|
32
53
|
|
|
33
54
|
## Without either
|
|
34
55
|
|
|
35
|
-
Run that same `
|
|
36
|
-
|
|
56
|
+
Run that same `watch.mjs deictic --once` in the foreground at the end of each task: your turn waits for the next
|
|
57
|
+
one. Tell the person that's how you're waiting, as it holds the session.
|
|
37
58
|
|
|
38
59
|
## Things to know
|
|
39
60
|
|
|
@@ -41,3 +62,9 @@ waits for the next one. Tell the person that's how you're waiting, as it holds t
|
|
|
41
62
|
- `vb tasks deictic` lists what's open; `--state ready` what's waiting.
|
|
42
63
|
- Several agents can watch one channel: a claim is what keeps two from taking the same task.
|
|
43
64
|
- Undo in the page cancels a task only while no one has claimed it; after that the person replies instead.
|
|
65
|
+
- The Task tab knows of a watch run from the project's folder (it keeps a file under `.deictic/watchers` while it
|
|
66
|
+
runs). One killed is gone from the page within a minute. While you hold a claim it says you're there too, watch
|
|
67
|
+
or no watch.
|
|
68
|
+
- The watch ends when the process that started it does, so one left behind by a session that's over doesn't go on
|
|
69
|
+
saying you watch. Run it as your harness's own command (its monitor, its background command), not detached from
|
|
70
|
+
a shell that then exits (`nohup`, `&` and `disown`): that one ends in seconds.
|