@safekb/mcp 0.14.0 → 0.14.1
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/safekb-mcp.js +12 -8
- package/package.json +1 -1
package/dist/safekb-mcp.js
CHANGED
|
@@ -2581,7 +2581,7 @@ import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"
|
|
|
2581
2581
|
// package.json
|
|
2582
2582
|
var package_default = {
|
|
2583
2583
|
name: "@safekb/mcp",
|
|
2584
|
-
version: "0.14.
|
|
2584
|
+
version: "0.14.1",
|
|
2585
2585
|
description: "SafeKB local MCP client: proxies the hosted SafeKB tools and adds zero-knowledge sealed documents.",
|
|
2586
2586
|
license: "SEE LICENSE IN LICENSE",
|
|
2587
2587
|
author: "Mustafa Öztürk",
|
|
@@ -34531,12 +34531,16 @@ function defaultSidecarSocket(configPath) {
|
|
|
34531
34531
|
// src/sidecar/client.ts
|
|
34532
34532
|
var SIDECAR_PROMPT_TIMEOUT_MS = 5 * 60 * 1000;
|
|
34533
34533
|
var SIDECAR_QUICK_TIMEOUT_MS = 3000;
|
|
34534
|
-
var
|
|
34535
|
-
|
|
34536
|
-
|
|
34537
|
-
|
|
34538
|
-
|
|
34539
|
-
|
|
34534
|
+
var WAITS_FOR_USER = {
|
|
34535
|
+
holds: false,
|
|
34536
|
+
lookup: true,
|
|
34537
|
+
new: true,
|
|
34538
|
+
discard: false,
|
|
34539
|
+
settle: false,
|
|
34540
|
+
passphrase: true,
|
|
34541
|
+
secret: true,
|
|
34542
|
+
confirm: true
|
|
34543
|
+
};
|
|
34540
34544
|
var NOT_RUNNING_CODES = new Set(["ENOENT", "ECONNREFUSED"]);
|
|
34541
34545
|
|
|
34542
34546
|
class SidecarNotRunningError extends ClientError {
|
|
@@ -34576,7 +34580,7 @@ class SidecarClient {
|
|
|
34576
34580
|
this.quickTimeoutMs = quickTimeoutMs;
|
|
34577
34581
|
}
|
|
34578
34582
|
async request(request) {
|
|
34579
|
-
const text2 = await send(this.socketPath, request,
|
|
34583
|
+
const text2 = await send(this.socketPath, request, WAITS_FOR_USER[request.op] ? this.promptTimeoutMs : this.quickTimeoutMs);
|
|
34580
34584
|
let response;
|
|
34581
34585
|
try {
|
|
34582
34586
|
response = JSON.parse(text2);
|
package/package.json
CHANGED