The checkExternalApiHealth function didn't include the Bearer token in its requests. When the Hindsight API requires authentication (HINDSIGHT_API_TENANT_API_KEY), health checks would fail with 401/403, preventing plugin initialization. Pass apiToken to all checkExternalApiHealth call sites and include the Authorization header when a token is configured. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| client.test.ts | ||
| client.ts | ||
| embed-manager.ts | ||
| index.test.ts | ||
| index.ts | ||
| moltbot-types.ts | ||
| types.ts | ||