docs(core): give the real default of app.identity

Merged
LE
18h ago
+1-1

What

  • The identity row in the launch() app table (docs/reference/core.mdx) now gives the real default: the URL's origin and base path, else bundleId, else appPath, 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 appPath when there is no bundleId. The config reference and the TargetApp.identity doc comment already say this.

How it works

  1. docs/reference/core.mdx:99 copies the default from docs/reference/config.mdx:554, which matches resolveTargetApp in packages/core/src/config/app.ts:365. launch() reaches that through resolveProjectConfig (packages/core/src/core/launch.ts:183).

Issue

Docs-only change, no issue.

Verified

Ran it locally: yes

  • pnpm check passes. I also called resolveTargetApp directly 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/**/*.mdx page for the behavior, and skills/e2e/ if the skill describes it.
  • Contract change: emitted .d.ts reviewed, tests/types/sdk-types.ts updated; wire change edits the schema and both fixtures.
  • Engine contract change (e2e/engine): changesets for e2e, @e2e-dev/web, and @e2e-dev/mobile.