@masyv/relay 0.1.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/LICENSE +21 -0
- package/README.md +169 -0
- package/core/Cargo.toml +51 -0
- package/core/src/agents/codex.rs +91 -0
- package/core/src/agents/gemini.rs +114 -0
- package/core/src/agents/mod.rs +86 -0
- package/core/src/agents/ollama.rs +98 -0
- package/core/src/agents/openai.rs +85 -0
- package/core/src/capture/git.rs +66 -0
- package/core/src/capture/mod.rs +41 -0
- package/core/src/capture/session.rs +217 -0
- package/core/src/capture/todos.rs +104 -0
- package/core/src/detect/mod.rs +80 -0
- package/core/src/handoff/mod.rs +156 -0
- package/core/src/lib.rs +198 -0
- package/core/src/main.rs +331 -0
- package/hooks/rate-limit.sh +19 -0
- package/package.json +38 -0
- package/scripts/build.sh +5 -0
- package/scripts/install.sh +12 -0
package/package.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@masyv/relay",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Relay — When Claude's rate limit hits, another agent picks up exactly where you left off. Captures session state and hands off to Codex, Gemini, Ollama, or GPT-4.",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"build": "./scripts/build.sh",
|
|
7
|
+
"install-bin": "./scripts/install.sh"
|
|
8
|
+
},
|
|
9
|
+
"keywords": [
|
|
10
|
+
"claude-code",
|
|
11
|
+
"claude",
|
|
12
|
+
"rate-limit",
|
|
13
|
+
"handoff",
|
|
14
|
+
"codex",
|
|
15
|
+
"gemini",
|
|
16
|
+
"ollama",
|
|
17
|
+
"openai",
|
|
18
|
+
"agent",
|
|
19
|
+
"fallback",
|
|
20
|
+
"context",
|
|
21
|
+
"continuity"
|
|
22
|
+
],
|
|
23
|
+
"author": "masyv",
|
|
24
|
+
"license": "MIT",
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "https://github.com/Manavarya09/relay"
|
|
28
|
+
},
|
|
29
|
+
"homepage": "https://github.com/Manavarya09/relay#readme",
|
|
30
|
+
"files": [
|
|
31
|
+
"README.md",
|
|
32
|
+
"LICENSE",
|
|
33
|
+
"hooks/",
|
|
34
|
+
"scripts/",
|
|
35
|
+
"core/src/",
|
|
36
|
+
"core/Cargo.toml"
|
|
37
|
+
]
|
|
38
|
+
}
|
package/scripts/build.sh
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
set -euo pipefail
|
|
3
|
+
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
4
|
+
BINARY="$SCRIPT_DIR/../core/target/release/relay"
|
|
5
|
+
INSTALL_DIR="${INSTALL_DIR:-$HOME/.cargo/bin}"
|
|
6
|
+
[[ ! -f "$BINARY" ]] && "$SCRIPT_DIR/build.sh"
|
|
7
|
+
echo "=== Relay Install ==="
|
|
8
|
+
mkdir -p "$INSTALL_DIR" && cp "$BINARY" "$INSTALL_DIR/relay" && chmod +x "$INSTALL_DIR/relay"
|
|
9
|
+
mkdir -p "$HOME/.relay"
|
|
10
|
+
echo "✅ Installed to $INSTALL_DIR/relay"
|
|
11
|
+
echo "Run: relay init — to create config"
|
|
12
|
+
echo "Run: relay agents — to check available agents"
|