@spapient/scx 0.0.0-stage → 0.6.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/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,38 @@
1
1
  {
2
2
  "name": "@spapient/scx",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.6.2",
4
+ "description": "Query-aware context compressor (zero-dependency Rust CLI + MCP server) — bundles scx 0.6.1 binary",
5
+ "keywords": [
6
+ "context-compression",
7
+ "mcp",
8
+ "llm",
9
+ "prompt",
10
+ "compressor",
11
+ "scx"
12
+ ],
13
+ "license": "MIT",
14
+ "bin": {
15
+ "scx": "bin/scx.js"
16
+ },
17
+ "files": [
18
+ "bin",
19
+ "vendor"
20
+ ],
21
+ "os": [
22
+ "darwin",
23
+ "linux",
24
+ "win32"
25
+ ],
26
+ "cpu": [
27
+ "x64",
28
+ "arm64"
29
+ ],
30
+ "engines": {
31
+ "node": ">=16"
32
+ },
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "git+https://github.com/spapient/scx.git"
36
+ },
37
+ "homepage": "https://github.com/spapient/scx"
6
38
  }
Binary file
Binary file
Binary file
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.