Namu
Namu
### Feature Description The AI SDK currently supports Anthropic's prompt caching for system messages and messages (including tool calls and tool results), but not tool definitions: https://github.com/vercel/ai/discussions/3062#discussioncomment-10702467 Anthropic docs: https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching#what-can-be-cached...
### Overview Video of issue and fix: https://www.loom.com/share/97983e5d38904af594d5f486bbf9f1f4?sid=e588c652-c868-4cb0-8db2-521650726919 This PR replaces `window.postMessage` with `document.dispatchEvent` in order to avoid race conditions when invalidating content scripts. Since [`document.dispatchEvent`](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/dispatchEvent) invokes event handlers synchronously,...
### Describe the bug When a content script is injected multiple times, all but the most recent one should be invalidated. In practice however, all content scripts, including the most...
### Overview This is a companion PR for https://github.com/aklinker1/webext-core/pull/118 Once the shadow DOM uses a `` instead of constructing a full HTML document, the current approach of finding the ``...