context-vault 2.4.0 → 2.4.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 +438 -0
- package/bin/cli.js +365 -69
- package/node_modules/@context-vault/core/package.json +13 -11
- package/node_modules/@context-vault/core/src/core/config.js +8 -8
- package/node_modules/@context-vault/core/src/index/db.js +5 -9
- package/node_modules/@context-vault/core/src/index/embed.js +14 -10
- package/node_modules/@context-vault/core/src/server/tools.js +61 -19
- package/package.json +34 -8
- package/scripts/local-server.js +386 -0
- package/scripts/postinstall.js +35 -2
- package/scripts/prepack.js +19 -6
- package/src/server/index.js +53 -18
- package/ui/Context.applescript +0 -36
- package/ui/index.html +0 -1377
- package/ui/serve.js +0 -474
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
|