@spapient/scx 0.0.0-stage → 0.6.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.
- package/bin/scx.js +25 -0
- package/package.json +15 -4
- package/vendor/scx-darwin-arm64 +0 -0
- package/vendor/scx-linux-x64 +0 -0
- package/vendor/scx-win32-x64.exe +0 -0
- package/README.md +0 -3
package/bin/scx.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
const { spawnSync } = require('node:child_process');
|
|
5
|
+
const path = require('node:path');
|
|
6
|
+
|
|
7
|
+
const platform = process.platform; // darwin | linux | win32
|
|
8
|
+
const arch = process.arch; // x64 | arm64
|
|
9
|
+
|
|
10
|
+
let exe;
|
|
11
|
+
if (platform === 'win32') {
|
|
12
|
+
exe = `scx-win32-${arch === 'arm64' ? 'arm64' : 'x64'}.exe`;
|
|
13
|
+
} else {
|
|
14
|
+
exe = `scx-${platform}-${arch}`;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const binPath = path.join(__dirname, '..', 'vendor', exe);
|
|
18
|
+
const fs = require('node:fs');
|
|
19
|
+
if (!fs.existsSync(binPath)) {
|
|
20
|
+
console.error(`scx: no prebuilt binary for ${platform}/${arch} (${exe})`);
|
|
21
|
+
process.exit(1);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const r = spawnSync(binPath, process.argv.slice(2), { stdio: 'inherit' });
|
|
25
|
+
process.exit(r.status ?? 1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spapient/scx",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.6.1",
|
|
4
|
+
"description": "Query-aware context compressor (zero-dependency Rust CLI + MCP server)",
|
|
5
|
+
"keywords": ["context-compression", "mcp", "llm", "prompt", "compressor", "scx"],
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"bin": { "scx": "bin/scx.js" },
|
|
8
|
+
"files": ["bin", "vendor"],
|
|
9
|
+
"os": ["darwin", "linux", "win32"],
|
|
10
|
+
"cpu": ["x64", "arm64"],
|
|
11
|
+
"engines": { "node": ">=16" },
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "git+https://github.com/spapient/scx.git"
|
|
15
|
+
},
|
|
16
|
+
"homepage": "https://github.com/spapient/scx"
|
|
17
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/README.md
DELETED