agent-canvas 0.1.39 → 0.1.41
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/bin/lib/instructions/flow-feature.md +1 -1
- package/bin/lib/instructions/flow-plan.md +1 -1
- package/bin/lib/instructions/overview.md +29 -12
- package/daemon/client/App.tsx +7 -3
- package/daemon/client/annotationDraft.test.ts +134 -0
- package/daemon/client/annotationDraft.ts +95 -0
- package/daemon/dist/client.js +33 -33
- package/package.json +1 -1
- package/skills/canvas/SKILL.md +16 -6
- package/workers/canvas-share/public/assets/client.js +33 -33
package/package.json
CHANGED
package/skills/canvas/SKILL.md
CHANGED
|
@@ -13,16 +13,26 @@ disable-model-invocation: true
|
|
|
13
13
|
|
|
14
14
|
## Session
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
Resolve the canvas session ID **once**, then reuse the literal value for the
|
|
17
|
+
entire workflow:
|
|
17
18
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
```bash
|
|
20
|
+
echo "${CANVAS_SESSION_ID:-${CODEX_THREAD_ID:-${CLAUDE_CODE_SESSION_ID:-$(uuidgen)}}}"
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Write the printed value into every canvas command as `--session "<id>"`, and
|
|
24
|
+
store canvas files in `${TMPDIR:-/tmp}/agent-canvas/<id>/`.
|
|
25
|
+
|
|
26
|
+
Do NOT rely on `export` — in some hosts (Claude Code) each shell call starts
|
|
27
|
+
fresh, so the variable will not survive between commands.
|
|
21
28
|
|
|
22
29
|
## Instructions
|
|
23
30
|
|
|
24
|
-
|
|
31
|
+
Run these commands from the user's project root before using Canvas:
|
|
25
32
|
|
|
26
|
-
|
|
33
|
+
```bash
|
|
34
|
+
bunx agent-canvas instructions
|
|
35
|
+
bunx agent-canvas instructions --list
|
|
36
|
+
```
|
|
27
37
|
|
|
28
38
|
**Getting detailed docs**: Run `bunx agent-canvas instructions <topic>` for detailed documentation on any component or flow. For example: `bunx agent-canvas instructions component-mermaid` or `bunx agent-canvas instructions flow-feature`.
|