Changelog
What changed and when. We follow semver: while the SDKs are 0.x, a minor version can break things, and when one does its entry says Breaking and how to move. No surprises in your error logs on a Friday.
SDK versions on npm
@cstar.help/js@0.21.1@cstar.help/react@0.13.0@cstar.help/svelte@0.11.0@cstar.help/cli@0.11.0
These are the versions an install gives you today, and every page in these docs shows the same ones. Changes we have made but not published yet are marked Unreleased below.
API v1 (Current)
CLI 0.12.1: MCP 2.0 (2026-07-28), ticket reply/update tools, and registry readiness
Both the hosted remote MCP server (/api/mcp) and local cstar mcp-server now speak dual-era MCP 2.0 (2026-07-28 stateless
core) alongside MCP 1.x, add ticket reply and update tools behind --allow-writes,
read CSTAR_API_KEY and CSTAR_BASE_URL from the environment, and ship Official
MCP Registry metadata.
- Added Dual-era MCP 2.0 (
2026-07-28) support on bothPOST /api/mcpandcstar mcp-server --stdio: stateless per-request_meta,server/discover, caching hints (ttlMs,cacheScope),resultType: "complete", Streamable HTTPMcp-Method/Mcp-Nameheader validation, and full backward compatibility with MCP 1.x (2025-11-25through2024-11-05). - Added
cstar_reply_ticket(public customer reply or private internal note) andcstar_update_ticket(status, priority, assignee, tags, title, notes) are available when starting the MCP server with--allow-writes. - Added
CSTAR_API_KEYandCSTAR_BASE_URLenvironment variables now work across CLI and MCP commands without overwriting a saved login, while resolving the key's own team via/auth/whoami. - Added Added
mcpNamemetadata for the Official MCP Registry, graceful startup before login, and new markdown resourcescstar://docs/headless-worldsandcstar://docs/ai-skills.
CLI 0.11.0: the MCP server only reads unless you say so
An AI agent using cstar mcp-server reads tickets that customers wrote. It can no
longer publish or create things unless you start the server with --allow-writes.
- Breaking
cstar_create_ticket,cstar_create_community_postandcstar_trigger_webhookare off by default. Add--allow-writesto the server's arguments to turn them on. - Added Every tool carries MCP annotations (read only, or what it changes), and the server speaks protocol
2025-06-18, or the version your client asks for. - Security What a tool returns is wrapped as data customers may have written, so the AI reads it as data, not instructions.
JavaScript SDK 0.21.1: live chat on private channels
cStar's realtime is moving to private channels only. Chat in 0.21.0 and earlier stops getting live messages when that switch is made, so upgrade to 0.21.1.
- Changed
ChatClientlistens for new messages on a private channel that only the signed-in customer can join. Nothing changes in your code:onMessage()andonTyping()work as before. - Fixed
sendTyping()tells cStar's server, as the hosted widget does. The SDK used to broadcast it itself, which cStar has refused since typing became a private topic. - Added
onTyping()events from an AI agent carryactivity: what it is doing, in words for your customer ("Searching our help library"). The agent repeats its typing signal every 3 seconds while it works. - Added
ticket.createdandticket.message_addedwebhooks for a customer's email carrysender_verified. It isfalsewhen cStar could not prove who sent it, so it may be someone posing as your customer. Don't act on such an email alone. - Security Public realtime channels are going away. Anyone with a publishable key could open or invent one, which let a stranger use up realtime for every team.
File storage has a budget
Every file a team stores counts toward one budget: 5 GB plus 1 GB a seat, or 250 MB on a trial with no card.
- Added An upload that does not fit answers
409 storage_limit_reached, onPOST /attachmentsand on the chat widget's upload. It is a count, not a wait: the SDK throwsCStarConflictError. Delete files you no longer need, or add a seat. - Changed A message file (
entityType: 'message') that no message names a week after the upload is removed. Files stored under a ticket, customer or article stay until you delete them.
JavaScript SDK 0.21.0, React 0.13.0, Svelte 0.11.0, CLI 0.10.2: customers sign in at your team
Breaking. Customer sign-in in the SDK moved from Supabase sessions to cStar's own per-team sessions, so every customer signs in once more.
- Changed Breaking: sessions are cStar's own.
AuthClientandChatClienthold tokens that work at your team only.getCustomer().idand the chat'scustomer.idare your team's customer id, not a login id.AuthSessiongainsteamId,accessTokenExpiresAt,refreshAt,sessionExpiresAtandintent. - Removed Breaking: the Supabase options are gone.
new AuthClient()no longer takessupabaseUrlorsupabaseKey, and the auth entry point no longer imports@supabase/supabase-js. Pass astorageadapter (such aslocalStorage) to keep the session between page loads. TheSignupConfirmationResulttype is gone too: useSignupResult. - Removed Breaking: webhook signatures need a timestamp.
verifySignature()andconstructEvent()(and their async twins) refuse the oldsha256=<hex>form. It covered the body alone, so a captured delivery never expired. cStar has sentt=<unix>,v1=<hex>since 0.14.1, so real deliveries verify as before. - Changed Breaking: sign-in links finish with a verifier.
signup()returns averifier, andcompleteSignIn()readscstar_handofffrom the URL. In a browser the client keeps the verifier. On a server, keep it in your session for that visitor and callcompleteSignIn({ url, verifier }). A link from an older version returnsnullwith a console warning: send a new one. - Changed Breaking: passwords are per team.
login()andloginWithCredentials()take the password the customer chose at your team, andlogin()returns the session (its tokens are nevernull). A password from before no longer works: sign in by link, then callsetPassword(). Changing one takessetPassword(password, { currentPassword }), and codereauthentication_requiredmeans send a new link. - Changed Breaking:
logout()returns a promise. It ends the session on the server as well as in the browser, so await it. - Changed Breaking:
loginWithSession()takes cStar sessions only. A Supabase token throwsChatClientAuthErrorwith codeLEGACY_SUPABASE_SESSION. Sign the customer in again, or use the newauthoption. React'suseChatkeepsloginWithCredentialsandloginWithSessionunder the same names, with this change. - Added More ways to sign in, and tokens that refresh.
AuthClientgainssendMagicLink(),requestPasswordReset(),refresh(),getAccessToken()andonSessionChange(). UsegetAccessToken()for a Bearer: it refreshes when due. TheaccessTokengetter is deprecated. - Added One session for sign-in and chat.
new ChatClient({ teamSlug, auth })uses anAuthClient's tokens and refresh, so one object owns the refresh token.<CStarChatProvider auth={authClient}>passes it through in React and Svelte.ChatClient.onSessionChange()reports each new token pair to apps that keep their own. - Changed React and Svelte need the new JavaScript SDK. Their peer range is now
^0.21.0. The Svelte package has no other change. - Changed CLI 0.10.2 is built on JavaScript SDK 0.21.0. No command changed.
JavaScript SDK 0.20.0, React 0.12.0, Svelte 0.10.1, CLI 0.10.1: upload files
- Added The new
attachments.uploadmethod stores a file of up to 4 MB from your server, under a ticket, customer, article or message. - Fixed
POST /attachmentsanswered a multipart form from outside cStar with a 403 before the API saw it. Send the file's bytes asapplication/octet-streamwith its details in the query. - Added A community comment says
isHidden: truewhen a flagged word held it back for review. Customers can also sign in, post, reply and vote on the hosted community page. - Changed React, Svelte and the CLI now need the JavaScript SDK at
^0.20.0.
The SDK's types now match what the API sends
- Fixed
community.updatePost()now returnsisApproved, since an edit can send a post back for approval. - Changed
game.puzzles.today()is typed as what it returns:available,puzzleandcompletion. The old type promised fields that never came back. - Changed
game.skills.get(),allocate()andreset()have corrected types, including the newSkillReset. - Fixed Quick replies carry
bodyas well astextfromsettings.get(),settings.update()andquickReplies.reorder(), as the list already did. - Fixed
settings.statuses.del(),attachments.del(),notifications.markRead()andbulkresults are typed as what they return, and fields the API sent but the types left out are now declared.
The API refuses bad input it used to skip
- Changed Breaking: statuses are checked.
/settings/statusesrefuses a blank label, the reservedmergedkey, a key with spaces, a color that isn't hex and any unknown field, including akeyon PATCH. - Changed Breaking: wrong types are a 400.
PATCH /webhooks/{id}no longer skips a wrongly typed field and applies the rest, andPOST /ticketsno longer opens an unlinked ticket for acustomerIdthat isn't a string. - Changed Breaking: analytics dates are the team's days. A
YYYY-MM-DDmeans the team's day on every analytics endpoint, andclosedon/analytics/ticketscounts closes that happened in the window, not tickets created in it that are closed now. - Changed Breaking: a dropdown option in use stays.
PATCH /custom-fields/{id}refuses removing an option records still hold, with the count. - Fixed Reusing an
Idempotency-Keywith a different message body is a 422idempotency_key_reused, as elsewhere.agent_idandGET /logsfilters answer 400, not 500, andGET /webhooks?active=falselists the inactive ones. - Added
player.xp_gained,player.quest_completedandplayer.streak_milestonenow fire, andticket.message_addednames the customer on a customer message sent through the API.
Analytics refuse values they used to guess at
- Changed Breaking: an unknown
periodorgroup_byis a 400./analytics,/analytics/*and/csat/statsquietly fell back to a default, so a typo returned the wrong numbers. Sendday,week,monthorquarter. - Changed Breaking:
GET /attachmentshas its list at the top.datais the array andpaginationsits beside it, as on every other list. Readdata, notdata.data. The JavaScript SDK'sattachments.list()now hashasMore. - Fixed
GET /customers?tag=VIPfinds customers tagged VIP, andhasActiveSubscriptionis false once a subscription is canceled. - Fixed A 1-Up, a High Five or a boss hit made in the app now reaches webhooks, as those made through the API do.
- Added
automation.triggeredis documented: a rule's Trigger Webhook action sends it to the webhook it names. It takes awhk_ID, refuses a disabled webhook or one from the other mode, and shows in Delivery Logs. - Fixed A note posted through
POST /tickets/{id}/messagesnotifies the people it @mentions, as a note in the app does.
REST API: doing what the docs say
Nine changes. Four are Breaking; each one says how to move.
- Changed Breaking: webhook URLs must be HTTPS. Create and update refuse a plain
http://URL with a 422. Use anhttps://URL, orcstar listenfor a local server. - Changed Breaking:
X-Webhook-IDis thewhk_ID. Deliveries carried an internal UUID. If you look up secrets by that header, key them by theidthe webhooks API returns. - Changed Breaking: unknown customer filters are a 400.
GET /customers?sentiment=or?status=with a value that isn't one of the team's keys returnsparameter_invalidwith the allowed keys, not an empty list.GET /settingslists the keys. The default sentiments are happy, neutral, frustrated and angry. - Changed Breaking: metadata values must be strings. On tickets and customers, a
number such as
{ "seats": 5 }returnsparameter_invalidwithparam: "metadata.seats"and a message that says so. Send"5"instead. - Added Webhook
eventstakes a comma-separated string too.["ticket.created", "ticket.closed"]is the documented shape, and"ticket.created,ticket.closed"works on create and update. An empty or invalid value on update now says what is wrong (an empty list no longer clears the events). - Added Assign a ticket with either member ID.
assignedTotakes a member'suserIdoridfromGET /members. A refusal namesassignedTo, the field you sent. - Fixed Honest test-trigger counts.
POST /webhooks/trigger-testcounts only webhooks subscribed to the event, in your key's live or test mode. - Fixed Pagination in the reference. List responses carry
paginationnext todata(not inmeta), withhasMoreand nototalPages, as the API always sent. - Fixed Ticket search, described.
GET /tickets?search=matches the title and customer name. It does not search message content.
Custom Mode chat widget: new conversations, sign-in and rows
Ten changes. Read the Heads-up if your CSS sets display on
widget elements, and the signup() line if you send a password.
- Changed A new conversation starts with the right text.
startConversation()sends the new conversation's own text: themessageyou pass, or whatsetFirstMessage()(or adata-cstar-input="firstMessage"field) set. When no conversation is open,messageDraft(setDraft(), or a composer) starts one too. An open conversation's draft is never sent as another's first message. AmessageDraftfield in a New Conversation form (adata-cstar-view="new"ordata-cstar-show-when="currentView:new") is that form's text. With no text it rejects with "Message is required", which also shows in[data-cstar-error]until a message is typed or the customer leaves the view. The same start again while the first is on its way returns that one's promise. - Changed Drafts belong to their conversation.
messageDraftis kept per conversation: opening one brings back its draft, so to prefill the composer callsetDraft()afteropenConversation(). A file picked for a draft is removed when the customer leaves the conversation. Signing out, or another customer signing in, clears every draft and the New Conversation text. - Added Keyboard focus follows the widget. When focus is in it (keyboard or pointer), a view change or a switch between Sign up, Log in and
Forgot moves focus to the view's
data-cstar-focus-start, else its first heading, the composer (messages) or its first control. Back returns focus to the conversation that was opened. Escape in the messages view goes back, unless a dialog, a popover or a search field with text takes it, or text is being composed. This needs adata-cstar-panelelement. - Fixed
'logout'fires once. Once per sign-out (it fired twice), also when nobody was signed in. - Changed
deleteConversation()closes it. It leaves the list, and the next load lists it again with status closed. Afterdestroy()it refuses and sends nothing, and rendered rows stop listening. - Changed
signup()is passwordless. Like the server, it takes an email and an optional name, and ignores a password. The customer signs in from the emailed link and chooses a password later. - Added A state for a sent sign-in link. A new
magicLinkSentstate is true once a sign-up or sign-in link is sent;data-cstar-magic-link-sentshows while it is. - Added A refresh error that keeps the list.
data-cstar-show-when="conversations:refresh-error"shows when a refresh fails under a list that already loaded;conversations:erroris for a list that could not load at all. - Heads-up Hidden means hidden. The SDK hides elements with the
hiddenattribute. If your CSS setsdisplayon them, add.cstar-widget [hidden] { display: none !important; }, as the starter template does. - Added Rows open from the keyboard. Conversation rows open from the keyboard: put a
<button data-cstar-select-conversation>in a<div data-cstar-conversation>row. A plain row is made focusable, and isrole="button"(named by its content) only when it holds no other control and is not in a list; otherwise the console says what to change. A row with buttons inside must not itself be a button. Focus stays on the row when the list re-renders.
REST API: tickets, messages and members
- Changed The first public reply from an agent moves a
newticket toopenand firesticket.updated. Internal notes and automatic replies leave itnew. - Changed A merged ticket stays merged:
PATCH /tickets/{id}with any other status returns 409. - Fixed
GET /members/onlineleaves out members who turned Online off or were last seen in another team. - Fixed
POST /tickets/{id}/messagesstores an agent'ssenderIdonly when it belongs to this team, andPOST /viewsneedscreatedByto be a team member. - Fixed A test key gets an empty result from
/analytics/slaand/analytics/export, which read live numbers.
JavaScript SDK 0.19.0: ids stay in their path, and types match the API
- Security Every id and slug goes into the URL as one encoded path segment, and
..or an empty id is refused.customers.get('../tickets')used to return the tickets list. - Changed Breaking, types only:
activity.listtakesuserIdandtypesand returnsaction,userId,userName,iconandmetadata.TicketStatus,BusinessHours,CustomerGroup,CommunityPostandCommunityCommentmatch what the API sends, sofilterson groups andauthorNameon posts are gone. - Changed Breaking: public community posts and comments no longer have
authorPostCountorauthorCommentCount, which counted posts a visitor can't open. - Fixed
triggerTesttypes match its result, andLibraryClientstats and popular count every article.
React SDK 0.11.0 and Svelte SDK 0.10.0: the newest answer wins
- Article, post and search state keep the newest answer when an older request finishes late,
and mutation hooks reach nested SDK methods. Both need JavaScript SDK
^0.19.0.
CLI 0.10.0: config apply applies the whole file
cstar config applyappliespriorities:and everypauses_sla, andconfig exportwrites them.cstar mcp-serveranswers ping, sends nothing back for a notification, and reports a line that isn't JSON.cstar tutorial metrics-dashboardnames methods the SDK has.
React SDK 0.10.4 and Svelte SDK 0.9.2: the boss subscription holds the boss
useBossBattleandBossStatehold the active boss, or nothing, andactivefollows that. Both now need JavaScript SDK^0.18.5, whose subscription sends the boss itself.- Svelte:
CStarQueryandCStarEventStreamwait for the browser to go live, so they no longer crash server rendering.
JavaScript SDK 0.18.5: game types and live subscriptions that work
- Breaking for code written against the old types: the game types match what
the API sends.
game.boss.current()is{ active, boss }, andPlayer,LeaderboardEntryandmyRank()(which needsuserId) match the API. - Live subscriptions to customers, articles, the boss, players, the leaderboard and activity now update, and a filtered list keeps to its filters.
- A subscription made without EventSource (plain Node, server rendering) reports the error to its handler instead of crashing the process.
offline: truequeues a write that fails on the network, and a replayed write can't create the record twice.CStarRealtimekeeps trying after an outage and reconnects when the browser is back online./authand/chatwork in apps built with webpack (Next.js, Create React App).
CLI 0.9.4: seed --clean deletes only seed data
cstar seedmarks what it creates (metadata.cstarSeed), and--cleandeletes only marked articles, tickets and customers. It matched by title, email and category name, so with a live key it could delete a team's real tickets and its built-in "Getting Started" category. Categories are never deleted now.
Deleting a community topic keeps its posts
- Changed Breaking: a topic with posts needs
movePostsTo.DELETE /community/topics/{topicId}deleted every post in the topic. Now its posts move to the topic in?movePostsTo=first, and the response says how many (movedPosts). Without it, a topic that still has posts gets a 409 and nothing changes. - Added JavaScript SDK 0.18.5:
cstar.community.topics.del(id, { movePostsTo }).
CLI 0.9.3: scaffolds, doctor and docs that run
cstar create --type dashboardlists every ticket that is not resolved or closed. It asked for statusopenonly, and new tickets arrive asnew, so a fresh team's dashboard was empty.- It adds a
CSTAR_SECRET_KEY=line to.env(SvelteKit) or.env.local(Next.js), prints the next steps, and points the client at your--base-urlor login host when that is not production. It never writes the key itself. An unknown--typeis an error, not "0 files created". cstar doctorcounts webhooks byisActiveand flagsconsecutiveFailuresor an auto-disable. It read fields the API never sends and always said "0 active, 0 failing".cstar seedlinks to the help center on the host you seeded, and its webhook article verifiesX-SignaturewithconstructEvent. Its rate limit article shows the real limits: 1,000 requests an hour for secret keys, 100 for publishable.- The bundled
docs/webhooks.md, the tutorial and the README import webhook helpers that exist, name theX-Signatureheader, and usewhk_webhook IDs and UUID user IDs.
JavaScript SDK 0.18.4: realtime options on the client
new CStarClient({ realtime })passestypes,eventSource,autoReconnectandmaxRetriestocstar.realtime. Before, there was no way to set them, so a Node app without a globalEventSourcecould not pass the polyfill the error message asked for.
REST API: agent replies have a sender name
- An agent message added with
POST /tickets/{id}/messagesand nosenderNameis named for the member insenderId, else the person who created the key, else the team. It was saved with no name, so threads showed ": hi" with no author.
Docs: snippets that compile
- The React quickstart passes strict TypeScript (
children: ReactNode,useState<string | null>), the Svelte chat widget passessvelte-check, and both show a sender name fallback. The vanilla list skips resolved and closed tickets instead of asking foropenonly. - The JavaScript SDK page imports
constructEventfrom@cstar.help/js/webhook/node, where it lives. The CLI cheat sheet shows realcstar createtypes, and the realtime page shows the newrealtimeclient option.
React SDK 0.10.3: Next.js and StrictMode
- The bundle starts with
'use client', so the providers and hooks work in a Next.js App Router layout as they are. Before, the build dropped it and you needed your own'use client'wrapper file. CStarChatProviderkeeps one client under React StrictMode. Before, its practice unmount swapped in a new, unidentified client: the chat went blank and the next send got a 401.CStarDashboardProviderno longer closes realtime on StrictMode's practice unmount, souseCStarEventsand the live hooks connect. Before, the stream never opened in development. A real unmount still disconnects.
JavaScript SDK 0.18.3: Quick Help errors say why
QuickHelpErrorhas areasonnext tocode. The API now sends the registry code for the status ascode(for examplerate_limit_exceeded) and the Quick Help cause asreason(for examplerate_limited). The embed'serrorevent passesreasontoo.attachments.del(storagePath, { bucket })takes the bucket, asattachments.get()does, so files outsideemail-attachmentscan be deleted. A path with no file in that bucket now answers 404 instead ofdeleted: true.- The
game.puzzles.complete()result type matches the API:idis always a string, and there is nostoredfield. - The API answers the webhook limit (50 per mode) with
409 webhook_limit_reachedinstead of a429: it is a count, not a wait. The SDK throwsCStarConflictError; delete webhooks you no longer use before creating another one. - A
429with noRetry-After, or one longer than a minute, is not retried:CStarRateLimitErrorcomes back at once instead of after up to three one-minute sleeps. ItsretryAfteris the server'sRetry-After, andundefinedwhen it sent none (it used to say 60). customerGroups.update()takesdescription: nullto clear a group's description, as an empty string does.import.create()records may carry animportKey: a ticket or article with a key is created once, and sending it again is skipped. The result hasalreadyImportedandexistingIdsfor those rows.- An error built without the server's
doc_url(a network error, a non-JSON reply, Quick Help when it is not set up) links to a real entry on the errors page instead of a page that did not exist.
CLI 0.9.2: every command uses the key you pass
cstar community,cstar mcp-serverandcstar createuse--api-keyand--base-urllike every other command. They used the stored login instead, so a run with a test key acted with a stored live key, on the stored host.mcp-serverandcommunitynow start with only--api-key, nocstar loginneeded.- With
--api-key, the team name and slug are the key's own, socstar createandcstar seednever name the stored login's team. cstar config applyandcstar seed --fromstop a test key before changing statuses, custom fields, SLA rules or quick replies, count only the changes that saved, and exit with code 1 when any change fails.cstar create's dashboard runs on the server: a Next.js Server Component with a server action, or a SvelteKit+page.server.js. It used to readCSTAR_SECRET_KEYin a browser page, where it was undefined. Apps with no server (Vite) get a clear message instead, since a secret key can't stay private there;--type help-centerstill works anywhere.cstar createno longer sends a "quest completed" call after scaffolding. It used an event name the API doesn't have, so it was refused every time and only spent a request from your hourly limit.
Game state is live only
A behaviour change in the API itself, for every SDK version. Test keys and test data never change live XP, gold, the boss, skills, cosmetics, puzzles or the leaderboards.
- Every game write (boss damage and spawn, 1-Ups, high fives, skills, cosmetics, puzzle
completions) answers a test key with
400 parameter_invalid, which the SDK throws asCStarValidationError. Free 1-Ups and unstored puzzle results with a test key used to work; use a live key for game actions. Game reads still work with a test key. - The puzzle completion no longer has a
storedfield, and itsidis always set. - An automation's
award_xp,award_goldandlog_activitydo nothing in a test run; the execution lists them as skipped. A reward is at most 100 per action, and a rule over that is refused when saved. - A closed test ticket and a CSAT answer on a test ticket pay no XP or gold.
POST /game/boss/damagetakes the ticket'stkt_id, as the API returns it, as well as its uuid.GET /game/playeranswers a new player's starting stats and no longer creates a row.POST /csat/surveysanswers 404 (param: agentId) unless the agent is a member of the team.
JavaScript SDK 0.18.2: no retries the API can't make safe
webhooks.create,webhooks.listenandexport.createno longer send anidempotencyKey, which those endpoints ignore, and no longer retry a network error or 5xx, since the webhook, listener or export may already exist.
CLI 0.9.1, React 0.10.2 and Svelte 0.9.1 need JavaScript SDK 0.18.2
- The CLI depends on
@cstar.help/js^0.18.2, and React and Svelte take it as a peer dependency in the same range. Install or upgrade@cstar.help/jsto 0.18.2 with them.
JavaScript SDK 0.18.1: retries wait for a running request
- With an
idempotencyKey, a409 idempotency_key_in_usethat carriesRetry-Afternow waits and retries withinmaxRetries, instead of throwingCStarConflictErrorwhile the API still runs your earlier attempt.
Idempotency-Key means one request
Idempotency-Keynow works on every API-keyPOSTandPATCH, except the few that never cache a response (creating API keys, webhooks and webhook listeners, event stream tokens, exports and billing portal sessions). Ticket messages keep their own receipt for the key.- The same key with a different body returns
422 idempotency_key_reused. It used to replay the first response for a request you didn't make. - While the first request with a key is still running, the key returns
409 idempotency_key_in_usewithRetry-After, so two copies of one request never both write. - Multipart uploads are compared by their fields and file bytes, so a retry with a new form boundary still counts as the same request.
JavaScript SDK 0.18.0: the SDK matches the real API
- Breaking:
signupalways returns{ success, requiresConfirmation, message }and sends the confirmation email like the hosted widget.completeSignIn()finishes the link. - Breaking: removed
tags.create,customFields.get, thesla.list()params,customerIdandcustomerNameon ticket update, and the quick-replycategory.tags.del()stays as a deprecated alias. - Breaking:
BossDamageParams.ticketIdis required, to matchboss/damage, which takes one hit per closed customer ticket. - Breaking:
WidgetSettingsUpdateParamslists every widget setting with its type and drops its index signature, so a misspelled key is a type error.modetakesscriptorsdk. - Chat keeps its refresh token and renews once on a 401. Tags (
merge,remove), custom fields, SLA rules, notifications (isRead,unreadCount) and quick replies send the fields the routes read.
JavaScript SDK 0.17.0 to 0.17.5, React 0.10.1, CLI 0.9.0
- 0.17.0: custom chat can download received files through the signed-in conversation, with cancellation. The JavaScript SDK and the CLI need Node.js 22 or newer.
- 0.17.1 and 0.17.2: customer chat sign-in survives reconnects and heartbeats, missed replies come back from history once each, and the browser helpers import cleanly.
- 0.17.3: request and response types for boss damage, one-ups, high fives, quests, puzzles, cosmetics and seasons match the server.
- 0.17.4 and 0.17.5: result shapes match the API, CSV exports ask for one resource, private note options are honored and message lists paginate.
- React 0.10.1 and CLI 0.9.0 came with 0.17.0.
CLI 0.8.6: commands work with just an API key
- Team commands such as
cstar keys,logsandtriggerwork with--api-keyand nocstar login. The CLI finds your team from the key and defaults to production.
JavaScript SDK 0.16.1: realtime catch-up after a reconnect
- After a dropped connection, realtime replays every missed event. It used to lose them all.
Replays use the most specific event type, including
ticket.closed. import.create()accepts both documented shapes:{ resource, records }and{ entityType, records }.
SPA rebind for Quick Help: window.CStarQuickHelp.rescan()
- Quick Help embeds (
data-cstar-quickhelp) now have the same SPA rebind escape hatch thatCStarChatandCStarLibraryalready shipped:window.CStarQuickHelp.rescan()can be called from a router lifecycle hook after a client-side navigation. Hosts mounted by an earlier route stay mounted; new hosts get discovered and bound; detached hosts get cleaned up so the internal instance list doesn't grow unbounded. - Works in two states: if Quick Help wasn't enabled or wasn't on the page at first load, the
stub-level
rescan()triggers a fresh init (config fetch + module load + mount). If the real api was already installed,rescan()just re-walks the DOM. Both paths are idempotent: callingrescan()repeatedly is safe. WIDGET_VERSIONbumps5→6; existing customers pick up the new code on next page load.
CLI 0.8.5: community topics subcommand group
cstar community topics create / update / delete: full topic CRUD via the CLI. Previously only listed viacstar community topics. Baretopicsstill defaults to listing.- Needs
@cstar.help/js0.16.0 or newer.
SPA support: window.CStarChat.rescan()
- Single-page apps (SvelteKit, React Router, Next.js App Router, etc.) can now call
window.CStarChat.rescan()after a client-side route change to re-bind any newly-mounteddata-cstar-*elements.window.CStarLibrary.rescan()does the same for library widgets. - The widget's MutationObserver was also widened to catch panels, message containers, input
elements, and other
data-cstar-*markup. Previously only newly-mounted launchers triggered a re-bind. cstar community topics create,topics update, andtopics deleteCLI commands now expose the topic CRUD that was previously only reachable from the dashboard. (CLI 0.8.5 and newer.)
SDK versions as of May 2026
@cstar.help/js@0.16.0: bare-resource returns, nine entry points (admin, auth, chat, library, community, quickhelp, proactive, webhook, webhook/node), typed error classes, per-callclient.lastMeta, optional offline queue, exportsWEBHOOK_EVENT_CATALOGas a runtime symbol consumed by the CLI.@cstar.help/react@0.10.0: chat, library, community, and dashboard providers with matching hooks; works with SSR.@cstar.help/svelte@0.9.0: Svelte 5 rune-based state classes for chat, library, community, and dashboard; subpath exports dropped (single root entry).@cstar.help/cli@0.8.5: 21 commands includingautomations,seed,create,tutorial,doctor,env,config,community topics create/update/delete; 19 MCP tools.- Webhook signatures use Stripe-style format (
t=<unix>,v1=<hex>) with 300s replay tolerance. Legacysha256=<hex>is still verified for backward compatibility but no longer emitted.
SDK v0.2.0: Customer Auth & Library
@cstar.help/js/auth: New AuthClient for customer signup, login, and session managementLibraryClient: NewpopularArticles()andstats()methods for public knowledge bases- All SDK packages bumped to v0.2.0 (js, cli, react, svelte)
- 115 tests passing across the JS SDK (13 new auth tests)
Developer Portal Launch
- Developer documentation portal at
/developers - Interactive API playground with live requests
- Framework-specific quickstart guides (React, Svelte, vanilla JS)
CLI Tool + MCP Server
@cstar.help/cli: developer CLI with 9 commands- MCP server mode for AI agent integration (
cstar mcp-server --stdio) - Webhook forwarding (
cstar listen) for local development - API request log streaming with
cstar logs --tail
Framework SDKs
@cstar.help/react: React hooks with 34 tests@cstar.help/svelte: Svelte 5 rune classes with 32 tests- Real-time message and typing subscriptions
TypeScript SDK
@cstar.help/js: Core TypeScript client with 102 tests- Full CRUD for tickets, customers, articles, and webhooks
- Webhook signature verification utilities
REST API Foundation
- REST API v1 at
/api/v1/teams/{teamId} - API key authentication (secret + publishable)
- Rate limiting (1,000 req/hour secret, 100 req/hour publishable)
- Webhook delivery with HMAC-SHA256 signing and retry logic
- Gamification events: boss battles, level-ups and achievements