diff --git a/.changeset/answered-signal.md b/.changeset/answered-signal.md deleted file mode 100644 index 7bf70858..00000000 --- a/.changeset/answered-signal.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@chatcops/core': minor -'@chatcops/server': minor ---- - -Each finished reply is saved with `metadata.answered`, and `metadata.unansweredReason` (`refusal`, `no_retrieval` or `no_citation`) when it didn't answer, for an answer rate and a list of questions the knowledge doesn't cover. `checkAnswered()` in `@chatcops/core` is the same check. diff --git a/.changeset/bright-retries-retry-after-core.md b/.changeset/bright-retries-retry-after-core.md deleted file mode 100644 index dea0f22d..00000000 --- a/.changeset/bright-retries-retry-after-core.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@chatcops/core": patch ---- - -Honor HTTP-date values in provider Retry-After headers. diff --git a/.changeset/cli-contextualize.md b/.changeset/cli-contextualize.md deleted file mode 100644 index 00462703..00000000 --- a/.changeset/cli-contextualize.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@chatcops/cli": minor ---- - -`chatcops ingest --contextualize` has the model in `ingest.contextualize.provider` write a short context for each chunk before it is embedded, and stops with a message when the config has none. Without the flag a run never asks a model. The summary and `--json` report the chunks that got a context and the model tokens used. diff --git a/.changeset/cli-github-reporter.md b/.changeset/cli-github-reporter.md deleted file mode 100644 index 8c2b0242..00000000 --- a/.changeset/cli-github-reporter.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@chatcops/cli": minor ---- - -Add a GitHub Actions reporter with failure annotations and a Markdown job summary. diff --git a/.changeset/cli-junit-output.md b/.changeset/cli-junit-output.md deleted file mode 100644 index 873cbe8f..00000000 --- a/.changeset/cli-junit-output.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@chatcops/cli": minor ---- - -Add a JUnit XML reporter and output-file support to chatcops test. diff --git a/.changeset/core-genai-3.md b/.changeset/core-genai-3.md deleted file mode 100644 index 1f2c6f04..00000000 --- a/.changeset/core-genai-3.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@chatcops/core": patch ---- - -Upgrade `@google/genai` to 3.3. Gemini requests still go to the `v1beta` API, as they did on 2.x. diff --git a/.changeset/core-provider-sdks.md b/.changeset/core-provider-sdks.md deleted file mode 100644 index 353cbf28..00000000 --- a/.changeset/core-provider-sdks.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@chatcops/core": patch ---- - -Update `@anthropic-ai/sdk` to 1.8 and `openai` to 7.57. diff --git a/.changeset/core-redact-pii.md b/.changeset/core-redact-pii.md deleted file mode 100644 index 2a6e7d16..00000000 --- a/.changeset/core-redact-pii.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@chatcops/core": minor ---- - -Add `redactPII()`, which takes email addresses, phone numbers, card numbers, IBANs and IP addresses out of text. diff --git a/.changeset/crawl-discovery.md b/.changeset/crawl-discovery.md deleted file mode 100644 index 7ab425e1..00000000 --- a/.changeset/crawl-discovery.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@chatcops/ingest': minor -'@chatcops/cli': minor ---- - -Support crawl ingestion sources starting from a URL and following same-origin links breadth-first with maxDepth, maxPages, deduplication, robots.txt compliance, and cached HTML reuse during extraction. Add --crawl to the chatcops ingest command and crawl: URLs to --source. diff --git a/.changeset/fence-language-tag.md b/.changeset/fence-language-tag.md deleted file mode 100644 index 59261cde..00000000 --- a/.changeset/fence-language-tag.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@chatcops/widget": patch ---- - -A code block tagged `c++`, `c#` or `objective-c` no longer shows part of the tag as its first line, and a one-line code block keeps all of its text. diff --git a/.changeset/focus-popup-consent-menu.md b/.changeset/focus-popup-consent-menu.md deleted file mode 100644 index c7d5ef46..00000000 --- a/.changeset/focus-popup-consent-menu.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@chatcops/widget": patch ---- - -Keep focus inside the popup when it opens on the consent notice and after choosing an item from the header menu. diff --git a/.changeset/github-annotation-workspace.md b/.changeset/github-annotation-workspace.md deleted file mode 100644 index 07937e6f..00000000 --- a/.changeset/github-annotation-workspace.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@chatcops/cli": patch ---- - -Fix GitHub annotations for tests run from a subfolder. diff --git a/.changeset/http-test-runner.md b/.changeset/http-test-runner.md deleted file mode 100644 index ddbc2522..00000000 --- a/.changeset/http-test-runner.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@chatcops/cli": minor ---- - -Run evals against a remote ChatCops server with `--url` and repeatable `--header` options. diff --git a/.changeset/ingest-contextualize.md b/.changeset/ingest-contextualize.md deleted file mode 100644 index cd40f811..00000000 --- a/.changeset/ingest-contextualize.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@chatcops/ingest": minor ---- - -`contextualize: { provider }` has a model write a short context for each chunk before it is embedded (contextual retrieval): the context is embedded with the chunk, the stored text stays the chunk, and the context is kept in its metadata. The page goes in the system prompt so a provider that caches prompts reads it once, a dry run asks no model, and turning it on or off, or changing the model, embeds pages again. `IngestStats` gains `contextualized` and `modelTokens`. diff --git a/.changeset/ingest-heading-trailing-hash.md b/.changeset/ingest-heading-trailing-hash.md deleted file mode 100644 index b1521805..00000000 --- a/.changeset/ingest-heading-trailing-hash.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@chatcops/ingest": patch ---- - -A heading that ends in `#` keeps it when the `#` is part of the title: `## Using C#` is "Using C#" in the heading path and the chunk's `section`, no longer "Using C". A closing run of `#` is dropped only when a space comes before it (`## Notes ##`), as in CommonMark. diff --git a/.changeset/ingest-on-workers.md b/.changeset/ingest-on-workers.md deleted file mode 100644 index 0ccfef97..00000000 --- a/.changeset/ingest-on-workers.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@chatcops/ingest': patch ---- - -Ingest runs on Cloudflare Workers. Pages were converted to Markdown by turndown's browser build there, which needs a `document` a Worker doesn't have, so every page failed with "document is not defined". turndown now gets a page parsed by domino, the parser its Node build already uses, so the Markdown is the same everywhere. diff --git a/.changeset/lead-capture-trim.md b/.changeset/lead-capture-trim.md deleted file mode 100644 index 4b426ec8..00000000 --- a/.changeset/lead-capture-trim.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@chatcops/core": patch ---- - -Require non-blank trimmed `name` and `projectDetails` in `capture_lead`, and name the offending field in validation errors. \ No newline at end of file diff --git a/.changeset/local-hostnames-webhook-dot.md b/.changeset/local-hostnames-webhook-dot.md deleted file mode 100644 index 376afabb..00000000 --- a/.changeset/local-hostnames-webhook-dot.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@chatcops/server": patch ---- - -Block trailing-dot localhost and internal webhook hostnames. diff --git a/.changeset/prechat-submit-validation-focus.md b/.changeset/prechat-submit-validation-focus.md deleted file mode 100644 index 10860075..00000000 --- a/.changeset/prechat-submit-validation-focus.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@chatcops/widget": patch ---- - -Keep pre-chat submit button enabled, show all field errors and focus the first invalid field on submit, and hide the required asterisk marker from screen readers. diff --git a/.changeset/quiet-languages-translate.md b/.changeset/quiet-languages-translate.md deleted file mode 100644 index 75ab25dc..00000000 --- a/.changeset/quiet-languages-translate.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@chatcops/widget": patch ---- - -Fill remaining widget locale strings. diff --git a/.changeset/quiet-regions-focus.md b/.changeset/quiet-regions-focus.md deleted file mode 100644 index f060a976..00000000 --- a/.changeset/quiet-regions-focus.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@chatcops/widget": patch ---- - -Keep inline pre-chat forms from taking focus and expose inline panels as named regions. diff --git a/.changeset/react-component.md b/.changeset/react-component.md deleted file mode 100644 index 8ef59384..00000000 --- a/.changeset/react-component.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@chatcops/react": minor ---- - -Add `@chatcops/react` with `` component and `useChatCops()` hook for React and Next.js applications. - diff --git a/.changeset/reranker-topn-validation.md b/.changeset/reranker-topn-validation.md deleted file mode 100644 index d3cdf702..00000000 --- a/.changeset/reranker-topn-validation.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@chatcops/core": patch ---- - -Validate topN in cohereReranker and voyageReranker to immediately return an empty array for NaN. diff --git a/.changeset/retriever-finite-limits.md b/.changeset/retriever-finite-limits.md deleted file mode 100644 index c3afec0b..00000000 --- a/.changeset/retriever-finite-limits.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@chatcops/core": patch ---- - -Use safe defaults when retriever limits are not finite numbers. diff --git a/.changeset/server-chatcops-next.md b/.changeset/server-chatcops-next.md deleted file mode 100644 index 7ee1fb4e..00000000 --- a/.changeset/server-chatcops-next.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@chatcops/server": minor ---- - -Add `chatcopsNext()`, a single catch-all route adapter for Next.js App Router that handles both chat and session requests. diff --git a/.changeset/stream-new-reply-pill.md b/.changeset/stream-new-reply-pill.md deleted file mode 100644 index 16b64220..00000000 --- a/.changeset/stream-new-reply-pill.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@chatcops/widget": minor ---- - -Show a "New reply" pill when new messages or reply text arrive while scrolled up. diff --git a/.changeset/user-message-newlines.md b/.changeset/user-message-newlines.md deleted file mode 100644 index 63430dee..00000000 --- a/.changeset/user-message-newlines.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@chatcops/widget": patch ---- - -A visitor's message keeps the line breaks they typed with Shift+Enter instead of showing as one line. diff --git a/.changeset/validate-ratelimit-core.md b/.changeset/validate-ratelimit-core.md deleted file mode 100644 index eb24c596..00000000 --- a/.changeset/validate-ratelimit-core.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@chatcops/core": patch ---- - -Validate rate limiter limits and windows as finite numbers greater than 0. diff --git a/.changeset/validate-ratelimit-windowms.md b/.changeset/validate-ratelimit-windowms.md deleted file mode 100644 index 0ed36105..00000000 --- a/.changeset/validate-ratelimit-windowms.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@chatcops/server": patch ---- - -Validate `rateLimit.maxRequests` and `rateLimit.windowMs` at startup in `createChatHandler`, rejecting values that are not finite numbers greater than 0. diff --git a/.changeset/widget-ur-strings.md b/.changeset/widget-ur-strings.md deleted file mode 100644 index c671cc8f..00000000 --- a/.changeset/widget-ur-strings.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@chatcops/widget": patch ---- - -Add missing widget translations for Urdu (`ur.ts`). diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index 10ebdb5c..984e7e54 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -1,5 +1,38 @@ # @chatcops/cli +## 0.4.0 + +### Minor Changes + +- b2ae289: `chatcops ingest --contextualize` has the model in `ingest.contextualize.provider` write a short context for each chunk before it is embedded, and stops with a message when the config has none. Without the flag a run never asks a model. The summary and `--json` report the chunks that got a context and the model tokens used. +- 715f6a5: Add a GitHub Actions reporter with failure annotations and a Markdown job summary. +- 7259529: Add a JUnit XML reporter and output-file support to chatcops test. +- 8a9adef: Support crawl ingestion sources starting from a URL and following same-origin links breadth-first with maxDepth, maxPages, deduplication, robots.txt compliance, and cached HTML reuse during extraction. Add --crawl to the chatcops ingest command and crawl: URLs to --source. +- 1ac65a2: Run evals against a remote ChatCops server with `--url` and repeatable `--header` options. + +### Patch Changes + +- 395096f: Fix GitHub annotations for tests run from a subfolder. +- Updated dependencies [e0adbe7] +- Updated dependencies [1a0ce80] +- Updated dependencies [efe0064] +- Updated dependencies [fc090e0] +- Updated dependencies [dde7a78] +- Updated dependencies [8a9adef] +- Updated dependencies [b2ae289] +- Updated dependencies [d8d6941] +- Updated dependencies [ac269f4] +- Updated dependencies [9759af3] +- Updated dependencies [2223a16] +- Updated dependencies [32c87af] +- Updated dependencies [105bf39] +- Updated dependencies [6c9a084] +- Updated dependencies [bc8ed4c] +- Updated dependencies [bc8ed4c] + - @chatcops/core@1.2.0 + - @chatcops/server@1.2.0 + - @chatcops/ingest@0.3.0 + ## 0.3.0 ### Minor Changes diff --git a/packages/cli/package.json b/packages/cli/package.json index 8a664b4d..2d748dde 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@chatcops/cli", - "version": "0.3.0", + "version": "0.4.0", "description": "The chatcops command: build a knowledge index from your site and search it", "keywords": [ "chatcops", diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index b0cebee1..0d8525d6 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,22 @@ # @chatcops/core +## 1.2.0 + +### Minor Changes + +- e0adbe7: Each finished reply is saved with `metadata.answered`, and `metadata.unansweredReason` (`refusal`, `no_retrieval` or `no_citation`) when it didn't answer, for an answer rate and a list of questions the knowledge doesn't cover. `checkAnswered()` in `@chatcops/core` is the same check. +- dde7a78: Add `redactPII()`, which takes email addresses, phone numbers, card numbers, IBANs and IP addresses out of text. + +### Patch Changes + +- 1a0ce80: Honor HTTP-date values in provider Retry-After headers. +- efe0064: Upgrade `@google/genai` to 3.3. Gemini requests still go to the `v1beta` API, as they did on 2.x. +- fc090e0: Update `@anthropic-ai/sdk` to 1.8 and `openai` to 7.57. +- 9759af3: Require non-blank trimmed `name` and `projectDetails` in `capture_lead`, and name the offending field in validation errors. +- 32c87af: Validate topN in cohereReranker and voyageReranker to immediately return an empty array for NaN. +- 105bf39: Use safe defaults when retriever limits are not finite numbers. +- bc8ed4c: Validate rate limiter limits and windows as finite numbers greater than 0. + ## 1.1.1 ### Patch Changes diff --git a/packages/core/package.json b/packages/core/package.json index 1643b9e7..a7135028 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@chatcops/core", - "version": "1.1.1", + "version": "1.2.0", "description": "Core AI provider abstraction, tools, and knowledge base for ChatCops", "keywords": [ "chatcops", diff --git a/packages/ingest/CHANGELOG.md b/packages/ingest/CHANGELOG.md index a5c447b5..e96a557a 100644 --- a/packages/ingest/CHANGELOG.md +++ b/packages/ingest/CHANGELOG.md @@ -1,5 +1,27 @@ # @chatcops/ingest +## 0.3.0 + +### Minor Changes + +- 8a9adef: Support crawl ingestion sources starting from a URL and following same-origin links breadth-first with maxDepth, maxPages, deduplication, robots.txt compliance, and cached HTML reuse during extraction. Add --crawl to the chatcops ingest command and crawl: URLs to --source. +- b2ae289: `contextualize: { provider }` has a model write a short context for each chunk before it is embedded (contextual retrieval): the context is embedded with the chunk, the stored text stays the chunk, and the context is kept in its metadata. The page goes in the system prompt so a provider that caches prompts reads it once, a dry run asks no model, and turning it on or off, or changing the model, embeds pages again. `IngestStats` gains `contextualized` and `modelTokens`. + +### Patch Changes + +- d8d6941: A heading that ends in `#` keeps it when the `#` is part of the title: `## Using C#` is "Using C#" in the heading path and the chunk's `section`, no longer "Using C". A closing run of `#` is dropped only when a space comes before it (`## Notes ##`), as in CommonMark. +- ac269f4: Ingest runs on Cloudflare Workers. Pages were converted to Markdown by turndown's browser build there, which needs a `document` a Worker doesn't have, so every page failed with "document is not defined". turndown now gets a page parsed by domino, the parser its Node build already uses, so the Markdown is the same everywhere. +- Updated dependencies [e0adbe7] +- Updated dependencies [1a0ce80] +- Updated dependencies [efe0064] +- Updated dependencies [fc090e0] +- Updated dependencies [dde7a78] +- Updated dependencies [9759af3] +- Updated dependencies [32c87af] +- Updated dependencies [105bf39] +- Updated dependencies [bc8ed4c] + - @chatcops/core@1.2.0 + ## 0.2.0 ### Patch Changes diff --git a/packages/ingest/package.json b/packages/ingest/package.json index 5757f263..99c59d4d 100644 --- a/packages/ingest/package.json +++ b/packages/ingest/package.json @@ -1,6 +1,6 @@ { "name": "@chatcops/ingest", - "version": "0.2.0", + "version": "0.3.0", "description": "Turn a website into a searchable ChatCops knowledge index: discover, fetch, extract, chunk and embed", "keywords": [ "chatcops", diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md new file mode 100644 index 00000000..f7bd539f --- /dev/null +++ b/packages/react/CHANGELOG.md @@ -0,0 +1,19 @@ +# @chatcops/react + +## 0.2.0 + +### Minor Changes + +- b90d9d7: Add `@chatcops/react` with `` component and `useChatCops()` hook for React and Next.js applications. + +### Patch Changes + +- Updated dependencies [5dbb63f] +- Updated dependencies [d569c86] +- Updated dependencies [524f5e6] +- Updated dependencies [44228bf] +- Updated dependencies [99701ee] +- Updated dependencies [a64c9fb] +- Updated dependencies [46d01e7] +- Updated dependencies [a034d7a] + - @chatcops/widget@1.2.0 diff --git a/packages/react/package.json b/packages/react/package.json index 71af98b7..68359565 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@chatcops/react", - "version": "0.1.0", + "version": "0.2.0", "description": "React component and hooks for ChatCops", "type": "module", "main": "dist/index.js", @@ -57,4 +57,3 @@ "node": ">=22" } } - diff --git a/packages/server/CHANGELOG.md b/packages/server/CHANGELOG.md index 576f893f..3b50fa44 100644 --- a/packages/server/CHANGELOG.md +++ b/packages/server/CHANGELOG.md @@ -1,5 +1,27 @@ # @chatcops/server +## 1.2.0 + +### Minor Changes + +- e0adbe7: Each finished reply is saved with `metadata.answered`, and `metadata.unansweredReason` (`refusal`, `no_retrieval` or `no_citation`) when it didn't answer, for an answer rate and a list of questions the knowledge doesn't cover. `checkAnswered()` in `@chatcops/core` is the same check. +- 6c9a084: Add `chatcopsNext()`, a single catch-all route adapter for Next.js App Router that handles both chat and session requests. + +### Patch Changes + +- 2223a16: Block trailing-dot localhost and internal webhook hostnames. +- bc8ed4c: Validate `rateLimit.maxRequests` and `rateLimit.windowMs` at startup in `createChatHandler`, rejecting values that are not finite numbers greater than 0. +- Updated dependencies [e0adbe7] +- Updated dependencies [1a0ce80] +- Updated dependencies [efe0064] +- Updated dependencies [fc090e0] +- Updated dependencies [dde7a78] +- Updated dependencies [9759af3] +- Updated dependencies [32c87af] +- Updated dependencies [105bf39] +- Updated dependencies [bc8ed4c] + - @chatcops/core@1.2.0 + ## 1.1.1 ### Patch Changes diff --git a/packages/server/package.json b/packages/server/package.json index d89ef177..babe8615 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -1,6 +1,6 @@ { "name": "@chatcops/server", - "version": "1.1.1", + "version": "1.2.0", "description": "Server-side handler and adapters for ChatCops", "keywords": [ "chatcops", diff --git a/packages/widget/CHANGELOG.md b/packages/widget/CHANGELOG.md index 814cfd3e..f7e4fef7 100644 --- a/packages/widget/CHANGELOG.md +++ b/packages/widget/CHANGELOG.md @@ -1,5 +1,21 @@ # @chatcops/widget +## 1.2.0 + +### Minor Changes + +- a64c9fb: Show a "New reply" pill when new messages or reply text arrive while scrolled up. + +### Patch Changes + +- 5dbb63f: A code block tagged `c++`, `c#` or `objective-c` no longer shows part of the tag as its first line, and a one-line code block keeps all of its text. +- d569c86: Keep focus inside the popup when it opens on the consent notice and after choosing an item from the header menu. +- 524f5e6: Keep pre-chat submit button enabled, show all field errors and focus the first invalid field on submit, and hide the required asterisk marker from screen readers. +- 44228bf: Fill remaining widget locale strings. +- 99701ee: Keep inline pre-chat forms from taking focus and expose inline panels as named regions. +- 46d01e7: A visitor's message keeps the line breaks they typed with Shift+Enter instead of showing as one line. +- a034d7a: Add missing widget translations for Urdu (`ur.ts`). + ## 1.1.1 ### Patch Changes diff --git a/packages/widget/package.json b/packages/widget/package.json index a7bd4472..36091b97 100644 --- a/packages/widget/package.json +++ b/packages/widget/package.json @@ -1,6 +1,6 @@ { "name": "@chatcops/widget", - "version": "1.1.1", + "version": "1.2.0", "description": "Embeddable AI chatbot widget - zero dependencies, Shadow DOM isolated", "keywords": [ "chatcops",