@zetaloop/chappie 0.5.0 → 1.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.
- package/.codex-plugin/plugin.json +13 -0
- package/README.md +26 -29
- package/dist/chunk-5CKVVDZ2.js +1042 -0
- package/dist/chunk-DM523QRR.js +148 -0
- package/dist/chunk-DN7OHZK6.js +110 -0
- package/dist/chunk-DQWC5GFN.js +1745 -0
- package/dist/chunk-EIPDEA3I.js +286 -0
- package/dist/chunk-GWYP7B66.js +8479 -0
- package/dist/chunk-GX4JWLHH.js +98 -0
- package/dist/chunk-K2VE2MDU.js +14916 -0
- package/dist/chunk-OWAAWZNT.js +56 -0
- package/dist/chunk-UOFCCHBS.js +94 -0
- package/dist/cli.js +47 -0
- package/dist/codex-RI2XL4HV.js +5144 -0
- package/dist/codex-plugin-NSKWB3WS.js +179 -0
- package/dist/codex.json +23 -0
- package/dist/index.js +4752 -0
- package/dist/instructions.md +13 -0
- package/dist/omp.js +240 -0
- package/dist/opencode.js +904 -0
- package/dist/promise-OHH5J44X.js +72 -0
- package/dist/stdio-KJVCYPXJ.js +1279 -0
- package/docs/setup.md +82 -0
- package/docs/tools.md +106 -96
- package/package.json +100 -56
- package/src/activity.ts +0 -21
- package/src/broker.ts +0 -780
- package/src/config.ts +0 -20
- package/src/delivery.ts +0 -54
- package/src/history.ts +0 -136
- package/src/index.ts +0 -42
- package/src/instructions.md +0 -17
- package/src/ipc.ts +0 -492
- package/src/provider.ts +0 -194
- package/src/questions.ts +0 -87
- package/src/resources.ts +0 -209
- package/src/server.ts +0 -566
- package/src/session.ts +0 -848
- package/src/state.ts +0 -163
- package/src/stdio.ts +0 -58
- package/src/tools.ts +0 -91
- package/src/transfer.ts +0 -313
- /package/{src → dist}/question.html +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "chappie",
|
|
3
|
+
"description": "Connect ChatGPT and local agents across devices",
|
|
4
|
+
"mcpServers": {
|
|
5
|
+
"chappie": {
|
|
6
|
+
"command": "node",
|
|
7
|
+
"args": ["dist/cli.js", "codex"],
|
|
8
|
+
"env_vars": ["CODEX_HOME"],
|
|
9
|
+
"cwd": "."
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"version": "1.0.0"
|
|
13
|
+
}
|
package/README.md
CHANGED
|
@@ -1,56 +1,53 @@
|
|
|
1
1
|
# Chappie
|
|
2
2
|
|
|
3
|
-
Use ChatGPT to work through
|
|
3
|
+
Use ChatGPT to work through Pi, Oh My Pi, OpenCode, or Codex: edit projects, run commands, and exchange files and images. Agent sessions can also work with each other, on the same computer or across devices.
|
|
4
4
|
|
|
5
5
|
## Setup
|
|
6
6
|
|
|
7
|
-
Install
|
|
7
|
+
Install Chappie in each participating agent:
|
|
8
|
+
|
|
9
|
+
| Agent | Install |
|
|
10
|
+
| ------------------------------------------------- | ------------------------------------------------ |
|
|
11
|
+
| [Pi](https://github.com/earendil-works/pi) | `pi install npm:@zetaloop/chappie` |
|
|
12
|
+
| [Oh My Pi](https://github.com/can1357/oh-my-pi) | `omp plugin install @zetaloop/chappie` |
|
|
13
|
+
| [OpenCode](https://github.com/anomalyco/opencode) | `opencode plugin add @zetaloop/chappie` |
|
|
14
|
+
| [Codex](https://github.com/openai/codex) | [Plugin and provider setup](docs/setup.md#codex) |
|
|
15
|
+
|
|
16
|
+
The broker connects these sessions to ChatGPT and to each other. Install it on one device:
|
|
8
17
|
|
|
9
18
|
```sh
|
|
10
|
-
|
|
19
|
+
pnpm add -g @zetaloop/chappie
|
|
11
20
|
```
|
|
12
21
|
|
|
13
|
-
|
|
22
|
+
## With ChatGPT
|
|
23
|
+
|
|
24
|
+
Run the broker through [otunnel](https://github.com/zetaloop/otunnel) with this MCP configuration:
|
|
14
25
|
|
|
15
26
|
```yaml
|
|
16
27
|
mcp:
|
|
17
28
|
commands:
|
|
18
29
|
- channel: main
|
|
19
|
-
command:
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
Add the tunnel as a developer-mode app in ChatGPT, then start Pi in a project:
|
|
23
|
-
|
|
24
|
-
```sh
|
|
25
|
-
pi --provider chappie --model chatgpt
|
|
30
|
+
command: chappie
|
|
26
31
|
```
|
|
27
32
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
## Usage
|
|
31
|
-
|
|
32
|
-
Chappie exposes common coding tools directly and every active Pi tool through `tools` and `call`. `chat` sends an assistant message to Pi, Pi input accompanies later tool results, and `transfer` moves files between ChatGPT and Pi or between connected devices. `history` reads recent Pi messages and activity with timestamps. `ask` can present a persistent question in ChatGPT when webpage questions are enabled.
|
|
33
|
+
Add the tunnel as a developer-mode app in ChatGPT. Open a project in the agent with its Chappie model selected, then tell ChatGPT which project or session to use and what to do:
|
|
33
34
|
|
|
34
|
-
|
|
35
|
+
> Use \@Chappie to review the recent changes in the website project.
|
|
35
36
|
|
|
36
|
-
|
|
37
|
+
Tool activity and assistant messages appear in the agent's interface. Messages entered there reach ChatGPT with later tool results. Attach files in ChatGPT for the agent to use, or ask for generated files to be sent back.
|
|
37
38
|
|
|
38
|
-
|
|
39
|
+
To continue from another chat or branch, ask ChatGPT to reconnect to the same agent session.
|
|
39
40
|
|
|
40
|
-
|
|
41
|
+
## Between agents
|
|
41
42
|
|
|
42
|
-
|
|
43
|
-
{ "listen": true }
|
|
44
|
-
```
|
|
43
|
+
An agent using its usual model can work through another agent session. For example, an assistant on macOS can run a build in a Windows session and retrieve the output files.
|
|
45
44
|
|
|
46
|
-
|
|
45
|
+
Start `chappie` in a terminal, or use the broker already running through otunnel. On the controlling agent's device, enable local tools in `~/.chappie/config.json`:
|
|
47
46
|
|
|
48
47
|
```json
|
|
49
|
-
{ "
|
|
48
|
+
{ "localTools": true }
|
|
50
49
|
```
|
|
51
50
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
Set `ask` to `false` to disable webpage questions.
|
|
51
|
+
Use the usual model in the controlling session and the Chappie model in the target session. Ask the controlling assistant to find that session and work on its project.
|
|
55
52
|
|
|
56
|
-
|
|
53
|
+
See [setup and configuration](docs/setup.md) for device connections and agent-specific settings, and the [tool guide](docs/tools.md) for the available operations and their parameters.
|