Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,11 @@
"@chatcops/widget": "0.7.0",
"@chatcops/website": "0.0.6"
},
"changesets": []
"changesets": [
"legacy-format-through-1x",
"remove-deprecated-apis",
"retention-days-check",
"sessions-by-default",
"text-assertions"
]
}
16 changes: 16 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# @chatcops/cli

## 0.2.0-rc.0

### Minor Changes

- 6190309: `chatcops test` has `icontains`, `regex` and `equals` text assertions.

### Patch Changes

- Updated dependencies [3fada9b]
- Updated dependencies [3f6fd66]
- Updated dependencies [6e88477]
- Updated dependencies [e28116a]
- @chatcops/server@1.0.0-rc.0
- @chatcops/core@1.0.0-rc.0
- @chatcops/ingest@0.2.0-rc.0

## 0.1.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@chatcops/cli",
"version": "0.1.0",
"version": "0.2.0-rc.0",
"private": true,
"description": "The chatcops command: build a knowledge index from your site and search it",
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/tests/cli.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe('chatcops', () => {
const cwd = TMP;
expect((await run(['--help'], cwd)).stdout).toContain('chatcops ingest [options]');
expect(await run([], cwd)).toMatchObject({ code: EXIT.unusable });
expect((await run(['--version'], cwd)).stdout).toMatch(/^\d+\.\d+\.\d+\n$/);
expect((await run(['--version'], cwd)).stdout).toMatch(/^\d+\.\d+\.\d+(-[\w.]+)?\n$/);
expect(await run(['deploy'], cwd)).toMatchObject({ code: EXIT.unusable, stderr: expect.stringContaining('Unknown command "deploy"') });
expect(await run(['ingest', '--nope'], cwd)).toMatchObject({ code: EXIT.unusable, stderr: expect.stringContaining("Unknown option '--nope'") });
expect(await run(['ingest', '--max-pages', 'ten'], cwd)).toMatchObject({ code: EXIT.unusable, stderr: expect.stringContaining('--max-pages takes a whole number') });
Expand Down Expand Up @@ -167,6 +167,6 @@ describe('the built command', () => {
it('runs from dist/bin.js', () => {
const bin = resolve(__dirname, '../dist/bin.js');
const out = execFileSync(process.execPath, [bin, '--version'], { encoding: 'utf8' });
expect(out).toMatch(/^\d+\.\d+\.\d+\n$/);
expect(out).toMatch(/^\d+\.\d+\.\d+(-[\w.]+)?\n$/);
});
});
11 changes: 11 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @chatcops/core

## 1.0.0-rc.0

### Major Changes

- 3f6fd66: Removes the APIs that 0.6 to 0.8 deprecated. Each one now fails at startup with a message naming the replacement, and [Upgrading to 1.0](https://chat.codercops.com/getting-started/upgrading-to-1/) has a step for each.

- Server: `cors` (use `allowedOrigins`), `conversationStore` (use `storage: { conversations }`), `i18n` (ignored since 0.6), and the `RateLimiter` and `RateLimitConfig` exports (use `createRateLimiter` from `@chatcops/core`). Webhook bodies no longer repeat `event` and `timestamp`: read `type` and `created`.
- Core: analytics stats drop `leadsCapture` (use `leadsCaptured`), and the `noun:verb` event names are no longer read as `noun.verb` ones or repeated in `eventCounts`. Events a store saved under them still count.
- Core: the Claude, OpenAI and Gemini providers no longer have `chat()` and `chatSync()`; use `runTurn()`. On `AIProvider`, `chat()` is optional and `chatSync()` is gone, so a custom provider needs `step()` or `chat()`.
- Widget: `persistHistory` (use `persistence: 'none'`). Setting it throws, so a site that asked for nothing to be saved never starts saving.

## 0.6.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@chatcops/core",
"version": "0.6.0",
"version": "1.0.0-rc.0",
"description": "Core AI provider abstraction, tools, and knowledge base for ChatCops",
"keywords": [
"chatcops",
Expand Down
7 changes: 7 additions & 0 deletions packages/ingest/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @chatcops/ingest

## 0.2.0-rc.0

### Patch Changes

- Updated dependencies [3f6fd66]
- @chatcops/core@1.0.0-rc.0

## 0.1.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/ingest/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@chatcops/ingest",
"version": "0.1.0",
"version": "0.2.0-rc.0",
"private": true,
"description": "Turn a website into a searchable ChatCops knowledge index: discover, fetch, extract, chunk and embed",
"keywords": [
Expand Down
20 changes: 20 additions & 0 deletions packages/server/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# @chatcops/server

## 1.0.0-rc.0

### Major Changes

- 3f6fd66: Removes the APIs that 0.6 to 0.8 deprecated. Each one now fails at startup with a message naming the replacement, and [Upgrading to 1.0](https://chat.codercops.com/getting-started/upgrading-to-1/) has a step for each.

- Server: `cors` (use `allowedOrigins`), `conversationStore` (use `storage: { conversations }`), `i18n` (ignored since 0.6), and the `RateLimiter` and `RateLimitConfig` exports (use `createRateLimiter` from `@chatcops/core`). Webhook bodies no longer repeat `event` and `timestamp`: read `type` and `created`.
- Core: analytics stats drop `leadsCapture` (use `leadsCaptured`), and the `noun:verb` event names are no longer read as `noun.verb` ones or repeated in `eventCounts`. Events a store saved under them still count.
- Core: the Claude, OpenAI and Gemini providers no longer have `chat()` and `chatSync()`; use `runTurn()`. On `AIProvider`, `chat()` is optional and `chatSync()` is gone, so a custom provider needs `step()` or `chat()`.
- Widget: `persistHistory` (use `persistence: 'none'`). Setting it throws, so a site that asked for nothing to be saved never starts saving.

- e28116a: Session tokens are required by default. A server without `sessionSecrets` refuses to start unless it sets `allowAnonymous: true`, so a chat can't be left open to guessed or leaked conversation ids by accident. `requireSession` is removed: `requireSession: false` is now `allowAnonymous: true` next to `sessionSecrets`, and `true` was already the default. The widget fetches tokens itself from 0.6, but it asks `<chat url>/session`, so with Express mount the handler with `app.use('/chat', ...)`, and on Vercel or Next.js add a `/session` route that re-exports the chat route. `chatcops test` runs the server in process without needing tokens. See [Upgrading to 1.0](https://chat.codercops.com/getting-started/upgrading-to-1/).

### Patch Changes

- 3fada9b: The 0.5 stream format, for widgets older than 0.6 and clients that don't send `protocol: 1`, stays through 1.x and goes away in 2.0. The startup note and the docs said 1.0.
- 6e88477: `createChatHandler` now throws when `retention.conversationsDays` is 0, negative or not a finite number. Before, 0 or a negative value made `purge()` delete every conversation.
- Updated dependencies [3f6fd66]
- @chatcops/core@1.0.0-rc.0

## 0.7.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@chatcops/server",
"version": "0.7.0",
"version": "1.0.0-rc.0",
"description": "Server-side handler and adapters for ChatCops",
"keywords": [
"chatcops",
Expand Down
7 changes: 7 additions & 0 deletions packages/store-cloudflare/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @chatcops/store-cloudflare

## 0.3.0-rc.0

### Patch Changes

- Updated dependencies [3f6fd66]
- @chatcops/core@1.0.0-rc.0

## 0.2.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/store-cloudflare/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@chatcops/store-cloudflare",
"version": "0.2.0",
"version": "0.3.0-rc.0",
"private": true,
"description": "Cloudflare D1, KV and Durable Objects storage for ChatCops",
"keywords": [
Expand Down
7 changes: 7 additions & 0 deletions packages/store-postgres/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @chatcops/store-postgres

## 0.3.0-rc.0

### Patch Changes

- Updated dependencies [3f6fd66]
- @chatcops/core@1.0.0-rc.0

## 0.2.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/store-postgres/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@chatcops/store-postgres",
"version": "0.2.0",
"version": "0.3.0-rc.0",
"private": true,
"description": "Postgres storage for ChatCops: conversations, counters, keys and analytics events",
"keywords": [
Expand Down
7 changes: 7 additions & 0 deletions packages/store-redis/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @chatcops/store-redis

## 0.3.0-rc.0

### Patch Changes

- Updated dependencies [3f6fd66]
- @chatcops/core@1.0.0-rc.0

## 0.2.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/store-redis/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@chatcops/store-redis",
"version": "0.2.0",
"version": "0.3.0-rc.0",
"private": true,
"description": "Redis and Upstash storage for ChatCops",
"keywords": [
Expand Down
7 changes: 7 additions & 0 deletions packages/store-sqlite/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @chatcops/store-sqlite

## 0.3.0-rc.0

### Patch Changes

- Updated dependencies [3f6fd66]
- @chatcops/core@1.0.0-rc.0

## 0.2.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/store-sqlite/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@chatcops/store-sqlite",
"version": "0.2.0",
"version": "0.3.0-rc.0",
"private": true,
"description": "SQLite storage for ChatCops single-server deployments",
"keywords": [
Expand Down
7 changes: 7 additions & 0 deletions packages/store-upstash-vector/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @chatcops/store-upstash-vector

## 0.2.0-rc.0

### Patch Changes

- Updated dependencies [3f6fd66]
- @chatcops/core@1.0.0-rc.0

## 0.1.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/store-upstash-vector/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@chatcops/store-upstash-vector",
"version": "0.1.0",
"version": "0.2.0-rc.0",
"private": true,
"description": "Upstash Vector storage for ChatCops",
"keywords": [
Expand Down
11 changes: 11 additions & 0 deletions packages/widget/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @chatcops/widget

## 1.0.0-rc.0

### Major Changes

- 3f6fd66: Removes the APIs that 0.6 to 0.8 deprecated. Each one now fails at startup with a message naming the replacement, and [Upgrading to 1.0](https://chat.codercops.com/getting-started/upgrading-to-1/) has a step for each.

- Server: `cors` (use `allowedOrigins`), `conversationStore` (use `storage: { conversations }`), `i18n` (ignored since 0.6), and the `RateLimiter` and `RateLimitConfig` exports (use `createRateLimiter` from `@chatcops/core`). Webhook bodies no longer repeat `event` and `timestamp`: read `type` and `created`.
- Core: analytics stats drop `leadsCapture` (use `leadsCaptured`), and the `noun:verb` event names are no longer read as `noun.verb` ones or repeated in `eventCounts`. Events a store saved under them still count.
- Core: the Claude, OpenAI and Gemini providers no longer have `chat()` and `chatSync()`; use `runTurn()`. On `AIProvider`, `chat()` is optional and `chatSync()` is gone, so a custom provider needs `step()` or `chat()`.
- Widget: `persistHistory` (use `persistence: 'none'`). Setting it throws, so a site that asked for nothing to be saved never starts saving.

## 0.7.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/widget/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@chatcops/widget",
"version": "0.7.0",
"version": "1.0.0-rc.0",
"description": "Embeddable AI chatbot widget - zero dependencies, Shadow DOM isolated",
"keywords": [
"chatcops",
Expand Down
13 changes: 13 additions & 0 deletions website/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @chatcops/website

## 0.0.7-rc.0

### Patch Changes

- Updated dependencies [3fada9b]
- Updated dependencies [3f6fd66]
- Updated dependencies [6e88477]
- Updated dependencies [e28116a]
- @chatcops/server@1.0.0-rc.0
- @chatcops/core@1.0.0-rc.0
- @chatcops/widget@1.0.0-rc.0
- @chatcops/store-cloudflare@1.0.0-rc.0

## 0.0.6

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@chatcops/website",
"version": "0.0.6",
"version": "0.0.7-rc.0",
"private": true,
"type": "module",
"scripts": {
Expand Down
Loading