@mcp-b/char 0.1.2 → 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/LICENSE +23 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/shell-component.js +5 -0
- 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 +5 -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 +5 -0
- package/dist/web-component.js.map +1 -1
- package/package.json +12 -12
package/dist/shell-component.js
CHANGED
|
@@ -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
|