wbskills

package
v0.182.6 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const LegacyMarker = ".wb-skills-sync.json"
View Source
const PluginVersion = "0.0.0"
View Source
const UnknownSource = "0000000000000000000000000000000000000000"

Variables

This section is empty.

Functions

func Announcement

func Announcement(deps AnnouncementDependencies) string

sessionStartAnnouncement never returns an error and never panics: it is injected into every Claude Code session's opening context, so every failure along the way -- no resolvable home directory, no marker yet, a corrupt one -- degrades to the registration reminder alone rather than producing nothing or crashing the hook.

func CLIIdentity

func CLIIdentity() skillsync.Identity

func Config

func Config(sourceFS fs.FS, build buildinfo.Report) (skillsync.Config, error)

func DriftMessage

func DriftMessage(dir string, status skillsync.Status, currentVersion string) string

DriftMessage is printed by the SessionStart hook. Ordinary WB invocations stay quiet: repeating one warning on every tool call consumed more agent context than the warning protected and made private feature builds particularly noisy. A verified self-update still synchronizes skills immediately, while SessionStart reports drift once when it can affect work.

func PluginIdentity

func PluginIdentity() skillsync.PluginIdentity

func SyncedWBVersion

func SyncedWBVersion(status skillsync.Status) (string, bool)

Types

type AnnouncementDependencies

type AnnouncementDependencies struct {
	SkillsDir  func() (string, error)
	ReadStatus func(string) (skillsync.Status, error)
	Version    func() string
}

Jump to

Keyboard shortcuts

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