Skip to main content
VelinStyle v1.4.0
⌂ Home

Providers & Worker 1.4.0

Provider abstraction keeps optional local ranking replaceable without shipping model weights or enabling cloud access.

Providers

ProviderStatusPurpose
createUnavailableRanker()unavailableDefault; policy-order fallback
createDeterministicRanker()deterministicOffline tests and demos; not a neural model
createModelRankerPlaceholder()unavailableFuture local model hook; no weights
createWorkerRanker(url?)deterministicHeuristic in a Worker when available

Activation

startAdapt(document, {
  ai: { enabled: true, ranker: 'deterministic' }
});

Worker protocol

The optional Worker receives only the Semantic Snapshot and public candidates and returns ranking data. It has no DOM handle and must not fetch external AI, read cookies, or access storage.

Lifecycle

getAdaptAIStatus(root) reports enabled/provider state. stopAdapt(root) terminates Worker rankers where applicable.