@mcp-b/char 0.1.0 → 0.1.1

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.
@@ -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);
@@ -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,