@av-pi-studio/server 0.0.7 → 0.0.9
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 +13 -1
- package/dist/.tsbuildinfo +1 -1
- package/dist/daemon/bootstrap.d.ts.map +1 -1
- package/dist/daemon/bootstrap.js +42 -2
- package/dist/daemon/bootstrap.js.map +1 -1
- package/dist/daemon/relay-transport.d.ts +34 -0
- package/dist/daemon/relay-transport.d.ts.map +1 -0
- package/dist/daemon/relay-transport.js +115 -0
- package/dist/daemon/relay-transport.js.map +1 -0
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -156,6 +156,10 @@ All optional.
|
|
|
156
156
|
| `PI_STUDIO_PASSWORD` | _(unset)_ | Require this password for connections (bcrypt-checked) |
|
|
157
157
|
| `PI_STUDIO_HOSTNAMES` | `localhost,*.localhost` | Allowed `Host` header values (comma-separated, or `true` to allow all) |
|
|
158
158
|
| `PI_STUDIO_SERVER_ID` | _(persisted/generated)_ | Stable server identity |
|
|
159
|
+
| `PI_STUDIO_RELAY_ENDPOINT` | _(unset)_ | Relay server to dial outbound to when `daemon.relay.enabled` (`host:port`) |
|
|
160
|
+
| `PI_STUDIO_RELAY_USE_TLS` | `false` | Use `wss://` for the outbound relay dial (`1`/`true`/`yes`/`on`) |
|
|
161
|
+
| `PI_STUDIO_RELAY_PUBLIC_ENDPOINT` | _(unset)_ | Client-facing relay address, if different from the daemon's own dial target |
|
|
162
|
+
| `PI_STUDIO_RELAY_PUBLIC_USE_TLS` | `false` | TLS setting for the client-facing relay address (independent of the outbound dial) |
|
|
159
163
|
| `PI_STUDIO_SERVICE_PROXY_LISTEN` | _(unset)_ | Service-proxy listen address |
|
|
160
164
|
| `PI_STUDIO_SERVICE_PROXY_PUBLIC_BASE_URL` | _(unset)_ | Public base URL advertised for proxied services |
|
|
161
165
|
| `PI_STUDIO_SERVICE_PROXY_ENABLED` | _(unset)_ | Enable the service proxy (`1`/`true`/`yes`/`on`) |
|
|
@@ -188,7 +192,8 @@ defaults and `.passthrough()` tolerance for unknown/future keys. Notable section
|
|
|
188
192
|
"mcp": { "enabled": true, "injectIntoAgents": true },
|
|
189
193
|
"appendSystemPrompt": "",
|
|
190
194
|
"cors": { "allowedOrigins": [] },
|
|
191
|
-
"serviceProxy": { "enabled": false }
|
|
195
|
+
"serviceProxy": { "enabled": false },
|
|
196
|
+
"relay": { "enabled": false, "endpoint": "relay-host:7000", "useTls": false }
|
|
192
197
|
},
|
|
193
198
|
"agents": {
|
|
194
199
|
"providers": {
|
|
@@ -203,6 +208,13 @@ To use a **different `pi` binary** than the bundled one, set
|
|
|
203
208
|
`agents.providers.pi.command` to an absolute path as shown above. Custom Pi-compatible profiles can
|
|
204
209
|
extend the `pi` provider via `"extends": "pi"` (a custom provider must also set a `label`).
|
|
205
210
|
|
|
211
|
+
**Relay (opt-in, off by default):** with `daemon.relay.enabled: true`, the daemon dials outbound
|
|
212
|
+
to the `endpoint` (a self-hosted `@av-pi-studio/relay` server or Cloudflare Workers deployment)
|
|
213
|
+
after the WS server is up, so remote clients can reach it without an inbound port. See
|
|
214
|
+
`@av-pi-studio/relay`'s README for running a relay (`pi-studio-relay` bin / `pi-studio relay
|
|
215
|
+
start`). Direct WebSocket connections are completely unaffected either way — the relay only adds
|
|
216
|
+
an additional connection path.
|
|
217
|
+
|
|
206
218
|
---
|
|
207
219
|
|
|
208
220
|
## The wire API
|