Skip to content

Commit db26ca6

Browse files
authored
Merge pull request #474 from codercops/changeset-release/production
chore: version packages (rc)
2 parents a5a97d7 + 476334d commit db26ca6

24 files changed

Lines changed: 133 additions & 14 deletions

File tree

‎.changeset/pre.json‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,11 @@
1414
"@chatcops/widget": "0.7.0",
1515
"@chatcops/website": "0.0.6"
1616
},
17-
"changesets": []
17+
"changesets": [
18+
"legacy-format-through-1x",
19+
"remove-deprecated-apis",
20+
"retention-days-check",
21+
"sessions-by-default",
22+
"text-assertions"
23+
]
1824
}

‎packages/cli/CHANGELOG.md‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# @chatcops/cli
22

3+
## 0.2.0-rc.0
4+
5+
### Minor Changes
6+
7+
- 6190309: `chatcops test` has `icontains`, `regex` and `equals` text assertions.
8+
9+
### Patch Changes
10+
11+
- Updated dependencies [3fada9b]
12+
- Updated dependencies [3f6fd66]
13+
- Updated dependencies [6e88477]
14+
- Updated dependencies [e28116a]
15+
- @chatcops/server@1.0.0-rc.0
16+
- @chatcops/core@1.0.0-rc.0
17+
- @chatcops/ingest@0.2.0-rc.0
18+
319
## 0.1.0
420

521
### Minor Changes

‎packages/cli/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@chatcops/cli",
3-
"version": "0.1.0",
3+
"version": "0.2.0-rc.0",
44
"private": true,
55
"description": "The chatcops command: build a knowledge index from your site and search it",
66
"keywords": [

‎packages/cli/tests/cli.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ describe('chatcops', () => {
6161
const cwd = TMP;
6262
expect((await run(['--help'], cwd)).stdout).toContain('chatcops ingest [options]');
6363
expect(await run([], cwd)).toMatchObject({ code: EXIT.unusable });
64-
expect((await run(['--version'], cwd)).stdout).toMatch(/^\d+\.\d+\.\d+\n$/);
64+
expect((await run(['--version'], cwd)).stdout).toMatch(/^\d+\.\d+\.\d+(-[\w.]+)?\n$/);
6565
expect(await run(['deploy'], cwd)).toMatchObject({ code: EXIT.unusable, stderr: expect.stringContaining('Unknown command "deploy"') });
6666
expect(await run(['ingest', '--nope'], cwd)).toMatchObject({ code: EXIT.unusable, stderr: expect.stringContaining("Unknown option '--nope'") });
6767
expect(await run(['ingest', '--max-pages', 'ten'], cwd)).toMatchObject({ code: EXIT.unusable, stderr: expect.stringContaining('--max-pages takes a whole number') });
@@ -167,6 +167,6 @@ describe('the built command', () => {
167167
it('runs from dist/bin.js', () => {
168168
const bin = resolve(__dirname, '../dist/bin.js');
169169
const out = execFileSync(process.execPath, [bin, '--version'], { encoding: 'utf8' });
170-
expect(out).toMatch(/^\d+\.\d+\.\d+\n$/);
170+
expect(out).toMatch(/^\d+\.\d+\.\d+(-[\w.]+)?\n$/);
171171
});
172172
});

‎packages/core/CHANGELOG.md‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# @chatcops/core
22

3+
## 1.0.0-rc.0
4+
5+
### Major Changes
6+
7+
- 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.
8+
9+
- 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`.
10+
- 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.
11+
- 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()`.
12+
- Widget: `persistHistory` (use `persistence: 'none'`). Setting it throws, so a site that asked for nothing to be saved never starts saving.
13+
314
## 0.6.0
415

516
### Minor Changes

‎packages/core/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@chatcops/core",
3-
"version": "0.6.0",
3+
"version": "1.0.0-rc.0",
44
"description": "Core AI provider abstraction, tools, and knowledge base for ChatCops",
55
"keywords": [
66
"chatcops",

‎packages/ingest/CHANGELOG.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @chatcops/ingest
22

3+
## 0.2.0-rc.0
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [3f6fd66]
8+
- @chatcops/core@1.0.0-rc.0
9+
310
## 0.1.0
411

512
### Minor Changes

‎packages/ingest/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@chatcops/ingest",
3-
"version": "0.1.0",
3+
"version": "0.2.0-rc.0",
44
"private": true,
55
"description": "Turn a website into a searchable ChatCops knowledge index: discover, fetch, extract, chunk and embed",
66
"keywords": [

‎packages/server/CHANGELOG.md‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
# @chatcops/server
22

3+
## 1.0.0-rc.0
4+
5+
### Major Changes
6+
7+
- 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.
8+
9+
- 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`.
10+
- 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.
11+
- 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()`.
12+
- Widget: `persistHistory` (use `persistence: 'none'`). Setting it throws, so a site that asked for nothing to be saved never starts saving.
13+
14+
- 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/).
15+
16+
### Patch Changes
17+
18+
- 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.
19+
- 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.
20+
- Updated dependencies [3f6fd66]
21+
- @chatcops/core@1.0.0-rc.0
22+
323
## 0.7.0
424

525
### Minor Changes

‎packages/server/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@chatcops/server",
3-
"version": "0.7.0",
3+
"version": "1.0.0-rc.0",
44
"description": "Server-side handler and adapters for ChatCops",
55
"keywords": [
66
"chatcops",

0 commit comments

Comments
 (0)