@mnemom/agent-integrity-protocol 0.1.1 → 0.1.2

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/index.js CHANGED
@@ -1297,7 +1297,7 @@ function createClient(config) {
1297
1297
  async check(responseBody, provider) {
1298
1298
  if (destroyed) throw new Error("AIP client has been destroyed");
1299
1299
  const adapter = provider ? registry.get(provider) : registry.detectFromUrl(config.analysis_llm.base_url);
1300
- const thinking = adapter.extractThinking(responseBody);
1300
+ const thinking = adapter.extractThinking(responseBody) ?? adapter.extractThinkingFromStream(responseBody);
1301
1301
  if (!thinking) {
1302
1302
  return buildSyntheticSignal(config, window, "clear");
1303
1303
  }