@theglitchking/semantic-pages 0.4.5 → 0.4.6
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 +6 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -506,12 +506,17 @@ src/
|
|
|
506
506
|
```
|
|
507
507
|
.md file → gray-matter (frontmatter) → remark (AST) → extract:
|
|
508
508
|
- title (frontmatter > first heading > filename)
|
|
509
|
+
- mtime (frontmatter last_updated/updated/date/lastmod → fs.stat mtime)
|
|
509
510
|
- wikilinks ([[note-name]])
|
|
510
511
|
- tags (frontmatter tags: + inline #tags)
|
|
511
512
|
- headers (H1-H6)
|
|
512
513
|
- plain text (markdown stripped)
|
|
513
514
|
```
|
|
514
515
|
|
|
516
|
+
**Frontmatter is optional.** Every note gets a modification timestamp regardless — resolved from frontmatter date fields if present, otherwise from the file's `fs.stat` mtime. When frontmatter fields like `status`, `tier`, `domains`, `load_priority`, or `purpose` are present, they're indexed and exposed through all search tools as filters and score boosters. Plain notes with no frontmatter work exactly as before.
|
|
517
|
+
|
|
518
|
+
If you want structured frontmatter with a full schema (22 fields, 15 domains, health scoring), [**hit-em-with-the-docs**](https://github.com/TheGlitchKing/hit-em-with-the-docs) is a companion tool that manages docs for Claude Code projects — its schema is natively understood by Semantic Pages.
|
|
519
|
+
|
|
515
520
|
#### Step 2: Chunk
|
|
516
521
|
```
|
|
517
522
|
Plain text → split at sentence boundaries → ~512 token chunks
|
|
@@ -599,6 +604,7 @@ const path = graph.findPath("overview.md", "auth.md");
|
|
|
599
604
|
Deep-dive guides are in [`.documentation/`](./.documentation/):
|
|
600
605
|
|
|
601
606
|
- [**How It Works**](./.documentation/how-it-works.md) — architecture, processing pipeline, index format, search mechanics
|
|
607
|
+
- [**Frontmatter Guide**](./.documentation/frontmatter-guide.md) — timestamps, load_priority boosting, status/tier/domain filters, hit-em-with-the-docs compatibility
|
|
602
608
|
- [**Performance Tuning**](./.documentation/performance-tuning.md) — model selection, batch size, workers, benchmarks
|
|
603
609
|
- [**Embedder Guide**](./.documentation/embedder-guide.md) — when/how to tune the embedder, model switching, cache management
|
|
604
610
|
- [**Troubleshooting**](./.documentation/troubleshooting.md) — common problems and fixes
|
package/package.json
CHANGED