@memoraone/mcp 0.1.55 → 0.1.57
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 +8 -4
- package/dist/daemon.cjs +7 -3
- package/dist/gateway.cjs +490 -221
- package/dist/index.cjs +7 -3
- package/dist/pluginPairing.cjs +7 -3
- 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.57",
|
|
235
235
|
type: "module",
|
|
236
236
|
main: "dist/index.cjs",
|
|
237
237
|
exports: {
|
|
@@ -769,6 +769,7 @@ function parsePayload(raw, repositoryBindingId) {
|
|
|
769
769
|
optionalString("refreshTokenExpiresAt");
|
|
770
770
|
optionalString("clientRedeemKey");
|
|
771
771
|
optionalString("clientRefreshKey");
|
|
772
|
+
optionalString("supabaseUserId");
|
|
772
773
|
return payload;
|
|
773
774
|
}
|
|
774
775
|
async function readInstallationCredentials(repositoryBindingId, options = {}) {
|
|
@@ -1226,7 +1227,8 @@ async function redeemLocalConnectCode(apiUrl, body, options = {}) {
|
|
|
1226
1227
|
const installationPublicId = data?.installation_public_id;
|
|
1227
1228
|
const projectId = data?.project_id;
|
|
1228
1229
|
const repositoryBindingId = data?.repository_binding_id;
|
|
1229
|
-
|
|
1230
|
+
const supabaseUserId = data?.supabase_user_id;
|
|
1231
|
+
if (typeof accessToken !== "string" || typeof refreshToken !== "string" || typeof installationPublicId !== "string" || typeof projectId !== "string" || typeof repositoryBindingId !== "string" || typeof supabaseUserId !== "string" || supabaseUserId.length === 0) {
|
|
1230
1232
|
throw new Error("[memoraone-mcp] Invalid redeem response");
|
|
1231
1233
|
}
|
|
1232
1234
|
let sourceId = null;
|
|
@@ -1244,7 +1246,8 @@ async function redeemLocalConnectCode(apiUrl, body, options = {}) {
|
|
|
1244
1246
|
project_id: projectId,
|
|
1245
1247
|
repository_binding_id: repositoryBindingId,
|
|
1246
1248
|
source_id: sourceId,
|
|
1247
|
-
recovered: Boolean(data.recovered)
|
|
1249
|
+
recovered: Boolean(data.recovered),
|
|
1250
|
+
supabase_user_id: supabaseUserId
|
|
1248
1251
|
};
|
|
1249
1252
|
}
|
|
1250
1253
|
var path8;
|
|
@@ -12339,7 +12342,8 @@ async function runConnectCommand(options) {
|
|
|
12339
12342
|
accessTokenExpiresAt: redeemed.access_token_expires_at ?? void 0,
|
|
12340
12343
|
refreshTokenExpiresAt: redeemed.refresh_token_expires_at ?? void 0,
|
|
12341
12344
|
installationPublicId: redeemed.installation_public_id,
|
|
12342
|
-
projectId: redeemed.project_id
|
|
12345
|
+
projectId: redeemed.project_id,
|
|
12346
|
+
supabaseUserId: redeemed.supabase_user_id
|
|
12343
12347
|
},
|
|
12344
12348
|
{ ...options.credentialOptions, clearKeys: ["clientRedeemKey"] }
|
|
12345
12349
|
);
|
package/dist/daemon.cjs
CHANGED
|
@@ -675,6 +675,7 @@ function parsePayload(raw, repositoryBindingId) {
|
|
|
675
675
|
optionalString("refreshTokenExpiresAt");
|
|
676
676
|
optionalString("clientRedeemKey");
|
|
677
677
|
optionalString("clientRefreshKey");
|
|
678
|
+
optionalString("supabaseUserId");
|
|
678
679
|
return payload;
|
|
679
680
|
}
|
|
680
681
|
async function readInstallationCredentials(repositoryBindingId, options = {}) {
|
|
@@ -1278,7 +1279,8 @@ async function redeemLocalConnectCode(apiUrl, body, options = {}) {
|
|
|
1278
1279
|
const installationPublicId = data?.installation_public_id;
|
|
1279
1280
|
const projectId = data?.project_id;
|
|
1280
1281
|
const repositoryBindingId = data?.repository_binding_id;
|
|
1281
|
-
|
|
1282
|
+
const supabaseUserId = data?.supabase_user_id;
|
|
1283
|
+
if (typeof accessToken !== "string" || typeof refreshToken !== "string" || typeof installationPublicId !== "string" || typeof projectId !== "string" || typeof repositoryBindingId !== "string" || typeof supabaseUserId !== "string" || supabaseUserId.length === 0) {
|
|
1282
1284
|
throw new Error("[memoraone-mcp] Invalid redeem response");
|
|
1283
1285
|
}
|
|
1284
1286
|
let sourceId = null;
|
|
@@ -1296,7 +1298,8 @@ async function redeemLocalConnectCode(apiUrl, body, options = {}) {
|
|
|
1296
1298
|
project_id: projectId,
|
|
1297
1299
|
repository_binding_id: repositoryBindingId,
|
|
1298
1300
|
source_id: sourceId,
|
|
1299
|
-
recovered: Boolean(data.recovered)
|
|
1301
|
+
recovered: Boolean(data.recovered),
|
|
1302
|
+
supabase_user_id: supabaseUserId
|
|
1300
1303
|
};
|
|
1301
1304
|
}
|
|
1302
1305
|
async function refreshLocalMcpToken(apiUrl, body, options = {}) {
|
|
@@ -11366,7 +11369,8 @@ async function runConnectCommand(options) {
|
|
|
11366
11369
|
accessTokenExpiresAt: redeemed.access_token_expires_at ?? void 0,
|
|
11367
11370
|
refreshTokenExpiresAt: redeemed.refresh_token_expires_at ?? void 0,
|
|
11368
11371
|
installationPublicId: redeemed.installation_public_id,
|
|
11369
|
-
projectId: redeemed.project_id
|
|
11372
|
+
projectId: redeemed.project_id,
|
|
11373
|
+
supabaseUserId: redeemed.supabase_user_id
|
|
11370
11374
|
},
|
|
11371
11375
|
{ ...options.credentialOptions, clearKeys: ["clientRedeemKey"] }
|
|
11372
11376
|
);
|