sgcWebSockets 2026.11.0 Latest
- 2026.11.0: 2026 November
- NewNew OpenPGP support in the sgcCrypto pack, in pure Object Pascal with no external library and no Indy dependency: generate, import and export keys and keyrings (RSA, Ed25519, Ed448, X25519, X448, NIST P-256/384/521 and Brainpool), encrypt and decrypt with public keys or passphrases, sign, clearsign and verify, detached and inline signatures, ASCII armor and ZIP/ZLIB compression. Supports v4 keys (compatible with GnuPG) and the new v6 keys and AEAD encryption of RFC 9580 (OCB, EAX, GCM), and reads the OCB encrypted messages written by GnuPG 2.4. New OpenPGP demos in Demos\18.Cryptography\09.OpenPGP (keys, text encryption and signatures) and Demos\18.Cryptography\10.OpenPGP_Files (encrypt and decrypt any file with public keys or a passphrase).
- NewOpenPGP: new stream based API in sgcCrypto_PGP_Stream to encrypt, decrypt, sign and verify data of any size with constant memory, for example large email attachments or files: sgcPGP_EncryptStream, sgcPGP_EncryptSymmetricStream, sgcPGP_SignStream, sgcPGP_DecryptStream, sgcPGP_VerifyStream and sgcPGP_VerifyDetachedStream. Works with any TStream, v4 and v6 keys, SEIPD v1 and v2 (AEAD), the GnuPG 2.4 OCB messages, ASCII armor and ZIP/ZLIB compression.
- NewOpenPGP: new PGP/MIME (RFC 3156) helpers in sgcCrypto_PGP_MIME to create and read multipart/signed and multipart/encrypted email messages (including signed and encrypted, and nested signatures), detect inline PGP messages, and Autocrypt Level 1 support: build and parse the Autocrypt and Autocrypt-Gossip headers and create and import the Autocrypt Setup Message. Works with any mail library, no Indy dependency.
- NewsgcCrypto: new HPKE, Hybrid Public Key Encryption (RFC 9180), in pure Object Pascal in the new sgcCrypto_HPKE unit: base, psk, auth and auth_psk modes, DHKEM with X25519, X448, P-256, P-384 and P-521, HKDF-SHA256/384/512, AES-128-GCM, AES-256-GCM, ChaCha20-Poly1305 and export only, single shot and context based encryption and secret export. Validated with the official RFC 9180 test vectors.
- NewsgcCrypto: new incremental DEFLATE/ZLIB compressor and decompressor (TsgcDeflateStreamCompressor and TsgcDeflateStreamDecompressor) and new HKDF-SHA512 functions.
- NewsgcCrypto: new AES-OCB (RFC 7253) and AES-EAX authenticated encryption modes, and a new sgcCrypto_Deflate unit with DEFLATE and ZLIB compression in pure Object Pascal.
- NewServers can now load a renewed TLS certificate without a restart. Call the new ReloadCertificates method after the certificate is renewed (for example by Let's Encrypt): new connections use the new certificate and connections that are already open keep working. A certificate that cannot be loaded is rejected and the server keeps the previous one. Works with OpenSSL, SChannel, the native TLS, IOCP, EPOLL and the http.sys server.
- NewStatically linked OpenSSL (sgcIdSSLOpenSSL_Static): new functions available in sgcIdSSLOpenSSLHeaders for Win32 and Win64: X509_get0_notBefore, X509_get0_notAfter, X509_getm_notBefore, X509_getm_notAfter, ASN1_TIME_diff, SSL_get_shutdown, d2i_PKCS7_bio, PKCS7_free, d2i_CMS_bio, CMS_get0_type, CMS_get0_content, CMS_get0_eContentType, CMS_ContentInfo_free, RAND_priv_bytes and RSA_pkey_ctx_ctrl. They are also loaded from the OpenSSL DLLs when the static unit is not used.
- NewServers: new public event OnMaxConnectionsExceeded on TsgcWebSocketServer, TsgcWebSocketHTTPServer and TsgcHTTPServer, raised with the peer IP and port every time a connection is rejected because MaxConnections has been reached, on every IOHandler (Default, IOCP and EPOLL). It runs in the thread that rejects the connection and is not synchronized.
- NewKerberos single sign-on for servers (Enterprise edition): with Authentication.Negotiate enabled, users of an Active Directory or MIT Kerberos domain are signed in without a password prompt, on Windows and on Linux, for HTTP requests and WebSocket connections. The new OnNegotiateAuthentication event lets the application accept or reject each user (off by default).
- NewsgcHTML RichEditor: export the document to PDF. Set the new ExportPDF property to show an Export PDF button that sends the content of the editor to ExportPDFURL, and call the new SaveToPDFStream method on the server to return it as a PDF with selectable text, keeping headings, bold, italic, underline, strikethrough, colors, font sizes, serif and monospace fonts, lists, alignment, indents, quotes, code blocks and images. TsgcHTMLExportPDF has a new AddHTML method to write HTML content into a PDF report, and new italic and bold Courier fonts.
- NewNew TsgcHTTPGateway component: the HTTP server can now forward requests to FastCGI backends (PHP-FPM, php-cgi and others) and SCGI backends over TCP, so Apache or nginx is no longer needed in front of them. Each handler is selected by path, prefix or extension (for example *.php to PHP-FPM and /app/ to a Python SCGI application), the CGI environment variables are built from the request following RFC 3875, the backend output is returned with its status and headers, FastCGI connections can be kept open and reused, the FastCGI error output is delivered to the OnStdErr event, and the gateway answers 502, 503 and 504 when a backend cannot be reached, is overloaded or does not answer in time. Call the Process method from OnCommandGet and OnCommandOther. New demo in Demos\20.HTTP_Protocol\18.FastCGI_SCGI_Gateway.
- NewTsgcHTTPGateway: new DirectoryIndex and FallbackResource properties for the handlers, like DirectoryIndex and FallbackResource in Apache (index and try_files in nginx). DirectoryIndex sends a request for a folder, such as / or /blog/, to its index file, for example index.php, and redirects a folder requested without the final slash. FallbackResource sends the requests that are not an existing file or folder to a script such as /index.php, so the pretty URLs of WordPress, Laravel and similar PHP applications work without rewrite rules.
- NewAI: new TsgcAIVoiceTranslator component, realtime speech to speech translation with OpenAI gpt-realtime-translate: streams the microphone, plays the translated speech and raises live transcripts of the source and the translated text. Language sets the target language and can change during a session, SendAudio accepts audio from your own source.
- NewsgcHTML: Bootstrap Icons 1.11.3 are now embedded and served at /bootstrap-icons.min.css, with the font inlined, so pages can use bi icons without a CDN.
- NewsgcHTML: server events. Tabs, Select and Rating have a new OnChange event, TreeView, Calendar, Scheduler and Stepper a new OnSelect event, Modal new OnButtonClick and OnClose events and Toast new OnBodyClick and OnClose events. They fire on the server when the user acts on the component in the browser. Link the component to the engine with its HTMXEngine property and assign the event: the browser posts to the new ComponentEvents.Endpoint of the engine (/htmx-event by default) with the CSRF token and the session of the request, and the handler can return elements with hx-swap-oob to update the page. Pages without event handlers are not changed.
- NewsgcHTML: form validation. Every field of TsgcHTMLComponent_Form has a new Rules collection with required, range, length, regex, email and custom rules. The rules are written as HTML5 constraints with localized messages, so the browser checks them before the form is sent and shows the message under the field. The new Validate method runs the same rules on the server and fires the new OnValidate event for the custom rules, and GetValidationResponse returns the errors as htmx out of band elements that show inline. With the new LiveValidation property and the form linked to the engine with HTMXEngine, each field is checked on the server as soon as it changes. Forms without rules are not changed.
- NewsgcHTML: input masks. TsgcHTMLComponent_Edit and the fields of TsgcHTMLComponent_Form have new Mask and MaskChar properties with the characters of the Delphi EditMask (0, 9, #, L, l, A, a, C, c, >, < and \), so the EditMask of a TMaskEdit can be copied as is, for example (000) 000-0000. The browser formats the value as the user types and shows the mask as the placeholder, and phones open the numeric keypad when the mask only has digits. A masked form field is checked in the browser and on the server by Validate and LiveValidation. The DFM importer carries the EditMask of a TMaskEdit across. The new helpers sgcHTMLMaskApply, sgcHTMLMaskMatches and sgcHTMLMaskStrip format a database value, check a posted value and remove the literals before saving. The 24.FormValidation demo has a masked phone field. Inputs without a mask are not changed.
- NewsgcHTML: New TsgcHTMLComponent_QueryBuilder component, a visual query and filter builder with conditions grouped by AND and OR, over the columns of a linked Grid or its own Fields, with the operators of the AI Data Pack and value inputs that follow the type of each field. Ask a question in plain language and the AI Assistant turns it into rules the user can see and edit, also offline with the rule based fallback. GetSQLWhere writes the condition for your database with parameters only, Matches filters rows in memory, ToJSON and LoadFromJSON keep the rules in the session, and the new OnApply event receives the rules of each request. The Grid has a new RowFilter hook for in memory filtering. The texts are localized in the 17 sgcHTML languages. New demo 25.QueryBuilder.
- NewsgcHTML: accessibility (WCAG 2.2). Every component has new AriaLabel, AriaRole and AriaDescribedBy properties, written on its root element (on the input itself for the form controls), and the values set by the author always win. Turn on the new accessibility mode once at startup: Modal and Offcanvas are announced as dialogs with their title, Toast and Snackbar become live regions, pages get a skip link to the main content, and a keyboard engine adds arrow key navigation to Tabs, TreeView, Calendar, MultiSelect, ContextMenu and the menus, with the WAI-ARIA roles and states they need. With the mode off, pages are not changed. The help has a new Accessibility topic and an Accessibility Conformance Report (VPAT 2.5, WCAG 2.2 A and AA). Call sgcHTMLSetAccessibility(True) to turn the mode on.
- NewsgcHTML: DatePicker upgrade. New Size and Disabled properties like the TimePicker, presets (Today and 7 days ago by default, or your own captions and day offsets), disabled dates and disabled week days checked in the browser and on the server with the new IsDateAllowed method, and a new CalendarPopup mode: a text input formatted with the date pattern of the locale (or DisplayFormat), typed through the input mask, and a popup calendar that starts on the first day of the week of the locale (or FirstDayOfWeek), greys out the dates that cannot be chosen, shows ISO week numbers with WeekNumbers and can be used from the keyboard. The posted value is always the ISO date. GetDisplayValue and ParseDisplayDate format and read dates in any pattern. Date patterns, first day of week and captions in the 17 sgcHTML languages. A DatePicker that uses none of this is not changed.
- NewsgcHTML: Scheduler upgrade: resources (Resources, GroupByResource), recurring events (RecurrenceRule in RFC 5545 format and RecurrenceExceptions), a new Timeline view next to Day, Week and Month, a localized toolbar, drag to move and resize (AllowDrag, AllowResize, OnEventMove, OnEventResize) that also works from the keyboard with Alt and the arrow keys, SlotMinutes, FirstDayOfWeek and MaxEventsPerDay. With LiveSync the application broadcasts GetLiveSyncFragmentHTML after a change and every user refreshes their own view. Lock, Unlock and SharedLock make the shared events safe for several users. A scheduler that uses none of this is not changed. New demo 26.Scheduler, a live meeting room scheduler.
- NewsgcHTML: Calendar: events by date (Date, EndDate) and recurring events, navigation (previous, today, next) handled on the server without PrevURL and NextURL, drag an event to another day (AllowDrag, OnEventMove) also with the keyboard, FirstDayOfWeek, LiveSync, GetMonthHTML, Lock, Unlock and SharedLock. With an HTMX engine linked and no PrevURL or NextURL, the header now shows working navigation buttons instead of empty spans.
- NewsgcHTML: new recurrence rule engine for the RFC 5545 rules (DAILY, WEEKLY, MONTHLY and YEARLY with INTERVAL, COUNT, UNTIL, BYDAY with ordinals, BYMONTHDAY, BYMONTH, WKST and exception dates), used by the Scheduler and the Calendar: new unit sgcHTML_Recurrence with TsgcHTMLRecurrenceRule, sgcHTMLRecurrenceExpand, sgcHTMLRecurrenceNext, sgcHTMLRecurrenceIsValid and sgcHTMLRecurrenceAddException.
- NewsgcHTML: FileUpload upgrade: chunked and resumable uploads through the component events endpoint (ChunkedUpload, ChunkSize) with a progress bar, so large files reach the server in small parts and continue after a dropped connection, size and count limits (MaxFileSize, MaxFiles) and AllowedExtensions checked in the browser and on the server, image thumbnails (ShowThumbnails), paste from the clipboard (AllowPaste), AutoUpload, UploadFolder and the new OnUploadStart and OnUploadComplete events, which can refuse a file or return its URL. A resent last part never completes the upload twice. A JavaScript API lets other components upload through it, the RichEditor uses it for images. A FileUpload that uses none of this is not changed.
- NewsgcHTML: RichEditor upgrade: a new Standard toolbar preset and CustomToolbar for your own buttons, images uploaded through a linked FileUpload (ImageUpload) instead of being stored inline (AllowInlineImages), mentions with @ from a list or from the server with OnMentionSearch, a character limit with a counter (MaxLength, IsWithinMaxLength) and a server side HTML sanitizer: the new sgcHTMLSanitizeHTML function and GetSanitizedValue keep only the tags and attributes the editor produces and remove scripts, event handlers and unsafe links, also when the value is loaded with SanitizeOnLoad. A RichEditor that uses none of this is not changed.
- NewsgcHTML: Diagram upgrade: automatic tree and layered layouts (Layout, LayoutDirection, NodeSpacing, LevelSpacing), straight, orthogonal and curved connectors (ConnectorStyle), an org chart mode with photo and subtitle cards (OrgChart), export to SVG and JSON (GetSVG, ToJSON, LoadFromJSON, ShowExportButton) and editing in the browser: move, add, delete, connect and rename nodes with the mouse or the keyboard (Editable, ShowToolbar, SnapToGrid), with a server event for every change (OnNodeMove, OnNodeAdd, OnNodeDelete, OnConnect, OnDisconnect, OnLabelChange, OnLayout). With LiveSync every user sees the changes of the others, and Lock, Unlock and SharedLock make the shared diagram safe. A Diagram that uses none of this is not changed.
- NewsgcHTML: Map upgrade: markers from a dataset (LoadFromDataSet, MarkerID), marker clustering with the embedded Leaflet.markercluster 1.5.3 (Clustering, ClusterRadius), GeoJSON layers (GeoJSONLayers), your own tile server (TileURL, TileAttribution, TileSubdomains, MinZoom, MaxZoom) and live markers that move, appear and disappear for every user through fragments (LiveMarkers). The Leaflet files can be served from your own paths. A Map that uses none of this is not changed.
- NewsgcHTML: Grid: range selection with the mouse or Shift and the arrow keys and copy to Excel (CellSelection), paste from Excel with the new OnPaste event to accept or refuse the values (AllowPaste), a right click row menu through a linked ContextMenu (RowContextMenu), whose new OnItemClick event receives the row, and import of CSV, TSV and XLSX files (AllowImport, ImportMaxSize, ImportHasHeader, OnImport). The new sgcHTMLReadXLSX function reads any sheet of an Excel file. A Grid that uses none of this is not changed. New demo 27.Workbench with the upgraded FileUpload, RichEditor, Diagram, Map and Grid.
- NewsgcHTML: New TsgcHTMLComponent_FileManager component, a file manager for document portals with a folder tree, a breadcrumb, details and thumbnails views and a details pane that previews images, PDF files (embedded pdf.js) and text files. Users create folders, upload with drag and drop (chunked and resumable, with progress), download, rename, delete, move and copy with the mouse, the keyboard, the context menu or copy and paste, and search by name. Storage goes through a provider: the built in file system provider works on RootFolder, and a subclass of TsgcHTMLFileManagerProvider can keep the files in a database or a cloud store. Secure by default: only downloads are allowed until Permissions enables more, every path is validated on the server, and files are served through signed links that expire (TokenLifetime, TokenSecret). GetShareURL creates download links that work without a session, and OnGetPermissions, OnBeforeOperation and OnAfterOperation apply roles per user and feed an audit trail. CustomCommands with an Extensions filter and OnItemDetails add your own actions and details, and LiveSync refreshes every browser that shows a changed folder. The HTMX engine serves the files at <ComponentEvents.Endpoint>/file and streams them in the Indy, HTTP.sys and WebBroker servers. The texts are localized in the 17 sgcHTML languages. New demo 28.FileManager, a document portal with users and roles, a live audit trail, presence, storage statistics and PDF signing.
- NewsgcHTML: New TsgcHTMLComponent_Tooltip component, which attaches tooltips to any element by CSS selector or by component, with placement, trigger, delay, colour variant, width and HTML content that is sanitized on the server. Tooltips can be hovered, are dismissed with Esc and also show on keyboard focus (WCAG 1.4.13), and elements swapped in by htmx get their tooltips too.
- NewsgcHTML: New TsgcHTMLComponent_Tour component, a guided product tour for first-run onboarding: a spotlight on the target of each step, a step card with Back, Next, Skip and Done buttons and progress, keyboard navigation with focus moved into the card and returned at the end, right to left support, AutoStart remembered per browser, and the OnStepChange, OnSkip and OnComplete server events to record the onboarding of each user. The texts are localized in the 17 sgcHTML languages. New demo 29.Tour, a SaaS console with tooltips, two tours and a live onboarding funnel.
- NewsgcHTML: New TsgcHTMLComponent_CodeEditor component, a code editor built on CodeMirror 6, embedded and loaded once per page with no CDN, with syntax highlighting for SQL (Standard, PostgreSQL, MySQL, MSSQL and SQLite dialects), JSON, JavaScript, HTML, CSS, XML, Markdown, Python and Pascal. It has line numbers, folding, find and replace, autocomplete with SQL table and column completion from SQLSchema or a linked Grid, JSON checking in the browser and on the server (ValidateJSONValue), light and dark themes that follow the page, and a read-only mode. The editor posts its value with the form like any other field, works with the Form validation rules and raises the OnChange server event. The texts are localized in the 17 sgcHTML languages. New demo 30.CodeEditor, an admin console with a SQL console, JSON settings applied live and code snippets.
- NewsgcHTML: New TsgcHTMLReport component, a banded report engine that prints to PDF with the own PDF engine, with no external reporting tool. Report, page and group headers and footers and a detail band, designed in the Object Inspector or in code; text, image, line, rectangle, rich text, chart, barcode and QR code items; data from a TDataSet, a Grid, a JSON array or an event; expressions such as [Customer], [Amount:#,##0.00], [Sum(Amount)], [Count], [Report.Page] of [Report.Pages] and [Param.Region]; nested groups with subtotals, a grand total, KeepTogether, page breaks and repeated group headers; report parameters; PrintIf conditions; charts per group or for the whole report (bar, horizontal bar, stacked, line, area, pie and doughnut) drawn into the PDF on the server; number and date formats that do not depend on the regional settings of the server; LoadFromGrid builds a ready report from a Grid in one call, and ExportToXLSX writes the data to Excel.
- NewsgcHTML: New TsgcHTMLComponent_ReportViewer component that shows a TsgcHTMLReport in the browser: a parameters panel (text, number, date, date range, list and checkbox), a preview through the embedded pdf.js so the preview and the printout are the same PDF, Print, Download PDF and Export to Excel. The files are generated on request through signed links that expire and are bound to the session, OnGetReport returns a report per user and OnBeforeGenerate checks permissions and values. New PDF drawing methods (polygon, ellipse, arc, pie, rounded rectangle, dashed lines, rotated text) and the sgcHTMLReportDrawChart, sgcHTMLReportDrawBarcode and sgcHTMLReportDrawQRCode helpers. The texts are localized in the 17 sgcHTML languages. New demo 31.ReportViewer with an invoice, a sales report by region with charts and printing of a grid.
- FixedsgcHTML PDFViewer: replacing a viewer on the page, for example with an htmx swap, left the window resize listener of the previous viewer in place.
- NewsgcHTML: IDE palette bitmaps for the FileManager, Tooltip, Tour, CodeEditor, Report and ReportViewer components.
- NewsgcHTML PDF export: Unicode text with TrueType fonts. AddFont and AddFontFromStream load .ttf and .ttc files, SetFontName draws with them, FallbackFonts and AutoFallback (fonts installed on the system) cover characters the current font lacks, fonts are subset and the text can be copied and searched, Chinese, Japanese and Korean lines break correctly, and Arabic and Hebrew print right to left with Arabic letters joined. New HTML layout API (LayoutHTML, DrawLayout, MeasureLayout). PDFs that use no TrueType font are unchanged.
- NewsgcHTML: TsgcHTMLReport subreports (SubReport and LinkFields on a subreport item, OnBeforeSubReport, nested subreports that continue across pages), rich text items with AutoHeight that flow across pages, report fonts (Fonts, FontsFolder, DefaultFontName, FallbackFonts, AutoFallback, item FontName) so reports print Chinese, Japanese, Korean, Arabic, Hebrew, Cyrillic and Greek text, and the report definition as JSON (SaveToJSON, LoadFromJSON, OnGetSubReport). A report can be generated from several threads while its definition changes, with no locking in the application.
- NewsgcHTML: New TsgcHTMLComponent_ReportDesigner, a visual report designer in the browser for developers and end users: toolbox, data fields, bands, drag and resize of items between bands, property inspector, parameters, fonts, undo and redo, live preview and save through OnSave, with designs per user. In the Delphi IDE (10.4 and later) a double click on a TsgcHTMLReport opens the same designer and saves the report into the form. Components can accept larger server event bodies (MaxComponentEventBody). The texts are localized in the 17 sgcHTML languages. New demo 32.ReportDesigner with orders and nested subreports, a letter whose text flows across pages, an invoice in six languages and per user designs.
- NewsgcHTML: New TsgcHTMLComponent_ImageCropper for profile photos and scanned documents. Photo mode: crop box with handles, aspect ratio presets, circle shape for avatars, zoom, pan, rotate, straighten, flip and a live preview. Document mode: four corners with a magnifier, perspective correction and the Grayscale, Black and white and Enhance filters. Images come from a file, drag and drop, paste, the camera or a URL, and the result is rendered from the original pixels as JPEG, PNG or WebP at the size you set. OnCrop and UploadFolder save it on the server, which checks the format, the size and the image header before it accepts it, and FieldName and TargetSelector put it into a form or an image. Keyboard accessible and localized in the 17 sgcHTML languages. New demo 33.ImageCropper.
- NewsgcHTML: New TsgcHTMLComponent_FormBuilder, a form designer in the browser for end users. Users add text, choice, date, file and layout fields from a toolbox, arrange them on a 12 column grid, set labels, options, validation rules, input masks and conditional visibility, preview the real form and save it. The design is a JSON definition of a TsgcHTMLComponent_Form, so the published form keeps validation, masks and live validation; OnSave and OnGetForm store and load designs per user, and the server checks every posted definition. TsgcHTMLComponent_Form adds LoadFromJSON, SaveToJSON, GetJSONSchema (JSON Schema 2020-12), GetValuesJSON, conditional fields, heading, text block and divider items, Title, Description and ColSpan columns. Localized in the 17 sgcHTML languages. New demo 34.FormBuilder.
- NewsgcHTML: New TsgcHTMLComponent_Spreadsheet, a grid with formulas for web apps. Cells take formulas with 54 functions (math, logic, text, lookups with VLOOKUP, HLOOKUP, INDEX and MATCH, SUMIF and COUNTIF, dates and PMT, FV, PV and NPV), number, currency, percent and date formats, bold, italic, alignment and colors, and the keyboard and clipboard work like Excel, copy and paste included. Inserting and deleting rows and columns adjusts every reference. The server calculates every change, checks every limit and sends back the changed cells; OnCellChange validates and persists, OnGetSheet gives each user their own sheet, and LiveSync updates every open browser. XLSX import and export keep formulas, styles, column widths and frozen panes. New unit sgcHTML_Formula with the formula engine and TsgcHTMLSpreadsheetSheet, also usable without the component. Localized in the 17 sgcHTML languages. New demo 35.Spreadsheet.
- FixedsgcHTML XLSX export: cells can now carry formulas, styles, column widths and frozen panes; a new sgcHTMLReadXLSXSheet reads them back. Workbooks written the existing way are unchanged.
- NewAI: MCP client tool pinning, the client keeps a SHA-256 fingerprint of every tool it lists and blocks a tool whose description, input schema or annotations change until you accept the change, with the new synchronous GetToolsList and CallTool methods.
- NewAI: TsgcAIChat supports tool calling on all providers with ChatWithTools and AddToolResult (OpenAI, Anthropic, Gemini, DeepSeek, Ollama, Grok and Mistral).
- NewAI: new TsgcAIAgent component, runs the tool loop for you on every provider: offers your tools and the tools of your MCP servers to the model, executes the calls, asks approval for tools that change data, and stops on the answer, MaxSteps, Cancel, the token limit or an error, with OnStep and OnUsage events.
- NewAI: TsgcAIChat model aliases, ChatOptions.Model can be a name like smart or fast mapped to a model and provider in ModelAliases, loaded from a file, JSON or a URL.
- NewAI: TsgcAIChat Fallbacks, when a provider fails with a connection error, HTTP 5xx, HTTP 429 or an unknown model, the request is sent to the next provider and model of the list, OnFallback reports it.
- NewAI: TsgcAIChat reports the input, output and cached tokens of every request in LastUsage and OnChatUsage, with UserId and SessionId.
- NewAI: new TsgcAIUsageMeter component, assign it to TsgcAIChat.UsageMeter to price every request by provider and model, keep the totals per user and session and enforce total, daily or monthly budgets.
- NewAI: TsgcAIUsageMeter exports the usage to CSV or to any TDataSet and can send every request as an OpenTelemetry span (GenAI conventions) to an OTLP/HTTP collector without blocking the chat.
- NewAI: new TsgcAIGuardrails for TsgcAIChat and the agent: allowed and denied tools with wildcards, tool approval, redaction of e-mails, phones, cards, IBANs, IP addresses and custom patterns before the request with the originals restored in the answer, and JSON schema validation of structured answers.
- NewDemos: new AI Agent demo (15.AI\02.Applications\11.AIAgent), an agent that answers questions about a list of invoices with local tools and an approval dialog, optional MCP tools with tool pinning, model aliases and a fallback provider, PII redaction and a usage meter with a session budget and CSV export.
- NewAI: TsgcAIChat.LastFinishReason returns why the provider ended the last answer, and TsgcAIAgent stops with aasrMaxTokens when the final answer was cut by the token limit.
- FixedDelphi 7 to Delphi 2009 with the Indy that ships with Delphi: decoding base64 into bytes no longer damages binary data, which broke JWT signatures among other things.
- FixedHTTP/3 server: a request with an Authorization header no longer fails with an access violation, so Basic and Bearer authentication now work over HTTP/3.
- Fixedhttp.sys server on Delphi 7: the server now starts (it failed with "parameter is incorrect") and binding an SSL certificate no longer crashes.
- Fixedhttp.sys server: logins with a Windows account through Basic authentication no longer leak a handle per login.
- Fixedhttp.sys server: a request whose headers do not fit in the receive buffer (very large cookies or Kerberos tokens, long query strings) is now read correctly; it could be read from freed memory or never answered.
- Fixedhttp.sys server: an unexpected error while receiving requests is now reported in OnException and the server either keeps working or reports Active = False so it can be restarted; it used to stop answering silently while still reporting Active.
- FixedOpenSSL: fixed a sporadic access violation at address 00000001 when loading a PKCS#12 (.p12) certificate with a password, when several components using OpenSSL run in the same process. The password callback is now read with the official OpenSSL API.
- FixedOpenSSL: fixed IOCP and EPOLL TLS servers that never closed a connection whose first bytes are not TLS (for example a plain HTTP request) when AllowPlainText is disabled, so the socket kept a MaxConnections slot until the client gave up. While such connections were open, other TLS clients could also fail during the handshake.
- FixedmadExcept no longer reports an InitializeCriticalSection leak on shutdown from sgcWebSocket_Helpers. On Windows the NotifyMethod lock is now an SRW lock, which needs no cleanup (a critical section is kept as the fallback for Windows XP).
- FixedSetup: fixed the detection of the installed Delphi/C++Builder versions. The trial installer for all versions no longer shows a "has not been detected" message for every version that is not installed (starting with Delphi 7), and no longer skips building the packages of the versions that are installed. The Lazarus trial no longer reports that Delphi 13 has not been detected. A version is now also detected when its App registry value is missing or out of date, and a version that is installed but has not been started yet with the current Windows user is now named on the versions page.
- FixedSetup: the trial installer now installs the components in the Embarcadero Trial edition of Delphi and C++Builder, as it already did in the Community Edition. Before, the files were only extracted and the IDE showed no components. When a design package to register is not found, the installer now names the missing files and their folder instead of finishing without an error.
- FixedSetup: with the "Build Rad Studio IDE Win64" option, the trial installer now copies the 64-bit BPLs to the Win64 BPL folder, where it used to copy the 32-bit ones, so the components load in the RAD Studio 64-bit IDE.
- FixedSetup: when a package fails to compile, the error message now shows the compiler error from the log instead of a generic Windows message such as "Incorrect function". When the output file cannot be written because Delphi or another application is using it, the installer now says so and offers to retry the compilation. The installer also detects a running Delphi/C++Builder IDE when its Object Inspector is docked, and asks to close it before installing.
- FixedSetup: the C++Builder 10.1 Berlin and later Win64 package is now compiled on the customer machine from the package source with dcc64, the same way as the release build, instead of the C++Builder project with the Win64 linker, which could produce a package with broken exception handling.
- FixedSetup: the Back button of the Delphi versions page now returns to the IDE page; before, it stayed on the versions page. The Options page is still shown only after the Options button of the IDE page.
- FixedHTML designer, Delphi 10.4 and later: opening Tools > Options in the IDE no longer fails with "Resource TsgcHTMLDesignAIOptionsFrame not found".
- FixedsgcHTML: the Bootstrap and htmx resources (sgcHTMLResources.RES) are now linked into the application. Before, the application failed at runtime with "Resource SGC_CSS_BOOTSTRAP not found" or "Resource SGC_JS_HTMX not found".
- FixedsgcHTML: PDFViewer: fixed a security issue (CVE-2024-4367) where opening a crafted PDF could run JavaScript in the page. The viewer now opens documents with isEvalSupported set to false, which closes the issue for the bundled pdf.js 3.11.174 and for any pdf.js version set in PDFJSLibURL.
- FixedsgcHTML: the Kanban (SortableJS), RichEditor (Quill), Map (Leaflet) and PDFViewer (pdf.js) components now load their JavaScript libraries from the application itself, embedded as resources, instead of a public CDN, so pages work on intranets and offline networks. Each library is linked only when its component is used. The Site component now uses the embedded Bootstrap too. SortableJSPath, PDFJSLibURL and PDFJSWorkerURL can still point to a CDN.
- FixedsgcHTML: PDFViewer: pdf.js updated from 3.11.174 to 5.7.284 (legacy build, embedded). JPEG 2000, JBIG2 and CCITT images decode without WebAssembly through the embedded fallbacks. Supported browsers are Chrome and Edge 125+, Firefox ESR and Safari 18+. PDFJSLibURL can still point to a pdf.js 3.x file.
- FixedsgcHTML: PDFViewer: Download and Print of a PDF set through Base64 data produced an empty file.
- FixedsgcHTML: Offcanvas: the panel was rendered without the offcanvas class that Bootstrap needs, so it was neither hidden nor positioned as a side panel. The root element now has the offcanvas class together with the placement class.
- FixedsgcHTML: TreeView: a node with children was rendered with two style attributes, so the browser ignored the second one and the pointer cursor never showed. The row now has a single style attribute with both values.
- FixedsgcHTML: DatePicker: the Build class function set the component name instead of the ElementName, so the input was rendered without a name and with the id dp_. It now sets ElementName.
- FixedsgcHTML: SignaturePad: a pad rendered while hidden, for example inside a Modal or a Tab that is not shown yet, had a canvas of 0x0 pixels, so nothing could be drawn and an empty signature was posted. The canvas now takes its size when it becomes visible and keeps the drawing when it is resized.
- FixedAI: the default models now use current model ids, because the old ones are retired: TsgcHTTPOpenAIChatBot_Transcription.Model whisper-1 to gpt-transcribe, TsgcHTTPOpenAIChatBot_ChatCompletion.Model gpt-4o-mini to gpt-6-luna, TsgcAIVoiceAgent transcription gpt-4o-mini-transcribe to gpt-transcribe, the OpenAI speech request tts-1 to gpt-4o-mini-tts and TsgcHTMLComponent_AIChat.ModelName gpt-4o to gpt-6-astra. The translation endpoint keeps whisper-1.
- FixedAI: the demos, help and samples use current model ids of OpenAI, Anthropic, Google Gemini, xAI Grok, Mistral and DeepSeek.
- FixedAI: TsgcAIOpenAITranslator no longer depends on whisper-1, which OpenAI removes with the /v1/audio/translations endpoint on 2027-02-26. It now transcribes with gpt-transcribe and translates the text with a chat model: new TranslatorOptions.Translation.ChatModel (gpt-6-luna) and Language (English by default, so the output is the same as before).
- FixedAI: TsgcHTTP_API_OpenAI CreateTranscription and CreateTranslation with a request FileName now record the microphone into that file. Before, they recorded to an empty path and raised "The audio file has not been created.".
- FixedC++Builder: the runtime packages link again. The Negotiate (Kerberos) authentication unit now loads secur32.dll on first use instead of importing it statically, which left 8 unresolved SSPI externals in every C++Builder version.
- FixedHTTP/2 server: connection-specific header fields (Connection, Keep-Alive, Proxy-Connection, Transfer-Encoding, Upgrade, and TE with any value other than trailers) are no longer sent in HTTP/2 responses, as RFC 9113 requires. They were sent when the response set CloseConnection or added them to CustomHeaders, and strict clients treat such a response as malformed.
- FixedHTTP/2 server: Safari closed the connection with a COMPRESSION_ERROR after a few responses, so every request in flight failed with "The network connection was lost". The HPACK encoder halved and regrew its dynamic table once it was full, sending a table size update on almost every response to clients that keep the default header table size. The table now only grows up to the size the peer allows, and is only reduced when the peer lowers its setting.
- FixedHTTP/2: the HPACK encoder no longer carries on when a pending table size update does not fit in the header block, which could leave the dynamic table of the peer out of sync.
- FixedFixed WebRTC connections that sometimes failed with "DTLS error: Handshake failed. the ServerKeyExchange signature does not verify" on one peer and "the peer sent the fatal alert 51" on the other. When ICE moved between the direct path and the TURN relay during the handshake, the peer answering the handshake started a second one for the same peer and the two answers got mixed. All the paths of a peer connection now share one DTLS session.
- FixedC++Builder: C++Builder 12 and 13 Win64x runtime packages, fixed an access violation when freeing an object with an interface field declared in another package (the Win64x linker marks interface type information as code in the .bpi; the build now corrects every .bpi).
- FixedC++Builder: the components were disabled in the form designer for the Windows 64-bit (Modern) platform when the packages were built from the .dpk files, because the package .res files did not declare Win64x.
- FixedSetup: fixed the /platforms= command-line switch, "all" was ignored and could raise an out-of-range error.
- FixedHTTP Gateway: fixed the compilation error "Undeclared identifier: URI" when building with Delphi 7 to 2010 and the Indy 10 version that ships with the IDE.
- FixedHTTP client: TLSOptions.Assign now copies VerifyDepth and Preset, so a custom VerifyDepth set on TsgcAIChat, the API clients or any component that assigns these options is no longer reset to 0.
- FixedWebSocket server: SSLOptions.Assign now copies VerifyCertificate_Options and the OpenSSL options shared with the client (APIVersion, LibPath, VersionMin, CurveList, LegacyProvider).
- FixedUDP: DTLSOptions.Assign now copies VerifyCertificate_Options.
- FixedAI: MCP client: the tools listed by a server now keep their input schema exactly as received in RawInputSchema, so nested objects, enums, type arrays and additionalProperties are no longer lost, and a server that relists those tools sends the same schema.
- FixedAI: MCP client: assigning MCPOptions (or HeartBeat) no longer raises "Cannot assign a TsgcAI_MCP_Client_HeartBeatOptions", and assigning the authentication options now copies the ApiKey value and the CustomHeader header and value.
- FixedAI: Anthropic answers that start with a thinking block (Claude Haiku 5.5, Sonnet 5.5, Opus 5.5) returned an empty text, now every text block is read and the thinking blocks of a tool turn are sent back unchanged to Anthropic.
- FixedAI: TsgcAIChat structured output with Anthropic (ChatJSON, ResponseFormat rfJSONSchema) failed on Claude Sonnet 5.5, Opus 5.5 and Fable 5.1, which reject a forced tool, now the schema is sent as output_config.format, so it also works together with tools and with ChatStream.
- FixedAI: TsgcAIChat with Anthropic structured output no longer fails with HTTP 400 when the JSON schema uses keywords the API does not support, like minimum, maximum, minLength, maxLength or maxItems: they are moved into the description of the field, the way the official SDKs do, and Guardrails.Schema can still validate them in the answer.
- FixedAI: TsgcAIChat sends max_completion_tokens instead of max_tokens to OpenAI, required by the gpt-5 family and the o-series reasoning models, DeepSeek, Grok, Mistral and Ollama keep max_tokens.
- FixedHTTP Client: Fixed GetSSE and PostSSE raising an error, or losing text on older Delphi versions, when a UTF-8 character (accents, CJK, emoji) was split between two network reads.
- FixedAI: Fixed streamed answers losing the last line when the server closed the stream without a final line end.
- FixedAI: Fixed the MCP client streamable HTTP transport losing a server event split between two network reads. OnMCPStreamMessage is now raised once per event, in order, and logging and progress notifications received on that stream now raise OnMCPLoggingMessage and OnMCPProgress.
- FixedOpenAPI Server: Fixed a spec file saved as UTF-8 without BOM being read in the ANSI code page. TsgcWebSocketServer_HTTPAPI: Fixed text responses sending every character outside the Windows code page as ? when the content type declared utf-8.
- FixedAI: Fixed the compilation of the AI components for iOS, Android and Linux64 in the Enterprise and All-Access editions, and the chat, OCR, document extractor and WebRTC voice agent units now read strings with the right offset on iOS and Android.
- FixedDemos: fixed the compilation of the Stream Video demo and of the DataSnap HTML server demo.
- FixedC++Builder: the 10.1 and 10.2 packages now link the system libraries they need.