@memoraone/mcp 0.1.50 → 0.1.51

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.
Files changed (4) hide show
  1. package/dist/cli.cjs +30 -2
  2. package/dist/daemon.cjs +9179 -180
  3. package/dist/index.cjs +9244 -192
  4. package/package.json +10 -11
package/dist/cli.cjs CHANGED
@@ -231,7 +231,7 @@ var require_package = __commonJS({
231
231
  "package.json"(exports2, module2) {
232
232
  module2.exports = {
233
233
  name: "@memoraone/mcp",
234
- version: "0.1.50",
234
+ version: "0.1.51",
235
235
  type: "module",
236
236
  main: "dist/index.cjs",
237
237
  exports: {
@@ -13432,6 +13432,15 @@ var init_bridgeClientRoots = __esm({
13432
13432
  });
13433
13433
 
13434
13434
  // src/pluginStartupBindingWait.ts
13435
+ function toPluginStartupSetupRequired(err, gate = {}) {
13436
+ if (!shouldWaitForPluginStartupBinding(gate)) {
13437
+ return null;
13438
+ }
13439
+ if (!isUnboundPluginStartupBindingMessage(errorMessage(err))) {
13440
+ return null;
13441
+ }
13442
+ return PLUGIN_STARTUP_SETUP_REQUIRED;
13443
+ }
13435
13444
  function errorMessage(err) {
13436
13445
  return err instanceof Error ? err.message : String(err);
13437
13446
  }
@@ -13546,7 +13555,23 @@ async function waitForPluginStartupBinding(resolve44, options = {}) {
13546
13555
  if (!retryable) {
13547
13556
  throw err;
13548
13557
  }
13558
+ if (isUnboundPluginStartupBindingMessage(errorMessage(err)) && !await pendingBindingWindowOpen(options.isPendingBinding)) {
13559
+ const setupRequired = toPluginStartupSetupRequired(err, {
13560
+ env: options.env,
13561
+ daemonBindingHint: options.daemonBindingHint
13562
+ });
13563
+ if (setupRequired) {
13564
+ return setupRequired;
13565
+ }
13566
+ }
13549
13567
  if (now() - startedAt >= timeoutMs) {
13568
+ const setupRequired = toPluginStartupSetupRequired(lastError, {
13569
+ env: options.env,
13570
+ daemonBindingHint: options.daemonBindingHint
13571
+ });
13572
+ if (setupRequired) {
13573
+ return setupRequired;
13574
+ }
13550
13575
  throw lastError;
13551
13576
  }
13552
13577
  if (!waitingLogged) {
@@ -13559,7 +13584,7 @@ async function waitForPluginStartupBinding(resolve44, options = {}) {
13559
13584
  }
13560
13585
  }
13561
13586
  }
13562
- var path47, MEMORAONE_PLUGIN_ENV, MEMORAONE_CURSOR_PLUGIN, PLUGIN_STARTUP_BINDING_WAIT_TIMEOUT_MS, PLUGIN_STARTUP_BINDING_WAIT_INTERVAL_MS, UNBOUND_MESSAGE_MARKERS, CREDENTIALS_MISSING_MARKER;
13587
+ var path47, MEMORAONE_PLUGIN_ENV, MEMORAONE_CURSOR_PLUGIN, PLUGIN_STARTUP_BINDING_WAIT_TIMEOUT_MS, PLUGIN_STARTUP_BINDING_WAIT_INTERVAL_MS, UNBOUND_MESSAGE_MARKERS, CREDENTIALS_MISSING_MARKER, PLUGIN_STARTUP_SETUP_REQUIRED;
13563
13588
  var init_pluginStartupBindingWait = __esm({
13564
13589
  "src/pluginStartupBindingWait.ts"() {
13565
13590
  path47 = __toESM(require("path"), 1);
@@ -13575,6 +13600,9 @@ var init_pluginStartupBindingWait = __esm({
13575
13600
  "No local binding for workspace"
13576
13601
  ];
13577
13602
  CREDENTIALS_MISSING_MARKER = "Installation credentials missing";
13603
+ PLUGIN_STARTUP_SETUP_REQUIRED = {
13604
+ status: "setup_required"
13605
+ };
13578
13606
  }
13579
13607
  });
13580
13608