zen-gitsync 2.11.38 → 2.11.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -245,6 +245,20 @@ Configure the model endpoint, API key, and model name in **Settings → AI**.
245
245
 
246
246
  ---
247
247
 
248
+ ## Development Notes
249
+
250
+ ### Line endings
251
+
252
+ The repo ships a `.gitattributes` that locks source files to **LF** and Windows scripts (`.bat` / `.cmd` / `.ps1`) to **CRLF**. This takes precedence over `core.autocrlf`, so the working tree is identical on Windows, macOS, and Linux — generated files like `auto-imports.d.ts` and `components.d.ts` will not show up as "modified" just because the dev server rewrote them with different line endings.
253
+
254
+ If you change `.gitattributes` rules, renormalize the index in one shot:
255
+
256
+ ```bash
257
+ git add --renormalize .
258
+ ```
259
+
260
+ ---
261
+
248
262
  ## CLI Commands
249
263
 
250
264
  ### Interactive commit:
@@ -581,6 +595,20 @@ Activity Bar 第三个视图,调用 AI 模型将项目代码库生成可交互
581
595
 
582
596
  ---
583
597
 
598
+ ## 开发约定
599
+
600
+ ### 行尾规范
601
+
602
+ 仓库根的 `.gitattributes` 把**所有源代码锁定为 LF**(`.ts` `.js` `.vue` `.json` `.md` 等),**Windows 脚本锁定为 CRLF**(`.bat` / `.cmd` / `.ps1`)。`.gitattributes` 的优先级高于 `core.autocrlf`,所以无论本地 git 怎么配,签出与提交的行尾都一致;dev server 重新生成的 `auto-imports.d.ts`、`components.d.ts` 不会再因为行尾不一致而显示为"内容相同的 modified"。
603
+
604
+ 如果你修改了 `.gitattributes` 的规则,需要一次性重新归一索引:
605
+
606
+ ```bash
607
+ git add --renormalize .
608
+ ```
609
+
610
+ ---
611
+
584
612
  ## 命令行
585
613
 
586
614
  #### 交互式提交:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zen-gitsync",
3
- "version": "2.11.38",
3
+ "version": "2.11.39",
4
4
  "description": "A Git automation platform with interactive commits, scheduled sync, command orchestration, file locking, and a visual GUI.",
5
5
  "main": "index.js",
6
6
  "type": "module",