@memoraone/mcp 0.1.50 → 0.1.52
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/cli.cjs +36 -2
- package/dist/daemon.cjs +9179 -180
- package/dist/index.cjs +9244 -192
- package/package.json +1 -1
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.
|
|
234
|
+
version: "0.1.52",
|
|
235
235
|
type: "module",
|
|
236
236
|
main: "dist/index.cjs",
|
|
237
237
|
exports: {
|
|
@@ -13432,6 +13432,18 @@ var init_bridgeClientRoots = __esm({
|
|
|
13432
13432
|
});
|
|
13433
13433
|
|
|
13434
13434
|
// src/pluginStartupBindingWait.ts
|
|
13435
|
+
function isPluginStartupSetupRequired(value) {
|
|
13436
|
+
return typeof value === "object" && value !== null && !Array.isArray(value) && value.status === "setup_required" && !(value instanceof Error);
|
|
13437
|
+
}
|
|
13438
|
+
function toPluginStartupSetupRequired(err, gate = {}) {
|
|
13439
|
+
if (!shouldWaitForPluginStartupBinding(gate)) {
|
|
13440
|
+
return null;
|
|
13441
|
+
}
|
|
13442
|
+
if (!isUnboundPluginStartupBindingMessage(errorMessage(err))) {
|
|
13443
|
+
return null;
|
|
13444
|
+
}
|
|
13445
|
+
return PLUGIN_STARTUP_SETUP_REQUIRED;
|
|
13446
|
+
}
|
|
13435
13447
|
function errorMessage(err) {
|
|
13436
13448
|
return err instanceof Error ? err.message : String(err);
|
|
13437
13449
|
}
|
|
@@ -13546,7 +13558,23 @@ async function waitForPluginStartupBinding(resolve44, options = {}) {
|
|
|
13546
13558
|
if (!retryable) {
|
|
13547
13559
|
throw err;
|
|
13548
13560
|
}
|
|
13561
|
+
if (isUnboundPluginStartupBindingMessage(errorMessage(err)) && !await pendingBindingWindowOpen(options.isPendingBinding)) {
|
|
13562
|
+
const setupRequired = toPluginStartupSetupRequired(err, {
|
|
13563
|
+
env: options.env,
|
|
13564
|
+
daemonBindingHint: options.daemonBindingHint
|
|
13565
|
+
});
|
|
13566
|
+
if (setupRequired) {
|
|
13567
|
+
return setupRequired;
|
|
13568
|
+
}
|
|
13569
|
+
}
|
|
13549
13570
|
if (now() - startedAt >= timeoutMs) {
|
|
13571
|
+
const setupRequired = toPluginStartupSetupRequired(lastError, {
|
|
13572
|
+
env: options.env,
|
|
13573
|
+
daemonBindingHint: options.daemonBindingHint
|
|
13574
|
+
});
|
|
13575
|
+
if (setupRequired) {
|
|
13576
|
+
return setupRequired;
|
|
13577
|
+
}
|
|
13550
13578
|
throw lastError;
|
|
13551
13579
|
}
|
|
13552
13580
|
if (!waitingLogged) {
|
|
@@ -13559,7 +13587,7 @@ async function waitForPluginStartupBinding(resolve44, options = {}) {
|
|
|
13559
13587
|
}
|
|
13560
13588
|
}
|
|
13561
13589
|
}
|
|
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;
|
|
13590
|
+
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
13591
|
var init_pluginStartupBindingWait = __esm({
|
|
13564
13592
|
"src/pluginStartupBindingWait.ts"() {
|
|
13565
13593
|
path47 = __toESM(require("path"), 1);
|
|
@@ -13575,6 +13603,9 @@ var init_pluginStartupBindingWait = __esm({
|
|
|
13575
13603
|
"No local binding for workspace"
|
|
13576
13604
|
];
|
|
13577
13605
|
CREDENTIALS_MISSING_MARKER = "Installation credentials missing";
|
|
13606
|
+
PLUGIN_STARTUP_SETUP_REQUIRED = {
|
|
13607
|
+
status: "setup_required"
|
|
13608
|
+
};
|
|
13578
13609
|
}
|
|
13579
13610
|
});
|
|
13580
13611
|
|
|
@@ -14083,6 +14114,9 @@ var init_bridgeProxy = __esm({
|
|
|
14083
14114
|
),
|
|
14084
14115
|
log: this.log
|
|
14085
14116
|
}) : await resolveBinding();
|
|
14117
|
+
if (isPluginStartupSetupRequired(binding)) {
|
|
14118
|
+
return;
|
|
14119
|
+
}
|
|
14086
14120
|
const environmentLog = binding.environment !== void 0 ? ` environment=${binding.environment}` : "";
|
|
14087
14121
|
this.log(
|
|
14088
14122
|
`session binding binding=${binding.repositoryBindingId} project=${binding.projectId} workspace=${binding.workspaceRoot} source=${binding.bindingSource}${environmentLog}`
|