devpul 1.1.0
devpul: ^1.1.0 copied to clipboard
Stream HTTP calls, errors and custom events from a running Dart or Flutter app to a browser UI over the Dart VM service. Debug builds only.
1.1.0 #
- Mock rules for HTTP calls, set from the UI or by agents through the
http.mocks.sethandler: respond with a status, headers and body, fail as a network error, delay, or pause the request or response to edit it before it goes on. Rules live in the app until it restarts; the UI can keep them per app and send them to the next run. DevpulHttp.request(mockable: true)opts an adapter's calls in;DevpulHttpCall.mock,pauseRequestandpauseResponseare what it acts on.http.paused,http.resumedandhttp.mocksevents; HTTP events of a call a rule changed carrymock.- The UI's HTTP tab has Mocks: a rule from a captured call, rules turned on and off, and paused calls edited in the detail panel.
- Replay:
DevpulHttp.request(replay:, replayBody:)lets the UI and agents send an adapter's call again, edited or not, through thehttp.sentandhttp.replayhandlers. The app keeps the last 100 such calls. The UI's request detail has Replay. DevpulCauseposts an event and names it as the cause of the HTTP calls made insiderun.http.requestcarriescause: the call a replay repeats, an action run from the UI, or an event. The UI shows it under Started by and opens it on a click, marks such rows, filters them withcause:, and lists the calls an event started in its detail.Devpul.eventsstreams every event as it is posted.- Test capture:
devpul_testwrites a session file for each failing test; the UI names its run after the test, anddevpul mcp <file>reads it. - Bug reports: More > Bug report saves a session file with a screenshot and the device of a Flutter app, and the UI shows them when the file opens. Session files carry them in
report. - Plugin API:
context.requests,context.onRequestsandcontext.openRequestgive plugins the HTTP calls their events started. - The UI folds framework frames in stack traces, lists events by time, keeps
lifecycleevents out of Events until turned on, shows a run column only with more than one run, and leaves out what DDS replays from an ended run. - A plugin's source and hash follow a hot reload: the UI asks for
ext.devpul.infoagain onIsolateReload, and the app postsapp.infowhen a source changed.
1.0.0 #
- Stable: event envelope
v1, handshakeprotocol1 and plugin API 1. - Removed
curl,shellQuote,normalizeBody,normalizeHeaders,truncatedKey,DevpulConfig.ignores,DevpulForm.flatten,DevpulParam.readandDevpulParam.toJsonfrom the public API. - The UI waits between reconnect attempts with the connection closed.
1.0.0-dev.1 #
- Requires Dart 3.8.
- Events carry their fields in
data:{v, session, seq, ts, tags?, data}. The UI asks apps on older versions to update. - Removed
Devpul.sessionIdandDevpul.schemaVersion. - The app prints a link to the DevPul tab of DevTools, connected to it.
DevpulConfig.uiUrllinks another page with#connect=,printLink: falseturns it off. - Ships the UI as a DevTools extension.
ext.devpul.infohandshake with the protocol version, actions, plugins and limits;app.infoevents replaceapp.actions.Devpul.actiontakesparams(DevpulParam.text,number,flag,choice); the callback receives their values.Devpul.limitmutes or rate-limits a kind; the UI can set limits throughext.devpul.limit.Devpul.pluginoffers a browser plugin to the UI under its plugin id; the handshake lists its origin, description and the SHA-256 of its source.Devpul.included: true in debug builds and in native profile builds compiled with--dart-define=DEVPUL_PROFILE=true, false in every other build.Devpul.handleanswers plugin and agent requests throughext.devpul.call; the handshake lists handlers with theirdescription. Awrites: truehandler runs only while Allow writes is on in the UI; agents reachwritesandsensitive: truehandlers only throughcall_plugin_write.Devpul.logtakes any object: a closure is called only when DevPul is enabled, other values log theirtoString().DevpulConfig.ansiColorsis nullable;nullfollowsDevpul.ansiColorsByDefault.
0.2.0 #
Devpul.logfor the Logs tab.Devpul.actionadds buttons to the UI's Actions menu that run code in the app.Devpul.errortakesinformationandsilent.DevpulHttpCall.responsetakesfinalUrl.- The backlog always includes the latest session and actions.
0.1.0 #
- Initial release.
