contentbase 0.0.4 → 0.0.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/package.json +3 -2
- package/.mcp.json +0 -9
- package/MCP-DESCRIPTIONS-REVIEW.md +0 -122
- package/bun.lock +0 -512
- package/dist/cnotes +0 -0
- package/examples/sdlc-queries.ts +0 -161
- package/public/web-demo/index.html +0 -813
- package/scripts/examples/01-collection-setup.ts +0 -46
- package/scripts/examples/02-querying.ts +0 -67
- package/scripts/examples/03-sections.ts +0 -36
- package/scripts/examples/04-relationships.ts +0 -54
- package/scripts/examples/05-document-api.ts +0 -54
- package/scripts/examples/06-extract-sections.ts +0 -55
- package/scripts/examples/07-validation.ts +0 -46
- package/scripts/examples/08-serialization.ts +0 -51
- package/scripts/examples/lib/format.ts +0 -87
- package/scripts/examples/lib/setup.ts +0 -21
- package/scripts/examples/run-all.ts +0 -43
- package/showcases/national-parks/models.ts +0 -74
- package/showcases/national-parks/parks/acadia.mdx +0 -40
- package/showcases/national-parks/parks/yosemite.mdx +0 -44
- package/showcases/national-parks/parks/zion.mdx +0 -44
- package/showcases/national-parks/queries.ts +0 -103
- package/showcases/national-parks/trails/angels-landing.mdx +0 -19
- package/showcases/national-parks/trails/cathedral-lakes.mdx +0 -19
- package/showcases/national-parks/trails/half-dome.mdx +0 -19
- package/showcases/national-parks/trails/jordan-pond-path.mdx +0 -19
- package/showcases/national-parks/trails/mist-trail.mdx +0 -19
- package/showcases/national-parks/trails/observation-point.mdx +0 -19
- package/showcases/national-parks/trails/precipice-trail.mdx +0 -19
- package/showcases/national-parks/trails/the-narrows.mdx +0 -19
- package/showcases/node_modules/.cache/.repl_history +0 -3
- package/showcases/recipes/cuisines/chinese.mdx +0 -28
- package/showcases/recipes/cuisines/italian.mdx +0 -32
- package/showcases/recipes/cuisines/mexican.mdx +0 -28
- package/showcases/recipes/models.ts +0 -77
- package/showcases/recipes/queries.ts +0 -89
- package/showcases/recipes/recipes/chinese/egg-fried-rice.mdx +0 -43
- package/showcases/recipes/recipes/chinese/mapo-tofu.mdx +0 -47
- package/showcases/recipes/recipes/italian/bruschetta.mdx +0 -38
- package/showcases/recipes/recipes/italian/cacio-e-pepe.mdx +0 -39
- package/showcases/recipes/recipes/italian/tiramisu.mdx +0 -43
- package/showcases/recipes/recipes/mexican/chicken-tinga.mdx +0 -44
- package/showcases/recipes/recipes/mexican/guacamole.mdx +0 -39
- package/showcases/vinyl-collection/albums/bitches-brew.mdx +0 -36
- package/showcases/vinyl-collection/albums/i-put-a-spell-on-you.mdx +0 -35
- package/showcases/vinyl-collection/albums/in-rainbows.mdx +0 -35
- package/showcases/vinyl-collection/albums/kind-of-blue.mdx +0 -32
- package/showcases/vinyl-collection/albums/ok-computer.mdx +0 -37
- package/showcases/vinyl-collection/albums/wild-is-the-wind.mdx +0 -35
- package/showcases/vinyl-collection/artists/miles-davis.mdx +0 -27
- package/showcases/vinyl-collection/artists/nina-simone.mdx +0 -26
- package/showcases/vinyl-collection/artists/radiohead.mdx +0 -27
- package/showcases/vinyl-collection/models.ts +0 -73
- package/showcases/vinyl-collection/queries.ts +0 -87
- package/src/__tests__/semantic-search.integration.test.ts +0 -284
- package/test/ast-query.test.ts +0 -128
- package/test/collection.test.ts +0 -215
- package/test/define-model.test.ts +0 -78
- package/test/document.test.ts +0 -225
- package/test/extract-sections.test.ts +0 -356
- package/test/fixtures/sdlc/MODELS.md +0 -106
- package/test/fixtures/sdlc/SKILL.md +0 -404
- package/test/fixtures/sdlc/epics/authentication.mdx +0 -42
- package/test/fixtures/sdlc/epics/searching-and-browsing.mdx +0 -21
- package/test/fixtures/sdlc/index.ts +0 -9
- package/test/fixtures/sdlc/models.ts +0 -91
- package/test/fixtures/sdlc/stories/authentication/a-user-should-be-able-to-login.mdx +0 -20
- package/test/fixtures/sdlc/stories/authentication/a-user-should-be-able-to-register.mdx +0 -20
- package/test/fixtures/sdlc/templates/epic.md +0 -23
- package/test/fixtures/sdlc/templates/story.md +0 -19
- package/test/helpers.ts +0 -21
- package/test/model-instance.test.ts +0 -197
- package/test/pattern.test.ts +0 -191
- package/test/query-dsl.test.ts +0 -431
- package/test/query.test.ts +0 -196
- package/test/relationships.test.ts +0 -214
- package/test/section.test.ts +0 -160
- package/test/table-of-contents.test.ts +0 -135
- package/test/validator.test.ts +0 -62
- package/tsconfig.json +0 -18
- package/vitest.config.ts +0 -11
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contentbase",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
|
+
"website": "https://contentbase.soederpop.com",
|
|
4
5
|
"type": "module",
|
|
5
6
|
"main": "./src/index.ts",
|
|
6
7
|
"types": "./src/index.ts",
|
|
@@ -16,7 +17,7 @@
|
|
|
16
17
|
"compile": "bun build ./src/cli/index.ts --compile --outfile dist/cnotes --external @node-llama-cpp/*"
|
|
17
18
|
},
|
|
18
19
|
"dependencies": {
|
|
19
|
-
"@soederpop/luca": "^0.0.
|
|
20
|
+
"@soederpop/luca": "^0.0.5",
|
|
20
21
|
"gray-matter": "^4.0.3",
|
|
21
22
|
"js-yaml": "^4.1.0",
|
|
22
23
|
"mdast-util-mdxjs-esm": "^2.0.1",
|
package/.mcp.json
DELETED
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
# MCP Tool & Resource Descriptions Review
|
|
2
|
-
|
|
3
|
-
Edit the descriptions below. I'll incorporate your changes back into `src/cli/commands/mcp.ts`.
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## Tools
|
|
8
|
-
|
|
9
|
-
### `read_me`
|
|
10
|
-
```
|
|
11
|
-
Returns the content collection guide. Call this BEFORE working with any documents.
|
|
12
|
-
Contains model definitions, available tools, query syntax, and recommended workflow.
|
|
13
|
-
Call this at the start of every session to understand the collection structure.
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
### `inspect`
|
|
17
|
-
```
|
|
18
|
-
Overview of the collection — registered models, document count, available actions. Call `read_me` first if this is your first interaction.
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
### `get_model_info`
|
|
22
|
-
```
|
|
23
|
-
Get detailed information about a single model — fields, sections, relationships, example document. Use when you need to understand a model before creating or editing its documents.
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
### `list_documents`
|
|
27
|
-
```
|
|
28
|
-
List all document path IDs in the collection, optionally filtered by model name or prefix. The prefix before the slash indicates the model.
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
### `query`
|
|
32
|
-
```
|
|
33
|
-
Query typed model instances with MongoDB-style filtering. See `read_me` output for full syntax reference. Where clause: keys are dot-notation paths, values are literals (implies $eq), arrays (implies $in), or operator objects like { "$gt": 5 }. Operators: $eq, $neq, $in, $notIn, $gt, $lt, $gte, $lte, $contains, $startsWith, $endsWith, $regex, $exists. Supports sort, limit, offset, select, and method (fetchAll/first/last/count).
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
### `search_content`
|
|
37
|
-
```
|
|
38
|
-
Full-text regex search across all document content. Returns matching document IDs with context. Searches document body text, not metadata — for metadata filtering, use `query` instead.
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
### `text_search`
|
|
42
|
-
```
|
|
43
|
-
Search file contents with pattern matching using ripgrep. Returns distinct file matches by default, or line-level detail with expanded=true.
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
### `validate`
|
|
47
|
-
```
|
|
48
|
-
Validate a document against its model schema. Returns validation result with any errors. **ALWAYS call after create/update operations** to confirm the document conforms to its model.
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
### `create_document`
|
|
52
|
-
```
|
|
53
|
-
**ALWAYS use this instead of writing markdown files directly.** Creates a new document with proper scaffolding from a model definition — generates correct frontmatter defaults and section headings. Call `validate` after creation.
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
### `update_document`
|
|
57
|
-
```
|
|
58
|
-
Update a document's frontmatter and/or replace its entire content body. Use for frontmatter changes. For section-level edits, prefer `update_section` instead. Call `validate` after.
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
### `update_section`
|
|
62
|
-
```
|
|
63
|
-
Preferred way to edit document content. Surgically edit a specific section — replace, append, or remove. Target a section by its heading name. Call `validate` after.
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
### `delete_document`
|
|
67
|
-
```
|
|
68
|
-
Delete a document from the collection permanently. Cannot be undone except through version control.
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
### `run_action`
|
|
72
|
-
```
|
|
73
|
-
Execute a registered collection action by name.
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
---
|
|
77
|
-
|
|
78
|
-
## Resources
|
|
79
|
-
|
|
80
|
-
### `contentbase://schema`
|
|
81
|
-
```
|
|
82
|
-
JSON schema of all registered models — fields, sections, relationships, computed properties
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
### `contentbase://toc`
|
|
86
|
-
```
|
|
87
|
-
Markdown table of contents for all documents in the collection
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
### `contentbase://models-summary`
|
|
91
|
-
```
|
|
92
|
-
Generated MODELS.md describing all model definitions with attributes, sections, and relationships
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
### `contentbase://primer`
|
|
96
|
-
```
|
|
97
|
-
Combined teach output — models summary, table of contents, CLI reference, and API primer
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
---
|
|
101
|
-
|
|
102
|
-
## Prompts
|
|
103
|
-
|
|
104
|
-
### `create-{model}` (per-model)
|
|
105
|
-
```
|
|
106
|
-
Guide creation of a new {Model} document with proper schema and sections
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
### `review-document`
|
|
110
|
-
```
|
|
111
|
-
Fetch a document, run validation, and present it for review
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
### `teach`
|
|
115
|
-
```
|
|
116
|
-
Full contentbase documentation — models, table of contents, CLI reference, and API primer. For a quick-start behavioral guide, use the `read_me` tool instead.
|
|
117
|
-
```
|
|
118
|
-
|
|
119
|
-
### `query-guide`
|
|
120
|
-
```
|
|
121
|
-
Show available models, fields, and query operators to help build queries
|
|
122
|
-
```
|