Skip to content

Releases

1.1.1

Choose a tag to compare

@github-actions github-actions released this 18 Nov 14:55
ae982e7

Changed

  • The crumbs_tail description names the Magic log producer. It described the log buffer as filled by package:logging alone, so an agent on a Magic app could overlook the tool for Log.* calls; it now names MagicLogWatcher, the magic_devtools 1.1.0 floor and the MagicCrumbsIntegration.install() step (a call made before it is not recorded). The README, llms.txt, the skill and the doc/ pages list the watcher as well. (lib/src/crumbs_dowel_provider.dart)

1.1.0

Choose a tag to compare

@github-actions github-actions released this 18 Nov 07:21
5a40de8

Added

  • crumbs:exceptions reads the exception buffer from the CLI. crumbs_exceptions was the one read tool with no command, so an agent running dowel list could not see it. The command takes --limit (default 50) and prints a <time> <exceptionType>: <message> line per record, oldest first, with the message continuation and stack trace lines indented two spaces beneath it, so a caller keys records on unindented lines. Closes #68. (lib/src/commands/crumbs_exceptions_command.dart, lib/src/crumbs_dowel_provider.dart)

1.0.1

Choose a tag to compare

@github-actions github-actions released this 15 Nov 13:17
7b935fa

Changed

  • The pub.dev topic mcp-server is mcp. Only crumbs and tapir used the first; the second is shared by many MCP packages, so the listing is easier to find. (pubspec.yaml)

Fixed

  • The skill says what linkedBy: window means. A window record has no open interaction and a null interactionId, so it is joined by atUs; the skill's join rule said the id appears whenever a capturing site links records. (skills/crumbs/SKILL.md)
  • The crumbs_requests tool description names the field a record really emits. It promised an error field; an HTTP record serialises an isError flag and no error key, so the description now says isError, and a test pins it. The crumbs_events output table lists the interactionId and linkedBy fields the records carry. (lib/src/crumbs_dowel_provider.dart, doc/mcp/tool-reference.md)
  • The tables in the docs are left-aligned. file-sink, redaction, cursor-and-filters, the MCP tool-reference and the watcher pages used the unaligned |---| separator; they use |:---| like the rest. (doc/)
  • The tables in the README, ARCHITECTURE.md and the skill are left-aligned. They used the unaligned |---| separator; they use |:---| like the rest of the docs. (README.md, ARCHITECTURE.md, skills/crumbs/)

1.0.0

Choose a tag to compare

@github-actions github-actions released this 14 Nov 18:52
fd74f39

Added

  • crumbs_tail and crumbs_events declare the filters their extensions already read. The inputSchema of crumbs_tail gains logger and since, and that of crumbs_events gains type and since, so an MCP client offers the cursor and the filters instead of only limit (and level). Nothing changes in the extensions. (lib/src/crumbs_dowel_provider.dart)
  • CrumbsRedaction.redactQueryRecord, redactGateRecord and redactDumpRecord. The per-record entry points behind the new masking of queries, gate checks and dumps (see Fixed), beside redactHttpRecord and its siblings; each returns null, the record dropped, when the redactor throws. HttpRequestRecord.copyWith takes a url. (lib/src/crumbs_redaction.dart, lib/src/records/http_request_record.dart)

