René's URL Explorer Experiment


Title: fix(schematics): emit AgentPlatformBackend from the v21 AI migration by armando-navarro · Pull Request #3762 · angular/angularfire · GitHub

Open Graph Title: fix(schematics): emit AgentPlatformBackend from the v21 AI migration by armando-navarro · Pull Request #3762 · angular/angularfire

X Title: fix(schematics): emit AgentPlatformBackend from the v21 AI migration by armando-navarro · Pull Request #3762 · angular/angularfire

Description: Fixes #3758 What changes ng update now rewrites getVertexAI(...) to getAI(..., { backend: new AgentPlatformBackend() }) instead of the deprecated VertexAIBackend. A call that passed a location option keeps it, carried into the new class's constructor. A call that passed none, or a falsy one, moves from us-central1 to global, because the two classes default differently. What the migration warns about The migration prints one warning for each file whose location changed, and a separate one where a location is an expression only runtime can resolve. Firebase does not serve the Live API models from global. When the workspace calls getLiveGenerativeModel or startAudioConversation anywhere, the warning says so and stops recommending a specific location, because that developer is choosing one rather than restoring the one they had. Evidence Measured against a live project, two calls a few minutes apart differing only in the backend class: gemini-3.7-flash returned 404 from us-central1 and 200 from global. The migration was also run end to end through the real CLI against two applications, a fresh ng new workspace and a copy of an existing app that had already been converted by hand. In the second case the migration's output matched the hand-written version, and both applications built afterwards. Merge order, red CI, and Tests This must land after #3761, which raises the declared firebase minimum in src/schematics/common.ts and src/package.json. Five schematics specs fail here, and they are the expected signal rather than a defect. The migration now emits AgentPlatformBackend, which @firebase/ai first shipped in 2.14.0 and firebase first bundled in 12.17.0, while this repo still declares ^12.4.0. One spec compares the emitted class against the declared minimum and fails deliberately until it rises. The other four compile the migration's output against the installed SDK and cannot resolve the class yet. Every other spec passes, and Build and Test chrome-headless are green. To review this against a tree where those five pass, pull #3761 in first: gh pr checkout 3762 git fetch origin pull/3761/head:pr-3761 git merge pr-3761 npm ci npm run build:jasmine && npm run test:node The npm ci matters: #3761 moves the lockfile to firebase 12.18.0, and the four compile specs type-check against whatever is installed. Reviewing the diff on its own needs none of that. The change is confined to the v21 migration and its specs, plus the upgrade guide.

Open Graph Description: Fixes #3758 What changes ng update now rewrites getVertexAI(...) to getAI(..., { backend: new AgentPlatformBackend() }) instead of the deprecated VertexAIBackend. A call that passed a location opti...

X Description: Fixes #3758 What changes ng update now rewrites getVertexAI(...) to getAI(..., { backend: new AgentPlatformBackend() }) instead of the deprecated VertexAIBackend. A call that passed a location opti...

