@appsoftwareltd/etherpk-mcp 0.4.2 → 0.4.3

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/dist/main.js CHANGED
@@ -25,7 +25,7 @@ import { parse, stringify } from "yaml";
25
25
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
26
26
  var package_default = {
27
27
  name: "@appsoftwareltd/etherpk-mcp",
28
- version: "0.4.2",
28
+ version: "0.4.3",
29
29
  license: "Elastic-2.0",
30
30
  description: "EtherPK Headless Client: an MCP server over a synced knowledge graph, run beside the agent on the user's own machine.",
31
31
  type: "module",
@@ -5640,6 +5640,10 @@ function createGraphSync(deps) {
5640
5640
  for (const waiter of connectionWaiters) waiter.resolve();
5641
5641
  connectionWaiters.clear();
5642
5642
  subscribeRetained();
5643
+ if (deps.subscribeAll) sendNow({
5644
+ type: "subscribe",
5645
+ all: true
5646
+ });
5643
5647
  for (const data of outboundSnapshots.splice(0)) s.send(data);
5644
5648
  for (const docId of retained.keys()) {
5645
5649
  if (docId === deps.rootDocId) continue;
@@ -9019,6 +9023,7 @@ async function openHeadlessGraph(deps) {
9019
9023
  token: deps.token,
9020
9024
  cache,
9021
9025
  connect: deps.connect ?? nodeTransport,
9026
+ subscribeAll: true,
9022
9027
  collectRowWhen: (doc) => documentProtection(doc.getText("content").toString()).kind === "document",
9023
9028
  presence: {
9024
9029
  name: deps.presenceName,