docs(core): use @rivet-dev/agentos-core in Core Package docs and examples#1671
Merged
Conversation
…ples The Core Package page and its examples demonstrated the actor package (@rivet-dev/agentos) instead of the core package. Rewrite the examples to drive AgentOs directly (create/exec/spawn/createSession/prompt/fetch/ scheduleCron) and update the doc prose and CodeSnippet references to match.
|
🚅 Deployed to the agentos-pr-1671 environment in agentos
🚅 Environment agentos-pr-1671 in rivet-frontend has no services deployed. |
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.
/docs/core"Core Package" page claimed to demonstrate@rivet-dev/agentos-core, but every example exceptadvanced.tsactually imported the actor package@rivet-dev/agentos(agentOS(),setup(),createClient(), ahandle).AgentOsdirectly:AgentOs.create(),exec/spawn+onProcessExit, filesystem ops,createSession/prompt/onSessionEvent/onPermissionRequest,fetch(port, Request), andscheduleCron/onCronEvent.examples/core/vm.tsreplaces theserver.ts/client.tsactor split (both removed);hooks.ts,mounts.ts,config-reference.ts, andREADME.mdupdated to core.core.mdxprose and allCodeSnippetreferences to match (callback-based events, no client/server split, core-vs-actor framing kept in the comparison table, timeouts reframed as an actor-only feature).pnpm --dir examples/core check-typespasses. The docs site build can't run in this environment (pre-existing@rivet-dev/docs-themelocal-symlink blocker); all 10 CodeSnippet file/region references were verified to resolve statically.