Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion scripts/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
import { createHash } from "node:crypto";
import { mkdirSync, writeFileSync } from "node:fs";
import { loadAll } from "./lib.mjs";
import { fileURLToPath } from "node:url";

const DIST = new URL("../dist/", import.meta.url).pathname;
const DIST = fileURLToPath(new URL("../dist/", import.meta.url));

const SOURCE = "The Agent Loop";
const HOMEPAGE = "https://agent-loop.xyz";
Expand Down
3 changes: 2 additions & 1 deletion scripts/lib.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Zero-dependency front-matter parser for entries/*.md
import { readdirSync, readFileSync } from "node:fs";
import { join } from "node:path";
import { fileURLToPath } from "node:url";

export const ENUMS = {
category: ["frameworks", "orchestration", "evaluation", "memory", "tools", "protocols", "security", "infra", "research", "lessons", "general"],
Expand All @@ -9,7 +10,7 @@ export const ENUMS = {
grade: ["A", "B", "C", "D", "unrated"],
};
export const REQUIRED = ["id", "title", "url", "category", "source_type", "status", "grade", "added", "last_verified", "evidence"];
export const ENTRIES_DIR = new URL("../entries/", import.meta.url).pathname;
export const ENTRIES_DIR = fileURLToPath(new URL("../entries/", import.meta.url));
export const STALE_DAYS = 90;

function stripComment(v) {
Expand Down
Loading