reconcile

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyProjectionToCanonical

func CopyProjectionToCanonical(tool tools.Tool, path, canonicalDir string) error

CopyProjectionToCanonical promotes a tool's on-disk projection back into the canonical store, used by `scribe skill repair --from tool`. The shape is inferred from the tool's CanonicalTarget: if the target is a file, promotion only succeeds when that file is canonicalDir/SKILL.md (Claude); otherwise the projection is derived (e.g. Cursor's generated .cursor.mdc) and promoting it would be overwritten on the next install. Directory targets are copied wholesale.

Types

type Action

type Action struct {
	Kind ActionKind
	Name string
	Tool string
	Path string
}

type ActionKind

type ActionKind string
const (
	ActionInstalled ActionKind = "installed"
	ActionRelinked  ActionKind = "relinked"
	ActionRemoved   ActionKind = "removed"
	ActionConflict  ActionKind = "conflict"
	ActionUnchanged ActionKind = "unchanged"
)

type Engine

type Engine struct {
	Tools            []tools.Tool
	ProjectRoot      string
	KitFilter        []string
	KitFilterEnabled bool
	Now              func() time.Time
}

func (*Engine) Run

func (e *Engine) Run(st *state.State) (Summary, []Action, error)

type Summary

type Summary struct {
	Installed int
	Relinked  int
	Removed   int
	Conflicts []state.ProjectionConflict
}

Jump to

Keyboard shortcuts

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