Skip to content

Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.

641 B
Raw Blame
package skill

import "strings"

// policyConflict contains only diagnostic policy facts, never config values or credentials.
type policyConflict struct{ description string }

func (e *policyConflict) Error() string { return e.description }
func (e *policyConflict) Unwrap() error { return ErrConflict }

func newPolicyConflict(reason string, references ...string) error {
	if len(references) > 10 {
		references = references[:10]
	}
	description := "Skill configuration requires repair: " + reason
	if len(references) > 0 {
		description += " (" + strings.Join(references, ", ") + ")"
	}
	return &policyConflict{description: description}
}