@mcp-b/char 0.1.1 → 0.1.3
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/index.d.ts.map +1 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/shell-component.js +6 -1
- package/dist/shell-component.js.map +1 -1
- package/dist/shell-standalone.iife.js +2520 -0
- package/dist/shell-standalone.iife.js.map +1 -0
- package/dist/web-component-standalone.iife.js +6 -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 +6 -1
- package/dist/web-component.js.map +1 -1
- package/package.json +1 -1
package/dist/shell-component.js
CHANGED
|
@@ -1041,7 +1041,7 @@ var CharAgentElement = class extends HTMLElement {
|
|
|
1041
1041
|
height: this.clientHeight
|
|
1042
1042
|
};
|
|
1043
1043
|
const safeAreaInsets = getSafeAreaInsets();
|
|
1044
|
-
const displayMode = resolveDisplayModeFromAttribute(displayModeAttr);
|
|
1044
|
+
const displayMode = resolveDisplayModeFromAttribute(displayModeAttr) ?? "inline";
|
|
1045
1045
|
const hostCapabilities = {
|
|
1046
1046
|
supportedDisplayModes: [...DISPLAY_MODES],
|
|
1047
1047
|
supportsOpenLink: true,
|
|
@@ -1102,6 +1102,11 @@ var CharAgentElement = class extends HTMLElement {
|
|
|
1102
1102
|
*/
|
|
1103
1103
|
_postAuth(iframeOrigin) {
|
|
1104
1104
|
if (!this._pendingAuth || !this._iframe?.contentWindow) return;
|
|
1105
|
+
if (!this._pendingAuth.ticketAuth && !this._pendingAuth.anthropicApiKey && !this._pendingAuth.idToken) {
|
|
1106
|
+
console.error("[Char] _postAuth called but _pendingAuth has no auth credentials");
|
|
1107
|
+
this._pendingAuth = null;
|
|
1108
|
+
return;
|
|
1109
|
+
}
|
|
1105
1110
|
const message = this._pendingAuth.ticketAuth ? {
|
|
1106
1111
|
type: "char-auth",
|
|
1107
1112
|
ticketAuth: this._pendingAuth.ticketAuth
|