This repository was archived by the owner on Nov 19, 2026. It is now read-only.
Repository navigation
feat: voice and files plug-ins, and http routes in the TypeScript SDK - #4
Merged
Merged
Conversation
philbert440
approved these changes
Oct 31, 2026
…tream the Responses back A plug-in lists handlers under `http`; serve() hands each /http/<name>/… call to its handler with the body unread and streams the Response it returns. When the handler answers before reading the whole body, the answer closes the connection so rh does not reuse a socket that still holds unread bytes.
plugins/voice answers POST http/transcribe (raw audio to the transcription server, {text} back) and POST http/speak ({input, instructions?, voice?} to the speech server, audio streamed back) with the limits, errors and answers of rh's /api/voice, so a client moves by changing the path. The servers and default instructions are settings; it asks for host.network to reach them.
…itor plugins/files answers http/list, http/download, http/upload, http/mkdir, http/rename and http/delete with the queries, bodies, limits and errors of rh's /api/files routes, so RivetHub web moves by changing the path. It works under the folder its root setting names and asks for host.files.read and host.files.write: every path is walked one segment at a time, a link is followed only while it resolves inside the root, rename and delete act on a link itself, and a download never opens through a link.
rivetphilbot
force-pushed
the
feat/files-plugin
branch
from
October 31, 2026 19:08
244209c to
f0d33d3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves voice and files out of rh core into plug-ins.
http/routes as web Requests and streams the Responses back./api/plugins/voice/http/{transcribe,speak}. It has the same bodies, limits and errors as rh's/api/voice, which stays, marked deprecated, until the web composer moves. Under Landlock, TTS and STT results and latency matched/api/voice./api/plugins/files/http/..., withhost.files.read/write. List, upload, save, rename, delete and refusals were proven through rh's proxy under Landlock.Rollout order: install and enable the files plug-in, with its
rootsetting, on each node before the rivetOS web release that calls it. rh's/api/filesstays until installed Electron and Android builds have moved to/api/updates.Known limits: through the plug-in proxy, an upload slower than 60 s fails, and opened files carry a sandbox policy, so a PDF may not render inline.