feat(agentos): standalone @rivet-dev/agentos umbrella package#5310
Open
NathanFlurry wants to merge 2 commits into
Open
feat(agentos): standalone @rivet-dev/agentos umbrella package#5310NathanFlurry wants to merge 2 commits into
NathanFlurry wants to merge 2 commits into
Conversation
…nt-os 0.0.0-main.8794200 Full e2e (examples/agent-os-e2e) green: filesystem, processes, preview URL, and live Pi agent session. - rivetkit-agent-os actor + napi binding driving the agent-os sidecar via agent-os-client; examples + wrapper pinned to published agent-os 0.0.0-main.8794200 and @agent-os-pkgs/@secure-exec software packages (common uses the wasm-bundled @rivet-dev/agent-os-common). - preview proxy: route signed-preview URLs through rivetkit's raw-actor-HTTP '/request' path so the gateway dispatches to the actor's proxy_preview (was 404 NotFound); accept the (port, ttlSeconds) arg pair. - Pi session: give the agent a clean dependency closure via AGENT_OS_MODULE_ACCESS_CWD (.agent-modules, generated by scripts/prepare-agent-modules.mjs) so minimatch's brace-expansion@>=2 named export resolves (the monorepo hoists brace-expansion@1). - surface previously-swallowed errors (ensure_vm / create_session / write_file / preview token) at error level for diagnosability.
Extracts the rivetkit ./agent-os integration into a standalone, separately
published package named @rivet-dev/agentos, modeled on RivetKit's export
structure. Re-exports only (no fork); still calls into core Rust via the
published @rivet-dev/agent-os-* deps (unchanged).
Export boundaries:
- '.' server only: agentOs(), config schema, domain/event types,
nodeModulesMount (== what rivetkit/agent-os exports today).
No client/browser/react on the root.
- './client' re-exports rivetkit/client (createClient, handles, conns);
browser export condition preserved.
- './react' re-exports @rivetkit/react (createRivetKit, hooks).
Version kept in lockstep with rivetkit/@rivetkit/react (2.3.0-rc.12).
Typing: client.vm.* actions and AgentOsEvents are dispatched by the Rust
factory and are 'any'-typed at the TS surface today; this package re-exports
as-is (per 're-export, don't fork'). A typed facade is a possible follow-up.
0c2b631 to
47a0b2c
Compare
c62506a to
c44621f
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Extracts the rivetkit
./agent-osintegration into a standalone, separately published package@rivet-dev/agentos, modeled on RivetKit's export structure. Re-export only — no fork. Still calls into core Rust via the published@rivet-dev/agent-os-*deps, unchanged.Export boundaries (strict)
@rivet-dev/agentos(root)agentOs(), config schema, domain/event types,nodeModulesMount(== whatrivetkit/agent-osexports today)@rivet-dev/agentos/clientrivetkit/client(createClient, handles, conns); browser export condition preserved@rivet-dev/agentos/react@rivetkit/react(createRivetKit, hooks)The root is kept clean of client exports (does not copy RivetKit's own
src/mod.tscreateClientWithDriverleak), so server/Node code importing the root never pulls the browser/react bundle.Verification
build✅ (tsup: mod/client/react × esm+cjs+dts)check-types✅exportstargets exist ✅/clientexposescreateClient,/reactexposescreateRivetKit, root exports onlyagentOs/AgentOsEvents/nodeModulesMount(no client leak) ✅Decisions
rivetkit/@rivetkit/reactat2.3.0-rc.12; re-export, don't fork.client.vm.*) andAgentOsEventsare dispatched by the Rust factory and areany-typed at the TS surface today. This package ships them as-is (option a), consistent with "re-export, don't fork". A typed facade over the actions (sendPrompt,createSession, …) and event map is a possible follow-up if typed DX is wanted.Base branch is
feat/agent-os-integration(the integration this builds on is not yet onmain). Do not merge until reviewed.