Skip to content

Dev - #502

Closed
nohe-sohbi wants to merge 10 commits into
docmost:mainfrom
nohe-sohbi:dev
Closed

Dev#502
nohe-sohbi wants to merge 10 commits into
docmost:mainfrom
nohe-sohbi:dev

Conversation

@nohe-sohbi

Copy link
Copy Markdown

No description provided.

- Add Mistral AI modal component
- Add Mistral extension and service
- Add Mistral styles
- Add Mistral AI to slash menu
- Update file upload handling
- Add AI autocomplete extension
- Update editor configuration
- Add AI autocomplete styles
- Update editor base styles
- Add Mistral AI dependencies
- Update build configuration
- Update APP_SECRET
- Add Mistral API key configuration
- Add editor feature documentation
- Document Mistral AI integration
- Add Mistral AI autocomplete functionality
- Implement suggestion handling
- Rename project to UbberDoc
- Add project vision and enhancements
- Update features list with AI capabilities
- Add acknowledgments section
- Add VITE_MISTRAL_API_KEY environment variable
- Update MAIL_FROM_NAME to UbberDoc
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@nohe-sohbi nohe-sohbi closed this Nov 24, 2024
vvzvlad pushed a commit to vvzvlad/gitmost that referenced this pull request Jul 12, 2026
…t:text for machine diff (docmost#502)

WRITE: parameterize the canonical importer markdownToProseMirror with
{parseMath, fuzzyLinkify} (defaults true — editor/file-import/git-sync unchanged);
MCP write paths (createPage/updatePageMarkdown/patchNode/insertNode) call with both
false so $...$ stays literal text and bare domains don't autolink (explicit
https:// still links). READ: getPage format:'text' reuses the server jsonToText path
(deterministic flag) for flat machine-diffable text, [image]/[table RxC] placeholders.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
vvzvlad pushed a commit to vvzvlad/gitmost that referenced this pull request Jul 12, 2026
…r import flag (docmost#502 review)

Internal review found the two layered-extension flags landed in the SHARED
markdownToProseMirrorCanonical wrapper, which mis-covered two tools. Move the
decision to each caller by the tool's semantics.

BLOCKER 1 — createPage was NOT covered. createPage POSTs to the server
/pages/import endpoint, which imported with DEFAULTS (math + fuzzy autolink ON),
so an agent's `$x=1$` still became a formula and `www.host` still autolinked.
Add an optional `disableMarkdownExtensions` multipart field to /pages/import
(default OFF, so human file uploads keep math ON); import.controller reads it,
import.service.importPage/processMarkdown thread it into markdownToProseMirror.
MCP createPage sends it true.

BLOCKER 2 — import_page_markdown was wrongly disabled. It goes through the same
wrapper, so hardcoding parseMath:false degraded an exported `$x^2$` to literal
text on re-import, breaking the docmost#328 lossless export→import pair. The wrapper no
longer hardcodes the flags: it takes them from the caller and DEFAULTS to the
package importer defaults (extensions ON). Callers now set them explicitly:
  - updatePageMarkdown (updatePageContentRealtime) -> OFF
  - patch_node/insert_node (importMarkdownFragment) -> OFF (unchanged)
  - import_page_markdown -> DEFAULTS (math ON) — docmost#328 round-trip restored

Tests: rewrite the mcp write test around the corrected per-caller semantics
(agent-write OFF, import_page_markdown DEFAULTS incl. the REAL docmost#328 round-trip);
add a collab-backed wiring test driving client.updatePage (OFF) and
client.importPageMarkdown (DEFAULTS) end-to-end; add a createPage multipart-flag
test; add a server import.service.processMarkdown spec (flag OFF -> literal / no
autolink, default -> math ON for human uploads); reword the prosemirror-markdown
round-trip test to its package-default scope. Mutation-verified both caller
wirings (flip updatePageMarkdown -> defaults reddens the OFF wiring test; make
the wrapper default OFF reddens the docmost#328 round-trip).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
vvzvlad pushed a commit to vvzvlad/gitmost that referenced this pull request Jul 12, 2026
…havior (docmost#502 review)

The four MCP markdown-write tools (updatePageMarkdown/createPage/patchNode/
insertNode) still described the old parse-everything behavior after docmost#502 turned
TeX math and fuzzy autolink OFF on the write paths. Add a concise contract hint
to each: $...$ / $$...$$ stay literal (not a math formula) and schemeless
www.host / bare emails are not auto-linked (explicit https:// still links); for
a real formula use updatePageJson (or a mathInline/mathBlock node via `node` on
patch/insert). Also note getPage format:"text" in README.md/README.ru.md.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
PMQ9 added a commit to cccvu/docmost that referenced this pull request Sep 25, 2026
…e (review round 1)

Security (L3): the fitness inventory matched FILES, so an upstream
SpaceService.bulkDelete looping spaceRepo.deleteSpace — plus a new route
calling it — stayed green while that route went unrefused.

- space-hard-delete.fitness.spec: a TS-AST scanner attributes every sink
  occurrence to its enclosing Class.method and the spec pins the exact
  list (so a new method, or a second call, reds). Comments and string
  contents never count, which also drops the regex comment stripper that
  misread `'image/*'`.
- Adds the workspace delete as a sink (spaces.workspace_id cascades), pinned
  to none — invariant I25 now holds literally.
- Meta-guard: the bulkDelete scenario, per-occurrence counting, comments,
  every Kysely/raw-SQL shape, the watcher unwatch.
- "innermost" → "registered after the rate limiter" (imported modules'
  interceptors run inside it) in app.module.ts and the interceptor doc;
  the docmost#467 wiring spec comment likewise.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
PMQ9 added a commit to cccvu/docmost that referenced this pull request Sep 25, 2026
fix(docmost#502): refuse the native space hard delete in remote mode
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.

2 participants