docs(core): give the real default of app.identity
Merged
LE
18h ago+1+1+0123456789-1-1-0123456789
What
- The
identityrow in thelaunch()apptable (docs/reference/core.mdx) now gives the real default: the URL's origin and base path, elsebundleId, elseappPath, with a link to the config entry.
Why
- It said "the URL or the bundle id". For an http(s) URL the code uses the origin and base path, not the whole URL, and it falls back to
appPathwhen there is nobundleId. The config reference and theTargetApp.identitydoc comment already say this.
How it works
- docs/reference/core.mdx:99 copies the default from docs/reference/config.mdx:554, which matches
resolveTargetAppin packages/core/src/config/app.ts:365.launch()reaches that throughresolveProjectConfig(packages/core/src/core/launch.ts:183).
Issue
Docs-only change, no issue.
Verified
Ran it locally: yes
pnpm checkpasses. I also calledresolveTargetAppdirectly to see which identity each app shape gets:
url https://shop.example.com/store/ -> https://shop.example.com/store/
bundleId -> com.example.shop
appPath only -> build/Shop.app
bundleId + appPath -> com.example.shop
explicit identity -> checkout-web
- No screenshot: one table cell's text changes.
Checklist
- Changeset added (
pnpm changeset) for any change to a published package, or the change is testbed, docs, or CI only. - Breaking change: title carries
!, the changeset body names what breaks and what replaces it, and the deprecation warning landed a window earlier (stability policy in CONTRIBUTING.md). - Docs updated in the same PR: the
docs/**/*.mdxpage for the behavior, andskills/e2e/if the skill describes it. - Contract change: emitted
.d.tsreviewed,tests/types/sdk-types.tsupdated; wire change edits the schema and both fixtures. - Engine contract change (
e2e/engine): changesets fore2e,@e2e-dev/web, and@e2e-dev/mobile.