magic_devtools 1.1.0
magic_devtools: ^1.1.0 copied to clipboard
Wire a Magic app into tapir (E2E driver) and crumbs (runtime inspector): Magic-aware snapshots, records, perf tracing and previews, tree-shaken from release builds.
Changelog #
All notable changes to this package are documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[Unreleased] #
1.1.0 - 2026-11-18 #
Added #
MagicLogWatcherrecords magic'sLogcalls in crumbs. crumbs' own log watcher readspackage:logging, which magic never writes to, socrumbs:tail,crumbs_tailandtapir:consolestayed empty for a Magic app; the watcher wraps the container'slogmanager, forwards each call to the wrapped driver, then records it with the level mapped onto crumbs' names, the channel as the logger name and the context inerror, aMaporListcontext masked by key with crumbs' hidden names first.MagicCrumbsIntegration.install()registers it andresetForTesting()unwraps it; a call made duringMagic.init(), before the post half, is not recorded. Fixes #36. (lib/src/crumbs_integration.dart)
1.0.1 - 2026-11-15 #
Added #
- Documentation pages.
doc/now covers installation and the two-phase install, the tapir integration (the 14 snapshot enrichers and the navigate adapter), the crumbs integration (HTTP capture, the five watchers, credential masking and the tapir bridge), performance sessions and the insight rules, the preview catalog, and testing. The docs site publishes them underhttps://anilcancakir.com/magic/docs/devtools/from this release. (doc/) - A docs check.
python3 tool/check-docs.pychecks the page layout, titles, internal links, anchors and docs-site URLs offline, and theInternal LinksandExternal Linksjobs run it and lychee in CI. (tool/check-docs.py,.github/workflows/docs-link-check.yml,.lycheeignore,.claude/rules/docs.md) llms.txtfor AI coding agents. A summary, the setup, the API of each barrel, the platform notes, the rules an agent follows and one line per doc page.python3 tool/check-docs.pyresolves its doc lines againstdoc/, and the weeklyExternal Linksjob checks its URLs. (llms.txt,tool/check-docs.py,.github/workflows/docs-link-check.yml)- An agent skill.
skills/magic-devtools/SKILL.mdcarries the install, the rules for each integration with their reasons, recipes and the test resets; install it withnpx skills add anilcancakir/magic_devtools. A stable release mirrors it into the skill registry. (skills/magic-devtools/SKILL.md,.github/workflows/dispatch-to-registry.yml,.github/workflows/publish.yml) - A runnable example.
example/wires both tools aroundMagic.init()withMagicDevtools, registers a two-entry preview catalog, and has buttons that give tapir and crumbs a request and adebugPrintto record. (example/)
Changed #
- The package page points to the new home. The pub.dev homepage is now
https://anilcancakir.com/magic/devtools, the repository and issue tracker aregithub.com/anilcancakir/magic_devtools, the description says what the package wires and that release builds drop it, and the package lists thedevtools,debugging,testing,observabilityandmagictopics. (pubspec.yaml) MagicPreview.registerRoutes()documents what a late call does. A call afterMagicRouter.instance.routerConfigwas first read throws the router'sStateError; the doc comment used to say the routes silently never appear. (lib/preview.dart,lib/src/preview/preview_routes.dart)- API docs read cleanly on pub.dev. The enricher formats in
MagicTapirIntegrationand the query binding note inMagicCrumbsIntegrationare code spans, so dartdoc no longer reads<Class>,<bool>orList<dynamic>as HTML, andMagicEventWatcherdescribes its empty payload without pre-release wording. (lib/src/tapir_integration.dart,lib/src/crumbs_integration.dart) - The license names the author as
Anılcan Çakır. (LICENSE) - The README is rewritten around what each integration does and how it fails. It now opens with an at-a-glance table, gives each integration a sample, a member table and its failure modes, adds a table of rules for AI coding agents, and links the new home on
anilcancakir.comandgithub.com/anilcancakir. (README.md) - The README no longer misstates four things.
crumbs:installwrites its block under!kReleaseMode, notkDebugMode, so a profile build carries crumbs; the preview catalog shows one preview at a time with a light and dark toggle, rather than every preview in both themes; aregisterRoutes()call after the router is built throws the router'sStateErrorinstead of silently adding nothing; and local development against sibling clones uses absolute paths inpubspec_overrides.yaml, since a relative../magicdoes not resolve from a worktree. (README.md) - The docs say when the router locks.
Magic.init()builds the router as its last step, soMagicPreview.registerRoutes()andMagicPerfIntegration.install()already throw when called afterMagic.init()returns, not only once the app is running; the preview and performance pages and theregisterRoutes()doc comment said otherwise. The preview page's anchor before Related Documentation no longer sits inside the Gotchas table. (doc/basics/preview-catalog.md,doc/basics/performance.md,lib/src/preview/preview_routes.dart) - Doc comments read cleanly. The
kPreviewEnabledcomment no longer repeats three lines, the preview and enricher comments drop internal plan-step labels, andMagicCrumbsIntegrationsays its adapter and watchers are public throughpackage:magic_devtools/crumbs.dartinstead of calling them test-only. (lib/src/preview/preview_routes.dart,lib/src/preview/magic_preview.dart,lib/src/tapir_integration.dart,lib/src/crumbs_integration.dart)
Fixed #
- An enriched snapshot no longer fails in an app without auth.
magicAuthUserEnrichercalledAuth.user()even when noAuthServiceProviderwas registered, so the container's "Service [auth] is not registered" error ended the wholetapir:snap --includeEnrichers. It now returns nothing when theauthbinding is missing, as the Echo enricher does forbroadcasting, and the other enrichers keep their lines. (lib/src/tapir_integration.dart,test/tapir_integration_test.dart,doc/basics/tapir-integration.md)
1.0.0 - 2026-11-14 #
BREAKING #
- Needs core
magic^1.0.0. That release moves todowel,wind_kitandmaterial_ui, and raises the floors to Dart 3.13 and Flutter 3.47, which this package now shares.fluttersdk_windis nowwind_kit(^1.12.0), andmaterial_ui(^1.11.0) replacespackage:flutter/material.dartinlib/andtest/. (pubspec.yaml,lib/,test/) fluttersdk_duskandfluttersdk_telescopeare replaced bytapir ^1.0.0andcrumbs ^1.0.0. Both old packages are discontinued upstream. The barrelspackage:magic_devtools/dusk.dartandpackage:magic_devtools/telescope.dartbecometapir.dartandcrumbs.dart,MagicDuskIntegrationbecomesMagicTapirIntegrationandMagicTelescopeIntegrationbecomesMagicCrumbsIntegration, with no alias left under the old names.MagicDevtools.installPre()andinstallPost()keep their signatures and now installTapirPluginandCrumbsPlugin. The perf zone key an interaction is read from is tapir's#tapir_interaction, and thetapir:installandcrumbs:installcommands wire these integrations intolib/main.dartonce this release is resolved. The three enrichers that read recent HTTP, log and exception records, and the three reader pointersMagicCrumbsIntegrationassigns, now readCrumbsStore. (pubspec.yaml,lib/tapir.dart,lib/crumbs.dart,lib/src/tapir_integration.dart,lib/src/crumbs_integration.dart,lib/src/perf_integration.dart,lib/src/magic_devtools.dart)
Changed #
- First stable release: version 1.0.0 replaces the planned 0.0.12 and requires
magic ^1.0.0,magic_socket ^1.0.0,tapir ^1.0.0andcrumbs ^1.0.0; no API change beyond what is listed here. - Depends on
magic_socketandmagic ^1.0.0. Core no longer shipsEchoand the broadcasting layer, soMagicTapirIntegrationimports them frommagic_socket; it still skips the Echo enricher when nobroadcastingbinding is registered. (pubspec.yaml,lib/src/tapir_integration.dart) - Direct dependencies raised to their latest releases.
tapir ^1.0.0,crumbs ^1.0.0and devflutter_lints ^6.0.0. (pubspec.yaml) - tapir reads Wind through the contract
wind_kitpublishes. tapir looks Wind's debug data up throughwind_kit_diagnostics_contracts, so the mismatch the dusk 0.0.23 pairing had withfluttersdk_wind_diagnostics_contractsno longer exists. The app still callsWind.installDebugResolver()itself (tapir's installer does not write that line), and this package changed no code for it. (pubspec.yaml)
Fixed #
MagicDevtools.installPre()registered the exception and dump watchers on every call.registerWatchertakes a new instance each time and the watchers guard per instance, so a second call (or a lazy debug toggle) chained a second pair onto the first and recorded every exception anddebugPrinttwice. The class now keeps the pair it registered and adds none on a later call;MagicDevtools.resetForTesting()uninstalls it for tests. (lib/src/magic_devtools.dart,test/magic_devtools_test.dart)- The docs called this package a
dev_dependency, and claimed more than the installers do.lib/main.dartimports it, so it is a regular dependency under!kReleaseMode; the README now says whattapir:installandcrumbs:installwrite (single-tool blocks, crumbs underkDebugMode, noMagicDevtoolsorMagicPerfIntegration), and its Crumbs snippet registers the exception and dump watchers. (README.md,CLAUDE.md,lib/tapir.dart,lib/crumbs.dart) MagicCacheWatcherdocumented itself as a no-op. It has subscribed toCacheHit,CacheMiss,CachePut,CacheForgetandCacheFlushsince magic added them; the class and section comments now say so. (lib/src/crumbs_integration.dart)MagicTapirIntegrationdocumented a first-write-wins rule tapir does not apply. tapir writes every enricher fragment, so two enrichers emitting one key put both lines in the snapshot; the doc comments andCLAUDE.mdnow say to keep keys distinct. (lib/src/tapir_integration.dart,CLAUDE.md)
0.0.11 - 2026-10-14 #
Changed #
- Every sibling floor names this batch's release.
magicmoves^0.0.28to^0.0.29andfluttersdk_wind^1.8.4to^1.9.0;fluttersdk_duskstays at^0.0.20andfluttersdk_telescopeat^0.0.12. The old ranges already admitted the new versions, so a freshpub getresolves nothing differently; what changes is that the floors name the releases this package is verified against. magic 0.0.29 adds two abstract members toBroadcastChanneland awebOnlyWindowNamenamed parameter toLaunchAdapter.launch(), and this package implements neither; wind 1.9.0 makestracking-*em, scaled by the rendered font size, and this package writes notracking-*class. The README install snippet quotes the new devtools pin. (pubspec.yaml,README.md)
0.0.10 - 2026-10-13 #
Changed #
- Every sibling floor names this batch's release.
magicmoves^0.0.27to^0.0.28,fluttersdk_dusk^0.0.19to^0.0.20,fluttersdk_telescope^0.0.10to^0.0.12andfluttersdk_wind^1.8.1to^1.8.4. The old ranges already admitted the new versions, so a freshpub getresolves nothing differently; what changes is that the floors name the releases this package is verified against. None of magic 0.0.28, dusk 0.0.20, telescope 0.0.11 and 0.0.12 or wind 1.8.2 to 1.8.4 is breaking for this package: dusk 0.0.20 and telescope 0.0.12 only move to artisan 0.0.20, whose connected commands print one retry line and exit 75 when an extension is not registered yet; wind 1.8.2 restores the click cursor underhover:, which the preview catalogue's navigation rows use, and 1.8.3 addsautofillHints, which this package does not call. The README install snippet quotes the new devtools, dusk and telescope pins. (pubspec.yaml,README.md)
0.0.9 - 2026-10-09 #
Changed #
- Every sibling floor names this batch's release.
magicmoves^0.0.24to^0.0.27,fluttersdk_dusk^0.0.17to^0.0.19,fluttersdk_telescope^0.0.9to^0.0.10andfluttersdk_wind^1.8.0to^1.8.1. The old ranges already admitted the new versions, so a freshpub getresolves nothing differently; what changes is that the floors name the releases this package is verified against. None of magic 0.0.25 to 0.0.27, dusk 0.0.18 and 0.0.19, telescope 0.0.10 or wind 1.8.1 is breaking. The README install snippet quotes the new dusk and telescope pins. (pubspec.yaml,README.md)
0.0.8 - 2026-09-29 #
Security #
- The HTTP adapter no longer hands telescope a login's password or token. It stringified request and response bodies with
toString(), and a DartMapprints as{email: a@b.test, password: hunter2}, which telescope's JSON masking cannot read, so a login body and a Sanctum login answer reached the agent-facing buffer in the clear.onRequest,onResponseandonErrornow mask the body with telescope's hidden request or response parameters before truncating it (TelescopeRedaction.redactParametersfor a Dart structure,redactBodyfor a JSON string, which would otherwise stop parsing once cut at 8 KB); the masked copy is what gets recorded, and the request object the driver sends on is never touched.MagicTelescopeIntegration.install()also hides the header magic'sAuthInterceptorwrites the token under, read fromauth.token.header(defaultAuthorization), so a renamed header is masked too, and it does so on every call, since a telescope store reset drops the addition. Needs the telescope release that shipsTelescopeRedaction. (lib/src/telescope_integration.dart)
Changed #
-
The floors name the releases this work needs.
magicmoves^0.0.22to^0.0.24(MagicPerfHooks, the request ids,AuthRestored.changed, and the removal ofonRefreshUI),fluttersdk_dusk^0.0.16to^0.0.17(PerfModeand the interaction readers),fluttersdk_telescope^0.0.7to^0.0.9(TelescopeRedactionand the record link fields) andfluttersdk_wind^1.7.0to^1.8.0(the size-onlyMediaQueryread themediaQuerySizeinsight describes). Each is a real requirement: this release does not compile, or describes the wrong behaviour, below it. The README install snippet quotes the new dusk and telescope floors. (pubspec.yaml,README.md) -
BREAKING: the perf path reads magic through
MagicPerfHooks.sink, andMagicController.onRefreshUIis gone.MagicPerfIntegrationno longer hooks a single notify site: its session begin hook installs the sink for an attribution session only (a timing session, and an app between sessions, allocate no event and leave wind counting off), and the end hook removes it.perfExtrasReaderreturns dusk's documented key set:controllerNotifies,notifyCauses,queryReloads,actions,events,casts,timerTicks,broadcastsandrouteTransitions. Needs the magic, dusk, telescope and wind releases that shipMagicPerfHooks,PerfMode, record links and per-type wind counters. (lib/src/perf_integration.dart) -
HTTP records pair by request id. The telescope interceptor matches each response or error to its request through
MagicRequest.id/MagicResponse.id/MagicError.id, so two requests completing out of order keep their own URL and duration; only an answer without an id (a hand-built one;Http.fakeinstalls no interceptors) falls back to the oldest request in flight that has no id either, withattributedHeuristically: true. A request with an id is never handed to an id-less answer, since its own answer would then find nothing to pair with and be dropped. Records carryrequestId,startUsandendUs. (lib/src/telescope_integration.dart) -
A span is linked from when it began, not when it ended.
QueryReloaded,ActionRanandEventDispatchedarrive at span end, so resolving the link then dropped a reload that outlived its tap and gave one that ended during the next tap to that tap.MagicPerfIntegration.interactionLink({startUs})now accepts the zone handle when its window[startUs, closedAtUs ?? now]holds the span's start (closed or not), else dusk'sperfInteractionAt(startUs)(frame), elsewindow; an instant with no start keeps the open-handle and active-interaction rules. ThezoneInteractionIdtest seam becomeszoneInteraction(it returns the handle's window), with a newinteractionIdAtseam besideactiveInteractionId. Needs the dusk release that exportsperfInteractionAt. (lib/src/perf_integration.dart) -
The
mediaQuerySizeinsight describes a size-only subscription. wind now readsMediaQuery.sizeOf, so a counted read rebuilds its widget on a resize or a rotation and not on a keyboard inset; the summary and next step said every MediaQuery change, which is no longer true. The metric name, threshold and firing rule are unchanged. (lib/src/perf_insight_rules.dart) -
The install guard is
!kReleaseMode.MagicDevtools.installPre/installPostand the per-tool blocks are documented under!kReleaseModeinstead ofkDebugMode, so a profile build carries dusk and telescope and a perf measurement can run on it; release still tree-shakes both, and the guard still belongs at the call site.lib/src/dusk_integration.dartandlib/src/perf_integration.dartalready said so, and the rest of the package saidkDebugMode. Apps wired underkDebugModekeep working in debug and simply carry no tooling in profile. (CLAUDE.md,README.md,lib/magic_devtools.dart,lib/dusk.dart,lib/telescope.dart,lib/src/magic_devtools.dart,lib/src/telescope_integration.dart)
Added #
- Interaction links on every record. HTTP, query, event, model and cache records, and every sink row, carry
interactionIdandlinkedBy:zonewhen the work read an open dusk interaction off its own zone,framewhen it ran in the frame zone and joined dusk's active interaction,windowwhen neither.MagicPerfIntegration.interactionLink()is the one rule. Gate records are not stamped: telescope'sGateRecordhas no link fields. (lib/src/perf_integration.dart,lib/src/telescope_integration.dart) perfTimelineReaderandperfInsightContributorsare assigned. The timeline reader returns the sink rows (notifies, query reloads, actions, event dispatches, timer ticks, broadcasts) plus one row per telescope HTTP, query, event, model and cache record, in dusk's row schema. The contributor runsPerfInsightRules: wind wrapper emissions per W-widget build,mediaQuerySizereads per frame, parse misses on a warm surface, notify storms by cause, timer-driven notifies per second, uncached query reloads per interaction, attribute casts per frame, and HTTP requests per interaction. Every rule states its threshold inevidence.thresholdand normalises by painted frames. (lib/src/perf_insight_rules.dart)
0.0.7 - 2026-09-27 #
Changed #
- Every sibling floor names this batch's release.
magicmoves^0.0.16to^0.0.22,fluttersdk_dusk^0.0.15to^0.0.16andfluttersdk_wind^1.6.3to^1.7.0;fluttersdk_telescopestays at^0.0.7, still the newest. The old ranges already admitted the new versions, so a freshpub getresolves nothing differently; what changes is that the floors name the releases this package is verified against. Of magic 0.0.22's BREAKING changes, the one that reaches this package isAuth.fake()dispatchingAuthLogin/AuthLogoutthrough the realEventfacade, which only its tests call; the suite passes unchanged. dusk 0.0.16 stopsdusk:fill/dusk:type/dusk:clearwriting into a field on a covered route. (pubspec.yaml,README.md)
0.0.6 - 2026-09-22 #
Changed #
- Every sibling floor names this batch's release.
magicmoves^0.0.15to^0.0.16,fluttersdk_telescope^0.0.6to^0.0.7andfluttersdk_wind^1.6.2to^1.6.3;fluttersdk_duskstays at^0.0.15, still the newest. The old ranges already admitted the new versions, so a freshpub getresolves nothing differently; what changes is that the floors name the releases this package is verified against. telescope 0.0.7 is a documentation fix, and nothing in wind 1.6.3 or magic 0.0.16 touches an API this package calls. (pubspec.yaml,README.md)
0.0.5 - 2026-09-21 #
Changed #
- Every sibling floor names this batch's release.
magicmoves^0.0.7to^0.0.15,fluttersdk_dusk^0.0.12to^0.0.15,fluttersdk_telescope^0.0.5to^0.0.6andfluttersdk_wind^1.5.0to^1.6.2. The old ranges already admitted the new versions, so a freshpub getresolves nothing differently; what changes is that the floors name the releases this package is verified against. magic 0.0.15 is breaking in its database layer (a migration may no longer manage its own transaction, andDB.transactionrefuses a callback that closes the transaction itself); nothing in this package calls either, so no code here changes, but an app below magic 0.0.15 no longer resolves this release. (pubspec.yaml)
0.0.4 - 2026-08-25 #
Added #
MagicPerfIntegration: the wiring that assembles the performance-diagnostic data path across four packages. It setsMagicController.onRefreshUIto a counter keyed by controller runtime type, registers aNavigatorObserverthroughMagicRouter.addObserverthat times each route push to the first post-frame callback after the new route builds, callsWind.installPerfResolver(), registers telescope'sFramePerfWatcher, and assigns the fourfluttersdk_duskpointers (framePerfReader,perfExtrasReader,perfSessionBeginHook,perfSessionEndHook). This package is the only place dusk, telescope, wind and magic are all visible at once, so it is the only place those pointers can be assigned; dusk declares them with no-op defaults and never imports the packages it reports on.MagicDevtools.installPre()now installsMagicPerfIntegration. It belongs in the pre-Magic.init()half becauseMagicRouter.addObserverthrows once the router has been built, and thatStateErroris deliberately not caught: a silently unregistered observer would produce a report with no route transitions and nothing to explain their absence.
Changed #
-
The four sibling dependency floors now state what the code actually needs. They were
magic: ^0.0.6,fluttersdk_dusk: ^0.0.9,fluttersdk_telescope: ^0.0.4andfluttersdk_wind: ^1.2.1, and every one of them was below the release that introduced an APIMagicPerfIntegrationcalls:MagicController.onRefreshUIarrived in magic 0.0.7, the fourperf_readers.dartpointers in dusk 0.0.12,FramePerfWatcherandTelescopeStore.recentFramePerf/clearFramePerfin telescope 0.0.5, andWindPerfCounterswithWind.installPerfResolver()in wind 1.5.0.A caret range resolves to the newest version available, so a fresh resolution always picked up the right siblings and CI stayed green. A consumer whose own constraints hold one of them back would not: pub would report the graph as satisfiable and the build would then fail on undefined symbols. That is not hypothetical, it is what this branch's own CI did while
^1.2.1was still resolving wind 1.4.1, with 18 errors all namingWindPerfCountersorinstallPerfResolver. Now^0.0.7,^0.0.12,^0.0.5and^1.5.0.
0.0.3 - 2026-08-05 #
Documentation only; no runtime change. The package code is identical to 0.0.2.
Changed #
- The README install snippet pins the versions actually shipped rather than a looser range, so a copy-paste resolves to the combination this package is tested against.
.github/workflows/publish.ymlnames the pub.dev prerequisite it cannot check for itself. Automated publishing has to be enabled per package on pub.dev, and without it a tag gets all the way through validate, a clean--dry-runand the upload before pub.dev refuses; that is what left 0.0.2 unpublished for a week while consumers requiring^0.0.2could not resolve at all. That setting is still off, so this release was published by hand as well.
0.0.2 - 2026-07-29 #
Added #
MagicDevtoolsumbrella wiring: a newpackage:magic_devtools/magic_devtools.dartbarrel exposingMagicDevtools.installPre()/MagicDevtools.installPost().installPreboots both tool plugins and registers telescope's opt-inExceptionWatcher+DumpWatcher(call beforeMagic.init());installPostwiresMagicTelescopeIntegration+MagicDuskIntegration(call afterMagic.init()). Collapses the previous fourkDebugModeblocks in a host'slib/main.dartinto two, while preserving the load-bearing pre/post ordering and the call-sitekDebugModeguard (moving the guard inside would defeat the release tree-shake).MagicPreviewframework: a dev-only component preview catalog hosted via two plain pages (/previewand/preview/:component). Newpackage:magic_devtools/preview.dartbarrel exports thePreviewEntrycontract (label,slug,builder), theMagicPreviewCatalogwidget (a scrollable sidebar next to a SINGLE active preview pane — tapping a sidebar item, or deep-linking/preview/<slug>, swaps the pane to that entry; only the selected preview is mounted, so a large screen-heavy catalog stays responsive — plus a global light/dark toggle bound to wind'sWindTheme.of(context).toggleTheme()), and theMagicPreviewregistration entrypoint (registerplusregisterRoutes). The route, catalog, and every registeredPreviewEntryare reachable only throughMagicPreview.registerRoutes, which is guarded bykReleaseModeplusconst bool.fromEnvironment('PREVIEW_ENABLED', defaultValue: kDebugMode), so the whole surface const-folds dead and tree-shakes out of release builds. Entries are held in a function-scoped list (never a top-level const, the dart-lang/sdk#33920 foot-gun). The generated_previews.g.dart(Step 18) feeds aList<PreviewEntry>intoMagicPreview.register. Consumers must callMagicPreview.registerRoutes()from a providerboot()BEFORE the router locks on firstrouterConfigaccess, else/previewsilently never registers.fluttersdk_windis now a direct dependency (the catalog renders onWDiv/WText/WAnchorand binds the theme toggle toWindThemeController).MagicDuskIntegration.install()now registers a navigate adapter viaDuskPlugin.registerNavigateAdaptersoext.dusk.navigate --route <path>drives GoRouter throughMagicRouter.instance.to(path)instead of falling back to theSystemNavigatorplatform broadcast. Returnstrueon success andfalsewhen the router is not yet initialised (catchesStateError).resetForTesting()clears the adapter withDuskPlugin.registerNavigateAdapter(null).
Fixed #
/preview/<slug>deep links now select the right entry: the catalog moved off a persistent ShellRoute (which did not rebuild when only the child route swapped, leaving every deep link stuck on the first entry) to two plain pages; the/preview/:componentbuilder receives the slug and rebuilds on navigation. Known dev-only limitation: feature-SCREEN previews (full controller-backedMagicStatefulViews) emit a couple of non-fatalsetState() during buildwarnings because the catalog mounts the same screen in both the light and dark panes sharing a singleton controller; the screens render correctly and the real app routes are clean (the catalog is stripped from release)./previewroute no longer crashes the app: the catalog group's index child path was/which composed to/preview/, tripping go_router'sroute path may not end with '/'assertion and blanking the entire app on every route. Changed the index child path to''so the composed path is exactly/preview.- Catalog previews now inherit the host theme: each light/dark pane copied a bare
WindThemeDatathat carried no aliases, so component semantic tokens (text-fg,bg-surface, ...) resolved to no-ops and every preview rendered Flutter's red unstyled-text fallback. Panes nowcopyWith(brightness:)the ambient app theme, preserving aliases and brand colors. - Catalog overflow: the preview surface now scrolls vertically and each pane scrolls horizontally, so wide variant matrices no longer trigger RenderFlex overflows in the side-by-side light/dark layout.
0.0.1 - 2026-06-17 #
Added #
- Initial release, extracted from the
magicpackage.MagicDuskIntegration(14 enrichers forfluttersdk_dusksnapshots) andMagicTelescopeIntegration(5 watchers plusMagicHttpFacadeAdapterforfluttersdk_telescope) now live here as a dedicated, debug-only dev-tooling adapter rather than as sub-barrels ofmagic. - Two import barrels:
package:magic_devtools/dusk.dartandpackage:magic_devtools/telescope.dart. - The relocated enricher and watcher test suites moved over unchanged.
Note #
- Local development resolves the
magic,fluttersdk_dusk, andfluttersdk_telescopesiblings throughdependency_overridespath entries. Those overrides are dev-only; version pins replace them at publish (the publish-time pubspec is user-owned).