返回 CodeWhale
.gitattributes
根目录 / .gitattributes
1 # Ensure LF line endings for files consumed by include_str!() on all platforms.
2 # include_str!() preserves raw bytes; CRLF breaks substring assertions and
3 # produces different compiled binaries on Windows vs Linux/macOS.
4 # Cover nested mode/approval/personality prompts — a top-level *.md glob alone
5 # left modes/*.md on CRLF under Windows autocrlf and blew the agent token budget.
6 crates/engine/src/prompts/**/*.md text eol=lf
7 crates/engine/src/prompts/*.md text eol=lf
8 crates/engine/src/prompts/*.txt text eol=lf
9
10 # The rest of the include_str!() inputs. `* text=auto` below converts these to
11 # CRLF on a Windows checkout, which is invisible for the ones that are only
12 # parsed or substring-matched and fatal for the one that is compared byte for
13 # byte: crates/telemetry/tests/golden/v1.json is asserted against
14 # serde_json::to_string_pretty output, which always emits LF, so Windows CI
15 # failed `golden_payload_v1` with a pure \r\n diff.
16 crates/telemetry/tests/golden/*.json text eol=lf
17 # The generated pet native bundle is regenerated in memory and compared byte
18 # for byte by `npm --prefix pet run check` (pet/scripts/build-pet.mjs), and the
19 # TUI copy is embedded with include_str!() (pet_watch/dots.rs). The generator
20 # emits LF, so a CRLF Windows checkout reported it as stale and would embed
21 # different bytes.
22 crates/tui/src/tui/pet_watch/pet-native.js text eol=lf
23 # Tideline component goldens (crates/tui/src/tui/goldens/*.txt) are
24 # fs::read_to_string'd and compared byte for byte against buffer dumps that
25 # always join rows with LF (golden_harness.rs::render_golden_text), so a
26 # CRLF checkout failed all eight Windows golden tests with a pure \r\n diff.
27 crates/tui/src/tui/goldens/*.txt text eol=lf
28 crates/tui/src/tui/goldens/config_panel_*.txt whitespace=-blank-at-eol
29 vendor/codewhale-ratatui/tests/**/*.txt text eol=lf
30 vendor/codewhale-ratatui/tests/**/*.json text eol=lf
31 vendor/codewhale-ratatui/assets/**/*.json text eol=lf
32 vendor/codewhale-ratatui/assets/**/*.js text eol=lf
33 vendor/codewhale-ratatui/assets/*.scenes text eol=lf
34 # FEAT-025 baseline export goldens (crates/tui/src/commands/fixtures/*.md) are
35 # include_str!()'d and compared byte for byte against a document the exporter
36 # builds with LF, so a CRLF checkout failed the four Windows golden tests with a
37 # pure \r\n diff (Windows CI caught this; Linux cannot see it).
38 crates/tui/src/commands/fixtures/*.md text eol=lf
39 # FEAT-029 debug diagnostics baselines (crates/tui/src/commands/fixtures/
40 # diagnostics/*) are compared byte for byte against command output joined
41 # with LF, so a CRLF checkout failed every Windows baseline parity test with a
42 # pure \r\n diff.
43 crates/tui/src/commands/fixtures/diagnostics/* text eol=lf
44 # Conformance fixtures are recorded wire bytes (SSE framing is line-exact) and
45 # goldens compared byte for byte; a CRLF checkout must not rewrite either.
46 crates/tui/tests/fixtures/conformance/** text eol=lf
47 crates/*/assets/**/*.json text eol=lf
48 crates/*/assets/**/*.md text eol=lf
49 crates/*/locales/*.json text eol=lf
50 .codewhale/workflows/*.js text eol=lf
51 # Executable documentation: the Fleet tutorial's JSON fence is parsed by the
52 # task-spec contract test, so its bytes must agree on Windows and Unix.
53 docs/FLEET_WORKFLOW_TUTORIAL.md text eol=lf
54 # The dsh bundle scene is include_str!() into the generated client.js and
55 # hashed for stale detection; CRLF would change both across platforms.
56 crates/tui/src/integrations/dsh/*.js text eol=lf
57 # The native DSH import fixture bundle is hashed into the conversion receipt,
58 # so a CRLF checkout changed the expected digest on Windows.
59 scripts/fixtures/dsh-web-app/** text eol=lf
60
61 # The extension host's generated protocol TS is compared byte for byte with
62 # the generator's LF output (protocol/tests.rs), and its dist bundle is
63 # include_bytes!()'d and digest-checked at launch; a CRLF Windows checkout
64 # failed the former and would embed different bytes.
65 crates/engine/extension-host/src/protocol.generated.ts text eol=lf
66 crates/engine/extension-host/dist/** text eol=lf
67 # Reviewed extension-host fixtures carry exact source SHA-256 receipts.
68 # A Windows checkout must not rewrite their admitted source closure to CRLF.
69 crates/engine/tests/fixtures/extension_host/** text eol=lf
70 crates/engine/extension-host/src/dsh/dsh-message-compat.js text eol=lf
71
72 # DeepSeek Harness creator pins are compared byte for byte against recorded
73 # SHA-256 values (UPSTREAM.json) and embedded with include_bytes!(); a CRLF
74 # Windows checkout must not rewrite any of them.
75 crates/skills/assets/dsh-creator/** text eol=lf
76 crates/engine/extension-host/src/dsh/upstream/creator/** text eol=lf
77
78 # Rustfmt writes LF; keep Rust sources stable across Windows/Linux/macOS.
79 *.rs text eol=lf
80
81 # Release shell scripts are invoked directly by bash on Windows
82 # checkouts; CRLF turns `set -euo pipefail` into an invalid option.
83 scripts/release/*.sh text eol=lf
84
85 # Keep repository attributes themselves stable on every platform.
86 .gitattributes text eol=lf
87
88 # Everything else auto-detects (default).
89 * text=auto
90
91 # Preserve the qualified upstream font license, including its trailing space.
92 web/public/brand/fonts/OFL.txt text eol=lf whitespace=-blank-at-eol
93
94 # Generated protocol and SDK exports are compared byte for byte; keep LF on Windows checkouts.
95 crates/app-server-protocol/schema/** text eol=lf
96 crates/app-server-protocol/METHODS.md text eol=lf
97 npm/runtime-sdk/generated/** text eol=lf
98
99 /LICENSE text eol=lf
100 /THIRD_PARTY_NOTICES.md text eol=lf
101 /docs/THIRD_PARTY_NOTICES.md text eol=lf
102 **/codewhale-notices/** text eol=lf
103
103 lines Plain Text