Rename loom → norn

The project is now norn: .loom/ is .norn/, loomctl is nornctl
(NORNCTL_* env vars, ~/.config/nornctl), and the Gitea org is norn.
Event logs moved with the directory but their text is unchanged —
they are a record of what was decided at the time.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jeffryandClaude Opus 5.5 committed 2026-12-06 11:06:49 -05:00
1 parent c6354c95fa
commit dde7183528
36 files changed
+216 -216

No files matched your search

+26 -26
View File
@@ -1,4 +1,4 @@
// loomctl fetches documents this repository depends on, and finds out when they
// nornctl fetches documents this repository depends on, and finds out when they
// change.
//
// It reports and never repairs. Everything it writes, it writes to the working
@@ -14,27 +14,27 @@ import (
"sort"
"strings"
"git.hypertheory-labs.dev/loom/loom-cli/internal/config"
"git.hypertheory-labs.dev/norn/norn-cli/internal/config"
"git.hypertheory-labs.dev/loom/loom-cli/internal/external"
"git.hypertheory-labs.dev/loom/loom-cli/internal/orient"
"git.hypertheory-labs.dev/norn/norn-cli/internal/external"
"git.hypertheory-labs.dev/norn/norn-cli/internal/orient"
)
const usage = `loomctl — fetch what you depend on, and find out when it changed.
const usage = `nornctl — fetch what you depend on, and find out when it changed.
loomctl external list <owner/repo> what a repository publishes
loomctl external add <owner/repo> <doc> adopt one document and lock it
loomctl external add <url> [--path p] ... or by its full raw URL
loomctl external check ask every publisher whether theirs moved
loomctl external apply [path...] move a staged polad into place, lock and all
nornctl external list <owner/repo> what a repository publishes
nornctl external add <owner/repo> <doc> adopt one document and lock it
nornctl external add <url> [--path p] ... or by its full raw URL
nornctl external check ask every publisher whether theirs moved
nornctl external apply [path...] move a staged polad into place, lock and all
check reports and does not fix. A document that moved is staged as a polad in
.loom/cart/current/polad/ — a candidate shaped exactly like what it would
.norn/cart/current/polad/ — a candidate shaped exactly like what it would
become — and somebody decides. Its exits are apply or discard; nothing there
drifts into being kept. With no cart open, check says what moved and stages
nothing, because opening a round is somebody's act and not a side effect.
loomctl grants no access. It reads what your credentials already let you read,
nornctl grants no access. It reads what your credentials already let you read,
and records where the copy came from — which is the part copy-and-paste loses.
It warns rather than refuses: adopting from a source less readable than the
repository you are adopting into is yours to decide, and the check only tells
@@ -47,17 +47,17 @@ it supplies the missing origin: identical bytes lock it, differing bytes are
staged, and the local copy is never overwritten, because a copy that differs is
the only evidence that anything moved while nothing was watching.
Adopted documents live in .loom/externals/<host>/<owner>/<repo>/<name>.md, and
their origins in .loom/externals/.locks. The path is for a person to read; the
Adopted documents live in .norn/externals/<host>/<owner>/<repo>/<name>.md, and
their origins in .norn/externals/.locks. The path is for a person to read; the
lock is what a machine uses, because the path does not round-trip to a URL.
loomctl orient [--out path] write .loom/orientation.md for whoever arrives next
loomctl config which context is current, and from where
nornctl orient [--out path] write .norn/orientation.md for whoever arrives next
nornctl config which context is current, and from where
A bare owner/repo is resolved against the current context in
~/.config/loomctl/config.json, which holds a host, its flavor and a read-only
~/.config/nornctl/config.json, which holds a host, its flavor and a read-only
token. The host's raw-file route lives there so that nobody has to type it, and
LOOMCTL_TOKEN_<HOST> overrides the file for one invocation. loomctl never writes
NORNCTL_TOKEN_<HOST> overrides the file for one invocation. nornctl never writes
over the network, so a token it is given should never carry write scope.
{
@@ -76,7 +76,7 @@ Requires git on PATH, for list only.
func main() {
if err := run(os.Args[1:]); err != nil {
fmt.Fprintln(os.Stderr, "loomctl: "+err.Error())
fmt.Fprintln(os.Stderr, "nornctl: "+err.Error())
os.Exit(1)
}
}
@@ -119,7 +119,7 @@ func runExternal(args []string) error {
switch args[0] {
case "list":
if len(args) != 2 {
return fmt.Errorf("usage: loomctl external list <owner/repo>")
return fmt.Errorf("usage: nornctl external list <owner/repo>")
}
if strings.Contains(args[1], "://") {
return external.List(args[1], os.Stdout)
@@ -128,7 +128,7 @@ func runExternal(args []string) error {
case "add":
fs := flag.NewFlagSet("add", flag.ContinueOnError)
path := fs.String("path", "", "where to keep it, relative to .loom/externals (default: derived from the URL)")
path := fs.String("path", "", "where to keep it, relative to .norn/externals (default: derived from the URL)")
if err := fs.Parse(args[1:]); err != nil {
return err
}
@@ -140,14 +140,14 @@ func runExternal(args []string) error {
case 1:
if !strings.Contains(fs.Arg(0), "://") {
return fmt.Errorf("adopting by name needs the document too: " +
"loomctl external add <owner/repo> <doc>")
"nornctl external add <owner/repo> <doc>")
}
return external.Add(root, fs.Arg(0), *path, os.Stdout)
case 2:
return external.AddByName(root, fs.Arg(0), fs.Arg(1), os.Stdout)
default:
return fmt.Errorf("usage: loomctl external add <owner/repo> <doc>, " +
"or loomctl external add <url> [--path p]")
return fmt.Errorf("usage: nornctl external add <owner/repo> <doc>, " +
"or nornctl external add <url> [--path p]")
}
case "check":
@@ -205,8 +205,8 @@ func showConfig(out io.Writer) error {
}
func credential(cfg *config.Config, c config.Context) string {
if os.Getenv("LOOMCTL_TOKEN") != "" {
return "token from LOOMCTL_TOKEN"
if os.Getenv("NORNCTL_TOKEN") != "" {
return "token from NORNCTL_TOKEN"
}
if cfg.TokenFor(c.Host) != "" {
if c.Token == "" {