mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-12-05 19:25:00 +03:00
- Prune undeclared cfg gates in crates/ui and enforce unexpected_cfgs = deny - Restore lean HeadlessPlatform driving real PlaygroundView via Window::draw() and Element::paint() FrameSnapshot capture (removing shadow scene builder) - Restore PlatformWindow::draw invocation in Window::present for desktop and web - Support OpenType variable-font 'wght' axis across CosmicTextSystem (Linux and WebAssembly) and AppleTextSystem (macOS CoreText) with Bold vs Regular advance width and rasterized ink unit test - Bundle tracked Inter variable font in crates/playground across macOS, Linux, and WebAssembly; add minimal Web HTML harness and headless Chromium smoke test - Unify animation time onto TestScheduler / BackgroundExecutor::now() and verify 60/120/24/7 fps PlaygroundView pill transitions with identical terminal snapshots - Add warm 30-frame steady-state bench with schema-aligned ci_wall_ms object, optional unmeasured v1 metric fields, and strict 40-hex commit resolution - Commit Cargo.lock, enforce --locked in CI, harden check-invariants.sh link-flag check, align CI wasm-bindgen CLI with Cargo.lock, and keep AGENTS.md exact
1.7 KiB
1.7 KiB
Working on AFFiNE Native Playground (for agents)
These rules apply at repository root on the darksky/native-playground branch and topic branches under darksky/np/**. Subdirectory AGENTS.md files (notably blocksuite/native-playground/AGENTS.md) state narrower rules beside the code they govern.
Branch & CI workflow
- Never merge to
canary. Integration lands ondarksky/native-playgroundonly. - PR-less CI on push: Push topic branches matching
darksky/np/**(ordarksky/native-playground) to trigger.github/workflows/native-playground.ymldirectly..github/workflows/build-test.ymlignoresdarksky/native-playgroundpull requests so unrelated legacy jobs stay silent. - Review council gate: Every topic branch requires at least 3 of 4 review council approvals before squash-landing onto
darksky/native-playground. - Performance regression gate: Any CI benchmark metric regressing by more than 10% against the rolling
N-3baseline is routed to the dedicated performance guardian before landing. - Cargo rustflags isolation: Root
.cargo/config.tomlinjects NAPI linker flags (-all_load,-undefined dynamic_lookup,-z nodelete) that Cargo concatenates into nested workspaces. Always build and testblocksuite/native-playgroundwithCARGO_ENCODED_RUSTFLAGS=""in the environment.
Keeping rules true
- When a change makes any statement, path, command, or invariant in an
AGENTS.mdfile inaccurate, update thatAGENTS.mdin the same commit. - A new directory with rules of its own gets an
AGENTS.mdand a one-lineCLAUDE.mdcontaining@AGENTS.md. - Keep code, comments, workflows,
AGENTS.md, and commit messages free of internal process-journal jargon.