Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Outcome
Allows MCP
send_linkto accept an optionalwindowid (MCP-114) so agents can navigate deep links directly inside an existing app window instead of creating a new virtual display and encoder on every URL.docs/PROTOCOL.md,protocol/schema.json,protocol/vectors/control.json): adds{"t":"link.navigate","stream":N,"seq":S,"url":"..."}replying{"t":"link.navigate","stream":N,"seq":S,"ok":true}or{"ok":false,"code":"bad_url"|"no_window"|"launch_failed"|"failed","message":"..."}. Both sides validate viaLinkPolicy(SHARE-7), and URLs never enter logs (R-PRIV-1).android/core+android/app): validates URL and live stream display (no_windowif gone), launchesACTION_VIEW+CATEGORY_BROWSABLEon that stream's existingdisplayIdwithout creating a virtual display or restarting the encoder.ContiguaCore+Contigua):send_linktakes optionalwindow(mutually exclusive withshape: both →-32602). Navigates throughWindowActQueue(MCP-84) andMCPActMachine(Navigating+Drainingtransitions), settles and observes perwait/observe, and returnssend_link's opened-window envelope withopened: "navigated".tools/fakephone/fakephone.py,deckctl.py,test_selfcheck.sh,tools/mcp-eval,macos/scripts/mcp/suite_open.py,docs/specs/mcp.md(MCP-114),docs/design/mcp.md, anddocs/MAP.md.Fixes #390
Checks
scripts/check-rules.sh --base $(git merge-base HEAD main):PASS (30 files checked)scripts/check-ratchets.sh --base $(git merge-base HEAD main):PASSscripts/check-format.sh --base $(git merge-base HEAD main):PASS (12 Swift files, 5 Kotlin files)./gradlew -q :core:test --tests "*Link*" :app:assembleDebug :app:testDebugUnitTest --tests "*Launcher*":PASS./gradlew -q :core:test --tests "app.contigua.proto.ProtocolVectorsTest":PASSswift test --filter "ContiguaCoreTests|MCPCoreTests|MCPToolHostTests|WindowActQueueTests":ContiguaCoreTests433/433 +MCPCoreTests,MCPToolHostTests,WindowActQueueTestspassed, 0 failuresswift test --filter "MCPActMachineTests": 74/74 passed, 0 failuresswift testhits pre-existing teardown stall#161.)bash tools/fakephone/test_selfcheck.sh:SELFCHECK PASS(navigate stream=1 ok no_window bad_url opened=1 configs=1)python3 -m unittest discover -s tools/mcp-eval -p 'test_*.py':Ran 35 tests in 1.276s — OKSurfaces
docs/PROTOCOL.md,protocol/schema.json,protocol/vectors/control.json): updated and verified.:core,:app): updated and verified.ContiguaCore,Contigua): updated and verified.tools/fakephone) & MCP eval (tools/mcp-eval): updated and verified.