@mcowger/pi-plexus 0.5.3 → 0.5.4
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 +101 -0
- package/package.json +13 -2
package/README.md
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# plexus-agent-plugins
|
|
2
|
+
|
|
3
|
+
Exposes models from a self-hosted [Plexus](https://github.com/mcowger/plexus) AI proxy as a first-class provider inside AI coding agents. Models appear in the agent's model picker with correct wire-protocol behavior, as if they were natively supported providers.
|
|
4
|
+
|
|
5
|
+
Supported hosts:
|
|
6
|
+
|
|
7
|
+
- **oh-my-pi** (`can1357/oh-my-pi`) — via `plexus-pi` (the legacy-pi shim handles scope remapping automatically)
|
|
8
|
+
- **pi** (`earendil-works/pi`) — via `plexus-pi`
|
|
9
|
+
|
|
10
|
+
## Prerequisites
|
|
11
|
+
|
|
12
|
+
- [Bun](https://bun.sh) ≥ 1.1
|
|
13
|
+
- A running Plexus instance
|
|
14
|
+
- `PLEXUS_API_KEY` set in your environment
|
|
15
|
+
|
|
16
|
+
```sh
|
|
17
|
+
export PLEXUS_API_KEY=your-key-here
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Add this to your shell profile (`~/.zshrc`, `~/.zprofile`, etc.) so it persists across restarts.
|
|
21
|
+
|
|
22
|
+
## Installation
|
|
23
|
+
|
|
24
|
+
### oh-my-pi
|
|
25
|
+
|
|
26
|
+
```sh
|
|
27
|
+
git clone https://github.com/mcowger/plexus-agent-plugins
|
|
28
|
+
cd plexus-agent-plugins
|
|
29
|
+
bun install
|
|
30
|
+
bun run --cwd packages/plexus-pi build.ts
|
|
31
|
+
omp plugin link packages/plexus-pi
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### pi (earendil-works)
|
|
35
|
+
|
|
36
|
+
```sh
|
|
37
|
+
git clone https://github.com/mcowger/plexus-agent-plugins
|
|
38
|
+
cd plexus-agent-plugins
|
|
39
|
+
bun install
|
|
40
|
+
bun run --cwd packages/plexus-pi build.ts
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Then add the extension path to your pi config, or symlink the package into `~/.pi/extensions/`.
|
|
44
|
+
|
|
45
|
+
## Usage
|
|
46
|
+
|
|
47
|
+
On the first run, configure the Plexus base URL:
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
/plexus login
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
You will be prompted for:
|
|
54
|
+
- **Plexus base URL** — e.g. `https://plexus.example.com`
|
|
55
|
+
- **Default model** (optional)
|
|
56
|
+
|
|
57
|
+
After login, models appear immediately in the model picker. They also refresh automatically on every new session.
|
|
58
|
+
|
|
59
|
+
To force a refresh:
|
|
60
|
+
|
|
61
|
+
```
|
|
62
|
+
/plexus refresh
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Configuration
|
|
66
|
+
|
|
67
|
+
| What | How |
|
|
68
|
+
|---|---|
|
|
69
|
+
| API key | `PLEXUS_API_KEY` environment variable (required) |
|
|
70
|
+
| Base URL | Set via `/plexus login`, stored at `~/.{omp,pi}/agent/extensions/plexus/config.json` |
|
|
71
|
+
| Default model | Optionally set during `/plexus login` |
|
|
72
|
+
|
|
73
|
+
Config, cache, and logs are written under the agent's data directory:
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
~/.omp/agent/extensions/plexus/
|
|
77
|
+
config.json # base URL and default model
|
|
78
|
+
plexus-models-cache.json # last-fetched model list
|
|
79
|
+
plexus-models-response.json # raw API response (diagnostics)
|
|
80
|
+
plexus.log # extension activity log
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Development
|
|
84
|
+
|
|
85
|
+
After editing source files, rebuild before changes take effect:
|
|
86
|
+
|
|
87
|
+
```sh
|
|
88
|
+
bun run --cwd packages/plexus-pi build.ts
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
The build bundles `plexus-models` into a single `dist/extension.js`. The `dist/` file is what the agent loads; source files are the single source of truth.
|
|
92
|
+
|
|
93
|
+
## Package layout
|
|
94
|
+
|
|
95
|
+
```
|
|
96
|
+
packages/
|
|
97
|
+
plexus-models/ # host-agnostic data layer (fetch, parse, cache, config)
|
|
98
|
+
plexus-pi/ # host adapter + extension entry point
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
`plexus-models` has zero imports from any agent framework and can be tested in isolation.
|
package/package.json
CHANGED
|
@@ -1,12 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcowger/pi-plexus",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"description": "Plexus AI proxy plugin for pi and oh-my-pi coding agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/extension.js",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist/extension.js",
|
|
9
|
-
"package.json"
|
|
9
|
+
"package.json",
|
|
10
|
+
"README.md"
|
|
11
|
+
],
|
|
12
|
+
"keywords": [
|
|
13
|
+
"plexus",
|
|
14
|
+
"pi",
|
|
15
|
+
"omp",
|
|
16
|
+
"oh-my-pi",
|
|
17
|
+
"ai",
|
|
18
|
+
"coding-agent",
|
|
19
|
+
"extension",
|
|
20
|
+
"plugin"
|
|
10
21
|
],
|
|
11
22
|
"pi": {
|
|
12
23
|
"extensions": [
|