Changed

  • BREAKING: crumbs requires dowel ^1.0.0. The ^0.0.21 range cannot resolve next to dowel 1.0.0 or the Magic packages that depend on it. (pubspec.yaml)
  • BREAKING: CrumbsWatcher and CrumbsHttpAdapter are abstract interface class, and CrumbsHttpAdapter.pendingCount has no default body. A watcher or adapter from another package implements them, as magic_devtools does, and inherits nothing a later release could change under it; extends no longer compiles, so switch to implements. The default pendingCount was only reachable through extends; an adapter that tracks no in-flight requests writes int get pendingCount => 0;. (lib/src/watchers/watcher.dart, lib/src/adapters/http_adapter.dart)
  • BREAKING: ExceptionWatcher, LogWatcher, DumpWatcher and FramePerfWatcher are final class. A watcher of your own implements CrumbsWatcher; subclassing a shipped watcher would bind it to hook and chain-preserve internals a later release changes. Extending or implementing one no longer compiles. (lib/src/watchers/)
  • BREAKING: every record class is final class. They are values crumbs builds and copies field by field (redaction rebuilds them), so a subclass would lose its own fields at insert; extending or implementing one no longer compiles. (lib/src/records/)
  • BREAKING: ext.crumbs.requests answers under requests, not records. Every other read answers under its kind (messages, exceptions, events and the rest); the HTTP read was the one generic key. The crumbs_requests tool and the crumbs:requests command keep their names; a script that reads the raw answer reads requests. (lib/src/extensions/register_crumbs_extensions.dart, lib/src/commands/crumbs_requests_command.dart)
  • BREAKING: the model and cache names lose the Magic brand. CrumbsStore.recordMagicModel is recordModel, recordMagicCache is recordCache, MagicModelRecord is ModelRecord and MagicCacheRecord is CacheRecord, in lib/src/records/model_record.dart and cache_record.dart. The store is framework-agnostic and any model or cache layer can feed these buffers. The old names are gone, with no alias; rename the calls (magic_devtools moves with this release). (lib/src/crumbs_store.dart, lib/src/records/, lib/crumbs.dart)
  • More request parameter names are masked by default. api_key, apikey, signature, sig, x-amz-signature, x-amz-credential and x-amz-security-token join the hidden request parameters, the names an API key and a signed or presigned URL carry a credential under. The list covers request bodies as well as the URL query (see Fixed), so a body field under one of these names is masked too. (lib/src/internal/redaction_lists.dart)
  • The hidden response parameters start from every hidden request parameter. The response list lacked password, api_key, apikey, signature and the x-amz-* names, so a response such as a created API key or a profile with a password field reached the buffer and the agent in clear; it now holds every request name plus plain_text_token, recovery_codes, qr_url and qr_svg. (lib/src/internal/redaction_lists.dart)
  • crumbs:install guards the install with if (!kReleaseMode), not if (kDebugMode). The block it writes, and the MagicCrumbsIntegration.install() block, now carry crumbs in debug and profile builds, so the frame-performance data a profile build measures is available, and the three dev tools of the ecosystem wrap their install() in the same guard. The import is show kReleaseMode, skipped when foundation.dart is already imported in full. A release build still tree-shakes crumbs. An app already wired with if (kDebugMode) keeps working and crumbs:install leaves its block as it is; switch it to !kReleaseMode to get frame-performance data in profile builds. DumpWatcher keeps its own kDebugMode check and still captures nothing in a profile build unless allowInRelease is set. (lib/src/commands/crumbs_install_command.dart)
  • The post_install message of install.yaml names if (!kReleaseMode). It described the wiring with the old kDebugMode guard, while crumbs:install writes !kReleaseMode. (install.yaml)
  • The crumbs_requests and crumbs_clear descriptions are current. crumbs_requests names an app's own interceptor calling CrumbsStore.recordHttp instead of the removed DioHttpAdapter, and crumbs_clear lists the model buffer without the Magic brand. (lib/src/crumbs_dowel_provider.dart)

Removed

  • BREAKING: DioHttpAdapter. Its install() hooked nothing and its recordRequest could not pass requestId, startUs, endUs or atUs; an app's own interceptor calls CrumbsStore.recordHttp(HttpRequestRecord(...)) instead, as the example app does. Drop the registerHttpAdapter(DioHttpAdapter()) line. (lib/src/adapters/dio_http_adapter.dart)
  • BREAKING: CrumbsStore.setFramePerfCapacity. It duplicated setCapacity(cap, kind: CrumbsKind.framePerf), which is the one way to set the frame buffer's own capacity now. (lib/src/crumbs_store.dart)

