rdc 0.2.0__tar.gz → 0.3.0__tar.gz

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 (266) hide show
  1. {rdc-0.2.0 → rdc-0.3.0}/PKG-INFO +1 -1
  2. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/components/global-text-input.tsx +3 -1
  3. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/components/project-bar.tsx +38 -30
  4. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/activity/activity-feed.tsx +1 -1
  5. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/browser/browser-panel.tsx +4 -4
  6. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/browser/pinchtab-panel.tsx +1 -1
  7. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/browser/unified-browser-panel.tsx +3 -3
  8. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/channels/channel-sidebar.tsx +5 -5
  9. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/channels/mobile-workspace-selector.tsx +45 -14
  10. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/chat/chat-panel.tsx +1 -1
  11. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/command-bar/command-bar.tsx +22 -6
  12. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/mobile/add-project-sheet.tsx +1 -1
  13. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/mobile/browser-card.tsx +1 -1
  14. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/mobile/chat-card.tsx +52 -4
  15. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/mobile/contexts-card.tsx +2 -2
  16. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/mobile/hamburger-sheet.tsx +1 -1
  17. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/mobile/mobile-command-bar.tsx +46 -3
  18. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/mobile/pinchtab-overlay.tsx +1 -1
  19. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/mobile/processes-card.tsx +5 -4
  20. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/mobile/project-card.tsx +1 -1
  21. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/mobile/project-sheet.tsx +4 -4
  22. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/mobile/tasks-card.tsx +1 -1
  23. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/mobile/terminals-card.tsx +6 -6
  24. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/modals/screenshots.tsx +2 -2
  25. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/modals/system-settings.tsx +181 -6
  26. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/processes/add-action-form.tsx +1 -1
  27. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/processes/process-list.tsx +4 -4
  28. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/right-tabs/right-tabs.tsx +21 -14
  29. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/tasks/create-task-form.tsx +1 -1
  30. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/tasks/task-list.tsx +1 -1
  31. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/tasks/task-panel.tsx +2 -2
  32. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/terminal/bottom-panel.tsx +2 -2
  33. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/terminal/embedded-terminal.tsx +54 -32
  34. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/terminal/terminal-view.tsx +83 -20
  35. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/hooks/use-channel-send.ts +22 -6
  36. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/hooks/use-file-upload.ts +1 -1
  37. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/hooks/use-orchestrator.ts +119 -34
  38. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/hooks/use-voice.ts +64 -6
  39. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/hooks/use-workstream-voice.ts +1 -0
  40. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/layouts/desktop.tsx +7 -10
  41. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/layouts/kiosk.tsx +15 -12
  42. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/layouts/mobile.tsx +10 -10
  43. rdc-0.3.0/frontend/src/lib/orchestrator-dispatch.ts +76 -0
  44. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/stores/channel-store.ts +12 -0
  45. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/stores/project-store.ts +41 -23
  46. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/stores/state-store.ts +62 -1
  47. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/stores/terminal-store.ts +38 -2
  48. {rdc-0.2.0 → rdc-0.3.0}/pyproject.toml +1 -1
  49. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/__init__.py +1 -1
  50. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/app.py +446 -27
  51. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/channel_manager.py +23 -0
  52. rdc-0.3.0/src/remote_dev_ctrl/server/channels/email.py +566 -0
  53. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/channels/phone.py +79 -3
  54. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/config.py +34 -1
  55. rdc-0.3.0/src/remote_dev_ctrl/server/db/migrations/rdc/20260410000015_add_email_threads.sql +48 -0
  56. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/db/models.py +59 -0
  57. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/db/repositories.py +259 -0
  58. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/intent.py +312 -39
  59. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/state_machine.py +10 -0
  60. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/terminal.py +14 -2
  61. rdc-0.3.0/src/remote_dev_ctrl/server/voice_runtime.py +219 -0
  62. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/workstream_context.py +3 -3
  63. {rdc-0.2.0 → rdc-0.3.0}/.ai/browser-context-design.md +0 -0
  64. {rdc-0.2.0 → rdc-0.3.0}/.ai/context.md +0 -0
  65. {rdc-0.2.0 → rdc-0.3.0}/.ai/learnings.md +0 -0
  66. {rdc-0.2.0 → rdc-0.3.0}/.ai/worker-design.md +0 -0
  67. {rdc-0.2.0 → rdc-0.3.0}/.github/workflows/publish.yml +0 -0
  68. {rdc-0.2.0 → rdc-0.3.0}/.gitignore +0 -0
  69. {rdc-0.2.0 → rdc-0.3.0}/CLAUDE.md +0 -0
  70. {rdc-0.2.0 → rdc-0.3.0}/LICENSE +0 -0
  71. {rdc-0.2.0 → rdc-0.3.0}/README.md +0 -0
  72. {rdc-0.2.0 → rdc-0.3.0}/SETUP.md +0 -0
  73. {rdc-0.2.0 → rdc-0.3.0}/TODO.md +0 -0
  74. {rdc-0.2.0 → rdc-0.3.0}/design_knowledge_system.md +0 -0
  75. {rdc-0.2.0 → rdc-0.3.0}/design_orchestrator.md +0 -0
  76. {rdc-0.2.0 → rdc-0.3.0}/design_persistent_memory_and_voice.md +0 -0
  77. {rdc-0.2.0 → rdc-0.3.0}/docs/VISUAL_STREAMING_COMPLETE.md +0 -0
  78. {rdc-0.2.0 → rdc-0.3.0}/docs/ai-agent-guide.md +0 -0
  79. {rdc-0.2.0 → rdc-0.3.0}/docs/architecture/autonomous-mode.md +0 -0
  80. {rdc-0.2.0 → rdc-0.3.0}/docs/architecture/data-layer.md +0 -0
  81. {rdc-0.2.0 → rdc-0.3.0}/docs/architecture/phone-calling.md +0 -0
  82. {rdc-0.2.0 → rdc-0.3.0}/docs/architecture/security-audit-findings.md +0 -0
  83. {rdc-0.2.0 → rdc-0.3.0}/docs/architecture/security-audit.md +0 -0
  84. {rdc-0.2.0 → rdc-0.3.0}/docs/architecture/state-machine.md +0 -0
  85. {rdc-0.2.0 → rdc-0.3.0}/docs/architecture/v2-next-session.md +0 -0
  86. {rdc-0.2.0 → rdc-0.3.0}/docs/configuration.md +0 -0
  87. {rdc-0.2.0 → rdc-0.3.0}/docs/frontend-live-spec.md +0 -0
  88. {rdc-0.2.0 → rdc-0.3.0}/docs/human-guide.md +0 -0
  89. {rdc-0.2.0 → rdc-0.3.0}/docs/mcp-setup.md +0 -0
  90. {rdc-0.2.0 → rdc-0.3.0}/docs/one-loop-dev-cycle.md +0 -0
  91. {rdc-0.2.0 → rdc-0.3.0}/docs/remote-desktop-agent-plan.md +0 -0
  92. {rdc-0.2.0 → rdc-0.3.0}/docs/visual-streaming-quickstart.md +0 -0
  93. {rdc-0.2.0 → rdc-0.3.0}/docs/visual-streaming.md +0 -0
  94. {rdc-0.2.0 → rdc-0.3.0}/frontend/.gitignore +0 -0
  95. {rdc-0.2.0 → rdc-0.3.0}/frontend/README.md +0 -0
  96. {rdc-0.2.0 → rdc-0.3.0}/frontend/components.json +0 -0
  97. {rdc-0.2.0 → rdc-0.3.0}/frontend/eslint.config.js +0 -0
  98. {rdc-0.2.0 → rdc-0.3.0}/frontend/index.html +0 -0
  99. {rdc-0.2.0 → rdc-0.3.0}/frontend/package-lock.json +0 -0
  100. {rdc-0.2.0 → rdc-0.3.0}/frontend/package.json +0 -0
  101. {rdc-0.2.0 → rdc-0.3.0}/frontend/pnpm-lock.yaml +0 -0
  102. {rdc-0.2.0 → rdc-0.3.0}/frontend/public/rrweb.min.js +0 -0
  103. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/App.tsx +0 -0
  104. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/components/collection-picker.tsx +0 -0
  105. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/components/toast.tsx +0 -0
  106. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/components/ui/badge.tsx +0 -0
  107. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/components/ui/button.tsx +0 -0
  108. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/components/ui/card.tsx +0 -0
  109. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/components/ui/input.tsx +0 -0
  110. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/components/ui/scroll-area.tsx +0 -0
  111. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/components/ui/separator.tsx +0 -0
  112. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/components/ui/tabs.tsx +0 -0
  113. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/components/ui/textarea.tsx +0 -0
  114. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/components/ui/tooltip.tsx +0 -0
  115. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/agent/agent-run-panel.tsx +0 -0
  116. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/auth/pair-approve.tsx +0 -0
  117. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/browser/floating-agent-panel.tsx +0 -0
  118. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/browser/recording-player.tsx +0 -0
  119. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/channels/channel-messages.tsx +0 -0
  120. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/channels/channel-panel.tsx +0 -0
  121. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/channels/channel-settings.tsx +0 -0
  122. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/channels/floating-channel-panel.tsx +0 -0
  123. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/channels/message-renderer.tsx +0 -0
  124. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/channels/mobile-channel-panel.tsx +0 -0
  125. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/chat/chat-fab.tsx +0 -0
  126. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/chat/chat-renderer.tsx +0 -0
  127. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/logs/logs-panel.tsx +0 -0
  128. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/mobile/activity-sheet.tsx +0 -0
  129. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/mobile/attention-card.tsx +0 -0
  130. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/mobile/create-task-sheet.tsx +0 -0
  131. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/mobile/dictation-card.tsx +0 -0
  132. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/mobile/paired-devices-sheet.tsx +0 -0
  133. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/mobile/pinchtab-card.tsx +0 -0
  134. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/mobile/process-log-overlay.tsx +0 -0
  135. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/mobile/sheet.tsx +0 -0
  136. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/mobile/task-output-overlay.tsx +0 -0
  137. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/mobile/terminal-overlay.tsx +0 -0
  138. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/modals/browser-preview.tsx +0 -0
  139. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/modals/collections-manager.tsx +0 -0
  140. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/modals/context-viewer.tsx +0 -0
  141. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/modals/pair-device.tsx +0 -0
  142. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/modals/port-assignments.tsx +0 -0
  143. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/modals/project-settings.tsx +0 -0
  144. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/output/output-panel.tsx +0 -0
  145. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/sessions/session-viewer.tsx +0 -0
  146. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/sessions/sessions-card.tsx +0 -0
  147. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/features/stats/stats-grid.tsx +0 -0
  148. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/hooks/use-browser-agent.ts +0 -0
  149. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/hooks/use-mount-effect.ts +0 -0
  150. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/index.css +0 -0
  151. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/lib/agent-presets.ts +0 -0
  152. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/lib/api.ts +0 -0
  153. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/lib/chat-catalog.ts +0 -0
  154. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/lib/chat-components.tsx +0 -0
  155. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/lib/client-id.ts +0 -0
  156. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/lib/utils.ts +0 -0
  157. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/lib/ws.ts +0 -0
  158. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/main.tsx +0 -0
  159. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/stores/agent-run-store.ts +0 -0
  160. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/stores/auth-store.ts +0 -0
  161. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/stores/browser-store.ts +0 -0
  162. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/stores/dictation-store.ts +0 -0
  163. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/stores/logs-store.ts +0 -0
  164. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/stores/pinchtab-store.ts +0 -0
  165. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/stores/process-store.ts +0 -0
  166. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/stores/terminal-presets-store.ts +0 -0
  167. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/stores/ui-store.ts +0 -0
  168. {rdc-0.2.0 → rdc-0.3.0}/frontend/src/types/index.ts +0 -0
  169. {rdc-0.2.0 → rdc-0.3.0}/frontend/tsconfig.app.json +0 -0
  170. {rdc-0.2.0 → rdc-0.3.0}/frontend/tsconfig.json +0 -0
  171. {rdc-0.2.0 → rdc-0.3.0}/frontend/tsconfig.node.json +0 -0
  172. {rdc-0.2.0 → rdc-0.3.0}/frontend/vite.config.ts +0 -0
  173. {rdc-0.2.0 → rdc-0.3.0}/install.sh +0 -0
  174. {rdc-0.2.0 → rdc-0.3.0}/mcp-config.json +0 -0
  175. {rdc-0.2.0 → rdc-0.3.0}/rdc.yml +0 -0
  176. {rdc-0.2.0 → rdc-0.3.0}/scripts/rdc-launch.sh +0 -0
  177. {rdc-0.2.0 → rdc-0.3.0}/src/gwd/__init__.py +0 -0
  178. {rdc-0.2.0 → rdc-0.3.0}/src/gwd/__main__.py +0 -0
  179. {rdc-0.2.0 → rdc-0.3.0}/src/gwd/classify.py +0 -0
  180. {rdc-0.2.0 → rdc-0.3.0}/src/gwd/client.py +0 -0
  181. {rdc-0.2.0 → rdc-0.3.0}/src/gwd/executor.py +0 -0
  182. {rdc-0.2.0 → rdc-0.3.0}/src/gwd/orchestrator.py +0 -0
  183. {rdc-0.2.0 → rdc-0.3.0}/src/gwd/planner.py +0 -0
  184. {rdc-0.2.0 → rdc-0.3.0}/src/gwd/prompts.py +0 -0
  185. {rdc-0.2.0 → rdc-0.3.0}/src/gwd/tools.py +0 -0
  186. {rdc-0.2.0 → rdc-0.3.0}/src/gwd/types.py +0 -0
  187. {rdc-0.2.0 → rdc-0.3.0}/src/gwd/verifier.py +0 -0
  188. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/cli.py +0 -0
  189. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/llm.py +0 -0
  190. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/mcp/__init__.py +0 -0
  191. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/mcp/server.py +0 -0
  192. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/scaffold.py +0 -0
  193. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/__init__.py +0 -0
  194. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/actions.py +0 -0
  195. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/agents/__init__.py +0 -0
  196. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/agents/gwd_provider.py +0 -0
  197. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/agents/manager.py +0 -0
  198. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/agents/provider.py +0 -0
  199. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/agents/terminal_provider.py +0 -0
  200. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/agents/tools.py +0 -0
  201. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/agents/web_provider.py +0 -0
  202. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/audit.py +0 -0
  203. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/auth.py +0 -0
  204. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/browser.py +0 -0
  205. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/browser_use.py +0 -0
  206. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/caddy.py +0 -0
  207. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/channels/__init__.py +0 -0
  208. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/channels/telegram.py +0 -0
  209. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/chrome.py +0 -0
  210. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/collections_page.py +0 -0
  211. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/context_synthesizer.py +0 -0
  212. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/conversation.py +0 -0
  213. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/dashboard.py +0 -0
  214. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/db/__init__.py +0 -0
  215. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/db/connection.py +0 -0
  216. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/db/migrate.py +0 -0
  217. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/db/migrations/logs/20260210000001_create_schema.sql +0 -0
  218. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/db/migrations/rdc/20260210000001_create_schema.sql +0 -0
  219. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/db/migrations/rdc/20260210000002_add_project_description.sql +0 -0
  220. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/db/migrations/rdc/20260210000003_runtime_state_tables.sql +0 -0
  221. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/db/migrations/rdc/20260212000004_add_collections.sql +0 -0
  222. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/db/migrations/rdc/20260213000005_add_agent_sessions.sql +0 -0
  223. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/db/migrations/rdc/20260222000006_browser_nullable_process_id.sql +0 -0
  224. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/db/migrations/rdc/20260222000007_add_recordings.sql +0 -0
  225. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/db/migrations/rdc/20260305000008_add_recipes.sql +0 -0
  226. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/db/migrations/rdc/20260312000009_add_project_tags.sql +0 -0
  227. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/db/migrations/rdc/20260316000010_add_actions.sql +0 -0
  228. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/db/migrations/rdc/20260403000011_add_channels.sql +0 -0
  229. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/db/migrations/rdc/20260404000012_add_channel_collection.sql +0 -0
  230. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/db/migrations/rdc/20260406000013_add_sessions.sql +0 -0
  231. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/db/migrations/rdc/20260406000014_session_multi_terminal.sql +0 -0
  232. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/db/migrations/tasks/20260210000001_create_schema.sql +0 -0
  233. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/debug_page.py +0 -0
  234. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/event_store.py +0 -0
  235. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/events/__init__.py +0 -0
  236. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/events/bus.py +0 -0
  237. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/middleware.py +0 -0
  238. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/orchestrator.py +0 -0
  239. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/pinchtab.py +0 -0
  240. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/ports.py +0 -0
  241. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/process_discovery.py +0 -0
  242. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/processes.py +0 -0
  243. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/pty_relay.py +0 -0
  244. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/queue/__init__.py +0 -0
  245. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/recipes.py +0 -0
  246. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/recording.py +0 -0
  247. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/scrubber.py +0 -0
  248. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/session_manager.py +0 -0
  249. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/static/rrweb.min.js +0 -0
  250. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/static/shared.css +0 -0
  251. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/static/vendor/tailwind.js +0 -0
  252. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/static/vendor/xstate.js +0 -0
  253. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/static/vendor/xterm-addon-fit.js +0 -0
  254. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/static/vendor/xterm-addon-unicode11.js +0 -0
  255. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/static/vendor/xterm-addon-web-links.js +0 -0
  256. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/static/vendor/xterm.css +0 -0
  257. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/static/vendor/xterm.js +0 -0
  258. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/streaming.py +0 -0
  259. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/tts.py +0 -0
  260. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/utils.py +0 -0
  261. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/vault.py +0 -0
  262. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/vnc.py +0 -0
  263. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/voice_agent.py +0 -0
  264. {rdc-0.2.0 → rdc-0.3.0}/src/remote_dev_ctrl/server/worker.py +0 -0
  265. {rdc-0.2.0 → rdc-0.3.0}/tests/test_visual_streaming.py +0 -0
  266. {rdc-0.2.0 → rdc-0.3.0}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rdc
