context-vault 2.4.0 → 2.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.
|
@@ -264,6 +264,17 @@ export function registerTools(server, ctx) {
|
|
|
264
264
|
return err(`Entity kind "${kind}" requires identity_key`, "MISSING_IDENTITY_KEY");
|
|
265
265
|
}
|
|
266
266
|
|
|
267
|
+
// Hosted tier limit enforcement (skipped in local mode — no checkLimits on ctx)
|
|
268
|
+
if (ctx.checkLimits) {
|
|
269
|
+
const usage = ctx.checkLimits();
|
|
270
|
+
if (usage.entryCount >= usage.maxEntries) {
|
|
271
|
+
return err(`Entry limit reached (${usage.maxEntries}). Upgrade to Pro for unlimited entries.`, "LIMIT_EXCEEDED");
|
|
272
|
+
}
|
|
273
|
+
if (usage.storageMb >= usage.maxStorageMb) {
|
|
274
|
+
return err(`Storage limit reached (${usage.maxStorageMb} MB). Upgrade to Pro for more storage.`, "LIMIT_EXCEEDED");
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
267
278
|
await ensureIndexed();
|
|
268
279
|
|
|
269
280
|
const mergedMeta = { ...(meta || {}) };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "context-vault",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Persistent memory for AI agents — saves and searches knowledge across sessions",
|
|
6
6
|
"bin": {
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
"bin/",
|
|
20
20
|
"src/",
|
|
21
21
|
"scripts/",
|
|
22
|
-
"ui/",
|
|
23
22
|
"README.md",
|
|
24
23
|
"LICENSE"
|
|
25
24
|
],
|
|
@@ -32,6 +31,6 @@
|
|
|
32
31
|
"keywords": ["mcp", "model-context-protocol", "ai", "knowledge-base", "knowledge-management", "vault", "rag", "sqlite", "embeddings", "claude", "cursor", "cline", "windsurf"],
|
|
33
32
|
"bundledDependencies": ["@context-vault/core"],
|
|
34
33
|
"dependencies": {
|
|
35
|
-
"@context-vault/core": "^2.4.
|
|
34
|
+
"@context-vault/core": "^2.4.1"
|
|
36
35
|
}
|
|
37
36
|
}
|
package/ui/Context.applescript
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
-- Context MCP UI Launcher
|
|
2
|
-
-- Starts the server if not running, then opens the dashboard
|
|
3
|
-
|
|
4
|
-
on run
|
|
5
|
-
-- Dynamic node path
|
|
6
|
-
set nodePath to do shell script "which node"
|
|
7
|
-
|
|
8
|
-
-- Dynamic serve.js path (relative to this script's bundle)
|
|
9
|
-
set scriptDir to do shell script "dirname " & quoted form of (POSIX path of (path to me))
|
|
10
|
-
set serverScript to scriptDir & "/serve.js"
|
|
11
|
-
set serverPort to "3141"
|
|
12
|
-
set serverURL to "http://localhost:" & serverPort
|
|
13
|
-
|
|
14
|
-
-- Check if server is already running on port
|
|
15
|
-
set isRunning to false
|
|
16
|
-
try
|
|
17
|
-
do shell script "lsof -ti:" & serverPort
|
|
18
|
-
set isRunning to true
|
|
19
|
-
end try
|
|
20
|
-
|
|
21
|
-
-- Start server via nohup so it survives after this app exits
|
|
22
|
-
if not isRunning then
|
|
23
|
-
do shell script "nohup " & quoted form of nodePath & " " & quoted form of serverScript & " > /tmp/context-mcp.log 2>&1 &"
|
|
24
|
-
-- Wait for server to be ready
|
|
25
|
-
repeat 10 times
|
|
26
|
-
delay 0.5
|
|
27
|
-
try
|
|
28
|
-
do shell script "curl -s -o /dev/null -w '%{http_code}' " & serverURL & "/api/discover"
|
|
29
|
-
exit repeat
|
|
30
|
-
end try
|
|
31
|
-
end repeat
|
|
32
|
-
end if
|
|
33
|
-
|
|
34
|
-
-- Open in default browser
|
|
35
|
-
open location serverURL
|
|
36
|
-
end run
|