cli-relay 1.0.0 → 1.0.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
CHANGED
|
@@ -16,6 +16,19 @@ npm install --global cli-relay
|
|
|
16
16
|
|
|
17
17
|
The package has no runtime dependencies. Installation exposes the `cli-relay` command.
|
|
18
18
|
|
|
19
|
+
## Prerequisites
|
|
20
|
+
|
|
21
|
+
cli-relay routes between AI coding-agent CLIs — it doesn't include or replace them. Install
|
|
22
|
+
whichever of these you actually use (you don't need all four; `cli-relay doctor` after
|
|
23
|
+
installing any of them confirms cli-relay can see it):
|
|
24
|
+
|
|
25
|
+
- **codex** — `npm install -g @openai/codex`, then `codex login`
|
|
26
|
+
- **claude-code** — `npm install -g @anthropic-ai/claude-code`, then run `claude` once to
|
|
27
|
+
authenticate
|
|
28
|
+
- **agy** (Google's Antigravity CLI) — macOS: `brew install --cask antigravity-cli`; other
|
|
29
|
+
platforms: see [antigravity.google/product/antigravity-cli](https://antigravity.google/product/antigravity-cli)
|
|
30
|
+
- **command-code** — `npm install -g command-code`, then `command-code login`
|
|
31
|
+
|
|
19
32
|
## Usage
|
|
20
33
|
|
|
21
34
|
```
|
package/package.json
CHANGED
package/src/adapters/agy.mjs
CHANGED
|
@@ -5,6 +5,7 @@ export default {
|
|
|
5
5
|
name: 'agy',
|
|
6
6
|
order: 20,
|
|
7
7
|
binaryCandidates: ['agy'],
|
|
8
|
+
installHint: 'macOS: brew install --cask antigravity-cli — other platforms: https://antigravity.google/product/antigravity-cli',
|
|
8
9
|
fresh: (prompt) => [
|
|
9
10
|
'agy', '--dangerously-skip-permissions', '--print-timeout', '10m',
|
|
10
11
|
'--model', 'gemini-3.6-flash-medium', '--add-dir', process.cwd(),
|
|
@@ -5,6 +5,7 @@ export default {
|
|
|
5
5
|
name: 'claude-code',
|
|
6
6
|
order: 30,
|
|
7
7
|
binaryCandidates: ['claude'],
|
|
8
|
+
installHint: 'npm install -g @anthropic-ai/claude-code, then run: claude (once, to authenticate)',
|
|
8
9
|
fresh: (prompt) => [
|
|
9
10
|
'claude', '-p', prompt, '--output-format', 'json', '--dangerously-skip-permissions',
|
|
10
11
|
],
|
package/src/adapters/codex.mjs
CHANGED
|
@@ -20,6 +20,7 @@ export default {
|
|
|
20
20
|
name: 'codex',
|
|
21
21
|
order: 10,
|
|
22
22
|
binaryCandidates: ['codex'],
|
|
23
|
+
installHint: 'npm install -g @openai/codex, then: codex login',
|
|
23
24
|
fresh: (prompt) => [
|
|
24
25
|
'codex', 'exec', '--skip-git-repo-check', '--sandbox', 'workspace-write',
|
|
25
26
|
'-m', 'gpt-5.6-sol', '--json', prompt,
|
|
@@ -5,6 +5,7 @@ export default {
|
|
|
5
5
|
name: 'command-code',
|
|
6
6
|
order: 40,
|
|
7
7
|
binaryCandidates: ['command-code'],
|
|
8
|
+
installHint: 'npm install -g command-code, then: command-code login',
|
|
8
9
|
fresh: (prompt) => [
|
|
9
10
|
'command-code', '-p', prompt, '-m', 'zai-org/glm-5.2', '--output-format', 'json',
|
|
10
11
|
'--trust', '--no-auto-update',
|
package/src/commands/doctor.mjs
CHANGED
|
@@ -53,7 +53,8 @@ export async function cmdDoctor(adapters, isAvailable = realWhichCheck) {
|
|
|
53
53
|
`${check.adapter.name}: available (found; tried: ${tried}; resolved: ${resolved})`,
|
|
54
54
|
);
|
|
55
55
|
} else {
|
|
56
|
-
|
|
56
|
+
const hint = check.adapter.installHint ? ` — install: ${check.adapter.installHint}` : '';
|
|
57
|
+
console.log(`${check.adapter.name}: unavailable (not found; tried: ${tried})${hint}`);
|
|
57
58
|
}
|
|
58
59
|
}
|
|
59
60
|
}
|