@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.
- package/dist/custom-elements.json +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/shell-component.js +4 -0
- package/dist/shell-component.js.map +1 -1
- package/dist/web-component-standalone.iife.js +4 -0
- package/dist/web-component-standalone.iife.js.map +1 -1
- package/dist/web-component.d.ts.map +1 -1
- package/dist/web-component.js +4 -0
- package/dist/web-component.js.map +1 -1
- package/package.json +1 -1
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);
|
|
@@ -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,
|