*.sh text eol=lf
# Raw-imported plugin authoring chapters retain FORGE_GUIDE's LF bytes on Windows.
apps/desktop/resources/system-skills/cindy-plugin-creator/references/*.md text eol=lf
# The page generation manual is published by version and content hash (mcp-apps/manual/<version>/<sha256>.md);
# clients hash their bundled copy, so Windows checkouts must package the same LF bytes.
apps/desktop/resources/system-skills/cindy-plugin-creator/references/examples/interactive-pages/PAGE-GENERATION.md text eol=lf
# All built-in Skill bytes share one immutable version across platforms. Do not
# let autocrlf give Windows a different bundle under the same version number.
apps/desktop/resources/system-skills/** -text
# Published teammate compatibility fixtures retain the exact source bytes for SHA-256 verification.
apps/desktop/src/main/maker-ipc/__tests__/fixtures/released-teammate-host/*.ts.txt text eol=lf
# Bundled teammate packages retain the exact source bytes (text and webp alike) for SHA-256 integrity verification;
# Windows autocrlf checkout would otherwise rewrite them to CRLF and fail every package hash.
apps/desktop/resources/bot-packages/** -text
# .mjs 脚本大多带 #!/usr/bin/env node shebang:Windows autocrlf 检出成 CRLF 后,
# vitest(vite 转换链)加载「CRLF + shebang」组合会直接 SyntaxError,unix 下直接执行也会坏,
# 与 *.sh 同理固定 LF 检出。
*.mjs text eol=lf
# git hook 没有扩展名，命不中上面两条。Windows autocrlf 检出成 CRLF 后 `#!/bin/sh\r`
# 无法执行，git commit 会直接 `fatal: cannot exec`——装了 hook 的人从此提交不了。
.githooks/** text eol=lf
# SQLite migration 内容参与用户数据库 drift hash；跨平台统一 LF。
apps/desktop/drizzle/**/*.sql text eol=lf
# design-tokens 影子层生成物参与「磁盘 = 内存生成」字节一致守卫；Windows
# autocrlf 检出转 CRLF 会让该守卫假红（classification.test.ts 实测），固定 LF。
packages/design-tokens/src/**/*.json text eol=lf
# sqlite-vec 扩展二进制（平台特定 .dylib / .dll）—— 走 Git LFS
apps/desktop/native/sqlite-vec/**/*.dylib filter=lfs diff=lfs merge=lfs -text
apps/desktop/native/sqlite-vec/**/*.dll filter=lfs diff=lfs merge=lfs -text
apps/desktop/native/sqlite-vec/**/*.so filter=lfs diff=lfs merge=lfs -text
# claude / codex / ripgrep CLI 二进制不再进 git/LFS——按需从上游下载
# （见 scripts/ensure-agent-binaries.mjs；版本 pin 在 tools/<kind>/latest.json）。
# Android platform-tools 二进制(adb.exe / AdbWin*.dll)不再进 git/LFS——Windows
# 打包前按 source.properties 的 pin 版本从上游下载并校验 sha256
# （见 apps/desktop/scripts/ensure-android-platform-tools.mjs）；路径已在
# .gitignore 中排除。同目录的 NOTICE.txt 与 source.properties 是文本、照常入仓。
# cindy-updater.exe 不再进 git/LFS——Windows 打包的 prePackage 每次都从
# apps/desktop/cindy-updater/ 现场 cargo build 并覆盖 resources/ 下的产物
# （见 forge.config.ts buildCindyUpdater）；路径已在 .gitignore 中排除。
# Windows updater 的两个 VC Runtime DLL 很小且必须让 release 构建完全离线可复现，
# 因此有意直接入 Git（不走 LFS）；来源、版本和 sha256 见同目录 manifest.json。
apps/desktop/resources/cindy-updater-runtime/*.dll -text
# Pencil 设计稿（加密二进制，体积大且改动频繁）—— 走 Git LFS
*.pen filter=lfs diff=lfs merge=lfs -text
# Vendored browser-control-runtime：由 scripts/browser-runtime/sync.mjs 从上游同步生成，非手写源码。
# 标记为 generated，让 GitHub 在 PR diff 中默认折叠、排除出仓库语言统计，避免淹没 reviewer。
packages/browser-control-runtime/src/_generated/** linguist-generated=true

# OpenCLI source hashes must survive Windows checkout byte-for-byte.
# Keep the host integration visible; collapse only upstream/generated payloads.
packages/opencli-vendor/** -text
packages/opencli-vendor/src/** linguist-vendored=true
packages/opencli-vendor/clis/** linguist-vendored=true
packages/opencli-vendor/resources/** linguist-vendored=true
packages/opencli-vendor/cli-manifest.json linguist-generated=true
packages/opencli-vendor/UPSTREAM.json linguist-generated=true
packages/opencli-vendor/cindy/modules.js linguist-generated=true

# ── 开源公开仓排除(内部专用,不进对外发布)────────────────────────────
# export-ignore 让 `git archive` 导出时自动剔除;若以「复制工作树 + git init」方式建
# 公开仓,则在新仓首次提交前排除服务端桥接和官方发布链路。
apps/mobile/scripts/release-*.mjs export-ignore
apps/mobile/scripts/release-*.sh export-ignore
apps/mobile/scripts/promote-*.mjs export-ignore

# DTCG generated whole files / marked regions: stable bytes on Windows as well.
apps/desktop/src/renderer/themes/colors.ts text eol=lf
apps/desktop/src/renderer/themes/builtin/*.ts text eol=lf
apps/desktop/src/renderer/styles/generated/* text eol=lf
apps/desktop/src/shared/generated/appearance-tokens.ts text eol=lf
apps/desktop/src/shared/windowBackdrop.ts text eol=lf
apps/desktop/tailwind.config.ts text eol=lf
docs/design-rules/DESIGN.md text eol=lf
docs/design-rules/login-flow.md text eol=lf

# Generated WebRTC source is compared byte-for-byte on every platform.
packages/device-link/src/filePeerRuntimeSource.ts text eol=lf
packages/device-link/src/directRuntimeSource.ts text eol=lf
# Desktop CI 分片用的逐文件耗时，由 pnpm update:desktop-test-timings 生成；GitHub diff 默认折叠。
apps/desktop/src/test/vitest/fileTimings.json linguist-generated=true
