@freibergergarcia/phone-a-friend 1.12.1 → 2.0.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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "phone-a-friend",
3
3
  "description": "CLI relay that lets AI coding agents collaborate by sending prompts and repository context to backend agents.",
4
- "version": "1.12.1",
4
+ "version": "2.0.0",
5
5
  "author": {
6
6
  "name": "Bruno Freiberger"
7
7
  }
package/README.md CHANGED
@@ -10,7 +10,7 @@
10
10
  [![npm](https://img.shields.io/npm/v/%40freibergergarcia%2Fphone-a-friend)](https://www.npmjs.com/package/@freibergergarcia/phone-a-friend)
11
11
  [![CI](https://github.com/freibergergarcia/phone-a-friend/actions/workflows/ci.yml/badge.svg)](https://github.com/freibergergarcia/phone-a-friend/actions/workflows/ci.yml)
12
12
  [![License](https://img.shields.io/badge/license-Apache--2.0-blue)](LICENSE)
13
- ![Node.js 20+](https://img.shields.io/badge/node-%E2%89%A520.12-green)
13
+ ![Node.js 22.13+](https://img.shields.io/badge/node-%E2%89%A522.13-green)
14
14
  [![Website](https://img.shields.io/badge/website-phone--a--friend-blue)](https://freibergergarcia.github.io/phone-a-friend/)
15
15
 
16
16
  </div>
@@ -38,7 +38,7 @@ Relay tasks to any backend, spin up multi-model teams, or run persistent multi-a
38
38
 
39
39
  ## Quick Start
40
40
 
41
- **Prerequisites:** Node.js 20+ and at least one backend:
41
+ **Prerequisites:** Node.js 22.13+ and at least one backend:
42
42
 
43
43
  - [Claude Code](https://docs.anthropic.com/en/docs/claude-code/setup)
44
44
  - [Codex CLI](https://developers.openai.com/codex/quickstart/)
@@ -32,7 +32,7 @@ When `RELAY_MODE = direct`, call backend CLIs directly instead of using the
32
32
 
33
33
  | Backend | Direct command |
34
34
  |---------|---------------|
35
- | **Codex** | `codex exec -C "$PWD" --skip-git-repo-check --sandbox read-only "<combined-prompt>"` |
35
+ | **Codex** | `codex exec -C "$PWD" --skip-git-repo-check --sandbox read-only "<combined-prompt>" < /dev/null` |
36
36
  | **Gemini** | `gemini --sandbox --yolo --include-directories "$PWD" --output-format text -m <model> --prompt "<combined-prompt>"` |
37
37
  | **Ollama** | `curl -s http://localhost:11434/api/chat -H "Content-Type: application/json" -d '{"model":"<model>","messages":[{"role":"user","content":"<combined-prompt>"}],"stream":false}' \| jq -r '.message.content'` |
38
38
 
@@ -125,7 +125,7 @@ phone-a-friend --to <BACKEND> --repo "$PWD" --sandbox read-only --fast [--model
125
125
  **Direct mode** (`RELAY_MODE = direct`):
126
126
  ```bash
127
127
  # Codex:
128
- codex exec -C "$PWD" --skip-git-repo-check --sandbox read-only "<relay-prompt>"
128
+ codex exec -C "$PWD" --skip-git-repo-check --sandbox read-only "<relay-prompt>" < /dev/null
129
129
  # Gemini (always include -m):
130
130
  gemini --sandbox --yolo --include-directories "$PWD" --output-format text -m <model> --prompt "<relay-prompt>"
131
131
  # Ollama (use OLLAMA_SELECTED_MODEL from Step 2):
@@ -181,7 +181,7 @@ phone-a-friend --to <BACKEND> --repo "$PWD" --sandbox read-only --fast [--model
181
181
  **Direct mode** (`RELAY_MODE = direct`):
182
182
  ```bash
183
183
  # Codex:
184
- codex exec -C "$PWD" --skip-git-repo-check --sandbox read-only "<re-prompt>"
184
+ codex exec -C "$PWD" --skip-git-repo-check --sandbox read-only "<re-prompt>" < /dev/null
185
185
  # Gemini:
186
186
  gemini --sandbox --yolo --include-directories "$PWD" --output-format text -m <model> --prompt "<re-prompt>"
187
187
  # Ollama:
@@ -34,7 +34,7 @@ When `RELAY_MODE = direct`, call backend CLIs directly instead of using the
34
34
 
35
35
  | Backend | Direct command |
36
36
  |---------|---------------|
37
- | **Codex** | `codex exec -C "$PWD" --skip-git-repo-check --sandbox read-only "<combined-prompt>"` |
37
+ | **Codex** | `codex exec -C "$PWD" --skip-git-repo-check --sandbox read-only "<combined-prompt>" < /dev/null` |
38
38
  | **Gemini** | `gemini --sandbox --yolo --include-directories "$PWD" --output-format text -m <model> --prompt "<combined-prompt>"` |
39
39
 
40
40
  In direct mode, combine prompt + context into a single string using this
@@ -96,7 +96,7 @@ I'm working on this task and got the above response. Please review it and return
96
96
  **Direct mode** (`RELAY_MODE = direct`):
97
97
  ```bash
98
98
  # Codex:
99
- codex exec -C "$PWD" --skip-git-repo-check --sandbox read-only "<combined-prompt>"
99
+ codex exec -C "$PWD" --skip-git-repo-check --sandbox read-only "<combined-prompt>" < /dev/null
100
100
  # Gemini (always include -m, see "Gemini Model Priority" below):
101
101
  gemini --sandbox --yolo --include-directories "$PWD" --output-format text -m <model> --prompt "<combined-prompt>"
102
102
  ```
@@ -37,7 +37,7 @@ When `RELAY_MODE = direct`, call backend CLIs directly instead of using the
37
37
 
38
38
  | Backend | Direct command |
39
39
  |---------|---------------|
40
- | **Codex** | `codex exec -C "$PWD" --skip-git-repo-check --sandbox <mode> "<combined-prompt>"` |
40
+ | **Codex** | `codex exec -C "$PWD" --skip-git-repo-check --sandbox <mode> "<combined-prompt>" < /dev/null` |
41
41
  | **Gemini** | `gemini --sandbox --yolo --include-directories "$PWD" --output-format text -m <model> --prompt "<combined-prompt>"` |
42
42
  | **Ollama** | `curl -s http://localhost:11434/api/chat -H "Content-Type: application/json" -d '{"model":"<model>","messages":[{"role":"user","content":"<combined-prompt>"}],"stream":false}' \| jq -r '.message.content'` |
43
43
 
@@ -400,7 +400,7 @@ Delegate the task to the backend via the relay. The lead's job is to
400
400
  **Direct mode** (`RELAY_MODE = direct`):
401
401
  ```bash
402
402
  # Codex:
403
- codex exec -C "$PWD" --skip-git-repo-check --sandbox <mode> "<combined-prompt>"
403
+ codex exec -C "$PWD" --skip-git-repo-check --sandbox <mode> "<combined-prompt>" < /dev/null
404
404
  # Gemini (omit --sandbox for workspace-write):
405
405
  gemini [--sandbox] --yolo --include-directories "$PWD" --output-format text -m <model> --prompt "<combined-prompt>"
406
406
  # Ollama: