@volter-ai-dev/supercode 0.2.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/README.md +27 -0
- package/bin/supercode.js +38 -0
- package/package.json +20 -0
package/README.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# `@volter-ai-dev/supercode`
|
|
2
|
+
|
|
3
|
+
A lightweight, fully-customizable AI coding agent CLI — talks to any model via
|
|
4
|
+
[OpenRouter](https://openrouter.ai) (or any OpenAI-compatible endpoint) and
|
|
5
|
+
natively continues real Claude Code and Codex sessions.
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
npm install -g @volter-ai-dev/supercode
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
supercode login # paste your OpenRouter key
|
|
13
|
+
supercode run "fix the failing test in src/lib.rs"
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
This package is a thin launcher; the actual binary ships as a platform-specific
|
|
17
|
+
optional dependency (`@volter-ai-dev/supercode-cli-<os>-<cpu>`), so `npm` downloads only the
|
|
18
|
+
build matching your machine — no compile step, no postinstall network fetch.
|
|
19
|
+
|
|
20
|
+
Supported platforms: `darwin-arm64`, `darwin-x64`, `linux-x64`, `linux-arm64`,
|
|
21
|
+
`win32-x64`.
|
|
22
|
+
On other platforms install from source (`cargo install supercode-cli`) or via
|
|
23
|
+
the [install script](https://github.com/volter-ai/supercode#install).
|
|
24
|
+
|
|
25
|
+
Full docs, the SDK, and source: <https://github.com/volter-ai/supercode>.
|
|
26
|
+
|
|
27
|
+
Licensed under MIT OR Apache-2.0.
|
package/bin/supercode.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Thin launcher for the `supercode` CLI. The actual binary ships in a
|
|
3
|
+
// platform-specific optional dependency
|
|
4
|
+
// (`@volter-ai-dev/supercode-cli-<os>-<cpu>`); npm
|
|
5
|
+
// installs only the one matching the host. We resolve it and exec it,
|
|
6
|
+
// forwarding argv, stdio (so the interactive REPL/TTY works), and the exit code.
|
|
7
|
+
"use strict";
|
|
8
|
+
|
|
9
|
+
const { spawnSync } = require("child_process");
|
|
10
|
+
|
|
11
|
+
const platform = process.platform; // darwin | linux | win32 | ...
|
|
12
|
+
const arch = process.arch; // arm64 | x64 | ...
|
|
13
|
+
const pkg = `@volter-ai-dev/supercode-cli-${platform}-${arch}`;
|
|
14
|
+
const binName = platform === "win32" ? "supercode.exe" : "supercode";
|
|
15
|
+
|
|
16
|
+
let binPath;
|
|
17
|
+
try {
|
|
18
|
+
binPath = require.resolve(`${pkg}/bin/${binName}`);
|
|
19
|
+
} catch {
|
|
20
|
+
console.error(
|
|
21
|
+
`supercode: no prebuilt binary for ${platform}-${arch}.\n` +
|
|
22
|
+
`Supported via npm: darwin-arm64, darwin-x64, linux-x64, linux-arm64, win32-x64.\n` +
|
|
23
|
+
`Otherwise install from source (cargo install supercode-cli) or via the\n` +
|
|
24
|
+
`install script: https://github.com/volter-ai/supercode#install`
|
|
25
|
+
);
|
|
26
|
+
process.exit(1);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
const result = spawnSync(binPath, process.argv.slice(2), { stdio: "inherit" });
|
|
30
|
+
if (result.error) {
|
|
31
|
+
console.error(result.error.message);
|
|
32
|
+
process.exit(1);
|
|
33
|
+
}
|
|
34
|
+
// Mirror signal-termination as the conventional 128+signo exit code.
|
|
35
|
+
if (result.signal) {
|
|
36
|
+
process.exit(1);
|
|
37
|
+
}
|
|
38
|
+
process.exit(result.status === null ? 1 : result.status);
|
package/package.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@volter-ai-dev/supercode",
|
|
3
|
+
"version": "0.2.1",
|
|
4
|
+
"description": "A lightweight, customizable AI coding agent CLI — any model via OpenRouter; natively continues Claude Code and Codex sessions.",
|
|
5
|
+
"repository": { "type": "git", "url": "git+https://github.com/volter-ai/supercode.git" },
|
|
6
|
+
"homepage": "https://github.com/volter-ai/supercode#readme",
|
|
7
|
+
"bugs": { "url": "https://github.com/volter-ai/supercode/issues" },
|
|
8
|
+
"license": "MIT OR Apache-2.0",
|
|
9
|
+
"keywords": ["ai", "agent", "llm", "coding", "cli", "openrouter", "claude", "codex"],
|
|
10
|
+
"bin": { "supercode": "bin/supercode.js" },
|
|
11
|
+
"files": ["bin/"],
|
|
12
|
+
"engines": { "node": ">=16" },
|
|
13
|
+
"optionalDependencies": {
|
|
14
|
+
"@volter-ai-dev/supercode-cli-darwin-arm64": "0.2.1",
|
|
15
|
+
"@volter-ai-dev/supercode-cli-darwin-x64": "0.2.1",
|
|
16
|
+
"@volter-ai-dev/supercode-cli-linux-x64": "0.2.1",
|
|
17
|
+
"@volter-ai-dev/supercode-cli-linux-arm64": "0.2.1",
|
|
18
|
+
"@volter-ai-dev/supercode-cli-win32-x64": "0.2.1"
|
|
19
|
+
}
|
|
20
|
+
}
|