@pagesmith/core 0.3.0 → 0.4.0
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 +9 -4
- package/REFERENCE.md +5 -2
- package/dist/ai/index.d.mts +5 -3
- package/dist/ai/index.d.mts.map +1 -1
- package/dist/ai/index.mjs +300 -206
- package/dist/ai/index.mjs.map +1 -1
- package/dist/assets/index.d.mts +10 -1
- package/dist/assets/index.d.mts.map +1 -1
- package/dist/assets/index.mjs +2 -2
- package/dist/{assets-DXiWF_KI.mjs → assets-CAPOqQ_P.mjs} +42 -5
- package/dist/assets-CAPOqQ_P.mjs.map +1 -0
- package/dist/{content-config-Bfe4W9us.d.mts → content-config-DJXUOcNG.d.mts} +49 -17
- package/dist/{content-config-Bfe4W9us.d.mts.map → content-config-DJXUOcNG.d.mts.map} +1 -1
- package/dist/{content-layer-DPK1EmfY.mjs → content-layer-B5enqWeJ.mjs} +123 -28
- package/dist/content-layer-B5enqWeJ.mjs.map +1 -0
- package/dist/content-layer-CpHYUYNN.d.mts +121 -0
- package/dist/content-layer-CpHYUYNN.d.mts.map +1 -0
- package/dist/create/index.d.mts.map +1 -1
- package/dist/create/index.mjs +26 -28
- package/dist/create/index.mjs.map +1 -1
- package/dist/css/index.d.mts +1 -1
- package/dist/{heading-BpDXnl-7.d.mts → heading-Dhvzlay-.d.mts} +1 -1
- package/dist/{heading-BpDXnl-7.d.mts.map → heading-Dhvzlay-.d.mts.map} +1 -1
- package/dist/{index-Bg9srb5U.d.mts → index-B7NRZAxd.d.mts} +1 -1
- package/dist/{index-Bg9srb5U.d.mts.map → index-B7NRZAxd.d.mts.map} +1 -1
- package/dist/{index-BBYkDxwI.d.mts → index-C0QFHYwb.d.mts} +1 -1
- package/dist/{index-BBYkDxwI.d.mts.map → index-C0QFHYwb.d.mts.map} +1 -1
- package/dist/{index-CbOKbkjJ.d.mts → index-CJkBs8YQ.d.mts} +2 -2
- package/dist/index-CJkBs8YQ.d.mts.map +1 -0
- package/dist/{index-YXQxMV6J.d.mts → index-DCznbvaV.d.mts} +2 -2
- package/dist/{index-YXQxMV6J.d.mts.map → index-DCznbvaV.d.mts.map} +1 -1
- package/dist/index.d.mts +15 -99
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +13 -9
- package/dist/index.mjs.map +1 -1
- package/dist/loaders/index.d.mts +2 -2
- package/dist/markdown/index.d.mts +2 -2
- package/dist/markdown/index.mjs +1 -1
- package/dist/{markdown-CyrHoDhP.mjs → markdown-BmDJgYeB.mjs} +23 -1
- package/dist/{markdown-CyrHoDhP.mjs.map → markdown-BmDJgYeB.mjs.map} +1 -1
- package/dist/mcp/index.d.mts +23 -0
- package/dist/mcp/index.d.mts.map +1 -0
- package/dist/mcp/index.mjs +2 -0
- package/dist/mcp/server.d.mts +13 -0
- package/dist/mcp/server.d.mts.map +1 -0
- package/dist/mcp/server.mjs +2 -0
- package/dist/runtime/index.mjs +1 -1
- package/dist/schemas/index.d.mts +3 -3
- package/dist/server-D3DHoh5f.mjs +202 -0
- package/dist/server-D3DHoh5f.mjs.map +1 -0
- package/dist/ssg-utils/index.d.mts +61 -0
- package/dist/ssg-utils/index.d.mts.map +1 -0
- package/dist/ssg-utils/index.mjs +118 -0
- package/dist/ssg-utils/index.mjs.map +1 -0
- package/dist/{types-Cn52sdoq.d.mts → types-B-V5qemH.d.mts} +1 -1
- package/dist/{types-Cn52sdoq.d.mts.map → types-B-V5qemH.d.mts.map} +1 -1
- package/dist/vite/index.d.mts +69 -34
- package/dist/vite/index.d.mts.map +1 -1
- package/dist/vite/index.mjs +294 -226
- package/dist/vite/index.mjs.map +1 -1
- package/docs/agents/AGENTS.md.template +9 -0
- package/docs/agents/changelog-notes.md +15 -0
- package/docs/agents/errors.md +96 -0
- package/docs/agents/migration.md +25 -0
- package/docs/agents/recipes.md +26 -0
- package/docs/agents/usage.md +58 -0
- package/docs/llms-full.txt +53 -0
- package/docs/llms.txt +29 -0
- package/package.json +56 -4
- package/dist/assets-DXiWF_KI.mjs.map +0 -1
- package/dist/content-layer-DPK1EmfY.mjs.map +0 -1
- package/dist/index-CbOKbkjJ.d.mts.map +0 -1
package/README.md
CHANGED
|
@@ -29,6 +29,8 @@ const rendered = await entries[0]?.render()
|
|
|
29
29
|
// rendered.html, rendered.headings, rendered.readTime
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
+
For pre-1.0 upgrade notes, see `docs/agents/migration.md`.
|
|
33
|
+
|
|
32
34
|
### Vite Integration
|
|
33
35
|
|
|
34
36
|
```ts
|
|
@@ -147,11 +149,12 @@ The pipeline is built with unified and processes markdown through these stages:
|
|
|
147
149
|
```
|
|
148
150
|
remark-parse → remark-gfm → remark-math → remark-frontmatter
|
|
149
151
|
→ remark-github-alerts → remark-smartypants → [user remark plugins]
|
|
150
|
-
→ remark-rehype
|
|
152
|
+
→ lang-alias transform → remark-rehype
|
|
153
|
+
→ rehype-mathjax (must run before Expressive Code)
|
|
151
154
|
→ rehype-expressive-code (syntax highlighting)
|
|
152
|
-
→ rehype-
|
|
153
|
-
→
|
|
154
|
-
→
|
|
155
|
+
→ rehype-slug → rehype-autolink-headings
|
|
156
|
+
→ rehype-external-links → rehype-accessible-emojis
|
|
157
|
+
→ heading extraction → [user rehype plugins] → rehype-stringify
|
|
155
158
|
```
|
|
156
159
|
|
|
157
160
|
### Markdown Features
|
|
@@ -474,7 +477,9 @@ Generates: `CLAUDE.md`, `AGENTS.md`, `GEMINI.md`, skills, `llms.txt`, `llms-full
|
|
|
474
477
|
| `@pagesmith/core/runtime` | Pre-built CSS/JS accessors |
|
|
475
478
|
| `@pagesmith/core/ai` | AI assistant artifact generator |
|
|
476
479
|
| `@pagesmith/core/vite` | Vite plugins (pagesmithContent, pagesmithSsg, sharedAssetsPlugin) |
|
|
480
|
+
| `@pagesmith/core/ssg-utils` | Shared SSG utility helpers |
|
|
477
481
|
| `@pagesmith/core/create` | Project scaffolding utilities |
|
|
482
|
+
| `@pagesmith/core/mcp` | Core MCP server and helper utilities |
|
|
478
483
|
|
|
479
484
|
## License
|
|
480
485
|
|
package/REFERENCE.md
CHANGED
|
@@ -158,9 +158,10 @@ Serves shared font assets (Open Sans, JetBrains Mono) bundled with `@pagesmith/c
|
|
|
158
158
|
```
|
|
159
159
|
remark-parse → remark-gfm → remark-math → remark-frontmatter
|
|
160
160
|
→ remark-github-alerts → remark-smartypants → [user remark plugins]
|
|
161
|
-
→ remark-rehype
|
|
161
|
+
→ lang-alias transform → remark-rehype
|
|
162
|
+
→ rehype-mathjax (must run before Expressive Code so math is rendered to SVG first)
|
|
162
163
|
→ rehype-expressive-code (dual themes, line numbers, titles, copy, collapse, mark/ins/del)
|
|
163
|
-
→ rehype-
|
|
164
|
+
→ rehype-slug → rehype-autolink-headings
|
|
164
165
|
→ rehype-external-links → rehype-accessible-emojis
|
|
165
166
|
→ heading extraction → [user rehype plugins] → rehype-stringify
|
|
166
167
|
```
|
|
@@ -267,8 +268,10 @@ Two tiers:
|
|
|
267
268
|
| `@pagesmith/core/assets` | Asset copying and hashing |
|
|
268
269
|
| `@pagesmith/core/runtime` | Pre-built CSS/JS accessors |
|
|
269
270
|
| `@pagesmith/core/vite` | Vite plugins |
|
|
271
|
+
| `@pagesmith/core/ssg-utils` | Shared SSG utility helpers |
|
|
270
272
|
| `@pagesmith/core/ai` | AI assistant artifact generator |
|
|
271
273
|
| `@pagesmith/core/create` | Project scaffolding |
|
|
274
|
+
| `@pagesmith/core/mcp` | Core MCP server and helper utilities |
|
|
272
275
|
|
|
273
276
|
## Key Rules
|
|
274
277
|
|
package/dist/ai/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
//#region src/ai/
|
|
1
|
+
//#region src/ai/types.d.ts
|
|
2
2
|
type AiAssistant = 'claude' | 'codex' | 'gemini';
|
|
3
3
|
type AiInstallScope = 'project' | 'user';
|
|
4
4
|
type AiInstallProfile = 'default' | 'docs';
|
|
5
|
-
type AiArtifactKind = 'memory' | 'skill' | 'llms' | 'llms-full' | 'markdown-guidelines' | 'update-docs';
|
|
5
|
+
type AiArtifactKind = 'memory' | 'skill' | 'llms' | 'llms-full' | 'markdown-guidelines' | 'update-docs' | 'update-all-docs';
|
|
6
6
|
type AiWriteMode = 'merge' | 'replace';
|
|
7
7
|
type AiInstallStatus = 'written' | 'merged' | 'replaced' | 'unchanged';
|
|
8
8
|
type AiArtifact = {
|
|
@@ -31,6 +31,8 @@ type AiInstallOptions = {
|
|
|
31
31
|
skillName?: string; /** When true, return planned writes without actually writing files. */
|
|
32
32
|
dryRun?: boolean;
|
|
33
33
|
};
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region src/ai/index.d.ts
|
|
34
36
|
declare function getAiArtifactContent(assistant: AiAssistant | 'shared', kind: AiArtifactKind, options?: {
|
|
35
37
|
profile?: AiInstallProfile;
|
|
36
38
|
skillName?: string;
|
|
@@ -38,5 +40,5 @@ declare function getAiArtifactContent(assistant: AiAssistant | 'shared', kind: A
|
|
|
38
40
|
declare function getAiArtifacts(options?: AiInstallOptions): AiArtifact[];
|
|
39
41
|
declare function installAiArtifacts(options?: AiInstallOptions): AiInstallResult[];
|
|
40
42
|
//#endregion
|
|
41
|
-
export { AiArtifact, AiArtifactKind, AiAssistant, AiInstallOptions, AiInstallProfile, AiInstallResult, AiInstallScope, AiInstallStatus, AiWriteMode, getAiArtifactContent, getAiArtifacts, installAiArtifacts };
|
|
43
|
+
export { type AiArtifact, type AiArtifactKind, type AiAssistant, type AiInstallOptions, type AiInstallProfile, type AiInstallResult, type AiInstallScope, type AiInstallStatus, type AiWriteMode, getAiArtifactContent, getAiArtifacts, installAiArtifacts };
|
|
42
44
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/ai/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/ai/index.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/ai/types.ts","../../src/ai/index.ts"],"mappings":";KAAY,WAAA;AAAA,KACA,cAAA;AAAA,KACA,gBAAA;AAAA,KACA,cAAA;AAAA,KAQA,WAAA;AAAA,KACA,eAAA;AAAA,KAEA,UAAA;EACV,SAAA,GAAY,WAAA;EACZ,IAAA,EAAM,cAAA;EACN,IAAA;EACA,OAAA;EACA,IAAA,EAAM,WAAA;EACN,KAAA;AAAA;AAAA,KAGU,eAAA;EACV,SAAA,GAAY,WAAA;EACZ,IAAA,EAAM,cAAA;EACN,IAAA;EACA,MAAA,EAAQ,eAAA;EACR,KAAA;AAAA;AAAA,KAGU,gBAAA;EACV,UAAA,GAAa,WAAA;EACb,KAAA,GAAQ,cAAA;EACR,OAAA,GAAU,gBAAA;EACV,GAAA;EACA,OAAA;EACA,WAAA;EACA,KAAA;EACA,SAAA,WA3ByB;EA6BzB,MAAA;AAAA;;;iBCwBc,oBAAA,CACd,SAAA,EAAW,WAAA,aACX,IAAA,EAAM,cAAA,EACN,OAAA;EAAW,OAAA,GAAU,gBAAA;EAAkB,SAAA;AAAA;AAAA,iBA0CzB,cAAA,CAAe,OAAA,GAAS,gBAAA,GAAwB,UAAA;AAAA,iBAyIhD,kBAAA,CAAmB,OAAA,GAAS,gBAAA,GAAwB,eAAA"}
|