@appsoftwareltd/etherpk-mcp 0.16.0 → 0.18.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 +3 -2
- package/dist/main.js +2689 -1222
- package/dist/main.js.map +1 -1
- package/dist/map-picture-page.js +5 -13
- package/package.json +10 -10
package/dist/map-picture-page.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Map as e, setWorkerUrl as t } from "maplibre-gl";
|
|
2
|
-
|
|
2
|
+
// ../client/src/lib/document/map-text.ts
|
|
3
3
|
var n = String.raw`[+-]?(?:\d+(?:\.\d*)?|\.\d+)`, r = new RegExp(String.raw`^\s*(${n})\s*,\s*(${n})\s*$`), i = 16;
|
|
4
4
|
function a(e) {
|
|
5
5
|
let t = r.exec(e);
|
|
@@ -60,8 +60,7 @@ function c(e) {
|
|
|
60
60
|
});
|
|
61
61
|
}), t;
|
|
62
62
|
}
|
|
63
|
-
|
|
64
|
-
//#region ../../extensions/maps/src/attribution-text.ts
|
|
63
|
+
// ../../extensions/maps/src/attribution-text.ts
|
|
65
64
|
function l(e) {
|
|
66
65
|
return e.replace(/<!--[\s\S]*?-->/g, "").replace(/<\/?[a-zA-Z][^>]*>/g, "").replace(/&(#x[0-9a-fA-F]+|#[0-9]+|[a-zA-Z]+);/g, (e, t) => d(t) ?? e).replace(/\s+/g, " ").trim();
|
|
67
66
|
}
|
|
@@ -82,8 +81,7 @@ function d(e) {
|
|
|
82
81
|
}
|
|
83
82
|
return u[e];
|
|
84
83
|
}
|
|
85
|
-
|
|
86
|
-
//#region ../../extensions/maps/src/map-drawing.ts
|
|
84
|
+
// ../../extensions/maps/src/map-drawing.ts
|
|
87
85
|
var f = {
|
|
88
86
|
center: [0, 20],
|
|
89
87
|
zoom: .8
|
|
@@ -143,8 +141,7 @@ function g(e) {
|
|
|
143
141
|
}]
|
|
144
142
|
};
|
|
145
143
|
}
|
|
146
|
-
|
|
147
|
-
//#region ../../extensions/maps/src/map-geometry.ts
|
|
144
|
+
// ../../extensions/maps/src/map-geometry.ts
|
|
148
145
|
function _(e) {
|
|
149
146
|
return e.kind === "place" ? [e.point] : e.points;
|
|
150
147
|
}
|
|
@@ -238,11 +235,7 @@ function L(e) {
|
|
|
238
235
|
let r = 0, i = setTimeout(() => n(/* @__PURE__ */ Error("the map took too long to draw. Keep EtherPK's tab in front while it publishes, then try again")), x);
|
|
239
236
|
e.on("error", (e) => {
|
|
240
237
|
let t = e;
|
|
241
|
-
|
|
242
|
-
r++;
|
|
243
|
-
return;
|
|
244
|
-
}
|
|
245
|
-
clearTimeout(i), n(/* @__PURE__ */ Error("the map's style couldn't be loaded"));
|
|
238
|
+
t.tile !== void 0 || t.sourceId !== void 0 ? r++ : (clearTimeout(i), n(/* @__PURE__ */ Error("the map's style couldn't be loaded")));
|
|
246
239
|
}), e.once("idle", () => {
|
|
247
240
|
clearTimeout(i), r > 0 ? n(/* @__PURE__ */ Error("some of the map's tiles didn't load. Check your connection, then try again")) : t();
|
|
248
241
|
});
|
|
@@ -325,4 +318,3 @@ async function R(t, n) {
|
|
|
325
318
|
}
|
|
326
319
|
}
|
|
327
320
|
t(new URL("/maplibre-gl-worker.mjs", location.href).toString()), window.etherpkDrawMapPicture = R;
|
|
328
|
-
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appsoftwareltd/etherpk-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"license": "Elastic-2.0",
|
|
5
5
|
"description": "EtherPK Headless Client: an MCP server over a synced knowledge graph, run beside the agent on the user's own machine.",
|
|
6
6
|
"type": "module",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"@huggingface/tokenizers": "0.2.0",
|
|
19
19
|
"@lezer/highlight": "^1.2.3",
|
|
20
20
|
"@lezer/markdown": "^1.6.4",
|
|
21
|
-
"@modelcontextprotocol/sdk": "1.
|
|
21
|
+
"@modelcontextprotocol/sdk": "1.32.0",
|
|
22
22
|
"@noble/curves": "2.2.0",
|
|
23
23
|
"@noble/hashes": "2.2.0",
|
|
24
24
|
"@sqlite.org/sqlite-wasm": "3.53.0-build1",
|
|
@@ -29,25 +29,25 @@
|
|
|
29
29
|
"katex": "^0.18.2",
|
|
30
30
|
"lib0": "0.2.117",
|
|
31
31
|
"maplibre-gl": "6.11.2",
|
|
32
|
-
"markdown-it": "15.0.
|
|
32
|
+
"markdown-it": "15.0.3",
|
|
33
33
|
"mermaid": "^11.16.1",
|
|
34
34
|
"mustache": "4.2.0",
|
|
35
35
|
"playwright-core": "1.59.1",
|
|
36
36
|
"y-protocols": "1.0.7",
|
|
37
37
|
"yaml": "^2.9.0",
|
|
38
38
|
"yjs": "13.6.31",
|
|
39
|
-
"zod": "^4.
|
|
39
|
+
"zod": "^4.6.7"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@codemirror/view": "^6.43.0",
|
|
43
43
|
"@types/node": "^25.6.0",
|
|
44
44
|
"typescript": "^6.0.2",
|
|
45
|
-
"vite": "^8.
|
|
46
|
-
"vitest": "^4.1.
|
|
47
|
-
"@appsoftwareltd/etherpk-
|
|
48
|
-
"@appsoftwareltd/etherpk-
|
|
49
|
-
"@appsoftwareltd/etherpk-extension-
|
|
50
|
-
"@appsoftwareltd/etherpk-
|
|
45
|
+
"vite": "^8.3.3",
|
|
46
|
+
"vitest": "^4.1.12",
|
|
47
|
+
"@appsoftwareltd/etherpk-shared": "0.18.0",
|
|
48
|
+
"@appsoftwareltd/etherpk-themes": "0.18.0",
|
|
49
|
+
"@appsoftwareltd/etherpk-extension-maps": "0.18.0",
|
|
50
|
+
"@appsoftwareltd/etherpk-extension-graph-view": "0.18.0"
|
|
51
51
|
},
|
|
52
52
|
"publishConfig": {
|
|
53
53
|
"access": "public"
|