@scayle/storefront-devtools 0.2.0-alpha.5 → 0.2.0-alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/CHANGELOG.md +60 -0
  2. package/README.md +109 -28
  3. package/dist/_chunks/{coalesce-MEMOF7Fy.mjs → coalesce-PetLUcf2.mjs} +361 -360
  4. package/dist/_chunks/frame-nav-DctWjxeG.mjs +3 -0
  5. package/dist/group.d.ts +14 -26
  6. package/dist/group.d.ts.map +1 -1
  7. package/dist/index.d.ts +29 -10
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.mjs +77 -106
  10. package/dist/inertia/channel.d.ts +18 -5
  11. package/dist/inertia/channel.d.ts.map +1 -1
  12. package/dist/inertia/client/index.mjs +156 -98
  13. package/dist/inertia/client/messages.d.ts +28 -0
  14. package/dist/inertia/client/messages.d.ts.map +1 -0
  15. package/dist/inertia/client/publish.d.ts +4 -2
  16. package/dist/inertia/client/publish.d.ts.map +1 -1
  17. package/dist/inertia/core/correlator.d.ts +7 -0
  18. package/dist/inertia/core/correlator.d.ts.map +1 -1
  19. package/dist/inertia/core/diagnostics.d.ts.map +1 -1
  20. package/dist/inertia/core/diff.d.ts +2 -1
  21. package/dist/inertia/core/diff.d.ts.map +1 -1
  22. package/dist/inertia/core/history-capture.d.ts.map +1 -1
  23. package/dist/inertia/core/interceptors.d.ts +1 -0
  24. package/dist/inertia/core/interceptors.d.ts.map +1 -1
  25. package/dist/inertia/core/protocol.d.ts +1 -1
  26. package/dist/inertia/core/protocol.d.ts.map +1 -1
  27. package/dist/inertia/core/request-filters.d.ts +19 -0
  28. package/dist/inertia/core/request-filters.d.ts.map +1 -0
  29. package/dist/inertia/core/request-tree.d.ts +6 -3
  30. package/dist/inertia/core/request-tree.d.ts.map +1 -1
  31. package/dist/inertia/core/response.d.ts +3 -2
  32. package/dist/inertia/core/response.d.ts.map +1 -1
  33. package/dist/inertia/core/store.d.ts +1 -0
  34. package/dist/inertia/core/store.d.ts.map +1 -1
  35. package/dist/inertia/core/types.d.ts +2 -1
  36. package/dist/inertia/core/types.d.ts.map +1 -1
  37. package/dist/inertia/core/url.d.ts +12 -0
  38. package/dist/inertia/core/url.d.ts.map +1 -1
  39. package/dist/inject.d.ts +3 -4
  40. package/dist/inject.d.ts.map +1 -1
  41. package/dist/og.d.ts +12 -0
  42. package/dist/og.d.ts.map +1 -0
  43. package/dist/orpc/channel.d.ts +9 -1
  44. package/dist/orpc/channel.d.ts.map +1 -1
  45. package/dist/orpc/client/index.mjs +30 -13
  46. package/dist/orpc/client/publish.d.ts +3 -1
  47. package/dist/orpc/client/publish.d.ts.map +1 -1
  48. package/dist/orpc/core/session.d.ts +1 -8
  49. package/dist/orpc/core/session.d.ts.map +1 -1
  50. package/dist/orpc/core/stats.d.ts +1 -1
  51. package/dist/orpc/core/stats.d.ts.map +1 -1
  52. package/dist/orpc/core/store.d.ts +1 -0
  53. package/dist/orpc/core/store.d.ts.map +1 -1
  54. package/dist/shared/clipboard.d.ts +23 -3
  55. package/dist/shared/clipboard.d.ts.map +1 -1
  56. package/dist/shared/panel-channel.d.ts +27 -1
  57. package/dist/shared/panel-channel.d.ts.map +1 -1
  58. package/dist/shared/prefs.d.ts +49 -0
  59. package/dist/shared/prefs.d.ts.map +1 -0
  60. package/dist/shared/redact.d.ts +2 -1
  61. package/dist/shared/redact.d.ts.map +1 -1
  62. package/dist/ui/assets/App-BDAG24ch.js +4 -0
  63. package/dist/ui/assets/App-CBJXphAE.css +1 -0
  64. package/dist/ui/assets/App-CoMIIpFn.js +5 -0
  65. package/dist/ui/assets/App-CrZKW7ZD.js +1 -0
  66. package/dist/ui/assets/App-D9h2xKeA.css +1 -0
  67. package/dist/ui/assets/App-DIxgDJPh.css +1 -0
  68. package/dist/ui/assets/HeadersTab-BAgPi_LJ.css +1 -0
  69. package/dist/ui/assets/HeadersTab-YiDZOc7w.js +1 -0
  70. package/dist/ui/assets/_plugin-vue_export-helper-DnlXueOW.js +2 -0
  71. package/dist/ui/assets/panels-BZNAuOBL.css +1 -0
  72. package/dist/ui/assets/panels-X7JpniLo.js +3 -0
  73. package/dist/ui/assets/store-CmrV1otI.js +1 -0
  74. package/dist/ui/panels/index.html +2 -3
  75. package/package.json +20 -24
  76. package/dist/inertia/plugin.d.ts +0 -13
  77. package/dist/inertia/plugin.d.ts.map +0 -1
  78. package/dist/orpc/plugin.d.ts +0 -13
  79. package/dist/orpc/plugin.d.ts.map +0 -1
  80. package/dist/storefront/plugin.d.ts +0 -11
  81. package/dist/storefront/plugin.d.ts.map +0 -1
  82. package/dist/ui/assets/App-25PW_NzC.css +0 -1
  83. package/dist/ui/assets/App-BHsYAu8T.js +0 -4
  84. package/dist/ui/assets/App-BqkxhJv0.css +0 -1
  85. package/dist/ui/assets/App-CQ-b0jtB.js +0 -5
  86. package/dist/ui/assets/App-Ct7Za--B.css +0 -1
  87. package/dist/ui/assets/App-DAtQapox.js +0 -1
  88. package/dist/ui/assets/_plugin-vue_export-helper-BDNMzG2s.js +0 -1
  89. package/dist/ui/assets/channel-D7V7aU79.js +0 -1
  90. package/dist/ui/assets/clipboard-Df0gl3GP.js +0 -1
  91. package/dist/ui/assets/clipboard-sKCUppVL.css +0 -1
  92. package/dist/ui/assets/css-8QJvnqUH.js +0 -1
  93. package/dist/ui/assets/css-lJZLS6R3.js +0 -1
  94. package/dist/ui/assets/diff-woXpYk--.js +0 -1
  95. package/dist/ui/assets/html-GueGcY0x.js +0 -1
  96. package/dist/ui/assets/html-WzJrCOnD.js +0 -1
  97. package/dist/ui/assets/javascript-BzbQS41l.js +0 -1
  98. package/dist/ui/assets/javascript-CpIGwZ_Y.js +0 -1
  99. package/dist/ui/assets/json-B88Oqtu5.js +0 -1
  100. package/dist/ui/assets/json-C3WlssX3.js +0 -1
  101. package/dist/ui/assets/panel-channel-BUrhmfqu.js +0 -2
  102. package/dist/ui/assets/panels-8x4hQPoN.css +0 -1
  103. package/dist/ui/assets/panels-C4yKz6cQ.js +0 -2
  104. package/dist/ui/assets/preload-helper-DLPYjEaE.js +0 -2
  105. package/dist/ui/assets/shellscript-CLZ0U2zV.js +0 -1
  106. package/dist/ui/assets/typescript-Bb1J8qyy.js +0 -1
  107. package/dist/ui/assets/typescript-j_1H8WHN.js +0 -1
  108. package/dist/ui/assets/vitesse-dark-BZCL-v6S.js +0 -1
  109. package/dist/ui/assets/vitesse-light-VbXTXTou.js +0 -1
  110. package/dist/ui/assets/vue-B1Tf5CHw.js +0 -1
  111. package/dist/ui/assets/vue-CEnfmNPK.js +0 -155
  112. package/dist/ui/assets/vue-Kq4tvBbL.css +0 -1
  113. package/dist/ui/assets/vue-html-CGMs_6qn.js +0 -1
  114. package/dist/ui/assets/yaml-rwi0_p6S.js +0 -1
  115. package/dist/ui/vue/index.html +0 -15
  116. package/dist/vue-devtools/client/index.mjs +0 -4864
  117. package/dist/vue-devtools/client.d.ts +0 -2
  118. package/dist/vue-devtools/client.d.ts.map +0 -1
  119. package/dist/vue-devtools/plugin.d.ts +0 -15
  120. package/dist/vue-devtools/plugin.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,65 @@
