@copilotkit/channels-ui 0.1.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/LICENSE +21 -0
- package/README.md +197 -0
- package/dist/bind.d.ts +6 -0
- package/dist/bind.d.ts.map +1 -0
- package/dist/bind.js +18 -0
- package/dist/bind.test.d.ts +2 -0
- package/dist/bind.test.d.ts.map +1 -0
- package/dist/bind.test.js +14 -0
- package/dist/components.d.ts +154 -0
- package/dist/components.d.ts.map +1 -0
- package/dist/components.js +32 -0
- package/dist/components.test.d.ts +2 -0
- package/dist/components.test.d.ts.map +1 -0
- package/dist/components.test.js +89 -0
- package/dist/emoji.d.ts +104 -0
- package/dist/emoji.d.ts.map +1 -0
- package/dist/emoji.js +77 -0
- package/dist/emoji.test.d.ts +2 -0
- package/dist/emoji.test.d.ts.map +1 -0
- package/dist/emoji.test.js +63 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -0
- package/dist/ir.d.ts +11 -0
- package/dist/ir.d.ts.map +1 -0
- package/dist/ir.js +1 -0
- package/dist/jsx-dev-runtime.d.ts +7 -0
- package/dist/jsx-dev-runtime.d.ts.map +1 -0
- package/dist/jsx-dev-runtime.js +4 -0
- package/dist/jsx-runtime.d.ts +30 -0
- package/dist/jsx-runtime.d.ts.map +1 -0
- package/dist/jsx-runtime.js +6 -0
- package/dist/jsx-runtime.test.d.ts +2 -0
- package/dist/jsx-runtime.test.d.ts.map +1 -0
- package/dist/jsx-runtime.test.js +17 -0
- package/dist/modal.d.ts +60 -0
- package/dist/modal.d.ts.map +1 -0
- package/dist/modal.js +13 -0
- package/dist/modal.test.d.ts +2 -0
- package/dist/modal.test.d.ts.map +1 -0
- package/dist/modal.test.js +29 -0
- package/dist/render.d.ts +3 -0
- package/dist/render.d.ts.map +1 -0
- package/dist/render.js +37 -0
- package/dist/render.test.d.ts +2 -0
- package/dist/render.test.d.ts.map +1 -0
- package/dist/render.test.js +39 -0
- package/dist/types.d.ts +212 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +1 -0
- package/package.json +61 -0
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import type { EmojiValue } from "./emoji.js";
|
|
2
|
+
import type { ModalView } from "./modal.js";
|
|
3
|
+
import type { Renderable } from "./ir.js";
|
|
4
|
+
export interface MessageRef {
|
|
5
|
+
id: string;
|
|
6
|
+
[k: string]: unknown;
|
|
7
|
+
}
|
|
8
|
+
/** Result of `Thread.postEphemeral`. `usedFallback` is present on success: `false` = native, `true` = DM fallback. */
|
|
9
|
+
export interface EphemeralResult {
|
|
10
|
+
ok: boolean;
|
|
11
|
+
usedFallback?: boolean;
|
|
12
|
+
ref?: MessageRef;
|
|
13
|
+
error?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface PlatformUser {
|
|
16
|
+
id: string;
|
|
17
|
+
name?: string;
|
|
18
|
+
handle?: string;
|
|
19
|
+
email?: string;
|
|
20
|
+
}
|
|
21
|
+
/** A base64 data source, shared by every binary media part. */
|
|
22
|
+
export type MediaDataSource = {
|
|
23
|
+
type: "data";
|
|
24
|
+
value: string;
|
|
25
|
+
mimeType: string;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* AG-UI multimodal content parts. Defined here (the lowest shared layer) so
|
|
29
|
+
* platform adapters can carry built multimodal content through the framework
|
|
30
|
+
* to the agent without a circular dependency — `@copilotkit/channels` depends on
|
|
31
|
+
* `@copilotkit/channels-ui`, not the reverse. Identical in shape to bot-slack's so
|
|
32
|
+
* the agent sees the same multimodal input across every adapter.
|
|
33
|
+
*
|
|
34
|
+
* Binary media (image/audio/video/document) is passed straight through as a
|
|
35
|
+
* data part; the agent's model decides what it can actually consume.
|
|
36
|
+
*/
|
|
37
|
+
export type AgentContentPart = {
|
|
38
|
+
type: "text";
|
|
39
|
+
text: string;
|
|
40
|
+
} | {
|
|
41
|
+
type: "image";
|
|
42
|
+
source: MediaDataSource;
|
|
43
|
+
} | {
|
|
44
|
+
type: "audio";
|
|
45
|
+
source: MediaDataSource;
|
|
46
|
+
} | {
|
|
47
|
+
type: "video";
|
|
48
|
+
source: MediaDataSource;
|
|
49
|
+
} | {
|
|
50
|
+
type: "document";
|
|
51
|
+
source: MediaDataSource;
|
|
52
|
+
};
|
|
53
|
+
export interface IncomingMessage {
|
|
54
|
+
text: string;
|
|
55
|
+
user: PlatformUser;
|
|
56
|
+
ref: MessageRef;
|
|
57
|
+
platform: string;
|
|
58
|
+
/**
|
|
59
|
+
* Optional multimodal content parts (e.g. inbound image/file attachments)
|
|
60
|
+
* built by the adapter. When present, the app should prefer these over
|
|
61
|
+
* `text` as the agent prompt so the model receives the attachments.
|
|
62
|
+
*/
|
|
63
|
+
contentParts?: AgentContentPart[];
|
|
64
|
+
/**
|
|
65
|
+
* Cross-platform identity key resolved by the bot's `identity` resolver, if
|
|
66
|
+
* any. Stable across platforms for the same human (e.g. an email address).
|
|
67
|
+
*/
|
|
68
|
+
userKey?: string;
|
|
69
|
+
/**
|
|
70
|
+
* Stable platform event id (managed/Intelligence path), for customer-side
|
|
71
|
+
* idempotency. Omitted by adapters that don't surface one.
|
|
72
|
+
*/
|
|
73
|
+
eventId?: string;
|
|
74
|
+
/** Stable per-turn id (managed/Intelligence path). */
|
|
75
|
+
turnId?: string;
|
|
76
|
+
/** Lease/delivery id (managed/Intelligence path). */
|
|
77
|
+
deliveryId?: string;
|
|
78
|
+
}
|
|
79
|
+
export interface ThreadMessage {
|
|
80
|
+
user?: PlatformUser;
|
|
81
|
+
text: string;
|
|
82
|
+
ts?: string;
|
|
83
|
+
isBot?: boolean;
|
|
84
|
+
}
|
|
85
|
+
export interface Thread {
|
|
86
|
+
readonly platform: string;
|
|
87
|
+
post(ui: Renderable): Promise<MessageRef>;
|
|
88
|
+
update(ref: MessageRef, ui: Renderable): Promise<MessageRef>;
|
|
89
|
+
delete(ref: MessageRef): Promise<void>;
|
|
90
|
+
/**
|
|
91
|
+
* Post a picker and block until an interaction resolves it to the clicked
|
|
92
|
+
* button's `value`. Pass the expected value type, e.g.
|
|
93
|
+
* `awaitChoice<{ confirmed: boolean }>(<Picker/>)`.
|
|
94
|
+
*/
|
|
95
|
+
awaitChoice<T = unknown>(ui: Renderable): Promise<T>;
|
|
96
|
+
runAgent(input?: unknown): Promise<MessageRef | undefined>;
|
|
97
|
+
resume(value: unknown): Promise<MessageRef | undefined>;
|
|
98
|
+
stream(src: string | AsyncIterable<string>): Promise<MessageRef>;
|
|
99
|
+
postFile(args: {
|
|
100
|
+
bytes: Uint8Array;
|
|
101
|
+
filename: string;
|
|
102
|
+
title?: string;
|
|
103
|
+
altText?: string;
|
|
104
|
+
}): Promise<{
|
|
105
|
+
ok: boolean;
|
|
106
|
+
fileId?: string;
|
|
107
|
+
error?: string;
|
|
108
|
+
}>;
|
|
109
|
+
/** Read the conversation's messages (capability-gated; returns `[]` when the adapter can't read history). */
|
|
110
|
+
getMessages(): Promise<ThreadMessage[]>;
|
|
111
|
+
/** Resolve a platform user by a free-form query (capability-gated; returns `undefined` when unsupported). */
|
|
112
|
+
lookupUser(query: string): Promise<PlatformUser | undefined>;
|
|
113
|
+
/** Pin suggested prompts (capability-gated; returns `{ ok: false }` on surfaces without support). */
|
|
114
|
+
setSuggestedPrompts(prompts: ReadonlyArray<{
|
|
115
|
+
title: string;
|
|
116
|
+
message: string;
|
|
117
|
+
}>, opts?: {
|
|
118
|
+
title?: string;
|
|
119
|
+
}): Promise<{
|
|
120
|
+
ok: boolean;
|
|
121
|
+
error?: string;
|
|
122
|
+
}>;
|
|
123
|
+
/** Name this conversation (capability-gated; returns `{ ok: false }` on surfaces without support). */
|
|
124
|
+
setTitle(title: string): Promise<{
|
|
125
|
+
ok: boolean;
|
|
126
|
+
error?: string;
|
|
127
|
+
}>;
|
|
128
|
+
/** Add an emoji reaction to a message (capability-gated; `{ ok: false }` on surfaces without support). */
|
|
129
|
+
react(messageRef: MessageRef, emoji: EmojiValue): Promise<{
|
|
130
|
+
ok: boolean;
|
|
131
|
+
error?: string;
|
|
132
|
+
}>;
|
|
133
|
+
/** Remove the bot's emoji reaction from a message (capability-gated). */
|
|
134
|
+
unreact(messageRef: MessageRef, emoji: EmojiValue): Promise<{
|
|
135
|
+
ok: boolean;
|
|
136
|
+
error?: string;
|
|
137
|
+
}>;
|
|
138
|
+
/**
|
|
139
|
+
* Post a message only `user` can see. `fallbackToDM` is required:
|
|
140
|
+
* `true` → DM the user when native ephemeral is unsupported; `false` →
|
|
141
|
+
* resolve to `null` when native ephemeral is unsupported.
|
|
142
|
+
*/
|
|
143
|
+
postEphemeral(user: PlatformUser | string, ui: Renderable, opts: {
|
|
144
|
+
fallbackToDM: boolean;
|
|
145
|
+
}): Promise<EphemeralResult | null>;
|
|
146
|
+
/** Record this conversation as subscribed (persisted in state). Proactive delivery to subscribed conversations is not yet wired. */
|
|
147
|
+
subscribe(): Promise<void>;
|
|
148
|
+
/** Remove the subscription for this conversation. */
|
|
149
|
+
unsubscribe(): Promise<void>;
|
|
150
|
+
/** Returns true if this conversation is currently subscribed. */
|
|
151
|
+
isSubscribed(): Promise<boolean>;
|
|
152
|
+
/** Persist arbitrary per-thread state (e.g. workflow step). */
|
|
153
|
+
setState<T>(v: T): Promise<void>;
|
|
154
|
+
/** Read back per-thread state previously written with `setState`. */
|
|
155
|
+
state<T>(): Promise<T | undefined>;
|
|
156
|
+
}
|
|
157
|
+
export interface InteractionContext<TValue = unknown> {
|
|
158
|
+
thread: Thread;
|
|
159
|
+
message: IncomingMessage;
|
|
160
|
+
/** The clicked control: its opaque `id` and the `value` it carried (typed as `TValue`). */
|
|
161
|
+
action: {
|
|
162
|
+
id: string;
|
|
163
|
+
value?: TValue;
|
|
164
|
+
};
|
|
165
|
+
values: Record<string, unknown>;
|
|
166
|
+
user: PlatformUser;
|
|
167
|
+
platform: string;
|
|
168
|
+
/**
|
|
169
|
+
* Open a modal in response to this interaction (capability-gated; requires a
|
|
170
|
+
* platform trigger). Resolves `{ ok: false }` on surfaces without modal
|
|
171
|
+
* support or when the trigger has expired. On Discord, call this **before**
|
|
172
|
+
* any long-running work — the platform trigger expires ~3s after the click.
|
|
173
|
+
*/
|
|
174
|
+
openModal?(view: ModalView): Promise<{
|
|
175
|
+
ok: boolean;
|
|
176
|
+
error?: string;
|
|
177
|
+
}>;
|
|
178
|
+
}
|
|
179
|
+
export type ClickHandler<TValue = unknown> = (ctx: InteractionContext<TValue>) => void | Promise<void>;
|
|
180
|
+
/** The reaction passed to a `<Message onReaction>` handler. */
|
|
181
|
+
export interface MessageReaction {
|
|
182
|
+
/** Normalized emoji name when recognized, else the raw platform token. */
|
|
183
|
+
emoji: EmojiValue;
|
|
184
|
+
/** Platform-native emoji token. */
|
|
185
|
+
rawEmoji: string;
|
|
186
|
+
/** `true` = added, `false` = removed. */
|
|
187
|
+
added: boolean;
|
|
188
|
+
/** The reacting user, when the platform reports one. */
|
|
189
|
+
user?: PlatformUser;
|
|
190
|
+
/** Id of the reacted-to message. */
|
|
191
|
+
messageId: string;
|
|
192
|
+
/**
|
|
193
|
+
* The conversation thread — same surface an `onClick` gets via `ctx.thread`.
|
|
194
|
+
* Post new UI (`thread.post`), run the agent (`thread.runAgent`), block on a
|
|
195
|
+
* human choice (`thread.awaitChoice`, HITL), react back, etc.
|
|
196
|
+
*/
|
|
197
|
+
thread: Thread;
|
|
198
|
+
/**
|
|
199
|
+
* Ref to the reacted-to message, for swapping its UI in place:
|
|
200
|
+
* `thread.update(reaction.messageRef, <NewUi/>)`.
|
|
201
|
+
*/
|
|
202
|
+
messageRef: MessageRef;
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* Handler for reactions on a posted message, set via `<Message onReaction>`.
|
|
206
|
+
* Fires for both adds and removes (check `reaction.added`); the first arg is
|
|
207
|
+
* the emoji for the common `(reaction) => reaction === "bug"` shape. The second
|
|
208
|
+
* carries the full reaction including `thread`/`messageRef`, so a handler can
|
|
209
|
+
* post, swap UI, or run a HITL flow exactly like an `onClick`.
|
|
210
|
+
*/
|
|
211
|
+
export type MessageReactionHandler = (emoji: EmojiValue, reaction: MessageReaction) => void | Promise<void>;
|
|
212
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB;AAED,sHAAsH;AACtH,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,OAAO,CAAC;IACZ,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,GAAG,CAAC,EAAE,UAAU,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AACD,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,+DAA+D;AAC/D,MAAM,MAAM,eAAe,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;AAEhF;;;;;;;;;GASG;AACH,MAAM,MAAM,gBAAgB,GACxB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC9B;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,eAAe,CAAA;CAAE,GAC1C;IAAE,IAAI,EAAE,OAAO,CA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,SAAS,CAAC,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC;QAAE,EAAE,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACvE;AACD,MAAM,MAAM,YAAY,CAAC,MAAM,GAAG,OAAO,IAAI,CAC3C,GAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,KAC5B,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAE1B,+DAA+D;AAC/D,MAAM,WAAW,eAAe;IAC9B,0EAA0E;IAC1E,KAAK,EAAE,UAAU,CAAC;IAClB,mCAAmC;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,yCAAyC;IACzC,KAAK,EAAE,OAAO,CAAC;IACf,wDAAwD;IACxD,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,oCAAoC;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,UAAU,EAAE,UAAU,CAAC;CACxB;AACD;;;;;;GAMG;AACH,MAAM,MAAM,sBAAsB,GAAG,CACnC,KAAK,EAAE,UAAU,EACjB,QAAQ,EAAE,eAAe,KACtB,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC"}
|
package/dist/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@copilotkit/channels-ui",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "JSX runtime, IR, and cross-platform component vocabulary for CopilotKit channels.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/CopilotKit/CopilotKit.git"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://github.com/CopilotKit/CopilotKit",
|
|
11
|
+
"keywords": [
|
|
12
|
+
"ai",
|
|
13
|
+
"agent",
|
|
14
|
+
"bot",
|
|
15
|
+
"jsx",
|
|
16
|
+
"block-kit",
|
|
17
|
+
"ui",
|
|
18
|
+
"copilotkit",
|
|
19
|
+
"ag-ui"
|
|
20
|
+
],
|
|
21
|
+
"publishConfig": {
|
|
22
|
+
"access": "public"
|
|
23
|
+
},
|
|
24
|
+
"type": "module",
|
|
25
|
+
"main": "./dist/index.js",
|
|
26
|
+
"types": "./dist/index.d.ts",
|
|
27
|
+
"exports": {
|
|
28
|
+
".": {
|
|
29
|
+
"types": "./dist/index.d.ts",
|
|
30
|
+
"import": "./dist/index.js"
|
|
31
|
+
},
|
|
32
|
+
"./jsx-runtime": {
|
|
33
|
+
"types": "./dist/jsx-runtime.d.ts",
|
|
34
|
+
"import": "./dist/jsx-runtime.js"
|
|
35
|
+
},
|
|
36
|
+
"./jsx-dev-runtime": {
|
|
37
|
+
"types": "./dist/jsx-dev-runtime.d.ts",
|
|
38
|
+
"import": "./dist/jsx-dev-runtime.js"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"files": [
|
|
42
|
+
"dist"
|
|
43
|
+
],
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@copilotkit/shared": "^1.62.3"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@types/node": "^22.10.0",
|
|
49
|
+
"typescript": "^5.6.3",
|
|
50
|
+
"vitest": "^4.1.3",
|
|
51
|
+
"@copilotkit/typescript-config": "^1.55.0-next.8"
|
|
52
|
+
},
|
|
53
|
+
"scripts": {
|
|
54
|
+
"build": "tsc -p tsconfig.json",
|
|
55
|
+
"check-types": "tsc --noEmit -p tsconfig.json && tsc --noEmit -p tsconfig.check.json",
|
|
56
|
+
"test": "vitest run",
|
|
57
|
+
"test:watch": "vitest",
|
|
58
|
+
"publint": "publint .",
|
|
59
|
+
"attw": "attw --pack . --profile esm-only"
|
|
60
|
+
}
|
|
61
|
+
}
|