@flemo/devtools 0.2.2 → 0.3.0

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.
package/README.md CHANGED
@@ -184,15 +184,13 @@ Do not turn it into a live-updating dashboard.
184
184
  "overrides": {
185
185
  // Every flemo:* storage key currently set (both storages), including
186
186
  // unknown keys and keys present at attach but cleared since (marked).
187
- "active": { "flemo:apply": "scrub" },
187
+ // Retired keys still persisted on the device are listed too, marked
188
+ // "(retired — the library no longer reads this)", so residue is ruled out
189
+ // rather than chased.
190
+ "active": { "flemo:layers": "resident" },
188
191
  // Read these FIRST. A non-empty warnings list means the session does not
189
- // run stock behavior — especially the driver force pin, which pins EVERY
190
- // transition and once burned a multi-day investigation as residue.
191
- "warnings": ["flemo:apply=scrub — opt-in diagnostic active (…)"]
192
- },
193
- "driverPolicy": {
194
- "demotion": null, // localStorage flemo:motion-driver ("css" = player demoted)
195
- "forcePin": null // sessionStorage flemo:motion-driver-force — non-null = PIN ACTIVE
192
+ // run stock behavior.
193
+ "warnings": ["flemo:layers=resident opt-in diagnostic active (…)"]
196
194
  },
197
195
  "flights": [
198
196
  {
@@ -202,7 +200,7 @@ Do not turn it into a live-updating dashboard.
202
200
  "t0": { "ms": 1234.5, "iso": "…" }, // performance.now + wall clock
203
201
  "t1": { "ms": 1834.5, "iso": "…" },
204
202
  "durationMs": 600,
205
- // player | compiled | mixed | unknown — detected per flight from the
203
+ // compiled | player | mixed | unknown — detected per flight from the
206
204
  // DOM signature (inline animation suppression + advancing inline pose
207
205
  // = player; a running flemo-* CSSAnimation = compiled). Never assume a
208
206
  // platform always routes one tier; routing policies evolve.
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -32,10 +32,6 @@ export interface FlightAnomalyInput {
32
32
  }
33
33
  export declare const deriveFlightAnomalies: (input: FlightAnomalyInput) => string[];
34
34
  export interface ReportAnomalyInput {
35
- forcePin: string | null;
36
- legacyLocalForcePin: string | null;
37
- /** Force-pin value seen at attach but cleared by report time, if any. */
38
- clearedForcePin: string | null;
39
35
  emulationSuspected: boolean;
40
36
  platform: string;
41
37
  /** True when a flight is still transitional past STUCK_STATUS_MS. */
@@ -0,0 +1,22 @@
1
+ export declare const SCREEN_ATTR = "data-flemo-screen";
2
+ export declare const STATUS_ATTR = "data-flemo-status";
3
+ export declare const ACTIVE_ATTR = "data-flemo-active";
4
+ export declare const ROUTER_ATTR = "data-flemo-router";
5
+ export declare const ANIM_HOLD_ATTR = "data-flemo-anim-hold";
6
+ export declare const IMAGE_HOLD_ATTR = "data-flemo-img-hold";
7
+ export declare const HELD_ARRIVAL_ATTR = "data-flemo-held-arrival";
8
+ export declare const PART_NAME_ATTR = "data-flemo-part-name";
9
+ export declare const DECORATOR_ATTR = "data-flemo-decorator";
10
+ export declare const BAR_ATTR = "data-flemo-bar";
11
+ export declare const BAR_STATUS_ATTR = "data-flemo-bar-status";
12
+ export declare const BAR_RIDING_ATTR = "data-flemo-bar-riding";
13
+ /** This package's own marker — core reserves the name but never writes it. */
14
+ export declare const DEVTOOLS_PANEL_ATTR = "data-flemo-devtools-panel";
15
+ /** The statuses during which a flight is moving. */
16
+ export declare const TRANSITIONAL_STATUSES: readonly ["PUSHING", "POPPING", "REPLACING"];
17
+ /** The ANIM_HOLD_ATTR values that mean "held" (any form of park included). */
18
+ export declare const HOLD_VALUES: readonly ["true", "park", "park-under", "park-over"];
19
+ /** `[data-flemo-screen]` */
20
+ export declare const attrSelector: (attribute: string) => string;
21
+ /** `[data-flemo-status="PUSHING"]` */
22
+ export declare const attrValueSelector: (attribute: string, value: string) => string;
package/dist/index.d.ts CHANGED
@@ -6,8 +6,8 @@ export { BLIND_SPOTS } from './blindSpots';
6
6
  export { attachDevtoolsPanel } from './panel';
7
7
  export type { DevtoolsPanelHandle, DevtoolsPanelOptions } from './panel';
8
8
  export { captureEnvironment, detectEngine, isEmulationSuspected, sampleRafCadence } from './environment';
9
- export { deriveOverrideWarnings, FLAG_REGISTRY, LEGACY_LOCAL_PIN_KEY, snapshotOverrides } from './overrides';
10
- export type { FlagClass, FlagDescriptor } from './overrides';
9
+ export { CORE_FLAGS, deriveOverrideWarnings, DEVTOOLS_OWNED_FLAGS, FLAG_REGISTRY, PANEL_HEIGHT_KEY, RETIRED_FLAGS, RETIRED_MARKER, snapshotOverrides } from './overrides';
10
+ export type { FlagClass, FlagDescriptor, RetiredFlag } from './overrides';
11
11
  export { classifyDriver, computeFrameStats, computePhaseStats, computePlayerGapStats, kindFromStatus, parseTranslateX } from './sampling';
12
12
  export type { DriverEvidence } from './sampling';
13
- export type { DriverPolicySection, EnvironmentFingerprint, FlemoReport, FlightDriver, FlightHolds, FlightKind, FlightParticipants, FlightRecord, FlightRecorderHandle, FlightRecorderOptions, FlightTimestamp, FramePhaseStats, FrameSampleStats, LandingAudit, LongTaskSpan, ObservationCapabilities, OverridesSection, PlayerGapStats, UaBrand } from './types';
13
+ export type { EnvironmentFingerprint, FlemoReport, FlightDriver, FlightHolds, FlightKind, FlightParticipants, FlightRecord, FlightRecorderHandle, FlightRecorderOptions, FlightTimestamp, FramePhaseStats, FrameSampleStats, LandingAudit, LongTaskSpan, ObservationCapabilities, OverridesSection, PlayerGapStats, UaBrand } from './types';