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

+2 -2
View File
@@ -9,13 +9,13 @@ import (
"path"
"strings"
"git.hypertheory-labs.dev/loom/loom-cli/internal/config"
"git.hypertheory-labs.dev/norn/norn-cli/internal/config"
)
// AddByName adopts a document named the way `list` prints it, against the
// current context.
//
// loomctl external add loom/cart cart
// nornctl external add norn/cart cart
//
// Nobody should have to type a host's raw-file route to adopt a document. The
// route belongs to the host, so it lives in the context; the published
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"fmt"
"io"
"git.hypertheory-labs.dev/loom/loom-cli/internal/lock"
"git.hypertheory-labs.dev/norn/norn-cli/internal/lock"
)
// auditExposure reports documents adopted from a source that could not be read
+10 -10
View File
@@ -19,26 +19,26 @@ import (
"strings"
"time"
"git.hypertheory-labs.dev/loom/loom-cli/internal/config"
"git.hypertheory-labs.dev/loom/loom-cli/internal/lock"
"git.hypertheory-labs.dev/norn/norn-cli/internal/config"
"git.hypertheory-labs.dev/norn/norn-cli/internal/lock"
)
var client = &http.Client{Timeout: 30 * time.Second}
// FindRoot walks up from dir looking for the .loom directory that marks a
// repository using loom.
// FindRoot walks up from dir looking for the .norn directory that marks a
// repository using norn.
func FindRoot(dir string) (string, error) {
d, err := filepath.Abs(dir)
if err != nil {
return "", err
}
for {
if fi, err := os.Stat(filepath.Join(d, ".loom")); err == nil && fi.IsDir() {
if fi, err := os.Stat(filepath.Join(d, ".norn")); err == nil && fi.IsDir() {
return d, nil
}
parent := filepath.Dir(d)
if parent == d {
return "", errors.New("no .loom directory found in this directory or any parent")
return "", errors.New("no .norn directory found in this directory or any parent")
}
d = parent
}
@@ -47,7 +47,7 @@ func FindRoot(dir string) (string, error) {
// localPath derives where an adopted document is kept from the URL it came from.
//
// The path is for a person: <host>/<owner>/<repo>/<basename>. It deliberately
// does not encode the route, the branch, or .loom/published/ — which is why it
// does not encode the route, the branch, or .norn/published/ — which is why it
// cannot be turned back into a URL, and why the lock records the origin.
func localPath(raw string) (string, error) {
u, err := url.Parse(raw)
@@ -109,7 +109,7 @@ func Add(root, raw, override string, out io.Writer) error {
_, isLocked := locks.Get(rel)
if isLocked {
return fmt.Errorf("%s is already adopted — `loomctl external check` is what notices it moving", rel)
return fmt.Errorf("%s is already adopted — `nornctl external check` is what notices it moving", rel)
}
body, etag, err := fetch(cfg, raw, "")
@@ -250,7 +250,7 @@ func warnIfNotPublic(root, raw, vis string, out io.Writer) {
fmt.Fprintf(out, " readable than the repository you are adopting into.\n")
fmt.Fprintf(out, " Two ways out: ask them to publish it — usually the thing you\n")
fmt.Fprintf(out, " needed was not the confidential part — or keep no copy and\n")
fmt.Fprintf(out, " record only the dependency, which loomctl cannot do yet.\n")
fmt.Fprintf(out, " record only the dependency, which nornctl cannot do yet.\n")
}
// NotFoundError is a 404, which over HTTP carries more than one reading.
@@ -407,7 +407,7 @@ func checkUnlocked(cfg *config.Config, root, rel string, locks *lock.Set, open b
// Without a lock we have no origin, and the path does not round-trip to a
// URL, so there is nothing to ask and nowhere to ask it. Supplying the URL
// through add is the only way out.
return Status{rel, "unlocked", "no origin recorded — `loomctl external add <url>` supplies it without rewriting this copy"}, 0
return Status{rel, "unlocked", "no origin recorded — `nornctl external add <url>` supplies it without rewriting this copy"}, 0
}
func usagesNote(root, rel string) string {
+7 -7
View File
@@ -13,8 +13,8 @@ func TestLocalPath(t *testing.T) {
}{
{
name: "gitea raw, published document",
url: "https://git.hypertheory-labs.dev/loom/bedrock/raw/branch/main/.loom/published/starting.md",
want: "git.hypertheory-labs.dev/loom/bedrock/starting.md",
url: "https://git.hypertheory-labs.dev/norn/bedrock/raw/branch/main/.norn/published/starting.md",
want: "git.hypertheory-labs.dev/norn/bedrock/starting.md",
},
{
name: "github raw host",
@@ -28,7 +28,7 @@ func TestLocalPath(t *testing.T) {
},
{
name: "not absolute",
url: "/loom/bedrock/starting.md",
url: "/norn/bedrock/starting.md",
wantErr: true,
},
} {
@@ -54,13 +54,13 @@ func TestIsFacet(t *testing.T) {
// A facet is something we wrote beside an adopted document. check must not
// report our own writing as an unlocked external.
facets := []string{
"host/loom/cart/cart.usages.md",
"host/loom/externals/externals.gaps.md",
"host/norn/cart/cart.usages.md",
"host/norn/externals/externals.gaps.md",
"host/o/r/plan.notes.md",
}
documents := []string{
"host/loom/cart/cart.md",
"host/loom/bedrock/recording-decisions.md", // a hyphen is not a facet
"host/norn/cart/cart.md",
"host/norn/bedrock/recording-decisions.md", // a hyphen is not a facet
"host/o/r/starting.md",
}
for _, p := range facets {
+3 -3
View File
@@ -8,13 +8,13 @@ import (
"os/exec"
"strings"
"git.hypertheory-labs.dev/loom/loom-cli/internal/config"
"git.hypertheory-labs.dev/norn/norn-cli/internal/config"
)
// PublishedDir is the only directory in somebody else's repository that list
// looks at. What is not exported is not hidden — it is simply not what you
// depend on.
const PublishedDir = ".loom/published"
const PublishedDir = ".norn/published"
// List enumerates a publisher's published surface.
//
@@ -29,7 +29,7 @@ func List(repoURL string, out io.Writer) error {
return err
}
dir, err := os.MkdirTemp("", "loomctl-list-")
dir, err := os.MkdirTemp("", "nornctl-list-")
if err != nil {
return err
}
+2 -2
View File
@@ -7,13 +7,13 @@ import (
"path/filepath"
"strings"
"git.hypertheory-labs.dev/loom/loom-cli/internal/lock"
"git.hypertheory-labs.dev/norn/norn-cli/internal/lock"
)
// CartDir is where a round happens. A cart is not committed — it lives in the
// working tree of the machine the two presences share — so everything staged
// here is deliberately outside version control.
const CartDir = ".loom/cart/current"
const CartDir = ".norn/cart/current"
// PoladDir is where a changed external waits for somebody to decide.
//
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"path/filepath"
"testing"
"git.hypertheory-labs.dev/loom/loom-cli/internal/lock"
"git.hypertheory-labs.dev/norn/norn-cli/internal/lock"
)
// apply used to write the staged record verbatim, and a staged record carried no
+2 -2
View File
@@ -7,8 +7,8 @@ func TestSplitRemote(t *testing.T) {
remote, host, ownerRepo string
ok bool
}{
{"ssh://git@git.hypertheory-labs.dev:2222/loom/loom-cli.git", "git.hypertheory-labs.dev", "loom/loom-cli", true},
{"ssh://git@git.hypertheory-labs.dev/loom/loom-cli.git", "git.hypertheory-labs.dev", "loom/loom-cli", true},
{"ssh://git@git.hypertheory-labs.dev:2222/norn/norn-cli.git", "git.hypertheory-labs.dev", "norn/norn-cli", true},
{"ssh://git@git.hypertheory-labs.dev/norn/norn-cli.git", "git.hypertheory-labs.dev", "norn/norn-cli", true},
{"git@github.com:octocat/Hello-World.git", "github.com", "octocat/Hello-World", true},
{"https://gitlab.com/gitlab-org/gitlab-svgs.git", "gitlab.com", "gitlab-org/gitlab-svgs", true},
{"https://gitlab.com/gitlab-org/gitlab-svgs", "gitlab.com", "gitlab-org/gitlab-svgs", true},