skill: replace the lane model with the work queue
The lane machinery is gone: work is a markdown queue, items run in parallel in their own worktrees, the committer stage lands its own work, land-check.sh gates cleanup, branches are never deleted, and pipelines wait (rather than a driver script) is what wakes a session. references/lanes.md becomes references/queue.md; the remaining lane references in work/orchestration/debugging/delivery/format and SKILL.md are rewritten, and the installer now prunes a managed file it no longer bundles when the copy is unmodified.
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
||||
"path/filepath"
|
||||
)
|
||||
|
||||
var skillFiles = []string{"SKILL.md", "references/orchestration.md", "references/work.md", "references/lanes.md", "references/debugging.md", "references/delivery.md", "references/format.md", "references/notifications.md", "references/operations.md", "references/transfer.md", "references/verification.md", "references/control.md", "references/harnesses.md"}
|
||||
var skillFiles = []string{"SKILL.md", "references/orchestration.md", "references/work.md", "references/queue.md", "references/debugging.md", "references/delivery.md", "references/format.md", "references/notifications.md", "references/operations.md", "references/transfer.md", "references/verification.md", "references/control.md", "references/harnesses.md"}
|
||||
|
||||
func SkillDirectory() (string, error) {
|
||||
dir := os.Getenv("XDG_CONFIG_HOME")
|
||||
@@ -97,6 +97,21 @@ func InstallSkill() (string, error) {
|
||||
return "", err
|
||||
}
|
||||
}
|
||||
// A file the previous install managed but this version no longer bundles - a
|
||||
// reference renamed or withdrawn - is removed only when it is unmodified. A copy
|
||||
// the user edited is left alone, exactly as an edit to a live file is.
|
||||
for file, hash := range previous {
|
||||
if _, still := next[file]; still {
|
||||
continue
|
||||
}
|
||||
existing, readErr := os.ReadFile(filepath.Join(dir, file))
|
||||
if readErr != nil {
|
||||
continue
|
||||
}
|
||||
if digest(existing) == hash {
|
||||
_ = os.Remove(filepath.Join(dir, file))
|
||||
}
|
||||
}
|
||||
if len(previous) == len(next) {
|
||||
equal := true
|
||||
for file, hash := range next {
|
||||
|
||||
Reference in New Issue
Block a user