Refractoring Stage 5 Moved the OpenPGP and DAV IPC handlers into desktop/ipc/pgp.cjs and desktop/ipc/dav.cjs.

This commit is contained in:
2026-10-16 17:38:48 +03:00
parent 928e6dd62a
commit 52f7001b34
9 changed files with 673 additions and 459 deletions
+5 -1
View File
@@ -89,7 +89,9 @@ This is a gradual destination, not a requirement to move everything at once. IPC
- [x] Validate channel names, argument counts/types, and nested payload complexity (`desktop/security/ipc-arguments.cjs`).
- [x] Bind DAV object updates/deletes to the selected account, server collection, server-returned resource, and current ETag (`desktop/dav/remote-reference.cjs`).
- [x] Validate channel-specific fields and limits; reject renderer-supplied raw SMTP payload fields.
- [ ] Register handlers by feature and keep `preload.cjs` as the narrow renderer API.
- [x] Group OpenPGP handlers and source fetching in `desktop/ipc/pgp.cjs`, retaining the shared IPC boundary.
- [ ] Group mail/account handlers in a feature registrar.
- [x] Group DAV handlers in `desktop/ipc/dav.cjs`; keep `preload.cjs` as the narrow renderer API.
- [ ] Return deliberate DTOs rather than internal store objects.
**Acceptance:** IPC tests cover malformed inputs and rejected senders; privileged behavior remains in trusted code.
@@ -130,5 +132,7 @@ This is a gradual destination, not a requirement to move everything at once. IPC
- Step 5 also aligned `will-navigate` with the same exact-document policy; `npm test` passes 96 tests.
- Step 5 added request schemas for all 54 registered channels, plus depth/collection/string bounds. Base64 attachment payloads remain uncapped to preserve the existing no-total-size-cap behavior.
- Step 5 also binds DAV updates/deletes to the configured account, same-origin collection, a server-listed resource, and a current ETag; DAV IDs are constrained against line injection and path traversal.
- Step 5 moved OpenPGP handler registration and message-source fetching into a feature module and added registration/schema coverage.
- Step 5 moved DAV handler registration into a feature module and added registration/schema coverage; the full suite passes 110 tests.
- The current IPC/DAV validation changes pass the full suite: 108 tests.
- While work continued, `package.json` and `package-lock.json` reflected a version bump to `0.4.6`; those changes were preserved.