Commit Graph
618 Commits
Author SHA1 Message Date
DarkSky 6f9f1cace5 refactor(workspace): dissolve native-playground into domain directories 2026-11-27 06:55:47 +09:00
DarkSky 577ae12b51 feat(mobile): bump xcode deps (#15885)
#### PR Dependency Tree


* **PR #15885** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Bug Fixes**
* Improved handling of app links and shared content when the iOS app
opens or returns to the foreground.
* iOS simulator tests now install and launch the app before running, and
verify that it stays open.
* **Chores**
* Updated the iOS build and release process to use Xcode 27 and require
an iOS SDK version of 27 or later.
* Adjusted release builds to preserve the required components for iOS
app packaging.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-11-22 22:30:44 +08:00
DarkSky 3d25727076 feat(core): improve sync stability (#15883)
#### PR Dependency Tree


* **PR #15883** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **New Features**
* Document creation can now recover incomplete registrations without
recreating document content.
* Document updates can detect revision conflicts, helping prevent
changes from overwriting newer edits.
* **Improvements**
* Document sync and update handling are improved across desktop,
Android, and iOS.
* Workspace metadata and legacy document pages are handled more
consistently during migration and recovery.
* Creator and editor details are better preserved when documents are
recovered or compacted.
* **Configuration**
  * Removed the experimental document-merge setting.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-11-22 01:37:22 +08:00
DarkSky c471cfc9a5 feat(core): improve sync protocol (#15854)
#### PR Dependency Tree


* **PR #15854** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **New Features**
* Added workspace document lifecycle tracking, including trashed and
deleted states, with migration support.
* Added workspace inventory syncing and state refresh across cloud and
local storage, improving document discovery and offline synchronization.
* Added clearer messages for invalid or oversized document updates and
temporarily unavailable sync or validation.
* Added paused-upload diagnostics and a Quick Export shortcut for
relevant workspace sync issues.

* **Improvements**
* Search, indexing, and document metadata now reflect workspace
inventory and lifecycle state.
* Restoring from history preserves concurrent edits made during
recovery.
* Unused-blob checks now scan document content and detect changes during
scanning.

* **Bug Fixes**
* Invalid document updates are rejected without partially saving a
batch.
* Document reading handles missing or cyclic block relationships more
reliably.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-11-16 19:37:14 +08:00
DarkSky a37334a150 feat(server): improve order sync (#15802) 2026-11-08 12:24:01 +08:00
renovate[bot] ef401b20cb chore: bump up apple/swift-collections version to from: "1.7.5" (#15778)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
|
[apple/swift-collections](https://redirect.github.com/apple/swift-collections)
| patch | `from: "1.7.4"` → `from: "1.7.5"` |

---

### Release Notes

<details>
<summary>apple/swift-collections</summary>

###
[`v1.7.5`](https://redirect.github.com/apple/swift-collections/releases/tag/1.7.5):
Swift Collections 1.7.5

[Compare
Source](https://redirect.github.com/apple/swift-collections/compare/1.7.4...1.7.5)

#### What's Changed

- \[OrderedCollections] Resolve filename ambiguity with
InternalCollectionsUtilities/UnsafeBitSet/\_UnsafeBitSet.swift by
[@&#8203;lorentey](https://redirect.github.com/lorentey) in
[#&#8203;805](https://redirect.github.com/apple/swift-collections/pull/805)
- Bump swiftlang/github-workflows from 0.0.16 to 0.0.17 by
[@&#8203;dependabot](https://redirect.github.com/dependabot)\[bot] in
[#&#8203;802](https://redirect.github.com/apple/swift-collections/pull/802)
- Bump
swiftlang/github-workflows/.github/workflows/swift_package_test.yml from
0.0.16 to 0.0.17 by
[@&#8203;dependabot](https://redirect.github.com/dependabot)\[bot] in
[#&#8203;803](https://redirect.github.com/apple/swift-collections/pull/803)
- Bump swiftlang/github-workflows/.github/workflows/soundness.yml from
0.0.16 to 0.0.17 by
[@&#8203;dependabot](https://redirect.github.com/dependabot)\[bot] in
[#&#8203;804](https://redirect.github.com/apple/swift-collections/pull/804)
- Document standalone macOS backdeployment requirements by
[@&#8203;0xSixtos](https://redirect.github.com/0xSixtos) in
[#&#8203;800](https://redirect.github.com/apple/swift-collections/pull/800)
- \[DequeModule] Fix RigidDeque prepend example capacity and
direction-word slips by
[@&#8203;aashish254](https://redirect.github.com/aashish254) in
[#&#8203;801](https://redirect.github.com/apple/swift-collections/pull/801)
- Fix prepend(copying:) dropping items from multi-span sources by
[@&#8203;awaisdev5765](https://redirect.github.com/awaisdev5765) in
[#&#8203;796](https://redirect.github.com/apple/swift-collections/pull/796)
- Review RigidDeque/UniqueDeque tests; add better tests for prepends by
[@&#8203;lorentey](https://redirect.github.com/lorentey) in
[#&#8203;806](https://redirect.github.com/apple/swift-collections/pull/806)

#### New Contributors

- [@&#8203;0xSixtos](https://redirect.github.com/0xSixtos) made their
first contribution in
[#&#8203;800](https://redirect.github.com/apple/swift-collections/pull/800)
- [@&#8203;awaisdev5765](https://redirect.github.com/awaisdev5765) made
their first contribution in
[#&#8203;796](https://redirect.github.com/apple/swift-collections/pull/796)

**Full Changelog**:
<https://github.com/apple/swift-collections/compare/1.7.4...1.7.5>

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/toeverything/AFFiNE).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xODguMiIsInVwZGF0ZWRJblZlciI6IjQ0LjE4OC4yIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-11-06 18:46:24 +08:00
DarkSky e1261c40bf chore: bump deps (#15795) 2026-11-06 00:58:55 +08:00
DarkSky 8bbbfcf078 fix(native): recover refresh attempts after response loss (#15792)
fix #15654
fix #15551



#### PR Dependency Tree


* **PR #15792** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **New Features**
* Session refreshes can now recover from interrupted requests using the
same refresh attempt, including after an app restart.
* **Bug Fixes**
* Retrying a successful refresh no longer unnecessarily rotates tokens
or invalidates the session. Invalid or mismatched retries continue to be
rejected, while expired credentials are handled without revoking an
otherwise valid session.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-11-04 22:32:21 +08:00
DarkSky 8cef09e1dd fix(client): windows static link (#15753)
fix #15728
2026-10-27 16:08:45 +08:00
fa809e861b fix(client): auto-detect Linux password store before app ready (#15450)
## Summary

- Detect Linux desktop/session environments before Electron app
readiness and set a secure `--password-store` backend when Electron
would otherwise miss it.
- Prefer `gnome-libsecret` for GNOME-compatible desktops and common
tiling/window-manager sessions that often run libsecret/gnome-keyring.
- Prefer the appropriate KWallet backend for KDE/Plasma sessions,
including KDE 5/6 detection, while respecting any user-provided
`--password-store` flag.
- Add unit coverage for Linux/non-Linux behavior, existing user flags,
GNOME/libsecret desktops, tiling WMs, KDE/Plasma KWallet variants,
colon-separated desktop values, and fallback session variables.

## Test plan

- [x] `yarn vitest
packages/frontend/apps/electron/test/main/secure-storage.spec.ts`
- [x] Electron main-process related tests were run; relevant tests
passed, with unrelated existing failures noted in
`recording-feature.spec.ts`.
- [x] Prettier, oxlint, eslint, and TypeScript checks passed for the
modified Electron files.

Closes: #15301 

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Bug Fixes**
  * Improved secure password-store selection on Linux.
* Added support for KDE/Plasma and GNOME-compatible desktop
environments.
* Preserves manually configured password-store settings and selects an
appropriate fallback when needed.

* **Tests**
* Added coverage for Linux desktop detection, fallback behavior, session
variations, and non-Linux environments.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: DarkSky <25152247+darkskygit@users.noreply.github.com>
Co-authored-by: donqu1xotevincent <vincent@toeverything.info>
2026-10-27 15:55:08 +08:00
DarkSky 80e1c26815 fix(client): add aarch64 linux release (#15752)
fix #13701

#### PR Dependency Tree


* **PR #15752** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **New Features**
  * Linux ARM64 builds on ARM64 hosts now use the native build path.
* **Bug Fixes**
* Improved updater handling of Linux ARM64 installer filenames so
platform and architecture filtering can be verified for those packages.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-10-27 15:52:32 +08:00
DarkSky 21e07b6635 fix(client): glibc version & linux secret store (#15751)
fix #15732
fix #15750
fix #15548

#### PR Dependency Tree


* **PR #15751** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)
2026-10-27 15:47:55 +08:00
renovate[bot] 5f19254997 chore: bump up apple/swift-collections version to from: "1.7.4" (#15741)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
|
[apple/swift-collections](https://redirect.github.com/apple/swift-collections)
| minor | `from: "1.6.0"` → `from: "1.7.4"` |

---

### Release Notes

<details>
<summary>apple/swift-collections</summary>

###
[`v1.7.4`](https://redirect.github.com/apple/swift-collections/releases/tag/1.7.4):
Swift Collections 1.7.4

[Compare
Source](https://redirect.github.com/apple/swift-collections/compare/1.7.3...1.7.4)

This is a patch release shipping a number of bug fixes.

#### What's Changed

- Fix implementation of `InputSpan.removeAll()` by
[@&#8203;glessard](https://redirect.github.com/glessard) in
[#&#8203;766](https://redirect.github.com/apple/swift-collections/pull/766)
- SortedSet: keep the existing member on insert, replace it on
update(with:) by
[@&#8203;aniketatgithub](https://redirect.github.com/aniketatgithub) in
[#&#8203;761](https://redirect.github.com/apple/swift-collections/pull/761)
- \[SortedCollections] Check SortedSet's SetAlgebra conformance by
[@&#8203;Joseph-Cursio](https://redirect.github.com/Joseph-Cursio) in
[#&#8203;758](https://redirect.github.com/apple/swift-collections/pull/758)
- Check the set predicates and isEqualSet(to:) against plain sequences
by [@&#8203;Joseph-Cursio](https://redirect.github.com/Joseph-Cursio) in
[#&#8203;759](https://redirect.github.com/apple/swift-collections/pull/759)
- \[BitCollections] Check BitSet.Counted's BidirectionalCollection
conformance by
[@&#8203;Joseph-Cursio](https://redirect.github.com/Joseph-Cursio) in
[#&#8203;767](https://redirect.github.com/apple/swift-collections/pull/767)
- Fix implementation of OutputSpan.\_consumeAll() by
[@&#8203;glessard](https://redirect.github.com/glessard) in
[#&#8203;775](https://redirect.github.com/apple/swift-collections/pull/775)
- Bump
swiftlang/github-workflows/.github/workflows/swift_package_test.yml from
0.0.15 to 0.0.16 by
[@&#8203;dependabot](https://redirect.github.com/dependabot)\[bot] in
[#&#8203;778](https://redirect.github.com/apple/swift-collections/pull/778)
- Bump swiftlang/github-workflows from 0.0.15 to 0.0.16 by
[@&#8203;dependabot](https://redirect.github.com/dependabot)\[bot] in
[#&#8203;780](https://redirect.github.com/apple/swift-collections/pull/780)
- Bump swiftlang/github-workflows/.github/workflows/soundness.yml from
0.0.15 to 0.0.16 by
[@&#8203;dependabot](https://redirect.github.com/dependabot)\[bot] in
[#&#8203;779](https://redirect.github.com/apple/swift-collections/pull/779)
- \[BasicContainers] Fix RigidSet.hash(into:) never returning by
[@&#8203;Joseph-Cursio](https://redirect.github.com/Joseph-Cursio) in
[#&#8203;768](https://redirect.github.com/apple/swift-collections/pull/768)
- Add checkSetAlgebraMemberIdentity, a law checker for which equal
member SetAlgebra keeps by
[@&#8203;Joseph-Cursio](https://redirect.github.com/Joseph-Cursio) in
[#&#8203;769](https://redirect.github.com/apple/swift-collections/pull/769)
- \[BasicContainers] Fix UniqueArray.append(moving:) dropping and
leaking every element by
[@&#8203;aniketatgithub](https://redirect.github.com/aniketatgithub) in
[#&#8203;776](https://redirect.github.com/apple/swift-collections/pull/776)
- \[UniqueDeque] Fix prepend(from:) reversing batch order across
producer passes by
[@&#8203;SwastikTripathi](https://redirect.github.com/SwastikTripathi)
in
[#&#8203;777](https://redirect.github.com/apple/swift-collections/pull/777)
- \[BasicContainers] Fix returned range of
replaceSubrange(\_:addingCount:initializingWith:) by
[@&#8203;aashish254](https://redirect.github.com/aashish254) in
[#&#8203;781](https://redirect.github.com/apple/swift-collections/pull/781)
- \[BasicContainers] Fix RigidSet/UniqueSet batch insertion never
terminating without the preview trait by
[@&#8203;aashish254](https://redirect.github.com/aashish254) in
[#&#8203;782](https://redirect.github.com/apple/swift-collections/pull/782)
- \[BigString] Resync character breaks after removeSubrange by
[@&#8203;sebxt](https://redirect.github.com/sebxt) in
[#&#8203;784](https://redirect.github.com/apple/swift-collections/pull/784)
- Saturate producer buffers by
[@&#8203;lorentey](https://redirect.github.com/lorentey) in
[#&#8203;789](https://redirect.github.com/apple/swift-collections/pull/789)
- Fix nextSpan/previousSpan implementations by
[@&#8203;lorentey](https://redirect.github.com/lorentey) in
[#&#8203;793](https://redirect.github.com/apple/swift-collections/pull/793)
- \[BorrowingMapProducer] Fix skip(by:) hanging at end of iterator by
[@&#8203;SwastikTripathi](https://redirect.github.com/SwastikTripathi)
in
[#&#8203;794](https://redirect.github.com/apple/swift-collections/pull/794)
- \[OrderedCollections] Check the remaining Hashable conformances by
[@&#8203;Joseph-Cursio](https://redirect.github.com/Joseph-Cursio) in
[#&#8203;792](https://redirect.github.com/apple/swift-collections/pull/792)
- \[ContainersPreview] Add missing RigidSet+Extras.swift to CMake source
list by [@&#8203;aashish254](https://redirect.github.com/aashish254) in
[#&#8203;797](https://redirect.github.com/apple/swift-collections/pull/797)
- \[BitCollections] Fix BitSet intersection doc examples for Range
inputs by [@&#8203;aashish254](https://redirect.github.com/aashish254)
in
[#&#8203;799](https://redirect.github.com/apple/swift-collections/pull/799)
- \[BitCollections] Fix BitArray.resizingShiftRight leaving stale bits
by [@&#8203;aashish254](https://redirect.github.com/aashish254) in
[#&#8203;798](https://redirect.github.com/apple/swift-collections/pull/798)
- fix: guard InputSpan methods against nil base address in debug builds
by
[@&#8203;SwastikTripathi](https://redirect.github.com/SwastikTripathi)
in
[#&#8203;795](https://redirect.github.com/apple/swift-collections/pull/795)

#### New Contributors

- [@&#8203;SwastikTripathi](https://redirect.github.com/SwastikTripathi)
made their first contribution in
[#&#8203;777](https://redirect.github.com/apple/swift-collections/pull/777)
- [@&#8203;aashish254](https://redirect.github.com/aashish254) made
their first contribution in
[#&#8203;781](https://redirect.github.com/apple/swift-collections/pull/781)
- [@&#8203;sebxt](https://redirect.github.com/sebxt) made their first
contribution in
[#&#8203;784](https://redirect.github.com/apple/swift-collections/pull/784)

**Full Changelog**:
<https://github.com/apple/swift-collections/compare/1.7.3...1.7.4>

###
[`v1.7.3`](https://redirect.github.com/apple/swift-collections/releases/tag/1.7.3):
Swift Collections 1.7.3

[Compare
Source](https://redirect.github.com/apple/swift-collections/compare/1.7.2...1.7.3)

This is a patch release resolving a correctness issue with
`BitSet.Counted.isEqualSet(to:)`, improving test coverage throughout the
library, and continuing the development of unstable interfaces.

#### What's Changed

- \[Heap] Add exhaustive permutations and duplicate-value coverage by
[@&#8203;rksharma-owg](https://redirect.github.com/rksharma-owg) in
[#&#8203;750](https://redirect.github.com/apple/swift-collections/pull/750)
- \[BitCollections] Fix BitSet.Counted.isEqualSet(to:) rejecting
sequences with duplicates by
[@&#8203;kwy404](https://redirect.github.com/kwy404) in
[#&#8203;749](https://redirect.github.com/apple/swift-collections/pull/749)
- SortedSet: generalize set operations to arbitrary Sequences by
[@&#8203;aniketatgithub](https://redirect.github.com/aniketatgithub) in
[#&#8203;746](https://redirect.github.com/apple/swift-collections/pull/746)
- \[SortedCollections] Check the BidirectionalCollection, Equatable and
Hashable conformances by
[@&#8203;Joseph-Cursio](https://redirect.github.com/Joseph-Cursio) in
[#&#8203;742](https://redirect.github.com/apple/swift-collections/pull/742)
- Build BigString in Embedded Swift - with a custom implementation of
grapheme walking instead of using the stdlib by
[@&#8203;parkera](https://redirect.github.com/parkera) in
[#&#8203;752](https://redirect.github.com/apple/swift-collections/pull/752)
- Revive configuration for Foundation toolchain module builds by
[@&#8203;lorentey](https://redirect.github.com/lorentey) in
[#&#8203;753](https://redirect.github.com/apple/swift-collections/pull/753)
- Copy every source span in replaceSubrange(copying:) by
[@&#8203;hamed75kazemii](https://redirect.github.com/hamed75kazemii) in
[#&#8203;755](https://redirect.github.com/apple/swift-collections/pull/755)
- 1.7.3: Clean up minor issues in build configuration by
[@&#8203;lorentey](https://redirect.github.com/lorentey) in
[#&#8203;756](https://redirect.github.com/apple/swift-collections/pull/756)
- CMake: Enable UnstableContainersPreview and UnstableHashedContainers
by default by [@&#8203;lorentey](https://redirect.github.com/lorentey)
in
[#&#8203;757](https://redirect.github.com/apple/swift-collections/pull/757)

#### New Contributors

- [@&#8203;rksharma-owg](https://redirect.github.com/rksharma-owg) made
their first contribution in
[#&#8203;750](https://redirect.github.com/apple/swift-collections/pull/750)
- [@&#8203;kwy404](https://redirect.github.com/kwy404) made their first
contribution in
[#&#8203;749](https://redirect.github.com/apple/swift-collections/pull/749)
- [@&#8203;aniketatgithub](https://redirect.github.com/aniketatgithub)
made their first contribution in
[#&#8203;746](https://redirect.github.com/apple/swift-collections/pull/746)
- [@&#8203;hamed75kazemii](https://redirect.github.com/hamed75kazemii)
made their first contribution in
[#&#8203;755](https://redirect.github.com/apple/swift-collections/pull/755)

**Full Changelog**:
<https://github.com/apple/swift-collections/compare/1.7.2...1.7.3>

###
[`v1.7.2`](https://redirect.github.com/apple/swift-collections/releases/tag/1.7.2):
Swift Collections 1.7.2

[Compare
Source](https://redirect.github.com/apple/swift-collections/compare/1.7.1...1.7.2)

This is a patch release shipping a few internal cleanups.

- On Swift 6.4, the package is now built with strict memory safety
enabled. (I don't expect to ever get rid of all `unsafe` keywords: safe
data structures have to be built on top of unsafe allocator primitives,
after all. But I do expect we will gradually move to using memory-safe
constructs whenever it's possible to do so, and the keywords will serve
as a helpful incentive for that.)
- The package has now fully migrated its testing to rely on `package`
access modifiers rather than `@testable import` or `@_spi` trickery.

#### What's Changed

- \[Xcode, CMake]: Build ContainersPreview as a standalone module by
[@&#8203;lorentey](https://redirect.github.com/lorentey) in
[#&#8203;744](https://redirect.github.com/apple/swift-collections/pull/744)
- Stop using `@_spi` attribute and `@testable import` by
[@&#8203;lorentey](https://redirect.github.com/lorentey) in
[#&#8203;745](https://redirect.github.com/apple/swift-collections/pull/745)
- Enable strict memory safety on Swift 6.4 by
[@&#8203;lorentey](https://redirect.github.com/lorentey) in
[#&#8203;747](https://redirect.github.com/apple/swift-collections/pull/747)

**Full Changelog**:
<https://github.com/apple/swift-collections/compare/1.7.1...1.7.2>

###
[`v1.7.1`](https://redirect.github.com/apple/swift-collections/releases/tag/1.7.1):
Swift Collections 1.7.1

[Compare
Source](https://redirect.github.com/apple/swift-collections/compare/1.7.0...1.7.1)

This is a patch release that ships a workaround for a Swift 6.4 defect
that prevents code that uses the package from deploying before macOS/iOS
27
([#&#8203;733](https://redirect.github.com/apple/swift-collections/issues/733)),
alongside fixes for a handful of other bugs uncovered since 1.7.0.

#### What's Changed

- Housekeeping: replace repo-level CODE_OF_CONDUCT by
[@&#8203;apple-ospo](https://redirect.github.com/apple-ospo)\[bot] in
[#&#8203;738](https://redirect.github.com/apple/swift-collections/pull/738)
- \[HashTreeCollections] Fix union misplacing items pushed into a new
child by
[@&#8203;Denimworld12](https://redirect.github.com/Denimworld12) in
[#&#8203;737](https://redirect.github.com/apple/swift-collections/pull/737)
- \[BitCollections] Fix BitSet.Counted.update(with:) not maintaining the
cached count by
[@&#8203;Denimworld12](https://redirect.github.com/Denimworld12) in
[#&#8203;736](https://redirect.github.com/apple/swift-collections/pull/736)
- validateContainer: report a mis-sized expectation instead of trapping
or ignoring it by
[@&#8203;Joseph-Cursio](https://redirect.github.com/Joseph-Cursio) in
[#&#8203;735](https://redirect.github.com/apple/swift-collections/pull/735)
- Avoid using `Ref` in Swift 6.4 by
[@&#8203;lorentey](https://redirect.github.com/lorentey) in
[#&#8203;739](https://redirect.github.com/apple/swift-collections/pull/739)
- Version 1.7.1 release preparations by
[@&#8203;lorentey](https://redirect.github.com/lorentey) in
[#&#8203;740](https://redirect.github.com/apple/swift-collections/pull/740)

#### New Contributors

- [@&#8203;apple-ospo](https://redirect.github.com/apple-ospo)\[bot]
made their first contribution in
[#&#8203;738](https://redirect.github.com/apple/swift-collections/pull/738)
- [@&#8203;Denimworld12](https://redirect.github.com/Denimworld12) made
their first contribution in
[#&#8203;737](https://redirect.github.com/apple/swift-collections/pull/737)

**Full Changelog**:
<https://github.com/apple/swift-collections/compare/1.7.0...1.7.1>

###
[`v1.7.0`](https://redirect.github.com/apple/swift-collections/releases/tag/1.7.0):
Swift Collections 1.7.0

[Compare
Source](https://redirect.github.com/apple/swift-collections/compare/1.6.0...1.7.0)

This is a feature release raising the minimum required toolchain to
Swift 6.2. It formalizes `Equatable`/`Hashable` conformances on the
ownership-aware container types, adds a new stable `OrderedSet`
operation, and continues to develop the experimental ownership-aware
container model behind the `UnstableContainersPreview` trait. It also
includes a number of performance improvements and bug fixes.

#### New stable APIs

##### `OrderedCollections`

- `OrderedSet.replace(at:with:)` replaces the member at a given index
with a new element, returning the element that was removed. Replacing a
member with an element that already exists elsewhere in the set is a
runtime error. Expected amortized O(1) complexity.
([#&#8203;669](https://redirect.github.com/apple/swift-collections/pull/669))

##### `BasicContainers`, `DequeModule`

- On a Swift 6.4 or later toolchain, `RigidArray`, `UniqueArray`,
`RigidDeque`, `UniqueDeque`, `RigidSet`, `UniqueSet`, `RigidDictionary`,
and `UniqueDictionary` now formally conform to `Equatable` and
`Hashable`. (The underlying `==` and `hash(into:)` members were already
available in 1.6.0; what is new is the conformances themselves.)
Building with Swift 6.2 or 6.3 still gets you the `==`/`hash(into:)`
members, but no conformances.

- `RigidDeque.isTriviallyIdentical(to:)` and
`UniqueDeque.isTriviallyIdentical(to:)` are now available for every
element type, including noncopyable ones. Previously these required
`Element: Equatable`.

- New spelling for the capacity, cloning, and range-replacement
operations; see **Renamed APIs** below. The new names are the stable
spelling going forward; the old ones remain as deprecated shims.

##### `Collections` umbrella module

The `Collections` module is back to re-exporting its constituent modules
with `@_exported import`, instead of restating each type as a `public
typealias`
([#&#8203;716](https://redirect.github.com/apple/swift-collections/pull/716)).
A single
`import Collections` therefore now brings in the *entire* contents of
`BitCollections`, `DequeModule`, `HashTreeCollections`, `HeapModule`,
and `OrderedCollections` — including types that previously were not
exposed in the `Collections` module, such as `RigidDeque` and
`UniqueDeque`. This allows `import Collections` to work even for clients
that have `MemberImportVisibility` enabled.

#### Renamed APIs

`BasicContainers` and `DequeModule` are stable modules, so every rename
below ships with a deprecated shim carrying `@available(*, deprecated,
renamed:)`. Existing code keeps compiling, and Xcode/`swift build` will
offer fix-its.

| Old name | New name |
| ------------------------------------------ |
---------------------------------------------------------------- |
| `reallocate(capacity:)` | `setCapacity(_:)` |
| `copy()` | `clone()` |
| `copy(capacity:)` | `clone(capacity:)` |
| `UniqueDeque.init(capacity:)` | `init(minimumCapacity:)` |
| `replace(_:with:)` and friends | `replaceSubrange(_:copying:)` /
`(_:moving:)` / `(_:consuming:)` |
| `replace(_:count:initializingWith:)` |
`replaceSubrange(_:addingCount:initializingWith:)` |
| `append(count:initializingWith:)` |
`append(addingCount:initializingWith:)` |
| `insert(count:at:initializingWith:)` |
`insert(addingCount:at:initializingWith:)` |
| `nextSpan(after:maximumCount:)` | `nextSpan(after:maxCount:)` |
| `nextMutableSpan(after:maximumCount:)` |
`nextMutableSpan(after:maxCount:)` |
| `previousSpan(before:maximumCount:)` |
`previousSpan(before:maxCount:)` |
| `RigidSet.insert(count:initializingWith:)` |
`insert(addingCount:initializingWith:)` |
| `RigidSet.insert(count:from:)` | `insert(addingCount:from:)` |

Most of the new names sync this package with the API names recently
adopted in the Standard Library in `Iterable` and `UniqueArray`.

#### Performance improvements

- **`BitSet.count` is roughly 3× faster.**
([#&#8203;702](https://redirect.github.com/apple/swift-collections/pull/702))
- `_Word.allBits` is now `@inlinable`, which unblocks specialization in
several
bit-twiddling paths.
([#&#8203;704](https://redirect.github.com/apple/swift-collections/pull/704))
- `OrderedSet.reverse()` now reverses the hash table in place instead of
rebuilding it from scratch.
([#&#8203;668](https://redirect.github.com/apple/swift-collections/pull/668))
- `UniqueArray` no longer performs duplicate bounds checks on subscript
and
mutation paths.
([#&#8203;699](https://redirect.github.com/apple/swift-collections/pull/699))
- `RigidArray`'s internal representation was split from a `(buffer
pointer, count)` pair into separate pointer, capacity, and count fields.
This exposes an unused bit pattern for the compiler to use for
representing nil values in optional wrapped arrays, avoiding having to
add an out-of-line discriminator. The representation of
`RigidDictionary` was
adjusted in a similar way.
([#&#8203;692](https://redirect.github.com/apple/swift-collections/pull/692),
[#&#8203;717](https://redirect.github.com/apple/swift-collections/pull/717))
- `Deque` and the `TreeSet`/`TreeDictionary` types are no longer using a
`malloc_size` to make use of any "extra" storage allocated.
([#&#8203;700](https://redirect.github.com/apple/swift-collections/pull/700))
- `OrderedDictionary.replaceElement` now uses `exchange(_:with:)` on its
equal-key path to avoid copying the outgoing value.
([#&#8203;688](https://redirect.github.com/apple/swift-collections/pull/688),
[#&#8203;703](https://redirect.github.com/apple/swift-collections/pull/703))
- `RigidDictionary` now stores a sentinel value rather than `nil` for
its values pointer, removing a branch from value access.

#### Notable bug fixes

- **`BitCollections`:** `BitSet.isEqualSet(to:)` returned the wrong
result when given an empty `Range<Int>`. A non-empty bit set incorrectly
compared equal to an empty range.
([#&#8203;718](https://redirect.github.com/apple/swift-collections/pull/718))
- **`SortedCollections`** (`UnstableSortedCollections` trait):
`SortedDictionary.Keys`, `.Values`, and `.SubSequence` had inverted `==`
implementations, so equal instances compared unequal and vice versa.
`SubSequence` equality also now uses tuple comparison rather than an
element-by-element loop with the wrong short-circuit.
([#&#8203;697](https://redirect.github.com/apple/swift-collections/pull/697))
- **Embedded Swift:** the `_UniqueCollection` fast paths in
`BitSet.isEqualSet(to:)`, `OrderedSet.isEqualSet(to:)`,
`TreeSet.isEqualSet(to:)`, and `TreeSet.symmetricDifference(_:)` rely on
dynamic conformance checks, which are unavailable in embedded Swift.
They are now compiled out with `#if !$Embedded`.
([#&#8203;715](https://redirect.github.com/apple/swift-collections/pull/715))

#### Experimental container protocols (`UnstableContainersPreview`
trait)

This is the first swift-collections release that ships a fully
operational container protocol hierarchy, including some massive
updates. However, things are still subject to change, and we expect to
need to make breaking changes as we gain experience using the new
constructs. Nothing under this trait is stable API, and source-breaking
changes land without deprecations.

**New:**
[`Documentation/Container-design.md`](Documentation/Container-design.md)
is a work-in-progress document describing the container design
implemented in the `ContainersPreview` module. As of the 1.7.0 release,
it explains some of the design decisions behind the container protocols,
up to and including `MutableContainer`. (The `Producer` hierarchy and
the range-replaceable container protocol family is not yet fully
covered; we expect those parts to be fleshed out later.)

##### New `SpanPreview` module

`InputSpan` has moved out of `ContainersPreview` into a new
`SpanPreview` module. `SpanPreview` holds span-adjacent primitives that
are expected to graduate to the standard library, and it is entirely
empty unless the `UnstableContainersPreview` trait is enabled. It also
ships basic `MutableSpan`/`OutputSpan` helpers for producing and
consuming `InputSpan`s.

Some core APIs on the container types require the use of `InputSpan`,
and this change lets these APIs continue to live in their defining
module.

`SpanPreview` is explicitly not part of the package's stable public API,
as we expect to soon replace it with the Standard Library's own
`InputSpan` definition.

##### Dependency inversion

`ContainersPreview` and the concrete container modules have swapped
places in the dependency graph. `BasicContainers` and `DequeModule` no
longer depend on `ContainersPreview`; instead `ContainersPreview`
depends on them, and all
container conformances for the concrete types now live there, under
`Sources/ContainersPreview/Conformances/`.
([`842f125c`](https://redirect.github.com/apple/swift-collections/commit/842f125c))

**Source-breaking for trait adopters:** getting `Container` (etc.)
conformances for `RigidArray`, `UniqueArray`, `RigidDeque`,
`UniqueDeque`, `RigidSet`, or `UniqueSet` now requires `import
ContainersPreview`. Importing just `BasicContainers` or `DequeModule`
gets you the types and their intrinsic operations, but not the protocol
conformances.

##### Standard library adoption

- The locally-defined `BorrowingSequence_`/`BorrowingIteratorProtocol_`
protocols have been replaced by the standard library's `Iterable` and
`BorrowingIteratorProtocol`. The package's own definitions have been
removed.
([#&#8203;657](https://redirect.github.com/apple/swift-collections/pull/657))
- Similarly, `Ref` and `MutableRef` now ship in the Standard Library
rather than being declared in `ContainersPreview`. (`UniqueBox` is part
of the package's stable API, so its definition continues to remain
available. We expect to deprecate it in a future package release.)

##### New protocols

- Removal and consumption operations were spun off from
`RangeReplaceableContainer` into the new parent protocol
`DrainableContainer`. This protocol models containers supporting partial
in-place consumption (and removal) of their contents. Range-replacement
operations now all return indices to the subranges they affected, so
that we can perform insertions/removals without losing our place in the
container. (This is particularly important for linked lists and similar
linked data structures capable of performing O(1) insertions/removals.)
([#&#8203;723](https://redirect.github.com/apple/swift-collections/pull/723))
- `CountedProducer` refines `Producer` adding a precise count of
remaining elements. `Drain` now refines `CountedProducer`.
- `ContainerDrain` refines `Drain` to allow retrieving a valid index
after the items have been drained.
- `RangeExpression2` now refines the standard `RangeExpression`, so that
we can use the standard range expression notation over container types.
(The name (as well as the protocol itself) is a placeholder, so that we
have something that works while we are looking for a better solution.)
([#&#8203;22a94a97](https://redirect.github.com/apple/swift-collections/commit/22a94a97))

##### Reworked core requirements

- `Container`'s core primitive is now
`nextSpan(after:maxCount:limitedBy:)`, with optional delimiter
arguments; the
bidirectional counterpart is
`spanBoundary(before:maxDistance:limitedBy:)`.
- `Container` gained `makeBorrowingIterator(from:)`,
`makeBorrowingIterator(from:to:)`, and `currentIndex(of:)` requirements.
- `Container` now expects its indices to be `Comparable` again, as we
have found a way to provide them in conforming linked list types.
([#&#8203;727](https://redirect.github.com/apple/swift-collections/pull/727))
- `[Mutable]Container` gained subscript requirements expressed with
borrow and mutate accessors.
- `Producer.generate(into:)` switched to saturating semantics — it now
fills the destination when possible, unless it reaches its end or
throws.
([#&#8203;728](https://redirect.github.com/apple/swift-collections/pull/728))

##### New algorithms

- `MutableContainer` gained bulk update operations (`updateSubrange` and
friends), in both mutating and copying forms, plus a default `swapAt`
implementation for copyable elements.
([#&#8203;724](https://redirect.github.com/apple/swift-collections/pull/724))
- `PermutableContainer` gained `reverse()`, `shuffle()`,
`moveSubrange(_:to:)`, and a heap sort.
- `Producer` gained `UnfoldProducer` (an unfold-style generator), and
- `BorrowingIteratorProtocol` gained `mapError`, and `map` was fixed;
`_map2` and `_map3` were added alongside it to demonstrate different
throwing behaviors. Error handling across the producer/drain algorithms
was reviewed.
- New `Container` conformances for `Span`, `MutableSpan`, `OutputSpan`,
and `InputSpan`.

#### Experimental hashed containers (`UnstableHashedContainers` trait)

These types are functional, but they still have known usability gaps in
their API surface that prevents us from declaring them API stable.

- The trait no longer needs `UnstableContainersPreview` to be enabled
alongside it.
[`70dc2389`](https://redirect.github.com/apple/swift-collections/commit/70dc2389))
- `RigidSet` and `UniqueSet` now conform to `Container`.
([#&#8203;713](https://redirect.github.com/apple/swift-collections/pull/713))
- `RigidDictionary` and `UniqueDictionary` gained a `keys` property and
`mutableValue(forKey:)`, which yields in-place mutable access to a
stored value.
([#&#8203;698](https://redirect.github.com/apple/swift-collections/pull/698),

#### Testing and infrastructure

- **`checkSetAlgebra`**, a new law checker in `_CollectionsTestSupport`,
verifies set-like types against the `SetAlgebra` laws — and additionally
checks each mutating operation against its non-mutating twin.
([#&#8203;719](https://redirect.github.com/apple/swift-collections/pull/719),
[#&#8203;730](https://redirect.github.com/apple/swift-collections/pull/730))
- A **`Container` conformance validator** has been added, along the
lines of the existing `Sequence`/`Collection` conformance checkers, and
is now applied to `RigidSet`, `UniqueSet`, `RigidDeque`, and
`UniqueDeque`.
([#&#8203;713](https://redirect.github.com/apple/swift-collections/pull/713),
[#&#8203;720](https://redirect.github.com/apple/swift-collections/pull/720))
- New tests cover `Deque`'s storage allocation behavior and
`MutableContainer`'s requirements (the latter uncovered and fixed
several issues).
([#&#8203;722](https://redirect.github.com/apple/swift-collections/pull/722))
- We added a first draft of a `swift-format` configuration for this
package.
- CI workflows were updated (`swiftlang/github-workflows` 0.0.11 →
0.0.15, `actions/checkout` 6 → 7), and the matrix was simplified now
that 6.0/6.1 are out of support.
- The unstable Xcode project had its groups converted to folders.

#### Detailed List of Changes

- Run heap node tests in release by
[@&#8203;sorinc03](https://redirect.github.com/sorinc03) in
[#&#8203;662](https://redirect.github.com/apple/swift-collections/pull/662)
- \[BasicContainers] Rename reallocate to setCapacity for Rigid and
UniqueArray by [@&#8203;Azoy](https://redirect.github.com/Azoy) in
[#&#8203;667](https://redirect.github.com/apple/swift-collections/pull/667)
- Define SwiftStdlib 6.4 with actual version numbers by
[@&#8203;lorentey](https://redirect.github.com/lorentey) in
[#&#8203;670](https://redirect.github.com/apple/swift-collections/pull/670)
- Update `BorrowingSequence` to `Iterable` by
[@&#8203;natecook1000](https://redirect.github.com/natecook1000) in
[#&#8203;657](https://redirect.github.com/apple/swift-collections/pull/657)
- Bump swiftlang/github-workflows/.github/workflows/soundness.yml from
0.0.11 to 0.0.12 by
[@&#8203;dependabot](https://redirect.github.com/dependabot)\[bot] in
[#&#8203;678](https://redirect.github.com/apple/swift-collections/pull/678)
- Bump
swiftlang/github-workflows/.github/workflows/swift_package_test.yml from
0.0.11 to 0.0.12 by
[@&#8203;dependabot](https://redirect.github.com/dependabot)\[bot] in
[#&#8203;677](https://redirect.github.com/apple/swift-collections/pull/677)
- Fix [@&#8203;inlinable](https://redirect.github.com/inlinable) deinit
incompatibility with library evolution (HashTree/Sorted storage) by
[@&#8203;itej13](https://redirect.github.com/itej13) in
[#&#8203;679](https://redirect.github.com/apple/swift-collections/pull/679)
- Bump actions/checkout from 6 to 7 by
[@&#8203;dependabot](https://redirect.github.com/dependabot)\[bot] in
[#&#8203;672](https://redirect.github.com/apple/swift-collections/pull/672)
- \[OrderedCollections] OrderedSet.reverse(): update the hash table in
place by [@&#8203;inju2403](https://redirect.github.com/inju2403) in
[#&#8203;668](https://redirect.github.com/apple/swift-collections/pull/668)
- Fix superset set algebra doc comments by
[@&#8203;wjdtjq6](https://redirect.github.com/wjdtjq6) in
[#&#8203;674](https://redirect.github.com/apple/swift-collections/pull/674)
- Fix typos in doc comments and a DocC article by
[@&#8203;wjdtjq6](https://redirect.github.com/wjdtjq6) in
[#&#8203;673](https://redirect.github.com/apple/swift-collections/pull/673)
- \[OrderedCollections] Add OrderedSet.replace(\_:at:) by
[@&#8203;inju2403](https://redirect.github.com/inju2403) in
[#&#8203;669](https://redirect.github.com/apple/swift-collections/pull/669)
- Bump swiftlang/github-workflows/.github/workflows/soundness.yml from
0.0.12 to 0.0.13 by
[@&#8203;dependabot](https://redirect.github.com/dependabot)\[bot] in
[#&#8203;689](https://redirect.github.com/apple/swift-collections/pull/689)
- Bump
swiftlang/github-workflows/.github/workflows/swift_package_test.yml from
0.0.12 to 0.0.13 by
[@&#8203;dependabot](https://redirect.github.com/dependabot)\[bot] in
[#&#8203;690](https://redirect.github.com/apple/swift-collections/pull/690)
- \[ContainersPreview] Update Container protocols by
[@&#8203;lorentey](https://redirect.github.com/lorentey) in
[#&#8203;682](https://redirect.github.com/apple/swift-collections/pull/682)
- \[RigidArray/UniqueArray] Split up the buffer pointer in RIgidArray by
[@&#8203;Azoy](https://redirect.github.com/Azoy) in
[#&#8203;692](https://redirect.github.com/apple/swift-collections/pull/692)
- Fix stale paths in internals documentation by
[@&#8203;ZayanKhan-12](https://redirect.github.com/ZayanKhan-12) in
[#&#8203;691](https://redirect.github.com/apple/swift-collections/pull/691)
- More updates to the container model by
[@&#8203;lorentey](https://redirect.github.com/lorentey) in
[#&#8203;694](https://redirect.github.com/apple/swift-collections/pull/694)
- More ContainersPreview updates by
[@&#8203;lorentey](https://redirect.github.com/lorentey) in
[#&#8203;695](https://redirect.github.com/apple/swift-collections/pull/695)
- \[Rigid/UniqueDictionary] Add mutableValue(forKey:) to new dictionary
types by [@&#8203;Azoy](https://redirect.github.com/Azoy) in
[#&#8203;698](https://redirect.github.com/apple/swift-collections/pull/698)
- \[OrderedCollections] Share OrderedSet's replace primitive with
OrderedDictionary.replaceElement by
[@&#8203;inju2403](https://redirect.github.com/inju2403) in
[#&#8203;688](https://redirect.github.com/apple/swift-collections/pull/688)
- Fix inverted SortedDictionary Keys/Values/SubSequence equality by
[@&#8203;Hashim1999164](https://redirect.github.com/Hashim1999164) in
[#&#8203;697](https://redirect.github.com/apple/swift-collections/pull/697)
- \[Deque/HashTree] Remove references to ManagedBuffer.capacity and use
the given minCapacity by
[@&#8203;Azoy](https://redirect.github.com/Azoy) in
[#&#8203;700](https://redirect.github.com/apple/swift-collections/pull/700)
- \[Rigid/UniqueArray] Eliminate some duplicate bounds checks for
UniqueArray by [@&#8203;Azoy](https://redirect.github.com/Azoy) in
[#&#8203;699](https://redirect.github.com/apple/swift-collections/pull/699)
- Mark `_Word.allBits` as `@inlinable` by
[@&#8203;dnadoba](https://redirect.github.com/dnadoba) in
[#&#8203;704](https://redirect.github.com/apple/swift-collections/pull/704)
- Improve `BitSet.count` performance by \~3x by
[@&#8203;dnadoba](https://redirect.github.com/dnadoba) in
[#&#8203;702](https://redirect.github.com/apple/swift-collections/pull/702)
- \[workflows] Update CI workflows by
[@&#8203;lorentey](https://redirect.github.com/lorentey) in
[#&#8203;706](https://redirect.github.com/apple/swift-collections/pull/706)
- Name the documented arguments the way the declarations name them by
[@&#8203;karpovantonme](https://redirect.github.com/karpovantonme) in
[#&#8203;701](https://redirect.github.com/apple/swift-collections/pull/701)
- \[OrderedCollections] Use exchange(\_:with:) in replaceElement's
equal-key path by
[@&#8203;inju2403](https://redirect.github.com/inju2403) in
[#&#8203;703](https://redirect.github.com/apple/swift-collections/pull/703)
- \[SortedCollections] Name the documented arguments the way the
declarations name them by
[@&#8203;karpovantonme](https://redirect.github.com/karpovantonme) in
[#&#8203;705](https://redirect.github.com/apple/swift-collections/pull/705)
- More container updates by
[@&#8203;lorentey](https://redirect.github.com/lorentey) in
[#&#8203;707](https://redirect.github.com/apple/swift-collections/pull/707)
- Bump
swiftlang/github-workflows/.github/workflows/swift_package_test.yml from
0.0.14 to 0.0.15 by
[@&#8203;dependabot](https://redirect.github.com/dependabot)\[bot] in
[#&#8203;712](https://redirect.github.com/apple/swift-collections/pull/712)
- Bump swiftlang/github-workflows/.github/workflows/soundness.yml from
0.0.14 to 0.0.15 by
[@&#8203;dependabot](https://redirect.github.com/dependabot)\[bot] in
[#&#8203;711](https://redirect.github.com/apple/swift-collections/pull/711)
- Conform RigidSet/UniqueSet to Container and add Container validator by
[@&#8203;lorentey](https://redirect.github.com/lorentey) in
[#&#8203;713](https://redirect.github.com/apple/swift-collections/pull/713)
- Disable `_UniqueCollection` fast paths in embedded Swift by
[@&#8203;lorentey](https://redirect.github.com/lorentey) in
[#&#8203;715](https://redirect.github.com/apple/swift-collections/pull/715)
- Reinstate exported imports in Collections module by
[@&#8203;lorentey](https://redirect.github.com/lorentey) in
[#&#8203;716](https://redirect.github.com/apple/swift-collections/pull/716)
- \[RigidDictionary] Store a sentinel value for values ptr if null by
[@&#8203;Azoy](https://redirect.github.com/Azoy) in
[#&#8203;717](https://redirect.github.com/apple/swift-collections/pull/717)
- \[BitSet] Fix isEqualSet(to: Range<Int>) for empty ranges by
[@&#8203;dylanpulver](https://redirect.github.com/dylanpulver) in
[#&#8203;718](https://redirect.github.com/apple/swift-collections/pull/718)
- Refactor DrainableContainer/RangeReplaceableContainer/DynamicContainer
by [@&#8203;lorentey](https://redirect.github.com/lorentey) in
[#&#8203;723](https://redirect.github.com/apple/swift-collections/pull/723)
- MutableContainer: Add some bulk update operations by
[@&#8203;lorentey](https://redirect.github.com/lorentey) in
[#&#8203;724](https://redirect.github.com/apple/swift-collections/pull/724)
- Container: Reinstate requirement for Comparable indices by
[@&#8203;lorentey](https://redirect.github.com/lorentey) in
[#&#8203;727](https://redirect.github.com/apple/swift-collections/pull/727)
- Add checkSetAlgebra, a law checker for set-like types by
[@&#8203;Joseph-Cursio](https://redirect.github.com/Joseph-Cursio) in
[#&#8203;719](https://redirect.github.com/apple/swift-collections/pull/719)
- Fix typos in documentation and comments by
[@&#8203;eliorpom-cmd](https://redirect.github.com/eliorpom-cmd) in
[#&#8203;725](https://redirect.github.com/apple/swift-collections/pull/725)
- \[DequeModule] Add tests for Deque's storage allocation behavior by
[@&#8203;Joseph-Cursio](https://redirect.github.com/Joseph-Cursio) in
[#&#8203;722](https://redirect.github.com/apple/swift-collections/pull/722)
- Unbacktick parameter names so DocC binds the parameter docs by
[@&#8203;hxperl](https://redirect.github.com/hxperl) in
[#&#8203;721](https://redirect.github.com/apple/swift-collections/pull/721)
- Validate the Container conformance of RigidDeque and UniqueDeque by
[@&#8203;Joseph-Cursio](https://redirect.github.com/Joseph-Cursio) in
[#&#8203;720](https://redirect.github.com/apple/swift-collections/pull/720)
- `Producer.generate(into:)`: Switch to saturating semantics by
[@&#8203;lorentey](https://redirect.github.com/lorentey) in
[#&#8203;728](https://redirect.github.com/apple/swift-collections/pull/728)
- Check the mutating form\* twins against their non-mutating originals
by [@&#8203;Joseph-Cursio](https://redirect.github.com/Joseph-Cursio) in
[#&#8203;730](https://redirect.github.com/apple/swift-collections/pull/730)
- 1.7.0 release preparations by
[@&#8203;lorentey](https://redirect.github.com/lorentey) in
[#&#8203;729](https://redirect.github.com/apple/swift-collections/pull/729)
- Finalize the 1.7.0 release by
[@&#8203;lorentey](https://redirect.github.com/lorentey) in
[#&#8203;731](https://redirect.github.com/apple/swift-collections/pull/731)

#### New Contributors

- [@&#8203;sorinc03](https://redirect.github.com/sorinc03) made their
first contribution in
[#&#8203;662](https://redirect.github.com/apple/swift-collections/pull/662)
- [@&#8203;itej13](https://redirect.github.com/itej13) made their first
contribution in
[#&#8203;679](https://redirect.github.com/apple/swift-collections/pull/679)
- [@&#8203;wjdtjq6](https://redirect.github.com/wjdtjq6) made their
first contribution in
[#&#8203;674](https://redirect.github.com/apple/swift-collections/pull/674)
- [@&#8203;ZayanKhan-12](https://redirect.github.com/ZayanKhan-12) made
their first contribution in
[#&#8203;691](https://redirect.github.com/apple/swift-collections/pull/691)
- [@&#8203;Hashim1999164](https://redirect.github.com/Hashim1999164)
made their first contribution in
[#&#8203;697](https://redirect.github.com/apple/swift-collections/pull/697)
- [@&#8203;karpovantonme](https://redirect.github.com/karpovantonme)
made their first contribution in
[#&#8203;701](https://redirect.github.com/apple/swift-collections/pull/701)
- [@&#8203;dylanpulver](https://redirect.github.com/dylanpulver) made
their first contribution in
[#&#8203;718](https://redirect.github.com/apple/swift-collections/pull/718)
- [@&#8203;Joseph-Cursio](https://redirect.github.com/Joseph-Cursio)
made their first contribution in
[#&#8203;719](https://redirect.github.com/apple/swift-collections/pull/719)
- [@&#8203;eliorpom-cmd](https://redirect.github.com/eliorpom-cmd) made
their first contribution in
[#&#8203;725](https://redirect.github.com/apple/swift-collections/pull/725)
- [@&#8203;hxperl](https://redirect.github.com/hxperl) made their first
contribution in
[#&#8203;721](https://redirect.github.com/apple/swift-collections/pull/721)

**Full Changelog**:
<https://github.com/apple/swift-collections/compare/1.6.0...1.7.0>

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/toeverything/AFFiNE).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xODAuMCIsInVwZGF0ZWRJblZlciI6IjQ0LjE4MC4wIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-26 16:51:30 +08:00
DarkSky b2e56529ee chore: improve ci (#15743) 2026-10-26 16:49:45 +08:00
DarkSky e32f8dce04 chore: bump deps (#15729)
#### PR Dependency Tree


* **PR #15729** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Deployment**
* Updated the Cloud SQL Proxy image and integrated it with deployment
charts.
* Containers now run with stricter security settings, including non-root
execution and read-only filesystems.
* **Desktop**
* Updated Electron and Node versions and adjusted Windows builds to
support multiple architectures.
* **Maintenance**
  * Updated Vite and Storybook versions across development tools.
  * Improved production GraphQL schema handling.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-10-22 16:38:31 +08:00
DarkSky 9be1a8284a feat: bump deps (#15698)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Workspace selection, creation, and navigation after import now use
consistent view transitions, including in browsers without native
transition support.
* **Chores**
* Updated supporting components for mathematical notation, diagrams,
desktop functionality, and backend services.
* Refreshed tools used by the app and its documentation, including
components for error reporting and GraphQL operations. These updates do
not change the rendered equations.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-10-10 23:28:25 +08:00
renovate[bot] 2e84a86570 chore: bump up RevenueCat/purchases-ios-spm version to from: "5.92.0" (#15459)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
|
[RevenueCat/purchases-ios-spm](https://redirect.github.com/RevenueCat/purchases-ios-spm)
| minor | `from: "5.83.0"` → `from: "5.92.0"` |

---

### Release Notes

<details>
<summary>RevenueCat/purchases-ios-spm
(RevenueCat/purchases-ios-spm)</summary>

###
[`v5.92.0`](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.91.0...5.92.0)

[Compare
Source](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.91.0...5.92.0)

###
[`v5.91.0`](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.90.2...5.91.0)

[Compare
Source](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.90.2...5.91.0)

###
[`v5.90.2`](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.90.1...5.90.2)

[Compare
Source](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.90.1...5.90.2)

###
[`v5.90.1`](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.90.0...5.90.1)

[Compare
Source](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.90.0...5.90.1)

###
[`v5.90.0`](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.89.0...5.90.0)

[Compare
Source](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.89.0...5.90.0)

###
[`v5.89.0`](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.88.0...5.89.0)

[Compare
Source](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.88.0...5.89.0)

###
[`v5.88.0`](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.87.1...5.88.0)

[Compare
Source](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.87.1...5.88.0)

###
[`v5.87.1`](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.87.0...5.87.1)

[Compare
Source](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.87.0...5.87.1)

###
[`v5.87.0`](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.86.0...5.87.0)

[Compare
Source](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.86.0...5.87.0)

###
[`v5.86.0`](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.85.0...5.86.0)

[Compare
Source](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.85.0...5.86.0)

###
[`v5.85.0`](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.84.0...5.85.0)

[Compare
Source](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.84.0...5.85.0)

###
[`v5.84.0`](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.83.2...5.84.0)

[Compare
Source](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.83.2...5.84.0)

###
[`v5.83.2`](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.83.1...5.83.2)

[Compare
Source](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.83.1...5.83.2)

###
[`v5.83.1`](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.83.0...5.83.1)

[Compare
Source](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.83.0...5.83.1)

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/toeverything/AFFiNE).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xMi4wIiwidXBkYXRlZEluVmVyIjoiNDQuMTM0LjEiLCJ0YXJnZXRCcmFuY2giOiJjYW5hcnkiLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-10 04:07:46 +08:00
renovate[bot] bf473eeb6c chore: bump up Recouse/EventSource version to from: "0.1.9" (#15686)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [Recouse/EventSource](https://redirect.github.com/Recouse/EventSource)
| patch | `from: "0.1.8"` → `from: "0.1.9"` |

---

### Release Notes

<details>
<summary>Recouse/EventSource (Recouse/EventSource)</summary>

###
[`v0.1.9`](https://redirect.github.com/Recouse/EventSource/releases/tag/0.1.9)

[Compare
Source](https://redirect.github.com/Recouse/EventSource/compare/0.1.8...0.1.9)

#### What's Changed

- fix: add explicit default auth challenge handling to SessionDelegate
by [@&#8203;liefran-sim](https://redirect.github.com/liefran-sim) in
[#&#8203;51](https://redirect.github.com/Recouse/EventSource/pull/51)
- Fix watchOS build failure on Xcode 27 by
[@&#8203;maximbilan](https://redirect.github.com/maximbilan) in
[#&#8203;52](https://redirect.github.com/Recouse/EventSource/pull/52)

**Full Changelog**:
<https://github.com/Recouse/EventSource/compare/0.1.8...0.1.9>

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/toeverything/AFFiNE).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xMzQuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjEzNC4xIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-09 12:01:04 +08:00
geeblish 96fd01717f fix(electron): avoid Windows packaging glob hang (#15668)
## Description

Fixes Electron Forge packaging on Windows hanging during the `afterCopy`
cleanup of nested `.bin` entries.

`path.join(buildPath, '**/.bin/**/*')` produces a backslash-delimited
glob on Windows. Passing that pattern directly to `fast-glob` caused
traversal to consume a full CPU core and grow the Node heap until the
process failed near its default ~4 GB limit.

This Yarn patch normalizes the generated glob to forward slashes before
passing it to `fast-glob`. The patch is pinned to `@electron-forge/core`
7.11.1 through the workspace resolutions.

Observed locally on Windows x64:

- Before: packaging remained in `Preparing native dependencies` /
`Finalizing package` for 30+ minutes and eventually failed with
`JavaScript heap out of memory`.
- After: `yarn affine @affine/electron package --platform=win32
--arch=x64` completed successfully; the final packaging pass took about
28 seconds.
- The packaged application was launched and its renderer was inspected
through Chromium remote debugging; the workspace rendered with no
runtime exceptions.

## Checklist

- [x] I have signed the [AFFiNE Contributor License
Agreement](https://cla-assistant.io/toeverything/AFFiNE) — required
before merge; the `license/cla` check must be green ([how it
works](https://github.com/toeverything/AFFiNE/blob/canary/docs/BUILDING.md#sign-the-cla-first))
- [x] The PR targets the `canary` branch and its title follows
[Conventional Commits](https://www.conventionalcommits.org/)
- [ ] Tests are added or updated where it makes sense
- [ ] `yarn lint` and `yarn typecheck` pass locally
- [ ] If the PR code includes AI-generated edits, I have carefully
reviewed it to ensure that the scope of the PR is consistent with what
is claimed in the title and description, and that there are no redundant
or invalid implementations.
- [x] I agree that maintainers may close the PR without discussion if
they consider the code quality to be too low.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Chores**
  * Pinned Electron Forge to a patched version.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-10-07 10:05:20 +08:00
DarkSky 7dd71162b5 feat(native): support multi remote source (#15642) 2026-09-25 20:27:16 +08:00
DarkSky ca0ffc52f7 feat(nbstore): multi remote primitive (#15637) 2026-09-23 02:26:14 +08:00
DarkSky d897bb3d84 chore: bump deps (#15624) 2026-09-20 13:01:49 +08:00
keepClamDownandDarkSky 2af30773ae feat(ios): add stable Share Extension imports (#15547)
## Summary

The changes below are prepared locally and have not been committed or
pushed.

- Save original URLs, user titles, selected text, images and PDFs
through a versioned, file-backed Share Inbox. Stable document/attempt
IDs, serialized imports and committed receipts make retries preserve
user edits and recover native completion.
- Keep rich previews transient. Share previews request transcript
excerpts, clip optional display fields and bound response/image
downloads. Saving does not wait for preview requests or persist provider
metadata, transcript snapshots or dedicated preview blobs.
- Restore the minimal App Group workspace-mode snapshot and
`official`/`deferred` route. Official routes remain fixed for the
pending share; deferred self-hosted previews use the selected server
without a provider fallback.
- Let bookmark and YouTube details read the current workspace's Link
Preview API by URL. Full transcripts, chapters and timestamps load on
expansion without document writes. Reuse editor styles and the existing
portal for canvas details; isolate endpoint/base/transcript caches and
keep transcript results out of persistent cache.

## Validation

- Focused frontend suites: 128 tests passed; the 43 preview/details
cases also passed after the final portal change.
- `ShareInboxSafetyTests`: 57 tests passed on iOS 26.5 simulator.
- `yarn typecheck` and full `yarn lint` passed.
- iOS web bundle, Capacitor asset copy, and signed simulator App build
with embedded ShareExtension passed.
- Browser component checks: desktop, narrow viewport, light/dark themes,
full transcript scrolling, canvas portal positioning and Escape
dismissal.
- Simulator Safari share: rich preview, cancellation, native-to-app
handoff, workspace selection and successful save. The pending manifest
contained original content and routing only, and was removed after
import.

Physical-device and network-capture matrices remain manual. The
simulator YouTube iframe displayed player error 153; this is separate
from the successful preview/import checks and video playback is not
claimed as verified.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **New Features**
* iOS sharing now supports PDF files alongside images, with previews and
attachment validation.
* Share imports offer improved workspace selection, offline handling,
retry recovery, and clearer error messages.
* Link previews can display expandable metadata and transcript details
for bookmarks and YouTube embeds.
* Share inbox entries now identify unsupported versions and provide
safer attachment resolution.

* **Bug Fixes**
* Improved cancellation, cleanup, and stale-request handling during
sharing and importing.
* Enhanced link-preview validation and protection against oversized or
invalid responses.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: DarkSky <darksky2048@gmail.com>
2026-09-15 14:55:04 +08:00
DarkSky 51fdf602ba feat(core): adapt new lifecycle (#15575)
fix #15574


#### PR Dependency Tree


* **PR #15575** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

## New Features
* Added source-aware blob handling for current documents and page
history.
* Added document lifecycle support for trashing, restoring, and
permanently deleting documents.
* Copilot attachments now upload directly to session attachment
endpoints.

## Bug Fixes
* Document actions now complete before confirmations, notifications, and
navigation proceed.
* Improved cancellation, upload fallback, size-limit handling, and cloud
synchronization reliability.
* Invite-link expiration now remains reliable for long durations.
* Improved synchronization for document permissions and reserved
documents.

## Changes
* Blob management now displays attachment icons instead of image
previews.
* Cloud synchronization now uses a unified batch protocol.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-09-09 23:00:06 +08:00
DarkSky 8c5937111b feat(server): migrate legacy impl (#15571)
#### PR Dependency Tree


* **PR #15571** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Added Copilot session attachments, scoped access controls,
personal-workspace support, and automatic title generation.
- Added self-hosted license compatibility, license portal access, and
external license-key configuration.
- Added reservation-based storage uploads and workspace storage
reconciliation.
- Added permissions for previews, history, analytics, moderation, and
workspace storage.

- **Changes**
- Removed the admin queue dashboard and queue-based background
processing.
- Updated blob, comment-attachment, payment, and calendar
synchronization workflows.
- Improved redirect validation, preview indexing, and synchronization
error reporting.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-09-08 23:21:00 +08:00
DarkSky b6de0ad51b feat(ios): improve share preview (#15538)
#### PR Dependency Tree

* **PR #15538** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Added rich link previews to mobile and iOS sharing, including images,
metadata, transcripts, and selected text.
* Share imports can now create structured content blocks, embeds,
bookmarks, and transcript callouts.
* Added workspace-aware preview handling for cloud, self-hosted, and
signed-out modes.
* **Accessibility**
* Improved collapse/expand controls with semantic buttons and ARIA
relationships.
* **Bug Fixes**
  * Enhanced URL and error sanitization in server logs.
* Improved link-preview CORS support, validation, and request handling.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-08-28 03:32:26 +08:00
keepClamDownandDarkSky 329839e467 feat(ios): add share to support (#15340)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
  * Added iOS sharing for URLs, text, web pages, and images.
* Shared content can be reviewed, titled, and saved to an AFFiNE
workspace.
  * Choose destinations including workspaces, tags, and collections.
* Added previews, attachment handling, import status, retry support, and
success/error feedback.
* Pending shares are processed when AFFiNE opens or returns to the
foreground.
* **Bug Fixes**
* Improved workspace profile handling across different workspace types.
* Onboarding completion is now recorded immediately after successful
sign-in verification.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: DarkSky <25152247+darkskygit@users.noreply.github.com>
2026-08-27 19:09:51 +08:00
DarkSky ca056ae7b9 feat(ios): cleanup ui (#15535) 2026-08-27 17:53:36 +08:00
keepClamDownandDarkSky cd6593c659 fix(ios): ios local access limit for self-hosted workspace (#15338)
## Summary
- Route iOS nbstore worker token reads through the main-thread
MessagePort and skip Capacitor Auth on `/socket.io` polling so self-host
WebSocket/XHR sync no longer hangs on Connect timeout.
- Harden workspace `flavour:id` routing, DocSyncPeer abort/status
handling, and `resetSync` so local selfhost edits push and Mac browsers
can receive them.
- Soften root-doc readiness waits and session-exchange throttling to
keep mobile selfhost sign-in/sync stable under retries.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

## Summary by CodeRabbit

* **New Features**
* Improved workspace switching across local and remote environments,
preserving workspace type and server context.
  * Added support for page navigation with query parameters.
* Added iOS local-network permission messaging for self-hosted
workspaces.
* **Bug Fixes**
* Improved document synchronization, reset handling, prioritized
document refreshes, and retry behavior.
* Prevented authentication headers and refresh attempts for socket
connection requests.
* Improved workspace reopening and routing when multiple workspace types
share an ID.
  * Fixed handling of unlimited data query limits.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: DarkSky <darksky2048@gmail.com>
2026-08-24 09:33:58 +08:00
qiaoyanfeiandDarkSky 591f874dad fix(android): stabilize IME composition and deletion handling (#15370)
## Summary
Fix Android editor IME corruption around composition, autocorrect
replay, delete, Enter, and old WebView delete behavior.

## What changed
- Add Android WebView InputConnection wrapper for editor IME handling.
- Route Android delete events through BlockSuite editor input.
- Guard against keyboard autocorrect/composition replay after delete or
space.
- Stabilize delete fallback on older Android/WebView versions.
- Gate IME diagnostic logs behind debug builds.
- Add Android IME fix notes and regression coverage.

## Validation
- Manual Android testing passed.
- `git diff --check upstream/canary...HEAD`

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Bug Fixes**
* Improved Android text editing for Backspace, Delete, Enter, composing
text, and keyboard events.
  * Prevented input methods from targeting the wrong editor area.
* Improved caret-based text handling, focus synchronization, and
composing-session cleanup.

* **Platform Improvements**
* Added a dedicated Android input bridge for smoother IME interactions
and fallback keyboard behavior.
* Improved editor actions, input recovery, and trusted-page validation
for Android communication.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: DarkSky <darksky2048@gmail.com>
2026-08-21 13:55:14 +08:00
keepClamDownandDarkSky 73e2d10973 feat(ios): polish onboarding and native sign-in flow (#15217)
## Summary
- Reworks the iOS onboarding, native sign-in, and paywall flow so
first-install and cold-start entry stay native, adaptive, and aligned
with the current login/subscription gates.
- Removes onboarding swipe paging, refines onboarding/paywall layout
behavior, and keeps AI/paywall entry behavior consistent for logged-in
and subscribed users.
- Adds the new mobile all-docs empty states with localized copy and
dialog entry points, and closes the remaining review follow-ups by
removing the onboarding plan artifact and dropping the iOS AI
subscription bypass.

## Test plan
- Built the iOS app for simulator with `xcodebuild -workspace
App.xcworkspace -scheme App -configuration Debug -sdk iphonesimulator
-destination 'generic/platform=iOS Simulator' ARCHS=arm64
ONLY_ACTIVE_ARCH=YES CODE_SIGNING_ALLOWED=NO CODE_SIGNING_REQUIRED=NO
build` during the native onboarding/sign-in flow work.
- Let the repo pre-commit hooks run on the latest follow-up commit
(`prettier` + `eslint --fix`).
- Checked diagnostics for the edited TS/TSX files after the review
follow-up changes.
- Manually iterated on onboarding/native sign-in/paywall UI states in
simulator during implementation.

---------

Co-authored-by: DarkSky <darksky2048@gmail.com>
2026-08-21 08:12:27 +08:00
DarkSky c57004ea2c refactor(server): indexer & worker & sync perf (#15504) 2026-08-21 08:11:37 +08:00
keepClamDownandDarkSky d6fd3174b2 feat(ios): refresh mobile settings layout (#15234)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Redesigned mobile Settings with localized sections, promotional
content, support actions, subscription access, and improved account
controls.
- Added sign-in prompts for signed-out users and clearer device-session
handling.
- Added a guided account-deletion flow with email confirmation and
completion messaging.
- Added App Store, download, team invitation, rating, and external
support links.
- **Bug Fixes**
- Improved interactive row behavior, keyboard accessibility, navigation,
and subscription availability.
  - Prevented account deletion for unresolved team owners.
- **Style**
- Refreshed mobile settings, subscription, profile, and promotional card
layouts.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: DarkSky <darksky2048@gmail.com>
2026-08-19 10:30:37 +08:00
DarkSky 6375f5ab8c chore: bump typescript 7 (#15465) 2026-08-11 03:09:54 +08:00
DarkSky 0c7b20dc18 chore: migrate oxlint & oxfmt (#15464)
#### PR Dependency Tree


* **PR #15464** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Chores**
* Replaced the project’s formatting and linting workflow with Oxfmt and
Oxlint.
* Added shared formatting and linting configuration, editor integration,
and updated automated checks.
* Updated generated files, scripts, and lint guidance to use the new
tooling.

* **Style**
* Reformatted templates, source code, examples, and configuration files
for consistent readability.
  * No user-facing functionality or rendering behavior changed.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-08-10 23:51:28 +08:00
DarkSky 386e92acb6 feat: update schema & bump deps (#15455)
#### PR Dependency Tree


* **PR #15455** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Added workspace artifact management, artifact details, and removal
support.
- Added workspace BYOK configuration insights, model capabilities,
connection checks, and validation status.
  - Added profile reordering and credential revision safeguards.
- **Improvements**
- Improved Copilot session creation with server-provided history and
metadata.
- Streamlined context handling with document scope selections and
selected-source synchronization.
- **Bug Fixes**
- Improved compatibility and reliability across web, Android, and iOS
Copilot workflows.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-08-10 18:16:13 +08:00
DarkSky ee899a267b feat(server): improve context management (#15448)
#### PR Dependency Tree


* **PR #15448** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Added workspace artifact upload, browsing, removal, deduplication, and
library ownership support.
* Copilot now supports scoped document and artifact search, canvas
reading, live editor context, and frontend tools.
* Added scope and focus selectors with source-resolution receipts in
chat.
* Added embedding health, progress, synchronization, and retrieval
capabilities.
* Added BYOK policy visibility, provider restrictions, endpoint dialect
selection, and validation.
* Added delegated editor interactions and userdata document
authorization.

* **Bug Fixes**
* Improved attachment handling, cancellation, access control, retrieval
fallbacks, workspace synchronization, and configuration validation.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-08-10 09:27:58 +08:00
DarkSky 965f4590ff feat(server): converge legacy compatibility (#15426)
#### PR Dependency Tree


* **PR #15426** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Added workspace BYOK profiles with provider/model catalogs, capability
validation, connection probing, credential rotation, reordering, and
secure local leases.
* Added Copilot route options, selectable targets, managed tiers,
explicit profile/model overrides, and improved streaming with tool
callbacks and abort support.
* Added Copilot availability controls to prevent access when the feature
is disabled.
* **Changes**
* Simplified Copilot configuration and removed legacy provider-specific
settings.
* Removed obsolete model, token-cost, transcript strategy, and provider
metadata fields from public responses.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-08-05 00:40:13 +08:00
renovate[bot] 3824018d2d chore: bump up RevenueCat/purchases-ios-spm version to from: "5.83.0" (#15393)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
|
[RevenueCat/purchases-ios-spm](https://redirect.github.com/RevenueCat/purchases-ios-spm)
| minor | `from: "5.82.0"` → `from: "5.83.0"` |

---

### Release Notes

<details>
<summary>RevenueCat/purchases-ios-spm
(RevenueCat/purchases-ios-spm)</summary>

###
[`v5.83.0`](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.82.0...5.83.0)

[Compare
Source](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.82.0...5.83.0)

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/toeverything/AFFiNE).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4zLjIiLCJ1cGRhdGVkSW5WZXIiOiI0NC4zLjIiLCJ0YXJnZXRCcmFuY2giOiJjYW5hcnkiLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-07-31 19:05:31 +08:00
renovate[bot] ea7df7f428 chore: bump up RevenueCat/purchases-ios-spm version to from: "5.82.0" (#15388)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
|
[RevenueCat/purchases-ios-spm](https://redirect.github.com/RevenueCat/purchases-ios-spm)
| minor | `from: "5.76.0"` → `from: "5.82.0"` |

---

### Release Notes

<details>
<summary>RevenueCat/purchases-ios-spm
(RevenueCat/purchases-ios-spm)</summary>

###
[`v5.82.0`](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.81.3...5.82.0)

[Compare
Source](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.81.3...5.82.0)

###
[`v5.81.3`](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.81.2...5.81.3)

[Compare
Source](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.81.2...5.81.3)

###
[`v5.81.2`](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.81.1...5.81.2)

[Compare
Source](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.81.1...5.81.2)

###
[`v5.81.1`](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.81.0...5.81.1)

[Compare
Source](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.81.0...5.81.1)

###
[`v5.81.0`](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.80.3...5.81.0)

[Compare
Source](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.80.3...5.81.0)

###
[`v5.80.3`](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.80.2...5.80.3)

[Compare
Source](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.80.2...5.80.3)

###
[`v5.80.2`](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.80.1...5.80.2)

[Compare
Source](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.80.1...5.80.2)

###
[`v5.80.1`](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.80.0...5.80.1)

[Compare
Source](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.80.0...5.80.1)

###
[`v5.80.0`](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.79.0...5.80.0)

[Compare
Source](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.79.0...5.80.0)

###
[`v5.79.0`](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.78.0...5.79.0)

[Compare
Source](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.78.0...5.79.0)

###
[`v5.78.0`](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.77.0...5.78.0)

[Compare
Source](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.77.0...5.78.0)

###
[`v5.77.0`](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.76.0...5.77.0)

[Compare
Source](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.76.0...5.77.0)

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/toeverything/AFFiNE).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4zLjIiLCJ1cGRhdGVkSW5WZXIiOiI0NC4zLjIiLCJ0YXJnZXRCcmFuY2giOiJjYW5hcnkiLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-07-31 17:09:12 +08:00
renovate[bot] 4f3ace6e7f chore: bump up apollographql/apollo-ios version to v1.25.7 (#13687)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
|
[apollographql/apollo-ios](https://redirect.github.com/apollographql/apollo-ios)
| patch | `from: "1.25.4"` → `from: "1.25.7"` |
|
[apollographql/apollo-ios](https://redirect.github.com/apollographql/apollo-ios)
| patch | `1.25.4` → `1.25.7` |

---

### Release Notes

<details>
<summary>apollographql/apollo-ios (apollographql/apollo-ios)</summary>

###
[`v1.25.7`](https://redirect.github.com/apollographql/apollo-ios/releases/tag/1.25.7)

[Compare
Source](https://redirect.github.com/apollographql/apollo-ios/compare/1.25.6...1.25.7)

##### Improved

- **Expose `DatabaseRow` stored properties for `SQLiteDatabase`
extensibility
([#&#8203;1056](https://redirect.github.com/apollographql/apollo-ios-dev/pull/1056)):**
`DatabaseRow`'s stored properties (`cacheKey` and `storedInfo`) are now
`public`, complementing the public initializer added in
[#&#8203;664](https://redirect.github.com/apollographql/apollo-ios-dev/pull/664).
This lets adopters build wrapper or decorator implementations of the
public `SQLiteDatabase` protocol — for encryption, compression, logging,
metrics, and similar use cases — without duplicating Apollo's SQLite
implementation. This change only expands the public API surface and
introduces no behavioral changes. *Thank you to
[@&#8203;ErShubhShankar](https://redirect.github.com/ErShubhShankar) for
the contribution.*

###
[`v1.25.6`](https://redirect.github.com/apollographql/apollo-ios/releases/tag/1.25.6)

[Compare
Source](https://redirect.github.com/apollographql/apollo-ios/compare/1.25.5...1.25.6)

##### Fixed

- **Fix `\r\n` in GraphQL descriptions generating invalid Swift comments
([#&#8203;965](https://redirect.github.com/apollographql/apollo-ios-dev/pull/965)):**
GraphQL field descriptions containing `\r\n` (Windows CRLF) line endings
caused codegen to emit invalid Swift — only the first line received the
`///` doc comment prefix and subsequent lines were emitted as
uncommented text, breaking compilation. Backport of
[#&#8203;961](https://redirect.github.com/apollographql/apollo-ios-dev/pull/961).
Fixes
[#&#8203;3553](https://redirect.github.com/apollographql/apollo-ios/issues/3553).
*Thank you to
[@&#8203;iPhoneNoobDeveloper](https://redirect.github.com/iPhoneNoobDeveloper)
for the contribution.*

###
[`v1.25.5`](https://redirect.github.com/apollographql/apollo-ios/releases/tag/1.25.5)

[Compare
Source](https://redirect.github.com/apollographql/apollo-ios/compare/1.25.4...1.25.5)

##### Fixed

- **Fixed concurrency crash in `compileGraphQLResult` on Swift 6.3/macOS
26
([#&#8203;929](https://redirect.github.com/apollographql/apollo-ios-dev/pull/929)):**
Serialized `async let` calls in `compileGraphQLResult` to work around a
[Swift concurrency runtime
crash](https://redirect.github.com/swiftlang/swift/pull/87665) triggered
when code generation is used in an `AsyncParsableCommand`. See PR
[#&#8203;942](https://redirect.github.com/apollographql/apollo-ios-dev/pull/942).
*Thank you to [@&#8203;m4p](https://redirect.github.com/m4p) for the
contribution.*

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/toeverything/AFFiNE).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4xMzEuOSIsInVwZGF0ZWRJblZlciI6IjQzLjI3Mi40IiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-07-31 10:58:02 +08:00
DarkSky b6fc0a2192 fix(mobile): mobile keyboard padding (#15365)
#### PR Dependency Tree


* **PR #15365** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Bug Fixes**
- Improved mobile keyboard and toolbar layout handling when the keyboard
overlays or resizes app content.
- Prevented incorrect extra spacing when Android applies keyboard insets
directly.
- Updated toolbar sizing and visibility states for smoother transitions.

- **Style**
- Adjusted mobile bottom spacing to account for keyboard height, safe
areas, and toolbar height.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-07-28 13:02:38 +08:00
DarkSky 749f1c5f0b fix(mobile): popover styles (#15351) 2026-07-26 20:09:02 +08:00
DarkSky 0d889bc643 feat: improve mac dock behavior (#15334)
#### PR Dependency Tree


* **PR #15334** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Enhancements**
* Improved main-window restoration for deep links, second-instance
launches, tray/menu actions, and when recordings finish.
* Refined macOS Dock show/hide behavior with throttling for smoother
window visibility.
* Updated close-to-tray/close-to-background handling to better manage
the app’s window lifecycle.
* Ensured popup/dock visibility is consistent when opening new windows.
* Updated window behavior settings display so tray-related options
render correctly across platforms.
* **Localization**
* Updated Simplified Chinese wording for menubar window behavior title.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-07-23 23:25:55 +08:00
DarkSky 1d36e2e4b2 feat(core): improve mobile perf (#15317)
#### PR Dependency Tree


* **PR #15317** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Virtualized mobile navigation with shell navigation and interactive
swipe menus; coordinated mobile back handling with interactive
phases/state restoration.
* Added shared auth request proxy and message-port based token handling
across mobile and worker flows.
* **Bug Fixes**
  * Hydrated remote worker error stacks for calls and observable errors.
* Improved SQLite FTS/indexer and nbstore optional text handling;
refined docs-search ref parsing and notification loading/retry.
* **Refactor / UX**
* Modal focus-preservation and pointer behavior updates; improved mobile
menu controls and back gesture plugins.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-07-23 00:23:21 +08:00
DarkSky 02e75862cc fix(core): token race condition (#15320)
fix #15318
fix #15310

#### PR Dependency Tree


* **PR #15320** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Bug Fixes**
* Authenticated sessions are now restored automatically when the desktop
app starts.
* Previously saved access tokens are available immediately for
recognized endpoints.
* A problem initializing one saved session no longer prevents other
sessions from loading.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-07-22 21:42:23 +08:00
DarkSky d24c17f300 feat(core): improve auth handling (#15271)
fix #15270
fix #15260
fix #15257


#### PR Dependency Tree


* **PR #15271** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)
2026-07-18 06:27:01 +08:00
DarkSky 00d4ab10a1 chore: bump version 2026-07-14 19:43:42 +08:00
DarkSky 0c16d7110d feat: improve native preview (#15223)
#### PR Dependency Tree


* **PR #15223** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Improvements**
* Updated Mermaid and Typst preview rendering in native/mobile apps to
use a shared preview implementation.
* Improved production Release builds with additional Rust release tuning
and enhanced iOS Release stripping/symbol settings.
* Enabled stronger release output optimization for the native package
build.
* **Bug Fixes**
* Strengthened handling of unsupported self-hosted server versions
during login preflight.
* Refreshed unsupported-version messaging with localized text and a
direct upgrade link.
* **Tests**
* Added coverage for login preflight behavior when the server version is
unsupported.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-07-13 03:23:08 +08:00
DarkSky 9b81c6debd feat(core): improve mcp management (#15221)
#### PR Dependency Tree


* **PR #15221** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Added MCP credential management (create/reveal, list, rotate, revoke)
with expiration and status tracking.
* Introduced read-only vs read/write access modes, with read/write
tooling enabled only when permitted.
* Added workspace MCP credential configuration UI, including token
reveal and setup generation.
  * Added MCP credential GraphQL APIs to back the UI.
* **Changes**
* Replaced legacy access-token support with MCP credentials across
authentication and realtime updates.
* **Bug Fixes**
* MCP authentication now reliably rejects revoked, rotated, expired, or
disabled-user credentials.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-07-12 19:30:44 +08:00