Pyric
Navigate

API reference

@pyric/cli/conformance/browser

11 published symbols from @pyric/cli

Generated from the TypeScript declarations shipped at this import path.

Interfaces

BrowserFeatureSupport

Properties

PropertyType
assuranceAssurance
availabilityAvailability
caveatsreadonly string[]
evidenceSlugstring
featurestring
fidelityFidelity
importPathsreadonly string[]
summarystring
surfaceDeveloperSurface

CanIUseOptions

Properties

PropertyTypeDescription
importPath?stringRestrict the answer to features exposed through this published import.

CanIUseResult

Type Parameters

Type Parameter
T extends QueryableFeatureSupport

Properties

PropertyType
matchCanIUseMatch
querystring
supportsreadonly T[]

CanIUseToolOptions

Type Parameters

Type Parameter
R extends CanIUseResultLike

Properties

PropertyType
descriptionstring
featureDescriptionstring
importPathDescriptionstring
query(feature: string, options: { importPath?: string; }) => R

Type Aliases

Assurance

type Assurance = "eligible" | "qualified" | "ineligible" | "not-applicable";

Availability

type Availability = "available" | "unavailable" | "deferred" | "out-of-scope";

CanIUseMatch

type CanIUseMatch = "exact" | "ambiguous" | "suggestions" | "none";

DeveloperSurface

type DeveloperSurface =
  | "ai"
  | "app"
  | "auth"
  | "firestore"
  | "firestore-rules"
  | "functions-rtdb"
  | "messaging"
  | "messaging-admin"
  | "rtdb"
  | "rtdb-rules"
  | "storage"
  | "storage-rules";

Fidelity

type Fidelity =
  | "conforms"
  | "diverged"
  | "bug"
  | "unsupported"
  | "unverified"
  | "not-applicable";

Functions

canIUse()

function canIUse(query: string, options?: CanIUseOptions): CanIUseResult<BrowserFeatureSupport>;

Query the compact browser projection. Full claims and evidence remain on the Node-only @pyric/cli/conformance entry point.

Parameters

ParameterType
querystring
options?CanIUseOptions

Returns

CanIUseResult<BrowserFeatureSupport>


createCanIUseTool()

function createCanIUseTool<R>(options: CanIUseToolOptions<R>): ToolHandler;

The one authored pyric_can_i_use handler shape. Node and browser agents differ only in the query they pass in, so match semantics, argument validation, and summaries cannot drift between surfaces.

Type Parameters

Type Parameter
R extends CanIUseResultLike

Parameters

ParameterType
optionsCanIUseToolOptions<R>

Returns

ToolHandler