@mcp-b/char 0.1.2 → 0.1.4
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 +23 -0
- package/README.md +11 -13
- package/dist/custom-elements.json +491 -141
- package/dist/display-mode-policy.d.ts.map +1 -1
- package/dist/index.d.ts +89 -114
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +702 -279
- package/dist/index.js.map +1 -1
- package/dist/shell-component.d.ts +79 -86
- package/dist/shell-component.d.ts.map +1 -1
- package/dist/shell-component.js +692 -279
- package/dist/shell-component.js.map +1 -1
- package/dist/shell-standalone.iife.js +2928 -0
- package/dist/shell-standalone.iife.js.map +1 -0
- package/dist/utils.d.ts +0 -13
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +1 -2
- package/dist/utils.js.map +1 -1
- package/dist/web-component-standalone.iife.js +28 -87
- package/dist/web-component-standalone.iife.js.map +1 -1
- package/dist/web-component.d.ts +20 -83
- package/dist/web-component.d.ts.map +1 -1
- package/dist/web-component.js +28 -87
- package/dist/web-component.js.map +1 -1
- package/package.json +13 -13
package/LICENSE
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
Kukumis Inc. Proprietary License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Kukumis Inc. All rights reserved.
|
|
4
|
+
|
|
5
|
+
This software, including all source code, object code, documentation, and any
|
|
6
|
+
related materials (collectively, the "Software"), is proprietary to Kukumis
|
|
7
|
+
Inc. and is protected by applicable intellectual property laws.
|
|
8
|
+
|
|
9
|
+
No part of the Software may be used, copied, modified, merged, published,
|
|
10
|
+
distributed, sublicensed, and/or sold, in whole or in part, except as expressly
|
|
11
|
+
authorized in a written license agreement signed by Kukumis Inc.
|
|
12
|
+
|
|
13
|
+
No license or other rights are granted by Kukumis Inc. under any patents,
|
|
14
|
+
copyrights, trade secrets, trademarks, or other intellectual property rights,
|
|
15
|
+
whether by implication, estoppel, or otherwise, except as expressly set forth
|
|
16
|
+
in such written license agreement.
|
|
17
|
+
|
|
18
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
19
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
20
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
21
|
+
KUKUMIS INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
|
22
|
+
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
23
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -27,7 +27,12 @@ Importing `@mcp-b/char` root also registers both.
|
|
|
27
27
|
Use this when your app already owns all host chrome/layout.
|
|
28
28
|
|
|
29
29
|
```html
|
|
30
|
-
<char-agent
|
|
30
|
+
<char-agent
|
|
31
|
+
id="assistant"
|
|
32
|
+
publishable-key="pk_live_your_key_here"
|
|
33
|
+
style="width: 420px; height: 100vh"
|
|
34
|
+
display-mode="inline"
|
|
35
|
+
></char-agent>
|
|
31
36
|
<script type="module">
|
|
32
37
|
import '@mcp-b/char/web-component'
|
|
33
38
|
|
|
@@ -35,8 +40,9 @@ Use this when your app already owns all host chrome/layout.
|
|
|
35
40
|
const agent = document.querySelector('#assistant')
|
|
36
41
|
|
|
37
42
|
agent?.connect({
|
|
43
|
+
publishableKey: 'pk_live_your_key_here',
|
|
44
|
+
// Optional per-user identity token:
|
|
38
45
|
idToken: '<id-token>',
|
|
39
|
-
clientId: '<oidc-client-id>',
|
|
40
46
|
})
|
|
41
47
|
</script>
|
|
42
48
|
```
|
|
@@ -52,22 +58,14 @@ Use this when your app already owns all host chrome/layout.
|
|
|
52
58
|
Use this when you want built-in host behavior and responsive policy.
|
|
53
59
|
|
|
54
60
|
```html
|
|
55
|
-
<char-agent-shell
|
|
56
|
-
id="assistant-shell"
|
|
57
|
-
panel-width="420"
|
|
58
|
-
pip-position="bottom-center"
|
|
59
|
-
fullscreen-breakpoint="1024"
|
|
60
|
-
></char-agent-shell>
|
|
61
|
+
<char-agent-shell id="assistant-shell"></char-agent-shell>
|
|
61
62
|
<script type="module">
|
|
62
63
|
import '@mcp-b/char/shell-component'
|
|
63
64
|
|
|
64
65
|
/** @type {import('@mcp-b/char/shell-component').CharAgentShellElement | null} */
|
|
65
66
|
const shell = document.querySelector('#assistant-shell')
|
|
66
67
|
|
|
67
|
-
shell?.
|
|
68
|
-
idToken: '<id-token>',
|
|
69
|
-
clientId: '<oidc-client-id>',
|
|
70
|
-
})
|
|
68
|
+
shell?.setAuth({ publishableKey: 'pk_live_your_key_here', idToken: '<id-token>' })
|
|
71
69
|
</script>
|
|
72
70
|
```
|
|
73
71
|
|
|
@@ -75,7 +73,7 @@ Shell mode policy:
|
|
|
75
73
|
|
|
76
74
|
- closed -> `pip`
|
|
77
75
|
- open desktop -> `inline`
|
|
78
|
-
- open
|
|
76
|
+
- open on narrow viewport -> `fullscreen`
|
|
79
77
|
|
|
80
78
|
Availability policy:
|
|
81
79
|
|