edition

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

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

Constants

This section is empty.

Variables

View Source
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 Qualcomm

func Qualcomm() Policy

Qualcomm returns the curated Qualcomm behavior.

func Standard

func Standard() Policy

Standard returns the unchanged public Melange behavior.

func (Policy) AllowsDeploymentLanguage

func (p Policy) AllowsDeploymentLanguage(language string) bool

AllowsDeploymentLanguage reports whether a guide language belongs to this edition's curated surface.

func (Policy) DeploymentLanguages

func (p Policy) DeploymentLanguages() []string

DeploymentLanguages returns the guide languages exposed by this edition.

func (Policy) FilterDeploymentOptions

func (p Policy) FilterDeploymentOptions(body []byte) ([]byte, error)

FilterDeploymentOptions keeps standard response bytes exact and narrows the Qualcomm catalog to Android and Flutter guide choices.

func (Policy) FilterReport

func (p Policy) FilterReport(kind string, body []byte) ([]byte, error)

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

func (p Policy) FilterTargets(body []byte) ([]byte, error)

FilterTargets removes explicitly non-Qualcomm artifacts while retaining device-unscoped artifacts used by LLM and universal targets.

func (Policy) IsQualcomm

func (p Policy) IsQualcomm() bool

IsQualcomm reports whether the curated policy is active.

func (Policy) ProgramName

func (p Policy) ProgramName() string

ProgramName is the executable name shown to users.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL