mirror of
https://github.com/nightly-labs/openbot.git
synced 2026-12-03 15:45:30 +08:00
main
4
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
264b363129 |
Add an Apple Watch app that works without the iPhone app (#17154)
* Add the Apple Watch app with a direct link to the host The watch app shows the agents of all servers, with pinned and unread agents first. It answers approvals and questions, sends dictated messages, stops a turn, reads replies aloud, and marks messages read. A complication shows the agents that wait. The watch gets data from the iPhone app (WatchConnectivity). It also talks to each host directly through Signal over HTTPS, with end to end encryption, so it works while the iPhone app is closed. Signal and the account service see only metadata. The developer decided on 2026-11-25 that the watch has its own watch session (a child of the phone's session), that it works with the app lock on, and that a watch request wakes a sleeping hosted server. The design is in docs/architecture/watch-relay.md. - contracts: watch protocol, Signal watch relay frames and crypto, Team API capability watch-relay-v1 with GET /v1/watch/setup. - Signal: POST /v1/watch/request checks the watch ticket, the proof, the clock and the rate limits, and passes the sealed request to the host on its ingress socket. - account service: watch sessions (migration 0077), watch tickets, /v2/remote/host-wake, watches in connected devices. - host: watch key, setup route, relay service and commands. A read marks the chat read through the newest counting message. A long newest reply is read in full, not at the runtime limit of 240. - iPhone: pairs the watch, sends the account scope so that the watch pairs again after an account or address change. - watch: CryptoKit client, Keychain, fallback to the iPhone, retry of a failed pairing after 30 s, refresh every 5 s on the direct link. - dev tools: bun run dev --tunnel and dev:mobile --tunnel --release for a local test of the direct link; the watch app installs on a paired watch simulator when it is missing. A new iPhone and watch build is necessary: the native code changes the runtime version. Signal and the account service must be deployed and migration 0077 applied before the host release uses the relay. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Show watch agents in sidebar folders under the server name The watch list now shows the server name in grey instead of the app name in blue. Agents come in the stored sidebar order: Pinned, Unread and Needs you first, then one section for each sidebar folder. The iPhone and the host send the folder path of each agent and no longer reorder agents by unread state or recent activity. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Open the watch app on a server summary with a swipe to the agent list The watch app now opens on a summary of one server: how many agents need you, have unread messages or work, with their pictures. A swipe from right to left shows the agent list of that server. With more than one server, the server name opens a server list, and the watch keeps the choice. The list keeps its sections. Pinned agents show as a grid of pictures with names. Rows have no background and a thin divider. An agent that waits or works shows that face: the iPhone draws idle, waiting and working pictures and sends their names in the new optional `faces` field. The host does not draw faces, so the watch keeps the faces that the iPhone sent. Pictures fill their circle. The agent page has no server title. Titles are white: the watch accent colour is white, and controls that used the blue accent now ask for blue. The Message and Send buttons and the feedback after an action use the agent colour. Also add the prototype-watchos skill: watch designs as one HTML file with swatches, checked against what SwiftUI on watchOS can build. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix watch relay findings from the local review - The ingress socket also opens for the watch relay when a webhook or GitHub route ticket fails for a short time. - The host does not keep the full text of a reply while its turn still streams, so the watch does not keep a cut reply. - The relay accepts a member that the host does not know yet, as a remote session does. A disabled member is still refused. - The relay hold uses its latest end time, so it does not end up to one hour early. - The watch waits 25 seconds for a relay answer, longer than the 20 seconds that Signal waits for the host. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Remove exports that the watch change left unused knip found them in CI: shareAvatarFile has no caller since the watch reads its own picture folder, and four types are used only in their own file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Stop tracking the asset catalogs that prebuild generates for the watch check:assets refused the watch app icon PNG in apps/mobile/targets. @bacons/apple-targets writes the icon set and the colour sets of each target at every prebuild, from expo-target.config.js and the app icon, so they are build output. Git ignores them now, and the fingerprint ignores them too, so it is the same before and after a prebuild. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Remove the unused watch session list and browser revoke route NorbiAI found that PRIVACY.md said you can see and revoke the watch session in your connected devices, but no client shows the watches list or calls the browser revoke route. The watch session ends with its phone session (sign-out or a revoke of the phone), so the text now says that, and the unused list fields, listForAccount and the browser DELETE route are removed. The phone keeps its own revoke route for sign-out. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Show channels in the Apple Watch app The watch now shows the channels that the member sees on the sidebar, next to the agents, in the same folders and order. A channel row shows up to four member pictures, the unread count, and the last message with its author. The channel page shows the last message, which opens in full, and has Message (dictation, review, send) and Listen. Opening a channel marks it read. - Contract: WatchChannel in the ready snapshot, a position on agents, and the sendChannel and readChannel commands. - Phone: the snapshot builder adds channels from the channel store, and the command handler sends and reads through it. - Host: the watch relay lists the visible channels (admins see all, others not a channel with a hidden agent) and runs the commands as the member through the channel routes. - The host E2E checks the channel list, send as the member, read, and an unknown channel. - PRIVACY.md, AGENTS.md, watch-relay.md and the release notes say that the watch also keeps the channels with the start of their last message. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Keep the watch channel list the same as the iPhone sidebar Fixes from the local review of the channel change: - Pinned channels: the phone and the host now take the member's sidebar pins with their kind, so a pinned channel is in Pinned, in pin order with the pinned agents, and not in its folder. The watch Pinned grid shows channels with their member pictures. - Hidden chats: the agents and channels that the user hid on the phone are kept only on the phone. The phone sends their IDs with each server, and the watch removes them from a host reply, so a hidden chat does not come back on the direct link. - Channel cap: watchChannelsWithinLimit keeps 20 channels for each server, unread or working channels first, so an unread channel is not dropped and one server does not use the room of the others. - Channel visibility on the host follows the Team API channel routes, not the host owner's hidden agents. The host E2E now pins a channel and an agent for the member and checks that both are pinned, in pin order. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Remove the watches list from the account service README The connected device lists do not return watch sessions since the unused list was removed. A watch session ends with its phone session. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Share the stored key loader and allow watch pairing on the dev LAN - The phone pairs a watch with POST /v2/remote/watch/sessions, with no trailing slash. The development LAN allowlist had only the form with a slash, so a phone on the LAN could not pair a watch with a local account service. The allowlist and its test now have both forms. - The watch key and the ingress queue key used two copies of the same loader (read, decrypt, check, create, encrypt, write). Both now use loadStoredP256Key with their own warning texts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
03c2ff34c2 |
Remove code comments and add the no-comments rule (#12604)
* Remove code comments and add the no-comments rule Remove the comments from first-party code and configuration files: TS/JS, JSX, CSS, SQL migrations, Swift, Kotlin, Gradle, shell, Docker, systemd, Nix, YAML, TOML, JSONC and GritQL. Keep only what a tool reads: license headers, shebangs, compiler and lint directives, JSDoc types in plain .js files, generated file headers, GritQL scope lines, the install-server.sh help text and the openbot-boat-pre-stop marker. Vendored code, fixtures and released schemas keep their comments. Add the rule to AGENTS.md, and change the docs that asked for comments. Add two i18n keys that only comments named to RELEASED_SOURCE_KEYS. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Keep comments that are data in strings The benchmark task files in opencode-free-models-bench.ts tell the model what each function must do. The sample file and HTML page in the two stories are display content. Put their comments back. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Keep released migrations and mobile native inputs unchanged check:migrations compares each released migration with v0.73.0 byte for byte, so restore src/backend/migrations. A change to a native build input of apps/mobile makes a new runtime version, so restore those files and the extra fingerprint sources. List these files and the comment markers that a tool reads in AGENTS.md. Remove the last requests for comments in src/renderer/AGENTS.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
742c9fe242 |
Show the home when the selected server does not answer at start (#5384)
* Show the home when the selected server does not answer at start The "Connecting to server" loader blocks all touches until the first attempt of the selected server ends. A server that does not answer keeps the attempt for about 30 seconds. Now the first connection state ends after 5 seconds while the attempt continues, so the home shows the offline server and the user can select another server. dev:mobile stopped when another worktree ran a dev app. Now only a second dev app of this worktree stops it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Count the first connection wait only in the foreground - Start the wait only for a server in its first connection state. - Clear the wait of a removed server. - Stop the waits in the background, and start them again on return. - dev:mobile compares worktree paths with isSameWorktree. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
56d4498c18 |
Automate desktop-to-mobile development login (#720)
* Automate desktop-to-mobile development login - Add `dev:mobile` pairing through Mobile Connect links - Secure development link handling for local and private-network services - Isolate Metro caches and update Expo dependencies * Move the expo-router patch to 57.0.22 The Expo SDK 57 patch update raised expo-router from 57.0.20 to 57.0.22. Bun applies a patch only to the exact version it names, so the routing queue snapshot fix was no longer installed and scripts/mobile-navigation-queue.test.ts failed. 57.0.22 does not contain the fix, and the patch applies unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * Route development pairing links through the shared native intent Main now handles external links in +native-intent.tsx, so the separate +native-intent.ts from this branch would give Expo Router two native intent modules. The shared intent accepts a development Mobile Connect link first; every other link, including a rejected pairing link, keeps the confirmed incoming-link flow. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com> |