Documentation
¶
Overview ¶
Package pluginreload carries a change of the person's Claude Code plugins and skills into the Claude tabs that run. The plugin reconciler leaves a mark file ({"plugins": <ms>, "skills": <ms>}) when it installed or updated some; a running Claude keeps what it loaded at start until /reload-plugins or /reload-skills, so each Claude tab gets the command typed once per change: only an agent that stopped, with an empty prompt box and no message of the person waiting. What each tab has applied is kept on disk, so a restart does not reload every tab again.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Commands = map[string]string{"plugins": "/reload-plugins", "skills": "/reload-skills"}
Commands are what each kind's reload types.
var Kinds = []string{"plugins", "skills"}
Kinds, plugins first: their reload also brings the skills plugins carry.
Functions ¶
func Outcome ¶
Outcome is what a typed reload came to: applied, settled (no Claude runs in the tab; the next one reads the plugins as they are), gone (the tab has no session) or wait.
func ScreenDecision ¶
ScreenDecision is insert, wait, or probe (no prompt box on screen: whether a Claude runs in the pane decides).
Types ¶
type Applied ¶
type Applied struct {
File string
// contains filtered or unexported fields
}
Applied is what each tab's Claude has, kept in a file.
type Decision ¶
type Decision struct {
Action, Kind string
}
Decision is insert (with the kind to reload), wait or skip.
type Mark ¶
Mark is the time of the last change of each kind (epoch ms); a kind that is not there never changed.
func ParseMark ¶
ParseMark reads a mark file; false when it is not a JSON object. Only positive finite numbers count.
func (Mark) MarshalJSON ¶
MarshalJSON writes the kinds in their order.