visioncache 0.0.0-stage → 0.2.0
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 +23 -2
- package/cli.cjs +29 -0
- package/licenses/Cargo-THIRD-PARTY-NOTICES.txt +4709 -0
- package/licenses/Rust-COPYRIGHT-library.html +8266 -0
- package/native/visioncache-mcp.exe +0 -0
- package/package.json +30 -6
package/README.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
-
#
|
|
1
|
+
# VisionCache npm package
|
|
2
2
|
|
|
3
|
-
This
|
|
3
|
+
This package contains the Windows x64 VisionCache executable and its Node.js launcher. Use it from a local Windows desktop. Codex registration happens when the CLI is invoked with `--install-codex`.
|
|
4
|
+
|
|
5
|
+
## Install in local Codex
|
|
6
|
+
|
|
7
|
+
```powershell
|
|
8
|
+
npx visioncache --install-codex
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Open a new local Codex chat to pick up the registered MCP server and desktop skill. The explicit skill name is `$visioncache-desktop`. Windows x64 and Node.js 18 or later are required.
|
|
12
|
+
|
|
13
|
+
## Build and test a local tarball
|
|
14
|
+
|
|
15
|
+
From the repository root on Windows with Rust's MSVC toolchain and npm:
|
|
16
|
+
|
|
17
|
+
```powershell
|
|
18
|
+
.\packaging\npm\pack-win-x64.ps1
|
|
19
|
+
npm.cmd exec --offline --yes --package .\dist\npm\visioncache-0.2.0.tgz -- visioncache --version
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
The pack command puts the archive under `dist/npm`. The launcher forwards CLI arguments and standard streams to the native executable. Use `--install-codex` instead of `--version` to register VisionCache and its desktop skill in the current user's Codex configuration.
|
|
23
|
+
|
|
24
|
+
Dependency and Rust standard library notices are included in the `licenses` directory.
|
package/cli.cjs
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
const { spawn } = require("node:child_process");
|
|
5
|
+
const path = require("node:path");
|
|
6
|
+
|
|
7
|
+
if (process.platform !== "win32" || process.arch !== "x64") {
|
|
8
|
+
console.error("This VisionCache package requires Windows x64.");
|
|
9
|
+
process.exitCode = 1;
|
|
10
|
+
} else {
|
|
11
|
+
const executable = path.join(__dirname, "native", "visioncache-mcp.exe");
|
|
12
|
+
const child = spawn(executable, process.argv.slice(2), {
|
|
13
|
+
stdio: "inherit",
|
|
14
|
+
windowsHide: true,
|
|
15
|
+
});
|
|
16
|
+
const stop = () => child.kill();
|
|
17
|
+
process.once("SIGINT", stop);
|
|
18
|
+
process.once("SIGTERM", stop);
|
|
19
|
+
|
|
20
|
+
child.once("error", (error) => {
|
|
21
|
+
console.error(`Could not start VisionCache: ${error.message}`);
|
|
22
|
+
process.exitCode = 1;
|
|
23
|
+
});
|
|
24
|
+
child.once("close", (code) => {
|
|
25
|
+
process.removeListener("SIGINT", stop);
|
|
26
|
+
process.removeListener("SIGTERM", stop);
|
|
27
|
+
process.exitCode = code ?? 1;
|
|
28
|
+
});
|
|
29
|
+
}
|