@copilotkit/channels 0.11.1 → 0.13.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
  provides the engine, JSX vocabulary, UI primitives, testing API, and every supported adapter.
5
5
 
6
6
  **Channels run through a channel runner.** CopilotKit Intelligence provides the
7
- managed runner, available on a free plan: the `CopilotRuntime` starts and owns
7
+ managed runner, available on a free plan: the `CopilotKitRuntime` starts and owns
8
8
  each Channel's lifecycle once Intelligence is configured. You can also build and
9
9
  operate your own channel runner on the lower-level SDK primitives, with no
10
10
  Intelligence dependency — a supported path where your team owns state,
@@ -30,8 +30,8 @@ Configure TypeScript to use the Channels JSX runtime:
30
30
  ```tsx
31
31
  import { createChannel, Message, Section } from "@copilotkit/channels";
32
32
  import { slack } from "@copilotkit/channels/slack";
33
- import { CopilotRuntime, CopilotKitIntelligence } from "@copilotkit/runtime/v2";
34
- import { createCopilotNodeListener } from "@copilotkit/runtime/v2/node";
33
+ import { CopilotKitRuntime, CopilotKitIntelligence } from "@copilotkit/runtime";
34
+ import { createCopilotKitNodeListener } from "@copilotkit/runtime/node";
35
35
 
36
36
  const channel = createChannel({
37
37
  name: "support-bot", // project-unique Intelligence Channel name
@@ -53,7 +53,7 @@ channel.onMessage(({ thread, message }) =>
53
53
  );
54
54
 
55
55
  // The runtime owns the Channel's lifecycle — there is no `channel.start()`.
56
- const runtime = new CopilotRuntime({
56
+ const runtime = new CopilotKitRuntime({
57
57
  intelligence: new CopilotKitIntelligence({
58
58
  // apiUrl and wsUrl default to cloud-hosted CopilotKit Intelligence — override
59
59
  // both together only for a self-hosted deployment.
@@ -63,7 +63,7 @@ const runtime = new CopilotRuntime({
63
63
  });
64
64
 
65
65
  // Creating the listener starts the Channel's connection.
66
- const listener = createCopilotNodeListener({ runtime });
66
+ const listener = createCopilotKitNodeListener({ runtime });
67
67
  // Optional: await that activation so a broken config fails startup loudly.
68
68
  await listener.channels.ready(); // listener.channels.stop() tears it down
69
69
  ```
@@ -73,7 +73,6 @@ await listener.channels.ready(); // listener.channels.stop() tears it down
73
73
  - `@copilotkit/channels/slack` (plus `/slack/codec` and `/slack/render`)
74
74
  - `@copilotkit/channels/teams` (plus `/teams/render`)
75
75
  - `@copilotkit/channels/discord`
76
- - `@copilotkit/channels/telegram`
77
76
  - `@copilotkit/channels/whatsapp`
78
77
 
79
78
  One package version gives you a tested snapshot of the core engine, JSX/UI vocabulary,
@@ -0,0 +1,2 @@
1
+ export * from "@copilotkit/channels-core/takumi";
2
+ //# sourceMappingURL=takumi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"takumi.d.ts","sourceRoot":"","sources":["../src/takumi.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC"}
package/dist/takumi.js ADDED
@@ -0,0 +1 @@
1
+ export * from "@copilotkit/channels-core/takumi";
@@ -1,11 +1,12 @@
1
1
  import { jsx as _jsx } from "@copilotkit/channels/jsx-runtime";
2
+ import { execFileSync } from "node:child_process";
3
+ import { fileURLToPath } from "node:url";
2
4
  import { describe, expect, it } from "vitest";
3
5
  import { createChannel, Message, Button } from "@copilotkit/channels";
4
6
  import { runStateStoreConformance } from "@copilotkit/channels/testing";
5
7
  import { slack } from "@copilotkit/channels/slack";
6
8
  import { teams } from "@copilotkit/channels/teams";
7
9
  import { discord } from "@copilotkit/channels/discord";
8
- import { telegram } from "@copilotkit/channels/telegram";
9
10
  import { whatsapp } from "@copilotkit/channels/whatsapp";
10
11
  import { slackCodec } from "@copilotkit/channels/slack/codec";
11
12
  import { renderSlackMessage } from "@copilotkit/channels/slack/render";
