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.
- package/README.md +71 -29
- package/dist/src/build.d.ts +21 -15
- package/dist/src/build.js +64 -42
- package/dist/src/cli.js +105 -14
- package/dist/src/content.d.ts +9 -1
- package/dist/src/content.js +86 -22
- package/dist/src/fonts.js +1 -1
- package/dist/src/identity.d.ts +6 -0
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/output.d.ts +7 -0
- package/dist/src/output.js +111 -0
- package/dist/src/preview.d.ts +1 -0
- package/dist/src/preview.js +61 -0
- package/dist/src/site.d.ts +3 -2
- package/dist/src/site.js +154 -281
- package/dist/src/skills.d.ts +1 -0
- package/dist/src/skills.js +13 -7
- package/dist/src/theme.d.ts +12 -43
- package/dist/src/theme.js +301 -2046
- package/package.json +10 -5
package/dist/src/skills.d.ts
CHANGED
|
@@ -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[]>;
|
package/dist/src/skills.js
CHANGED
|
@@ -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
|
-
|
|
300
|
-
|
|
301
|
-
|
|
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("."))
|
package/dist/src/theme.d.ts
CHANGED
|
@@ -1,47 +1,16 @@
|
|
|
1
|
-
|
|
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
|
|
3
|
+
/** The build publishes Journal's three font families and their licenses locally. */
|
|
43
4
|
export declare const blogFonts: readonly [{
|
|
44
|
-
readonly family: "
|
|
45
|
-
readonly package: "@fontsource-variable/
|
|
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
|
}];
|