1
1
  # @scayle/storefront-devtools
2
2
 
3
+ ## 0.2.0-alpha.6
4
+
5
+ ### Minor Changes
6
+
7
+ - Added the `allowedOrigins` and `clientAuth` options to `storefrontDevtools()`. They pass through to `@vitejs/devtools`, so a dev server on a hostname other than `localhost`, such as a reverse proxy, a tunnel, or an `/etc/hosts` entry, can allow its origin for the dock connection:
8
+
9
+ ```ts
10
+ ...storefrontDevtools({ allowedOrigins: ['https://dev-my-app.example.com'] }),
11
+ ```
12
+
13
+ `clientAuth: false` skips the one-time code, like the `VITE_DEVTOOLS_DISABLE_CLIENT_AUTH=true` environment variable. Other dock options stay fixed, so the MCP endpoint stays off. The new `StorefrontDevtoolsOptions` type describes both options.
14
+
15
+ - Added toasts for Inertia.js diagnostics in the Vite DevTools dock. A visit that hits a warning or error rule, such as a partial reload whose `only` prop the response leaves out, now shows a toast with the rule, the request method, and the path, so the mistake is visible without opening the Inertia.js panel. Its **Open Inertia.js** button opens the panel. Each rule shows once per visit, and informational diagnostics stay in the panel. Toasts appear once the dock is authorized in the browser. The upstream Messages dock is back too. It lists the diagnostics for as long as the dev server runs, and its button shows up with the first message. The other upstream docks stay off.
16
+ - Removed the workarounds for Vite's `transformIndexHtml` hook not running on SSR-rendered HTML. `@scayle/storefront` now runs the HTML template through that hook in dev, so `@vitejs/devtools` adds the dock launcher and `vite-plugin-vue-devtools` adds its Vue hook the way they do in any Vite app. `storefrontDevtools()` no longer appends its own launcher script to the client entry, which loaded the launcher twice, and no longer passes `appendTo` to `vueDevtools()`.
17
+
18
+ ## Breaking changes
19
+ - Update `@scayle/storefront` together with this package. With a `@scayle/storefront` version that reads the HTML template without `transformIndexHtml`, the page loads neither the dock launcher nor the Vue DevTools hook.
20
+
21
+ - Added the Open Graph viewer from `@devframes/plugin-og` to the dock. It lists the title, description, canonical link, `og:*`, and `twitter:*` tags the controllers render for the current page, flags missing tags, and previews how a shared link to the page looks. The viewer follows client-side visits and runs on the dev server only.
22
+
23
+ The dev server fetches the page with Node's `fetch`, so Node has to trust its TLS certificate. With a certificate from `mkcert -install`, start the dev server with `NODE_USE_SYSTEM_CA=1`.
24
+
25
+ - Added an Inspect entry to the dock, from `vite-plugin-inspect` 12. It lists every module Vite has loaded for the client and the server render, and shows what each plugin's `load` and `transform` step did to a module, with a diff per step. Use it to find out why a module contains unexpected code or which plugin slows down a cold start. `storefrontDevtools()` adds it on the dev server only, so don't add `vite-plugin-inspect` to your own Vite config.
26
+ - Added **Copy value** and **Copy path** to every row of the trees in the Inertia and oRPC panels. Copy value copies a string as is and an object or array as JSON. Copy path copies the access path from the tree's root, such as `props.user.addresses[0]`. Both show on hover and on the focused row.
27
+
28
+ ### Patch Changes
29
+
30
+ - Added dependency `@devframes/plugin-messages@catalog:devframe`
31
+ - Added dependency `@devframes/plugin-messages--assets@catalog:devframe`
32
+ - Added dependency `@devframes/plugin-og@catalog:devframe`
33
+ - Added dependency `@devframes/plugin-og--assets@catalog:devframe`
34
+ - Added dependency `vite-plugin-inspect@catalog:`
35
+ - Added dependency `vite-plugin-vue-devtools@catalog:`
36
+ - Fixed the copy buttons in the Inertia.js and oRPC detail views confirming "Copied" when nothing reached the clipboard. They now say "Copy failed" when the browser refuses the write, for example outside a secure context or when a permission policy blocks the clipboard.
37
+ - The Inertia panel's updates no longer repeat the current page. The page, often the largest part of an update with about 83 KB on a product listing page, used to go out with every captured event. The Page tab now gets it only when the page changes, which brings an update for 200 captured visits from about 113 KB to about 30 KB.
38
+ - Aligned the `@devframes/plugin-messages--assets` dependency with `@devframes/plugin-messages`. The package pinned the assets at 1.2.6 next to the plugin at 1.3.0, so the dev server warned that the installed assets differ from the version the plugin requires. Both are now on 1.3.2, the same version as `devframe` and the other `@devframes/*` packages.
39
+
40
+ The `@devframes/plugin-og--assets` 1.3.0 and 1.3.1 releases also shipped an incomplete stylesheet, so the Open Graph panel rendered without its layout. 1.3.2 includes the missing styles.
41
+
42
+ - The empty-list message in the Inertia.js and oRPC panels, such as "Use the app to see oRPC calls appear here.", now sits below the filters instead of at the bottom of the list pane.
43
+ - Fixed the Inertia.js panel showing the wrong component for a visit after browser back or forward navigation. Inertia restores that page from history without a request, and the panel used to write the restored page into the previous visit, so its detail showed one page's component next to another page's response props. A restore now only updates the current page and adds no request to the list.
44
+ - Fixed the markup of the Inertia.js request list. The filter chips, the method and status filters, and the URL search sat inside the element with `role="listbox"`, which only allows options, so screen readers announced them as part of the list. The listbox now holds the request rows only, and the arrow keys still move the selection from the URL search.
45
+ - Fixed the Inertia.js request list not scrolling to the selected row. Moving the selection with the arrow keys now brings the row into view when it sits outside the visible part of the list.
46
+ - The Inertia.js panel now keeps the width of the request list across reloads. Before, a reload reset the list to its default width.
47
+ - Fixed the Inertia.js panel's asset version mismatch diagnostic. It guessed from a 409 status, which Inertia never reports for a location visit, so a real mismatch went unflagged and an external redirect looked like a normal visit. The panel now listens to Inertia's `inertia:location` event. It marks the visit as a redirect and flags a version mismatch only when the event says the asset version changed.
48
+ - Added method and status range filters to the Inertia.js request list, next to the visit type chips and the URL search. The panel remembers both across reloads. A visit now also carries the status of its response, so the list can filter on it and the detail header shows it for successful visits too. Before, only failed visits had one.
49
+ - Renamed the **Open Inertia.js** button of the diagnostic toasts and the Messages dock entries to **Open Inertia Panel**, so the label names the panel it opens and not the library.
50
+ - The Inertia.js panel now keeps the rows you opened in the Response tab and the Page tab. They stay open when you select another request and after a reload, where before every tree started collapsed. The panel ignores a stored value it can't read.
51
+ - The Inertia and oRPC panels stay responsive with a full capture. The page scripts used to send every captured request and call in full on each update, which came to 84 MB per update for 200 product listing page visits. Updates now carry only the fields the request and call lists show, about 113 KB for the same capture, and the panel loads the selected request or call in full on its own.
52
+ - The Inertia.js, oRPC, and Storefront panels are easier to read. Body text grew from 12px to 13px, the size Vue DevTools uses in the same dock, and the method, type, status, and duration in the request and call lists grew from 10px to 11px. The duration now uses the full text color. The Inertia.js list shows a URL on the app's origin as its path, so deferred and partial reloads no longer all truncate to the same `https://localhost:…` prefix, and hovering a row shows the full URL or procedure. Both lists widen from a grip in their bottom corner. The Storefront panel stacks its sections in one column when two columns would break field names mid-word.
53
+ - Fixed the README advice to set `devtools: { allowedOrigins }` or `devtools: { clientAuth: false }` in the app's Vite config. `storefrontDevtools()` registers the Vite DevTools dock itself, so turning on Vite's `devtools` option registers it a second time and the dev server stops with `DTK0034`. Move those settings to `storefrontDevtools({ allowedOrigins })` or `storefrontDevtools({ clientAuth: false })` and remove the `devtools` option from your Vite config.
54
+ - Fixed the oRPC panel storing the OAuth `code` of `auth/exchangeAuthCode` in cleartext. The redaction was keyed by the dotted router path, but captured calls are named by their URL path, so it never matched. The `code` now shows as `[redacted]` in the panel, in Copy as curl, and in Copy as markdown.
55
+ - Fixed the oRPC and Inertia.js panels storing values under `jwt` and `session-id` keys in cleartext, for example a `checkoutJwt` in an RPC response. These keys now show as `[redacted]`, in the panels and in Copy as curl and Copy as markdown.
56
+ - Fixed the Inertia.js, oRPC, and Storefront tab icons disappearing when the dock uses its light color scheme. The icons were white only, and now come in a light and a dark variant that the dock picks from.
57
+ - The panel app shows `Unknown Storefront DevTools view "<name>".` again when `/__storefront-devtools/panels/` opens with a hash that names no view, such as `#nope`. It used to open the Inertia.js view without a hint. Without a hash it still opens the Inertia.js view.
58
+ - The Inertia.js, oRPC, and Storefront panels now share one dock iframe instead of loading one each. The dock still shows them as separate tabs in the SCAYLE Storefront group, and switching tabs swaps the view inside that iframe, so a panel keeps its selection and filters. `/__storefront-devtools/panels/#<view>` replaces `?view=<view>` as the direct link to a panel. The dock forgets a custom order or pin you set for these tabs, because their dock entry ids changed.
59
+ - The trees in the Inertia and oRPC panels follow the WAI-ARIA tree pattern. Only one row is in the tab order, Up and Down move between rows, Right expands a row or moves to its first child, Left collapses a row or moves to its parent, and Home and End jump to the first and last row. Screen readers announce each row's level and whether it is expanded.
60
+ - The dock now shows the full Vue DevTools from `vite-plugin-vue-devtools` 9 as one "Vue DevTools" entry, in place of the separate Components and Timeline entries. Besides the component tree and the timeline, it has the inspectors that Vue plugins such as vue-i18n register, a pages view, settings, and **Select component in the page** to jump from a rendered element to its component. The `@scayle/storefront-devtools/vue-devtools/client` export is gone, as `vite-plugin-vue-devtools` now injects the Vue DevTools hook itself. The dock's MCP endpoint stays off, so Vue DevTools doesn't hand component state to MCP clients. `vite-plugin-vue-devtools` 9.0.0-rc.2 declares `@vitejs/devtools ^0.7.6`, so your package manager reports an unmet peer dependency for the 0.8.0 this package uses. It imports nothing from `@vitejs/devtools`, only types from `@vitejs/devtools-kit`, and runs on 0.8.0. The `vue` peer dependency is gone, as nothing in the package imports `vue` anymore.
61
+ - Replaced untyped values that came from Hono, `JSON.parse` and vendor SDK types with explicit types. Runtime behavior is unchanged. The auth guard middleware that `@scayle/storefront` builds now types its Hono context as `Context<{ Variables: StorefrontVariables }>`, so the `StorefrontContext` reads inside it are checked.
62
+
3
63
  ## 0.2.0-alpha.5
