проектные команды и ссылки на источник

- заведён internal/source: уровни ссылаются друг на друга путём на диске
  или git-репозиторием, ревизия закрепляется хвостом #ref; клон делается
  заново и удаляется, кэша нет
- добавлены init, add, pull, list, check в проекте — манифест
  .conventions.toml, сборка копий по разу на компонент, маркер локальной
  части, READING.md рядом
- проверки формы развязаны с набором: принимают lang.Vocabulary, а язык
  копии узнаётся по строке о версии — манифеста рядом с ней нет
This commit is contained in:
av
2026-07-27 20:42:18 +03:00
parent 4615de6e86
commit 23d88c4048
27 changed files with 3009 additions and 57 deletions
+7
View File
@@ -18,6 +18,11 @@ type Front struct {
Lang string
Stack string
Extends string
// Origin is the key a copy carries in a consuming repository: the name of
// the topic it was assembled from. It is the whole front matter of a copy
// and it appears nowhere in a suite — a file that lost it is no longer a
// copy and is never overwritten again.
Origin string
// At is the line a key was declared on, so a finding can point at the
// declaration rather than at the top of the file.
@@ -75,6 +80,8 @@ func parseFront(lines []string) (Front, int, error) {
front.Stack = value
case "extends":
front.Extends = value
case "origin":
front.Origin = value
default:
front.Unknown = append(front.Unknown, key)
}