Opengraph URL: https://github.com/angular/angularfire/pull/3762

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:5d7188e5-4ce9-efa2-9ffb-cbe38e51e9a7
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA7B6:C707B:9164C6:B88CB4:6B03631B
html-safe-nonce942c5a5efc8b5713a4fc92bcbf5c5d87ab4bd9746267b05ec93801de5b0f4c83
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBN0I2OkM3MDdCOjkxNjRDNjpCODhDQjQ6NkIwMzYzMUIiLCJ2aXNpdG9yX2lkIjoiMzgzODQ4MTA4MzkwMTYzMzMwOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac3f225b210b55cca48c2f488bedd76ca4f5f00187a4dc0d3de9eaafdaf347331d
hovercard-subject-tagpull_request:4410355516
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/angular/angularfire/pull/3762/files
twitter:imagehttps://avatars.githubusercontent.com/u/13904589?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/13904589?s=400&v=4
og:image:altFixes #3758 What changes ng update now rewrites getVertexAI(...) to getAI(..., { backend: new AgentPlatformBackend() }) instead of the deprecated VertexAIBackend. A call that passed a location opti...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/angular/angularfire git https://github.com/angular/angularfire.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id49453413
octolytics-dimension-repository_nwoangular/angularfire
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49453413
octolytics-dimension-repository_network_root_nwoangular/angularfire
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/angular/angularfire/pull/3762/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangularfire%2Fpull%2F3762%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangularfire%2Fpull%2F3762%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=angular%2Fangularfire
Reloadhttps://github.com/angular/angularfire/pull/3762/files
Reloadhttps://github.com/angular/angularfire/pull/3762/files
Reloadhttps://github.com/angular/angularfire/pull/3762/files
angularhttps://github.com/angular
angularfirehttps://github.com/angular/angularfire
Codehttps://github.com/angular/angularfire
Issues162 (162)https://github.com/angular/angularfire/issues
Pull requests5 (5)https://github.com/angular/angularfire/pulls
Discussionshttps://github.com/angular/angularfire/discussions
Actionshttps://github.com/angular/angularfire/actions
Projectshttps://github.com/angular/angularfire/projects
Security and qualityhttps://github.com/angular/angularfire/security
Insightshttps://github.com/angular/angularfire/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fangular%2Fangularfire%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fangular%2Fangularfire%2Fissues%2Fnew%2Fchoose
armando-navarrohttps://github.com/armando-navarro
angular:mainhttps://github.com/angular/angularfire/tree/main
armando-navarro:a39-agent-platform-backendhttps://github.com/armando-navarro/angularfire/tree/a39-agent-platform-backend
Conversation 3 https://github.com/angular/angularfire/pull/3762
Commits 3 https://github.com/angular/angularfire/pull/3762/commits
Checks 24 https://github.com/angular/angularfire/pull/3762/checks
Files changed https://github.com/angular/angularfire/pull/3762/files
Please reload this pagehttps://github.com/angular/angularfire/pull/3762/files
fix(schematics): emit AgentPlatformBackend from the v21 AI migration https://github.com/angular/angularfire/pull/3762/files#top
Show all changes 3 commits https://github.com/angular/angularfire/pull/3762/files
40537e5 fix(schematics): emit AgentPlatformBackend from the v21 AI migration armando-navarro Sep 1, 2026 https://github.com/angular/angularfire/pull/3762/commits/40537e596b5a51c6c0933c127ebd16c05d5a1498
77a056f Merge branch 'main' into a39-agent-platform-backend armando-navarro Sep 2, 2026 https://github.com/angular/angularfire/pull/3762/commits/77a056f473c72f4d9dda88b5e8b9554bc103ec20
452c501 test(schematics): key the compile host on the path TypeScript asks for armando-navarro Sep 2, 2026 https://github.com/angular/angularfire/pull/3762/commits/452c50168bfeb7dd8231e9ce8d30f2be09a5b65f
Clear filters https://github.com/angular/angularfire/pull/3762/files
Please reload this pagehttps://github.com/angular/angularfire/pull/3762/files
Please reload this pagehttps://github.com/angular/angularfire/pull/3762/files
ai.md https://github.com/angular/angularfire/pull/3762/files#diff-6a1a64f5717fb7bc99f50864bca0091295db3edf026d0ca93ead863f0fb585d8
version-21-upgrade.md https://github.com/angular/angularfire/pull/3762/files#diff-97e0e61da19fe9f4d918df3038ddffddf70a56ea26b53a9650fcdb6e97c1f4b5
migration.json https://github.com/angular/angularfire/pull/3762/files#diff-433d9ccabf4e95211f1298bc1e5a59ee36d5ce38f2de2d6023a3f2e901f436f6
vertexai-to-ai.jasmine.ts https://github.com/angular/angularfire/pull/3762/files#diff-52a6fcebb4e6e4da8071617c4fa433c4cf7d0d3ff7322351c2ef04d2300b0d12
index.ts https://github.com/angular/angularfire/pull/3762/files#diff-e8b2a55ccb575861567334c9d93c1ce80bf6909435eb40eb13969baf719b3b3d
passes.ts https://github.com/angular/angularfire/pull/3762/files#diff-83c89ec02577dda5f0580bc0589704f3f31decf40cfc7122e9654bbfc6ccd97a
safety.ts https://github.com/angular/angularfire/pull/3762/files#diff-a578c26544d3759833a62e5d49daddfef08978a13a387d34ce815bc965618582
tables.ts https://github.com/angular/angularfire/pull/3762/files#diff-51cc46caae8dbd4ef58dfddc109e5820a5b7a3c570e7adc1b3867f870c1ab7c7
types.ts https://github.com/angular/angularfire/pull/3762/files#diff-de35cbb8a7467087137835079a6aea9330fd793c96323dce78a08394aadf7b3f
vertex-edits.ts https://github.com/angular/angularfire/pull/3762/files#diff-dbfcf7f8aeeede4ec3e95fda02d93815812dc7b5875a8c9d372d0b1f9dd069a9
docs/ai.mdhttps://github.com/angular/angularfire/pull/3762/files#diff-6a1a64f5717fb7bc99f50864bca0091295db3edf026d0ca93ead863f0fb585d8
View file https://github.com/armando-navarro/angularfire/blob/452c50168bfeb7dd8231e9ce8d30f2be09a5b65f/docs/ai.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/angular/angularfire/pull/3762/{{ revealButtonHref }}
https://github.com/angular/angularfire/pull/3762/files#diff-6a1a64f5717fb7bc99f50864bca0091295db3edf026d0ca93ead863f0fb585d8
https://github.com/angular/angularfire/pull/3762/files#diff-6a1a64f5717fb7bc99f50864bca0091295db3edf026d0ca93ead863f0fb585d8
docs/version-21-upgrade.mdhttps://github.com/angular/angularfire/pull/3762/files#diff-97e0e61da19fe9f4d918df3038ddffddf70a56ea26b53a9650fcdb6e97c1f4b5
View file https://github.com/armando-navarro/angularfire/blob/452c50168bfeb7dd8231e9ce8d30f2be09a5b65f/docs/version-21-upgrade.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/angular/angularfire/pull/3762/{{ revealButtonHref }}
https://github.com/angular/angularfire/pull/3762/files#diff-97e0e61da19fe9f4d918df3038ddffddf70a56ea26b53a9650fcdb6e97c1f4b5
https://github.com/angular/angularfire/pull/3762/files#diff-97e0e61da19fe9f4d918df3038ddffddf70a56ea26b53a9650fcdb6e97c1f4b5
https://github.com/angular/angularfire/pull/3762/files#diff-97e0e61da19fe9f4d918df3038ddffddf70a56ea26b53a9650fcdb6e97c1f4b5
https://github.com/angular/angularfire/pull/3762/files#diff-97e0e61da19fe9f4d918df3038ddffddf70a56ea26b53a9650fcdb6e97c1f4b5
src/schematics/migration.jsonhttps://github.com/angular/angularfire/pull/3762/files#diff-433d9ccabf4e95211f1298bc1e5a59ee36d5ce38f2de2d6023a3f2e901f436f6
View file https://github.com/armando-navarro/angularfire/blob/452c50168bfeb7dd8231e9ce8d30f2be09a5b65f/src/schematics/migration.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/angular/angularfire/pull/3762/{{ revealButtonHref }}
https://github.com/angular/angularfire/pull/3762/files#diff-433d9ccabf4e95211f1298bc1e5a59ee36d5ce38f2de2d6023a3f2e901f436f6
https://github.com/angular/angularfire/pull/3762/files#diff-433d9ccabf4e95211f1298bc1e5a59ee36d5ce38f2de2d6023a3f2e901f436f6
Please reload this pagehttps://github.com/angular/angularfire/pull/3762/files
Please reload this pagehttps://github.com/angular/angularfire/pull/3762/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.