// The Coline SDK v2 contract (plan §5.2, §6). // // This is the canonical developer-facing surface being built by the SDK v2 // plan. It becomes the root export when Phases 1-2 cut the platform over // and the v1 surface (`./index.ts`, `./legacy/*`) is deleted. export * from "./manifest"; export * from "./define"; export * from "./capabilities"; export { createHttpCapabilities, ColineCapabilityCallError } from "./capabilities/http-client"; export type { CapabilityEndpoint } from "./capabilities/http-client"; export { createColineAppHandler } from "./server/app-server"; export { RENDER_SURFACE_KIND, RENDER_SURFACES, renderSurfacePayloadSchema, renderSurfaceResponseSchema, renderSurfaceSchema, } from "./server/render-surface"; export type { RenderSurface, RenderSurfacePayload, RenderSurfaceResponse, } from "./server/render-surface"; export { ENDPOINT_REQUEST_KIND, JOB_RUN_KIND, RENDER_PUBLIC_KIND, TRIGGER_EVENT_KIND, endpointRequestPayloadSchema, endpointResponseSchema, jobRunPayloadSchema, jobRunResultSchema, renderPublicPayloadSchema, renderPublicResultSchema, toEndpointResponse, toJobRunResult, triggerEventPayloadSchema, } from "./server/kinds"; export type { EndpointRequestPayload, EndpointResponse, JobRunPayload, JobRunResult, RenderPublicPayload, TriggerEventPayload, } from "./server/kinds"; export { createJobRunInfo, parseEndpointJson } from "./server/runtime-helpers"; export { MAX_INLINE_UPLOAD_BYTES, base64ToBytes, bytesToBase64, encodeUpload, uploadDataToBytes, } from "./capabilities/upload"; export type { EncodedUpload } from "./capabilities/upload"; export { TRIGGER_SCHEDULE_KIND, triggerSchedulePayloadSchema, triggerScheduleResponseSchema, } from "./server/trigger-schedule"; export type { TriggerSchedulePayload, TriggerScheduleResponse } from "./server/trigger-schedule"; export { TOOL_INVOKE_KIND, capabilityCallRequestSchema, capabilityCallResponseSchema, toolInvokeCapabilitiesSchema, toolInvokePayloadSchema, toolInvokeResponseSchema, toolInvokeResultSchema, } from "./server/tool-invoke"; export type { CapabilityCallRequest, CapabilityCallResponse, ToolInvokeCapabilities, ToolInvokePayload, ToolInvokeResponse, ToolInvokeResult, } from "./server/tool-invoke"; export { COLINE_PROTOCOL_HEADER, COLINE_PROTOCOL_VERSION, ColineProtocolError, buildProtocolSigningPayload, buildSignedProtocolRequest, colineProtocolActorSchema, colineProtocolEnvelopeSchema, parseSignedProtocolRequest, } from "./server/protocol"; export type { ColineProtocolActor, ColineProtocolEnvelope, ColineProtocolErrorCode, ParsedProtocolRequest, SignedProtocolRequest, } from "./server/protocol"; export { COLINE_DELIVERY_HEADER, COLINE_SIGNATURE_HEADER, COLINE_TIMESTAMP_HEADER, hmacSha256Hex, timingSafeEqualHex, } from "./server/signing"; export { actions, colineUiActionSchema, colineUiNodeSchema, ui } from "./tree/tree"; export type { ColineUiAction, ColineUiNode } from "./tree/tree"; export { CHAT_CARD_ALLOWED_NODE_TYPES, CHAT_CARD_MAX_DEPTH, CHAT_CARD_MAX_NODES, CHAT_CARD_MAX_TABLE_ROWS, chatCardTreeSchema, validateChatCardTree, } from "./tree/chat-card"; export type { ChatCardTree, ChatCardValidation } from "./tree/chat-card"; export * from "./capabilities/workspace"; export * from "./capabilities/record-access"; export * from "./capabilities/collection-client"; export * from "./capabilities/live-collection";