Fixed

  • A credential in the request URL's query was buffered as captured. Only headers and bodies were masked, so ?access_token=... on an OAuth callback or the X-Amz-Signature of a presigned URL reached the buffer and every agent that read it. The value of every query parameter named in the hidden request parameters is now masked, case-insensitively; the scheme, host, path, fragment and the other parameters stay byte for byte, and a URL Uri.tryParse refuses is kept as is. (lib/src/crumbs_redaction.dart)
  • Dumps, queries and gate checks bypassed redaction. They were buffered as given even with a redactor registered. The bindings of a query and the arguments of a gate check are now masked by key like a body, and the dump message, the query SQL and every string inside bindings and arguments run through the redactor when one is set; a record the redactor throws on is dropped. SECURITY.md says which layer masks what. (lib/src/crumbs_store.dart, lib/src/crumbs_redaction.dart, SECURITY.md)
  • One DateTime in a query's bindings broke crumbs_queries. toJson passed bindings and arguments through raw, so jsonEncode threw in the handler on every read until 500 newer records evicted the bad one. Both are made JSON-safe at insert, as event payloads are: a value jsonEncode cannot write is stored as its toString(). (lib/src/crumbs_redaction.dart)
  • A NaN or an infinity in a binding, an argument or an event payload broke its read. jsonEncode refuses non-finite doubles, so the queries, gates or events handler threw on every read until newer records evicted the bad one. A non-finite double is stored as its text (NaN, Infinity), through the same path as any value jsonEncode cannot write. (lib/src/crumbs_redaction.dart)
  • A value whose toString throws threw out of recordQuery, recordGate and recordEvent. Making a binding, argument or payload JSON-safe calls toString inside the host's own call, so a broken one threw into the app. It is stored as <unprintable Type> instead. (lib/src/crumbs_redaction.dart)
  • The redactor skipped a gate check's user id. A user id is often an email; it now runs through the redactor with the arguments. A gate's ability and a query's connection name stay as given, and the docs list exactly what the redactor sees. (lib/src/crumbs_redaction.dart)
  • crumbs:install could leave a profile build half wired. On a Magic app wired with the old if (kDebugMode) block, a re-run added MagicCrumbsIntegration.install() behind if (!kReleaseMode), so a profile build filled the Magic buffers with no extension to read them. The Magic block now takes the guard of the existing crumbs block. (lib/src/commands/crumbs_install_command.dart)
  • The crumbs_events, crumbs_gates and crumbs_caches descriptions assumed a Magic host. They now say a host records into the store, and that magic_devtools records Magic's events, gate checks and cache calls. (lib/src/crumbs_dowel_provider.dart)
  • CRUMBS_DISABLE left registerWatcher and registerHttpAdapter working. The flag skipped only the extensions, so the watchers still replaced FlutterError.onError and debugPrint to fill buffers nobody could read. Both now return without installing or tracking anything when the flag is set. (lib/src/crumbs_plugin.dart)
  • crumbs:install added a redundant kDebugMode import. A lib/main.dart that already imported package:flutter/foundation.dart in full gained import 'package:flutter/foundation.dart' show kDebugMode;, which the analyzer flags as unnecessary_import; the installer now skips it. (lib/src/commands/crumbs_install_command.dart)
  • An error whose toString throws never reached Sentry. ExceptionWatcher recorded before chaining, so a throw while recording skipped the previous FlutterError.onError or PlatformDispatcher.onError handler. The previous handler now runs whatever recording does, and the recording failure propagates after it. (`lib/src...
Read more

0.0.13

Choose a tag to compare

@anilcancakir anilcancakir released this 14 Nov 12:06
209fe46

Changed

  • Breaking, nothing is migrated automatically. In a consumer project: (1) swap the dependencies with flutter pub remove fluttersdk_telescope fluttersdk_artisan && flutter pub add crumbs dowel and rename the imports (package:fluttersdk_telescope/telescope.dart is package:crumbs/crumbs.dart) and the Telescope* identifiers; (2) follow the dowel 0.0.21 migration (move .artisan/ to .dowel/, delete .dowel/plugins.json and .dowel/installed/fluttersdk_telescope.json), delete bin/dispatcher.dart, bin/fsa, lib/app/_plugins.g.dart and lib/app/commands/_index.g.dart (the installers keep a file that exists, and the old ones import fluttersdk_artisan, so ./bin/dowel would not build), replace package:fluttersdk_artisan/artisan.dart with package:dowel/dowel.dart and Artisan* with Dowel* in your own commands, run dart run crumbs crumbs:install again, then dart run dowel commands:refresh to register your commands in the new index; (3) rename telescope_* to crumbs_* in any saved MCP allow list, prompt or script (a Claude Code allow-list entry mcp__fluttersdk__telescope_* becomes mcp__dowel__crumbs_*, since the server key is now dowel), telescope:* to crumbs:* in CLI calls and TELESCOPE_DISABLE to CRUMBS_DISABLE in a build that must not register the extensions; (4) delete the stale fluttersdk server entry from .mcp.json (dowel leaves entries an earlier release wrote) and reconnect the MCP client; (5) in a Magic app, until a magic_devtools release built on crumbs ships, MagicTelescopeIntegration feeds fluttersdk_telescope, not crumbs, so the HTTP, event, gate, query and cache buffers of crumbs stay empty; then upgrade magic_devtools and rerun dart run crumbs crumbs:install (see the installer entry below).
  • Renamed from fluttersdk_telescope to crumbs. The package, the repository (anilcancakir/crumbs), the barrels (package:crumbs/crumbs.dart and package:crumbs/cli.dart), every Telescope* class (now Crumbs*, and TelescopeArtisanProvider is CrumbsDowelProvider), the executable (dart run crumbs) and the file names carry the new name. Also renamed: the ext.telescope.* VM Service extensions (now ext.crumbs.*), the MCP tools (telescope_* is crumbs_*), the CLI commands (telescope:* is crumbs:*), the environment variable (TELESCOPE_DISABLE is CRUMBS_DISABLE), the MCP registry name (io.github.anilcancakir/crumbs), the skill (fluttersdk-telescope is crumbs) and the docs URLs (https://anilcancakir.com/crumbs).
  • The floor is Dart 3.13 and Flutter 3.47. Flutter 3.50 deprecates package:flutter/material.dart in favour of material_ui, which needs that floor; the example app now builds on material_ui, the package itself imports neither, and the repository is formatted with the tall style that floor enables. A consumer on an older SDK stays on the last fluttersdk_telescope release.
  • Built on dowel. fluttersdk_artisan ^0.0.20 is now dowel ^0.0.21. The .mcp.json server key written by mcp:install is dowel.
  • The Magic step of crumbs:install needs a magic_devtools built on crumbs. When the consumer's pubspec names magic_devtools and the resolved release ships package:magic_devtools/crumbs.dart, the installer wires MagicCrumbsIntegration from it. The magic_devtools releases that still ship MagicTelescopeIntegration have no such library, so with one of them the installer skips the Magic lines and warns; upgrade magic_devtools to a release built on crumbs and rerun dart run crumbs crumbs:install (see Fixed).

Fixed

  • crumbs:install wires Magic only when the installed magic_devtools ships crumbs.dart. The pubspec entry alone decided it, so a magic_devtools release that predates crumbs got an import of a library it does not have and a lib/main.dart that did not compile. The installer now resolves the package through the nearest .dart_tool/package_config.json at or above the project (a pub workspace member uses the one at the workspace root; an unreadable or invalid one counts as unresolved) and, without lib/crumbs.dart, skips the Magic lines and warns to upgrade and rerun. (lib/src/commands/crumbs_install_command.dart)
  • crumbs:install resolves a magic_devtools path dependency outside the project. The walk to .dart_tool/package_config.json kept a trailing separator, so a relative rootUri that climbs out of the project (../../magic_devtools for path: ../magic_devtools) resolved one level too deep; a release that ships lib/crumbs.dart read as missing and the installer skipped the Magic lines with the upgrade warning. The walk now stays on directory URIs. (lib/src/commands/crumbs_install_command.dart)
  • crumbs:install leaves a lib/main.dart that already calls CrumbsPlugin.install() alone. Only the exact injected block counted as wired, so a file wired by hand (comments between the calls, as in the example app, or another shape) got a second block, and the chained watchers recorded every exception and debugPrint twice. Any CrumbsPlugin.install( call now skips the crumbs block and its imports; the Magic lines are still added when they are missing. (lib/src/commands/crumbs_install_command.dart)
  • The crumbs_dumps and crumbs_exceptions tool descriptions say what the watchers capture. DumpWatcher overrides debugPrint only, so a plain print() is not captured (the description said it was); ExceptionWatcher hooks PlatformDispatcher.onError as well as FlutterError.onError. The --limit help of crumbs:queries and crumbs:caches says the newest N come back oldest first, which is the order they print in. (lib/src/crumbs_dowel_provider.dart, lib/src/commands/)
  • The DioHttpAdapter docs and the crumbs_requests tool description describe the adapter that ships. The class doc showed a DioHttpAdapter(dio).asDioInterceptor() that does not exist and the tool description named a crumbs Dio interceptor that does not ship; both now say the app's own interceptor calls DioHttpAdapter.recordRequest. (lib/src/adapters/dio_http_adapter.dart, lib/src/crumbs_dowel_provider.dart)

Removed

  • The FluttersdkTelescopeArtisanProvider alias in package:crumbs/cli.dart. The class dowel's plugins:refresh generates for this package, CrumbsDowelProvider, is the provider itself, so the alias is gone.

0.0.12

Choose a tag to compare

@github-actions github-actions released this 12 Oct 23:05
558dca5

Changed

  • The artisan floor names this batch's release. fluttersdk_artisan moves ^0.0.19 to ^0.0.20. The old range already admitted 0.0.20, so a fresh pub get resolves nothing differently; what changes is that the floor names the release this package is verified against. artisan 0.0.20 is not breaking, and a consumer inherits one behaviour from it: a telescope:* command run while the app is still booting, before ext.telescope.* is registered, now prints one retry line and exits 75 instead of an RPC stack and exit 3. The requirements tables in doc/getting-started/ and the stack lines in CLAUDE.md and .github/copilot-instructions.md quote the new floor. (pubspec.yaml, doc/getting-started/, CLAUDE.md, .github/copilot-instructions.md)

0.0.11

Choose a tag to compare

@github-actions github-actions released this 10 Oct 09:37
a4ca348

Added

  • TelescopeRedaction.redactor, a host-set text redactor applied to every log, event, exception and HTTP record at insert. recordLog, recordEvent, recordException and recordHttp (after its key masking) run it over every String field, every String and map key inside an event payload's nested Maps and Lists, and the stack text, before the record enters its queue or its stream; a record the redactor throws on is dropped, neither buffered nor emitted. Each of the four records gains a redacted getter (true when a redactor ran), serialized in toJson. Only the store's redaction pass sets it: the constructors take no redacted argument and HttpRequestRecord.copyWith returns an unredacted copy, so no caller can build a record a persisting consumer would take for masked. A record buffered while no redactor was registered stays false, so a consumer that persists records can write only the redacted ones. A subtree nested past 64 levels is masked whole. redactLogRecord, redactExceptionRecord and redactEventRecord join redactHttpRecord as the per-record entry points, each returning null for a dropped record, and resetForTesting() unregisters the redactor. (lib/src/telescope_redaction.dart, lib/src/telescope_store.dart, lib/src/records/)
  • Per-kind buffer capacity. TelescopeStore.setCapacity(int, {TelescopeKind? kind}) caps one of the ten buffers (TelescopeKind); the call without a kind keeps today's shared behaviour, and a kind cap wins over the shared one. setFramePerfCapacity now calls the framePerf kind. (lib/src/telescope_store.dart)
  • LogRecordEntry.atUs, a monotonic timestamp. The same FlutterTimeline.now clock EventRecord.atUs uses, stamped at construction (LogRecordEntry.fromLogRecord included) and serialized in toJson. (lib/src/records/log_record_entry.dart)
  • TelescopeFileSink, a rotating JSONL timeline on disk that writes only redacted records. TelescopeFileSink.start(directory:, maxFileBytes: 1048576, maxFiles: 8) creates the host-given directory and writes every log, event and exception record from onLogRecord, onEventRecord and onExceptionRecord as one line, {"kind": "log"|"event"|"exception", ...toJson()}, to timeline-<launch stamp>-<n>.jsonl, batched at 64 lines or 500 ms. It starts a new file before a line would pass maxFileBytes and deletes the oldest timeline files in the directory, earlier launches included, beyond maxFiles. Fail closed: a record with redacted false is never written, only counted in droppedUnredacted. A batch write no caller awaits that fails stops the sink instead of raising an uncaught error, counted in writeFailures, and a sink that cannot create its directory or first file neither listens nor becomes current. files() lists {name, bytes} of every timeline file in the directory, earlier launches included, newest first; read(name, offset:, maxBytes:) returns whole lines as {lines, next}, decodes an offset inside a multi-byte character without throwing, and refuses (returns null) any name that is not exactly one of those listed files, so a path, a .. segment or a link reaches nothing. A sink started again within the same second (the stamp has second precision) appends to the file of the sink it replaced, counting its bytes toward maxFileBytes, rather than truncating it. flush() writes the batch, stop() flushes and closes, and TelescopeFileSink.current is the running sink. The package looks no directory up. (lib/src/telescope_file_sink.dart)
  • A cursor and filters on ext.telescope.events and ext.telescope.console. Both accept since (microseconds, exclusive, compared with atUs); events also type (prefix of eventType), console also logger (exact name). The filters run before limit: with since, limit keeps the OLDEST N after it, extended to the end of the run of records sharing the last one's atUs (the page may exceed limit by those ties), so paging by cursor skips nothing; without since it keeps the newest N of what matched. Both answer a cursor: the largest atUs returned, else the given since, else null, so passing it back as since yields only newer records. A since that is not an integer is refused with invalidParams rather than read as "from the start". (lib/src/extensions/register_telescope_extensions.dart)
  • ext.telescope.files and ext.telescope.file. Read the running TelescopeFileSink.current: files answers {files: [{name, bytes}]} newest first, file takes name, offset and maxBytes and answers {lines, next}. Both answer {error} when no sink runs, and file answers one fixed {error} message for every refusal; the name only reaches the sink's own allowlist. (lib/src/extensions/register_telescope_extensions.dart)
  • --since, --type / --logger, --json and --follow on telescope:events and telescope:tail. --json prints one JSON object per line, the payload as JSON; --follow re-reads every second from the returned cursor until interrupted. (lib/src/commands/)
  • followCursor, the one --follow loop. followCursor(read:, since:, interval:, delay:, shouldStop:) calls read with the cursor the previous round returned and waits interval between rounds; a null cursor keeps the last one. Pure Dart, exported from package:fluttersdk_telescope/cli.dart, and now behind both telescope:events and telescope:tail. (lib/src/cursor_follow.dart, lib/cli.dart)
  • telescope:files [--name=<file>] [--offset=<n>]. Lists the timeline files, or prints the lines of one; prints the extension's error message, not a stack, when no sink runs. (lib/src/commands/telescope_files_command.dart, lib/src/telescope_artisan_provider.dart)

Changed

  • Event payloads are JSON-safe at record time. recordEvent stores a value jsonEncode cannot write (a DateTime, a Duration, any object) as its toString(), and a non-String map key likewise, so one bad payload can no longer fail the whole ext.telescope.events response. A payload that is already safe keeps its identity. (lib/src/telescope_redaction.dart)
  • toJson of the log, event, exception and HTTP records always carries redacted. (lib/src/records/)
  • BREAKING: TelescopeRedaction.redactHttpRecord returns HttpRequestRecord?. It was HttpRequestRecord; it now returns null, the record dropped, when the registered redactor throws, so a caller outside the store adds a null check. (lib/src/telescope_redaction.dart)

Fixed

  • An unknown minLevel matched every log line. recentLogs(minLevel: 'bogus') now returns an empty list instead of the whole buffer. (lib/src/telescope_store.dart)
  • A negative limit threw. Every recentX(limit:) returns an empty list for a zero or negative limit instead of a RangeError. (lib/src/telescope_store.dart)
  • A payload jsonEncode cannot write failed the whole ext.telescope.events response. The payload is now made JSON-safe when the event is recorded (see Changed). (lib/src/telescope_redaction.dart)

0.0.10

Choose a tag to compare

@github-actions github-actions released this 09 Oct 02:03
37e5f03

Changed

  • The artisan floor names this batch's release. fluttersdk_artisan moves ^0.0.17 to ^0.0.19. The old range already admitted 0.0.19, so a fresh pub get resolves nothing differently; what changes is that the floor names the release this package is verified against. Neither artisan 0.0.18 nor 0.0.19 is breaking: 0.0.18 adds installer operations telescope does not use, and 0.0.19 widens artisan's xml constraint to admit 7.x, which a consumer now inherits. (pubspec.yaml, doc/getting-started/, CLAUDE.md, .github/copilot-instructions.md)
  • The example app moves cupertino_icons to ^2.0.0. It touches only the unpublished example/ app, not the package. (#41, example/pubspec.yaml, example/pubspec.lock)

0.0.9

Choose a tag to compare

@github-actions github-actions released this 29 Sep 17:58
2c99da3

Added

  • A monotonic clock, an interaction link, and exclusive self time land on every telescope record. HttpRequestRecord, QueryRecord, EventRecord, MagicModelRecord, MagicCacheRecord and FramePerfRecord all gain atUs (an int? atUs constructor param stored as atUs ?? FlutterTimeline.now, comparable across record types regardless of wall-clock skew), interactionId (String?) and linkedBy (String?, one of zone / frame / window), all three serialized in toJson. HttpRequestRecord additionally carries requestId, startUs and endUs for exact request/response pairing. FramePerfRecord gains vsyncStartUs from FrameTiming.timestampInMicroseconds(FramePhase.vsyncStart); its doc comment marks clock parity with atUs as needing live validation, since the engine documents that timestamp only as microseconds "from some epoch" and a widget test can only inject synthetic FrameTiming values, never a real engine-reported one. Every block in a FramePerfRecord.blocks map gains selfMicros: FramePerfWatcher's drain now computes each block's exclusive duration from AggregatedTimings.timedBlocks start/end nesting (a stack walk over blocks sorted by start, tie-broken by the longer block first) and subtracts directly nested children from the existing inclusive micros. telescope:frames and telescope:requests print the new fields, linkedBy on its own when there is no interactionId (the window case). Every new constructor parameter is optional or defaulted, so a constructor call that does not pass blocks by an explicit record type keeps compiling (magic_devtools/lib/src/telescope_integration.dart does); the blocks type is the one exception, below. The skill's records.md, mcp-tools.md and cli-commands.md document every new key. (lib/src/records/*.dart, lib/src/watchers/frame_perf_watcher.dart, lib/src/commands/telescope_{frames,requests}_command.dart, skills/fluttersdk-telescope/references/)

  • TelescopeRedaction, the credential lists behind the HTTP buffer, and HttpRequestRecord.copyWith. hideRequestHeaders, hideRequestParameters and hideResponseParameters add names to the defaults (Laravel Telescope merges the same way, it never replaces), hiddenRequestHeaders / hiddenRequestParameters / hiddenResponseParameters read the lowercased lists, redactParameters(data, keys) returns a copy of a Map/List structure with every value under a matching key, at any depth, replaced by mask ('********'), never mutating its input, and redactBody(body, keys) does the same for a JSON string, or pair by pair for a form-encoded one. An adapter calls one of them before it stringifies or truncates a body, since neither a Map.toString() nor a cut JSON string parses, and the store cannot mask what it cannot parse. copyWith replaces requestHeaders, requestBody and responseBody and keeps every other field, atUs included. (lib/src/telescope_redaction.dart, lib/src/internal/redaction_lists.dart, lib/src/records/http_request_record.dart)

Changed

  • BREAKING: FramePerfRecord.blocks is Map<String, ({int micros, int selfMicros, int count})>. It was Map<String, ({int micros, int count})>, and Dart record types with different fields are not assignable to each other, so code that builds a FramePerfRecord from a map of the old record type, or declares a variable of the old type from record.blocks, stops compiling. Add selfMicros to the record literal (the inclusive micros is a safe value when the nesting is unknown) or let the type be inferred. The JSON shape only gains a key, so a reader of ext.telescope.frames output is unaffected. (lib/src/records/frame_perf_record.dart)

  • The artisan floor names this batch's release. fluttersdk_artisan moves ^0.0.16 to ^0.0.17. The old range already admitted 0.0.17, so a fresh pub get resolves nothing differently; what changes is that the floor names the release this package is verified against. artisan 0.0.17 changes stop, restart and a failed start --cdp-port to reap the app's whole process group, and telescope calls none of those APIs. (pubspec.yaml)

Security

  • The HTTP buffer no longer stores credentials verbatim. It is served to AI agents over ext.telescope.requests and MCP, and a Magic app's bearer header, a login body's password and a login answer's Sanctum token all landed in it as sent. TelescopeStore.recordHttp now masks, before buffering and before emitting on onHttpRecord: the value of every request header named authorization, proxy-authorization, cookie, set-cookie or x-api-key, and, in a body that parses as a JSON object or array or reads as form-encoded (grant_type=password&password=..., where only the matching pair's value changes, and a bracketed key such as user[password] or codes[] matches on its last part, as a nested JSON key does), the value under password, password_confirmation, current_password, new_password, token, access_token, refresh_token, secret, client_secret, authorization_code, id_token, two_factor_token or recovery_code (request) and token, access_token, refresh_token, plain_text_token, secret, client_secret, id_token, two_factor_token, recovery_codes, qr_url or qr_svg (response), at any depth. qr_url and qr_svg are on the list because both carry the TOTP secret that secret masks. Names match case-insensitively. An empty value (null, false, '', [], {}) stays visible, a subtree deeper than 64 levels is masked whole so a pathological body cannot overflow the stack, any other body (plain text, a truncated snippet) is kept as given, and a JSON body with nothing to hide keeps its exact bytes. (lib/src/telescope_store.dart, lib/src/telescope_redaction.dart)

0.0.8

Choose a tag to compare

@github-actions github-actions released this 27 Sep 22:07
b896d9b

Added

  • telescope:events, telescope:gates and telescope:dumps, the CLI mirrors of the three MCP-only buffers. A consumer that drives the app from a shell instead of wiring the MCP server (whose 58 tool schemas cost an agent context on every turn) had no way to read event, gate or debugPrint records at all. Each command reads its ext.telescope.* extension, takes --limit (default 50), prints one line per record and warns on an empty buffer, the same shape as telescope:queries. exceptions stays MCP-only; dusk:exceptions reads that buffer from a shell. (lib/src/commands/telescope_{events,gates,dumps}_command.dart)