smart-context-mcp 1.16.1 → 1.16.2
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 +1 -1
- package/package.json +1 -1
- package/scripts/init-clients.js +10 -8
- package/server.json +2 -2
package/README.md
CHANGED
|
@@ -56,7 +56,7 @@ Restart your AI client. Done.
|
|
|
56
56
|
# Check installed version
|
|
57
57
|
npm list -g smart-context-mcp
|
|
58
58
|
|
|
59
|
-
# Should show: smart-context-mcp@1.16.
|
|
59
|
+
# Should show: smart-context-mcp@1.16.2 (or later)
|
|
60
60
|
|
|
61
61
|
# Update to latest version
|
|
62
62
|
npm update -g smart-context-mcp
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "smart-context-mcp",
|
|
3
3
|
"mcpName": "io.github.Arrayo/smart-context-mcp",
|
|
4
|
-
"version": "1.16.
|
|
4
|
+
"version": "1.16.2",
|
|
5
5
|
"description": "MCP server that reduces agent token usage by 90% with intelligent context compression, task checkpoint persistence, and workflow-aware agent guidance.",
|
|
6
6
|
"author": "Francisco Caballero Portero <fcp1978@hotmail.com>",
|
|
7
7
|
"type": "module",
|
package/scripts/init-clients.js
CHANGED
|
@@ -369,16 +369,18 @@ const updateCodexConfig = (targetDir, serverConfig, dryRun) => {
|
|
|
369
369
|
const HOOK_SECTION_START = '# devctx:start';
|
|
370
370
|
const HOOK_SECTION_END = '# devctx:end';
|
|
371
371
|
|
|
372
|
-
const buildPreCommitHookSection = (
|
|
373
|
-
const scriptPath = normalizeCommandPath(path.relative(targetDir, path.join(devctxDir, 'scripts', 'check-repo-safety.js')));
|
|
372
|
+
const buildPreCommitHookSection = () => {
|
|
374
373
|
return `${HOOK_SECTION_START}
|
|
375
374
|
# Prevent committing project-local devctx state.
|
|
376
375
|
repo_root="$(git rev-parse --show-toplevel 2>/dev/null || pwd)"
|
|
377
|
-
"$
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
376
|
+
devctx_script="$(npm root -g 2>/dev/null)/smart-context-mcp/scripts/check-repo-safety.js"
|
|
377
|
+
if [ -f "$devctx_script" ]; then
|
|
378
|
+
node "$devctx_script" --project-root "$repo_root"
|
|
379
|
+
status=$?
|
|
380
|
+
if [ "$status" -ne 0 ]; then
|
|
381
|
+
echo "devctx: commit blocked by repo safety checks." >&2
|
|
382
|
+
exit "$status"
|
|
383
|
+
fi
|
|
382
384
|
fi
|
|
383
385
|
${HOOK_SECTION_END}`;
|
|
384
386
|
};
|
|
@@ -392,7 +394,7 @@ const updatePreCommitHook = (targetDir, dryRun) => {
|
|
|
392
394
|
|
|
393
395
|
const filePath = path.resolve(targetDir, hookPathResult.stdout);
|
|
394
396
|
const current = fs.existsSync(filePath) ? fs.readFileSync(filePath, 'utf8') : '';
|
|
395
|
-
const nextBody = upsertSentinelSection(current, HOOK_SECTION_START, HOOK_SECTION_END, buildPreCommitHookSection(
|
|
397
|
+
const nextBody = upsertSentinelSection(current, HOOK_SECTION_START, HOOK_SECTION_END, buildPreCommitHookSection());
|
|
396
398
|
const nextContent = nextBody.startsWith('#!') ? nextBody : `#!/bin/sh\n\n${nextBody}`;
|
|
397
399
|
writeFile(filePath, nextContent, dryRun);
|
|
398
400
|
|
package/server.json
CHANGED
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
"url": "https://github.com/Arrayo/smart-context-mcp",
|
|
7
7
|
"source": "github"
|
|
8
8
|
},
|
|
9
|
-
"version": "1.16.
|
|
9
|
+
"version": "1.16.2",
|
|
10
10
|
"packages": [
|
|
11
11
|
{
|
|
12
12
|
"registryType": "npm",
|
|
13
13
|
"identifier": "smart-context-mcp",
|
|
14
|
-
"version": "1.16.
|
|
14
|
+
"version": "1.16.2",
|
|
15
15
|
"transport": {
|
|
16
16
|
"type": "stdio"
|
|
17
17
|
},
|