@realmag777/lynx 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +32 -2
- package/dist/index.d.mts +5 -0
- package/dist/index.mjs +1246 -0
- package/dist/manifest.json +1253 -0
- package/dist/plugin.d.mts +6 -0
- package/dist/plugin.mjs +4 -0
- package/emdash-plugin.jsonc +83 -0
- package/mcp-tools.frozen.json +973 -0
- package/package.json +60 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Rostislav Sofronov (https://realmag777.com)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,33 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @realmag777/lynx — LYNX core for EmDash
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The core of [LYNX](https://github.com/realmag777/lynx-emdash): a sandboxed EmDash plugin that
|
|
4
|
+
runs every content change as a job — find → preview → apply — recorded in history first, so any
|
|
5
|
+
job can be rolled back entry by entry. It serves the LYNX Grid, its own admin page and 17 MCP
|
|
6
|
+
tools for AI agents.
|
|
7
|
+
|
|
8
|
+
## Install
|
|
9
|
+
|
|
10
|
+
From the EmDash plugin registry (Admin → Plugins), or in `astro.config.mjs`:
|
|
11
|
+
|
|
12
|
+
```js
|
|
13
|
+
import lynx from "@realmag777/lynx";
|
|
14
|
+
|
|
15
|
+
export default defineConfig({
|
|
16
|
+
integrations: [emdash({ sandboxed: [lynx], sandboxRunner: "@emdash-cms/sandbox-workerd/sandbox" })],
|
|
17
|
+
});
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
On a host without a sandbox runner it can run in-process: `emdash({ plugins: [lynx] })`.
|
|
21
|
+
|
|
22
|
+
## AI agent (MCP)
|
|
23
|
+
|
|
24
|
+
1. Admin → Plugins → LYNX → switch on **Agent access**.
|
|
25
|
+
2. Settings → API tokens → a token with **Plugin tools: lynx** plus content read/write.
|
|
26
|
+
3. Point your MCP client at `https://your-site/_emdash/api/mcp` with `Authorization: Bearer <token>`.
|
|
27
|
+
|
|
28
|
+
The agent must show the count and the preview and wait for your yes before it applies anything;
|
|
29
|
+
`rollback_bulk` undoes a job.
|
|
30
|
+
|
|
31
|
+
Add the spreadsheet editor with [`@realmag777/lynx-grid`](https://www.npmjs.com/package/@realmag777/lynx-grid).
|
|
32
|
+
|
|
33
|
+
Made by Rostislav Sofronov (realmag777) — [realmag777.com](https://realmag777.com). MIT licence.
|