context-vault 2.8.17 → 2.8.19
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/cli.js +0 -31
- package/node_modules/@context-vault/core/package.json +1 -1
- package/package.json +2 -3
- package/scripts/prepack.js +1 -17
- package/app-dist/apple-touch-icon.png +0 -0
- package/app-dist/assets/index-CGFd_zQ8.js +0 -371
- package/app-dist/assets/index-b-qgfkBK.css +0 -1
- package/app-dist/favicon-16x16.png +0 -0
- package/app-dist/favicon-32x32.png +0 -0
- package/app-dist/favicon.ico +0 -0
- package/app-dist/index.html +0 -18
- package/src/local-server.js +0 -296
package/bin/cli.js
CHANGED
|
@@ -242,7 +242,6 @@ ${bold("Commands:")}
|
|
|
242
242
|
${cyan("export")} Export vault to JSON or CSV
|
|
243
243
|
${cyan("ingest")} <url> Fetch URL and save as vault entry
|
|
244
244
|
${cyan("migrate")} Migrate vault between local and hosted
|
|
245
|
-
${cyan("ui")} Open vault dashboard in browser
|
|
246
245
|
|
|
247
246
|
${bold("Options:")}
|
|
248
247
|
--help Show this help
|
|
@@ -1894,33 +1893,6 @@ async function runIngest() {
|
|
|
1894
1893
|
console.log();
|
|
1895
1894
|
}
|
|
1896
1895
|
|
|
1897
|
-
async function runUi() {
|
|
1898
|
-
const appDistDir = resolve(ROOT, "app-dist");
|
|
1899
|
-
if (!existsSync(appDistDir)) {
|
|
1900
|
-
console.error(
|
|
1901
|
-
red("\n Web UI not bundled. Run `node scripts/prepack.js` first.\n"),
|
|
1902
|
-
);
|
|
1903
|
-
process.exit(1);
|
|
1904
|
-
}
|
|
1905
|
-
|
|
1906
|
-
const { startLocalServer } = await import("../src/local-server.js");
|
|
1907
|
-
const port = parseInt(getFlag("--port") || "4422", 10);
|
|
1908
|
-
await startLocalServer(port);
|
|
1909
|
-
const url = `http://localhost:${port}`;
|
|
1910
|
-
console.log(`\n ${bold("◇ context-vault ui")} ${dim("→ " + url)}\n`);
|
|
1911
|
-
const opener =
|
|
1912
|
-
PLATFORM === "win32"
|
|
1913
|
-
? "start"
|
|
1914
|
-
: PLATFORM === "darwin"
|
|
1915
|
-
? "open"
|
|
1916
|
-
: "xdg-open";
|
|
1917
|
-
try {
|
|
1918
|
-
execSync(`${opener} ${url}`, { stdio: "ignore" });
|
|
1919
|
-
} catch {}
|
|
1920
|
-
console.log(` Press Ctrl+C to stop.\n`);
|
|
1921
|
-
await new Promise(() => {});
|
|
1922
|
-
}
|
|
1923
|
-
|
|
1924
1896
|
async function runServe() {
|
|
1925
1897
|
await import("../src/server/index.js");
|
|
1926
1898
|
}
|
|
@@ -1973,9 +1945,6 @@ async function main() {
|
|
|
1973
1945
|
case "migrate":
|
|
1974
1946
|
await runMigrate();
|
|
1975
1947
|
break;
|
|
1976
|
-
case "ui":
|
|
1977
|
-
await runUi();
|
|
1978
|
-
break;
|
|
1979
1948
|
default:
|
|
1980
1949
|
console.error(red(`Unknown command: ${command}`));
|
|
1981
1950
|
console.error(`Run ${cyan("context-vault --help")} for usage.`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "context-vault",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.19",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Persistent memory for AI agents — saves and searches knowledge across sessions",
|
|
6
6
|
"bin": {
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
"bin/",
|
|
21
21
|
"src/",
|
|
22
22
|
"scripts/",
|
|
23
|
-
"app-dist/",
|
|
24
23
|
"README.md",
|
|
25
24
|
"LICENSE"
|
|
26
25
|
],
|
|
@@ -56,7 +55,7 @@
|
|
|
56
55
|
"@context-vault/core"
|
|
57
56
|
],
|
|
58
57
|
"dependencies": {
|
|
59
|
-
"@context-vault/core": "^2.8.
|
|
58
|
+
"@context-vault/core": "^2.8.19",
|
|
60
59
|
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
61
60
|
"better-sqlite3": "^12.6.2",
|
|
62
61
|
"sqlite-vec": "^0.1.0"
|
package/scripts/prepack.js
CHANGED
|
@@ -6,11 +6,9 @@ import {
|
|
|
6
6
|
mkdirSync,
|
|
7
7
|
readFileSync,
|
|
8
8
|
writeFileSync,
|
|
9
|
-
existsSync,
|
|
10
9
|
} from "node:fs";
|
|
11
|
-
import { join, dirname
|
|
10
|
+
import { join, dirname } from "node:path";
|
|
12
11
|
import { fileURLToPath } from "node:url";
|
|
13
|
-
import { execSync } from "node:child_process";
|
|
14
12
|
|
|
15
13
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
16
14
|
const LOCAL_ROOT = join(__dirname, "..");
|
|
@@ -43,17 +41,3 @@ delete corePkg.dependencies;
|
|
|
43
41
|
writeFileSync(corePkgPath, JSON.stringify(corePkg, null, 2) + "\n");
|
|
44
42
|
|
|
45
43
|
console.log("[prepack] Bundled @context-vault/core into node_modules");
|
|
46
|
-
|
|
47
|
-
// Build the web UI from the sibling context-vault-app repo
|
|
48
|
-
const APP_ROOT = resolvePath(LOCAL_ROOT, "..", "..", "..", "context-vault-app");
|
|
49
|
-
const APP_DIST_SRC = join(APP_ROOT, "dist");
|
|
50
|
-
const APP_DIST_DEST = join(LOCAL_ROOT, "app-dist");
|
|
51
|
-
|
|
52
|
-
if (existsSync(APP_ROOT)) {
|
|
53
|
-
execSync("npm run build", { cwd: APP_ROOT, stdio: "inherit" });
|
|
54
|
-
rmSync(APP_DIST_DEST, { recursive: true, force: true });
|
|
55
|
-
cpSync(APP_DIST_SRC, APP_DIST_DEST, { recursive: true });
|
|
56
|
-
console.log("[prepack] Bundled web UI into app-dist/");
|
|
57
|
-
} else {
|
|
58
|
-
console.warn("[prepack] context-vault-app not found — skipping UI bundle.");
|
|
59
|
-
}
|
|
Binary file
|