@statechange/xano-xray
v0.1.0
Published
Shared X-Ray and performance analysis utilities for StateChange extension and CLI
Readme
@statechange/xano-xray
Shared X-Ray and performance analysis utilities for StateChange extension and CLI.
Exports
X-Ray Step Analysis (./steps)
buildStepListFromXray(xray)- Build step list from X-Ray datagetFunctionDependencies(xray, inventory)- Get function dependency graphaddPositions(vars)- Add position metadata to stepsnestedDisabled(vars)- Mark steps as disabled based on parent stateXRayStep- Type definition for X-Ray steps
X-Ray Utilities (./utils)
getStepWarnings(step, stack, steps?)- Get performance warnings for a stepanalyzeStack(stack)- Analyze stack for errors/warningsanalyzeAPI(api)- Analyze API for security issuesanalyzeToolset(toolset)- Analyze toolsetnestingLevel(step, stack, steps?)- Calculate nesting levelisSlowStep(step)- Check if step is slowisDisabled(step)- Check if step is disabled
Usage
import {
buildStepListFromXray,
getStepWarnings,
analyzeStack,
} from "@statechange/xano-xray";Building
yarn install
yarn build