3
- Version: 0.2.0
3
+ Version: 0.3.0
4
4
  Summary: Command center for AI-assisted development. Manage multiple AI coding agents from any device.
5
5
  Project-URL: Homepage, https://github.com/dawalama/remote-dev-ctrl
6
6
  Project-URL: Repository, https://github.com/dawalama/remote-dev-ctrl
@@ -1,4 +1,5 @@
1
1
  import { useState, useRef, useCallback, useEffect } from "react"
2
+ import { X } from "lucide-react"
2
3
  import { useUIStore } from "@/stores/ui-store"
3
4
  import { useVoice } from "@/hooks/use-voice"
4
5
 
@@ -320,8 +321,9 @@ export function GlobalTextInput() {
320
321
  <button
321
322
  className={`rounded bg-gray-700 text-gray-400 ${sz}`}
322
323
  onClick={fadeClose}
324
+ title="Close"
323
325
  >
324
- ✕
326
+ <X className={isKiosk ? "w-5 h-5" : "w-4 h-4"} />
325
327
  </button>
326
328
  </div>
327
329
 
@@ -28,11 +28,15 @@ export function ProjectBar() {
28
28
  // When activeOnly, show all active projects across collections; otherwise filter by collection
29
29
  const filteredProjects = activeOnly
30
30
  ? projects.filter((p) => activeSet.has(p.name))
31
- : currentCollection === "all"
31
+ : !currentCollection
32
32
  ? projects
33
33
  : projects.filter((p) => p.collection_id === currentCollection)
34
34
 
35
- const names = ["all", ...filteredProjects.map((p) => p.name)]
35
+ // `null` represents the "All" option — no project selected.
36
+ const entries: { label: string; value: string | null }[] = [
37
+ { label: "All", value: null },
38
+ ...filteredProjects.map((p) => ({ label: p.name, value: p.name })),
39
+ ]
36
40
 
37
41
  const hasActiveProjects = activeSet.size > 0
38
42
 
@@ -43,11 +47,11 @@ export function ProjectBar() {
43
47
  {collections.length > 0 && (
44
48
  <>
45
49
  <select
46
- value={currentCollection}
47
- onChange={(e) => selectCollection(e.target.value)}
50
+ value={currentCollection ?? ""}
51
+ onChange={(e) => selectCollection(e.target.value || null)}
48
52
  className="bg-gray-700 rounded px-2 py-1 text-sm text-gray-200 outline-none cursor-pointer"
49
53
  >
50
- <option value="all">All ({projects.length})</option>
54
+ <option value="">All ({projects.length})</option>
51
55
  {collections.map((c) => (
52
56
  <option key={c.id} value={c.id}>
53
57
  {c.name} ({c.project_count || c.projects?.length || 0})
@@ -64,23 +68,23 @@ export function ProjectBar() {
64
68
  <span className="text-gray-500 text-sm">›</span>
65
69
  </>
66
70
  )}
67
- {names.map((name) => (
71
+ {entries.map((entry) => (
68
72
  <button
69
- key={name}
73
+ key={entry.label}
70
74
  className={`relative px-3 py-1 rounded text-sm transition-colors ${
71
- currentProject === name
75
+ currentProject === entry.value
72
76
  ? "bg-blue-600 text-white"
73
77
  : "bg-gray-700 text-gray-300 hover:bg-gray-600"
74
78
  }`}
75
- onClick={() => selectProject(name)}
79
+ onClick={() => selectProject(entry.value)}
76
80
  >
77
- {name === "all" ? "All" : name}
78
- {name !== "all" && activeSet.has(name) && (
81
+ {entry.label}
82
+ {entry.value && activeSet.has(entry.value) && (
79
83
  <span className="absolute -top-0.5 -right-0.5 w-2 h-2 rounded-full bg-green-400" />
80
84
  )}
81
85
  </button>
82
86
  ))}
83
- {activeOnly && !hasActiveProjects && names.length <= 1 && (
87
+ {activeOnly && !hasActiveProjects && entries.length <= 1 && (
84
88
  <span className="text-xs text-gray-500 italic">No active projects</span>
85
89
  )}
86
90
  <button
@@ -152,21 +156,25 @@ export function CommandPalette() {
152
156
  const matchingCollections = q
153
157
  ? collections.filter((c) => c.name.toLowerCase().includes(q))
154
158
  : collections
155
- const allNames = ["all", ...projects.map((p) => p.name)]
159
+ // `value: null` represents the "All Projects" entry.
160
+ const allEntries: { label: string; value: string | null }[] = [
161
+ { label: "All Projects", value: null },
162
+ ...projects.map((p) => ({ label: p.name, value: p.name })),
163
+ ]
156
164
  const filtered = q
157
- ? allNames.filter((n) => n.toLowerCase().includes(q))
158
- : allNames
159
- // Sort active projects to top (keep "all" first)
165
+ ? allEntries.filter((e) => e.label.toLowerCase().includes(q))
166
+ : allEntries
167
+ // Sort active projects to top (keep "All Projects" first)
160
168
  const matchingProjects = filtered.sort((a, b) => {
161
- if (a === "all") return -1
162
- if (b === "all") return 1
163
- const aActive = activeSet.has(a) ? 0 : 1
164
- const bActive = activeSet.has(b) ? 0 : 1
169
+ if (a.value === null) return -1
170
+ if (b.value === null) return 1
171
+ const aActive = activeSet.has(a.value) ? 0 : 1
172
+ const bActive = activeSet.has(b.value) ? 0 : 1
165
173
  return aActive - bActive
166
174
  })
167
175
 
168
- const pick = (name: string) => {
169
- selectProject(name)
176
+ const pick = (value: string | null) => {
177
+ selectProject(value)
170
178
  setOpen(false)
171
179
  }
172
180
 
@@ -193,7 +201,7 @@ export function CommandPalette() {
193
201
  onChange={(e) => setQuery(e.target.value)}
194
202
  onKeyDown={(e) => {
195
203
  if (e.key === "Escape") setOpen(false)
196
- if (e.key === "Enter" && matchingProjects.length > 0) pick(matchingProjects[0])
204
+ if (e.key === "Enter" && matchingProjects.length > 0) pick(matchingProjects[0].value)
197
205
  }}
198
206
  placeholder="Search projects & collections..."
199
207
  className="w-full bg-gray-900 border border-gray-600 rounded px-3 py-2 text-sm text-gray-200 outline-none focus:border-blue-500"
@@ -230,20 +238,20 @@ export function CommandPalette() {
230
238
  <div className="px-4 py-1.5 text-[10px] font-semibold text-gray-500 uppercase tracking-wider bg-gray-800/50">
231
239
  Projects
232
240
  </div>
233
- {matchingProjects.map((name) => {
234
- const proj = projects.find((p) => p.name === name)
241
+ {matchingProjects.map((entry) => {
242
+ const proj = entry.value ? projects.find((p) => p.name === entry.value) : null
235
243
  const col = proj?.collection_id
236
244
  ? collections.find((c) => c.id === proj.collection_id)
237
245
  : null
238
- const isActive = name !== "all" && activeSet.has(name)
246
+ const isActive = entry.value !== null && activeSet.has(entry.value)
239
247
  return (
240
248
  <button
241
- key={name}
249
+ key={entry.label}
242
250
  className="w-full text-left px-4 py-2 text-sm text-gray-200 hover:bg-gray-700 flex items-center gap-2"
243
- onClick={() => pick(name)}
251
+ onClick={() => pick(entry.value)}
244
252
  >
245
253
  <span className={`w-2 h-2 rounded-full flex-shrink-0 ${isActive ? "bg-green-400" : "bg-blue-500"}`} />
246
- {name === "all" ? "All Projects" : name}
254
+ {entry.label}
247
255
  {col && (
248
256
  <span className="text-[10px] text-gray-500 ml-auto">{col.name}</span>
249
257
  )}
@@ -285,7 +293,7 @@ export function AddProjectModal({
285
293
  const [tab, setTab] = useState<"create" | "connect">("create")
286
294
  const [name, setName] = useState("")
287
295
  const [description, setDescription] = useState("")
288
- const [collectionId, setCollectionId] = useState(currentCollection !== "all" ? currentCollection : DEFAULT_COLLECTION_ID)
296
+ const [collectionId, setCollectionId] = useState(currentCollection ? currentCollection : DEFAULT_COLLECTION_ID)
289
297
  const [gitUrl, setGitUrl] = useState("")
290
298
  const [loading, setLoading] = useState(false)
291
299
  const [error, setError] = useState("")
@@ -14,7 +14,7 @@ export function ActivityFeed() {
14
14
  setLoading(true)
15
15
  try {
16
16
  const params = new URLSearchParams({ limit: "30" })
17
- if (currentProject !== "all") params.set("project", currentProject)
17
+ if (currentProject) params.set("project", currentProject)
18
18
  if (before) params.set("before", before)
19
19
  const data = await GET<ActivityEvent[]>(`/activity?${params}`)
20
20
  if (before) {
@@ -56,7 +56,7 @@ export function BrowserPanel() {
56
56
 
57
57
  const runningSessions = sessions.filter((s) => s.status === "running")
58
58
  const processesWithPorts = processes.filter(
59
- (p) => p.port && p.status === "running" && (currentProject === "all" || p.project === currentProject)
59
+ (p) => p.port && p.status === "running" && (!currentProject || p.project === currentProject)
60
60
  )
61
61
 
62
62
  // Start Docker/screencast session for a process
@@ -74,7 +74,7 @@ export function BrowserPanel() {
74
74
  const url = urlInput.trim()
75
75
  if (!url) return
76
76
  const fullUrl = url.startsWith("http") ? url : `http://${url}`
77
- const project = currentProject !== "all" ? currentProject : undefined
77
+ const project = currentProject ?? undefined
78
78
  const session = await startSession(fullUrl, project)
79
79
  if (session) {
80
80
  setFullscreen(true)
@@ -368,7 +368,7 @@ function BrowserFullscreen({ onClose }: { onClose: () => void }) {
368
368
  if (activeSession && activeSession.status === "running") {
369
369
  await navigate(fullUrl)
370
370
  } else {
371
- const project = currentProject !== "all" ? currentProject : undefined
371
+ const project = currentProject ?? undefined
372
372
  await startSession(fullUrl, project)
373
373
  }
374
374
  }, [urlInput, activeSession, navigate, startSession, currentProject])
@@ -377,7 +377,7 @@ function BrowserFullscreen({ onClose }: { onClose: () => void }) {
377
377
  if (!activeSession) return
378
378
  try {
379
379
  const params = new URLSearchParams({ session_id: activeSession.id })
380
- if (currentProject && currentProject !== "all") params.set("project", currentProject)
380
+ if (currentProject) params.set("project", currentProject)
381
381
  await POST(`/context/capture?${params}`)
382
382
  toast("Context captured", "success")
383
383
  } catch {
@@ -25,7 +25,7 @@ export function PinchTabPanel() {
25
25
  const [fullscreen, setFullscreen] = useState(false)
26
26
 
27
27
  const urlSuggestions = processes
28
- .filter((p) => p.port && p.status === "running" && (currentProject === "all" || p.project === currentProject))
28
+ .filter((p) => p.port && p.status === "running" && (!currentProject || p.project === currentProject))
29
29
  .map((p) => ({
30
30
  label: p.name || p.id,
31
31
  url: p.preview_url || `http://localhost:${p.port}`,
@@ -65,7 +65,7 @@ export function UnifiedBrowserPanel() {
65
65
 
66
66
  const runningSessions = sessions.filter((s) => s.status === "running")
67
67
  const processesWithPorts = processes.filter(
68
- (p) => p.port && p.status === "running" && (currentProject === "all" || p.project === currentProject),
68
+ (p) => p.port && p.status === "running" && (!currentProject || p.project === currentProject),
69
69
  )
70
70
 
71
71
  const handleShared = async (processId: string) => {
@@ -78,7 +78,7 @@ export function UnifiedBrowserPanel() {
78
78
  const url = urlInput.trim()
79
79
  if (!url) return
80
80
  const fullUrl = url.startsWith("http") ? url : `http://${url}`
81
- const project = currentProject !== "all" ? currentProject : undefined
81
+ const project = currentProject ?? undefined
82
82
  const session = await startSession(fullUrl, project)
83
83
  if (session) setFullscreen(true)
84
84
  else toast("Failed to start browser", "error")
@@ -408,7 +408,7 @@ export function UnifiedBrowserFullscreen({
408
408
  if (!activeSession) return
409
409
  try {
410
410
  const params = new URLSearchParams({ session_id: activeSession.id })
411
- if (currentProject && currentProject !== "all") params.set("project", currentProject)
411
+ if (currentProject) params.set("project", currentProject)
412
412
  await POST(`/context/capture?${params}`)
413
413
  toast("Context captured", "success")
414
414
  } catch { toast("Capture failed", "error") }
@@ -70,7 +70,7 @@ export function ChannelSidebar({ onAddProject }: { onAddProject?: () => void } =
70
70
  }
71
71
 
72
72
  // Collection filter — only when not in active mode
73
- if (currentCollection !== "all") {
73
+ if (currentCollection) {
74
74
  result = result.filter((ch) => {
75
75
  if (ch.type === "system") return true // system shows everywhere
76
76
  if (ch.collection_ids.length === 0 && ch.project_ids.length === 0) return false // orphaned ephemeral
@@ -85,7 +85,7 @@ export function ChannelSidebar({ onAddProject }: { onAddProject?: () => void } =
85
85
  if (!newName.trim()) return
86
86
  const projectIds = newProjectId ? [newProjectId] : []
87
87
  const type = projectIds.length > 0 ? "project" : "ephemeral"
88
- await createChannel(newName.trim(), type, projectIds, currentCollection !== "all" ? currentCollection : "general")
88
+ await createChannel(newName.trim(), type, projectIds, currentCollection ? currentCollection : "general")
89
89
  setNewName("")
90
90
  setNewProjectId("")
91
91
  setCreating(false)
@@ -100,11 +100,11 @@ export function ChannelSidebar({ onAddProject }: { onAddProject?: () => void } =
100
100
  {/* Collection selector + create */}
101
101
  <div className="px-2 pt-2 pb-1 flex gap-1">
102
102
  <select
103
- value={currentCollection}
104
- onChange={(e) => selectCollection(e.target.value)}
103
+ value={currentCollection ?? ""}
104
+ onChange={(e) => selectCollection(e.target.value || null)}
105
105
  className="flex-1 px-2 py-1 text-xs bg-gray-800 border border-gray-700 rounded text-gray-300 outline-none min-w-0"
106
106
  >
107
- <option value="all">All Collections</option>
107
+ <option value="">All Collections</option>
108
108
  {collections.map((c) => (
109
109
  <option key={c.id} value={c.id}>{c.name} ({
110
110
  projects.filter((p) => p.collection_id === c.id).length
@@ -2,6 +2,7 @@ import { useState, useMemo } from "react"
2
2
  import { useChannelStore } from "@/stores/channel-store"
3
3
  import { useStateStore } from "@/stores/state-store"
4
4
  import { useProjectStore } from "@/stores/project-store"
5
+ import { useUIStore } from "@/stores/ui-store"
5
6
  import { Sheet } from "@/features/mobile/sheet"
6
7
 
7
8
  type FilterMode = "all" | "active"
@@ -13,9 +14,11 @@ type FilterMode = "all" | "active"
13
14
  export function WorkspaceSelectorSheet({
14
15
  onClose,
15
16
  onSelect,
17
+ position = "bottom",
16
18
  }: {
17
19
  onClose: () => void
18
20
  onSelect: (channelId: string) => void
21
+ position?: "bottom" | "top"
19
22
  }) {
20
23
  const channels = useChannelStore((s) => s.channels)
21
24
  const activeChannelId = useChannelStore((s) => s.activeChannelId)
@@ -24,6 +27,7 @@ export function WorkspaceSelectorSheet({
24
27
  const collections = useProjectStore((s) => s.collections)
25
28
  const currentCollection = useProjectStore((s) => s.currentCollection)
26
29
  const selectCollection = useProjectStore((s) => s.selectCollection)
30
+ const layout = useUIStore((s) => s.layout)
27
31
 
28
32
  const [search, setSearch] = useState("")
29
33
  const [filterMode, setFilterMode] = useState<FilterMode>("all")
@@ -47,7 +51,7 @@ export function WorkspaceSelectorSheet({
47
51
  result = result.filter((c) =>
48
52
  c.project_names?.some((n) => activeProjectNames.has(n))
49
53
  )
50
- } else if (currentCollection !== "all") {
54
+ } else if (currentCollection) {
51
55
  // Collection filter — only when not in active mode
52
56
  result = result.filter((c) => c.collection_ids?.includes(currentCollection))
53
57
  }
@@ -65,7 +69,7 @@ export function WorkspaceSelectorSheet({
65
69
  }, [channels, currentCollection, filterMode, search, activeProjectNames])
66
70
 
67
71
  return (
68
- <Sheet title="Workstreams" onClose={onClose}>
72
+ <Sheet title="Workstreams" onClose={onClose} position={position}>
69
73
  <div className="space-y-2">
70
74
  {/* Search */}
71
75
  <input
@@ -77,18 +81,45 @@ export function WorkspaceSelectorSheet({
77
81
  />
78
82
 
79
83
  {/* Filters */}
80
- <div className="flex items-center gap-2">
81
- {/* Collection */}
82
- <select
83
- value={currentCollection}
84
- onChange={(e) => selectCollection(e.target.value)}
85
- className="flex-1 px-2 py-1 text-xs bg-gray-800 border border-gray-700 rounded text-gray-300 outline-none"
86
- >
87
- <option value="all">All</option>
88
- {collections.map((c) => (
89
- <option key={c.id} value={c.id}>{c.name}</option>
90
- ))}
91
- </select>
84
+ <div className="space-y-2">
85
+ {layout === "kiosk" ? (
86
+ <div className="flex gap-2 overflow-x-auto pb-1">
87
+ <button
88
+ onClick={() => selectCollection(null)}
89
+ className={`px-3 py-1.5 text-xs rounded-full whitespace-nowrap border ${
90
+ !currentCollection
91
+ ? "bg-blue-600 text-white border-blue-500"
92
+ : "bg-gray-800 text-gray-300 border-gray-700"
93
+ }`}
94
+ >
95
+ All
96
+ </button>
97
+ {collections.map((c) => (
98
+ <button
99
+ key={c.id}
100
+ onClick={() => selectCollection(c.id)}
101
+ className={`px-3 py-1.5 text-xs rounded-full whitespace-nowrap border ${
102
+ currentCollection === c.id
103
+ ? "bg-blue-600 text-white border-blue-500"
104
+ : "bg-gray-800 text-gray-300 border-gray-700"
105
+ }`}
106
+ >
107
+ {c.name}
108
+ </button>
109
+ ))}
110
+ </div>
111
+ ) : (
112
+ <select
113
+ value={currentCollection ?? ""}
114
+ onChange={(e) => selectCollection(e.target.value || null)}
115
+ className="w-full px-2 py-1 text-xs bg-gray-800 border border-gray-700 rounded text-gray-300 outline-none"
116
+ >
117
+ <option value="">All</option>
118
+ {collections.map((c) => (
119
+ <option key={c.id} value={c.id}>{c.name}</option>
120
+ ))}
121
+ </select>
122
+ )}
92
123
 
93
124
  {/* Active toggle */}
94
125
  <button
@@ -30,7 +30,7 @@ export function ChatPanel() {
30
30
  channel: "desktop",
31
31
  client_id: getClientId(),
32
32
  }
33
- if (currentProject !== "all") body.project = currentProject
33
+ if (currentProject) body.project = currentProject
34
34
  const result = await POST<{ response: string; usage?: { model?: string; duration_ms?: number } }>("/orchestrator", body)
35
35
  if (result?.response) {
36
36
  setMessages((prev) => [...prev, {
@@ -20,14 +20,30 @@ export function CommandBar() {
20
20
  onOpenTerminal: () => toggleBottomPanel(),
21
21
  })
22
22
 
23
- const handleVoiceFinal = useCallback((text: string) => {
23
+ const handleVoiceFinal = useCallback(async (text: string) => {
24
24
  toast(`Voice: "${text}"`, "info")
25
- orchestrator.send(text).then((r) => {
26
- if (r?.response) toast(r.response.slice(0, 120), "info")
27
- })
25
+ // Post the spoken text to the active workstream so the user sees the full
26
+ // exchange in chat. In async mode the server will post the reply there too.
27
+ const { activeChannelId, postMessage, loadMessages } = useChannelStore.getState()
28
+ if (activeChannelId) {
29
+ await postMessage(activeChannelId, text, "user")
30
+ }
31
+ const result = await orchestrator.send(text)
32
+ const isAsync = (result as Record<string, unknown> | null)?.async === true
33
+ if (isAsync && activeChannelId) {
34
+ // Server will push the real response via WS; loadMessages is a best-effort pickup.
35
+ setTimeout(() => { void loadMessages(activeChannelId) }, 1500)
36
+ return
37
+ }
38
+ if (!activeChannelId && result?.response) {
39
+ // No workstream open — fall back to a toast preview.
40
+ toast(result.response.slice(0, 120), "info")
41
+ } else if (activeChannelId && result?.response) {
42
+ await postMessage(activeChannelId, result.response, "orchestrator")
43
+ }
28
44
  }, [toast, orchestrator])
29
45
 
30
- const voice = useVoice({ onFinal: handleVoiceFinal })
46
+ const voice = useVoice({ channel: "desktop", onFinal: handleVoiceFinal })
31
47
 
32
48
  const handlePhone = async () => {
33
49
  if (phone?.active) {
@@ -147,7 +163,7 @@ function SettingsButton() {
147
163
  <>
148
164
  <div className="fixed inset-0 z-40" onClick={() => setOpen(false)} />
149
165
  <div className="absolute bottom-10 right-0 z-50 bg-gray-800 border border-gray-700 rounded-lg shadow-xl py-1 w-48">
150
- {currentProject !== "all" && (
166
+ {currentProject && (
151
167
  <button
152
168
  className="w-full px-3 py-2 text-xs text-gray-200 hover:bg-gray-700 text-left"
153
169
  onClick={() => { setOpen(false); useUIStore.getState().setProjectSettingsOpen(true) }}
@@ -27,7 +27,7 @@ export function AddProjectSheet({ onClose }: { onClose: () => void }) {
27
27
  const [tab, setTab] = useState<"create" | "connect">("create")
28
28
  const [name, setName] = useState("")
29
29
  const [description, setDescription] = useState("")
30
- const [collectionId, setCollectionId] = useState(currentCollection !== "all" ? currentCollection : DEFAULT_COLLECTION_ID)
30
+ const [collectionId, setCollectionId] = useState(currentCollection ? currentCollection : DEFAULT_COLLECTION_ID)
31
31
  const [connectPath, setConnectPath] = useState("")
32
32
  const [loading, setLoading] = useState(false)
33
33
 
@@ -48,7 +48,7 @@ export function BrowserCard({
48
48
 
49
49
  const runningSessions = sessions.filter((s) => s.status === "running")
50
50
  const processesWithPorts = processes.filter(
51
- (p) => p.port && p.status === "running" && (currentProject === "all" || p.project === currentProject),
51
+ (p) => p.port && p.status === "running" && (!currentProject || p.project === currentProject),
52
52
  )
53
53
  // Don't show processes that already have a running browser session
54
54
  const runningProcessIds = new Set(runningSessions.map((s) => s.process_id).filter(Boolean))
@@ -1,11 +1,12 @@
1
1
  import { useState, useRef, useCallback } from "react"
2
- import { useStateStore } from "@/stores/state-store"
2
+ import { useStateStore, onOrchestratorComplete } from "@/stores/state-store"
3
3
  import { useProjectStore } from "@/stores/project-store"
4
4
  import { useUIStore } from "@/stores/ui-store"
5
5
  import { POST, api } from "@/lib/api"
6
6
  import { getClientId } from "@/lib/client-id"
7
7
  import { useOrchestrator } from "@/hooks/use-orchestrator"
8
8
  import { useVoice } from "@/hooks/use-voice"
9
+ import { useChannelStore } from "@/stores/channel-store"
9
10
  import { ChatRenderer } from "@/features/chat/chat-renderer"
10
11
  import type { ChatMessage } from "@/features/chat/chat-renderer"
11
12
 
@@ -65,7 +66,14 @@ export function ChatCard({
65
66
 
66
67
  try {
67
68
  const result = await orchestrator.send(msg)
68
- if (result?.response) {
69
+ const isAsync = (result as Record<string, unknown> | null)?.async === true
70
+ if (isAsync) {
71
+ // Real reply is pushed to the active channel via WebSocket. Pull the
72
+ // freshest orchestrator message from the channel store once it arrives.
73
+ await _awaitAsyncReply((reply) => {
74
+ setMessages((prev) => [...prev, reply])
75
+ })
76
+ } else if (result?.response) {
69
77
  setMessages((prev) => [
70
78
  ...prev,
71
79
  {
@@ -104,7 +112,7 @@ export function ChatCard({
104
112
  setInput(text)
105
113
  }, [])
106
114
 
107
- const voice = useVoice({ onFinal: handleVoiceFinal, onInterim: handleVoiceInterim })
115
+ const voice = useVoice({ channel: "mobile", onFinal: handleVoiceFinal, onInterim: handleVoiceInterim })
108
116
 
109
117
  // Phone
110
118
  const handlePhone = async () => {
@@ -126,7 +134,7 @@ export function ChatCard({
126
134
  e.target.value = ""
127
135
  const form = new FormData()
128
136
  form.append("file", file)
129
- if (currentProject && currentProject !== "all") form.append("project", currentProject)
137
+ if (currentProject) form.append("project", currentProject)
130
138
  try {
131
139
  const res = await api<{ id: string; path: string }>("/context/upload", {
132
140
  method: "POST",
@@ -234,3 +242,43 @@ export function ChatCard({
234
242
  </div>
235
243
  )
236
244
  }
245
+
246
+ /**
247
+ * Watch the active channel for a new orchestrator message and hand it to the
248
+ * caller. Used when the orchestrator replies asynchronously (server returns
249
+ * `{async: true}` and posts the real message to the channel later, typically
250
+ * pushed via WebSocket). Gives up silently after ~30s.
251
+ */
252
+ async function _awaitAsyncReply(onReply: (msg: ChatMessage) => void): Promise<void> {
253
+ const startChannelId = useChannelStore.getState().activeChannelId
254
+ if (!startChannelId) return
255
+ const baselineIds = new Set(useChannelStore.getState().messages.map((m) => m.id))
256
+ const deadline = Date.now() + 30_000
257
+
258
+ let doneEarly = false
259
+ const unsubscribe = onOrchestratorComplete(() => { doneEarly = true })
260
+
261
+ try {
262
+ while (Date.now() < deadline) {
263
+ await new Promise((r) => setTimeout(r, 250))
264
+ if (useChannelStore.getState().activeChannelId !== startChannelId) return
265
+ const latest = useChannelStore.getState().messages
266
+ const fresh = latest.find(
267
+ (m) => !baselineIds.has(m.id) && m.role === "orchestrator" && (m.content || m.metadata),
268
+ )
269
+ if (fresh) {
270
+ onReply({
271
+ role: "assistant",
272
+ content: fresh.content || "",
273
+ timestamp: new Date(fresh.created_at).getTime() || Date.now(),
274
+ })
275
+ return
276
+ }
277
+ // Reply was routed to #system or suppressed — server signaled completion
278
+ // and no new message is coming to this channel. Stop spinning.
279
+ if (doneEarly) return
280
+ }
281
+ } finally {
282
+ unsubscribe()
283
+ }
284
+ }
@@ -27,7 +27,7 @@ export function ContextsCard({ defaultExpanded = false }: { defaultExpanded?: bo
27
27
 
28
28
  const load = () => {
29
29
  const params = new URLSearchParams({ limit: "20" })
30
- if (currentProject !== "all") params.set("project", currentProject)
30
+ if (currentProject) params.set("project", currentProject)
31
31
  GET<ContextSnapshot[]>(`/context?${params}`)
32
32
  .then(setContexts)
33
33
  .catch(() => {})
@@ -41,7 +41,7 @@ export function ContextsCard({ defaultExpanded = false }: { defaultExpanded?: bo
41
41
  e.target.value = ""
42
42
  const form = new FormData()
43
43
  form.append("file", file)
44
- if (currentProject && currentProject !== "all") form.append("project", currentProject)
44
+ if (currentProject) form.append("project", currentProject)
45
45
  try {
46
46
  const res = await api<{ id: string; path: string }>("/context/upload", {
47
47
  method: "POST",
@@ -56,7 +56,7 @@ export function HamburgerSheet({
56
56
  <MenuItem onClick={onActivity}>Activity Log</MenuItem>
57
57
  <MenuItem onClick={onPairedDevices}>Paired Devices</MenuItem>
58
58
  <hr className="border-gray-700 my-2" />
59
- {currentProject !== "all" && (
59
+ {currentProject && (
60
60
  <MenuItem onClick={onProjectSettings}>Project Settings</MenuItem>
61
61
  )}
62
62
  <MenuItem onClick={onSystemSettings}>System Settings</MenuItem>