Repository navigation
Conversation
sync: production into dev
* fix(core): honor HTTP-date Retry-After values * fix(core): distinguish numeric retry delays from dates * fix(core): cancel retry body before parsing retry delay --------- Co-authored-by: Anurag Verma <78868769+anurag629@users.noreply.github.com>
Co-authored-by: Anurag Verma <78868769+anurag629@users.noreply.github.com>
Co-authored-by: Anurag Verma <78868769+anurag629@users.noreply.github.com>
…ach chunk before embedding (#554) (#566) ingest() takes contextualize: { provider }. For each chunk a model writes a sentence or two that places it in its page, with the page in the system prompt (so a provider that caches prompts reads it once) and the chunk in the message. The context is embedded with the chunk, the stored text stays the chunk and the context goes in its metadata. Turning it on or off, or changing the model, embeds pages again; a dry run asks no model; the stats count the chunks and the model tokens. chatcops ingest --contextualize turns it on from the config. Co-authored-by: Saif Ullah jafri <saifullahjafri@Saifs-MacBook-Air.local> Co-authored-by: Anurag Verma <78868769+anurag629@users.noreply.github.com>
#556) (#567) The heading regex dropped every # at the end of a heading, so '## Using C#' became 'Using C' in the heading path and the chunk's section. A closing run of # is now dropped only when a space comes before it, as in CommonMark. Co-authored-by: Saif Ullah jafri <saifullahjafri@Saifs-MacBook-Air.local> Co-authored-by: Anurag Verma <78868769+anurag629@users.noreply.github.com>
* Added docs for test bot Signed-off-by: Anurag Yadav <anuragyadav2787@gmail.com> * Address review Signed-off-by: Anurag Yadav <anuragyadav2787@gmail.com> * Address review Signed-off-by: Anurag Yadav <anuragyadav2787@gmail.com> --------- Signed-off-by: Anurag Yadav <anuragyadav2787@gmail.com>
Workers bundles pick turndown's browser build, which parses an HTML string with the page's document. A Worker has no document, so every page failed with "document is not defined". Parse with domino (the parser turndown's Node build already uses) and hand turndown the element.
* feat(cli): add junit reporter and output support * fix(cli): handle report output failures safely --------- Co-authored-by: Anurag Verma <78868769+anurag629@users.noreply.github.com>
… (#580) * feat(server): add chatcopsNext() catch-all route adapter for Next.js (#574) * refactor(server): reuse chatcopsVercelHandler in chatcopsNext and update Next.js docs * docs(server): point security doc and server README at Next.js catch-all route --------- Co-authored-by: Saif Ullah jafri <saifullahjafri@Saifs-MacBook-Air.local>
Co-authored-by: Anurag Verma <78868769+anurag629@users.noreply.github.com>
Co-authored-by: Anurag Verma <78868769+anurag629@users.noreply.github.com>
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 6.4.3 to 6.4.5. - [Release notes](https://github.com/vitejs/vite/releases) - [Changelog](https://github.com/vitejs/vite/blob/v6.4.5/packages/vite/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite/commits/v6.4.5/packages/vite) --- updated-dependencies: - dependency-name: vite dependency-version: 6.4.5 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Anurag Verma <78868769+anurag629@users.noreply.github.com>
Bumps [happy-dom](https://github.com/capricorn86/happy-dom) from 20.14.5 to 21.0.4. - [Release notes](https://github.com/capricorn86/happy-dom/releases) - [Commits](capricorn86/happy-dom@v20.14.5...v21.0.4) --- updated-dependencies: - dependency-name: happy-dom dependency-version: 21.0.4 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Added docs for astro nuxt and sveltekit Signed-off-by: Anurag Yadav <anuragyadav2787@gmail.com> * Address review Signed-off-by: Anurag Yadav <anuragyadav2787@gmail.com> --------- Signed-off-by: Anurag Yadav <anuragyadav2787@gmail.com> Co-authored-by: Anurag Verma <78868769+anurag629@users.noreply.github.com>
) (#595) * feat(widget): show pill when new messages arrive while scrolled up (#420) * fix(widget): optimize bundle size to satisfy size budget in CI (#420) * fix(widget): fix void return lint errors in messages (#420) * fix(widget): optimize bundle size to meet Linux CI budget (#420) * fix(widget): address maintainer review feedback on new reply pill (#420) * fix(widget): trim reply pill bundle below size budget (#420) --------- Co-authored-by: Anurag Verma <78868769+anurag629@users.noreply.github.com>
* fix(cli): resolve GitHub annotations from workspace * chore(cli): update public API snapshot
Bumps [astro](https://github.com/withastro/astro/tree/HEAD/packages/astro) from 7.3.5 to 7.4.7. - [Release notes](https://github.com/withastro/astro/releases) - [Changelog](https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md) - [Commits](https://github.com/withastro/astro/commits/astro@7.4.7/packages/astro) --- updated-dependencies: - dependency-name: astro dependency-version: 7.4.7 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Anurag Verma <78868769+anurag629@users.noreply.github.com>
The site said ~7KB gzipped and 8 built-in locales, and the widget README said ~13KB and English only. The script tag loader is 4.95 kB gzipped and the chat panel, loaded on open, is 19 kB. The widget ships English plus 13 translations.
The docs chat on chat.codercops.com had no global budget, so its bill had no ceiling. Cap it at 5M tokens a day (about 2,000 answers) and lower the per-IP default from 2M to 250k tokens (about 100 answers), so one script can't use up the day for everyone.
* feat(cli): run tests against HTTP servers * fix(cli): restore CI type safety * fix(cli): satisfy CI lint * fix(cli): support live deployed server tests * fix(cli): reject authorization header with sessions --------- Co-authored-by: Anurag Verma <78868769+anurag629@users.noreply.github.com>
Co-authored-by: Anurag Verma <78868769+anurag629@users.noreply.github.com>
* fix(widget): improve inline accessibility * test(e2e): wait past focus timer before checking inline focus --------- Co-authored-by: Anurag Verma <78868769+anurag629@users.noreply.github.com>
* chore(core): upgrade @google/genai to 3.2 * chore(core): upgrade @google/genai to 3.3
* fix(widget): validate on submit and focus first invalid field (#614) * test(e2e): update screenshot baselines --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Anurag Verma <78868769+anurag629@users.noreply.github.com>
Node 25 turned on its own localStorage, which hides happy-dom's, so 42 of the 222 widget tests failed with "localStorage.clear is not a function". Start the test workers with --no-experimental-webstorage on Node 25 and later. Node 22 and 24 don't get the flag.
…hoices (#625) Co-authored-by: Anurag Verma <78868769+anurag629@users.noreply.github.com>
* chore(deps): bump the provider-sdks group with 2 updates Bumps the provider-sdks group with 2 updates: [@anthropic-ai/sdk](https://github.com/anthropics/anthropic-sdk-typescript) and [openai](https://github.com/openai/openai-node). Updates `@anthropic-ai/sdk` from 1.2.0 to 1.8.0 - [Release notes](https://github.com/anthropics/anthropic-sdk-typescript/releases) - [Changelog](https://github.com/anthropics/anthropic-sdk-typescript/blob/main/CHANGELOG.md) - [Commits](anthropics/anthropic-sdk-typescript@sdk-v1.2.0...sdk-v1.8.0) Updates `openai` from 7.39.0 to 7.57.0 - [Release notes](https://github.com/openai/openai-node/releases) - [Changelog](https://github.com/openai/openai-node/blob/main/CHANGELOG.md) - [Commits](openai/openai-node@v7.39.0...v7.57.0) --- updated-dependencies: - dependency-name: "@anthropic-ai/sdk" dependency-version: 1.8.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: provider-sdks - dependency-name: openai dependency-version: 7.57.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: provider-sdks ... Signed-off-by: dependabot[bot] <support@github.com> * chore: add a changeset for the provider SDK updates --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: anurag629 <akvermaav629@gmail.com> Co-authored-by: Anurag Verma <78868769+anurag629@users.noreply.github.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Deploys everything on dev:
@chatcops/core: each finished reply records whether it answered the question (metadata.answered,checkAnswered()) (feat(core,server): record whether each reply answered the question #585),redactPII()(feat(core): add redactPII() to take personal data out of text #569), providerRetry-Afterheaders given as an HTTP date are honored (fix(core): honor HTTP-date Retry-After values #552), the Cohere and Voyage rerankers return nothing for aNaNtopN(fix(core): validate topN in cohere and voyage rerankers (#582) #589), the built-in retrievers fall back to the defaulttopKandcandidateswhen either isn't a finite number (fix(core): default non-finite retriever limits #601),createRateLimiter()refuses alimitorwindowMsofNaNorInfinity(fix(server): validate rateLimit.windowMs at startup (#452) #594),capture_leadrefuses a blank name or project details and says which field is wrong (Require non-blank trimmed name and projectDetails in capture_lead #617),@google/genaiis on 3.3, with Gemini requests still on thev1betaAPI (chore(core): upgrade @google/genai to 3.3 #597), and@anthropic-ai/sdk1.8 andopenai7.57 (chore(deps): bump the provider-sdks group with 2 updates #624)@chatcops/server:chatcopsNext(), one catch-all route for the Next.js App Router (feat(server): chatcopsNext() catch-all route adapter for Next.js (#574) #580), the answered signal (feat(core,server): record whether each reply answered the question #585), webhook hosts with a trailing dot such aslocalhost.are blocked (fix(server): block trailing-dot local webhook hosts #562), and arateLimit.maxRequestsorrateLimit.windowMsthat isn't a finite number above 0 fails at startup (fix(server): validate rateLimit.windowMs at startup (#452) #594)@chatcops/widget: the "New reply" pill when a reply arrives while the visitor is scrolled up (feat(widget): show pill when new messages arrive while scrolled up (#420) #595), Shift+Enter line breaks stay in the visitor's message (fix(widget): keep line breaks in the visitor's messages #577), ac++code block no longer shows part of its tag as code (fix(widget): drop the whole language tag from a code block #579), every built-in language has every string: Urdu (feat(widget): add missing Urdu translations (#55) #606) and the other 12 (i18n: fill remaining locale strings for #55 #607), an inline chat no longer takes focus when the page loads and is a region named after the bot (fix(widget): improve inline accessibility #620), the pre-chat form's Start Chat button stays enabled and takes visitors to the first field that needs fixing (fix(widget): validate on submit and focus first invalid field #622), and focus stays in the popup on the consent notice and after a header menu choice (fix(widget): keep focus in the popup on the consent notice and menu choices #625)@chatcops/ingest: crawl sources for sites without a sitemap (feat(ingest): crawl discovery source (#586) #588), contextual retrieval (feat(ingest,cli): contextual retrieval, a model-written context for each chunk before embedding #566), runs on Cloudflare Workers (fix(ingest): run on Cloudflare Workers #587), and## Using C#keeps its#(fix(ingest): keep a # that ends a heading when it is part of the title #567)@chatcops/cli:ingest --contextualize(feat(ingest,cli): contextual retrieval, a model-written context for each chunk before embedding #566),--crawl(feat(ingest): crawl discovery source (#586) #588), and JUnit and GitHub Actions reporters forchatcops test(feat(cli): add junit reporter and output support #590, feat(cli): add GitHub Actions reporter #593), with annotations that point at the right file when it runs in a subfolder (fix(cli): resolve GitHub annotations from workspace #600), andchatcops test --urlto run the evals against a deployed server, with a session token for each test (feat(cli): run tests against HTTP servers #602)@chatcops/react: new,<ChatCops>anduseChatCops()for React and Next.js (feat(react): add <ChatCops> component and useChatCops() hook (#573) #583). This is its first publish, as 0.2.0, once chore: publish @chatcops/react from the release workflow #629 is in.dev has 30 changesets: minor for core, server, widget, ingest, cli and react, and patches for core, server, widget, ingest and cli. After this merges, the release workflow opens a "chore: version packages" PR. npm publishing happens when that PR is merged, not this one.
Merge #629 before this. It takes the private flag off
@chatcops/react, and goes in once trusted publishing is set up for it on npm.Test plan
@google/genai3.3 (chore(core): upgrade @google/genai to 3.3 #597), and Claude's and OpenAI's on the SDKs from chore(deps): bump the provider-sdks group with 2 updates #624.