Documentation
¶
Overview ¶
Package edition defines additive product policies for binaries built from the Melange CLI codebase. The zero/default behavior remains the standard melange contract; the Qualcomm edition narrows selected presentation paths.
Index ¶
- Variables
- type Policy
- func (p Policy) AllowsDeploymentLanguage(language string) bool
- func (p Policy) DeploymentLanguages() []string
- func (p Policy) FilterDeploymentOptions(body []byte) ([]byte, error)
- func (p Policy) FilterReport(kind string, body []byte) ([]byte, error)
- func (p Policy) FilterTargets(body []byte) ([]byte, error)
- func (p Policy) IsQualcomm() bool
- func (p Policy) ProgramName() string
Constants ¶
This section is empty.
Variables ¶
var ErrNoQualcommMeasurements = errors.New("no Qualcomm device measurements found")
ErrNoQualcommMeasurements means a report carried no approved Qualcomm device measurements. Device-less LLM accuracy rows do not satisfy this requirement because they are not device benchmarks.
Functions ¶
This section is empty.
Types ¶
type Policy ¶
type Policy struct {
// contains filtered or unexported fields
}
Policy is the behavior selected by one executable.
func (Policy) AllowsDeploymentLanguage ¶
AllowsDeploymentLanguage reports whether a guide language belongs to this edition's curated surface.
func (Policy) DeploymentLanguages ¶
DeploymentLanguages returns the guide languages exposed by this edition.
func (Policy) FilterDeploymentOptions ¶
FilterDeploymentOptions keeps standard response bytes exact and narrows the Qualcomm catalog to Android and Flutter guide choices.
func (Policy) FilterReport ¶
FilterReport applies the edition's output policy. Standard mode returns the exact input bytes. Qualcomm mode returns a filtered, re-summarized envelope.
func (Policy) FilterTargets ¶
FilterTargets removes explicitly non-Qualcomm artifacts while retaining device-unscoped artifacts used by LLM and universal targets.
func (Policy) IsQualcomm ¶
IsQualcomm reports whether the curated policy is active.
func (Policy) ProgramName ¶
ProgramName is the executable name shown to users.