mikser-io 9.63.0 → 9.64.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/CLAUDE.md +7 -0
- package/package.json +1 -1
- package/src/routes.js +15 -0
package/CLAUDE.md
CHANGED
|
@@ -423,6 +423,13 @@ Test coverage: `test/unit/source-sweep.test.js`.
|
|
|
423
423
|
camelCase: `import { vector } from 'mikser-io-vector'`,
|
|
424
424
|
`import { renderHbs } from 'mikser-io'`. Consumer uses
|
|
425
425
|
`plugins: [vector({...})]` — never the bare string.
|
|
426
|
+
- **Route paths**: a plugin mounts at `/<name>`, with a `base` or `path`
|
|
427
|
+
option to move it — api `/api`, auth `/auth`, drive `/drive`, forms
|
|
428
|
+
`/forms`, mcp `/mcp`, preview `/preview`, vector `/vector`, decap
|
|
429
|
+
`/admin`. The output folder is served from `/`, so a route CAN shadow a
|
|
430
|
+
page; the accepted answer is a predictable name plus a way to change
|
|
431
|
+
it, not a reserved prefix. Follow the eight, do not invent a ninth
|
|
432
|
+
shape.
|
|
426
433
|
- **Tool names**: the registry (`src/tools.js`) holds BARE names —
|
|
427
434
|
`explain`, `verify`, `sources`, `search`. The `mikser_` prefix is MCP's
|
|
428
435
|
namespacing, because its tool names are flat across every connected
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mikser-io",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.64.0",
|
|
4
4
|
"description": "A mixer for content: entities in, configurable render pipelines, outputs of any kind. Static sites are the canonical recipe, not the definition — the same engine renders PDFs, emails and whatever a renderer plugin produces. Files are the source of truth, every lifecycle phase is observable, and the build graph is queryable by an agent.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"exports": {
|
package/src/routes.js
CHANGED
|
@@ -79,6 +79,21 @@ export function routeLocation(displayPath) {
|
|
|
79
79
|
// authLabel bracketed reachability text override for the log.
|
|
80
80
|
//
|
|
81
81
|
// Returns the recorded descriptor.
|
|
82
|
+
// WHERE a plugin mounts: `/<name>`, overridable.
|
|
83
|
+
//
|
|
84
|
+
// Not a new rule — the one every plugin already follows. api at /api, auth at
|
|
85
|
+
// /auth, drive at /drive, forms at /forms, mcp at /mcp, preview at /preview,
|
|
86
|
+
// vector at /vector, decap at /admin. Each takes a `base` or `path` option so
|
|
87
|
+
// a project whose content wants that path can move it.
|
|
88
|
+
//
|
|
89
|
+
// The output folder is served from `/`, so a plugin route can shadow a page.
|
|
90
|
+
// That is a real cost and this is the accepted answer to it: a predictable
|
|
91
|
+
// name, and a way to change it. A reserved prefix like `/$name` would make
|
|
92
|
+
// the collision impossible, and would also make this plugin the only one
|
|
93
|
+
// shaped differently from the other eight — which is a worse trade than the
|
|
94
|
+
// collision it avoids, because the collision is rare and visible and the
|
|
95
|
+
// inconsistency is permanent.
|
|
96
|
+
//
|
|
82
97
|
export function registerRoute({
|
|
83
98
|
path,
|
|
84
99
|
plugin,
|