4
64
 
5
65
  ### Patch Changes
package/README.md CHANGED
@@ -10,7 +10,7 @@
10
10
  </h4>
11
11
 
12
12
  <p align="center">
13
- The SCAYLE <strong>Storefront DevTools</strong> package adds the Vite DevTools dock to the Storefront Application V3 with one Vite plugin call. The dock holds an Inertia.js inspector, an oRPC call inspector, a Storefront context viewer, and Vue DevTools.
13
+ The SCAYLE <strong>Storefront DevTools</strong> package adds the Vite DevTools dock to the Storefront Application V3 with one Vite plugin call. The dock holds an Inertia.js inspector, an oRPC call inspector, a Storefront context viewer, Vue DevTools, Vite Inspect, and an Open Graph viewer.
14
14
  </p>
15
15
  <p align="center">
16
16
  <a href="#"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="SCAYLE's Storefront DevTools is released under the MIT license." /></a>
@@ -18,17 +18,21 @@
18
18
 
19
19
  ## Overview
20
20
 
21
- `@scayle/storefront-devtools` is a dev-only Vite plugin. It hosts the Vite DevTools dock and registers two dock groups:
21
+ `@scayle/storefront-devtools` is a dev-only Vite plugin. It hosts the Vite DevTools dock and adds three entries to it:
22
22
 
