
Security News
GPT-6 Astra Attempts Supply Chain Attacks Against Open Source Maintainers in Testing
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.
@essentialai/cogent
Advanced tools
Shared types, Zod schemas, and error codes for the Cogent bridge ecosystem.
This package provides the contract layer used by both @essentialai/cogent-bridge (MCP client) and @essentialai/cogent-server (cloud relay server).
npm install @essentialai/cogent
Peer dependency: zod (^3.25.0 || ^4.0.0)
SessionInfo, CreateSessionRequest/Response, JoinSessionRequest/ResponsePeerInfo, RegisterPeerRequest/Response, ListPeersResponseSendMessageRequest/Response, MessageRecord, GetHistoryResponseWsFrame, PeerConnectedFrame, MessagePushFrame, HeartbeatFrameRouteContract mapping all 9 REST endpointsEvery type has a corresponding Zod schema for runtime validation:
import { CreateSessionRequestSchema, JoinSessionResponseSchema } from "@essentialai/cogent";
// Validate incoming request
const parsed = CreateSessionRequestSchema.parse(requestBody);
// Validate API response
const response = JoinSessionResponseSchema.parse(apiResponse);
31 unified error codes across file, HTTP, WebSocket, and auth domains:
import { ErrorCode, BridgeError } from "@essentialai/cogent";
throw new BridgeError(
ErrorCode.SESSION_NOT_FOUND,
"Session abc-123 not found",
"Check the session ID or create a new session"
);
Type-safe API endpoint definitions:
import { API_ROUTES } from "@essentialai/cogent";
// API_ROUTES.createSession -> { method, path, request schema, response schema }
// API_ROUTES.joinSession -> ...
// API_ROUTES.registerPeer -> ...
generateSessionId() / generatePeerId() / generateMessageId() -- UUID v4 generatorsgenerateSessionLabel() -- human-readable adjective-noun-hex labelsisValidSessionId() / isValidSessionLabel() -- format validatorsimport { BridgeState, PeerInfo } from "@essentialai/cogent/file";
Types for the local file-based transport (used in local-only mode).
Apache-2.0
FAQs
Shared types, schemas, and contracts for Cogent Bridge
The npm package @essentialai/cogent receives a total of 86 weekly downloads. As such, @essentialai/cogent popularity was classified as not popular.
We found that @essentialai/cogent demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.

Product
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.

Security News
pnpm 12 rewrites the package manager in Rust, cutting install times by up to 90% while preserving pnpm 11 workflows and lockfiles.