Search by

pushinbr / pam-native-devtools

Deterministic temporal replay, state, network and frame diagnostics for PAM Native.

Maintainers

Package info

github.com/push-in/pam-native-devtools

pkg:composer/pushinbr/pam-native-devtools

Transparency log

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.3.2 2026-08-25 19:31 UTC

This package is auto-updated.

Last update: 2026-08-25 22:04:07 UTC


README

PAM Native DevTools

See every state transition—and replay it deterministically.

Inspect timelines, snapshots, network activity, and performance marks with bounded, redacted evidence suitable for development and CI.

Latest version CI PHP Android iOS

Documentation · Quick start · What you can build · PAM ecosystem · Issues

Why PAM Native DevTools

Inspect timelines, snapshots, network activity, and performance marks with bounded, redacted evidence suitable for development and CI. The public API is strictly typed for PHP 8.5; expensive or frame-sensitive work stays in Rust or the platform SDK instead of crossing the application boundary every frame.

Best for A focused capability you can add to any PAM Native application
Native path Deterministic temporal recorder · Native overlays
Application model Composer package + generated native integration
Design rule Independent module; no feed, vertical, or application template bundled

What you can build

  • Time-travel debugging for signals and actions
  • Network and native-event inspection
  • Frame-jank investigation and reproducible bug reports

Quick start

Already have a PAM Native project? Add only this capability:

pam composer require pushinbr/pam-native-devtools
pam doctor --fix

New to PAM? Follow the five-minute PAM Native setup once, then return here. Your application stays a normal Composer project with a committed lockfile.

See it in action

A deterministic, bounded diagnostic recorder for PAM Native development: application events, serializable state snapshots, performance marks, errors, and complete network transactions. Export one JSON artifact for bug reports or CI regressions without coupling production apps to a visual UI.

pam composer require pushinbr/pam-native-devtools
pam doctor --fix
$tools->snapshot('session', $session);
$tools->mutation('session', $previousSession, $session);
$tools->frame('feed', ['refreshRateHz' => 120, 'frameMs' => 7.4, 'missed' => false]);
$tools->mark('feed.start');
$request = $tools->network('GET', $url, $headers);
try { $request->complete(200, $responseHeaders, $body); }
catch (Throwable $e) { $request->fail($e->getMessage()); throw $e; }
$tools->measure('feed.load', 'feed.start');

$artifact = $tools->exportJson();
$recording = TimelineRecording::fromJson($artifact);
$replay = new ReplaySession($recording);
$replay->replay(static function (array $record): void {
    // Feed the exact, ordered diagnostic event into a test or inspector.
});

Sensitive keys are redacted recursively, object depth and collection size are bounded, strings are truncated, and the oldest records are discarded under pressure. The package complements PAM's native debug overlay and navigation timeline; it does not ship UI into production applications.

What installation does

pam composer require pushinbr/pam-native-devtools installs the package through the project's normal composer.json and composer.lock. Run pam doctor --fix afterward to validate the environment and regenerate native integration when required.

Use pam packages to inspect direct installed Composer dependencies and pam composer remove pushinbr/pam-native-devtools to uninstall the capability.

API guide

API Responsibility
DevTools Record events, mutations, snapshots, frames, marks, measures, errors, and network work.
NetworkTransaction Complete or fail a captured request lifecycle.
Redactor Bound and recursively redact diagnostic values.
TimelineRecording Validate and serialize the bounded, versioned replay artifact.
ReplaySession Step, seek, time travel to state, or replay the timeline deterministically.
RecordKind / NetworkState Typed diagnostic record states.

All coded states, kinds, and variants are sequential integer-backed enums. Use enum cases in application code; do not depend on raw wire numbers.

Production checklist

  • Keep DevTools in development and diagnostic builds.
  • Add product-specific sensitive keys to redaction rules.
  • Attach exported JSON to reproducible bug reports, never public issue bodies without review.
  • Run pam doctor, pam test, and a signed release build on every supported platform.
  • Exercise denial, cancellation, backgrounding, process restart, and offline behavior before release.

Troubleshooting

  • Records disappear: the buffer intentionally drops oldest entries under pressure.
  • Values are truncated: increase detail only when the privacy and size trade-off is acceptable.
  • A request remains open: always call complete() or fail().
  • Native integration is stale: run pam doctor --fix, rebuild the native host, and inspect the first reported diagnostic.

Compatibility and support

This package targets PAM Native 0.8.x, PHP 8.5, Android API 26+, and iOS 15+ unless a platform-specific section above states a stricter requirement. Platform SDKs, credentials, entitlements, physical hardware, and store configuration remain application responsibilities.

Security vulnerabilities should be reported through the repository security policy or GitHub private vulnerability reporting, not a public issue.