@mcp-b/char 0.1.0 → 0.1.2
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/dist/custom-elements.json +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/shell-component.js +5 -1
- package/dist/shell-component.js.map +1 -1
- package/dist/web-component-standalone.iife.js +5 -1
- package/dist/web-component-standalone.iife.js.map +1 -1
- package/dist/web-component.d.ts.map +1 -1
- package/dist/web-component.js +5 -1
- package/dist/web-component.js.map +1 -1
- package/package.json +12 -12
- package/LICENSE +0 -23
package/dist/shell-component.js
CHANGED
|
@@ -715,6 +715,7 @@ var CharAgentElement = class extends HTMLElement {
|
|
|
715
715
|
const iframeOrigin = this._resolveIframeOrigin(apiBase);
|
|
716
716
|
const iframe = this._createIframe(apiBase);
|
|
717
717
|
this._iframe = iframe;
|
|
718
|
+
if (resolvedDevMode?.anthropicApiKey) this._pendingAuth = { anthropicApiKey: resolvedDevMode.anthropicApiKey };
|
|
718
719
|
this._proxy = new CharIframeProxy(iframe, iframeOrigin);
|
|
719
720
|
this._proxy.start();
|
|
720
721
|
this._messageListener = this._createMessageListener(iframe, iframeOrigin);
|
|
@@ -1040,7 +1041,7 @@ var CharAgentElement = class extends HTMLElement {
|
|
|
1040
1041
|
height: this.clientHeight
|
|
1041
1042
|
};
|
|
1042
1043
|
const safeAreaInsets = getSafeAreaInsets();
|
|
1043
|
-
const displayMode = resolveDisplayModeFromAttribute(displayModeAttr);
|
|
1044
|
+
const displayMode = resolveDisplayModeFromAttribute(displayModeAttr) ?? "inline";
|
|
1044
1045
|
const hostCapabilities = {
|
|
1045
1046
|
supportedDisplayModes: [...DISPLAY_MODES],
|
|
1046
1047
|
supportsOpenLink: true,
|
|
@@ -1104,6 +1105,9 @@ var CharAgentElement = class extends HTMLElement {
|
|
|
1104
1105
|
const message = this._pendingAuth.ticketAuth ? {
|
|
1105
1106
|
type: "char-auth",
|
|
1106
1107
|
ticketAuth: this._pendingAuth.ticketAuth
|
|
1108
|
+
} : this._pendingAuth.anthropicApiKey ? {
|
|
1109
|
+
type: "char-auth",
|
|
1110
|
+
anthropicApiKey: this._pendingAuth.anthropicApiKey
|
|
1107
1111
|
} : {
|
|
1108
1112
|
type: "char-auth",
|
|
1109
1113
|
idToken: this._pendingAuth.idToken,
|