shark-ai 0.4.13 → 0.4.14

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/bin/shark.js CHANGED
@@ -2505,8 +2505,7 @@ ${result}
2505
2505
  }
2506
2506
  async function callScanAgentApi(prompt, onChunk) {
2507
2507
  const realm = await getActiveRealm();
2508
- const token = await tokenStorage.getToken(realm);
2509
- if (!token) throw new Error("Not logged in");
2508
+ const token = await ensureValidToken(realm);
2510
2509
  let conversationId = await conversationManager.getConversationId(AGENT_TYPE3);
2511
2510
  const payload = {
2512
2511
  user_prompt: prompt,