Commit 9da1bd2
thread camera_spec through tool registry
waldoctl's ToolSpec now carries an optional camera_spec (default camera
attached to a tool) plus a user-tweakable ToolRuntimeSettings override
layer. ToolConfig grows a matching optional camera_spec field and
_build_tools passes it into each tool constructor; tools that omit it
behave as before (effective_camera_device returns None unless the user
sets a runtime override).
Lets the frontend stream a tool-mounted camera feed only when the active
tool has one configured, and lets the user remap the device per session
(e.g. virtual /dev/videoN for AI-annotation pipelines) without
reinstalling the backend.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 15f02ca commit 9da1bd2
2 files changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
473 | 473 | | |
474 | 474 | | |
475 | 475 | | |
| 476 | + | |
476 | 477 | | |
477 | 478 | | |
478 | 479 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
80 | 86 | | |
81 | 87 | | |
82 | 88 | | |
| |||
0 commit comments