@xbzbing/dsh-git-panel 1.5.2 → 1.5.4

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.
@@ -58,14 +58,14 @@ Two halves communicating over the typert Remote gateway.
58
58
  ## Development
59
59
 
60
60
  ```bash
61
- node build.mjs # tsc (host d.ts) + esbuild (host bundle + client bundle + testkit)
61
+ node build.mjs # tsc (host d.ts) + esbuild (per-module host js + client bundle + testkit)
62
62
  npm run typecheck # type check
63
63
  npm run test:unit # pure-algorithm and host-endpoint unit tests (node --test)
64
64
  npm run test:e2e # isolated file:// headless-browser e2e (never touches a running instance)
65
65
  npm test # unit + e2e
66
66
  ```
67
67
 
68
- The host bundle is not minified: the typert gateway validates arguments by method parameter name, and minification would rename them and break the wire contract. Client changes are not hot-reloaded — rebuild and refresh the page. `lib/` is committed as a build artifact so `dsh plugin add github:…` installs the built tree directly; after editing `src/` you must rebuild and commit, or a GitHub install loads a stale entry. The test-time `lib/testkit.mjs` is not committed. For local development, add the plugin to a dsh web profile's `dsh.profile.bundles` with a `file:` dependency pointing at this directory; a rebuild makes it effective.
68
+ The host output is emitted one file per `src/host/` module (stack traces land in the module that raised) and is never minified: the typert gateway validates arguments by method parameter name, and minification would rename them and break the wire contract. Client changes are not hot-reloaded — rebuild and refresh the page. `lib/` is committed as a build artifact so `dsh plugin add github:…` installs the built tree directly; after editing `src/` you must rebuild and commit, or a GitHub install loads a stale entry. The test-time `lib/testkit.mjs` is not committed. For local development, add the plugin to a dsh web profile's `dsh.profile.bundles` with a `file:` dependency pointing at this directory; a rebuild makes it effective.
69
69
 
70
70
  ## Project structure
71
71
 
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # dsh-git-panel
2
2
 
3
- [English](README_EN.md) | 简体中文
3
+ [English](README.en.md) | 简体中文
4
4
 
5
5
  ![dsh-git-panel](docs/assets/banner-zh.png)
6
6
 
@@ -58,14 +58,14 @@ dsh plugin --profile web add github:xbzbing/dsh-git-panel
58
58
  ## 开发
59
59
 
60
60
  ```bash
61
- node build.mjs # tsc(host d.ts)+ esbuild(host bundle + client bundle + testkit)
61
+ node build.mjs # tsc(host d.ts)+ esbuild(host 逐模块 js + client bundle + testkit)
62
62
  npm run typecheck # 类型检查
63
63
  npm run test:unit # 纯算法与 host 端点单测(node --test)
64
64
  npm run test:e2e # 隔离的 file:// 无头浏览器 e2e(不碰任何运行中的实例)
65
65
  npm test # 单测 + e2e
66
66
  ```
67
67
 
68
- host bundle 不做压缩:typert 网关靠方法参数名做参数校验,压缩会改名并破坏 wire 契约。client 改动没有热重载,需重新构建并刷新页面。`lib/` 作为构建产物随 git 提交入库,改动 `src/` 后必须重新构建并提交,否则从 GitHub 安装会加载到过期入口;测试期生成的 `lib/testkit.mjs` 不入库。本地联调:把插件加入 dsh web profile 的 `dsh.profile.bundles`,用 `file:` 依赖指向本目录,构建后即生效。
68
+ host 产物按 `src/host/` 逐模块输出(一个源文件一个 js,堆栈直接落在出问题的模块),且不做压缩:typert 网关靠方法参数名做参数校验,压缩会改名并破坏 wire 契约。client 改动没有热重载,需重新构建并刷新页面。`lib/` 作为构建产物随 git 提交入库,改动 `src/` 后必须重新构建并提交,否则从 GitHub 安装会加载到过期入口;测试期生成的 `lib/testkit.mjs` 不入库。本地联调:把插件加入 dsh web profile 的 `dsh.profile.bundles`,用 `file:` 依赖指向本目录,构建后即生效。
69
69
 
70
70
  ## 项目结构
71
71