23
- - **SCAYLE Storefront** with the Inertia.js, oRPC, and Storefront entries.
24
- - **Vue** with the Components and Timeline entries.
23
+ - The **SCAYLE Storefront** group with the Inertia.js, oRPC, and Storefront entries.
24
+ - **Vue DevTools**, the full Vue DevTools from `vite-plugin-vue-devtools`.
25
+ - **Inspect**, Vite's module graph and plugin transforms from `vite-plugin-inspect`.
26
+ - **Open Graph**, the link preview viewer from `@devframes/plugin-og`.
25
27
 
26
28
  The panels cover these jobs:
27
29
 
28
30
  - The [Inertia.js panel](#inertiajs-panel) lists every visit your app makes. It shows the response props, the headers, the Inertia protocol details, a lifecycle timeline, and the changes since the last page. It also flags common mistakes, such as a prop you asked for with `only` that the response left out.
29
31
  - The [oRPC panel](#orpc-panel) lists every call to your `/api` endpoint. It decodes each `{ json, meta }` envelope back to the typed input and output, groups calls by procedure, and classifies failures.
30
32
  - The [Storefront context panel](#storefront-context-panel) shows the shop, country, locale, and session the app resolved for the current page.
31
- - The [Vue panels](#vue-panels) give you the component tree and the timeline, so you don't need a separate `vite-plugin-vue-devtools`.
33
+ - [Vue DevTools](#vue-devtools) gives you the component tree, the timeline, and the inspectors of Vue plugins such as vue-i18n, so you don't add `vite-plugin-vue-devtools` yourself.
34
+ - [Vite Inspect](#vite-inspect) shows every module Vite has loaded and what each plugin did to it, for the client and the server render.
35
+ - The [Open Graph viewer](#open-graph-viewer) shows the meta tags the controllers render for the current page and previews how a shared link to it looks.
32
36
 
33
37
  The plugin runs on the dev server only. [Production safety](#production-safety) explains why a build carries none of it.
34
38
 
@@ -86,20 +90,22 @@ export default defineConfig({
86
90
  })
87
91
  ```
88
92
 
89
- `storefrontDevtools()` returns an array of Vite plugins, so you have to spread it. It takes no options and always registers all four panels.
93
+ `storefrontDevtools()` returns an array of Vite plugins, so you have to spread it. It always registers every panel. Its only options are the dock connection options `allowedOrigins` and `clientAuth`, described in [Security and browser authorization](#security-and-browser-authorization).
90
94
 
91
95
  ### Dev server paths
92
96
 
93
- Vite serves the dock under `/__devtools/` and the panel apps under `/__storefront-devtools/`. The Storefront Application V3 renders pages through a Hono dev server with a country-prefix redirect, which would catch those paths and rewrite them. `@scayle/storefront-build` already excludes both paths, so with both packages installed you need no extra configuration.
97
+ Vite serves the dock under `/__devtools/`, the Vue DevTools UI under `/__devtools__/`, the panel app and the Open Graph viewer under `/__storefront-devtools/`, and the Inspect UI under `/.vite-inspect/`. The Storefront Application V3 renders pages through a Hono dev server with a country-prefix redirect, which would catch those paths and rewrite them. `@scayle/storefront-build` already excludes the first three paths, so with both packages installed you need no extra configuration. The Inspect UI needs no exclusion, because `vite-plugin-inspect` serves it from a middleware that runs before the Hono dev server.
94
98
 
95
99
  ## Opening the dock
96
100
 
97
101
  Start the dev server with `pnpm dev` and open the app. A launcher appears at the bottom of the page. Open it, then pick an entry from the **SCAYLE Storefront** group (Storefront, oRPC, Inertia.js) or the **Vue** group (Components, Timeline).
98
102
 
99
- The plugin appends the launcher to the client entry instead of the HTML. The Storefront Application V3 builds its HTML in the SSR renderer, so Vite's `transformIndexHtml` hook never fires.
103
+ The launcher and the Vue DevTools hook reach the page through Vite's `transformIndexHtml` hook. `@scayle/storefront` runs the HTML template through that hook in dev, so update it together with this package. With a `@scayle/storefront` version that reads the template without it, the page loads neither the launcher nor the Vue DevTools hook.
100
104
 
101
105
  ## Panels
102
106
 
107
+ Page props, response props, event details, and oRPC input and output appear as trees that start collapsed. Each row has **Copy value**, which copies a string as is and an object or array as JSON, and **Copy path**, which copies the access path from the tree's root, such as `props.user.addresses[0]`. Both show on hover and on the focused row. The trees work with the keyboard: Tab moves into a tree, Up and Down move between rows, Right expands a row or moves to its first child, Left collapses a row or moves to its parent, and Home and End jump to the first and last row. Tab from a row reaches its copy actions, then leaves the tree.
108
+
103
109
  ### Inertia.js panel
104
110
 
105
111
  Inertia drives navigation over XHR and swaps page props without a reload. The browser shows you raw JSON and nothing about the visit. The Inertia.js panel reads the Inertia lifecycle and shows the visit.
@@ -108,7 +114,7 @@ It has a **Requests** tab and a **Page** tab. **Pause** and **Clear** sit in the
108
114
 
109
115
  #### Requests tab
110
116
 
111
- The list shows each visit as it happens, with its method, URL, visit type, duration, and a count of diagnostics. Filter by type (full, partial, deferred, prefetch, redirect, client) or type into the URL box. Deferred reloads nest under the visit that triggered them. Once the list passes 200 visits, a footer tells you how many older ones dropped off. After a full reload, a collapsible **Previous session** block keeps a summary of the earlier visits. It holds the method, URL, type, and status for five minutes.
117
+ The list shows each visit as it happens, with its method, URL, visit type, duration, and a count of diagnostics. A URL on your app's origin shows as its path, and hovering a row shows the full URL. Drag the grip in the list's bottom corner to widen it, and the panel keeps that width across reloads. Filter by type (full, partial, deferred, prefetch, redirect, client), by method (GET, POST, PUT, PATCH, DELETE), or by status range (2xx, 4xx, 5xx), or type into the URL box. There is no 3xx option, because the browser follows a redirect before Inertia sees the response. A visit without a response status, such as a client visit or the initial page load, shows only under **All**. Deferred reloads nest under the visit that triggered them. Once the list passes 200 visits, a footer tells you how many older ones dropped off. After a full reload, a collapsible **Previous session** block keeps a summary of the earlier visits. It holds the method, URL, type, and status for five minutes.
112
118
 
113
119
  Select a visit to see its detail. The header shows the method, URL, type, status, component, duration, and the redirect target of a 409 response. Below it you find the feature badges, the diagnostics, and four tabs:
114
120
 
@@ -129,7 +135,7 @@ A badge marks each Inertia feature active on a visit: partial reload, deferred p
129
135
 
130
136
  Diagnostics flag common mistakes:
131
137
 
132
- - an asset version mismatch that forced a 409 reload
138
+ - an asset version mismatch that forced a 409 reload, as Inertia's `inertia:location` event reports it
133
139
  - a canceled or interrupted visit
134
140
  - a prop you requested with `only` that the response left out
135
141
  - validation errors lost because `only` didn't include `errors`
@@ -138,13 +144,23 @@ Diagnostics flag common mistakes:
138
144
 
139
145
  Each diagnostic links to the relevant documentation.
140
146
 
147
+ #### Toasts in the dock
148
+
149
+ Some Inertia.js mistakes fail without a sound. When a partial reload asks for a prop with `only` and the response leaves it out, or a deferred prop fails to load, the page renders without that data and the browser console stays quiet. The Inertia.js panel already flags these, but only while you look at it. The toasts bring these warnings to you while you work on a page, and one click takes you to the request.
150
+
151
+ Storefront Application V3 uses partial reloads and deferred props on many of its pages, so these mistakes are easy to make there. The toasts reuse the panel's existing rules, run in the dev server only, and need no setup.
152
+
153
+ The version mismatch, the missing partial-reload prop, the filtered validation errors, and the failed deferred props are warnings or errors. Each one also shows up as a toast in the bottom-right corner of the page, so you see it without opening the Inertia.js tab. The toast names the rule, the request method, and the path, and its **Open Inertia Panel** button opens the panel. A rule shows once per visit. The notes on canceled, interrupted, and history-replace visits stay in the panel only. Toasts appear once you have authorized the dock in that browser. A diagnostic found before that shows with the next visit after you authorize it. The toasts also collect in the Messages dock, see below. Click a toast to open it there.
154
+
155
+ The toasts cover only the warning and error rules above, once per visit, and they disappear after a few seconds. The Messages dock keeps them. They catch a mistake in a visit that happens. They don't check visits you never trigger, so they are no replacement for tests.
156
+
141
157
  #### Page tab
142
158
 
143
159
  The Page tab shows the current page props as a collapsible tree, with the page-level feature badges. Use it to inspect what your component renders right now, apart from any single visit.
144
160
 
145
161
  #### Pausing and clearing
146
162
 
147
- Pause stops capture so a busy page doesn't flood the list while you read a visit. Resume continues from that point. Clear empties the list. The panel remembers the active top-level tab and the type filter, but not the URL search.
163
+ Pause stops capture so a busy page doesn't flood the list while you read a visit. Resume continues from that point. Clear empties the list. The panel remembers the active top-level tab, the type, method, and status filters, the list width, and the rows you opened in the Response tab and the Page tab, but not the URL search. It keeps them in `sessionStorage` for the browser tab, and ignores a stored value it can't read.
148
164
 
149
165
  ### oRPC panel
150
166
 
@@ -154,7 +170,7 @@ It has a **Calls** tab and a **Stats** tab. **Pause** and **Clear** sit in the t
154
170
 
155
171
  #### Calls tab
156
172
 
157
- The list shows each call as it fires, with its method, procedure (`basket/add`, `wishlist/remove`, and so on), a status badge, and the duration. The badge is green for success, amber for a validation error, and red for a server or network error. Filter by domain (the first path segment, such as `basket` or `search`) or type into the box to match a procedure. A collapsible **Previous session** block keeps the calls from before a reload.
173
+ The list shows each call as it fires, with its method, procedure (`basket/add`, `wishlist/remove`, and so on), a status badge, and the duration. The badge is green for success, amber for a validation error, and red for a server or network error. Filter by domain (the first path segment, such as `basket` or `search`) or type into the box to match a procedure. A collapsible **Previous session** block keeps the calls from before a reload. Like the Inertia.js list, the call list widens from the grip in its bottom corner.
158
174
 
159
175
  Select a call to see its overview and two tabs:
160
176
 
@@ -177,23 +193,78 @@ A read-only view of what the app resolved for the current page:
177
193
 
178
194
  The panel reads the Inertia page the SDK ships, so it shows no secrets and no session token. Use it to check which shop, country, and locale a request resolved to without digging through page props.
179
195
 
180
- ### Vue panels
196
+ ### Messages dock
197
+
198
+ The Messages dock lists every message the dock received, including the Inertia.js diagnostics behind the toasts. Its button shows up in the dock bar with the first message and stays hidden until then. Select an entry to read it in full, with an **Open Inertia Panel** button that jumps to the panel. You can search the list, filter it by level, source, and label, delete single entries, or dismiss all of them. It lasts as long as the dev server runs, so a diagnostic you missed while its toast was up is still there.
199
+
200
+ The dev server keeps one feed for every browser tab connected to it. A toast and its entry show in each open tab, also for a visit another tab made, while each tab's Inertia.js panel holds only its own visits. After a reload, the Open Inertia Panel button of an older entry does nothing until you have opened the SCAYLE Storefront group once in the new page. An entry sent before the panel first loaded in a page opens the panel on the tab you picked last, so it can land on oRPC or Storefront instead of Inertia.js. This is the upstream Messages dock of Vite DevTools. The rest of the upstream docks, such as Terminals and the Inspector, stay off.
201
+
202
+ ### Vue DevTools
203
+
204
+ The **Vue DevTools** entry is the full Vue DevTools UI from `vite-plugin-vue-devtools` 9, the same integration Nuxt DevTools 4 uses. It covers the component tree with props and setup state, the timeline, the inspectors that Vue plugins such as vue-i18n register, and the settings. **Select component in the page** lets you click a rendered element to jump to its component. Don't add `vite-plugin-vue-devtools` to your own Vite config, this package already does. The dock's MCP endpoint stays off (`mcp: false`), so the Vue DevTools agent tools, which would read component props and setup state without the redaction the storefront panels apply, never register.
205
+
206
+ The **Pages** tab lists Vue Router routes. The Storefront Application V3 routes on the server through Hono and Inertia.js, so the tab only shows `No routes`. `vite-plugin-vue-devtools` has no option to remove it, but you can hide it yourself: open the Vue DevTools settings and switch Pages off under **Tabs**. The choice is saved in your browser's `localStorage` for the app's origin, so it stays hidden until you reset the Vue DevTools settings.
207
+
208
+ Two more upstream behaviors are worth knowing. Hovering a component in the tree paints a highlight on the page, and that highlight can stay after you switch to another dock entry. A page reload clears it. The Vue DevTools UI also loads its DM Sans and DM Mono fonts from `fonts.googleapis.com`, so opening it sends a request to Google, and without network access it falls back to your system fonts.
209
+
210
+ `vite-plugin-vue-devtools` 9 is still a release candidate (9.0.0-rc.2). It declares `@vitejs/devtools ^0.7.6` but imports nothing from it, only types from `@vitejs/devtools-kit`, so it runs on the 0.8.0 this package uses. Your package manager reports that as an unmet peer dependency until a release declares 0.8.
211
+
212
+ ### Vite Inspect
213
+
214
+ The **Inspect** entry is the UI of `vite-plugin-inspect` 12, the same integration Nuxt DevTools 4 offers. It lists every module Vite has loaded so far, with the plugins that touched it, and switches between the `client` and `ssr` environments. Pick a module to see its transform stack: the code after each plugin's `load` and `transform` step, with a diff to the step before. The other views show the import graph and the time each plugin and middleware takes.
215
+
216
+ Use it when a module doesn't contain what you expect, for example an alias resolves to the wrong file, an unused CMS provider directory shows up in the module list, or a plugin rewrites code it shouldn't. It also points at the plugin that makes a cold start or a hot update slow. The list only holds modules a request has loaded since the dev server started, so open the page first. The UI shows your source code to anyone the dock trusts, the same as the dev server itself. Its metrics view also lists every URL the dev server answered, query string included, without the redaction the SCAYLE Storefront panels apply. A password reset link's `hash`, for example, shows up there.
217
+
218
+ A lot of what the Storefront Application V3 runs never appears in your own source files. `@scayle/storefront-build` turns `storefront.config.*` into the `virtual:storefront-config` module, `vite.config.ts` points the `@cms-client`, `@cms-server`, and `@cms-shared` aliases at the selected `CMS_PROVIDER`, and this package prepends its page scripts to `src/client/main.ts`. Inspect shows the result per module: what a virtual module contains, which file an alias resolved to, and what the client entry looks like after every plugin ran. The `client` and `ssr` switch shows which modules the browser loads and which the server render runs through Vite, so a server-only import that reaches the client graph stands out.
219
+
220
+ These plugins ship inside SCAYLE packages, so without Inspect you'd have to read their source to see what they do to your code. That's why `storefrontDevtools()` includes it: there is nothing to install or configure, and like the rest of this package it stays out of production builds.
181
221
 
182
- The **Vue** dock group holds the Vue DevTools Components and Timeline views. They replace a separate `vite-plugin-vue-devtools` install. Both load the `@vue/devtools-applet` UI in an iframe and reach the app page over a `BroadcastChannel` RPC bridge.
222
+ Inspect answers build and transform questions only. It doesn't show runtime state, such as page props, the session, or the requests a page makes. The Inertia.js, oRPC, and Storefront panels and Vue DevTools cover those.
183
223
 
184
- Click-to-inspect, where you click a rendered element to jump to its component, isn't included. It needs `vite-plugin-vue-inspector` in your own Vite config, and this package doesn't add it.
224
+ Inspect keeps the output of every plugin step for every module it has seen, per environment, in the dev server's memory for the whole session, whether you open the entry or not. An edit replaces the entries of the changed module, so the memory grows with the number of modules, not with every edit. To turn Inspect off, filter it out of the returned plugins by name:
225
+
226
+ ```ts
227
+ export default defineConfig({
228
+ plugins: [
229
+ vue(),
230
+ ...storefrontDevtools().filter(
231
+ (plugin) =>
232
+ !(plugin && 'name' in plugin && plugin.name === 'vite-plugin-inspect'),
233
+ ),
234
+ // storefrontBuild(...) and the other plugins, as in the setup example
235
+ ],
236
+ })
237
+ ```
238
+
239
+ ### Open Graph viewer
240
+
241
+ The **Open Graph** entry is the viewer from `@devframes/plugin-og`, the same one Nuxt DevTools 4 ships. It lists the head metadata of the page the app shows: the title, the description, the canonical link, the `hreflang` alternates, and the `og:*` and `twitter:*` tags. It flags the tags a link preview would miss and draws the card the way Twitter, Facebook, LinkedIn, and Telegram show it. The URL field follows the page in the app, client-side visits included. Enter another path to inspect that page instead.
242
+
243
+ Use it while you build or change a page. The Storefront Application V3 builds the page meta in its controllers, and shops adjust it per page type, such as product detail, product listing, and CMS pages. A missing or wrong tag shows up on your machine, before a release, without deploying the page or opening an external link preview debugger. The viewer runs on the dev server only and needs no setup in the app.
244
+
245
+ Know these limits:
246
+
247
+ - The viewer doesn't read the page in your browser. The dev server fetches the URL with Node's `fetch` and parses the HTML that comes back, so you see what the controllers render into the SSR response. The request carries no cookies, which shows the page the way a signed-out user and a link preview crawler get it.
248
+ - The previews are drawn from the tags, not fetched by the platforms. A real crawler can still show something else, for example a card it cached earlier or no image because it can't download the one in `og:image`.
249
+ - Node has to trust the dev server's TLS certificate, and by default it ignores the system keychain that `mkcert -install` writes to. The viewer then reports `unable to verify the first certificate`. Start the dev server with `NODE_USE_SYSTEM_CA=1`, or set `NODE_EXTRA_CA_CERTS` to the path that `echo "$(mkcert -CAROOT)/rootCA.pem"` prints.
250
+ - While the viewer is open, every visit in the app makes the dev server render the page a second time, without cookies. That shows up as an extra request in traces and logs, so close the viewer before you trace or profile a request.
251
+ - In the dock's Popup mode, the viewer can't follow the app page. Its URL field shows `blank` and the fetch fails with `ENOTFOUND blank`. Enter an absolute URL, such as `https://localhost:3000/de/wishlist`, or switch back to Float or Edge mode.
252
+ - The **Nuxt snippet** tab of the suggestions offers a `useSeoMeta` call for Nuxt. It doesn't apply here. Set missing tags in the page meta that the controller builds.
253
+
254
+ The viewer lives in its own dock entry, outside the SCAYLE Storefront group, and its UI ships in `@devframes/plugin-og--assets`, so nothing is downloaded from a CDN at runtime.
185
255
 
186
256
  ## Captured data
187
257
 
188
258
  ### Redaction
189
259
 
190
- The panels never show credentials. Every capture path in the store replaces the value of a key whose name contains `password`, `passphrase`, `secret`, `token`, `credential`, `authorization`, `cookie`, or `api-key` (also `api_key` and `apikey`, case-insensitive) with `[redacted]`. This covers page props, flash data, form data, response props, headers, and oRPC input and output. The oRPC panel also redacts `code` for `auth.exchangeAuthCode`, where it carries an OAuth code.
260
+ The panels never show credentials. Every capture path in the store replaces the value of a key whose name contains `password`, `passphrase`, `secret`, `token`, `jwt`, `credential`, `authorization`, `cookie`, `session-id`, or `api-key` (also `api_key`, `apikey`, and `session_id`, case-insensitive) with `[redacted]`. This covers page props, flash data, form data, response props, headers, and oRPC input and output. The oRPC panel also redacts `code` for `auth/exchangeAuthCode`, where it carries an OAuth code.
191
261
 
192
262
  Request and response headers follow the same rule. A header such as `authorization`, `cookie`, `x-api-key`, or `x-auth-token` is dropped from the captured headers, and shows as `[redacted]` inside an event's `visit.headers`.
193
263
 
194
264
  Two details to know:
195
265
 
196
266
  - Matching works on key names only. A credential inside a value, such as a token in a URL query string, isn't detected.
267
+ - Dock toasts carry the request path without its query string or hash, and no header or prop values.
197
268
  - Validation messages stay readable. The `inertia:error` event keeps its error bag as is, so `errors.password: "Must be 8 characters"` shows in the Events tab. The error bag in a response's page props is still redacted by key.
198
269
 
199
270
  A prop whose name matches, such as `token` or `cookieConsent`, shows as `[redacted]` even when it holds harmless data. Rename the prop if you need to read it in the panel.
@@ -207,17 +278,23 @@ A prop whose name matches, such as `token` or `cookieConsent`, shows as `[redact
207
278
  | Events per Inertia request | 100, upload `progress` events drop first |
208
279
  | Depth of a captured value | 10 levels, deeper values show as `[too deep]` |
209
280
  | Previous session after reload | Summaries only, kept in `sessionStorage` for 5 minutes |
210
- | Snapshot rate to the panels | One per 16 ms |
281
+ | Snapshot rate to the panels | One per 16 ms, none while no panel is open |
211
282
 
212
283
  Each browser tab keeps its own capture. Two open tabs never see each other's requests.
213
284
 
214
285
  ## Security and browser authorization
215
286
 
216
- The dock in the browser talks to the Vite dev server over a WebSocket RPC channel (`@devframes/hub`, with `crossws` as its transport layer). Your panels share that channel with RPC functions from `@vitejs/devtools` that reach into your machine, for example `vite:core:open-in-editor`, which opens any file path in your editor, and a terminals feed. This package sets `builtinDevTools: false`, which drops the upstream Terminals, Messages, and Inspector docks and their UI. The RPC declarations behind them stay, because they belong to `@vitejs/devtools` and a consumer can't remove them. Two independent checks protect the channel.
287
+ The dock in the browser talks to the Vite dev server over a WebSocket RPC channel (`@devframes/hub`, with `crossws` as its transport layer). Your panels share that channel with RPC functions from `@vitejs/devtools` that reach into your machine, for example `vite:core:open-in-editor`, which opens any file path in your editor, a terminals feed, and the Open Graph viewer's `devframes:plugin:og:resolve-metadata`, which makes the dev server fetch any HTTP or HTTPS URL. This package sets `builtinDevTools: false`, which drops the upstream Terminals and Inspector docks and their UI. The Messages dock is the one upstream dock it brings back, see [Messages dock](#messages-dock). The RPC declarations behind them stay, because they belong to `@vitejs/devtools` and a consumer can't remove them. Two independent checks protect the channel.
217
288
 
218
289
  ### Origin allowlist
219
290
 
220
- `@vitejs/devtools` accepts a WebSocket connection only when its `Origin` header matches a built-in loopback allowlist (`localhost`, `127.0.0.1`, and similar). The check compares strings. It doesn't resolve DNS or read your hosts file, so a custom dev hostname that points at loopback through `/etc/hosts` or a local DNS override (for example `dev-my-app.example.com`) gets rejected by default. If your setup needs another hostname, such as a reverse proxy, a tunnel, or a custom `/etc/hosts` entry, add it with `devtools: { allowedOrigins: ['https://dev-my-app.example.com'] }` in the app's Vite config.
291
+ `@vitejs/devtools` accepts a WebSocket connection only when its `Origin` header matches a built-in loopback allowlist (`localhost`, `127.0.0.1`, and similar). The check compares strings. It doesn't resolve DNS or read your hosts file, so a custom dev hostname that points at loopback through `/etc/hosts` or a local DNS override (for example `dev-my-app.example.com`) gets rejected by default. Add such an origin with the `allowedOrigins` option:
292
+
293
+ ```ts
294
+ ...storefrontDevtools({ allowedOrigins: ['https://dev-my-app.example.com'] }),
295
+ ```
296
+
297
+ Set it on `storefrontDevtools()`, not as `devtools: { allowedOrigins }` in the app's Vite config. This package registers the dock host itself, so turning on Vite's `devtools` option registers the dock a second time, and Vite stops with `DTK0034`. Turning off the one-time code below doesn't help here either, because the origin check runs on its own.
221
298
 
222
299
  ### One-time client authorization
223
300
 
@@ -225,11 +302,11 @@ On top of the origin check, `@vitejs/devtools` puts the RPC connection behind a
225
302
 
226
303
  ### Turning off the authorization check
227
304
 
228
- `devtools: { clientAuth: false }` (or the `VITE_DEVTOOLS_DISABLE_CLIENT_AUTH=true` environment variable) skips the one-time code. The `@vitejs/devtools` documentation warns about this: _"if you disable client authentication, any browsers can connect to the devtools and access to your server and filesystem (including other devices, if you open server `host` option to LAN or WAN)."_ Turn it off only where every request comes from a trusted developer. Never do it with `server.host` bound to a LAN or WAN interface, in a shared environment, or anywhere close to production.
305
+ `storefrontDevtools({ clientAuth: false })`, or the `VITE_DEVTOOLS_DISABLE_CLIENT_AUTH=true` environment variable, skips the one-time code. As with `allowedOrigins`, set it on `storefrontDevtools()` and not as Vite's own `devtools` option. The `@vitejs/devtools` documentation warns about this: _"if you disable client authentication, any browsers can connect to the devtools and access to your server and filesystem (including other devices, if you open server `host` option to LAN or WAN)."_ Turn it off only where every request comes from a trusted developer. Never do it with `server.host` bound to a LAN or WAN interface, in a shared environment, or anywhere close to production.
229
306
 
230
307
  ### Production safety
231
308
 
232
- The plugin that adds imports to your client entry and the Vue DevTools plugin set `apply: 'serve'`, so Vite skips them in `vite build`. The dock host opens its WebSocket RPC server from the `configureServer` hook, which Vite calls for `vite dev` and never for `vite build`. The upstream build-time injection options (`devtools.build.withApp` and `devtools.build.injection`) default to off, and this package doesn't turn them on. A production build and its runtime output carry no RPC server, no WebSocket endpoint, and none of the injected page scripts or launcher code.
309
+ The plugin that adds imports to your client entry, the Vue DevTools plugins, the Inspect plugin, and the Open Graph viewer set `apply: 'serve'`, so Vite skips them in `vite build`. The dock host opens its WebSocket RPC server from the `configureServer` hook, which Vite calls for `vite dev` and never for `vite build`. The upstream build-time injection options (`devtools.build.withApp` and `devtools.build.injection`) default to off, and this package doesn't turn them on. A production build and its runtime output carry no RPC server, no WebSocket endpoint, and none of the injected page scripts or launcher code.
233
310
 
234
311
  ## How it works
235
312
 
@@ -238,14 +315,15 @@ The package has two halves. Page scripts run in the app's own page and capture w
238
315
  ```
239
316
  app page (browser) dock iframe
240
317
  page script (injected into the client entry) panel app (/__storefront-devtools/panels/)
241
- inertia:* DOM events ?view=inertia | orpc | storefront
318
+ inertia:* DOM events one dock tab per view: inertia | orpc | storefront
242
319
  interceptors (headers, response props)
243
320
  history capture (pushState/replaceState)
244
321
  network timing (PerformanceObserver)
245
322
  -> Correlator -> RequestRecords -> DevToolsStore
246
323
  createPageScriptChannel() ── state snapshots ──▶ connectPanelChannel()
247
- ◀── getState, clear, mirrors the latest
248
- setPaused ─────── snapshot into a Vue ref
324
+ ◀── getState, mirrors the latest
325
+ getRequest/getCall, snapshot into a Vue ref,
326
+ clear, setPaused ─ loads the selected item
249
327
  ```
250
328
 
251
329
  ### Inertia capture
@@ -261,7 +339,7 @@ Every handler runs inside a guard, so a devtools error can't crash the app.
261
339
 
262
340
  ### Correlation
263
341
 
264
- A correlator groups the raw events into one `RequestRecord` per visit. It matches an event by the visit fingerprint, then by the visit id that `navigate`, `success`, and `error` events carry, and falls back to the most recently started visit for events without one. It handles deferred prop reloads, prefetch cache hits, POST to redirect flows, 409 asset version mismatches, and the initial page load. The store keeps the latest 200 records and saves a compact summary to `sessionStorage`.
342
+ A correlator groups the raw events into one `RequestRecord` per visit. It matches an event by the visit fingerprint, then by the visit id that `navigate`, `success`, and `error` events carry, and falls back to the most recently started visit for events without one. It handles deferred prop reloads, prefetch cache hits, POST to redirect flows, 409 location visits (`inertia:location`, which says whether the asset version changed), and the initial page load. Browser back and forward navigation restores a page from history without a request, so it updates the current page but adds no record. The store keeps the latest 200 records and saves a compact summary to `sessionStorage`.
265
343
 
266
344
  ### oRPC capture
267
345
 
@@ -269,9 +347,9 @@ The oRPC page script patches `window.fetch` once on load. For each request whose
269
347
 
270
348
  ### Publishing to the panels
271
349
 
272
- Each page script opens its own channel (`storefront-devtools:inertia`, `storefront-devtools:orpc`) and pushes a snapshot of its store to the connected panels, at most one per 16 ms. A panel that opens later asks for the current snapshot with `getState`, and Pause and Clear reach the store as channel calls. Snapshots cross the channel through structured clone, so the page scripts copy every captured value with `safeClone` first. The Storefront context panel has no page script of its own. The Inertia page script serves it on a second channel, `storefront-devtools:storefront`.
350
+ Each page script opens its own channel (`storefront-devtools:inertia`, `storefront-devtools:orpc`) and pushes a snapshot of its store to the connected panels, at most one per 16 ms. A snapshot lists each request or call with only the fields the list shows and filters on, such as the method, URL, type, status, and timing. The panel loads the full record of the selected item with `getRequest` (Inertia) or `getCall` (oRPC), and loads it again after each snapshot while it stays selected and its view is on screen. A view counts as off screen while another storefront tab is shown or the dock is closed. A different dock entry opened in front of the storefront panels hides them without the panels noticing, so the selected item keeps loading then. While no panel is connected, the page scripts keep capturing but build no snapshots. A panel that opens later gets the current snapshot as it connects, and asks for it with `getState` after a reconnect. Pause and Clear reach the store as channel calls. Snapshots cross the channel through structured clone, so the page scripts copy every captured value with `safeClone` first. The Storefront context panel has no page script of its own. The Inertia page script serves it on a second channel, `storefront-devtools:storefront`, which sends the current page only when it changes. The Page tab of the Inertia panel reads the current page from that channel too, so the Inertia snapshots leave it out.
273
351
 
274
- The package builds one small Vue app for the three storefront panels and serves it, together with the Vue DevTools UI, from `/__storefront-devtools/`. The `?view=` query picks the panel. Each panel runs in its own iframe, so its styles never touch your app, and the dock keeps a hidden panel's iframe alive and receiving snapshots. The panel styles are dark mode only.
352
+ The package builds one small Vue app for the three storefront panels and serves it from `/__storefront-devtools/`. The three panels share one dock iframe, so their styles never touch your app. The panel app announces each panel to the dock as its own tab, and picking a tab switches the view inside that iframe instead of loading another one. A view mounts the first time you open it and stays mounted, so it keeps its selection and filters and keeps receiving snapshots while another tab is open. `/__storefront-devtools/panels/#orpc` (or `#inertia`, `#storefront`) opens a view outside the dock. Without a hash it opens the Inertia.js view, and a hash that names no view shows an `Unknown Storefront DevTools view` message. The panel styles are dark mode only. The dock tab icons come in a light and a dark variant, so they stay visible in either dock color scheme.
275
353
 
276
354
  The tabs follow the WAI-ARIA tabs pattern: the arrow keys, Home, and End move between tabs, and only the selected tab is in the tab order. In the request and call lists, the up and down arrow keys move the selection.
277
355
 
@@ -281,12 +359,15 @@ The layout, the rules that keep the panels correct, and the test setup are in [C
281
359
 
282
360
  ## Upstream stability
283
361
 
284
- `@vitejs/devtools` and `@vitejs/devtools-kit` are `0.x` releases, so any minor version can ship a breaking change without a deprecation period. This package pins both to the same version in the workspace catalog and currently uses 0.8.0. `@devframes/hub` and `@devframes/hub-ui` reached 1.0 in September 2026 and arrive as transitive dependencies of `@vitejs/devtools`. A routine `pnpm update` can move them without any `@vitejs/devtools` bump. They resolve to 1.2.6 today, next to `devframe` 1.2.6, the library behind the page-script channel.
362
+ `@vitejs/devtools` and `@vitejs/devtools-kit` are `0.x` releases, so any minor version can ship a breaking change without a deprecation period. This package pins both to the same version in the workspace catalog and currently uses 0.8.0. `@devframes/hub` and `@devframes/hub-ui` reached 1.0 in September 2026 and arrive as transitive dependencies of `@vitejs/devtools`. A routine `pnpm update` can move them without any `@vitejs/devtools` bump. They resolve to 1.2.6 today, next to `devframe` 1.3.0, the library behind the page-script channel. `@devframes/plugin-og` and `@devframes/plugin-og--assets` are pinned to the same version, because the plugin declares an exact `devframe` peer. Upstream marks the plugin's API as experimental, so it can change in a patch release. Read its changelog on every bump.
285
363
 
286
364
  When you upgrade any of these packages:
287
365
 
288
366
  - Check the `@vitejs/devtools` peer range that `vite` declares. Vite 8.3.5 accepts `^0.7.1 || ^0.8.0`, and earlier 8.3 releases accept only `^0.7.1`, so `vite` and `@vitejs/devtools` move together.
289
367
  - Read the release notes of `@vitejs/devtools` for changes to the dock host, the RPC functions, or the `DevTools()` options. This package passes `builtinDevTools` and `branding`.
368
+ - Move `@devframes/plugin-og` and `@devframes/plugin-og--assets` with `devframe`, to the same version.
369
+ - Check the `@vitejs/devtools-kit` range of `vite-plugin-vue-devtools` and `vite-plugin-inspect`, the `@vitejs/devtools` peer range of `vite-plugin-vue-devtools`, and whether the `@vitejs/devtools-kit` override in the root `pnpm-workspace.yaml` is still needed.
370
+ - Check that diagnostics still show as toasts and in the Messages dock. They depend on the hub's `hub:messages:add` RPC and on `@devframes/plugin-messages`, which registers the Messages dock and the list RPC the toasts read from. Its UI ships in `@devframes/plugin-messages--assets`, so move both packages together.
290
371
  - After the bump, run the commands from the Development section, then open every panel in the dock.
291
372
 
292
373
  ## License