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 +28 -0
- package/package.json +1 -1
- package/src/ui/public/assets/{index-BxVtrDYE.js → index-BvVl-092.js} +18 -18
- package/src/ui/public/assets/{index-JF9fRS1G.css → index-DXO3Lvqi.css} +1 -1
- package/src/ui/public/assets/{ts.worker-METxwbDZ.js → ts.worker-Dth06zuC.js} +16 -1
- package/src/ui/public/assets/{vendor-ITcl-z5O.js → vendor-B1T2uxYO.js} +218 -225
- package/src/ui/public/assets/vendor-hOO_r_AU.css +1 -0
- package/src/ui/public/index.html +4 -4
- package/src/ui/server/routes/instances.js +24 -24
- package/src/ui/server/utils/instanceRegistry.js +256 -256
- package/src/ui/server/utils/randomStartPort.js +37 -37
- package/src/ui/public/assets/vendor-BdheoY37.css +0 -1
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