pi-meta-oauth 0.4.1 → 0.4.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.
@@ -960,6 +960,11 @@ export default function metaMedia(pi: ExtensionAPI): void {
960
960
  // so the before_provider_request hook can rewrite them.
961
961
  pi.on("input", async (event, ctx) => {
962
962
  if (!shouldEnableNativeRewrite()) return undefined;
963
+ // Only Meta's request hook knows how to rewrite these pseudo-images into
964
+ // typed video/audio/file blocks. Other providers (notably Codex) reject a
965
+ // video/mp4 ImageContent before the Meta tools can be called, so leave the
966
+ // path as text and let the active model invoke the direct Meta media tool.
967
+ if (ctx.model?.provider !== META_PROVIDER_ID) return undefined;
963
968
  const text = event.text ?? "";
964
969
  // Match @/path/to/file.mp4, @./file.wav, /abs/file.pdf, ./file.mp3 — conservative.
965
970
  const filePattern =
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-meta-oauth",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Meta Model API OAuth provider and Muse-style voice dictation for pi",
5
5
  "keywords": [
6
6
  "pi-package",