Initialize repository with harness code and assets
Initial import of all source code, config, and README assets: the packages workspace (cli, core, server, web, docs, landing, skills), build scripts, tooling config, and CI workflows. Includes the data-layout revision made on this branch: the local data root defaults to ~/.penguin/data (PENGUIN_HOME still overrides; the installer keeps its binaries in ~/.penguin), and every Agent lives under <project>/agents/<agent>/ — path helpers, the three agent-enumeration scans, the system prompt, built-in Skills, tests and docs all follow the new layout. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018ihk8iQuo3kv2aPjAYEPuR
This commit is contained in:
1 parent
056bed7aeb
commit
45bfae6e94
543 files changed
+92949
No files matched your search
@@ -0,0 +1,18 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { parseFrontmatter } from "../src/lib/frontmatter";
|
||||
|
||||
describe("parseFrontmatter", () => {
|
||||
it("splits meta and body, tolerating colons and quotes in values", () => {
|
||||
const { meta, body } = parseFrontmatter(
|
||||
`---\ntitle: "Hello: world"\ndate: 2026-07-17\ncategory: news\n---\n\n# Body\n`,
|
||||
);
|
||||
expect(meta).toEqual({ title: "Hello: world", date: "2026-07-17", category: "news" });
|
||||
expect(body).toBe("# Body");
|
||||
});
|
||||
|
||||
it("returns the whole input as body when no frontmatter block exists", () => {
|
||||
const { meta, body } = parseFrontmatter("# Just markdown\n");
|
||||
expect(meta).toEqual({});
|
||||
expect(body).toBe("# Just markdown");
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user