* Update sdk-internal to 0.2.0-main.1230
* Drop obsolete AccessBadgeState cast in cipher-view-banner spec
`AccessBadgeState` now includes "unavailable" as of sdk-internal
0.2.0-main.1224, so the version-gated `UNAVAILABLE` double cast is no
longer needed. The literal assigns directly at each call site.
---------
Co-authored-by: bw-ghapp[bot] <178206702+bw-ghapp[bot]@users.noreply.github.com>
* Update sdk-internal to 0.2.0-main.1202
* Implement PIN length storage in JsWasmStateBridge
sdk-internal 0.2.0-main.1202 adds required set/get/clear_pin_length members to WasmStateBridge (bitwarden/sdk-internal#1708). The SDK stores the PIN's character count unencrypted so a lock screen can read it while locked, so it is backed by a new PIN_DISK state key that clears on logout.
---------
Co-authored-by: bw-ghapp[bot] <178206702+bw-ghapp[bot]@users.noreply.github.com>
* fix(desktop): default autostart off on Mac App Store builds
Apple rejected Bitwarden Desktop 2026.10.3 under App Store Review
Guideline 2.4.5(iii) because the app auto-launches at login without
user consent. That default came from PM-34509 (PR #20002), which made
openAtLogin$ default to true for all desktop builds.
This adds an optional isMacAppStore constructor parameter to
DesktopSettingsService (default false, so existing callers are
unaffected) and makes the unset-state default conditional: false on
Mac App Store builds, true otherwise. No runtime behavior changes yet
since the flag isn't passed at any construction site -- wiring it up
at main.ts:236 and services.module.ts is a separate, already-planned
follow-up commit. This commit's sole purpose is to add the seam and
prove it with the new spec file.
Refs: PM-46275
* fix(desktop): wire isMacAppStore into DesktopSettingsService construction
Completes PM-46275: Mac App Store builds must not auto-launch without
explicit user consent (Apple Guideline 2.4.5(iii)). The prior commit
(d71e5fefeb) added the optional isMacAppStore constructor parameter to
DesktopSettingsService; this commit threads it through at both call
sites that construct the service.
- main.ts: pass isMacAppStore() in the main process constructor call
- services.module.ts: switch the DI provider to useFactory, passing
ipc.platform.isMacAppStore from the renderer process
* [deps] Platform: Update electron to v43.8.1 [SECURITY]
* Bump electron to 43.8.3
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
* [PM-42213] refactor: Use SDK admin attachment client for admin attachment creation
sdk-internal moves the admin flag off CreateAttachmentRequest and onto
AttachmentAdminClient::create_attachment, and drops the is_admin argument
from CiphersClient.update_collection. Route admin attachment creation through
attachments().admin() and drop the redundant update_collection argument.
* bump sdk version
* Take the CLI storage file lock synchronously
Every storage access takes a cross-process lock on data.json. It was
acquired asynchronously, so concurrent accesses within one process
found the lock held by their own process and backed off 100-250 ms
each; 10 concurrent reads scheduled 45 backoffs.
The storage actions are synchronous, so take the lock with lockSync and
lock, act and release in one synchronous step. No other access of this
process can run while the lock is held, so it never waits for itself.
Only another process holding the lock still makes it wait, with the
same backoff as before.
* Remove unused @types/retry dependency
The retry import was dropped when the storage lock became
synchronous. Nothing references the types directly anymore.
* [PM-42819] Route CLI cross-instance Send receive through SendReceiveClient
Build a receive-scoped SDK client pointed at the Send link's server instead
of reintroducing a generic ephemeral client on SdkService. Gated behind
pm-30110-sdk-sends-api; same-instance receives are unchanged.
* [PM-42819] Mint cross-instance Send access tokens through SendReceiveClient
Run the whole cross-instance receive flow (token minting, password hashing,
email/OTP exchange, access, download, decrypt) through the receive-scoped SDK
client so nothing touches the signed-in instance. Pass the device identifier
and CLI user agent to the SDK client. Legacy path is unchanged when the flag
is off or the Send is on the configured server.
* [PM-42819] Use NotFound SDK variant and share send access token helpers
Detect a missing Send in the CLI receive command via the SDK's NotFound
variant instead of matching the error message. Move the SDK credential and
token-error helpers into libs/common send-access utils shared by
DefaultSendTokenService and the receive command.
* [PM-42819] Update sdk-internal to 0.2.0-main.1127
Pick up SendReceiveClient and the NotFound error variant from the merged
sdk-internal PR (bitwarden/sdk-internal#1586).
* Do not hit endpoint of prefillFromVerifiedDomains if the user cannot manage domain verification
* Utilizes new endpoint for invite by link tab of modal
* Utilize mini endpoint going forward
* Revert changes to frontend for adding new method for API call. API calls get added to SDK going forward
* Fixing up clients code to support latest changes to SDK method changes
* Fixes via PR comments from Brandon
* Fix tech debt comment from claude for PR
* Update to latest SDK