refactor: restructure into herdr/herdr-composer, rename ovis-composer -> herdr-composer, migrate stored data

Co-Authored-By: Ovis Fast (Claude) <[email protected]>
This commit is contained in:
FactorandOvis Fast committed 2026-11-19 12:52:42 +01:00
1 parent 6beecaac83
commit 74c1dfaeb8
27 files changed
+253 -97

No files matched your search

+5 -5
View File
@@ -1,6 +1,6 @@
import test from "node:test";
import assert from "node:assert/strict";
import { LIMITS, validate, validateMany, mention, removeMention } from "../mod/ovis-composer/attachments.js";
import { LIMITS, validate, validateMany, mention, removeMention } from "../herdr/herdr-composer/mods/herdr-composer/attachments.js";
test("validate rejects over 32 MiB", () => {
const r = validate({ bytes: 33 * 2 ** 20 });
@@ -59,7 +59,7 @@ test("removeMention takes the quoted form and the bare form out", () => {
assert.equal(removeMention('see @"/a b/c.png"x now', "/a b/c.png"), 'see @"/a b/c.png"x now');
});
import { formatBytes } from "../mod/ovis-composer/attachments.js";
import { formatBytes } from "../herdr/herdr-composer/mods/herdr-composer/attachments.js";
test("formatBytes", () => {
assert.equal(formatBytes(0), "0 B");
@@ -71,12 +71,12 @@ test("formatBytes", () => {
assert.equal(formatBytes(NaN), "");
});
import { relativeTo } from "../mod/ovis-composer/attachments.js";
import { relativeTo } from "../herdr/herdr-composer/mods/herdr-composer/attachments.js";
test("relativeTo: a file inside the folder, forward slashes, any case", () => {
assert.equal(
relativeTo("C:\\Users\\Factor\\.config\\herdr-app", "C:\\Users\\Factor\\.config\\herdr-app\\data\\ovis-composer\\paste\\paste-1.png"),
"data/ovis-composer/paste/paste-1.png",
relativeTo("C:\\Users\\Factor\\.config\\herdr-app", "C:\\Users\\Factor\\.config\\herdr-app\\data\\herdr-composer\\paste\\paste-1.png"),
"data/herdr-composer/paste/paste-1.png",
);
assert.equal(relativeTo("c:/users/factor/.config/herdr-app/", "C:\\Users\\Factor\\.config\\herdr-app\\a b\\ę.png"), "a b/ę.png");
});