agentOS / Rivet VPS rewrite foundation - #17
Draft
Vercantez wants to merge 14 commits into
Draft
Conversation
Defines ContentBlock/ChatMessage/UiPart message shapes, ThreadState and AskUserQuestion, ChatEvent wire union, and camelAI slash commands under agentos-platform/src/shared for server and web reuse. Co-authored-by: Miguel Salinas <Vercantez@users.noreply.github.com>
Replace OrgDO/WorkspaceDO/FilesystemDO for the rewrite foundation with a JSON-file Store plus Identity, ProjectFilesystem, and Billing services, wired through createPlatform(), with focused Vitest coverage. Co-authored-by: Miguel Salinas <Vercantez@users.noreply.github.com>
- Dockerfile (Bun app + nginx web stage) with RIVET_ENVOY_VERSION build-arg - docker-compose: embedded Rivetkit app + canary runner + web proxy - .env.example, README with architecture, VPS deploy, and migration map - plans/agentos-full-rewrite.md cross-cutting rewrite plan - Root dev/test/typecheck:agentos scripts and AGENTS.md map entry - scripts/smoke.sh for CI (typecheck + unit tests) Co-authored-by: Miguel Salinas <Vercantez@users.noreply.github.com>
Co-authored-by: Miguel Salinas <Vercantez@users.noreply.github.com>
Co-authored-by: Miguel Salinas <Vercantez@users.noreply.github.com>
Co-authored-by: Miguel Salinas <Vercantez@users.noreply.github.com>
Co-authored-by: Miguel Salinas <Vercantez@users.noreply.github.com>
Co-authored-by: Miguel Salinas <Vercantez@users.noreply.github.com>
Use registry.start() for embedded Rivetkit, correct getOrCreate keys in the React transport, and verify end-to-end sendMessage against a real engine. Co-authored-by: Miguel Salinas <Vercantez@users.noreply.github.com>
Co-authored-by: Miguel Salinas <Vercantez@users.noreply.github.com>
Co-authored-by: Miguel Salinas <Vercantez@users.noreply.github.com>
Co-authored-by: Miguel Salinas <Vercantez@users.noreply.github.com>
Co-authored-by: Miguel Salinas <Vercantez@users.noreply.github.com>
Mark platform-hardening items complete in the rewrite plan and README, and surface AGENT_BYOK / TOKEN_SIGNING_SECRET in the env example. Co-authored-by: Miguel Salinas <Vercantez@users.noreply.github.com>
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.
Summary
Starts the full rewrite of camelAI’s chat/agent plane off Cloudflare Workers + Agents SDK onto Rivet Actors + agentOS for VPS hosting — through Phase 3 (platform hardening).
New package:
agentos-platform/(production CF stack is untouched).Phases 0–2 (runtime)
chatThread(mock),chatThreadAgentOs(Pi via@rivet-dev/agentos),org,workspaceChatEventmapperuseRivetChat(no Agents SDK)RIVET_ENVOY_VERSION)Phase 3 (this update)
AUTH_HTTP_PORT(default:6422)STRIPE_MODEkey prefix checksUsageService, hosted-turn gate onchatThread, BYOK bypass (AGENT_BYOK/byok:model)GET /health,GET /api/metricsVerification
bun run test:agentos # 82 tests bun run typecheck:agentos bun --cwd agentos-platform run smoke bun --cwd agentos-platform run test:live-smokeStill TODO (Phase 4+)
Dispatcher / user-app deploys, builds/notebooks/SQL runners, R2/uploads, admin MCP, production data migration, live Pi e2e with API keys on a VPS.
See
agentos-platform/README.mdandplans/agentos-full-rewrite.md.