v0.6.3: hubspot integration, kb block improvements#3654
Conversation
…tools (#3651) * fix(knowledge): infer MIME type from file extension in create/upsert tools Both create_document and upsert_document forced .txt extension and text/plain MIME type regardless of the document name. Now the tools infer the correct MIME type from the file extension (html, md, csv, json, yaml, xml) and only default to .txt when no extension is given. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * refactor(knowledge): reuse existing getMimeTypeFromExtension from uploads Replace duplicate EXTENSION_MIME_MAP and getMimeTypeFromExtension with the existing, more comprehensive version from lib/uploads/utils/file-utils. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix(knowledge): fix btoa stack overflow and duplicate encoding in create_document Same fixes as upsert_document: use loop-based String.fromCharCode instead of spread, consolidate duplicate TextEncoder calls, and check byte length instead of character length for 1MB limit. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix(knowledge): allowlist text-compatible MIME types in inferDocumentFileInfo Use an explicit allowlist instead of only checking for octet-stream, preventing binary MIME types (image/jpeg, audio/mpeg, etc.) from leaking through when a user names a document with a binary extension. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix(knowledge): remove pdf/rtf from allowlist, normalize unrecognized extensions - Remove application/pdf and application/rtf from TEXT_COMPATIBLE_MIME_TYPES since these tools pass plain text content, not binary - Normalize unrecognized extensions (e.g. report.v2) to .txt instead of preserving the original extension with text/plain MIME type Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix(knowledge): handle dotfile names to avoid empty base in filename Dotfiles like .env would produce an empty base, resulting in '.txt'. Now falls back to the original name so .env becomes .env.txt. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
|
You have used all Bugbot PR reviews included in your free trial for your GitHub account on this workspace. To continue using Bugbot reviews, enable Bugbot for your team in the Cursor dashboard. |
…rors (#3634) * fix(mothership): mothership-ran workflows show workflow validation errors * Distinguish errors from 5xxs * Unify workflow event handling * Fix run from block * Fix lint --------- Co-authored-by: Theodore Li <theo@sim.ai>
|
You have used all Bugbot PR reviews included in your free trial for your GitHub account on this workspace. To continue using Bugbot reviews, enable Bugbot for your team in the Cursor dashboard. |
Greptile SummaryThis PR delivers two fixes: it adds missing HubSpot OAuth scopes ( Key changes:
Confidence Score: 4/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["inferDocumentFileInfo(documentName)"] --> B["getFileExtension(documentName)"]
B --> C{ext is non-empty?}
C -- No --> F["base = documentName"]
C -- Yes --> D["getMimeTypeFromExtension(ext)"]
D --> E{mimeType in TEXT_COMPATIBLE_MIME_TYPES?}
E -- Yes --> G["Return { filename: documentName, mimeType }"]
E -- No --> H["base = documentName.slice(0, lastDot)"]
H --> I{base is empty?}
I -- Yes --> J["use documentName as base"]
I -- No --> K["use base"]
F --> L["Return { filename: base + '.txt', mimeType: 'text/plain' }"]
J --> L
K --> L
Last reviewed commit: "fix(mothership): mot..." |
Uh oh!
There was an error while loading. Please reload this page.