@danielblomma/cortex-mcp 1.4.0 → 1.4.1
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/bin/cortex.mjs +10 -1
- package/package.json +1 -1
package/bin/cortex.mjs
CHANGED
|
@@ -734,8 +734,17 @@ async function run() {
|
|
|
734
734
|
await runContextCommand(process.cwd(), [command, ...rest]);
|
|
735
735
|
}
|
|
736
736
|
|
|
737
|
+
function resolveArgv1() {
|
|
738
|
+
if (!process.argv[1]) return null;
|
|
739
|
+
try {
|
|
740
|
+
return fs.realpathSync(process.argv[1]);
|
|
741
|
+
} catch {
|
|
742
|
+
return process.argv[1];
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
|
|
737
746
|
const invokedAsScript =
|
|
738
|
-
process.argv[1] && import.meta.url === pathToFileURL(
|
|
747
|
+
process.argv[1] && import.meta.url === pathToFileURL(resolveArgv1()).href;
|
|
739
748
|
|
|
740
749
|
if (invokedAsScript) {
|
|
741
750
|
run().catch((error) => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danielblomma/cortex-mcp",
|
|
3
3
|
"mcpName": "io.github.DanielBlomma/cortex",
|
|
4
|
-
"version": "1.4.
|
|
4
|
+
"version": "1.4.1",
|
|
5
5
|
"description": "Local, repo-scoped context platform for coding assistants. Semantic search, graph relationships, and architectural rule context.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"author": "Daniel Blomma",
|