@@ -22,7 +23,6 @@ describe("@copilotkit/channels umbrella", () => {
22
23
  slack,
23
24
  teams,
24
25
  discord,
25
- telegram,
26
26
  whatsapp,
27
27
  renderSlackMessage,
28
28
  renderAdaptiveCard,
@@ -31,4 +31,16 @@ describe("@copilotkit/channels umbrella", () => {
31
31
  }
32
32
  expect(typeof slackCodec).toBe("object");
33
33
  });
34
+ it("does not resolve the retired /telegram entry", () => {
35
+ const result = execFileSync(process.execPath, [
36
+ "--input-type=module",
37
+ "--eval",
38
+ "try { console.log(import.meta.resolve(process.argv[1])); } catch (error) { console.log(error.code); }",
39
+ "@copilotkit/channels/telegram",
40
+ ], {
41
+ cwd: fileURLToPath(new URL("..", import.meta.url)),
42
+ encoding: "utf8",
43
+ });
44
+ expect(result.trim()).toBe("ERR_PACKAGE_PATH_NOT_EXPORTED");
45
+ });
34
46
  });
package/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "@copilotkit/channels",
3
- "version": "0.11.1",
3
+ "version": "0.13.0-rc.0",
4
4
  "description": "Batteries-included CopilotKit Channels package with the core engine, JSX UI, and every supported platform adapter.",
5
5
  "license": "MIT",
6
+ "engines": {
7
+ "node": "^20.19.3 || >=22.13.0"
8
+ },
6
9
  "repository": {
7
10
  "type": "git",
8
11
  "url": "https://github.com/CopilotKit/CopilotKit.git",
@@ -20,7 +23,6 @@
20
23
  "teams",
21
24
  "intelligence",
22
25
  "discord",
23
- "telegram",
24
26
  "whatsapp",
25
27
  "copilotkit",
26
28
  "ag-ui"
@@ -52,6 +54,10 @@
52
54
  "types": "./dist/ui.d.ts",
53
55
  "import": "./dist/ui.js"
54
56
  },
57
+ "./takumi": {
58
+ "types": "./dist/takumi.d.ts",
59
+ "import": "./dist/takumi.js"
60
+ },
55
61
  "./slack": {
56
62
  "types": "./dist/slack.d.ts",
57
63
  "import": "./dist/slack.js"
@@ -76,10 +82,6 @@
76
82
  "types": "./dist/discord.d.ts",
77
83
  "import": "./dist/discord.js"
78
84
  },
79
- "./telegram": {
80
- "types": "./dist/telegram.d.ts",
81
- "import": "./dist/telegram.js"
82
- },
83
85
  "./whatsapp": {
84
86
  "types": "./dist/whatsapp.d.ts",
85
87
  "import": "./dist/whatsapp.js"
@@ -89,13 +91,12 @@
89
91
  "dist"
90
92
  ],
91
93
  "dependencies": {
92
- "@copilotkit/channels-slack": "0.11.1",
93
- "@copilotkit/channels-teams": "0.11.1",
94
- "@copilotkit/channels-discord": "0.11.1",
95
- "@copilotkit/channels-telegram": "0.11.1",
96
- "@copilotkit/channels-ui": "0.11.1",
97
- "@copilotkit/channels-whatsapp": "0.11.1",
98
- "@copilotkit/channels-core": "0.11.1"
94
+ "@copilotkit/channels-core": "0.13.0-rc.0",
95
+ "@copilotkit/channels-ui": "0.13.0-rc.0",
96
+ "@copilotkit/channels-slack": "0.13.0-rc.0",
97
+ "@copilotkit/channels-teams": "0.13.0-rc.0",
98
+ "@copilotkit/channels-discord": "0.13.0-rc.0",
99
+ "@copilotkit/channels-whatsapp": "0.13.0-rc.0"
99
100
  },
100
101
  "devDependencies": {
101
102
  "@microsoft/agents-activity": "^1.5.3",
@@ -109,7 +110,9 @@
109
110
  "peerDependencies": {
110
111
  "@microsoft/agents-activity": "^1.5.3",
111
112
  "@microsoft/agents-hosting": "^1.5.3",
112
- "express": "^4.18.0 || ^5.0.0"
113
+ "express": "^4.18.0 || ^5.0.0",
114
+ "react": ">=18",
115
+ "takumi-js": "^2.7.3"
113
116
  },
114
117
  "peerDependenciesMeta": {
115
118
  "@microsoft/agents-activity": {
@@ -120,6 +123,12 @@
120
123
  },
121
124
  "express": {
122
125
  "optional": true
126
+ },
127
+ "react": {
128
+ "optional": true
129
+ },
130
+ "takumi-js": {
131
+ "optional": true
123
132
  }
124
133
  },
125
134
  "nx": {
@@ -1,2 +0,0 @@
1
- export * from "@copilotkit/channels-telegram";
2
- //# sourceMappingURL=telegram.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"telegram.d.ts","sourceRoot":"","sources":["../src/telegram.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC"}
package/dist/telegram.js DELETED
@@ -1 +0,0 @@
1
- export * from "@copilotkit/channels-telegram";