Release notes · Console SDK
Console SDK Release Notes
Changelog for @cognipeer/console-sdk. For usage, see the Console SDK documentation.
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[3.1.0] - 2026-10-11
Agent sessions: starting, listing and deleting sessions, continuing one by id, files that live in a Document Store bucket, approvals and questions, the session event log and webhook subscriptions. Additive: nothing in 3.0.0 changes behaviour, except that agents.runs.wait() now also returns a run that is requires_action. The approvals, events and actions calls need a Console with the agent runtime release; the sessions and session-file calls need the Console release that ships the sessions API and session files on buckets. See Agent Sessions.
Added
client.agents.sessions:create(start a session without sending a message),list(a page and an async iterator),get,update(set, raise or remove a spend budget, and resume abudget_pausedsession) anddelete. See Agent Sessions.- Session files:
files.upload,list,delete,contentandcontentStreamfor files the agent can read, stored in the Document Store bucket of the agent's Files setting.input_fileandinput_imageparts are accepted in response input. See Session Files. - Approvals and questions:
actions.listandactions.resolveanswer a tool approval (decision,comment,approved_args,remember_for_session) or a question. See Approvals & Questions. - Session events:
events.listandevents.stream, an async iterator over the SSE log that reconnects withLast-Event-ID, detects an idle stall and yields liveagent.message.deltachunks. See Session Events. responses.create({ session_id })(aliasconversation) continues a session by id, including a session that has no response yet.client.webhooks:create,list,get,update,delete,rotateSecret,test,deliveries,redeliverandeventTypes, plusverifyWebhookin@cognipeer/console-sdk/webhooksfor any signed delivery. See Webhooks.Agent.attachmentsonagents.get(key): whether the agent takes files right now, its limits, and whether its model reads images.AgentActionErrorCodesandisAgentActionErrorCode(). See Agent Error Codes.files.list(bucket, { prefix, purpose })browses one folder and filters agent session files.AgentResponse.statusgainsincompleteandrequires_action, withrequired_action,stop_reason,stop_detailandincomplete_details;AgentRunStatusgainsrequires_action, and callbacks gain theagent_run.requires_actionevent.
Changed
agents.runs.wait()returns when the run reachesrequires_action, because it is waiting on a person and polling would never end. Checkrun.status.AgentResponse.statusis no longer limited to'completed' | 'failed': an exhaustiveswitchover it needs the new cases.AgentSessionandSessionFilecarry fields the Console always sends (title,created_at,updated_at,metadata,bucket_key,path,content_url), so a hand-built test double needs them.agents.chat()(legacy) addsstatusandpendingActionsto its result when the turn did not complete.
Fixed
CognipeerAPIError.errorCodeis read from the top-levelcodewhenerroris just the message string, sonot_found,forbidden,limit_reached,endpoint_disabledanddelivery_pendingare no longer lost.- The
User-Agentheader carried a stale@cognipeer/console-sdk/1.1.0; it now sends the package version.
[3.0.0] - 2026-10
- Realtime clients now use voice-engine protocol v2, so any existing realtime integration must be updated before upgrading.
- Legacy tools endpoints are no longer served by the server; the SDK now marks those APIs deprecated and callers should remove remaining tools API usage before deployment.
- Agents now support background runs, polling, cancellation, and signed callbacks for asynchronous execution flows.
- Sandbox file downloads now support raw stream access and byte-range reads for more flexible file retrieval.
- Aegis calls now fail with a clear migration error instead of a raw 404 when they hit removed server-side behavior.
- HTTP requests now preserve timeouts when a cancel signal is passed and handle retries more safely.
[2.1.0] - 2026-09-05
Added
client.browserFlows— record a driven session into a replayable step list (record) and replay it later with per-run inputs (run), pluslist/get/create/update/delete/listRuns/getRun. Discovery (a model driving the browser) happens once; replay runs with no model in the loop.BrowserTarget— durable element targeting.ref(an accessibility-tree marker) is valid for one snapshot only and renumbers on the next;role+name,testId,label,placeholder,textandselectorsurvive across sessions and are what a flow step stores. Every action result now carriesresolvedTarget.- Browser action union gained
select,check,upload,drag,back,forward,reloadandtab;waitgainedtextandloadState. client.browsers.setProfile(idOrKey, storageState, fileName?)/clearProfile(idOrKey)— attach or remove a PlaywrightstorageStateso new sessions start already signed in. Encrypted server-side; never readable back, only summarized onbrowser.storageStateMeta.client.browserSessions.find()(locate visible text, returns a durable target per hit),diagnostics()(console messages, failed requests, last dialog), andexportProfile()(produce astorageStatefrom a session signed into by hand).BrowserSessionConfiggainedtimezoneId,proxy,extraHTTPHeaders,httpCredentials,acceptDownloads,ignoreHTTPSErrors,dialogPolicy,storageState, and two timeout knobs.
Changed
- None — fully backward compatible with 2.0.0.
[1.7.0] - 2026-08-17
Added
- New resources:
client.analytics(usage/overview),client.audit(logs),client.monitoring(inference),client.pii(policy CRUD + detect/redact/…) — additive, no existing method/resource/type changed. client.tracing.listThreads/getThread.- Authoring on existing resources —
agents/tools/mcp/prompts/guardrails/rag/rerankergainedcreate/update/delete(pluspublish/sync/setLatestVersion/refreshToolswhere applicable). metadataon tracing sessions —client.tracing.ingest/startStreamaccept an optionalmetadata: Record<string, string>sibling ofagent, for grouping/reporting spend by arbitrary attribution tags.
Changed
- Default
baseURLis nowhttps://console.cognipeer.com(washttps://api.cognipeer.com). Only affects clients constructed without an explicitbaseURL.
Fixed
client.tools.*routing —list,get,executeand the deprecated agent-tool helpers were missing the/api/client/v1prefix, so every Tools call hit the wrong URL.
[1.6.0] - 2026-07-17
Added
- MCP Hubs discovery client (
client.mcp.hubs.list/get/servers/server) — hub catalog discovery via the MCP Registry envelope, with cursor pagination and tool schemas on the detail view. client.realtime.connect({ runtimeContext })— sends session-scoped downstream auth right after the socket opens, refreshable viaupdateSession.
[1.5.0] - 2026-07-14
Added
- Aegis API (
client.aegis, Enterprise) — enforcement-plane policy evaluation:evaluate()returns anallow/redact/require_approval/sandbox/blockdecision with findings, risk score and a sanitized resource;shields.list()andshields.audit(shieldId)read the enforcement instances and their decision trails. Shields are configured in the Console dashboard (/dashboard/aegis).
[1.4.1] - 2026-07-07
Added
client.sandbox.listeningPorts(id)— TCP ports currently LISTENing inside a sandbox, with aloopbackOnlyflag (a service bound only to 127.0.0.1 must be previewable).SandboxPreviewInfo.allPorts— when true (platform default), any port is previewable throughpreviewUrl(id, port)/ share links, not just the suggested list; the platform provisions an on-demand forwarder for unpublished ports.
[1.4.0] - 2026-07-05
Added
- Web Search API (
client.webSearch) — run searches through Console-configured Web Search instances (Bing, Brave Search, Serper, Tavily, SearxNG, DuckDuckGo):search(...),searchWith(key, ...)for a named instance,include_answer: truefor AI-interpreted answers,providers.list(). - Crawler sync runs —
client.crawler.run(...)/crawlWithCrawler(...)acceptmode: 'sync'and resolve with the finished job plus inline results (CrawlRunSyncResponse, markdown included); new single-URL convenienceclient.crawler.crawlUrl(idOrKey, url).
Fixed
client.crawler.runAdhoc(...)now sendsseeds(the field the server's ad-hoc schema requires) instead ofurls, and exposesengine/maxDepth/maxPages/modeoptions.
[1.3.4] - 2026-07-02
Removed
- Breaking: JS Sandbox API (
client.jsSandbox) and its types (JsSandboxRuntime,JsSandboxExecuteRequest,JsSandboxExecutionResult, …) — the JS Sandbox module was removed from the Console platform. Use the Agent Sandbox (client.sandbox)code/execAPIs for code execution instead. Note: this removal shipped as a patch release, not a major bump — pin an exact version if you still depend onclient.jsSandbox.
[1.3.3] - 2026-06-29
Added
client.sandbox.setPreview(id, { enabled?, public? })— toggle port preview on/off and public (share links) vs. private (login-only), applied live;create()acceptspreviewEnabled/previewPublic;preview()/SandboxPreviewInfonow exposeenabled/public.
[1.3.2] - 2026-06-27
Added
- Sandbox port preview helpers —
sandbox.preview(id)(list previewable ports and their proxy URLs),sandbox.createPreviewLink(id, port, opts?)(session-less, expiring share link),sandbox.previewUrl(id, port, path?)(authenticated proxy path). resourcesoverride (cpuCores/memoryMb/diskMb/pids) onsandbox.create()and on snapshot restore, for sizing a sandbox or a resumed snapshot.
[1.3.1] - 2026-06-24
Added
- Agent Sandbox API (
client.sandbox) — remote runtime containers withexec/code, lifecycle (start/stop/delete), file IO (fs.*and volumeuploadFiles/listFiles/downloadFile),git.*, detachedsessions.*, andsnapshot/fork/restoreSnapshot/waitUntilRunning. - Realtime API (
client.realtime) — WebSocket sessions withconnect/url/twilioStreamUrl, theRealtimeConnectionevent API andrespond()helper, optional voice (STT/TTS) round-trip, and realtime model presets (client.realtime.models).
Changed
- Documented the full API surface on the docs site (previously README-only): Batches, Moderations, Spend & Budgets, Realtime, Agent Sandbox, plus LangChain and OpenTelemetry integration pages.
[1.3.0] - 2026-06-22
Added
- Agent Sandbox API (
client.sandbox) — initial resource for remote runtime containers:create/list/get/delete,exec/code,waitUntilRunning, filesystem (fs.*: list/info/read/write/mkdir/delete/move/find/replace),git.*(clone/status/branches/checkout/add/commit/push/pull/log), and detachedsessions.*. (Lifecyclestart/stop, volume file IO, and snapshot/fork/restore followed in 1.3.1.) reasoning_content/reasoningon chat messages, streamed and non-streamed — reasoning/"thinking" models' chain-of-thought, surfaced end to end including through the LangChain integration (additional_kwargsonAIMessage/AIMessageChunk).
[1.2.0] - 2026-06-03
Added
- Batch API (
client.batches) — OpenAI-compatible async bulk inference:create/list/retrieve/cancel/items/results/resultsRaw. - Moderations API (
client.moderations.create) — OpenAI-compatible content classification backed by guardrails. - Spend API (
client.spend.report) and Budgets API (client.budgets—list/create/update/delete/status).
Removed
client.browserAgents(superseded by thebrowsers/ browser sessions / per-browser MCP split).
[1.1.0] - 2026-05-21
Added
- Audio API (
client.audio.transcriptions,audio.translations,audio.speech). - OCR API (
client.ocr.extract). - Automations API (
client.automations). - Crawler API (
client.crawler+client.crawler.jobs). - JS Sandbox API (
client.jsSandbox). - Reranker API (
client.rerankers, Cohere-compatible). - MCP API (
client.mcp.console,client.mcp.server(key)) with REST + JSON-RPC + SSE helpers. - Tracing streaming (
startStream/appendEvent/endStream) and direct OTLP ingest (ingestOtlp). - File providers (
client.files.providers) and binaryclient.files.download(...).
Changed
HttpClientnow supports binary responses and multipart uploads.- Default
baseURLis the host root. Legacy URLs ending in/api/client/v1are normalised automatically.
Fixed
- URL double-prefix bug when the default
baseURLwas used with resource paths that already include/api/client/v1.
[1.0.6] - 2026-05-14
Added
- Browser automation resources —
client.browsers(profiles),client.browserSessions(Playwright-backed sessions:action/extract/snapshot/screenshot/screenshotLive/pdf/close), andclient.browserMcp(per-browser MCP tool bridge:initialize/listTools). This split superseded the olderclient.browserAgents, which was removed in 1.2.0.
Changed
- Clarified memory API docs/examples (base URL usage, added debug logging) and refined the
MemorySource/MemoryItemStatustypes.
[1.0.5] - 2026-03-25
Housekeeping release. This commit ("Initial public release") is the earliest point in the SDK's public git history; no per-commit detail is available for what changed since 1.0.4.
[1.0.4] - 2026-02-20
Published to npm; no corresponding commit survives in this repository's history — the visible git history begins after this release, at the 1.0.5 snapshot above. No further detail could be grounded in source.
1.0.2 - 2025-10-09
Fixed
- Documentation deployment configuration for GitHub Pages
1.0.0 - 2025-10-08
Added
- Initial release of Cognipeer Console SDK
- Chat completions with streaming support
- Embeddings API
- Vector operations (Pinecone, Chroma, Qdrant)
- File management with markdown conversion
- Agent tracing and observability
- Full TypeScript support
- ESM and CommonJS builds
- Comprehensive documentation
Features
- OpenAI-compatible API
- Type-safe client
- Error handling
- Request/response validation
- Multi-provider support

