@qzsy/dsh-git-panel 0.1.0 → 0.1.1

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
@@ -25,6 +25,11 @@ lib/client.js 浏览器半:两个标签页类型 + 面板与预览页
25
25
  test/ host 侧真仓库行为测试 + client 侧注册契约测试
26
26
  ```
27
27
 
28
+ **改包名时必须同时改两处**:`cordis.patch.yml` 的 `insert[].name`,以及 `lib/client.js` 里
29
+ `window.__ModuleLoader__.load({ id })` 的 `id`。web loader 按包名去抓脚本,脚本注册的名字和包名
30
+ 不一致会被判成「loaded without registering」,那是整页插件加载失败(白屏),不是只掉一个分区。
31
+ `test/client.test.mjs` 现在直接拿 `package.json` 的 `name` 断言这个 id,改名漏了会先在这里红。
32
+
28
33
  Host 半只做 git:读(`status` / `graph` / `diff` / `commitDetail` / `branches`)与写(`stage` / `unstage` / `discard` / `commit` / `undoCommit` / `network` / `checkout` / `stash`)。浏览器半只渲染和调它。
29
34
 
30
35
  安全边界都在 Host 半:
package/lib/client.js CHANGED
@@ -16,7 +16,7 @@
16
16
  * same previewer any other file link uses.
17
17
  */
18
18
  window.__ModuleLoader__.load({
19
- id: 'dsh-git-panel',
19
+ id: '@qzsy/dsh-git-panel',
20
20
  factory(require) {
21
21
  const React = require('react')
22
22
  const h = React.createElement
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qzsy/dsh-git-panel",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "A Git section for the right Sidebar: workspace changes, a commit box, stage/discard, a diff preview tab, and a commit graph — modelled on the Git module of the local Cursor IDE.",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",