claude-memory-layer 2.2.6 → 2.2.7
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/index.js +1 -1
- package/dist/mcp/index.js +17 -2
- package/dist/mcp/index.js.map +3 -3
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -27095,7 +27095,7 @@ async function runOperationCli(action, label) {
|
|
|
27095
27095
|
}
|
|
27096
27096
|
}
|
|
27097
27097
|
var program = new Command();
|
|
27098
|
-
program.name("claude-memory-layer").description("Claude Code Memory Plugin CLI").version("2.2.
|
|
27098
|
+
program.name("claude-memory-layer").description("Claude Code Memory Plugin CLI").version("2.2.7");
|
|
27099
27099
|
program.command("market-context").description("Fetch read-only DART/FRED/Finnhub context with structured MarketContextSnapshot bull/bear/risk/catalyst analysis").option("--company <name>", "Company name for DART fallback search and report subject").option("--dart-corp-code <code>", "Exact DART corp_code for issuer-specific filings").option("--symbol <ticker>", "Listed ticker for Finnhub company profile").option("--providers <list>", "Comma-separated providers: dart,fred,finnhub").option("--fred-series <list>", "Comma-separated FRED series IDs").option("--json", "Print structured JSON including analysis.marketSnapshot").option("--no-snapshot", "Disable MarketContextSnapshot and DART company snapshot analysis").action(async (options) => {
|
|
27100
27100
|
try {
|
|
27101
27101
|
await runMarketContextCommand(options);
|
package/dist/mcp/index.js
CHANGED
|
@@ -34383,8 +34383,11 @@ function eventBelongsToDifferentProject(event, projectPath) {
|
|
|
34383
34383
|
if (!projectPath) return false;
|
|
34384
34384
|
const metadata = event.metadata || {};
|
|
34385
34385
|
const metadataProjectRefs = metadataProjectReferenceValues(metadata);
|
|
34386
|
-
|
|
34387
|
-
|
|
34386
|
+
const metadataProjectHash2 = metadataProjectHashValue(metadata);
|
|
34387
|
+
if (metadataProjectRefs.length > 0 || metadataProjectHash2) {
|
|
34388
|
+
const pathMatches = metadataProjectRefs.some((value) => projectReferenceMatches(value, projectPath));
|
|
34389
|
+
const hashMatches = metadataProjectHash2 === hashProjectPath(projectPath);
|
|
34390
|
+
return !pathMatches && !hashMatches;
|
|
34388
34391
|
}
|
|
34389
34392
|
if (isUnscopedImportedHistory(metadata)) return true;
|
|
34390
34393
|
return mentionsDifferentWorkspaceProject(event.content || "", projectPath);
|
|
@@ -34404,6 +34407,14 @@ var PROJECT_METADATA_KEYS = /* @__PURE__ */ new Set([
|
|
|
34404
34407
|
"repoPath",
|
|
34405
34408
|
"repositoryPath"
|
|
34406
34409
|
]);
|
|
34410
|
+
function metadataProjectScope(metadata) {
|
|
34411
|
+
if (!isPlainRecord(metadata.scope)) return void 0;
|
|
34412
|
+
return isPlainRecord(metadata.scope.project) ? metadata.scope.project : void 0;
|
|
34413
|
+
}
|
|
34414
|
+
function metadataProjectHashValue(metadata) {
|
|
34415
|
+
const value = metadataProjectScope(metadata)?.hash;
|
|
34416
|
+
return typeof value === "string" && value.trim().length > 0 ? value.trim().toLowerCase() : void 0;
|
|
34417
|
+
}
|
|
34407
34418
|
function metadataProjectReferenceValues(metadata) {
|
|
34408
34419
|
const values = [];
|
|
34409
34420
|
for (const [key, value] of Object.entries(metadata)) {
|
|
@@ -34412,6 +34423,10 @@ function metadataProjectReferenceValues(metadata) {
|
|
|
34412
34423
|
values.push(value.trim());
|
|
34413
34424
|
}
|
|
34414
34425
|
}
|
|
34426
|
+
const scopedPath = metadataProjectScope(metadata)?.path;
|
|
34427
|
+
if (typeof scopedPath === "string" && scopedPath.trim().length > 0) {
|
|
34428
|
+
values.push(scopedPath.trim());
|
|
34429
|
+
}
|
|
34415
34430
|
return values;
|
|
34416
34431
|
}
|
|
34417
34432
|
function projectReferenceMatches(reference, projectPath) {
|