memory-journal-mcp 6.3.0 → 7.0.0
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/README.md +91 -74
- package/dist/{chunk-VH4SRTLB.js → chunk-2BJHLTYP.js} +1237 -97
- package/dist/{chunk-K2SCUSN4.js → chunk-ARLH46WS.js} +34 -3
- package/dist/{chunk-QQ2ZY3CH.js → chunk-SBNQ7MXZ.js} +412 -365
- package/dist/cli.js +26 -4
- package/dist/github-integration-PDRLXKGM.js +1 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +3 -3
- package/dist/tools-FFFGXIKN.js +3 -0
- package/package.json +14 -13
- package/dist/github-integration-DTNYAKVJ.js +0 -1
- package/dist/tools-P4XXHO3Z.js +0 -3
|
@@ -47,6 +47,33 @@ var ERROR_SUGGESTIONS = [
|
|
|
47
47
|
pattern: /malformed|invalid json|unexpected token/i,
|
|
48
48
|
suggestion: "The input appears malformed. Check the format and try again.",
|
|
49
49
|
code: "VALIDATION_FAILED"
|
|
50
|
+
},
|
|
51
|
+
// Schema / types patterns
|
|
52
|
+
{
|
|
53
|
+
pattern: /invalid input syntax for type|requires a.*column/i,
|
|
54
|
+
suggestion: "The provided value is not valid for the assigned type.",
|
|
55
|
+
code: "VALIDATION_FAILED"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
pattern: /^Missing required parameters:/i,
|
|
59
|
+
suggestion: "Provide all required parameters in your request.",
|
|
60
|
+
code: "VALIDATION_FAILED"
|
|
61
|
+
},
|
|
62
|
+
// Codemode / Sandbox patterns
|
|
63
|
+
{
|
|
64
|
+
pattern: /execution timed out/i,
|
|
65
|
+
suggestion: "Reduce code complexity or increase timeout (max 30s). Break into smaller operations.",
|
|
66
|
+
code: "QUERY_FAILED"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
pattern: /code validation failed/i,
|
|
70
|
+
suggestion: "Check for blocked patterns. Use mj.* API instead.",
|
|
71
|
+
code: "VALIDATION_FAILED"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
pattern: /sandbox.*not initialized/i,
|
|
75
|
+
suggestion: "Internal sandbox error. Retry the operation.",
|
|
76
|
+
code: "INTERNAL_ERROR"
|
|
50
77
|
}
|
|
51
78
|
];
|
|
52
79
|
function matchSuggestion(message) {
|
|
@@ -306,13 +333,11 @@ var GitHubClient = class {
|
|
|
306
333
|
apiCache = /* @__PURE__ */ new Map();
|
|
307
334
|
constructor(workingDir = ".") {
|
|
308
335
|
this.token = process.env["GITHUB_TOKEN"];
|
|
309
|
-
const
|
|
310
|
-
const effectiveDir = envRepoPath || workingDir;
|
|
336
|
+
const effectiveDir = workingDir;
|
|
311
337
|
const resolvedDir = effectiveDir === "." ? process.cwd() : effectiveDir;
|
|
312
338
|
logger.info("GitHub integration using directory", {
|
|
313
339
|
module: "GitHub",
|
|
314
340
|
workingDir,
|
|
315
|
-
envRepoPath: envRepoPath ?? "not set",
|
|
316
341
|
effectiveDir,
|
|
317
342
|
resolvedDir,
|
|
318
343
|
cwd: process.cwd()
|
|
@@ -384,6 +409,7 @@ var IssuesManager = class {
|
|
|
384
409
|
constructor(client) {
|
|
385
410
|
this.client = client;
|
|
386
411
|
}
|
|
412
|
+
client;
|
|
387
413
|
async getIssues(owner, repo, state = "open", limit = 20) {
|
|
388
414
|
if (!this.client.octokit) {
|
|
389
415
|
return [];
|
|
@@ -550,6 +576,7 @@ var PullRequestsManager = class _PullRequestsManager {
|
|
|
550
576
|
constructor(client) {
|
|
551
577
|
this.client = client;
|
|
552
578
|
}
|
|
579
|
+
client;
|
|
553
580
|
/** Known Copilot bot login patterns */
|
|
554
581
|
static COPILOT_BOT_PATTERNS = [
|
|
555
582
|
"copilot-pull-request-reviewer[bot]",
|
|
@@ -731,6 +758,7 @@ var ProjectsManager = class {
|
|
|
731
758
|
constructor(client) {
|
|
732
759
|
this.client = client;
|
|
733
760
|
}
|
|
761
|
+
client;
|
|
734
762
|
async getProjectKanban(owner, projectNumber, repo) {
|
|
735
763
|
if (!this.client.graphqlWithAuth) {
|
|
736
764
|
logger.debug("GraphQL not available - no token", { module: "GitHub" });
|
|
@@ -1045,6 +1073,7 @@ var MilestonesManager = class {
|
|
|
1045
1073
|
constructor(client) {
|
|
1046
1074
|
this.client = client;
|
|
1047
1075
|
}
|
|
1076
|
+
client;
|
|
1048
1077
|
async getMilestones(owner, repo, state = "open", limit = 20) {
|
|
1049
1078
|
if (!this.client.octokit) {
|
|
1050
1079
|
return [];
|
|
@@ -1254,6 +1283,7 @@ var InsightsManager = class {
|
|
|
1254
1283
|
constructor(client) {
|
|
1255
1284
|
this.client = client;
|
|
1256
1285
|
}
|
|
1286
|
+
client;
|
|
1257
1287
|
async getRepoStats(owner, repo) {
|
|
1258
1288
|
if (!this.client.octokit) {
|
|
1259
1289
|
return null;
|
|
@@ -1379,6 +1409,7 @@ var RepositoryManager = class {
|
|
|
1379
1409
|
constructor(client) {
|
|
1380
1410
|
this.client = client;
|
|
1381
1411
|
}
|
|
1412
|
+
client;
|
|
1382
1413
|
async getRepoInfo() {
|
|
1383
1414
|
try {
|
|
1384
1415
|
const branchResult = await this.client.git.branch();
|