An open-source, faster Devin alternative
TypeScript
Changelog
3.0.0
Breaking. The sandbox client is removed; the package keeps only the
Serverless Agents management client at @opencomputer/sdk/agents, which is
unchanged from 2.3.1.
- The package root (
@opencomputer/sdk) and@opencomputer/sdk/nodeare no longer exports; importing either fails to resolve. Removed with them:Sandbox,ScalingLockedError,PlanLimitError,SandboxFamilyLimitError,Browser,BrowserProfile,BrowserProfileAuthCheck,SandboxAgent,Filesystem,Exec,ExecTimeoutError,Mounts,Shell(ShellBusyError,ShellClosedError),Pty,Templates,Image,Snapshots, the sandboxWebhooksandWebhookDeliveries,verifyWebhookandWebhookVerificationError,SecretStore,Usage,Tags,prewarmConnections,SDK_VERSION,SDK_VERSION_HEADER, and their types. - The
undicidependency is dropped; the package has no runtime dependencies. - Code that still uses the sandbox client pins
@opencomputer/sdk@2.
2.3.0
@opencomputer/sdk/agents: questions.Session.questionis the question the agent asked withask, ornull(SessionQuestion); a turn that ended by asking completes withoutcome: "question"(TurnOutcome).turns.send(id, { input, answers: questionId })answers it; naming a question that is not the open one is409 question_stale.sessions.questions.dismiss(id, questionId)closes it without an answer.TurnReceiptis now a union:AdmittedTurnReceipt(turnId,status,duplicate) orHeldTurnReceipt(status: "held" | "discarded",questionId,duplicate, noturnId) for input sent while a question is open without answering it. Code that readreceipt.turnIdas a string narrows on it first (if (receipt.turnId !== undefined)); a session that never asks returns only admitted receipts. The React hook's matching change is@opencomputer/react0.4.0, whereSendReceipt.turnIdbecomes optional andquestionIdis set on a held receipt.- A turn queued when a question was asked settles as
cancelledwithreason: "held"andquestionId, on the turn and on itsturn.cancelledevent (discarded: truewhen a stop dropped its input). - Events:
question.asked,question.answered,question.closedwithreasonstopped | dismissed | ended | undeliverable(QuestionClosedReason);message.held, thenmessage.deliveredormessage.discarded, for each held input;delivery.failedfor a channel activity the platform could not post.
2.2.0
@opencomputer/sdk/agents:sessions.listtakes exact filters (SessionFilters:projectId,environment,agentId,status,deploymentId,externalReference,createdAfter,createdBefore,updatedAfter,labels) and acursor, and returnsnextCursor(nullon the last page);sessions.iteratewalks every page.externalReferenceonsessions.createis your opaque reference to the session, returned on the session, its list row and itssession.*events, and part of the creation identity.
2.1.2
@opencomputer/sdk/agents: the transport calledfetchas a method of the client, which a native fetch refuses withIllegal invocationin workerd; it is now called as a plain function. Found by the Development proof of a Worker without Node compatibility. No API change.
2.0.0
Breaking. The OpenComputer class that wrapped the Durable Agent Sessions
API at api.opencomputer.dev/v3, connectSession, and their agents,
sessions, credentials, repos, GitHub apps, hooks, watches, schedules and
destinations resources are removed. Customers of that API pin the last
published version that has it, 1.1.1.
@opencomputer/sdk/agentsis a new subpath export: theOpenComputerclient for the Serverless Agents management API atapp.opencomputer.dev/api/managed-agents, mirroring the documented routes (sessions,sessions.turns,sessions.events,projects,projects.memory,projects.webhooks,projects.eventSubscriptions,projects.github,agents,deployments), with oneOpenComputerErrorof{ code, status, message }, plusretryAfterfrom a429andsessionIdwhen the API tied the failure to a session (session_publication_unconfirmed). The client retries nothing and follows no redirect. Its module graph has no Node dependency and runs nothing at import, so it loads in Cloudflare Workers without Node compatibility.startSessionOnDocument, the memory types and the event subscription types move to that subpath;oc.sessions.startOnDocumentis the same call on the client. ItsNotFoundErrorandConflictErrorbecomeOpenComputerErrorwith codesmemory_document_deletedandidempotency_key_reused.- The package root keeps the sandbox client and
verifyWebhook. Importing it no longer replaces Node's global fetch dispatcher and no longer opens connections: the sandbox client owns its HTTP/2 pool and passes it to each request, creates it on the first request, and warms it on the firstSandbox.create. Programs that measured creates after a bare import call the exportedprewarmConnections()before their loop.