meowpress 0.3.0-alpha.2 → 0.3.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -36,6 +36,7 @@ export interface Skill {
36
36
  relations: SkillRelation[];
37
37
  }
38
38
  export interface LoadSkillsOptions {
39
+ includeProjectSkills?: boolean;
39
40
  projectRootDirectory?: string;
40
41
  }
41
42
  export declare function loadSkills(rootDirectory: string, options?: LoadSkillsOptions): Promise<Skill[]>;
@@ -1,4 +1,4 @@
1
- import { readdir, readFile } from "node:fs/promises";
1
+ import { lstat, readdir, readFile } from "node:fs/promises";
2
2
  import { extname, posix, relative, resolve, sep } from "node:path";
3
3
  import { fromMarkdown } from "mdast-util-from-markdown";
4
4
  import { parse as parseYaml } from "yaml";
@@ -90,7 +90,7 @@ async function collectFiles(directory) {
90
90
  const path = resolve(directory, entry.name);
91
91
  if (entry.isDirectory())
92
92
  files.push(...(await collectFiles(path)));
93
- else
93
+ else if (entry.isFile())
94
94
  files.push(path);
95
95
  }
96
96
  return files;
@@ -295,15 +295,21 @@ async function skillDirectories(rootDirectory, options = {}) {
295
295
  base: "skills",
296
296
  scope: "public",
297
297
  },
298
- {
299
- root: resolve(projectRootDirectory, ".agents/skills"),
300
- base: ".agents/skills",
301
- scope: "project",
302
- },
298
+ ...(options.includeProjectSkills
299
+ ? [
300
+ {
301
+ root: resolve(projectRootDirectory, ".agents/skills"),
302
+ base: ".agents/skills",
303
+ scope: "project",
304
+ },
305
+ ]
306
+ : []),
303
307
  ];
304
308
  const directories = [];
305
309
  for (const candidate of candidates) {
306
310
  try {
311
+ if ((await lstat(candidate.root)).isSymbolicLink())
312
+ continue;
307
313
  const entries = await readdir(candidate.root, { withFileTypes: true });
308
314
  directories.push(...entries
309
315
  .filter((entry) => entry.isDirectory() && !entry.name.startsWith("."))
@@ -1,47 +1,16 @@
1
- export declare const blogOptions: import("meowcss").Options<{}>;
2
- export declare const blogTokens: import("meowcss").TokenRefs<{
3
- readonly bg: readonly ["#faf8f3", "#191816"];
4
- readonly ink: readonly ["#26221e", "#f1ece3"];
5
- readonly inkSoft: readonly ["#625c55", "#c9c1b7"];
6
- readonly inkDim: readonly ["#81786f", "#aaa097"];
7
- readonly inkFaint: readonly ["#c9c1b7", "#615a52"];
8
- readonly line: readonly ["#ded8cf", "#3e3933"];
9
- readonly accent: readonly ["#d24b32", "#ef7055"];
10
- readonly accentSoft: readonly ["#f3ded5", "#3b2621"];
11
- readonly card: readonly ["#fffdf8", "#24211e"];
12
- readonly doodleBlue: readonly ["#73aabd", "#86c4d6"];
13
- readonly markerYellow: readonly ["#e5b958", "#e8c26d"];
14
- readonly onAccent: readonly ["#fffaf5", "#1d1613"];
15
- readonly focusRing: readonly ["rgba(210, 75, 50, 0.28)", "rgba(239, 112, 85, 0.34)"];
16
- readonly washRed: readonly ["rgba(210, 75, 50, 0.04)", "rgba(239, 112, 85, 0.075)"];
17
- readonly washBlue: readonly ["rgba(115, 170, 189, 0.045)", "rgba(134, 196, 214, 0.055)"];
18
- readonly heroWash: readonly ["rgba(210, 75, 50, 0.055)", "rgba(239, 112, 85, 0.13)"];
19
- readonly doodleLoopFill: readonly ["rgba(255, 253, 248, 0.68)", "rgba(47, 42, 37, 0.88)"];
20
- readonly cardSheen: readonly ["rgba(255, 255, 255, 0.34)", "rgba(255, 255, 255, 0.025)"];
21
- readonly cardInset: readonly ["rgba(255, 255, 255, 0.46)", "rgba(255, 255, 255, 0.035)"];
22
- readonly cardShadow: readonly ["rgba(69, 54, 40, 0.035)", "rgba(0, 0, 0, 0.17)"];
23
- readonly cardShadowHover: readonly ["rgba(69, 54, 40, 0.07)", "rgba(0, 0, 0, 0.28)"];
24
- readonly postBorderHover: readonly ["#c8beb2", "#61584f"];
25
- readonly thoughtCard: readonly ["#fdf8ee", "#28231e"];
26
- readonly thoughtBorder: readonly ["#d8cbbf", "#4a4038"];
27
- readonly thoughtBorderHover: readonly ["#c8b8aa", "#68584d"];
28
- readonly filterBg: readonly ["rgba(255, 253, 248, 0.48)", "rgba(36, 33, 30, 0.72)"];
29
- readonly filterBorderHover: readonly ["#beb5aa", "#685f56"];
30
- readonly quoteBg: readonly ["rgba(243, 222, 213, 0.34)", "rgba(90, 48, 39, 0.3)"];
31
- readonly codeBg: readonly ["#fffdf8", "#292622"];
32
- readonly preBg: readonly ["#26221e", "#0f0f0e"];
33
- readonly preInk: readonly ["#f2ece2", "#eee7dc"];
34
- readonly relatedBg: readonly ["rgba(255, 253, 248, 0.32)", "rgba(36, 33, 30, 0.45)"];
35
- readonly radius: "14px";
36
- readonly fontSans: "\"Geist Variable\", \"Geist\", \"PingFang SC\", \"Hiragino Sans GB\", \"Microsoft YaHei\", \"Noto Sans CJK SC\", ui-sans-serif, system-ui, sans-serif";
37
- readonly fontMono: "\"SF Mono\", \"Cascadia Code\", Menlo, Consolas, ui-monospace, monospace";
38
- readonly paperGrain: "url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)' opacity='.065'/%3E%3C/svg%3E\")";
39
- }> & import("meowcss").TokenSet;
40
- /** Static HTML owns the theme root; CSS remains available without JavaScript. */
1
+ /** Journal's component styles and token identities, with only site-owned chrome added. */
41
2
  export declare const blogTheme: import("meowcss").ThemeDefinition;
42
- /** The web font the Blog theme names; the build publishes it with its license. */
3
+ /** The build publishes Journal's three font families and their licenses locally. */
43
4
  export declare const blogFonts: readonly [{
44
- readonly family: "Geist Variable";
45
- readonly package: "@fontsource-variable/geist";
5
+ readonly family: "Newsreader Variable";
6
+ readonly package: "@fontsource-variable/newsreader";
7
+ readonly styles: readonly ["normal", "italic"];
8
+ }, {
9
+ readonly family: "Inter Variable";
10
+ readonly package: "@fontsource-variable/inter";
11
+ readonly styles: readonly ["normal"];
12
+ }, {
13
+ readonly family: "JetBrains Mono Variable";
14
+ readonly package: "@fontsource-variable/jetbrains-mono";
46
15
  readonly styles: readonly ["normal"];
47
16
  }];