Repository navigation
fix: overview reflects page deletions - #585
Open
omarNaifer12 wants to merge 3 commits into
Open
omarNaifer12 wants to merge 3 commits into
omarNaifer12 wants to merge 3 commits into
Conversation
|
|
vvzvlad
pushed a commit
to vvzvlad/gitmost
that referenced
this pull request
Jul 13, 2026
…ont, worker+timeout) — phase A docmost#586 Phase A of docmost#585 (unblocks phase B docmost#588): rasterize SVG (schematic .drawio.svg and svg attachments) to PNG entirely in-process with no browser/service (hard constraint docmost#423), so the in-app agent can later 'see' diagrams. - New apps/server/src/integrations/ai/rasterize/ module: rasterizeSvgToPng(svg, opts) runs resvg-wasm in a long-lived worker thread with a per-job wall-clock timeout that terminates+recreates the worker (sync wasm can't be interrupted otherwise) and rejects in-flight jobs race-safely; lazy single wasm+font init; input byte cap + longest-side downscale cap; render/encode wrapped in try/finally to free wasm memory on the error path too. - @resvg/resvg-wasm@^2.6 in prod dependencies (not dev, else pnpm --prod prunes it); wasm resolved via the exported ./index_bg.wasm subpath (with a '.'-entry fallback). Vendored DejaVu Sans (Latin+Cyrillic) + its license as fontBuffers; defaultFontFamily 'DejaVu Sans'. nest-cli.json assets copy the ttf+license into dist (tsc doesn't); Dockerfile already ships apps/server/dist wholesale. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
vvzvlad
pushed a commit
to vvzvlad/gitmost
that referenced
this pull request
Jul 13, 2026
…ss-provider — phase B docmost#588 Phase B of docmost#585 (stacked on docmost#586 rasterizer): an in-app viewImage({pageId,node}) tool that delivers a page image node to the model AS VISION on any provider. Raster (png/jpeg/webp/gif) passthrough with a 5 MiB cap; SVG/.drawio.svg rasterized to PNG via docmost#586. Because openai/openai-compatible stringify a tool-result image, the image is delivered as an ephemeral user-role message injected via prepareStep, keyed by toolCallId in a per-run closure Map: injected on every step after the call (incl. the toolChoice:'none' synthesis step) until the model has produced text about it, then evicted (inject-then- delete) so it never starves synthesis nor re-bills forever. The injected message is never persisted (buildStepParts reads toolResults, not messages), and the tool's persisted result is a small no-bytes past-tense note so replay doesn't imply a live image. Adds a public fetchAttachmentBytes on the mcp client (thin wrapper over the guarded fetchInternalFile; registered in IMediaMixin / DocmostClientMethod / DocmostClientLike / the drift-guard). Fail-closed behind AI_CHAT_VIEW_IMAGE (default false); the same flag gates registration AND injection. forShare (public-share chat) is untouched, so viewImage is naturally absent there. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
resolve: #581
Invalidate the space recent-changes query