feat: Sync from internal staging. - #94
Merged
Merged
Conversation
chengfeitao-google
requested review from
cbaueratwork and
tirodkar
and removed request for
tirodkar
August 18, 2026 22:39
cbaueratwork
approved these changes
Aug 18, 2026
chengfeitao-google
force-pushed
the
mobile-internal-sync-08182026
branch
from
August 19, 2026 01:50
d6f5975 to
f6dd90a
Compare
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.
PiperOrigin-RevId: 966780314
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
[Sync] Update mobile web build configs, Python agent grounding, and travel mode handling
This update brings the following improvements and fixes:
1. Build Infrastructure
web_build: Updated the export configuration to physically duplicate the sharedmobile_core/web_buildconfig files (index.html,tsconfig.json,vite.config.ts,core-shell.ts) directly intoclient/ios/web_build/andclient/android/web_build/.core-shellimports: Updatedmain.tsin both iOS and Androidweb_buildto importA2UICoreShellfrom./core-shellinstead of the shared parent.client/mobile_core: Removedclient/mobile_corefrom the exported repository to ensurenpm installandnpm run buildwork natively inside bothclient/ios/web_buildandclient/android/web_buildwithout requiring a monorepo structure.2. Python Agent & Schemas
agent_with_grounding.pyto replace syntheticPLACE_ID_FOR_*placeholders with grounded Place IDs using deterministic Python string substitution instead of a second LLM cleanup pass.travel_modeinDirectionsExtractorSchema: Removeddefault="driving"fromDirectionsExtractorSchemato prevent lightweight models from silently defaulting to driving whentravel_modeis omitted.travel_modesynonym normalization: EnrichedTRAVEL_MODE_MAPinextractor.pyandmerger.pyto normalize a comprehensive set of synonyms (on foot,subway,auto,bus,train,metro,ferry,light rail,public transit, etc.).SKILL.md: Added few-shot examples for all four travel modes (driving,walking,transit,bicycling) indirections-template-response/SKILL.md.3. Web Components
GoogleMaptravelModepropagation: Fixedgoogle_map.tsto propagate thetravelModeproperty togmp-route-3d, ensuringwalking,transit, andbicyclingroutes render with the correct travel mode styling and timing.4. Testing
travelModepropagation and edge cases ingoogle_map_test.ts.travel_modeschema validation, synonym normalization, and merger intest_extractor.py,test_merger.py, andtest_agent_with_templates.py.