@ccpocket/bridge 1.88.5 → 1.89.0

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/parser.d.ts CHANGED
@@ -813,7 +813,7 @@ export type ServerMessage = {
813
813
  projectPath?: string;
814
814
  requestId?: string;
815
815
  filePath: string;
816
- kind?: "text" | "image" | "audio" | "video" | "model";
816
+ kind?: "text" | "image" | "audio" | "video" | "model" | "pdf";
817
817
  content: string;
818
818
  language?: string;
819
819
  error?: string;
package/dist/websocket.js CHANGED
@@ -4836,7 +4836,9 @@ export class BridgeWebSocketServer {
4836
4836
  });
4837
4837
  return;
4838
4838
  }
4839
- const mediaType = FILE_PEEK_MEDIA_TYPES[ext];
4839
+ const mediaType = ext === ".pdf"
4840
+ ? { kind: "pdf", mimeType: "application/pdf" }
4841
+ : FILE_PEEK_MEDIA_TYPES[ext];
4840
4842
  if (mediaType) {
4841
4843
  if (!this.mediaStore) {
4842
4844
  this.send(ws, {