Skip to content

Web-base64#1822

Merged
pelikhan merged 6 commits intodevfrom
web-base64
Aug 4, 2025
Merged

Web-base64#1822
pelikhan merged 6 commits intodevfrom
web-base64

Conversation

@pelikhan
Copy link
Copy Markdown
Member

@pelikhan pelikhan commented Aug 4, 2025


Pull Request Summary

🆙 Dependency Updates

  • Upgraded multiple dependencies across the monorepo, including:
    • astro, @astrojs/starlight, and related Astro ecosystem packages
    • playwright and playwright-core
    • @fastify/cors, @modelcontextprotocol/sdk, openai, @napi-rs/canvas, mammoth, undici
    • @intellectronica/ruler, @langchain/core, @langchain/langgraph, langsmith, marked
    • Updated lockfile to reflect all dependency changes

🧑‍💻 Code & API Improvements

  • Base64 Handling for Web:

    • Switched web base64 encoding to use the base64-js package for binary file uploads, improving compatibility and reliability in browsers.
    • Adjusted fromBase64 in core to return a Buffer instead of Uint8Array for more consistent internal handling.
  • Error Logging Enhancements:

    • Improved logging in several modules (fetchtext.ts, fileedits.ts, xlsx.ts, xml.ts) for better debugging, including more descriptive error messages and using consistent debug utilities.
  • Type Improvements:

    • Enhanced type imports and usage in web components for better type safety, especially around JSON schema and prompt parameters.
  • Script Options Flexibility:

    • Broadened several fields in PromptScriptRunOptions to accept both string and number types, increasing API flexibility.

🏗️ Build & Workflow Tweaks

  • Removed the clean step from the web build script to speed up incremental builds.
  • Enhanced TypeScript type-checking output in the web package for easier debugging (--explainFiles).

🗂️ Miscellaneous

  • Updated .gitignore to include new files and documentation artifacts.
  • Added new dependencies (base64-js, marked) to the web package.

These changes collectively improve developer experience, binary file handling in the web client, error visibility, and keep dependencies up to date.

AI-generated content by prd may be incorrect.


sketch

AI-generated content by prd-sketch may be incorrect.

@pelikhan pelikhan merged commit a12e8a0 into dev Aug 4, 2025
12 checks passed
@pelikhan pelikhan deleted the web-base64 branch August 4, 2025 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant